summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ACE-INSTALL.html1398
-rw-r--r--ACEXML/ChangeLog152
-rw-r--r--ACEXML/apps/svcconf/Svcconf.cpp11
-rw-r--r--ACEXML/apps/svcconf/Svcconf.h4
-rw-r--r--ACEXML/common/FileCharStream.cpp4
-rw-r--r--ACEXML/common/HttpCharStream.cpp6
-rw-r--r--ACEXML/common/NamespaceSupport.cpp99
-rw-r--r--ACEXML/common/NamespaceSupport.h8
-rw-r--r--ACEXML/common/Transcode.cpp29
-rw-r--r--ACEXML/common/URL_Addr.cpp6
-rw-r--r--ACEXML/common/XML_Macros.h4
-rw-r--r--ACEXML/common/XML_Types.h8
-rw-r--r--ACEXML/common/ZipCharStream.h6
-rw-r--r--ACEXML/common/common.mpc1
-rw-r--r--ACEXML/examples/SAXPrint/main.cpp2
-rw-r--r--ACEXML/parser/parser/Parser.cpp22
-rw-r--r--ACEXML/parser/parser/Parser.h9
-rw-r--r--ACEXML/parser/parser/Parser.i2
-rw-r--r--ACEXML/parser/parser/parser.mpc1
-rw-r--r--ASNMP/ChangeLog177
-rw-r--r--ASNMP/agent/main.cpp6
-rw-r--r--ASNMP/agent/snmp_agent.cpp6
-rw-r--r--ASNMP/asnmp/ChangeLog69
-rw-r--r--ASNMP/asnmp/address.cpp6
-rw-r--r--ASNMP/asnmp/address.h521
-rw-r--r--ASNMP/asnmp/asn1.h53
-rw-r--r--ASNMP/asnmp/counter.h58
-rw-r--r--ASNMP/asnmp/ctr64.h76
-rw-r--r--ASNMP/asnmp/enttraps.h103
-rw-r--r--ASNMP/asnmp/gauge.h60
-rw-r--r--ASNMP/asnmp/integer.h94
-rw-r--r--ASNMP/asnmp/octet.h114
-rw-r--r--ASNMP/asnmp/oid.h135
-rw-r--r--ASNMP/asnmp/oid_def.h29
-rw-r--r--ASNMP/asnmp/pdu.h154
-rw-r--r--ASNMP/asnmp/sagent.cpp2
-rw-r--r--ASNMP/asnmp/sagent.h55
-rw-r--r--ASNMP/asnmp/smi.h28
-rw-r--r--ASNMP/asnmp/smival.h32
-rw-r--r--ASNMP/asnmp/snmp.h84
-rw-r--r--ASNMP/asnmp/snmperrs.h28
-rw-r--r--ASNMP/asnmp/target.h150
-rw-r--r--ASNMP/asnmp/timetick.h58
-rw-r--r--ASNMP/asnmp/transaction.cpp21
-rw-r--r--ASNMP/asnmp/transaction.h60
-rw-r--r--ASNMP/asnmp/transaction_result.h29
-rw-r--r--ASNMP/asnmp/vb.h136
-rw-r--r--ASNMP/asnmp/wpdu.h59
-rw-r--r--ASNMP/examples/get/get.cpp14
-rw-r--r--ASNMP/examples/get/get_async.cpp14
-rw-r--r--ASNMP/examples/next/next.cpp14
-rw-r--r--ASNMP/examples/set/set.cpp20
-rw-r--r--ASNMP/examples/trap/trap.cpp14
-rw-r--r--ASNMP/examples/walk/walk.cpp14
-rw-r--r--ASNMP/tests/test_config.h8
-rw-r--r--COPYING23
-rw-r--r--ChangeLog11512
-rw-r--r--ChangeLogs/ChangeLog-05b2815
-rw-r--r--Kokyu/Kokyu_defs.h2
-rw-r--r--Kokyu/README2
-rw-r--r--Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc1
-rw-r--r--Kokyu/tests/EDF/test.cpp2
-rw-r--r--Kokyu/tests/FIFO/test.cpp2
-rw-r--r--Makefile.am17
-rw-r--r--NEWS132
-rw-r--r--PROBLEM-REPORT-FORM3
-rw-r--r--TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationCxx.hpp188
-rw-r--r--TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.cpp142
-rw-r--r--TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp8
-rw-r--r--TAO/CIAO/CCF/CCF/CompilerElements/TokenStream.hpp4
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Parser.cpp45
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Parser.hpp11
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Member.cpp6
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp137
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.hpp12
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp8
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Typedef.hpp11
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph.hpp2
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.cpp37
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.hpp57
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.cpp88
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.hpp123
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.cpp38
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.hpp46
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.cpp77
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.hpp85
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp32
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.hpp5
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp37
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp12
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal.hpp3
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.cpp78
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.hpp51
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/Elements.hpp23
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/IntExpression.hpp757
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.cpp70
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.hpp31
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/String.cpp93
-rw-r--r--TAO/CIAO/CCF/CCF/IDL2/Traversal/String.hpp64
-rw-r--r--TAO/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Include.cpp6
-rw-r--r--TAO/CIAO/CCF/Documentation/Build.html259
-rw-r--r--TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp2
-rw-r--r--TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/cidlc.cpp2
-rw-r--r--TAO/CIAO/CIAO-INSTALL.html90
-rw-r--r--TAO/CIAO/CIAO.mwc3
-rw-r--r--TAO/CIAO/CIAOTAO.mwc19
-rw-r--r--TAO/CIAO/CIAO_DAnCE.mwc8
-rw-r--r--TAO/CIAO/CIAO_TAO.mwc29
-rw-r--r--TAO/CIAO/CIAO_TAO_DAnCE.mwc24
-rw-r--r--TAO/CIAO/CIDLC/AttributeHeaderEmitters.cpp199
-rw-r--r--TAO/CIAO/CIDLC/AttributeHeaderEmitters.hpp119
-rw-r--r--TAO/CIAO/CIDLC/AttributeSourceEmitters_T.hpp368
-rw-r--r--TAO/CIAO/CIDLC/CIDLC.mpc18
-rw-r--r--TAO/CIAO/CIDLC/CompositionEmitter.cpp27
-rw-r--r--TAO/CIAO/CIDLC/CompositionEmitter.hpp26
-rw-r--r--TAO/CIAO/CIDLC/CorbaTypeNameEmitters.cpp2235
-rw-r--r--TAO/CIAO/CIDLC/CorbaTypeNameEmitters.hpp511
-rw-r--r--TAO/CIAO/CIDLC/DescriptorGenerator.cpp6
-rw-r--r--TAO/CIAO/CIDLC/EmitterBase.cpp11
-rw-r--r--TAO/CIAO/CIDLC/EmitterBase.hpp20
-rw-r--r--TAO/CIAO/CIDLC/EmitterContext.cpp45
-rw-r--r--TAO/CIAO/CIDLC/EmitterContext.hpp35
-rw-r--r--TAO/CIAO/CIDLC/ExecImplGenerator.cpp4
-rw-r--r--TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp726
-rw-r--r--TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp625
-rw-r--r--TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp12
-rw-r--r--TAO/CIAO/CIDLC/InterfaceEmitter.cpp26
-rw-r--r--TAO/CIAO/CIDLC/InterfaceEmitter.hpp30
-rw-r--r--TAO/CIAO/CIDLC/Literals.cpp16
-rw-r--r--TAO/CIAO/CIDLC/Literals.hpp16
-rw-r--r--TAO/CIAO/CIDLC/ModuleEmitter.cpp22
-rw-r--r--TAO/CIAO/CIDLC/ModuleEmitter.hpp24
-rw-r--r--TAO/CIAO/CIDLC/OperationHeaderEmitters.cpp267
-rw-r--r--TAO/CIAO/CIDLC/OperationHeaderEmitters.hpp151
-rw-r--r--TAO/CIAO/CIDLC/ParameterEmitter_T.hpp33
-rw-r--r--TAO/CIAO/CIDLC/README.html42
-rw-r--r--TAO/CIAO/CIDLC/ServantGenerator.cpp4
-rw-r--r--TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp1041
-rw-r--r--TAO/CIAO/CIDLC/ServantSourceGenerator.cpp2005
-rw-r--r--TAO/CIAO/CIDLC/SizeTypeCalculator.cpp29
-rw-r--r--TAO/CIAO/CIDLC/TypeNameEmitter.cpp1973
-rw-r--r--TAO/CIAO/CIDLC/TypeNameEmitter.hpp458
-rw-r--r--TAO/CIAO/CIDLC/Upcase.hpp21
-rw-r--r--TAO/CIAO/CIDLC/UtilityTypeNameEmitters.cpp57
-rw-r--r--TAO/CIAO/CIDLC/UtilityTypeNameEmitters.hpp56
-rw-r--r--TAO/CIAO/CIDLC/cidlc.cpp52
-rw-r--r--TAO/CIAO/COPYING23
-rw-r--r--TAO/CIAO/ChangeLog5199
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.cpp33
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.h77
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.cpp221
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.h91
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/ComponentPackager.mpc19
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/Component_Packager.cpp154
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.cpp63
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.h57
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/Package.xsd16
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/README.html186
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/Sample.pdl22
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/pdl.cpp155
-rw-r--r--TAO/CIAO/DAnCE/ComponentPackager/pdl.hpp80
-rw-r--r--TAO/CIAO/DAnCE/Deployment.xsd776
-rw-r--r--TAO/CIAO/DAnCE/Deployment.xsd.orig897
-rw-r--r--TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp16
-rw-r--r--TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.h6
-rw-r--r--TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager.mpc8
-rw-r--r--TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp1468
-rw-r--r--TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h219
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.cpp10
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.h7
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.idl26
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.mpc28
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager_stub_export.h (renamed from TAO/CIAO/DAnCE/Interfaces/ExecutionManager_stub_export.h)0
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager.cpp20
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.cpp278
-rw-r--r--TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.h100
-rw-r--r--TAO/CIAO/DAnCE/Interfaces/ExecutionManagerDaemon.idl25
-rw-r--r--TAO/CIAO/DAnCE/Interfaces/Interfaces.mpc39
-rw-r--r--TAO/CIAO/DAnCE/Interfaces/NodeManagerDaemon.idl28
-rw-r--r--TAO/CIAO/DAnCE/Interfaces/NodeManager_svnt_export.h54
-rw-r--r--TAO/CIAO/DAnCE/Interfaces/README2
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.cpp110
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.h102
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/Container_Impl.cpp663
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/Container_Impl.h228
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/Container_Impl.inl35
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.cpp39
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.h62
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator_export.h54
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.cpp3
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.h90
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication.cpp192
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication.mpc28
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.cpp269
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h69
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.inl8
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp1160
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.h381
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.inl84
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.cpp468
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.h139
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.inl13
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/RTNA_Configurator_Export.h54
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.cpp105
-rw-r--r--TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.h78
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.cpp201
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.h40
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.cpp64
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h21
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager.mpc21
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp1056
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h228
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl36
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/BaseMonitor.h63
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.cpp96
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.h106
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/Monitor.mpc28
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/MonitorCB.cpp54
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/MonitorCB.h74
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/MonitorController.cpp139
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/MonitorController.h111
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NAM_Map.cpp22
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NAM_Map.h11
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NodeManager.idl28
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NodeManager.mpc29
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.cpp460
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.h199
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/NodeManager_stub_export.h (renamed from TAO/CIAO/DAnCE/Interfaces/NodeManager_stub_export.h)0
-rw-r--r--TAO/CIAO/DAnCE/NodeManager/Node_Manager.cpp47
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.cpp225
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.h59
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.cpp6257
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.hpp1928
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.cpp40
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.h93
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.cpp310
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.h129
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.cpp30
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.h62
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.cpp76
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.h57
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.cpp40
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.h87
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.cpp57
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.h97
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.cpp98
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.h87
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.cpp164
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.h89
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.cpp75
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.h88
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Config.h17
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.cpp63
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.h50
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handler_export.h58
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handlers.mpc46
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.cpp104
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.h73
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.cpp151
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.hpp68
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.cpp972
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.h153
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.cpp89
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.h50
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.cpp403
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.h127
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.cpp64
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.h76
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.cpp27
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.h63
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.cpp78
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.h99
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.cpp28
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.h64
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.cpp58
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.h106
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.cpp54
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.h116
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.cpp44
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.h84
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.cpp47
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.h87
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.cpp75
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.h91
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.cpp624
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.h251
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.cpp121
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.h197
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.cpp294
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.h90
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.cpp83
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.h55
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.cpp130
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.h57
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.cpp61
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.h77
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.cpp115
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.h57
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.cpp41
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.h57
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.cpp81
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.h56
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.cpp88
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.h87
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.cpp350
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.h120
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.cpp140
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.h73
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.cpp555
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.hpp165
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.cpp301
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.hpp108
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.cpp588
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.hpp164
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cid.cpp1554
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cid.hpp445
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.cpp507
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.hpp169
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/iad.cpp605
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/iad.hpp184
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.cpp391
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.hpp131
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.cpp140
-rw-r--r--TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.hpp66
-rw-r--r--TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.cpp117
-rw-r--r--TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.h71
-rw-r--r--TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp116
-rw-r--r--TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.mpc9
-rw-r--r--TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp109
-rw-r--r--TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.h58
-rw-r--r--TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.cpp13
-rw-r--r--TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h2
-rw-r--r--TAO/CIAO/DAnCE/RTNodeApplication/README3
-rw-r--r--TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.cpp4
-rw-r--r--TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.mpc13
-rwxr-xr-xTAO/CIAO/DAnCE/RTNodeApplication/senv.sh4
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp59
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.h72
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.cpp203
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.h86
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/Options.cpp111
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/Options.h78
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.cpp269
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.h113
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.cpp20
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.h40
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/README.txt30
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.cpp253
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.h101
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RMadmin.cpp274
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.cpp166
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.idl12
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.mpc50
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RepositoryManagerDaemon.idl13
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.cpp1215
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.h432
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager.cpp305
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager_conf.h33
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.cpp103
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.h68
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.cpp462
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.h123
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.cpp299
-rw-r--r--TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.h86
-rw-r--r--TAO/CIAO/DAnCE/StaticConfigurator/README29
-rw-r--r--TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.cpp.tmpl119
-rw-r--r--TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.mpc.tmpl24
-rw-r--r--TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.cpp162
-rw-r--r--TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.mpc13
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/CmpClient.cpp90
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.cpp152
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.h129
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/DomainDataManager.cpp147
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/DomainDataManager.h118
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TM_Client.mpc28
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager.cidl28
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager.idl38
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager.mpc60
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManagerExt.idl59
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.cpp337
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.h229
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager_exec_export.h54
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager_stub_export.h54
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/TargetManager_svnt_export.h54
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/descriptors/Domain.cdd97
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/descriptors/NodeDetails.dat2
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/descriptors/NodeManagerMap.dat2
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/descriptors/flattened_deploymentplan.cdp92
-rw-r--r--TAO/CIAO/DAnCE/TargetManager/descriptors/run_test_TargetManager.pl160
-rw-r--r--TAO/CIAO/DAnCE/XMI.xsd35
-rw-r--r--TAO/CIAO/DAnCE/XMI.xsd.orig35
-rw-r--r--TAO/CIAO/DAnCE/new_RepositoryManager/packages/inconsistent.cpkbin0 -> 436 bytes
-rw-r--r--TAO/CIAO/DAnCE/new_RepositoryManager/packages/package.cpkbin0 -> 26 bytes
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.cpp61
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.h70
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.cpp202
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.h82
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/Options.cpp88
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/Options.h71
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.cpp269
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.h109
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp22
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.h38
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/README.txt30
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.cpp257
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.h85
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RMadmin.cpp219
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.cpp157
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.idl13
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp705
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h210
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.cpp107
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.h65
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp287
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.h75
-rw-r--r--TAO/CIAO/DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc48
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/CompImplDesc_Handler_Test.cpp17
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/CompIntrDesc_Handler_Test.cpp13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/CompPkgDesc_Handler_Test.cpp13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/Domain_Handler_Test.cpp13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.ccd51
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cid35
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cpd14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Exec.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Stub.iad14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Svnt.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Deployment.xsd776
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Domain.cdd25
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.ccd44
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cid35
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cpd15
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Exec.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Stub.iad14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Svnt.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cdp24
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cid82
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cpd13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.pcd10
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Libraries.iad8
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.ccd34
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cid35
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cpd14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Exec.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Stub.iad14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Svnt.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.ccd38
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cid46
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cpd14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Exec.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Stub.iad14
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Svnt.iad29
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/XMI.xsd35
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/package.tpd8
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.cpp208
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.h53
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Tests.mpc57
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/IAD_Handler_Test.cpp13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/PC_Handler_Test.cpp13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/Plan_Handler_Test.cpp13
-rw-r--r--TAO/CIAO/DAnCE/tests/Config_Handlers/handler_test.mpb14
-rw-r--r--TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc38
-rw-r--r--TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp22
-rw-r--r--TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp166
-rw-r--r--TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp8
-rw-r--r--TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp8
-rw-r--r--TAO/CIAO/NEWS298
-rw-r--r--TAO/CIAO/PROBLEM-REPORT-FORM7
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller.cidl28
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller.idl64
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller.mpc64
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller_exec.cpp171
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller_exec.h128
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller_exec_export.h54
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller_stub_export.h54
-rw-r--r--TAO/CIAO/RACE/Controller/Component/Controller_svnt_export.h54
-rw-r--r--TAO/CIAO/RACE/Planner_Manager/Component/Planner_Manager.idl3
-rw-r--r--TAO/CIAO/VERSION3
-rw-r--r--TAO/CIAO/ciao/CCM_Base.idl5
-rw-r--r--TAO/CIAO/ciao/CCM_Core.mpc50
-rw-r--r--TAO/CIAO/ciao/CCM_Event.idl2
-rw-r--r--TAO/CIAO/ciao/CIAO_common.h6
-rw-r--r--TAO/CIAO/ciao/Client_init.h7
-rw-r--r--TAO/CIAO/ciao/ComponentsC.h4
-rw-r--r--TAO/CIAO/ciao/Container_Base.cpp108
-rw-r--r--TAO/CIAO/ciao/Container_Base.h51
-rw-r--r--TAO/CIAO/ciao/Container_Impl.cpp567
-rw-r--r--TAO/CIAO/ciao/Container_Impl.h218
-rw-r--r--TAO/CIAO/ciao/Container_Impl.inl33
-rw-r--r--TAO/CIAO/ciao/Context_Impl_Base.cpp1
-rw-r--r--TAO/CIAO/ciao/Context_Impl_Base.h4
-rw-r--r--TAO/CIAO/ciao/Context_Impl_T.h2
-rw-r--r--TAO/CIAO/ciao/Deployment.idl161
-rw-r--r--TAO/CIAO/ciao/Deployment_Base.idl6
-rw-r--r--TAO/CIAO/ciao/Deployment_Core.idl100
-rw-r--r--TAO/CIAO/ciao/Deployment_Data.idl5
-rw-r--r--TAO/CIAO/ciao/Deployment_Events.idl68
-rw-r--r--TAO/CIAO/ciao/Deployment_common.h54
-rw-r--r--TAO/CIAO/ciao/DomainApplicationManager.idl57
-rw-r--r--TAO/CIAO/ciao/Dynamic_Component_Activator.h15
-rw-r--r--TAO/CIAO/ciao/Dynamic_Component_Servant_Base.cpp1
-rw-r--r--TAO/CIAO/ciao/Dynamic_Component_Servant_Base.h5
-rw-r--r--TAO/CIAO/ciao/ExecutionManager.idl50
-rw-r--r--TAO/CIAO/ciao/Home_Servant_Impl_Base.cpp5
-rw-r--r--TAO/CIAO/ciao/Home_Servant_Impl_Base.h5
-rw-r--r--TAO/CIAO/ciao/NodeApp_CB_Impl.h16
-rw-r--r--TAO/CIAO/ciao/NodeApplicationManager.idl46
-rw-r--r--TAO/CIAO/ciao/NodeApplication_CallBack.idl3
-rw-r--r--TAO/CIAO/ciao/NodeApplication_Impl.cpp516
-rw-r--r--TAO/CIAO/ciao/NodeApplication_Impl.h238
-rw-r--r--TAO/CIAO/ciao/NodeApplication_Impl.inl77
-rw-r--r--TAO/CIAO/ciao/NodeManager.idl38
-rw-r--r--TAO/CIAO/ciao/Packaging_Data.idl9
-rw-r--r--TAO/CIAO/ciao/Port_Activator.h4
-rw-r--r--TAO/CIAO/ciao/Port_Activator_T.cpp2
-rw-r--r--TAO/CIAO/ciao/RepositoryManager.idl38
-rw-r--r--TAO/CIAO/ciao/Servant_Activator.cpp20
-rw-r--r--TAO/CIAO/ciao/Servant_Impl_Base.cpp217
-rw-r--r--TAO/CIAO/ciao/Servant_Impl_Base.h116
-rw-r--r--TAO/CIAO/ciao/Servant_Impl_T.cpp6
-rw-r--r--TAO/CIAO/ciao/Servant_Impl_T.h2
-rw-r--r--TAO/CIAO/ciao/Servant_Impl_Utils_T.cpp143
-rw-r--r--TAO/CIAO/ciao/ServerResources.idl42
-rw-r--r--TAO/CIAO/ciao/Server_init.cpp271
-rw-r--r--TAO/CIAO/ciao/Server_init.h41
-rw-r--r--TAO/CIAO/ciao/StandardConfigurator_Impl.h1
-rw-r--r--TAO/CIAO/ciao/Swapping_Container.cpp2
-rw-r--r--TAO/CIAO/ciao/Swapping_Container.h7
-rw-r--r--TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.cpp7
-rw-r--r--TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.h7
-rw-r--r--TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.cpp8
-rw-r--r--TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.h11
-rw-r--r--TAO/CIAO/ciao/Target_Data.idl36
-rw-r--r--TAO/CIAO/ciao/Upgradeable_Context_Impl_T.cpp4
-rw-r--r--TAO/CIAO/ciao/Upgradeable_Context_Impl_T.h17
-rw-r--r--TAO/CIAO/ciao/Version.h10
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.cpp90
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.h78
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events.mpc20
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.cpp23
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h139
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl69
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc26
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Export.h53
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_Events_Export.h53
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEVENT_Export.h58
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp624
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h332
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.idl38
-rw-r--r--TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc25
-rw-r--r--TAO/CIAO/docs/imgs/dance_arch.jpgbin70526 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/imgs/dance_arch.vsdbin100352 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/imgs/static_dance_arch.jpgbin58112 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/imgs/static_dance_arch.vsdbin86528 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/imgs/static_dance_impl.jpgbin56080 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/imgs/static_dance_impl.vsdbin101888 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/index.html5
-rw-r--r--TAO/CIAO/docs/schema/Basic_Deployment_Data.xsd7
-rw-r--r--TAO/CIAO/docs/schema/CIAOEvents.xsd112
-rw-r--r--TAO/CIAO/docs/schema/cdd.xsd2
-rw-r--r--TAO/CIAO/docs/schema/cdp.xsd5
-rw-r--r--TAO/CIAO/docs/schema/xsc-banner.h2
-rw-r--r--TAO/CIAO/docs/static_dance.html214
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/01.html125
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/02.html422
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/03.html68
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/04.html57
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Icons/AddConnMode.gifbin106 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Icons/SetMode.gifbin125 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig1.jpgbin13971 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig10.jpgbin46474 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig11.jpgbin35787 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig12.jpgbin37716 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig2.jpgbin91314 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig3.jpgbin23857 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig4.jpgbin30686 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig5.jpgbin38395 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig6.jpgbin92958 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig7.jpgbin43408 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig8.jpgbin36874 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Images/fig9.jpgbin28539 -> 0 bytes
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/Model/Quoter.xme2003
-rw-r--r--TAO/CIAO/docs/tutorials/CoSMIC/index.html135
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cpp4
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.mpc4
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp4
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc4
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl1
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc2
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad2
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad2
-rw-r--r--TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp4
-rw-r--r--TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED.mpc3
-rw-r--r--TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED_exec.cpp2
-rw-r--r--TAO/CIAO/examples/BasicSP/BMDevice/BMDevice.mpc3
-rw-r--r--TAO/CIAO/examples/BasicSP/BMDisplay/BMDisplay.mpc3
-rw-r--r--TAO/CIAO/examples/BasicSP/BasicSP.mpc2
-rw-r--r--TAO/CIAO/examples/BasicSP/EC/EC.mpc7
-rw-r--r--TAO/CIAO/examples/BasicSP/EC/EC_exec.h2
-rw-r--r--TAO/CIAO/examples/BasicSP/EC/client.cpp2
-rw-r--r--TAO/CIAO/examples/BasicSP/EC/controller.cpp4
-rw-r--r--TAO/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad2
-rw-r--r--TAO/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad2
-rw-r--r--TAO/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad2
-rw-r--r--TAO/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad2
-rw-r--r--TAO/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp8
-rw-r--r--TAO/CIAO/examples/Display/GPS/GPS.mpc3
-rw-r--r--TAO/CIAO/examples/Display/HUDisplay.mpc18
-rw-r--r--TAO/CIAO/examples/Display/NavDisplay/NavDisplay.mpc3
-rw-r--r--TAO/CIAO/examples/Display/README.html10
-rw-r--r--TAO/CIAO/examples/Display/RateGen/RateGen.mpc24
-rw-r--r--TAO/CIAO/examples/Display/RateGen/RateGen_exec.h2
-rw-r--r--TAO/CIAO/examples/Display/RateGen/controller.cpp4
-rw-r--r--TAO/CIAO/examples/Display/descriptors/EM.ior1
-rw-r--r--TAO/CIAO/examples/Display/descriptors/GPS.ior1
-rw-r--r--TAO/CIAO/examples/Display/descriptors/NavDisplay.ior1
-rw-r--r--TAO/CIAO/examples/Display/descriptors/NavDisplayGUI.ior1
-rw-r--r--TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.idl1
-rw-r--r--TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc18
-rw-r--r--TAO/CIAO/examples/Hello/ReDaC-Usage.html308
-rw-r--r--TAO/CIAO/examples/Hello/Receiver/Receiver.mpc3
-rw-r--r--TAO/CIAO/examples/Hello/Sender/Sender.mpc4
-rw-r--r--TAO/CIAO/examples/Hello/Sender/Sender_exec.cpp20
-rw-r--r--TAO/CIAO/examples/Hello/Sender/starter.cpp4
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat4
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad2
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/Sender_Svnt.iad2
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/TestNodeManagerMap.dat3
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan.cdp24
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp6
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/rt-config-example.cdp215
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/rt-config-example.csr (renamed from TAO/CIAO/examples/Hello/descriptors_RTCCM/input.csr)0
-rw-r--r--TAO/CIAO/examples/Hello/descriptors/run_NodeDaemons.pl4
-rwxr-xr-xTAO/CIAO/examples/Hello/descriptors/run_test.pl9
-rwxr-xr-xTAO/CIAO/examples/Hello/descriptors/run_test_without_ns.pl4
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_RTCCM/NodeManagerMap.dat2
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_RTCCM/RTsvc.conf5
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.cdp215
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.csr75
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-example.cdp265
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_RTCCM/rt_run_test.pl163
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp222
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp267
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp223
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced37
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced21
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_events.cdp260
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_with_filters.cdp278
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_naming/deploymentplan_naming.cdp240
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp224
-rw-r--r--TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp229
-rw-r--r--TAO/CIAO/examples/Hello/step-by-step.html10
-rw-r--r--TAO/CIAO/examples/Swapping/Hello_Base/Hello_Base.mpc8
-rw-r--r--TAO/CIAO/examples/Swapping/Receiver/Receiver.mpc13
-rw-r--r--TAO/CIAO/examples/Swapping/Sender/Sender.mpc32
-rw-r--r--TAO/CIAO/examples/Swapping/Sender/Sender_exec.cpp2
-rw-r--r--TAO/CIAO/examples/Swapping/Sender/Sender_exec_1.cpp6
-rw-r--r--TAO/CIAO/examples/Swapping/Sender/Sender_exec_2.cpp2
-rw-r--r--TAO/CIAO/examples/Swapping/Sender/starter.cpp4
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/Benchmark.mpc10
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/LatencyTest.h13
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/Multi_Threaded/client.cpp2
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/RoundTrip/RoundTrip.mpc6
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp4
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc6
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp2
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc2
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/RoundTripServer/server.cpp2
-rw-r--r--TAO/CIAO/performance-tests/Benchmark/server.cpp2
-rw-r--r--TAO/CIAO/performance-tests/Protocols/Controller/Controller.cpp4
-rw-r--r--TAO/CIAO/performance-tests/Protocols/Controller/Controller.mpc1
-rw-r--r--TAO/CIAO/performance-tests/Protocols/Receiver/Receiver.mpc3
-rw-r--r--TAO/CIAO/performance-tests/Protocols/Sender/Sender.mpc3
-rw-r--r--TAO/CIAO/performance-tests/Protocols/common/Protocols.mpc8
-rw-r--r--TAO/CIAO/rules.ciao.GNU13
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/Logs/PROBLEM-REPORT-FORM93
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.cidl17
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.idl27
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc91
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPointEI.idl19
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp635
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h278
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec_export.h50
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_stub_export.h50
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_svnt_export.h50
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/controller.cpp203
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/descriptors/DeploymentPlan.cdp117
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/descriptors/TestNodeManagerMap.dat2
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/descriptors/rt-config-example.csr30
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/descriptors/run_test.pl177
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.idl52
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.mpc32
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_stub_export.h50
-rw-r--r--TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_svnt_export.h50
-rw-r--r--TAO/CIAO/tests/CIDL/CodeGen/CodeGen.mpc8
-rw-r--r--TAO/CIAO/tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Events/Regular/Regular.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Homes/Basic/Basic.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Homes/Factory/Factory.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Homes/Finder/Finder.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/ImpliedIDL/Events/Events.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/ImpliedIDL/Homes/Homes.mpc4
-rw-r--r--TAO/CIAO/tests/IDL3/Lookup/lookup_test.mpc4
-rw-r--r--TAO/CIAO/tests/Minimum/Minimum_Base/Minimum.mpc18
-rw-r--r--TAO/CIAO/tests/Minimum/Receiver/Receiver.mpc3
-rw-r--r--TAO/CIAO/tests/Minimum/Sender/Sender.mpc3
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ADD_Handler.cpp49
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Any_Handler.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Any_Handler.h4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.cpp871
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.hpp969
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CCD_Handler.cpp170
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CEPE_Handler.cpp5
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.cpp3015
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp1502
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.cpp155
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.h74
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers.mpc28
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers_Export.h54
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CIAO_Events/test.cpp58
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CPD_Handler.cpp66
-rw-r--r--TAO/CIAO/tools/Config_Handlers/CRDD_Handler.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ComponentPropertyDescription_Handler.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Config_Handlers.mpc17
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DD_Handler.cpp231
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DD_Handler.h139
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DP_Handler.cpp41
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DP_PCD_Handler.cpp9
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DataType_Handler.cpp290
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DnC_Dump.cpp2
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.h6
-rw-r--r--TAO/CIAO/tools/Config_Handlers/DynAny_Handler.mpc2
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ERE_Handler.cpp5
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ESD_Handler.cpp127
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ESD_Handler.h73
-rw-r--r--TAO/CIAO/tools/Config_Handlers/IDD_Handler.cpp48
-rw-r--r--TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp9
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ID_Handler.cpp5
-rw-r--r--TAO/CIAO/tools/Config_Handlers/IRDD_Handler.cpp5
-rw-r--r--TAO/CIAO/tools/Config_Handlers/MDD_Handler.cpp60
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Modified_Deployment.xsd688
-rw-r--r--TAO/CIAO/tools/Config_Handlers/PCD_Handler.cpp120
-rw-r--r--TAO/CIAO/tools/Config_Handlers/PSPE_Handler.cpp71
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Property_Handler.cpp6
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RDD_Handler.cpp6
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/CB_Handler.cpp1
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp400
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp301
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/PS_Handler.cpp6
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/TPL_Handler.cpp104
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Req_Handler.cpp39
-rw-r--r--TAO/CIAO/tools/Config_Handlers/STD_CPD_Handler.h12
-rw-r--r--TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Utils/Utils.mpc5
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Utils/XercesString.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/Utils/XercesString.h2
-rw-r--r--TAO/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp17
-rw-r--r--TAO/CIAO/tools/Config_Handlers/XML_File_Intf.cpp7
-rw-r--r--TAO/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp5
-rw-r--r--TAO/CIAO/tools/Config_Handlers/XSCRT/XML.hpp31
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ccd.cpp186
-rw-r--r--TAO/CIAO/tools/Config_Handlers/ccd.hpp102
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cdd.cpp280
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cdd.hpp209
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cdp.cpp96
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cdp.hpp66
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cid.cpp56
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cid.hpp122
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cpd.cpp2
-rw-r--r--TAO/CIAO/tools/Config_Handlers/cpd.hpp36
-rw-r--r--TAO/CIAO/tools/Config_Handlers/iad.cpp34
-rw-r--r--TAO/CIAO/tools/Config_Handlers/iad.hpp51
-rw-r--r--TAO/CIAO/tools/Config_Handlers/pcd.hpp23
-rw-r--r--TAO/CIAO/tools/Config_Handlers/test.cpp4
-rw-r--r--TAO/CIAO/tools/Config_Handlers/toplevel.cpp16
-rw-r--r--TAO/CIAO/tools/Config_Handlers/toplevel.hpp11
-rw-r--r--TAO/CIAO/tools/IDL3_to_IDL2/be_global.h16
-rw-r--r--TAO/CIAO/tools/IDL3_to_IDL2/be_init.cpp2
-rw-r--r--TAO/CIAO/tools/IDL3_to_IDL2/be_sunsoft.cpp22
-rw-r--r--TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp600
-rw-r--r--TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h6
-rw-r--r--TAO/COPYING23
-rw-r--r--TAO/ChangeLog21212
-rw-r--r--TAO/ChangeLogs/ChangeLog-05b8407
-rw-r--r--TAO/Makefile.am18
-rw-r--r--TAO/NEWS256
-rw-r--r--TAO/PROBLEM-REPORT-FORM5
-rw-r--r--TAO/Release17
-rw-r--r--TAO/TAO-INSTALL.html44
-rw-r--r--TAO/TAOACE.mwc (renamed from TAO/TAO_ACE.mwc)0
-rw-r--r--TAO/TAO_IDL/Makefile.am1
-rw-r--r--TAO/TAO_IDL/ast/ast_array.cpp12
-rw-r--r--TAO/TAO_IDL/ast/ast_attribute.cpp20
-rw-r--r--TAO/TAO_IDL/ast/ast_component.cpp26
-rw-r--r--TAO/TAO_IDL/ast/ast_component_fwd.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_constant.cpp28
-rw-r--r--TAO/TAO_IDL/ast/ast_decl.cpp135
-rw-r--r--TAO/TAO_IDL/ast/ast_enum.cpp28
-rw-r--r--TAO/TAO_IDL/ast/ast_eventtype.cpp14
-rw-r--r--TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp6
-rw-r--r--TAO/TAO_IDL/ast/ast_exception.cpp34
-rw-r--r--TAO/TAO_IDL/ast/ast_expression.cpp452
-rw-r--r--TAO/TAO_IDL/ast/ast_factory.cpp6
-rw-r--r--TAO/TAO_IDL/ast/ast_generator.cpp84
-rw-r--r--TAO/TAO_IDL/ast/ast_home.cpp24
-rw-r--r--TAO/TAO_IDL/ast/ast_interface.cpp92
-rw-r--r--TAO/TAO_IDL/ast/ast_interface_fwd.cpp12
-rw-r--r--TAO/TAO_IDL/ast/ast_module.cpp106
-rw-r--r--TAO/TAO_IDL/ast/ast_native.cpp12
-rw-r--r--TAO/TAO_IDL/ast/ast_operation.cpp16
-rw-r--r--TAO/TAO_IDL/ast/ast_predefined_type.cpp23
-rw-r--r--TAO/TAO_IDL/ast/ast_recursive.cpp58
-rw-r--r--TAO/TAO_IDL/ast/ast_redef.cpp10
-rw-r--r--TAO/TAO_IDL/ast/ast_sequence.cpp28
-rw-r--r--TAO/TAO_IDL/ast/ast_string.cpp2
-rw-r--r--TAO/TAO_IDL/ast/ast_structure.cpp57
-rw-r--r--TAO/TAO_IDL/ast/ast_structure_fwd.cpp6
-rw-r--r--TAO/TAO_IDL/ast/ast_type.cpp28
-rw-r--r--TAO/TAO_IDL/ast/ast_typedef.cpp8
-rw-r--r--TAO/TAO_IDL/ast/ast_union.cpp42
-rw-r--r--TAO/TAO_IDL/ast/ast_valuebox.cpp2
-rw-r--r--TAO/TAO_IDL/ast/ast_valuetype.cpp64
-rw-r--r--TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_argument.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_array.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_attribute.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_codegen.cpp193
-rw-r--r--TAO/TAO_IDL/be/be_component.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_decl.cpp346
-rw-r--r--TAO/TAO_IDL/be/be_enum.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_eventtype.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_exception.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_expression.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_field.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_generator.cpp70
-rw-r--r--TAO/TAO_IDL/be/be_global.cpp357
-rw-r--r--TAO/TAO_IDL/be/be_helper.cpp97
-rw-r--r--TAO/TAO_IDL/be/be_home.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_interface.cpp98
-rw-r--r--TAO/TAO_IDL/be/be_interface_fwd.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_native.cpp16
-rw-r--r--TAO/TAO_IDL/be/be_operation.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_predefined_type.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_sequence.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_string.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_structure.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_sunsoft.cpp22
-rw-r--r--TAO/TAO_IDL/be/be_type.cpp28
-rw-r--r--TAO/TAO_IDL/be/be_typedef.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_union.cpp44
-rw-r--r--TAO/TAO_IDL/be/be_valuetype.cpp110
-rw-r--r--TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp42
-rw-r--r--TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp228
-rw-r--r--TAO/TAO_IDL/be/be_visitor_arg_traits.cpp69
-rw-r--r--TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp198
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ch.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_cs.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_sh.cpp25
-rw-r--r--TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_context.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp21
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp3
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home.cpp1
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_home/home_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface.cpp1
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp30
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_si.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp17
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/base_proxy_broker_ch.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp19
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp34
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp50
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp118
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_ch.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_cs.cpp12
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp23
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp23
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_sh.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_ss.cpp32
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp47
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp40
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp21
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp271
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/argument.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp3
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation.cpp73
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp3
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp41
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp34
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root.cpp13
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_visitor_scope.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp1
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp3
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp3
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_traits.cpp54
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp17
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp217
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp3
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox.cpp1
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp5
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp109
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp223
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_cs.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp7
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp178
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp28
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp41
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp15
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp90
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp100
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be_include/be_array.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_attribute.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_codegen.h21
-rw-r--r--TAO/TAO_IDL/be_include/be_decl.h268
-rw-r--r--TAO/TAO_IDL/be_include/be_enum.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_eventtype.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_exception.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_expression.h3
-rw-r--r--TAO/TAO_IDL/be_include/be_generator.h69
-rw-r--r--TAO/TAO_IDL/be_include/be_global.h191
-rw-r--r--TAO/TAO_IDL/be_include/be_helper.h67
-rw-r--r--TAO/TAO_IDL/be_include/be_interface.h14
-rw-r--r--TAO/TAO_IDL/be_include/be_interface_fwd.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_operation.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_sequence.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_structure.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_type.h20
-rw-r--r--TAO/TAO_IDL/be_include/be_typedef.h10
-rw-r--r--TAO/TAO_IDL/be_include/be_union.h10
-rw-r--r--TAO/TAO_IDL/be_include/be_valuetype.h27
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_arg_traits.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_context.h20
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_operation/operation.h9
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_scope.h6
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_traits.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h13
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h7
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h4
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h10
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h2
-rw-r--r--TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h11
-rw-r--r--TAO/TAO_IDL/driver/drv_args.cpp89
-rw-r--r--TAO/TAO_IDL/driver/drv_preproc.cpp308
-rw-r--r--TAO/TAO_IDL/fe/fe_declarator.cpp12
-rw-r--r--TAO/TAO_IDL/fe/fe_init.cpp18
-rw-r--r--TAO/TAO_IDL/fe/fe_interface_header.cpp146
-rw-r--r--TAO/TAO_IDL/fe/idl.ll16
-rw-r--r--TAO/TAO_IDL/fe/idl.yy74
-rw-r--r--TAO/TAO_IDL/fe/lex.yy.cpp448
-rw-r--r--TAO/TAO_IDL/fe/lex.yy.cpp.diff69
-rw-r--r--TAO/TAO_IDL/fe/y.tab.cpp341
-rw-r--r--TAO/TAO_IDL/fe/y.tab.cpp.diff7
-rw-r--r--TAO/TAO_IDL/fe/y.tab.h2
-rw-r--r--TAO/TAO_IDL/include/ast_array.h4
-rw-r--r--TAO/TAO_IDL/include/ast_attribute.h13
-rw-r--r--TAO/TAO_IDL/include/ast_component.h8
-rw-r--r--TAO/TAO_IDL/include/ast_constant.h6
-rw-r--r--TAO/TAO_IDL/include/ast_decl.h57
-rw-r--r--TAO/TAO_IDL/include/ast_enum.h4
-rw-r--r--TAO/TAO_IDL/include/ast_eventtype.h6
-rw-r--r--TAO/TAO_IDL/include/ast_exception.h6
-rw-r--r--TAO/TAO_IDL/include/ast_expression.h11
-rw-r--r--TAO/TAO_IDL/include/ast_extern.h6
-rw-r--r--TAO/TAO_IDL/include/ast_generator.h65
-rw-r--r--TAO/TAO_IDL/include/ast_home.h8
-rw-r--r--TAO/TAO_IDL/include/ast_interface.h30
-rw-r--r--TAO/TAO_IDL/include/ast_interface_fwd.h8
-rw-r--r--TAO/TAO_IDL/include/ast_module.h6
-rw-r--r--TAO/TAO_IDL/include/ast_operation.h4
-rw-r--r--TAO/TAO_IDL/include/ast_sequence.h12
-rw-r--r--TAO/TAO_IDL/include/ast_structure.h16
-rw-r--r--TAO/TAO_IDL/include/ast_structure_fwd.h2
-rw-r--r--TAO/TAO_IDL/include/ast_type.h36
-rw-r--r--TAO/TAO_IDL/include/ast_typedef.h6
-rw-r--r--TAO/TAO_IDL/include/ast_union.h10
-rw-r--r--TAO/TAO_IDL/include/ast_valuetype.h20
-rw-r--r--TAO/TAO_IDL/include/drv_extern.h3
-rw-r--r--TAO/TAO_IDL/include/fe_interface_header.h57
-rw-r--r--TAO/TAO_IDL/include/global_extern.h4
-rw-r--r--TAO/TAO_IDL/include/idl_bool.h86
-rw-r--r--TAO/TAO_IDL/include/idl_global.h68
-rw-r--r--TAO/TAO_IDL/include/utl_identifier.h12
-rw-r--r--TAO/TAO_IDL/include/utl_list.h4
-rw-r--r--TAO/TAO_IDL/include/utl_namelist.h8
-rw-r--r--TAO/TAO_IDL/include/utl_scope.h32
-rw-r--r--TAO/TAO_IDL/include/utl_string.h4
-rw-r--r--TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h2
-rw-r--r--TAO/TAO_IDL/tao_idl.cpp36
-rw-r--r--TAO/TAO_IDL/tao_idl.mpc34
-rw-r--r--TAO/TAO_IDL/util/utl_err.cpp82
-rw-r--r--TAO/TAO_IDL/util/utl_global.cpp74
-rw-r--r--TAO/TAO_IDL/util/utl_identifier.cpp24
-rw-r--r--TAO/TAO_IDL/util/utl_idlist.cpp22
-rw-r--r--TAO/TAO_IDL/util/utl_list.cpp16
-rw-r--r--TAO/TAO_IDL/util/utl_namelist.cpp24
-rw-r--r--TAO/TAO_IDL/util/utl_scope.cpp187
-rw-r--r--TAO/TAO_IDL/util/utl_stack.cpp32
-rw-r--r--TAO/TAO_IDL/util/utl_string.cpp23
-rw-r--r--TAO/TAO_IDL/util/utl_strlist.cpp30
-rw-r--r--TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp14
-rw-r--r--TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp14
-rw-r--r--TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp14
-rw-r--r--TAO/VERSION3
-rw-r--r--TAO/WTAOACE.mwc25
-rw-r--r--TAO/configure.ac585
-rw-r--r--TAO/docs/INS.html2
-rw-r--r--TAO/docs/ORBEndpoint.html2
-rw-r--r--TAO/docs/Options.html103
-rw-r--r--TAO/docs/Security/SSLIOP-INSTALL.html14
-rw-r--r--TAO/docs/Smart_Proxies.html2
-rw-r--r--TAO/docs/TAO-metrics.html2
-rw-r--r--TAO/docs/TAO-tutorials.html11
-rw-r--r--TAO/docs/compiler.html54
-rw-r--r--TAO/docs/configurations.html2
-rw-r--r--TAO/docs/libraries.html15
-rw-r--r--TAO/docs/pluggable_messaging.html10
-rw-r--r--TAO/docs/pluggable_protocols/index.html7
-rw-r--r--TAO/docs/poa_migration.html4
-rw-r--r--TAO/docs/releasenotes/index.html70
-rw-r--r--TAO/docs/releasenotes/orbcore.html2
-rw-r--r--TAO/docs/rtcorba/features.html7
-rw-r--r--TAO/docs/rtcorba/issues.html4
-rw-r--r--TAO/docs/tutorials/Quoter/AMI/Handler_i.cpp8
-rw-r--r--TAO/docs/tutorials/Quoter/AMI/Handler_i.h8
-rw-r--r--TAO/docs/tutorials/Quoter/AMI/Makefile.am3
-rw-r--r--TAO/docs/tutorials/Quoter/AMI/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/AMI/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Event_Service/Makefile.am3
-rw-r--r--TAO/docs/tutorials/Quoter/Event_Service/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Event_Service/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Naming_Service/Quoter_Naming_Service.mpc10
-rw-r--r--TAO/docs/tutorials/Quoter/Naming_Service/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Naming_Service/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.cpp8
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.h8
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/Makefile.am3
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/RT_Event_Service/Makefile.am7
-rw-r--r--TAO/docs/tutorials/Quoter/RT_Event_Service/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/RT_Event_Service/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Client/Quoter_Simple_Client.mpc4
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Client/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Impl-Repo/Quoter_Simple_Impl_Repo.mpc10
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Impl-Repo/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Impl-Repo/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/ImprovedServer/Quoter_Simple_ImprovedServer.mpc4
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/ImprovedServer/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Persistent/Quoter_Simple_Persistent.mpc10
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Persistent/client.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Persistent/server.cpp2
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Server/Quoter_Simple_Server.mpc4
-rw-r--r--TAO/docs/tutorials/Quoter/Simple/Server/server.cpp2
-rw-r--r--TAO/examples/AMH/Sink_Server/AMH_Servant.cpp2
-rw-r--r--TAO/examples/AMH/Sink_Server/Base_Server.cpp4
-rw-r--r--TAO/examples/AMH/Sink_Server/Client_Task.cpp2
-rw-r--r--TAO/examples/AMH/Sink_Server/MT_AMH_Server.cpp2
-rw-r--r--TAO/examples/AMH/Sink_Server/Makefile.am104
-rw-r--r--TAO/examples/AMH/Sink_Server/Sink_Server.mpc21
-rw-r--r--TAO/examples/AMH/Sink_Server/client.cpp6
-rw-r--r--TAO/examples/AMH/Sink_Server/mt_server.cpp8
-rw-r--r--TAO/examples/AMH/Sink_Server/st_server.cpp8
-rw-r--r--TAO/examples/AMI/FL_Callback/Makefile.am13
-rw-r--r--TAO/examples/AMI/FL_Callback/Peer_i.cpp7
-rw-r--r--TAO/examples/AMI/FL_Callback/Peer_i.h2
-rw-r--r--TAO/examples/AMI/FL_Callback/peer.cpp10
-rw-r--r--TAO/examples/AMI/FL_Callback/progress.cpp4
-rw-r--r--TAO/examples/Advanced/ch_12/client.cpp2
-rw-r--r--TAO/examples/Advanced/ch_12/server.cpp2
-rw-r--r--TAO/examples/Advanced/ch_18/client.cpp2
-rw-r--r--TAO/examples/Advanced/ch_18/server.cpp2
-rw-r--r--TAO/examples/Advanced/ch_21/client.cpp2
-rw-r--r--TAO/examples/Advanced/ch_21/server.cpp2
-rw-r--r--TAO/examples/Advanced/ch_3/Makefile.am3
-rw-r--r--TAO/examples/Advanced/ch_3/client.cpp8
-rw-r--r--TAO/examples/Advanced/ch_3/server.cpp6
-rw-r--r--TAO/examples/Advanced/ch_8_and_10/client.cpp2
-rw-r--r--TAO/examples/Advanced/ch_8_and_10/server.cpp2
-rw-r--r--TAO/examples/Borland/ChatClient.bpr57
-rw-r--r--TAO/examples/Borland/ChatClient.cpp9
-rw-r--r--TAO/examples/Borland/ChatClient.mpc17
-rw-r--r--TAO/examples/Borland/ChatClient.resbin1794 -> 1794 bytes
-rw-r--r--TAO/examples/Borland/ChatClientWnd.cpp6
-rw-r--r--TAO/examples/Borland/README12
-rw-r--r--TAO/examples/Buffered_AMI/Buffered_AMI.mpc21
-rw-r--r--TAO/examples/Buffered_AMI/Makefile.am60
-rw-r--r--TAO/examples/Buffered_AMI/client.cpp19
-rw-r--r--TAO/examples/Buffered_AMI/server.cpp13
-rw-r--r--TAO/examples/Buffered_Oneways/Buffered_Oneways.mpc16
-rw-r--r--TAO/examples/Buffered_Oneways/Makefile.am61
-rw-r--r--TAO/examples/Buffered_Oneways/client.cpp11
-rw-r--r--TAO/examples/Buffered_Oneways/server.cpp13
-rw-r--r--TAO/examples/CSD_Strategy/Makefile.am18
-rw-r--r--TAO/examples/CSD_Strategy/README20
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc25
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/ClientApp.cpp143
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/ClientApp.h29
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/Foo.idl29
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/Foo_i.cpp112
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/Foo_i.h48
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/Makefile.am143
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.cpp77
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.h41
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/README57
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/ServerApp.cpp240
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/ServerApp.h30
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/client_main.cpp45
-rwxr-xr-xTAO/examples/CSD_Strategy/ThreadPool/run_test.pl61
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool/server_main.cpp43
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc26
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.cpp143
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.h30
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/Foo.idl29
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.cpp99
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h42
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.cpp86
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.h52
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/Makefile.am145
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.cpp77
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.h41
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/README61
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.cpp232
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.h30
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/client_main.cpp44
-rwxr-xr-xTAO/examples/CSD_Strategy/ThreadPool2/run_test.pl82
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool2/server_main.cpp44
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc26
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.cpp142
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.h30
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/Foo.idl29
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.cpp72
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.h39
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/Makefile.am145
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.cpp77
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.h41
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.cpp98
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.h37
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/README58
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.cpp272
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.h31
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/client_main.cpp44
-rwxr-xr-xTAO/examples/CSD_Strategy/ThreadPool3/run_test.pl61
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool3/server_main.cpp42
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc15
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Callback.idl11
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.cpp26
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.h26
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.cpp213
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.h38
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Foo.idl73
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.cpp302
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.h157
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/Makefile.am139
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.cpp77
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.h41
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/README23
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.cpp360
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h44
-rwxr-xr-xTAO/examples/CSD_Strategy/ThreadPool4/run_test.pl45
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool4/server_main.cpp43
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/CSD_Test_ThreadPool5.mpc37
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Callback.idl11
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.cpp26
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.h25
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp229
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.h31
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp263
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h44
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Foo.idl73
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.cpp226
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.h63
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.cpp313
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h165
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/Makefile.am232
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.cpp77
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.h41
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.cpp98
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.h37
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/README47
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.cpp357
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.h34
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/client_main.cpp45
-rwxr-xr-xTAO/examples/CSD_Strategy/ThreadPool5/run_test.pl135
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool5/server_main.cpp45
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/CSD_Test_ThreadPool6.mpc26
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.cpp143
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.h30
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/Foo.idl29
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.cpp113
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.h48
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/Makefile.am151
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.cpp77
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.h41
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/README14
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp243
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.h30
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/client_main.cpp45
-rwxr-xr-xTAO/examples/CSD_Strategy/ThreadPool6/run_test.pl60
-rw-r--r--TAO/examples/CSD_Strategy/ThreadPool6/server_main.cpp45
-rw-r--r--TAO/examples/Callback_Quoter/Callback_Quoter.mpc26
-rw-r--r--TAO/examples/Callback_Quoter/Consumer_Handler.cpp2
-rw-r--r--TAO/examples/Callback_Quoter/Makefile.am164
-rw-r--r--TAO/examples/Callback_Quoter/Notifier_Input_Handler.cpp4
-rw-r--r--TAO/examples/Callback_Quoter/Supplier_i.cpp4
-rw-r--r--TAO/examples/Callback_Quoter/consumer.cpp6
-rw-r--r--TAO/examples/Callback_Quoter/notifier.cpp6
-rw-r--r--TAO/examples/Callback_Quoter/supplier.cpp8
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc31
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/Content_Iterator_i.cpp2
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/Iterator_Handler.h4
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/Makefile.am69
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/client.cpp10
-rw-r--r--TAO/examples/Content_Server/AMI_Iterator/server.cpp7
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/AMI_Observer.mpc31
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/Callback_Handler.cpp6
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/Callback_Handler.h2
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/Makefile.am69
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h2
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/client.cpp10
-rw-r--r--TAO/examples/Content_Server/AMI_Observer/server.cpp7
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp2
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/Makefile.am67
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc20
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/client.cpp12
-rw-r--r--TAO/examples/Content_Server/SMI_Iterator/server.cpp7
-rw-r--r--TAO/examples/Event_Comm/Event_Comm.mpc22
-rw-r--r--TAO/examples/Event_Comm/Makefile.am83
-rw-r--r--TAO/examples/Event_Comm/consumer.cpp6
-rw-r--r--TAO/examples/Event_Comm/notifier.cpp6
-rw-r--r--TAO/examples/Event_Comm/supplier.cpp6
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.cpp6
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.h4
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.inl2
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am71
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/fp_example/client.cpp10
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/fp_example/fp_example.mpc16
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp12
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am73
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/mif_example/client.cpp10
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc19
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp12
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am71
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/muf_example/client.cpp10
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/muf_example/muf_example.mpc16
-rw-r--r--TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp12
-rw-r--r--TAO/examples/Load_Balancing/Identity_Client.cpp8
-rw-r--r--TAO/examples/Load_Balancing/Identity_Server.cpp10
-rw-r--r--TAO/examples/Load_Balancing/Load_Balancing.mpc25
-rw-r--r--TAO/examples/Load_Balancing/Load_Balancing_Service.cpp10
-rw-r--r--TAO/examples/Load_Balancing/Makefile.am215
-rwxr-xr-xTAO/examples/Load_Balancing_persistent/Identity_Client.cpp8
-rwxr-xr-xTAO/examples/Load_Balancing_persistent/Identity_Server.cpp12
-rwxr-xr-xTAO/examples/Load_Balancing_persistent/Load_Balancer_i.cpp6
-rwxr-xr-xTAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp10
-rw-r--r--TAO/examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc22
-rw-r--r--TAO/examples/Load_Balancing_persistent/Makefile.am187
-rw-r--r--TAO/examples/Logging/Logger_i.cpp8
-rw-r--r--TAO/examples/Logging/Logging.mpc17
-rw-r--r--TAO/examples/Logging/Logging_Service.cpp6
-rw-r--r--TAO/examples/Logging/Logging_Service_i.cpp2
-rw-r--r--TAO/examples/Logging/Logging_Test.cpp6
-rw-r--r--TAO/examples/Logging/Logging_Test_i.cpp2
-rw-r--r--TAO/examples/Logging/Makefile.am49
-rw-r--r--TAO/examples/Makefile.am1
-rw-r--r--TAO/examples/OBV/Simple_util.cpp6
-rw-r--r--TAO/examples/OBV/Typed_Events/Client_i.cpp2
-rw-r--r--TAO/examples/OBV/Typed_Events/Makefile.am59
-rw-r--r--TAO/examples/OBV/Typed_Events/Typed_Events.mpc23
-rw-r--r--TAO/examples/OBV/Typed_Events/client.cpp8
-rw-r--r--TAO/examples/OBV/Typed_Events/server.cpp8
-rw-r--r--TAO/examples/POA/Adapter_Activator/Makefile.am3
-rw-r--r--TAO/examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc7
-rwxr-xr-xTAO/examples/POA/Adapter_Activator/run_test.pl7
-rw-r--r--TAO/examples/POA/Adapter_Activator/server.cpp17
-rw-r--r--TAO/examples/POA/DSI/Makefile.am66
-rw-r--r--TAO/examples/POA/DSI/POA_DSI.mpc15
-rw-r--r--TAO/examples/POA/DSI/client.cpp12
-rw-r--r--TAO/examples/POA/DSI/server.cpp12
-rw-r--r--TAO/examples/POA/Default_Servant/Makefile.am62
-rw-r--r--TAO/examples/POA/Default_Servant/POA_Default_Servant.mpc15
-rw-r--r--TAO/examples/POA/Default_Servant/client.cpp10
-rwxr-xr-xTAO/examples/POA/Default_Servant/run_test.pl7
-rw-r--r--TAO/examples/POA/Default_Servant/server.cpp12
-rw-r--r--TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource.mpc14
-rw-r--r--TAO/examples/POA/Explicit_Activation/Alt_Resources/Makefile.am5
-rw-r--r--TAO/examples/POA/Explicit_Activation/Makefile.am7
-rw-r--r--TAO/examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc7
-rwxr-xr-xTAO/examples/POA/Explicit_Activation/run_test.pl7
-rw-r--r--TAO/examples/POA/Explicit_Activation/server.cpp17
-rw-r--r--TAO/examples/POA/FindPOA/FindPOA.cpp6
-rw-r--r--TAO/examples/POA/Forwarding/Makefile.am63
-rw-r--r--TAO/examples/POA/Forwarding/POA_Forwarding.mpc15
-rw-r--r--TAO/examples/POA/Forwarding/client.cpp10
-rw-r--r--TAO/examples/POA/Forwarding/server.cpp15
-rw-r--r--TAO/examples/POA/Generic_Servant/Makefile.am2
-rw-r--r--TAO/examples/POA/Generic_Servant/POA_Generic_Servant.mpc5
-rw-r--r--TAO/examples/POA/Generic_Servant/client.cpp11
-rw-r--r--TAO/examples/POA/Loader/Servant_Activator.cpp6
-rw-r--r--TAO/examples/POA/Loader/Servant_Locator.cpp6
-rw-r--r--TAO/examples/POA/Loader/Server_Manager.cpp9
-rwxr-xr-xTAO/examples/POA/Loader/run_test.pl7
-rw-r--r--TAO/examples/POA/Loader/server.cpp6
-rw-r--r--TAO/examples/POA/NewPOA/NewPOA.cpp7
-rw-r--r--TAO/examples/POA/On_Demand_Activation/Makefile.am3
-rw-r--r--TAO/examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc7
-rwxr-xr-xTAO/examples/POA/On_Demand_Activation/run_test.pl7
-rw-r--r--TAO/examples/POA/On_Demand_Activation/server.cpp15
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp6
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp9
-rwxr-xr-xTAO/examples/POA/On_Demand_Loading/run_test.pl7
-rw-r--r--TAO/examples/POA/On_Demand_Loading/server.cpp6
-rw-r--r--TAO/examples/POA/POA_BiDir/POA_BiDir.cpp8
-rw-r--r--TAO/examples/POA/Reference_Counted_Servant/Makefile.am3
-rw-r--r--TAO/examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc8
-rwxr-xr-xTAO/examples/POA/Reference_Counted_Servant/run_test.pl7
-rw-r--r--TAO/examples/POA/Reference_Counted_Servant/server.cpp13
-rw-r--r--TAO/examples/POA/RootPOA/RootPOA.cpp6
-rw-r--r--TAO/examples/POA/TIE/Makefile.am66
-rw-r--r--TAO/examples/POA/TIE/POA_TIE.mpc16
-rw-r--r--TAO/examples/POA/TIE/client.cpp10
-rw-r--r--TAO/examples/POA/TIE/server.cpp18
-rw-r--r--TAO/examples/Persistent_Grid/Grid_Client_i.cpp2
-rw-r--r--TAO/examples/Persistent_Grid/Grid_i.cpp2
-rw-r--r--TAO/examples/Persistent_Grid/Makefile.am88
-rw-r--r--TAO/examples/Persistent_Grid/Persistent_Client_i.cpp2
-rw-r--r--TAO/examples/Persistent_Grid/Persistent_Grid.mpc19
-rw-r--r--TAO/examples/Persistent_Grid/Simple_util.cpp6
-rw-r--r--TAO/examples/Persistent_Grid/client.cpp6
-rw-r--r--TAO/examples/Persistent_Grid/persistent_client.cpp7
-rw-r--r--TAO/examples/Persistent_Grid/server.cpp8
-rw-r--r--TAO/examples/PluggableUDP/tests/Basic/Basic.mpc28
-rw-r--r--TAO/examples/PluggableUDP/tests/Basic/Makefile.am59
-rw-r--r--TAO/examples/PluggableUDP/tests/Basic/UDP_Client_i.cpp2
-rw-r--r--TAO/examples/PluggableUDP/tests/Basic/client.cpp10
-rw-r--r--TAO/examples/PluggableUDP/tests/Basic/server.cpp12
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/Makefile.am59
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/Performance.mpc26
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp2
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/client.cpp10
-rw-r--r--TAO/examples/PluggableUDP/tests/Performance/server.cpp12
-rw-r--r--TAO/examples/PluggableUDP/tests/SimplePerformance/Makefile.am61
-rw-r--r--TAO/examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc27
-rw-r--r--TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp9
-rw-r--r--TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp12
-rw-r--r--TAO/examples/Quoter/Factory_Finder.cpp8
-rw-r--r--TAO/examples/Quoter/Generic_Factory.cpp10
-rw-r--r--TAO/examples/Quoter/Makefile.am132
-rw-r--r--TAO/examples/Quoter/Quoter.mpc27
-rw-r--r--TAO/examples/Quoter/client.cpp12
-rw-r--r--TAO/examples/Quoter/server.cpp8
-rw-r--r--TAO/examples/RTCORBA/Activity/Activity.cpp16
-rw-r--r--TAO/examples/RTCORBA/Activity/Activity.h3
-rw-r--r--TAO/examples/RTCORBA/Activity/Activity.mpc2
-rw-r--r--TAO/examples/RTCORBA/Activity/Builder.cpp4
-rw-r--r--TAO/examples/RTCORBA/Activity/Builder.h13
-rw-r--r--TAO/examples/RTCORBA/Activity/Job_i.cpp2
-rw-r--r--TAO/examples/RTCORBA/Activity/Job_i.h7
-rw-r--r--TAO/examples/RTCORBA/Activity/POA_Holder.cpp4
-rw-r--r--TAO/examples/RTCORBA/Activity/POA_Holder.h7
-rw-r--r--TAO/examples/RTCORBA/Activity/Periodic_Task.cpp6
-rw-r--r--TAO/examples/RTCORBA/Activity/Periodic_Task.h9
-rw-r--r--TAO/examples/RTCORBA/Activity/Task_Stats.cpp12
-rw-r--r--TAO/examples/RTCORBA/Activity/Task_Stats.h4
-rw-r--r--TAO/examples/RTCORBA/Activity/Task_Stats.inl2
-rw-r--r--TAO/examples/RTScheduling/DT_Creator.cpp10
-rw-r--r--TAO/examples/RTScheduling/DT_Creator.h2
-rw-r--r--TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp2
-rw-r--r--TAO/examples/RTScheduling/Fixed_Priority_Scheduler/Fixed_Priority_Scheduler.mpc2
-rw-r--r--TAO/examples/RTScheduling/Fixed_Priority_Scheduler/test.cpp6
-rw-r--r--TAO/examples/RTScheduling/Job_i.cpp10
-rw-r--r--TAO/examples/RTScheduling/Job_i.h7
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp5
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.mpc1
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp2
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.client2
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.server2
-rw-r--r--TAO/examples/RTScheduling/MIF_Scheduler/test.cpp6
-rw-r--r--TAO/examples/RTScheduling/POA_Holder.cpp4
-rw-r--r--TAO/examples/RTScheduling/POA_Holder.h7
-rw-r--r--TAO/examples/RTScheduling/Starter.cpp8
-rw-r--r--TAO/examples/RTScheduling/Synch_i.cpp2
-rw-r--r--TAO/examples/RTScheduling/Task_Stats.cpp4
-rw-r--r--TAO/examples/RTScheduling/Task_Stats.h4
-rw-r--r--TAO/examples/RTScheduling/Thread_Task.cpp6
-rw-r--r--TAO/examples/Simple/Simple_util.cpp6
-rw-r--r--TAO/examples/Simple/bank/AccountManager_i.h2
-rw-r--r--TAO/examples/Simple/bank/Makefile.am55
-rw-r--r--TAO/examples/Simple/bank/bank.mpc17
-rw-r--r--TAO/examples/Simple/bank/client.cpp7
-rw-r--r--TAO/examples/Simple/bank/server.cpp7
-rw-r--r--TAO/examples/Simple/chat/Client_i.cpp2
-rw-r--r--TAO/examples/Simple/chat/Makefile.am93
-rw-r--r--TAO/examples/Simple/chat/Server_i.cpp4
-rw-r--r--TAO/examples/Simple/chat/chat.mpc18
-rw-r--r--TAO/examples/Simple/chat/client.cpp6
-rw-r--r--TAO/examples/Simple/chat/server.cpp7
-rw-r--r--TAO/examples/Simple/echo/Echo_i.cpp2
-rw-r--r--TAO/examples/Simple/echo/Makefile.am50
-rw-r--r--TAO/examples/Simple/echo/client.cpp9
-rw-r--r--TAO/examples/Simple/echo/echo.mpc18
-rw-r--r--TAO/examples/Simple/echo/server.cpp8
-rw-r--r--TAO/examples/Simple/grid/Grid_Client_i.cpp2
-rw-r--r--TAO/examples/Simple/grid/Makefile.am50
-rw-r--r--TAO/examples/Simple/grid/client.cpp7
-rw-r--r--TAO/examples/Simple/grid/grid.mpc18
-rw-r--r--TAO/examples/Simple/grid/server.cpp8
-rw-r--r--TAO/examples/Simple/time-date/Makefile.am1
-rw-r--r--TAO/examples/Simple/time-date/Time_Date.cpp4
-rw-r--r--TAO/examples/Simple/time-date/client.cpp6
-rw-r--r--TAO/examples/Simple/time-date/server.cpp7
-rw-r--r--TAO/examples/Simple/time/Makefile.am50
-rw-r--r--TAO/examples/Simple/time/Time_Client_i.cpp2
-rw-r--r--TAO/examples/Simple/time/client.cpp7
-rw-r--r--TAO/examples/Simple/time/server.cpp8
-rw-r--r--TAO/examples/Simple/time/time.mpc18
-rw-r--r--TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp15
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Con.cpp11
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp15
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Event_Supplier.mpc30
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp15
-rw-r--r--TAO/examples/Simulator/Event_Supplier/Makefile.am145
-rw-r--r--TAO/examples/TypeCode_Creation/main.cpp9
-rw-r--r--TAO/examples/ior_corbaloc/Makefile.am95
-rw-r--r--TAO/examples/ior_corbaloc/client.cpp7
-rw-r--r--TAO/examples/ior_corbaloc/corbaname_client.cpp12
-rw-r--r--TAO/examples/ior_corbaloc/ior_corbaloc.mpc32
-rw-r--r--TAO/examples/ior_corbaloc/server.cpp9
-rw-r--r--TAO/examples/mfc/client.cpp9
-rw-r--r--TAO/interop-tests/wchar/Makefile.am51
-rw-r--r--TAO/interop-tests/wchar/client.cpp6
-rw-r--r--TAO/interop-tests/wchar/interop_wchar.mpc15
-rw-r--r--TAO/interop-tests/wchar/server.cpp2
-rw-r--r--TAO/interop-tests/wchar/wchar_reference.cpp44
-rw-r--r--TAO/interop-tests/wchar/wchar_reference.h26
-rw-r--r--TAO/m4/tao.m488
-rw-r--r--TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp22
-rw-r--r--TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h4
-rw-r--r--TAO/orbsvcs/Concurrency_Service/Concurrency_Service.mpc2
-rw-r--r--TAO/orbsvcs/Concurrency_Service/Makefile.am4
-rw-r--r--TAO/orbsvcs/CosEvent_Service/CosEvent_Service.mpc2
-rw-r--r--TAO/orbsvcs/Event_Service/Event_Service.cpp18
-rw-r--r--TAO/orbsvcs/Event_Service/Makefile.am2
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.cpp2
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.h2
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am2
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Factory_Service/EventChannelFactory_i.cpp12
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Factory_Service/FTRTEC_Factory_Service.cpp20
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am2
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/FTRTEC_Gateway_Service.cpp17
-rw-r--r--TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am2
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.cpp39
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h4
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.cpp3
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.h4
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp43
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h4
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.cpp26
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.h4
-rw-r--r--TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.cpp4
-rw-r--r--TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.h4
-rw-r--r--TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp104
-rw-r--r--TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h3
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.cpp160
-rwxr-xr-xTAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.h6
-rw-r--r--TAO/orbsvcs/FT_ReplicationManager/Makefile.am4
-rw-r--r--TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp8
-rw-r--r--TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.h12
-rw-r--r--TAO/orbsvcs/Fault_Detector/Fault_Detector_i.cpp3
-rw-r--r--TAO/orbsvcs/Fault_Detector/Fault_Detector_i.h12
-rw-r--r--TAO/orbsvcs/Fault_Detector/Makefile.am2
-rw-r--r--TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp8
-rw-r--r--TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.h11
-rw-r--r--TAO/orbsvcs/Fault_Notifier/Makefile.am2
-rw-r--r--TAO/orbsvcs/IFR_Service/IFR_Server.cpp2
-rw-r--r--TAO/orbsvcs/IFR_Service/IFR_Service.mpc3
-rw-r--r--TAO/orbsvcs/IFR_Service/Makefile.am3
-rw-r--r--TAO/orbsvcs/IFR_Service/be_global.cpp24
-rw-r--r--TAO/orbsvcs/IFR_Service/be_global.h19
-rw-r--r--TAO/orbsvcs/IFR_Service/be_init.cpp12
-rw-r--r--TAO/orbsvcs/IFR_Service/be_produce.cpp31
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp195
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp2
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp2
-rw-r--r--TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp2
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_Loader.cpp71
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h8
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.cpp8
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.h6
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp175
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_Options.h12
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Adapter_Activator.cpp12
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.cpp183
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.h2
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp143
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/INS_Locator.cpp61
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Activator.cpp105
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp436
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Locator.cpp57
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Locator.idl2
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp1814
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.h3
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc6
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Iterator.cpp60
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp68
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h10
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.cpp10
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.h6
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp231
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Options.h10
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp656
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_Repository.h4
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.cpp82
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.h10
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Makefile.am14
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp53
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp1011
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/tao_imr_i.h10
-rw-r--r--TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp2
-rw-r--r--TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.cpp4
-rw-r--r--TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.mpc2
-rw-r--r--TAO/orbsvcs/LifeCycle_Service/Makefile.am5
-rw-r--r--TAO/orbsvcs/LoadBalancer/LoadManager.cpp26
-rw-r--r--TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp44
-rw-r--r--TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp37
-rw-r--r--TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.h13
-rw-r--r--TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp37
-rw-r--r--TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h12
-rw-r--r--TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp37
-rw-r--r--TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.h12
-rw-r--r--TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am12
-rw-r--r--TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp36
-rw-r--r--TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.h12
-rw-r--r--TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc2
-rw-r--r--TAO/orbsvcs/Mobility_Service/GTP.idl2
-rw-r--r--TAO/orbsvcs/Naming_Service/Makefile.am9
-rw-r--r--TAO/orbsvcs/Naming_Service/NT_Naming_Server.cpp22
-rw-r--r--TAO/orbsvcs/Naming_Service/NT_Naming_Service.cpp16
-rw-r--r--TAO/orbsvcs/Naming_Service/NT_Naming_Service.h4
-rw-r--r--TAO/orbsvcs/Naming_Service/Naming_Server.cpp2
-rw-r--r--TAO/orbsvcs/Naming_Service/Naming_Service.cpp2
-rw-r--r--TAO/orbsvcs/Naming_Service/Naming_Service.mpc2
-rw-r--r--TAO/orbsvcs/Notify_Service/Makefile.am2
-rw-r--r--TAO/orbsvcs/Notify_Service/NT_Notify_Server.cpp22
-rw-r--r--TAO/orbsvcs/Notify_Service/NT_Notify_Service.cpp16
-rw-r--r--TAO/orbsvcs/Notify_Service/NT_Notify_Service.h4
-rw-r--r--TAO/orbsvcs/Notify_Service/Notify_Server.cpp4
-rw-r--r--TAO/orbsvcs/Notify_Service/Notify_Service.cpp161
-rw-r--r--TAO/orbsvcs/Notify_Service/Notify_Service.h4
-rw-r--r--TAO/orbsvcs/Notify_Service/Notify_Service.mpc1
-rw-r--r--TAO/orbsvcs/PSS/psdl_tao.cpp2
-rw-r--r--TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp12
-rw-r--r--TAO/orbsvcs/Time_Service/Clerk_i.cpp8
-rw-r--r--TAO/orbsvcs/Time_Service/Server_i.cpp6
-rw-r--r--TAO/orbsvcs/Trading_Service/Makefile.am1
-rw-r--r--TAO/orbsvcs/examples/CosEC/Factory/FactoryClient.cpp12
-rw-r--r--TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp6
-rw-r--r--TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.h4
-rw-r--r--TAO/orbsvcs/examples/CosEC/Factory/Makefile.am3
-rw-r--r--TAO/orbsvcs/examples/CosEC/Factory/main.cpp7
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc8
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.cpp14
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.h4
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Basic.cpp9
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc8
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.cpp11
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.h2
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc20
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am8
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.cpp2
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.h2
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.cpp11
-rw-r--r--TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.h2
-rw-r--r--TAO/orbsvcs/examples/CosEC/Simple/Consumer.cpp7
-rw-r--r--TAO/orbsvcs/examples/CosEC/Simple/Service.cpp13
-rw-r--r--TAO/orbsvcs/examples/CosEC/Simple/Supplier.cpp7
-rw-r--r--TAO/orbsvcs/examples/CosEC/TypedSimple/Consumer.cpp9
-rw-r--r--TAO/orbsvcs/examples/CosEC/TypedSimple/Supplier.cpp6
-rw-r--r--TAO/orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am7
-rw-r--r--TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.cpp1
-rw-r--r--TAO/orbsvcs/examples/FaultTolerance/RolyPoly/client.cpp12
-rw-r--r--TAO/orbsvcs/examples/FaultTolerance/RolyPoly/server.cpp13
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/Makefile.am4
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/TestClient.cpp53
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/TestClient.h5
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/TestServer.cpp40
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/client_main.cpp9
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/manager_main.cpp9
-rw-r--r--TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp9
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/Makefile.am6
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/combined.cpp10
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/controller.cpp9
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.cpp2
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h2
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp44
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/test_server.cpp7
-rw-r--r--TAO/orbsvcs/examples/LoadBalancing/LoadBalancing.mpc3
-rw-r--r--TAO/orbsvcs/examples/LoadBalancing/Makefile.am12
-rw-r--r--TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h2
-rw-r--r--TAO/orbsvcs/examples/LoadBalancing/client.cpp12
-rw-r--r--TAO/orbsvcs/examples/LoadBalancing/server.cpp13
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp4
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/TLS_Client.h4
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/main.cpp5
-rw-r--r--TAO/orbsvcs/examples/Log/Event/Event_Consumer.cpp5
-rw-r--r--TAO/orbsvcs/examples/Log/Event/Event_Supplier.cpp5
-rw-r--r--TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp5
-rw-r--r--TAO/orbsvcs/examples/Log/Notify/Notify_Supplier.cpp5
-rw-r--r--TAO/orbsvcs/examples/Log/RTEvent/Makefile.am12
-rw-r--r--TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Consumer.cpp5
-rw-r--r--TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.cpp5
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.cpp11
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.mpc7
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/Agent/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/Gate/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp9
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc7
-rw-r--r--TAO/orbsvcs/examples/Notify/Federation/federation.mwc5
-rw-r--r--TAO/orbsvcs/examples/Notify/Filter/Filter.cpp4
-rw-r--r--TAO/orbsvcs/examples/Notify/Filter/Filter.h4
-rw-r--r--TAO/orbsvcs/examples/Notify/Filter/main.cpp7
-rw-r--r--TAO/orbsvcs/examples/Notify/Lanes/Consumer_Client.cpp16
-rw-r--r--TAO/orbsvcs/examples/Notify/Lanes/Makefile.am9
-rw-r--r--TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.cpp18
-rw-r--r--TAO/orbsvcs/examples/Notify/Subscribe/Makefile.am8
-rw-r--r--TAO/orbsvcs/examples/Notify/Subscribe/Notify_Subscribe.mpc1
-rw-r--r--TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp7
-rw-r--r--TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.h4
-rw-r--r--TAO/orbsvcs/examples/Notify/Subscribe/main.cpp7
-rw-r--r--TAO/orbsvcs/examples/Notify/ThreadPool/Consumer_Client.cpp20
-rw-r--r--TAO/orbsvcs/examples/Notify/ThreadPool/Makefile.am14
-rw-r--r--TAO/orbsvcs/examples/Notify/ThreadPool/Supplier_Client.cpp24
-rw-r--r--TAO/orbsvcs/examples/ORT/Makefile.am5
-rw-r--r--TAO/orbsvcs/examples/ORT/ORT.mpc2
-rw-r--r--TAO/orbsvcs/examples/ORT/Server_IORInterceptor.cpp2
-rw-r--r--TAO/orbsvcs/examples/ORT/Server_IORInterceptor.h2
-rw-r--r--TAO/orbsvcs/examples/ORT/client.cpp12
-rw-r--r--TAO/orbsvcs/examples/ORT/gateway_server.cpp14
-rw-r--r--TAO/orbsvcs/examples/ORT/server.cpp14
-rw-r--r--TAO/orbsvcs/examples/PSS/Simple_Naming.cpp4
-rw-r--r--TAO/orbsvcs/examples/PSS/client.cpp2
-rw-r--r--TAO/orbsvcs/examples/PSS/server.cpp2
-rw-r--r--TAO/orbsvcs/examples/RtEC/IIOPGateway/Consumer.cpp9
-rw-r--r--TAO/orbsvcs/examples/RtEC/IIOPGateway/EC.cpp9
-rw-r--r--TAO/orbsvcs/examples/RtEC/IIOPGateway/Gateway.cpp9
-rw-r--r--TAO/orbsvcs/examples/RtEC/IIOPGateway/Makefile.am4
-rw-r--r--TAO/orbsvcs/examples/RtEC/IIOPGateway/Supplier.cpp9
-rw-r--r--TAO/orbsvcs/examples/RtEC/Kokyu/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/RtEC/Kokyu/Service.cpp13
-rw-r--r--TAO/orbsvcs/examples/RtEC/MCast/MCast.cpp11
-rw-r--r--TAO/orbsvcs/examples/RtEC/MCast/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/RtEC/Schedule/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp11
-rw-r--r--TAO/orbsvcs/examples/RtEC/Simple/Consumer.cpp7
-rw-r--r--TAO/orbsvcs/examples/RtEC/Simple/Makefile.am2
-rw-r--r--TAO/orbsvcs/examples/RtEC/Simple/Service.cpp11
-rw-r--r--TAO/orbsvcs/examples/RtEC/Simple/Supplier.cpp7
-rw-r--r--TAO/orbsvcs/examples/Security/SecurityLevel1/client.cpp4
-rw-r--r--TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp2
-rw-r--r--TAO/orbsvcs/examples/Security/Send_File/Makefile.am3
-rw-r--r--TAO/orbsvcs/examples/Security/Send_File/client.cpp11
-rw-r--r--TAO/orbsvcs/examples/Security/Send_File/server.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/AV.mpc3
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h32
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AVStreams_i.i7
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/AV_Core.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp35
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.i8
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Flows_T.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Flows_T.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/MCast.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/MCast.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/MCast.i9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Policy.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Policy.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Policy.i8
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp56
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/QoS_UDP.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/QoS_UDP.i9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp44
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTP.cpp38
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/RTP.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Resource_Factory.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/TCP.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/TCP.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Transport.cpp27
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Transport.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/Transport.i9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/UDP.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/UDP.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/UDP.i9
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/default_resource.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/default_resource.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/md5c.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/media_timer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/media_timer.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/ntp-time.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/sfp.cpp23
-rw-r--r--TAO/orbsvcs/orbsvcs/AV/sfp.h34
-rw-r--r--TAO/orbsvcs/orbsvcs/CSIIOP.idl2
-rw-r--r--TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Channel_Clients_T.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Channel_Clients_T.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h30
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/concurrency_serv_export.h40
-rw-r--r--TAO/orbsvcs/orbsvcs/Concurrency/concurrency_skel_export.h40
-rw-r--r--TAO/orbsvcs/orbsvcs/CosConcurrency.mpc98
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent.mpc65
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp42
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Defaults.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.i7
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp77
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i11
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/CosLifeCycle.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/CosLoadBalancing.mpc7
-rw-r--r--TAO/orbsvcs/orbsvcs/CosNaming.mpc10
-rw-r--r--TAO/orbsvcs/orbsvcs/CosNaming_Serv.mpc4
-rw-r--r--TAO/orbsvcs/orbsvcs/CosNaming_Skel.mpc1
-rw-r--r--TAO/orbsvcs/orbsvcs/CosNotification.mpc187
-rw-r--r--TAO/orbsvcs/orbsvcs/CosProperty.mpc101
-rw-r--r--TAO/orbsvcs/orbsvcs/CosTime.mpc19
-rw-r--r--TAO/orbsvcs/orbsvcs/CosTrading.mpc23
-rw-r--r--TAO/orbsvcs/orbsvcs/DsEventLogAdmin.mpc11
-rw-r--r--TAO/orbsvcs/orbsvcs/DsLogAdmin.mpc11
-rw-r--r--TAO/orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Defaults.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.i3
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL.ll6
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL.yy3
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i373
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint_Visitor.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/ETCL/ETCL_y.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Defaults.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.i7
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h71
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h23
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl7
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp25
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp68
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp29
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Factory.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp3
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.i10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.i11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Event_Service_Constants.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Event_Utilities.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Event_Utilities.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Event_Utilities.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/FTORB.mpc3
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp13
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h12
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp9
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h12
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp7
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.h15
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl7
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp130
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h26
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp12
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.i31
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.i70
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.inl7
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp14
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h12
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp8
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp9
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.h16
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h17
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp10
-rwxr-xr-xTAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp113
-rw-r--r--TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h39
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent.mpc11
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp34
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp27
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp3
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp42
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp26
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTRTEC_ServiceActivate.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp36
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Listener.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp47
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp29
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/replace_key.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl7
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/resolve_init.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP.mpc6
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp18
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService.mpc1
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp29
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Contained_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Container_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.inl2
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp60
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp41
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp42
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp37
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Options.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Options.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/Repository_i.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/concrete_classes.h60
-rw-r--r--TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/IOR_Multicast.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MonitorMap.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_conf.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/README35
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/BasicLog_i.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLogNotification.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/EventLog_i.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp228
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h36
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Iterator_i.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogActivator.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogActivator.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogNotification.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogRecordStore.h32
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogStore.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp108
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_i.cpp1141
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/Log_i.h122
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/PersistStore.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/PersistStore.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/rteventlog_serv_export.h37
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/rteventlog_skel_export.h37
-rw-r--r--TAO/orbsvcs/orbsvcs/Makefile.am790
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.i4
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp35
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Entries.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Entries.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp35
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Client.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Server.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h20
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable.h30
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp35
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.cpp46
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Admin.cpp133
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Admin.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Admin.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/AdminProperties.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/AdminProperties.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/AllocTracker.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp63
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp52
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp54
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp247
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.h23
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Builder.cpp58
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Builder.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp728
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Consumer.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Consumer.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Consumer_Map.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Container_T.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Container_T.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Container_T.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp70
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp37
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Default_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event.inl5
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp50
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventChannel.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp67
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventType.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventType.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventType.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Strategy.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/FilterFactory.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ID_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ID_Factory.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h27
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp47
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h25
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.h31
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.inl8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp1845
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h36
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Object.cpp184
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Object.h31
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Object.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h43
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/POA_Helper.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Peer.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Peer.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Properties.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Properties.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Properties.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/PropertySeq.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/PropertySeq.inl8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl5
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property_T.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property_T.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Property_T.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp34
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Proxy.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Proxy.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp53
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.h22
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp27
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp42
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp28
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Proxy_T.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Proxy_T.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp38
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/QoSProperties.h21
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/QoSProperties.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/README2
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Builder.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Properties.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/RT_Properties.inl5
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Random_File.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.h31
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp23
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp229
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable.h65
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp51
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.h20
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp29
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp26
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp164
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp25
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Service.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Service.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp30
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp26
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp31
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Supplier.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Supplier.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Supplier_Map.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp181
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.h50
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Factory.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp32
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Object.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Object.inl6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp37
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Loader.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp43
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup.mpc3
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/GOA.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h24
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp17
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp22
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl7
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp15
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set_Find.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp35
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PG_conf.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h20
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp26
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.i4
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp21
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp78
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp54
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h22
-rw-r--r--TAO/orbsvcs/orbsvcs/Property/property_serv_export.h40
-rw-r--r--TAO/orbsvcs/orbsvcs/Property/property_skel_export.h40
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i5
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i7
-rw-r--r--TAO/orbsvcs/orbsvcs/RTEvent.mpc6
-rw-r--r--TAO/orbsvcs/orbsvcs/RTEventLogAdmin.mpc104
-rw-r--r--TAO/orbsvcs/orbsvcs/RTEvent_Serv.mpc7
-rw-r--r--TAO/orbsvcs/orbsvcs/RTEvent_Skel.mpc5
-rw-r--r--TAO/orbsvcs/orbsvcs/RTSched.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/RT_Notification.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP.mpc6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp20
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.i4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i3
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp35
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.i4
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp29
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp29
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl3
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp13
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.c13
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.h28
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h17
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp34
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/DynSched.h18
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/DynSched.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp78
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.cpp27
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i9
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp2
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Scheduler.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp19
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp38
-rw-r--r--TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Scheduler_Factory.h16
-rw-r--r--TAO/orbsvcs/orbsvcs/Scheduler_Factory.i6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/CSI_Utils.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h5
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h3
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current.h19
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current.inl4
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp5
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp11
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Shutdown_Utilities.cpp23
-rw-r--r--TAO/orbsvcs/orbsvcs/Shutdown_Utilities.h15
-rw-r--r--TAO/orbsvcs/orbsvcs/Svc_Utils.mpc2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosConcurrency.pc.in4
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Serv.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Skel.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosEvent.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosEvent_Serv.pc.in8
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosNaming.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosNotification.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosNotification_Skel.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosProperty.pc.in4
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosProperty_Serv.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosProperty_Skel.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_CosTrading.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_DsLogAdmin.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_ETCL.pc.in2
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_RTEvent.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Serv.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Skel.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_RTEvent_Serv.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/TAO_RTEvent_Skel.pc.in11
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp47
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_TIO.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.h9
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/TAO_UTO.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Time/Timer_Helper.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Time_Utilities.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Time_Utilities.h7
-rw-r--r--TAO/orbsvcs/orbsvcs/Time_Utilities.i4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp9
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h10
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp10
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp23
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp7
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.h4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.cpp4
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.h8
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Locking.h2
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp12
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h13
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h11
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader.cpp16
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.cpp6
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.h14
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp40
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h20
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp14
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_T.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp8
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h6
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp24
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h12
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/constraint.l50
-rw-r--r--TAO/orbsvcs/orbsvcs/Trader/constraint.y3
-rw-r--r--TAO/orbsvcs/orbsvcs/ec_typed_events_serv.mpb16
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am9
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h2
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Colocated_Roundtrip.mpc7
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am2
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.cpp2
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/driver.cpp8
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Federated_Roundtrip.mpc8
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/client.cpp10
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am9
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc14
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp20
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am9
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc14
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp24
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Roundtrip.mpc14
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/client.cpp8
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/TCP_Baseline.mpc14
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/client.cpp30
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/server.cpp4
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.cpp6
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.h9
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/Low_Priority_Setup.h3
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/Makefile.am2
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.h3
-rw-r--r--TAO/orbsvcs/performance-tests/RTEvent/lib/Send_Task.h2
-rw-r--r--TAO/orbsvcs/performance-tests/perf.mwc2
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp2
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/distributer.cpp18
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/receiver.cpp23
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/receiver.cpp22
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp22
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Component_Switching/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Component_Switching/distributer.cpp18
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Component_Switching/receiver.cpp23
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Component_Switching/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Full_Profile/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp18
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Full_Profile/server.cpp18
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Full_Profile/server.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Latency/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Latency/control.cpp13
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp14
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Latency/pong.cpp14
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Modify_QoS/receiver.cpp24
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Modify_QoS/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast/ftp.cpp18
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast/ftp.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp17
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast/server.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.cpp17
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp16
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multiple_Flows/receiver.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Multiple_Flows/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.h1
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable/server.cpp24
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am24
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp24
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp13
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/receiver.cpp24
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/receiver.cpp28
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am20
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/receiver.cpp24
-rw-r--r--TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.cpp20
-rw-r--r--TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp8
-rw-r--r--TAO/orbsvcs/tests/Bug_1334_Regression/client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Bug_1393_Regression/client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Bug_1395_Regression/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/Bug_1395_Regression/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/Bug_1395_Regression/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/Bug_1630_Regression/testclient.cpp7
-rw-r--r--TAO/orbsvcs/tests/Bug_2074_Regression/Bug_2074_Regression.mpc10
-rw-r--r--TAO/orbsvcs/tests/Bug_2074_Regression/Makefile.am57
-rw-r--r--TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.cpp64
-rw-r--r--TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.h25
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2074_Regression/run_test.pl27
-rw-r--r--TAO/orbsvcs/tests/Bug_2074_Regression/test.cpp22
-rw-r--r--TAO/orbsvcs/tests/Bug_2137_Regression/Makefile.am2
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2137_Regression/client.cpp12
-rw-r--r--TAO/orbsvcs/tests/Bug_2247_Regression/Makefile.am5
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp38
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2247_Regression/server.cpp13
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2248_Regression/Bug_2248_Regression.mpc3
-rw-r--r--TAO/orbsvcs/tests/Bug_2248_Regression/Makefile.am8
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2248_Regression/client.cpp32
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2248_Regression/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc67
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/Hello.cpp74
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/Hello.h63
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/Makefile.am258
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/README96
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.cpp52
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.h51
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.cpp52
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.h51
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp145
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.h91
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.cpp240
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.h96
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/Test.idl43
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/client.cpp137
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/client2.cpp215
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2285_Regression/run_test.pl49
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2285_Regression/run_test2.pl70
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/server.cpp241
-rw-r--r--TAO/orbsvcs/tests/Bug_2285_Regression/server2.cpp175
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc39
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/Hello.cpp32
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/Hello.h45
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/Makefile.am159
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/README32
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.cpp52
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.h51
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp176
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.h98
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/Test.idl24
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/client.cpp110
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2287_Regression/run_test.pl49
-rw-r--r--TAO/orbsvcs/tests/Bug_2287_Regression/server.cpp243
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc36
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/Makefile.am136
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/README26
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/Test.idl12
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.cpp19
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.h19
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/client.cpp55
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2316_Regression/run_test.pl42
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/server.cpp38
-rw-r--r--TAO/orbsvcs/tests/Bug_2316_Regression/svc.conf4
-rw-r--r--TAO/orbsvcs/tests/Bug_2377_Regression/Bug_2377_Regression.mpc9
-rw-r--r--TAO/orbsvcs/tests/Bug_2377_Regression/Hello.cpp340
-rw-r--r--TAO/orbsvcs/tests/Bug_2377_Regression/Hello.idl9
-rwxr-xr-xTAO/orbsvcs/tests/Bug_2377_Regression/run_test.pl32
-rw-r--r--TAO/orbsvcs/tests/Bug_2377_Regression/svc.conf5
-rw-r--r--TAO/orbsvcs/tests/Concurrency/CC_client.cpp10
-rw-r--r--TAO/orbsvcs/tests/Concurrency/CC_client.h1
-rw-r--r--TAO/orbsvcs/tests/Concurrency/Makefile.am2
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/Disconnect.cpp7
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp7
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/Pull_Push_Event.cpp7
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/Push_Event.cpp7
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp9
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp9
-rw-r--r--TAO/orbsvcs/tests/CosEvent/Basic/basiceventtestexe.mpb7
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp13
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp13
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.mpc1
-rw-r--r--TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile.am5
-rw-r--r--TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp1
-rw-r--r--TAO/orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc2
-rw-r--r--TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp12
-rw-r--r--TAO/orbsvcs/tests/EC_MT_Mcast/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp1
-rwxr-xr-xTAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl18
-rw-r--r--TAO/orbsvcs/tests/EC_MT_Mcast/svc.conf2
-rw-r--r--TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp15
-rw-r--r--TAO/orbsvcs/tests/EC_Mcast/Makefile.am2
-rwxr-xr-xTAO/orbsvcs/tests/EC_Mcast/run_test.pl16
-rw-r--r--TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp13
-rw-r--r--TAO/orbsvcs/tests/EC_Multiple/Makefile.am2
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp1
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp13
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Driver.h4
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp1
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp13
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp13
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.mpc1
-rw-r--r--TAO/orbsvcs/tests/EC_Throughput/Makefile.am4
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/BCast.cpp15
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/BCast.h2
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Bitmask.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Complex.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Control.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Disconnect.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Gateway.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/MT_Disconnect.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Makefile.am30
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Negation.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Observer.cpp11
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Observer.h2
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Random.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Reconnect.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Schedule.cpp4
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Schedule.h2
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Shutdown.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Timeout.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/Wildcard.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Basic/rteventtestexe.mpb7
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h2
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Common/Makefile.am2
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Complex/Complex.mpc25
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Complex/Makefile.am6
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Complex/gateway-ec.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Complex/supplier.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Simple/Makefile.am6
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Simple/Simple.mpc27
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Simple/gateway-ec.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Simple/supplier.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am4
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc16
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp11
-rw-r--r--TAO/orbsvcs/tests/Event/Mcast/Two_Way/gateway-ec.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Connect.cpp9
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Inversion.cpp11
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Latency.cpp13
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Latency.h2
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Latency_Server.cpp13
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Makefile.am10
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/Throughput.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/Performance/eventperftestexe.mpb8
-rw-r--r--TAO/orbsvcs/tests/Event/lib/Driver.cpp7
-rw-r--r--TAO/orbsvcs/tests/Event/lib/Driver.h3
-rw-r--r--TAO/orbsvcs/tests/Event/lib/Makefile.am2
-rw-r--r--TAO/orbsvcs/tests/FT_App/FTAPP_Analyzer_Main.cpp2
-rw-r--r--TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp2
-rw-r--r--TAO/orbsvcs/tests/FT_App/FTAPP_FaultConsumer_Main.cpp2
-rw-r--r--TAO/orbsvcs/tests/FT_App/FTAPP_Notifier_Main.cpp2
-rw-r--r--TAO/orbsvcs/tests/FT_App/FT_Client.cpp13
-rw-r--r--TAO/orbsvcs/tests/FT_App/FT_Creator.cpp11
-rw-r--r--TAO/orbsvcs/tests/FT_App/FT_Creator.h4
-rw-r--r--TAO/orbsvcs/tests/FT_App/FT_Replica.cpp2
-rw-r--r--TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp5
-rwxr-xr-xTAO/orbsvcs/tests/FT_App/FT_ReplicationManagerController.cpp14
-rw-r--r--TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp4
-rw-r--r--TAO/orbsvcs/tests/FT_App/Makefile.am19
-rwxr-xr-xTAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp5
-rw-r--r--TAO/orbsvcs/tests/FT_App/StubBatchConsumer.cpp1
-rw-r--r--TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.cpp5
-rw-r--r--TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp3
-rw-r--r--TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp5
-rw-r--r--TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp2
-rw-r--r--TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.h2
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am7
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp26
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.h5
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp33
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/server.cpp15
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl1
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/IOGR/Makefile.am7
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp22
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/IOGR/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/IOGRTest.cpp7
-rw-r--r--TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile.am2
-rw-r--r--TAO/orbsvcs/tests/FtRtEvent/Makefile.am4
-rw-r--r--TAO/orbsvcs/tests/FtRtEvent/PushSupplier.h2
-rw-r--r--TAO/orbsvcs/tests/FtRtEvent/consumer.cpp13
-rw-r--r--TAO/orbsvcs/tests/FtRtEvent/supplier.cpp13
-rw-r--r--TAO/orbsvcs/tests/HTIOP/AMI/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp4
-rw-r--r--TAO/orbsvcs/tests/HTIOP/AMI/client.cpp19
-rw-r--r--TAO/orbsvcs/tests/HTIOP/AMI/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp19
-rw-r--r--TAO/orbsvcs/tests/HTIOP/BiDirectional/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp4
-rw-r--r--TAO/orbsvcs/tests/HTIOP/BiDirectional/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/HTIOP/BiDirectional/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/HTIOP/Hello/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp4
-rw-r--r--TAO/orbsvcs/tests/HTIOP/Hello/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/HTIOP/Hello/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/HTIOP/test_config.h4
-rw-r--r--TAO/orbsvcs/tests/IOR_MCast/IOR_MCast.mpc3
-rw-r--r--TAO/orbsvcs/tests/IOR_MCast/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/IOR_MCast/client.cpp6
-rw-r--r--TAO/orbsvcs/tests/IOR_MCast/ior_mcast_client_i.cpp4
-rw-r--r--TAO/orbsvcs/tests/IOR_MCast/server.cpp6
-rw-r--r--TAO/orbsvcs/tests/IOR_MCast/server_i.cpp5
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/ImplRepo.mpc3
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/Makefile.am8
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/NameService/test.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/airplane_client.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/airplane_client_i.cpp3
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/airplane_server_i.cpp5
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_client.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp3
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp4
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp5
-rwxr-xr-xTAO/orbsvcs/tests/ImplRepo/run_test.pl114
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/scale/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/scale/client.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/scale/server.cpp7
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/scale/server_i.cpp3
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp9
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp10
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp9
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.idl33
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.mpc11
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/Makefile.am42
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/README75
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp120
-rwxr-xr-xTAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl156
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp70
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp14
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc1
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile.am5
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp8
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Makefile.am1
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp19
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp8
-rw-r--r--TAO/orbsvcs/tests/Interoperable_Naming/client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp30
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/LB_server.cpp2
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/README11
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/server.cpp7
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/LB_server.cpp2
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/README8
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp7
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/server.cpp7
-rw-r--r--TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp10
-rw-r--r--TAO/orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp8
-rw-r--r--TAO/orbsvcs/tests/Log/Basic_Log_Test/client.cpp5
-rw-r--r--TAO/orbsvcs/tests/Makefile.am4
-rw-r--r--TAO/orbsvcs/tests/Miop/McastHello/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/Miop/McastHello/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/Miop/McastHello/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/AdminProperties.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Basic.mpc10
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Events.cpp15
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Events.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Filter.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Filter.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/IdAssignment.cpp19
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/LifeCycle.cpp19
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Makefile.am90
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/MultiTypes.cpp14
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/MultiTypes.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Sequence.cpp23
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Sequence.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Simple.cpp15
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Simple.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Updates.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/Basic/Updates.h2
-rwxr-xr-xTAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl20
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/Blocking.mpc1
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp4
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp12
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/common.cpp63
-rw-r--r--TAO/orbsvcs/tests/Notify/Blocking/common.h26
-rw-r--r--TAO/orbsvcs/tests/Notify/Destroy/Makefile.am9
-rw-r--r--TAO/orbsvcs/tests/Notify/Destroy/main.cpp5
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Discarding.mpc2
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Makefile.am53
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp6
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/common.cpp63
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/common.h26
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/notify.conf2
-rw-r--r--TAO/orbsvcs/tests/Notify/Driver/Makefile.am9
-rw-r--r--TAO/orbsvcs/tests/Notify/Driver/main.cpp5
-rw-r--r--TAO/orbsvcs/tests/Notify/MT_Dispatching/MT_Dispatching.mpc3
-rw-r--r--TAO/orbsvcs/tests/Notify/MT_Dispatching/Makefile.am21
-rw-r--r--TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/Makefile.am53
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/Ordering.mpc2
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/common.cpp63
-rw-r--r--TAO/orbsvcs/tests/Notify/Ordering/common.h26
-rw-r--r--TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/RT_lib/Makefile.am2
-rw-r--r--TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp31
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/Makefile.am18
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp38
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/event.conf2
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf4
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_topo.conf2
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf4
-rw-r--r--TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_topo.conf2
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp108
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Seq_Multi_ETCL_Filter.mpc1
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp13
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp89
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp63
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.h26
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am28
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp55
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Seq_Multi_Filter.mpc1
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp256
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp86
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp63
-rw-r--r--TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.h26
-rwxr-xr-xTAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl68
-rw-r--r--TAO/orbsvcs/tests/Notify/Structured_Filter/Makefile.am21
-rw-r--r--TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp10
-rw-r--r--TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am21
-rw-r--r--TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp12
-rw-r--r--TAO/orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp4
-rw-r--r--TAO/orbsvcs/tests/Notify/XML_Persistence/XML_Persistence.mpc1
-rw-r--r--TAO/orbsvcs/tests/Notify/XML_Persistence/main.cpp15
-rwxr-xr-xTAO/orbsvcs/tests/Notify/XML_Persistence/run_test.pl3
-rw-r--r--TAO/orbsvcs/tests/Notify/XML_Persistence/svc.conf2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp14
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Application_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command.cpp2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command.h10
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Command_Builder.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp10
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Driver.cpp31
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Driver.h2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp12
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Filter_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Makefile.am6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Name.cpp45
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Name.h34
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h4
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Notify_lib.mpc2
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp10
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Options_Parser.h10
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Peer.cpp3
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Peer.h8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp1
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h12
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp16
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp7
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h12
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp16
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp10
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h6
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp14
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Task_Stats.h8
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl1
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/common.cpp56
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/common.h36
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/Filter.mpc4
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am53
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp23
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp11
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp63
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.h26
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile.am9
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp35
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h4
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp9
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am9
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp13
-rw-r--r--TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h2
-rw-r--r--TAO/orbsvcs/tests/Property/Makefile.am6
-rw-r--r--TAO/orbsvcs/tests/Property/Property.mpc2
-rw-r--r--TAO/orbsvcs/tests/Property/client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Property/client.h1
-rw-r--r--TAO/orbsvcs/tests/Property/main.cpp2
-rw-r--r--TAO/orbsvcs/tests/Property/server.cpp8
-rw-r--r--TAO/orbsvcs/tests/RTCosScheduling/client.cpp2
-rw-r--r--TAO/orbsvcs/tests/RTCosScheduling/server.cpp2
-rw-r--r--TAO/orbsvcs/tests/Redundant_Naming/client.cpp17
-rw-r--r--TAO/orbsvcs/tests/Sched/DynSched_Test.cpp3
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp12
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp6
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp2
-rw-r--r--TAO/orbsvcs/tests/Security/BiDirectional/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/Security/BiDirectional/client.cpp15
-rw-r--r--TAO/orbsvcs/tests/Security/BiDirectional/server.cpp13
-rw-r--r--TAO/orbsvcs/tests/Security/BiDirectional/test_i.cpp8
-rw-r--r--TAO/orbsvcs/tests/Security/Big_Request/Makefile.am7
-rw-r--r--TAO/orbsvcs/tests/Security/Big_Request/client.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/Big_Request/server.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/Callback/Makefile.am8
-rw-r--r--TAO/orbsvcs/tests/Security/Callback/client.cpp2
-rw-r--r--TAO/orbsvcs/tests/Security/Callback/server.cpp2
-rw-r--r--TAO/orbsvcs/tests/Security/Crash_Test/Makefile.am13
-rw-r--r--TAO/orbsvcs/tests/Security/Crash_Test/Security_Crash_Test.mpc4
-rw-r--r--TAO/orbsvcs/tests/Security/Crash_Test/client.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/Crash_Test/server.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/MT_IIOP_SSL/MT_IIOP_SSL.mpc2
-rw-r--r--TAO/orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am8
-rw-r--r--TAO/orbsvcs/tests/Security/MT_IIOP_SSL/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/Security/MT_IIOP_SSL/server.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/MT_SSLIOP/Makefile.am7
-rw-r--r--TAO/orbsvcs/tests/Security/MT_SSLIOP/client.cpp4
-rwxr-xr-xTAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl64
-rw-r--r--TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_heavy.pl65
-rw-r--r--TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/Secure_Invocation/Makefile.am10
-rw-r--r--TAO/orbsvcs/tests/Security/Secure_Invocation/Secure_Invocation.mpc4
-rw-r--r--TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp15
-rw-r--r--TAO/orbsvcs/tests/Security/Secure_Invocation/server.cpp4
-rw-r--r--TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/Simple_Naming/client.cpp11
-rw-r--r--TAO/orbsvcs/tests/Time/Client_i.cpp3
-rw-r--r--TAO/orbsvcs/tests/Time/client.cpp7
-rw-r--r--TAO/orbsvcs/tests/Trading/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/Trading/Offer_Importer.cpp2
-rw-r--r--TAO/orbsvcs/tests/Trading/TT_Info.cpp6
-rw-r--r--TAO/orbsvcs/tests/Trading/TT_Info.h1
-rw-r--r--TAO/orbsvcs/tests/Trading/Trading.mpc2
-rw-r--r--TAO/orbsvcs/tests/Trading/colocated_test.cpp11
-rw-r--r--TAO/orbsvcs/tests/Trading/export_test.cpp12
-rw-r--r--TAO/orbsvcs/tests/Trading/import_test.cpp8
-rwxr-xr-xTAO/orbsvcs/tests/Trading/run_test.pl8
-rw-r--r--TAO/orbsvcs/tests/ior_corbaname/Makefile.am3
-rw-r--r--TAO/orbsvcs/tests/ior_corbaname/client.cpp6
-rw-r--r--TAO/orbsvcs/tests/ior_corbaname/ior_corbaname_client_i.cpp1
-rw-r--r--TAO/orbsvcs/tests/ior_corbaname/server.cpp7
-rw-r--r--TAO/orbsvcs/tests/tests_svc_loader/tests_svc_loader.cpp8
-rw-r--r--TAO/performance-tests/AMI_Latency/Roundtrip.cpp26
-rw-r--r--TAO/performance-tests/AMI_Latency/Roundtrip.h46
-rw-r--r--TAO/performance-tests/AMI_Latency/Roundtrip_Handler.cpp75
-rw-r--r--TAO/performance-tests/AMI_Latency/Roundtrip_Handler.h61
-rw-r--r--TAO/performance-tests/AMI_Latency/Server_Task.cpp24
-rw-r--r--TAO/performance-tests/AMI_Latency/client.cpp185
-rw-r--r--TAO/performance-tests/AMI_Latency/server.cpp155
-rw-r--r--TAO/performance-tests/Anyop/Anyop.mpc1
-rw-r--r--TAO/performance-tests/Anyop/Makefile.am5
-rw-r--r--TAO/performance-tests/Anyop/anyop.cpp4
-rw-r--r--TAO/performance-tests/CSD_Strategy/Makefile.am15
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.cpp200
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.h63
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/Makefile.am78
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/README64
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.cpp430
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.h95
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/client_main.cpp7
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/csd_pt_testapps.mpc21
-rwxr-xr-xTAO/performance-tests/CSD_Strategy/TestApps/run_test.pl244
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestApps/server_main.cpp5
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.cpp102
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.h114
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.cpp84
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.h42
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/CSD_PT_TestInf_Export.h58
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/CancelledException.idl7
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.cpp12
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.h39
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.cpp117
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.h53
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/CustomException.idl7
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/FooException.idl7
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/Makefile.am211
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.cpp57
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.h24
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.cpp75
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.h40
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.cpp98
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h39
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/README13
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.cpp102
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.h67
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.cpp30
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h36
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/TestAppException.idl7
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/TestAppMain.h49
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc38
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/CSD_PT_TestServant_Export.h58
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo.idl29
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.cpp88
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.h41
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.cpp75
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h33
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp83
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.h45
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/Makefile.am86
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/README10
-rw-r--r--TAO/performance-tests/CSD_Strategy/TestServant/csd_pt_testservant.mpc20
-rw-r--r--TAO/performance-tests/Callback/Makefile.am11
-rw-r--r--TAO/performance-tests/Callback/client.cpp4
-rw-r--r--TAO/performance-tests/Callback/server.cpp4
-rw-r--r--TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile.am2
-rw-r--r--TAO/performance-tests/Cubit/TAO/DII_Cubit/client.cpp6
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp2
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp2
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am23
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.cpp7
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp4
-rw-r--r--TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.cpp7
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp2
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h2
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile.am19
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp2
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp56
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp7
-rw-r--r--TAO/performance-tests/DII_Latency/Roundtrip.cpp26
-rw-r--r--TAO/performance-tests/DII_Latency/Roundtrip.h46
-rw-r--r--TAO/performance-tests/DII_Latency/client.cpp178
-rw-r--r--TAO/performance-tests/DII_Latency/server.cpp136
-rw-r--r--TAO/performance-tests/DSI_Latency/Roundtrip.cpp97
-rw-r--r--TAO/performance-tests/DSI_Latency/Roundtrip.h48
-rw-r--r--TAO/performance-tests/DSI_Latency/client.cpp163
-rw-r--r--TAO/performance-tests/DSI_Latency/server.cpp142
-rw-r--r--TAO/performance-tests/Deferred_Latency/Roundtrip.cpp26
-rw-r--r--TAO/performance-tests/Deferred_Latency/Roundtrip.h46
-rw-r--r--TAO/performance-tests/Deferred_Latency/client.cpp203
-rw-r--r--TAO/performance-tests/Deferred_Latency/server.cpp136
-rw-r--r--TAO/performance-tests/Latency/AMH_Single_Threaded/Makefile.am7
-rw-r--r--TAO/performance-tests/Latency/AMH_Single_Threaded/client.cpp4
-rw-r--r--TAO/performance-tests/Latency/AMH_Single_Threaded/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/AMI/Makefile.am7
-rw-r--r--TAO/performance-tests/Latency/AMI/Roundtrip_Handler.cpp12
-rw-r--r--TAO/performance-tests/Latency/AMI/Roundtrip_Handler.h4
-rw-r--r--TAO/performance-tests/Latency/AMI/client.cpp4
-rw-r--r--TAO/performance-tests/Latency/AMI/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/Collocation/Collocated_Test.cpp4
-rw-r--r--TAO/performance-tests/Latency/Collocation/Makefile.am5
-rw-r--r--TAO/performance-tests/Latency/DII/Makefile.am9
-rw-r--r--TAO/performance-tests/Latency/DII/client.cpp10
-rw-r--r--TAO/performance-tests/Latency/DII/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/DSI/Makefile.am4
-rw-r--r--TAO/performance-tests/Latency/DSI/Roundtrip.cpp2
-rw-r--r--TAO/performance-tests/Latency/DSI/client.cpp4
-rw-r--r--TAO/performance-tests/Latency/DSI/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/Deferred/Makefile.am9
-rw-r--r--TAO/performance-tests/Latency/Deferred/client.cpp6
-rw-r--r--TAO/performance-tests/Latency/Deferred/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/Single_Threaded/Makefile.am19
-rw-r--r--TAO/performance-tests/Latency/Single_Threaded/client.cpp4
-rw-r--r--TAO/performance-tests/Latency/Single_Threaded/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/Thread_Per_Connection/Makefile.am19
-rw-r--r--TAO/performance-tests/Latency/Thread_Per_Connection/client.cpp4
-rw-r--r--TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp4
-rw-r--r--TAO/performance-tests/Latency/Thread_Pool/Makefile.am19
-rw-r--r--TAO/performance-tests/Latency/Thread_Pool/client.cpp4
-rw-r--r--TAO/performance-tests/Latency/Thread_Pool/server.cpp4
-rw-r--r--TAO/performance-tests/Memory/IORsize/Makefile.am3
-rw-r--r--TAO/performance-tests/Memory/IORsize/client.cpp4
-rw-r--r--TAO/performance-tests/Memory/IORsize/server.cpp4
-rw-r--r--TAO/performance-tests/Memory/Single_Threaded/Makefile.am3
-rw-r--r--TAO/performance-tests/Memory/Single_Threaded/client.cpp4
-rw-r--r--TAO/performance-tests/Memory/Single_Threaded/server.cpp4
-rw-r--r--TAO/performance-tests/POA/Create_Reference/Create_Reference.mpc1
-rw-r--r--TAO/performance-tests/POA/Create_Reference/Makefile.am5
-rw-r--r--TAO/performance-tests/POA/Create_Reference/create_reference.cpp4
-rw-r--r--TAO/performance-tests/POA/Demux/Makefile.am3
-rw-r--r--TAO/performance-tests/POA/Demux/client.cpp2
-rw-r--r--TAO/performance-tests/POA/Demux/demux_stats.cpp4
-rw-r--r--TAO/performance-tests/POA/Demux/demux_test_client.cpp2
-rw-r--r--TAO/performance-tests/POA/Demux/demux_test_server.cpp2
-rw-r--r--TAO/performance-tests/POA/Demux/server.cpp2
-rw-r--r--TAO/performance-tests/POA/Demux/write_names.cpp2
-rw-r--r--TAO/performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc7
-rw-r--r--TAO/performance-tests/POA/Implicit_Activation/Makefile.am15
-rw-r--r--TAO/performance-tests/POA/Implicit_Activation/client.cpp4
-rw-r--r--TAO/performance-tests/POA/Implicit_Activation/collocated.cpp4
-rw-r--r--TAO/performance-tests/POA/Implicit_Activation/server.cpp4
-rw-r--r--TAO/performance-tests/POA/Object_Creation_And_Registration/Makefile.am5
-rw-r--r--TAO/performance-tests/POA/Object_Creation_And_Registration/Object_Creation_And_Registration.mpc1
-rw-r--r--TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp4
-rw-r--r--TAO/performance-tests/Pluggable/Makefile.am3
-rw-r--r--TAO/performance-tests/Pluggable/PP_Test_Client.cpp2
-rw-r--r--TAO/performance-tests/Pluggable/PP_Test_Server.cpp2
-rw-r--r--TAO/performance-tests/Pluggable/client.cpp2
-rw-r--r--TAO/performance-tests/Pluggable/server.cpp2
-rw-r--r--TAO/performance-tests/Protocols/Makefile.am9
-rw-r--r--TAO/performance-tests/Protocols/Protocols.mpc12
-rw-r--r--TAO/performance-tests/Protocols/distributor.cpp4
-rw-r--r--TAO/performance-tests/Protocols/receiver.cpp4
-rw-r--r--TAO/performance-tests/Protocols/sender.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Endpoint_Per_Priority/Makefile616
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile.am4
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/client.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/server.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile.am4
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/client.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/server.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Oneways/Reliable/Makefile.am3
-rw-r--r--TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Thread_Pool/Makefile.am5
-rw-r--r--TAO/performance-tests/RTCorba/Thread_Pool/Thread_Pool.mpc3
-rw-r--r--TAO/performance-tests/RTCorba/Thread_Pool/client.cpp4
-rw-r--r--TAO/performance-tests/RTCorba/Thread_Pool/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am7
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/client.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMI/Makefile.am7
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.cpp52
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h16
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMI/client.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/AMI/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/DII/Makefile.am9
-rw-r--r--TAO/performance-tests/Sequence_Latency/DII/client.cpp24
-rw-r--r--TAO/performance-tests/Sequence_Latency/DII/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/DSI/Makefile.am9
-rw-r--r--TAO/performance-tests/Sequence_Latency/DSI/Roundtrip.cpp2
-rw-r--r--TAO/performance-tests/Sequence_Latency/DSI/client.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/DSI/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Deferred/Deferred.mpc2
-rw-r--r--TAO/performance-tests/Sequence_Latency/Deferred/Makefile.am9
-rw-r--r--TAO/performance-tests/Sequence_Latency/Deferred/client.cpp6
-rw-r--r--TAO/performance-tests/Sequence_Latency/Deferred/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Single_Threaded/Makefile.am19
-rw-r--r--TAO/performance-tests/Sequence_Latency/Single_Threaded/client.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Single_Threaded/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am19
-rw-r--r--TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/client.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/server.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Thread_Pool/Makefile.am19
-rw-r--r--TAO/performance-tests/Sequence_Latency/Thread_Pool/client.cpp4
-rw-r--r--TAO/performance-tests/Sequence_Latency/Thread_Pool/server.cpp4
-rw-r--r--TAO/performance-tests/Single_Threaded_Latency/Roundtrip.cpp26
-rw-r--r--TAO/performance-tests/Single_Threaded_Latency/Roundtrip.h46
-rw-r--r--TAO/performance-tests/Single_Threaded_Latency/client.cpp164
-rw-r--r--TAO/performance-tests/Single_Threaded_Latency/server.cpp136
-rw-r--r--TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.cpp65
-rw-r--r--TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.h46
-rw-r--r--TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.cpp26
-rw-r--r--TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.h46
-rw-r--r--TAO/performance-tests/Thread_Per_Connection_Latency/client.cpp149
-rw-r--r--TAO/performance-tests/Thread_Per_Connection_Latency/server.cpp136
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/Client_Task.cpp65
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/Client_Task.h46
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/Roundtrip.cpp26
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/Roundtrip.h46
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/Worker_Thread.cpp24
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/client.cpp149
-rw-r--r--TAO/performance-tests/Thread_Pool_Latency/server.cpp139
-rw-r--r--TAO/performance-tests/Throughput/Makefile.am15
-rw-r--r--TAO/performance-tests/Throughput/client.cpp4
-rw-r--r--TAO/performance-tests/Throughput/server.cpp4
-rw-r--r--TAO/performance-tests/perf.mwc1
-rw-r--r--TAO/tao/Abstract_Servant_Base.cpp4
-rw-r--r--TAO/tao/Abstract_Servant_Base.h3
-rw-r--r--TAO/tao/Acceptor_Filter.cpp3
-rw-r--r--TAO/tao/Acceptor_Filter.h6
-rw-r--r--TAO/tao/Acceptor_Impl.cpp22
-rw-r--r--TAO/tao/Acceptor_Impl.h6
-rw-r--r--TAO/tao/Acceptor_Registry.cpp22
-rw-r--r--TAO/tao/Acceptor_Registry.h13
-rw-r--r--TAO/tao/Acceptor_Registry.i5
-rw-r--r--TAO/tao/Adapter.cpp5
-rw-r--r--TAO/tao/Adapter.h9
-rw-r--r--TAO/tao/Adapter_Factory.cpp5
-rw-r--r--TAO/tao/Adapter_Factory.h10
-rw-r--r--TAO/tao/Adapter_Registry.cpp46
-rw-r--r--TAO/tao/Adapter_Registry.h7
-rw-r--r--TAO/tao/Allocator.h8
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode.h3
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode.inl3
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp9
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h3
-rw-r--r--TAO/tao/AnyTypeCode/Alias_TypeCode_Static.inl4
-rw-r--r--TAO/tao/AnyTypeCode/Any.cpp16
-rw-r--r--TAO/tao/AnyTypeCode/Any.h8
-rw-r--r--TAO/tao/AnyTypeCode/Any.inl5
-rw-r--r--TAO/tao/AnyTypeCode/AnySeq.pidl2
-rw-r--r--TAO/tao/AnyTypeCode/AnySeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/AnySeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/AnySeqC.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/AnySeqC.h4
-rw-r--r--TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp43
-rw-r--r--TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h16
-rw-r--r--TAO/tao/AnyTypeCode/AnyTypeCode_methods.h4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Arg_Traits.h6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp28
-rw-r--r--TAO/tao/AnyTypeCode/Any_Array_Impl_T.h11
-rw-r--r--TAO/tao/AnyTypeCode/Any_Array_Impl_T.inl4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp18
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl.h5
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp31
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h11
-rw-r--r--TAO/tao/AnyTypeCode/Any_Basic_Impl_T.inl5
-rw-r--r--TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp16
-rw-r--r--TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h12
-rw-r--r--TAO/tao/AnyTypeCode/Any_Dual_Impl_T.inl6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl.cpp9
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl.h12
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl_T.cpp24
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl_T.h4
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl_T.inl6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp32
-rw-r--r--TAO/tao/AnyTypeCode/Any_Special_Impl_T.h11
-rw-r--r--TAO/tao/AnyTypeCode/Any_Special_Impl_T.inl5
-rw-r--r--TAO/tao/AnyTypeCode/Any_SystemException.cpp40
-rw-r--r--TAO/tao/AnyTypeCode/Any_SystemException.h6
-rw-r--r--TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp10
-rw-r--r--TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h10
-rw-r--r--TAO/tao/AnyTypeCode/BooleanSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/BooleanSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Bounds.pidl2
-rw-r--r--TAO/tao/AnyTypeCode/BoundsA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/BoundsA.h4
-rw-r--r--TAO/tao/AnyTypeCode/BoundsC.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/BoundsC.h4
-rw-r--r--TAO/tao/AnyTypeCode/CONV_FRAMEA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/CONV_FRAMEA.h4
-rw-r--r--TAO/tao/AnyTypeCode/CharSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/CharSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/CurrentA.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/CurrentA.h4
-rw-r--r--TAO/tao/AnyTypeCode/DomainA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/DomainA.h4
-rw-r--r--TAO/tao/AnyTypeCode/DoubleSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/DoubleSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Dynamic.pidl6
-rw-r--r--TAO/tao/AnyTypeCode/DynamicA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/DynamicA.h4
-rw-r--r--TAO/tao/AnyTypeCode/DynamicC.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/DynamicC.h4
-rw-r--r--TAO/tao/AnyTypeCode/Dynamic_Parameter.pidl4
-rw-r--r--TAO/tao/AnyTypeCode/Dynamic_ParameterA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/Dynamic_ParameterA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Dynamic_ParameterC.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/Dynamic_ParameterC.h4
-rw-r--r--TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp16
-rw-r--r--TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h4
-rw-r--r--TAO/tao/AnyTypeCode/Empty_Param_TypeCode.inl3
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode.cpp19
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode.h2
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode.inl3
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp21
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h2
-rw-r--r--TAO/tao/AnyTypeCode/Enum_TypeCode_Static.inl4
-rw-r--r--TAO/tao/AnyTypeCode/ExceptionA.cpp18
-rw-r--r--TAO/tao/AnyTypeCode/ExceptionA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Fixed_TypeCode.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/Fixed_TypeCode.h4
-rw-r--r--TAO/tao/AnyTypeCode/Fixed_TypeCode.inl4
-rw-r--r--TAO/tao/AnyTypeCode/FloatSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/FloatSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/GIOPA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/GIOPA.h3
-rw-r--r--TAO/tao/AnyTypeCode/IIOPA.cpp7
-rw-r--r--TAO/tao/AnyTypeCode/IIOPA.h4
-rw-r--r--TAO/tao/AnyTypeCode/IIOP_EndpointsA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/IIOP_EndpointsA.h4
-rw-r--r--TAO/tao/AnyTypeCode/IOPA.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/IOP_IORA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/IOP_IORA.h4
-rw-r--r--TAO/tao/AnyTypeCode/LongDoubleSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/LongDoubleSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/LongLongSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/LongLongSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/LongSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/LongSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Marshal.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/Marshal.h6
-rw-r--r--TAO/tao/AnyTypeCode/Marshal.inl6
-rw-r--r--TAO/tao/AnyTypeCode/Messaging_PolicyValueA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/Messaging_PolicyValueA.h4
-rw-r--r--TAO/tao/AnyTypeCode/NVList.cpp23
-rw-r--r--TAO/tao/AnyTypeCode/NVList.h4
-rw-r--r--TAO/tao/AnyTypeCode/NVList.inl4
-rw-r--r--TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h13
-rw-r--r--TAO/tao/AnyTypeCode/Null_RefCount_Policy.h6
-rw-r--r--TAO/tao/AnyTypeCode/ObjectIdListA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/ObjectIdListA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode.cpp4
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode.h3
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode.inl3
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h3
-rw-r--r--TAO/tao/AnyTypeCode/Objref_TypeCode_Static.inl3
-rw-r--r--TAO/tao/AnyTypeCode/OctetSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/OctetSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/PI_ForwardA.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/PI_ForwardA.h4
-rw-r--r--TAO/tao/AnyTypeCode/ParameterModeA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/ParameterModeA.h4
-rw-r--r--TAO/tao/AnyTypeCode/PolicyA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/PolicyA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Policy_ForwardA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/Policy_ForwardA.h3
-rw-r--r--TAO/tao/AnyTypeCode/PortableInterceptorA.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/PortableInterceptorA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h6
-rw-r--r--TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.inl4
-rw-r--r--TAO/tao/AnyTypeCode/RefCount_Policy_Traits.h5
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode.h4
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode.inl4
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h2
-rw-r--r--TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.inl4
-rw-r--r--TAO/tao/AnyTypeCode/ServicesA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/ServicesA.h4
-rw-r--r--TAO/tao/AnyTypeCode/ShortSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/ShortSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/StringSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/StringSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode.cpp2
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode.h4
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode.inl4
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp4
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode_Static.h3
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode_Static.inl4
-rw-r--r--TAO/tao/AnyTypeCode/String_TypeCode_Traits.h4
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode.cpp3
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode.h2
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode.inl3
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp4
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h2
-rw-r--r--TAO/tao/AnyTypeCode/Struct_TypeCode_Static.inl3
-rw-r--r--TAO/tao/AnyTypeCode/SystemExceptionA.cpp27
-rw-r--r--TAO/tao/AnyTypeCode/SystemExceptionA.h4
-rw-r--r--TAO/tao/AnyTypeCode/TAOA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/TAOA.h4
-rw-r--r--TAO/tao/AnyTypeCode/TC_Constants_Forward.h109
-rw-r--r--TAO/tao/AnyTypeCode/TimeBaseA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/TimeBaseA.h4
-rw-r--r--TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/True_RefCount_Policy.h3
-rw-r--r--TAO/tao/AnyTypeCode/True_RefCount_Policy.inl3
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode.cpp8
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode.h3
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode.inl4
-rw-r--r--TAO/tao/AnyTypeCode/TypeCodeA.cpp8
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h5
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.inl3
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp302
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.h6
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h8
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.inl3
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_T.h2
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Case_T.inl5
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Constants.cpp13
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Constants.h59
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Struct_Field.h2
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Traits.h3
-rw-r--r--TAO/tao/AnyTypeCode/TypeCode_Value_Field.h2
-rw-r--r--TAO/tao/AnyTypeCode/ULongLongSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/ULongLongSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/ULongSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/ULongSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/UShortSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/UShortSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode.cpp62
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode.h3
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode.inl4
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp56
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode_Static.h2
-rw-r--r--TAO/tao/AnyTypeCode/Union_TypeCode_Static.inl4
-rw-r--r--TAO/tao/AnyTypeCode/ValueModifier.pidl2
-rw-r--r--TAO/tao/AnyTypeCode/ValueModifierA.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/ValueModifierA.h4
-rw-r--r--TAO/tao/AnyTypeCode/ValueModifierC.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/ValueModifierC.h4
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode.cpp58
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode.h2
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode.inl3
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp59
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode_Static.h2
-rw-r--r--TAO/tao/AnyTypeCode/Value_TypeCode_Static.inl4
-rw-r--r--TAO/tao/AnyTypeCode/Visibility.pidl2
-rw-r--r--TAO/tao/AnyTypeCode/VisibilityA.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/VisibilityA.h4
-rw-r--r--TAO/tao/AnyTypeCode/VisibilityC.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/VisibilityC.h4
-rw-r--r--TAO/tao/AnyTypeCode/WCharSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/WCharSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/WStringSeqA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/WStringSeqA.h4
-rw-r--r--TAO/tao/AnyTypeCode/WrongTransactionA.cpp6
-rw-r--r--TAO/tao/AnyTypeCode/WrongTransactionA.h4
-rw-r--r--TAO/tao/AnyTypeCode/append.cpp18
-rw-r--r--TAO/tao/AnyTypeCode/orb_typesA.cpp5
-rw-r--r--TAO/tao/AnyTypeCode/orb_typesA.h3
-rw-r--r--TAO/tao/AnyTypeCode/skip.cpp71
-rw-r--r--TAO/tao/AnyTypeCode_Adapter.cpp5
-rw-r--r--TAO/tao/AnyTypeCode_Adapter.h16
-rw-r--r--TAO/tao/Any_Insert_Policy_T.h8
-rw-r--r--TAO/tao/Arg_Traits_T.h4
-rw-r--r--TAO/tao/Argument.cpp4
-rw-r--r--TAO/tao/Argument.h9
-rw-r--r--TAO/tao/Array_VarOut_T.cpp13
-rw-r--r--TAO/tao/Array_VarOut_T.h8
-rw-r--r--TAO/tao/Array_VarOut_T.inl23
-rw-r--r--TAO/tao/Asynch_Queued_Message.cpp9
-rw-r--r--TAO/tao/Asynch_Queued_Message.h4
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.cpp4
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.h15
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher_Base.i6
-rw-r--r--TAO/tao/Auto_Functor.h5
-rw-r--r--TAO/tao/BD_String_Argument_T.cpp12
-rw-r--r--TAO/tao/BD_String_Argument_T.h4
-rw-r--r--TAO/tao/BD_String_Argument_T.inl5
-rw-r--r--TAO/tao/Base_Transport_Property.cpp5
-rw-r--r--TAO/tao/Base_Transport_Property.h7
-rw-r--r--TAO/tao/Base_Transport_Property.inl7
-rw-r--r--TAO/tao/Basic_Argument_T.cpp12
-rw-r--r--TAO/tao/Basic_Argument_T.h4
-rw-r--r--TAO/tao/Basic_Argument_T.inl5
-rw-r--r--TAO/tao/Basic_Arguments.h18
-rw-r--r--TAO/tao/Basic_Types.h8
-rw-r--r--TAO/tao/BiDir_Adapter.cpp5
-rw-r--r--TAO/tao/BiDir_Adapter.h7
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirGIOP.cpp25
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirGIOP.h16
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirPolicy.pidl4
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp6
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirPolicyC.h6
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.cpp10
-rw-r--r--TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.h10
-rw-r--r--TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.cpp12
-rw-r--r--TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.h12
-rw-r--r--TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.cpp10
-rw-r--r--TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.h18
-rw-r--r--TAO/tao/BiDir_GIOP/BiDir_Policy_i.cpp8
-rw-r--r--TAO/tao/BiDir_GIOP/BiDir_Policy_i.h30
-rw-r--r--TAO/tao/Bind_Dispatcher_Guard.cpp4
-rw-r--r--TAO/tao/Bind_Dispatcher_Guard.h7
-rw-r--r--TAO/tao/Bind_Dispatcher_Guard.i6
-rw-r--r--TAO/tao/Block_Flushing_Strategy.cpp11
-rw-r--r--TAO/tao/Block_Flushing_Strategy.h6
-rw-r--r--TAO/tao/Blocked_Connect_Strategy.cpp7
-rw-r--r--TAO/tao/Blocked_Connect_Strategy.h8
-rw-r--r--TAO/tao/BooleanSeqC.cpp6
-rw-r--r--TAO/tao/BooleanSeqC.h4
-rw-r--r--TAO/tao/Buffer_Allocator_T.cpp5
-rw-r--r--TAO/tao/Buffer_Allocator_T.h4
-rw-r--r--TAO/tao/Buffering_Constraint_Policy.cpp8
-rw-r--r--TAO/tao/Buffering_Constraint_Policy.h7
-rw-r--r--TAO/tao/Buffering_Constraint_Policy.i6
-rw-r--r--TAO/tao/CDR.cpp10
-rw-r--r--TAO/tao/CDR.h14
-rw-r--r--TAO/tao/CDR.i4
-rw-r--r--TAO/tao/CONV_FRAME.pidl4
-rw-r--r--TAO/tao/CONV_FRAMEC.cpp6
-rw-r--r--TAO/tao/CONV_FRAMEC.h4
-rw-r--r--TAO/tao/CORBALOC_Parser.cpp32
-rw-r--r--TAO/tao/CORBALOC_Parser.h9
-rw-r--r--TAO/tao/CORBALOC_Parser.i7
-rw-r--r--TAO/tao/CORBANAME_Parser.cpp25
-rw-r--r--TAO/tao/CORBANAME_Parser.h11
-rw-r--r--TAO/tao/CORBANAME_Parser.i6
-rw-r--r--TAO/tao/CORBA_String.cpp72
-rw-r--r--TAO/tao/CORBA_String.h10
-rw-r--r--TAO/tao/CORBA_String.inl4
-rw-r--r--TAO/tao/CORBA_methods.h4
-rw-r--r--TAO/tao/CSD_Framework.mpc38
-rw-r--r--TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp60
-rw-r--r--TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h53
-rw-r--r--TAO/tao/CSD_Framework/CSD_FW_Export.h58
-rw-r--r--TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp465
-rw-r--r--TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h131
-rw-r--r--TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl46
-rw-r--r--TAO/tao/CSD_Framework/CSD_Framework.pidl77
-rw-r--r--TAO/tao/CSD_Framework/CSD_FrameworkA.cpp76
-rw-r--r--TAO/tao/CSD_Framework/CSD_FrameworkA.h68
-rw-r--r--TAO/tao/CSD_Framework/CSD_FrameworkC.cpp294
-rw-r--r--TAO/tao/CSD_Framework/CSD_FrameworkC.h316
-rw-r--r--TAO/tao/CSD_Framework/CSD_Framework_Loader.cpp30
-rw-r--r--TAO/tao/CSD_Framework/CSD_Framework_Loader.h47
-rw-r--r--TAO/tao/CSD_Framework/CSD_ORBInitializer.cpp36
-rw-r--r--TAO/tao/CSD_Framework/CSD_ORBInitializer.h70
-rw-r--r--TAO/tao/CSD_Framework/CSD_Object_Adapter.cpp45
-rw-r--r--TAO/tao/CSD_Framework/CSD_Object_Adapter.h57
-rw-r--r--TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.cpp96
-rw-r--r--TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.h49
-rw-r--r--TAO/tao/CSD_Framework/CSD_POA.cpp134
-rw-r--r--TAO/tao/CSD_Framework/CSD_POA.h111
-rw-r--r--TAO/tao/CSD_Framework/CSD_POA.inl14
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Base.cpp132
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Base.h174
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Base.inl144
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Proxy.cpp50
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Proxy.h114
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl104
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Repository.cpp117
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Repository.h78
-rw-r--r--TAO/tao/CSD_Framework/TAO_CSD_Framework.pc.in11
-rw-r--r--TAO/tao/CSD_Framework/diffs/CSD_Framework.diff84
-rw-r--r--TAO/tao/CSD_ThreadPool.mpc38
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp48
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h87
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl32
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp60
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h90
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl24
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp56
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h109
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl59
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp72
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h110
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl32
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.cpp19
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.h103
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl45
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp52
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h79
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl15
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.cpp19
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.h81
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl48
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp19
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h99
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl51
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp35
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h92
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl23
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp53
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h94
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl31
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Export.h58
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Queue.cpp127
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Queue.h101
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Queue.inl29
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp19
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h79
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl12
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.cpp60
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.h102
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl24
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Request.cpp27
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Request.h136
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Request.inl111
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.cpp19
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.h92
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.inl29
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.cpp11
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h95
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl70
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.cpp289
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.h210
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.inl35
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp154
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h65
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.cpp11
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h110
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl55
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Task.cpp313
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Task.h164
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_TP_Task.inl22
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_ThreadPool.cpp23
-rw-r--r--TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h65
-rw-r--r--TAO/tao/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in11
-rw-r--r--TAO/tao/Cache_Entries.cpp4
-rw-r--r--TAO/tao/Cache_Entries.h3
-rw-r--r--TAO/tao/Cache_Entries.inl7
-rw-r--r--TAO/tao/CharSeq.pidl2
-rw-r--r--TAO/tao/CharSeqC.cpp6
-rw-r--r--TAO/tao/CharSeqC.h4
-rw-r--r--TAO/tao/Cleanup_Func_Registry.cpp18
-rw-r--r--TAO/tao/Cleanup_Func_Registry.h23
-rw-r--r--TAO/tao/Cleanup_Func_Registry.inl10
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter.cpp11
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter.h18
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp5
-rw-r--r--TAO/tao/ClientRequestInterceptor_Adapter_Factory.h7
-rw-r--r--TAO/tao/Client_Strategy_Factory.cpp6
-rw-r--r--TAO/tao/Client_Strategy_Factory.h19
-rw-r--r--TAO/tao/CodecFactory/CDR_Encaps_Codec.cpp59
-rw-r--r--TAO/tao/CodecFactory/CDR_Encaps_Codec.h22
-rw-r--r--TAO/tao/CodecFactory/CodecFactory.cpp11
-rw-r--r--TAO/tao/CodecFactory/CodecFactory.h17
-rw-r--r--TAO/tao/CodecFactory/CodecFactory_impl.cpp94
-rw-r--r--TAO/tao/CodecFactory/CodecFactory_impl.h31
-rw-r--r--TAO/tao/CodecFactory/IOP_Codec.pidl23
-rw-r--r--TAO/tao/CodecFactory/IOP_CodecA.cpp704
-rw-r--r--TAO/tao/CodecFactory/IOP_CodecC.cpp714
-rw-r--r--TAO/tao/CodecFactory/IOP_CodecC.h509
-rw-r--r--TAO/tao/CodecFactory/IOP_Codec_include.pidl6
-rw-r--r--TAO/tao/CodecFactory/IOP_Codec_includeA.h44
-rw-r--r--TAO/tao/CodecFactory/IOP_Codec_includeC.h26
-rw-r--r--TAO/tao/CodecFactory/diff/IOP_Codec.diff27
-rw-r--r--TAO/tao/Codeset/Codeset.cpp16
-rw-r--r--TAO/tao/Codeset/Codeset.h10
-rw-r--r--TAO/tao/Codeset/Codeset_Descriptor.cpp12
-rw-r--r--TAO/tao/Codeset/Codeset_Descriptor.h6
-rw-r--r--TAO/tao/Codeset/Codeset_Manager_Factory.cpp8
-rw-r--r--TAO/tao/Codeset/Codeset_Manager_Factory.h5
-rw-r--r--TAO/tao/Codeset/Codeset_Manager_i.cpp43
-rw-r--r--TAO/tao/Codeset/Codeset_Manager_i.h10
-rw-r--r--TAO/tao/Codeset/Codeset_Translator_Factory.cpp6
-rw-r--r--TAO/tao/Codeset/Codeset_Translator_Factory.h14
-rw-r--r--TAO/tao/Codeset/Codeset_Translator_Factory_T.cpp7
-rw-r--r--TAO/tao/Codeset/Codeset_Translator_Factory_T.h12
-rw-r--r--TAO/tao/Codeset/UTF16_BOM_Factory.cpp8
-rw-r--r--TAO/tao/Codeset/UTF16_BOM_Factory.h10
-rw-r--r--TAO/tao/Codeset/UTF16_BOM_Translator.cpp6
-rw-r--r--TAO/tao/Codeset/UTF16_BOM_Translator.h8
-rw-r--r--TAO/tao/Codeset/UTF8_Latin1_Factory.cpp9
-rw-r--r--TAO/tao/Codeset/UTF8_Latin1_Factory.h12
-rw-r--r--TAO/tao/Codeset/UTF8_Latin1_Translator.cpp5
-rw-r--r--TAO/tao/Codeset/UTF8_Latin1_Translator.h9
-rw-r--r--TAO/tao/Codeset_Descriptor_Base.h10
-rw-r--r--TAO/tao/Codeset_Manager.cpp13
-rw-r--r--TAO/tao/Codeset_Manager.h27
-rw-r--r--TAO/tao/Codeset_Manager_Factory_Base.cpp16
-rw-r--r--TAO/tao/Codeset_Manager_Factory_Base.h19
-rw-r--r--TAO/tao/Codeset_Translator_Base.cpp8
-rw-r--r--TAO/tao/Codeset_Translator_Base.h19
-rw-r--r--TAO/tao/Collocated_Invocation.cpp23
-rw-r--r--TAO/tao/Collocated_Invocation.h9
-rw-r--r--TAO/tao/Collocation_Proxy_Broker.cpp6
-rw-r--r--TAO/tao/Collocation_Proxy_Broker.h7
-rw-r--r--TAO/tao/Collocation_Resolver.cpp4
-rw-r--r--TAO/tao/Collocation_Resolver.h13
-rw-r--r--TAO/tao/Collocation_Strategy.h6
-rw-r--r--TAO/tao/Condition.cpp12
-rw-r--r--TAO/tao/Condition.h11
-rw-r--r--TAO/tao/Condition.inl8
-rw-r--r--TAO/tao/Connect_Strategy.cpp6
-rw-r--r--TAO/tao/Connect_Strategy.h18
-rw-r--r--TAO/tao/Connection_Handler.cpp23
-rw-r--r--TAO/tao/Connection_Handler.h16
-rw-r--r--TAO/tao/Connection_Handler.inl6
-rw-r--r--TAO/tao/Connection_Purging_Strategy.cpp8
-rw-r--r--TAO/tao/Connection_Purging_Strategy.h10
-rw-r--r--TAO/tao/Connection_Purging_Strategy.inl9
-rw-r--r--TAO/tao/Connector_Impl.cpp7
-rw-r--r--TAO/tao/Connector_Impl.h17
-rw-r--r--TAO/tao/Connector_Registry.cpp5
-rw-r--r--TAO/tao/Connector_Registry.h10
-rw-r--r--TAO/tao/Connector_Registry.i4
-rw-r--r--TAO/tao/Current.pidl4
-rw-r--r--TAO/tao/CurrentC.cpp6
-rw-r--r--TAO/tao/CurrentC.h4
-rw-r--r--TAO/tao/DLL_Parser.cpp22
-rw-r--r--TAO/tao/DLL_Parser.h13
-rw-r--r--TAO/tao/DLL_Parser.i6
-rw-r--r--TAO/tao/Default_Collocation_Resolver.cpp4
-rw-r--r--TAO/tao/Default_Collocation_Resolver.h6
-rw-r--r--TAO/tao/Default_Endpoint_Selector_Factory.cpp12
-rw-r--r--TAO/tao/Default_Endpoint_Selector_Factory.h16
-rw-r--r--TAO/tao/Default_Protocols_Hooks.cpp4
-rw-r--r--TAO/tao/Default_Protocols_Hooks.h5
-rw-r--r--TAO/tao/Default_Stub_Factory.cpp11
-rw-r--r--TAO/tao/Default_Stub_Factory.h10
-rw-r--r--TAO/tao/Default_Thread_Lane_Resources_Manager.cpp32
-rw-r--r--TAO/tao/Default_Thread_Lane_Resources_Manager.h22
-rw-r--r--TAO/tao/Domain.pidl8
-rw-r--r--TAO/tao/Domain/DomainS.cpp8
-rw-r--r--TAO/tao/Domain/DomainS.h10
-rw-r--r--TAO/tao/Domain/DomainS.inl2
-rw-r--r--TAO/tao/Domain/DomainS_T.cpp4
-rw-r--r--TAO/tao/Domain/DomainS_T.h7
-rw-r--r--TAO/tao/Domain/DomainS_T.inl4
-rw-r--r--TAO/tao/DomainC.cpp8
-rw-r--r--TAO/tao/DomainC.h6
-rw-r--r--TAO/tao/DomainC.inl4
-rw-r--r--TAO/tao/DoubleSeq.pidl2
-rw-r--r--TAO/tao/DoubleSeqC.cpp6
-rw-r--r--TAO/tao/DoubleSeqC.h4
-rw-r--r--TAO/tao/DynamicAny/DynAnyFactory.cpp18
-rw-r--r--TAO/tao/DynamicAny/DynAnyFactory.h9
-rw-r--r--TAO/tao/DynamicAny/DynAny_i.cpp10
-rw-r--r--TAO/tao/DynamicAny/DynAny_i.h11
-rw-r--r--TAO/tao/DynamicAny/DynArray_i.cpp8
-rw-r--r--TAO/tao/DynamicAny/DynArray_i.h11
-rw-r--r--TAO/tao/DynamicAny/DynCommon.cpp23
-rw-r--r--TAO/tao/DynamicAny/DynCommon.h8
-rw-r--r--TAO/tao/DynamicAny/DynEnum_i.cpp7
-rw-r--r--TAO/tao/DynamicAny/DynEnum_i.h11
-rw-r--r--TAO/tao/DynamicAny/DynSequence_i.cpp8
-rw-r--r--TAO/tao/DynamicAny/DynSequence_i.h11
-rw-r--r--TAO/tao/DynamicAny/DynStruct_i.cpp9
-rw-r--r--TAO/tao/DynamicAny/DynStruct_i.h11
-rw-r--r--TAO/tao/DynamicAny/DynUnion_i.cpp8
-rw-r--r--TAO/tao/DynamicAny/DynUnion_i.h11
-rw-r--r--TAO/tao/DynamicAny/DynamicAny.cpp10
-rw-r--r--TAO/tao/DynamicAny/DynamicAny.h17
-rw-r--r--TAO/tao/DynamicAny/DynamicAny.pidl6
-rw-r--r--TAO/tao/DynamicAny/DynamicAnyC.cpp6
-rw-r--r--TAO/tao/DynamicAny/DynamicAnyC.h6
-rw-r--r--TAO/tao/DynamicInterface/Context.cpp7
-rw-r--r--TAO/tao/DynamicInterface/Context.h11
-rw-r--r--TAO/tao/DynamicInterface/Context.inl4
-rw-r--r--TAO/tao/DynamicInterface/DII_Arguments.cpp8
-rw-r--r--TAO/tao/DynamicInterface/DII_Arguments.h8
-rw-r--r--TAO/tao/DynamicInterface/DII_Arguments.inl12
-rw-r--r--TAO/tao/DynamicInterface/DII_CORBA_methods.h3
-rw-r--r--TAO/tao/DynamicInterface/DII_Invocation.cpp16
-rw-r--r--TAO/tao/DynamicInterface/DII_Invocation.h16
-rw-r--r--TAO/tao/DynamicInterface/DII_Invocation_Adapter.cpp21
-rw-r--r--TAO/tao/DynamicInterface/DII_Invocation_Adapter.h14
-rw-r--r--TAO/tao/DynamicInterface/DII_Reply_Dispatcher.cpp9
-rw-r--r--TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h6
-rw-r--r--TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.cpp10
-rw-r--r--TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.h31
-rw-r--r--TAO/tao/DynamicInterface/Dynamic_Implementation.cpp8
-rw-r--r--TAO/tao/DynamicInterface/Dynamic_Implementation.h9
-rw-r--r--TAO/tao/DynamicInterface/ExceptionList.cpp7
-rw-r--r--TAO/tao/DynamicInterface/ExceptionList.h10
-rw-r--r--TAO/tao/DynamicInterface/ExceptionList.inl4
-rw-r--r--TAO/tao/DynamicInterface/Request.cpp14
-rw-r--r--TAO/tao/DynamicInterface/Request.h10
-rw-r--r--TAO/tao/DynamicInterface/Request.inl4
-rw-r--r--TAO/tao/DynamicInterface/Server_Request.cpp7
-rw-r--r--TAO/tao/DynamicInterface/Server_Request.h10
-rw-r--r--TAO/tao/DynamicInterface/Server_Request.inl4
-rw-r--r--TAO/tao/DynamicInterface/Unknown_User_Exception.cpp5
-rw-r--r--TAO/tao/DynamicInterface/Unknown_User_Exception.h5
-rw-r--r--TAO/tao/Dynamic_Adapter.cpp5
-rw-r--r--TAO/tao/Dynamic_Adapter.h5
-rw-r--r--TAO/tao/Endpoint.cpp7
-rw-r--r--TAO/tao/Endpoint.h10
-rw-r--r--TAO/tao/Endpoint.i13
-rw-r--r--TAO/tao/Endpoint_Selector_Factory.cpp3
-rw-r--r--TAO/tao/Endpoint_Selector_Factory.h11
-rw-r--r--TAO/tao/Environment.cpp17
-rw-r--r--TAO/tao/Environment.h4
-rw-r--r--TAO/tao/Environment.i4
-rw-r--r--TAO/tao/Exception.cpp28
-rw-r--r--TAO/tao/Exception.h16
-rw-r--r--TAO/tao/Exception.i4
-rw-r--r--TAO/tao/Exception_Data.h4
-rw-r--r--TAO/tao/Exclusive_TMS.cpp9
-rw-r--r--TAO/tao/Exclusive_TMS.h5
-rw-r--r--TAO/tao/FILE_Parser.cpp15
-rw-r--r--TAO/tao/FILE_Parser.h11
-rw-r--r--TAO/tao/FILE_Parser.i6
-rw-r--r--TAO/tao/Fault_Tolerance_Service.cpp4
-rw-r--r--TAO/tao/Fault_Tolerance_Service.h13
-rw-r--r--TAO/tao/Fault_Tolerance_Service.i8
-rw-r--r--TAO/tao/Fixed_Array_Argument_T.cpp12
-rw-r--r--TAO/tao/Fixed_Array_Argument_T.h4
-rw-r--r--TAO/tao/Fixed_Array_Argument_T.inl4
-rw-r--r--TAO/tao/Fixed_Size_Argument_T.cpp12
-rw-r--r--TAO/tao/Fixed_Size_Argument_T.h6
-rw-r--r--TAO/tao/Fixed_Size_Argument_T.inl5
-rw-r--r--TAO/tao/FlResource_Factory.cpp13
-rw-r--r--TAO/tao/FlResource_Factory.h11
-rw-r--r--TAO/tao/FlResource_Loader.cpp17
-rw-r--r--TAO/tao/FlResource_Loader.h13
-rw-r--r--TAO/tao/FloatSeq.pidl2
-rw-r--r--TAO/tao/FloatSeqC.cpp6
-rw-r--r--TAO/tao/FloatSeqC.h4
-rw-r--r--TAO/tao/Flushing_Strategy.cpp8
-rw-r--r--TAO/tao/Flushing_Strategy.h7
-rw-r--r--TAO/tao/GIOP.pidl4
-rw-r--r--TAO/tao/GIOPC.cpp8
-rw-r--r--TAO/tao/GIOPC.h6
-rw-r--r--TAO/tao/GIOPC.inl4
-rw-r--r--TAO/tao/GIOP_Message_Base.cpp706
-rw-r--r--TAO/tao/GIOP_Message_Base.h87
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser.cpp21
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser.h7
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_10.cpp10
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_10.h7
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_11.cpp10
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_11.h12
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_12.cpp6
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_12.h9
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_Impl.h7
-rw-r--r--TAO/tao/GIOP_Message_Generator_Parser_Impl.inl6
-rw-r--r--TAO/tao/GIOP_Message_Lite.cpp201
-rw-r--r--TAO/tao/GIOP_Message_Lite.h59
-rw-r--r--TAO/tao/GIOP_Message_Locate_Header.cpp5
-rw-r--r--TAO/tao/GIOP_Message_Locate_Header.h4
-rw-r--r--TAO/tao/GIOP_Message_Locate_Header.i9
-rw-r--r--TAO/tao/GIOP_Message_State.cpp56
-rw-r--r--TAO/tao/GIOP_Message_State.h31
-rw-r--r--TAO/tao/GIOP_Message_State.inl7
-rw-r--r--TAO/tao/GIOP_Message_Version.cpp2
-rw-r--r--TAO/tao/GIOP_Message_Version.h7
-rw-r--r--TAO/tao/GIOP_Message_Version.inl18
-rw-r--r--TAO/tao/GIOP_Utils.cpp15
-rw-r--r--TAO/tao/GIOP_Utils.h11
-rw-r--r--TAO/tao/GUIResource_Factory.cpp10
-rw-r--r--TAO/tao/GUIResource_Factory.h18
-rw-r--r--TAO/tao/IFR_Client/IFR_Base.pidl6
-rw-r--r--TAO/tao/IFR_Client/IFR_BaseC.cpp8
-rw-r--r--TAO/tao/IFR_Client/IFR_BaseC.h8
-rw-r--r--TAO/tao/IFR_Client/IFR_BaseC.inl4
-rw-r--r--TAO/tao/IFR_Client/IFR_BaseS.h6
-rw-r--r--TAO/tao/IFR_Client/IFR_Basic.pidl4
-rw-r--r--TAO/tao/IFR_Client/IFR_BasicC.cpp8
-rw-r--r--TAO/tao/IFR_Client/IFR_BasicC.h8
-rw-r--r--TAO/tao/IFR_Client/IFR_BasicC.inl4
-rw-r--r--TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp8
-rw-r--r--TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h13
-rw-r--r--TAO/tao/IFR_Client/IFR_Components.pidl2
-rw-r--r--TAO/tao/IFR_Client/IFR_ComponentsC.cpp9
-rw-r--r--TAO/tao/IFR_Client/IFR_ComponentsC.h8
-rw-r--r--TAO/tao/IFR_Client/IFR_ComponentsC.inl3
-rw-r--r--TAO/tao/IFR_Client/IFR_Extended.pidl2
-rw-r--r--TAO/tao/IFR_Client/IFR_ExtendedC.cpp8
-rw-r--r--TAO/tao/IFR_Client/IFR_ExtendedC.h8
-rw-r--r--TAO/tao/IFR_Client/IFR_ExtendedC.inl3
-rw-r--r--TAO/tao/IFR_Client_Adapter.cpp2
-rw-r--r--TAO/tao/IFR_Client_Adapter.h6
-rw-r--r--TAO/tao/IIOP.pidl2
-rw-r--r--TAO/tao/IIOPC.cpp6
-rw-r--r--TAO/tao/IIOPC.h4
-rw-r--r--TAO/tao/IIOP_Acceptor.cpp38
-rw-r--r--TAO/tao/IIOP_Acceptor.h8
-rw-r--r--TAO/tao/IIOP_Acceptor.i5
-rw-r--r--TAO/tao/IIOP_Connection_Handler.cpp45
-rw-r--r--TAO/tao/IIOP_Connection_Handler.h8
-rw-r--r--TAO/tao/IIOP_Connector.cpp30
-rw-r--r--TAO/tao/IIOP_Connector.h10
-rw-r--r--TAO/tao/IIOP_Endpoint.cpp12
-rw-r--r--TAO/tao/IIOP_Endpoint.h9
-rw-r--r--TAO/tao/IIOP_Endpoint.i4
-rw-r--r--TAO/tao/IIOP_EndpointsC.cpp6
-rw-r--r--TAO/tao/IIOP_EndpointsC.h4
-rw-r--r--TAO/tao/IIOP_Factory.cpp18
-rw-r--r--TAO/tao/IIOP_Factory.h8
-rw-r--r--TAO/tao/IIOP_Lite_Factory.cpp18
-rw-r--r--TAO/tao/IIOP_Lite_Factory.h8
-rw-r--r--TAO/tao/IIOP_Profile.cpp127
-rw-r--r--TAO/tao/IIOP_Profile.h11
-rw-r--r--TAO/tao/IIOP_Transport.cpp39
-rw-r--r--TAO/tao/IIOP_Transport.h4
-rw-r--r--TAO/tao/IOP.pidl2
-rw-r--r--TAO/tao/IOPC.cpp6
-rw-r--r--TAO/tao/IOPC.h4
-rw-r--r--TAO/tao/IOP_IOR.pidl2
-rw-r--r--TAO/tao/IOP_IORC.cpp6
-rw-r--r--TAO/tao/IOP_IORC.h4
-rw-r--r--TAO/tao/IORInterceptor/IORInfo.cpp9
-rw-r--r--TAO/tao/IORInterceptor/IORInfo.h18
-rw-r--r--TAO/tao/IORInterceptor/IORInfo.inl7
-rw-r--r--TAO/tao/IORInterceptor/IORInfo.pidl4
-rw-r--r--TAO/tao/IORInterceptor/IORInfoC.cpp34
-rw-r--r--TAO/tao/IORInterceptor/IORInfoC.h73
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor.pidl5
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptorC.cpp153
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptorC.h170
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp9
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h11
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp75
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.h17
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor_Details.cpp23
-rw-r--r--TAO/tao/IORInterceptor/IORInterceptor_Details.h63
-rw-r--r--TAO/tao/IORInterceptor_Adapter.cpp5
-rw-r--r--TAO/tao/IORInterceptor_Adapter.h16
-rw-r--r--TAO/tao/IORInterceptor_Adapter_Factory.cpp4
-rw-r--r--TAO/tao/IORInterceptor_Adapter_Factory.h6
-rw-r--r--TAO/tao/IORManipulation/IORA.cpp6
-rw-r--r--TAO/tao/IORManipulation/IORC.cpp6
-rw-r--r--TAO/tao/IORManipulation/IORC.h6
-rw-r--r--TAO/tao/IORManipulation/IORManip_Loader.cpp8
-rw-r--r--TAO/tao/IORManipulation/IORManip_Loader.h16
-rw-r--r--TAO/tao/IORManipulation/IORManipulation.cpp38
-rw-r--r--TAO/tao/IORManipulation/IORManipulation.h21
-rw-r--r--TAO/tao/IORTable/IORTable.cpp9
-rw-r--r--TAO/tao/IORTable/IORTable.h12
-rw-r--r--TAO/tao/IORTable/IORTableC.cpp6
-rw-r--r--TAO/tao/IORTable/IORTableC.h6
-rw-r--r--TAO/tao/IORTable/IOR_Table_Impl.cpp6
-rw-r--r--TAO/tao/IORTable/IOR_Table_Impl.h8
-rw-r--r--TAO/tao/IORTable/Table_Adapter.cpp113
-rw-r--r--TAO/tao/IORTable/Table_Adapter.h18
-rw-r--r--TAO/tao/IOR_Parser.cpp4
-rw-r--r--TAO/tao/IOR_Parser.h5
-rw-r--r--TAO/tao/ImR_Client/ImR_Client.cpp32
-rw-r--r--TAO/tao/ImR_Client/ImR_Client.h12
-rw-r--r--TAO/tao/ImR_Client/ImplRepoC.cpp8
-rw-r--r--TAO/tao/ImR_Client/ImplRepoC.h8
-rw-r--r--TAO/tao/ImR_Client/ImplRepoC.inl4
-rw-r--r--TAO/tao/ImR_Client/ImplRepoS.cpp6
-rw-r--r--TAO/tao/ImR_Client/ImplRepoS.h6
-rw-r--r--TAO/tao/ImR_Client/ServerObjectC.cpp8
-rw-r--r--TAO/tao/ImR_Client/ServerObjectC.h8
-rw-r--r--TAO/tao/ImR_Client/ServerObjectC.inl3
-rw-r--r--TAO/tao/ImR_Client/ServerObjectS.cpp6
-rw-r--r--TAO/tao/ImR_Client/ServerObjectS.h6
-rw-r--r--TAO/tao/ImR_Client/ServerObject_i.cpp7
-rw-r--r--TAO/tao/ImR_Client/ServerObject_i.h15
-rw-r--r--TAO/tao/Incoming_Message_Queue.cpp147
-rw-r--r--TAO/tao/Incoming_Message_Queue.h86
-rw-r--r--TAO/tao/Incoming_Message_Queue.inl58
-rw-r--r--TAO/tao/Incoming_Message_Stack.cpp16
-rwxr-xr-xTAO/tao/Incoming_Message_Stack.h89
-rwxr-xr-xTAO/tao/Incoming_Message_Stack.inl71
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Base_T.cpp21
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Base_T.h80
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Base_T.inl38
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Handle_T.cpp12
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Handle_T.h159
-rw-r--r--TAO/tao/Intrusive_Ref_Count_Handle_T.inl162
-rw-r--r--TAO/tao/Invocation_Adapter.cpp66
-rw-r--r--TAO/tao/Invocation_Adapter.h12
-rw-r--r--TAO/tao/Invocation_Adapter.inl7
-rw-r--r--TAO/tao/Invocation_Base.cpp29
-rw-r--r--TAO/tao/Invocation_Base.h18
-rw-r--r--TAO/tao/Invocation_Base.inl14
-rw-r--r--TAO/tao/Invocation_Endpoint_Selectors.cpp20
-rw-r--r--TAO/tao/Invocation_Endpoint_Selectors.h25
-rw-r--r--TAO/tao/Invocation_Utils.h6
-rw-r--r--TAO/tao/LF_CH_Event.cpp7
-rw-r--r--TAO/tao/LF_CH_Event.h6
-rw-r--r--TAO/tao/LF_Connect_Strategy.cpp17
-rw-r--r--TAO/tao/LF_Connect_Strategy.h11
-rw-r--r--TAO/tao/LF_Event.cpp13
-rw-r--r--TAO/tao/LF_Event.h10
-rw-r--r--TAO/tao/LF_Event.inl5
-rw-r--r--TAO/tao/LF_Event_Binder.cpp9
-rw-r--r--TAO/tao/LF_Event_Binder.h6
-rw-r--r--TAO/tao/LF_Event_Binder.inl6
-rw-r--r--TAO/tao/LF_Event_Loop_Thread_Helper.cpp5
-rw-r--r--TAO/tao/LF_Event_Loop_Thread_Helper.h4
-rw-r--r--TAO/tao/LF_Event_Loop_Thread_Helper.inl16
-rw-r--r--TAO/tao/LF_Follower.cpp4
-rw-r--r--TAO/tao/LF_Follower.h13
-rw-r--r--TAO/tao/LF_Follower.inl6
-rw-r--r--TAO/tao/LF_Follower_Auto_Adder.cpp9
-rw-r--r--TAO/tao/LF_Follower_Auto_Adder.h4
-rw-r--r--TAO/tao/LF_Follower_Auto_Adder.inl6
-rw-r--r--TAO/tao/LF_Follower_Auto_Ptr.cpp9
-rw-r--r--TAO/tao/LF_Follower_Auto_Ptr.h4
-rw-r--r--TAO/tao/LF_Follower_Auto_Ptr.inl6
-rw-r--r--TAO/tao/LF_Invocation_Event.cpp6
-rw-r--r--TAO/tao/LF_Invocation_Event.h6
-rw-r--r--TAO/tao/LF_Strategy.cpp5
-rw-r--r--TAO/tao/LF_Strategy.h9
-rw-r--r--TAO/tao/LF_Strategy_Complete.cpp7
-rw-r--r--TAO/tao/LF_Strategy_Complete.h8
-rw-r--r--TAO/tao/LF_Strategy_Complete.inl6
-rw-r--r--TAO/tao/LRU_Connection_Purging_Strategy.cpp13
-rw-r--r--TAO/tao/LRU_Connection_Purging_Strategy.h8
-rw-r--r--TAO/tao/Leader_Follower.cpp8
-rw-r--r--TAO/tao/Leader_Follower.h9
-rw-r--r--TAO/tao/Leader_Follower.i5
-rw-r--r--TAO/tao/Leader_Follower_Flushing_Strategy.cpp6
-rw-r--r--TAO/tao/Leader_Follower_Flushing_Strategy.h6
-rw-r--r--TAO/tao/LocalObject.cpp29
-rw-r--r--TAO/tao/LocalObject.h13
-rw-r--r--TAO/tao/LocalObject.i4
-rw-r--r--TAO/tao/LocateRequest_Invocation.cpp27
-rw-r--r--TAO/tao/LocateRequest_Invocation.h4
-rw-r--r--TAO/tao/LocateRequest_Invocation_Adapter.cpp22
-rw-r--r--TAO/tao/LocateRequest_Invocation_Adapter.h10
-rw-r--r--TAO/tao/LongDoubleSeqC.cpp6
-rw-r--r--TAO/tao/LongDoubleSeqC.h4
-rw-r--r--TAO/tao/LongLongSeqC.cpp6
-rw-r--r--TAO/tao/LongLongSeqC.h4
-rw-r--r--TAO/tao/LongSeqC.cpp6
-rw-r--r--TAO/tao/LongSeqC.h4
-rw-r--r--TAO/tao/MCAST_Parser.cpp26
-rw-r--r--TAO/tao/MCAST_Parser.h6
-rw-r--r--TAO/tao/MCAST_Parser.i6
-rw-r--r--TAO/tao/MProfile.cpp3
-rw-r--r--TAO/tao/MProfile.h4
-rw-r--r--TAO/tao/MProfile.i4
-rw-r--r--TAO/tao/Makefile.am265
-rw-r--r--TAO/tao/Managed_Types.cpp24
-rw-r--r--TAO/tao/Managed_Types.h52
-rw-r--r--TAO/tao/Managed_Types.i61
-rw-r--r--TAO/tao/Messaging/AMH_Response_Handler.cpp51
-rw-r--r--TAO/tao/Messaging/AMH_Response_Handler.h22
-rw-r--r--TAO/tao/Messaging/Asynch_Invocation.cpp7
-rw-r--r--TAO/tao/Messaging/Asynch_Invocation.h9
-rw-r--r--TAO/tao/Messaging/Asynch_Invocation_Adapter.cpp21
-rw-r--r--TAO/tao/Messaging/Asynch_Invocation_Adapter.h17
-rw-r--r--TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp7
-rw-r--r--TAO/tao/Messaging/Asynch_Reply_Dispatcher.h12
-rw-r--r--TAO/tao/Messaging/Asynch_Timeout_Handler.cpp7
-rw-r--r--TAO/tao/Messaging/Asynch_Timeout_Handler.h10
-rw-r--r--TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp8
-rw-r--r--TAO/tao/Messaging/Connection_Timeout_Policy_i.h15
-rw-r--r--TAO/tao/Messaging/ExceptionHolderA.cpp7
-rw-r--r--TAO/tao/Messaging/ExceptionHolderA.h6
-rw-r--r--TAO/tao/Messaging/ExceptionHolderC.cpp8
-rw-r--r--TAO/tao/Messaging/ExceptionHolderC.h8
-rw-r--r--TAO/tao/Messaging/ExceptionHolderC.inl4
-rw-r--r--TAO/tao/Messaging/ExceptionHolder_i.cpp84
-rw-r--r--TAO/tao/Messaging/ExceptionHolder_i.h102
-rw-r--r--TAO/tao/Messaging/Messaging.cpp13
-rw-r--r--TAO/tao/Messaging/Messaging.h22
-rw-r--r--TAO/tao/Messaging/MessagingA.cpp6
-rw-r--r--TAO/tao/Messaging/MessagingA.h6
-rw-r--r--TAO/tao/Messaging/MessagingC.cpp8
-rw-r--r--TAO/tao/Messaging/MessagingC.h8
-rw-r--r--TAO/tao/Messaging/MessagingC.inl3
-rw-r--r--TAO/tao/Messaging/MessagingS.cpp6
-rw-r--r--TAO/tao/Messaging/MessagingS.h8
-rw-r--r--TAO/tao/Messaging/MessagingS_T.cpp4
-rw-r--r--TAO/tao/Messaging/MessagingS_T.h8
-rw-r--r--TAO/tao/Messaging/MessagingS_T.inl2
-rw-r--r--TAO/tao/Messaging/Messaging_Loader.cpp13
-rw-r--r--TAO/tao/Messaging/Messaging_Loader.h22
-rw-r--r--TAO/tao/Messaging/Messaging_No_ImplA.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_No_ImplA.h6
-rw-r--r--TAO/tao/Messaging/Messaging_No_ImplC.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_No_ImplC.h6
-rw-r--r--TAO/tao/Messaging/Messaging_ORBInitializer.cpp58
-rw-r--r--TAO/tao/Messaging/Messaging_ORBInitializer.h14
-rw-r--r--TAO/tao/Messaging/Messaging_PolicyFactory.cpp10
-rw-r--r--TAO/tao/Messaging/Messaging_PolicyFactory.h7
-rw-r--r--TAO/tao/Messaging/Messaging_Policy_i.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_Policy_i.h10
-rw-r--r--TAO/tao/Messaging/Messaging_Policy_i.i6
-rw-r--r--TAO/tao/Messaging/Messaging_RT_PolicyA.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_RT_PolicyA.h6
-rw-r--r--TAO/tao/Messaging/Messaging_RT_PolicyC.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_RT_PolicyC.h6
-rw-r--r--TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_SyncScope_PolicyA.h7
-rw-r--r--TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp6
-rw-r--r--TAO/tao/Messaging/Messaging_SyncScope_PolicyC.h6
-rw-r--r--TAO/tao/Messaging/OldExceptionHolderA.cpp6
-rw-r--r--TAO/tao/Messaging/OldExceptionHolderA.h6
-rw-r--r--TAO/tao/Messaging/OldExceptionHolderC.cpp8
-rw-r--r--TAO/tao/Messaging/OldExceptionHolderC.h8
-rw-r--r--TAO/tao/Messaging/OldExceptionHolderC.inl4
-rw-r--r--TAO/tao/Messaging/PollableC.cpp5
-rw-r--r--TAO/tao/Messaging/PollableC.h6
-rw-r--r--TAO/tao/Messaging/TAO_ExtA.cpp6
-rw-r--r--TAO/tao/Messaging/TAO_ExtA.h6
-rw-r--r--TAO/tao/Messaging/TAO_ExtC.cpp6
-rw-r--r--TAO/tao/Messaging/TAO_ExtC.h6
-rw-r--r--TAO/tao/Messaging_PolicyValue.pidl4
-rw-r--r--TAO/tao/Messaging_PolicyValueC.cpp6
-rw-r--r--TAO/tao/Messaging_PolicyValueC.h4
-rw-r--r--TAO/tao/Messaging_SyncScopeC.cpp6
-rw-r--r--TAO/tao/Messaging_SyncScopeC.h4
-rw-r--r--TAO/tao/Muxed_TMS.cpp13
-rw-r--r--TAO/tao/Muxed_TMS.h9
-rw-r--r--TAO/tao/NVList_Adapter.cpp5
-rw-r--r--TAO/tao/NVList_Adapter.h9
-rw-r--r--TAO/tao/New_Leader_Generator.cpp6
-rw-r--r--TAO/tao/New_Leader_Generator.h4
-rw-r--r--TAO/tao/ORB.cpp64
-rw-r--r--TAO/tao/ORB.h25
-rw-r--r--TAO/tao/ORB.i8
-rw-r--r--TAO/tao/ORBInitializer_Registry.cpp17
-rw-r--r--TAO/tao/ORBInitializer_Registry.h11
-rw-r--r--TAO/tao/ORBInitializer_Registry_Adapter.cpp8
-rw-r--r--TAO/tao/ORBInitializer_Registry_Adapter.h10
-rw-r--r--TAO/tao/ORB_Constants.h4
-rw-r--r--TAO/tao/ORB_Core.cpp421
-rw-r--r--TAO/tao/ORB_Core.h50
-rw-r--r--TAO/tao/ORB_Core.i29
-rw-r--r--TAO/tao/ORB_Core_Auto_Ptr.cpp10
-rw-r--r--TAO/tao/ORB_Core_Auto_Ptr.h12
-rw-r--r--TAO/tao/ORB_Core_Auto_Ptr.inl5
-rw-r--r--TAO/tao/ORB_Core_TSS_Resources.cpp4
-rw-r--r--TAO/tao/ORB_Core_TSS_Resources.h6
-rw-r--r--TAO/tao/ORB_Table.cpp12
-rw-r--r--TAO/tao/ORB_Table.h33
-rw-r--r--TAO/tao/ORB_Table.inl11
-rw-r--r--TAO/tao/ObjRefTemplate/Default_ORTA.cpp6
-rw-r--r--TAO/tao/ObjRefTemplate/Default_ORTC.cpp8
-rw-r--r--TAO/tao/ObjRefTemplate/Default_ORTC.h8
-rw-r--r--TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp29
-rw-r--r--TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h14
-rw-r--r--TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.cpp6
-rw-r--r--TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.h8
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplate.pidl5
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplateA.cpp6
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp8
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.h8
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp6
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.h10
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h6
-rw-r--r--TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeS.h2
-rw-r--r--TAO/tao/Object.cpp168
-rw-r--r--TAO/tao/Object.h38
-rw-r--r--TAO/tao/Object.i16
-rw-r--r--TAO/tao/ObjectIdListC.cpp6
-rw-r--r--TAO/tao/ObjectIdListC.h4
-rw-r--r--TAO/tao/ObjectKey_Table.cpp16
-rw-r--r--TAO/tao/ObjectKey_Table.h5
-rw-r--r--TAO/tao/Object_Argument_T.cpp12
-rw-r--r--TAO/tao/Object_Argument_T.h4
-rw-r--r--TAO/tao/Object_Argument_T.inl3
-rw-r--r--TAO/tao/Object_KeyC.cpp6
-rw-r--r--TAO/tao/Object_KeyC.h4
-rw-r--r--TAO/tao/Object_Loader.cpp7
-rw-r--r--TAO/tao/Object_Loader.h7
-rw-r--r--TAO/tao/Object_Proxy_Broker.cpp14
-rw-r--r--TAO/tao/Object_Proxy_Broker.h4
-rw-r--r--TAO/tao/Object_Ref_Table.cpp18
-rw-r--r--TAO/tao/Object_Ref_Table.h14
-rw-r--r--TAO/tao/Object_Ref_Table.inl17
-rw-r--r--TAO/tao/Object_T.cpp15
-rw-r--r--TAO/tao/Object_T.h11
-rw-r--r--TAO/tao/Objref_VarOut_T.cpp12
-rw-r--r--TAO/tao/Objref_VarOut_T.h4
-rw-r--r--TAO/tao/OctetSeqC.cpp6
-rw-r--r--TAO/tao/OctetSeqC.h4
-rw-r--r--TAO/tao/PI/ClientRequestDetails.cpp77
-rw-r--r--TAO/tao/PI/ClientRequestDetails.h84
-rw-r--r--TAO/tao/PI/ClientRequestDetails.inl27
-rw-r--r--TAO/tao/PI/ClientRequestInfo.cpp42
-rw-r--r--TAO/tao/PI/ClientRequestInfo.h35
-rw-r--r--TAO/tao/PI/ClientRequestInfo.pidl4
-rw-r--r--TAO/tao/PI/ClientRequestInfoA.cpp85
-rw-r--r--TAO/tao/PI/ClientRequestInfoA.h65
-rw-r--r--TAO/tao/PI/ClientRequestInfoC.cpp32
-rw-r--r--TAO/tao/PI/ClientRequestInfoC.h167
-rw-r--r--TAO/tao/PI/ClientRequestInterceptorA.cpp86
-rw-r--r--TAO/tao/PI/ClientRequestInterceptorA.h64
-rw-r--r--TAO/tao/PI/ClientRequestInterceptorC.cpp32
-rw-r--r--TAO/tao/PI/ClientRequestInterceptorC.h128
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp96
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h19
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.inl4
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp10
-rw-r--r--TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h11
-rw-r--r--TAO/tao/PI/InterceptorA.cpp87
-rw-r--r--TAO/tao/PI/InterceptorA.h62
-rw-r--r--TAO/tao/PI/InterceptorC.cpp32
-rw-r--r--TAO/tao/PI/InterceptorC.h67
-rw-r--r--TAO/tao/PI/Interceptor_List_T.cpp126
-rw-r--r--TAO/tao/PI/Interceptor_List_T.h35
-rw-r--r--TAO/tao/PI/InvalidSlotA.cpp6
-rw-r--r--TAO/tao/PI/InvalidSlotA.h4
-rw-r--r--TAO/tao/PI/InvalidSlotC.cpp6
-rw-r--r--TAO/tao/PI/InvalidSlotC.h4
-rw-r--r--TAO/tao/PI/ORBInitInfo.cpp93
-rw-r--r--TAO/tao/PI/ORBInitInfo.h44
-rw-r--r--TAO/tao/PI/ORBInitInfo.inl4
-rw-r--r--TAO/tao/PI/ORBInitInfo.pidl25
-rw-r--r--TAO/tao/PI/ORBInitInfoA.cpp337
-rw-r--r--TAO/tao/PI/ORBInitInfoC.cpp335
-rw-r--r--TAO/tao/PI/ORBInitInfoC.h547
-rw-r--r--TAO/tao/PI/ORBInitializerA.cpp87
-rw-r--r--TAO/tao/PI/ORBInitializerA.h62
-rw-r--r--TAO/tao/PI/ORBInitializerC.cpp32
-rw-r--r--TAO/tao/PI/ORBInitializerC.h75
-rw-r--r--TAO/tao/PI/ORBInitializer_Registry_Impl.cpp22
-rw-r--r--TAO/tao/PI/ORBInitializer_Registry_Impl.h10
-rw-r--r--TAO/tao/PI/PI.cpp57
-rw-r--r--TAO/tao/PI/PI.h22
-rw-r--r--TAO/tao/PI/PICurrent.cpp8
-rw-r--r--TAO/tao/PI/PICurrent.h10
-rw-r--r--TAO/tao/PI/PICurrent.inl2
-rw-r--r--TAO/tao/PI/PICurrent.pidl6
-rw-r--r--TAO/tao/PI/PICurrentA.cpp6
-rw-r--r--TAO/tao/PI/PICurrentA.h6
-rw-r--r--TAO/tao/PI/PICurrentC.cpp6
-rw-r--r--TAO/tao/PI/PICurrentC.h6
-rw-r--r--TAO/tao/PI/PICurrent_Copy_Callback.cpp30
-rw-r--r--TAO/tao/PI/PICurrent_Copy_Callback.h12
-rw-r--r--TAO/tao/PI/PICurrent_Impl.cpp44
-rw-r--r--TAO/tao/PI/PICurrent_Impl.h25
-rw-r--r--TAO/tao/PI/PICurrent_Impl.inl27
-rw-r--r--TAO/tao/PI/PICurrent_Loader.cpp8
-rw-r--r--TAO/tao/PI/PICurrent_Loader.h6
-rw-r--r--TAO/tao/PI/PIForwardRequestA.cpp50
-rw-r--r--TAO/tao/PI/PIForwardRequestA.h70
-rw-r--r--TAO/tao/PI/PIForwardRequestC.cpp48
-rw-r--r--TAO/tao/PI/PIForwardRequestC.h67
-rw-r--r--TAO/tao/PI/PI_ORBInitializer.cpp107
-rw-r--r--TAO/tao/PI/PI_ORBInitializer.h84
-rw-r--r--TAO/tao/PI/PI_PolicyFactory.cpp48
-rw-r--r--TAO/tao/PI/PI_PolicyFactory.h52
-rw-r--r--TAO/tao/PI/PolicyFactory.pidl2
-rw-r--r--TAO/tao/PI/PolicyFactoryA.cpp86
-rw-r--r--TAO/tao/PI/PolicyFactoryA.h62
-rw-r--r--TAO/tao/PI/PolicyFactoryC.cpp62
-rw-r--r--TAO/tao/PI/PolicyFactoryC.h77
-rw-r--r--TAO/tao/PI/PolicyFactory_Loader.cpp8
-rw-r--r--TAO/tao/PI/PolicyFactory_Loader.h14
-rw-r--r--TAO/tao/PI/PolicyFactory_Registry.cpp8
-rw-r--r--TAO/tao/PI/PolicyFactory_Registry.h12
-rw-r--r--TAO/tao/PI/ProcessingModePolicy.cpp59
-rw-r--r--TAO/tao/PI/ProcessingModePolicy.h72
-rw-r--r--TAO/tao/PI/ProcessingModePolicy.pidl42
-rw-r--r--TAO/tao/PI/ProcessingModePolicyC.cpp221
-rw-r--r--TAO/tao/PI/ProcessingModePolicyC.h263
-rw-r--r--TAO/tao/PI/ProcessingModePolicyS.h28
-rw-r--r--TAO/tao/PI/RequestInfo.pidl6
-rw-r--r--TAO/tao/PI/RequestInfoA.cpp86
-rw-r--r--TAO/tao/PI/RequestInfoA.h67
-rw-r--r--TAO/tao/PI/RequestInfoC.cpp32
-rw-r--r--TAO/tao/PI/RequestInfoC.h207
-rw-r--r--TAO/tao/PI/RequestInfo_Util.cpp8
-rw-r--r--TAO/tao/PI/RequestInfo_Util.h6
-rw-r--r--TAO/tao/PI_Forward.pidl4
-rw-r--r--TAO/tao/PI_ForwardC.cpp6
-rw-r--r--TAO/tao/PI_ForwardC.h4
-rw-r--r--TAO/tao/PI_Server/PICurrent_Guard.cpp12
-rw-r--r--TAO/tao/PI_Server/PICurrent_Guard.h8
-rw-r--r--TAO/tao/PI_Server/PI_Server.cpp10
-rw-r--r--TAO/tao/PI_Server/PI_Server.h12
-rw-r--r--TAO/tao/PI_Server/PI_Server_Loader.cpp15
-rw-r--r--TAO/tao/PI_Server/PI_Server_Loader.h14
-rw-r--r--TAO/tao/PI_Server/PI_Server_include.pidl2
-rw-r--r--TAO/tao/PI_Server/PI_Server_includeC.h2
-rw-r--r--TAO/tao/PI_Server/Policy_Creator_T.h8
-rw-r--r--TAO/tao/PI_Server/PortableServer_ORBInitializer.cpp30
-rw-r--r--TAO/tao/PI_Server/PortableServer_ORBInitializer.h10
-rw-r--r--TAO/tao/PI_Server/PortableServer_PolicyFactory.cpp8
-rw-r--r--TAO/tao/PI_Server/PortableServer_PolicyFactory.h9
-rw-r--r--TAO/tao/PI_Server/ServerInterceptorAdapter.cpp250
-rw-r--r--TAO/tao/PI_Server/ServerInterceptorAdapter.h28
-rw-r--r--TAO/tao/PI_Server/ServerRequestDetails.cpp77
-rw-r--r--TAO/tao/PI_Server/ServerRequestDetails.h83
-rw-r--r--TAO/tao/PI_Server/ServerRequestDetails.inl27
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.cpp9
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.h14
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.inl4
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfo.pidl4
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfoA.cpp85
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfoA.h65
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfoC.cpp32
-rw-r--r--TAO/tao/PI_Server/ServerRequestInfoC.h174
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptor.pidl2
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptorA.cpp85
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptorA.h65
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptorC.cpp32
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptorC.h108
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp9
-rw-r--r--TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h9
-rw-r--r--TAO/tao/ParameterModeC.cpp6
-rw-r--r--TAO/tao/ParameterModeC.h5
-rw-r--r--TAO/tao/Parser_Registry.cpp4
-rw-r--r--TAO/tao/Parser_Registry.h11
-rw-r--r--TAO/tao/Parser_Registry.i6
-rw-r--r--TAO/tao/Pluggable_Messaging.cpp8
-rw-r--r--TAO/tao/Pluggable_Messaging.h75
-rw-r--r--TAO/tao/Pluggable_Messaging_Utils.cpp14
-rw-r--r--TAO/tao/Pluggable_Messaging_Utils.h5
-rw-r--r--TAO/tao/Pluggable_Messaging_Utils.i4
-rw-r--r--TAO/tao/Policy.pidl6
-rw-r--r--TAO/tao/PolicyC.cpp8
-rw-r--r--TAO/tao/PolicyC.h6
-rw-r--r--TAO/tao/PolicyC.inl4
-rw-r--r--TAO/tao/PolicyFactory_Registry_Adapter.cpp13
-rw-r--r--TAO/tao/PolicyFactory_Registry_Adapter.h8
-rw-r--r--TAO/tao/PolicyFactory_Registry_Factory.cpp6
-rw-r--r--TAO/tao/PolicyFactory_Registry_Factory.h7
-rw-r--r--TAO/tao/Policy_Current.cpp9
-rw-r--r--TAO/tao/Policy_Current.h14
-rw-r--r--TAO/tao/Policy_Current.inl5
-rw-r--r--TAO/tao/Policy_Current_Impl.cpp6
-rw-r--r--TAO/tao/Policy_Current_Impl.h8
-rw-r--r--TAO/tao/Policy_Current_Impl.inl5
-rw-r--r--TAO/tao/Policy_ForwardC.cpp6
-rw-r--r--TAO/tao/Policy_ForwardC.h4
-rw-r--r--TAO/tao/Policy_Manager.cpp5
-rw-r--r--TAO/tao/Policy_Manager.h9
-rw-r--r--TAO/tao/Policy_Manager.i4
-rw-r--r--TAO/tao/Policy_Set.cpp21
-rw-r--r--TAO/tao/Policy_Set.h6
-rw-r--r--TAO/tao/Policy_Set.i16
-rw-r--r--TAO/tao/Policy_Validator.cpp19
-rw-r--r--TAO/tao/Policy_Validator.h8
-rw-r--r--TAO/tao/PortableInterceptor.h2
-rw-r--r--TAO/tao/PortableInterceptor.pidl4
-rw-r--r--TAO/tao/PortableInterceptorC.cpp6
-rw-r--r--TAO/tao/PortableInterceptorC.h4
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map.cpp9
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map.h14
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map.i8
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map_Entry.cpp5
-rw-r--r--TAO/tao/PortableServer/Active_Object_Map_Entry.h9
-rw-r--r--TAO/tao/PortableServer/Active_Policy_Strategies.cpp213
-rw-r--r--TAO/tao/PortableServer/Active_Policy_Strategies.h15
-rw-r--r--TAO/tao/PortableServer/Active_Policy_Strategies.inl22
-rw-r--r--TAO/tao/PortableServer/AdapterActivator.pidl2
-rw-r--r--TAO/tao/PortableServer/AdapterActivatorA.cpp6
-rw-r--r--TAO/tao/PortableServer/AdapterActivatorA.h8
-rw-r--r--TAO/tao/PortableServer/AdapterActivatorC.cpp6
-rw-r--r--TAO/tao/PortableServer/AdapterActivatorC.h6
-rw-r--r--TAO/tao/PortableServer/Adapter_Activator.cpp12
-rw-r--r--TAO/tao/PortableServer/Adapter_Activator.h11
-rw-r--r--TAO/tao/PortableServer/Any_SArg_Traits.h6
-rw-r--r--TAO/tao/PortableServer/BD_String_SArgument_T.cpp3
-rw-r--r--TAO/tao/PortableServer/BD_String_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/BD_String_SArgument_T.inl5
-rw-r--r--TAO/tao/PortableServer/Basic_SArgument_T.cpp3
-rw-r--r--TAO/tao/PortableServer/Basic_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/Basic_SArgument_T.inl3
-rw-r--r--TAO/tao/PortableServer/Basic_SArguments.h3
-rw-r--r--TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp16
-rw-r--r--TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h6
-rw-r--r--TAO/tao/PortableServer/Creation_Time.cpp4
-rw-r--r--TAO/tao/PortableServer/Creation_Time.h6
-rw-r--r--TAO/tao/PortableServer/Creation_Time.inl3
-rw-r--r--TAO/tao/PortableServer/Default_Acceptor_Filter.cpp7
-rw-r--r--TAO/tao/PortableServer/Default_Acceptor_Filter.h11
-rw-r--r--TAO/tao/PortableServer/Default_Policy_Validator.cpp11
-rw-r--r--TAO/tao/PortableServer/Default_Policy_Validator.h8
-rw-r--r--TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp10
-rw-r--r--TAO/tao/PortableServer/Default_Servant_Dispatcher.h10
-rw-r--r--TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.cpp7
-rw-r--r--TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h7
-rw-r--r--TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp4
-rw-r--r--TAO/tao/PortableServer/Fixed_Array_SArgument_T.h5
-rw-r--r--TAO/tao/PortableServer/Fixed_Array_SArgument_T.inl4
-rw-r--r--TAO/tao/PortableServer/Fixed_Size_SArgument_T.cpp5
-rw-r--r--TAO/tao/PortableServer/Fixed_Size_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/Fixed_Size_SArgument_T.inl4
-rw-r--r--TAO/tao/PortableServer/ForwardRequestA.cpp6
-rw-r--r--TAO/tao/PortableServer/ForwardRequestA.h8
-rw-r--r--TAO/tao/PortableServer/ForwardRequestC.cpp6
-rw-r--r--TAO/tao/PortableServer/ForwardRequestC.h6
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicy.cpp7
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicy.h8
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicyA.cpp6
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/IdAssignmentPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategy.cpp9
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategy.h10
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyFactory.h10
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp31
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.h15
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp31
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategySystem.h14
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp29
-rw-r--r--TAO/tao/PortableServer/IdAssignmentStrategyUser.h14
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicy.cpp7
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicy.h8
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicyA.cpp5
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/IdUniquenessPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategy.h12
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyFactory.h10
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp31
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.h14
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp30
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h14
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp32
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyUnique.h14
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp31
-rw-r--r--TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h14
-rw-r--r--TAO/tao/PortableServer/ImR_Client_Adapter.cpp8
-rw-r--r--TAO/tao/PortableServer/ImR_Client_Adapter.h8
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicy.cpp8
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicy.h8
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicyA.cpp6
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategy.cpp5
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategy.h6
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp31
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h15
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyFactory.h10
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp35
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h15
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp32
-rw-r--r--TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h15
-rw-r--r--TAO/tao/PortableServer/Key_Adapters.cpp9
-rw-r--r--TAO/tao/PortableServer/Key_Adapters.h14
-rw-r--r--TAO/tao/PortableServer/LifespanPolicy.cpp7
-rw-r--r--TAO/tao/PortableServer/LifespanPolicy.h8
-rw-r--r--TAO/tao/PortableServer/LifespanPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/LifespanPolicyA.cpp6
-rw-r--r--TAO/tao/PortableServer/LifespanPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/LifespanPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/LifespanPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/LifespanStrategy.cpp5
-rw-r--r--TAO/tao/PortableServer/LifespanStrategy.h8
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyFactory.h10
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyFactoryImpl.cpp31
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyFactoryImpl.h15
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistent.cpp12
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistent.h6
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp32
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h15
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyTransient.cpp11
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyTransient.h8
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp33
-rw-r--r--TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.h17
-rw-r--r--TAO/tao/PortableServer/Local_Servant_Base.cpp6
-rw-r--r--TAO/tao/PortableServer/Local_Servant_Base.h10
-rw-r--r--TAO/tao/PortableServer/Local_Servant_Base.inl6
-rw-r--r--TAO/tao/PortableServer/Non_Servant_Upcall.cpp11
-rw-r--r--TAO/tao/PortableServer/Non_Servant_Upcall.h12
-rw-r--r--TAO/tao/PortableServer/Non_Servant_Upcall.inl3
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter.cpp9
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter.h11
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter_Factory.cpp6
-rw-r--r--TAO/tao/PortableServer/ORT_Adapter_Factory.h9
-rw-r--r--TAO/tao/PortableServer/Object_Adapter.cpp94
-rw-r--r--TAO/tao/PortableServer/Object_Adapter.h27
-rw-r--r--TAO/tao/PortableServer/Object_Adapter.i3
-rw-r--r--TAO/tao/PortableServer/Object_Adapter_Factory.cpp10
-rw-r--r--TAO/tao/PortableServer/Object_Adapter_Factory.h8
-rw-r--r--TAO/tao/PortableServer/Object_SArg_Traits.h4
-rw-r--r--TAO/tao/PortableServer/Object_SArgument_T.cpp3
-rw-r--r--TAO/tao/PortableServer/Object_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/Object_SArgument_T.inl4
-rw-r--r--TAO/tao/PortableServer/Operation_Table.cpp9
-rw-r--r--TAO/tao/PortableServer/Operation_Table.h9
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp11
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Binary_Search.h12
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp5
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h10
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp8
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Linear_Search.h12
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp12
-rw-r--r--TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h11
-rw-r--r--TAO/tao/PortableServer/POAManager.cpp27
-rw-r--r--TAO/tao/PortableServer/POAManager.h21
-rw-r--r--TAO/tao/PortableServer/POAManager.i3
-rw-r--r--TAO/tao/PortableServer/POAManagerC.cpp5
-rw-r--r--TAO/tao/PortableServer/POAManagerC.h6
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.cpp30
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.h22
-rw-r--r--TAO/tao/PortableServer/POA_Cached_Policies.i6
-rw-r--r--TAO/tao/PortableServer/POA_Current.cpp23
-rw-r--r--TAO/tao/PortableServer/POA_Current.h31
-rw-r--r--TAO/tao/PortableServer/POA_Current.inl14
-rw-r--r--TAO/tao/PortableServer/POA_Current_Factory.cpp10
-rw-r--r--TAO/tao/PortableServer/POA_Current_Factory.h8
-rw-r--r--TAO/tao/PortableServer/POA_Current_Impl.cpp17
-rw-r--r--TAO/tao/PortableServer/POA_Current_Impl.h31
-rw-r--r--TAO/tao/PortableServer/POA_Current_Impl.inl3
-rw-r--r--TAO/tao/PortableServer/POA_Guard.cpp8
-rw-r--r--TAO/tao/PortableServer/POA_Guard.h13
-rw-r--r--TAO/tao/PortableServer/POA_Policy_Set.cpp17
-rw-r--r--TAO/tao/PortableServer/POA_Policy_Set.h13
-rw-r--r--TAO/tao/PortableServer/POA_Policy_Set.i6
-rw-r--r--TAO/tao/PortableServer/PS_Current.pidl9
-rw-r--r--TAO/tao/PortableServer/PS_CurrentA.cpp224
-rw-r--r--TAO/tao/PortableServer/PS_CurrentC.cpp100
-rw-r--r--TAO/tao/PortableServer/PS_CurrentC.h103
-rw-r--r--TAO/tao/PortableServer/PS_Forward.pidl2
-rw-r--r--TAO/tao/PortableServer/PS_ForwardA.cpp5
-rw-r--r--TAO/tao/PortableServer/PS_ForwardA.h8
-rw-r--r--TAO/tao/PortableServer/PS_ForwardC.cpp5
-rw-r--r--TAO/tao/PortableServer/PS_ForwardC.h6
-rw-r--r--TAO/tao/PortableServer/PolicyS.cpp6
-rw-r--r--TAO/tao/PortableServer/PolicyS.h8
-rw-r--r--TAO/tao/PortableServer/PolicyS_T.cpp4
-rw-r--r--TAO/tao/PortableServer/PolicyS_T.h8
-rw-r--r--TAO/tao/PortableServer/PolicyS_T.inl3
-rw-r--r--TAO/tao/PortableServer/Policy_Strategy.h8
-rw-r--r--TAO/tao/PortableServer/PortableServer.cpp119
-rw-r--r--TAO/tao/PortableServer/PortableServer.h34
-rw-r--r--TAO/tao/PortableServer/PortableServer.pidl22
-rw-r--r--TAO/tao/PortableServer/PortableServerA.cpp6
-rw-r--r--TAO/tao/PortableServer/PortableServerC.cpp6
-rw-r--r--TAO/tao/PortableServer/PortableServerC.h6
-rw-r--r--TAO/tao/PortableServer/PortableServerS.h6
-rw-r--r--TAO/tao/PortableServer/PortableServer_Functions.cpp6
-rw-r--r--TAO/tao/PortableServer/PortableServer_Functions.h6
-rw-r--r--TAO/tao/PortableServer/PortableServer_WFunctions.cpp7
-rw-r--r--TAO/tao/PortableServer/PortableServer_WFunctions.h6
-rw-r--r--TAO/tao/PortableServer/PortableServer_include.pidl2
-rw-r--r--TAO/tao/PortableServer/PortableServer_includeC.h6
-rw-r--r--TAO/tao/PortableServer/Regular_POA.cpp8
-rw-r--r--TAO/tao/PortableServer/Regular_POA.h7
-rw-r--r--TAO/tao/PortableServer/Regular_POA.inl8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicy.cpp8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicy.h8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicyA.cpp6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategy.cpp9
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategy.h10
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp13
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h15
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp34
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h13
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp16
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h12
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp38
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h12
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyFactory.h6
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp38
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.h13
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp18
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h10
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp35
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h13
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp20
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h10
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp35
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h12
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp10
-rw-r--r--TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h10
-rw-r--r--TAO/tao/PortableServer/Root_POA.cpp197
-rw-r--r--TAO/tao/PortableServer/Root_POA.h68
-rw-r--r--TAO/tao/PortableServer/Root_POA.inl4
-rw-r--r--TAO/tao/PortableServer/SArg_Traits_T.h10
-rw-r--r--TAO/tao/PortableServer/ServantActivator.pidl6
-rw-r--r--TAO/tao/PortableServer/ServantActivatorA.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantActivatorA.h8
-rw-r--r--TAO/tao/PortableServer/ServantActivatorC.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantActivatorC.h6
-rw-r--r--TAO/tao/PortableServer/ServantLocator.pidl8
-rw-r--r--TAO/tao/PortableServer/ServantLocatorA.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantLocatorA.h8
-rw-r--r--TAO/tao/PortableServer/ServantLocatorC.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantLocatorC.h6
-rw-r--r--TAO/tao/PortableServer/ServantManagerA.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantManagerA.h8
-rw-r--r--TAO/tao/PortableServer/ServantManagerC.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantManagerC.h6
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicy.cpp10
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicy.h8
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicyA.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/ServantRetentionPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategy.h19
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyFactory.h6
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp31
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.h12
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp24
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h13
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp34
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h12
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp102
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyRetain.h11
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp33
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h13
-rw-r--r--TAO/tao/PortableServer/Servant_Base.cpp13
-rw-r--r--TAO/tao/PortableServer/Servant_Base.h14
-rw-r--r--TAO/tao/PortableServer/Servant_Base.i2
-rw-r--r--TAO/tao/PortableServer/Servant_Dispatcher.cpp9
-rw-r--r--TAO/tao/PortableServer/Servant_Dispatcher.h15
-rw-r--r--TAO/tao/PortableServer/Servant_Location.h6
-rw-r--r--TAO/tao/PortableServer/Servant_Upcall.cpp27
-rw-r--r--TAO/tao/PortableServer/Servant_Upcall.h13
-rw-r--r--TAO/tao/PortableServer/Servant_Upcall.inl3
-rw-r--r--TAO/tao/PortableServer/Special_Basic_SArgument_T.cpp4
-rw-r--r--TAO/tao/PortableServer/Special_Basic_SArgument_T.h5
-rw-r--r--TAO/tao/PortableServer/Special_Basic_SArgument_T.inl3
-rw-r--r--TAO/tao/PortableServer/Special_Basic_SArguments.h8
-rw-r--r--TAO/tao/PortableServer/StrategyFactory.cpp6
-rw-r--r--TAO/tao/PortableServer/StrategyFactory.h13
-rw-r--r--TAO/tao/PortableServer/ThreadPolicy.cpp8
-rw-r--r--TAO/tao/PortableServer/ThreadPolicy.h8
-rw-r--r--TAO/tao/PortableServer/ThreadPolicy.pidl2
-rw-r--r--TAO/tao/PortableServer/ThreadPolicyA.cpp6
-rw-r--r--TAO/tao/PortableServer/ThreadPolicyA.h8
-rw-r--r--TAO/tao/PortableServer/ThreadPolicyC.cpp6
-rw-r--r--TAO/tao/PortableServer/ThreadPolicyC.h6
-rw-r--r--TAO/tao/PortableServer/ThreadStrategy.cpp8
-rw-r--r--TAO/tao/PortableServer/ThreadStrategy.h12
-rw-r--r--TAO/tao/PortableServer/ThreadStrategyFactory.h10
-rw-r--r--TAO/tao/PortableServer/ThreadStrategyFactoryImpl.cpp32
-rw-r--r--TAO/tao/PortableServer/ThreadStrategyFactoryImpl.h12
-rw-r--r--TAO/tao/PortableServer/ThreadStrategyORBControl.cpp30
-rw-r--r--TAO/tao/PortableServer/ThreadStrategyORBControl.h18
-rw-r--r--TAO/tao/PortableServer/ThreadStrategySingle.cpp30
-rw-r--r--TAO/tao/PortableServer/ThreadStrategySingle.h18
-rw-r--r--TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp34
-rw-r--r--TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.h12
-rw-r--r--TAO/tao/PortableServer/TypeCode_SArg_Traits.h3
-rw-r--r--TAO/tao/PortableServer/UB_String_SArgument_T.cpp3
-rw-r--r--TAO/tao/PortableServer/UB_String_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/UB_String_SArgument_T.inl5
-rw-r--r--TAO/tao/PortableServer/UB_String_SArguments.h9
-rw-r--r--TAO/tao/PortableServer/Upcall_Command.cpp6
-rw-r--r--TAO/tao/PortableServer/Upcall_Command.h6
-rw-r--r--TAO/tao/PortableServer/Upcall_Wrapper.cpp50
-rw-r--r--TAO/tao/PortableServer/Upcall_Wrapper.h5
-rw-r--r--TAO/tao/PortableServer/Var_Array_SArgument_T.cpp3
-rw-r--r--TAO/tao/PortableServer/Var_Array_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/Var_Array_SArgument_T.inl2
-rw-r--r--TAO/tao/PortableServer/Var_Size_SArgument_T.cpp4
-rw-r--r--TAO/tao/PortableServer/Var_Size_SArgument_T.h4
-rw-r--r--TAO/tao/PortableServer/Var_Size_SArgument_T.inl3
-rw-r--r--TAO/tao/PortableServer/get_arg.h5
-rw-r--r--TAO/tao/PortableServer/poa_macros.h7
-rw-r--r--TAO/tao/Principal.cpp8
-rw-r--r--TAO/tao/Principal.h16
-rw-r--r--TAO/tao/Principal.i3
-rw-r--r--TAO/tao/Profile.cpp11
-rw-r--r--TAO/tao/Profile.h17
-rw-r--r--TAO/tao/Profile.i5
-rw-r--r--TAO/tao/Profile_Transport_Resolver.cpp48
-rw-r--r--TAO/tao/Profile_Transport_Resolver.h18
-rw-r--r--TAO/tao/Profile_Transport_Resolver.inl19
-rw-r--r--TAO/tao/Protocol_Factory.cpp10
-rw-r--r--TAO/tao/Protocol_Factory.h15
-rw-r--r--TAO/tao/Protocols_Hooks.cpp6
-rw-r--r--TAO/tao/Protocols_Hooks.h11
-rw-r--r--TAO/tao/Pseudo_VarOut_T.cpp13
-rw-r--r--TAO/tao/Pseudo_VarOut_T.h4
-rw-r--r--TAO/tao/Pseudo_VarOut_T.inl4
-rw-r--r--TAO/tao/QtResource_Factory.cpp11
-rw-r--r--TAO/tao/QtResource_Factory.h5
-rw-r--r--TAO/tao/QtResource_Loader.cpp10
-rw-r--r--TAO/tao/QtResource_Loader.h10
-rw-r--r--TAO/tao/Queued_Message.cpp8
-rw-r--r--TAO/tao/Queued_Message.h8
-rw-r--r--TAO/tao/RTCORBA/Continuous_Priority_Mapping.cpp8
-rw-r--r--TAO/tao/RTCORBA/Continuous_Priority_Mapping.h11
-rw-r--r--TAO/tao/RTCORBA/Direct_Priority_Mapping.cpp6
-rw-r--r--TAO/tao/RTCORBA/Direct_Priority_Mapping.h15
-rw-r--r--TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.cpp10
-rw-r--r--TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h14
-rw-r--r--TAO/tao/RTCORBA/Linear_Priority_Mapping.cpp29
-rw-r--r--TAO/tao/RTCORBA/Linear_Priority_Mapping.h24
-rw-r--r--TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp47
-rw-r--r--TAO/tao/RTCORBA/Multi_Priority_Mapping.h14
-rw-r--r--TAO/tao/RTCORBA/Network_Priority_Mapping.cpp6
-rw-r--r--TAO/tao/RTCORBA/Network_Priority_Mapping.h7
-rw-r--r--TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.cpp11
-rw-r--r--TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.h10
-rw-r--r--TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.i11
-rw-r--r--TAO/tao/RTCORBA/Priority_Mapping.cpp7
-rw-r--r--TAO/tao/RTCORBA/Priority_Mapping.h6
-rw-r--r--TAO/tao/RTCORBA/Priority_Mapping_Manager.cpp10
-rw-r--r--TAO/tao/RTCORBA/Priority_Mapping_Manager.h13
-rw-r--r--TAO/tao/RTCORBA/Priority_Mapping_Manager.i12
-rw-r--r--TAO/tao/RTCORBA/RTCORBA.cpp8
-rw-r--r--TAO/tao/RTCORBA/RTCORBA.h10
-rw-r--r--TAO/tao/RTCORBA/RTCORBA.pidl6
-rw-r--r--TAO/tao/RTCORBA/RTCORBAA.cpp6
-rw-r--r--TAO/tao/RTCORBA/RTCORBAC.cpp6
-rw-r--r--TAO/tao/RTCORBA/RTCORBAC.h8
-rw-r--r--TAO/tao/RTCORBA/RTCORBA_includeC.h6
-rw-r--r--TAO/tao/RTCORBA/RT_Current.cpp8
-rw-r--r--TAO/tao/RTCORBA/RT_Current.h12
-rw-r--r--TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp12
-rw-r--r--TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.h8
-rw-r--r--TAO/tao/RTCORBA/RT_Endpoint_Utils.cpp12
-rw-r--r--TAO/tao/RTCORBA/RT_Endpoint_Utils.h8
-rw-r--r--TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.cpp18
-rw-r--r--TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h14
-rw-r--r--TAO/tao/RTCORBA/RT_Mutex.cpp14
-rw-r--r--TAO/tao/RTCORBA/RT_Mutex.h19
-rw-r--r--TAO/tao/RTCORBA/RT_ORB.cpp28
-rw-r--r--TAO/tao/RTCORBA/RT_ORB.h17
-rw-r--r--TAO/tao/RTCORBA/RT_ORBInitializer.cpp56
-rw-r--r--TAO/tao/RTCORBA/RT_ORBInitializer.h33
-rw-r--r--TAO/tao/RTCORBA/RT_ORB_Loader.cpp218
-rw-r--r--TAO/tao/RTCORBA/RT_ORB_Loader.h10
-rw-r--r--TAO/tao/RTCORBA/RT_PolicyFactory.cpp8
-rw-r--r--TAO/tao/RTCORBA/RT_PolicyFactory.h8
-rw-r--r--TAO/tao/RTCORBA/RT_Policy_i.cpp11
-rw-r--r--TAO/tao/RTCORBA/RT_Policy_i.h9
-rw-r--r--TAO/tao/RTCORBA/RT_Protocols_Hooks.cpp14
-rw-r--r--TAO/tao/RTCORBA/RT_Protocols_Hooks.h13
-rw-r--r--TAO/tao/RTCORBA/RT_Stub.cpp8
-rw-r--r--TAO/tao/RTCORBA/RT_Stub.h23
-rw-r--r--TAO/tao/RTCORBA/RT_Stub_Factory.cpp8
-rw-r--r--TAO/tao/RTCORBA/RT_Stub_Factory.h9
-rw-r--r--TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp4
-rw-r--r--TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h7
-rw-r--r--TAO/tao/RTCORBA/RT_Transport_Descriptor.cpp10
-rw-r--r--TAO/tao/RTCORBA/RT_Transport_Descriptor.h15
-rw-r--r--TAO/tao/RTCORBA/RT_Transport_Descriptor.inl6
-rw-r--r--TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.cpp8
-rw-r--r--TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.h23
-rw-r--r--TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.inl6
-rw-r--r--TAO/tao/RTCORBA/Thread_Pool.cpp219
-rw-r--r--TAO/tao/RTCORBA/Thread_Pool.h89
-rw-r--r--TAO/tao/RTCORBA/Thread_Pool.inl37
-rw-r--r--TAO/tao/RTCORBA/rtcorba_typedefs.h2
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServer.cpp9
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServer.h11
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServerA.cpp6
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServerC.cpp6
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServerC.h6
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServerS.h5
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServer_include.pidl2
-rw-r--r--TAO/tao/RTPortableServer/RTPortableServer_includeC.h6
-rw-r--r--TAO/tao/RTPortableServer/RT_Acceptor_Filters.cpp24
-rw-r--r--TAO/tao/RTPortableServer/RT_Acceptor_Filters.h7
-rw-r--r--TAO/tao/RTPortableServer/RT_Collocation_Resolver.cpp46
-rw-r--r--TAO/tao/RTPortableServer/RT_Collocation_Resolver.h6
-rw-r--r--TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.cpp15
-rw-r--r--TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.h11
-rw-r--r--TAO/tao/RTPortableServer/RT_POA.cpp14
-rw-r--r--TAO/tao/RTPortableServer/RT_POA.h19
-rw-r--r--TAO/tao/RTPortableServer/RT_POA.i6
-rw-r--r--TAO/tao/RTPortableServer/RT_Policy_Validator.cpp7
-rw-r--r--TAO/tao/RTPortableServer/RT_Policy_Validator.h8
-rw-r--r--TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp35
-rw-r--r--TAO/tao/RTPortableServer/RT_Servant_Dispatcher.h9
-rw-r--r--TAO/tao/RTScheduling/Current.cpp30
-rw-r--r--TAO/tao/RTScheduling/Current.h17
-rw-r--r--TAO/tao/RTScheduling/Distributable_Thread.cpp6
-rw-r--r--TAO/tao/RTScheduling/Distributable_Thread.h12
-rw-r--r--TAO/tao/RTScheduling/RTScheduler.cpp8
-rw-r--r--TAO/tao/RTScheduling/RTScheduler.h13
-rw-r--r--TAO/tao/RTScheduling/RTSchedulerA.cpp5
-rw-r--r--TAO/tao/RTScheduling/RTSchedulerC.cpp6
-rw-r--r--TAO/tao/RTScheduling/RTSchedulerC.h6
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Initializer.cpp24
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Initializer.h20
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Loader.cpp11
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Loader.h12
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Manager.cpp7
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Manager.h10
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_Manager.i4
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_include.pidl2
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_includeA.h4
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_includeC.h4
-rw-r--r--TAO/tao/RTScheduling/RTScheduler_includeS.h28
-rw-r--r--TAO/tao/RTScheduling/Request_Interceptor.cpp65
-rw-r--r--TAO/tao/RTScheduling/Request_Interceptor.h21
-rw-r--r--TAO/tao/RTScheduling/ThreadAction.h8
-rw-r--r--TAO/tao/Reactive_Connect_Strategy.cpp16
-rw-r--r--TAO/tao/Reactive_Connect_Strategy.h13
-rw-r--r--TAO/tao/Reactive_Flushing_Strategy.cpp13
-rw-r--r--TAO/tao/Reactive_Flushing_Strategy.h6
-rw-r--r--TAO/tao/Refcounted_ObjectKey.cpp9
-rw-r--r--TAO/tao/Refcounted_ObjectKey.h6
-rw-r--r--TAO/tao/Refcounted_ObjectKey.inl9
-rw-r--r--TAO/tao/Remote_Invocation.cpp27
-rw-r--r--TAO/tao/Remote_Invocation.h4
-rw-r--r--TAO/tao/Remote_Object_Proxy_Broker.cpp21
-rw-r--r--TAO/tao/Remote_Object_Proxy_Broker.h4
-rw-r--r--TAO/tao/Reply_Dispatcher.cpp6
-rw-r--r--TAO/tao/Reply_Dispatcher.h6
-rw-r--r--TAO/tao/Reply_Dispatcher.i7
-rw-r--r--TAO/tao/Request_Dispatcher.cpp10
-rw-r--r--TAO/tao/Request_Dispatcher.h4
-rw-r--r--TAO/tao/Resource_Factory.cpp14
-rw-r--r--TAO/tao/Resource_Factory.h27
-rw-r--r--TAO/tao/Resume_Handle.cpp62
-rw-r--r--TAO/tao/Resume_Handle.h20
-rw-r--r--TAO/tao/Resume_Handle.inl8
-rw-r--r--TAO/tao/Seq_Out_T.cpp16
-rw-r--r--TAO/tao/Seq_Out_T.h5
-rw-r--r--TAO/tao/Seq_Out_T.inl6
-rw-r--r--TAO/tao/Seq_Var_T.cpp144
-rw-r--r--TAO/tao/Seq_Var_T.h10
-rw-r--r--TAO/tao/Seq_Var_T.inl45
-rw-r--r--TAO/tao/Sequence.cpp10
-rw-r--r--TAO/tao/Sequence.h10
-rw-r--r--TAO/tao/Sequence.i8
-rw-r--r--TAO/tao/Sequence_T.cpp40
-rw-r--r--TAO/tao/Sequence_T.h9
-rw-r--r--TAO/tao/Sequence_T.i7
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter.cpp11
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter.h25
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp6
-rw-r--r--TAO/tao/ServerRequestInterceptor_Adapter_Factory.h7
-rw-r--r--TAO/tao/Server_Strategy_Factory.cpp5
-rw-r--r--TAO/tao/Server_Strategy_Factory.h10
-rw-r--r--TAO/tao/Service_Callbacks.cpp22
-rw-r--r--TAO/tao/Service_Callbacks.h19
-rw-r--r--TAO/tao/Service_Context.cpp7
-rw-r--r--TAO/tao/Service_Context.h19
-rw-r--r--TAO/tao/Service_Context.inl5
-rw-r--r--TAO/tao/ServicesC.cpp6
-rw-r--r--TAO/tao/ServicesC.h4
-rw-r--r--TAO/tao/Services_Activate.cpp5
-rw-r--r--TAO/tao/Services_Activate.h7
-rw-r--r--TAO/tao/ShortSeqC.cpp6
-rw-r--r--TAO/tao/ShortSeqC.h4
-rw-r--r--TAO/tao/SmartProxies/Smart_Proxies.cpp4
-rw-r--r--TAO/tao/SmartProxies/Smart_Proxies.h16
-rw-r--r--TAO/tao/SmartProxies/Smart_Proxies.inl7
-rw-r--r--TAO/tao/Special_Basic_Argument_T.cpp13
-rw-r--r--TAO/tao/Special_Basic_Argument_T.h4
-rw-r--r--TAO/tao/Special_Basic_Argument_T.inl3
-rw-r--r--TAO/tao/Special_Basic_Arguments.h11
-rw-r--r--TAO/tao/Strategies.mpc3
-rw-r--r--TAO/tao/Strategies/DIOP_Acceptor.cpp19
-rw-r--r--TAO/tao/Strategies/DIOP_Acceptor.h10
-rw-r--r--TAO/tao/Strategies/DIOP_Acceptor.i5
-rw-r--r--TAO/tao/Strategies/DIOP_Connection_Handler.cpp17
-rw-r--r--TAO/tao/Strategies/DIOP_Connection_Handler.h19
-rw-r--r--TAO/tao/Strategies/DIOP_Connector.cpp15
-rw-r--r--TAO/tao/Strategies/DIOP_Connector.h8
-rw-r--r--TAO/tao/Strategies/DIOP_Endpoint.cpp11
-rw-r--r--TAO/tao/Strategies/DIOP_Endpoint.h11
-rw-r--r--TAO/tao/Strategies/DIOP_Endpoint.i5
-rw-r--r--TAO/tao/Strategies/DIOP_Factory.cpp16
-rw-r--r--TAO/tao/Strategies/DIOP_Factory.h9
-rw-r--r--TAO/tao/Strategies/DIOP_Profile.cpp17
-rw-r--r--TAO/tao/Strategies/DIOP_Profile.h8
-rw-r--r--TAO/tao/Strategies/DIOP_Transport.cpp46
-rw-r--r--TAO/tao/Strategies/DIOP_Transport.h16
-rw-r--r--TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.cpp9
-rw-r--r--TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.h8
-rw-r--r--TAO/tao/Strategies/LFU_Connection_Purging_Strategy.cpp7
-rw-r--r--TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h8
-rw-r--r--TAO/tao/Strategies/LF_Strategy_Null.cpp10
-rw-r--r--TAO/tao/Strategies/LF_Strategy_Null.h8
-rw-r--r--TAO/tao/Strategies/NULL_Connection_Purging_Strategy.cpp9
-rw-r--r--TAO/tao/Strategies/NULL_Connection_Purging_Strategy.h8
-rw-r--r--TAO/tao/Strategies/OC_Endpoint_Selector_Factory.cpp67
-rw-r--r--TAO/tao/Strategies/OC_Endpoint_Selector_Factory.h87
-rw-r--r--TAO/tao/Strategies/OC_Endpoint_Selector_Loader.cpp19
-rw-r--r--TAO/tao/Strategies/OC_Endpoint_Selector_Loader.h62
-rw-r--r--TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.cpp178
-rw-r--r--TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.h80
-rw-r--r--TAO/tao/Strategies/SCIOP_Acceptor.cpp13
-rw-r--r--TAO/tao/Strategies/SCIOP_Acceptor.h10
-rw-r--r--TAO/tao/Strategies/SCIOP_Acceptor.i5
-rw-r--r--TAO/tao/Strategies/SCIOP_Connection_Handler.cpp14
-rw-r--r--TAO/tao/Strategies/SCIOP_Connection_Handler.h16
-rw-r--r--TAO/tao/Strategies/SCIOP_Connector.cpp10
-rw-r--r--TAO/tao/Strategies/SCIOP_Connector.h12
-rw-r--r--TAO/tao/Strategies/SCIOP_Endpoint.cpp7
-rw-r--r--TAO/tao/Strategies/SCIOP_Endpoint.h7
-rw-r--r--TAO/tao/Strategies/SCIOP_Endpoint.i4
-rw-r--r--TAO/tao/Strategies/SCIOP_Factory.cpp10
-rw-r--r--TAO/tao/Strategies/SCIOP_Factory.h11
-rw-r--r--TAO/tao/Strategies/SCIOP_Lite_Factory.cpp10
-rw-r--r--TAO/tao/Strategies/SCIOP_Lite_Factory.h7
-rw-r--r--TAO/tao/Strategies/SCIOP_Profile.cpp10
-rw-r--r--TAO/tao/Strategies/SCIOP_Profile.h5
-rw-r--r--TAO/tao/Strategies/SCIOP_Transport.cpp12
-rw-r--r--TAO/tao/Strategies/SCIOP_Transport.h8
-rw-r--r--TAO/tao/Strategies/SHMIOP_Acceptor.cpp19
-rw-r--r--TAO/tao/Strategies/SHMIOP_Acceptor.h8
-rw-r--r--TAO/tao/Strategies/SHMIOP_Connection_Handler.cpp10
-rw-r--r--TAO/tao/Strategies/SHMIOP_Connection_Handler.h11
-rw-r--r--TAO/tao/Strategies/SHMIOP_Connector.cpp16
-rw-r--r--TAO/tao/Strategies/SHMIOP_Connector.h6
-rw-r--r--TAO/tao/Strategies/SHMIOP_Endpoint.cpp13
-rw-r--r--TAO/tao/Strategies/SHMIOP_Endpoint.h7
-rw-r--r--TAO/tao/Strategies/SHMIOP_Endpoint.i5
-rw-r--r--TAO/tao/Strategies/SHMIOP_Factory.cpp14
-rw-r--r--TAO/tao/Strategies/SHMIOP_Factory.h10
-rw-r--r--TAO/tao/Strategies/SHMIOP_Profile.cpp6
-rw-r--r--TAO/tao/Strategies/SHMIOP_Profile.h9
-rw-r--r--TAO/tao/Strategies/SHMIOP_Transport.cpp163
-rw-r--r--TAO/tao/Strategies/SHMIOP_Transport.h24
-rw-r--r--TAO/tao/Strategies/UIOP_Acceptor.cpp8
-rw-r--r--TAO/tao/Strategies/UIOP_Acceptor.h6
-rw-r--r--TAO/tao/Strategies/UIOP_Connection_Handler.cpp11
-rw-r--r--TAO/tao/Strategies/UIOP_Connection_Handler.h9
-rw-r--r--TAO/tao/Strategies/UIOP_Connector.cpp10
-rw-r--r--TAO/tao/Strategies/UIOP_Connector.h8
-rw-r--r--TAO/tao/Strategies/UIOP_Endpoint.cpp10
-rw-r--r--TAO/tao/Strategies/UIOP_Endpoint.h7
-rw-r--r--TAO/tao/Strategies/UIOP_Endpoint.i6
-rw-r--r--TAO/tao/Strategies/UIOP_Factory.cpp10
-rw-r--r--TAO/tao/Strategies/UIOP_Factory.h7
-rw-r--r--TAO/tao/Strategies/UIOP_Lite_Factory.cpp10
-rw-r--r--TAO/tao/Strategies/UIOP_Lite_Factory.h8
-rw-r--r--TAO/tao/Strategies/UIOP_Profile.cpp8
-rw-r--r--TAO/tao/Strategies/UIOP_Profile.h9
-rw-r--r--TAO/tao/Strategies/UIOP_Transport.cpp12
-rw-r--r--TAO/tao/Strategies/UIOP_Transport.h8
-rw-r--r--TAO/tao/Strategies/advanced_resource.cpp56
-rw-r--r--TAO/tao/Strategies/advanced_resource.h10
-rw-r--r--TAO/tao/Strategies/sciop_endpointsC.cpp6
-rw-r--r--TAO/tao/Strategies/sciop_endpointsC.h6
-rw-r--r--TAO/tao/Strategies/uiop_endpointsC.cpp6
-rw-r--r--TAO/tao/Strategies/uiop_endpointsC.h6
-rw-r--r--TAO/tao/StringSeqC.cpp6
-rw-r--r--TAO/tao/StringSeqC.h4
-rw-r--r--TAO/tao/Stub.cpp128
-rw-r--r--TAO/tao/Stub.h68
-rw-r--r--TAO/tao/Stub.i121
-rw-r--r--TAO/tao/Stub_Factory.cpp8
-rw-r--r--TAO/tao/Stub_Factory.h12
-rw-r--r--TAO/tao/Synch_Invocation.cpp76
-rw-r--r--TAO/tao/Synch_Invocation.h8
-rw-r--r--TAO/tao/Synch_Invocation.inl6
-rw-r--r--TAO/tao/Synch_Queued_Message.cpp20
-rw-r--r--TAO/tao/Synch_Queued_Message.h6
-rw-r--r--TAO/tao/Synch_Reply_Dispatcher.cpp68
-rw-r--r--TAO/tao/Synch_Reply_Dispatcher.h9
-rw-r--r--TAO/tao/SystemException.cpp27
-rw-r--r--TAO/tao/SystemException.h7
-rw-r--r--TAO/tao/SystemException.inl4
-rw-r--r--TAO/tao/TAO.pidl6
-rw-r--r--TAO/tao/TAOC.cpp6
-rw-r--r--TAO/tao/TAOC.h4
-rw-r--r--TAO/tao/TAO_Internal.cpp65
-rw-r--r--TAO/tao/TAO_Internal.h5
-rw-r--r--TAO/tao/TAO_Server_Request.cpp46
-rw-r--r--TAO/tao/TAO_Server_Request.h36
-rw-r--r--TAO/tao/TAO_Server_Request.i4
-rw-r--r--TAO/tao/TAO_Singleton.cpp6
-rw-r--r--TAO/tao/TAO_Singleton.h6
-rw-r--r--TAO/tao/TAO_Singleton.inl6
-rw-r--r--TAO/tao/TAO_Singleton_Manager.cpp95
-rw-r--r--TAO/tao/TAO_Singleton_Manager.h43
-rw-r--r--TAO/tao/TAO_Singleton_Manager.inl12
-rw-r--r--TAO/tao/TSS_Resources.cpp10
-rw-r--r--TAO/tao/TSS_Resources.h8
-rw-r--r--TAO/tao/Tagged_Components.cpp4
-rw-r--r--TAO/tao/Tagged_Components.h7
-rw-r--r--TAO/tao/Tagged_Components.i4
-rw-r--r--TAO/tao/Tagged_Profile.cpp4
-rw-r--r--TAO/tao/Tagged_Profile.h19
-rw-r--r--TAO/tao/Tagged_Profile.i6
-rw-r--r--TAO/tao/Thread_Lane_Resources.cpp5
-rw-r--r--TAO/tao/Thread_Lane_Resources.h9
-rw-r--r--TAO/tao/Thread_Lane_Resources_Manager.cpp3
-rw-r--r--TAO/tao/Thread_Lane_Resources_Manager.h9
-rw-r--r--TAO/tao/Thread_Per_Connection_Handler.cpp14
-rw-r--r--TAO/tao/Thread_Per_Connection_Handler.h7
-rw-r--r--TAO/tao/TimeBaseC.cpp6
-rw-r--r--TAO/tao/TimeBaseC.h4
-rw-r--r--TAO/tao/TkResource_Factory.cpp8
-rw-r--r--TAO/tao/TkResource_Factory.h5
-rw-r--r--TAO/tao/TkResource_Loader.cpp15
-rw-r--r--TAO/tao/TkResource_Loader.h17
-rw-r--r--TAO/tao/Transport.cpp1674
-rw-r--r--TAO/tao/Transport.h146
-rw-r--r--TAO/tao/Transport.inl5
-rw-r--r--TAO/tao/Transport_Acceptor.cpp11
-rw-r--r--TAO/tao/Transport_Acceptor.h11
-rw-r--r--TAO/tao/Transport_Acceptor.inl6
-rw-r--r--TAO/tao/Transport_Cache_Manager.cpp22
-rw-r--r--TAO/tao/Transport_Cache_Manager.h12
-rw-r--r--TAO/tao/Transport_Cache_Manager.inl9
-rw-r--r--TAO/tao/Transport_Connector.cpp45
-rw-r--r--TAO/tao/Transport_Connector.h15
-rw-r--r--TAO/tao/Transport_Connector.inl6
-rw-r--r--TAO/tao/Transport_Descriptor_Interface.cpp8
-rw-r--r--TAO/tao/Transport_Descriptor_Interface.h4
-rw-r--r--TAO/tao/Transport_Descriptor_Interface.inl27
-rw-r--r--TAO/tao/Transport_Mux_Strategy.cpp5
-rw-r--r--TAO/tao/Transport_Mux_Strategy.h9
-rw-r--r--TAO/tao/Transport_Queueing_Strategies.cpp13
-rw-r--r--TAO/tao/Transport_Queueing_Strategies.h9
-rw-r--r--TAO/tao/Transport_Timer.cpp9
-rw-r--r--TAO/tao/Transport_Timer.h7
-rw-r--r--TAO/tao/TypeCodeFactory/Recursive_TypeCode.cpp7
-rw-r--r--TAO/tao/TypeCodeFactory/Recursive_TypeCode.h3
-rw-r--r--TAO/tao/TypeCodeFactory/Recursive_TypeCode.inl3
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactoryA.cpp6
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp6
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h6
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp8
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h15
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp17
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h16
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp13
-rw-r--r--TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h5
-rw-r--r--TAO/tao/TypeCodeFactory_Adapter.h6
-rw-r--r--TAO/tao/Typecode_typesC.cpp6
-rw-r--r--TAO/tao/Typecode_typesC.h4
-rw-r--r--TAO/tao/UB_String_Argument_T.cpp12
-rw-r--r--TAO/tao/UB_String_Argument_T.h7
-rw-r--r--TAO/tao/UB_String_Argument_T.inl8
-rw-r--r--TAO/tao/UB_String_Arguments.h6
-rw-r--r--TAO/tao/ULongLongSeqC.cpp6
-rw-r--r--TAO/tao/ULongLongSeqC.h4
-rw-r--r--TAO/tao/ULongSeqC.cpp6
-rw-r--r--TAO/tao/ULongSeqC.h4
-rw-r--r--TAO/tao/UShortSeqC.cpp6
-rw-r--r--TAO/tao/UShortSeqC.h4
-rw-r--r--TAO/tao/UserException.cpp6
-rw-r--r--TAO/tao/UserException.h4
-rw-r--r--TAO/tao/UserException.inl4
-rw-r--r--TAO/tao/Utils/Encodable.cpp6
-rw-r--r--TAO/tao/Utils/Encodable.h7
-rw-r--r--TAO/tao/Utils/Implicit_Deactivator.cpp7
-rw-r--r--TAO/tao/Utils/Implicit_Deactivator.h6
-rw-r--r--TAO/tao/Utils/ORB_Destroyer.cpp7
-rw-r--r--TAO/tao/Utils/ORB_Destroyer.h7
-rw-r--r--TAO/tao/Utils/ORB_Manager.cpp7
-rw-r--r--TAO/tao/Utils/ORB_Manager.h7
-rw-r--r--TAO/tao/Utils/PolicyList_Destroyer.cpp8
-rw-r--r--TAO/tao/Utils/PolicyList_Destroyer.h8
-rw-r--r--TAO/tao/Utils/PolicyList_Destroyer.inl6
-rw-r--r--TAO/tao/Utils/RIR_Narrow.cpp10
-rw-r--r--TAO/tao/Utils/RIR_Narrow.h8
-rw-r--r--TAO/tao/Utils/Servant_Var.cpp4
-rw-r--r--TAO/tao/Utils/Servant_Var.h10
-rw-r--r--TAO/tao/Utils/Servant_Var.inl30
-rw-r--r--TAO/tao/Utils/Server_Main.cpp12
-rw-r--r--TAO/tao/Utils/Server_Main.h19
-rw-r--r--TAO/tao/Utils/Synch_Refcountable.cpp9
-rw-r--r--TAO/tao/Utils/Synch_Refcountable.h11
-rw-r--r--TAO/tao/Utils/Synch_Refcountable.inl5
-rw-r--r--TAO/tao/Valuetype/AbstractBase.cpp12
-rw-r--r--TAO/tao/Valuetype/AbstractBase.h8
-rw-r--r--TAO/tao/Valuetype/AbstractBase.inl4
-rw-r--r--TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.cpp8
-rw-r--r--TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h19
-rw-r--r--TAO/tao/Valuetype/AbstractBase_T.cpp19
-rw-r--r--TAO/tao/Valuetype/AbstractBase_T.h6
-rw-r--r--TAO/tao/Valuetype/Sequence_T.cpp15
-rw-r--r--TAO/tao/Valuetype/Sequence_T.h9
-rw-r--r--TAO/tao/Valuetype/Sequence_T.inl4
-rw-r--r--TAO/tao/Valuetype/StringValueC.cpp28
-rw-r--r--TAO/tao/Valuetype/StringValueC.h8
-rw-r--r--TAO/tao/Valuetype/StringValueC.inl11
-rw-r--r--TAO/tao/Valuetype/ValueBase.cpp43
-rw-r--r--TAO/tao/Valuetype/ValueBase.h7
-rw-r--r--TAO/tao/Valuetype/ValueBase.inl4
-rw-r--r--TAO/tao/Valuetype/ValueFactory.cpp6
-rw-r--r--TAO/tao/Valuetype/ValueFactory.h16
-rw-r--r--TAO/tao/Valuetype/ValueFactory_Map.cpp8
-rw-r--r--TAO/tao/Valuetype/ValueFactory_Map.h9
-rw-r--r--TAO/tao/Valuetype/Value_CORBA_methods.h6
-rw-r--r--TAO/tao/Valuetype/Value_VarOut_T.cpp29
-rw-r--r--TAO/tao/Valuetype/Value_VarOut_T.h6
-rw-r--r--TAO/tao/Valuetype/Valuetype_Adapter_Impl.cpp16
-rw-r--r--TAO/tao/Valuetype/Valuetype_Adapter_Impl.h16
-rw-r--r--TAO/tao/Valuetype_Adapter.cpp5
-rw-r--r--TAO/tao/Valuetype_Adapter.h6
-rw-r--r--TAO/tao/VarOut_T.cpp96
-rw-r--r--TAO/tao/VarOut_T.h3
-rw-r--r--TAO/tao/VarOut_T.inl7
-rw-r--r--TAO/tao/Var_Array_Argument_T.cpp12
-rw-r--r--TAO/tao/Var_Array_Argument_T.h4
-rw-r--r--TAO/tao/Var_Array_Argument_T.inl4
-rw-r--r--TAO/tao/Var_Size_Argument_T.cpp12
-rw-r--r--TAO/tao/Var_Size_Argument_T.h4
-rw-r--r--TAO/tao/Var_Size_Argument_T.inl5
-rw-r--r--TAO/tao/Version.h10
-rw-r--r--TAO/tao/Versioned_Namespace.h60
-rw-r--r--TAO/tao/WCharSeqC.cpp6
-rw-r--r--TAO/tao/WCharSeqC.h4
-rw-r--r--TAO/tao/WStringSeqC.cpp6
-rw-r--r--TAO/tao/WStringSeqC.h4
-rw-r--r--TAO/tao/Wait_On_LF_No_Upcall.cpp15
-rw-r--r--TAO/tao/Wait_On_LF_No_Upcall.h10
-rw-r--r--TAO/tao/Wait_On_Leader_Follower.cpp4
-rw-r--r--TAO/tao/Wait_On_Leader_Follower.h6
-rw-r--r--TAO/tao/Wait_On_Reactor.cpp4
-rw-r--r--TAO/tao/Wait_On_Reactor.h6
-rw-r--r--TAO/tao/Wait_On_Read.cpp18
-rw-r--r--TAO/tao/Wait_On_Read.h4
-rw-r--r--TAO/tao/Wait_Strategy.cpp7
-rw-r--r--TAO/tao/Wait_Strategy.h11
-rw-r--r--TAO/tao/WrongTransactionC.cpp7
-rw-r--r--TAO/tao/WrongTransactionC.h4
-rw-r--r--TAO/tao/XtResource_Factory.cpp4
-rw-r--r--TAO/tao/XtResource_Loader.cpp6
-rw-r--r--TAO/tao/corba.h2
-rw-r--r--TAO/tao/corbafwd.cpp7
-rw-r--r--TAO/tao/debug.cpp4
-rw-r--r--TAO/tao/debug.h6
-rw-r--r--TAO/tao/default_client.cpp37
-rw-r--r--TAO/tao/default_client.h6
-rw-r--r--TAO/tao/default_environment.h4
-rw-r--r--TAO/tao/default_resource.cpp157
-rw-r--r--TAO/tao/default_resource.h14
-rw-r--r--TAO/tao/default_server.cpp4
-rw-r--r--TAO/tao/default_server.h3
-rw-r--r--TAO/tao/diffs/ServerRequestInterceptor.diff (renamed from TAO/tao/PI_Server/diffs/ServerRequestInterceptor.diff)0
-rw-r--r--TAO/tao/extra_core.mpb2
-rw-r--r--TAO/tao/objectid.h6
-rw-r--r--TAO/tao/operation_details.cpp15
-rw-r--r--TAO/tao/operation_details.h41
-rw-r--r--TAO/tao/operation_details.i34
-rw-r--r--TAO/tao/orb_typesC.cpp6
-rw-r--r--TAO/tao/orb_typesC.h4
-rw-r--r--TAO/tao/orbconf.h81
-rw-r--r--TAO/tao/params.cpp5
-rw-r--r--TAO/tao/params.h16
-rw-r--r--TAO/tao/params.i16
-rw-r--r--TAO/tao/tao.mpc5
-rw-r--r--TAO/tao/target_specification.cpp2
-rw-r--r--TAO/tao/target_specification.h5
-rw-r--r--TAO/tao/target_specification.i6
-rw-r--r--TAO/tao/varbase.h8
-rw-r--r--TAO/tests/AMH_Exceptions/AMH_Exceptions.mpc1
-rw-r--r--TAO/tests/AMH_Exceptions/client.cpp7
-rwxr-xr-xTAO/tests/AMH_Exceptions/run_test.pl2
-rw-r--r--TAO/tests/AMH_Exceptions/server.cpp10
-rw-r--r--TAO/tests/AMH_Oneway/AMH_Oneway.mpc1
-rw-r--r--TAO/tests/AMH_Oneway/client.cpp12
-rwxr-xr-xTAO/tests/AMH_Oneway/run_test.pl20
-rw-r--r--TAO/tests/AMH_Oneway/server.cpp15
-rw-r--r--TAO/tests/AMI/AMI.mpc2
-rw-r--r--TAO/tests/AMI/client.cpp24
-rwxr-xr-xTAO/tests/AMI/run_test.pl13
-rw-r--r--TAO/tests/AMI/server.cpp14
-rw-r--r--TAO/tests/AMI/simple_client.cpp29
-rw-r--r--TAO/tests/AMI_Buffering/AMI_Buffering.mpc2
-rw-r--r--TAO/tests/AMI_Buffering/Reply_Handler.cpp12
-rw-r--r--TAO/tests/AMI_Buffering/Reply_Handler.h6
-rw-r--r--TAO/tests/AMI_Buffering/admin.cpp14
-rw-r--r--TAO/tests/AMI_Buffering/client.cpp12
-rw-r--r--TAO/tests/AMI_Buffering/server.cpp14
-rw-r--r--TAO/tests/AMI_Timeouts/client.cpp12
-rw-r--r--TAO/tests/AMI_Timeouts/server.cpp14
-rw-r--r--TAO/tests/AMI_Timeouts/timeout_i.cpp4
-rw-r--r--TAO/tests/AMI_Timeouts/timeout_i.h2
-rw-r--r--TAO/tests/Abstract_Interface/Abstract_Interface.mpc1
-rw-r--r--TAO/tests/Abstract_Interface/client.cpp14
-rw-r--r--TAO/tests/Abstract_Interface/server.cpp16
-rw-r--r--TAO/tests/Abstract_Interface/test_i.cpp2
-rwxr-xr-xTAO/tests/AlternateIIOP/run_test.pl4
-rw-r--r--TAO/tests/AlternateIIOP/svc.conf1
-rw-r--r--TAO/tests/Any/Recursive/RecursiveHello.mpc3
-rw-r--r--TAO/tests/Any/Recursive/Test.idl50
-rw-r--r--TAO/tests/Any/Recursive/client.cpp65
-rw-r--r--TAO/tests/Any/Recursive/server.cpp13
-rw-r--r--TAO/tests/BiDirectional/BiDirectional.mpc1
-rw-r--r--TAO/tests/BiDirectional/client.cpp11
-rwxr-xr-xTAO/tests/BiDirectional/run_test_ipv6.pl6
-rw-r--r--TAO/tests/BiDirectional/server.cpp13
-rw-r--r--TAO/tests/BiDirectional/test_i.cpp3
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/BiDir_DelayedUpcall.mpc18
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/README6
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/client.cpp173
-rwxr-xr-xTAO/tests/BiDirectional_DelayedUpcall/run_test.pl48
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/server.cpp164
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/test.idl27
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/test_i.cpp106
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/test_i.h93
-rw-r--r--TAO/tests/BiDirectional_DelayedUpcall/test_i.i17
-rw-r--r--TAO/tests/BiDirectional_MultipleORB/destroy.cpp9
-rw-r--r--TAO/tests/BiDirectional_NestedUpcall/BiDir_NestedUpcall.mpc1
-rw-r--r--TAO/tests/BiDirectional_NestedUpcall/client.cpp13
-rwxr-xr-xTAO/tests/BiDirectional_NestedUpcall/run_test.pl9
-rw-r--r--TAO/tests/BiDirectional_NestedUpcall/server.cpp13
-rw-r--r--TAO/tests/Big_AMI/Big_AMI.mpc1
-rw-r--r--TAO/tests/Big_AMI/client.cpp14
-rw-r--r--TAO/tests/Big_AMI/server.cpp13
-rw-r--r--TAO/tests/Big_Oneways/Big_Oneways.mpc1
-rw-r--r--TAO/tests/Big_Oneways/client.cpp11
-rw-r--r--TAO/tests/Big_Oneways/server.cpp13
-rw-r--r--TAO/tests/Big_Reply/Big_Reply.mpc1
-rw-r--r--TAO/tests/Big_Reply/client.cpp11
-rw-r--r--TAO/tests/Big_Reply/server.cpp13
-rw-r--r--TAO/tests/Big_Request_Muxing/Big_Request_Muxing.mpc1
-rw-r--r--TAO/tests/Big_Request_Muxing/client.cpp11
-rw-r--r--TAO/tests/Big_Request_Muxing/server.cpp29
-rw-r--r--TAO/tests/Big_Twoways/Big_Twoways.mpc1
-rw-r--r--TAO/tests/Big_Twoways/client.cpp11
-rw-r--r--TAO/tests/Big_Twoways/server.cpp13
-rw-r--r--TAO/tests/Blocking_Sync_None/Blocking_Sync_None.mpc1
-rw-r--r--TAO/tests/Blocking_Sync_None/client.cpp11
-rw-r--r--TAO/tests/Blocking_Sync_None/server.cpp13
-rw-r--r--TAO/tests/Bug_1020_Basic_Regression/Bug_1020_Basic_Regression.mpc1
-rw-r--r--TAO/tests/Bug_1020_Basic_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1020_Basic_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1020_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1020_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1269_Regression/Bug_1269_Regression.mpc1
-rw-r--r--TAO/tests/Bug_1269_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1269_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1269_Regression/shutdown.cpp11
-rw-r--r--TAO/tests/Bug_1270_Regression/Bug_1270_Regression.mpc2
-rw-r--r--TAO/tests/Bug_1270_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1270_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1270_Regression/shutdown.cpp11
-rw-r--r--TAO/tests/Bug_1330_Regression/Bug_1330_Regression.mpc5
-rw-r--r--TAO/tests/Bug_1330_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1330_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1361_Regression/Bug_1361_Regression.mpc2
-rw-r--r--TAO/tests/Bug_1361_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1361_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1361_Regression/shutdown.cpp11
-rw-r--r--TAO/tests/Bug_1476_Regression/Bug_1476_Regression.mpc1
-rw-r--r--TAO/tests/Bug_1476_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1476_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1482_Regression/Bug_1482_Regression.mpc20
-rw-r--r--TAO/tests/Bug_1482_Regression/Reply_Handler.cpp4
-rw-r--r--TAO/tests/Bug_1482_Regression/Reply_Handler.h2
-rw-r--r--TAO/tests/Bug_1482_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1482_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1482_Regression/test.mpc19
-rw-r--r--TAO/tests/Bug_1495_Regression/Bug_1495.mpc1
-rw-r--r--TAO/tests/Bug_1495_Regression/Client_Task.cpp48
-rw-r--r--TAO/tests/Bug_1495_Regression/Server_Task.cpp2
-rw-r--r--TAO/tests/Bug_1495_Regression/Server_Task.h2
-rw-r--r--TAO/tests/Bug_1495_Regression/Threaded_Client.cpp20
-rw-r--r--TAO/tests/Bug_1495_Regression/Threaded_Server.cpp13
-rwxr-xr-xTAO/tests/Bug_1495_Regression/run_test.pl2
-rw-r--r--TAO/tests/Bug_1535_Regression/bug_1535_regression.cpp9
-rw-r--r--TAO/tests/Bug_1551_Regression/Bug_1551_Regression.mpc20
-rw-r--r--TAO/tests/Bug_1551_Regression/Reply_Handler.cpp6
-rw-r--r--TAO/tests/Bug_1551_Regression/Reply_Handler.h2
-rw-r--r--TAO/tests/Bug_1551_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1551_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1551_Regression/test.mpc19
-rw-r--r--TAO/tests/Bug_1568_Regression/Bug_1568_Regression.mpc1
-rw-r--r--TAO/tests/Bug_1568_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1568_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1627_Regression/Bug_1627_Regression.mpc17
-rw-r--r--TAO/tests/Bug_1627_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1627_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1627_Regression/test.mpc16
-rw-r--r--TAO/tests/Bug_1635_Regression/client.cpp7
-rw-r--r--TAO/tests/Bug_1636_Regression/client.cpp7
-rw-r--r--TAO/tests/Bug_1639_Regression/struct_client.cpp6
-rw-r--r--TAO/tests/Bug_1670_Regression/Bug_1670_Regression.mpc1
-rw-r--r--TAO/tests/Bug_1670_Regression/client.cpp11
-rw-r--r--TAO/tests/Bug_1670_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_1693_Test/client.cpp8
-rwxr-xr-xTAO/tests/Bug_1812_Regression/test.cpp2
-rwxr-xr-xTAO/tests/Bug_1813_Regression/test.cpp2
-rw-r--r--TAO/tests/Bug_1869_Regression/AMI.idl7
-rw-r--r--TAO/tests/Bug_1869_Regression/Bug_1869_Regression.mpc14
-rw-r--r--TAO/tests/Bug_1869_Regression/client.cpp93
-rw-r--r--TAO/tests/Bug_1869_Regression/run_test.pl40
-rw-r--r--TAO/tests/Bug_1869_Regression/server.cpp87
-rw-r--r--TAO/tests/Bug_2084_Regression/Bug_2084_Regression.mpc6
-rw-r--r--TAO/tests/Bug_2084_Regression/Client_Task.cpp100
-rw-r--r--TAO/tests/Bug_2084_Regression/Client_Task.h37
-rw-r--r--TAO/tests/Bug_2084_Regression/Collocated_Test.cpp127
-rw-r--r--TAO/tests/Bug_2084_Regression/EventNode.cpp60
-rw-r--r--TAO/tests/Bug_2084_Regression/EventNode.h38
-rw-r--r--TAO/tests/Bug_2084_Regression/Hello.cpp68
-rw-r--r--TAO/tests/Bug_2084_Regression/Hello.h38
-rw-r--r--TAO/tests/Bug_2084_Regression/Server_Task.cpp102
-rw-r--r--TAO/tests/Bug_2084_Regression/Server_Task.h48
-rw-r--r--TAO/tests/Bug_2084_Regression/Test.idl27
-rwxr-xr-xTAO/tests/Bug_2084_Regression/run_test.pl82
-rw-r--r--TAO/tests/Bug_2122_Regression/test.cpp2
-rw-r--r--TAO/tests/Bug_2124_Regression/test.cpp2
-rw-r--r--TAO/tests/Bug_2126_Regression/test.cpp2
-rw-r--r--TAO/tests/Bug_2134_Regression/Bug_2134_Regression.mpc10
-rw-r--r--TAO/tests/Bug_2134_Regression/Hello.cpp105
-rw-r--r--TAO/tests/Bug_2134_Regression/Hello.idl7
-rw-r--r--TAO/tests/Bug_2134_Regression/README5
-rwxr-xr-xTAO/tests/Bug_2134_Regression/run_test.pl22
-rwxr-xr-xTAO/tests/Bug_2144_Regression/test.cpp2
-rw-r--r--TAO/tests/Bug_2174_Regression/Bug_2174_Regression.mpc1
-rw-r--r--TAO/tests/Bug_2174_Regression/client.cpp11
-rwxr-xr-xTAO/tests/Bug_2174_Regression/run_test.pl26
-rw-r--r--TAO/tests/Bug_2174_Regression/server.cpp13
-rwxr-xr-xTAO/tests/Bug_2183_Regression/Bug_2183_Regression.mpc1
-rwxr-xr-xTAO/tests/Bug_2183_Regression/client.cpp11
-rwxr-xr-xTAO/tests/Bug_2183_Regression/run_test.pl21
-rwxr-xr-xTAO/tests/Bug_2183_Regression/server.cpp13
-rw-r--r--TAO/tests/Bug_2186_Regression/Bug_2186_Regression.mpc18
-rw-r--r--TAO/tests/Bug_2186_Regression/Hello.cpp45
-rw-r--r--TAO/tests/Bug_2186_Regression/Hello.h36
-rw-r--r--TAO/tests/Bug_2186_Regression/README60
-rw-r--r--TAO/tests/Bug_2186_Regression/Test.idl22
-rw-r--r--TAO/tests/Bug_2186_Regression/client.cpp132
-rwxr-xr-xTAO/tests/Bug_2186_Regression/run_test.pl63
-rw-r--r--TAO/tests/Bug_2186_Regression/server.conf2
-rw-r--r--TAO/tests/Bug_2186_Regression/server.cpp115
-rw-r--r--TAO/tests/Bug_2201_Regression/Bug_2201_Regression.mpc9
-rw-r--r--TAO/tests/Bug_2201_Regression/TestData.idl11
-rwxr-xr-xTAO/tests/Bug_2201_Regression/run_test.pl27
-rw-r--r--TAO/tests/Bug_2201_Regression/test.cpp32
-rwxr-xr-xTAO/tests/Bug_2222_Regression/test.cpp2
-rw-r--r--TAO/tests/Bug_2234_Regression/Bug_2234_Regression.mpc1
-rw-r--r--TAO/tests/Bug_2234_Regression/client.cpp25
-rwxr-xr-xTAO/tests/Bug_2234_Regression/run_test.pl13
-rw-r--r--TAO/tests/Bug_2234_Regression/server.cpp7
-rw-r--r--TAO/tests/Bug_2289_Regression/Bug_2289_Regression.mpc21
-rw-r--r--TAO/tests/Bug_2289_Regression/MyInterfaceImpl.cpp20
-rw-r--r--TAO/tests/Bug_2289_Regression/MyInterfaceImpl.h21
-rw-r--r--TAO/tests/Bug_2289_Regression/README26
-rw-r--r--TAO/tests/Bug_2289_Regression/Test.idl8
-rw-r--r--TAO/tests/Bug_2289_Regression/client.cpp145
-rwxr-xr-xTAO/tests/Bug_2289_Regression/run_test.pl60
-rw-r--r--TAO/tests/Bug_2289_Regression/server.cpp142
-rw-r--r--TAO/tests/Bug_2319_Regression/Bug_2319_Regression.mpc8
-rw-r--r--TAO/tests/Bug_2319_Regression/Test.idl17
-rwxr-xr-xTAO/tests/Bug_2319_Regression/run_test.pl24
-rw-r--r--TAO/tests/Bug_2319_Regression/server.cpp367
-rw-r--r--TAO/tests/Bug_2328_Regression/Bug_2328_Regression.mpc19
-rw-r--r--TAO/tests/Bug_2328_Regression/Hello.cpp26
-rw-r--r--TAO/tests/Bug_2328_Regression/Hello.h33
-rw-r--r--TAO/tests/Bug_2328_Regression/README16
-rw-r--r--TAO/tests/Bug_2328_Regression/Test.idl20
-rw-r--r--TAO/tests/Bug_2328_Regression/client.cpp89
-rwxr-xr-xTAO/tests/Bug_2328_Regression/run_test.pl49
-rw-r--r--TAO/tests/Bug_2328_Regression/server.cpp116
-rw-r--r--TAO/tests/Bug_2345_Regression/Bug_2345_Regression.mpc8
-rwxr-xr-xTAO/tests/Bug_2345_Regression/run_test.pl22
-rw-r--r--TAO/tests/Bug_2345_Regression/server.cpp41
-rw-r--r--TAO/tests/Bug_2349_Regression/Bug_2349_Regression.mpc17
-rw-r--r--TAO/tests/Bug_2349_Regression/client.cpp37
-rw-r--r--TAO/tests/Bug_2349_Regression/foo.idl6
-rwxr-xr-xTAO/tests/Bug_2349_Regression/run_test.pl49
-rw-r--r--TAO/tests/Bug_2349_Regression/server.cpp90
-rwxr-xr-xTAO/tests/Bug_2375_Regression/Bug_2375_Regression.mpc8
-rwxr-xr-xTAO/tests/Bug_2375_Regression/README5
-rwxr-xr-xTAO/tests/Bug_2375_Regression/test.cpp11
-rwxr-xr-xTAO/tests/Bug_2375_Regression/test.idl5
-rw-r--r--TAO/tests/Bug_2399_Regression/Bug_2399_Regression.mpc11
-rw-r--r--TAO/tests/Bug_2399_Regression/README8
-rw-r--r--TAO/tests/Bug_2399_Regression/included.idl5
-rw-r--r--TAO/tests/Bug_2399_Regression/mytmp/included.idl3
-rw-r--r--TAO/tests/Bug_2399_Regression/test.cpp10
-rw-r--r--TAO/tests/Bug_2399_Regression/test.idl7
-rw-r--r--TAO/tests/Bug_2417_Regression/Bug_2417_Regression.mpc19
-rw-r--r--TAO/tests/Bug_2417_Regression/client.cpp77
-rw-r--r--TAO/tests/Bug_2417_Regression/publisher.idl10
-rw-r--r--TAO/tests/Bug_2417_Regression/publisher_impl.cpp165
-rw-r--r--TAO/tests/Bug_2417_Regression/publisher_impl.h37
-rwxr-xr-xTAO/tests/Bug_2417_Regression/run_test.pl54
-rw-r--r--TAO/tests/Bug_2417_Regression/server.cpp93
-rw-r--r--TAO/tests/Bug_2417_Regression/subscriber.idl7
-rw-r--r--TAO/tests/Bug_2417_Regression/subscriber_impl.cpp45
-rw-r--r--TAO/tests/Bug_2417_Regression/subscriber_impl.h34
-rw-r--r--TAO/tests/Bug_2419_Regression/Bug_2419_Regression.mpc8
-rw-r--r--TAO/tests/Bug_2419_Regression/README3
-rw-r--r--TAO/tests/Bug_2419_Regression/abstract_parent.idl6
-rw-r--r--TAO/tests/Bug_2419_Regression/client.cpp8
-rw-r--r--TAO/tests/Bug_2419_Regression/local_child.idl6
-rw-r--r--TAO/tests/Bug_2424_Regression/Bug_2424_Regression.mpc8
-rw-r--r--TAO/tests/Bug_2424_Regression/OneLineCosNaming.idl2
-rw-r--r--TAO/tests/Bug_2424_Regression/README5
-rw-r--r--TAO/tests/Bug_2424_Regression/client.cpp8
-rw-r--r--TAO/tests/Bug_2429_Regression/Bug_2429_Regression.mpc21
-rw-r--r--TAO/tests/Bug_2429_Regression/Child.idl8
-rw-r--r--TAO/tests/Bug_2429_Regression/ChildServant.cpp30
-rw-r--r--TAO/tests/Bug_2429_Regression/ChildServant.h24
-rw-r--r--TAO/tests/Bug_2429_Regression/Parent.idl8
-rw-r--r--TAO/tests/Bug_2429_Regression/README16
-rw-r--r--TAO/tests/Bug_2429_Regression/client.cpp185
-rwxr-xr-xTAO/tests/Bug_2429_Regression/run_test.pl44
-rw-r--r--TAO/tests/Bug_2429_Regression/server.cpp105
-rw-r--r--TAO/tests/Bug_2494_Regression/Bug_2494_Regression.mpc19
-rw-r--r--TAO/tests/Bug_2494_Regression/README34
-rw-r--r--TAO/tests/Bug_2494_Regression/client.cpp137
-rwxr-xr-xTAO/tests/Bug_2494_Regression/run_test.pl68
-rw-r--r--TAO/tests/Bug_2494_Regression/server.cpp157
-rw-r--r--TAO/tests/Bug_2494_Regression/test.idl10
-rw-r--r--TAO/tests/Bug_2494_Regression/test_i.cpp29
-rw-r--r--TAO/tests/Bug_2494_Regression/test_i.h36
-rw-r--r--TAO/tests/Bug_2494_Regression/test_i.inl7
-rw-r--r--TAO/tests/CDR/alignment.cpp6
-rw-r--r--TAO/tests/CDR/allocator.cpp9
-rw-r--r--TAO/tests/CDR/basic_types.cpp11
-rw-r--r--TAO/tests/CDR/growth.cpp7
-rw-r--r--TAO/tests/CDR/octet_sequence.cpp2
-rw-r--r--TAO/tests/CDR/tc.cpp11
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/CSD_TP_Broken.mpc21
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.cpp328
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.h78
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.cpp427
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.h85
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/client_main.cpp7
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/Broken/run_test.pl186
-rw-r--r--TAO/tests/CSD_Strategy_Tests/Broken/server_main.cpp5
-rw-r--r--TAO/tests/CSD_Strategy_Tests/README117
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.cpp102
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.h114
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.cpp85
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.h42
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Export.h58
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.mpc39
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/CancelledException.idl7
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.cpp12
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.h38
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.cpp116
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.h51
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/CustomException.idl7
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/FooException.idl7
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.cpp58
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.h24
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.cpp75
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.h40
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.cpp99
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.h38
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.cpp135
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.h68
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.cpp35
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.h24
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp30
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h36
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppException.idl7
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h49
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/CSD_TP_Foo_A_Export.h58
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A.idl29
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.cpp94
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.h40
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.cpp88
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.h34
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.cpp82
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h43
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_A/csd_tp_foo_a_lib.mpc20
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/CSD_TP_Foo_B_Export.h58
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback.idl11
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.cpp28
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h31
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl70
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp210
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.h47
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.cpp83
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.h47
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp218
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.h54
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp297
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h92
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_B/csd_tp_foo_b_lib.mpc25
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/CSD_TP_Foo_C_Export.h58
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C.idl29
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.cpp92
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.h40
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.cpp136
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.h42
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.cpp153
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.h52
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.cpp111
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.h35
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.cpp65
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.h45
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.cpp66
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.h50
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.cpp69
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.h51
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.cpp52
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.h47
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp81
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.h50
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.cpp148
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h53
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Foo_C/csd_tp_foo_c_lib.mpc27
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/CSD_TP_Test_1.mpc21
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.cpp84
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.h28
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp192
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.h30
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/client_main.cpp5
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl60
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_1/server_main.cpp5
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/CSD_TP_Test_2.mpc21
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.cpp196
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.h51
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp375
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.h79
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/client_main.cpp7
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl186
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_2/server_main.cpp7
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/CSD_TP_Test_3.mpc21
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp326
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.h78
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp428
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.h85
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/client_main.cpp7
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl186
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_3/server_main.cpp5
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/CSD_TP_Test_4.mpc21
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.cpp199
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h52
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/README337
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp391
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.h79
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/client_main.cpp7
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl191
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_4/server_main.cpp5
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/CSD_TP_Test_Dynamic.mpc21
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.cpp25
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h33
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/README37
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Test.idl20
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/client.cpp86
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl49
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/server.cpp119
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/svc.conf1
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/CSD_TP_Test_Static.mpc22
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.cpp87
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.h28
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/README38
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp175
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.h30
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/client_main.cpp5
-rwxr-xr-xTAO/tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl61
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/server_main.cpp5
-rw-r--r--TAO/tests/CSD_Strategy_Tests/TP_Test_Static/svc.conf1
-rw-r--r--TAO/tests/Cache_Growth_Test/Cache_Growth_Test.mpc1
-rw-r--r--TAO/tests/Cache_Growth_Test/client.cpp11
-rw-r--r--TAO/tests/Cache_Growth_Test/server.cpp13
-rw-r--r--TAO/tests/CallbackTest/CallbackTest.mpc1
-rw-r--r--TAO/tests/CallbackTest/client.cpp11
-rwxr-xr-xTAO/tests/CallbackTest/run_test_ipv6.pl6
-rw-r--r--TAO/tests/CallbackTest/server.cpp13
-rw-r--r--TAO/tests/Client_Leaks/Client_Leaks.mpc2
-rw-r--r--TAO/tests/Client_Leaks/Process_Factory.cpp8
-rw-r--r--TAO/tests/Client_Leaks/child.cpp9
-rw-r--r--TAO/tests/Client_Leaks/client.cpp11
-rw-r--r--TAO/tests/Client_Leaks/server.cpp13
-rw-r--r--TAO/tests/CodeSets/simple/CodeSets_simple.mpc1
-rw-r--r--TAO/tests/CodeSets/simple/client.cpp25
-rw-r--r--TAO/tests/CodeSets/simple/server.cpp12
-rw-r--r--TAO/tests/Codec/Codec.mpc2
-rw-r--r--TAO/tests/Codec/client.cpp248
-rw-r--r--TAO/tests/Collocation/Collocation.cpp7
-rw-r--r--TAO/tests/Collocation/Collocation.mpc12
-rw-r--r--TAO/tests/CollocationLockup/AB.idl8
-rw-r--r--TAO/tests/CollocationLockup/CollocationLockup.cpp144
-rw-r--r--TAO/tests/CollocationLockup/CollocationLockup.mpc27
-rw-r--r--TAO/tests/CollocationLockup/SimpleNamingService.cpp74
-rw-r--r--TAO/tests/CollocationLockup/SimpleNamingService.idl9
-rwxr-xr-xTAO/tests/CollocationLockup/run_test.pl61
-rw-r--r--TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp19
-rw-r--r--TAO/tests/Collocation_Exception_Test/Server_Task.cpp2
-rw-r--r--TAO/tests/Collocation_Exception_Test/Server_Task.h2
-rw-r--r--TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp19
-rw-r--r--TAO/tests/Collocation_Oneway_Tests/Server_Task.cpp2
-rw-r--r--TAO/tests/Collocation_Oneway_Tests/Server_Task.h2
-rw-r--r--TAO/tests/Collocation_Opportunities/Collocation_Opportunities.cpp9
-rw-r--r--TAO/tests/Collocation_Tests/Collocated_Test.cpp19
-rw-r--r--TAO/tests/Collocation_Tests/Server_Task.cpp2
-rw-r--r--TAO/tests/Collocation_Tests/Server_Task.h2
-rw-r--r--TAO/tests/Connect_Strategy_Test/Connect_Strategy_Test.mpc1
-rw-r--r--TAO/tests/Connect_Strategy_Test/client.cpp11
-rw-r--r--TAO/tests/Connect_Strategy_Test/server.cpp13
-rw-r--r--TAO/tests/Connection_Failure/client.cpp7
-rw-r--r--TAO/tests/Connection_Purging/Connection_Purging.mpc1
-rw-r--r--TAO/tests/Connection_Purging/client.cpp11
-rw-r--r--TAO/tests/Connection_Purging/server.cpp13
-rw-r--r--TAO/tests/Connection_Timeout/Connection_Timeout.mpc1
-rw-r--r--TAO/tests/Connection_Timeout/client.cpp11
-rw-r--r--TAO/tests/Crash_On_Write/Crash_On_Write.mpc1
-rw-r--r--TAO/tests/Crash_On_Write/client.cpp11
-rw-r--r--TAO/tests/Crash_On_Write/server.cpp15
-rw-r--r--TAO/tests/Crashed_Callback/Crashed_Callback.mpc1
-rw-r--r--TAO/tests/Crashed_Callback/client.cpp11
-rw-r--r--TAO/tests/Crashed_Callback/server.cpp13
-rw-r--r--TAO/tests/DLL_ORB/DLL_ORB.mpc5
-rw-r--r--TAO/tests/DLL_ORB/Test_Client_Module.cpp5
-rw-r--r--TAO/tests/DLL_ORB/Test_Client_Module.h2
-rw-r--r--TAO/tests/DLL_ORB/Test_Server_Module.cpp7
-rw-r--r--TAO/tests/DLL_ORB/Test_Server_Module.h2
-rw-r--r--TAO/tests/DLL_ORB/client.cpp2
-rw-r--r--TAO/tests/DLL_ORB/server.cpp2
-rw-r--r--TAO/tests/DSI_Gateway/DSI_Gateway.mpc2
-rw-r--r--TAO/tests/DSI_Gateway/client.cpp11
-rw-r--r--TAO/tests/DSI_Gateway/gateway.cpp13
-rw-r--r--TAO/tests/DSI_Gateway/server.cpp13
-rw-r--r--TAO/tests/DynAny_Test/data.h2
-rw-r--r--TAO/tests/DynAny_Test/driver.cpp9
-rw-r--r--TAO/tests/DynAny_Test/test_dynsequence.cpp2
-rw-r--r--TAO/tests/DynAny_Test/test_dynstruct.cpp2
-rw-r--r--TAO/tests/Explicit_Event_Loop/Explicit_Event_Loop.mpc1
-rw-r--r--TAO/tests/Explicit_Event_Loop/client.cpp11
-rw-r--r--TAO/tests/Explicit_Event_Loop/server.cpp15
-rw-r--r--TAO/tests/Exposed_Policies/Exposed_Policies.mpc1
-rw-r--r--TAO/tests/Exposed_Policies/Policy_Tester.cpp8
-rw-r--r--TAO/tests/Exposed_Policies/Policy_Verifier.cpp4
-rw-r--r--TAO/tests/Exposed_Policies/RT_Properties.cpp2
-rw-r--r--TAO/tests/Exposed_Policies/client.cpp7
-rw-r--r--TAO/tests/Exposed_Policies/server.cpp7
-rw-r--r--TAO/tests/FL_Cube/FL_Cube.mpc1
-rw-r--r--TAO/tests/FL_Cube/client.cpp15
-rw-r--r--TAO/tests/FL_Cube/server.cpp13
-rw-r--r--TAO/tests/Faults/Faults.mpc3
-rw-r--r--TAO/tests/Faults/client.cpp11
-rw-r--r--TAO/tests/Faults/middle.cpp13
-rw-r--r--TAO/tests/Faults/ping.cpp13
-rw-r--r--TAO/tests/Faults/pong.cpp11
-rw-r--r--TAO/tests/Faults/server.cpp13
-rw-r--r--TAO/tests/File_IO/File_IO.mpc1
-rw-r--r--TAO/tests/File_IO/File_i.cpp2
-rw-r--r--TAO/tests/File_IO/client.cpp11
-rw-r--r--TAO/tests/File_IO/server.cpp13
-rw-r--r--TAO/tests/Forwarding/Forwarding.mpc1
-rw-r--r--TAO/tests/Forwarding/client.cpp11
-rw-r--r--TAO/tests/Forwarding/server.cpp13
-rw-r--r--TAO/tests/GIOP_Fragments/Java_Big_Reply/client.cpp11
-rw-r--r--TAO/tests/GIOP_Fragments/Java_Big_Request/server.cpp13
-rw-r--r--TAO/tests/GIOP_Fragments/PMB_With_Fragments/server.cpp13
-rw-r--r--TAO/tests/Hang_Shutdown/Hang.mpc2
-rw-r--r--TAO/tests/Hang_Shutdown/Test.idl16
-rw-r--r--TAO/tests/Hang_Shutdown/client.cpp412
-rw-r--r--TAO/tests/Hang_Shutdown/server.cpp182
-rw-r--r--TAO/tests/Hang_Shutdown/test_i.h45
-rw-r--r--TAO/tests/Hello/Hello.mpc1
-rw-r--r--TAO/tests/Hello/client.cpp11
-rw-r--r--TAO/tests/Hello/server.cpp13
-rw-r--r--TAO/tests/ICMG_Any_Bug/Hello.mpc1
-rwxr-xr-xTAO/tests/ICMG_Any_Bug/client.cpp11
-rwxr-xr-xTAO/tests/ICMG_Any_Bug/server.cpp13
-rw-r--r--TAO/tests/IDL_Test/array.idl29
-rw-r--r--TAO/tests/IDL_Test/constants.idl16
-rw-r--r--TAO/tests/IDL_Test/included.idl15
-rw-r--r--TAO/tests/IDL_Test/including.idl18
-rw-r--r--TAO/tests/IDL_Test/interface.idl58
-rw-r--r--TAO/tests/IDL_Test/main.cpp9
-rw-r--r--TAO/tests/IDL_Test/sequence.idl12
-rw-r--r--TAO/tests/IORManipulation/IORTest.cpp9
-rw-r--r--TAO/tests/IOR_Endpoint_Hostnames/generate_ior.cpp7
-rw-r--r--TAO/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp2
-rw-r--r--TAO/tests/IPV6/IPV6_Hello.mpc1
-rw-r--r--TAO/tests/IPV6/client.cpp11
-rwxr-xr-xTAO/tests/IPV6/run_test.pl14
-rw-r--r--TAO/tests/IPV6/server.cpp13
-rw-r--r--TAO/tests/InterOp-Naming/INS_test_client.cpp13
-rw-r--r--TAO/tests/InterOp-Naming/INS_test_server.cpp6
-rw-r--r--TAO/tests/InterOp-Naming/InterOp-Naming.mpc1
-rw-r--r--TAO/tests/InterOp-Naming/Server_i.cpp4
-rw-r--r--TAO/tests/InterOp-Naming/Server_i.h1
-rw-r--r--TAO/tests/Leader_Followers/Leader_Followers.mpc1
-rw-r--r--TAO/tests/Leader_Followers/client.cpp13
-rw-r--r--TAO/tests/Leader_Followers/server.cpp15
-rw-r--r--TAO/tests/LongUpcalls/AMI_Manager.cpp8
-rw-r--r--TAO/tests/LongUpcalls/AMI_Manager.h4
-rw-r--r--TAO/tests/LongUpcalls/LongUpcalls.mpc7
-rw-r--r--TAO/tests/LongUpcalls/Manager_Handler.cpp4
-rw-r--r--TAO/tests/LongUpcalls/Manager_Handler.h2
-rw-r--r--TAO/tests/LongUpcalls/ami_client.cpp11
-rw-r--r--TAO/tests/LongUpcalls/ami_server.cpp13
-rw-r--r--TAO/tests/LongUpcalls/blocking_client.cpp11
-rw-r--r--TAO/tests/LongUpcalls/blocking_server.cpp13
-rw-r--r--TAO/tests/MProfile/MProfile.mpc1
-rw-r--r--TAO/tests/MProfile/client.cpp11
-rw-r--r--TAO/tests/MProfile/server.cpp13
-rw-r--r--TAO/tests/MProfile_Connection_Timeout/MProfile_Connection_Timeout.mpc1
-rw-r--r--TAO/tests/MProfile_Connection_Timeout/client.cpp11
-rw-r--r--TAO/tests/MProfile_Connection_Timeout/server.cpp15
-rw-r--r--TAO/tests/MProfile_Forwarding/MProfile_Forwarding.mpc2
-rw-r--r--TAO/tests/MProfile_Forwarding/Manager.cpp16
-rw-r--r--TAO/tests/MProfile_Forwarding/client.cpp11
-rwxr-xr-xTAO/tests/MProfile_Forwarding/server.cpp13
-rw-r--r--TAO/tests/MT_BiDir/MT_BiDir.mpc1
-rw-r--r--TAO/tests/MT_BiDir/Sender_i.h4
-rw-r--r--TAO/tests/MT_BiDir/Server_Task.h3
-rw-r--r--TAO/tests/MT_BiDir/client.cpp11
-rw-r--r--TAO/tests/MT_BiDir/server.cpp13
-rw-r--r--TAO/tests/MT_Client/MT_Client.mpc1
-rw-r--r--TAO/tests/MT_Client/client.cpp11
-rw-r--r--TAO/tests/MT_Client/orb_creation.cpp13
-rw-r--r--TAO/tests/MT_Client/server.cpp13
-rw-r--r--TAO/tests/MT_Server/MT_Server.mpc1
-rw-r--r--TAO/tests/MT_Server/client.cpp11
-rw-r--r--TAO/tests/MT_Server/server.cpp13
-rw-r--r--TAO/tests/MT_Timeout/MT_Timeout.mpc1
-rw-r--r--TAO/tests/MT_Timeout/client.cpp11
-rw-r--r--TAO/tests/MT_Timeout/server.cpp15
-rw-r--r--TAO/tests/Multiple/Multiple.mpc1
-rw-r--r--TAO/tests/Multiple/client.cpp7
-rw-r--r--TAO/tests/Multiple/server.cpp8
-rw-r--r--TAO/tests/Multiple_Inheritance/Multiple_Inheritance.mpc1
-rw-r--r--TAO/tests/Multiple_Inheritance/client.cpp11
-rw-r--r--TAO/tests/Multiple_Inheritance/server.cpp14
-rw-r--r--TAO/tests/Muxed_GIOP_Versions/Muxed_GIOP_Versions.mpc1
-rw-r--r--TAO/tests/Muxed_GIOP_Versions/client.cpp11
-rw-r--r--TAO/tests/Muxed_GIOP_Versions/server.cpp13
-rw-r--r--TAO/tests/Muxing/Muxing.mpc1
-rw-r--r--TAO/tests/Muxing/client.cpp11
-rw-r--r--TAO/tests/Muxing/server.cpp13
-rw-r--r--TAO/tests/Native_Exceptions/Native_Exceptions.mpc3
-rw-r--r--TAO/tests/Native_Exceptions/client.cpp11
-rw-r--r--TAO/tests/Native_Exceptions/server.cpp13
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.mpc5
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/client.cpp18
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/client.h1
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/local_server.cpp2
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/local_server.h3
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/server.cpp10
-rw-r--r--TAO/tests/NestedUpcall/MT_Client_Test/server.h1
-rw-r--r--TAO/tests/NestedUpcall/Simple/Simple.mpc5
-rw-r--r--TAO/tests/NestedUpcall/Simple/client.cpp16
-rw-r--r--TAO/tests/NestedUpcall/Simple/server.cpp18
-rw-r--r--TAO/tests/NestedUpcall/Simple/simple-client.cpp14
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/TT.mpc8
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp8
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/initiator.h1
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp10
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/server_A.h1
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp10
-rw-r--r--TAO/tests/NestedUpcall/Triangle_Test/server_B.h1
-rw-r--r--TAO/tests/Nested_Event_Loop/Nested_Event_Loop.mpc1
-rw-r--r--TAO/tests/Nested_Event_Loop/client.cpp13
-rw-r--r--TAO/tests/Nested_Event_Loop/server.cpp15
-rw-r--r--TAO/tests/Nested_Upcall_Crash/Clock_Ticks.cpp4
-rw-r--r--TAO/tests/Nested_Upcall_Crash/Clock_Ticks.h2
-rw-r--r--TAO/tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc2
-rw-r--r--TAO/tests/Nested_Upcall_Crash/client.cpp11
-rw-r--r--TAO/tests/Nested_Upcall_Crash/scavenger.cpp11
-rw-r--r--TAO/tests/Nested_Upcall_Crash/server.cpp13
-rw-r--r--TAO/tests/No_Server_MT_Connect_Test/No_Server_Connect_Test.mpc1
-rw-r--r--TAO/tests/No_Server_MT_Connect_Test/client.cpp11
-rw-r--r--TAO/tests/No_Server_MT_Connect_Test/server.cpp13
-rw-r--r--TAO/tests/OBV/Any/AnyS_impl.cpp9
-rw-r--r--TAO/tests/OBV/Any/OBV_Any.mpc1
-rw-r--r--TAO/tests/OBV/Any/client.cpp15
-rw-r--r--TAO/tests/OBV/Any/server.cpp13
-rw-r--r--TAO/tests/OBV/Collocated/Forward/Client_Task.cpp18
-rw-r--r--TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp19
-rw-r--r--TAO/tests/OBV/Collocated/Forward/Server_Task.cpp2
-rw-r--r--TAO/tests/OBV/Collocated/Forward/Server_Task.h2
-rw-r--r--TAO/tests/OBV/Factory/OBV_Factory.mpc5
-rw-r--r--TAO/tests/OBV/Factory/client.cpp89
-rw-r--r--TAO/tests/OBV/Factory/server.cpp13
-rw-r--r--TAO/tests/OBV/Forward/OBV_Forward.mpc5
-rw-r--r--TAO/tests/OBV/Forward/client.cpp19
-rw-r--r--TAO/tests/OBV/Forward/server.cpp13
-rw-r--r--TAO/tests/OBV/Supports/Supports_Test.mpc2
-rw-r--r--TAO/tests/OBV/Supports/Supports_Test_impl.h1
-rw-r--r--TAO/tests/OBV/Supports/client.cpp9
-rw-r--r--TAO/tests/OBV/Supports/server.cpp8
-rw-r--r--TAO/tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc5
-rw-r--r--TAO/tests/OBV/TC_Alignment/client.cpp13
-rw-r--r--TAO/tests/OBV/TC_Alignment/server.cpp11
-rw-r--r--TAO/tests/OBV/TC_Alignment/test_i.cpp11
-rw-r--r--TAO/tests/OBV/ValueBox/Test_impl.cpp4
-rw-r--r--TAO/tests/OBV/ValueBox/client.cpp25
-rw-r--r--TAO/tests/OBV/ValueBox/server.cpp13
-rw-r--r--TAO/tests/OBV/ValueBox/valuebox.mpc5
-rw-r--r--TAO/tests/ORB_destroy/ORB_destroy.cpp29
-rw-r--r--TAO/tests/ORB_init/ORB_init.cpp15
-rw-r--r--TAO/tests/ORB_init/Portspan/server.cpp7
-rw-r--r--TAO/tests/ORB_shutdown/server.cpp7
-rw-r--r--TAO/tests/ORT/ORT_test_IORInterceptor.h2
-rw-r--r--TAO/tests/ORT/ServerRequestInterceptor.cpp2
-rw-r--r--TAO/tests/ORT/client.cpp11
-rw-r--r--TAO/tests/ORT/server.cpp15
-rw-r--r--TAO/tests/Object_Loader/Loader.cpp2
-rw-r--r--TAO/tests/Object_Loader/Loader.h2
-rw-r--r--TAO/tests/Object_Loader/Object_Loader.mpc1
-rw-r--r--TAO/tests/Object_Loader/driver.cpp2
-rw-r--r--TAO/tests/Objref_Sequence_Test/Objref_Sequence_Test.mpc1
-rw-r--r--TAO/tests/Objref_Sequence_Test/client.cpp15
-rw-r--r--TAO/tests/Objref_Sequence_Test/server.cpp15
-rw-r--r--TAO/tests/OctetSeq/OctetSeq.cpp12
-rw-r--r--TAO/tests/OctetSeq/OctetSeq.mpc4
-rw-r--r--TAO/tests/OctetSeq/client.cpp11
-rw-r--r--TAO/tests/OctetSeq/server.cpp13
-rw-r--r--TAO/tests/Oneway_Buffering/Oneway_Buffering.mpc2
-rw-r--r--TAO/tests/Oneway_Buffering/admin.cpp13
-rw-r--r--TAO/tests/Oneway_Buffering/client.cpp11
-rw-r--r--TAO/tests/Oneway_Buffering/server.cpp13
-rw-r--r--TAO/tests/Oneways_Invoking_Twoways/Oneways_Invoking_Twoways.mpc1
-rw-r--r--TAO/tests/Oneways_Invoking_Twoways/client.cpp11
-rw-r--r--TAO/tests/Oneways_Invoking_Twoways/server.cpp13
-rw-r--r--TAO/tests/POA/Current/Current.cpp9
-rw-r--r--TAO/tests/POA/Deactivate_Object/server.cpp7
-rw-r--r--TAO/tests/POA/Default_Servant/Default_Servant.cpp9
-rw-r--r--TAO/tests/POA/Etherealization/Etherealization.cpp9
-rw-r--r--TAO/tests/POA/Excessive_Object_Deactivations/Excessive_Object_Deactivations.cpp8
-rw-r--r--TAO/tests/POA/Identity/Identity.cpp7
-rw-r--r--TAO/tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp9
-rw-r--r--TAO/tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp9
-rw-r--r--TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp9
-rw-r--r--TAO/tests/POA/Object_Reactivation/Object_Reactivation.cpp13
-rw-r--r--TAO/tests/POA/POA_Destruction/POA_Destruction.cpp8
-rw-r--r--TAO/tests/POA/Persistent_ID/Persistent_ID.mpc1
-rw-r--r--TAO/tests/POA/Persistent_ID/client.cpp13
-rw-r--r--TAO/tests/POA/Persistent_ID/server.cpp24
-rw-r--r--TAO/tests/POA/Policies/Policies.cpp10
-rw-r--r--TAO/tests/POA/Reference_Counting/test.cpp7
-rw-r--r--TAO/tests/POA/Single_Threaded_POA/Single_Threaded_POA.cpp9
-rw-r--r--TAO/tests/POA/wait_for_completion/wait_for_completion.cpp13
-rw-r--r--TAO/tests/Param_Test/Param_Test.mpc7
-rw-r--r--TAO/tests/Param_Test/anyop.cpp11
-rw-r--r--TAO/tests/Param_Test/bd_str_seq.cpp6
-rw-r--r--TAO/tests/Param_Test/complex_any.cpp8
-rw-r--r--TAO/tests/Param_Test/driver.cpp7
-rw-r--r--TAO/tests/Param_Test/nested_struct.cpp6
-rw-r--r--TAO/tests/Param_Test/objref_struct.cpp6
-rw-r--r--TAO/tests/Param_Test/options.cpp3
-rw-r--r--TAO/tests/Param_Test/results.h2
-rwxr-xr-xTAO/tests/Param_Test/run_test.pl43
-rw-r--r--TAO/tests/Param_Test/server.cpp13
-rw-r--r--TAO/tests/Param_Test/ub_str_seq.cpp6
-rw-r--r--TAO/tests/Param_Test/var_struct.cpp18
-rwxr-xr-xTAO/tests/Permanent_Forward/Permanent_Forward.mpc6
-rwxr-xr-xTAO/tests/Permanent_Forward/README3
-rwxr-xr-xTAO/tests/Permanent_Forward/StubTest.cpp371
-rwxr-xr-xTAO/tests/Permanent_Forward/run_test.pl25
-rw-r--r--TAO/tests/Policies/Manipulation.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/AMI/Echo_Handler.cpp4
-rw-r--r--TAO/tests/Portable_Interceptors/AMI/Echo_Handler.h4
-rw-r--r--TAO/tests/Portable_Interceptors/AMI/PI_AMI.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/AMI/client.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/AMI/server.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlot/AdvSlot.mpc28
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlot/StateTransfer.idl12
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlot/client.cpp27
-rwxr-xr-xTAO/tests/Portable_Interceptors/AdvSlot/run_test.pl50
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlot/server.cpp199
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotDblCpy/AdvSlotDblCpy.mpc28
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotDblCpy/InvokeMe.idl12
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotDblCpy/README60
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp41
-rwxr-xr-xTAO/tests/Portable_Interceptors/AdvSlotDblCpy/run_test.pl50
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp326
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotExt/AdvSlotExt.mpc28
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotExt/StateTransfer.idl12
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotExt/client.cpp27
-rwxr-xr-xTAO/tests/Portable_Interceptors/AdvSlotExt/run_test.pl50
-rw-r--r--TAO/tests/Portable_Interceptors/AdvSlotExt/server.cpp242
-rw-r--r--TAO/tests/Portable_Interceptors/Benchmark/Interceptor_Type.cpp8
-rw-r--r--TAO/tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/Benchmark/client.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/Benchmark/marker.cpp6
-rw-r--r--TAO/tests/Portable_Interceptors/Benchmark/server.cpp15
-rw-r--r--TAO/tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/Bug_1559/client.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/Bug_1559/server.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/Bug_2088/client.cpp7
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp23
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp5
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.h2
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Dynamic/test_i.cpp5
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp21
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.cpp2
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.h2
-rw-r--r--TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp2
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/client.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/server.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp8
-rw-r--r--TAO/tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc5
-rw-r--r--TAO/tests/Portable_Interceptors/ForwardRequest/client.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/ForwardRequest/server.cpp15
-rw-r--r--TAO/tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.cpp2
-rw-r--r--TAO/tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h2
-rw-r--r--TAO/tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/IORInterceptor/client.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/IORInterceptor/server.cpp19
-rw-r--r--TAO/tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/ORB_Shutdown/client.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/ORB_Shutdown/server.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp53
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/client.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/PICurrent/server.cpp18
-rw-r--r--TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.cpp26
-rw-r--r--TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.h17
-rwxr-xr-xTAO/tests/Portable_Interceptors/PolicyFactory/run_test.pl2
-rw-r--r--TAO/tests/Portable_Interceptors/PolicyFactory/server.cpp9
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp98
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.h45
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp226
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.cpp138
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.h59
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/PI_ProcMode_Collocated.mpc16
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp109
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.h53
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.cpp395
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.h138
-rwxr-xr-xTAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl134
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test.idl42
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp60
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h54
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp98
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.h45
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp90
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.h58
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.cpp94
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.h57
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/PI_ProcMode_Remote.mpc26
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.cpp112
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.h53
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.cpp184
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.h81
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp136
-rwxr-xr-xTAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl154
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp192
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.h84
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp138
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test.idl42
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.cpp55
-rw-r--r--TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h54
-rw-r--r--TAO/tests/Portable_Interceptors/Recursive_ORBInitializer/client.cpp9
-rwxr-xr-xTAO/tests/Portable_Interceptors/Register_Initial_References/run_test.pl2
-rw-r--r--TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp9
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/server.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl2
-rw-r--r--TAO/tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc1
-rw-r--r--TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp11
-rw-r--r--TAO/tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp13
-rw-r--r--TAO/tests/Portable_Interceptors/Slot/PI_Slot.mpc7
-rw-r--r--TAO/tests/Portable_Interceptors/Slot/driver.cpp64
-rwxr-xr-xTAO/tests/Portable_Interceptors/Slot/run_test.pl26
-rw-r--r--TAO/tests/QtTests/QtTests.mpc3
-rwxr-xr-xTAO/tests/QtTests/client.cpp11
-rwxr-xr-xTAO/tests/QtTests/client.h2
-rwxr-xr-xTAO/tests/QtTests/server.cpp13
-rw-r--r--TAO/tests/Queued_Message_Test/Queued_Message_Test.cpp7
-rw-r--r--TAO/tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp2
-rw-r--r--TAO/tests/RTCORBA/Banded_Connections/RTCORBA_Banded_Conn.mpc1
-rw-r--r--TAO/tests/RTCORBA/Banded_Connections/client.cpp14
-rwxr-xr-xTAO/tests/RTCORBA/Banded_Connections/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Banded_Connections/server.cpp18
-rw-r--r--TAO/tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc1
-rw-r--r--TAO/tests/RTCORBA/Client_Propagated/client.cpp11
-rw-r--r--TAO/tests/RTCORBA/Client_Propagated/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Client_Protocol/RTCORBA_Client_Protocol.mpc1
-rw-r--r--TAO/tests/RTCORBA/Client_Protocol/client.cpp11
-rwxr-xr-xTAO/tests/RTCORBA/Client_Protocol/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Client_Protocol/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Collocation/Collocation.cpp9
-rw-r--r--TAO/tests/RTCORBA/Destroy_Thread_Pool/Destroy_Thread_Pool.cpp13
-rw-r--r--TAO/tests/RTCORBA/Diffserv/RTCORBA_Diffserv.mpc1
-rw-r--r--TAO/tests/RTCORBA/Diffserv/client.cpp11
-rw-r--r--TAO/tests/RTCORBA/Diffserv/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/README10
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/RT_Dynamic_Thread_Pool.mpc18
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/client.cpp225
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf2
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf.xml6
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/run_test.pl117
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp397
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf1
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf.xml5
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/test.idl12
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.cpp71
-rw-r--r--TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h45
-rw-r--r--TAO/tests/RTCORBA/Explicit_Binding/RTCORBA_Explicit_Binding.mpc1
-rw-r--r--TAO/tests/RTCORBA/Explicit_Binding/client.cpp11
-rwxr-xr-xTAO/tests/RTCORBA/Explicit_Binding/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Explicit_Binding/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Linear_Priority/RTCORBA_Linear_Priority.mpc1
-rw-r--r--TAO/tests/RTCORBA/Linear_Priority/client.cpp13
-rw-r--r--TAO/tests/RTCORBA/Linear_Priority/server.cpp15
-rw-r--r--TAO/tests/RTCORBA/MT_Client_Protocol_Priority/RTCORBA_MT_Client_Proto_Prio.mpc1
-rw-r--r--TAO/tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp11
-rw-r--r--TAO/tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/ORB_init/ORB_init.cpp17
-rw-r--r--TAO/tests/RTCORBA/Persistent_IOR/RTCORBA_Persistent_IOR.mpc1
-rw-r--r--TAO/tests/RTCORBA/Persistent_IOR/client.cpp13
-rw-r--r--TAO/tests/RTCORBA/Persistent_IOR/server.cpp15
-rw-r--r--TAO/tests/RTCORBA/Policies/Policies.cpp9
-rw-r--r--TAO/tests/RTCORBA/Policy_Combinations/RTCORBA_Policy_Combinations.mpc1
-rw-r--r--TAO/tests/RTCORBA/Policy_Combinations/client.cpp13
-rwxr-xr-xTAO/tests/RTCORBA/Policy_Combinations/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Policy_Combinations/server.cpp15
-rw-r--r--TAO/tests/RTCORBA/Priority_Inversion_With_Bands/Priority_Inversion_With_Bands.mpc1
-rw-r--r--TAO/tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp11
-rwxr-xr-xTAO/tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp14
-rw-r--r--TAO/tests/RTCORBA/Private_Connection/RTCORBA_Private_Connection.mpc1
-rw-r--r--TAO/tests/RTCORBA/Private_Connection/client.cpp11
-rw-r--r--TAO/tests/RTCORBA/Private_Connection/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/PaE_Selection.mpc1
-rw-r--r--TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp13
-rwxr-xr-xTAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp15
-rw-r--r--TAO/tests/RTCORBA/RTMutex/server.cpp11
-rw-r--r--TAO/tests/RTCORBA/Server_Declared/RTCORBA_Server_Declared.mpc1
-rw-r--r--TAO/tests/RTCORBA/Server_Declared/client.cpp11
-rw-r--r--TAO/tests/RTCORBA/Server_Declared/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Server_Protocol/RTCORBA_Server_Protocol.mpc1
-rw-r--r--TAO/tests/RTCORBA/Server_Protocol/client.cpp11
-rwxr-xr-xTAO/tests/RTCORBA/Server_Protocol/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Server_Protocol/server.cpp13
-rw-r--r--TAO/tests/RTCORBA/Thread_Pool/RTCORBA_Thread_Pool.mpc1
-rw-r--r--TAO/tests/RTCORBA/Thread_Pool/client.cpp11
-rwxr-xr-xTAO/tests/RTCORBA/Thread_Pool/run_test.pl2
-rw-r--r--TAO/tests/RTCORBA/Thread_Pool/server.cpp15
-rw-r--r--TAO/tests/RTCORBA/common_args.cpp4
-rw-r--r--TAO/tests/RTScheduling/Current/Thread_Task.cpp16
-rw-r--r--TAO/tests/RTScheduling/Current/Thread_Task.h4
-rwxr-xr-xTAO/tests/RTScheduling/Current/run_test.pl2
-rw-r--r--TAO/tests/RTScheduling/Current/test.cpp18
-rw-r--r--TAO/tests/RTScheduling/DT_Spawn/Thread_Action.h9
-rwxr-xr-xTAO/tests/RTScheduling/DT_Spawn/run_test.pl2
-rw-r--r--TAO/tests/RTScheduling/DT_Spawn/test.cpp23
-rw-r--r--TAO/tests/RTScheduling/Scheduler.cpp22
-rw-r--r--TAO/tests/RTScheduling/Scheduling_Interceptor/Scheduler_Interceptor.mpc1
-rwxr-xr-xTAO/tests/RTScheduling/Scheduling_Interceptor/run_test.pl2
-rw-r--r--TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp39
-rw-r--r--TAO/tests/RTScheduling/Scheduling_Interceptor/test_server.cpp26
-rw-r--r--TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp10
-rw-r--r--TAO/tests/RTScheduling/Thread_Cancel/test.cpp17
-rw-r--r--TAO/tests/RTScheduling/VoidData/test.h2
-rw-r--r--TAO/tests/RTScheduling/VoidData/test_client.cpp18
-rw-r--r--TAO/tests/Reliable_Oneways/Reliable_Oneways.mpc1
-rw-r--r--TAO/tests/Reliable_Oneways/client.cpp11
-rw-r--r--TAO/tests/Reliable_Oneways/server.cpp13
-rw-r--r--TAO/tests/Sequence_Unit_Tests/Bounded_Simple_Types.cpp2
-rw-r--r--TAO/tests/Sequence_Unit_Tests/Bounded_String.cpp2
-rw-r--r--TAO/tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc70
-rw-r--r--TAO/tests/Sequence_Unit_Tests/Unbounded_Octet.cpp52
-rw-r--r--TAO/tests/Sequence_Unit_Tests/Unbounded_Simple_Types.cpp2
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_basic_string_sequence.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence.hpp8
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp14
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_reference_allocation_traits.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr.hpp59
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr_ut.cpp125
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp45
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_value_allocation_traits.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_value_sequence.hpp13
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp50
-rw-r--r--TAO/tests/Sequence_Unit_Tests/bounded_wstring_sequence.hpp4
-rw-r--r--TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.cpp42
-rw-r--r--TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.hpp39
-rw-r--r--TAO/tests/Sequence_Unit_Tests/generic_sequence.hpp5
-rw-r--r--TAO/tests/Sequence_Unit_Tests/mock_reference.cpp47
-rw-r--r--TAO/tests/Sequence_Unit_Tests/mock_reference.hpp41
-rw-r--r--TAO/tests/Sequence_Unit_Tests/mock_stream.cpp35
-rw-r--r--TAO/tests/Sequence_Unit_Tests/mock_stream.hpp40
-rw-r--r--TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp28
-rw-r--r--TAO/tests/Sequence_Unit_Tests/object_reference_traits.hpp22
-rw-r--r--TAO/tests/Sequence_Unit_Tests/object_reference_traits_base.hpp22
-rw-r--r--TAO/tests/Sequence_Unit_Tests/range_checking.hpp7
-rwxr-xr-xTAO/tests/Sequence_Unit_Tests/run_test.pl8
-rw-r--r--TAO/tests/Sequence_Unit_Tests/string_sequence_element.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp14
-rw-r--r--TAO/tests/Sequence_Unit_Tests/string_traits.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/string_traits_base.hpp10
-rw-r--r--TAO/tests/Sequence_Unit_Tests/testing_allocation_traits.hpp2
-rw-r--r--TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp16
-rw-r--r--TAO/tests/Sequence_Unit_Tests/testing_object_reference_traits.hpp32
-rw-r--r--TAO/tests/Sequence_Unit_Tests/testing_range_checking.hpp2
-rw-r--r--TAO/tests/Sequence_Unit_Tests/testing_string_traits.hpp2
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_basic_string_sequence.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_fwd_object_reference_sequence_ut.cpp87
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence.hpp7
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp14
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp284
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp487
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp450
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_reference_allocation_traits.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr.hpp56
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr_ut.cpp123
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp46
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_value_allocation_traits.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp6
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp48
-rw-r--r--TAO/tests/Sequence_Unit_Tests/unbounded_wstring_sequence.hpp3
-rw-r--r--TAO/tests/Sequence_Unit_Tests/value_sequence_tester.hpp9
-rw-r--r--TAO/tests/Sequence_Unit_Tests/value_traits.hpp17
-rw-r--r--TAO/tests/Servant_To_Reference_Test/server.cpp11
-rw-r--r--TAO/tests/Server_Connection_Purging/Server_Connection_Purging.mpc1
-rw-r--r--TAO/tests/Server_Connection_Purging/client.cpp9
-rw-r--r--TAO/tests/Server_Connection_Purging/server.cpp13
-rw-r--r--TAO/tests/Server_Leaks/Server_Leaks.mpc1
-rw-r--r--TAO/tests/Server_Leaks/client.cpp11
-rw-r--r--TAO/tests/Server_Leaks/server.cpp13
-rw-r--r--TAO/tests/Server_Port_Zero/server.cpp13
-rw-r--r--TAO/tests/Single_Read/Single_Read.mpc1
-rw-r--r--TAO/tests/Single_Read/client.cpp13
-rw-r--r--TAO/tests/Single_Read/server.cpp15
-rw-r--r--TAO/tests/Smart_Proxies/Benchmark/client.cpp15
-rw-r--r--TAO/tests/Smart_Proxies/Benchmark/server.cpp15
-rw-r--r--TAO/tests/Smart_Proxies/Collocation/main.cpp7
-rw-r--r--TAO/tests/Smart_Proxies/On_Demand/client.cpp13
-rw-r--r--TAO/tests/Smart_Proxies/On_Demand/server.cpp15
-rw-r--r--TAO/tests/Smart_Proxies/Policy/client.cpp13
-rw-r--r--TAO/tests/Smart_Proxies/Policy/server.cpp15
-rw-r--r--TAO/tests/Smart_Proxies/Smart_Proxies.mpc1
-rw-r--r--TAO/tests/Smart_Proxies/client.cpp13
-rw-r--r--TAO/tests/Smart_Proxies/dtor/client.cpp13
-rwxr-xr-xTAO/tests/Smart_Proxies/dtor/run_test.pl14
-rw-r--r--TAO/tests/Smart_Proxies/dtor/server.cpp15
-rw-r--r--TAO/tests/Smart_Proxies/server.cpp15
-rw-r--r--TAO/tests/Stack_Recursion/Stack_Recursion.mpc1
-rw-r--r--TAO/tests/Stack_Recursion/client.cpp11
-rw-r--r--TAO/tests/Stack_Recursion/server.cpp13
-rw-r--r--TAO/tests/Strategies/Strategies.mpc1
-rw-r--r--TAO/tests/Strategies/client.cpp11
-rw-r--r--TAO/tests/Strategies/server.cpp13
-rw-r--r--TAO/tests/Timed_Buffered_Oneways/Timed_Buffered_Oneways.mpc1
-rw-r--r--TAO/tests/Timed_Buffered_Oneways/client.cpp13
-rw-r--r--TAO/tests/Timed_Buffered_Oneways/server.cpp15
-rw-r--r--TAO/tests/Timeout/Timeout.mpc1
-rw-r--r--TAO/tests/Timeout/client.cpp11
-rw-r--r--TAO/tests/Timeout/server.cpp13
-rw-r--r--TAO/tests/Two_Objects/First_i.cpp3
-rw-r--r--TAO/tests/Two_Objects/First_i.h7
-rw-r--r--TAO/tests/Two_Objects/Object_Factory_i.h5
-rw-r--r--TAO/tests/Two_Objects/Second_i.h4
-rw-r--r--TAO/tests/Two_Objects/Two_Objects.mpc1
-rw-r--r--TAO/tests/Two_Objects/client.cpp11
-rw-r--r--TAO/tests/Two_Objects/server.cpp13
-rw-r--r--TAO/tests/Typedef_String_Array/client.cpp11
-rw-r--r--TAO/tests/Typedef_String_Array/server.cpp13
-rw-r--r--TAO/tests/Typedef_String_Array/typedef_string_array.mpc1
-rw-r--r--TAO/tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc3
-rw-r--r--TAO/tests/UNKNOWN_Exception/client.cpp13
-rw-r--r--TAO/tests/UNKNOWN_Exception/server.cpp15
-rw-r--r--TAO/tests/Xt_Stopwatch/Client.h2
-rw-r--r--TAO/tests/Xt_Stopwatch/Xt_Stopwatch.mpc1
-rw-r--r--TAO/tests/Xt_Stopwatch/client.cpp11
-rw-r--r--TAO/tests/Xt_Stopwatch/server.cpp13
-rw-r--r--TAO/tools.mwc5
-rw-r--r--TAO/utils/NamingViewer/BindDialog.cpp12
-rw-r--r--TAO/utils/NamingViewer/BindNewContext.cpp4
-rw-r--r--TAO/utils/NamingViewer/NamingTreeCtrl.cpp18
-rw-r--r--TAO/utils/NamingViewer/NamingViewer.cpp2
-rw-r--r--TAO/utils/NamingViewer/NamingViewerDlg.cpp4
-rw-r--r--TAO/utils/NamingViewer/ViewIORDialog.cpp4
-rw-r--r--TAO/utils/catior/Makefile.am5
-rw-r--r--TAO/utils/catior/catior.cpp685
-rw-r--r--TAO/utils/catior/catior.mpc8
-rw-r--r--TAO/utils/nslist/nsadd.cpp4
-rw-r--r--TAO/utils/nslist/nsdel.cpp2
-rw-r--r--TAO/utils/nslist/nslist.cpp2
-rw-r--r--TAO/utils/wxNamingViewer/wxNamingViewer.cpp1
-rw-r--r--TAO/utils/wxNamingViewer/wxNamingViewerFrame.cpp2
-rw-r--r--THANKS84
-rw-r--r--VERSION3
-rw-r--r--ace/ACE.cpp57
-rw-r--r--ace/ACE.h33
-rw-r--r--ace/ACE.inl30
-rw-r--r--ace/ACE.pc.in2
-rw-r--r--ace/ACE_Memory_export.h58
-rw-r--r--ace/ACE_Reactor_export.h58
-rw-r--r--ace/ACE_Sockets_export.h58
-rw-r--r--ace/ACE_Threads_export.h58
-rw-r--r--ace/ACE_crc32.cpp8
-rw-r--r--ace/ACE_crc_ccitt.cpp8
-rw-r--r--ace/ACE_export.h10
-rw-r--r--ace/ARGV.cpp17
-rw-r--r--ace/ARGV.h69
-rw-r--r--ace/ARGV.inl319
-rw-r--r--ace/ATM_Acceptor.cpp8
-rw-r--r--ace/ATM_Acceptor.h19
-rw-r--r--ace/ATM_Acceptor.inl9
-rw-r--r--ace/ATM_Addr.cpp12
-rw-r--r--ace/ATM_Addr.h11
-rw-r--r--ace/ATM_Addr.inl3
-rw-r--r--ace/ATM_Connector.cpp6
-rw-r--r--ace/ATM_Connector.h11
-rw-r--r--ace/ATM_Connector.inl42
-rw-r--r--ace/ATM_Params.cpp8
-rw-r--r--ace/ATM_Params.h4
-rw-r--r--ace/ATM_Params.inl18
-rw-r--r--ace/ATM_QoS.cpp56
-rw-r--r--ace/ATM_QoS.h12
-rw-r--r--ace/ATM_QoS.inl7
-rw-r--r--ace/ATM_Stream.cpp4
-rw-r--r--ace/ATM_Stream.h8
-rw-r--r--ace/ATM_Stream.inl6
-rw-r--r--ace/Acceptor.cpp4
-rw-r--r--ace/Acceptor.h48
-rw-r--r--ace/Activation_Queue.cpp4
-rw-r--r--ace/Activation_Queue.h30
-rw-r--r--ace/Activation_Queue.inl21
-rw-r--r--ace/Active_Map_Manager.cpp1
-rw-r--r--ace/Active_Map_Manager.h4
-rw-r--r--ace/Active_Map_Manager.inl4
-rw-r--r--ace/Active_Map_Manager_T.cpp10
-rw-r--r--ace/Active_Map_Manager_T.h4
-rw-r--r--ace/Active_Map_Manager_T.inl7
-rw-r--r--ace/Addr.cpp4
-rw-r--r--ace/Addr.h4
-rw-r--r--ace/Addr.inl7
-rw-r--r--ace/Arg_Shifter.cpp203
-rw-r--r--ace/Arg_Shifter.h41
-rw-r--r--ace/Arg_Shifter.inl221
-rw-r--r--ace/Argv_Type_Converter.cpp73
-rw-r--r--ace/Argv_Type_Converter.h23
-rw-r--r--ace/Argv_Type_Converter.inl19
-rw-r--r--ace/Array.h4
-rw-r--r--ace/Array_Base.cpp14
-rw-r--r--ace/Array_Base.h6
-rw-r--r--ace/Array_Base.inl7
-rw-r--r--ace/Array_Map.cpp3
-rw-r--r--ace/Array_Map.h5
-rw-r--r--ace/Array_Map.inl4
-rw-r--r--ace/Assert.cpp24
-rw-r--r--ace/Assert.h38
-rw-r--r--ace/Asynch_Acceptor.cpp19
-rw-r--r--ace/Asynch_Acceptor.h10
-rw-r--r--ace/Asynch_Connector.cpp13
-rw-r--r--ace/Asynch_Connector.h4
-rw-r--r--ace/Asynch_IO.cpp4
-rw-r--r--ace/Asynch_IO.h28
-rw-r--r--ace/Asynch_IO_Impl.cpp5
-rw-r--r--ace/Asynch_IO_Impl.h8
-rw-r--r--ace/Asynch_IO_Impl.inl6
-rw-r--r--ace/Asynch_Pseudo_Task.cpp14
-rw-r--r--ace/Asynch_Pseudo_Task.h4
-rw-r--r--ace/Atomic_Op.cpp5
-rw-r--r--ace/Atomic_Op.h21
-rw-r--r--ace/Atomic_Op.inl8
-rw-r--r--ace/Atomic_Op_T.cpp9
-rw-r--r--ace/Atomic_Op_T.h5
-rw-r--r--ace/Atomic_Op_T.inl4
-rw-r--r--ace/Auto_Event.cpp13
-rw-r--r--ace/Auto_Event.h10
-rw-r--r--ace/Auto_Event.inl7
-rw-r--r--ace/Auto_Functor.cpp6
-rw-r--r--ace/Auto_Functor.h6
-rw-r--r--ace/Auto_Functor.inl6
-rw-r--r--ace/Auto_IncDec_T.cpp12
-rw-r--r--ace/Auto_IncDec_T.h5
-rw-r--r--ace/Auto_IncDec_T.inl6
-rw-r--r--ace/Auto_Ptr.cpp12
-rw-r--r--ace/Auto_Ptr.h19
-rw-r--r--ace/Auto_Ptr.inl8
-rw-r--r--ace/Barrier.cpp56
-rw-r--r--ace/Barrier.h40
-rw-r--r--ace/Barrier.inl7
-rw-r--r--ace/Base_Thread_Adapter.cpp20
-rw-r--r--ace/Base_Thread_Adapter.h30
-rw-r--r--ace/Base_Thread_Adapter.inl7
-rw-r--r--ace/Based_Pointer_Repository.cpp4
-rw-r--r--ace/Based_Pointer_Repository.h31
-rw-r--r--ace/Based_Pointer_T.cpp4
-rw-r--r--ace/Based_Pointer_T.h10
-rw-r--r--ace/Based_Pointer_T.inl7
-rw-r--r--ace/Basic_Stats.cpp38
-rw-r--r--ace/Basic_Stats.h9
-rw-r--r--ace/Basic_Stats.inl6
-rw-r--r--ace/Basic_Types.cpp3
-rw-r--r--ace/Basic_Types.h134
-rw-r--r--ace/Basic_Types.inl10
-rw-r--r--ace/Bound_Ptr.h4
-rw-r--r--ace/Bound_Ptr.inl4
-rw-r--r--ace/CDR_Base.cpp18
-rw-r--r--ace/CDR_Base.h11
-rw-r--r--ace/CDR_Base.inl6
-rw-r--r--ace/CDR_Size.cpp4
-rw-r--r--ace/CDR_Size.h12
-rw-r--r--ace/CDR_Size.inl3
-rw-r--r--ace/CDR_Stream.cpp56
-rw-r--r--ace/CDR_Stream.h42
-rw-r--r--ace/CDR_Stream.inl146
-rw-r--r--ace/CE_Screen_Output.cpp9
-rw-r--r--ace/CE_Screen_Output.h13
-rw-r--r--ace/Cache_Map_Manager_T.cpp14
-rw-r--r--ace/Cache_Map_Manager_T.h22
-rw-r--r--ace/Cache_Map_Manager_T.inl39
-rw-r--r--ace/Cached_Connect_Strategy_T.cpp16
-rw-r--r--ace/Cached_Connect_Strategy_T.h3
-rw-r--r--ace/Caching_Strategies_T.cpp10
-rw-r--r--ace/Caching_Strategies_T.h4
-rw-r--r--ace/Caching_Strategies_T.inl7
-rw-r--r--ace/Caching_Utility_T.cpp13
-rw-r--r--ace/Caching_Utility_T.h18
-rw-r--r--ace/Capabilities.cpp13
-rw-r--r--ace/Capabilities.h8
-rw-r--r--ace/Capabilities.inl4
-rw-r--r--ace/Cleanup.cpp21
-rw-r--r--ace/Cleanup.h24
-rw-r--r--ace/Cleanup.inl5
-rw-r--r--ace/Cleanup_Strategies_T.cpp47
-rw-r--r--ace/Cleanup_Strategies_T.h8
-rw-r--r--ace/Codecs.cpp76
-rw-r--r--ace/Codecs.h42
-rw-r--r--ace/Codeset_IBM1047.cpp110
-rw-r--r--ace/Codeset_IBM1047.h6
-rw-r--r--ace/Codeset_Registry.cpp23
-rw-r--r--ace/Codeset_Registry.h24
-rw-r--r--ace/Codeset_Registry.inl10
-rw-r--r--ace/Codeset_Registry_db.cpp8
-rw-r--r--ace/Condition_Recursive_Thread_Mutex.cpp9
-rw-r--r--ace/Condition_Recursive_Thread_Mutex.h17
-rw-r--r--ace/Condition_T.cpp16
-rw-r--r--ace/Condition_T.h5
-rw-r--r--ace/Condition_T.inl7
-rw-r--r--ace/Condition_Thread_Mutex.cpp4
-rw-r--r--ace/Condition_Thread_Mutex.h4
-rw-r--r--ace/Condition_Thread_Mutex.inl7
-rw-r--r--ace/Configuration.cpp21
-rw-r--r--ace/Configuration.h10
-rw-r--r--ace/Configuration_Import_Export.cpp6
-rw-r--r--ace/Configuration_Import_Export.h4
-rw-r--r--ace/Connection_Recycling_Strategy.cpp6
-rw-r--r--ace/Connection_Recycling_Strategy.h10
-rw-r--r--ace/Connector.cpp187
-rw-r--r--ace/Connector.h44
-rw-r--r--ace/Container_Instantiations.cpp15
-rw-r--r--ace/Containers.cpp3
-rw-r--r--ace/Containers.h16
-rw-r--r--ace/Containers.inl10
-rw-r--r--ace/Containers_T.cpp11
-rw-r--r--ace/Containers_T.h26
-rw-r--r--ace/Containers_T.inl9
-rw-r--r--ace/Copy_Disabled.cpp4
-rw-r--r--ace/Copy_Disabled.h5
-rw-r--r--ace/Countdown_Time.cpp4
-rw-r--r--ace/Countdown_Time.h4
-rw-r--r--ace/DEV.cpp6
-rw-r--r--ace/DEV.h4
-rw-r--r--ace/DEV.inl7
-rw-r--r--ace/DEV_Addr.cpp6
-rw-r--r--ace/DEV_Addr.h4
-rw-r--r--ace/DEV_Addr.inl6
-rw-r--r--ace/DEV_Connector.cpp5
-rw-r--r--ace/DEV_Connector.h5
-rw-r--r--ace/DEV_Connector.inl22
-rw-r--r--ace/DEV_IO.cpp6
-rw-r--r--ace/DEV_IO.h4
-rw-r--r--ace/DEV_IO.inl11
-rw-r--r--ace/DLL.cpp6
-rw-r--r--ace/DLL.h99
-rw-r--r--ace/DLL_Manager.cpp9
-rw-r--r--ace/DLL_Manager.h98
-rw-r--r--ace/Date_Time.h4
-rw-r--r--ace/Date_Time.inl9
-rw-r--r--ace/Default_Constants.h61
-rw-r--r--ace/Dev_Poll_Reactor.cpp197
-rw-r--r--ace/Dev_Poll_Reactor.h42
-rw-r--r--ace/Dev_Poll_Reactor.inl4
-rw-r--r--ace/Dirent.h10
-rw-r--r--ace/Dirent.inl28
-rw-r--r--ace/Dirent_Selector.cpp10
-rw-r--r--ace/Dirent_Selector.h16
-rw-r--r--ace/Dirent_Selector.inl7
-rw-r--r--ace/Dump.cpp4
-rw-r--r--ace/Dump.h4
-rw-r--r--ace/Dump_T.cpp11
-rw-r--r--ace/Dump_T.h6
-rw-r--r--ace/Dynamic.cpp7
-rw-r--r--ace/Dynamic.h10
-rw-r--r--ace/Dynamic.inl15
-rw-r--r--ace/Dynamic_Service.cpp13
-rw-r--r--ace/Dynamic_Service.h10
-rw-r--r--ace/Dynamic_Service.inl11
-rw-r--r--ace/Dynamic_Service_Base.cpp5
-rw-r--r--ace/Dynamic_Service_Base.h3
-rw-r--r--ace/Encoding_Converter.cpp12
-rw-r--r--ace/Encoding_Converter.h70
-rw-r--r--ace/Encoding_Converter_Factory.cpp74
-rw-r--r--ace/Encoding_Converter_Factory.h54
-rw-r--r--ace/Env_Value_T.cpp8
-rw-r--r--ace/Env_Value_T.h48
-rw-r--r--ace/Env_Value_T.inl16
-rw-r--r--ace/Event.cpp4
-rw-r--r--ace/Event.h4
-rw-r--r--ace/Event.inl5
-rw-r--r--ace/Event_Handler.cpp44
-rw-r--r--ace/Event_Handler.h22
-rw-r--r--ace/Event_Handler.inl6
-rw-r--r--ace/Event_Handler_T.cpp3
-rw-r--r--ace/Event_Handler_T.h4
-rw-r--r--ace/Event_Handler_T.inl4
-rw-r--r--ace/FIFO.cpp11
-rw-r--r--ace/FIFO.h10
-rw-r--r--ace/FIFO.inl11
-rw-r--r--ace/FIFO_Recv.cpp25
-rw-r--r--ace/FIFO_Recv.h8
-rw-r--r--ace/FIFO_Recv.inl9
-rw-r--r--ace/FIFO_Recv_Msg.cpp29
-rw-r--r--ace/FIFO_Recv_Msg.h10
-rw-r--r--ace/FIFO_Recv_Msg.inl20
-rw-r--r--ace/FIFO_Send.cpp9
-rw-r--r--ace/FIFO_Send.h8
-rw-r--r--ace/FIFO_Send.inl9
-rw-r--r--ace/FIFO_Send_Msg.cpp12
-rw-r--r--ace/FIFO_Send_Msg.h8
-rw-r--r--ace/FIFO_Send_Msg.inl14
-rw-r--r--ace/FILE.cpp4
-rw-r--r--ace/FILE.h4
-rw-r--r--ace/FILE.inl6
-rw-r--r--ace/FILE_Addr.cpp3
-rw-r--r--ace/FILE_Addr.h4
-rw-r--r--ace/FILE_Addr.inl6
-rw-r--r--ace/FILE_Connector.cpp6
-rw-r--r--ace/FILE_Connector.h4
-rw-r--r--ace/FILE_Connector.inl23
-rw-r--r--ace/FILE_IO.cpp14
-rw-r--r--ace/FILE_IO.h4
-rw-r--r--ace/FILE_IO.inl9
-rw-r--r--ace/File_Lock.cpp14
-rw-r--r--ace/File_Lock.h19
-rw-r--r--ace/File_Lock.inl7
-rw-r--r--ace/Filecache.cpp4
-rw-r--r--ace/Filecache.h3
-rw-r--r--ace/FlReactor.cpp52
-rw-r--r--ace/FlReactor.h4
-rw-r--r--ace/Flag_Manip.cpp8
-rw-r--r--ace/Flag_Manip.h3
-rw-r--r--ace/Flag_Manip.inl12
-rw-r--r--ace/Framework_Component.cpp4
-rw-r--r--ace/Framework_Component.h28
-rw-r--r--ace/Framework_Component.inl13
-rw-r--r--ace/Framework_Component_T.cpp8
-rw-r--r--ace/Framework_Component_T.h7
-rw-r--r--ace/Free_List.cpp16
-rw-r--r--ace/Free_List.h12
-rw-r--r--ace/Functor.cpp12
-rw-r--r--ace/Functor.h124
-rw-r--r--ace/Functor.inl75
-rw-r--r--ace/Functor_String.h10
-rw-r--r--ace/Functor_String.inl9
-rw-r--r--ace/Functor_T.cpp10
-rw-r--r--ace/Functor_T.h5
-rw-r--r--ace/Functor_T.inl4
-rw-r--r--ace/Future.cpp5
-rw-r--r--ace/Future.h8
-rw-r--r--ace/Future_Set.cpp11
-rw-r--r--ace/Future_Set.h22
-rw-r--r--ace/Get_Opt.cpp674
-rw-r--r--ace/Get_Opt.h72
-rw-r--r--ace/Get_Opt.inl728
-rw-r--r--ace/Global_Macros.h135
-rw-r--r--ace/Guard_T.cpp13
-rw-r--r--ace/Guard_T.h11
-rw-r--r--ace/Guard_T.inl7
-rw-r--r--ace/Handle_Gobbler.h7
-rw-r--r--ace/Handle_Gobbler.inl6
-rw-r--r--ace/Handle_Ops.cpp5
-rw-r--r--ace/Handle_Ops.h8
-rw-r--r--ace/Handle_Set.cpp8
-rw-r--r--ace/Handle_Set.h9
-rw-r--r--ace/Handle_Set.inl14
-rw-r--r--ace/Hash_Cache_Map_Manager_T.cpp10
-rw-r--r--ace/Hash_Cache_Map_Manager_T.h8
-rw-r--r--ace/Hash_Cache_Map_Manager_T.inl7
-rw-r--r--ace/Hash_Map_Manager.cpp19
-rw-r--r--ace/Hash_Map_Manager.h4
-rw-r--r--ace/Hash_Map_Manager_T.cpp4
-rw-r--r--ace/Hash_Map_Manager_T.h31
-rw-r--r--ace/Hash_Map_Manager_T.inl7
-rw-r--r--ace/Hash_Map_With_Allocator_T.cpp5
-rw-r--r--ace/Hash_Map_With_Allocator_T.h15
-rw-r--r--ace/Hash_Map_With_Allocator_T.inl8
-rw-r--r--ace/Hashable.cpp6
-rw-r--r--ace/Hashable.h4
-rw-r--r--ace/Hashable.inl4
-rw-r--r--ace/High_Res_Timer.cpp27
-rw-r--r--ace/High_Res_Timer.h19
-rw-r--r--ace/High_Res_Timer.inl11
-rw-r--r--ace/ICMP_Socket.cpp9
-rw-r--r--ace/ICMP_Socket.h10
-rw-r--r--ace/ICMP_Socket.inl9
-rw-r--r--ace/INET_Addr.cpp68
-rw-r--r--ace/INET_Addr.h52
-rw-r--r--ace/INET_Addr.inl36
-rw-r--r--ace/IOStream.cpp10
-rw-r--r--ace/IOStream.h20
-rw-r--r--ace/IOStream_T.cpp4
-rw-r--r--ace/IOStream_T.h9
-rw-r--r--ace/IOStream_T.inl8
-rw-r--r--ace/IO_Cntl_Msg.cpp6
-rw-r--r--ace/IO_Cntl_Msg.h4
-rw-r--r--ace/IO_Cntl_Msg.inl4
-rw-r--r--ace/IO_SAP.cpp5
-rw-r--r--ace/IO_SAP.h7
-rw-r--r--ace/IO_SAP.inl9
-rw-r--r--ace/IPC_SAP.cpp8
-rw-r--r--ace/IPC_SAP.h17
-rw-r--r--ace/IPC_SAP.inl9
-rw-r--r--ace/If_Then_Else.h6
-rw-r--r--ace/Init_ACE.cpp4
-rw-r--r--ace/Init_ACE.h12
-rw-r--r--ace/Intrusive_List.cpp10
-rw-r--r--ace/Intrusive_List.h4
-rw-r--r--ace/Intrusive_List.inl6
-rw-r--r--ace/Intrusive_List_Node.cpp10
-rw-r--r--ace/Intrusive_List_Node.h6
-rw-r--r--ace/Intrusive_List_Node.inl6
-rw-r--r--ace/LOCK_SOCK_Acceptor.cpp4
-rw-r--r--ace/LOCK_SOCK_Acceptor.h5
-rw-r--r--ace/LSOCK.cpp5
-rw-r--r--ace/LSOCK.h13
-rw-r--r--ace/LSOCK.inl7
-rw-r--r--ace/LSOCK_Acceptor.cpp70
-rw-r--r--ace/LSOCK_Acceptor.h6
-rw-r--r--ace/LSOCK_CODgram.cpp22
-rw-r--r--ace/LSOCK_CODgram.h8
-rw-r--r--ace/LSOCK_CODgram.inl7
-rw-r--r--ace/LSOCK_Connector.cpp18
-rw-r--r--ace/LSOCK_Connector.h8
-rw-r--r--ace/LSOCK_Connector.inl23
-rw-r--r--ace/LSOCK_Dgram.cpp16
-rw-r--r--ace/LSOCK_Dgram.h9
-rw-r--r--ace/LSOCK_Dgram.inl6
-rw-r--r--ace/LSOCK_Stream.cpp16
-rw-r--r--ace/LSOCK_Stream.h6
-rw-r--r--ace/LSOCK_Stream.inl8
-rw-r--r--ace/Lib_Find.cpp13
-rw-r--r--ace/Lib_Find.h8
-rw-r--r--ace/Local_Memory_Pool.cpp4
-rw-r--r--ace/Local_Memory_Pool.h6
-rw-r--r--ace/Local_Name_Space.cpp24
-rw-r--r--ace/Local_Name_Space.h12
-rw-r--r--ace/Local_Name_Space_T.cpp25
-rw-r--r--ace/Local_Name_Space_T.h12
-rw-r--r--ace/Local_Tokens.cpp4
-rw-r--r--ace/Local_Tokens.h19
-rw-r--r--ace/Local_Tokens.inl7
-rw-r--r--ace/Lock.cpp4
-rw-r--r--ace/Lock.h4
-rw-r--r--ace/Lock.inl6
-rw-r--r--ace/Lock_Adapter_T.cpp3
-rw-r--r--ace/Lock_Adapter_T.h4
-rw-r--r--ace/Lock_Adapter_T.inl4
-rw-r--r--ace/Log_Msg.cpp167
-rw-r--r--ace/Log_Msg.h63
-rw-r--r--ace/Log_Msg_Backend.cpp5
-rw-r--r--ace/Log_Msg_Backend.h4
-rw-r--r--ace/Log_Msg_Callback.cpp4
-rw-r--r--ace/Log_Msg_Callback.h6
-rw-r--r--ace/Log_Msg_IPC.cpp4
-rw-r--r--ace/Log_Msg_IPC.h8
-rw-r--r--ace/Log_Msg_NT_Event_Log.cpp4
-rw-r--r--ace/Log_Msg_NT_Event_Log.h4
-rw-r--r--ace/Log_Msg_UNIX_Syslog.cpp23
-rw-r--r--ace/Log_Msg_UNIX_Syslog.h4
-rw-r--r--ace/Log_Priority.h15
-rw-r--r--ace/Log_Record.cpp107
-rw-r--r--ace/Log_Record.h16
-rw-r--r--ace/Log_Record.inl9
-rw-r--r--ace/Logging_Strategy.cpp17
-rw-r--r--ace/Logging_Strategy.h14
-rw-r--r--ace/MEM_Acceptor.cpp7
-rw-r--r--ace/MEM_Acceptor.h15
-rw-r--r--ace/MEM_Acceptor.inl7
-rw-r--r--ace/MEM_Addr.cpp8
-rw-r--r--ace/MEM_Addr.h15
-rw-r--r--ace/MEM_Addr.inl3
-rw-r--r--ace/MEM_Connector.cpp8
-rw-r--r--ace/MEM_Connector.h15
-rw-r--r--ace/MEM_Connector.inl9
-rw-r--r--ace/MEM_IO.cpp12
-rw-r--r--ace/MEM_IO.h29
-rw-r--r--ace/MEM_IO.inl10
-rw-r--r--ace/MEM_SAP.cpp4
-rw-r--r--ace/MEM_SAP.h25
-rw-r--r--ace/MEM_SAP.inl7
-rw-r--r--ace/MEM_Stream.cpp5
-rw-r--r--ace/MEM_Stream.h14
-rw-r--r--ace/MEM_Stream.inl7
-rw-r--r--ace/MMAP_Memory_Pool.cpp4
-rw-r--r--ace/MMAP_Memory_Pool.h17
-rw-r--r--ace/Makefile.am117
-rw-r--r--ace/Malloc.cpp20
-rw-r--r--ace/Malloc.h19
-rw-r--r--ace/Malloc.inl7
-rw-r--r--ace/Malloc_Allocator.cpp15
-rw-r--r--ace/Malloc_Allocator.h4
-rw-r--r--ace/Malloc_Allocator.inl9
-rw-r--r--ace/Malloc_Base.h6
-rw-r--r--ace/Malloc_Instantiations.cpp9
-rw-r--r--ace/Malloc_T.cpp18
-rw-r--r--ace/Malloc_T.h15
-rw-r--r--ace/Malloc_T.inl7
-rw-r--r--ace/Managed_Object.cpp4
-rw-r--r--ace/Managed_Object.h16
-rw-r--r--ace/Managed_Object.inl7
-rw-r--r--ace/Manual_Event.cpp9
-rw-r--r--ace/Manual_Event.h6
-rw-r--r--ace/Manual_Event.inl7
-rw-r--r--ace/Map.cpp19
-rw-r--r--ace/Map.h2
-rw-r--r--ace/Map_Manager.cpp16
-rw-r--r--ace/Map_Manager.h17
-rw-r--r--ace/Map_Manager.inl5
-rw-r--r--ace/Map_T.cpp4
-rw-r--r--ace/Map_T.h4
-rw-r--r--ace/Map_T.inl7
-rw-r--r--ace/Mem_Map.cpp6
-rw-r--r--ace/Mem_Map.h49
-rw-r--r--ace/Mem_Map.inl8
-rw-r--r--ace/Message_Block.cpp23
-rw-r--r--ace/Message_Block.h40
-rw-r--r--ace/Message_Block.inl7
-rw-r--r--ace/Message_Block_T.cpp12
-rw-r--r--ace/Message_Block_T.h4
-rw-r--r--ace/Message_Block_T.inl8
-rw-r--r--ace/Message_Queue.cpp27
-rw-r--r--ace/Message_Queue.h61
-rw-r--r--ace/Message_Queue.inl7
-rw-r--r--ace/Message_Queue_T.cpp116
-rw-r--r--ace/Message_Queue_T.h361
-rw-r--r--ace/Method_Object.h4
-rw-r--r--ace/Method_Request.cpp4
-rw-r--r--ace/Method_Request.h22
-rw-r--r--ace/Metrics_Cache_T.cpp36
-rw-r--r--ace/Metrics_Cache_T.h12
-rw-r--r--ace/Metrics_Cache_T.inl60
-rw-r--r--ace/Min_Max.h6
-rw-r--r--ace/Module.cpp12
-rw-r--r--ace/Module.h13
-rw-r--r--ace/Module.inl12
-rw-r--r--ace/Msg_WFMO_Reactor.cpp4
-rw-r--r--ace/Msg_WFMO_Reactor.h19
-rw-r--r--ace/Msg_WFMO_Reactor.inl7
-rw-r--r--ace/Multihomed_INET_Addr.cpp14
-rw-r--r--ace/Multihomed_INET_Addr.h15
-rw-r--r--ace/Multihomed_INET_Addr.inl7
-rw-r--r--ace/Multiplexor.h13
-rw-r--r--ace/Multiplexor.inl8
-rw-r--r--ace/Mutex.cpp3
-rw-r--r--ace/Mutex.h9
-rw-r--r--ace/Mutex.inl7
-rw-r--r--ace/NT_Service.cpp4
-rw-r--r--ace/NT_Service.h6
-rw-r--r--ace/NT_Service.inl7
-rw-r--r--ace/Name_Proxy.cpp13
-rw-r--r--ace/Name_Proxy.h6
-rw-r--r--ace/Name_Request_Reply.cpp27
-rw-r--r--ace/Name_Request_Reply.h22
-rw-r--r--ace/Name_Space.cpp8
-rw-r--r--ace/Name_Space.h4
-rw-r--r--ace/Naming_Context.cpp36
-rw-r--r--ace/Naming_Context.h4
-rw-r--r--ace/Node.cpp10
-rw-r--r--ace/Node.h10
-rw-r--r--ace/Notification_Strategy.cpp4
-rw-r--r--ace/Notification_Strategy.h6
-rw-r--r--ace/Notification_Strategy.inl7
-rw-r--r--ace/Null_Barrier.h4
-rw-r--r--ace/Null_Condition.h6
-rw-r--r--ace/Null_Mutex.h17
-rw-r--r--ace/Null_Semaphore.h6
-rw-r--r--ace/OS.h16
-rw-r--r--ace/OS_Errno.cpp4
-rw-r--r--ace/OS_Errno.h4
-rw-r--r--ace/OS_Errno.inl5
-rw-r--r--ace/OS_Log_Msg_Attributes.h11
-rw-r--r--ace/OS_Log_Msg_Attributes.inl7
-rw-r--r--ace/OS_Memory.h13
-rw-r--r--ace/OS_NS_Thread.cpp269
-rw-r--r--ace/OS_NS_Thread.h159
-rw-r--r--ace/OS_NS_Thread.inl351
-rw-r--r--ace/OS_NS_arpa_inet.cpp6
-rw-r--r--ace/OS_NS_arpa_inet.h4
-rw-r--r--ace/OS_NS_arpa_inet.inl4
-rw-r--r--ace/OS_NS_ctype.h57
-rw-r--r--ace/OS_NS_ctype.inl136
-rw-r--r--ace/OS_NS_ctype_T.inl169
-rw-r--r--ace/OS_NS_dirent.cpp41
-rw-r--r--ace/OS_NS_dirent.h28
-rw-r--r--ace/OS_NS_dirent.inl58
-rw-r--r--ace/OS_NS_dlfcn.cpp1
-rw-r--r--ace/OS_NS_dlfcn.h4
-rw-r--r--ace/OS_NS_dlfcn.inl67
-rw-r--r--ace/OS_NS_errno.h4
-rw-r--r--ace/OS_NS_errno.inl5
-rw-r--r--ace/OS_NS_fcntl.cpp11
-rw-r--r--ace/OS_NS_fcntl.h8
-rw-r--r--ace/OS_NS_fcntl.inl5
-rw-r--r--ace/OS_NS_math.cpp1
-rw-r--r--ace/OS_NS_math.h8
-rw-r--r--ace/OS_NS_math.inl21
-rw-r--r--ace/OS_NS_netdb.cpp39
-rw-r--r--ace/OS_NS_netdb.h47
-rw-r--r--ace/OS_NS_netdb.inl41
-rw-r--r--ace/OS_NS_poll.cpp1
-rw-r--r--ace/OS_NS_poll.h7
-rw-r--r--ace/OS_NS_poll.inl5
-rw-r--r--ace/OS_NS_pwd.cpp1
-rw-r--r--ace/OS_NS_pwd.h9
-rw-r--r--ace/OS_NS_pwd.inl5
-rw-r--r--ace/OS_NS_regex.cpp1
-rw-r--r--ace/OS_NS_regex.h7
-rw-r--r--ace/OS_NS_regex.inl4
-rw-r--r--ace/OS_NS_signal.cpp4
-rw-r--r--ace/OS_NS_signal.h25
-rw-r--r--ace/OS_NS_signal.inl19
-rw-r--r--ace/OS_NS_stdio.cpp18
-rw-r--r--ace/OS_NS_stdio.h33
-rw-r--r--ace/OS_NS_stdio.inl142
-rw-r--r--ace/OS_NS_stdlib.cpp14
-rw-r--r--ace/OS_NS_stdlib.h38
-rw-r--r--ace/OS_NS_stdlib.inl128
-rw-r--r--ace/OS_NS_stdlib_base.cpp12
-rw-r--r--ace/OS_NS_stdlib_base.h40
-rw-r--r--ace/OS_NS_stdlib_base.inl90
-rw-r--r--ace/OS_NS_string.cpp70
-rw-r--r--ace/OS_NS_string.h124
-rw-r--r--ace/OS_NS_string.inl178
-rw-r--r--ace/OS_NS_string_base.cpp12
-rw-r--r--ace/OS_NS_string_base.h89
-rw-r--r--ace/OS_NS_string_base.inl97
-rw-r--r--ace/OS_NS_strings.cpp5
-rw-r--r--ace/OS_NS_strings.h13
-rw-r--r--ace/OS_NS_strings.inl10
-rw-r--r--ace/OS_NS_stropts.cpp9
-rw-r--r--ace/OS_NS_stropts.h14
-rw-r--r--ace/OS_NS_stropts.inl7
-rw-r--r--ace/OS_NS_sys_mman.cpp1
-rw-r--r--ace/OS_NS_sys_mman.h7
-rw-r--r--ace/OS_NS_sys_mman.inl10
-rw-r--r--ace/OS_NS_sys_msg.cpp1
-rw-r--r--ace/OS_NS_sys_msg.h4
-rw-r--r--ace/OS_NS_sys_msg.inl5
-rw-r--r--ace/OS_NS_sys_resource.cpp1
-rw-r--r--ace/OS_NS_sys_resource.h7
-rw-r--r--ace/OS_NS_sys_resource.inl14
-rw-r--r--ace/OS_NS_sys_select.cpp1
-rw-r--r--ace/OS_NS_sys_select.h8
-rw-r--r--ace/OS_NS_sys_select.inl6
-rw-r--r--ace/OS_NS_sys_shm.cpp1
-rw-r--r--ace/OS_NS_sys_shm.h11
-rw-r--r--ace/OS_NS_sys_shm.inl22
-rw-r--r--ace/OS_NS_sys_socket.cpp8
-rw-r--r--ace/OS_NS_sys_socket.h19
-rw-r--r--ace/OS_NS_sys_socket.inl33
-rw-r--r--ace/OS_NS_sys_stat.cpp1
-rw-r--r--ace/OS_NS_sys_stat.h18
-rw-r--r--ace/OS_NS_sys_stat.inl51
-rw-r--r--ace/OS_NS_sys_time.cpp1
-rw-r--r--ace/OS_NS_sys_time.h9
-rw-r--r--ace/OS_NS_sys_time.inl7
-rw-r--r--ace/OS_NS_sys_uio.cpp5
-rw-r--r--ace/OS_NS_sys_uio.h7
-rw-r--r--ace/OS_NS_sys_uio.inl10
-rw-r--r--ace/OS_NS_sys_utsname.cpp54
-rw-r--r--ace/OS_NS_sys_utsname.h18
-rw-r--r--ace/OS_NS_sys_utsname.inl33
-rw-r--r--ace/OS_NS_sys_wait.cpp1
-rw-r--r--ace/OS_NS_sys_wait.h29
-rw-r--r--ace/OS_NS_sys_wait.inl5
-rw-r--r--ace/OS_NS_time.cpp61
-rw-r--r--ace/OS_NS_time.h32
-rw-r--r--ace/OS_NS_time.inl49
-rw-r--r--ace/OS_NS_unistd.cpp189
-rw-r--r--ace/OS_NS_unistd.h51
-rw-r--r--ace/OS_NS_unistd.inl273
-rw-r--r--ace/OS_NS_unistd_T.inl140
-rw-r--r--ace/OS_NS_wchar.cpp106
-rw-r--r--ace/OS_NS_wchar.h112
-rw-r--r--ace/OS_NS_wchar.inl28
-rw-r--r--ace/OS_QoS.cpp4
-rw-r--r--ace/OS_QoS.h7
-rw-r--r--ace/OS_TLI.h25
-rw-r--r--ace/OS_TLI.inl9
-rw-r--r--ace/OS_Thread_Adapter.cpp4
-rw-r--r--ace/OS_Thread_Adapter.h16
-rw-r--r--ace/OS_main.cpp21
-rw-r--r--ace/OS_main.h23
-rw-r--r--ace/Obchunk.cpp4
-rw-r--r--ace/Obchunk.h7
-rw-r--r--ace/Obchunk.inl7
-rw-r--r--ace/Object_Manager.cpp13
-rw-r--r--ace/Object_Manager.h25
-rw-r--r--ace/Object_Manager.inl9
-rw-r--r--ace/Object_Manager_Base.cpp7
-rw-r--r--ace/Object_Manager_Base.h6
-rw-r--r--ace/Obstack.cpp4
-rw-r--r--ace/Obstack.h4
-rw-r--r--ace/Obstack_T.cpp4
-rw-r--r--ace/Obstack_T.h8
-rw-r--r--ace/Obstack_T.inl6
-rw-r--r--ace/PI_Malloc.cpp4
-rw-r--r--ace/PI_Malloc.h38
-rw-r--r--ace/PI_Malloc.inl8
-rw-r--r--ace/POSIX_Asynch_IO.cpp107
-rw-r--r--ace/POSIX_Asynch_IO.h6
-rw-r--r--ace/POSIX_CB_Proactor.cpp5
-rw-r--r--ace/POSIX_CB_Proactor.h8
-rw-r--r--ace/POSIX_Proactor.cpp20
-rw-r--r--ace/POSIX_Proactor.h10
-rw-r--r--ace/POSIX_Proactor.inl6
-rw-r--r--ace/Pagefile_Memory_Pool.cpp13
-rw-r--r--ace/Pagefile_Memory_Pool.h20
-rw-r--r--ace/Pagefile_Memory_Pool.inl8
-rw-r--r--ace/Pair.cpp19
-rw-r--r--ace/Pair.h2
-rw-r--r--ace/Pair_T.cpp8
-rw-r--r--ace/Pair_T.h4
-rw-r--r--ace/Pair_T.inl4
-rw-r--r--ace/Parse_Node.cpp68
-rw-r--r--ace/Parse_Node.h25
-rw-r--r--ace/Ping_Socket.cpp8
-rw-r--r--ace/Ping_Socket.h4
-rw-r--r--ace/Ping_Socket.inl4
-rw-r--r--ace/Pipe.cpp11
-rw-r--r--ace/Pipe.h6
-rw-r--r--ace/Pipe.inl29
-rw-r--r--ace/Priority_Reactor.cpp4
-rw-r--r--ace/Priority_Reactor.h15
-rw-r--r--ace/Proactor.cpp16
-rw-r--r--ace/Proactor.h15
-rw-r--r--ace/Proactor.inl21
-rw-r--r--ace/Proactor_Impl.cpp10
-rw-r--r--ace/Proactor_Impl.h14
-rw-r--r--ace/Process.cpp22
-rw-r--r--ace/Process.h48
-rw-r--r--ace/Process.inl33
-rw-r--r--ace/Process_Manager.cpp31
-rw-r--r--ace/Process_Manager.h62
-rw-r--r--ace/Process_Manager.inl7
-rw-r--r--ace/Process_Mutex.cpp17
-rw-r--r--ace/Process_Mutex.h8
-rw-r--r--ace/Process_Mutex.inl7
-rw-r--r--ace/Process_Semaphore.cpp13
-rw-r--r--ace/Process_Semaphore.h19
-rw-r--r--ace/Process_Semaphore.inl7
-rw-r--r--ace/Profile_Timer.cpp31
-rw-r--r--ace/Profile_Timer.h4
-rw-r--r--ace/Profile_Timer.inl22
-rw-r--r--ace/QoS/QoS_Decorator.cpp6
-rw-r--r--ace/QoS/QoS_Decorator.h6
-rw-r--r--ace/QoS/QoS_Manager.cpp6
-rw-r--r--ace/QoS/QoS_Manager.h7
-rw-r--r--ace/QoS/QoS_Session.h4
-rw-r--r--ace/QoS/QoS_Session_Factory.cpp4
-rw-r--r--ace/QoS/QoS_Session_Factory.h6
-rw-r--r--ace/QoS/QoS_Session_Impl.cpp42
-rw-r--r--ace/QoS/QoS_Session_Impl.h10
-rw-r--r--ace/QoS/QoS_Session_Impl.i7
-rw-r--r--ace/QoS/SOCK_Dgram_Mcast_QoS.cpp6
-rw-r--r--ace/QoS/SOCK_Dgram_Mcast_QoS.h6
-rw-r--r--ace/QoS/SOCK_Dgram_Mcast_QoS.i7
-rw-r--r--ace/QtReactor.cpp17
-rw-r--r--ace/QtReactor.h16
-rw-r--r--ace/RB_Tree.cpp30
-rw-r--r--ace/RB_Tree.h46
-rw-r--r--ace/RB_Tree.inl6
-rw-r--r--ace/README65
-rw-r--r--ace/RW_Mutex.cpp5
-rw-r--r--ace/RW_Mutex.h4
-rw-r--r--ace/RW_Mutex.inl7
-rw-r--r--ace/RW_Process_Mutex.cpp6
-rw-r--r--ace/RW_Process_Mutex.h19
-rw-r--r--ace/RW_Process_Mutex.inl7
-rw-r--r--ace/RW_Thread_Mutex.cpp5
-rw-r--r--ace/RW_Thread_Mutex.h4
-rw-r--r--ace/RW_Thread_Mutex.inl7
-rw-r--r--ace/Reactor.cpp7
-rw-r--r--ace/Reactor.h83
-rw-r--r--ace/Reactor.inl6
-rw-r--r--ace/Reactor_Impl.cpp10
-rw-r--r--ace/Reactor_Impl.h14
-rw-r--r--ace/Reactor_Notification_Strategy.cpp11
-rw-r--r--ace/Reactor_Notification_Strategy.h10
-rw-r--r--ace/Reactor_Notification_Strategy.inl7
-rw-r--r--ace/Reactor_Timer_Interface.cpp5
-rw-r--r--ace/Reactor_Timer_Interface.h6
-rw-r--r--ace/Reactor_Token_T.cpp6
-rw-r--r--ace/Reactor_Token_T.h17
-rw-r--r--ace/Read_Buffer.cpp5
-rw-r--r--ace/Read_Buffer.h15
-rw-r--r--ace/Read_Buffer.inl6
-rw-r--r--ace/Recursive_Thread_Mutex.cpp12
-rw-r--r--ace/Recursive_Thread_Mutex.h6
-rw-r--r--ace/Recursive_Thread_Mutex.inl8
-rw-r--r--ace/Recyclable.cpp3
-rw-r--r--ace/Recyclable.h7
-rw-r--r--ace/Recyclable.inl13
-rw-r--r--ace/Refcountable.cpp3
-rw-r--r--ace/Refcountable.h4
-rw-r--r--ace/Refcountable.inl8
-rw-r--r--ace/Refcounted_Auto_Ptr.cpp4
-rw-r--r--ace/Refcounted_Auto_Ptr.h6
-rw-r--r--ace/Refcounted_Auto_Ptr.inl4
-rw-r--r--ace/Registry.cpp14
-rw-r--r--ace/Registry.h10
-rw-r--r--ace/Registry_Name_Space.cpp5
-rw-r--r--ace/Registry_Name_Space.h8
-rw-r--r--ace/Remote_Name_Space.cpp74
-rw-r--r--ace/Remote_Name_Space.h3
-rw-r--r--ace/Remote_Tokens.cpp155
-rw-r--r--ace/Remote_Tokens.h8
-rw-r--r--ace/Remote_Tokens.inl16
-rw-r--r--ace/Reverse_Lock_T.cpp3
-rw-r--r--ace/Reverse_Lock_T.h23
-rw-r--r--ace/Reverse_Lock_T.inl4
-rw-r--r--ace/SOCK.cpp5
-rw-r--r--ace/SOCK.h15
-rw-r--r--ace/SOCK.inl25
-rw-r--r--ace/SOCK_Acceptor.cpp7
-rw-r--r--ace/SOCK_Acceptor.h4
-rw-r--r--ace/SOCK_Acceptor.inl7
-rw-r--r--ace/SOCK_CODgram.cpp79
-rw-r--r--ace/SOCK_CODgram.h16
-rw-r--r--ace/SOCK_CODgram.inl7
-rw-r--r--ace/SOCK_Connector.cpp5
-rw-r--r--ace/SOCK_Connector.h6
-rw-r--r--ace/SOCK_Connector.inl7
-rw-r--r--ace/SOCK_Dgram.cpp22
-rw-r--r--ace/SOCK_Dgram.h6
-rw-r--r--ace/SOCK_Dgram.inl45
-rw-r--r--ace/SOCK_Dgram_Bcast.cpp20
-rw-r--r--ace/SOCK_Dgram_Bcast.h15
-rw-r--r--ace/SOCK_Dgram_Bcast.inl15
-rw-r--r--ace/SOCK_Dgram_Mcast.cpp29
-rw-r--r--ace/SOCK_Dgram_Mcast.h15
-rw-r--r--ace/SOCK_Dgram_Mcast.inl7
-rw-r--r--ace/SOCK_IO.cpp28
-rw-r--r--ace/SOCK_IO.h16
-rw-r--r--ace/SOCK_IO.inl16
-rw-r--r--ace/SOCK_SEQPACK_Acceptor.cpp3
-rw-r--r--ace/SOCK_SEQPACK_Acceptor.h18
-rw-r--r--ace/SOCK_SEQPACK_Acceptor.inl7
-rw-r--r--ace/SOCK_SEQPACK_Association.cpp4
-rw-r--r--ace/SOCK_SEQPACK_Association.h18
-rw-r--r--ace/SOCK_SEQPACK_Association.inl7
-rw-r--r--ace/SOCK_SEQPACK_Connector.cpp12
-rw-r--r--ace/SOCK_SEQPACK_Connector.h15
-rw-r--r--ace/SOCK_SEQPACK_Connector.inl7
-rw-r--r--ace/SOCK_Stream.cpp4
-rw-r--r--ace/SOCK_Stream.h26
-rw-r--r--ace/SOCK_Stream.inl7
-rw-r--r--ace/SPIPE.cpp4
-rw-r--r--ace/SPIPE.h4
-rw-r--r--ace/SPIPE.inl6
-rw-r--r--ace/SPIPE_Acceptor.cpp38
-rw-r--r--ace/SPIPE_Acceptor.h8
-rw-r--r--ace/SPIPE_Addr.cpp19
-rw-r--r--ace/SPIPE_Addr.h5
-rw-r--r--ace/SPIPE_Addr.inl5
-rw-r--r--ace/SPIPE_Connector.cpp4
-rw-r--r--ace/SPIPE_Connector.h6
-rw-r--r--ace/SPIPE_Connector.inl6
-rw-r--r--ace/SPIPE_Stream.cpp5
-rw-r--r--ace/SPIPE_Stream.h4
-rw-r--r--ace/SPIPE_Stream.inl9
-rw-r--r--ace/SSL/ACE_SSL.pc.in4
-rw-r--r--ace/SSL/SSL_Asynch_BIO.cpp162
-rw-r--r--ace/SSL/SSL_Asynch_BIO.h21
-rw-r--r--ace/SSL/SSL_Asynch_Stream.cpp171
-rw-r--r--ace/SSL/SSL_Asynch_Stream.h244
-rw-r--r--ace/SSL/SSL_Context.cpp221
-rw-r--r--ace/SSL/SSL_Context.h58
-rw-r--r--ace/SSL/SSL_Context.inl3
-rw-r--r--ace/SSL/SSL_SOCK.cpp7
-rw-r--r--ace/SSL/SSL_SOCK.h15
-rw-r--r--ace/SSL/SSL_SOCK.i29
-rw-r--r--ace/SSL/SSL_SOCK_Acceptor.cpp9
-rw-r--r--ace/SSL/SSL_SOCK_Acceptor.h28
-rw-r--r--ace/SSL/SSL_SOCK_Acceptor.i3
-rw-r--r--ace/SSL/SSL_SOCK_Connector.cpp5
-rw-r--r--ace/SSL/SSL_SOCK_Connector.h12
-rw-r--r--ace/SSL/SSL_SOCK_Connector.i7
-rw-r--r--ace/SSL/SSL_SOCK_Stream.cpp12
-rw-r--r--ace/SSL/SSL_SOCK_Stream.h3
-rw-r--r--ace/SSL/SSL_SOCK_Stream.i4
-rw-r--r--ace/SString.cpp14
-rw-r--r--ace/SString.h10
-rw-r--r--ace/SString.inl6
-rw-r--r--ace/SStringfwd.h7
-rw-r--r--ace/SUN_Proactor.cpp6
-rw-r--r--ace/SUN_Proactor.h20
-rw-r--r--ace/SV_Message.cpp3
-rw-r--r--ace/SV_Message.h5
-rw-r--r--ace/SV_Message.inl9
-rw-r--r--ace/SV_Message_Queue.cpp10
-rw-r--r--ace/SV_Message_Queue.h4
-rw-r--r--ace/SV_Message_Queue.inl22
-rw-r--r--ace/SV_Semaphore_Complex.cpp152
-rw-r--r--ace/SV_Semaphore_Complex.h42
-rw-r--r--ace/SV_Semaphore_Complex.inl23
-rw-r--r--ace/SV_Semaphore_Simple.cpp31
-rw-r--r--ace/SV_Semaphore_Simple.h49
-rw-r--r--ace/SV_Semaphore_Simple.inl34
-rw-r--r--ace/SV_Shared_Memory.cpp33
-rw-r--r--ace/SV_Shared_Memory.h13
-rw-r--r--ace/SV_Shared_Memory.inl39
-rw-r--r--ace/Sample_History.cpp5
-rw-r--r--ace/Sample_History.h5
-rw-r--r--ace/Sample_History.inl6
-rw-r--r--ace/Sbrk_Memory_Pool.cpp7
-rw-r--r--ace/Sbrk_Memory_Pool.h17
-rw-r--r--ace/Sched_Params.cpp6
-rw-r--r--ace/Sched_Params.h8
-rw-r--r--ace/Sched_Params.inl7
-rw-r--r--ace/Select_Reactor.cpp3
-rw-r--r--ace/Select_Reactor.h17
-rw-r--r--ace/Select_Reactor_Base.cpp25
-rw-r--r--ace/Select_Reactor_Base.h93
-rw-r--r--ace/Select_Reactor_Base.inl18
-rw-r--r--ace/Select_Reactor_T.cpp52
-rw-r--r--ace/Select_Reactor_T.h54
-rw-r--r--ace/Select_Reactor_T.inl82
-rw-r--r--ace/Semaphore.cpp4
-rw-r--r--ace/Semaphore.h8
-rw-r--r--ace/Semaphore.inl7
-rw-r--r--ace/Service_Config.cpp43
-rw-r--r--ace/Service_Config.h34
-rw-r--r--ace/Service_Config.inl16
-rw-r--r--ace/Service_Manager.cpp22
-rw-r--r--ace/Service_Manager.h10
-rw-r--r--ace/Service_Manager.inl8
-rw-r--r--ace/Service_Object.cpp8
-rw-r--r--ace/Service_Object.h12
-rw-r--r--ace/Service_Object.inl7
-rw-r--r--ace/Service_Repository.cpp4
-rw-r--r--ace/Service_Repository.h11
-rw-r--r--ace/Service_Repository.inl9
-rw-r--r--ace/Service_Templates.cpp24
-rw-r--r--ace/Service_Types.cpp3
-rw-r--r--ace/Service_Types.h4
-rw-r--r--ace/Service_Types.inl7
-rw-r--r--ace/Shared_Memory.cpp4
-rw-r--r--ace/Shared_Memory.h13
-rw-r--r--ace/Shared_Memory_MM.cpp5
-rw-r--r--ace/Shared_Memory_MM.h14
-rw-r--r--ace/Shared_Memory_MM.inl7
-rw-r--r--ace/Shared_Memory_Pool.cpp12
-rw-r--r--ace/Shared_Memory_Pool.h21
-rw-r--r--ace/Shared_Memory_SV.cpp14
-rw-r--r--ace/Shared_Memory_SV.h14
-rw-r--r--ace/Shared_Memory_SV.inl21
-rw-r--r--ace/Shared_Object.cpp4
-rw-r--r--ace/Shared_Object.h4
-rw-r--r--ace/Shared_Object.inl7
-rw-r--r--ace/Signal.cpp4
-rw-r--r--ace/Signal.h47
-rw-r--r--ace/Signal.inl7
-rw-r--r--ace/Singleton.cpp13
-rw-r--r--ace/Singleton.h8
-rw-r--r--ace/Singleton.inl7
-rw-r--r--ace/Sock_Connect.cpp59
-rw-r--r--ace/Sock_Connect.h4
-rw-r--r--ace/Static_Object_Lock.h10
-rw-r--r--ace/Stats.cpp63
-rw-r--r--ace/Stats.h23
-rw-r--r--ace/Stats.inl7
-rw-r--r--ace/Strategies_T.cpp10
-rw-r--r--ace/Strategies_T.h4
-rw-r--r--ace/Strategies_T.inl4
-rw-r--r--ace/Stream.cpp10
-rw-r--r--ace/Stream.h4
-rw-r--r--ace/Stream.inl6
-rw-r--r--ace/Stream_Modules.cpp12
-rw-r--r--ace/Stream_Modules.h6
-rw-r--r--ace/String_Base.cpp25
-rw-r--r--ace/String_Base.h17
-rw-r--r--ace/String_Base.inl8
-rw-r--r--ace/String_Base_Const.cpp6
-rw-r--r--ace/String_Base_Const.h8
-rw-r--r--ace/String_Conversion_T.cpp17
-rw-r--r--ace/String_Conversion_T.h343
-rw-r--r--ace/String_Conversion_T.inl160
-rw-r--r--ace/Svc_Conf.h20
-rw-r--r--ace/Svc_Conf.l134
-rw-r--r--ace/Svc_Conf.y4
-rw-r--r--ace/Svc_Conf_Lexer.cpp656
-rw-r--r--ace/Svc_Conf_Lexer.h70
-rw-r--r--ace/Svc_Conf_Lexer_Guard.cpp39
-rw-r--r--ace/Svc_Conf_Lexer_Guard.h79
-rw-r--r--ace/Svc_Conf_l.cpp1850
-rw-r--r--ace/Svc_Conf_y.cpp13
-rw-r--r--ace/Svc_Handler.cpp27
-rw-r--r--ace/Svc_Handler.h31
-rw-r--r--ace/Swap.cpp9
-rw-r--r--ace/Swap.h10
-rw-r--r--ace/Swap.inl6
-rw-r--r--ace/Synch.cpp10
-rw-r--r--ace/Synch_Options.cpp7
-rw-r--r--ace/Synch_Options.h8
-rw-r--r--ace/Synch_Options.inl7
-rw-r--r--ace/Synch_T.cpp8
-rw-r--r--ace/Synch_T.h2
-rw-r--r--ace/Synch_Traits.h4
-rw-r--r--ace/System_Time.cpp7
-rw-r--r--ace/System_Time.h11
-rw-r--r--ace/TLI.cpp4
-rw-r--r--ace/TLI.h6
-rw-r--r--ace/TLI.inl20
-rw-r--r--ace/TLI_Acceptor.cpp4
-rw-r--r--ace/TLI_Acceptor.h6
-rw-r--r--ace/TLI_Connector.cpp5
-rw-r--r--ace/TLI_Connector.h6
-rw-r--r--ace/TLI_Connector.inl6
-rw-r--r--ace/TLI_Stream.cpp4
-rw-r--r--ace/TLI_Stream.h6
-rw-r--r--ace/TLI_Stream.inl9
-rw-r--r--ace/TP_Reactor.cpp134
-rw-r--r--ace/TP_Reactor.h81
-rw-r--r--ace/TP_Reactor.inl37
-rw-r--r--ace/TSS_Adapter.cpp12
-rw-r--r--ace/TSS_Adapter.h11
-rw-r--r--ace/TSS_Adapter.inl7
-rw-r--r--ace/TSS_T.cpp172
-rw-r--r--ace/TSS_T.h6
-rw-r--r--ace/TSS_T.inl7
-rw-r--r--ace/TTY_IO.cpp40
-rw-r--r--ace/TTY_IO.h8
-rw-r--r--ace/Task.cpp4
-rw-r--r--ace/Task.h11
-rw-r--r--ace/Task.inl6
-rw-r--r--ace/Task_Ex_T.cpp12
-rw-r--r--ace/Task_Ex_T.h12
-rw-r--r--ace/Task_Ex_T.inl23
-rw-r--r--ace/Task_T.cpp11
-rw-r--r--ace/Task_T.h16
-rw-r--r--ace/Task_T.inl17
-rw-r--r--ace/Template_Instantiations.cpp4
-rw-r--r--ace/Test_and_Set.cpp10
-rw-r--r--ace/Test_and_Set.h9
-rw-r--r--ace/Thread.cpp13
-rw-r--r--ace/Thread.h4
-rw-r--r--ace/Thread.inl9
-rw-r--r--ace/Thread_Adapter.cpp4
-rw-r--r--ace/Thread_Adapter.h16
-rw-r--r--ace/Thread_Adapter.inl7
-rw-r--r--ace/Thread_Control.cpp4
-rw-r--r--ace/Thread_Control.h5
-rw-r--r--ace/Thread_Control.inl4
-rw-r--r--ace/Thread_Exit.cpp4
-rw-r--r--ace/Thread_Exit.h5
-rw-r--r--ace/Thread_Hook.cpp4
-rw-r--r--ace/Thread_Hook.h4
-rw-r--r--ace/Thread_Manager.cpp8
-rw-r--r--ace/Thread_Manager.h6
-rw-r--r--ace/Thread_Manager.inl3
-rw-r--r--ace/Thread_Mutex.cpp5
-rw-r--r--ace/Thread_Mutex.h40
-rw-r--r--ace/Thread_Mutex.inl7
-rw-r--r--ace/Thread_Semaphore.cpp5
-rw-r--r--ace/Thread_Semaphore.h15
-rw-r--r--ace/Thread_Semaphore.inl7
-rw-r--r--ace/Time_Request_Reply.cpp4
-rw-r--r--ace/Time_Request_Reply.h6
-rw-r--r--ace/Time_Value.cpp42
-rw-r--r--ace/Time_Value.h76
-rw-r--r--ace/Time_Value.inl92
-rw-r--r--ace/Timeprobe.cpp4
-rw-r--r--ace/Timeprobe.h12
-rw-r--r--ace/Timeprobe.inl5
-rw-r--r--ace/Timeprobe_T.cpp12
-rw-r--r--ace/Timeprobe_T.h6
-rw-r--r--ace/Timer_Hash.cpp10
-rw-r--r--ace/Timer_Hash.h4
-rw-r--r--ace/Timer_Hash_T.cpp2
-rw-r--r--ace/Timer_Hash_T.h6
-rw-r--r--ace/Timer_Heap.cpp20
-rw-r--r--ace/Timer_Heap.h6
-rw-r--r--ace/Timer_Heap_T.cpp83
-rw-r--r--ace/Timer_Heap_T.h8
-rw-r--r--ace/Timer_List.cpp14
-rw-r--r--ace/Timer_List.h8
-rw-r--r--ace/Timer_List_T.cpp2
-rw-r--r--ace/Timer_Queue.cpp13
-rw-r--r--ace/Timer_Queue.h4
-rw-r--r--ace/Timer_Queue_Adapters.cpp31
-rw-r--r--ace/Timer_Queue_Adapters.h10
-rw-r--r--ace/Timer_Queue_Adapters.inl7
-rw-r--r--ace/Timer_Queue_T.cpp15
-rw-r--r--ace/Timer_Queue_T.h14
-rw-r--r--ace/Timer_Queue_T.inl3
-rw-r--r--ace/Timer_Queuefwd.h4
-rw-r--r--ace/Timer_Wheel.cpp8
-rw-r--r--ace/Timer_Wheel.h9
-rw-r--r--ace/Timer_Wheel_T.cpp12
-rw-r--r--ace/Timer_Wheel_T.h15
-rw-r--r--ace/TkReactor.cpp77
-rw-r--r--ace/TkReactor.h7
-rw-r--r--ace/Token.cpp38
-rw-r--r--ace/Token.h19
-rw-r--r--ace/Token.inl38
-rw-r--r--ace/Token_Collection.cpp61
-rw-r--r--ace/Token_Collection.h8
-rw-r--r--ace/Token_Collection.inl7
-rw-r--r--ace/Token_Invariants.cpp5
-rw-r--r--ace/Token_Invariants.h3
-rw-r--r--ace/Token_Manager.cpp9
-rw-r--r--ace/Token_Manager.h8
-rw-r--r--ace/Token_Manager.inl7
-rw-r--r--ace/Token_Request_Reply.cpp38
-rw-r--r--ace/Token_Request_Reply.h20
-rw-r--r--ace/Token_Request_Reply.inl58
-rw-r--r--ace/Trace.cpp4
-rw-r--r--ace/Trace.h4
-rw-r--r--ace/Truncate.h84
-rw-r--r--ace/Typed_SV_Message.cpp12
-rw-r--r--ace/Typed_SV_Message.h4
-rw-r--r--ace/Typed_SV_Message.inl20
-rw-r--r--ace/Typed_SV_Message_Queue.cpp11
-rw-r--r--ace/Typed_SV_Message_Queue.h6
-rw-r--r--ace/Typed_SV_Message_Queue.inl19
-rw-r--r--ace/UNIX_Addr.cpp24
-rw-r--r--ace/UNIX_Addr.h17
-rw-r--r--ace/UNIX_Addr.inl16
-rw-r--r--ace/UPIPE_Acceptor.cpp39
-rw-r--r--ace/UPIPE_Acceptor.h10
-rw-r--r--ace/UPIPE_Acceptor.inl7
-rw-r--r--ace/UPIPE_Addr.h9
-rw-r--r--ace/UPIPE_Connector.cpp10
-rw-r--r--ace/UPIPE_Connector.h10
-rw-r--r--ace/UPIPE_Connector.inl12
-rw-r--r--ace/UPIPE_Stream.cpp6
-rw-r--r--ace/UPIPE_Stream.h13
-rw-r--r--ace/UPIPE_Stream.inl6
-rw-r--r--ace/UTF16_Encoding_Converter.cpp364
-rw-r--r--ace/UTF16_Encoding_Converter.h86
-rw-r--r--ace/UTF16_Encoding_Converter.inl76
-rw-r--r--ace/UTF32_Encoding_Converter.cpp254
-rw-r--r--ace/UTF32_Encoding_Converter.h67
-rw-r--r--ace/UTF8_Encoding_Converter.cpp92
-rw-r--r--ace/UTF8_Encoding_Converter.h72
-rw-r--r--ace/UUID.cpp32
-rw-r--r--ace/UUID.h9
-rw-r--r--ace/UUID.inl7
-rw-r--r--ace/Unbounded_Queue.cpp16
-rw-r--r--ace/Unbounded_Queue.h6
-rw-r--r--ace/Unbounded_Queue.inl6
-rw-r--r--ace/Unbounded_Set.cpp18
-rw-r--r--ace/Unbounded_Set.h10
-rw-r--r--ace/Unbounded_Set.inl7
-rw-r--r--ace/Value_Ptr.h6
-rw-r--r--ace/Vector_T.cpp30
-rw-r--r--ace/Vector_T.h22
-rw-r--r--ace/Vector_T.inl9
-rw-r--r--ace/Version.h11
-rw-r--r--ace/Versioned_Namespace.h53
-rw-r--r--ace/WFMO_Reactor.cpp30
-rw-r--r--ace/WFMO_Reactor.h42
-rw-r--r--ace/WFMO_Reactor.inl14
-rw-r--r--ace/WIN32_Asynch_IO.cpp50
-rw-r--r--ace/WIN32_Asynch_IO.h10
-rw-r--r--ace/WIN32_Proactor.cpp41
-rw-r--r--ace/WIN32_Proactor.h18
-rw-r--r--ace/XML_Svc_Conf.cpp6
-rw-r--r--ace/XML_Svc_Conf.h8
-rw-r--r--ace/XTI_ATM_Mcast.cpp9
-rw-r--r--ace/XTI_ATM_Mcast.h8
-rw-r--r--ace/XTI_ATM_Mcast.inl7
-rw-r--r--ace/XtReactor.cpp87
-rw-r--r--ace/XtReactor.h9
-rw-r--r--ace/ace.mpc11
-rw-r--r--ace/ace.mwc5
-rw-r--r--ace/ace_for_tao.mpc25
-rw-r--r--ace/ace_memory_for_tao.mpc75
-rw-r--r--ace/ace_reactor_for_tao.mpc30
-rw-r--r--ace/ace_sockets_for_tao.mpc63
-rw-r--r--ace/ace_threads_for_tao.mpc69
-rw-r--r--ace/ace_wchar.h306
-rw-r--r--ace/ace_wchar.inl127
-rw-r--r--ace/ace_wchar_win32_defs.h100
-rw-r--r--ace/config-WinCE.h42
-rw-r--r--ace/config-aix-4.x.h25
-rw-r--r--ace/config-all.h20
-rw-r--r--ace/config-borland-common.h9
-rw-r--r--ace/config-chorus.h19
-rw-r--r--ace/config-cray.h6
-rw-r--r--ace/config-cxx-common.h1
-rw-r--r--ace/config-cygwin32.h14
-rw-r--r--ace/config-dgux-4.11-epc.h3
-rw-r--r--ace/config-dgux-4.x-ghs.h3
-rw-r--r--ace/config-doxygen.h8
-rw-r--r--ace/config-freebsd.h7
-rw-r--r--ace/config-g++-common.h1
-rw-r--r--ace/config-hpux-10.x-hpc++.h4
-rw-r--r--ace/config-hpux-10.x.h4
-rw-r--r--ace/config-hpux-11.00.h25
-rw-r--r--ace/config-icc-common.h19
-rw-r--r--ace/config-integritySCA.h14
-rw-r--r--ace/config-irix5.3-g++.h1
-rw-r--r--ace/config-irix5.3-sgic++.h2
-rw-r--r--ace/config-irix6.x-common.h3
-rw-r--r--ace/config-irix6.x-sgic++.h1
-rw-r--r--ace/config-kcc-common.h2
-rw-r--r--ace/config-linux-common.h45
-rw-r--r--ace/config-lite.h607
-rw-r--r--ace/config-lynxos.h94
-rw-r--r--ace/config-macosx-panther.h11
-rw-r--r--ace/config-macosx-tiger.h37
-rw-r--r--ace/config-macosx.h11
-rw-r--r--ace/config-macros.h648
-rw-r--r--ace/config-mit-pthread.h1
-rw-r--r--ace/config-mvs.h3
-rw-r--r--ace/config-netbsd.h12
-rw-r--r--ace/config-openbsd.h9
-rw-r--r--ace/config-openvms.h4
-rw-r--r--ace/config-osf1-4.0.h8
-rw-r--r--ace/config-pharlap.h1
-rw-r--r--ace/config-psos-diab-mips.h25
-rw-r--r--ace/config-psos-diab-ppc.h26
-rw-r--r--ace/config-psos-diab.h28
-rw-r--r--ace/config-psos-tm.h29
-rw-r--r--ace/config-psosim-g++.h29
-rw-r--r--ace/config-qnx-neutrino.h4
-rw-r--r--ace/config-qnx-rtp-62x.h5
-rw-r--r--ace/config-qnx-rtp-pre62x.h4
-rw-r--r--ace/config-rtems.h6
-rw-r--r--ace/config-sco-5.0.0-mit-pthread.h3
-rw-r--r--ace/config-sco-5.0.0.h3
-rw-r--r--ace/config-sunos4-g++.h1
-rw-r--r--ace/config-sunos4-sun4.1.4.h1
-rw-r--r--ace/config-sunos4-sun4.x.h2
-rw-r--r--ace/config-sunos5.5.h39
-rw-r--r--ace/config-sunos5.6.h3
-rw-r--r--ace/config-tandem-nsk-mips-v2.h11
-rw-r--r--ace/config-tandem-nsk-mips-v3.h6
-rw-r--r--ace/config-tandem.h2
-rw-r--r--ace/config-tru64.h3
-rw-r--r--ace/config-unixware-2.1.2-g++.h1
-rw-r--r--ace/config-unixware-7.1.0.h8
-rw-r--r--ace/config-unixware-7.1.0.udk.h11
-rw-r--r--ace/config-vxworks5.x.h50
-rw-r--r--ace/config-vxworks6.2.h307
-rw-r--r--ace/config-win32-borland.h27
-rw-r--r--ace/config-win32-common.h30
-rw-r--r--ace/config-win32-dmc.h5
-rw-r--r--ace/config-win32-ghs.h8
-rw-r--r--ace/config-win32-interix.h3
-rw-r--r--ace/config-win32-mingw.h4
-rw-r--r--ace/config-win32-msvc-6.h4
-rw-r--r--ace/config-win32-msvc-7.h4
-rw-r--r--ace/config-win32-msvc-8.h17
-rw-r--r--ace/config-win32-msvc.h2
-rw-r--r--ace/config-win32-visualage.h4
-rw-r--r--ace/gethrtime.cpp7
-rw-r--r--ace/iosfwd.h4
-rw-r--r--ace/os_include/os_dirent.h17
-rw-r--r--ace/os_include/os_dlfcn.h2
-rw-r--r--ace/os_include/os_errno.h4
-rw-r--r--ace/os_include/os_fcntl.h4
-rw-r--r--ace/os_include/os_limits.h13
-rw-r--r--ace/os_include/os_netdb.h8
-rw-r--r--ace/os_include/os_sched.h8
-rw-r--r--ace/os_include/os_semaphore.h8
-rw-r--r--ace/os_include/os_signal.h4
-rw-r--r--ace/os_include/os_stddef.h6
-rw-r--r--ace/os_include/os_stdio.h7
-rw-r--r--ace/os_include/os_stdlib.h2
-rw-r--r--ace/os_include/os_string.h2
-rw-r--r--ace/os_include/os_stropts.h4
-rw-r--r--ace/os_include/os_time.h18
-rw-r--r--ace/os_include/os_unistd.h22
-rw-r--r--ace/os_include/sys/os_mman.h4
-rw-r--r--ace/os_include/sys/os_select.h2
-rw-r--r--ace/os_include/sys/os_socket.h2
-rw-r--r--ace/os_include/sys/os_stat.h6
-rw-r--r--ace/os_include/sys/os_sysctl.h41
-rw-r--r--ace/os_include/sys/os_time.h6
-rw-r--r--ace/os_include/sys/os_timeb.h2
-rw-r--r--ace/os_include/sys/os_types.h8
-rw-r--r--ace/os_include/sys/os_un.h4
-rw-r--r--ace/post.h4
-rw-r--r--ace/pre.h4
-rw-r--r--ace/svcconf.mpb58
-rw-r--r--apps/FaCE/FaCE.cpp24
-rw-r--r--apps/FaCE/FaCE.h2
-rw-r--r--apps/Gateway/Gateway/Config_Files.cpp2
-rw-r--r--apps/Gateway/Gateway/Connection_Handler.cpp12
-rw-r--r--apps/Gateway/Gateway/Connection_Handler.h12
-rw-r--r--apps/Gateway/Gateway/Event_Channel.cpp18
-rw-r--r--apps/Gateway/Gateway/Gateway.cpp3
-rw-r--r--apps/Gateway/Gateway/Options.cpp4
-rw-r--r--apps/Gateway/Gateway/Options.h4
-rw-r--r--apps/Gateway/Peer/Options.cpp2
-rw-r--r--apps/JAWS/ChangeLog122
-rw-r--r--apps/JAWS/clients/Blobby/Blob_Handler.cpp2
-rw-r--r--apps/JAWS/clients/Blobby/Options.cpp2
-rw-r--r--apps/JAWS/clients/Caching/caching.mpc1
-rw-r--r--apps/JAWS/clients/Caching/http_client.cpp2
-rw-r--r--apps/JAWS/clients/Caching/http_handler.cpp4
-rw-r--r--apps/JAWS/clients/Caching/test_URL.cpp2
-rw-r--r--apps/JAWS/server/HTTP_Handler.cpp23
-rw-r--r--apps/JAWS/server/HTTP_Handler.h25
-rw-r--r--apps/JAWS/server/HTTP_Request.h6
-rw-r--r--apps/JAWS/server/HTTP_Server.cpp61
-rw-r--r--apps/JAWS/server/HTTP_Server.h17
-rw-r--r--apps/JAWS/server/IO.cpp153
-rw-r--r--apps/JAWS/server/IO.h67
-rw-r--r--apps/JAWS/server/README27
-rw-r--r--apps/JAWS/server/main.cpp2
-rw-r--r--apps/JAWS/server/server.mpc7
-rw-r--r--apps/JAWS/server/svc.conf5
-rw-r--r--apps/JAWS/stress_testing/benchd.cpp6
-rw-r--r--apps/JAWS/stress_testing/http_tester.cpp2
-rw-r--r--apps/JAWS2/JAWS/Cache_Object.h2
-rw-r--r--apps/JAWS2/JAWS/Headers.cpp1
-rw-r--r--apps/JAWS2/JAWS/IO.cpp6
-rw-r--r--apps/JAWS2/JAWS/IO.h15
-rw-r--r--apps/JAWS2/JAWS/IO_Acceptor.h2
-rw-r--r--apps/JAWS2/JAWS/IO_Handler.h2
-rw-r--r--apps/JAWS2/JAWS/Parse_Headers.cpp1
-rw-r--r--apps/JAWS2/JAWS/Server.cpp4
-rw-r--r--apps/JAWS2/JAWS/jaws2.mpc2
-rw-r--r--apps/JAWS2/main.cpp2
-rw-r--r--apps/JAWS3/bench/mkfiles.cpp4
-rw-r--r--apps/JAWS3/bench/rqfiles.cpp4
-rw-r--r--apps/JAWS3/http/HTTP_Service_Handler.cpp2
-rw-r--r--apps/JAWS3/jaws3/Config_File.cpp2
-rw-r--r--apps/JAWS3/jaws3/Reactive_IO.cpp2
-rw-r--r--apps/JAWS3/jaws3/Templates.cpp2
-rw-r--r--apps/JAWS3/jaws3/jaws3.mpc2
-rw-r--r--apps/JAWS3/jaws3/main.cpp2
-rw-r--r--apps/JAWS3/small/SS_Service_Handler.cpp2
-rw-r--r--apps/drwho/ChangeLog71
-rw-r--r--apps/drwho/Options.cpp2
-rw-r--r--apps/drwho/client.cpp2
-rw-r--r--apps/drwho/drwho.mpc4
-rw-r--r--apps/drwho/server.cpp2
-rw-r--r--apps/gperf/ChangeLog31
-rw-r--r--apps/gperf/Makefile.am16
-rw-r--r--apps/gperf/gperf.mpc9
-rw-r--r--apps/gperf/src/Gen_Perf.cpp2
-rw-r--r--apps/gperf/src/Key_List.cpp4
-rw-r--r--apps/gperf/src/List_Node.cpp4
-rw-r--r--apps/gperf/src/Options.cpp6
-rw-r--r--apps/gperf/src/gperf.cpp4
-rw-r--r--apps/gperf/tests/tests.mpc10
-rw-r--r--apps/mkcsregdb/mkcsregdb.cpp6
-rw-r--r--apps/soreduce/Library.cpp6
-rw-r--r--apps/soreduce/Obj_Module.h2
-rw-r--r--apps/soreduce/soreduce.cpp2
-rw-r--r--apps/soreduce/soreduce.mpc2
-rw-r--r--bin/ChangeLogEditor/CVSFileLocator.pm117
-rw-r--r--bin/ChangeLogEditor/ChangeLogEdit.pm4
-rw-r--r--bin/ChangeLogEditor/ChangeLogEntry.pm11
-rw-r--r--bin/ChangeLogEditor/FileLocator.pm83
-rw-r--r--bin/ChangeLogEditor/FileLocatorFactory.pm33
-rw-r--r--bin/ChangeLogEditor/SVNFileLocator.pm53
-rw-r--r--bin/DependencyGenerator/GNUObjectGenerator.pm6
-rw-r--r--bin/DependencyGenerator/MakeObjectGenerator.pm6
-rw-r--r--bin/FOCUS/ChangeLog15
-rw-r--r--bin/FOCUS/specializations/Protocol_Family/IIOP/iiop.spl5
-rw-r--r--bin/FOCUS/specializations/Reactor_Family/Select_Reactor_MT.spl2
-rw-r--r--bin/FOCUS/specializations/Reactor_Family/Select_Reactor_ST.spl2
-rw-r--r--bin/MakeProjectCreator/README4
-rw-r--r--bin/MakeProjectCreator/config/ace_fl.mpb11
-rw-r--r--bin/MakeProjectCreator/config/ace_qt.mpb16
-rw-r--r--bin/MakeProjectCreator/config/ace_tk.mpb6
-rw-r--r--bin/MakeProjectCreator/config/ace_x11.mpb6
-rw-r--r--bin/MakeProjectCreator/config/ace_xt.mpb6
-rw-r--r--bin/MakeProjectCreator/config/acedefaults.mpb7
-rw-r--r--bin/MakeProjectCreator/config/aceexe.mpb2
-rw-r--r--bin/MakeProjectCreator/config/acelib.mpb2
-rw-r--r--bin/MakeProjectCreator/config/acememorylib_for_tao.mpb10
-rw-r--r--bin/MakeProjectCreator/config/acereactorlib_for_tao.mpb10
-rw-r--r--bin/MakeProjectCreator/config/acesocketslib_for_tao.mpb10
-rw-r--r--bin/MakeProjectCreator/config/acethreadslib_for_tao.mpb10
-rw-r--r--bin/MakeProjectCreator/config/acexml.mpb1
-rw-r--r--bin/MakeProjectCreator/config/automake.features2
-rw-r--r--bin/MakeProjectCreator/config/avstreams.mpb3
-rw-r--r--bin/MakeProjectCreator/config/boost_unit_test.mpb11
-rw-r--r--bin/MakeProjectCreator/config/ciao_component_dnc.mpb2
-rw-r--r--bin/MakeProjectCreator/config/ciao_config_handlers.mpb12
-rw-r--r--bin/MakeProjectCreator/config/ciao_container_dnc.mpb7
-rw-r--r--bin/MakeProjectCreator/config/ciao_deployment_stub.mpb2
-rw-r--r--bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb6
-rw-r--r--bin/MakeProjectCreator/config/ciao_domainapplicationmanager_dnc.mpb8
-rw-r--r--bin/MakeProjectCreator/config/ciao_events_base_dnc.mpb7
-rw-r--r--bin/MakeProjectCreator/config/ciao_events_dnc.mpb2
-rw-r--r--bin/MakeProjectCreator/config/ciao_rtevent_dnc.mpb9
-rw-r--r--bin/MakeProjectCreator/config/ciao_servant_dnc.mpb22
-rw-r--r--bin/MakeProjectCreator/config/ciao_server_dnc.mpb2
-rw-r--r--bin/MakeProjectCreator/config/ciao_xml_utils.mpb5
-rw-r--r--bin/MakeProjectCreator/config/ciaocidldefaults.mpb24
-rw-r--r--bin/MakeProjectCreator/config/cidlc.mpb12
-rw-r--r--bin/MakeProjectCreator/config/concurrency.mpb2
-rw-r--r--bin/MakeProjectCreator/config/concurrency_serv.mpb7
-rw-r--r--bin/MakeProjectCreator/config/concurrency_skel.mpb7
-rw-r--r--bin/MakeProjectCreator/config/csd_framework.mpb7
-rw-r--r--bin/MakeProjectCreator/config/csd_pt_test_exe.mpb4
-rw-r--r--bin/MakeProjectCreator/config/csd_pt_testinf_lib.mpb9
-rw-r--r--bin/MakeProjectCreator/config/csd_pt_testservant_lib.mpb7
-rw-r--r--bin/MakeProjectCreator/config/csd_threadpool.mpb7
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_foo_a_lib.mpb9
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_foo_b_lib.mpb9
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_foo_c_lib.mpb9
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_test_exe_a.mpb4
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_test_exe_b.mpb4
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_test_exe_c.mpb4
-rw-r--r--bin/MakeProjectCreator/config/csd_tp_test_lib.mpb10
-rw-r--r--bin/MakeProjectCreator/config/dance_extension_stub.mpb6
-rw-r--r--bin/MakeProjectCreator/config/dseventlogadmin.mpb5
-rw-r--r--bin/MakeProjectCreator/config/dslogadmin.mpb5
-rw-r--r--bin/MakeProjectCreator/config/etcl.mpb5
-rw-r--r--bin/MakeProjectCreator/config/event.mpb1
-rw-r--r--bin/MakeProjectCreator/config/event_serv.mpb3
-rw-r--r--bin/MakeProjectCreator/config/ftclientorb.mpb1
-rw-r--r--bin/MakeProjectCreator/config/ftrteventchannel.mpb1
-rw-r--r--bin/MakeProjectCreator/config/global.features4
-rw-r--r--bin/MakeProjectCreator/config/global.mpb7
-rw-r--r--bin/MakeProjectCreator/config/htbp.mpb1
-rw-r--r--bin/MakeProjectCreator/config/htiop.mpb5
-rw-r--r--bin/MakeProjectCreator/config/ifrservice.mpb1
-rw-r--r--bin/MakeProjectCreator/config/kokyu_dsrt_schedulers.mpb4
-rw-r--r--bin/MakeProjectCreator/config/messaging.mpb3
-rw-r--r--bin/MakeProjectCreator/config/messaging_optional.mpb8
-rw-r--r--bin/MakeProjectCreator/config/naming.mpb1
-rw-r--r--bin/MakeProjectCreator/config/naming_serv.mpb4
-rw-r--r--bin/MakeProjectCreator/config/no_wchar.mpb3
-rw-r--r--bin/MakeProjectCreator/config/notification.mpb1
-rw-r--r--bin/MakeProjectCreator/config/notification_serv.mpb1
-rw-r--r--bin/MakeProjectCreator/config/notifytest.mpb2
-rw-r--r--bin/MakeProjectCreator/config/property.mpb2
-rw-r--r--bin/MakeProjectCreator/config/property_serv.mpb7
-rw-r--r--bin/MakeProjectCreator/config/property_skel.mpb7
-rw-r--r--bin/MakeProjectCreator/config/rmcast.mpb1
-rw-r--r--bin/MakeProjectCreator/config/rtcorbacommon.mpb5
-rw-r--r--bin/MakeProjectCreator/config/rtevent_serv.mpb2
-rw-r--r--bin/MakeProjectCreator/config/rteventlogadmin.mpb7
-rw-r--r--bin/MakeProjectCreator/config/rteventlogadmin_serv.mpb7
-rw-r--r--bin/MakeProjectCreator/config/rteventlogadmin_skel.mpb7
-rw-r--r--bin/MakeProjectCreator/config/rtkokyuevent.mpb5
-rw-r--r--bin/MakeProjectCreator/config/rtnotify.mpb5
-rw-r--r--bin/MakeProjectCreator/config/security.mpb2
-rw-r--r--bin/MakeProjectCreator/config/ssl.mpb1
-rw-r--r--bin/MakeProjectCreator/config/ssliop.mpb2
-rw-r--r--bin/MakeProjectCreator/config/strategies.mpb1
-rw-r--r--bin/MakeProjectCreator/config/tao_versioning_idl_defaults.mpb14
-rw-r--r--bin/MakeProjectCreator/config/taodefaults.mpb6
-rw-r--r--bin/MakeProjectCreator/config/tmcast.mpb1
-rw-r--r--bin/MakeProjectCreator/config/trading.mpb1
-rw-r--r--bin/MakeProjectCreator/config/trading_serv.mpb3
-rw-r--r--bin/MakeProjectCreator/config/vc8nmake.mpb10
-rw-r--r--bin/MakeProjectCreator/config/vcl.mpb16
-rw-r--r--bin/MakeProjectCreator/config/versioned_namespace.mpb13
-rw-r--r--bin/MakeProjectCreator/config/winregistry.mpb1
-rw-r--r--bin/MakeProjectCreator/modules/BorlandProjectCreator.pm3
-rw-r--r--bin/MakeProjectCreator/modules/BorlandWorkspaceCreator.pm2
-rw-r--r--bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm14
-rw-r--r--bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm9
-rw-r--r--bin/MakeProjectCreator/templates/bor.mpd14
-rw-r--r--bin/MakeProjectCreator/templates/gnu.mpd47
-rw-r--r--bin/PerlACE/Process_Win32.pm6
-rw-r--r--bin/PerlACE/Run_Test.pm16
-rwxr-xr-xbin/auto_run_tests.pl6
-rw-r--r--bin/ciao_tests.lst9
-rwxr-xr-xbin/cle.pl7
-rwxr-xr-xbin/depgen.pl13
-rwxr-xr-xbin/fuzz.pl78
-rwxr-xr-xbin/generate_compile_stats.sh71
-rwxr-xr-xbin/generate_export_file.pl12
-rwxr-xr-xbin/generate_footprint_chart.sh2
-rwxr-xr-xbin/generate_performance_chart.sh2
-rwxr-xr-xbin/generate_rel_manpages6
-rwxr-xr-xbin/generate_topinfo_charts.sh2
-rwxr-xr-xbin/make_release42
-rwxr-xr-xbin/mpc.pl75
-rwxr-xr-xbin/msvc_cidlc.pl1
-rwxr-xr-xbin/msvc_static_compile.pl53
-rw-r--r--bin/msvc_static_order.lst20
-rwxr-xr-xbin/mwc.pl75
-rwxr-xr-xbin/performance_stats.sh31
-rwxr-xr-xbin/perltest2cpp.pl2251
-rw-r--r--bin/sandbox.cpp2
-rw-r--r--bin/tao_orb_tests.lst79
-rw-r--r--bin/tao_other_tests.lst149
-rw-r--r--configure.ac1022
-rw-r--r--contrib/utility/Example/CommandLine/Foo/foo.cpp2
-rw-r--r--docs/ACE-bug-process.html167
-rw-r--r--docs/ACE-guidelines.html148
-rw-r--r--docs/ACE-lessons.html2
-rw-r--r--docs/CE-status.txt18
-rw-r--r--docs/Symbol_Versioning.html230
-rw-r--r--docs/ace_guidelines.vsmacrosbin65536 -> 0 bytes
-rw-r--r--docs/index.html18
-rw-r--r--etc/Svc_Conf_l.cpp.diff154
-rw-r--r--etc/ace.doxygen5
-rw-r--r--etc/ace_man.doxygen3
-rw-r--r--etc/ace_qos.doxygen5
-rw-r--r--etc/ace_rmcast.doxygen5
-rw-r--r--etc/ace_ssl.doxygen5
-rw-r--r--etc/acexml.doxygen5
-rw-r--r--etc/ciao.doxygen16
-rw-r--r--etc/ciao_DAnCE.doxygen38
-rw-r--r--etc/ciao_config_handlers.doxygen16
-rw-r--r--etc/tao.doxygen14
-rw-r--r--etc/tao_anytypecode.doxygen16
-rw-r--r--etc/tao_av.doxygen17
-rw-r--r--etc/tao_cosevent.doxygen17
-rw-r--r--etc/tao_cosnaming.doxygen17
-rw-r--r--etc/tao_cosnotification.doxygen24
-rw-r--r--etc/tao_costime.doxygen17
-rw-r--r--etc/tao_costrader.doxygen17
-rw-r--r--etc/tao_dynamicany.doxygen17
-rw-r--r--etc/tao_dynamicinterface.doxygen16
-rw-r--r--etc/tao_esf.doxygen17
-rw-r--r--etc/tao_ifr.doxygen16
-rw-r--r--etc/tao_implrepo.doxygen17
-rw-r--r--etc/tao_iormanip.doxygen16
-rw-r--r--etc/tao_iortable.doxygen16
-rw-r--r--etc/tao_pi.doxygen16
-rw-r--r--etc/tao_pi_server.doxygen16
-rw-r--r--etc/tao_portablegroup.doxygen17
-rw-r--r--etc/tao_portableserver.doxygen16
-rw-r--r--etc/tao_pss.doxygen17
-rw-r--r--etc/tao_rtcorba.doxygen16
-rw-r--r--etc/tao_rtevent.doxygen17
-rw-r--r--etc/tao_rtportableserver.doxygen16
-rw-r--r--etc/tao_security.doxygen17
-rw-r--r--etc/tao_smartproxies.doxygen17
-rw-r--r--etc/tao_ssliop.doxygen17
-rw-r--r--etc/tao_strategies.doxygen17
-rw-r--r--examples/APG/Active_Objects/active_objects.mpc2
-rw-r--r--examples/APG/Config/ARGV_Example.cpp2
-rw-r--r--examples/APG/Config/Get_Opt.cpp4
-rw-r--r--examples/APG/Config/Get_Opt_Long.cpp8
-rw-r--r--examples/APG/Config/HA_Status.cpp6
-rw-r--r--examples/APG/Config/config.mpc1
-rw-r--r--examples/APG/Containers/Hash_Map_Hash.h5
-rw-r--r--examples/APG/Containers/Map_Manager.cpp1
-rw-r--r--examples/APG/Containers/Map_Manager_Specialization.cpp1
-rw-r--r--examples/APG/Containers/Queues.cpp4
-rw-r--r--examples/APG/Containers/RB_Tree_Functors.cpp2
-rw-r--r--examples/APG/Containers/RB_Tree_Functors.h5
-rw-r--r--examples/APG/Containers/Stacks.cpp2
-rw-r--r--examples/APG/Containers/containers.mpc1
-rw-r--r--examples/APG/Logging/Callback-2.h10
-rw-r--r--examples/APG/Logging/Callback-3.h10
-rw-r--r--examples/APG/Logging/Callback.h10
-rw-r--r--examples/APG/Misc_IPC/misc_ipc.mpc2
-rw-r--r--examples/APG/Naming/naming.mpc5
-rw-r--r--examples/APG/Proactor/proactor.mpc1
-rw-r--r--examples/APG/Processes/Process_Mutex.cpp2
-rw-r--r--examples/APG/Processes/Spawn.cpp2
-rw-r--r--examples/APG/Processes/processes.mpc4
-rw-r--r--examples/APG/Shared_Memory/Hash_Map.cpp22
-rw-r--r--examples/APG/Shared_Memory/shared_memory.mpc5
-rw-r--r--examples/APG/Streams/BasicTask.h33
-rw-r--r--examples/APG/Streams/EndTask.h6
-rw-r--r--examples/APG/Streams/streams.mpc1
-rw-r--r--examples/APG/Svc_Config/HA_Status_Dynamic.cpp4
-rw-r--r--examples/APG/Svc_Config/HA_Status_Static.cpp4
-rw-r--r--examples/APG/Svc_Config/svc_config.mpc3
-rw-r--r--examples/APG/ThreadManagement/Coop_Cancel.cpp2
-rw-r--r--examples/APG/ThreadManagement/Priorities.cpp2
-rw-r--r--examples/APG/ThreadManagement/Signals.cpp2
-rw-r--r--examples/APG/ThreadManagement/Signals2.cpp2
-rw-r--r--examples/APG/ThreadPools/Request_Handler.h3
-rw-r--r--examples/APG/ThreadPools/threadpools.mpc1
-rw-r--r--examples/APG/ThreadSafety/Tokens_Deadlock.cpp8
-rw-r--r--examples/APG/ThreadSafety/threadsafety.mpc2
-rw-r--r--examples/APG/Timers/Timers.cpp5
-rw-r--r--examples/APG/Timers/Upcall.cpp6
-rw-r--r--examples/ASX/Event_Server/Event_Server/Event.mpc1
-rw-r--r--examples/ASX/Event_Server/Event_Server/Options.cpp22
-rw-r--r--examples/ASX/Event_Server/Event_Server/Options.h2
-rw-r--r--examples/ASX/Event_Server/Event_Server/event_server.cpp4
-rw-r--r--examples/ASX/Event_Server/Transceiver/transceiver.cpp2
-rw-r--r--examples/ASX/Message_Queue/buffer_stream.cpp4
-rw-r--r--examples/ASX/UPIPE_Event_Server/Options.cpp23
-rw-r--r--examples/ASX/UPIPE_Event_Server/Peer_Router.cpp2
-rw-r--r--examples/ASX/UPIPE_Event_Server/UPIPE_Event.mpc1
-rw-r--r--examples/C++NPv1/C++NPv1.mpc12
-rw-r--r--examples/C++NPv1/Iterative_Logging_Server.cpp6
-rw-r--r--examples/C++NPv1/Iterative_Logging_Server.h2
-rw-r--r--examples/C++NPv1/Logging_Client.cpp13
-rw-r--r--examples/C++NPv1/Logging_Handler.cpp6
-rw-r--r--examples/C++NPv1/Logging_Handler.h2
-rw-r--r--examples/C++NPv1/Logging_Server.cpp6
-rw-r--r--examples/C++NPv1/Logging_Server.h2
-rw-r--r--examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp7
-rw-r--r--examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp6
-rw-r--r--examples/C++NPv1/Reactive_Logging_Server.cpp6
-rw-r--r--examples/C++NPv1/Reactive_Logging_Server_Ex.cpp6
-rw-r--r--examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp6
-rw-r--r--examples/C++NPv2/AC_Client_Logging_Daemon.cpp10
-rw-r--r--examples/C++NPv2/AIO_Client_Logging_Daemon.cpp8
-rw-r--r--examples/C++NPv2/C++NPv2.mpc17
-rw-r--r--examples/C++NPv2/Client_Logging_Daemon.cpp10
-rw-r--r--examples/C++NPv2/Logging_Event_Handler.cpp4
-rw-r--r--examples/C++NPv2/Logging_Handler.h2
-rw-r--r--examples/C++NPv2/Makefile.am6
-rw-r--r--examples/C++NPv2/README2
-rw-r--r--examples/C++NPv2/Reactor_Logging_Server.cpp4
-rw-r--r--examples/C++NPv2/Reactor_Logging_Server.h29
-rw-r--r--examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp2
-rw-r--r--examples/C++NPv2/Reactor_Logging_Server_Adapter.h2
-rw-r--r--examples/C++NPv2/Reactor_Logging_Server_T.h29
-rw-r--r--examples/C++NPv2/Select_Reactor_Logging_Server.cpp4
-rw-r--r--examples/C++NPv2/Service_Reporter.cpp4
-rw-r--r--examples/C++NPv2/TP_Logging_Server.h4
-rw-r--r--examples/C++NPv2/TP_Reactor_Logging_Server.cpp4
-rw-r--r--examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp6
-rw-r--r--examples/C++NPv2/display_logfile.cpp30
-rw-r--r--examples/Connection/blocking/Connection_Blocking.mpc2
-rw-r--r--examples/Connection/blocking/SPIPE-acceptor.cpp2
-rw-r--r--examples/Connection/blocking/SPIPE-connector.cpp2
-rw-r--r--examples/Connection/blocking/test_spipe_acceptor.cpp2
-rw-r--r--examples/Connection/misc/Connection_Misc.mpc3
-rw-r--r--examples/Connection/misc/test_upipe.cpp2
-rw-r--r--examples/Connection/misc/test_upipe.h4
-rw-r--r--examples/Connection/non_blocking/Connection_Non_Blocking.mpc4
-rw-r--r--examples/Connection/non_blocking/test_tli_acceptor.cpp2
-rw-r--r--examples/Connection/non_blocking/test_tli_connector.cpp2
-rw-r--r--examples/DLL/Newsweek.cpp11
-rw-r--r--examples/DLL/Newsweek.h3
-rw-r--r--examples/DLL/Today.cpp11
-rw-r--r--examples/DLL/Today.h3
-rw-r--r--examples/IPC_SAP/DEV_SAP/reader/dev_sap_reader.mpc1
-rw-r--r--examples/IPC_SAP/DEV_SAP/reader/reader.cpp18
-rw-r--r--examples/IPC_SAP/DEV_SAP/writer/dev_sap_writer.mpc1
-rw-r--r--examples/IPC_SAP/DEV_SAP/writer/writer.cpp17
-rw-r--r--examples/IPC_SAP/FIFO_SAP/fifo_sap.mpc3
-rw-r--r--examples/IPC_SAP/FILE_SAP/file_sap_client.mpc1
-rw-r--r--examples/IPC_SAP/SOCK_SAP/C-inclient.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp2
-rw-r--r--examples/IPC_SAP/SOCK_SAP/sock_sap.mpc6
-rw-r--r--examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp4
-rw-r--r--examples/IPC_SAP/SSL_SAP/SSL-client.cpp4
-rw-r--r--examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp2
-rw-r--r--examples/IPC_SAP/SSL_SAP/SSL-server-poll.cpp5
-rw-r--r--examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp2
-rw-r--r--examples/IPC_SAP/SSL_SAP/SSL-server.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/CPP-client.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/CPP-server.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/db-client.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/db-server.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/ftp-client.cpp2
-rw-r--r--examples/IPC_SAP/TLI_SAP/ftp-server.cpp2
-rw-r--r--examples/IPC_SAP/UPIPE_SAP/UPIPE_SAP.mpc3
-rw-r--r--examples/Logger/Acceptor-server/server_loggerd.cpp6
-rw-r--r--examples/Logger/simple-server/Logging_Handler.cpp2
-rw-r--r--examples/Logger/simple-server/server_loggerd.cpp2
-rw-r--r--examples/Map_Manager/Map_Manager.mpc6
-rw-r--r--examples/Mem_Map/IO-tests/Mem_Map_IO_Tests.mpc3
-rw-r--r--examples/Mem_Map/IO-tests/test_io.cpp6
-rw-r--r--examples/Mem_Map/file-reverse/Mem_Map_File_Reverse.mpc3
-rw-r--r--examples/Misc/Misc.mpc1
-rw-r--r--examples/Misc/test_get_opt.cpp4
-rw-r--r--examples/NT_Service/NT_Service.mpc1
-rw-r--r--examples/NT_Service/main.cpp2
-rw-r--r--examples/Naming/Naming.mpc4
-rw-r--r--examples/OS/Process/OS_Process.mpc1
-rw-r--r--examples/OS/Process/imore.cpp4
-rw-r--r--examples/OS/Process/process.cpp2
-rw-r--r--examples/QOS/Change_Receiver_FlowSpec/QoS_Util.cpp2
-rw-r--r--examples/QOS/Change_Sender_TSpec/QoS_Util.cpp2
-rw-r--r--examples/QOS/Diffserv/QOS_Diffserv.mpc1
-rw-r--r--examples/QOS/Simple/QoS_Util.cpp2
-rw-r--r--examples/Reactor/Dgram/Reactor_Dgram.mpc1
-rw-r--r--examples/Reactor/FIFO/Reactor_FIFO.mpc2
-rw-r--r--examples/Reactor/Misc/notification.cpp14
-rw-r--r--examples/Reactor/Misc/pingpong.cpp8
-rw-r--r--examples/Reactor/Misc/test_demuxing.cpp2
-rw-r--r--examples/Reactor/Misc/test_reactors.cpp2
-rw-r--r--examples/Reactor/Misc/test_signals_1.cpp2
-rw-r--r--examples/Reactor/Misc/test_signals_2.cpp2
-rw-r--r--examples/Reactor/Misc/test_time_value.cpp2
-rw-r--r--examples/Reactor/Multicast/Log_Wrapper.cpp2
-rw-r--r--examples/Reactor/Multicast/client.cpp2
-rw-r--r--examples/Reactor/Multicast/server.cpp2
-rw-r--r--examples/Reactor/Ntalker/ntalker.cpp2
-rw-r--r--examples/Reactor/Proactor/Aio_Platform_Test_C.cpp2
-rw-r--r--examples/Reactor/Proactor/Proactor.mpc7
-rw-r--r--examples/Reactor/Proactor/post_completions.cpp2
-rw-r--r--examples/Reactor/Proactor/simple_test_proactor.cpp2
-rw-r--r--examples/Reactor/Proactor/test_aiocb.cpp2
-rw-r--r--examples/Reactor/Proactor/test_aiocb_ace.cpp2
-rw-r--r--examples/Reactor/Proactor/test_aiosig.cpp2
-rw-r--r--examples/Reactor/Proactor/test_aiosig_ace.cpp2
-rw-r--r--examples/Reactor/Proactor/test_cancel.cpp2
-rw-r--r--examples/Reactor/Proactor/test_end_event_loop.cpp2
-rw-r--r--examples/Reactor/Proactor/test_multiple_loops.cpp2
-rw-r--r--examples/Reactor/Proactor/test_proactor.cpp2
-rw-r--r--examples/Reactor/Proactor/test_proactor2.cpp2
-rw-r--r--examples/Reactor/Proactor/test_proactor3.cpp2
-rw-r--r--examples/Reactor/Proactor/test_timeout.cpp2
-rw-r--r--examples/Reactor/Proactor/test_udp_proactor.cpp2
-rw-r--r--examples/Reactor/TP_Reactor/AcceptHandler.cpp106
-rw-r--r--examples/Reactor/TP_Reactor/AcceptHandler.h75
-rw-r--r--examples/Reactor/TP_Reactor/README86
-rw-r--r--examples/Reactor/TP_Reactor/ReadHandler.cpp151
-rw-r--r--examples/Reactor/TP_Reactor/ReadHandler.h92
-rw-r--r--examples/Reactor/TP_Reactor/TP_Reactor.mpc18
-rw-r--r--examples/Reactor/TP_Reactor/client.cpp141
-rw-r--r--examples/Reactor/TP_Reactor/common.h29
-rw-r--r--examples/Reactor/TP_Reactor/run_test.pl41
-rw-r--r--examples/Reactor/TP_Reactor/server.cpp66
-rw-r--r--examples/Reactor/WFMO_Reactor/Handle_Close.cpp2
-rw-r--r--examples/Reactor/WFMO_Reactor/Multithreading.cpp4
-rw-r--r--examples/Reactor/WFMO_Reactor/Talker.cpp2
-rw-r--r--examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc4
-rw-r--r--examples/Reactor/WFMO_Reactor/Window_Messages.cpp1
-rw-r--r--examples/Service_Configurator/IPC-tests/client/Svc_Cfg_IPC_Client.mpc7
-rw-r--r--examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp4
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp4
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp4
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_Broadcast.i2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_L_CODgram.i4
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_L_Dgram.i4
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_L_FIFO.i2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_L_Pipe.i4
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_L_SPIPE.i2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_L_Stream.i6
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_R_Dgram.i2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp4
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i2
-rw-r--r--examples/Service_Configurator/IPC-tests/server/Svc_Cfg_IPC_Server.mpc2
-rw-r--r--examples/Shared_Malloc/Malloc.h2
-rw-r--r--examples/Shared_Malloc/Options.cpp4
-rw-r--r--examples/Shared_Malloc/Shared_Malloc.mpc4
-rw-r--r--examples/Shared_Malloc/test_malloc.cpp2
-rw-r--r--examples/Shared_Malloc/test_persistence.cpp15
-rw-r--r--examples/Shared_Malloc/test_position_independent_malloc.cpp2
-rw-r--r--examples/Shared_Memory/Shared_Memory.mpc2
-rw-r--r--examples/Synch/Synch.mpc1
-rw-r--r--examples/Synch/proc_sema.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp2
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/SV_Message_Queues.mpc4
-rw-r--r--examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp2
-rw-r--r--examples/System_V_IPC/SV_Semaphores/SV_Semaphores.mpc2
-rw-r--r--examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp2
-rw-r--r--examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp2
-rw-r--r--examples/TMCast/Member/member.cpp2
-rw-r--r--examples/Threads/Threads.mpc4
-rw-r--r--examples/Threads/barrier2.cpp6
-rw-r--r--examples/Threads/process_manager.cpp2
-rw-r--r--examples/Threads/reader_writer.cpp2
-rw-r--r--examples/Threads/recursive_mutex.cpp2
-rw-r--r--examples/Threads/task_one.cpp2
-rw-r--r--examples/Web_Crawler/Command_Processor.cpp2
-rw-r--r--examples/Web_Crawler/HTTP_URL.cpp2
-rw-r--r--examples/Web_Crawler/Options.cpp2
-rw-r--r--examples/Web_Crawler/URL_Addr.cpp4
-rw-r--r--examples/Web_Crawler/URL_Status.h4
-rw-r--r--examples/Web_Crawler/URL_Visitor.cpp4
-rw-r--r--examples/Web_Crawler/Web_Crawler.mpc1
-rw-r--r--examples/Web_Crawler/main.cpp5
-rw-r--r--html/Stats/configuration.shtml8
-rw-r--r--html/Stats/detailed_footprint.shtml2
-rw-r--r--html/Stats/footprint.shtml1
-rw-r--r--html/Stats/performance.shtml4
-rw-r--r--html/Stats/simple_footprint.shtml27
-rw-r--r--html/index.html414
-rw-r--r--include/makeinclude/build_dll.bor2
-rw-r--r--include/makeinclude/build_exe.bor4
-rw-r--r--include/makeinclude/compiler.bor43
-rw-r--r--include/makeinclude/platform_aix_ibm.GNU50
-rw-r--r--include/makeinclude/platform_hpux_aCC.GNU44
-rw-r--r--include/makeinclude/platform_linux.GNU4
-rw-r--r--include/makeinclude/platform_linux_icc.GNU32
-rw-r--r--include/makeinclude/platform_lynxos.GNU35
-rw-r--r--include/makeinclude/platform_macosx_tiger.GNU60
-rw-r--r--include/makeinclude/platform_macosx_tiger_gcc4.GNU49
-rw-r--r--include/makeinclude/platform_osf1_4.x_g++.GNU4
-rw-r--r--include/makeinclude/platform_sunos5_g++.GNU7
-rw-r--r--include/makeinclude/platform_sunos5_sunc++.GNU27
-rw-r--r--include/makeinclude/platform_vxworks5.5.x.GNU14
-rw-r--r--include/makeinclude/platform_vxworks6.2.GNU351
-rw-r--r--include/makeinclude/rules.local.GNU22
-rw-r--r--include/makeinclude/wrapper_macros.GNU47
-rw-r--r--m4/ace.m4391
-rw-r--r--m4/ace_func.m4148
-rw-r--r--m4/acinclude.m4168
-rw-r--r--m4/compiler.m4133
-rw-r--r--m4/config_h.m425
-rw-r--r--m4/pkg.m4156
-rw-r--r--m4/tls.m48
-rw-r--r--netsvcs/clients/Logger/Logger.mpc6
-rw-r--r--netsvcs/clients/Naming/Client/Client.mpc6
-rw-r--r--netsvcs/clients/Naming/Client/Client_Test.cpp6
-rw-r--r--netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp2
-rw-r--r--netsvcs/clients/Naming/Dump_Restore/Dump_Restore.mpc4
-rw-r--r--netsvcs/clients/Naming/Dump_Restore/createfile.cpp2
-rw-r--r--netsvcs/clients/Tokens/collection/collection.cpp6
-rw-r--r--netsvcs/clients/Tokens/collection/rw_locks.cpp6
-rw-r--r--netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp6
-rw-r--r--netsvcs/clients/Tokens/invariant/invariant.cpp4
-rw-r--r--netsvcs/clients/Tokens/manual/manual.cpp6
-rw-r--r--netsvcs/clients/Tokens/mutex/test_mutex.cpp6
-rw-r--r--netsvcs/clients/Tokens/rw_lock/rw_locks.cpp6
-rw-r--r--netsvcs/lib/Client_Logging_Handler.cpp8
-rw-r--r--netsvcs/lib/Name_Handler.cpp34
-rw-r--r--netsvcs/lib/Server_Logging_Handler_T.cpp6
-rw-r--r--netsvcs/lib/TS_Clerk_Handler.cpp18
-rw-r--r--netsvcs/lib/TS_Clerk_Handler.h14
-rw-r--r--netsvcs/lib/TS_Server_Handler.cpp2
-rw-r--r--netsvcs/lib/Token_Handler.cpp67
-rw-r--r--netsvcs/lib/Token_Handler.h10
-rw-r--r--netsvcs/lib/lib.mpc1
-rw-r--r--netsvcs/servers/main.cpp10
-rw-r--r--netsvcs/servers/servers.mpc7
-rw-r--r--netsvcs/servers/svc.conf2
-rw-r--r--netsvcs/servers/svc.conf.xml2
-rw-r--r--performance-tests/Misc/Misc.mpc6
-rw-r--r--performance-tests/Misc/basic_perf.cpp2
-rw-r--r--performance-tests/Misc/childbirth_time.cpp6
-rw-r--r--performance-tests/Misc/context_switch_time.cpp4
-rw-r--r--performance-tests/Misc/preempt.cpp2
-rw-r--r--performance-tests/Misc/test_guard.cpp6
-rw-r--r--performance-tests/RPC/client.cpp4
-rw-r--r--performance-tests/SCTP/Options_Manager.cpp46
-rw-r--r--performance-tests/SCTP/SCTP.mpc4
-rw-r--r--performance-tests/SCTP/SOCK_SEQPACK_clt.cpp2
-rw-r--r--performance-tests/SCTP/SOCK_SEQPACK_srv.cpp2
-rw-r--r--performance-tests/SCTP/SOCK_STREAM_clt.cpp2
-rw-r--r--performance-tests/SCTP/SOCK_STREAM_srv.cpp2
-rw-r--r--performance-tests/Server_Concurrency/Leader_Follower/RT_CORBA_Leader_Follower.cpp2
-rw-r--r--performance-tests/Server_Concurrency/Leader_Follower/Svr_Conc_Leader_Follower.mpc2
-rw-r--r--performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp2
-rw-r--r--performance-tests/Server_Concurrency/Queue_Based_Workers/RT_CORBA_Workers.cpp4
-rw-r--r--performance-tests/Server_Concurrency/Queue_Based_Workers/Svr_Conc_Queue_Based_Workers.mpc2
-rw-r--r--performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp2
-rw-r--r--performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.cpp4
-rw-r--r--performance-tests/Synch-Benchmarks/Base_Test/Synch_Benchmarks_Base_Test.mpc3
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp2
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/Synch_Benchmarks_Perf_Test.mpc1
-rw-r--r--performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp2
-rw-r--r--performance-tests/TCP/TCP.mpc1
-rw-r--r--performance-tests/TCP/tcp_test.cpp4
-rw-r--r--performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp2
-rw-r--r--performance-tests/TTCP/C/new-ttcp.cpp2
-rw-r--r--performance-tests/UDP/UDP.mpc1
-rw-r--r--performance-tests/UDP/udp_test.cpp4
-rw-r--r--protocols/ace/HTBP/HTBP.mpc1
-rw-r--r--protocols/ace/HTBP/HTBP_Addr.cpp10
-rw-r--r--protocols/ace/HTBP/HTBP_Addr.h4
-rw-r--r--protocols/ace/HTBP/HTBP_Channel.cpp4
-rw-r--r--protocols/ace/HTBP/HTBP_Channel.h3
-rw-r--r--protocols/ace/HTBP/HTBP_Channel.inl8
-rw-r--r--protocols/ace/HTBP/HTBP_Environment.cpp4
-rw-r--r--protocols/ace/HTBP/HTBP_Environment.h3
-rw-r--r--protocols/ace/HTBP/HTBP_Filter.cpp7
-rw-r--r--protocols/ace/HTBP/HTBP_Filter.h6
-rw-r--r--protocols/ace/HTBP/HTBP_Filter.inl7
-rw-r--r--protocols/ace/HTBP/HTBP_Filter_Factory.cpp5
-rw-r--r--protocols/ace/HTBP/HTBP_Filter_Factory.h4
-rw-r--r--protocols/ace/HTBP/HTBP_ID_Requestor.cpp12
-rw-r--r--protocols/ace/HTBP/HTBP_ID_Requestor.h5
-rw-r--r--protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp6
-rw-r--r--protocols/ace/HTBP/HTBP_Inside_Squid_Filter.h6
-rw-r--r--protocols/ace/HTBP/HTBP_Inside_Squid_Filter.inl7
-rw-r--r--protocols/ace/HTBP/HTBP_Notifier.cpp4
-rw-r--r--protocols/ace/HTBP/HTBP_Notifier.h6
-rw-r--r--protocols/ace/HTBP/HTBP_Outside_Squid_Filter.cpp4
-rw-r--r--protocols/ace/HTBP/HTBP_Outside_Squid_Filter.h4
-rw-r--r--protocols/ace/HTBP/HTBP_Outside_Squid_Filter.inl7
-rw-r--r--protocols/ace/HTBP/HTBP_Session.cpp10
-rw-r--r--protocols/ace/HTBP/HTBP_Session.h7
-rw-r--r--protocols/ace/HTBP/HTBP_Session.inl7
-rw-r--r--protocols/ace/HTBP/HTBP_Stream.cpp4
-rw-r--r--protocols/ace/HTBP/HTBP_Stream.h6
-rw-r--r--protocols/ace/RMCast/Acknowledge.cpp3
-rw-r--r--protocols/ace/RMCast/Link.cpp14
-rw-r--r--protocols/ace/RMCast/Makefile.am3
-rw-r--r--protocols/ace/RMCast/Protocol.h7
-rw-r--r--protocols/ace/RMCast/RMCast.mpc1
-rw-r--r--protocols/ace/RMCast/Reassemble.cpp7
-rw-r--r--protocols/ace/RMCast/Retransmit.cpp3
-rw-r--r--protocols/ace/RMCast/Simulator.cpp4
-rw-r--r--protocols/ace/RMCast/Socket.cpp14
-rw-r--r--protocols/ace/RMCast/Template_Instantiations.cpp128
-rw-r--r--protocols/ace/TMCast/FaultDetector.hpp8
-rw-r--r--protocols/ace/TMCast/Group.cpp11
-rw-r--r--protocols/ace/TMCast/LinkListener.hpp5
-rw-r--r--protocols/ace/TMCast/MTQueue.hpp2
-rw-r--r--protocols/ace/TMCast/Makefile.am3
-rw-r--r--protocols/ace/TMCast/TMCast.mpc1
-rw-r--r--protocols/ace/TMCast/Template_Instantiations.cpp31
-rw-r--r--protocols/ace/TMCast/TransactionController.hpp3
-rw-r--r--protocols/examples/RMCast/Send_Msg/Send_Msg.mpc2
-rw-r--r--protocols/tests/RMCast/RMCast.mpc2
-rw-r--r--tests/ACE_Init_Test.cpp2
-rw-r--r--tests/ARGV_Test.cpp2
-rw-r--r--tests/Auto_Event_Test.cpp2
-rw-r--r--tests/Barrier_Test.cpp39
-rw-r--r--tests/Based_Pointer_Test.cpp11
-rw-r--r--tests/Basic_Types_Test.cpp18
-rw-r--r--tests/Bound_Ptr_Test.cpp2
-rw-r--r--tests/Buffer_Stream_Test.cpp12
-rw-r--r--tests/Bug_2497_Regression_Test.cpp75
-rw-r--r--tests/CDR_Array_Test.cpp2
-rw-r--r--tests/CDR_File_Test.cpp6
-rw-r--r--tests/CDR_Test.cpp6
-rw-r--r--tests/CE_fostream.cpp6
-rw-r--r--tests/CE_fostream.h6
-rw-r--r--tests/Cache_Map_Manager_Test.cpp2
-rw-r--r--tests/Cached_Accept_Conn_Test.cpp2
-rw-r--r--tests/Cached_Conn_Test.cpp2
-rw-r--r--tests/Config_Test.cpp6
-rw-r--r--tests/Conn_Test.cpp2
-rw-r--r--tests/DLL_Test_Impl.cpp12
-rw-r--r--tests/DLL_Test_Impl.h3
-rw-r--r--tests/DLList_Test.cpp2
-rw-r--r--tests/Dev_Poll_Reactor_Test.cpp7
-rw-r--r--tests/Dirent_Test.cpp26
-rw-r--r--tests/Enum_Interfaces_Test.cpp2
-rw-r--r--tests/Env_Value_Test.cpp2
-rw-r--r--tests/Future_Set_Test.cpp12
-rw-r--r--tests/Future_Test.cpp12
-rw-r--r--tests/Get_Opt_Test.cpp24
-rw-r--r--tests/HTBP/Reactor_Tests/client.cpp4
-rw-r--r--tests/HTBP/Reactor_Tests/test_config.h4
-rw-r--r--tests/HTBP/Send_Large_Msg/client.cpp4
-rw-r--r--tests/HTBP/Send_Recv_Tests/SendRecv_Test.cpp6
-rw-r--r--tests/HTBP/ping/client.cpp4
-rw-r--r--tests/Hash_Map_Bucket_Iterator_Test.cpp2
-rw-r--r--tests/Hash_Map_Manager_Test.cpp6
-rw-r--r--tests/High_Res_Timer_Test.cpp2
-rw-r--r--tests/INET_Addr_Test_IPV6.cpp2
-rw-r--r--tests/IOStream_Test.cpp6
-rw-r--r--tests/Lazy_Map_Manager_Test.cpp26
-rw-r--r--tests/Log_Msg_Test.cpp2
-rw-r--r--tests/Logging_Strategy_Test.cpp2
-rw-r--r--tests/MEM_Stream_Test.cpp14
-rw-r--r--tests/MT_Reactor_Upcall_Test.cpp2
-rw-r--r--tests/MT_Reference_Counted_Event_Handler_Test.cpp2
-rw-r--r--tests/MT_Reference_Counted_Notify_Test.cpp2
-rw-r--r--tests/MT_SOCK_Test.cpp139
-rw-r--r--tests/Makefile.am421
-rw-r--r--tests/Manual_Event_Test.cpp2
-rw-r--r--tests/Map_Test.cpp26
-rw-r--r--tests/Message_Block_Test.cpp25
-rw-r--r--tests/Message_Queue_Test.cpp95
-rw-r--r--tests/Multicast_Test.cpp20
-rw-r--r--tests/Multicast_Test_IPV6.cpp20
-rw-r--r--tests/Multihomed_INET_Addr_Test_IPV6.cpp2
-rw-r--r--tests/Naming_Test.cpp17
-rw-r--r--tests/Network_Adapters_Test.cpp2
-rw-r--r--tests/NonBlocking_Conn_Test.cpp4
-rw-r--r--tests/Notify_Performance_Test.cpp2
-rw-r--r--tests/OS_Test.cpp18
-rw-r--r--tests/Object_Manager_Test.cpp1
-rw-r--r--tests/Pipe_Test.cpp19
-rw-r--r--tests/Priority_Reactor_Test.cpp2
-rw-r--r--tests/Proactor_Scatter_Gather_Test.cpp2
-rw-r--r--tests/Proactor_Test.cpp16
-rw-r--r--tests/Proactor_Test_IPV6.cpp14
-rw-r--r--tests/Proactor_Timer_Test.cpp6
-rw-r--r--tests/Process_Manager_Test.cpp2
-rw-r--r--tests/Process_Manual_Event_Test.cpp40
-rw-r--r--tests/Process_Mutex_Test.cpp11
-rw-r--r--tests/Process_Semaphore_Test.cpp10
-rw-r--r--tests/Process_Strategy_Test.cpp8
-rw-r--r--tests/Process_Strategy_Test.h3
-rw-r--r--tests/RMCast/.cvsignore12
-rw-r--r--tests/Reactor_Dispatch_Order_Test.cpp72
-rw-r--r--tests/Reactor_Performance_Test.cpp6
-rw-r--r--tests/Reactor_Timer_Test.cpp16
-rw-r--r--tests/Reader_Writer_Test.cpp2
-rw-r--r--tests/Refcounted_Auto_Ptr_Test.cpp38
-rw-r--r--tests/Reference_Counted_Event_Handler_Test.cpp38
-rw-r--r--tests/SOCK_Connector_Test.cpp8
-rw-r--r--tests/SOCK_Dgram_Bcast_Test.cpp2
-rw-r--r--tests/SOCK_Send_Recv_Test.cpp4
-rw-r--r--tests/SOCK_Send_Recv_Test_IPV6.cpp4
-rw-r--r--tests/SOCK_Test.cpp4
-rw-r--r--tests/SOCK_Test_IPv6.cpp4
-rw-r--r--tests/SSL/Makefile.am20
-rw-r--r--tests/SSL/SSL_Asynch_Stream_Test.cpp478
-rw-r--r--tests/SSL/Thread_Pool_Reactor_SSL_Test.cpp2
-rw-r--r--tests/SSL/tests.mpc7
-rw-r--r--tests/SString_Test.cpp6
-rw-r--r--tests/Semaphore_Test.cpp2
-rw-r--r--tests/Service_Config_Test.UTF-16.confbin2008 -> 2006 bytes
-rw-r--r--tests/Service_Config_Test.WCHAR_T.confbin4012 -> 4008 bytes
-rw-r--r--tests/Signal_Test.cpp2
-rw-r--r--tests/Sigset_Ops_Test.cpp26
-rw-r--r--tests/Svc_Handler_Test.cpp18
-rw-r--r--tests/TP_Reactor_Test.cpp2
-rw-r--r--tests/Test_Output.cpp4
-rw-r--r--tests/Thread_Manager_Test.cpp20
-rw-r--r--tests/Thread_Pool_Reactor_Resume_Test.cpp2
-rw-r--r--tests/Thread_Pool_Reactor_Test.cpp2
-rw-r--r--tests/Thread_Pool_Test.cpp2
-rw-r--r--tests/Time_Value_Test.cpp39
-rw-r--r--tests/Timer_Queue_Reference_Counting_Test.cpp2
-rw-r--r--tests/Timer_Queue_Test.cpp73
-rw-r--r--tests/Unload_libACE.cpp259
-rw-r--r--tests/Upgradable_RW_Test.cpp2
-rw-r--r--tests/WChar_Conversion.cpp291
-rwxr-xr-xtests/makeicc.pl42
-rw-r--r--tests/run_test.lst186
-rw-r--r--tests/test_config.h5
-rw-r--r--tests/tests.mpc83
8870 files changed, 118933 insertions, 223425 deletions
diff --git a/ACE-INSTALL.html b/ACE-INSTALL.html
index c4f26ba777c..48200d6dc1c 100644
--- a/ACE-INSTALL.html
+++ b/ACE-INSTALL.html
@@ -11,26 +11,21 @@
<h4>Synopsis</h4>
-The file explains how to build and install ACE, its Network Services,
-test suite and examples on the various OS platforms and compilers that
-it has been ported to. Please consult the <a
-href="ChangeLog">ChangeLog</a> file to see whether any recent changes
-to the release will affect your code. In addition, you should check
-out our <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-development-process.html">development
-process</a>. As you start working with ACE, we suggest you get copies
-of the <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE/book1/">C++NPv1</a>, <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE/book2/">C++NPv2</a>, and
-<a href="http://www.riverace.com/acebooks/">APG</a> books to help
-guide you after you've built and installed ACE. You should also
-consult the <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-FMM.html">ACE
-Frequently Made Mistakes page</a>. If you encounter any problems or
-would like to request an enhancement, then use our <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/usage-bugzilla.html">bug
-tracking system</a> to submit a report in accordance with our <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-bug-process.html">bug
+The file explains how to build and install ACE, its Network
+Services, test suite and examples on the various OS platforms and compilers
+that it has been ported to. Please consult the
+<a href="ChangeLog">ChangeLog</a> file to see whether any recent changes to
+the release will affect your code. In addition, you should check out our
+<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-development-process.html">development
+process</a>. As you start working with ACE, we suggest you get copies of the
+<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE/book1/">C++NPv1</a>,
+<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE/book2/">C++NPv2</a>, and
+<a href="http://www.riverace.com/acebooks/">APG</a> books
+to help guide you after you've built and installed ACE. You should
+also consult the <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-FMM.html">ACE Frequently Made
+Mistakes page</a>. If you encounter any problems or would like to
+request an enhancement, then use our <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/usage-bugzilla.html">bug tracking system</a> to submit a
+report in accordance with our <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-bug-process.html">bug
report process</a>.<p>
</p><h4>Document Index</h4>
@@ -38,12 +33,13 @@ report process</a>.<p>
<ul>
<li><a href="#platforms">Platforms, C++ Compilers, and Support</a>
</li><li><a href="#installpre">Installation prerequisites</a>
+ </li><li><a href="#installnotes">Installation Notes</a>
+ </li><li><a href="#g++">Compiling ACE with GNU g++</a>
+ </li><li><a href="#egcs">Compiling ACE with egcs</a>
</li><li><a href="#aceinstall">Building and Installing ACE</a>
</li><li><a href="#svcsinstall">Building and Installing ACE Network Services</a>
</li><li><a href="#sslinstall">Building and Installing The ACE_SSL Library</a>
</li><li><a href="#guireactor_install">Building and Using GUI Reactors Libraries</a>
- </li><li><a href="#installnotes">Installation Notes</a>
- </li><li><a href="#g++">Compiling ACE with GNU g++</a>
</li><li><a href="#minimum_build">What Do I Need to Build for TAO?</a>
</li><li><a href="#resource_requirements">System Resource Requirements</a>
</li><li><a href="#MPC">General MPC Information</a>
@@ -116,7 +112,7 @@ document</a>.</p><p>
<tr>
<th>DOC Group</th>
<td>Solaris 7, 8, 9, and 10 (many compilers excluding SunC++ 4.x);
- Windows 2000, XP (MSVC++ 6, 7.1, and 8);
+ Windows 2000, XP (MSVC++ 6, and 7.1);
many versions of Linux/Intel (many compilers), Linux/IA64 (GCC).
</td>
<td>DOC sites at <a href="http://www.dre.vanderbilt.edu/">ISIS</a>,
@@ -147,7 +143,7 @@ document</a>.</p><p>
<td>Maintains ACE on many platforms required for their ACE and
TAO service offerings. Besides the standard DOC group platforms
we also support AIX, Borland C++ Builder 6/2006, CBuilderX 1.0, MinGW,
- Cygwin, VxWorks 5.5.1 & 6.x, OpenVMS 7.3-2 & 8.2-1,
+ Cygwin, VxWorks 5.5.1 & 6.0, OpenVMS 7.3-2 & 8.2-1,
Tru64, SuSE Linux on Alpha/IA32/EM64T,
HPUX 11i v2/v2 32/64 bit on PA-RISC, and
HPUX 11i v2 on Itanium. The Intel C++ compiler is supported on
@@ -186,24 +182,19 @@ document</a>.</p><p>
</tr>
</tbody></table></p><p>
-</p><p>Although the DOC group has provided outstanding support for ACE
-over the years, ACE's success has greatly increased the amount of
-effort required to keep up with its maintenance, answer users'
-questions, and give design guidance. Riverace offers world-class
-commercial services to support ACE users. OCI, PrismTech, and Remedy
-offer similar services for TAO, allowing the DOC group's primary focus
-to shift back to their main goal: <em>research</em>. The DOC group is
-fundamentally focused on (and <a
-href="http://www.cs.wustl.edu/%7Eschmidt/resume-grants.html">funded
+</p><p>Although the DOC group has provided outstanding, world-class
+support for ACE over the years, ACE's success has greatly increased
+the amount of effort required to keep up with its maintenance, answer
+users' questions, and give design guidance. Riverace offers
+world-class commercial services to support ACE users and OCI and
+Remedy IT offer similar services for TAO, allowing the DOC group's
+primary focus to shift back to their main goal: <em>research</em>. The
+DOC group is fundamentally focused on (and <a href="http://www.cs.wustl.edu/%7Eschmidt/resume-grants.html">funded
by</a>) advanced R&amp;D projects. The group continues to be
intimately involved in ACE+TAO development and maintenance, but with
-revised priorities for maintenance. The <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-bug-process.html">bug
-fixing policies</a> followed by the DOC group are designed to strike a
-balance between their many <a
-href="http://www.cs.wustl.edu/%7Eschmidt/research.html">research
-projects</a> and their commitment to the ACE+TAO <a
-href="http://www.cs.wustl.edu/%7Eschmidt/ACE-users.html">user
+revised priorities for maintenance. The <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/ACE-bug-process.html">bug fixing policies</a> followed by
+the DOC group are designed to strike a balance between their many <a href="http://www.cs.wustl.edu/%7Eschmidt/research.html">research
+projects</a> and their commitment to the ACE+TAO <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE-users.html">user
community</a>. Naturally, we will be happy to accept well-tested
patches from the ACE+TAO user community for any platforms that aren't
supported by the DOC group, Riverace, OCI or Remedy IT. </p><p>
@@ -227,7 +218,727 @@ files can be found in <a
href="bin/MakeProjectCreator/config/global.features">
global.features</a> file.
-<p></p>
+<p></p><hr><p>
+</p><h3><a name="installnotes">Installation Notes</a></h3>
+
+<ul>
+ <li><b>Windows (Windows NT, 2000, XP, 2003, etc., and Windows '9x/ME) </b><p>
+
+ All of ACE has been ported to the Win32 API (which includes
+ Windows NT, Windows 2000, and Windows '95/98/ME) and Win64. The entire
+ release now compiles using the Microsoft Visual C++ 6.0, and
+ 7.1 (aka Visual C++ .NET 2003) compilers. ACE can be built as both
+ a static (LIB) and dynamic (DLL) library, using the Win32 installation
+ process described below.</p><p>
+
+ Please see the <a href="#NonStaticObjectManager">Non-static
+ ACE_Object_Manager</a> discussion below.</p><p>
+
+ We've also added some support for
+ <a href="#mingw">GNU g++ with MinGW</a>,
+ <a href="#cygwin">GNU g++ with Cygwin</a>,
+ <a href="#borland">Borland C++ Builder 6.0,
+ Borland C++ BuilderX, and Borland C++ Builder 2006</a>,
+ <a href="#interix">Interix (Windows Services for Unix)</a>,
+ and IBM's VisualAge C++ compiler.
+ Since we don't have these compilers we rely on the ACE+TAO users
+ community to maintain these ports. Therefore, please send email
+ to the ACE mailing list if you run into problems. </p><p>
+
+ </p></li><li><b>Windows CE</b><p>
+
+ Take a look at (<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/CE-status.txt">CE-status.txt</a>) for
+ up-to-date information about ACE on CE.</p><p>
+
+ </p></li><li><b> Solaris 2.6, 7, 8, and 9 using Sun ONE Studio 8 (C++ 5.5)
+ or Sun Studio 9 (C++ 5.6), Centerline C++ 2.x, GNU gcc 2.95 and
+ later.</b><p>
+
+ All the source code and tests should build and run without any
+ problems on Solaris 7, 8, and 9 platforms using the above
+ Sun C++ compilers.
+
+ There are likely to be build problems with older versions or
+ different patchlevels of Sun C++. Likewise, on
+ Solaris with g++ you may need to use GNU as instead of
+ /usr/ccs/bin/as, if you want -gstabs+ and -pipe support.
+
+ Thanks to Susan Liebeskind &lt;shl@janis.gtri.gatech.edu&gt;
+ for providing the following useful information:</p><p>
+
+ By default, ACE uses both the Solaris and POSIX thread
+ interface. To disable use of the Solaris thread interface, add
+ <code>-D_POSIX_PTHREAD_SEMANTICS</code> to the
+ <code>CFLAGS</code> in your
+ <code>$(ACE_ROOT)/include/makeinclude/platform_macros.GNU</code>.
+ See the Solaris Intro (3) man page for more information.</p><p>
+
+ To disable ACE thread support completely, build with the
+ <code>threads=0</code> make flag. See the <a href="#flags">Makefile Flags</a> section below for more
+ information on make flags.</p><p>
+
+ If you use g++ on Solaris 7, you might need to rebuild
+ it on a SunOS 5.7 (Solaris 7) host. Some versions of g++ and
+ egcs provide replacements for system header files. The
+ replacements on older SunOS systems are not compatible with the
+ SunOS 5.7 system headers. See <a href="http://www.cs.wustl.edu/%7Elevine/Hints.html">David Levine's
+ Hints page</a> for instructions on how to build egcs on a SunOS
+ 5.7 host, using a g++ or egcs that was built on an older SunOS
+ host. </p><p>
+
+ The Sun/C++ compilers until and including 5.4 has several
+ problems with templates and we don't test very often with them.
+ We regularly use and test with Sun/C++ 5.5.</p>
+
+ </li><li><b>AIX</b><p>
+
+ ACE has been ported to AIX 4.3 and higher using the IBM C/C++
+ Compiler 3.6.6, Visual Age C++ 5 and 6, and g++ 3.2.</p><p>
+
+ To build ACE on AIX with Visual Age C++ 5 in incremental mode
+ (i.e. with the IDE), use the
+ $ACE_ROOT/ace/ace.icc configuration along with the appropriate
+ version-specific config file (e.g. config-aix-4.3.x.h). All of the
+ version-specific config files set the version number macros and
+ include the general config-aix-4.x.h file which has support for all
+ of the OS versions and compilers supported on AIX. Using the general
+ config file is the recommended practice for g++, IBM
+ C/C++, and Visual Age C++ batch mode compilers.</p><p>
+
+ Visual Age C++ 4 has also been supported on ACE 5.1, but is no longer
+ supported. If you are still using this compiler, please use the
+ $ACE_ROOT/ace/ace-dll.icc configuration file, along with the
+ config-aix-4.3.x.h ACE config file. Beware, however, that it hasn't
+ been tested.</p><p>
+
+ The Visual Age 6.0.0.3 and 6.0.0.4 do have some bugs that makes
+ them unusable for building TAO. We have tested with 6.0.0.12 and
+ had no problems with that version.</p><p>
+
+ BTW, here's a technique from Rob Jordan &lt;<a href="mailto:jordan@hursley.ibm.com">jordan@hursley.ibm.com</a>&gt;
+ that can reduce the size of the ACE libraries by about one
+ third, and can also be applied to applications. It works by
+ optimising the sharing of template functions, which are created
+ in an "unusual" way under AIX. It also speeds up
+ compilation.</p><p>
+
+ Here's how to optimise the ACE library generation:</p><p>
+
+ Look at the <a href="ace/GNUmakefile.ACE">ace/GNUmakefile.ACE</a>
+ in <code>$ACE_ROOT/ace</code>. Create a file called
+ <code>ACE_All_Src.cpp</code>, and add a line to #include
+ each of the source files
+ listed under <code>FILES=</code> in the GNUmakefile. Create a
+ file called <code>ACE_All_Tmp.h</code>
+ and add a line to #include each of the .h files listed under
+ <code>TEMPLATE_FILES=</code> in the GNUmakefile. Now update the
+ GNUmakefile so that
+ <code>FILES=ACE_All_Src</code> and
+ <code>TEMPLATE_FILES=ACE_All_Tmp</code>.</p><p>
+
+ </p></li><li><b><a name="Linux">Linux</a></b><p>
+
+ ACE has been ported to <a href="http://www.cs.wustl.edu/%7Ecleeland/ace/">Linux</a> on
+ Intel, Alpha, and PowerPC platforms. If you use a RedHat 5.x
+ distribution, it's best to use RedHat 5.1 or later. ACE works
+ without any modifications on RedHat 5.1 and later, and on
+ Debian 2.1 on both Intel and Alpha. Use the
+ <code>platform_linux.GNU</code> and <code>ace/config-linux.h</code>
+ in your <code>platform_macros.GNU</code> and
+ <code>config.h</code> files, respectively. The same
+ files can be used on PowerPC, with LinuxPPC
+ 1999 (R5), with glibc 2.1.1.</p><p>
+
+ If you run out of memory, it's easy to add virtual memory on
+ Linux. Please see the <code>mkswap</code> man page. You'll
+ need at least 256 to 300 Mb of virtual memory (RAM + swap) to
+ compile all of ACE+TAO. The <a href="#resource_requirements">System
+ Resource Requirements section</a> has some suggestions on how
+ to reduce the memory requirement.</p><p>
+
+ The glibc 2.0 dynamic loader isn't thread safe. If you want to
+ use the Invocation API you'll have to set
+ <code>LD_BIND_NOW=true</code>. If you want to use
+ <code>dlopen</code>, you should use <code>RTLD_NOW</code>. The
+ dynamic loader in glibc 2.1 is thread safe.</p><p>
+
+ The ACE <code>Tokens_Test</code> hangs with egcs 1.1b on Linux.
+ It runs properly when built with egcs 1.0.2 and later. All other
+ ACE tests run properly with these egcs 1.0.2 and later.</p><p>
+
+ <strong>NOTE:</strong> The TAO NameService uses IP multicasting
+ by default, though it is not required. IP multicast on Linux
+ requires the following:</p><p>
+
+ </p><ul>
+ <li>Enable IP multicast in the Linux kernel. It is enabled in
+ the default RedHat 5.1 kernel. In older distributions, you
+ can enable it by rebuilding your kernel with CONFIG_IP_MULTICAST
+ enabled.<p>
+ </p></li><li>Enable IP multicast in ACE. It is enabled by default in
+ <code>ace/config-linux-common.h</code>. If you don't use
+ IP multicast, add <code>#define ACE_HAS_IP_MULTICAST 0</code>
+ to your <code>ace/config.h</code> before building ACE.<p>
+ </p></li><li>There must be a network interface that is up and supports
+ multicast. If you have linuxconf, it's easiest to use that
+ to add a network route for multicast (224.0.0.0) on one of
+ your network interfaces, such as <code>eth0</code>. If
+ you don't have or use linuxconf, try adding a multicast
+ routing table entry using something like this:<p>
+ </p><pre> <code># route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0</code>
+ </pre><p>
+ </p></li></ul>
+
+ <strong>NOTE:</strong> Be careful when installing egcs on RedHat
+ systems. If you don't remove your old gcc and libg++ RPMs, it's
+ best to install egcs in a different directory than
+ <code>/usr</code>, such as <code>/usr/local</code>, and set your
+ <code>PATH</code> and <code>LD_LIBRARY_PATH</code>
+ accordingly.</p><p>
+
+ Some of the ACE tests fail on older, pre-glibc2 Linux platforms,
+ such as RedHat 4.2. The problems are with threads and
+ thread-specific storage.</p><p>
+
+ </p></li><li><b>SCO UNIX</b><p>
+
+ ACE has been ported to SCO UNIX using the GNU g++ 2.7.2
+ compiler. Arturo Montes &lt;<a href="mailto:mitosys@colomsat.net.co">mitosys@colomsat.net.co</a>&gt;
+ maintains this code. In addition, he also maintains a version
+ of <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/FSU-threads.tar.gz">FSU pthreads</a>.</p><p>
+
+ </p></li><li><b>SGI IRIX 5.x and 6.x</b><p>
+
+ ACE used to build fine using the SGI C++ and GNU GCC compilers
+ for IRIX 5.x. It has been ported to IRIX 6.x using the SGI
+ MipsPro 7.1 C++ compiler; be aware that in IRIX 6.2 there is a
+ number of patches that have to be installed and exceptions
+ appear to fail with the O32 ABI. Please check the config files
+ for the details.</p><p>
+
+ </p></li><li><b> HP-UX 10.x and 11.x </b> <p>
+
+ HP sells 2 C++ compilers for HP-UX 10.x and 11.00:
+
+ </p><ul>
+ <li>HP C++ - this is CC, HP's cfront-based compiler. As of ACE 4.4, it
+ can be used, but some people have problems with templates.
+ Caveat emptor. It's been said that you should run version 10.24,
+ if not later. ACE hasn't been tested with this compiler since
+ the ACE 5.0 timeframe.
+
+ </li><li>HP aC++ - this is aCC, HP's new, ANSI compiler. It handles ACE
+ very well. You should use version A.01.27 (or higher) on
+ HP-UX 10.x and version A.03.37 (or higher) on HP-UX 11.
+
+ </li></ul>
+ <p>
+ On HP-UX 10.20, a patch is required to compile ACE. The exact patch
+ number depends on the platform - check with HP's patch database to
+ locate the exact patch or its successor. For 9000 700 series machines
+ it is PHKL_8693 (s700 10.20 sys/time.h fix for select(2)/C++ defects).</p><p>
+
+ Also see further notes on this platform at Riverace's
+ <a href="http://www.riverace.com/FAQ/faq.html">Frequently Asked
+ Questions</a> page.
+ </p><p>
+
+ </p></li><li><b>OSF/1 3.2 and 4.0 (a.k.a. Digital UNIX 4.0)</b> <p>
+
+ The Digital UNIX C++ 5.4 through 5.7 compilers have problems
+ with ACE's templates. They compile the lib and most of the test
+ programs, although they warn about template usage. Most tests
+ run, some dump core. If you use a 5.x version of cxx, be sure
+ to set the CXX_VER variable to CXX_5, either on your make
+ command line or in an environment variable. The ACE Makefiles
+ assume by default that the cxx version is 6.x or later.</p><p>
+
+ CXX 6.0 and 6.1 are much improved over 5.x: V6.0-020, V6.1-025,
+ and later build all of ACE cleanly. All of the tests in
+ $(ACE_ROOT)/tests run successfully with CXX 6.0 and CXX 6.1.
+ Please note that problems have been reported with some versions
+ of CXX 6.1, notably versions -021 and earlier. It's best to use
+ V6.1-022 or later.</p><p>
+
+ NOTE: if you use Digital UNIX 4.0f or later, you <strong>must</strong>
+ use <code>ace/config-tru64.h</code> instead of
+ <code>ace/config-osf1-4.0.h</code>. <code>ace/config-tru64.h</code>
+ can be used for all supported compilers on any version of
+ Digital UNIX after and include 4.0. And, with 4.0f and later when
+ using Digital CXX, you <strong>must</strong> use
+ <code>include/makeinclude/platform_tru64_cxx.GNU</code> instead of
+ <code>include/makeinclude/platform_osf1_4.0.GNU</code>.</p>
+
+ </li><li><b> FreeBSD </b><p>
+
+ FreeBSD is a fast evolving platform. However, it has the
+ advantage of having standard releases. At this moment, ACE is
+ only perodically tested against -stable (3.1R) and we rely a lot
+ on FreeBSD users' feedbacks. </p><p>
+
+ Notice that on older FreeBSD, <code>ld.so</code> only looks for
+ so libraries with <b>version number</b> appended. ACE makefiles
+ create symlinks for most shared libraries if
+ <code>versioned_so</code> is defined to 1 in
+ <code>$ACE_ROOT/ace</code> with appropriate ACE version.
+ However, this does not work for libACE.so itself so you have to
+ create it manually (If you figure out how to do this, please let
+ us know) like this: </p><p>
+
+ <code>ln -sf $ACE_ROOT/ace/libACE.so $ACE_ROOT/ace/libACE.so.4.5</code></p><p>
+
+ On newer FreeBSD (3.0 or later,) this is no longer necessary.</p><p>
+
+ </p></li><li><b>NetBSD</b><p>
+
+ Like older FreeBSD, NetBSD's <code>ld.so</code> also requires
+ versioned .so files.</p><p>
+
+ </p></li><li><b>OpenBSD</b><p>
+
+ ACE has been ported to OpenBSD 3.1 and GNU g++ 2.95.3.</p><p>
+
+ As with FreeBSD and NetBSD, OpenBSD requires versioned .so
+ files. This is currently handled by the build files and no
+ additional work is needed.</p><p>
+
+ ACE has been ported to OpenBSD with and without pthreads
+ enabled. When using pthreads, though, C++ exceptions must be
+ disabled. This is a known problem with the current release of
+ OpenBSD (see www.openbsd.org, bug #1750). ACE emulated
+ exceptions work fine.</p><p>
+
+ Compiling TAO may require the user data segment size
+ restrictions and possibly other options to be increased. This
+ is done by modifying the default user class in /etc/login.conf
+ or by adding a new class and modifying the master passwer file
+ accordingly.</p><p>
+
+ </p></li><li><b> UnixWare </b> <p>
+
+ Steve Huston &lt;<a href="mailto:shuston@riverace.com">shuston@riverace.com</a>&gt;
+ has ported ACE to work with UnixWare 2.01 and g++.</p><p>
+
+ Ganesh Pai &lt;<a href="mailto:gpai@voicetek.com">gpai@voicetek.com</a>&gt;
+ subsequently did the port for version 2.1.2, also with g++.</p><p>
+
+ Phil Mesnier &lt;<a href="mailto:mesnier_p@ociweb.com">
+ mesnier_p@ociweb.com</a>&gt; updated the port to support
+ UnixWare 7.1.0, with help from Michael Meissnitzer
+ &lt;<a href="mailto:michael.meissnitzer@siemens.at">
+ michael.meissnitzer@siemens.at</a>&gt;, Christian Klepp &lt;
+ <a href="mailto:christian.klepp@siemens.at">christian.klepp@siemens.at
+ </a>&gt; and Engelbert Staller &lt;<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/engelbert.staller@siemens.at">
+ engelbert.staller@siemens.at</a>&gt;
+ Building ACE (and TAO) on Unixware 7.1.0 requires a very specific
+ g++ build environment. In particular, you must build and install
+ g++ 2.95.2, along with binutils 2.9.1. The order (and the declaration
+ of configuration) is extremely important. Using the gcc compiler
+ provided on the Skunkware CD on a pentium system, here is the recipe
+ I used to build a working environment (as root):<br>
+</p><pre> mkdir /usr/local/newgnu
+&lt; ftp and untar binutils-2.9.1 &gt;
+&lt; ftp and untar gcc-2.95.2 &gt;
+ mkdir -p build/binutils build/gcc
+ cd build/binutils
+ ../../binutils-2.9.1/configure i386-sco-sysv4
+ gmake # takes a long time
+ gmake install # this creates /usr/local/i386-sco-sysv4/...
+ mkdir /usr/local/i486-pc-sysv5/bin
+ cd /usr/local/i486-pc-sysv5/bin
+ for a in /usr/local/i386-sco-sysv4/bin/*; do ln -s $a .; done
+ #links all the newly installed utilities
+
+ cd /usr/local/newgnu/build/gcc
+ ../../gcc-2.95.2/configure --with-gnu-as --with-gnu-ld
+ gmake bootstrap # takes a long time
+ gmake install
+ mkdir /usr/local/i586-UnixWare7.1.0-sysv5/bin
+ for a in /usr/local/i386-sco-sysv4/bin/*; do ln -s $a .; done
+</pre>
+ Once done, ACE and TAO will successfully build and link.<p>
+
+ </p></li><li><b>Chorus</b> <p>
+
+ Wei Chiang &lt;<a href="mailto:chiang@tele.nokia.fi">chiang@tele.nokia.fi</a>&gt;
+ has ported ACE to Chorus 3.1 using GNU g++ 2.7.2.</p><p>
+
+ </p></li><li><b><a name="LynxOS">LynxOS</a></b><p>
+
+ ACE builds and runs properly on LynxOS 3.0.x, 3.1.x and 4.0.0 for Intel
+ and PowerPC targets. LynxOS 2.5.x is no longer supported.
+ To build ACE on LynxOS 3.0.x you need to update GCC to
+ version 2.9-gnupro-98r2, which can be obtained from
+ <a href="ftp://ftp.lynuxworks.com/compilers/98r2-preview/">
+ ftp://ftp.lynuxworks.com/compilers/98r2-preview/</a></p><p>
+
+ If you run out of memory on LynxOS, these might help:</p><p>
+
+ </p><ul>
+ <li>Increase the limits in <code>/etc/starttab</code>,
+ then reboot system. We use these limits:
+ <pre># Data, stack, and core file limits (in Kbytes)
+80000
+16000
+102400</pre><p>
+ </p></li><li>Enable or expand virtual memory, with something like:
+ <pre># mkcontig /swap 320
+# prio 17 vmstart /swap</pre>
+ See the <code>mkcontig</code> and <code>vmstart</code>
+ man pages, and <code>/bin/rc</code>.<p>
+ </p></li></ul>
+
+ Please see the comments in the
+ <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/include/makeinclude/platform_lynxos.GNU">ACE
+ platform_lynxos.GNU file</a> for information on, and an
+ example of, tailoring for your particular platform.<p>
+
+ NOTE: if you want to use IP multicast on LynxOS, be sure to add
+ this line to your <code>/net/rc.network</code>, and reboot:</p><p>
+ </p><pre><code>
+ /bin/route add "224.0.0.0" "$my_name"
+ </code></pre>
+
+ </li><li><strong>VxWorks</strong><p>
+
+ <a href="http://www.cs.wustl.edu/%7Elevine/">David Levine</a>
+ &lt;<a href="mailto:levine@cs.wustl.edu">levine@cs.wustl.edu</a>&gt; has
+ ported ACE to VxWorks 5.2/5.3/5.3.1/5.4 with the GreenHills
+ 1.8.8/1.8.9, g++ and diab compilers that are distributed with
+ VxWorks/Tornado. It is not possible to use VxWorks 5.4
+ and earlier with ACE anymore because the compilers delivered with
+ 5.4 and earlier don't support the C++ features ACE needs.</p><p>
+
+ At this moment <a href="http://www.theaceorb.nl">Remedy IT</a> is upgrading
+ and stabilizing ACE/TAO support for Tornado 2.2/VxWorks 5.5.1.
+ Since the existing support for previous VxWorks version has been unsupported
+ and broken for some time and most (potential) users seem to have upgraded to
+ VxWorks 5.5.1 no backporting effort is done. See also <a href="#vxworks">here</a>.
+ </p><p>
+
+ Tornado 2.2/VxWorks 5.5.1 support IP multicast. That is not enabled
+ by default in ACE for VxWorks, because it depends on your
+ kernel configuration. To enable it, add
+ <code>#define ACE_HAS_IP_MULTICAST</code> to your
+ <code>ace/config.h</code>.</p><p>
+
+ NOTE: In order for the ACE Broadcast and Multicast tests to work the VxWorks kernel
+ should receive the packages it sends out locally. By default this is not supported.
+ To enable this behaviour you need to include the IFF_SIMPLEX flag for your required
+ NIC driver. See the following Windriver <a href="https://secure.windriver.com/cgi-bin/windsurf/techtips/public/viewSum.cgi?4542">SPR 4542</a>
+ for more information.</p><p>
+
+ In addition to all of the other benefits of ACE, it helps work
+ around some deficiencies with VxWorks. The problems are:</p>
+
+ <p>
+ </p><ol>
+ <li>The program entry point cannot be called "main" with g++. ACE
+ renames it to "ace_main" (configurable via ACE_MAIN) on VxWorks.
+ While this may seem trivial, it is important with legacy code.
+ ACE itself ran into this problem.<p>
+
+ </p></li><li>argc/argv isn't used with VxWorks entry points. ACE provides
+ a wrapper function that transparently converts shell command
+ line arguments to argc/argv form. See <a href="#spa">below</a>
+ for details.<p>
+
+ </p></li></ol>
+
+ Please note that ACE uses one of the spare fields in the Wind
+ River task control block, spare4, for thread- specific storage.
+ This field is specified in only one place, in ace/OS_NS_Thread.inl, so it
+ can easily be changed to one of the other spare fields, if
+ necessary.</p><p>
+
+ ACE destroys dynamically
+ allocated singletons in the ACE library. But, they may not
+ properly destroy some static objects. If you have trouble
+ running a program multiple times, it may be necessary to unload
+ the module, using unld, and reload it between runs.
+ Alternatively, you could try calling <code>cplusDtors</code> and
+ then <code>cplusCtors</code> between runs.</p><p>
+
+ </p></li><li><b>MVS OpenEdition</b> <p>
+
+ All of ACE has been ported to OpenEdition by Chuck Gehr &lt;<a href="mailto:gehr@sweng.stortek.com">gehr@sweng.stortek.com</a>&gt;.
+ The ACE library, all the tests and most of the examples and apps
+ build clean. There are still some problems that need to be
+ ironed out:</p><p>
+
+ MVS does not support the dynamic linking dl...() calls that the
+ Service Configurator uses to dynamically link services at run
+ time. As a result, all the examples and apps that use a svc.conf
+ file (for dynamically configuring service objects) do not work,
+ however, most of these apps can be built/run statically. Also,
+ the Svc_Conf_l.cpp and Svc_Conf_y.cpp files are generated using
+ flex and yacc on a ascii (not ebcdic) machine and as a result
+ they don't work very well with ebcdic svc.conf files. We should
+ be able to regenerate these files on MVS but MVS doesn't have
+ flex. This is something that needs to be done.</p><p>
+
+ Some of the tests do not execute properly. This is a minority
+ and over time the goal is to get to 100%.</p><p>
+
+ The make scheme for some of the apps still doesn't work
+ perfectly on MVS. This is mainly due to the way shared
+ libraries are handled on MVS. See <a href="#mvs">additional
+ build tips for MVS</a> for more on this.</p><p>
+
+ </p></li><li><strong>QNX Neutrino</strong><p>
+
+ ACE has been ported to <a href="http://www.qnx.com/products/os/neutrino.html">QNX Neutrino
+ 2.0</a>. We cross-compile for Neutrino on a QNX4 host using g++
+ 2.8.1, using the <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/ace/config-qnx-neutrino.h">ace/config-qnx-neutrino.h</a>
+ and <a href="include/makeinclude/platform_qnx_neutrino.GNU">include/makeinclude/platform_qnx_neutrino.GNU</a>
+ configuration files. Many of the ACE tests succeed, though some
+ fail. As the porting effort progresses, we hope to eliminate
+ these failures. If you know of fixes, please send them to
+ us.</p><p>
+ </p></li><li><strong>QNX RTP</strong><p>
+
+ ACE has been ported to <a href="http://get.qnx.com/">QNX RTP
+ </a>. We compile for QNX RTP using the GCC compiler shipped with the
+ distribution, using the <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/ace/config-qnx-rtp.h">ace/config-qnx-rtp.h</a>
+ and <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/include/makeinclude/platform_qnx_rtp_gcc.GNU">include/makeinclude/platform_qnx_rtp_gcc.GNU</a>
+ configuration files.
+ Many of the ACE tests succeed, though some
+ fail. As the porting effort progresses, we hope to eliminate
+ these failures. If you know of fixes, please send them to
+ us.</p><p>
+ <strong><blink><font color="#ff0000">WARNING:</font></blink></strong>
+ Under the current version of QNX RTP ACE fails if compiled with
+ inline=0 . </p><p>
+
+ </p></li><li><strong>PharLap TNT Embedded ToolSuite (ETS)</strong><p>
+
+ ACE has been ported to <a href="http://www.pharlap.com/">PharLap's</a> TNT Embedded
+ ToolSuite (ETS) version 9.1. The port is being tested with
+ Microsoft Visual C++ 6.</p><p> To build for PharLap, use the
+ ace/config-pharlap.h configuration file, and the instructions
+ for building on Windows. Building the ACE library is the same as
+ for regular Windows platforms, except you choose one of the PharLap
+ ETS configurations to build within Visual C++. Only static
+ library configurations are available for PharLap at this time.
+ For an example of how to build
+ binaries, see the tests directory. The tests_pharlap_msvc.lnk
+ file is a LinkLoc commands file that the ACE tests are built
+ with. It is likely that local sites may need to adjust this file
+ for their target environment.</p><p>
+
+</p></li><li><strong>Mac OS X (10.2.x)</strong><p>
+
+ </p><p>ACE builds and runs on Mac OS X 10.2.x, but the following are
+ needed to build it:</p>
+
+ <p>1. The latest version of the Apple Developer Tools
+ (December 2002)</p>
+ <p>2. The dlcompat library (obtained either through Fink or
+ SourceForge)</p>
+
+ <p>When creating $ACE_ROOT/ace/config.h for Mac OS X, you need
+ to add the following if you obtained dlcompat via Fink:</p>
+
+ <p>#define ACE_NEEDS_DL_UNDERSCORE</p>
+
+ <p>You'll also need to do:</p>
+
+ <p>setenv DYLD_LIBRARY_PATH $ACE_ROOT/ace:$ACE_ROOT/lib</p>
+ <p>setenv MACOSX_DEPLOYMENT_TARGET 10.2</p>
+
+ <p>Currently, all ACE tests pass except Process_Mutex_Test and
+ MEM_Stream_Test. Also, Mac OS X doesn't yet support *nix
+ aio_* calls, and ACE does not know anything about Mach.</p>
+
+ <p>The work to port ACE to Mac OS X was done by several people,
+ John Zorko
+ &lt;<a href="mailto:j.zorko@att.net">j.zorko@att.net</a>&gt; is
+ only one of them.</p>
+
+</li></ul>
+
+
+<hr>
+<h4><a name="g++">Compiling ACE with GNU g++</a></h4>
+
+If you use the GNU GCC g++ compiler please note the following:
+
+<ul>
+ <li>If you have problems building shared libraries with egcs 1.1 or 1.1.1
+ on SunOS 2.5 or 2.5.1 that look like this:
+ <pre> /usr/ccs/lib/libgen.a(reg_compile.o): In function `_get_vars_storage':
+ reg_compile.o(.text+0x30): relocation truncated to fit: R_SPARC_GOT13 free
+ </pre>
+ the suggested workaround is to comment out the <code>ACE_HAS_REGEX</code>
+ <code>#define</code> in <code>ace/config-sunos5.5.h</code>.
+ Or better, create an <code>ace/config.h</code> that looks like:
+ <pre> #ifndef ACE_CONFIG_H
+ // ACE_CONFIG_H is defined by the following #included header.
+
+ #include "ace/config-sunos5.5.h"
+
+ #undef ACE_HAS_REGEX
+
+ #endif /* ACE_CONFIG_H */
+ </pre>
+ We don't know what causes the link problem, though the
+ workaround solves it.<p>
+
+ </p></li><li>ACE/TAO needs g++ 2.95.x or better. Older versions are not usable anymore<p>
+
+ </p></li><li>Make sure to update your gcc <code>config.status</code>
+ file. This file is produced when installing gcc; it specifies
+ where to install the binary files that gcc uses. For example,
+ it specifies whether to use Solaris's <code>/usr/ccs/bin</code>
+ binary utils or GNU binary utils. The
+ <code>config.status</code> file is an output of the gcc
+ <code>configure</code> script; it is preferable to use the
+ <code>--prefix</code> option to <code>configure</code> instead
+ of hacking its output.<p>
+
+ </p></li><li>If you are getting weird link errors when building libACE
+ on Solaris you are probably using the GNU linker. Try using the
+ Sun linker (/usr/ccs/bin/ld) instead. Note that gcc first looks
+ for the GNU linker if it is installed along with gcc. The only
+ way to not use the GNU linker is to delete it from the
+ installation or to build your own compiler with no linker. Be
+ aware that you still need the libraries and includes of gcc.<p>
+
+ NOTE: if you do use the GNU linker, you might need to change
+ the <code>-G</code> flag to <code>-shared</code> in
+ the <code>SOFLAGS</code> definition in your
+ <code>include/makeinclude/platform_macros.GNU</code>.</p><p>
+
+ </p></li><li>Don't get too confused about contradictory statements in
+ the gcc documentation. It was written by different
+ people...<p>
+
+ </p></li><li>Make sure that the linker invoked by gcc produces code
+ that initializes static objects. Please see gcc's
+ documentation for using <code>collect2</code>.<p>
+
+</p></li></ul>
+
+
+<p></p><hr>
+<h4><a name="egcs">Compiling ACE with egcs</a></h4>
+<ul>
+ <li>ACE transparently supports egcs, for the most part. Please see
+ <a href="#g++">Compiling ACE with g++</a> in this document. And,
+ please use the appropriate g++ config and platform files for the OS on
+ which you will use egcs.<p>
+
+ </p></li><li><strong><blink><font color="#ff0000">WARNING:</font></blink></strong>
+ The default behavior of the ACE Makefiles is to enable native
+ exception support. To disable exception handling, add
+ <code>exceptions=0</code> to your <code>make</code> command line
+ invocation, or to your
+ <code>$ACE_ROOT/include/makeinclude/platform_macros.GNU</code> file.<p>
+
+ </p></li><li>egcs may have trouble linking some executables, such as the ACE
+ IOStream_Test, if its static libraries are used. Though
+ <a href="mailto:trose@bridgewatersys.com">Tim Rose</a> reports
+ that egcs 1.1.1 static libraries work just fine on Solaris 2.6
+ with patches: 105181-12, 105568-13, 105210-19, 105591-05, 105395-04,
+ and 105490-07.<p>
+
+ If you need or want to use egcs' shared libraries, build it
+ with the <code>--enable-shared</code> egcs config option. The
+ <code>--enable-shared</code> option is <strong>not</strong> an
+ egcs run-time option. Build egcs in a way similar to the
+ following example:
+ </p><pre><code>
+ $ ./configure --enable-shared
+ $ make bootstrap
+ </code></pre>
+ Be sure to set your <code>LD_LIBRARY_PATH</code> environment
+ variable, if necessary, to pick up those shared libraries.<p>
+
+ </p></li><li>On DEC Alpha, egcs through version 1.03a, at least, may fail
+ to build ACE if debugging (-g) is enabled. The fix is to
+ edit the egcs gcc/mips-file.c file, at line 976, and change
+ <code>PAGE_SIZE</code> to 8192. Then rebuild ACE. Thanks to
+ <a href="mailto:gpai@voicetek.com">Ganesh Pai</a> for this
+ information.<p>
+
+ </p></li><li>Sun OS 5.6 using egcs1.1.2/egcs 2.95 with
+ ld:Software Generation Utilities - Solaris/ELF (3.0)
+ as: WorkShop Compilers 4.X dev 18 Sep 1996<p>
+
+ You could come across weird external symbol linker errors.
+
+ Example:
+
+ </p><pre> -I/opt/ace/SunOS-1.0 -DACE_HAS_EXCEPTIONS -o Cached_Accept_Conn_Test
+ .obj/Cached_Accept_Conn_Test.o -L/opt/ace/SunOS-1.0/ace -L./ -lACE
+ -lsocket -ldl -lgen -lnsl -lposix4 -lthread
+ ld: warning: relocation error: R_SPARC_32: file
+ .obj/Cached_Accept_Conn_Test.o: symbol
+ __t21ACE_Cache_Map_Manager7Zt30ACE_Refcounted_Hash_Recyclable1Z13
+ ACE_INET_AddrZP18Client_Svc_HandlerZt23ACE_Hash_Map_Manager_Ex5Zt
+ 30ACE_Refcounted_Hash_Recyclable1Z13ACE_INET_AddrZt8ACE_Pair2ZP18
+ Client_Svc_HandlerZUiZt8ACE_Hash1Zt30...</pre>
+
+ external symbolic relocation against non-allocatable section .stab;
+ cannot be processed at runtime: relocation ignored<p>
+
+ Solution:</p><p>
+
+ Install the "binutils" package from GNU (www.gnu.org); specifically,
+ "as" and "ld".</p><p>
+
+ Conclusion:</p><p>
+
+ Perfect build stats:</p><p>
+
+ OS:
+ Kernel version: SunOS 5.6 Generic 105181-03 December 1999.</p><p>
+
+ compiler:
+ gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)</p><p>
+
+ loader:
+ GNU ld version 2.9.1 (with BFD 2.9.1)
+ Supported emulations:
+ elf32_sparc</p><p>
+
+ assembler:
+ GNU assembler version 2.9.1 (sparc-sun-solaris2.6), using
+ BFD version 2.9.1</p><p>
+
+ Thanks to <a href="mailto:johng@keck.hawii.edu">John Gathright</a> for providing this
+ information.</p><p>
+
+ </p></li><li>Compiling using the <code>-fsquangle</code> option helps to shorten long
+ symbol names and is a boon to linkers and assemblers which cant
+ grok long names.
+
+ Thanks to <a href="mailto:ssweeney@sanders.com">Skye Sweeney</a> for trying it
+ out and <a href="mailto:ossama@uci.edu">Ossama Othman</a> for discovering the
+ option with egcs.<p>
+
+ Heres a note on how to go about this (contributed by Skye
+ Sweeney):</p><p>
+
+ 1) -fsquangle the name is a combination of squash and mangle!</p><p>
+
+ 2) -fsquangle compresses the mangled names.</p><p>
+
+ 3) All libraries must be compiles with the option. You cannot simply
+ compile modules that have large names with it. This includes system
+ libraries and vendor libraries like RogueWave.</p><p>
+
+ 4) The "simple" solution is not to add the option to each makefile,
+ but rather recompile the compiler to have the option on by default.
+ This is done by editing the file `gcc/cp/decl2.c', setting
+ `flag_do_squangling = 1', then rebuilding the compiler and
+ libraries.</p><p>
+
+ 5) After many false starts and linking snafus, I can recompile my
+ ACE/TAO/RogueWave/Lex/Yacc 100 Meg application.</p><p>
+
+</p></li></ul>
+
<p></p><hr>
<h3><a name="aceinstall">Building and Installing ACE</a></h3>
@@ -320,7 +1031,7 @@ c <pre> ../configure [options]
<li><code>--enable-quantify</code> (no): Build with support for
IBM Rational Quantify.</li>
<li><code>--enable-repo</code> (no): Enable the GNU g++
- <code>-frepo</code> option. Only useful for pre-3.0 g++.</li>
+ <code>-frepo</code> option. Only useful for pre-3.0 g++ and egcs.</li>
<li><code>--enable-rtti</code> (yes): Compile with C++ run-time type
information RTTI support.</li>
<li><code>--enable-stdcpplib</code> (yes): Build with support for the
@@ -345,19 +1056,17 @@ c <pre> ../configure [options]
reports at run time.</li>
<li><code>--enable-trace</code> (no): Enable ACE execution tracing
support.</li>
- <li><code>--enable-fl-reactor</code> (no): Enable support for the
- <code>ACE_FlReactor</code> class.</li>
- <li><code>--enable-qt-reactor</code> (no): Enable support for the
- <code>ACE_QtReactor</code> class.</li>
- <li><code>--enable-tk-reactor</code> (no): Enable support for the
- <code>ACE_TkReactor</code> class.</li>
<li><code>--enable-xt-reactor</code> (no): Enable support for the
<code>ACE_XtReactor</code> class.</li>
- <li><code>--enable-gperf</code> (yes): Build the implementation of
+ <li><code>--enable-fl-reactor</code> (no): Enable support for the
+ <code>ACE_FlReactor</code> class.</li>
+ <li><code>--with-gperf</code> (yes): Build the implementation of
gperf that comes with ACE.</li>
- <li><code>--enable-qos</code> (no): Include the ACE_QoS library when
+ <li><code>--with-rmcast</code> (yes): Include the ACE_RMCast library
+ when building ACE.</li>
+ <li><code>--with-qos</code> (no): Include the ACE_QoS library when
building ACE.</li>
- <li><code>--enable-ssl</code> (yes): Include the ACE_SSL library when
+ <li><code>--with-ssl</code> (yes): Include the ACE_SSL library when
building ACE. Requires the SSL components to be available using the
compiler's and linker's default search directories.</li>
<li><code>--with-tli-device</code> (/dev/tcp): Specifies the device
@@ -546,8 +1255,8 @@ to check <a href="#win32nonic">here</a> first. <p>
<code>set ACE_ROOT=C:\ACE_wrappers</code><br>
<br>
</li><li>Set the BCBVER environment vairable to the main version of your Borland C++ compiler.
- 6 is the value for Borland C++ Builder 6, 8 the value for Borland C++ Builder 2006.
- 4 and 5 are also possible options but not supported anymore.<br>
+ Currently only 6 is supported, 4 and 5 are options but not supported anymore.
+ If BCBVER is not set we default to 6. For example:<br>
<br>
<code>set BCBVER=6</code><br>
<br>
@@ -573,11 +1282,6 @@ to check <a href="#win32nonic">here</a> first. <p>
Codeguard support. Should only be used when DEBUG is also set<br>
<code>set CODEGUARD=1</code><br>
<br>
- Set the environment variable below to build a version of ACE optimized
- for a certain CPU. For this there are special compiler flags
- (-3/-4/-5/-6), see the Borland help for more info.<br>
- <code>set CPU_FLAG=-6</code><br>
- <br>
Set the environment variable below to build a version of ACE using the
C++BuilderX preview compiler. This compiler isn't supported at this moment
but by setting this environment variable the new compiler is used and
@@ -599,8 +1303,7 @@ for use
</li></ol>
These instructions do not cover all possible build configurations. Please
-see <a href="http://www.tenermerx.com/programming/corba/tao_bcb/index.html">
-http://www.tenermerx.com/programming/corba/tao_bcb/index.html</a>
+see <a href="http://www.tenermerx.com/tao_bcb/index.html">http://www.tenermerx.com/tao_bcb/index.html</a>
for more detailed information on building and using ACE+TAO with Borland C++
Builder. <p>
@@ -962,7 +1665,7 @@ For our build we require the following packages besides the packages the
setup selects by default:
<a name="cygwinpacks">
</a></p><blockquote>
-<a name="cygwinpacks"><b><tt>gcc (version 3.3.3), cygserver, make, perl, binutils</tt></b>.
+<a name="cygwinpacks"><b><tt>gcc (version 3.3.3), cygipc, make, perl, binutils</tt></b>.
</a></blockquote>
<ol>
@@ -1956,573 +2659,6 @@ libraries.
<code>x11</code>switch is ignored for this platform.</li>
</ul>
-<hr><p></p><h3><a name="installnotes">Installation Notes</a></h3>
-
-<ul>
- <li><b>Windows (Windows NT, 2000, XP, 2003, etc., and Windows '9x/ME) </b><p>
-
- All of ACE has been ported to the Win32 API (which includes
- Windows NT, Windows 2000, and Windows '95/98/ME) and Win64. The entire
- release now compiles using the Microsoft Visual C++ 6.0, and
- 7.1 (aka Visual C++ .NET 2003) compilers. ACE can be built as both
- a static (LIB) and dynamic (DLL) library, using the Win32 installation
- process described below.</p><p>
-
- Please see the <a href="#NonStaticObjectManager">Non-static
- ACE_Object_Manager</a> discussion below.</p><p>
-
- We've also added some support for
- <a href="#mingw">GNU g++ with MinGW</a>,
- <a href="#cygwin">GNU g++ with Cygwin</a>,
- <a href="#borland">Borland C++ Builder 6.0,
- Borland C++ BuilderX, and Borland C++ Builder 2006</a>,
- <a href="#interix">Interix (Windows Services for Unix)</a>,
- and IBM's VisualAge C++ compiler.
- Since we don't have these compilers we rely on the ACE+TAO users
- community to maintain these ports. Therefore, please send email
- to the ACE mailing list if you run into problems. </p><p>
-
- </p></li><li><b>Windows CE</b><p>
-
- Take a look at (<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/docs/CE-status.txt">CE-status.txt</a>) for
- up-to-date information about ACE on CE.</p><p>
-
- </p></li><li><b> Solaris 2.6, 7, 8, and 9 using Sun ONE Studio 8 (C++ 5.5)
- or Sun Studio 9 (C++ 5.6), Centerline C++ 2.x, GNU gcc 2.95 and
- later.</b><p>
-
- All the source code and tests should build and run without any
- problems on Solaris 7, 8, and 9 platforms using the above
- Sun C++ compilers.
-
- There are likely to be build problems with older versions or
- different patchlevels of Sun C++. Likewise, on
- Solaris with g++ you may need to use GNU as instead of
- /usr/ccs/bin/as, if you want -gstabs+ and -pipe support.
-
- Thanks to Susan Liebeskind &lt;shl@janis.gtri.gatech.edu&gt;
- for providing the following useful information:</p><p>
-
- By default, ACE uses both the Solaris and POSIX thread
- interface. To disable use of the Solaris thread interface, add
- <code>-D_POSIX_PTHREAD_SEMANTICS</code> to the
- <code>CFLAGS</code> in your
- <code>$(ACE_ROOT)/include/makeinclude/platform_macros.GNU</code>.
- See the Solaris Intro (3) man page for more information.</p><p>
-
- To disable ACE thread support completely, build with the
- <code>threads=0</code> make flag. See the <a href="#flags">Makefile Flags</a> section below for more
- information on make flags.</p><p>
-
- If you use g++ on Solaris 7, you might need to rebuild
- it on a SunOS 5.7 (Solaris 7) host. Some versions of g++
- provide replacements for system header files. The
- replacements on older SunOS systems are not compatible with the
- SunOS 5.7 system headers. <P>
-
- The Sun/C++ compilers until and including 5.4 has several
- problems with templates and we don't test very often with them.
- We regularly use and test with Sun/C++ 5.5.</p>
-
- </li><li><b>AIX</b><p>
-
- ACE has been ported to AIX 4.3 and higher using the IBM C/C++
- Compiler 3.6.6, Visual Age C++ 5 and 6, and g++ 3.2.</p><p>
-
- To build ACE on AIX with Visual Age C++ 5 in incremental mode
- (i.e. with the IDE), use the
- $ACE_ROOT/ace/ace.icc configuration along with the appropriate
- version-specific config file (e.g. config-aix-4.3.x.h). All of the
- version-specific config files set the version number macros and
- include the general config-aix-4.x.h file which has support for all
- of the OS versions and compilers supported on AIX. Using the general
- config file is the recommended practice for g++, IBM
- C/C++, and Visual Age C++ batch mode compilers.</p><p>
-
- Visual Age C++ 4 has also been supported on ACE 5.1, but is no longer
- supported. If you are still using this compiler, please use the
- $ACE_ROOT/ace/ace-dll.icc configuration file, along with the
- config-aix-4.3.x.h ACE config file. Beware, however, that it hasn't
- been tested.</p><p>
-
- The Visual Age 6.0.0.3 and 6.0.0.4 do have some bugs that makes
- them unusable for building TAO. We have tested with 6.0.0.12 and
- had no problems with that version.</p><p>
-
- BTW, here's a technique from Rob Jordan &lt;<a href="mailto:jordan@hursley.ibm.com">jordan@hursley.ibm.com</a>&gt;
- that can reduce the size of the ACE libraries by about one
- third, and can also be applied to applications. It works by
- optimising the sharing of template functions, which are created
- in an "unusual" way under AIX. It also speeds up
- compilation.</p><p>
-
- Here's how to optimise the ACE library generation:</p><p>
-
- Look at the <a href="ace/GNUmakefile.ACE">ace/GNUmakefile.ACE</a>
- in <code>$ACE_ROOT/ace</code>. Create a file called
- <code>ACE_All_Src.cpp</code>, and add a line to #include
- each of the source files
- listed under <code>FILES=</code> in the GNUmakefile. Create a
- file called <code>ACE_All_Tmp.h</code>
- and add a line to #include each of the .h files listed under
- <code>TEMPLATE_FILES=</code> in the GNUmakefile. Now update the
- GNUmakefile so that
- <code>FILES=ACE_All_Src</code> and
- <code>TEMPLATE_FILES=ACE_All_Tmp</code>.</p><p>
-
- </p></li><li><b><a name="Linux">Linux</a></b><p>
-
- ACE has been ported to <a href="http://www.cs.wustl.edu/%7Ecleeland/ace/">Linux</a> on
- Intel, Alpha, and PowerPC platforms. If you use a RedHat 5.x
- distribution, it's best to use RedHat 5.1 or later. ACE works
- without any modifications on RedHat 5.1 and later, and on
- Debian 2.1 on both Intel and Alpha. Use the
- <code>platform_linux.GNU</code> and <code>ace/config-linux.h</code>
- in your <code>platform_macros.GNU</code> and
- <code>config.h</code> files, respectively. The same
- files can be used on PowerPC, with LinuxPPC
- 1999 (R5), with glibc 2.1.1.</p><p>
-
- If you run out of memory, it's easy to add virtual memory on
- Linux. Please see the <code>mkswap</code> man page. You'll
- need at least 256 to 300 Mb of virtual memory (RAM + swap) to
- compile all of ACE+TAO. The <a href="#resource_requirements">System
- Resource Requirements section</a> has some suggestions on how
- to reduce the memory requirement.</p><p>
-
- The glibc 2.0 dynamic loader isn't thread safe. If you want to
- use the Invocation API you'll have to set
- <code>LD_BIND_NOW=true</code>. If you want to use
- <code>dlopen</code>, you should use <code>RTLD_NOW</code>. The
- dynamic loader in glibc 2.1 is thread safe.</p><p>
-
- <strong>NOTE:</strong> The TAO NameService uses IP multicasting
- by default, though it is not required. IP multicast on Linux
- requires the following:</p><p>
-
- </p><ul>
- <li>Enable IP multicast in the Linux kernel. It is enabled in
- the default RedHat 5.1 kernel. In older distributions, you
- can enable it by rebuilding your kernel with CONFIG_IP_MULTICAST
- enabled.<p>
- </p></li><li>Enable IP multicast in ACE. It is enabled by default in
- <code>ace/config-linux-common.h</code>. If you don't use
- IP multicast, add <code>#define ACE_HAS_IP_MULTICAST 0</code>
- to your <code>ace/config.h</code> before building ACE.<p>
- </p></li><li>There must be a network interface that is up and supports
- multicast. If you have linuxconf, it's easiest to use that
- to add a network route for multicast (224.0.0.0) on one of
- your network interfaces, such as <code>eth0</code>. If
- you don't have or use linuxconf, try adding a multicast
- routing table entry using something like this:<p>
- </p><pre> <code># route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0</code>
- </pre><p>
- </p></li></ul>
-
- Some of the ACE tests fail on older, pre-glibc2 Linux platforms,
- such as RedHat 4.2. The problems are with threads and
- thread-specific storage.</p><p>
-
- </p></li><li><b>SCO UNIX</b><p>
-
- ACE has been ported to SCO UNIX using the GNU g++ 2.7.2
- compiler. Arturo Montes &lt;<a href="mailto:mitosys@colomsat.net.co">mitosys@colomsat.net.co</a>&gt;
- maintains this code. In addition, he also maintains a version
- of <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/FSU-threads.tar.gz">FSU pthreads</a>.</p><p>
-
- </p></li><li><b>SGI IRIX 5.x and 6.x</b><p>
-
- ACE used to build fine using the SGI C++ and GNU GCC compilers
- for IRIX 5.x. It has been ported to IRIX 6.x using the SGI
- MipsPro 7.1 C++ compiler; be aware that in IRIX 6.2 there is a
- number of patches that have to be installed and exceptions
- appear to fail with the O32 ABI. Please check the config files
- for the details.</p><p>
-
- </p></li><li><b> HP-UX 10.x and 11.x </b> <p>
-
- HP sells 2 C++ compilers for HP-UX 10.x and 11.00:
-
- </p><ul>
- <li>HP C++ - this is CC, HP's cfront-based compiler. As of ACE 4.4, it
- can be used, but some people have problems with templates.
- Caveat emptor. It's been said that you should run version 10.24,
- if not later. ACE hasn't been tested with this compiler since
- the ACE 5.0 timeframe.
-
- </li><li>HP aC++ - this is aCC, HP's new, ANSI compiler. It handles ACE
- very well. You should use version A.01.27 (or higher) on
- HP-UX 10.x and version A.03.37 (or higher) on HP-UX 11.
-
- </li></ul>
- <p>
- On HP-UX 10.20, a patch is required to compile ACE. The exact patch
- number depends on the platform - check with HP's patch database to
- locate the exact patch or its successor. For 9000 700 series machines
- it is PHKL_8693 (s700 10.20 sys/time.h fix for select(2)/C++ defects).</p><p>
-
- Also see further notes on this platform at Riverace's
- <a href="http://www.riverace.com/FAQ/faq.html">Frequently Asked
- Questions</a> page.
- </p><p>
-
- </p></li><li><b>OSF/1 3.2 and 4.0 (a.k.a. Digital UNIX 4.0)</b> <p>
-
- The Digital UNIX C++ 5.4 through 5.7 compilers have problems
- with ACE's templates. They compile the lib and most of the test
- programs, although they warn about template usage. Most tests
- run, some dump core. If you use a 5.x version of cxx, be sure
- to set the CXX_VER variable to CXX_5, either on your make
- command line or in an environment variable. The ACE Makefiles
- assume by default that the cxx version is 6.x or later.</p><p>
-
- CXX 6.0 and 6.1 are much improved over 5.x: V6.0-020, V6.1-025,
- and later build all of ACE cleanly. All of the tests in
- $(ACE_ROOT)/tests run successfully with CXX 6.0 and CXX 6.1.
- Please note that problems have been reported with some versions
- of CXX 6.1, notably versions -021 and earlier. It's best to use
- V6.1-022 or later.</p><p>
-
- NOTE: if you use Digital UNIX 4.0f or later, you <strong>must</strong>
- use <code>ace/config-tru64.h</code> instead of
- <code>ace/config-osf1-4.0.h</code>. <code>ace/config-tru64.h</code>
- can be used for all supported compilers on any version of
- Digital UNIX after and include 4.0. And, with 4.0f and later when
- using Digital CXX, you <strong>must</strong> use
- <code>include/makeinclude/platform_tru64_cxx.GNU</code> instead of
- <code>include/makeinclude/platform_osf1_4.0.GNU</code>.</p>
-
- </li><li><b> FreeBSD </b><p>
-
- FreeBSD is a fast evolving platform. However, it has the
- advantage of having standard releases. At this moment, ACE is
- only perodically tested against -stable (3.1R) and we rely a lot
- on FreeBSD users' feedbacks. </p><p>
-
- Notice that on older FreeBSD, <code>ld.so</code> only looks for
- so libraries with <b>version number</b> appended. ACE makefiles
- create symlinks for most shared libraries if
- <code>versioned_so</code> is defined to 1 in
- <code>$ACE_ROOT/ace</code> with appropriate ACE version.
- However, this does not work for libACE.so itself so you have to
- create it manually (If you figure out how to do this, please let
- us know) like this: </p><p>
-
- <code>ln -sf $ACE_ROOT/ace/libACE.so $ACE_ROOT/ace/libACE.so.4.5</code></p><p>
-
- On newer FreeBSD (3.0 or later,) this is no longer necessary.</p><p>
-
- </p></li><li><b>NetBSD</b><p>
-
- Like older FreeBSD, NetBSD's <code>ld.so</code> also requires
- versioned .so files.</p><p>
-
- </p></li><li><b>OpenBSD</b><p>
-
- ACE has been ported to OpenBSD 3.1 and GNU g++ 2.95.3.</p><p>
-
- As with FreeBSD and NetBSD, OpenBSD requires versioned .so
- files. This is currently handled by the build files and no
- additional work is needed.</p><p>
-
- ACE has been ported to OpenBSD with and without pthreads
- enabled. When using pthreads, though, C++ exceptions must be
- disabled. This is a known problem with the current release of
- OpenBSD (see www.openbsd.org, bug #1750). ACE emulated
- exceptions work fine.</p><p>
-
- Compiling TAO may require the user data segment size
- restrictions and possibly other options to be increased. This
- is done by modifying the default user class in /etc/login.conf
- or by adding a new class and modifying the master passwer file
- accordingly.</p><p>
-
- </p></li><li><b> UnixWare </b> <p>
-
- Steve Huston &lt;<a href="mailto:shuston@riverace.com">shuston@riverace.com</a>&gt;
- has ported ACE to work with UnixWare 2.01 and g++.</p><p>
-
- Ganesh Pai &lt;<a href="mailto:gpai@voicetek.com">gpai@voicetek.com</a>&gt;
- subsequently did the port for version 2.1.2, also with g++.</p><p>
-
- Phil Mesnier &lt;<a href="mailto:mesnier_p@ociweb.com">
- mesnier_p@ociweb.com</a>&gt; updated the port to support
- UnixWare 7.1.0, with help from Michael Meissnitzer
- &lt;<a href="mailto:michael.meissnitzer@siemens.at">
- michael.meissnitzer@siemens.at</a>&gt;, Christian Klepp &lt;
- <a href="mailto:christian.klepp@siemens.at">christian.klepp@siemens.at
- </a>&gt; and Engelbert Staller &lt;<a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/engelbert.staller@siemens.at">
- engelbert.staller@siemens.at</a>&gt;
- Building ACE (and TAO) on Unixware 7.1.0 requires a very specific
- g++ build environment. In particular, you must build and install
- g++ 2.95.2, along with binutils 2.9.1. The order (and the declaration
- of configuration) is extremely important. Using the gcc compiler
- provided on the Skunkware CD on a pentium system, here is the recipe
- I used to build a working environment (as root):<br>
-</p><pre> mkdir /usr/local/newgnu
-&lt; ftp and untar binutils-2.9.1 &gt;
-&lt; ftp and untar gcc-2.95.2 &gt;
- mkdir -p build/binutils build/gcc
- cd build/binutils
- ../../binutils-2.9.1/configure i386-sco-sysv4
- gmake # takes a long time
- gmake install # this creates /usr/local/i386-sco-sysv4/...
- mkdir /usr/local/i486-pc-sysv5/bin
- cd /usr/local/i486-pc-sysv5/bin
- for a in /usr/local/i386-sco-sysv4/bin/*; do ln -s $a .; done
- #links all the newly installed utilities
-
- cd /usr/local/newgnu/build/gcc
- ../../gcc-2.95.2/configure --with-gnu-as --with-gnu-ld
- gmake bootstrap # takes a long time
- gmake install
- mkdir /usr/local/i586-UnixWare7.1.0-sysv5/bin
- for a in /usr/local/i386-sco-sysv4/bin/*; do ln -s $a .; done
-</pre>
- Once done, ACE and TAO will successfully build and link.<p>
-
- </p></li><li><b>Chorus</b> <p>
-
- Wei Chiang &lt;<a href="mailto:chiang@tele.nokia.fi">chiang@tele.nokia.fi</a>&gt;
- has ported ACE to Chorus 3.1 using GNU g++ 2.7.2.</p><p>
-
- </p></li><li><b><a name="LynxOS">LynxOS</a></b><p>
-
- ACE builds and runs properly on LynxOS 3.0.x, 3.1.x and 4.0.0 for Intel
- and PowerPC targets. LynxOS 2.5.x is no longer supported.
- To build ACE on LynxOS 3.0.x you need to update GCC to
- version 2.9-gnupro-98r2, which can be obtained from
- <a href="ftp://ftp.lynuxworks.com/compilers/98r2-preview/">
- ftp://ftp.lynuxworks.com/compilers/98r2-preview/</a></p><p>
-
- If you run out of memory on LynxOS, these might help:</p><p>
-
- </p><ul>
- <li>Increase the limits in <code>/etc/starttab</code>,
- then reboot system. We use these limits:
- <pre># Data, stack, and core file limits (in Kbytes)
-80000
-16000
-102400</pre><p>
- </p></li><li>Enable or expand virtual memory, with something like:
- <pre># mkcontig /swap 320
-# prio 17 vmstart /swap</pre>
- See the <code>mkcontig</code> and <code>vmstart</code>
- man pages, and <code>/bin/rc</code>.<p>
- </p></li></ul>
-
- Please see the comments in the
- <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/include/makeinclude/platform_lynxos.GNU">ACE
- platform_lynxos.GNU file</a> for information on, and an
- example of, tailoring for your particular platform.<p>
-
- NOTE: if you want to use IP multicast on LynxOS, be sure to add
- this line to your <code>/net/rc.network</code>, and reboot:</p><p>
- </p><pre><code>
- /bin/route add "224.0.0.0" "$my_name"
- </code></pre>
-
- </li><li><strong>VxWorks</strong><p>
-
- <a href="http://www.cs.wustl.edu/%7Elevine/">David Levine</a>
- &lt;<a href="mailto:levine@cs.wustl.edu">levine@cs.wustl.edu</a>&gt; has
- ported ACE to VxWorks 5.2/5.3/5.3.1/5.4 with the GreenHills
- 1.8.8/1.8.9, g++ and diab compilers that are distributed with
- VxWorks/Tornado. It is not possible to use VxWorks 5.4
- and earlier with ACE anymore because the compilers delivered with
- 5.4 and earlier don't support the C++ features ACE needs.</p><p>
-
- At this moment <a href="http://www.theaceorb.nl">Remedy IT</a> is upgrading
- and stabilizing ACE/TAO support for Tornado 2.2/VxWorks 5.5.1.
- Since the existing support for previous VxWorks version has been unsupported
- and broken for some time and most (potential) users seem to have upgraded to
- VxWorks 5.5.1 no backporting effort is done. See also <a href="#vxworks">here</a>.
- </p><p>
-
- Tornado 2.2/VxWorks 5.5.1 support IP multicast. That is not enabled
- by default in ACE for VxWorks, because it depends on your
- kernel configuration. To enable it, add
- <code>#define ACE_HAS_IP_MULTICAST</code> to your
- <code>ace/config.h</code>.</p><p>
-
- NOTE: In order for the ACE Broadcast and Multicast tests to work the VxWorks kernel
- should receive the packages it sends out locally. By default this is not supported.
- To enable this behaviour you need to include the IFF_SIMPLEX flag for your required
- NIC driver. See the following Windriver <a href="https://secure.windriver.com/cgi-bin/windsurf/techtips/public/viewSum.cgi?4542">SPR 4542</a>
- for more information.</p><p>
-
- In addition to all of the other benefits of ACE, it helps work
- around some deficiencies with VxWorks. The problems are:</p>
-
- <p>
- </p><ol>
- <li>The program entry point cannot be called "main" with g++. ACE
- renames it to "ace_main" (configurable via ACE_MAIN) on VxWorks.
- While this may seem trivial, it is important with legacy code.
- ACE itself ran into this problem.<p>
-
- </p></li><li>argc/argv isn't used with VxWorks entry points. ACE provides
- a wrapper function that transparently converts shell command
- line arguments to argc/argv form. See <a href="#spa">below</a>
- for details.<p>
-
- </p></li></ol>
-
- Please note that ACE uses one of the spare fields in the Wind
- River task control block, spare4, for thread- specific storage.
- This field is specified in only one place, in ace/OS_NS_Thread.inl, so it
- can easily be changed to one of the other spare fields, if
- necessary.</p><p>
-
- ACE destroys dynamically
- allocated singletons in the ACE library. But, they may not
- properly destroy some static objects. If you have trouble
- running a program multiple times, it may be necessary to unload
- the module, using unld, and reload it between runs.
- Alternatively, you could try calling <code>cplusDtors</code> and
- then <code>cplusCtors</code> between runs.</p><p>
-
- </p></li><li><b>MVS OpenEdition</b> <p>
-
- All of ACE has been ported to OpenEdition by Chuck Gehr &lt;<a href="mailto:gehr@sweng.stortek.com">gehr@sweng.stortek.com</a>&gt;.
- The ACE library, all the tests and most of the examples and apps
- build clean. There are still some problems that need to be
- ironed out:</p><p>
-
- MVS does not support the dynamic linking dl...() calls that the
- Service Configurator uses to dynamically link services at run
- time. As a result, all the examples and apps that use a svc.conf
- file (for dynamically configuring service objects) do not work,
- however, most of these apps can be built/run statically. Also,
- the Svc_Conf_l.cpp and Svc_Conf_y.cpp files are generated using
- flex and yacc on a ascii (not ebcdic) machine and as a result
- they don't work very well with ebcdic svc.conf files. We should
- be able to regenerate these files on MVS but MVS doesn't have
- flex. This is something that needs to be done.</p><p>
-
- Some of the tests do not execute properly. This is a minority
- and over time the goal is to get to 100%.</p><p>
-
- The make scheme for some of the apps still doesn't work
- perfectly on MVS. This is mainly due to the way shared
- libraries are handled on MVS. See <a href="#mvs">additional
- build tips for MVS</a> for more on this.</p><p>
-
- </p></li><li><strong>QNX Neutrino</strong><p>
-
- ACE has been ported to <a href="http://www.qnx.com/products/os/neutrino.html">QNX Neutrino
- 2.0</a>. We cross-compile for Neutrino on a QNX4 host using g++
- 2.8.1, using the <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/ace/config-qnx-neutrino.h">ace/config-qnx-neutrino.h</a>
- and <a href="include/makeinclude/platform_qnx_neutrino.GNU">include/makeinclude/platform_qnx_neutrino.GNU</a>
- configuration files. Many of the ACE tests succeed, though some
- fail. As the porting effort progresses, we hope to eliminate
- these failures. If you know of fixes, please send them to
- us.</p><p>
- </p></li><li><strong>QNX RTP</strong><p>
-
- ACE has been ported to <a href="http://get.qnx.com/">QNX RTP
- </a>. We compile for QNX RTP using the GCC compiler shipped with the
- distribution, using the <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/ace/config-qnx-rtp.h">ace/config-qnx-rtp.h</a>
- and <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/include/makeinclude/platform_qnx_rtp_gcc.GNU">include/makeinclude/platform_qnx_rtp_gcc.GNU</a>
- configuration files.
- Many of the ACE tests succeed, though some
- fail. As the porting effort progresses, we hope to eliminate
- these failures. If you know of fixes, please send them to
- us.</p><p>
- <strong><blink><font color="#ff0000">WARNING:</font></blink></strong>
- Under the current version of QNX RTP ACE fails if compiled with
- inline=0 . </p><p>
-
- </p></li><li><strong>PharLap TNT Embedded ToolSuite (ETS)</strong><p>
-
- ACE has been ported to <a href="http://www.pharlap.com/">PharLap's</a> TNT Embedded
- ToolSuite (ETS) version 9.1. The port is being tested with
- Microsoft Visual C++ 6.</p><p> To build for PharLap, use the
- ace/config-pharlap.h configuration file, and the instructions
- for building on Windows. Building the ACE library is the same as
- for regular Windows platforms, except you choose one of the PharLap
- ETS configurations to build within Visual C++. Only static
- library configurations are available for PharLap at this time.
- For an example of how to build
- binaries, see the tests directory. The tests_pharlap_msvc.lnk
- file is a LinkLoc commands file that the ACE tests are built
- with. It is likely that local sites may need to adjust this file
- for their target environment.</p><p>
-
-</p></li><li><strong>Mac OS X (10.2.x)</strong><p>
-
- </p><p>ACE builds and runs on Mac OS X 10.2.x, but the following are
- needed to build it:</p>
-
- <p>1. The latest version of the Apple Developer Tools
- (December 2002)</p>
- <p>2. The dlcompat library (obtained either through Fink or
- SourceForge)</p>
-
- <p>When creating $ACE_ROOT/ace/config.h for Mac OS X, you need
- to add the following if you obtained dlcompat via Fink:</p>
-
- <p>#define ACE_NEEDS_DL_UNDERSCORE</p>
-
- <p>You'll also need to do:</p>
-
- <p>setenv DYLD_LIBRARY_PATH $ACE_ROOT/ace:$ACE_ROOT/lib</p>
- <p>setenv MACOSX_DEPLOYMENT_TARGET 10.2</p>
-
- <p>Currently, all ACE tests pass except Process_Mutex_Test and
- MEM_Stream_Test. Also, Mac OS X doesn't yet support *nix
- aio_* calls, and ACE does not know anything about Mach.</p>
-
- <p>The work to port ACE to Mac OS X was done by several people,
- John Zorko
- &lt;<a href="mailto:j.zorko@att.net">j.zorko@att.net</a>&gt; is
- only one of them.</p>
-
-</li></ul>
-
-
-<hr>
-<h4><a name="g++">Compiling ACE with GNU g++</a></h4>
-
-If you use the GNU GCC g++ compiler please note the following:
-
-<ul>
- </p></li><li>ACE/TAO needs g++ 2.95.x or better. Older versions are not usable anymore<p>
-
- </p></li><li>Make sure to update your gcc <code>config.status</code>
- file. This file is produced when installing gcc; it specifies
- where to install the binary files that gcc uses. For example,
- it specifies whether to use Solaris's <code>/usr/ccs/bin</code>
- binary utils or GNU binary utils. The
- <code>config.status</code> file is an output of the gcc
- <code>configure</code> script; it is preferable to use the
- <code>--prefix</code> option to <code>configure</code> instead
- of hacking its output.<p>
-
- </p></li><li>If you are getting weird link errors when building libACE
- on Solaris you are probably using the GNU linker. Try using the
- Sun linker (/usr/ccs/bin/ld) instead. Note that gcc first looks
- for the GNU linker if it is installed along with gcc. The only
- way to not use the GNU linker is to delete it from the
- installation or to build your own compiler with no linker. Be
- aware that you still need the libraries and includes of gcc.<p>
-
- NOTE: if you do use the GNU linker, you might need to change
- the <code>-G</code> flag to <code>-shared</code> in
- the <code>SOFLAGS</code> definition in your
- <code>include/makeinclude/platform_macros.GNU</code>.</p><p>
-
- </p></li><li>Don't get too confused about contradictory statements in
- the gcc documentation. It was written by different
- people...<p>
-
- </p></li><li>Make sure that the linker invoked by gcc produces code
- that initializes static objects. Please see gcc's
- documentation for using <code>collect2</code>.<p>
-
-</p></li></ul>
-
-
<hr><p>
</p><h3><a name="minimum_build">What Do I Need to Build for TAO?</a></h3>
Toshio Hori &lt;toshi@etl.go.jp&gt; provided these suggestions on building
@@ -2885,7 +3021,8 @@ probe Enable ACE_Timeprobes.
profile Enable profiling; see PCFLAGS and PCCFLAGS.
purify Purify all executables.
quantify Quantify all executables.
-repo Use GNU template repository (g++ with repo patches only).
+repo Use GNU template repository (g++ with repo patches and
+ egcs only).
rtti Enable run-time type identification. On some platforms,
it is enabled by default, so this is ignored.
shared_libs Build shared libraries. Ignored if static_libs_only is set.
@@ -2919,6 +3056,7 @@ show_uninit Lists all uninitialized in object files built for
current directory. Only supported for g++.
</pre>
+<hr><p>
</p><hr><p>
</p><h3><a name="power">Building from anonymous CVS</a></h3>
@@ -2970,7 +3108,7 @@ from
<EM><br> -->
<!-- hhmts start -->
-Last modified: Mon Mar 20 08:58:22 CST 2006
+Last modified: Thu Jul 21 08:33:33 CDT 2005
<!-- hhmts end -->
diff --git a/ACEXML/ChangeLog b/ACEXML/ChangeLog
index 94716b20ace..db0eb62bdc0 100644
--- a/ACEXML/ChangeLog
+++ b/ACEXML/ChangeLog
@@ -1,75 +1,3 @@
-Thu Mar 30 13:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * common/NamespaceSupport.cpp:
- Fixed value might be unitialized warnings
-
-Tue Mar 14 20:58:12 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * ACEXML/common/FileCharStream.cpp
- * ACEXML/common/HttpCharStream.cpp
- * ACEXML/common/Transcode.cpp
- * ACEXML/common/XML_Macros.h
- * ACEXML/parser/parser/Parser.cpp
- * ACEXML/parser/parser/Parser.i
- Updated these files to solve the warnings when setting up "VC level 4 warnings"
- on Windows. These warnings include "unreachable code", "assignment within
- conditional expression", "conversion from some type to another type, possible
- loss of data", "local variable may be used without having been initialized" and
- so on.
- Thanks to Lukas Gruetzmacher <gruetzmacher at ais-dresden dot de> for
- motivating the fix to these "VC level 4 warnings".
-
-Fri Feb 10 23:45:14 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * common/NamespaceSupport.cpp: Add missing template instantiations to
- match change below.
-
-Fri Feb 10 12:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * common/NamespaceSupport.cpp:
- Fixed compile error in unicode build
-
-Thu Feb 9 22:49:18 UTC 2006 Krishnakumar B <kitty@nospam.invalid.domain>
-
- * common/NamespaceSupport.h:
- * common/NamespaceSupport.cpp: Use a normal ACE_Unbounded_Stack
- instead of yet another custom stack.
-
- * parser/parser/Parser.h:
- * parser/parser/Parser.cpp:
-
- Fixed a mismatched push/pop of the namespace context due to
- popping namespace contexts without matching the end of the
- element that caused a push. This resulted in more pops that
- push and corrupting the memory. Also fixed an indirection into
- a pointer that might have been corrupt when calling
- startNamespacePrefix().
-
-Tue Jan 24 23:09:08 UTC 2006 Krishnakumar B <kitty@nospam.invalid.domain>
-
- * apps/svcconf/Svcconf.cpp:
- * apps/svcconf/Svcconf.h:
-
- Removed the overridden operator new/delete. I don't think that
- they serve any purpose, and end up hiding the default variations.
-
-Mon Jan 23 14:11:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * common/ZipCharStream.h:
- Updated include of zziplib.h to zzip/zzip.h to get rid of deprecated
- warnings
-
-Wed Jan 4 22:44:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-whitespace.
-
- Changed "add-log-time-format" to a really ugly lambda expression
- that formats changelog timestamps in UTC and works with both GNU
- Emacs and XEmacs.
-
Thu May 26 07:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
* common/XML_Util.h:
@@ -77,13 +5,13 @@ Thu May 26 07:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Tue May 24 18:39:02 2005 J.T. Conklin <jtc@acorntoolworks.com>
- * common/Makefile.am:
+ * common/Makefile.am:
- Regenerate.
+ Regenerate.
- * common/common.mpc:
+ * common/common.mpc:
- Added XML_Util.h to Header_Files section.
+ Added XML_Util.h to Header_Files section.
Tue May 24 09:18:34 2005 Justin Michel <michel_j@ociweb.com>
@@ -114,47 +42,47 @@ Mon May 23 13:02:25 2005 Justin Michel <michel_j@ociweb.com>
Fri Apr 22 21:34:19 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * parser/parser/Parser.cpp (parse_entity_decl):
+ * parser/parser/Parser.cpp (parse_entity_decl):
- Fixed "variable may be used uninitialized" warning.
+ Fixed "variable may be used uninitialized" warning.
Fri Apr 22 11:09:59 2005 J.T. Conklin <jtc@acorntoolworks.com>
- * parser/parser/Makefile.am:
- * common/Makefile.am:
+ * parser/parser/Makefile.am:
+ * common/Makefile.am:
- Regenerated.
+ Regenerated.
- * parser/parser/parser.mpc:
- * common/common.mpc:
+ * parser/parser/parser.mpc:
+ * common/common.mpc:
- Add Pkgconfig_Files section.
+ Add Pkgconfig_Files section.
Wed Apr 20 12:20:26 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * common/Attributes.h:
- * common/ContentHandler.h:
- * common/DTDHandler.h:
- * common/EntityResolver.h:
- * common/ErrorHandler.h:
- * common/Locator.h:
- * common/XMLReader.h:
+ * common/Attributes.h:
+ * common/ContentHandler.h:
+ * common/DTDHandler.h:
+ * common/EntityResolver.h:
+ * common/ErrorHandler.h:
+ * common/Locator.h:
+ * common/XMLReader.h:
- Added virtual destructors to address g++ 4.0 warnings.
+ Added virtual destructors to address g++ 4.0 warnings.
- * common/Attributes.cpp:
- * common/ContentHandler.cpp:
- * common/DTDHandler.cpp:
- * common/EntityResolver.cpp:
- * common/ErrorHandler.cpp:
- * common/Locator.cpp:
- * common/XMLReader.cpp:
+ * common/Attributes.cpp:
+ * common/ContentHandler.cpp:
+ * common/DTDHandler.cpp:
+ * common/EntityResolver.cpp:
+ * common/ErrorHandler.cpp:
+ * common/Locator.cpp:
+ * common/XMLReader.cpp:
- New files containing destructors.
+ New files containing destructors.
- * common/NamespaceSupport.cpp (getURI):
+ * common/NamespaceSupport.cpp (getURI):
- Fixed "variable may be used uninitialized" warning.
+ Fixed "variable may be used uninitialized" warning.
Mon Apr 18 14:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -166,10 +94,10 @@ Mon Apr 18 14:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Sun Feb 13 23:54:25 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- From Lothar Werzinger <lothar at xcerla dot com>
- * apps/svcconf/Svcconf_Handler.cpp:
+ From Lothar Werzinger <lothar at xcerla dot com>
+ * apps/svcconf/Svcconf_Handler.cpp:
- Enhanced error messages.
+ Enhanced error messages.
Wed Jan 5 14:08:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -184,12 +112,12 @@ Wed Jan 5 14:08:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Tue Aug 17 19:07:11 2004 J.T. Conklin <jtc@acorntoolworks.com>
- * common/NamespaceSupport.cpp:
+ * common/NamespaceSupport.cpp:
- Changed ACE_NEW_RETURN to use "NS_Node_T" instead of "struct
- NS_Node_T" --- the latter triggers a gcc 3.3 parser bug when
- used with the "new (std::nothrow)" version of ACE_NEW_RETURN.
- Fortunately, the "struct" is unnecessary.
+ Changed ACE_NEW_RETURN to use "NS_Node_T" instead of "struct
+ NS_Node_T" --- the latter triggers a gcc 3.3 parser bug when
+ used with the "new (std::nothrow)" version of ACE_NEW_RETURN.
+ Fortunately, the "struct" is unnecessary.
Sat Feb 21 23:51:25 2004 . <.@isis.vanderbilt.edu>
@@ -969,7 +897,5 @@ Wed Oct 23 17:27:14 2002 Krishnakumar B <kitty@cs.wustl.edu>
references().
Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
+add-log-time-format: current-time-string
End:
diff --git a/ACEXML/apps/svcconf/Svcconf.cpp b/ACEXML/apps/svcconf/Svcconf.cpp
index 482970b1515..3ceb602e788 100644
--- a/ACEXML/apps/svcconf/Svcconf.cpp
+++ b/ACEXML/apps/svcconf/Svcconf.cpp
@@ -46,6 +46,17 @@ ACEXML_Svcconf_Parser::~ACEXML_Svcconf_Parser ()
}
+void *
+ACEXML_Svcconf_Parser::operator new (size_t s)
+{
+ return ::new char[s];
+}
+
+void
+ACEXML_Svcconf_Parser::operator delete (void *p)
+{
+ delete[] (char*)p;
+}
int
ACEXML_Svcconf_Parser::parse_file (const ACE_TCHAR file[])
diff --git a/ACEXML/apps/svcconf/Svcconf.h b/ACEXML/apps/svcconf/Svcconf.h
index 9879776fce5..9c9d88bde37 100644
--- a/ACEXML/apps/svcconf/Svcconf.h
+++ b/ACEXML/apps/svcconf/Svcconf.h
@@ -32,6 +32,10 @@ public:
virtual int parse_string (const ACE_TCHAR str[]);
+ void * operator new (size_t bytes);
+
+ void operator delete (void *ptr);
+
protected:
ACEXML_Parser parser_;
ACEXML_Svcconf_Handler svcconf_handler_;
diff --git a/ACEXML/common/FileCharStream.cpp b/ACEXML/common/FileCharStream.cpp
index cafc0696b5c..2e3fc8abc5c 100644
--- a/ACEXML/common/FileCharStream.cpp
+++ b/ACEXML/common/FileCharStream.cpp
@@ -130,7 +130,7 @@ ACEXML_FileCharStream::close (void)
int
ACEXML_FileCharStream::getchar_i (char& ch)
{
- ch = static_cast<char> (ACE_OS::fgetc (this->infile_));
+ ch = ACE_OS::fgetc (this->infile_);
return (feof(this->infile_) ? -1 : 0);
}
@@ -166,7 +166,7 @@ ACEXML_FileCharStream::peek (void)
return this->peek_i();
#else
- ACEXML_Char ch = static_cast<ACEXML_Char> (ACE_OS::fgetc (this->infile_));
+ ACEXML_Char ch = ACE_OS::fgetc (this->infile_);
::ungetc (ch, this->infile_);
return ch;
#endif /* ACE_USES_WCHAR */
diff --git a/ACEXML/common/HttpCharStream.cpp b/ACEXML/common/HttpCharStream.cpp
index b6f5e6aa423..cc94764c191 100644
--- a/ACEXML/common/HttpCharStream.cpp
+++ b/ACEXML/common/HttpCharStream.cpp
@@ -251,7 +251,7 @@ ACEXML_HttpCharStream::get_url (size_t& len)
int
ACEXML_HttpCharStream::send_request (void)
{
- char* path = ACE::strnew (ACE_TEXT_ALWAYS_CHAR (this->url_addr_->get_path_name()));
+ char* path = ACE::strnew (ACE_TEXT_TO_CHAR_IN (this->url_addr_->get_path_name()));
ACE_Auto_Basic_Array_Ptr<char> path_ptr (path);
size_t commandsize = ACE_OS::strlen (path)
+ ACE_OS::strlen (this->url_addr_->get_host_name ())
@@ -321,7 +321,7 @@ ACEXML_HttpCharStream::determine_encoding (void)
char input[4] = {0, 0, 0, 0};
int i = 0;
for (; i < 4 && input[i] != (char)-1; ++i)
- input[i] = static_cast<char> (this->stream_->peek_char(i));
+ input[i] = this->stream_->peek_char(i);
if (i < 4)
return -1;
const ACEXML_Char* temp = ACEXML_Encoding::get_encoding (input);
@@ -382,7 +382,7 @@ ACEXML_HttpCharStream::read (ACEXML_Char *str,
return -1;
len = len * sizeof (ACEXML_Char);
char* temp = const_cast<char*> (this->stream_->recv (len));
- str = ACE_TEXT_CHAR_TO_TCHAR (temp);
+ ACE_OS::string_copy( str, temp, len );
if (str == 0)
return -1;
return static_cast<int> (len);
diff --git a/ACEXML/common/NamespaceSupport.cpp b/ACEXML/common/NamespaceSupport.cpp
index 029f1adcd16..2f99ba13495 100644
--- a/ACEXML/common/NamespaceSupport.cpp
+++ b/ACEXML/common/NamespaceSupport.cpp
@@ -15,6 +15,7 @@ static const ACEXML_Char ACEXML_XMLNS_URI_name[] = ACE_TEXT ("http://www.w3.org/
const ACEXML_Char *ACEXML_NamespaceSupport::XMLNS = ACEXML_XMLNS_URI_name;
ACEXML_Namespace_Context_Stack::ACEXML_Namespace_Context_Stack (void)
+ : head_ (0)
{
}
@@ -26,54 +27,31 @@ ACEXML_Namespace_Context_Stack::~ACEXML_Namespace_Context_Stack (void)
int
ACEXML_Namespace_Context_Stack::push (ACEXML_NS_CONTEXT *nsc)
{
- return (this->stack_.push (nsc) < 0);
+ struct NS_Node_T *temp = 0;
+ ACE_NEW_RETURN (temp, NS_Node_T, -1);
+
+ temp->item_ = nsc;
+ temp->next_ = this->head_;
+
+ this->head_ = temp;
+ return 0;
}
ACEXML_NS_CONTEXT *
ACEXML_Namespace_Context_Stack::pop (void)
{
- if (this->stack_.size() <= 0)
- return 0;
-
- ACEXML_NS_CONTEXT* temp = 0;
- int retval = this->stack_.pop (temp);
- if (retval != 0)
+ if (this->head_ != 0)
{
- ACE_ERROR ((LM_ERROR, "Unable to pop Namespace context from stack\n"));
- return 0;
- }
- return temp;
-}
+ struct NS_Node_T *temp = this->head_;
+ this->head_ = temp->next_;
-int
-ACEXML_NamespaceSupport::popContext (void)
-{
- delete this->effective_context_;
-
- if ((this->effective_context_ = this->ns_stack_.pop ()) == 0)
- return -1;
+ ACEXML_NS_CONTEXT* retv = temp->item_;
+ delete temp;
+ return retv;
+ }
return 0;
}
-int
-ACEXML_NamespaceSupport::pushContext (void)
-{
- ACEXML_NS_CONTEXT *temp = this->effective_context_;
- ACE_NEW_RETURN (this->effective_context_,
- ACEXML_NS_CONTEXT (),
- -1);
-
- // @@ Copy everything from the old context to the new one.
- ACEXML_NS_CONTEXT_ENTRY *entry = 0;
-
- for (ACEXML_NS_CONTEXT_ITER iter (*temp);
- iter.next (entry) != 0;
- iter.advance ())
- this->effective_context_->bind (entry->ext_id_,
- entry->int_id_);
- this->ns_stack_.push (temp);
- return 0;
-}
ACEXML_NamespaceSupport::ACEXML_NamespaceSupport (void)
: ns_stack_ (),
@@ -118,7 +96,7 @@ ACEXML_NamespaceSupport::declarePrefix (const ACEXML_Char *prefix,
int
ACEXML_NamespaceSupport::getDeclaredPrefixes (ACEXML_STR_LIST &prefixes) const
{
- ACEXML_NS_CONTEXT_ENTRY *entry = 0;
+ ACEXML_NS_CONTEXT_ENTRY *entry;
// The prefix for default namespace (empty string) is included in
// the return list.
@@ -136,7 +114,7 @@ ACEXML_NamespaceSupport::getPrefix (const ACEXML_Char *uri) const
if (!uri || *uri == 0)
return 0;
- ACEXML_NS_CONTEXT_ENTRY *entry = 0;
+ ACEXML_NS_CONTEXT_ENTRY *entry;
for (ACEXML_NS_CONTEXT_ITER iter (*this->effective_context_);
iter.next (entry) != 0;
@@ -150,7 +128,7 @@ ACEXML_NamespaceSupport::getPrefix (const ACEXML_Char *uri) const
int
ACEXML_NamespaceSupport::getPrefixes (ACEXML_STR_LIST &prefixes) const
{
- ACEXML_NS_CONTEXT_ENTRY *entry = 0;
+ ACEXML_NS_CONTEXT_ENTRY *entry;
// The prefix for default namespace (empty string) is not included
// in the return list.
@@ -168,7 +146,7 @@ ACEXML_NamespaceSupport::getPrefixes (const ACEXML_Char *uri,
if (!uri)
return -1;
- ACEXML_NS_CONTEXT_ENTRY *entry = 0;
+ ACEXML_NS_CONTEXT_ENTRY *entry;
for (ACEXML_NS_CONTEXT_ITER iter (*this->effective_context_);
iter.next (entry) != 0;
@@ -197,6 +175,37 @@ ACEXML_NamespaceSupport::getURI (const ACEXML_Char *prefix) const
}
int
+ACEXML_NamespaceSupport::popContext (void)
+{
+ delete this->effective_context_;
+
+ if ((this->effective_context_ = this->ns_stack_.pop ()) == 0)
+ return -1;
+ return 0;
+}
+
+int
+ACEXML_NamespaceSupport::pushContext (void)
+{
+ ACEXML_NS_CONTEXT *temp = this->effective_context_;
+ ACE_NEW_RETURN (this->effective_context_,
+ ACEXML_NS_CONTEXT (),
+ -1);
+
+ // @@ Copy everything from the old context to the new one.
+ ACEXML_NS_CONTEXT_ENTRY *entry;
+
+ for (ACEXML_NS_CONTEXT_ITER iter (*temp);
+ iter.next (entry) != 0;
+ iter.advance ())
+ this->effective_context_->bind (entry->ext_id_,
+ entry->int_id_);
+ this->ns_stack_.push (temp);
+ return 0;
+}
+
+
+int
ACEXML_NamespaceSupport::processName (const ACEXML_Char *qName,
const ACEXML_Char *&uri,
const ACEXML_Char *&name,
@@ -211,7 +220,7 @@ ACEXML_NamespaceSupport::processName (const ACEXML_Char *qName,
break;
}
- ACEXML_String prefix (ACE_TEXT(""),0,0);
+ ACEXML_String prefix;
if (len == -1)
name = qName;
else
@@ -254,8 +263,6 @@ template class ACE_Hash_Map_Reverse_Iterator_Ex<ACEXML_String, ACEXML_String, AC
template class ACE_Unbounded_Queue<const ACEXML_Char *>;
template class ACE_Unbounded_Queue_Iterator<const ACEXML_Char *>;
template class ACE_Node<const ACEXML_Char *>;
-template class ACE_Unbounded_Stack<ACEXML_NS_CONTEXT*>;
-template class ACE_Node<ACEXML_NS_CONTEXT*>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Hash_Map_Entry<ACEXML_String, ACEXML_String>
#pragma instantiate ACE_Hash_Map_Manager_Ex<ACEXML_String, ACEXML_String, ACE_Hash<ACEXML_String>, ACE_Equal_To<ACEXML_String>, ACE_Null_Mutex>
@@ -265,6 +272,4 @@ template class ACE_Node<ACEXML_NS_CONTEXT*>;
#pragma instantiate ACE_Unbounded_Queue<const ACEXML_Char *>
#pragma instantiate ACE_Unbounded_Queue_Iterator<const ACEXML_Char *>
#pragma instantiate ACE_Node<const ACEXML_Char *>
-#pragma instantiate ACE_Unbounded_Stack<ACEXML_NS_CONTEXT*>
-#pragma instantiate ACE_Node<ACEXML_NS_CONTEXT*>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/ACEXML/common/NamespaceSupport.h b/ACEXML/common/NamespaceSupport.h
index d81f9303d70..4299b57ddcf 100644
--- a/ACEXML/common/NamespaceSupport.h
+++ b/ACEXML/common/NamespaceSupport.h
@@ -76,7 +76,13 @@ public:
private:
/// Internal stack structure to hold namespace context.
- ACE_Unbounded_Stack<ACEXML_NS_CONTEXT*> stack_;
+ struct NS_Node_T {
+ ACEXML_NS_CONTEXT *item_;
+ struct NS_Node_T *next_;
+ };
+
+ /// Anchor point for head of stack.
+ NS_Node_T *head_;
};
/**
diff --git a/ACEXML/common/Transcode.cpp b/ACEXML/common/Transcode.cpp
index f94d93bba32..e43a407d2e3 100644
--- a/ACEXML/common/Transcode.cpp
+++ b/ACEXML/common/Transcode.cpp
@@ -26,8 +26,8 @@ ACEXML_Transcoder::utf162utf8 (ACEXML_UTF16 src,
if (len < 2)
return ACEXML_DESTINATION_TOO_SHORT;
- *dst = 0xc0 | (static_cast<ACEXML_UTF8> (src) / 0x40);
- *(dst+1) = 0x80 | (static_cast<ACEXML_UTF8> (src) % 0x40);
+ *dst = 0xc0 | (src / 0x40);
+ *(dst+1) = 0x80 | (src % 0x40);
return 2;
}
else
@@ -39,12 +39,13 @@ ACEXML_Transcoder::utf162utf8 (ACEXML_UTF16 src,
if (src >= 0xD800 && src < 0xE000)
return ACEXML_IS_SURROGATE;
- *dst = 0xe0 | (static_cast<ACEXML_UTF8> (src) / 0x1000);
- *(dst+1) = 0x80 | ((static_cast<ACEXML_UTF8> (src) % 0x1000) / 0x40);
- *(dst+2) = 0x80 | (static_cast<ACEXML_UTF8> (src) % 0x40);
+ *dst = 0xe0 | (src / 0x1000);
+ *(dst+1) = 0x80 | ((src % 0x1000) / 0x40);
+ *(dst+2) = 0x80 | (src % 0x40);
return 3;
}
-}
+ ACE_NOTREACHED (return ACEXML_NON_UNICODE;)
+ }
int
ACEXML_Transcoder::ucs42utf8 (ACEXML_UCS4 src,
@@ -66,10 +67,10 @@ ACEXML_Transcoder::ucs42utf8 (ACEXML_UCS4 src,
if (dst == 0)
return ACEXML_INVALID_ARGS;
- *dst = 0xf0 | (static_cast<ACEXML_UTF8> (src / 0x40000));
- *(dst+1) = 0x80 | ((static_cast<ACEXML_UTF8> (src % 0x40000)) / 0x1000);
- *(dst+2) = 0x80 | ((static_cast<ACEXML_UTF8> (src % 0x1000)) / 0x40);
- *(dst+3) = 0x80 | (static_cast<ACEXML_UTF8> (src % 0x40));
+ *dst = 0xf0 | (src / 0x40000);
+ *(dst+1) = 0x80 | ((src % 0x40000) / 0x1000);
+ *(dst+2) = 0x80 | ((src % 0x1000) / 0x40);
+ *(dst+3) = 0x80 | (src % 0x40);
return 4;
}
return ACEXML_NON_UNICODE;
@@ -101,8 +102,8 @@ ACEXML_Transcoder::ucs42utf16 (ACEXML_UCS4 src,
if (len < 2)
return ACEXML_DESTINATION_TOO_SHORT;
- *dst = 0xD800 | (static_cast<ACEXML_UTF16> (src) / 0x400);
- *(dst+1) = 0xDC00 | (static_cast<ACEXML_UTF16> (src) % 0x400);
+ *dst = 0xD800 | (src / 0x400);
+ *(dst+1) = 0xDC00 | (src % 0x400);
return 2;
}
@@ -124,8 +125,8 @@ ACEXML_Transcoder::surrogate2utf8 (ACEXML_UTF16 high,
return ACEXML_INVALID_ARGS;
ACEXML_UCS4 src = (high - 0xD800) * 0x400 + (low - 0xDC00) + 0x10000;
- *dst = static_cast<ACEXML_UTF8> (0xD800 | (src / 0x400));
- *(dst+1) = static_cast<ACEXML_UTF8> (0xDC00 | (src % 0x400));
+ *dst = 0xD800 | (src / 0x400);
+ *(dst+1) = 0xDC00 | (src % 0x400);
return 2;
}
diff --git a/ACEXML/common/URL_Addr.cpp b/ACEXML/common/URL_Addr.cpp
index c423fbe7b5a..b157424d077 100644
--- a/ACEXML/common/URL_Addr.cpp
+++ b/ACEXML/common/URL_Addr.cpp
@@ -33,7 +33,7 @@ ACEXML_URL_Addr::addr_to_string (ACEXML_Char *s,
else
{
ACE_OS::sprintf (s, ACE_TEXT ("%s:%d/%s"),
- ACE_TEXT_CHAR_TO_TCHAR (ipaddr_format == 0
+ ACE_TEXT_TO_TCHAR_IN (ipaddr_format == 0
? this->get_host_name ()
: this->get_host_addr ()),
this->get_port_number (),
@@ -55,7 +55,7 @@ ACEXML_URL_Addr::addr_to_string (int ipaddr_format)
}
ACE_OS::sprintf (this->addr_string_,
ACE_TEXT ("%s:%d/%s"),
- ACE_TEXT_CHAR_TO_TCHAR (ipaddr_format == 0
+ ACE_TEXT_TO_TCHAR_IN (ipaddr_format == 0
? this->get_host_name ()
: this->get_host_addr ()),
this->get_port_number (),
@@ -67,7 +67,7 @@ ACEXML_URL_Addr::addr_to_string (int ipaddr_format)
int
ACEXML_URL_Addr::string_to_addr (const char* s)
{
- return this->string_to_addr (ACE_TEXT_CHAR_TO_TCHAR (s));
+ return this->string_to_addr (ACE_TEXT_TO_TCHAR_IN (s));
}
#endif /* ACE_USES_WCHAR */
diff --git a/ACEXML/common/XML_Macros.h b/ACEXML/common/XML_Macros.h
index 50ec6857b3a..028bc590395 100644
--- a/ACEXML/common/XML_Macros.h
+++ b/ACEXML/common/XML_Macros.h
@@ -88,12 +88,12 @@
throw EXCEPTION
// Throwing an exception when the function reqires a return value.
-# if defined (__HP_aCC)
+# if defined (WIN32) || defined (__HP_aCC)
# define ACEXML_THROW_RETURN(EXCEPTION, RETV) \
do \
{ \
throw EXCEPTION; \
- return RETV; \
+ return RETV; \
} while (0)
# else /* WIN32 */
# define ACEXML_THROW_RETURN(EXCEPTION,RETV) \
diff --git a/ACEXML/common/XML_Types.h b/ACEXML/common/XML_Types.h
index 5a55d6b7754..ed8f170e290 100644
--- a/ACEXML/common/XML_Types.h
+++ b/ACEXML/common/XML_Types.h
@@ -27,17 +27,17 @@
#include "ace/SString.h"
#include "ace/Functor_String.h"
-# if defined (ACE_HAS_WCHAR) && (ACE_SIZEOF_WCHAR == 2)
+# if (ACE_SIZEOF_WCHAR == 2)
typedef wchar_t ACEXML_UTF16;
# else
typedef ACE_USHORT16 ACEXML_UTF16;
-# endif /* ACE_HAS_WCHAR && ACE_SIZEOF_WCHAR == 2 */
+# endif /* ACE_SIZEOF_WCHAR == 2 */
-# if defined (ACE_HAS_WCHAR) && (ACE_SIZEOF_WCHAR == 4)
+# if (ACE_SIZEOF_WCHAR == 4)
typedef wchar_t ACEXML_UCS4;
# else
typedef ACE_UINT32 ACEXML_UCS4;
-# endif /* ACE_HAS_WCHAR && ACE_SIZEOF_WCHAR == 4 */
+# endif /* ACE_SIZEOF_WCHAR == 4 */
typedef char ACEXML_UTF8;
diff --git a/ACEXML/common/ZipCharStream.h b/ACEXML/common/ZipCharStream.h
index 2c3ee5fb775..e65d7f640b6 100644
--- a/ACEXML/common/ZipCharStream.h
+++ b/ACEXML/common/ZipCharStream.h
@@ -24,15 +24,15 @@
#include "ACEXML/common/CharStream.h"
#include "ACEXML/common/Encoding.h"
-#include "zzip/zzip.h"
+#include "zziplib.h"
-// Ugly wart to get aroung a macro version of read defined in zzip.h. Evil...
+// Ugly wart to get aroung a macro version of read defined in zziplib.h. Evil...
#ifdef read
#undef read
#endif
/**
- * @class ACEXML_ZipCharStream
+ * @class ACEXML_ZipCharStream ZipCharStream.h "ACEXML/common/ZipCharStream.h"
*
* An implementation of ACEXML_CharStream for reading input from a ZIP archive.
*/
diff --git a/ACEXML/common/common.mpc b/ACEXML/common/common.mpc
index bd496a82123..9702a48220a 100644
--- a/ACEXML/common/common.mpc
+++ b/ACEXML/common/common.mpc
@@ -2,7 +2,6 @@
// $Id$
project(ACEXML): acelib, codecs, core {
- avoids += ace_for_tao
sharedname = ACEXML
dynamicflags += ACEXML_BUILD_DLL
diff --git a/ACEXML/examples/SAXPrint/main.cpp b/ACEXML/examples/SAXPrint/main.cpp
index 333ba361eee..effe044e5a9 100644
--- a/ACEXML/examples/SAXPrint/main.cpp
+++ b/ACEXML/examples/SAXPrint/main.cpp
@@ -37,7 +37,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
int zip = 0;
ACEXML_Char* url = 0;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("sf:lu:z"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("sf:lu:z"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/ACEXML/parser/parser/Parser.cpp b/ACEXML/parser/parser/Parser.cpp
index 6573f019b17..5989bd14de9 100644
--- a/ACEXML/parser/parser/Parser.cpp
+++ b/ACEXML/parser/parser/Parser.cpp
@@ -868,7 +868,7 @@ ACEXML_Parser::parse_element (int is_root ACEXML_ENV_ARG_DECL)
this->xml_namespace_.processName(startname, ns_uri,
ns_lname, 0);
this->prefix_mapping (this->xml_namespace_.getPrefix(ns_uri),
- ns_uri, 1
+ ns_uri, ns_lname, 1
ACEXML_ENV_ARG_PARAMETER);
ACEXML_CHECK;
this->content_handler_->startElement(ns_uri, ns_lname,
@@ -879,7 +879,7 @@ ACEXML_Parser::parse_element (int is_root ACEXML_ENV_ARG_DECL)
ACEXML_ENV_ARG_PARAMETER);
ACEXML_CHECK;
this->prefix_mapping (this->xml_namespace_.getPrefix(ns_uri),
- ns_uri, 0
+ ns_uri, ns_lname, 0
ACEXML_ENV_ARG_PARAMETER);
ACEXML_CHECK;
if (ns_flag)
@@ -892,7 +892,7 @@ ACEXML_Parser::parse_element (int is_root ACEXML_ENV_ARG_DECL)
this->xml_namespace_.processName (startname, ns_uri,
ns_lname, 0);
this->prefix_mapping (this->xml_namespace_.getPrefix(ns_uri),
- ns_uri, 1
+ ns_uri, ns_lname, 1
ACEXML_ENV_ARG_PARAMETER);
ACEXML_CHECK;
this->content_handler_->startElement(ns_uri, ns_lname, startname,
@@ -982,15 +982,15 @@ ACEXML_Parser::parse_element (int is_root ACEXML_ENV_ARG_DECL)
break;
}
}
- if (this->parse_content (startname, ns_uri, ns_lname, ns_flag
+ if (this->parse_content (startname, ns_uri, ns_lname
ACEXML_ENV_ARG_PARAMETER) != 0)
return;
}
int
ACEXML_Parser::parse_content (const ACEXML_Char* startname,
- const ACEXML_Char*& ns_uri,
- const ACEXML_Char*& ns_lname, int ns_flag ACEXML_ENV_ARG_DECL)
+ const ACEXML_Char* ns_uri,
+ const ACEXML_Char* ns_lname ACEXML_ENV_ARG_DECL)
ACE_THROW_SPEC ((ACEXML_SAXException))
{
ACEXML_Char *cdata;
@@ -1076,17 +1076,14 @@ ACEXML_Parser::parse_content (const ACEXML_Char* startname,
ACEXML_ENV_ARG_PARAMETER);
ACEXML_CHECK_RETURN (-1);
this->prefix_mapping (this->xml_namespace_.getPrefix(ns_uri),
- ns_uri, 0
+ ns_uri, ns_lname, 0
ACEXML_ENV_ARG_PARAMETER);
ACEXML_CHECK_RETURN (-1);
- if (this->namespaces_ && ns_flag)
- {
if (this->nested_namespace_ >= 1)
{
this->xml_namespace_.popContext ();
this->nested_namespace_--;
}
- }
return 0;
}
default: // a new nested element?
@@ -2903,12 +2900,13 @@ ACEXML_Parser::parse_sddecl (ACEXML_Char*& str)
void
ACEXML_Parser::prefix_mapping (const ACEXML_Char* prefix,
const ACEXML_Char* uri,
+ const ACEXML_Char* name,
int start ACEXML_ENV_ARG_DECL)
ACE_THROW_SPEC ((ACEXML_SAXException))
{
if (this->namespaces_)
{
- const ACEXML_Char* temp = (prefix == 0) ? empty_string : prefix;
+ const ACEXML_Char* temp = (name == 0) ? empty_string : prefix;
if (start) {
this->content_handler_->startPrefixMapping (temp, uri
ACEXML_ENV_ARG_PARAMETER);
@@ -3161,7 +3159,7 @@ void
ACEXML_Parser::parse_encoding_decl (ACEXML_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((ACEXML_SAXException))
{
- ACEXML_Char* astring = 0;
+ ACEXML_Char* astring;
if ((this->parse_token (ACE_TEXT("ncoding")) < 0)
|| this->skip_equal () != 0
|| this->parse_encname (astring) != 0)
diff --git a/ACEXML/parser/parser/Parser.h b/ACEXML/parser/parser/Parser.h
index 0fbbcb31fc6..69fc7ec21a9 100644
--- a/ACEXML/parser/parser/Parser.h
+++ b/ACEXML/parser/parser/Parser.h
@@ -215,8 +215,8 @@ protected:
* Parse a content declaration.
*
*/
- int parse_content (const ACEXML_Char* startname, const ACEXML_Char*& ns_uri,
- const ACEXML_Char*& ns_lname, int ns_flag
+ int parse_content (const ACEXML_Char* startname, const ACEXML_Char* ns_uri,
+ const ACEXML_Char* ns_lname
ACEXML_ENV_ARG_DECL)
ACE_THROW_SPEC ((ACEXML_SAXException));
@@ -692,8 +692,9 @@ private:
* @param start 1 => startPrefixMapping 0 => endPrefixMapping
*/
void prefix_mapping (const ACEXML_Char* prefix,
- const ACEXML_Char* uri,
- int start ACEXML_ENV_ARG_DECL)
+ const ACEXML_Char* uri,
+ const ACEXML_Char* name,
+ int start ACEXML_ENV_ARG_DECL)
ACE_THROW_SPEC ((ACEXML_SAXException));
/**
* Parse a keyword.
diff --git a/ACEXML/parser/parser/Parser.i b/ACEXML/parser/parser/Parser.i
index 97896a68388..0857aa37835 100644
--- a/ACEXML/parser/parser/Parser.i
+++ b/ACEXML/parser/parser/Parser.i
@@ -238,7 +238,7 @@ ACEXML_Parser::peek (void)
ACEXML_Char ch = 0;
const ACEXML_InputSource* ip = this->current_->getInputSource();
ACEXML_CharStream* instream = ip->getCharStream();
- ch = static_cast<ACEXML_Char> (instream->peek ());
+ ch = instream->peek ();
return (ch > 0 ? ch : 0);
}
diff --git a/ACEXML/parser/parser/parser.mpc b/ACEXML/parser/parser/parser.mpc
index 9732f03fe76..859882e838d 100644
--- a/ACEXML/parser/parser/parser.mpc
+++ b/ACEXML/parser/parser/parser.mpc
@@ -2,7 +2,6 @@
// $Id$
project(ACEXML_Parser): acelib, core {
- avoids += ace_for_tao
sharedname = ACEXML_Parser
after += ACEXML
libs += ACEXML
diff --git a/ASNMP/ChangeLog b/ASNMP/ChangeLog
index a2fc9832377..5d6e2c4cff4 100644
--- a/ASNMP/ChangeLog
+++ b/ASNMP/ChangeLog
@@ -1,30 +1,3 @@
-Wed Mar 8 10:46:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * asnmp/*.h:
- Converted to doxygen style of documentation
-
-Wed Jan 4 22:47:13 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-whitespace.
-
- Added "Local Variables" section defining "add-log-time-format"
- to a really ugly lambda expression that formats changelog
- timestamps in UTC and works with both GNU Emacs and XEmacs.
-
-Fri Dec 30 11:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * asnmp/transaction.cpp:
- Updated because the ACE_Time_Value constructors are now explicit
-
-Fri Dec 23 09:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * asnmp/address.{h,cpp}:
- Added LEN as postfix for HASH0, HASH1 and HASH2. VxWorks 6.1 PPC
- defines HASH1 and HASH2
-
Wed Oct 5 10:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
* asnmp/asn1.cpp:
@@ -33,70 +6,70 @@ Wed Oct 5 10:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Fri Jul 15 10:12:19 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
- * Removed the asnmp.mwc file so that it can be regenerated by MPC
- automatically. Thanks to Sam Mesh <sam.mesh@gmail.com> for
- reporting this. This fixes bugid 2190.
+ * Removed the asnmp.mwc file so that it can be regenerated by MPC
+ automatically. Thanks to Sam Mesh <sam.mesh@gmail.com> for
+ reporting this. This fixes bugid 2190.
Sun Oct 3 20:12:43 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
- * asnmp/oid.cpp:
+ * asnmp/oid.cpp:
- Fixed a double deletion problem reported by Shlomi Yaakobovich.
+ Fixed a double deletion problem reported by Shlomi Yaakobovich.
Thu Sep 30 10:54:39 2004 Steve Huston <shuston@riverace.com>
- * examples/get/get.cpp:
- * examples/get/get_async.cpp:
- * examples/next/next.cpp:
- * examples/set/set.cpp:
- * examples/trap/trap.cpp:
- * examples/walk/walk.cpp: Added #include "ace/Argv_Type_Converter.h".
+ * examples/get/get.cpp:
+ * examples/get/get_async.cpp:
+ * examples/next/next.cpp:
+ * examples/set/set.cpp:
+ * examples/trap/trap.cpp:
+ * examples/walk/walk.cpp: Added #include "ace/Argv_Type_Converter.h".
Wed Sep 29 15:33:29 2004 Steve Huston <shuston@riverace.com>
- * asnmp/sagent.cpp:
- * agent/snmp_agent.cpp:
- * examples/get/get.cpp:
- * examples/get/get_async.cpp:
- * examples/next/next.cpp:
- * examples/set/set.cpp:
- * examples/trap/trap.cpp:
- * examples/walk/walk.cpp:
- * tests/test_config.h:
- * tests/Address_Test.cpp:
- * tests/Counter64_Test.cpp:
- * tests/Counter_Test.cpp:
- * tests/Gauge_Test.cpp:
- * tests/Integer_Test.cpp:
- * tests/Octet_Test.cpp:
- * tests/Oid_Test.cpp:
- * tests/Target_Test.cpp:
- * tests/Varbind_Test.cpp: Adjustments to build with wide-char.
+ * asnmp/sagent.cpp:
+ * agent/snmp_agent.cpp:
+ * examples/get/get.cpp:
+ * examples/get/get_async.cpp:
+ * examples/next/next.cpp:
+ * examples/set/set.cpp:
+ * examples/trap/trap.cpp:
+ * examples/walk/walk.cpp:
+ * tests/test_config.h:
+ * tests/Address_Test.cpp:
+ * tests/Counter64_Test.cpp:
+ * tests/Counter_Test.cpp:
+ * tests/Gauge_Test.cpp:
+ * tests/Integer_Test.cpp:
+ * tests/Octet_Test.cpp:
+ * tests/Oid_Test.cpp:
+ * tests/Target_Test.cpp:
+ * tests/Varbind_Test.cpp: Adjustments to build with wide-char.
Fri Aug 6 08:14:12 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
- * asnmp/transaction.{h,cpp}: Added a get_handle() call to
- session. Thanks to Geo Sebastian <geosebastian@onmobile.com>
- for this fix.
+ * asnmp/transaction.{h,cpp}: Added a get_handle() call to
+ session. Thanks to Geo Sebastian <geosebastian@onmobile.com>
+ for this fix.
Fri May 7 14:42:22 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * tests/Counter_Test.cpp (TestCounter):
- * tests/Gauge_Test.cpp (TestGuage):
- * tests/Integer_Test.cpp (TestUnsignedInteger32):
+ * tests/Counter_Test.cpp (TestCounter):
+ * tests/Gauge_Test.cpp (TestGuage):
+ * tests/Integer_Test.cpp (TestUnsignedInteger32):
- More "comparison between signed and unsigned integer"
- warning fixes.
+ More "comparison between signed and unsigned integer"
+ warning fixes.
Thu May 6 11:03:26 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * tests/Counter_Test.cpp (TestCounter):
- * tests/Counter64_Test.cpp (TestCounter64):
- * tests/Gauge_Test.cpp (TestGuage):
- * tests/Integer_Test.cpp (TestUnsignedInteger32):
+ * tests/Counter_Test.cpp (TestCounter):
+ * tests/Counter64_Test.cpp (TestCounter64):
+ * tests/Gauge_Test.cpp (TestGuage):
+ * tests/Integer_Test.cpp (TestUnsignedInteger32):
- Fixed "comparison between signed and unsigned integer"
- warnings.
+ Fixed "comparison between signed and unsigned integer"
+ warnings.
Mon Apr 26 18:37:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -119,60 +92,60 @@ Thu Apr 22 20:45:27 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
* tests/Octet_Test.cpp:
* tests/Oid_Test.cpp:
- Changed all return types for equality, relational and logical
- operators to "bool", as is the norm for modern C++.
+ Changed all return types for equality, relational and logical
+ operators to "bool", as is the norm for modern C++.
Fri Apr 16 16:53:20 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * tests/Gauge_Test.cpp (TestGuage):
- * tests/Integer_Test.cpp (TestInteger32, TestUnsignedInteger32):
+ * tests/Gauge_Test.cpp (TestGuage):
+ * tests/Integer_Test.cpp (TestInteger32, TestUnsignedInteger32):
- Fixed some "comparison between signed and unsigned integer"
- warnings.
+ Fixed some "comparison between signed and unsigned integer"
+ warnings.
Mon Mar 29 06:56:11 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
- * tests/Integer_Test.cpp:
- Fixed a warning in Win32 builds.
+ * tests/Integer_Test.cpp:
+ Fixed a warning in Win32 builds.
Fri Mar 26 09:49:10 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
- * tests/Integer_Test.cpp:
+ * tests/Integer_Test.cpp:
- Fixed a warning in Win32 builds.
+ Fixed a warning in Win32 builds.
Fri Aug 29 07:56:19 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
- * tests/Octet_Test.cpp (TestOctet):
+ * tests/Octet_Test.cpp (TestOctet):
- Fixed "string literal converted to char *" warning. String
- literals are now considered "const" by standard C++.
+ Fixed "string literal converted to char *" warning. String
+ literals are now considered "const" by standard C++.
Sun Nov 24 17:04:33 2002 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
- * agent/main.cpp (main): Added ACE::init() to the beginning of
- main() to prevent crashes on Windows. Thanks to Huseyin Calgin
- <calgin@yahoo.com> for reporting this.
+ * agent/main.cpp (main): Added ACE::init() to the beginning of
+ main() to prevent crashes on Windows. Thanks to Huseyin Calgin
+ <calgin@yahoo.com> for reporting this.
Fri Feb 8 04:42:21 2002 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
- * asnmp/transaction.cpp (run): Changed the code to use ACE_Reactor::instance ()
- rather than a local ACE_Reactor on the stack. Thanks to Paresh
- Raote <p_raote@yahoo.com> for reporting this.
+ * asnmp/transaction.cpp (run): Changed the code to use ACE_Reactor::instance ()
+ rather than a local ACE_Reactor on the stack. Thanks to Paresh
+ Raote <p_raote@yahoo.com> for reporting this.
Thu Jan 25 12:48:33 2001 Craig Rodrigues <crodrigu@bbn.com>
- * agent/Makefile.orig
- asnmp/address.h.orig
- examples/next/next.cpp
- examples/trap/trap.cpp
- examples/walk/walk.cpp
- tests/test_config.h
- tests/Varbind_Test.cpp
- tests/Counter64_Test.cpp
- tests/run_tests.sh
+ * agent/Makefile.orig
+ asnmp/address.h.orig
+ examples/next/next.cpp
+ examples/trap/trap.cpp
+ examples/walk/walk.cpp
+ tests/test_config.h
+ tests/Varbind_Test.cpp
+ tests/Counter64_Test.cpp
+ tests/run_tests.sh
- New agent Makefile, and compilation fixes.
+ New agent Makefile, and compilation fixes.
Sun Jun 4 14:51:33 2000 Darrell Brunsch <brunsch@uci.edu>
@@ -530,9 +503,3 @@ Sat Jul 5 19:13:30 1997 Mike MacFaden (mrm@mrm-ss20)
* convert cmu code to use C++ new/delete from malloc/free so
entire library uses C++ new constructor
-
-Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
-End:
diff --git a/ASNMP/agent/main.cpp b/ASNMP/agent/main.cpp
index ff0c9431518..c47d0da0ce9 100644
--- a/ASNMP/agent/main.cpp
+++ b/ASNMP/agent/main.cpp
@@ -9,13 +9,13 @@
ACE_RCSID(agent, main, "$Id$")
-int
-main (int argc, char *argv[])
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE::init ();
snmp_agent the_agent;
- if (the_agent.set_args(argc, argv))
+ if (the_agent.set_args(argc, argv))
return 1;
if (!the_agent.valid()) {
diff --git a/ASNMP/agent/snmp_agent.cpp b/ASNMP/agent/snmp_agent.cpp
index 520c58eaccf..0ed8285b373 100644
--- a/ASNMP/agent/snmp_agent.cpp
+++ b/ASNMP/agent/snmp_agent.cpp
@@ -41,7 +41,7 @@ int snmp_agent::set_args(int argc, char *argv[])
const ACE_TCHAR *wr = WR_COM;
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt
+ ACE_Get_Arg_Opt<char> get_opt
(argc, to_tchar.get_TCHAR_argv (), ACE_TEXT ("p:w:r:hv"));
for (int c; (c = get_opt ()) != -1; ) {
switch (c)
@@ -71,8 +71,8 @@ int snmp_agent::set_args(int argc, char *argv[])
agent_ = new agent_impl(port,
- ACE_TEXT_ALWAYS_CHAR (rd),
- ACE_TEXT_ALWAYS_CHAR (wr)); // opens OS IO port
+ ACE_TEXT_TO_CHAR_IN (rd),
+ ACE_TEXT_TO_CHAR_IN (wr)); // opens OS IO port
return 0;
}
diff --git a/ASNMP/asnmp/ChangeLog b/ASNMP/asnmp/ChangeLog
index 8d82c1aa36c..d517b1480bf 100644
--- a/ASNMP/asnmp/ChangeLog
+++ b/ASNMP/asnmp/ChangeLog
@@ -1,63 +1,52 @@
-Wed Jan 4 22:50:09 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-whitespace.
-
- Added "Local Variables" section defining "add-log-time-format"
- to a really ugly lambda expression that formats changelog
- timestamps in UTC and works with both GNU Emacs and XEmacs.
-
Fri May 7 11:40:25 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * pdu.cpp (agent_error_reason):
+ * pdu.cpp (agent_error_reason):
- Really fixed mismatched sprintf() format specifiers this time
- around.
+ Really fixed mismatched sprintf() format specifiers this time
+ around.
Thu May 6 11:13:25 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * oid.cpp (operator+=, OidToStr):
- * pdu.cpp (agent_error_reason):
+ * oid.cpp (operator+=, OidToStr):
+ * pdu.cpp (agent_error_reason):
- Fixed warnings regarding mismatch format specifiers and
- arguments to sprintf().
+ Fixed warnings regarding mismatch format specifiers and
+ arguments to sprintf().
Thu May 6 11:05:01 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * gauge.h:
+ * gauge.h:
- Nuked trailing white space.
+ Nuked trailing white space.
Fri Apr 23 11:23:21 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * oid.cpp:
+ * oid.cpp:
- Missed some bool return types for equality operators.
+ Missed some bool return types for equality operators.
Thu Apr 22 23:03:48 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
- * address.cpp:
- * address.h:
- * octet.cpp:
- * octet.h:
- * oid.cpp:
- * oid.h:
- * target.cpp:
- * target.h:
- * vb.cpp:
- * vb.h:
+ * address.cpp:
+ * address.h:
+ * octet.cpp:
+ * octet.h:
+ * oid.cpp:
+ * oid.h:
+ * target.cpp:
+ * target.h:
+ * vb.cpp:
+ * vb.h:
- Changed all return types for equality, relational and logical
- operators to "bool", as is the norm for modern C++.
+ Changed all return types for equality, relational and logical
+ operators to "bool", as is the norm for modern C++.
Fri Aug 29 07:57:05 2003 Ossama Othman <ossama@dre.vanderbilt.edu>
- * octet.cpp (to_string_hex):
+ * octet.cpp (to_string_hex):
- Fixed "string literal converted to char *" warning. String
- literals are now considered "const" by standard C++.
+ Fixed "string literal converted to char *" warning. String
+ literals are now considered "const" by standard C++.
Tue Mar 16 16:28:14 1999 David L. Levine <levine@cs.wustl.edu>
@@ -219,9 +208,3 @@ Fri Aug 1 19:23:52 1997 Mike MacFaden (mrm@mrm-ss20)
* transaction class:
- implement get/getnext timeout and retry logic using ACE
Reactor class, ACE_Time_Value
-
-Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
-End:
diff --git a/ASNMP/asnmp/address.cpp b/ASNMP/asnmp/address.cpp
index 8231868bd89..2442ea50550 100644
--- a/ASNMP/asnmp/address.cpp
+++ b/ASNMP/asnmp/address.cpp
@@ -1975,9 +1975,9 @@ addr_type MacAddress::get_type() const
unsigned int MacAddress::hashFunction() const
{
- return ((((address_buffer[0] << 8) + address_buffer[1]) * HASH0LEN)
- + (((address_buffer[2] << 8) + address_buffer[3]) * HASH1LEN)
- + (((address_buffer[4] << 8) + address_buffer[5]) * HASH2LEN));
+ return ((((address_buffer[0] << 8) + address_buffer[1]) * HASH0)
+ + (((address_buffer[2] << 8) + address_buffer[3]) * HASH1)
+ + (((address_buffer[4] << 8) + address_buffer[5]) * HASH2));
}
void MacAddress::to_octet(OctetStr& octet) const
diff --git a/ASNMP/asnmp/address.h b/ASNMP/asnmp/address.h
index f8131c19485..1db8adbbd6e 100644
--- a/ASNMP/asnmp/address.h
+++ b/ASNMP/asnmp/address.h
@@ -1,21 +1,25 @@
+// -*-C++-*-
+// $Id$
#ifndef ADDRESS_
#define ADDRESS_
-//=============================================================================
-/**
- * @file address.h
- *
- * $Id$
- *
- * Address class definition. Encapsulates various network
- * addresses into easy to use, safe and portable classes.
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// address.h
+//
+// = DESCRIPTION
+// Address class definition. Encapsulates various network
+// addresses into easy to use, safe and portable classes.
+//
+// = AUTHOR
+// Peter E Mellquist
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
@@ -58,9 +62,9 @@ enum address_lengths {
APPLETKLEN=3,
DECNETLEN=2,
MACLEN=6,
- HASH0LEN=19,
- HASH1LEN=13,
- HASH2LEN=7,
+ HASH0=19,
+ HASH1=13,
+ HASH2=7,
MAX_ADDR_SZ=20,
MAX_DISPLAY_SZ=MAXHOSTNAMELEN+1
};
@@ -98,207 +102,201 @@ class SIPAddress; // aka ipv6
//--------------------------------------------------------------------
//----[ Address class ]-----------------------------------------------
//--------------------------------------------------------------------
-/**
- * @class
- *
- * @brief Defines the member functions for the abstract base class
- * Address. An Address is a unique network endpoint.
- */
class ASNMP_Export Address: public SnmpSyntax
+ // = TITLE
+ // Defines the member functions for the abstract base class
+ // Address. An Address is a unique network endpoint.
{
public:
- /// allow destruction of derived classes
virtual ~Address();
+ // allow destruction of derived classes
- /// overloaded equivlence operator, are two addresses equal?
friend ASNMP_Export bool operator==( const Address &lhs,const Address &rhs);
+ // overloaded equivlence operator, are two addresses equal?
- /// overloaded not equivlence operator, are two addresses not equal?
friend ASNMP_Export bool operator!=( const Address &lhs,const Address &rhs);
+ // overloaded not equivlence operator, are two addresses not equal?
- /// overloaded > operator, is a1 > a2
friend ASNMP_Export bool operator>( const Address &lhs,const Address &rhs);
+ // overloaded > operator, is a1 > a2
- /// overloaded >= operator, is a1 >= a2
friend ASNMP_Export bool operator>=( const Address &lhs,const Address &rhs);
+ // overloaded >= operator, is a1 >= a2
- /// overloaded < operator, is a1 < a2
friend ASNMP_Export bool operator<( const Address &lhs,const Address &rhs);
+ // overloaded < operator, is a1 < a2
- /// overloaded <= operator, is a1 <= a2
friend ASNMP_Export bool operator<=( const Address &lhs,const Address &rhs);
+ // overloaded <= operator, is a1 <= a2
- /// equivlence operator overloaded, are an address and a string equal?
friend ASNMP_Export bool operator==( const Address &lhs,const char *rhs);
+ // equivlence operator overloaded, are an address and a string equal?
- /// overloaded not equivlence operator, are an address and string not equal?
friend ASNMP_Export bool operator!=( const Address &lhs,const char *rhs);
+ // overloaded not equivlence operator, are an address and string not equal?
- /// overloaded < , is an address greater than a string?
friend ASNMP_Export bool operator>( const Address &lhs,const char *rhs);
+ // overloaded < , is an address greater than a string?
- /// overloaded >=, is an address greater than or equal to a string?
friend ASNMP_Export bool operator>=( const Address &lhs,const char *rhs);
+ // overloaded >=, is an address greater than or equal to a string?
- /// overloaded < , is an address less than a string?
friend ASNMP_Export bool operator<( const Address &lhs,const char *rhs);
+ // overloaded < , is an address less than a string?
- /// overloaded <=, is an address less than or equal to a string?
friend ASNMP_Export bool operator<=( const Address &lhs,const char *rhs);
+ // overloaded <=, is an address less than or equal to a string?
- /// overloaded const char * cast
virtual operator const char *() const = 0;
+ // overloaded const char * cast
- /// verify the is the address object constructed ok
virtual int valid() const;
+ // verify the is the address object constructed ok
- /// return a suitable buffer to contain the address
virtual void to_octet(OctetStr& octet) const = 0;
+ // return a suitable buffer to contain the address
- /// (pure virtual) syntax type
virtual SmiUINT32 get_syntax() = 0;
+ // (pure virtual) syntax type
- /// for non const [], allows reading and writing
unsigned char& operator[]( const int position);
+ // for non const [], allows reading and writing
- /// get a printable ASCII value
virtual const char *to_string() = 0;
+ // get a printable ASCII value
- /// create a new instance of this Value
virtual SnmpSyntax *clone() const = 0;
+ // create a new instance of this Value
- /// return the type of address
virtual addr_type get_type() const = 0;
+ // return the type of address
- /// overloaded assignment operator
virtual SnmpSyntax& operator=( SnmpSyntax &val) = 0;
+ // overloaded assignment operator
- /// return a hash key
virtual unsigned int hashFunction() const { return 0;};
+ // return a hash key
protected:
- /// state of constructed object (1/0)
- /// addr internal representation
int valid_flag;
+ // state of constructed object (1/0)
unsigned char address_buffer[MAX_ADDR_SZ];
+ // addr internal representation
- /// parse the address string
- /// redefined for each specific address subclass
virtual int parse_address( const char * inaddr) =0;
+ // parse the address string
+ // redefined for each specific address subclass
- /// format the output
- /// redefined for each specific address subclass
virtual void format_output() =0;
+ // format the output
+ // redefined for each specific address subclass
- /// a reused trimm white space method
void trim_white_space( char * ptr);
+ // a reused trimm white space method
};
//-----------------------------------------------------------------------
//---------[ IPv4 Address Class ]----------------------------------------
//-----------------------------------------------------------------------
-/**
- * @class IpAddress
- *
- * @brief Defines the member functions for the concrete class IpAddress
- * An IP Version 4 Address is 4 bytes long and consists of a
- * Network, Sub Network, and host component.
- */
class ASNMP_Export IpAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class IpAddress
+ // An IP Version 4 Address is 4 bytes long and consists of a
+ // Network, Sub Network, and host component.
{
public:
- /// default construct an IP address with a string
IpAddress( const char *inaddr = "");
+ // default construct an IP address with a string
- /// construct an IP address with another IP address
IpAddress( const IpAddress &ipaddr);
+ // construct an IP address with another IP address
- /// construct an IP address with a GenAddress
IpAddress( const GenAddress &genaddr);
+ // construct an IP address with a GenAddress
- /// destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
~IpAddress();
+ // destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// assignment to another IpAddress object overloaded
IpAddress& operator=( const IpAddress &ipaddress);
+ // assignment to another IpAddress object overloaded
// TODO: add ability to set addr given long
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// return the DNS Fully Qualified Domain Name (host.domain)
- /// on failure returns dotted_quad string
const char *resolve_hostname(int& was_found);
+ // return the DNS Fully Qualified Domain Name (host.domain)
+ // on failure returns dotted_quad string
- /// return string representation of object (dotted quad returned)
virtual const char *to_string() ;
+ // return string representation of object (dotted quad returned)
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// logically AND two IPaddresses and
- /// return the new one
void mask( const IpAddress& ipaddr);
+ // logically AND two IPaddresses and
+ // return the new one
- /// return the type
virtual addr_type get_type() const;
+ // return the type
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// is this the loopback address? 127.0.0.1/loopback/1.0.0.127.in-addr.arpa
int is_loopback() const;
+ // is this the loopback address? 127.0.0.1/loopback/1.0.0.127.in-addr.arpa
- /// determine if this is a multicast address
int is_multicast() const;
+ // determine if this is a multicast address
- /// determine if this a broadcast address
int is_broadcast() const;
+ // determine if this a broadcast address
- /// per RFC 1597, private addresses are:: 10, 172.16, and 192.168.0
int is_private() const;
+ // per RFC 1597, private addresses are:: 10, 172.16, and 192.168.0
- /// convert address into octet string format in network byte order
virtual void to_octet(OctetStr& octet) const;
+ // convert address into octet string format in network byte order
protected:
char output_buffer[MAX_DISPLAY_SZ]; // output buffer
- /// friendly name storage
char iv_friendly_name_[MAX_DISPLAY_SZ];
+ // friendly name storage
- /// did resolver call work? some addrs won't resolve
int iv_friendly_name_status_;
+ // did resolver call work? some addrs won't resolve
- /// redefined parse address
- /// specific to IP addresses
virtual int parse_address( const char *inaddr);
+ // redefined parse address
+ // specific to IP addresses
- /// redefined format output
- /// specific to IP addresses
virtual void format_output();
+ // redefined format output
+ // specific to IP addresses
- /// parse a dotted string
int parse_dotted_ipstring( const char *inaddr);
+ // parse a dotted string
- /// using the currently defined address, do a gethostbyname()
- /// and try to fill up the name
int addr_to_friendly();
+ // using the currently defined address, do a gethostbyname()
+ // and try to fill up the name
- /// thread safe routine to lookup ip address given hostname
- /// return <> 0 on error
static int resolve_to_address(const char *hostname, in_addr& quad_addr);
+ // thread safe routine to lookup ip address given hostname
+ // return <> 0 on error
- /// thread safe routine to lookup name given ip address
- /// return <> 0 on error
static int resolve_to_hostname(const in_addr& quad_addr, char *hostname);
+ // thread safe routine to lookup name given ip address
+ // return <> 0 on error
};
@@ -306,25 +304,22 @@ protected:
//--------------[ DNS Iterator Class ]------------------------------------
//------------------------------------------------------------------------
-/**
- * @class Address_Iter
- *
- * @brief Defines routines to obtain information on a hostname/FQDN
- * such as multiple addresses
- */
class ASNMP_Export Address_Iter
+ // = TITLE
+ // Defines routines to obtain information on a hostname/FQDN
+ // such as multiple addresses
{
public:
Address_Iter(const char *hostname); // fully qualified domain name, hostname
- /// did hostname resolve via DNS?
int valid() const;
+ // did hostname resolve via DNS?
- /// how many addresses associated with this hostname
int how_many_addresses();
+ // how many addresses associated with this hostname
- /// return next address
int next(IpAddress& addr);
+ // return next address
private:
Address_Iter(const Address_Iter&);
@@ -339,161 +334,152 @@ private:
//------------------------------------------------------------------------
//---------[ UDP/IPv4 Address Class ]-------------------------------------
//------------------------------------------------------------------------
-/**
- * @class
- *
- * @brief Defines the member functions for the concrete class UdpAddress
- * A Udp Address consists of an IP Version 4 Address (IpAddress)
- * and a 2 byte unsigned port number. (see /etc/services file)
- * User Datagram Protocol (UDP) is a best effort transport
- */
class ASNMP_Export UdpAddress : public IpAddress
+ // = TITLE
+ // Defines the member functions for the concrete class UdpAddress
+ // A Udp Address consists of an IP Version 4 Address (IpAddress)
+ // and a 2 byte unsigned port number. (see /etc/services file)
+ // User Datagram Protocol (UDP) is a best effort transport
{
public:
- /// default constructor with a dotted string in the form of addr:port
UdpAddress( const char *inaddr = "");
+ // default constructor with a dotted string in the form of addr:port
- /// construct an Udp address with another Udp address
UdpAddress( const UdpAddress &udpaddr);
+ // construct an Udp address with another Udp address
- /// construct a Udp address with a GenAddress
UdpAddress( const GenAddress &genaddr);
+ // construct a Udp address with a GenAddress
- /// construct a Udp address with an IpAddress
- /// default port # to zero
UdpAddress( const IpAddress &ipaddr);
+ // construct a Udp address with an IpAddress
+ // default port # to zero
- /// destructor
~UdpAddress();
+ // destructor
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// assignment to another IpAddress object overloaded
UdpAddress& operator=( const UdpAddress &udpaddr);
+ // assignment to another IpAddress object overloaded
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// output in the form of address:port
virtual const char *to_string() ;
+ // output in the form of address:port
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// set the port number
void set_port( const unsigned short p);
+ // set the port number
- /// get the port number
unsigned short get_port() const;
+ // get the port number
- /// return the type
virtual addr_type get_type() const;
+ // return the type
protected:
- /// output buffer
char output_buffer[MAX_DISPLAY_SZ];
+ // output buffer
- /// redefined parse address
- /// specific to IP addresses
virtual int parse_address( const char *inaddr);
+ // redefined parse address
+ // specific to IP addresses
- /// redefined format output
- /// specific to IP addresses
virtual void format_output();
+ // redefined format output
+ // specific to IP addresses
};
//-------------------------------------------------------------------------
//---------[ 802.3 MAC Address Class ]-------------------------------------
//-------------------------------------------------------------------------
-/**
- * @class
- *
- * @brief Defines the member functions for the concrete class MacAddress.
- * A Media Access Control Address consists of 48 bits as defined
- * in IEEE 802.3 specifications.
- */
class ASNMP_Export MacAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class MacAddress.
+ // A Media Access Control Address consists of 48 bits as defined
+ // in IEEE 802.3 specifications.
{
public:
- /// constructor with a string argument
MacAddress( const char *inaddr = "");
+ // constructor with a string argument
- /// constructor with another MAC object
MacAddress( const MacAddress &macaddr);
+ // constructor with another MAC object
- /// construct a MacAddress with a GenAddress
MacAddress( const GenAddress &genaddr);
+ // construct a MacAddress with a GenAddress
- /// destructor
~MacAddress();
+ // destructor
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// assignment to another IpAddress object overloaded
MacAddress& operator=( const MacAddress &macaddress);
+ // assignment to another IpAddress object overloaded
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// create a string to internal class storage representing object
virtual const char *to_string();
+ // create a string to internal class storage representing object
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// return the type
virtual addr_type get_type() const;
+ // return the type
- /// return a hash key
unsigned int hashFunction() const;
+ // return a hash key
- /// return byte array of the mac address
virtual void to_octet(OctetStr& octet) const;
+ // return byte array of the mac address
protected:
- /// output buffer containing string representation of object
char output_buffer[MAX_DISPLAY_SZ];
+ // output buffer containing string representation of object
- /// redefined parse address for macs
virtual int parse_address( const char *inaddr);
+ // redefined parse address for macs
- /// redefined format output for MACs
virtual void format_output();
+ // redefined format output for MACs
};
//------------------------------------------------------------------------
//---------[ Netbios Address Class ]--------------------------------------
//------------------------------------------------------------------------
-/**
- * @class
- *
- * @brief Defines the member functions for the concrete class NetbiosAddress.
- * The IBM/Microsoft address for NETBIOS, NETBEUI protocol transport.
- */
class ASNMP_Export NetbiosAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class NetbiosAddress.
+ // The IBM/Microsoft address for NETBIOS, NETBEUI protocol transport.
{
public:
- /// default constructor with string arg
NetbiosAddress( const char *inaddr = "");
+ // default constructor with string arg
- /// set name and service type
NetbiosAddress( const char *inaddr, nb_service svc);
+ // set name and service type
- /// copy constructor
NetbiosAddress( const NetbiosAddress& nbaddr);
+ // copy constructor
- /// construct with a GenAddress
NetbiosAddress( const GenAddress& genaddr);
+ // construct with a GenAddress
~NetbiosAddress();
@@ -501,33 +487,33 @@ public:
NetbiosAddress& operator=( const NetbiosAddress &nbaddr);
- /// retrieve the network service type
nb_service get_service_type() const;
+ // retrieve the network service type
- /// set the service type (workstation, server, etc)
void set_service_type(nb_service nbservice);
+ // set the service type (workstation, server, etc)
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// output byte buffer containing netbios name
virtual void to_octet(OctetStr& octet) const;
+ // output byte buffer containing netbios name
protected:
void InitNBAddr(const char *inaddr);
char output_buffer[MAX_DISPLAY_SZ];
- /// output buffer to hold string representation
virtual void format_output();
+ // output buffer to hold string representation
virtual int parse_address( const char *inaddr);
virtual addr_type get_type() const;
};
@@ -535,23 +521,20 @@ protected:
//------------------------------------------------------------------------
//---------[ DecNet Address Class ]---------------------------------------
//------------------------------------------------------------------------
-/**
- * @class
- *
- * @brief Defines the member functions for the concrete class DecNetAddress.
- * DecNet Phase ? address consists of two octets (CISCO-TC.my)
- */
class ASNMP_Export DecNetAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class DecNetAddress.
+ // DecNet Phase ? address consists of two octets (CISCO-TC.my)
{
public:
- /// default constructor with string arg
DecNetAddress( const char *inaddr = "");
+ // default constructor with string arg
- /// copy constructor
DecNetAddress( const DecNetAddress& decaddr);
+ // copy constructor
- /// construct with a GenAddress
DecNetAddress( const GenAddress& genaddr);
+ // construct with a GenAddress
~DecNetAddress();
@@ -559,20 +542,20 @@ class ASNMP_Export DecNetAddress : public Address
DecNetAddress& operator=( const DecNetAddress &decaddr);
- /// convert address into octet string format 2 bytes of decnet address
virtual void to_octet(OctetStr& octet) const;
+ // convert address into octet string format 2 bytes of decnet address
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
protected:
virtual int parse_address( const char *inaddr);
@@ -584,23 +567,20 @@ class ASNMP_Export DecNetAddress : public Address
//------------------------------------------------------------------------
//---------[ AppleTalk Address Class ]------------------------------------
//------------------------------------------------------------------------
-/**
- * @class
- *
- * @brief Defines the member functions for the concrete class DecNetAddress.
- * DecNet Phase ? address consists of two octets (CISCO-TC.my)
- */
class ASNMP_Export AppleTalkAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class DecNetAddress.
+ // DecNet Phase ? address consists of two octets (CISCO-TC.my)
{
public:
- /// default constructor with string arg
AppleTalkAddress( const char *inaddr = "");
+ // default constructor with string arg
- /// copy constructor
AppleTalkAddress( const AppleTalkAddress& atkaddr);
+ // copy constructor
- /// construct with a GenAddress
AppleTalkAddress( const GenAddress& genaddr);
+ // construct with a GenAddress
~AppleTalkAddress();
@@ -608,32 +588,32 @@ class ASNMP_Export AppleTalkAddress : public Address
AppleTalkAddress& operator=( const AppleTalkAddress &atkaddr);
- /// convert address into octet string format 3 bytes of atk address
virtual void to_octet(OctetStr& octet) const;
+ // convert address into octet string format 3 bytes of atk address
- /// get the host part of the address
char get_host_address() const;
+ // get the host part of the address
- /// set the host part of the address
void set_host_address(const char);
+ // set the host part of the address
- /// get the 2 byte atk network address
short get_net_address() const;
+ // get the 2 byte atk network address
- /// set the host 2 byte atk network address
void set_net_address(const short atknet);
+ // set the host 2 byte atk network address
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
private:
virtual int parse_address( const char *inaddr);
@@ -645,67 +625,64 @@ class ASNMP_Export AppleTalkAddress : public Address
//------------------------------------------------------------------------
//---------[ IPX Address Class ]------------------------------------------
//------------------------------------------------------------------------
-/**
- * @class IpxAddress
- *
- * @brief Defines the member functions for the concrete class IpxAddress.
- * Novell's IPX (version ?) network protocol endpoint
- */
class ASNMP_Export IpxAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class IpxAddress.
+ // Novell's IPX (version ?) network protocol endpoint
{
public:
- /// default constructor with a string arg
IpxAddress( const char *inaddr = "");
+ // default constructor with a string arg
- /// constructor with another ipx object
IpxAddress( const IpxAddress &ipxaddr);
+ // constructor with another ipx object
- /// construct with a GenAddress
IpxAddress( const GenAddress &genaddr);
+ // construct with a GenAddress
- /// destructor
~IpxAddress();
+ // destructor
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// assignment to another IpxAddress object overloaded
IpxAddress& operator=( const IpxAddress &ipxaddress);
+ // assignment to another IpxAddress object overloaded
- /// get the host id portion of an ipx address
int get_hostid( MacAddress& mac);
+ // get the host id portion of an ipx address
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// create string represtation of object value
virtual const char *to_string();
+ // create string represtation of object value
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// return the type
virtual addr_type get_type() const;
+ // return the type
- /// return byte sequence containing ipx address
virtual void to_octet(OctetStr& octet) const;
+ // return byte sequence containing ipx address
protected:
- /// ipx format separator {:,/}
char separator;
+ // ipx format separator {:,/}
- /// output buffer to hold string representation
char output_buffer[MAX_DISPLAY_SZ];
+ // output buffer to hold string representation
- /// redefined parse address for ipx strings
virtual int parse_address( const char *inaddr);
+ // redefined parse address for ipx strings
- /// redefined format output for ipx strings
- /// uses same separator as when constructed
virtual void format_output();
+ // redefined format output for ipx strings
+ // uses same separator as when constructed
};
@@ -713,133 +690,127 @@ protected:
//------------------------------------------------------------------------
//---------[ IpxSock Address Class ]--------------------------------------
//------------------------------------------------------------------------
-/**
- * @class IpxSockAddress
- *
- * @brief Defines the member functions for the concrete class IpxAddress.
- * Novell's IPX (version ?) network protocol endpoint
- */
class ASNMP_Export IpxSockAddress : public IpxAddress
+ // = TITLE
+ // Defines the member functions for the concrete class IpxAddress.
+ // Novell's IPX (version ?) network protocol endpoint
{
public:
- /// constructor with a dotted string
IpxSockAddress( const char *inaddr = "");
+ // constructor with a dotted string
- /// construct an Udp address with another Udp address
IpxSockAddress( const IpxSockAddress &ipxaddr);
+ // construct an Udp address with another Udp address
- ///constructor with a GenAddress
IpxSockAddress( const GenAddress &genaddr);
+ //constructor with a GenAddress
- ///constructor with a IpxAddress
- /// default socket # is 0
IpxSockAddress( const IpxAddress &ipxaddr);
+ //constructor with a IpxAddress
+ // default socket # is 0
- /// destructor
~IpxSockAddress();
+ // destructor
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// assignment to another IpxAddress object overloaded
IpxSockAddress& operator=( const IpxSockAddress &ipxaddr);
+ // assignment to another IpxAddress object overloaded
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// set the socket number
void set_socket( const unsigned short s);
+ // set the socket number
- /// get the socket number
unsigned short get_socket() const;
+ // get the socket number
- /// create string representation of object value
virtual const char *to_string();
+ // create string representation of object value
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// return the type
virtual addr_type get_type() const;
+ // return the type
protected:
- /// output buffer to hold string representation of object
char output_buffer[MAX_DISPLAY_SZ];
+ // output buffer to hold string representation of object
- /// redefined parse address for ipx strings
virtual int parse_address( const char *inaddr);
+ // redefined parse address for ipx strings
- /// redefined format output
- /// specific to IP addresses
virtual void format_output();
+ // redefined format output
+ // specific to IP addresses
};
//-------------------------------------------------------------------------
//--------[ Generic Address ]----------------------------------------------
//-------------------------------------------------------------------------
-/**
- * @class GenAddress
- *
- * @brief Defines the member functions for the concrete class GenAddress.
- * This class attempts to determine an address type given a char string.
- */
class ASNMP_Export GenAddress : public Address
+ // = TITLE
+ // Defines the member functions for the concrete class GenAddress.
+ // This class attempts to determine an address type given a char string.
{
public:
- /// constructor with a string argument
GenAddress( const char *addr = "");
+ // constructor with a string argument
- /// constructor with an Address
GenAddress( const Address &addr);
+ // constructor with an Address
- /// constructor with another GenAddress
GenAddress( const GenAddress &addr);
+ // constructor with another GenAddress
- /// destructor
~GenAddress();
+ // destructor
- /// get the snmp syntax of the contained address
SmiUINT32 get_syntax();
+ // get the snmp syntax of the contained address
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// assignment of a GenAddress
GenAddress& operator=( const GenAddress &addr);
+ // assignment of a GenAddress
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// string representation of object value
virtual const char *to_string();
+ // string representation of object value
- /// const char * operator overloaded for streaming output
virtual operator const char *() const;
+ // const char * operator overloaded for streaming output
- /// return the type
virtual addr_type get_type() const;
+ // return the type
- /// return the address as a octet sequence
virtual void to_octet(OctetStr& octet) const;
+ // return the address as a octet sequence
protected:
- /// pointer to a a concrete address
Address *address;
+ // pointer to a a concrete address
- /// output buffer of objects value
char output_buffer[MAX_DISPLAY_SZ];
+ // output buffer of objects value
- /// redefined parse address for macs
virtual int parse_address( const char *addr);
+ // redefined parse address for macs
- /// format output for a generic address
virtual void format_output();
+ // format output for a generic address
- /// initialize smi data structure
void init_smi();
+ // initialize smi data structure
};
#endif //_ADDRESS
diff --git a/ASNMP/asnmp/asn1.h b/ASNMP/asnmp/asn1.h
index 3be7e3925ef..0c141c188d2 100644
--- a/ASNMP/asnmp/asn1.h
+++ b/ASNMP/asnmp/asn1.h
@@ -1,22 +1,25 @@
/* -*-C++-*- */
+// $Id$
#ifndef ASN1
#define ASN1
-//=============================================================================
-/**
- * @file asn1.h
- *
- * $Id$
- *
- * Abstract Syntax Notation One, ASN.1
- * As defined in ISO/IS 8824 and ISO/IS 8825
- * This implements a subset of the above International Standards that
- * is sufficient to implement SNMP.
- *
- *
- * @author Steve Waldbusser/CMU ?
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// asn1.h
+//
+// = DESCRIPTION
+// Abstract Syntax Notation One, ASN.1
+// As defined in ISO/IS 8824 and ISO/IS 8825
+// This implements a subset of the above International Standards that
+// is sufficient to implement SNMP.
+//
+// = AUTHOR
+// Steve Waldbusser/CMU ?
+//
+// ============================================================================
/**********************************************************************
Copyright 1988, 1989, 1991, 1992 by Carnegie Mellon University
@@ -158,13 +161,10 @@ struct counter64 {
};
// CMU Interface class for ASN.1 routines
-/**
- * @class asn1
- *
- * @brief Defines the member functions for the asn1 concrete interface class
- * CMU routines for performing ASN.1 data marshalling / representation
- */
class ASNMP_Export asn1
+ // = TITLE
+ // Defines the member functions for the asn1 concrete interface class
+ // CMU routines for performing ASN.1 data marshalling / representation
{
public:
@@ -271,13 +271,10 @@ static unsigned char * build_unsigned_int64( unsigned char *data,
// CMU Interface class for SNMPv1, SNMPv2c routines
-/**
- * @class cmu_snmp
- *
- * @brief Defines the static functions for the cmu_snmp concrete class.
- * These routine create cmu pdu's that can be sent/received on/from agents
- */
class ASNMP_Export cmu_snmp
+ // = TITLE
+ // Defines the static functions for the cmu_snmp concrete class.
+ // These routine create cmu pdu's that can be sent/received on/from agents
{
public:
static struct snmp_pdu *pdu_create( int command);
diff --git a/ASNMP/asnmp/counter.h b/ASNMP/asnmp/counter.h
index 36fda2f84ce..7cffb132a48 100644
--- a/ASNMP/asnmp/counter.h
+++ b/ASNMP/asnmp/counter.h
@@ -1,19 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef COUNTER_
#define COUNTER_
-//=============================================================================
-/**
- * @file counter.h
- *
- * $Id$
- *
- * Class definition for SMI Counter32 class.
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// counter.h
+//
+// = DESCRIPTION
+// Class definition for SMI Counter32 class.
+//
+// = AUTHOR
+// Peter E Mellquist
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -41,39 +44,36 @@
// This class does not behave as defined by the abstract model
// in RFC 1155 section 3.2.3.3
-/**
- * @class Counter32
- *
- * @brief Defines the member functions for the Counter32 concrete class
- * This class implements RFC 1155 Counter Object and is named
- * Counter32 after the RFC1902 redefinition of V1 SMI datatypes
- */
-class ASNMP_Export Counter32 : public SnmpUInt32
+class ASNMP_Export Counter32: public SnmpUInt32
+ // = TITLE
+ // Defines the member functions for the Counter32 concrete class
+ // This class implements RFC 1155 Counter Object and is named
+ // Counter32 after the RFC1902 redefinition of V1 SMI datatypes
{
public:
- /// constructor with a value
Counter32( const unsigned long i = 0);
+ // constructor with a value
- /// copy constructor
Counter32( const Counter32 &c);
+ // copy constructor
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// overloaded assignment
Counter32& operator=( const Counter32 &uli);
+ // overloaded assignment
- /// overloaded assignment
Counter32& operator=( const unsigned long i);
+ // overloaded assignment
- /// otherwise, behave like an unsigned long int
operator unsigned long();
+ // otherwise, behave like an unsigned long int
};
#endif // COUNTER_
diff --git a/ASNMP/asnmp/ctr64.h b/ASNMP/asnmp/ctr64.h
index 6b97b9966f2..7f166932430 100644
--- a/ASNMP/asnmp/ctr64.h
+++ b/ASNMP/asnmp/ctr64.h
@@ -1,19 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef CTR64_
#define CTR64_
-//=============================================================================
-/**
- * @file ctr64.h
- *
- * $Id$
- *
- * SNMP Counter64 class definition.
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// ctr64.h
+//
+// = DESCRIPTION
+// SNMP Counter64 class definition.
+//
+// = AUTHOR
+// Peter E Mellquist
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -41,68 +44,65 @@
// a single entity. This type has is available in SNMPv2 but
// may be used anywhere where needed.
//
-/**
- * @class Counter64
- *
- * @brief Defines the member functions for the Counter64 concrete class
- * This class implements RFC 1902 64 bit Counter Object.
- */
-class ASNMP_Export Counter64 : public SnmpSyntax
+class ASNMP_Export Counter64: public SnmpSyntax
+ // = TITLE
+ // Defines the member functions for the Counter64 concrete class
+ // This class implements RFC 1902 64 bit Counter Object.
{
public:
- /// default constructor
Counter64( ACE_UINT64 llw = 0);
+ // default constructor
- /// constructor with values
Counter64( unsigned long hiparm, unsigned long loparm);
+ // constructor with values
- /// copy constructor
Counter64( const Counter64 &ctr64);
+ // copy constructor
- /// destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
~Counter64();
+ // destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// return a long double representation
long double to_long_double() const;
+ // return a long double representation
- /// assign a long double to a counter64
Counter64& assign( long double ld);
+ // assign a long double to a counter64
- /// return the high part
unsigned long high() const;
+ // return the high part
- /// return the low part
unsigned long low() const;
+ // return the low part
- /// set the high part
void set_high( const unsigned long h);
+ // set the high part
- /// set the low part
void set_low( const unsigned long l);
+ // set the low part
- /// overloaded assignment
Counter64& operator=( const ACE_UINT64 rhs);
+ // overloaded assignment
- /// overloaded assignment
Counter64& operator=( const Counter64 &rhs);
+ // overloaded assignment
- /// get a printable ASCII representation
const char *to_string();
+ // get a printable ASCII representation
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// general validity test, always true
int valid() const;
+ // general validity test, always true
- /// otherwise, behave like an ACE_UINT64
operator ACE_UINT64();
+ // otherwise, behave like an ACE_UINT64
protected:
char output_buffer[CTR64OUTBUF];
diff --git a/ASNMP/asnmp/enttraps.h b/ASNMP/asnmp/enttraps.h
index 433538eb258..460c2bae121 100644
--- a/ASNMP/asnmp/enttraps.h
+++ b/ASNMP/asnmp/enttraps.h
@@ -1,19 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef ENTTRAPS_
#define ENTTRAPS_
-//=============================================================================
-/**
- * @file enttraps.h
- *
- * $Id$
- *
- * constants for Enterprise Traps
- *
- *
- * @author Peter E MellquistMichael R MacFaden mrm@cisco.com - rework & ACE port
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// enttraps.cpp
+//
+// = DESCRIPTION
+// constants for Enterprise Traps
+//
+// = AUTHOR
+// Peter E Mellquist
+// Michael R MacFaden mrm@cisco.com - rework & ACE port
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -33,61 +36,46 @@
#include "asnmp/asn1.h" // ASN.1 header file
//--------------[ well known trap ids ]-----------------------------------
-/**
- * @class snmpTrapsOid
- *
- * @brief Defines the member functions for the snmpTrapsOid base class
- * to implement the traps defined in RFC 1215
- */
-class ASNMP_Export snmpTrapsOid : public Oid
+class ASNMP_Export snmpTrapsOid: public Oid
+ // = TITLE
+ // Defines the member functions for the snmpTrapsOid base class
+ // to implement the traps defined in RFC 1215
{
public:
snmpTrapsOid (void):Oid("1.3.6.1.6.3.1.1.5"){}
SnmpSyntax& operator=( SnmpSyntax &val){ return Oid::operator=(val); }
};
-/**
- * @class snmpTrapEnterpriseOid
- *
- * @brief Defines the default Enterprise Oid for this software package
- */
-class ASNMP_Export snmpTrapEnterpriseOid : public Oid
+class ASNMP_Export snmpTrapEnterpriseOid: public Oid
+ // = TITLE
+ // Defines the default Enterprise Oid for this software package
{
public:
snmpTrapEnterpriseOid(void): Oid("1.3.6.1.6.3.1.1.4.3.0") { }
SnmpSyntax& operator=( SnmpSyntax &val){ return Oid::operator=(val); }
};
-/**
- * @class coldStartOid
- *
- * @brief Defines the RFC 1215 agent cold start generic trap (system reboot)
- */
-class ASNMP_Export coldStartOid : public snmpTrapsOid
+class ASNMP_Export coldStartOid: public snmpTrapsOid
+ // = TITLE
+ // Defines the RFC 1215 agent cold start generic trap (system reboot)
{
public:
coldStartOid( void){*this+=".1";}
SnmpSyntax& operator=( SnmpSyntax &val){ return snmpTrapsOid::operator=(val); }
};
-/**
- * @class warmStartOid
- *
- * @brief Defines the RFC 1215 agent warm start generic trap (agent reboot)
- */
-class ASNMP_Export warmStartOid : public snmpTrapsOid
+class ASNMP_Export warmStartOid: public snmpTrapsOid
+ // = TITLE
+ // Defines the RFC 1215 agent warm start generic trap (agent reboot)
{
public:
warmStartOid( void){*this+=".2";}
SnmpSyntax& operator=( SnmpSyntax &val){ return snmpTrapsOid::operator=(val); }
};
-/**
- * @class linkDownOid
- *
- * @brief Defines the RFC 1215 interface (link) down trap
- */
-class ASNMP_Export linkDownOid : public snmpTrapsOid
+class ASNMP_Export linkDownOid: public snmpTrapsOid
+ // = TITLE
+ // Defines the RFC 1215 interface (link) down trap
{
public:
linkDownOid( void){*this+=".3";}
@@ -96,36 +84,27 @@ class ASNMP_Export linkDownOid : public snmpTrapsOid
// SMI LinkUp Oid
-/**
- * @class linkUpOid
- *
- * @brief Defines the RFC 1215 interface (link) up trap
- */
-class ASNMP_Export linkUpOid : public snmpTrapsOid
+class ASNMP_Export linkUpOid: public snmpTrapsOid
+ // = TITLE
+ // Defines the RFC 1215 interface (link) up trap
{
public:
linkUpOid( void){*this+=".4";}
SnmpSyntax& operator=( SnmpSyntax &val){ return snmpTrapsOid::operator=(val); }
};
-/**
- * @class authenticationFailureOid
- *
- * @brief Defines the RFC 1215 device/agent invalid access trap
- */
-class ASNMP_Export authenticationFailureOid : public snmpTrapsOid
+class ASNMP_Export authenticationFailureOid: public snmpTrapsOid
+ // = TITLE
+ // Defines the RFC 1215 device/agent invalid access trap
{
public:
authenticationFailureOid( void){*this+=".5";}
SnmpSyntax& operator=( SnmpSyntax &val){ return snmpTrapsOid::operator=(val); }
};
-/**
- * @class egpNeighborLossOid
- *
- * @brief Defines the RFC 1215 Exterior Gateway Protocol neighbor loss trap
- */
-class ASNMP_Export egpNeighborLossOid : public snmpTrapsOid
+class ASNMP_Export egpNeighborLossOid: public snmpTrapsOid
+ // = TITLE
+ // Defines the RFC 1215 Exterior Gateway Protocol neighbor loss trap
{
public:
egpNeighborLossOid( void){*this+=".6";}
diff --git a/ASNMP/asnmp/gauge.h b/ASNMP/asnmp/gauge.h
index 202edaf98bf..882a6f87c93 100644
--- a/ASNMP/asnmp/gauge.h
+++ b/ASNMP/asnmp/gauge.h
@@ -1,21 +1,24 @@
/* -*-C++-*- */
+// $Id$
#ifndef GAUGE_
#define GAUGE_
-//=============================================================================
-/**
- * @file gauge.h
- *
- * $Id$
- *
- * Class definition for SMI Gauge32 class.
- * This class currently does not behave as defined by the abstract model
- * in RFC 1155 section 3.2.3.4 (ie the value doesn't latch on the max value)
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// gauge32.cpp
+//
+// = DESCRIPTION
+// Class definition for SMI Gauge32 class.
+// This class currently does not behave as defined by the abstract model
+// in RFC 1155 section 3.2.3.4 (ie the value doesn't latch on the max value)
+//
+// = AUTHOR
+// Peter E Mellquist
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -40,40 +43,37 @@
// objects may be set or get into Vb objects.
//
-/**
- * @class Gauge32:
- *
- * @brief Define RFC1902 Gauge datatype from RFC 1155 section 3.2.3.4
- * Note that this datatype does not behave exactly (acts like a long)
- */
class ASNMP_Export Gauge32: public SnmpUInt32
+ // = TITLE
+ // Define RFC1902 Gauge datatype from RFC 1155 section 3.2.3.4
+ // Note that this datatype does not behave exactly (acts like a long)
{
public:
- /// constructor with a value
Gauge32( const unsigned long i = 0);
+ // constructor with a value
- /// copy constructor
Gauge32 ( const Gauge32 &g);
+ // copy constructor
- /// destructor for a Gauge32 (ensure that Value::~Value() is overridden)
~Gauge32();
+ // destructor for a Gauge32 (ensure that Value::~Value() is overridden)
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// overloaded assignment
Gauge32& operator=( const Gauge32 &uli);
+ // overloaded assignment
- /// overloaded assignment
Gauge32& operator=( const unsigned long i);
+ // overloaded assignment
- /// otherwise, behave like an unsigned int
operator unsigned long();
+ // otherwise, behave like an unsigned int
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
};
#endif //GAUGE_
diff --git a/ASNMP/asnmp/integer.h b/ASNMP/asnmp/integer.h
index d120684c095..9d21228837b 100644
--- a/ASNMP/asnmp/integer.h
+++ b/ASNMP/asnmp/integer.h
@@ -1,18 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef SNMPINTEGER_
#define SNMPINTEGER_
-//=============================================================================
-/**
- * @file integer.h
- *
- * $Id$
- *
- * Class definition for Integer classes convertable to SMI.
- *
- *
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// integer.cpp
+//
+// = DESCRIPTION
+// Class definition for Integer classes convertable to SMI.
+//
+// = AUTHOR
+// Jeff Meyer
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -42,101 +46,95 @@
//
// 32 bit unsigned integer class
-/**
- * @class SnmpUInt32
- *
- * @brief Implement RFC 1920 Unsigned Integer SMI datatype
- */
-class ASNMP_Export SnmpUInt32 : public SnmpSyntax
+class ASNMP_Export SnmpUInt32: public SnmpSyntax
+ // = TITLE
+ // Implement RFC 1920 Unsigned Integer SMI datatype
{
public:
- /// default constructor
SnmpUInt32 (const unsigned long i = 0);
+ // default constructor
- /// copy constructor
SnmpUInt32( const SnmpUInt32 &c);
+ // copy constructor
- /// destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
virtual ~SnmpUInt32();
+ // destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// overloaded assignment
SnmpUInt32& operator=( const unsigned long i);
+ // overloaded assignment
- /// overloaded assignment
SnmpUInt32& operator=( const SnmpUInt32 &uli);
+ // overloaded assignment
- /// otherwise, behave like an unsigned long int
operator unsigned long();
+ // otherwise, behave like an unsigned long int
- /// get a printable ASCII value
virtual const char *to_string();
+ // get a printable ASCII value
- /// create a new instance of this Value
virtual SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// did object construct properly
int valid() const;
+ // did object construct properly
protected:
- /// contain string representation of object
int valid_flag;
char output_buffer[INTOUTBUF];
+ // contain string representation of object
};
// 32 bit signed integer class
- /**
- * @class SnmpInt32
- *
- * @brief Implement RFC 1902 32 bit Integer SMI data object
- */
-class ASNMP_Export SnmpInt32 : public SnmpSyntax
+class ASNMP_Export SnmpInt32: public SnmpSyntax
{
+ // = TITLE
+ // Implement RFC 1902 32 bit Integer SMI data object
public:
- /// constructor with value
SnmpInt32 (const long i = 0);
+ // constructor with value
- /// constructor with value
SnmpInt32 (const SnmpInt32 &c);
+ // constructor with value
- /// destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
virtual ~SnmpInt32();
+ // destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden)
- /// syntax type
virtual SmiUINT32 get_syntax();
+ // syntax type
- /// overloaded assignment
SnmpInt32& operator=( const long i);
+ // overloaded assignment
- /// overloaded assignment
SnmpInt32& operator=( const SnmpInt32 &li);
+ // overloaded assignment
- /// otherwise, behave like a long int
operator long();
+ // otherwise, behave like a long int
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
- /// get a printable ASCII value
const char *to_string();
+ // get a printable ASCII value
- /// logical state of object
int valid() const;
+ // logical state of object
protected:
- /// contain string representation of object
int valid_flag;
char output_buffer[INTOUTBUF];
+ // contain string representation of object
};
#endif
diff --git a/ASNMP/asnmp/octet.h b/ASNMP/asnmp/octet.h
index 5e8c8d63d98..bb0a68432d1 100644
--- a/ASNMP/asnmp/octet.h
+++ b/ASNMP/asnmp/octet.h
@@ -1,22 +1,27 @@
+// -*-C++-*-
+// $Id$
#ifndef OCTET_CLS_
#define OCTET_CLS_
-//=============================================================================
-/**
- * @file octet.h
- *
- * $Id$
- *
- * This class is fully contained and does not rely on or any other
- * SNMP libraries. This class is portable across any platform
- * which supports C++.
- *
- *
- * @author Peter E Mellquist / design/original code Michael R. MacFaden / modified for ACE
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// octet.h
+//
+// = DESCRIPTION
+// This class is fully contained and does not rely on or any other
+// SNMP libraries. This class is portable across any platform
+// which supports C++.
+//
+// = AUTHOR
+// Peter E Mellquist / design/original code
+// Michael R. MacFaden / modified for ACE, added suboid(),collapse ctor's
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -36,112 +41,107 @@
//------------------------------------------------------------------------
#include "asnmp/smival.h"
-/**
- * @class OctetStr
- *
- * @brief Implement RFC1155 Octet SMI data object
- */
-class ASNMP_Export OctetStr : public SnmpSyntax
+class ASNMP_Export OctetStr: public SnmpSyntax
+ // = TITLE
+ // Implement RFC1155 Octet SMI data object
{
public:
- /// construct octet from byte buffer, assume c style string if size == -1
OctetStr( const char *string = "", long size = -1);
+ // construct octet from byte buffer, assume c style string if size == -1
- /// constructor using another octet object
OctetStr ( const OctetStr &octet);
+ // constructor using another octet object
- /// destructor
~OctetStr();
+ // destructor
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// set octet from byte buffer, assume c style string if size == -1
void set_data( const SmiBYTE* string, long int size = -1);
+ // set octet from byte buffer, assume c style string if size == -1
- /// assignment to a string operator overloaded
OctetStr& operator=( const char *string);
+ // assignment to a string operator overloaded
- /// assignment to another oid object overloaded
OctetStr& operator=( const OctetStr &octet);
+ // assignment to another oid object overloaded
- /// equivlence operator overloaded
friend ASNMP_Export bool operator==( const OctetStr &lhs, const OctetStr &rhs);
+ // equivlence operator overloaded
- /// not equivlence operator overloaded
friend ASNMP_Export bool operator!=( const OctetStr &lhs, const OctetStr &rhs);
+ // not equivlence operator overloaded
- /// less than < overloaded
friend ASNMP_Export bool operator<( const OctetStr &lhs, const OctetStr &rhs);
+ // less than < overloaded
- /// less than <= overloaded
friend ASNMP_Export bool operator<=( const OctetStr &lhs,const OctetStr &rhs);
+ // less than <= overloaded
- /// greater than > overloaded
friend ASNMP_Export bool operator>( const OctetStr &lhs, const OctetStr &rhs);
+ // greater than > overloaded
- /// greater than >= overloaded
friend ASNMP_Export bool operator>=( const OctetStr &lhs, const OctetStr &rhs);
+ // greater than >= overloaded
- /// equivlence operator overloaded
friend ASNMP_Export bool operator==( const OctetStr &lhs,const char *rhs);
+ // equivlence operator overloaded
- /// not equivlence operator overloaded
friend ASNMP_Export bool operator!=( const OctetStr &lhs,const char *rhs);
+ // not equivlence operator overloaded
- /// less than < operator overloaded
friend ASNMP_Export bool operator<( const OctetStr &lhs,const char *rhs);
+ // less than < operator overloaded
- /// less than <= operator overloaded
friend ASNMP_Export bool operator<=( const OctetStr &lhs,char *rhs);
+ // less than <= operator overloaded
- /// greater than > operator overloaded
friend ASNMP_Export bool operator>( const OctetStr &lhs,const char *rhs);
+ // greater than > operator overloaded
- /// greater than >= operator overloaded
friend ASNMP_Export bool operator>=( const OctetStr &lhs,const char *rhs);
+ // greater than >= operator overloaded
- /// append operator, appends a string
OctetStr& operator+=( const char *a);
+ // append operator, appends a string
- /// appends an int
OctetStr& operator+=( const char c);
+ // appends an int
- /// append one octetStr to another
OctetStr& operator+=( const OctetStr& octetstr);
+ // append one octetStr to another
- /// for non const [], allows reading and writing
SmiBYTE& operator[]( int position);
+ // for non const [], allows reading and writing
- /**
- * compare the n leftmost bytes (left-to-right)
- * returns 0, equal
- * returns -1, <
- * returns 1 , >
- */
int left_comparison( const long n, const OctetStr &o) const;
+ // compare the n leftmost bytes (left-to-right)
+ // returns 0, equal
+ // returns -1, <
+ // returns 1 , >
- /// return the len of the oid
size_t length() const ;
+ // return the len of the oid
- /// returns validity
int valid() const;
+ // returns validity
- /// returns pointer to internal data
SmiBYTE *data() const;
+ // returns pointer to internal data
- /// get a printable ASCII value
const char *to_string();
+ // get a printable ASCII value
- /// get an ASCII formattted hex dump of the contents
const char *to_string_hex();
+ // get an ASCII formattted hex dump of the contents
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
protected:
//----[ instance variables ]
diff --git a/ASNMP/asnmp/oid.h b/ASNMP/asnmp/oid.h
index 77118b518f0..7de02013ef4 100644
--- a/ASNMP/asnmp/oid.h
+++ b/ASNMP/asnmp/oid.h
@@ -1,25 +1,29 @@
+// -*-C++-*-
+// $Id$
#ifndef OID_CLS_
#define OID_CLS_
-//=============================================================================
-/**
- * @file oid.h
- *
- * $Id$
- *
- * This class is fully contained and does not rely on or any other
- * SNMP libraries. This class is portable across any platform
- * which supports C++. Ported to ACE by Mike MacFaden mrm@cisco.com
- * and modified for MT. Some API cleanup: collapse constructors,
- * add suboid() method remove unnecessary overload, and update a few
- * names and types to improve clarity.
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// oid.h
+//
+// = DESCRIPTION
+// This class is fully contained and does not rely on or any other
+// SNMP libraries. This class is portable across any platform
+// which supports C++. Ported to ACE by Mike MacFaden mrm@cisco.com
+// and modified for MT. Some API cleanup: collapse constructors,
+// add suboid() method remove unnecessary overload, and update a few
+// names and types to improve clarity.
+//
+// = AUTHOR
+// Peter E Mellquist
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -45,129 +49,122 @@
#include "asnmp/smival.h" // derived class for all values
-/**
- * @class Oid
- *
- * @brief Implement RFC 1155 Object Identifier (OID) datatype
- */
-class ASNMP_Export Oid : public SnmpSyntax
+class ASNMP_Export Oid: public SnmpSyntax
+ // = TITLE
+ // Implement RFC 1155 Object Identifier (OID) datatype
{
public:
- /// constructor using a dotted string
Oid( const char * dotted_oid_string = "", size_t size = unsigned(-1) );
+ // constructor using a dotted string
- /// constructor using another oid object
Oid ( const Oid &oid);
+ // constructor using another oid object
- /// constructor from raw form
Oid(const unsigned long *raw_oid, size_t oid_len);
+ // constructor from raw form
- /// destructor
~Oid();
+ // destructor
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// assignment to another oid object overloaded
Oid& operator=( const Oid &oid);
+ // assignment to another oid object overloaded
- /// equal operator overloaded
friend ASNMP_Export bool operator==( const Oid &lhs,const Oid &rhs);
+ // equal operator overloaded
- /// not equal operator overloaded
friend ASNMP_Export bool operator!=( const Oid &lhs,const Oid &rhs);
+ // not equal operator overloaded
- /// less than < overloaded
friend ASNMP_Export bool operator<( const Oid &lhs,const Oid &rhs);
+ // less than < overloaded
- /// less than <= overloaded
friend ASNMP_Export bool operator<=( const Oid &lhs,const Oid &rhs);
+ // less than <= overloaded
- /// greater than > overloaded
friend ASNMP_Export bool operator>( const Oid &lhs,const Oid &rhs);
+ // greater than > overloaded
- /// greater than >= overloaded
friend ASNMP_Export bool operator>=( const Oid &lhs,const Oid &rhs);
+ // greater than >= overloaded
- /// append operator, appends a string
Oid& operator+=( const char *a);
+ // append operator, appends a string
- /// appends an int
Oid& operator+=( const unsigned long i);
+ // appends an int
- /// appends an Oid
Oid& operator+=( const Oid &o);
+ // appends an Oid
- /// allows element access
unsigned long & operator[]( size_t position);
+ // allows element access
- /// return the WinSnmp oid part
SmiLPOID oidval();
+ // return the WinSnmp oid part
- /// reset the data from raw 1 byte format
void set_data( const char *dotted_oid_string);
+ // reset the data from raw 1 byte format
- /// reset the data from raw 4byte integer format
void set_data( const unsigned long *raw_oid, const size_t oid_len);
+ // reset the data from raw 4byte integer format
- /// return the len of the oid
size_t length() const;
+ // return the len of the oid
- /// trim off the n rightmost values of an oid
void trim( const size_t how_many = 1);
+ // trim off the n rightmost values of an oid
- /// the equivalent of a substr(new_str, 0, 1)
int suboid(Oid& oid, size_t start = 0, size_t how_many = size_t (-1));
+ // the equivalent of a substr(new_str, 0, 1)
- /**
- * compare the n leftmost bytes (left-to-right)
- * returns 0, equal
- * returns -1, <
- * returns 1 , >
- */
int left_comparison( const unsigned long n, const Oid &o) const;
+ // compare the n leftmost bytes (left-to-right)
+ // returns 0, equal
+ // returns -1, <
+ // returns 1 , >
- /**
- * compare the n rightmost bytes (right-to-left)
- * returns 0, equal
- * returns -1, <
- * returns 1 , >
- */
int right_comparison( const unsigned long n, const Oid &o) const;
+ // compare the n rightmost bytes (right-to-left)
+ // returns 0, equal
+ // returns -1, <
+ // returns 1 , >
- /// is the Oid object valid
int valid() const;
+ // is the Oid object valid
- /// return dotted string value from the right
- /// where the user specifies how many positions to print
const char *to_string();
+ // return dotted string value from the right
+ // where the user specifies how many positions to print
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=( SnmpSyntax &val);
+ // copy an instance of this Value
protected:
- /// used for returning oid string
char *iv_str;
+ // used for returning oid string
- /// convert a string to an smi oid
int StrToOid( const char *string, SmiLPOID dstOid, size_t& how_many_bytes);
+ // convert a string to an smi oid
- /// clone an smi oid
int OidCopy( SmiLPOID srcOid, SmiLPOID dstOid, size_t& how_many_bytes);
+ // clone an smi oid
- /// convert an smi oid to its string representation
int OidToStr(SmiLPOID srcOid, SmiUINT32 size, char *string, size_t& how_many_bytes);
+ // convert an smi oid to its string representation
private:
- /// release memory, re-init data members
void set_invalid();
+ // release memory, re-init data members
- /// initialize object data members
void set_null();
+ // initialize object data members
void init_value( const SmiLPOID srcOid, size_t len);
void init_value(const unsigned long *raw_oid, size_t oid_len);
};
diff --git a/ASNMP/asnmp/oid_def.h b/ASNMP/asnmp/oid_def.h
index 31ccbfa3e4a..bdf46ec4f88 100644
--- a/ASNMP/asnmp/oid_def.h
+++ b/ASNMP/asnmp/oid_def.h
@@ -1,19 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef OID_DEF
#define OID_DEF
-//=============================================================================
-/**
- * @file oid_def.h
- *
- * $Id$
- *
- * Well known Oids defined in RFC 1215
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// address.cpp
+//
+// = DESCRIPTION
+// Well known Oids defined in RFC 1215
+//
+// = AUTHOR
+// Peter E Mellquist
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
diff --git a/ASNMP/asnmp/pdu.h b/ASNMP/asnmp/pdu.h
index a2d84388da0..cf2f3ee8aaf 100644
--- a/ASNMP/asnmp/pdu.h
+++ b/ASNMP/asnmp/pdu.h
@@ -1,21 +1,23 @@
/* -*-C++-*- */
+// $Id$
#ifndef PDU_CLS_
#define PDU_CLS_
-//=============================================================================
-/**
- * @file pdu.h
- *
- * $Id$
- *
- * Pdu class definition. Encapsulation of an SMI Protocol
- * Data Unit (PDU) aka Packet in C++.
- *
- *
- * @author Peter E Mellquist original code Michael MacFaden mrm@cisco.com ACE port
- * @author add iterator class for pdus
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// pdu.h
+//
+// = DESCRIPTION
+// Pdu class definition. Encapsulation of an SMI Protocol
+// Data Unit (PDU) aka Packet in C++.
+//
+// = AUTHOR
+// Peter E Mellquist original code
+// Michael MacFaden mrm@cisco.com ACE port, add iterator class for pdus
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -38,181 +40,173 @@
#define MAX_VBS 25
#include "asnmp/vb.h" // include Vb class definition
-/**
- * @class Pdu
- *
- * @brief Protocol Data Unit (PDU) concrete class. An abstraction of the
- * data packet used to by two SNMP sessions to communicate.
- */
class ASNMP_Export Pdu
+ // = TITLE
+ // Protocol Data Unit (PDU) concrete class. An abstraction of the
+ // data packet used to by two SNMP sessions to communicate.
{
public:
- /// constructor no args
Pdu( void);
+ // constructor no args
- /// constructor with vbs and count
Pdu( Vb* pvbs, const int pvb_count);
+ // constructor with vbs and count
- /// constructor with another Pdu instance
Pdu( const Pdu &pdu);
+ // constructor with another Pdu instance
- /// destructor
~Pdu();
+ // destructor
- /// assignment to another Pdu object overloaded
Pdu& operator=( const Pdu &pdu);
+ // assignment to another Pdu object overloaded
- /// append a vb to the pdu
Pdu& operator+=( Vb &vb);
+ // append a vb to the pdu
// TODO: add Pdu& operator-=(const Vb &vb);
- /// extract all Vbs from Pdu
int get_vblist( Vb* pvbs, const int pvb_count);
+ // extract all Vbs from Pdu
- /// deposit all Vbs to Pdu
int set_vblist( Vb* pvbs, const int pvb_count);
+ // deposit all Vbs to Pdu
- /// get a particular vb
- /// where 0 is the first vb
int get_vb( Vb &vb, const int index = 0) const;
+ // get a particular vb
+ // where 0 is the first vb
- /// set a particular vb
- /// where 0 is the first vb
int set_vb( Vb &vb, const int index);
+ // set a particular vb
+ // where 0 is the first vb
- /// return number of vbs
int get_vb_count() const;
+ // return number of vbs
- /// return the error status
int get_error_status() const;
+ // return the error status
- /// return the complete error info from this pdu
const char *agent_error_reason();
+ // return the complete error info from this pdu
- /// set the error status
friend ASNMP_Export void set_error_status( Pdu *pdu, const int status);
+ // set the error status
- /// return the error index
int get_error_index() const;
+ // return the error index
- /// set the error index
friend ASNMP_Export void set_error_index( Pdu *pdu, const int index);
+ // set the error index
- /// clear error status
friend ASNMP_Export void clear_error_status( Pdu *pdu);
+ // clear error status
- /// clear error index
friend ASNMP_Export void clear_error_index( Pdu *pdu);
+ // clear error index
- /// return the request id
unsigned long get_request_id() const;
+ // return the request id
- /// set the request id
friend void set_request_id( Pdu *pdu, const unsigned long rid);
+ // set the request id
- /// get the pdu type
unsigned short get_type() const;
+ // get the pdu type
- /// set the pdu type
void set_type( unsigned short type);
+ // set the pdu type
- /// returns validity of Pdu instance
int valid() const;
+ // returns validity of Pdu instance
- /// trim off count vbs from the end of the vb list
int trim(const int count=1);
+ // trim off count vbs from the end of the vb list
- /// delete a Vb anywhere within the Pdu
int delete_vb( const int position);
+ // delete a Vb anywhere within the Pdu
- /// delete_all vbs in pdu
void delete_all_vbs();
+ // delete_all vbs in pdu
- /// set notify timestamp
void set_notify_timestamp( const TimeTicks & timestamp);
+ // set notify timestamp
- /// get notify timestamp
void get_notify_timestamp( TimeTicks & timestamp) const;
+ // get notify timestamp
- /// set the notify id
void set_notify_id( const Oid id);
+ // set the notify id
- /// get the notify id
void get_notify_id( Oid &id) const;
+ // get the notify id
- /// set the notify enterprise
void set_notify_enterprise( const Oid &enterprise);
+ // set the notify enterprise
- /// get the notify enterprise
void get_notify_enterprise( Oid & enterprise) const;
+ // get the notify enterprise
- /// return fomatted version of this object
const char *to_string();
+ // return fomatted version of this object
protected:
- /// pointer to array of Vbs
Vb *vbs_[MAX_VBS];
+ // pointer to array of Vbs
- /// count of Vbs
int vb_count_;
+ // count of Vbs
- /// SMI error status
int error_status_;
+ // SMI error status
- /// SMI error index
int error_index_;
+ // SMI error index
- /// valid boolean status of object construction
- /// SMI request id
int validity_;
+ // valid boolean status of object construction
unsigned long request_id_;
+ // SMI request id
- /// derived at run time based on request type
unsigned short pdu_type_;
+ // derived at run time based on request type
- /**
- * a timestamp associated with an infor
- * for notify Pdu objects only
- * traps & notifies
- */
TimeTicks notify_timestamp_;
+ // a timestamp associated with an infor
+ // for notify Pdu objects only
+ // traps & notifies
- /// an id
Oid notify_id_;
+ // an id
Oid notify_enterprise_;
private:
- /// buffer for to_string()
char *output_;
+ // buffer for to_string()
};
-/**
- * @class VbIter
- *
- * @brief Utility class to iterate once through a PDU varbind list
- */
class ASNMP_Export VbIter
+ // = TITLE
+ // Utility class to iterate once through a PDU varbind list
{
public:
- /// default constructor
VbIter(Pdu& pdu);
+ // default constructor
- /// returns 1 if ok, else 0 if none left
int next(Vb& vb);
+ // returns 1 if ok, else 0 if none left
private:
- /// disallow copy constructor use
VbIter(const VbIter&);
+ // disallow copy constructor use
- /// current object in list
int idx_;
+ // current object in list
- /// ptr to pdu being interated over
Pdu *pdu_;
+ // ptr to pdu being interated over
};
#endif //PDU_CLS_
diff --git a/ASNMP/asnmp/sagent.cpp b/ASNMP/asnmp/sagent.cpp
index 8ee2fdb5b8d..70fef1fc5bd 100644
--- a/ASNMP/asnmp/sagent.cpp
+++ b/ASNMP/asnmp/sagent.cpp
@@ -55,7 +55,7 @@ int sagent::handle_input(ACE_HANDLE fd)
const ACE_INET_Addr &ta = tr.get_from_addr();
ACE_TCHAR buf_tmp[MAXHOSTNAMELEN + 1];
ta.addr_to_string (buf_tmp, MAXHOSTNAMELEN);
- UdpAddress ra (ACE_TEXT_ALWAYS_CHAR (buf_tmp));
+ UdpAddress ra (ACE_TEXT_TO_CHAR_IN (buf_tmp));
tgt_.set_address(ra);
diff --git a/ASNMP/asnmp/sagent.h b/ASNMP/asnmp/sagent.h
index d220c3ed459..ced6bb4fff5 100644
--- a/ASNMP/asnmp/sagent.h
+++ b/ASNMP/asnmp/sagent.h
@@ -1,20 +1,24 @@
/* -*-C++-*- */
+// $Id$
#ifndef SAGENT_CLS_
#define SAGENT_CLS_
-//=============================================================================
-/**
- * @file sagent.h
- *
- * $Id$
- *
- * SNMP agent class defintion. The sagent class provides an object oriented
- * approach for creating SNMP Agents. The sagent class is an encapsulation of SNMP
- * sessions, gets, sets, etc.
- *
- * @author Michael R. MacFaden
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// sagent.h
+//
+// = DESCRIPTION
+// SNMP agent class defintion. The sagent class provides an object oriented
+// approach for creating SNMP Agents. The sagent class is an encapsulation of SNMP
+// sessions, gets, sets, etc.
+//
+// = AUTHOR
+// Michael R. MacFaden
+//
+// ============================================================================
#include "ace/Reactor.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -35,13 +39,10 @@
#define DEF_AGENT_PORT (161)
-/**
- * @class sagent
- *
- * @brief Concrete class sagent defines the session and interface to
- * communicate with another SNMP Version 1 manager
- */
class ASNMP_Export sagent : public ACE_Event_Handler, private Snmp
+ // = TITLE
+ // Concrete class sagent defines the session and interface to
+ // communicate with another SNMP Version 1 manager
{
public:
@@ -49,24 +50,24 @@ class ASNMP_Export sagent : public ACE_Event_Handler, private Snmp
// override the next three methods (callbacks) to implment your agent
//
- /// retrieve data from a peer agent for a given list of oid values
virtual int handle_get( Pdu &pdu, UdpTarget &target) = 0;
+ // retrieve data from a peer agent for a given list of oid values
- /// retrieve data lexically adjacent to the oids specified in the pdu
- /// from the peer agent
virtual int handle_get_next( Pdu &pdu, UdpTarget &target) = 0;
+ // retrieve data lexically adjacent to the oids specified in the pdu
+ // from the peer agent
- /// set data in the agent from the list of oids in the pdu
virtual int handle_set( Pdu &pdu, UdpTarget &target) = 0;
+ // set data in the agent from the list of oids in the pdu
- /// new pdu received from mgr (reactor calls this)
virtual int handle_input(ACE_HANDLE);
+ // new pdu received from mgr (reactor calls this)
- /// retrieve io descriptor (reactor uses this)
virtual ACE_HANDLE get_handle() const;
+ // retrieve io descriptor (reactor uses this)
- /// send a response pdu to the mgr
int respond(Pdu& pdu, UdpTarget& tgt);
+ // send a response pdu to the mgr
protected:
sagent(unsigned short port = DEF_AGENT_PORT);
diff --git a/ASNMP/asnmp/smi.h b/ASNMP/asnmp/smi.h
index 3e505c64cb8..4fac7f8c1bc 100644
--- a/ASNMP/asnmp/smi.h
+++ b/ASNMP/asnmp/smi.h
@@ -1,17 +1,23 @@
/* -*-C++-*- */
+// $Id$
#ifndef SMIDEF_
#define SMIDEF_
-//=============================================================================
-/**
- * @file smi.h
- *
- * $Id$
- *
- * Address class definition. Encapsulates various network
- * addresses into easy to use, safe and portable classes.
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// smi.h
+//
+// = DESCRIPTION
+// Address class definition. Encapsulates various network
+// addresses into easy to use, safe and portable classes.
+//
+// = AUTHOR
+// ??
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
diff --git a/ASNMP/asnmp/smival.h b/ASNMP/asnmp/smival.h
index e754206f506..c8bd6b8a5c9 100644
--- a/ASNMP/asnmp/smival.h
+++ b/ASNMP/asnmp/smival.h
@@ -1,20 +1,24 @@
/* -*-C++-*- */
+// $Id$
#ifndef SMIVALUE_
#define SMIVALUE_
-//=============================================================================
-/**
- * @file smival.h
- *
- * $Id$
- *
- * SMIValue class definition. Superclass for the various types
- * of SNMP values (Address, Oid, Octet, etc.). Provides
- * only a few functions, most info is in subclass.
- *
- *
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// tests
+//
+// = FILENAME
+// smival.h
+//
+// = DESCRIPTION
+// SMIValue class definition. Superclass for the various types
+// of SNMP values (Address, Oid, Octet, etc.). Provides
+// only a few functions, most info is in subclass.
+//
+// = AUTHOR
+// Jeff Meyer
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
diff --git a/ASNMP/asnmp/snmp.h b/ASNMP/asnmp/snmp.h
index 5bae232baa0..c46e9d078ce 100644
--- a/ASNMP/asnmp/snmp.h
+++ b/ASNMP/asnmp/snmp.h
@@ -1,23 +1,26 @@
/* -*-C++-*- */
+// $Id$
#ifndef SNMP_CLS_
#define SNMP_CLS_
-//=============================================================================
-/**
- * @file snmp.h
- *
- * $Id$
- *
- * SNMP class defintion. The Snmp class provides an object oriented
- * approach to SNMP. The SNMP class is an encapsulation of SNMP
- * sessions, gets, sets, etc. The class manages all SNMP
- * resources and provides complete retry and timeout capability.
- *
- *
- * @author Peter E Mellquist design
- * @author first implementation Michael R. MacFaden port to ACE / use Reactor pattern
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// snmp.h
+//
+// = DESCRIPTION
+// SNMP class defintion. The Snmp class provides an object oriented
+// approach to SNMP. The SNMP class is an encapsulation of SNMP
+// sessions, gets, sets, etc. The class manages all SNMP
+// resources and provides complete retry and timeout capability.
+//
+// = AUTHOR
+// Peter E Mellquist design, first implementation
+// Michael R. MacFaden port to ACE / use Reactor pattern
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -60,13 +63,10 @@ class ASNMP_Export Snmp_Result
};
// Snmp session class - supports Version 1 operations in blocking mode
-/**
- * @class Snmp
- *
- * @brief Concrete class Snmp defined the session and interface to
- * communicate with another SNMP Version 1 agent
- */
class ASNMP_Export Snmp : public transaction_result
+ // = TITLE
+ // Concrete class Snmp defined the session and interface to
+ // communicate with another SNMP Version 1 agent
{
Snmp_Result * result_;
Pdu * pdu_;
@@ -75,41 +75,39 @@ public:
Snmp(unsigned short port = INADDR_ANY);
virtual ~Snmp();
- /// retrieve data from a peer agent for a given list of oid values
- /// default port 161
int get( Pdu &pdu, UdpTarget &target, Snmp_Result * cb = 0);
+ // retrieve data from a peer agent for a given list of oid values
+ // default port 161
- /**
- * retrieve data lexically adjacent to the oids specified in the pdu
- * from the peer agent
- * default port 161
- */
int get_next( Pdu &pdu, UdpTarget &target, Snmp_Result * cb = 0);
+ // retrieve data lexically adjacent to the oids specified in the pdu
+ // from the peer agent
+ // default port 161
- /// set data in the agent from the list of oids in the pdu
- /// default port 161
int set( Pdu &pdu, UdpTarget &target, Snmp_Result * cb = 0);
+ // set data in the agent from the list of oids in the pdu
+ // default port 161
- /// send an SNMPv1 trap (unreliable) to a remote system (def port 162)
int trap( Pdu &pdu, UdpTarget &target);
+ // send an SNMPv1 trap (unreliable) to a remote system (def port 162)
- /// status of object after construction
int valid() const;
+ // status of object after construction
- /// given error code, return string reason
static const char * error_string(int code);
+ // given error code, return string reason
- /// retrieve a reason string if any of the above commands fail
const char * error_string();
+ // retrieve a reason string if any of the above commands fail
- /// for async transaction results
void result(transaction * t, int rc);
+ // for async transaction results
- /// allow the host name to be overriden
static void override_host_name(const char* name);
+ // allow the host name to be overriden
- /// returns the overriden host name
static void get_host_name(char* name, int len);
+ // returns the overriden host name
protected:
void check_default_port(UdpTarget& target,unsigned short port=DEF_AGENT_PORT);
@@ -119,17 +117,17 @@ protected:
Snmp(const Snmp&);
- /// io object
ACE_SOCK_Dgram iv_snmp_session_;
+ // io object
- /// status of construction
int construct_status_;
+ // status of construction
- /// result code from last transaction
int last_transaction_status_;
+ // result code from last transaction
- /// transaction request id
unsigned req_id_;
+ // transaction request id
static char host_name_[MAXHOSTNAMELEN];
};
diff --git a/ASNMP/asnmp/snmperrs.h b/ASNMP/asnmp/snmperrs.h
index 7aafdc0619a..08a4997217e 100644
--- a/ASNMP/asnmp/snmperrs.h
+++ b/ASNMP/asnmp/snmperrs.h
@@ -1,18 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef SNMPERRS_H_
#define SNMPERRS_H_
-//=============================================================================
-/**
- * @file snmperrs.h
- *
- * $Id$
- *
- * Definition of error macros and error strings
- *
- *
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// snmperrs.h
+//
+// = DESCRIPTION
+// Definition of error macros and error strings
+//
+// = AUTHOR
+// Jeff Meyer
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
diff --git a/ASNMP/asnmp/target.h b/ASNMP/asnmp/target.h
index 084088e5f4f..1a42cb75b37 100644
--- a/ASNMP/asnmp/target.h
+++ b/ASNMP/asnmp/target.h
@@ -1,19 +1,23 @@
+// -*-C++-*-
+// $Id$
#ifndef TARGET_
#define TARGET_
-//=============================================================================
-/**
- * @file target.h
- *
- * $Id$
- *
- * @brief
- *
- * @author Peter E Mellquist Michael R. MacFaden (ported to ACE)
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// target.h
+//
+// = DESCRIPTION
+//
+// = AUTHOR
+// Peter E Mellquist
+// Michael R. MacFaden (ported to ACE)
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -66,183 +70,173 @@ enum ASNMP_Defs {
// Abstract class used to provide a virtual interface into Targets
//
-/**
- * @class SnmpTarget
- *
- * @brief Abstract Base class SnmpTarget is used to Collect all transmission
- * details to communicate with an SNMP
- */
class ASNMP_Export SnmpTarget
+ // = TITLE
+ // Abstract Base class SnmpTarget is used to Collect all transmission
+ // details to communicate with an SNMP
{
public:
- /// allow destruction of derived classes
virtual ~SnmpTarget();
+ // allow destruction of derived classes
- /// return validity of target
int valid() const;
+ // return validity of target
- /// set the retry value
void set_retry( const int r);
+ // set the retry value
- /// set the object's timeout (in seconds)
void set_timeout( const unsigned long t);
+ // set the object's timeout (in seconds)
- /// set the instance version
void set_version( const snmp_version v);
+ // set the instance version
- /// all classes constructed will have this write community string
void set_max_pdu_size(const unsigned long max_pdu_sz);
+ // all classes constructed will have this write community string
- /// change the "class" default default timeout (in seconds)
void set_default_timeout( const unsigned long t);
+ // change the "class" default default timeout (in seconds)
- /// change the default send retries
void set_default_retry( const int r);
+ // change the default send retries
- /// all classes constructed will have this write community string
void set_default_max_pdu_size(const unsigned long max_pdu_sz);
+ // all classes constructed will have this write community string
- /// change class default
void set_default_version( const snmp_version v);
+ // change class default
// *** get methods ***
- /// get the retry value
int get_default_retry() const;
+ // get the retry value
- /// get the timeout (seconds)
unsigned long get_timeout() const;
+ // get the timeout (seconds)
- /// get instance max buffer size
unsigned long get_max_pdu_size() const;
+ // get instance max buffer size
- /// all classes constructed will have this write community string
void get_default_max_pdu_size(const unsigned long max_pdu_sz);
+ // all classes constructed will have this write community string
- /// get the version
snmp_version get_version() const;
+ // get the version
snmp_version get_default_version() const;
- /// return send retry number for this instancd
int get_retry() const;
+ // return send retry number for this instancd
- /**
- * virtual clone operation for creating a new SnmpTarget from an existing
- * SnmpTarget. The caller MUST use the delete operation on the return
- * value when done.
- */
virtual SnmpTarget *clone() const = 0;
+ // virtual clone operation for creating a new SnmpTarget from an existing
+ // SnmpTarget. The caller MUST use the delete operation on the return
+ // value when done.
- /// manipulate the base part
friend bool operator==(const SnmpTarget& lhs, const SnmpTarget& rhs);
+ // manipulate the base part
SnmpTarget& operator=(const SnmpTarget& lhs);
protected:
- /// SnmpTarget(const SnmpTarget &);
SnmpTarget();
+ // SnmpTarget(const SnmpTarget &);
- /// used by derived class instances
int validity_;
+ // used by derived class instances
- /// instance value xmit timeout in milli secs
unsigned long timeout_;
+ // instance value xmit timeout in milli secs
- /// instance value number of retries
int retries_;
+ // instance value number of retries
- /// size of pdu
unsigned max_pdu_size_;
+ // size of pdu
- /// instance value the snmp version
snmp_version version_;
+ // instance value the snmp version
// class wide default values
- /// xmit timeout in secs
static unsigned long default_timeout_;
+ // xmit timeout in secs
- /// number of retries
static int default_retries_;
+ // number of retries
- /// snmp protocol version
static unsigned long default_max_pdu_size_;
static snmp_version default_version_;
+ // snmp protocol version
};
//----[ UdpTarget class ]----------------------------------------------
// UDP/IP transport using "community string" based agents (targets)
//
-/**
- * @class UdpTarget
- *
- * @brief Concrete class UdpTarget contains all Details for communicating
- * with a SNMPv1 agent over UDP/IPv4 transport
- */
-class ASNMP_Export UdpTarget : public SnmpTarget
+class ASNMP_Export UdpTarget: public SnmpTarget
+ // = TITLE
+ // Concrete class UdpTarget contains all Details for communicating
+ // with a SNMPv1 agent over UDP/IPv4 transport
{
public:
UdpTarget();
- /**
- * constructor with only address
- * assumes default as public, public
- * can be constructed with IP address object
- */
UdpTarget( const UdpAddress& udp);
+ // constructor with only address
+ // assumes default as public, public
+ // can be constructed with IP address object
- /// can be constructed with Udp address object TODO: merge addresses
UdpTarget( ACE_INET_Addr& ace_inet_addr);
+ // can be constructed with Udp address object TODO: merge addresses
- /// destructor
~UdpTarget();
+ // destructor
// ** set ***
- /// set the read community using an OctetStr
void set_read_community( const OctetStr& new_read_community);
+ // set the read community using an OctetStr
- /// set the write community using an OctetStr
void set_write_community( const OctetStr& write_community);
+ // set the write community using an OctetStr
- /// set the address
int set_address( UdpAddress &udp_address);
+ // set the address
// ** get ***
- /// get the read community as an Octet Str object
void get_read_community( OctetStr& read_community_oct) const;
+ // get the read community as an Octet Str object
- /// get the write community as an OctetStr
void get_write_community( OctetStr &write_community_oct) const;
+ // get the write community as an OctetStr
- /// get the address
void get_address( UdpAddress& address) const;
+ // get the address
- /// all classes constructed will have this read community string
void set_default_read_community(const OctetStr& rd_community);
+ // all classes constructed will have this read community string
- /// all classes constructed will have this write community string
void set_default_write_community(const OctetStr& wr_community);
+ // all classes constructed will have this write community string
- /// all classes constructed will have this read community string
void get_default_read_community(OctetStr& rd_community) const;
+ // all classes constructed will have this read community string
- /// all classes constructed will have this write community string
void get_default_write_community(OctetStr& wr_community) const;
+ // all classes constructed will have this write community string
- /// overloaded assignment
UdpTarget& operator=( const UdpTarget& target);
+ // overloaded assignment
- /// compare two C targets
friend bool operator==( const UdpTarget &lhs, const UdpTarget &rhs);
+ // compare two C targets
- /// string representation of object
const char *to_string();
+ // string representation of object
- /// clone from existing UdpTarget
SnmpTarget *clone() const;
+ // clone from existing UdpTarget
protected:
static OctetStr default_rd_community_;
@@ -252,8 +246,8 @@ class ASNMP_Export UdpTarget : public SnmpTarget
UdpAddress udp_address_;
snmp_version version_;
- /// to_string() rep of data
char output_buffer_[MAX_TARGET_STRING_REP];
+ // to_string() rep of data
};
diff --git a/ASNMP/asnmp/timetick.h b/ASNMP/asnmp/timetick.h
index ca52a3e1d9d..9de4687a832 100644
--- a/ASNMP/asnmp/timetick.h
+++ b/ASNMP/asnmp/timetick.h
@@ -1,19 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef TIMETICKS_
#define TIMETICKS_
-//=============================================================================
-/**
- * @file timetick.h
- *
- * $Id$
- *
- * Class definition for SMI Timeticks class.
- *
- *
- * @author Michael R. MacFaden <mrm@cisco.com>
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// timetick.h
+//
+// = DESCRIPTION
+// Class definition for SMI Timeticks class.
+//
+// = AUTHOR
+// Michael R. MacFaden <mrm@cisco.com>
+//
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -39,47 +42,44 @@
// integers but is recognized as a distinct SMI type. TimeTicks
// objects may be get or set into Vb objects.
//
-/**
- * @class TimeTicks
- *
- * @brief Define RFC1155 TimeTicks Data object
- */
-class ASNMP_Export TimeTicks : public SnmpUInt32
+class ASNMP_Export TimeTicks: public SnmpUInt32
+ // = TITLE
+ // Define RFC1155 TimeTicks Data object
{
public:
TimeTicks( const unsigned long i = 0);
- /// copy constructor
TimeTicks( const TimeTicks &t);
+ // copy constructor
- /// destructor
~TimeTicks();
+ // destructor
- /// syntax type
SmiUINT32 get_syntax();
+ // syntax type
- /// get a printable ASCII value
const char *to_string();
+ // get a printable ASCII value
- /// create a new instance of this Value
SnmpSyntax *clone() const;
+ // create a new instance of this Value
- /// copy an instance of this Value
SnmpSyntax& operator=(SnmpSyntax &val);
+ // copy an instance of this Value
- /// overloaded assignment
TimeTicks& operator=( const TimeTicks &uli);
+ // overloaded assignment
- /// overloaded assignment
TimeTicks& operator=( const unsigned long int i);
+ // overloaded assignment
- /// otherwise, behave like an unsigned long
operator unsigned long();
+ // otherwise, behave like an unsigned long
protected:
- /// for storing printed form
char output_buffer[TICKOUTBUF];
+ // for storing printed form
};
#endif // TIMETICKS_
diff --git a/ASNMP/asnmp/transaction.cpp b/ASNMP/asnmp/transaction.cpp
index 2f29cf79544..2964ff8a1f2 100644
--- a/ASNMP/asnmp/transaction.cpp
+++ b/ASNMP/asnmp/transaction.cpp
@@ -106,7 +106,7 @@ int transaction::run(transaction_result * r)
retry_counter_ = 0;
// register a time handler and a socket with this
- ACE_Time_Value to (params_.get_timeout());
+ ACE_Time_Value to = params_.get_timeout();
if (reactor->schedule_timer(this, 0, to, to) < 0)
return SNMP_CLASS_INTERNAL_ERROR;
@@ -122,18 +122,19 @@ int transaction::handle_input (ACE_HANDLE)
delete [] (char*) receive_iovec_.iov_base;
reset_receive_buffer(receive_iovec_);
int rc = session_.recv(&receive_iovec_, receive_addr_, 0);
- if (rc == -1)
- {
+ if (rc == -1) {
delete [] (char*) receive_iovec_.iov_base;
reset_receive_buffer(receive_iovec_);
if (result_)
- result_->result(this, SNMP_CLASS_RESOURCE_UNAVAIL);
+ result_->result(this, SNMP_CLASS_RESOURCE_UNAVAIL);
return SNMP_CLASS_RESOURCE_UNAVAIL;
- }
+ }
if (result_)
- result_->result(this, rc);
-
- return 0;
+ {
+ result_->result(this, rc);
+ return 0;
+ }
+ return rc;
}
int transaction::handle_timeout(const ACE_Time_Value &,
@@ -200,8 +201,8 @@ int transaction::send()
transaction_result::~transaction_result() {}
-ACE_HANDLE
-transaction::get_handle () const
+ACE_HANDLE
+transaction::get_handle () const
{
return session_.get_handle ();
}
diff --git a/ASNMP/asnmp/transaction.h b/ASNMP/asnmp/transaction.h
index d114bd40d1f..98d5890913e 100644
--- a/ASNMP/asnmp/transaction.h
+++ b/ASNMP/asnmp/transaction.h
@@ -1,18 +1,21 @@
/* -*-C++-*- */
+// $Id$
#ifndef TRANSACTION_
#define TRANSACTION_
-//=============================================================================
-/**
- * @file transaction.h
- *
- * $Id$
- *
- * @brief
- *
- * @author Michael R. MacFaden port to ACE / use Reactor pattern
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// transaction.h
+//
+// = DESCRIPTION
+//
+// = AUTHOR
+// Michael R. MacFaden port to ACE / use Reactor pattern
+//
+// ============================================================================
#include "ace/Event_Handler.h"
@@ -26,51 +29,48 @@
#include "asnmp/wpdu.h" // cmu adapter class
#include "ace/SOCK_Dgram.h"
-/**
- * @class transaction
- *
- * @brief Used to manage the details of a particular transaction betwen
- * two SNMP agents. Uses SnmpTarget class to implement retry/timeout
- */
class ASNMP_Export transaction : public ACE_Event_Handler
+ // = TITLE
+ // Used to manage the details of a particular transaction betwen
+ // two SNMP agents. Uses SnmpTarget class to implement retry/timeout
{
int retry_counter_;
transaction_result * result_;
public:
- /// constructor
- /// destructor
transaction(const Pdu& pdu, const UdpTarget& target, ACE_SOCK_Dgram& io);
transaction(ACE_SOCK_Dgram& io);
+ // constructor
~transaction();
+ // destructor
- /// begin polling for values
int run();
int run(transaction_result *r); // Async interface, with callback object
+ // begin polling for values
- /// return pdu with result from agent after run() is completed rc = 0
- /// optionally get community str
int result(Pdu& pdu, char *comm_str = 0, ACE_INET_Addr *from_addr = 0);
+ // return pdu with result from agent after run() is completed rc = 0
+ // optionally get community str
- /// called by reactor when data is ready to be read in from OS memory
- /// used for resend in asynchronous run()
virtual int handle_input (ACE_HANDLE fd);
+ // called by reactor when data is ready to be read in from OS memory
virtual int handle_timeout (const ACE_Time_Value &, const void *);
+ // used for resend in asynchronous run()
- /// transmit buffer command to network...
int send();
+ // transmit buffer command to network...
- /// pre: handle_input called
- /// retrieve the sender's from address from the last pkt
const ACE_INET_Addr& get_from_addr() const;
+ // pre: handle_input called
+ // retrieve the sender's from address from the last pkt
- /// Return session_ handle.
ACE_HANDLE get_handle () const;
+ // Return session_ handle.
private:
- /// disallow copy construction
transaction(const transaction&);
+ // disallow copy construction
wpdu wp_; // wire pdu
UdpTarget params_; // params
diff --git a/ASNMP/asnmp/transaction_result.h b/ASNMP/asnmp/transaction_result.h
index 9ea94c60e8e..7968572d19b 100644
--- a/ASNMP/asnmp/transaction_result.h
+++ b/ASNMP/asnmp/transaction_result.h
@@ -1,19 +1,22 @@
/* -*-C++-*- */
+// $Id$
#ifndef TRANSACTION_RESULT_H_
#define TRANSACTION_RESULT_H_
-//=============================================================================
-/**
- * @file transaction_result.h
- *
- * $Id$
- *
- * An object respresenting a request/reply operation between mgr/agent
- *
- *
- * @author Michael R. MacFaden
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// transaction_result.h
+//
+// = DESCRIPTION
+// An object respresenting a request/reply operation between mgr/agent
+//
+// = AUTHOR
+// Michael R. MacFaden
+//
+// ============================================================================
class transaction;
class ASNMP_Export transaction_result
diff --git a/ASNMP/asnmp/vb.h b/ASNMP/asnmp/vb.h
index b82adb2bc0e..be6bdabfd37 100644
--- a/ASNMP/asnmp/vb.h
+++ b/ASNMP/asnmp/vb.h
@@ -1,24 +1,27 @@
+// -*-C++-*-
+// $Id$
#ifndef VB_CLS_
#define VB_CLS_
-//=============================================================================
-/**
- * @file vb.h
- *
- * $Id$
- *
- * This module contains the class definition for the variable binding (VB)
- * class. The VB class is an encapsulation of a SNMP VB. A VB object is
- * composed of one SNMP++ Oid and one SMI value. The Vb class utilizes Oid
- * objects and thus requires the Oid class. To use this class,
- * set oid, value then call valid() to be sure object was constructed correctly.
- *
- *
- * @author Peter E Mellquist
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// vb.h
+//
+// = DESCRIPTION
+// This module contains the class definition for the variable binding (VB)
+// class. The VB class is an encapsulation of a SNMP VB. A VB object is
+// composed of one SNMP++ Oid and one SMI value. The Vb class utilizes Oid
+// objects and thus requires the Oid class. To use this class,
+// set oid, value then call valid() to be sure object was constructed correctly.
+//
+// = AUTHOR
+// Peter E Mellquist
+// ============================================================================
/*===================================================================
Copyright (c) 1996
Hewlett-Packard Company
@@ -62,144 +65,139 @@
// The vb class keeps its own memory for objects and does not
// utilize pointers to external data structures.
//
-/**
- * @class Vb
- *
- * @brief Implement the concrete Variable Bindings aka Varbind
- * composite type. Varbinds hold 1 Oid and 1 Value (Any SMI value)
- */
class ASNMP_Export Vb
+ // = TITLE
+ // Implement the concrete Variable Bindings aka Varbind
+ // composite type. Varbinds hold 1 Oid and 1 Value (Any SMI value)
{
public:
- /// constructor with no arguments
- /// makes an vb, unitialized (does not make object valid)
Vb( void);
+ // constructor with no arguments
+ // makes an vb, unitialized (does not make object valid)
- /// constructor to initialize the oid
- /// makes a vb with oid portion initialized (does not make object valid)
Vb( const Oid &oid);
+ // constructor to initialize the oid
+ // makes a vb with oid portion initialized (does not make object valid)
- /// constructor to initialize the oid
- /// makes a vb with oid portion and value portion initialized, (valid)
Vb( const Oid& vb, const SnmpSyntax &val, const SmiUINT32=SNMP_CLASS_SUCCESS);
+ // constructor to initialize the oid
+ // makes a vb with oid portion and value portion initialized, (valid)
- /// copy constructor
Vb( const Vb &vb);
+ // copy constructor
- /**
- * destructor
- * if the vb has a oid or an octect string then
- * the associated memory needs to be freed
- */
~Vb();
+ // destructor
+ // if the vb has a oid or an octect string then
+ // the associated memory needs to be freed
- /// return validity of Vb object (both oid and value set return 1 else 0)
int valid() const;
+ // return validity of Vb object (both oid and value set return 1 else 0)
- /// assignment to another Vb object overloaded
Vb& operator=( const Vb &vb);
+ // assignment to another Vb object overloaded
- /// equivlence operator overloaded
friend ASNMP_Export bool operator==( const Vb &lhs, const Vb &rhs);
+ // equivlence operator overloaded
//-----[ set oid / get oid part]------------------------------------------
- /// set value oid only with another oid
void set_oid( const Oid& oid);
+ // set value oid only with another oid
- /// get oid portion
void get_oid( Oid &oid) const;
+ // get oid portion
//-----[ set value part]--------------------------------------------------
- /// set a Vb null, if its not already
void set_null();
+ // set a Vb null, if its not already
- /// returns 0 on success and a value
void set_value( const TimeTicks& ticks);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
void set_value( const Oid& oid);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
void set_value( const Counter32& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
void set_value( const Counter64& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
void set_value( const Gauge32& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
void set_value( const SnmpUInt32& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
void set_value( const SnmpInt32& ctr);
+ // returns 0 on success and a value
- /// get an octet string object
void set_value( const OctetStr& oct_str);
+ // get an octet string object
//----[ get value ]------------------------------------------------
- /// returns 0 on success and a value
int get_value( TimeTicks& ticks);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
int get_value( Oid& oid);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
int get_value( Counter32& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
int get_value( Counter64& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
int get_value( Gauge32& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
int get_value( SnmpUInt32& ctr);
+ // returns 0 on success and a value
- /// returns 0 on success and a value
int get_value( SnmpInt32& ctr);
+ // returns 0 on success and a value
- /// get an octet string object
int get_value( OctetStr& oct_str);
+ // get an octet string object
// escape hatch
- /// for other derived types that can be casted
void set_value( const SnmpSyntax &val);
+ // for other derived types that can be casted
- /// gets a general value
int get_value( SnmpSyntax &val);
+ // gets a general value
- /// return the current syntax
- /// Or.. if a V2 VB exception is present then return the exception value
SmiUINT32 get_syntax();
+ // return the current syntax
+ // Or.. if a V2 VB exception is present then return the exception value
- /// set the exception status
friend ASNMP_Export void set_exception_status( Vb *vb, const SmiUINT32 status);
+ // set the exception status
- /// return fomatted version of this object
const char *to_string();
+ // return fomatted version of this object
- /// returns a formatted version of the value
const char *to_string_value();
+ // returns a formatted version of the value
- /// returns a formatted version of the value
const char *to_string_oid();
+ // returns a formatted version of the value
protected:
- /// display vb as [ oid / value ]
char *output_;
+ // display vb as [ oid / value ]
- /// a vb is made up of a oid
Oid iv_vb_oid_;
+ // a vb is made up of a oid
- /// and a value...
SnmpSyntax *iv_vb_value_;
+ // and a value...
- /// are there any vb exceptions??
SmiUINT32 exception_status_;
+ // are there any vb exceptions??
void free_vb();
};
diff --git a/ASNMP/asnmp/wpdu.h b/ASNMP/asnmp/wpdu.h
index 7feec356bc8..1485560baeb 100644
--- a/ASNMP/asnmp/wpdu.h
+++ b/ASNMP/asnmp/wpdu.h
@@ -1,21 +1,24 @@
/* -*-C++-*- */
+// $Id$
#ifndef WPDU_H_
#define WPDU_H_
-//=============================================================================
-/**
- * @file wpdu.h
- *
- * $Id$
- *
- * Adapter class. Converts a Pdu and GenTarget into a format
- * that can be stuffed out a I/O port
- *
- *
- * @author Michael R. MacFaden re-worked api
- * @author use ACE APIPeter E Mellquist wrote original class snmpmsg
- */
-//=============================================================================
-
+// ============================================================================
+//
+// = LIBRARY
+// asnmp
+//
+// = FILENAME
+// wpdu.h
+//
+// = DESCRIPTION
+// Adapter class. Converts a Pdu and GenTarget into a format
+// that can be stuffed out a I/O port
+//
+// = AUTHOR
+// Michael R. MacFaden re-worked api, use ACE API
+// Peter E Mellquist wrote original class snmpmsg
+//
+// ============================================================================
#include "ace/config-all.h"
@@ -31,34 +34,32 @@
// PDU / Target -> iovec buffer
// iovec buffer -> PDU / Target
struct snmp_pdu;
-/**
- * @class wpdu
- *
- * @brief Implement an Adapter pattern between CMU SNMP and HP SNMP++
- */
class ASNMP_Export wpdu
+ // = TITLE
+ // Implement an Adapter pattern between CMU SNMP and HP SNMP++
+ //
{
public:
- /// construct CMU data from HP SNMP++ objects
- /// construct HP SNMP++ objects from raw buffer via CMU SNMP datatypes
wpdu(const Pdu& pdu, const UdpTarget& target);
+ // construct CMU data from HP SNMP++ objects
wpdu(const iovec& buffer);
+ // construct HP SNMP++ objects from raw buffer via CMU SNMP datatypes
wpdu(); // same as using iovec?
~wpdu();
- /// constructor completed ok? rc = 1 else 0
int valid() const;
+ // constructor completed ok? rc = 1 else 0
- /// return raw data stream via CMU code
const iovec& get_buffer() const;
+ // return raw data stream via CMU code
- /// return HP SNMP++ pdu
int get_pdu(Pdu& pdu, snmp_version& version);
+ // return HP SNMP++ pdu
- /// return community strptr
const unsigned char *get_community() const;
+ // return community strptr
private:
int convert_vb_to_smival( Vb &tempvb, SmiVALUE *smival );
@@ -68,14 +69,14 @@ private:
static void copy_iovec(iovec& dest, const iovec& src);
int set_trap_info(snmp_pdu *raw_pdu, const Pdu& pdu) const;
- /// raw format
iovec iovec_;
+ // raw format
- /// object construction state
int valid_flag_;
+ // object construction state
- /// snmp version
snmp_version version_;
+ // snmp version
unsigned char community_name[MAX_COMM_STR_LEN];
unsigned long comm_len; // = MAX_COMM_STR_LEN;
diff --git a/ASNMP/examples/get/get.cpp b/ASNMP/examples/get/get.cpp
index ff6fcb9681f..a633059a08c 100644
--- a/ASNMP/examples/get/get.cpp
+++ b/ASNMP/examples/get/get.cpp
@@ -67,7 +67,7 @@ class getapp {
// main entry point
-int main( int argc, char *argv[])
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[])
{
getapp get(argc, argv);
if (get.valid())
@@ -95,22 +95,22 @@ getapp::getapp(int argc, char *argv[]): valid_(0)
}
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt (argc,
- to_tchar.get_TCHAR_argv (),
- ACE_TEXT ("o:c:r:t:p:"));
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ to_tchar.get_TCHAR_argv (),
+ ACE_TEXT ("o:c:r:t:p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
{
case 'o':
- req = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ req = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
if (req.valid() == 0)
cout << "ERROR: oid value: "
- << ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg())
+ << ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg())
<< "is not valid. using default.\n";
break;
case 'c':
- community_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ community_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
target_.set_read_community(community_);
break;
diff --git a/ASNMP/examples/get/get_async.cpp b/ASNMP/examples/get/get_async.cpp
index 8217ffabac1..ee9c9791d39 100644
--- a/ASNMP/examples/get/get_async.cpp
+++ b/ASNMP/examples/get/get_async.cpp
@@ -67,7 +67,7 @@ class getapp : public Snmp_Result {
// main entry point
-int main( int argc, char *argv[])
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[])
{
getapp get(argc, argv);
if (get.valid())
@@ -95,22 +95,22 @@ getapp::getapp(int argc, char *argv[]): valid_(0)
}
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt (argc,
- to_tchar.get_TCHAR_argv (),
- ACE_TEXT ("o:c:r:t:p:"));
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ to_tchar.get_TCHAR_argv (),
+ ACE_TEXT ("o:c:r:t:p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
{
case 'o':
- req = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ req = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
if (req.valid() == 0)
cout << "ERROR: oid value: "
- << ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg())
+ << ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg())
<< "is not valid. using default.\n";
break;
case 'c':
- community_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ community_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
target_.set_read_community(community_);
break;
diff --git a/ASNMP/examples/next/next.cpp b/ASNMP/examples/next/next.cpp
index 7a9a2208ca2..0ec2a7fc945 100644
--- a/ASNMP/examples/next/next.cpp
+++ b/ASNMP/examples/next/next.cpp
@@ -66,7 +66,7 @@ class nextapp {
// main entry point
-int main( int argc, char *argv[])
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[])
{
nextapp get(argc, argv);
if (get.valid())
@@ -94,22 +94,22 @@ nextapp::nextapp(int argc, char *argv[]): valid_(0)
}
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt (argc,
- to_tchar.get_TCHAR_argv (),
- ACE_TEXT ("o:c:r:t:"));
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ to_tchar.get_TCHAR_argv (),
+ ACE_TEXT ("o:c:r:t:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
{
case 'o':
- req = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ req = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
if (req.valid() == 0)
cout << "ERROR: oid value: "
- << ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg())
+ << ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg())
<< "is not valid. using default.\n";
break;
case 'c':
- community_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ community_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
target_.set_read_community(community_);
break;
diff --git a/ASNMP/examples/set/set.cpp b/ASNMP/examples/set/set.cpp
index 39eb447f9a7..938a385c4e2 100644
--- a/ASNMP/examples/set/set.cpp
+++ b/ASNMP/examples/set/set.cpp
@@ -66,7 +66,7 @@ class set {
// main entry point
-int main( int argc, char *argv[])
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[])
{
set get(argc, argv);
if (get.valid())
@@ -97,22 +97,22 @@ set::set(int argc, char *argv[]): valid_(0)
}
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt (argc,
- to_tchar.get_TCHAR_argv (),
- ACE_TEXT ("o:c:r:t:I:U:C:G:T:O:S:P:"));
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ to_tchar.get_TCHAR_argv (),
+ ACE_TEXT ("o:c:r:t:I:U:C:G:T:O:S:P:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
{
case 'o':
- req = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ req = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
if (req.valid() == 0)
cout << "ERROR: oid value: "
- << ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg())
+ << ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg())
<< "is not valid. using default.\n";
break;
case 'c':
- community_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ community_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
target_.set_write_community(community_);
break;
@@ -166,14 +166,14 @@ set::set(int argc, char *argv[]): valid_(0)
case 'O': // Oid as a variable identifier
{
- oid_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ oid_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
vb.set_oid(oid_); // when value is set, pdu updated
}
break;
case 'S': // Octet String
{
- OctetStr o(ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg()));
+ OctetStr o(ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
vb.set_value(o); // set the Oid portion of the Vb
pdu_ += vb;
}
@@ -181,7 +181,7 @@ set::set(int argc, char *argv[]): valid_(0)
case 'P': // Oid String as a value
{
- Oid o(ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg()));
+ Oid o(ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
vb.set_value(o); // set the Oid portion of the Vb
pdu_ += vb;
}
diff --git a/ASNMP/examples/trap/trap.cpp b/ASNMP/examples/trap/trap.cpp
index 59d4f9f25bc..bfba5d3552e 100644
--- a/ASNMP/examples/trap/trap.cpp
+++ b/ASNMP/examples/trap/trap.cpp
@@ -68,7 +68,7 @@ class trapapp {
// main entry point
-int main( int argc, char *argv[])
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[])
{
trapapp get(argc, argv);
if (get.valid())
@@ -98,23 +98,23 @@ trapapp::trapapp(int argc, char *argv[]): valid_(0)
}
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt (argc,
- to_tchar.get_TCHAR_argv (),
- ACE_TEXT ("c:e:t:"));
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ to_tchar.get_TCHAR_argv (),
+ ACE_TEXT ("c:e:t:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
{
case 'c': // community string
- community_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ community_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
target_.set_read_community(community_);
break;
case 'e': // trap oid to send
- ent = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ ent = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
break;
case 't': // trap oid
- trap = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ trap = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
break;;
default:
diff --git a/ASNMP/examples/walk/walk.cpp b/ASNMP/examples/walk/walk.cpp
index 56fc112fd71..75d62fa66f7 100644
--- a/ASNMP/examples/walk/walk.cpp
+++ b/ASNMP/examples/walk/walk.cpp
@@ -65,7 +65,7 @@ class walkapp {
// main entry point
-int main( int argc, char *argv[])
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[])
{
walkapp get(argc, argv);
if (get.valid())
@@ -94,22 +94,22 @@ walkapp::walkapp(int argc, char *argv[]): valid_(0)
}
ACE_Argv_Type_Converter to_tchar (argc, argv);
- ACE_Get_Opt get_opt (argc,
- to_tchar.get_TCHAR_argv (),
- ACE_TEXT ("o:c:r:t:"));
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ to_tchar.get_TCHAR_argv (),
+ ACE_TEXT ("o:c:r:t:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
{
case 'o':
- req = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ req = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
if (req.valid() == 0)
cout << "ERROR: oid value: "
- << ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg())
+ << ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg())
<< "is not valid. using default.\n";
break;
case 'c':
- community_ = ACE_TEXT_ALWAYS_CHAR (get_opt.opt_arg());
+ community_ = ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg());
target_.set_read_community(community_);
break;
diff --git a/ASNMP/tests/test_config.h b/ASNMP/tests/test_config.h
index 887fa5cec8a..cd416bafdff 100644
--- a/ASNMP/tests/test_config.h
+++ b/ASNMP/tests/test_config.h
@@ -99,8 +99,8 @@ do {\
#define ACE_INIT_LOG(NAME) \
char temp[BUFSIZ]; \
ACE_OS::sprintf (temp, "%s%s%s", \
- ACE_TEXT_ALWAYS_CHAR (ACE_LOG_DIRECTORY), \
- ACE_TEXT_ALWAYS_CHAR (ACE::basename (NAME, ACE_DIRECTORY_SEPARATOR_CHAR)), \
+ ACE_TEXT_TO_CHAR_IN (ACE_LOG_DIRECTORY), \
+ ACE_TEXT_TO_CHAR_IN (ACE::basename (NAME, ACE_DIRECTORY_SEPARATOR_CHAR)), \
".log"); \
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Deleting old log file %C (if any)\n\n"), temp)); \
ACE_OS::unlink (temp);
@@ -146,8 +146,8 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
// Ignore the error value since the directory may already exist.
ACE_OS::mkdir (ACE_LOG_DIRECTORY);
ACE_OS::sprintf (temp, "%s%s%s",
- ACE_TEXT_ALWAYS_CHAR (ACE_LOG_DIRECTORY),
- ACE_TEXT_ALWAYS_CHAR (ACE::basename (filename, ACE_DIRECTORY_SEPARATOR_CHAR)),
+ ACE_TEXT_TO_CHAR_IN (ACE_LOG_DIRECTORY),
+ ACE_TEXT_TO_CHAR_IN (ACE::basename (filename, ACE_DIRECTORY_SEPARATOR_CHAR)),
".log");
this->output_file_.open (temp, ios::out | (append ? ios::app : ios::trunc));
diff --git a/COPYING b/COPYING
index 35b26e8f8b7..41eecbf0fc3 100644
--- a/COPYING
+++ b/COPYING
@@ -8,11 +8,11 @@
referred to as "DOC software") are copyrighted by [5]Douglas C.
Schmidt and his [6]research group at [7]Washington University,
[8]University of California, Irvine, and [9]Vanderbilt University,
- Copyright (c) 1993-2006, all rights reserved. Since DOC software is
- open-source, freely available software, you are free to use, modify,
- copy, and distribute--perpetually and irrevocably--the DOC software
- source code and object code produced from the source, as well as copy
- and distribute modified versions of this software. You must, however,
+ Copyright (c) 1993-2005, all rights reserved. Since DOC software is
+ open-source, free software, you are free to use, modify, copy, and
+ distribute--perpetually and irrevocably--the DOC software source code
+ and object code produced from the source, as well as copy and
+ distribute modified versions of this software. You must, however,
include this copyright statement along with code built using DOC
software.
@@ -67,16 +67,9 @@
the part of Washington University, UC Irvine, Vanderbilt University,
their employees, or students to assist in its use, correction,
modification, or enhancement. A [19]number of companies around the
- world provide commercial support for DOC software, however.
-
- DOC software is Y2K-compliant, as long as the underlying OS platform
- is Y2K-compliant. Likewise, DOC software is compliant with the new US
- daylight savings rule passed by Congress as "The Energy Policy Act of
- 2005," which established new daylight savings times (DST) rules for
- the United States that expand DST as of March 2007. Since DOC software
- obtains time/date and calendaring information from operating systems
- users will not be affected by the new DST rules as long as they
- upgrade their operating systems accordingly.
+ world provide commercial support for DOC software, however. DOC
+ software is Y2K-compliant, as long as the underlying OS platform is
+ Y2K-compliant.
The names ACE(TM), TAO(TM), CIAO(TM), CoSMIC(TM), Washington
University, UC Irvine, and Vanderbilt University, may not be used to
diff --git a/ChangeLog b/ChangeLog
index 9c3c90ffff8..7479896ee5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8699 +1,3 @@
-Fri Apr 14 14:57:12 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/msvc_static_compile.pl:
-
- Added a work-around for devenv using the solution file to build
- additional projects even when the .vcproj is specified. This only
- happens when using the -CORE option to this script. First, all
- .sln files are temporarily renamed and then named back when the
- build is done or a SIGINT or SIGTERM is detected.
-
-Wed Apr 12 14:48:38 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_component_dnc.mpb
-
- Fixes for linking errors in OS X.
-
-Tue Apr 11 20:06:12 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/OS_NS_stdio.inl (rewind): Replaced SetFilePointer() with
- fseek() on WinCE since it works better. Thanks to Andrey
- Nechypurenko for reporting this.
-
-Wed Apr 12 08:14:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb:
- Added ciao_rtevent_dnc as base project to fix link errors in the
- VxWorks static builds
-
-Tue Apr 11 14:10:00 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ASNMP/asnmp/transaction.cpp (handle_input): Return 0 on successful
- socket read, not the number of bytes. Thanks to Jason Zhang for this
- fix.
-
- * THANKS: Added Jason Zhang to the Hall of Fame.
-
-Tue Apr 11 13:12:36 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * ace/Lib_Find.h:
-
- aCC 3.31 seems to want an extra newline at the end of this file.
-
- * ace/config-macros.h:
-
- ACE_NOTREACHED is reached for aCC up to 3.31 at least.
-
- * include/makeinclude/platform_hpux_aCC.GNU:
-
- Define ACE_LACKS_MEMBER_TEMPLATES for aCC 3.31 because it does.
-
-Tue Apr 11 12:41:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_config_handlers.mpb:
- Added event config handles and add all projects to the after
- to get the correct build order
-
-Mon Apr 10 18:37:17 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * ace/ace_for_tao.mpc:
-
- Added Capabilities.cpp into the lib.
- Required by TAO/orbsvcs/examples/ImR/Advanced to
- use the getline function. The ace_for_tao lib is
- increased by 0.1M.
-
-Mon Apr 10 18:04:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Don't run bug 2134 regression in a minimum build
-
-Mon Apr 10 14:34:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Object_Manager_Test.cpp:
- Fixed compile problem in single threaded no inline build
-
-Mon Apr 10 12:28:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_server_dnc.mpb:
- * bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb:
- Added ciao_events_dnc
-
-Mon Apr 10 12:06:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_domainapplicationmanager_dnc.mpb:
- New base project
-
-Mon Apr 10 11:52:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_component_dnc.mpb:
- * bin/MakeProjectCreator/config/ciao_container_dnc.mpb:
- * bin/MakeProjectCreator/config/ciao_deployment_stub.mpb:
- Changed base projects
-
-Mon Apr 10 10:27:03 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Unload_libACE.cpp:
- Set up a guard for WIN32 && ACE_USES_WCHAR.
-
-Mon Apr 10 09:36:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_rtevent_dnc.mpb:
- New base project
-
-Mon Apr 10 09:13:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_events_base_dnc.mpb:
- New base project
-
-Mon Apr 10 06:23:00 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_container_dnc.mpb:
- New file, matches library name
-
- * bin/MakeProjectCreator/config/ciao_xml_utils.mpb:
- Use exceptions as base project
-
- * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb:
- Use ciao_events_dnc as base project
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb:
- Add ciao_container_dnc and ciao_client_dnc to make things easier to
- maintain. Also use the CIAO_Dnc_Events library instead of the
- two seperate libs
-
- * bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb:
- * bin/MakeProjectCreator/config/ciao_deployment_stub.mpb:
- Removed CIAO_DnC_Events as seperate lib
-
-Sun Apr 9 12:00:00 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * docs/ACE-bug-process.html: Updated this page to more accurately
- reflect how the DOC group handles enhancement requests. Thanks
- to David White <david dot white dot 7 at gmail dot com> for
- motivating this.
-
-Sat Apr 8 18:32:29 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Shared_Memory_MM.h (ACE_Shared_Memory_MM):
- * ace/Shared_Memory_SV.h (ACE_Shared_Memory_SV):
- Added comments that underscore that these classes should not be
- used and instead ACE_Malloc or ACE_Mem_Map should be used.
- Thanks to Qingbo Cai <qingbo dot cai at case dot edu> for motivating these
- comments.
-
-Fri Apr 7 19:56:03 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb
-
- Modified to make CIAO_DnC_Events_Base and CIAO_RT_Event
- libraries explicitly specified in "libs +=" to resolve
- linking errors in BC compilers.
-
-Fri Apr 7 13:13:06 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/tests.mpc:
- Add staticflags += ACE_AS_STATIC_LIBS for Library Unload
-
-Fri Apr 7 07:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Token.{h,inl}:
- Fixed compile problem in single threaded no online build. Thanks
- to Ossama Othman for reporting this
-
-Thu Apr 6 21:11:24 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/SSL/SSL_Context.cpp (private_key, context, dh_params): If setting
- up the new file fails, reset the corresponding
- ACE_SSL_Data_File member to allow retries to proceed.
-
- * NEWS: Added user-visible items for 5.5.1.
-
-Thu Apr 6 19:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Thread.cpp:
- Fixed compile problem in single threaded no online build. Thanks
- to Ossama Othman for reporting this
-
-Thu Apr 6 15:58:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Thu Apr 6 10:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/run_test.lst:
- * tests/tests.mpc:
- * tests/Bug_2497_Regression_Test.cpp:
- Added regression for bug 2497, we have to see what the best fix
- is. Thanks to Sergey Zubarev <sergant128 at mail dot ru> for
- providing reporting this.
-
-Thu Apr 6 06:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-macosx-tiger.h:
- Don't define ACE_SIZEOF_LONG_DOUBLE when it is already set. Can
- happen when we build for OS X on Intel. Thanks to Ignacio Alvarez
- <support at xentient dot com> for reporting this. This fixes bugzilla
- 2496.
-
-Wed Apr 5 23:02:50 UTC 2006 Adam Mitz <mitza@ociweb.com>
-
- * bin/tao_orb_tests.lst:
-
- Added TAO/tests/Bug_2494_Regression.
-
-Wed Apr 5 22:03:52 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb
-
- Modify the project dependency so its built after
- CIAO_DnC_Container project. This should fix the
- errors on SuSE_FP_Stats build.
-
-Wed Apr 5 19:32:19 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_deployment_stub.mpb
-
- Added library dependency to CIAO_Events_DnC, so static
- build could resolve symbols in this library.
-
-Mon Apr 5 14:59:37 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ace/SSL/SSL_Context.cpp:
- * ace/SSL/SSL_Context.h:
-
- Addressed access to locks that have already been destroyed by
- reintroducing some of the original static variable semantics.
- Some, but not all, of the exception-safety fixes that introduced
- the order of destruction problem were retained.
-
- (random_seed, egd_file, seed_file):
-
- Declared these methods "static" since they do not manipulate
- internal ACE_SSL_Context members.
-
-Wed Apr 5 14:58:12 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Unload_libACE.cpp:
- Set up a guard for ACE_AS_STATIC_LIBS.
-
- * tests/tests.mpc:
- Add an empty Resource_Files section to the Library Unload project.
-
-Wed Apr 5 14:25:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Wed Apr 5 13:10:00 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/CDR_Stream.cpp:
- Initialise local pointer with 0
-
-Wed Apr 5 11:55:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Tue Apr 4 18:51:41 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/SOCK_Acceptor.cpp (shared_open): If ACE_OS::listen() fails,
- guard errno before closing the socket to prevent loss of the error
- value, at least on Windows. Thank you to Aleksandar Vukajlovic
- <vukajlo at finsoft dot co dot yu> for this fix.
-
- * THANKS: Added Aleksandar Vukajlovic to the Hall of Fame.
-
-Tue Apr 4 15:44:03 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/README:
- * bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm:
-
- Reverting my change from Mon Apr 3 12:12:27 UTC 2006 and changing
- the default from directory based building/dependencies to named
- targets (which is the way that all other make based MPC project
- types work). This is being done by request (RT #8510).
-
-Tue Apr 4 15:28:00 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Unload_libACE.cpp:
- Cope when log file cannot be opened.
-
-Tue Apr 4 15:06:00 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Unload_libACE.cpp:
- Add guards for __MINGW32__ and __CYGWIN32__.
- Don't error if libACE isn't found.
-
-Tue Apr 4 14:10:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Mon Apr 3 23:04:51 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * include/makeinclude/platform_aix_ibm.GNU: Removed the explicit
- setting of ACE_TEMPLATES_REQUIRE_SOURCE in CCFLAGS introduced at
- Wed Feb 22 16:26:43 GMT 2006 Rich Seibel <seibel_r@ociweb.com>.
- ACE_TEMPLATES_REQUIRE_SOURCE is set (or not) from config-aix-4.x.h
- depending on what template instantiation options were specified on
- the command line.
-
-Mon Apr 3 13:45:29 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ace/Basic_Types.inl:
-
- Fixed versioned namespace related errors for configurations that
- define ACE_LACKS_LONGLONG_T and/or ACE_LACKS_UNSIGNEDLONGLONG_T.
-
-Mon Apr 3 13:45:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Mon Apr 3 12:12:27 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/README:
- * bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm:
-
- Added support for a new workspace based setting that only makes
- sense to the 'gnuace' project type called 'named_targets'. If
- 'named_targets' is set, the workspace (GNUmakefile) will be
- generated such that each target can be built via it's project name
- and directory location does not affect dependencies.
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Support the new source component scoped keyword 'buildflags'.
-
-Mon Apr 3 10:25:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_orb_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Mon Apr 3 09:38:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Remove PRISM_ONLY tests (again arg!)
-
-Sat Apr 1 19:08:28 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/OS_NS_math.inl: Improved the computations for floor() and ceil().
- Thanks to Abdullah Sowayan <abdullah.sowayan@lmco.com> for this
- patch.
-
-Sat Apr 1 17:14:59 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
- * m4/compiler.m4:
-
- Removed special cases for *freebsd*. Thanks to Thomas Girard
- <thomas dot g dot girard at free dot fr> who sent patches for
- Debian GNU/kFreeBSD systems (FreeBSD kernel / GNU libc). The
- changes added *k*bsd-gnu patterns to override the special cases
- matched by *freebsd*. However, further investigation has proved
- that they were not needed for FreeBSD either.
-
-Fri Mar 31 23:51:48 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Changed to #include <sys/param.h> in the <sys/sysctl.h>
- feature test, avoiding the autoconf "present but cannot
- be compiled" warning.
-
-Fri Mar 31 15:00:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Fri Mar 31 13:59:04 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Unload_libACE.cpp:
- Add guard for ACE_VXWORKS and declare local main().
-
- * tests/tests.mpc:
- Remove Main.cpp reference from the Library Unload project.
-
-Fri Mar 31 11:41:54 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_Thread.h:
- * ace/OS_NS_Thread.inl:
- * ace/Recursive_Thread_Mutex.cpp: Reverted changes from
- Thu Mar 30 18:51:13 UTC 2006 Steve Huston <shuston@riverace.com>
- because they broke builds on many platforms.
-
-Fri Mar 31 10:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Timer_List_T.cpp:
- Use prefix increment instead of postfix
-
- * ace/Timer_Hash_T.cpp:
- Initialise pointer with 0
-
- * ace/Reactor_Token_T.h:
- Converted some documentation to doxygen style
-
- * ace/Log_Record.cpp:
- Initialise some pointers with 0, made some local variables const.
-
- * ace/IOStream_T.h:
- Fixed some doxygen warnings
-
-Fri Mar 31 08:33:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- Added CPU_FLAG as possible flag, this can be -3/-4/-5/-6 to optimize
- things for a certain CPU, see the Borland help for more info what
- these flags do. When this is set, this is passed to the compiler
-
- * ACE-INSTALL.html:
- Document CPU_FLAG for Borland
-
- * ace/config-win32-borland.h:
- The Borland compiler can't handle assembly in inline methods or
- template methods. We do have inline assembly when building for
- pentium, so when we inlining enabled and do build for pentium
- we set ACE_LACKS_INLINE_ASSEMBLY to disable the inline assembly.
- Thanks to Steve Orner <saorner at rdainc dot com> for reporting
- this.
-
-Thu Mar 30 21:03:27 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * ace/Event_Handler.cpp (read_adapter):
-
- Fixed typo introduced in
-
- Thu Mar 30 10:24:50 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
-Thu Mar 30 10:24:50 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Event_Handler.cpp (read_adapter): It was possible for
- handle_close() to "delete this" so we need to cache the reactor
- pointer and use it here. Thanks to Yuan <yuanhp_china at
- hotmail dot com> for this fix.
-
-Thu Mar 30 18:51:13 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/Unload_libACE.cpp: Fixed broken fprintf() call.
-
- * ace/OS_NS_Thread.h (ACE_thread_mutex_t):
- * ace/OS_NS_Thread.inl: For Windows, replace CRITICAL_SECTION with a
- struct including a CRITICAL_SECTION as well as a recursion count.
- This allows us to properly do recursion in combination with a
- condition variable across all Windows editions and versions.
-
- * ace/Recursive_Thread_Mutex.cpp (get_nesting_level): This is now
- possible for platforms with ACE_HAS_RECURSIVE_THREAD_MUTEX.
-
- Thanks to Adrian Tulloch <my-ace-sub at reyes-tulloch dot com> for
- these improvements.
-
- * THANKS: Added Adrian Tulloch to the Hall of Fame.
-
-Thu Mar 30 17:04:48 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb
- * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb
-
- Modified to support CIAO pub/sub service integration.
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb
-
- Added this mpb file for pub/sub service integration
- in CIAO.
-
-Thu Mar 30 15:45:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/Unload_libACE.cpp:
- Corrected missing file handle.
-
-Thu Mar 30 13:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp:
- * examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp:
- * examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp:
- * apps/JAWS3/jaws3/Config_File.cpp:
- Fixed value might be unitialized warnings
-
-Thu Mar 30 12:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Configuration.cpp:
- * ace/Shared_Memory_MM.cpp:
- * ace/ARGV.cpp:
- * examples/APG/Containers/Stacks.cpp:
- * examples/APG/Containers/RB_Tree_Functors.cpp:
- * examples/APG/Containers/Queues.cpp:
- * ace/RB_Tree.inl:
- * tests/Hash_Map_Manager_Test.cpp:
- Fixed value might be unitialized warnings
-
-Thu Mar 30 11:27:00 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * include/makeinclude/platform_sunos5_sunc++.GNU:
-
- Define variable ACE_CC_PREPROCESSOR to be 'cc' if the SunCC version
- is 5.4. This fixes bug #2478.
-
- See also: Thu Mar 30 11:26:45 UTC 2006 Simon McQueen <sm@prismtech.com>
- in TAO/ChangeLog.
-
-Thu Mar 30 11:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added BiDirectional_DelayedUpcall
-
-Thu Mar 30 11:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Run BiDirectional_NestedUpcall also on VxWorks
-
-Thu Mar 30 00:46:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/compiler.m4:
-
- Change the default of --enable-symbol-visibility option from yes
- to no.
-
-Wed Mar 29 22:33:36 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Changed to #include <sys/types.h> in the <sys/sysctl.h>
- feature test, avoiding the autoconf "present but cannot
- be compiled" warning.
-
-Wed Mar 29 19:26:37 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/TTY_IO.cpp:
- Do not try to control DTR under LynxOS. It sets serial port
- to non-functional state.
-
-Wed Mar 29 14:14:06 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ACE-INSTALL.html:
- * m4/ace.m4:
-
- Changed --with-gperf to --enable-gperf to be consistant with the
- intent of --with-* / --enable-* flags. Thanks to Vincent Joseph
- <deskamess at yahoo dot com> for running into this.
-
-Wed Mar 29 13:25:12 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * ace/Log_Msg.cpp:
- * include/makeinclude/platform_lynxos.GNU
-
- Add code to ensure cleanup in ACE_Log_Msg::close (void).
- For some systems, e.g. LynxOS, we need to ensure that
- any registered thread destructor action for this thread
- is disabled. This is a revision of an earlier attempt to
- achieve the same thing. The ACE tests pass with this edition.
-
- * tests/Unload_libACE.cpp
-
- This source does not use ACE functionality directly.
- It tests that the ACE shared library can be safely loaded,
- (and unloaded), by a non-ACE program exercising the
- cleanup code above.
-
- * tests/run_test.lst
- * tests/tests.mpc
-
- Build and run the new test
-
-Wed Mar 29 07:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Log_Msg.cpp:
- Initialise pointers with 0, small const changes
-
-Wed Mar 29 06:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/*.doxygen:
- Also expand ACE_ENV_ARG_DECL_NOT_USED and
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-
-Tue Mar 28 21:30:01 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * ace/Log_Msg.{h,cpp}
- * ace/Log_Record.{cpp,h,inl}:
- Updated these files to solve the stack overflow problem in ACE_Log_Msg
- and ACE_Log_Record. Moves buffers that can be large in stack in malloced
- memory.
- Thanks to qwerty <qwerty0987654321 at mail dot ru> for motivating and
- suggesting the fix to this problem.
-
-Tue Mar 28 18:34:26 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * bin/tao_other_tests.lst:
- Added a missing semicolon.
-
-Tue Mar 28 14:51:19 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/compiler.m4:
-
- Added support for --disable-symbol-visibility flag so users
- can explicitly disable symbol visibility in the cases where
- it does not work (or does not work properly) but the feature
- test selects it anyway.
-
-Tue Mar 28 09:04:55 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/OS_NS_sys_resource.inl (setrlimit): Fixed a bug where
- "resource" appeared twice in the call to setrlimit(). Thanks to
- Vincent Joseph <deskamess at yahoo dot com> for reporting this.
-
-Tue Mar 28 14:10:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_orb_tests.lst:
- more !DISABLE_ToFix_LynxOS_* marks to tests
-
-Mon Mar 27 19:06:52 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * bin/tao_other_tests.lst:
-
- Added test
- TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl to
- test fix for bug in Bug 1647.
-
-Mon Mar 27 16:39:41 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/tests.mpc: Added a "verbatim" to get the automake-needed
- setup for running the scoreboard test script for the tests.
-
-Mon Mar 27 14:16:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Mon Mar 27 07:46:33 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Acceptor.h: Updated the documentation to clarify that an
- acceptor can only listen on one port at a time. Thanks to
- Mockey Chen <mockey dot chen @ google dot com> for motivating
- this.
-
-Mon Mar 27 11:08:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_orb_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Mon Mar 27 09:18:07 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * ace/Configuration.h:
-
- Remove 'explicit' keyword from a two arg constructor. This is
- upsetting aCC 331.
-
-Mon Mar 27 03:57:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/compiler.m4:
-
- Check whether "gcc" supports symbol visibility options by
- invoking the compiler with those options. This addresses
- configure failures due to icc's incomplete gcc emulation.
- Should fix bugzilla issues 2338 and 2384.
-
-Sun Mar 26 21:40:10 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/TSS_T.cpp: Added patches to silence the type-punning warning
- from G++ 4.x. Thanks to Ken Sedgwick for contributing this
- stuff!
-
-Sun Mar 26 17:29:08 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/compiler.m4:
-
- Add ACE_CHECK_CFLAGS and ACE_CHECK_CXXFLAGS autoconf macros
- to verify if c/c++ compiler supports the specified command-
- line options.
-
-Fri Mar 24 12:05:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Thu Mar 23 16:20:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_orb_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Thu Mar 23 16:00:49 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/Svc_Conf_Lexer.cpp:
-
- Fixed two bugs.
-
- 1) Line numbers were not calculated correctly as in most cases the
- new line characters were thrown away but not counted.
- 2) Strings were not allowed to contain nested quotes. However,
- the original lexer allowed this. Thanks to JR Andreassen
- <janrune@io.com> for reporting this.
-
-Thu Mar 23 14:37:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/vcl.mpb:
- Also set specific options for the bds template
-
-Thu Mar 23 14:37:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_limits.h:
- Updated documentation why we have a VxWorks specific
- workaround
-
-Thu Mar 23 14:22:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
- * bin/PerlACE/Run_Test.pm:
- Add lynxos platform default timing configuration
-
-Thu Mar 23 12:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- If linkflags are available, generate them into the project
- file
-
- * bin/MakeProjectCreator/config/vcl.mpb:
- Added -aa to the link flags to indicate that we link a
- windows application. This prevents a dosbox from appearing
- when we start a vcl windows app.
-
-Thu Mar 23 03:41:18 UTC 2006 Ciju John <john_c@ociweb.com>
-
- * ace/Time_Value.inl (set):
-
- timespec_t doesn't have a 'sec' member. Changed it to 'tv_sec'.
-
-Wed Mar 22 18:42:36 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- From Russell Mora <russell_mora at symantec dot com>
- * ace/Time_Value.inl:
-
- With MSVC8 the type of time_t is by default 64-bit unless
- _USE_32BIT_TIME_T is defined - changed #ifdef to recognise this
- and also changed other set() methods to use the version that
- knows how to handle the 64-bit type.
-
-Wed Mar 22 17:55:48 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb
- * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb
- * bin/MakeProjectCreator/config/ciao_deployment_dnc.mpb
-
- Reverted my earlier change
- "Tue Mar 21 21:58:17 UTC 2006 Gan Deng
- <gan.deng@vanderbilt.edu>".
-
- I will put earlier changes back in later when all the
- libraries in CIAO to support pub/sub services have
- been checked in.
-
-Wed Mar 22 16:19:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-osf1-4.0.h:
- Added ACE_HAS_NONCONST_SENDMSG
-
-Wed Mar 22 15:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_osf1_4.x_g++.GNU:
- Removed -fno-strict-prototypes from the CCFLAGS, thanks to
- Karl Schmitt <Karl dot Schmitt at dfs dot de> for reporting this.
-
-Tue Mar 21 21:58:17 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_events_dnc.mpb
- * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb
- * bin/MakeProjectCreator/config/ciao_deployment_dnc.mpb
-
- Added a base MPC project to support pub/sub integration
- in CIAO.
-
-Tue Mar 21 19:06:12 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- Committing on behalf of Adam Mitz <mitza@ociweb.com>.
-
- * bin/PerlACE/Process_Win32.pm:
-
- In some cases .EXE was not being added to the end of the
- executable name. This change fixes that problem and also changes
- Spawn() to return -1 on failure instead of exiting.
-
-Tue Mar 21 15:30:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Tue Mar 21 14:29:29 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- If system lacks the cpu_set_t type, skip the feature tests for
- sched_getaffinity() and sched_setaffinity(). The interface of
- these system calls have changed three times, and ACE currently
- only supports the latter two varients. The supported varients
- both have arguments of type cpu_set_t.
-
- On a system with the first varient, the feature tests detects
- the existance of sched_getaffinity() and sched_setaffinity(),
- it also detects that it's the not most current varient. This
- results in feature test macros being defined for the second
- varient, which causes a build failure in OS_NS_Thread.cpp.
-
- By avoiding the feature tests, we avoid defining any processor
- affinity related feature test macros, and ACE will be compiled
- as if the system does not support any form of processor
- affinity.
-
- See bugzilla issue 2466 for details.
-
-Tue Mar 21 11:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Misc/childbirth_time.cpp:
- * examples/OS/Process/imore.cpp:
- Fixed unicode build errors
-
-Tue Mar 21 06:49:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_other_tests.lst:
- Removed all PrismTech tests
-
-Mon Mar 20 22:53:09 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/Makefile.am: Restored hand-inserted settings to allow running
- the ACE tests during "make check". This needs to be added to the
- mpc file, but we're discussing how to do this.
-
-Mon Mar 20 08:58:26 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_other_tests.lst:
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Mon Mar 20 08:58:26 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ACE-INSTALL.html: Removed all references to egcs, which
- is hopelessly out of date..
-
-Mon Mar 20 14:54:23 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/Task_Ex_T.h:
- Added a workaround for buggy LynxOS 3.x compiler.
-
-Mon Mar 20 10:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/TP_Reactor.cpp (post_process_socket_event):
- Before acquiring the token, first check if we really have to do some
- post processing, if not, then we just don't acquire the token. This
- fixes the performance drop in the TAO thread pool performance test.
- Thanks to Kobi Cohen-Arazi <kobi dot cohenarazi at gmail dot com>
- for noticing this drop in the performance stats.
-
- * ace/TP_Reactor.h:
- Small documentation improvement
-
-Sun Mar 19 21:30:39 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ACE-INSTALL.html (href): Rearranged the order of things
- so that it explains how to build and install ACE before going
- into all sorts of details about various platforms and compilers.
- Thanks to Axter <google at axter dot com> for motivating this.
-
-Sat Mar 18 15:20:45 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Timer_Queue_Adapters.cpp (activate): Set active_ to 1
- in case we were deactivated. Thanks to Yauheni Akhotnikau
- <eao197 at intervale dot ru> for reporting this.
-
-Fri Mar 17 16:35:36 UTC 2006 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * docs/Symbol_Versioning.html:
-
- New document that describes how to use ACE's versioned namespace
- support. [Bug 2458]
-
-Fri Mar 17 15:50:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/run_test.lst
- Add more !DISABLE_ToFix_LynxOS_* marks to failing tests
-
-Fri Mar 17 13:38:18 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciaocidldefaults.mpb:
-
- New file, containing cidl-related stuff removed from
- ciao_servant_dnc.mpb, which now inherits from the new
- base project. These changes allow CIAO applications
- to set up the build either in the existing way, where
- the servant build executes the CIDL compiler, then the
- IDL compiler on the resulting *E.idl file, then the
- C++ compiler on all the results, or to have separate
- builds for CIDL files (which executes first), then
- IDL files, then generated and hand-written C++ files.
-
- * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb:
-
- Changes described in the item above.
-
-Fri Mar 17 13:37:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/TP_Reactor.cpp:
- Fixed variable not used warning
-
-Fri Mar 17 08:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/TP_Reactor.{h,cpp,inl}:
- Fixed bugzilla #2395. This was about a race condition in the
- TP_Reactor, when the handle_x method returns -1 the handler
- is removed and after that we try to resume. Normally this resume
- is a noop because for the handle there is no event handler anymore.
- But to resume the handle we need to reacquire the lock on the
- reactor, in the time between the remove and the reacquire we could
- have received a new connection for which the handle is used which
- we already freed and then we can resume this handle but then for
- a new eventhandler. The fix is to do the remove and resume as atomic
- operation. Thanks to Bala Natarajan and Steve Huston for reviewing
- the patches and Kees van Marle for debugging and analyzing this
- problem.
-
-Thu Mar 16 21:54:29 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Timer_Heap_T.cpp (grow_heap): Reset timer_ids_min_free_ after
- growing the heap. Fixes Bugzilla #2447 where timer IDs may be
- improperly duplicated under certain conditions.
-
- * tests/Timer_Queue_Test.cpp: Added a new function,
- test_unique_timer_heap_ids(), as supplied in Bugzilla #2447 to
- verify the fix.
-
- Thank you very much to Dan Pozdol <dpozdol at wolve dot com> and
- Paxton Mason <pmason at wolve dot com> for identifying the bug,
- its conditions and causes, supplying the test program and supplying
- the fix!
-
- * THANKS: Added Dan Pozdol to the Hall of Fame.
-
-Thu Mar 16 16:30:00 UTC 2006 simon massey <sma@prismtech.com>
-
- * tests/run_test.lst
- Add !DISABLE_ToFix_LynxOS_* marks to failing ACE tests
-
-Thu Mar 16 15:53:55 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * ace/UUID.cpp
- * protocols/ace/RMCast/Simulator.cpp
- Updated these files to solve some potential static-cast errors.
-
-Thu Mar 16 13:47:56 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/config-vxworks6.2.h:
-
- In kernel mode, VxWorks 6.2 lacks suseconds_t.
-
-Thu Mar 16 12:27:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/ciao_DAnCE.doxygen:
- Fixed incorrect links to the location of the documentation of the
- other ACE/TAO libraries
-
-Thu Mar 16 12:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * html/index.html:
- Added CIAO Config Handlers
-
-Thu Mar 16 12:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/*.doxygen:
- Set GENERATE_HTMLHELP to YES. This generates a few extra files
- which our users can use to convert the generated htlm documentation
- easily to a windows help file
-
-Thu Mar 16 12:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/*.doxygen:
- Set DOT_MULTI_TARGETS to TRUE, this will speedup the doxygen
- generation.
-
-Wed Mar 15 16:38:08 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/OS_NS_Thread.inl:
- Only LynxOS 3.0.x has buggy pthread_cond_timedwait.
-
- * ace/Reverse_Lock_T.h:
- Added a workaround for buggy LynxOS 3.x compiler.
-
-Wed Mar 15 15:27:51 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * ace/Capabilities.cpp
- * ace/Codecs.cpp
- Updated these files to solve the Capabilities_Test & Codecs_Test
- tests errors.
-
-Wed Mar 15 12:18:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/*.doxygen:
- Set SEARCHENGINE to YES for all doxygen config files, enables
- the possibility to do searches in the doxygen generated
- documentation
-
-Wed Mar 15 11:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Handle_Set.{cpp,inl}:
- Use prefix increment/decrement instead of postfix
-
-Tue Mar 14 11:22:35 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/String_Base.inl (empty),
- * ace/String_Base.h (ACE_String_Base): Added
- an empty() method to be more like STL strings. Thanks to
- Patrick Rabau <pr2345 at gmail dot com> for contributing this.
-
-Tue Mar 14 23:33:27 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_Thread.inl (recursive_mutex_cond_unlock): Fix this for
- WinCE. CE doesn't have a RecursionCount, and LockCount is not an
- indicator of recursion on WinCE; instead, see when it's unlocked
- by watching the OwnerThread, which will change to something other
- than the current thread when it's been unlocked "enough" times.
- Thanks to Spencer Vanroekel <Spencer dot Vanroekel at Siemens dot
- com> for the investigations leading to this solution.
-
- * THANKS: Added Spencer Vanroekel to the Hall of Fame.
-
-Tue Mar 14 20:58:12 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * ace/WIN32_Asynch_IO.cpp
- * ace/ACE.cpp
- * ace/Capabilities.cpp
- * ace/Codecs.cpp
- * ace/FIFO.cpp
- * ace/FIFO.h
- * ace/FIFO_Recv.cpp
- * ace/FIFO_Recv.h
- * ace/FIFO_Recv_Msg.cpp
- * ace/FIFO_Recv_Msg.h
- * ace/FIFO_Send.cpp
- * ace/FIFO_Send.h
- * ace/FIFO_Send_Msg.cpp
- * ace/FIFO_Send_Msg.h
- * ace/Get_Opt.cpp
- * ace/INET_Addr.cpp
- * ace/MEM_Acceptor.cpp
- * ace/MEM_IO.cpp
- * ace/RB_Tree.cpp
- * ace/Reactor.cpp
- * ace/SOCK_Dgram_Mcast.cpp
- * ace/SV_Semaphore_Complex.cpp
- * ace/SV_Semaphore_Complex.h
- * ace/SV_Semaphore_Complex.inl
- * ace/SV_Semaphore_Simple.cpp
- * ace/SV_Semaphore_Simple.h
- * ace/SV_Semaphore_Simple.inl
- * ace/TTY_IO.cpp
- * ace/UUID.cpp
- * ACEXML/common/FileCharStream.cpp
- * ACEXML/common/HttpCharStream.cpp
- * ACEXML/common/Transcode.cpp
- * ACEXML/common/XML_Macros.h
- * ACEXML/parser/parser/Parser.cpp
- * ACEXML/parser/parser/Parser.i
- * apps/gperf/src/Gen_Perf.cpp
- * apps/gperf/src/Key_List.cpp
- * apps/gperf/src/List_Node.cpp
- * apps/gperf/src/Options.cpp
- * protocols/ace/HTBP/HTBP_ID_Requestor.cpp
- Updated these files to solve the warnings when setting up "VC level
- 4 warnings" on Windows. These warnings include "unreachable code",
- "assignment within conditional expression", "conversion from some
- type to another type, possible loss of data", "local variable may be
- used without having been initialized" and so on.
- Thanks to Lukas Gruetzmacher <gruetzmacher at ais-dresden dot de>
- for motivating the fix to these "VC level 4 warnings".
-
-Tue Mar 14 15:55:08 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/Task_T.h:
- Added a workaround for buggy LynxOS 3.x compiler.
-
- * include/makeinclude/platform_lynxos.GNU:
- Made debug=0 as default for LynxOS 3.x
-
-Tue Mar 14 15:50:09 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/OS_NS_Thread.cpp:
- Removed the :: prefix from pthread calls that are macros
- on LynxOS.
-
-Tue Mar 14 09:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/generate_rel_manpages:
- Updated doxygen version
-
-Mon Mar 13 22:01:23 UTC 2006 Olli Savia <ops@iki.fi>
-
- * tests/run_test.lst:
- Do not run Multicast_Test and Process_Strategy_Test on LynxOS.
-
-Mon Mar 13 21:47:22 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/OS_NS_Thread.inl:
- Removed the :: prefix from pthread calls that are macros
- on LynxOS.
-
- * ace/config-lynxos.h:
- Do not define _POSIX_THREADS_CALLS under LynxOS 4.0.
-
- Thanks to Abdullah Sowayan <abdullah.sowayan@lmco.com>
- for reporting the problem and providing the initial patch.
-
-Mon Mar 13 22:21:25 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * ace/Process.h:
- Changed the documentation of ACE_Process::spawn function.It
- returns 1 if avoid_zombies option is set. does not return the
- pid.
-
-Mon Mar 13 19:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/TP_Reactor.cpp:
- Fixed typo in comment
-
- * ace/OS_NS_sys_select.inl:
- Initialize pointer with 0
-
- * ace/ACE.cpp:
- Use prefix decrement/increment instead of postfix. Replaced
- several c-style casts with C++ casts
-
-Mon Mar 13 17:20:47 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * ace/os_include/sys/os_time.h:
-
- Fixed a fuzz build error.
-
-Mon Mar 13 15:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Token.cpp:
- Use prefix decrement/increment instead of postfix
-
-Mon Mar 13 14:59:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Select_Reactor_Base.cpp:
- Initialise several pointers to 0
-
-Mon Mar 13 14:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Handle_Set.h:
- Doxygen improvements
-
- * ace/Handle_Set.inl:
- Use prefix increment instead of postfix
-
-Mon Mar 13 07:51:10 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * Reverted this change
-
- Sun Mar 12 09:10:01 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- Since it was causing runtime failures. Thanks to Johnny for
- reporting this.
-
-Mon Mar 13 13:26:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/TP_Reactor.cpp (handle_socket_events):
- When suspend_i returns -1 return directly
-
-Mon Mar 13 12:11:52 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * ace/OS_NS_Thread.inl
- Yank error reported by Abdullah, <abdullah.sowayan@lmco.com> fixed.
-
-Sun Mar 12 19:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Event_Handler.h:
- Documentation improvement
-
- * ace/UTF32_Encoding_Converter.cpp:
- Initialise pointer with 0
-
- * ace/Select_Reactor_T.cpp (dump):
- Also dump the contents of the suspend set
-
- * ace/Select_Reactor_Base.cpp (dump):
- Improved output
-
-Sun Mar 12 09:10:01 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/TSS_T.cpp: Changed all calls of the form
-
- if (ACE_Thread::getspecific (this->key_, (void **) &tss_adapter) == -1)
-
- to
-
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- if (ACE_Thread::getspecific (this->key_, &temp) == -1)
-
- to silence GCC warnings. Thanks to Lothar for this, as well.
-
-Sat Mar 11 09:09:35 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/CDR_Stream.inl: Changed all calls of the form
-
- ACE_OutputCDR::write_float (ACE_CDR::Float x)
- {
- return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (&x));
- }
-
- to
-
- ACE_OutputCDR::write_float (ACE_CDR::Float x)
- {
- void * tmp = &x;
- return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (tmp));
- }
-
- to silence GCC warnings. Thanks to Lothar Werzinger for
- suggesting this fix.
-
-Sun Mar 12 11:00:08 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * bin/PerlACE/Process_Win32.pm:
-
- Don't postfix ".EXE" onto executables if they already have it and
- IgnoreExeSubDir is set. Will make this:
-
- $PERL_SCRIPT = new PerlACE::Process($^X);
- $PERL_SCRIPT->Arguments("some_perl_script.pl");
- $PERL_SCRIPT->IgnoreExeSubDir(1);
-
- ... start working again.
-
-Sat Mar 11 12:54:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl.>
-
- * ace/Timer_Wheel_T.h:
- Don't split the unimplemented macros over multiple lines, fixes
- compile problems with the Sun compilers. Thanks to Sven-Uwe
- Sieler-Hornke
- <sven-uwe dot sieler-hornke at investment-cybernetics dot de>
- for reporting this
-
-Fri Mar 10 16:01:58 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- Committing the following on behalf of Adam Mitz
- <mitza at ociweb dot com>.
-
- * bin/tao_orb_tests.lst:
-
- Added TAO/tests/CollocationLockup.
-
-Fri Mar 10 14:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/run_test.lst:
- Don't run Multicast_Test_IPV6 in ACE_FOR_TAO builds
-
-Fri Mar 10 08:58:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/pkg.m4:
-
- Add pkg.m4 from pkg-config 0.20 distribution, so configure
- script can be regenerated on systems without it installed.
-
-Thu Mar 9 09:18:58 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * COPYING: Updated the date to include 2006.
- Thanks to Alan Kierstead <ackierstead at fedex dot com> for
- motivating the fix to this oversight.
-
-Thu Mar 9 15:28:53 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/concurrency.mpb:
- * bin/MakeProjectCreator/config/concurrency_serv.mpb:
- * bin/MakeProjectCreator/config/dseventlogadmin.mpb:
- * bin/MakeProjectCreator/config/dslogadmin.mpb:
- * bin/MakeProjectCreator/config/etcl.mpb:
- * bin/MakeProjectCreator/config/event.mpb:
- * bin/MakeProjectCreator/config/event_serv.mpb:
- * bin/MakeProjectCreator/config/ftrteventchannel.mpb:
- * bin/MakeProjectCreator/config/htiop.mpb:
- * bin/MakeProjectCreator/config/naming.mpb:
- * bin/MakeProjectCreator/config/naming_serv.mpb:
- * bin/MakeProjectCreator/config/notification.mpb:
- * bin/MakeProjectCreator/config/notification_serv.mpb:
- * bin/MakeProjectCreator/config/property.mpb:
- * bin/MakeProjectCreator/config/property_serv.mpb:
- * bin/MakeProjectCreator/config/rtevent_serv.mpb:
- * bin/MakeProjectCreator/config/rteventlogadmin.mpb:
- * bin/MakeProjectCreator/config/rtkokyuevent.mpb:
- * bin/MakeProjectCreator/config/rtnotify.mpb:
- * bin/MakeProjectCreator/config/trading.mpb:
- * bin/MakeProjectCreator/config/trading_serv.mpb:
-
- Updated these base projects to fix the TAO_ORBSVCS GNU Make
- macro. In many cases, I just moved the 'tagchecks' setting out of
- the _serv.mpb into the base for both _serv.mpb and _skel.mpb
- files. In others, I had to add the missing 'tagchecks' setting.
-
-Thu Mar 9 08:58:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb:
- Removed include path that is not there anymore
-
-Wed Mar 8 20:58:39 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ACE-INSTALL.html:
-
- Improve documentation for autoconf/automake build.
-
-Wed Mar 8 15:06:56 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_orb_tests.lst:
-
- Scheduled regression test for bug #2429. See ticket for status.
-
-Wed Mar 8 10:17:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Reactor/TP_Reactor/run_test.pl:
- Both clients should start in parallel, not after each other
-
-Wed Mar 8 04:53:09 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Change ACE_PATH_FL to pass --enable-gl to fltk-config.
-
-Wed Mar 8 03:32:08 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Changed ACE_ENABLE_XT_REACTOR to AC_REQUIRE() ACE_PATH_XT
- instead of AC_PATH_XTRA.
-
- Changed ACE_PATH_FL to AC_REQUIRE() ACE_PATH_X11.
-
- Add ACE_PATH_XT autoconf macro that sets ACE_XT_CPPFLAGS,
- ACE_XT_LDFLAGS, and ACE_XT_LIBS.
-
- Add ACE_PATH_X11 autoconf macro that sets ACE_X11_CPPFLAGS,
- ACE_X11_LDFLAGS, and ACE_X11_LIBS.
-
-Tue Mar 7 18:57:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/DLL/Newsweek.cpp:
- Fixed compile error
-
-Tue Mar 7 18:48:31 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Event_Handler.cpp (read_adapter): Never pass the handler's
- handle value to handle_input(). The handle_input() call is being
- made on behalf of stdin, not any other handle. It also mimics
- the behavior of the non-Windows case, where ACE_STDIN is registered
- with the reactor, regardless of the handler's handle value.
- Thanks to Aaron Scamehorn <aaron dot scamehorn at cogcap dot com>
- for noticing this problem.
-
- * THANKS: Added Aaron Scamehorn to the Hall of Fame.
-
-Tue Mar 7 13:57:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Reactor.h:
- Doxygen improvements
-
-Tue Mar 7 09:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Don't run Bug_2417_Regression in ST builds
-
-Tue Mar 7 08:45:26 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
- * tests/Makefile.am:
-
- Regenerate.
-
- * bin/MakeProjectCreator/config/automake.features:
-
- Set athena and motif to 1
-
- * bin/MakeProjectCreator/config/ace_fl.mpb:
-
- For autoconf build:
-
- Change @ACE_FLTK_CPPFLAGS@ and @ACE_FLTK_LIBS@ to
- $(ACE_FLTK_CPPFLAGS) and $(ACE_FLTK_LIBS)
-
- Add $(ACE_FLTK_LDFLAGS) to linkflags.
-
- Subtract '$(ACE_X11_CPPFLAGS)' from compile_flags.
- Subtract '$(ACE_X11_LDFLAGS)' from libpaths.
- Subtract '$(ACE_X11_LIBS)' from macros.
-
- * bin/MakeProjectCreator/config/ace_qt.mpb:
-
- For autoconf build:
-
- Change @ACE_QT_CPPFLAGS@ and @ACE_QT_LIBS@ to
- $(ACE_QT_CPPFLAGS) and $(ACE_QT_LIBS)
-
- Add $(ACE_QT_LDFLAGS) to linkflags.
-
- * bin/MakeProjectCreator/config/ace_tk.mpb:
-
- For autoconf build:
-
- Change @ACE_TK_CPPFLAGS@ and @ACE_TK_LIBS@ to
- $(ACE_TK_CPPFLAGS) and $(ACE_TK_LIBS)
-
- Add $(ACE_TK_LDFLAGS) to linkflags.
-
- * bin/MakeProjectCreator/config/ace_xt.mpb:
-
- For autoconf build:
- Add $(ACE_XT_CPPFLAGS) to compile_flags.
- Add $(ACE_XT_LDFLAGS) to linkflags.
- Add $(ACE_XT_LIBS) to pure_libs.
-
- * bin/MakeProjectCreator/config/ace_11.mpb:
-
- For autoconf build:
- Add $(ACE_X11_CPPFLAGS) to compile_flags.
- Add $(ACE_X11_LDFLAGS) to linkflags.
- Add $(ACE_X11_LIBS) to pure_libs.
-
-Tue Mar 7 08:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/DLL/Newsweek.cpp:
- * examples/DLL/Today.cpp:
- * examples/Shared_Malloc/test_persistence.cpp:
- Fixed compile errors
-
-Tue Mar 7 07:19:06 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
- * tests/Makefile.am:
-
- Regenerated.
-
-Tue Mar 7 07:16:40 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/ace.m4:
-
- Add Truncate.h to Header_Files section.
-
-Tue Mar 7 07:12:39 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/ace_qt.mpb:
-
- For autoconf build:
- Subtract '$(QTDIR)/include' from includes.
- Subtract '$(QTDIR)/lib' from libpaths.
- Subtract 'QT_THREAD_SUPPORT' from macros.
-
-Tue Mar 7 05:50:31 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Regenerate.
-
- * bin/MakeProjectCreator/config/ace_fl.mpb:
-
- For autoconf build:
- Add @ACE_FLTK_CPPFLAGS@ to compile_flags.
- Add @ACE_FLTK_LIBS@ to pure_libs.
-
- * bin/MakeProjectCreator/config/ace_qt.mpb:
-
- For autoconf build:
- Subtract 'qt-mt$(QT_VERSION)' from lit_libs.
- Add @ACE_QT_CPPFLAGS@ to compile_flags.
- Add @ACE_QT_LIBS@ to pure_libs.
-
- * m4/ace.m4:
-
- Implement ACE_PATH_FL.
- Implement ACE_PATH_QT.
- Implement ACE_ENABLE_FL_REACTOR.
- Implement ACE_ENABLE_QT_REACTOR.
-
- Thanks to Thomas Girard <thomas dot g dot girard at free dot fr>
- for these fixes.
-
-Mon Mar 6 18:25:41 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/OS_NS_Thread.inl:
- * ace/os_include/os_semaphore.h:
-
- Added an implementation for timed semaphore wait provided by
- Gottwald Port Technology. It is very similar to the emulated
- semphore in the event that ACE_HAS_POSIX_SEM is not defined.
- Previously, this was not supported at all when ACE_HAS_POSIX_SEM
- was defined.
-
- * ace/os_include/sys/os_time.h:
-
- Added sys to the file name to avoid Doxygen warnings.
-
- * bin/MakeProjectCreator/config/ace_qt.mpb:
-
- This change coincides with a change in MPC where the qt library
- setting was changed.
-
- * bin/tao_other_tests.lst:
-
- I added !DISABLE_INTERCEPTORS to all the Security tests as
- both the TAO_Security library and TAO_SSLIOP library require
- interceptors.
-
- * include/makeinclude/rules.local.GNU:
-
- Removed an extra dollar sign, that GNU Make apparently didn't
- care about but shouldn't have been there anyway.
-
- * bin/MakeProjectCreator/config/global.mpb:
-
- Removed this file. It is redundant to the global.mpb found in
- MPC.
-
-Mon Mar 06 15:44:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/DLL/Newsweek.{h,cpp}:
- * examples/DLL/Today.{h,cpp}:
- * examples/Shared_Malloc/test_persistence.cpp:
- Added operator delete, fixes warnings with icc 9.1
-
- * ace/CDR_Stream.cpp:
- * tests/Thread_Pool_Test.cpp:
- Initialise pointer with 0
-
- * ace/Pipe.inl:
- Replaced c-style casts with C++ casts
-
- * ace/Svc_Handler.h:
- Made the closing_ member an int, it is used that way, not as
- char.
-
-Mon Mar 06 15:13:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added Bug_2417_Regression
-
-Sun Mar 05 11:10:32 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * ACE version 5.5 released.
-
-Sun Mar 5 15:35:54 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * bin/make_release:
-
- Corrected a warning when generating WinCE projects.
-
-Sat Mar 4 14:09:44 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * ace/ATM_Acceptor.h:
-
- Added a missing semicolon. Thanks to Felix Li <fengli at
- gmail dot com> for reporting this.
-
-Thu Mar 2 02:01:12 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with more inputs.
-
-Thu Mar 2 00:51:18 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * NEWS: Added Win64 and WinCE notes.
-
-Wed Mar 1 23:47:13 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * bin/make_release: Added "wince=1" to the MPC -features option for
- the WinCE file generation; helps prevents WinCE-hostile projects
- from being generated.
-
- * ace/config-win32-msvc-8.h: VC8 still lacks sigatomic_t for WinCE 5.
-
- * ace/config-WinCE.h: Removed some compiler-specific settings that
- were moved to compiler-specific configs previously but not updated
- for CE. Updated things that are now available.
-
- * tests/CDR_File_Test.cpp:
- * tests/CE_fostream.{h cpp}: CE iostream hack not needed for CE when
- iostreams are available (VC 8, included).
-
- * examples/Reactor/TP_Reactor/client.cpp:
- * examples/Reactor/TP_Reactor/server.cpp:
- * examples/Reactor/TP_Reactor/AcceptHandler.cpp:
- * examples/Reactor/TP_Reactor/ReadHandler.cpp:
- * netsvcs/servers/main.cpp:
- * tests/Array_Map_Test.cpp: Use ACE_TEXT around all pieces of
- concatenated string; VC8 WinCE misses the line ending.
- Removed ACE_TEXT around ACE_TRACE's argument; ACE_TRACE adds it.
-
- * netsvcs/lib/Token_Handler.{h cpp} (init, parse_args): Changed argv
- from char*[] to ACE_TCHAR*[]. Also fixed some missing ACE_TEXTs.
-
- * protocols/ace/RMCast/Acknowledge.cpp:
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Protocol.h:
- * protocols/ace/RMCast/Retransmit.cpp:
- * protocols/ace/RMCast/Socket.cpp:
- * protocols/ace/TMCast/LinkListener.hpp:
- * protocols/ace/TMCast/TransactionController.hpp:
- * protocols/ace/TMCast/Group.cpp: ACEified naked system calls abort()
- and perror().
-
- * examples/APG/ThreadSafety/Tokens_Deadlock.cpp:
- * examples/APG/Processes/Spawn.cpp:
- * examples/APG/Processes/Process_Mutex.cpp: Add missing ACE_TEXT around
- string args.
-
- * examples/NT_Service/NT_Service.mpc: Add avoids += wince - CE doesn't
- do services.
-
- * examples/Web_Crawler/main.cpp: Don't try SIGFPE protection if
- on WinCE.
-
- * examples/Web_Crawler/URL_Status.h: Changed STATUS_NOT_FOUND to
- STATUS_ITEM_NOT_FOUND and STATUS_NOT_IMPLEMENTED to
- STATUS_OP_NOT_IMPLEMENTED. CE apparantly has macros with these
- names that messes this up.
-
- * examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc: Added wince to the
- "avoids" clause for APC, Registry_Changes, Talker and
- Window_Messages; WinCE doesn't the necessary features.
-
- * examples/Reactor/WFMO_Reactor/Window_Messages.cpp: Add missing
- #include "ace/Auto_Event.h"
-
- * tests/MT_SOCK_Test.cpp: Remove the #if ACE_WIN64 from the check
- for first send causes reset. This happens with 32-bit as well,
- at least on Win XP-64 SP2. It's unrelated to the functionality under
- test, and if there's an actual sending side botch that causes the
- socket to be closed prematurely, it should show up as another error
- in the server side.
-
-Wed Mar 1 16:12:50 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/run_test.lst: Added !BAD_AIO to the Proactor_Test and
- Proactor_Test_IPV6. This makes it possible to avoid this test on
- platforms that simply aren't capable of performing decent AIO.
-
-Wed Mar 1 10:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/MT_SOCK_Test.cpp:
- Fixed compile problem
-
-Wed Mar 1 09:48:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Env_Value_T.h:
- First to all template specializations before the generic one and
- use template<> for the specializations, this fixes the compile
- errors with GCC 4.1
-
-Wed Mar 1 07:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Reactor/TP_Reactor/AcceptHandler.cpp:
- * examples/Reactor/TP_Reactor/server.cpp:
- Fixed warnings in vc6 builds
-
-Wed Mar 1 00:16:26 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Recursive_Thread_Mutex.cpp (get_nesting_level): On Win64 with
- AMD64/EM64T, use the CRITICAL_SECTION's RecursionCount member, not
- LockCount, as was changed in this entry:
- Tue May 6 11:50:18 2003 Chad Elliott <elliott_c@ociweb.com>
- It remains to be seen under what conditions LockCount is used (it
- may be for Itanium, for example) but for now, use of RecursionCount
- is conditional to AMD64.
-
- * tests/Reactor_Dispatch_Order_Test.cpp: Print some useful order info
- rather than ACE_ASSERT everywhere. Also fixed some ACE_TEXT stuff.
-
-Tue Feb 28 23:28:57 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
-
- Add DEFAULT_INCLUDES definition that got lost during regeneration.
- Fixes autoconf builds on case-insensitive filesystems.
-
-Tue Feb 28 19:46:16 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/MT_SOCK_Test.cpp: Add a special-case check for Win64. It
- appears that Win64 listen/accept side has some changed behavior
- but I haven't found any Windows docs to state this; just observed
- behavior. It appears that WinXP-64 will appear to accept connections
- at the TCP level past the listen backlog but if data arrives before
- the actual application-level accept() occurs, the connection is
- reset. I can see where this would be sensible for a web server or
- something like that, but it causes a problem for this use case where
- the test client side connects and starts sending.
- Note I also tried modifying the checks in the connect path (in
- ACE.cpp, handle_timed_complete()), but the connection really does
- appear to be accepted clean; a peek recv will complete without
- the reset being noticed, hence my speculation that Microsoft
- "enhanced" the behavior at the server side.
- Also, fixed a lot of bad indentation and some missing ACE_TEXTs.
-
-Tue Feb 28 11:12:12 UTC 2006 Johnny Willemsen <jwilemsen@remedy.nl>
-
- * ace/Connector.cpp:
- Initialise several pointers explicitly with 0
-
-Tue Feb 28 00:21:53 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/config-WinCE.h: Don't set ACE_LACKS_IOSTREAM_TOTALLY for
- MSVC 8 and up.
-
- * ace/CDR_Stream.cpp (grow_and_adjust):
- * ace/CDR_Base.cpp (consolidate): Avoid losing data when
- comparing ptrdiff_t values.
-
- * ace/Event_Handler.{h cpp}: Allow
- ACE_Event_Handler:register_stdin_handler to build on WinCE.
-
- * ace/FILE_IO.cpp (send, recv): Truncate the number of iovec tuples
- down to range of an int.
-
- * ace/OS_NS_stropts.{h cpp}:
- * ace/OS_NS_sys_socket.{h cpp}: Allow QoS-enabled operations on WinCE
- 5.0 and up.
-
- * ace/OS_NS_unistd.inl: 64-bit adjustments.
-
- * ace/Time_Value.{cpp inl}:
- * tests/Time_Value_Test.cpp: Add ACE_WIN64 to the platforms that use
- LONG_MAX/LONG_MIN rather than std::numeric_limits<time_t> for the
- time bounds. On Win64, time_t is 64 bits, yet the timeval members
- used internally to ACE_Time_Value are still long. This makes time
- values outside the LONG_MAX, LONG_MIN range very broken and many
- tests start failing in odd ways. Thanks to J.T. Conklin for this fix.
-
- * ace/Token_Request_Reply.{cpp inl}: 32/64 bit adjustments.
-
- * netsvcs/lib/Token_Handler.{h cpp} (ACE_TS_Mutex, ACE_TS_WLock,
- ACE_TS_RLock): Changed the name argument from char* to ACE_TCHAR*
- to build clean on wchar systems. The classes that use this and that
- this uses already were ACE_TCHAR.
-
-Mon Feb 27 22:36:20 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/SSL/Makefile.am: Hand-corrected the addition of
- ACE_TLS_CPPFLAGS, ACE_TLS_LDFLAGS, ACE_TLS_LIBS needed to pick up
- user's specification of where the SSL libraries are.
-
-Mon Feb 27 08:17:49 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Dev_Poll_Reactor.cpp (acquire_quietly): Moved the error message
- so that it only is printed if it's a real error, not just a
- timeout. Thanks to Oh Yoon Sik <boom at estsoft dot com> for
- reporting this.
-
-Sun Feb 26 19:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/SOCK_IO.{cpp,inl}:
- Fixed compile errors, it is ACE_Utils::Truncate, not ACE_Truncate
-
-Sun Feb 26 13:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Reactor_Timer_Test.cpp:
- Replaced asserts with ace_error to fix warnings in release builds
-
-Sat Feb 25 22:57:32 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * tests/Process_Manual_Event_Test.cpp: On Windows, use a complete
- path name to spawn the child process with, else it doesn't work when
- the test is in a subdir of ACE_wrappers/tests, as it is with
- Win XP64 and WinCE.
-
- * ace/SOCK_IO.h: Clarify that on recvv() and sendv(), the number of
- iovecs handled will be limited to the maximum value of an int.
- * ace/SOCK_IO.inl (sendv, recvv): ACE_Truncate the 'n' number of
- iovecs passed down to the ACE level.
- * ace/SOCK_IO.cpp (send, recv): Reduce the size_t n iovec count to an
- int range after dividing by 2 to fit it into the ACE_OS level.
-
-Sat Feb 25 12:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_other_tests.lst:
- Removed Security Policies tests, it has been removed from the repo
-
-Fri Feb 24 23:43:04 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tests/Time_Value_Test.cpp:
-
- use std::numeric_limits<time_t>::max()
- and std::numeric_limits<time_t>::min() (or LONG_MAX and LONG_MIN
- for those platforms that lack std::numeric_limits<T>) instead of
- ACE_INT32_MAX and ACE_INT32_MIN for time bounds.
-
-Fri Feb 24 21:16:48 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_config_handlers.mpb
-
- Add a verbatim to disable hidden_visibility for project
- dependent on Config_Handlers
-
-Fri Feb 24 19:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/auto_run_tests.pl:
- If we can't chdir to the directory then don't die, but just continue
- with the next test
-
-Fri Feb 24 17:29:47 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Truncate.h: Include all needed code inline here and mark the
- function and specialization inline.
- * ace/Truncate.{inl cpp}: Removed. All code for ACE_Truncate is inlined
- and included in the Truncate.h file.
-
- * ace/ace.mpc:
- * ace/Makefile.am: Removed Truncate.cpp and Truncate.inl.
-
-Fri Feb 24 16:31:36 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Connector.{h cpp}: Changed the non_blocking_handles_ member
- used to remember handles currently in-progress with a non-blocking
- connect from ACE_Handle_Set to ACE_Unbounded_Set. This enables
- ACE_Connector to be used with handle values outside the range
- that select() can deal with (FD_SETSIZE) and is needed to run
- large numbers of handles as is now possible with the
- ACE_Dev_Poll_Reactor.
- Removed the deprecated internal-only
- SVC_HANDLER* ACE_NonBlocking_Connect_Handler::close (void)
- method. There was already a replacement close() with more
- sensible arguments that performed close operations in the correct
- order, avoiding accesses to event handlers that were deleted.
- Don't ACE_ASSERT when seeing a ACE_Connector::close() error; log
- an error and keep going.
-
- * ace/Container_Instantiations.cpp: Added instantiations for
- ACE_Unbounded_Set<ACE_HANDLE>, used in ACE_Connector.
-
- * ace/Dev_Poll_Reactor.cpp (find_handler): Increment the found
- handler's reference count, as the other reactor implementations do.
-
- * ace/Dev_Poll_Reactor.h: Fix typos.
-
-Fri Feb 24 15:38:20 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Fix typo in last change:
- Thu Feb 23 23:00:45 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
-Fri Feb 24 15:26:07 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * ace/config-lynxos.h
- * ace/Log_Msg.cpp:
-
- Back out code dealing with system's that have a
- BROKEN_THREAD_KEYFREE after Olli Savia <ops@iki.fi> pointed
- out that it breaks Task_Ex_Test.
-
-Fri Feb 24 15:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Message_Block.h:
- Doxygen improvements
-
-Fri Feb 24 14:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Process_Manager.cpp:
- Initialize pointer with 0
-
- * ace/Process_Manager.h:
- Tag the reap() method as deprecated
-
-Fri Feb 24 14:10:06 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm:
-
- Modified the 'vpath' code so that it does not require knowlege of
- how MPC internally stores filename lists. It does not change any
- functionality.
-
-Fri Feb 24 13:55:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Reactor/TP_Reactor/client.cpp:
- * examples/Reactor/TP_Reactor/server.cpp:
- Made these compiling with wchar enabled
-
-Fri Feb 24 11:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/ACE_export.h:
- Also for borland changed ACE_INLINE_TEMPLATE_FUNCTION to
- ACE_Export
-
-Fri Feb 24 11:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Fixed casing of Bug_2289_Regression
-
-Fri Feb 24 00:19:22 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/ACE_export.h: Changed ACE_INLINE_TEMPLATE_FUNCTION to use
- ACE_Export instead of "extern" for Visual C++. Fixes missing
- ACE_Truncate symbols outside of the ACE library on Windows.
-
-Thu Feb 23 23:22:18 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * examples/APG/Logging/Callback.h:
- * examples/APG/Logging/Callback-2.h:
- * examples/APG/Logging/Callback-3.h: Add conditional areas for
- platforms lacking IOStream support.
-
-Thu Feb 23 23:00:45 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Use "eval" when setting ACE_TCL_LIB to expand any variables in
- ${TCL_LIB_SPEC}. Thanks to Thomas Girard <thomas dot g dot
- girard at free dot fr>.
-
-Thu Feb 23 19:53:51 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tests/DLL_Test_Impl.cpp:
-
- Changed so nothrow operator delete has same exception
- specification in declaration and definition.
-
-Thu Feb 23 17:01:15 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_orb_tests.lst:
-
- Scheduled test for bug #2186. This will fail until fixed.
-
-Thu Feb 23 15:56:24 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Svc_Handler.cpp:
-
- Fix typo (identifier-name) introduced in:
- Thu Feb 23 09:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
-Thu Feb 23 14:44:54 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * ace/Log_Msg.cpp:
-
- Add code to ensure cleanup in ACE_Log_Msg::close (void).
- For some systems, e.g. LynxOS, we need to ensure that
- any registered thread destructor action for this thread
- is disabled.
-
-Thu Feb 23 14:54:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Tweak how ACE_TCL_CPPFLAGS, ACE_TCL_LIBS, ACE_TK_CPPFLAGS,
- and ACE_TK_LIBS are defined.
-
- * tests/Makefile.am:
-
- Fix regeneration bug.
-
-Thu Feb 23 10:05:22 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_orb_tests.lst:
-
- Scheduled regression tests for bugs #2289 and #2134.
-
-Thu Feb 23 09:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Reactor/TP_Reactor/*:
- Example program demonstrating the TP_Reactor. This is also a
- test program for bugzilla bug 2395. For reproducing start
- the perl script but also do other activity on the system,
- then it can happen that the same event handler is invoked
- from multiple threads. Thanks to Martin Kolleck and Tino
- Riethmueller for creating this example program.
-
-Thu Feb 23 08:35:09 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * ace/config-lynxos-pthread.h:
- Remove this file. Change handling for LynxOS' use of macros
-
- * include/makeinclude/platform_lynxos.GNU:
- * ace/config-lynxos.h:
- Revert changes for building dynamic libraries
-
- * ace/os_include/os_pthread.h:
- Remove inclusion of ace/config-lynxos-pthread.h
-
- * ace/OS_NS_Thread.inl:
- If it's a macro we can't say "::pthread_cancel"
-
-Thu Feb 23 09:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/DLL_Test_Impl.{h,cpp}:
- Added nothrow operator delete
-
- * ace/TP_Reactor.h:
- * ace/Signal.h:
- Documentation improvement
-
- * ace/Time_Value.cpp (operator*):
- Use correct type for usec
-
- * ace/Svc_Handler.cpp:
- Use casts in operator delete
-
-Thu Feb 23 08:08:26 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
- * tests/Makefile.am:
-
- Regenerate for TK Reactor changes.
-
-Thu Feb 23 06:47:26 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/ace_tk.mpb:
-
- Add automake specific section for TCL and TK CPPFLAGS and LIBS.
-
- * m4/ace.m4:
-
- Change ace_enable_{fl,qt,tk,xt}_reactor to
- ace_user_enable_{fl,qt,tk,xt}_reactor for consistency.
-
- Implement ACE_PATH_TCL.
-
- Implement ACE_PATH_TK.
-
- Implement ACE_ENABLE_TK_REACTOR.
-
- Thanks to Thomas Girard <thomas dot g dot girard at free dot fr>
- for these fixes.
-
-Wed Feb 22 20:56:17 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/ACE_export.h: Added another macro, ACE_INLINE_TEMPLATE_FUNCTION,
- to take care of the compiler differences when an inlineable
- function template can be out-lined. Some compilers (e.g. Microsoft)
- like an extern storage class to prevent multiple instances; others
- (practically all others) refuse the extern storage class and
- resolve the multiples at link time.
-
- * ace/Truncate.{h inl}: Change ACE_NAMESPACE_INLINE_FUNCTION use to
- ACE_INLINE_TEMPLATE_FUNCTION.
-
-Wed Feb 22 22:18:56 UTC 2006 Olli Savia <ops@iki.fi>
-
- * tests/run_test.lst:
- Run some more tests on LynxOS.
-
-Wed Feb 22 21:30:35 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/Truncate.inl:
- Added include "ace/os_include/os_limits.h" to pull INT_MAX.
-
- * ace/config-lynxos.h:
- Define ACE_LACKS_NUMERIC_LIMITS when compiling with GCC 2.x.
- Define ACE_HAS_POSIX_SEM on LynxOS 4.0.
-
-Wed Feb 22 19:16:32 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/ACE_export.h: Add __HP_aCC 06.05 and up to the list of compilers
- that don't like "extern inline".
-
-Wed Feb 22 16:50:16 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/String_Base.{h cpp}: Add operator= to set string from a
- CHAR*. Optimizes performance in this case by removing the need
- for a temporary object. Thanks to Kelly Hickel <kfh at mqsoftware
- dot com> for this improvement.
-
- * tests/SString_Test.cpp: Added test for new operator=.
-
-Wed Feb 22 17:26:01 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/TTY_IO.h:
- Changed type of dtrdisable from int to bool.
-
- * examples/IPC_SAP/DEV_SAP/reader/reader.cpp:
- * examples/IPC_SAP/DEV_SAP/writer/writer.cpp:
- Changed to reflect recent changes in TTY_IO.h.
-
-Wed Feb 22 16:31:28 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/vcl.mpb:
-
- Added the 'bmake' type in order to support VCL.
-
- * bin/mpc.pl:
- * bin/mwc.pl:
-
- Simplified these scripts by using FindBin. Also, made a
- modification to preserve @ARGV so that when it is used by the
- workspace creators, it contains the original arguments provided by
- the user.
-
-Wed Feb 22 16:26:43 GMT 2006 Rich Seibel <seibel_r@ociweb.com>
-
- * include/makeinclude/platform_aix_ibm.GNU:
- * THANKS
- Added templates=manual to set manually instantiated
- templates (without setting ACE_HAS_EXPLICIT_TEMPLATE_
- INSTANTIATION) and determining that -qeh=v6 is needed
- to get the more general exception behavior.
-
- Thanks to Marc Brown and Andrew Keane for suggesting
- these changes.
-
-Wed Feb 22 15:48:15 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Timer_Heap_T.cpp: Fixed mismatch signed/unsigned compare warning.
-
-Wed Feb 22 08:33:03 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * include/makeinclude/platform_lynxos.GNU
- * ace/config-lynxos.h
- change settings for building dynamic libraries
-
- * ace/config-lynxos-pthread.h
- new file for handling LynxOS' use of macros
-
- * ace/Log_Msg.cpp
- * ace/os_include/os_pthread.h
- Handle broken thread key free on LynxOS
-
-Tue Feb 21 23:49:20 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Truncate.{h inl cpp}: New function template, ACE_Utils::Truncate,
- for truncating types to int. Compares the value to the maximum int
- value and, if passed value is greater, returns the max int; else
- returns the original value cast to int. Useful for the many places
- that return int but maintain larger types (such as size_t)
- internally. There's a specialization for size_t since it's used so
- much.
-
- * ace/ace.mpc: Add Truncate.cpp
-
- * ace/Makefile.am: Added Truncate.{h inl cpp}
-
- * ace/Message_Queue_T.cpp:
- * ace/Message_Queue.cpp: Use ACE_Utils::Truncate() to return size/count
- related values that may overflow the range of an int. Prevents odd
- conditions that may appear as failures when dealing with very large
- numbers of items in a queue. And, resolves compile warnings.
-
- * ace/Timer_Heap_T.cpp: In constructor, add checks to see if max_size_
- is outside the range of a long and reduce it if so. This ensures we
- can cast size_t values to a long as a timer ID (pop_freelist).
- NOTE!!! In grow_heap(), the size is doubled and there's no check for
- failures in range or in allocation. This a problem that should be
- looked at.
-
- * ace/Service_Manager.cpp (reconfigure_services):
- * ace/WIN32_Asynch_IO.cpp:
- * ace/UPIPE_Connector.cpp (connect): Fix compiler warnings.
-
-Tue Feb 21 23:08:38 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_time.cpp: Add missing close brace for blank namespace
- in ACE_HAS_WINCE case.
-
-Tue Feb 21 20:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * protocols/ace/TMCast/MTQueue.hpp:
- Initialise pointer to 0 to fix gcc4.1 warning
-
-Tue Feb 21 19:26:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_other_tests.lst:
- Fixed typo in this file
-
- * bin/generate_compile_stats.sh:
- Improved this script, print date/time after the Detail in html, also
- when we can't find the footprint size of an object file, just list it
- with ? as size, that way we can at least see all objects and don't
- miss any.
-
- * include/makeinclude/wrapper_macros.GNU:
- Default use_dep_libs to 1
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
- Only when use_dep_libs is set to 1 (which is the default) set DEPLIBS.
- In the footprint builds we set use_dep_libs to 0 because it causes
- problems when interpreting the map files generated by the linker.
-
-Tue Feb 21 19:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Process_Manual_Event_Test.cpp:
- Fixed this test
-
-Fri Feb 17 08:15:57 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Asynch_Acceptor.h: Used ACE_DEFAULT_ASYNCH_BACKLOG instead
- of ACE_DEFAULT_BACKLOG since the latter is set to a huge value
- on Windows. Thanks to Alex Libman and Daniel <__daniel___ at icg
- do tu-graz dot ac dot at> for their help.
-
- * ace/Default_Constants.h: Added a new macro called
- ACE_DEFAULT_ASYNCH_BACKLOG that defaults to 5.
-
-Mon Feb 20 15:03:01 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * ACE version 5.4.10 released.
-
-Sun Feb 19 13:38:32 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/make_release:
- Fixed bug in excluding of mwc files
-
-Fri Feb 17 19:16:32 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with more inputs.
-
-Thu Feb 16 13:38:39 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * bin/generate_rel_manpages:
-
- Updated the script with latest info at naboo.dre.
-
-Thu Feb 16 13:38:00 UTC Simon Massey <sma@prismtech.com>
-
- * bin/tao_orb_tests.lst:
- Added regression test for Bugzilla 2403
-
-Thu Feb 16 09:23:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/make_release:
- Changed the exclude of mwc files, use TAO_* and CIAO_*
-
-Thu Feb 16 08:33:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/performance_stats.sh:
- Added AMI to the combined performance figure
-
-Wed Feb 15 20:06:42 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * ace/Timer_Heap_T.cpp: Fixed cancel() so that it doesn't miss any
- nodes due to reheapifying during a remove. Thanks to Oh Yoon
- Sik <boom at estsoft dot com> for this fix.
-
-Wed Feb 15 20:04:13 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- #include <sys/time.h> in ACE_HAS_POSIX_TIME feature test (if
- supported by platform). Thanks to Vladimir Panov <gbr at
- voidland dot org> for reporting this bug.
-
-Wed Feb 15 19:58:36 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/fuzz.pl:
-
- Modified the check_for_long_file_names function to correctly deal
- with the length of the MPC project names instead of the length of
- the .mpc file itself. The length of the .mpc file name does not
- necessarily indicate the length of the generated project name.
-
-Wed Feb 15 18:16:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Time_Value.cpp:
-
- Adding/subtracting 0.999999 from max and min is required to really
- represent a saturated time value.
-
-Wed Feb 15 12:32:37 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/Svc_Conf_Lexer.cpp:
-
- Changed two instances of memcpy() to memmove(). The areas being
- copied could possibly overlap.
-
-Wed Feb 16 11:40:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added new AdvSlotExt PI test
-
-Wed Feb 16 07:54:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_sunos5_sunc++.GNU:
- Disabled visibility by default, seems to cause some issues in the
- builds at this moment
-
-Tue Feb 14 22:56:39 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * include/makeinclude/rules.local.GNU:
-
- Added *.core to list of files to clean.
-
-Tue Feb 14 22:04:46 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/security.mpb
- * bin/MakeProjectCreator/config/ssliop.mpb
-
- Fixes for linking errors/warnings in OS X.
-
-Tue Feb 14 21:43:01 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- #include <sys/types.h> before <sys/mman.h> in
- ACE_LACKS_MADVISE_PROTOTYPE feature test. Thanks to Vladimir
- Panov <gbr at voidland dot org> for reporting and providing a
- patch for this bug.
-
-Tue Feb 14 18:36:16 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Time_Value.cpp:
-
- Changed operator *= to use std::numeric_limits<time_t>::max()
- and std::numeric_limits<time_t>::min() (or LONG_MAX and LONG_MIN
- for those platforms that lack std::numeric_limits<T>) instead of
- ACE_INT32_MAX and ACE_INT32_MIN when saturating the results.
-
- This uses the correct limits for whatever underlying type time_t
- is when std::numeric_limits<T> is available, and uses the limits
- for the traditional type, long, when it is not.
-
- Removed call to normalize(), as set() already normalizes results.
-
-Tue Feb 14 14:47:00 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/fuzz.pl:
-
- When checking for maximum length of mpc files, ensure that only
- .mpc files are checked.
-
-Tue Feb 14 08:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-lynxos.h:
- Added ACE_HAS_CHARPTR_SHMDT
-
-Tue Feb 14 08:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Svc_Handler.{h cpp}: Add ACE_LACKS_PLACEMENT_OPERATOR_DELETE
- around the operator delete with nothrow. This fixes the compile
- errors with Borland C++
-
-Mon Feb 13 17:50:49 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Svc_Handler.{h cpp}: Add placement operator delete to match
- the nothrow variant placement operator new. This ensures proper
- cleanup if the constructor throws an exception.
-
- * ace/config-hpux-11.00.h: Only set ACE_LACKS_PLACEMENT_OPERATOR_DELETE
- for aC++ versions earlier than A.03.55.02. Fixes Bugzilla #2394.
-
-Mon Feb 13 18:23:27 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Fix typos in ACE_HAS_CHARPTR_SHMAT and ACE_HAS_CHARPTR_SHMDT
- feature tests.
-
-Mon Feb 13 09:33:20 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ace/config-sunos5.5.h (ACE_IMPORT_SINGLETON_DECLARATION):
- (ACE_IMPORT_SINGLETON_DECLARE):
-
- Comment out these macro definitions. The "extern template"
- extension available in MSVC++ and g++ doesn't work for Sun
- Studio C++ compilers. An alternative may need to be found.
-
-Mon Feb 13 14:51:10 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/Svc_Conf_Lexer.cpp:
-
- Catch the possible situation where we were unable to allocate a
- converter and mark it as a conversion failure.
-
- * include/makeinclude/platform_vxworks5.5.x.GNU:
-
- If we are compiling for a PPC, we need to add the -mlongcall
- option for many TAO tests (and some user applications).
-
-Mon Feb 13 11:49:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * netsvcs/servers/svc.conf:
- * netsvcs/servers/svc.conf.xml:
- Use port 20006 for the Name_Server, is the same port as we
- default to in ACE. Fixes a problem that the Name_Server and
- Logging Server both use the same port as default
-
-Mon Feb 13 11:40:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Service_Manager.h:
- * ace/Service_Repository.h:
- Doxygen improvements
-
-Mon Feb 13 10:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Obstack_T.h:
- Doxygen improvement
-
-Mon Feb 13 10:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Proactor_Test.cpp:
- Don't test certain functionality when ACE_HAS_WINNT4 is 0
-
- * tests/Future_Test.cpp:
- * tests/Future_Set_Test.cpp:
- Moved real code out of ACE_ASSERT, fixes crashing of these
- tests in release builds
-
-Mon Feb 13 08:57:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-borland-common.h:
- Readded ACE_SIZEOF_LONG_DOUBLE 10 again
-
-Mon Feb 13 08:41:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_shm.inl (shmat):
- Added const_cast to get rid of compile errors with LynxOS
-
-Mon Feb 13 08:28:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-macosx-panther.h:
- Removed ACE_LACKS_USECONDS_T
-
-Mon Feb 13 08:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-aix-4.x.h:
- * ace/config-hpux-11.00.h:
- Added ACE_LACKS_SYS_SYSCTL_H
-
-Mon Feb 13 08:17:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.cpp (num_processors_online):
- Made the HPUX specific implementation the last option to use
-
-Mon Feb 13 08:12:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks5.x.h:
- Added ACE_LACKS_NUMERIC_LIMITS
-
-Mon Feb 13 08:09:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-cygwin32.h:
- Added ACE_LACKS_SYS_SYSCTL_H
-
-Mon Feb 13 05:12:51 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/config-netbsd.h:
- * configure.ac:
-
- Revert:
- Sun Feb 12 19:07:39 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- Caused build failures because NetBSD doesn't support
- pthread_attr_{get,set}schedpolicy(). It's not clear what
- ACE_HAS_PTHREAD_SCHEDPARAM actually means.
-
-Sun Feb 12 19:48:19 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/config_h.m4:
-
- Remove AH_TEMPLATE for ACE_HAS_SIN_LEN.
-
-Sun Feb 12 19:43:42 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/config_h.m4:
- * configure.ac:
-
- Removed AH_TEMPLATEs for ACE_HAS_PTHREADS_DRAFT4,
- ACE_HAS_PTHREADS_DRAFT6, ACE_HAS_PTHREADS_DRAFT7, and
- ACE_HAS_PTHREADS_STD from m4/config_h.m4; and add the
- descriptions as the third arguments in the AC_DEFINEs
- in configure.ac.
-
-Sun Feb 12 19:07:39 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/config-netbsd.h:
-
- Define ACE_HAS_PTHREAD_SCHEDPARAM.
-
- * configure.ac:
-
- Define ACE_HAS_PTHREAD_SCHEDPARAM if platform supports
- pthread_getschedparam() and pthread_setschedparam().
-
-Sun Feb 12 19:01:47 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/config-macosx-panther.h:
- * ace/config-macosx-tiger.h:
- * ace/config-macosx.h:
- * ace/config-mit-pthread.h:
- * ace/config-qnx-neutrino.h:
- * ace/config-qnx-rtp-62x.h:
- * ace/config-qnx-rtp-pre62x.h:
- * ace/config-unixware-7.1.0.h:
- * ace/config-unixware-7.1.0.udk.h:
-
- Remove ACE_HAS_PTHREAD_SIGMASK definition. This feature test
- macro was deprecated and replaced with ACE_LACKS_PTHREAD_SIGMASK
- some ~5 years ago.
-
-Sun Feb 12 13:31:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-linux-common.h:
- Check for icc as the first compiler, when icc is used in gcc
- compatibility mode we else incorrectly use gcc.
-
-Sun Feb 12 13:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-sunos5.5.h:
- Added ACE_LACKS_SYS_SYSCTL_H
-
-Sun Feb 12 13:18:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_shm.inl (shmdt):
- Added a const cast when ACE_HAS_CHARPTR_SHMDT is defined
-
-Sun Feb 12 13:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-sunos5.5.h:
- Fixed typo in this file
-
-Sun Feb 12 13:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks5.x.h:
- Added ACE_LACKS_SYS_SYSCTL_H
-
-Sun Feb 12 08:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-cygwin32.h:
- Removed ACE_LACKS_USECONDS_T, Cygwin does deliver useconds_t
-
-Sat Feb 11 19:54:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-lynxos.h:
- Added ACE_LACKS_SUSECONDS_T and ACE_LACKS_USECONDS_T
-
- * ace/config-hpux-11.00.h:
- Added ACE_LACKS_SUSECONDS_T
-
-Sat Feb 11 19:48:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.cpp:
- Also undef min when defined and do it before including limits,
- should fix our MingW build
-
-Sat Feb 11 19:09:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-cygwin32.h
- * ace/config-vxworks5.x.h:
- * ace/config-macosx-panther.h:
- Added ACE_LACKS_SUSECONDS_T and ACE_LACKS_USECONDS_T
-
-Sat Feb 11 10:37:04 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/ace_wchar.inl (convert): Fixed a bug where the character
- conversion was getting improperly sign converted. Thanks to
- Olivier Brunet <o dot brunet at free dot fr> for this fix.
-
-Fri Feb 10 22:49:07 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
- * ace/config-sunos5.5.h:
- * include/makeinclude/platform_sunos5_sunc++.GNU:
-
- Added Sun Studio 8 or better symbol visibility/scope support.
- Provides improved shared libraries by reducing footprint
- (e.g. 17% reduction for ACE), reducing symbol clashes with
- third party libraries and increasing run-time performance.
- [Bug 2378]
-
-Fri Feb 10 21:26:42 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added ACE_HAS_CHARPTR_SHMAT and ACE_HAS_CHARPTR_SHMDT
- feature tests. Fixes bug 2388.
-
-Fri Feb 10 19:24:10 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/trading_serv.mpb:
-
- Added iortable as a base project as the TAO_CosTrading_Serv
- library now utilizes the TAO_IORTable library.
-
-Fri Feb 10 16:00:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * bin/tao_orb_tests.lst:
- Removed "Request_Interceptor_Flow" Portable Interceptors test
- when configuration HAS_EXTENDED_FT_INTERCEPTORS as it will
- fail.
-
-Fri Feb 10 15:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Dirent_Test.cpp:
- Made this test compiling with Borland C++ with wchar enabled
-
-Fri Feb 10 14:25:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_linux_icc.GNU:
- Disable visibility by default, seems the Intel C++ compiler
- has some issues which we reported to Intel
-
-Fri Feb 10 14:23:06 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/PerlACE/Run_Test.pm:
-
- Fixed the add_path() method to work on both Windows and UNIX.
-
- * bin/depgen.pl:
-
- If the -i option is passed, create a dependency file even if there
- are no source files. This will allow NMake files to proceed
- without warning.
-
- * bin/generate_export_file.pl:
-
- Changed to always emit the static library code unless the -n is
- used. There is no reason not to support static libraries by
- default.
-
-Fri Feb 10 14:20:54 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * bin/ciao_tests.lst
-
- Reverse a previous change to ciao_tests due to concerns
- for autobuild logging.A smaller test will be added instead.
-
-Fri Feb 10 13:22:34 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * bin/ciao_tests.lst
-
- Added Bug_2130_Regression test
-
-Fri Feb 10 13:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.inl (write):
- Use another const cast when ACE_HAS_CHARPTR_SOCKOPT is defined
-
-Fri Feb 10 12:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/make_release:
- Use *.mwc to exclude any mwc files instead of listing them
- explicitly, prevents the problems which we had with x.4.9 when
- we had some new mwc files which caused an overwrite of
- GNUmakefiles.
-
-Fri Feb 10 12:42:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_linux_icc.GNU:
- Removed OCFLAGS += -axK, this flag is really dependent on the CPU
- that is targeted, it is just not a good idea to do this in general
- when optimization is enabled
-
-Fri Feb 10 12:00:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Message_Queue.cpp:
- * ace/WIN32_Proactor.cpp:
- Applied workarounds for broken vc6 header files
-
-Fri Feb 10 11:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/wrapper_macros.GNU:
- Set exceptions default to 1
-
- * include/makeinclude/platform_linux_icc.GNU:
- Set optimize to 1 again now Intel has fixed a bug in their IA64
- compiler, also added support for visibility
-
-Fri Feb 10 10:53:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ACE-INSTALL.html:
- Updated link to tenermerx code
-
- * ace/Asynch_IO.h:
- Fixed problem when ACE_HAS_WINNT4 has been set to 0. Thanks to
- Karl Schmitt <Karl dot Schmitt at dfs dot de> for reporting this.
-
- * ace/ACE.cpp:
- * ace/Select_Reactor_T.cpp:
- Fixed incorrect comment after endif
-
- * ace/Auto_Event.h:
- * ace/Based_Pointer_Repository.h:
- * ace/Based_Pointer_T.h:
- * ace/Default_Constants.h:
- * ace/Dev_Poll_Reactor.h:
- * ace/Event_Handler.h:
- * ace/File_Lock.h:
- * ace/Framework_Component.h:
- * ace/Free_List.h:
- * ace/Future.h:
- * ace/Future_Set.h:
- * ace/Guard_T.h:
- * ace/Handle_Gobbler.h:
- * ace/Handle_Set.h:
- * ace/Hash_Map_Manager_T.h:
- * ace/Hash_Map_With_Allocator_T.h:
- * ace/Local_Tokens.h:
- * ace/Map_Manager.h:
- * ace/MEM_IO.h:
- * ace/MEM_SAP.h:
- * ace/MEM_Stream.h:
- * ace/Message_Block.h:
- * ace/Message_Queue.h:
- * ace/Msg_WFMO_Reactor.h:
- * ace/Node.h:
- * ace/Null_Mutex.h:
- * ace/Null_Semaphore.h:
- * ace/Object_Manager.h:
- * ace/Process_Manager.h:
- * ace/Reactor.h:
- * ace/Reactor_Notification_Strategy.h:
- * ace/Proactor.h:
- * ace/Recursive_Thread_Mutex.h:
- * ace/Service_Object.h:
- * ace/WFMO_Reactor.h:
- * ace/Reactor_Impl.h:
- * ace/Proactor_Impl.h:
- * ace/Signal.h:
- * ace/Svc_Handler.h:
- * ace/SOCK_SEQPACK_Association.h:
- * ace/Test_and_Set.h:
- * ace/Thread_Mutex.h:
- * ace/Timer_Heap_T.h:
- * ace/TP_Reactor.h:
- * ace/Timer_Queue_Adapters.h:
- * ace/Timer_Hash_T.h:
- * ace/Timer_Queue_T.h:
- * ace/Unbounded_Set.h:
- * ace/Select_Reactor_T.h:
- * ace/Service_Config.h:
- Doxygen improvements
-
- * ace/Auto_IncDec_T.h:
- Removed incorrect comment
-
- * ace/config-aix-4.x.h:
- * ace/config-borland-common.h:
- * ace/config-cray.h:
- * ace/config-cxx-common.h:
- * ace/config-doxygen.h:
- * ace/config-g++-common.h:
- * ace/config-hpux-10.x-hpc++.h:
- * ace/config-hpux-11.00.h:
- * ace/config-icc-common.h:
- * ace/config-integritySCA.h:
- * ace/config-irix6.x-sgic++.h:
- * ace/config-kcc-common.h:
- * ace/config-lynxos.h:
- * ace/config-netbsd.h:
- * ace/config-openvms.h:
- * ace/config-osf1-4.0.h:
- * ace/config-sunos5.5.h:
- * ace/config-sunos5.6.h:
- * ace/config-tandem-nsk-mips-v2.h:
- * ace/config-tandem-nsk-mips-v3.h:
- * ace/config-unixware-7.1.0.udk.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.2.h:
- * ace/config-win32-dmc.h:
- * ace/config-win32-ghs.h:
- * ace/config-win32-msvc-6.h:
- * ace/config-win32-msvc-7.h:
- * ace/config-win32-msvc-8.h:
- * ace/config-win32-visualage.h:
- * ace/README:
- Removed ACE_HAS_USING_KEYWORD, all our compilers have it so need
- for a seperate define anymore
-
- * ace/config-borland-common.h:
- Removed ACE_LACKS_INLINE_ASSEMBLY, ACE_NEW_THROWS_EXCEPTIONS, and
- ACE_SIZEOF_LONG_DOUBLE and added ACE_HAS_NEW_NOTHROW
-
- * ace/config-doxygen.h:
- Fixed define of __ACE_INLINE__
-
- * ace/config-icc-common.h:
- Added custom export macros, the ICC compiler does support the
- visibility attribute
-
- * ace/config-lynxos.h:
- Added ACE_HAS_CHARPTR_SHMAT
-
- * ace/config-macros.h:
- Always expand ACE_USING to using
-
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- Added ACE_LACKS_ENV
-
- * ace/config-sunos5.5.h:
- Added ACE_HAS_CHARPTR_SHMDT
-
- * ace/config-win32-borland.h:
- Removed ACE_LACKS_STDINT_H, ACE_LACKS_DIRENT_H, undef the
- following defines, borland has them, ACE_LACKS_STRUCT_DIR,
- ACE_LACKS_CLOSEDIR, ACE_LACKS_OPENDIR, ACE_LACKS_READDIR,
- ACE_LACKS_REWINDDIR, added ACE_HAS_WOPENDIR, ACE_HAS_WCLOSEDIR,
- ACE_HAS_WREADDIR, ACE_HAS_WREWINDDIR
-
- * ace/config-WinCE.h:
- Added ACE_LACKS_PIPE
-
- * ace/Dirent.{h,inl}:
- * ace/Dirent_Selector.{h,cpp,inl}:
- * ace/os_include/os_dirent.h:
- * ace/OS_NS_dirent.{h,cpp,inl}:
- Borland delivers wopendir, wclosedir for wchar_t directory names
- but also wdirent instead of dirent. Added a ACE_DIRENT macro that
- normally expands to dirent but with Borland it can expand to
- wdirent when build with ACE_USES_WCHAR
-
- * ace/DLL_Manager.h:
- No need to export ACE_DLL_Handle, internal class
-
- * ace/Framework_Component.h:
- Declare private copy constructor/assignment operator,
- should allow making a copy
-
- * ace/INET_Addr.cpp:
- Changed some tests for VxWorks, only a specific implementation
- should be used when ACE_LACKS_GETHOSTBYNAME and
- ACE_LACKS_GETHOSTBYADDR are set, with newer VxWorks version we
- don't have these defines set, so we don't need to use a different
- code path for VxWorks
-
- * ace/Local_Name_Space.cpp:
- * ace/Name_Space.cpp:
- * ace/Parse_Node.cpp:
- Initialize all members, fixes GCC warnings
-
- * ace/MEM_SAP.h:
- Don't export ACE_MEM_SAP_Node, it is an internal class
-
- * ace/Message_Queue.cpp:
- * ace/WIN32_Proactor.cpp:
- Removed win32 bit specific code, the 64bit case is the one also to
- use for 32bit.
-
- * ace/Time_Value.h:
- * ace/os_include/os_time.h:
- Moved timespec to os_time, it belongs there. Fixes bugzilla
- bug [2380].
-
- * ace/Node.h:
- Declare private assignment operator
-
- * ace/OS_NS_stdlib.inl (getenv):
- Removed psos specific part, solved by adding a define to the
- psos confi files
-
- * ace/OS_NS_sys_utsname.cpp:
- Merged the two uname implementations to one method to make
- the maintenance easier
-
- * ace/OS_NS_Thread.inl:
- Replaced VXWORKS with ACE_VXWORKS
-
- * ace/Select_Reactor_Base.h:
- Added forward declaration of ACE_Sig_Handler, this class is
- used in the interfaces as pointer
-
- * ace/OS_NS_sys_shm.{h,inl}:
- Changed the void* argument of shmdt and shmat to a const void*,
- introduced ACE_HAS_CHARPTR_SHMAT and ACE_HAS_CHARPTR_SHMDT for
- the platforms that have a char* version of these methods.
-
- * ace/TP_Reactor.{h,cpp}:
- Don't export ACE_EH_Dispatch_Info and ACE_TP_Token_Guard, it are
- internal classes. Renamed grab_token to acquire_read_token as the
- todo mentioned, addded private copy constructor and assignment
- operator for ACE_TP_Token_Guard, no copying should be allowed
-
- * ace/Unbounded_Queue.cpp:
- * ace/Unbounded_Set.cpp:
- Use prefix increment/decrement
-
- * ace/OS_NS_unistd.inl:
- Merged the two pipe methods to one and replaced some c-style casts
- with C++ casts.
-
- * ace/OS_NS_unistd.cpp:
- Refactored num_processors, use sysconf when _SC_NPROCESSORS_CONF is
- defined, when ACE_HAS_SYSCTL has been set we use sysctl
- Refactored num_processors_online, use sysconf when
- _SC_NPROCESSORS_ONLN is defined, when ACE_HAS_SYSCTL has been
- set we use sysctl.
-
- * ace/Time_Value.{h,cpp,inl}:
- Use suseconds_t as type for usec
-
- * ace/Select_Reactor_T.inl:
- Added include of Signal.h to fix compile error in the solaris
- autoconf build
-
- * bin/tao_other_tests.lst:
- Also run EC_MT_MCast in a static configuration
-
- * bin/tao_orb_tests.lst:
- Added AMH_Oneway and Bug_2319_Regression
-
- * bin/perltest2cpp.pl:
- Removed this file
-
-Thu Feb 9 20:07:59 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Time_Value.cpp:
-
- Some platforms pollute the namespace with a max() macro, which
- makes it impossible to invoke std::numeric_limits<T>::max().
- #undef max after all the headers have been #included.
-
-Thu Feb 9 18:51:16 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- #include <sys/types.h> in the ACE_HAS_2_PARAM_SCHED_GETAFFINITY
- and ACE_HAS_2_PARAM_SCHED_SETAFFININTY feature tests. Thanks to
- Doug McCorkle <mccdo at iastate dot edu> for reporting this bug.
-
-Thu Feb 9 20:05:00 UTC 2006 Iliyan Jeliazkov <iliyan@ociweb.com>
-
- * bin/tao_other_tests.lst:
-
- Added the new secure policies test.
-
-Thu Feb 9 17:40:17 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/OS_NS_string.cpp (ACE_OS::strerror):
-
- Don't use strlen() to see if length is zero, check if the
- first char is null (O(1) vs. O(N)).
-
-Thu Feb 9 16:59:40 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * test/MEM_Stream_Test.cpp:
-
- Align test_reactive() and test_concurrent() so the same
- error/warnings are emitted.
-
- * Flag_Manip.cpp:
- * IPC_SAP.cpp
- * MEM_IO.cpp:
- * SOCK_Dgram.cpp:
- * SSL/SSL_SOCK_Stream.cpp:
-
- Change type of FIONBIO and FIONREAD ioctl from u_long,
- ACE_INT32, etc. to int for portability.
-
- * ace/Time_Value.cpp:
-
- Use std::numeric_limits<time_t>::max () instead of LONG_MAX
- as ctor's first argument when initializing ACE_Time_Value::
- max_time if !ACE_LACKS_NUMERIC_LIMITS, as time_t may not be
- a long. Fixes Timer_Queue_Reference_Counting_Test on NetBSD/amd64.
-
- * configure.ac:
-
- Added ACE_LACKS_NUMERIC_LIMITS feature test.
-
- * ace/README:
-
- Document new ACE_LACKS_NUMERIC_LIMITS feature test macro, which
- should be defined to 1 if platform lacks std::numeric_limits<>.
-
- * ace/Cached_Connect_Strategy_T.cpp (cached_connect):
-
- Handle ETIMEDOUT as we do for EWOULDBLOCK. Fixes
- Cached_Conn_Test on NetBSD systems.
-
- * ace/config-freebsd.h:
- * ace/config-netbsd.h:
- * ace/config-openbsd.h:
- * ace/config-macosx-panther.h:
- * ace/config-macosx-tiger.h:
- * ace/config-macosx.h:
-
- Define ACE_HAS_SOCKADDR_IN6_SIN6_LEN.
- This may be needed for other canned configs.
-
- * ace/config-aix-4.x.h:
- * ace/config-cray.h:
- * ace/config-freebsd.h:
- * ace/config-macosx-panther.h:
- * ace/config-macosx-tiger.h:
- * ace/config-macosx.h:
- * ace/config-mvs.h:
- * ace/config-netbsd.h:
- * ace/config-openbsd.h:
- * ace/config-qnx-neutrino.h:
- * ace/config-qnx-rtp-62x.h:
- * ace/config-qnx-rtp-pre62x.h:
- * ace/config-unixware-7.1.0.h:
- * ace/config-unixware-7.1.0.udk.h:
- * ace/config-win32-interix.h:
-
- Change ACE_HAS_SIN_LEN to ACE_HAS_SOCKADDR_IN_SIN_LEN.
-
- * ace/README:
-
- Document new feature test macros ACE_HAS_SOCKADDR_IN_SIN_LEN and
- ACE_HAS_SOCKADDR_IN6_SIN6.
-
- Removed description of ACE_HAS_SIN_LEN. This macro was defined,
- but not used anywhere in ACE, TAO, or CIAO. It's being removed
- rather than used because the new macros follow our feature test
- naming conventions.
-
- * ace/INET_Addr.cpp:
- * ace/INET_Addr.inl:
-
- Set the sockaddr_in.sin_len and sockaddr_in6.sin6_len members if
- new ACE_HAS_SOCKADDR_IN_SIN_LEN or ACE_HAS_SOCKADDR_IN6_SIN6_LEN
- feature test macros are defined.
-
-Tue Feb 7 23:28:29 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/SPIPE_Acceptor.cpp (close): On Windows, wait for completion
- (cancellation) of an outstanding ConnectNamedPipe operation. If
- left outstanding and the ACE_SPIPE_Acceptor object is deleted, the
- OS will write into deleted memory. Thanks to Nathan Bamford
- <nbamford at datalever dot com> for reporting this.
-
- * THANKS: Added Nathan Bamford to the Hall of Fame.
-
-Wed Feb 08 15:46:51 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * ACE version 5.4.9 released.
-
-Mon Feb 6 18:39:20 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated with info from Doug Schmidt.
-
-Mon Feb 6 15:49:57 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated with info from Steve Huston.
-
-Mon Feb 6 14:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ACE-INSTALL.html:
- Improved documentation for the BCBVER environment setting which
- is required for building with the Borland C++ compilers
-
-Fri Feb 3 23:48:32 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Barrier.h: Noted shutdown() was added for 5.4.9.
-
- * ace/Message_Queue_T.{h cpp}: Changed enqueue_head(), enqueue_tail()
- to recognize that the ACE_Message_Block passed may have other
- block(s) connected to it via the next() pointers. This allows a
- caller to pre-connect a series of ACE_Message_Blocks and coalesce
- the enqueueing of the series into a single method call.
- Thanks to Guy Peleg <guy dot peleg at amdocs dot com> for suggesting
- this enhancement.
- Also revamped the Doxygenization of ACE_Message_Queue's
- documentation.
-
- * tests/Message_Queue_Test.cpp: Added chained_block_test() to test
- the new functionality above.
-
-Fri Feb 3 14:47:53 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ace/Cleanup_Strategies_T.h:
-
- Added missing versioned namespace declarations.
-
- * ace/Guard_T.h:
-
- Fixed versioned namespace related errors in single-threaded
- builds with that feature enabled.
-
- * ace/WFMO_Reactor.h:
-
- Forward declare the ACE_WFMO_Reactor_Test class outside of the
- versioned namespace. This test class is actually declared in
- the global namespace of a standalone test.
-
-Fri Feb 3 07:53:16 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/OS_NS_sys_socket.inl (setsockopt): Make sure to
- map WSAEOPNOTSUPP to the ENOTSUP errno value so the code is
- portable across versions of sockets! Thanks to David Hauck
- <davidh at netacquire dot com> for this fix.
-
- * ace/OS_NS_sys_socket.inl (setsockopt): Only check for
- WSAEOPNOTSUPP on platforms that actually support this macro!
- Thanks to Wallace Zhang for reporting this.
-
-Thu Feb 2 23:59:37 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * html/index.html
-
- Removed the XML_helpers link, as that documentation is no
- longer generated.
-
-Thu Feb 2 23:41:39 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/acedefaults.mpb
-
- Added zlib to the feature inherits to resolve linking errors
- on Windows.
-
-Thu Feb 2 13:35:18 Pacific Standard Time 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ace/OS_NS_Thread.h:
-
- Fixed versioned namespace related errors in single-threaded
- builds with that feature enabled.
-
-Thu Feb 2 17:49:42 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/OS_NS_string.h:
-
- Add ACE_Export decoration to ACE_OS::fast_memcpy() declaration.
-
-Thu Feb 2 15:47:35 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * examples/Map_Manager/Map_Manager.mpc:
-
- Added an mpc file to create the right kind of project. The
- symptoms of bad or missing mpc files are stray library symbolic
- links.
-
-Thu Feb 2 14:48:03 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
-
- Build examples and tests subdirectories after building
- protocols. I think all of the HTBP, RMCast and TMCast examples
- and tests should be moved underneath protocols eventually , but
- it's too close to the release to do it safely.
-
-Thu Feb 2 11:19:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Naming_Test.cpp:
- Moved some real test code out of ACE_ASSERT calls
-
-Thu Feb 2 06:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/run_test.lst:
- Fixed another error in this file
-
-Wed Feb 1 20:33:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Event_Handler.h:
- Doxygen improvement
-
-Wed Feb 1 20:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/msvc_static_order.lst:
- Added CosConcurrency_IDL
-
-Wed Feb 1 18:00:06 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * ace/ace_for_tao.mpc
-
- Added Dirent_Selector.cpp to fix the Dirent test.
-
-Wed Feb 1 08:17:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_shm.inl:
- Reverted another part of my changes
-
-Wed Feb 1 07:52:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/run_test.lst:
- Fixed !ACE_FOR_TAO additions
-
-Tue Jan 31 22:08:57 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Barrier.{h cpp}: Added a new shutdown () method which aborts all
- waiting on the barrier. Thanks to John Lilley <jlilley at datalever
- dot com> for contributing this method.
- Also note that the wait() method can now return -1 with errno
- ESHUTDOWN if the barrier is shut down while waiting for it.
-
- * tests/Barrier_Test.cpp: Added a test for barrier shutdown.
-
- * THANKS: Added John Lilley to the Hall of Fame.
-
-Tue Jan 31 21:34:34 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/ciao_tests.lst
-
- Added the hello test *without* naming service so we get results
- even on platforms with a broken/nonextant Naming Service.
-
-Tue Jan 31 16:51:27 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/ciao_tests.lst
- * bin/tao_other_tests.lst
- * tests/run_test.lst
-
- Added a bunch of !ACE_FOR_TAO qualifiers to tests that are not
- built/runnable when the ACE_FOR_TAO feature is used.
-
- * tests/run_test.lst
-
- Removed the avoid of ace_for_tao from the Dirent test, as Dirent.cpp
- is now built as part of ace_for_tao.
-
-Tue Jan 31 09:44:10 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_shm.{h,inl}:
- Reverted my change below, removed the const, it causes problems with
- solaris, have to add a special case for solaris, but will do that
- after x.4.9 is out
-
- Fri Jan 27 12:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_shm.{h,inl}:
- Changed for the shmdt and shmat methods the void* argument to
- const void*, this is the way posix defines these methods.
-
-Mon Jan 30 17:53:10 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/ciao_tests.lst
-
- Added a !NOXERCES qualifier so it is possible to run only tests
- that do not require xerces.
-
-Sat Jan 28 18:40:30 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Array_Base.h (class ACE_Array_Base): Changed private to
- protected to enable access to certain members in derived
- classes. Thanks to luxi78@gmail.com for suggesting this.
-
-Fri Jan 27 23:29:44 UTC 2006 James H. Hill <hillj@isis.vanderbilt.edu>
-
- * docs/ace_guidelines.vsmacros:
-
- Re-added the Visual Studio macros as a binary file.
-
-Fri Jan 27 23:21:49 UTC 2006 James H. Hill <hillj@isis.vanderbilt.edu>
-
-
- * docs/ace_guidelines.vsmacros:
-
- Removed this file since it's a binary file.
-
-Fri Jan 27 18:47:34 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * ace/ace_for_tao.mpc
-
- Added Dirent.cpp to resolve linking errors in TAO_IDL on Windows.
-
-Fri Jan 27 14:53:03 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/PerlACE/Run_Test.pm:
-
- Added a method to get a random port number within the range of
- 10002 - 32767.
-
-Fri Jan 27 14:10:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Reactor_Performance_Test.cpp:
- Initialise some pointers with 0
-
-Fri Jan 27 13:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/DLL_Manager.h:
- Doxygen improvements
-
-Fri Jan 27 13:43:50 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/msvc_static_order.lst:
-
- More tweaks for split of CosConcurrency library --- build tests
- after building the library.
-
-Fri Jan 27 13:42:03 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Fix typo in last change.
-
-Fri Jan 27 12:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_shm.{h,inl}:
- Changed for the shmdt and shmat methods the void* argument to
- const void*, this is the way posix defines these methods.
-
-Fri Jan 27 11:31:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Select_Reactor_T.cpp:
- Forgot this file to commit, only include the .inl file when
- inlining is disabled
-
-Fri Jan 27 11:06:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Connector.h:
- Improved doxygen
-
-Fri Jan 27 10:43:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Swap.h:
- Added a deprecated tag to this file, std::swap can be used without
- problems on all platforms, we do it in TAO without problems
-
-Fri Jan 27 10:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_wait.h:
- Improved doxygen
-
-Fri Jan 27 10:11:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Thread_Manager_Test.cpp:
- Updated this test for VxWorks with pthread support
-
-Fri Jan 27 09:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * html/Stats/performance.shtml:
- Changed picture to 800*600
-
- * bin/performance_stats.sh:
- Copy the contents of html/Stats to the destination directory, this
- way any change in this directory is automatically published on
- the webserver. The old contents of the webserver has been checked
- to make sure we don't loose any data.
-
-Fri Jan 27 09:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Select_Reactor_Base.h:
- * ace/Select_Reactor.h:
- * ace/config-sunos5.5.h:
- * ace/config-osf1-4.0.h:
- Doxygen improvements
-
- * ace/Select_Reactor_T.{h,inl}:
- Doxygen improvements and enabled inlining in the inline file again,
- this was disabled and I could find that someone disable this 7 years
- ago because of a bug in the Sun compiler at that moment. The current
- supported versions don't have a problem with this, so enabled
- inlining again in this core part of ACE.
-
-Fri Jan 27 03:09:01 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- If examples and/or tests have been disabled, don't bother
- generating subdirectory hierarchies or Makefiles for them.
-
-Fri Jan 27 02:43:53 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
- * m4/ace.m4:
-
- Remove support for --{enable,disable}-ace-perftests. The
- performance tests are now enabled/disabled with the plain
- --{enable,disable}-ace-tests option. We decided this as
- flags for each type of example and test gets a unwieldly
- once we factor in TAO (and sometime in the future CIAO).
-
-Thu Jan 26 18:53:10 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * Makefile.am (SUBDIRS):
- * m4/ace.m4: Added support to enable/disable building the ACE tests,
- performance tests, and examples. Thanks to Thomas E Lackey
- <telackey at bozemanpass dot com> for contributing this.
-
-Thu Jan 26 20:25:39 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * examples/APG/Streams/BasicTask.h:
- * examples/APG/Streams/EndTask.h: Fixed ACE_Message_Block memory leaks.
-
-Thu Jan 26 17:59:16 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/dance_extension_stub.mpb
-
- Added a new MPC base project for DAnCE.
-
-Thu Jan 26 15:38:38 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * protocols/ace/RMCast/Template_Instantiations.cpp: Replace the
- separate long and long long instantiations with u64 instantiations.
- This is what the code says, and avoids issues with 64-bit
- explicit instantiations builds.
-
-Thu Jan 26 15:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Singleton.h:
- Doxygen improvements
-
-Thu Jan 26 15:05:04 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * protocols/ace/RMCast/Template_Instantiations.cpp: Add missing
- template instantiations.
-
-Thu Jan 26 14:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Message_Block_Test.cpp:
- * tests/Process_Manual_Event_Test.cpp:
- * tests/Process_Mutex_Test.cpp:
- Moved real code out of ACE_ASSERT macro's, this functionality
- wasn't executed in release mode builds. Found this because of
- warnings in the Intel release build that a variable was used
- before it was assigned a value.
-
-Thu Jan 26 13:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/performance_stats.sh:
- Increased size of pictures to 800x600 and also put linux and
- gcc version into a file which is used by the other html files
-
- * bin/generate_performance_chart.sh:
- * bin/generate_topinfo_charts.sh:
- Generate pictures of 800x600
-
-Thu Jan 26 13:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * html/Stats/configuration.shtml:
- Get linux and gcc version from the file instead of hardcoding
- it in this file
-
- * html/Stats/simple_footprint.shtml:
- Removed the smart proxies lib, it is always 0 size, added PI
- and PI_Server
-
-Thu Jan 26 13:06:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/generate_compile_stats.sh:
- Extended this script to generate a seperate page for the CIAO
- footprint stats. Also made the generated png images the size
- of 800x600 and get the gcc version from gcc itself instead of
- generating it hardcoded
-
-Thu Jan 26 13:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/generate_footprint_chart.sh:
- Generate the png images of size 800x600, little bit bigger, makes
- it more easier to read
-
-Thu Jan 26 11:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Registry.h:
- * ace/Token_Request_Reply.h:
- * ace/Semaphore.h:
- * ace/Hash_Map_Manager_T.h:
- * ace/Sched_Params.h:
- Doxygen improvements
-
-Thu Jan 26 10:47:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * html/Stats/detailed_footprint.shtml:
- Updated header page to also mention that we gather CIAO stats
-
-Wed Jan 25 20:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.h:
- * ace/config-linux-common.h:
- * ace/config-macros.h:
- * ace/RB_Tree.h:
- Doxygen improvements
-
- * ace/config-freebsd.h:
- * ace/config-macosx.h:
- * ace/config-netbsd.h:
- * ace/config-openbsd.h:
- * ace/config-vxworks6.2.h:
- Added ACE_HAS_SYSCTL, will be used in some new code that will
- be added after x.4.9
-
-Wed Jan 25 19:57:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-common.h:
- Added ACE_LACKS_SUSECONDS_T and ACE_LACKS_USECONDS_T
-
- * ace/WIN32_Asynch_IO.h:
- * ace/TSS_T.h:
- * ace/Timer_Queue_T.h:
- * ace/String_Base.h:
- * ace/iosfwd.h:
- * ace/High_Res_Timer.h:
- * ace/Configuration.h:
- * ace/Log_Msg.h:
- * ace/Message_Queue.h:
- * ace/Process.h:
- * ace/SOCK_Dgram_Mcast.h:
- * ace/Managed_Object.h:
- * ace/Map_Manager.h:
- * ace/Containers_T.h:
- * ace/SString.h:
- * ace/IOStream.h:
- Doxygen improvements
-
-Wed Jan 25 19:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/modules/BorlandWorkspaceCreator.pm:
- Don't use the directory group sorting with borland
-
-Wed Jan 25 19:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/sys/os_types.h:
- If ACE_LACKS_SUSECONDS_T is defined then define suseconds_t as
- long. If ACE_LACKS_USECONDS_T is defined then define useconds_t
- as unsigned long.
-
-Wed Jan 25 15:05:27 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added feature test for ACE_LACKS_SUSECONDS_T and
- ACE_LACKS_USECONDS_T.
-
-Wed Jan 25 15:00:05 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added feature tests for ACE_LACKS_SYS_SYSCTL_H and
- ACE_HAS_SYSCTL.
-
-Wed Jan 25 14:38:10 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/SSL/SSL_Asynch_BIO.h:
- * include/makeinclude/platform_lynxos.GNU:
- Fixed compile error on LynxOS when ssl=1.
-
-Wed Jan 25 13:06:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Array.h:
- * ace/Asynch_IO.h:
- * ace/Asynch_IO_Impl.h:
- * ace/Atomic_Op_T.h:
- * ace/Basic_Types.h:
- * ace/Caching_Utility_T.h:
- * ace/CDR_Size.h:
- * ace/CDR_Stream.h:
- * ace/Cleanup_Strategies_T.h:
- Improved documentation by using @note doxygen tag
-
-Wed Jan 25 12:48:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/TP_Reactor.{h,cpp}:
- Improved doxygen
-
-Wed Jan 25 12:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Select_Reactor_Base.h:
- Improved doxygen
-
-Wed Jan 25 12:13:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/vcl.mpb:
- Add compile_flags that are needed to build vcl apps
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- If compile_flags is set, then add them to the CFLAGS
-
-Wed Jan 25 11:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * html/Stats/footprint.shtml:
- Added link for CIAO footprint we are going to gather
-
-Wed Jan 25 10:43:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-common.h:
- Added ACE_LACKS_SYS_SYSCTL_H
-
-Wed Jan 25 10:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/sys/os_sysctl.h:
- New os_include system header include file, will be used after x.4.9
- is out because using it now can break to much builds
-
-Tue Jan 24 18:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Readded ACE_LACKS_MKTEMP again, the function is declared but can't
- be resolved during linking, reported this to WindRiver
-
-Tue Jan 24 16:56:51 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_signal.inl: Removed explicit ACE_OS from sigaction
- function - left over from trying to work around HP issues yesterday.
-
-Tue Jan 24 16:28:11 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added feature tests for ACE_LACKS_KILL and ACE_LACKS_SIGACTION.
-
-Tue Jan 24 16:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_dlfcn.inl:
- The symFindByName is only working with VxWorks in kernel mode
-
-Tue Jan 24 14:44:35 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Activation_Queue.h: Corrected @retval for enqueue(). Returns
- >0 (number of requests now queued) on success, not 0. Thanks to
- Guy Peleg for this correction.
-
-Tue Jan 24 14:00:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_stdlib.cpp:
- Only with VxWorks 5.5.1 don't use limits, newer versions to have this
-
-Tue Jan 24 13:43:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Removed ACE_LACKS_MKTEMP, VxWorks 6.2 delivers this function
-
-Tue Jan 24 13:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Removed ACE_LACKS_MMAP and ACE_LACKS_MPROTECT, VxWorks 6.2 delivers
- these functions
-
-Tue Jan 24 13:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_resource.inl:
- Use the ACE_UNUSED_ARG macro for arguments that are not used
-
-Tue Jan 24 12:54:35 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm:
-
- Choosed a non-group sorting method if the MPC_GNUACE_NAMED_TARGETS
- environment variable is set.
-
-Tue Jan 24 12:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_netdb.{h,cpp,inl}:
- * ace/config-vxworks5.x.h:
- Simplified the vxworks specific code, VxWorks 6.2 does deliver several
- of the API's we don't had with VxWorks 5.5.1.
-
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- Added ACE_LACKS_GETHOSTBYNAME
-
-Tue Jan 24 12:12:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_netdb.h:
- * ace/OS_NS_netdb.inl:
- Use ACE_VXWORKS instead of VXWORKS and introduced
- ACE_LACKS_GETHOSTBYADDR, ACE_LACKS_GETPROTOBYNUMBER and
- ACE_LACKS_GETPROTOBYNAME to make maintenance easier
-
- * ace/config-chorus.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.2.h:
- * ace/config-WinCE.h:
- Added the new defines to the correct files
-
-Tue Jan 24 11:48:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_arpa_inet.cpp (inet_aton):
- Use ACE_VXWORKS instead of VXWORKS and made it dependent on the
- VxWorks version number
-
-Tue Jan 24 10:33:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * OS_NS_signal.inl:
- Introduced ACE_LACKS_SIGACTION and ACE_LACKS_KILL to make things
- easier to maintain
-
- * ace/config-chorus.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- * ace/config-win32-common.h:
- * ace/config-WinCE.h:
- Added ACE_LACKS_SIGACTION, ACE_LACKS_KILL
-
-Mon Jan 23 22:08:56 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_signal.{h inl}:
- * ace/OS_TLI.h: The method-name-same-as-struct-name hack for HP aC++
- needs to go up through version 03.65. This compiler version is used
- on HP-UX 11iv2 on PA-RISC, so the hack can't be expunged when
- removing HP-UX 11.00 support. The hack does not appear to be needed
- for aC++ on HP-UX on Integrity (aC++ v06.xx). Also see
- Mon Jan 23 16:35:40 UTC 2006 Steve Huston <shuston@riverace.com>
-
-Mon Jan 23 20:19:25 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/ciao_tests.lst
-
- Removed the "Exceptions" qualifier from the CIAO tests, as we
- no longer support emulated exceptions, and we want these
- tests to run everywhere.
-
-Mon Jan 23 18:07:00 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * apps/Gateway/Gateway/Event_Channel.cpp: Put the ACE_INET_Addr
- setup on separate lines to help aC++ optimizer get it right.
-
-Mon Jan 23 16:35:40 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/OS_TLI.{h inl}: HP aC++ 03.56 (last aC++ for HP-UX 11.00) gets
- confused with struct t_optmgmt being defined as extern "C" by the OS
- and referenced in namespace ACE_OS by ACE. To help this compiler
- deal, typedef ACE_TOPTMGMT appropriately, with extern "C" for
- aC++ less than 03.60 and normally for all other compilers. This
- should take care of the odd t_optmgmt errors.
-
- When we remove support for HP-UX 11.00, this hack should be removed
- as well.
-
- * apps/JAWS3/jaws3/Reactive_IO.cpp: Replace #include "ace/OS.h" with
- #include "ace/OS_NS_unistd.h". Leaving OS.h gets HP aCC into a state
- where it gets confused about methods and types with the same name,
- in this case t_optmgmt.
-
-Mon Jan 23 15:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/ATM_Acceptor.h:
- * ace/OS_NS_stdio.h:
- Doxygen improvements
-
-Mon Jan 23 15:43:56 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/msvc_static_order.lst:
-
- Update for split of CosConcurrency, CosProperty, and
- RTEventLogAdmin libraries.
-
-Mon Jan 23 08:02:08 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Pipe.cpp: Added static_cast<u_short> (0) rather than
- (u_short) 0 to the ACE_INET_Addr local_any in ACE_Pipe::open().
-
-Sat Jan 21 08:19:34 UTC 2006 James H. Hill <hillj@isis.vanderbilt.edu>
-
- * docs/ACE-guidelines.html:
- * docs/ace_guidelines.vsmacros:
-
- Added Visual Studio .NET macros project that helps with formatting
- according to ACE guidelines. Also noted the macros project in the
- documentation file.
-
-Fri Jan 20 22:51:09 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * apps/JAWS/server/IO.h:
- * apps/JAWS/server/IO.cpp:
-
- Fixed unused paramerer warnings.
-
- * apps/JAWS2/JAWS/IO.h:
- * apps/JAWS2/JAWS/IO.cpp:
-
- tried to fix the 'cast to pointer from interger of different size'
- warning. It had to do with the fact that x86_64 void* are 8 bytes and
- the cast was from an int which 4 bytes. When James Hu wrote that
- code there were no 64 bit archs so the error is showing up now.
-
-Fri Jan 20 15:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/WIN32_Proactor.h:
- No need to export ACE_WIN32_Asynch_Timer
-
-Fri Jan 20 14:55:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/*.doxygen:
- Updated EXPAND_AS_DEFINED so that we generate documentation with
- exceptions in the interfaces
-
-Fri Jan 20 13:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-macros.h:
- Replace VXWORKS with ACE_VXWORKS and guarded the following
- macros with ACE_LACKS_DEPRECATED_MACROS so that usage of these
- deprecated macros within ACE/TAO is prevented: ACE_USING,
- ACE_SYNCH_1, and ACE_SYNCH_2
-
-Fri Jan 20 11:29:54 UTC 2006 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Protocol.h:
-
- Fixed a race condition.
-
- * protocols/ace/TMCast/FaultDetector.hpp:
-
- Added a flag to prevent a single group member from terminating
- until data is received from other members.
-
-Fri Jan 20 11:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added new PI AdvSlot test
-
-Wed Jan 18 19:40:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added new PI Slot test
-
-Wed Jan 18 19:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/WFMO_Reactor.cpp:
- Replace c-style cast with reinterpret_cast
-
- * ACE-INSTALL.html:
- Small cygwin update
-
- * ace/Mem_Map.h:
- Doxygen improvements
-
- * ace/Mem_Map.cpp:
- ACE_OS::filesize returns off_t
-
-Wed Jan 18 18:22:13 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * apps/Gateway/Gateway/Event_Channel.cpp:
-
- Updated because constructors of ACE_INET_Addr are now explicit.
-
-Wed Jan 18 06:55:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-cygwin32.h:
- Added ACE_HAS_4_4BSD_SENDMSG_RECVMSG
-
-Tue Jan 17 20:37:05 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/rteventlogadmin.mpb:
- * bin/MakeProjectCreator/config/rteventlogadmin_serv.mpb:
- * bin/MakeProjectCreator/config/rteventlogadmin_skel.mpb:
-
- Split RTEventLogAdmin Service into three libraries:
- RTEventLogAdmin, RTEventLogAdmin_Skel, and RTEventLogAdmin_Serv
- for client stubs, servant skeletons, and service implementation
- respectively.
-
-Tue Jan 17 20:28:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Module.h:
- Doxygen improvement
-
-Tue Jan 17 19:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-cygwin32.h:
- Added ACE_HAS_P_READ_WRITE and removed ACE_LACKS_READDIR_R, this
- is for Cywin 1.5.19
-
-Tue Jan 17 18:50:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/INET_Addr.{h,cpp}:
- Improved doxygen, changed VXWORKS to ACE_VXWORKS and make one
- of the constructors that has two arguments, one has to be passed
- the other has a default value explicit
-
-Tue Jan 17 17:38:46 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * examples/C++NPv2/display_logfile.cpp: In the Logrec_Module
- constructor, don't use base-class initialization to pass &task_
- to ACE_Module. Doing so passes &task_ before task_ has been
- constructed. Thus, when ACE_Module sets the task's module
- pointer, it gets overwritten when task_ is constructed after
- return from ACE_Module's constructor. Calling task_'s module()
- method in this case will yield a 0 pointer, which is not correct.
- To remedy this, call ACE_Module::open() directly from within
- the Logrec_Module constructor.
- Also see Stroustrup pg 307.
- Thanks to David Hawkins for pointing this out.
-
-Tue Jan 17 16:27:47 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/OS_NS_dlfcn.inl:
- Fixed compile error on LynxOS 3.x.
-
-Tue Jan 17 15:37:29 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/taodefaults.mpb:
-
- If the corba_messaging feature is disabled, then add the
- TAO_HAS_CORBA_MESSAGING=0 macro to ensure that TAO is built
- properly.
-
-Tue Jan 17 14:03:14 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Module.h: Change ~ACE_Module to be virtual so that derived
- classes can be cleaned up properly. Thanks to David Hawkins
- <dwh at ovro dot caltech dot edu> for this fix.
-
- * THANKS: Added David Hawkins to the Hall of Fame.
-
-Tue Jan 17 01:12:35 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Pipe.cpp (open): Added a cast to u_short for the first
- parameter to ACE_INET_Addr to avoid complaints on certain
- compilers. Thanks to Wallace Zhang for reporting this.
-
-Mon Jan 16 06:59:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_dlfcn.inl:
- Fixed compile errors with VxWorks 5.5
-
-Mon Jan 16 15:17:22 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Pipe.cpp (open): Changed
-
- ACE_INET_Addr local_any ("localhost:0");
-
- to
-
- ACE_INET_Addr local_any (0, ACE_LOCALHOST);
-
- so that it will work more portably. Thanks to Steve Huston for
- suggesting this fix.
-
-Mon Jan 16 20:43:26 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/README:
- Removed ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO, it is
- no longer used.
-
- * ace/config-lynxos.h:
- Minor updates for LynxOS 4.0.
-
- * tests/run_test.lst:
- Run a few more tests on LynxOS.
-
-Mon Jan 16 20:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Log_Record.h:
- Doxygen improvement
-
-Mon Jan 16 19:52:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_errno.h:
- Replaced VXWORKS with ACE_VXWORKS
-
-Mon Jan 16 19:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/SOCK_IO.cpp:
- When using FIONREAD the 3rd argument should be of type int. This
- fixes bugzilla bug 2360. Thanks to Michael Klein
- <michael dot klein at fazi dot de> for reporting this.
-
- * ace/SV_Semaphore_Complex.h:
- Instead of ACE_USING just use "using"
-
- * ace/Sched_Params.cpp:
- * ace/ACE.cpp:
- * ace/INET_Addr.cpp:
- * ace/OS_NS_netdb.cpp:
- Replaced VXWORKS with ACE_VXWORKS
-
- * ace/Read_Buffer.h:
- * ace/Reactor.h:
- Doxygen improvement
-
- * ace/Flag_Manip.inl:
- Removed remark about VxWorks, not valid anymore with
- newer versions
-
- * ace/OS_NS_dlfcn.inl:
- Removed ACE_HAS_CHARPTR_DL, is not defined in any config file
-
- * ace/config-all.h:
- Removed old vxworks specific part
-
-Mon Jan 16 17:23:42 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/config-lynxos.h:
- Added ACE_HAS_POSIX_REALTIME_SIGNALS.
-
-Mon Jan 16 17:20:50 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/config-lynxos.h:
- Do not use mmap() emulation on LynxOS 4.0.
-
-Mon Jan 16 17:00:26 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * apps/JAWS/server/HTTP_Handler.h:
- * apps/JAWS/server/HTTP_Handler.cpp:
- * apps/JAWS/server/HTTP_Server.h:
- * apps/JAWS/server/HTTP_Server.cpp:
- * apps/JAWS/server/IO.h:
- * apps/JAWS/server/IO.cpp:
- * apps/JAWS/server/README:
- * apps/JAWS/server/svc.conf:
-
- Checking the some changes to JAWS. This is the code that adds the ability
- to start the server without file caching. This functionality is necessary
- for the proper coordination of file creations and deletions between JAWS
- and the RepositoryManager in CIAO. The changes are explained in the README.
- I have added a line in the svc.conf file which shows how to enable this new
- functionality.
-
-Mon Jan 16 16:53:38 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/config-lynxos.h:
- Removed ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO, it is
- no longer used.
-
-Mon Jan 16 14:35:10 UTC 2006 Olli Savia <ops@iki.fi>
-
- * ace/config-lynxos.h:
- * include/makeinclude/platform_lynxos.GNU:
- Improved shared library support for LynxOS 4.0.
-
-Mon Jan 16 05:54:44 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Timer_Queue_Adapters.cpp (svc): Added a fix so that
- this code will work for both regular timers and high-resolution
- timers. Thanks to Eric Tiangang <tgliu@utstar.com> and Robert
- Iakobashvili <coroberti at gmail dot com> for this fix. This
- fixes bugid 2348.
-
- * include/makeinclude/platform_linux.GNU (LD):
- Pass -O3 to GNU-linker to reduce footprint due to ld
- optimizations. Thanks to Robert Iakobashvili <coroberti at
- gmail dot com> for this enhancement.
-
-Sun Jan 15 19:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/SOCK_IO.{cpp,inl}:
- Removed several casts which where not needed and only cause
- problems with 64bit builds
-
-Sun Jan 15 18:57:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Service_Config.h:
- Fixed ACE_DYNAMIC_SERVICE_DIRECTIVE macro when unicode is
- enabled. Thanks to Jan Ohlenburg <jan dot ohlenburg at
- fit dot fraunhofer dot de>.
-
-Sun Jan 15 06:06:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/avstreams.mpb:
-
- Update to inherit from property_serv. as this project uses a
- collocated property service --- property.mpb now only brings
- in the client stubs.
-
- * bin/MakeProjectCreator/config/concurrency.mpb:
- * bin/MakeProjectCreator/config/concurrency_serv.mpb:
- * bin/MakeProjectCreator/config/concurrency_skel.mpb:
-
- Split CosConcurrency Service into three libraries:
- CosConcurrency, CosConcurrency_Skel, and CosConcurrency_Serv for
- client stubs, servant skeletons, and service implementation
- respectively.
-
- * bin/MakeProjectCreator/config/property.mpb:
- * bin/MakeProjectCreator/config/property_serv.mpb:
- * bin/MakeProjectCreator/config/property_skel.mpb:
-
- Split CosProperty Service into three libraries:
- CosProperty, CosProperty_Skel, and CosProperty_Serv for client
- stubs, servant skeletons, and service implementation
- respectively.
-
-Sat Jan 14 12:59:39 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Pipe.cpp (open): Added a workaround so that "localhost:0"
- is used rather than sap_any to avoid triggering firewall rules
- on Windows. Thanks to Paul Felix <pef@fluent.com> for this fix.
-
- * ace/ACE.h (ACE): Updated the documentation for ACE::fork() to
- indicate that -1 or 1 are returned if avoid_zombies != 0. This
- is a bug that needs to be fixed at some point. Thanks to Tobias
- Herzke <tobias.herzke@uni-oldenburg.de> for reporting this.
-
-Fri Jan 13 19:06:33 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Reorder some function feature tests so they're closer to
- alphabetical order. This makes it easier to maintain.
-
-Fri Jan 13 17:56:53 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added ACE_LACKS_SYSTEM feature test.
-
-Fri Jan 13 09:38:21 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * docs/ACE-bug-process.html (HREF): Updated this document to
- explain the process for submitting a patch. Thanks to Rick
- Taylor <rick@tropicalstormsoftware.com> for motivating this.
-
-Fri Jan 13 12:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.cpp (~TSS_Cleanup_Instance):
- Set the members to zero after a delete because it are static
- ones.
-
-Fri Jan 13 11:47:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_stdlib.inl:
- Changed ACE_OS::system to use ACE_LACKS_SYSTEM
-
- * ace/config-chorus.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- * ace/config-WinCE.h:
- Added ACE_LACKS_SYSTEM
-
-Fri Jan 13 08:34:18 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * test/test_config.h:
-
- Changed so the very first thing we do is #undef ACE_NDEBUG.
-
- * test/OS_Test.cpp:
-
- Changed to make "test_config.h" the first header to be
- #included, as it #undef's ACE_NDEBUG. This ensures ACE_ASSERT()
- will be defined so it validates its expression even for debug=0
- builds. Without this, all the checks in this file are compiled
- out. Fortunately unreferenced symbol warnings made us aware of
- this problem.
-
-Fri Jan 13 07:53:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-lynxos.h:
- Added ACE_LACKS_SETEGID
-
-Fri Jan 13 04:49:41 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Changed to use AC_SEARCH_LIBS for the -lsocket and -lnsl
- libraries before calling ACE_CONFIGURATION_OPTIONS. Third party
- libraries may those libraries, and if they haven't been added to
- $LIBS, the feature tests will fail.
-
-Thu Jan 12 20:30:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_time.inl:
- * ace/README:
- Added ACE_HAS_CLOCK_GETTIME_MONOTONIC, this is the patch from
- bugzilla bug 2358. Not closing that one yet, have to see how
- to autoconf this and where this new macro should be set. Thanks
- to Robert Iakobashvili <coroberti at gmail dot com> for these
- patches
-
-Thu Jan 12 19:50:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Assert.h:
- Export the __ace_assert function to resolve link errors on
- Windows
-
-Thu Jan 12 16:44:40 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Functor.{h inl}: Using ACE_LACKS_LONGLONG_T wasn't good enough
- for deciding when to do an ACE_Hash<[unsigned] long long>. MSVC6
- can't hack it. So, do the specialization for the 64-bit types if
- ACE_SIZEOF_LONG < 8, avoiding a duplication of ACE_Hash<long>.
- Also, since the way "unsigned long long" is declared varies across
- compilers, use ACE_[U]INT64 rather than the native C++ type.
-
- * ace/INET_Addr.cpp (string_to_addr): u_short always compares >= 0,
- so rely on the indicated end of successful scan from ACE_OS::strtol()
- to say whether it scanned all digits or stopped short of the end of
- the string.
-
-Thu Jan 12 12:59:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- For rtp mode, set PIC correctly
-
-Thu Jan 12 12:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- When building for rtp also set DLD
-
-Thu Jan 12 11:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- For rtp model we don't need to make sure the shared object
- directory is the same as static
-
-Thu Jan 12 11:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.inl:
- Fixed some comments after endif
-
- * ace/config-lynxos.h:
- Added ACE_LACKS_SETUID and ACE_LACKS_SETEUID
-
-Thu Jan 12 10:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- Improved building executables for rtp
-
-Thu Jan 12 10:10:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- Removed all support for VxWorks 6.1, this version wa just an
- intermediate step from 5.5 to 6.2. The port never completed and
- we are aimin at 6.2 at this moment, so to not give false
- impressions removed all the support for 6.1.
-
- * include/makeinclude/platform_vxworks6.1.GNU:
- * ace/config-vxworks6.1.h:
- Removed these files
-
- * ace/Sock_Connect.cpp:
- * ace/OS_NS_unistd.inl:
- * ace/os_include/os_time.h:
- * ace/os_include/os_stdio.h:
- * ace/os_include/sys/os_wait.h:
- Removed references to VxWorks 6.1
-
-Thu Jan 12 09:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks5.x.h:
- Added ACE_LACKS_GETPGID
-
-Thu Jan 12 01:08:32 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/ACE.pc.in:
-
- Added @LIBS@ to Libs.
-
- * ace/SSL/ACE_SSL.pc.in:
-
- Added @ACE_TLS_LDFLAGS@ and @ACE_TLS_LIBS@ to Libs.
-
- Added @ACE_TLS_CPPFLAGS@ to Cflags.
-
-Wed Jan 11 22:17:39 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * protocols/ace/RMCast/Template_Instantiations.cpp: Added missing
- explicit instantiations.
-
-Wed Jan 11 21:19:21 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Functor.{h inl}: Remove the ACE_* type specializations and
- add specializations for ACE_Hash for [unsigned] short,
- [unsigned] int, [unsigned] long, [unsigned] long long. This
- should resolve the compile errors on some platforms resulting
- from the changes in:
- Tue Jan 10 23:04:06 UTC 2006 Steve Huston <shuston@riverace.com>
- and still allow everything to work regardless of what integral types
- are used.
-
-Wed Jan 11 11:43:42 2006 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- From Richard Ward <richard_ward at symantec dot com>
- * ace/Auto_Ptr.h (ACE_AUTO_PTR_RESET):
-
- Assign "NEWPTR" macro argument to a temporary "TYPE" pointer,
- and use that pointer in place of "NEWPTR" to force "NEWPTR" to
- be expanded only once. Prevents a memory leak from occuring
- when "NEWPTR" is an expression such as "new foo".
-
- Delete the object released from the auto_ptr<>. Previously it
- was ignored, resulting in a memory leak. Fixes a memory leak.
-
- * THANKS:
-
- Added Richard to the Hall of Fame.
-
-Wed Jan 11 18:58:15 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Assert.cpp:
- * ace/Assert.h:
-
- Added const qualifier to __ace_assert() "expression" parameter.
-
-Wed Jan 11 17:36:44 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Assert.h:
-
- Use ACE_VERSIONED_NAMESPACE_NAME prefix for __ace_assert()
- invocation.
-
-Wed Jan 11 14:24:20 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
-
- Updated.
-
- * ace/ace.mpc:
- * ace/ace_for_tao.mpc:
-
- Added Assert.cpp to Source_Files section.
-
- * ace/Global_Macros.h:
-
- Changed to #include "ace/Assert.h", as the ACE_FACTORY_DEFINE
- macro uses ACE_ASSERT.
-
- * ace/Log_Msg.h:
-
- Changed to #include "ace/Assert.h" for backwards compatibilty
- with earlier ACE releases.
-
- * ace/Assert.cpp:
- * ace/Assert.h:
-
- Factor ACE_ASSERT() macro out of Log_Msg.h into new files
- Assert.h, with a helper-function in Assert.cpp. This reduces
- the footprint of an ACE_ASSERT() invocation to a single call.
-
-Wed Jan 11 13:14:52 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * include/makeinclude/rules.local.GNU:
-
- Corrected a problem in determining if depgen.pl is the dependency
- generator. The logic can now handle the instance where the script
- is preceded by /usr/bin/perl (or something similar).
-
-Wed Jan 11 06:47:04 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/OS_NS_Thread.cpp (~TSS_Cleanup_Instance): Delete the mutex and condition
- variable to prevent memory leaks. Thanks to Domingos Monteiro
- <d dot monteiro at netia dot net> for this fix.
-
-Tue Jan 10 23:04:06 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/Functor.{h inl}: Added specialization for ACE_Hash<unsigned long>
- to help the explicit instantiation build get along.
-
-Tue Jan 10 22:30:21 UTC 2006 Steve Huston <shuston@riverace.com>
-
- * ace/INET_Addr.cpp (string_to_addr): Correctly identify a specified
- port number of "0". Thanks to Guy Peleg <guy dot peleg at amdocs
- dot com> for this fix.
-
- * THANKS: Added Guy Peleg to the Hall of Fame.
-
-Tue Jan 10 20:05:54 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * include/makeinclude/rules.local.GNU:
-
- Ensure that the correct object files get cleaned up when doing a
- make clean. Logic was duplicated in this file (but did not
- correspond to the correct logic found in the gnu.mpd or
- rules.lib.GNU).
-
-Tue Jan 10 17:45:10 UTC 2006 Scott Harris <harris_s@ociweb.com>
-
- * bin/tao_other_tests.lst:
-
- Added TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl.
-
-Tue Jan 10 17:09:26 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add feature tests for ACE_LACKS_CHDIR, ACE_LACKS_DUP2,
- ACE_LACKS_GETPID, ACE_LACKS_ISATTY, ACE_LACKS_SETPGID, and
- ACE_LACKS_UNLINK. Re-arrange some things so the tests are
- closer to alphabetical order -- this makes the file easier
- to maintain.
-
-Tue Jan 10 16:35:35 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/ChangeLogEditor/ChangeLogEdit.pm:
- * bin/cle.pl:
-
- Removed references to the name "CVS". At this layer, the revision
- control system is unknown.
-
-Tue Jan 10 13:36:55 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/Svc_Conf_Lexer.cpp:
-
- Modified GNU specific code to compile with the -pedantic option.
-
-Tue Jan 10 13:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- Compilation for rtp mode is now the default
-
-Tue Jan 10 13:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- Only define ACE_MAIN in kernel mode
-
-Tue Jan 10 11:36:43 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added feature tests for ACE_LACKS_DUP, ACE_LACKS_GETEGID,
- ACE_LACKS_GETEUID, ACE_LACKS_GETGID, ACE_LACKS_GETUID,
- ACE_LACKS_PIPE, ACE_LACKS_SETEGID, ACE_LACKS_SETEUID,
- ACE_LACKS_SETSID, ACE_LACKS_SETGID, and ACE_LACKS_SETUID.
-
-Tue Jan 10 10:10:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-hpux-10.x.h:
- * ace/config-hpux-11.00.h:
- Added ACE_LACKS_SETEGUID and ACE_LACKS_SETEUID
-
-Tue Jan 10 10:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.inl:
- Simplified a lot of methods in this file by adding new ACE_LACKS
- macros. For VxWorks and psos we now also return -1 with notsup
- for the uid methods, these methods just don't work on these
- platforms because they are not there and we don't have multiple
- users. This will make this file much easier to maintain
-
- * ace/config-chorus.h:
- * ace/config-integritySCA.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- * ace/config-win32-common.h:
- Added the new ACE_LACKS macros from OS_NS_unistd.inl
-
-Tue Jan 10 07:21:19 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/C++NPv2/Makefile.am:
- * examples/C++NPv2/README:
- * examples/C++NPv2/Reactor_Logging_Server.cpp:
- * examples/C++NPv2/Reactor_Logging_Server_Adapter.h:
- * examples/C++NPv2/Select_Reactor_Logging_Server.cpp:
- * examples/C++NPv2/TP_Logging_Server.h:
- * examples/C++NPv2/TP_Reactor_Logging_Server.cpp:
- * examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp:
-
- Update for change below.
-
- * examples/C++NPv2/Reactor_Logging_Server.h:
- * examples/C++NPv2/Reactor_Logging_Server_T.h:
-
- Renamed Reactor_Logging_Server.h to Reactor_Logging_Server_T.h.
- When ACE_TEMPLATES_REQUIRES_SOURCE is not defined (as is so in
- the automake build), the Sun Studio 11 C++ compiler associates
- Reactor_Logging_Server.h with Reactor_Logging_Server.cpp instead
- of Reactor_Logging_Server_T.cpp when instantiating templates.
- This results in interesting (and difficult to track down) errors.
-
-Mon Jan 9 20:20:14 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Explicitly automake conditional BUILD_ACE_FOR_TAO to false
- (at least for now).
-
- * ace/Makefile.am:
-
- Small tweaks to fix errors introduced by MPC generation.
-
-Mon Jan 9 20:19:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/makeicc.pl:
- Removed this file, it is ancient
-
-Mon Jan 9 19:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/ace_wchar.h:
- VxWorks rtp has int_t
-
- * ace/config-vxworks6.2.h:
- Rtp has wchar.h and wctype.h
-
- * ace/OS_NS_String.{h,inl,cpp}:
- Updated the wchar_t methods that has a int_t argument to use wchar_t
- instead. That matches the opengroup definition and resolved the
- compile errors with VxWorks. Also replaced some c-style and static
- casts with const_casts.
-
- * ace/config-vxworks6.2.h:
- VxWorks 6.2 in rtp mode has a lot of wchar_t functionality, use it!
-
-Mon Jan 9 18:32:55 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
-
- Regenerated for Service Configurator parser changes:
- Mon Jan 9 15:18:49 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/ace.mpc:
-
- Added Hash_Map_Manager.h to Header_Files section.
-
-Mon Jan 9 18:03:50 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added ACE_LACKS_GETOPT and ACE_LACKS_SYSCONF feature tests.
-
-Mon Jan 9 15:18:49 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/Encoding_Converter.h:
- * ace/Encoding_Converter.cpp:
- * ace/Encoding_Converter_Factory.h:
- * ace/Encoding_Converter_Factory.cpp:
- * ace/Svc_Conf.h:
- * ace/Svc_Conf_Lexer.h:
- * ace/Svc_Conf_Lexer.cpp:
- * ace/UTF16_Encoding_Converter.h:
- * ace/UTF16_Encoding_Converter.inl:
- * ace/UTF16_Encoding_Converter.cpp:
- * ace/UTF32_Encoding_Converter.h:
- * ace/UTF32_Encoding_Converter.cpp:
- * ace/UTF8_Encoding_Converter.h:
- * ace/UTF8_Encoding_Converter.cpp:
- * ace/svcconf.mpb:
-
- Added Unicode support to the Service Configurator by hand-coding
- the lexer portion to properly take into account non-US UTF8,
- UTF16 and UTF32 encodings. Some of the UFT16 and UTF32 conversion
- code came directly from Unicode, Inc.
-
- This is a drop-in replacement for the flex generated lexer and
- heap allocates the encoding converters. However, this version
- performs less heap allocations and has a smaller footprint than
- the flex generated lexer.
-
- * tests/Service_Config_Test.UTF-16.conf:
- * tests/Service_Config_Test.WCHAR_T.conf:
-
- Added byte order marks to ensure that they are interpreted
- properly on all machines.
-
- * ace/Svc_Conf.l:
- * ace/Svc_Conf_Lexer_Guard.h:
- * ace/Svc_Conf_Lexer_Guard.cpp:
- * ace/Svc_Conf_l.cpp:
-
- * etc/Svc_Conf_l.cpp.diff:
-
- Removed these files.
-
-Mon Jan 9 14:38:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unisth.{h,cpp}:
- Integrated patches of bugzilla bug 2357, thanks to Volker Lukas
- <vlukas at gmx dot de> for delivering this. This adds setuid(uid_t),
- setgid(gid_t), getuid() and getgid().
- Also introduced ACE_LACKS_SYSCONF and ACE_LACKS_GETOPT to make
- the VxWorks 6.2 port cleaner
-
- * ace/config-integritySCA.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- * ace/config-win32-common.h:
- Added ACE_LACKS_SYSCONF and ACE_LACKS_GETOPT to the appropriate
- config files
-
-Mon Jan 9 14:14:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_main.cpp.{h,cpp}:
- The VxWorks specific way of handling main shouldn't be used
- when building for the rtp model, then the normal main should
- be used
-
-Mon Jan 9 13:44:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added TAO/tests/Bug_2349_Regression/run_test.pl
-
-Mon Jan 9 11:27:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- * ace/OS_NS_stdlib.inl:
- Added ACE_LACKS_PUTENV. VxWorks 6.2 seems to have this method
- declared, but when linking in rtp model we get an unresolved
- external. So, just disable it for the moment, send a test
- case for this to WindRiver
-
-Mon Jan 9 10:47:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- Improved build rules for the rtp model
-
-Mon Jan 9 09:36:29 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Fix typo in ACE_LACKS_NAMED_POSIX_SEM feature test.
-
-Mon Jan 9 09:30:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/PI_Malloc.h:
- Doxygen improvements
-
-Mon Jan 9 09:16:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_stat.{h,inl}:
- Changed the return type of filesize to off_t, that is the type to
- be used for filesizes
-
-Mon Jan 9 07:59:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_limits.h:
- VxWorks 6.2 defines PIPE_BUF as -1, this is not correct, undef it
- when it is defined as -1.
-
-Sun Jan 8 19:34:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Updated some more to reflect the OS correctly.
-
- * ace/Sock_Connect.cpp:
- Updated for vxworks 6.2
-
- * ace/POSIX_Asynch_IO.cpp:
- * ace/POSIX_CB_Proactor.h:
- * ace/POSIX_Proactor.{h,cpp}:
- Added ACE_OPCODE_ for the OpCode enums READ and WRITE, READ is also
- a define under VxWorks making this problematic to enable
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- Improved rtp building rules
-
-Sat Jan 7 13:34:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.{h,inl}:
- For the sec accessor methods use time_t as type, that is also the
- type used to store the number of seconds.
-
-Sat Jan 7 13:29:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-msvc-8.h:
- Added ACE_HAS_NEW_NOTHROW. Msvc8 throws std::bad_alloc by default,
- for the ACE_NEW macros we disable this, we just get a zero back on
- out of memory. This fixes bugzilla bug 2333
-
-Sat Jan 7 13:17:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-mingw.h:
- Added ACE_HAS_NONCONST_WCSDUP
-
-Fri Jan 6 21:20:58 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Process_Manager.cpp:
- * ace/Process_Manager.h:
-
- There can be a race condition if a process exits between the
- time it is spawned and the time its handler is registered.
- Changed the spawn() methods to take an optional handler so
- it can be registered atomically.
-
-Thu Jan 5 15:37:32 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add ACE_LACKS_UNAME feature test.
-
-Thu Jan 5 11:48:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/README:
- * ace/config-chorus.h:
- * ace/config-integritySCA.h:
- * ace/config-psosim-g++.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- * ace/config-win32-common.h:
- * ace/OS_NS_sys_utsname.{h,cpp}:
- Introduced ACE_LACKS_UNAME and refactored ACE_OS::uname a
- little bit. VxWorks 6.2 does deliver uname in the new rtp model,
- this file explicitly checked for some OS defines, adding there
- the new rtp check was making it real complex, so added this new
- define and set it in the appropriate config files. Also handle
- some new processor architecture defines windows now has.
-
- * ace/OS_NS_sys_utsname.inl:
- Removed this file, was empty
-
- * ace/Makefile.am:
- Updated because of removed file
-
-Thu Jan 5 09:52:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.2.GNU:
- Improved rtp model support
-
-Wed Jan 4 21:25:11 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Changed "add-log-time-format" to a really ugly lambda expression
- that formats changelog timestamps in UTC and works with both GNU
- Emacs and XEmacs.
-
-Wed Jan 4 19:50:27 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/ChangeLogEditor/ChangeLogEntry.pm:
-
- Modified this to use UTC instead of local time.
-
-Wed Jan 4 18:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * netsvcs/lib/Client_Logging_Handler.cpp:
- Fixed 64bit conversion warning
-
-Wed Jan 4 11:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
- Generate LIBNAME and PRJ_TYPE, needed for VxWorks rtp support
-
-Wed Jan 4 10:49:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- In rtp mode we can't access the WIND_TCB struct anymore, meaning
- that the TSS emulation can't work anymore.
-
- * ace/OS_NS_Thread.{h,cpp,inl}:
- Only call the native tss methods when they are available
-
-Wed Jan 4 09:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/sys/os_time.h:
- Added workaround for VxWorks 6.2 that defines timeval in time.h
-
- * ace/High_Res_Timer.cpp:
- * ace/OS_NS_time.inl:
- * ace/README:
- * ace/Time_Value.inl:
- Removed checks for !ACE_HAS_BROKEN_TIMESPEC_MEMBERS, this define
- is not set in any config file, so zapped it
-
-Wed Jan 4 08:30:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Improved support for the diab compiler
-
- * ace/TTY_IO.cpp:
- Only define the const char arrays when they are going to be
- used. Fixes unused variable warnings with vxworks
-
- * ace/OS_NS_dlfcn.inl:
- * ace/OS_NS_stropts.inl:
- * ace/OS_NS_sys_socket.inl:
- * ace/OS_NS_Thread.h:
- * ace/os_include/os_dirent.h:
- * ace/os_include/os_fcntl.h:
- * ace/os_include/os_limits.h:
- * ace/os_include/os_netdb.h:
- * ace/os_include/os_stropts.h:
- * ace/os_include/sys/os_socket.h:
- * ace/os_include/sys/os_un.h:
- Made VxWorks specific includes dependent on the VxWorks version.
- VxWorks is getting more and more posix compliance which means we
- don't have to include special VxWorks header files. Also use
- ACE_VXWORKS to check for this
-
-Tue Jan 3 21:31:29 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Add "indent-tabs-mode: nil" to Local Variables at end of file.
- Untabify.
- Delete-trailing-whitespace.
-
-Tue Jan 3 14:26:12 UTC 2006 Johnny Willemsen <jwilemsen@remedy.nl>
-
- * ace/ACE.cpp:
- Don't use maxFiles with VxWorks 6.2
-
-Tue Jan 3 13:03:12 UTC 2006 Johnny Willemsen <jwilemsen@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Renamed MAX_ARGS to ACE_MAX_ARGS because VxWorks 6.2 has also a
- define MAX_ARGS
-
- * ace/config-vxworks6.2.h:
- Updated based on first testing
-
- * ace/os_include/sys/os_select.h:
- * ace/os_include/os_netdb.h:
- * ace/os_include/os_signal.h:
- * ace/os_include/os_unistd.h:
- * ace/os_include/os_unistd.h:
- * ace/OS_NS_unistd.inl:
- Minor updated for vxworks 6.1
-
-Mon Jan 2 10:56:57 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/OS_NS_string.cpp:
-
- Fix conditionals around ACE_OS::strdup_emulation(const wchar*).
- Remove code that was moved to ACE_OS::strdup(const wchar*).
-
-Mon Jan 2 18:58:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * protocols/ace/RMCast/Protocol.h:
- Initialise pointer with 0
-
-Mon Jan 2 13:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Only use the spa methods in non rtp model
-
- * ace/os_include/sys/os_wait.h:
- VxWorks 6.1 defines wait and waitpid in wait.h
-
-Mon Jan 2 12:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_stdio.h:
- Added workaround for vxworks6.1 and rtp for cuserid
-
- * ace/os_include/os_time.h:
- VxWorks 6.1 defines in kernel mode timeval in sys/times.h
-
- * ace/OS_NS_string.cpp:
- Fixed compile error with Borland
-
- * ace/os_include/os_signal.h:
- Don't include sigLib.h when building for rtp model
-
- * ace/OS_NS_Thread.{h,inl}:
- Don't include special VxWorks header files when building for rtp
-
- * ace/Sock_Connect.cpp:
- Made workaround for VxWorks dependent on version umber
-
-Mon Jan 2 12:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- * include/makeinclude/platform_vxworks6.1.GNU:
- * bin/MakeProjectCreator/templates/gnu.mpd:
- Made it possible to build for rtp and kernel mode
-
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- Improved mapping
-
- * ace/Sock_Connect.cpp:
- Reverted removal of VxWorks specific code, this is needed
- for VxWorks 5.5, for 6 we have to develop a new section
-
- * ace/os_include/os_stdlib.h:
- Only include envLib.h when not building for rtp
-
- * ace/os_include/os_dlfcn.h:
- Only include specific VxWorks files when not building for rtp
-
-Sun Jan 1 00:00:00 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * Happy New Year!!!
-
-Fri Dec 30 16:39:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/OS_NS_string.cpp:
- * ace/OS_NS_string.h:
- * ace/OS_NS_string.inl:
-
- Make ACE_OS::strdup(const char *) and ACE_OS::strdup(const
- wchar_t *) inline. Provide ACE_OS::strdup_emulation(const
- char *) and ACE_OS::strdup_emulation(const wchar_t *) for
- systems that don't have a native (or type-safe equivalent)
- strdup() and wcsdup() functions.
-
- * configure.ac:
-
- Replace scattered feature tests with calls to new
- ACE_FUNC_STRCASECMP, ACE_FUNC_STRNCASECMP, ACE_FUNC_STRDUP,
- ACE_FUNC_WCSCASECMP, ACE_FUNC_WCSNCASECMP, ACE_FUNC_WCSDUP
- autoconf macros.
-
- * m4/ace_func.m4:
-
- New file.
-
- Feature tests for related features (e.g does function exist,
- does it have a prototype, does it have const/non-const args,
- etc.) are scattered all over configure.ac. This file is for
- ACE_FUNC_FOO macros (similar to autoconf's own AC_FUNC_FOO),
- which bring all these feature tests together in once place.
- This clean-up makes the configure.ac easier to maintain at
- the same time.
-
- Provide ACE_FUNC_STRCASECMP, ACE_FUNC_STRNCASECMP,
- ACE_FUNC_STRDUP, ACE_FUNC_WCSCASECMP, ACE_FUNC_WCSNCASECMP,
- ACE_FUNC_WCSDUP macros to start things off.
-
-Fri Dec 30 17:52:41 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Dev_Poll_Reactor.cpp (work_pending_i): Upon return from
- epoll_wait(), don't blindly set start_pevents_ to events_. If
- epoll_wait() returns -1, this erroneously sets start_pevents_ to
- a value that may not make sense.
-
-Fri Dec 30 12:17:17 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/C++NPv2/AC_Client_Logging_Daemon.cpp:
- Fixed compile error due to expected implicit conversion
-
-Fri Dec 30 15:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks6.1.GNU:
- Added rtp and pthread flags, when rtp is set to 1 we are building
- for real time process model, when pthread is set to 1 we are
- building with the pthread support
-
-Fri Dec 30 15:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.inl:
- Added workaround for incorrect swab include for vxworks 6.1
-
-Fri Dec 30 15:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- Updated after first testing with the RTP model
-
-Fri Dec 30 14:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/C++NPv2/Client_Logging_Daemon.cpp:
- Fixed compile error due to expected implicit conversion
-
-Fri Dec 30 14:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.{h,inl}:
- Added assignment operator for a time_t
-
-Fri Dec 30 12:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_sys_time.inl:
- Instead of return -1 return ACE_Time_Value(-1)
-
-Fri Dec 30 12:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added Bug_2345_Regression
-
-Fri Dec 30 11:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Reactor/Misc/pingpong.cpp:
- * examples/Reactor/Misc/pingpong.cpp:
- Updated because the constructors of ACE_Time_Value are now explicit
-
-Fri Dec 30 11:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * apps/Gateway/Gateway/Connection_Handler.{h,cpp}:
- * apps/Gateway/Gateway/Event_Channel.cpp:
- * apps/Gateway/Gateway/Gateway.cpp:
- * apps/Gateway/Gateway/Options.{h,cpp}:
- * netsvcs/lib/TS_Clerk_Handler.{h,cpp}:
- * examples/APG/Timers/Timers.cpp:
- * examples/APG/Timers/Upcall.cpp:
- Updated timeouts to be a long and updated some code because
- the constructors of ACE_Time_Value are now explicit
-
-Fri Dec 30 10:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.{h,inl}:
- Added += and -= for a time_t
-
- * examples/APG/ThreadManagement/Priorities.cpp:
- * examples/APG/ThreadManagement/Signals2.cpp:
- * examples/APG/ThreadManagement/Signals.cpp:
- * examples/APG/ThreadManagement/Coop_Cancel.cpp:
- Initialise pointers with 0
-
-Fri Dec 30 10:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.h:
- Made all single argument constructors explicit to prevent implicit
- conversions.
-
-Fri Dec 30 10:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Profile_Timer.cpp (elapsed_rusage):
- Use ACE_Time_Value to calculate the time difference. The type
- of time could be FILETIME on Windows and it is not safe to just
- use the - operator on that. This did compile because the
- ACE_Time_Value seems to be used because of implicit conversions
-
-Fri Dec 30 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Reference_Counted_Event_Handler_Test.cpp:
- Explicit create ACE_Time_Value's when scheduling timers
-
-Fri Dec 30 09:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Proactor.cpp:
- When setting a ACE_Time_Value to zero use ACE_Time_Value::zero
- instead of 0
-
-Thu Dec 29 11:55:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/DLL.h: Further Doxygen-ized and expanded the documentation.
-
- * ace/config-macros.h: Add __HP_aCC to the compilers that need to have
- unreachable statements suppressed to avoid a compile diagnostic.
-
- * ace/config-hpux-11.00.h: Add ACE_LACKS_PERFECT_MULTICAST_FILTERING
- for HP-UX 11iv2 (11.23).
-
-Thu Dec 29 11:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- * include/makeinclude/platform_vxworks6.1.GNU:
- Changed the way we set TAO_IDL
-
-Thu Dec 29 09:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_sched.h:
- Another update to the way we detect if we have to define cpu_set_t,
- older linux versions do have glibc2.3 but not this type.
-
-Wed Dec 28 11:47:17 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/acinclude.m4:
-
- Remove some long commented-out macros that reimplemented core
- autoconf functionality.
-
-Wed Dec 28 19:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Another update for the changes in 6.2
-
-Wed Dec 28 19:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.2.h:
- Removed some lacks macros which 6.2 should deliver according
- to the documentation
-
-Wed Dec 28 11:21:55 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add ACE_LACKS_SCHED_H feature test. Use it in other tests
- that #include <sched.h>.
-
-Wed Dec 28 11:08:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/config_h.m4:
-
- Remove ACE_HAS_3_PARAM_WCSTOK autoconf header template.
-
- * configure.ac:
-
- Added description to AC_DEFINE for ACE_HAS_3_PARAM_WCSTOK.
-
-Wed Dec 28 19:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Rearranged some code to make the autoconf checks for set/get
- affinity easier
-
-Wed Dec 28 10:56:42 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Change ACE_HAS_CPU_SET_T feature test to look in <sched.h>.
-
- Add ACE_HAS_2_PARAM_SCHED_{GET,SET}AFFINITY feature tests.
-
-Wed Dec 28 16:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Introduced ACE_HAS_2_PARAM_SCHED_SETAFFINITY and
- ACE_HAS_2_PARAM_SCHED_GETAFFINITY. Some glibc versions ship with
- a two param version.
-
- * ace/config-linux-common.h:
- Removed the setting for setaffinity/getaffinity based on
- glibc version. Found that even with glibc 2.3 some systems had a
- two param version, some 3.
-
-Wed Dec 28 12:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_sched.h:
- Improved cpu_set_t typedef
-
-Wed Dec 28 11:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Message_Block.h:
- Doxygen improvements
-
-Wed Dec 28 10:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-linux-common.h:
- Glicc 2.3 and newer also have sched_getaffinity and
- sched_setaffinity.
-
-Wed Dec 28 10:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-linux-common.h:
- Glibc 2.3 seems to have cpu_set_t
-
-Wed Dec 28 09:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/os_unistd.h:
- Made some workarounds dependent on BCB version
-
- * ace/os_include/os_sched.h:
- If ACE_HAS_CPU_SET_T is not defined then typedef cpu_set_t.
- If your platforms has the type cpu_set_t, then set this define
- in the config file
-
- * ace/OS_NS_Thread.{h,cpp}:
- Added thr_set_affinity and thr_get_affinity to bind a thread
- to a certain CPU. This is part of the extensions proposed in
- bugzilla 2342. Thanks to Robert Iakobashvili
- <coroberti at gmail dot com> for these extensions.
-
- This will probably break some builds, where we have to add
- ACE_HAS_CPU_SET_T to the config file.
-
- * ace/README:
- Documented ACE_HAS_CPU_SET_T
-
-Tue Dec 27 19:21:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4:
-
- Add ACE_ENABLE_CDR_SWAP_ON_READ, ACE_ENABLE_CDR_SWAP_ON_WRITE,
- ACE_ENABLE_CDR_ALIGNMENT, ACE_ENABLE_STRDUP_EMULATION, and
- ACE_ENABLE_WCSDUP_EMULATION to support --enable options of
- the same name. Allows users to configure these aspects of
- ACE without editing the generated config.h header.
-
- * configure.ac:
-
- Fix typo in ACE_LACKS_MADVISE_PROTOTYPE feature test.
-
-Tue Dec 27 15:14:05 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * THANKS: Added Vladimir Panov to the Hall of Fame.
-
-Tue Dec 27 14:49:20 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/config_h.m4:
-
- Remove ACE_HAS_STRDUP_EMULATION autoconf header template.
-
- * configure.ac:
-
- Changed strdup feature test to set ACE_LACKS_STRDUP instead
- of ACE_HAS_STRDUP_EMULATION.
-
- Added (missing) ACE_LACKS_STRCHR feature test.
-
- * ace/README:
-
- Update ACE_HAS_STRDUP_EMULATION description. Added
- ACE_HAS_WCSDUP_EMULATION, ACE_LACKS_STRCHR, ACE_LACKS_WCSCHR,
- ACE_LACKS_STRDUP, and ACE_LACKS_WCSDUP descriptions.
-
- * ace/OS_Memory.h:
-
- Updated comment explaining that users may want to set
- ACE_HAS_STRDUP_EMULATION if they need to control what memory
- allocator is used to include ACE_HAS_WCSDUP_EMULATION.
-
- * ace/OS_NS_string.cpp:
-
- The ACE_HAS_STRDUP_EMULATION feature test macro was being used
- for two purposes. One is for systems which don't have a native
- strdup(). The other is for when the user needs to control/
- override what memory allocator is used.
-
- I've separated these options by adding a new ACE_LACKS_STRDUP
- feature test macro. ACE's emulated strdup() implementation is
- used if either ACE_LACK_STRDUP or ACE_HAS_STRDUP_EMULATION is
- set.
-
- Added ACE_HAS_WCSDUP_EMULATION, similar to the above, for
- symmetry with the wide character version.
-
-Tue Dec 27 14:17:56 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/config_h.m4:
-
- Remove ACE_HAS_SET_T_ERRNO autoconf header template.
-
- * configure.ac:
-
- Change ACE_HAS_SET_T_ERRNO feature test to use "standard"
- ACE_CHECK_HAS_FUNC() macro.
-
-Tue Dec 27 13:36:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/os_include/sys/os_mman.h:
-
- Provide madvise prototype if ACE_LACKS_MADVISE_PROTOTYPE.
-
- * configure.ac:
-
- Added ACE_LACKS_MADVISE_PROTOTYPE feature test.
-
- This should fix bugzilla bug 2274. Thanks to Steve Williams
- < steve at telxio dot com > for reporting this and providing
- an initial patch.
-
-Tue Dec 27 13:29:27 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * apps/gperf/Makefile.am:
-
- Regenerated.
-
- * apps/gperf/gperf.mpc:
-
- New file. Adds rule for building/installing gperf.1 manpage.
- Partially addresses bugzilla bug 2280.
-
-Tue Dec 27 12:45:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Fix typo in last change.
-
-Tue Dec 27 12:41:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add ACE_HAS_CPU_SET_T, ACE_HAS_PTHREAD_GETAFINITY_NP,
- ACE_HAS_PTHREAD_SETAFFINITY_NP, ACE_HAS_SCHED_GETAFFINITY,
- and ACE_HAS_SCHED_SETAFFINITY feature tests for a patch
- Johnny is preparing.
-
-Tue Dec 27 11:11:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/config_h.m4:
-
- Remove ACE_LACKS_SYSTEM_H autoconf header template.
-
- * configure.ac:
-
- Remove ACE_LACKS_SYSTIME_H feature test, and the use of
- ACE_LACKS_SYSTIME_H in other feature test macros. C.f.
-
- Tue Dec 27 14:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
-Tue Dec 27 11:06:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add ACE_LACKS_ALARM feature test.
-
-Tue Dec 27 15:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- Removed ACE_LACKS_DUP2
-
-Tue Dec 27 14:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-cygwin32.h:
- * ace/config-dgux-4.11-epc.h:
- * ace/config-dgux-4.x-ghs.h:
- * ace/config-freebsd.h:
- * ace/config-irix5.3-g++.h:
- * ace/config-irix5.3-sgic++.h:
- * ace/config-irix6.x-common.h:
- * ace/config-linux-common.h:
- * ace/config-macosx-panther.h:
- * ace/config-macosx-tiger.h:
- * ace/config-macosx.h:
- * ace/config-mvs.h:
- * ace/config-openbsd.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- * ace/config-qnx-neutrino.h:
- * ace/config-qnx-rtp-62x.h:
- * ace/config-qnx-rtp-pre62x.h:
- * ace/config-sco-5.0.0-mit-pthread.h:
- * ace/config-sco-5.0.0.h:
- * ace/config-sunos4-g++.h:
- * ace/config-sunos4-sun4.1.4.h:
- * ace/config-sunos4-sun4.x.h:
- * ace/config-tandem-nsk-mips-v2.h:
- * ace/config-tandem-nsk-mips-v3.h:
- * ace/config-tandem.h:
- * ace/config-tru64.h:
- * ace/config-unixware-2.1.2-g++.h:
- * ace/config-unixware-7.1.0.h:
- * ace/config-unixware-7.1.0.udk.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.2.h:
- * ace/config-win32-interix.h:
- * ace/README:
- Removed ACE_LACKS_SYSTIME_H, it is not used anymore in ACE
-
-Tue Dec 27 14:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- * ace/config-vxworks6.2.h:
- Added initial version of VxWorks 6.2 config file. This is updated
- based on the documentation, no testing has been done
-
-Tue Dec 27 13:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/sys/os_select.h:
- Only include selectLib for VxWorks when VxWorks doesn't deliver
- sys/select.h
-
- * ace/OS_NS_unistd.inl:
- Introduced ACE_LACKS_ALARM to make it easier to determine which
- platform has alarm and which not
-
- * ace/config-chorus.h:
- * ace/config-psos-diab.h:
- * ace/config-win32-common.h:
- Added ACE_LACKS_ALARM
-
- * ace/config-vxworks6.1.h:
- Added some documentation about defines which we could drop for
- VxWorks 6.2 according to the documentation
-
-Tue Dec 27 11:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- VxWorks 6.1 has two models, kernel and real time process (rtp).
- Based on the model some API's are not available.
-
-Tue Dec 27 09:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.{h,inl}:
- Changed the first argument of the constructor accepting two
- longs to time_t to fix 64bit conversion warnings
-
-Sun Dec 25 09:04:50 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * Merry Christmas, 2005!!!!
-
-Fri Dec 23 13:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-common.h:
- Added ACE_LACKS_SCHED_H, windows doesn't have sched.h
-
-Fri Dec 23 13:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/INET_Addr.inl:
- Fixed warning about unreachable code when ipv6 is enabled
-
-Fri Dec 23 11:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Sock_Connect.cpp:
- Added missing defined
-
-Fri Dec 23 08:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Buffer_Stream_Test.cpp:
- Fixed ambiguity errors with vc6
-
-Fri Dec 23 07:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.{h,inl}:
- Removed the set with time_t and changed the set with two longs to
- pass seconds as time_t. This should work on all platforms fine.
- Thanks to JT for the ideas.
-
- * ace/System_Time.cpp:
- Use the set with two arguments
-
-Thu Dec 22 18:33:29 2005 Steve Huston <shuston@riverace.com>
-
- * include/makeinclude/platform_aix_ibm.GNU: Change Visual Age 6 to use
- -qtemplateregistry also. It's faster and doesn't require the same
- strict source organization of templates that -qtempinc does.
- Also stop using the aixshr hack to strip warnings out of the
- linker output - it's not needed with -qtemplateregistry.
- Try removing -qstaticinline - this was an attempt to stop some of
- the duplicate symbol warnings that -qtempinc triggered; hopefully,
- removing this will let the linker/compiler unify singleton instances.
-
-Thu Dec 22 14:35:12 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/rtcorbacommon.mpb:
-
- Add $(srcdir) relative include path.
-
-Thu Dec 22 14:06:07 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/tao_orb_tests.lst:
-
- Added Portable_Interceptors/Processing_Mode_Policy/Collocated and
- Portable_Interceptors/Processing_Mode_Policy/Remote to the list.
-
-Thu Dec 22 19:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Reactor/Misc/notification.cpp:
- * examples/Reactor/Misc/test_signals_1.cpp:
- Fixed ambiguity warnings
-
- * ace/Time_Value.{h,cpp,inl}:
- Don't pass time_t as reference to set, just by value, moved the
- method to the inline file and set tv_usec to 0, thanks to JT
- for this suggestions.
-
-Thu Dec 22 10:43:23 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/cle.pl:
- * bin/ChangeLogEditor/CVSFileLocator.pm:
- * bin/ChangeLogEditor/ChangeLogEntry.pm:
- * bin/ChangeLogEditor/FileLocator.pm:
- * bin/ChangeLogEditor/FileLocatorFactory.pm:
- * bin/ChangeLogEditor/SVNFileLocator.pm:
-
- Added support for Subversion. It will automatically switch to
- svn if it detects that it is being run in a directory
- controlled by Subversion.
-
- * bin/DependencyGenerator/GNUObjectGenerator.pm:
- * bin/DependencyGenerator/MakeObjectGenerator.pm:
-
- Switch to actual arrays inside the process() method and return the
- reference. It is faster to push onto an array than an array
- reference.
-
- * bin/MakeProjectCreator/config/cidlc.mpb:
-
- Added nmake to the specific section for compile_flags.
-
- * bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm:
-
- Added .PHONY when creating named targets to avoid problems with
- target executables that have the same name as the project.
-
- * bin/depgen.pl:
-
- Added a -i option to not print an error if no source files are
- provided.
-
- * include/makeinclude/rules.local.GNU:
-
- Modified to pass the -i option to depgen.pl and to pass the -n
- option to depgen.pl if inline=1.
-
-Thu Dec 22 12:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Use taskName to get the task name under VxWorks instead of directly
- using the TCB struct
-
- * ace/Sock_Connect.cpp:
- Use for VxWorks also the unix way of retrieving the interfaces, the
- VxWorks specific way doesn't work with VxWorks 6.1 anymore
-
-Thu Dec 22 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Time_Value.{h,cpp}:
- Added set that accepts time_t, time_t is a 64bit type under
- Windows64.
-
- * ace/System_Time.cpp:
- Use the new Time_Value::set method that accepts time_t
-
-Thu Dec 22 12:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/WIN32_Proactor.cpp:
- Added workarounds for vc6 which doesn't have ULONG_PTR
-
-Wed Dec 21 06:40:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Asynch_Acceptor.cpp (set_handle): Added return 0 to success case.
- Also see:
- Fri Dec 16 12:38:27 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
-Thu Dec 22 06:12:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/SSL/SSL_SOCK_Stream.cpp: Add missing #include "ace/OS_Memory.h"
- to see ACE_NEW_RETURN. Also changed the type used with
- ioctl (, FIONREAD, ) from u_long to ACE_UINT32 for portability.
-
- * apps/JAWS2/JAWS/Headers.cpp: Add missing
- #include "ace/OS_NS_stdlib.h" to see ACE_OS::free().
-
- * apps/JAWS2/JAWS/IO.cpp: Add missing #include "ace/OS_NS_string.h"
- to see ACE_OS::memcpy(). Add missing #include "ace/Min_Max.h" to see
- ACE_MIN.
-
- * apps/JAWS2/JAWS/Server.cpp: Add missing #include "ace/OS_NS_string.h"
- to see ACE_OS::strcpy().
-
- * apps/JAWS2/JAWS/Parse_Headers.cpp: Add missing
- #include "ace/Log_Msg.h".
-
- * examples/APG/Containers/Map_Manager.cpp:
- * examples/APG/Containers/Map_Manager_Specialization.cpp: Add missing
- #include "ace/Log_Msg.h".
-
- * examples/IPC_SAP/SSL_SAP/SSL-server-poll.cpp: Add missing
- #include "ace/OS_NS_stdlib.h" for ACE_OS::malloc()/free().
-
-Wed Dec 21 12:44:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * THANKS: Add Jonathan Sprinkle to the Hall of Fame.
-
- * configure.ac:
-
- Define ACE_LACKS_NAMED_POSIX_SEM if platform lacks any of
- sem_open(), sem_close(), or sem_unlink() are undefined. This
- should help automake builds on Cygwin, which does not provide
- sem_unlink(). Thanks to Jonathan Sprinkle who provided the
- failing config.log.
-
-Wed Dec 21 12:32:10 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Time_Value.inl:
-
- Use g++'s __builtin_constant_p() predicate to avoid calling
- ::normalize() if both arguments to ACE_Time_Value::set(long,
- long) are already "normalized". This avoids an unnecessary
- method call when initializing ACE_Time_Value constants.
-
-Wed Dec 21 11:40:53 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/OS_NS_Thread.cpp (ACE_OS::thr_create):
-
- If ACE_HAS_PTHREAD_ATTR_SETCREATESUSPEND_NP and THR_SUSPENDED
- is set, use pthread_attr_setcreatesuspend_np() and set thread
- creation attributes so thread is started in "suspended" state.
-
- * configure.ac:
-
- Add feature test for ACE_HAS_PTHREAD_ATTR_SETCREATESUSPSEND_NP.
-
- * ace/README:
-
- Document ACE_HAS_PTHREAD_ATTR_SETCREATESUSPEND_NP.
-
-Wed Dec 21 19:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * netsvcs/clients/Naming/Client/Client_Test.cpp:
- Replaced assert with ACE_ERROR
-
-Wed Dec 21 19:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/vc8nmake.mpb:
- With vc8 and nmake we have to pass different compiler flags then
- with vc6 and vc71. To make it easier to use, you can regenerate
- the nmake files for vc8 using: -type nmake -base vc8nmake -recurse
- This way you get the needed flags for vc8
-
-Wed Dec 21 18:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/WFMO_Reactor.cpp:
- * protocols/ace/HTBP/HTBP_Session.cpp:
- Initialise pointer with 0
-
- * include/makeinclude/platform_vxworks6.1.GNU:
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- Use EXEEXT instead of .exe when setting TAO_IDL
-
-Wed Dec 21 18:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added bug_2328_regression
-
-Tue Dec 20 17:24:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/config-aix-4.x.h: Define ACE_TEMPLATES_REQUIRE_SOURCE if
- compiling with an IBM compiler and __TEMPINC__ is not defined.
- This covers -qnotempinc and -qtemplateregistry cases (for XL C++ 7).
- Define ACE_TEMPLATES_REQUIRE_PRAGMA if compiling with an IBM
- compiler and -qtempinc was specified on the command line. This
- unifies proper handling and covers both ACE+TAO builds and users'
- inclusion of ACE+TAO in user projects regardless of which template
- model chosen.
-
- * ace/Local_Name_Space.cpp: Add #include "ace/ACE.h" to see
- ACE::hash_pjw().
-
- * ace/Malloc_T.h: Add #include "ace/Malloc_Base.h" to see
- ACE_Allocator.
-
- * ace/POSIX_CB_Proactor.cpp: Add #include "ace/OS_NS_sys_time.h" to see
- ACE_OS::gettimeofday().
-
- * ace/Sock_Connect.cpp: Removed hack at this compiler version.
-
- * ace/SString.inl: Add #include "ace/OS_NS_stdlib.h" to see
- ACE_OS::free().
-
- * ace/SString.cpp: Add #include "ace/OS_Memory.h" to see
- ACE_NEW_RETURN. Change #include "ace/Malloc.h" to "ace/Malloc_T.h"
- to pick up needed symbols.
-
- * include/makeinclude/platform_aix_ibm.GNU: Added compiler-specific
- section for XL C++ 7. Also removed the explicit setting of
- ACE_TEMPLATES_REQUIRE_[PRAGMA|SOURCE]. The proper one to use is
- determined by whether or not -qtempinc is specified to the compiler.
- Since this is knowable at compile time and what a user does may
- not match what the ACE/TAO build does, proper selection of the
- correct setting is moved to config-aix-4.x.h.
-
- * include/makeinclude/rules.local.GNU: Add templateregistry.* to the
- file cleanup list. XL C/C++ 7 builds use -qtemplateregistry and
- specify a name templateregistry.$(MAKEFILE).
-
-Tue Dec 20 20:24:39 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/UUID.cpp (ACE_Utils): Move the lock to the top of the
- UUID_Generator::get_timestamp() method to avoid subtle race
- conditions. Thanks to Howard Finer <hfiner@sonusnet.com> for
- this fix.
-
-Fri Dec 16 12:38:27 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Asynch_Acceptor.{h,cpp}: Added an int return value to
- set_handle() so that errors can be propagated back to callers.
- Thanks to Eyal Car <eyal_car at hotmail dot com> for this fix.
- This closes bugid 2261.
-
-Wed Dec 21 16:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/CDR_Base.cpp:
- * ace/CDR_Stream.cpp:
- Fixed 64bit conversion warnings from int to long
-
- * ace/config-vxworks6.1.h:
- VxWorks 6.1 defines MAP as CPU type, if it is defined,
- undef it so that we can use MAP as typedef throughout ACE/TAO
-
- * ace/Configuration_Import_Export.cpp:
- Fixed 64bit conversion warning from u_int to u_long
-
- * ace/Malloc_T.cpp:
- Added some checks for valid pointers before calling memset.
- Thanks to Oh Yoon Sik <boom at estsoft dot com> for reporting
- this.
-
- * ace/OS_NS_sys_stat.inl (mkdir):
- Replaced c-style cast with C++ cast
-
- * ace/Basic_Types.h:
- Removed ptr_arith_t, it is not used anymore
-
- * ace/OS_NS_time.cpp:
- Fixed the month calculation for WinCE.
- Thanks to Oh Yoon Sik <boom at estsoft dot com> for reporting
- this.
-
- * ace/WIN32_Proactor.cpp:
- The code for ACE_WIN64 should also be used for ACE_WIN32 so
- zapped the ACE_WIN32 specific case
-
- * include/makeinclude/platform_linux_icc.GNU:
- When optimizations are disabled pass -O2 to the compiler. Always
- disable the floating point optimizations to get correct floats
- in the IDL compiler.
-
- * examples/Reactor/Misc/test_demuxing.cpp:
- Instead of an ACE_ASSERT, use ACE_ERROR_RETURN
-
- * tests/Basic_Types_Test.cpp:
- Use ptr_diff_t instead of ptr_arith_t
-
- * tests/Buffer_Stream_Test.cpp:
- Initialise pointers with 0
-
- * etc/tao.doxygen:
- Expand all emulated exception macros, that will improve our
- documentation. I will recheck doxygen later and if things look
- correct I will apply the same change to the other configuration
- files.
-
- * bin/MakeProjectCreator/modules/BorlandProjectCreator.pm:
- Updated because of changes to MPC.
-
-Tue Dec 20 08:02:03 2005 Simon McQueen <sm@prismtech.com>
-
- * ACE version 5.4.8 released.
-
-Mon Dec 20 09:58:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
-
- * bin/make_release:
- Removed the $0 from the "Generated by " comment inserted into
- the Version.h files.
-
-Mon Dec 19 16:50:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
-
- * bin/make_release:
- Removed the extra end of line inserted into the
- Id: ChangeLog,v 4.9518 2005/12/20 10:03:35 bugzilla Exp
- comment from all of the Version.h generators. (Around the same
- line as before.)
-
-Mon Dec 19 14:40:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
-
- * bin/make_release:
- Removed the #include "ace/Versioned_Namespace.h" generator
- from line 643 (it wasn't adding the correct end of line
- and concensous was that it was actually in error anyway).
-
-Thu Dec 15 08:08:31 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Asynch_IO.h: Clarified arguments and return value for
- ACE_Asynch_Read_Stream::open.
-
-Thu Dec 15 08:06:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Service_Templates.cpp: Only #include headers if we need to
- instantiate templates; i.e., if using either form of explicit
- template instantiation. This avoids the sigaction issue with
- HP aC++ A.03.56.
-
-Tue Dec 13 12:13:26 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * COPYING: Updated this file to mention compliance issues wrt the
- new "The Energy Policy Act of 2005". Thanks to Malcolm Spence
- for providing this.
-
-Tue Dec 13 18:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * etc/tao_cosnotification.doxygen:
- Also parse the subdirectories below Notify and also add inline
- files, the generated doxygen docu was not complete
-
-Tue Dec 13 00:54:04 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/tao_versioning_idl_defaults.mpb:
-
- New MPC base project containing necessary versioned namespace
- related TAO_IDL flags for PIDL and IDL files in core TAO
- libraries and TAO orbsvcs libraries.
-
-Mon Dec 12 15:31:50 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ace_for_tao.mpc:
-
- Added "nmake" to the list of Windows-based build types that
- should be considered when adding Windows-specific sources to the
- ace_for_tao subset.
-
-Mon Dec 12 15:23:29 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/tests.mpc (UPIPE_SAP_Test):
-
- Disable this test in the ace_for_tao configuration. It depends
- on features not found in the ace_for_tao subset.
-
-Mon Dec 12 14:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- Only when we build without VCL support add _NO_VCL to the compiler
- flags
-
-Mon Dec 12 13:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/vcl.mpb:
- Added verbatim VCL=1 to this base project. This way the correct
- startup objects are linked with the application when vcl is
- used
-
-Sun Dec 11 18:03:05 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/UPIPE_Stream.h (MT_Stream):
-
- Moved this typedef out of the global namespace to the
- ACE_UPIPE_Stream class. It is only used within this class.
- Doing so also addresses global namespace pollution issues.
-
- * examples/ASX/Event_Server/Event_Server/event_server.cpp:
- * examples/ASX/UPIPE_Event_Server/event_server.cpp:
-
- Reinstated local MT_Stream typedefs. The global namespace
- pollution fix described above allows this. Fixes compile-time
- error in single threaded builds.
-
-Thu Dec 8 07:20:25 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Dynamic.h:
- * ace/OS_main.cpp:
- * ace/OS_main.h:
- * ace/TSS_Adapter.h:
- * ace/QoS/QoS_Decorator.cpp:
- * ace/QoS/QoS_Decorator.h:
- * ace/QoS/QoS_Manager.cpp:
- * ace/QoS/QoS_Manager.h:
- * ace/QoS/QoS_Session.h:
- * ace/QoS/QoS_Session_Factory.cpp:
- * ace/QoS/QoS_Session_Factory.h:
- * ace/QoS/QoS_Session_Impl.cpp:
- * ace/QoS/QoS_Session_Impl.h:
- * ace/QoS/QoS_Session_Impl.i:
- * ace/QoS/SOCK_Dgram_Mcast_QoS.cpp:
- * ace/QoS/SOCK_Dgram_Mcast_QoS.h:
- * ace/QoS/SOCK_Dgram_Mcast_QoS.i:
-
- Fixed versioned namespace support. The versioning macros calls
- were missing.
-
-Thu Dec 8 08:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/APG/ThreadSafety/threadsafety.mpc:
- Fixed error in this mpc project which caused build errors with
- borland
-
-Wed Dec 7 05:50:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * apps/JAWS/clients/Caching/caching.mpc:
- * apps/JAWS2/JAWS/jaws2.mpc:
- * bin/MakeProjectCreator/config/winregistry.mpb:
- * examples/APG/Containers/containers.mpc:
- * examples/APG/Svc_Config/svc_config.mpc:
- * examples/APG/ThreadSafety/threadsafety.mpc:
- * examples/C++NPv2/C++NPv2.mpc:
- * examples/QOS/Diffserv/QOS_Diffserv.mpc:
- * examples/Reactor/Proactor/Proactor.mpc:
- * examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc:
- * tests/tests.mpc:
-
- Disable some projects in these MPC files when "ace_for_tao" is
- enabled.
-
-Tue Dec 6 21:34:03 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * examples/ASX/Event_Server/Event_Server/event_server.cpp:
- * examples/ASX/UPIPE_Event_Server/event_server.cpp:
-
- Removed duplicate "MT_Stream" typedef that made the same typedef
- in `ace/UPIPE_Stream.h' ambiguous. Fixes a versioned namespace
- build error.
-
-Tue Dec 6 18:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/acedefaults.mpb:
- For vc8 set ExceptionHandling to 2. This enabled the structured
- exception handling. Normally vc8 doesn't catch structured exceptions
- but we except so for some tests and else the disabling of the
- win32 error windows doesn't work. This fixes bugzilla [BUG:2290]
- See also http://www.codecomments.com/archive292-2005-8-578262.html
- for backgroup. Thanks to Steve Huston and Chad Elliott for
- proposing to handle this in this mpb file instead of in the vc8
- base mpc template
-
-Tue Dec 6 01:55:12 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/config-macros.h:
-
- Removed "#pragma once" directive. The necessary preprocessor
- symbol definitions necessary to disable this directive
- are generally C++ preprocessor/compiler-specific. This
- prevents proper configuration of this #pragma in the
- presence of a C compiler.
-
-Mon Dec 5 14:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_stdio.inl:
- With Borland also just use tempnam instead of _tempname
-
-Mon Dec 5 08:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-borland.h:
- * ace/config-win32-dmc.h:
- * ace/OS_NS_stdio.inl:
- Introduced new macros ACE_HAS_NONCONST_TEMPNAM and
- ACE_HAS_NONCONST_FDOPEN. Borland C++ Builder 6 and previous had
- non compliant non const methods but this is now corrected in
- BDS2006, so instead of hacking also a version check in the
- OS_NS_stdio.inl just check for a define and set this in the borland
- config file. Also DMC seems to have one incorrect signature
- so also set it there.
-
-Sun Dec 4 06:49:59 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/SSL/SSL_Context.cpp:
-
- Use an ACE_Thread_Mutex instead of ACE_Mutex. The former is
- faster and lighter weight.
-
-Sat Dec 3 17:56:04 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/SSL/SSL_Asynch_BIO.cpp:
- * ace/SSL/SSL_Asynch_Stream.h:
-
- Replaced ACE_SSL_bio_{read,write} functors with a single
- structure containing static read() and write() methods.
- Functors are overkill in this case.
-
- Documented why a structure is used instead of a free
- function.
-
- * ace/SSL/SSL_Context.h:
-
- Removed obsolete comment.
-
-Sat Dec 3 11:51:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Base_Thread_Adapter.h:
-
- Removed unnecessary "ace/Global_Macros.h" include directive in
- versioned namespace case.
-
- * ace/SSL/SSL_Asynch_BIO.cpp:
-
- Fixed versioned namespace support for free functions in this
- file.
-
- (BIO_s_Asynch):
-
- Removed this unnecessary function. It simply returned the
- address of a global object. Just take the address directly in
- the calling code.
-
- (BIO_new_ACE_Asynch, ACE_SSL_make_BIO):
-
- Renamed BIO factory function to "ACE_SSL_make_BIO", which is
- more consistent with ACE naming conventions. Removed extern "C"
- declaration, as well, since there's no need for it to be so.
-
- (ACE_SSL_bio_read, ACE_SSL_bio_write):
-
- New functors that that make the necessary calls on the
- ACE_SSL_Asynch_Stream object.
-
- (ACE_Asynch_BIO_read, ACE_Asynch_BIO_write):
-
- Use new ACE_SSL_bio_{read,write} functors instead of making
- direct calls on the ACE_SSL_Asynch_Stream object.
-
- * ace/SSL/SSL_Asynch_BIO.h:
-
- Moved extern "C" BIO callback function prototypes to
- SSL_Asynch_BIO.cpp. There's no need for them to be visibile to
- the user.
-
- Renamed BIO factory function to "ACE_SSL_make_BIO", which is
- more consistent with ACE naming conventions. Removed extern "C"
- declaration, as well, since there's no need for it to be so.
-
- * ace/SSL/SSL_Asynch_Stream.cpp (open):
-
- Updated name of BIO factory function.
-
- * ace/SSL/SSL_Asynch_Stream.h:
-
- Removed unnecessary free function prototypes.
-
- (ACE_SSL_Asynch_Stream):
-
- Replaced friend function declarations with friend structure
- (used as functors) declarations. Works around scope qualifier
- problems in Sun compilers when used on free functions.
-
-Fri Dec 2 10:27:47 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/msvc_static_order.lst:
-
- Add RTEventLogAdmin project.
-
-Fri Dec 2 13:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Task.inl:
- Replaced c-style casts with C++ const_cast
-
-Fri Dec 2 11:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/os_include/sys/os_stat.h:
- * ace/os_include/sys/os_timeb.h:
- Made some workarounds for Borland specific on the BCB version.
- That way we can remove them easier in the future when we
- deprecated certain releases
-
-Fri Dec 2 01:25:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Versioned_Namespace.h:
-
- Update preprocessor check to use new config-macros.h specific
- include guard preprocessor symbol.
-
- * ace/config-macros.h:
- * ace/config-lite.h:
-
- Moved all macros, preprocessor symbols and some non-C++-specific
- typedefs to the new `config-macros.h' header. Allows
- configuration macros/values to be used in C sources.
-
- * ace/config-all.h:
-
- Removed redundant "ace/ace_wchar.h" include directive. It's
- already included by `config-lite.h'.
-
- * ace/config-aix-4.x.h:
- * ace/config-chorus.h:
- * ace/config-cygwin32.h:
- * ace/config-linux-common.h:
- * ace/config-osf1-4.0.h:
- * ace/config-rtems.h:
- * ace/config-sunos5.5.h:
- * ace/config-vxworks5.x.h:
- * ace/config-vxworks6.1.h:
-
- Relaxed unsupported compiler preprocessor error for non-C++
- compilers. Simplifies use of configuration macros/values in
- presence of C compiler.
-
- * ace/Makefile.am:
- * ace/ace.mpc:
-
- Added new config-macros.h header to the appropriate header
- lists.
-
-Fri Dec 2 00:43:12 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Module.h:
- * apps/JAWS/server/HTTP_Request.h:
- * apps/JAWS/server/IO.h:
- * apps/JAWS2/JAWS/Cache_Object.h:
- * apps/JAWS2/JAWS/IO.h:
- * apps/JAWS2/JAWS/IO_Acceptor.h:
- * apps/JAWS2/JAWS/IO_Handler.h:
- * apps/soreduce/Obj_Module.h:
- * examples/APG/Containers/Hash_Map_Hash.h:
- * examples/APG/Containers/RB_Tree_Functors.h:
- * examples/APG/ThreadPools/Request_Handler.h:
- * examples/ASX/Event_Server/Event_Server/Options.h:
- * examples/ASX/Event_Server/Event_Server/event_server.cpp:
- * examples/C++NPv1/Iterative_Logging_Server.h:
- * examples/C++NPv1/Logging_Handler.h:
- * examples/C++NPv1/Logging_Server.h:
- * examples/C++NPv2/Logging_Handler.h:
- * examples/Shared_Malloc/Malloc.h:
-
- More versioned namespace build fixes.
-
-Thu Dec 1 08:07:23 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Service_Config.cpp (open_i):
- * ace/Service_Config.h (ACE_Service_Config): Don't try to
- register a signal handler if the signal number is < 0! Thanks
- to Brian Raven <brianr at liffe dot com> for this fix.
-
-Wed Nov 30 13:37:59 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/cidlc.mpb
-
- Updated to make thie base project consistent with the semantics
- of the boost base projects from MPC.
-
-Tue Nov 29 11:20:12 UTC 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Parse_Node.cpp (make_func_name):
-
- Do not use a stack instantiated variable length array. Use a
- dynamically allocated array instead. Saves us a copy, and
- fixes g++ build errors when using its "-pedantic" command line
- option.
-
- Fixed string length calculation. Addresses Service
- Configurator failures when versioned namespace support is
- enabled.
-
-Wed Nov 30 00:33:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ACEXML/parser/parser/parser.mpc:
- * bin/MakeProjectCreator/config/avstreams.mpb:
- * bin/MakeProjectCreator/config/rmcast.mpb:
- * netsvcs/clients/Logger/Logger.mpc:
- * netsvcs/servers/servers.mpc:
-
- Disable these projects when "ace_for_tao" is enabled.
-
-Wed Nov 30 08:58:35 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * html/index.html
-
- Removed obsolete CIAO components, cleaned up the HTML a bit.
-
-Tue Nov 29 11:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Timer_Queue_T.cpp:
- Use prefix increment operator instead of postfix
-
-Tue Nov 29 07:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Malloc.{h,cpp}:
- Removed copy constructor and name assign methods from ACE_Name_Node,
- these where implemented with an assert saying not implemented. This
- is not a good thing to do and also fixes some warnings in our
- Intel 9.1 beta build. If someone used these methods they would get
- an assert in runtime, now they get a compile error meaning we
- have to implement them
-
-Mon Nov 28 07:26:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * protocols/ace/HTBP/HTBP.mpc:
-
- Added missing "avoids += ace_for_tao".
-
-Mon Nov 28 06:50:04 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/ACE_Init_Test.cpp (run_main):
-
- Removed unnecessary versioned namespace related "using"
- keyword.
-
-Sun Nov 27 22:37:44 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * ace/Array_Map.h:
-
- Included the Sun CC 5.8, as an additional CC compiler that
- requires complete specification for a trait declaration.
-
- Just for information. Sun CC 5.8 comes with Studio 11, which is
- free (as in FREE BEER!!).
-
-Sun Nov 27 04:05:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ace.mpc:
- * ace/ace_for_tao.mpc:
- * bin/MakeProjectCreator/config/aceexe.mpb:
- * bin/MakeProjectCreator/config/acelib.mpb:
- * bin/MakeProjectCreator/config/versioned_namespace.mpb:
-
- Added versioned namespace MPC support. Disabled by default.
- Add "versioned_namespace=1" to default.features to enable.
-
- * Kokyu/Kokyu_defs.h:
- * ace/Asynch_Connector.h:
- * ace/Cleanup.cpp:
- * ace/Cleanup.h:
- * ace/If_Then_Else.h:
- * ace/OS.h:
- * ace/Object_Manager.cpp:
- * ace/Object_Manager.inl:
- * ace/Value_Ptr.h:
- * ace/SSL/SSL_Asynch_Stream.h:
- * ace/SSL/SSL_SOCK_Acceptor.cpp:
- * protocols/ace/HTBP/HTBP_Addr.cpp:
- * protocols/ace/HTBP/HTBP_Addr.h:
- * protocols/ace/HTBP/HTBP_Channel.cpp:
- * protocols/ace/HTBP/HTBP_Channel.h:
- * protocols/ace/HTBP/HTBP_Channel.inl:
- * protocols/ace/HTBP/HTBP_Environment.cpp:
- * protocols/ace/HTBP/HTBP_Environment.h:
- * protocols/ace/HTBP/HTBP_Filter.cpp:
- * protocols/ace/HTBP/HTBP_Filter.h:
- * protocols/ace/HTBP/HTBP_Filter.inl:
- * protocols/ace/HTBP/HTBP_Filter_Factory.cpp:
- * protocols/ace/HTBP/HTBP_Filter_Factory.h:
- * protocols/ace/HTBP/HTBP_ID_Requestor.cpp:
- * protocols/ace/HTBP/HTBP_ID_Requestor.h:
- * protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp:
- * protocols/ace/HTBP/HTBP_Inside_Squid_Filter.h:
- * protocols/ace/HTBP/HTBP_Inside_Squid_Filter.inl:
- * protocols/ace/HTBP/HTBP_Notifier.cpp:
- * protocols/ace/HTBP/HTBP_Notifier.h:
- * protocols/ace/HTBP/HTBP_Outside_Squid_Filter.cpp:
- * protocols/ace/HTBP/HTBP_Outside_Squid_Filter.h:
- * protocols/ace/HTBP/HTBP_Outside_Squid_Filter.inl:
- * protocols/ace/HTBP/HTBP_Session.cpp:
- * protocols/ace/HTBP/HTBP_Session.h:
- * protocols/ace/HTBP/HTBP_Session.inl:
- * protocols/ace/HTBP/HTBP_Stream.cpp:
- * protocols/ace/HTBP/HTBP_Stream.h:
- * tests/ACE_Init_Test.cpp:
- * tests/Process_Strategy_Test.h:
-
- Corrected build errors in versioned namespace builds.
-
- * bin/MakeProjectCreator/config/acexml.mpb:
-
- Disable ACEXML libraries when "ace_for_tao" is enabled.
-
-Fri Nov 25 19:04:10 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * NEWS:
-
- Updated with latest versioned namespace information.
-
- * ace/ACE_Codecs_export.h:
- * ace/ACE_Memory_export.h:
- * ace/ACE_Reactor_export.h:
- * ace/ACE_Sockets_export.h:
- * ace/ACE_Threads_export.h:
- * ace/ace.mwc:
- * ace/ace_codecs_for_tao.mpc:
- * ace/ace_configuration_for_tao.mpc:
- * ace/ace_memory_for_tao.mpc:
- * ace/ace_reactor_for_tao.mpc:
- * ace/ace_sockets_for_tao.mpc:
- * ace/ace_threads_for_tao.mpc:
- * ace/ace_timer_for_tao.mpc:
- * bin/MakeProjectCreator/config/acecodecslib_for_tao.mpb:
- * bin/MakeProjectCreator/config/acememorylib_for_tao.mpb:
- * bin/MakeProjectCreator/config/acereactorlib_for_tao.mpb:
- * bin/MakeProjectCreator/config/acesocketslib_for_tao.mpb:
- * bin/MakeProjectCreator/config/acethreadslib_for_tao.mpb:
- * bin/MakeProjectCreator/config/acetimerlib_for_tao.mpb:
-
- Removed smaller ace_for_tao subsets. Only a single ace_for_tao
- subset library was originally intended.
-
- * ace/Activation_Queue.h:
- * ace/Barrier.h:
- * ace/Based_Pointer_Repository.h:
- * ace/Codecs.h:
- * ace/Dev_Poll_Reactor.h:
- * ace/File_Lock.h:
- * ace/LSOCK.h:
- * ace/LSOCK_Acceptor.h:
- * ace/LSOCK_CODgram.h:
- * ace/LSOCK_Connector.h:
- * ace/LSOCK_Dgram.h:
- * ace/LSOCK_Stream.h:
- * ace/MEM_Acceptor.h:
- * ace/MEM_Addr.h:
- * ace/MEM_Connector.h:
- * ace/MEM_IO.h:
- * ace/MEM_SAP.h:
- * ace/MEM_Stream.h:
- * ace/MMAP_Memory_Pool.h:
- * ace/Mem_Map.h:
- * ace/Method_Request.h:
- * ace/Msg_WFMO_Reactor.h:
- * ace/Multihomed_INET_Addr.h:
- * ace/PI_Malloc.h:
- * ace/Pagefile_Memory_Pool.h:
- * ace/Priority_Reactor.h:
- * ace/Process.h:
- * ace/Process_Manager.h:
- * ace/Process_Semaphore.h:
- * ace/RW_Process_Mutex.h:
- * ace/SOCK_CODgram.h:
- * ace/SOCK_Dgram_Bcast.h:
- * ace/SOCK_Dgram_Mcast.h:
- * ace/SOCK_SEQPACK_Acceptor.h:
- * ace/SOCK_SEQPACK_Association.h:
- * ace/SOCK_SEQPACK_Connector.h:
- * ace/SV_Shared_Memory.h:
- * ace/Sbrk_Memory_Pool.h:
- * ace/Shared_Memory.h:
- * ace/Shared_Memory_MM.h:
- * ace/Shared_Memory_Pool.h:
- * ace/Shared_Memory_SV.h:
- * ace/Thread_Semaphore.h:
- * ace/UNIX_Addr.h:
-
- Removed ace_for_tao subset-specific export macro calls and
- include directives. They are no longer needed.
-
- * ace/ace_for_tao.mpc:
-
- Added a number of source files required to build the
- Notification Service and its tests.
-
- * Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc:
- * ace/QoS/qos.mpc:
- * apps/soreduce/soreduce.mpc:
- * bin/MakeProjectCreator/config/ftclientorb.mpb:
- * bin/MakeProjectCreator/config/htbp.mpb:
- * bin/MakeProjectCreator/config/ifrservice.mpb:
- * bin/MakeProjectCreator/config/naming_serv.mpb:
- * bin/MakeProjectCreator/config/portablegroup.mpb:
- * bin/MakeProjectCreator/config/rtevent_serv.mpb:
- * bin/MakeProjectCreator/config/ssl.mpb:
- * bin/MakeProjectCreator/config/strategies.mpb:
- * bin/MakeProjectCreator/config/tmcast.mpb:
- * examples/APG/Active_Objects/active_objects.mpc:
- * examples/APG/Config/config.mpc:
- * examples/APG/Misc_IPC/misc_ipc.mpc:
- * examples/APG/Naming/naming.mpc:
- * examples/APG/Proactor/proactor.mpc:
- * examples/APG/Processes/processes.mpc:
- * examples/APG/Shared_Memory/shared_memory.mpc:
- * examples/APG/Streams/streams.mpc:
- * examples/APG/Svc_Config/svc_config.mpc:
- * examples/APG/ThreadPools/threadpools.mpc:
- * examples/APG/ThreadSafety/threadsafety.mpc:
- * examples/ASX/Event_Server/Event_Server/Event.mpc:
- * examples/ASX/UPIPE_Event_Server/UPIPE_Event.mpc:
- * examples/C++NPv1/C++NPv1.mpc:
- * examples/C++NPv2/C++NPv2.mpc:
- * examples/Connection/blocking/Connection_Blocking.mpc:
- * examples/Connection/misc/Connection_Misc.mpc:
- * examples/Connection/non_blocking/Connection_Non_Blocking.mpc:
- * examples/IPC_SAP/DEV_SAP/reader/dev_sap_reader.mpc:
- * examples/IPC_SAP/DEV_SAP/writer/dev_sap_writer.mpc:
- * examples/IPC_SAP/FIFO_SAP/fifo_sap.mpc:
- * examples/IPC_SAP/FILE_SAP/file_sap_client.mpc:
- * examples/IPC_SAP/SOCK_SAP/sock_sap.mpc:
- * examples/IPC_SAP/UPIPE_SAP/UPIPE_SAP.mpc:
- * examples/Mem_Map/IO-tests/Mem_Map_IO_Tests.mpc:
- * examples/Mem_Map/file-reverse/Mem_Map_File_Reverse.mpc:
- * examples/Misc/Misc.mpc:
- * examples/Naming/Naming.mpc:
- * examples/OS/Process/OS_Process.mpc:
- * examples/Reactor/Dgram/Reactor_Dgram.mpc:
- * examples/Reactor/FIFO/Reactor_FIFO.mpc:
- * examples/Reactor/Proactor/Proactor.mpc:
- * examples/Service_Configurator/IPC-tests/client/Svc_Cfg_IPC_Client.mpc:
- * examples/Shared_Malloc/Shared_Malloc.mpc:
- * examples/Shared_Memory/Shared_Memory.mpc:
- * examples/Synch/Synch.mpc:
- * examples/System_V_IPC/SV_Message_Queues/SV_Message_Queues.mpc:
- * examples/System_V_IPC/SV_Semaphores/SV_Semaphores.mpc:
- * examples/Threads/Threads.mpc:
- * performance-tests/SCTP/SCTP.mpc:
- * tests/tests.mpc:
-
- Added "avoids += ace_for_tao" to projects that require features
- of ACE not found in the ace_for_tao subset. Addresses link-time
- errors.
-
-Fri Nov 25 12:45:20 2005 Steve Huston <shuston@riverace.com>
-
- * tests/Proactor_Test.cpp:
- * tests/Proactor_Test_IPV6.cpp: Corrected ACE_Atomic_Op instantiations
- for size_t.
-
-Fri Nov 25 10:00:21 2005 Steve Huston <shuston@riverace.com>
-
- * ace/POSIX_Proactor.cpp (ACE_POSIX_Asynch_Timer): Don't explicitly
- call ACE_Asynch_Result_Impl() - it's pointless and isn't listed
- as an ancestor of this class.
- (create_asynch_timer): Use a ACE_POSIX_Asynch_Timer * to match
- the created object type.
-
- * ace/POSIX_Asynch_IO.cpp: Remove explicit calls to base-class
- constructors from all constructors. It's not needed and seems to
- cause problems on 64-bit code, at least on AIX.
-
- * include/makeinclude/platform_aix_ibm.GNU: AIX now uses the XPG4 tail
- command syntax, requiring "-n 1" to read the last line; refuses "-1".
- Thanks to Mike Knight <mike dot knight at compuware dot com> for
- alerting us to this.
-
- * THANKS: Added Mike Knight to the Hall of Fame.
-
-Thu Nov 24 20:00:37 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_other_tests.lst:
-
- Scheduled bug #2316 regression.
-
-Thu Nov 24 14:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_linux_icc.GNU:
- For Intel C++ 9.1 also disable warning 1684
-
-Thu Nov 24 01:38:57 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * bin/fuzz.pl:
-
- Added a test that flags common versioned namespace related
- errors/misuses.
-
- * bin/MakeProjectCreator/config/global.features:
-
- Disable versioned namespace support by default.
-
- * ace/Atomic_Op.h:
- * ace/Auto_Ptr.h:
- * ace/Barrier.h:
- * ace/Base_Thread_Adapter.h:
- * ace/CDR_Stream.h:
- * ace/Cleanup_Strategies_T.cpp:
- * ace/Dev_Poll_Reactor.h:
- * ace/Functor_String.h:
- * ace/High_Res_Timer.cpp:
- * ace/LSOCK_Connector.inl:
- * ace/Local_Name_Space_T.h:
- * ace/Log_Msg.h:
- * ace/Malloc.h:
- * ace/Malloc_Allocator.h:
- * ace/Message_Queue.h:
- * ace/OS_Memory.h:
- * ace/OS_NS_Thread.cpp:
- * ace/OS_NS_Thread.h:
- * ace/OS_NS_errno.h:
- * ace/OS_NS_math.inl:
- * ace/OS_NS_netdb.cpp:
- * ace/OS_NS_netdb.h:
- * ace/OS_NS_sys_msg.h:
- * ace/OS_NS_time.h:
- * ace/OS_main.cpp:
- * ace/Object_Manager.h:
- * ace/Parse_Node.cpp:
- * ace/Ping_Socket.cpp:
- * ace/Proactor.cpp:
- * ace/Proactor.h:
- * ace/Profile_Timer.cpp:
- * ace/Profile_Timer.inl:
- * ace/SOCK_Dgram_Mcast.cpp:
- * ace/SOCK_Dgram_Mcast.h:
- * ace/SOCK_Dgram_Mcast.inl:
- * ace/SPIPE_Stream.h:
- * ace/Select_Reactor_T.cpp:
- * ace/Service_Config.h:
- * ace/Service_Templates.cpp:
- * ace/Sock_Connect.cpp:
- * ace/Svc_Conf_l.cpp:
- * ace/Svc_Conf_y.cpp:
- * ace/Thread_Manager.cpp:
- * ace/Time_Value.h:
- * ace/Timeprobe.h:
- * ace/Timer_Hash_T.h:
- * ace/Timer_List.cpp:
- * ace/Timer_Queue.cpp:
- * ace/config-lite.h:
- * ace/SSL/SSL_Asynch_BIO.cpp:
- * ace/SSL/SSL_Context.cpp:
-
- Corrected build errors in versioned namespace builds.
-
-Wed Nov 23 19:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/wrapper_macros.GNU:
- Set xerces to 1 by default if it is not set
-
-Wed Nov 23 11:00:46 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * docs/ACE-guidelines.html: Updated the guidelines to explain how
- TAO binary options should be specified, i.e. as the integral
- values 0 or 1.
-
-Wed Nov 23 09:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_linux_icc.GNU:
- When optimize=0, disable floating point optimizations. This way we
- don't get floating point overflows in the TAO IDL test. If someone
- enables optimize then we just let the compiler optimize things and
- we could get overflows.
-
-Tue Nov 22 17:42:13 2005 Kobi Cohen-Arazi <kobi.cohenarazi at gmail dot com>
-
- * ace/Select_Reactor_T.cpp (dispatch):
- Fixed a bug which derived from bug #1890. active_handle_count
- must be updated when state is changed. Every time some handler
- remove add or suspend itself of another handle, state is
- changed, and that should be reflected in the
- active_handle_count. Thanks for Vadim Iosevich <viosevich at
- gmail dot com>.
-
-Tue Nov 22 18:27:30 2005 Steve Huston <shuston@riverace.com>
-
- * m4/tls.m4: Correct botched assignment to ace_TLS_CPPFLAGS when
- additional Kerberos directory is needed.
-
-Tue Nov 22 03:33:14 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * ace/ace_configuration_for_tao.mpc:
-
- Some groups require ACE_Configuration. This MPC should probably
- help those groups with a smaller library to use instead of
- pulling in the whole ACE library.
-
-Tue Nov 22 01:43:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/portablegroup.mpb:
-
- Rather than disable this project in the ACE_FOR_TAO
- configuration, inherit from acesocketslib_for_tao to allow it to
- be used.
-
-Tue Nov 22 09:40:00 UTC 2005 Simon Massey <sma@prismtech.com>
-
- * NEWS:
-
- Added Stoyan Paunov and Arvind S. Krishna entries.
-
-Mon Nov 21 23:56:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ace_for_tao.mpc:
- * ace/ace_threads_for_tao.mpc:
-
- Moved ACE_crc32.cpp to ace_threads_for_tao subset within
- Windows compiler conditional. It is only needed by the
- SV_Semaphore_Simple listed within that conditional block.
-
- * ace/ace_timer_for_tao.mpc:
- * bin/MakeProjectCreator/config/acetimerlib_for_tao.mpb:
-
- New ACE_FOR_TAO timer library subset.
-
- * ace/Obchunk.cpp:
- * ace/Obchunk.h:
- * ace/Obchunk.inl:
- * ace/Object_Manager.cpp:
- * ace/Object_Manager.h:
- * ace/Object_Manager.inl:
- * ace/Object_Manager_Base.cpp:
- * ace/Object_Manager_Base.h:
- * ace/Obstack.cpp:
- * ace/Obstack.h:
- * ace/Obstack_T.cpp:
- * ace/Obstack_T.h:
- * ace/Obstack_T.inl:
-
- Added missing versioned namespace support.
-
- * ace/SSL/SSL_Context.h:
-
- Removed ACE_SSL_locking_callback prototype since it is not part
- of the public interface, and since a prototype (and definition)
- already exists in the SSL_Context.cpp implementation file.
-
- Removed static class members and placed them in anonymous
- namespace in the implementation file.
-
- * ace/SSL_Context.cpp:
-
- Static class members are now in an anonymous namespace. There's
- no need to expose them in the corresponding header.
-
- Mangle global SSL callback functions with the appropriate
- versioned namespace name, if enabled.
-
- Improved exception safety of lock memory management and
- lock acquisition/release by taking advantage of an
- ACE_Auto_Basic_Array_Ptr and ACE_Mutex, respectively.
-
- * Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc:
- * apps/drwho/drwho.mpc:
- * apps/soreduce/soreduce.mpc:
- * examples/APG/Active_Objects/active_objects.mpc:
- * examples/APG/Misc_IPC/misc_ipc.mpc:
- * examples/APG/Shared_Memory/shared_memory.mpc:
- * examples/APG/ThreadPools/threadpools.mpc:
- * examples/APG/ThreadSafety/threadsafety.mpc:
- * examples/ASX/Event_Server/Event_Server/Event.mpc:
-
- Inherit from the appropriate ACE_FOR_TAO subset MPC base
- project. Addresses unresolved symbol errors.
-
-Tue Nov 22 09:33:30 (IST) 2005 Bala Natarajan <bala_natarajan@symantec.com>
-
- * bin/MakeProjectCreator/config/portablegroup.mpb:
-
- Do not build in ACE_FOR_TAO configuration.
-
-Tue Nov 22 09:27:30 (IST) 2005 Bala Natarajan <bala_natarajan@symantec.com>
-
- * ace/OS_NS_sys_utsname.cpp:
- * ace/OS_NS_sys_utsname.h:
- * ace/OS_NS_sys_utsname.inl:
-
- Uninlined uname (). Compiling it on Solaris 9 with Studio9,
- and inline enabled is a pain. DOC's scoreboard uses inline=0
- on corona, and hence doesn't show the error. Uninlining solves
- the problem.
-
- * ace/ace_for_tao.mpc:
-
- Added a few files to be built in ACE_FOR_TAO config. This fixes
- many errors in gperf and orbsvcs on Solaris.
-
-Mon Nov 21 19:16:30 2005 Steve Huston <shuston@riverace.com>
-
- * m4/tls.m4: Make sure we don't lose the user's specified OpenSSL
- location when searching for Kerberos files.
-
-Mon Nov 21 13:26:53 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-
- * NEWS:
-
- Updated NEWS file to reflect additions to the latest beta.
-
-Mon Nov 21 11:00:02 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/cidlc.mpb
-
- Added a verbatim section for gnuace targets to pull in the
- boost_filesystem and boost_regex libraries.
-
-Mon Nov 21 08:16:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/SSL/SSL_Context.h: Removed "::" from friend declaration to
- fix compile errors on Solaris, Forte 6 Update 2. (Sun C++ 5.4).
-
-Fri Nov 18 23:07:09 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * include/makeinclude/wrapper_macros.GNU:
-
- Applied a syntax submitted by Martin Corino <mcorino@rememdy.nl>
- to the setting of $LEX and $YACC. The existing syntax set
- these variables only if they were not already set, but
- unfortunately, GNU make sets them by default. For DOC
- Group purposes, they need to be set to 'flex' and
- 'bison' respectively.
-
-Fri Nov 18 17:22:19 2005 Steve Huston <shuston@riverace.com>
-
- * protocols/ace/RMCast/Template_Instantiations.cpp: Completed
- template instantiations.
-
- * protocols/ace/RMCast/Makefile.am:
- * protocols/ace/TMCast/Template_Instantiations.cpp: Explicit
- instantiations needed for TMCast.
-
- * tests/Based_Pointer_Test.cpp: Added explicit instantiation for
- ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex,
- ACE_PI_Control_Block>.
-
- * tests/DLList_Test.cpp: #include "ace/Malloc_T.h" rather than
- "ace/Malloc.h" to pick up ACE_Allocator<> before the explicit
- instantiation needs it.
-
-Fri Nov 18 14:16:45 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/WIN32_Asynch_IO.cpp (shared_read): Added a new case for
- ERROR_MORE_DATA, which isn't actually an error after all.
- Thanks to Yongming Wang <wangym@gmail.com> for contributing
- this.
-
-Fri Nov 18 10:39:01 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/cidlc.mpb
-
- Added rest of change intended for:
- Thu Nov 17 18:08:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
-Thu Nov 17 18:08:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/cidlc.mpb:
-
- Fix submitted by Will Otte <wotte@dre.vanderbilt.edu> intended
- to be part of
-
- Tue Nov 15 12:44:37 2005 William Otte <wotte@dre.vanderbilt.edu>
-
-Thu Nov 16 13:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- When VCL is defined, set different startup obj and also define
- PACKAGES
-
- * include/makeinclude/build_exe.bor:
- Added PACKAGES to the compiler flags
-
-Thu Nov 16 12:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- Added extra linker paths
-
- * bin/MakeProjectCreator/config/vcl.mpb:
- New base project, usable for building VCL application with Borland
- C++ Builder
-
- * bin/MakeProjectCreator/config/global.features:
- Disable vcl by default
-
-Wed Nov 16 15:48:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Hash_Map_Manager_T.h: For Sun CC 5.4 and earlier with explicit
- template instantiation, can't prevent seeing operator= or
- ACE_Hash_Map_Manager explicit templates won't compile. Ick.
-
- * apps/JAWS3/jaws3/Templates.cpp: Adjusted ACE_Reactor_Token_T type
- usage. Follow-up change to match those in:
- Fri Aug 26 18:01:31 2005 Steve Huston <shuston@riverace.com>
-
- * protocols/ace/RMCast/Template_Instantiations.cpp: Added more needed
- instantiations.
-
-Wed Nov 16 14:12:08 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * bin/tao_orb_tests.lst:
-
- Disabled CSD tests on VxWorks builds.
-
-Tue Nov 15 23:41:39 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Service_Config.cpp (ACE_FACTORY_DEFINE):
-
- Moved this macro call outside of the versioned namespace. It
- should be in the global namespace.
-
- * ace/Svc_Conf.h:
- * ace/Svc_Conf.l:
- * ace/Svc_Conf.y:
- * ace/Svc_Conf_Lexer_Guard.cpp:
- * ace/Svc_Conf_Lexer_Guard.h:
- * ace/Svc_Conf_l.cpp:
- * ace/Svc_Conf_y.cpp:
-
- Added missing versioned namespace macros.
-
-Tue Nov 15 15:41:19 2005 Steve Huston <shuston@riverace.com>
-
- * NEWS: Added WinCE, VC8, ACE_Dev_Poll_Reactor, and ACE_RB_Tree notes.
-
- * bin/make_release: Generate VC8 files for both Win32 and WinCE.
- Since VC8 uses the same suffixes as VC71, the Win32 files have
- _vc8 appended, and WinCE files have _WinCE appended. WinCE files
- are generated with feature uses_wchar=1, vc8 uses defaults.
-
- * docs/CE-status.txt: Added some info on CE support under VC8.
-
-Tue Nov 15 12:44:37 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/cidlc.mpb
-
- Added a directive to remove runtime dependancy on VC71
- runtime libraries on Windows. Thanks to Kitty for suggesting
- the fix.
-
-Tue Nov 15 11:31:41 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Atomic_Op.{h inl} (ACE_Atomic_Op (TYPE c)): Changed the signature
- to be const TYPE& for long and unsigned long. This aligns it with the
- ACE_Atomic_Op template's (const TYPE&) constructor signature and
- resolves undefined references to it in the explicit template builds.
-
- * ace/Event_Handler.cpp: Added explicit instantiation of
- ACE_Atomic_Op<ACE_SYNCH_MUTEX,long> when ACE_HAS_BUILTIN_ATOMIC_OP
- is not defined. This covers the event handler reference counting
- use of ACE_Atomic_Op.
-
- * ace/Malloc_Instantiations.cpp: Corrected header file inclusions.
-
- * protocols/ace/RMCast/Makefile.am:
- * protocols/ace/RMCast/Template_Instantiations.cpp: New file to
- hold all explicit template instantiations needed for RMCast.
- This is a temporary file, only for the ACE 5.5 release. Then it
- can be expunged with the test of the explicit template
- instantiation support.
-
-Tue Nov 15 09:31:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Dev_Poll_Reactor.{h cpp}: Add an optional decr_refcnt parameter
- to ACE_Dev_Poll_Rector_Repository::unbind () to control whether or
- not the unbound event handler's refcount is to be decremented.
- When registering a handler, remember to increment its refcount if
- needed; conversely, decrement it when all events are removed.
- Be sure to initialize epoll_event structs.
-
- * tests/Dev_Poll_Reactor_Test.cpp (handle_input): Fix buffer overrun.
-
-Tue Nov 15 13:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_stdio.{cpp.inl}:
- Fixed compile errors in BCB Unicode build
-
-Tue Nov 15 07:28:35 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Service_Config.cpp (initialize): Added a check to avoid
- overwriting a service that's already installed without having it
- explicitly removed first. Thanks to Domingos Monteiro <d dot
- monteiro at netia dot net> for this fix.
-
-Mon Nov 14 08:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/WIN32_Asynch_IO.cpp:
- * ace/Asynch_Acceptor.cpp:
- Removed check for >= BCB3
-
- * ace/OS_NS_sys_stat.inl:
- BCB has the normal umask
-
- * ace/OS_NS_stdio.inl:
- Replaced c-style cast with C++ cast
-
- * ace/os_include/os_string.h:
- Some BCB specific defines are not needed with BCB6 or newer
-
-Mon Nov 14 07:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/boost_unit_test.mpb:
- Removed this file, not used anymore
-
- * bin/MakeProjectCreator/config/cidlc.mpb:
- Use base projects for boost_filesystem, boost_regex and
- exceptions, will resolve the link errors in the icc
- linux build
-
-Fri Nov 11 16:04:44 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Emit "idl_stubs" target for IDL projects defining MPC's
- custom_only variable. Fixes problems with some of the
- scoreboard statistics builds.
-
-Fri Nov 11 11:06:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ACEXML/common/common.mpc:
- * ace/ACE_Codecs_export.h:
- * ace/Codecs.h:
- * ace/ace.mwc:
- * ace/ace_codecs_for_tao.mpc:
- * apps/JAWS/server/server.mpc:
- * apps/JAWS3/jaws3/jaws3.mpc:
- * examples/Service_Configurator/IPC-tests/server/Svc_Cfg_IPC_Server.mpc:
- * examples/Threads/Threads.mpc:
- * examples/Web_Crawler/Web_Crawler.mpc:
- * netsvcs/clients/Naming/Client/Client.mpc:
- * netsvcs/clients/Naming/Dump_Restore/Dump_Restore.mpc:
- * netsvcs/lib/lib.mpc:
- * performance-tests/Misc/Misc.mpc:
- * performance-tests/SCTP/SCTP.mpc:
- * performance-tests/Server_Concurrency/Leader_Follower/Svr_Conc_Leader_Follower.mpc:
- * performance-tests/Server_Concurrency/Queue_Based_Workers/Svr_Conc_Queue_Based_Workers.mpc:
- * performance-tests/Synch-Benchmarks/Base_Test/Synch_Benchmarks_Base_Test.mpc:
- * performance-tests/Synch-Benchmarks/Perf_Test/Synch_Benchmarks_Perf_Test.mpc:
- * performance-tests/TCP/TCP.mpc:
- * performance-tests/UDP/UDP.mpc:
- * tests/tests.mpc:
-
- Addressed some "ace_for_tao" link-time failures.
-
-Fri Nov 11 09:21:53 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * include/makeinclude/wrapper_macros.GNU:
-
- Added missing "ace_for_tao" support. Addresses "ace_for_tao"
- build errors in GNU Make based builds.
-
-Fri Nov 11 12:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_sunos5_g++.GNU:
- Removed very old note
-
-Thu Nov 10 09:05:58 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Added a template variable, libname_prefix, that can be set to
- prefix all library names (sharedname, staticname and libs). Note
- that lit_libs and pure_libs are not affected.
-
-Thu Nov 10 07:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- Added ACE_HAS_SNPRINTF
-
-Wed Nov 9 19:44:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/acecodecslib_for_tao.mpb:
- * ace/ace_codecs_for_tao.mpc:
- * ace/QoS/qos.mpc:
- * ACEXML/common/common.mpc:
-
- Fixed "ace_for_tao" subset related unresolved symbol errors.
-
-Wed Nov 9 17:05:59 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * ace/config-macosx-tiger.h
-
- Corrected wchar support for Tiger.
-
- * include/makeinclude/platform_macosx_tiger_gcc3.3.GNU
- * include/makeinclude/platform_macosx_tiger_gcc4.GNU
-
- Removed the versioned platform_macros because there were no
- significant changes needed to support GCC3.3 on OS X.
-
- * include/makeinclude/platform_macosx_tiger.GNU
-
- Merged platform_macros file. Set CC and CXX to the desired
- compiler if you wish to use the non-default compiler.
-
-Tue Nov 8 15:27:25 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * ace/config-macosx-tiger.h
-
- Fixed size of long double for Mac OS X Tiger with GCC 3.3.
-
-Mon Nov 7 16:27:12 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/csd_framework.mpb
- * bin/MakeProjectCreator/config/notifytest.mpb
- * bin/MakeProjectCreator/config/rteventlogadmin.mpb
-
- Fixes for linking errors on OS X.
-
-Mon Nov 7 15:24:30 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * include/makeinclude/platform_macosx_tiger_gcc3.3.GNU
-
- Added a macros file for Tiger with GCC 3.3.
-
-Mon Nov 7 14:45:05 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * ace/Stats.h:
-
- Made private section of class ACE_Stats protected, for
- convenient subclassing.
-
-Mon Nov 7 09:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- Added -L$(BCB)\lib\psdk always to the linker flags
-
-Sun Nov 6 21:19:44 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * ace/ace_sockets_for_tao.mpc:
-
- Fixed another bug with the MPC file.
-
- * protocols/ace/HTBP/HTBP.mpc:
-
- Reverted the avoids declaration.
-
-Sun Nov 6 21:02:17 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * ace/ace_for_tao.mpc:
- * ace/ace_threads_for_tao.mpc:
- * protocols/ace/HTBP/HTBP.mpc:
- * protocols/ace/RMCast/RMCast.mpc:
- * protocols/ace/TMCast/TMCast.mpc:
- * protocols/examples/RMCast/Send_Msg/Send_Msg.mpc:
- * protocols/tests/RMCast/RMCast.mpc:
-
- Fixed subtle errors with ace_for_tao builds.
-
-Sat Nov 5 13:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/APG/Shared_Memory/Hash_Map.cpp:
- Replaced MAP with HASH_MAP to fix compile problems with VxWorks 6.1
-
-Sat Nov 5 13:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Cache_Map_Manager_T.{h,cpp,inl}:
- Replaced MAP_TYPE with CMAP_TYPE, MAP_TYPE is also used on some
- platforms already
-
- * include/makeinclude/compiler.bor:
- Fixed typo
-
-Fri Nov 4 09:18:17 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Dev_Poll_Reactor.h (Token_Guard):
-
- Fixed incorrect unimplemented constructor related error that was
- introduced when removing ACE_UNIMPLEMENTED_FUNC macro usage.
-
-Fri Nov 4 14:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- Make sure that we always add $(BCB)\lib to the linker flags
-
-Fri Nov 4 12:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Lazy_Map_Manager_Test.cpp:
- Changed MAP to LAZY_MAP
-
- * tests/Map_Test.cpp:
- Changed MAP to TEST_MAP
-
-Fri Nov 4 12:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Cache_Map_Manager_T.{h,cpp,inl}:
- Changed MAP to MAP_TYPE to resolve conflicts with VxWorks 6.1
- MAP define
-
-Fri Nov 4 11:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.inl:
- For VxWorks 6.1 also include os_string.h to get swab
-
-Fri Nov 4 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Capabilities.{h,cpp}:
- Changed MAP to CAPABILITIES_MAP. VxWorks 6.1 defines the cpu
- type MAP which results in a compile error
-
- * ace/os_include/sys/os_un.h:
- Only define the struct sockaddr_un with VxWorks versions older
- then 6.1
-
-Fri Nov 4 10:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-vxworks6.1.h:
- * include/makeinclude/platform_vxworks6.1.GNU:
- New files for VxWorks 6.1. This is just a first draft version, a lot
- of porting work has to be done
-
- * ace/OS_NS_stdlib.cpp:
- Fixed variable not used warning with VxWorks 6.1
-
-Fri Nov 4 10:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.h:
- Only define VX_FP_TASK when it is not defined yet
-
-Fri Nov 4 08:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Global_Macros.h:
- Removed check for BCB3, that is ancient
-
-Thu Nov 3 12:34:30 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Service_Config.h (ACE_DYNAMIC_SERVICE_DIRECTIVE): Added a
- missing '\' at near the end of a macro. Thanks to Lothar
- Werzinger for this fix.
-
-Thu Nov 3 09:16:23 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Activation_Queue.h:
- * ace/Atomic_Op.h:
- * ace/Condition_Recursive_Thread_Mutex.h:
- * ace/DLL.h:
- * ace/DLL_Manager.h:
- * ace/Dev_Poll_Reactor.h:
- * ace/Framework_Component.h:
- * ace/Get_Opt.h:
- * ace/Mem_Map.h:
- * ace/Message_Queue.cpp:
- * ace/Message_Queue.h:
- * ace/Method_Request.h:
- * ace/Null_Mutex.h:
- * ace/PI_Malloc.h:
- * ace/Process.h:
- * ace/Read_Buffer.h:
- * ace/Select_Reactor.h:
- * ace/Stats.h:
- * ace/TP_Reactor.h:
-
- Removed unnecessary uses of ACE_UNIMPLEMENTED_FUNC macro. It is
- only meant to be used for private unimplemented member functions
- in class templates.
-
- * ace/Versioned_Namespace.h:
-
- Clarified preprocessor error message.
-
-Wed Nov 2 09:19:04 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ACE.h (strdelete):
-
- Declare wchar version of ACE::strdelete() with
- ACE_NAMESPACE_INLINE_FUNCTION macro since it is now inlined.
- Addresses duplicate definition errors in wchar-enabled builds.
-
-Wed Nov 2 08:51:29 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * ace/CDR_Stream.h:
- * ace/CDR_Stream.inl:
-
- Removed ACE_OutputCDR_Auto_Reset. Firstly
- ACE_Utils::Auto_Functor should be used and secondly such classes
- don't serve any purpose beyond Output_CDR.
-
-Tue Nov 1 22:19:03 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Makefile.am (nobase_include_HEADERS):
-
- Added missing "Versioned_Namespace.h" header.
-
- * ace/Versioned_Namespace.h:
-
- Clarified preprocessor error message.
-
-Tue Nov 1 14:28:51 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * ace/config-macosx-tiger.h
-
- Some changes to fix compile errors in JAWS. Thanks to Johnny for
- suggesting a fix.
-
-Tue Nov 1 15:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ACE-INSTALL.html:
- Updated supported platforms
-
-Tue Nov 1 12:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- * bin/tao_other_tests.lst:
- Moved Bug_2074_Regression to orbsvcs
-
-Mon Oct 31 13:38:07 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * bin/msvc_static_order.lst:
-
- Moved the TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib
- before TAO/tests/Collocation/Collocation_Test_Stub. This should
- resolve the TP_Foo_* libs compilation errors on static build.
-
-Mon Oct 31 09:54:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
- Removed Synch_Options.inl and TSS_Adapter.inl.
-
-Mon Oct 31 07:55:57 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Registry.cpp (STRING_SEPARATOR):
- * ace/Registry.h (STRING_SEPARATOR):
-
- Reintroduced this string as a static class member. It is also
- used outside of the ACE_Registry class in
- ACE_Registry_Name_Space. Fixes an unresolved symbol error in
- Borland builds.
-
-Mon Oct 31 14:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Makefile.am:
- Removed Service_Manager.inl
-
-Mon Oct 31 13:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added Bug_2084_Regression
-
-Mon Oct 31 12:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added TAO/tests/Bug_2074_Regression/run_test.pl to the list
-
-Mon Oct 31 10:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/pre.h:
- Reverted change below, makes it much easier to use ACE from
- application projects
- Fri Oct 28 10:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
-Mon Oct 31 09:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/gethrtime.cpp:
- * ace/Base_Thread_Adapter.cpp:
- Fixed fuzz errors
-
-Mon Oct 31 08:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/msvc_static_order.lst:
- Moved CSD test lib down, let us see the impact on the vc build
-
-Mon Oct 31 06:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/UPIPE_Connector.cpp:
- Added missing include for Linux builds
-
-Sun Oct 30 08:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Task.h:
- Fixed gcc4 compile error
-
-Fri Oct 28 16:07:45 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/SSL/SSL_Context.cpp (ACE_SSL_locking_callback):
- (ACE_SSL_thread_id):
-
- Removed duplicate definitions.
-
-Fri Oct 28 16:42:12 2005 Don Busch <busch_d@ociweb.com>
-
- * bin/MakeProjectCreator/config/messaging_optional.mpb
-
- Add "after += Messaging" to ensure that CosNaming_Serv and
- CosEvent_Serv always build after Messaging
-
-Fri Oct 28 14:28:13 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Map_Manager.h:
-
- Include "ace/Default_Constants.h" to pull in
- ACE_DEFAULT_MAP_SIZE definition.
-
-Fri Oct 28 10:42:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Copy_Disabled.cpp
- * ace/Copy_Disabled.h:
- * ace/Makefile.am (libACE_la_SOURCES):
- * ace/ace.mpc:
-
- Reinstituted Copy_Disabled.cpp. Addresses unresolved symbol
- link-time errors.
-
-Fri Oct 28 09:23:11 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Reverse_Lock_T.h (ACE_Acquire_Method):
-
- Fixed typo.
-
-Fri Oct 28 14:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Select_Reactor_Base.cpp:
- Fixed possible unitialized warning
-
-Fri Oct 28 10:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/pre.h:
- Removed several arguments for the option push, these are passed
- from the commandline already
-
-Fri Oct 28 07:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-linux-common.h:
- Added ACE_HAS_UALARM
-
-Fri Oct 28 00:01:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ACE.cpp:
- * ace/ACE.h:
- * ace/ACE.inl:
- * ace/ACE_crc32.cpp:
- * ace/ACE_crc_ccitt.cpp:
- * ace/ARGV.cpp:
- * ace/ARGV.h:
- * ace/ARGV.inl:
- * ace/ATM_Acceptor.cpp:
- * ace/ATM_Acceptor.h:
- * ace/ATM_Acceptor.inl:
- * ace/ATM_Addr.cpp:
- * ace/ATM_Addr.h:
- * ace/ATM_Addr.inl:
- * ace/ATM_Connector.cpp:
- * ace/ATM_Connector.h:
- * ace/ATM_Connector.inl:
- * ace/ATM_Params.cpp:
- * ace/ATM_Params.h:
- * ace/ATM_Params.inl:
- * ace/ATM_QoS.cpp:
- * ace/ATM_QoS.h:
- * ace/ATM_QoS.inl:
- * ace/ATM_Stream.cpp:
- * ace/ATM_Stream.h:
- * ace/ATM_Stream.inl:
- * ace/Acceptor.cpp:
- * ace/Acceptor.h:
- * ace/Activation_Queue.cpp:
- * ace/Activation_Queue.h:
- * ace/Activation_Queue.inl:
- * ace/Active_Map_Manager.cpp:
- * ace/Active_Map_Manager.h:
- * ace/Active_Map_Manager.inl:
- * ace/Active_Map_Manager_T.cpp:
- * ace/Active_Map_Manager_T.h:
- * ace/Active_Map_Manager_T.inl:
- * ace/Addr.cpp:
- * ace/Addr.h:
- * ace/Addr.inl:
- * ace/Arg_Shifter.cpp:
- * ace/Arg_Shifter.h:
- * ace/Argv_Type_Converter.cpp:
- * ace/Argv_Type_Converter.h:
- * ace/Argv_Type_Converter.inl:
- * ace/Array_Base.cpp:
- * ace/Array_Base.h:
- * ace/Array_Base.inl:
- * ace/Array_Map.cpp:
- * ace/Array_Map.h:
- * ace/Array_Map.inl:
- * ace/Asynch_Acceptor.cpp:
- * ace/Asynch_Acceptor.h:
- * ace/Asynch_Connector.cpp:
- * ace/Asynch_IO.cpp:
- * ace/Asynch_IO.h:
- * ace/Asynch_IO_Impl.cpp:
- * ace/Asynch_IO_Impl.h:
- * ace/Asynch_IO_Impl.inl:
- * ace/Asynch_Pseudo_Task.cpp:
- * ace/Asynch_Pseudo_Task.h:
- * ace/Atomic_Op.cpp:
- * ace/Atomic_Op.h:
- * ace/Atomic_Op.inl:
- * ace/Atomic_Op_T.cpp:
- * ace/Atomic_Op_T.h:
- * ace/Atomic_Op_T.inl:
- * ace/Auto_Event.cpp:
- * ace/Auto_Event.h:
- * ace/Auto_Event.inl:
- * ace/Auto_Functor.cpp:
- * ace/Auto_Functor.h:
- * ace/Auto_Functor.inl:
- * ace/Auto_IncDec_T.cpp:
- * ace/Auto_IncDec_T.h:
- * ace/Auto_IncDec_T.inl:
- * ace/Auto_Ptr.cpp:
- * ace/Auto_Ptr.h:
- * ace/Auto_Ptr.inl:
- * ace/Barrier.cpp:
- * ace/Barrier.h:
- * ace/Barrier.inl:
- * ace/Base_Thread_Adapter.cpp:
- * ace/Base_Thread_Adapter.h:
- * ace/Base_Thread_Adapter.inl:
- * ace/Based_Pointer_Repository.cpp:
- * ace/Based_Pointer_Repository.h:
- * ace/Based_Pointer_T.cpp:
- * ace/Based_Pointer_T.h:
- * ace/Based_Pointer_T.inl:
- * ace/Basic_Stats.cpp:
- * ace/Basic_Stats.h:
- * ace/Basic_Stats.inl:
- * ace/Basic_Types.cpp:
- * ace/Basic_Types.h:
- * ace/Basic_Types.inl:
- * ace/Bound_Ptr.h:
- * ace/Bound_Ptr.inl:
- * ace/CDR_Base.cpp:
- * ace/CDR_Base.h:
- * ace/CDR_Base.inl:
- * ace/CDR_Size.cpp:
- * ace/CDR_Size.h:
- * ace/CDR_Size.inl:
- * ace/CDR_Stream.cpp:
- * ace/CE_Screen_Output.cpp:
- * ace/CE_Screen_Output.h:
- * ace/Cache_Map_Manager_T.cpp:
- * ace/Cache_Map_Manager_T.h:
- * ace/Cache_Map_Manager_T.inl:
- * ace/Cached_Connect_Strategy_T.cpp:
- * ace/Cached_Connect_Strategy_T.h:
- * ace/Caching_Strategies_T.cpp:
- * ace/Caching_Strategies_T.h:
- * ace/Caching_Strategies_T.inl:
- * ace/Caching_Utility_T.cpp:
- * ace/Caching_Utility_T.h:
- * ace/Capabilities.cpp:
- * ace/Capabilities.h:
- * ace/Capabilities.inl:
- * ace/Cleanup.cpp:
- * ace/Cleanup.h:
- * ace/Cleanup.inl:
- * ace/Cleanup_Strategies_T.cpp:
- * ace/Codecs.cpp:
- * ace/Codecs.h:
- * ace/Codeset_IBM1047.cpp:
- * ace/Codeset_IBM1047.h:
- * ace/Codeset_Registry.inl:
- * ace/Condition_Recursive_Thread_Mutex.cpp:
- * ace/Condition_Recursive_Thread_Mutex.h:
- * ace/Condition_T.cpp:
- * ace/Condition_T.h:
- * ace/Condition_T.inl:
- * ace/Condition_Thread_Mutex.cpp:
- * ace/Condition_Thread_Mutex.h:
- * ace/Condition_Thread_Mutex.inl:
- * ace/Configuration.cpp:
- * ace/Configuration.h:
- * ace/Configuration_Import_Export.cpp:
- * ace/Configuration_Import_Export.h:
- * ace/Connection_Recycling_Strategy.cpp:
- * ace/Connection_Recycling_Strategy.h:
- * ace/Connector.cpp:
- * ace/Connector.h:
- * ace/Container_Instantiations.cpp:
- * ace/Containers.cpp:
- * ace/Containers.h:
- * ace/Containers.inl:
- * ace/Containers_T.cpp:
- * ace/Containers_T.h:
- * ace/Containers_T.inl:
- * ace/Copy_Disabled.h:
- * ace/Countdown_Time.cpp:
- * ace/Countdown_Time.h:
- * ace/DEV.cpp:
- * ace/DEV.h:
- * ace/DEV.inl:
- * ace/DEV_Addr.cpp:
- * ace/DEV_Addr.h:
- * ace/DEV_Addr.inl:
- * ace/DEV_Connector.cpp:
- * ace/DEV_Connector.h:
- * ace/DEV_Connector.inl:
- * ace/DEV_IO.cpp:
- * ace/DEV_IO.h:
- * ace/DEV_IO.inl:
- * ace/DLL.cpp:
- * ace/DLL.h:
- * ace/DLL_Manager.cpp:
- * ace/DLL_Manager.h:
- * ace/Date_Time.h:
- * ace/Date_Time.inl:
- * ace/Dev_Poll_Reactor.cpp:
- * ace/Dev_Poll_Reactor.h:
- * ace/Dev_Poll_Reactor.inl:
- * ace/Dirent.h:
- * ace/Dirent.inl:
- * ace/Dirent_Selector.cpp:
- * ace/Dirent_Selector.h:
- * ace/Dirent_Selector.inl:
- * ace/Dump.cpp:
- * ace/Dump.h:
- * ace/Dump_T.cpp:
- * ace/Dump_T.h:
- * ace/Dynamic.cpp:
- * ace/Dynamic.h:
- * ace/Dynamic.inl:
- * ace/Dynamic_Service.cpp:
- * ace/Dynamic_Service.h:
- * ace/Dynamic_Service.inl:
- * ace/Dynamic_Service_Base.cpp:
- * ace/Dynamic_Service_Base.h:
- * ace/Env_Value_T.cpp:
- * ace/Env_Value_T.h:
- * ace/Env_Value_T.inl:
- * ace/Event.cpp:
- * ace/Event.h:
- * ace/Event.inl:
- * ace/Event_Handler.cpp:
- * ace/Event_Handler.h:
- * ace/Event_Handler.inl:
- * ace/Event_Handler_T.cpp:
- * ace/Event_Handler_T.h:
- * ace/Event_Handler_T.inl:
- * ace/FIFO.cpp:
- * ace/FIFO.h:
- * ace/FIFO.inl:
- * ace/FIFO_Recv.cpp:
- * ace/FIFO_Recv.h:
- * ace/FIFO_Recv.inl:
- * ace/FIFO_Recv_Msg.cpp:
- * ace/FIFO_Recv_Msg.h:
- * ace/FIFO_Recv_Msg.inl:
- * ace/FIFO_Send.cpp:
- * ace/FIFO_Send.h:
- * ace/FIFO_Send.inl:
- * ace/FIFO_Send_Msg.cpp:
- * ace/FIFO_Send_Msg.h:
- * ace/FIFO_Send_Msg.inl:
- * ace/FILE.cpp:
- * ace/FILE.h:
- * ace/FILE.inl:
- * ace/FILE_Addr.cpp:
- * ace/FILE_Addr.h:
- * ace/FILE_Addr.inl:
- * ace/FILE_Connector.cpp:
- * ace/FILE_Connector.h:
- * ace/FILE_Connector.inl:
- * ace/FILE_IO.cpp:
- * ace/FILE_IO.h:
- * ace/FILE_IO.inl:
- * ace/File_Lock.cpp:
- * ace/File_Lock.h:
- * ace/File_Lock.inl:
- * ace/Filecache.cpp:
- * ace/Filecache.h:
- * ace/FlReactor.cpp:
- * ace/FlReactor.h:
- * ace/Flag_Manip.cpp:
- * ace/Flag_Manip.h:
- * ace/Flag_Manip.inl:
- * ace/Framework_Component.cpp:
- * ace/Framework_Component.h:
- * ace/Framework_Component.inl:
- * ace/Framework_Component_T.cpp:
- * ace/Framework_Component_T.h:
- * ace/Free_List.cpp:
- * ace/Free_List.h:
- * ace/Functor.cpp:
- * ace/Functor.h:
- * ace/Functor.inl:
- * ace/Functor_String.h:
- * ace/Functor_String.inl:
- * ace/Functor_T.cpp:
- * ace/Functor_T.h:
- * ace/Functor_T.inl:
- * ace/Future.cpp:
- * ace/Future.h:
- * ace/Future_Set.cpp:
- * ace/Future_Set.h:
- * ace/Get_Opt.cpp:
- * ace/Get_Opt.h:
- * ace/Get_Opt.inl:
- * ace/Global_Macros.h:
- * ace/Guard_T.cpp:
- * ace/Guard_T.h:
- * ace/Guard_T.inl:
- * ace/Handle_Gobbler.h:
- * ace/Handle_Gobbler.inl:
- * ace/Handle_Ops.cpp:
- * ace/Handle_Ops.h:
- * ace/Handle_Set.cpp:
- * ace/Handle_Set.h:
- * ace/Handle_Set.inl:
- * ace/Hash_Cache_Map_Manager_T.cpp:
- * ace/Hash_Cache_Map_Manager_T.h:
- * ace/Hash_Cache_Map_Manager_T.inl:
- * ace/Hash_Map_Manager.cpp:
- * ace/Hash_Map_Manager.h:
- * ace/Hash_Map_Manager_T.cpp:
- * ace/Hash_Map_Manager_T.h:
- * ace/Hash_Map_Manager_T.inl:
- * ace/Hash_Map_With_Allocator_T.cpp:
- * ace/Hash_Map_With_Allocator_T.h:
- * ace/Hash_Map_With_Allocator_T.inl:
- * ace/Hashable.cpp:
- * ace/Hashable.h:
- * ace/Hashable.inl:
- * ace/High_Res_Timer.cpp:
- * ace/High_Res_Timer.h:
- * ace/High_Res_Timer.inl:
- * ace/ICMP_Socket.cpp:
- * ace/ICMP_Socket.h:
- * ace/ICMP_Socket.inl:
- * ace/INET_Addr.cpp:
- * ace/INET_Addr.h:
- * ace/INET_Addr.inl:
- * ace/IOStream.cpp:
- * ace/IOStream.h:
- * ace/IOStream_T.cpp:
- * ace/IOStream_T.h:
- * ace/IOStream_T.inl:
- * ace/IO_Cntl_Msg.cpp:
- * ace/IO_Cntl_Msg.h:
- * ace/IO_Cntl_Msg.inl:
- * ace/IO_SAP.cpp:
- * ace/IO_SAP.h:
- * ace/IO_SAP.inl:
- * ace/IPC_SAP.cpp:
- * ace/IPC_SAP.h:
- * ace/IPC_SAP.inl:
- * ace/If_Then_Else.h:
- * ace/Init_ACE.cpp:
- * ace/Init_ACE.h:
- * ace/Intrusive_List.cpp:
- * ace/Intrusive_List.h:
- * ace/Intrusive_List.inl:
- * ace/Intrusive_List_Node.cpp:
- * ace/Intrusive_List_Node.h:
- * ace/Intrusive_List_Node.inl:
- * ace/LOCK_SOCK_Acceptor.cpp:
- * ace/LOCK_SOCK_Acceptor.h:
- * ace/LSOCK.cpp:
- * ace/LSOCK.h:
- * ace/LSOCK.inl:
- * ace/LSOCK_Acceptor.cpp:
- * ace/LSOCK_Acceptor.h:
- * ace/LSOCK_CODgram.cpp:
- * ace/LSOCK_CODgram.h:
- * ace/LSOCK_CODgram.inl:
- * ace/LSOCK_Connector.cpp:
- * ace/LSOCK_Connector.h:
- * ace/LSOCK_Connector.inl:
- * ace/LSOCK_Dgram.cpp:
- * ace/LSOCK_Dgram.h:
- * ace/LSOCK_Dgram.inl:
- * ace/LSOCK_Stream.cpp:
- * ace/LSOCK_Stream.h:
- * ace/LSOCK_Stream.inl:
- * ace/Lib_Find.cpp:
- * ace/Lib_Find.h:
- * ace/Local_Memory_Pool.cpp:
- * ace/Local_Memory_Pool.h:
- * ace/Local_Name_Space.cpp:
- * ace/Local_Name_Space.h:
- * ace/Local_Name_Space_T.cpp:
- * ace/Local_Name_Space_T.h:
- * ace/Local_Tokens.cpp:
- * ace/Local_Tokens.h:
- * ace/Local_Tokens.inl:
- * ace/Lock.cpp:
- * ace/Lock.h:
- * ace/Lock.inl:
- * ace/Lock_Adapter_T.cpp:
- * ace/Lock_Adapter_T.h:
- * ace/Lock_Adapter_T.inl:
- * ace/Log_Msg.cpp:
- * ace/Log_Msg.h:
- * ace/Log_Msg_Backend.cpp:
- * ace/Log_Msg_Backend.h:
- * ace/Log_Msg_Callback.cpp:
- * ace/Log_Msg_Callback.h:
- * ace/Log_Msg_IPC.cpp:
- * ace/Log_Msg_IPC.h:
- * ace/Log_Msg_NT_Event_Log.cpp:
- * ace/Log_Msg_NT_Event_Log.h:
- * ace/Log_Msg_UNIX_Syslog.cpp:
- * ace/Log_Msg_UNIX_Syslog.h:
- * ace/Log_Priority.h:
- * ace/Log_Record.cpp:
- * ace/Log_Record.h:
- * ace/Log_Record.inl:
- * ace/Logging_Strategy.cpp:
- * ace/Logging_Strategy.h:
- * ace/MEM_Acceptor.cpp:
- * ace/MEM_Acceptor.h:
- * ace/MEM_Acceptor.inl:
- * ace/MEM_Addr.cpp:
- * ace/MEM_Addr.h:
- * ace/MEM_Addr.inl:
- * ace/MEM_Connector.cpp:
- * ace/MEM_Connector.h:
- * ace/MEM_Connector.inl:
- * ace/MEM_IO.cpp:
- * ace/MEM_IO.h:
- * ace/MEM_IO.inl:
- * ace/MEM_SAP.cpp:
- * ace/MEM_SAP.h:
- * ace/MEM_SAP.inl:
- * ace/MEM_Stream.cpp:
- * ace/MEM_Stream.h:
- * ace/MEM_Stream.inl:
- * ace/MMAP_Memory_Pool.cpp:
- * ace/MMAP_Memory_Pool.h:
- * ace/Makefile.am:
- * ace/Malloc.cpp:
- * ace/Malloc.h:
- * ace/Malloc.inl:
- * ace/Malloc_Allocator.cpp:
- * ace/Malloc_Allocator.inl:
- * ace/Malloc_Base.h:
- * ace/Malloc_Instantiations.cpp:
- * ace/Malloc_T.cpp:
- * ace/Malloc_T.h:
- * ace/Malloc_T.inl:
- * ace/Managed_Object.cpp:
- * ace/Managed_Object.h:
- * ace/Managed_Object.inl:
- * ace/Manual_Event.cpp:
- * ace/Manual_Event.h:
- * ace/Manual_Event.inl:
- * ace/Map.cpp:
- * ace/Map.h:
- * ace/Map_Manager.cpp:
- * ace/Map_Manager.h:
- * ace/Map_Manager.inl:
- * ace/Map_T.cpp:
- * ace/Map_T.h:
- * ace/Map_T.inl:
- * ace/Mem_Map.cpp:
- * ace/Mem_Map.h:
- * ace/Mem_Map.inl:
- * ace/Message_Block.cpp:
- * ace/Message_Block.h:
- * ace/Message_Block.inl:
- * ace/Message_Block_T.cpp:
- * ace/Message_Block_T.h:
- * ace/Message_Block_T.inl:
- * ace/Message_Queue.cpp:
- * ace/Message_Queue.h:
- * ace/Message_Queue.inl:
- * ace/Message_Queue_T.cpp:
- * ace/Message_Queue_T.h:
- * ace/Method_Object.h:
- * ace/Method_Request.cpp:
- * ace/Method_Request.h:
- * ace/Metrics_Cache_T.cpp:
- * ace/Metrics_Cache_T.h:
- * ace/Metrics_Cache_T.inl:
- * ace/Min_Max.h:
- * ace/Module.cpp:
- * ace/Module.h:
- * ace/Module.inl:
- * ace/Msg_WFMO_Reactor.cpp:
- * ace/Msg_WFMO_Reactor.h:
- * ace/Msg_WFMO_Reactor.inl:
- * ace/Multihomed_INET_Addr.cpp:
- * ace/Multihomed_INET_Addr.h:
- * ace/Multihomed_INET_Addr.inl:
- * ace/Multiplexor.h:
- * ace/Multiplexor.inl:
- * ace/Mutex.cpp:
- * ace/Mutex.h:
- * ace/Mutex.inl:
- * ace/NT_Service.cpp:
- * ace/NT_Service.h:
- * ace/NT_Service.inl:
- * ace/Name_Proxy.cpp:
- * ace/Name_Proxy.h:
- * ace/Name_Request_Reply.cpp:
- * ace/Name_Request_Reply.h:
- * ace/Name_Space.cpp:
- * ace/Name_Space.h:
- * ace/Naming_Context.cpp:
- * ace/Naming_Context.h:
- * ace/Node.cpp:
- * ace/Node.h:
- * ace/Notification_Strategy.cpp:
- * ace/Notification_Strategy.h:
- * ace/Notification_Strategy.inl:
- * ace/Null_Barrier.h:
- * ace/Null_Condition.h:
- * ace/Null_Mutex.h:
- * ace/Null_Semaphore.h:
- * ace/OS.h:
- * ace/OS_Errno.cpp:
- * ace/OS_Errno.h:
- * ace/OS_Errno.inl:
- * ace/OS_Log_Msg_Attributes.h:
- * ace/OS_Log_Msg_Attributes.inl:
- * ace/OS_NS_Thread.cpp:
- * ace/OS_NS_Thread.h:
- * ace/OS_NS_Thread.inl:
- * ace/OS_NS_arpa_inet.cpp:
- * ace/OS_NS_arpa_inet.h:
- * ace/OS_NS_arpa_inet.inl:
- * ace/OS_NS_ctype.h:
- * ace/OS_NS_ctype.inl:
- * ace/OS_NS_dirent.cpp:
- * ace/OS_NS_dirent.h:
- * ace/OS_NS_dirent.inl:
- * ace/OS_NS_dlfcn.cpp:
- * ace/OS_NS_dlfcn.h:
- * ace/OS_NS_dlfcn.inl:
- * ace/OS_NS_errno.h:
- * ace/OS_NS_errno.inl:
- * ace/OS_NS_fcntl.cpp:
- * ace/OS_NS_fcntl.h:
- * ace/OS_NS_fcntl.inl:
- * ace/OS_NS_math.cpp:
- * ace/OS_NS_math.h:
- * ace/OS_NS_math.inl:
- * ace/OS_NS_netdb.cpp:
- * ace/OS_NS_netdb.h:
- * ace/OS_NS_netdb.inl:
- * ace/OS_NS_poll.cpp:
- * ace/OS_NS_poll.h:
- * ace/OS_NS_poll.inl:
- * ace/OS_NS_pwd.cpp:
- * ace/OS_NS_pwd.h:
- * ace/OS_NS_pwd.inl:
- * ace/OS_NS_regex.cpp:
- * ace/OS_NS_regex.h:
- * ace/OS_NS_regex.inl:
- * ace/OS_NS_signal.cpp:
- * ace/OS_NS_signal.h:
- * ace/OS_NS_signal.inl:
- * ace/OS_NS_stdio.cpp:
- * ace/OS_NS_stdio.h:
- * ace/OS_NS_stdio.inl:
- * ace/OS_NS_stdlib.cpp:
- * ace/OS_NS_stdlib.h:
- * ace/OS_NS_stdlib.inl:
- * ace/OS_NS_string.cpp:
- * ace/OS_NS_string.h:
- * ace/OS_NS_string.inl:
- * ace/OS_NS_strings.cpp:
- * ace/OS_NS_strings.h:
- * ace/OS_NS_strings.inl:
- * ace/OS_NS_stropts.cpp:
- * ace/OS_NS_stropts.h:
- * ace/OS_NS_stropts.inl:
- * ace/OS_NS_sys_mman.cpp:
- * ace/OS_NS_sys_mman.h:
- * ace/OS_NS_sys_mman.inl:
- * ace/OS_NS_sys_msg.cpp:
- * ace/OS_NS_sys_msg.inl:
- * ace/OS_NS_sys_resource.cpp:
- * ace/OS_NS_sys_resource.h:
- * ace/OS_NS_sys_resource.inl:
- * ace/OS_NS_sys_select.cpp:
- * ace/OS_NS_sys_select.h:
- * ace/OS_NS_sys_select.inl:
- * ace/OS_NS_sys_shm.cpp:
- * ace/OS_NS_sys_shm.h:
- * ace/OS_NS_sys_shm.inl:
- * ace/OS_NS_sys_socket.cpp:
- * ace/OS_NS_sys_socket.h:
- * ace/OS_NS_sys_socket.inl:
- * ace/OS_NS_sys_stat.cpp:
- * ace/OS_NS_sys_stat.h:
- * ace/OS_NS_sys_stat.inl:
- * ace/OS_NS_sys_time.cpp:
- * ace/OS_NS_sys_time.h:
- * ace/OS_NS_sys_time.inl:
- * ace/OS_NS_sys_uio.cpp:
- * ace/OS_NS_sys_uio.h:
- * ace/OS_NS_sys_uio.inl:
- * ace/OS_NS_sys_utsname.cpp:
- * ace/OS_NS_sys_utsname.h:
- * ace/OS_NS_sys_utsname.inl:
- * ace/OS_NS_sys_wait.cpp:
- * ace/OS_NS_sys_wait.h:
- * ace/OS_NS_sys_wait.inl:
- * ace/OS_NS_time.cpp:
- * ace/OS_NS_time.h:
- * ace/OS_NS_time.inl:
- * ace/OS_NS_unistd.cpp:
- * ace/OS_NS_unistd.h:
- * ace/OS_NS_unistd.inl:
- * ace/OS_NS_wchar.cpp:
- * ace/OS_NS_wchar.h:
- * ace/OS_NS_wchar.inl:
- * ace/OS_QoS.cpp:
- * ace/OS_QoS.h:
- * ace/OS_TLI.h:
- * ace/OS_TLI.inl:
- * ace/OS_Thread_Adapter.cpp:
- * ace/OS_Thread_Adapter.h:
- * ace/OS_main.cpp:
- * ace/OS_main.h:
- * ace/PI_Malloc.cpp:
- * ace/PI_Malloc.h:
- * ace/PI_Malloc.inl:
- * ace/POSIX_Asynch_IO.cpp:
- * ace/POSIX_Asynch_IO.h:
- * ace/POSIX_CB_Proactor.cpp:
- * ace/POSIX_CB_Proactor.h:
- * ace/POSIX_Proactor.cpp:
- * ace/POSIX_Proactor.h:
- * ace/POSIX_Proactor.inl:
- * ace/Pagefile_Memory_Pool.cpp:
- * ace/Pagefile_Memory_Pool.h:
- * ace/Pagefile_Memory_Pool.inl:
- * ace/Pair.cpp:
- * ace/Pair.h:
- * ace/Pair_T.cpp:
- * ace/Pair_T.h:
- * ace/Pair_T.inl:
- * ace/Parse_Node.cpp:
- * ace/Parse_Node.h:
- * ace/Ping_Socket.cpp:
- * ace/Ping_Socket.h:
- * ace/Ping_Socket.inl:
- * ace/Pipe.cpp:
- * ace/Pipe.h:
- * ace/Pipe.inl:
- * ace/Priority_Reactor.cpp:
- * ace/Priority_Reactor.h:
- * ace/Proactor.cpp:
- * ace/Proactor.h:
- * ace/Proactor.inl:
- * ace/Proactor_Impl.cpp:
- * ace/Proactor_Impl.h:
- * ace/Process.cpp:
- * ace/Process.h:
- * ace/Process.inl:
- * ace/Process_Manager.cpp:
- * ace/Process_Manager.h:
- * ace/Process_Manager.inl:
- * ace/Process_Mutex.cpp:
- * ace/Process_Mutex.h:
- * ace/Process_Mutex.inl:
- * ace/Process_Semaphore.cpp:
- * ace/Process_Semaphore.h:
- * ace/Process_Semaphore.inl:
- * ace/Profile_Timer.cpp:
- * ace/Profile_Timer.h:
- * ace/Profile_Timer.inl:
- * ace/QtReactor.cpp:
- * ace/QtReactor.h:
- * ace/RB_Tree.cpp:
- * ace/RB_Tree.h:
- * ace/RB_Tree.inl:
- * ace/RW_Mutex.cpp:
- * ace/RW_Mutex.h:
- * ace/RW_Mutex.inl:
- * ace/RW_Process_Mutex.cpp:
- * ace/RW_Process_Mutex.h:
- * ace/RW_Process_Mutex.inl:
- * ace/RW_Thread_Mutex.cpp:
- * ace/RW_Thread_Mutex.h:
- * ace/RW_Thread_Mutex.inl:
- * ace/Reactor.cpp:
- * ace/Reactor.h:
- * ace/Reactor.inl:
- * ace/Reactor_Impl.cpp:
- * ace/Reactor_Impl.h:
- * ace/Reactor_Notification_Strategy.cpp:
- * ace/Reactor_Notification_Strategy.h:
- * ace/Reactor_Notification_Strategy.inl:
- * ace/Reactor_Timer_Interface.cpp:
- * ace/Reactor_Timer_Interface.h:
- * ace/Reactor_Token_T.cpp:
- * ace/Reactor_Token_T.h:
- * ace/Read_Buffer.cpp:
- * ace/Read_Buffer.h:
- * ace/Read_Buffer.inl:
- * ace/Recursive_Thread_Mutex.cpp:
- * ace/Recursive_Thread_Mutex.h:
- * ace/Recursive_Thread_Mutex.inl:
- * ace/Recyclable.cpp:
- * ace/Recyclable.h:
- * ace/Recyclable.inl:
- * ace/Refcountable.cpp:
- * ace/Refcountable.h:
- * ace/Refcountable.inl:
- * ace/Refcounted_Auto_Ptr.cpp:
- * ace/Refcounted_Auto_Ptr.h:
- * ace/Refcounted_Auto_Ptr.inl:
- * ace/Registry.cpp:
- * ace/Registry.h:
- * ace/Registry_Name_Space.cpp:
- * ace/Registry_Name_Space.h:
- * ace/Remote_Name_Space.cpp:
- * ace/Remote_Name_Space.h:
- * ace/Remote_Tokens.cpp:
- * ace/Remote_Tokens.h:
- * ace/Remote_Tokens.inl:
- * ace/Reverse_Lock_T.cpp:
- * ace/Reverse_Lock_T.h:
- * ace/Reverse_Lock_T.inl:
- * ace/SOCK.cpp:
- * ace/SOCK.h:
- * ace/SOCK.inl:
- * ace/SOCK_Acceptor.cpp:
- * ace/SOCK_Acceptor.h:
- * ace/SOCK_Acceptor.inl:
- * ace/SOCK_CODgram.cpp:
- * ace/SOCK_CODgram.h:
- * ace/SOCK_CODgram.inl:
- * ace/SOCK_Connector.cpp:
- * ace/SOCK_Connector.h:
- * ace/SOCK_Connector.inl:
- * ace/SOCK_Dgram.cpp:
- * ace/SOCK_Dgram.h:
- * ace/SOCK_Dgram.inl:
- * ace/SOCK_Dgram_Bcast.cpp:
- * ace/SOCK_Dgram_Bcast.h:
- * ace/SOCK_Dgram_Bcast.inl:
- * ace/SOCK_IO.cpp:
- * ace/SOCK_IO.h:
- * ace/SOCK_IO.inl:
- * ace/SOCK_SEQPACK_Acceptor.cpp:
- * ace/SOCK_SEQPACK_Acceptor.h:
- * ace/SOCK_SEQPACK_Acceptor.inl:
- * ace/SOCK_SEQPACK_Association.cpp:
- * ace/SOCK_SEQPACK_Association.h:
- * ace/SOCK_SEQPACK_Association.inl:
- * ace/SOCK_SEQPACK_Connector.cpp:
- * ace/SOCK_SEQPACK_Connector.h:
- * ace/SOCK_SEQPACK_Connector.inl:
- * ace/SOCK_Stream.cpp:
- * ace/SOCK_Stream.h:
- * ace/SOCK_Stream.inl:
- * ace/SPIPE.cpp:
- * ace/SPIPE.h:
- * ace/SPIPE.inl:
- * ace/SPIPE_Acceptor.cpp:
- * ace/SPIPE_Acceptor.h:
- * ace/SPIPE_Addr.cpp:
- * ace/SPIPE_Addr.h:
- * ace/SPIPE_Addr.inl:
- * ace/SPIPE_Connector.cpp:
- * ace/SPIPE_Connector.h:
- * ace/SPIPE_Connector.inl:
- * ace/SPIPE_Stream.cpp:
- * ace/SPIPE_Stream.inl:
- * ace/SString.cpp:
- * ace/SString.h:
- * ace/SString.inl:
- * ace/SStringfwd.h:
- * ace/SUN_Proactor.cpp:
- * ace/SUN_Proactor.h:
- * ace/SV_Message.cpp:
- * ace/SV_Message.h:
- * ace/SV_Message.inl:
- * ace/SV_Message_Queue.cpp:
- * ace/SV_Message_Queue.h:
- * ace/SV_Message_Queue.inl:
- * ace/SV_Semaphore_Complex.cpp:
- * ace/SV_Semaphore_Complex.h:
- * ace/SV_Semaphore_Complex.inl:
- * ace/SV_Semaphore_Simple.cpp:
- * ace/SV_Semaphore_Simple.h:
- * ace/SV_Semaphore_Simple.inl:
- * ace/SV_Shared_Memory.cpp:
- * ace/SV_Shared_Memory.h:
- * ace/SV_Shared_Memory.inl:
- * ace/Sample_History.cpp:
- * ace/Sample_History.h:
- * ace/Sample_History.inl:
- * ace/Sbrk_Memory_Pool.cpp:
- * ace/Sbrk_Memory_Pool.h:
- * ace/Sched_Params.cpp:
- * ace/Sched_Params.h:
- * ace/Sched_Params.inl:
- * ace/Select_Reactor.cpp:
- * ace/Select_Reactor.h:
- * ace/Select_Reactor_Base.cpp:
- * ace/Select_Reactor_Base.h:
- * ace/Select_Reactor_Base.inl:
- * ace/Select_Reactor_T.cpp:
- * ace/Select_Reactor_T.h:
- * ace/Select_Reactor_T.inl:
- * ace/Semaphore.cpp:
- * ace/Semaphore.h:
- * ace/Semaphore.inl:
- * ace/Service_Config.cpp:
- * ace/Service_Config.h:
- * ace/Service_Config.inl:
- * ace/Service_Manager.cpp:
- * ace/Service_Manager.h:
- * ace/Service_Manager.inl:
- * ace/Service_Object.cpp:
- * ace/Service_Object.h:
- * ace/Service_Object.inl:
- * ace/Service_Repository.cpp:
- * ace/Service_Repository.h:
- * ace/Service_Repository.inl:
- * ace/Service_Templates.cpp:
- * ace/Service_Types.cpp:
- * ace/Service_Types.h:
- * ace/Service_Types.inl:
- * ace/Shared_Memory.cpp:
- * ace/Shared_Memory.h:
- * ace/Shared_Memory_MM.cpp:
- * ace/Shared_Memory_MM.h:
- * ace/Shared_Memory_MM.inl:
- * ace/Shared_Memory_Pool.cpp:
- * ace/Shared_Memory_Pool.h:
- * ace/Shared_Memory_SV.cpp:
- * ace/Shared_Memory_SV.h:
- * ace/Shared_Memory_SV.inl:
- * ace/Shared_Object.cpp:
- * ace/Shared_Object.h:
- * ace/Shared_Object.inl:
- * ace/Signal.cpp:
- * ace/Signal.h:
- * ace/Signal.inl:
- * ace/Singleton.cpp:
- * ace/Singleton.h:
- * ace/Singleton.inl:
- * ace/Sock_Connect.cpp:
- * ace/Sock_Connect.h:
- * ace/Static_Object_Lock.h:
- * ace/Stats.cpp:
- * ace/Stats.h:
- * ace/Stats.inl:
- * ace/Strategies_T.cpp:
- * ace/Strategies_T.h:
- * ace/Strategies_T.inl:
- * ace/Stream.cpp:
- * ace/Stream.h:
- * ace/Stream.inl:
- * ace/Stream_Modules.cpp:
- * ace/Stream_Modules.h:
- * ace/String_Base.cpp:
- * ace/String_Base.h:
- * ace/String_Base.inl:
- * ace/String_Base_Const.cpp:
- * ace/String_Base_Const.h:
- * ace/Svc_Conf.h:
- * ace/Svc_Conf_Lexer_Guard.cpp:
- * ace/Svc_Conf_Lexer_Guard.h:
- * ace/Svc_Handler.cpp:
- * ace/Svc_Handler.h:
- * ace/Swap.cpp:
- * ace/Swap.h:
- * ace/Swap.inl:
- * ace/Synch.cpp:
- * ace/Synch_Options.cpp:
- * ace/Synch_Options.h:
- * ace/Synch_Options.inl:
- * ace/Synch_T.cpp:
- * ace/Synch_T.h:
- * ace/Synch_Traits.h:
- * ace/System_Time.cpp:
- * ace/System_Time.h:
- * ace/TLI.cpp:
- * ace/TLI.h:
- * ace/TLI.inl:
- * ace/TLI_Acceptor.cpp:
- * ace/TLI_Acceptor.h:
- * ace/TLI_Connector.cpp:
- * ace/TLI_Connector.h:
- * ace/TLI_Connector.inl:
- * ace/TLI_Stream.cpp:
- * ace/TLI_Stream.h:
- * ace/TLI_Stream.inl:
- * ace/TP_Reactor.cpp:
- * ace/TP_Reactor.h:
- * ace/TP_Reactor.inl:
- * ace/TSS_Adapter.cpp:
- * ace/TSS_Adapter.h:
- * ace/TSS_Adapter.inl:
- * ace/TSS_T.cpp:
- * ace/TSS_T.h:
- * ace/TSS_T.inl:
- * ace/TTY_IO.cpp:
- * ace/TTY_IO.h:
- * ace/Task.cpp:
- * ace/Task.h:
- * ace/Task.inl:
- * ace/Task_Ex_T.cpp:
- * ace/Task_Ex_T.h:
- * ace/Task_Ex_T.inl:
- * ace/Task_T.cpp:
- * ace/Task_T.h:
- * ace/Task_T.inl:
- * ace/Template_Instantiations.cpp:
- * ace/Test_and_Set.cpp:
- * ace/Test_and_Set.h:
- * ace/Thread.cpp:
- * ace/Thread.h:
- * ace/Thread.inl:
- * ace/Thread_Adapter.cpp:
- * ace/Thread_Adapter.h:
- * ace/Thread_Adapter.inl:
- * ace/Thread_Control.cpp:
- * ace/Thread_Control.h:
- * ace/Thread_Control.inl:
- * ace/Thread_Exit.cpp:
- * ace/Thread_Exit.h:
- * ace/Thread_Hook.cpp:
- * ace/Thread_Hook.h:
- * ace/Thread_Manager.cpp:
- * ace/Thread_Manager.h:
- * ace/Thread_Manager.inl:
- * ace/Thread_Mutex.cpp:
- * ace/Thread_Mutex.h:
- * ace/Thread_Mutex.inl:
- * ace/Thread_Semaphore.cpp:
- * ace/Thread_Semaphore.h:
- * ace/Thread_Semaphore.inl:
- * ace/Time_Request_Reply.cpp:
- * ace/Time_Request_Reply.h:
- * ace/Time_Value.cpp:
- * ace/Time_Value.h:
- * ace/Time_Value.inl:
- * ace/Timeprobe.cpp:
- * ace/Timeprobe.h:
- * ace/Timeprobe.inl:
- * ace/Timeprobe_T.cpp:
- * ace/Timeprobe_T.h:
- * ace/Timer_Hash.cpp:
- * ace/Timer_Hash.h:
- * ace/Timer_Heap.cpp:
- * ace/Timer_Heap.h:
- * ace/Timer_Heap_T.cpp:
- * ace/Timer_Heap_T.h:
- * ace/Timer_List.cpp:
- * ace/Timer_List.h:
- * ace/Timer_Queue.cpp:
- * ace/Timer_Queue.h:
- * ace/Timer_Queue_Adapters.cpp:
- * ace/Timer_Queue_Adapters.h:
- * ace/Timer_Queue_Adapters.inl:
- * ace/Timer_Queue_T.cpp:
- * ace/Timer_Queue_T.h:
- * ace/Timer_Queue_T.inl:
- * ace/Timer_Queuefwd.h:
- * ace/Timer_Wheel.cpp:
- * ace/Timer_Wheel.h:
- * ace/Timer_Wheel_T.cpp:
- * ace/Timer_Wheel_T.h:
- * ace/TkReactor.cpp:
- * ace/TkReactor.h:
- * ace/Token.cpp:
- * ace/Token.h:
- * ace/Token.inl:
- * ace/Token_Collection.cpp:
- * ace/Token_Collection.h:
- * ace/Token_Collection.inl:
- * ace/Token_Invariants.cpp:
- * ace/Token_Invariants.h:
- * ace/Token_Manager.cpp:
- * ace/Token_Manager.h:
- * ace/Token_Manager.inl:
- * ace/Token_Request_Reply.cpp:
- * ace/Token_Request_Reply.h:
- * ace/Token_Request_Reply.inl:
- * ace/Trace.cpp:
- * ace/Trace.h:
- * ace/Typed_SV_Message.cpp:
- * ace/Typed_SV_Message.h:
- * ace/Typed_SV_Message.inl:
- * ace/Typed_SV_Message_Queue.cpp:
- * ace/Typed_SV_Message_Queue.h:
- * ace/Typed_SV_Message_Queue.inl:
- * ace/UNIX_Addr.cpp:
- * ace/UNIX_Addr.h:
- * ace/UNIX_Addr.inl:
- * ace/UPIPE_Acceptor.cpp:
- * ace/UPIPE_Acceptor.h:
- * ace/UPIPE_Acceptor.inl:
- * ace/UPIPE_Addr.h:
- * ace/UPIPE_Connector.cpp:
- * ace/UPIPE_Connector.h:
- * ace/UPIPE_Connector.inl:
- * ace/UPIPE_Stream.cpp:
- * ace/UPIPE_Stream.h:
- * ace/UPIPE_Stream.inl:
- * ace/UUID.cpp:
- * ace/UUID.h:
- * ace/UUID.inl:
- * ace/Unbounded_Queue.cpp:
- * ace/Unbounded_Queue.h:
- * ace/Unbounded_Queue.inl:
- * ace/Unbounded_Set.cpp:
- * ace/Unbounded_Set.h:
- * ace/Unbounded_Set.inl:
- * ace/Value_Ptr.h:
- * ace/Vector_T.cpp:
- * ace/Vector_T.h:
- * ace/Vector_T.inl:
- * ace/WFMO_Reactor.cpp:
- * ace/WFMO_Reactor.h:
- * ace/WFMO_Reactor.inl:
- * ace/WIN32_Asynch_IO.cpp:
- * ace/WIN32_Asynch_IO.h:
- * ace/WIN32_Proactor.cpp:
- * ace/WIN32_Proactor.h:
- * ace/XML_Svc_Conf.cpp:
- * ace/XML_Svc_Conf.h:
- * ace/XTI_ATM_Mcast.cpp:
- * ace/XTI_ATM_Mcast.h:
- * ace/XTI_ATM_Mcast.inl:
- * ace/XtReactor.cpp:
- * ace/XtReactor.h:
- * ace/ace.mpc:
- * ace/ace_wchar.h:
- * ace/ace_wchar.inl:
- * ace/config-lite.h:
- * ace/gethrtime.cpp:
- * ace/SSL/SSL_Asynch_Stream.cpp:
- * ace/SSL/SSL_Asynch_Stream.h:
- * ace/SSL/SSL_Context.cpp:
- * ace/SSL/SSL_Context.h:
- * ace/SSL/SSL_Context.inl:
- * ace/SSL/SSL_SOCK.cpp:
- * ace/SSL/SSL_SOCK.h:
- * ace/SSL/SSL_SOCK.i:
- * ace/SSL/SSL_SOCK_Acceptor.cpp:
- * ace/SSL/SSL_SOCK_Acceptor.h:
- * ace/SSL/SSL_SOCK_Acceptor.i:
- * ace/SSL/SSL_SOCK_Connector.cpp:
- * ace/SSL/SSL_SOCK_Connector.h:
- * ace/SSL/SSL_SOCK_Connector.i:
- * ace/SSL/SSL_SOCK_Stream.cpp:
- * ace/SSL/SSL_SOCK_Stream.h:
- * ace/SSL/SSL_SOCK_Stream.i:
-
- Added versioned namespace support.
-
- Removed some empty and/or unnecessary `.cpp' and `.inl' files.
-
- Hid some static class member constants declared in headers in
- the corresponding implementation `.cpp' file.
-
-Thu Oct 27 11:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Process_Strategy_Test.cpp:
- * tests/Reactor_Dispatch_Order_Test.cpp:
- 64bit fixes
-
-Thu Oct 27 11:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Threads/barrier2.cpp:
- 64bit fixes
-
-Thu Oct 27 11:58:07 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_other_tests.lst:
-
- Three new FT regression tests.
-
-Thu Oct 27 09:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added TAO Bug_2201_Regression test
-
-Wed Oct 26 17:22:12 2005 Don Busch <busch_d@ociweb.com>
-
- * bin/MakeProjectCreator/config/event_serv.mpb
- * bin/MakeProjectCreator/config/messaging.mpb
- * bin/MakeProjectCreator/config/messaging_optional.mpb
- * bin/MakeProjectCreator/config/naming_serv.mpb
-
- This is a footprint reduction fix, eliminating a library dependency.
- TAO 1.4 introduced a new dependency on the Messaging, Valuetype,
- PI, and CodecFactory libraries for the CosNaming_Serv and
- CosEvent_Serv libraries. Turning off CORBA Messaging did not remove
- this dependency. Thus, any application that uses CosNaming_Serv or
- CosEvent_Serv, but not CORBA Messaging, depends on those libraries
- anyway. This change eliminates the CosNaming_Serv and CosEvent_Serv
- dependencies on Messaging (and thus PI, CodecFactory, and Valuetype)
- when CORBA Messaging and Interceptors are turned off. It reduces
- the footprint in that case by about 600K.
- There is a TAO ChangeLog entry with the same timestamp that
- descibes the TAO changes.
-
-Wed Oct 26 12:26:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Codeset_Registry.cpp (locale_to_registry_i):
- (registry_to_locale_i):
-
- Corrected reversed destination and source arguments in memcpy()
- call.
-
- Improved const correctness. Revealed the above memcpy()
- problem.
-
- * ace/Codeset_Registry.h:
- * ace/Codeset_Registry_db.cpp:
-
- Made registry entry array "const" to prevent the above memcpy()
- problem from being potentially reintroduced in the future. Also
- provides the compiler with additional optimization opportunities
- (e.g. placing the array in read-only memory).
-
- * apps/mkcsregdb/mkcsregdb.cpp (init_output, fini_output):
-
- Updated output to generate an array of const registry entries in
- accordance with the changes made to ace/Codeset_Registry.h.
-
-Wed Oct 26 15:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/msvc_cidlc.pl:
- Print an error if no configurations have been build, at that moment
- we just didn't build something which we have to handle as error
-
-Wed Oct 26 12:58:17 2005 Simon McQueen <sm@prismtech.com>
-
- * ace/OS_NS_stdio.inl:
-
- Added a ACE_WIN32 implementation for ACE_OS::vsnprintf for
- wide chars using ::_vsnwprintf, in the style of the existing
- ACE_OS::vsnprintf for normal chars.
-
- This (hopefully) fixes bug #2208.
-
-Tue Oct 25 22:18:03 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/CDR_Stream.h (OutputCDR_Auto_Reset):
- * ace/CDR_Stream.inl (OutputCDR_Auto_Reset):
-
- Prepend "ACE_" to this class (described in ChangeLog entry "Fri
- Aug 26 11:43:01 2005 Justin Michel <michel_j@ociweb.com>") to
- address potential global namespace pollution issues, and to be
- consistent with ACE naming conventions.
-
- Adding missing ACE_Export. Addresses unresolved symbol errors
- in Windows and g++ 4 builds when inlining is disabled and
- TAO_RESET_OUTPUT_CDR_AFTER_SEND is defined to 1.
-
- Use "this" pointer to reference class members, as dictated by
- ACE coding conventions/guidelines.
-
-Tue Oct 25 09:05:47 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * bin/msvc_static_order.lst:
-
- Rolled back
- "Mon Oct 24 12:58:45 MST 2005 Yan Dai <dai_y@ociweb.com>" change,
- the entry should be project file name.
-
-Tue Oct 25 08:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-qnx-rtp-62x.h:
- Added ACE_HAS_3_PARAM_WCSTOK
-
-Tue Oct 25 08:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Pipe_Test.cpp:
- Fixed invalid assert
-
-Mon Oct 24 12:58:45 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * bin/msvc_static_order.lst:
-
- Corrected the entry TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test.
- The library name should be used instead of project name.
-
-Mon Oct 24 10:21:39 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * docs/ACE-guidelines.html:
-
- Added shared library guidelines.
-
-Mon Oct 24 14:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
-
- * ace/OS_NS_Thread.inl:
- Fixed typo in VxWorks part
-
- * ace/config-vxworks5.x.h:
- Added some extra ACE_LACKS_x for VxWorks
-
-Mon Oct 24 07:19:29 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Dev_Poll_Reactor.cpp: Fixed a couple of bugs that
- were causing core dumps. Thanks to Oh Yoon Sik
- <boom@estsoft.com> for these fixes.
-
-Sun Oct 23 13:05:33 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * tests/Pipe_Test.cpp (run_main): Updated this test to be a bit
- cleaner.
-
- * tests/Dirent_Test.cpp: Fixed a typo in the comments - this test
- exericses the ACE_Dirent class, not the ACE_OS_Dirent class.
-
-Fri Oct 21 07:46:47 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Dev_Poll_Reactor.cpp (open): Set notification pipe into
- non-blocking mode to prevent deadlock. Thanks to Oh Yoon Sik
- <boom at estsoft dot com> for this fix.
-
-Mon Oct 24 10:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
- Corrected the way we pass the include paths to windres
-
-Mon Oct 24 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/wrapper_macros.GNU:
- Pass RCFLAGS to the resource compiler
-
-Mon Oct 24 08:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.{h,inl}:
- 64bit fixes
-
-Mon Oct 24 08:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
- Generate includes for the resource compiler, this fixes compile
- problems of the resource file when it contains includes that
- expect an include path being set
-
-Mon Oct 24 06:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ace_qt.mpb:
- Update to enable to define specific versions of the
- QT library(-ies) needed to be linked for Windows based
- builds as with *nix based builds.
-
-Sun Oct 23 22:27:45 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Global_Macros.h:
- * ace/Versioned_Namespace.h:
-
- Disable versioned namespace support for MSVC++ 6. It's
- preprocessor can't handle the required macro expansions.
-
-Sun Oct 23 21:48:15 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/README:
-
- Added documentation that describes how to override the default
- versioned namespace name when ACE_HAS_VERSIONED_NAMESPACE is
- defined.
-
- * ace/Version.h:
-
- Removed "ace/Versioned_Namespace.h" include directive. It
- caused some resource compilers on Windows some grief.
-
- * ace/Versioned_Namespace.h:
-
- Updated required header filename in preprocessor error message.
- This header should now be included through "ace/config-lite.h".
-
- * ace/config-lite.h:
-
- Include "ace/Version.h" and "ace/Versioned_Namespace.h" to pull
- in versioned namespace support (disabled by default).
-
- * ace/post.h:
- * ace/pre.h:
-
- Removed versioned namespace support. Versioned namespace
- declarations must now be added directly to the appropriate ACE
- library headers. Addresses premature closure of versioned
- namespace.
-
-Sun Oct 23 06:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- Generate new RC_FLAGS with the includes that need to be passed to
- the resource compiler
-
- * include/makeinclude/build_dll.bor:
- * include/makeinclude/build_exe.bor:
- Use the new RC_FLAGS
-
-Sat Oct 22 11:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Codeset_Registry.h:
- Doxygen improvements
-
-Fri Oct 21 14:28:54 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * bin/MakeProjectCreator/config/csd_pt_test_exe.mpb:
-
- Added dependency on pi base project since the PI.h is included
- in the test application for the static initialization.
-
-Fri Oct 21 10:54:44 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * bin/msvc_static_order.lst:
-
- Added TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.
-
-Fri Oct 21 11:44:33 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-
- * ace/CDR_Stream.h
-
- Fixed a typo in the optimization description of
- ACE_LACKS_CDR_ALIGNMENT flag.
-
-Fri Oct 21 07:09:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/msvc_static_order.lst:
-
- Add CosEvent_IDL project before CosEvent, CosEvent_Skel, and
- CosEvent_Serv.
-
-Fri Oct 21 12:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Proactor.h:
- Added virtual destructor to the dummy ACE_Proactor that is
- enabled when the ACE_Proactor can't be used
-
-Fri Oct 21 12:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Log_Msg.cpp:
- Fixed compile problem in Linux builds
-
-Fri Oct 21 12:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.{h,inl} (sbrk):
- Use ptrdiff_t as argument type to fix 64bit conversions
-
-Fri Oct 21 12:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Message_Queue_T.{h,cpp}:
- Changed cur_count to size_t and use prefix operators instead
- of postfix
-
-Fri Oct 21 11:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- BCBVER must be explicitly defined by the end user and must
- be set to a supported value, else just don't build.
-
-Fri Oct 21 10:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Log_Msg.cpp (log)
- Check for passing of NULL pointers to %C and %w
- formatting strings and replace them with "(null)" to avoid
- crashes. Thanks to Scooter <im-scooter at yandex dot ru> for
- reporting this. Fixes bugzilla bug 2276
-
-Thu Oct 20 22:20:26 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Dev_Poll_Reactor.cpp (open): Disabling the notify pipe was
- failing, but now it works. Thanks to Oh Yoon Sik <boom at
- estsoft dot com> for this fix.
-
-Thu Oct 20 14:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/CDR_Base.cpp:
- Removed character before #include
-
-Thu Oct 20 08:53:47 2005 Arvind S. Krishna <arvindk@doc.dre.vanderbilt.edu>
-
- * ace/CDR_Base.cpp:
- * ace/CDR_Stream.h:
- * ace/CDR_Stream.cpp:
- * ace/CDR_Stream.inl:
- * ace/Message_Block.cpp:
-
- CORBA specification mandates alignment of basic types to their
- natural boundaries. However, in certain situations (1) where
- such alignment is not needed by the platform and/or (2)
- homogeneous systems exists on the client and server sides, this
- alignment can be ignored to improve (de)marshaling
- efficiency. This commit adds the ACE_LACKS_CDR_ALIGNMENT flag to
- the CDR streams that enables applications to ignore alignment
- during (de)marshaling. This macro should be used when ACE_CDR is
- both the (de)marshaler. Additionally, use this option only when
- byte orders of the two machines are the same. This restriction
- is temporary and will be removed in a subsequent commit.
-
-Thu Oct 29 11:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_unistd.{h,inl}:
- Changed the return value and arguments of ualarm from u_int
- to u_long to fix 64bit problems
-
-Wed Oct 19 18:57:53 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/OS_NS_stdio.inl (flock_init): Only allocate the
- memory for the name if the call to ACE_OS::open() succeeds.
- This fixes a subtle memory leak. Thanks to Sandeep Deshpande
- <sandeep dot bvb at gmail dot com> for this fix!
-
-Wed Oct 19 09:56:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * include/makeinclude/platform_macosx_tiger_gcc4.GNU:
-
- Disable symbol visibility support by default. Apple's g++ 4
- compiler doesn't appear to correctly support visibility
- attributes, at least as well as the vanilla g++. Thanks to
- Will, Kitty and J.T. for testing and tracking the problem.
-
-Wed Oct 19 09:26:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ACE.h (strdelete):
-
- Declare this function with the ACE_NAMESPACE_INLINE_FUNCTION.
- Addresses case where this method is inlined, and should not be
- marked "extern".
-
-Wed Oct 19 09:23:13 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/pre.h:
-
- Moved include directive for "ace/Version.h" before existing
- pragmas in this file. Addresses Borland preprocessor warnings
- regarding duplicate "pushed" options. Thanks to Johnny for
- suggesting this fix.
-
-Wed Oct 19 08:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/CDR_File_Test.cpp:
- Fixed compile error
-
-Wed Oct 19 07:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Reactor_Token_T.h:
- Removed code for including the .inl file, it is not there, just
- a waste of bytes ;-)
-
-Wed Oct 19 00:23:02 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Global_Macros.h (ACE_FACTORY_DEFINE):
- (ACE_FACTORY_NAMESPACE_DEFINE):
-
- Don't bother qualifying the SERVICE_CLASS name with
- ACE_VERSIONED_NAMESPACE_NAME scope. That scoped is already
- pulled in by a "using" clause. Addresses compile-time errors
- caused by calling the ACE_FACTORY_{NAMESPACE_}DEFINE macro
- within a namespace and passing the locally scoped name of the
- SERVICE_CLASS rather than the fully qualified one.
-
-Tue Oct 18 23:23:14 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- The following changes comprise the core implementation of
- "versioned namespace" support in ACE. When enabled, all ACE
- library code will be wrapped within a namespace, such as
- "ACE_5_4_7", to prevent symbol conflicts with other versions of
- ACE shared libraries in third party libraries. This feature is
- disabled by default to preserve backward compatibility.
-
- * ace/Global_Macros.h:
-
- Updated ACE Service Configurator macros to take into account
- versioned namespace when enabled.
-
- * ace/Parse_Node.cpp (ACE_Function_Node, make_func_name):
- * ace/Parse_Node.h:
-
- Check if factory function is using the ACE naming convention.
- If so, it is likely that the ACE factory function macros
- (e.g. ACE_FACTORY_DECLARE) were used to declare and define it,
- so mangle the function name to include the ACE versioned
- namespace name as is done in the ACE macros. Otherwise, leave
- the function name as is.
-
- * ace/README:
-
- Added description for new ACE_HAS_VERSIONED_NAMESPACE
- preprocessor symbol.
-
- * ace/Version.h:
-
- Include "ace/Versioned_Namespace.h" to pull in versioned
- namespace macros.
-
- * ace/Versioned_Namespace.h:
-
- New header containing core versioned namespace macros.
-
- * ace/ace.mpc (Header_Files):
-
- Added "Versioned_Namespace.h" to list of headers.
-
- * ace/pre.h:
-
- Include "ace/Version.h" to pull in versioned namespace support.
-
- * ace/post.h:
-
- End versioned namespace block, if enabled.
-
- * bin/make_release (update_version_files):
-
- Generate include directive for "ace/Versioned_Namespace.h" when
- creating "ace/Version.h".
-
-Tue Oct 18 23:08:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ACE.cpp (strdelete):
- * ace/ACE.inl (strdelete):
-
- Inlined this function. It simply calles operator delete[] on a
- pointer to char or wchar_t. Reduces footprint if it is never
- called, and optimizes the call at run-time slightly if it is
- called.
-
-Tue Oct 18 20:51:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/csd_framework.mpb:
-
- Remove "core" from list of base projects. Just because
- we use the CSD framework, doesn't necessarily mean that
- the project should be installed. It needs to explictly
- inherit from core (or install, install-bin, install-lib,
- or install-headers) for that.
-
-Tue Oct 18 18:06:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/kokyu_dsrt_schedulers.mpb:
-
- Add $(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers to
- includes for automake builds.
-
-Tue Oct 18 17:24:26 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- Merged in the CSD (Custom Servant Dispatching) feature from OCI.
-
- * bin/tao_orb_tests.lst:
-
- Added CSD tests.
-
- * bin/MakeProjectCreator/config/csd_framework.mpb:
- * bin/MakeProjectCreator/config/csd_threadpool.mpb:
- * bin/MakeProjectCreator/config/csd_tp_test_lib.mpb:
- * bin/MakeProjectCreator/config/csd_tp_test_exe_c.mpb:
- * bin/MakeProjectCreator/config/csd_tp_test_exe_b.mpb:
- * bin/MakeProjectCreator/config/csd_tp_test_exe_a.mpb:
- * bin/MakeProjectCreator/config/csd_tp_foo_c_lib.mpb:
- * bin/MakeProjectCreator/config/csd_tp_foo_b_lib.mpb:
- * bin/MakeProjectCreator/config/csd_tp_foo_a_lib.mpb:
- * bin/MakeProjectCreator/config/csd_pt_testservant_lib.mpb:
- * bin/MakeProjectCreator/config/csd_pt_testinf_lib.mpb:
- * bin/MakeProjectCreator/config/csd_pt_test_exe.mpb:
-
- Added base projects for the CSD strategies and tests.
-
Tue Oct 18 22:24:11 2005 Olli Savia <ops@iki.fi>
* ace/TTY_IO.h:
@@ -11548,8 +2852,2818 @@ Fri Aug 05 07:37:20 2005 Simon Massey <sma@prismtech.com>
* ACE version 5.4.7 released.
+Fri Aug 5 13:19:33 2005 Simon McQueen <sm@prismtech.com>
+
+ * Release:
+
+ Remove tagging of man/* files.
+
+Thu Aug 4 16:10:24 BST 2005 Donald Sharp <Donald.Sharp@prismtech.com>
+
+ * tests/Array_Map_Test.cpp:
+ Some compilers, like SunCC5.5 on Solaris, do not delete their
+ temporaries in expression scope. Placing the expressions in an
+ inner block ensures that the reference count is as expected
+
+Wed Aug 03 09:35:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * tests/Process_Manual_Event_Test.cpp:
+ Added additional tests for lacking PSHARED support.
+
+Sat Jul 30 10:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_other_tests.lst:
+ Added missing semi colon for CosEvent basic test
+
+Fri Jul 29 14:25:12 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/config-aix-5.x.h: Disable ACE_HAS_POSIX_SEM if the Posix
+ flags indicate its presence but _XOPEN_SOURCE is not >= 500.
+
+ * tests/run_test.pl: When looking for sub-log files, match the program
+ name only at the start. Prevents finding, for example,
+ Process_Manual_Event_Test-child.log when looking for
+ Manual_Event_Test-*.log.
+
+Fri Jul 29 14:26:37 2005 Simon McQueen <sm@prismtech.com>
+
+ * bin/tao_other_tests.lst:
+
+ Scheduled TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl to be
+ run on all not minimum or single threaded builds.
+
+Fri Jul 29 09:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * apps/JAWS2/JAWS/Filecache.cpp:
+ * apps/JAWS2/JAWS/IO.cpp:
+ * apps/JAWS2/JAWS/IO_Handler.cpp:
+ Fixed compile errors when building with Borland C++. I have created
+ an MPC file but find it too risky to add that just before the
+ release, will do that when the release is out.
+
+ * ace/Global_Macros.h:
+ When ACE_EXPLICIT_TEMPLATE_DESTRUCTOR_TAKES_ARGS is defined, define
+ a special version of ACE_DES_FREE_TEMPLATE3 and
+ ACE_DES_FREE_TEMPLATE4 just as we do for ACE_DES_FREE_TEMPLATE and
+ ACE_DES_FREE_TEMPLATE2.
+
+ Thanks to Olivier Gu�in <guerin35 at hotmail dot com>
+ for reporting this.
+
+Fri Jul 29 07:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/platform_cray.GNU:
+ * include/makeinclude/platform_freebsd.GNU:
+ * include/makeinclude/platform_hpux.GNU:
+ * include/makeinclude/platform_hpux_gcc.GNU:
+ * include/makeinclude/platform_irix5.3_g++.GNU:
+ * include/makeinclude/platform_irix6.x_g++.GNU:
+ * include/makeinclude/platform_irix6.x_kcc.GNU:
+ * include/makeinclude/platform_linux_borland.GNU:
+ * include/makeinclude/platform_m88k.GNU:
+ * include/makeinclude/platform_mvs.GNU:
+ * include/makeinclude/platform_netbsd.GNU:
+ * include/makeinclude/platform_openbsd.GNU:
+ * include/makeinclude/platform_osf1_3.2_cxx.GNU:
+ * include/makeinclude/platform_osf1_4.x_kcc.GNU:
+ * include/makeinclude/platform_sco5.0.0-CC-fsu-pthread.GNU:
+ * include/makeinclude/platform_sco5.0.0-fsu-pthread.GNU:
+ * include/makeinclude/platform_sco5.0.0-mit-pthread.GNU:
+ * include/makeinclude/platform_sco5.0.0-nothread.GNU:
+ * include/makeinclude/platform_tandem.GNU:
+ * include/makeinclude/platform_vxworks5.5.x.GNU:
+ * include/makeinclude/platform_win32_interix.GNU:
+ Updated location for libraries from $ACE_ROOT/ace to
+ $ACE_ROOT/lib. Thanks to Ian Zagorskih
+ <ianzag at megasignal dot com> for reporting this.
+ This fixes bugzilla 2202
+
+Thu Jul 28 13:59:11 2005 Simon McQueen <sm@prismtech.com>
+
+ * bin/tao_other_tests.lst:
+
+ Added !MINIMUM to Bug_1630_Regression test. It needs the IFR.
+
+Thu Jul 28 01:46:40 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Cache_Map_Manager_T.cpp:
+ * ace/Cache_Map_Manager_T.inl:
+ * ace/MEM_SAP.cpp:
+ * ace/MEM_SAP.inl:
+ * ace/Map_T.cpp:
+ * ace/Map_T.inl:
+ * ace/Signal.cpp:
+ * ace/Signal.inl:
+
+ Moved virtual destructors in exported classes out of line.
+ Addresses RTTI problems when the using g++ 4.0 hidden visibility
+ for inline functions feature.
+
+Thu Jul 28 00:28:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Array_Map.cpp:
+ * ace/Array_Map.h:
+ * ace/Array_Map.inl:
+
+ Added third equality functor template parameter. Defaults to
+ std::equal_to<> if unspecified. Necessary for cases where
+ operator==() is not suitable or available for a given key type.
+
+ (erase):
+
+ Explicitly destroy the tail element by assigning a default
+ constructed value_type instance to it. Prevents duplicate
+ instances of erase()d elements from existing. Some applications
+ may assume that erased elements no longer exist. This
+ essentially disables the lazy destruction behavior of
+ ACE_Array_Map. Note that this change also applies to the case
+ of a map of size 1.
+
+ * ace/Refcountable.cpp:
+ * ace/Refcountable.inl:
+
+ Moved ~ACE_Refcountable() virtual destructor out of line.
+ Addresses RTTI issues when g++ 4.0 hidden visibility of inlined
+ functions is enabled.
+
+ * ace/config-lite.h:
+
+ Disable use of ACE_RCSIDs by default. Most users never need to
+ determine the RCS ID of a given object file in an ACE-based
+ binary so optimize for the common case. Also reduces
+ footprint.
+
+ * tests/Array_Map_Test.cpp:
+
+ Added reference count test to verify that the number of
+ references/copies of a given data element drop by the same
+ amount as was increased during insertion.
+
+Wed Jul 27 16:33:46 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * ace/config-tandem-nsk-mips-v3.h:
+
+ Add #define for ACE_ANY_OPS_USE_NAMESPACE
+
+Mon Jul 25 19:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Naming_Test.cpp:
+ Initialise pointer with 0
+
+Mon Jul 25 15:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Timer_Hash_T.cpp:
+ Initialise some pointers with 0
+
+ * ace/Refcountable.h:
+ Removed some empty doxygen tags
+
+ * ace/Naming_Context.cpp:
+ Removed not needed ACE_UNUSED_ARG
+
+Sat Jul 23 16:36:36 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
+
+ * bin/ciao_tests.lst:
+
+ enabled running CIAO NodeApplicationTest again.
+
+Fri Jul 22 16:31:29 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Basic_Types.h: The change from:
+ Fri Jul 8 15:42:18 2005 Steve Huston <shuston@riverace.com>
+ turned a previous warning into an error on newer g++ versions.
+ Instead, moved the __hi_lo struct definition out of the
+ anonymous union and renamed it to not be a compiler-private name
+ (with 2 leading underscores). This should resolve all the
+ issues. Thanks to Simon Massey for figuring this out.
+
+Fri Jul 22 11:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/ciao_server_dnc.mpb:
+ Add naming as base project, CIAO_DnC_Server has this
+ also
+
+Fri Jul 22 09:30:00 UTC 2005 Simon Massey <sma@prismtech.com>
+
+ * tests/run_test.lst:
+ Don't run Process_Manual_Event_Test on HPUX
+
+Thu Jul 21 10:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Don't run Bug_2174_Regression in a minimum corba build
+
+Thu Jul 21 09:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Atomic_Op_T.h:
+ Use deprecate tag for deprecated methods
+
+Thu Jul 21 09:24:58 2005 Simon McQueen <sm@prismtech.com>
+
+ * bin/ciao_tests.lst:
+
+ Descheduled the 3 TAO/CIAO/DAnCE/tests/NodeApplicationTest
+ tests. They fail and there have been no responses to
+ requests that they be fixed.
+
+Wed Jul 20 06:45:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * bin/msvc_static_order.lst:
+
+ Added Ds{Event,Notify}LogAdmin_{IDL,Skel,Serv} --- just to
+ be safe.
+
+Wed Jul 20 09:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * protocols/ace/RMCast/Makefile.am:
+ Added new files
+
+Wed Jul 20 08:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/auto_run_tests.pl:
+ Check for result != 0 instead of result > 0. It seems that when
+ a run_test.pl has been added from a windows box that it sometimes
+ doesn't get execute permission and then the script can't be
+ executed on Unix systems. The return value is then -1 and this
+ wasn't detected by the scripts
+
+Wed Jul 20 07:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/msvc_static_order.lst:
+ Added DsLogAdmin_IDL
+
+Tue Jul 19 14:24:47 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * bin/PerlACE/Process_Unix.pm:
+
+ Append command line arguments based on ACE_RUNTEST_ARGS
+ environment variable.
+
+ * ace/config-tandem-nsk-mips-v3.h:
+
+ Adjust platform specific macros
+
+Tue Jul 19 19:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Log_Record.cpp:
+ Reverted part of the change below. Not all platforms have snprintf,
+ just use sprintf, all platforms have that. Fixes problems with
+ VxWorks
+ Thu Jul 14 12:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+Tue Jul 19 14:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Added new Register_Initial_References test. This will fail in
+ all builds, it seems we have some bugs to fix
+
+Tue Jul 19 12:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Added new recursive ORBInitializer test
+
+Tue Jul 19 11:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Enable Bug_2088, rewrote this test to test the current functionality
+ which matches the draft 3.1 spec. The Corba 3.0.3 seems to be not
+ usable.
+
+Tue Jul 19 10:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_fcntl.cpp:
+ * ace/OS_NS_sys_mman.inl:
+ When returning an ACE_HANDLE return ACE_INVALID_HANDLE instead
+ of -1 as error
+
+Mon Jul 18 18:21:20 2005 Steve Huston <shuston@riverace.com>
+
+ * NEWS: Added ACE_OS::closesocket() and Solaris 10 notes.
+
+Mon Jul 18 12:11:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * bin/msvc_static_order.lst:
+
+ Add CosNaming_IDL, CosTrading_IDL, and CosNotification_IDL
+ projects to list.
+
+Mon Jul 18 11:42:09 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm:
+
+ Revived the old style where each GNUmakefile has individual
+ targets that contain the necessary dependencies. To utilize this
+ you must set the MPC_GNUACE_NAMED_TARGETS environment variable.
+
+Mon Jul 18 09:08:01 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * bin/tao_orb_tests.lst:
+
+ Added OBV/ValueBox the list of tests. This is a new test
+ to exercise boxed value types.
+
+Mon Jul 18 15:51:04 2005 Simon McQueen <sm@prismtech.com>
+
+ * ace/OS_NS_Thread.cpp:
+
+ Removed unreachable statements identified by HP non stop
+ MIPS build warnings.
+
+Mon Jul 18 09:21:14 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * NEWS:
+
+ Took out TAO-specific comments.
+
+Mon Jul 18 13:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Mem_Map.cpp:
+
+ Reverted the change below, it causes problems on AIX and Solaris. It
+ seems that on AIX we now use ACE_OS::open for shared memory, with the
+ change below we use ACE_OS::shm_open but this fails for strange
+ reasons and I have no idea what the problem is at this moment. So
+ revert this until Martin is back from his vacation
+
+ Tue Jul 05 21:40:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+ Changed to consistently use ACE_OS::shm_open/ACE_OS::shm_unlink.
+
+Mon Jul 18 13:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * html/index.html:
+ Update link for DAnCE
+
+Mon Jul 18 15:02:58 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Acknowledge.cpp:
+ * protocols/ace/RMCast/Fragment.cpp:
+ * protocols/ace/RMCast/Link.cpp:
+ * protocols/ace/RMCast/Reassemble.cpp:
+
+ Fixed a bunch of warnings.
+
+Mon Jul 18 08:00:35 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * NEWS:
+
+ Added comments regarding TAG_ALTERNATE_IIOP_ADDRESS and
+ refactored codeset negotiation support.
+
+Mon Jul 18 10:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/MMAP_Memory_Pool.cpp (init_acquire):
+ Added class name to the error messages and print the method
+ name.
+
+ * ace/SString.cpp:
+ Initialise pointers with 0
+
+Mon Jul 18 11:33:23 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * NEWS:
+
+ Updated with the latest achievements in RMCast.
+
+Mon Jul 18 08:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/make_release:
+ Removed exclude of asnmp.mwc, this file has been zapped
+
+Fri Jul 15 16:35:37 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * bin/MakeProjectCreator/config/global.features:
+ * bin/MakeProjectCreator/config/negotiate_codesets.mpb:
+ * bin/MakeProjectCreator/config/taoclient.mpb:
+ * bin/MakeProjectCreator/config/taoserver.mpb:
+
+ Added a new feature, negotiate_codesets. Disabled by default,
+ but when enabled in default.features or on the mpc/mwc command
+ line adds TAO_Codeset to the project's libs list. Dynamically
+ linked applications do not need to do anything, the libary will
+ be dynamically loaded if needed by the ORB. Static applications
+ must enable this feature. Merely enabling is not sufficient, to
+ actually make use of the codeset code, they must also include
+ tao/Codeset/Codeset.h somewhere in their application. Enabling
+ the mpc feature without including the header will not cause any
+ code to be statically linked. Enabling the feature with dynamic
+ applications will add a dependency on the TAO_Codeset library
+ regardless of the use of the code.
+
+Fri Jul 15 08:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/make_release:
+ Also exclude ASNMP/asnmp.mwc when generating the em3 project files.
+ Thanks to Sam Mesh <sam dot mesh at gmail dot com> for reporting
+ this. This fixes bugzilla bug 2190.
+
+Thu Jul 14 12:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Log_Record.cpp:
+ Fixed compile error in previous committed caused when merging
+ changes from one system to another
+
+Thu Jul 14 12:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_stdio.cpp (sprintf wchar):
+ ULONG_MAX was passed, this caused vswprintf to return always -1
+ because ULONG_MAX is of course really large on a 64bit system.
+ Pass 4096 instead, just as done with the other vswprintf in
+ OS_NS_stdio.inl.
+
+ * ace/Log_Record.cpp:
+ Use snprintf because we know the sizes of the buffer, this way
+ we don't call the method above that caused problems on 64bit
+ systems. This fixes bugzilla 2176.
+
+Thu Jul 14 09:31:55 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Flow.cpp:
+
+ Fixed fuzz error over math.h inclusion.
+
+Wed Jul 13 22:12:12 UTC 2005 Gan Deng <gan.deng@vanderbilt.edu>
+
+ * etc/ciao_DAnCE.doxygen
+
+ Added "RECURSIVE=YES" so source files could be found correctly
+ Also added excluded path option for CIAO examples and tests.
+
+Wed Jul 13 17:10:45 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * bin/MakeProjectCreator/config/codeset.mpb:
+
+ A new base project for use when creating codeset translators or
+ any other code that must depend on the new library, TAO_Codeset.
+
+Wed Jul 13 12:42:57 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/tao_other_tests.lst:
+
+ Due to the way that the ORB is coded such that it does not require
+ the IFR_Client library at link time, the InterfaceRepo/Application
+ test can not run on static builds (even though the client has the
+ IFR_Client library linked in).
+
+Wed Jul 13 12:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Process_Semaphore_Test.cpp:
+ Fixed compile error in previous change
+
+Wed Jul 13 07:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Process_Semaphore_Test.cpp:
+ Only test timeouts when ACE_HAS_POSIX_SEM_TIMEOUT is defined
+
+Wed Jul 13 07:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/config-sunos5.5.h:
+ Added include of config-posix.h, let this file try to sort out
+ which posix parts Sun delivers
+
+ * ace/config-sunos5.6.h:
+ Sun 5.6 incorrectly reports that it has shm_open
+
+Wed Jul 13 07:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Process_Semaphore.cpp:
+ Removed commented out explicit template instantiations
+
+ * ace/Containers_T.h:
+ Small doxygen fix
+
+Tue Jul 12 22:59:12 UTC 2005 Gan Deng <gan.deng@vanderbilt.edu>
+
+ * html/index.html:
+
+ Fixed a typo which was introduced in this HTML file for
+ my earlier checkin.
+
+Tue Jul 12 16:17:38 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu> t
+
+ * Updated all the COPYING files to reflect the revised DOC
+ software open-source license. Thanks to Angela Ziegenhorn
+ <Angela.Ziegenhorn@veritas.com> for these modifications.
+
+Tue Jul 12 18:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Thread_Manager.cpp (remove_thr_all):
+ Don't just delete each Thread_Descriptor, but call remove_thr
+ for each Thread_Descriptor, this method will add the descriptor
+ to the freelist and handle all other cleanup actions. Fixes
+ some invalid reads we found in some RTCorba tests
+
+Tue Jul 12 17:15:00 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Flow.cpp:
+ * protocols/ace/RMCast/Protocol.h:
+
+ Added missing includes.
+
+Tue Jul 12 14:46:53 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Parameters.h:
+
+ Forgot to add this file for Mon Jul 11 20:08:51 2005.
+
+Mon Jul 11 12:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/config-win32-msvc-8.h:
+ Only define ACE_HAS_SIG_ATOMIC_T when not building for WinCE.
+ Thanks to Mitscher Dubreus <ofup at voila dot fr> for reporting
+ this.
+
+Mon Jul 11 12:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Thread_Manager.inl:
+ Initialise pointer with 0
+
+Mon Jul 11 20:08:51 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Flow.cpp:
+ * protocols/ace/RMCast/Flow.h:
+
+ Implemented flow control stack element.
+
+ * protocols/ace/RMCast/Acknowledge.cpp:
+ * protocols/ace/RMCast/Acknowledge.h:
+ * protocols/ace/RMCast/Fragment.cpp:
+ * protocols/ace/RMCast/Fragment.h:
+ * protocols/ace/RMCast/Link.cpp:
+ * protocols/ace/RMCast/Link.h:
+ * protocols/ace/RMCast/Protocol.h:
+ * protocols/ace/RMCast/Reassemble.cpp:
+ * protocols/ace/RMCast/Reassemble.h:
+ * protocols/ace/RMCast/Retransmit.cpp:
+ * protocols/ace/RMCast/Retransmit.h:
+ * protocols/ace/RMCast/Socket.cpp:
+ * protocols/ace/RMCast/Socket.h:
+
+ Made protocol parameters configurable on a per-instance
+ basis.
+
+ * protocols/examples/RMCast/Send_Msg/Protocol.h:
+ * protocols/examples/RMCast/Send_Msg/Receiver.cpp:
+
+ Made receiver print throughput information.
+
+Mon Jul 11 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_Thread.h:
+ Doxygen improvements
+
+Mon Jul 11 08:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Added Bug_2174_Regression to the list of tests. It will fail
+ until the fix for this bug is in the archive
+
+Sun Jul 10 23:24:12 UTC 2005 Gan Deng <gan.deng@vanderbilt.edu>
+
+ * etc/DAnCE.doxygen:
+
+ Added doxygen configuration file for DAnCE.
+
+Sat Jul 9 06:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_Thread.h:
+ Doxygen improvements
+
+Sat Jul 9 06:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_Thread.inl (thr_cancel):
+ Fixed VxWorks implementation. Thanks to Abhijit Sachdev <abhi
+ at qualcomm dot com> for motivating this fix.
+
+Fri Jul 8 15:42:18 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Array_Map.h: Extended the range of Sun C++ compilers not
+ providing a fully standards-compliant STL to include C++ 5.7
+ (Studio 10). To include a compliant STL would break backward
+ binary compatibility with C++ 5.0 - 5.6, so Sun won't (yet)
+ do it. They do, however, include Stlport 4 with C++ 5.7. You can
+ enable this by building ACE with stlport=1.
+
+ * ace/Basic_Types.h (ACE_ULongLong): Added a name to the anonymous
+ struct declared in the anonymous union. Silences a warning from
+ Sun Studio 10.
+ Added __amd64 to the "little endian" machine indicators. Corrects
+ this check for Solaris 10 x86.
+
+ * ace/config-sunos5.10.h: Noted that Studio 10 (C++ 5.7) works
+ as well.
+
+ * include/makeinclude/platform_sunos5_sunc++.GNU: If -fast is required,
+ be sure it goes to the left of any -xarch options on the command
+ line, else it'll override -xarch. Also, added support for building
+ with stlport=1 on Studio 10 (C++ 5.7).
+
+ * tests/CDR_Array_Test.cpp: When saying "Data OK", print type
+ name (%s), not truncated pointer (%d).
+
+Fri Jul 8 12:37:15 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/QoS/SOCK_Dgram_Mcast_QoS.cpp (subscribe): Added checks
+ to guard against cases where the qos_session is NULL. Thanks to
+ Dom Monteiro <d dot monteiro at netia dot net> and Yamuna for
+ isolating the problem.
+
+Fri Jul 8 09:52:02 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm:
+
+ Utilize the MakeProjectBase to minimize the code in this module.
+
+Fri Jul 8 11:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_Thread.inl (thr_cancel):
+ Added implementation for VxWorks.
+
+Fri Jul 8 08:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_string.cpp:
+ Added include of OS_NS_stdio.h when ACE_LACKS_STRERROR is not
+ defined
+
+Thu Jul 7 18:11:29 2005 Steve Huston <shuston@riverace.com>
+
+ * configure.ac:
+ * ace/README:
+ * ace/config-WinCE.h:
+ * ace/config-mvs.h:
+ * ace/config-openvms.h:
+ * ace/config-psos-diab.h:
+ * ace/config-psos-diab-mips.h:
+ * ace/config-psos-diab-ppc.h:
+ * ace/config-psos-tm.h:
+ * ace/config-psosim-g++.h:
+ * ace/config-rtems.h:
+ * ace/config-sunos5.7.h:
+ * ace/config-tandem-nsk-mips-v2.h:
+ * ace/config-tandem-nsk-mips-v3.h:
+ * ace/config-vxworks5.x.h:
+ * ace/config-win32-interix.h:
+ * ace/config-win32-visualage.h:
+ * ace/OS_NS_string.{h cpp}:
+ * m4/config_h.m4: Removed all references to sys_nerr and
+ ACE_LACKS_SYS_NERR. These are old, hacky ways to check things
+ that can be done better (see below).
+
+ * ace/OS_NS_string.{h cpp} (strerror): Check for an invalid errnum
+ value by checking the return value of strerror(); supply a
+ "Unknown error %d" message if it's bad, and set errno to EINVAL.
+
+ * ace/Log_Msg.cpp (log): Use ACE_OS::strerror() and its new return
+ value to check for the need to try another way to format 'p' and
+ 'm' messages. Windows is now the only special case.
+
+ * ace/Select_Reactor_Base.cpp: Include "Timer_Queue.h" instead of
+ "Timer_Heap.h" to get the appropriate definitions and inclusion of
+ other needed headers; in this case, Recursive_Thread_Mutex.h. Fixes
+ compile errors on Solaris 10.
+
+ * include/makeinclude/platform_sunos5_sunc++.GNU: Changed -xarch= from
+ v9 to generic64 when using "buildbits=64" on Sun Studio 10
+ (C++ 5.7). This works for both Sparc and x86 architectures.
+
+Thu Jul 7 17:24:21 2005 Simon McQueen <sm@prismtech.com>
+
+ * bin/tao_orb_tests.lst:
+
+ Scheduled regression test for bugzilla #2183.
+
+Thu Jul 7 09:27:56 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+
+ Modified the template code to avoid generating lines that end in
+ spaces.
+
+Thu Jul 7 09:11:23 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/Message_Block.cpp: Changed the order of the #includes
+ to work around a problem when ACE is used with STLport. Thanks
+ to Alvin Lee for reporting this. This fixes another part of
+ bugid 2185.
+
+Tue Jul 5 22:05:19 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/DLL.cpp: Fixed a problem with ACE_DLL::close() where
+ the dll_name_ might not be deleted if dll_handle_ was 0. Thanks
+ to Alvin Lee <alvin.msg@gmail.com> for reporting this. This
+ fixes the first part of bugid 2185.
+
+Tue Jul 5 18:13:29 2005 Steve Huston <shuston@riverace.com>
+
+ * ACE-INSTALL.html: Removed Windows CE from the platforms Riverace
+ supports and added links to some Riverace pages.
+
+Tue Jul 05 21:40:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/Mem_Map.cpp:
+ Changed to consistently use ACE_OS::shm_open/ACE_OS::shm_unlink.
+
+Tue Jul 05 21:15:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread{.h .inl .cpp}:
+ Fixes for compile problems in MACOS_X_Panther build.
+
+ Outlined ACE_OS::cond_init() to gain some footprint reduction.
+
+Tue Jul 5 18:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_netdb.cpp (getmacaddress): Some layout fixes and
+ also fixed a handle leak in the Sun part. Thanks to
+ <likemartinma at 163 dot com> for reportint this. This fixes
+ bugid 1875
+
+Tue Jul 5 08:30:07 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/OS_NS_netdb.cpp (getmacaddress): Call close() to avoid
+ a handle leak. Thanks to W.M. van den Boogaard <wim dot vd dot
+ boogaard at meco dot nl> for reporting this fix. This fixes
+ bugid 2182.
+
+Mon Jul 04 21:08:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/INET_Addr.h:
+ * ace/INET_Addr.cpp:
+ Added support for specifying interface ids for IPv6 Link Local
+ addresses either as part of the address (<ip>'%'<interface id>)
+ separately through ACE_INET_Address::set_interface().
+ Straightened out differences between Windows and Linux.
+ ACE_INET_Address::get_host_addr() now returns <ip>'%'<interface
+ id> formatted address when appropriate both on Windows
+ (natively) and Linux (ACE). Thanks to Srikanth Gopal
+ <sriki_666@yahoo.com> for reporting this problem.
+
+Mon Jul 4 04:21:53 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Array_Map.h (ACE_Array_Map):
+
+ Work around non-standard compliant Sun C++
+ std::reverse_iterator<> template arguments. Define a typedef
+ specific to Sun C++ 5.5 or earlier.
+
+Sun Jul 3 14:59:25 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * examples/APG/Config/Makefile.am:
+
+ Regenerate.
+
+Sun Jul 03 18:40:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * include/makeinclude/rules.lib.GNU:
+ Addition for VxWorks shared lib build.
+
+ * include/makeinclude/platform_vxworks5.5.x.GNU:
+ Some cleanup and changes for shared lib builds.
+
+Fri Jul 01 14:40:25 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * ace/config-tandem-nsk-mips-v3.h:
+ * ace/config-tandem-nsk-mips-v2.h:
+ Defined platform specific format specifiers for 64 bit integers
+
+Fri Jul 1 12:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/config-doxygen.h:
+ Added ACE_HAS_IPV6
+
+Fri Jul 1 11:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/interceptors.mpb
+ Don't use pi as base lib.
+
+ * bin/MakeProjectCreator/config/iorinterceptor.mpb
+ * bin/MakeProjectCreator/config/loadbalancing.mpb
+ * bin/MakeProjectCreator/config/rtscheduling.mpb:
+ * bin/MakeProjectCreator/config/fault_tolerance.mpb
+ * bin/MakeProjectCreator/config/ftclientorb.mpb
+ Added pi and pi_server as base projects when needed
+
+Fri Jul 1 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/templates/bor.mpd:
+ Added support for StackReserveSize and StackCommitSize
+ template variables.
+
+Wed Jun 29 13:58:17 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/OS_NS_Thread.cpp:
+
+ Somehow my previous checkin had many other differences besides the
+ simple change that I made. I've remerged the corresponding code
+ from the previous version, but I have no idea how the change
+ happened.
+
+Wed Jun 29 18:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Default_Constants.h:
+ Removed ACE_CONNECTOR_HANDLER_MAP_SIZE, it is not used at all
+ anywhere in the repo. Found this when solving a problem with
+ OpenVMS
+
+Wed Jun 29 12:33:18 2005 Steve Huston <shuston@riverace.com>
+
+ * examples/APG/Config/config.mpc:
+ * examples/APG/Config/Makefile.am:
+ * examples/APG/Config/HA_Status.cpp: Simplify greatly to build
+ HA_Status as a simple executable, not a DLL. Thanks to Gavin Yu
+ <songtaoyu at lucent dot com> for noticing this problem.
+
+ * examples/APG/Config/HA_Status.h: Removed.
+
+ * THANKS: Added Gavin Yu to the Hall of Fame.
+
+ * ace/Timer_Heap_T.cpp (dtor): When cleaning out the timer nodes,
+ free_node() before doing the deletion() upcall. Prevents a user's
+ handle_close() from doing a cancel_timer() and ripping the current
+ timer node out from under us and causing free_node() to assert().
+
+Wed Jun 29 10:43:11 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/OS_NS_Thread.cpp:
+
+ Port the ACE_DISABLE_WIN32_INCREASE_PRIORITY feature from earlier
+ OCI versions of ACE, so that a user can disable the setting of a
+ thread to the realtime priority class. This prevents hard lockups
+ of Windows machines when running as an administrator, and allows
+ many tests to function when not running as an admin.
+
+Tue Jun 28 20:58:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * bin/MakeProjectCreator/config/core.mpb:
+
+ inherit from new install base project for backwards compatibility.
+
+ * bin/MakeProjectCreator/config/conv_lib.mpb:
+ * bin/MakeProjectCreator/config/install.mpb:
+ * bin/MakeProjectCreator/config/install_bin.mpb:
+ * bin/MakeProjectCreator/config/install_headers.mpb:
+ * bin/MakeProjectCreator/config/install_lib.mpb:
+
+ New new base projects to offer more flexibility on what parts of
+ a project are installed. install_bin, install_lib, and install_
+ headers install binaries, libraries, and header files. install
+ installs everything. conv_lib is for "convenience libraries", a
+ set of objects that is packaged as a library for the developer's
+ convenience. For most builds it builds a shared library that is
+ installed without the cooresponding headers; but the automake
+ build uses automake's native convenience library support --- a
+ static library is built and linked into the executable(s).
+
+Tue Jun 28 08:41:03 2005 Ming Xiong <mxiong@tango.dre.vanderbilt.edu>
+
+ * bin/MakeProjectCreator/config/global.features
+
+ Added a new feature ziparchive which is needed by
+ CIAO/DAnCE/ComponentPackager
+
+Mon Jun 27 09:38:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/README:
+ Added documentation for ACE_USES_FIFO_SEM, ACE_HAS_LINUX_NPTL
+ and ACE_HAS_POSIX_SEM_TIMEOUT.
+
+Mon Jun 27 22:22:00 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Array_Map.h (ACE_Array_Map):
+
+ Added missing "const_pointer" typedef/trait.
+
+ * tests/Array_Map_Test.cpp (index_operator_test):
+
+ Work around compiler / STL implementations that cannot handle
+ implicit conversions from iterator to const_iterator (e.g. due
+ to missing template constructor) by accessing the iterators
+ through a reference to const a Map. We don't strictly need a
+ const Map for this test but having one allows us to exercise
+ const iterators.
+
+Mon Jun 27 21:54:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-linux-common.h:
+ Made inclusion of config-posix.h user selectable by defining
+ ACE_HAS_LINUX_NPTL rather than including it by default since
+ there are too many problems with that with the differences
+ in the various Linux distros.
+ Only with a Linux distro having the latest NPTL implemented
+ (SuSE 9.3) have I been able to effectively use POSIX macros.
+
+Mon Jun 27 20:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Codecs.cpp:
+ * ace/Configuration.cpp:
+ * ace/DLL_Manager.cpp:
+ * ace/Multihomed_INET_Addr.cpp:
+ * ace/OS_NS_stdlib.cpp:
+ * ace/Service_Config.cpp:
+ Within the ACE lib ACE_LIB_TEXT must be used instead of ACE_TEXT
+
+Mon Jun 27 12:26:15 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/Malloc_T.h: Updated the ACE_Malloc_T documentation to
+ mention the limitations with find()/bind(). Thanks to Hanson Lu
+ <suf_lu@yahoo.com> for reporting this.
+
+Mon Jun 27 10:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/rtcosscheduling.mpb:
+ Added requires dummy_label. The RTCosScheduling library uses
+ a non compliant way to register its interceptors. This is
+ causing problems with the PI refactory so disable the building
+ of this lib until that has been fixed. See also bugzilla 2163.
+
+Mon Jun 27 08:21:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread.cpp:
+ Change to protect against race condition in sema based Event
+ implementation.
+
+ * ace/OS_NS_Thread.inl:
+ Change in errno (EINTR) handling with FIFO based sema timedwait.
+
+Mon Jun 27 06:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Message_Queue_T.{h,cpp}:
+ Initialise pointers with 0 and removed work around for Sun CC 5.1,
+ we don't support that compiler already for years
+
+Mon Jun 27 01:03:12 2005 Stoyan Paunov <s.paunov@vanderbilt.edu>
+
+ * bin/MakeProjectCreator/config/global.features:
+ * MPC/config/global.features:
+ * MPC/config/ZIP_Wrapper.mpb:
+
+ Added a new feature to MPC regarding the ZIP_Wrappers used by
+ the Repository Manager. I added this feature to make sure the RM
+ would not be compiled unless the proper ZIP libraries are in place.
+ Please check the README in CIAO/DAnCE/new_RepositoryManager
+
+
+Sun Jun 26 22:29:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-posix.h:
+ Made test for POSIX_SEM TIMEOUTS more specific.
+
+ * ace/config-linux-common.h:
+ Added check to fix detection of POSIX_SEM TIMEOUTS for Linux
+ >= 2.6 because of crippled POSIX macros (moved here from
+ config-posix.h).
+ Made implementation of FIFO based Semaphores for Linux < 2.6
+ user selectable instead of default (default now back to
+ situation before I added FIFO based Semaphores).
+
+ * ace/OS_NS_Thread{.h .cpp .inl}:
+ Added support for Process shared Events when Process shared
+ pthread mutexes are not supported but FIFO Sems are configured.
+ Fixed several issues concerning correct errno handling in
+ case of timeouts.
+
+ * tests/run_test.lst:
+ Added missing Manual_Event_Test.
+
+ * tests/Process_Manual_Event_Test.cpp:
+ * tests/Process_Semaphore_Test.cpp:
+ Improved protection against non-supporting builds.
+
+ * tests/Dirent_Test.cpp:
+ Made this test a little less braindead so it does not recognize
+ FIFOs and PIPEs as directories anymore and tries chdir() on
+ them which is quite annoying.
+
+Sat Jun 25 01:42:22 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Array_Map.h:
+
+ MSVC++ 6's reverse_iterator adapter implementation is not
+ standard's compliant. Adjusted reverse_iterator template
+ parameters accordingly for this one case (i.e. _MSC_VER <=
+ 1200).
+
+ * ace/Array_Map.cpp (insert):
+
+ MSVC++ 6 doesn't like the "typename" qualification in the first
+ template argument to the std::pair<> return type. Removed it in
+ for the _MSC_VER <= 1200 case.
+
+ * tests/Array_Map_Test.cpp:
+
+ MSVC++ 6 doesn't pick up the const rbegin/rend() methods without
+ making the map object const, despite the fact the return value
+ is assigned to a const_reverse_iterator. Work around the
+ problem by casting the non-const map instance to a reference to
+ a const map when _MSC_VER <= 1200.
+
+Fri Jun 24 22:49:16 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * protocols/ace/RMCast/Makefile.am:
+
+ Regenerated.
+
+Fri Jun 23 19:58:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread.inl:
+ Added include for non-inline builds.
+
+Fri Jun 23 19:38:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread.h:
+ Removed extra semi-colon.
+
+Fri Jun 23 19:36:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * tests/Process_Manual_Event_Test.cpp:
+ * tests/Process_Semaphore_Test.cpp:
+ Added protection for singlethread builds.
+
+Fri Jun 24 11:42:43 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ACE-INSTALL.html:
+
+ Added notes about testing and developing autotool support, and
+ how to bootstrap that support into a workspace.
+
+Fri Jun 24 11:36:26 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Array_Map.cpp:
+ * ace/Array_Map.inl:
+
+ Added missing "typename" keyword before template parameter
+ dependent types. Addresses VC++ 7.1/8 and Sun CC++ compile-time
+ warnings and errors.
+
+Fri Jun 24 11:02:06 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/PerlACE/Process_Win32.pm:
+
+ Fixed this module to work with the ACE_TEST_WINDOW environment
+ variable that I added some time back.
+
+Fri Jun 23 13:36:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread.cpp:
+ Fixed unused 'result' variable in ACE_OS::event_init().
+
+Fri Jun 23 13:00:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * tests/Process_Manual_Event_Test.cpp:
+ * tests/Process_Semaphore_Test.cpp:
+ Fixes for compile errors on Linux 64bit.
+
+Fri Jun 23 10:20:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread.inl:
+ Made sure ETIME is always returned on timeouts of
+ ACE_OS::sema_timedwait and not ETIMEDOUT.
+
+ * tests/Semaphore_Test.cpp:
+ Extended platform coverage of timeout tests.
+
+ * tests/Auto_Event_Test.cpp:
+ * tests/Manual_Event_Test.cpp:
+ * tests/Process_Manual_Event_Test.cpp:
+ * tests/Process_Semaphore_Test.cpp:
+ * tests/run_test.lst:
+ * tests/tests.mpc:
+ Added new tests.
+
+Fri Jun 23 09:17:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * tests/INET_Addr_Test_IPV6.cpp:
+ * tests/Multihomed_INET_Addr_Test_IPV6.cpp:
+ * tests/SOCK_Send_Recv_Test_IPV6.cpp:
+ * tests/SOCK_Test_IPV6.cpp:
+ Fixed WCHAR compile problems.
+
+Fri Jun 23 08:49:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread{.h .cpp .inl}:
+ Extended ACE_OS::event_xxx implementation to support platforms
+ having either PThread support with Process Shared condition
+ variables or POSIX semaphores with named (process shared)
+ semaphore support or using the new FIFO based semaphores.
+ Fixed manual_reset implementation of condition based events
+ (event_pulse() did not work).
+
+Fri Jun 23 08:49:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-aix-4.x.h:
+ Fixed problems by incorrectly reported ACE_HAS_POSIX_SEM_TIMEOUT
+ by config-posix.h.
+
+Fri Jun 24 07:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/OS_NS_Thread.h:
+ Removed extra semi-colon.
+
+Thu Jun 23 22:24:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-linux-common.h:
+ Fixed typo (ACE_HAS_SHMOPEN should be ACE_HAS_SHM_OPEN).
+
+Thu Jun 23 17:14:39 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Dev_Poll_Reactor.cpp (schedule_timer, reset_timer_interval):
+ * ace/Select_Reactor_T.cpp (schedule_timer, reset_timer_interval):
+ * ace/WFMO_Reactor.inl (cancel_timer, schedule_timer, reset_timer_interval):
+ If timer_queue_ is 0, don't attempt to call through it. Instead,
+ return -1 with errno ESHUTDOWN for scheduling; return 0 for cancel.
+
+Thu Jun 23 12:10:16 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Array_Map.h:
+ * ace/Array_Map.inl:
+ * ace/Array_Map.cpp:
+
+ Map implementation that focuses on small footprint and fast
+ iteration. Search times are, however, linear (O(n)) meaning
+ that this map isn't suitable for large data sets that will be
+ searched in performance critical areas of code. Iteration over
+ large data sets, however, is faster than linked list-based maps,
+ for example, since spatial locality is maximized through the use
+ of contiguous arrays as the underlying storage.
+
+ * ace/Makefile.am:
+ * ace/ace.mpc:
+
+ Added new Array_Map.* source files.
+
+ * tests/Array_Map_Test.cpp:
+
+ Regression test for ACE_Array_Map.
+
+ * tests/Makefile.am:
+ * tests/run_test.lst:
+ * tests/tests.mpc:
+
+ Added new Array_Map_Test regression test.
+
+Thu Jun 23 07:49:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * ace/Logging_Strategy.cpp (init):
+
+ Changed to not delete output stream when wipeout_logfile_ is
+ set, as that may result in a double delete when ownership of
+ the new stream is transferred to this->log_msg_.
+
+ Changed to not delete existing output stream if a new one is
+ not been created.
+
+ Thanks to Mark Callaghan and Ossama Othman for assistance.
+
+Thu Jun 23 12:34:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-posix.h:
+ Fixed problems for single threading builds.
+
+Thu Jun 23 10:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * man/Makefile.am:
+ * man/man3/Makefile.am:
+ Removed these files because are also not part of the release
+
+Wed Jun 22 20:29:39 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/OS_NS_Thread.h:
+
+ Removed extra semi-colon. Fixes g++ 4.0 builds.
+
+Wed Jun 22 19:11:23 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * THANKS:
+
+ Added Mark Callaghan to the Hall of Fame.
+
+ * ace/Log_Msg.cpp (msg_ostream):
+
+ Close, do not delete, the file stream in the
+ ACE_LACKS_IOSTREAM_TOTALLY case, as is done in the
+ ~ACE_Log_Msg() destructor. Addresses memory management issues.
+ Thanks to J.T. Conklin and Mark Callaghan for pointing out the
+ problem and suggesting the fix.
+
+ Do not reset the ostream_ and delete_ostream_ attributes if
+ the pointer to ostream_ is equal to the ostream argument passed
+ to this method. Prevents premature destruction of the ostream.
+ Thanks to Mark Callaghan for suggesting this fix.
+
+Wed Jun 22 19:55:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread{.h .inl}:
+ Oops, fixed some more wchar problems.
+
+Wed Jun 22 19:16:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_sys_mman.inl:
+ * ace/OS_NS_Thread{.h .inl .cpp}:
+ * ace/INET_Addr.cpp:
+ * ace/SOCK_Dgram_Mcast.cpp:
+ Fixed wchar problems in arguments and variables.
+
+ * ace/config-linux-common.h:
+ Undef ACE_HAS_SHMOPEN after having included config-posix.h as
+ there are some things to check out here before really using
+ ::shm_open()!
+
+Wed Jun 22 09:25:12 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * ace/config-lite.h:
+ Added __TANDEM platform to ACE_UNUSED_ARG macro
+
+Wed Jun 22 12:24:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-posix.h:
+ Added test to set new macro ACE_HAS_POSIX_SEM_TIMEOUT when supported.
+
+ * ace/config-linux-common.h:
+ Added include for config-posix.h to test for more supported POSIX
+ functionality.
+ Added special test for Linux kernels < 2.6 because these falsely
+ report certain POSIX support while not having that in reality
+ (f.i. ACE_HAS_POSIX_SEM with ACE_HAS_POSIX_SEM_TIMEOUT).
+
+ * ace/config-lite.h:
+ Added test to undef (new) macro ACE_USES_FIFO_SEM (see below) when
+ other macro settings invalidate this one.
+
+ * ace/os_include/os_pthread.h:
+ Extended test to prevent definition of ACE_sema_t when ACE_USES_FIFO_SEM
+ is defined.
+
+ * ace/OS_NS_Thread{.h .inl .cpp}:
+ Added new implementation of ACE_OS::sema_XXX methods based on FIFOs
+ (derived from W. Richard Stevens, UNIX Network Programming V2)
+ active when !ACE_HAS_POSIX_SEM && ACE_USES_FIFO_SEM.
+ Offshoot of customer request for process shareable solution for Linux
+ 2.4.xx kernels.
+
+ Outlined most ACE_OS::mutex_XXX and ACE_OS::event_XXX methods resulting
+ in a) ~7 Kb footprint reduction (Linux 2.6) and b) lessened dependency
+ complexities allowing later introduction of another Event platform
+ emulation.
+
+
+Wed Jun 22 08:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/build_core_exe.bor:
+ * include/makeinclude/build_core_library.bor:
+ Removed these files, not used anymore
+
+Wed Jun 22 08:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/SOCK_Test_IPv6.cpp:
+ Fixed compile errors on Linux when ACE_HAS_IPV6 has been defined
+
+Wed Jun 22 07:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/SOCK_Dgram_Mcast.cpp:
+ Fixed compile errors on Linux when ACE_HAS_IPV6 has been defined
+
+ * include/makeinclude/compiler.bor:
+ No need anymore to include ace_flags.bor
+
+ * include/makeinclude/ace_flags.bor:
+ Removed this file, not needed anymore
+
+Tue Jun 21 18:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/compiler.bor:
+ Removed -a8 and -b from the compiler flags, this are the defaults
+ for the compiler, so no need to explicitly specify them. Thanks to
+ Chad about informing me that -b is the default.
+
+Tue Jun 21 07:30:58 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/config/global.mpb:
+
+ Set libpaths to '.' since libout is set to '.' as well.
+
+Mon Jun 20 20:07:45 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+
+ Support for the bug fix where the 'postcommand' wouldn't be
+ applied if there was more than one output file per input file.
+
+Mon Jun 20 16:45:39 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Asynch_IO.cpp: Added explicit template instantiations for
+ ACE_Refcounted_Auto_Ptr<ACE_Handler::Proxy, ACE_SYNCH_MUTEX>.
+
+Mon Jun 20 11:36:21 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/OS_NS_sys_socket.inl (closesocket): Removed the
+ ACE_OS::shutdown() call in an HP-UX block. Calling shutdown breaks
+ an often-used idiom in UNIX programming of forking a new process
+ to handle a connection and closing the handle in the parent. Doing
+ a shutdown() before close() initiates a TCP close even though there
+ are multiple handles to the same socket. Thanks to Doug Schmidt
+ and Howard Finer for the exchange that led to this change. This
+ reverts a change made earlier:
+ Thu Jan 1 17:56:31 2004 Steve Huston <shuston@riverace.com>
+
+Mon Jun 20 09:46:24 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+
+ Fixed a long standing bug where the libpath set in a Define_Custom
+ was not utilized.
+
+Mon Jun 20 15:35:42 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Acknowledge.cpp:
+ * protocols/ace/RMCast/Fragment.cpp:
+ * protocols/ace/RMCast/Link.cpp:
+ * protocols/ace/RMCast/Protocol.h:
+ * protocols/ace/RMCast/Reassemble.cpp:
+
+ Made code VC6-compatible.
+
+Mon Jun 20 11:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/bidir_giop.mpb:
+ Added pi as base project, this was implicitly in the past because
+ portableserver was based on pi.
+
+Mon Jun 20 10:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/portableserver.mpb:
+ The portableserver library is not dependent on pi anymore.
+ The new pi_server library is dependent.
+
+ * bin/MakeProjectCreator/config/ftrtevent.mpb:
+ * bin/MakeProjectCreator/config/ftrteventchannel.mpb:
+ * bin/MakeProjectCreator/config/ifrservice.mpb:
+ These projects use functionality of pi_server, so added that
+ as base project
+
+ * bin/MakeProjectCreator/config/rtportableserver.mpb:
+ * bin/MakeProjectCreator/config/messaging.mpb:
+ Added pi as base project, this was implicitly in the past because
+ portableserver was based on pi.
+
+Fri Jun 17 17:37:53 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
+
+ * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb:
+
+ Added header_outputext to clean up the generated header files on
+ request.
+
+Fri Jun 17 17:22:13 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Acknowledge.cpp:
+ * protocols/ace/RMCast/Acknowledge.h:
+ * protocols/ace/RMCast/Fragment.cpp:
+ * protocols/ace/RMCast/Fragment.h:
+ * protocols/ace/RMCast/Link.cpp:
+ * protocols/ace/RMCast/Protocol.cpp:
+ * protocols/ace/RMCast/Protocol.h:
+ * protocols/ace/RMCast/Reassemble.cpp:
+ * protocols/ace/RMCast/Reassemble.h:
+ * protocols/ace/RMCast/Retransmit.cpp:
+ * protocols/ace/RMCast/Retransmit.h:
+ * protocols/ace/RMCast/Simulator.h:
+ * protocols/ace/RMCast/Socket.cpp:
+ * protocols/ace/RMCast/Socket.h:
+
+ Implemented message fragmentation.
+
+ * protocols/examples/RMCast/Send_Msg/Protocol.h:
+ * protocols/tests/RMCast/Protocol.h:
+ * protocols/tests/RMCast/Sender.cpp:
+
+ Changed to send messages that would require fragmentation.
+
+Fri Jun 17 09:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/pi_server.mpb:
+ New base project for pi_server. Will contain all needed portable
+ interceptor functionality specific for the server side
+
+Fri Jun 17 08:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Object_Manager.cpp:
+ Removed comment about very old gcc version
+
+ * ace/Service_Config.h:
+ Added new ACE_DYNAMIC_SERVICE_DIRECTIVE macro that makes it possible
+ to load a service using a process_directive call that works with the
+ normal service configurator and the xml based one. Thanks to
+ Lothar Werzinger <lothar at xcerla dot com> for providing this
+ new macro. We will use it then in TAO to load the services on
+ demand.
+
+Thu Jun 16 07:38:57 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/SOCK_Stream.cpp (close): Removed the call to this->close_writer()
+ since that functionality was done by ACE_SOCK::close(), which
+ delegates to ACE_OS::closesocket(), which handles this
+ automatically.
+
+ * ace/Process.cpp (running): Only try to "kill" a process if
+ the PID is valid. Thanks to Howard Finer <hfiner at sonusnet
+ dot com> for contributing this.
+
+ * ace/Pipe.h (ACE_Pipe): Updated the documentation for this class
+ to clarify why it uses sockets on Windows. Thanks to Dave
+ Varnell <Dave.Varvell@ni.com> for prompting this.
+
+ * ace/INET_Addr.cpp (set): Changed the test of
+
+ if (port_number < 0)
+
+ to
+
+ if (port_number == -1)
+
+ to fix problems reported by Vemund Handeland
+ <vemund.handeland@fantoft.no>
+
+Wed Jun 15 12:36:04 MST 2005 Trevor Fields <fields_t@ociweb.com>
+
+ * bin/PerlACE/Run_Test.pm:
+
+ Adding method to add a library path dynamically for the run test
+ scripts.
+
+Wed Jun 15 17:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/templates/bor.mpd:
+ reverse the libs, this solves a lot of problems in our static builds.
+
+Wed Jun 15 07:46:16 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * include/makeinclude/rules.bin.GNU:
+
+ Resurrected rules.bin.GNU as it may be required by old
+ hand-written makefiles.
+
+Wed Jun 15 07:36:14 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/bor.mpd:
+
+ Removed the use of uniq for libpaths. This was a work-around for
+ a bug in MPC which has been fixed.
+
+Wed Jun 15 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/templates/bor.mpd:
+ Removed reverse, with this no static initializers where called
+
+Wed Jun 15 09:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/templates/bor.mpd:
+ Use uniq for libpaths so that we don't generate things twice
+
+Wed Jun 15 09:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/templates/bor.mpd:
+ Reversed the order in which the libs are generated. This make sure
+ we first get the static created for ACE, then for TAO, etc. Fixes
+ the problems in the CBX static build
+
+Tue Jun 14 17:52:39 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Thread_Manager.h: Improved documentation for the task_list()
+ and task_all_list() methods.
+
+Tue Jun 14 14:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ACE-INSTALL.html:
+ Updated Borland build instructions
+
+Tue Jun 14 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Reactor_Timer_Interface.{h,cpp}:
+ Moved destructor to a new cpp file to fix Cygwin warnings
+
+ * ace/ace.mpc:
+ * ace/Makefile.am:
+ Added Reactor_Timer_Interface.cpp
+
+Tue Jun 14 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/IO_Cntl_Msg.{h,cpp,inl}:
+ Moved methods implemented in the header file to a new inl file.
+ Fixes warnings in the Cygwin build
+
+ * ace/ace.mpc:
+ * ace/Makefile.am:
+ Added IO_Cntl_Msg.cpp
+
+Tue Jun 14 11:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/auto_run_tests.pl:
+ Fixed typo in comment
+
+Tue Jun 14 08:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/interceptors.mpb:
+ * bin/MakeProjectCreator/config/portableserver.mpb:
+ * bin/MakeProjectCreator/config/rtcorba.mpb:
+ * bin/MakeProjectCreator/config/utils.mpb:
+ Added pi as base project
+
+Mon Jun 13 13:50:53 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
+
+ * bin/ciao_tests.lst:
+
+ Added the node application tests to the autobuilds.
+
+Mon Jun 13 18:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * performance-tests/SCTP/SOCK_STREAM_clt.cpp:
+ Fixed compile errors
+
+Mon Jun 13 13:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/make_release:
+ Don't do LF->CRLF conversion for xls files, that are Microsoft
+ Excel files. The RTCorba tests have such a file.
+
+Mon Jun 13 13:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/pi.mpb:
+ New base project for the new PI library we will add soon to the
+ archive. This PortableInterceptor libray will contain the
+ ORBInitializer Registry, Policy Factory Registry and ORBInitInfo
+ in the first version
+
+Mon Jun 13 12:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * performance-tests/SCTP/hist.{h,cpp}:
+ * performance-tests/SCTP/SOCK_SEQPACK_clt.cpp:
+ * performance-tests/SCTP/SOCK_STREAM_clt.cpp:
+ Moved the hist struct with associated methods to the ACE_SCTP
+ namespace. This should fix the last compile errors in Irix.
+ Thanks to Doug McCorkle <mccdo at iastate dot edu> for providing
+ the patches
+
+Mon Jun 13 10:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/kokyu_dsrt_scheduler_server.mpb:
+ * bin/MakeProjectCreator/config/kokyu_dsrt_scheduler.mpb:
+ Moved the codecfactory from the server to the normal project,
+ also the clients need it
+
+Sun Jun 12 14:53:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * ace/Logging_Strategy.cpp (parse_args):
+
+ Update comment to make it clear value is being converted from
+ number of KB to number of bytes.
+
+Sun Jun 12 12:48:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * include/makeinclude/platform_g++_common.GNU:
+ Fixed problem with GXX version detection when default Make
+ shell is CMD.EXE and problems with different version reports
+ with non-standard GCC implementations (like VxWorks:-).
+
+ * include/makeinclude/wrapper_macros.GNU:
+ Fixed problem with ACE version detection when default Make
+ shell is CMD.EXE.
+
+ * include/makeinclude/rules.local.GNU:
+ Fixed problem with creation of .depend files when default Make
+ shell is CMD.EXE.
+
+ * include/makeinclude/rules.lib.GNU:
+ * include/makeinclude/platform_vxworks5.5.x.GNU:
+ Changed to implement support for creation of shared libs for
+ VxWorks targets.
+
+Sat Jun 11 11:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/kokyu_dsrt_scheduler_server.mpb:
+ Added codecfactory as base
+
+Fri Jun 10 18:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/rtcosscheduling.mpb:
+ Added missing base projexts. Thanks for JT for reporting this
+
+Fri Jun 10 16:03:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * tests/DLL_Test.cpp:
+ Updated to use new 'ACE_HAS_DYNAMIC_LINKING' macro.
+
+Fri Jun 10 16:00:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/config-lite.h:
+ Introduced new macro 'ACE_HAS_DYNAMIC_LINKING' to enable more
+ generalized testing for platforms supporting dynamic linking
+ than 'ACE_HAS_SVR4_DYNAMIC_LINKING' supports (which excludes
+ WIN32, VxWorks and HPUX which *do* support dynamic linking).
+
+Fri Jun 10 15:53:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_main.h:
+ * ace/OS_main.cpp:
+ Changed implementation of 'ace_main' entrypoints for VxWorks to
+ support shared library builds without resulting in 'undefined symbol'
+ messages for 'ace_main_i'.
+
+Fri Jun 10 15:47:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_dlfcn.inl:
+ Fixed VxWorks implementation of dlopen().
+
+Fri Jun 10 07:55:32 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * bin/tao_orb_tests.lst:
+ Added new test for Alternate IIOP addresses.
+
+Fri Jun 10 13:16:53 2005 Simon McQueen <sm@prismtech.com>
+
+ * ace/Reactor.cpp (register_handler):
+
+ Backed out Thu Jun 9 11:12:39 2005 Steve Huston.
+ It was causing test failures on Linux.
+
+Fri Jun 10 06:43:25 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+
+ Interpret flag_overrides of the custom_types->dependent setting
+ as an array instead of a string. This makes things consistent
+ with non-overridden values of dependent.
+
+ * bin/create_ace_build:
+ * bin/create_ace_build.pl:
+
+ Inform users about using $MPC_ROOT/clone_build_tree.pl instead of
+ these scripts.
+
+ * bin/depgen.pl:
+
+ Simplified/collapsed duplicated code from the VMS additions.
+
+Thu Jun 9 18:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Event.h:
+ Doxygen improvements
+
+ * bin/MakeProjectCreator/config/codecfactory.mpb:
+ New base project for the new codecfactory for TAO
+
+Thu Jun 9 18:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Added tao/tests/POA/Reference_Counting
+
+Thu Jun 9 11:47:31 2005 Steve Huston <shuston@riverace.com>
+
+ * tests/Pipe_Test.cpp: Fixed wide-char text issues.
+
+Thu Jun 9 11:12:39 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Reactor.cpp (register_handler): When registering for one or more
+ signals, set the event handler's reactor() pointer to the registered
+ reactor. Makes this behavior consistent with all other registration
+ types.
+
+Thu Jun 9 16:18:32 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Link.cpp:
+ * protocols/ace/RMCast/Socket.cpp:
+ * protocols/ace/RMCast/Socket.h:
+
+ Implemented timed recv() and size().
+
+Thu Jun 9 13:16:53 2005 Simon McQueen <sm@prismtech.com>
+
+ * bin/tao_other_tests.lst:
+
+ Added Bug_2137_Regression test.
+
+Thu Jun 9 09:31:28 2005 Simon McQueen <sm@prismtech.com>
+
+ * NEWS:
+
+ Updated with late release note submissions.
+
+Wed Jun 08 08:43:59 2005 Simon McQueen <sm@prismtech.com>
+
+ * ACE version 5.4.6 released.
+
+Wed Jun 8 11:21:50 2005 Simon McQueen <sm@prismtech.com>
+
+ * NEWS:
+
+ Updated with release note entries.
+
+Fri Jun 3 13:42:18 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/String_Base.h: Removed ACE_INLINE from the operator+ functions.
+ The functions are defined in String_Base.cpp. Fixes compile errors
+ on Solaris autoconf build.
+
+ * examples/C++NPv2/AIO_Client_Logging_Daemon.cpp: Added missing
+ #include for ace/Null_Mutex.h and ace/Null_Condition.h since this
+ example uses ACE_Task<ACE_NULL_SYNCH>.
+
+ * Kokyu/DSRT_Sched_Queue_T.h: Added missing #include "ace/Null_Mutex.h"
+
+Thu Jun 2 13:58:29 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Local_Tokens.cpp (~ACE_TSS_TPQ_Entry): Replaced missing '}' from:
+ Mon May 30 18:10:56 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+Wed Jun 1 18:33:29 2005 Steve Huston <shuston@riverace.com>
+
+ * examples/C++NPv2/AC_Client_Logging_Daemon.cpp: Reordered some
+ #include directives so files needed by ace/Connector.h are in before
+ ace/Connector.h. Fixes optimized autoconf build on AIX.
+
+Wed Jun 1 12:19:27 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/OS_NS_signal.inl: Reverted:
+ Tue May 31 18:51:31 2005 Steve Huston <shuston@riverace.com>
+ It broke builds on Linux and BSD, at least, with compile errors like:
+ `::' does not have a class or union named `sigaction'
+ I think this is probably an issue of including files in the wrong
+ order and it only trips up HP-UX, but I'm not sure.
+
+Wed Jun 1 07:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Removed bug 2088 test for the time being, the fix isn't the correct one
+ and now the test has wrong expectations
+
+Tue May 31 18:51:31 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/OS_NS_signal.inl (sigaction): Added "::" qualifier to references
+ to "struct sigaction" to distinguish it from sigaction in the
+ ACE_OS namespace. This was tripping up HP aC++ in certain use cases.
+
+Tue May 31 18:46:29 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/INET_Addr.cpp (set_address): When needing to plug in an
+ IPv4-mapped IPv6 address, avoid any possibility of compiler struct
+ member non-contiguous alignment. Use the ip6 address type and
+ plug the values in where they go. Thanks to Robert Iakobashvili
+ <coroberti at gmail dot com> for this idea.
+
+Tue May 31 21:45:10 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * NEWS:
+
+ Updated RMCast-related information.
+
+Tue May 31 11:49:23 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Free_List.inl:
+ * ace/Message_Queue_T.inl:
+ * ace/POSIX_CB_Proactor.inl:
+ * ace/SUN_Proactor.inl:
+
+ Removed these empty inline files.
+
+ * ace/Free_List.cpp:
+ * ace/Free_List.h:
+ * ace/Message_Queue_T.cpp:
+ * ace/Message_Queue_T.h:
+ * ace/POSIX_CB_Proactor.cpp:
+ * ace/POSIX_CB_Proactor.h:
+ * ace/SUN_Proactor.cpp:
+ * ace/SUN_Proactor.h:
+
+ Removed include directives for removed inline files.
+
+ * ace/Timer_Queue_Adapters.cpp (activate):
+
+ Moved method definition out of ACE_HAS_DEFERRED_TIMER_COMMANDS
+ block. Fixes "unresolved symbol" link-time errors.
+
+ * ace/Makefile.am (nobase_include_HEADERS):
+
+ Removed newly removed inline file.
+
+Tue May 31 10:39:10 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/String_Base.inl:
+ * ace/String_Base.cpp:
+
+ Move operator+=() methods from .inl to .cpp in an effort to
+ reduce footprint.
+
+Mon May 30 18:10:56 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Addr.cpp:
+ * ace/Addr.inl:
+ * ace/Event_Handler_T.cpp:
+ * ace/Event_Handler_T.inl:
+ * ace/Free_List.cpp:
+ * ace/Free_List.inl:
+ * ace/Hashable.cpp:
+ * ace/Hashable.inl:
+ * ace/IOStream_T.cpp:
+ * ace/IOStream_T.inl:
+ * ace/Local_Tokens.cpp:
+ * ace/Local_Tokens.inl:
+ * ace/Lock_Adapter_T.cpp:
+ * ace/Lock_Adapter_T.inl:
+ * ace/Malloc_T.cpp:
+ * ace/Malloc_T.inl:
+ * ace/Map_T.cpp:
+ * ace/Map_T.inl:
+ * ace/Message_Block.cpp:
+ * ace/Message_Block.inl:
+ * ace/Message_Queue.cpp:
+ * ace/Message_Queue.inl:
+ * ace/Message_Queue_T.cpp:
+ * ace/Message_Queue_T.inl:
+ * ace/POSIX_CB_Proactor.cpp:
+ * ace/POSIX_CB_Proactor.inl:
+ * ace/POSIX_Proactor.cpp:
+ * ace/POSIX_Proactor.inl:
+ * ace/Refcounted_Auto_Ptr.h:
+ * ace/Refcounted_Auto_Ptr.inl:
+ * ace/Refcounted_Auto_Ptr.cpp:
+ * ace/Remote_Tokens.cpp:
+ * ace/Remote_Tokens.inl:
+ * ace/Reverse_Lock_T.cpp:
+ * ace/Reverse_Lock_T.inl:
+ * ace/SUN_Proactor.cpp:
+ * ace/SUN_Proactor.inl:
+ * ace/Shared_Memory_MM.cpp:
+ * ace/Shared_Memory_MM.inl:
+ * ace/Shared_Memory_SV.cpp:
+ * ace/Shared_Memory_SV.inl:
+ * ace/Strategies_T.cpp:
+ * ace/Strategies_T.inl:
+ * ace/Task.cpp:
+ * ace/Task.inl:
+ * ace/Thread_Manager.cpp:
+ * ace/Thread_Manager.inl:
+ * ace/Timer_Queue_Adapters.cpp:
+ * ace/Timer_Queue_Adapters.inl:
+ * ace/Timer_Queue_T.inl:
+
+ Moved inlined virtual methods out of line. Addresses
+ RTTI-related problems when using g++ 4.0's
+ "-fvisibility-inlines-hidden" command line option.
+
+ * ace/String_Base.cpp:
+
+ Removed "ACE_INLINE" macros. They should not be used in this
+ out-of-line source file.
+
+ * ace/Makefile.am:
+ * ace/ace.mpc:
+
+ Added Refcounted_Auto_Ptr.cpp to the list of template files.
+
+Mon May 30 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Task.cpp:
+ The Borland preview compiler is the only Borland compiler capable
+ of handling the reinterpret cast
+
+Mon May 30 13:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/tao_orb_tests.lst:
+ Added TAO/tests/Portable_Interceptors/Bug_2088/run_test.pl
+
+Mon May 30 09:34:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * include/makeinclude/platform_vxworks5.x_diab.GNU:
+ * include/makeinclude/platform_vxworks5.x_g++.GNU:
+
+ Removed these files since these platform configurations are
+ not supported anymore with the current ACE/TAO releases.
+ The currently supported platform configuration is the
+ 'platform_vxworks5.5.x.GNU'.
+
+Mon May 30 09:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Array_Base.cpp:
+ Initialise pointer with 0
+
+Mon May 30 08:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/platform_aix_ibm.GNU:
+ Don't use -qstaticinline in a 64bit build with Visual Age 6. When
+ this option is specified TAO crashes strangely. Seems a problem
+ in the Visual Age compiler in 64bit mode.
+
+Sun May 29 17:49:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * m4/compiler.m4:
+
+ Disable the use of gcc's symbol visibility on MacOSX, since it
+ requires features of the ELF object file format not present in
+ Mach-O. Longer term we need a feature check that explicitly
+ tests for proper operation of symbol visibility instead of a
+ list of systems where it's disabled.
+
+Fri May 27 15:32:15 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/ACE.h:
+ * ace/ACE.cpp:
+
+ Added a new ACE::wild_match() function which is used to support the
+ TAO -ORBPreferredInterfaces option. wild_match was contributed by
+ Kevin Heifner <heifner_k@ociweb.com>.
+
+ * ace/SOCK_SEQPACK_Association.h:
+ * ace/SOCK_SEQPACK_Connector.h:
+ * apps/drwho/Protocol_Manager.cpp:
+ * examples/APG/Reactor/Timers.cpp:
+ * tests/Network_Adapters_Test.cpp:
+
+ These files #included config.h which isn't safe, because it
+ won't necessarilly pick up the correct symbols. For example, I
+ caught this by trying to build ACE on Windows with
+ __ACE_INLINE__ = 0. The files that #included config.h directly
+ saw that it was defined as 0, but changing them to #include
+ config-all.h instead, correctly saw that the symbol was
+ undefined.
+
+Fri May 27 10:26:34 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+
+ Interpret custom_types->dependent as an array instead of a string.
+ This is completely backward compatible since a string is just a
+ one element array in the template language.
+
+Fri May 27 12:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/platform_aix_ibm.GNU:
+ When building for 64bit, make sure we enable the 64bit warnings
+
+Fri May 27 08:49:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/OS_NS_Thread.inl:
+
+ Fixed possible NULL-pointer assignment for VxWorks implementation
+ of ACE_OS::thr_sigsetmask().
+
+Fri May 27 00:40:19 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * bin/tao_orb_tests.lst:
+
+ Added new recursive type Any insertion/extraction test to the
+ test suite.
+
+Thu May 26 17:07:34 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/String_Base.inl:
+ * ace/String_Base.cpp:
+
+ Move all non-trivial functions out of the .inl file. Hopefully this
+ will cause a net improvement to the footprint.
+
+Thu May 26 16:13:34 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/config-win32-msvc-6.h:
+
+ The standard library that comes with vc6 is pre-standard c++,
+ but it's close enough for many things. Enabling its use should
+ be more portable. This was done long ago for the OCI versions of
+ TAO (Since 1.2a), and was apparently overlooked until now.
+
+Thu May 26 15:22:10 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
+
+ * Release:
+
+ Added the contrib directory into the Release script.
+
+Thu May 26 18:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Thread_Manager.{h,cpp}:
+ Added thr_state method to ACE_Thread_Manager so that we are able
+ to retrieve the state of a certain thread.
+
+Thu May 26 07:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/platform_cygwin32.GNU:
+ * include/makeinclude/platform_freebsd.GNU:
+ * include/makeinclude/platform_gnuwin32_common.GNU:
+ * include/makeinclude/platform_osf1_3.2_cxx.GNU:
+ * include/makeinclude/platform_osf1_4.x_cxx.GNU:
+ * include/makeinclude/platform_osf1_4.x_g++.GNU:
+ * include/makeinclude/platform_qnx_neutrino.GNU:
+ * include/makeinclude/platform_rtems.x_g++.GNU:
+ Simplified these files by using the ?= operator
+
+Wed May 25 15:51:03 2005 Steve Totten <totten_s@ociweb.com>
+
+ * ace/OS_NS_stdio.inl:
+ * ace/OS_NS_stdio.cpp:
+ * ace/OS_TLI.inl:
+ * ace/config-aix-4.x.h:
+ * ace/config-posix.h:
+ These files were using improper syntax to compare the value of
+ _XOPEN_SOURCE against a constant that caused compilation errors on
+ HP-UX 11.23 with HP aC++/ANSI C B3910B A.06.00. For example:
+ #if defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
+ was changed to:
+ #if (defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >= 500)
+
+ Thanks to Paul Koch <paul dot koch at mci dot com> for reporting
+ this problem and providing the solution.
+
+Wed May 25 20:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/msvc_static_order.lst:
+ Added new RTEvent_Skel and RTEvent_Serv libraries and removed
+ RTOldEvent
+
+Tue May 24 20:09:28 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * bin/MakeProjectCreator/config/time.mpb:
+
+ Inherit from svc_utils.mpb.
+
+Tue May 24 20:46:28 2005 Olli Savia <ops@iki.fi>
+
+ * ace/config-irix6.x-common.h:
+ * ace/config-linux-common.h:
+ Changed incorrect define ACE_USES_NEW_TERMIOS to
+ ACE_USES_NEW_TERMIOS_STRUCT.
+
+Tue May 24 09:31:42 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/config/acedefaults.mpb:
+
+ Use $(ILIBMODIFIER) instead of $(LIBMODIFIER).
+
+ * tests/Pipe_Test.cpp:
+ * tests/Process_Mutex_Test.cpp:
+
+ Added missing ACE_TEXT () around option strings. This was causing
+ a very strange file to show up after the Process_Mutex_Test was
+ run in the Borland unicode build and the Pipe_Test didn't run at
+ all.
+
+Tue May 24 00:17:09 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
+
+ * bin/MakeProjectCreator/config/cidlc.mpb:
+
+ Created a base project for cidlc & ccf project files.
+
+Tue May 24 07:58:09 2005 Olli Savia <ops@iki.fi>
+
+ * ace/SSL/SSL_SOCK_Stream.h:
+ Added include "ace/os_include/os_stdio.h" to fix compile
+ problem on LynxOS. Thanks to Christine Ballard
+ <christine.ballard at lmco dot com> for reporting the problem.
+
+Mon May 23 23:11:14 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
+
+ * contrib/utility/*:
+
+ Added the utility library.
+
+Mon May 23 16:38:13 2005 Steve Huston <shuston@riverace.com>
+
+ * examples/Reactor/Proactor/post_completions.cpp: Made use of the
+ ACE_POSIX_SIG_Proactor-based test dependent on
+ ACE_HAS_POSIX_REALTIME_SIGNALS, not ACE_POSIX_SIG_PROACTOR.
+ ACE_POSIX_SIG_PROACTOR indicates a preference for that proactor
+ implementation when one is not specified; it's not a capability
+ indicator. The presence of the ACE_POSIX_SIG_Proactor implementation
+ is based on the ACE_HAS_POSIX_REALTIME_SIGNALS setting, so that's
+ what's used to decide whether to explicitly use
+ ACE_POSIX_SIG_Proactor. This fixes a build error on Mac OS X Tiger
+ with autoconfigure, as well as any other platform with AIO
+ support that doesn't declare a Proactor implementation preference.
+ Thanks to J.T. Conklin for raising this issue and working on testing
+ fixes.
+
+Mon May 23 14:52:19 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ACEXML/tests/util/util.mpc:
+
+ Add missing $ Id tag.
+
+Mon May 23 13:02:25 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/String_Base.h:
+ * ace/String_Base.inl:
+ * ace/String_Base.cpp:
+
+ Fixed some documentation bugs, and added some new features to
+ this class. New efficient overloads for string concatenation.
+ Fixed clear(1) to work as documented. Used a more optimal
+ string growth when concatenating strings. Performance
+ optimizations for string concatenation.
+
+ * tests/SString_Test.cpp:
+
+ Test the new string concatenation overloads.
+
+ * bin/tao_other_tests.lst:
+
+ Enabled new ImR tests, and grouped all ImR tests together.
+
+Mon May 23 12:26:19 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/Thread.h: Doxygen-ized the join() comments.
+
+Mon May 23 13:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Lib_Find.cpp:
+ Reverted change below, causes compile errors with some compilers
+
+Mon May 23 12:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Lib_Find.cpp:
+ Small const fix
+
+Mon May 23 10:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/ftrtevent.mpb:
+ * bin/MakeProjectCreator/config/rtcorbaevent.mpb:
+ Use rtevent_serv as base project. These projects use some rtevent
+ implementation stuff so just the client side stubs are not enough.
+
+ * bin/MakeProjectCreator/config/rteventexe.mpb:
+ Use rtevent_skel as base project
+
+Mon May 23 10:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/rtevent_serv.mpb:
+ * bin/MakeProjectCreator/config/rtevent_skel.mpb:
+ New files, the RTEvent service is being split in 3 libs so
+ we need some new base projects
+
+Mon May 23 05:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * bin/MakeProjectCreator/config/rtoldevent.mpb:
+ Removed this file
+
+ * bin/MakeProjectCreator/config/rteventlogadmin.mpb:
+ Removed rtoldevent as base project
+
+Sun May 22 12:01:46 2005 Olli Savia <ops@iki.fi>
+
+ * ace/High_Res_Timer.cpp:
+
+ Fixed a typo in comment.
+
+Fri May 20 21:11:07 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/DLL.cpp (~ACE_DLL):
+
+ Explicitly delete() this->dll_name_. It is normally delete()d
+ in ACE_DLL::close(). However, that may not occur if full
+ ACE_DLL initialization is interruepted due to errors
+ (e.g. attempting to open a DSO/DLL that does not exist). Fixes
+ a memory leak.
+
+ * ace/Log_Msg.cpp (msg_ostream):
+
+ Delete the previously allocated ostream prior to setting the new
+ one, if necessary. Fixes a memory leak.
+
+ * ace/Logging_Strategy.h (ACE_Logging_Strategy):
+
+ Converted integer fields that are really booleans to be of type
+ "bool", and reordered fields to avoid excessive alignment
+ padding. Reduces size of this class by 8 bytes on most
+ platforms.
+
+ * ace/Logging_Strategy.cpp:
+
+ Initialize fields in base member initializer list to prevent
+ accidental use of uninitialized fields.
+
+ Use C++ "true" and "false" instead of "1" and "0", respectively,
+ when setting boolean field values.
+
+ * ace/SString.h (ACE_Auto_String_Free):
+
+ Corrected documentation suggesting use of
+ ACE_Auto_Array_Ptr<char *>. The correct template argument is
+ "char", not "char *".
+
+ * tests/CDR_Test.cpp:
+ * tests/Multicast_Test.cpp:
+
+ Fixed memory leaks.
+
+ * tests/Logging_Strategy_Test.cpp:
+
+ Updated to be consistent with boolean field changes in
+ ACE_Logging_Strategy class.
+
+ * tests/TP_Reactor_Test.cpp (delete_reactor):
+
+ Reordered finalization code to prevent memory leak.
+
+Fri May 20 19:05:22 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/Thread.h (ACE_Thread): Updated the documentation of
+ ACE_Thread::join(). Thanks to Alan Balasuar
+ <balasuar@gmail.com> for motivating this fix.
+
+Sat May 21 18:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/HTBP/Reactor_Tests/server.cpp:
+ Fixed value computed is not used warning in GCC IA64 build
+
+Fri May 20 15:28:00 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * ace/config-lite.h
+
+ Added TANDEM platform for ACE_NOTREACHED macro.
+
+Thu May 19 19:10:30 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp
+ (handle_output):
+
+ Removed
+
+ ACE_ASSERT (errno == EWOULDBLOCK);
+
+ since errno may have been changed by this point. Thanks to Ro
+ Madhavan <ro_madhavan@sify.com> for reporting this.
+
+Thu May 19 18:50:23 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/ICMP_Socket.{h cpp inl}:
+ * ace/Ping_Socket.{h cpp inl}:
+ * tests/Network_Adapters_Test.{cpp, h}: Moved ICMP_Socket and
+ Ping_Socket out of the ACE namespace and changed names to
+ ACE_ICMP_Socket and ACE_Ping_Socket, respectively. Also fixed up
+ some text strings with ACE_TEXT.
+ ACE_ICMP_Socket now does not check for root euid - allow the OS to
+ do whatever checks it requires/implements.
+ Improved implementation of ACE_Ping_Socket.
+ Thanks to Robert Iakobashvili for these improvements and changes.
+
+Thu May 19 15:59:38 2005 Steve Huston <shuston@riverace.com>
+
+ * ace/SOCK.h: Clarified doc on close() - it sets the object's
+ handle to ACE_INVALID_HANDLE.
+
+Thu May 19 08:58:48 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/INET_Addr.cpp:
+ * ace/INET_Addr.inl:
+
+ Moved remaining virtual methods out of line. See "Wed May 18
+ 16:19:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>" for
+ details.
+
+Thu May 19 15:21:00 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * bin/MakeProjectCreator/config/taoidl3toidl2defaults.mpb:
+
+ Added line
+
+ after += TAO_IDL3_TO_IDL2_EXE
+
+ to the config file to make sure that the executable is built
+ before being used in a test, example or application. Thanks to
+ Chad Elliott <elliott_c@ociweb.com> for suggesting the change.
+
+Thu May 19 14:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * netsvcs/clients/Logger/indirect_logging.cpp:
+ * netsvcs/lib/Client_Logging_Handler.cpp:
+ When we can't open the logger print out an error and exit with -1.
+
+Thu May 19 00:38:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * config-g++-common.h:
+ * config-lite.h:
+
+ Removed ACE_EXPORT_SINGLETON_{DECLARATION,DECLARE} macro
+ definitions. They do not provide the expected behavior in g++
+ 4.0 configurations, as they do in VC++ configurations.
+
+Wed May 18 16:19:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/ATM_Addr.cpp:
+ * ace/ATM_Addr.inl:
+ * ace/DEV_Addr.cpp:
+ * ace/DEV_Addr.inl:
+ * ace/FILE_Addr.cpp:
+ * ace/FILE_Addr.inl:
+ * ace/INET_Addr.cpp:
+ * ace/INET_Addr.inl:
+ * ace/MEM_Addr.cpp:
+ * ace/MEM_Addr.inl:
+ * ace/SPIPE_Addr.cpp:
+ * ace/SPIPE_Addr.inl:
+ * ace/Service_Types.cpp:
+ * ace/Service_Types.inl:
+ * ace/UNIX_Addr.cpp:
+ * ace/UNIX_Addr.inl:
+
+ Moved virtual method implementation out-of-line. Since the
+ classes to which they belong are exported, inlining them will
+ cause problems when attempting to perform a dynamic_cast<> in
+ binaries built with g++ 4.0's -fvisibility-inlines-hidden
+ command line option.
+
+ * ace/Strategies_T.cpp (dump):
+
+ Removed ACE_INLINE from this out of line method.
+
+Wed May 18 15:44:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * ace/Semaphore.cpp:
+
+ Removed check for missing shm_open() since this causes problems
+ for platforms supporting POSIX_SEM (and thus not using
+ shm_open/open). Thanks to Raoul Gough <Raoul dot Gough at liffe
+ dot com> for reporting this.
+
+ * ace/config-openvms.h:
+ Added ACE_LACKS_UNNAMED_SEMAPHORE to compensate for above
+ change.
+
+Wed May 18 14:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/ASX/Message_Queue/buffer_stream.cpp:
+ Initialise all pointers with 0
+
+Wed May 18 09:25:35 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+ * include/makeinclude/rules.lib.GNU:
+ * include/makeinclude/platform_gnuwin32_common.GNU:
+
+ Fixed a problem that I introduced in a previous change. Resource
+ files were not being handled properly and the
+ platform_gnuwin32_common.GNU file was referencing $(VSHOBJS1)
+ which I removed.
+
+ * include/makeinclude/all_in_one.GNU:
+ * include/makeinclude/wrapper_macros.GNU:
+ * include/makeinclude/rules.bin.GNU:
+
+ Removed the file rules.bin.GNU and all references to it.
+
+Tue May 17 20:58:46 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * bin/MakeProjectCreator/config/taoidl3toidl2defaults.mpb:
+
+ New file, a base project for the tao_idl3_to_idl2 executable,
+ so it can be executed automatically in a test or example.
+
+Tue May 17 18:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/ASX/Message_Queue/ASX_Message_Queue.mpc:
+ Don't build the buffer_stream exe when wchar is enabled, this
+ example expects just char.
+
+Tue May 17 09:32:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tests/Collection_Test.cpp:
+
+ Avoid casting between a pointer to a function and a pointer to
+ an object. ISO C++ forbids such casts. Fixes a g++ 4.0
+ warning.
+
+Tue May 17 07:50:07 2005 Justin Michel <michel_j@ociweb.com>
+
+ * ace/Cache_Map_Manager_T.cpp:
+ * ace/Cached_Connect_Strategy_T.cpp:
+ * ace/Caching_Strategies_T.cpp:
+ * ace/Caching_Utility_T.cpp:
+ * ace/Cleanup_Strategies_T.cpp:
+ * ace/Hash_Cache_Map_Manager_T.h:
+ * ace/Hash_Cache_Map_Manager_T.cpp:
+ * ace/QoS/QoS_Manager.h:
+
+ Fix incorrect use of #pragma once.
+
+ * ace/Functor.h:
+ * ace/Functor.inl:
+ * ace/Global_Macros.h:
+ * ace/ace_wchar.h:
+ * ace/config-win32-msvc.h:
+
+ Add a new ACE_LACKS_NATIVE_WCHAR_T macro, which can be used to
+ check whether a platform supports overloading on wchar_t without
+ conflict. The existing ACE_WSTRING_HAS_USHORT_SUPPORT was
+ incorrectly being used for two purposes. This setting should let
+ us enable native wchar_t support on VC7+.
+
+ * ace/OS_NS_time.inl:
+
+ Add a static_cast<long> because time_t is 64bit on some platforms
+ where long is 32 bit.
+
+ * ace/OS_NS_unistd.inl:
+
+ Mask out the X_OK(6) bit for the amode parameter of the access()
+ function because this bit is illegal on Win32 and will assert.
+
+ * ace/config-win32-msvc-7.h:
+
+ Clarify comment on ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT.
+
+ * ace/config-win32-msvc-8.h:
+
+ Disable deprecation warning 4996, because the
+ _CRT_SECURE_NO_DEPRECATE macro doesn't appear to work
+ correctly.
+
+ * ace/streams.h:
+
+ Add missing "using std::ios_base".
+
+Mon May 16 21:39:30 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * ace/Ping_Socket.h (Ping_Socket):
+
+ Corrected class name in Doxygen documentation.
+
+Mon May 16 19:18:14 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * configure.ac:
+ * examples/Makefile.am:
+ * protocols/Makefile.am:
+ * protocols/examples/Makefile.am:
+
+ Adapt autoconf build to adjust to relocation of RMCast examples.
+
+Mon May 16 15:58:29 2005 Steve Huston <shuston@riverace.com>
+
+ * ACE-INSTALL.html: Corrected the names of the Sun compilers supported.
+ Thanks to Nick Todd <nicholas dot todd at gs dot com> for
+ bringing this error to our attention.
+
+ * THANKS: Added Nick Todd to the Hall of Fame.
+
+Mon May 16 12:33:29 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * THANKS:
+
+ Added Mario Di Giacomo to the Hall of Fame.
+
+ * ace/Service_Templates.cpp:
+
+ Include "ace/SString.h" to pull in ACE_TString declaration.
+ Thanks to Mario Di Giacomo <mdigiacomo at anteon dot com> for
+ reporting the problem.
+
+ * tests/Cache_Map_Manager_Test.cpp (find_test_cache):
+
+ Fixed "variable may be used uninitialized" warning.
+
+Mon May 16 19:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Malloc.h:
+ Doxygen improvement
+
+Mon May 16 10:57:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * ace/Makefile.am:
+
+ Reset DEFAULT_INCLUDES to address ambiguity between system's
+ signal.h and semaphore.h headers and ACE's Signal.h and
+ Semaphore.h headers on case insensitive file systems.
+
+ This may be the best setting for all ACE/TAO Makefile.am's,
+ but this is the only one that requires it.
+
+Mon May 16 10:56:31 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * configure.ac:
+
+ Add ACE_LD_SEARCH_PATH and ACE_DLL_SUFFIX settings for
+ darwin/MacOSX.
+
+ Add ACE_HAS_NANOSLEEP feature test check.
+
+Mon May 16 10:49:10 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * ace/POSIX_CB_Proactor.h:
+
+ Add defined(__APPLE__) to conditional wrapping sigval_t type
+ definition.
+
+Mon May 16 10:45:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * m4/ace.m4 (ACE_CONFIGURATION_OPTIONS):
+
+ Changed *win* patterns to *win32* to avoid matching darwin,
+ the MacOSX kernel.
+
+Mon May 16 15:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * include/makeinclude/platform_mingw32.GNU:
+ * include/makeinclude/platform_sco5.0.0-nothread.GNU:
+ * include/makeinclude/platform_sunos4_g++.GNU:
+ * include/makeinclude/platform_sunos5_sunc++.GNU:
+ * include/makeinclude/platform_unixware_g++.GNU:
+ * include/makeinclude/platform_unixware_udk.GNU:
+ * include/makeinclude/platform_win32_dmc.GNU:
+ * include/makeinclude/platform_win32_interix.GNU:
+ Simplified these files by using the ?= operator. This sets a value
+ only when it is not set yet.
+
+Mon May 16 09:24:29 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/tao_orb_tests.lst:
+
+ Enabled the Exposed_Policies test on Linux.
+
+ * bin/tao_other_tests.lst:
+
+ Added a !NO_IFR configuration to each IFR related test.
+ The IFR_Service will not run on MacOS X unless TAO is built
+ statically due to gcc's in ability to deal with template
+ instantiated singletons correctly.
+
+ Added a NO_LOADAVG configuration to avoid running the load average
+ based test on platforms that do not have support for obtaining the
+ load average from the system.
+
+ Added a configuration for NO_MCAST for machines that do not have
+ multicast capabilities or the multicast implementation is broken.
+
+ Added !STATIC to two LoadManager tests to support static builds on
+ Windows.
+
+Mon May 16 14:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ace/Active_Map_Manager.h:
+ * ace/Base_Thread_Adapter.h:
+ * ace/Process.h:
+ * ace/QtReactor.h:
+ Doxygen improvement
+
+ * ace/QtReactor.cpp:
+ Fixed compile problems with msvc6
+
+ * examples/ASX/Message_Queue/buffer_stream.cpp:
+ Use ACE_SIZE_T_FORMAT_SPECIFIER to print out an size_t variable
+ with ACE_OS::sprintf
+
+ * include/makeinclude/platform_hpux_aCC.GNU:
+ * include/makeinclude/platform_hpux_gcc.GNU:
+ * include/makeinclude/platform_irix6.x_g++.GNU:
+ * include/makeinclude/platform_irix6.x_sgic++.GNU:
+ * include/makeinclude/platform_linux.GNU:
+ * include/makeinclude/platform_linux_borland.GNU:
+ * include/makeinclude/platform_linux_cxx.GNU:
+ * include/makeinclude/platform_macosx.GNU:
+ Simplified these files by using the ?= operator. This sets a value
+ only when it is not set yet. Also set some variables using ?= so
+ that our users can easily define their own values.
+
+ * include/makeinclude/platform_linux_icc.GNU:
+ Disable warning 1572 (floating point warning), correct name of Qt
+ library and only set several variables when they are not set yet
+
+Mon May 16 09:01:07 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tests/Conn_Test.cpp:
+
+ Force this test to use threads (instead of fork) on MacOS X.
+
+ * tests/FIFO_Test.cpp:
+
+ Sleep 1 second (as is done on AIX and HP-UX) before attempting to
+ receive from the fifo.
+
+ * tests/MT_Reference_Counted_Event_Handler_Test.cpp:
+
+ Set global_event_loop_thread_variable before activating the thread
+ that may use it.
+
+ * tests/Naming_Test.cpp:
+
+ Allow the user to determine the location of the context file by
+ the TMPDIR, TEMP and TMP environment variables.
+
+ * tests/Pipe_Test.cpp:
+ * tests/Process_Mutex_Test.cpp:
+
+ Use the value from argv[0] instead of hardcoding the exe name.
+ The hardcoded name does not work on Windows Release builds.
+
+ * tests/Process_Strategy_Test.cpp:
+
+ Use threads by default on HP-UX instead of fork.
+ Added a timeout for the recv() call in
+ Counting_Service::handle_input() for HP-UX only.
+
+ * tests/run_test.lst:
+
+ Added a configuration for NO_MCAST for machines that do not have
+ multicast capabilities or the multicast implementation is broken.
+
+ * tests/SSL/aix_hack_for_main.cpp:
+ * tests/aix_hack_for_main.cpp:
+
+ Removed these files. They are no longer needed due to MPC.
+
+Mon May 16 08:52:11 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * bin/MakeProjectCreator/config/crosscompile.mpb:
+
+ Added lib_warning, require_warning and avoid_warning to the list
+ of targets in the CROSS-COMPILE portion.
+
+ * bin/MakeProjectCreator/config/rtcorbaevent.mpb:
+
+ The RTCORBAEvent library requires the CosNaming library.
+
+ * bin/MakeProjectCreator/templates/gnu.mpd:
+
+ Support the MPC feature that will allow users to specify arbitrary
+ input file dependencies.
+
+ Changed the OBJS setting to use $(notdir) only if the source file
+ contains ../ and added explicit rules for source files that are
+ located in subdirectories.
+
+ * include/makeinclude/platform_macosx_panther.GNU:
+
+ Explicitly default the threads variable to threads=1. This
+ was preventing ACE_TMCast from building.
+ Change the optimization option to -O2. -O3 was causing some
+ link problems in the IDL compiler.
+
+ * include/makeinclude/platform_sunos5_sunc++.GNU:
+
+ Allow users to override the inline and exceptions settings.
+
+ * include/makeinclude/platform_vxworks5.5.x.GNU:
+ * include/makeinclude/rules.local.GNU:
+
+ Provide better support for building for VxWorks on a Windows host
+ without Cygwin.
+
+ * include/makeinclude/rules.lib.GNU:
+
+ Changed the SHOBJS setting to be consistent with the OBJS setting.
+ Also, removed VLOBJS and SHOBJS1 which were redundant and set
+ exactly as SHOBJS was.
+
+ * include/makeinclude/wrapper_macros.GNU:
+
+ Set ec_typed_events to 1 by default. This matches the default for
+ MPC features.
+
+ * bin/pch_cmd.pl:
+
+ Removed this file. It is no longer necessary.
+
+Mon May 16 08:44:14 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * ace/ACE.cpp:
+ * ace/config-irix6.x-sgic++.h:
+ * ace/config-qnx-neutrino.h:
+ * ace/config-qnx-rtp-common.h:
+ * ace/config-sunos5.5.h:
+
+ Put ACE_LIB_TEXT around all ACE_CC_NAME definitions to support
+ wide character builds on Solaris, QNX and IRIX.
+
+ * ace/ACE_export.h:
+
+ Added support for SunCC 5.6.
+
+ * ace/Multihomed_INET_Addr.h:
+ * ace/Multihomed_INET_Addr.cpp:
+
+ Added an explicit constructor that takes a const char* for
+ symmetry with the ACE_INET_Addr class.
+
+ * ace/Naming_Context.cpp:
+
+ Removed a bug workaround for aCC A.03.04. It is no longer a
+ problem to specify other mmap base addresses when running
+ 64-bit HP-UX applications.
+
+ * ace/OS_NS_Thread.inl:
+ * ace/config-macosx-panther.h:
+ * ace/Sched_Params.cpp:
+
+ MacOS X has pthread_getschedparam but has the ACE_LACKS_SETSCHED
+ macro defined. I have added a new macro,
+ ACE_HAS_PTHREAD_SCHEDPARAM, that can be defined to use
+ pthread_getschedparam and pthread_setschedparam even when
+ ACE_LACKS_SETSCHED is defined.
+
+
+ * ace/OS_NS_Thread.cpp:
+
+ Fixed an issue that arose within the static builds on Windows.
+ The ACE_Thread_Mutex static data member of the
+ TSS_Cleanup_Instance class was being used (in the
+ TSS_Cleanup_Instance constructor) before it was statically
+ initialized. I have switched it (and the condition variable
+ associated with it) to a pointer that is allocated the first
+ time into the TSS_Cleanup_Instance constructor.
+
+ * ace/Process_Manager.cpp:
+
+ Committing a change from Justin Michel <michel_j@ociweb.com>.
+ The close() method failed to unregister the reactor on Windows.
+
+ * ace/ace.mpc:
+
+ Removed an unnecessary 'install' setting.
+
+ * ace/config-sunos5.10.h:
+
+ SunOS 5.10 has scandir (ACE_HAS_SCANDIR).
+
+ * ace/os_include/sys/os_socket.h:
+
+ When using LKSCTP, include <netinet/in.h> before <netinet/sctp.h>
+ to avoid macro problems.
+
+Sun May 15 11:57:56 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * ace/INET_Addr.cpp (set): Changed the test from
+
+ if (port_number < 0)
+
+ to
+
+ if (port_number == -1)
+
+ to work around problems when (port_number & 0x80 != 0). Thanks
+ to Vemund Handeland <vemund.handeland@fantoft.no> for reporting
+ this.
+
+Mon May 16 11:35:00 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/tests/tests.mwc:
+ * protocols/tests/RMCast/Protocol.h:
+ * protocols/tests/RMCast/RMCast.mpc:
+ * protocols/tests/RMCast/Receiver.cpp:
+ * protocols/tests/RMCast/Sender.cpp:
+ * protocols/tests/RMCast/run_test.pl:
+
+ Added regression test with loss and reordering simulator
+ for RMCast.
+
+Mon May 16 11:26:14 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * examples/RMCast/Makefile.am:
+ * examples/RMCast/Send_Msg/Makefile.am:
+ * examples/RMCast/Send_Msg/Protocol.h:
+ * examples/RMCast/Send_Msg/README:
+ * examples/RMCast/Send_Msg/Receiver.cpp:
+ * examples/RMCast/Send_Msg/Send_Msg.mpc:
+ * examples/RMCast/Send_Msg/Sender.cpp:
+
+ Removed as part of the moving all RMCast-related
+ code to protocols/.
+
+Mon May 16 11:22:09 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/examples/example_base.mpb:
+ * protocols/examples/examples.mwc:
+ * protocols/examples/RMCast/Makefile.am:
+ * protocols/examples/RMCast/Send_Msg/Makefile.am:
+ * protocols/examples/RMCast/Send_Msg/Protocol.h:
+ * protocols/examples/RMCast/Send_Msg/README:
+ * protocols/examples/RMCast/Send_Msg/Receiver.cpp:
+ * protocols/examples/RMCast/Send_Msg/Send_Msg.mpc:
+ * protocols/examples/RMCast/Send_Msg/Sender.cpp:
+
+ Copyied from examples/RMCast as part of the moving
+ all RMCast-related code to protocols/.
+
+
+Mon May 16 11:05:26 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * examples/RMCast/Send_Msg/Receiver.cpp:
+ * examples/RMCast/Send_Msg/Sender.cpp:
+
+ Showcase new features (see below).
+
+Mon May 16 10:58:43 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * protocols/ace/RMCast/Acknowledge.cpp:
+ * protocols/ace/RMCast/Link.cpp:
+ * protocols/ace/RMCast/Link.h:
+ * protocols/ace/RMCast/Protocol.cpp:
+ * protocols/ace/RMCast/Protocol.h:
+ * protocols/ace/RMCast/Retransmit.cpp:
+ * protocols/ace/RMCast/Socket.cpp:
+ * protocols/ace/RMCast/Socket.h:
+
+ Implemented message aging and unavailability reporting,
+ reactor-compatible interface, and message size query
+ interface.
+
+ * protocols/ace/RMCast/README:
+
+ Protocol documentation.
+
+Sat May 14 06:05:55 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * ACE version 5.4.5 released.
+
Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
+add-log-time-format: current-time-string
End:
diff --git a/ChangeLogs/ChangeLog-05b b/ChangeLogs/ChangeLog-05b
deleted file mode 100644
index 15f3ed61bea..00000000000
--- a/ChangeLogs/ChangeLog-05b
+++ /dev/null
@@ -1,2815 +0,0 @@
-Fri Aug 5 13:19:33 2005 Simon McQueen <sm@prismtech.com>
-
- * Release:
-
- Remove tagging of man/* files.
-
-Thu Aug 4 16:10:24 BST 2005 Donald Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Array_Map_Test.cpp:
- Some compilers, like SunCC5.5 on Solaris, do not delete their
- temporaries in expression scope. Placing the expressions in an
- inner block ensures that the reference count is as expected
-
-Wed Aug 03 09:35:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * tests/Process_Manual_Event_Test.cpp:
- Added additional tests for lacking PSHARED support.
-
-Sat Jul 30 10:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_other_tests.lst:
- Added missing semi colon for CosEvent basic test
-
-Fri Jul 29 14:25:12 2005 Steve Huston <shuston@riverace.com>
-
- * ace/config-aix-5.x.h: Disable ACE_HAS_POSIX_SEM if the Posix
- flags indicate its presence but _XOPEN_SOURCE is not >= 500.
-
- * tests/run_test.pl: When looking for sub-log files, match the program
- name only at the start. Prevents finding, for example,
- Process_Manual_Event_Test-child.log when looking for
- Manual_Event_Test-*.log.
-
-Fri Jul 29 14:26:37 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_other_tests.lst:
-
- Scheduled TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl to be
- run on all not minimum or single threaded builds.
-
-Fri Jul 29 09:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * apps/JAWS2/JAWS/Filecache.cpp:
- * apps/JAWS2/JAWS/IO.cpp:
- * apps/JAWS2/JAWS/IO_Handler.cpp:
- Fixed compile errors when building with Borland C++. I have created
- an MPC file but find it too risky to add that just before the
- release, will do that when the release is out.
-
- * ace/Global_Macros.h:
- When ACE_EXPLICIT_TEMPLATE_DESTRUCTOR_TAKES_ARGS is defined, define
- a special version of ACE_DES_FREE_TEMPLATE3 and
- ACE_DES_FREE_TEMPLATE4 just as we do for ACE_DES_FREE_TEMPLATE and
- ACE_DES_FREE_TEMPLATE2.
-
- Thanks to Olivier Gu�in <guerin35 at hotmail dot com>
- for reporting this.
-
-Fri Jul 29 07:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_cray.GNU:
- * include/makeinclude/platform_freebsd.GNU:
- * include/makeinclude/platform_hpux.GNU:
- * include/makeinclude/platform_hpux_gcc.GNU:
- * include/makeinclude/platform_irix5.3_g++.GNU:
- * include/makeinclude/platform_irix6.x_g++.GNU:
- * include/makeinclude/platform_irix6.x_kcc.GNU:
- * include/makeinclude/platform_linux_borland.GNU:
- * include/makeinclude/platform_m88k.GNU:
- * include/makeinclude/platform_mvs.GNU:
- * include/makeinclude/platform_netbsd.GNU:
- * include/makeinclude/platform_openbsd.GNU:
- * include/makeinclude/platform_osf1_3.2_cxx.GNU:
- * include/makeinclude/platform_osf1_4.x_kcc.GNU:
- * include/makeinclude/platform_sco5.0.0-CC-fsu-pthread.GNU:
- * include/makeinclude/platform_sco5.0.0-fsu-pthread.GNU:
- * include/makeinclude/platform_sco5.0.0-mit-pthread.GNU:
- * include/makeinclude/platform_sco5.0.0-nothread.GNU:
- * include/makeinclude/platform_tandem.GNU:
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- * include/makeinclude/platform_win32_interix.GNU:
- Updated location for libraries from $ACE_ROOT/ace to
- $ACE_ROOT/lib. Thanks to Ian Zagorskih
- <ianzag at megasignal dot com> for reporting this.
- This fixes bugzilla 2202
-
-Thu Jul 28 13:59:11 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_other_tests.lst:
-
- Added !MINIMUM to Bug_1630_Regression test. It needs the IFR.
-
-Thu Jul 28 01:46:40 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Cache_Map_Manager_T.cpp:
- * ace/Cache_Map_Manager_T.inl:
- * ace/MEM_SAP.cpp:
- * ace/MEM_SAP.inl:
- * ace/Map_T.cpp:
- * ace/Map_T.inl:
- * ace/Signal.cpp:
- * ace/Signal.inl:
-
- Moved virtual destructors in exported classes out of line.
- Addresses RTTI problems when the using g++ 4.0 hidden visibility
- for inline functions feature.
-
-Thu Jul 28 00:28:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Array_Map.cpp:
- * ace/Array_Map.h:
- * ace/Array_Map.inl:
-
- Added third equality functor template parameter. Defaults to
- std::equal_to<> if unspecified. Necessary for cases where
- operator==() is not suitable or available for a given key type.
-
- (erase):
-
- Explicitly destroy the tail element by assigning a default
- constructed value_type instance to it. Prevents duplicate
- instances of erase()d elements from existing. Some applications
- may assume that erased elements no longer exist. This
- essentially disables the lazy destruction behavior of
- ACE_Array_Map. Note that this change also applies to the case
- of a map of size 1.
-
- * ace/Refcountable.cpp:
- * ace/Refcountable.inl:
-
- Moved ~ACE_Refcountable() virtual destructor out of line.
- Addresses RTTI issues when g++ 4.0 hidden visibility of inlined
- functions is enabled.
-
- * ace/config-lite.h:
-
- Disable use of ACE_RCSIDs by default. Most users never need to
- determine the RCS ID of a given object file in an ACE-based
- binary so optimize for the common case. Also reduces
- footprint.
-
- * tests/Array_Map_Test.cpp:
-
- Added reference count test to verify that the number of
- references/copies of a given data element drop by the same
- amount as was increased during insertion.
-
-Wed Jul 27 16:33:46 2005 Gary Maxey <gary.maxey@hp.com>
-
- * ace/config-tandem-nsk-mips-v3.h:
-
- Add #define for ACE_ANY_OPS_USE_NAMESPACE
-
-Mon Jul 25 19:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Naming_Test.cpp:
- Initialise pointer with 0
-
-Mon Jul 25 15:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Timer_Hash_T.cpp:
- Initialise some pointers with 0
-
- * ace/Refcountable.h:
- Removed some empty doxygen tags
-
- * ace/Naming_Context.cpp:
- Removed not needed ACE_UNUSED_ARG
-
-Sat Jul 23 16:36:36 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
-
- * bin/ciao_tests.lst:
-
- enabled running CIAO NodeApplicationTest again.
-
-Fri Jul 22 16:31:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Basic_Types.h: The change from:
- Fri Jul 8 15:42:18 2005 Steve Huston <shuston@riverace.com>
- turned a previous warning into an error on newer g++ versions.
- Instead, moved the __hi_lo struct definition out of the
- anonymous union and renamed it to not be a compiler-private name
- (with 2 leading underscores). This should resolve all the
- issues. Thanks to Simon Massey for figuring this out.
-
-Fri Jul 22 11:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ciao_server_dnc.mpb:
- Add naming as base project, CIAO_DnC_Server has this
- also
-
-Fri Jul 22 09:30:00 UTC 2005 Simon Massey <sma@prismtech.com>
-
- * tests/run_test.lst:
- Don't run Process_Manual_Event_Test on HPUX
-
-Thu Jul 21 10:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Don't run Bug_2174_Regression in a minimum corba build
-
-Thu Jul 21 09:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Atomic_Op_T.h:
- Use deprecate tag for deprecated methods
-
-Thu Jul 21 09:24:58 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/ciao_tests.lst:
-
- Descheduled the 3 TAO/CIAO/DAnCE/tests/NodeApplicationTest
- tests. They fail and there have been no responses to
- requests that they be fixed.
-
-Wed Jul 20 06:45:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/msvc_static_order.lst:
-
- Added Ds{Event,Notify}LogAdmin_{IDL,Skel,Serv} --- just to
- be safe.
-
-Wed Jul 20 09:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * protocols/ace/RMCast/Makefile.am:
- Added new files
-
-Wed Jul 20 08:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/auto_run_tests.pl:
- Check for result != 0 instead of result > 0. It seems that when
- a run_test.pl has been added from a windows box that it sometimes
- doesn't get execute permission and then the script can't be
- executed on Unix systems. The return value is then -1 and this
- wasn't detected by the scripts
-
-Wed Jul 20 07:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/msvc_static_order.lst:
- Added DsLogAdmin_IDL
-
-Tue Jul 19 14:24:47 2005 Gary Maxey <gary.maxey@hp.com>
-
- * bin/PerlACE/Process_Unix.pm:
-
- Append command line arguments based on ACE_RUNTEST_ARGS
- environment variable.
-
- * ace/config-tandem-nsk-mips-v3.h:
-
- Adjust platform specific macros
-
-Tue Jul 19 19:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Log_Record.cpp:
- Reverted part of the change below. Not all platforms have snprintf,
- just use sprintf, all platforms have that. Fixes problems with
- VxWorks
- Thu Jul 14 12:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
-Tue Jul 19 14:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added new Register_Initial_References test. This will fail in
- all builds, it seems we have some bugs to fix
-
-Tue Jul 19 12:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added new recursive ORBInitializer test
-
-Tue Jul 19 11:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Enable Bug_2088, rewrote this test to test the current functionality
- which matches the draft 3.1 spec. The Corba 3.0.3 seems to be not
- usable.
-
-Tue Jul 19 10:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_fcntl.cpp:
- * ace/OS_NS_sys_mman.inl:
- When returning an ACE_HANDLE return ACE_INVALID_HANDLE instead
- of -1 as error
-
-Mon Jul 18 18:21:20 2005 Steve Huston <shuston@riverace.com>
-
- * NEWS: Added ACE_OS::closesocket() and Solaris 10 notes.
-
-Mon Jul 18 12:11:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/msvc_static_order.lst:
-
- Add CosNaming_IDL, CosTrading_IDL, and CosNotification_IDL
- projects to list.
-
-Mon Jul 18 11:42:09 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm:
-
- Revived the old style where each GNUmakefile has individual
- targets that contain the necessary dependencies. To utilize this
- you must set the MPC_GNUACE_NAMED_TARGETS environment variable.
-
-Mon Jul 18 09:08:01 2005 Gary Maxey <gary.maxey@hp.com>
-
- * bin/tao_orb_tests.lst:
-
- Added OBV/ValueBox the list of tests. This is a new test
- to exercise boxed value types.
-
-Mon Jul 18 15:51:04 2005 Simon McQueen <sm@prismtech.com>
-
- * ace/OS_NS_Thread.cpp:
-
- Removed unreachable statements identified by HP non stop
- MIPS build warnings.
-
-Mon Jul 18 09:21:14 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * NEWS:
-
- Took out TAO-specific comments.
-
-Mon Jul 18 13:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Mem_Map.cpp:
-
- Reverted the change below, it causes problems on AIX and Solaris. It
- seems that on AIX we now use ACE_OS::open for shared memory, with the
- change below we use ACE_OS::shm_open but this fails for strange
- reasons and I have no idea what the problem is at this moment. So
- revert this until Martin is back from his vacation
-
- Tue Jul 05 21:40:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
- Changed to consistently use ACE_OS::shm_open/ACE_OS::shm_unlink.
-
-Mon Jul 18 13:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * html/index.html:
- Update link for DAnCE
-
-Mon Jul 18 15:02:58 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Acknowledge.cpp:
- * protocols/ace/RMCast/Fragment.cpp:
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Reassemble.cpp:
-
- Fixed a bunch of warnings.
-
-Mon Jul 18 08:00:35 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * NEWS:
-
- Added comments regarding TAG_ALTERNATE_IIOP_ADDRESS and
- refactored codeset negotiation support.
-
-Mon Jul 18 10:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/MMAP_Memory_Pool.cpp (init_acquire):
- Added class name to the error messages and print the method
- name.
-
- * ace/SString.cpp:
- Initialise pointers with 0
-
-Mon Jul 18 11:33:23 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * NEWS:
-
- Updated with the latest achievements in RMCast.
-
-Mon Jul 18 08:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/make_release:
- Removed exclude of asnmp.mwc, this file has been zapped
-
-Fri Jul 15 16:35:37 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * bin/MakeProjectCreator/config/global.features:
- * bin/MakeProjectCreator/config/negotiate_codesets.mpb:
- * bin/MakeProjectCreator/config/taoclient.mpb:
- * bin/MakeProjectCreator/config/taoserver.mpb:
-
- Added a new feature, negotiate_codesets. Disabled by default,
- but when enabled in default.features or on the mpc/mwc command
- line adds TAO_Codeset to the project's libs list. Dynamically
- linked applications do not need to do anything, the libary will
- be dynamically loaded if needed by the ORB. Static applications
- must enable this feature. Merely enabling is not sufficient, to
- actually make use of the codeset code, they must also include
- tao/Codeset/Codeset.h somewhere in their application. Enabling
- the mpc feature without including the header will not cause any
- code to be statically linked. Enabling the feature with dynamic
- applications will add a dependency on the TAO_Codeset library
- regardless of the use of the code.
-
-Fri Jul 15 08:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/make_release:
- Also exclude ASNMP/asnmp.mwc when generating the em3 project files.
- Thanks to Sam Mesh <sam dot mesh at gmail dot com> for reporting
- this. This fixes bugzilla bug 2190.
-
-Thu Jul 14 12:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Log_Record.cpp:
- Fixed compile error in previous committed caused when merging
- changes from one system to another
-
-Thu Jul 14 12:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_stdio.cpp (sprintf wchar):
- ULONG_MAX was passed, this caused vswprintf to return always -1
- because ULONG_MAX is of course really large on a 64bit system.
- Pass 4096 instead, just as done with the other vswprintf in
- OS_NS_stdio.inl.
-
- * ace/Log_Record.cpp:
- Use snprintf because we know the sizes of the buffer, this way
- we don't call the method above that caused problems on 64bit
- systems. This fixes bugzilla 2176.
-
-Thu Jul 14 09:31:55 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Flow.cpp:
-
- Fixed fuzz error over math.h inclusion.
-
-Wed Jul 13 22:12:12 UTC 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * etc/ciao_DAnCE.doxygen
-
- Added "RECURSIVE=YES" so source files could be found correctly
- Also added excluded path option for CIAO examples and tests.
-
-Wed Jul 13 17:10:45 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * bin/MakeProjectCreator/config/codeset.mpb:
-
- A new base project for use when creating codeset translators or
- any other code that must depend on the new library, TAO_Codeset.
-
-Wed Jul 13 12:42:57 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/tao_other_tests.lst:
-
- Due to the way that the ORB is coded such that it does not require
- the IFR_Client library at link time, the InterfaceRepo/Application
- test can not run on static builds (even though the client has the
- IFR_Client library linked in).
-
-Wed Jul 13 12:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Process_Semaphore_Test.cpp:
- Fixed compile error in previous change
-
-Wed Jul 13 07:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Process_Semaphore_Test.cpp:
- Only test timeouts when ACE_HAS_POSIX_SEM_TIMEOUT is defined
-
-Wed Jul 13 07:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-sunos5.5.h:
- Added include of config-posix.h, let this file try to sort out
- which posix parts Sun delivers
-
- * ace/config-sunos5.6.h:
- Sun 5.6 incorrectly reports that it has shm_open
-
-Wed Jul 13 07:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Process_Semaphore.cpp:
- Removed commented out explicit template instantiations
-
- * ace/Containers_T.h:
- Small doxygen fix
-
-Tue Jul 12 22:59:12 UTC 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * html/index.html:
-
- Fixed a typo which was introduced in this HTML file for
- my earlier checkin.
-
-Tue Jul 12 16:17:38 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu> t
-
- * Updated all the COPYING files to reflect the revised DOC
- software open-source license. Thanks to Angela Ziegenhorn
- <Angela.Ziegenhorn@veritas.com> for these modifications.
-
-Tue Jul 12 18:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Thread_Manager.cpp (remove_thr_all):
- Don't just delete each Thread_Descriptor, but call remove_thr
- for each Thread_Descriptor, this method will add the descriptor
- to the freelist and handle all other cleanup actions. Fixes
- some invalid reads we found in some RTCorba tests
-
-Tue Jul 12 17:15:00 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Flow.cpp:
- * protocols/ace/RMCast/Protocol.h:
-
- Added missing includes.
-
-Tue Jul 12 14:46:53 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Parameters.h:
-
- Forgot to add this file for Mon Jul 11 20:08:51 2005.
-
-Mon Jul 11 12:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-win32-msvc-8.h:
- Only define ACE_HAS_SIG_ATOMIC_T when not building for WinCE.
- Thanks to Mitscher Dubreus <ofup at voila dot fr> for reporting
- this.
-
-Mon Jul 11 12:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Thread_Manager.inl:
- Initialise pointer with 0
-
-Mon Jul 11 20:08:51 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Flow.cpp:
- * protocols/ace/RMCast/Flow.h:
-
- Implemented flow control stack element.
-
- * protocols/ace/RMCast/Acknowledge.cpp:
- * protocols/ace/RMCast/Acknowledge.h:
- * protocols/ace/RMCast/Fragment.cpp:
- * protocols/ace/RMCast/Fragment.h:
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Link.h:
- * protocols/ace/RMCast/Protocol.h:
- * protocols/ace/RMCast/Reassemble.cpp:
- * protocols/ace/RMCast/Reassemble.h:
- * protocols/ace/RMCast/Retransmit.cpp:
- * protocols/ace/RMCast/Retransmit.h:
- * protocols/ace/RMCast/Socket.cpp:
- * protocols/ace/RMCast/Socket.h:
-
- Made protocol parameters configurable on a per-instance
- basis.
-
- * protocols/examples/RMCast/Send_Msg/Protocol.h:
- * protocols/examples/RMCast/Send_Msg/Receiver.cpp:
-
- Made receiver print throughput information.
-
-Mon Jul 11 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.h:
- Doxygen improvements
-
-Mon Jul 11 08:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added Bug_2174_Regression to the list of tests. It will fail
- until the fix for this bug is in the archive
-
-Sun Jul 10 23:24:12 UTC 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * etc/DAnCE.doxygen:
-
- Added doxygen configuration file for DAnCE.
-
-Sat Jul 9 06:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.h:
- Doxygen improvements
-
-Sat Jul 9 06:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.inl (thr_cancel):
- Fixed VxWorks implementation. Thanks to Abhijit Sachdev <abhi
- at qualcomm dot com> for motivating this fix.
-
-Fri Jul 8 15:42:18 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Array_Map.h: Extended the range of Sun C++ compilers not
- providing a fully standards-compliant STL to include C++ 5.7
- (Studio 10). To include a compliant STL would break backward
- binary compatibility with C++ 5.0 - 5.6, so Sun won't (yet)
- do it. They do, however, include Stlport 4 with C++ 5.7. You can
- enable this by building ACE with stlport=1.
-
- * ace/Basic_Types.h (ACE_ULongLong): Added a name to the anonymous
- struct declared in the anonymous union. Silences a warning from
- Sun Studio 10.
- Added __amd64 to the "little endian" machine indicators. Corrects
- this check for Solaris 10 x86.
-
- * ace/config-sunos5.10.h: Noted that Studio 10 (C++ 5.7) works
- as well.
-
- * include/makeinclude/platform_sunos5_sunc++.GNU: If -fast is required,
- be sure it goes to the left of any -xarch options on the command
- line, else it'll override -xarch. Also, added support for building
- with stlport=1 on Studio 10 (C++ 5.7).
-
- * tests/CDR_Array_Test.cpp: When saying "Data OK", print type
- name (%s), not truncated pointer (%d).
-
-Fri Jul 8 12:37:15 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/QoS/SOCK_Dgram_Mcast_QoS.cpp (subscribe): Added checks
- to guard against cases where the qos_session is NULL. Thanks to
- Dom Monteiro <d dot monteiro at netia dot net> and Yamuna for
- isolating the problem.
-
-Fri Jul 8 09:52:02 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm:
-
- Utilize the MakeProjectBase to minimize the code in this module.
-
-Fri Jul 8 11:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.inl (thr_cancel):
- Added implementation for VxWorks.
-
-Fri Jul 8 08:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_string.cpp:
- Added include of OS_NS_stdio.h when ACE_LACKS_STRERROR is not
- defined
-
-Thu Jul 7 18:11:29 2005 Steve Huston <shuston@riverace.com>
-
- * configure.ac:
- * ace/README:
- * ace/config-WinCE.h:
- * ace/config-mvs.h:
- * ace/config-openvms.h:
- * ace/config-psos-diab.h:
- * ace/config-psos-diab-mips.h:
- * ace/config-psos-diab-ppc.h:
- * ace/config-psos-tm.h:
- * ace/config-psosim-g++.h:
- * ace/config-rtems.h:
- * ace/config-sunos5.7.h:
- * ace/config-tandem-nsk-mips-v2.h:
- * ace/config-tandem-nsk-mips-v3.h:
- * ace/config-vxworks5.x.h:
- * ace/config-win32-interix.h:
- * ace/config-win32-visualage.h:
- * ace/OS_NS_string.{h cpp}:
- * m4/config_h.m4: Removed all references to sys_nerr and
- ACE_LACKS_SYS_NERR. These are old, hacky ways to check things
- that can be done better (see below).
-
- * ace/OS_NS_string.{h cpp} (strerror): Check for an invalid errnum
- value by checking the return value of strerror(); supply a
- "Unknown error %d" message if it's bad, and set errno to EINVAL.
-
- * ace/Log_Msg.cpp (log): Use ACE_OS::strerror() and its new return
- value to check for the need to try another way to format 'p' and
- 'm' messages. Windows is now the only special case.
-
- * ace/Select_Reactor_Base.cpp: Include "Timer_Queue.h" instead of
- "Timer_Heap.h" to get the appropriate definitions and inclusion of
- other needed headers; in this case, Recursive_Thread_Mutex.h. Fixes
- compile errors on Solaris 10.
-
- * include/makeinclude/platform_sunos5_sunc++.GNU: Changed -xarch= from
- v9 to generic64 when using "buildbits=64" on Sun Studio 10
- (C++ 5.7). This works for both Sparc and x86 architectures.
-
-Thu Jul 7 17:24:21 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_orb_tests.lst:
-
- Scheduled regression test for bugzilla #2183.
-
-Thu Jul 7 09:27:56 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Modified the template code to avoid generating lines that end in
- spaces.
-
-Thu Jul 7 09:11:23 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Message_Block.cpp: Changed the order of the #includes
- to work around a problem when ACE is used with STLport. Thanks
- to Alvin Lee for reporting this. This fixes another part of
- bugid 2185.
-
-Tue Jul 5 22:05:19 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/DLL.cpp: Fixed a problem with ACE_DLL::close() where
- the dll_name_ might not be deleted if dll_handle_ was 0. Thanks
- to Alvin Lee <alvin.msg@gmail.com> for reporting this. This
- fixes the first part of bugid 2185.
-
-Tue Jul 5 18:13:29 2005 Steve Huston <shuston@riverace.com>
-
- * ACE-INSTALL.html: Removed Windows CE from the platforms Riverace
- supports and added links to some Riverace pages.
-
-Tue Jul 05 21:40:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/Mem_Map.cpp:
- Changed to consistently use ACE_OS::shm_open/ACE_OS::shm_unlink.
-
-Tue Jul 05 21:15:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread{.h .inl .cpp}:
- Fixes for compile problems in MACOS_X_Panther build.
-
- Outlined ACE_OS::cond_init() to gain some footprint reduction.
-
-Tue Jul 5 18:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_netdb.cpp (getmacaddress): Some layout fixes and
- also fixed a handle leak in the Sun part. Thanks to
- <likemartinma at 163 dot com> for reportint this. This fixes
- bugid 1875
-
-Tue Jul 5 08:30:07 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/OS_NS_netdb.cpp (getmacaddress): Call close() to avoid
- a handle leak. Thanks to W.M. van den Boogaard <wim dot vd dot
- boogaard at meco dot nl> for reporting this fix. This fixes
- bugid 2182.
-
-Mon Jul 04 21:08:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/INET_Addr.h:
- * ace/INET_Addr.cpp:
- Added support for specifying interface ids for IPv6 Link Local
- addresses either as part of the address (<ip>'%'<interface id>)
- separately through ACE_INET_Address::set_interface().
- Straightened out differences between Windows and Linux.
- ACE_INET_Address::get_host_addr() now returns <ip>'%'<interface
- id> formatted address when appropriate both on Windows
- (natively) and Linux (ACE). Thanks to Srikanth Gopal
- <sriki_666@yahoo.com> for reporting this problem.
-
-Mon Jul 4 04:21:53 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Array_Map.h (ACE_Array_Map):
-
- Work around non-standard compliant Sun C++
- std::reverse_iterator<> template arguments. Define a typedef
- specific to Sun C++ 5.5 or earlier.
-
-Sun Jul 3 14:59:25 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/APG/Config/Makefile.am:
-
- Regenerate.
-
-Sun Jul 03 18:40:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * include/makeinclude/rules.lib.GNU:
- Addition for VxWorks shared lib build.
-
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- Some cleanup and changes for shared lib builds.
-
-Fri Jul 01 14:40:25 2005 Gary Maxey <gary.maxey@hp.com>
-
- * ace/config-tandem-nsk-mips-v3.h:
- * ace/config-tandem-nsk-mips-v2.h:
- Defined platform specific format specifiers for 64 bit integers
-
-Fri Jul 1 12:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/config-doxygen.h:
- Added ACE_HAS_IPV6
-
-Fri Jul 1 11:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/interceptors.mpb
- Don't use pi as base lib.
-
- * bin/MakeProjectCreator/config/iorinterceptor.mpb
- * bin/MakeProjectCreator/config/loadbalancing.mpb
- * bin/MakeProjectCreator/config/rtscheduling.mpb:
- * bin/MakeProjectCreator/config/fault_tolerance.mpb
- * bin/MakeProjectCreator/config/ftclientorb.mpb
- Added pi and pi_server as base projects when needed
-
-Fri Jul 1 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- Added support for StackReserveSize and StackCommitSize
- template variables.
-
-Wed Jun 29 13:58:17 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/OS_NS_Thread.cpp:
-
- Somehow my previous checkin had many other differences besides the
- simple change that I made. I've remerged the corresponding code
- from the previous version, but I have no idea how the change
- happened.
-
-Wed Jun 29 18:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Default_Constants.h:
- Removed ACE_CONNECTOR_HANDLER_MAP_SIZE, it is not used at all
- anywhere in the repo. Found this when solving a problem with
- OpenVMS
-
-Wed Jun 29 12:33:18 2005 Steve Huston <shuston@riverace.com>
-
- * examples/APG/Config/config.mpc:
- * examples/APG/Config/Makefile.am:
- * examples/APG/Config/HA_Status.cpp: Simplify greatly to build
- HA_Status as a simple executable, not a DLL. Thanks to Gavin Yu
- <songtaoyu at lucent dot com> for noticing this problem.
-
- * examples/APG/Config/HA_Status.h: Removed.
-
- * THANKS: Added Gavin Yu to the Hall of Fame.
-
- * ace/Timer_Heap_T.cpp (dtor): When cleaning out the timer nodes,
- free_node() before doing the deletion() upcall. Prevents a user's
- handle_close() from doing a cancel_timer() and ripping the current
- timer node out from under us and causing free_node() to assert().
-
-Wed Jun 29 10:43:11 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/OS_NS_Thread.cpp:
-
- Port the ACE_DISABLE_WIN32_INCREASE_PRIORITY feature from earlier
- OCI versions of ACE, so that a user can disable the setting of a
- thread to the realtime priority class. This prevents hard lockups
- of Windows machines when running as an administrator, and allows
- many tests to function when not running as an admin.
-
-Tue Jun 28 20:58:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/core.mpb:
-
- inherit from new install base project for backwards compatibility.
-
- * bin/MakeProjectCreator/config/conv_lib.mpb:
- * bin/MakeProjectCreator/config/install.mpb:
- * bin/MakeProjectCreator/config/install_bin.mpb:
- * bin/MakeProjectCreator/config/install_headers.mpb:
- * bin/MakeProjectCreator/config/install_lib.mpb:
-
- New new base projects to offer more flexibility on what parts of
- a project are installed. install_bin, install_lib, and install_
- headers install binaries, libraries, and header files. install
- installs everything. conv_lib is for "convenience libraries", a
- set of objects that is packaged as a library for the developer's
- convenience. For most builds it builds a shared library that is
- installed without the cooresponding headers; but the automake
- build uses automake's native convenience library support --- a
- static library is built and linked into the executable(s).
-
-Tue Jun 28 08:41:03 2005 Ming Xiong <mxiong@tango.dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/global.features
-
- Added a new feature ziparchive which is needed by
- CIAO/DAnCE/ComponentPackager
-
-Mon Jun 27 09:38:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/README:
- Added documentation for ACE_USES_FIFO_SEM, ACE_HAS_LINUX_NPTL
- and ACE_HAS_POSIX_SEM_TIMEOUT.
-
-Mon Jun 27 22:22:00 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Array_Map.h (ACE_Array_Map):
-
- Added missing "const_pointer" typedef/trait.
-
- * tests/Array_Map_Test.cpp (index_operator_test):
-
- Work around compiler / STL implementations that cannot handle
- implicit conversions from iterator to const_iterator (e.g. due
- to missing template constructor) by accessing the iterators
- through a reference to const a Map. We don't strictly need a
- const Map for this test but having one allows us to exercise
- const iterators.
-
-Mon Jun 27 21:54:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-linux-common.h:
- Made inclusion of config-posix.h user selectable by defining
- ACE_HAS_LINUX_NPTL rather than including it by default since
- there are too many problems with that with the differences
- in the various Linux distros.
- Only with a Linux distro having the latest NPTL implemented
- (SuSE 9.3) have I been able to effectively use POSIX macros.
-
-Mon Jun 27 20:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Codecs.cpp:
- * ace/Configuration.cpp:
- * ace/DLL_Manager.cpp:
- * ace/Multihomed_INET_Addr.cpp:
- * ace/OS_NS_stdlib.cpp:
- * ace/Service_Config.cpp:
- Within the ACE lib ACE_LIB_TEXT must be used instead of ACE_TEXT
-
-Mon Jun 27 12:26:15 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Malloc_T.h: Updated the ACE_Malloc_T documentation to
- mention the limitations with find()/bind(). Thanks to Hanson Lu
- <suf_lu@yahoo.com> for reporting this.
-
-Mon Jun 27 10:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/rtcosscheduling.mpb:
- Added requires dummy_label. The RTCosScheduling library uses
- a non compliant way to register its interceptors. This is
- causing problems with the PI refactory so disable the building
- of this lib until that has been fixed. See also bugzilla 2163.
-
-Mon Jun 27 08:21:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Change to protect against race condition in sema based Event
- implementation.
-
- * ace/OS_NS_Thread.inl:
- Change in errno (EINTR) handling with FIFO based sema timedwait.
-
-Mon Jun 27 06:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Message_Queue_T.{h,cpp}:
- Initialise pointers with 0 and removed work around for Sun CC 5.1,
- we don't support that compiler already for years
-
-Mon Jun 27 01:03:12 2005 Stoyan Paunov <s.paunov@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/global.features:
- * MPC/config/global.features:
- * MPC/config/ZIP_Wrapper.mpb:
-
- Added a new feature to MPC regarding the ZIP_Wrappers used by
- the Repository Manager. I added this feature to make sure the RM
- would not be compiled unless the proper ZIP libraries are in place.
- Please check the README in CIAO/DAnCE/new_RepositoryManager
-
-
-Sun Jun 26 22:29:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-posix.h:
- Made test for POSIX_SEM TIMEOUTS more specific.
-
- * ace/config-linux-common.h:
- Added check to fix detection of POSIX_SEM TIMEOUTS for Linux
- >= 2.6 because of crippled POSIX macros (moved here from
- config-posix.h).
- Made implementation of FIFO based Semaphores for Linux < 2.6
- user selectable instead of default (default now back to
- situation before I added FIFO based Semaphores).
-
- * ace/OS_NS_Thread{.h .cpp .inl}:
- Added support for Process shared Events when Process shared
- pthread mutexes are not supported but FIFO Sems are configured.
- Fixed several issues concerning correct errno handling in
- case of timeouts.
-
- * tests/run_test.lst:
- Added missing Manual_Event_Test.
-
- * tests/Process_Manual_Event_Test.cpp:
- * tests/Process_Semaphore_Test.cpp:
- Improved protection against non-supporting builds.
-
- * tests/Dirent_Test.cpp:
- Made this test a little less braindead so it does not recognize
- FIFOs and PIPEs as directories anymore and tries chdir() on
- them which is quite annoying.
-
-Sat Jun 25 01:42:22 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Array_Map.h:
-
- MSVC++ 6's reverse_iterator adapter implementation is not
- standard's compliant. Adjusted reverse_iterator template
- parameters accordingly for this one case (i.e. _MSC_VER <=
- 1200).
-
- * ace/Array_Map.cpp (insert):
-
- MSVC++ 6 doesn't like the "typename" qualification in the first
- template argument to the std::pair<> return type. Removed it in
- for the _MSC_VER <= 1200 case.
-
- * tests/Array_Map_Test.cpp:
-
- MSVC++ 6 doesn't pick up the const rbegin/rend() methods without
- making the map object const, despite the fact the return value
- is assigned to a const_reverse_iterator. Work around the
- problem by casting the non-const map instance to a reference to
- a const map when _MSC_VER <= 1200.
-
-Fri Jun 24 22:49:16 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * protocols/ace/RMCast/Makefile.am:
-
- Regenerated.
-
-Fri Jun 23 19:58:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread.inl:
- Added include for non-inline builds.
-
-Fri Jun 23 19:38:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread.h:
- Removed extra semi-colon.
-
-Fri Jun 23 19:36:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * tests/Process_Manual_Event_Test.cpp:
- * tests/Process_Semaphore_Test.cpp:
- Added protection for singlethread builds.
-
-Fri Jun 24 11:42:43 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ACE-INSTALL.html:
-
- Added notes about testing and developing autotool support, and
- how to bootstrap that support into a workspace.
-
-Fri Jun 24 11:36:26 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Array_Map.cpp:
- * ace/Array_Map.inl:
-
- Added missing "typename" keyword before template parameter
- dependent types. Addresses VC++ 7.1/8 and Sun CC++ compile-time
- warnings and errors.
-
-Fri Jun 24 11:02:06 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/PerlACE/Process_Win32.pm:
-
- Fixed this module to work with the ACE_TEST_WINDOW environment
- variable that I added some time back.
-
-Fri Jun 23 13:36:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread.cpp:
- Fixed unused 'result' variable in ACE_OS::event_init().
-
-Fri Jun 23 13:00:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * tests/Process_Manual_Event_Test.cpp:
- * tests/Process_Semaphore_Test.cpp:
- Fixes for compile errors on Linux 64bit.
-
-Fri Jun 23 10:20:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread.inl:
- Made sure ETIME is always returned on timeouts of
- ACE_OS::sema_timedwait and not ETIMEDOUT.
-
- * tests/Semaphore_Test.cpp:
- Extended platform coverage of timeout tests.
-
- * tests/Auto_Event_Test.cpp:
- * tests/Manual_Event_Test.cpp:
- * tests/Process_Manual_Event_Test.cpp:
- * tests/Process_Semaphore_Test.cpp:
- * tests/run_test.lst:
- * tests/tests.mpc:
- Added new tests.
-
-Fri Jun 23 09:17:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * tests/INET_Addr_Test_IPV6.cpp:
- * tests/Multihomed_INET_Addr_Test_IPV6.cpp:
- * tests/SOCK_Send_Recv_Test_IPV6.cpp:
- * tests/SOCK_Test_IPV6.cpp:
- Fixed WCHAR compile problems.
-
-Fri Jun 23 08:49:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread{.h .cpp .inl}:
- Extended ACE_OS::event_xxx implementation to support platforms
- having either PThread support with Process Shared condition
- variables or POSIX semaphores with named (process shared)
- semaphore support or using the new FIFO based semaphores.
- Fixed manual_reset implementation of condition based events
- (event_pulse() did not work).
-
-Fri Jun 23 08:49:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-aix-4.x.h:
- Fixed problems by incorrectly reported ACE_HAS_POSIX_SEM_TIMEOUT
- by config-posix.h.
-
-Fri Jun 24 07:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/OS_NS_Thread.h:
- Removed extra semi-colon.
-
-Thu Jun 23 22:24:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-linux-common.h:
- Fixed typo (ACE_HAS_SHMOPEN should be ACE_HAS_SHM_OPEN).
-
-Thu Jun 23 17:14:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Dev_Poll_Reactor.cpp (schedule_timer, reset_timer_interval):
- * ace/Select_Reactor_T.cpp (schedule_timer, reset_timer_interval):
- * ace/WFMO_Reactor.inl (cancel_timer, schedule_timer, reset_timer_interval):
- If timer_queue_ is 0, don't attempt to call through it. Instead,
- return -1 with errno ESHUTDOWN for scheduling; return 0 for cancel.
-
-Thu Jun 23 12:10:16 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Array_Map.h:
- * ace/Array_Map.inl:
- * ace/Array_Map.cpp:
-
- Map implementation that focuses on small footprint and fast
- iteration. Search times are, however, linear (O(n)) meaning
- that this map isn't suitable for large data sets that will be
- searched in performance critical areas of code. Iteration over
- large data sets, however, is faster than linked list-based maps,
- for example, since spatial locality is maximized through the use
- of contiguous arrays as the underlying storage.
-
- * ace/Makefile.am:
- * ace/ace.mpc:
-
- Added new Array_Map.* source files.
-
- * tests/Array_Map_Test.cpp:
-
- Regression test for ACE_Array_Map.
-
- * tests/Makefile.am:
- * tests/run_test.lst:
- * tests/tests.mpc:
-
- Added new Array_Map_Test regression test.
-
-Thu Jun 23 07:49:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Logging_Strategy.cpp (init):
-
- Changed to not delete output stream when wipeout_logfile_ is
- set, as that may result in a double delete when ownership of
- the new stream is transferred to this->log_msg_.
-
- Changed to not delete existing output stream if a new one is
- not been created.
-
- Thanks to Mark Callaghan and Ossama Othman for assistance.
-
-Thu Jun 23 12:34:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-posix.h:
- Fixed problems for single threading builds.
-
-Thu Jun 23 10:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * man/Makefile.am:
- * man/man3/Makefile.am:
- Removed these files because are also not part of the release
-
-Wed Jun 22 20:29:39 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/OS_NS_Thread.h:
-
- Removed extra semi-colon. Fixes g++ 4.0 builds.
-
-Wed Jun 22 19:11:23 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * THANKS:
-
- Added Mark Callaghan to the Hall of Fame.
-
- * ace/Log_Msg.cpp (msg_ostream):
-
- Close, do not delete, the file stream in the
- ACE_LACKS_IOSTREAM_TOTALLY case, as is done in the
- ~ACE_Log_Msg() destructor. Addresses memory management issues.
- Thanks to J.T. Conklin and Mark Callaghan for pointing out the
- problem and suggesting the fix.
-
- Do not reset the ostream_ and delete_ostream_ attributes if
- the pointer to ostream_ is equal to the ostream argument passed
- to this method. Prevents premature destruction of the ostream.
- Thanks to Mark Callaghan for suggesting this fix.
-
-Wed Jun 22 19:55:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread{.h .inl}:
- Oops, fixed some more wchar problems.
-
-Wed Jun 22 19:16:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_sys_mman.inl:
- * ace/OS_NS_Thread{.h .inl .cpp}:
- * ace/INET_Addr.cpp:
- * ace/SOCK_Dgram_Mcast.cpp:
- Fixed wchar problems in arguments and variables.
-
- * ace/config-linux-common.h:
- Undef ACE_HAS_SHMOPEN after having included config-posix.h as
- there are some things to check out here before really using
- ::shm_open()!
-
-Wed Jun 22 09:25:12 2005 Gary Maxey <gary.maxey@hp.com>
-
- * ace/config-lite.h:
- Added __TANDEM platform to ACE_UNUSED_ARG macro
-
-Wed Jun 22 12:24:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-posix.h:
- Added test to set new macro ACE_HAS_POSIX_SEM_TIMEOUT when supported.
-
- * ace/config-linux-common.h:
- Added include for config-posix.h to test for more supported POSIX
- functionality.
- Added special test for Linux kernels < 2.6 because these falsely
- report certain POSIX support while not having that in reality
- (f.i. ACE_HAS_POSIX_SEM with ACE_HAS_POSIX_SEM_TIMEOUT).
-
- * ace/config-lite.h:
- Added test to undef (new) macro ACE_USES_FIFO_SEM (see below) when
- other macro settings invalidate this one.
-
- * ace/os_include/os_pthread.h:
- Extended test to prevent definition of ACE_sema_t when ACE_USES_FIFO_SEM
- is defined.
-
- * ace/OS_NS_Thread{.h .inl .cpp}:
- Added new implementation of ACE_OS::sema_XXX methods based on FIFOs
- (derived from W. Richard Stevens, UNIX Network Programming V2)
- active when !ACE_HAS_POSIX_SEM && ACE_USES_FIFO_SEM.
- Offshoot of customer request for process shareable solution for Linux
- 2.4.xx kernels.
-
- Outlined most ACE_OS::mutex_XXX and ACE_OS::event_XXX methods resulting
- in a) ~7 Kb footprint reduction (Linux 2.6) and b) lessened dependency
- complexities allowing later introduction of another Event platform
- emulation.
-
-
-Wed Jun 22 08:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/build_core_exe.bor:
- * include/makeinclude/build_core_library.bor:
- Removed these files, not used anymore
-
-Wed Jun 22 08:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/SOCK_Test_IPv6.cpp:
- Fixed compile errors on Linux when ACE_HAS_IPV6 has been defined
-
-Wed Jun 22 07:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/SOCK_Dgram_Mcast.cpp:
- Fixed compile errors on Linux when ACE_HAS_IPV6 has been defined
-
- * include/makeinclude/compiler.bor:
- No need anymore to include ace_flags.bor
-
- * include/makeinclude/ace_flags.bor:
- Removed this file, not needed anymore
-
-Tue Jun 21 18:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/compiler.bor:
- Removed -a8 and -b from the compiler flags, this are the defaults
- for the compiler, so no need to explicitly specify them. Thanks to
- Chad about informing me that -b is the default.
-
-Tue Jun 21 07:30:58 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/global.mpb:
-
- Set libpaths to '.' since libout is set to '.' as well.
-
-Mon Jun 20 20:07:45 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Support for the bug fix where the 'postcommand' wouldn't be
- applied if there was more than one output file per input file.
-
-Mon Jun 20 16:45:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Asynch_IO.cpp: Added explicit template instantiations for
- ACE_Refcounted_Auto_Ptr<ACE_Handler::Proxy, ACE_SYNCH_MUTEX>.
-
-Mon Jun 20 11:36:21 2005 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_sys_socket.inl (closesocket): Removed the
- ACE_OS::shutdown() call in an HP-UX block. Calling shutdown breaks
- an often-used idiom in UNIX programming of forking a new process
- to handle a connection and closing the handle in the parent. Doing
- a shutdown() before close() initiates a TCP close even though there
- are multiple handles to the same socket. Thanks to Doug Schmidt
- and Howard Finer for the exchange that led to this change. This
- reverts a change made earlier:
- Thu Jan 1 17:56:31 2004 Steve Huston <shuston@riverace.com>
-
-Mon Jun 20 09:46:24 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Fixed a long standing bug where the libpath set in a Define_Custom
- was not utilized.
-
-Mon Jun 20 15:35:42 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Acknowledge.cpp:
- * protocols/ace/RMCast/Fragment.cpp:
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Protocol.h:
- * protocols/ace/RMCast/Reassemble.cpp:
-
- Made code VC6-compatible.
-
-Mon Jun 20 11:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/bidir_giop.mpb:
- Added pi as base project, this was implicitly in the past because
- portableserver was based on pi.
-
-Mon Jun 20 10:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/portableserver.mpb:
- The portableserver library is not dependent on pi anymore.
- The new pi_server library is dependent.
-
- * bin/MakeProjectCreator/config/ftrtevent.mpb:
- * bin/MakeProjectCreator/config/ftrteventchannel.mpb:
- * bin/MakeProjectCreator/config/ifrservice.mpb:
- These projects use functionality of pi_server, so added that
- as base project
-
- * bin/MakeProjectCreator/config/rtportableserver.mpb:
- * bin/MakeProjectCreator/config/messaging.mpb:
- Added pi as base project, this was implicitly in the past because
- portableserver was based on pi.
-
-Fri Jun 17 17:37:53 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/ciao_servant_dnc.mpb:
-
- Added header_outputext to clean up the generated header files on
- request.
-
-Fri Jun 17 17:22:13 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Acknowledge.cpp:
- * protocols/ace/RMCast/Acknowledge.h:
- * protocols/ace/RMCast/Fragment.cpp:
- * protocols/ace/RMCast/Fragment.h:
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Protocol.cpp:
- * protocols/ace/RMCast/Protocol.h:
- * protocols/ace/RMCast/Reassemble.cpp:
- * protocols/ace/RMCast/Reassemble.h:
- * protocols/ace/RMCast/Retransmit.cpp:
- * protocols/ace/RMCast/Retransmit.h:
- * protocols/ace/RMCast/Simulator.h:
- * protocols/ace/RMCast/Socket.cpp:
- * protocols/ace/RMCast/Socket.h:
-
- Implemented message fragmentation.
-
- * protocols/examples/RMCast/Send_Msg/Protocol.h:
- * protocols/tests/RMCast/Protocol.h:
- * protocols/tests/RMCast/Sender.cpp:
-
- Changed to send messages that would require fragmentation.
-
-Fri Jun 17 09:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/pi_server.mpb:
- New base project for pi_server. Will contain all needed portable
- interceptor functionality specific for the server side
-
-Fri Jun 17 08:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Object_Manager.cpp:
- Removed comment about very old gcc version
-
- * ace/Service_Config.h:
- Added new ACE_DYNAMIC_SERVICE_DIRECTIVE macro that makes it possible
- to load a service using a process_directive call that works with the
- normal service configurator and the xml based one. Thanks to
- Lothar Werzinger <lothar at xcerla dot com> for providing this
- new macro. We will use it then in TAO to load the services on
- demand.
-
-Thu Jun 16 07:38:57 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/SOCK_Stream.cpp (close): Removed the call to this->close_writer()
- since that functionality was done by ACE_SOCK::close(), which
- delegates to ACE_OS::closesocket(), which handles this
- automatically.
-
- * ace/Process.cpp (running): Only try to "kill" a process if
- the PID is valid. Thanks to Howard Finer <hfiner at sonusnet
- dot com> for contributing this.
-
- * ace/Pipe.h (ACE_Pipe): Updated the documentation for this class
- to clarify why it uses sockets on Windows. Thanks to Dave
- Varnell <Dave.Varvell@ni.com> for prompting this.
-
- * ace/INET_Addr.cpp (set): Changed the test of
-
- if (port_number < 0)
-
- to
-
- if (port_number == -1)
-
- to fix problems reported by Vemund Handeland
- <vemund.handeland@fantoft.no>
-
-Wed Jun 15 12:36:04 MST 2005 Trevor Fields <fields_t@ociweb.com>
-
- * bin/PerlACE/Run_Test.pm:
-
- Adding method to add a library path dynamically for the run test
- scripts.
-
-Wed Jun 15 17:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- reverse the libs, this solves a lot of problems in our static builds.
-
-Wed Jun 15 07:46:16 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * include/makeinclude/rules.bin.GNU:
-
- Resurrected rules.bin.GNU as it may be required by old
- hand-written makefiles.
-
-Wed Jun 15 07:36:14 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
-
- Removed the use of uniq for libpaths. This was a work-around for
- a bug in MPC which has been fixed.
-
-Wed Jun 15 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- Removed reverse, with this no static initializers where called
-
-Wed Jun 15 09:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- Use uniq for libpaths so that we don't generate things twice
-
-Wed Jun 15 09:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/templates/bor.mpd:
- Reversed the order in which the libs are generated. This make sure
- we first get the static created for ACE, then for TAO, etc. Fixes
- the problems in the CBX static build
-
-Tue Jun 14 17:52:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Thread_Manager.h: Improved documentation for the task_list()
- and task_all_list() methods.
-
-Tue Jun 14 14:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ACE-INSTALL.html:
- Updated Borland build instructions
-
-Tue Jun 14 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Reactor_Timer_Interface.{h,cpp}:
- Moved destructor to a new cpp file to fix Cygwin warnings
-
- * ace/ace.mpc:
- * ace/Makefile.am:
- Added Reactor_Timer_Interface.cpp
-
-Tue Jun 14 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/IO_Cntl_Msg.{h,cpp,inl}:
- Moved methods implemented in the header file to a new inl file.
- Fixes warnings in the Cygwin build
-
- * ace/ace.mpc:
- * ace/Makefile.am:
- Added IO_Cntl_Msg.cpp
-
-Tue Jun 14 11:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/auto_run_tests.pl:
- Fixed typo in comment
-
-Tue Jun 14 08:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/interceptors.mpb:
- * bin/MakeProjectCreator/config/portableserver.mpb:
- * bin/MakeProjectCreator/config/rtcorba.mpb:
- * bin/MakeProjectCreator/config/utils.mpb:
- Added pi as base project
-
-Mon Jun 13 13:50:53 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
-
- * bin/ciao_tests.lst:
-
- Added the node application tests to the autobuilds.
-
-Mon Jun 13 18:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/SCTP/SOCK_STREAM_clt.cpp:
- Fixed compile errors
-
-Mon Jun 13 13:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/make_release:
- Don't do LF->CRLF conversion for xls files, that are Microsoft
- Excel files. The RTCorba tests have such a file.
-
-Mon Jun 13 13:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/pi.mpb:
- New base project for the new PI library we will add soon to the
- archive. This PortableInterceptor libray will contain the
- ORBInitializer Registry, Policy Factory Registry and ORBInitInfo
- in the first version
-
-Mon Jun 13 12:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/SCTP/hist.{h,cpp}:
- * performance-tests/SCTP/SOCK_SEQPACK_clt.cpp:
- * performance-tests/SCTP/SOCK_STREAM_clt.cpp:
- Moved the hist struct with associated methods to the ACE_SCTP
- namespace. This should fix the last compile errors in Irix.
- Thanks to Doug McCorkle <mccdo at iastate dot edu> for providing
- the patches
-
-Mon Jun 13 10:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/kokyu_dsrt_scheduler_server.mpb:
- * bin/MakeProjectCreator/config/kokyu_dsrt_scheduler.mpb:
- Moved the codecfactory from the server to the normal project,
- also the clients need it
-
-Sun Jun 12 14:53:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Logging_Strategy.cpp (parse_args):
-
- Update comment to make it clear value is being converted from
- number of KB to number of bytes.
-
-Sun Jun 12 12:48:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * include/makeinclude/platform_g++_common.GNU:
- Fixed problem with GXX version detection when default Make
- shell is CMD.EXE and problems with different version reports
- with non-standard GCC implementations (like VxWorks:-).
-
- * include/makeinclude/wrapper_macros.GNU:
- Fixed problem with ACE version detection when default Make
- shell is CMD.EXE.
-
- * include/makeinclude/rules.local.GNU:
- Fixed problem with creation of .depend files when default Make
- shell is CMD.EXE.
-
- * include/makeinclude/rules.lib.GNU:
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- Changed to implement support for creation of shared libs for
- VxWorks targets.
-
-Sat Jun 11 11:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/kokyu_dsrt_scheduler_server.mpb:
- Added codecfactory as base
-
-Fri Jun 10 18:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/rtcosscheduling.mpb:
- Added missing base projexts. Thanks for JT for reporting this
-
-Fri Jun 10 16:03:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * tests/DLL_Test.cpp:
- Updated to use new 'ACE_HAS_DYNAMIC_LINKING' macro.
-
-Fri Jun 10 16:00:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/config-lite.h:
- Introduced new macro 'ACE_HAS_DYNAMIC_LINKING' to enable more
- generalized testing for platforms supporting dynamic linking
- than 'ACE_HAS_SVR4_DYNAMIC_LINKING' supports (which excludes
- WIN32, VxWorks and HPUX which *do* support dynamic linking).
-
-Fri Jun 10 15:53:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_main.h:
- * ace/OS_main.cpp:
- Changed implementation of 'ace_main' entrypoints for VxWorks to
- support shared library builds without resulting in 'undefined symbol'
- messages for 'ace_main_i'.
-
-Fri Jun 10 15:47:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_dlfcn.inl:
- Fixed VxWorks implementation of dlopen().
-
-Fri Jun 10 07:55:32 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * bin/tao_orb_tests.lst:
- Added new test for Alternate IIOP addresses.
-
-Fri Jun 10 13:16:53 2005 Simon McQueen <sm@prismtech.com>
-
- * ace/Reactor.cpp (register_handler):
-
- Backed out Thu Jun 9 11:12:39 2005 Steve Huston.
- It was causing test failures on Linux.
-
-Fri Jun 10 06:43:25 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Interpret flag_overrides of the custom_types->dependent setting
- as an array instead of a string. This makes things consistent
- with non-overridden values of dependent.
-
- * bin/create_ace_build:
- * bin/create_ace_build.pl:
-
- Inform users about using $MPC_ROOT/clone_build_tree.pl instead of
- these scripts.
-
- * bin/depgen.pl:
-
- Simplified/collapsed duplicated code from the VMS additions.
-
-Thu Jun 9 18:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Event.h:
- Doxygen improvements
-
- * bin/MakeProjectCreator/config/codecfactory.mpb:
- New base project for the new codecfactory for TAO
-
-Thu Jun 9 18:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added tao/tests/POA/Reference_Counting
-
-Thu Jun 9 11:47:31 2005 Steve Huston <shuston@riverace.com>
-
- * tests/Pipe_Test.cpp: Fixed wide-char text issues.
-
-Thu Jun 9 11:12:39 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Reactor.cpp (register_handler): When registering for one or more
- signals, set the event handler's reactor() pointer to the registered
- reactor. Makes this behavior consistent with all other registration
- types.
-
-Thu Jun 9 16:18:32 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Socket.cpp:
- * protocols/ace/RMCast/Socket.h:
-
- Implemented timed recv() and size().
-
-Thu Jun 9 13:16:53 2005 Simon McQueen <sm@prismtech.com>
-
- * bin/tao_other_tests.lst:
-
- Added Bug_2137_Regression test.
-
-Thu Jun 9 09:31:28 2005 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Updated with late release note submissions.
-
-Wed Jun 08 08:43:59 2005 Simon McQueen <sm@prismtech.com>
-
- * ACE version 5.4.6 released.
-
-Wed Jun 8 11:21:50 2005 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Updated with release note entries.
-
-Fri Jun 3 13:42:18 2005 Steve Huston <shuston@riverace.com>
-
- * ace/String_Base.h: Removed ACE_INLINE from the operator+ functions.
- The functions are defined in String_Base.cpp. Fixes compile errors
- on Solaris autoconf build.
-
- * examples/C++NPv2/AIO_Client_Logging_Daemon.cpp: Added missing
- #include for ace/Null_Mutex.h and ace/Null_Condition.h since this
- example uses ACE_Task<ACE_NULL_SYNCH>.
-
- * Kokyu/DSRT_Sched_Queue_T.h: Added missing #include "ace/Null_Mutex.h"
-
-Thu Jun 2 13:58:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Local_Tokens.cpp (~ACE_TSS_TPQ_Entry): Replaced missing '}' from:
- Mon May 30 18:10:56 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
-Wed Jun 1 18:33:29 2005 Steve Huston <shuston@riverace.com>
-
- * examples/C++NPv2/AC_Client_Logging_Daemon.cpp: Reordered some
- #include directives so files needed by ace/Connector.h are in before
- ace/Connector.h. Fixes optimized autoconf build on AIX.
-
-Wed Jun 1 12:19:27 2005 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_signal.inl: Reverted:
- Tue May 31 18:51:31 2005 Steve Huston <shuston@riverace.com>
- It broke builds on Linux and BSD, at least, with compile errors like:
- `::' does not have a class or union named `sigaction'
- I think this is probably an issue of including files in the wrong
- order and it only trips up HP-UX, but I'm not sure.
-
-Wed Jun 1 07:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Removed bug 2088 test for the time being, the fix isn't the correct one
- and now the test has wrong expectations
-
-Tue May 31 18:51:31 2005 Steve Huston <shuston@riverace.com>
-
- * ace/OS_NS_signal.inl (sigaction): Added "::" qualifier to references
- to "struct sigaction" to distinguish it from sigaction in the
- ACE_OS namespace. This was tripping up HP aC++ in certain use cases.
-
-Tue May 31 18:46:29 2005 Steve Huston <shuston@riverace.com>
-
- * ace/INET_Addr.cpp (set_address): When needing to plug in an
- IPv4-mapped IPv6 address, avoid any possibility of compiler struct
- member non-contiguous alignment. Use the ip6 address type and
- plug the values in where they go. Thanks to Robert Iakobashvili
- <coroberti at gmail dot com> for this idea.
-
-Tue May 31 21:45:10 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * NEWS:
-
- Updated RMCast-related information.
-
-Tue May 31 11:49:23 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Free_List.inl:
- * ace/Message_Queue_T.inl:
- * ace/POSIX_CB_Proactor.inl:
- * ace/SUN_Proactor.inl:
-
- Removed these empty inline files.
-
- * ace/Free_List.cpp:
- * ace/Free_List.h:
- * ace/Message_Queue_T.cpp:
- * ace/Message_Queue_T.h:
- * ace/POSIX_CB_Proactor.cpp:
- * ace/POSIX_CB_Proactor.h:
- * ace/SUN_Proactor.cpp:
- * ace/SUN_Proactor.h:
-
- Removed include directives for removed inline files.
-
- * ace/Timer_Queue_Adapters.cpp (activate):
-
- Moved method definition out of ACE_HAS_DEFERRED_TIMER_COMMANDS
- block. Fixes "unresolved symbol" link-time errors.
-
- * ace/Makefile.am (nobase_include_HEADERS):
-
- Removed newly removed inline file.
-
-Tue May 31 10:39:10 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/String_Base.inl:
- * ace/String_Base.cpp:
-
- Move operator+=() methods from .inl to .cpp in an effort to
- reduce footprint.
-
-Mon May 30 18:10:56 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Addr.cpp:
- * ace/Addr.inl:
- * ace/Event_Handler_T.cpp:
- * ace/Event_Handler_T.inl:
- * ace/Free_List.cpp:
- * ace/Free_List.inl:
- * ace/Hashable.cpp:
- * ace/Hashable.inl:
- * ace/IOStream_T.cpp:
- * ace/IOStream_T.inl:
- * ace/Local_Tokens.cpp:
- * ace/Local_Tokens.inl:
- * ace/Lock_Adapter_T.cpp:
- * ace/Lock_Adapter_T.inl:
- * ace/Malloc_T.cpp:
- * ace/Malloc_T.inl:
- * ace/Map_T.cpp:
- * ace/Map_T.inl:
- * ace/Message_Block.cpp:
- * ace/Message_Block.inl:
- * ace/Message_Queue.cpp:
- * ace/Message_Queue.inl:
- * ace/Message_Queue_T.cpp:
- * ace/Message_Queue_T.inl:
- * ace/POSIX_CB_Proactor.cpp:
- * ace/POSIX_CB_Proactor.inl:
- * ace/POSIX_Proactor.cpp:
- * ace/POSIX_Proactor.inl:
- * ace/Refcounted_Auto_Ptr.h:
- * ace/Refcounted_Auto_Ptr.inl:
- * ace/Refcounted_Auto_Ptr.cpp:
- * ace/Remote_Tokens.cpp:
- * ace/Remote_Tokens.inl:
- * ace/Reverse_Lock_T.cpp:
- * ace/Reverse_Lock_T.inl:
- * ace/SUN_Proactor.cpp:
- * ace/SUN_Proactor.inl:
- * ace/Shared_Memory_MM.cpp:
- * ace/Shared_Memory_MM.inl:
- * ace/Shared_Memory_SV.cpp:
- * ace/Shared_Memory_SV.inl:
- * ace/Strategies_T.cpp:
- * ace/Strategies_T.inl:
- * ace/Task.cpp:
- * ace/Task.inl:
- * ace/Thread_Manager.cpp:
- * ace/Thread_Manager.inl:
- * ace/Timer_Queue_Adapters.cpp:
- * ace/Timer_Queue_Adapters.inl:
- * ace/Timer_Queue_T.inl:
-
- Moved inlined virtual methods out of line. Addresses
- RTTI-related problems when using g++ 4.0's
- "-fvisibility-inlines-hidden" command line option.
-
- * ace/String_Base.cpp:
-
- Removed "ACE_INLINE" macros. They should not be used in this
- out-of-line source file.
-
- * ace/Makefile.am:
- * ace/ace.mpc:
-
- Added Refcounted_Auto_Ptr.cpp to the list of template files.
-
-Mon May 30 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Task.cpp:
- The Borland preview compiler is the only Borland compiler capable
- of handling the reinterpret cast
-
-Mon May 30 13:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/tao_orb_tests.lst:
- Added TAO/tests/Portable_Interceptors/Bug_2088/run_test.pl
-
-Mon May 30 09:34:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * include/makeinclude/platform_vxworks5.x_diab.GNU:
- * include/makeinclude/platform_vxworks5.x_g++.GNU:
-
- Removed these files since these platform configurations are
- not supported anymore with the current ACE/TAO releases.
- The currently supported platform configuration is the
- 'platform_vxworks5.5.x.GNU'.
-
-Mon May 30 09:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Array_Base.cpp:
- Initialise pointer with 0
-
-Mon May 30 08:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_aix_ibm.GNU:
- Don't use -qstaticinline in a 64bit build with Visual Age 6. When
- this option is specified TAO crashes strangely. Seems a problem
- in the Visual Age compiler in 64bit mode.
-
-Sun May 29 17:49:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/compiler.m4:
-
- Disable the use of gcc's symbol visibility on MacOSX, since it
- requires features of the ELF object file format not present in
- Mach-O. Longer term we need a feature check that explicitly
- tests for proper operation of symbol visibility instead of a
- list of systems where it's disabled.
-
-Fri May 27 15:32:15 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/ACE.h:
- * ace/ACE.cpp:
-
- Added a new ACE::wild_match() function which is used to support the
- TAO -ORBPreferredInterfaces option. wild_match was contributed by
- Kevin Heifner <heifner_k@ociweb.com>.
-
- * ace/SOCK_SEQPACK_Association.h:
- * ace/SOCK_SEQPACK_Connector.h:
- * apps/drwho/Protocol_Manager.cpp:
- * examples/APG/Reactor/Timers.cpp:
- * tests/Network_Adapters_Test.cpp:
-
- These files #included config.h which isn't safe, because it
- won't necessarilly pick up the correct symbols. For example, I
- caught this by trying to build ACE on Windows with
- __ACE_INLINE__ = 0. The files that #included config.h directly
- saw that it was defined as 0, but changing them to #include
- config-all.h instead, correctly saw that the symbol was
- undefined.
-
-Fri May 27 10:26:34 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Interpret custom_types->dependent as an array instead of a string.
- This is completely backward compatible since a string is just a
- one element array in the template language.
-
-Fri May 27 12:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_aix_ibm.GNU:
- When building for 64bit, make sure we enable the 64bit warnings
-
-Fri May 27 08:49:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/OS_NS_Thread.inl:
-
- Fixed possible NULL-pointer assignment for VxWorks implementation
- of ACE_OS::thr_sigsetmask().
-
-Fri May 27 00:40:19 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * bin/tao_orb_tests.lst:
-
- Added new recursive type Any insertion/extraction test to the
- test suite.
-
-Thu May 26 17:07:34 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/String_Base.inl:
- * ace/String_Base.cpp:
-
- Move all non-trivial functions out of the .inl file. Hopefully this
- will cause a net improvement to the footprint.
-
-Thu May 26 16:13:34 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/config-win32-msvc-6.h:
-
- The standard library that comes with vc6 is pre-standard c++,
- but it's close enough for many things. Enabling its use should
- be more portable. This was done long ago for the OCI versions of
- TAO (Since 1.2a), and was apparently overlooked until now.
-
-Thu May 26 15:22:10 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
-
- * Release:
-
- Added the contrib directory into the Release script.
-
-Thu May 26 18:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Thread_Manager.{h,cpp}:
- Added thr_state method to ACE_Thread_Manager so that we are able
- to retrieve the state of a certain thread.
-
-Thu May 26 07:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_cygwin32.GNU:
- * include/makeinclude/platform_freebsd.GNU:
- * include/makeinclude/platform_gnuwin32_common.GNU:
- * include/makeinclude/platform_osf1_3.2_cxx.GNU:
- * include/makeinclude/platform_osf1_4.x_cxx.GNU:
- * include/makeinclude/platform_osf1_4.x_g++.GNU:
- * include/makeinclude/platform_qnx_neutrino.GNU:
- * include/makeinclude/platform_rtems.x_g++.GNU:
- Simplified these files by using the ?= operator
-
-Wed May 25 15:51:03 2005 Steve Totten <totten_s@ociweb.com>
-
- * ace/OS_NS_stdio.inl:
- * ace/OS_NS_stdio.cpp:
- * ace/OS_TLI.inl:
- * ace/config-aix-4.x.h:
- * ace/config-posix.h:
- These files were using improper syntax to compare the value of
- _XOPEN_SOURCE against a constant that caused compilation errors on
- HP-UX 11.23 with HP aC++/ANSI C B3910B A.06.00. For example:
- #if defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
- was changed to:
- #if (defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >= 500)
-
- Thanks to Paul Koch <paul dot koch at mci dot com> for reporting
- this problem and providing the solution.
-
-Wed May 25 20:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/msvc_static_order.lst:
- Added new RTEvent_Skel and RTEvent_Serv libraries and removed
- RTOldEvent
-
-Tue May 24 20:09:28 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * bin/MakeProjectCreator/config/time.mpb:
-
- Inherit from svc_utils.mpb.
-
-Tue May 24 20:46:28 2005 Olli Savia <ops@iki.fi>
-
- * ace/config-irix6.x-common.h:
- * ace/config-linux-common.h:
- Changed incorrect define ACE_USES_NEW_TERMIOS to
- ACE_USES_NEW_TERMIOS_STRUCT.
-
-Tue May 24 09:31:42 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/acedefaults.mpb:
-
- Use $(ILIBMODIFIER) instead of $(LIBMODIFIER).
-
- * tests/Pipe_Test.cpp:
- * tests/Process_Mutex_Test.cpp:
-
- Added missing ACE_TEXT () around option strings. This was causing
- a very strange file to show up after the Process_Mutex_Test was
- run in the Borland unicode build and the Pipe_Test didn't run at
- all.
-
-Tue May 24 00:17:09 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/cidlc.mpb:
-
- Created a base project for cidlc & ccf project files.
-
-Tue May 24 07:58:09 2005 Olli Savia <ops@iki.fi>
-
- * ace/SSL/SSL_SOCK_Stream.h:
- Added include "ace/os_include/os_stdio.h" to fix compile
- problem on LynxOS. Thanks to Christine Ballard
- <christine.ballard at lmco dot com> for reporting the problem.
-
-Mon May 23 23:11:14 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
-
- * contrib/utility/*:
-
- Added the utility library.
-
-Mon May 23 16:38:13 2005 Steve Huston <shuston@riverace.com>
-
- * examples/Reactor/Proactor/post_completions.cpp: Made use of the
- ACE_POSIX_SIG_Proactor-based test dependent on
- ACE_HAS_POSIX_REALTIME_SIGNALS, not ACE_POSIX_SIG_PROACTOR.
- ACE_POSIX_SIG_PROACTOR indicates a preference for that proactor
- implementation when one is not specified; it's not a capability
- indicator. The presence of the ACE_POSIX_SIG_Proactor implementation
- is based on the ACE_HAS_POSIX_REALTIME_SIGNALS setting, so that's
- what's used to decide whether to explicitly use
- ACE_POSIX_SIG_Proactor. This fixes a build error on Mac OS X Tiger
- with autoconfigure, as well as any other platform with AIO
- support that doesn't declare a Proactor implementation preference.
- Thanks to J.T. Conklin for raising this issue and working on testing
- fixes.
-
-Mon May 23 14:52:19 2005 Justin Michel <michel_j@ociweb.com>
-
- * ACEXML/tests/util/util.mpc:
-
- Add missing $ Id tag.
-
-Mon May 23 13:02:25 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/String_Base.h:
- * ace/String_Base.inl:
- * ace/String_Base.cpp:
-
- Fixed some documentation bugs, and added some new features to
- this class. New efficient overloads for string concatenation.
- Fixed clear(1) to work as documented. Used a more optimal
- string growth when concatenating strings. Performance
- optimizations for string concatenation.
-
- * tests/SString_Test.cpp:
-
- Test the new string concatenation overloads.
-
- * bin/tao_other_tests.lst:
-
- Enabled new ImR tests, and grouped all ImR tests together.
-
-Mon May 23 12:26:19 2005 Steve Huston <shuston@riverace.com>
-
- * ace/Thread.h: Doxygen-ized the join() comments.
-
-Mon May 23 13:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Lib_Find.cpp:
- Reverted change below, causes compile errors with some compilers
-
-Mon May 23 12:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Lib_Find.cpp:
- Small const fix
-
-Mon May 23 10:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/ftrtevent.mpb:
- * bin/MakeProjectCreator/config/rtcorbaevent.mpb:
- Use rtevent_serv as base project. These projects use some rtevent
- implementation stuff so just the client side stubs are not enough.
-
- * bin/MakeProjectCreator/config/rteventexe.mpb:
- Use rtevent_skel as base project
-
-Mon May 23 10:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/rtevent_serv.mpb:
- * bin/MakeProjectCreator/config/rtevent_skel.mpb:
- New files, the RTEvent service is being split in 3 libs so
- we need some new base projects
-
-Mon May 23 05:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * bin/MakeProjectCreator/config/rtoldevent.mpb:
- Removed this file
-
- * bin/MakeProjectCreator/config/rteventlogadmin.mpb:
- Removed rtoldevent as base project
-
-Sun May 22 12:01:46 2005 Olli Savia <ops@iki.fi>
-
- * ace/High_Res_Timer.cpp:
-
- Fixed a typo in comment.
-
-Fri May 20 21:11:07 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/DLL.cpp (~ACE_DLL):
-
- Explicitly delete() this->dll_name_. It is normally delete()d
- in ACE_DLL::close(). However, that may not occur if full
- ACE_DLL initialization is interruepted due to errors
- (e.g. attempting to open a DSO/DLL that does not exist). Fixes
- a memory leak.
-
- * ace/Log_Msg.cpp (msg_ostream):
-
- Delete the previously allocated ostream prior to setting the new
- one, if necessary. Fixes a memory leak.
-
- * ace/Logging_Strategy.h (ACE_Logging_Strategy):
-
- Converted integer fields that are really booleans to be of type
- "bool", and reordered fields to avoid excessive alignment
- padding. Reduces size of this class by 8 bytes on most
- platforms.
-
- * ace/Logging_Strategy.cpp:
-
- Initialize fields in base member initializer list to prevent
- accidental use of uninitialized fields.
-
- Use C++ "true" and "false" instead of "1" and "0", respectively,
- when setting boolean field values.
-
- * ace/SString.h (ACE_Auto_String_Free):
-
- Corrected documentation suggesting use of
- ACE_Auto_Array_Ptr<char *>. The correct template argument is
- "char", not "char *".
-
- * tests/CDR_Test.cpp:
- * tests/Multicast_Test.cpp:
-
- Fixed memory leaks.
-
- * tests/Logging_Strategy_Test.cpp:
-
- Updated to be consistent with boolean field changes in
- ACE_Logging_Strategy class.
-
- * tests/TP_Reactor_Test.cpp (delete_reactor):
-
- Reordered finalization code to prevent memory leak.
-
-Fri May 20 19:05:22 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/Thread.h (ACE_Thread): Updated the documentation of
- ACE_Thread::join(). Thanks to Alan Balasuar
- <balasuar@gmail.com> for motivating this fix.
-
-Sat May 21 18:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/HTBP/Reactor_Tests/server.cpp:
- Fixed value computed is not used warning in GCC IA64 build
-
-Fri May 20 15:28:00 2005 Gary Maxey <gary.maxey@hp.com>
-
- * ace/config-lite.h
-
- Added TANDEM platform for ACE_NOTREACHED macro.
-
-Thu May 19 19:10:30 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * apps/Gateway/Gateway/Concrete_Connection_Handlers.cpp
- (handle_output):
-
- Removed
-
- ACE_ASSERT (errno == EWOULDBLOCK);
-
- since errno may have been changed by this point. Thanks to Ro
- Madhavan <ro_madhavan@sify.com> for reporting this.
-
-Thu May 19 18:50:23 2005 Steve Huston <shuston@riverace.com>
-
- * ace/ICMP_Socket.{h cpp inl}:
- * ace/Ping_Socket.{h cpp inl}:
- * tests/Network_Adapters_Test.{cpp, h}: Moved ICMP_Socket and
- Ping_Socket out of the ACE namespace and changed names to
- ACE_ICMP_Socket and ACE_Ping_Socket, respectively. Also fixed up
- some text strings with ACE_TEXT.
- ACE_ICMP_Socket now does not check for root euid - allow the OS to
- do whatever checks it requires/implements.
- Improved implementation of ACE_Ping_Socket.
- Thanks to Robert Iakobashvili for these improvements and changes.
-
-Thu May 19 15:59:38 2005 Steve Huston <shuston@riverace.com>
-
- * ace/SOCK.h: Clarified doc on close() - it sets the object's
- handle to ACE_INVALID_HANDLE.
-
-Thu May 19 08:58:48 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/INET_Addr.cpp:
- * ace/INET_Addr.inl:
-
- Moved remaining virtual methods out of line. See "Wed May 18
- 16:19:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>" for
- details.
-
-Thu May 19 15:21:00 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/taoidl3toidl2defaults.mpb:
-
- Added line
-
- after += TAO_IDL3_TO_IDL2_EXE
-
- to the config file to make sure that the executable is built
- before being used in a test, example or application. Thanks to
- Chad Elliott <elliott_c@ociweb.com> for suggesting the change.
-
-Thu May 19 14:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * netsvcs/clients/Logger/indirect_logging.cpp:
- * netsvcs/lib/Client_Logging_Handler.cpp:
- When we can't open the logger print out an error and exit with -1.
-
-Thu May 19 00:38:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * config-g++-common.h:
- * config-lite.h:
-
- Removed ACE_EXPORT_SINGLETON_{DECLARATION,DECLARE} macro
- definitions. They do not provide the expected behavior in g++
- 4.0 configurations, as they do in VC++ configurations.
-
-Wed May 18 16:19:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/ATM_Addr.cpp:
- * ace/ATM_Addr.inl:
- * ace/DEV_Addr.cpp:
- * ace/DEV_Addr.inl:
- * ace/FILE_Addr.cpp:
- * ace/FILE_Addr.inl:
- * ace/INET_Addr.cpp:
- * ace/INET_Addr.inl:
- * ace/MEM_Addr.cpp:
- * ace/MEM_Addr.inl:
- * ace/SPIPE_Addr.cpp:
- * ace/SPIPE_Addr.inl:
- * ace/Service_Types.cpp:
- * ace/Service_Types.inl:
- * ace/UNIX_Addr.cpp:
- * ace/UNIX_Addr.inl:
-
- Moved virtual method implementation out-of-line. Since the
- classes to which they belong are exported, inlining them will
- cause problems when attempting to perform a dynamic_cast<> in
- binaries built with g++ 4.0's -fvisibility-inlines-hidden
- command line option.
-
- * ace/Strategies_T.cpp (dump):
-
- Removed ACE_INLINE from this out of line method.
-
-Wed May 18 15:44:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * ace/Semaphore.cpp:
-
- Removed check for missing shm_open() since this causes problems
- for platforms supporting POSIX_SEM (and thus not using
- shm_open/open). Thanks to Raoul Gough <Raoul dot Gough at liffe
- dot com> for reporting this.
-
- * ace/config-openvms.h:
- Added ACE_LACKS_UNNAMED_SEMAPHORE to compensate for above
- change.
-
-Wed May 18 14:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/ASX/Message_Queue/buffer_stream.cpp:
- Initialise all pointers with 0
-
-Wed May 18 09:25:35 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
- * include/makeinclude/rules.lib.GNU:
- * include/makeinclude/platform_gnuwin32_common.GNU:
-
- Fixed a problem that I introduced in a previous change. Resource
- files were not being handled properly and the
- platform_gnuwin32_common.GNU file was referencing $(VSHOBJS1)
- which I removed.
-
- * include/makeinclude/all_in_one.GNU:
- * include/makeinclude/wrapper_macros.GNU:
- * include/makeinclude/rules.bin.GNU:
-
- Removed the file rules.bin.GNU and all references to it.
-
-Tue May 17 20:58:46 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * bin/MakeProjectCreator/config/taoidl3toidl2defaults.mpb:
-
- New file, a base project for the tao_idl3_to_idl2 executable,
- so it can be executed automatically in a test or example.
-
-Tue May 17 18:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/ASX/Message_Queue/ASX_Message_Queue.mpc:
- Don't build the buffer_stream exe when wchar is enabled, this
- example expects just char.
-
-Tue May 17 09:32:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/Collection_Test.cpp:
-
- Avoid casting between a pointer to a function and a pointer to
- an object. ISO C++ forbids such casts. Fixes a g++ 4.0
- warning.
-
-Tue May 17 07:50:07 2005 Justin Michel <michel_j@ociweb.com>
-
- * ace/Cache_Map_Manager_T.cpp:
- * ace/Cached_Connect_Strategy_T.cpp:
- * ace/Caching_Strategies_T.cpp:
- * ace/Caching_Utility_T.cpp:
- * ace/Cleanup_Strategies_T.cpp:
- * ace/Hash_Cache_Map_Manager_T.h:
- * ace/Hash_Cache_Map_Manager_T.cpp:
- * ace/QoS/QoS_Manager.h:
-
- Fix incorrect use of #pragma once.
-
- * ace/Functor.h:
- * ace/Functor.inl:
- * ace/Global_Macros.h:
- * ace/ace_wchar.h:
- * ace/config-win32-msvc.h:
-
- Add a new ACE_LACKS_NATIVE_WCHAR_T macro, which can be used to
- check whether a platform supports overloading on wchar_t without
- conflict. The existing ACE_WSTRING_HAS_USHORT_SUPPORT was
- incorrectly being used for two purposes. This setting should let
- us enable native wchar_t support on VC7+.
-
- * ace/OS_NS_time.inl:
-
- Add a static_cast<long> because time_t is 64bit on some platforms
- where long is 32 bit.
-
- * ace/OS_NS_unistd.inl:
-
- Mask out the X_OK(6) bit for the amode parameter of the access()
- function because this bit is illegal on Win32 and will assert.
-
- * ace/config-win32-msvc-7.h:
-
- Clarify comment on ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT.
-
- * ace/config-win32-msvc-8.h:
-
- Disable deprecation warning 4996, because the
- _CRT_SECURE_NO_DEPRECATE macro doesn't appear to work
- correctly.
-
- * ace/streams.h:
-
- Add missing "using std::ios_base".
-
-Mon May 16 21:39:30 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * ace/Ping_Socket.h (Ping_Socket):
-
- Corrected class name in Doxygen documentation.
-
-Mon May 16 19:18:14 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
- * examples/Makefile.am:
- * protocols/Makefile.am:
- * protocols/examples/Makefile.am:
-
- Adapt autoconf build to adjust to relocation of RMCast examples.
-
-Mon May 16 15:58:29 2005 Steve Huston <shuston@riverace.com>
-
- * ACE-INSTALL.html: Corrected the names of the Sun compilers supported.
- Thanks to Nick Todd <nicholas dot todd at gs dot com> for
- bringing this error to our attention.
-
- * THANKS: Added Nick Todd to the Hall of Fame.
-
-Mon May 16 12:33:29 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * THANKS:
-
- Added Mario Di Giacomo to the Hall of Fame.
-
- * ace/Service_Templates.cpp:
-
- Include "ace/SString.h" to pull in ACE_TString declaration.
- Thanks to Mario Di Giacomo <mdigiacomo at anteon dot com> for
- reporting the problem.
-
- * tests/Cache_Map_Manager_Test.cpp (find_test_cache):
-
- Fixed "variable may be used uninitialized" warning.
-
-Mon May 16 19:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Malloc.h:
- Doxygen improvement
-
-Mon May 16 10:57:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/Makefile.am:
-
- Reset DEFAULT_INCLUDES to address ambiguity between system's
- signal.h and semaphore.h headers and ACE's Signal.h and
- Semaphore.h headers on case insensitive file systems.
-
- This may be the best setting for all ACE/TAO Makefile.am's,
- but this is the only one that requires it.
-
-Mon May 16 10:56:31 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add ACE_LD_SEARCH_PATH and ACE_DLL_SUFFIX settings for
- darwin/MacOSX.
-
- Add ACE_HAS_NANOSLEEP feature test check.
-
-Mon May 16 10:49:10 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ace/POSIX_CB_Proactor.h:
-
- Add defined(__APPLE__) to conditional wrapping sigval_t type
- definition.
-
-Mon May 16 10:45:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * m4/ace.m4 (ACE_CONFIGURATION_OPTIONS):
-
- Changed *win* patterns to *win32* to avoid matching darwin,
- the MacOSX kernel.
-
-Mon May 16 15:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * include/makeinclude/platform_mingw32.GNU:
- * include/makeinclude/platform_sco5.0.0-nothread.GNU:
- * include/makeinclude/platform_sunos4_g++.GNU:
- * include/makeinclude/platform_sunos5_sunc++.GNU:
- * include/makeinclude/platform_unixware_g++.GNU:
- * include/makeinclude/platform_unixware_udk.GNU:
- * include/makeinclude/platform_win32_dmc.GNU:
- * include/makeinclude/platform_win32_interix.GNU:
- Simplified these files by using the ?= operator. This sets a value
- only when it is not set yet.
-
-Mon May 16 09:24:29 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/tao_orb_tests.lst:
-
- Enabled the Exposed_Policies test on Linux.
-
- * bin/tao_other_tests.lst:
-
- Added a !NO_IFR configuration to each IFR related test.
- The IFR_Service will not run on MacOS X unless TAO is built
- statically due to gcc's in ability to deal with template
- instantiated singletons correctly.
-
- Added a NO_LOADAVG configuration to avoid running the load average
- based test on platforms that do not have support for obtaining the
- load average from the system.
-
- Added a configuration for NO_MCAST for machines that do not have
- multicast capabilities or the multicast implementation is broken.
-
- Added !STATIC to two LoadManager tests to support static builds on
- Windows.
-
-Mon May 16 14:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ace/Active_Map_Manager.h:
- * ace/Base_Thread_Adapter.h:
- * ace/Process.h:
- * ace/QtReactor.h:
- Doxygen improvement
-
- * ace/QtReactor.cpp:
- Fixed compile problems with msvc6
-
- * examples/ASX/Message_Queue/buffer_stream.cpp:
- Use ACE_SIZE_T_FORMAT_SPECIFIER to print out an size_t variable
- with ACE_OS::sprintf
-
- * include/makeinclude/platform_hpux_aCC.GNU:
- * include/makeinclude/platform_hpux_gcc.GNU:
- * include/makeinclude/platform_irix6.x_g++.GNU:
- * include/makeinclude/platform_irix6.x_sgic++.GNU:
- * include/makeinclude/platform_linux.GNU:
- * include/makeinclude/platform_linux_borland.GNU:
- * include/makeinclude/platform_linux_cxx.GNU:
- * include/makeinclude/platform_macosx.GNU:
- Simplified these files by using the ?= operator. This sets a value
- only when it is not set yet. Also set some variables using ?= so
- that our users can easily define their own values.
-
- * include/makeinclude/platform_linux_icc.GNU:
- Disable warning 1572 (floating point warning), correct name of Qt
- library and only set several variables when they are not set yet
-
-Mon May 16 09:01:07 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/Conn_Test.cpp:
-
- Force this test to use threads (instead of fork) on MacOS X.
-
- * tests/FIFO_Test.cpp:
-
- Sleep 1 second (as is done on AIX and HP-UX) before attempting to
- receive from the fifo.
-
- * tests/MT_Reference_Counted_Event_Handler_Test.cpp:
-
- Set global_event_loop_thread_variable before activating the thread
- that may use it.
-
- * tests/Naming_Test.cpp:
-
- Allow the user to determine the location of the context file by
- the TMPDIR, TEMP and TMP environment variables.
-
- * tests/Pipe_Test.cpp:
- * tests/Process_Mutex_Test.cpp:
-
- Use the value from argv[0] instead of hardcoding the exe name.
- The hardcoded name does not work on Windows Release builds.
-
- * tests/Process_Strategy_Test.cpp:
-
- Use threads by default on HP-UX instead of fork.
- Added a timeout for the recv() call in
- Counting_Service::handle_input() for HP-UX only.
-
- * tests/run_test.lst:
-
- Added a configuration for NO_MCAST for machines that do not have
- multicast capabilities or the multicast implementation is broken.
-
- * tests/SSL/aix_hack_for_main.cpp:
- * tests/aix_hack_for_main.cpp:
-
- Removed these files. They are no longer needed due to MPC.
-
-Mon May 16 08:52:11 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * bin/MakeProjectCreator/config/crosscompile.mpb:
-
- Added lib_warning, require_warning and avoid_warning to the list
- of targets in the CROSS-COMPILE portion.
-
- * bin/MakeProjectCreator/config/rtcorbaevent.mpb:
-
- The RTCORBAEvent library requires the CosNaming library.
-
- * bin/MakeProjectCreator/templates/gnu.mpd:
-
- Support the MPC feature that will allow users to specify arbitrary
- input file dependencies.
-
- Changed the OBJS setting to use $(notdir) only if the source file
- contains ../ and added explicit rules for source files that are
- located in subdirectories.
-
- * include/makeinclude/platform_macosx_panther.GNU:
-
- Explicitly default the threads variable to threads=1. This
- was preventing ACE_TMCast from building.
- Change the optimization option to -O2. -O3 was causing some
- link problems in the IDL compiler.
-
- * include/makeinclude/platform_sunos5_sunc++.GNU:
-
- Allow users to override the inline and exceptions settings.
-
- * include/makeinclude/platform_vxworks5.5.x.GNU:
- * include/makeinclude/rules.local.GNU:
-
- Provide better support for building for VxWorks on a Windows host
- without Cygwin.
-
- * include/makeinclude/rules.lib.GNU:
-
- Changed the SHOBJS setting to be consistent with the OBJS setting.
- Also, removed VLOBJS and SHOBJS1 which were redundant and set
- exactly as SHOBJS was.
-
- * include/makeinclude/wrapper_macros.GNU:
-
- Set ec_typed_events to 1 by default. This matches the default for
- MPC features.
-
- * bin/pch_cmd.pl:
-
- Removed this file. It is no longer necessary.
-
-Mon May 16 08:44:14 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * ace/ACE.cpp:
- * ace/config-irix6.x-sgic++.h:
- * ace/config-qnx-neutrino.h:
- * ace/config-qnx-rtp-common.h:
- * ace/config-sunos5.5.h:
-
- Put ACE_LIB_TEXT around all ACE_CC_NAME definitions to support
- wide character builds on Solaris, QNX and IRIX.
-
- * ace/ACE_export.h:
-
- Added support for SunCC 5.6.
-
- * ace/Multihomed_INET_Addr.h:
- * ace/Multihomed_INET_Addr.cpp:
-
- Added an explicit constructor that takes a const char* for
- symmetry with the ACE_INET_Addr class.
-
- * ace/Naming_Context.cpp:
-
- Removed a bug workaround for aCC A.03.04. It is no longer a
- problem to specify other mmap base addresses when running
- 64-bit HP-UX applications.
-
- * ace/OS_NS_Thread.inl:
- * ace/config-macosx-panther.h:
- * ace/Sched_Params.cpp:
-
- MacOS X has pthread_getschedparam but has the ACE_LACKS_SETSCHED
- macro defined. I have added a new macro,
- ACE_HAS_PTHREAD_SCHEDPARAM, that can be defined to use
- pthread_getschedparam and pthread_setschedparam even when
- ACE_LACKS_SETSCHED is defined.
-
-
- * ace/OS_NS_Thread.cpp:
-
- Fixed an issue that arose within the static builds on Windows.
- The ACE_Thread_Mutex static data member of the
- TSS_Cleanup_Instance class was being used (in the
- TSS_Cleanup_Instance constructor) before it was statically
- initialized. I have switched it (and the condition variable
- associated with it) to a pointer that is allocated the first
- time into the TSS_Cleanup_Instance constructor.
-
- * ace/Process_Manager.cpp:
-
- Committing a change from Justin Michel <michel_j@ociweb.com>.
- The close() method failed to unregister the reactor on Windows.
-
- * ace/ace.mpc:
-
- Removed an unnecessary 'install' setting.
-
- * ace/config-sunos5.10.h:
-
- SunOS 5.10 has scandir (ACE_HAS_SCANDIR).
-
- * ace/os_include/sys/os_socket.h:
-
- When using LKSCTP, include <netinet/in.h> before <netinet/sctp.h>
- to avoid macro problems.
-
-Sun May 15 11:57:56 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * ace/INET_Addr.cpp (set): Changed the test from
-
- if (port_number < 0)
-
- to
-
- if (port_number == -1)
-
- to work around problems when (port_number & 0x80 != 0). Thanks
- to Vemund Handeland <vemund.handeland@fantoft.no> for reporting
- this.
-
-Mon May 16 11:35:00 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/tests/tests.mwc:
- * protocols/tests/RMCast/Protocol.h:
- * protocols/tests/RMCast/RMCast.mpc:
- * protocols/tests/RMCast/Receiver.cpp:
- * protocols/tests/RMCast/Sender.cpp:
- * protocols/tests/RMCast/run_test.pl:
-
- Added regression test with loss and reordering simulator
- for RMCast.
-
-Mon May 16 11:26:14 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * examples/RMCast/Makefile.am:
- * examples/RMCast/Send_Msg/Makefile.am:
- * examples/RMCast/Send_Msg/Protocol.h:
- * examples/RMCast/Send_Msg/README:
- * examples/RMCast/Send_Msg/Receiver.cpp:
- * examples/RMCast/Send_Msg/Send_Msg.mpc:
- * examples/RMCast/Send_Msg/Sender.cpp:
-
- Removed as part of the moving all RMCast-related
- code to protocols/.
-
-Mon May 16 11:22:09 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/examples/example_base.mpb:
- * protocols/examples/examples.mwc:
- * protocols/examples/RMCast/Makefile.am:
- * protocols/examples/RMCast/Send_Msg/Makefile.am:
- * protocols/examples/RMCast/Send_Msg/Protocol.h:
- * protocols/examples/RMCast/Send_Msg/README:
- * protocols/examples/RMCast/Send_Msg/Receiver.cpp:
- * protocols/examples/RMCast/Send_Msg/Send_Msg.mpc:
- * protocols/examples/RMCast/Send_Msg/Sender.cpp:
-
- Copyied from examples/RMCast as part of the moving
- all RMCast-related code to protocols/.
-
-
-Mon May 16 11:05:26 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * examples/RMCast/Send_Msg/Receiver.cpp:
- * examples/RMCast/Send_Msg/Sender.cpp:
-
- Showcase new features (see below).
-
-Mon May 16 10:58:43 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * protocols/ace/RMCast/Acknowledge.cpp:
- * protocols/ace/RMCast/Link.cpp:
- * protocols/ace/RMCast/Link.h:
- * protocols/ace/RMCast/Protocol.cpp:
- * protocols/ace/RMCast/Protocol.h:
- * protocols/ace/RMCast/Retransmit.cpp:
- * protocols/ace/RMCast/Socket.cpp:
- * protocols/ace/RMCast/Socket.h:
-
- Implemented message aging and unavailability reporting,
- reactor-compatible interface, and message size query
- interface.
-
- * protocols/ace/RMCast/README:
-
- Protocol documentation.
-
-Sat May 14 06:05:55 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ACE version 5.4.5 released.
-
-Local Variables:
-add-log-time-format: current-time-string
-End:
diff --git a/Kokyu/Kokyu_defs.h b/Kokyu/Kokyu_defs.h
index c2b83af847a..281b0ac42c0 100644
--- a/Kokyu/Kokyu_defs.h
+++ b/Kokyu/Kokyu_defs.h
@@ -24,6 +24,8 @@
#include "kokyu_export.h"
+class ACE_Allocator;
+
namespace Kokyu
{
typedef long Priority_t;
diff --git a/Kokyu/README b/Kokyu/README
index 9db0e95225b..2cd0f79a6f4 100644
--- a/Kokyu/README
+++ b/Kokyu/README
@@ -6,7 +6,7 @@ context of higher-level middleware. Kokyu currently provides real-time
scheduling and dispatching services for TAO's real-time Event Service
which mediates supplier-consumer relationships between application
operations. Kokyu also provides a scheduling and dispatching framework
-for threads. This is being used by the TAO RTCORBA 1.2 scheduler
+for threads. This is being used by the TAO RTCORBA 2.0 scheduler
implementations. For more information, see
ACE_wrappers/Kokyu/docs/Kokyu.html
diff --git a/Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc b/Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc
index 62da58ed055..3a0b0dd4185 100644
--- a/Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc
+++ b/Kokyu/tests/DSRT_MIF/DSRT_MIF.mpc
@@ -2,6 +2,5 @@
// $Id$
project: kokyu {
- avoids += ace_for_tao
exename = MIF
}
diff --git a/Kokyu/tests/EDF/test.cpp b/Kokyu/tests/EDF/test.cpp
index 0c6939ee613..b6bbe66a35c 100644
--- a/Kokyu/tests/EDF/test.cpp
+++ b/Kokyu/tests/EDF/test.cpp
@@ -145,7 +145,7 @@ int parse_args (int argc, ACE_TCHAR *argv[])
switch (c)
{
case 'p':
- sched_policy_str = ACE_TEXT_ALWAYS_CHAR(get_opts.opt_arg ());
+ sched_policy_str = ACE_TEXT_TO_CHAR_IN(get_opts.opt_arg ());
break;
case '?':
diff --git a/Kokyu/tests/FIFO/test.cpp b/Kokyu/tests/FIFO/test.cpp
index deb25823a3b..fcda380ded6 100644
--- a/Kokyu/tests/FIFO/test.cpp
+++ b/Kokyu/tests/FIFO/test.cpp
@@ -149,7 +149,7 @@ int parse_args (int argc, ACE_TCHAR *argv[])
switch (c)
{
case 'p':
- sched_policy_str = ACE_TEXT_ALWAYS_CHAR(get_opts.opt_arg ());
+ sched_policy_str = ACE_TEXT_TO_CHAR_IN(get_opts.opt_arg ());
break;
case '?':
diff --git a/Makefile.am b/Makefile.am
index 340e2a53ff1..40e551bbca6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,18 +20,10 @@ SUBDIRS += \
apps \
bin \
netsvcs \
- protocols
-
-if BUILD_EXAMPLES
-SUBDIRS += examples
-endif
-
-if BUILD_TESTS
-SUBDIRS += performance-tests
-SUBDIRS += tests
-endif
-
-SUBDIRS += \
+ performance-tests \
+ protocols \
+ examples \
+ tests \
websvcs \
@KOKYU@ \
@TAO@
@@ -39,3 +31,4 @@ SUBDIRS += \
ACLOCAL = @ACLOCAL@
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
+
diff --git a/NEWS b/NEWS
index f01562db0a3..f0c8d3b5caf 100644
--- a/NEWS
+++ b/NEWS
@@ -1,94 +1,10 @@
PLANNED MAJOR CHANGES "SOMETIME IN THE FUTURE" (i.e., exact beta not known)
===========================================================================
-. (Remedy) VxWorks 6.2 support
-
-USER VISIBLE CHANGES BETWEEN ACE-5.5 and ACE-5.5.1
-====================================================
-
-. Added support for the --enable-symbol-visibility configure option
- to the autoconf build infrastructure instead of solely relying on
- feature tests to enable/disable symbol visibility support. This
- avoids build problems with icc, etc.
-
-. Added support for the --enable-fl-reactor configure option to the
- autoconf build infrastructure to build the ACE_FlReactor library.
-
-. Added support for the --enable-qt-reactor configure option to the
- autoconf build infrastructure to build the ACE_QtReactor library.
-
-. Added support for the --enable-xt-reactor configure option to the
- autoconf build infrastructure to build the ACE_XtReactor library.
-
-. Fixed a bug that would cause timer IDs from ACE_Timer_Heap to be
- improperly duplicated under certain conditions (Bugzilla #2447).
-
-. Fixed ACE_SSL_Context::private_key(), context(), and dh_params() methods
- to allow retrying a file load after a failed call.
-
-USER VISIBLE CHANGES BETWEEN ACE-5.4.10 and ACE-5.5
-====================================================
-
-. Added a platform macros option "templates=manual", currently only
- applies to AIX 5.3 with XL 7 compiler. It allows the user to tell the
- compiler to set -qnotempinc and -qnotemplateregistry and works well
- in static builds.
-
-. ACE and its tests compile error free with GCC 4.1 pre release.
-
-. ACE_Recursive_Thread_Mutex::get_nesting_level() fixed for 64-bit Windows
- XP on amd64/EM64T hardware.
-
-. Many build-time fixes for Windows Mobile 5 and Windows PocketPC 2003 using
- Visual Studio .NET 2005 (VC8).
-
-. Added support for the --enable-tk-reactor configure option to the
- autoconf build infrastructure to build the ACE_TkReactor library.
-
-USER VISIBLE CHANGES BETWEEN ACE-5.4.9 and ACE-5.4.10
-====================================================
-
-. Fixed a bug in ACE_Timer_Heap_T::cancel().
-
-. Improved ACE_Time_Value support for boundary conditions.
-
-. Fixed problems with operator placement delete on certain C++ compilers.
-
-. Fixed a bug with the ACE_SPIPE_Acceptor on Windows.
-
-. Correctly set sockaddr_in.sin_len and sockaddr_in6.sin6_len on
- platforms that have these fields.
-
-. Avoided problems with namespace pollution for max() macros.
-
-. Many fixes for ACE_LACKS* and ACE_HAS* macros for autoconfig.
-
-USER VISIBLE CHANGES BETWEEN ACE-5.4.8 and ACE-5.4.9
+PLANNED MAJOR CHANGES TARGETED FOR ACE-5.4.8
====================================================
-. Added dozens of new ACE_LACKS and ACE_HAS defines which are used to
- simplify the ACE_OS layer
-
-. Constructors of ACE_Time_Value have been made explicit to prevent
- implicit conversions.
-
-. Added a shutdown() method to ACE_Barrier. The new method aborts the
- wait by all threads.
-
-. Changed the behavior of ACE_Message_Queue::enqueue_head() and
- enqueue_tail(). If the enqueued message block has other blocks
- chained to it via its next() pointer, the entire chain of blocks
- will be enqueued at once.
-
-. Improved the support for high-resolution timers with
- ACE_Timer_Queue_Adapter.
-
-. Make it possible to disable file caching in JAWS.
-
-. Improved ACE_Pipe implementation so that it uses localhost to avoid
- firewall problems.
-
-. Added Unicode support to the Service Configurator.
+. Subset ACE for TAO and TAO Services
USER VISIBLE CHANGES BETWEEN ACE-5.4.7 and ACE-5.4.8
====================================================
@@ -100,51 +16,9 @@ USER VISIBLE CHANGES BETWEEN ACE-5.4.7 and ACE-5.4.8
. TTY_IO overhaul
- Improved documentation.
- It is now possible to request infinite timeout in portable manner.
- This can be achieved by setting negative value to readtimeoutmsec.
+ This can be achived by setting negative value to readtimeoutmsec.
- Various bugs fixed and portability issues resolved.
-. Subset ACE for TAO and TAO Services
-
-. Support for Intel C++ 9.0 on Windows and Linux
-
-. Support for Microsoft Visual Studio 2005 (aka VC8) for Win32 as well
- as the Windows CE platforms Pocket PC 2003 and Windows Mobile 5.
- Solution/project files are generated with an appended "_vc8" for
- Win32 and "_WinCE" for the CE platforms. See
- ACE_wrappers/docs/CE-status.txt for more information.
-
-. Completed implementation of ACE_Dev_Poll_Reactor using the Linux epoll
- facility; tested on Red Hat Enterprise Linux 4.
-
-. The in-memory size of an ACE_RB_Tree will be smaller due to rearranged
- placement of pointers.
-
-. Added an optimization to CDR stream to ignores alignment when marshaling
- data. Use this new ACE_LACKS_CDR_ALIGNMENT compile-time option only
- when the ACE_DISABLE_SWAP_ON_READ macro is enabled. This new option
- requires ACE CDR engine to do both marshaling and demarshaling, and
- when this option is enabled the encoded streams are no longer
- compliant with the CORBA CDR specification.
-
-. Developed Feature Oriented Customizer (FOCUS) tool to enable
- specialization of middleware frameworks such as Reactor and Protocol
- framework. FOCUS provides an XML based transformation engine, where
- the transformations to specialize the components are captured in XML
- file and a weaver specializes the code.
-
-. Added support for unrolling ACE_OS::memcpy copy loop where
- applicable to improve performance. Autoconf tests empirically
- determine whether loop unrolling is at least 10% better than default
- version.
-
-. Added support for an ACE "versioned" namespace. When enabled, ACE
- library sources will be placed within a namespace of the user's
- choice or a namespace of the form ACE_5_4_7 by default, where
- "5_4_7" is the ACE major, minor and beta versions. The default may
- be overridden by defining the ACE_VERSIONED_NAMESPACE_NAME
- preprocessor symbol. Enable overall versioned namespace support by
- adding "versioned_namespace=1" to your MPC default.features file.
-
USER VISIBLE CHANGES BETWEEN ACE-5.4.6 and ACE-5.4.7
====================================================
diff --git a/PROBLEM-REPORT-FORM b/PROBLEM-REPORT-FORM
index efb132f9c79..3b9bc39c14b 100644
--- a/PROBLEM-REPORT-FORM
+++ b/PROBLEM-REPORT-FORM
@@ -43,7 +43,7 @@
To: ace-bugs@cs.wustl.edu
Subject: [area]: [synopsis]
- ACE VERSION: 5.5
+ ACE VERSION: 5.4.7
HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
@@ -88,4 +88,3 @@ transcript if at all possible. ]
SAMPLE FIX/WORKAROUND:
[If available ]
-
diff --git a/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationCxx.hpp b/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationCxx.hpp
index b7451969555..daede420625 100644
--- a/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationCxx.hpp
+++ b/TAO/CIAO/CCF/CCF/CodeGenerationKit/IndentationCxx.hpp
@@ -6,7 +6,6 @@
#define CCF_CODE_GENERATION_KIT_INDENTATION_CXX_HPP
#include <deque>
-#include <stack>
#include "CCF/CodeGenerationKit/IndentationBuffer.hpp"
@@ -35,12 +34,10 @@ namespace Indentation
public:
Cxx (Buffer<C>& out)
: out_ (out),
- position_ (0),
- paren_balance_ (0),
+ indentation_ (0),
spaces_ (2),
construct_ (OTHER)
{
- indentation_.push (0);
}
virtual
@@ -55,30 +52,11 @@ namespace Indentation
try
{
bool defaulting = false;
-
- if (!hold_.empty () && hold_.back () == '(')
- {
- unbuffer (); // We don't need to hold it any more.
-
- if (c == '\n')
- indentation_.push (indentation_.top () + spaces_);
- else
- indentation_.push (position_);
- }
-
switch (c)
{
case '\n':
{
hold_.push_back (c);
- position_ = 0; // Starting a new line.
-
- if (construct_ == CXX_COMMENT)
- {
- //std::cerr << "end comment" << endl;
- construct_ = OTHER;
- }
-
break;
}
case '{':
@@ -87,15 +65,12 @@ namespace Indentation
output_indentation ();
result = write (c);
ensure_new_line ();
-
- indentation_.push (indentation_.top () + spaces_);
-
+ indentation_++;
break;
}
case '}':
{
- if (indentation_.size () > 1)
- indentation_.pop ();
+ if (indentation_ > 0) indentation_--;
// Reduce multiple newlines to one.
while (hold_.size () > 1)
@@ -110,82 +85,65 @@ namespace Indentation
hold_.push_back (c);
+ // result = write (c);
+
+ //ensure_new_line ();
// Add double newline after '}'.
//
hold_.push_back ('\n');
hold_.push_back ('\n');
- position_ = 0;
+
break;
}
case ';':
{
- if (paren_balance_ != 0)
- {
- // We are inside for (;;) statement. Nothing to do here.
- //
- defaulting = true;
- }
- else
- {
- // Handling '};' case.
- //
+ // Handling '};' case.
+ //
- bool brace (false);
+ bool brace (false);
- if (hold_.size () > 1 && hold_.back () == '\n')
- {
- bool pop_nl (false);
+ if (hold_.size () > 1 && hold_.back () == '\n')
+ {
+ bool pop_nl (false);
- for (typename Hold::reverse_iterator
- i (hold_.rbegin ()), e (hold_.rend ()); i != e; ++i)
+ for (typename Hold::reverse_iterator
+ i (hold_.rbegin ()), e (hold_.rend ()); i != e; ++i)
+ {
+ if (*i != '\n')
{
- if (*i != '\n')
- {
- if (*i == '}') brace = pop_nl = true;
- break;
- }
+ if (*i == '}') brace = pop_nl = true;
+ break;
}
-
- if (pop_nl) while (hold_.back () == '\n') hold_.pop_back ();
}
- output_indentation ();
- result = write (c);
- position_++;
+ if (pop_nl) while (hold_.back () == '\n') hold_.pop_back ();
+ }
- if (brace)
- {
- hold_.push_back ('\n');
- hold_.push_back ('\n');
- }
+ output_indentation ();
+ result = write (c);
- if (construct_ != STRING_LITERAL && construct_ != CHAR_LITERAL)
- {
- ensure_new_line ();
- }
+ if (brace)
+ {
+ hold_.push_back ('\n');
+ hold_.push_back ('\n');
}
+ if (construct_ != STRING_LITERAL && construct_ != CHAR_LITERAL)
+ {
+ ensure_new_line ();
+ }
break;
}
case '\\':
{
- if (construct_ != CXX_COMMENT)
- {
- output_indentation ();
- hold_.push_back (c);
- position_++;
- }
- else
- defaulting = true;
-
+ hold_.push_back (c);
break;
}
case '\"':
{
- if (construct_ != CXX_COMMENT &&
- (hold_.empty () || hold_.back () != '\\'))
+ if (hold_.empty () || hold_.back () != '\\')
{
// not escape sequence
if (construct_ == STRING_LITERAL) construct_ = OTHER;
@@ -197,76 +155,16 @@ namespace Indentation
}
case '\'':
{
- if (construct_ != CXX_COMMENT &&
- (hold_.empty () || hold_.back () != '\\'))
+ if (hold_.empty () || hold_.back () != '\\')
{
// not escape sequence
if (construct_ == CHAR_LITERAL) construct_ = OTHER;
- else
- {
- //std::cerr << "char literal" << endl;
- construct_ = CHAR_LITERAL;
- }
-
- }
-
- defaulting = true;
- break;
- }
- case '(':
- {
- if (construct_ == OTHER)
- {
- // Hold it so that we can see what's coming next.
- //
- output_indentation ();
- hold_.push_back (c);
- position_++;
- paren_balance_++;
- }
- else
- defaulting = true;
-
- break;
- }
- case ')':
- {
- if (construct_ == OTHER)
- {
- if (indentation_.size () > 1)
- indentation_.pop ();
-
- if (paren_balance_ > 0)
- paren_balance_--;
+ else construct_ = CHAR_LITERAL;
}
defaulting = true;
break;
}
- case '/':
- {
- if (construct_ == OTHER)
- {
- if (!hold_.empty () && hold_.back () == '/')
- {
- construct_ = CXX_COMMENT;
- //std::cerr << "start comment" << endl;
- defaulting = true;
- }
- else
- {
- output_indentation ();
- hold_.push_back (c);
- position_++;
- }
- }
- else
- {
- defaulting = true;
- }
-
- break;
- }
default:
{
defaulting = true;
@@ -278,7 +176,6 @@ namespace Indentation
{
output_indentation ();
result = write (c);
- position_++;
}
}
catch (Full const&)
@@ -317,7 +214,6 @@ namespace Indentation
if (hold_.empty () || hold_.back () != '\n')
{
hold_.push_back ('\n');
- position_ = 0; // Starting a new line.
}
}
@@ -327,10 +223,10 @@ namespace Indentation
{
if (!hold_.empty () && hold_.back () == '\n')
{
- for (unsigned long i = 0; i < indentation_.top (); i++)
+ for (unsigned long i = 0; i < indentation_ * spaces_; i++)
+ {
write (' ');
-
- position_ += indentation_.top ();
+ }
}
}
@@ -345,8 +241,7 @@ namespace Indentation
{
result = out_.put (hold_.front ());
- if (result == traits_type::eof ())
- throw Full ();
+ if (result == traits_type::eof ()) throw Full ();
hold_.pop_front ();
}
@@ -357,9 +252,7 @@ namespace Indentation
private:
Buffer<C>& out_;
- unsigned long position_; // Current position on the line.
- unsigned long paren_balance_; // ( ) balance.
- std::stack<unsigned long> indentation_;
+ unsigned long indentation_;
unsigned long spaces_;
bool suppress_nl_;
@@ -367,7 +260,6 @@ namespace Indentation
enum Construct
{
OTHER,
- CXX_COMMENT,
STRING_LITERAL,
CHAR_LITERAL
};
diff --git a/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.cpp b/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.cpp
index e52750ba74e..feb4e10190f 100644
--- a/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.cpp
+++ b/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.cpp
@@ -178,34 +178,23 @@ namespace CCF
{
}
- PreprocessorImpl (TokenStream<char>& is, Symbols const& symbols)
+ PreprocessorImpl (TokenStream<char>& is)
: loc_ ("C"),
state_ (State::preprocessing),
ln_ (1),
is_ (is),
- dsa_ (copy_),
- symbols_ (symbols),
- balance_ (0),
- skip_balance_ (0)
+ dsa_ (copy_)
{
}
virtual Token
next ()
{
- while (true)
- {
- if (line_.empty ())
- scan_line ();
-
- Token t (line_.front ());
- line_.pop_front ();
+ if (line_.empty ()) scan_line ();
- if (skip_balance_ != 0 && t != Token::eos)
- continue;
-
- return t;
- }
+ Token t (line_.front ());
+ line_.pop_front ();
+ return t;
}
private:
@@ -310,15 +299,7 @@ namespace CCF
}
}
- if (eos)
- {
- if (balance_ > 0)
- {
- cerr << "missing endif directive at the end of file" << endl;
- }
-
- line_.push_back (Token::eos);
- }
+ if (eos) line_.push_back (Token::eos);
}
@@ -331,8 +312,7 @@ namespace CCF
if (std::isalpha<char> (t, loc_))
{
- for (;std::isalpha<char> (t, loc_); t = ls_get ())
- lexeme += t;
+ for (;std::isalpha<char> (t, loc_); t = ls_get ()) lexeme += t;
ls_ret (t);
}
@@ -342,91 +322,11 @@ namespace CCF
if (lexeme == "include")
{
scan_include ();
- return;
- }
- else if (lexeme == "if")
- {
- ++balance_;
- }
- else if (lexeme == "ifdef" || lexeme == "ifndef")
- {
- ++balance_;
-
- string symbol;
- Token t (ls_get_ns ());
-
-
- if (is_first_id_char (t))
- {
- for (;is_id_char (t); t = ls_get ())
- symbol += t;
- ls_ret (t);
- }
-
- if (!symbol.empty ())
- {
- //cerr << "symbol " << symbol << endl;
-
- if (skip_balance_ == 0) // Unless we are already skipping.
- {
- bool defined (symbols_.find (symbol) != symbols_.end ());
-
- if ((!defined && lexeme == "ifdef") ||
- (defined && lexeme == "ifndef"))
- skip_balance_ = balance_;
- }
- }
- else
- {
- cerr << t.line () << ": no symbol specified for " << lexeme
- << " directive" << endl;
- throw EOS (); //@@ tmp
- }
}
- else if (lexeme == "elif" || lexeme == "else")
+ else
{
- // For now we treat elif just like else.
+ // Ingnore any other directive.
//
- if (skip_balance_ == balance_)
- skip_balance_ = 0;
- else if (skip_balance_ == 0) // Unless we are already skipping.
- skip_balance_ = balance_; // Start skipping now.
- }
- else if (lexeme == "endif")
- {
- if (skip_balance_ == balance_)
- skip_balance_ = 0;
-
- if (balance_ > 0)
- --balance_;
- else
- {
- cerr << t.line () << ": extraneous endif directive" << endl;
- throw EOS (); //@@ tmp
- }
- }
- else if (lexeme == "error")
- {
- if (skip_balance_ == 0)
- {
- string msg;
- Token t (ls_get_ns ());
-
- if (t != '\n')
- {
- for (;t != '\n'; t = ls_get ())
- msg += t;
- ls_ret (t);
- }
-
- cerr << t.line () << ": error: " << msg << endl;
- throw EOS (); //@@ tmp
- }
- }
-
- // By default we replace this directive with a newline.
- //
- {
Token t ('\n', line_.front ().line ());
line_.clear ();
line_.push_back (t);
@@ -884,18 +784,6 @@ namespace CCF
return t == ' ' || t == '\t';
}
- bool
- is_first_id_char (Token const& t)
- {
- return std::isalpha<char> (t, loc_) || t == '_';
- }
-
- bool
- is_id_char (Token const& t)
- {
- return std::isalnum<char> (t, loc_) || t == '_';
- }
-
private:
struct State
{
@@ -922,12 +810,6 @@ namespace CCF
std::deque<Token> copy_;
DequeStreamAdapter dsa_;
std::deque<Token> ls_buffer_;
-
- Symbols symbols_;
- unsigned long balance_; // Current #if*/#endif balance.
- unsigned long skip_balance_; // #if*/#endif balance at which we began
- // skipping. 0 indicates no skipping.
-
};
@@ -940,8 +822,8 @@ namespace CCF
}
Preprocessor::
- Preprocessor (TokenStream<char>& is, Symbols const& symbols)
- : impl_ (new PreprocessorImpl (is, symbols))
+ Preprocessor (TokenStream<char>& is)
+ : impl_ (new PreprocessorImpl (is))
{
}
diff --git a/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp b/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
index 994c889a3f8..105fca3cc0f 100644
--- a/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
+++ b/TAO/CIAO/CCF/CCF/CompilerElements/Preprocessor.hpp
@@ -6,8 +6,6 @@
#define CCF_COMPILER_ELEMENTS_PREPROCESSOR_HPP
#include <memory>
-#include <string>
-#include <set>
#include "CCF/CompilerElements/TokenStream.hpp"
#include "CCF/CompilerElements/PreprocessorToken.hpp"
@@ -18,17 +16,13 @@ namespace CCF
{
namespace CPP
{
- typedef
- std::set<std::string>
- Symbols;
-
class Preprocessor : public TokenStream<Token>
{
public:
virtual
~Preprocessor ();
- Preprocessor (TokenStream<char>& is, Symbols const&);
+ Preprocessor (TokenStream<char>& is);
virtual Token
next ();
diff --git a/TAO/CIAO/CCF/CCF/CompilerElements/TokenStream.hpp b/TAO/CIAO/CCF/CCF/CompilerElements/TokenStream.hpp
index f1d3ab4fb8c..d3132eea980 100644
--- a/TAO/CIAO/CCF/CCF/CompilerElements/TokenStream.hpp
+++ b/TAO/CIAO/CCF/CCF/CompilerElements/TokenStream.hpp
@@ -16,10 +16,6 @@ namespace CCF
class TokenStream
{
public:
- // (JP 06-04-06) Not required by C++ spec, but it
- // eliminates buggy GCC warnings.
- virtual ~TokenStream () {}
-
virtual Token
next () = 0;
};
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp b/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
index bfc725d4d36..3f87695c812 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Parser.cpp
@@ -356,11 +356,8 @@ namespace CCF
act_typedef_begin (
f.typedef_ (), &SemanticAction::Typedef::begin),
- act_typedef_begin_unbounded_seq (
- f.typedef_ (), &SemanticAction::Typedef::begin_unbounded_seq),
-
- act_typedef_begin_bounded_seq (
- f.typedef_ (), &SemanticAction::Typedef::begin_bounded_seq),
+ act_typedef_begin_seq (
+ f.typedef_ (), &SemanticAction::Typedef::begin_seq),
act_typedef_begin_bounded_string (
f.typedef_ (), &SemanticAction::Typedef::begin_bounded_string),
@@ -368,12 +365,6 @@ namespace CCF
act_typedef_begin_bounded_wstring (
f.typedef_ (), &SemanticAction::Typedef::begin_bounded_wstring),
- act_typedef_begin_array (
- f.typedef_ (), &SemanticAction::Typedef::begin_array),
-
- act_typedef_bound (
- f.typedef_ (), &SemanticAction::Typedef::bound),
-
act_typedef_declarator (
f.typedef_ (), &SemanticAction::Typedef::declarator),
@@ -1154,16 +1145,11 @@ namespace CCF
;
typedef_declarator =
- ( simple_identifier
- >> !( LSBRACE[act_typedef_begin_array][act_const_expr_flush]
- >> numeric_const_expr[act_typedef_bound]
- >> RSBRACE
- )
- >> *( LSBRACE[act_const_expr_flush]
- >> numeric_const_expr[act_typedef_bound]
- >> RSBRACE
- )
- )[act_typedef_declarator]
+ simple_identifier[act_typedef_declarator]
+ >> *( LSBRACE[act_const_expr_flush] // flush expression stacks
+ >> numeric_const_expr
+ >> RSBRACE
+ )
;
typedef_type_spec =
@@ -1172,17 +1158,12 @@ namespace CCF
(
SEQUENCE
>> LT
- >>
- (
- (identifier >> GT)[act_typedef_begin_unbounded_seq]
- |
- (
- identifier[act_typedef_begin_bounded_seq]
- >> COMMA[act_const_expr_flush] // flush expression stacks
- >> numeric_const_expr[act_typedef_bound]
- >> GT
- )
- )
+ >> identifier[act_typedef_begin_seq]
+ >> !(
+ COMMA[act_const_expr_flush] // flush expression stacks
+ >> numeric_const_expr
+ )
+ >> GT
)
|
(
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Parser.hpp b/TAO/CIAO/CCF/CCF/IDL2/Parser.hpp
index b0e307024c5..29ee5da0426 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Parser.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Parser.hpp
@@ -734,10 +734,7 @@ namespace CCF
act_typedef_begin;
OneArgAction<IdentifierPtr, SemanticAction::Typedef>
- act_typedef_begin_unbounded_seq;
-
- OneArgAction<IdentifierPtr, SemanticAction::Typedef>
- act_typedef_begin_bounded_seq;
+ act_typedef_begin_seq;
NoArgAction<SemanticAction::Typedef>
act_typedef_begin_bounded_string;
@@ -745,12 +742,6 @@ namespace CCF
NoArgAction<SemanticAction::Typedef>
act_typedef_begin_bounded_wstring;
- NoArgAction<SemanticAction::Typedef>
- act_typedef_begin_array;
-
- NoArgAction<SemanticAction::Typedef>
- act_typedef_bound;
-
OneArgAction<SimpleIdentifierPtr, SemanticAction::Typedef>
act_typedef_declarator;
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Member.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Member.cpp
index b68f3251f48..054f49ab815 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Member.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Member.cpp
@@ -41,11 +41,7 @@ namespace CCF
{
try
{
- // With introduction of CORBA 3.1 we have a new beast:
- // struct with incoplete members which itself becomes
- // incomplete.
- //
- type_ = &resolve<Type> (from, name/*, Flags::complete*/);
+ type_ = &resolve<Type> (from, name, Flags::complete);
}
catch (Resolve const&)
{
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp
index 315b69d0e51..a615e2c5ea3 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp
@@ -5,10 +5,7 @@
#include "CCF/IDL2/SemanticAction/Impl/Typedef.hpp"
#include "CCF/IDL2/SemanticGraph/Elements.hpp"
-
-#include "CCF/IDL2/SemanticGraph/Array.hpp"
#include "CCF/IDL2/SemanticGraph/Sequence.hpp"
-#include "CCF/IDL2/SemanticGraph/String.hpp"
#include <iostream>
@@ -42,7 +39,6 @@ namespace CCF
define_ = false;
type_ = 0;
- array_type_ = 0;
Name name (id->lexeme ());
ScopedName from (ctx.scope ().scoped_name ());
@@ -74,13 +70,12 @@ namespace CCF
}
void Typedef::
- begin_unbounded_seq (IdentifierPtr const& id)
+ begin_seq (IdentifierPtr const& id)
{
- if (ctx.trace ()) cerr << "typedef u-sequence<" << id << ">" << endl;
+ if (ctx.trace ()) cerr << "typedef sequence<" << id << ">" << endl;
define_ = true;
type_ = 0;
- array_type_ = 0;
Name name (id->lexeme ());
ScopedName from (ctx.scope ().scoped_name ());
@@ -92,7 +87,7 @@ namespace CCF
Type& t (resolve<Type> (from, name));
UnboundedSequence& s (ctx.tu ().new_node<UnboundedSequence> ());
- ctx.tu ().new_edge<ArgumentsWithType> (t, s);
+ ctx.tu ().new_edge<Specialized> (s, t);
type_ = &s;
}
@@ -118,122 +113,29 @@ namespace CCF
}
void Typedef::
- begin_bounded_seq (IdentifierPtr const& id)
+ begin_bounded_string ()
{
- if (ctx.trace ()) cerr << "typedef b-sequence<" << id << ">" << endl;
+ if (ctx.trace ()) cerr << "typedef string<" << ">" << endl;
- define_ = true;
- type_ = 0;
- array_type_ = 0;
+ define_ = false; // this should actually be true
- Name name (id->lexeme ());
+ Name name ("::string");
ScopedName from (ctx.scope ().scoped_name ());
- try
- {
- try
- {
- Type& t (resolve<Type> (from, name));
-
- BoundedSequence& s (ctx.tu ().new_node<BoundedSequence> ());
- ctx.tu ().new_edge<ArgumentsWithType> (t, s);
-
- type_ = &s;
- }
- catch (Resolve const&)
- {
- cerr << "error: invalid sequence declaration" << endl;
- throw;
- }
- }
- catch (NotFound const&)
- {
- cerr << "no type with name \'" << name
- << "\' visible from scope \'" << from << "\'" << endl;
- }
- catch (WrongType const&)
- {
- cerr << "declaration with name \'" << name
- << "\' visible from scope \'" << from
- << "\' is not a type declaration" << endl;
- cerr << "using non-type in sequence specialization is illegal"
- << endl;
- }
- }
-
- void Typedef::
- begin_bounded_string ()
- {
- if (ctx.trace ()) cerr << "typedef b-string" << endl;
-
- define_ = true;
- type_ = 0;
- array_type_ = 0;
-
- type_ = &ctx.tu ().new_node<BoundedString> ();
- bound ();
+ type_ = &resolve<Type> (from, name);
}
void Typedef::
begin_bounded_wstring ()
{
- if (ctx.trace ()) cerr << "typedef b-wstring" << endl;
+ if (ctx.trace ()) cerr << "typedef wstring<" << ">" << endl;
- define_ = true;
- type_ = 0;
- array_type_ = 0;
+ define_ = false; // this should actually be true
- type_ = &ctx.tu ().new_node<BoundedWideString> ();
- bound ();
- }
-
- void Typedef::
- begin_array ()
- {
- if (ctx.trace ()) cerr << "array" << endl;
-
- define_ = true;
- array_type_ = 0;
-
- if (type_ == 0)
- return;
-
- if (type_->named_begin () == type_->named_end ())
- {
- cerr << "error: anonymous types in array declarations "
- << "are not supported" << endl;
-
- cerr << "use another typedef to name this type" << endl;
-
- return;
- }
-
- Array& a (ctx.tu ().new_node<Array> ());
- ctx.tu ().new_edge<ArgumentsWithType> (*type_, a);
-
- array_type_ = &a;
- }
-
- void Typedef::
- bound ()
- {
- if (ctx.trace ()) cerr << "bound" << endl;
-
- if (ctx.int_exp_size () < 1)
- return;
-
- IntExpression& expr (ctx.int_exp_pop ());
+ Name name ("::wstring");
+ ScopedName from (ctx.scope ().scoped_name ());
- if (array_type_ != 0)
- {
- Specialization& s (dynamic_cast<Specialization&> (*array_type_));
- ctx.tu ().new_edge<ArgumentsWithValue> (expr, s);
- }
- else if (type_ != 0)
- {
- Specialization& s (dynamic_cast<Specialization&> (*type_));
- ctx.tu ().new_edge<ArgumentsWithValue> (expr, s);
- }
+ type_ = &resolve<Type> (from, name);
}
void Typedef::
@@ -247,16 +149,7 @@ namespace CCF
{
if (lookup (ctx.tu (), ctx.scope (), name) == 0)
{
- if (array_type_ != 0)
- {
- assert (define_);
-
- ctx.tu ().new_edge<Defines> (ctx.scope (), *array_type_, name);
-
- define_ = false;
- array_type_ = 0;
- }
- else if (type_ != 0)
+ if (type_ != 0)
{
if (define_)
{
@@ -277,8 +170,6 @@ namespace CCF
cerr << "error: invalid typedef declaration" << endl;
cerr << "error: redeclaration of name " << name << endl;
-
- array_type_ = 0;
}
void Typedef::
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.hpp
index 904a04ee56b..faeea36fd2a 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Typedef.hpp
@@ -25,10 +25,7 @@ namespace CCF
begin (IdentifierPtr const& id);
virtual void
- begin_unbounded_seq (IdentifierPtr const& id);
-
- virtual void
- begin_bounded_seq (IdentifierPtr const& id);
+ begin_seq (IdentifierPtr const& id);
virtual void
begin_bounded_string ();
@@ -37,12 +34,6 @@ namespace CCF
begin_bounded_wstring ();
virtual void
- begin_array ();
-
- virtual void
- bound ();
-
- virtual void
declarator (SimpleIdentifierPtr const& id);
virtual void
@@ -51,7 +42,6 @@ namespace CCF
private:
bool define_;
SemanticGraph::Type* type_;
- SemanticGraph::Type* array_type_;
};
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp
index b11d10e4f45..b7c3d93eba8 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp
@@ -96,7 +96,7 @@ namespace CCF
throw WrongType (type_->scoped_name ());
}
- ctx.tu ().new_edge<ArgumentsWithType> (*type_, now ());
+ ctx.tu ().new_edge<Specialized> (now (), *type_);
}
catch (Resolve const&)
{
@@ -140,11 +140,7 @@ namespace CCF
{
try
{
- // With introduction of CORBA 3.1 we have a new beast:
- // union with incoplete members which itself becomes
- // incomplete.
- //
- member_type_ = &resolve<Type> (from, name/*, Flags::complete*/);
+ member_type_ = &resolve<Type> (from, name, Flags::complete);
}
catch (Resolve const&)
{
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Typedef.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Typedef.hpp
index d1782591270..d7c59168fea 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Typedef.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticAction/Typedef.hpp
@@ -19,10 +19,7 @@ namespace CCF
begin (IdentifierPtr const& id) = 0;
virtual void
- begin_unbounded_seq (IdentifierPtr const& id) = 0;
-
- virtual void
- begin_bounded_seq (IdentifierPtr const& id) = 0;
+ begin_seq (IdentifierPtr const& id) = 0;
virtual void
begin_bounded_string () = 0;
@@ -31,12 +28,6 @@ namespace CCF
begin_bounded_wstring () = 0;
virtual void
- begin_array () = 0;
-
- virtual void
- bound () = 0;
-
- virtual void
declarator (SimpleIdentifierPtr const& id) = 0;
virtual void
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph.hpp
index 224b0abb7df..fcb798887ce 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph.hpp
@@ -7,7 +7,6 @@
#include "CCF/IDL2/SemanticGraph/Elements.hpp"
-#include "CCF/IDL2/SemanticGraph/Array.hpp"
#include "CCF/IDL2/SemanticGraph/Attribute.hpp"
#include "CCF/IDL2/SemanticGraph/Enum.hpp"
#include "CCF/IDL2/SemanticGraph/Exception.hpp"
@@ -21,7 +20,6 @@
#include "CCF/IDL2/SemanticGraph/IntExpression.hpp"
#include "CCF/IDL2/SemanticGraph/Operation.hpp"
#include "CCF/IDL2/SemanticGraph/Sequence.hpp"
-#include "CCF/IDL2/SemanticGraph/String.hpp"
#include "CCF/IDL2/SemanticGraph/Struct.hpp"
#include "CCF/IDL2/SemanticGraph/Translation.hpp"
#include "CCF/IDL2/SemanticGraph/TypeId.hpp"
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.cpp
deleted file mode 100644
index 3847a6b1ae3..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// file : CCF/IDL2/SemanticGraph/Array.cpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "CCF/IDL2/SemanticGraph/Array.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace SemanticGraph
- {
- using Introspection::TypeInfo;
- using Introspection::Access;
-
- // Array
- //
- //
- namespace
- {
- TypeInfo
- array_init_ ()
- {
- TypeInfo ti (typeid (Array));
- ti.add_base (
- Access::PUBLIC, true, Specialization::static_type_info ());
- return ti;
- }
-
- TypeInfo array_ (array_init_ ());
- }
-
- TypeInfo const& Array::
- static_type_info () { return array_; }
- }
- }
-}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.hpp
deleted file mode 100644
index 47542f6772a..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Array.hpp
+++ /dev/null
@@ -1,57 +0,0 @@
-// file : CCF/IDL2/SemanticGraph/Array.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef CCF_IDL2_SEMANTIC_GRAPH_ARRAY_HPP
-#define CCF_IDL2_SEMANTIC_GRAPH_ARRAY_HPP
-
-#include "CCF/IDL2/SemanticGraph/Elements.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace SemanticGraph
- {
- //
- //
- //
- class Array : public virtual Specialization
- {
- public:
- Type&
- type () const
- {
- return
- dynamic_cast<ArgumentsWithType&> (**arguments_begin ()).type ();
- }
-
- // You will have to iterate through Arguments edges starting
- // from begin + 1 to get to the list of bounds. I suggest that
- // you use traversal instead.
- //
-
- virtual bool
- complete () const
- {
- // Is this the right semantic for arrays?
- //
- return type ().complete ();
- }
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- Array ()
- {
- type_info (static_type_info ());
- }
- };
- }
- }
-}
-
-#endif // CCF_IDL2_SEMANTIC_GRAPH_ARRAY_HPP
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.cpp
index cae24c8a60f..ef1c8892b9a 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.cpp
@@ -352,109 +352,47 @@ namespace CCF
static_type_info () { return belongs_; }
- // Specialization
+ // TypeTemplateSpecialization
//
//
namespace
{
TypeInfo
- specialization_init_ ()
+ type_template_specialization_init_ ()
{
- TypeInfo ti (typeid (Specialization));
+ TypeInfo ti (typeid (TypeTemplateSpecialization));
ti.add_base (Access::PUBLIC, true, Type::static_type_info ());
return ti;
}
- TypeInfo specialization_ (
- specialization_init_ ());
+ TypeInfo type_template_specialization_ (
+ type_template_specialization_init_ ());
}
- TypeInfo const& Specialization::
- static_type_info () { return specialization_; }
+ TypeInfo const& TypeTemplateSpecialization::
+ static_type_info () { return type_template_specialization_; }
- void Specialization::
- add_edge_right (ArgumentsWithType& e)
- {
- arguments_.push_back (&e);
- }
-
- void Specialization::
- add_edge_right (ArgumentsWithValue& e)
- {
- arguments_.push_back (&e);
- }
- // Arguments
+ // Specialized
//
//
namespace
{
TypeInfo
- arguments_init_ ()
+ specialized_init_ ()
{
- TypeInfo ti (typeid (Arguments));
+ TypeInfo ti (typeid (Specialized));
ti.add_base (Access::PUBLIC, true, Edge::static_type_info ());
return ti;
}
- TypeInfo arguments_ (arguments_init_ ());
- }
-
- TypeInfo const& Arguments::
- static_type_info () { return arguments_; }
-
-
- // ArgumentsWithType
- //
- //
- namespace
- {
- TypeInfo
- arguments_with_type_init_ ()
- {
- TypeInfo ti (typeid (ArgumentsWithType));
- ti.add_base (Access::PUBLIC, true, Arguments::static_type_info ());
- return ti;
- }
-
- TypeInfo arguments_with_type_ (arguments_with_type_init_ ());
+ TypeInfo specialized_ (specialized_init_ ());
}
- TypeInfo const& ArgumentsWithType::
- static_type_info () { return arguments_with_type_; }
+ TypeInfo const& Specialized::
+ static_type_info () { return specialized_; }
- // ArgumentsWithValue
- //
- //
- namespace
- {
- TypeInfo
- arguments_with_value_init_ ()
- {
- TypeInfo ti (typeid (ArgumentsWithValue));
- ti.add_base (Access::PUBLIC, true, Arguments::static_type_info ());
- return ti;
- }
-
- TypeInfo arguments_with_value_ (arguments_with_value_init_ ());
- }
-
- TypeInfo const& ArgumentsWithValue::
- static_type_info () { return arguments_with_value_; }
-
- Expression& ArgumentsWithValue::
- value () const
- {
- return dynamic_cast<Expression&> (argument ());
- }
-
- void ArgumentsWithValue::
- set_left_node (Expression& n)
- {
- Arguments::set_left_node (n);
- }
-
// IsA
//
//
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.hpp
index 24a18fd3205..05d11f5057f 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Elements.hpp
@@ -479,7 +479,7 @@ namespace CCF
//
//
class Belongs;
- class ArgumentsWithType;
+ class Specialized;
//@@ I can make an alias Classifies for Belongs?
//
@@ -510,7 +510,7 @@ namespace CCF
}
void
- add_edge_left (ArgumentsWithType&)
+ add_edge_right (Specialized&)
{
}
@@ -602,33 +602,15 @@ namespace CCF
};
+ //@@ Maybe rename it to just Specialization
//
- //
- class Arguments;
- class ArgumentsWithType;
- class ArgumentsWithValue;
-
- class Specialization: public virtual Type
+ class TypeTemplateSpecialization : public virtual Type
{
- typedef
- std::vector<Arguments*>
- Arguments_;
-
public:
- typedef
- Arguments_::const_iterator
- ArgumentsIterator;
-
- ArgumentsIterator
- arguments_begin () const
- {
- return arguments_.begin ();
- }
-
- ArgumentsIterator
- arguments_end () const
+ Specialized&
+ specialized () const
{
- return arguments_.end ();
+ return *specialized_;
}
static Introspection::TypeInfo const&
@@ -637,35 +619,34 @@ namespace CCF
protected:
friend class Graph<Node, Edge>;
- Specialization ()
+ TypeTemplateSpecialization ()
{
type_info (static_type_info ());
}
void
- add_edge_right (ArgumentsWithType& e);
-
- void
- add_edge_right (ArgumentsWithValue& e);
+ add_edge_left (Specialized& e)
+ {
+ specialized_ = &e;
+ }
private:
- Arguments_ arguments_;
+ Specialized* specialized_;
};
-
- class Arguments: public virtual Edge
+ class Specialized : public virtual Edge
{
public:
- Specialization&
+ TypeTemplateSpecialization&
specialization () const
{
return *specialization_;
}
- Node&
- argument () const
+ Type&
+ type () const
{
- return *argument_;
+ return *type_;
}
static Introspection::TypeInfo const&
@@ -674,77 +655,28 @@ namespace CCF
protected:
friend class Graph<Node, Edge>;
- Arguments ()
+ Specialized ()
{
type_info (static_type_info ());
}
void
- set_left_node (Node& n)
+ set_left_node (TypeTemplateSpecialization& n)
{
- argument_ = &n;
+ specialization_ = &n;
}
void
- set_right_node (Specialization& n)
+ set_right_node (Type& n)
{
- specialization_ = &n;
+ type_ = &n;
}
private:
- Specialization* specialization_;
- Node* argument_;
- };
-
- class ArgumentsWithType: public virtual Arguments
- {
- public:
- Type&
- type () const
- {
- return dynamic_cast<Type&> (argument ());
- }
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- ArgumentsWithType ()
- {
- type_info (static_type_info ());
- }
-
- void
- set_left_node (Type& n)
- {
- Arguments::set_left_node (n);
- }
+ TypeTemplateSpecialization* specialization_;
+ Type* type_;
};
- class Expression;
-
- class ArgumentsWithValue: public virtual Arguments
- {
- public:
- Expression&
- value () const;
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- ArgumentsWithValue ()
- {
- type_info (static_type_info ());
- }
-
- void
- set_left_node (Expression& n);
- };
//
//
@@ -884,11 +816,6 @@ namespace CCF
add_edge_left (Initializes&)
{
}
-
- void
- add_edge_left (ArgumentsWithValue&)
- {
- }
};
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.cpp
index 578c87361d4..a9d135b2d33 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.cpp
@@ -1,8 +1,8 @@
-// file : CCF/IDL2/SemanticGraph/String.cpp
+// file : CCF/IDL2/SemanticGraph/Sequence.cpp
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : $Id$
-#include "CCF/IDL2/SemanticGraph/String.hpp"
+#include "CCF/IDL2/SemanticGraph/Sequence.hpp"
namespace CCF
{
@@ -12,47 +12,47 @@ namespace CCF
{
using Introspection::TypeInfo;
using Introspection::Access;
-
- // BoundedString
+
+ // Sequence
//
//
namespace
{
TypeInfo
- bounded_string_init_ ()
+ sequence_init_ ()
{
- TypeInfo ti (typeid (BoundedString));
- ti.add_base (
- Access::PUBLIC, true, Specialization::static_type_info ());
+ TypeInfo ti (typeid (Sequence));
+ ti.add_base (Access::PUBLIC,
+ true,
+ TypeTemplateSpecialization::static_type_info ());
return ti;
}
- TypeInfo bounded_string_ (bounded_string_init_ ());
+ TypeInfo sequence_ (sequence_init_ ());
}
- TypeInfo const& BoundedString::
- static_type_info () { return bounded_string_; }
+ TypeInfo const& Sequence::
+ static_type_info () { return sequence_; }
- // BoundedWideString
+ // UnboundedSequence
//
//
namespace
{
TypeInfo
- bounded_wide_string_init_ ()
+ unbounded_sequence_init_ ()
{
- TypeInfo ti (typeid (BoundedWideString));
- ti.add_base (
- Access::PUBLIC, true, Specialization::static_type_info ());
+ TypeInfo ti (typeid (UnboundedSequence));
+ ti.add_base (Access::PUBLIC, true, Sequence::static_type_info ());
return ti;
}
- TypeInfo bounded_wide_string_ (bounded_wide_string_init_ ());
+ TypeInfo unbounded_sequence_ (unbounded_sequence_init_ ());
}
- TypeInfo const& BoundedWideString::
- static_type_info () { return bounded_wide_string_; }
+ TypeInfo const& UnboundedSequence::
+ static_type_info () { return unbounded_sequence_; }
}
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.hpp
index f32c3d3b1b6..aa4b563b356 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Sequence.hpp
@@ -5,8 +5,8 @@
#ifndef CCF_IDL2_SEMANTIC_GRAPH_SEQUENCE_HPP
#define CCF_IDL2_SEMANTIC_GRAPH_SEQUENCE_HPP
+
#include "CCF/IDL2/SemanticGraph/Elements.hpp"
-#include "CCF/IDL2/SemanticGraph/IntExpression.hpp"
namespace CCF
{
@@ -17,20 +17,13 @@ namespace CCF
//
//
//
- class Sequence : public virtual Specialization
+ class Sequence : public virtual TypeTemplateSpecialization
{
public:
- Type&
- type () const
- {
- return
- dynamic_cast<ArgumentsWithType&> (**arguments_begin ()).type ();
- }
-
virtual bool
complete () const
{
- return type ().complete ();
+ return specialized ().type ().complete ();
}
static Introspection::TypeInfo const&
@@ -43,6 +36,8 @@ namespace CCF
{
type_info (static_type_info ());
}
+
+ using TypeTemplateSpecialization::add_edge_right;
};
@@ -63,37 +58,6 @@ namespace CCF
type_info (static_type_info ());
}
};
-
-
- //
- //
- //
- class BoundedSequence : public virtual Sequence
- {
- public:
- IntExpression&
- bound () const
- {
- ArgumentsIterator i (arguments_begin ());
-
- ++i; // Bound is always second to the type.
-
- return
- dynamic_cast<IntExpression&> (
- dynamic_cast<ArgumentsWithValue&> (**i).value ());
- }
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- BoundedSequence ()
- {
- type_info (static_type_info ());
- }
- };
}
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.cpp
deleted file mode 100644
index 558da3f34da..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// file : CCF/IDL2/SemanticGraph/Sequence.cpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "CCF/IDL2/SemanticGraph/Sequence.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace SemanticGraph
- {
- using Introspection::TypeInfo;
- using Introspection::Access;
-
- // Sequence
- //
- //
- namespace
- {
- TypeInfo
- sequence_init_ ()
- {
- TypeInfo ti (typeid (Sequence));
- ti.add_base (
- Access::PUBLIC, true, Specialization::static_type_info ());
- return ti;
- }
-
- TypeInfo sequence_ (sequence_init_ ());
- }
-
- TypeInfo const& Sequence::
- static_type_info () { return sequence_; }
-
-
- // UnboundedSequence
- //
- //
- namespace
- {
- TypeInfo
- unbounded_sequence_init_ ()
- {
- TypeInfo ti (typeid (UnboundedSequence));
- ti.add_base (Access::PUBLIC, true, Sequence::static_type_info ());
- return ti;
- }
-
- TypeInfo unbounded_sequence_ (unbounded_sequence_init_ ());
- }
-
- TypeInfo const& UnboundedSequence::
- static_type_info () { return unbounded_sequence_; }
-
-
- // BoundedSequence
- //
- //
- namespace
- {
- TypeInfo
- bounded_sequence_init_ ()
- {
- TypeInfo ti (typeid (BoundedSequence));
- ti.add_base (Access::PUBLIC, true, Sequence::static_type_info ());
- return ti;
- }
-
- TypeInfo bounded_sequence_ (bounded_sequence_init_ ());
- }
-
- TypeInfo const& BoundedSequence::
- static_type_info () { return bounded_sequence_; }
- }
- }
-}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.hpp
deleted file mode 100644
index a4f3e361272..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/String.hpp
+++ /dev/null
@@ -1,85 +0,0 @@
-// file : CCF/IDL2/SemanticGraph/String.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef CCF_IDL2_SEMANTIC_GRAPH_STRING_HPP
-#define CCF_IDL2_SEMANTIC_GRAPH_STRING_HPP
-
-#include "CCF/IDL2/SemanticGraph/Elements.hpp"
-#include "CCF/IDL2/SemanticGraph/IntExpression.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace SemanticGraph
- {
- //
- //
- class BoundedString : public virtual Specialization
- {
- public:
- IntExpression&
- bound () const
- {
- return
- dynamic_cast<IntExpression&> (
- dynamic_cast<ArgumentsWithValue&> (
- **arguments_begin ()).value ());
- }
-
- virtual bool
- complete () const
- {
- return true;
- }
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- BoundedString ()
- {
- type_info (static_type_info ());
- }
- };
-
-
- //
- //
- class BoundedWideString : public virtual Specialization
- {
- public:
- IntExpression&
- bound () const
- {
- return
- dynamic_cast<IntExpression&> (
- dynamic_cast<ArgumentsWithValue&> (
- **arguments_begin ()).value ());
- }
-
- virtual bool
- complete () const
- {
- return true;
- }
-
- static Introspection::TypeInfo const&
- static_type_info ();
-
- protected:
- friend class Graph<Node, Edge>;
-
- BoundedWideString ()
- {
- type_info (static_type_info ());
- }
- };
- }
- }
-}
-
-#endif // CCF_IDL2_SEMANTIC_GRAPH_STRING_HPP
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp
index 46fd9b9ef3a..fd933464b03 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.cpp
@@ -3,7 +3,6 @@
// cvs-id : $Id$
#include "CCF/IDL2/SemanticGraph/Struct.hpp"
-#include "CCF/IDL2/SemanticGraph/Member.hpp"
namespace CCF
{
@@ -31,37 +30,6 @@ namespace CCF
TypeInfo const& Struct::
static_type_info () { return struct_; }
- bool Struct::
- complete () const
- {
- if (defined ())
- {
- CompilerElements::Context& ctx (
- const_cast<CompilerElements::Context&> (context ()));
-
- if (ctx.count ("struct-complete-test"))
- return true;
-
- ctx.set ("struct-complete-test", true);
- bool c (true);
-
- for (Scope::NamesIterator i (names_begin ());
- c && i != names_end ();
- ++i)
- {
- Member const& m (dynamic_cast<Member&> ((*i)->named ()));
- Type const& t (m.belongs ().type ());
-
- if (!t.complete ())
- c = false;
- }
-
- ctx.remove ("struct-complete-test");
- return c;
- }
-
- return false;
- }
}
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.hpp
index 67419a4cd00..fd6762e83b3 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Struct.hpp
@@ -17,7 +17,10 @@ namespace CCF
{
public:
virtual bool
- complete () const;
+ complete () const
+ {
+ return defined ();
+ }
static Introspection::TypeInfo const&
static_type_info ();
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
index 28c673a94f3..25b692648b9 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.cpp
@@ -124,8 +124,9 @@ namespace CCF
{
TypeInfo ti (typeid (Union));
- ti.add_base (
- Access::PUBLIC, true, Specialization::static_type_info ());
+ ti.add_base (Access::PUBLIC,
+ true,
+ TypeTemplateSpecialization::static_type_info ());
ti.add_base (Access::PUBLIC, true, Scope::static_type_info ());
return ti;
@@ -136,38 +137,6 @@ namespace CCF
TypeInfo const& Union::
static_type_info () { return union_; }
-
- bool Union::
- complete () const
- {
- if (defined ())
- {
- CompilerElements::Context& ctx (
- const_cast<CompilerElements::Context&> (context ()));
-
- if (ctx.count ("union-complete-test"))
- return true;
-
- ctx.set ("union-complete-test", true);
- bool c (true);
-
- for (Scope::NamesIterator i (names_begin ());
- c && i != names_end ();
- ++i)
- {
- Member const& m (dynamic_cast<Member&> ((*i)->named ()));
- Type const& t (m.belongs ().type ());
-
- if (!t.complete ())
- c = false;
- }
-
- ctx.remove ("union-complete-test");
- return c;
- }
-
- return false;
- }
}
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp
index 9cb70897a20..46b75a6be65 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/SemanticGraph/Union.hpp
@@ -121,12 +121,15 @@ namespace CCF
}
};
- class Union : public virtual Specialization,
+ class Union : public virtual TypeTemplateSpecialization,
public virtual Scope
{
public:
virtual bool
- complete () const;
+ complete () const
+ {
+ return defined ();
+ }
static Introspection::TypeInfo const&
static_type_info ();
@@ -139,10 +142,9 @@ namespace CCF
type_info (static_type_info ());
}
- using Specialization::add_edge_left;
- using Specialization::add_edge_right;
+ using TypeTemplateSpecialization::add_edge_left;
+ using TypeTemplateSpecialization::add_edge_right;
using Scope::add_edge_left;
- using Scope::add_edge_right;
};
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal.hpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal.hpp
index 2c56e2b3f2b..506224ad255 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Traversal.hpp
@@ -7,12 +7,10 @@
#include "CCF/IDL2/Traversal/Elements.hpp"
-#include "CCF/IDL2/Traversal/Array.hpp"
#include "CCF/IDL2/Traversal/Attribute.hpp"
#include "CCF/IDL2/Traversal/Enum.hpp"
#include "CCF/IDL2/Traversal/Exception.hpp"
#include "CCF/IDL2/Traversal/Fundamental.hpp"
-#include "CCF/IDL2/Traversal/IntExpression.hpp"
#include "CCF/IDL2/Traversal/Interface.hpp"
#include "CCF/IDL2/Traversal/Member.hpp"
#include "CCF/IDL2/Traversal/Module.hpp"
@@ -20,7 +18,6 @@
#include "CCF/IDL2/Traversal/Operation.hpp"
#include "CCF/IDL2/Traversal/Struct.hpp"
#include "CCF/IDL2/Traversal/Sequence.hpp"
-#include "CCF/IDL2/Traversal/String.hpp"
#include "CCF/IDL2/Traversal/Struct.hpp"
#include "CCF/IDL2/Traversal/Translation.hpp"
#include "CCF/IDL2/Traversal/TypeId.hpp"
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.cpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.cpp
deleted file mode 100644
index e142383535f..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-// file : CCF/IDL2/Traversal/Array.cpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "CCF/IDL2/Traversal/Array.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace Traversal
- {
- void Array::
- traverse (Type& a)
- {
- pre (a);
- arguments_with_type (a);
- arguments_with_value (a);
- name (a);
- post (a);
- }
-
- void Array::
- pre (Type&)
- {
- }
-
- void Array::
- arguments_with_type (Type& a, EdgeDispatcherBase& d)
- {
- d.traverse (**a.arguments_begin ());
- }
-
- void Array::
- arguments_with_type (Type& a)
- {
- arguments_with_type (a, edge_traverser ());
- }
-
- void Array::
- arguments_with_value (Type& a, EdgeDispatcherBase& d)
- {
- Type::ArgumentsIterator
- b (a.arguments_begin ()), e (a.arguments_end ());
-
- ++b; // Bounds start afterthe type.
-
- iterate_and_traverse (b,
- e,
- d,
- *this,
- &Array::comma,
- a);
- }
-
- void Array::
- arguments_with_value (Type& a)
- {
- arguments_with_value (a, edge_traverser ());
- }
-
- void Array::
- comma (Type&)
- {
- }
-
- void Array::
- name (Type&)
- {
- }
-
- void Array::
- post (Type&)
- {
- }
- }
- }
-}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.hpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.hpp
deleted file mode 100644
index fb608c6df9a..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Array.hpp
+++ /dev/null
@@ -1,51 +0,0 @@
-// file : CCF/IDL2/Traversal/Array.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef CCF_IDL2_TRAVERSAL_ARRAY_HPP
-#define CCF_IDL2_TRAVERSAL_ARRAY_HPP
-
-#include "CCF/IDL2/Traversal/Elements.hpp"
-
-#include "CCF/IDL2/SemanticGraph/Array.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace Traversal
- {
- struct Array : Node<SemanticGraph::Array>
- {
- virtual void
- traverse (Type&);
-
- virtual void
- pre (Type&);
-
- virtual void
- arguments_with_type (Type&, EdgeDispatcherBase&);
-
- virtual void
- arguments_with_type (Type&);
-
- virtual void
- arguments_with_value (Type&, EdgeDispatcherBase&);
-
- virtual void
- arguments_with_value (Type&);
-
- virtual void
- comma (Type&);
-
- virtual void
- name (Type&);
-
- virtual void
- post (Type&);
- };
- }
- }
-}
-
-#endif // CCF_IDL2_TRAVERSAL_ARRAY_HPP
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Elements.hpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Elements.hpp
index 03793aafeef..1318ef3c5ef 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Elements.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Elements.hpp
@@ -356,32 +356,15 @@ namespace CCF
};
- struct Arguments : Edge<SemanticGraph::Arguments>
+ struct Specialized : Edge<SemanticGraph::Specialized>
{
virtual void
- traverse (Type& a)
- {
- node_traverser ().traverse (a.argument ());
- }
- };
-
- struct ArgumentsWithType : Edge<SemanticGraph::ArgumentsWithType>
- {
- virtual void
- traverse (Type& a)
+ traverse (Type& e)
{
- node_traverser ().traverse (a.type ());
+ node_traverser ().traverse (e.type ());
}
};
- struct ArgumentsWithValue : Edge<SemanticGraph::ArgumentsWithValue>
- {
- virtual void
- traverse (Type& a)
- {
- node_traverser ().traverse (a.value ());
- }
- };
struct Inherits : Edge<SemanticGraph::Inherits>
{
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/IntExpression.hpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/IntExpression.hpp
deleted file mode 100644
index a4cac55a729..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/IntExpression.hpp
+++ /dev/null
@@ -1,757 +0,0 @@
-// file : CCF/IDL2/Traversal/IntExpression.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef CCF_IDL2_TRAVERSAL_INT_EXPRESSION_HPP
-#define CCF_IDL2_TRAVERSAL_INT_EXPRESSION_HPP
-
-#include "CCF/IDL2/Traversal/Elements.hpp"
-
-#include "CCF/IDL2/SemanticGraph/IntExpression.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace Traversal
- {
- //
- //
- typedef
- Node<SemanticGraph::IntExpression>
- IntExpression;
-
- //
- //
- typedef
- Node<SemanticGraph::IntLiteral>
- IntLiteral;
-
- //
- //
- typedef
- Node<SemanticGraph::IntConst>
- IntConst;
-
-
- // NEG
- //
-
- struct IntNegates: Edge<SemanticGraph::IntNegates>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntNeg: Node<SemanticGraph::IntNeg>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- negates (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- negates (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.negates ());
- }
-
- virtual void
- negates (Type& n)
- {
- negates (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // COM
- //
-
- struct IntComplements: Edge<SemanticGraph::IntComplements>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntCom: Node<SemanticGraph::IntCom>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- complements (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- complements (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.complements ());
- }
-
- virtual void
- complements (Type& n)
- {
- complements (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // MUL
- //
-
- struct IntMultiplies: Edge<SemanticGraph::IntMultiplies>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntMul: Node<SemanticGraph::IntMul>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- multiplies_first_factor (n);
- sign (n);
- multiplies_second_factor (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- multiplies_first_factor (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.first_factor ());
- }
-
- virtual void
- multiplies_first_factor (Type& n)
- {
- multiplies_first_factor (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- multiplies_second_factor (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. second_factor ());
- }
-
- virtual void
- multiplies_second_factor (Type& n)
- {
- multiplies_second_factor (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // DIV & REM
- //
-
- struct IntDivides: Edge<SemanticGraph::IntDivides>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntDiv: Node<SemanticGraph::IntDiv>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- divides_divident (n);
- sign (n);
- divides_divisor (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- divides_divident (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.divident ());
- }
-
- virtual void
- divides_divident (Type& n)
- {
- divides_divident (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- divides_divisor (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. divisor ());
- }
-
- virtual void
- divides_divisor (Type& n)
- {
- divides_divisor (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
- struct IntRem: Node<SemanticGraph::IntRem>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- divides_divident (n);
- sign (n);
- divides_divisor (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- divides_divident (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.divident ());
- }
-
- virtual void
- divides_divident (Type& n)
- {
- divides_divident (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- divides_divisor (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. divisor ());
- }
-
- virtual void
- divides_divisor (Type& n)
- {
- divides_divisor (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // ADD
- //
-
- struct IntAdds: Edge<SemanticGraph::IntAdds>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntAdd: Node<SemanticGraph::IntAdd>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- adds_first_item (n);
- sign (n);
- adds_second_item (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- adds_first_item (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.first_item ());
- }
-
- virtual void
- adds_first_item (Type& n)
- {
- adds_first_item (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- adds_second_item (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. second_item ());
- }
-
- virtual void
- adds_second_item (Type& n)
- {
- adds_second_item (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // SUB
- //
-
- struct IntSubtracts: Edge<SemanticGraph::IntSubtracts>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntSub: Node<SemanticGraph::IntSub>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- subtracts_minuend (n);
- sign (n);
- subtracts_subtrahend (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- subtracts_minuend (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.minuend ());
- }
-
- virtual void
- subtracts_minuend (Type& n)
- {
- subtracts_minuend (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- subtracts_subtrahend (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. subtrahend ());
- }
-
- virtual void
- subtracts_subtrahend (Type& n)
- {
- subtracts_subtrahend (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // RSH & LSH
- //
-
- struct IntShifts: Edge<SemanticGraph::IntShifts>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntRsh: Node<SemanticGraph::IntRsh>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- shifts_pattern (n);
- sign (n);
- shifts_factor (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- shifts_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.pattern ());
- }
-
- virtual void
- shifts_pattern (Type& n)
- {
- shifts_pattern (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- shifts_factor (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. factor ());
- }
-
- virtual void
- shifts_factor (Type& n)
- {
- shifts_factor (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
- struct IntLsh: Node<SemanticGraph::IntLsh>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- shifts_pattern (n);
- sign (n);
- shifts_factor (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- shifts_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.pattern ());
- }
-
- virtual void
- shifts_pattern (Type& n)
- {
- shifts_pattern (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- shifts_factor (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. factor ());
- }
-
- virtual void
- shifts_factor (Type& n)
- {
- shifts_factor (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // AND
- //
-
- struct IntConjuncts: Edge<SemanticGraph::IntConjuncts>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntAnd: Node<SemanticGraph::IntAnd>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- conjuncts_first_pattern (n);
- sign (n);
- conjuncts_second_pattern (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- conjuncts_first_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.first_pattern ());
- }
-
- virtual void
- conjuncts_first_pattern (Type& n)
- {
- conjuncts_first_pattern (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- conjuncts_second_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. second_pattern ());
- }
-
- virtual void
- conjuncts_second_pattern (Type& n)
- {
- conjuncts_second_pattern (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // Xor
- //
-
- struct IntExclusivelyDisjuncts:
- Edge<SemanticGraph::IntExclusivelyDisjuncts>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntXor: Node<SemanticGraph::IntXor>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- exclusively_disjuncts_first_pattern (n);
- sign (n);
- exclusively_disjuncts_second_pattern (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- exclusively_disjuncts_first_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.first_pattern ());
- }
-
- virtual void
- exclusively_disjuncts_first_pattern (Type& n)
- {
- exclusively_disjuncts_first_pattern (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- exclusively_disjuncts_second_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. second_pattern ());
- }
-
- virtual void
- exclusively_disjuncts_second_pattern (Type& n)
- {
- exclusively_disjuncts_second_pattern (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
-
-
- // Or
- //
-
- struct IntInclusivelyDisjuncts:
- Edge<SemanticGraph::IntInclusivelyDisjuncts>
- {
- virtual void
- traverse (Type& e)
- {
- node_traverser ().traverse (e.argument ());
- }
- };
-
- struct IntOr: Node<SemanticGraph::IntOr>
- {
- virtual void
- traverse (Type& n)
- {
- pre (n);
- inclusively_disjuncts_first_pattern (n);
- sign (n);
- inclusively_disjuncts_second_pattern (n);
- post (n);
- }
-
- virtual void
- pre (Type& n)
- {
- }
-
- virtual void
- inclusively_disjuncts_first_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n.first_pattern ());
- }
-
- virtual void
- inclusively_disjuncts_first_pattern (Type& n)
- {
- inclusively_disjuncts_first_pattern (n, edge_traverser ());
- }
-
- virtual void
- sign (Type& n)
- {
- }
-
- virtual void
- inclusively_disjuncts_second_pattern (Type& n, EdgeDispatcherBase& d)
- {
- d.traverse (n. second_pattern ());
- }
-
- virtual void
- inclusively_disjuncts_second_pattern (Type& n)
- {
- inclusively_disjuncts_second_pattern (n, edge_traverser ());
- }
-
- virtual void
- post (Type& n)
- {
- }
- };
- }
- }
-}
-
-#endif // CCF_IDL2_TRAVERSAL_INT_EXPRESSION_HPP
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.cpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.cpp
index c781cdcfb97..bc06e04a8fe 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.cpp
@@ -11,14 +11,11 @@ namespace CCF
namespace Traversal
{
- // UnboundedSequence
- //
-
void UnboundedSequence::
traverse (Type& us)
{
pre (us);
- arguments_with_type (us);
+ specialized (us);
name (us);
post (us);
}
@@ -29,15 +26,15 @@ namespace CCF
}
void UnboundedSequence::
- arguments_with_type (Type& us, EdgeDispatcherBase& d)
+ specialized (Type& us, EdgeDispatcherBase& d)
{
- d.traverse (**us.arguments_begin ());
+ d.traverse (us.specialized ());
}
void UnboundedSequence::
- arguments_with_type (Type& us)
+ specialized (Type& us)
{
- arguments_with_type (us, edge_traverser ());
+ specialized (us, edge_traverser ());
}
void UnboundedSequence::
@@ -49,63 +46,6 @@ namespace CCF
post (Type&)
{
}
-
-
- // BoundedSequence
- //
-
- void BoundedSequence::
- traverse (Type& bs)
- {
- pre (bs);
- arguments_with_type (bs);
- arguments_with_value (bs);
- name (bs);
- post (bs);
- }
-
- void BoundedSequence::
- pre (Type&)
- {
- }
-
- void BoundedSequence::
- arguments_with_type (Type& bs, EdgeDispatcherBase& d)
- {
- d.traverse (**bs.arguments_begin ());
- }
-
- void BoundedSequence::
- arguments_with_type (Type& bs)
- {
- arguments_with_type (bs, edge_traverser ());
- }
-
- void BoundedSequence::
- arguments_with_value (Type& bs, EdgeDispatcherBase& d)
- {
- Type::ArgumentsIterator i (bs.arguments_begin ());
-
- ++i; // Bound is always second to the type.
-
- d.traverse (**i);
- }
-
- void BoundedSequence::
- arguments_with_value (Type& bs)
- {
- arguments_with_value (bs, edge_traverser ());
- }
-
- void BoundedSequence::
- name (Type&)
- {
- }
-
- void BoundedSequence::
- post (Type&)
- {
- }
}
}
}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.hpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.hpp
index 8011ff85c38..14a44aa68f0 100644
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.hpp
+++ b/TAO/CIAO/CCF/CCF/IDL2/Traversal/Sequence.hpp
@@ -24,37 +24,10 @@ namespace CCF
pre (Type&);
virtual void
- arguments_with_type (Type&, EdgeDispatcherBase&);
+ specialized (Type&, EdgeDispatcherBase&);
virtual void
- arguments_with_type (Type&);
-
- virtual void
- name (Type&);
-
- virtual void
- post (Type&);
- };
-
- struct BoundedSequence : Node<SemanticGraph::BoundedSequence>
- {
- virtual void
- traverse (Type&);
-
- virtual void
- pre (Type&);
-
- virtual void
- arguments_with_type (Type&, EdgeDispatcherBase&);
-
- virtual void
- arguments_with_type (Type&);
-
- virtual void
- arguments_with_value (Type&, EdgeDispatcherBase&);
-
- virtual void
- arguments_with_value (Type&);
+ specialized (Type&);
virtual void
name (Type&);
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/String.cpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/String.cpp
deleted file mode 100644
index 0d1e23883ed..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/String.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-// file : CCF/IDL2/Traversal/String.cpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "CCF/IDL2/Traversal/String.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace Traversal
- {
- // BoundedString
- //
-
- void BoundedString::
- traverse (Type& s)
- {
- pre (s);
- arguments_with_value (s);
- name (s);
- post (s);
- }
-
- void BoundedString::
- pre (Type&)
- {
- }
-
- void BoundedString::
- arguments_with_value (Type& s, EdgeDispatcherBase& d)
- {
- d.traverse (**s.arguments_begin ());
- }
-
- void BoundedString::
- arguments_with_value (Type& s)
- {
- arguments_with_value (s, edge_traverser ());
- }
-
- void BoundedString::
- name (Type&)
- {
- }
-
- void BoundedString::
- post (Type&)
- {
- }
-
-
- // BoundedWideString
- //
-
- void BoundedWideString::
- traverse (Type& s)
- {
- pre (s);
- arguments_with_value (s);
- name (s);
- post (s);
- }
-
- void BoundedWideString::
- pre (Type&)
- {
- }
-
- void BoundedWideString::
- arguments_with_value (Type& s, EdgeDispatcherBase& d)
- {
- d.traverse (**s.arguments_begin ());
- }
-
- void BoundedWideString::
- arguments_with_value (Type& s)
- {
- arguments_with_value (s, edge_traverser ());
- }
-
- void BoundedWideString::
- name (Type&)
- {
- }
-
- void BoundedWideString::
- post (Type&)
- {
- }
- }
- }
-}
diff --git a/TAO/CIAO/CCF/CCF/IDL2/Traversal/String.hpp b/TAO/CIAO/CCF/CCF/IDL2/Traversal/String.hpp
deleted file mode 100644
index 7fca6eb7972..00000000000
--- a/TAO/CIAO/CCF/CCF/IDL2/Traversal/String.hpp
+++ /dev/null
@@ -1,64 +0,0 @@
-// file : CCF/IDL2/Traversal/String.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef CCF_IDL2_TRAVERSAL_STRING_HPP
-#define CCF_IDL2_TRAVERSAL_STRING_HPP
-
-#include "CCF/IDL2/Traversal/Elements.hpp"
-
-#include "CCF/IDL2/SemanticGraph/String.hpp"
-
-namespace CCF
-{
- namespace IDL2
- {
- namespace Traversal
- {
- struct BoundedString : Node<SemanticGraph::BoundedString>
- {
- virtual void
- traverse (Type&);
-
- virtual void
- pre (Type&);
-
- virtual void
- arguments_with_value (Type&, EdgeDispatcherBase&);
-
- virtual void
- arguments_with_value (Type&);
-
- virtual void
- name (Type&);
-
- virtual void
- post (Type&);
- };
-
-
- struct BoundedWideString : Node<SemanticGraph::BoundedWideString>
- {
- virtual void
- traverse (Type&);
-
- virtual void
- pre (Type&);
-
- virtual void
- arguments_with_value (Type&, EdgeDispatcherBase&);
-
- virtual void
- arguments_with_value (Type&);
-
- virtual void
- name (Type&);
-
- virtual void
- post (Type&);
- };
- }
- }
-}
-
-#endif // CCF_IDL2_TRAVERSAL_STRING_HPP
diff --git a/TAO/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Include.cpp b/TAO/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Include.cpp
index 3f565eac47c..d992a2016ad 100644
--- a/TAO/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Include.cpp
+++ b/TAO/CIAO/CCF/CCF/IDL3/SemanticAction/Impl/Include.cpp
@@ -204,11 +204,7 @@ namespace CCF
//@@ this code is highly experimental
CompilerElements::InputStreamAdapter isa (ifs);
-
- CompilerElements::CPP::Symbols const& symbols (
- context_.get<CompilerElements::CPP::Symbols> ("cpp-symbols"));
- CompilerElements::CPP::Preprocessor pp (isa, symbols);
-
+ CompilerElements::CPP::Preprocessor pp (isa);
IDL3::LexicalAnalyzer lexer (pp);
TokenList token_stream;
diff --git a/TAO/CIAO/CCF/Documentation/Build.html b/TAO/CIAO/CCF/Documentation/Build.html
index 94415303afe..b4b0998694d 100644
--- a/TAO/CIAO/CCF/Documentation/Build.html
+++ b/TAO/CIAO/CCF/Documentation/Build.html
@@ -12,7 +12,7 @@ cvs-id : $Id$
<head>
- <title>Building CORBA Compiler Framework (CCF) Libraries</title>
+ <title>Building CCF Libraries</title>
<meta name="author" content="Boris Kolpackov"/>
<meta name="keywords" content="build,compile,make,CCF,CORBA,compiler,framework,library"/>
@@ -22,6 +22,7 @@ cvs-id : $Id$
<style type="text/css">
body {
font-family : sans-serif;
+
color : black;
background : white;
@@ -35,10 +36,9 @@ cvs-id : $Id$
font-weight : 500;
}
- h1 { font-size : 170%; }
- h2 { font-size : 125%;
- text-decoration : underline
- }
+ h1 { font-size : 170%; }
+ h2 { font-size : 125%; }
+
ul.toc li {
padding : .4em 0em 0em 0em;
}
@@ -53,42 +53,37 @@ cvs-id : $Id$
</head>
<body>
-<h1>Building CORBA Compiler Framework (CCF) Libraries</h1>
-<h2>Table of Contents</h2>
-<ol>
-<li><a href="#prereqs">Prerequisite Libraries</a></li>
+
<ul class="toc">
<li><a href="#debian">Debian GNU/Linux [i386.deb]</a></li>
<li><a href="#redhat">RedHat OS family [i386.rpm]</a></li>
-<li><a href="#other_platforms">Other GNU/Linux or UNIX Distributions &amp; Windows</a>
+<li><a href="#linux">Other GNU/Linux or UNIX Distributions</a>
<ul>
-<li><a href="#cxx">C++</a></li>
-<li><a href="#boost">Boost Libraries</a></li>
-<li><a href="#utility">Utility Library</a></li>
+<li><a href="#linux_cxx">C++</a></li>
+<li><a href="#linux_boost">Boost Libraries</a></li>
+<li><a href="#linux_utility">Utility Library</a></li>
+<li><a href="#linux_build">Building CCF</a></li>
</ul></li>
-<!--li><a href="#windows">Windows</a>
+<li><a href="#windows">Windows</a>
<ul>
<li><a href="#windows_cxx">C++</a></li>
<li><a href="#windows_boost">Boost Libraries</a></li>
<li><a href="#windows_utility">Utility Library</a></li>
-</ul></li -->
+<li><a href="#windows_build">Building CCF</a></li>
+</ul></li>
</ul>
-<li><a href="#initial_setup">Configuring the Build Environment</a></li>
-<li><a href="#building_ccf">Building CORBA Compiler Framework (CCF)</a></li>
-</ol>
-
-<hr />
-<h1><a name="prereqs">Prerequisite Libraries</a></h1>
<!-- Debian -->
-<h2><a name="debian">Debian GNU/Linux [i386.deb]</a></h2>
-<p>You will need to install the following packages from the Debian package repository:
+<h1><a name="debian">Debian GNU/Linux [i386.deb]</a></h1>
+
+<p>You will need to install the following packages from the
+Debian package repository:
<ol>
<li><code>libboost-dev-1.30.2-2</code> or better</li>
@@ -112,9 +107,16 @@ $ dpkg -i libutility*.deb
</pre>
</p>
+<p>Now you are ready to build CCF libraries:</p>
+<pre>$ cd $CIAO_ROOT/CCF/CCF
+$ make
+</pre>
+
+
<!-- RedHat -->
-<h2><a name="redhat">RedHat OS family [i386.rpm]</a></h2>
+
+<h1><a name="redhat">RedHat OS family [i386.rpm]</a></h1>
<p>You will need to install the following RedHat packages:</p>
@@ -136,9 +138,16 @@ $ rpm -Uhv Utility-1.2.2-3.i386.rpm
</pre>
</p>
+<p>Now you are ready to build CCF libraries:</p>
+<pre>$ cd $CIAO_ROOT/CCF/CCF
+$ make
+</pre>
+
+
<!-- Linux -->
-<h2><a name="other_platforms">Other GNU/Linux or UNIX Distributions &amp; Windows</a></h2>
+
+<h1><a name="linux">Other GNU/Linux or UNIX Distributions</a></h1>
<!--
@@ -167,16 +176,11 @@ you will need to upgrade.</p>
-->
-<h3><a name="cxx">C++</a></h3>
-<p>On the Lunix/UNIX platforms, you can use any standard-conformant C++ compiler.
-We recommend you use the lastest stable release of the <a href="http://gcc.gnu.org">GNU C++</a>
-
-compiler.</p>
+<h2><a name="linux_cxx">C++</a></h2>
+<p>You can use any standard-conformant C++ compiler.
+<a href="http://gcc.gnu.org">GNU G++</a> 3.3 is known to work.</p>
-<p>On the Windows platform, VC++ 7.1 or better is required to build CCF. We do not
-support VC++ 6 or VC++ 7.0.</p>
-
-<h3><a name="boost">Boost Libraries</a></h3>
+<h2><a name="linux_boost">Boost Libraries</a></h2>
<p>In order to build CCF you will need the following libraries from the
<a href="http://www.boost.org">Boost distribution</a>:</p>
@@ -194,37 +198,82 @@ section.</p>
</p>If you choose to compile Boost Libraries yourself please refer to the
<a href="http://www.boost.org/more/getting_started.html">Boost Building
-Instructions</a>. Please remember the install locations of the boost libraries
-because they will be needed to properly configure your environment for building
-CCF.<p>
+Instructions</a>.<p>
-<!--p>After you have successfully compiled necessary libraries in the boost
+<p>After you have successfully compiled necessary libraries in the boost
distribution you need to do one more thing. Inside the boost distribution
directory (e.g. <code>boost-1.30.2</code>) create a directory with the name
<code>lib</code> and copy (or soft link) <code>libboost_filesystem.a</code>
-and <code>libboost_regex.a</code> into it.</p-->
+and <code>libboost_regex.a</code> into it.</p>
+
-<h3><a name="utility">Utility Library</a></h3>
+<h2><a name="linux_utility">Utility Library</a></h2>
<p>Another prerequisite for CCF is the Utility Library. You don't need
to build anything in this library. The Utility library is available in
-the following two different forms for convinience:</p>
+the following two different forms for convinience:
<ol>
-<li>A <a href="http://www.dre.vanderbilt.edu/cidlc/prerequisites/Utility-1.2.2.tar.bz2">bz2 package</a> for unix based platforms including Unix.</li>
-<li>A <a href="http://www.dre.vanderbilt.edu/cidlc/prerequisites/Utility-1.2.2.tar.zip">zip package</a> for Win32 based platforms. </li>
+<li><a href="http://www.dre.vanderbilt.edu/cidlc/prerequisites/Utility-1.2.2.tar.bz2"> A bz2 package </a> for unix based platforms including Unix.</li>
+<li><ahref="http://www.dre.vanderbilt.edu/cidlc/prerequisites/Utility-1.2.2.tar.zip"> A zip package</a> for Win32 based platforms. </li>
</ol>
-<p>Just unpack it to some convenient place and remember its location because it will be need
-to properly configure the build environment for CCF.</p>
+Just unpack it to some convenient place. </p>
+
+<h2><a name="linux_build">Building CCF</a></h2>
+
+<p>Before you can start building CCF you need to specify the location
+of Boost Libraries and Utility Library. There are two ways you can do
+this. The first way is to specify environment variables <code>BOOST_ROOT,
+</code> <code>BOOST_INCLUDE,</code> <code>BOOST_LIB</code> and
+<code>UTILITY_ROOT</code>. If <code>BOOST_INCLUDE</code> and
+<code>BOOST_LIB</code> are not initialized then their values are derived
+from <code>BOOST_ROOT</code> as follows:<p>
+
+<pre>
+BOOST_LIB := $(BOOST_ROOT)/lib
+BOOST_INCLUDE := $(BOOST_ROOT)
+</pre>
+
+<p>Below are some examples of how you may do that.</p>
+
+<p>If you would like to use Boost/Utility from the build directory:</p>
+
+<pre>$ export BOOST_ROOT=~/build/boost-1.30.2
+$ export UTILITY_ROOT=~/build/Utility-1.2.2
+</pre>
+
+<p>If Boost was installed in <code>/usr/local</code> and compiler doesn't
+search there by default:</p>
+
+<pre>$ export BOOST_LIB=/usr/local/lib
+$ export BOOST_INCLUDE=/usr/local/include
+$ export UTILITY_ROOT=~/build/Utility-1.2.2
+</pre>
+
+<p>If Boost was installed in let's say <code>/usr/{include,lib}</code> and
+compiler searches there by default you may leave <code>BOOST_*</code>
+uninitialized.</p>
+
+<p>Alternatively, you can specify values for <code>BOOST_*</code> and
+<code>UTILITY_*</code> in <code>$CIAO_ROOT/CCF/Config.rules</code></p>
+
+<p>Finally, you can start the build process:</p>
+
+<pre>$ cd CCF/CCF
+$ make</pre>
+
<!-- Windows -->
-<!--h2><a name="windows">Windows</a></h2>
-<h3><a name="windows_cxx">C++</a></h3>
+<h1><a name="windows">Windows</a></h1>
+
+<h2><a name="windows_cxx">C++</a></h2>
+<p>VC++ 7.1 is required to build CCF on Windows. Note that neither
+VC++ 6 nor VC++ 7.0 is supported. </p>
-<h3><a name="windows_boost">Boost Libraries</a></h3>
+<h2><a name="windows_boost">Boost Libraries</a></h2>
<p>In order to build CCF you will need the following libraries from
the <a href="http://www.boost.org">Boost distribution</a>:
@@ -243,10 +292,10 @@ an example, I assume that the installation directory is <code>D:\lib</code>.
<li>Download boost source distribution version <code>1.30.2</code> (<code>boost-1.30.2.zip</code>)
from the <a href="http://sourceforge.net/project/showfiles.php?group_id=7586">Boost web site</a>.
After downloading unzip the file in <code>D:\lib</code> so that you get
-<code>D:\lib\boost-1.30.2</code>. Note that boost version <code>1.31.0</code>
-
+<code>D:\lib\boost-1.30.2</code>. Note that boost version <code>1.31.0</code>
will not work.</li>
+
<li>Download the latest pre-built
<a href="http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941">
<code>boost-jam</code></a>. At the time of writing, the latest version was
@@ -284,7 +333,8 @@ search list.</li>
<a href="http://www.boost.org/more/getting_started.html">Boost Building
Instructions</a> if you have any questions.<p>
-<h3><a name="windows_utility">Utility Library</a></h3>
+
+<h2><a name="windows_utility">Utility Library</a></h2>
<p>Another prerequisite for CCF is
<a href="http://www.dre.vanderbilt.edu/cidlc/prerequisites/Utility-1.2.2.tar.bz2">Utility
@@ -292,111 +342,12 @@ Library</a>. You don't need to build anything in this library. Just unpack
it to some convenient place and add it to your VC7.1 include directory search
list. For example if you unpacked <code>Utility-1.2.2.tar.bz2</code> in
<code>D:\lib</code> then add <code>D:\lib\Utility-1.2.2</code> to your
-search list.</p -->
-
-<hr />
-
-<!-- Configuring the Build Environment -->
-
-<h1><a name="initial_setup">Configuring the Build Environment</a></h1>
-
-<p>Before you can start building CCF you need to specify the location
-of Boost Libraries and Utility Library. There are two ways you can do
-this. The first way is to specify the environment variables
-
-<code>BOOST_ROOT, BOOST_INCLUDE, BOOST_LIB, BOOST_VERSION, BOOST_CFG</code>
-and <code>UTILITY_ROOT</code>.
-
-<p>To configure <code>BOOST_ROOT</code> and <code>UTILITY_ROOT</code>,
-
-set both enviroment variables to the root directory for the respective
-libraries as follows:</p>
-<ul>
-<li>On Linux/UNIX
-<pre>
-%> export BOOST_ROOT=&lt;path_to_boost&gt;
-%> export UTILITY_ROOT=&lt;path_to_utility&gt;
-</pre>
-</li>
-<li>On Windows
-<pre>
-%> set BOOST_ROOT=&lt;path_to_boost&gt;
-%> set UTILITY_ROOT=&lt;path_to_utility&gt;
-</pre>
-</li>
-</ul>
-
-<p>If <code>BOOST_INCLUDE</code> and <code>BOOST_LIB</code> are not initialized,
-
-then their values are derived from <code>BOOST_ROOT</code> as follows:<p>
-
-<pre>
-BOOST_LIB := $(BOOST_ROOT)/lib
-BOOST_INCLUDE := $(BOOST_ROOT)
-</pre>
-
-<p><code>BOOST_VERSION</code> and <code>BOOST_CFG</code> are two environment variables that
-depend on the version and configuration of Boost that you are using. <code>BOOST_VERSION</code>
-is initialized as follows:</p>
-<ol>
-<li>Look in <code>$BOOST_ROOT/include/boost</code> directory</li>
-<li>If there is another boost directory, e.g. <code>boost-1_32</code> for building boost-1.32, then this is your version
- <ul>
- <li>On Linux/UNIX:
-
- <pre><code>%> export BOOST_VERSION=boost-1_32</code></pre></li>
- <li>On Windows:
-
- <pre><code>%> set BOOST_VERSION=boost-1_32</code></pre></li>
- </ul>
-</li>
-</ol>
-<p>
-<code>BOOST_CFG</code> depends on which configuration of the boost libraries you want use for CCF. If
-you look in <code>$BOOST_ROOT/lib</code>, you will notice all the Boost libraries. Each library has
-the compiler and threading support, e.g. <code>-vc71-mt</code> for VC++ 7.1 and multi-threaded, as part
-
-of the filename. If this is not the case for your libraries, then you can
-
-<a href="#building_ccf">skip</a> this section and continue at
-
-<a href="#building_ccf">Building CORBA Compiler Framework (CCF)</a>. This part of
-
-the filename is known as the <code>BOOST_CFG</code> and needs to be specified. For example, if you are
-
-using VC++ 7.1 and want to use the multi-threaded version of the libraries for CCF, your would do the
-following:
-<blockquote><code>%> set BOOST_CFG=-vc71-mt</code></blockquote>
-This can be done similarly on the Linux/UNIX platforms depending on your compiler version and the
-
-Boost configuration you want to use.</p>
-
-<p>Alternatively, you can specify all values for <code>BOOST_*</code> and
-<code>UTILITY_*</code> in <code>$CIAO_ROOT/CCF/Config.rules</code></p>
-
-<!-- Building CORBA Compiler Framework (CCF) -->
-
-<hr />
-<h1><a name="building_ccf">Building CORBA Compiler Framework (CCF)</a></h1>
-
-Now that you have built and installed the required libraries, you are now ready
-to build the CCF libraries. If there are any makefiles or project solutions
-in the CCF directory we recommend that you disgard those and regenerate
-all the projects files using MPC. To build all project files and CCF, please use the
-following steps:
-<ol>
-<li><code>%> cd $CIAO_ROOT/CCF/CCF</code></li>
-<li><code>%> $ACE_ROOT/bin/mwc.pl -type &lt;project-type&gt; -static -features cidl=1, exceptions=1, boost=1</code></li>
-</ol>
-On Linux/UNIX, if you are building with a make utility, e.g., gmake, use the following command
-to build CCF:
+search list.</p>
-<pre>%> gmake cidl=1 exceptions=1 boost=1</pre>
-<p>If you are building on Windows, just open the generated solution file.</p>
-<p><b>Note:</b> If you are building CCF on a Windows platform, use <code>%ACE_ROOT%\bin\mwc.pl</code> instead
+<h2><a name="windows_build">Building CCF</a></h2>
-<code>of $ACE_ROOT/bin/mwc.pl</code>. Also, for a list of project types and other command-line options
-supported by MPC, type <code>$ACE_ROOT/bin/mwc.pl --help</code>.</p>
+<p>Now you are ready to build CCF libraries. Just open VC7.1 solution file
+in <code>CCF\CCF\</code> and proceed as usual.</p>
</body>
</html>
diff --git a/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp b/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp
index a933f2bd6bb..c87639ea62e 100644
--- a/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp
+++ b/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp
@@ -1498,7 +1498,7 @@ generate (CommandLine const& cl,
string suffix (cl.get_value ("lem-file-suffix", "E.idl"));
string expr (cl.get_value (
- "lem-file-regex", "/^(.+?)(\\.(idl|cidl))?$/$1" + suffix + "/"));
+ "lem-file-regex", "/(\\.(idl|cidl))?$/" + suffix + "/"));
string lem_file_name (regex::perl_s (file_name, expr));
diff --git a/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/cidlc.cpp b/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/cidlc.cpp
index 633697c0641..73348aca4eb 100644
--- a/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/cidlc.cpp
+++ b/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/cidlc.cpp
@@ -30,7 +30,7 @@ using namespace CCF::CIDL;
using namespace CCF::CIDL::SemanticGraph;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try
{
diff --git a/TAO/CIAO/CIAO-INSTALL.html b/TAO/CIAO/CIAO-INSTALL.html
index 6e1b8a5a612..17b6fd46597 100644
--- a/TAO/CIAO/CIAO-INSTALL.html
+++ b/TAO/CIAO/CIAO-INSTALL.html
@@ -104,56 +104,68 @@
1.90GHZ CPU, please be patient).
</li>
</ul>
- <p><A href="../../MPC/README">MPC</A> is used to build the CIDL compiler on <strong>
- Windows</strong>. The procedure is outlined below.
+ <p>There are 2 ways to build the CIDL compiler on <strong>Windows</strong>:
</p>
- <ul>
- <li>
- If you have not created it already, create the file <code>%ACE_ROOT%/bin/MakeProjectCreator/config/default.features</code>
- and add <code>cidl=1</code> and <code>boost=1</code> to it, each on its own
- line. An easy way to do this is to copy the file <code>global.features</code> (in the
- same directory) as <code>default.features</code>
- and modify the appropriate lines in the new file, leaving everything else the
- same.
+ <ol>
<li>
- Install the <a href="http://www.boost.org">Boost</a>
- libraries on your machine. For Windows, you can download either the
- Windows-specific .exe file or the platform-independent .zip file. Use version
- 1.32.0 or later. The accompanying documentation on how to build and install
- Boost is pretty straightforward.
+ Use the provided Visual Studio solution/project file. For detail please see <A href="./CCF/Documentation/Build.html">
+ Build.html</A>. Since MPC is now supported to build the CIDL compiler on
+ Windows, these solution/project files may be removed in the future.
<li>
- Set the following environment variables:
+ Use <A href="../../MPC/README">MPC</A>. The procedure is outlined below.
<ul>
<li>
- <code>ACE_ROOT</code>
- - [path&nbsp;ending with&nbsp;ACE_wrappers directory] (this should already be
- set if you're using CIAO)
+ If you have not created it already, create the file <code>%ACE_ROOT%/bin/MakeProjectCreator/config/default.features</code>
+ and add <code>cidl=1</code> and <code>boost=1</code> to it, each on its own
+ line. An easy way to do this is to copy the file <code>global.features</code> (in the
+ same directory) as <code>default.features</code>
+ and modify the appropriate lines in the new file, leaving everything else the
+ same.
+ <li>
+ Install the <a href="http://www.boost.org">Boost</a>
+ libraries on your machine. For Windows, you can download either the
+ Windows-specific .exe file or the platform-independent .zip file. Use version
+ 1.32.0 or later. The accompanying documentation on how to build and install
+ Boost is pretty straightforward.
<li>
- <code>BOOST_CFG</code> - <code>_vc7_mdsd</code>
+ Set the following environment variables:
+ <ul>
+ <li>
+ <code>ACE_ROOT</code>
+ - [path&nbsp;ending with&nbsp;ACE_wrappers directory] (this should already be
+ set if you're using CIAO)
+ <li>
+ <code>BOOST_CFG</code> - <code>_vc7_mdsd</code>
+ <li>
+ <code>BOOST_ROOT</code>
+ - [path ending with Boost directory]
+ <li>
+ <code>BOOST_VERSION</code> - [name of the directory under <code>%BOOST_ROOT%\include</code>,
+ for ex. <code>boost-1_32</code>, for Boost vesrion 1.32.0]
+ <LI>
+ <code>UTILITY_ROOT</code> - <code>%ACE_ROOT%\contrib\utility</code>
+ </LI>
+ </ul>
<li>
- <code>BOOST_ROOT</code>
- - [path ending with Boost directory]
+ In <code>%CIAO_ROOT%\CIDLC</code> run <code>%ACE_ROOT%\bin\mwc.pl -type vc71
+ CIDLC.mwc</code>
<li>
- <code>BOOST_VERSION</code> - [name of the directory under <code>%BOOST_ROOT%\include</code>,
- for ex. <code>boost-1_32</code>, for Boost version 1.32.0]
+ Open <code>CIDLC.sln</code> and build as usual. Within the solution, the CIDLC
+ project is the top-level one, which depends on all the other projects, and
+ produces <code>cidlc.exe</code> in <code>%CIAO_ROOT%\bin</code>.
+ </li>
</ul>
- <li>
- In <code>%CIAO_ROOT%\CIDLC</code> run <code>%ACE_ROOT%\bin\mwc.pl -type vc71
- CIDLC.mwc</code>
- <li>
- Open <code>CIDLC.sln</code> and build as usual. Within the solution, the CIDLC
- project is the top-level one, which depends on all the other projects, and
- produces <code>cidlc.exe</code> in <code>%CIAO_ROOT%\bin</code>.
</li>
- </ul>
+ </ol>
<hr>
<h3>Obtaining and Installing Xerces-C
</h3>
<p>The Xerces-C XML parsing library is a necessary component to build parts of
DAnCE that need to process XML based descriptor files, which include the <b>Plan
Launcher</b> and the <b>Repository Manager</b>. Currently, the only Xerces-C
- version supported by the DOC group is version 2.6 or later.
- Earlier versions of the Xerces-C library may work.
+ version supported by the DOC group is version 2.6 compiled with RTTI support.
+ Earlier versions of the Xerces-C library may work, but only if they were built
+ with RTTI support.
</p>
<h4>Building Xerces-C
</h4>
@@ -170,6 +182,12 @@
inconsistant library decorators onto the end of the Xerces-C libraries. The MPC
build tool will expect these libraries to be named xerces-c for non debug
versions, and xerces-cd for debug versions.
+ <li>
+ <strong>NOTE</strong>: RTTI is not enabled on most Win32 targets by default. If
+ you are building your own libraries, please make sure that you enable RTTI
+ support.<br>
+ <br>
+ </li>
</ul>
<h4>Xerces-C Environment Settings
</h4>
@@ -257,10 +275,10 @@
<li>
Remove all the GNUmakefiles or project files that are shipped with the release.
<li>
- Open up <code>$CIAO_ROOT/CIAO_TAO.mwc</code>
+ Open up <code>$CIAO_ROOT/CIAOTAO.mwc</code>
.
<li>
- Run <code>$ACE_ROOT/bin/mwc.pl CIAO_TAO.mwc</code> from <code>$CIAO_ROOT</code>
+ Run <code>$ACE_ROOT/bin/mwc.pl CIAOTAO.mwc</code> from <code>$CIAO_ROOT</code>
.
<li>
Type 'make'
diff --git a/TAO/CIAO/CIAO.mwc b/TAO/CIAO/CIAO.mwc
index dd297256b34..71765646cf0 100644
--- a/TAO/CIAO/CIAO.mwc
+++ b/TAO/CIAO/CIAO.mwc
@@ -2,4 +2,7 @@
// $Id$
workspace {
+ ciao
+ tools
+ DAnCE
}
diff --git a/TAO/CIAO/CIAOTAO.mwc b/TAO/CIAO/CIAOTAO.mwc
new file mode 100644
index 00000000000..c13d3e7353e
--- /dev/null
+++ b/TAO/CIAO/CIAOTAO.mwc
@@ -0,0 +1,19 @@
+// -*- MPC -*-
+// $Id$
+
+workspace {
+ ../../ace
+ ../../apps/gperf/src
+ ../../ACEXML
+ ../tao
+ ../TAO_IDL
+ ../orbsvcs/orbsvcs/CosNaming.mpc
+ ../orbsvcs/orbsvcs/Svc_Utils.mpc
+ ../orbsvcs/orbsvcs/Security.mpc
+ ../orbsvcs/orbsvcs/IFRService.mpc
+ DAnCE
+ ciao
+ tools
+ tests
+ examples
+}
diff --git a/TAO/CIAO/CIAO_DAnCE.mwc b/TAO/CIAO/CIAO_DAnCE.mwc
deleted file mode 100644
index 97e79d5b9a2..00000000000
--- a/TAO/CIAO/CIAO_DAnCE.mwc
+++ /dev/null
@@ -1,8 +0,0 @@
-//$Id$
-
-workspace {
- ciao
- DAnCE
- ciaosvcs
- tools/Config_Handlers
-}
diff --git a/TAO/CIAO/CIAO_TAO.mwc b/TAO/CIAO/CIAO_TAO.mwc
deleted file mode 100644
index 64577db506b..00000000000
--- a/TAO/CIAO/CIAO_TAO.mwc
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-workspace {
- ../../ace
- ../../apps/gperf/src
- ../../ACEXML
- ../tao
- ../TAO_IDL
- ../orbsvcs/orbsvcs/CosEvent.mpc
- ../orbsvcs/orbsvcs/CosNaming.mpc
- ../orbsvcs/orbsvcs/CosNaming_Serv.mpc
- ../orbsvcs/orbsvcs/CosNaming_Skel.mpc
- ../orbsvcs/Naming_Service
- ../orbsvcs/orbsvcs/Svc_Utils.mpc
- ../orbsvcs/orbsvcs/Security.mpc
- ../orbsvcs/orbsvcs/IFRService.mpc
- ../orbsvcs/orbsvcs/RTEvent_Serv.mpc
- ../orbsvcs/orbsvcs/RTEvent_Skel.mpc
- ../orbsvcs/orbsvcs/RTEvent.mpc
-
- DAnCE
- ciao
- ciaosvcs
- tools
- tests
- examples
- RACE
-}
diff --git a/TAO/CIAO/CIAO_TAO_DAnCE.mwc b/TAO/CIAO/CIAO_TAO_DAnCE.mwc
deleted file mode 100644
index 54512e87735..00000000000
--- a/TAO/CIAO/CIAO_TAO_DAnCE.mwc
+++ /dev/null
@@ -1,24 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-workspace {
- ../../ace
- ../../apps/gperf/src
- ../../ACEXML
- ../tao
- ../TAO_IDL
- ../orbsvcs/orbsvcs/CosNaming.mpc
- ../orbsvcs/orbsvcs/CosNaming_Serv.mpc
- ../orbsvcs/orbsvcs/CosNaming_Skel.mpc
- ../orbsvcs/Naming_Service
- ../orbsvcs/orbsvcs/Svc_Utils.mpc
- ../orbsvcs/orbsvcs/Security.mpc
- ../orbsvcs/orbsvcs/IFRService.mpc
- ../orbsvcs/orbsvcs/RTEvent.mpc
- ../orbsvcs/orbsvcs/RTEvent_Serv.mpc
- ../orbsvcs/orbsvcs/RTEvent_Skel.mpc
- ciao
- DAnCE
- ciaosvcs
- tools/Config_Handlers
-}
diff --git a/TAO/CIAO/CIDLC/AttributeHeaderEmitters.cpp b/TAO/CIAO/CIDLC/AttributeHeaderEmitters.cpp
deleted file mode 100644
index 2442ef3f958..00000000000
--- a/TAO/CIAO/CIDLC/AttributeHeaderEmitters.cpp
+++ /dev/null
@@ -1,199 +0,0 @@
-// file : CIDLC/AttributeHeaderEmitters.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "AttributeHeaderEmitters.hpp"
-#include "Literals.hpp"
-
-using namespace StringLiterals;
-
-WriteAttributeHeaderEmitter::WriteAttributeHeaderEmitter (Context& c)
- : EmitterBase (c),
- write_type_name_emitter_ (c),
- type_name_emitter_ (c)
-{
- write_belongs_.node_traverser (write_type_name_emitter_);
-
- edge_traverser (set_raises_);
- set_raises_.node_traverser (type_name_emitter_);
-}
-
-void
-WriteAttributeHeaderEmitter::pre (SemanticGraph::ReadWriteAttribute&)
-{
- os << "void" << endl;
-}
-
-void
-WriteAttributeHeaderEmitter::name (SemanticGraph::ReadWriteAttribute& a)
-{
- os << a.name () << " (" << endl;
-
- Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
-
- os << " " << a.name () << endl
- << STRS[ENV_HDR] << ")" << endl;
-}
-
-void
-WriteAttributeHeaderEmitter::get_raises (SemanticGraph::ReadWriteAttribute&)
-{
-}
-
-void
-WriteAttributeHeaderEmitter::set_raises_none (SemanticGraph::ReadWriteAttribute&)
-{
- os << STRS[EXCP_SNGL];
-}
-
-void
-WriteAttributeHeaderEmitter::set_raises_pre (SemanticGraph::ReadWriteAttribute&)
-{
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
-}
-
-void
-WriteAttributeHeaderEmitter::set_raises_post (SemanticGraph::ReadWriteAttribute&)
-{
- os << "))";
-}
-
-void
-WriteAttributeHeaderEmitter::post (SemanticGraph::ReadWriteAttribute&)
-{
- os << ";" << endl;
-}
-
-void
-WriteAttributeHeaderEmitter::comma (SemanticGraph::ReadWriteAttribute&)
-{
- os << "," << endl;
-}
-
-// ============================================================
-
-AttributeHeaderEmitter::AttributeHeaderEmitter (Context& c)
- : EmitterBase (c),
- read_type_name_emitter_ (c),
- type_name_emitter_ (c)
-{
- read_belongs_.node_traverser (read_type_name_emitter_);
-
- edge_traverser (get_raises_);
- get_raises_.node_traverser (type_name_emitter_);
-}
-
-// ReadWriteAttribute
-//
-void
-AttributeHeaderEmitter::pre (SemanticGraph::ReadWriteAttribute& a)
-{
- os << "virtual ";
-
- Traversal::ReadWriteAttribute::belongs (a, read_belongs_);
-
- os << endl;
-}
-
-void
-AttributeHeaderEmitter::name (SemanticGraph::ReadWriteAttribute& a)
-{
- os << a.name () << " (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl;
-}
-
-void
-AttributeHeaderEmitter::get_raises_none (SemanticGraph::ReadWriteAttribute&)
-{
- os << STRS[EXCP_SNGL];
-}
-
-void
-AttributeHeaderEmitter::get_raises_pre (SemanticGraph::ReadWriteAttribute&)
-{
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
-}
-
-void
-AttributeHeaderEmitter::get_raises_post (SemanticGraph::ReadWriteAttribute&)
-{
- os << "))";
-}
-
-void
-AttributeHeaderEmitter::set_raises (SemanticGraph::ReadWriteAttribute&)
-{
-}
-
-void
-AttributeHeaderEmitter::post (SemanticGraph::ReadWriteAttribute& a)
-{
- os << ";" << endl;
-
- WriteAttributeHeaderEmitter write_attribute_emitter (ctx);
- write_attribute_emitter.traverse (a);
-}
-
-void
-AttributeHeaderEmitter::comma (SemanticGraph::ReadWriteAttribute&)
-{
- os << "," << endl;
-}
-
-// ReadAttribute
-//
-void
-AttributeHeaderEmitter::pre (SemanticGraph::ReadAttribute& a)
-{
- os << "virtual ";
-
- Traversal::ReadAttribute::belongs (a, read_belongs_);
-
- os << endl;
-}
-
-void
-AttributeHeaderEmitter::name (SemanticGraph::ReadAttribute& a)
-{
- os << a.name () << " (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl;
-}
-
-void
-AttributeHeaderEmitter::get_raises_none (SemanticGraph::ReadAttribute&)
-{
- os << STRS[EXCP_SNGL];
-}
-
-void
-AttributeHeaderEmitter::get_raises_pre (SemanticGraph::ReadAttribute&)
-{
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
-}
-
-void
-AttributeHeaderEmitter::get_raises_post (SemanticGraph::ReadAttribute&)
-{
- os << "))";
-}
-
-void
-AttributeHeaderEmitter::set_raises (SemanticGraph::ReadAttribute&)
-{
-}
-
-void
-AttributeHeaderEmitter::post (SemanticGraph::ReadAttribute&)
-{
- os << ";" << endl;
-}
-
-void
-AttributeHeaderEmitter::comma (SemanticGraph::ReadAttribute&)
-{
- os << "," << endl;
-}
-
diff --git a/TAO/CIAO/CIDLC/AttributeHeaderEmitters.hpp b/TAO/CIAO/CIDLC/AttributeHeaderEmitters.hpp
deleted file mode 100644
index f4318ad0073..00000000000
--- a/TAO/CIAO/CIDLC/AttributeHeaderEmitters.hpp
+++ /dev/null
@@ -1,119 +0,0 @@
-// file : CIDLC/AttributeHeaderEmitters.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef ATTRIBUTEHEADEREMITTERS_HPP
-#define ATTRIBUTEHEADEREMITTERS_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "CorbaTypeNameEmitters.hpp"
-#include "UtilityTypeNameEmitters.hpp"
-#include "EmitterBase.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-struct WriteAttributeHeaderEmitter : Traversal::ReadWriteAttribute,
- EmitterBase
-{
- WriteAttributeHeaderEmitter (Context& c);
-
- virtual void
- pre (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- name (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- get_raises (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- set_raises_none (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- set_raises_pre (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- set_raises_post (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- post (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- comma (SemanticGraph::ReadWriteAttribute&);
-
- private:
- INArgTypeNameEmitter write_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
- Traversal::Belongs write_belongs_;
- Traversal::SetRaises set_raises_;
-};
-
-struct AttributeHeaderEmitter : Traversal::ReadAttribute,
- Traversal::ReadWriteAttribute,
- EmitterBase
-{
- AttributeHeaderEmitter (Context&);
-
- // ReadWriteAttribute
- //
- virtual void
- pre (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- name (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- get_raises_none (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- get_raises_pre (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- get_raises_post (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- set_raises (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- post (SemanticGraph::ReadWriteAttribute&);
-
- virtual void
- comma (SemanticGraph::ReadWriteAttribute&);
-
- // ReadAttribute
- //
- virtual void
- pre (SemanticGraph::ReadAttribute&);
-
- virtual void
- name (SemanticGraph::ReadAttribute&);
-
- virtual void
- get_raises_none (SemanticGraph::ReadAttribute&);
-
- virtual void
- get_raises_pre (SemanticGraph::ReadAttribute&);
-
- virtual void
- get_raises_post (SemanticGraph::ReadAttribute&);
-
- virtual void
- set_raises (SemanticGraph::ReadAttribute&);
-
- virtual void
- post (SemanticGraph::ReadAttribute&);
-
- virtual void
- comma (SemanticGraph::ReadAttribute&);
-
-private:
- ReturnTypeNameEmitter read_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
- Traversal::Belongs read_belongs_;
- Traversal::GetRaises get_raises_;
-};
-
-#endif // ATTRIBUTEHEADEREMITTERS_HPP
diff --git a/TAO/CIAO/CIDLC/AttributeSourceEmitters_T.hpp b/TAO/CIAO/CIDLC/AttributeSourceEmitters_T.hpp
deleted file mode 100644
index 6dc1aa1bb37..00000000000
--- a/TAO/CIAO/CIDLC/AttributeSourceEmitters_T.hpp
+++ /dev/null
@@ -1,368 +0,0 @@
-// file : CIDLC/AttributeSourceEmitters_T.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef ATTRIBUTESOURCEEMITTERS_T_HPP
-#define ATTRIBUTESOURCEEMITTERS_T_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "Literals.hpp"
-#include "CorbaTypeNameEmitters.hpp"
-#include "UtilityTypeNameEmitters.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-using namespace StringLiterals;
-
-template <typename T>
-struct WriteAttributeSourceEmitter : Traversal::ReadWriteAttribute,
- EmitterBase
-{
- WriteAttributeSourceEmitter (Context& c,
- T& scope,
- bool swapping,
- bool exec_src)
- : EmitterBase (c),
- scope_ (scope),
- write_type_name_emitter_ (c),
- type_name_emitter_ (c),
- swapping_ (swapping),
- exec_src_ (exec_src)
- {
- write_belongs_.node_traverser (write_type_name_emitter_);
- edge_traverser (set_raises_);
- set_raises_.node_traverser (type_name_emitter_);
- }
-
- virtual void
- gen_swapping_set ()
- {
- os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << "ACE_CHECK;" << endl;
- }
-
- virtual void
- pre (SemanticGraph::ReadWriteAttribute&)
- {
- os << "void" << endl;
- }
-
- virtual void
- name (SemanticGraph::ReadWriteAttribute& a)
- {
- os << scope_.name ()
- << (exec_src_ ? "_exec_i::" : "_Servant::")
- << a.name () << " (" << endl;
-
- Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
-
- os << (exec_src_ ? " /* " : " ")
- << a.name ()
- << (exec_src_ ? " */" : "") << endl
- << (exec_src_ ? STRS[ENV_SRC_NOTUSED] : STRS[ENV_SRC])
- << ")" << endl;
- }
-
- virtual void
- get_raises (SemanticGraph::ReadWriteAttribute&)
- {
- }
-
- virtual void
- set_raises_none (SemanticGraph::ReadWriteAttribute&)
- {
- os << STRS[EXCP_SNGL];
- }
-
- virtual void
- set_raises_pre (SemanticGraph::ReadWriteAttribute&)
- {
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
- }
-
- virtual void
- set_raises_post (SemanticGraph::ReadWriteAttribute&)
- {
- os << "))" << endl;
- }
-
- virtual void
- post (SemanticGraph::ReadWriteAttribute& a)
- {
- os << "{";
-
- if (exec_src_)
- {
- os << STRS[YCH];
- }
- else
- {
- if (swapping_)
- {
- this->gen_swapping_set ();
- }
-
- os << "this->executor_->" << a.name () << " (" << endl
- << a.name () << endl
- << STRS[ENV_ARG] << ");" << endl;
- }
-
- os << "}";
- }
-
- virtual void
- comma (SemanticGraph::ReadWriteAttribute&)
- {
- os << "," << endl;
- }
-
-protected:
- T& scope_;
- Traversal::Belongs write_belongs_;
-
-private:
- INArgTypeNameEmitter write_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
- Traversal::SetRaises set_raises_;
- bool swapping_;
- bool exec_src_;
-};
-
-template <typename T>
-struct AttributeSourceEmitter : Traversal::ReadAttribute,
- Traversal::ReadWriteAttribute,
- EmitterBase
-{
- AttributeSourceEmitter (Context& c, T& scope, bool exec_src = false)
- : EmitterBase (c),
- scope_ (scope),
- read_type_name_emitter_ (c),
- type_name_emitter_ (c),
- return_emitter_ (c),
- ace_check_return_emitter_ (c),
- exec_src_ (exec_src)
- {
- read_belongs_.node_traverser (read_type_name_emitter_);
- return_belongs_.node_traverser (return_emitter_);
- ace_check_return_belongs_.node_traverser (ace_check_return_emitter_);
- edge_traverser (get_raises_);
- get_raises_.node_traverser (type_name_emitter_);
- }
-
- // ReadWriteAttribute
- //
-
- // Overridden by facet attribute emitter in servant source generator.
- virtual void
- gen_swapping_get (SemanticGraph::ReadWriteAttribute& a)
- {
- os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
-
- Traversal::ReadWriteAttribute::belongs (a, ace_check_return_belongs_);
-
- os << endl;
- }
-
- // Overridden by facet attribute emitter in servant source generator.
- virtual void
- gen_write_operation (SemanticGraph::ReadWriteAttribute& a,
- bool swapping)
- {
- WriteAttributeSourceEmitter<T> write_attribute_emitter (ctx,
- scope_,
- swapping,
- exec_src_);
- write_attribute_emitter.traverse (a);
- }
-
- virtual void
- pre (SemanticGraph::ReadWriteAttribute& a)
- {
- Traversal::ReadWriteAttribute::belongs (a, read_belongs_);
-
- os << endl;
- }
-
- virtual void
- name (SemanticGraph::ReadWriteAttribute& a)
- {
- os << scope_.name ()
- << (exec_src_ ? "_exec_i::" : "_Servant::")
- << a.name () << " (" << endl
- << (exec_src_ ? STRS[ENV_SNGL_SRC_NOTUSED] : STRS[ENV_SNGL_SRC])
- << ")" << endl;
- }
-
- virtual void
- get_raises_none (SemanticGraph::ReadWriteAttribute&)
- {
- os << STRS[EXCP_SNGL] << endl;
- }
-
- virtual void
- get_raises_pre (SemanticGraph::ReadWriteAttribute&)
- {
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
- }
-
- virtual void
- get_raises_post (SemanticGraph::ReadWriteAttribute&)
- {
- os << "))" << endl;
- }
-
- virtual void
- set_raises (SemanticGraph::ReadWriteAttribute&)
- {
- }
-
- virtual void
- post (SemanticGraph::ReadWriteAttribute& a)
- {
- bool swapping = false;
-
- os << "{";
-
- if (exec_src_)
- {
- os << STRS[YCH] << endl;
-
- Traversal::ReadWriteAttribute::belongs (a, return_belongs_);
- }
- else
- {
- string swap_option = ctx.cl ().get_value ("custom-container", "");
- swapping = (swap_option == "upgradeable");
-
- if (swapping)
- {
- this->gen_swapping_get (a);
- }
-
- os << "return this->executor_->" << a.name () << " (" << endl
- << STRS[ENV_SNGL_ARG] << ");";
- }
-
- os << "}";
-
- this->gen_write_operation (a, swapping);
- }
-
- virtual void
- comma (SemanticGraph::ReadWriteAttribute&)
- {
- os << "," << endl;
- }
-
- // ReadAttribute
- //
-
- // Overridden by facet attribute emitter in servant source generator.
- virtual void
- gen_swapping_get (SemanticGraph::ReadAttribute& a)
- {
- os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
-
- Traversal::ReadAttribute::belongs (a, ace_check_return_belongs_);
-
- os << endl;
- }
-
- virtual void
- pre (SemanticGraph::ReadAttribute& a)
- {
- Traversal::ReadAttribute::belongs (a, read_belongs_);
-
- os << endl;
- }
-
- virtual void
- name (SemanticGraph::ReadAttribute& a)
- {
- os << scope_.name ()
- << (exec_src_ ? "_exec_i::" : "_Servant::")
- << a.name () << " (" << endl
- << (exec_src_ ? STRS[ENV_SNGL_SRC_NOTUSED] : STRS[ENV_SNGL_SRC])
- << ")" << endl;
- }
-
- virtual void
- get_raises_none (SemanticGraph::ReadAttribute&)
- {
- os << STRS[EXCP_SNGL] << endl;
- }
-
- virtual void
- get_raises_pre (SemanticGraph::ReadAttribute&)
- {
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
- }
-
- virtual void
- get_raises_post (SemanticGraph::ReadAttribute&)
- {
- os << "))" << endl;
- }
-
- virtual void
- set_raises (SemanticGraph::ReadAttribute&)
- {
- }
-
- virtual void
- post (SemanticGraph::ReadAttribute& a)
- {
- bool swapping = false;
-
- os << "{";
-
- if (exec_src_)
- {
- os << STRS[YCH] << endl;
-
- Traversal::ReadAttribute::belongs (a, return_belongs_);
- }
- else
- {
- string swap_option = ctx.cl ().get_value ("custom-container", "");
- swapping = (swap_option == "upgradeable");
-
- if (swapping)
- {
- this->gen_swapping_get (a);
- }
-
- os << "return this->executor_->" << a.name () << " (" << endl
- << STRS[ENV_SNGL_ARG] << ");";
- }
-
- os << "}";
- }
-
- virtual void
- comma (SemanticGraph::ReadAttribute&)
- {
- os << "," << endl;
- }
-
-protected:
- T& scope_;
-
-private:
- ReturnTypeNameEmitter read_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
- NullReturnEmitter return_emitter_;
- AceCheckReturnEmitter ace_check_return_emitter_;
- Traversal::Belongs read_belongs_;
- Traversal::Belongs return_belongs_;
- Traversal::Belongs ace_check_return_belongs_;
- Traversal::GetRaises get_raises_;
- bool exec_src_;
-};
-
-#endif // ATTRIBUTESOURCEEMITTERS_T_HPP
diff --git a/TAO/CIAO/CIDLC/CIDLC.mpc b/TAO/CIAO/CIDLC/CIDLC.mpc
index 034bf35a71b..9a153b3858f 100644
--- a/TAO/CIAO/CIDLC/CIDLC.mpc
+++ b/TAO/CIAO/CIDLC/CIDLC.mpc
@@ -7,10 +7,20 @@ project(CIDLC): cidlc {
libs += CIDL IDL3 IDL2 CodeGenerationKit CompilerElements
Source_Files {
- *.cpp
+ ExecutorMappingGenerator.cpp
+ DescriptorGenerator.cpp
+ ExecImplGenerator.cpp
+ ExecImplHeaderGenerator.cpp
+ ExecImplSourceGenerator.cpp
+ ExecutorMappingGenerator.cpp
+ RepositoryIdGenerator.cpp
+ SizeTypeCalculator.cpp
+ ServantGenerator.cpp
+ ServantHeaderGenerator.cpp
+ ServantSourceGenerator.cpp
+ TypeNameEmitter.cpp
+ Literals.cpp
+ cidlc.cpp
}
- Header_Files {
- *.hpp
- }
}
diff --git a/TAO/CIAO/CIDLC/CompositionEmitter.cpp b/TAO/CIAO/CIDLC/CompositionEmitter.cpp
deleted file mode 100644
index c7f9754b651..00000000000
--- a/TAO/CIAO/CIDLC/CompositionEmitter.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// file : CIDLC/CompositionEmitter.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "CompositionEmitter.hpp"
-#include "Literals.hpp"
-
-using namespace StringLiterals;
-
-CompositionEmitter::CompositionEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-CompositionEmitter::pre (Type& t)
-{
- ctx.composition_name (t.name ().str ());
-
- os << STRS[CIDL_NS] << t.name () << "{";
-}
-
-void
-CompositionEmitter::post (Type&)
-{
- os << "}";
-}
diff --git a/TAO/CIAO/CIDLC/CompositionEmitter.hpp b/TAO/CIAO/CIDLC/CompositionEmitter.hpp
deleted file mode 100644
index c6aeab17229..00000000000
--- a/TAO/CIAO/CIDLC/CompositionEmitter.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// file : CIDLC/CompositionEmitter.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef COMPOSITIONEMITTER_HPP
-#define COMPOSITIONEMITTER_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "EmitterBase.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-struct CompositionEmitter : Traversal::Composition,
- EmitterBase
-{
- CompositionEmitter (Context& c);
-
- virtual void pre (Type&);
-
- virtual void post (Type&);
-};
-
-#endif // COMPOSITIONEMITTER_HPP
diff --git a/TAO/CIAO/CIDLC/CorbaTypeNameEmitters.cpp b/TAO/CIAO/CIDLC/CorbaTypeNameEmitters.cpp
deleted file mode 100644
index 390e49c6c2b..00000000000
--- a/TAO/CIAO/CIDLC/CorbaTypeNameEmitters.cpp
+++ /dev/null
@@ -1,2235 +0,0 @@
-// file : CIDLC/CorbaTypeNameEmitter.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "CorbaTypeNameEmitters.hpp"
-#include "Literals.hpp"
-
-#include <ostream>
-
-using namespace std;
-using namespace StringLiterals;
-
-CorbaTypeNameEmitter::CorbaTypeNameEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Void&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Boolean&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Octet&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Char&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Wchar&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Short&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (UnsignedShort&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Long&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (UnsignedLong&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (LongLong&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (UnsignedLongLong&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Float&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Double&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (String&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::BoundedString&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Wstring&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Object&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (ValueBase&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (Any&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Array&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Enum&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Struct&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Union&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::BoundedSequence&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Interface&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::ValueType&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::EventType&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Component&)
-{
-}
-
-void
-CorbaTypeNameEmitter::traverse (SemanticGraph::Home&)
-{
-}
-
-// ====================================================================
-
-ReturnTypeNameEmitter::ReturnTypeNameEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-ReturnTypeNameEmitter::traverse (Void&)
-{
- os << "void";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Boolean&)
-{
- os << "::CORBA::Boolean";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Octet&)
-{
- os << "::CORBA::Octet";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Char&)
-{
- os << "::CORBA::Char";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Wchar&)
-{
- os << "::CORBA::WChar";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Short&)
-{
- os << "::CORBA::Short";
-}
-
-void
-ReturnTypeNameEmitter::traverse (UnsignedShort&)
-{
- os << "::CORBA::UShort";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Long&)
-{
- os << "::CORBA::Long";
-}
-
-void
-ReturnTypeNameEmitter::traverse (UnsignedLong&)
-{
- os << "::CORBA::ULong";
-}
-
-void
-ReturnTypeNameEmitter::traverse (LongLong&)
-{
- os << "::CORBA::LongLong";
-}
-
-void
-ReturnTypeNameEmitter::traverse (UnsignedLongLong&)
-{
- os << "::CORBA::ULongLong";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Float&)
-{
- os << "::CORBA::Float";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Double&)
-{
- os << "::CORBA::Double";
-}
-
-void
-ReturnTypeNameEmitter::traverse (String&)
-{
- os << "char *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << "char *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Wstring&)
-{
- os << "::CORBA::WChar *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << "::CORBA::WChar *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Object&)
-{
- os << "::CORBA::Object_ptr";
-}
-
-void
-ReturnTypeNameEmitter::traverse (ValueBase&)
-{
- os << "::CORBA::ValueBase *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (Any&)
-{
- os << "::CORBA::Any *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Array& a)
-{
- os << a.scoped_name () << "_slice *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name ();
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Struct& s)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
-
- os << s.scoped_name ();
-
- if (var_size)
- {
- os << " *";
- }
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Union& u)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
-
- os << u.scoped_name ();
-
- if (var_size)
- {
- os << " *";
- }
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::BoundedSequence& s)
-{
- os << s.scoped_name () << " *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
-{
- os << s.scoped_name () << " *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << i.scoped_name () << "_ptr";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
-{
- os << v.scoped_name () << " *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::EventType& e)
-{
- os << e.scoped_name () << " *";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Component& c)
-{
- os << c.scoped_name () << "_ptr";
-}
-
-void
-ReturnTypeNameEmitter::traverse (SemanticGraph::Home& h)
-{
- os << h.scoped_name () << "_ptr";
-}
-
-// ===============================================================
-
-INArgTypeNameEmitter::INArgTypeNameEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-INArgTypeNameEmitter::traverse (Boolean&)
-{
- os << "::CORBA::Boolean";
-}
-
-void
-INArgTypeNameEmitter::traverse (Octet&)
-{
- os << "::CORBA::Octet";
-}
-
-void
-INArgTypeNameEmitter::traverse (Char&)
-{
- os << "::CORBA::Char";
-}
-
-void
-INArgTypeNameEmitter::traverse (Wchar&)
-{
- os << "::CORBA::WChar";
-}
-
-void
-INArgTypeNameEmitter::traverse (Short&)
-{
- os << "::CORBA::Short";
-}
-
-void
-INArgTypeNameEmitter::traverse (UnsignedShort&)
-{
- os << "::CORBA::UShort";
-}
-
-void
-INArgTypeNameEmitter::traverse (Long&)
-{
- os << "::CORBA::Long";
-}
-
-void
-INArgTypeNameEmitter::traverse (UnsignedLong&)
-{
- os << "::CORBA::ULong";
-}
-
-void
-INArgTypeNameEmitter::traverse (LongLong&)
-{
- os << "::CORBA::LongLong";
-}
-
-void
-INArgTypeNameEmitter::traverse (UnsignedLongLong&)
-{
- os << "::CORBA::ULongLong";
-}
-
-void
-INArgTypeNameEmitter::traverse (Float&)
-{
- os << "::CORBA::Float";
-}
-
-void
-INArgTypeNameEmitter::traverse (Double&)
-{
- os << "::CORBA::Double";
-}
-
-void
-INArgTypeNameEmitter::traverse (String&)
-{
- os << "const char *";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << "const char *";
-}
-
-void
-INArgTypeNameEmitter::traverse (Wstring&)
-{
- os << "const ::CORBA::WChar *";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << "const ::CORBA::WChar *";
-}
-
-void
-INArgTypeNameEmitter::traverse (Object&)
-{
- os << "::CORBA::Object_ptr";
-}
-
-void
-INArgTypeNameEmitter::traverse (ValueBase&)
-{
- os << "::CORBA::ValueBase *";
-}
-
-void
-INArgTypeNameEmitter::traverse (Any&)
-{
- os << "const ::CORBA::Any &";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Array& a)
-{
- os << "const " << a.scoped_name ();
-}
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name ();
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Struct& s)
-{
- os << "const " << s.scoped_name () << " &";;
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Union& u)
-{
- os << "const " << u.scoped_name () << " &";;
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::BoundedSequence& s)
-{
- os << "const " << s.scoped_name () << " &";;
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
-{
- os << "const " << s.scoped_name () << " &";;
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << i.scoped_name () << "_ptr";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
-{
- os << v.scoped_name () << " *";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::EventType& e)
-{
- os << e.scoped_name () << " *";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Component& c)
-{
- os << c.scoped_name () << "_ptr";
-}
-
-void
-INArgTypeNameEmitter::traverse (SemanticGraph::Home& h)
-{
- os << h.scoped_name () << "_ptr";
-}
-
-// ===============================================================
-
-INOUTArgTypeNameEmitter::INOUTArgTypeNameEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Boolean&)
-{
- os << "::CORBA::Boolean &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Octet&)
-{
- os << "::CORBA::Octet &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Char&)
-{
- os << "::CORBA::Char &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Wchar&)
-{
- os << "::CORBA::WChar &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Short&)
-{
- os << "::CORBA::Short &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (UnsignedShort&)
-{
- os << "::CORBA::UShort &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Long&)
-{
- os << "::CORBA::Long &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (UnsignedLong&)
-{
- os << "::CORBA::ULong &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (LongLong&)
-{
- os << "::CORBA::LongLong &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (UnsignedLongLong&)
-{
- os << "::CORBA::ULongLong &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Float&)
-{
- os << "::CORBA::Float &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Double&)
-{
- os << "::CORBA::Double &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (String&)
-{
- os << "char *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << "char *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Wstring&)
-{
- os << "::CORBA::WChar *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << "::CORBA::WChar *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Object&)
-{
- os << "::CORBA::Object_ptr &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (ValueBase&)
-{
- os << "::CORBA::ValueBase *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (Any&)
-{
- os << "::CORBA::Any &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Array& a)
-{
- os << a.scoped_name ();
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name () << " &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Struct& s)
-{
- os << s.scoped_name () << " &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Union& u)
-{
- os << u.scoped_name () << " &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::BoundedSequence& s)
-{
- os << s.scoped_name () << " &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
-{
- os << s.scoped_name () << " &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << i.scoped_name () << "_ptr &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
-{
- os << v.scoped_name () << " *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::EventType& e)
-{
- os << e.scoped_name () << " *&";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Component& c)
-{
- os << c.scoped_name () << "_ptr &";
-}
-
-void
-INOUTArgTypeNameEmitter::traverse (SemanticGraph::Home& h)
-{
- os << h.scoped_name () << "_ptr";
-}
-
-// =================================================================
-
-OUTArgTypeNameEmitter::OUTArgTypeNameEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Boolean&)
-{
- os << "::CORBA::Boolean_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Octet&)
-{
- os << "::CORBA::Octet_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Char&)
-{
- os << "::CORBA::Char_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Wchar&)
-{
- os << "::CORBA::WChar_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Short&)
-{
- os << "::CORBA::Short_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (UnsignedShort&)
-{
- os << "::CORBA::UShort_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Long&)
-{
- os << "::CORBA::Long_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (UnsignedLong&)
-{
- os << "::CORBA::ULong_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (LongLong&)
-{
- os << "::CORBA::LongLong_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (UnsignedLongLong&)
-{
- os << "::CORBA::ULongLong_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Float&)
-{
- os << "::CORBA::Float_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Double&)
-{
- os << "::CORBA::Double_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (String&)
-{
- os << "::CORBA::String_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::BoundedString& s)
-{
- os << s.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Wstring&)
-{
- os << "::CORBA::WString_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::BoundedWideString& s)
-{
- os << s.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Object&)
-{
- os << "::CORBA::Object_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (ValueBase&)
-{
- os << "::CORBA::ValueBase_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (Any&)
-{
- os << "::CORBA::Any_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Array& a)
-{
- os << a.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Struct& s)
-{
- os << s.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Union& u)
-{
- os << u.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::BoundedSequence& s)
-{
- os << s.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
-{
- os << s.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << i.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
-{
- os << v.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::EventType& e)
-{
- os << e.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Component& c)
-{
- os << c.scoped_name () << "_out";
-}
-
-void
-OUTArgTypeNameEmitter::traverse (SemanticGraph::Home& h)
-{
- os << h.scoped_name () << "_ptr";
-}
-
-// ====================================================================
-
-NullReturnEmitter::NullReturnEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-NullReturnEmitter::traverse (Boolean&)
-{
- os << "return false;";
-}
-
-void
-NullReturnEmitter::traverse (Octet&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Char&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Wchar&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Short&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (UnsignedShort&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Long&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (UnsignedLong&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (LongLong&)
-{
- os << "return ACE_CDR_LONGLONG_INITIALIZER;";
-}
-
-void
-NullReturnEmitter::traverse (UnsignedLongLong&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Float&)
-{
- os << "return 0.0f;";
-}
-
-void
-NullReturnEmitter::traverse (Double&)
-{
- os << "return 0.0;";
-}
-
-void
-NullReturnEmitter::traverse (String&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Wstring&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Object&)
-{
- os << "return ::CORBA::Object::_nil ();";
-}
-
-void
-NullReturnEmitter::traverse (ValueBase&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (Any&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Array&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name () << " retval;" << endl
- << "return retval;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Struct& s)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (var_size)
- {
- os << "return 0;";
- }
- else
- {
- os << s.scoped_name () << " retval;" << endl
- << "return retval;";
- }
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Union& u)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (var_size)
- {
- os << "return 0;";
- }
- else
- {
- os << u.scoped_name () << " retval;" << endl
- << "return retval;";
- }
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::BoundedSequence&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::UnboundedSequence&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << "return " << i.scoped_name () << "::_nil ();";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::ValueType&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::EventType&)
-{
- os << "return 0;";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Component& c)
-{
- os << "return " << c.scoped_name () << "::_nil ();";
-}
-
-void
-NullReturnEmitter::traverse (SemanticGraph::Home& h)
-{
- os << "return " << h.scoped_name () << "::_nil ();";
-}
-
-// ====================================================================
-
-AceCheckReturnEmitter::AceCheckReturnEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-AceCheckReturnEmitter::traverse (Void&)
-{
- os << "ACE_CHECK;";
-}
-
-void
-AceCheckReturnEmitter::traverse (Boolean&)
-{
- os << STRS[ACE_CR] << " (false);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Octet&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Char&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Wchar&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Short&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (UnsignedShort&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Long&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (UnsignedLong&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (LongLong&)
-{
- os << STRS[ACE_CR] << " (ACE_CDR_LONGLONG_INITIALIZER);";
-}
-
-void
-AceCheckReturnEmitter::traverse (UnsignedLongLong&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Float&)
-{
- os << STRS[ACE_CR] << " (0.0f);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Double&)
-{
- os << STRS[ACE_CR] << " (0.0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (String&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Wstring&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Object&)
-{
- os << STRS[ACE_CR] << " (::CORBA::Object::_nil ());";
-}
-
-void
-AceCheckReturnEmitter::traverse (ValueBase&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (Any&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Array&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name () << " retval;"
- << STRS[ACE_UA] << " (retval);"
- << STRS[ACE_CR] << " (retval);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Struct& s)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (var_size)
- {
- os << STRS[ACE_CR] << " (0);";
- }
- else
- {
- os << s.scoped_name () << " retval;"
- << STRS[ACE_UA] << " (retval);"
- << STRS[ACE_CR] << " (retval);";
- }
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Union& u)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (var_size)
- {
- os << STRS[ACE_CR] << " (0);";
- }
- else
- {
- os << u.scoped_name () << " retval;"
- << STRS[ACE_UA] << " (retval);"
- << STRS[ACE_CR] << " (retval);";
- }
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::BoundedSequence&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::UnboundedSequence&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << STRS[ACE_CR] << " (" << i.scoped_name () << "::_nil ());";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::ValueType&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::EventType&)
-{
- os << STRS[ACE_CR] << " (0);";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Component& c)
-{
- os << STRS[ACE_CR] << " (" << c.scoped_name () << "::_nil ());";
-}
-
-void
-AceCheckReturnEmitter::traverse (SemanticGraph::Home& h)
-{
- os << STRS[ACE_CR] << " (" << h.scoped_name () << "::_nil ());";
-}
-
-// ====================================================================
-/* Not currently used, but it was at one time and may be useful again.
-
-NullRHSEmitter::NullRHSEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-NullRHSEmitter::traverse (Boolean&)
-{
- os << "= false;";
-}
-
-void
-NullRHSEmitter::traverse (Octet&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Char&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Wchar&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Short&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (UnsignedShort&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Long&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (UnsignedLong&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (LongLong&)
-{
- os << "= ACE_CDR_LONGLONG_INITIALIZER;";
-}
-
-void
-NullRHSEmitter::traverse (UnsignedLongLong&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Float&)
-{
- os << "= 0.0f;";
-}
-
-void
-NullRHSEmitter::traverse (Double&)
-{
- os << "= 0.0;";
-}
-
-void
-NullRHSEmitter::traverse (String&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Wstring&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Object&)
-{
- os << "= ::CORBA::Object::_nil ();";
-}
-
-void
-NullRHSEmitter::traverse (ValueBase&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (Any&)
-{
- // This will hopefully work both if the lhs is a pointer (for example
- // RetunrTypeNameEmitter) or not (for example INArgTypeNameEmitter).
- os << ";";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Array&)
-{
- // This will hopefully work both if the lhs is a slice pointer (for example
- // RetunrTypeNameEmitter) or not (for example INArgTypeNameEmitter).
- os << ";";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Enum&)
-{
- os << ";";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Struct& s)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (var_size)
- {
- os << "= 0;";
- }
- else
- {
- os << ";";
- }
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Union& u)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (var_size)
- {
- os << "= 0;";
- }
- else
- {
- os << ";";
- }
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::BoundedSequence&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::UnboundedSequence&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << "= " << i.scoped_name () << "::_nil ();";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::ValueType&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::EventType&)
-{
- os << "= 0;";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Component& c)
-{
- os << "= " << c.scoped_name () << "::_nil ();";
-}
-
-void
-NullRHSEmitter::traverse (SemanticGraph::Home& h)
-{
- os << "= " << h.scoped_name () << "::_nil ();";
-}
-*/
-// ====================================================================
-
-ExtractedTypeDeclEmitter::ExtractedTypeDeclEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Boolean&)
-{
- os << "::CORBA::Boolean " << STRS[EXTRACT_TMP] << " = false;"
- << "::CORBA::Any::to_boolean " << STRS[EXTRACT]
- << " (" << STRS[EXTRACT_TMP] << ");";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Octet&)
-{
- os << "::CORBA::Octet " << STRS[EXTRACT_TMP] << " = 0;"
- << "::CORBA::Any::to_octet " << STRS[EXTRACT]
- << " (" << STRS[EXTRACT_TMP] << ");";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Char&)
-{
- os << "::CORBA::Char " << STRS[EXTRACT_TMP] << " = 0;"
- << "::CORBA::Any::to_char " << STRS[EXTRACT]
- << " (" << STRS[EXTRACT_TMP] << ");";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Wchar&)
-{
- os << "::CORBA::WChar " << STRS[EXTRACT_TMP] << " = 0;"
- << "::CORBA::Any::to_wchar " << STRS[EXTRACT]
- << " (" << STRS[EXTRACT_TMP] << ");";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Short&)
-{
- os << "::CORBA::Short " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (UnsignedShort&)
-{
- os << "::CORBA::UShort " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Long&)
-{
- os << "::CORBA::Long " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (UnsignedLong&)
-{
- os << "::CORBA::ULong " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (LongLong&)
-{
- os << "::CORBA::LongLong " << STRS[EXTRACT]
- << " = ACE_CDR_LONGLONG_INITIALIZER;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (UnsignedLongLong&)
-{
- os << "::CORBA::ULongLong " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Float&)
-{
- os << "::CORBA::Float " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Double&)
-{
- os << "::CORBA::Double " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (String&)
-{
- os << "const char * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << "const char * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Wstring&)
-{
- os << "::CORBA::WChar * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << "::CORBA::WChar * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Object&)
-{
- os << "::CORBA::Object_ptr " << STRS[EXTRACT]
- << " = ::CORBA::Object::_nil ();";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (ValueBase&)
-{
- os << "::CORBA::ValueBase * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (Any&)
-{
- os << "::CORBA::Any * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Array& a)
-{
- os << a.scoped_name () << "_forany & " << STRS[EXTRACT] << ";";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Enum& e)
-{
- os << e.scoped_name () << " " << STRS[EXTRACT] << ";";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Struct& s)
-{
- os << s.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Union& u)
-{
- os << u.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::BoundedSequence& s)
-{
- os << s.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::UnboundedSequence& s)
-{
- os << s.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Interface& i)
-{
- os << i.scoped_name () << "_ptr " << STRS[EXTRACT] << " = "
- << i.scoped_name () << "::_nil ();";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::ValueType& v)
-{
- os << v.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::EventType& e)
-{
- os << e.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Component& c)
-{
- os << c.scoped_name () << "_ptr " << STRS[EXTRACT] << " = "
- << c.scoped_name () << "::_nil ();";
-}
-
-void
-ExtractedTypeDeclEmitter::traverse (SemanticGraph::Home& h)
-{
- os << h.scoped_name () << "_ptr " << STRS[EXTRACT] << " = "
- << h.scoped_name () << "::_nil ();";
-}
-
-// ====================================================================
-
-AssignFromExtractedEmitter::AssignFromExtractedEmitter (Context& c)
- : CorbaTypeNameEmitter (c)
-{
-}
-
-void
-AssignFromExtractedEmitter::traverse (Boolean&)
-{
- os << STRS[EXTRACT] << ".ref_";
-}
-
-void
-AssignFromExtractedEmitter::traverse (Octet&)
-{
- os << STRS[EXTRACT] << ".ref_";
-}
-
-void
-AssignFromExtractedEmitter::traverse (Char&)
-{
- os << STRS[EXTRACT] << ".ref_";
-}
-
-void
-AssignFromExtractedEmitter::traverse (Wchar&)
-{
- os << STRS[EXTRACT] << ".ref_";
-}
-
-void
-AssignFromExtractedEmitter::traverse (Short&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (UnsignedShort&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (Long&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (UnsignedLong&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (LongLong&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (UnsignedLongLong&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (Float&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (Double&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (String&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::BoundedString&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (Wstring&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (Object&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (ValueBase&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (Any&)
-{
- os << "*" << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Array&)
-{
- os << STRS[EXTRACT] << ".in ()";
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Enum&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Struct& s)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (!var_size)
- {
- os << "*";
- }
-
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Union& u)
-{
- // This should always be in the context, since the SizeTypeCalculator
- // is executed before the servant code generators.
- bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
-
- if (!var_size)
- {
- os << "*";
- }
-
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::BoundedSequence&)
-{
- os << "*" << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::UnboundedSequence&)
-{
- os << "*" << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Interface&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::ValueType&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::EventType&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Component&)
-{
- os << STRS[EXTRACT];
-}
-
-void
-AssignFromExtractedEmitter::traverse (SemanticGraph::Home&)
-{
- os << STRS[EXTRACT];
-}
-
-// ====================================================================
-
-SetAttributeDelegationEmitter::SetAttributeDelegationEmitter (
- Context& c,
- SemanticGraph::ReadWriteAttribute& a
- )
- : CorbaTypeNameEmitter (c),
- attr_ (a)
- , assign_emitter_ (c)
- , extract_emitter_ (c)
-{
- assign_belongs_.node_traverser (assign_emitter_);
- extract_belongs_.node_traverser (extract_emitter_);
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Boolean&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Octet&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Char&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Wchar&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Short&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (UnsignedShort&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Long&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (UnsignedLong&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (LongLong&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (UnsignedLongLong&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Float&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Double&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (String&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::BoundedString&)
-{
- emit_error ("bounded string");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Wstring&)
-{
- emit_error ("wstring");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::BoundedWideString&)
-{
- emit_error ("bounded wstring");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Object&)
-{
- emit_error ("CORBA::Object");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (ValueBase&)
-{
- emit_error ("CORBA::ValueBase");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (Any&)
-{
- emit_error ("CORBA::Any");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Array&)
-{
- emit_error ("array");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Enum&)
-{
- emit_delegation ();
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Struct&)
-{
- emit_error ("struct");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Union&)
-{
- emit_error ("union");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::BoundedSequence&)
-{
- emit_error ("bounded sequence");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::UnboundedSequence&)
-{
- emit_error ("unbounded sequence");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Interface&)
-{
- emit_error ("interface");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::ValueType&)
-{
- emit_error ("valuetype");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::EventType&)
-{
- emit_error ("eventtype");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Component&)
-{
- emit_error ("component");
-}
-
-void
-SetAttributeDelegationEmitter::traverse (SemanticGraph::Home&)
-{
- emit_error ("home");
-}
-
-void
-SetAttributeDelegationEmitter::emit_delegation (void)
-{
- open_if_block ();
-
- Traversal::ReadWriteAttribute::belongs (attr_, extract_belongs_);
-
- os << "descr_value >>= " << STRS[EXTRACT] << ";"
- << "this->" << attr_.name () << " (";
-
- Traversal::ReadWriteAttribute::belongs (attr_, assign_belongs_);
-
- os << ");";
-
- close_if_block ();
-}
-
-void
-SetAttributeDelegationEmitter::emit_error (const char *corba_kind)
-{
- open_if_block ();
-
- os << "ACE_ERROR ((" << endl
- << " LM_ERROR," << endl
- << " \"Component attributes of " << corba_kind << "\"" << endl
- << " \"IDL type are not yet supported by CIAO\\n\"" << endl
- << " ));";
-
- close_if_block ();
-}
-
-void
-SetAttributeDelegationEmitter::open_if_block (void)
-{
- os << "if (ACE_OS::strcmp (descr_name, \""
- << attr_.name () << "\") == 0)" << endl
- << "{";
-}
-
-void
-SetAttributeDelegationEmitter::close_if_block (void)
-{
- os << "continue;"
- << "}";
-}
diff --git a/TAO/CIAO/CIDLC/CorbaTypeNameEmitters.hpp b/TAO/CIAO/CIDLC/CorbaTypeNameEmitters.hpp
deleted file mode 100644
index 8a5a088f00c..00000000000
--- a/TAO/CIAO/CIDLC/CorbaTypeNameEmitters.hpp
+++ /dev/null
@@ -1,511 +0,0 @@
-// file : CIDLC/FullTypeNameEmitter.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef TYPENAME_EMITTER_HPP
-#define TYPENAME_EMITTER_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "EmitterBase.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-// Base class that holds the ostream member
-// common to every other class in this file,
-// and collects the ancestors in one place.
-//
-// Derived classes encapsulate the CORBA rules for
-// the C++ mapping of different type kinds.
-class CorbaTypeNameEmitter : public EmitterBase,
- public Traversal::Void,
- public Traversal::Boolean,
- public Traversal::Octet,
- public Traversal::Char,
- public Traversal::Wchar,
- public Traversal::Short,
- public Traversal::UnsignedShort,
- public Traversal::Long,
- public Traversal::UnsignedLong,
- public Traversal::LongLong,
- public Traversal::UnsignedLongLong,
- public Traversal::Float,
- public Traversal::Double,
- public Traversal::String,
- public Traversal::BoundedString,
- public Traversal::Wstring,
- public Traversal::BoundedWideString,
- public Traversal::Object,
- public Traversal::ValueBase,
- public Traversal::Any,
- public Traversal::Array,
- public Traversal::Enum,
- public Traversal::Struct,
- public Traversal::Union,
- public Traversal::BoundedSequence,
- public Traversal::UnboundedSequence,
- public Traversal::Interface,
- public Traversal::ValueType,
- public Traversal::EventType,
- public Traversal::Component,
- public Traversal::Home
-{
-public:
- virtual void traverse (Void&);
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-
-protected:
- CorbaTypeNameEmitter (Context&);
-};
-
-// Generates the name of an operation's return type.
-//
-//
-class ReturnTypeNameEmitter : public CorbaTypeNameEmitter
-{
-public:
- ReturnTypeNameEmitter (Context&);
-
- virtual void traverse (Void&);
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-// Generates the typename of an IN argument.
-//
-//
-class INArgTypeNameEmitter : public CorbaTypeNameEmitter
-{
-public:
- INArgTypeNameEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-// Generates the typename of an INOUT argument.
-//
-//
-class INOUTArgTypeNameEmitter : public CorbaTypeNameEmitter
-{
-public:
- INOUTArgTypeNameEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-// Generates the typename of an OUT argument.
-//
-//
-class OUTArgTypeNameEmitter : public CorbaTypeNameEmitter
-{
-public:
- OUTArgTypeNameEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-// Generates 'return' plus the appropriate NULL return value,
-// including no output for Void.
-//
-//
-class NullReturnEmitter : public CorbaTypeNameEmitter
-{
-public:
- NullReturnEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-// Generates 'return' plus the appropriate NULL return value,
-// including no output for Void.
-//
-//
-class AceCheckReturnEmitter : public CorbaTypeNameEmitter
-{
-public:
- AceCheckReturnEmitter (Context&);
-
- virtual void traverse (Void&);
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-/* Not currently used, but it was at one time and may be useful again.
-
-// Generates the appropriate NULL value, including the assignment operator,
-// if needed, for the rhs of an assignment statement.
-//
-//
-class NullRHSEmitter : public CorbaTypeNameEmitter
-{
-public:
- NullRHSEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-*/
-// Declares and initializes a variable to use for any extraction.
-//
-//
-class ExtractedTypeDeclEmitter : public CorbaTypeNameEmitter
-{
-public:
- ExtractedTypeDeclEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-// Declares and initializes a variable to use for any extraction.
-//
-//
-class AssignFromExtractedEmitter : public CorbaTypeNameEmitter
-{
-public:
- AssignFromExtractedEmitter (Context&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-};
-
-class SetAttributeDelegationEmitter : public CorbaTypeNameEmitter,
- public Traversal::ReadWriteAttribute
-{
-public:
- SetAttributeDelegationEmitter (Context&,
- SemanticGraph::ReadWriteAttribute&);
-
- virtual void traverse (Boolean&);
- virtual void traverse (Octet&);
- virtual void traverse (Char&);
- virtual void traverse (Wchar&);
- virtual void traverse (Short&);
- virtual void traverse (UnsignedShort&);
- virtual void traverse (Long&);
- virtual void traverse (UnsignedLong&);
- virtual void traverse (LongLong&);
- virtual void traverse (UnsignedLongLong&);
- virtual void traverse (Float&);
- virtual void traverse (Double&);
- virtual void traverse (String&);
- virtual void traverse (SemanticGraph::BoundedString&);
- virtual void traverse (Wstring&);
- virtual void traverse (SemanticGraph::BoundedWideString&);
- virtual void traverse (Object&);
- virtual void traverse (ValueBase&);
- virtual void traverse (Any&);
- virtual void traverse (SemanticGraph::Array&);
- virtual void traverse (SemanticGraph::Enum&);
- virtual void traverse (SemanticGraph::Struct&);
- virtual void traverse (SemanticGraph::Union&);
- virtual void traverse (SemanticGraph::BoundedSequence&);
- virtual void traverse (SemanticGraph::UnboundedSequence&);
- virtual void traverse (SemanticGraph::Interface&);
- virtual void traverse (SemanticGraph::ValueType&);
- virtual void traverse (SemanticGraph::EventType&);
- virtual void traverse (SemanticGraph::Component&);
- virtual void traverse (SemanticGraph::Home&);
-
-private:
- void emit_delegation (void);
- void emit_error (const char *);
- void open_if_block (void);
- void close_if_block (void);
-
-private:
- SemanticGraph::ReadWriteAttribute& attr_;
- AssignFromExtractedEmitter assign_emitter_;
- ExtractedTypeDeclEmitter extract_emitter_;
- Traversal::Belongs assign_belongs_;
- Traversal::Belongs extract_belongs_;
-};
-
-#endif /* TYPENAME_EMITTER_HPP */
diff --git a/TAO/CIAO/CIDLC/DescriptorGenerator.cpp b/TAO/CIAO/CIDLC/DescriptorGenerator.cpp
index e93896c91d7..7b5b41933c2 100644
--- a/TAO/CIAO/CIDLC/DescriptorGenerator.cpp
+++ b/TAO/CIAO/CIDLC/DescriptorGenerator.cpp
@@ -285,9 +285,9 @@ namespace
<< "</publishes>" << endl;
}
- struct FullTypeNameEmitter : Traversal::Type, EmitterBase
+ struct TypeNameEmitter : Traversal::Type, EmitterBase
{
- FullTypeNameEmitter (fs::ofstream& ofs)
+ TypeNameEmitter (fs::ofstream& ofs)
: EmitterBase (ofs)
{}
@@ -301,7 +301,7 @@ namespace
};
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
unsigned long facettag_;
Traversal::Belongs belongs_;
};
diff --git a/TAO/CIAO/CIDLC/EmitterBase.cpp b/TAO/CIAO/CIDLC/EmitterBase.cpp
deleted file mode 100644
index 418db97852a..00000000000
--- a/TAO/CIAO/CIDLC/EmitterBase.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// file : CIDLC/EmitterBase.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "EmitterBase.hpp"
-
-EmitterBase::EmitterBase (Context& c)
- : ctx (c),
- os (ctx.os ())
-{
-}
diff --git a/TAO/CIAO/CIDLC/EmitterBase.hpp b/TAO/CIAO/CIDLC/EmitterBase.hpp
deleted file mode 100644
index 407eee8d0e0..00000000000
--- a/TAO/CIAO/CIDLC/EmitterBase.hpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// file : CIDLC/EmitterBase.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef EMITTERBASE_HPP
-#define EMITTERBASE_HPP
-
-#include "EmitterContext.hpp"
-
-class EmitterBase
-{
-public:
- EmitterBase (Context&);
-
-protected:
- Context& ctx;
- ostream& os;
-};
-
-#endif // EMITTERBASE_HPP
diff --git a/TAO/CIAO/CIDLC/EmitterContext.cpp b/TAO/CIAO/CIDLC/EmitterContext.cpp
deleted file mode 100644
index 478ae5d0027..00000000000
--- a/TAO/CIAO/CIDLC/EmitterContext.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// file : CIDLC/EmitterContext.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "EmitterContext.hpp"
-
-Context::Context (ostream& os,
- string export_macro,
- CommandLine const& cl)
- : os_ (os),
- export_macro_ (export_macro),
- cl_ (cl)
-{
-}
-
-ostream&
-Context::os (void)
-{
- return os_;
-}
-
-string
-Context::export_macro (void)
-{
- return export_macro_;
-}
-
-CommandLine const&
-Context::cl (void)
-{
- return cl_;
-}
-
-string
-Context::composition_name (void)
-{
- return composition_name_;
-}
-
-void
-Context::composition_name (const string& name)
-{
- composition_name_ = name;
-}
-
diff --git a/TAO/CIAO/CIDLC/EmitterContext.hpp b/TAO/CIAO/CIDLC/EmitterContext.hpp
deleted file mode 100644
index bec5e74f91d..00000000000
--- a/TAO/CIAO/CIDLC/EmitterContext.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// file : CIDLC/EmitterContext.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef EMITTERCONTEXT_HPP
-#define EMITTERCONTEXT_HPP
-
-#include "CCF/CodeGenerationKit/CommandLine.hpp"
-
-#include <ostream>
-#include <string>
-
-using namespace std;
-
-class Context
-{
-public:
- Context (ostream& os,
- string export_macro,
- CommandLine const& cl);
-
- ostream& os (void);
- string export_macro (void);
- CommandLine const& cl (void);
- string composition_name (void);
- void composition_name (const string& name);
-
-private:
- ostream& os_;
- string export_macro_;
- CommandLine const& cl_;
- string composition_name_;
-};
-
-#endif // EMITTERCONTEXT_HPP
diff --git a/TAO/CIAO/CIDLC/ExecImplGenerator.cpp b/TAO/CIAO/CIDLC/ExecImplGenerator.cpp
index a1b9fc992e7..e68bc5a6206 100644
--- a/TAO/CIAO/CIDLC/ExecImplGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecImplGenerator.cpp
@@ -144,7 +144,7 @@ ExecImplGenerator::compute_export_macro (const fs::path& file_path)
// Replace the suffix.
export_macro_ =
regex::perl_s (export_macro_,
- "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1_EXEC_Export/");
+ "/(\\.(IDL|CIDL|CDL))?$/_EXEC_Export/");
// Replace any remaining '.' in the string with '_'.
export_macro_ = regex::perl_s (export_macro_,
@@ -164,7 +164,7 @@ ExecImplGenerator::configure_stream (string const& suffix_option,
default_suffix);
string file_expr =
cl_.get_value (regex_option,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + file_suffix + "/");
+ "/(\\.(idl|cidl|cdl))?$/" + file_suffix + "/");
string file_name = regex::perl_s (file_name_, file_expr);
diff --git a/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp b/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp
index 30c6ae09566..6ab0814e449 100644
--- a/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp
@@ -3,16 +3,8 @@
// cvs-id : $Id$
#include "ExecImplHeaderGenerator.hpp"
-#include "CorbaTypeNameEmitters.hpp"
-#include "UtilityTypeNameEmitters.hpp"
-#include "AttributeHeaderEmitters.hpp"
-#include "OperationHeaderEmitters.hpp"
-#include "ParameterEmitter_T.hpp"
-#include "CompositionEmitter.hpp"
-#include "ModuleEmitter.hpp"
-#include "InterfaceEmitter.hpp"
+#include "TypeNameEmitter.hpp"
#include "Literals.hpp"
-#include "Upcase.hpp"
#include <ostream>
@@ -26,6 +18,351 @@ using namespace CCF::CIDL::SemanticGraph;
namespace
{
+ // On some platforms toupper can be something other than a
+ // function.
+ int
+ upcase (int c)
+ {
+ return std::toupper (c);
+ }
+}
+
+namespace
+{
+ class Context
+ {
+ public:
+ Context (std::ostream& os,
+ string export_macro)
+ : os_ (os),
+ export_macro_ (export_macro)
+ {
+ }
+
+ std::ostream&
+ os ()
+ {
+ return os_;
+ }
+
+ string
+ export_macro ()
+ {
+ return export_macro_;
+ }
+
+ private:
+ std::ostream& os_;
+ string export_macro_;
+ };
+
+ class EmitterBase
+ {
+ public:
+ EmitterBase (Context& c)
+ : ctx (c),
+ os (ctx.os ())
+ {
+ }
+
+ protected:
+ Context& ctx;
+ std::ostream& os;
+ };
+
+ struct ModuleEmitter : Traversal::Module, EmitterBase
+ {
+ ModuleEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ os << "namespace " << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
+
+ struct CompositionEmitter : Traversal::Composition, EmitterBase
+ {
+ CompositionEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ os << STRS[CIDL_NS] << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
+
+ struct OperationEmitter : Traversal::Operation, EmitterBase
+ {
+ OperationEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ virtual void
+ pre (Type&)
+ {
+ os << "virtual ";
+ }
+
+ virtual void
+ name (Type& o)
+ {
+ os << endl << o.name ();
+ }
+
+ virtual void
+ receives_pre (Type&)
+ {
+ os << " (" << endl;
+ }
+
+ virtual void
+ receives_none (Type&)
+ {
+ os << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ receives_post (Type&)
+ {
+ os << endl << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ raises_pre (Type&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ raises_none (Type&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ raises_post (Type&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << ";" << endl;
+ }
+
+ virtual void
+ comma (Type&)
+ {
+ os << "," << endl;
+ }
+ };
+
+ // For generating parameter names.
+ template <typename T>
+ struct ParameterEmitter : T
+ {
+ ParameterEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ name (typename T::Type& p)
+ {
+ os << " " << p.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic scoped typename emitter used by various other emitters.
+ struct TypeNameEmitter : Traversal::Type
+ {
+ TypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic local typename emitter used by various other emitters.
+ struct SimpleTypeNameEmitter : Traversal::Type
+ {
+ SimpleTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generate name of type's enclosing scope.
+ struct EnclosingTypeNameEmitter : Traversal::Type
+ {
+ EnclosingTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ().scope_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Emits typename minus the leading double colon.
+ struct StrippedTypeNameEmitter : Traversal::Type
+ {
+ StrippedTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ ScopedName scoped (t.scoped_name ());
+ os << Name (scoped.begin () + 1, scoped.end ());
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generates operations associated with attributes.
+ // @@@ (JP) Need to support exceptions.
+ struct AttributeEmitter : Traversal::ReadWriteAttribute,
+ EmitterBase
+ {
+ AttributeEmitter (Context& c)
+ : EmitterBase (c),
+ write_type_name_emitter_ (c.os ()),
+ read_type_name_emitter_ (c.os ())
+ {
+ write_belongs_.node_traverser (write_type_name_emitter_);
+ read_belongs_.node_traverser (read_type_name_emitter_);
+ }
+
+ virtual void traverse (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << "virtual ";
+
+ Traversal::ReadWriteAttribute::belongs (a, read_belongs_);
+
+ os << endl
+ << a.name () << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl
+ << STRS[EXCP_SNGL] << ";" << endl;
+
+ os << "virtual void" << endl
+ << a.name () << " (" << endl;
+
+ Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
+
+ os << endl
+ << STRS[ENV_HDR] << ")" << endl
+ << STRS[EXCP_SNGL] << ";" << endl;
+ }
+
+ private:
+ INArgTypeNameEmitter write_type_name_emitter_;
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ Traversal::Belongs write_belongs_;
+ Traversal::Belongs read_belongs_;
+ };
+
+ // Generates operations associated with readonly attributes.
+ // @@@ (JP) Need to support exceptions.
+ struct ReadOnlyAttributeEmitter : Traversal::ReadAttribute,
+ EmitterBase
+ {
+ ReadOnlyAttributeEmitter (Context& c)
+ : EmitterBase (c),
+ read_type_name_emitter_ (c.os ())
+ {
+ read_belongs_.node_traverser (read_type_name_emitter_);
+ }
+
+ virtual void traverse (SemanticGraph::ReadAttribute& a)
+ {
+ os << "virtual ";
+
+ Traversal::ReadAttribute::belongs (a, read_belongs_);
+
+ os << endl
+ << a.name () << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl
+ << STRS[EXCP_SNGL] << ";" << endl;
+ }
+
+ private:
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ Traversal::Belongs read_belongs_;
+ };
+
+ struct InterfaceEmitter : Traversal::UnconstrainedInterface,
+ EmitterBase
+ {
+ InterfaceEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ bool
+ add (UnconstrainedInterface& i)
+ {
+ return interfaces_.insert (&i).second;
+ }
+
+ virtual void
+ traverse (UnconstrainedInterface& i)
+ {
+ if (add (i))
+ {
+ Traversal::UnconstrainedInterface::traverse (i);
+ }
+ }
+
+ private:
+ std::set<UnconstrainedInterface*> interfaces_;
+ };
+
struct FacetEmitter : Traversal::UnconstrainedInterface,
EmitterBase
{
@@ -38,12 +375,12 @@ namespace
traverse (UnconstrainedInterface& i)
{
if (i.context ().count ("facet_impl_hdr_gen")) return;
-
+
os << "class " << ctx.export_macro () << " "
<< i.name () << "_exec_i" << endl
- << " : public virtual " << i.scoped_name ().scope_name ()
+ << ": public virtual " << i.scoped_name ().scope_name ()
<< "::CCM_" << i.name () << "," << endl
- << " public virtual TAO_Local_RefCounted_Object" << endl
+ << "public virtual TAO_Local_RefCounted_Object" << endl
<< "{"
<< "public:" << endl
<< i.name () << "_exec_i (void);"
@@ -58,8 +395,10 @@ namespace
interface_emitter.edge_traverser (defines_);
interface_emitter.edge_traverser (inherits_);
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
+ ReadOnlyAttributeEmitter read_only_attribute_emitter (ctx);
defines_.node_traverser (attribute_emitter);
+ defines_.node_traverser (read_only_attribute_emitter);
OperationEmitter operation_emitter (ctx);
defines_.node_traverser (operation_emitter);
@@ -72,15 +411,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -89,9 +428,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -99,9 +438,9 @@ namespace
inherits (i, inherits_);
names (i, defines_);
}
-
+
os << "};";
-
+
i.context ().set ("facet_impl_hdr_gen", true);
}
};
@@ -112,9 +451,9 @@ namespace
{
ExecPortsEmitter (Context& c)
: EmitterBase (c),
- enclosing_type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- type_name_emitter_ (c)
+ enclosing_type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ())
{
enclosing_belongs_.node_traverser (enclosing_type_name_emitter_);
simple_belongs_.node_traverser (simple_type_name_emitter_);
@@ -127,34 +466,37 @@ namespace
os << "virtual ";
Traversal::ProviderData::belongs (p, enclosing_belongs_);
-
+
os << "::CCM_";
Traversal::ProviderData::belongs (p, simple_belongs_);
-
+
os << "_ptr" << endl
- << "get_" << p.name () << " (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << "get_" << p.name () << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl
+ << STRS[EXCP_SNGL] << ";" << endl;
}
virtual void
traverse (SemanticGraph::Consumer& c)
{
+ // @@@ (JP) May need to generate this for the eventtype's ancestors
+ // as well (the spec is vague on this point). If so, we need the
+ // CIDL compiler to support valuetype/eventtype inheritance.
os << "virtual void" << endl
- << "push_" << c.name () << " (" << endl;
+ << "push_" << c.name () << " (" << endl;
Traversal::ConsumerData::belongs (c, belongs_);
os << " *ev" << endl
- << STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[ENV_HDR] << ")" << endl
+ << STRS[EXCP_SNGL] << ";" << endl;
}
private:
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs enclosing_belongs_;
Traversal::Belongs simple_belongs_;
Traversal::Belongs belongs_;
@@ -196,8 +538,8 @@ namespace
os << "class " << ctx.export_macro () << " "
<< t.name () << "_exec_i" << endl
- << " : public virtual " << exec_.name () << "," << endl
- << " public virtual TAO_Local_RefCounted_Object" << endl
+ << ": public virtual " << exec_.name () << "," << endl
+ << "public virtual TAO_Local_RefCounted_Object" << endl
<< "{"
<< "public:" << endl
<< t.name () << "_exec_i (void);"
@@ -222,8 +564,10 @@ namespace
interface_emitter.edge_traverser (defines);
interface_emitter.edge_traverser (interface_inherits);
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
+ ReadOnlyAttributeEmitter read_only_attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
OperationEmitter operation_emitter (ctx);
defines.node_traverser (operation_emitter);
@@ -236,15 +580,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -253,9 +597,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -276,14 +620,16 @@ namespace
Traversal::Defines defines;
component_emitter.edge_traverser (defines);
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
+ ReadOnlyAttributeEmitter read_only_attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
component_emitter.traverse (t);
}
os << "// Port operations." << endl << endl;
-
+
{
Traversal::Component component_emitter;
@@ -300,7 +646,7 @@ namespace
component_emitter.traverse (t);
}
-
+
os << "// Operations from Components::SessionComponent" << endl << endl;
os << "virtual void" << endl
@@ -354,7 +700,7 @@ namespace
<< t.name () << "_Context *context_;" << endl
<< "};";
}
-
+
private:
ComponentExecutor& exec_;
};
@@ -370,16 +716,195 @@ namespace
implements (Type& i)
{
Traversal::ComponentExecutor component_executor;
-
+
Traversal::Implements implements;
component_executor.edge_traverser (implements);
-
+
ComponentExecImplEmitter component_exec_impl_emitter (ctx, i);
implements.node_traverser (component_exec_impl_emitter);
-
+
component_executor.traverse (i);
}
};
+
+ // HomeFactory and HomeFinder are tied to Operation in
+ // the front end. Since we want to treat them differently
+ // than regular operations in a home (we want to generate
+ // base class factory operations returning the base component,
+ // for example), we use this class for regular home operations
+ // that overrides HomeFactory and HomeFinder traversals
+ // to do nothing.
+ struct HomeOperationEmitter : OperationEmitter,
+ Traversal::HomeFactory,
+ Traversal::HomeFinder
+ {
+ HomeOperationEmitter (Context& c)
+ : OperationEmitter (c)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::HomeFactory&)
+ {
+ }
+
+ virtual void
+ traverse (SemanticGraph::HomeFinder&)
+ {
+ }
+ };
+
+ struct FactoryOperationEmitter : Traversal::HomeFactory,
+ Traversal::Home,
+ EmitterBase
+ {
+ FactoryOperationEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ virtual void
+ pre (SemanticGraph::HomeFactory&)
+ {
+ os << "virtual ";
+ }
+
+ virtual void
+ returns (SemanticGraph::HomeFactory&)
+ {
+ os << STRS[COMP_EC] << "_ptr" << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::HomeFactory& hf)
+ {
+ os << hf.name ();
+ }
+
+ virtual void
+ receives_none (SemanticGraph::HomeFactory&)
+ {
+ os << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ receives_pre (SemanticGraph::HomeFactory&)
+ {
+ os << " (" << endl;
+ }
+
+ virtual void
+ receives_post (SemanticGraph::HomeFactory&)
+ {
+ os << endl << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ raises_none (SemanticGraph::HomeFactory&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ raises_pre (SemanticGraph::HomeFactory&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ raises_post (SemanticGraph::HomeFactory&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (SemanticGraph::HomeFactory&)
+ {
+ os << ";" << endl;
+ }
+
+ virtual void
+ comma (SemanticGraph::HomeFactory&)
+ {
+ os << "," << endl;
+ }
+ };
+
+ struct FinderOperationEmitter : Traversal::HomeFinder,
+ EmitterBase
+ {
+ FinderOperationEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ virtual void
+ pre (SemanticGraph::HomeFinder&)
+ {
+ os << "virtual ";
+ }
+
+ virtual void
+ returns (SemanticGraph::HomeFinder&)
+ {
+ os << STRS[COMP_EC] << "_ptr" << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::HomeFinder& t)
+ {
+ os << t.name ();
+ }
+
+ virtual void
+ receives_none (SemanticGraph::HomeFinder&)
+ {
+ os << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ receives_pre (SemanticGraph::HomeFinder&)
+ {
+ os << " (" << endl;
+ }
+
+ virtual void
+ receives_post (SemanticGraph::HomeFinder&)
+ {
+ os << endl << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ raises_none (SemanticGraph::HomeFinder&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ raises_pre (SemanticGraph::HomeFinder&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ raises_post (SemanticGraph::HomeFinder&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (SemanticGraph::HomeFinder&)
+ {
+ os << ";" << endl << endl;
+ }
+
+ virtual void
+ comma (SemanticGraph::HomeFinder&)
+ {
+ os << "," << endl;
+ }
+ };
struct HomeExecImplEmitter : Traversal::Home, EmitterBase
{
@@ -394,8 +919,8 @@ namespace
{
os << "class " << ctx.export_macro () << " "
<< t.name () << "_exec_i" << endl
- << " : public virtual " << exec_.name () << "," << endl
- << " public virtual TAO_Local_RefCounted_Object" << endl
+ << ": public virtual " << exec_.name () << "," << endl
+ << "public virtual TAO_Local_RefCounted_Object" << endl
<< "{"
<< "public:" << endl
<< t.name () << "_exec_i (void);"
@@ -420,8 +945,10 @@ namespace
interface_emitter.edge_traverser (defines);
interface_emitter.edge_traverser (interface_inherits);
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
+ ReadOnlyAttributeEmitter read_only_attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
OperationEmitter operation_emitter (ctx);
defines.node_traverser (operation_emitter);
@@ -434,15 +961,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -451,9 +978,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -483,15 +1010,15 @@ namespace
home_operation_emitter.edge_traverser (returns);
home_operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -500,9 +1027,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -525,9 +1052,8 @@ namespace
Traversal::Defines defines;
home_emitter.edge_traverser (defines);
- bool for_exec = true;
- FactoryOperationEmitter factory_operation_emitter (ctx, for_exec);
- FinderOperationEmitter finder_operation_emitter (ctx, for_exec);
+ FactoryOperationEmitter factory_operation_emitter (ctx);
+ FinderOperationEmitter finder_operation_emitter (ctx);
defines.node_traverser (factory_operation_emitter);
defines.node_traverser (finder_operation_emitter);
@@ -541,15 +1067,15 @@ namespace
finder_operation_emitter.edge_traverser (returns);
finder_operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -558,9 +1084,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -581,8 +1107,10 @@ namespace
Traversal::Defines defines;
home_emitter.edge_traverser (defines);
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
+ ReadOnlyAttributeEmitter read_only_attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
home_emitter.traverse (t);
}
@@ -603,15 +1131,13 @@ namespace
os << "extern \"C\" " << ctx.export_macro ()
<< " ::Components::HomeExecutorBase_ptr" << endl
- << "create"
- << regex::perl_s (t.scoped_name ().str (), "/::/_/")
- << "_Impl (void);" << endl;
+ << "create" << t.name () << "_Impl (void);" << endl;
}
-
+
private:
HomeExecutor& exec_;
};
-
+
struct HomeExecutorEmitter : Traversal::HomeExecutor, EmitterBase
{
HomeExecutorEmitter (Context& c)
@@ -623,13 +1149,13 @@ namespace
implements (Type& i)
{
Traversal::HomeExecutor home_executor;
-
+
Traversal::Implements implements;
home_executor.edge_traverser (implements);
-
+
HomeExecImplEmitter home_exec_impl_emitter (ctx, i);
implements.node_traverser (home_exec_impl_emitter);
-
+
home_executor.traverse (i);
}
};
@@ -675,9 +1201,7 @@ ExecImplHeaderEmitter::pre (TranslationUnit&)
string guard =
"CIAO_"
+ regex::perl_s (uc_file_name,
- "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1"
- + uc_file_suffix
- + "/");
+ "/(\\.(IDL|CIDL|CDL))?$/" + uc_file_suffix + "/");
// Replace any remaining '.' with '_'.
guard = regex::perl_s (guard, "/\\./_/");
@@ -690,7 +1214,7 @@ ExecImplHeaderEmitter::pre (TranslationUnit&)
"_svnt.h");
string svnt_file_name = regex::perl_s (file_name,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1"
+ "/(\\.(idl|cidl|cdl))?$/"
+ file_suffix
+ "/");
@@ -699,10 +1223,10 @@ ExecImplHeaderEmitter::pre (TranslationUnit&)
os << "#if !defined (ACE_LACKS_PRAGMA_ONCE)" << endl
<< "# pragma once" << endl
<< "#endif /* ACE_LACKS_PRAGMA_ONCE */" << endl << endl;
-
+
string default_export_include =
regex::perl_s (file_name,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1_exec_export.h/");
+ "/(\\.(idl|cidl|cdl))?$/_exec_export.h/");
string export_include = cl_.get_value ("exec-export-include",
default_export_include);
@@ -720,7 +1244,7 @@ ExecImplHeaderEmitter::generate (TranslationUnit& u)
{
pre (u);
- Context c (os, export_macro_, cl_);
+ Context c (os, export_macro_);
Traversal::TranslationUnit unit;
@@ -779,7 +1303,7 @@ void
ExecImplHeaderEmitter::post (TranslationUnit&)
{
if (file_.empty ()) return;
-
+
string uc_file_name = file_.leaf ();
std::transform (uc_file_name.begin (),
@@ -798,7 +1322,7 @@ ExecImplHeaderEmitter::post (TranslationUnit&)
string guard =
"CIAO_"
+ regex::perl_s (uc_file_name,
- "/^(.+?)(\\.(IDL|CIDL))?$/$1" + uc_file_suffix + "/");
+ "/(\\.(IDL|CIDL))?$/" + uc_file_suffix + "/");
guard = regex::perl_s (guard, "/\\./_/");
diff --git a/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp b/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp
index 34bb6866061..f9975a08afb 100644
--- a/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp
@@ -3,25 +3,100 @@
// cvs-id : $Id$
#include "ExecImplSourceGenerator.hpp"
-#include "CorbaTypeNameEmitters.hpp"
-#include "UtilityTypeNameEmitters.hpp"
-#include "ParameterEmitter_T.hpp"
-#include "AttributeSourceEmitters_T.hpp"
-#include "CompositionEmitter.hpp"
-#include "ModuleEmitter.hpp"
-#include "InterfaceEmitter.hpp"
#include "Literals.hpp"
-
-#include <ostream>
+#include "TypeNameEmitter.hpp"
#include "CCF/CodeGenerationKit/Regex.hpp"
+#include <ostream>
+
using namespace CCF::CIDL;
using namespace CCF::CIDL::SemanticGraph;
using namespace StringLiterals;
namespace
{
+ class Context
+ {
+ public:
+ Context (std::ostream& os,
+ string export_macro)
+ : os_ (os),
+ export_macro_ (export_macro)
+ {
+ }
+
+ std::ostream&
+ os ()
+ {
+ return os_;
+ }
+
+ string
+ export_macro ()
+ {
+ return export_macro_;
+ }
+
+ private:
+ std::ostream& os_;
+ string export_macro_;
+ };
+
+ class EmitterBase
+ {
+ public:
+ EmitterBase (Context& c)
+ : ctx (c),
+ os (ctx.os ())
+ {
+ }
+
+ protected:
+ Context& ctx;
+ std::ostream& os;
+ };
+
+ struct ModuleEmitter : Traversal::Module, EmitterBase
+ {
+ ModuleEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ os << "namespace " << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
+
+ struct CompositionEmitter : Traversal::Composition, EmitterBase
+ {
+ CompositionEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ os << STRS[CIDL_NS] << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
+
template <typename T>
struct OperationEmitter : Traversal::Operation, EmitterBase
{
@@ -59,7 +134,7 @@ namespace
virtual void
raises_pre (Type&)
{
- os << STRS[EXCP_START] << " "
+ os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
@@ -86,7 +161,7 @@ namespace
Traversal::Belongs returns;
operation_emitter.edge_traverser (returns);
- NullReturnEmitter return_emitter (ctx);
+ NullReturnEmitter return_emitter (os);
returns.node_traverser (return_emitter);
operation_emitter.traverse (o);
@@ -104,6 +179,222 @@ namespace
T& scope_;
};
+ // For generating parameter names.
+ template <typename T>
+ struct ParameterEmitter : T
+ {
+ ParameterEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ name (typename T::Type& p)
+ {
+ os << " /* " << p.name () << " */";
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic scoped typename emitter used by various other emitters.
+ struct TypeNameEmitter : Traversal::Type
+ {
+ TypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic local typename emitter used by various other emitters.
+ struct SimpleTypeNameEmitter : Traversal::Type
+ {
+ SimpleTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generate name of type's enclosing scope.
+ struct EnclosingTypeNameEmitter : Traversal::Type
+ {
+ EnclosingTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ().scope_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Emits typename minus the leading double colon.
+ struct StrippedTypeNameEmitter : Traversal::Type
+ {
+ StrippedTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ ScopedName scoped (t.scoped_name ());
+ os << Name (scoped.begin () + 1, scoped.end ());
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generates operations associated with attributes.
+ // @@@ (JP) Need to support exceptions.
+ template <typename T>
+ struct AttributeEmitter : Traversal::ReadWriteAttribute,
+ EmitterBase
+ {
+ AttributeEmitter (Context& c, T& scope)
+ : EmitterBase (c),
+ scope_ (scope),
+ write_type_name_emitter_ (c.os ()),
+ read_type_name_emitter_ (c.os ()),
+ return_emitter_ (c.os ())
+ {
+ write_belongs_.node_traverser (write_type_name_emitter_);
+ read_belongs_.node_traverser (read_type_name_emitter_);
+ return_belongs_.node_traverser (return_emitter_);
+ }
+
+ virtual void traverse (SemanticGraph::ReadWriteAttribute& a)
+ {
+ Traversal::ReadWriteAttribute::belongs (a, read_belongs_);
+
+ os << endl
+ << scope_.name () << "_exec_i::" << a.name ()
+ << " (" << endl
+ << STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
+ << STRS[EXCP_SNGL] << endl
+ << "{"
+ << STRS[YCH] << endl;
+
+ Traversal::ReadWriteAttribute::belongs (a, return_belongs_);
+
+ os << "}";
+
+ os << "void" << endl
+ << scope_.name () << "_exec_i::" << a.name ()
+ << " (" << endl;
+
+ Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
+
+ os << " /* " << a.name () << " */" << endl
+ << STRS[ENV_SRC_NOTUSED] << ")" << endl
+ << STRS[EXCP_SNGL] << endl
+ << "{"
+ << STRS[YCH]
+ << "}";
+ }
+
+ protected:
+ T& scope_;
+
+ private:
+ INArgTypeNameEmitter write_type_name_emitter_;
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ NullReturnEmitter return_emitter_;
+ Traversal::Belongs write_belongs_;
+ Traversal::Belongs read_belongs_;
+ Traversal::Belongs return_belongs_;
+ };
+
+ // Generates operations associated with readonly attributes.
+ // @@@ (JP) Need to support exceptions.
+ template <typename T>
+ struct ReadOnlyAttributeEmitter : Traversal::ReadAttribute,
+ EmitterBase
+ {
+ ReadOnlyAttributeEmitter (Context& c, T& scope)
+ : EmitterBase (c),
+ scope_ (scope),
+ read_type_name_emitter_ (c.os ()),
+ return_emitter_ (c.os ())
+ {
+ read_belongs_.node_traverser (read_type_name_emitter_);
+ return_belongs_.node_traverser (return_emitter_);
+ }
+
+ virtual void traverse (SemanticGraph::ReadAttribute& a)
+ {
+ Traversal::ReadAttribute::belongs (a, read_belongs_);
+
+ os << endl
+ << scope_.name () << "_exec_i::" << a.name ()
+ << " (" << endl
+ << STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
+ << STRS[EXCP_SNGL] << endl
+ << "{"
+ << STRS[YCH] << endl;
+
+ Traversal::ReadAttribute::belongs (a, return_belongs_);
+
+ os << "}";
+ }
+
+ protected:
+ T& scope_;
+
+ private:
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ NullReturnEmitter return_emitter_;
+ Traversal::Belongs read_belongs_;
+ Traversal::Belongs return_belongs_;
+ };
+
+ struct InterfaceEmitter : Traversal::UnconstrainedInterface,
+ EmitterBase
+ {
+ InterfaceEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ bool
+ add (UnconstrainedInterface& i)
+ {
+ return interfaces_.insert (&i).second;
+ }
+
+ virtual void
+ traverse (UnconstrainedInterface& i)
+ {
+ if (add (i))
+ {
+ Traversal::UnconstrainedInterface::traverse (i);
+ }
+ }
+
+ private:
+ std::set<UnconstrainedInterface*> interfaces_;
+ };
+
struct FacetEmitter : Traversal::UnconstrainedInterface,
EmitterBase
{
@@ -116,17 +407,17 @@ namespace
traverse (UnconstrainedInterface& i)
{
if (i.context ().count ("facet_impl_src_gen")) return;
-
+
os << STRS[SEP] << endl
<< "// Facet Executor Implementation Class: "
<< i.name () << "_exec_i" << endl
<< STRS[SEP] << endl << endl;
-
- os << i.name () << "_exec_i::"
+
+ os << i.name () << "_exec_i::"
<< i.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
- << i.name () << "_exec_i::~"
+ << i.name () << "_exec_i::~"
<< i.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
@@ -140,13 +431,10 @@ namespace
interface_emitter.edge_traverser (defines_);
interface_emitter.edge_traverser (inherits_);
- bool exec_src = true;
- AttributeSourceEmitter<UnconstrainedInterface> attribute_emitter (
- ctx,
- i,
- exec_src
- );
+ AttributeEmitter<UnconstrainedInterface> attribute_emitter (ctx, i);
+ ReadOnlyAttributeEmitter<UnconstrainedInterface> read_only_attribute_emitter (ctx, i);
defines_.node_traverser (attribute_emitter);
+ defines_.node_traverser (read_only_attribute_emitter);
OperationEmitter<UnconstrainedInterface> operation_emitter (ctx, i);
defines_.node_traverser (operation_emitter);
@@ -159,25 +447,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- bool for_exec_src = true;
- ParameterEmitter<Traversal::InParameter> in_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::InOutParameter> inout_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::OutParameter> out_param (
- ctx,
- for_exec_src
- );
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -186,9 +464,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -196,7 +474,7 @@ namespace
inherits (i, inherits_);
names (i, defines_);
}
-
+
i.context ().set ("facet_impl_src_gen", true);
}
};
@@ -207,9 +485,9 @@ namespace
{
ExecPortsEmitter (Context& c, SemanticGraph::Component& scope)
: EmitterBase (c),
- enclosing_type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- type_name_emitter_ (c),
+ enclosing_type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ()),
scope_ (scope)
{
enclosing_belongs_.node_traverser (enclosing_type_name_emitter_);
@@ -221,13 +499,13 @@ namespace
traverse (SemanticGraph::Provider& p)
{
Traversal::ProviderData::belongs (p, enclosing_belongs_);
-
+
os << "::CCM_";
Traversal::ProviderData::belongs (p, simple_belongs_);
-
+
os << "_ptr" << endl
- << scope_.name () << "_exec_i::get_"
+ << scope_.name () << "_exec_i::get_"
<< p.name () << " (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
<< STRS[EXCP_SNGL] << endl
@@ -236,11 +514,11 @@ namespace
<< "return ";
Traversal::ProviderData::belongs (p, enclosing_belongs_);
-
+
os << "::CCM_";
Traversal::ProviderData::belongs (p, simple_belongs_);
-
+
os << "::_nil ();" << endl
<< "}";
}
@@ -248,8 +526,11 @@ namespace
virtual void
traverse (SemanticGraph::Consumer& c)
{
+ // @@@ (JP) May need to generate this for the eventtype's ancestors
+ // as well (the spec is vague on this point). If so, we need the
+ // CIDL compiler to support valuetype/eventtype inheritance.
os << "void" << endl
- << scope_.name () << "_exec_i::push_"
+ << scope_.name () << "_exec_i::push_"
<< c.name () << " (" << endl;
Traversal::ConsumerData::belongs (c, belongs_);
@@ -265,7 +546,7 @@ namespace
private:
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs enclosing_belongs_;
Traversal::Belongs simple_belongs_;
Traversal::Belongs belongs_;
@@ -309,12 +590,12 @@ namespace
<< "// Component Executor Implementation Class: "
<< t.name () << "_exec_i" << endl
<< STRS[SEP] << endl << endl;
-
- os << t.name () << "_exec_i::"
+
+ os << t.name () << "_exec_i::"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
- << t.name () << "_exec_i::~"
+ << t.name () << "_exec_i::~"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}";
@@ -338,13 +619,10 @@ namespace
interface_emitter.edge_traverser (defines);
interface_emitter.edge_traverser (interface_inherits);
- bool exec_src = true;
- AttributeSourceEmitter<SemanticGraph::Component> attribute_emitter (
- ctx,
- t,
- exec_src
- );
+ AttributeEmitter<SemanticGraph::Component> attribute_emitter (ctx, t);
+ ReadOnlyAttributeEmitter<SemanticGraph::Component> read_only_attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
OperationEmitter<SemanticGraph::Component> operation_emitter (ctx, t);
defines.node_traverser (operation_emitter);
@@ -357,25 +635,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- bool for_exec_src = true;
- ParameterEmitter<Traversal::InParameter> in_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::InOutParameter> inout_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::OutParameter> out_param (
- ctx,
- for_exec_src
- );
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -384,9 +652,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -407,19 +675,16 @@ namespace
Traversal::Defines defines;
component_emitter.edge_traverser (defines);
- bool exec_src = true;
- AttributeSourceEmitter<SemanticGraph::Component> attribute_emitter (
- ctx,
- t,
- exec_src
- );
+ AttributeEmitter<SemanticGraph::Component> attribute_emitter (ctx, t);
+ ReadOnlyAttributeEmitter<SemanticGraph::Component> read_only_attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
component_emitter.traverse (t);
}
os << "// Port operations." << endl << endl;
-
+
{
Traversal::Component component_emitter;
@@ -436,33 +701,33 @@ namespace
component_emitter.traverse (t);
}
-
+
os << "// Operations from Components::SessionComponent" << endl << endl;
os << "void" << endl
<< t.name () << "_exec_i::set_session_context (" << endl
<< STRS[COMP_SC] << "_ptr ctx" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
<< "this->context_ =" << endl
- << " " << t.name () << "_Context::_narrow (" << endl
- << " ctx" << endl
- << " " << STRS[ENV_ARG] <<");"
+ << t.name () << "_Context::_narrow (" << endl
+ << "ctx" << endl
+ << STRS[ENV_ARG] <<");"
<< "ACE_CHECK;" << endl;
os << "if (this->context_ == 0)" << endl
<< "{"
- << "ACE_THROW ( ::CORBA::INTERNAL ());"
+ << "ACE_THROW (CORBA::INTERNAL ());"
<< "}"
<< "}";
os << "void" << endl
<< t.name () << "_exec_i::ciao_preactivate (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
@@ -472,7 +737,7 @@ namespace
os << "void" << endl
<< t.name () << "_exec_i::ciao_postactivate (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
@@ -482,7 +747,7 @@ namespace
os << "void" << endl
<< t.name () << "_exec_i::ccm_activate (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
@@ -492,7 +757,7 @@ namespace
os << "void" << endl
<< t.name () << "_exec_i::ccm_passivate (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
@@ -502,7 +767,7 @@ namespace
os << "void" << endl
<< t.name () << "_exec_i::ccm_remove (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
@@ -547,8 +812,8 @@ namespace
{
FactoryOperationEmitter (Context& c, SemanticGraph::Home& scope)
: EmitterBase (c),
- enclosing_type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
+ enclosing_type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
scope_ (scope)
{
enclosing_returns_.node_traverser (enclosing_type_name_emitter_);
@@ -595,7 +860,7 @@ namespace
virtual void
raises_pre (SemanticGraph::HomeFactory&)
{
- os << STRS[EXCP_START] << " "
+ os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
@@ -611,13 +876,13 @@ namespace
os << "{"
<< STRS[YCH] << endl
<< "return ";
-
+
Traversal::HomeFactory::returns (hf, enclosing_returns_);
-
+
os << "::CCM_";
-
+
Traversal::HomeFactory::returns (hf, simple_returns_);
-
+
os << "::_nil ();"
<< "}";
}
@@ -627,7 +892,7 @@ namespace
{
os << "," << endl;
}
-
+
private:
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
@@ -641,8 +906,8 @@ namespace
{
FinderOperationEmitter (Context& c, SemanticGraph::Home& scope)
: EmitterBase (c),
- enclosing_type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
+ enclosing_type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
scope_ (scope)
{
enclosing_returns_.node_traverser (enclosing_type_name_emitter_);
@@ -689,7 +954,7 @@ namespace
virtual void
raises_pre (SemanticGraph::HomeFinder&)
{
- os << STRS[EXCP_START] << " "
+ os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
@@ -705,13 +970,13 @@ namespace
os << "{"
<< STRS[YCH] << endl
<< "return ";
-
+
Traversal::HomeFinder::returns (hf, enclosing_returns_);
-
+
os << "::CCM_";
-
+
Traversal::HomeFinder::returns (hf, simple_returns_);
-
+
os << "::_nil ();"
<< "}";
}
@@ -721,7 +986,7 @@ namespace
{
os << "," << endl;
}
-
+
private:
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
@@ -744,12 +1009,12 @@ namespace
<< "// Home Executor Implementation Class: "
<< t.name () << "_exec_i" << endl
<< STRS[SEP] << endl << endl;
-
- os << t.name () << "_exec_i::"
+
+ os << t.name () << "_exec_i::"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
- << t.name () << "_exec_i::~"
+ << t.name () << "_exec_i::~"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}";
@@ -773,13 +1038,10 @@ namespace
interface_emitter.edge_traverser (defines);
interface_emitter.edge_traverser (interface_inherits);
- bool exec_src = true;
- AttributeSourceEmitter<SemanticGraph::Home> attribute_emitter (
- ctx,
- t,
- exec_src
- );
+ AttributeEmitter<SemanticGraph::Home> attribute_emitter (ctx, t);
+ ReadOnlyAttributeEmitter<SemanticGraph::Home> read_only_attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
OperationEmitter<SemanticGraph::Home> operation_emitter (ctx, t);
defines.node_traverser (operation_emitter);
@@ -792,25 +1054,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- bool for_exec_src = true;
- ParameterEmitter<Traversal::InParameter> in_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::InOutParameter> inout_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::OutParameter> out_param (
- ctx,
- for_exec_src
- );
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -819,9 +1071,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -851,25 +1103,15 @@ namespace
home_operation_emitter.edge_traverser (returns);
home_operation_emitter.edge_traverser (raises);
- bool for_exec_src = true;
- ParameterEmitter<Traversal::InParameter> in_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::InOutParameter> inout_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::OutParameter> out_param (
- ctx,
- for_exec_src
- );
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -878,9 +1120,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -918,25 +1160,15 @@ namespace
finder_operation_emitter.edge_traverser (returns);
finder_operation_emitter.edge_traverser (raises);
- bool for_exec_src = true;
- ParameterEmitter<Traversal::InParameter> in_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::InOutParameter> inout_param (
- ctx,
- for_exec_src
- );
- ParameterEmitter<Traversal::OutParameter> out_param (
- ctx,
- for_exec_src
- );
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -945,9 +1177,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -968,13 +1200,10 @@ namespace
Traversal::Defines defines;
home_emitter.edge_traverser (defines);
- bool exec_src = true;
- AttributeSourceEmitter<SemanticGraph::Home> attribute_emitter (
- ctx,
- t,
- exec_src
- );
+ AttributeEmitter<SemanticGraph::Home> attribute_emitter (ctx, t);
+ ReadOnlyAttributeEmitter<SemanticGraph::Home> read_only_attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
+ defines.node_traverser (read_only_attribute_emitter);
home_emitter.traverse (t);
}
@@ -983,44 +1212,42 @@ namespace
<< STRS[COMP_EC] << "_ptr" << endl
<< t.name () << "_exec_i::create (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_CE] << "))" << endl
<< "{"
<< STRS[COMP_EC] << "_ptr retval =" << endl
- << " " << STRS[COMP_EC] << "::_nil ();" << endl
+ << STRS[COMP_EC] << "::_nil ();" << endl
<< "ACE_NEW_THROW_EX (" << endl
<< "retval," << endl;
-
+
Traversal::Home home_emitter;
-
+
Traversal::Manages manages_;
home_emitter.edge_traverser (manages_);
-
- SimpleTypeNameEmitter manages_emitter (ctx);
+
+ SimpleTypeNameEmitter manages_emitter (os);
manages_.node_traverser (manages_emitter);
-
+
home_emitter.traverse (t);
-
+
os << "_exec_i," << endl
- << "::CORBA::NO_MEMORY ());"
+ << "CORBA::NO_MEMORY ());"
<< STRS[ACE_CR] << " (" << STRS[COMP_EC]
<< "::_nil ());" << endl
- << "return retval;"
+ << "return retval;"
<< "}";
}
-
+
virtual void
post (Type& t)
{
os << "extern \"C\" " << ctx.export_macro ()
<< " ::Components::HomeExecutorBase_ptr" << endl
- << "create"
- << regex::perl_s (t.scoped_name ().str (), "/::/_/")
- << "_Impl (void)" << endl
+ << "create" << t.name () << "_Impl (void)" << endl
<< "{"
<< "::Components::HomeExecutorBase_ptr retval =" << endl
- << " ::Components::HomeExecutorBase::_nil ();" << endl
+ << "::Components::HomeExecutorBase::_nil ();" << endl
<< "ACE_NEW_RETURN (" << endl
<< "retval," << endl
<< t.name () << "_exec_i," << endl
@@ -1057,7 +1284,7 @@ ExecImplSourceEmitter::pre (TranslationUnit&)
"_exec.h");
file_name = regex::perl_s (file_name,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1"
+ "/(\\.(idl|cidl|cdl))?$/"
+ file_suffix
+ "/");
@@ -1070,7 +1297,7 @@ ExecImplSourceEmitter::generate (TranslationUnit& u)
{
pre (u);
- Context c (os, export_macro_, cl_);
+ Context c (os, export_macro_);
Traversal::TranslationUnit unit;
@@ -1119,7 +1346,7 @@ ExecImplSourceEmitter::generate (TranslationUnit& u)
Traversal::Implements implements;
component_executor.edge_traverser (implements);
home_executor.edge_traverser (implements);
-
+
//--
ComponentExecImplEmitter component_exec_impl_emitter (c);
HomeExecImplEmitter home_exec_impl_emitter (c);
@@ -1127,7 +1354,7 @@ ExecImplSourceEmitter::generate (TranslationUnit& u)
implements.node_traverser (home_exec_impl_emitter);
unit.traverse (u);
-
+
post (u);
}
diff --git a/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp b/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp
index ca62ef3d3a2..ac12e34fa8c 100644
--- a/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp
@@ -290,11 +290,11 @@ namespace
//
//
//
- struct FullTypeNameEmitter : Traversal::FundamentalType,
+ struct TypeNameEmitter : Traversal::FundamentalType,
Traversal::Type,
Emitter
{
- FullTypeNameEmitter (Context& c, ostream& os)
+ TypeNameEmitter (Context& c, ostream& os)
: Emitter (c, os)
{
}
@@ -462,7 +462,7 @@ namespace
private:
Traversal::GetRaises get_raises_;
Traversal::SetRaises set_raises_;
- FullTypeNameEmitter type_name_;
+ TypeNameEmitter type_name_;
};
@@ -634,7 +634,7 @@ namespace
Traversal::Belongs belongs;
Traversal::Belongs provider_belongs;
- FullTypeNameEmitter type_name_emitter;
+ TypeNameEmitter type_name_emitter;
};
@@ -1713,7 +1713,7 @@ generate (CommandLine const& cl,
string expr (cl.get_value (
"lem-file-regex",
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + suffix + "/"));
+ "/(\\.(idl|cidl|cdl))?$/" + suffix + "/"));
string lem_file_name (regex::perl_s (file_name, expr));
@@ -2046,7 +2046,7 @@ generate (CommandLine const& cl,
home_explicit.edge_traverser (home_explicit_defines);
//--
- FullTypeNameEmitter type (ctx, os);
+ TypeNameEmitter type (ctx, os);
ComponentContextEmitter session_component_context (ctx, os);
ComponentExecutorEmitter session_component_executor (ctx, os);
diff --git a/TAO/CIAO/CIDLC/InterfaceEmitter.cpp b/TAO/CIAO/CIDLC/InterfaceEmitter.cpp
deleted file mode 100644
index 1ce524cdfab..00000000000
--- a/TAO/CIAO/CIDLC/InterfaceEmitter.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// file : CIDLC/InterfaceEmitter.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "InterfaceEmitter.hpp"
-
-InterfaceEmitter::InterfaceEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-InterfaceEmitter::traverse (UnconstrainedInterface& i)
-{
- if (add (i))
- {
- Traversal::UnconstrainedInterface::traverse (i);
- }
-}
-
-bool
-InterfaceEmitter::add (UnconstrainedInterface& i)
-{
- return interfaces_.insert (&i).second;
-}
-
diff --git a/TAO/CIAO/CIDLC/InterfaceEmitter.hpp b/TAO/CIAO/CIDLC/InterfaceEmitter.hpp
deleted file mode 100644
index fdd2411f912..00000000000
--- a/TAO/CIAO/CIDLC/InterfaceEmitter.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// file : CIDLC/InterfaceEmitter.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef INTERFACEEMITTER_HPP
-#define INTERFACEEMITTER_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "EmitterBase.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-struct InterfaceEmitter : Traversal::UnconstrainedInterface,
- EmitterBase
-{
- InterfaceEmitter (Context& c);
-
- virtual void traverse (UnconstrainedInterface&);
-
-private:
- bool add (UnconstrainedInterface&);
-
-private:
- std::set<UnconstrainedInterface*> interfaces_;
-};
-
-#endif // INTERFACEEMITTER_HPP
diff --git a/TAO/CIAO/CIDLC/Literals.cpp b/TAO/CIAO/CIDLC/Literals.cpp
index b318288a22c..af9a3d5e809 100644
--- a/TAO/CIAO/CIDLC/Literals.cpp
+++ b/TAO/CIAO/CIDLC/Literals.cpp
@@ -28,7 +28,7 @@ namespace StringLiterals
"// http://www.dre.vanderbilt.edu/CIAO"
"\n\n";
- char const* const STRS[LIT_SIZE] =
+ char const* const STRS[SIZE] =
{
// ACE Environment portability macros.
"ACE_ENV_ARG_DECL_WITH_DEFAULTS", // ENV_HDR
@@ -41,10 +41,9 @@ namespace StringLiterals
"ACE_ENV_SINGLE_ARG_PARAMETER", // ENV_SNGL_ARG
// Common CORBA and all Components exceptions.
- "ACE_THROW_SPEC (( ::CORBA::SystemException))", // EXCP_SNGL
+ "ACE_THROW_SPEC ((CORBA::SystemException))", // EXCP_SNGL
"ACE_THROW_SPEC ((", // EXCP_START
"::CORBA::SystemException", // EXCP_SYS
- "::CORBA::BAD_PARAM ()", // EXCP_BP
"::Components::IllegalState", // EXCP_IS
"::Components::AlreadyConnected", // EXCP_AC
"::Components::InvalidConnection", // EXCP_IC
@@ -65,9 +64,6 @@ namespace StringLiterals
"::Components::EnterpriseComponent", // COMP_EC
"::Components::SessionContext", // COMP_SC
"::Components::ConsumerDescriptions", // COMP_CD
- "::Components::ReceptacleDescriptions", // COMP_RD
- "::Components::PublisherDescriptions", // COMP_PD
- "::Components::EmitterDescriptions", // COMP_ED
// This could change - don't want it scattered all over.
"namespace CIDL_", // CIDL_NS
@@ -83,11 +79,9 @@ namespace StringLiterals
"variable-size", // VAR_SIZE
"_ciao_extract_val", // EXTRACT
"_ciao_extract_tmp", // EXTRACT_TMP
- "ACE_UNUSED_ARG", // ACE_UA
- "ACE_CHECK", // ACE_CK
- "ACE_CHECK_RETURN", // ACE_CR
- "ACE_THROW", // ACE_TH
- "ACE_THROW_RETURN" // ACE_TR
+ "ACE_UNUSED_ARG", // ACE_UA
+ "ACE_CHECK_RETURN", // ACE_CR
+ "ACE_THROW_RETURN" // ACE_TR
};
}
diff --git a/TAO/CIAO/CIDLC/Literals.hpp b/TAO/CIAO/CIDLC/Literals.hpp
index 9d20978dfcc..84f70e1a4c2 100644
--- a/TAO/CIAO/CIDLC/Literals.hpp
+++ b/TAO/CIAO/CIDLC/Literals.hpp
@@ -23,7 +23,6 @@ namespace StringLiterals
EXCP_SNGL,
EXCP_START,
EXCP_SYS,
- EXCP_BP,
EXCP_IS,
EXCP_AC,
EXCP_IC,
@@ -42,9 +41,6 @@ namespace StringLiterals
COMP_EC,
COMP_SC,
COMP_CD,
- COMP_RD,
- COMP_PD,
- COMP_ED,
CIDL_NS,
TYPE_ID,
TYPE_PREFIX,
@@ -54,15 +50,13 @@ namespace StringLiterals
VAR_SIZE,
EXTRACT,
EXTRACT_TMP,
- ACE_UA,
- ACE_CK,
- ACE_CR,
- ACE_TH,
- ACE_TR,
- LIT_SIZE
+ ACE_UA,
+ ACE_CR,
+ ACE_TR,
+ SIZE
};
- extern char const* const STRS[LIT_SIZE];
+ extern char const* const STRS[SIZE];
}
#endif // LITERALS_HPP
diff --git a/TAO/CIAO/CIDLC/ModuleEmitter.cpp b/TAO/CIAO/CIDLC/ModuleEmitter.cpp
deleted file mode 100644
index 990d95ef4b8..00000000000
--- a/TAO/CIAO/CIDLC/ModuleEmitter.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// file : CIDLC/ModuleEmitter.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "ModuleEmitter.hpp"
-
-ModuleEmitter::ModuleEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-ModuleEmitter::pre (Type& t)
-{
- os << "namespace " << t.name () << "{";
-}
-
-void
-ModuleEmitter::post (Type&)
-{
- os << "}";
-}
diff --git a/TAO/CIAO/CIDLC/ModuleEmitter.hpp b/TAO/CIAO/CIDLC/ModuleEmitter.hpp
deleted file mode 100644
index 9aa8de2f9ff..00000000000
--- a/TAO/CIAO/CIDLC/ModuleEmitter.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// file : CIDLC/ModuleEmitter.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef MODULEEMITTER_HPP
-#define MODULEEMITTER_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "EmitterBase.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-struct ModuleEmitter : Traversal::Module, EmitterBase
-{
- ModuleEmitter (Context& c);
-
- virtual void pre (Type&);
- virtual void post (Type&);
-};
-
-#endif // MODULEEMITTER_HPP
diff --git a/TAO/CIAO/CIDLC/OperationHeaderEmitters.cpp b/TAO/CIAO/CIDLC/OperationHeaderEmitters.cpp
deleted file mode 100644
index 6644e8102e6..00000000000
--- a/TAO/CIAO/CIDLC/OperationHeaderEmitters.cpp
+++ /dev/null
@@ -1,267 +0,0 @@
-// file : CIDLC/OperationHeaderEmitters.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "OperationHeaderEmitters.hpp"
-#include "Literals.hpp"
-
-using namespace StringLiterals;
-
-OperationEmitter::OperationEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-OperationEmitter::pre (Type&)
-{
- os << "virtual ";
-}
-
-void
-OperationEmitter::name (Type& o)
-{
- os << endl << o.name ();
-}
-
-void
-OperationEmitter::receives_pre (Type&)
-{
- os << " (" << endl;
-}
-
-void
-OperationEmitter::receives_none (Type&)
-{
- os << " (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl;
-}
-
-void
-OperationEmitter::receives_post (Type&)
-{
- os << endl << STRS[ENV_HDR] << ")" << endl;
-}
-
-void
-OperationEmitter::raises_pre (Type&)
-{
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
-}
-
-void
-OperationEmitter::raises_none (Type&)
-{
- os << STRS[EXCP_SNGL];
-}
-
-void
-OperationEmitter::raises_post (Type&)
-{
- os << "))";
-}
-
-void
-OperationEmitter::post (Type&)
-{
- os << ";" << endl;
-}
-
-void
-OperationEmitter::comma (Type&)
-{
- os << "," << endl;
-}
-
-// ==================================================
-
-HomeOperationEmitter::HomeOperationEmitter (Context& c)
- : OperationEmitter (c)
-{
-}
-
-void
-HomeOperationEmitter::traverse (SemanticGraph::HomeFactory&)
-{
-}
-
-void
-HomeOperationEmitter::traverse (SemanticGraph::HomeFinder&)
-{
-}
-
-// ==================================================
-
-FactoryOperationEmitter::FactoryOperationEmitter (Context& c, bool for_exec)
- : EmitterBase (c),
- returns_emitter_ (c),
- for_exec_ (for_exec)
-{
- returns_.node_traverser (returns_emitter_);
-}
-
-void
-FactoryOperationEmitter::pre (SemanticGraph::HomeFactory&)
-{
- os << "virtual ";
-}
-
-void
-FactoryOperationEmitter::returns (SemanticGraph::HomeFactory& t)
-{
- if (for_exec_)
- {
- os << STRS[COMP_EC] << "_ptr";
- }
- else
- {
- Traversal::HomeFactory::returns (t, returns_);
- }
-
- os << endl;
-}
-
-void
-FactoryOperationEmitter::name (SemanticGraph::HomeFactory& t)
-{
- os << t.name ();
-}
-
-void
-FactoryOperationEmitter::receives_none (SemanticGraph::HomeFactory&)
-{
- os << " (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl;
-}
-
-void
-FactoryOperationEmitter::receives_pre (SemanticGraph::HomeFactory&)
-{
- os << " (" << endl;
-}
-
-void
-FactoryOperationEmitter::receives_post (SemanticGraph::HomeFactory&)
-{
- os << endl << STRS[ENV_HDR] << ")" << endl;
-}
-
-void
-FactoryOperationEmitter::raises_none (SemanticGraph::HomeFactory&)
-{
- os << STRS[EXCP_SNGL];
-}
-
-void
-FactoryOperationEmitter::raises_pre (SemanticGraph::HomeFactory&)
-{
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
-}
-
-void
-FactoryOperationEmitter::raises_post (SemanticGraph::HomeFactory&)
-{
- os << "))";
-}
-
-void
-FactoryOperationEmitter::post (SemanticGraph::HomeFactory&)
-{
- os << ";" << endl;
-}
-
-void
-FactoryOperationEmitter::comma (SemanticGraph::HomeFactory&)
-{
- os << "," << endl;
-}
-
-// ==================================================
-
-FinderOperationEmitter::FinderOperationEmitter (Context& c, bool for_exec)
- : EmitterBase (c),
- returns_emitter_ (c),
- for_exec_ (for_exec)
-{
- returns_.node_traverser (returns_emitter_);
-}
-
-void
-FinderOperationEmitter::pre (SemanticGraph::HomeFinder&)
-{
- os << "virtual ";
-}
-
-void
-FinderOperationEmitter::returns (SemanticGraph::HomeFinder& t)
-{
- if (for_exec_)
- {
- os << STRS[COMP_EC] << "_ptr";
- }
- else
- {
- Traversal::HomeFinder::returns (t, returns_);
- }
-
- os << endl;
-}
-
-void
-FinderOperationEmitter::name (SemanticGraph::HomeFinder& t)
-{
- os << t.name ();
-}
-
-void
-FinderOperationEmitter::receives_none (SemanticGraph::HomeFinder&)
-{
- os << " (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl;
-}
-
-void
-FinderOperationEmitter::receives_pre (SemanticGraph::HomeFinder&)
-{
- os << " (" << endl;
-}
-
-void
-FinderOperationEmitter::receives_post (SemanticGraph::HomeFinder&)
-{
- os << endl << STRS[ENV_HDR] << ")" << endl;
-}
-
-void
-FinderOperationEmitter::raises_none (SemanticGraph::HomeFinder&)
-{
- os << STRS[EXCP_SNGL];
-}
-
-void
-FinderOperationEmitter::raises_pre (SemanticGraph::HomeFinder&)
-{
- os << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl;
-}
-
-void
-FinderOperationEmitter::raises_post (SemanticGraph::HomeFinder&)
-{
- os << "))";
-}
-
-void
-FinderOperationEmitter::post (SemanticGraph::HomeFinder&)
-{
- os << ";" << endl;
-}
-
-void
-FinderOperationEmitter::comma (SemanticGraph::HomeFinder&)
-{
- os << "," << endl;
-}
-
diff --git a/TAO/CIAO/CIDLC/OperationHeaderEmitters.hpp b/TAO/CIAO/CIDLC/OperationHeaderEmitters.hpp
deleted file mode 100644
index d1fc148e0c3..00000000000
--- a/TAO/CIAO/CIDLC/OperationHeaderEmitters.hpp
+++ /dev/null
@@ -1,151 +0,0 @@
-// file : CIDLC/OperationHeaderEmitters.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef OPERATIONHEADEREMITTERS_HPP
-#define OPERATIONHEADEREMITTERS_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-
-#include "EmitterBase.hpp"
-#include "CorbaTypeNameEmitters.hpp"
-
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-struct OperationEmitter : Traversal::Operation,
- EmitterBase
-{
- OperationEmitter (Context& c);
-
- virtual void pre (Type&);
-
- virtual void name (Type&);
-
- virtual void receives_pre (Type&);
-
- virtual void receives_none (Type&);
-
- virtual void receives_post (Type&);
-
- virtual void raises_pre (Type&);
-
- virtual void raises_none (Type&);
-
- virtual void raises_post (Type&);
-
- virtual void post (Type&);
-
- virtual void comma (Type&);
-};
-
-// HomeFactory and HomeFinder are tied to Operation in
-// the front end. Since we want to treat them differently
-// than regular operations in a home (we want to generate
-// base class factory operations returning the base component,
-// for example), we use this class for regular home operations
-// that overrides HomeFactory and HomeFinder traversals
-// to do nothing.
-struct HomeOperationEmitter : OperationEmitter,
- Traversal::HomeFactory,
- Traversal::HomeFinder
-{
- HomeOperationEmitter (Context& c);
-
- virtual void
- traverse (SemanticGraph::HomeFactory&);
-
- virtual void
- traverse (SemanticGraph::HomeFinder&);
-};
-
-struct FactoryOperationEmitter : Traversal::HomeFactory,
- EmitterBase
-{
- FactoryOperationEmitter (Context& c, bool for_exec = false);
-
- virtual void
- pre (SemanticGraph::HomeFactory&);
-
- virtual void
- returns (SemanticGraph::HomeFactory&);
-
- virtual void
- name (SemanticGraph::HomeFactory&);
-
- virtual void
- receives_none (SemanticGraph::HomeFactory&);
-
- virtual void
- receives_pre (SemanticGraph::HomeFactory&);
-
- virtual void
- receives_post (SemanticGraph::HomeFactory&);
-
- virtual void
- raises_none (SemanticGraph::HomeFactory&);
-
- virtual void
- raises_pre (SemanticGraph::HomeFactory&);
-
- virtual void
- raises_post (SemanticGraph::HomeFactory&);
-
- virtual void
- post (SemanticGraph::HomeFactory&);
-
- virtual void
- comma (SemanticGraph::HomeFactory&);
-
-private:
- ReturnTypeNameEmitter returns_emitter_;
- Traversal::Returns returns_;
- bool for_exec_;
-};
-
-struct FinderOperationEmitter : Traversal::HomeFinder,
- EmitterBase
-{
- FinderOperationEmitter (Context& c, bool for_exec = false);
-
- virtual void
- pre (SemanticGraph::HomeFinder&);
-
- virtual void
- returns (SemanticGraph::HomeFinder&);
-
- virtual void
- name (SemanticGraph::HomeFinder&);
-
- virtual void
- receives_none (SemanticGraph::HomeFinder&);
-
- virtual void
- receives_pre (SemanticGraph::HomeFinder&);
-
- virtual void
- receives_post (SemanticGraph::HomeFinder&);
-
- virtual void
- raises_none (SemanticGraph::HomeFinder&);
-
- virtual void
- raises_pre (SemanticGraph::HomeFinder&);
-
- virtual void
- raises_post (SemanticGraph::HomeFinder&);
-
- virtual void
- post (SemanticGraph::HomeFinder&);
-
- virtual void
- comma (SemanticGraph::HomeFinder&);
-
-private:
- ReturnTypeNameEmitter returns_emitter_;
- Traversal::Returns returns_;
- bool for_exec_;
-};
-
-#endif // OPERATIONHEADEREMITTERS_HPP
diff --git a/TAO/CIAO/CIDLC/ParameterEmitter_T.hpp b/TAO/CIAO/CIDLC/ParameterEmitter_T.hpp
deleted file mode 100644
index 4fe0d55867f..00000000000
--- a/TAO/CIAO/CIDLC/ParameterEmitter_T.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// file : CIDLC/ParameterEmitter_T.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef PARAMETEREMITTER_T_HPP
-#define PARAMETEREMITTER_T_HPP
-
-#include "EmitterBase.hpp"
-
-// For generating parameter names.
-template <typename T>
-struct ParameterEmitter : T, EmitterBase
-{
- ParameterEmitter (Context& c, bool for_exec_src = false)
- : EmitterBase (c),
- for_exec_src_ (for_exec_src)
- {
- }
-
- virtual void
- name (typename T::Type& p)
- {
- os << " "
- << (for_exec_src_ ? "/* " : "")
- << p.name ()
- << (for_exec_src_ ? " */" : "");
- }
-
-private:
- bool for_exec_src_;
-};
-
-#endif // PARAMETEREMITTER_T_HPP
diff --git a/TAO/CIAO/CIDLC/README.html b/TAO/CIAO/CIDLC/README.html
index 22a8e44de6b..0561c7afa1c 100644
--- a/TAO/CIAO/CIDLC/README.html
+++ b/TAO/CIAO/CIDLC/README.html
@@ -52,42 +52,24 @@ cvs-id : $Id$
</head>
<body>
-<h1>CIAO CIDL compiler README</h1>
-<p>Before continuing, please note that
+<p>
+The C++ source files in this directory are compiled into the
+code generators and driver for the CIAO CIDL compiler. CORBA
+Compiler Framework (CCF) provides the front-end for the compiler.</p>
-<a href="http://www.dre.vanderbilt.edu/cidlc/binary/">pre-built binary
+<p><a href="http://www.dre.vanderbilt.edu/cidlc/binary/">Pre-built binary
executables of CIDL compiler</a> are available for different platforms.</p>
-<p>The C++ source files in this directory are compiled into the
-code generators and driver for the CIAO CIDL compiler. CORBA
-Compiler Framework (CCF) provides the front-end for the compiler.
-To build CIDL compiler you will need to compile CCF libraries
+<p>To build CIDL compiler you will need to compile CCF libraries
first. Please refer to <a href="../CCF/Documentation/Build.html">
instructions for building CCF libraries</a>.</p>
-<p>After you have compiled the CCF libraries, you are ready to build the
-CIDLC compiler. In order to build the compiler, you must generate the
-appropriate project files. If there are makefiles, or project solutions,
-already in the directory, please disgard them since because they can be
-out-of-date, or invalid. To regenerate all project files, type the following
-command:
-<pre>
-%> $ACE_ROOT/bin/mwc.pl -type &lt;project-type&gt; -static -features cidl=1,exceptions=1,boost=1 CIDLC.mwc
-</pre>
-
-Once MPC finishes generating the project files, you can now build CIDLC.
-
-<ul>
-<li>On Linux/UNIX:
-<p>If you are building with a make utility, e.g., gmake, use the following command to build CCF:
-
-<pre>%> gmake cidl=1 exceptions=1 boost=1</pre></p></li>
-<li>On Windows: <p>Just open the generated solution file.</p></li>
-</ul>
-<p><b>Note:</b> If you are building CCF on a Windows platform, use <code>%ACE_ROOT%\bin\mwc.pl</code> instead
-
-<code>of $ACE_ROOT/bin/mwc.pl</code>. Also, for a list of project types and other command-line options
-supported by MPC, type <code>$ACE_ROOT/bin/mwc.pl --help</code>.</p>
+<p>After you have CCF libraries compiled you can build CIDL compiler
+with makefiles on UNIX</p>
+
+<code> $ make -f Makefile.alt</code>
+
+<p>or by using VC 7.1 project on Windows.</p>
</body>
</html>
diff --git a/TAO/CIAO/CIDLC/ServantGenerator.cpp b/TAO/CIAO/CIDLC/ServantGenerator.cpp
index 1f85a107600..ca55ca2938f 100644
--- a/TAO/CIAO/CIDLC/ServantGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ServantGenerator.cpp
@@ -154,7 +154,7 @@ ServantGenerator::compute_export_macro (const fs::path& file_path)
// Replace the suffix.
export_macro_ =
regex::perl_s (export_macro_,
- "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1_SVNT_Export/");
+ "/(\\.(IDL|CIDL|CDL))?$/_SVNT_Export/");
// Replace any remaining '.' in the string with '_'.
export_macro_ = regex::perl_s (export_macro_,
@@ -176,7 +176,7 @@ ServantGenerator::configure_stream (string const& suffix_option,
default_suffix);
string file_expr =
cl_.get_value (regex_option,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + file_suffix + "/");
+ "/(\\.(idl|cidl|cdl))?$/" + file_suffix + "/");
string file_name = regex::perl_s (file_name_, file_expr);
diff --git a/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp b/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp
index 795fd3dfd5b..58b73386c0f 100644
--- a/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp
@@ -3,16 +3,8 @@
// cvs-id : $Id$
#include "ServantHeaderGenerator.hpp"
-#include "CorbaTypeNameEmitters.hpp"
-#include "UtilityTypeNameEmitters.hpp"
-#include "AttributeHeaderEmitters.hpp"
-#include "OperationHeaderEmitters.hpp"
-#include "ParameterEmitter_T.hpp"
-#include "CompositionEmitter.hpp"
-#include "ModuleEmitter.hpp"
-#include "InterfaceEmitter.hpp"
+#include "TypeNameEmitter.hpp"
#include "Literals.hpp"
-#include "Upcase.hpp"
#include <ostream>
@@ -25,8 +17,475 @@ using namespace StringLiterals;
using namespace CCF::CIDL;
using namespace CCF::CIDL::SemanticGraph;
+using std::string;
+
+namespace
+{
+ // On some platforms toupper can be something other than a
+ // function.
+ int
+ upcase (int c)
+ {
+ return std::toupper (c);
+ }
+}
+
namespace
{
+ class Context
+ {
+ public:
+ Context (std::ostream& os,
+ string export_macro)
+ : os_ (os),
+ export_macro_ (export_macro)
+ {
+ }
+
+ std::ostream&
+ os ()
+ {
+ return os_;
+ }
+
+ string
+ export_macro ()
+ {
+ return export_macro_;
+ }
+
+ private:
+ std::ostream& os_;
+ string export_macro_;
+ };
+
+ class EmitterBase
+ {
+ public:
+ EmitterBase (Context& c)
+ : ctx (c),
+ os (ctx.os ())
+ {
+ }
+
+ protected:
+ Context& ctx;
+ std::ostream& os;
+ };
+
+ struct ModuleEmitter : Traversal::Module, EmitterBase
+ {
+ ModuleEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ os << "namespace " << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
+
+ struct OperationEmitter : Traversal::Operation, EmitterBase
+ {
+ OperationEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ virtual void
+ pre (Type&)
+ {
+ os << "virtual ";
+ }
+
+ virtual void
+ name (Type& o)
+ {
+ os << endl << o.name ();
+ }
+
+ virtual void
+ receives_pre (Type&)
+ {
+ os << " (" << endl;
+ }
+
+ virtual void
+ receives_none (Type&)
+ {
+ os << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ receives_post (Type&)
+ {
+ os << endl << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ raises_pre (Type&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ raises_none (Type&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ raises_post (Type&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << ";" << endl << endl;
+ }
+
+ virtual void
+ comma (Type&)
+ {
+ os << "," << endl;
+ }
+ };
+
+ // For generating parameter names.
+ template <typename T>
+ struct ParameterEmitter : T
+ {
+ ParameterEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ name (typename T::Type& p)
+ {
+ os << " " << p.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic scoped typename emitter used by various other emitters.
+ struct TypeNameEmitter : Traversal::Type
+ {
+ TypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic local typename emitter used by various other emitters.
+ struct SimpleTypeNameEmitter : Traversal::Type
+ {
+ SimpleTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generate name of type's enclosing scope.
+ struct EnclosingTypeNameEmitter : Traversal::Type
+ {
+ EnclosingTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ().scope_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Emits typename minus the leading double colon.
+ struct StrippedTypeNameEmitter : Traversal::Type
+ {
+ StrippedTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ ScopedName scoped (t.scoped_name ());
+ os << Name (scoped.begin () + 1, scoped.end ());
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generates the set operation of a ReadWriteAttribute.
+ struct WriteAttributeEmitter : Traversal::ReadWriteAttribute,
+ EmitterBase
+ {
+ WriteAttributeEmitter (Context& c)
+ : EmitterBase (c),
+ write_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ())
+ {
+ write_belongs_.node_traverser (write_type_name_emitter_);
+
+ edge_traverser (set_raises_);
+ set_raises_.node_traverser (type_name_emitter_);
+ }
+
+ virtual void
+ pre (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "virtual void" << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << a.name () << " (" << endl;
+
+ Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
+
+ os << " " << a.name () << endl
+ << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ get_raises (SemanticGraph::ReadWriteAttribute&)
+ {
+ }
+
+ virtual void
+ set_raises_none (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ set_raises_pre (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ set_raises_post (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << ";" << endl << endl;
+ }
+
+ virtual void
+ comma (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "," << endl;
+ }
+
+ private:
+ INArgTypeNameEmitter write_type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
+ Traversal::Belongs write_belongs_;
+ Traversal::SetRaises set_raises_;
+ };
+
+ // Generates operations associated with attributes.
+ struct AttributeEmitter : Traversal::ReadAttribute,
+ Traversal::ReadWriteAttribute,
+ EmitterBase
+ {
+ AttributeEmitter (Context& c)
+ : EmitterBase (c),
+ read_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ())
+ {
+ read_belongs_.node_traverser (read_type_name_emitter_);
+
+ edge_traverser (get_raises_);
+ get_raises_.node_traverser (type_name_emitter_);
+ }
+
+ // ReadWriteAttribute
+ //
+ virtual void
+ pre (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << "virtual ";
+
+ Traversal::ReadWriteAttribute::belongs (a, read_belongs_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << a.name () << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ get_raises_none (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ get_raises_pre (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ get_raises_post (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ set_raises (SemanticGraph::ReadWriteAttribute&)
+ {
+ }
+
+ virtual void
+ post (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << ";" << endl << endl;
+
+ WriteAttributeEmitter write_attribute_emitter (ctx);
+ write_attribute_emitter.traverse (a);
+ }
+
+ virtual void
+ comma (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "," << endl;
+ }
+
+ // ReadAttribute
+ //
+ virtual void
+ pre (SemanticGraph::ReadAttribute& a)
+ {
+ os << "virtual ";
+
+ Traversal::ReadAttribute::belongs (a, read_belongs_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadAttribute& a)
+ {
+ os << a.name () << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ get_raises_none (SemanticGraph::ReadAttribute&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ get_raises_pre (SemanticGraph::ReadAttribute&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ get_raises_post (SemanticGraph::ReadAttribute&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ set_raises (SemanticGraph::ReadAttribute&)
+ {
+ }
+
+ virtual void
+ post (SemanticGraph::ReadAttribute&)
+ {
+ os << ";" << endl << endl;
+ }
+
+ virtual void
+ comma (SemanticGraph::ReadAttribute&)
+ {
+ os << "," << endl;
+ }
+
+ private:
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
+ Traversal::Belongs read_belongs_;
+ Traversal::GetRaises get_raises_;
+ };
+
+ struct InterfaceEmitter : Traversal::Interface,
+ EmitterBase
+ {
+ InterfaceEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ bool
+ add (Interface& i)
+ {
+ return interfaces_.insert (&i).second;
+ }
+
+ virtual void
+ traverse (Interface& i)
+ {
+ if (add (i))
+ {
+ Traversal::Interface::traverse (i);
+ }
+ }
+
+ private:
+ std::set<Interface*> interfaces_;
+ };
+
struct FacetEmitter : Traversal::UnconstrainedInterface,
EmitterBase
{
@@ -63,7 +522,7 @@ namespace
interface_emitter.edge_traverser (inherits_);
// Works for both read/write and readonly attributes.
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
defines_.node_traverser (attribute_emitter);
OperationEmitter operation_emitter (ctx);
@@ -77,15 +536,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -94,9 +553,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -110,6 +569,7 @@ namespace
<< "_get_component (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
<< STRS[EXCP_SNGL] << ";" << endl
+ << endl
<< "protected:" << endl
<< "// Facet executor." << endl
<< i.scoped_name ().scope_name ()<< "::CCM_" << i.name ()
@@ -142,7 +602,7 @@ namespace
{
PortsEmitterPublic (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -212,7 +672,7 @@ namespace
{
PortsEmitterProtected (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -227,9 +687,9 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_AC] << "));" << endl;
+ << STRS[EXCP_AC] << "));" << endl << endl;
os << "virtual ";
@@ -238,9 +698,9 @@ namespace
os << "Consumer_ptr" << endl
<< "disconnect_" << e.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_NC] << "));" << endl;
+ << STRS[EXCP_NC] << "));" << endl << endl;
}
virtual void
@@ -253,10 +713,10 @@ namespace
os << "_ptr" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_AC] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
os << "virtual ";
@@ -265,9 +725,9 @@ namespace
os << "_ptr" << endl
<< "disconnect_" << u.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_NC] << "));" << endl;
+ << STRS[EXCP_NC] << "));" << endl << endl;
}
virtual void
@@ -280,10 +740,10 @@ namespace
os << "_ptr" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
os << "virtual ";
@@ -293,9 +753,9 @@ namespace
<< "disconnect_" << u.name () << " (" << endl
<< "::Components::Cookie * ck" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
}
virtual void
@@ -308,18 +768,18 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_ECL] << "));" << endl;
+ << STRS[EXCP_ECL] << "));" << endl << endl;
os << "// CIAO-specific." << endl
<< STRS[COMP_CK] << " *" << endl
<< "subscribe_" << p.name () << "_generic (" << endl
<< STRS[COMP_ECB] << "_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_ECL] << "));" << endl;
+ << STRS[EXCP_ECL] << "));" << endl << endl;
os << "virtual ";
@@ -329,13 +789,13 @@ namespace
<< "unsubscribe_" << p.name () << " (" << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
@@ -347,7 +807,7 @@ namespace
{
PortsEmitterMembers (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -359,7 +819,7 @@ namespace
os << "Consumer_var" << endl
<< "ciao_emits_" << e.name () << "_consumer_;"
- << endl;
+ << endl << endl;
}
virtual void
@@ -370,7 +830,7 @@ namespace
Traversal::SingleUserData::belongs (u, belongs_);
os << "_var" << endl
- << "ciao_uses_" << u.name () << "_;" << endl;
+ << "ciao_uses_" << u.name () << "_;" << endl << endl;
}
virtual void
@@ -382,7 +842,7 @@ namespace
Traversal::MultiUserData::belongs (u, belongs_);
os << "_var>" << endl
- << "ciao_uses_" << u.name () << "_;" << endl;
+ << "ciao_uses_" << u.name () << "_;" << endl << endl;
}
virtual void
@@ -394,16 +854,16 @@ namespace
os << "Consumer_var>" << endl
<< "ciao_publishes_" << p.name () << "_map_;"
- << endl;
+ << endl << endl;
os << "ACE_Active_Map_Manager<" << endl
<< STRS[COMP_ECB] << "_var>" << endl
<< "ciao_publishes_" << p.name () << "_generic_map_;"
- << endl;
+ << endl << endl;
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
@@ -603,9 +1063,9 @@ namespace
{
PortsEmitterPublic (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- stripped_type_name_emitter_ (c)
+ type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ stripped_type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
simple_belongs_.node_traverser (simple_type_name_emitter_);
@@ -622,7 +1082,7 @@ namespace
os << "_ptr" << endl
<< "provide_" << p.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
}
virtual void
@@ -635,10 +1095,10 @@ namespace
os << "_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_AC] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
os << "virtual ";
@@ -647,9 +1107,9 @@ namespace
os << "_ptr" << endl
<< "disconnect_" << u.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_NC] << "));" << endl;
+ << STRS[EXCP_NC] << "));" << endl << endl;
os << "virtual ";
@@ -658,7 +1118,7 @@ namespace
os << "_ptr" << endl
<< "get_connection_" << u.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
}
virtual void
@@ -671,10 +1131,10 @@ namespace
os << "_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
os << "virtual ";
@@ -684,14 +1144,14 @@ namespace
<< "disconnect_" << u.name () << " (" << endl
<< "::Components::Cookie * ck" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
os << "virtual " << u.scoped_name () << "Connections *" << endl
<< "get_connections_" << u.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
}
virtual void
@@ -721,15 +1181,18 @@ namespace
<< endl
<< c.scoped_name ().scope_name ().scope_name () << "::CCM_"
<< c.scoped_name ().scope_name ().simple_name ()
- << "_Context_ptr c);" << endl;
+ << "_Context_ptr c);" << endl << endl;
os << "virtual ~";
Traversal::ConsumerData::belongs (c, simple_belongs_);
os << "Consumer_"
- << c.name () << "_Servant (void);" << endl;
+ << c.name () << "_Servant (void);" << endl << endl;
+ // @@@ (JP) May need to generate this for the eventtype's ancestors
+ // as well (the spec is vague on this point). If so, we need the
+ // CIDL compiler to support valuetype/eventtype inheritance.
os << "virtual void" << endl
<< "push_";
@@ -741,39 +1204,39 @@ namespace
os << " *evt" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
os << "// Inherited from " << STRS[COMP_ECB] << "." << endl
<< "virtual void" << endl
- << "push_event ( ::Components::EventBase *ev" << endl
+ << "push_event (::Components::EventBase *ev" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_BET] << "));" << endl;
+ << STRS[EXCP_BET] << "));" << endl << endl;
os << "// CIAO-specific in " << STRS[COMP_ECB] << "." << endl
<< "virtual CORBA::Boolean" << endl
<< "ciao_is_substitutable (" << endl
<< "const char *event_repo_id" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
os << "// Get component implementation." << endl
<< "virtual CORBA::Object_ptr" << endl
<< "_get_component (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
os << "protected:" << endl
<< c.scoped_name ().scope_name ().scope_name () << "::CCM_"
<< c.scoped_name ().scope_name ().simple_name ()
<< "_var" << endl
- << "executor_;" << endl;
+ << "executor_;" << endl << endl;
os << c.scoped_name ().scope_name ().scope_name () << "::CCM_"
<< c.scoped_name ().scope_name ().simple_name ()
<< "_Context_var" << endl
- << "ctx_;" << endl;
+ << "ctx_;" << endl << endl;
os << "};";
@@ -784,7 +1247,7 @@ namespace
os << "Consumer_ptr" << endl
<< "get_consumer_" << c.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
}
virtual void
@@ -797,9 +1260,9 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_AC] << "));" << endl;
+ << STRS[EXCP_AC] << "));" << endl << endl;
os << "virtual ";
@@ -808,9 +1271,9 @@ namespace
os << "Consumer_ptr" << endl
<< "disconnect_" << e.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_NC] << "));" << endl;
+ << STRS[EXCP_NC] << "));" << endl << endl;
}
virtual void
@@ -823,18 +1286,18 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_ECL] << "));" << endl;
+ << STRS[EXCP_ECL] << "));" << endl << endl;
os << "// CIAO-specific." << endl
<< STRS[COMP_CK] << " *" << endl
<< "subscribe_" << p.name () << "_generic (" << endl
<< STRS[COMP_ECB] << "_ptr c" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_ECL] << "));" << endl;
+ << STRS[EXCP_ECL] << "));" << endl << endl;
os << "virtual ";
@@ -844,13 +1307,13 @@ namespace
<< "unsubscribe_" << p.name () << " (" << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
StrippedTypeNameEmitter stripped_type_name_emitter_;
Traversal::Belongs belongs_;
@@ -864,7 +1327,7 @@ namespace
{
PortsEmitterProtected (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -875,7 +1338,7 @@ namespace
Traversal::ProviderData::belongs (p, belongs_);
os << "_var" << endl
- << "provide_" << p.name () << "_;" << endl;
+ << "provide_" << p.name () << "_;" << endl << endl;
}
virtual void
@@ -884,11 +1347,11 @@ namespace
Traversal::ConsumerData::belongs (c, belongs_);
os << "Consumer_var" << endl
- << "consumes_" << c.name () << "_;" << endl;
+ << "consumes_" << c.name () << "_;" << endl << endl;
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
@@ -902,9 +1365,9 @@ namespace
{
PortsEmitterPrivate (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- stripped_type_name_emitter_ (c)
+ type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ stripped_type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
simple_belongs_.node_traverser (simple_type_name_emitter_);
@@ -917,7 +1380,7 @@ namespace
os << "::CORBA::Object_ptr" << endl
<< "provide_" << p.name () << "_i (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
}
virtual void
@@ -936,7 +1399,7 @@ namespace
os << "::Components::EventConsumerBase_ptr" << endl
<< "get_consumer_" << c.name () << "_i (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
}
virtual void
@@ -950,7 +1413,7 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
StrippedTypeNameEmitter stripped_type_name_emitter_;
Traversal::Belongs belongs_;
@@ -986,7 +1449,7 @@ namespace
<< " " << t.scoped_name ().scope_name () << "::CCM_"
<< t.name () << "_var," << endl
<< " " << t.name () << "_Context" << endl
- << " > comp_svnt_base;" << endl;
+ << " > comp_svnt_base;" << endl << endl;
os << t.name () << "_Servant (" << endl
<< t.scoped_name ().scope_name () << "::CCM_" << t.name ()
@@ -994,14 +1457,15 @@ namespace
<< "::Components::CCMHome_ptr h," << endl
<< "const char *ins_name," << endl
<< "::CIAO::Home_Servant_Impl_Base *hs," << endl
- << "::CIAO::Session_Container *c);" << endl;
+ << "::CIAO::Session_Container *c);" << endl << endl;
- os << "virtual ~" << t.name () << "_Servant (void);" << endl;
+ os << "virtual ~" << t.name () << "_Servant (void);"
+ << endl << endl;
os << "virtual void" << endl
<< "set_attributes (" << endl
<< "const ::Components::ConfigValues &descr" << endl
- << STRS[ENV_SRC] << ");" << endl;
+ << STRS[ENV_SRC] << ");" << endl << endl;
os << "// Supported operations." << endl << endl;
@@ -1024,7 +1488,7 @@ namespace
interface_emitter.edge_traverser (interface_inherits);
// Works for both read/write and readonly attributes.
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
OperationEmitter operation_emitter (ctx);
@@ -1038,15 +1502,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -1055,9 +1519,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -1099,7 +1563,7 @@ namespace
component_emitter.edge_traverser (component_inherits);
// Works for both read/write and readonly attributes.
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
component_emitter.traverse (t);
@@ -1112,29 +1576,24 @@ namespace
<< "const char *name," << endl
<< "CORBA::Object_ptr connection" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "," << endl
<< STRS[EXCP_AC] << "," << endl
- << STRS[EXCP_ECL] << "));" << endl;
+ << STRS[EXCP_ECL] << "));" << endl << endl;
os << "virtual CORBA::Object_ptr" << endl
<< "disconnect (" << endl
<< "const char *name," << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "," << endl
<< STRS[EXCP_CR] << "," << endl
- << STRS[EXCP_NC] << "));" << endl;
-
- os << "virtual " << STRS[COMP_RD] << " *" << endl
- << "get_all_receptacles (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_NC] << "));" << endl << endl;
os << "// Operations for Events interface." << endl << endl;
@@ -1143,59 +1602,40 @@ namespace
<< "const char *publisher_name," << endl
<< STRS[COMP_ECB] << "_ptr subscriber" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "," << endl
- << STRS[EXCP_ECL] << "));" << endl;
+ << STRS[EXCP_ECL] << "));" << endl << endl;
os << "virtual " << STRS[COMP_ECB] << "_ptr" << endl
<< "unsubscribe (" << endl
<< "const char *publisher_name," << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
os << "virtual void" << endl
<< "connect_consumer (" << endl
<< "const char *emitter_name," << endl
<< STRS[COMP_ECB] << "_ptr consumer" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_AC] << "," << endl
- << STRS[EXCP_IC] << "));" << endl;
+ << STRS[EXCP_IC] << "));" << endl << endl;
- os << "virtual " << STRS[COMP_ECB] << "_ptr" << endl
- << "disconnect_consumer (" << endl
- << "const char *source_name" << endl
- << STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_IN] << "," << endl
- << STRS[EXCP_NC] << "));" << endl;
-
- os << "virtual " << STRS[COMP_PD] << " *" << endl
- << "get_all_publishers (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
-
- os << "virtual " << STRS[COMP_ED] << " *" << endl
- << "get_all_emitters (" << endl
- << STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
-
- os << "// CIAO specific operations on the servant. " << endl
+ os << "// CIAO specific operations on the servant " << endl
<< "CORBA::Object_ptr" << endl
<< "get_facet_executor (" << endl
<< "const char *name" << endl
<< STRS[ENV_HDR] << ")" << endl
- << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS]<< "));" << endl;
+ << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS]<< "));" << endl << endl;
os << "private:" << endl << endl;
@@ -1216,13 +1656,13 @@ namespace
component_emitter.traverse (t);
}
- os << "const char *ins_name_;" << endl;
+ os << "const char *ins_name_;" << endl << endl;
os << "private:" << endl << endl
<< "void" << endl
<< "populate_port_tables (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
- << STRS[EXCP_SNGL] << ";" << endl;
+ << STRS[EXCP_SNGL] << ";" << endl << endl;
// Generate private operations for ports.
{
@@ -1255,15 +1695,211 @@ namespace
HomeEmitter (Context& c, CommandLine const& cl)
: EmitterBase (c),
cl_ (cl),
- type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- enclosing_type_name_emitter_ (c)
+ type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ enclosing_type_name_emitter_ (c.os ())
{
manages_.node_traverser (type_name_emitter_);
simple_manages_.node_traverser (simple_type_name_emitter_);
enclosing_manages_.node_traverser (enclosing_type_name_emitter_);
}
+ // Nested classes used by this emitter.
+ private:
+ // HomeFactory and HomeFinder are tied to Operation in
+ // the front end. Since we want to treat them differently
+ // than regular operations in a home (we want to generate
+ // base class factory operations returning the base component,
+ // for example), we use this class for regular home operations
+ // that overrides HomeFactory and HomeFinder traversals
+ // to do nothing.
+ struct HomeOperationEmitter : OperationEmitter,
+ Traversal::HomeFactory,
+ Traversal::HomeFinder
+ {
+ HomeOperationEmitter (Context& c)
+ : OperationEmitter (c)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::HomeFactory&)
+ {
+ }
+
+ virtual void
+ traverse (SemanticGraph::HomeFinder&)
+ {
+ }
+ };
+
+ struct FactoryOperationEmitter : Traversal::HomeFactory,
+ EmitterBase
+ {
+ FactoryOperationEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ virtual void
+ pre (SemanticGraph::HomeFactory&)
+ {
+ os << "virtual ";
+ }
+
+ virtual void
+ returns (SemanticGraph::HomeFactory& t)
+ {
+ ReturnTypeNameEmitter returns_emitter (os);
+ Traversal::Returns returns_;
+ returns_.node_traverser (returns_emitter);
+
+ Traversal::HomeFactory::returns (t, returns_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::HomeFactory& t)
+ {
+ os << t.name ();
+ }
+
+ virtual void
+ receives_none (SemanticGraph::HomeFactory&)
+ {
+ os << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ receives_pre (SemanticGraph::HomeFactory&)
+ {
+ os << " (" << endl;
+ }
+
+ virtual void
+ receives_post (SemanticGraph::HomeFactory&)
+ {
+ os << endl << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ raises_none (SemanticGraph::HomeFactory&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ raises_pre (SemanticGraph::HomeFactory&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ raises_post (SemanticGraph::HomeFactory&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (SemanticGraph::HomeFactory&)
+ {
+ os << ";" << endl << endl;
+ }
+
+ virtual void
+ comma (SemanticGraph::HomeFactory&)
+ {
+ os << "," << endl;
+ }
+ };
+
+ struct FinderOperationEmitter : Traversal::HomeFinder,
+ EmitterBase
+ {
+ FinderOperationEmitter (Context& c)
+ : EmitterBase (c),
+ returns_emitter_ (c.os ())
+ {
+ returns_.node_traverser (returns_emitter_);
+ }
+
+ virtual void
+ pre (SemanticGraph::HomeFinder&)
+ {
+ os << "virtual ";
+ }
+
+ virtual void
+ returns (SemanticGraph::HomeFinder& t)
+ {
+ Traversal::HomeFinder::returns (t, returns_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::HomeFinder& t)
+ {
+ os << t.name ();
+ }
+
+ virtual void
+ receives_none (SemanticGraph::HomeFinder&)
+ {
+ os << " (" << endl
+ << STRS[ENV_SNGL_HDR] << ")" << endl;
+ }
+
+ virtual void
+ receives_pre (SemanticGraph::HomeFinder&)
+ {
+ os << " (" << endl;
+ }
+
+ virtual void
+ receives_post (SemanticGraph::HomeFinder&)
+ {
+ os << endl << STRS[ENV_HDR] << ")" << endl;
+ }
+
+ virtual void
+ raises_none (SemanticGraph::HomeFinder&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ raises_pre (SemanticGraph::HomeFinder&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ raises_post (SemanticGraph::HomeFinder&)
+ {
+ os << "))";
+ }
+
+ virtual void
+ post (SemanticGraph::HomeFinder&)
+ {
+ os << ";" << endl << endl;
+ }
+
+ virtual void
+ comma (SemanticGraph::HomeFinder&)
+ {
+ os << "," << endl;
+ }
+
+ private:
+ ReturnTypeNameEmitter returns_emitter_;
+ Traversal::Returns returns_;
+ };
+
+ public:
virtual void pre (Type& t)
{
os << "class " << ctx.export_macro () << " " << t.name ()
@@ -1359,18 +1995,19 @@ namespace
Traversal::Home::manages (t, simple_manages_);
os << "_Servant" << endl
- << " > home_svnt_base;" << endl;
+ << " > home_svnt_base;" << endl << endl;
os << t.name () << "_Servant (" << endl
<< t.scoped_name ().scope_name () << "::CCM_" << t.name ()
<< "_ptr exe," << endl
<< "const char *ins_name," << endl
- << "::CIAO::Session_Container *c);" << endl;
+ << "::CIAO::Session_Container *c);" << endl << endl;
- os << "virtual ~" << t.name () << "_Servant (void);" << endl;
+ os << "virtual ~" << t.name () << "_Servant (void);"
+ << endl << endl;
// Generate home operations.
- os << "// Home operations." << endl;
+ os << "// Home operations." << endl << endl;
{
Traversal::Home home_emitter;
@@ -1392,15 +2029,15 @@ namespace
home_operation_emitter.edge_traverser (returns);
home_operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -1409,9 +2046,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -1449,15 +2086,15 @@ namespace
finder_operation_emitter.edge_traverser (returns);
finder_operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -1466,9 +2103,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -1490,7 +2127,7 @@ namespace
home_emitter.edge_traverser (home_inherits);
// Works for both read/write and readonly attributes.
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
home_emitter.traverse (t);
@@ -1516,7 +2153,7 @@ namespace
interface_emitter.edge_traverser (inherits);
// Works for both read/write and readonly attributes.
- AttributeHeaderEmitter attribute_emitter (ctx);
+ AttributeEmitter attribute_emitter (ctx);
defines.node_traverser (attribute_emitter);
OperationEmitter operation_emitter (ctx);
@@ -1530,15 +2167,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -1547,9 +2184,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -1562,9 +2199,7 @@ namespace
os << "extern \"C\" " << ctx.export_macro ()
<< " ::PortableServer::Servant" << endl
- << "create"
- << regex::perl_s (t.scoped_name ().str (), "/::/_/")
- << "_Servant (" << endl
+ << "create" << t.name () << "_Servant (" << endl
<< "::Components::HomeExecutorBase_ptr p," << endl
<< "CIAO::Session_Container *c," << endl
<< "const char *ins_name" << endl
@@ -1573,7 +2208,7 @@ namespace
private:
CommandLine const& cl_;
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
Traversal::Manages manages_;
@@ -1581,6 +2216,26 @@ namespace
Traversal::Manages enclosing_manages_;
};
+ struct CompositionEmitter : Traversal::Composition, EmitterBase
+ {
+ CompositionEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ os << STRS[CIDL_NS] << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
+
struct IncludesEmitter : Traversal::QuoteIncludes,
Traversal::BracketIncludes,
EmitterBase
@@ -1595,7 +2250,7 @@ namespace
{
os << "#include \""
<< regex::perl_s (qi.file ().string (),
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1S.h/")
+ "/(\\.(idl|cidl|cdl))?$/S.h/")
<< "\"" << endl << endl;
}
@@ -1604,7 +2259,7 @@ namespace
{
os << "#include \""
<< regex::perl_s (bi.file ().string (),
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1S.h/")
+ "/(\\.(idl|cidl|cdl))?$/S.h/")
<< "\""
<< endl;
}
@@ -1651,9 +2306,7 @@ ServantHeaderEmitter::pre (TranslationUnit&)
string guard =
"CIAO_GLUE_SESSION_"
+ regex::perl_s (uc_file_name,
- "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1"
- + uc_file_suffix
- + "/");
+ "/(\\.(IDL|CIDL|CDL))?$/" + uc_file_suffix + "/");
// Replace any remaining '.' with '_'.
guard = regex::perl_s (guard, "/\\./_/");
@@ -1674,7 +2327,8 @@ ServantHeaderEmitter::pre (TranslationUnit&)
// @@@ (JP) I guess it's a safe assumption that the tail of the
// suffix will be .idl.
string suffix = cl_.get_value ("lem-file-suffix", "E.idl");
- suffix = regex::perl_s (suffix, "/^(.+?)(\\.idl)?$/$1/");
+ suffix = regex::perl_s (suffix,
+ "/(\\.idl)?$//");
// @@@ (JP) No way of knowing if the IDL compiler had command line
// option(s) to change C.h and/or S.h. We could add command line options
@@ -1682,7 +2336,7 @@ ServantHeaderEmitter::pre (TranslationUnit&)
// they are in synch with the IDL compiler's options.
os << "#include \""
<< regex::perl_s (file_name,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + suffix + "C.h/")
+ "/(\\.(idl|cidl|cdl))?$/" + suffix + "C.h/")
<< "\""
<< endl << endl;
@@ -1704,7 +2358,8 @@ ServantHeaderEmitter::pre (TranslationUnit&)
<< "#include \"ciao/"
<< (swapping ? "Swapping_Servant_Home_Impl_T.h"
: "Home_Servant_Impl_T.h")
- << "\"" << endl << endl;
+ << "\"" << endl
+ << "#include \"ace/Active_Map_Manager_T.h\"" << endl << endl;
}
void
@@ -1712,7 +2367,7 @@ ServantHeaderEmitter::generate (TranslationUnit& u)
{
pre (u);
- Context c (os, export_macro_, cl_);
+ Context c (os, export_macro_);
Traversal::TranslationUnit unit;
@@ -1819,9 +2474,7 @@ ServantHeaderEmitter::post (TranslationUnit&)
string guard =
"CIAO_GLUE_SESSION_"
+ regex::perl_s (uc_file_name,
- "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1"
- + uc_file_suffix
- + "/");
+ "/(\\.(IDL|CIDL|CDL))?$/" + uc_file_suffix + "/");
guard = regex::perl_s (guard, "/\\./_/");
diff --git a/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp b/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp
index 29c8411f4db..249d51308a2 100644
--- a/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp
@@ -3,19 +3,13 @@
// cvs-id : $Id$
#include "ServantSourceGenerator.hpp"
-#include "CorbaTypeNameEmitters.hpp"
-#include "UtilityTypeNameEmitters.hpp"
-#include "ParameterEmitter_T.hpp"
-#include "AttributeSourceEmitters_T.hpp"
-#include "CompositionEmitter.hpp"
-#include "ModuleEmitter.hpp"
-#include "InterfaceEmitter.hpp"
#include "Literals.hpp"
-
-#include <ostream>
+#include "TypeNameEmitter.hpp"
#include "CCF/CodeGenerationKit/Regex.hpp"
+#include <ostream>
+
using namespace CCF::CIDL;
using namespace CCF::CIDL::SemanticGraph;
using namespace StringLiterals;
@@ -24,51 +18,137 @@ using std::string;
namespace
{
- struct RepoIdEmitter : Traversal::Type,
- EmitterBase
+ class Context
{
- RepoIdEmitter (Context& c)
- : EmitterBase (c)
+ public:
+ Context (std::ostream& os,
+ string export_macro,
+ CommandLine const& cl)
+ : os_ (os),
+ export_macro_ (export_macro),
+ cl_ (cl)
+ {
+ }
+
+ std::ostream&
+ os ()
+ {
+ return os_;
+ }
+
+ string
+ export_macro ()
+ {
+ return export_macro_;
+ }
+
+ CommandLine const&
+ cl ()
+ {
+ return cl_;
+ }
+
+ string
+ composition_name ()
+ {
+ return composition_name_;
+ }
+
+ void
+ composition_name (const string& name)
+ {
+ composition_name_ = name;
+ }
+
+ private:
+ std::ostream& os_;
+ string export_macro_;
+ CommandLine const& cl_;
+ string composition_name_;
+ };
+
+ class EmitterBase
+ {
+ public:
+ EmitterBase (Context& c)
+ : ctx (c),
+ os (ctx.os ())
{
}
+ protected:
+ Context& ctx;
+ std::ostream& os;
+ };
+
+ struct RepoIdEmitter : Traversal::Type
+ {
+ RepoIdEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
virtual void
traverse (SemanticGraph::Type& t)
{
os << "\"" << t.context ().get<string> (STRS[REPO_ID]) << "\"";
}
- };
- struct ConsumerRepoIdEmitter : Traversal::Type,
- EmitterBase
+ private:
+ std::ostream& os;
+ };
+
+ struct ModuleEmitter : Traversal::Module, EmitterBase
{
- ConsumerRepoIdEmitter (Context& c)
+ ModuleEmitter (Context& c)
: EmitterBase (c)
{
}
virtual void
- traverse (SemanticGraph::Type& t)
+ pre (Type& t)
{
- string holder (t.context ().get<string> (STRS[REPO_ID]));
- os << "\"" << holder.substr (0, holder.rfind (':'))
- << "Consumer:1.0\"";
+ os << "namespace " << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
}
};
- struct FlatNameEmitter : Traversal::Type,
- EmitterBase
+ struct FlatNameEmitter : Traversal::Type
{
- FlatNameEmitter (Context& c)
- : EmitterBase (c)
+ FlatNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
{
+ os << regex::perl_s (t.scoped_name ().str (), "/::/_/");
}
+ private:
+ std::ostream& os;
+ };
+
+ struct ConsumerRepoIdEmitter : Traversal::Type
+ {
+ ConsumerRepoIdEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
virtual void
traverse (SemanticGraph::Type& t)
{
- os << regex::perl_s (t.scoped_name ().str (), "/::/_/");
+ string holder (t.context ().get<string> (STRS[REPO_ID]));
+ os << "\"" << holder.substr (0, holder.rfind (':'))
+ << "Consumer:1.0\"";
}
+
+ private:
+ std::ostream& os;
};
struct OperationExecEmitter : Traversal::Operation,
@@ -144,6 +224,24 @@ namespace
std::ostream& os;
};
+ // For generating parameter names.
+ template <typename T>
+ struct ParameterEmitter : T
+ {
+ ParameterEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ name (typename T::Type& p)
+ {
+ os << " " << p.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
// For generating parameter names in operation delegation.
template <typename T>
struct ParameterExecEmitter : T
@@ -169,24 +267,24 @@ namespace
T& scope)
: EmitterBase (c),
scope_ (scope),
- ace_check_return_emitter_ (c)
+ ace_check_return_emitter_ (c.os ())
{
ace_check_returns_.node_traverser (ace_check_return_emitter_);
}
-
+
// Overridden by facet and home operation emitters to do nothing.
virtual void
gen_swap_related (Type& o)
{
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
-
+
Traversal::Operation::returns (o, ace_check_returns_);
-
+
os << endl;
}
}
@@ -220,7 +318,7 @@ namespace
virtual void
raises_pre (Type&)
{
- os << STRS[EXCP_START] << " "
+ os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
@@ -241,7 +339,7 @@ namespace
{
os << "{";
- this->gen_swap_related (o);
+ this->gen_swap_related (o);
OperationExecEmitter operation_emitter (ctx);
@@ -273,6 +371,457 @@ namespace
Traversal::Returns ace_check_returns_;
};
+ // Generic scoped typename emitter used by various other emitters.
+ struct TypeNameEmitter : Traversal::Type
+ {
+ TypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generic local typename emitter used by various other emitters.
+ struct SimpleTypeNameEmitter : Traversal::Type
+ {
+ SimpleTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ // Generate name of type's enclosing scope.
+ struct EnclosingTypeNameEmitter : Traversal::Type
+ {
+ EnclosingTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
+
+ virtual void
+ traverse (SemanticGraph::Type& t)
+ {
+ os << t.scoped_name ().scope_name ();
+ }
+
+ private:
+ std::ostream& os;
+ };
+
+ struct InterfaceEmitter : Traversal::Interface,
+ EmitterBase
+ {
+ InterfaceEmitter (Context& c)
+ : EmitterBase (c)
+ {}
+
+ bool
+ add (Interface& i)
+ {
+ return interfaces_.insert (&i).second;
+ }
+
+ virtual void
+ traverse (Interface& i)
+ {
+ if (add (i))
+ {
+ Traversal::Interface::traverse (i);
+ }
+ }
+
+ private:
+ std::set<Interface*> interfaces_;
+ };
+
+ // Generates the set operation of a ReadWriteAttribute.
+ template <typename T>
+ struct WriteAttributeEmitter : Traversal::ReadWriteAttribute,
+ EmitterBase
+ {
+ WriteAttributeEmitter (Context& c, T& scope, bool swapping)
+ : EmitterBase (c),
+ scope_ (scope),
+ write_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ()),
+ swapping_ (swapping)
+ {
+ write_belongs_.node_traverser (write_type_name_emitter_);
+
+ edge_traverser (set_raises_);
+ set_raises_.node_traverser (type_name_emitter_);
+ }
+
+ virtual void
+ gen_swapping_set ()
+ {
+ os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
+ << "ACE_CHECK;" << endl;
+ }
+
+ virtual void
+ pre (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "void" << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << scope_.name () << "_Servant::" << a.name () << " (" << endl;
+
+ Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
+
+ os << " " << a.name () << endl
+ << STRS[ENV_SRC] << ")" << endl;
+ }
+
+ virtual void
+ get_raises (SemanticGraph::ReadWriteAttribute&)
+ {
+ }
+
+ virtual void
+ set_raises_none (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_SNGL];
+ }
+
+ virtual void
+ set_raises_pre (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ set_raises_post (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "))" << endl;
+ }
+
+ virtual void
+ post (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << "{";
+
+ if (swapping_)
+ {
+ this->gen_swapping_set ();
+ }
+
+ os << "this->executor_->" << a.name () << " (" << endl
+ << a.name () << endl
+ << STRS[ENV_ARG] << ");" << endl
+ << "}";
+ }
+
+ virtual void
+ comma (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "," << endl;
+ }
+
+ protected:
+ T& scope_;
+ Traversal::Belongs write_belongs_;
+
+ private:
+ INArgTypeNameEmitter write_type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
+ Traversal::SetRaises set_raises_;
+ bool swapping_;
+ };
+
+ // Generates operations associated with attributes.
+ template <typename T>
+ struct AttributeEmitter : Traversal::ReadAttribute,
+ Traversal::ReadWriteAttribute,
+ EmitterBase
+ {
+ AttributeEmitter (Context& c, T& scope)
+ : EmitterBase (c),
+ scope_ (scope),
+ read_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ()),
+ ace_check_return_emitter_ (c.os ())
+ {
+ read_belongs_.node_traverser (read_type_name_emitter_);
+ ace_check_return_belongs_.node_traverser (ace_check_return_emitter_);
+
+ edge_traverser (get_raises_);
+ get_raises_.node_traverser (type_name_emitter_);
+ }
+
+ // ReadWriteAttribute
+ //
+
+ // Overridden by facet attribute emitter.
+ virtual void
+ gen_swapping_get (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
+
+ Traversal::ReadWriteAttribute::belongs (a, ace_check_return_belongs_);
+
+ os << endl;
+ }
+
+ // Overridden by facet attribute emitter.
+ virtual void
+ gen_write_operation (SemanticGraph::ReadWriteAttribute& a,
+ bool swapping)
+ {
+ WriteAttributeEmitter<T> write_attribute_emitter (ctx,
+ scope_,
+ swapping);
+ write_attribute_emitter.traverse (a);
+ }
+
+ virtual void
+ pre (SemanticGraph::ReadWriteAttribute& a)
+ {
+ Traversal::ReadWriteAttribute::belongs (a, read_belongs_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << scope_.name () << "_Servant::" << a.name () << " (" << endl
+ << STRS[ENV_SNGL_SRC] << ")" << endl;
+ }
+
+ virtual void
+ get_raises_none (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_SNGL] << endl;
+ }
+
+ virtual void
+ get_raises_pre (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ get_raises_post (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "))" << endl;
+ }
+
+ virtual void
+ set_raises (SemanticGraph::ReadWriteAttribute&)
+ {
+ }
+
+ virtual void
+ post (SemanticGraph::ReadWriteAttribute& a)
+ {
+ os << "{";
+
+ string swap_option = ctx.cl ().get_value ("custom-container", "");
+ bool swapping = (swap_option == "upgradeable");
+
+ if (swapping)
+ {
+ this->gen_swapping_get (a);
+ }
+
+ os << "return this->executor_->" << a.name () << " (" << endl
+ << STRS[ENV_SNGL_ARG] << ");" << endl
+ << "}";
+
+ this->gen_write_operation (a, swapping);
+ }
+
+ virtual void
+ comma (SemanticGraph::ReadWriteAttribute&)
+ {
+ os << "," << endl;
+ }
+
+ // ReadAttribute
+ //
+
+ // Overridden by facet attribute emitter to do nothing.
+ virtual void
+ gen_swapping_get (SemanticGraph::ReadAttribute& a)
+ {
+ os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
+
+ Traversal::ReadAttribute::belongs (a, ace_check_return_belongs_);
+
+ os << endl;
+ }
+
+ virtual void
+ pre (SemanticGraph::ReadAttribute& a)
+ {
+ Traversal::ReadAttribute::belongs (a, read_belongs_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadAttribute& a)
+ {
+ os << scope_.name () << "_Servant::" << a.name () << " (" << endl
+ << STRS[ENV_SNGL_SRC] << ")" << endl;
+ }
+
+ virtual void
+ get_raises_none (SemanticGraph::ReadAttribute&)
+ {
+ os << STRS[EXCP_SNGL] << endl;
+ }
+
+ virtual void
+ get_raises_pre (SemanticGraph::ReadAttribute&)
+ {
+ os << STRS[EXCP_START] << endl
+ << STRS[EXCP_SYS] << "," << endl;
+ }
+
+ virtual void
+ get_raises_post (SemanticGraph::ReadAttribute&)
+ {
+ os << "))" << endl;
+ }
+
+ virtual void
+ set_raises (SemanticGraph::ReadAttribute&)
+ {
+ }
+
+ virtual void
+ post (SemanticGraph::ReadAttribute& a)
+ {
+ os << "{";
+
+ string swap_option = ctx.cl ().get_value ("custom-container", "");
+ bool swapping = (swap_option == "upgradeable");
+
+ if (swapping)
+ {
+ this->gen_swapping_get (a);
+ }
+
+ os << "return this->executor_->" << a.name () << " (" << endl
+ << STRS[ENV_SNGL_ARG] << ");" << endl
+ << "}";
+ }
+
+ virtual void
+ comma (SemanticGraph::ReadAttribute&)
+ {
+ os << "," << endl;
+ }
+
+ protected:
+ T& scope_;
+
+ private:
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
+ AceCheckReturnEmitter ace_check_return_emitter_;
+ Traversal::Belongs read_belongs_;
+ Traversal::Belongs ace_check_return_belongs_;
+ Traversal::GetRaises get_raises_;
+ };
+
+ // Generates operations associated with readonly attributes.
+ // @@@ (JP) Need to support exceptions.
+ template <typename T>
+ struct ReadOnlyAttributeEmitter : Traversal::ReadAttribute,
+ EmitterBase
+ {
+ ReadOnlyAttributeEmitter (Context& c,
+ T& scope)
+ : EmitterBase (c),
+ scope_ (scope),
+ read_type_name_emitter_ (c.os ()),
+ ace_check_return_emitter_ (c.os ())
+ {
+ read_belongs_.node_traverser (read_type_name_emitter_);
+ ace_check_return_belongs_.node_traverser (ace_check_return_emitter_);
+ }
+
+ // Overridden by facet attribute emitter to do nothing.
+
+ virtual void
+ gen_swapping_get (SemanticGraph::ReadAttribute& a)
+ {
+ os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
+
+ Traversal::ReadAttribute::belongs (a, ace_check_return_belongs_);
+
+ os << endl;
+ }
+
+ virtual void
+ name (SemanticGraph::ReadAttribute& a)
+ {
+ os << scope_.name () << "_Servant::" << a.name ();
+ }
+
+ virtual void
+ traverse (SemanticGraph::ReadAttribute& a)
+ {
+ // Does nothing here, overridden for facet attributes.
+ this->pre (a);
+
+ Traversal::ReadAttribute::belongs (a, read_belongs_);
+
+ os << endl;
+
+ // Overridden for facet attributes.
+ this->name (a);
+
+ os << " (" << endl
+ << STRS[ENV_SNGL_SRC] << ")" << endl
+ << STRS[EXCP_SNGL] << endl
+ << "{";
+
+ string swap_option = ctx.cl ().get_value ("custom-container", "");
+ bool swapping = (swap_option == "upgradeable");
+
+ if (swapping)
+ {
+ this->gen_swapping_get (a);
+ }
+
+ os << "return this->executor_->" << a.name () << " (" << endl
+ << STRS[ENV_SNGL_ARG] << ");" << endl
+ << "}";
+ }
+
+ protected:
+ T& scope_;
+
+ private:
+ ReturnTypeNameEmitter read_type_name_emitter_;
+ AceCheckReturnEmitter ace_check_return_emitter_;
+ Traversal::Belongs read_belongs_;
+ Traversal::Belongs ace_check_return_belongs_;
+ };
+
struct FacetEmitter : Traversal::UnconstrainedInterface,
EmitterBase
{
@@ -295,7 +844,7 @@ namespace
gen_swap_related (Type&)
{
}
-
+
virtual void
pre (Type&)
{
@@ -309,25 +858,22 @@ namespace
<< scope_.name () << "_Servant_T<T>::" << o.name ();
}
};
-
+
struct FacetWriteAttributeEmitter
- : WriteAttributeSourceEmitter<SemanticGraph::Interface>
+ : WriteAttributeEmitter<SemanticGraph::Interface>
{
// Since swapping does not affect facets, we can just pass 'false'
// to the base class constructor, and not override gen_swapping_set().
FacetWriteAttributeEmitter (Context& c, SemanticGraph::Interface& i)
- : WriteAttributeSourceEmitter<SemanticGraph::Interface> (c,
- i,
- false,
- false)
+ : WriteAttributeEmitter<SemanticGraph::Interface> (c, i, false)
{}
-
+
virtual void
pre (SemanticGraph::ReadWriteAttribute& a)
{
os << "template <typename T>" << endl;
-
- WriteAttributeSourceEmitter<SemanticGraph::Interface>::pre (a);
+
+ WriteAttributeEmitter<SemanticGraph::Interface>::pre (a);
}
virtual void
@@ -335,27 +881,27 @@ namespace
{
os << scope_.name () << "_Servant_T<T>::"
<< a.name () << " (" << endl;
-
+
Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
-
+
os << " " << a.name () << endl
<< STRS[ENV_SRC] << ")" << endl;
}
};
struct FacetAttributeEmitter
- : AttributeSourceEmitter<SemanticGraph::Interface>
+ : AttributeEmitter<SemanticGraph::Interface>
{
FacetAttributeEmitter (Context& c,
SemanticGraph::Interface& i)
- : AttributeSourceEmitter<SemanticGraph::Interface> (c, i)
+ : AttributeEmitter<SemanticGraph::Interface> (c, i)
{}
-
+
// ReadWriteAttribute
//
-
+
// No-op override because we don't want to generate any swapping
- // code for facets.
+ // code for facets.
virtual void gen_swapping_get (SemanticGraph::ReadWriteAttribute&)
{
}
@@ -367,13 +913,13 @@ namespace
FacetWriteAttributeEmitter write_attribute_emitter (ctx, scope_);
write_attribute_emitter.traverse (a);
}
-
+
virtual void
pre (SemanticGraph::ReadWriteAttribute& a)
{
os << "template <typename T>" << endl;
-
- AttributeSourceEmitter<SemanticGraph::Interface>::pre (a);
+
+ AttributeEmitter<SemanticGraph::Interface>::pre (a);
}
virtual void
@@ -386,19 +932,19 @@ namespace
// ReadAttribute
//
-
+
// No-op override because we don't want to generate any swapping
- // code for facets.
+ // code for facets.
virtual void gen_swapping_get (SemanticGraph::ReadAttribute&)
{
}
-
+
virtual void
pre (SemanticGraph::ReadAttribute& a)
{
os << "template <typename T>" << endl;
-
- AttributeSourceEmitter<SemanticGraph::Interface>::pre (a);
+
+ AttributeEmitter<SemanticGraph::Interface>::pre (a);
}
virtual void
@@ -421,9 +967,9 @@ namespace
<< i.scoped_name ().scope_name () << "::CCM_" << i.name ()
<< "_ptr executor," << endl
<< "::Components::CCMContext_ptr c)" << endl
- << " : executor_ ( " << i.scoped_name ().scope_name () << "::CCM_"
+ << ": executor_ (" << i.scoped_name ().scope_name () << "::CCM_"
<< i.name () << "::_duplicate (executor))," << endl
- << " ctx_ ( ::Components::CCMContext::_duplicate (c))" << endl
+ << "ctx_ (::Components::CCMContext::_duplicate (c))" << endl
<< "{"
<< "}";
@@ -455,15 +1001,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -472,9 +1018,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -484,32 +1030,32 @@ namespace
}
os << "template <typename T>" << endl
- << "::CORBA::Object_ptr" << endl
+ << "CORBA::Object_ptr" << endl
<< i.name () << "_Servant_T<T>::_get_component (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_SNGL] << endl
+ << "ACE_THROW_SPEC ((CORBA::SystemException))" << endl
<< "{"
<< STRS[COMP_SC] << "_var sc =" << endl
- << " " << STRS[COMP_SC] << "::_narrow (" << endl
- << " this->ctx_.in ()" << endl
- << " " << STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ::CORBA::Object::_nil ());" << endl
- << "if (! ::CORBA::is_nil (sc.in ()))" << endl
+ << STRS[COMP_SC] << "::_narrow (" << endl
+ << "this->ctx_.in ()" << endl
+ << STRS[ENV_ARG] << ");"
+ << STRS[ACE_CR] << " (CORBA::Object::_nil ());" << endl
+ << "if (! CORBA::is_nil (sc.in ()))" << endl
<< "{"
<< "return sc->get_CCM_object (" << endl
- << STRS[ENV_SNGL_ARG] << ");"
+ << STRS[ENV_SNGL_ARG] << ");" << endl
<< "}"
<< "::Components::EntityContext_var ec =" << endl
<< "::Components::EntityContext::_narrow (" << endl
<< "this->ctx_.in ()" << endl
<< STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ::CORBA::Object::_nil ());" << endl
- << "if (! ::CORBA::is_nil (ec.in ()))" << endl
+ << STRS[ACE_CR] << " (CORBA::Object::_nil ());" << endl
+ << "if (! CORBA::is_nil (ec.in ()))" << endl
<< "{"
<< "return ec->get_CCM_object (" << endl
- << STRS[ENV_SNGL_ARG] << ");"
+ << STRS[ENV_SNGL_ARG] << ");" << endl
<< "}"
- << STRS[ACE_TR] << " ( ::CORBA::INTERNAL (), 0);" << endl
+ << STRS[ACE_TR] << " (CORBA::INTERNAL (), 0);" << endl
<< "}" << endl;
i.context ().set ("facet_src_gen", true);
@@ -532,8 +1078,8 @@ namespace
{
ContextPortsEmitter (Context& c, SemanticGraph::Component& scope)
: EmitterBase (c),
- type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
+ type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
scope_ (scope)
{
belongs_.node_traverser (type_name_emitter_);
@@ -568,22 +1114,21 @@ namespace
os << "_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_AC] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{"
- << "if (! ::CORBA::is_nil (this->ciao_uses_"
+ << "if (!CORBA::is_nil (this->ciao_uses_"
<< u.name () << "_.in ()))" << endl
<< "{"
- << "ACE_THROW ( " << STRS[EXCP_AC] << " ());"
+ << "ACE_THROW (" << STRS[EXCP_AC] << " ());" << endl
<< "}"
- << "if ( ::CORBA::is_nil (c))" << endl
+ << "if (CORBA::is_nil (c))" << endl
<< "{"
- << "ACE_THROW ( " << STRS[EXCP_IC] << " ());"
+ << "ACE_THROW (" << STRS[EXCP_IC] << " ());" << endl
<< "}"
- << "this->ciao_uses_" << u.name () << "_ =" << endl
- << " ";
+ << "this->ciao_uses_" << u.name () << "_ =" << endl;
Traversal::SingleUserData::belongs (u, belongs_);
@@ -596,14 +1141,14 @@ namespace
<< scope_.name () << "_Context::disconnect_"
<< u.name () << " (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_NC] << "))" << endl
<< "{"
- << "if ( ::CORBA::is_nil (this->ciao_uses_"
+ << "if (CORBA::is_nil (this->ciao_uses_"
<< u.name () << "_.in ()))" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_NC] << " ()," << endl;
Traversal::SingleUserData::belongs (u, belongs_);
@@ -625,29 +1170,27 @@ namespace
<< STRS[EXCP_SNGL] << endl
<< "{"
<< u.scoped_name () << "Connections *tmp_retv = 0;"
- << "ACE_NEW_THROW_EX ("
+ << "ACE_NEW_THROW_EX (" << endl
<< "tmp_retv," << endl
<< u.scoped_name () << "Connections (" << endl
<< "this->ciao_uses_"
<< u.name () << "_.current_size ())," << endl
- << "::CORBA::NO_MEMORY ());" << endl
+ << "CORBA::NO_MEMORY ());" << endl << endl
<< u.scoped_name () << "Connections_var retv"
<< " = tmp_retv;" << endl
<< "retv->length (this->ciao_uses_" << u.name ()
<< "_.current_size ());" << endl;
- os << "::CORBA::ULong i = 0;" << endl;
+ os << "CORBA::ULong i = 0;" << endl;
- os << "for (ACE_Active_Map_Manager< " << endl
- << " ";
+ os << "for (ACE_Active_Map_Manager< " << endl;
Traversal::MultiUserData::belongs (u, belongs_);
os << "_var>::iterator iter =" << endl
- << " this->ciao_uses_" << u.name () << "_.begin ();" << endl
- << "iter != this->ciao_uses_" << u.name () << "_.end ();"
- << endl
- << "++iter)" << endl
+ << " this->ciao_uses_" << u.name () << "_.begin ();"
+ << " iter != this->ciao_uses_" << u.name () << "_.end ();"
+ << " ++iter)" << endl
<< "{"
<< "ACE_Active_Map_Manager< " << endl;
@@ -663,10 +1206,10 @@ namespace
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
- os << "ACE_NEW_THROW_EX ("
- << "retv[i].ck.inout ()," << endl
- << "::CIAO::Map_Key_Cookie (entry.ext_id_)," << endl
- << "::CORBA::NO_MEMORY ());" << endl
+ os << "ACE_NEW_THROW_EX (" << endl
+ << "retv[i].ck," << endl
+ << "CIAO::Map_Key_Cookie (entry.ext_id_)," << endl
+ << "CORBA::NO_MEMORY ());" << endl
<< "++i;" << endl
<< "}";
@@ -681,15 +1224,14 @@ namespace
os << "_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{"
- << "if ( ::CORBA::is_nil (c))" << endl
+ << "if (CORBA::is_nil (c))" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
- << STRS[EXCP_IC] << " (), 0);" << endl
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IC] << " (), 0);" << endl
<< "}";
Traversal::MultiUserData::belongs (u, belongs_);
@@ -704,18 +1246,17 @@ namespace
os << "if (this->ciao_uses_" << u.name ()
<< "_.bind (conn.in (), key) == -1)" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
- << STRS[EXCP_IC] << " (), 0);" << endl
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IC] << " (), 0);" << endl
<< "}";
os << "conn._retn ();" << endl;
os << STRS[COMP_CK] << " * ck = 0;"
- << "ACE_NEW_THROW_EX ("
+ << "ACE_NEW_THROW_EX (" << endl
<< "ck," << endl
- << "::CIAO::Map_Key_Cookie (key)," << endl
- << "::CORBA::NO_MEMORY ());" << endl;
-
+ << "CIAO::Map_Key_Cookie (key)," << endl
+ << "CORBA::NO_MEMORY ());" << endl;
+
os << "return ck;" << endl
<< "}";
@@ -727,7 +1268,7 @@ namespace
<< u.name () << " (" << endl
<< STRS[COMP_CK] << " * ck" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
@@ -737,10 +1278,10 @@ namespace
os << "_var retv;"
<< "ACE_Active_Map_Manager_Key key;" << endl;
- os << "if (! CIAO::Map_Key_Cookie::extract (ck, key))"
+ os << "if (ck == 0 || ! CIAO::Map_Key_Cookie::extract (ck, key))"
<< endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IC] << " ()," << endl;
Traversal::MultiUserData::belongs (u, belongs_);
@@ -751,7 +1292,7 @@ namespace
os << "if (this->ciao_uses_" << u.name ()
<< "_.unbind (key, retv) != 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IC] << " ()," << endl;
Traversal::MultiUserData::belongs (u, belongs_);
@@ -776,16 +1317,15 @@ namespace
<< STRS[ENV_SRC] << ")" << endl
<< STRS[EXCP_SNGL] << endl
<< "{"
- << "for (ACE_Active_Map_Manager< " << endl
- << " ";
+ << "for (ACE_Active_Map_Manager< " << endl; //@@ gcc bug
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::iterator iter =" << endl
- << " this->ciao_publishes_" << p.name ()
- << "_map_.begin ();" << endl
+ << "this->ciao_publishes_" << p.name ()
+ << "_map_.begin ();"
<< "iter != this->ciao_publishes_" << p.name ()
- << "_map_.end ();" << endl
+ << "_map_.end ();"
<< "++iter)" << endl
<< "{"
<< "(*iter).int_id_->push_";
@@ -797,13 +1337,13 @@ namespace
<< STRS[ENV_ARG] << ");"
<< "ACE_CHECK;" << endl
<< "}";
-
+
os << "for (ACE_Active_Map_Manager< " << endl
- << " " << STRS[COMP_ECB] << "_var>::iterator giter =" << endl
- << " this->ciao_publishes_" << p.name ()
- << "_generic_map_.begin ();" << endl
+ << STRS[COMP_ECB] << "_var>::iterator giter =" << endl
+ << "this->ciao_publishes_" << p.name ()
+ << "_generic_map_.begin ();"
<< "giter != this->ciao_publishes_" << p.name ()
- << "_generic_map_.end ();" << endl
+ << "_generic_map_.end ();"
<< "++giter)" << endl
<< "{"
<< "(*giter).int_id_->push_event" << " (" << endl
@@ -821,19 +1361,18 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{"
- << "if ( ::CORBA::is_nil (c))" << endl
+ << "if (CORBA::is_nil (c))" << endl
<< "{"
- << STRS[ACE_TR] << " ( ::CORBA::BAD_PARAM (), 0);" << endl
+ << STRS[ACE_TR] << " (CORBA::BAD_PARAM (), 0);" << endl
<< "}";
Traversal::PublisherData::belongs (p, belongs_);
- os << "Consumer_var sub =" << endl
- << " ";
+ os<< "Consumer_var sub =" << endl;
Traversal::PublisherData::belongs (p, belongs_);
@@ -843,10 +1382,10 @@ namespace
<< "_map_.bind (sub.in (), key);"
<< "sub._retn ();" << endl
<< STRS[COMP_CK] << " * retv = 0;"
- << "ACE_NEW_THROW_EX ("
+ << "ACE_NEW_THROW_EX (" << endl
<< "retv," << endl
<< "::CIAO::Map_Key_Cookie (key)," << endl
- << "::CORBA::NO_MEMORY ());" << endl
+ << "CORBA::NO_MEMORY ());" << endl
<< "return retv;" << endl
<< "}";
@@ -855,26 +1394,26 @@ namespace
<< p.name () << "_generic (" << endl
<< STRS[COMP_ECB] << "_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{"
- << "if ( ::CORBA::is_nil (c))" << endl
+ << "if (CORBA::is_nil (c))" << endl
<< "{"
- << STRS[ACE_TR] << " ( ::CORBA::BAD_PARAM (), 0);" << endl
+ << STRS[ACE_TR] << " (CORBA::BAD_PARAM (), 0);" << endl
<< "}";
os << STRS[COMP_ECB] << "_var sub =" << endl
- << " " << STRS[COMP_ECB] << "::_duplicate (c);" << endl
+ << STRS[COMP_ECB] << "::_duplicate (c);" << endl
<< "ACE_Active_Map_Manager_Key key;"
<< "this->ciao_publishes_" << p.name ()
<< "_generic_map_.bind (sub.in (), key);"
<< "sub._retn ();" << endl
<< STRS[COMP_CK] << " * retv = 0;"
- << "ACE_NEW_THROW_EX ("
+ << "ACE_NEW_THROW_EX (" << endl
<< "retv," << endl
<< "::CIAO::Map_Key_Cookie (key)," << endl
- << "::CORBA::NO_MEMORY ());" << endl
+ << "CORBA::NO_MEMORY ());" << endl
<< "return retv;" << endl
<< "}";
@@ -885,7 +1424,7 @@ namespace
<< p.name () << " (" << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{"
@@ -893,14 +1432,14 @@ namespace
<< "if (ck == 0 || ::CIAO::Map_Key_Cookie::extract (ck, key) == false)"
<< endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IC] << " ()," << endl;
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer::_nil ());" << endl
<< "}";
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var retv;"
@@ -909,13 +1448,13 @@ namespace
<< "{"
<< "return retv._retn ();" << endl
<< "}";
-
+
os << STRS[COMP_ECB] << "_var ecb;" << endl;
-
+
os << "if (this->ciao_publishes_" << p.name ()
<< "_generic_map_.unbind (key, ecb) != 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IC] << " ()," << endl;
Traversal::PublisherData::belongs (p, belongs_);
@@ -961,19 +1500,19 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_AC] << "))" << endl
<< "{"
- << "if ( ::CORBA::is_nil (c))" << endl
+ << "if (CORBA::is_nil (c))" << endl
<< "{"
- << "ACE_THROW ( ::CORBA::BAD_PARAM ());" << endl
- << "}"
- << "if (! ::CORBA::is_nil (this->ciao_emits_" << e.name ()
+ << "ACE_THROW (CORBA::BAD_PARAM ());" << endl
+ << "}" << endl
+ << "if (! CORBA::is_nil (this->ciao_emits_" << e.name ()
<< "_consumer_.in ()))" << endl
<< "{"
- << "ACE_THROW ( " << STRS[EXCP_AC] << " ());" << endl
- << "}"
+ << "ACE_THROW (" << STRS[EXCP_AC] << " ());" << endl
+ << "}" << endl
<< "this->ciao_emits_" << e.name ()
<< "_consumer_ = " << endl;
@@ -988,44 +1527,44 @@ namespace
<< scope_.name () << "_Context::disconnect_"
<< e.name () << " (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_NC] << "))" << endl
<< "{"
- << "if ( ::CORBA::is_nil (this->ciao_emits_" << e.name ()
+ << "if (CORBA::is_nil (this->ciao_emits_" << e.name ()
<< "_consumer_.in ()))" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_NC] << " ()," << endl;
Traversal::EmitterData::belongs (e, belongs_);
os << "Consumer::_nil ());" << endl
- << "}"
+ << "}" << endl
<< "return this->ciao_emits_" << e.name ()
<< "_consumer_._retn ();" << endl
<< "}";
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
Traversal::Belongs belongs_;
Traversal::Belongs simple_belongs_;
SemanticGraph::Component& scope_;
};
-
+
struct SwappableGetConsumersEmitter : Traversal::PublisherData,
Traversal::EmitterData,
EmitterBase
{
SwappableGetConsumersEmitter (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
-
+
virtual void
traverse (SemanticGraph::Publisher& p)
{
@@ -1034,55 +1573,54 @@ namespace
<< "{"
<< "_ciao_size = this->ciao_publishes_" << p.name ()
<< "_map_.current_size ();" << endl
- << "ACE_NEW_THROW_EX ("
+ << "ACE_NEW_THROW_EX (" << endl
<< "tmp," << endl
<< STRS[COMP_CD] << " (_ciao_size)," << endl
- << "::CORBA::NO_MEMORY ());" << endl
+ << "CORBA::NO_MEMORY ());" << endl
<< "retval = tmp;"
<< "retval->length (_ciao_size);" << endl
<< "ACE_Active_Map_Manager<" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::iterator end =" << endl
<< " this->ciao_publishes_" << p.name ()
<< "_map_.end ();" << endl
- << "for (ACE_Active_Map_Manager<" << endl
- << " ";
-
+ << "for (ACE_Active_Map_Manager<" << endl;
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::iterator iter =" << endl
- << " this->ciao_publishes_" << p.name ()
+ << " this->ciao_publishes_" << p.name ()
<< "_map_.begin ();"
<< "iter != end;"
<< "++iter)" << endl
<< "{"
<< "ACE_Active_Map_Manager<" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::entry &e = *iter;" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var c =" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer::_narrow (" << endl
<< "e.int_id_.in ()" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl
- << "if ( ::CORBA::is_nil (c.in ()))"
+ << "if (CORBA::is_nil (c.in ()))"
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IC] << " (), 0);"
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IC] << " (), 0);"
<< "}"
<< "::Components::ConsumerDescription *cd = 0;"
- << "ACE_NEW_THROW_EX ("
+ << "ACE_NEW_THROW_EX (" << endl
<< "cd," << endl
<< "OBV_Components::ConsumerDescription ()," << endl
- << "::CORBA::NO_MEMORY ());" << endl
+ << "CORBA::NO_MEMORY ());" << endl
<< "::Components::ConsumerDescription_var safe = cd;"
<< "safe->name (\"\");"
<< "safe->type_id (\"\");"
@@ -1100,7 +1638,7 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
@@ -1141,10 +1679,10 @@ namespace
<< t.name () << "_Servant *sv)" << endl
<< " : ACE_NESTED_CLASS (CIAO, Context_Impl_Base (h, c)), " << endl
<< " ctx_svnt_base (h, c, sv)";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "," << endl
@@ -1154,7 +1692,7 @@ namespace
{
os << endl;
}
-
+
os << "{"
<< "}";
@@ -1198,24 +1736,24 @@ namespace
<< t.name () << "_Context::get_registered_consumers (" << endl
<< "const char *publisher_name" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{"
<< "if (publisher_name == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IN] << " (), 0);"
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);"
<< "}"
<< STRS[COMP_CD] << " *tmp = 0;"
<< STRS[COMP_CD] << "_var retval;"
<< "CORBA::ULong _ciao_index = 0;"
<< "CORBA::ULong _ciao_size = 0;"
- << STRS[ACE_UA] << " (tmp);"
- << STRS[ACE_UA] << " (retval);"
- << STRS[ACE_UA] << " (_ciao_index);"
- << STRS[ACE_UA] << " (_ciao_size);" << endl;
-
+ << STRS[ACE_UA] << " (tmp);"
+ << STRS[ACE_UA] << " (retval);"
+ << STRS[ACE_UA] << " (_ciao_index);"
+ << STRS[ACE_UA] << " (_ciao_size);" << endl;
+
// Generate IF block for each event sources.
{
Traversal::Component component_emitter;
@@ -1233,10 +1771,10 @@ namespace
component_emitter.traverse (t);
}
- os << STRS[ACE_TR] << " ( " << STRS[EXCP_IN] << " (), 0);"
+ os << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);"
<< "}";
}
-
+
os << "// CIAO-specific." << endl << endl;
os << t.name () << "_Context *" << endl
@@ -1258,12 +1796,12 @@ namespace
// Nested classes used by ServantEmitter.
private:
- struct EmitsConnectEmitter : Traversal::EmitterData,
- EmitterBase
+ struct NavigationEmitsEmitter : Traversal::EmitterData,
+ EmitterBase
{
- EmitsConnectEmitter (Context& c)
+ NavigationEmitsEmitter (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -1277,18 +1815,17 @@ namespace
Traversal::EmitterData::belongs (t, belongs_);
- os << "Consumer_var _ciao_consumer =" << endl
- << " ";
+ os << "Consumer_var _ciao_consumer =" << endl;
Traversal::EmitterData::belongs (t, belongs_);
os << "Consumer::_narrow (" << endl
- << " consumer" << endl
- << " " << STRS[ENV_ARG] << ");"
+ << "consumer" << endl
+ << STRS[ENV_ARG] << ");"
<< "ACE_CHECK;" << endl
- << "if ( ::CORBA::is_nil (_ciao_consumer.in ()))" << endl
+ << "if (::CORBA::is_nil (_ciao_consumer.in ()))" << endl
<< "{"
- << "ACE_THROW ( " << STRS[EXCP_IC] << " ());"
+ << "ACE_THROW (" << STRS[EXCP_IC] << " ());"
<< endl
<< "}"
<< "this->connect_" << t.name ()
@@ -1300,30 +1837,10 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
- struct EmitsDisconnectEmitter : Traversal::EmitterData,
- EmitterBase
- {
- EmitsDisconnectEmitter (Context& c)
- : EmitterBase (c)
- {
- }
-
- virtual void
- traverse (Type& t)
- {
- os << "if (ACE_OS::strcmp (source_name, \""
- << t.name () << "\") == 0)" << endl
- << "{"
- << "return this->disconnect_" << t.name ()
- << " (" << STRS[ENV_SNGL_ARG] << ");" << endl
- << "}";
- }
- };
-
struct NavigationGetFacetExecEmitter : Traversal::ProviderData,
EmitterBase
{
@@ -1349,7 +1866,7 @@ namespace
PublishesEmitter (Context& c,
SemanticGraph::Component& scope)
: EmitterBase (c),
- type_name_emitter_ (c),
+ type_name_emitter_ (c.os ()),
scope_ (scope)
{
belongs_.node_traverser (type_name_emitter_);
@@ -1366,20 +1883,20 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "return this->context_->subscribe_" << p.name ()
<< " (" << endl
<< "c" << endl
@@ -1391,17 +1908,17 @@ namespace
<< "_Servant::subscribe_" << p.name () << "_generic (" << endl
<< STRS[COMP_ECB] << "_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "return this->context_->subscribe_" << p.name ()
<< "_generic (" << endl
<< "c" << endl
@@ -1415,21 +1932,21 @@ namespace
<< "_Servant::unsubscribe_" << p.name () << " (" << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << STRS[ACE_CR] << " (";
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer::_nil ());" << endl;
}
-
+
os << "return this->context_->unsubscribe_"
<< p.name () << " (" << endl
<< "ck" << endl
@@ -1438,7 +1955,7 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
SemanticGraph::Component& scope_;
};
@@ -1449,7 +1966,7 @@ namespace
{
UsesConnectEmitter (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -1471,9 +1988,9 @@ namespace
<< "connection" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl
- << "if ( ::CORBA::is_nil (_ciao_conn.in ()))" << endl
+ << "if (::CORBA::is_nil (_ciao_conn.in ()))" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IC] << " (), 0);"
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IC] << " (), 0);"
<< endl
<< "}"
<< "// Simplex connect." << endl
@@ -1502,9 +2019,9 @@ namespace
<< "connection" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl
- << "if ( ::CORBA::is_nil (_ciao_conn.in ()))" << endl
+ << "if (::CORBA::is_nil (_ciao_conn.in ()))" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IC] << " (), 0);"
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IC] << " (), 0);"
<< endl
<< "}"
<< "// Multiplex connect." << endl
@@ -1515,7 +2032,7 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
@@ -1547,12 +2064,6 @@ namespace
<< u.name () << "\") == 0)" << endl
<< "{"
<< "// Multiplex disconnect." << endl
- << "if (ck == 0)" << endl
- << "{"
- << STRS[ACE_TR] << " ( "
- << STRS[EXCP_CR] << " ()," << endl
- << "::CORBA::Object::_nil ());" << endl
- << "}"
<< "return this->disconnect_" << u.name () << " (" << endl
<< "ck" << endl
<< STRS[ENV_ARG] << ");" << endl
@@ -1566,7 +2077,7 @@ namespace
{
UsesEmitter (Context& c, SemanticGraph::Component& scope)
: EmitterBase (c),
- type_name_emitter_ (c),
+ type_name_emitter_ (c.os ()),
scope_ (scope)
{
belongs_.node_traverser (type_name_emitter_);
@@ -1583,7 +2094,7 @@ namespace
os << "_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_AC] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
@@ -1600,7 +2111,7 @@ namespace
<< scope_.name () << "_Servant::disconnect_"
<< u.name () << " (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_NC] << "))" << endl
<< "{"
@@ -1635,7 +2146,7 @@ namespace
os << "_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
@@ -1653,7 +2164,7 @@ namespace
<< u.name () << " (" << endl
<< STRS[COMP_CK] << " * ck" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{"
@@ -1677,7 +2188,7 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
SemanticGraph::Component& scope_;
};
@@ -1687,7 +2198,7 @@ namespace
{
PublishesSubscribeEmitter (Context& c)
: EmitterBase (c),
- type_name_emitter_ (c)
+ type_name_emitter_ (c.os ())
{
belongs_.node_traverser (type_name_emitter_);
}
@@ -1698,31 +2209,29 @@ namespace
os << "if (ACE_OS::strcmp (publisher_name, \""
<< p.name () << "\") == 0)" << endl
<< "{";
-
+
Traversal::PublisherData::belongs (p, belongs_);
- os << "Consumer_var sub =" << endl
- << " ";
+ os << "Consumer_var sub =" << endl;
Traversal::PublisherData::belongs (p, belongs_);
-
+
os << "Consumer::_narrow (" << endl
<< "subscribe" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
-
- os << "if ( ::CORBA::is_nil (sub.in ()))" << endl
+
+ os << "if (CORBA::is_nil (sub.in ()))" << endl
<< "{"
- << "::CORBA::Boolean substitutable =" << endl
- << " subscribe->ciao_is_substitutable (" << endl
- << " ";
+ << "CORBA::Boolean substitutable =" << endl
+ << "subscribe->ciao_is_substitutable (" << endl;
Traversal::PublisherData::belongs (p, belongs_);
-
+
os << "::_tao_obv_static_repository_id ()" << endl
- << " " << STRS[ENV_ARG] << ");"
+ << STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
-
+
os << "if (substitutable)" << endl
<< "{"
<< "return this->subscribe_" << p.name () << "_generic (" << endl
@@ -1731,7 +2240,7 @@ namespace
<< "}"
<< "else" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IC] << " (), 0);" << endl
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IC] << " (), 0);" << endl
<< "}"
<< "}"
<< "else" << endl
@@ -1740,11 +2249,11 @@ namespace
<< "sub.in ()" << endl
<< STRS[ENV_ARG] << ");" << endl
<< "}"
- << "}";
+ << "}";
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
};
@@ -1774,7 +2283,7 @@ namespace
{
EmitsEmitter (Context& c, SemanticGraph::Component& scope)
: EmitterBase (c),
- type_name_emitter_ (c),
+ type_name_emitter_ (c.os ()),
scope_ (scope)
{
belongs_.node_traverser (type_name_emitter_);
@@ -1791,7 +2300,7 @@ namespace
os << "Consumer_ptr c" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_AC] << "))" << endl
<< "{"
@@ -1807,7 +2316,7 @@ namespace
<< scope_.name () << "_Servant::disconnect_"
<< e.name () << " (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_NC] << "))" << endl
<< "{"
@@ -1818,24 +2327,25 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Belongs belongs_;
SemanticGraph::Component& scope_;
};
- struct ServantTypeNameEmitter : Traversal::Type,
- EmitterBase
+ struct ServantTypeNameEmitter : Traversal::Type
{
- ServantTypeNameEmitter (Context& c)
- : EmitterBase (c)
- {
- }
+ ServantTypeNameEmitter (std::ostream& os_)
+ : os (os_)
+ {}
virtual void
traverse (SemanticGraph::Type& t)
{
os << t.name () << "_Servant";
}
+
+ private:
+ std::ostream& os;
};
struct FacetProvidesEmitter : Traversal::ProviderData,
@@ -1844,11 +2354,11 @@ namespace
FacetProvidesEmitter (Context& c,
SemanticGraph::Component& scope)
: EmitterBase (c),
- type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- servant_type_name_emitter_ (c),
- enclosing_type_name_emitter_ (c),
- repo_id_emitter_ (c),
+ type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ servant_type_name_emitter_ (c.os ()),
+ enclosing_type_name_emitter_ (c.os ()),
+ repo_id_emitter_ (c.os ()),
scope_ (scope)
{
belongs_.node_traverser (type_name_emitter_);
@@ -1869,20 +2379,20 @@ namespace
<< STRS[ENV_SNGL_SRC] << ")" << endl
<< STRS[EXCP_SNGL] << endl
<< "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
-
+ << STRS[ACE_CR] << " (";
+
Traversal::ProviderData::belongs (p, belongs_);
-
+
os << "::_nil ());" << endl;
}
-
+
os << "if (! ::CORBA::is_nil (this->provide_"
<< p.name () << "_.in ()))" << endl
<< "{"
@@ -1894,9 +2404,9 @@ namespace
<< "}";
os << "::CORBA::Object_var obj =" << endl
- << " this->provide_" << p.name () << "_i ("
+ << "this->provide_" << p.name () << "_i ("
<< STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << STRS[ACE_CR] << " (";
Traversal::ProviderData::belongs (p, belongs_);
@@ -1907,15 +2417,14 @@ namespace
Traversal::ProviderData::belongs (p, belongs_);
- os << "_var fo =" << endl
- << " ";
+ os << "_var fo =" << endl;
Traversal::ProviderData::belongs (p, belongs_);
- os << "::_narrow ("
+ os << "::_narrow (" << endl
<< "obj.in ()" << endl
<< STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << STRS[ACE_CR] << " (";
Traversal::ProviderData::belongs (p, belongs_);
@@ -1938,7 +2447,7 @@ namespace
<< STRS[EXCP_SNGL] << endl
<< "{"
<< "::CORBA::Object_ptr ret =" << endl
- << " this->lookup_facet (\"" << p.name () << "\");" << endl;
+ << "this->lookup_facet (\"" << p.name () << "\");" << endl;
os << "if (! ::CORBA::is_nil (ret))" << endl
<< "{"
@@ -1982,26 +2491,26 @@ namespace
<< " " << scope_.name () << "_Servant" << endl
<< " >" << endl
<< "MACRO_MADNESS_TYPEDEF;" << endl;
-
+
os << "ACE_CString obj_id (this->ins_name_);"
<< "obj_id += \"_" << p.name () << "\";" << endl;
-
- os << "ACE_NEW_THROW_EX ("
- << "tmp," << endl
- << "MACRO_MADNESS_TYPEDEF (" << endl
- << "obj_id.c_str ()," << endl
- << "\"" << p.name () << "\"," << endl
- << "::CIAO::Port_Activator::Facet," << endl
- << "0," << endl
- << "this->context_," << endl
- << "this)," << endl
- << "::CORBA::NO_MEMORY ());" << endl;
-
- os << "::CIAO::Servant_Activator *sa = " << endl
+
+ os << "ACE_NEW_THROW_EX ( " << endl
+ << " tmp," << endl
+ << " MACRO_MADNESS_TYPEDEF (" << endl
+ << " obj_id.c_str ()," << endl
+ << " \"" << p.name () << "\"," << endl
+ << " CIAO::Port_Activator::Facet," << endl
+ << " 0," << endl
+ << " this->context_," << endl
+ << " this)," << endl
+ << " CORBA::NO_MEMORY ());" << endl;
+
+ os << "CIAO::Servant_Activator *sa = " << endl
<< "this->container_->ports_servant_activator ();" << endl
<< "if (!sa->register_port_activator (tmp))" << endl
<< "{"
- << "return ";
+ << "return ";
Traversal::ProviderData::belongs (p, belongs_);
@@ -2010,34 +2519,29 @@ namespace
os << "::CORBA::Object_var obj =" << endl
<< " this->container_->generate_reference (" << endl
- << " obj_id.c_str ()," << endl
- << " ";
+ << " obj_id.c_str ()," << endl
+ << " ";
Traversal::ProviderData::belongs (p, repo_id_belongs_);
os << "," << endl
- << " ::CIAO::Container::Facet_Consumer" << endl
- << " " << STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << " CIAO::Container::Facet_Consumer" << endl
+ << " " << STRS[ENV_ARG] << ");"
+ << STRS[ACE_CR] << " (";
Traversal::ProviderData::belongs (p, belongs_);
os << "::_nil ());" << endl
- << "this->add_facet (\"" << p.name () << "\"," << endl
- << "obj.in ()" << endl
- << STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
-
- Traversal::ProviderData::belongs (p, belongs_);
-
- os << "::_nil ());" << endl;
+ << "this->add_facet (" << endl
+ << "\"" << p.name () << "\"," << endl
+ << "obj.in ());" << endl;
os << "return obj._retn ();" << endl
<< "}";
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
ServantTypeNameEmitter servant_type_name_emitter_;
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
@@ -2055,9 +2559,9 @@ namespace
{
ConsumesEmitter (Context& c, SemanticGraph::Component& scope)
: EmitterBase (c),
- type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- repo_id_emitter_ (c),
+ type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ repo_id_emitter_ (c.os ()),
scope_ (scope)
{
belongs_.node_traverser (type_name_emitter_);
@@ -2086,10 +2590,10 @@ namespace
<< c.scoped_name ().scope_name ().scope_name () << "::CCM_"
<< c.scoped_name ().scope_name ().simple_name ()
<< "_Context_ptr c)" << endl
- << " : executor_ ( " << c.scoped_name ().scope_name ().scope_name ()
+ << ": executor_ (" << c.scoped_name ().scope_name ().scope_name ()
<< "::CCM_" << c.scoped_name ().scope_name ().simple_name ()
<< "::_duplicate (executor))," << endl
- << " ctx_ ( " << c.scoped_name ().scope_name ().scope_name ()
+ << "ctx_ (" << c.scoped_name ().scope_name ().scope_name ()
<< "::CCM_" << c.scoped_name ().scope_name ().simple_name ()
<< "_Context::_duplicate (c))" << endl
<< "{"
@@ -2109,7 +2613,7 @@ namespace
<< "{"
<< "}";
- os << "::CORBA::Object_ptr" << endl
+ os << "CORBA::Object_ptr" << endl
<< scope_.name () << "_Servant::";
Traversal::ConsumerData::belongs (c, simple_belongs_);
@@ -2157,15 +2661,14 @@ namespace
<< "_Servant::push_event (" << endl
<< "::Components::EventBase *ev" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_BET] << "))" << endl
<< "{";
Traversal::ConsumerData::belongs (c, belongs_);
- os << "_var ev_type =" << endl
- << " ";
+ os << "_var ev_type =" << endl;
Traversal::ConsumerData::belongs (c, belongs_);
@@ -2181,11 +2684,11 @@ namespace
<< STRS[ENV_ARG] << ");" << endl
<< "return;" << endl
<< "}"
- << "ACE_THROW ( " << STRS[EXCP_BET] << " ());" << endl
+ << "ACE_THROW (" << STRS[EXCP_BET] << " ());" << endl
<< "}";
-
+
os << "CORBA::Boolean" << endl
- << scope_.name () << "_Servant::";
+ << scope_.name () << "_Servant::";
Traversal::ConsumerData::belongs (c, simple_belongs_);
@@ -2197,42 +2700,42 @@ namespace
<< "{"
<< "if (event_repo_id == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( ::CORBA::BAD_PARAM (), false);" << endl
+ << STRS[ACE_TR] << " (CORBA::BAD_PARAM (), false);" << endl
<< "}"
<< scope_.name () << "_Context *ctx =" << endl
- << " " << scope_.name () << "_Context::_narrow (" << endl
- << " this->ctx_.in ()" << endl
- << " " << STRS[ENV_ARG] << ");"
+ << scope_.name () << "_Context::_narrow (" << endl
+ << "this->ctx_.in ()" << endl
+ << STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (false);" << endl;
-
+
os << "CORBA::ORB_ptr orb = ctx->_ciao_the_Container ()->the_ORB ();"
<< endl;
-
+
os << "CORBA::ValueFactory f =" << endl
- << " orb->lookup_value_factory (" << endl
- << " event_repo_id" << endl
- << " " << STRS[ENV_ARG] << ");"
+ << "orb->lookup_value_factory (" << endl
+ << "event_repo_id" << endl
+ << STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (false);" << endl;
-
+
os << "if (f == 0)" << endl
<< "{"
<< "return false;" << endl
<< "}"
<< "CORBA::ValueBase_var v =" << endl
- << " f->create_for_unmarshal (" << STRS[ENV_SNGL_ARG] << ");"
+ << "f->create_for_unmarshal (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (false);" << endl;
-
+
os << "f->_remove_ref ();" << endl;
-
+
os << "if (v.in () == 0)" << endl
<< "{"
<< "return false;" << endl
<< "}";
-
+
os << "return dynamic_cast< ";
-
+
Traversal::ConsumerData::belongs (c, belongs_);
-
+
os << " *> (v.in ()) != 0;" << endl
<< "}" << endl;
@@ -2256,9 +2759,9 @@ namespace
<< "}";
os << "::Components::EventConsumerBase_var obj =" << endl
- << " this->get_consumer_" << c.name () << "_i (" << endl
- << " " << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << "this->get_consumer_" << c.name () << "_i (" << endl
+ << STRS[ENV_SNGL_ARG] << ");"
+ << STRS[ACE_CR] << " (";
Traversal::ConsumerData::belongs (c, belongs_);
@@ -2266,15 +2769,14 @@ namespace
Traversal::ConsumerData::belongs (c, belongs_);
- os << "Consumer_var eco =" << endl
- << " ";
+ os << "Consumer_var eco =" << endl;
Traversal::ConsumerData::belongs (c, belongs_);
os << "Consumer::_narrow (" << endl
- << " obj.in ()" << endl
- << " " << STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << "obj.in ()" << endl
+ << STRS[ENV_ARG] << ");"
+ << STRS[ACE_CR] << " (";
Traversal::ConsumerData::belongs (c, belongs_);
@@ -2297,14 +2799,14 @@ namespace
<< STRS[EXCP_SNGL] << endl
<< "{"
<< "::Components::EventConsumerBase_ptr ret =" << endl
- << " this->lookup_consumer (\"" << c.name () << "\");" << endl;
+ << "this->lookup_consumer (\"" << c.name () << "\");" << endl;
os << "if (! ::CORBA::is_nil (ret))" << endl
<< "{"
<< "return ret;"
<< "}";
- os << "::CIAO::Port_Activator_T<" << endl;
+ os << "CIAO::Port_Activator_T<" << endl;
os << scope_.name () << "_Servant::";
@@ -2339,23 +2841,23 @@ namespace
<< " " << scope_.name () << "_Servant" << endl
<< " >" << endl
<< "MACRO_MADNESS_TYPEDEF;" << endl;
-
+
os << "ACE_CString obj_id (this->ins_name_);"
<< "obj_id += \"_" << c.name () << "\";" << endl;
-
- os << "ACE_NEW_THROW_EX (" << endl
- << "tmp," << endl
- << "MACRO_MADNESS_TYPEDEF ("
- << "obj_id.c_str ()," << endl
- << "\"" << c.name () << "\"," << endl
- << "::CIAO::Port_Activator::Sink," << endl
- << "this->executor_.in ()," << endl
- << "this->context_," << endl
- << "this)," << endl
- << "::CORBA::NO_MEMORY ());" << endl;
-
- os << "::CIAO::Servant_Activator *sa =" << endl
- << " this->container_->ports_servant_activator ();" << endl
+
+ os << "ACE_NEW_THROW_EX ( " << endl
+ << " tmp," << endl
+ << " MACRO_MADNESS_TYPEDEF (" << endl
+ << " obj_id.c_str ()," << endl
+ << " \"" << c.name () << "\"," << endl
+ << " CIAO::Port_Activator::Sink," << endl
+ << " this->executor_.in ()," << endl
+ << " this->context_," << endl
+ << " this)," << endl
+ << " CORBA::NO_MEMORY ());" << endl;
+
+ os << "CIAO::Servant_Activator *sa = " << endl
+ << "this->container_->ports_servant_activator ();" <<endl
<< "if (!sa->register_port_activator (tmp))" << endl
<< "{"
<< "return ";
@@ -2367,45 +2869,40 @@ namespace
os << "::CORBA::Object_var obj =" << endl
<< " this->container_->generate_reference (" << endl
- << " obj_id.c_str ()," << endl
- << " ";
+ << " obj_id.c_str ()," << endl
+ << " ";
Traversal::ConsumerData::belongs (c, repo_id_belongs_);
os << "," << endl
- << " ::CIAO::Container::Facet_Consumer" << endl
- << " " << STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << " CIAO::Container::Facet_Consumer" << endl
+ << " " << STRS[ENV_ARG] << ");"
+ << STRS[ACE_CR] << " (";
Traversal::ConsumerData::belongs (c, belongs_);
os << "Consumer::_nil ());" << endl;
os << "::Components::EventConsumerBase_var ecb =" << endl
- << " ::Components::EventConsumerBase::_narrow (" << endl
- << " obj.in ()" << endl
- << " " << STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
-
- Traversal::ConsumerData::belongs (c, belongs_);
-
- os << "Consumer::_nil ());" << endl;
-
- os << "this->add_consumer (\"" << c.name () << "\"," << endl
- << "ecb.in ()" << endl
+ << "::Components::EventConsumerBase::_narrow (" << endl
+ << "obj.in ()" << endl
<< STRS[ENV_ARG] << ");"
- << STRS[ACE_CR] << " ( ";
+ << STRS[ACE_CR] << " (";
Traversal::ConsumerData::belongs (c, belongs_);
os << "Consumer::_nil ());" << endl;
+ os << "this->add_consumer (" << endl
+ << "\"" << c.name () << "\"," << endl
+ << "ecb.in ());" << endl;
+
os << "return ecb._retn ();" << endl
<< "}";
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
ConsumerRepoIdEmitter repo_id_emitter_;
Traversal::Belongs belongs_;
@@ -2421,9 +2918,8 @@ namespace
{
RegisterValueFactoryEmitter (Context& c)
: EmitterBase (c),
- c_ (cerr, c.export_macro (), c.cl ()),
- type_name_emitter_ (c),
- cerr_type_name_emitter_ (c_),
+ type_name_emitter_ (c.os ()),
+ cerr_type_name_emitter_ (cerr),
gen_factory_ (true)
{
belongs_.node_traverser (type_name_emitter_);
@@ -2455,14 +2951,14 @@ namespace
Traversal::Inherits inherits;
inherits.node_traverser (event_type_operations);
event_type_operations.edge_traverser (inherits);
-
+
Traversal::Defines include_inherit_defines;
- event_type_operations.edge_traverser (include_inherit_defines);
+ event_type_operations.edge_traverser (include_inherit_defines);
OperationExistsEmitter op_emitter (this);
include_inherit_defines.node_traverser (op_emitter);
-
+
Traversal::Supports supports;
- event_type_operations.edge_traverser (supports);
+ event_type_operations.edge_traverser (supports);
Traversal::Interface iface;
supports.node_traverser (iface);
inherits.node_traverser (iface);
@@ -2497,7 +2993,7 @@ namespace
<< "event type ";
Traversal::ConsumerData::belongs (c, cerr_belongs_);
-
+
cerr << " consumed by " << c.scoped_name () << endl
<< "has an operation, factory declaration,"
<< " or private member. "
@@ -2506,9 +3002,8 @@ namespace
}
private:
- Context c_;
- FullTypeNameEmitter type_name_emitter_;
- FullTypeNameEmitter cerr_type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
+ TypeNameEmitter cerr_type_name_emitter_;
Traversal::Belongs belongs_;
Traversal::Belongs cerr_belongs_;
bool gen_factory_;
@@ -2559,14 +3054,14 @@ namespace
private:
RegisterValueFactoryEmitter* r_;
};
-
+
struct PrivateExistsEmitter : Traversal::ValueTypePrivateMember
{
PrivateExistsEmitter (RegisterValueFactoryEmitter* r)
: r_ (r)
{
}
-
+
virtual void
traverse (Type&)
{
@@ -2593,8 +3088,8 @@ namespace
traverse (SemanticGraph::Provider& p)
{
os << "obj_var =" << endl
- << " this->provide_" << p.name () << "_i (" << endl
- << " " << STRS[ENV_SNGL_ARG] << ");"
+ << "this->provide_" << p.name () << "_i (" << endl
+ << STRS[ENV_SNGL_ARG] << ");"
<< "ACE_CHECK;" << endl;
}
@@ -2617,8 +3112,8 @@ namespace
traverse (SemanticGraph::Consumer& p)
{
os << "ecb_var =" << endl
- << " this->get_consumer_" << p.name () << "_i (" << endl
- << " " << STRS[ENV_SNGL_ARG] << ");"
+ << "this->get_consumer_" << p.name () << "_i (" << endl
+ << STRS[ENV_SNGL_ARG] << ");"
<< "ACE_CHECK;" << endl;
}
};
@@ -2635,232 +3130,14 @@ namespace
pre (SemanticGraph::ReadWriteAttribute& a)
{
Traversal::Belongs delegate_belongs;
-
- SetAttributeDelegationEmitter delegater (ctx, a);
+
+ SetAttributeDelegationEmitter delegater (ctx.os (), a);
delegate_belongs.node_traverser (delegater);
Traversal::ReadWriteAttribute::belongs (a, delegate_belongs);
}
};
- struct UsesSizeCalculator : Traversal::SingleUserData,
- Traversal::MultiUserData,
- EmitterBase
- {
- UsesSizeCalculator (Context& c, unsigned long& size)
- : EmitterBase (c),
- size_ (size)
- {
- }
-
- virtual void
- traverse (SemanticGraph::SingleUser&)
- {
- ++size_;
- }
-
- virtual void
- traverse (SemanticGraph::MultiUser&)
- {
- ++size_;
- }
-
- private:
- unsigned long& size_;
- };
-
- struct UsesGetAllEmitter : Traversal::SingleUserData,
- Traversal::MultiUserData,
- EmitterBase
- {
- UsesGetAllEmitter (Context& c)
- : EmitterBase (c),
- type_name_emitter_ (c),
- repo_id_emitter_ (c),
- slot_ (0UL)
- {
- belongs_.node_traverser (type_name_emitter_);
- repo_id_belongs_.node_traverser (repo_id_emitter_);
- }
-
- virtual void
- traverse (SemanticGraph::SingleUser& u)
- {
- os << "::CIAO::Servant_Impl_Base::describe_simplex_receptacle<"
- << endl
- << " ";
-
- Traversal::SingleUserData::belongs (u, belongs_);
-
- os << "_var" << endl
- << " > (\"" << u.name () << "\"," << endl;
-
- Traversal::SingleUserData::belongs (u, repo_id_belongs_);
-
- os << "," << endl
- << "this->context_->ciao_uses_" << u.name () << "_," << endl
- << "safe_retval," << endl
- << slot_ << "UL);" << endl;
-
- ++slot_;
- }
-
- virtual void
- traverse (SemanticGraph::MultiUser& u)
- {
- os << "::CIAO::Servant_Impl_Base::describe_multiplex_receptacle<"
- << endl
- << " ";
-
- Traversal::MultiUserData::belongs (u, belongs_);
-
- os << "_var" << endl
- << " > (\"" << u.name () << "\"," << endl;
-
- Traversal::MultiUserData::belongs (u, repo_id_belongs_);
-
- os << "," << endl
- << "this->context_->ciao_uses_" << u.name () << "_," << endl
- << "safe_retval," << endl
- << slot_ << "UL);" << endl;
-
- ++slot_;
- }
-
- private:
- FullTypeNameEmitter type_name_emitter_;
- RepoIdEmitter repo_id_emitter_;
- Traversal::Belongs belongs_;
- Traversal::Belongs repo_id_belongs_;
- unsigned long slot_;
- };
-
- struct PublishesSizeCalculator : Traversal::PublisherData,
- EmitterBase
- {
- PublishesSizeCalculator (Context& c, unsigned long& size)
- : EmitterBase (c),
- size_ (size)
- {
- }
-
- virtual void
- traverse (SemanticGraph::Publisher&)
- {
- ++size_;
- }
-
- private:
- unsigned long& size_;
- };
-
- struct PublishesGetAllEmitter : Traversal::PublisherData,
- EmitterBase
- {
- PublishesGetAllEmitter (Context& c)
- : EmitterBase (c),
- type_name_emitter_ (c),
- repo_id_emitter_ (c),
- slot_ (0UL)
- {
- belongs_.node_traverser (type_name_emitter_);
- repo_id_belongs_.node_traverser (repo_id_emitter_);
- }
-
- virtual void
- traverse (SemanticGraph::Publisher& p)
- {
- os << "::CIAO::Servant_Impl_Base::describe_pub_event_source<"
- << endl
- << " ";
-
- Traversal::PublisherData::belongs (p, belongs_);
-
- os << "Consumer_var" << endl
- << " > (\"" << p.name () << "\"," << endl;
-
- Traversal::PublisherData::belongs (p, repo_id_belongs_);
-
- os << "," << endl
- << "this->context_->ciao_publishes_" << p.name ()
- << "_map_," << endl
- << "safe_retval," << endl
- << slot_ << "UL);" << endl;
-
- ++slot_;
- }
-
- private:
- FullTypeNameEmitter type_name_emitter_;
- RepoIdEmitter repo_id_emitter_;
- Traversal::Belongs belongs_;
- Traversal::Belongs repo_id_belongs_;
- unsigned long slot_;
- };
-
- struct EmitsSizeCalculator : Traversal::EmitterData,
- EmitterBase
- {
- EmitsSizeCalculator (Context& c, unsigned long& size)
- : EmitterBase (c),
- size_ (size)
- {
- }
-
- virtual void
- traverse (SemanticGraph::Emitter&)
- {
- ++size_;
- }
-
- private:
- unsigned long& size_;
- };
-
- struct EmitsGetAllEmitter : Traversal::EmitterData,
- EmitterBase
- {
- EmitsGetAllEmitter (Context& c)
- : EmitterBase (c),
- type_name_emitter_ (c),
- repo_id_emitter_ (c),
- slot_ (0UL)
- {
- belongs_.node_traverser (type_name_emitter_);
- repo_id_belongs_.node_traverser (repo_id_emitter_);
- }
-
- virtual void
- traverse (SemanticGraph::Emitter& e)
- {
- os << "::CIAO::Servant_Impl_Base::describe_emit_event_source<"
- << endl
- << " ";
-
- Traversal::EmitterData::belongs (e, belongs_);
-
- os << "Consumer_var" << endl
- << " > (\"" << e.name () << "\"," << endl;
-
- Traversal::EmitterData::belongs (e, repo_id_belongs_);
-
- os << "," << endl
- << "this->context_->ciao_emits_" << e.name ()
- << "_consumer_," << endl
- << "safe_retval," << endl
- << slot_ << "UL);" << endl;
-
- ++slot_;
- }
-
- private:
- FullTypeNameEmitter type_name_emitter_;
- RepoIdEmitter repo_id_emitter_;
- Traversal::Belongs belongs_;
- Traversal::Belongs repo_id_belongs_;
- unsigned long slot_;
- };
-
public:
virtual void
pre (Type& t)
@@ -2882,7 +3159,7 @@ namespace
<< " comp_svnt_base (exe, h, hs, c)," << endl
<< " ins_name_ (ins_name)" << endl
<< "{"
- << "ACE_NEW ("
+ << "ACE_NEW (" << endl
<< "this->context_," << endl
<< t.name () << "_Context (h, c, this));" << endl;
@@ -2908,9 +3185,9 @@ namespace
os << "ACE_TRY_NEW_ENV" << endl
<< "{"
<< "::Components::SessionComponent_var scom =" << endl
- << " ::Components::SessionComponent::_narrow (" << endl
- << " exe" << endl
- << " " << STRS[ENV_ARG] << ");"
+ << "::Components::SessionComponent::_narrow (" << endl
+ << "exe" << endl
+ << STRS[ENV_ARG] << ");"
<< "ACE_TRY_CHECK;" << endl
<< "if (! ::CORBA::is_nil (scom.in ()))" << endl
<< "{"
@@ -2942,17 +3219,17 @@ namespace
<< STRS[ENV_SRC] << ")" << endl
<< "{"
<< "ACE_ENV_EMIT_CODE (ACE_UNUSED_ARG (ACE_TRY_ENV));" << endl;
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< "ACE_CHECK;" << endl;
}
-
- os << "for ( ::CORBA::ULong i = 0; i < descr.length (); ++i)" << endl
+
+ os << "for (CORBA::ULong i = 0; i < descr.length (); ++i)" << endl
<< "{"
<< "const char *descr_name = descr[i]->name ();"
<< "::CORBA::Any &descr_value = descr[i]->value ();" << endl;
@@ -3037,26 +3314,26 @@ namespace
<< "const char *name," << endl
<< "::CORBA::Object_ptr connection" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "," << endl
<< STRS[EXCP_AC] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "// If the component has no receptacles, this will be unused."
<< endl
<< STRS[ACE_UA] << " (connection);" << endl
<< "if (name == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IN] << " (), 0);" << endl
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);" << endl
<< "}";
// Generate IF block in connect operation for each receptacle.
@@ -3076,33 +3353,32 @@ namespace
component_emitter.traverse (t);
}
- os << STRS[ACE_TR] << " ( " << STRS[EXCP_IN] << " (), 0);" << endl
+ os << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);" << endl
<< "}";
- os << "::CORBA::Object_ptr" << endl
+ os << "CORBA::Object_ptr" << endl
<< t.name () << "_Servant::disconnect (" << endl
<< "const char *name," << endl
<< STRS[COMP_CK] << " * ck" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "," << endl
<< STRS[EXCP_CR] << "," << endl
<< STRS[EXCP_NC] << "))" << endl
- << "{"
- << STRS[ACE_UA] << " (ck);" << endl;
-
+ << "{";
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( ::CORBA::Object::_nil ());" << endl;
+ << STRS[ACE_CR] << " (CORBA::Object::_nil ());" << endl;
}
-
+
os << "if (name == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
- << STRS[EXCP_BP] << "," << endl
+ << STRS[ACE_TR] << " (" << endl
+ << STRS[EXCP_IN] << " ()," << endl
<< "::CORBA::Object::_nil ());" << endl
<< "}";
@@ -3123,61 +3399,10 @@ namespace
component_emitter.traverse (t);
}
- os << STRS[ACE_TR] << " ( "
+ os << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IN] << " ()," << endl
- << "::CORBA::Object::_nil ());"
- << "}";
-
- os << STRS[COMP_RD] << " *" << endl
- << t.name () << "_Servant::get_all_receptacles (" << endl
- << STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_SNGL] << endl
- << "{"
- << STRS[COMP_RD] << " *retval = 0;"
- << "ACE_NEW_RETURN (retval," << endl
- << STRS[COMP_RD] << "," << endl
- << "0);"
- << STRS[COMP_RD] << "_var safe_retval = retval;";
-
- unsigned long size = 0;
-
- // Calculate the number of uses ports.
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- UsesSizeCalculator size_calculator (ctx, size);
- defines.node_traverser (size_calculator);
-
- component_emitter.traverse (t);
- }
-
- os << "safe_retval->length (" << size << "UL);" << endl;
-
- // Generate a sequence element assignment for each uses port.
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- UsesGetAllEmitter get_all_emitter (ctx);
- defines.node_traverser (get_all_emitter);
-
- component_emitter.traverse (t);
- }
-
- os << "return safe_retval._retn ();"
+ << "::CORBA::Object::_nil ());" << endl
+ << STRS[ACE_UA] << " (ck);" << endl
<< "}";
// Generate generic operations for receptacles.
@@ -3203,22 +3428,22 @@ namespace
<< "const char * emitter_name," << endl
<< STRS[COMP_ECB] << "_ptr consumer" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_AC] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CK] << ";" << endl;
+ << "ACE_CHECK;" << endl;
}
-
+
os << "if (emitter_name == 0)" << endl
<< "{"
- << STRS[ACE_TH] << " ( " << STRS[EXCP_BP] << ");" << endl
+ << "ACE_THROW (::CORBA::BAD_PARAM ());" << endl
<< "}";
// Generate an IF block for each 'emits' declaration.
@@ -3232,185 +3457,40 @@ namespace
component_emitter.edge_traverser (defines);
component_emitter.edge_traverser (inherits);
- EmitsConnectEmitter emits_connect_emitter (ctx);
- defines.node_traverser (emits_connect_emitter);
+ NavigationEmitsEmitter navigation_emits_emitter (ctx);
+ defines.node_traverser (navigation_emits_emitter);
component_emitter.traverse (t);
}
os << STRS[ACE_UA] << " (consumer);"
- << STRS[ACE_TH] << " ( "
+ << "ACE_THROW ("
<< STRS[EXCP_IN] << " ());" << endl
<< "}";
- os << STRS[COMP_ECB] << "_ptr" << endl
- << t.name () << "_Servant::disconnect_consumer (" << endl
- << "const char *source_name" << endl
- << STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
- << STRS[EXCP_SYS] << "," << endl
- << STRS[EXCP_IN] << "," << endl
- << STRS[EXCP_NC] << "))" << endl
- << "{";
-
- if (swapping)
- {
- os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( "
- << STRS[COMP_ECB] << "::_nil ());" << endl;
- }
-
- os << "if (source_name == 0)" << endl
- << "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_BP] << "," << endl
- << STRS[COMP_ECB] << "::_nil ());" << endl
- << "}";
-
- // Generate an IF block for each 'emits' declaration.
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- EmitsDisconnectEmitter emits_disconnect_emitter (ctx);
- defines.node_traverser (emits_disconnect_emitter);
-
- component_emitter.traverse (t);
- }
-
- os << STRS[ACE_TR] << " ( "
- << STRS[EXCP_IN] << " ()," << endl
- << STRS[COMP_ECB] << "::_nil ());" << endl
- << "}";
-
- os << STRS[COMP_PD] << " *" << endl
- << t.name () << "_Servant::get_all_publishers (" << endl
- << STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_SNGL] << endl
- << "{"
- << STRS[COMP_PD] << " *retval = 0;"
- << "ACE_NEW_RETURN (retval," << endl
- << STRS[COMP_PD] << "," << endl
- << "0);"
- << STRS[COMP_PD] << "_var safe_retval = retval;";
-
- size = 0UL;
-
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- PublishesSizeCalculator publishes_size_calculator (ctx, size);
- defines.node_traverser (publishes_size_calculator);
-
- component_emitter.traverse (t);
- }
-
- os << "safe_retval->length (" << size << "UL);" << endl;
-
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- PublishesGetAllEmitter publishes_get_all_emitter (ctx);
- defines.node_traverser (publishes_get_all_emitter);
-
- component_emitter.traverse (t);
- }
-
- os << "return safe_retval._retn ();"
- << "}";
-
- os << STRS[COMP_ED] << " *" << endl
- << t.name () << "_Servant::get_all_emitters (" << endl
- << STRS[ENV_SNGL_SRC] << ")" << endl
- << STRS[EXCP_SNGL] << endl
- << "{"
- << STRS[COMP_ED] << " *retval = 0;"
- << "ACE_NEW_RETURN (retval," << endl
- << STRS[COMP_ED] << "," << endl
- << "0);"
- << STRS[COMP_ED] << "_var safe_retval = retval;";
-
- size = 0UL;
-
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- EmitsSizeCalculator emits_size_calculator (ctx, size);
- defines.node_traverser (emits_size_calculator);
-
- component_emitter.traverse (t);
- }
-
- os << "safe_retval->length (" << size << "UL);" << endl;
-
- {
- Traversal::Component component_emitter;
-
- Traversal::Inherits inherits;
- inherits.node_traverser (component_emitter);
-
- Traversal::Defines defines;
- component_emitter.edge_traverser (defines);
- component_emitter.edge_traverser (inherits);
-
- EmitsGetAllEmitter emits_get_all_emitter (ctx);
- defines.node_traverser (emits_get_all_emitter);
-
- component_emitter.traverse (t);
- }
-
- os << "return safe_retval._retn ();"
- << "}";
-
os << STRS[COMP_CK] << " *" << endl
<< t.name () << "_Servant::subscribe (" << endl
<< "const char *publisher_name," << endl
<< STRS[COMP_ECB] << "_ptr subscribe" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "// Just in case there are no if blocks" << endl
<< STRS[ACE_UA] << " (subscribe);" << endl
<< "if (publisher_name == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_IN] << " (), 0);"
+ << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);"
<< endl
<< "}";
@@ -3431,7 +3511,7 @@ namespace
component_emitter.traverse (t);
}
- os << STRS[ACE_TR] << " ( " << STRS[EXCP_IN] << " (), 0);" << endl
+ os << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);" << endl
<< "}";
os << STRS[COMP_ECB] << "_ptr" << endl
@@ -3440,24 +3520,24 @@ namespace
<< "const char *publisher_name," << endl
<< STRS[COMP_CK] << " *ck" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( " << STRS[COMP_ECB]
+ << STRS[ACE_CR] << " (" << STRS[COMP_ECB]
<< "::_nil ());" << endl;
}
-
+
os << "// Just in case there are no if blocks" << endl
<< STRS[ACE_UA] << " (ck);" << endl
<< "if (publisher_name == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( "
+ << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IN] << " ()," << endl
<< STRS[COMP_ECB] << "::_nil ());" << endl
<< "}";
@@ -3479,7 +3559,7 @@ namespace
component_emitter.traverse (t);
}
- os << STRS[ACE_TR] << " ( "
+ os << STRS[ACE_TR] << " (" << endl
<< STRS[EXCP_IN] << " ()," << endl
<< STRS[COMP_ECB] << "::_nil ());" << endl
<< "}";
@@ -3501,24 +3581,25 @@ namespace
component_emitter.traverse (t);
}
- os << "::CORBA::Object_ptr" << endl
+ os << "CORBA::Object_ptr" << endl
<< t.name ()
<< "_Servant::get_facet_executor (" << endl
<< "const char *name" << endl
<< STRS[ENV_SRC] << ")" << endl
- << STRS[EXCP_START] << " "
+ << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
- << STRS[ACE_CR] << " ( ::CORBA::Object::_nil ());" << endl;
+ << STRS[ACE_CR] << " (CORBA::Object::_nil ());" << endl;
}
-
+
os << "if (name == 0)" << endl
<< "{"
- << STRS[ACE_TR] << " ( " << STRS[EXCP_BP] << "," << endl
+ << STRS[ACE_TR] << " (" << endl
+ << "::CORBA::BAD_PARAM ()," << endl
<< "::CORBA::Object::_nil ());" << endl
<< "}";
@@ -3539,9 +3620,8 @@ namespace
component_emitter.traverse (t);
}
- os << "return ::CORBA::Object::_nil ();"
+ os << " return CORBA::Object::_nil ();"
<< "}";
-
os << "// Supported operations." << endl << endl;
// Generate operations for all supported interfaces.
@@ -3563,7 +3643,7 @@ namespace
interface_emitter.edge_traverser (defines);
interface_emitter.edge_traverser (interface_inherits);
- AttributeSourceEmitter<SemanticGraph::Component> attribute_emitter (ctx, t);
+ AttributeEmitter<SemanticGraph::Component> attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
OperationEmitter<SemanticGraph::Component> operation_emitter (ctx, t);
@@ -3577,15 +3657,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -3594,9 +3674,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -3617,7 +3697,7 @@ namespace
Traversal::Defines defines;
component_emitter.edge_traverser (defines);
- AttributeSourceEmitter<SemanticGraph::Component> attribute_emitter (ctx, t);
+ AttributeEmitter<SemanticGraph::Component> attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
component_emitter.traverse (t);
@@ -3659,8 +3739,8 @@ namespace
{
HomeEmitter (Context& c)
: EmitterBase (c),
- repo_id_emitter_ (c),
- flat_name_emitter_ (c)
+ repo_id_emitter_ (c.os ()),
+ flat_name_emitter_ (c.os ())
{
repo_id_manages_.node_traverser (repo_id_emitter_);
flat_name_manages_.node_traverser (flat_name_emitter_);
@@ -3706,7 +3786,7 @@ namespace
gen_swap_related (SemanticGraph::Operation&)
{
}
-
+
virtual void
traverse (SemanticGraph::HomeFactory&)
{
@@ -3724,10 +3804,10 @@ namespace
{
FactoryOperationEmitter (Context& c, SemanticGraph::Home& home)
: EmitterBase (c),
- return_type_name_emitter_ (c),
- enclosing_type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
- type_name_emitter_ (c),
+ return_type_name_emitter_ (c.os ()),
+ enclosing_type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
+ type_name_emitter_ (c.os ()),
scope_ (home)
{
returns_.node_traverser (return_type_name_emitter_);
@@ -3778,7 +3858,7 @@ namespace
virtual void
raises_pre (SemanticGraph::HomeFactory&)
{
- os << STRS[EXCP_START] << " "
+ os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
@@ -3814,7 +3894,7 @@ namespace
operation_emitter.traverse (hf);
}
- os << STRS[ACE_CR] << " ( ";
+ os << STRS[ACE_CR] << " (";
Traversal::Home::manages (scope_, manages_);
@@ -3838,7 +3918,7 @@ namespace
<< "_ciao_ec.in ()" << endl
<< STRS[ENV_ARG] << ");" << endl;
- os << STRS[ACE_CR] << " ( ";
+ os << STRS[ACE_CR] << " (";
Traversal::Home::manages (scope_, manages_);
@@ -3861,7 +3941,7 @@ namespace
ReturnTypeNameEmitter return_type_name_emitter_;
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
Traversal::Returns returns_;
Traversal::Manages enclosing_manages_;
Traversal::Manages simple_manages_;
@@ -3875,10 +3955,10 @@ namespace
{
FinderOperationEmitter (Context& c, SemanticGraph::Home& home)
: EmitterBase (c),
- type_name_emitter_ (c),
- return_type_name_emitter_ (c),
- enclosing_type_name_emitter_ (c),
- simple_type_name_emitter_ (c),
+ type_name_emitter_ (c.os ()),
+ return_type_name_emitter_ (c.os ()),
+ enclosing_type_name_emitter_ (c.os ()),
+ simple_type_name_emitter_ (c.os ()),
scope_ (home)
{
returns_.node_traverser (return_type_name_emitter_);
@@ -3929,7 +4009,7 @@ namespace
virtual void
raises_pre (SemanticGraph::HomeFinder&)
{
- os << STRS[EXCP_START] << " "
+ os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
@@ -3943,7 +4023,8 @@ namespace
post (SemanticGraph::HomeFinder& hf)
{
os << "{"
- << STRS[ACE_TR] << " ( ::CORBA::NO_IMPLEMENT ()," << endl;
+ << STRS[ACE_TR] << " (" << endl
+ << "::CORBA::NO_IMPLEMENT ()," << endl;
Traversal::HomeFinder::returns (hf, simple_returns_);
@@ -3958,7 +4039,7 @@ namespace
}
private:
- FullTypeNameEmitter type_name_emitter_;
+ TypeNameEmitter type_name_emitter_;
ReturnTypeNameEmitter return_type_name_emitter_;
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
@@ -3981,21 +4062,21 @@ namespace
<< "::CIAO::Session_Container *c)" << endl
<< " : ACE_NESTED_CLASS (CIAO, Home_Servant_Impl_Base (c))," << endl
<< " home_svnt_base (exe, c, ins_name";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
- {
+ {
os << ", \"" << ctx.composition_name ();
-
+
Traversal::Home::manages (t, flat_name_manages_);
-
+
os << "\", ";
-
+
Traversal::Home::manages (t, repo_id_manages_);
}
-
+
os << ")" << endl
<< "{"
<< "}";
@@ -4027,15 +4108,15 @@ namespace
home_operation_emitter.edge_traverser (returns);
home_operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -4044,9 +4125,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -4074,7 +4155,7 @@ namespace
interface_emitter.edge_traverser (defines);
interface_emitter.edge_traverser (interface_inherits);
- AttributeSourceEmitter<SemanticGraph::Home> attribute_emitter (ctx, t);
+ AttributeEmitter<SemanticGraph::Home> attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
OperationEmitter<SemanticGraph::Home> operation_emitter (ctx, t);
@@ -4088,15 +4169,15 @@ namespace
operation_emitter.edge_traverser (returns);
operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -4105,9 +4186,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -4142,15 +4223,15 @@ namespace
finder_operation_emitter.edge_traverser (returns);
finder_operation_emitter.edge_traverser (raises);
- ParameterEmitter<Traversal::InParameter> in_param (ctx);
- ParameterEmitter<Traversal::InOutParameter> inout_param (ctx);
- ParameterEmitter<Traversal::OutParameter> out_param (ctx);
+ ParameterEmitter<Traversal::InParameter> in_param (os);
+ ParameterEmitter<Traversal::InOutParameter> inout_param (os);
+ ParameterEmitter<Traversal::OutParameter> out_param (os);
receives.node_traverser (in_param);
receives.node_traverser (inout_param);
receives.node_traverser (out_param);
- ReturnTypeNameEmitter return_type_emitter (ctx);
- FullTypeNameEmitter type_name_emitter (ctx);
+ ReturnTypeNameEmitter return_type_emitter (os);
+ TypeNameEmitter type_name_emitter (os);
returns.node_traverser (return_type_emitter);
raises.node_traverser (type_name_emitter);
@@ -4159,9 +4240,9 @@ namespace
inout_param.edge_traverser (inout_belongs);
out_param.edge_traverser (out_belongs);
- INArgTypeNameEmitter in_arg_emitter (ctx);
- INOUTArgTypeNameEmitter inout_arg_emitter (ctx);
- OUTArgTypeNameEmitter out_arg_emitter (ctx);
+ INArgTypeNameEmitter in_arg_emitter (os);
+ INOUTArgTypeNameEmitter inout_arg_emitter (os);
+ OUTArgTypeNameEmitter out_arg_emitter (os);
in_belongs.node_traverser (in_arg_emitter);
inout_belongs.node_traverser (inout_arg_emitter);
out_belongs.node_traverser (out_arg_emitter);
@@ -4182,7 +4263,7 @@ namespace
Traversal::Defines defines;
home_emitter.edge_traverser (defines);
- AttributeSourceEmitter<SemanticGraph::Home> attribute_emitter (ctx, t);
+ AttributeEmitter<SemanticGraph::Home> attribute_emitter (ctx, t);
defines.node_traverser (attribute_emitter);
home_emitter.traverse (t);
@@ -4195,11 +4276,9 @@ namespace
os << "extern \"C\" " << ctx.export_macro ()
<< " ::PortableServer::Servant"
<< endl
- << "create"
- << regex::perl_s (t.scoped_name ().str (), "/::/_/")
- << "_Servant (" << endl
+ << "create" << t.name () << "_Servant (" << endl
<< "::Components::HomeExecutorBase_ptr p," << endl
- << "::CIAO::Session_Container *c," << endl
+ << "CIAO::Session_Container *c," << endl
<< "const char *ins_name" << endl
<< STRS[ENV_SRC] << ")" << endl
<< "{"
@@ -4233,6 +4312,30 @@ namespace
Traversal::Manages repo_id_manages_;
Traversal::Manages flat_name_manages_;
};
+
+ //@@ There is exactly the same code in header generator.
+ //
+ struct CompositionEmitter : Traversal::Composition, EmitterBase
+ {
+ CompositionEmitter (Context& c)
+ : EmitterBase (c)
+ {
+ }
+
+ virtual void
+ pre (Type& t)
+ {
+ ctx.composition_name (t.name ().str ());
+
+ os << STRS[CIDL_NS] << t.name () << "{";
+ }
+
+ virtual void
+ post (Type&)
+ {
+ os << "}";
+ }
+ };
}
ServantSourceEmitter::ServantSourceEmitter (std::ostream& os_,
@@ -4261,13 +4364,13 @@ ServantSourceEmitter::pre (TranslationUnit&)
"_svnt.h");
file_name = regex::perl_s (file_name,
- "/^(.+?)(\\.(idl|cidl|cdl))?$/$1"
+ "/(\\.(idl|cidl|cdl))?$/"
+ file_suffix
+ "/");
string swap_option = cl_.get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
os << "#include \"" << file_name << "\"" << endl
<< "#include \"Cookies.h\"" << endl
<< "#include \"ciao/Servant_Activator.h\"" << endl
@@ -4348,3 +4451,9 @@ ServantSourceEmitter::generate (TranslationUnit& u)
unit.traverse (u);
}
+/*
+ * Local Variables:
+ * mode: C++
+ * c-basic-offset: 2
+ * End:
+ */
diff --git a/TAO/CIAO/CIDLC/SizeTypeCalculator.cpp b/TAO/CIAO/CIDLC/SizeTypeCalculator.cpp
index 015053b956b..509f9a187bf 100644
--- a/TAO/CIAO/CIDLC/SizeTypeCalculator.cpp
+++ b/TAO/CIAO/CIDLC/SizeTypeCalculator.cpp
@@ -70,13 +70,9 @@ namespace
virtual void
traverse (SemanticGraph::Struct& s)
{
- std::string n (s.scoped_name ().str ());
if (s.context ().count (STRS[VAR_SIZE]))
{
- // Never set 'top' to false (except in pre() above),
- // so a 'true' value will propagate up the scopes.
- bool r = s.context ().get<bool> (STRS[VAR_SIZE]);
- if (r) top () = r;
+ top () = s.context ().get<bool> (STRS[VAR_SIZE]);
}
else
{
@@ -87,8 +83,13 @@ namespace
virtual void
post (SemanticGraph::Struct& s)
{
- // Set our context to the result of nested scope traversal.
- s.context ().set (STRS[VAR_SIZE], top ());
+ bool r (top ());
+
+ s.context ().set (STRS[VAR_SIZE], r);
+
+ pop ();
+
+ if (r) top () = r;
}
virtual void
@@ -102,10 +103,7 @@ namespace
{
if (u.context ().count (STRS[VAR_SIZE]))
{
- // Never set 'top' to false (except in pre() above),
- // so a 'true' value will propagate up the scopes.
- bool r = u.context ().get<bool> (STRS[VAR_SIZE]);
- if (r) top () = r;
+ top () = u.context ().get<bool> (STRS[VAR_SIZE]);
}
else
{
@@ -116,8 +114,13 @@ namespace
virtual void
post (SemanticGraph::Union& u)
{
- // Set our context to the result of nested scope traversal.
- u.context ().set (STRS[VAR_SIZE], top ());
+ bool r (top ());
+
+ u.context ().set (STRS[VAR_SIZE], r);
+
+ pop ();
+
+ if (r) top () = r;
}
private:
diff --git a/TAO/CIAO/CIDLC/TypeNameEmitter.cpp b/TAO/CIAO/CIDLC/TypeNameEmitter.cpp
new file mode 100644
index 00000000000..6c3d31ff69c
--- /dev/null
+++ b/TAO/CIAO/CIDLC/TypeNameEmitter.cpp
@@ -0,0 +1,1973 @@
+// file : CIDLC/TypeNameEmitter.cpp
+// author : Jeff Parsons <j.parsons@vanderbilt.edu>
+// cvs-id : $Id$
+
+#include "TypeNameEmitter.hpp"
+#include "Literals.hpp"
+
+#include <ostream>
+
+using namespace std;
+using namespace StringLiterals;
+
+TypeNameEmitter::TypeNameEmitter (ostream& os_)
+ : os (os_)
+{
+}
+
+void
+TypeNameEmitter::traverse (Void&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Boolean&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Octet&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Char&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Wchar&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Short&)
+{
+}
+
+void
+TypeNameEmitter::traverse (UnsignedShort&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Long&)
+{
+}
+
+void
+TypeNameEmitter::traverse (UnsignedLong&)
+{
+}
+
+void
+TypeNameEmitter::traverse (LongLong&)
+{
+}
+
+void
+TypeNameEmitter::traverse (UnsignedLongLong&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Float&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Double&)
+{
+}
+
+void
+TypeNameEmitter::traverse (String&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Wstring&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Object&)
+{
+}
+
+void
+TypeNameEmitter::traverse (ValueBase&)
+{
+}
+
+void
+TypeNameEmitter::traverse (Any&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::Enum&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::Struct&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::Union&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::UnboundedSequence&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::Interface&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::ValueType&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::EventType&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::Component&)
+{
+}
+
+void
+TypeNameEmitter::traverse (SemanticGraph::Home&)
+{
+}
+
+// ====================================================================
+
+ReturnTypeNameEmitter::ReturnTypeNameEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+ReturnTypeNameEmitter::traverse (Void&)
+{
+ os << "void";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Boolean&)
+{
+ os << "::CORBA::Boolean";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Octet&)
+{
+ os << "::CORBA::Octet";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Char&)
+{
+ os << "::CORBA::Char";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Wchar&)
+{
+ os << "::CORBA::WChar";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Short&)
+{
+ os << "::CORBA::Short";
+}
+
+void
+ReturnTypeNameEmitter::traverse (UnsignedShort&)
+{
+ os << "::CORBA::UShort";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Long&)
+{
+ os << "::CORBA::Long";
+}
+
+void
+ReturnTypeNameEmitter::traverse (UnsignedLong&)
+{
+ os << "::CORBA::ULong";
+}
+
+void
+ReturnTypeNameEmitter::traverse (LongLong&)
+{
+ os << "::CORBA::LongLong";
+}
+
+void
+ReturnTypeNameEmitter::traverse (UnsignedLongLong&)
+{
+ os << "::CORBA::ULongLong";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Float&)
+{
+ os << "::CORBA::Float";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Double&)
+{
+ os << "::CORBA::Double";
+}
+
+void
+ReturnTypeNameEmitter::traverse (String&)
+{
+ os << "char *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Wstring&)
+{
+ os << "::CORBA::WChar *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Object&)
+{
+ os << "::CORBA::Object_ptr";
+}
+
+void
+ReturnTypeNameEmitter::traverse (ValueBase&)
+{
+ os << "::CORBA::ValueBase *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (Any&)
+{
+ os << "::CORBA::Any *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name ();
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::Struct& s)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
+
+ os << s.scoped_name ();
+
+ if (var_size)
+ {
+ os << " *";
+ }
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::Union& u)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
+
+ os << u.scoped_name ();
+
+ if (var_size)
+ {
+ os << " *";
+ }
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
+{
+ os << s.scoped_name () << " *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << i.scoped_name () << "_ptr";
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
+{
+ os << v.scoped_name () << " *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::EventType& e)
+{
+ os << e.scoped_name () << " *";
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << c.scoped_name () << "_ptr";
+}
+
+void
+ReturnTypeNameEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << h.scoped_name () << "_ptr";
+}
+
+// ===============================================================
+
+INArgTypeNameEmitter::INArgTypeNameEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+INArgTypeNameEmitter::traverse (Boolean&)
+{
+ os << "::CORBA::Boolean";
+}
+
+void
+INArgTypeNameEmitter::traverse (Octet&)
+{
+ os << "::CORBA::Octet";
+}
+
+void
+INArgTypeNameEmitter::traverse (Char&)
+{
+ os << "::CORBA::Char";
+}
+
+void
+INArgTypeNameEmitter::traverse (Wchar&)
+{
+ os << "::CORBA::WChar";
+}
+
+void
+INArgTypeNameEmitter::traverse (Short&)
+{
+ os << "::CORBA::Short";
+}
+
+void
+INArgTypeNameEmitter::traverse (UnsignedShort&)
+{
+ os << "::CORBA::UShort";
+}
+
+void
+INArgTypeNameEmitter::traverse (Long&)
+{
+ os << "::CORBA::Long";
+}
+
+void
+INArgTypeNameEmitter::traverse (UnsignedLong&)
+{
+ os << "::CORBA::ULong";
+}
+
+void
+INArgTypeNameEmitter::traverse (LongLong&)
+{
+ os << "::CORBA::LongLong";
+}
+
+void
+INArgTypeNameEmitter::traverse (UnsignedLongLong&)
+{
+ os << "::CORBA::ULongLong";
+}
+
+void
+INArgTypeNameEmitter::traverse (Float&)
+{
+ os << "::CORBA::Float";
+}
+
+void
+INArgTypeNameEmitter::traverse (Double&)
+{
+ os << "::CORBA::Double";
+}
+
+void
+INArgTypeNameEmitter::traverse (String&)
+{
+ os << "const char *";
+}
+
+void
+INArgTypeNameEmitter::traverse (Wstring&)
+{
+ os << "const ::CORBA::WChar *";
+}
+
+void
+INArgTypeNameEmitter::traverse (Object&)
+{
+ os << "::CORBA::Object_ptr";
+}
+
+void
+INArgTypeNameEmitter::traverse (ValueBase&)
+{
+ os << "::CORBA::ValueBase *";
+}
+
+void
+INArgTypeNameEmitter::traverse (Any&)
+{
+ os << "const ::CORBA::Any &";
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name ();
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::Struct& s)
+{
+ os << "const " << s.scoped_name () << " &";;
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::Union& u)
+{
+ os << "const " << u.scoped_name () << " &";;
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
+{
+ os << "const " << s.scoped_name () << " &";;
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << i.scoped_name () << "_ptr";
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
+{
+ os << v.scoped_name () << " *";
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::EventType& e)
+{
+ os << e.scoped_name () << " *";
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << c.scoped_name () << "_ptr";
+}
+
+void
+INArgTypeNameEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << h.scoped_name () << "_ptr";
+}
+
+// ===============================================================
+
+INOUTArgTypeNameEmitter::INOUTArgTypeNameEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Boolean&)
+{
+ os << "::CORBA::Boolean &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Octet&)
+{
+ os << "::CORBA::Octet &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Char&)
+{
+ os << "::CORBA::Char &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Wchar&)
+{
+ os << "::CORBA::WChar &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Short&)
+{
+ os << "::CORBA::Short &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (UnsignedShort&)
+{
+ os << "::CORBA::UShort &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Long&)
+{
+ os << "::CORBA::Long &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (UnsignedLong&)
+{
+ os << "::CORBA::ULong &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (LongLong&)
+{
+ os << "::CORBA::LongLong &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (UnsignedLongLong&)
+{
+ os << "::CORBA::ULongLong &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Float&)
+{
+ os << "::CORBA::Float &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Double&)
+{
+ os << "::CORBA::Double &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (String&)
+{
+ os << "char *&";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Wstring&)
+{
+ os << "::CORBA::WChar *&";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Object&)
+{
+ os << "::CORBA::Object_ptr &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (ValueBase&)
+{
+ os << "::CORBA::ValueBase *&";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (Any&)
+{
+ os << "::CORBA::Any &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name () << " &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::Struct& s)
+{
+ os << s.scoped_name () << " &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::Union& u)
+{
+ os << u.scoped_name () << " &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
+{
+ os << s.scoped_name () << " &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << i.scoped_name () << "_ptr &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
+{
+ os << v.scoped_name () << " *&";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::EventType& e)
+{
+ os << e.scoped_name () << " *&";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << c.scoped_name () << "_ptr &";
+}
+
+void
+INOUTArgTypeNameEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << h.scoped_name () << "_ptr";
+}
+
+// =================================================================
+
+OUTArgTypeNameEmitter::OUTArgTypeNameEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Boolean&)
+{
+ os << "::CORBA::Boolean_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Octet&)
+{
+ os << "::CORBA::Octet_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Char&)
+{
+ os << "::CORBA::Char_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Wchar&)
+{
+ os << "::CORBA::WChar_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Short&)
+{
+ os << "::CORBA::Short_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (UnsignedShort&)
+{
+ os << "::CORBA::UShort_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Long&)
+{
+ os << "::CORBA::Long_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (UnsignedLong&)
+{
+ os << "::CORBA::ULong_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (LongLong&)
+{
+ os << "::CORBA::LongLong_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (UnsignedLongLong&)
+{
+ os << "::CORBA::ULongLong_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Float&)
+{
+ os << "::CORBA::Float_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Double&)
+{
+ os << "::CORBA::Double_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (String&)
+{
+ os << "::CORBA::String_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Wstring&)
+{
+ os << "::CORBA::WString_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Object&)
+{
+ os << "::CORBA::Object_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (ValueBase&)
+{
+ os << "::CORBA::ValueBase_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (Any&)
+{
+ os << "::CORBA::Any_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::Struct& s)
+{
+ os << s.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::Union& u)
+{
+ os << u.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::UnboundedSequence& s)
+{
+ os << s.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << i.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::ValueType& v)
+{
+ os << v.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::EventType& e)
+{
+ os << e.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << c.scoped_name () << "_out";
+}
+
+void
+OUTArgTypeNameEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << h.scoped_name () << "_ptr";
+}
+
+// ====================================================================
+
+NullReturnEmitter::NullReturnEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+NullReturnEmitter::traverse (Boolean&)
+{
+ os << "return false;";
+}
+
+void
+NullReturnEmitter::traverse (Octet&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Char&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Wchar&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Short&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (UnsignedShort&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Long&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (UnsignedLong&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (LongLong&)
+{
+ os << "return ACE_CDR_LONGLONG_INITIALIZER;";
+}
+
+void
+NullReturnEmitter::traverse (UnsignedLongLong&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Float&)
+{
+ os << "return 0.0f;";
+}
+
+void
+NullReturnEmitter::traverse (Double&)
+{
+ os << "return 0.0;";
+}
+
+void
+NullReturnEmitter::traverse (String&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Wstring&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Object&)
+{
+ os << "return ::CORBA::Object::_nil ();";
+}
+
+void
+NullReturnEmitter::traverse (ValueBase&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (Any&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name () << " retval;" << endl
+ << "return retval;";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::Struct& s)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (var_size)
+ {
+ os << "return 0;";
+ }
+ else
+ {
+ os << s.scoped_name () << " retval;" << endl
+ << "return retval;";
+ }
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::Union& u)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (var_size)
+ {
+ os << "return 0;";
+ }
+ else
+ {
+ os << u.scoped_name () << " retval;" << endl
+ << "return retval;";
+ }
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::UnboundedSequence&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << "return " << i.scoped_name () << "::_nil ();";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::ValueType&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::EventType&)
+{
+ os << "return 0;";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << "return " << c.scoped_name () << "::_nil ();";
+}
+
+void
+NullReturnEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << "return " << h.scoped_name () << "::_nil ();";
+}
+
+// ====================================================================
+
+AceCheckReturnEmitter::AceCheckReturnEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+AceCheckReturnEmitter::traverse (Void&)
+{
+ os << "ACE_CHECK;";
+}
+
+void
+AceCheckReturnEmitter::traverse (Boolean&)
+{
+ os << STRS[ACE_CR] << " (false);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Octet&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Char&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Wchar&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Short&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (UnsignedShort&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Long&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (UnsignedLong&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (LongLong&)
+{
+ os << STRS[ACE_CR] << " (ACE_CDR_LONGLONG_INITIALIZER);";
+}
+
+void
+AceCheckReturnEmitter::traverse (UnsignedLongLong&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Float&)
+{
+ os << STRS[ACE_CR] << " (0.0f);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Double&)
+{
+ os << STRS[ACE_CR] << " (0.0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (String&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Wstring&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Object&)
+{
+ os << STRS[ACE_CR] << " (::CORBA::Object::_nil ());";
+}
+
+void
+AceCheckReturnEmitter::traverse (ValueBase&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (Any&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name () << " retval;"
+ << STRS[ACE_UA] << " (retval);"
+ << STRS[ACE_CR] << " (retval);";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::Struct& s)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (var_size)
+ {
+ os << STRS[ACE_CR] << " (0);";
+ }
+ else
+ {
+ os << s.scoped_name () << " retval;"
+ << STRS[ACE_UA] << " (retval);"
+ << STRS[ACE_CR] << " (retval);";
+ }
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::Union& u)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (var_size)
+ {
+ os << STRS[ACE_CR] << " (0);";
+ }
+ else
+ {
+ os << u.scoped_name () << " retval;"
+ << STRS[ACE_UA] << " (retval);"
+ << STRS[ACE_CR] << " (retval);";
+ }
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::UnboundedSequence&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << STRS[ACE_CR] << " (" << i.scoped_name () << "::_nil ());";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::ValueType&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::EventType&)
+{
+ os << STRS[ACE_CR] << " (0);";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << STRS[ACE_CR] << " (" << c.scoped_name () << "::_nil ());";
+}
+
+void
+AceCheckReturnEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << STRS[ACE_CR] << " (" << h.scoped_name () << "::_nil ());";
+}
+
+// ====================================================================
+
+NullRHSEmitter::NullRHSEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+NullRHSEmitter::traverse (Boolean&)
+{
+ os << "= false;";
+}
+
+void
+NullRHSEmitter::traverse (Octet&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Char&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Wchar&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Short&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (UnsignedShort&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Long&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (UnsignedLong&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (LongLong&)
+{
+ os << "= ACE_CDR_LONGLONG_INITIALIZER;";
+}
+
+void
+NullRHSEmitter::traverse (UnsignedLongLong&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Float&)
+{
+ os << "= 0.0f;";
+}
+
+void
+NullRHSEmitter::traverse (Double&)
+{
+ os << "= 0.0;";
+}
+
+void
+NullRHSEmitter::traverse (String&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Wstring&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Object&)
+{
+ os << "= ::CORBA::Object::_nil ();";
+}
+
+void
+NullRHSEmitter::traverse (ValueBase&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (Any&)
+{
+ // This will hopefully work both if the lhs is a pointer (for example
+ // RetunrTypeNameEmitter) or not (for example INArgTypeNameEmitter).
+ os << ";";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::Enum&)
+{
+ os << ";";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::Struct& s)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (var_size)
+ {
+ os << "= 0;";
+ }
+ else
+ {
+ os << ";";
+ }
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::Union& u)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (var_size)
+ {
+ os << "= 0;";
+ }
+ else
+ {
+ os << ";";
+ }
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::UnboundedSequence&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << "= " << i.scoped_name () << "::_nil ();";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::ValueType&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::EventType&)
+{
+ os << "= 0;";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << "= " << c.scoped_name () << "::_nil ();";
+}
+
+void
+NullRHSEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << "= " << h.scoped_name () << "::_nil ();";
+}
+
+// ====================================================================
+
+ExtractedTypeDeclEmitter::ExtractedTypeDeclEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Boolean&)
+{
+ os << "::CORBA::Boolean " << STRS[EXTRACT_TMP] << " = false;"
+ << "::CORBA::Any::to_boolean " << STRS[EXTRACT]
+ << " (" << STRS[EXTRACT_TMP] << ");";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Octet&)
+{
+ os << "::CORBA::Octet " << STRS[EXTRACT_TMP] << " = 0;"
+ << "::CORBA::Any::to_octet " << STRS[EXTRACT]
+ << " (" << STRS[EXTRACT_TMP] << ");";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Char&)
+{
+ os << "::CORBA::Char " << STRS[EXTRACT_TMP] << " = 0;"
+ << "::CORBA::Any::to_char " << STRS[EXTRACT]
+ << " (" << STRS[EXTRACT_TMP] << ");";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Wchar&)
+{
+ os << "::CORBA::WChar " << STRS[EXTRACT_TMP] << " = 0;"
+ << "::CORBA::Any::to_wchar " << STRS[EXTRACT]
+ << " (" << STRS[EXTRACT_TMP] << ");";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Short&)
+{
+ os << "::CORBA::Short " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (UnsignedShort&)
+{
+ os << "::CORBA::UShort " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Long&)
+{
+ os << "::CORBA::Long " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (UnsignedLong&)
+{
+ os << "::CORBA::ULong " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (LongLong&)
+{
+ os << "::CORBA::LongLong " << STRS[EXTRACT]
+ << " = ACE_CDR_LONGLONG_INITIALIZER;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (UnsignedLongLong&)
+{
+ os << "::CORBA::ULongLong " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Float&)
+{
+ os << "::CORBA::Float " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Double&)
+{
+ os << "::CORBA::Double " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (String&)
+{
+ os << "const char * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Wstring&)
+{
+ os << "::CORBA::WChar * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Object&)
+{
+ os << "::CORBA::Object_ptr " << STRS[EXTRACT]
+ << " = ::CORBA::Object::_nil ();";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (ValueBase&)
+{
+ os << "::CORBA::ValueBase * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (Any&)
+{
+ os << "::CORBA::Any * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::Enum& e)
+{
+ os << e.scoped_name () << " " << STRS[EXTRACT] << ";";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::Struct& s)
+{
+ os << s.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::Union& u)
+{
+ os << u.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::UnboundedSequence& s)
+{
+ os << s.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::Interface& i)
+{
+ os << i.scoped_name () << "_ptr " << STRS[EXTRACT] << " = "
+ << i.scoped_name () << "::_nil ();";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::ValueType& v)
+{
+ os << v.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::EventType& e)
+{
+ os << e.scoped_name () << " * " << STRS[EXTRACT] << " = 0;";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::Component& c)
+{
+ os << c.scoped_name () << "_ptr " << STRS[EXTRACT] << " = "
+ << c.scoped_name () << "::_nil ();";
+}
+
+void
+ExtractedTypeDeclEmitter::traverse (SemanticGraph::Home& h)
+{
+ os << h.scoped_name () << "_ptr " << STRS[EXTRACT] << " = "
+ << h.scoped_name () << "::_nil ();";
+}
+
+// ====================================================================
+
+AssignFromExtractedEmitter::AssignFromExtractedEmitter (ostream& os_)
+ : TypeNameEmitter (os_)
+{
+}
+
+void
+AssignFromExtractedEmitter::traverse (Boolean&)
+{
+ os << STRS[EXTRACT] << ".ref_";
+}
+
+void
+AssignFromExtractedEmitter::traverse (Octet&)
+{
+ os << STRS[EXTRACT] << ".ref_";
+}
+
+void
+AssignFromExtractedEmitter::traverse (Char&)
+{
+ os << STRS[EXTRACT] << ".ref_";
+}
+
+void
+AssignFromExtractedEmitter::traverse (Wchar&)
+{
+ os << STRS[EXTRACT] << ".ref_";
+}
+
+void
+AssignFromExtractedEmitter::traverse (Short&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (UnsignedShort&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (Long&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (UnsignedLong&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (LongLong&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (UnsignedLongLong&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (Float&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (Double&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (String&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (Wstring&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (Object&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (ValueBase&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (Any&)
+{
+ os << "*" << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::Enum&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::Struct& s)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = s.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (!var_size)
+ {
+ os << "*";
+ }
+
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::Union& u)
+{
+ // This should always be in the context, since the SizeTypeCalculator
+ // is executed before the servant code generators.
+ bool var_size = u.context ().get<bool> (STRS[VAR_SIZE]);
+
+ if (!var_size)
+ {
+ os << "*";
+ }
+
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::UnboundedSequence&)
+{
+ os << "*" << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::Interface&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::ValueType&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::EventType&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::Component&)
+{
+ os << STRS[EXTRACT];
+}
+
+void
+AssignFromExtractedEmitter::traverse (SemanticGraph::Home&)
+{
+ os << STRS[EXTRACT];
+}
+
+// ====================================================================
+
+SetAttributeDelegationEmitter::SetAttributeDelegationEmitter (
+ ostream& os,
+ SemanticGraph::ReadWriteAttribute& a
+ )
+ : TypeNameEmitter (os),
+ attr_ (a),
+ assign_emitter_ (os),
+ extract_emitter_ (os)
+{
+ assign_belongs_.node_traverser (assign_emitter_);
+ extract_belongs_.node_traverser (extract_emitter_);
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Boolean&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Octet&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Char&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Wchar&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Short&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (UnsignedShort&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Long&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (UnsignedLong&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (LongLong&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (UnsignedLongLong&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Float&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Double&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (String&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Wstring&)
+{
+ emit_error ("wstring");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Object&)
+{
+ emit_error ("CORBA::Object");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (ValueBase&)
+{
+ emit_error ("CORBA::ValueBase");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (Any&)
+{
+ emit_error ("CORBA::Any");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::Enum&)
+{
+ emit_delegation ();
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::Struct& s)
+{
+ emit_error ("struct");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::Union& u)
+{
+ emit_error ("union");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::UnboundedSequence&)
+{
+ emit_error ("sequence");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::Interface&)
+{
+ emit_error ("interface");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::ValueType&)
+{
+ emit_error ("valuetype");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::EventType&)
+{
+ emit_error ("eventtype");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::Component&)
+{
+ emit_error ("component");
+}
+
+void
+SetAttributeDelegationEmitter::traverse (SemanticGraph::Home&)
+{
+ emit_error ("home");
+}
+
+void
+SetAttributeDelegationEmitter::emit_delegation (void)
+{
+ open_if_block ();
+
+ Traversal::ReadWriteAttribute::belongs (attr_, extract_belongs_);
+
+ os << "descr_value >>= " << STRS[EXTRACT] << ";"
+ << "this->" << attr_.name () << " (";
+
+ Traversal::ReadWriteAttribute::belongs (attr_, assign_belongs_);
+
+ os << ");";
+
+ close_if_block ();
+}
+
+void
+SetAttributeDelegationEmitter::emit_error (const char *corba_kind)
+{
+ open_if_block ();
+
+ os << "ACE_ERROR ((" << endl
+ << " LM_ERROR," << endl
+ << " \"Component attributes of " << corba_kind << "\"" << endl
+ << " \"IDL type are not yet supported by CIAO\\n\"" << endl
+ << " ));";
+
+ close_if_block ();
+}
+
+void
+SetAttributeDelegationEmitter::open_if_block (void)
+{
+ os << "if (ACE_OS::strcmp (descr_name, \""
+ << attr_.name () << "\") == 0)" << endl
+ << "{";
+}
+
+void
+SetAttributeDelegationEmitter::close_if_block (void)
+{
+ os << "continue;"
+ << "}";
+}
diff --git a/TAO/CIAO/CIDLC/TypeNameEmitter.hpp b/TAO/CIAO/CIDLC/TypeNameEmitter.hpp
new file mode 100644
index 00000000000..90ff4931e53
--- /dev/null
+++ b/TAO/CIAO/CIDLC/TypeNameEmitter.hpp
@@ -0,0 +1,458 @@
+// file : CIDLC/TypeNameEmitter.hpp
+// author : Jeff Parsons <j.parsons@vanderbilt.edu>
+// cvs-id : $Id$
+
+#ifndef TYPENAME_EMITTER_HPP
+#define TYPENAME_EMITTER_HPP
+
+#include "CCF/CIDL/SemanticGraph.hpp"
+#include "CCF/CIDL/Traversal.hpp"
+
+using namespace CCF::CIDL;
+using namespace CCF::CIDL::SemanticGraph;
+
+// Base class that holds the ostream member
+// common to every other class in this file,
+// and collects the ancestors in one place.
+//
+class TypeNameEmitter : public Traversal::Void,
+ public Traversal::Boolean,
+ public Traversal::Octet,
+ public Traversal::Char,
+ public Traversal::Wchar,
+ public Traversal::Short,
+ public Traversal::UnsignedShort,
+ public Traversal::Long,
+ public Traversal::UnsignedLong,
+ public Traversal::LongLong,
+ public Traversal::UnsignedLongLong,
+ public Traversal::Float,
+ public Traversal::Double,
+ public Traversal::String,
+ public Traversal::Wstring,
+ public Traversal::Object,
+ public Traversal::ValueBase,
+ public Traversal::Any,
+ public Traversal::Enum,
+ public Traversal::Struct,
+ public Traversal::Union,
+ public Traversal::UnboundedSequence,
+ public Traversal::Interface,
+ public Traversal::ValueType,
+ public Traversal::EventType,
+ public Traversal::Component,
+ public Traversal::Home
+{
+public:
+ virtual void traverse (Void&);
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+
+protected:
+ TypeNameEmitter (std::ostream&);
+
+ std::ostream& os;
+};
+
+// Generates the name of an operation's return type.
+//
+//
+class ReturnTypeNameEmitter : public TypeNameEmitter
+{
+public:
+ ReturnTypeNameEmitter (std::ostream&);
+
+ virtual void traverse (Void&);
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Generates the typename of an IN argument.
+//
+//
+class INArgTypeNameEmitter : public TypeNameEmitter
+{
+public:
+ INArgTypeNameEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Generates the typename of an INOUT argument.
+//
+//
+class INOUTArgTypeNameEmitter : public TypeNameEmitter
+{
+public:
+ INOUTArgTypeNameEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Generates the typename of an OUT argument.
+//
+//
+class OUTArgTypeNameEmitter : public TypeNameEmitter
+{
+public:
+ OUTArgTypeNameEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Generates 'return' plus the appropriate NULL return value,
+// including no output for Void.
+//
+//
+class NullReturnEmitter : public TypeNameEmitter
+{
+public:
+ NullReturnEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Generates 'return' plus the appropriate NULL return value,
+// including no output for Void.
+//
+//
+class AceCheckReturnEmitter : public TypeNameEmitter
+{
+public:
+ AceCheckReturnEmitter (std::ostream&);
+
+ virtual void traverse (Void&);
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Generates the appropriate NULL value, including the assignment operator,
+// if needed, for the rhs of an assignment statement.
+//
+//
+class NullRHSEmitter : public TypeNameEmitter
+{
+public:
+ NullRHSEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Declares and initializes a variable to use for any extraction.
+//
+//
+class ExtractedTypeDeclEmitter : public TypeNameEmitter
+{
+public:
+ ExtractedTypeDeclEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+// Declares and initializes a variable to use for any extraction.
+//
+//
+class AssignFromExtractedEmitter : public TypeNameEmitter
+{
+public:
+ AssignFromExtractedEmitter (std::ostream&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+};
+
+class SetAttributeDelegationEmitter : public TypeNameEmitter,
+ public Traversal::ReadWriteAttribute
+{
+public:
+ SetAttributeDelegationEmitter (std::ostream&,
+ SemanticGraph::ReadWriteAttribute&);
+
+ virtual void traverse (Boolean&);
+ virtual void traverse (Octet&);
+ virtual void traverse (Char&);
+ virtual void traverse (Wchar&);
+ virtual void traverse (Short&);
+ virtual void traverse (UnsignedShort&);
+ virtual void traverse (Long&);
+ virtual void traverse (UnsignedLong&);
+ virtual void traverse (LongLong&);
+ virtual void traverse (UnsignedLongLong&);
+ virtual void traverse (Float&);
+ virtual void traverse (Double&);
+ virtual void traverse (String&);
+ virtual void traverse (Wstring&);
+ virtual void traverse (Object&);
+ virtual void traverse (ValueBase&);
+ virtual void traverse (Any&);
+ virtual void traverse (SemanticGraph::Enum&);
+ virtual void traverse (SemanticGraph::Struct&);
+ virtual void traverse (SemanticGraph::Union&);
+ virtual void traverse (SemanticGraph::UnboundedSequence&);
+ virtual void traverse (SemanticGraph::Interface&);
+ virtual void traverse (SemanticGraph::ValueType&);
+ virtual void traverse (SemanticGraph::EventType&);
+ virtual void traverse (SemanticGraph::Component&);
+ virtual void traverse (SemanticGraph::Home&);
+
+private:
+ void emit_delegation (void);
+ void emit_error (const char *);
+ void open_if_block (void);
+ void close_if_block (void);
+
+private:
+ SemanticGraph::ReadWriteAttribute& attr_;
+ AssignFromExtractedEmitter assign_emitter_;
+ ExtractedTypeDeclEmitter extract_emitter_;
+ Traversal::Belongs assign_belongs_;
+ Traversal::Belongs extract_belongs_;
+};
+
+#endif /* TYPENAME_EMITTER_HPP */
diff --git a/TAO/CIAO/CIDLC/Upcase.hpp b/TAO/CIAO/CIDLC/Upcase.hpp
deleted file mode 100644
index cf114dd8392..00000000000
--- a/TAO/CIAO/CIDLC/Upcase.hpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// file : CIDLC/Upcase.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef UPCASE_HPP
-#define UPCASE_HPP
-
-#include <cctype>
-
-namespace
-{
- // On some platforms toupper can be something other than a
- // function.
- int
- upcase (int c)
- {
- return std::toupper (c);
- }
-}
-
-#endif // UPCASE_HPP
diff --git a/TAO/CIAO/CIDLC/UtilityTypeNameEmitters.cpp b/TAO/CIAO/CIDLC/UtilityTypeNameEmitters.cpp
deleted file mode 100644
index 499cf3e4086..00000000000
--- a/TAO/CIAO/CIDLC/UtilityTypeNameEmitters.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-// file : CIDLC/UtilityTypeNameEmitters.cpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "UtilityTypeNameEmitters.hpp"
-
-FullTypeNameEmitter::FullTypeNameEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-FullTypeNameEmitter::traverse (SemanticGraph::Type& t)
-{
- os << t.scoped_name ();
-}
-
-// ===================================================
-
-SimpleTypeNameEmitter::SimpleTypeNameEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-SimpleTypeNameEmitter::traverse (SemanticGraph::Type& t)
-{
- os << t.name ();
-}
-
-// ===================================================
-
-EnclosingTypeNameEmitter::EnclosingTypeNameEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-EnclosingTypeNameEmitter::traverse (SemanticGraph::Type& t)
-{
- os << t.scoped_name ().scope_name ();
-}
-
-// ===================================================
-
-StrippedTypeNameEmitter::StrippedTypeNameEmitter (Context& c)
- : EmitterBase (c)
-{
-}
-
-void
-StrippedTypeNameEmitter::traverse (SemanticGraph::Type& t)
-{
- ScopedName scoped (t.scoped_name ());
- os << Name (scoped.begin () + 1, scoped.end ());
-}
-
diff --git a/TAO/CIAO/CIDLC/UtilityTypeNameEmitters.hpp b/TAO/CIAO/CIDLC/UtilityTypeNameEmitters.hpp
deleted file mode 100644
index aece771ca69..00000000000
--- a/TAO/CIAO/CIDLC/UtilityTypeNameEmitters.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// file : CIDLC/UtilityTypeNameEmitters.hpp
-// author : Jeff Parsons <j.parsons@vanderbilt.edu>
-// cvs-id : $Id$
-
-#ifndef UTILITYTYPENAMEEMITTERS_HPP
-#define UTILITYTYPENAMEEMITTERS_HPP
-
-#include "CCF/CIDL/SemanticGraph.hpp"
-#include "CCF/CIDL/Traversal.hpp"
-#include "EmitterBase.hpp"
-
-using namespace std;
-using namespace CCF::CIDL;
-using namespace CCF::CIDL::SemanticGraph;
-
-// Emits type's full scoped name.
-struct FullTypeNameEmitter : Traversal::Type,
- EmitterBase
-{
- FullTypeNameEmitter (Context&);
-
- virtual void
- traverse (SemanticGraph::Type&);
-};
-
-// Emits type's local name.
-struct SimpleTypeNameEmitter : Traversal::Type,
- EmitterBase
-{
- SimpleTypeNameEmitter (Context&);
-
- virtual void
- traverse (SemanticGraph::Type&);
-};
-
-// Emits name of type's enclosing scope.
-struct EnclosingTypeNameEmitter : Traversal::Type,
- EmitterBase
-{
- EnclosingTypeNameEmitter (Context&);
-
- virtual void
- traverse (SemanticGraph::Type&);
-};
-
-// Emits scoped name minus the leading double colon.
-struct StrippedTypeNameEmitter : Traversal::Type,
- EmitterBase
-{
- StrippedTypeNameEmitter (Context&);
-
- virtual void
- traverse (SemanticGraph::Type&);
-};
-
-#endif // UTILITYTYPENAMEEMITTERS_HPP
diff --git a/TAO/CIAO/CIDLC/cidlc.cpp b/TAO/CIAO/CIDLC/cidlc.cpp
index 1afeb08b859..aea178da6a5 100644
--- a/TAO/CIAO/CIDLC/cidlc.cpp
+++ b/TAO/CIAO/CIDLC/cidlc.cpp
@@ -78,7 +78,7 @@ using namespace CCF::CIDL;
using namespace CCF::CIDL::SemanticGraph;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try
{
@@ -187,37 +187,7 @@ main (int argc, char* argv[])
: static_cast<std::istream&> (std::cin);
InputStreamAdapter isa (is);
-
-
- // Extract preprocessor symbol definitions (-D). We are not
- // interested in the values, just symbols.
- //
- CPP::Symbols symbols;
-
- for (CommandLine::OptionsIterator
- i (cl.options_begin ()), e (cl.options_end ()); i != e; ++i)
- {
- if (i->name () == "D")
- {
- std::string def (i->value ());
-
- // Get rid of '=value' in 'symbol=value' definitions.
- //
- std::size_t p (def.find ('='));
- if (p != std::string::npos)
- symbols.insert (std::string (def, 0, p));
- else
- symbols.insert (def);
- }
- else if (i->name ()[0] == 'D')
- {
- std::string opt (i->name ());
- std::string def (opt.begin () + 1, opt.end ());
- symbols.insert (def);
- }
- }
-
- CPP::Preprocessor pp (isa, symbols);
+ CPP::Preprocessor pp (isa);
if (cl.get_value ("preprocess-only", false))
{
@@ -262,7 +232,6 @@ main (int argc, char* argv[])
context.set ("file-path", file_path);
context.set ("trace-semantic-action",
cl.get_value ("trace-semantic-actions", false));
- context.set ("cpp-symbols", symbols);
// Extract include search paths.
@@ -273,29 +242,16 @@ main (int argc, char* argv[])
for (CommandLine::OptionsIterator
i (cl.options_begin ()), e (cl.options_end ()); i != e; ++i)
{
- std::string path;
-
if (i->name () == "I")
{
- path = i->value ();
+ include_paths.push_back (fs::path (i->value (), fs::native));
}
else if (i->name ()[0] == 'I')
{
std::string opt (i->name ());
- path = std::string (opt.begin () + 1, opt.end ());
- }
-
- try
- {
+ std::string path (opt.begin () + 1, opt.end ());
include_paths.push_back (fs::path (path, fs::native));
}
- catch (fs::filesystem_error const&)
- {
- cerr << "error: invalid filesystem path '" << path << "' "
- << "provided with the -I option" << endl;
-
- return 1;
- }
}
context.set ("include-search-paths", include_paths);
diff --git a/TAO/CIAO/COPYING b/TAO/CIAO/COPYING
index 35b26e8f8b7..41eecbf0fc3 100644
--- a/TAO/CIAO/COPYING
+++ b/TAO/CIAO/COPYING
@@ -8,11 +8,11 @@
referred to as "DOC software") are copyrighted by [5]Douglas C.
Schmidt and his [6]research group at [7]Washington University,
[8]University of California, Irvine, and [9]Vanderbilt University,
- Copyright (c) 1993-2006, all rights reserved. Since DOC software is
- open-source, freely available software, you are free to use, modify,
- copy, and distribute--perpetually and irrevocably--the DOC software
- source code and object code produced from the source, as well as copy
- and distribute modified versions of this software. You must, however,
+ Copyright (c) 1993-2005, all rights reserved. Since DOC software is
+ open-source, free software, you are free to use, modify, copy, and
+ distribute--perpetually and irrevocably--the DOC software source code
+ and object code produced from the source, as well as copy and
+ distribute modified versions of this software. You must, however,
include this copyright statement along with code built using DOC
software.
@@ -67,16 +67,9 @@
the part of Washington University, UC Irvine, Vanderbilt University,
their employees, or students to assist in its use, correction,
modification, or enhancement. A [19]number of companies around the
- world provide commercial support for DOC software, however.
-
- DOC software is Y2K-compliant, as long as the underlying OS platform
- is Y2K-compliant. Likewise, DOC software is compliant with the new US
- daylight savings rule passed by Congress as "The Energy Policy Act of
- 2005," which established new daylight savings times (DST) rules for
- the United States that expand DST as of March 2007. Since DOC software
- obtains time/date and calendaring information from operating systems
- users will not be affected by the new DST rules as long as they
- upgrade their operating systems accordingly.
+ world provide commercial support for DOC software, however. DOC
+ software is Y2K-compliant, as long as the underlying OS platform is
+ Y2K-compliant.
The names ACE(TM), TAO(TM), CIAO(TM), CoSMIC(TM), Washington
University, UC Irvine, and Vanderbilt University, may not be used to
diff --git a/TAO/CIAO/ChangeLog b/TAO/CIAO/ChangeLog
index 4386196a112..b32f54ab9f7 100644
--- a/TAO/CIAO/ChangeLog
+++ b/TAO/CIAO/ChangeLog
@@ -1,3340 +1,35 @@
-Fri Apr 14 14:50:47 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * examples/BasicSP/BMClosedED/BMClosedED.mpc:
- * examples/BasicSP/BMDisplay/BMDisplay.mpc:
- * examples/Display/GPS/GPS.mpc:
- * examples/Display/RateGen/RateGen.mpc:
- * examples/Hello/Sender/Sender.mpc:
- * examples/Swapping/Sender/Sender.mpc:
- * performance-tests/Benchmark/RoundTrip/RoundTrip.mpc:
- * tests/CIDL/CodeGen/CodeGen.mpc:
- * tests/Minimum/Receiver/Receiver.mpc:
-
- Avoids building with ace_for_tao.
-
-Thu Apr 13 19:18:22 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * docs/tutorials/Quoter/Simple/Broker/Broker.mpc:
- * docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc:
- * examples/BasicSP/BMDevice/BMDevice.mpc:
- * examples/BasicSP/EC/EC.mpc:
- * examples/Display/NavDisplay/NavDisplay.mpc:
- * examples/Hello/Receiver/Receiver.mpc:
- * examples/Swapping/Receiver/Receiver.mpc:
- * performance-tests/Benchmark/Benchmark.mpc:
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc:
- * tests/Minimum/Sender/Sender.mpc:
-
- Avoids building with ace_for_tao.
-
-Apr Thu 13 03:32:35 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_Events.idl
-
- Removed this file.
-
- * ciaosvcs/Events/CIAO_Events.mpc
-
- Modified to put an empty segment of IDL_Files.
-
-Wed Apr 12 17:51:03 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * NEWS
-
- Updated the NEWS file.
-
-Wed Apr 12 14:47:14 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeApplication/NodeApplication.mpc
- * DAnCE/NodeManager/Monitor.mpc
- * DAnCE/NodeManager/NodeManager.mpc
- * DAnCE/StaticConfigurator/StaticDAnCEParser.mpc
- * DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
- * ciaosvcs/Events/CIAO_Events.mpc
-
- Fixes for linking errors/warnings on OS X builds.
-
-Tue Apr 11 12:39:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tools/Config_Handlers/Utils/Utils.mpc:
- Use exceptions as base project
-
-Tue Apr 11 12:43:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Container_Base.cpp:
- Small simplification
-
-Tue Apr 11 12:22:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc:
- * tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc:
- Updated base projects to get correct build order
-
-Tue Apr 11 08:43:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp:
- Initialise pointers with 0
-
-Tue Apr 11 06:54:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Minimum/Minimum_Base/Minimum.mpc:
- * tests/IDL3/Lookup/lookup_test.mpc:
- * tests/IDL3/ImpliedIDL/Homes/Homes.mpc:
- * tests/IDL3/ImpliedIDL/Events/Events.mpc:
- * tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc:
- * tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc:
- * tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc:
- * tests/IDL3/Homes/Inheritance/Inheritance.mpc:
- * tests/IDL3/Homes/Finder/Finder.mpc:
- * tests/IDL3/Homes/Factory/Factory.mpc:
- * tests/IDL3/Homes/Basic/Basic.mpc:
- * tests/IDL3/Homes/Attributes/HomeAttributes.mpc:
- * tests/IDL3/Events/Regular/Regular.mpc:
- * tests/IDL3/Events/Abstract/Abstract.mpc:
- * tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc:
- * tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc:
- * tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc:
- * tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc:
- * tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc:
- * tests/CIDL/CodeGen/CodeGen.mpc:
- * tests/Bug_2130_Regression/interfaces/ENW.mpc:
- * performance-tests/Protocols/common/Protocols.mpc:
- * examples/Swapping/Hello_Base/Hello_Base.mpc:
- * examples/Hello/Hello_Base/Hello_Base.mpc:
- * examples/Display/HUDisplay.mpc:
- * examples/BasicSP/BasicSP.mpc:
- * docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc:
- Updated base projects to get correct build order
-
-Tue Apr 11 06:35:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers.mpc:
- Use base projects to set dependencies
-
-Mon Apr 10 18:48:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplication/NodeApplication.mpc:
- Fixed base project
-
-Mon Apr 10 14:29:13 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp
-
- Modified to make _narrow to be called at the first step
- when connecting supplier and config. Also modified to
- make debug statements debug_level controlled.
-
-Mon Apr 10 12:31:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/CCM_Core.mpc:
- Removed commented out line
-
- * DAnCE/ExecutionManager/ExecutionManager.mpc:
- * DAnCE/NodeApplication/NodeApplication.mpc:
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc:
- * DAnCE/NodeManager/NodeManager.mpc:
- * DAnCE/StaticConfigurator/StaticDAnCEParser.mpc:
- Updated base projects
-
-Mon Apr 10 11:51:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc:
- Readded ciao_container_dnc
-
- * ciao/CCM_Core.mpc:
- Use more base projects
-
- * DAnCE/Interfaces/Interfaces.mpc:
- * DAnCE/ExecutionManager/ExecutionManager.mpc:
- Use other base projects to get correct build order
-
-Mon Apr 10 10:00:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc:
- Removed ciao_container_dnc
-
-Mon Apr 10 09:38:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_Events.mpc:
- Use ciao_rtevent_dnc as base
-
-Mon Apr 10 09:18:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc:
- * ciaosvcs/Events/CIAO_Events.mpc:
- Use ciao_events_base_dnc as base project
-
-Mon Apr 10 09:15:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/CCM_Core.mpc:
- For Deployment_Stub use ciao_events_base_dnc and ciao_client_dnc
- as base projects
-
-Mon Apr 10 08:50:14 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_Events.mpc:
- Removed ciao_events_dnc as base project, we are building
- this lib right now
-
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc:
- Use base projects instead of libs
-
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc:
- Remvoed ciao_events_dnc
-
-Sat Apr 8 15:39:14 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc
-
- Fixed a linking error in SuSE_CP_Static build.
-
-Fri Apr 7 04:09:33 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
-
- Fixed a bug in detecting External connection and Internal
- connections. Earlier when an external component is detected,
- not *all* connections associated with this components are
- purged from the to-be-removed connections list. Added another
- helper method <purge_connections> to accomplish this task.
-
- Modified to enforce passivation occured on all components
- before any connections are removed.
-
-Fri Apr 7 03:55:46 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Fixed a bug when redeploying components using the same set
- of NodeManagers. Earlier when destroying applications or
- components, internal components and external/shared components
- are not all unbinded from the map, which causes duplicate
- instance exception thrown.
-
-Thu Apr 6 16:01:30 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CCF/CCF/CompilerElements/TokenStream.hpp:
-
- Added empty virtual destructor to template base class, to
- eliminate bogus GCC warnings.
-
-Thu Apr 6 15:22:31 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_Events.mpc
-
- Fixed linking errors on WinXP_BCB6_Pro_Dynamic_Release build.
-
- * examples/Hello/descriptors_shared_components/deploymentplan.cdp
- * examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp
-
- Modified to illustrate the shared components scenario.
-
-Thu Apr 6 14:54:59 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_EventService_Factory_impl.h
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h
-
- Some cosmestic changes.
-
-Thu Apr 6 08:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/CCM_Component.idl:
- Removed the forward declaration of IRObject and just include
- ciao/CCM_Component.idl. The forward declaration is causing
- problems with the versioned namespace support, will investigate
- this later
-
-Wed Apr 5 20:57:32 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp
-
- Make debug statement debug_level controlled.
-
-Wed Apr 5 18:49:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp:
- Fixed compile errors
-
-Wed Apr 5 13:18:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h:
- Fixed pragma once warning
-
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp:
- Fixed conversion warning
-
-Wed Apr 5 12:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tools/Config_Handlers/Basic_Deployment_Data.hpp:
- Fixed compile errors
-
-Tue Apr 4 18:11:37 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_EventService_Factory_impl.cpp
- * ciaosvcs/Events/CIAO_EventService_Factory_impl.h
-
- Fixed an warning in WinXP_BCB6_Pro_Dynamic_Debug build
- by modifying the name of the original "init" method.
-
-Tue Apr 4 17:27:52 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * tools/Config_Handlers/CIAO_Events/test.cpp
-
- Fixed an warning.
-
-Mon Apr 3 20:00:11 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/Literals.hpp:
- * CIDLC/Literals.cpp:
-
- Changed an enum value 'SIZE' to 'LIT_SIZE' to avoid an
- apparent conflict with something in WinDef.h on
- Windows.
-
-Thu Mar 30 18:28:32 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciao/Deployment_Events.idl
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.cpp
-
- Fixed fuzz errors.
-
-Thu Mar 30 17:16:17 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_Direct/*
-
- Removed all files under this directory since they are
- no longer used.
-
-Thu Mar 30 17:23:12 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tools/Config_Handlers/Config_Handlers.mpc
-
- Added link dependency to CIAO_Events_Handler project.
-
-Thu Mar 30 16:38:25 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * CIAO_DAnCE.mwc
- * CIAO_TAO.mwc
- * CIAO_TAO_DAnCE.mwc
-
- Added "ciaosvcs" into the workspace.
-
- * ciao/CCM_Core.mpc
- * ciao/CCM_Event.idl
- * ciao/Container_Base.cpp
- * ciao/Container_Base.h
- * ciao/Deployment_Core.idl
- * ciao/Deployment_Data.idl
- * ciao/Deployment_Events.idl
-
- Added an "CIAO_DnC_Events" project. Enhanced Deployment_Core.idl
- to support configuring and deploying pub/sub services.
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
- * DAnCE/NodeApplication/NodeApplication_Impl.h
- * DAnCE/NodeApplication/NodeApplication_Impl.inl
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Enhanced DAnCE to support pub/sub services integration.
-
- * ciaosvcs/Events/CIAO_EventService_Factory_impl.cpp
- * ciaosvcs/Events/CIAO_EventService_Factory_impl.h
- * ciaosvcs/Events/CIAO_Events.idl
- * ciaosvcs/Events/CIAO_Events.mpc
- * ciaosvcs/Events/CIAO_Events_Export.h
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.cpp
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.h
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.idl
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent_Export.h
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.cpp
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc
- * ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Export.h
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEVENT_Export.h
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.idl
- * ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc
-
- Added CIAO_Event_Service support, which are some reusable
- libraries and CORBA services that could be configured and
- installed on demand through the DAnCE toolchain.
-
- * docs/schema/Basic_Deployment_Data.xsd
- * docs/schema/CIAOEvents.xsd
- * docs/schema/cdp.xsd
-
- Enhanced XML schema to capture metadata information for
- configuring and deploying pub/sub services.
-
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/CPD_Handler.cpp
- * tools/Config_Handlers/Config_Handlers.mpc
- * tools/Config_Handlers/DP_Handler.cpp
- * tools/Config_Handlers/ESD_Handler.cpp
- * tools/Config_Handlers/ESD_Handler.h
- * tools/Config_Handlers/PSPE_Handler.cpp
- * tools/Config_Handlers/CIAO_Events/CIAOEvents.cpp
- * tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp
- * tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.cpp
- * tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.h
- * tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers.mpc
- * tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers_Export.h
- * tools/Config_Handlers/CIAO_Events/test.cpp
-
- Added config handler support to accomodate the above changes.
-
- * examples/Hello/descriptors_events/ciao-events-example-with-filters.ced
- * examples/Hello/descriptors_events/ciao-events-example.ced
- * examples/Hello/descriptors_events/flattened_deploymentplan_events.cdp
- * examples/Hello/descriptors_events/flattened_deploymentplan_with_filters.cdp
-
- Added several examples to showcase the capability of CIAO
- pub/sub services.
-
-Thu Mar 30 14:43:46 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/AttributeSourceEmitters_T.hpp:
-
- Added 'using namespace StringLiterals;' to this file. Thanks
- to Nanbor Wang <nanbor@txcorp.com> for pointing out that
- this line is also necessary on some platforms, in addition
- to the change of
-
- Wed Mar 29 20:29:40 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
-Wed Mar 29 20:29:40 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/AttributeSourceEmitters_T.hpp:
-
- Added #include of Literals.hpp. Some platforms are picking up
- the declarations in this file without the explicit include,
- others are not.
-
-Wed Mar 29 19:52:54 UTC 2006 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * examples/Hello/descriptors_RTCCM/rt-config-example.csr:
- Updated <cmdline> and <svcconf> element with more realistic
- values.
-
-Wed Mar 29 04:40:58 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Added the functionality to honor command line arguments
- and service configuration file options defined through
- RT-CCM descriptors.
-
-Mon Mar 27 19:56:51 UTC 2006 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/NodeApplication.cpp (main): Added code to
- print out commandline options of the NodeApplicaion. The print
- out is available for CIAO_DEBUG_LEVEL > 9.
-
- * DAnCE/NodeApplication/Configuration_Factory.h:
- * DAnCE/NodeApplication/Configuration_Factory.cpp: Changed
- parse_args function to pass "argc" as reference to be consistent
- with Arg_Shifter's signature.
-
- Double-check the "-o" flag first with exact string comparison
- before extracting the parameter to avoid mistaking any of the
- "-ORBxxx" command line flags as the "-o" flag. Thanks to Sandro
- Andrade <sandro @dcc.ufba.br> for reporting the bug.
-
-Mon Mar 20 22:35:47 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * ciao/Servant_Impl_Utils_T.cpp:
-
- - Added 'typename' qualifier when declaring instances
- of an iterator for a templatized hash map, since gcc
- reminds us that leaving the compiler to implicitly
- determine if the scoped name denotes a member or a
- type is deprecated.
-
- - Added an #include of Cookies.h, which is need by compilers
- that don't require the template sourced to be included in
- the header file.
-
-Sun Mar 19 20:37:47 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/TypeNameEmitter.cpp:
- * CIDLC/TypeNameEmitter.hpp:
-
- Removed these files, their former contents are now divided
- between CorbaTypenameEmitters.{hpp,cpp} and
- UtilityTypeNameEmitters.{hpp,cpp}.
-
-Fri Mar 17 14:23:53 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * ciao/CCM_Core.mpc:
- * ciao/Servant_Impl_Base.cpp:
- * ciao/Servant_Impl_Base.h
-
- - Changed port table types from
- ACE_Hash_Map_Manager_Ex<> to ACE_Array_Map<>,
- which is more lightweight and makes no
- allocations if no entries are added to
- the table.
-
- - Implemented spec-defined methods
- get_all_receptacles(), get_all_publishers(),
- and disconnect_consumer().
-
- * ciao/Servant_Impl_Utils_T.cpp:
-
- New file, containing implementations of new
- static template methods added to class
- Servant_Impl_Base, which are called in
- generated code as part of the implementation
- of the spec-defined methods mentioned above.
-
- * CIDLC/AttributeHeaderEmitters.cpp:
- * CIDLC/AttributeHeaderEmitters.hpp:
- * CIDLC/AttributeSourceEmitters_T.hpp:
- * CIDLC/CompositionEmitter.cpp:
- * CIDLC/CompositionEmitter.hpp:
- * CIDLC/CorbaTypeNameEmitters.cpp:
- * CIDLC/CorbaTypeNameEmitters.hpp:
- * CIDLC/EmitterBase.cpp:
- * CIDLC/EmitterBase.hpp:
- * CIDLC/EmitterContext.cpp:
- * CIDLC/EmitterContext.hpp:
- * CIDLC/InterfaceEmitter.cpp:
- * CIDLC/InterfaceEmitter.hpp:
- * CIDLC/ModuleEmitter.cpp:
- * CIDLC/ModuleEmitter.hpp:
- * CIDLC/OperationHeaderEmitters.cpp:
- * CIDLC/OperationHeaderEmitters.hpp:
- * CIDLC/ParameterEmitter_T.hpp:
- * CIDLC/Upcase.hpp:
- * CIDLC/UtilityTypeNameEmitters.cpp:
- * CIDLC/UtilityTypeNameEmitters.hpp:
-
- New files, containing common code factored
- out of the C++ source files below.
-
- * CIDLC/CIDLC.mpc:
- * CIDLC/DescriptorGenerator.cpp:
- * CIDLC/ExecImplHeaderGenerator.cpp:
- * CIDLC/ExecImplSourceGenerator.cpp:
- * CIDLC/ExecutorMappingGenerator.cpp:
- * CIDLC/Literals.cpp:
- * CIDLC/Literals.hpp:
- * CIDLC/ServantHeaderGenerator.cpp:
- * CIDLC/ServantSourceGenerator.cpp:
-
- - Added new generated code as part of the
- implementation of the spec-defined methods
- mentioned above.
-
- - Added support for attribute exceptions in
- code optionally generated for the stencil
- executor implementation classes.
-
-Thu Mar 16 16:31:51 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * ciao/CCM_Component.idl:
-
- Added "omg.org" prefix to the recently added opening of the
- CORBA module in this file.
-
-Tue Mar 14 10:10:58 UTC 2006 Nilabja Roy <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/MonitorController.h:
- Reverting back to previous version to avoid conflicts
-
-Tue Mar 14 09:46:25 UTC 2006 Nilabja Roy <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/MonitorController.cpp:
- Reverting back to previous version. Mistakenly added conflicted version.
-
-Thu Mar 9 09:18:58 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * COPYING: Updated the date to include 2006.
- Thanks to Alan Kierstead <ackierstead at fedex dot com> for
- motivating the fix to this oversight.
-
-Thu Mar 09 08:55:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/Interfaces/ExecutionManagerDaemon.idl:
- * DAnCE/Interfaces/NodeManagerDaemon.idl:
- New idl files, these are the same as there are now in the directory
- but then just renamed to match the interfaces in these files and
- then don't conflict with the ones I created in ciao.
-
- * DAnCE/Interfaces/ExecutionManager.idl:
- * DAnCE/Interfaces/NodeManager.idl:
- Removed, file names where not correct and now conflict with files in
- the ciao directory
-
- * DAnCE/Interfaces/Interfaces.mpc:
- Updated because of file renames
-
- * ciao/CCM_Base.idl:
- Removed old comment
-
- * ciao/CCM_Component.idl:
- Forward declare CORBA::IRObject instead of including the IFR_Client
- idl file
-
- * ciao/Deployment_Base.idl:
- Removed not needed include
-
- * ciao/Dynamic_Component_Activator.h:
- Reordered includes
-
- * ciao/Swapping_Servant_Home_Impl_Base.h:
- * ciao/Upgradeable_Context_Impl_T.h:
- * ciao/Swapping_Servant_Home_Impl_T.h:
- * ciao/Swapping_Servant_Home_Impl_T.cpp:
- Added ciao/ as prefix for the includes
-
- * ciao/Upgradeable_Context_Impl_T.h:
- Added private default constructor
-
- * ciao/Deployment.idl:
- * ciao/DomainApplicationManager.idl:
- * ciao/ExecutionManager.idl:
- * ciao/NodeApplication_Callback.idl:
- * ciao/NodeApplicationManager.idl:
- * ciao/NodeManager.idl:
- * ciao/RepositoryManager.idl:
- * ciao/CCM_Core.mpc:
- Splitted Deployment.idl in multiple files so that the linker
- can decide not to link in a set of object files we don't need.
- This will reduce footprint for several applications
-
- * DAnCE/DomainApplicationManager/Deployment_Configuration.h:
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h:
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h:
- * DAnCE/ExecutionManager/DAM_Map.cpp:
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h:
- * DAnCE/NodeManager/NodeManager_Impl.h:
- * DAnCE/NodeManager/Node_Manager.cpp:
- * DAnCE/NodeManager/NodeManager.mpc:
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.{h.cpp}:
- * DAnCE/TargetManager/Deployment_Configuration.h:
- Updated for the idl subsetting of ciao/Deployment.idl. Also add ciao/
- prefix to several includes and try to cleanup a little.
-
- * DAnCE/RepositoryManager/RepositoryManager.idl:
- * DAnCE/RepositoryManager/RepositoryManagerDaemon.idl:
- Renamed the first file to the second, matches the interface name.
-
- * DAnCE/RepositoryManager/RepositoryManager.mpc:
- * DAnCE/RepositoryManager/RMadmin.cpp:
- * DAnCE/RepositoryManager/PC_Updater.{h,cpp}:
- * DAnCE/RepositoryManager/RepositoryManager_Impl.h:
- * DAnCE/RepositoryManager/RepositoryManager.cpp:
- Updated because of rename above
-
- * DAnCE/RTNodeApplication/senv.sh:
- Removed this file, no need here.
-
- * DAnCE/RTNodeApplication/NodeApplication_Task.h:
- No need for virtual inheritance, that consumes more footprint then
- needed.
-
- * DAnCE/RTNodeApplication/NodeApplication_Task.cpp:
- Reordered includes
-
-Wed Mar 08 15:58:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/ServerResources.idl:
- Fixed incorrect file header
-
-Wed Mar 08 14:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * rules.ciao.GNU:
- Added $(CIAO_ROOT)/ciao to LDFLAGS and $(CIAO) to INCLDIRS
- as we do in rules.tao.GNU, this improves the footprint stats
-
-Mon Mar 06 16:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Swapping_Container.{h,cpp}:
- Made serial_number_ unsigned and documented why it is static
-
- * performance-tests/Benchmark/LatencyTest.h:
- Removed not needed msvc pragma push/pop
-
-Sun Mar 05 11:16:46 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * CIAO version 0.5 released.
-
-Thu Mar 2 17:50:36 UTC 2006 Boris Kolpackov <boris@kolpackov.net>
-
- * CCF/CCF/IDL2/SemanticGraph/Struct.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Union.cpp:
-
- Fixed a bug in the logic that determines completeness of recursive
- structs and unions.
-
-Thu Mar 2 08:49:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplication/Container_Impl.cpp:
- Replaced NULL with 0
-
-Thu Mar 2 01:33:09 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with info from Ming Xiong and Gan Deng.
-
-Wed Mar 1 22:34:52 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated the file with info from Ming Xiong.
-
-Wed Mar 1 19:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * CIAO-INSTALL.html:
- Updated rename of CIAOTAO.mwc to CIAO_TAO.mwc
-
-Wed Mar 1 15:02:10 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * DAnCE/NodeApplication/Container_Impl.h
- * DAnCE/NodeApplication/Container_Impl.cpp
-
- Added codes to unregister with naming service when removing
- components
-
-Tue Feb 28 18:46:42 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/Deployment.xsd
- * DAnCE/Deployment.xsd.orig
- * DAnCE/XMI.xsd
- * DAnCE/XMI.xsd.orig
-
- Removed these schema files. They were misleading and useless.
-
-Fri Feb 24 21:21:02 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * tools/Config_Handlers/Config_Handlers.mpc
-
- Added a verbatim to disable hidden_visibility for Config_Handlers
-
-Fri Feb 24 18:54:52 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/RepositoryManager/HTTP_Handler.cpp:
- * DAnCE/RepositoryManager/RM_Helper.h:
- * DAnCE/RepositoryManager/RM_Helper.cpp:
- * DAnCE/RepositoryManager/RepositoryManager_Impl.cpp:
- some cosmetic changes
-
- * DAnCE/RepositoryManager/URL_Parser.h:
- made the constructor protected and made the ACE_Singleton a friend
-
- * DAnCE/RepositoryManager/URL_Parser.cpp:
- fixed a bug and improved the robustness of the code
-
-Fri Feb 24 09:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * CIAO-INSTALL.html:
- Fixed typo
-
-Thu Feb 23 23:35:59 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * examples/Swapping/Receiver/Receiver.mpc:
- * examples/Swapping/Sender/Sender.mpc:
-
- I was over zealous in my previous change. I shortened too many
- project names (those that are defined in projects outside of these
- mpc files).
-
-Wed Feb 22 16:38:32 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * CIAO-INSTALL.html:
-
- Updated the documentation on how to build cidlc on Windows.
-
- * examples/Swapping/Receiver/Receiver.mpc:
- * examples/Swapping/Sender/Sender.mpc:
-
- Shortened the project names in these MPC files to avoid fuzz
- warnings.
-
-Wed Feb 22 01:11:59 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplication/Container_Impl.cpp
-
- Fixed a bug about naming service registration.
- Thanks Sandro Andrade <sandro @dcc.ufba.br> for reporting
- a bug about removing component error.
-
-Tue Feb 21 23:59:05 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciao/Deployment.idl
-
- Added a parameter to the perform_redeployment() operation
- to the NodeApplicationManager interface to separate the
- "installation of new components" from the "removal of
- existing components".
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
-
- Modified the logic of perform_redeployment() functionality
- to enforce correct order of ReDaC, which is:
- (1) Install new components,
- (2) Set up new connections,
- (3) Remove old connections, and
- (4) Remove old components.
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
-
- Fixed a bug about removing components when using ReDaC.
- In NodeApplicationManager, after the perform_redeployment()
- call calls the remove_components() method to actually
- destroy components from the component server, DAnCE NAM doesn't
- unbind those components from the cached component_map_, hence
- when the create_connections() method is called afterwords,
- NAM tries to access the destroyed components to get
- their port information, which causes the Object_Not_Exist
- exception thrown.
-
- The fix will unbind the removed components from the
- cached component map. However, the trick is that after
- we unbind these components, the port iinformation of
- these components are also lost, then the
- DomainApplicaitonManager could not handle the
- "removal" of connections correctly.
-
- The Right Fix is to enforce correct call sequence, which
- are illustrated above.
- Thanks Sandro Andrade <sandro @dcc.ufba.br> for reporting
- a bug about removing component error.
-
- * DAnCE/NodeApplication/NodeApplication_Impl.h
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
-
- Added a component state map to keep track of component state
- information. With this map, components will be activated
- only when they are newly created, and will be passivated
- only when they are currently active. This will also fix
- a bug about the component initialization sequence. Earlier,
- when components are installed, they are immediately activated
- by explicitly calling ciao_preactivate, ciao_activate, and
- ciao_postactivate on the comopnent object reference,
- which is not compliant to the Spec defined semantics.
- This fix shall ensure that the components are activated AFTER
- their connections have been setup.
-
- * DAnCE/NodeApplication/Container_Impl.cpp
-
- Fixed a bug when passing object reference to a local function.
- Earlier the memory of the object reference is released by
- the callee, which causes the object reference becomes invalid
- after the function returns.
-
-Tue Feb 21 19:43:11 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
- * performance-tests/Protocols/Controller/Controller.mpc
-
- Added avoids+= ace_for_tao to two additional projects.
-
- * examples/Display/descriptors/EM.ior
- * examples/Display/descriptors/GPS.ior
- * examples/Display/descriptors/NavDisplay.ior
- * examples/Display/descriptors/NavDisplayGUI.ior
-
- Removed these ior files.
-
-Tue Feb 21 17:40:20 UTC 2006 Nishanth Shankaran <nshankar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/MonitorController.cpp:
-
- Fixed ACE_TRACE compilation error.
-
-Mon Feb 20 15:08:49 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * CIAO version 0.4.10 released.
-
-Mon Feb 20 19:48:12 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_Impl.ccd
-
- Removed this file because it is generated
-
-Fri Feb 17 19:22:21 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with more inputs.
-
-Thu Feb 16 15:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * CIAO_DAnCE.mwc:
- Fixed typo in this file
-
-Thu Feb 16 04:14:15 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
- * performance-tests/Protocols/Receiver/Receiver.mpc
- * performance-tests/Protocols/Sender/Sender.mpc
-
- Disabled building some project when ace_for_tao is set.
-
-Wed Feb 15 19:24:31 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * CIAO.mwc
-
- This file now builds all of CIAO.
-
- * CIAODAnCE.mwc
- * CIAO_DAnCE.mwc
-
- Renamed this file to CIAO_DAnCE.mwc
-
- * CIAOTAO.mwc
- * CIAO_TAO.mwc
-
- Renamed this file to CIAO_TAO.mwc.
-
- Thanks to Chad Elliott (elliott_c at ociweb dot com) for suggesting
- these changes.
-
- * CIAO_TAO_DAnCE.mwc
-
- Removed the DAnCE/tests/Config_Handlers exclusion, as it no
- longer exists.
-
-Wed Feb 15 07:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp:
- Replaced ACE cast macros with their C++ versions
-
-Wed Feb 15 07:28:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * CIDLC/ServantSourceGenerator.cpp:
- Fixed generation so that it compiles with Borland
-
-Tue Feb 14 23:01:46 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
-
- Fixed a bug when removing ReDaC components from the container.
- This bug was caused by the container set indexing error when
- handling newly installed components.
- Thanks Sandro Andrade <sandro @dcc.ufba.br> for reporting
- this issue.
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Some cosmetic changes.
-
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
- * DAnCE/NodeApplicationManager/ImplementationInfo.h
-
- Added a const modifier in the constructor to ensure safety.
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp
-
- Fixed a bug when detecting whether a component is shared
- by multiple assemblies. Earlier, when ReDaC is used, existing
- components are wrongly treated as shared components.
-
-Tue Feb 14 22:02:59 UTC 2006 William R. Otte <wotte@dre.vanderbilt.edu>
-
- * CIAO_TAO_DAnCE.mwc
-
- Added naming service and Config_Handlers.
-
- * DAnCE/NodeManager/NodeManager.mpc
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc
-
- Fixed link time warnings on OS X.
-
-Tue Feb 14 19:57:32 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
-
- Fixed a bug about when a component has a name with "Exec"
- string in it, the _stub library could be picked up
- incorrectly.
-
-Mon Feb 13 20:53:58 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
-
- Fixed a bug about removing existing components. Earlier
- the logic in detecting "to-be-removed" components has
- a bug.
-
-Mon Feb 13 20:11:35 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp
-
- Changed ACE_const_cast to c++ native const_cast since the
- former one is deprecated. Also changed the implementation of
- the acquireSession() logic, so the deadlock bug could
- be reproduced.
-
-Mon Feb 13 20:01:38 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
-
- Cosmetics change.
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
-
- Enhanced to call ccm_activate, ciao_preactivate, and
- ciao_postactivate when installing new components.
- Thanks Sandro Andrade <sandro @dcc.ufba.br> for reporting
- this issue.
-
- Also added the logic for remove_existing_components into
- the class, which has not been integrated yet.
-
- Refactor the code by putting these logics into separate
- methods to enhance readability.
-
-Mon Feb 13 17:12:09 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/ExecutionManager/Execution_Manager.cpp
-
- Fixed a bug about registering EM with naming service, originally
- an invalid naming context is specified. Also allowed EM to both
- register to naming service AND dump and IOR file. Thanks Sandro
- Andrade <sandro at dcc dot ufba dot br> for reporting this bug.
-
-Mon Feb 13 15:41:21 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp
-
- Fixed a warning about "deprecated conversion from string
- constant to `char*' on RHEL_Static_GCC-3.4.2 build.
-
-Mon Feb 13 11:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h:
- Removed not allowed semicolon
-
-Mon Feb 13 09:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h:
- Fixed compile error in single threaded builds
-
-Mon Feb 13 08:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Server_init.cpp:
- * tests/Bug_2130_Regression/SEC_CheckPoint/controller.cpp:
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp:
- Fixed conversion warnings
-
-Sat Feb 11 21:39:54 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.h
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent_Factory.h
-
- Fixed fuzz build erros.
-
-Sat Feb 11 21:26:08 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tests/Bug_2130_Regression/descriptors/run_test.pl
-
- Fixed the command line option to start the NodeApplication
- to enable real-time support.
- Thanks Roland Schimmack <Roland.Schimmack @ gmx.de> for
- reporting this error.
-
-Sat Feb 11 21:00:00 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * ciao/Server_init.cpp
-
- Removed an extra explicit qualification
-
-Sat Feb 11 18:49:21 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciaosvcs/Events/CIAO_Events.mpc
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.mpc
- Removed these files to get at least our builds running again
-
-Fri Feb 10 16:11:35 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciaosvcs/Events/CIAO_Events.mpc
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.mpc
-
- Temporarily disable the build of these projects before
- the integration effort is complete to avoid pollute
- the scoreboard.
-
-Fri Feb 10 14:28:14 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * docs/tutorials/CoSMIC/01.html
- * docs/tutorials/CoSMIC/02.html
- * docs/tutorials/CoSMIC/index.html
- * docs/tutorials/CoSMIC/Images/fig10.jpg
- * docs/tutorials/CoSMIC/Images/fig11.jpg
- * docs/tutorials/CoSMIC/Images/fig2.jpg
- * docs/tutorials/CoSMIC/Images/fig4.jpg
- * docs/tutorials/CoSMIC/Images/fig5.jpg
- * docs/tutorials/CoSMIC/Images/fig6.jpg
- * docs/tutorials/CoSMIC/Images/fig7.jpg
- * docs/tutorials/CoSMIC/Images/fig8.jpg
- * docs/tutorials/CoSMIC/Images/fig9.jpg
- * docs/tutorials/CoSMIC/Model/Quoter.xme
-
- Updated the CoSMIC tutorial so that it is consistent with
- the latest GME and CoSMIC.
-
-Fri Feb 10 11:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Port_Activator.h:
- Doxygen improvements
-
- * ciao/NodeApp_CB_Impl.h:
- Made destructor protected
-
- * ciao/Container_Base.{h,cpp}:
- Made the refcount unsigned long, addressed several comments and
- improved documentation
-
-Fri Feb 10 04:56:26 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplication/Container_Impl.cpp
- * DAnCE/NodeApplication/Container_Impl.h
- * ciao/Server_init.cpp
- * ciao/Server_init.h
-
- Added support for creating multicomponent naming context through
- the deployment plan. Thanks Dipa Suri <dipa.suri @ lmco.com> for
- contributing a NameUtility class implementation.
-
- * ciaosvcs/Events/CIAO_Events.idl
- * ciaosvcs/Events/CIAO_Events.mpc
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.cpp
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.h
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.idl
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent.mpc
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent_Factory.cpp
- * ciaosvcs/Events/CIAO_Direct/CIAO_DirectEvent_Factory.h
-
- Added some files for event channel integration for CIAO.
- More file check-ins are on the way.
-
-Thu Feb 9 23:38:19 UTC 2006 xiong,ming <ming.xiong@vanderbilt.edu>
-
- * TAO/CIAO/CIAOTAO.mwc
-
- Updated mwc to include some dependencies required by tests
- and examples.
-
- * tests/Bug_2130_Regression/Logs/PROBLEM-REPORT-FORM
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.cidl
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.idl
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPointEI.idl
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_Impl.ccd
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec_export.h
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_stub_export.h
- * tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_svnt_export.h
- * tests/Bug_2130_Regression/SEC_CheckPoint/controller.cpp
- * tests/Bug_2130_Regression/descriptors/DeploymentPlan.cdp
- * tests/Bug_2130_Regression/descriptors/TestNodeManagerMap.dat
- * tests/Bug_2130_Regression/descriptors/rt-config-example.csr
- * tests/Bug_2130_Regression/descriptors/run_test.pl
- * tests/Bug_2130_Regression/interfaces/ENW.idl
- * tests/Bug_2130_Regression/interfaces/ENW.mpc
- * tests/Bug_2130_Regression/interfaces/ENW_stub_export.h
- * tests/Bug_2130_Regression/interfaces/ENW_svnt_export.h
-
- Added a new tests for Bug_2130.
- Thanks Roland Schimmack <Roland.Schimmack @ gmx.de> for
- providing this test case.
-
-Thu Feb 9 16:48:42 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tools/IDL3_to_IDL2/be_global.h:
- * tools/IDL3_to_IDL2/be_init.cpp:
- * tools/IDL3_to_IDL2/be_sunsoft.cpp:
- * tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp:
- * tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h:
-
- Removed all usage of internal 'idl_bool' typedef in the
- IDL3 to IDL2 converter, consistently with the changes to
- the TAO IDL compiler front end, which is used by this
- tool.
-
-Thu Feb 9 16:33:45 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/ADD_Handler.cpp
- * tools/Config_Handlers/Any_Handler.cpp
- * tools/Config_Handlers/CCD_Handler.cpp
- * tools/Config_Handlers/CEPE_Handler.cpp
- * tools/Config_Handlers/CPD_Handler.cpp
- * tools/Config_Handlers/CRDD_Handler.cpp
- * tools/Config_Handlers/ComponentPropertyDescription_Handler.cpp
- * tools/Config_Handlers/DD_Handler.cpp
- * tools/Config_Handlers/DP_Handler.cpp
- * tools/Config_Handlers/DP_PCD_Handler.cpp
- * tools/Config_Handlers/DataType_Handler.cpp
- * tools/Config_Handlers/ERE_Handler.cpp
- * tools/Config_Handlers/IDD_Handler.cpp
- * tools/Config_Handlers/IDREF_Base.cpp
- * tools/Config_Handlers/ID_Handler.cpp
- * tools/Config_Handlers/IRDD_Handler.cpp
- * tools/Config_Handlers/MDD_Handler.cpp
- * tools/Config_Handlers/PCD_Handler.cpp
- * tools/Config_Handlers/PSPE_Handler.cpp
- * tools/Config_Handlers/Property_Handler.cpp
- * tools/Config_Handlers/RDD_Handler.cpp
- * tools/Config_Handlers/Req_Handler.cpp
- * tools/Config_Handlers/STD_PC_Intf.cpp
- * tools/Config_Handlers/XML_File_Intf.cpp
-
- Added CIAO_TRACE statements to aid in debugging.
-
-Wed Feb 08 15:53:31 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * CIAO version 0.4.9 released.
-
-Tue Feb 7 16:10:10 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/NodeManager.mpc
-
- Fixed an ordering problem.
-
-Mon Feb 6 19:13:13 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
-
- Fixed an export problem manifesting in VC8.
-
- * performance-tests/Benchmark/Benchmark.mpc
-
- Added an empty IDL_Files section to the servant to prevent
- nmake from regenerating from the IDL file.
-
-Mon Feb 6 13:54:39 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ciao/ComponentsC.h:
-
- Place TAO namespace in this pre-generated stub header within a
- TAO versioned namespace, as TAO_IDL does for all stubs. Fixes
- build errors in versioned-namespace enabled builds.
-
-Mon Feb 6 13:33:54 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeApplication/NoOp_Configurator.h
-
- Case sensitivity error from previous commit.
-
-Mon Feb 6 00:39:41 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeApplication/Configurator_Factory.cpp
- * DAnCE/NodeApplication/Configurator_Factory.h
- * DAnCE/NodeApplication/NodeApplication.mpc
- * DAnCE/NodeApplication/NodeApplication_Core.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
- * DAnCE/NodeManager/MonitorController.h
- * DAnCE/NodeManager/NodeManager.mpc
- * DAnCE/NodeApplication/NoOp_Configurator.cpp
- * DAnCE/NodeApplication/NoOp_Configurator.h
- * DAnCE/NodeApplication/NoOp_Configurator_export.h
-
- Fixed linking errors on Borland 6. Mostly involved improper
- symbol export control.
-
- * tools/Config_Handlers/cdd.hpp
- * tools/Config_Handlers/cdp.hpp
-
- Added a fix for a broken <string> include in Borland 6.
-
-Fri Feb 3 24:30:19 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * ciao/CIAO_common.h:
-
- Removed extraneous "#" in "# #error" preprocessor directive.
-
- * ciao/Client_init.h:
-
- Moved CIAO namespace out of TAO-versioned namespace block. It
- shouldn't have been there. Fixes namespace clashes in versioned
- namespace enabled builds.
-
-Thu Feb 2 23:55:01 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * NEWS
-
- Updated the release notes.
-
-Thu Feb 2 22:59:23 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/RepositoryManager/ZIP_Wrapper.cpp
-
- Updated include from zziplib.h to zzip/zzip.h, as the former
- is deprecated and absent in the most recent release.
-
-Thu Feb 2 15:49:31 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * docs/tutorials/CoSMIC/01.html: Commited a fix for a typo detected by
- Abdullah Sowayan <abdullah dot sowayan at lmco dot com> and
- fixed by Ming Xiong.
-
-Thu Feb 2 16:58:15 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * CIAO_TAO_DAnCE.mwc:
- * CIAODAnCE.mwc:
- Removed Old_Config_Handlers and spec_RepositoryManager
-
-Thu Feb 2 16:31:15 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/BaseMonitor.h
- * DAnCE/NodeManager/CIAO_Monitor.h
- * DAnCE/NodeManager/MonitorCB.h
- * DAnCE/NodeManager/MonitorController.cpp
- * DAnCE/NodeManager/MonitorController.h
- * DAnCE/TargetManager/DomainDataManager.h
-
- Removed extra ';' after closing braces on namespaces.
- Was causing errors on GCC4 builds.
-
- * DAnCE/NodeManager/MonitorController.inl
-
- Removed this file, as it is no longer used.
-
-Wed Feb 1 21:21:35 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/BaseMonitor.h
- * DAnCE/NodeManager/CIAO_Monitor.cpp
- * DAnCE/NodeManager/CIAO_Monitor.h
- * DAnCE/NodeManager/MonitorCB.cpp
- * DAnCE/NodeManager/MonitorCB.h
- * DAnCE/NodeManager/MonitorController.cpp
- * DAnCE/NodeManager/MonitorController.h
- * DAnCE/TargetManager/DomainDataManager.cpp
- * DAnCE/TargetManager/DomainDataManager.h
- * DAnCE/TargetManager/TargetManager_exec.cpp
- * DAnCE/TargetManager/TargetManager_exec.h
-
- Wraps the TargetManager/Monitors inside the CIAO namespace.
- Thanks to Nilabja Roy (nilabjar@dre.vanderbilt.edu) for
- making these changes and thanks to Johnny for noticing this!
-
-Wed Feb 1 20:42:42 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * CIDLC/ServantSourceGenerator.cpp
- * tools/Config_Handlers/RT-CCM/TPL_Handler.cpp
- * tools/Config_Handlers/Utils/XercesString.cpp
- * tools/Config_Handlers/Utils/XercesString.h
- * tools/Config_Handlers/XMLSchema/Writer.hpp
-
- Fixes for warnings on ICC platforms.
-
-Wed Feb 1 14:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/TargetManager/DomainDataManager.h:
- Small doxygein improvement
-
-Wed Feb 1 04:32:38 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * RACE/Planner_Manager/Component/Planner_Manager.idl
-
- Resolve a linking error on Windows.
-
-Tue Jan 31 23:33:23 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/Old_Config_Handlers
- * DAnCE/test/Config_Handlers_Tests
-
- Removed deprecated config handlers.
-
- * NEWS
-
- Commented on this removal.
-
-Tue Jan 31 21:51:52 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * examples/Hello/descriptors/run_test.pl
- * examples/Hello/descriptors/run_test_without_ns.pl
-
- Added a parameter to the NodeManagers to cause them to wait
- up to 30 seconds for the NodeApplications to spawn before failing.
- This should fix the hello test on several platforms.
-
-Tue Jan 31 21:29:06 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * examples/Hello/descriptors/run_test.pl
-
- Updated to force naming service to not use multicast, instead
- using NameServiceIOR environment variable.
-
- * examples/Hello/descriptors/run_test_without_ns.pl
-
- Updated ports to reflect new NodeManagerMap.
-
-Tue Jan 31 15:11:29 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * RACE/Controller/Component/Controller.mpc
-
- Fixed linking errors on OS X.
-
-Tue Jan 31 14:41:31 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.cpp
-
- Fixed a couple of warning on SuSE_10_0_GCC4.0.2_x86_64_Valgrind
- build.
-
-Tue Jan 31 11:42:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp:
- Fixed compile error with VxWorks 5.5.1
-
-Mon Jan 30 22:43:26 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * examples/Hello/descriptors/run_NodeDaemons.pl:
-
- Fixing this script so that the Hello example deploys successfully.
-
-Mon Jan 30 21:16:40 UTC 2006 Ming Xiong <ming.xiong@vanderbilt.edu>
-
- * docs/tutorials/CoSMIC/01.html
- * docs/tutorials/CoSMIC/02.html
- * docs/tutorials/CoSMIC/03.html
- * docs/tutorials/CoSMIC/04.html
- * docs/tutorials/CoSMIC/index.html
- * docs/tutorials/CoSMIC/Icons/AddConnMode.gif
- * docs/tutorials/CoSMIC/Icons/SetMode.gif
- * docs/tutorials/CoSMIC/Images/fig1.jpg
- * docs/tutorials/CoSMIC/Images/fig10.jpg
- * docs/tutorials/CoSMIC/Images/fig11.jpg
- * docs/tutorials/CoSMIC/Images/fig2.jpg
- * docs/tutorials/CoSMIC/Images/fig3.jpg
- * docs/tutorials/CoSMIC/Images/fig4.jpg
- * docs/tutorials/CoSMIC/Images/fig5.jpg
- * docs/tutorials/CoSMIC/Images/fig6.jpg
- * docs/tutorials/CoSMIC/Images/fig7.jpg
- * docs/tutorials/CoSMIC/Images/fig8.jpg
- * docs/tutorials/CoSMIC/Images/fig9.jpg
- * docs/tutorials/CoSMIC/Model/Quoter.xme
-
- Added CoSMIC tutorial for /docs/tutorials/Quoter/Simple
-
-Mon Jan 30 17:50:38 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
-
- Modified to inherit from dance_extension_stub project
- so the included header file could be found.
-
-Mon Jan 30 17:35:12 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/Interfaces/Interfaces.mpc
- * DAnCE/NodeManager/NodeManager.mpc
- * DAnCE/NodeManager/NodeManager_Impl.h
-
- Fixed a linking error of NodeManager when trying to
- link to IDL generated servant code.
-
- * DAnCE/NodeManager/CIAO_NodeManager_Export.h
- * DAnCE/Interfaces/NodeManager_svnt_export.h
-
- Removed the first one and added the second one to
- fix the linking error when trying to find entry
- point for IDL compiler generated servant code.
-
-Mon Jan 30 05:07:09 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * examples/Hello/descriptors/NodeManagerMap.dat
-
- Corrected the ports to match those in the run_test.pl script.
-
-Mon Jan 30 01:59:23 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
-
- Cosmetic change.
-
- * DAnCE/NodeManager/NodeManager.mpc
-
- Fixed a typo.
-
-Mon Jan 30 01:47:21 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeManager/NodeManager.mpc
- * DAnCE/NodeManager/NodeManager_Impl.h
- * DAnCE/NodeManager/NodeManager_Export.h
-
- Added dll import/export mechanism into NodeManager library.
-
-Sat Jan 28 22:24:35 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * examples/Hello/descriptors/run_test.pl
-
- Corrected the name of the NodeManagerMap passed to ExecutionManager.
- This was causing the test to fail across all platforms.
-
-Sat Jan 28 05:55:45 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/NodeManager.mpc
-
- Added a missing after clause.
-
-Fri Jan 27 22:42:47 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * RACE/Controller/Component/Controller.mpc
-
- Fixed linking errors on Windows.
-
-Fri Jan 27 20:58:19 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tests/Bug_2130_Regression
-
- A place to host Bug 2130 test case.
-
-Fri Jan 27 20:42:47 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/DnC_Dump_T.h
-
- Silenced warnings in solaris.
-
-Fri Jan 27 20:30:01 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.cpp
-
- Fixed uninitialized variable warnings on Solaris GCC.
-
- *DAnCE/NodeManager/NodeManager.mpc
-
- Refactored the projects here so all files related to NodeManager
- are only compiled once.
-
-Fri Jan 27 19:15:19 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/Monitor.mpc: Added the dependancy on
- TargetManaer_stub
-
-Fri Jan 27 19:07:08 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/MonitorController.h
- * DAnCE/NodeManager/MonitorController.inl
-
- Refined the fix in
- Fri Jan 27 17:29:54 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
- to use ACE_SYNCH_MUTEX. Thanks to Doug Schmidt for suggesting the
- improvement.
-
-Fri Jan 27 17:35:55 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * RACE/Controller/Component/Controller.mpc
-
- Fixed linking errors on Mac OS X.
-
-Fri Jan 27 17:29:54 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/MonitorController.h
- * DAnCE/NodeManager/MonitorController.inl
-
- Added preprocessor logic to fall back to an ACE_Mutex on
- platforms that don't support ACE_Thread_Mutex.
-
-Fri Jan 27 16:59:11 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.cpp
-
- Fixed a couple of warnings on SuSE_10_0_GCC4.0.2_x86_64_Valgrind
- build about pointer initialization.
-
-Thu Jan 26 23:48:47 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * examples/Hello/step-by-step.html
-
- Fixed a fuzz error about dependency on ~schmidt/ACE_wrappers.
-
-Thu Jan 26 19:25:06 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/TargetManager/TargetManager.mpc
-
- Added an empty IDL_Files segment to the _exec project,
- which should clean up tons of Windows VC build erros
- and warnings.
-
-Thu Jan 26 17:57:45 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/ExecutionManager/ExecutionManager.mpc
- * DAnCE/NodeManager/NodeManager.mpc
-
- Modified to inherit from a base project dance_extension_stub.mpb
- to avoid explicily included path specification.
-
-Thu Jan 26 10:25:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h:
- Fixed incorrect doxygen tag
-
- * CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl:
- Added missing ACE_INLINE macro's
-
-
-Thu Jan 26 01:44:15 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
- * DAnCE/NodeApplicationManager/Containers_Info_Map.h
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
- * DAnCE/NodeApplicationManager/ImplementationInfo.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/StaticConfigurator/StaticDAnCEParser.cpp
- * ciao/Deployment.idl
-
- Fixed a bug of shared component capability. Originally, we
- haven't differentiate between "shared components" and
- "external components", so when a component ref count becomes
- 0, the "shared components" will become empty, however, since
- some components are installed remotely, removing it will
- cause problem if we don't have such differentiation.
-
-Wed Jan 25 23:44:01 UTC 2006 Nishanth Shankaran <nshankar@dre.vanderbilt.edu>
-
- * CIAOTAO.mwc:
- * CIAO.mwc:
-
- Added RACE to the workspace.
-
-Wed Jan 25 22:47:30 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * CIAO_TAO_DAnCE.mwc
-
- Added another mwc file which builds ACE, TAO, CIAO, DAnCE
- minium to run a CIAO simple example.
-
-Wed Jan 25 22:28:06 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/ExecutionManager/ExecutionManager.mpc
- * DAnCE/NodeManager/NodeManager.mpc
-
- Added include+= to find header files and fixed a typo.
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp
-
- Fixed an error in Linux build.
-
-Wed Jan 25 22:11:23 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
-
- Changed order of the base member initialization list, which
- should clear some warnings of the Linux builds.
-
-Wed Jan 25 21:32:44 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
- * DAnCE/NodeManager/NodeManager.mpc
-
- Fixed dependency problems.
-
-Wed Jan 25 20:28:35 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/Interfaces/ExecutionManager.idl
- * DAnCE/Interfaces/Interfaces.mpc
- * DAnCE/Interfaces/README
- * DAnCE/Interfaces/NodeManager.idl
- * DAnCE/Interfaces/NodeManager_stub_export.h
- * DAnCE/Interfaces/ExecutionManager_stub_export.h
-
- Added these files into a separate directory
- called DAnCE/Interfaces to termporarily solve the MPC
- directory dependency issue.
-
- * DAnCE/ExecutionManager/ExecutionManager.idl
- * DAnCE/NodeManager/NodeManager.idl
-
- Removed these files.
-
- * DAnCE/ExecutionManager/ExecutionManager.mpc
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
- * DAnCE/NodeManager/NodeManager.mpc
- * DAnCE/NodeManager/NodeManager_Impl.h
-
- * DAnCE/Plan_Launcher/Plan_Launcher.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
-
- Modified to accomodate the above refactoring work.
-
-Wed Jan 25 19:46:57 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciao/Deployment_common.h
-
- Added this new file, which is supposed to contain all the
- reusable types/classes/methods across the DAnCE toolchain.
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
-
- Modified the code to accomodate the above refactoring work.
-
- * DAnCE/TargetManager/DomainDataManager.cpp
-
- Got rid of a warning message about unreferenced variable.
-
- * DAnCE/DomainApplicationManager/DomainApplicationManage.mpc
-
- Added a dependency from DAM to ExecutionManager_stub project.
-
-Wed Jan 25 02:53:07 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
- * ciao/Deployment.idl
-
- Fixed a bug about destroying *ApplicationManagers.
- This fix will ensure that DAM won't be destroyed if any
- components managed by itself are still up and running.
-
-Wed Jan 25 01:41:53 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
-
- Some cosmetic changes.
-
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Fixed a bug about when to killing a NodeApplication process.
-
- * ciao/Container_Base.cpp
-
- Comment out meaningless debug statement.
-
-Wed Jan 25 00:56:39 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * examples/Hello/descriptors/run_test_without_ns.pl
-
- Modified to use the correct NodeManagerMap.dat file.
-
-Wed Jan 25 00:47:02 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * examples/Hello/descriptors_RTCCM/RTsvc.conf
- * examples/Hello/descriptors_RTCCM/input.csr
- * examples/Hello/descriptors_RTCCM/rt-config-example.cdp
- * examples/Hello/descriptors_RTCCM/rt-config-example.csr
- * examples/Hello/descriptors_RTCCM/rt-example.cdp
- * examples/Hello/descriptors_RTCCM/rt_run_test.pl
- * examples/Hello/descriptors_ReDaC/deploymentplan.cdp
- * examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp
- * examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp
- * examples/Hello/descriptors_naming/deploymentplan_naming.cdp
-
- Create some new descriptors, reorganized them, and put
- them into different directories.
-
-Wed Jan 25 00:23:02 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * CIAODAnCE.mwc
-
- Added another mwc file which only builds CIAO and DAnCE.
-
- * examples/Hello/step-by-step.html
-
- Fixed an error in this documentation page.
-
- * examples/Hello/descriptors/RTsvc.conf
- * examples/Hello/descriptors/TestNodeManagerMap.dat
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns_add.cdp
- * examples/Hello/descriptors/rt-config-example.cdp
- * examples/Hello/descriptors/rt-config-example.csr
- * examples/Hello/descriptors/rt-example.cdp
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns_add.cdp
- * examples/Hello/descriptors/rt_run_test.pl
-
- Removed these descriptor files and put them into separate
- directories to better organize things.
-
- * examples/Hello/descriptors_shared_components/deploymentplan.cdp
- * examples/Hello/descriptors_shared_components/
- deploymentplan_shared_components.cdp
-
- Added a dedicated directory to put descriptors for shared
- components scenario.
-
-Wed Jan 25 00:10:50 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/ExecutionManager/DAM_Map.cpp
- * DAnCE/ExecutionManager/DAM_Map.h
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
-
- Added capabilities to handle adding/removing
- connections between components in new assembly and existing/external
- components in old assemblies. This involves putting
- ExecutionManager as a coordinator for different DAMs.
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
- * DAnCE/NodeApplicationManager/Containers_Info_Map.h
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
- * DAnCE/NodeApplicationManager/ImplementationInfo.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
- * DAnCE/NodeManager/NAM_Map.h
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.h
- * DAnCE/NodeManager/Node_Manager.cpp
-
- Added capabilities for handling shared components across
- different assemblies. This involves putting NodeManager
- as a local coordinator for different NAMs.
-
- * DAnCE/NodeApplication/NodeApplication.cpp
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
- * DAnCE/NodeApplication/NodeApplication_Impl.h
-
- Enhancement of adding/removing connections.
-
- * DAnCE/Plan_Launcher/DAM_Map.cpp
- * DAnCE/Plan_Launcher/DAM_Map.h
-
- Removed from the repo, since they are located in the other
- directory as well, and we can use relative path to point
- to those existing files.
-
- * DAnCE/Plan_Launcher/Plan_Launcher.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher.mpc
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
-
- Enhanced to handle shared components scenario which interacts
- with *managers.
-
- * DAnCE/StaticConfigurator/StaticDAnCEParser.cpp
-
- Fixed for working with the newly enhanced DAnCE toolchain.
-
- * ciao/Deployment.idl
-
- Adding enhancements for adding shared components capabilities
-
-Wed Jan 25 00:01:37 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeManager/MonitorCB.cpp
-
- Fixed a warning about unreferenced variable in Windows build.
-
- * DAnCE/NodeManager/MonitorController.h
-
- Included header file missing path to its directory.
-
- * DAnCE/TargetManager/CmpClient.cpp
-
- Fixed a warning about unreferenced variable in Windows build.
-
-Mon Jan 23 23:10:32 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
-
- * DAnCE/spec_RepositoryManager/HTTP_Client.h:
- * DAnCE/spec_RepositoryManager/HTTP_Client.cpp:
- * DAnCE/spec_RepositoryManager/HTTP_Handler.h:
- * DAnCE/spec_RepositoryManager/HTTP_Handler.cpp:
- * DAnCE/spec_RepositoryManager/Options.h:
- * DAnCE/spec_RepositoryManager/Options.cpp:
- * DAnCE/spec_RepositoryManager/PC_Updater.h:
- * DAnCE/spec_RepositoryManager/PC_Updater.cpp:
- * DAnCE/spec_RepositoryManager/PC_Updater_T.h:
- * DAnCE/spec_RepositoryManager/PC_Updater_T.cpp:
- * DAnCE/spec_RepositoryManager/README.txt:
- * DAnCE/spec_RepositoryManager/RM_Helper.h:
- * DAnCE/spec_RepositoryManager/RM_Helper.cpp:
- * DAnCE/spec_RepositoryManager/RMadmin.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager.idl:
- * DAnCE/spec_RepositoryManager/RepositoryManager.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp:
- * DAnCE/spec_RepositoryManager/URL_Parser.h:
- * DAnCE/spec_RepositoryManager/URL_Parser.cpp:
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h:
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp:
- * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc:
-
- Removed these files. Zapping the DAnCE/spec_RepositoryManager/
- directory which used to hold the implementation of the
- RepositoryManager while the ExecutionManager was in the
- DAnCE/RepositoryManager/ directory.
-
-Mon Jan 23 22:41:49 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/RepositoryManager/HTTP_Client.h:
- * DAnCE/RepositoryManager/HTTP_Client.cpp:
- * DAnCE/RepositoryManager/HTTP_Handler.h:
- * DAnCE/RepositoryManager/HTTP_Handler.cpp:
- * DAnCE/RepositoryManager/Options.h:
- * DAnCE/RepositoryManager/Options.cpp:
- * DAnCE/RepositoryManager/PC_Updater.h:
- * DAnCE/RepositoryManager/PC_Updater.cpp:
- * DAnCE/RepositoryManager/PC_Updater_T.h:
- * DAnCE/RepositoryManager/PC_Updater_T.cpp:
- * DAnCE/RepositoryManager/README.txt:
- * DAnCE/RepositoryManager/RM_Helper.h:
- * DAnCE/RepositoryManager/RM_Helper.cpp:
- * DAnCE/RepositoryManager/RMadmin.cpp:
- * DAnCE/RepositoryManager/RepositoryManager.idl:
- * DAnCE/RepositoryManager/RepositoryManager.cpp:
- * DAnCE/RepositoryManager/RepositoryManager.mpc:
- * DAnCE/RepositoryManager/RepositoryManager_Impl.h:
- * DAnCE/RepositoryManager/RepositoryManager_Impl.cpp:
- * DAnCE/RepositoryManager/URL_Parser.h:
- * DAnCE/RepositoryManager/URL_Parser.cpp:
- * DAnCE/RepositoryManager/ZIP_Wrapper.h:
- * DAnCE/RepositoryManager/ZIP_Wrapper.cpp:
-
- Moving what used to be DAnCE/spec_RepositoryManager directory to
- the DAnCE/RepositoryManager directory.
-
-Mon Jan 23 22:14:06 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp:
-
- Adding couple more checks to increase robustness.
-
-Mon Jan 23 20:07:17 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/BaseMonitor.h
-
- Added a virtual destructor to resolve warnings.
-
- * DAnCE/TargetManager/DomainDataManager.cpp
- * DAnCE/TargetManager/TargetManager_exec.cpp
-
- Fixed some problems caused by
- Mon Jan 23 15:11:40 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
-Mon Jan 23 17:03:09 UTC 2006 Nishanth Shankaran <nshankar@dre.vanderbilt.edu>
-
- * RACE/Controller/Component/Controller_svnt_export.h:
- * RACE/Controller/Component/Controller_stub_export.h:
- * RACE/Controller/Component/Controller_exec_export.h:
- * RACE/Controller/Component/Controller_exec.h:
- * RACE/Controller/Component/Controller_exec.cpp:
- * RACE/Controller/Component/Controller.mpc:
- * RACE/Controller/Component/Controller.idl:
- * RACE/Controller/Component/Controller.cidl:
-
- Added IDL, CIDL, and MPC files for the RACE controller along with a
- dummy implementation of the controller.
-
-Mon Jan 23 15:11:40 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/TargetManager/TargetManager.mpc
-
- Cleaned up the MPC file, fixed a linking error on OS X.
-
-Sat Jan 21 21:54:59 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/SizeTypeCalculator.cpp:
-
- Fixed a bug in size type calculation of nested structs and unions.
- Thanks to Sandro Santos Andrade <sandros@dcc.ufba.br> for
- reporting the problem.
-
-Sat Jan 21 20:27:13 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/TargetManager/TargetManager.idl:
- * DAnCE/TargetManager/TargetManager.mpc:
- * DAnCE/TargetManager/TargetManagerExt.idl:
- Added this file to include the facet for RACE Controller
- * DAnCE/TargetManager/TargetManager_exec.h:
- * DAnCE/TargetManager/TargetManager_exec.cpp:
- Added implementation for the facet serving the RACE Controller.
-
-
-Sat Jan 21 02:04:15 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
- Removed trailing whitespaces and tabs
-
- * DAnCE/NodeManager/BaseMonitor.h:
- * DAnCE/NodeManager/CIAO_Monitor.h:
- * DAnCE/NodeManager/CIAO_Monitor.cpp:
- * DAnCE/NodeManager/MonitorCB.h:
- * DAnCE/NodeManager/MonitorCB.cpp:
- * DAnCE/NodeManager/MonitorController.h:
- * DAnCE/NodeManager/MonitorController.cpp:
- Removed system headers and replaced systme calls with ACE calls.
- Also updated documentation with doxygen standard
-
- * DAnCE/TargetManager/TargetManager_exec.cpp:
- Removed system headers and replaced systme calls with ACE calls.
- Also updated documentation with doxygen standard
-
- * tools/Config_Handlers/DD_Handler.h:
- * tools/Config_Handlers/DD_Handler.cpp:
- Removed system headers and replaced systme calls with ACE calls.
- Also updated documentation with doxygen standard
-
-Fri Jan 20 22:30:21 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
- The include to NodeManagerC.h is removed since the dependency on
- NodeManager_stub was removed.
-
-Fri Jan 20 20:33:23 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc:
- Changed the Domain Application Manager to remove the dependency on
- NodeManager_stub.
-
-Fri Jan 20 07:24:47 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/spec_RepositoryManager/PC_Updater.h:
- * DAnCE/spec_RepositoryManager/RMadmin.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp:
- * DAnCE/spec_RepositoryManager/URL_Parser.h:
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h:
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp:
-
- Improved the documentation, the output and added some minor features.
- Changed all occurnences of 'new' to ACE_NEW in ZIP_Wrapper.cpp which
- I had previously forgotten.
-
- * DAnCE/new_RepositoryManager/packages/inconsistent.cpk:
- * DAnCE/new_RepositoryManager/packages/package.cpk:
-
- Removed these files.
-
-Thu Jan 19 01:29:58 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/spec_RepositoryManager/HTTP_Handler.h:
- * DAnCE/spec_RepositoryManager/HTTP_Handler.cpp:
- * DAnCE/spec_RepositoryManager/PC_Updater.h:
- * DAnCE/spec_RepositoryManager/PC_Updater_T.h:
- * DAnCE/spec_RepositoryManager/RM_Helper.h:
- * DAnCE/spec_RepositoryManager/RM_Helper.cpp:
- * DAnCE/spec_RepositoryManager/RMadmin.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp:
- * DAnCE/spec_RepositoryManager/URL_Parser.h:
- * DAnCE/spec_RepositoryManager/URL_Parser.cpp:
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h:
-
- Changed all occurenced of new to ACE_NEW. Turned some documentation to
- Doxygen style. Modified the URL_Parser singleton to use the ACE_Singleton
- class. More changes on the way.
-
-Wed Jan 18 23:56:51 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/BaseMonitor.h: Corrected the file name in @file
-
- * DAnCE/TargetManager/CmpClient.cpp: Corrected the file name in @file
-
-Wed Jan 18 16:42:41 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/BaseMonitor.h:Added documentation, changed
- function signature
- * DAnCE/NodeManager/CIAO_Monitor.cpp:Removed system headers
- * DAnCE/NodeManager/Monitor.mpc:Added cvs tag
- * DAnCE/NodeManager/MonitorController.cpp:Removed sleep call
- * DAnCE/NodeManager/NodeManager.mpc:Added after clause to compile
- TargetManager_stub before
-
- * DAnCE/TargetManager/TM_Client.mpc:Added cvs tag
- * DAnCE/TargetManager/TargetManager.mpc: Added cvs tag ,
- Removed Deployment_Configuration.cpp from TargetManager_exec
-
-Tue Jan 17 23:52:11 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/spec_RepositoryManager/Options.h:
- * DAnCE/spec_RepositoryManager/Options.cpp:
- * DAnCE/spec_RepositoryManager/RMadmin.cpp:
-
- Took care of the todo's that Johnny suggested. Now using ACE_Singleton
- parametrized with ACE_Null_Mutex.
-
-Tue Jan 17 21:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/spec_RepositoryManager/HTTP_Client.h:
- Layout change
- * DAnCE/spec_RepositoryManager/HTTP_Handler.{h,cpp}:
- Changed bytecount_ to size_t
-
-Tue Jan 17 21:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/spec_RepositoryManager/Options.h:
- Doxygen improvements
-
- * DAnCE/spec_RepositoryManager/Options.cpp:
- Layout changes and add some todo's
-
-Tue Jan 17 19:31:56 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/Config_Handlers.mpc
-
- Added a project inherit improperly removed by
- Mon Jan 16 16:22:25 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
-Mon Jan 16 19:59:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h:
- * DAnCE/spec_RepositoryManager/URL_Parser.h:
- * DAnCE/spec_RepositoryManager/PC_Updater.h:
- * DAnCE/spec_RepositoryManager/PC_Updater_T.cpp:
- * DAnCE/spec_RepositoryManager/HTTP_Handler.h:
- * DAnCE/spec_RepositoryManager/HTTP_Client.h:
- Doxygen improvements
-
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp:
- * DAnCE/spec_RepositoryManager/PC_Updater_T.h:
- * DAnCE/spec_RepositoryManager/HTTP_Client.cpp:
- * DAnCE/spec_RepositoryManager/HTTP_Handler.cpp:
- Layout changes
-
-Mon Jan 16 18:36:47 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
-
- Addressed some warnings from the RHEL_Static_GCC-3.4.2
- build.
-
-Mon Jan 16 16:48:11 UTC 2006 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
-
- * DAnCE/spec_RepositoryManager/Options.h:
- * DAnCE/spec_RepositoryManager/Options.cpp:
- * DAnCE/spec_RepositoryManager/PC_Updater.cpp:
- * DAnCE/spec_RepositoryManager/README.txt:
- * DAnCE/spec_RepositoryManager/RMadmin.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager.cpp:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h:
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp:
-
- Added the newest changes to the RepoMan. This change add the
- functionality that pertains to interface types. It is currently
- disabled due to lack of support in the modeling tools for interfaces
- for assemby-based interfaces.
-
- I still need to clean up some of the output and some of the code before
- the release of the beta.
-
-Mon Jan 16 16:22:25 UTC 2006 Nilabja R <nilabjar@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/BaseMonitor.h:
- * DAnCE/NodeManager/CIAO_Monitor.h:
- * DAnCE/NodeManager/CIAO_Monitor.cpp:
- * DAnCE/NodeManager/Monitor.mpc:
- * DAnCE/NodeManager/MonitorCB.h:
- * DAnCE/NodeManager/MonitorCB.cpp:
- * DAnCE/NodeManager/MonitorController.h:
- * DAnCE/NodeManager/MonitorController.inl:
- * DAnCE/NodeManager/MonitorController.cpp:
- * DAnCE/NodeManager/NodeManager.mpc:
- * DAnCE/NodeManager/NodeManager_Impl.h:
- * DAnCE/NodeManager/NodeManager_Impl.cpp:
- * DAnCE/NodeManager/Node_Manager.cpp:
- These files implement the Monitor within the
- NodeManager implementation.
-
- * DAnCE/TargetManager/CmpClient.cpp:
- * DAnCE/TargetManager/Deployment_Configuration.h:
- * DAnCE/TargetManager/Deployment_Configuration.cpp:
- * DAnCE/TargetManager/DomainDataManager.h:
- * DAnCE/TargetManager/DomainDataManager.cpp:
- * DAnCE/TargetManager/TM_Client.mpc:
- * DAnCE/TargetManager/TargetManager.cidl:
- * DAnCE/TargetManager/TargetManager.idl:
- * DAnCE/TargetManager/TargetManager.mpc:
- * DAnCE/TargetManager/TargetManager_exec.h:
- * DAnCE/TargetManager/TargetManager_exec.cpp:
- * DAnCE/TargetManager/TargetManager_exec_export.h:
- * DAnCE/TargetManager/TargetManager_stub_export.h:
- * DAnCE/TargetManager/TargetManager_svnt_export.h:
- These files implement the Target Manager Implementation
-
- * DAnCE/TargetManager/descriptors/Domain.cdd:
- * DAnCE/TargetManager/descriptors/NodeDetails.dat:
- * DAnCE/TargetManager/descriptors/NodeManagerMap.dat:
- * DAnCE/TargetManager/descriptors/flattened_deploymentplan.cdp:
- * DAnCE/TargetManager/descriptors/run_test_TargetManager.pl:
- These are needed for the running of the TargetManager
-
- * ciao/CCM_Core.mpc:
- * ciao/Deployment.idl:
- * ciao/Deployment_Base.idl:
- * ciao/Deployment_Data.idl:
- * ciao/Packaging_Data.idl:
- * ciao/ServerResources.idl:
- Needs to be changed to resolve conflicts when compiling the
- Target Manager cidl file
-
- * ciao/Target_Data.idl:
- This is the file which contains declarations which has been
- separated for the Target manager
-
- * tools/Config_Handlers/Config_Handlers.mpc:
- * tools/Config_Handlers/DD_Handler.h:
- * tools/Config_Handlers/DD_Handler.cpp:
- These implement the extension to the config handlers for
- the parsing of the Target data domain.
-
-Fri Jan 13 20:39:21 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/XSCRT/Parser.hpp
- * tools/Config_Handlers/XSCRT/XML.hpp
-
- Added a templated casting operator for Xerces types instead
- of using standard dynamic_cast. Thanks to Ossama Othman
- ossama at dre dot vanderbilt dot edu for suggesting this
- fix.
-
- * CIAO-INSTALL.html
- * NEWS
-
- The above changes removed the requirement for an RTTI enabled
- version of Xerces. Updated these documents to reflect this.
-
-Thu Jan 12 21:40:47 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * examples/Hello/ReDaC-Usage.html
-
- Fixed some typos and an error.
-
-Tue Jan 10 22:34:22 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/cdd.cpp
- * tools/Config_Handlers/cdd.hpp
-
- Regenerated to reflect updates to schema in
- Tue Jan 10 19:01:45 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/Modified_Deployment.xsd
-
- Removed, as this file is obsolete, and schema should only exist in
- CIAO_ROOT/docs/schema
-
-Tue Jan 10 22:05:17 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * examples/Hello/ReDaC-Usage.html
-
- Added a tutorial-like web page to showcase ReDaC service
- of DAnCE.
-
- * NEWS
-
- Updated with DAnCE's recent enhancements.
-
-Tue Jan 10 19:01:45 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * docs/schema/Basic_Deployment_Data.xsd
- * docs/schema/cdd.xsd
-
- Corrected incorrect cardinality on several target domain elements.
-
-Tue Jan 10 11:10:01 UTC 2006 Boris Kolpackov <boris@kolpackov.net>
-
- * NEWS:
-
- Updated with recent developments.
-
-Mon Jan 9 14:17:39 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp:
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp:
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp:
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp:
- * examples/Hello/descriptors/Receiver_Svnt.iad:
- * examples/Hello/descriptors/Sender_Svnt.iad:
- * examples/Hello/descriptors/flattened_deploymentplan.cdp:
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp:
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns_add.cdp:
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns_remove.cdp:
- * examples/Hello/descriptors/rt-config-example.cdp:
- * examples/Hello/descriptors/rt-example.cdp:
-
- Updated occurrences of the string name of the servant executor
- DLL extry point to correspond with the changes in
-
- Fri Jan 6 20:09:34 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
-Fri Jan 6 20:09:34 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/ExecImplHeaderGenerator.cpp:
- * CIDLC/ExecImplSourceGenerator.cpp:
- * CIDLC/ServantHeaderGenerator.cpp:
- * CIDLC/ServantSourceGenerator.cpp:
-
- Changed the names of the generated extern C functions that
- create the home and servant executors to incorportate the
- entire scoped name of the class, to avoid name clashes
- (since extern "C" functions link globally no matter what
- scope they are declared in) when class names are
- duplicated inside different nested namespaces. Thanks
- to James Hill <james.h.hill@vanderbilt.edu> and Boris
- Kolpackov <boris@dre.vanderbilt.edu> for their help
- with the problem.
-
- * DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Svnt.iad:
- * DAnCE/tests/Config_Handlers/HUDisplay/GPS_Svnt.iad:
- * DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Svnt.iad:
- * DAnCE/tests/Config_Handlers/HUDisplay/Timer_Svnt.iad:
- * docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl:
- * docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad:
- * docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad:
- * docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp:
- * examples/BasicSP/descriptors/Airframe_Svnt.iad:
- * examples/BasicSP/descriptors/GPS_Svnt.iad:
- * examples/BasicSP/descriptors/NavDisplay_Svnt.iad:
- * examples/BasicSP/descriptors/Timer_Svnt.iad:
- * examples/BasicSP/descriptors/flattened_deploymentplan.cdp:
-
- Updated the hand-crafted descriptor files in CIAO tests and
- examples to reflect the changes above.
-
-Thu Jan 5 21:28:17 UTC 2006 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Fixed some warning in Boarland C++ builds.
-
-Thu Jan 5 00:53:30 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-spaces.
-
- Changed "add-log-time-format" to a really ugly lambda expression
- that formats changelog timestamps in UTC and works with both GNU
- Emacs and XEmacs.
-
-Wed Jan 4 21:01:15 2006 Boris Kolpackov <boris@kolpackov.net>
-
- * ciao/CCM_Base.idl:
-
- Replaced #if !defined (CIAO_HAS_IMPORT_KEYWORD) with
- #ifdef CIAO_HAS_IMPORT_KEYWORD. This will give CIDLC's
- CPP a chance to handle it properly.
-
- * CCF/CCF/CompilerElements/Preprocessor.cpp:
-
- Fixed a bug in lexeme parsing.
-
-Wed Jan 4 11:39:59 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * ciao/CCM_Core.mpc
-
- Removed $CIAO_ROOT/DAnCE include, added CIAO_ROOT/ciao.
-
-Tue Jan 3 19:55:43 2006 Boris Kolpackov <boris@kolpackov.net>
-
- * CCF/CCF/CompilerElements/Preprocessor.cpp:
- * CCF/CCF/CompilerElements/Preprocessor.hpp:
- * CCF/CCF/IDL3/SemanticAction/Impl/Include.cpp:
- * CIDLC/cidlc.cpp:
-
- Implemented support for basic preprocessor directives:
- #ifdef, #ifndef, #else, and #endif as well as the -D
- command-line option. Also added exception handlers for
- filesystem exceptions.
-
- * CCF/CCF/IDL2/SemanticAction/Impl/Member.cpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Struct.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Struct.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Union.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Union.hpp:
-
- Implemented incomplete struct and union semantics which
- will appear in CORBA 3.1.
-
- * CCF/CCF/CodeGenerationKit/IndentationCxx.hpp:
-
- Code clean-ups.
-
-Fri Dec 30 11:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Dynamic_Component_Servant_Base.{h,cpp}:
- Moved the default constructor to public again, vc8 needs it, no
- idea why, have to recheck later
-
-Thu Dec 29 08:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp:
- Fixed implicit conversion warning
-
-Wed Dec 28 10:42:31 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/Old_Config_Handlers/DnC_Dump.cpp
- * tools/Config_Handlers/DnC_Dump.cpp
- * tools/Config_Handlers/PSPE_Handler.cpp
-
- Silenced some warnings from
- Fri Dec 23 11:49:04 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
-Wed Dec 28 12:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Context_Impl_Base.{h,cpp}:
- Readded the default constructor, some compilers need it, no idea
- why, will sort this out later but this at least makes the scoreboard
- less red
-
-Tue Dec 27 15:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Container_Base.{h,cpp}:
- * ciao/Context_Impl_Base.{h,cpp}:
- * ciao/Home_Servant_Impl_Base.{h,cpp}:
- * ciao/Servant_Impl_Base.{h,cpp}:
- * ciao/Swapping_Servant_Home_Impl_Base.{h,cpp}:
- * ciao/Swapping_Servant_Home_Impl_T.h:
- Moved the default constructor to the private section and removed
- the implementation with the assert
-
-Tue Dec 27 15:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplication/NodeApplication_Core.cpp:
- Initialise pointer with 0
-
- * DAnCE/NodeApplication/NodeApplication_Impl.{h,cpp,inl}:
- Just declare the default constructor private, it seems not
- to be used and the implementation was incorrect
-
-Fri Dec 23 11:49:04 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/Deployment_Configuration.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
- * DAnCE/NodeApplication/NodeApplication_Impl.h
- * DAnCE/NodeApplication/NodeApplication_Impl.inl
- * DAnCE/NodeApplication/RTConfig_Manager.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp
- * ciao/Container_Base.cpp
- * ciao/Deployment.idl
- * ciao/Deployment_Core.idl
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns_add.cdp
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns_remove.cdp
-
- Merged from CVS Branch CIAO_ReDAC_01. This merge enables DAnCE to
- handle dynamic updating component assemblies as well as its
- configurations on the fly. Major IDL changes include the following:
-
- 1) Modified the finishLaunch() operation on the DomainApplicationManager
- interface by adding an additional boolean parameter to differentiate
- whether this is for inital deployment or for redeployment.
-
- 2) Modified the finishLaunch() operation on the NodeApplicationManager
- interface by adding an additional boolean parameter to differentiate
- whether this is for inital deployment or for redeployment.
-
- 3) Added new operations perform_redeployment() to the ExecutionManager
- interface and NodeApplicationManager interface.
-
-Fri Dec 23 13:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/ComponentPackager/*
- Removed all these files, this component was using ziparchive and
- we didn't build it. After checking this with the DAnCE developers
- the conclustion was to zap it
-
-Thu Dec 22 19:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeManager/NodeManager_Impl.h:
- Removed not needed msvc pragma push/pop
-
-Thu Dec 22 19:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/ExecutionManager/DAM_Map.cpp:
- Made variable const
-
-Thu Dec 22 19:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
- Removed some old includes, make a variable const
-
- * DAnCE/DomainApplicationManager/Deployment_Configuration.{h,cpp}:
- Made get_default_node_manager_ior and get_node_manager_ior
- const methods
-
-Thu Dec 22 19:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp:
- Initialise pointers with 0
-
- * DAnCE/NodeApplicationManager/ImplementationInfo.h:
- Removed include of cpp file in this file, this file is not
- declaring a template
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h:
- Converted documentation to doxygen style
-
-Thu Dec 22 19:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/ComponentPackager/ComponentPackager.mpc:
- Use exceptions as base project
-
- * DAnCE/ComponentPackager/Component_Packager.cpp:
- Converted some documentation to doxygen style
-
- * DAnCE/ComponentPackager/Base_Packager.cpp:
- Fixed argument not used warnings
-
- * DAnCE/ComponentPackager/CPK_Packager.{h,cpp}:
- Small cleanup
-
-Thu Dec 22 14:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/ComponentPackager/Base_Packager.h:
- Changed documentation to doxygen style
-
-Tue Dec 20 08:07:51 2005 Simon McQueen <sm@prismtech.com>
-
- * CIAO version 0.4.8 released.
-
-Fri Dec 16 15:58:27 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
-
- Modified to fix a bug reported by Will Otte regarding
- DAnCE's parsing of deployment plan to find component
- servant and executor libraries. This is a temporary
- workaround so even if a component name happens to
- have "_exec" string inside it, DAnCE could still
- work correctly to find the corresponding servant
- and executor libraries.
-
-Fri Dec 16 14:57:21 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciao/Container_Base.cpp
- * ciao/Container_Base.h
-
- Fixed a bug about RT-CCM. The bug creeped out when the
- facet_consumer_poa_ is not configured properly to use
- application specific real-time policies. Thanks to
- Roland Schimmack <Roland.Schimmack @ gmx.de> for
- reporting this bug.
-
-Tue Dec 13 12:13:26 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * COPYING: Updated this file to mention compliance issues wrt the
- new "The Energy Policy Act of 2005". Thanks to Malcolm Spence
- for providing this.
-
-Tue Dec 13 09:07:21 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * CCF/Documentation/Build.html
- * CIDLC/README.html
-
- Updates to the CIDLC build documentation. Thanks to James Hill
- <hillj at isis dot vanderbilt dot edu> for completing this update.
-
-Mon Dec 12 13:20:00 UTC 2005 Simon Massey <sma@prismtech.com>
-
- * NEWS:
-
- Added Nanbor's changes from the release notes.
-
-Fri Dec 9 13:39:10 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/Any_Handler.h
-
- Added a missing include for the versioned namespace macros.
-
-Fri Dec 9 09:18:01 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * ciao/Server_init.h
-
- Added a missing include for the versioned namespace macros.
-
-Thu Dec 08 21:34:36 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * NEWS
-
- Updated the NEWS file to capture ReDaC stuff.
-
-Thu Dec 8 15:38:02 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * DAnCE/Old_Config_Handlers/DT_Handler.h:
- * ciao/Client_init.h:
- * ciao/Context_Impl_T.h:
- * ciao/Server_init.h:
- * ciao/Upgradeable_Context_Impl_T.h:
- * tools/Config_Handlers/Any_Handler.h:
-
- Fixed versioned namespace support. The versioning macros calls
- around forward declarations in the CORBA namespace were
- missing.
-
-Thu Dec 08 08:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp:
- Fixed compile errors with VxWorks
-
-Wed Dec 07 18:05:35 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciao/Deployment.idl
- * ciao/Deployment_Core.idl
- * doc/index.html
-
- Document CIAO specific interface extension/modifications.
-
-Wed Dec 7 12:41:22 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * CIDLC/ExecImplGenerator.cpp:
- * CIDLC/ExecImplHeaderGenerator.cpp:
- * CIDLC/ExecImplSourceGenerator.cpp:
- * CIDLC/ExecutorMappingGenerator.cpp:
- * CIDLC/ServantGenerator.cpp:
- * CIDLC/ServantHeaderGenerator.cpp:
- * CIDLC/ServantSourceGenerator.cpp:
- * CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp:
-
- Fixed a bug in regular expressions that are used to get rid of
- file suffixes.
-
-Tue Dec 06 12:33:27 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
-
- Fixed warnings in Borland.
-
-Tue Dec 6 16:14:01 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * ciao/Servant_Impl_T.cpp:
-
- Changed initialization of boolean class members from '0'
- to 'false'.
-
- * ciao/Servant_Impl_T.h:
-
- Added comments to the executor and context class members,
- providing info about where they are initialized.
-
-Mon Dec 5 14:43:48 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/ExecutionManager/ExecutionManager.mpc
-
- Removed superfluous dependancy on Xerces.
-
-Sun Dec 4 11:13:32 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/StaticConfigurator/StaticDAnCEParser.mpc
- * DAnCE/tests/Config_Handlers/handler_test.mpb
-
- Fix linking errors on Tiger.
-
-Fri Dec 2 11:25:48 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/RepositoryManager/RepositoryManager.idl
- * DAnCE/RepositoryManager/RepositoryManager.mpc
- * DAnCE/RepositoryManager/RepositoryManager_Impl.cpp
- * DAnCE/RepositoryManager/RepositoryManager_Impl.h
- * DAnCE/RepositoryManager/Repository_Manager.cpp
- * DAnCE/RepositoryManager/Repository_Manager_conf.h
- * DAnCE/RepositoryManager/Update_Plan.cpp
- * DAnCE/RepositoryManager/Update_Plan.h
-
- Removed the deprecated RepositoryManager implementation.
-
- * NEWS
-
- Updated the NEWS file to reflect this.
-
-Thu Dec 1 10:16:46 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
-
- Fixed some errors caused by previous commit.
-
-Thu Dec 1 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/DomainApplicationManager/Deployment_Configuration.cpp:
- Use 0 instead of NULL, NULL is not portable
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
- * DAnCE/NodeManager/NAM_Map.cpp:
- Initialise pointers with 0 and return false instead of 0
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h:
- Removed not needed msvc pragma push/pop
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp:
- Initialise pointers with 0 and removed some printf that seems some
- left over debugging statements
-
-Wed Nov 30 16:24:43 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * docs/schema/xsc-banner.h
-
- Updated this file to reflect recent export macro changes.
-
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/Deployment.cpp
- * tools/Config_Handlers/Deployment.hpp
- * tools/Config_Handlers/ccd.cpp
- * tools/Config_Handlers/ccd.hpp
- * tools/Config_Handlers/cdp.cpp
- * tools/Config_Handlers/cdp.hpp
- * tools/Config_Handlers/cid.cpp
- * tools/Config_Handlers/cid.hpp
- * tools/Config_Handlers/cpd.cpp
- * tools/Config_Handlers/cpd.hpp
- * tools/Config_Handlers/iad.cpp
- * tools/Config_Handlers/iad.hpp
- * tools/Config_Handlers/pcd.cpp
- * tools/Config_Handlers/pcd.hpp
- * tools/Config_Handlers/toplevel.cpp
- * tools/Config_Handlers/toplevel.hpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
-
- Made a borland specific fix apply to all compilers, hopefully
- fixing ICC builds.
-
-Wed Nov 30 12:30:59 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * examples/Hello/descriptors/flattened_deploymentplan.cdp
-
- Added metadata necessary to initialize an enum attribute.
-
-Wed Nov 30 08:06:00 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/RepositoryManager/RepositoryManager.mpc:
- This project is deprecated according to Will, so added
- requires+=dummy_label, it is up to the DAnCE people to
- decide when they zap this from the archive
-
-Fri Nov 25 10:50:00 UTC 2005 Simon Massey <sma@prismtech.com>
-
- * DAnCE/Old_Config_Handlers/XercesString.cpp
-
- Fixed prototype return type qualifier missmatch
-
-Thu Nov 24 16:04:05 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tools/Config_Handlers/Config_Handlers.mpc
-
- Added the MPC base project dependency to typecodefactory,
- and hopefully this should fix some linking erros on the
- scoreboard.
-
-Thu Nov 24 11:25:09 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/Old_Config_Handlers/XercesString.h
-
- Fixed a warning, since declaring function return type
- to be const is meaningless.
-
-Tue Nov 22 16:03:24 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplication/Container_Impl.cpp
-
- Fixed a memory management related bug, we should not
- explicitly call release() on the component object
- reference of var type.
-
-Mon Nov 21 17:24:42 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * NEWS:
-
- Updated with information about changes in CCF.
-
-Fri Nov 18 10:28:31 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * performance-tests/Benchmark/RoundTrip/RoundTrip.mpc
-
- Quashed a link time warning on OS X.
-
-Thu Nov 17 18:13:28 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * examples/Swapping/Sender/Sender.mpc:
-
- Added a dependency of SenderE.idl on itself, to keep
- VC8 from launching the IDL compiler on it until it
- has been generated by the CIDL compiler.
-
-Thu Nov 17 09:53:35 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
-
- Fixed warning about unused arguments
-
-Wed Nov 16 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Swapping/Sender/Sender_exec.cpp:
- Fixed warning in VxWorks build
-
-Mon Nov 14 22:43:09 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp
- * ciao/Deployment.idl
-
- Fixed some errors and warnings on the builds.
-
-Mon Nov 14 11:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Display/RateGen/RateGen_exec.h:
- * examples/BasicSP/EC/EC_exec.h:
- Timer id's are long, not int
-
- * ciao/Servant_Activator.cpp:
- Fixed 64bit conversion warnings
-
-Sun Nov 13 12:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Swapping/Sender/Sender_exec_2.cpp:
- * examples/Swapping/Sender/Sender_exec_1.cpp:
- * examples/Hello/Sender/Sender_exec.cpp:
- * examples/BasicSP/BMClosedED/BMClosedED_exec.cpp:
- Fixed warnings in VxWorks build
-
-Fri Nov 11 17:49:40 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.h
- * ciao/Deployment.idl
-
- More stuff regarding dynamic assembly management. These
- changes won't break existing initial deployment and
- configuration.
-
-Fri Nov 11 12:37:00 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.h
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp
- * DAnCE/NodeApplication/NodeApplication_Impl.h
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.h
- * DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
- * ciao/Deployment.idl
- * ciao/Deployment_Core.idl
-
- Added the DAnCE enhancements to support dynamic
- assembly management and reconfiguration. No actual
- implementation is there except some capability
- in NodeApplication_Impl servant class.
-
-Thu Nov 10 17:13:20 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * ciao/Servant_Activator.cpp
-
- Enhanced a debug output message.
-
-Thu Nov 10 06:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * ciao/Port_Activator_T.cpp:
- Fixed warning in VxWorks build
-
-Tue Nov 8 22:13:50 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * ciao/Container_Base.cpp
- * ciao/Servant_Impl_Base.cpp
- * ciao/Swapping_Servant_Home_Impl_T.cpp
- * ciao/Upgradeable_Context_Impl_T.cpp
- * examples/BasicSP/EC/EC.mpc
-
- Resolved some warnings in OS X relating to ambiguous conversions.
-
-Mon Nov 7 16:23:41 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/ExecutionManager/ExecutionManager.mpc
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
- * performance-tests/Benchmark/Benchmark.mpc
- * performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
- * performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc
-
- Resolving linking errors on OS X.
-
-Mon Nov 7 14:00:31 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * NEWS: Added some new TO-DO items.
-
-Mon Nov 07 10:23:09 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/RTNodeApp_Configurator.cpp: Fixed
- incorrect usage of extracting a struct from an any. Thanks much
- to Gan for helping with the debugging effort.
-
- * examples/Hello/descriptors/rt_run_test.pl:
- * examples/Hello/descriptors/rt-example.cdp: Enabled the use of RT
- policy sets and RT-enabled NodeApplication in the example by
- default.
-
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp: Minor enhancement to
- the debug messages.
-
-Fri Nov 04 16:44:29 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/ImplementtionInfo.cpp
-
- Changed to use the "copying" version of the Any insertion
- operator. Thanks Jeff Parsons for the help on this.
-
-Thu Nov 03 15:34:39 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
-
- Fixed a bug which causes unknow exception when calling
- startLaunch on NodeApplicationManager.
-
-Thu Nov 3 19:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeManager/NodeManager_Impl.cpp:
- Fixed implicit conversion warning in VxWorks build
-
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp:
- Renamed global variable count to counter to fix clash with STL count
- algoritm on VxWorks
-
-Thu Nov 03 11:14:52 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/RTConfig_Manager.cpp: Added a tad more and
- improve existing debugging print out.
-
- * examples/Hello/descriptors/rt-example.cdp:
- * examples/Hello/descriptors/rt-config-example.csr:
- * examples/Hello/descriptors/rt_run_test.pl: Changed to use a
- simpler version of DeploymentPlan for the test for now.
-
-Wed Nov 02 19:28:14 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * tools/Config_Handlers/RT-CCM/CB_Handler.cpp
- * tools/Config_Handlers/RT-CCM/TPL_Handler.cpp
- * tools/Config_Handlers/RT-CCM/PS_Handler.cpp
- * DAnCE/NodeApplication/RTConfig_Manager.cpp:
-
- Fixed some bugs related to populating/displaying ServerResource
- data structure.
-
-Wed Nov 02 14:55:14 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/RTNodeApp_Configurator.cpp: Fixed strings
- comparisons syntax.
-
- * DAnCE/NodeApplication/RTConfig_Manager.cpp:
- * DAnCE/NodeApplication/RTConfig_Manager.h: Added a new
- print_resource method and a bunch of debugging print out to help
- debugging XML parsing and propagating.
-
- * examples/Hello/descriptors/RTsvc.conf:
- * examples/Hello/descriptors/rt_run_test.pl: Added a RTsvc.conf
- file to start up the NodeApplication in RT mode.
-
- * examples/Hello/descriptors/rt-config-example.csr: Made RT
- resource definitions more realistic and added a new policy set
- for debugging XML parsing.
-
-Wed Nov 02 07:09:10 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp: Fixed
- usage of strings.
-
-Tue Nov 01 22:41:04 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp: Changed to
- insert policy set name into ContainerPolicySet property instead
- of the actual policy since we already have the policy set
- definitions when creating the NodeApplication.
-
-Tue Nov 01 13:44:58 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/RTConfig_Manager.cpp:
- * DAnCE/NodeApplication/RTConfig_Manager.h:
- * DAnCE/NodeApplication/RTConfig_Manager.inl:
- * DAnCE/NodeApplication/RTNodeApp_Configurator.cpp:
- * DAnCE/NodeApplication/RTNodeApp_Configurator.h: Integrated
- RTConfig_Manager with the RTNodeApp_Configurator.
-
-Mon Oct 31 22:37:42 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/NodeApplication/NodeApplication.mpc:
- * DAnCE/NodeApplication/NodeApplication/RTConfig_Manager.cpp:
- * DAnCE/NodeApplication/NodeApplication/RTConfig_Manager.h:
- * DAnCE/NodeApplication/NodeApplication/RTConfig_Manager.inl:
- Added the RT configuration manager that keep track of all the RT
- resources and policy sets in a NodeApplication. We still need
- to hook this up in the RTNodeApp_Configurator.
-
-Mon Oct 31 11:22:41 2005 <Gan Deng@SKYLINENETGEAR>
-
- * examples/Hello/descriptors/rt-config-example.csr
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
-
- Fixed the descriptor by adding the server resource id tag.
-
-Sun Oct 30 22:49:52 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeManager/Node_Manager.cpp: Fixed missing -a Get_Opt
- parameter and usage text. "-a" is used to set the optional
- command line flags for the NodeApplication. The logic was there
- in the Get_Opt loop but the Get_Opt object was not set to parse
- the flag and the usage text for Node_Manager didn't mention the
- flag either.
-
- Eventually, the optional command line flags should really come
- from the ServerResource XML file.
-
- * NodeApplicationManager/NodeApplicationManager_Impl.cpp: Added a
- missing space to separate optional command line flags from the
- default ones. The old one worked only when no optional
- commandline flags are presented.
-
- * ciao/Deployment_Core.idl: Removed "init" method from the
- Container interface since it is really implementation specific.
-
- * DAnCE/NodeApplication/Container_Impl.cpp:
- * DAnCE/NodeApplication/Container_Impl.h: Changed the signature of
- init method to take a PolicyList pointer directly since this is
- what we really need to initialize a container.
-
- * DAnCE/NodeApplication/Configurator_Factory.h: Added comments
- documentating how we should really support multiple external
- configurator module and how it could be done.
-
- * DAnCE/NodeApplication/Configurator_Factory.cpp: Changed DLL open
- to not closing down the DLL handle on exit. Otherwise,
- NodeApplication can not shut down cleanly.
-
- * DAnCE/NodeApplication/NodeApp_Configurator.h: Commented on the
- potential need for a finalizer method, or two.
-
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp: Added actual
- hooks to process optional policies for RT support.
-
- * DAnCE/NodeApplication/RTNodeApp_Configurator.cpp: Added code to
- parse the optional properties and manipulate RT resources and
- policies.
-
-Sun Oct 30 10:27:27 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/Configurator_Factory.cpp: Fixed a typo in
- command line option flag.
-
-Fri Oct 28 12:30:06 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * DAnCE/NodeApplication/Configurator_Factory.cpp
- * DAnCE/NodeApplication/RTNodeApp_Configurator.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
-
- Scoreboard fixes.
-
-Thu Oct 27 21:06:39 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * CCF/CCF/CodeGenerationKit/IndentationCxx.hpp:
-
- Added support for indentation of function arguments.
-
-Thu Oct 27 00:29:11 2005 Gan Deng <gan.deng@vanderbilt.edu>
-
- * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/NodeApplicationManager/Containers_Info_Map.h
- * DAnCE/NodeApplicationManager/ImplementationInfo.h
- * DAnCE/StaticConfigurator/StaticDAnCEParser.mpc
-
- Fixed some compilation and linking errors shown on the scoreboard,
- particularly for Windows builds.
-
-Thu Oct 27 07:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * rules.ciao.GNU:
- When cmd is the shell, use a different way to get the CIAO versions
- needed for building with VxWorks 5.5 with Windows as host
-
-Wed Oct 26 23:07:59 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * CIDLC/TypeNameEmitter.cpp:
- * CIDLC/TypeNameEmitter.hpp:
-
- Added backend support for the frontend features added by
- Boris in
-
- Tue Oct 25 14:08:44 2005 Boris Kolpackov <boris@kolpackov.net>.
-
-Wed Oct 26 16:16:32 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/NodeApp_Configurator.cpp:
- * DAnCE/NodeApplication/NodeApp_Configurator.h: Updated the
- NodeApp_Configurator to support pre_orb_initialize and
- post_orb_initialize methods which will be invoked before and
- after ORB_init is called.
-
- * DAnCE/NodeApplication/NodeApplication.cpp: Moved ORB_init into
- NodeApplication_Core object.
-
- * DAnCE/NodeApplication/NodeApplication_Core.cpp:
- * DAnCE/NodeApplication/NodeApplication_Core.h:
- * DAnCE/NodeApplication/NodeApplication_Core.inl: Moved the
- NodeApplication_Options and NoOp_Configurator classes into
- Configurator_Factory.* file. Refactored NodeApplication_Core to
- enable pre_orb_initialize and post_orb_initialize.
-
- * DAnCE/NodeApplication/Configurator_Factory.cpp:
- * DAnCE/NodeApplication/Configurator_Factory.h: Factored all the
- NodeApp_Configurtor creation strategies and NodeApplication
- configuration managements into these files. It also includes
- the no-ops NodeApp_Configurator used by non-RT NodeApplication.
-
- We should extend the argument parsing logic to support
- user-supplied NodeApp_Configurator at some point.
-
- * DAnCE/NodeApplication/NodeApplication.mpc:
- * DAnCE/NodeApplication/RTNA_Configurator_Export.h:
- * DAnCE/NodeApplication/RTNodeApp_Configurator.cpp:
- * DAnCE/NodeApplication/RTNodeApp_Configurator.h: Added the
- dynamic library for real-time configuration. The current
- implementation set up the NodeApplication process by enabling
- the RTCORBA support. We still need to add the capability to
- parse and allocate RT resources and policies.
-
-Wed Oct 26 18:37:00 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Array.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Elements.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Elements.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Sequence.hpp:
- * CCF/CCF/IDL2/SemanticGraph/String.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Union.hpp:
-
- Corrected a left/right node mismatch in
- type-arguments->specialization relation.
-
-Wed Oct 26 16:37:26 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp:
-
- Clear array type before starting sequence, string, etc.,
- declarations.
-
-Tue Oct 25 14:08:44 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * CCF/CCF/IDL2/Parser.cpp:
- * CCF/CCF/IDL2/Parser.hpp:
- * CCF/CCF/IDL2/SemanticGraph.hpp:
- * CCF/CCF/IDL2/Traversal.hpp:
- * CCF/CCF/IDL2/SemanticAction/Typedef.hpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Typedef.cpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Typedef.hpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Union.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Array.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Array.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Elements.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Elements.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Sequence.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Sequence.hpp:
- * CCF/CCF/IDL2/SemanticGraph/String.cpp:
- * CCF/CCF/IDL2/SemanticGraph/String.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Union.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Union.hpp:
- * CCF/CCF/IDL2/Traversal/Array.cpp:
- * CCF/CCF/IDL2/Traversal/Array.hpp:
- * CCF/CCF/IDL2/Traversal/Elements.hpp:
- * CCF/CCF/IDL2/Traversal/IntExpression.hpp:
- * CCF/CCF/IDL2/Traversal/Sequence.cpp:
- * CCF/CCF/IDL2/Traversal/Sequence.hpp:
- * CCF/CCF/IDL2/Traversal/String.cpp:
- * CCF/CCF/IDL2/Traversal/String.hpp:
-
- Implemented the second part of the const expression support.
- This includes bounded sequences, strings, and arrays.
-
-Mon Oct 24 09:36:28 2005 Venkita Subramonian <venkita@cs.wustl.edu>
-
- * docs/static_dance.html:
-
- Corrected minor error with display of figures.
-
-Mon Oct 24 08:10:29 2005 Venkita Subramonian <venkita@cs.wustl.edu>
-
- * DAnCE/NodeApplication/NodeApplication_Impl.{h,inl,cpp}:
- * DAnCE/NodeApplication/Container_Impl.{h,inl,cpp}:
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.{cpp,inl,h}:
- * DAnCE/NodeManager/NodeManager_Impl.{cpp,h}:
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc:
- * DAnCE/NodeManager/NodeManager.mpc:
- * DAnCE/StaticConfigurator/README:
- * DAnCE/StaticConfigurator/StaticDAnCEParser.{cpp,mpc}:
- * DAnCE/StaticConfigurator/StaticDAnCEApp.{cpp.tmpl,mpc.tmpl}:
- * docs/static_dance.html:
- * docs/imgs/dance_arch.{vsd,jpg}:
- * docs/imgs/static_dance_arch.{vsd,jpg}:
- * docs/imgs/static_dance_impl.{vsd,jpg}:
-
- Added Static D&C capability to CIAO. See
- $CIAO_ROOT/docs/static_dance.html for further details.
-
-Fri Oct 21 13:58:13 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * tools/Config_Handlers/DynAny_Handler.mpc
-
- Modified to make this not build on systems built with minimum
- corba.
-
-Fri Oct 21 09:56:10 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/RTNodeApplication/RTNodeApplication.mpc: Removed the MPC
- file to prevent it from being built.
-
- * DAnCE/RTNodeApplication/REAME: Stated the directory has been
- depricated.
-
-Fri Oct 21 13:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp:
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp:
- Fixed unitialized warnings
-
-Fri Oct 21 10:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/Old_Config_Handlers/Process_Element_T.cpp:
- Fixed 64bit warnings
-
-Thu Oct 20 09:07:21 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- * DAnCE/NodeApplication/NodeApp_Configurator.{h,cpp}:
- Actually, destructors can be pure virtual. They just can't be
- defined in header files.
-
-Thu Oct 20 09:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * DAnCE/NodeApplication/NodeApp_Configurator.{h,cpp}:
- Destructor can't be pure virtual
-
-Wed Oct 19 15:03:56 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
-
- These changes are made to add support for RT-capable
- NodeApplication.
-
- * ciao/CCM_Core.mpc:
- * ciao/Container_Impl.h:
- * ciao/Container_Impl.inl:
- * ciao/Container_Impl.cpp:
- * ciao/NodeApplication_Impl.h:
- * ciao/NodeApplication_Impl.inl:
- * ciao/NodeApplication_Impl.cpp: Moved NodeApplication and
- Container interface implementations under DAnCE/NodeApplication/
- subdir. They are coupled with NodeApplication implementation
- now.
-
- * DAnCE/NodeApplication/NodeApplication.mpc: Changed to
- incorporate the following files/changes.
-
- * DAnCE/NodeApplication/NodeApp_Configurator.h:
- * DAnCE/NodeApplication/NodeApp_Configurator.cpp: Added abstract,
- base NodeApp_Configurator class to define the interface for
- configuring NodeApplication internal.
-
- * DAnCE/NodeApplication/Container_Impl.h:
- * DAnCE/NodeApplication/Container_Impl.inl:
- * DAnCE/NodeApplication/Container_Impl.cpp: Moved from ciao/
- subdir.
-
- * DAnCE/NodeApplication/NodeApplication_Impl.h:
- * DAnCE/NodeApplication/NodeApplication_Impl.inl:
- * DAnCE/NodeApplication/NodeApplication_Impl.cpp: Changed to
- depend on a concrete NodeApp_Configurator to perform the
- configuration.
-
- * DAnCE/NodeApplication/NodeApplication_Core.h:
- * DAnCE/NodeApplication/NodeApplication_Core.inl:
- * DAnCE/NodeApplication/NodeApplication_Core.cpp:
- * DAnCE/NodeApplication/NodeApplication.cpp: Restructured the
- NodeApplication implementation so that the ORB event loop can be
- run on the main thread or on a separate thread, using the FIFO
- scheduling class.
-
- A new create_configurator method in NodeApplication_Core will
- create the "right" concrete configurator based on the command
- line flags. We will support a RT configuration soon.
- Currently, there's only a NoOp_Configurator for running
- NodeApplication without RT support.
-
- We will add the RT configuration as a dynamic library and will
- hook it up via ACE_DLL in a few days.
-
-Tue Oct 18 16:50:24 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * NEWS
-
- Updated release notes.
-
Mon Oct 17 13:21:59 2005 William Otte <wotte@dre.vanderbilt.edu>
- * docs/schema/ccd.xsd
+ * docs/schema/ccd.xsd
- Updated to work with expected format for Repoman/ComponentPackager
+ Updated to work with expected format for Repoman/ComponentPackager
Fri Oct 14 17:22:59 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/Deployment.cpp
- * tools/Config_Handlers/Deployment.hpp
- * tools/Config_Handlers/ccd.cpp
- * tools/Config_Handlers/ccd.hpp
- * tools/Config_Handlers/cdd.cpp
- * tools/Config_Handlers/cdd.hpp
- * tools/Config_Handlers/cdp.cpp
- * tools/Config_Handlers/cdp.hpp
- * tools/Config_Handlers/cid.cpp
- * tools/Config_Handlers/cid.hpp
- * tools/Config_Handlers/cpd.cpp
- * tools/Config_Handlers/cpd.hpp
- * tools/Config_Handlers/iad.cpp
- * tools/Config_Handlers/iad.hpp
- * tools/Config_Handlers/pcd.cpp
- * tools/Config_Handlers/pcd.hpp
- * tools/Config_Handlers/toplevel.cpp
- * tools/Config_Handlers/toplevel.hpp
-
- Regerated with new version of XSC which implements some heavy
- optimizations.
-
+ * tools/Config_Handlers/Basic_Deployment_Data.cpp
+ * tools/Config_Handlers/Basic_Deployment_Data.hpp
+ * tools/Config_Handlers/Deployment.cpp
+ * tools/Config_Handlers/Deployment.hpp
+ * tools/Config_Handlers/ccd.cpp
+ * tools/Config_Handlers/ccd.hpp
+ * tools/Config_Handlers/cdd.cpp
+ * tools/Config_Handlers/cdd.hpp
+ * tools/Config_Handlers/cdp.cpp
+ * tools/Config_Handlers/cdp.hpp
+ * tools/Config_Handlers/cid.cpp
+ * tools/Config_Handlers/cid.hpp
+ * tools/Config_Handlers/cpd.cpp
+ * tools/Config_Handlers/cpd.hpp
+ * tools/Config_Handlers/iad.cpp
+ * tools/Config_Handlers/iad.hpp
+ * tools/Config_Handlers/pcd.cpp
+ * tools/Config_Handlers/pcd.hpp
+ * tools/Config_Handlers/toplevel.cpp
+ * tools/Config_Handlers/toplevel.hpp
+
+ Regerated with new version of XSC which implements some heavy
+ optimizations.
+
Fri Oct 14 14:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
* tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp:
@@ -3359,12 +54,12 @@ Thu Oct 13 15:42:12 2005 William Otte <wotte@dre.vanderbilt.edu>
Wed Oct 12 14:13:09 2005 William Otte <wotte@dre.vanderbilt.edu>
- * examples/Hello/Sender/Sender.idl
- * examples/Hello/Sender/Sender_exec.cpp
- * examples/Hello/Sender/Sender_exec.h
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
+ * examples/Hello/Sender/Sender.idl
+ * examples/Hello/Sender/Sender_exec.cpp
+ * examples/Hello/Sender/Sender_exec.h
+ * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
- Example of initializing enumerated attributes.
+ Example of initializing enumerated attributes.
Wed Oct 12 15:08:31 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -3389,55 +84,55 @@ Wed Oct 12 08:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Tue Oct 11 16:37:01 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/Deployment.cpp
- * tools/Config_Handlers/Deployment.hpp
- * tools/Config_Handlers/ccd.cpp
- * tools/Config_Handlers/ccd.hpp
- * tools/Config_Handlers/cdd.cpp
- * tools/Config_Handlers/cdd.hpp
- * tools/Config_Handlers/cdp.cpp
- * tools/Config_Handlers/cdp.hpp
- * tools/Config_Handlers/cid.cpp
- * tools/Config_Handlers/cid.hpp
- * tools/Config_Handlers/cpd.cpp
- * tools/Config_Handlers/cpd.hpp
- * tools/Config_Handlers/iad.cpp
- * tools/Config_Handlers/iad.hpp
- * tools/Config_Handlers/pcd.cpp
- * tools/Config_Handlers/pcd.hpp
- * tools/Config_Handlers/toplevel.cpp
- * tools/Config_Handlers/toplevel.hpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
-
- Fixed a bug which broke the gaurantee that element order in the
- XSC type would be the same as the element order in the instance
- document.
-
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
-
- Fixed a runtime error and removed some debugging information.
+ * tools/Config_Handlers/Basic_Deployment_Data.cpp
+ * tools/Config_Handlers/Basic_Deployment_Data.hpp
+ * tools/Config_Handlers/Deployment.cpp
+ * tools/Config_Handlers/Deployment.hpp
+ * tools/Config_Handlers/ccd.cpp
+ * tools/Config_Handlers/ccd.hpp
+ * tools/Config_Handlers/cdd.cpp
+ * tools/Config_Handlers/cdd.hpp
+ * tools/Config_Handlers/cdp.cpp
+ * tools/Config_Handlers/cdp.hpp
+ * tools/Config_Handlers/cid.cpp
+ * tools/Config_Handlers/cid.hpp
+ * tools/Config_Handlers/cpd.cpp
+ * tools/Config_Handlers/cpd.hpp
+ * tools/Config_Handlers/iad.cpp
+ * tools/Config_Handlers/iad.hpp
+ * tools/Config_Handlers/pcd.cpp
+ * tools/Config_Handlers/pcd.hpp
+ * tools/Config_Handlers/toplevel.cpp
+ * tools/Config_Handlers/toplevel.hpp
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+
+ Fixed a bug which broke the gaurantee that element order in the
+ XSC type would be the same as the element order in the instance
+ document.
+
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
+
+ Fixed a runtime error and removed some debugging information.
Mon Oct 10 17:37:20 2005 Stoyan Paunov spaunov@isis.vanderbilt.edu
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
+ * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
- reverted a change we made earlier to accomodate older verisons of ZZIPLIB
+ reverted a change we made earlier to accomodate older verisons of ZZIPLIB
Mon Oct 10 15:46:57 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
+ * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
+ * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
- Trivial corrections for portability problems.
+ Trivial corrections for portability problems.
- * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
+ * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
- Updated to properlly use base projects.
+ Updated to properlly use base projects.
Mon Oct 10 20:07:39 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -3454,128 +149,128 @@ Mon Oct 10 20:07:39 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Mon Oct 10 15:05:00 2005 William Otte <wotte@dre.vanderbilt.edu>
- * docs/schema/Basic_Deployment_Data.xsd
- * docs/schema/cdd.xsd
+ * docs/schema/Basic_Deployment_Data.xsd
+ * docs/schema/cdd.xsd
- Checking in some updated schema for domain information.
+ Checking in some updated schema for domain information.
Mon Oct 10 13:53:15 2005 Will Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/Config_Handlers.mpc
- * tools/Config_Handlers/Deployment.hpp
- * tools/Config_Handlers/DynAny_Handler.mpc
- * tools/Config_Handlers/IDREF_Base.h
- * tools/Config_Handlers/XSC_XML_Handlers_Export.h
- * tools/Config_Handlers/ccd.hpp
- * tools/Config_Handlers/cdd.hpp
- * tools/Config_Handlers/cdp.hpp
- * tools/Config_Handlers/cid.hpp
- * tools/Config_Handlers/cpd.hpp
- * tools/Config_Handlers/iad.hpp
- * tools/Config_Handlers/pcd.hpp
- * tools/Config_Handlers/toplevel.hpp
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.h
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler_Export.h
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.h
- * tools/Config_Handlers/RT-CCM/CB_Handler.h
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- * tools/Config_Handlers/RT-CCM/CLA_Handler.h
- * tools/Config_Handlers/RT-CCM/OC_Handler.h
- * tools/Config_Handlers/RT-CCM/OR_Handler.h
- * tools/Config_Handlers/RT-CCM/PM_Handler.h
- * tools/Config_Handlers/RT-CCM/PS_Handler.h
- * tools/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
- * tools/Config_Handlers/RT-CCM/RT_CCM_Handlers_Export.h
- * tools/Config_Handlers/RT-CCM/SRD_Handler.h
- * tools/Config_Handlers/RT-CCM/TPL_Handler.h
- * tools/Config_Handlers/RT-CCM/TP_Handler.h
- * tools/Config_Handlers/RT-CCM/input.csr
- * tools/Config_Handlers/Utils/CIAO_XML_Utils_Export.h
- * tools/Config_Handlers/Utils/Utils.mpc
- * tools/Config_Handlers/Utils/XML_Error_Handler.h
- * tools/Config_Handlers/Utils/XML_Helper.h
- * tools/Config_Handlers/Utils/XML_Schema_Resolver.h
-
- Fixed messy export macro usage. This will clean up builds on
- Windows.
+ * tools/Config_Handlers/Basic_Deployment_Data.hpp
+ * tools/Config_Handlers/Config_Handlers.mpc
+ * tools/Config_Handlers/Deployment.hpp
+ * tools/Config_Handlers/DynAny_Handler.mpc
+ * tools/Config_Handlers/IDREF_Base.h
+ * tools/Config_Handlers/XSC_XML_Handlers_Export.h
+ * tools/Config_Handlers/ccd.hpp
+ * tools/Config_Handlers/cdd.hpp
+ * tools/Config_Handlers/cdp.hpp
+ * tools/Config_Handlers/cid.hpp
+ * tools/Config_Handlers/cpd.hpp
+ * tools/Config_Handlers/iad.hpp
+ * tools/Config_Handlers/pcd.hpp
+ * tools/Config_Handlers/toplevel.hpp
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.h
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler_Export.h
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.h
+ * tools/Config_Handlers/RT-CCM/CB_Handler.h
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+ * tools/Config_Handlers/RT-CCM/CLA_Handler.h
+ * tools/Config_Handlers/RT-CCM/OC_Handler.h
+ * tools/Config_Handlers/RT-CCM/OR_Handler.h
+ * tools/Config_Handlers/RT-CCM/PM_Handler.h
+ * tools/Config_Handlers/RT-CCM/PS_Handler.h
+ * tools/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
+ * tools/Config_Handlers/RT-CCM/RT_CCM_Handlers_Export.h
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.h
+ * tools/Config_Handlers/RT-CCM/TPL_Handler.h
+ * tools/Config_Handlers/RT-CCM/TP_Handler.h
+ * tools/Config_Handlers/RT-CCM/input.csr
+ * tools/Config_Handlers/Utils/CIAO_XML_Utils_Export.h
+ * tools/Config_Handlers/Utils/Utils.mpc
+ * tools/Config_Handlers/Utils/XML_Error_Handler.h
+ * tools/Config_Handlers/Utils/XML_Helper.h
+ * tools/Config_Handlers/Utils/XML_Schema_Resolver.h
+
+ Fixed messy export macro usage. This will clean up builds on
+ Windows.
Sun Oct 9 19:22:44 CDT 2005 Stoyan Paunov spaunov@isis.vanderbilt.edu
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
- * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
+ * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
+ * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
- Fixing a few includes after Will Otte's latest changes.
+ Fixing a few includes after Will Otte's latest changes.
Sun Oct 9 09:51:41 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/DynAny_Handler.mpc
+ * tools/Config_Handlers/DynAny_Handler.mpc
- Moved this file down a level to make MPC stop complaining.
+ Moved this file down a level to make MPC stop complaining.
Fri Oct 7 18:22:40 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Any_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.h
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
+ * tools/Config_Handlers/Any_Handler.cpp
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.h
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
- *Hopefully* fix compile problem on Windows.
+ *Hopefully* fix compile problem on Windows.
Fri Oct 7 18:25:11 2005 Will Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/ADD_Handler.cpp
- * tools/Config_Handlers/DP_Handler.cpp
- * tools/Config_Handlers/IDD_Handler.cpp
- * tools/Config_Handlers/MDD_Handler.cpp
+ * tools/Config_Handlers/ADD_Handler.cpp
+ * tools/Config_Handlers/DP_Handler.cpp
+ * tools/Config_Handlers/IDD_Handler.cpp
+ * tools/Config_Handlers/MDD_Handler.cpp
- Fix runtime error.
+ Fix runtime error.
Fri Oct 7 16:18:40 2005 Will Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Config_Handlers.mpc
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.h
+ * tools/Config_Handlers/Config_Handlers.mpc
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.h
- Fix for a compile problem.
+ Fix for a compile problem.
Fri Oct 7 14:25:09 2005 William Otte <wotte@dre.vanderbilt.edu>
* tools/Config_Handlers/DynAny_Handler/DataType_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DataType_Handler.h
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.h
- * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.mpc
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
- * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.h
- * tools/Config_Handlers/Any_Handler.cpp
-
- Add support for using Dynamic Any. This will evolve in the coming
- weeks into more complete support for complex types.
-
- * tools/Config_Handlers/ADD_Handler.cpp
- * tools/Config_Handlers/ADD_Handler.h
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/CCD_Handler.cpp
- * tools/Config_Handlers/CCD_Handler.h
- * tools/Config_Handlers/CEPE_Handler.cpp
- * tools/Config_Handlers/CEPE_Handler.h
- * tools/Config_Handlers/DP_Handler.cpp
- * tools/Config_Handlers/DP_PCD_Handler.cpp
- * tools/Config_Handlers/DP_PCD_Handler.h
- * tools/Config_Handlers/ERE_Handler.cpp
- * tools/Config_Handlers/ERE_Handler.h
- * tools/Config_Handlers/ADD_Handler.cpp
- * tools/Config_Handlers/IDD_Handler.h
- * tools/Config_Handlers/MDD_Handler.cpp
- * tools/Config_Handlers/MDD_Handler.h
- * tools/Config_Handlers/PCD_Handler.cpp
- * tools/Config_Handlers/PSPE_Handler.cpp
- * tools/Config_Handlers/PSPE_Handler.h
-
- Optimization made possible by improvements in XSC.
+ * tools/Config_Handlers/DynAny_Handler/DataType_Handler.h
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.cpp
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.h
+ * tools/Config_Handlers/DynAny_Handler/DynAny_Handler.mpc
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.cpp
+ * tools/Config_Handlers/DynAny_Handler/DynEnum_Handler.h
+ * tools/Config_Handlers/Any_Handler.cpp
+
+ Add support for using Dynamic Any. This will evolve in the coming
+ weeks into more complete support for complex types.
+
+ * tools/Config_Handlers/ADD_Handler.cpp
+ * tools/Config_Handlers/ADD_Handler.h
+ * tools/Config_Handlers/Basic_Deployment_Data.cpp
+ * tools/Config_Handlers/Basic_Deployment_Data.hpp
+ * tools/Config_Handlers/CCD_Handler.cpp
+ * tools/Config_Handlers/CCD_Handler.h
+ * tools/Config_Handlers/CEPE_Handler.cpp
+ * tools/Config_Handlers/CEPE_Handler.h
+ * tools/Config_Handlers/DP_Handler.cpp
+ * tools/Config_Handlers/DP_PCD_Handler.cpp
+ * tools/Config_Handlers/DP_PCD_Handler.h
+ * tools/Config_Handlers/ERE_Handler.cpp
+ * tools/Config_Handlers/ERE_Handler.h
+ * tools/Config_Handlers/ADD_Handler.cpp
+ * tools/Config_Handlers/IDD_Handler.h
+ * tools/Config_Handlers/MDD_Handler.cpp
+ * tools/Config_Handlers/MDD_Handler.h
+ * tools/Config_Handlers/PCD_Handler.cpp
+ * tools/Config_Handlers/PSPE_Handler.cpp
+ * tools/Config_Handlers/PSPE_Handler.h
+
+ Optimization made possible by improvements in XSC.
Fri Oct 7 14:20:36 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
@@ -3588,7 +283,7 @@ Fri Oct 7 14:20:36 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
Fri Oct 7 19:14:29 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
* CIAO-INSTALL.html:
-
+
Updated CIDL compiler section with instructions for building
the CIDL compiler using MPC.
@@ -3616,22 +311,22 @@ Thu Oct 6 16:11:56 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
Thu Oct 6 15:32:41 CDT 2005 Stoyan Paunov spaunov@isis.vanderbilt.edu
- * DAnCE/spec_RepositoryManager/PC_Updater.cpp
- * DAnCE/spec_RepositoryManager/PC_Updater.h
- * DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
- * DAnCE/spec_RepositoryManager/PC_Updater_T.h
+ * DAnCE/spec_RepositoryManager/PC_Updater.cpp
+ * DAnCE/spec_RepositoryManager/PC_Updater.h
+ * DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
+ * DAnCE/spec_RepositoryManager/PC_Updater_T.h
- Added these files which implement a PackageConfiguration visitor.
- The visitor helps deal with the internal complexity of the PackageConfiguration
- and helps preseve my sanity ;)
+ Added these files which implement a PackageConfiguration visitor.
+ The visitor helps deal with the internal complexity of the PackageConfiguration
+ and helps preseve my sanity ;)
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h
+ * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
+ * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h
+ * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
+ * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h
- Some more code. With this the package distribution part of the RM
- is ready. I still need to clean up a few details. This is coming soon.
+ Some more code. With this the package distribution part of the RM
+ is ready. I still need to clean up a few details. This is coming soon.
Thu Oct 6 15:05:30 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
@@ -3675,47 +370,47 @@ Thu Oct 6 08:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Wed Oct 5 17:42:24 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Any_Handler.cpp
+ * tools/Config_Handlers/Any_Handler.cpp
- Part of previous commit.
+ Part of previous commit.
Wed Oct 5 17:07:07 2005 William Otte <wotte@dre.vanderbilt.edu>
- * docs/schema/Basic_Deployment_Data.xsd
- * docs/schema/cdd.xsd
-
- Moved recursive Domain data into cdd.xsd. This will hopefully
- lessen the time required to compile.
-
- * tools/Config_Handlers/CPD_Handler.cpp
- * tools/Config_Handlers/DataType_Handler.cpp
-
- Fixed some potential run-time bugs in Borland. Style
- corrections.
-
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
- * tools/Config_Handlers/Deployment.cpp
- * tools/Config_Handlers/Deployment.hpp
- * tools/Config_Handlers/ccd.cpp
- * tools/Config_Handlers/ccd.hpp
- * tools/Config_Handlers/cdd.cpp
- * tools/Config_Handlers/cdd.hpp
- * tools/Config_Handlers/cdp.cpp
- * tools/Config_Handlers/cdp.hpp
- * tools/Config_Handlers/cid.cpp
- * tools/Config_Handlers/cid.hpp
- * tools/Config_Handlers/iad.cpp
- * tools/Config_Handlers/iad.hpp
- * tools/Config_Handlers/pcd.cpp
- * tools/Config_Handlers/pcd.hpp
- * tools/Config_Handlers/test.cdp
- * tools/Config_Handlers/toplevel.cpp
- * tools/Config_Handlers/toplevel.hpp
-
- Regerated with new version of XSC. Major changes:
- * Now only one accessor and one mutator per document element
- * Changes in schema above.
+ * docs/schema/Basic_Deployment_Data.xsd
+ * docs/schema/cdd.xsd
+
+ Moved recursive Domain data into cdd.xsd. This will hopefully
+ lessen the time required to compile.
+
+ * tools/Config_Handlers/CPD_Handler.cpp
+ * tools/Config_Handlers/DataType_Handler.cpp
+
+ Fixed some potential run-time bugs in Borland. Style
+ corrections.
+
+ * tools/Config_Handlers/Basic_Deployment_Data.cpp
+ * tools/Config_Handlers/Basic_Deployment_Data.hpp
+ * tools/Config_Handlers/Deployment.cpp
+ * tools/Config_Handlers/Deployment.hpp
+ * tools/Config_Handlers/ccd.cpp
+ * tools/Config_Handlers/ccd.hpp
+ * tools/Config_Handlers/cdd.cpp
+ * tools/Config_Handlers/cdd.hpp
+ * tools/Config_Handlers/cdp.cpp
+ * tools/Config_Handlers/cdp.hpp
+ * tools/Config_Handlers/cid.cpp
+ * tools/Config_Handlers/cid.hpp
+ * tools/Config_Handlers/iad.cpp
+ * tools/Config_Handlers/iad.hpp
+ * tools/Config_Handlers/pcd.cpp
+ * tools/Config_Handlers/pcd.hpp
+ * tools/Config_Handlers/test.cdp
+ * tools/Config_Handlers/toplevel.cpp
+ * tools/Config_Handlers/toplevel.hpp
+
+ Regerated with new version of XSC. Major changes:
+ * Now only one accessor and one mutator per document element
+ * Changes in schema above.
Wed Oct 5 14:44:31 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
@@ -3728,29 +423,29 @@ Wed Oct 5 14:44:31 2005 Jaiganesh B <jai@dre.vanderbilt.edu>
Tue Oct 4 14:08:24 2005 William Otte <wotte@dre.vanderbilt.edu>
- * docs/schema/Basic_Deployment_Data.xsd
- * docs/schema/unused_elements.xsd
- * tools/Config_Handlers/Basic_Deployment_Data.cpp
- * tools/Config_Handlers/Basic_Deployment_Data.hpp
+ * docs/schema/Basic_Deployment_Data.xsd
+ * docs/schema/unused_elements.xsd
+ * tools/Config_Handlers/Basic_Deployment_Data.cpp
+ * tools/Config_Handlers/Basic_Deployment_Data.hpp
- Updated to include domain information (ie, bridge, interconnect).
+ Updated to include domain information (ie, bridge, interconnect).
- * tools/Config_Handlers/RT-CCM/SRD_Handler.h
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.h
- Cosmetic changes.
+ Cosmetic changes.
Mon Oct 3 14:27:39 2005 William Otte <wotte@dre.vanderbilt.edu>
- * CIAO-INSTALL.html
+ * CIAO-INSTALL.html
- Updated install documentation to reflect the restructuring.
+ Updated install documentation to reflect the restructuring.
Mon Oct 3 12:48:26 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- Commented out some debugging information.
+ Commented out some debugging information.
Mon Oct 3 15:44:15 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -3761,26 +456,26 @@ Mon Oct 3 15:44:15 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Mon Oct 3 10:14:19 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- Corrected a bug in parameter checking.
+ Corrected a bug in parameter checking.
- * DAnCE/NodeManager/Node_Manager.cpp
+ * DAnCE/NodeManager/Node_Manager.cpp
- Added documentation for the -d command line options.
+ Added documentation for the -d command line options.
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- * tools/Config_Handlers/RT-CCM/SRD_Handler.cpp
- * tools/Config_Handlers/RT-CCM/SRD_Handler.h
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.cpp
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.h
- New functionality in the Config_Handlers.
+ New functionality in the Config_Handlers.
Mon Oct 3 10:00:08 2005 William Otte <wotte@dre.vanderbilt.edu>
- * bin/valgrind_nodedaemon.py
+ * bin/valgrind_nodedaemon.py
- Script to help launch nodemanager/nodeapplication under Valgrind.
+ Script to help launch nodemanager/nodeapplication under Valgrind.
Mon Oct 3 000:31:09 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -3823,44 +518,44 @@ Friday Sep 30 15:12:43 2005 William Otte <wotte@dre.vanderbilt.edu>
Fri Sep 30 15:11:47 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * NEWS
+ * NEWS
- Updated the NEWS file.
+ Updated the NEWS file.
Fri Sep 30 07:53:47 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/RT-CCM/SRD_Handler.cpp
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.cpp
- Should have been part of the previous commit.
+ Should have been part of the previous commit.
Thu Sep 29 18:11:25 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * ciao/Container_Impl.cpp
- * ciao/NodeApplication_Impl.cpp
- * ciao/Upgradeable_Context_Impl_T.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+ * ciao/Container_Impl.cpp
+ * ciao/NodeApplication_Impl.cpp
+ * ciao/Upgradeable_Context_Impl_T.cpp
- Fuzz errors.
+ Fuzz errors.
- * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
- * tools/Config_Handlers/RT-CCM/Config_Handlers_Export.h
- * tools/Config_Handlers/RT-CCM/SRD_Handler.h
- * tools/Config_Handlers/Utils/Config_Handlers_Export.h
+ * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
+ * tools/Config_Handlers/RT-CCM/Config_Handlers_Export.h
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.h
+ * tools/Config_Handlers/Utils/Config_Handlers_Export.h
- Correction for a emulated exception error.
+ Correction for a emulated exception error.
Thu Sep 29 13:01:23 2005 William Otte <wotte@dre.vanderbilt.edu>
- * ciao/Version.h
+ * ciao/Version.h
- Corrected the version number.
+ Corrected the version number.
Thu Sep 29 11:34:55 2005 William Otte <wotte@dre.vanderbilt.edu>
- * ciao/Swapping_Servant_Home_Impl_T.cpp
+ * ciao/Swapping_Servant_Home_Impl_T.cpp
- Fixed build problem on non-exception systems.
+ Fixed build problem on non-exception systems.
Thu Sep 29 07:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -3874,115 +569,115 @@ Thu Sep 29 06:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Wed Sep 28 16:44:39 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * docs/schema/CIAOServerResources.xsd
+ * docs/schema/CIAOServerResources.xsd
- Updated to support RT-CCM.
+ Updated to support RT-CCM.
Wed Sep 28 14:44:39 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- New version of the XSC including additional features needed for
- RT-CCM.
+ New version of the XSC including additional features needed for
+ RT-CCM.
Wed Sep 28 08:24:32 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Utils/Utils.mpc
- * tools/Config_Handlers/Utils/XML_Helper.cpp
- * tools/Config_Handlers/Utils/XML_Schema_Resolver.cpp
- * tools/Config_Handlers/Utils/XML_Schema_Resolver.h
+ * tools/Config_Handlers/Utils/Utils.mpc
+ * tools/Config_Handlers/Utils/XML_Helper.cpp
+ * tools/Config_Handlers/Utils/XML_Schema_Resolver.cpp
+ * tools/Config_Handlers/Utils/XML_Schema_Resolver.h
- Implemented a schema resolver so that the XML parser till grab the
- schemata from $CIAO_ROOT/docs/schema.
+ Implemented a schema resolver so that the XML parser till grab the
+ schemata from $CIAO_ROOT/docs/schema.
- * docs/tutorials/Quoter/Simple/descriptors/Deployment.xsd
- * docs/tutorials/Quoter/Simple/descriptors/Modified_Deployment.xsd
- * examples/BasicSP/descriptors/Deployment.xsd
- * examples/Display/descriptors/Deployment.xsd
- * examples/Display/descriptors/Modified_Deployment.xsd
- * examples/Hello/descriptors/Deployment.xsd
- * examples/Hello/descriptors/Modified_Deployment.xsd
- * examples/Hello/descriptors/XMI.xsd
- * examples/Hello/descriptors/Deployment.xsd
- * examples/Hello/descriptors/Modified_Deployment.xsd
- * examples/Hello/descriptors/XMI.xsd
+ * docs/tutorials/Quoter/Simple/descriptors/Deployment.xsd
+ * docs/tutorials/Quoter/Simple/descriptors/Modified_Deployment.xsd
+ * examples/BasicSP/descriptors/Deployment.xsd
+ * examples/Display/descriptors/Deployment.xsd
+ * examples/Display/descriptors/Modified_Deployment.xsd
+ * examples/Hello/descriptors/Deployment.xsd
+ * examples/Hello/descriptors/Modified_Deployment.xsd
+ * examples/Hello/descriptors/XMI.xsd
+ * examples/Hello/descriptors/Deployment.xsd
+ * examples/Hello/descriptors/Modified_Deployment.xsd
+ * examples/Hello/descriptors/XMI.xsd
- Removed obsolete schemata.
+ Removed obsolete schemata.
- * examples/Display/descriptors/flattened_deploymentplan.cdp
- * examples/Hello/descriptors/flattened_deploymentplan.cdp
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
- * docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
+ * examples/Display/descriptors/flattened_deploymentplan.cdp
+ * examples/Hello/descriptors/flattened_deploymentplan.cdp
+ * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
+ * docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
- Migrated these deployment plans to use Deployment.xsd and friends,
- instead of Modified_Deployment.xsd.
+ Migrated these deployment plans to use Deployment.xsd and friends,
+ instead of Modified_Deployment.xsd.
- * NEWS
+ * NEWS
- Updated the NEWS to include this feature.
+ Updated the NEWS to include this feature.
Tue Sep 27 13:16:43 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/ExecutionManager/ExecutionManager.mpc
- * DAnCE/NodeApplication/NodeApplication.mpc
- * DAnCE/NodeManager/NodeManager.mpc
- * DAnCE/Old_Config_Handlers/Config_Handlers.mpc
- * DAnCE/Plan_Launcher/Plan_Launcher.mpc
- * DAnCE/RTNodeApplication/RTNodeApplication.mpc
- * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
- * RACE/Input_Adapters/Interactive_Input_Adapter/Interactive_Input_Adapter.mpc
- * RACE/Output_Adapters/Base/Output_Adapter.mpc
- * RACE/Planners/SimpleBinPacker/SimpleBinPacker.mpc
- * ciao/CCM_Core.mpc
- * examples/BasicSP/BasicSP.mpc
-
- Fixed a large number of deficiencies in our build structure.
- More changes to come later.
+ * DAnCE/ExecutionManager/ExecutionManager.mpc
+ * DAnCE/NodeApplication/NodeApplication.mpc
+ * DAnCE/NodeManager/NodeManager.mpc
+ * DAnCE/Old_Config_Handlers/Config_Handlers.mpc
+ * DAnCE/Plan_Launcher/Plan_Launcher.mpc
+ * DAnCE/RTNodeApplication/RTNodeApplication.mpc
+ * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
+ * RACE/Input_Adapters/Interactive_Input_Adapter/Interactive_Input_Adapter.mpc
+ * RACE/Output_Adapters/Base/Output_Adapter.mpc
+ * RACE/Planners/SimpleBinPacker/SimpleBinPacker.mpc
+ * ciao/CCM_Core.mpc
+ * examples/BasicSP/BasicSP.mpc
+
+ Fixed a large number of deficiencies in our build structure.
+ More changes to come later.
Tue Sep 27 11:10:37 2005 William Otte <wotte@dre.vanderbilt.edu>
- * NEWS
+ * NEWS
- Updated the news file.
+ Updated the news file.
Tue Sep 27 10:51:20 2005 William Otte <wotte@dre.vanderbilt.edu>
- * bin/generate_component_mpc.pl
+ * bin/generate_component_mpc.pl
- Updated this script to bring it in line with modern CIAO. This
- includes:
+ Updated this script to bring it in line with modern CIAO. This
+ includes:
- - Base projects are now the _dnc variants
- - Export files are now automatically generated.
+ - Base projects are now the _dnc variants
+ - Export files are now automatically generated.
Tue Sep 27 14:26:44 2005 Boris Kolpackov <boris@kolpackov.net>
- * CCF/CCF/IDL2/LexicalAnalyzer.cpp:
- * CCF/CCF/IDL2/Parser.cpp:
- * CCF/CCF/IDL2/Parser.hpp:
- * CCF/CCF/IDL2/SemanticAction.hpp:
- * CCF/CCF/IDL2/SemanticGraph.hpp:
- * CCF/CCF/IDL2/SemanticAction/Const.hpp:
- * CCF/CCF/IDL2/SemanticAction/Factory.hpp:
- * CCF/CCF/IDL2/SemanticAction/NumericExpression.hpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Const.cpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Const.hpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Elements.hpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Factory.cpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/Factory.hpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/NumericExpression.cpp:
- * CCF/CCF/IDL2/SemanticAction/Impl/NumericExpression.hpp:
- * CCF/CCF/IDL2/SemanticGraph/Elements.cpp:
- * CCF/CCF/IDL2/SemanticGraph/Elements.hpp:
- * CCF/CCF/IDL2/SemanticGraph/IntExpression.cpp:
- * CCF/CCF/IDL2/SemanticGraph/IntExpression.hpp:
- * CCF/CCF/IDL3/Parser.cpp:
- * CCF/CCF/CIDL/Parser.cpp:
-
- Implemented first part of the const expression support. This
- includes parser rules, semantic graph types and semantic
- actions. Traversal types are still to be implemented.
+ * CCF/CCF/IDL2/LexicalAnalyzer.cpp:
+ * CCF/CCF/IDL2/Parser.cpp:
+ * CCF/CCF/IDL2/Parser.hpp:
+ * CCF/CCF/IDL2/SemanticAction.hpp:
+ * CCF/CCF/IDL2/SemanticGraph.hpp:
+ * CCF/CCF/IDL2/SemanticAction/Const.hpp:
+ * CCF/CCF/IDL2/SemanticAction/Factory.hpp:
+ * CCF/CCF/IDL2/SemanticAction/NumericExpression.hpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/Const.cpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/Const.hpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/Elements.hpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/Factory.cpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/Factory.hpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/NumericExpression.cpp:
+ * CCF/CCF/IDL2/SemanticAction/Impl/NumericExpression.hpp:
+ * CCF/CCF/IDL2/SemanticGraph/Elements.cpp:
+ * CCF/CCF/IDL2/SemanticGraph/Elements.hpp:
+ * CCF/CCF/IDL2/SemanticGraph/IntExpression.cpp:
+ * CCF/CCF/IDL2/SemanticGraph/IntExpression.hpp:
+ * CCF/CCF/IDL3/Parser.cpp:
+ * CCF/CCF/CIDL/Parser.cpp:
+
+ Implemented first part of the const expression support. This
+ includes parser rules, semantic graph types and semantic
+ actions. Traversal types are still to be implemented.
Tue Sep 27 06:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -4002,18 +697,18 @@ Mon Sep 26 11:06:40 2005 William Otte <wotte@dre.vanderbilt.edu>
Mon Sep 26 11:06:40 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.cpp
+ * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+ * DAnCE/NodeManager/NodeManager_Impl.cpp
- Cleared up some scoreboard errors.
+ Cleared up some scoreboard errors.
Sat Sep 24 20:44:20 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
- * tools/Config_Handlers/Config_Handlers.mpc
+ * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
+ * tools/Config_Handlers/Config_Handlers.mpc
- Fixed linking errors.
+ Fixed linking errors.
Sat Sep 24 08:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -4022,162 +717,162 @@ Sat Sep 24 08:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Sat Sep 24 02:37:20 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * ciao/Deployment.idl
- * ciao/Deployment_Core.idl
- * ciao/ServerResources.idl
+ * ciao/Deployment.idl
+ * ciao/Deployment_Core.idl
+ * ciao/ServerResources.idl
- Enhanced to support RT-CCM feature.
+ Enhanced to support RT-CCM feature.
- * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
- * DAnCE/NodeApplicationManager/ImplementationInfo.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
- * DAnCE/NodeApplicationManager/Containers_Info_Map.h
+ * DAnCE/NodeApplicationManager/ImplementationInfo.cpp
+ * DAnCE/NodeApplicationManager/ImplementationInfo.h
+ * DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+ * DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
+ * DAnCE/NodeApplicationManager/Containers_Info_Map.h
- Refactor the NodeApplicationManager to populate the correct
- node level deployment plan info, while taking into account
- of the RT-CCM feature.
+ Refactor the NodeApplicationManager to populate the correct
+ node level deployment plan info, while taking into account
+ of the RT-CCM feature.
- * ciao/NodeApplication_Impl.cpp
- * ciao/NodeApplication_Impl.h
+ * ciao/NodeApplication_Impl.cpp
+ * ciao/NodeApplication_Impl.h
- Modified to accomodate the change in IDL files.
+ Modified to accomodate the change in IDL files.
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
- Fixed these tests to make them run with the modified IDL
- files.
+ Fixed these tests to make them run with the modified IDL
+ files.
- * DAnCE/examples/Hello/descriptors/rt-config-example.csr
- * DAnCE/examples/Hello/descriptors/rt-config-example.cdp
+ * DAnCE/examples/Hello/descriptors/rt-config-example.csr
+ * DAnCE/examples/Hello/descriptors/rt-config-example.cdp
- An example descriptor files to describe server resource,
- and associate server resources and policy set defs with
- the deployment plan.
+ An example descriptor files to describe server resource,
+ and associate server resources and policy set defs with
+ the deployment plan.
- NOTE: All above code are tested working fine with the existing
- examples.
+ NOTE: All above code are tested working fine with the existing
+ examples.
Fri Sep 23 10:05:18 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
- * tools/Config_Handlers/Config_Handlers.mpc
+ * DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
+ * tools/Config_Handlers/Config_Handlers.mpc
- fixes for build problems.
+ fixes for build problems.
Thu Sep 22 16:21:12 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * DAnCE/NodeManager/NodeManager_Impl.cpp
+ * DAnCE/NodeManager/NodeManager_Impl.cpp
- Added error report message from the tool.
+ Added error report message from the tool.
- * ciao/Container_Base.cpp
+ * ciao/Container_Base.cpp
- Cosmetic change.
+ Cosmetic change.
Thu Sep 22 14:45:32 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/Config_Handlers.mpc
- * tools/Config_Handlers/STD_CID_Handler.cpp
- * tools/Config_Handlers/STD_CID_Handler.h
- * tools/Config_Handlers/STD_CPD_Handler.cpp
- * tools/Config_Handlers/STD_CPD_Handler.h
- * tools/Config_Handlers/STD_PCD_Handler.cpp
- * tools/Config_Handlers/STD_PCD_Handler.h
- * tools/Config_Handlers/STD_PC_Intf.cpp
- * tools/Config_Handlers/XML_File_Intf.cpp
- * tools/Config_Handlers/RT-CCM/SRD_Handler.h
- * tools/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
-
- Made these files consistent with the new Utils directory.
-
- * tools/Config_Handlers/Utils/Utils.mpc
- * tools/Config_Handlers/Utils/XML_Error_Handler.cpp
- * tools/Config_Handlers/Utils/XML_Error_Handler.h
- * tools/Config_Handlers/Utils/XML_Helper.cpp
- * tools/Config_Handlers/Utils/XML_Helper.h
- * tools/Config_Handlers/Utils/XercesString.cpp
- * tools/Config_Handlers/Utils/XercesString.h
-
- Moved common XML utilities to a separate directory.
+ * tools/Config_Handlers/Config_Handlers.mpc
+ * tools/Config_Handlers/STD_CID_Handler.cpp
+ * tools/Config_Handlers/STD_CID_Handler.h
+ * tools/Config_Handlers/STD_CPD_Handler.cpp
+ * tools/Config_Handlers/STD_CPD_Handler.h
+ * tools/Config_Handlers/STD_PCD_Handler.cpp
+ * tools/Config_Handlers/STD_PCD_Handler.h
+ * tools/Config_Handlers/STD_PC_Intf.cpp
+ * tools/Config_Handlers/XML_File_Intf.cpp
+ * tools/Config_Handlers/RT-CCM/SRD_Handler.h
+ * tools/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
+
+ Made these files consistent with the new Utils directory.
+
+ * tools/Config_Handlers/Utils/Utils.mpc
+ * tools/Config_Handlers/Utils/XML_Error_Handler.cpp
+ * tools/Config_Handlers/Utils/XML_Error_Handler.h
+ * tools/Config_Handlers/Utils/XML_Helper.cpp
+ * tools/Config_Handlers/Utils/XML_Helper.h
+ * tools/Config_Handlers/Utils/XercesString.cpp
+ * tools/Config_Handlers/Utils/XercesString.h
+
+ Moved common XML utilities to a separate directory.
Thu Sep 22 13:21:12 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * ciao/CCM_Core.mpc
- * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
- * tools/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
+ * ciao/CCM_Core.mpc
+ * DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
+ * tools/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
- Put the ServerResources.idl into Deployment_stub project. Modified
- other MPC project files to reflect this change.
+ Put the ServerResources.idl into Deployment_stub project. Modified
+ other MPC project files to reflect this change.
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- Pass the infoProperty which contains the entire server resource
- definitions to each individual child deployment plans.
+ Pass the infoProperty which contains the entire server resource
+ definitions to each individual child deployment plans.
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.h
+ * DAnCE/NodeManager/NodeManager_Impl.cpp
+ * DAnCE/NodeManager/NodeManager_Impl.h
- NodeManager now validates the correctness of the individual local
- dpeloyment plan. In particular, it tries to verify that all the
- component instances within this child deployment plan have the same
- "server_resource_id" assigned.
+ NodeManager now validates the correctness of the individual local
+ dpeloyment plan. In particular, it tries to verify that all the
+ component instances within this child deployment plan have the same
+ "server_resource_id" assigned.
- * DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp
- Added a NodeApplication test case, where multiple components could
- be installed one-by-one through a serious of "install" invocations.
+ Added a NodeApplication test case, where multiple components could
+ be installed one-by-one through a serious of "install" invocations.
- * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
+ * examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
- Fixed a typo.
+ Fixed a typo.
Thu Sep 22 12:26:45 CDT 2005 Stoyan spaunov@isis.vanderbilt.edu
- * DAnCE/spec_RepositoryManager/
- * DAnCE/new_RepositoryManager/
+ * DAnCE/spec_RepositoryManager/
+ * DAnCE/new_RepositoryManager/
- Added the former, removed the latter.
+ Added the former, removed the latter.
Thu Sep 22 10:50:45 CDT 2005 Stoyan spaunov@isis.vanderbilt.edu
- * DAnCE/spec_RepositoryManager/HTTP_Client.cpp
- * DAnCE/spec_RepositoryManager/HTTP_Client.h
- * DAnCE/spec_RepositoryManager/HTTP_Handler.cpp
- * DAnCE/spec_RepositoryManager/HTTP_Handler.h
- * DAnCE/spec_RepositoryManager/Options.cpp
- * DAnCE/spec_RepositoryManager/Options.h
- * DAnCE/spec_RepositoryManager/README.txt
- * DAnCE/spec_RepositoryManager/RepositoryManager.cpp
- * DAnCE/spec_RepositoryManager/RepositoryManager.idl
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
- * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h
- * DAnCE/spec_RepositoryManager/RMadmin.cpp
- * DAnCE/spec_RepositoryManager/RM_Helper.cpp
- * DAnCE/spec_RepositoryManager/RM_Helper.h
- * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
- * DAnCE/spec_RepositoryManager/spec_RepositoryManager.ncb
- * DAnCE/spec_RepositoryManager/URL_Parser.cpp
- * DAnCE/spec_RepositoryManager/URL_Parser.h
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
- * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h
-
-
- Checked in these file and cleaned up *some* of the underlying mess due to previous
- mix-ups. Many of the files are new. Some are newer versions of older files.
- Previously there were 2 RM directories spec_RepositoryManager and
- new_RepositoryManager. Someone had removed the spec* verion and checked in the
- wrong files in the new* version (which used to be a non-spec compilent impl).
- Apparently on top of that the two directories have been linked somehow! I will
- check on what the reason for this is later.
+ * DAnCE/spec_RepositoryManager/HTTP_Client.cpp
+ * DAnCE/spec_RepositoryManager/HTTP_Client.h
+ * DAnCE/spec_RepositoryManager/HTTP_Handler.cpp
+ * DAnCE/spec_RepositoryManager/HTTP_Handler.h
+ * DAnCE/spec_RepositoryManager/Options.cpp
+ * DAnCE/spec_RepositoryManager/Options.h
+ * DAnCE/spec_RepositoryManager/README.txt
+ * DAnCE/spec_RepositoryManager/RepositoryManager.cpp
+ * DAnCE/spec_RepositoryManager/RepositoryManager.idl
+ * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
+ * DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h
+ * DAnCE/spec_RepositoryManager/RMadmin.cpp
+ * DAnCE/spec_RepositoryManager/RM_Helper.cpp
+ * DAnCE/spec_RepositoryManager/RM_Helper.h
+ * DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
+ * DAnCE/spec_RepositoryManager/spec_RepositoryManager.ncb
+ * DAnCE/spec_RepositoryManager/URL_Parser.cpp
+ * DAnCE/spec_RepositoryManager/URL_Parser.h
+ * DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
+ * DAnCE/spec_RepositoryManager/ZIP_Wrapper.h
+
+
+ Checked in these file and cleaned up *some* of the underlying mess due to previous
+ mix-ups. Many of the files are new. Some are newer versions of older files.
+ Previously there were 2 RM directories spec_RepositoryManager and
+ new_RepositoryManager. Someone had removed the spec* verion and checked in the
+ wrong files in the new* version (which used to be a non-spec compilent impl).
+ Apparently on top of that the two directories have been linked somehow! I will
+ check on what the reason for this is later.
Thu Sep 22 13:15:28 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -4188,42 +883,42 @@ Thu Sep 22 13:15:28 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Wed Sep 21 15:32:38 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/ExecutionManager/Execution_Manager.cpp
- * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
- * DAnCE/NodeApplication/NodeApplication.cpp
- * DAnCE/RTNodeApplication/NodeApplication_Task.cpp
- * DAnCE/RepositoryManager/Repository_Manager.cpp
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
- * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
- * ciao/Container_Base.cpp
- * ciao/Container_Impl.cpp
- * ciao/Servant_Activator.cpp
- * ciao/Servant_Impl_T.cpp
- * ciao/Swapping_Container.cpp
- * ciao/Swapping_Servant_Home_Impl_T.cpp
- * ciao/Upgradeable_Context_Impl_T.cpp
- * docs/templates/CIAO_Glue_Session_Template.cpp
- * examples/Hello/Sender/Sender_exec.cpp
- * examples/Swapping/Receiver/Receiver_exec.cpp
- * examples/Swapping/Sender/Sender_exec.cpp
- * examples/Swapping/Sender/Sender_exec_1.cpp
- * examples/Swapping/Sender/Sender_exec_2.cpp
-
- Fixed numerous emulated exception errors.
-
- * DAnCE/ExecutionManager/ExecutionManager_Impl.cpp
- * DAnCE/ExecutionManager/ExecutionManager_Impl.h
-
- removed obsolete EM implementation.
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/ExecutionManager/Execution_Manager.cpp
+ * DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
+ * DAnCE/NodeApplication/NodeApplication.cpp
+ * DAnCE/RTNodeApplication/NodeApplication_Task.cpp
+ * DAnCE/RepositoryManager/Repository_Manager.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
+ * DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
+ * ciao/Container_Base.cpp
+ * ciao/Container_Impl.cpp
+ * ciao/Servant_Activator.cpp
+ * ciao/Servant_Impl_T.cpp
+ * ciao/Swapping_Container.cpp
+ * ciao/Swapping_Servant_Home_Impl_T.cpp
+ * ciao/Upgradeable_Context_Impl_T.cpp
+ * docs/templates/CIAO_Glue_Session_Template.cpp
+ * examples/Hello/Sender/Sender_exec.cpp
+ * examples/Swapping/Receiver/Receiver_exec.cpp
+ * examples/Swapping/Sender/Sender_exec.cpp
+ * examples/Swapping/Sender/Sender_exec_1.cpp
+ * examples/Swapping/Sender/Sender_exec_2.cpp
+
+ Fixed numerous emulated exception errors.
+
+ * DAnCE/ExecutionManager/ExecutionManager_Impl.cpp
+ * DAnCE/ExecutionManager/ExecutionManager_Impl.h
+
+ removed obsolete EM implementation.
Wed Sep 21 13:34:28 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * tools/Config_Handlers/RT-CCM/test.cpp
+ * tools/Config_Handlers/RT-CCM/test.cpp
- Modified so the output XML file is based on the XSC dom document
- instead from the input file directly.
+ Modified so the output XML file is based on the XSC dom document
+ instead from the input file directly.
Tue Sep 20 21:58:23 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -4238,250 +933,250 @@ Tue Sep 20 02:25:34 2005 William Otte <wotte@dre.vanderbilt.edu>
* tools/Config_Handlers/Config_Handlers.mpc
Quick fix for a build problem on Windows. A better solution
- will follow when I check in my CIAO build system revamp.
+ will follow when I check in my CIAO build system revamp.
Tue Sep 20 10:19:46 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/test.cdp
+ * tools/Config_Handlers/test.cdp
- A test deployment plan file that contains odd constructs.
- Used for testing.
+ A test deployment plan file that contains odd constructs.
+ Used for testing.
Tue Sep 20 10:07:43 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/new_RepositoryManager/new_RepositoryManager.mpc
+ * DAnCE/new_RepositoryManager/new_RepositoryManager.mpc
- Added a missing library.
+ Added a missing library.
Tue Sep 20 09:50:28 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- Modified to kill all NodeApplication processes when the deployment fails.
+ Modified to kill all NodeApplication processes when the deployment fails.
Tue Sep 20 09:35:28 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Plan_Launcher/Plan_Launcher.mpc
+ * DAnCE/Plan_Launcher/Plan_Launcher.mpc
- Added a missing library.
+ Added a missing library.
Mon Sep 19 16:29:57 2005 William Otte <wotte@dre.vanderbilt.edu>
- * ADD_Handler.cpp
- * Common.h
- * IDD_Handler.cpp
- * IDD_Handler.h
- * IDREF_Base.cpp
- * IDREF_Base.h
- * IRDD_Handler.cpp
- * IRDD_Handler.h
- * MDD_Handler.cpp
- * PSPE_Handler.cpp
- * STD_CID_Handler.cpp
- * XML_Error_Handler.cpp
+ * ADD_Handler.cpp
+ * Common.h
+ * IDD_Handler.cpp
+ * IDD_Handler.h
+ * IDREF_Base.cpp
+ * IDREF_Base.h
+ * IRDD_Handler.cpp
+ * IRDD_Handler.h
+ * MDD_Handler.cpp
+ * PSPE_Handler.cpp
+ * STD_CID_Handler.cpp
+ * XML_Error_Handler.cpp
- Added some improved error handling/reporting. Much more to come.
+ Added some improved error handling/reporting. Much more to come.
- * test.cpp
- * RT-CCM/RT-CCM-Handlers.mpc
- * RT-CCM/SRD_Handler.cpp
- * RT-CCM/SRD_Handler.h
- * Config_Handlers.mpc
- * DP_Handler.cpp
+ * test.cpp
+ * RT-CCM/RT-CCM-Handlers.mpc
+ * RT-CCM/SRD_Handler.cpp
+ * RT-CCM/SRD_Handler.h
+ * Config_Handlers.mpc
+ * DP_Handler.cpp
- Added hooks for parsing ServerResources document into a deployment
- plan.
+ Added hooks for parsing ServerResources document into a deployment
+ plan.
- This is activated by adding an InfoProperty with name
- "CIAOServerResources" with a value of a valid CSR file.
+ This is activated by adding an InfoProperty with name
+ "CIAOServerResources" with a value of a valid CSR file.
- Also enabled parsing of deployRequirements and infoProperties.
+ Also enabled parsing of deployRequirements and infoProperties.
Mon Sep 19 10:55:05 2005 William Otte <wotte@dre.vanderbilt.edu>
- * RACE/Input_Adapters/Base/Input_Adapter.mpc
- * RACE/Input_Adapters/Interactive_Input_Adapter/Interactive_Input_Adapter.mpc
- * RACE/Output_Adapters/Base/Output_Adapter.mpc
- * RACE/Output_Adapters/Interface/Output_Adapter_Interface.mpc
- * RACE/Output_Adapters/XML_Output_Adapter/XML_Output_Adapter.mpc
- * RACE/Plan_Analyzer/Component/Plan_Analyzer.mpc
- * RACE/Plan_Analyzer/Interface/Plan_Analyzer_Interface.mpc
- * RACE/Planner_Manager/Component/Planner_Manager.mpc
- * RACE/Planner_Manager/Interface/Planner_Manager_Interface.mpc
- * RACE/Planners/Base/Planner.mpc
- * RACE/Planners/Interface/Planner_Interface.mpc
- * RACE/Planners/SimpleBinPacker/SimpleBinPacker.mpc
- * RACE/common/RACE_common.mpc
- * tools/Config_Handlers/RT-CCM/CLA_Handler.h
- * tools/Config_Handlers/RT-CCM/OC_Handler.cpp
- * tools/Config_Handlers/RT-CCM/OR_Handler.cpp
- * tools/Config_Handlers/RT-CCM/OR_Handler.h
-
- Misc fuzz fixes.
+ * RACE/Input_Adapters/Base/Input_Adapter.mpc
+ * RACE/Input_Adapters/Interactive_Input_Adapter/Interactive_Input_Adapter.mpc
+ * RACE/Output_Adapters/Base/Output_Adapter.mpc
+ * RACE/Output_Adapters/Interface/Output_Adapter_Interface.mpc
+ * RACE/Output_Adapters/XML_Output_Adapter/XML_Output_Adapter.mpc
+ * RACE/Plan_Analyzer/Component/Plan_Analyzer.mpc
+ * RACE/Plan_Analyzer/Interface/Plan_Analyzer_Interface.mpc
+ * RACE/Planner_Manager/Component/Planner_Manager.mpc
+ * RACE/Planner_Manager/Interface/Planner_Manager_Interface.mpc
+ * RACE/Planners/Base/Planner.mpc
+ * RACE/Planners/Interface/Planner_Interface.mpc
+ * RACE/Planners/SimpleBinPacker/SimpleBinPacker.mpc
+ * RACE/common/RACE_common.mpc
+ * tools/Config_Handlers/RT-CCM/CLA_Handler.h
+ * tools/Config_Handlers/RT-CCM/OC_Handler.cpp
+ * tools/Config_Handlers/RT-CCM/OR_Handler.cpp
+ * tools/Config_Handlers/RT-CCM/OR_Handler.h
+
+ Misc fuzz fixes.
Fri Sep 16 09:54:44 2005 William Otte <wotte@william-ottes-powerbook-g4-15.local>
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- Emulated exception fixes.
+ Emulated exception fixes.
Thu Sep 15 07:29:03 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
- * TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat: Make sure
- there's a newline at the end of this file. Thanks to Zachi
- Klopman <zklopman@gmail.com> for reporting this.
+ * TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat: Make sure
+ there's a newline at the end of this file. Thanks to Zachi
+ Klopman <zklopman@gmail.com> for reporting this.
Thu Sep 15 11:20:20 2005 CSET William Otte <wotte@dre.vanderbilt.edu>
- * ciao/Container_Base.cpp
+ * ciao/Container_Base.cpp
- Fix for compile error on platforms with emulated exceptions.
+ Fix for compile error on platforms with emulated exceptions.
Wed Sep 14 13:25:00 CEST 2005 William Otte <wotte@dre.vanderbilt.edu>
- * RACE/Input_Adapters/Interactive_Input_Adapter/Interactive_Input_Adapter.mpc
+ * RACE/Input_Adapters/Interactive_Input_Adapter/Interactive_Input_Adapter.mpc
- Fix for a library ordering problem.
+ Fix for a library ordering problem.
Wed Sep 14 11:18:42 2005 CEST William Otte <wotte@william-ottes-powerbook-g4-15.local>
- * tools/Config_Handlers/CIAOServerResources.cpp
- * tools/Config_Handlers/CIAOServerResources.hpp
+ * tools/Config_Handlers/CIAOServerResources.cpp
+ * tools/Config_Handlers/CIAOServerResources.hpp
- Removed these from the repo to avoid confusion.
+ Removed these from the repo to avoid confusion.
- * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+ * tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- Ported patches from:
- Tue Sep 13 17:18:12 CEST 2005 William Otte <wotte@dre.vanderbilt.edu>
+ Ported patches from:
+ Tue Sep 13 17:18:12 CEST 2005 William Otte <wotte@dre.vanderbilt.edu>
- which were made against the wrong file. Thanks to Gan Deng for
- pointing this out.
+ which were made against the wrong file. Thanks to Gan Deng for
+ pointing this out.
Wed Sep 14 13:28:14 2005 Gan Deng <dengg@dre.vanderbilt.edu>
- * examples/Hello/descriptors/run_NodeDaemons.pl
+ * examples/Hello/descriptors/run_NodeDaemons.pl
- Modified the relevant path due to the recent CIAO directory
- reorganization.
+ Modified the relevant path due to the recent CIAO directory
+ reorganization.
- * examples/Hello/Sender/Sender.idl
- * examples/Hello/Sender_exec.cpp
- * examples/Hello/starter.cpp
+ * examples/Hello/Sender/Sender.idl
+ * examples/Hello/Sender_exec.cpp
+ * examples/Hello/starter.cpp
- Added test for "readonly" attribute.
- Fixed a bug of setting attribute through command line options
- through the "starter" executable. Also, make the default ior
- file name to be "Sender.ior" to make it consistent with the
- output generated by DAnCE. Thanks Zacki
- <zklopman at gmail dot com> for reporting these.
+ Added test for "readonly" attribute.
+ Fixed a bug of setting attribute through command line options
+ through the "starter" executable. Also, make the default ior
+ file name to be "Sender.ior" to make it consistent with the
+ output generated by DAnCE. Thanks Zacki
+ <zklopman at gmail dot com> for reporting these.
- * examples/Hello/step-by-step.html
+ * examples/Hello/step-by-step.html
- Updated the documentation to run the example.
+ Updated the documentation to run the example.
Tue Sep 13 17:18:12 CEST 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/CIAOServerResources.hpp
+ * tools/Config_Handlers/CIAOServerResources.hpp
- Fixes for compile errors in:
- . Especially strict C++ compilers
- . Windows VC71 (hopefully)
+ Fixes for compile errors in:
+ . Especially strict C++ compilers
+ . Windows VC71 (hopefully)
Tue Sep 13 17:05:31 2005 CEST William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
- * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
- * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
- * DAnCE/NodeManager/NodeManager_Impl.cpp
- * DAnCE/NodeManager/NodeManager_Impl.h
- * DAnCE/NodeManager/Node_Manager.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
- * DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
- * ciao/Container_Base.cpp
- * ciao/NodeApplication_Impl.cpp
-
- Folding in some of the error reporting work that I have been
- working on for the past couple weeks. Most common deployment
- errors are now reported through the plan_launcher.
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+ * DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+ * DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
+ * DAnCE/NodeManager/NodeManager_Impl.cpp
+ * DAnCE/NodeManager/NodeManager_Impl.h
+ * DAnCE/NodeManager/Node_Manager.cpp
+ * DAnCE/Plan_Launcher/Plan_Launcher.cpp
+ * DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
+ * DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
+ * ciao/Container_Base.cpp
+ * ciao/NodeApplication_Impl.cpp
+
+ Folding in some of the error reporting work that I have been
+ working on for the past couple weeks. Most common deployment
+ errors are now reported through the plan_launcher.
Tue Sep 13 16:55:15 CEST 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/IDD_Handler.cpp
- * tools/Config_Handlers/MDD_Handler.cpp
- * tools/Config_Handlers/PSPE_Handler.cpp
- * tools/Config_Handlers/STD_CID_Handler.cpp
+ * tools/Config_Handlers/IDD_Handler.cpp
+ * tools/Config_Handlers/MDD_Handler.cpp
+ * tools/Config_Handlers/PSPE_Handler.cpp
+ * tools/Config_Handlers/STD_CID_Handler.cpp
- Fixes for compile errors on both:
- . 64 bit platforms
- . GCC4
+ Fixes for compile errors on both:
+ . 64 bit platforms
+ . GCC4
Tue Sep 13 16:01:35 CEST 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/XMLSchema/Traversal.hpp
- * tools/Config_Handlers/XMLSchema/TypeInfo.hpp
- * tools/Config_Handlers/XMLSchema/Types.hpp
- * tools/Config_Handlers/XMLSchema/Writer.hpp
- * tools/Config_Handlers/XSCRT/Elements.hpp
- * tools/Config_Handlers/XSCRT/ExtendedTypeInfo.hpp
- * tools/Config_Handlers/XSCRT/Parser.hpp
- * tools/Config_Handlers/XSCRT/Traversal.hpp
- * tools/Config_Handlers/XSCRT/Writer.hpp
- * tools/Config_Handlers/XSCRT/XML.hpp
- * tools/Config_Handlers/XSCRT/XMLSchema.hpp
-
- Rolled back Stoyan's changes from the previous commit. The proper
- fix for this problem would be to update the include paths in the
- affected MPC files, which has the virtue of not breaking
- builds on platforms with case-sensitive filesystems.
+ * tools/Config_Handlers/XMLSchema/Traversal.hpp
+ * tools/Config_Handlers/XMLSchema/TypeInfo.hpp
+ * tools/Config_Handlers/XMLSchema/Types.hpp
+ * tools/Config_Handlers/XMLSchema/Writer.hpp
+ * tools/Config_Handlers/XSCRT/Elements.hpp
+ * tools/Config_Handlers/XSCRT/ExtendedTypeInfo.hpp
+ * tools/Config_Handlers/XSCRT/Parser.hpp
+ * tools/Config_Handlers/XSCRT/Traversal.hpp
+ * tools/Config_Handlers/XSCRT/Writer.hpp
+ * tools/Config_Handlers/XSCRT/XML.hpp
+ * tools/Config_Handlers/XSCRT/XMLSchema.hpp
- * DAnCE/new_RepositoryManager/new_RepositoryManager.mpc
+ Rolled back Stoyan's changes from the previous commit. The proper
+ fix for this problem would be to update the include paths in the
+ affected MPC files, which has the virtue of not breaking
+ builds on platforms with case-sensitive filesystems.
- Updated the include path to include the new config handlers directory.
+ * DAnCE/new_RepositoryManager/new_RepositoryManager.mpc
+
+ Updated the include path to include the new config handlers directory.
Mon Sep 12 17:34:47 CDT 2005 Stoyan Paunov <spaunov@isis.vanderbilt.edu>
- * tools/Config_Handlers/XMLSchema/Traversal.hpp
- * tools/Config_Handlers/XMLSchema/TypeInfo.hpp
- * tools/Config_Handlers/XMLSchema/Types.hpp
- * tools/Config_Handlers/XMLSchema/Writer.hpp
- * tools/Config_Handlers/XSCRT/Elements.hpp
- * tools/Config_Handlers/XSCRT/ExtendedTypeInfo.hpp
- * tools/Config_Handlers/XSCRT/Parser.hpp
- * tools/Config_Handlers/XSCRT/Traversal.hpp
- * tools/Config_Handlers/XSCRT/Writer.hpp
- * tools/Config_Handlers/XSCRT/XML.hpp
- * tools/Config_Handlers/XSCRT/XMLSchema.hpp
-
- Fixed a number of problems related to Will's changes. The XSC_Config_Handler_Tests
- project was not compiling. I had the same problem in RepositoryManager. Will had
- changed the directory structure, but did not update any of the include paths.
- Needless to say there were like 30-40 of those in the XSCRT and XMLSchema directories
+ * tools/Config_Handlers/XMLSchema/Traversal.hpp
+ * tools/Config_Handlers/XMLSchema/TypeInfo.hpp
+ * tools/Config_Handlers/XMLSchema/Types.hpp
+ * tools/Config_Handlers/XMLSchema/Writer.hpp
+ * tools/Config_Handlers/XSCRT/Elements.hpp
+ * tools/Config_Handlers/XSCRT/ExtendedTypeInfo.hpp
+ * tools/Config_Handlers/XSCRT/Parser.hpp
+ * tools/Config_Handlers/XSCRT/Traversal.hpp
+ * tools/Config_Handlers/XSCRT/Writer.hpp
+ * tools/Config_Handlers/XSCRT/XML.hpp
+ * tools/Config_Handlers/XSCRT/XMLSchema.hpp
+
+ Fixed a number of problems related to Will's changes. The XSC_Config_Handler_Tests
+ project was not compiling. I had the same problem in RepositoryManager. Will had
+ changed the directory structure, but did not update any of the include paths.
+ Needless to say there were like 30-40 of those in the XSCRT and XMLSchema directories
Fri Sep 9 12:35:20 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tools/Config_Handlers/STD_IAD_Handler.cpp
- * tools/Config_Handlers/STD_PCD_Handler.cpp
- * tools/Config_Handlers/STD_PC_Intf.cpp
+ * tools/Config_Handlers/STD_IAD_Handler.cpp
+ * tools/Config_Handlers/STD_PCD_Handler.cpp
+ * tools/Config_Handlers/STD_PC_Intf.cpp
- Changed to comform with new refactoring.
+ Changed to comform with new refactoring.
Fri Sep 9 12:32:14 2005 William Otte <wotte@dre.vanderbilt.edu>
- * ciao/CCM_Core.mpc
- * ciao/Container_Base.cpp
- * ciao/Deployment.idl
- * ciao/Deployment_Core.idl
- * ciao/Deployment_Data.idl
- * ciao/Packaging_Data.idl
+ * ciao/CCM_Core.mpc
+ * ciao/Container_Base.cpp
+ * ciao/Deployment.idl
+ * ciao/Deployment_Core.idl
+ * ciao/Deployment_Data.idl
+ * ciao/Packaging_Data.idl
- Refactoring to support cidl compilation of deployment structures.
- This refactoring should solve compilation errors in the config handlers.
+ Refactoring to support cidl compilation of deployment structures.
+ This refactoring should solve compilation errors in the config handlers.
Wed Sep 7 16:31:12 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -4494,197 +1189,197 @@ Wed Sep 7 16:31:12 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Tue Sep 6 11:39:15 2005 William Otte <wotte@dre.vanderbilt.edu>
- * ciao/Deployment_Data.idl
+ * ciao/Deployment_Data.idl
- Commented out IDL that is unsupported by CIDLC.
+ Commented out IDL that is unsupported by CIDLC.
- * RACE
+ * RACE
- Added IDL for RACE.
+ Added IDL for RACE.
Tue Sep 6 09:58:12 2005 William Otte <wotte@dre.vanderbilt.edu>
- * examples/Hello/descriptors/run_test.pl
+ * examples/Hello/descriptors/run_test.pl
- Modified the script to fix the absolute path to the naming service
- with a relative path.
+ Modified the script to fix the absolute path to the naming service
+ with a relative path.
Fri Sep 2 17:38:31 2005 William Otte <wotte@dre.vanderbilt.edu>
- * performance-tests/Protocols/Controller/Controller.mpc
- * performance-tests/Protocols/Receiver/Receiver.mpc
- * performance-tests/Protocols/Sender/Sender.mpc
- * performance-tests/Protocols/common/Protocols.mpc
- * tests/CIDL/CodeGen/CodeGen.mpc
+ * performance-tests/Protocols/Controller/Controller.mpc
+ * performance-tests/Protocols/Receiver/Receiver.mpc
+ * performance-tests/Protocols/Sender/Sender.mpc
+ * performance-tests/Protocols/common/Protocols.mpc
+ * tests/CIDL/CodeGen/CodeGen.mpc
- Migrated to modern CIAO base projects.
+ Migrated to modern CIAO base projects.
Fri Sep 2 16:41:08 2005 William Otte <wotte@dre.vanderbilt.edu>
- * performance-tests/Benchmark/Benchmark.mpc
- * performance-tests/Benchmark/Multi_Threaded/Multi_Threaded.mpc
- * performance-tests/Benchmark/RoundTrip/RoundTrip.mpc
- * performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
- * performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc
+ * performance-tests/Benchmark/Benchmark.mpc
+ * performance-tests/Benchmark/Multi_Threaded/Multi_Threaded.mpc
+ * performance-tests/Benchmark/RoundTrip/RoundTrip.mpc
+ * performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
+ * performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc
- Migrated to modern CIAO projects.
+ Migrated to modern CIAO projects.
Fri Sep 2 15:10:43 2005 William Otte <wotte@dre.vanderbilt.edu>
- * docs/tutorial
+ * docs/tutorial
- Removed the obsolete hello tutorial.
+ Removed the obsolete hello tutorial.
Fri Sep 2 15:04:00 2005 William Otte <wotte@dre.vanderbilt.edu>
- * tests/tests.mwc
- * tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc
- * tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc
- * tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc
- * tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc
- * tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc
- * tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc
- * tests/IDL3/Events/Abstract/Abstract.mpc
- * tests/IDL3/Events/Regular/Regular.mpc
- * tests/IDL3/Homes/Attributes/HomeAttributes.mpc
- * tests/IDL3/Homes/Basic/Basic.mpc
- * tests/IDL3/Homes/Factory/Factory.mpc
- * tests/IDL3/Homes/Finder/Finder.mpc
- * tests/IDL3/Homes/Inheritance/Inheritance.mpc
- * tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc
- * tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc
- * tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc
- * tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc
- * tests/IDL3/ImpliedIDL/Events/Events.mpc
- * tests/IDL3/ImpliedIDL/Homes/Homes.mpc
- * tests/IDL3/Lookup/lookup_test.mpc
-
- Updated to use dnc ciao base project.
-
- * tests/RTCCM
-
- Removed this test.
+ * tests/tests.mwc
+ * tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc
+ * tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc
+ * tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc
+ * tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc
+ * tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc
+ * tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc
+ * tests/IDL3/Events/Abstract/Abstract.mpc
+ * tests/IDL3/Events/Regular/Regular.mpc
+ * tests/IDL3/Homes/Attributes/HomeAttributes.mpc
+ * tests/IDL3/Homes/Basic/Basic.mpc
+ * tests/IDL3/Homes/Factory/Factory.mpc
+ * tests/IDL3/Homes/Finder/Finder.mpc
+ * tests/IDL3/Homes/Inheritance/Inheritance.mpc
+ * tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc
+ * tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc
+ * tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc
+ * tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc
+ * tests/IDL3/ImpliedIDL/Events/Events.mpc
+ * tests/IDL3/ImpliedIDL/Homes/Homes.mpc
+ * tests/IDL3/Lookup/lookup_test.mpc
+
+ Updated to use dnc ciao base project.
+
+ * tests/RTCCM
+
+ Removed this test.
Thu Sep 1 10:20:48 2005 William Otte <wotte@dre.vanderbilt.edu>
- CIAO Reorganization. Plese see tag before_ciao_reorg
- to obtain the old version.
+ CIAO Reorganization. Plese see tag before_ciao_reorg
+ to obtain the old version.
Wed Aug 31 15:16:23 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/RT-CCM/CB_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/PM_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/TPL_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/TP_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/CB_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/PM_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/TPL_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/TP_Handler.cpp
- Fixes to satisfy a tempramental Borland compiler.
+ Fixes to satisfy a tempramental Borland compiler.
Wed Aug 31 13:28:46 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/ADD_Handler.cpp
- * DAnCE/Config_Handlers/ADD_Handler.h
- * DAnCE/Config_Handlers/IDD_Handler.cpp
- * DAnCE/Config_Handlers/IDD_Handler.h
- * DAnCE/Config_Handlers/IDREF_Base.cpp
- * DAnCE/Config_Handlers/IDREF_Base.h
- * DAnCE/Config_Handlers/MDD_Handler.cpp
- * DAnCE/Config_Handlers/MDD_Handler.h
- * DAnCE/Config_Handlers/STD_CID_Handler.cpp
- * DAnCE/Config_Handlers/STD_CID_Handler.h
-
- Simple refactoring to make the IDREF interface more generic.
-
- * DAnCE/Config_Handlers/XML_Helper.cpp
- * DAnCE/Config_Handlers/XML_Helper.h
-
- Made empty document creation more generic.
-
- * DAnCE/Config_Handlers/RT-CCM/CB_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/CB_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/CIAOServerResources.cpp
- * DAnCE/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- * DAnCE/Config_Handlers/RT-CCM/CLA_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/CLA_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/OC_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/OC_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/OR_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/OR_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/PM_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/PM_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/PS_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/PS_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
- * DAnCE/Config_Handlers/RT-CCM/SRD_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/SRD_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/TPL_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/TPL_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/TP_Handler.cpp
- * DAnCE/Config_Handlers/RT-CCM/TP_Handler.h
- * DAnCE/Config_Handlers/RT-CCM/input.csr
- * DAnCE/Config_Handlers/RT-CCM/test.cpp
-
- The new RT-CCM handlers. These have yet to be integrated into the
- main config_handler path.
-
- * DAnCE/ciao/CCM_Core.mpc
- * DAnCE/ciao/ServerResources.idl
-
- Updates to the support the RT-CCM Handlers.
-
- * docs/schema/CIAOServerResources.xsd
-
- Corrected a few oversights.
+ * DAnCE/Config_Handlers/ADD_Handler.cpp
+ * DAnCE/Config_Handlers/ADD_Handler.h
+ * DAnCE/Config_Handlers/IDD_Handler.cpp
+ * DAnCE/Config_Handlers/IDD_Handler.h
+ * DAnCE/Config_Handlers/IDREF_Base.cpp
+ * DAnCE/Config_Handlers/IDREF_Base.h
+ * DAnCE/Config_Handlers/MDD_Handler.cpp
+ * DAnCE/Config_Handlers/MDD_Handler.h
+ * DAnCE/Config_Handlers/STD_CID_Handler.cpp
+ * DAnCE/Config_Handlers/STD_CID_Handler.h
+
+ Simple refactoring to make the IDREF interface more generic.
+
+ * DAnCE/Config_Handlers/XML_Helper.cpp
+ * DAnCE/Config_Handlers/XML_Helper.h
+
+ Made empty document creation more generic.
+
+ * DAnCE/Config_Handlers/RT-CCM/CB_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/CB_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/CIAOServerResources.cpp
+ * DAnCE/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+ * DAnCE/Config_Handlers/RT-CCM/CLA_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/CLA_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/OC_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/OC_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/OR_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/OR_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/PM_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/PM_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/PS_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/PS_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/RT-CCM-Handlers.mpc
+ * DAnCE/Config_Handlers/RT-CCM/SRD_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/SRD_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/TPL_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/TPL_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/TP_Handler.cpp
+ * DAnCE/Config_Handlers/RT-CCM/TP_Handler.h
+ * DAnCE/Config_Handlers/RT-CCM/input.csr
+ * DAnCE/Config_Handlers/RT-CCM/test.cpp
+
+ The new RT-CCM handlers. These have yet to be integrated into the
+ main config_handler path.
+
+ * DAnCE/ciao/CCM_Core.mpc
+ * DAnCE/ciao/ServerResources.idl
+
+ Updates to the support the RT-CCM Handlers.
+
+ * docs/schema/CIAOServerResources.xsd
+
+ Corrected a few oversights.
Wed Aug 31 09:49:28 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/XMLSchema/TypeInfo.tpp
+ * DAnCE/Config_Handlers/XMLSchema/TypeInfo.tpp
- Workaround for a buggy Borland compiler.
+ Workaround for a buggy Borland compiler.
Tue Aug 30 14:33:08 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/Basic_Deployment_Data.hpp
+ * DAnCE/Config_Handlers/Basic_Deployment_Data.hpp
- Slight handcrafting to remove commas from the end of enumerator lists.
+ Slight handcrafting to remove commas from the end of enumerator lists.
Tue Aug 30 11:59:14 CDT 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/IRDD_Handler.h
- * DAnCE/Config_Handlers/PCD_Handler.h
+ * DAnCE/Config_Handlers/IRDD_Handler.h
+ * DAnCE/Config_Handlers/PCD_Handler.h
- Fixed a class/struct mismatch.
+ Fixed a class/struct mismatch.
Tue Aug 30 11:51:32 CDT 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/Basic_Deployment_Data.cpp
- * DAnCE/Config_Handlers/Basic_Deployment_Data.hpp
- * DAnCE/Config_Handlers/CIAOServerResources.cpp
- * DAnCE/Config_Handlers/CIAOServerResources.hpp
- * DAnCE/Config_Handlers/Deployment.cpp
- * DAnCE/Config_Handlers/Deployment.hpp
- * DAnCE/Config_Handlers/ccd.cpp
- * DAnCE/Config_Handlers/ccd.hpp
- * DAnCE/Config_Handlers/cdd.cpp
- * DAnCE/Config_Handlers/cdd.hpp
- * DAnCE/Config_Handlers/cdp.cpp
- * DAnCE/Config_Handlers/cdp.hpp
- * DAnCE/Config_Handlers/cid.cpp
- * DAnCE/Config_Handlers/cid.hpp
- * DAnCE/Config_Handlers/cpd.cpp
- * DAnCE/Config_Handlers/cpd.hpp
- * DAnCE/Config_Handlers/iad.cpp
- * DAnCE/Config_Handlers/iad.hpp
- * DAnCE/Config_Handlers/pcd.cpp
- * DAnCE/Config_Handlers/pcd.hpp
- * DAnCE/Config_Handlers/toplevel.cpp
- * DAnCE/Config_Handlers/toplevel.hpp
-
- Fixes a large number of compiler warnings in Borland.
+ * DAnCE/Config_Handlers/Basic_Deployment_Data.cpp
+ * DAnCE/Config_Handlers/Basic_Deployment_Data.hpp
+ * DAnCE/Config_Handlers/CIAOServerResources.cpp
+ * DAnCE/Config_Handlers/CIAOServerResources.hpp
+ * DAnCE/Config_Handlers/Deployment.cpp
+ * DAnCE/Config_Handlers/Deployment.hpp
+ * DAnCE/Config_Handlers/ccd.cpp
+ * DAnCE/Config_Handlers/ccd.hpp
+ * DAnCE/Config_Handlers/cdd.cpp
+ * DAnCE/Config_Handlers/cdd.hpp
+ * DAnCE/Config_Handlers/cdp.cpp
+ * DAnCE/Config_Handlers/cdp.hpp
+ * DAnCE/Config_Handlers/cid.cpp
+ * DAnCE/Config_Handlers/cid.hpp
+ * DAnCE/Config_Handlers/cpd.cpp
+ * DAnCE/Config_Handlers/cpd.hpp
+ * DAnCE/Config_Handlers/iad.cpp
+ * DAnCE/Config_Handlers/iad.hpp
+ * DAnCE/Config_Handlers/pcd.cpp
+ * DAnCE/Config_Handlers/pcd.hpp
+ * DAnCE/Config_Handlers/toplevel.cpp
+ * DAnCE/Config_Handlers/toplevel.hpp
+
+ Fixes a large number of compiler warnings in Borland.
Thu Aug 25 15:26:25 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
- * DAnCE/ciao/ServerResources.idl: Added the missing <stacksize>
- attribute to ORS_ThreadpoolWithLanes struct. Thanks to Will
- Otte for catching this.
+ * DAnCE/ciao/ServerResources.idl: Added the missing <stacksize>
+ attribute to ORS_ThreadpoolWithLanes struct. Thanks to Will
+ Otte for catching this.
Wed Aug 24 20:41:59 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
@@ -4697,15 +1392,15 @@ Wed Aug 24 20:41:59 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Tue Aug 23 20:09:59 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * DAnCE/Old_Config_Handlers/DT_Handler.h:
- * DAnCE/RTNodeApplication/RTServer_Impl.h:
- * DAnCE/ciao/Container_Base.h:
- * DAnCE/ciao/Context_Impl_Base.h:
- * DAnCE/ciao/NodeApplication_Impl.h:
+ * DAnCE/Old_Config_Handlers/DT_Handler.h:
+ * DAnCE/RTNodeApplication/RTServer_Impl.h:
+ * DAnCE/ciao/Container_Base.h:
+ * DAnCE/ciao/Context_Impl_Base.h:
+ * DAnCE/ciao/NodeApplication_Impl.h:
- Reordered include directives to make sure all necessary
- non-dependent names are parsed before the templates that use
- them. Addresses g++ 3.4.x or better compile-time errors.
+ Reordered include directives to make sure all necessary
+ non-dependent names are parsed before the templates that use
+ them. Addresses g++ 3.4.x or better compile-time errors.
Tue Aug 23 19:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -4716,16 +1411,16 @@ Tue Aug 23 19:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Mon Aug 22 10:59:18 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/DeploymentManager/DeploymentManager.cidl
- * DAnCE/DeploymentManager/DeploymentManager.idl
- * DAnCE/DeploymentManager/DeploymentManager.mpc
- * DAnCE/DeploymentManager/DeploymentManager_Impl.cpp
- * DAnCE/DeploymentManager/DeploymentManager_Impl.h
- * DAnCE/DeploymentManager/DeploymentManager_exec_export.h
- * DAnCE/DeploymentManager/DeploymentManager_stub_export.h
- * DAnCE/DeploymentManager/DeploymentManager_svnt_export.h
+ * DAnCE/DeploymentManager/DeploymentManager.cidl
+ * DAnCE/DeploymentManager/DeploymentManager.idl
+ * DAnCE/DeploymentManager/DeploymentManager.mpc
+ * DAnCE/DeploymentManager/DeploymentManager_Impl.cpp
+ * DAnCE/DeploymentManager/DeploymentManager_Impl.h
+ * DAnCE/DeploymentManager/DeploymentManager_exec_export.h
+ * DAnCE/DeploymentManager/DeploymentManager_stub_export.h
+ * DAnCE/DeploymentManager/DeploymentManager_svnt_export.h
- Preliminary skeleton for the DeploymentManager.
+ Preliminary skeleton for the DeploymentManager.
Fri Aug 19 07:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -4738,83 +1433,83 @@ Fri Aug 19 07:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Tue Aug 16 15:16:10 2005 Nanbor Wang <nanbor@exothermic.txcorp.com>
- * docs/schema/CIAOServerResources.xsd: Changed to define most of
- the RT policy details with "element"s instead of "attribute"s
- since "attribute"s can be optional. Thanks to Will Otte for
- pointing this out.
+ * docs/schema/CIAOServerResources.xsd: Changed to define most of
+ the RT policy details with "element"s instead of "attribute"s
+ since "attribute"s can be optional. Thanks to Will Otte for
+ pointing this out.
Tue Aug 16 09:46:45 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/Config_Handlers.mpc
+ * DAnCE/Config_Handlers/Config_Handlers.mpc
- Moved some changes in from the branch to correct errors from:
- Mon Aug 15 12:03:43 2005 William Otte <wotte@dre.vanderbilt.edu>
+ Moved some changes in from the branch to correct errors from:
+ Mon Aug 15 12:03:43 2005 William Otte <wotte@dre.vanderbilt.edu>
Mon Aug 15 12:03:43 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/ADD_Handler.cpp
- * DAnCE/Config_Handlers/ADD_Handler.h
- * DAnCE/Config_Handlers/CCD_Handler.cpp
- * DAnCE/Config_Handlers/CCD_Handler.h
- * DAnCE/Config_Handlers/CRDD_Handler.h
- * DAnCE/Config_Handlers/DP_Handler.cpp
- * DAnCE/Config_Handlers/DP_Handler.h
- * DAnCE/Config_Handlers/DP_PCD_Handler.cpp
- * DAnCE/Config_Handlers/DP_PCD_Handler.h
- * DAnCE/Config_Handlers/IDD_Handler.cpp
- * DAnCE/Config_Handlers/IDD_Handler.h
- * DAnCE/Config_Handlers/IDREF_Base.cpp
- * DAnCE/Config_Handlers/ID_Handler.h
- * DAnCE/Config_Handlers/IRDD_Handler.cpp
- * DAnCE/Config_Handlers/MDD_Handler.cpp
- * DAnCE/Config_Handlers/MDD_Handler.h
- * DAnCE/Config_Handlers/PCD_Handler.cpp
- * DAnCE/Config_Handlers/PCD_Handler.h
- * DAnCE/Config_Handlers/PSPE_Handler.cpp
- * DAnCE/Config_Handlers/Req_Handler.cpp
- * DAnCE/Config_Handlers/XML_Helper.cpp
- * DAnCE/Config_Handlers/XML_Helper.h
- * DAnCE/Config_Handlers/XercesString.cpp
- * DAnCE/Config_Handlers/XercesString.h
- * DAnCE/Config_Handlers/test.cpp
-
- Checked in support for IDL->XSC->XML mapping. Thanks to Lucas
- Seibert <heynonynony at yahoo dot com> for completing this work.
+ * DAnCE/Config_Handlers/ADD_Handler.cpp
+ * DAnCE/Config_Handlers/ADD_Handler.h
+ * DAnCE/Config_Handlers/CCD_Handler.cpp
+ * DAnCE/Config_Handlers/CCD_Handler.h
+ * DAnCE/Config_Handlers/CRDD_Handler.h
+ * DAnCE/Config_Handlers/DP_Handler.cpp
+ * DAnCE/Config_Handlers/DP_Handler.h
+ * DAnCE/Config_Handlers/DP_PCD_Handler.cpp
+ * DAnCE/Config_Handlers/DP_PCD_Handler.h
+ * DAnCE/Config_Handlers/IDD_Handler.cpp
+ * DAnCE/Config_Handlers/IDD_Handler.h
+ * DAnCE/Config_Handlers/IDREF_Base.cpp
+ * DAnCE/Config_Handlers/ID_Handler.h
+ * DAnCE/Config_Handlers/IRDD_Handler.cpp
+ * DAnCE/Config_Handlers/MDD_Handler.cpp
+ * DAnCE/Config_Handlers/MDD_Handler.h
+ * DAnCE/Config_Handlers/PCD_Handler.cpp
+ * DAnCE/Config_Handlers/PCD_Handler.h
+ * DAnCE/Config_Handlers/PSPE_Handler.cpp
+ * DAnCE/Config_Handlers/Req_Handler.cpp
+ * DAnCE/Config_Handlers/XML_Helper.cpp
+ * DAnCE/Config_Handlers/XML_Helper.h
+ * DAnCE/Config_Handlers/XercesString.cpp
+ * DAnCE/Config_Handlers/XercesString.h
+ * DAnCE/Config_Handlers/test.cpp
+
+ Checked in support for IDL->XSC->XML mapping. Thanks to Lucas
+ Seibert <heynonynony at yahoo dot com> for completing this work.
Mon Aug 15 00:01:01 2005 Boris Kolpackov <boris@kolpackov.net>
- * CIDLC/cidlc.cpp: Made ErrorHandler auto-detach itself
- from the stream when it is destroyed. This fixes the
- segmentation fault on Solaris in libstdc++ termination code.
+ * CIDLC/cidlc.cpp: Made ErrorHandler auto-detach itself
+ from the stream when it is destroyed. This fixes the
+ segmentation fault on Solaris in libstdc++ termination code.
Wed Aug 10 09:39:41 2005 William Otte <wotte@dre.vanderbilt.edu>
- * DAnCE/Config_Handlers/Basic_Deployment_Data.cpp
- * DAnCE/Config_Handlers/Basic_Deployment_Data.hpp
- * DAnCE/Config_Handlers/CIAOServerResources.cpp
- * DAnCE/Config_Handlers/CIAOServerResources.hpp
- * DAnCE/Config_Handlers/Deployment.cpp
- * DAnCE/Config_Handlers/Deployment.hpp
- * DAnCE/Config_Handlers/ccd.cpp
- * DAnCE/Config_Handlers/ccd.hpp
- * DAnCE/Config_Handlers/cdd.cpp
- * DAnCE/Config_Handlers/cdd.hpp
- * DAnCE/Config_Handlers/cdp.cpp
- * DAnCE/Config_Handlers/cdp.hpp
- * DAnCE/Config_Handlers/cid.cpp
- * DAnCE/Config_Handlers/cid.hpp
- * DAnCE/Config_Handlers/cpd.cpp
- * DAnCE/Config_Handlers/cpd.hpp
- * DAnCE/Config_Handlers/iad.cpp
- * DAnCE/Config_Handlers/iad.hpp
- * DAnCE/Config_Handlers/pcd.cpp
- * DAnCE/Config_Handlers/pcd.hpp
- * DAnCE/Config_Handlers/toplevel.cpp
- * DAnCE/Config_Handlers/toplevel.hpp
-
- Regenerated with the latest CVS-head version of XSC. These support
- a couple improvements that will aid in optimizing the config
- handlers.
+ * DAnCE/Config_Handlers/Basic_Deployment_Data.cpp
+ * DAnCE/Config_Handlers/Basic_Deployment_Data.hpp
+ * DAnCE/Config_Handlers/CIAOServerResources.cpp
+ * DAnCE/Config_Handlers/CIAOServerResources.hpp
+ * DAnCE/Config_Handlers/Deployment.cpp
+ * DAnCE/Config_Handlers/Deployment.hpp
+ * DAnCE/Config_Handlers/ccd.cpp
+ * DAnCE/Config_Handlers/ccd.hpp
+ * DAnCE/Config_Handlers/cdd.cpp
+ * DAnCE/Config_Handlers/cdd.hpp
+ * DAnCE/Config_Handlers/cdp.cpp
+ * DAnCE/Config_Handlers/cdp.hpp
+ * DAnCE/Config_Handlers/cid.cpp
+ * DAnCE/Config_Handlers/cid.hpp
+ * DAnCE/Config_Handlers/cpd.cpp
+ * DAnCE/Config_Handlers/cpd.hpp
+ * DAnCE/Config_Handlers/iad.cpp
+ * DAnCE/Config_Handlers/iad.hpp
+ * DAnCE/Config_Handlers/pcd.cpp
+ * DAnCE/Config_Handlers/pcd.hpp
+ * DAnCE/Config_Handlers/toplevel.cpp
+ * DAnCE/Config_Handlers/toplevel.hpp
+
+ Regenerated with the latest CVS-head version of XSC. These support
+ a couple improvements that will aid in optimizing the config
+ handlers.
Tue Aug 9 11:55:13 2005 Ming Xiong <mxiong@dre.vanderbilt.edu>
@@ -5297,53 +1992,53 @@ Mon Jul 11 11:44:57 2005 Ming Xiong <mxiong@dre.vanderbilt.edu>
Fri Jul 8 17:42:57 2005 Ming Xiong <mxiong@dre.vanderbilt.edu>
- * docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc
- * docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl
- * docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base_svnt_export.h
- * docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base_stub_export.h
- * docs/tutorials/Quoter/Simple/Broker/Broker.mpc
- * docs/tutorials/Quoter/Simple/Broker/Broker.idl
- * docs/tutorials/Quoter/Simple/Broker/Broker.cidl
- * docs/tutorials/Quoter/Simple/Broker/Broker.cpp
- * docs/tutorials/Quoter/Simple/Broker/Broker_exec.h
- * docs/tutorials/Quoter/Simple/Broker/Broker_exec.cpp
- * docs/tutorials/Quoter/Simple/Broker/Broker_svnt_export.h
- * docs/tutorials/Quoter/Simple/Broker/Broker_stub_export.h
- * docs/tutorials/Quoter/Simple/Broker/Broker_exec_export.h
- * docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc
- * docs/tutorials/Quoter/Simple/Distributor/Distributor.idl
- * docs/tutorials/Quoter/Simple/Distributor/Distributor.cidl
- * docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
- * docs/tutorials/Quoter/Simple/Distributor/Distributor_exec.h
- * docs/tutorials/Quoter/Simple/Distributor/Distributor_exec.cpp
- * docs/tutorials/Quoter/Simple/Distributor/Distributor_svnt_export.h
- * docs/tutorials/Quoter/Simple/Distributor/Distributor_stub_export.h
- * docs/tutorials/Quoter/Simple/Distributor/Distributor_exec_export.h
- * docs/tutorials/Quoter/Simple/descriptors/Broker.ccd
- * docs/tutorials/Quoter/Simple/descriptors/Broker.cid
- * docs/tutorials/Quoter/Simple/descriptors/Broker.cpd
- * docs/tutorials/Quoter/Simple/descriptors/Broker_Exec.iad
- * docs/tutorials/Quoter/Simple/descriptors/Broker_Stub.iad
- * docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad
- * docs/tutorials/Quoter/Simple/descriptors/Deployment.xsd
- * docs/tutorials/Quoter/Simple/descriptors/Distributor.ccd
- * docs/tutorials/Quoter/Simple/descriptors/Distributor.cid
- * docs/tutorials/Quoter/Simple/descriptors/Distributor.cpd
- * docs/tutorials/Quoter/Simple/descriptors/Distributor_Exec.iad
- * docs/tutorials/Quoter/Simple/descriptors/Distributor_Stub.iad
- * docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad
- * docs/tutorials/Quoter/Simple/descriptors/Domain.cdd
- * docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
- * docs/tutorials/Quoter/Simple/descriptors/Libraries.iad
- * docs/tutorials/Quoter/Simple/descriptors/Modified_Deployment.xsd
- * docs/tutorials/Quoter/Simple/descriptors/package.tpd
- * docs/tutorials/Quoter/Simple/descriptors/runNodeDaemons.pl
- * docs/tutorials/Quoter/Simple/descriptors/Stock.cdp
- * docs/tutorials/Quoter/Simple/descriptors/Stock.cid
- * docs/tutorials/Quoter/Simple/descriptors/Stock.cpd
- * docs/tutorials/Quoter/Simple/descriptors/Stock.dat
- * docs/tutorials/Quoter/Simple/descriptors/Stock.pcd
- * docs/tutorials/Quoter/Simple/descriptors/XMI.xsd
+ * CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc
+ * CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl
+ * CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base_svnt_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base_stub_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.mpc
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.idl
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cidl
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cpp
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker_exec.h
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker_exec.cpp
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker_svnt_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker_stub_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Broker/Broker_exec_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.idl
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cidl
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor_exec.h
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor_exec.cpp
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor_svnt_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor_stub_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor_exec_export.h
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker.ccd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker.cid
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker.cpd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Exec.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Stub.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Deployment.xsd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor.ccd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor.cid
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor.cpd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Exec.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Stub.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Domain.cdd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Libraries.iad
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Modified_Deployment.xsd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/package.tpd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/runNodeDaemons.pl
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Stock.cdp
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Stock.cid
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Stock.cpd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Stock.dat
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/Stock.pcd
+ * CIAO/docs/tutorials/Quoter/Simple/descriptors/XMI.xsd
Created a new directory tutorials to hold multiple tutorial examples, added quoter
to this directory as simple quoter example. Will add a multiple receptacle quoter
@@ -5723,34 +2418,34 @@ Fri Jun 24 14:21:31 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Wed Jun 22 23:20:04 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
- * CIDLC/ExecImplHeaderGenerator.cpp:
- * CIDLC/ExecImplSourceGenerator.cpp:
- * CIDLC/ExecutorMappingGenerator.cpp:
- * CIDLC/Literals.cpp:
- * CIDLC/Literals.hpp:
- * CIDLC/ServantHeaderGenerator.cpp:
- * CIDLC/ServantSourceGenerator.cpp:
- * DAnCE/examples/Display/NavDisplay/NavDisplay_exec.h:
- * DAnCE/examples/Display/RateGen/RateGen_exec.h:
- * DAnCE/examples/Hello/Receiver/Receiver_exec.cpp:
- * DAnCE/examples/Hello/Receiver/Receiver_exec.h:
- * DAnCE/examples/Hello/Sender/Sender_exec.cpp:
- * DAnCE/examples/Hello/Sender/Sender_exec.h:
- * DAnCE/examples/Quoter/Broker/Broker_exec.cpp:
- * DAnCE/examples/Quoter/Broker/Broker_exec.h:
- * DAnCE/examples/Quoter/Distributor/Distributor_exec.cpp:
- * DAnCE/examples/Quoter/Distributor/Distributor_exec.h:
- * DAnCE/examples/Swapping/Receiver/Receiver_exec.cpp:
- * DAnCE/examples/Swapping/Receiver/Receiver_exec.h:
- * DAnCE/examples/Swapping/Sender/Sender_exec.cpp:
- * DAnCE/examples/Swapping/Sender/Sender_exec.h:
- * DAnCE/examples/Swapping/Sender/Sender_exec_1.cpp:
- * DAnCE/examples/Swapping/Sender/Sender_exec_1.h:
- * DAnCE/examples/Swapping/Sender/Sender_exec_2.cpp:
- * DAnCE/examples/Swapping/Sender/Sender_exec_2.h:
- * DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp:
- * DAnCE/tests/NodeApplicationTest/RoundTrip_exec.h:
- * docs/releasenotes/index.html:
+ * CIAO/CIDLC/ExecImplHeaderGenerator.cpp:
+ * CIAO/CIDLC/ExecImplSourceGenerator.cpp:
+ * CIAO/CIDLC/ExecutorMappingGenerator.cpp:
+ * CIAO/CIDLC/Literals.cpp:
+ * CIAO/CIDLC/Literals.hpp:
+ * CIAO/CIDLC/ServantHeaderGenerator.cpp:
+ * CIAO/CIDLC/ServantSourceGenerator.cpp:
+ * CIAO/DAnCE/examples/Display/NavDisplay/NavDisplay_exec.h:
+ * CIAO/DAnCE/examples/Display/RateGen/RateGen_exec.h:
+ * CIAO/DAnCE/examples/Hello/Receiver/Receiver_exec.cpp:
+ * CIAO/DAnCE/examples/Hello/Receiver/Receiver_exec.h:
+ * CIAO/DAnCE/examples/Hello/Sender/Sender_exec.cpp:
+ * CIAO/DAnCE/examples/Hello/Sender/Sender_exec.h:
+ * CIAO/DAnCE/examples/Quoter/Broker/Broker_exec.cpp:
+ * CIAO/DAnCE/examples/Quoter/Broker/Broker_exec.h:
+ * CIAO/DAnCE/examples/Quoter/Distributor/Distributor_exec.cpp:
+ * CIAO/DAnCE/examples/Quoter/Distributor/Distributor_exec.h:
+ * CIAO/DAnCE/examples/Swapping/Receiver/Receiver_exec.cpp:
+ * CIAO/DAnCE/examples/Swapping/Receiver/Receiver_exec.h:
+ * CIAO/DAnCE/examples/Swapping/Sender/Sender_exec.cpp:
+ * CIAO/DAnCE/examples/Swapping/Sender/Sender_exec.h:
+ * CIAO/DAnCE/examples/Swapping/Sender/Sender_exec_1.cpp:
+ * CIAO/DAnCE/examples/Swapping/Sender/Sender_exec_1.h:
+ * CIAO/DAnCE/examples/Swapping/Sender/Sender_exec_2.cpp:
+ * CIAO/DAnCE/examples/Swapping/Sender/Sender_exec_2.h:
+ * CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.cpp:
+ * CIAO/DAnCE/tests/NodeApplicationTest/RoundTrip_exec.h:
+ * CIAO/docs/releasenotes/index.html:
Eliminated generation of the CIAO_GLUE_-prefixed namespace
and replaced it with a namespace constructed from the
@@ -6260,11 +2955,11 @@ Sat May 21 14:39:48 2005 Gan Deng <gan.deng@vanderbilt.edu>
Tue May 17 20:49:48 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
- * tests/IDL3/ImpliedIDL/All/all.mpc:
- * tests/IDL3/ImpliedIDL/All/convert.idl:
- * tests/IDL3/ImpliedIDL/All/pass_through.idl:
- * tests/IDL3/ImpliedIDL/All/include.idl:
- * tests/IDL3/ImpliedIDL/All/README:
+ * CIAO/tests/IDL3/ImpliedIDL/All/all.mpc:
+ * CIAO/tests/IDL3/ImpliedIDL/All/convert.idl:
+ * CIAO/tests/IDL3/ImpliedIDL/All/pass_through.idl:
+ * CIAO/tests/IDL3/ImpliedIDL/All/include.idl:
+ * CIAO/tests/IDL3/ImpliedIDL/All/README:
New files comprising a test for the tao_idl3_to_idl2
executable. The test executes tao_idl3_to_idl2 on the
@@ -8538,7 +5233,5 @@ Thu Dec 30 13:24:16 2004 Chris Cleeland <cleeland@ociweb.com>
* CIAO version 0.4.3 released.
Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
+add-log-time-format: current-time-string
End:
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.cpp b/TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.cpp
new file mode 100644
index 00000000000..ff25c68a9d5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.cpp
@@ -0,0 +1,33 @@
+// $Id$
+
+#include "Base_Packager.h"
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+ Base_Packager::Base_Packager (const char *pkg_url,
+ const char *cdp_url,
+ const char *pdl_url,
+ bool include_std_desc)
+
+ :pkg_url_ (pkg_url),
+ cdp_url_ (cdp_url),
+ pdl_url_ (pdl_url),
+ include_std_desc_ (include_std_desc)
+ {}
+
+ int
+ Base_Packager::preparePackage (PACKAGE_PLAN &pkg_plan)
+ {
+ return 0;
+ }
+
+ int
+ Base_Packager::createPackage (const PACKAGE_PLAN &pkg_plan)
+ {
+ return 0;
+ }
+
+ }
+}
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.h b/TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.h
new file mode 100644
index 00000000000..dc8e0b1f238
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/Base_Packager.h
@@ -0,0 +1,77 @@
+//==================================================================
+/**
+ * @file Base_Packager.h
+ *
+ * $Id$
+ *
+ * @author Ming Xiong <mxiong@dre.vanderbilt.edu>
+ */
+//==================================================================
+
+#ifndef BASE_PACKAGER_H
+#define BASE_PACKAGER_H
+#include /**/ "ace/pre.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <map>
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+
+ typedef std::map <ACE_TString, ACE_TString>::const_iterator DESC_PLAN_CONST_ITER;
+ typedef std::map <ACE_TString, ACE_TString>::const_iterator IMPL_PLAN_CONST_ITER;
+
+ struct packageplan
+ {
+ std::map <ACE_TString, ACE_TString> descriptors;
+ std::map <ACE_TString, ACE_TString> implementations;
+ };
+
+ /**
+ * @class Base_Package
+ *
+ * @brief Base class for ComponentPackager
+ *
+ */
+ class Base_Packager
+ {
+ public:
+ typedef packageplan PACKAGE_PLAN;
+
+ /// constructor
+ Base_Packager (const char *pkg_url,
+ const char *cdp_url,
+ const char *pdl_url = 0,
+ bool include_std_desc = true);
+
+ /// Prepare the package plan
+ int preparePackage (PACKAGE_PLAN &pkg_plan);
+
+ /// Create the archive
+ int createPackage (const PACKAGE_PLAN &pkg_plan);
+
+ protected:
+ // URL for package
+ const char *pkg_url_;
+
+ // URL for flattened_deploymentplan
+ const char *cdp_url_;
+
+ // URL for PackageDescriptorsList file
+ const char *pdl_url_;
+
+ // Indicate whether to include separate descriptors
+ bool include_std_desc_;
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* BASE_PACKAGER_H */
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.cpp b/TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.cpp
new file mode 100644
index 00000000000..fff849d1247
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.cpp
@@ -0,0 +1,221 @@
+// $Id$
+
+#include "Config_Handlers/XML_File_Intf.h"
+#include "ciao/DeploymentC.h"
+#include "ciao/CIAO_common.h"
+
+#include "CPK_Packager.h"
+#include "PDL_Handler.h"
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+ int
+ CPK_Packager::preparePackage (PACKAGE_PLAN &pkg_plan)
+ {
+ ACE_TString impl_inzip_path ("implementations");
+ impl_inzip_path += ACE_DIRECTORY_SEPARATOR_STR;
+
+ ACE_TString desc_inzip_path ("descriptors");
+ desc_inzip_path += ACE_DIRECTORY_SEPARATOR_STR;
+
+
+ CIAO::Config_Handlers::XML_File_Intf intf (this->cdp_url_);
+ Deployment::DeploymentPlan_var obj_plan = intf.get_plan ();
+
+ const Deployment::DeploymentPlan &plan = obj_plan;
+
+ //@@ Prepare package plan for implementations
+ for (CORBA::ULong i = 0;
+ i < plan.implementation.length ();
+ i++)
+ {
+ ACE_TString name (plan.implementation[i].name);
+
+ this->desc_mf_ << name << " " << ACE_PLATFORM << "\n";
+ this->desc_mf_ << "{\n";
+
+ CORBA::ULong artifact_len = plan.implementation[i].artifactRef.length ();
+
+ ACE_TCHAR dll_pathname[MAXPATHLEN + 1];
+
+ for (CORBA::ULong iter = 0;
+ iter < artifact_len;
+ iter++)
+ {
+ // Transform the pathname into the appropriate dynamic link library
+ // by searching the ACE_LD_SEARCH_PATH.
+ int result = ACE::ldfind (plan.artifact[plan.implementation[i].artifactRef[iter]].location[0],
+ dll_pathname,
+ (sizeof (dll_pathname) / sizeof (ACE_TCHAR)));
+
+ if (result != 0)
+ {
+ ACE_DEBUG ((LM_ERROR,
+ ACE_TEXT ("Resource not available!")
+ ACE_TEXT ("Please make sure you have compiled the component.\n")));
+ return -1;
+ }
+
+ ACE_TString path (dll_pathname);
+ ACE_TString base (ACE::basename (dll_pathname));
+
+ ACE_TString inzip_path = impl_inzip_path + base;
+
+ // store the plan info to predefined struct
+ Component_Packager::DESC_PLAN_CONST_ITER plan_iter =
+ pkg_plan.implementations.find (inzip_path);
+ if (plan_iter != pkg_plan.descriptors.end ())
+ {
+ pkg_plan.implementations[inzip_path] = path;
+ }
+ this->desc_mf_ << " " << base << "\n";
+ }
+ this->desc_mf_ << "}\n";
+ }
+
+ //@@ prepare package plan for descriptors
+ ACE_TString cdp_path (this->cdp_url_);
+ ACE_TString cdp_inzip_path = desc_inzip_path +
+ ACE::basename (cdp_path.c_str ());
+ pkg_plan.descriptors[cdp_inzip_path] = cdp_path;
+
+ // return if separated descriptors are not required to be inluded
+ // in the package
+ if (!this->include_std_desc_ ) return 0;
+
+ //@@ retrieve location information for standard descriptors
+ PDL_Handler pdl_handler;
+ PDL_Handler::DESC_LIST desc_list;
+
+ if (-1 == pdl_handler.process_pdl (this->pdl_url_,
+ desc_list))
+ {
+ ACE_DEBUG ((LM_ERROR,
+ ACE_TEXT ("Error processing the .pdl file\n")));
+ return -1;
+ }
+
+ for (PDL_Handler::DESC_LIST::iterator iter = desc_list.begin ();
+ iter != desc_list.end ();
+ iter++)
+ {
+ ACE_TString path ((*iter).c_str ());
+ ACE_TString inzip_path = desc_inzip_path + path;
+ pkg_plan.descriptors [inzip_path] = path;
+ }
+
+ return 0;
+ }
+
+ int
+ CPK_Packager::createPackage (const PACKAGE_PLAN &pkg_plan)
+ {
+ this->cpk_zip_.Open (this->cpk_file_,
+ CZipArchive::zipCreate);
+
+ //@@ :Archive description
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("ComponentPackager: Adding description ....")));
+
+ //@@ Write the description file to the archive
+ if (this->cpk_zip_.AddNewFile (this->desc_mf_, "description"))
+ {
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("[Done]\n")));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("\nfail to add description, operation aborted.")));
+ return -1;
+ }
+
+
+
+ //@@ Archive descriptors
+ for (Component_Packager::DESC_PLAN_CONST_ITER iter = pkg_plan.descriptors.begin ();
+ iter != pkg_plan.descriptors.end ();
+ iter++)
+ {
+ ACE_TString inzip_path ((*iter).first);
+ ACE_TString path ((*iter).second);
+
+
+ CZipAddNewFileInfo desc_info (path.c_str (),
+ inzip_path.c_str ());
+
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("ComponentPackager: Adding %s ...."),
+ inzip_path.c_str ()));
+
+ if (this->cpk_zip_.AddNewFile (desc_info))
+ {
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("[Done]\n")));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("\nfail to add %s, the target file")
+ ACE_TEXT ("may be corrupted or does not exist,operation aborted.\n"),
+ inzip_path.c_str ()));
+ return -1;
+ }
+ }
+
+ //@@ Archive implementations
+ for (Component_Packager::IMPL_PLAN_CONST_ITER iter = pkg_plan.implementations.begin ();
+ iter != pkg_plan.implementations.end ();
+ iter++)
+ {
+ ACE_TString inzip_path ((*iter).first);
+ ACE_TString path ((*iter).second);
+
+ CZipAddNewFileInfo impl_info (path.c_str (),
+ inzip_path.c_str ());
+
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("ComponentPackager: Adding %s ...."),
+ inzip_path.c_str ()));
+
+ if (this->cpk_zip_.AddNewFile (impl_info))
+ {
+ ACE_DEBUG ((LM_INFO,
+ ACE_TEXT ("[Done]\n")));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("\nfail to add %s, the target file")
+ ACE_TEXT ("may be corrupted or does not exist,operation aborted.\n"),
+ inzip_path.c_str ()));
+ return -1;
+ }
+ }
+
+ this->cpk_zip_.Close ();
+ return 0;
+ }
+
+
+ // overloaded std::out operator
+ CZipMemFile& operator << (CZipMemFile &mf,
+ const ACE_TCHAR *str)
+ {
+ mf.Write (str, ACE_OS::strlen (str));
+ return mf;
+ }
+
+ // overloaded std::out operator
+ CZipMemFile& operator << (CZipMemFile &mf,
+ const ACE_TString &str)
+ {
+ mf.Write (str.c_str (), str.length ());
+ return mf;
+ }
+
+
+ }
+}
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.h b/TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.h
new file mode 100644
index 00000000000..638afe33e08
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/CPK_Packager.h
@@ -0,0 +1,91 @@
+//==================================================================
+/**
+ * @file CPK_Packager.h
+ *
+ * $Id$
+ *
+ * @author Ming Xiong <mxiong@dre.vanderbilt.edu>
+ */
+//==================================================================
+
+#ifndef CPK_PACKAGE_H
+#define CPK_PACKAGE_H
+#include /**/ "ace/pre.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include "Base_Packager.h"
+
+#ifdef __GNUC__
+ #include "ZipArchive.h"
+ #include "ZipPlatform.h"
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <dirent.h>
+ #include <fnmatch.h>
+ #include <unistd.h>
+#else
+ #include "ZipArchive.h"
+ #include "ZipPlatform.h"
+#endif
+
+#include <set>
+#include "Base_Packager.h"
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+ using namespace CIAO::Component_Packager;
+
+ /**
+ * @class CPK_Package
+ *
+ * @brief This class defines operations
+ * for creating DAnCE component
+ * package
+ *
+ */
+ class CPK_Packager : public Base_Packager
+ {
+ public:
+ /// constructor
+ CPK_Packager (const char *pkg_url,
+ const char *cdp_url,
+ const char *pdl_url,
+ bool include_std_desc)
+ :Base_Packager (pkg_url, cdp_url, pdl_url, include_std_desc),
+ cpk_file_ (this->pkg_url_) { }
+
+ /// Collect the information for files to be archived
+ int preparePackage (PACKAGE_PLAN &pkg_plan);
+
+ /// Create a zip archive
+ int createPackage (const PACKAGE_PLAN &pkg_plan);
+
+ protected:
+ // A memory buffer to store package description
+ CZipMemFile desc_mf_;
+
+ // The actualy archive in zip format
+ CZipArchive cpk_zip_;
+
+ // String format used by CZipArchive
+ CZipString cpk_file_;
+ };
+
+ // overloaded std::out operator
+ CZipMemFile& operator << (CZipMemFile &mf,
+ const ACE_TCHAR *str);
+ // overloaded std::out operator
+ CZipMemFile& operator << (CZipMemFile &mf,
+ const ACE_TString &str);
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* CPK_PACKAGE_H */
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/ComponentPackager.mpc b/TAO/CIAO/DAnCE/ComponentPackager/ComponentPackager.mpc
new file mode 100644
index 00000000000..e877479af32
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/ComponentPackager.mpc
@@ -0,0 +1,19 @@
+// -*- MPC -*-
+// $Id$
+
+project(ComponentPackager): naming, ciao_server_dnc, xerces, taoexe, ziparchive {
+ exename = Component_Packager
+ requires += exceptions ziparchive
+ after += XSC_Config_Handlers NodeDaemon_stub
+
+ libs += XSC_Config_Handlers
+ includes += $(CIAO_ROOT)/DAnCE/Config_Handlers
+
+ Source_Files {
+ Component_Packager.cpp
+ CPK_Packager.cpp
+ Base_Packager.cpp
+ PDL_Handler.cpp
+ pdl.cpp
+ }
+}
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/Component_Packager.cpp b/TAO/CIAO/DAnCE/ComponentPackager/Component_Packager.cpp
new file mode 100644
index 00000000000..8bcab6d6af8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/Component_Packager.cpp
@@ -0,0 +1,154 @@
+// $Id$
+
+#include "ace/Get_Opt.h"
+#include "ciao/DeploymentC.h"
+#include "ciao/CIAO_common.h"
+#include "CPK_Packager.h"
+#include "PDL_Handler.h"
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+ // URL for flattened component deployment plan
+ const char* cdp_url = 0;
+ // URL for .cid file, which will help to archive
+ // the standard descriptors into package
+ const char* pdl_url = 0;
+ // URL for component package to be produced
+ const char* pkg_url = "ComponentPackage.cpk";
+ // Indicate whether to include standard descriptors
+ // in the package or not
+ bool include_std_desc = false;
+
+
+ static void
+ display_usage (const ACE_TCHAR* program)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("[CIAO::Component_Packager] Usage:\n")
+ ACE_TEXT (" -h Display usage information for commands\n")
+ ACE_TEXT (" -p flatplan(.cdp) Use 'flatplan'as the input to produce the package\n")
+ ACE_TEXT (" -i descriptor(.cid) Use 'descriptor' as addition input to archive all\n")
+ ACE_TEXT (" the standard descriptors\n")
+ ACE_TEXT (" -o package(.cpk) Set the output package name.Use 'ComponentPackage.cpk'\n")
+ ACE_TEXT (" if this option is not specified.\n")));
+ }
+
+
+ static bool
+ parse_args (int argc,
+ ACE_TCHAR *argv[])
+ {
+ ACE_Get_Arg_Opt<char> get_opt (argc,
+ argv,
+ ACE_TEXT ("p:i:o:h"));
+ int c;
+
+ while ((c = get_opt ()) != EOF)
+ {
+ switch (c)
+ {
+ case 'p':
+ cdp_url = get_opt.opt_arg ();
+ break;
+ case 'i':
+ include_std_desc = true;
+ pdl_url = get_opt.opt_arg ();
+ break;
+ case 'o':
+ pkg_url = get_opt.opt_arg ();
+ break;
+ case 'h':
+ default:
+ display_usage (argv[0]);
+ return false;
+ }
+ }
+
+ if (cdp_url == 0)
+ {
+ display_usage (argv[0]);
+ return false;
+ }
+
+ if (pdl_url == 0 && include_std_desc)
+ {
+ display_usage (argv[0]);
+ return false;
+ }
+
+ if (pkg_url == 0)
+ {
+ display_usage (argv[0]);
+ return false;
+ }
+
+ return true;
+ }
+
+
+ static int
+ run_main (int argc, char *argv[])
+ {
+ ACE_DECLARE_NEW_CORBA_ENV;
+
+ ACE_TRY
+ {
+ if (parse_args (argc, argv) == false)
+ {
+ return -1;
+ }
+
+ CPK_Packager packager (pkg_url,
+ cdp_url,
+ pdl_url,
+ include_std_desc);
+
+ Component_Packager::Base_Packager::PACKAGE_PLAN pkg_plan;
+
+ if (-1 == packager.preparePackage (pkg_plan))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Component_Packager: Error preparing package plan\n"));
+ throw;
+ };
+ if (-1 == packager.createPackage (pkg_plan))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Component_Packager: Error creating package plan\n"));
+ throw;
+ };
+
+ ACE_DEBUG ((LM_INFO,
+ "(%P|%t)[success] The Component Package has been created!"));
+
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "(%P|%t) Component_Packager: ");
+ return -1;
+ }
+ ACE_CATCHALL
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Component_Packager: Unknown exception.\n"));
+ return -1;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (-1);
+
+ return 0;
+ }
+ }
+}
+
+using namespace CIAO::Component_Packager;
+
+int
+ACE_TMAIN (int argc,
+ ACE_TCHAR *argv[])
+{
+ return run_main (argc, argv);
+}
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.cpp b/TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.cpp
new file mode 100644
index 00000000000..1691a91cded
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "PDL_Handler.h"
+#include "Config_Handlers/XML_Helper.h"
+#include "xercesc/dom/DOM.hpp"
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+ using namespace CIAO::Config_Handlers;
+ using xercesc::DOMDocument;
+
+ PDL_Handler::PDL_Handler ()
+ {
+ }
+
+ PDL_Handler::~PDL_Handler()
+ {
+ }
+
+
+ int
+ PDL_Handler::process_pdl (const char *pdl_url,
+ DESC_LIST &desc_list)
+ {
+ //@@ retrieve location information for standard descriptors
+ XML_Helper pdl_helper;
+
+ if (!pdl_helper.is_initialized ())
+ return -1;
+
+ xercesc::DOMDocument* pdl_dom =
+ pdl_helper.create_dom (pdl_url);
+
+ if (!pdl_dom)
+ return -1;
+
+ Package::PackageDescriptorsList list =
+ Package::packageDescriptorsList (pdl_dom);
+
+ this->get_DescriptorsList (list,
+ desc_list);
+ return 0;
+ }
+
+ void
+ PDL_Handler::get_DescriptorsList (Package::PackageDescriptorsList &list,
+ DESC_LIST &desc_list)
+ {
+ for (Package::PackageDescriptorsList::desc_const_iterator iter = list.begin_desc ();
+ iter != list.end_desc ();
+ iter++)
+ {
+ ACE_TString value((*iter).c_str ());
+ if (value.length () != 0)
+ desc_list.push_back (value);
+ }
+ return;
+ }
+
+ }
+}
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.h b/TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.h
new file mode 100644
index 00000000000..f828b22cd60
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/PDL_Handler.h
@@ -0,0 +1,57 @@
+//==================================================================
+/**
+ * @file PDL_Handler.h
+ *
+ * $Id$
+ *
+ * @author Ming Xiong <mxiong@dre.vanderbilt.edu>
+ */
+//==================================================================
+
+#ifndef PDL_HANDLER_H
+#define PDL_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ace/SString.h"
+#include <list>
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "pdl.hpp"
+
+namespace CIAO
+{
+ namespace Component_Packager
+ {
+ /**
+ * @class PDL_Handler
+ *
+ * @brief Handler class for PackageDescriptionList
+ *
+ * This class defines handler methods to parse the
+ * PackageDescriptionList descriptor file
+ */
+ class PDL_Handler
+ {
+ public:
+ typedef std::list<ACE_TString> DESC_LIST;
+
+ PDL_Handler ();
+ virtual ~PDL_Handler (void);
+
+ /// Process the pdl file and get the descriptors list
+ int process_pdl (const char *pdl_url,
+ DESC_LIST &desc_list);
+
+ static void get_DescriptorsList (Package::PackageDescriptorsList &list,
+ DESC_LIST &desc_list);
+ };
+
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* PDL_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/Package.xsd b/TAO/CIAO/DAnCE/ComponentPackager/Package.xsd
new file mode 100644
index 00000000000..11515bf328e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/Package.xsd
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"
+ xmlns:Package="http://www.dre.vanderbilt.edu/Package"
+ targetNamespace="http://www.dre.vanderbilt.edu/Package">
+
+ <xsd:complexType name="PackageDescriptorsList">
+ <xsd:sequence>
+ <xsd:element name="desc" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="packageDescriptorsList" type="Package:PackageDescriptorsList"/>
+
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/README.html b/TAO/CIAO/DAnCE/ComponentPackager/README.html
new file mode 100644
index 00000000000..db235e9ccf0
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/README.html
@@ -0,0 +1,186 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Building and Installing ComponentPackager</title>
+ <!-- $Id$ -->
+ <link rev="made" href="mailto:schmidt@cs.wustl.edu">
+ </head>
+ <body style="COLOR: rgb(0,0,0); BACKGROUND-COLOR: rgb(255,255,255)" link="#000fff" vlink="#ff0f0f">
+ <hr>
+ <h3>Building and Using ComponentPackager
+ </h3>
+ <p><span style="FONT-WEIGHT: bold"></span>To successfully build
+ CIAO::ComponentPackager, you will need ZipArchive, a free zip compression and
+ decompression library developed by
+ artpol-software.(http://www.artpol-software.com/) . This file explains how to
+ set up the building of ZipArchive under different OS platforms such that the
+ CIAO::ComponentPackager can be compiled successfully. If this file does not
+ solve all the problems you might encounter compiling ComponentPackager, please
+ also check out <a href="http://www.artpol-software.com/zipdoc/pageSyst.html">ZipArchive
+ Compiling and Integration</a>&nbsp; for more information. If you are still
+ having problems, please feel free to contact me at <A href="mailto:mxiong@dre.vanderbilt.edu">
+ mxiong@dre.vanderbilt.edu</A> .
+ <br>
+ </p>
+ <p>Currently, the ZipArchive version supported by ComponentPackager is 2.4.4. So
+ unless otherwise specified, please stay with this version. The following
+ explains how to build ZipArchive under <a href="#Windows">Windows </a>and <a href="#Linux">
+ Linux</a>.<br>
+ </p>
+ <h3><span style="FONT-WEIGHT: bold">Table of&nbsp; Contents</span></h3>
+ <ul>
+ <li>
+ &nbsp;<a href="#Windows">Building under Windows</a>
+ <li>
+ &nbsp;<a href="#Linux">Building under Linux</a>
+ <li>
+ &nbsp;<a href="#Using">Creating packages using ComponentPackager</a></li>
+ </ul>
+ <br>
+ <hr>
+ <h3><a name="Windows">Windows </a>
+ </h3>
+ <p><a name="Windows"> To obtain and build ZipArchive under windows, please do:</a></p>
+ <p><a name="Windows">1. Download the ZipArchive source from </a><a href="http://www.artpol-software.com/cgi-bin/download.cgi?ziparchive.zip">
+ here</a> , unzip it to a local direcoty, e.g. E:\ZipArchive<br>
+ 2. Navigate to ZipArchive\Windows directory, copy all the files into
+ ZipArchive\<br>
+ 3. Navigate to ZipArchive\stl directory, copy all the files (except zippie
+ folder) into ZipArchive\<br>
+ 4. Open ZipArchive_STL.dsw, click yes to convert it to solution file.<br>
+ 5. Change the output file property of ZipArchive_STL.dsw to \lib\ziparchd.lib
+ (originally it's \debug\ZipArchive_STL.lib).
+ <br>
+ 6. Build the solution, and you should be able to compile the ziparchive.<br>
+ 7. Add a environment variable ZIPARCHIVEROOT such that it contains the root
+ directory of ZipArchive. In this case, it would be E:\ZipArchive<br>
+ <br>
+ Now you should be able to build CIAO:Component_Packager.<br>
+ <br>
+ </p>
+ <hr>
+ <h3><a name="Linux">Linux</a></h3>
+ <a name="Linux">To obtain and build ZipArchive, do:<br>
+ 1. Obtains&nbsp; the&nbsp; ZipArchive
+ <br>
+ &nbsp;&nbsp;&nbsp; &gt;wget
+ http://www.artpol-software.com/cgi-bin/download.cgi?ziparchive.zip<br>
+ <br>
+ 2. Create a&nbsp; directory&nbsp; for ziparchive&nbsp; and decompressed the
+ ziparchive.zip<br>
+ &nbsp;&nbsp; &gt;mkdir ziplib<br>
+ &nbsp;&nbsp; &gt;unzip ziparchive.zip -d ziplib<br>
+ <br>
+ 3. Copy the necessary files for linux OS<br>
+ &nbsp;&nbsp; &gt;cd ziplib<br>
+ &nbsp;&nbsp; &gt;cp ./Linux/* .<br>
+ &nbsp;&nbsp; &gt;cp ./stl/* .<br>
+ <br>
+ 4. Edit the Makefile in the ./ziplib directory, do the following:<br>
+ </a>
+ <ul>
+ <a name="Linux">
+ <li>
+ &nbsp;&nbsp;&nbsp; uncomment the first OBJSZLIB variable which points to zlib
+ library object files, and comment the second OBJSZLIB, this step is very
+ important if you do not want to build zlib separately<br>
+ <li>
+ &nbsp;&nbsp;&nbsp; change prefix to the root directory of ziplib, e.g.
+ ~/ziplib. You may choose not to proceed this step if you would like to install
+ ZipArchive to system include and library paths.<br>
+ </a></LI>
+ </ul>
+ <a name="Linux">5. Build ZipArchive by typing
+ <span style="FONT-STYLE: italic">make</span><br>
+ 6. Install the ZipArchive by typing
+ <span style="FONT-STYLE: italic">make
+install<span style="FONT-STYLE: italic"></span></span>
+ </a>
+ <p><a name="Linux">7. Set up the environment variable
+ <br>
+ &nbsp;&nbsp;&nbsp; If you have installed the ziparchive into the system include
+ and library paths, you may skip this step. Otherwise, you might want to add an
+ environment variable ZIPARCHIVEROOT that contains the root directory of the
+ ZipArchive. For instance, in my ./.bash_profile i have the following entry:<br>
+ </a>
+ </p>
+ <p><a name="Linux">&nbsp;&nbsp;&nbsp; ZIPARCHIVEROOT=~/ziplib<br>
+ &nbsp;&nbsp;&nbsp; export ZIPARCHIVEROOT<br>
+ </a>
+ </p>
+ <p><a name="Linux">Now you should be able to successfully build the
+ CIAO::Component_Packager.<br>
+ </a>
+ </p>
+ <hr>
+ <h3 name="Using"><a name="Using">Create Component Package using ComponentPackager</a></h3>
+ <P>
+ <a name="Linux">To create a package, ComponentPackager need the
+ flattened_deploymentplan to obtain the information about component
+ implementations. For instance, in the
+ <A HREF="../../docs/tutorials/Quoter/">Quoter
+ example</A>, here are the steps to
+ create a package:<br>
+ <br>
+ (assuming windows platform)<br>
+ 1. cd descriptors<br>
+ 2. %CIAO_ROOT%/DAnCE/ComponentPackager/Component_Packager.exe -p
+ flattened_deploymentplan.cdp<br>
+ &nbsp;&nbsp;&nbsp; (2552|3524) Initializing the Xerces runtime
+ <br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding description ....[Done]
+ <br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding
+ descriptors\flattened_deploymentplan.cdp ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding implementations\Broker_execd.dll
+ ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding implementations\Broker_stubd.dll
+ ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding implementations\Broker_svntd.dll
+ ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding
+ implementations\Distributor_execd.dll ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding
+ implementations\Distributor_stubd.dll ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding
+ implementations\Distributor_svntd.dll ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding
+ implementations\Stock_Base_stubd.dll ....[Done]<br>
+ &nbsp;&nbsp;&nbsp; ComponentPackager: Adding
+ implementations\Stock_Base_svntd.dll ....[Done]<br>
+ &nbsp; &nbsp; (2552|3524)[success] The Component Package has been created!<br>
+ <br>
+ Now you will be able to find a ComponentPackager.cpk file under ./descriptors
+ directory.Note that&nbsp;you can change the output package name by
+ using&nbsp;-o option, e.g.<br>
+ </a><a name="Linux">&nbsp;%CIAO_ROOT%/DAnCE/ComponentPackager/Component_Packager.exe
+ -o Quoter.cpk -p flattened_deploymentplan.cdp</a></P>
+ <P><Blockquote><hr>
+ <STRONG>Note: </STRONG>To make sure the package has every implementation
+ artifact required, including the base library, e.g.Stock_Base_stub, you might
+ want to check your flattened_deploymentplan to make sure the base libraries are
+ also included as artifacts in the
+ implementation descriptions.Please check the Quoter example's
+ <A HREF="../../docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp">
+ flattened_deploymentplan.cdp</A> for details.<hr>
+ </Blockquote>
+ If you also want to archive&nbsp;separated descriptors other than
+ flattened_deploymentplan.cdp (.cid, .cpd, .iad etc ) into your package, you
+ will need to create a PackageDescriptorsList XML file which specifies what
+ files to include in your package.&nbsp; There is a sample .pdl file Sample.pdl
+ in the root directory of&nbsp; ComponentPackager. Please follow the same
+ pattern to create your own .pdl file. Along with the .pdl file is a standalone
+ xml schema file package.xsd which you will need to validate Sample.pdl. So make
+ sure you have this schema file along with the .pdl file you need to use. To
+ create a package that includes separated descriptors
+ <P></P>
+ <P>
+ 1. cd descriptors<br>
+ 2. copy %COPY_ROOT%/ComponentPackager/Sample.pdl .\<br>
+ 3. copy %COPY_ROOT%/ComponentPackager/Package.xsd .\<br>
+ 4. %CIAO_ROOT%/DAnCE/ComponentPackager/Component_Packager.exe -p
+ flattened_deploymentplan.cdp -i Sample.pdl<br>
+ <br>
+ </P>
+ </body>
+</html>
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/Sample.pdl b/TAO/CIAO/DAnCE/ComponentPackager/Sample.pdl
new file mode 100644
index 00000000000..2ec6e496c67
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/Sample.pdl
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Package:packageDescriptorsList
+ xmlns:Package="http://www.dre.vanderbilt.edu/Package"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.dre.vanderbilt.edu/Package Package.xsd">
+ <desc>package.tpd</desc>
+ <desc>Stock.pcd</desc>
+ <desc>Stock.cid</desc>
+ <desc>Stock.cpd</desc>
+ <desc>Broker.cid</desc>
+ <desc>Broker.ccd</desc>
+ <desc>Broker.cpd</desc>
+ <desc>Broker_Stub.iad</desc>
+ <desc>Broker_Svnt.iad</desc>
+ <desc>Broker_Exec.iad</desc>
+ <desc>Distributor.cid</desc>
+ <desc>Distributor.ccd</desc>
+ <desc>Distributor.cpd</desc>
+ <desc>Distributor_Stub.iad</desc>
+ <desc>Distributor_Svnt.iad</desc>
+ <desc>Distributor_Exec.iad</desc>
+</Package:packageDescriptorsList>
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/pdl.cpp b/TAO/CIAO/DAnCE/ComponentPackager/pdl.cpp
new file mode 100644
index 00000000000..74707fb9149
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/pdl.cpp
@@ -0,0 +1,155 @@
+/* $Id$
+ * This code was generated by the XML Schema Compiler.
+ *
+ * Changes made to this code will most likely be overwritten
+ * when the handlers are recompiled.
+ *
+ * If you find errors or feel that there are bugfixes to be made,
+ * please contact the current XSC maintainer:
+ * Will Otte <wotte@dre.vanderbilt.edu>
+ */
+
+#include "pdl.hpp"
+
+
+namespace Package
+{
+ // PackageDescriptorsList
+ //
+
+ PackageDescriptorsList::
+ PackageDescriptorsList ()
+ :
+ regulator__ ()
+ {
+ }
+
+ PackageDescriptorsList::
+ PackageDescriptorsList (::Package::PackageDescriptorsList const& s)
+ :
+ regulator__ ()
+ {
+ desc_.reserve (s.desc_.size ());
+ {
+ for (desc_const_iterator i (s.desc_.begin ());
+ i != s.desc_.end ();
+ ++i) add_desc (*i);
+ }
+ }
+
+ ::Package::PackageDescriptorsList& PackageDescriptorsList::
+ operator= (::Package::PackageDescriptorsList const& s)
+ {
+ desc_.clear ();
+ desc_.reserve (s.desc_.size ());
+ {
+ for (desc_const_iterator i (s.desc_.begin ());
+ i != s.desc_.end ();
+ ++i) add_desc (*i);
+ }
+
+ return *this;
+ }
+
+
+ // PackageDescriptorsList
+ //
+ PackageDescriptorsList::desc_iterator PackageDescriptorsList::
+ begin_desc ()
+ {
+ return desc_.begin ();
+ }
+
+ PackageDescriptorsList::desc_iterator PackageDescriptorsList::
+ end_desc ()
+ {
+ return desc_.end ();
+ }
+
+ PackageDescriptorsList::desc_const_iterator PackageDescriptorsList::
+ begin_desc () const
+ {
+ return desc_.begin ();
+ }
+
+ PackageDescriptorsList::desc_const_iterator PackageDescriptorsList::
+ end_desc () const
+ {
+ return desc_.end ();
+ }
+
+ void PackageDescriptorsList::
+ add_desc (::XMLSchema::string< ACE_TCHAR > const& e)
+ {
+ if (desc_.capacity () < desc_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::string< ACE_TCHAR > > v;
+ v.reserve (desc_.size () + 1);
+
+ while (desc_.size ())
+ {
+ //@@ VC6
+ ::XMLSchema::string< ACE_TCHAR >& t = desc_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ desc_.pop_back ();
+ }
+
+ desc_.swap (v);
+ }
+
+ desc_.push_back (e);
+ desc_.back ().container (this);
+ }
+}
+
+namespace Package
+{
+ // PackageDescriptorsList
+ //
+
+ PackageDescriptorsList::
+ PackageDescriptorsList (::XSCRT::XML::Element< ACE_TCHAR > const& e)
+ :Base__ (e), regulator__ ()
+ {
+
+ ::XSCRT::Parser< ACE_TCHAR > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
+ ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "desc")
+ {
+ ::XMLSchema::string< ACE_TCHAR > t (e);
+ add_desc (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+}
+
+namespace Package
+{
+ ::Package::PackageDescriptorsList
+ packageDescriptorsList (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< ACE_TCHAR > e (d->getDocumentElement ());
+ if (e.name () == "packageDescriptorsList")
+ {
+ ::Package::PackageDescriptorsList r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/ComponentPackager/pdl.hpp b/TAO/CIAO/DAnCE/ComponentPackager/pdl.hpp
new file mode 100644
index 00000000000..df8f5c3443f
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ComponentPackager/pdl.hpp
@@ -0,0 +1,80 @@
+/* $Id$
+ * This code was generated by the XML Schema Compiler.
+ *
+ * Changes made to this code will most likely be overwritten
+ * when the handlers are recompiled.
+ *
+ * If you find errors or feel that there are bugfixes to be made,
+ * please contact the current XSC maintainer:
+ * Will Otte <wotte@dre.vanderbilt.edu>
+ */
+
+
+// Fixes the VC6 warning 4786.
+#include "vc6-4786.h"
+
+// Fix for Borland compilers, which seem to have a broken
+// <string> include.
+#ifdef __BORLANDC__
+# include <string.h>
+#endif
+
+
+#include "ace/config-all.h"
+
+#ifndef PDL_HPP
+#define PDL_HPP
+
+// Forward declarations.
+//
+namespace Package
+{
+ class PackageDescriptorsList;
+}
+
+#include <memory>
+#include <vector>
+#include <XMLSchema/Types.hpp>
+
+namespace Package
+{
+ class PackageDescriptorsList : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // desc
+ //
+ public:
+ typedef ::std::vector< ::XMLSchema::string< ACE_TCHAR > >::iterator desc_iterator;
+ typedef ::std::vector< ::XMLSchema::string< ACE_TCHAR > >::const_iterator desc_const_iterator;
+ desc_iterator begin_desc ();
+ desc_iterator end_desc ();
+ desc_const_iterator begin_desc () const;
+ desc_const_iterator end_desc () const;
+ void add_desc (::XMLSchema::string< ACE_TCHAR > const& );
+
+ protected:
+ ::std::vector< ::XMLSchema::string< ACE_TCHAR > > desc_;
+
+ public:
+ PackageDescriptorsList ();
+
+ PackageDescriptorsList (::XSCRT::XML::Element< ACE_TCHAR > const&);
+ PackageDescriptorsList (PackageDescriptorsList const& s);
+
+ PackageDescriptorsList&
+ operator= (PackageDescriptorsList const& s);
+
+ private:
+ char regulator__;
+ };
+}
+
+namespace Package
+{
+ ::Package::PackageDescriptorsList
+ packageDescriptorsList (xercesc::DOMDocument const*);
+}
+
+#endif // PDL_HPP
diff --git a/TAO/CIAO/DAnCE/Deployment.xsd b/TAO/CIAO/DAnCE/Deployment.xsd
new file mode 100644
index 00000000000..c8a6399730b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Deployment.xsd
@@ -0,0 +1,776 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ targetNamespace="http://www.omg.org/Deployment">
+
+ <xsd:import namespace="http://www.omg.org/XMI" schemaLocation="XMI.xsd" />
+
+
+ <xsd:complexType name="Any">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Any" type="Deployment:Any"/>
+ <xsd:complexType name="DataType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="kind" type="Deployment:TCKind"/>
+ <xsd:element name="enum" type="Deployment:EnumType"/>
+ <xsd:element name="objref" type="Deployment:ObjrefType"/>
+ <xsd:element name="boundedString" type="Deployment:BoundedStringType"/>
+ <xsd:element name="fixed" type="Deployment:FixedType"/>
+ <xsd:element name="array" type="Deployment:ArrayType"/>
+ <xsd:element name="sequence" type="Deployment:SequenceType"/>
+ <xsd:element name="alias" type="Deployment:AliasType"/>
+ <xsd:element name="struct" type="Deployment:StructType"/>
+ <xsd:element name="value" type="Deployment:ValueType"/>
+ <xsd:element name="union" type="Deployment:UnionType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DataType" type="Deployment:DataType"/>
+ <xsd:complexType name="DataValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="short" type="xsd:short"/>
+ <xsd:element name="long" type="xsd:int"/>
+ <xsd:element name="ushort" type="xsd:unsignedShort"/>
+ <xsd:element name="ulong" type="xsd:unsignedInt"/>
+ <xsd:element name="float" type="xsd:float"/>
+ <xsd:element name="double" type="xsd:double"/>
+ <xsd:element name="boolean" type="xsd:boolean"/>
+ <xsd:element name="octet" type="xsd:unsignedByte"/>
+ <xsd:element name="opaque" type="xsd:base64Binary"/>
+ <xsd:element name="objref" type="xsd:string"/>
+ <xsd:element name="enum" type="xsd:string"/>
+ <xsd:element name="string" type="xsd:string"/>
+ <xsd:element name="longlong" type="xsd:long"/>
+ <xsd:element name="ulonglong" type="xsd:unsignedLong"/>
+ <xsd:element name="longdouble" type="xsd:double"/>
+ <xsd:element name="fixed" type="xsd:string"/>
+ <xsd:element name="any" type="Deployment:Any"/>
+ <xsd:element name="typecode" type="Deployment:DataType"/>
+ <xsd:element name="element" type="Deployment:DataValue"/>
+ <xsd:element name="discriminator" type="Deployment:DataValue"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ <xsd:element name="boxedValue" type="Deployment:DataValue"/>
+ <xsd:element name="member" type="Deployment:NamedValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DataValue" type="Deployment:DataValue"/>
+
+
+ <xsd:complexType name="EnumType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="EnumType" type="Deployment:EnumType"/>
+ <xsd:complexType name="ObjrefType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+
+
+ <xsd:element name="ObjrefType" type="Deployment:ObjrefType"/>
+ <xsd:complexType name="BoundedStringType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="BoundedStringType" type="Deployment:BoundedStringType"/>
+ <xsd:complexType name="FixedType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="digits" type="xsd:string"/>
+ <xsd:element name="scale" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="FixedType" type="Deployment:FixedType"/>
+ <xsd:complexType name="ArrayType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="length" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ArrayType" type="Deployment:ArrayType"/>
+ <xsd:complexType name="SequenceType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SequenceType" type="Deployment:SequenceType"/>
+ <xsd:complexType name="AliasType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AliasType" type="Deployment:AliasType"/>
+ <xsd:complexType name="StructType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="Deployment:StructMemberType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="StructType" type="Deployment:StructType"/>
+ <xsd:complexType name="StructMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="StructMemberType" type="Deployment:StructMemberType"/>
+ <xsd:complexType name="ValueType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="modifier" type="xsd:string"/>
+ <xsd:element name="baseType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:ValueMemberType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ValueType" type="Deployment:ValueType"/>
+ <xsd:complexType name="ValueMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="visibility" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ValueMemberType" type="Deployment:ValueMemberType"/>
+ <xsd:complexType name="UnionType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="default" type="Deployment:UnionMemberType"/>
+ <xsd:element name="discriminatorType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:UnionMemberType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="UnionType" type="Deployment:UnionType"/>
+ <xsd:complexType name="UnionMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="label" type="Deployment:DataValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="UnionMemberType" type="Deployment:UnionMemberType"/>
+ <xsd:complexType name="NamedValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="NamedValue" type="Deployment:NamedValue"/>
+ <xsd:complexType name="Bridge">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connect" type="Deployment:Interconnect"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Bridge" type="Deployment:Bridge"/>
+ <xsd:complexType name="Interconnect">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Bridge"/>
+ <xsd:element name="connect" type="Deployment:Node"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Interconnect" type="Deployment:Interconnect"/>
+ <xsd:complexType name="Node">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Interconnect"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Node" type="Deployment:Node"/>
+ <xsd:complexType name="Resource">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Resource" type="Deployment:Resource"/>
+ <xsd:complexType name="SharedResource">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="node" type="Deployment:Node"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SharedResource" type="Deployment:SharedResource"/>
+ <xsd:complexType name="Domain">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="node" type="Deployment:Node"/>
+ <xsd:element name="interconnect" type="Deployment:Interconnect"/>
+ <xsd:element name="bridge" type="Deployment:Bridge"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Domain" type="Deployment:Domain"/>
+ <xsd:complexType name="PlanPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanPropertyMapping" type="Deployment:PlanPropertyMapping"/>
+ <xsd:complexType name="PlanSubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanSubcomponentPropertyReference" type="Deployment:PlanSubcomponentPropertyReference"/>
+ <xsd:complexType name="PlanSubcomponentPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element name="provider" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanSubcomponentPortEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:complexType name="PlanConnectionDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanConnectionDescription" type="Deployment:PlanConnectionDescription"/>
+ <xsd:complexType name="InstanceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="node" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="InstanceDeploymentDescription" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:complexType name="MonolithicDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="MonolithicDeploymentDescription" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:complexType name="ArtifactDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element name="node" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ArtifactDeploymentDescription" type="Deployment:ArtifactDeploymentDescription"/>
+
+
+ <xsd:complexType name="DeploymentPlan">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:element name="connection" type="Deployment:PlanConnectionDescription"/>
+ <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/>
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/>
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DeploymentPlan" type="Deployment:DeploymentPlan"/>
+
+
+ <xsd:complexType name="ResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ResourceDeploymentDescription" type="Deployment:ResourceDeploymentDescription"/>
+ <xsd:complexType name="InstanceResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/>
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="InstanceResourceDeploymentDescription" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:complexType name="ConnectionResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="targetName" type="xsd:string"/>
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ConnectionResourceDeploymentDescription" type="Deployment:ConnectionResourceDeploymentDescription"/>
+ <xsd:complexType name="Capability">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Capability" type="Deployment:Capability"/>
+ <xsd:complexType name="ComponentPropertyDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPropertyDescription" type="Deployment:ComponentPropertyDescription"/>
+ <xsd:complexType name="ComponentPortDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="specificType" type="xsd:string"/>
+ <xsd:element name="supportedType" type="xsd:string"/>
+ <xsd:element name="provider" type="xsd:string"/>
+ <xsd:element name="exclusiveProvider" type="xsd:string"/>
+ <xsd:element name="exclusiveUser" type="xsd:string"/>
+ <xsd:element name="optional" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPortDescription" type="Deployment:ComponentPortDescription"/>
+ <xsd:complexType name="ComponentInterfaceDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="specificType" type="xsd:string"/>
+ <xsd:element name="supportedType" type="xsd:string"/>
+ <xsd:element name="idlFile" type="xsd:string"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="port" type="Deployment:ComponentPortDescription"/>
+ <xsd:element name="property" type="Deployment:ComponentPropertyDescription"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:complexType name="ImplementationArtifactDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationArtifactDescription" type="Deployment:ImplementationArtifactDescription"/>
+ <xsd:complexType name="MonolithicImplementationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="MonolithicImplementationDescription" type="Deployment:MonolithicImplementationDescription"/>
+ <xsd:complexType name="AssemblyPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AssemblyPropertyMapping" type="Deployment:AssemblyPropertyMapping"/>
+ <xsd:complexType name="SubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentPropertyReference" type="Deployment:SubcomponentPropertyReference"/>
+ <xsd:complexType name="SubcomponentPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentPortEndpoint" type="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:complexType name="AssemblyConnectionDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AssemblyConnectionDescription" type="Deployment:AssemblyConnectionDescription"/>
+ <xsd:complexType name="SubcomponentInstantiationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="package" type="Deployment:ComponentPackageDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="selectRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentInstantiationDescription" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:complexType name="ComponentAssemblyDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription"/>
+ <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentAssemblyDescription" type="Deployment:ComponentAssemblyDescription"/>
+ <xsd:complexType name="ComponentImplementationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/>
+ <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="capability" type="Deployment:Capability"/>
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentImplementationDescription" type="Deployment:ComponentImplementationDescription"/>
+ <xsd:complexType name="ComponentPackageReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requiredUUID" type="xsd:string"/>
+ <xsd:element name="requiredName" type="xsd:string"/>
+ <xsd:element name="requiredType" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPackageReference" type="Deployment:ComponentPackageReference"/>
+ <xsd:complexType name="ComponentPackageDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPackageDescription" type="Deployment:ComponentPackageDescription"/>
+ <xsd:complexType name="PackageConfiguration">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/>
+ <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/>
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference"/>
+ <xsd:element name="selectRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PackageConfiguration" type="Deployment:PackageConfiguration"/>
+ <xsd:complexType name="PackagedComponentImplementation">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PackagedComponentImplementation" type="Deployment:PackagedComponentImplementation"/>
+ <xsd:complexType name="NamedImplementationArtifact">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="NamedImplementationArtifact" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:complexType name="ImplementationRequirement">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/>
+ <xsd:element name="resourcePort" type="xsd:string"/>
+ <xsd:element name="componentPort" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationRequirement" type="Deployment:ImplementationRequirement"/>
+ <xsd:complexType name="RequirementSatisfier">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="RequirementSatisfier" type="Deployment:RequirementSatisfier"/>
+ <xsd:complexType name="SatisfierProperty">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/>
+ <xsd:element name="value" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SatisfierProperty" type="Deployment:SatisfierProperty"/>
+ <xsd:complexType name="Requirement">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Requirement" type="Deployment:Requirement"/>
+ <xsd:complexType name="Property">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Property" type="Deployment:Property"/>
+ <xsd:complexType name="ExternalReferenceEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="location" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ExternalReferenceEndpoint" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:complexType name="ComponentExternalPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentExternalPortEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:complexType name="ImplementationDependency">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requiredType" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationDependency" type="Deployment:ImplementationDependency"/>
+ <xsd:complexType name="TopLevelPackageDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="package" type="Deployment:PackageConfiguration"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="TopLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/>
+ <xsd:simpleType name="TCKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="tk_null"/>
+ <xsd:enumeration value="tk_void"/>
+ <xsd:enumeration value="tk_short"/>
+ <xsd:enumeration value="tk_long"/>
+ <xsd:enumeration value="tk_ushort"/>
+ <xsd:enumeration value="tk_ulong"/>
+ <xsd:enumeration value="tk_float"/>
+ <xsd:enumeration value="tk_double"/>
+ <xsd:enumeration value="tk_boolean"/>
+ <xsd:enumeration value="tk_char"/>
+ <xsd:enumeration value="tk_octet"/>
+ <xsd:enumeration value="tk_any"/>
+ <xsd:enumeration value="tk_TypeCode"/>
+ <xsd:enumeration value="tk_Principal"/>
+ <xsd:enumeration value="tk_objref"/>
+ <xsd:enumeration value="tk_struct"/>
+ <xsd:enumeration value="tk_union"/>
+ <xsd:enumeration value="tk_enum"/>
+ <xsd:enumeration value="tk_string"/>
+ <xsd:enumeration value="tk_sequence"/>
+ <xsd:enumeration value="tk_array"/>
+ <xsd:enumeration value="tk_alias"/>
+ <xsd:enumeration value="tk_except"/>
+ <xsd:enumeration value="tk_longlong"/>
+ <xsd:enumeration value="tk_ulonglong"/>
+ <xsd:enumeration value="tk_longdouble"/>
+ <xsd:enumeration value="tk_wchar"/>
+ <xsd:enumeration value="tk_wstring"/>
+ <xsd:enumeration value="tk_wfixed"/>
+ <xsd:enumeration value="tk_value"/>
+ <xsd:enumeration value="tk_value_box"/>
+ <xsd:enumeration value="tk_native"/>
+ <xsd:enumeration value="tk_abstract_interface"/>
+ <xsd:enumeration value="tk_local_interface"/>
+ <xsd:enumeration value="tk_component"/>
+ <xsd:enumeration value="tk_home"/>
+ <xsd:enumeration value="tk_event"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ResourceUsageKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="None"/>
+ <xsd:enumeration value="InstanceUsesResource"/>
+ <xsd:enumeration value="ResourceUsesInstance"/>
+ <xsd:enumeration value="PortUsesResource"/>
+ <xsd:enumeration value="ResourceUsesPort"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CCMComponentPortKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="Facet"/>
+ <xsd:enumeration value="SimplexReceptacle"/>
+ <xsd:enumeration value="MultiplexReceptacle"/>
+ <xsd:enumeration value="EventEmitter"/>
+ <xsd:enumeration value="EventPublisher"/>
+ <xsd:enumeration value="EventConsumer"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="SatisfierPropertyKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="Quantity"/>
+ <xsd:enumeration value="Capacity"/>
+ <xsd:enumeration value="Minimum"/>
+ <xsd:enumeration value="Maximum"/>
+ <xsd:enumeration value="Attribute"/>
+ <xsd:enumeration value="Selection"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/Deployment.xsd.orig b/TAO/CIAO/DAnCE/Deployment.xsd.orig
new file mode 100644
index 00000000000..a59a47f1360
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Deployment.xsd.orig
@@ -0,0 +1,897 @@
+<xsd:schema
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ targetNamespace="http://www.omg.org/Deployment"
+ >
+ <xsd:import namespace="http://www.omg.org/XMI"/>
+ <xsd:complexType name="Any">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Any" type="Deployment:Any"/>
+ <xsd:complexType name="DataType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="kind" type="Deployment:TCKind"/>
+ <xsd:element name="enum" type="Deployment:EnumType"/>
+ <xsd:element name="objref" type="Deployment:ObjrefType"/>
+ <xsd:element name="boundedString" type="Deployment:BoundedStringType"/>
+ <xsd:element name="fixed" type="Deployment:FixedType"/>
+ <xsd:element name="array" type="Deployment:ArrayType"/>
+ <xsd:element name="sequence" type="Deployment:SequenceType"/>
+ <xsd:element name="alias" type="Deployment:AliasType"/>
+ <xsd:element name="struct" type="Deployment:StructType"/>
+ <xsd:element name="value" type="Deployment:ValueType"/>
+ <xsd:element name="union" type="Deployment:UnionType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DataType" type="Deployment:DataType"/>
+ <xsd:complexType name="DataValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="short" type="xsd:short"/>
+ <xsd:element name="long" type="xsd:int"/>
+ <xsd:element name="ushort" type="xsd:unsignedShort"/>
+ <xsd:element name="ulong" type="xsd:unsignedInt"/>
+ <xsd:element name="float" type="xsd:float"/>
+ <xsd:element name="double" type="xsd:double"/>
+ <xsd:element name="boolean" type="xsd:boolean"/>
+ <xsd:element name="octet" type="xsd:unsignedByte"/>
+ <xsd:element name="opaque" type="xsd:base64Binary"/>
+ <xsd:element name="objref" type="xsd:string"/>
+ <xsd:element name="enum" type="xsd:string"/>
+ <xsd:element name="string" type="xsd:string"/>
+ <xsd:element name="longlong" type="xsd:long"/>
+ <xsd:element name="ulonglong" type="xsd:unsignedLong"/>
+ <xsd:element name="longdouble" type="xsd:double"/>
+ <xsd:element name="fixed" type="xsd:string"/>
+ <xsd:element name="any" type="Deployment:Any"/>
+ <xsd:element name="typecode" type="Deployment:DataType"/>
+ <xsd:element name="element" type="Deployment:DataValue"/>
+ <xsd:element name="discriminator" type="Deployment:DataValue"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ <xsd:element name="boxedValue" type="Deployment:DataValue"/>
+ <xsd:element name="member" type="Deployment:NamedValue"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DataValue" type="Deployment:DataValue"/>
+ <xsd:complexType name="EnumType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="EnumType" type="Deployment:EnumType"/>
+ <xsd:complexType name="ObjrefType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ObjrefType" type="Deployment:ObjrefType"/>
+ <xsd:complexType name="BoundedStringType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="BoundedStringType" type="Deployment:BoundedStringType"/>
+ <xsd:complexType name="FixedType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="digits" type="xsd:string"/>
+ <xsd:element name="scale" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="FixedType" type="Deployment:FixedType"/>
+ <xsd:complexType name="ArrayType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="length" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ArrayType" type="Deployment:ArrayType"/>
+ <xsd:complexType name="SequenceType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SequenceType" type="Deployment:SequenceType"/>
+ <xsd:complexType name="AliasType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AliasType" type="Deployment:AliasType"/>
+ <xsd:complexType name="StructType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="Deployment:StructMemberType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="StructType" type="Deployment:StructType"/>
+ <xsd:complexType name="StructMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="StructMemberType" type="Deployment:StructMemberType"/>
+ <xsd:complexType name="ValueType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="modifier" type="xsd:string"/>
+ <xsd:element name="baseType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:ValueMemberType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ValueType" type="Deployment:ValueType"/>
+ <xsd:complexType name="ValueMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="visibility" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ValueMemberType" type="Deployment:ValueMemberType"/>
+ <xsd:complexType name="UnionType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="default" type="Deployment:UnionMemberType"/>
+ <xsd:element name="discriminatorType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:UnionMemberType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="UnionType" type="Deployment:UnionType"/>
+ <xsd:complexType name="UnionMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="label" type="Deployment:DataValue"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="UnionMemberType" type="Deployment:UnionMemberType"/>
+ <xsd:complexType name="NamedValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="NamedValue" type="Deployment:NamedValue"/>
+ <xsd:complexType name="Bridge">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connect" type="Deployment:Interconnect"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Bridge" type="Deployment:Bridge"/>
+ <xsd:complexType name="Interconnect">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Bridge"/>
+ <xsd:element name="connect" type="Deployment:Node"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Interconnect" type="Deployment:Interconnect"/>
+ <xsd:complexType name="Node">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Interconnect"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Node" type="Deployment:Node"/>
+ <xsd:complexType name="Resource">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Resource" type="Deployment:Resource"/>
+ <xsd:complexType name="SharedResource">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="node" type="Deployment:Node"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SharedResource" type="Deployment:SharedResource"/>
+ <xsd:complexType name="Domain">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="node" type="Deployment:Node"/>
+ <xsd:element name="interconnect" type="Deployment:Interconnect"/>
+ <xsd:element name="bridge" type="Deployment:Bridge"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Domain" type="Deployment:Domain"/>
+ <xsd:complexType name="PlanPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanPropertyMapping" type="Deployment:PlanPropertyMapping"/>
+ <xsd:complexType name="PlanSubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanSubcomponentPropertyReference" type="Deployment:PlanSubcomponentPropertyReference"/>
+ <xsd:complexType name="PlanSubcomponentPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element name="provider" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanSubcomponentPortEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:complexType name="PlanConnectionDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanConnectionDescription" type="Deployment:PlanConnectionDescription"/>
+ <xsd:complexType name="InstanceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="node" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="InstanceDeploymentDescription" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:complexType name="MonolithicDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="MonolithicDeploymentDescription" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:complexType name="ArtifactDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element name="node" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ArtifactDeploymentDescription" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:complexType name="DeploymentPlan">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:element name="connection" type="Deployment:PlanConnectionDescription"/>
+ <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/>
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/>
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DeploymentPlan" type="Deployment:DeploymentPlan"/>
+ <xsd:complexType name="ResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ResourceDeploymentDescription" type="Deployment:ResourceDeploymentDescription"/>
+ <xsd:complexType name="InstanceResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/>
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="InstanceResourceDeploymentDescription" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:complexType name="ConnectionResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="targetName" type="xsd:string"/>
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ConnectionResourceDeploymentDescription" type="Deployment:ConnectionResourceDeploymentDescription"/>
+ <xsd:complexType name="Capability">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Capability" type="Deployment:Capability"/>
+ <xsd:complexType name="ComponentPropertyDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPropertyDescription" type="Deployment:ComponentPropertyDescription"/>
+ <xsd:complexType name="ComponentPortDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="specificType" type="xsd:string"/>
+ <xsd:element name="supportedType" type="xsd:string"/>
+ <xsd:element name="provider" type="xsd:string"/>
+ <xsd:element name="exclusiveProvider" type="xsd:string"/>
+ <xsd:element name="exclusiveUser" type="xsd:string"/>
+ <xsd:element name="optional" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPortDescription" type="Deployment:ComponentPortDescription"/>
+ <xsd:complexType name="ComponentInterfaceDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="specificType" type="xsd:string"/>
+ <xsd:element name="supportedType" type="xsd:string"/>
+ <xsd:element name="idlFile" type="xsd:string"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="port" type="Deployment:ComponentPortDescription"/>
+ <xsd:element name="property" type="Deployment:ComponentPropertyDescription"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:complexType name="ImplementationArtifactDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationArtifactDescription" type="Deployment:ImplementationArtifactDescription"/>
+ <xsd:complexType name="MonolithicImplementationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="MonolithicImplementationDescription" type="Deployment:MonolithicImplementationDescription"/>
+ <xsd:complexType name="AssemblyPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AssemblyPropertyMapping" type="Deployment:AssemblyPropertyMapping"/>
+ <xsd:complexType name="SubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentPropertyReference" type="Deployment:SubcomponentPropertyReference"/>
+ <xsd:complexType name="SubcomponentPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentPortEndpoint" type="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:complexType name="AssemblyConnectionDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AssemblyConnectionDescription" type="Deployment:AssemblyConnectionDescription"/>
+ <xsd:complexType name="SubcomponentInstantiationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="package" type="Deployment:ComponentPackageDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="selectRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentInstantiationDescription" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:complexType name="ComponentAssemblyDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription"/>
+ <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentAssemblyDescription" type="Deployment:ComponentAssemblyDescription"/>
+ <xsd:complexType name="ComponentImplementationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/>
+ <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="capability" type="Deployment:Capability"/>
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentImplementationDescription" type="Deployment:ComponentImplementationDescription"/>
+ <xsd:complexType name="ComponentPackageReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requiredUUID" type="xsd:string"/>
+ <xsd:element name="requiredName" type="xsd:string"/>
+ <xsd:element name="requiredType" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPackageReference" type="Deployment:ComponentPackageReference"/>
+ <xsd:complexType name="ComponentPackageDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPackageDescription" type="Deployment:ComponentPackageDescription"/>
+ <xsd:complexType name="PackageConfiguration">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/>
+ <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/>
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference"/>
+ <xsd:element name="selectRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PackageConfiguration" type="Deployment:PackageConfiguration"/>
+ <xsd:complexType name="PackagedComponentImplementation">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PackagedComponentImplementation" type="Deployment:PackagedComponentImplementation"/>
+ <xsd:complexType name="NamedImplementationArtifact">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="NamedImplementationArtifact" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:complexType name="ImplementationRequirement">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/>
+ <xsd:element name="resourcePort" type="xsd:string"/>
+ <xsd:element name="componentPort" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationRequirement" type="Deployment:ImplementationRequirement"/>
+ <xsd:complexType name="RequirementSatisfier">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="RequirementSatisfier" type="Deployment:RequirementSatisfier"/>
+ <xsd:complexType name="SatisfierProperty">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/>
+ <xsd:element name="value" type="Deployment:Any"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SatisfierProperty" type="Deployment:SatisfierProperty"/>
+ <xsd:complexType name="Requirement">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:Property"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Requirement" type="Deployment:Requirement"/>
+ <xsd:complexType name="Property">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:Any"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Property" type="Deployment:Property"/>
+ <xsd:complexType name="ExternalReferenceEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ExternalReferenceEndpoint" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:complexType name="ComponentExternalPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentExternalPortEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:complexType name="ImplementationDependency">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requiredType" type="xsd:string"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationDependency" type="Deployment:ImplementationDependency"/>
+ <xsd:complexType name="TopLevelPackageDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="package" type="Deployment:PackageConfiguration"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="TopLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/>
+ <xsd:simpleType name="TCKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="tk_null"/>
+ <xsd:enumeration value="tk_void"/>
+ <xsd:enumeration value="tk_short"/>
+ <xsd:enumeration value="tk_long"/>
+ <xsd:enumeration value="tk_ushort"/>
+ <xsd:enumeration value="tk_ulong"/>
+ <xsd:enumeration value="tk_float"/>
+ <xsd:enumeration value="tk_double"/>
+ <xsd:enumeration value="tk_boolean"/>
+ <xsd:enumeration value="tk_char"/>
+ <xsd:enumeration value="tk_octet"/>
+ <xsd:enumeration value="tk_any"/>
+ <xsd:enumeration value="tk_TypeCode"/>
+ <xsd:enumeration value="tk_Principal"/>
+ <xsd:enumeration value="tk_objref"/>
+ <xsd:enumeration value="tk_struct"/>
+ <xsd:enumeration value="tk_union"/>
+ <xsd:enumeration value="tk_enum"/>
+ <xsd:enumeration value="tk_string"/>
+ <xsd:enumeration value="tk_sequence"/>
+ <xsd:enumeration value="tk_array"/>
+ <xsd:enumeration value="tk_alias"/>
+ <xsd:enumeration value="tk_except"/>
+ <xsd:enumeration value="tk_longlong"/>
+ <xsd:enumeration value="tk_ulonglong"/>
+ <xsd:enumeration value="tk_longdouble"/>
+ <xsd:enumeration value="tk_wchar"/>
+ <xsd:enumeration value="tk_wstring"/>
+ <xsd:enumeration value="tk_wfixed"/>
+ <xsd:enumeration value="tk_value"/>
+ <xsd:enumeration value="tk_value_box"/>
+ <xsd:enumeration value="tk_native"/>
+ <xsd:enumeration value="tk_abstract_interface"/>
+ <xsd:enumeration value="tk_local_interface"/>
+ <xsd:enumeration value="tk_component"/>
+ <xsd:enumeration value="tk_home"/>
+ <xsd:enumeration value="tk_event"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ResourceUsageKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="None"/>
+ <xsd:enumeration value="InstanceUsesResource"/>
+ <xsd:enumeration value="ResourceUsesInstance"/>
+ <xsd:enumeration value="PortUsesResource"/>
+ <xsd:enumeration value="ResourceUsesPort"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CCMComponentPortKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="Facet"/>
+ <xsd:enumeration value="SimplexReceptacle"/>
+ <xsd:enumeration value="MultiplexReceptacle"/>
+ <xsd:enumeration value="EventEmitter"/>
+ <xsd:enumeration value="EventPublisher"/>
+ <xsd:enumeration value="EventConsumer"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="SatisfierPropertyKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="Quantity"/>
+ <xsd:enumeration value="Capacity"/>
+ <xsd:enumeration value="Minimum"/>
+ <xsd:enumeration value="Maximum"/>
+ <xsd:enumeration value="Attribute"/>
+ <xsd:enumeration value="Selection"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:element name="Deployment">
+ <xsd:complexType>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element ref="Deployment:Any"/>
+ <xsd:element ref="Deployment:DataType"/>
+ <xsd:element ref="Deployment:DataValue"/>
+ <xsd:element ref="Deployment:EnumType"/>
+ <xsd:element ref="Deployment:ObjrefType"/>
+ <xsd:element ref="Deployment:BoundedStringType"/>
+ <xsd:element ref="Deployment:FixedType"/>
+ <xsd:element ref="Deployment:ArrayType"/>
+ <xsd:element ref="Deployment:SequenceType"/>
+ <xsd:element ref="Deployment:AliasType"/>
+ <xsd:element ref="Deployment:StructType"/>
+ <xsd:element ref="Deployment:StructMemberType"/>
+ <xsd:element ref="Deployment:ValueType"/>
+ <xsd:element ref="Deployment:ValueMemberType"/>
+ <xsd:element ref="Deployment:UnionType"/>
+ <xsd:element ref="Deployment:UnionMemberType"/>
+ <xsd:element ref="Deployment:NamedValue"/>
+ <xsd:element ref="Deployment:Bridge"/>
+ <xsd:element ref="Deployment:Interconnect"/>
+ <xsd:element ref="Deployment:Node"/>
+ <xsd:element ref="Deployment:Resource"/>
+ <xsd:element ref="Deployment:SharedResource"/>
+ <xsd:element ref="Deployment:Domain"/>
+ <xsd:element ref="Deployment:PlanPropertyMapping"/>
+ <xsd:element ref="Deployment:PlanSubcomponentPropertyReference"/>
+ <xsd:element ref="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:element ref="Deployment:PlanConnectionDescription"/>
+ <xsd:element ref="Deployment:InstanceDeploymentDescription"/>
+ <xsd:element ref="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element ref="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element ref="Deployment:DeploymentPlan"/>
+ <xsd:element ref="Deployment:ResourceDeploymentDescription"/>
+ <xsd:element ref="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:element ref="Deployment:ConnectionResourceDeploymentDescription"/>
+ <xsd:element ref="Deployment:Capability"/>
+ <xsd:element ref="Deployment:ComponentPropertyDescription"/>
+ <xsd:element ref="Deployment:ComponentPortDescription"/>
+ <xsd:element ref="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element ref="Deployment:ImplementationArtifactDescription"/>
+ <xsd:element ref="Deployment:MonolithicImplementationDescription"/>
+ <xsd:element ref="Deployment:AssemblyPropertyMapping"/>
+ <xsd:element ref="Deployment:SubcomponentPropertyReference"/>
+ <xsd:element ref="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:element ref="Deployment:AssemblyConnectionDescription"/>
+ <xsd:element ref="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:element ref="Deployment:ComponentAssemblyDescription"/>
+ <xsd:element ref="Deployment:ComponentImplementationDescription"/>
+ <xsd:element ref="Deployment:ComponentPackageReference"/>
+ <xsd:element ref="Deployment:ComponentPackageDescription"/>
+ <xsd:element ref="Deployment:PackageConfiguration"/>
+ <xsd:element ref="Deployment:PackagedComponentImplementation"/>
+ <xsd:element ref="Deployment:NamedImplementationArtifact"/>
+ <xsd:element ref="Deployment:ImplementationRequirement"/>
+ <xsd:element ref="Deployment:RequirementSatisfier"/>
+ <xsd:element ref="Deployment:SatisfierProperty"/>
+ <xsd:element ref="Deployment:Requirement"/>
+ <xsd:element ref="Deployment:Property"/>
+ <xsd:element ref="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:element ref="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element ref="Deployment:ImplementationDependency"/>
+ <xsd:element ref="Deployment:TopLevelPackageDescription"/>
+ <xsd:element ref="xmi:Extension"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ </xsd:element>
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp b/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp
index 394369b12c7..6b5325e840c 100644
--- a/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp
+++ b/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.cpp
@@ -30,7 +30,7 @@ CIAO::Deployment_Configuration::init (const char *filename)
FILE *inf = ACE_OS::fopen (filename, "r");
- if (inf == 0)
+ if (inf == NULL)
{
ACE_ERROR_RETURN ((LM_ERROR,
"DAnCE (%P|%t) Deployment_Configuration.cpp:"
@@ -48,10 +48,11 @@ CIAO::Deployment_Configuration::init (const char *filename)
//
if (this->deployment_info_.bind (destination, ior) != 0)
{
- ACE_DEBUG ((LM_ERROR,
- "DAnCE (%P|%t) Deployment_Configuration.cpp:"
- "Reuse existing node in the cached map: [%s]\n",
- destination));
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "DAnCE (%P|%t) Deployment_Configuration.cpp:"
+ "Failed to bind destination [%s] : \n",
+ destination),
+ -1);
}
if (first)
@@ -60,12 +61,11 @@ CIAO::Deployment_Configuration::init (const char *filename)
first = 0;
}
}
- ACE_OS::fclose (inf);
return 0;
}
const char *
-CIAO::Deployment_Configuration::get_node_manager_ior (const char *name) const
+CIAO::Deployment_Configuration::get_node_manager_ior (const char *name)
{
if (name == 0)
return get_default_node_manager_ior ();
@@ -88,7 +88,7 @@ CIAO::Deployment_Configuration::get_node_manager_ior (const char *name) const
}
const char *
-CIAO::Deployment_Configuration::get_default_node_manager_ior (void) const
+CIAO::Deployment_Configuration::get_default_node_manager_ior (void)
{
if (this->default_node_manager_.IOR_.length () == 0)
return 0;
diff --git a/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.h b/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.h
index f4b828b3f20..07fa26df036 100644
--- a/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.h
+++ b/TAO/CIAO/DAnCE/DomainApplicationManager/Deployment_Configuration.h
@@ -23,7 +23,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ciao/NodeManagerC.h"
+#include "DeploymentC.h"
#include "DomainApplicationManager/DomainApplicationManager_Export.h"
#include "ace/SString.h"
#include "tao/Valuetype/ValueBase.h"
@@ -82,7 +82,7 @@ namespace CIAO
* @retval 0 if no valid name were found. When @c name = 0, then
* this function behave exactly as get_default_activator_ior.
*/
- virtual const char *get_node_manager_ior (const char *name) const;
+ virtual const char *get_node_manager_ior (const char *name);
/**
* Return the default NodeManager the DomainApplicationManager
@@ -92,7 +92,7 @@ namespace CIAO
*
* @retval 0 if no valid daemon is configured.
*/
- virtual const char *get_default_node_manager_ior () const;
+ virtual const char *get_default_node_manager_ior ();
/**
* @retval nil if no valid name were found.
diff --git a/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager.mpc b/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
index ed69dfe37e9..3e4d270f760 100644
--- a/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
+++ b/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager.mpc
@@ -2,8 +2,8 @@
// $Id$
project (DomainApplicationManager): ciao_deployment_svnt {
+ after += NodeManager_stub
sharedname = DomainApplicationManager
- after += ExecutionManager_stub
dynamicflags = DOMAINAPPLICATIONMANAGER_BUILD_DLL
@@ -11,11 +11,5 @@ project (DomainApplicationManager): ciao_deployment_svnt {
DomainApplicationManager_Impl.cpp
Deployment_Configuration.cpp
}
-
- Header_Files {
- DomainApplicationManager_Impl.h
- Deployment_Configuration.h
- DomainApplicationManager_Export.h
- }
}
diff --git a/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp b/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
index 01fb98210b6..da5182be40e 100644
--- a/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
+++ b/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.cpp
@@ -1,12 +1,14 @@
// $Id$
#include "DomainApplicationManager_Impl.h"
-#include "ExecutionManager/Execution_Manager_Impl.h"
-#include "ciao/NodeApplicationManagerC.h"
+#include "NodeManager/NodeManagerC.h"
#include "ace/Null_Mutex.h"
#include "ace/OS_NS_string.h"
#include "ace/SString.h"
-#include "ace/Assert.h"
+//#include "DnC_Dump.h"
+//#include "Config_Handlers/RT-CCM/SRD_Handler.h"
+//#include "Config_Handlers/Utils/XML_Helper.h"
+//#include "Config_Handlers/RT-CCM/CIAOServerResources.hpp"
#if !defined (__ACE_INLINE__)
# include "DomainApplicationManager_Impl.inl"
@@ -16,14 +18,12 @@ CIAO::DomainApplicationManager_Impl::
DomainApplicationManager_Impl (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
Deployment::TargetManager_ptr manager,
- Execution_Manager::Execution_Manager_Impl * em,
const Deployment::DeploymentPlan & plan,
const char * deployment_file)
ACE_THROW_SPEC ((CORBA::SystemException))
: orb_ (CORBA::ORB::_duplicate (orb)),
poa_ (PortableServer::POA::_duplicate (poa)),
- execution_manager_ (em), // a plain C++ pointer
- target_manager_ (Deployment::TargetManager::_duplicate (manager)), // object ref
+ target_manager_ (Deployment::TargetManager::_duplicate (manager)),
plan_ (plan),
num_child_plans_ (0),
// @@ (OO) The default size for an ACE_Hash_Map_Mapanger is quiet
@@ -36,34 +36,13 @@ DomainApplicationManager_Impl (CORBA::ORB_ptr orb,
// Need to initialize chained artifacts here.
//
deployment_file_ (CORBA::string_dup (deployment_file)),
- deployment_config_ (orb),
- is_redeployment_ (false),
- esd_ (0)
+ deployment_config_ (orb)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_NEW_THROW_EX (this->all_connections_,
Deployment::Connections (),
CORBA::NO_MEMORY ());
-
- ACE_NEW_THROW_EX (this->shared_,
- Deployment::ComponentPlans (),
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-
- ACE_NEW_THROW_EX (this->esd_,
- CIAO::DAnCE::EventServiceDeploymentDescriptions (),
- CORBA::NO_MEMORY ());
ACE_CHECK;
-
- for (CORBA::ULong i = 0; i < this->plan_.infoProperty.length (); ++i)
- {
- if (ACE_OS::strcmp (this->plan_.infoProperty[i].name.in (),
- "CIAOEvents") != 0)
- continue;
-
- this->plan_.infoProperty[0].value >>= this->esd_;
- break;
- }
}
CIAO::DomainApplicationManager_Impl::~DomainApplicationManager_Impl ()
@@ -74,32 +53,6 @@ CIAO::DomainApplicationManager_Impl::~DomainApplicationManager_Impl ()
}
}
-Deployment::NodeApplication_ptr
-CIAO::DomainApplicationManager_Impl::
-get_node_app (const char * node_name)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::NoSuchName))
-{
- // Get the NodeApplication object reference.
- ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry = 0;
-
- if (this->artifact_map_.find (node_name,
- entry) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
- "CIAO::DomainApplicationManager_Impl::get_node_app -"
- "ERROR while finding the node application "
- "for the node [%s] \n",
- node_name));
- ACE_THROW (Deployment::NoSuchName ());
- }
-
- return
- Deployment::NodeApplication::_duplicate (
- entry->int_id_.node_application_.in ());
-}
-
void
CIAO::DomainApplicationManager_Impl::
init (ACE_ENV_SINGLE_ARG_DECL)
@@ -119,16 +72,16 @@ init (ACE_ENV_SINGLE_ARG_DECL)
{
CIAO::DAnCE::ServerResource *sr = 0;
this->plan_.infoProperty[0].value >>= sr;
-
+
Config_Handlers::SRD_Handler reverse_handler (sr);
-
+
Config_Handlers::XML_Helper the_helper;
- xercesc::DOMDocument *the_xsc
+ xercesc::DOMDocument *the_xsc
(the_helper.create_dom ("CIAO:ServerResources",
"http://www.dre.vanderbilt.edu/ServerResources"));
-
+
ServerResources (*reverse_handler.srd_xsc (), the_xsc);
-
+
// write out the result
the_helper.write_DOM (the_xsc, "output.srd");
}
@@ -143,7 +96,7 @@ init (ACE_ENV_SINGLE_ARG_DECL)
ACE_ERROR ((LM_ERROR,
"DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
"CIAO::DomainApplicationManager_Impl::init -"
- "ERROR while calling get_plan_info () \n"));
+ "ERROR while calling get_plan_info () \n"));
ACE_TRY_THROW (Deployment::PlanError ());
}
@@ -153,11 +106,11 @@ init (ACE_ENV_SINGLE_ARG_DECL)
ACE_ERROR ((LM_ERROR,
"DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
"CIAO::DomainApplicationManager_Impl::init -"
- "ERROR while calling split_plan () \n"));
+ "ERROR while calling split_plan () \n"));
ACE_TRY_THROW (Deployment::PlanError ());
}
- // Invoke preparePlan on each NodeManager by giving child plan.
+ // Invoke preparePlan for each child deployment plan.
for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
{
// Get the NodeManager object reference.
@@ -182,6 +135,9 @@ init (ACE_ENV_SINGLE_ARG_DECL)
Chained_Artifacts & artifacts = entry->int_id_;
+ // The dump() function is broken.
+ //Deployment::DnC_Dump::dump (artifacts.child_plan_);
+
// Call preparePlan() method on the NodeManager with the
// corresponding child plan as input, which returns a
// NodeApplicationManager object reference.
@@ -191,7 +147,7 @@ init (ACE_ENV_SINGLE_ARG_DECL)
ACE_TRY_CHECK;
Deployment::NodeApplicationManager_var app_manager =
- Deployment::NodeApplicationManager::_narrow
+ Deployment::NodeApplicationManager::_narrow
(tmp_app_manager.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -207,9 +163,9 @@ init (ACE_ENV_SINGLE_ARG_DECL)
ACE_CString error ("DomainAppMgr::init () received a nil \
reference for NodeApplicationManager\n");
-
+
ACE_DEBUG ((LM_DEBUG, error.c_str ()));
- ACE_TRY_THROW
+ ACE_TRY_THROW
(Deployment::StartError ("DomainApplicationManager_Impl:init",
error.c_str ()));
}
@@ -234,7 +190,7 @@ CIAO::DomainApplicationManager_Impl::
get_plan_info (void)
{
CIAO_TRACE("CIAO::DomainApplicationManager_Impl::get_plan_info");
-
+
// Read the deployment.dat file and get to know the different nodes
// that are present in the deployment domain.
// We should be able to replace this way, by parsing the domain
@@ -274,13 +230,11 @@ get_plan_info (void)
// node_manager_map.
//
int num_plans = 0;
- this->node_manager_names_.clear ();
-
for (CORBA::ULong index = 0; index < length; index ++)
{
bool matched = false;
- const CORBA::ULong number_node_managers =
+ const CORBA::ULong number_node_managers =
this->node_manager_names_.size ();
for (CORBA::ULong i = 0; i < number_node_managers; ++i)
@@ -303,13 +257,13 @@ get_plan_info (void)
(this->plan_.instance [index].node.in ());
if (CORBA::is_nil (mgr.in ()))
- return false; /* Failure */
+ return 0; /* Failure */
// Add this unique node_name to the list of NodeManager names
this->node_manager_names_.push_back (this->plan_.instance [index].node.in ());
// Increment the number of plans
- ++num_plans;
+ ++ num_plans;
}
}
@@ -341,13 +295,12 @@ split_plan (void)
ACE_NEW_RETURN (tmp_plan,
::Deployment::DeploymentPlan,
0);
-
- // Construct the UUID for the child plan.
+
+ // Construct the UUID for the child plan.
// Currently, this UUID consists of:
// The global UUID for the parent plan + the name of the node the
- // child plan is to be installed on.
+ // child plan is to be installed on.
ACE_CString child_uuid (this->plan_.UUID.in ());
- child_uuid += "@";
child_uuid += this->node_manager_names_[i];
tmp_plan->UUID = CORBA::string_dup (child_uuid.c_str ());
@@ -375,19 +328,7 @@ split_plan (void)
this->deployment_config_.get_node_manager
(this->node_manager_names_[i].c_str ());
- ACE_Hash_Map_Entry
- <ACE_CString,
- Chained_Artifacts> *entry = 0;
-
- if (this->artifact_map_.find
- (node_manager_names_[i], entry) == 0)
- artifacts.old_child_plan_ = (entry->int_id_).child_plan_;
- else
- artifacts.old_child_plan_ = 0;
-
- // In case we are doing redeployment, rebind will help replace the
- // old child plan with the new child plan.
- this->artifact_map_.rebind (node_manager_names_[i], artifacts);
+ this->artifact_map_.bind (node_manager_names_[i], artifacts);
}
// (1) Iterate over the <instance> field of the global DeploymentPlan
@@ -396,12 +337,7 @@ split_plan (void)
// plans one by one.
for ( i = 0; i < (this->plan_.instance).length (); ++i)
{
- // @@TODO Fill in the child deployment plan in the map.
- // If the component instance already exists in the child plan,
- // then we overwrite the existing instance, since the new instance
- // might have different resource usage requirements.
-
-
+ // Fill in the child deployment plan in the map.
// Get the instance deployment description
const ::Deployment::InstanceDeploymentDescription & my_instance =
@@ -421,7 +357,7 @@ split_plan (void)
// Get the child plan.
::Deployment::DeploymentPlan_var &child_plan =
(entry->int_id_).child_plan_;
-
+
// Fill in the contents of the child plan entry.
// Append the "MonolithicDeploymentDescriptions implementation"
@@ -491,7 +427,7 @@ add_connections (const Deployment::Connections & incoming_conn)
{
CIAO_TRACE("CIAO::DomainApplicationManager_Impl::add_connections");
- CORBA::ULong const old_len = this->all_connections_->length ();
+ CORBA::ULong old_len = this->all_connections_->length ();
// Expand the length of the <all_connection_> sequence.
this->all_connections_->length (old_len + incoming_conn.length ());
@@ -519,17 +455,14 @@ startLaunch (const ::Deployment::Properties & configProperty,
ACE_TRY
{
- // Clean up all cached connections first
- this->all_connections_->length (0);
-
// Invoke startLaunch() operations on each cached NodeApplicationManager
for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
{
// Get the NodeApplicationManager object reference.
ACE_Hash_Map_Entry
<ACE_CString,
- Chained_Artifacts> *entry = 0;
-
+ Chained_Artifacts> *entry;
+
if (this->artifact_map_.find (this->node_manager_names_[i],
entry) != 0)
{
@@ -540,19 +473,19 @@ startLaunch (const ::Deployment::Properties & configProperty,
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
+ ACE_CString error
("Unable to resolve a reference to node manager: ");
error += this->node_manager_names_[i];
-
- ACE_TRY_THROW
- (Deployment::StartError
+
+ ACE_TRY_THROW
+ (Deployment::StartError
("DomainApplicationManager_Impl:startLaunch",
error.c_str ()));
}
-
+
::Deployment::NodeApplicationManager_ptr my_nam =
(entry->int_id_).node_application_manager_.in ();
-
+
if (CORBA::is_nil (my_nam))
{
ACE_ERROR ((LM_ERROR,
@@ -562,13 +495,13 @@ startLaunch (const ::Deployment::Properties & configProperty,
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
+ ACE_CString error
("While starting launch, the DomainApplicationManager\
has a nil reference for NodeApplicationManager\n");
ACE_DEBUG ((LM_DEBUG, error.c_str ()));
-
- ACE_TRY_THROW
- (Deployment::StartError
+
+ ACE_TRY_THROW
+ (Deployment::StartError
("DomainApplicationManager_Impl::startLaunch",
error.c_str ()));
}
@@ -579,28 +512,10 @@ startLaunch (const ::Deployment::Properties & configProperty,
// Obtained the returned NodeApplication object reference
// and the returned Connections variable.
- ::Deployment::Application_var temp_application;
- if (!is_redeployment_)
- {
- temp_application =
- my_nam->startLaunch (configProperty,
- retn_connections.out (),
- 0);
- }
- else
- {
- //=============================================================
- // Add New Components Logic
- //=============================================================
- // Let's add new components only now, the to-be-removed
- // components should be removed AFTER the connections
- // are removed.
- temp_application =
- my_nam->perform_redeployment (configProperty,
- retn_connections.out (),
- true, // add new components only now
- 0);
- }
+ ::Deployment::Application_var temp_application =
+ my_nam->startLaunch (configProperty,
+ retn_connections.out (),
+ 0);
// Narrow down to NodeApplication object reference
::Deployment::NodeApplication_var my_na =
@@ -617,14 +532,14 @@ startLaunch (const ::Deployment::Properties & configProperty,
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
- ("The DomainApplicationManager receives a nil "
- "reference of NodeApplication after calling "
- "startLaunch on NodeApplicationManager.\n");
+ ACE_CString error
+ ("The DomainApplicationManager receives a nil\
+ reference of NodeApplication after calling\
+ startLaunch on NodeApplicationManager.\n");
ACE_ERROR ((LM_ERROR, error.c_str ()));
-
- ACE_TRY_THROW
- (Deployment::StartError
+
+ ACE_TRY_THROW
+ (Deployment::StartError
("DomainApplicationManager_Impl::startLaunch",
error.c_str ()));
}
@@ -637,8 +552,6 @@ startLaunch (const ::Deployment::Properties & configProperty,
// the hash table.
(entry->int_id_).node_application_ = my_na._retn ();
}
-
- this->synchronize_shared_components_with_node_managers ();
}
ACE_CATCHANY
{
@@ -651,105 +564,9 @@ startLaunch (const ::Deployment::Properties & configProperty,
ACE_CHECK;
}
-
-void
-CIAO::DomainApplicationManager_Impl::
-install_all_es (void)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError))
-{
- ACE_TRY
- {
- for (CORBA::ULong j = 0; j < this->esd_->length (); ++j)
- {
- // Construct the ESInstallationInfos data
- Deployment::ESInstallationInfos_var es_infos;
- ACE_NEW (es_infos,
- Deployment::ESInstallationInfos);
-
- es_infos->length (1);
- (*es_infos)[0].id = this->esd_[j].name.in ();
- (*es_infos)[0].type = CIAO::RTEC; //only RTEC is supported so far
- (*es_infos)[0].svcconf = this->esd_[j].svc_cfg_file.in ();
-
- // Find NA, and then invoke operation on it
- ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry = 0;
-
- if (this->artifact_map_.find (this->esd_[j].node.in (),
- entry) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
- "CIAO::DomainApplicationManager_Impl::install_all_es -"
- "ERROR while finding the node specific plan "
- "for the node [%s] \n",
- this->esd_[j].node.in ()));
-
- ACE_CString error
- ("Unable to resolve a reference to NodeManager: ");
- error += this->esd_[j].node.in ();
-
- ACE_TRY_THROW
- (Deployment::StartError
- ("DomainApplicationManager_Impl::install_all_es",
- error.c_str ()));
- }
-
- // Invoke install_es () operation on each cached NodeApplication object.
- ::Deployment::NodeApplication_ptr my_na =
- (entry->int_id_).node_application_.in ();
-
- ::Deployment::CIAO_Event_Services_var event_services =
- my_na->install_es (es_infos);
-
- // Add these returned ES objects into the cached map
- this->add_es_to_map (es_infos, event_services);
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "DomainApplicationManager_Impl::post_finishLaunch.\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
-
- ACE_CHECK;
-}
-
-void
-CIAO::DomainApplicationManager_Impl::
-add_es_to_map (Deployment::ESInstallationInfos * es_infos,
- Deployment::CIAO_Event_Services * event_services)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError))
-{
- ACE_TRY
- {
- CORBA::ULong es_length = event_services->length ();
-
- for (CORBA::ULong i = 0; i < es_length; ++i)
- {
- this->es_map_.bind (
- (*es_infos)[i].id.in (),
- CIAO::CIAO_Event_Service::_duplicate ((*event_services)[i]));
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "DomainApplicationManager_Impl::add_es_to_map.\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
-
- ACE_CHECK;
-}
-
void
CIAO::DomainApplicationManager_Impl::
-finishLaunch (CORBA::Boolean start,
- CORBA::Boolean is_ReDaC
+finishLaunch (::CORBA::Boolean start
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StartError))
@@ -757,14 +574,7 @@ finishLaunch (CORBA::Boolean start,
CIAO_TRACE("CIAO::DomainApplicationManager_Impl::finishLaunch");
ACE_TRY
{
- // Install all the CIAO_Event_Services within the Deployment Plan
- this->install_all_es ();
-
// Invoke finishLaunch() operation on each cached NodeApplication object.
- // This will establish bindings for only those internal components, but
- // NOT for those external/shared components, which requires special
- // handling, since these components are outside the control of this
- // DomainApplicationManager.
for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
{
// Get the NodeApplication object reference.
@@ -780,40 +590,34 @@ finishLaunch (CORBA::Boolean start,
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
+ ACE_CString error
("Unable to resolve a reference to NodeManager: ");
error += this->node_manager_names_[i];
-
- ACE_TRY_THROW
- (Deployment::StartError
+
+ ACE_TRY_THROW
+ (Deployment::StartError
("DomainApplicationManager_Impl::finishLaunch",
error.c_str ()));
}
+
//@@ Note: Don't delete the below debugging helpers.
// Dump the connections for debug purpose.
if (CIAO::debug_level () > 9)
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"==============================================\n"));
- ACE_DEBUG ((LM_DEBUG,
- "dump incoming connections for child plan:%s\n",
- (entry->int_id_).child_plan_->UUID.in ()));
+ ACE_DEBUG ((LM_DEBUG,
+ "dump incoming connections for child plan:%d\n", i));
dump_connections (this->all_connections_.in ());
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"==============================================\n"));
}
- // Get the Connections variable, if ReDaC is true, then we get
- // those new connections only. NOTE: get_outgoing_connections
- // by default will get *all* connections.
+ // Get the Connections variable.
Deployment::Connections * my_connections =
- this->get_outgoing_connections (
- (entry->int_id_).child_plan_.in (),
- !is_ReDaC,
- true, // we search *new* plan
- DomainApplicationManager_Impl::Internal_Connections
- ACE_ENV_ARG_PARAMETER);
+ this->get_outgoing_connections ((entry->int_id_).child_plan_.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (my_connections == 0)
@@ -825,120 +629,33 @@ finishLaunch (CORBA::Boolean start,
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_TRY_THROW
- (Deployment::StartError
- ("DomainApplicationManager_Impl::finish_launch",
+ ACE_TRY_THROW
+ (Deployment::StartError
+ ("DomainApplicationManager_Impl::finish_launch",
"There was some error establishing connections."));
}
+ Deployment::Connections_var safe (my_connections);
+
// Dump the connections for debug purpose.
if (CIAO::debug_level () > 1)
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"==============================================\n"));
- ACE_DEBUG ((LM_DEBUG,
- "dump outgoing connections for child plan:%s\n",
- (entry->int_id_).child_plan_->UUID.in ()));
- dump_connections (*my_connections);
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
+ "dump outgoing connections for child plan:%d\n", i));
+ dump_connections (safe.in ());
+ ACE_DEBUG ((LM_DEBUG,
"==============================================\n"));
}
// Invoke finishLaunch() operation on NodeApplication.
- if (my_connections->length () != 0)
- {
- entry->int_id_.node_application_->finishLaunch
- (*my_connections,
- start,
- true // "true" => establish new connections only
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- //=============================================================
- // Remove Old Connections Logic
- //=============================================================
-
- if (is_ReDaC) // We should also *REMOVE* unnecessary connections
- {
- // If this is a brand new child plan, then continue.
- if ((entry->int_id_).old_child_plan_ == 0)
- continue;
-
- // Get all the connections in the old deployment plan
- Deployment::Connections * connections_in_old_plan =
- this->get_outgoing_connections (
- (entry->int_id_).old_child_plan_.in (),
- true, // yes, get *all* the connections
- false, // search in the *old* plan
- DomainApplicationManager_Impl::Internal_Connections
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Pass in the "false" parameter to get *all* the connections in
- // the new deployment plan, regardless those in old plan
- Deployment::Connections * connections_in_new_plan =
- this->get_outgoing_connections (
- (entry->int_id_).child_plan_.in (),
- true, // yes, get *all* the connections
- true, // search in the *new* plan
- DomainApplicationManager_Impl::Internal_Connections
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Deployment::Connections * unnecessary_connections =
- this->subtract_connections (*connections_in_old_plan,
- *connections_in_new_plan);
-
- delete connections_in_old_plan;
- delete connections_in_new_plan;
-
- // Dump the connections for debug purpose.
- if (CIAO::debug_level () > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "==============================================\n"));
- ACE_DEBUG ((LM_DEBUG,
- "dump to-be-removed connections for child plan:%s\n",
- (entry->int_id_).child_plan_->UUID.in ()));
- dump_connections (*unnecessary_connections);
- ACE_DEBUG ((LM_DEBUG,
- "==============================================\n"));
- }
-
- // Invoke finishLaunch() operation on NodeApplication.
- if (unnecessary_connections->length () != 0)
- {
- ACE_ASSERT (!CORBA::is_nil (entry->int_id_.node_application_.in ()));
- entry->int_id_.node_application_->finishLaunch
- (*unnecessary_connections,
- start,
- false // false ==> remove unnecessary connections
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- //=============================================================
- // Remove Old Components
- //=============================================================
- // Finally we need to remove those to-be-removed components
- ::Deployment::Properties_var configProperty;
- ACE_NEW (configProperty,
- Deployment::Properties);
-
- ::Deployment::Connections_var retn_connections;
-
- Deployment::Application_var temp_application =
- entry->int_id_.node_application_manager_->
- perform_redeployment (configProperty,
- retn_connections.out (),
- false, // remove old components only
- false);// do not "start"
- }
+ entry->int_id_.node_application_->finishLaunch
+ (safe.in (),
+ start
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
-
- // Establish bindings on external/shared components of this deployment plan.
- this->post_finishLaunch ();
}
ACE_CATCHANY
{
@@ -951,16 +668,16 @@ finishLaunch (CORBA::Boolean start,
for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
{
// Get the NodeManager and NodeApplicationManager object references.
- ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> * entry = 0;
+ ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> * entry;
this->artifact_map_.find (this->node_manager_names_[i],entry);
- ::Deployment::NodeApplicationManager_ptr
+ ::Deployment::NodeApplicationManager_ptr
my_node_application_manager =
(entry->int_id_).node_application_manager_.in ();
// Invoke destoryApplication() operation on the NodeApplicationManger.
// Since we have the first arg is not used by NAM anyway.
- my_node_application_manager->destroyApplication
+ my_node_application_manager->destroyApplication
(0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -974,489 +691,6 @@ finishLaunch (CORBA::Boolean start,
void
CIAO::DomainApplicationManager_Impl::
-post_finishLaunch (void)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError))
-{
- ACE_TRY
- {
- // For each "external" component...
- CORBA::ULong length = this->shared_->length ();
- for (CORBA::ULong j = 0; j < length; ++j)
- {
- // Construct <Component_Binding_Info> struct for the component
- CIAO::Component_Binding_Info *
- binding = this->populate_binding_info (
- this->shared_[j].name.in (),
- this->shared_[j].plan_uuid.in ());
-
- // Invoke <finalize_global_binding> on ExecutionManager
- this->execution_manager_->finalize_global_binding (
- *binding, true);
-
- delete binding;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "DomainApplicationManager_Impl::post_finishLaunch.\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
-
- ACE_CHECK;
-}
-
-CIAO::Component_Binding_Info *
-CIAO::DomainApplicationManager_Impl::
-populate_binding_info (const ACE_CString& name,
- const ACE_CString& child_uuid)
-{
- CIAO::Component_Binding_Info * retv;
- ACE_NEW_RETURN (retv,
- CIAO::Component_Binding_Info (),
- 0);
-
- retv->name_ = name;
-
- // Parse the child_uuid string and populate the "node" name and "plan_uuid" fields.
- // Our protocol here is searching for the "@", the substring *before* that is the
- // global plan uuid, and the substring *after* that is the node name.
- size_t pos = child_uuid.find ('@');
-
- retv->plan_uuid_ =
- child_uuid.substring (0, pos);
-
- retv->node_ =
- child_uuid.substring (pos+1, -1); // get the rest of the string
-
- Deployment::Connections_var connections;
- ACE_NEW_RETURN (connections,
- Deployment::Connections,
- 0);
-
- this->get_outgoing_connections_i (name.c_str (),
- connections.inout (),
- false, // get *all* connections
- true); // search current plan
-
- retv->providedReference_ = connections._retn ();
-
- return retv;
-}
-
-CIAO::Component_Binding_Info *
-CIAO::DomainApplicationManager_Impl::
-populate_binding_info (const ACE_CString& name)
-{
- CIAO::Component_Binding_Info * retv;
- ACE_NEW_RETURN (retv,
- CIAO::Component_Binding_Info (),
- 0);
-
- // Looking for the child plan uuid through the shared compoonent list
- for (CORBA::ULong i = 0; i < this->shared_->length (); ++i)
- {
- if (ACE_OS::strcmp (this->shared_[i].name.in (),
- name.c_str ()) == 0)
- {
- ACE_CString child_uuid = this->shared_[i].plan_uuid.in ();
- retv = this->populate_binding_info (name, child_uuid);
- return retv;
- }
- }
-
- return 0; // If no matching is found (should never happen).
-}
-
-void
-CIAO::DomainApplicationManager_Impl::
-add_shared_components (const Deployment::ComponentPlans & shared)
-{
- for (CORBA::ULong i = 0; i < shared.length (); ++i)
- {
- CORBA::ULong curr_len = this->shared_->length ();
- this->shared_->length (curr_len + 1);
- this->shared_[curr_len] = shared[i];
- }
-}
-
-bool
-CIAO::DomainApplicationManager_Impl::
-is_shared_component (const char * name)
-{
- for (CORBA::ULong i = 0; i < this->shared_->length (); ++i)
- {
- if (ACE_OS::strcmp (this->shared_[i].name.in (),
- name) == 0)
- return true;
- }
-
- return false;
-}
-
-void
-CIAO::DomainApplicationManager_Impl::
-synchronize_shared_components_with_node_managers (void)
-{
- for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
- {
- // Get the NodeManager object reference.
- ACE_Hash_Map_Entry
- <ACE_CString,
- Chained_Artifacts> *entry = 0;
-
- if (this->artifact_map_.find (this->node_manager_names_[i],
- entry) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
- "CIAO::DomainApplicationManager_Impl::startLaunch -"
- "ERROR while finding the node specific plan "
- "for the node [%s] \n",
- this->node_manager_names_[i].c_str ()));
-
- ACE_CString error
- ("Unable to resolve a reference to node manager: ");
- error += this->node_manager_names_[i];
-
- ACE_TRY_THROW
- (Deployment::StartError
- ("DomainApplicationManager_Impl:startLaunch",
- error.c_str ()));
- }
-
- // Update the shared components list
- ::Deployment::NodeManager_ptr
- my_node_manager = (entry->int_id_).node_manager_.in ();
-
- Deployment::ComponentPlans_var
- shared = my_node_manager->get_shared_components ();
-
- this->add_shared_components (shared.in ());
- }
-}
-
-
-Deployment::Connections *
-CIAO::DomainApplicationManager_Impl::
-get_outgoing_connections (const Deployment::DeploymentPlan &plan,
- bool is_getting_all_connections,
- bool is_search_new_plan,
- Connection_Search_Type t
- ACE_ENV_ARG_DECL)
-{
- CIAO_TRACE("CIAO::DomainApplicationManager_Impl::get_outgoing_connections");
- Deployment::Connections_var connections;
- ACE_NEW_RETURN (connections,
- Deployment::Connections,
- 0);
-
- // For each component instance in the child plan ...
- CORBA::ULong number = plan.instance.length ();
- for (CORBA::ULong i = 0; i < number; ++i)
- {
-
- if (t == Internal_Connections &&
- this->is_shared_component (plan.instance[i].name.in ()))
- continue;
-
- // Get the outgoing connections of the component
- if (!get_outgoing_connections_i (plan.instance[i].name.in (),
- connections.inout (),
- is_getting_all_connections,
- is_search_new_plan
- ACE_ENV_ARG_PARAMETER))
- return 0;
- }
- return connections._retn ();
-}
-
-
-// Get outgoing connections for particular instance
-bool
-CIAO::DomainApplicationManager_Impl::
-get_outgoing_connections_i (const char * instname,
- Deployment::Connections & retv,
- bool is_getting_all_connections,
- bool is_search_new_plan
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((Deployment::StartError))
-{
- CIAO_TRACE("CIAO::DomainApplicationManager_Impl::get_outoing_connections_i");
-
- Deployment::DeploymentPlan tmp_plan;
- if (is_search_new_plan)
- tmp_plan = this->plan_;
- else
- tmp_plan = this->old_plan_;
-
- // Search for all the bindings in the plan.
- const CORBA::ULong total_length = tmp_plan.connection.length();
- for (CORBA::ULong i = 0; i < total_length; ++i)
- {
- // Current binding that we are looking at.
- const Deployment::PlanConnectionDescription & binding =
- tmp_plan.connection[i];
-
- // If this is a ReDaC case, then we ignore the connection if it
- // already exists in the old_plan
- if (already_exists (binding) &&
- !is_getting_all_connections)
- continue;
-
- this->populate_connection_for_binding (instname,
- binding,
- tmp_plan,
- retv);
- }
- return true;
-}
-
-// Search the current binding to see whether a connection of this
-// component needs to be populated
-bool
-CIAO::DomainApplicationManager_Impl::
-populate_connection_for_binding (
- const char * instname,
- const Deployment::PlanConnectionDescription & binding,
- const Deployment::DeploymentPlan & plan,
- Deployment::Connections & retv)
- ACE_THROW_SPEC ((Deployment::StartError))
-{
- const CORBA::ULong binding_len = binding.internalEndpoint.length ();
-
- if (binding_len == 1)
- {
- switch (binding.internalEndpoint[0].kind)
- {
- case Deployment::rtecEventPublisher:
- case Deployment::rtecEventConsumer:
- return
- this->handle_es_connection (instname,
- binding,
- plan,
- retv);
- default:
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
- "CIAO::DomainApplicationManager_Impl::"
- "populate_connection_for_binding -"
- "invalid connection specified in deployment plan\n"));
- return false;
- }
- }
- else if (binding_len == 2)
- {
- return this->handle_direct_connection (instname,
- binding,
- plan,
- retv);
- }
- else // invalid binding encounted...
- return false;
-}
-
-bool
-CIAO::DomainApplicationManager_Impl::
-handle_es_connection (
- const char * instname,
- const Deployment::PlanConnectionDescription & binding,
- const Deployment::DeploymentPlan & plan,
- Deployment::Connections & retv)
- ACE_THROW_SPEC ((Deployment::StartError))
-{
- // The initial retv might have something inside
- CORBA::ULong len = retv.length ();
-
- const Deployment::PlanSubcomponentPortEndpoint & endpoint =
- binding.internalEndpoint[0];
-
- // If the instance name does NOT match one of the names in the binding
- // Then thsi binding has nothing related to myself (an instance)
- if (ACE_OS::strcmp (instname,
- plan.instance[endpoint.instanceRef].name.in ()) != 0)
- return false;
-
- if (binding.externalReference.length () != 1)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
- "CIAO::DomainApplicationManager_Impl::"
- "handle_publisher_es_connection -"
- "externalReference must have length of 1.\n"));
- return false;
- }
-
- retv.length (len+1);
- retv[len].instanceName = instname;
- retv[len].portName = endpoint.portName.in ();
- retv[len].kind = endpoint.kind;
-
- ACE_CString es_id = binding.externalReference[0].location.in ();
-
- retv[len].endpointInstanceName = es_id.c_str ();
- retv[len].endpointPortName = "CIAO_ES";
-
- // We need to populate the actual filter and store it into
- // the <connection.config> field
- if (binding.deployRequirement.length () != 0)
- {
- retv[len].config =
- this->get_connection_QoS_configuration (binding.deployRequirement[0]);
- }
-
- // If we didnt find the objref of the connection ...
- CIAO::CIAO_Event_Service_var es;
-
- if (this->es_map_.find (es_id.c_str (), es) != 0)
- {
- ACE_CString error ("Creating connections for ");
- error += instname;
- error += ": unable to find object reference for connection ";
- error += binding.name.in ();
- ACE_THROW_RETURN (Deployment::StartError
- ("DomainApplicationManager_Impl::create_connections_i",
- error.c_str ()),
- false);
- }
-
- retv[len].event_service = es._retn ();
-
- // One more thing needs to be done if this is a es_consumer connection
- if (endpoint.kind == Deployment::rtecEventConsumer)
- {
- // Now we search in the received connections to get the objRef of event sink
- bool found = false;
- const CORBA::ULong all_conn_len = this->all_connections_->length ();
- for (CORBA::ULong j = 0; j < all_conn_len; ++j)
- {
- const Deployment::Connection & curr_recv_conn =
- this->all_connections_[j];
-
- // We need to look at the instance name and the port name to confirm.
- if (ACE_OS::strcmp (curr_recv_conn.instanceName.in (),
- instname) == 0 &&
- ACE_OS::strcmp (curr_recv_conn.portName.in (),
- endpoint.portName.in ()) == 0)
- {
- retv[len].endpoint =
- CORBA::Object::_duplicate(curr_recv_conn.endpoint.in ());
- found = true;
- }
- } // End of searching received connections
-
- if (!found)
- {
- ACE_CString error ("Creating connections for ");
- error += instname;
- error += ": unable to find object reference for connection ";
- error += binding.name.in ();
- ACE_THROW_RETURN (Deployment::StartError
- ("DomainApplicationManager_Impl::handle_es_connection",
- error.c_str ()),
- false);
- }
- }
-
- return true;
-}
-
-bool
-CIAO::DomainApplicationManager_Impl::
-handle_direct_connection (
- const char * instname,
- const Deployment::PlanConnectionDescription & binding,
- const Deployment::DeploymentPlan & plan,
- Deployment::Connections & retv)
- ACE_THROW_SPEC ((Deployment::StartError))
-{
- // The initial retv might have something inside
- CORBA::ULong len = retv.length ();
-
- const CORBA::ULong binding_len = binding.internalEndpoint.length ();
- for (CORBA::ULong i = 0; i < binding_len; ++i)
- {
- const Deployment::PlanSubcomponentPortEndpoint & endpoint =
- binding.internalEndpoint[i];
-
- // If the instance name does NOT match one of the names in the binding
- if (ACE_OS::strcmp (instname,
- plan.instance[endpoint.instanceRef].name.in ()) != 0)
- continue;
-
- // We are only interested when we are the "client" of the endpoint objref
- if (endpoint.kind == Deployment::EventPublisher ||
- endpoint.kind == Deployment::EventEmitter ||
- endpoint.kind == Deployment::SimplexReceptacle ||
- endpoint.kind == Deployment::MultiplexReceptacle )
- {
- // Obtain the index of the "real" endpoint which has an objref. It
- // is the opposite side of myself.
- CORBA::ULong e_index = (i + 1) % 2;
-
- ACE_CString source_port =
- binding.internalEndpoint[i].portName.in ();
-
- ACE_CString endpoint_inst =
- plan.instance[binding.internalEndpoint[e_index]
- .instanceRef].name.in ();
-
- ACE_CString endpoint_port =
- binding.internalEndpoint[e_index].portName.in ();
-
- bool found = false;
-
- // Now we search in the received connections to get the objRef.
- const CORBA::ULong all_conn_len = this->all_connections_->length ();
- for (CORBA::ULong j = 0; j < all_conn_len; ++j)
- {
- const Deployment::Connection & curr_recv_conn =
- this->all_connections_[j];
-
- // We need to look at the instance name and the port name to confirm.
- if (ACE_OS::strcmp (curr_recv_conn.instanceName.in (),
- endpoint_inst.c_str ()) == 0 &&
- ACE_OS::strcmp (curr_recv_conn.portName.in (),
- endpoint_port.c_str ()) == 0)
- {
- retv.length (len+1);
- retv[len].instanceName = instname;
- retv[len].portName = source_port.c_str ();
- retv[len].endpointInstanceName = endpoint_inst.c_str ();
- retv[len].endpointPortName = endpoint_port.c_str ();
-
- retv[len].endpoint =
- CORBA::Object::_duplicate(curr_recv_conn.endpoint.in ());
- retv[len].kind = binding.internalEndpoint[i].kind;
-
- ++len;
- found = true;
- break;
- }
- } // End of searching received connections
-
- // We didnt find the objref of the connection ...
- if (!found)
- {
- ACE_CString error ("Creating connections for ");
- error += instname;
- error += ": unable to find object reference for connection ";
- error += binding.name.in ();
- ACE_THROW_RETURN (Deployment::StartError
- ("DomainApplicationManager_Impl::create_connections_i",
- error.c_str ()),
- false);
- }
- break;
- }
- }
- return true;
-}
-
-void
-CIAO::DomainApplicationManager_Impl::
start (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
::Deployment::StartError))
@@ -1482,11 +716,11 @@ start (ACE_ENV_SINGLE_ARG_DECL)
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
+ ACE_CString error
("Unable to resolve a reference to node manager: ");
error += this->node_manager_names_[i];
-
- ACE_TRY_THROW (Deployment::StartError
+
+ ACE_TRY_THROW (Deployment::StartError
("DomainApplicationManager_Impl:startLaunch",
error.c_str ()));
}
@@ -1523,8 +757,8 @@ start (ACE_ENV_SINGLE_ARG_DECL)
my_na->start (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
-
- // Invoke ciao_postctivate () operation on each
+
+ // Invoke ciao_postctivate () operation on each
// cached NodeApplication object.
for (i = 0; i < this->num_child_plans_; ++i)
@@ -1542,11 +776,11 @@ start (ACE_ENV_SINGLE_ARG_DECL)
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
+ ACE_CString error
("Unable to resolve a reference to node manager: ");
error += this->node_manager_names_[i];
-
- ACE_TRY_THROW (Deployment::StartError
+
+ ACE_TRY_THROW (Deployment::StartError
("DomainApplicationManager_Impl:startLaunch",
error.c_str ()));
}
@@ -1578,117 +812,65 @@ destroyApplication (ACE_ENV_SINGLE_ARG_DECL)
CIAO_TRACE("CIAO::DomainApplicationManager_Impl::destroyApplication");
ACE_TRY
{
- // Passivate all components associated with the plan
- for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
+ CORBA::ULong i;
+
+ // Invoke ciao_passivate () operation on each cached NodeApplication object.
+ for (i = 0; i < this->num_child_plans_; ++i)
{
- ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry = 0;
+ // Get the NodeApplication object references.
+ ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry;
if (this->artifact_map_.find (this->node_manager_names_[i],
entry) != 0)
{
ACE_ERROR ((LM_ERROR,
"DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
- "CIAO::DomainApplicationManager_Impl::destroyApplication -"
+ "CIAO::DomainApplicationManager_Impl::destroyApplication -"
"ERROR while finding the node specific plan "
"for the node [%s] \n",
this->node_manager_names_[i].c_str ()));
- ACE_CString error
- ("Unable to resolve a reference to NodeManager: ");
- error += this->node_manager_names_[i];
-
- ACE_TRY_THROW
- (Deployment::StopError
- ("DomainApplicationManager_Impl::destroyApplication",
- error.c_str ()));
+ ACE_TRY_THROW (Deployment::StopError ());
}
-
- // Invoke ciao_passivate () operation on each cached NodeApplication object.
+
::Deployment::NodeApplication_ptr my_na =
(entry->int_id_).node_application_.in ();
my_na->ciao_passivate ();
+ ACE_TRY_CHECK;
}
- // Remove all connections associated with the plan
- for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
+ // Invoke destroyManager() operation on each cached
+ // NodeManager object.
+ for (i = 0; i < this->num_child_plans_; ++i)
{
- ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry = 0;
-
- this->artifact_map_.find (this->node_manager_names_[i], entry);
-
- Deployment::Connections_var connections =
- this->get_outgoing_connections (
- (entry->int_id_).child_plan_.in (),
- true, // yes, get *all* the connections
- true, // yes, we search the current plan
- DomainApplicationManager_Impl::External_Connections
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Invoke finishLaunch() on NodeApplication to remove bindings.
- // If this NodeApplication is not within the control of this DAM,
- // then we should delegate the call to the correct DAM through EM.
-
- // Iterave over the returned connection list in <connections>,
- // (1) If this is a shared component, then we remove this connection
- // from <connections> list, and then populate a "Component_Binding_Info"
- // struct for it and send to EM for remove.
- // (2) For the rest of the connections, we send them to the NAs
- // managed by the local DAM to remove.
+ // Get the NodeManager and NodeApplicationManager object references.
+ ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry;
- for (CORBA::ULong j = 0; j < connections->length (); ++j)
+ if (this->artifact_map_.find (this->node_manager_names_[i],
+ entry) != 0)
{
- if (this->is_shared_component (connections[j].instanceName.in ()))
- {
- // ask EM to remove the binding for us
- ACE_CString inst_name = connections[j].instanceName.in ();
- CIAO::Component_Binding_Info *
- binding = this->populate_binding_info (inst_name.c_str ());
-
- this->execution_manager_->finalize_global_binding (
- *binding, false);
-
- // Remove all the connections whose "source" component
- // is this component instance from the <connections> list
- this->purge_connections (connections,
- inst_name.c_str ());
- }
- }
+ ACE_ERROR ((LM_ERROR,
+ "DAnCE (%P|%t) DomainApplicationManager_Impl.cpp -"
+ "CIAO::DomainApplicationManager_Impl::destroyApplication -"
+ "ERROR while finding the node specific plan "
+ "for the node [%s] \n",
+ this->node_manager_names_[i].c_str ()));
- if (connections->length () > 0)
- {
- entry->int_id_.node_application_->finishLaunch
- (connections.in (),
- true, // "true" ==> start the components
- false // "false" => remove connections
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ACE_TRY_THROW (Deployment::StopError ());
}
- }
-
- // After all the connections are removed, we actually destroy
- for (CORBA::ULong i = 0; i < this->num_child_plans_; ++i)
- {
- ACE_Hash_Map_Entry <ACE_CString, Chained_Artifacts> *entry = 0;
-
- this->artifact_map_.find (this->node_manager_names_[i], entry);
-
- // Invoke destroyPlan() operation on the NodeManager
- Deployment::NodeManager_var
- my_node_manager = (entry->int_id_).node_manager_;
+ ::Deployment::NodeApplicationManager_ptr
+ my_node_application_manager =
+ (entry->int_id_).node_application_manager_.in ();
- my_node_manager->destroyPlan ((entry->int_id_).child_plan_
- ACE_ENV_ARG_PARAMETER);
+ // Invoke destoryApplication() operation on the NodeApplicationManger.
+ // Since we have the first arg is not used by NAM anyway.
+ my_node_application_manager->destroyApplication
+ (0
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
-
- // ??
- // Shall we invoke destroyManager () operation on the NodeManager, since we need
- // to clean up all the NodeApplicationManagers associated with this deployment
- // plan (one NodeApplicationManager per Node per plan).
-
}
ACE_CATCHANY
{
@@ -1715,7 +897,7 @@ destroyManager (ACE_ENV_SINGLE_ARG_DECL)
// Get the NodeManager and NodeApplicationManager object references.
ACE_Hash_Map_Entry
<ACE_CString,
- Chained_Artifacts> *entry = 0;
+ Chained_Artifacts> *entry;
if (this->artifact_map_.find (this->node_manager_names_[i],
entry) != 0)
@@ -1723,10 +905,10 @@ destroyManager (ACE_ENV_SINGLE_ARG_DECL)
::Deployment::NodeManager_var my_node_manager =
(entry->int_id_).node_manager_;
-
- ::Deployment::NodeApplicationManager_var my_nam =
+
+ ::Deployment::NodeApplicationManager_var my_nam =
(entry->int_id_).node_application_manager_;
-
+
my_node_manager->destroyManager (my_nam.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -1743,67 +925,6 @@ destroyManager (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK;
}
-void
-CIAO::DomainApplicationManager_Impl::
-perform_redeployment (
- const Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::PlanError,
- Deployment::InstallationFailure,
- Deployment::UnknownImplId,
- Deployment::ImplEntryPointNotFound,
- Deployment::InvalidConnection,
- ::Components::RemoveFailure))
-{
- // Currently we could dynamically update the NodeManagerMap topology,
- // but later maybe we could add another parameter to this operation,
- // which allows the user to specify the new NodeManagerMap data file.
- this->old_plan_ = this->plan_;
- this->is_redeployment_ = true;
- this->plan_ = plan;
-
- ACE_TRY
- {
- // Call init() on the myself, which will validate/split the plan and
- // call preparePlan on each NodeManager, by this, we shall get
- // all the object references of NM and NAM associated with each
- // component instance populated.
- this->init ();
-
- // Call startLaunch on each NM for each child plan, this should not only
- // install all the new components specified, but should also remove
- // the components that are no longer in the new deployment plan.
- // Meanwhile, we should set up the container configurations appropriately,
- // whose information is fully captured in the node-level deployment plan.
- ::Deployment::Properties_var properties;
- ACE_NEW (properties,
- Deployment::Properties);
-
- this->startLaunch (properties.in (), false);
-
- // finishLaunch will (1) establish new connections, and (2)
- // get rid of those non-existing connections. As we know, in the
- // node level, the connections are cached within the NodeApplication *and*
- // Container, then we should modify the implementation of the
- // <finishLaunch> on the NodeApplication to accomplish this.
- this->finishLaunch (true, true); // true means start activation also.
- // ture means "ReDaC" is desired
-
- this->start ();
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "DomainApplicationManager_Impl::perform_redeployment\t\n");
- this->plan_ = this->old_plan_;
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK;
-}
-
-
// Returns the DeploymentPlan associated with this ApplicationManager.
::Deployment::DeploymentPlan *
CIAO::DomainApplicationManager_Impl::
@@ -1821,206 +942,187 @@ getPlan (ACE_ENV_SINGLE_ARG_DECL)
return plan._retn ();
}
-void
+Deployment::Connections *
CIAO::DomainApplicationManager_Impl::
-dump_connections (const ::Deployment::Connections & connections)
+get_outgoing_connections (const Deployment::DeploymentPlan &plan
+ ACE_ENV_ARG_DECL)
{
- CIAO_TRACE("CIAO::DomainApplicationManager_Impl::dump_connections");
- const CORBA::ULong conn_len = connections.length ();
- for (CORBA::ULong i = 0; i < conn_len; ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- "instanceName: %s\n", connections[i].instanceName.in ()));
-
- ACE_DEBUG ((LM_DEBUG, "portName: %s\n", connections[i].portName.in ()));
-
- ACE_DEBUG ((LM_DEBUG, "portkind: "));
-
- switch (connections[i].kind)
- {
- case Deployment::Facet:
-
- ACE_DEBUG ((LM_DEBUG, "Facet\n"));
- break;
-
- case Deployment::SimplexReceptacle:
-
- ACE_DEBUG ((LM_DEBUG, "SimplexReceptacle\n"));
- break;
-
- case Deployment::MultiplexReceptacle:
-
- ACE_DEBUG ((LM_DEBUG, "MultiplexReceptacle\n"));
- break;
-
- case Deployment::EventEmitter:
-
- ACE_DEBUG ((LM_DEBUG, "EventEmitter\n"));
- break;
-
- case Deployment::EventPublisher:
-
- ACE_DEBUG ((LM_DEBUG, "EventPublisher\n"));
- break;
-
- case Deployment::EventConsumer:
-
- ACE_DEBUG ((LM_DEBUG, "EventConsumer\n"));
- break;
-
- case Deployment::rtecEventPublisher:
-
- ACE_DEBUG ((LM_DEBUG, "rtecEventPublisher\n"));
- break;
-
- case Deployment::rtecEventConsumer:
-
- ACE_DEBUG ((LM_DEBUG, "rtecEventConsumer\n"));
- break;
-
- default:
- ACE_DEBUG ((LM_DEBUG, "Unknown port kind.\n"));
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "endpointInstanceName: %s\n",
- connections[i].endpointInstanceName.in ()));
+ CIAO_TRACE("CIAO::DomainApplicationManager_Impl::get_outgoing_connections");
+ Deployment::Connections_var connections;
+ ACE_NEW_RETURN (connections,
+ Deployment::Connections,
+ 0);
- ACE_DEBUG ((LM_DEBUG,
- "endpointPortName: %s\n",
- connections[i].endpointPortName.in ()));
- ACE_DEBUG ((LM_DEBUG, "---------------------\n"));
- }
+ // For each component instance in the child plan ...
+ for (CORBA::ULong i = 0; i < plan.instance.length (); ++i)
+ {
+ // Get the component instance name
+ if (!get_outgoing_connections_i (plan.instance[i].name.in (),
+ connections.inout ()
+ ACE_ENV_ARG_PARAMETER))
+ return 0;
+ }
+ return connections._retn ();
}
bool
CIAO::DomainApplicationManager_Impl::
-already_exists (const Deployment::PlanConnectionDescription & conn)
-{
- const CORBA::ULong conn_len = this->old_plan_.connection.length();
- for(CORBA::ULong i = 0; i < conn_len; ++i)
- {
- if (ACE_OS::strcmp (this->old_plan_.connection[i].name.in (),
- conn.name.in ()) == 0)
- return true;
- }
-
- return false;
-}
-
-Deployment::Connections *
-CIAO::DomainApplicationManager_Impl::
-subtract_connections (const Deployment::Connections & left,
- const Deployment::Connections & right)
+get_outgoing_connections_i (const char * instname,
+ Deployment::Connections & retv
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((Deployment::StartError))
{
- Deployment::Connections_var retv;
- ACE_NEW_RETURN (retv,
- Deployment::Connections,
- 0);
+ CIAO_TRACE("CIAO::DomainApplicationManager_Impl::get_outoing_connections_i");
- CORBA::ULong left_length = left.length ();
- CORBA::ULong right_length = right.length ();
- for (CORBA::ULong i = 0; i < left_length; ++i)
+ // Search in all the connections in the plan.
+ for (CORBA::ULong i = 0; i < this->plan_.connection.length(); ++i)
+ {
+ CORBA::ULong len = retv.length ();
+
+ // Current connection that we are looking at.
+ const Deployment::PlanConnectionDescription & curr_conn =
+ this->plan_.connection[i];
+
+ //The modeling tool should make sure there are always 2 endpoints
+ //in a connection.
+ const CORBA::ULong curr_conn_len = curr_conn.internalEndpoint.length ();
+ for (CORBA::ULong p_index = 0;
+ p_index < curr_conn_len;
+ ++p_index)
{
- bool found = false;
- for (CORBA::ULong j = 0; j < right_length; ++j)
- {
- if (ACE_OS::strcmp (left[i].instanceName.in (),
- right[j].instanceName.in ()) == 0 &&
- ACE_OS::strcmp (left[i].portName.in (),
- right[j].portName.in ()) == 0 &&
- left[i].kind == right[j].kind &&
- left[i].endpoint->_is_equivalent (right[j].endpoint.in ()))
- {
- found = true;
- break;
- }
- }
+ const Deployment::PlanSubcomponentPortEndpoint & endpoint =
+ curr_conn.internalEndpoint[p_index];
- if (!found)
+ // If the component name matches the name of one of the
+ // endpoints in the connection.
+ if (ACE_OS::strcmp (this->plan_.instance[endpoint.instanceRef].name.in (),
+ instname) == 0 )
+ {
+ //Look at the port kind to make sure it's what we are interested in.
+ if (endpoint.kind != Deployment::Facet &&
+ endpoint.kind != Deployment::EventConsumer)
{
- CORBA::ULong curr_length = retv->length ();
- retv->length (curr_length + 1);
- retv[curr_length] = left[i];
+ // The other endpoints in this connection is what we want.
+ CORBA::ULong index = (p_index +1)%2;
+
+ //Cache the name of the other component for later usage (search).
+ ACE_CString name =
+ this->plan_.instance[curr_conn.internalEndpoint[index].
+ instanceRef].name.in ();
+
+ // Cache the name of the port from the
+ // other component for searching later.
+
+ ACE_CString port_name =
+ curr_conn.internalEndpoint[index].portName.in ();
+
+ ACE_DEBUG ((LM_ERROR, "Looking: %s,%s \n",
+ name.c_str (),
+ port_name.c_str ()));
+
+ bool found = false;
+
+ // Now we have to search in the received
+ // connections to get the objRef.
+
+ const CORBA::ULong all_conn_len = this->all_connections_->length ();
+ for (CORBA::ULong conn_index = 0;
+ conn_index < all_conn_len;
+ ++conn_index)
+ {
+ const Deployment::Connection curr_rev_conn =
+ this->all_connections_[conn_index];
+
+ // We need to look at the instance name and the
+ // port name to confirm.
+ if (ACE_OS::strcmp (curr_rev_conn.instanceName.in (),
+ name.c_str ()) == 0 &&
+ ACE_OS::strcmp (curr_rev_conn.portName.in (),
+ port_name.c_str ()) == 0)
+ {
+ //ACE_DEBUG ((LM_DEBUG, "step5\n"));
+
+ retv.length (len+1);
+ retv[len].instanceName = instname;
+ retv[len].portName = endpoint.portName.in ();
+ retv[len].kind = endpoint.kind;
+ retv[len].endpoint =
+ CORBA::Object::_duplicate(curr_rev_conn.endpoint.in ());
+ ++len;
+ found = true;
+ break;
+ }
+ }
+
+ // We didnt find the counter part connection even
+ // we are sure there must be 1.
+
+ if (!found)
+ {
+ ACE_CString error ("Creating connections for ");
+ error += instname;
+ error += ": unable to find object reference for connection ";
+ error += curr_conn.name.in ();
+ ACE_THROW_RETURN (Deployment::StartError
+ ("DomainApplicationManager_Impl::create_connections_i",
+ error.c_str ()),
+ false);
+ }
+
+ break;
}
+ }
}
- return retv._retn ();
+ }
+ return 1;
}
void
CIAO::DomainApplicationManager_Impl::
-purge_connections (Deployment::Connections_var & connections,
- const char * inst)
+dump_connections (const ::Deployment::Connections & connections)
{
- CORBA::ULong total_len = connections->length ();
+ CIAO_TRACE("CIAO::DomainApplicationManager_Impl::dump_connections");
+ const CORBA::ULong conn_len = connections.length ();
+ for (CORBA::ULong i = 0; i < conn_len; ++i)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "instanceName: %s\n", connections[i].instanceName.in ()));
- for (CORBA::ULong i = 0; i < total_len; ++i)
- {
- bool found = false;
+ ACE_DEBUG ((LM_DEBUG, "portName: %s\n", connections[i].portName.in ()));
- // Remove all the connections whose "source" component
- // name is <inst>
- if (ACE_OS::strcmp (connections[i].instanceName.in (),
- inst) == 0)
- {
- found = true;
+ ACE_DEBUG ((LM_DEBUG, "portkind: "));
- for (CORBA::ULong j = i; j < total_len - 1; ++j)
- {
- connections[j] = connections[j + 1];
- }
- connections->length (total_len - 1);
- }
+ switch (connections[i].kind)
+ {
+ case Deployment::Facet:
- if (found)
- this->purge_connections (connections, inst);
- }
-}
+ ACE_DEBUG ((LM_DEBUG, "Facet\n"));
+ break;
-const Deployment::Properties &
-CIAO::DomainApplicationManager_Impl::
-get_connection_QoS_configuration (const Deployment::Requirement & requirement)
-{
- // Get the name/identifier of the filter associated with
- // this connection
- Deployment::Properties_var retv;
- ACE_NEW_NORETURN (retv, Deployment::Properties);
+ case Deployment::SimplexReceptacle:
- CORBA::ULong len = retv->length ();
+ ACE_DEBUG ((LM_DEBUG, "SimplexReceptacle\n"));
+ break;
- for (CORBA::ULong i = 0;
- i < requirement.property.length ();
- ++i)
- {
- const char *filter_name;
- if (ACE_OS::strcmp ("EventFilter",
- requirement.property[i].name) == 0)
- {
+ case Deployment::MultiplexReceptacle:
- if ((requirement.property[i].value >>= filter_name) == false)
- ACE_ERROR ((LM_ERROR,
- "ERROR: DomainApplicationManager_Impl::"
- "get_connection_QoS_configuration unable to "
- "extract event filter information\n"));
- }
+ ACE_DEBUG ((LM_DEBUG, "MultiplexReceptacle\n"));
+ break;
- // Search for the desired filter
- for (CORBA::ULong j = 0; j < this->esd_->length (); ++j)
- {
- // Populate the "filters" info, in case this CIAO_Event_Service has
- // one or more filters specified through descriptors
- for (CORBA::ULong k = 0; k < this->esd_[j].filters.length (); ++k)
- {
- if (ACE_OS::strcmp (this->esd_[j].filters[k].name.in (),
- filter_name) == 0)
- {
- retv->length (len + 1);
- retv[len].name = CORBA::string_dup ("EventFilter");
- retv[len].value <<= this->esd_[j].filters[k];
- break;
- }
- }
- }
- }
- return retv.inout ();
+ case Deployment::EventEmitter:
+
+ ACE_DEBUG ((LM_DEBUG, "EventEmitter\n"));
+ break;
+
+ case Deployment::EventPublisher:
+
+ ACE_DEBUG ((LM_DEBUG, "EventPublisher\n"));
+ break;
+
+ case Deployment::EventConsumer:
+
+ ACE_DEBUG ((LM_DEBUG, "EventConsumer\n"));
+ break;
+ }
+ }
}
diff --git a/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h b/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
index a97baa4fa1a..df5432602a5 100644
--- a/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
+++ b/TAO/CIAO/DAnCE/DomainApplicationManager/DomainApplicationManager_Impl.h
@@ -28,8 +28,7 @@
#include "ace/Vector_T.h"
#include "ace/Functor.h"
#include "ace/OS_NS_string.h"
-#include "ciao/DomainApplicationManagerS.h"
-#include "ciao/Deployment_common.h"
+#include "DeploymentS.h"
#include "tao/Valuetype/ValueBase.h"
#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
@@ -37,15 +36,9 @@
#include "Deployment_Configuration.h"
#include "DomainApplicationManager_Export.h"
#include "ciao/CIAO_common.h"
-#include "ciao/Deployment_EventsC.h"
namespace CIAO
{
- namespace Execution_Manager
- {
- class Execution_Manager_Impl;
- }
-
/**
* @class DomainApplicationManager_Impl
*
@@ -58,16 +51,6 @@ namespace CIAO
: public virtual POA_Deployment::DomainApplicationManager
{
public:
-
- // External_Connections means we search all the connections including
- // the connectiosn for external/shared components of this plan which hold
- // port objrefs of components within this plan
- enum Connection_Search_Type
- {
- External_Connections,
- Internal_Connections
- };
-
/// Define the type which contains a list of DnC artifacts.
/// @@ Assumption: Each NodeApplicationManager create only one
/// NodeApplication when the startLaunch() operation is invoked,
@@ -79,14 +62,12 @@ namespace CIAO
::Deployment::DeploymentPlan_var child_plan_;
::Deployment::NodeApplicationManager_var node_application_manager_;
::Deployment::NodeApplication_var node_application_;
- ::Deployment::DeploymentPlan_var old_child_plan_;
} Chained_Artifacts;
/// Constructor
DomainApplicationManager_Impl (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
Deployment::TargetManager_ptr manager,
- Execution_Manager::Execution_Manager_Impl * em,
const Deployment::DeploymentPlan &plan,
const char * deployment_file)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -98,8 +79,6 @@ namespace CIAO
*============================================================*/
/**
* Initialize the DomainApplicationManager.
- * @para em A pointer to the ExecutionManager servant C++ object.
- *
* (1) Set the total number of child plans.
* (2) Set the list of NodeManager names, which is an array of strings.
* The <node_manager_names> is a pointer to an array of ACE_CString
@@ -136,16 +115,6 @@ namespace CIAO
*============================================================*/
/**
- * Fetch the NodeApplication object reference based on the NodeManager name.
- */
- virtual Deployment::NodeApplication_ptr get_node_app (
- const char * node_name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::NoSuchName));
-
- /**
* Executes the application, but does not start it yet. Users can
* optionally provide launch-time configuration properties to
* override properties that are part of the plan. Raises the
@@ -171,25 +140,12 @@ namespace CIAO
* is started as well. Raises the StartError exception if
* launching or starting the application fails.
*/
- virtual void finishLaunch (CORBA::Boolean start,
- CORBA::Boolean is_ReDAC
+ virtual void finishLaunch (::CORBA::Boolean start
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
::Deployment::StartError));
/**
- * The last step in launching an application in the
- * domain-level. We establish connection bindings
- * for external/shared components of this deployment plan
- * components.
- * Internally, this operation will invoke some operations
- * on ExecutionManager to finish up this task.
- */
- virtual void post_finishLaunch (void)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError));
-
- /**
* Starts the application. Raises the StartError exception if
* starting the application fails.
*/
@@ -224,20 +180,6 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StopError));
- // The input parameter is a *new_plan* which has the
- // same UUID of the existing running plan.
- virtual void
- perform_redeployment (
- const Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::PlanError,
- Deployment::InstallationFailure,
- Deployment::UnknownImplId,
- Deployment::ImplEntryPointNotFound,
- Deployment::InvalidConnection,
- ::Components::RemoveFailure));
-
protected:
/// Destructor
virtual ~DomainApplicationManager_Impl (void);
@@ -260,47 +202,6 @@ namespace CIAO
*/
int split_plan (void);
- /**
- * Construct <Component_Binding_Info> struct for the component instance.
- *
- * @para name component instance name
- * @para child_uuid child plan uuid string
- */
- CIAO::Component_Binding_Info *
- populate_binding_info (const ACE_CString& name,
- const ACE_CString& child_uuid);
-
- /**
- * Construct <Component_Binding_Info> struct for the component instance.
- * Fetch the plan_uuid info from the internally cached shared component
- * list.
- *
- * @para name component instance name
- */
- CIAO::Component_Binding_Info *
- populate_binding_info (const ACE_CString& name);
-
- /**
- * Contact each NodeManager to get shared compnents information
- * and then update its internal cache.
- */
- void synchronize_shared_components_with_node_managers (void);
-
- /**
- * A helper function to add a list of shared components into
- * the cached shared component list.
- *
- * @para shared A list of shared components to be added.
- */
- void add_shared_components (const Deployment::ComponentPlans & shared);
-
- /**
- * A private function to check whether a component is in the shared
- * component list.
- *
- * @para name The name of a component instance.
- */
- bool is_shared_component (const char * name);
/**
* Cache the incoming connections, which is a sequence of Connections,
@@ -312,97 +213,21 @@ namespace CIAO
* Given a child deployment plan, find the <Connections> sequence
* of the "providedReference" for the component instances in the
* child deployment plan as Receiver side.
- * By default, we search in the new plan.
- *
- * If <is_getting_all_connections> is false, then we only
- * search for "new connections" (valid for ReDaC case only).
- * Otherwise, we will search for both new connections and those
- * already existing connections.
*/
Deployment::Connections *
- get_outgoing_connections (const Deployment::DeploymentPlan &plan,
- bool is_getting_all_connections = true,
- bool is_search_new_plan = true,
- Connection_Search_Type t = Internal_Connections
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
+ get_outgoing_connections (const Deployment::DeploymentPlan &plan
+ ACE_ENV_ARG_DECL);
/// This is a helper function to find the connection for a component.
bool
get_outgoing_connections_i (const char * instname,
- Deployment::Connections & retv,
- bool is_ReDAC,
- bool is_search_new_plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((Deployment::StartError));
-
- bool
- populate_connection_for_binding (
- const char * instname,
- const Deployment::PlanConnectionDescription & binding,
- const Deployment::DeploymentPlan & plan,
- Deployment::Connections & retv)
- ACE_THROW_SPEC ((Deployment::StartError));
-
- bool
- handle_es_connection (
- const char * instname,
- const Deployment::PlanConnectionDescription & binding,
- const Deployment::DeploymentPlan & plan,
- Deployment::Connections & retv)
- ACE_THROW_SPEC ((Deployment::StartError));
-
- bool
- handle_direct_connection (
- const char * instname,
- const Deployment::PlanConnectionDescription & binding,
- const Deployment::DeploymentPlan & plan,
- Deployment::Connections & retv)
+ Deployment::Connections & retv
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((Deployment::StartError));
/// Dump connections, a static method
void dump_connections (const ::Deployment::Connections & connections);
- /// Check whether a connection already exists in the cached old plan
- bool already_exists (const Deployment::PlanConnectionDescription & conn);
-
- /// Remove those appeared in <right> from the <left>
- Deployment::Connections *
- subtract_connections (const Deployment::Connections & left,
- const Deployment::Connections & right);
-
- void
- purge_connections (Deployment::Connections_var & connections,
- const char * inst);
-
- /**
- * The first step in finish_launching an application in the
- * domain-level. We install all the CIAO_Event_Service objects
- * as specified in the DeploymentPlan.
- * Internally, this operation will invoke an operation on each cached
- * NodeApplication object.
- */
- virtual void install_all_es (void)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError));
-
- /**
- * Add all CIAO_Event_Service objects into the cached map.
- */
- virtual void
- add_es_to_map (Deployment::ESInstallationInfos * es_infos,
- Deployment::CIAO_Event_Services * event_services)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError));
-
- /**
- * Get the actual event connection QoS properties based on the
- * deployment requirement. The deployment requirement only specifies
- * an identifier/reference to the EventServiceDeploymentDescriptions.
- */
- virtual const Deployment::Properties &
- get_connection_QoS_configuration (
- const Deployment::Requirement & requirement);
-
protected:
/// location of the Domainapplication
CORBA::String_var domainapp_path_;
@@ -413,14 +238,8 @@ namespace CIAO
/// Keep a pointer to the managing POA.
PortableServer::POA_var poa_;
- /// Pointer to the ExecutionManager_Impl "singleton" servant object
- /// We could do this because ExecutionManager and DomainApplicationManager
- /// are always collocated in the same process, so we don't have
- /// to pass CORBA object reference back and forth.
- Execution_Manager::Execution_Manager_Impl * execution_manager_;
-
- /// Cache a list of shared components
- Deployment::ComponentPlans_var shared_;
+ /// Cache a object reference to this servant.
+ /// Deployment::DomainApplicationManager_var objref_;
/// Cache the ior of the previous reference
CORBA::String_var ior_;
@@ -432,9 +251,6 @@ namespace CIAO
/// The plan will be initialized when init is called.
Deployment::DeploymentPlan plan_;
- /// Cached old deployment plan, i.e., before redeployment
- Deployment::DeploymentPlan old_plan_;
-
/// Cached child plans.
//Deployment::DeploymentPlan * child_plan_;
@@ -457,18 +273,6 @@ namespace CIAO
Chained_Artifacts_Table artifact_map_;
- /// Cached information of all the CIAO_Event_Service objects within
- /// the deployment plan
- /// Key: the string identifier of the CIAO_Event_Service
- /// Value: the object reference of the CIAO_Event_Service
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- CIAO::CIAO_Event_Service_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> Event_Service_Table;
-
- Event_Service_Table es_map_;
-
/// The deployment information data file.
const char * deployment_file_;
@@ -482,13 +286,6 @@ namespace CIAO
/// calling the startLaunch() method on the NodeApplicationManager object.
::Deployment::Connections_var all_connections_;
- /// This variable is used to control the execution path of some
- /// member function implementations. The reason is because we want
- /// to avoid unnecessary code duplicate. The default value is "false".
- bool is_redeployment_;
-
- /// Cache the CIAO_Event_Service deployment description
- CIAO::DAnCE::EventServiceDeploymentDescriptions_var esd_;
};
}
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.cpp b/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.cpp
index c3a87aec44f..10a85560237 100644
--- a/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.cpp
+++ b/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.cpp
@@ -15,12 +15,6 @@ namespace CIAO
{
}
- size_t
- DAM_Map::size (void)
- {
- return this->map_.current_size ();
- }
-
bool
DAM_Map::is_plan_available (const ACE_CString &str)
{
@@ -63,7 +57,7 @@ namespace CIAO
{
CIAO_TRACE("Execution_Manager::DAM_Map::bind_dam_reference");
int retval =
- this->map_.rebind (str,
+ this->map_.bind (str,
dam);
if (retval != 0)
@@ -77,7 +71,7 @@ namespace CIAO
DAM_Map::get_dams (ACE_ENV_SINGLE_ARG_DECL)
{
CIAO_TRACE("Execution_Manager::DAM_Map::get_dams");
- CORBA::ULong const sz =
+ CORBA::ULong sz =
this->map_.current_size ();
// Initialize the list of DomainApplication Managers
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.h b/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.h
index 1e6914db7f3..21d8dee5de9 100644
--- a/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.h
+++ b/TAO/CIAO/DAnCE/ExecutionManager/DAM_Map.h
@@ -13,16 +13,17 @@
#define CIAO_DAM_MAP_H
#include /**/ "ace/pre.h"
-#include "ciao/DomainApplicationManagerC.h"
+#include "ace/Null_Mutex.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Null_Mutex.h"
#include "ace/Hash_Map_Manager.h"
+#include "ciao/DeploymentC.h"
#include "ace/SString.h"
+
namespace CIAO
{
namespace Execution_Manager
@@ -52,8 +53,6 @@ namespace CIAO
bool unbind_dam (const ACE_CString &str);
- size_t size (void);
-
private:
typedef
ACE_Hash_Map_Manager_Ex < ACE_CString,
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.idl b/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.idl
new file mode 100644
index 00000000000..cdd47c24d1b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.idl
@@ -0,0 +1,26 @@
+// $Id$
+
+/**
+ * @file ExecutionManager.idl
+ *
+ * @brief Simple interface to control the ExecutionManager. This
+ * interface currently provides an additional method called shutdown
+ * to terminate the process cleanly.
+ *
+ */
+
+#include "Deployment.idl"
+
+module CIAO
+{
+ /**
+ * @brief CIAO Execution Manager Program
+ *
+ * This feature addition is added using inheritance mechanism currently
+ */
+ interface ExecutionManagerDaemon : Deployment::ExecutionManager
+ {
+ // Shutdown the daemon process.
+ oneway void shutdown ();
+ };
+};
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.mpc b/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.mpc
index 7e5ffea6540..0fdbba65698 100644
--- a/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.mpc
+++ b/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager.mpc
@@ -1,17 +1,37 @@
// -*- MPC -*-
// $Id$
-project(ExecutionManager): ciao_server_dnc, dance_extension_stub, ciao_domainapplicationmanager_dnc {
+project (ExecutionManager_stub): ciao_server_dnc {
+
+ sharedname = ExecutionManager_stub
+
+ idlflags += -Wb,stub_export_macro=ExecutionManager_stub_Export
+ idlflags += -Wb,stub_export_include=ExecutionManager_stub_export.h
+
+ dynamicflags = EXECUTIONMANAGER_STUB_BUILD_DLL
+
+ IDL_Files {
+ ExecutionManager.idl
+ }
+
+ Source_Files {
+ ExecutionManagerC.cpp
+ }
+}
+
+project(ExecutionManager): ciao_component_dnc, ciao_config_handlers {
+
exename = Execution_Manager
- after += ExecutionManager_stub
- libs += ExecutionManager_stub
+ after += DomainApplicationManager ExecutionManager_stub
+
+ libs += DomainApplicationManager ExecutionManager_stub
IDL_Files {
}
Source_Files {
- ../Interfaces/ExecutionManagerDaemonS.cpp
+ ExecutionManagerS.cpp
Execution_Manager.cpp
Execution_Manager_Impl.cpp
DAM_Map.cpp
diff --git a/TAO/CIAO/DAnCE/Interfaces/ExecutionManager_stub_export.h b/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager_stub_export.h
index f32c91c5e6e..f32c91c5e6e 100644
--- a/TAO/CIAO/DAnCE/Interfaces/ExecutionManager_stub_export.h
+++ b/TAO/CIAO/DAnCE/ExecutionManager/ExecutionManager_stub_export.h
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager.cpp b/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager.cpp
index e60fee07e27..f4850968e10 100644
--- a/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager.cpp
+++ b/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager.cpp
@@ -19,26 +19,24 @@ namespace CIAO
const char *ior_file_name_ = "executionManager.ior";
const char *init_file_name = "deployment.dat";
- static bool register_with_ns_ = false;
- static bool write_to_ior_ = false;
+ bool register_with_ns_ = 0;
bool
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:m:i:n");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:m:i:n");
int c;
while ((c = get_opts ()) != -1)
switch (c)
{
case 'o':
- write_to_ior_ = true;
ior_file_name_ = get_opts.opt_arg ();
break;
case 'i':
init_file_name = get_opts.opt_arg ();
break;
case 'n':
- register_with_ns_ = true;
+ register_with_ns_ = 1;
break;
case '?': // display help for use of the server.
default:
@@ -96,11 +94,12 @@ namespace CIAO
CosNaming::NamingContext::_narrow (naming_context_object.in ());
// Initialize the Naming Sequence
- CosNaming::Name name (1);
- name.length (1);
+ CosNaming::Name name (2);
+ name.length (2);
// String dup required for MSVC6
- name[0].id = CORBA::string_dup ("ExecutionManager");
+ name[0].id = CORBA::string_dup ("CIAO");
+ name[1].id = CORBA::string_dup ("ExecutionManager");
// Register the servant with the Naming Service
naming_context->bind (name,
@@ -174,8 +173,7 @@ namespace CIAO
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
-
- if (write_to_ior_)
+ else
{
retval =
write_ior_file (orb.in (),
@@ -238,7 +236,7 @@ namespace CIAO
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
return CIAO::Execution_Manager::run_main (argc,
argv);
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.cpp b/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
index 119f5b3a4fa..ee9a8153fe9 100644
--- a/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
+++ b/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.cpp
@@ -51,7 +51,8 @@ namespace CIAO
if (this->map_.is_plan_available (plan.UUID.in ()))
return this->map_.fetch_dam_reference (plan.UUID.in ());
- // We are about to begin working on a new DeploymentPlan.
+ // We are about to begin working on a new
+ // DeploymentPlan.
// Create a DAM servant, which will be populated
// to be sent back to the PlanLauncher.
//
@@ -66,7 +67,6 @@ namespace CIAO
this->orb_.in (),
this->poa_.in (),
::Deployment::TargetManager::_nil (),
- this, // a plain C++ pointer
plan,
this->init_file_.c_str ()),
CORBA::NO_MEMORY ());
@@ -97,6 +97,10 @@ namespace CIAO
//
ACE_CHECK_RETURN (::Deployment::DomainApplicationManager::_nil ());
+ /// @@ Can be removed -- Bala
+ /// Gan, have you addressed this comment by Bala?
+ /// Do we still need this code lying around?
+ ///
dam_servant->set_uuid (plan.UUID.in ());
Deployment::DomainApplicationManager_var dam =
@@ -123,14 +127,6 @@ namespace CIAO
return this->map_.get_dams (ACE_ENV_SINGLE_ARG_PARAMETER);
}
- Deployment::DomainApplicationManager_ptr
- Execution_Manager_Impl::getManager (const char * plan_uuid
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException, Deployment::PlanNotExist))
- {
- return this->map_.fetch_dam_reference (plan_uuid);
- }
-
void
Execution_Manager_Impl::destroyManager (
Deployment::DomainApplicationManager_ptr manager
@@ -145,8 +141,6 @@ namespace CIAO
manager->getPlan (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- // What if we still have components running within this plan?
- //
(void) this->map_.unbind_dam (plan->UUID.in ());
// Where does the POA deactivate happen?
@@ -175,70 +169,6 @@ namespace CIAO
ACE_CHECK;
}
-
- void
- Execution_Manager_Impl::destroyManagerByPlan (
- const char * plan_uuid
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StopError))
- {
- CIAO_TRACE("Execution_Manager::Execution_Manager_Impl::destroyManagerByPlan");
- ACE_TRY
- {
- // Get DomainApplicationManager first
- if (! this->map_.is_plan_available (plan_uuid))
- {
- ACE_DEBUG ((LM_ERROR,
- "Execution_Manager_Impl::destroyManagerByPlan - "
- "Invalid plan uuid [%s]\n", plan_uuid));
- ACE_THROW (Deployment::StopError ());
- }
-
- Deployment::DomainApplicationManager_var
- dam = this->map_.fetch_dam_reference (plan_uuid);
-
- // Get the plan
- Deployment::DeploymentPlan_var plan = dam->getPlan ();
-
- // If any component is still running, then we return.
- CORBA::ULong inst_lenth = plan->instance.length ();
- for (CORBA::ULong i = 0; i < inst_lenth; ++i)
- {
- if (this->is_component_running (plan->instance[i].name.in (),
- plan_uuid))
- return;
- }
-
- (void) this->map_.unbind_dam (plan->UUID.in ());
-
- // Where does the POA deactivate happen?
- //
- dam->destroyManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
-#if 0
- PortableServer::ObjectId_var oid =
- this->poa_->reference_to_id (manager
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->poa_->deactivate_object (oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#endif /*if 0*/
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Execution_Manager_Impl::destroyManager\t\n");
- ACE_THROW (Deployment::StopError ());
- }
- ACE_ENDTRY;
- ACE_CHECK;
- }
-
-
void
Execution_Manager_Impl::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -248,201 +178,5 @@ namespace CIAO
this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
- void
- Execution_Manager_Impl::perform_redeployment (
- const Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::PlanError,
- ::Deployment::InstallationFailure,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InvalidConnection,
- ::Deployment::InvalidProperty,
- ::Components::RemoveFailure))
- {
- CIAO_TRACE ("CIAO::Execution_Manager_Impl::perform_redeployment");
-
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) Dynamic Redeployment: "
- "invoked CIAO::Execution_Manager_Impl::perform_redeployment \n"));
-
- Deployment::DomainApplicationManager_var dam;
-
- if (this->map_.is_plan_available (plan.UUID.in ()))
- dam = this->map_.fetch_dam_reference (plan.UUID.in ());
- else
- {
- ACE_DEBUG ((LM_ERROR,
- "DAnCE (%P|%t) ExecutionManager_Impl.cpp -"
- "CIAO::Execution_Manager_Impl::perform_redeployment -"
- "Invalid plan uuid: %s\n", plan.UUID.in ()));
- ACE_THROW (Deployment::PlanError (
- "Execution_Manager_Impl::perform_redeployment",
- "Invalid plan uuid specified."));
- }
-
- ACE_TRY
- {
- // Call perform_redeployment() on the DAM, which will do the
- // actual redeployment and reconfiguration on the dommain level.
- dam->perform_redeployment (plan);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Execution_Manager_Impl::perform_redeployment\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK;
- }
-
- Deployment::DeploymentPlan *
- Execution_Manager_Impl::getPlan (const char * plan_uuid
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException))
- {
- Deployment::DomainApplicationManager_var dam;
-
- if (this->map_.is_plan_available (plan_uuid))
- dam = this->map_.fetch_dam_reference (plan_uuid);
- else
- {
- ACE_DEBUG ((LM_ERROR,
- "DAnCE (%P|%t) ExecutionManager_Impl.cpp -"
- "CIAO::Execution_Manager_Impl::getPlan -"
- "Invalid plan uuid: %s\n", plan_uuid));
- ACE_THROW (::CORBA::BAD_PARAM ());
- }
-
- ACE_TRY
- {
- return dam->getPlan ();
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Execution_Manager_Impl::getPlan\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK;
- }
-
- void
- Execution_Manager_Impl::finalize_global_binding (
- const Component_Binding_Info & binding,
- CORBA::Boolean add_or_remove)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::InvalidConnection))
- {
- ACE_DEBUG ((LM_ERROR,
- "Execution_Manage::finalizing global bindings.\n"));
-
- // Find the NodeApplication hosting the component, and then call
- // <finishLaunch> on it
- ACE_TRY
- {
- Deployment::NodeApplication_var
- node_app = this->find_node_application (binding);
-
- if (CORBA::is_nil (node_app.in ()))
- {
- ACE_DEBUG ((LM_ERROR,
- "Execution_Manager_Impl::finalize_global_binding - "
- "nil NodeApplication object reference.\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- node_app->finishLaunch (binding.providedReference_.in (),
- true, // start
- add_or_remove);
-
- // Update the internal shared component list
- if (add_or_remove)
- this->add_shared_component (binding);
- else
- this->remove_shared_component (binding);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Execution_Manager_Impl::finalize_global_binding\t\n");
- ACE_THROW (Deployment::InvalidConnection ());
- }
- ACE_ENDTRY;
- }
-
- Deployment::NodeApplication_ptr
- Execution_Manager_Impl::
- find_node_application (const Component_Binding_Info & binding)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::InvalidConnection))
- {
- // Find the DAM based on plan_UUID
- Deployment::DomainApplicationManager_var dam;
-
- if (this->map_.is_plan_available (binding.plan_uuid_))
- dam = this->map_.fetch_dam_reference (binding.plan_uuid_);
- else
- {
- ACE_DEBUG ((LM_ERROR,
- "DAnCE (%P|%t) ExecutionManager_Impl.cpp -"
- "CIAO::Execution_Manager_Impl::find_node_application -"
- "Invalid plan uuid: %s\n", binding.plan_uuid_.c_str ()));
- ACE_THROW (::CORBA::BAD_PARAM ());
- }
-
- // Find the NA based on the NodeName field of the binding
- // This is a CORBA call on the DAM
- Deployment::NodeApplication_var
- node_app = dam->get_node_app (binding.node_.c_str ());
-
- if (CORBA::is_nil (node_app.in ()))
- {
- ACE_DEBUG ((LM_ERROR,
- "DAnCE (%P|%t) ExecutionManager_Impl.cpp -"
- "CIAO::Execution_Manager_Impl::find_node_application -"
- "Invalid node name: %s!\n", binding.node_.c_str ()));
- ACE_THROW (::CORBA::BAD_PARAM ());
- }
-
- return node_app._retn ();
- }
-
- void
- Execution_Manager_Impl::
- add_shared_component (const Component_Binding_Info & comp)
- {
- this->shared_components_.insert (comp);
- }
-
- void
- Execution_Manager_Impl::
- remove_shared_component (const Component_Binding_Info & comp)
- {
- this->shared_components_.remove (comp);
- }
-
- bool
- Execution_Manager_Impl::
- is_component_running (const char * name, const char * plan_uuid)
- {
- for (ACE_Unbounded_Set<Component_Binding_Info>::iterator
- iter = this->shared_components_.begin ();
- iter != this->shared_components_.end ();
- ++iter)
- {
- if (ACE_OS::strcmp ((*iter).name_.c_str (), name) == 0 &&
- ACE_OS::strcmp ((*iter).plan_uuid_.c_str (), plan_uuid) == 0)
- return true;
- }
-
- return false;
- }
}
}
diff --git a/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.h b/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.h
index ac25bce9a1c..8d596c03835 100644
--- a/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.h
+++ b/TAO/CIAO/DAnCE/ExecutionManager/Execution_Manager_Impl.h
@@ -16,7 +16,7 @@
#define CIAO_EXECUTION_MANAGER_IMPL_H
#include /**/ "ace/pre.h"
-#include "Interfaces/ExecutionManagerDaemonS.h"
+#include "ExecutionManagerS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,7 +24,11 @@
#include "DAM_Map.h"
#include "ace/SString.h"
-#include "ciao/Deployment_common.h"
+
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
namespace CIAO
{
@@ -43,7 +47,6 @@ namespace CIAO
: public virtual POA_CIAO::ExecutionManagerDaemon
{
public:
- /// Constructor
Execution_Manager_Impl (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
const char * init_file);
@@ -53,7 +56,7 @@ namespace CIAO
virtual Deployment::DomainApplicationManager_ptr
preparePlan (const Deployment::DeploymentPlan & plan,
CORBA::Boolean commitResources
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::PlanError,
@@ -63,91 +66,18 @@ namespace CIAO
getManagers (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- // Below method is CIAO specific extension
- virtual Deployment::DomainApplicationManager_ptr
- getManager (const char * plan_uuid
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException, Deployment::PlanNotExist));
-
virtual void
destroyManager (Deployment::DomainApplicationManager_ptr manager
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StopError));
- // Below method is CIAO specific extension, please see the IDL
- // definition for more details.
- virtual void
- destroyManagerByPlan (const char * plan_uuid
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::StopError));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- // The input parameter is a *new_plan* which has the
- // same UUID of the existing running plan.
- virtual void
- perform_redeployment (
- const Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::PlanError,
- ::Deployment::InstallationFailure,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InvalidConnection,
- ::Deployment::InvalidProperty,
- ::Components::RemoveFailure));
-
- virtual Deployment::DeploymentPlan * getPlan (
- const char * plan_uuid
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- /// ****************** C++ Methods *************************
-
- /// If input <add_connection> is true, then it will add new
- /// connections which are across different assemblies. Otherwise
- /// it will remove the specified connections of this component.
- ///
- /// @@GD: Later we can add another method which could accept
- /// a list of bindings and do the batch job.
- virtual void finalize_global_binding (
- const Component_Binding_Info & binding,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::InvalidConnection));
-
- /// Add shared component information.
- /// This call will be made by DomainApplicationManager.
- virtual void
- add_shared_component (const Component_Binding_Info & binding);
-
- /// Remove shared component
- virtual void
- remove_shared_component (const Component_Binding_Info & binding);
-
- /// If the input component <name> was found in the internal
- /// cached shared component list, and the plan_uuid also matches,
- /// then this member function returns <true>, otherwise it
- /// returns <false>.
- virtual bool
- is_component_running (const char * name, const char * plan_uuid);
-
- protected:
- /// Return the NodeApplication hosting the given biding
- virtual Deployment::NodeApplication_ptr
- find_node_application (const Component_Binding_Info & binding)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::InvalidConnection));
-
protected:
/// Destructor.
- virtual ~Execution_Manager_Impl (void);
+ ~Execution_Manager_Impl (void);
/// Cached ORB pointer
CORBA::ORB_var orb_;
@@ -155,17 +85,17 @@ namespace CIAO
/// Cached POA pointer
PortableServer::POA_var poa_;
- /// Path to the initialization file
+ // Path to the initialization file
const ACE_CString init_file_;
- /// A map which caches the DomainApplicationManager object ref.
DAM_Map map_;
-
- /// A set of shared components and their location info.
- ACE_Unbounded_Set<Component_Binding_Info> shared_components_;
};
}
}
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
+
#include /**/ "ace/post.h"
#endif /* EXECUTIONMANAGER_IMPL_H */
diff --git a/TAO/CIAO/DAnCE/Interfaces/ExecutionManagerDaemon.idl b/TAO/CIAO/DAnCE/Interfaces/ExecutionManagerDaemon.idl
deleted file mode 100644
index 121901c4b21..00000000000
--- a/TAO/CIAO/DAnCE/Interfaces/ExecutionManagerDaemon.idl
+++ /dev/null
@@ -1,25 +0,0 @@
-// $Id$
-
-/**
- * @file ExecutionManagerDaemon.idl
- *
- * @brief Simple interface to control the ExecutionManager. This
- * interface currently provides an additional method called shutdown
- * to terminate the process cleanly.
- */
-
-#include "ciao/ExecutionManager.idl"
-
-module CIAO
-{
- /**
- * @brief CIAO Execution Manager Program
- *
- * This feature addition is added using inheritance mechanism currently
- */
- interface ExecutionManagerDaemon : Deployment::ExecutionManager
- {
- // Shutdown the daemon process.
- oneway void shutdown ();
- };
-};
diff --git a/TAO/CIAO/DAnCE/Interfaces/Interfaces.mpc b/TAO/CIAO/DAnCE/Interfaces/Interfaces.mpc
deleted file mode 100644
index 00f5b5192d9..00000000000
--- a/TAO/CIAO/DAnCE/Interfaces/Interfaces.mpc
+++ /dev/null
@@ -1,39 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project (ExecutionManager_stub): ciao_deployment_stub {
-
- sharedname = ExecutionManager_stub
-
- idlflags += -Wb,stub_export_macro=ExecutionManager_stub_Export
- idlflags += -Wb,stub_export_include=ExecutionManager_stub_export.h
-
- dynamicflags = EXECUTIONMANAGER_STUB_BUILD_DLL
-
- IDL_Files {
- ExecutionManagerDaemon.idl
- }
-
- Source_Files {
- ExecutionManagerDaemonC.cpp
- }
-}
-
-project (NodeManager_stub): ciao_deployment_stub {
- sharedname = NodeManager_stub
-
- idlflags += -Wb,stub_export_macro=NodeManager_stub_Export
- idlflags += -Wb,stub_export_include=NodeManager_stub_export.h
- idlflags += -Wb,skel_export_macro=NodeManager_svnt_Export
- idlflags += -Wb,skel_export_include=NodeManager_svnt_export.h
-
- dynamicflags = NODEMANAGER_STUB_BUILD_DLL
-
- IDL_Files {
- NodeManagerDaemon.idl
- }
-
- Source_Files {
- NodeManagerDaemonC.cpp
- }
-}
diff --git a/TAO/CIAO/DAnCE/Interfaces/NodeManagerDaemon.idl b/TAO/CIAO/DAnCE/Interfaces/NodeManagerDaemon.idl
deleted file mode 100644
index 2b433a16100..00000000000
--- a/TAO/CIAO/DAnCE/Interfaces/NodeManagerDaemon.idl
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-
-/**
- * @file NodeManagerDaemon.idl
- *
- * @brief Controling interface for managing and controling CIAO daemon.
- */
-
-#include "ciao/NodeManager.idl"
-
-module CIAO
-{
- /**
- * @brief CIAO daemon process control program.
- *
- * @@The Inheritage might cause binary code bloating but
- * it's an easy way of combining features. In the future we could
- * move this definition into Deployment.idl.
- */
- interface NodeManagerDaemon : Deployment::NodeManager
- {
- // Canonical name of this daemon
- readonly attribute string name;
-
- // Shutdown the daemon process.
- oneway void shutdown ();
- };
-};
diff --git a/TAO/CIAO/DAnCE/Interfaces/NodeManager_svnt_export.h b/TAO/CIAO/DAnCE/Interfaces/NodeManager_svnt_export.h
deleted file mode 100644
index 199168ef44d..00000000000
--- a/TAO/CIAO/DAnCE/Interfaces/NodeManager_svnt_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl NodeManager_svnt
-// ------------------------------
-#ifndef NODEMANAGER_SVNT_EXPORT_H
-#define NODEMANAGER_SVNT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (NODEMANAGER_SVNT_HAS_DLL)
-# define NODEMANAGER_SVNT_HAS_DLL 1
-#endif /* ! NODEMANAGER_SVNT_HAS_DLL */
-
-#if defined (NODEMANAGER_SVNT_HAS_DLL) && (NODEMANAGER_SVNT_HAS_DLL == 1)
-# if defined (NODEMANAGER_SVNT_BUILD_DLL)
-# define NodeManager_svnt_Export ACE_Proper_Export_Flag
-# define NODEMANAGER_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define NODEMANAGER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* NODEMANAGER_SVNT_BUILD_DLL */
-# define NodeManager_svnt_Export ACE_Proper_Import_Flag
-# define NODEMANAGER_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define NODEMANAGER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* NODEMANAGER_SVNT_BUILD_DLL */
-#else /* NODEMANAGER_SVNT_HAS_DLL == 1 */
-# define NodeManager_svnt_Export
-# define NODEMANAGER_SVNT_SINGLETON_DECLARATION(T)
-# define NODEMANAGER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* NODEMANAGER_SVNT_HAS_DLL == 1 */
-
-// Set NODEMANAGER_SVNT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (NODEMANAGER_SVNT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define NODEMANAGER_SVNT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define NODEMANAGER_SVNT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !NODEMANAGER_SVNT_NTRACE */
-
-#if (NODEMANAGER_SVNT_NTRACE == 1)
-# define NODEMANAGER_SVNT_TRACE(X)
-#else /* (NODEMANAGER_SVNT_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define NODEMANAGER_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (NODEMANAGER_SVNT_NTRACE == 1) */
-
-#endif /* NODEMANAGER_SVNT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/Interfaces/README b/TAO/CIAO/DAnCE/Interfaces/README
deleted file mode 100644
index 5553fdde229..00000000000
--- a/TAO/CIAO/DAnCE/Interfaces/README
+++ /dev/null
@@ -1,2 +0,0 @@
-To resolve the MPC issue of directory dependency, we have to put some IDL
-files into a separate directory. This directory servers for this purpose. \ No newline at end of file
diff --git a/TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.cpp b/TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.cpp
deleted file mode 100644
index dd88e40e95e..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-// $Id$
-
-#include "Configurator_Factory.h"
-#include "NoOp_Configurator.h"
-#include "ace/Null_Mutex.h"
-#include "ciao/CIAO_common.h"
-#include "ace/Arg_Shifter.h"
-
-
-int
-CIAO::NodeApplication_Options::parse_args (int &argc, char *argv[])
-{
- // ACE_Get_Opt get_opts (argc, argv, "nrk:o:");
- ACE_Arg_Shifter shifter (argc, argv);
-
- while (shifter.is_anything_left ()) {
- const char *parm = 0;
-
- if (shifter.cur_arg_strncasecmp ("-n") == 0) // Use callback.
- {
- this->use_callback_ = 0;
- shifter.consume_arg ();
- }
- else if (shifter.cur_arg_strncasecmp ("-r") == 0)
- {
- this->rt_support_ = 1;
- shifter.consume_arg ();
- }
- else if (shifter.cur_arg_strncasecmp ("-o") == 0)
- {
- // This double checking is necessary to avoid the Arg_Shifter from
- // mistaking any -ORBxxx flag as -o flag.
- if ((parm = shifter.get_the_parameter ("-o")) !=0)
- {
- this->ior_output_filename_ = parm;
- }
- shifter.consume_arg ();
- }
- else if ((parm = shifter.get_the_parameter ("-k")) !=0)
- {
- this->callback_ior_ = parm;
- shifter.consume_arg ();
- }
- else if (shifter.cur_arg_strncasecmp ("-h") == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s\n"
- "-n Do not use Callback (for testing)\n"
- "-o <ior_output_file>\n"
- "-k <NodeApplicationManager_callback_ior>\n"
- "-r Request RT support\n"
- "-h Usage help"
- "\n",
- argv [0]),
- -1);
- shifter.consume_arg ();
- }
- else
- shifter.ignore_arg ();
-
- }
-
- if (this->use_callback_ && this->callback_ior_.length() == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Callback IOR to NodeApplicationManager is required.\n"),
- -1);
-
- return 0;
-}
-
-CIAO::NodeApp_Configurator *
-CIAO::NodeApplication_Options::create_nodeapp_configurator (void)
-{
- typedef CIAO::NodeApp_Configurator * (*intelligent_designer)(void);
-
- CIAO::NodeApp_Configurator* ptr = 0;
-
- if (this->rt_support_)
- {
- int retval = this->config_dll_.open
- (ACE_DLL_PREFIX ACE_TEXT("CIAO_RTNA_Configurator"),
- ACE_DEFAULT_SHLIB_MODE, 0);
-
- if (retval != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "dll.open"),
- 0);
- intelligent_designer config_id; // "id" is for intelligent-designer
-
- config_id = (intelligent_designer) this->config_dll_.symbol (ACE_TEXT("create_nodeapp_configurator"));
-
- if (config_id == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p",
- "dll.symbol"),
- 0);
- ptr = config_id ();
- if (ptr == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Error creating RTNodeApp_Configurator\n"),
- 0);
- }
- else
- ACE_NEW_RETURN (ptr,
- CIAO::NoOp_Configurator (),
- 0);
-
- return ptr;
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.h b/TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.h
deleted file mode 100644
index e3302eb9182..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/Configurator_Factory.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Configurator_Factory.h
- *
- * $Id$
- *
- * Configurator Facotry contains the factory method for creating concret
- * NodeApp_Configurator object.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-
-#ifndef CIAO_CONFIGURATOR_FACTORY_H
-#define CIAO_CONFIGURATOR_FACTORY_H
-#include /**/ "ace/pre.h"
-
-#include "tao/ORB_Core.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/ORB.h"
-#include "ace/Task.h"
-#include "ace/SString.h"
-#include "ace/Auto_Ptr.h"
-#include "ace/DLL.h"
-#include "NodeApp_Configurator.h"
-
-namespace CIAO
-{
-
-
- /**
- * @class NodeApplication_Options
- *
- * @brief An class for managing and extracting command line options
- * for NodeApplication.
- *
- * @note We currently support loading one single external module for
- * RT support. Perhaps how this should really be done is to allow
- * the NodeApplication_Core to load up a list of external modules
- * (in DLLs or otherwise) and call the corresponding init methods in
- * sequence. This way, we open up the component server so system
- * developers can plug in their own system configuration needs into
- * the whole system.
- */
- class NodeApplication_Options
- {
- public:
- // default ctor.
- NodeApplication_Options () : use_callback_ (1), rt_support_ (0) {}
-
- // extracting commandline arguments
- int parse_args (int &argc, char *argv[]);
-
- NodeApp_Configurator *create_nodeapp_configurator (void);
-
- int use_callback () {return this->use_callback_; }
-
- int rt_support () {return this->rt_support_; }
-
- int write_ior_file ()
- { return (this->ior_output_filename_.length () != 0); }
-
- const char *ior_output_filename ()
- { return this->ior_output_filename_.c_str (); }
-
- const char *callback_ior ()
- { return this->callback_ior_.c_str (); }
-
- private:
- // The name of the file to write stringified IOR to.
- ACE_CString ior_output_filename_;
-
- // Stringified IOR of a CIAO's callback object.
- ACE_CString callback_ior_;
-
- // CIAO ComponentServer uses the callback object to pass it's
- // own object reference back to NodeApplicationManager.
- int use_callback_;
-
- // If we need to support RT-CORBA. Currently, this is
- // mandatory, but we can probably allow some sort of
- // "best-effort" RT support. I.e., if the platform/environment
- // doesn't support RT, then we will still deploy the NodeApp but
- // ignore the RT spec. Perhaps something in the future.
- int rt_support_;
-
- // For managing dynamically loaded configurator library
- ACE_DLL config_dll_;
- };
-
-}
-
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_CONFIGURATOR_FACTORY_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.cpp b/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.cpp
deleted file mode 100644
index 3c2858f541e..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.cpp
+++ /dev/null
@@ -1,663 +0,0 @@
-// $Id$
-#include "Container_Impl.h"
-#include "ciao/CCM_ComponentC.h" // for calling StandardConfigurator interface
-
-#include "orbsvcs/CosNamingC.h"
-
-#if !defined (__ACE_INLINE__)
-# include "Container_Impl.inl"
-#endif /* __ACE_INLINE__ */
-
-CIAO::Container_Impl::~Container_Impl ()
-{
- // @@ remove all components and home?
- delete this->container_;
-}
-
-PortableServer::POA_ptr
-CIAO::Container_Impl::_default_POA (void)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
- ///////////////////////////////////////////////////////////////
-
-CORBA::Long
-CIAO::Container_Impl::init (const CORBA::PolicyList *policies
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // @@ Initialize container and create the internal container
- // implementation that actually interacts with installed
- // homes/components.
-
- // @@ We will need a container factory here later on when we support
- // more kinds of container implementations.
-
- // @@Jai, what is the condition to create an upgradeable container?
- // Where is it getting created and how? Need to address that.
-
- if (this->static_entrypts_maps_ == 0)
- {
- ACE_NEW_THROW_EX (this->container_,
- CIAO::Session_Container (this->orb_.in (), this),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (-1);
- }
- else
- {
- ACE_NEW_THROW_EX (this->container_,
- CIAO::Session_Container (this->orb_.in (), this, 1,
- this->static_entrypts_maps_),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (-1);
- }
-
- return this->container_->init (0,
- policies
- ACE_ENV_ARG_PARAMETER);
-}
-
-
-Deployment::ComponentInfos *
-CIAO::Container_Impl::install (
- const ::Deployment::ContainerImplementationInfo & container_impl_info
- ACE_ENV_ARG_DECL
- )
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InstallationFailure,
- ::Components::InvalidConfiguration))
-{
- Deployment::ComponentInfos_var retv;
- ACE_TRY
- {
- ACE_NEW_THROW_EX (retv,
- Deployment::ComponentInfos,
- CORBA::NO_MEMORY ());
- ACE_TRY_CHECK;
-
- // Get the ComponentImplementationInfos from the
- // ContainerImplementationInfo
- // to avoid too long syntax representation
- const ::Deployment::ComponentImplementationInfos impl_infos =
- container_impl_info.impl_infos;
-
- const CORBA::ULong len = impl_infos.length ();
- retv->length (len);
-
- for (CORBA::ULong i = 0; i < len; ++i)
- {
- // Install home
- Components::CCMHome_var home =
- this->install_home (impl_infos[i]
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Components::KeylessCCMHome_var kh =
- Components::KeylessCCMHome::_narrow (home.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (kh.in ()))
- ACE_TRY_THROW (Deployment::InstallationFailure ());
-
- // Create component from home
- Components::CCMObject_var comp =
- kh->create_component (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (comp.in ()))
- ACE_TRY_THROW (Deployment::InstallationFailure ());
-
- if (this->component_map_.bind
- (impl_infos[i].component_instance_name.in (),
- Components::CCMObject::_duplicate (comp.in ())))
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::install -"
- "error in binding component "
- "instance name [%s] into the component map \n",
- impl_infos[i].component_instance_name.in ()));
- ACE_TRY_THROW (Deployment::InstallationFailure ());
- }
-
- // Set the return value.
- (*retv)[i].component_instance_name
- = impl_infos[i].component_instance_name.in ();
-
- (*retv)[i].component_ref =
- Components::CCMObject::_duplicate (comp.in ());
-
- // Deal with Component instance related Properties.
- // Now I am only concerning about the COMPOENTIOR and attribute
- // configuration initialization.
-
- // I need to map Properties to Components::ConfigValues
- ::Components::ConfigValues comp_attributes;
- comp_attributes.length (0);
-
- const CORBA::ULong clen = impl_infos[i].component_config.length ();
- for (CORBA::ULong prop_len = 0; prop_len < clen; ++prop_len)
- {
- // Set up the ComponentIOR attribute
- if (ACE_OS::strcmp
- (impl_infos[i].component_config[prop_len].name.in (),
- "ComponentIOR") == 0)
- {
- const char * path;
- impl_infos[i].component_config[prop_len].value >>= path;
-
- CORBA::String_var ior =
- this->orb_->object_to_string (comp.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CIAO::Utility::write_IOR (path, ior.in ()) != 0)
- {
- if (CIAO::debug_level () > 1)
- ACE_DEBUG ((LM_DEBUG, "Failed to write the IOR.\n"));
-
- ACE_TRY_THROW (CORBA::INTERNAL ());
- }
- }
-
- // Set up the naming service attribute
- if (ACE_OS::strcmp
- (impl_infos[i].component_config[prop_len].name.in (),
- "RegisterNaming") == 0)
- {
- const char * naming_context;
- impl_infos[i].
- component_config[prop_len].value >>= naming_context;
-
- // Register the component with the naming service
- ACE_DEBUG ((LM_DEBUG,
- "Register component with naming service.\n"));
- bool result =
- register_with_ns (
- naming_context,
- this->orb_.in (),
- Components::CCMObject::_duplicate (comp.in ())
- ACE_ENV_ARG_PARAMETER
- );
- ACE_TRY_CHECK;
-
- if (!result)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Failed to register with naming service.\n"));
- }
- else
- {
- if (this->naming_map_.bind
- (impl_infos[i].component_instance_name.in (),
- ACE_CString (naming_context)))
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::install -"
- "error in binding component "
- "instance name [%s] into the naming map \n",
- impl_infos[i].component_instance_name.in ()));
- ACE_TRY_THROW (Deployment::InstallationFailure ());
- }
- }
-
-
- }
-
- // Initialize attributes through StandardConfigurator interface
- // @@Todo: Currently I have to manually map
- // the Deployment::Properties to
- // Components::ConfigValues, we should use a
- // common data structure in
- // the future. - Gan
- CORBA::ULong cur_len = comp_attributes.length ();
- comp_attributes.length (cur_len + 1);
-
- Components::ConfigValue *item = new OBV_Components::ConfigValue ();
- item->name (impl_infos[i].component_config[prop_len].name.in ());
- CORBA::Any tmp = impl_infos[i].component_config[prop_len].value;
- item->value (tmp);
-
- comp_attributes[cur_len] = item;
- }
-
- if (comp_attributes.length () != 0)
- {
- //std_configurator.set_configuration
- ::Components::StandardConfigurator_var std_configurator =
- comp->get_standard_configurator ();
-
- std_configurator->set_configuration (comp_attributes);
- }
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Container_Impl::install\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (0);
-
- return retv._retn ();
-}
-
-::Deployment::Properties *
-CIAO::Container_Impl::properties (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ::Deployment::Properties *retval;
-
- ACE_NEW_THROW_EX (retval,
- ::Deployment::Properties,
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
- *retval = this->properties_;
-
- return retval;
-}
-
-::Deployment::NodeApplication_ptr
-CIAO::Container_Impl::get_node_application (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return ::Deployment::NodeApplication::_duplicate (this->nodeapp_.in ());
-}
-
-::Components::CCMHome_ptr
-CIAO::Container_Impl::install_home (
- const ::Deployment::ComponentImplementationInfo & impl_info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::UnknownImplId,
- Deployment::ImplEntryPointNotFound,
- Deployment::InstallationFailure,
- Components::InvalidConfiguration))
-{
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::install_home -"
- "installing home for component "
- "instance [%s] \n",
- impl_info.component_instance_name.in ()));
- }
-
- Components::CCMHome_var newhome =
- this->container_->ciao_install_home (impl_info.executor_dll.in (),
- impl_info.executor_entrypt.in (),
- impl_info.servant_dll.in (),
- impl_info.servant_entrypt.in (),
- impl_info.component_instance_name.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Components::CCMHome::_nil ());
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::install_home -"
- "success in installing home for component "
- "instance [%s] \n",
- impl_info.component_instance_name.in ()));
- }
-
- // We don't have to do _narrow since the generated code makes sure of
- // the object type for us
- // Bind the home in the map.
- if (this->home_map_.bind (impl_info.component_instance_name.in (),
- Components::CCMHome::_duplicate (newhome.in ())))
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::install_home -"
- "error in binding home for component "
- "instance [%s] \n",
- impl_info.component_instance_name.in ()));
- ACE_THROW_RETURN (Deployment::InstallationFailure (),
- Components::CCMHome::_nil ());
- }
-
- //Note: If the return value will be discarded, it must be kept in a var or
- // release () will have to be called explicitly.
- return newhome._retn ();
-}
-
-
-void
-CIAO::Container_Impl::remove_home (const char * comp_ins_name
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure))
-{
- Components::CCMHome_ptr home;
- ACE_CString str (comp_ins_name);
-
- if (this->home_map_.find (str, home) != 0)
- ACE_THROW (CORBA::BAD_PARAM ());
-
- // @@TODO We should remove all components created by this home as well.
- // This is not implemented yet.
-
- this->container_->ciao_uninstall_home (home
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // If the previous calls failed, what should we do here??
- CORBA::release (home);
-
- // @@ Still need to remove the home if the previous operation fails?
- if (this->home_map_.unbind (str) == -1)
- ACE_THROW (::Components::RemoveFailure ());
-}
-
-::Components::CCMHomes *
-CIAO::Container_Impl::get_homes (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- Components::CCMHomes * tmp;
- ACE_NEW_THROW_EX (tmp,
- Components::CCMHomes (),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- Components::CCMHomes_var retval (tmp);
-
- const CORBA::ULong len = this->home_map_.current_size ();
- retval->length (len);
-
-
- CORBA::ULong i = 0;
- const Home_Iterator end = this->home_map_.end ();
- for (Home_Iterator iter (this->home_map_.begin ());
- iter != end;
- ++iter, ++i)
- {
- retval[i] = Components::CCMHome::_duplicate ( (*iter).int_id_);
- }
-
- return retval._retn ();
-}
-
-// Remove all homes and components
-void
-CIAO::Container_Impl::remove (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure))
-{
- // Remove all components first.
- this->remove_components (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Even if above operation failed we should still remove homes.
- const Home_Iterator end = this->home_map_.end ();
- for (Home_Iterator iter (this->home_map_.begin ());
- iter != end;
- ++iter)
- {
- this->container_->ciao_uninstall_home ( (*iter).int_id_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::release ( (*iter).int_id_);
- }
-
- this->home_map_.unbind_all ();
-
- //if (CIAO::debug_level () > 1)
- if (true)
- ACE_DEBUG ((LM_DEBUG,
- "Removed all homes and components from this container!\n"));
-}
-
-////////////////////////////////////////////////////////////////////////
-// Internal helper functions.
-////////////////////////////////////////////////////////////////////////
-
-void
-CIAO::Container_Impl::remove_components (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure))
-{
- // Remove all the components in the NodeApplication/Container
- // Release all component servant object.
- const Component_Iterator end = this->component_map_.end ();
- for (Component_Iterator iter (this->component_map_.begin ());
- iter != end;
- ++iter)
- {
- // Find the component home first, then call the remove_component
- // on the home.
- Components::CCMHome_ptr home;
- if (this->home_map_.find ( (*iter).ext_id_, home) != 0)
- ACE_THROW (CORBA::BAD_PARAM ());
-
- // This will call ccm_passivate on the component executor.
- home->remove_component (((*iter).int_id_).in ());
- ACE_CHECK;
-
- //CORBA::release (((*iter).int_id_).in ());
- }
-
- this->component_map_.unbind_all ();
- // To this point the servant should have been destroyed. However,
- // if someone is still making calls on the servant, terrible thing
- // will happen.
-}
-
-
-// Below method is not used actually.
-void
-CIAO::Container_Impl::remove_component (const char * comp_ins_name
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure))
-{
- Components::CCMObject_var comp;
- Components::CCMHome_ptr home;
-
- ACE_CString naming_context;
-
- ACE_CString str (comp_ins_name);
-
- /* Before we do remove component we have to inform the homeservant so
- * Component::ccm_passivate ()
- * constainer::uninstall_component () ->deactivate_object () will be called.
- *
- * ccm_remove will be called when the poa destroys the servant.
- */
-
- if (this->component_map_.find (str, comp) != 0)
- ACE_THROW (CORBA::BAD_PARAM ());
-
- if (this->home_map_.find (str, home) != 0)
- ACE_THROW (CORBA::BAD_PARAM ());
-
- // This will call ccm_passivate on the component executor.
- home->remove_component (comp.in ());
- ACE_CHECK;
-
- // If the previous calls failed, what should we do here??
-
- // @@ Still need to remove the home if the previous operation fails?
- if (this->component_map_.unbind (str) == -1)
- ACE_THROW (::Components::RemoveFailure ());
-
- if (this->naming_map_.find (str, naming_context) == 0)
- {
-
- bool result =
- unregister_with_ns (
- naming_context.c_str (),
- this->orb_.in ()
- ACE_ENV_ARG_PARAMETER
- );
- ACE_TRY_CHECK;
-
- if (!result)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Failed to unregister with naming service.\n"));
- }
- else
- {
- if (this->naming_map_.unbind (str) == -1)
- ACE_THROW (::Components::RemoveFailure ());
- }
- }
-}
-
-bool
-CIAO::Container_Impl::register_with_ns (const char * s,
- CORBA::ORB_ptr orb,
- Components::CCMObject_ptr obj
- ACE_ENV_ARG_DECL)
-{
- ACE_TRY
- {
- // Obtain the naming service
- CORBA::Object_var naming_obj =
- orb->resolve_initial_references ("NameService"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (naming_obj.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- "DAnCE: (%P|%t) Unable to get the Naming Service.\n"),
- false);
-
- CosNaming::NamingContextExt_var root =
- CosNaming::NamingContextExt::_narrow (naming_obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CosNaming::Name name (0);
- name.length (0);
-
- // Get the multicomponent naming context from the <naming_context>.
- // The convention of this <naming_context> input string is that
- // different naming context is separated by character '/', such as
- // "create a naming context A/B/C/D".
- ACE_CString tmp (s);
- char * naming_string = tmp.rep ();
- char seps[] = "/:";
-
- char *token, *lastToken = 0;
- token = ACE_OS::strtok (naming_string, seps);
-
- for (CORBA::ULong i = 0; token != 0; ++i)
- {
- // While there still are tokens in the "naming_string"
- name.length (name.length () + 1);
- name[i].id = CORBA::string_dup (token);
-
- // Get next naming context
- lastToken = token;
- token = ACE_OS::strtok ( 0, seps );
- }
-
- if (name.length() > 1)
- {
- // Let's create the context path first
- name.length(name.length()-1);
- Utility::NameUtility::CreateContextPath (root.in (), name);
- name.length(name.length()+1);
- name[name.length()-1].id = CORBA::string_dup(lastToken);
- }
-
- // Bind the actual object
- Utility::NameUtility::BindObjectPath (root.in (), name, obj);
-
- return true;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::register_with_ns -"
- "NodeApplication: failed to register "
- "with naming service.");
- return false;
- }
- ACE_ENDTRY;
- return true;
-}
-
-bool
-CIAO::Container_Impl::unregister_with_ns (const char * obj_name,
- CORBA::ORB_ptr orb
- ACE_ENV_ARG_DECL)
-{
- ACE_TRY
- {
- // Obtain the naming service
- CORBA::Object_var naming_obj =
- orb->resolve_initial_references ("NameService"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (naming_obj.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to get the Naming Service.\n"),
- false);
-
- CosNaming::NamingContext_var naming_context =
- CosNaming::NamingContext::_narrow (naming_obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
-
- CosNaming::Name name (0);
- name.length (0);
-
- // Get the multicomponent naming context from the <naming_context>.
- // The convention of this <naming_context> input string is that
- // different naming context is separated by character '/', such as
- // "create a naming context A/B/C/D".
- ACE_CString tmp (obj_name);
- char * naming_string = tmp.rep ();
- char seps[] = "/:";
-
- char *token, *lastToken = 0;
- token = ACE_OS::strtok (naming_string, seps);
-
- for (CORBA::ULong i = 0; token != 0; ++i)
- {
- // While there still are tokens in the "naming_string"
- name.length (name.length () + 1);
- name[i].id = CORBA::string_dup (token);
-
- // Get next naming context
- lastToken = token;
- token = ACE_OS::strtok ( 0, seps );
- }
-
- // Unregister with the Name Server
- ACE_DEBUG ((LM_DEBUG,
- "Unregister component with the name server : %s!\n",
- obj_name));
- naming_context->unbind (name ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- return true;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "CIAO (%P|%t) Container_Impl.cpp -"
- "CIAO::Container_Impl::unregister_with_ns -"
- "NodeApplication: failed to unregister "
- "with naming service.");
- return false;
- }
- ACE_ENDTRY;
- return true;
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.h b/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.h
deleted file mode 100644
index 0549841ce53..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.h
+++ /dev/null
@@ -1,228 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Container_Impl.h
- *
- * $Id$
- *
- * This file contains implementation for the servant of
- * Components::Deployment::Container interface.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- * @author Gan Deng <gan.deng@vanderbilt.edu>
- */
-//=============================================================================
-
-
-#ifndef CIAO_CONTAINER_IMPL_H
-#define CIAO_CONTAINER_IMPL_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ciao/Deployment_CoreS.h"
-#include "ciao/Container_Base.h"
-//#include "ciao/Swapping_Container.h"
-#include "ace/SString.h"
-#include "ciao/Server_init.h" // write_IOR function & NameUtility
-#include "ciao/CIAO_common.h" // CIAO::debug_level
-
-namespace CIAO
-{
- /**
- * @class Container_Impl
- *
- * @brief Servant implementation for the interface Deployment::Container
- *
- * This class implements the Deployment::Container
- * interface which is not defined by the CCM DnC specification.
- * As the interface implies, this is actually part of the deployment
- * interface and is used to manage the lifecycle of the installed
- * components and homes.
- */
- class Container_Impl
- : public virtual POA_Deployment::Container
- {
- public:
- /// Constructor
- Container_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- ::Deployment::NodeApplication_ptr server,
- const Static_Config_EntryPoints_Maps* static_entrypts_maps =0);
-
- /// Destructor
- virtual ~Container_Impl (void);
-
- /*-------------------------------------------------------------*/
- /*-------------------- IDL operations (idl) ------------------*/
-
- /// Initialize the container.
- virtual CORBA::Long init (const CORBA::PolicyList *policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Install all homes and components
- Deployment::ComponentInfos *
- install (const ::Deployment::ContainerImplementationInfo & container_impl_info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::UnknownImplId,
- Deployment::ImplEntryPointNotFound,
- Deployment::InstallationFailure,
- Components::InvalidConfiguration));
-
- /// Remove all homes and components
- virtual void
- remove (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure));
-
- /// Deployment::Container interface defined attributes/operations.
- virtual ::Deployment::Properties *
- properties (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::Deployment::NodeApplication_ptr
- get_node_application (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /*-------------------------------------------------------------*/
- /*------------------- C++ help methods (c++) -----------------*/
-
- /// Get the containing POA. This operation does *not*
- /// increase the reference count of the POA.
- virtual PortableServer::POA_ptr _default_POA (void);
-
-
- // Install the home of this particular component
- virtual ::Components::CCMHome_ptr
- install_home (const ::Deployment::ComponentImplementationInfo & impl_info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::UnknownImplId,
- Deployment::ImplEntryPointNotFound,
- Deployment::InstallationFailure,
- Components::InvalidConfiguration));
-
- /**
- * @@Note: I don't know how to remove a home right now.
- * I assume that user will only call remove instead.
- * This is true at least for DnC run time.
- *
- * Right now, in this implementation I assumpe that there will be
- * same number of homes as the components even if the components
- * are of the same type. I don't think that we have the modeling
- * side support of this either. So bear me if you think I avoid
- * the real thinking for easiness.
- */
- // Remove the home of this particular component
- virtual void
- remove_home (const char * comp_ins_name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure));
-
- // Get all homes
- virtual ::Components::CCMHomes *
- get_homes (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- bool
- register_with_ns (const char * obj_name,
- CORBA::ORB_ptr orb,
- Components::CCMObject_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
- bool
- unregister_with_ns (const char * obj_name,
- CORBA::ORB_ptr orb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
-
- // ------------------- CIAO Internal Operations ------------------------
- // These below two are helper methods to clean up components
- // should only be called when we are sure that there is no
- // active connection on this component.
- virtual void remove_components (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure));
-
- virtual void remove_component (const char * comp_ins_name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure));
-
- /// Set the cached object reference.
- void set_objref (Deployment::Container_ptr o
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
- /// Get the cached object reference. This operation will invoke
- /// _this if there's no cached reference available. Notice that
- /// this method does *NOT* increase the reference count of the
- /// cached reference.
- /// @@ Gan, caller should own memory. In this case you shoudl
- /// return a duplicate OR add a const to the operation
- /// signature. This is simply bad programming.
- Deployment::Container_ptr get_objref (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
-protected:
- /// Keep a pointer to the managing ORB serving this servant.
- CORBA::ORB_var orb_;
-
- /// Keep a pointer to the managing POA.
- PortableServer::POA_var poa_;
-
- /// Internal container implementation.
- // @@ Gan/Jai, heard of auto_ptr <>?
- CIAO::Container *container_;
-
- /// Cached ConfigValues.
- Deployment::Properties properties_;
-
- /// Cached Container reference (of ourselves.)
- Deployment::Container_var objref_;
-
- /// Cached NodeApplication.
- Deployment::NodeApplication_var nodeapp_;
-
- /// To store all created CCMHome object
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- Components::CCMHome_ptr,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> CCMHome_Map;
- typedef CCMHome_Map::iterator Home_Iterator;
- CCMHome_Map home_map_;
-
- /// To store all created Component object.
- // @@Gan, see how this caching is duplicated..
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- Components::CCMObject_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> CCMComponent_Map;
- typedef CCMComponent_Map::iterator Component_Iterator;
- CCMComponent_Map component_map_;
-
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- ACE_CString,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> CCMNaming_Map;
- CCMNaming_Map naming_map_;
-
- const Static_Config_EntryPoints_Maps* static_entrypts_maps_;
- };
-}
-
-#if defined (__ACE_INLINE__)
-# include "Container_Impl.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_CONTAINER_IMPL_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.inl b/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.inl
deleted file mode 100644
index b0ee9c6d558..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/Container_Impl.inl
+++ /dev/null
@@ -1,35 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-ACE_INLINE
-CIAO::Container_Impl::Container_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- ::Deployment::NodeApplication_ptr server,
- const Static_Config_EntryPoints_Maps* static_entrypts_maps)
- : orb_ (CORBA::ORB::_duplicate (o)),
- poa_ (PortableServer::POA::_duplicate (p)),
- nodeapp_ (::Deployment::NodeApplication::_duplicate (server)),
- static_entrypts_maps_ (static_entrypts_maps)
-{
-}
-
-ACE_INLINE void
-CIAO::Container_Impl::set_objref (Deployment::Container_ptr o
- ACE_ENV_ARG_DECL)
-{
- if (!CORBA::is_nil (this->objref_.in ()))
- ACE_THROW (CORBA::BAD_INV_ORDER ());
-
- this->objref_ = Deployment::Container::_duplicate (o);
-}
-
-ACE_INLINE ::Deployment::Container_ptr
-CIAO::Container_Impl::get_objref (ACE_ENV_SINGLE_ARG_DECL)
-{
- if (CORBA::is_nil (this->objref_.in ()))
- {
- this->objref_ = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
- return this->objref_.in ();
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.cpp b/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.cpp
deleted file mode 100644
index 4ffe48cd7d2..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-// $Id$
-
-#include "NoOp_Configurator.h"
-
-CIAO::NoOp_Configurator::~NoOp_Configurator (void)
-{
- // Not much to do.
-}
-
-int
-CIAO::NoOp_Configurator::pre_orb_initialize ()
-{
- return 0;
-}
-
-int
-CIAO::NoOp_Configurator::post_orb_initialize (CORBA::ORB_ptr)
-{
- return 0;
-}
-
-int
-CIAO::NoOp_Configurator::init_resource_manager
-(const ::Deployment::Properties & /*properties*/)
-{
- // @@ Currently do thing. We should go over the resource struct in
- // the future and throw exceptions if there are
- // un-recognizable/supported stuff in it.
- return 0;
-}
-
-CORBA::PolicyList *
-CIAO::NoOp_Configurator::find_container_policies
-(const ::Deployment::Properties & /*properties*/)
-{
- // Not much to do.
-
- return 0;
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.h b/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.h
deleted file mode 100644
index ff536b23cf0..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/** $Id$
- * @file NoOp_Configurator.h
- * @brief This file contains the noop configurator.
- */
-
-#ifndef NOOP_CONFIGURATOR_H
-#define NOOP_CONFIGURATOR_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "NodeApp_Configurator.h"
-#include "NoOp_Configurator_export.h"
-
-namespace CIAO
-{
- /**
- * @class NoOP_Configurator
- *
- * @brief The NoOp_Configurator doesn't do anything.
- */
- class NoOp_Configurator_Export NoOp_Configurator
- : public NodeApp_Configurator
- {
- public:
- /// Default destructor.
- virtual ~NoOp_Configurator (void);
-
- /**
- * @brief "pre_orb_initialize" is called before ORB_init.
- */
- virtual int pre_orb_initialize (void);
-
- /**
- * @brief "post_orb_initialize" is called after NodeApplication
- * get a hold at this object.
- */
- virtual int post_orb_initialize (CORBA::ORB_ptr o);
-
- /**
- * @brief "init_resource_manager" is called by NodeApplication when
- * it receives an "install" commands.
- */
- virtual int
- init_resource_manager (const ::Deployment::Properties &properties);
-
- /**
- * @brief get a policyset by its name.
- */
- virtual CORBA::PolicyList *
- find_container_policies (const ::Deployment::Properties &properties);
- };
-
-}
-
-#include /**/ "ace/post.h"
-#endif /* NOOP_CONFIGURATOR_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator_export.h b/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator_export.h
deleted file mode 100644
index dce4b728146..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NoOp_Configurator_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl NoOp_Configurator
-// ------------------------------
-#ifndef NOOP_CONFIGURATOR_EXPORT_H
-#define NOOP_CONFIGURATOR_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (NOOP_CONFIGURATOR_HAS_DLL)
-# define NOOP_CONFIGURATOR_HAS_DLL 1
-#endif /* ! NOOP_CONFIGURATOR_HAS_DLL */
-
-#if defined (NOOP_CONFIGURATOR_HAS_DLL) && (NOOP_CONFIGURATOR_HAS_DLL == 1)
-# if defined (NOOP_CONFIGURATOR_BUILD_DLL)
-# define NoOp_Configurator_Export ACE_Proper_Export_Flag
-# define NOOP_CONFIGURATOR_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define NOOP_CONFIGURATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* NOOP_CONFIGURATOR_BUILD_DLL */
-# define NoOp_Configurator_Export ACE_Proper_Import_Flag
-# define NOOP_CONFIGURATOR_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define NOOP_CONFIGURATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* NOOP_CONFIGURATOR_BUILD_DLL */
-#else /* NOOP_CONFIGURATOR_HAS_DLL == 1 */
-# define NoOp_Configurator_Export
-# define NOOP_CONFIGURATOR_SINGLETON_DECLARATION(T)
-# define NOOP_CONFIGURATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* NOOP_CONFIGURATOR_HAS_DLL == 1 */
-
-// Set NOOP_CONFIGURATOR_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (NOOP_CONFIGURATOR_NTRACE)
-# if (ACE_NTRACE == 1)
-# define NOOP_CONFIGURATOR_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define NOOP_CONFIGURATOR_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !NOOP_CONFIGURATOR_NTRACE */
-
-#if (NOOP_CONFIGURATOR_NTRACE == 1)
-# define NOOP_CONFIGURATOR_TRACE(X)
-#else /* (NOOP_CONFIGURATOR_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define NOOP_CONFIGURATOR_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (NOOP_CONFIGURATOR_NTRACE == 1) */
-
-#endif /* NOOP_CONFIGURATOR_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.cpp b/TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.cpp
deleted file mode 100644
index b0c2315923f..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.cpp
+++ /dev/null
@@ -1,3 +0,0 @@
-// $Id$
-
-// empty
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.h b/TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.h
deleted file mode 100644
index b3eb92b4482..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApp_Configurator.h
+++ /dev/null
@@ -1,90 +0,0 @@
-//$Id$
-/**========================================================
- *
- * @file NodeApp_Configurator.h
- *
- * @Brief This file contains the implementation of
- * the basic NodeApp_Configurator interface, the one
- * that does nothing more
- *
- * @author Nanbor Wang <nanbor@exothermic.txcorp.com>
- *========================================================*/
-
-#ifndef NODEAPP_CONFIGURATOR_H
-#define NODEAPP_CONFIGURATOR_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ciao/Deployment_CoreC.h"
-
-namespace CIAO
-{
- /**
- *
- * @class NodeApp_Configurator
- *
- * @brief This class defines and implements the default
- * NodeApp_Configurator base class that's needed for configuring the
- * NodeApplication process.
- **/
- class NodeApp_Configurator
- {
- public:
- /// Default destructor.
- virtual ~NodeApp_Configurator (void) {}
-
- /**
- * @brief "pre_orb_initialize" is called before ORB_init.
- */
- virtual int pre_orb_initialize (void) = 0;
-
- /**
- * @brief "post_orb_initialize" is called after NodeApplication
- * get a hold at this object.
- */
- virtual int post_orb_initialize (CORBA::ORB_ptr o) = 0;
-
- /**
- * @brief "init_resource_manager" is called by NodeApplication when
- * it receives an "install" commands.
- */
- virtual int
- init_resource_manager (const ::Deployment::Properties &properties) = 0;
-
- /**
- * @brief get a policyset by its name.
- */
- virtual CORBA::PolicyList *
- find_container_policies (const ::Deployment::Properties &properties) = 0;
-
- /// @@ Perhaps we also need a finalizer method here. Perhaps we
- /// even need to differentiate finalizer before ORB is destroyed
- /// and the one after that.
- };
-}
-
-/**
- * For dynamically linkable concrete NodeApp_Configurator
- * implementation, remember to create a factory method using "C"
- * calling convention in the CPP file as follow:
-
- extern "C" EXPORT_MACRO CIAO::NodeApp_Configurator *create_nodeapp_configurator (void);
-
- CIAO::NodeApp_Configurator *
- create_nodeapp_configurator (void)
- {
- concrete_NodeApp_Configurator *config;
- ACE_NEW_RETURN (config, concrete_NodeApp_Configurator, 0);
- return config;
- }
-
- */
-
-
-#include /**/ "ace/post.h"
-#endif /* NODEAPP_CONFIGURATOR_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.cpp b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.cpp
index ca8654f9317..4bb0fc03df2 100644
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.cpp
+++ b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.cpp
@@ -1,36 +1,194 @@
// $Id$
-#include "NodeApplication_Core.h"
+#include "NodeApplication_Impl.h"
+#include "NodeApplication_CallBackC.h"
+#include "ciao/Server_init.h"
#include "ciao/CIAO_common.h"
+#include "ace/SString.h"
+#include "ace/Get_Opt.h"
+#include "ace/Env_Value_T.h"
+#include "ace/Sched_Params.h"
+#include "ace/OS_NS_errno.h"
-void print_arg (int argc, char *argv[])
+const char *ior_file_name = 0;
+const char *callback_ior = 0;
+int use_callback = 1;
+
+int
+parse_args (int argc, char *argv[])
{
- for (int i = 0; i < argc; ++i)
- ACE_DEBUG ((LM_DEBUG, "NodeApplication ARGV[%d] = %s\n", i, argv [i]));
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "nk:o:");
+ int c;
+
+ while ((c = get_opts ()) != -1)
+ switch (c)
+ {
+ case 'n':
+ use_callback = 0;
+ break;
+
+
+ case 'o': // get the file name to write to
+ ior_file_name = get_opts.opt_arg ();
+ break;
+
+ case 'k': // get the activator callback IOR
+ callback_ior = get_opts.opt_arg ();
+ break;
+
+ case '?': // display help for use of the server.
+ default:
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "usage: %s\n"
+ "-n Do not use Callback (for testing)\n"
+ "-o <ior_output_file>\n"
+ "-k <NodeApplicationManager_callback_ior>\n"
+ "\n",
+ argv [0]),
+ -1);
+ }
+
+ if (use_callback && callback_ior == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Callback IOR to NodeApplicationManager is required.\n"),
+ -1);
+
+ return 0;
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ACE_TRY_NEW_ENV
- {
- ACE_DEBUG ((LM_DEBUG, "*** Starting NodeApplication\n"));
+ ACE_DECLARE_NEW_CORBA_ENV;
- CIAO::NodeApplication_Options nodeapp_options;
+ ACE_TRY
+ {
+ // Initialize orb
+ CORBA::ORB_var orb =
+ CORBA::ORB_init (argc,
+ argv,
+ ""
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (CIAO::debug_level () > 9)
- print_arg (argc, argv);
+ CIAO::Server_init (orb.in ());
- if (nodeapp_options.parse_args (argc, argv) != 0)
+ if (parse_args (argc, argv) != 0)
return -1;
- CIAO::NodeApplication_Core nodeapp_core (nodeapp_options);
+ // Get reference to Root POA.
+ CORBA::Object_var obj
+ = orb->resolve_initial_references ("RootPOA"
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ PortableServer::POA_var poa
+ = PortableServer::POA::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // Activate POA manager
+ PortableServer::POAManager_var mgr
+ = poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ mgr->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (nodeapp_core.startup (argc, argv) != 0)
+ CIAO::NodeApplication_Impl *nodeapp_servant;
+
+ ACE_NEW_RETURN (nodeapp_servant,
+ CIAO::NodeApplication_Impl (orb.in (),
+ poa.in ()),
+ -1);
+
+ PortableServer::ServantBase_var safe_servant (nodeapp_servant);
+
+ // CONFIGURING NodeApplication
+ PortableServer::ObjectId_var nodeapp_oid
+ = poa->activate_object (nodeapp_servant
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ obj = poa->id_to_reference (nodeapp_oid.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ Deployment::NodeApplication_var nodeapp_obj =
+ Deployment::NodeApplication::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (nodeapp_obj.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to start up the NodeApplication_Core\n"), -1);
+ "Unable to activate NodeApplication object\n"),
+ -1);
+
+
+ Deployment::NodeApplicationManager_var nodeapp_man;
+ Deployment::Properties_var prop = new Deployment::Properties;
+
+ if (use_callback)
+ {
+ obj = orb->string_to_object (callback_ior
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CIAO::NodeApplication_Callback_var nam_callback
+ = CIAO::NodeApplication_Callback::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ Deployment::Properties_out properties_out (prop.out ());
+
+ nodeapp_man
+ = nam_callback->register_node_application (nodeapp_obj.in (),
+ properties_out
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+
+ /** @@ We need to call NodeApplication servant's init method.
+ * But it's not sure to me where exactly we can get the
+ * Properties needed by the init method at this moment. There are two
+ * ways to set the property of the NodeApplication:
+ * 1. call init remotely from NodeApplicationManager
+ * 2. call init locally on the servant of NodeApplication.
+ */
+ bool result = nodeapp_servant->init (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (result)
+ {
+ ACE_DEBUG ((LM_DEBUG, "NodeApplication Failed on creating and\
+ initializing the session container!"));
+ return 1;
+ }
+
+ CORBA::String_var str = orb->object_to_string (nodeapp_obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CIAO::Utility::write_IOR (ior_file_name,
+ str.in ());
+
+ // End Deployment part
+ if (CIAO::debug_level () > 10)
+ {
+ ACE_DEBUG ((LM_INFO, "NodeApplication IOR: %s\n", str.in ()));
+
+ ACE_DEBUG ((LM_DEBUG,
+ "Running NodeApplication...\n"));
+ }
// Run the main event loop for the ORB.
- nodeapp_core.run_orb ();
+ orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
ACE_CATCHANY
{
@@ -40,6 +198,6 @@ main (int argc, char *argv[])
}
ACE_ENDTRY;
- ACE_DEBUG ((LM_DEBUG, "CIAO (%P|%t) - This NodeApplication is destroyed!\n"));
+ ACE_DEBUG ((LM_DEBUG, "This NodeApplication is quitting now!\n"));
return 0;
}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.mpc b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.mpc
index b87578e5a4e..e258358d5eb 100644
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.mpc
+++ b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication.mpc
@@ -1,35 +1,13 @@
// -*- MPC -*-
// $Id$
-project(NodeApplication): ciao_server_dnc, ciao_events_dnc {
- after += NoOp_Configurator
- libs += CIAO_NoOp_Configurator
+project(NodeApplication): ciao_component_dnc {
exename = NodeApplication
- Source_Files {
- Configurator_Factory.cpp
- Container_Impl.cpp
- NodeApplication_Core.cpp
- NodeApplication_Impl.cpp
- NodeApplication.cpp
- }
-}
-
-project(NoOp_Configurator): ciao_deployment_stub {
- sharedname = CIAO_NoOp_Configurator
- dynamicflags = NOOP_CONFIGURATOR_BUILD_DLL
-
- Source_Files {
- NoOp_Configurator.cpp
+ IDL_Files {
}
-}
-
-project(RTNA_Configurator): ciao_deployment_stub, rt_server {
- sharedname = CIAO_RTNA_Configurator
- dynamicflags = CIAO_RTNA_CONFIGURATOR_BUILD_DLL
Source_Files {
- RTNodeApp_Configurator.cpp
- RTConfig_Manager.cpp
+ NodeApplication.cpp
}
}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.cpp b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.cpp
deleted file mode 100644
index b50bb12d50e..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.cpp
+++ /dev/null
@@ -1,269 +0,0 @@
-// $Id$
-
-#include "ciao/NodeApplication_CallBackC.h"
-#include "ace/Sched_Params.h"
-#include "NodeApplication_Impl.h"
-#include "NodeApplication_Core.h"
-#include "ace/Null_Mutex.h"
-#include "ciao/Server_init.h"
-#include "ciao/CIAO_common.h"
-
-#if !defined (__ACE_INLINE__)
-# include "NodeApplication_Core.inl"
-#endif /* __ACE_INLINE__ */
-
-const char *
-sched_policy_name (int sched_policy)
-{
- const char *name = 0;
-
- switch (sched_policy)
- {
- case ACE_SCHED_OTHER:
- name = "SCHED_OTHER";
- break;
- case ACE_SCHED_RR:
- name = "SCHED_RR";
- break;
- case ACE_SCHED_FIFO:
- name = "SCHED_FIFO";
- break;
- }
-
- return name;
-}
-
-
-/// The following check is taken from $(TAO_ROOT)/tests/RTCORBA/
-int
-check_supported_priorities (CORBA::ORB_ptr orb)
-{
- int sched_policy =
- orb->orb_core ()->orb_params ()->ace_sched_policy ();
-
- // Check that we have sufficient priority range to run,
- // i.e., more than 1 priority level.
- int max_priority =
- ACE_Sched_Params::priority_max (sched_policy);
- int min_priority =
- ACE_Sched_Params::priority_min (sched_policy);
-
- if (max_priority == min_priority)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Not enough priority levels with the %s scheduling policy\n"
- "on this platform to run, terminating program....\n"
- "Check svc.conf options\n",
- sched_policy_name (sched_policy)));
-
- return -1;
- }
- return 0;
-}
-
-int
-CIAO::NodeApplication_Core::svc ()
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var object =
- this->orb_->resolve_initial_references ("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // ...
- CIAO::NodeApplication_Impl *nodeapp_servant = 0;
-
- ACE_NEW_RETURN (nodeapp_servant,
- CIAO::NodeApplication_Impl (this->orb_.in (),
- root_poa.in (),
- *this->configurator_.get ()),
- -1);
-
- PortableServer::ServantBase_var safe_servant (nodeapp_servant);
-
- // Configuring NodeApplication.
- PortableServer::ObjectId_var nodeapp_oid
- = root_poa->activate_object (nodeapp_servant
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- object = root_poa->id_to_reference (nodeapp_oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Deployment::NodeApplication_var nodeapp_obj =
- Deployment::NodeApplication::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (nodeapp_obj.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to activate NodeApplication object\n"),
- -1);
-
- /** @@ We need to call NodeApplication servant's init method.
- * But it's not sure to me where exactly we can get the
- * Properties needed by the init method at this moment. There are two
- * ways to set the property of the NodeApplication:
- * 1. call init remotely from NodeApplicationManager
- * 2. call init locally on the servant of NodeApplication.
- */
- bool retval = nodeapp_servant->init (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (retval)
- {
- ACE_DEBUG ((LM_DEBUG, "NodeApplication Failed on creating and\
- initializing the session container!"));
- return 1;
- }
-
- CORBA::String_var str = this->orb_->object_to_string (nodeapp_obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (this->options_.write_ior_file ())
- CIAO::Utility::write_IOR (this->options_.ior_output_filename (),
- str.in ());
-
- // End Deployment part
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_INFO, "NodeApplication IOR: %s\n", str.in ()));
-
- }
-
- Deployment::NodeApplicationManager_var nodeapp_man;
- Deployment::Properties_var prop = new Deployment::Properties;
-
- if (this->options_.use_callback ())
- {
- object = this->orb_->string_to_object (this->options_.callback_ior ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CIAO::NodeApplication_Callback_var nam_callback
- = CIAO::NodeApplication_Callback::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Deployment::Properties_out properties_out (prop.out ());
-
- nodeapp_man
- = nam_callback->register_node_application (nodeapp_obj.in (),
- properties_out
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "Running NodeApplication...\n"));
-
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->orb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught");
- return -1;
- }
- ACE_ENDTRY;
-
- ACE_DEBUG ((LM_DEBUG,
- "Exiting NodeApplication...\n"));
- return 0;
-}
-
-int
-CIAO::NodeApplication_Core::startup (int argc, char *argv[])
-{
- // pre-init
- this->configurator_.reset (this->options_.create_nodeapp_configurator ());
-
- if (this->configurator_->pre_orb_initialize ())
- return -1;
-
- // Initialize orb
- this->orb_ =
- CORBA::ORB_init (argc,
- argv,
- "");
- CIAO::Server_init (this->orb_.in ());
-
- return this->configurator_->post_orb_initialize (this->orb_.in ());
-}
-
-int
-CIAO::NodeApplication_Core::run_orb ()
-{
- // check supported priority before running RT
- if (this->options_.rt_support () &&
- check_supported_priorities (this->orb_.in ()) != 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR, "ERROR: DISABLE RT SUPPORT\n"), -1);
- // this->options_.rt_support_ = 0;
- }
-
- if (this->options_.rt_support ()) // RT support reuqested
- {
-
-
- // spawn a thread
- // Task activation flags.
- long flags =
- THR_NEW_LWP |
- THR_JOINABLE |
- this->orb_->orb_core ()->orb_params ()->thread_creation_flags ();
-
- // Activate task.
- int result =
- this->activate (flags);
- if (result == -1)
- {
- if (errno == EPERM)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot create thread with scheduling policy %s\n"
- "because the user does not have the appropriate privileges, terminating program....\n"
- "Check svc.conf options and/or run as root\n",
- sched_policy_name (this->orb_->orb_core ()->orb_params ()->ace_sched_policy ())),
- 2);
- }
- else
- return -1;
- }
-
- ACE_DEBUG ((LM_DEBUG, "*** Running NodeApplication in RT mode\n"));
-
- // Wait for task to exit.
- result =
- this->wait ();
- ACE_ASSERT (result != -1);
-
- ACE_DEBUG ((LM_INFO, "*** Ending NodeApplication\n"));
- return 0;
-
- }
- else
- return this->svc ();
-}
-
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h
deleted file mode 100644
index 8f8f06772b5..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file NodeApplication_Core.h
- *
- * $Id$
- *
- * An ACE_Task subclass that manages the NodeApplication runtime. We
- * can run this class as a separate thread, as in the case of RT
- * support, or as a event driven ORB.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-
-#ifndef CIAO_NODEAPPLICATION_CORE_H
-#define CIAO_NODEAPPLICATION_CORE_H
-#include /**/ "ace/pre.h"
-
-#include "tao/ORB_Core.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/ORB.h"
-#include "ace/Task.h"
-#include "ace/Auto_Ptr.h"
-#include "Configurator_Factory.h"
-#include "NoOp_Configurator.h"
-
-namespace CIAO
-{
- /**
- * @class NodeApplication_Core
- *
- * @brief An ACE_Task subclass that allow the ORB thread to be run
- * as separate thread when RT behaviors are needed.
- */
- class NodeApplication_Core
- : public virtual ACE_Task_Base
- {
- public:
- NodeApplication_Core (NodeApplication_Options &opts);
-
- virtual int svc (void);
-
- int startup (int argc, char *argv[]);
-
- int run_orb (void);
-
- protected:
- CORBA::ORB_var orb_;
-
- NodeApplication_Options &options_;
-
- auto_ptr<NodeApp_Configurator> configurator_;
- };
-
-}
-
-#if defined (__ACE_INLINE__)
-# include "NodeApplication_Core.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_NODEAPPLICAITON_CORE_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.inl b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.inl
deleted file mode 100644
index 563a960f584..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Core.inl
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- C++ -*- $Id$
-
-ACE_INLINE
-CIAO::NodeApplication_Core::NodeApplication_Core (CIAO::NodeApplication_Options &opts)
- : options_ (opts)
-{
-}
-
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp
deleted file mode 100644
index ed11a2c4076..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.cpp
+++ /dev/null
@@ -1,1160 +0,0 @@
-//$Id$
-
-#include "NodeApplication_Impl.h"
-#include "ace/SString.h"
-#include "Container_Impl.h"
-#include "Deployment_EventsC.h"
-
-#if !defined (__ACE_INLINE__)
-# include "NodeApplication_Impl.inl"
-#endif /* __ACE_INLINE__ */
-
-CIAO::NodeApplication_Impl::~NodeApplication_Impl (void)
-{
-}
-
-CORBA::Long
-CIAO::NodeApplication_Impl::init (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- /// @todo initialize this NodeApplication properties
- return 0;
-}
-
-CORBA::Long
-CIAO::NodeApplication_Impl::create_all_containers (
- const ::Deployment::ContainerImplementationInfos & container_infos
- ACE_ENV_ARG_DECL_NOT_USED
- )
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Create all the containers here based on the input node_impl_info.
- const CORBA::ULong len = container_infos.length ();
-
- for (CORBA::ULong i = 0; i < len; ++i)
- {
- // The factory method <create_container> will intialize the container
- // servant with properties, so we don't need to call <init> on the
- // container object reference.
- // Also, the factory method will add the container object reference
- // to the set for us.
- ::Deployment::Container_var cref =
- this->create_container (container_infos[i].container_config);
-
- // Build the Component_Container_Map
- for (CORBA::ULong j = 0;
- j < container_infos[i].impl_infos.length ();
- ++j)
- {
- this->component_container_map_.bind (
- container_infos[i].impl_infos[j].component_instance_name.in (),
- ::Deployment::Container::_duplicate (cref.in ()));
- }
- }
-
- return 0;
-}
-
-void
-CIAO::NodeApplication_Impl::finishLaunch (
- const Deployment::Connections & providedReference,
- CORBA::Boolean start,
- CORBA::Boolean add_connection
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError,
- Deployment::InvalidConnection))
-{
- ACE_UNUSED_ARG (start);
-
- // If parameter "add_connection" is true, then it means we want to "add"
- // new connections, other, we remove existing connections
- this->finishLaunch_i (providedReference, start, add_connection);
-}
-
-void
-CIAO::NodeApplication_Impl::finishLaunch_i (
- const Deployment::Connections & connections,
- CORBA::Boolean start,
- CORBA::Boolean add_connection
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError,
- Deployment::InvalidConnection))
-{
- ACE_UNUSED_ARG (start);
-
- ACE_TRY
- {
- const CORBA::ULong length = connections.length ();
-
- // For every connection struct we finish the connection.
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- // For ES_to_Consumer connection, we simply call
- // handle_es_consumer_connection method.
- if (connections[i].kind == Deployment::rtecEventConsumer)
- {
- this->handle_es_consumer_connection (
- connections[i],
- add_connection);
- continue;
- }
-
- // For other type of connections, we need to fetch the
- // objref of the source component
- ACE_CString name = connections[i].instanceName.in ();
- Component_State_Info comp_state;
-
- if (this->component_state_map_.find (name, comp_state) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::finishLaunch, "
- "invalid port name [%s] in instance [%s] \n",
- connections[i].portName.in (),
- name.c_str ()));
- ACE_TRY_THROW (Deployment::InvalidConnection ());
- }
-
- Components::CCMObject_var comp = comp_state.objref_;
-
- switch (connections[i].kind)
- {
- case Deployment::SimplexReceptacle:
- case Deployment::MultiplexReceptacle:
- this->handle_facet_receptable_connection (
- comp.in (),
- connections[i],
- add_connection);
- break;
-
- case Deployment::EventEmitter:
- this->handle_emitter_consumer_connection (
- comp.in (),
- connections[i],
- add_connection);
- break;
-
- case Deployment::EventPublisher:
- this->handle_publisher_consumer_connection (
- comp.in (),
- connections[i],
- add_connection);
- break;
-
- case Deployment::rtecEventPublisher:
- this->handle_publisher_es_connection (
- comp.in (),
- connections[i],
- add_connection);
- break;
-
- case Deployment::rtecEventConsumer:
- this->handle_es_consumer_connection (
- connections[i],
- add_connection);
- break;
-
- default:
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::finishLaunch_i: "
- "Unsupported event port type encounted\n"));
- ACE_TRY_THROW (CORBA::NO_IMPLEMENT ());
- }
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "NodeApplication_Impl::finishLaunch\t\n");
- ACE_RE_THROW;
- }
-
- ACE_ENDTRY;
-}
-
-void
-CIAO::NodeApplication_Impl::ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError))
-{
- Component_Iterator end = this->component_state_map_.end ();
- for (Component_Iterator iter (this->component_state_map_.begin ());
- iter != end;
- ++iter)
- {
- if (((*iter).int_id_).state_ == NEW_BORN)
- {
- ((*iter).int_id_).objref_->ciao_preactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- ((*iter).int_id_).state_ = PRE_ACTIVE;
- }
-}
-
-void
-CIAO::NodeApplication_Impl::start (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError))
-{
- Component_Iterator end = this->component_state_map_.end ();
- for (Component_Iterator iter (this->component_state_map_.begin ());
- iter != end;
- ++iter)
- {
- if (((*iter).int_id_).state_ == PRE_ACTIVE)
- {
- ((*iter).int_id_).objref_->ciao_activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- ((*iter).int_id_).state_ = ACTIVE;
- }
-}
-
-void
-CIAO::NodeApplication_Impl::ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError))
-{
- Component_Iterator end = this->component_state_map_.end ();
- for (Component_Iterator iter (this->component_state_map_.begin ());
- iter != end;
- ++iter)
- {
- if (((*iter).int_id_).state_ == ACTIVE)
- {
- ((*iter).int_id_).objref_->ciao_postactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ((*iter).int_id_).state_ = POST_ACTIVE;
- }
- }
-}
-
-void
-CIAO::NodeApplication_Impl::ciao_passivate (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StopError))
-{
- Component_Iterator end = this->component_state_map_.end ();
- for (Component_Iterator iter (this->component_state_map_.begin ());
- iter != end;
- ++iter)
- {
- ((*iter).int_id_).objref_->ciao_passivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ((*iter).int_id_).state_ = PASSIVE;
- }
-}
-
-Deployment::ComponentInfos *
-CIAO::NodeApplication_Impl::install (
- const ::Deployment::NodeImplementationInfo & node_impl_info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::UnknownImplId,
- Deployment::ImplEntryPointNotFound,
- Deployment::InstallationFailure,
- Components::InvalidConfiguration))
-{
- Deployment::ComponentInfos_var retv;
- ACE_TRY
- {
- // Extract ORB resource def here.
- this->configurator_.init_resource_manager (node_impl_info.nodeapp_config);
-
- const ::Deployment::ContainerImplementationInfos container_infos =
- node_impl_info.impl_infos;
-
- ACE_NEW_THROW_EX (retv,
- Deployment::ComponentInfos,
- CORBA::NO_MEMORY ());
- ACE_TRY_CHECK;
-
- retv->length (0UL);
-
- // Call create_all_containers to create all the necessary containers..
- // @@(GD): The "create_all_containers" mechanism needs to be refined, so
- // we should always try to reuse existing containers as much as possible!
- // We need not only factory pattern, but also finder pattern here as well.
- if (CIAO::debug_level () > 15)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) NodeApplication_Impl.cpp -"
- "CIAO::NodeApplication_Impl::install -"
- "creating all the containers. \n"));
- }
-
- CORBA::ULong old_set_size = this->container_set_.size ();
-
- (void) this->create_all_containers (container_infos);
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) NodeApplication_Impl.cpp -"
- "CIAO::NodeApplication_Impl::install -"
- "create_all_containers() called.\n"));
- }
-
- // For each container, invoke <install> operation, this will return
- // the ComponentInfo for components installed in each container.
- // Merge all the returned ComponentInfo, which will be used
- // as the return value of this method.
- const CORBA::ULong num_containers = container_infos.length ();
- for (CORBA::ULong i = 0; i < num_containers; ++i)
- {
- Deployment::ComponentInfos_var comp_infos =
- this->container_set_.at(i+old_set_size)->
- install (container_infos[i]
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Append the return sequence to the *big* return sequence
- CORBA::ULong curr_len = retv->length ();
- retv->length (curr_len + comp_infos->length ());
-
- for (CORBA::ULong j = curr_len; j < retv->length (); j++)
- retv[j] = comp_infos[j-curr_len];
- }
-
- // @@ Maybe we can optimize this. We can come up with a decision later.
- // Cache a copy of the component object references for all the components
- // installed on this NodeApplication. I know we can delegates these to the
- // undelying containers, but in that case, we should loop
- // all the containers to find the component object reference. - Gan
- const CORBA::ULong comp_len = retv->length ();
- for (CORBA::ULong len = 0;
- len < comp_len;
- ++len)
- {
- Component_State_Info tmp;
-
- tmp.state_ = NEW_BORN;
- tmp.objref_ =
- Components::CCMObject::_duplicate (retv[len].component_ref.in ());
-
- //Since we know the type ahead of time...narrow is omitted here.
- if (this->component_state_map_.rebind (
- retv[len].component_instance_name.in(), tmp))
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) NodeApplication_Impl.cpp -"
- "CIAO::NodeApplication_Impl::install -"
- "error binding component instance [%s] "
- "into the map. \n",
- retv[len].component_instance_name.in ()));
- ACE_TRY_THROW (
- Deployment::InstallationFailure ("NodeApplication_Imp::install",
- "Duplicate component instance name"));
- }
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "CIAO_NodeApplication::install error\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (0);
-
- return retv._retn ();
-}
-
-void
-CIAO::NodeApplication_Impl::remove_component (const char * inst_name
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Components::RemoveFailure))
-{
- // Fetch the container object reference from the componet_container_map
- ::Deployment::Container_var container_ref;
- if (this->component_container_map_.find (inst_name, container_ref) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::remove_component, "
- "invalid instance [%s] in the component_container_map.\n",
- inst_name));
- ACE_TRY_THROW (::Components::RemoveFailure ());
- }
-
- // Remove this component instance from the node application
- ACE_CString name (inst_name);
- this->component_container_map_.unbind (name);
- this->component_state_map_.unbind (name);
- container_ref->remove_component (inst_name);
-}
-
-void
-CIAO::NodeApplication_Impl::remove (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // If we still have components installed, then do nothing
- if (this->component_state_map_.current_size () != 0)
- return;
-
- // For each container, invoke <remove> operation to remove home and components.
- const CORBA::ULong set_size = this->container_set_.size ();
- for (CORBA::ULong i = 0; i < set_size; ++i)
- {
- this->container_set_.at(i)->remove (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- // Remove all containers
- // Maybe we should also deactivate container object reference.
- this->container_set_.remove_all ();
-
- if (CIAO::debug_level () > 1)
- ACE_DEBUG ((LM_DEBUG, "Removed all containers from this NodeApplication!\n"));
-
- //For static deployment, ORB will be shutdown in the Static_NodeManager
- if (this->static_entrypts_maps_ == 0)
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
-
-
-// Create a container interface, which will be hosted in this NodeApplication.
-::Deployment::Container_ptr
-CIAO::NodeApplication_Impl::create_container (
- const ::Deployment::Properties &properties
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Components::CreateFailure,
- ::Components::InvalidConfiguration))
-{
- //if (CIAO::debug_level () > 1)
- // ACE_DEBUG ((LM_DEBUG, "ENTERING: NodeApplication_Impl::create_container()\n"));
-
- CORBA::PolicyList_var policies
- = this->configurator_.find_container_policies (properties);
-
- CIAO::Container_Impl *container_servant = 0;
-
- ACE_NEW_THROW_EX (container_servant,
- CIAO::Container_Impl (this->orb_.in (),
- this->poa_.in (),
- this->get_objref (),
- this->static_entrypts_maps_),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- PortableServer::ServantBase_var safe_servant (container_servant);
-
- // @TODO: Need to decide a "component_installation" equivalent data
- // structure to pass to the container, which will be used to
- // suggest how to install the components. Each such data stucture
- // should be correspond to one <process_collocation> tag in the XML
- // file to describe the deployment plan.
- container_servant->init (policies.ptr ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- PortableServer::ObjectId_var oid
- = this->poa_->activate_object (container_servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- CORBA::Object_var obj
- = this->poa_->id_to_reference (oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- ::Deployment::Container_var ci
- = ::Deployment::Container::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Cached the objref in its servant.
- container_servant->set_objref (ci.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- {
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
-
- this->container_set_.add (ci.in ());
- }
-
- //if (CIAO::debug_level () > 1)
- // ACE_DEBUG ((LM_DEBUG,
- // "LEAVING: NodeApplication_Impl::create_container()\n"));
- return ci._retn ();
-}
-
-// Remove a container interface.
-void
-CIAO::NodeApplication_Impl::remove_container (::Deployment::Container_ptr cref
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Components::RemoveFailure))
-{
- ACE_DEBUG ((LM_DEBUG, "ENTERING: NodeApplication_Impl::remove_container()\n"));
- ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_);
-
- if (this->container_set_.object_in_set (cref) == 0)
- {
- ACE_THROW (Components::RemoveFailure());
- }
-
- cref->remove (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // @@ Deactivate object.
- PortableServer::ObjectId_var oid
- = this->poa_->reference_to_id (cref
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- this->poa_->deactivate_object (oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Should we remove the server still, even if the previous call failed.
-
- if (this->container_set_.remove (cref) == -1)
- {
- ACE_THROW (::Components::RemoveFailure ());
- }
-
- ACE_DEBUG ((LM_DEBUG, "LEAVING: NodeApplication_Impl::remove_container()\n"));
-}
-
-// Get containers
-::Deployment::Containers *
-CIAO::NodeApplication_Impl::get_containers (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return 0;
-}
-
-::Deployment::CIAO_Event_Services *
-CIAO::NodeApplication_Impl::
-install_es (const ::Deployment::ESInstallationInfos & es_infos
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::InstallationFailure))
-{
- Deployment::CIAO_Event_Services_var retv;
- ACE_NEW_RETURN (retv,
- Deployment::CIAO_Event_Services,
- 0);
-
- CORBA::ULong total_lenth = es_infos.length ();
-
- for (CORBA::ULong i = 0; i < total_lenth; ++i)
- {
- CIAO_Event_Service_var temp =
- es_factory_.create (es_infos[i].type);
-
- CORBA::ULong curr_len = retv->length ();
- retv->length (curr_len + 1);
-
- retv[curr_len] =
- CIAO::CIAO_Event_Service::_duplicate (temp.in ());
- }
- return retv._retn ();
-}
-
-
-ACE_CString *
-CIAO::NodeApplication_Impl::
-create_connection_key (const Deployment::Connection & connection)
-{
- ACE_CString * retv;
- ACE_NEW_RETURN (retv, ACE_CString, 0);
-
- (*retv) += connection.instanceName.in ();
- (*retv) += connection.portName.in ();
- (*retv) += connection.endpointInstanceName.in ();
- (*retv) += connection.endpointPortName.in ();
- if (CIAO::debug_level () > 11)
- {
- ACE_DEBUG ((LM_ERROR, "The key is: %s\n", (*retv).c_str ()));
- }
- return retv;
-}
-
-
-void
-CIAO::NodeApplication_Impl::
-handle_facet_receptable_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection))
-{
- if (CIAO::debug_level () > 11)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::finishLaunch, "
- "working on port name [%s] in instance [%s] \n",
- connection.portName.in (),
- connection.instanceName.in ()));
- }
-
- if (add_connection)
- {
- ::Components::Cookie_var cookie =
- comp->connect (connection.portName.in (),
- connection.endpoint.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_CString key = (*create_connection_key (connection));
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_ERROR, "[BINDING KEY]: %s\n", key.c_str ()));
- }
- this->cookie_map_.rebind (key, cookie);
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::finishLaunch\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] connected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
- else
- {
- ACE_CString key = (*create_connection_key (connection));
- ::Components::Cookie_var cookie;
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_ERROR, "[FINDING KEY]: %s\n", key.c_str ()));
- }
- if (this->cookie_map_.find (key, cookie) != 0)
- {
- ACE_DEBUG ((LM_ERROR, "Error: Cookie Not Found!\n"));
- ACE_TRY_THROW (Deployment::InvalidConnection ());
- }
-
- comp->disconnect (connection.portName.in (),
- cookie.in ());
- this->cookie_map_.unbind (key);
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::finishLaunch\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] disconnected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
-}
-
-
-void
-CIAO::NodeApplication_Impl::
-handle_emitter_consumer_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection))
-{
- Components::EventConsumerBase_var consumer =
- Components::EventConsumerBase::_narrow (connection.endpoint.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (consumer.in ()))
- {
- ACE_ERROR ((LM_ERROR,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_emitter_consumer_connection, "
- "for port name [%s] in instance [%s] ,"
- "there is an invalid endPoint. \n",
- connection.portName.in (),
- connection.instanceName.in ()));
- ACE_TRY_THROW (Deployment::InvalidConnection ());
- }
-
- if (CIAO::debug_level () > 11)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_emitter_consumer_connection, "
- "working on port name [%s] in instance [%s] \n",
- connection.portName.in (),
- connection.instanceName.in ()));
- }
-
- if (add_connection)
- {
- comp->connect_consumer (connection.portName.in (),
- consumer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_emitter_consumer_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] connected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
- else
- {
-// Operation not implemented by the CIDLC.
-// comp->disconnect_consumer (connection.portName.in (),
-// 0
-// ACE_ENV_ARG_PARAMETER);
-// ACE_TRY_CHECK;
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_emitter_consumer_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] disconnected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
-}
-
-
-void
-CIAO::NodeApplication_Impl::
-handle_publisher_consumer_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection))
-{
- Components::EventConsumerBase_var consumer =
- Components::EventConsumerBase::_narrow (connection.endpoint.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (consumer.in ()))
- {
- ACE_ERROR ((LM_ERROR,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_consumer_connection, "
- "for port name [%s] in instance [%s] ,"
- "there is an invalid endPoint. \n",
- connection.portName.in (),
- connection.instanceName.in ()));
- ACE_TRY_THROW (Deployment::InvalidConnection ());
- }
-
- if (CIAO::debug_level () > 11)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_consumer_connection, "
- "working on port name [%s] in instance [%s] \n",
- connection.portName.in (),
- connection.instanceName.in ()));
- }
-
- if (add_connection)
- {
- ::Components::Cookie_var cookie =
- comp->subscribe (connection.portName.in (),
- consumer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_CString key = (*create_connection_key (connection));
- this->cookie_map_.rebind (key, cookie);
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_consumer_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] connected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
- else // remove the connection
- {
- ACE_CString key = (*create_connection_key (connection));
- ::Components::Cookie_var cookie;
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_ERROR, "[FINDING KEY]: %s\n", key.c_str ()));
- }
- if (this->cookie_map_.find (key, cookie) != 0)
- {
- ACE_DEBUG ((LM_ERROR, "Error: Cookie Not Found!\n"));
- ACE_TRY_THROW (Deployment::InvalidConnection ());
- }
-
- comp->unsubscribe (connection.portName.in (),
- cookie.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- this->cookie_map_.unbind (key);
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_consumer_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] disconnected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
-}
-
-
-void
-CIAO::NodeApplication_Impl::
-handle_publisher_es_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection))
-{
- if (connection.kind != Deployment::rtecEventPublisher)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_es_connection: "
- "Unsupported event connection type\n"));
- ACE_THROW (CORBA::NO_IMPLEMENT ());
- }
-
- const CIAO::CIAO_Event_Service_ptr event_service =
- connection.event_service;
-
- if (CORBA::is_nil (event_service))
- {
- ACE_DEBUG ((LM_DEBUG, "Nil event_service\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- // supplier ID
- ACE_CString sid (connection.instanceName.in ());
- sid += "_";
- sid += connection.portName.in ();
- sid += "_publisher";
-
- if (add_connection)
- {
- ::Components::Cookie_var cookie =
- comp->subscribe (connection.portName.in (),
- event_service);
-
- ACE_CString key = (*create_connection_key (connection));
- this->cookie_map_.rebind (key, cookie);
-
- // Create a supplier_config and register it to ES
- CIAO::Supplier_Config_var supplier_config =
- event_service->create_supplier_config ();
-
- supplier_config->supplier_id (sid.c_str ());
- event_service->connect_event_supplier (supplier_config.in ());
- supplier_config->destroy ();
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_es_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] connected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
- else // remove the connection
- {
- ACE_CString key = (*create_connection_key (connection));
- ::Components::Cookie_var cookie;
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_ERROR, "[FINDING KEY]: %s\n", key.c_str ()));
- }
- if (this->cookie_map_.find (key, cookie) != 0)
- {
- ACE_DEBUG ((LM_ERROR, "Error: Cookie Not Found!\n"));
- ACE_TRY_THROW (Deployment::InvalidConnection ());
- }
-
- comp->unsubscribe (connection.portName.in (),
- cookie.in ());
- this->cookie_map_.unbind (key);
- event_service->disconnect_event_supplier (sid.c_str ());
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_publisher_es_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] disconnected.\n",
- connection.instanceName.in (),
- connection.portName.in (),
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in ()));
- }
- }
-}
-
-
-void
-CIAO::NodeApplication_Impl::
-handle_es_consumer_connection (
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection))
-{
- if (connection.kind != Deployment::rtecEventConsumer)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_es_consumer_connection: "
- "Unsupported event connection type\n"));
- ACE_THROW (CORBA::NO_IMPLEMENT ());
- }
-
- // Get ES object
- const CIAO::CIAO_Event_Service_ptr event_service =
- connection.event_service;
-
- if (CORBA::is_nil (event_service))
- {
- ACE_DEBUG ((LM_ERROR,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_es_consumer_connection: "
- "NIL event_service\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- // Get consumer object
- Components::EventConsumerBase_var consumer =
- Components::EventConsumerBase::_narrow (connection.endpoint.in ());
-
- if (CORBA::is_nil (consumer.in ()))
- {
- ACE_DEBUG ((LM_ERROR,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_es_consumer_connection: "
- "Nil consumer port object reference\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- // supplier ID
- ACE_CString sid (connection.instanceName.in ());
- sid += "_";
- sid += connection.portName.in ();
- sid += "_publisher";
-
- // consumer ID
- ACE_CString cid (connection.endpointInstanceName.in ());
- cid += "_";
- cid += connection.endpointPortName.in ();
- cid += "_consumer";
-
- if (add_connection)
- {
- CIAO::Consumer_Config_var consumer_config =
- event_service->create_consumer_config ();
-
- consumer_config->supplier_id ("Hello-Sender-idd_click_out_publisher");
- //consumer_config->supplier_id (sid.c_str ());
- consumer_config->consumer_id (cid.c_str ());
- consumer_config->consumer (consumer.in ());
-
- // Need to setup a filter, if it's specified in the descriptor
- for (CORBA::ULong i = 0; i < connection.config.length (); ++i)
- {
- if (ACE_OS::strcmp (connection.config[i].name.in (),
- "EventFilter") != 0)
- continue;
-
- // Extract the filter information
- CIAO::DAnCE::EventFilter *filter = 0;
- connection.config[i].value >>= filter;
-
- CORBA::ULong size = (*filter).sources.length ();
- consumer_config->start_disjunction_group (size);
-
- for (CORBA::ULong j = 0; j < size; ++j)
- {
- consumer_config->insert_source ((*filter).sources[j].in ());
- }
- }
-
- event_service->connect_event_consumer (consumer_config.in ());
- consumer_config->destroy ();
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_es_consumer_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] connected.\n",
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in (),
- connection.instanceName.in (),
- connection.portName.in ()));
- }
- }
- else // remove the connection
- {
- event_service->disconnect_event_consumer (cid.c_str ());
-
- if (CIAO::debug_level () > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
- "CIAO::NodeApplication_Impl::handle_es_consumer_connection\n"
- "[INSTANCE:PORT] : [%s:%s] --> [%s:%s] disconnected.\n",
- connection.endpointInstanceName.in (),
- connection.endpointPortName.in (),
- connection.instanceName.in (),
- connection.portName.in ()));
- }
- }
-}
-
-// Below code is not used at this time.
-void
-CIAO::NodeApplication_Impl::build_event_connection (
- const Deployment::Connection & connection,
- bool add_or_remove
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((Deployment::InvalidConnection,
- CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG, "CIAO::NodeApplication_Impl::build_connection ()!!!\n"));
-
- ACE_DEBUG ((LM_DEBUG, "instanceName: %s\n", connection.instanceName.in ()));
- ACE_DEBUG ((LM_DEBUG, "portName: %s\n", connection.portName.in ()));
-
- ACE_DEBUG ((LM_DEBUG, "consumer Component Name: %s\n", connection.endpointInstanceName.in ()));
- ACE_DEBUG ((LM_DEBUG, "consumer Port Name: %s\n", connection.endpointPortName.in ()));
-
- ACE_DEBUG ((LM_DEBUG, "portkind: "));
- switch (connection.kind) {
- case Deployment::Facet: ACE_DEBUG ((LM_DEBUG, "Facet\n")); break;
- case Deployment::SimplexReceptacle: ACE_DEBUG ((LM_DEBUG, "SimplexReceptacle\n")); break;
- case Deployment::MultiplexReceptacle: ACE_DEBUG ((LM_DEBUG, "MultiplexReceptacle\n")); break;
- case Deployment::EventEmitter: ACE_DEBUG ((LM_DEBUG, "EventEmitter\n")); break;
- case Deployment::EventPublisher: ACE_DEBUG ((LM_DEBUG, "EventPublisher\n")); break;
- case Deployment::EventConsumer: ACE_DEBUG ((LM_DEBUG, "EventConsumer\n")); break;
- default:
- ACE_DEBUG ((LM_DEBUG, "Unknow\n")); break;
- }
-
- const CIAO::CIAO_Event_Service_ptr event_service =
- connection.event_service;
-
-
- // Get the consumer port object reference and put it into "consumer"
- Components::EventConsumerBase_var consumer =
- Components::EventConsumerBase::_narrow (connection.endpoint.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (consumer.in ()))
- {
- ACE_DEBUG ((LM_DEBUG, "Nil consumer port object reference\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- // Get the supplier component object reference.
- ACE_CString supplier_comp_name = connection.instanceName.in ();
-
- ACE_DEBUG ((LM_DEBUG, "source component name is: %s\n", supplier_comp_name.c_str ()));
- Component_State_Info comp_state;
- if (this->component_state_map_.find (supplier_comp_name, comp_state) != 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Nil source component object reference\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- // Get the consumer component object reference.
- ACE_CString consumer_comp_name = connection.endpointInstanceName.in ();
-
- ACE_DEBUG ((LM_DEBUG, "consumer component name is: %s\n", consumer_comp_name.c_str ()));
-
- if (CORBA::is_nil (event_service))
- {
- ACE_DEBUG ((LM_DEBUG, "Nil event_service\n"));
- ACE_THROW (Deployment::InvalidConnection ());
- }
-
- // supplier ID
- ACE_CString sid (connection.instanceName.in ());
- sid += "_";
- sid += connection.portName.in ();
- sid += "_publisher";
-
- // consumer ID
- ACE_CString cid (connection.endpointInstanceName.in ());
- cid += "_";
- cid += connection.endpointPortName.in ();
- cid += "_consumer";
-
- //ACE_DEBUG ((LM_DEBUG, "Publisher: %s\n", sid.c_str ()));
- ACE_DEBUG ((LM_DEBUG, "Subscriber: %s\n", cid.c_str ()));
-
-
- if (add_or_remove == true)
- {
- CIAO::Supplier_Config_var supplier_config =
- event_service->create_supplier_config ();
-
- //supplier_config->supplier_id (sid.c_str ());
- event_service->connect_event_supplier (supplier_config.in ());
- supplier_config->destroy ();
-
- CIAO::Consumer_Config_var consumer_config =
- event_service->create_consumer_config ();
-
- //@@@
- consumer_config->supplier_id ("dummy");
- consumer_config->consumer_id (cid.c_str ());
- consumer_config->consumer (consumer.in ());
-
- event_service->connect_event_consumer (consumer_config.in ());
-
- consumer_config->destroy ();
- }
- else
- {
- event_service->disconnect_event_supplier (sid.c_str ());
- event_service->disconnect_event_consumer (cid.c_str ());
- }
-
- ACE_DEBUG ((LM_DEBUG, "CIAO::NodeApplication_Impl::build_connection () completed!!!!\n"));
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.h b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.h
deleted file mode 100644
index 9261b8b6447..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.h
+++ /dev/null
@@ -1,381 +0,0 @@
-//$Id$
-/**========================================================
- *
- * @file NodeApplication_Impl.h
- *
- * @Brief This file contains the implementation of
- * the NodeApplication interface.
- *
- * @author Tao Lu <lu@dre.vanderbilt.edu>
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- *========================================================*/
-
-#ifndef NODEAPPLICATION_IMPL_H
-#define NODEAPPLICATION_IMPL_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Synch.h"
-#include "ace/Synch_Traits.h"
-#include "ace/SString.h"
-#include "ace/Hash_Map_Manager_T.h"
-#include "tao/ORB.h"
-#include "ciao/Deployment_CoreS.h"
-#include "ciao/Server_init.h"
-#include "ciao/CIAO_common.h"
-#include "ciao/Object_Set_T.h"
-#include "ciaosvcs/Events/CIAO_EventService_Factory_impl.h"
-#include "ciaosvcs/Events/CIAO_Events_Base/CIAO_EventsS.h"
-
-#include "NodeApp_Configurator.h"
-#include "Container_Base.h"
-
-using CIAO::Utility::write_IOR;
-
-/**
- *
- * @class NodeApplication_Impl
- *
- * @brief This class implements the NodeApplication interface.
- * This interface is semantically very simillar to container
- * in the old DnC spec. However this class will also be used
- * as a Server for hosting home/component. This way we reduce the
- * complexity of the framework by omitting the componentserver layer.
- *
- * @@TODO add configuration capabilities. Threading is one of them.
- *
- * @@Assumptions:
- * 1. Now the implementation is not thread safe.
- * // @@Gan, the above assumption is _really_ bad. Could you please
- * use the lock in the imeplementation to do some simple
- * prootections.
- **/
-
-namespace CIAO
-{
- // @@ Gan, as we discussed before can you please wrap this
- // implementation in a namespace Node_Application or whatever to
- // signify that it belongs to another software piece of CIAO?
- class NodeApplication_Impl
- : public virtual POA_Deployment::NodeApplication
- {
- public:
- enum Component_State
- {
- NEW_BORN, PRE_ACTIVE, ACTIVE, POST_ACTIVE, PASSIVE, DEACTIVATED
- };
-
- typedef struct _component_state_info
- {
- Components::CCMObject_var objref_;
- Component_State state_;
- } Component_State_Info;
-
- NodeApplication_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- NodeApp_Configurator &c,
- const Static_Config_EntryPoints_Maps* static_entrypts_maps =0);
-
- /// Default destructor.
- virtual ~NodeApplication_Impl (void);
-
- /**
- * @method finishLaunch
- *
- * @brief This operation dose 2 things.
- * 1. Get the external connction (facet and Event source)
- * and connect them to the local receptacle/event sink.
- * 2. If the start augment is true, start the Components.
- * @Note:
- * The connection containes the object ref of the provided object
- * reference (facet/event consumer) of components from other NodeApplications.
- * However the name field stores the name of the port on the local component.
- */
- virtual void
- finishLaunch (const Deployment::Connections & connections,
- CORBA::Boolean start,
- CORBA::Boolean add_connection
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError,
- Deployment::InvalidConnection));
-
- /**
- * @method start
- */
- virtual void
- start (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError));
-
- /*------------- CIAO specific IDL operations (idl)----------
- *
- *-----------------------------------------------------------*/
-
- /**
- * @method ciao_preactivate
- */
- virtual void
- ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError));
-
- /**
- * @method ciao_postactivate
- */
- virtual void
- ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError));
-
- /**
- * @method ciao_passivate
- */
- virtual void
- ciao_passivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StopError));
-
- /// Initialize the NodeApplication
- virtual CORBA::Long init (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Start install homes and components.
- virtual ::Deployment::ComponentInfos *
- install (const ::Deployment::NodeImplementationInfo & node_impl_info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InstallationFailure,
- ::Components::InvalidConfiguration));
-
- /// Install a number of CIAO_Event_Service objects within the NA
- virtual ::Deployment::CIAO_Event_Services *
- install_es (const ::Deployment::ESInstallationInfos & es_infos
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::InstallationFailure));
-
- /// Get the object reference of the NodeApplicationManager.
- /// This might come in handy later.
- virtual ::CORBA::Object_ptr
- get_node_application_manager (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Access the readonly attribute.
- virtual ::Deployment::Properties *
- properties (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Remove a component instance from the NodeApplication
- virtual void remove_component (const char * inst_name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Components::RemoveFailure));
-
- /// Remove everything inside including all components and homes.
- virtual void remove (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Create a container interface, which will be hosted in this NodeApplication.
- virtual ::Deployment::Container_ptr
- create_container (const ::Deployment::Properties &properties
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Components::CreateFailure,
- ::Components::InvalidConfiguration));
-
- /// Remove a container interface.
- virtual void remove_container (::Deployment::Container_ptr cref
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Components::RemoveFailure));
-
- /// Get all container object refs
- virtual ::Deployment::Containers * get_containers (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /*------------- CIAO specific helper functions (C++)---------
- *
- *-----------------------------------------------------------*/
-
- /// Get the containing POA. This operation does *not*
- /// increase the reference count of the POA.
- virtual PortableServer::POA_ptr _default_POA (void);
-
- /// Return the cached object reference of this NodeApplication object.
- /// This operation does *NOT* increase the reference count.
- ::Deployment::NodeApplication_ptr
- get_objref (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
- /*------- CIAO helper functions for pub/sub service -------
- *
- *--------------------------------------------------------*/
-
- /// Set up a connection using the CIAO_Event_Service, which
- /// is available as a field in the <Deployment::Connection>
- /// struct type.
- /// If <add_or_remove> input parameter is true, then we will
- /// add the event connection, otherwise we will remove the
- /// event connection.
- void build_event_connection (
- const Deployment::Connection & connection,
- bool add_or_remove
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((Deployment::InvalidConnection,
- CORBA::SystemException));
-
- protected:
- /// If <add_connection> is "false", then we shall "remove"
- /// the connections, otherwise we will add these connections.
- virtual void
- finishLaunch_i (const Deployment::Connections & connections,
- CORBA::Boolean start,
- CORBA::Boolean add_connection
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StartError,
- Deployment::InvalidConnection));
-
- virtual void
- handle_facet_receptable_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection));
-
- virtual void
- handle_emitter_consumer_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection));
-
- virtual void
- handle_publisher_consumer_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection));
-
- /// Register the publisher to the CIAO event service
- /// The only fields of <connection> struct used in this method
- /// are: <type>, <event_service>, <instanceName>, <portName>.
- virtual void
- handle_publisher_es_connection (
- Components::CCMObject_ptr comp,
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection));
-
- /// Register the consumer to the CIAO event service
- virtual void
- handle_es_consumer_connection (
- const Deployment::Connection & connection,
- CORBA::Boolean add_connection)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidConnection));
-
- /// Create and initialize all the containers
- virtual CORBA::Long create_all_containers (
- const ::Deployment::ContainerImplementationInfos & container_infos
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Create a "key" for the connection
- virtual ACE_CString *
- create_connection_key (const Deployment::Connection & connection);
-
- /// To build a map between a component instance and its container
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- Deployment::Container_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> Component_Container_Map;
- typedef Component_Container_Map::iterator Component_Container_Iterator;
- Component_Container_Map component_container_map_;
-
-
- /// To store all created Component objects as well as their lifecycle
- /// states..
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- Component_State_Info,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> CCMComponent_Map;
- typedef CCMComponent_Map::iterator Component_Iterator;
- CCMComponent_Map component_state_map_;
-
- /// A Map which stores all the connection cookies
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- ::Components::Cookie_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> Cookie_Map;
- typedef Cookie_Map::iterator Cookie_Map_Iterator;
- Cookie_Map cookie_map_;
-
- /// Synchronize access to the object set.
- TAO_SYNCH_MUTEX lock_;
-
- /// Keep a list of managed Container objects.
- Object_Set<Deployment::Container, Deployment::Container_var> container_set_;
-
- /// Keep a pointer to the managing ORB serving this servant.
- CORBA::ORB_var orb_;
-
- /// Keep a pointer to the managing POA.
- // @@Gan/Jai, which POA is this? Same as the component POA or a
- // different one. My sense is that its different. Could you please
- //document it?
- PortableServer::POA_var poa_;
-
- // Configurator for allocating NodeApp resources and policies
- NodeApp_Configurator &configurator_;
-
- /// Cached properties
- Deployment::Properties properties_;
-
- /// And a reference to the NodeApplicationManager that created us.
- ::CORBA::Object_var node_app_manager_;
-
- /// Cache the object reference (of ourselves).
- ::Deployment::NodeApplication_var objref_;
-
- /// A factory to create CIAO event services
- EventService_Factory_impl es_factory_;
-
- /// Cache the (NA specific) installation info of all the
- /// CIAO_Event_Services
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- ::Deployment::ESInstallationInfos_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> ES_Installation_Map;
- typedef ES_Installation_Map::iterator ES_Installation_Map_Iterator;
- ES_Installation_Map es_info_map_;
-
- const Static_Config_EntryPoints_Maps* static_entrypts_maps_;
- private:
- /// Default constructor, noop
- NodeApplication_Impl(void);
- };
-}
-
-#if defined (__ACE_INLINE__)
-# include "NodeApplication_Impl.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /* NODEAPPLICATION_IMPL_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.inl b/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.inl
deleted file mode 100644
index b041af3b9f1..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/NodeApplication_Impl.inl
+++ /dev/null
@@ -1,84 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-
-#include "Configurator_Factory.h"
-
-ACE_INLINE
-CIAO::NodeApplication_Impl::
-NodeApplication_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- NodeApp_Configurator &c,
- const Static_Config_EntryPoints_Maps* static_entrypts_maps)
- : orb_ (CORBA::ORB::_duplicate (o)),
- poa_ (PortableServer::POA::_duplicate (p)),
- configurator_ (c),
- es_factory_ (o, p),
- static_entrypts_maps_ (static_entrypts_maps)
-{
-}
-
-// Access the readonly attribute
-ACE_INLINE
-Deployment::Properties *
-CIAO::NodeApplication_Impl::properties (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- Deployment::Properties * tmp;
-
- ACE_NEW_THROW_EX (tmp,
- Deployment::Properties (this->properties_),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- return tmp;
-}
-
-ACE_INLINE
-PortableServer::POA_ptr
-CIAO::NodeApplication_Impl::_default_POA (void)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
-
-ACE_INLINE
-CORBA::Object_ptr
-CIAO::NodeApplication_Impl::get_node_application_manager (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return ::CORBA::Object::_duplicate (this->node_app_manager_.in ());
-}
-
-/*
-ACE_INLINE void
-CIAO::NodeApplication_Impl::
-set_objref (Components::Deployment::ServerActivator_ptr act,
- const Components::ConfigValues &config,
- Components::Deployment::ComponentServer_ptr cs
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (!CORBA::is_nil (this->node_app_manager_.in ()) ||
- !CORBA::is_nil (this->objref_.in ()))
- ACE_THROW (CORBA::BAD_INV_ORDER ());
-
- this->config_ = new Components::ConfigValues (config);
- this->activator_ = Components::Deployment::ServerActivator::_duplicate (act);
- this->objref_ = Components::Deployment::ComponentServer::_duplicate (cs);
-}
-*/
-
-ACE_INLINE ::Deployment::NodeApplication_ptr
-CIAO::NodeApplication_Impl::
-get_objref (ACE_ENV_SINGLE_ARG_DECL)
-{
- if (CORBA::is_nil (this->objref_.in ()))
- {
- this->objref_ = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return this->objref_.in ();
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.cpp b/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.cpp
deleted file mode 100644
index f4b8fb42171..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.cpp
+++ /dev/null
@@ -1,468 +0,0 @@
-// $Id$
-
-#include "RTConfig_Manager.h"
-#include "ciao/CIAO_common.h"
-#include "ace/SString.h"
-
-#if !defined (__ACE_INLINE__)
-# include "RTConfig_Manager.inl"
-#endif /* __ACE_INLINE__ */
-
-void
-CIAO::RTResource_Config_Manager::init (RTCORBA::RTORB_ptr rtorb)
-{
- this->rtorb_ = RTCORBA::RTORB::_duplicate (rtorb);
-}
-
-void
-CIAO::RTResource_Config_Manager::print_resources
-(const CIAO::DAnCE::ServerResource &server_resource
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- const CIAO::DAnCE::ORBResource &orb_resource
- = server_resource.orb_config.orb_resources[0];
-
- CORBA::ULong i;
-
- // Creating and binding name with RT Threadpool
- for (i = 0; i < orb_resource.threadpool_list.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- "-RTResource_Config_Manager::print_resource threadpool: %s\n"
- "\tStack size: %d\n"
- "\tStatic: %d\n"
- "\tDynamic %d\n"
- "\tDefault Prio: %d\n"
- "\tBuffering %s\n"
- "\tMax Buffered: %d\n"
- "\tBuffer Size %d\n",
- orb_resource.threadpool_list[i].Id.in (),
- orb_resource.threadpool_list[i].stacksize,
- orb_resource.threadpool_list[i].static_threads,
- orb_resource.threadpool_list[i].dynamic_threads,
- orb_resource.threadpool_list[i].default_priority,
- (orb_resource.threadpool_list[i].allow_request_buffering ? "Y" : "N"),
- orb_resource.threadpool_list[i].max_buffered_requests,
- orb_resource.threadpool_list[i].max_request_buffer_size));
- }
-
- for (i = 0; i < orb_resource.threadpool_with_lanes_list.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- "-RTResource_Config_Manager::print_resource threadpool_with %d, lanes: %s\n",
- orb_resource.threadpool_with_lanes_list[i].threadpool_lanes.length (),
- orb_resource.threadpool_with_lanes_list[i].Id.in ()));
-
- for (CORBA::ULong l = 0;
- l < orb_resource.threadpool_with_lanes_list[i].threadpool_lanes.length ();
- ++l)
- {
- ACE_DEBUG ((LM_DEBUG,
- "\tLane %d:\n"
- "\t\tPriority: %d\n"
- "\t\tStatic: %d\n"
- "\t\tDynamic: %d\n",
- l,
- orb_resource.threadpool_with_lanes_list[i].threadpool_lanes[l].lane_priority,
- orb_resource.threadpool_with_lanes_list[i].threadpool_lanes[l].static_threads,
- orb_resource.threadpool_with_lanes_list[i].threadpool_lanes[l].dynamic_threads));
- }
- ACE_DEBUG ((LM_DEBUG,
- "\tStack size: %d\n"
- "\tBorrowing: %s\n"
- "\tBuffering %s\n"
- "\tMax Buffered: %d\n"
- "\tBuffer Size %d\n",
- orb_resource.threadpool_with_lanes_list[i].stacksize,
- (orb_resource.threadpool_with_lanes_list[i].allow_borrowing ? "Y" : "N"),
- (orb_resource.threadpool_with_lanes_list[i].allow_request_buffering ? "Y" : "N"),
- orb_resource.threadpool_with_lanes_list[i].max_buffered_requests,
- orb_resource.threadpool_with_lanes_list[i].max_request_buffer_size));
- }
-
- for (i = 0; i < orb_resource.connection_bands_list.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- "-RTResource_Config_Manager::print_resource connection %d bands: %s\n",
- orb_resource.connection_bands_list[i].bands.length (),
- orb_resource.connection_bands_list[i].Id.in ()));
-
- for (CORBA::ULong l = 0;
- l < orb_resource.connection_bands_list[i].bands.length ();
- ++l)
- {
- ACE_DEBUG ((LM_DEBUG,
- "\tBand %d Prio: %d -- %d\n",
- l,
- orb_resource.connection_bands_list[i].bands[l].low,
- orb_resource.connection_bands_list[i].bands[l].high));
- }
- }
-}
-
-void
-CIAO::RTResource_Config_Manager::init_resources
-(const CIAO::DAnCE::ServerResource &server_resource
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource.\n"));
-
- if (CORBA::is_nil (this->rtorb_.in()))
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager has not been properly initialized.\n"));
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- this->print_resources (server_resource);
- // return;
-
- const CIAO::DAnCE::ORBResource &orb_resource
- = server_resource.orb_config.orb_resources[0];
-
- CORBA::ULong i;
-
- // Creating and binding name with RT Threadpool
- for (i = 0; i < orb_resource.threadpool_list.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource threadpool: %s\n",
- orb_resource.threadpool_list[i].Id.in ()));
- RTCORBA::ThreadpoolId thr_id =
- this->rtorb_->create_threadpool
- (orb_resource.threadpool_list[i].stacksize,
- orb_resource.threadpool_list[i].static_threads,
- orb_resource.threadpool_list[i].dynamic_threads,
- orb_resource.threadpool_list[i].default_priority,
- orb_resource.threadpool_list[i].allow_request_buffering,
- orb_resource.threadpool_list[i].max_buffered_requests,
- orb_resource.threadpool_list[i].max_request_buffer_size
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK; // Simply pass back the exception here
- // for now. We need to have a better way
- // to handle execption here.
- if (this->threadpool_map_.bind (orb_resource.threadpool_list[i].Id.in (),
- thr_id) != 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Error binding thread pool Id: %s to map when initializing RTNodeApplication resources.\n", orb_resource.threadpool_list[i].Id.in ()));
- ACE_THROW (CORBA::INTERNAL ());
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource added thread pool: %s\n",
- orb_resource.threadpool_list[i].Id.in ()));
- }
- }
-
- for (i = 0; i < orb_resource.threadpool_with_lanes_list.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource threadpool_with %d, lanes: %s\n",
- orb_resource.threadpool_with_lanes_list[i].threadpool_lanes.length (),
- orb_resource.threadpool_with_lanes_list[i].Id.in ()));
-
- // Duplicate RTCORBA lanes
- RTCORBA::ThreadpoolLanes lanes
- (orb_resource.threadpool_with_lanes_list[i].threadpool_lanes.length ());
- lanes.length (orb_resource.threadpool_with_lanes_list[i].threadpool_lanes.length ());
-
- for (CORBA::ULong l = 0;
- l < orb_resource.threadpool_with_lanes_list[i].threadpool_lanes.length ();
- ++l)
- {
- lanes[l].lane_priority
- = orb_resource.threadpool_with_lanes_list[i].threadpool_lanes[l].lane_priority;
- lanes[l].static_threads
- = orb_resource.threadpool_with_lanes_list[i].threadpool_lanes[l].static_threads;
- lanes[l].dynamic_threads
- = orb_resource.threadpool_with_lanes_list[i].threadpool_lanes[l].dynamic_threads;
- }
-
- RTCORBA::ThreadpoolId thr_id =
- this->rtorb_->create_threadpool_with_lanes
- (orb_resource.threadpool_with_lanes_list[i].stacksize,
- lanes,
- orb_resource.threadpool_with_lanes_list[i].allow_borrowing,
- orb_resource.threadpool_with_lanes_list[i].allow_request_buffering,
- orb_resource.threadpool_with_lanes_list[i].max_buffered_requests,
- orb_resource.threadpool_with_lanes_list[i].max_request_buffer_size
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK; // Simply pass back the exception here
- // for now. We need to have a better way
- // to handle execption here.
-
- if (this->threadpool_map_.bind (orb_resource.threadpool_with_lanes_list[i].Id.in (),
- thr_id) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Error binding thread pool name: %s to map when "
- "initializing RTNodeApplication resources.\n",
- orb_resource.threadpool_with_lanes_list[i].Id.in ()));
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource added thread pool with lanes: %s\n",
- orb_resource.threadpool_with_lanes_list[i].Id.in ()));
- }
- }
-
- for (i = 0; i < orb_resource.connection_bands_list.length (); ++i)
- {
- RTCORBA::PriorityBands
- safebands(orb_resource.connection_bands_list[i].bands.length ());
- safebands.length (orb_resource.connection_bands_list[i].bands.length ());
-
- for (CORBA::ULong l = 0;
- l < orb_resource.connection_bands_list[i].bands.length ();
- ++l)
- {
- safebands[l].low = orb_resource.connection_bands_list[i].bands[l].low;
- safebands[l].high = orb_resource.connection_bands_list[i].bands[l].high;
- }
-
- if (this->priority_bands_map_.bind (orb_resource.connection_bands_list[i].Id.in (),
- safebands) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Error binding priority bands name: %s to map "
- "when initializing RTNodeApplication resources.\n",
- orb_resource.connection_bands_list[i].Id.in ()));
- ACE_THROW (CORBA::INTERNAL ());
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource added connection bands: %s\n",
- orb_resource.connection_bands_list[i].Id.in ()));
- }
- }
-
- // now initialize the policy set part of it.
- // server_resource.orb_config.policy_set
- const CIAO::DAnCE::PolicySets &sets = server_resource.orb_config.policy_set;
- for (CORBA::ULong i = 0; i < sets.length (); ++i)
- {
- CORBA::ULong np = sets[i].policies.length ();
- if (np == 0)
- continue;
-
- CORBA::PolicyList_var policy_list = new CORBA::PolicyList (np);
- policy_list->length (np);
-
- // Create a list of policies
- for (CORBA::ULong pc = 0; pc < np; ++pc)
- {
- policy_list[pc] = this->create_single_policy (sets[i].policies[pc]
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- // Bind the policy list to the name. The bind operation should
- // surrender the ownership of the newly created PolicyList
- // sequence to the map.
- if (this->policy_map_.bind (sets[i].Id.in (),
- policy_list) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Error binding Policy_Set with name: %s\n",
- sets[i].Id.in ()));
- ACE_THROW (CORBA::INTERNAL ());
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::init_resource added policy set: %s\n",
- sets[i].Id.in ()));
- }
- }
-}
-
-void
-CIAO::RTResource_Config_Manager::fini (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- TP_MAP::ITERATOR iter = this->threadpool_map_.begin ();
- TP_MAP::ITERATOR end = this->threadpool_map_.end ();
-
- for (; iter != end; ++iter)
- {
- this->rtorb_->destroy_threadpool ((*iter).int_id_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
-}
-
-RTCORBA::ThreadpoolId
-CIAO::RTResource_Config_Manager::find_threadpool_by_name (const char *name
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (name == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Invalid name string found in \"find_threadpool_by_name\"\n"));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
-
- RTCORBA::ThreadpoolId ret_id = 0; // return id
-
- if (this->threadpool_map_.find (name, ret_id) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Unable to find a threadpool named %s\n",
- name));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
- return ret_id;
-}
-
-RTCORBA::PriorityBands *
-CIAO::RTResource_Config_Manager::find_priority_bands_by_name (const char *name
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (name == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Invalid name string found in \"find_priority_bands_by_name\"\n"));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
- PB_MAP::ENTRY *entry = 0;
-
- if (this->priority_bands_map_.find (name, entry) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Unable to find a connection bands named %s\n",
- name));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
- RTCORBA::PriorityBands_var retv = new RTCORBA::PriorityBands;
- (*retv.ptr ()) = (*entry->int_id_.ptr ());
- return retv._retn ();
-}
-
-CORBA::PolicyList *
-CIAO::RTResource_Config_Manager::find_policies_by_name (const char *name
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (name == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Invalid name string found in \"find_policies_by_name\"\n"));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
-
- ACE_DEBUG ((LM_DEBUG, "RTResource_Config_Manager::find_policies_by_name: %s\n",
- name));
-
- POLICY_MAP::ENTRY *entry = 0;
-
- if (this->policy_map_.find (name, entry) != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Unable to find a PolicyList named %s\n",
- name));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
- // duplicate the sequence PolicyList.
- CORBA::PolicyList_var retv =
- new CORBA::PolicyList (entry->int_id_.in ());
-
- ACE_DEBUG ((LM_DEBUG, "RTResource_Config_Manager::find_policies_by_name ok.\n"));
-
- return retv._retn ();
-}
-
-CORBA::Policy_ptr
-CIAO::RTResource_Config_Manager::create_single_policy
-(const CIAO::DAnCE::PolicyDef &policy_def
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // if (CIAO::debug_level () > 9)
- ACE_DEBUG ((LM_DEBUG,
- "RTResource_Config_Manager::create_single_policy: %d\n",
- policy_def._d ()));
-
- CORBA::Policy_var retv;
-
- switch (policy_def._d ())
- {
- case RTCORBA::PRIORITY_MODEL_POLICY_TYPE:
- {
- const CIAO::DAnCE::PriorityModelPolicyDef &tmp
- = policy_def.PriorityModelDef ();
-
- retv = this->rtorb_->create_priority_model_policy ((RTCORBA::PriorityModel) tmp.priority_model,
- tmp.server_priority
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- if (! CORBA::is_nil (retv.in ()))
- ACE_DEBUG ((LM_DEBUG,
- "Create PriorityModel policy: %d - %d\n",
- tmp.priority_model, tmp.server_priority));
- }
- break;
-
- case RTCORBA::THREADPOOL_POLICY_TYPE:
- {
- RTCORBA::ThreadpoolId tpid =
- this->find_threadpool_by_name (policy_def.ThreadpoolDef().Id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- retv = this->rtorb_->create_threadpool_policy (tpid
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- if (! CORBA::is_nil (retv.in ()))
- ACE_DEBUG ((LM_DEBUG,
- "Create Threadpool policy: %s, TPid: %d\n",
- policy_def.ThreadpoolDef().Id.in (), tpid));
- }
- break;
-
- case RTCORBA::PRIORITY_BANDED_CONNECTION_POLICY_TYPE:
- {
- RTCORBA::PriorityBands_var bands =
- this->find_priority_bands_by_name (policy_def.PriorityBandedConnectionDef().Id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- retv =
- this->rtorb_->create_priority_banded_connection_policy (bands.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- if (! CORBA::is_nil (retv.in ()))
- ACE_DEBUG ((LM_DEBUG,
- "Created Banded Connection policy: %s\n",
- policy_def.PriorityBandedConnectionDef().Id.in ()));
- }
- break;
-
- default:
- ACE_DEBUG ((LM_DEBUG,
- "Invalid policy type - RTPolicy_Set_Manager::create_single_policy\n"));
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
- }
-
- return retv._retn ();
-}
-
diff --git a/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.h b/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.h
deleted file mode 100644
index a487ea72d98..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file RTConfig_Manager.h
- *
- * $Id$
- *
- * This file contains classes that manage name to configuration
- * mapping info in a RTComponentServer.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-
-#ifndef CIAO_RTCONFIG_MANAGER_H
-#define CIAO_RTCONFIG_MANAGER_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/RTCORBA/RTCORBA.h"
-#include "ciao/ServerResourcesC.h"
-#include "ace/Null_Mutex.h"
-#include "ace/SString.h"
-#include "ace/Hash_Map_Manager_T.h"
-
-namespace CIAO
-{
- /**
- * @brief RTResource_Config_Manager maintains a collection of
- * RTCORBA related resources.
- *
- * This class is responsible to create and manage a list of RTCORBA
- * related resources that are global to an RT ComponentServer. The
- * information required to create and configure these resources are
- * passed in via the @a info argument in the @c init method. These
- * resources are identified by names and can be used to associate
- * these resources with related RTPolicies. These resources are
- * destoryed along with this class.
- *
- * Currently, the only resources supported (and managed) by this
- * class are Threadpool and Threadpool_with_Lanes.
- */
- class RTResource_Config_Manager
- {
- public:
- RTResource_Config_Manager (void);
- ~RTResource_Config_Manager (void);
-
- void init (RTCORBA::RTORB_ptr rtorb);
-
- /// Initializing the RTResource_Config_Manager
- void init_resources (const CIAO::DAnCE::ServerResource &info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Finalizing the RTResource_Config_Manager and the resources it
- /// manages.
- void fini (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Query a policy set by name
- CORBA::PolicyList *find_policies_by_name (const char *name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- protected:
- void print_resources (const CIAO::DAnCE::ServerResource &info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Query a thread pool by name.
- RTCORBA::ThreadpoolId find_threadpool_by_name (const char *name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-
- /// Query a priority bands info by name.
- RTCORBA::PriorityBands *find_priority_bands_by_name (const char *name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- private:
- /// Cached an ORB reference.
- CORBA::ORB_var orb_;
-
- // Cached an RTORB reference.
- RTCORBA::RTORB_var rtorb_;
-
- /// Hash_Map stuff.
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- RTCORBA::ThreadpoolId,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> TP_MAP;
-
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- RTCORBA::PriorityBands_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> PB_MAP;
-
- /// Internal TP name to id map.
- TP_MAP threadpool_map_;
-
- /// Internal PB name to priority bands map.
- PB_MAP priority_bands_map_;
-
- /// create a single policy
- CORBA::Policy_ptr create_single_policy
- (const CIAO::DAnCE::PolicyDef &policy_def
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Hash_Map stuff.
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- CORBA::PolicyList_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> POLICY_MAP;
-
- /// Internal TP names to id map.
- POLICY_MAP policy_map_;
- };
-}
-
-#if defined (__ACE_INLINE__)
-# include "RTConfig_Manager.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_RTCONFIG_MANAGER_H */
-
diff --git a/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.inl b/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.inl
deleted file mode 100644
index 9537e7569ac..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/RTConfig_Manager.inl
+++ /dev/null
@@ -1,13 +0,0 @@
-// $Id$
-
-ACE_INLINE
-CIAO::RTResource_Config_Manager::RTResource_Config_Manager ()
-{
-}
-
-ACE_INLINE
-CIAO::RTResource_Config_Manager::~RTResource_Config_Manager ()
-{
- this->fini ();
-}
-
diff --git a/TAO/CIAO/DAnCE/NodeApplication/RTNA_Configurator_Export.h b/TAO/CIAO/DAnCE/NodeApplication/RTNA_Configurator_Export.h
deleted file mode 100644
index 5891c5aca0f..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/RTNA_Configurator_Export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CIAO_RTNA_Configurator
-// ------------------------------
-#ifndef CIAO_RTNA_CONFIGURATOR_EXPORT_H
-#define CIAO_RTNA_CONFIGURATOR_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CIAO_RTNA_CONFIGURATOR_HAS_DLL)
-# define CIAO_RTNA_CONFIGURATOR_HAS_DLL 1
-#endif /* ! CIAO_RTNA_CONFIGURATOR_HAS_DLL */
-
-#if defined (CIAO_RTNA_CONFIGURATOR_HAS_DLL) && (CIAO_RTNA_CONFIGURATOR_HAS_DLL == 1)
-# if defined (CIAO_RTNA_CONFIGURATOR_BUILD_DLL)
-# define CIAO_RTNA_Configurator_Export ACE_Proper_Export_Flag
-# define CIAO_RTNA_CONFIGURATOR_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CIAO_RTNA_CONFIGURATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CIAO_RTNA_CONFIGURATOR_BUILD_DLL */
-# define CIAO_RTNA_Configurator_Export ACE_Proper_Import_Flag
-# define CIAO_RTNA_CONFIGURATOR_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CIAO_RTNA_CONFIGURATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CIAO_RTNA_CONFIGURATOR_BUILD_DLL */
-#else /* CIAO_RTNA_CONFIGURATOR_HAS_DLL == 1 */
-# define CIAO_RTNA_Configurator_Export
-# define CIAO_RTNA_CONFIGURATOR_SINGLETON_DECLARATION(T)
-# define CIAO_RTNA_CONFIGURATOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CIAO_RTNA_CONFIGURATOR_HAS_DLL == 1 */
-
-// Set CIAO_RTNA_CONFIGURATOR_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CIAO_RTNA_CONFIGURATOR_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CIAO_RTNA_CONFIGURATOR_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CIAO_RTNA_CONFIGURATOR_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CIAO_RTNA_CONFIGURATOR_NTRACE */
-
-#if (CIAO_RTNA_CONFIGURATOR_NTRACE == 1)
-# define CIAO_RTNA_CONFIGURATOR_TRACE(X)
-#else /* (CIAO_RTNA_CONFIGURATOR_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CIAO_RTNA_CONFIGURATOR_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CIAO_RTNA_CONFIGURATOR_NTRACE == 1) */
-
-#endif /* CIAO_RTNA_CONFIGURATOR_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.cpp b/TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.cpp
deleted file mode 100644
index 2ea36daf383..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-// $Id$
-
-#include "RTNodeApp_Configurator.h"
-#include "ciao/ServerResourcesC.h"
-#include "tao/RTPortableServer/RTPortableServer.h"
-
-int
-CIAO::RTNodeApp_Configurator::pre_orb_initialize ()
-{
- ACE_DEBUG ((LM_DEBUG, "RTNodeApp_Configurator::pre_orb_init\n"));
-
- return 0;
-}
-
-int
-CIAO::RTNodeApp_Configurator::post_orb_initialize (CORBA::ORB_ptr o)
-{
- ACE_DEBUG ((LM_DEBUG, "RTNodeApp_Configurator::post_orb_init\n"));
-
- this->orb_ = CORBA::ORB::_duplicate (o);
-
- CORBA::Object_var object =
- this->orb_->resolve_initial_references ("RTORB");
-
- this->rtorb_ =
- RTCORBA::RTORB::_narrow (object.in ());
-
- this->config_manager_.init (this->rtorb_.in ());
-
- return 0;
-}
-
-int
-CIAO::RTNodeApp_Configurator::init_resource_manager
-(const ::Deployment::Properties &properties)
-{
-
- // if (CIAO::debug_level () > 9)
- ACE_DEBUG ((LM_DEBUG, "RTNodeApp_Configurator::init_resource_manager\n"));
- // @@ Should we cache the properties that we consumed here?
-
- for (CORBA::ULong i = 0; i < properties.length (); ++i)
- {
- // if (CIAO::debug_level () > 9)
- ACE_DEBUG ((LM_DEBUG, "RTNodeApp_Configurator::init_resource_manager processing property: %s\n",
- properties[i].name.in ()));
-
- if (ACE_OS::strcmp ("CIAOServerResource", properties[i].name.in ()) == 0)
- {
- const CIAO::DAnCE::ServerResource *svr_resource;
- if (properties[i].value >>= svr_resource)
- {
- this->config_manager_.init_resources (*svr_resource);
- // Now we have the information to initialize the manager.
- }
- else
- ACE_ERROR_RETURN ((LM_ERROR,
- "ERROR: RTNodeApp_Configurator::init_resource_manager unable to extract CIAOServerResources\n"), -1);
- }
-
- // Ignore other stuff
- }
-
- return 0;
-}
-
-CORBA::PolicyList *
-CIAO::RTNodeApp_Configurator::find_container_policies
-(const ::Deployment::Properties &properties)
-{
- ACE_DEBUG ((LM_DEBUG, "RTNodeApp_Configurator::find_container_policies\n"));
- // @@ Should we cache the properties that we consumed here?
-
- for (CORBA::ULong i = 0; i < properties.length (); ++i)
- {
- ACE_DEBUG ((LM_DEBUG, "RTNodeApp_Configurator::find_container_policies processing property: %s\n",
- properties[i].name.in ()));
-
- if (ACE_OS::strcmp ("ContainerPolicySet", properties[i].name) == 0)
- {
- const char *policy_name;
- if (properties[i].value >>= policy_name)
- {
- return this->config_manager_.find_policies_by_name (policy_name);
- }
- else
- ACE_ERROR_RETURN ((LM_ERROR,
- "ERROR: RTNodeApp_Configurator::find_container_policies unable to extract ContainerPolicySet\n"), 0);
- }
- }
-
- return 0;
-}
-
-
-extern "C" CIAO_RTNA_Configurator_Export CIAO::NodeApp_Configurator *create_nodeapp_configurator (void);
-
-CIAO::NodeApp_Configurator *
-create_nodeapp_configurator (void)
-{
- CIAO::RTNodeApp_Configurator *config;
- ACE_NEW_RETURN (config, CIAO::RTNodeApp_Configurator, 0);
- return config;
-}
-
diff --git a/TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.h b/TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.h
deleted file mode 100644
index 37683d04956..00000000000
--- a/TAO/CIAO/DAnCE/NodeApplication/RTNodeApp_Configurator.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// $Id$
-/**========================================================
- *
- * @file RTNodeApp_Configurator.h
- *
- * @Brief This file contains the implementation of
- * the RTNodeApp_Configurator, a concrete NodeApp_Configurator for
- * setting up real-time support for NodeApplication.
- *
- *
- * @author Nanbor Wang <nanbor@exothermic.txcorp.com>
- *========================================================*/
-
-#ifndef RTNODEAPP_CONFIGURATOR_H
-#define RTNODEAPP_CONFIGURATOR_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "NodeApp_Configurator.h"
-#include "RTNA_Configurator_Export.h"
-#include "tao/RTCORBA/RTCORBA.h"
-#include "RTConfig_Manager.h"
-
-namespace CIAO
-{
- /**
- * @class RTNodeApp_Configurator
- *
- * @brief This class implements a concrete NodeApp_Configurator for
- * setting up the NodeApplication process for RT support.
- **/
- class CIAO_RTNA_Configurator_Export RTNodeApp_Configurator :
- public NodeApp_Configurator
- {
- public:
- /// Default destructor.
- virtual ~RTNodeApp_Configurator (void) {}
-
- /**
- * @brief "pre_orb_initialize" is called before ORB_init.
- */
- virtual int pre_orb_initialize (void);
-
- /**
- * @brief "initialize" is called after NodeApplication get a hold
- * at this object.
- */
- virtual int post_orb_initialize (CORBA::ORB_ptr o);
-
- /**
- * @brief "init_resource_manager" is called by NodeApplication when
- * it receives an "install" commands.
- */
- virtual int
- init_resource_manager (const ::Deployment::Properties &properties);
-
- /**
- * @brief get a policyset by its name.
- */
- virtual CORBA::PolicyList *
- find_container_policies (const ::Deployment::Properties &properties);
-
- protected:
- CORBA::ORB_var orb_;
-
- RTCORBA::RTORB_var rtorb_;
-
- RTResource_Config_Manager config_manager_;
- };
-}
-
-#include /**/ "ace/post.h"
-#endif /* RTNODEAPP_CONFIGURATOR_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.cpp b/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
index baedfa7d7ea..9f790eb4d45 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.cpp
@@ -6,16 +6,14 @@
namespace CIAO
{
Containers_Info_Map::
- Containers_Info_Map (const Deployment::DeploymentPlan & plan,
- const Deployment::ComponentPlans & shared_components)
+ Containers_Info_Map (const Deployment::DeploymentPlan & plan)
: map_ (CIAO_DEFAULT_MAP_SIZE),
- plan_ (plan),
- shared_components_ (shared_components)
+ plan_ (plan)
{
this->initialize_map ();
this->build_map ();
}
-
+
Deployment::ContainerImplementationInfos *
Containers_Info_Map::containers_info (void)
{
@@ -23,7 +21,7 @@ namespace CIAO
// and return the corresponding sequence
Deployment::ContainerImplementationInfos_var retv;
- ACE_NEW_RETURN (retv,
+ ACE_NEW_RETURN (retv,
Deployment::ContainerImplementationInfos,
0);
@@ -41,7 +39,7 @@ namespace CIAO
}
return retv._retn ();
}
-
+
void
Containers_Info_Map::
initialize_map (void)
@@ -51,107 +49,82 @@ namespace CIAO
// Iterate over the instance list and look at the policy set id of each
// component instance. For each policy set, we create a separate container
// to host all the components with such policy set.
- // NOTE: all the component instances without policies are specified should
- // be hosted in the same container, and in our map the key is an empty string ""
for (CORBA::ULong i = 0; i < instance_len; ++i)
{
- CORBA::String_var my_resource_id ("");
- const char *my_policy_set_id = "";
+ const char * my_resource_id = "";
+ const char * my_policy_set_id = "";
if (this->plan_.instance[i].deployedResource.length () != 0)
{
- my_resource_id =
+ my_resource_id =
this->plan_.instance[i].deployedResource[0].resourceName.in ();
this->plan_.instance[i].deployedResource[0].resourceValue >>=
my_policy_set_id;
}
- // If we find a existing policy_set_id, then do nothing.
+ // If we find a different policy_set_id, then we bind it.
if (this->map_.find (my_policy_set_id) == 0)
continue;
- if (ACE_OS::strcmp (my_policy_set_id, "") == 0)
+ else if (ACE_OS::strcmp (my_policy_set_id, "") == 0)
{
- // no policy set id has been specified
+ // empty policy_set_id
Deployment::ContainerImplementationInfo * info;
ACE_NEW (info, Deployment::ContainerImplementationInfo);
this->map_.bind (my_policy_set_id, info);
continue;
}
else
+ {
+ Deployment::ContainerImplementationInfo * info;
+ ACE_NEW (info, Deployment::ContainerImplementationInfo);
- {
- Deployment::ContainerImplementationInfo * info;
- ACE_NEW (info, Deployment::ContainerImplementationInfo);
-
- // Fetch the actual policy_set_def from the infoProperty
- // Ugly due to the IDL data structure definition! :(
- CORBA::ULong j;
- CORBA::ULong infoProperty_length = this->plan_.infoProperty.length ();
- bool found = false;
-
- for (j = 0; j < infoProperty_length; ++j)
- {
- if (ACE_OS::strcmp (this->plan_.infoProperty[j].name.in (),
- "CIAOServerResources") != 0)
- continue;
-
- CIAO::DAnCE::ServerResource *server_resource_def = 0;
- this->plan_.infoProperty[j].value >>= server_resource_def;
-
- if (ACE_OS::strcmp ((*server_resource_def).Id,
- my_resource_id.in ()) == 0)
- {
- // Iterate over the policy_sets
- CORBA::ULong k;
- CORBA::ULong policy_sets_length =
- (*server_resource_def).orb_config.policy_set.length ();
- for (k = 0; k < policy_sets_length; ++k)
- {
- ACE_DEBUG ((LM_DEBUG, "Looking for policy set id: %s\n", my_policy_set_id));
- ACE_DEBUG ((LM_DEBUG, "Compare against policy set id: %s\n\n",
- (*server_resource_def).orb_config.policy_set[k].Id.in ()));
-
- if (ACE_OS::strcmp (my_policy_set_id,
+ // Fetch the actual policy_set_def from the infoProperty
+ // Ugly due to the IDL data structure definition! :(
+ CORBA::ULong j;
+ for (j = 0;
+ j < this->plan_.infoProperty.length ();
+ ++j)
+ {
+ CIAO::DAnCE::ServerResource *server_resource_def = 0;
+ this->plan_.infoProperty[j].value >>= server_resource_def;
+ if (ACE_OS::strcmp ((*server_resource_def).Id,
+ my_resource_id) == 0)
+ {
+ // Iterate over the policy_sets
+ CORBA::ULong k;
+ for (k = 0;
+ k < (*server_resource_def).orb_config.policy_set.length ();
+ ++k)
+ {
+ if (ACE_OS::strcmp (my_policy_set_id,
(*server_resource_def).orb_config.policy_set[k].Id) == 0)
- {
- // Foud the target policy set def
- info->container_config.length (1);
- info->container_config[0].name =
- CORBA::string_dup ("ContainerPolicySet");
- info->container_config[0].value <<=
- my_policy_set_id;
- // (*server_resource_def).orb_config.policy_set[k];
-
- ACE_DEBUG ((LM_DEBUG, "Found matching rt policy set*****\n\n"));
- found = true;
- break;
- }
- }
- if (k == policy_sets_length)
- {
- // No Server Resource Def found?
- ACE_DEBUG ((LM_DEBUG,
- "No matching policy set def found in resource def: %s!\n",
- my_resource_id.in ()));
- }
- }
-
- // if we successfully found the policy_set_id
- if (found)
- break;
- } // end of for loop for fetching policy_set_def
-
- if (j == this->plan_.infoProperty.length ())
- {
- // No Server Resource Def found?! Inconsistent descriptor files.
- ACE_DEBUG ((LM_ERROR, "(%P|%t) Descriptor error: "
- "No matching server resource def found for component: %s!\n",
- this->plan_.instance[i].name.in ()));
- }
- else
- this->map_.bind (my_policy_set_id, info);
- }
+ {
+ // Foud the target policy set def
+ info->container_config.length (1);
+ info->container_config[0].name =
+ CORBA::string_dup ("ContainerPolicySet");
+ info->container_config[0].value <<=
+ (*server_resource_def).orb_config.policy_set[k];
+ }
+ }
+ if (k == (*server_resource_def).orb_config.policy_set.length ())
+ {
+ // No Server Resource Def found?
+ ACE_DEBUG ((LM_DEBUG, "No matching policy set def found!\n"));
+ }
+ }
+ } // end of for loop for fetching policy_set_def
+
+ if (j == this->plan_.infoProperty.length ())
+ {
+ // No Server Resource Def found?! Inconsistent descriptor files.
+ ACE_DEBUG ((LM_ERROR, "(%P|%t) Descriptor error: "
+ "No matching server resrouce def found for component: %s!\n",
+ this->plan_.instance[i].name.in ()));
+ }
+ this->map_.bind (my_policy_set_id, info);
+ }
}
}
@@ -166,12 +139,6 @@ namespace CIAO
const Deployment::InstanceDeploymentDescription & instance =
this->plan_.instance[i];
- // If this component instance happens to be in the "shared components
- // list", then we ignore it, otherwise we shall install it.
- ACE_CString name (instance.name.in ());
- if (this->is_shared_component (name))
- continue;
-
if (! this->insert_instance_into_map (instance))
return false;
}
@@ -192,13 +159,13 @@ namespace CIAO
}
// Find the ContainerImplementationInfo entry from the map
- MAP::ENTRY *entry = 0;
+ MAP::ENTRY *entry;
if (this->map_.find (policy_set_id, entry) != 0)
return false; //should never happen
else
{
this->insert_instance_into_container (
- instance,
+ instance,
entry->int_id_->impl_infos);
}
@@ -232,7 +199,7 @@ namespace CIAO
bool svnt_found = false;
bool exec_found = false;
- // For svnt/exec artifacts
+ // For svnt artifact
for (CORBA::ULong j = 0; j < artifact_num; ++j)
{
const Deployment::ArtifactDeploymentDescription & arti =
@@ -245,13 +212,9 @@ namespace CIAO
// the modeling tool should make sure of
// uniqueness, i.e., one component implementation
// should have only 1 _svnt and 1 _exec libs.
- if ((pos = tmp.find ("_stub")) != ACE_CString::npos ||
- (pos = tmp.find ("_Stub")) != ACE_CString::npos)
- continue; // We ignore _stub artifact since it's not used.
-
if (!svnt_found &&
((pos = tmp.find ("_svnt")) != ACE_CString::npos ||
- (pos = tmp.find ("_Svnt")) != ACE_CString::npos))
+ (pos = tmp.find ("_Svnt")) != ACE_CString::npos))
{
if (arti.location.length() < 1 )
{
@@ -262,20 +225,20 @@ namespace CIAO
svnt_found = true;
// Copy the servant dll/so name.
// @@ Note: I ignore all the other locations except the first one.
- impl_infos[i].servant_dll =
+ impl_infos[i].servant_dll =
CORBA::string_dup (arti.location[0].in ());
// Get the entry point.
- const CORBA::ULong prop_length = arti.execParameter.length ();
+ const CORBA::ULong prop_length = arti.execParameter.length ();
for (CORBA::ULong prop_num = 0;
- prop_num < prop_length;
- ++prop_num)
+ prop_num < prop_length;
+ ++prop_num)
{
ACE_CString name (arti.execParameter[prop_num].name.in ());
if (name == ACE_CString ("entryPoint"))
{
- const char * entry = 0;
+ const char * entry;
(arti.execParameter[prop_num].value) >>= entry;
impl_infos[i].servant_entrypt = CORBA::string_dup (entry);
}
@@ -285,15 +248,13 @@ namespace CIAO
ACE_DEBUG ((LM_DEBUG, "We only support entrypoint at this point in CIAO.\n"));
}
}
-
- continue; // continue for the next artifact
}
// As one can see, code is duplicated here. I will come back for this later.
// For exec artifact
if (!exec_found &&
((pos = tmp.find ("_exec")) != ACE_CString::npos ||
- (pos = tmp.find ("_Exec")) != ACE_CString::npos))
+ (pos = tmp.find ("_Exec")) != ACE_CString::npos))
{
if (arti.location.length() < 1 )
{
@@ -302,22 +263,22 @@ namespace CIAO
}
exec_found = true;
- // Copy the servant dll/so name.
+ // Cpoy the servant dll/so name.
// @@ Note: I ignore all the other locations except the first one.
exec_found = true;
- impl_infos[i].executor_dll =
+ impl_infos[i].executor_dll =
CORBA::string_dup (arti.location[0].in ());
// Get the entry point.
const CORBA::ULong prop_length = arti.execParameter.length ();
for (CORBA::ULong prop_num = 0;
- prop_num < prop_length;
- ++prop_num)
+ prop_num < prop_length;
+ ++prop_num)
{
ACE_CString name (arti.execParameter[prop_num].name.in ());
if (name == ACE_CString ("entryPoint"))
{
- const char * entry = 0;
+ const char * entry;
(arti.execParameter[prop_num].value) >>= entry;
impl_infos[i].executor_entrypt = CORBA::string_dup (entry);
}
@@ -335,17 +296,3 @@ namespace CIAO
return true;
}
}
-
-bool
-CIAO::Containers_Info_Map::
-is_shared_component (ACE_CString & name)
-{
- for (CORBA::ULong i = 0; i < this->shared_components_.length (); ++i)
- {
- if (ACE_OS::strcmp (this->shared_components_[i].name.in (),
- name.c_str ()) == 0)
- return true;
- }
-
- return false;
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.h b/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.h
index 33f15ba0362..253a1f7e767 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.h
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/Containers_Info_Map.h
@@ -17,8 +17,6 @@
#include "ace/Hash_Map_Manager.h"
#include "ciao/DeploymentC.h"
#include "ace/SString.h"
-#include "CIAO_NAM_Export.h"
-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
@@ -32,33 +30,16 @@ namespace CIAO
* This is a helper class to populate the NodeImplementationInfo struct from
* a deployment plan..
*/
- class CIAO_NAM_Export Containers_Info_Map
+ class Containers_Info_Map
{
public:
- Containers_Info_Map (const Deployment::DeploymentPlan & plan,
- const Deployment::ComponentPlans & shared_components);
+ Containers_Info_Map (const Deployment::DeploymentPlan & plan);
Deployment::ContainerImplementationInfos *
containers_info (void);
private:
- void initialize_map (void);
- bool build_map (void);
-
- bool insert_instance_into_map (
- const Deployment::InstanceDeploymentDescription & instance);
-
- bool insert_instance_into_container (
- const Deployment::InstanceDeploymentDescription & instance,
- Deployment::ComponentImplementationInfos & impl_infos);
-
- /// Helper function to check wheather a component instance
- /// is in the "shared components list".
- bool is_shared_component (ACE_CString & name);
-
- //Deployment::ContainerImplementationInfos_var containers_info_;
-
typedef
ACE_Hash_Map_Manager_Ex <ACE_CString,
Deployment::ContainerImplementationInfo *,
@@ -67,13 +48,24 @@ namespace CIAO
ACE_Null_Mutex> MAP;
typedef MAP::iterator Iterator;
+
MAP map_;
const Deployment::DeploymentPlan & plan_;
- /// shared components list, passed in from NodeImplementationInfoHandler
- /// class.
- Deployment::ComponentPlans shared_components_;
+ //Deployment::ContainerImplementationInfos_var containers_info_;
+
+ private:
+
+ void initialize_map (void);
+ bool build_map (void);
+
+ bool insert_instance_into_map (
+ const Deployment::InstanceDeploymentDescription & instance);
+
+ bool insert_instance_into_container (
+ const Deployment::InstanceDeploymentDescription & instance,
+ Deployment::ComponentImplementationInfos & impl_infos);
};
}
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.cpp b/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.cpp
index cca47f5b9dd..1075d2d217a 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.cpp
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.cpp
@@ -6,29 +6,27 @@
#include "ace/SString.h"
CIAO::NodeImplementationInfoHandler::
-NodeImplementationInfoHandler (
- const ::Deployment::DeploymentPlan & plan,
- const Deployment::ComponentPlans & shared_components) :
+NodeImplementationInfoHandler (::Deployment::DeploymentPlan & plan) :
plan_ (plan),
node_info_ (0),
- containers_info_map_ (plan, shared_components)
+ containers_info_map_ (plan)
{
ACE_NEW (node_info_, ::Deployment::NodeImplementationInfo);
this->populate_server_resource_def ();
this->populate_container_impl_infos ();
}
-Deployment::NodeImplementationInfo *
+Deployment::NodeImplementationInfo *
CIAO::NodeImplementationInfoHandler::node_impl_info (void) const
{
Deployment::NodeImplementationInfo_var retv;
- ACE_NEW_RETURN (retv,
+ ACE_NEW_RETURN (retv,
Deployment::NodeImplementationInfo (this->node_info_.in ()),
0);
return retv._retn ();
}
-void
+void
CIAO::NodeImplementationInfoHandler::populate_server_resource_def (void)
{
const CORBA::ULong instance_len = plan_.instance.length ();
@@ -38,51 +36,51 @@ CIAO::NodeImplementationInfoHandler::populate_server_resource_def (void)
// Iterate over the instance list to find whether any server resource
// has been specified
- // TODO: We shoud do some sanity check here, since all the component
- // instance in this NodeApplication should have the same "server_resource_def"
- // defined. Since currently we ignored this sanity check, then will allow
- // users to specify some self-conflicting configuration in the descriptor.
for (i = 0; i < instance_len; ++i)
{
if (this->plan_.instance[i].deployedResource.length () != 0)
{
- target_resource_id =
+ target_resource_id =
this->plan_.instance[i].deployedResource[0].resourceName.in ();
+ break;
+ }
+ }
- // Some component instance has server resource usage defined, so we
- // set the <nodeapp_config> field of the NodeImplementationInfo struct.
- for (CORBA::ULong j = 0; j < this->plan_.infoProperty.length (); ++j)
- {
- CIAO::DAnCE::ServerResource *server_resource_def = 0;
- this->plan_.infoProperty[j].value >>= server_resource_def;
+ if (i != instance_len)
+ {
+ // Some component instance has server resource usage defined, so we
+ // set the <nodeapp_config> field of the NodeImplementationInfo struct.
+ for (CORBA::ULong j = 0; j < this->plan_.infoProperty.length (); ++j)
+ {
+ CIAO::DAnCE::ServerResource *server_resource_def = 0;
+ this->plan_.infoProperty[j].value >>= server_resource_def;
- if (ACE_OS::strcmp ((*server_resource_def).Id,
- target_resource_id) == 0)
- {
- // Found the target server resource def, and store it.
- this->node_info_->nodeapp_config.length (1);
+ if (ACE_OS::strcmp ((*server_resource_def).Id,
+ target_resource_id) == 0)
+ {
+ // Found the target server resource def, and store it.
+ this->node_info_->nodeapp_config.length (1);
- this->node_info_->nodeapp_config[0].name =
- CORBA::string_dup ("CIAOServerResource");
+ this->node_info_->nodeapp_config[0].name =
+ CORBA::string_dup ("CIAOServerResource");
- this->node_info_->nodeapp_config[0].value <<=
- *server_resource_def;
- break;
- }
+ this->node_info_->nodeapp_config[0].value <<=
+ server_resource_def;
+ break;
}
}
}
}
-void
+void
CIAO::NodeImplementationInfoHandler::populate_container_impl_infos (void)
{
- CORBA::ULong curr_len =
+ CORBA::ULong curr_len =
this->containers_info_map_.containers_info ()->length ();
ACE_UNUSED_ARG (curr_len);
-
+
// assignment operation
- this->node_info_->impl_infos =
+ this->node_info_->impl_infos =
*(this->containers_info_map_.containers_info ());
}
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h b/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
index 475802f3d1a..1c4825064a6 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/ImplementationInfo.h
@@ -25,7 +25,7 @@
#include "ace/SString.h"
#include "ace/Hash_Map_Manager.h"
#include "Containers_Info_Map.h"
-#include "CIAO_NAM_Export.h"
+
//@@ I wish we could have precompiled header support soon!!!
@@ -34,14 +34,12 @@
namespace CIAO
{
- class CIAO_NAM_Export NodeImplementationInfoHandler
+ class NodeImplementationInfoHandler
{
public:
- NodeImplementationInfoHandler (
- const ::Deployment::DeploymentPlan & plan,
- const Deployment::ComponentPlans & shared_components);
+ NodeImplementationInfoHandler (::Deployment::DeploymentPlan & plan);
- Deployment::NodeImplementationInfo *
+ Deployment::NodeImplementationInfo *
node_impl_info (void) const;
private:
@@ -53,11 +51,20 @@ namespace CIAO
void populate_container_impl_infos (void);
- /// Helper class that helps populate the container_impl_infos
+ /// Helper class that helps populate the container_impl_infos
/// field.
Containers_Info_Map containers_info_map_;
};
}
+//#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+//#include "ImplementationInfo.cpp"
+//#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+//#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+//#pragma implementation ("ImplementationInfo.cpp")
+//#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+
#include /**/ "ace/post.h"
#endif /* IMPLEMENTATIONIFO_H */
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager.mpc b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
index de258cedd5a..f4c2b0dd4e7 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager.mpc
@@ -1,34 +1,15 @@
// -*- MPC -*-
// $Id$
-project(NodeApplicationManager): ciao_server_dnc, ciao_deployment_svnt, dance_extension_stub {
+project(NodeApplicationManager): ciao_server_dnc, ciao_deployment_svnt, ciao_deployment_stub {
sharedname = NodeApplicationManager
- after += NodeManager_stub CIAO_TargetManager_stub
idlflags += -Wb,export_include=CIAO_NAM_Export.h -Wb,export_macro=CIAO_NAM_Export
dynamicflags = CIAO_NAM_BUILD_DLL
- dynamicflags += NOOP_CONFIGURATOR_BUILD_DLL
-// @@TODO: This ../NodeApplication business need to go. It would be better
-// to factor that stuff into a separate lib, ie. NodeApplication_Impl
-// and link it in. For the time being, since the release is so close,
-// i will leave it the way it is.
Source_Files {
NodeApplicationManager_Impl.cpp
ImplementationInfo.cpp
Containers_Info_Map.cpp
- ../NodeApplication/NodeApplication_Core.cpp
- ../NodeApplication/NodeApp_Configurator.cpp
- ../NodeApplication/NodeApplication_Impl.cpp
- ../NodeApplication/Container_Impl.cpp
- ../NodeApplication/Configurator_Factory.cpp
- ../NodeApplication/NoOp_Configurator.cpp
- }
-
- Header_Files {
- NodeApplicationManager_Impl.h
- ImplementationInfo.h
- Containers_Info_Map.h
- NodeApplicationManager_Export.h
}
}
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
index dda6b43d890..0a5a85eb72f 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
@@ -2,50 +2,244 @@
#include "NodeApplicationManager_Impl.h"
#include "ace/Process.h"
-#include "ace/Process_Manager.h"
-#include "ace/Reactor.h"
#include "ace/OS_NS_stdio.h"
-#include "ace/Vector_T.h"
-#include "ciao/Container_Base.h"
-#include "NodeApplication/NodeApplication_Impl.h"
#if !defined (__ACE_INLINE__)
# include "NodeApplicationManager_Impl.inl"
#endif /* __ACE_INLINE__ */
-bool
-CIAO::NodeApplicationManager_Impl_Base::
-is_shared_component (ACE_CString & name)
+CIAO::NodeApplicationManager_Impl::~NodeApplicationManager_Impl (void)
{
- for (CORBA::ULong i = 0; i < this->shared_components_.length (); ++i)
+}
+
+PortableServer::ObjectId
+CIAO::NodeApplicationManager_Impl::init (
+ const char *nodeapp_location,
+ const char *nodeapp_op,
+ const CORBA::ULong delay,
+ const Deployment::DeploymentPlan & plan,
+ const PortableServer::POA_ptr callback_poa
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::InvalidProperty))
+{
+ PortableServer::ObjectId_var oid;
+
+ ACE_TRY
+ {
+ if (nodeapp_location == 0)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
+ "CIAO::NodeApplicationManager_Impl::init -"
+ "NULL NodeApplication location. \n"));
+ ACE_TRY_THROW (CORBA::BAD_PARAM ());
+ }
+
+
+ if (delay == 0)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
+ "CIAO::NodeApplicationManager_Impl::init -"
+ "NodeManager must be started with a -d "
+ "of greter than zero.\n"));
+ ACE_TRY_THROW (CORBA::BAD_PARAM ());
+ }
+
+ this->nodeapp_path_.set (nodeapp_location);
+ this->spawn_delay_ = delay;
+ this->nodeapp_command_op_ = CORBA::string_dup (nodeapp_op);
+
+ // Make a copy of the plan for later usage.
+ this->plan_ = plan;
+
+ // Cache the call back POA for callback object.
+ this->callback_poa_ = PortableServer::POA::_duplicate (callback_poa);
+
+ // Activate the ourself.
+ oid = this->poa_->activate_object (this
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CORBA::Object_var obj =
+ this->poa_->id_to_reference (oid.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // And cache the object reference.
+ this->objref_ =
+ Deployment::NodeApplicationManager::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
{
- if (ACE_OS::strcmp (this->shared_components_[i].name.in (),
- name.c_str ()) == 0)
- return true;
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "NodeApplicationManager_Impl::init\t\n");
+ ACE_RE_THROW;
}
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (0);
+
+ //return this object reference
+ return oid.in ();
+}
+
+void
+CIAO::NodeApplicationManager_Impl::
+parse_config_value (ACE_CString & str
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::InvalidProperty))
+{
+ // The unused arg is for future improvemnts.
+ ACE_UNUSED_ARG (str);
- return false;
+ ACE_THROW ( CORBA::NO_IMPLEMENT() );
}
-bool
-CIAO::NodeApplicationManager_Impl_Base::
-is_external_component (ACE_CString & name)
+Deployment::NodeApplication_ptr
+CIAO::NodeApplicationManager_Impl::
+create_node_application (const ACE_CString & options
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::ResourceNotAvailable,
+ Deployment::StartError,
+ Deployment::InvalidProperty))
{
- for (CORBA::ULong i = 0; i < this->external_components_.length (); ++i)
+ CIAO_TRACE("CIAO::NodeApplicationManager_Impl::create_node_application");
+ Deployment::NodeApplication_var retval;
+ Deployment::Properties_var prop;
+
+ ACE_NEW_THROW_EX (prop,
+ Deployment::Properties,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (Deployment::NodeApplication::_nil());
+
+ // @@ Create a new callback servant.
+ CIAO::NodeApplication_Callback_Impl * callback_servant = 0;
+ ACE_NEW_THROW_EX (callback_servant,
+ CIAO::NodeApplication_Callback_Impl (this->orb_.in (),
+ this->callback_poa_.in (),
+ this->objref_.in (),
+ prop.in ()),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (Deployment::NodeApplication::_nil());
+
+ PortableServer::ServantBase_var servant_var (callback_servant);
+ PortableServer::ObjectId_var cb_id
+ = this->callback_poa_->activate_object (callback_servant
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (Deployment::NodeApplication::_nil());
+
+ ACE_Process node_application;
+ ACE_Process_Options p_options;
+
+ ACE_TRY
{
- if (ACE_OS::strcmp (this->external_components_[i].name.in (),
- name.c_str ()) == 0 &&
- ACE_OS::strcmp (this->external_components_[i].plan_uuid.in (),
- this->plan_.UUID.in ()))
- return true;
+ CORBA::Object_var cb_obj =
+ this->callback_poa_->id_to_reference (cb_id.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CIAO::NodeApplication_Callback_var cb =
+ CIAO::NodeApplication_Callback::_narrow (cb_obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CORBA::String_var cb_ior =
+ this->orb_->object_to_string (cb.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // spawn the new NodeApplication.
+ p_options.command_line ("%s -k %s"
+ "%s",
+ this->nodeapp_path_.c_str (),
+ cb_ior.in (),
+ options.c_str ());
+
+ p_options.avoid_zombies (1);
+
+ if (node_application.spawn (p_options) == -1)
+ {
+ if (CIAO::debug_level () > 1)
+ {
+ ACE_DEBUG ((LM_ERROR,
+ "Fail to spawn a NodeApplication process\n"));
+ }
+
+ ACE_TRY_THROW
+ (Deployment::ResourceNotAvailable
+ ("Failed to spawn process",
+ "NodeApplication",
+ "",
+ "",
+ ""));
+ }
+
+ // wait for nodeApp to pass back its object reference. with a
+ // timeout value. using perform_work and stuff.
+
+ int looping = 1;
+
+ ACE_Time_Value timeout (this->spawn_delay_, 0);
+
+ while (looping)
+ {
+ this->orb_->perform_work (timeout
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ retval = callback_servant->get_nodeapp_ref ();
+
+ if (timeout == ACE_Time_Value::zero || !CORBA::is_nil (retval.in ()))
+ looping = 0;
+ }
+
+ if (CORBA::is_nil (retval.in ()))
+ {
+ if (CIAO::debug_level () > 1)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "Fail to acquire the NodeApplication object\n"));
+ }
+
+ ACE_TRY_THROW (Deployment::ResourceNotAvailable ());
+ }
+
+ {
+ //ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+ this->nodeapp_ =
+ Deployment::NodeApplication::_duplicate (retval.in ());
+ }
}
+ ACE_CATCHANY
+ {
+ this->callback_poa_->deactivate_object (cb_id.in ());
+ ACE_TRY_CHECK;
- return false;
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (Deployment::NodeApplication::_nil ());
+
+ this->callback_poa_->deactivate_object (cb_id.in () ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (Deployment::NodeApplication::_nil ());
+
+ if (CIAO::debug_level () > 1)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO::NodeApplicationManager_Impl::NodeApplication spawned!\n"));
+ }
+
+ return retval._retn ();
}
Deployment::Connections *
-CIAO::NodeApplicationManager_Impl_Base::
+CIAO::NodeApplicationManager_Impl::
create_connections (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
@@ -67,56 +261,58 @@ create_connections (ACE_ENV_SINGLE_ARG_DECL)
iter != end;
++iter)
{
- // If this component is in the "shared components list", then we
- // should just simply fetch the port object references from the
- // NodeManager.
- ACE_CString comp_name ((*iter).ext_id_.c_str ());
-
// Get all the facets first
- Components::FacetDescriptions_var facets;
-
- if (is_shared_component (comp_name))
- facets = this->node_manager_->get_all_facets (comp_name);
- else
+ if (CIAO::debug_level () > 9)
{
- facets = ((*iter).int_id_)->get_all_facets (ACE_ENV_SINGLE_ARG_PARAMETER);
- this->node_manager_->set_all_facets (comp_name, facets);
+ ACE_DEBUG ((LM_DEBUG,
+ "DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
+ "CIAO::NodeApplicationManager_Impl::create_connections -"
+ "getting facets for the component "
+ "instance [%s] \n",
+ (*iter).ext_id_.c_str ()));
}
- if (CIAO::debug_level () > 20)
+ Components::FacetDescriptions_var facets =
+ ((*iter).int_id_)->get_all_facets (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ if (CIAO::debug_level () > 9)
{
ACE_DEBUG ((LM_DEBUG,
"DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
"CIAO::NodeApplicationManager_Impl::create_connections -"
"success getting facets for the component "
"instance [%s] \n",
- comp_name.c_str ()));
+ (*iter).ext_id_.c_str ()));
}
// Get all the event consumers
- Components::ConsumerDescriptions_var consumers;
-
- if (is_shared_component (comp_name))
- consumers = this->node_manager_->get_all_consumers (comp_name);
- else
+ if (CIAO::debug_level () > 9)
{
- consumers =
- ((*iter).int_id_)->get_all_consumers (ACE_ENV_SINGLE_ARG_PARAMETER);
- this->node_manager_->set_all_consumers (comp_name, consumers);
+ ACE_DEBUG ((LM_DEBUG,
+ "DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
+ "CIAO::NodeApplicationManager_Impl::create_connections -"
+ "getting consumers for the component "
+ "instance [%s] \n",
+ (*iter).ext_id_.c_str ()));
}
- if (CIAO::debug_level () > 20)
+ Components::ConsumerDescriptions_var consumers =
+ ((*iter).int_id_)->get_all_consumers (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ if (CIAO::debug_level () > 9)
{
ACE_DEBUG ((LM_DEBUG,
"DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
"CIAO::NodeApplicationManager_Impl::create_connections -"
"success getting consumers for the component "
"instance [%s] \n",
- comp_name.c_str ()));
+ (*iter).ext_id_.c_str ()));
}
- CORBA::ULong facet_len = facets->length ();
- CORBA::ULong consumer_len = consumers->length ();
+ const CORBA::ULong facet_len = facets->length ();
+ const CORBA::ULong consumer_len = consumers->length ();
CORBA::ULong curr_len = retv->length ();
retv->length (curr_len + facet_len + consumer_len);
@@ -127,7 +323,7 @@ create_connections (ACE_ENV_SINGLE_ARG_DECL)
Deployment::Connection & conn = retv[len];
conn.instanceName = (*iter).ext_id_.c_str ();
conn.portName = facets[i]->name ();
- if (CIAO::debug_level () > 20)
+ if (CIAO::debug_level () > 9)
{
ACE_DEBUG ((LM_DEBUG,
"DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
@@ -145,7 +341,7 @@ create_connections (ACE_ENV_SINGLE_ARG_DECL)
Deployment::Connection & conn = retv[len];
conn.instanceName = (*iter).ext_id_.c_str ();
conn.portName = consumers[i]->name ();
- if (CIAO::debug_level () > 20)
+ if (CIAO::debug_level () > 9)
{
ACE_DEBUG ((LM_DEBUG,
"DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
@@ -162,7 +358,7 @@ create_connections (ACE_ENV_SINGLE_ARG_DECL)
}
Deployment::Application_ptr
-CIAO::NodeApplicationManager_Impl_Base::
+CIAO::NodeApplicationManager_Impl::
startLaunch (const Deployment::Properties & configProperty,
Deployment::Connections_out providedReference,
CORBA::Boolean start
@@ -174,22 +370,10 @@ startLaunch (const Deployment::Properties & configProperty,
{
ACE_TRY
{
+
CIAO_TRACE("CIAO::NodeApplicationManager_Impl::startLaunch");
ACE_UNUSED_ARG (configProperty);
ACE_UNUSED_ARG (start);
-
- // In this step, we know all the "shared components" are
- // the external components to ourself.
- this->external_components_ = this->shared_components_;
-
- // If no additional components need to be installed, then we simply
- // create a NA, but doesn't install any components on it.
- if (this->plan_.instance.length () == this->shared_components_.length ())
- {
- ACE_DEBUG ((LM_DEBUG, "Prespawn a NodeApplication process without "
- "installing any components.\n"));
- }
-
/**
* 1. First Map properties to TAO/CIAO specific property/configurations
* 2. Necessary property checking (needed?)
@@ -198,63 +382,27 @@ startLaunch (const Deployment::Properties & configProperty,
* 5. get the provided connection endpoints back and return them.
*/
- NodeImplementationInfoHandler handler (this->plan_, this->shared_components_);
+ NodeImplementationInfoHandler handler (this->plan_);
Deployment::NodeImplementationInfo * node_info =
handler.node_impl_info ();
if (!node_info)
{
- ACE_ERROR ((LM_ERROR,
+ ACE_ERROR ((LM_ERROR,
"DAnCE (%P|%t) NodeApplicationManager.cpp -"
"CIAO::NodeApplicationManager_Impl::startLaunch -"
"Failed to create Node Implementation Infos!\n"));
- ACE_TRY_THROW
+ ACE_TRY_THROW
(Deployment::StartError ("NodeApplicationManager_Imp::startLaunch",
"Unable to get node level infos"));
}
- CIAO::DAnCE::ServerResource *server_resource = 0;
- for (CORBA::ULong k = 0; k < node_info->nodeapp_config.length (); ++k)
- {
- if (ACE_OS::strcmp (node_info->nodeapp_config[k].name.in (),
- "CIAOServerResources") == 0)
- {
- node_info->nodeapp_config[0].value >>= server_resource;
- break; // Ignore the rest of the NodeApp_Config values
- }
- }
-
// Now spawn the NodeApplication process.
- // @@TODO: we need to pass arguments to the nodeapplication, ie
- // naming service endpoints, if necessary
+ // @@TODO: we need to pass arguments to the nodeapplication, ie naming service endpoints, if necessary
// (will)
ACE_CString cmd_option (this->nodeapp_command_op_.in ());
-
- if (server_resource)
- {
- // If command line options are specified through RTCCM descriptors,
- // then we should honor these command line options as well.
- for (CORBA::ULong arg_i = 0;
- arg_i < (*server_resource).args.length ();
- ++arg_i)
- {
- cmd_option += " "; // space between command line args
- cmd_option += (*server_resource).args[arg_i].in ();
- }
-
- // If service configuration file is specified through RTCCM
- // descriptors, then we should honor it as well.
- if (ACE_OS::strcmp ((*server_resource).svcconf.in (),
- "") != 0)
- {
- cmd_option += " -ORBSvcConf ";
- cmd_option += (*server_resource).svcconf.in ();
- }
- }
-
-
Deployment::NodeApplication_var tmp =
create_node_application (cmd_option.c_str () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -270,7 +418,7 @@ startLaunch (const Deployment::Properties & configProperty,
const CORBA::ULong info_len = infos.length ();
for (CORBA::ULong i = 0; i < info_len; ++i)
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"DAnCE (%P|%t) NodeApplicationManager.cpp -"
"CIAO::NodeApplicationManager_Impl::startLaunch -"
"The info for installation: "
@@ -283,14 +431,14 @@ startLaunch (const Deployment::Properties & configProperty,
}
}
- // This is what we will get back, a sequence of component object refs.
+ // This is what we will get back, a sequence of compoent object refs.
Deployment::ComponentInfos_var comp_info;
// This will install all homes and components.
comp_info = this->nodeapp_->install (*node_info ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- // Now fill in the map we have for the "newly installed" components.
+ // Now fill in the map we have for the components.
const CORBA::ULong comp_len = comp_info->length ();
for (CORBA::ULong len = 0;
len < comp_len;
@@ -299,69 +447,48 @@ startLaunch (const Deployment::Properties & configProperty,
//Since we know the type ahead of time...narrow is omitted here.
if (this->component_map_.
bind (comp_info[len].component_instance_name.in(),
- Components::CCMObject::_duplicate
+ Components::CCMObject::_duplicate
(comp_info[len].component_ref.in())))
{
ACE_CString error ("Duplicate component instance name ");
error += comp_info[len].component_instance_name.in();
- ACE_TRY_THROW
- (Deployment::StartError
- ("NodeApplicationManager_Impl::startLaunch",
- error.c_str ()));
- }
- }
-
- // Also, we need to fill in the map about those "shared components"
- // For now, we could use "NIL" component object reference for these
- // shared components since they are not used anyway.
- CORBA::ULong shared_comp_length = this->shared_components_.length ();
- for (CORBA::ULong j = 0; j < shared_comp_length; ++j)
- {
- if (this->component_map_.
- bind (this->shared_components_[j].name.in (),
- Components::CCMObject::_nil ()))
- {
- ACE_CString error ("Duplicate component instance name ");
- error += this->shared_components_[j].name.in();
-
- ACE_TRY_THROW
- (Deployment::StartError
+ ACE_TRY_THROW
+ (Deployment::StartError
("NodeApplicationManager_Impl::startLaunch",
error.c_str ()));
}
}
-
- providedReference =
+ providedReference =
this->create_connections (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
if (providedReference == 0)
{
- ACE_TRY_THROW
- (Deployment::StartError
+ ACE_TRY_THROW
+ (Deployment::StartError
("NodeApplicationManager_Impl::startLaunch",
- "Error creating connections for components during startLaunch."));
+ "Error creating connections during startLaunch."));
}
}
ACE_CATCH (Deployment::UnknownImplId, e)
{
ACE_THROW_RETURN (Deployment::StartError (e.name.in (),
- e.reason.in ()),
- Deployment::Application::_nil());
+ e.reason.in ()),
+ Deployment::Application::_nil());
}
ACE_CATCH (Deployment::ImplEntryPointNotFound, e)
{
ACE_THROW_RETURN (Deployment::StartError (e.name.in (),
- e.reason.in ()),
- Deployment::Application::_nil());
+ e.reason.in ()),
+ Deployment::Application::_nil());
}
ACE_CATCH (Deployment::InstallationFailure,e)
{
ACE_THROW_RETURN (Deployment::StartError (e.name.in (),
- e.reason.in ()),
- Deployment::Application::_nil());
+ e.reason.in ()),
+ Deployment::Application::_nil());
}
ACE_ENDTRY;
ACE_CHECK_RETURN (Deployment::Application::_nil());
@@ -369,272 +496,8 @@ startLaunch (const Deployment::Properties & configProperty,
return Deployment::NodeApplication::_duplicate (this->nodeapp_.in ());
}
-
-Deployment::Application_ptr
-CIAO::NodeApplicationManager_Impl_Base::
-perform_redeployment (const Deployment::Properties & configProperty,
- Deployment::Connections_out providedReference,
- CORBA::Boolean add_or_remove, // true means "add" only
- CORBA::Boolean start
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::PlanError,
- ::Deployment::InstallationFailure,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InvalidConnection,
- ::Deployment::InvalidProperty,
- ::Components::RemoveFailure))
-{
- // Prerequisite:
- // (1) If this is an existiing old NAM, then <nodeapp_> is ready to use.
- // We also got a copy of <plan_> as well as all the installed components
- // in the <component_map_>.
- // (2) Then we should call <install> operation on the NA, but in order to do this,
- // we must pack all the to-be-added components into some appropriate
- // data structure called "NodeImplementationInfo".
- // (3) We should also call <remove> operation on the NA to remove those
- // to-be-removed components, and the "comp_inst_name" could be as input.
- // (4) We should also consider removing all the unneeded "connections", but
- // this should be driven by the DAM, so it looks like that we need to
- // add another operation on the NA interface which is a counterpart of
- // <finishLaunch>, something like <finishLaunch_remove_only>.
- //
- //
- //
- // (1) If this is an brand new NAM, then only new installation is needed.
- // (2) Then we could pretty much replicate the "startLaunch" implementation.
- // This capability is useful to install a set of new components into
- // some totally new nodes.
-
- ACE_UNUSED_ARG (configProperty);
- ACE_UNUSED_ARG (start);
-
- CIAO_TRACE ("CIAO::NodeApplicationManager_Impl_Base::perform_redeployment");
-
- ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) NodeApplicationManager_Impl_Base: "
- "invoked CIAO::NodeApplicationManager_Impl_Base::perform_redeployment \n"));
- ACE_TRY
- {
- if (! CORBA::is_nil (this->nodeapp_.in ()))
- {
- if (add_or_remove == true)
- {
- this->add_new_components ();
- }
- else
- {
- this->remove_existing_components ();
- }
-
- // NOTE: We are propogating back "all" the facets/consumers object
- // references to the DAM, including the previous existing ones.
- providedReference =
- this->create_connections (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (providedReference == 0)
- {
- ACE_TRY_THROW
- (Deployment::InstallationFailure
- ("NodeApplicationManager_Impl::startLaunch",
- "Error creating connections during startLaunch."));
- }
- }
- else // This is a new NodeApplication process, then we need to install
- // all the components. We should try to reuse much of the above code.
- {
- this->startLaunch (configProperty,
- providedReference,
- start
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCH (Deployment::UnknownImplId, e)
- {
- ACE_THROW_RETURN (Deployment::UnknownImplId (e.name.in (),
- e.reason.in ()),
- Deployment::Application::_nil());
- }
- ACE_CATCH (Deployment::ImplEntryPointNotFound, e)
- {
- ACE_THROW_RETURN (Deployment::ImplEntryPointNotFound (e.name.in (),
- e.reason.in ()),
- Deployment::Application::_nil());
- }
- ACE_CATCH (Deployment::InstallationFailure,e)
- {
- ACE_THROW_RETURN (Deployment::InstallationFailure (e.name.in (),
- e.reason.in ()),
- Deployment::Application::_nil());
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (Deployment::Application::_nil());
-
- return Deployment::NodeApplication::_duplicate (this->nodeapp_.in ());
-}
-
-
void
-CIAO::NodeApplicationManager_Impl_Base::
-add_new_components ()
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Deployment::PlanError,
- ::Deployment::InstallationFailure,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InvalidConnection,
- ::Deployment::InvalidProperty))
-{
- ACE_TRY
- {
- // We ignored those components that are already in the <component_map_>, for
- // the rest ones, we pack them into NodeImplementationInfo.
- Deployment::DeploymentPlan tmp_plan = this->plan_;
- tmp_plan.instance.length (0);
-
- const CORBA::ULong length = this->plan_.instance.length ();
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- // add the new components into the tmp_plan
- if (this->component_map_.find (this->plan_.instance[i].name.in ()) != 0)
- {
- CORBA::ULong cur_len = tmp_plan.instance.length ();
- tmp_plan.instance.length (cur_len + 1);
- tmp_plan.instance[cur_len] = this->plan_.instance[i];
- }
- }
-
- // If there are no new components to be installed ...
- if (tmp_plan.instance.length () == 0)
- return;
-
- // package the components
- NodeImplementationInfoHandler handler (tmp_plan,
- this->shared_components_);
- Deployment::NodeImplementationInfo * node_info =
- handler.node_impl_info ();
-
- if (!node_info)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) NodeApplicationManager.cpp -"
- "CIAO::NodeApplicationManager_Impl::perform_redeployment -"
- "Failed to create Node Implementation Infos!\n"));
-
- ACE_TRY_THROW
- (Deployment::PlanError ("NodeApplicationManager_Imp::perform_redeployment",
- "Unable to get node level infos"));
- }
-
- // Install the components
- // This is what we will get back, a sequence of component object refs.
- Deployment::ComponentInfos_var comp_info;
- comp_info = this->nodeapp_->install (*node_info ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Now fill in the map we have for the components.
- const CORBA::ULong comp_len = comp_info->length ();
- for (CORBA::ULong len = 0;
- len < comp_len;
- ++len)
- {
- //Since we know the type ahead of time...narrow is omitted here.
- if (this->component_map_.
- bind (comp_info[len].component_instance_name.in(),
- Components::CCMObject::_duplicate
- (comp_info[len].component_ref.in())))
- {
- ACE_CString error ("Duplicate component instance name ");
- error += comp_info[len].component_instance_name.in();
-
- ACE_TRY_THROW
- (Deployment::PlanError
- ("NodeApplicationManager_Impl::startLaunch",
- error.c_str ()));
- }
- }
- }
- ACE_CATCHANY
- {
- ACE_DEBUG ((LM_ERROR, "NodeApplicationManager_Impl_Base::"
- "add_new_components () exception caught.\n"));
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
-}
-
-
-void
-CIAO::NodeApplicationManager_Impl_Base::
-remove_existing_components ()
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Deployment::PlanError,
- ::Components::RemoveFailure))
-{
- ACE_TRY
- {
- ACE_Vector<ACE_CString> gone_component_list;
-
- for (Component_Iterator iter (this->component_map_.begin ());
- iter != this->component_map_.end ();
- ++iter)
- {
- ACE_CString comp_name ((*iter).ext_id_.c_str ());
-
- // If this component is not in the new deployment plan, then we
- // should destroy this component and unbind from the map.
- if (this->is_to_be_removed (comp_name.c_str ()))
- {
- ((*iter).int_id_)->ciao_passivate ();
- this->nodeapp_->remove_component (comp_name.c_str ());
- gone_component_list.push_back (comp_name);
- }
- }
-
- for (size_t i = 0; i < gone_component_list.size (); ++i)
- this->component_map_.unbind (gone_component_list[i]);
- }
- ACE_CATCHANY
- {
- ACE_DEBUG ((LM_ERROR, "NodeApplicationManager_Impl_Base::"
- "remove_existing_components () exception caught.\n"));
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
-}
-
-bool
-CIAO::NodeApplicationManager_Impl_Base::
-is_to_be_removed (const char * name)
-{
- const CORBA::ULong length = this->plan_.instance.length ();
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- if (ACE_OS::strcmp (name,
- this->plan_.instance[i].name.in ()) == 0)
- {
- // If we have found it in the new plan, then this component
- // needs to be kept, and should not be removed.
- return false;
- }
- }
- return true;
-}
-
-void
-CIAO::NodeApplicationManager_Impl_Base::
-set_shared_components (const Deployment::ComponentPlans & shared
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException))
-{
- this->shared_components_ = shared;
-}
-
-void
-CIAO::NodeApplicationManager_Impl_Base::
+CIAO::NodeApplicationManager_Impl::
destroyApplication (Deployment::Application_ptr app
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
@@ -642,7 +505,6 @@ destroyApplication (Deployment::Application_ptr app
{
CIAO_TRACE("CIAO::NodeApplicationManager_Impl::destroyApplication");
ACE_UNUSED_ARG (app);
- printf("Entering NAM_Impl::destroyApplication\n");
//ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_);
//@@ Since we know there is only 1 nodeapp so the passed in
@@ -650,384 +512,8 @@ destroyApplication (Deployment::Application_ptr app
if (CORBA::is_nil (this->nodeapp_.in () ))
ACE_THROW (Deployment::StopError ());
- // Iterate over all the components within this NAM, and if it's
- // not a shared component, then remove it. If all the components
- // are removed, then we shall kill the NA totally.
- for (CORBA::ULong i = 0; i < this->plan_.instance.length (); ++i)
- {
- ACE_CString name = plan_.instance[i].name.in ();
- if (this->is_shared_component (name))
- {
- this->component_map_.unbind (name);
- continue;
- }
-
- // If this is not a shared component and is installed within
- // this NAM, then remove it. Otherwise, we do nothing.
- // Ideally, we should ask NM to remove this component for
- // us even if this is not within this NAM.
- if (! this->is_external_component (name))
- {
- this->nodeapp_->remove_component (name.c_str ());
- this->component_map_.unbind (name);
- }
- }
-
- // Call remove on NodeApplication, if all the components are removed,
- // then the NodeApplication will kill itself.
this->nodeapp_->remove (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- printf("Exiting NAM_Impl::destroyApplication\n");
return;
}
-
-
-CIAO::NodeApplicationManager_Impl::~NodeApplicationManager_Impl (void)
-{
-}
-
-CIAO::NodeApplicationManager_Impl::
-NodeApplicationManager_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p)
- : NodeApplicationManager_Impl_Base (o, p)
-{
-}
-
-PortableServer::ObjectId
-CIAO::NodeApplicationManager_Impl::init (
- const char *nodeapp_location,
- const char *nodeapp_op,
- const CORBA::ULong delay,
- const Deployment::DeploymentPlan & plan,
- const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidProperty))
-{
- PortableServer::ObjectId_var oid;
-
- ACE_TRY
- {
- if (nodeapp_location == 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
- "CIAO::NodeApplicationManager_Impl::init -"
- "NULL NodeApplication location. \n"));
- ACE_TRY_THROW (CORBA::BAD_PARAM ());
- }
-
- if (delay == 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
- "CIAO::NodeApplicationManager_Impl::init -"
- "NodeManager must be started with a -d "
- "of greter than zero.\n"));
- ACE_TRY_THROW (CORBA::BAD_PARAM ());
- }
-
- this->nodeapp_path_.set (nodeapp_location);
- this->spawn_delay_ = delay;
- this->nodeapp_command_op_ = CORBA::string_dup (nodeapp_op);
- this->node_manager_ = nm;
-
- // Make a copy of the plan for later usage.
- this->plan_ = plan;
-
- // Cache the call back POA for callback object.
- this->callback_poa_ = PortableServer::POA::_duplicate (callback_poa);
-
- // Activate the ourself.
- oid = this->poa_->activate_object (this
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj =
- this->poa_->id_to_reference (oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // And cache the object reference.
- this->objref_ =
- Deployment::NodeApplicationManager::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "NodeApplicationManager_Impl_Base::init\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (0);
-
- //return this object reference
- return oid.in ();
-}
-
-Deployment::NodeApplication_ptr
-CIAO::NodeApplicationManager_Impl::
-create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::ResourceNotAvailable,
- Deployment::StartError,
- Deployment::InvalidProperty))
-{
- CIAO_TRACE("CIAO::NodeApplicationManager_Impl::create_node_application");
- Deployment::NodeApplication_var retval;
- Deployment::Properties_var prop;
-
- ACE_NEW_THROW_EX (prop,
- Deployment::Properties,
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (Deployment::NodeApplication::_nil());
-
- // @@ Create a new callback servant.
- CIAO::NodeApplication_Callback_Impl * callback_servant = 0;
- ACE_NEW_THROW_EX (callback_servant,
- CIAO::NodeApplication_Callback_Impl (this->orb_.in (),
- this->callback_poa_.in (),
- this->objref_.in (),
- prop.in ()),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (Deployment::NodeApplication::_nil());
-
- PortableServer::ServantBase_var servant_var (callback_servant);
- PortableServer::ObjectId_var cb_id
- = this->callback_poa_->activate_object (callback_servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Deployment::NodeApplication::_nil());
-
- ACE_Process_Options p_options;
- ACE_Process_Manager process_manager;
-
- process_manager.open (10, ACE_Reactor::instance ());
-
- ACE_TRY
- {
- CORBA::Object_var cb_obj =
- this->callback_poa_->id_to_reference (cb_id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CIAO::NodeApplication_Callback_var cb =
- CIAO::NodeApplication_Callback::_narrow (cb_obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var cb_ior =
- this->orb_->object_to_string (cb.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // spawn the new NodeApplication.
- p_options.command_line ("%s -k %s "
- "%s",
- this->nodeapp_path_.c_str (),
- cb_ior.in (),
- options.c_str ());
-
- p_options.avoid_zombies (1);
-
- if (process_manager.spawn (p_options) == -1)
- {
- if (CIAO::debug_level () > 1)
- {
- ACE_DEBUG ((LM_ERROR,
- "Fail to spawn a NodeApplication process\n"));
- }
-
- ACE_TRY_THROW
- (Deployment::ResourceNotAvailable
- ("Failed to spawn process",
- "NodeApplication",
- "",
- "",
- ""));
- }
-
- // wait for nodeApp to pass back its object reference. with a
- // timeout value. using perform_work and stuff.
- bool looping = true;
-
- ACE_Time_Value timeout (this->spawn_delay_, 0);
-
- while (looping)
- {
- this->orb_->perform_work (timeout
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- retval = callback_servant->get_nodeapp_ref ();
-
- if (timeout == ACE_Time_Value::zero || !CORBA::is_nil (retval.in ()))
- looping = false;
- }
-
- if (CORBA::is_nil (retval.in ()))
- {
- if (CIAO::debug_level () > 1)
- {
- ACE_ERROR ((LM_ERROR,
- "Fail to acquire the NodeApplication object\n"));
- }
-
- ACE_TRY_THROW (Deployment::ResourceNotAvailable ());
- }
-
- {
- //ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
- this->nodeapp_ =
- Deployment::NodeApplication::_duplicate (retval.in ());
- }
- }
- ACE_CATCHANY
- {
- this->callback_poa_->deactivate_object (cb_id.in ());
- ACE_TRY_CHECK;
-
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (Deployment::NodeApplication::_nil ());
-
- this->callback_poa_->deactivate_object (cb_id.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Deployment::NodeApplication::_nil ());
-
- if (CIAO::debug_level () > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "CIAO::NodeApplicationManager_Impl::NodeApplication spawned!\n"));
- }
-
- return retval._retn ();
-}
-
-CIAO::Static_NodeApplicationManager_Impl::~Static_NodeApplicationManager_Impl (void)
-{
-}
-
-CIAO::Static_NodeApplicationManager_Impl::
-Static_NodeApplicationManager_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- Static_Config_EntryPoints_Maps* static_config_entrypoints_maps)
- : NodeApplicationManager_Impl_Base (o, p),
- static_config_entrypoints_maps_ (static_config_entrypoints_maps)
-{
-}
-
-PortableServer::ObjectId
-CIAO::Static_NodeApplicationManager_Impl::init (
- const char *nodeapp_location,
- const char *nodeapp_op,
- const CORBA::ULong delay,
- const Deployment::DeploymentPlan & plan,
- const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidProperty))
-{
- PortableServer::ObjectId_var oid;
-
- ACE_UNUSED_ARG (nodeapp_location);
- ACE_UNUSED_ARG (nodeapp_op);
- ACE_UNUSED_ARG (delay);
- ACE_UNUSED_ARG (callback_poa);
- ACE_UNUSED_ARG (nm);
-
- ACE_TRY
- {
- // Make a copy of the plan for later usage.
- this->plan_ = plan;
-
- // Activate the ourself.
- oid = this->poa_->activate_object (this
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj =
- this->poa_->id_to_reference (oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // And cache the object reference.
- this->objref_ =
- Deployment::NodeApplicationManager::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "NodeApplicationManager_Impl_Base::init\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (0);
-
- //return this object reference
- return oid.in ();
-}
-
-Deployment::NodeApplication_ptr
-CIAO::Static_NodeApplicationManager_Impl::
-create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::ResourceNotAvailable,
- Deployment::StartError,
- Deployment::InvalidProperty))
-{
- ACE_UNUSED_ARG(options);
-
- CIAO::NodeApplication_Impl *nodeapp_servant;
-
- ACE_DEBUG ((LM_DEBUG, "create_static_node_application\n"));
-
- ACE_NEW_RETURN (nodeapp_servant,
- CIAO::NodeApplication_Impl (orb_.in (),
- poa_.in (),
- configurator_,
- this->static_config_entrypoints_maps_),
- Deployment::NodeApplication::_nil ()
- );
- if (nodeapp_servant->init (ACE_ENV_SINGLE_ARG_PARAMETER))
- {
- ACE_DEBUG ((LM_DEBUG, "NodeApplication Failed on creating and\
- initializing the session container!"));
- return Deployment::NodeApplication::_nil ();
- }
- ACE_TRY_CHECK;
-
- // CONFIGURING NodeApplication
- PortableServer::ObjectId_var nodeapp_oid
- = poa_->activate_object (nodeapp_servant
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var
- obj = poa_->id_to_reference (nodeapp_oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Deployment::NodeApplication_var nodeapp_obj =
- Deployment::NodeApplication::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (nodeapp_obj.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Unable to activate NodeApplication object\n"));
- return Deployment::NodeApplication::_nil ();
- }
-
- this->nodeapp_ = Deployment::NodeApplication::_duplicate (nodeapp_obj.in ());
-
- return nodeapp_obj._retn ();
-}
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
index 70fe6f8e709..241747d6e26 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
@@ -1,5 +1,4 @@
-// $Id$
-
+//$Id$
// -*- C++ -*-
//=============================================================================
@@ -7,7 +6,6 @@
* @file NodeApplicationManager_Impl.h
*
* @author Tao Lu <lu@dre.vanderbilt.edu>
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
*
* This file contains implementation for the servant of
* Deployment::NodeApplicationManager.
@@ -28,41 +26,35 @@
#include "ace/SString.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ciao/NodeApp_CB_Impl.h"
-#include "ciao/NodeApplicationManagerS.h"
+#include "ciao/DeploymentS.h"
#include "ciao/CIAO_common.h"
#include "CIAO_NAM_Export.h"
#include "ImplementationInfo.h"
-#include "NodeManager/NodeManager_Impl.h"
-#include "NodeApplication/NodeApplication_Core.h"
namespace CIAO
{
/**
- * @class NodeApplicationManager_Impl_Base
+ * @class NodeApplicationManager_Impl
*/
- class CIAO_NAM_Export NodeApplicationManager_Impl_Base
+ class CIAO_NAM_Export NodeApplicationManager_Impl
: public virtual POA_Deployment::NodeApplicationManager
{
public:
/// Constructor
- NodeApplicationManager_Impl_Base (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p);
+ NodeApplicationManager_Impl (CORBA::ORB_ptr o,
+ PortableServer::POA_ptr p);
/*===========================================================
* Below are operations from the NodeApplicationManager
*
*============================================================*/
- /// The return type is NodeApplication_ptr actually.
- /// For "external/shared" components of this child plan, they are
- /// not actaully installed, however, the object references
- /// of the ports of these external components are returned
- /// through <providedReference>.
+ //@@ The return type is NodeApplication_ptr actually.
virtual Deployment::Application_ptr
startLaunch (const Deployment::Properties & configProperty,
- Deployment::Connections_out providedReference,
- CORBA::Boolean start
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ Deployment::Connections_out providedReference,
+ CORBA::Boolean start
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -74,31 +66,6 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StopError));
- virtual Deployment::Application_ptr
- perform_redeployment (const Deployment::Properties & configProperty,
- Deployment::Connections_out providedReference,
- CORBA::Boolean add_or_remove,
- CORBA::Boolean start
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::PlanError,
- ::Deployment::InstallationFailure,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InvalidConnection,
- ::Deployment::InvalidProperty,
- ::Components::RemoveFailure));
-
- virtual void
- reset_plan (const ::Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- virtual void
- set_shared_components (const Deployment::ComponentPlans & shared
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
/**
* A factory operation to create NodeApplicationManager interface, and return
* the object reference.
@@ -114,7 +81,7 @@ namespace CIAO
*
* @param nodeapp_options A null-terminated char * string
* containing command line options to be passed to the
- * NodeApplication.
+ * NodeApplication.
*
* @param delay instructs how long (in second) a CIAO_NodeApplicationManager
* should wait for a newly spawned NodeApplication to pass back
@@ -126,8 +93,6 @@ namespace CIAO
*
* @param callback_poa contains child poa created for the callback interface.
*
- * @para nm Pointer to the NodeManager_Impl servant object
- *
* @return NodeApplicationManager_ptr.
**/
virtual PortableServer::ObjectId
@@ -135,52 +100,28 @@ namespace CIAO
const char *nodeapp_options,
const CORBA::ULong delay,
const Deployment::DeploymentPlan & plan,
- const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
+ const PortableServer::POA_ptr callback_poa
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidProperty))=0;
+ Deployment::InvalidProperty));
- /// @note This method doesn't do duplicate.
+ //@@ Note: This method doesn't do duplicate.
Deployment::NodeApplicationManager_ptr get_nodeapp_manager (void);
protected:
/// Destructor
- virtual ~NodeApplicationManager_Impl_Base (void);
-
- /// Add new components
- virtual void
- add_new_components (void)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Deployment::PlanError,
- ::Deployment::InstallationFailure,
- ::Deployment::UnknownImplId,
- ::Deployment::ImplEntryPointNotFound,
- ::Deployment::InvalidConnection,
- ::Deployment::InvalidProperty));
-
- /// Remove existing components
- virtual void
- remove_existing_components (void)
- ACE_THROW_SPEC ((CORBA::SystemException,
- ::Deployment::PlanError,
- ::Components::RemoveFailure));
-
- /// Determine whether a component is absent in the new_plan
- /// Return true if absent
- virtual bool
- is_to_be_removed (const char * name);
+ virtual ~NodeApplicationManager_Impl (void);
- /// Internal help function to create new NodeApplicationProcess
+ // Internal help function to create new NodeApplicationProcess
virtual Deployment::NodeApplication_ptr
create_node_application (const ACE_CString & options
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
- Deployment::InvalidProperty))=0;
+ Deployment::InvalidProperty));
- /// Helper function to get the connection.
+ // Helper function to get the connection.
virtual Deployment::Connections *
create_connections (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
@@ -197,58 +138,38 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty));
- /// Helper function to check wheather a component instance
- /// is in the "shared components list".
- bool is_shared_component (ACE_CString & name);
-
- /// Helper function to check wheather a component instance
- /// is in the "shared components list".
- bool is_external_component (ACE_CString & name);
-
protected:
- /// location of the Nodeapplication
+ // location of the Nodeapplication
ACE_CString nodeapp_path_;
- /// Keep a pointer to the managing ORB serving this servant.
+ // Keep a pointer to the managing ORB serving this servant.
CORBA::ORB_var orb_;
- /// Keep a pointer to the managing POA.
+ // Keep a pointer to the managing POA.
PortableServer::POA_var poa_;
- /// Pointer to the NodeManager_Impl servant object
- /// We could do this because NodeManager and NodeApplicationManager
- /// are always collocated in the same process, so we don't have
- /// to pass CORBA object reference back and forth.
- NodeManager_Impl_Base * node_manager_;
-
- /// ObjectRef of ourself which will be needed by the callback
+ // ObjectRef of ourself which will be needed by the callback
Deployment::NodeApplicationManager_var objref_;
- /// Child poa that uses active object map.
+ // Child poa that uses active object map.
PortableServer::POA_var callback_poa_;
- /// Cache a object reference of the underlying NodeApplication
- /// Since I have decided to have only 1 NA in NAM so no map is needed.
+ // Cache a object reference of the underlying NodeApplication
+ // Since I have decided to have only 1 NA in NAM so no map is needed.
Deployment::NodeApplication_var nodeapp_;
- /// Cached plan (This should be the part of the whole plan local to this node)
- /// The plan will be initialized when init is called.
+ // Cached plan (This should be the part of the whole plan local to this node)
+ // The plan will be initialized when init is called.
Deployment::DeploymentPlan plan_;
- /// Specify the time in second NodeApplicationManager will wait for a
- /// child NodeApplication to callback. Default is 5 second.
+ // Specify the time in second NodeApplicationManager will wait for a
+ // child NodeApplication to callback. Default is 5 second.
CORBA::ULong spawn_delay_;
- /// Extracted commandline options to pass to the NodeApplication.
+ // Extracted commandline options to pass to the NodeApplication.
CORBA::String_var nodeapp_command_op_;
- /// A list of components shared across deployment plans
- Deployment::ComponentPlans shared_components_;
-
- /// A list of components that are "external" to this plan
- Deployment::ComponentPlans external_components_;
-
- /// A map of the component created on this node.
+ // A map of the component created on this node.
typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
Components::CCMObject_var,
ACE_Hash<ACE_CString>,
@@ -257,94 +178,9 @@ namespace CIAO
typedef CCMComponent_Map::iterator Component_Iterator;
CCMComponent_Map component_map_;
- /// Synchronize access to the object set.
+ // Synchronize access to the object set.
TAO_SYNCH_MUTEX lock_;
};
-
-
- /**
- * @class NodeApplicationManager_Impl
- */
- class CIAO_NAM_Export NodeApplicationManager_Impl
- : public virtual NodeApplicationManager_Impl_Base
- {
- public:
- /// Constructor
- NodeApplicationManager_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p);
-
- virtual PortableServer::ObjectId
- init (const char *nodeapp_location,
- const char *nodeapp_options,
- const CORBA::ULong delay,
- const Deployment::DeploymentPlan & plan,
- const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidProperty));
-
- protected:
- /// Destructor
- virtual ~NodeApplicationManager_Impl (void);
-
- // Internal help function to create new NodeApplicationProcess
- // Here we override it to create an in-process NodeApplication object
- virtual Deployment::NodeApplication_ptr
- create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::ResourceNotAvailable,
- Deployment::StartError,
- Deployment::InvalidProperty));
- };
-
-
-
- struct Static_Config_EntryPoints_Maps;
-
- /**
- * @class Static_NodeApplicationManager_Impl
- */
- class CIAO_NAM_Export Static_NodeApplicationManager_Impl
- : public virtual NodeApplicationManager_Impl_Base
- {
- public:
- /// Constructor
- Static_NodeApplicationManager_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- Static_Config_EntryPoints_Maps* static_config_entrypoints_maps);
-
- virtual PortableServer::ObjectId
- init (const char *nodeapp_location,
- const char *nodeapp_options,
- const CORBA::ULong delay,
- const Deployment::DeploymentPlan & plan,
- const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidProperty));
-
- protected:
- /// Destructor
- virtual ~Static_NodeApplicationManager_Impl (void);
-
- // Internal help function to create new NodeApplicationProcess
- // Here we override it to create an in-process NodeApplication object
- virtual Deployment::NodeApplication_ptr
- create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::ResourceNotAvailable,
- Deployment::StartError,
- Deployment::InvalidProperty));
-
- Static_Config_EntryPoints_Maps* static_config_entrypoints_maps_;
-
- CIAO::NoOp_Configurator configurator_;
- };
-
}
#if defined (__ACE_INLINE__)
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
index 5bf4e642a0e..24908a047a4 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
@@ -2,13 +2,12 @@
// $Id$
ACE_INLINE
-CIAO::NodeApplicationManager_Impl_Base::
-NodeApplicationManager_Impl_Base (CORBA::ORB_ptr o,
+CIAO::NodeApplicationManager_Impl::
+NodeApplicationManager_Impl (CORBA::ORB_ptr o,
PortableServer::POA_ptr p)
: orb_ (CORBA::ORB::_duplicate (o)),
poa_ (PortableServer::POA::_duplicate (p)),
callback_poa_ (PortableServer::POA::_nil ()),
- nodeapp_ (Deployment::NodeApplication::_nil ()),
spawn_delay_ (5)
// @@ (OO) The default size for an ACE_Hash_Map_Mapanger is quiet
// large. The maximum size of an ACE_Hash_Map_Manager is
@@ -20,37 +19,8 @@ NodeApplicationManager_Impl_Base (CORBA::ORB_ptr o,
}
ACE_INLINE
-CIAO::NodeApplicationManager_Impl_Base::~NodeApplicationManager_Impl_Base (void)
-{
-}
-
-ACE_INLINE
-void
-CIAO::NodeApplicationManager_Impl_Base::
-parse_config_value (ACE_CString & str
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::InvalidProperty))
-{
- // The unused arg is for future improvemnts.
- ACE_UNUSED_ARG (str);
-
- ACE_THROW ( CORBA::NO_IMPLEMENT() );
-}
-
-ACE_INLINE
Deployment::NodeApplicationManager_ptr
-CIAO::NodeApplicationManager_Impl_Base::get_nodeapp_manager (void)
+CIAO::NodeApplicationManager_Impl::get_nodeapp_manager (void)
{
return this->objref_.in ();
}
-
-ACE_INLINE void
-CIAO::NodeApplicationManager_Impl_Base::
-reset_plan (const ::Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException))
-{
- this->plan_ = plan;
-}
-
diff --git a/TAO/CIAO/DAnCE/NodeManager/BaseMonitor.h b/TAO/CIAO/DAnCE/NodeManager/BaseMonitor.h
deleted file mode 100644
index fc34383aa06..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/BaseMonitor.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// $Id$
-//----------------------------------------------------------------------------------
-/// Monitor Interface
-/*
- * @file BaseMonitor.h
- * @brief The BaseMonitor.h file.
- * This is an abstract class containing the interface to the Monitor plug-in
- *
- * @author Nilabja R <nilabjar@dre.vanderbilt.edu>
- */
-//----------------------------------------------------------------------------------
-
-#ifndef MONITOR_BASEH
-#define MONITOR_BASEH
-#include "tao/ORB.h"
-#include "TargetManagerC.h"
-
-namespace CIAO
-{
-
- class MonitorBase
- {
- public:
- virtual ~MonitorBase () {};
-
- /** @function initialize_params
- * @param domain The Initital domain for this host
- * @param target_manager TargetManager_ptr
- * @param interval The time interval after whic updates need to be send.
- * @description This function is called by the controller to initialize
- * parameters.
- */
- virtual int initialize_params (
- ::Deployment::Domain& domain,
- ::Deployment::TargetManager_ptr target_manager,
- int interval
- )=0;
- /** @function start
- * @param ORB_ptr The ORB pointer
- * @description This function is called by the controller
- * to start up the monitor.
- */
- virtual int start (CORBA::ORB_ptr)=0;
- /** @function stop
- * @description This function is called by the controller
- * to stop the monitor.
- */
- virtual int stop ()=0;
- /** @function get_current_data
- * @return ::Deployment::Domain* The current Domain data
- * @description This function is called by the controller
- * to get the current data.
- */
- virtual ::Deployment::Domain* get_current_data ()=0;
- };
-
- extern "C" ACE_Proper_Export_Flag CIAO::MonitorBase *
- createMonitor (void);
-
-} // CIAO
-
-
-#endif /* MONITOR_BASEH */
diff --git a/TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.cpp b/TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.cpp
deleted file mode 100644
index 7c5485adf82..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-// $Id$
-//==========================================================================
-/// The RSS Monitor class defination
-/**
- * @file CIAO_Monitor.cpp
- *
- * @brief The Monitor class defination
- *
- * @author Nilabja Roy <nilabjar@dre.vanderbilt.edu>
- */
-//==========================================================================
-
-#include "CIAO_Monitor.h"
-#include "CIAO_common.h"
-#include "ace/OS_NS_stdio.h"
-
-
-extern "C" ACE_Proper_Export_Flag CIAO::MonitorBase * CIAO::createMonitor ()
-{
- return new CIAO::CIAO_Monitor ();
-}
-
-CIAO::CIAO_Monitor::CIAO_Monitor ()
-{
-}
-
-/// The Desctructor
-CIAO::CIAO_Monitor::~CIAO_Monitor ()
-{
-}
-
-int CIAO::CIAO_Monitor::initialize_params (
- ::Deployment::Domain& domain,
- ::Deployment::TargetManager_ptr target_manager,
- int interval
- )
-{
- current_domain_.reset (new ::Deployment::Domain (domain));
- target_ptr_= target_manager;
- this->interval_=interval;
-
- return 0;
-}
-
-int CIAO::CIAO_Monitor::start (CORBA::ORB_ptr)
-{
- return 0;
-}
-
-int CIAO::CIAO_Monitor::stop ()
-{
- return 0;
-}
-
-::Deployment::Domain* CIAO::CIAO_Monitor::get_current_data ()
-{
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Inside the get_current_data"));
- }
-
- float current_load;
-
- // get the load average value from the /proc/loadavg
-
- FILE *load_file = ACE_OS::fopen ("/proc/loadavg", "r");
-
- if (load_file == 0)
- {
- // load file cannot be opened ..
- current_load = 0;
- }
- else
- {
- fscanf (load_file, "%f", &current_load);
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Current load is %d\n",current_load));
- }
- }
-
- ACE_OS::fclose (load_file);
-
- CORBA::Any any;
- any <<= current_load;
-
- current_domain_->node[0].resource[0].property[0].kind = ::Deployment::Quantity;
- current_domain_->node[0].resource[0].property[0].value = any;
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Exiting from the get_current_data function\n"));
- }
-
- return current_domain_.get ();
-}
diff --git a/TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.h b/TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.h
deleted file mode 100644
index d6f15d06802..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/CIAO_Monitor.h
+++ /dev/null
@@ -1,106 +0,0 @@
-// $Id$
-//==========================================================================
-/**
- * @file CIAO_Monitor.h
- *
- * @brief The Monitor class.
- *
- * This class periodically records the
- * loadavg value of the machine in which it
- * loaded
- *
- * @author Nilabja Roy <nilabjar@dre.vanderbilt.edu>
- */
-//==========================================================================
-
-
-#ifndef CIAO_MONITORH
-#define CIAO_MONITORH
-
-#include "BaseMonitor.h"
-#include "ace/Auto_Ptr.h"
-#include <memory>
-
-
-
-/**
- * @namespace CIAO
- *
- * @brief The top level CIAO namespace
- *
- */
-
-namespace CIAO
-{
- class ReceiverThread;
-
- /**
- * @class CIAO_Monitor
- *
- * @brief The Monitor class
- *
- */
- class CIAO_Monitor : public MonitorBase
- {
- public:
-
- /** @function Constructor
- */
- CIAO_Monitor ();
-
- /** @function initialize_params
- * @param domain The Initial Domain for this host
- * @param target_manager TargetManager_ptr
- * @param interval The time interval after whic updates need to be send.
- * @description This function is called by the controller to initialize
- * parameters.
- */
- virtual int initialize_params (
- ::Deployment::Domain& domain,
- ::Deployment::TargetManager_ptr target_manager,
- int interval
- );
- /**
- * @function Destructor
- */
- virtual ~CIAO_Monitor ();
-
- /** @function start.
- * @brief This method will starts up the Monitor
- * in this case,
- * @param orb The orb needed for resolving.
- * @return -1 on error
- */
- int start (CORBA::ORB_ptr orb);
-
- /**
- * @function stop.
- * @brief This method will starts up the Monitor
- * in this case
- * @return -1 on error
- */
- int stop ();
-
- /**
- * @function get_current_date.
- * @brief This function retrieves the current
- * Domain data
- * @return -1 on error
- */
- ::Deployment::Domain* get_current_data ();
-
- protected:
-
- /// The TargetManager Object to be sent to the RSSSubscriber ..
- ::Deployment::TargetManager_ptr target_ptr_;
-
-
- /// The interval after which update is to be returned.
- int interval_;
-
- /// The Domain data structure
- auto_ptr <Deployment::Domain> current_domain_;
- };
-
-} // CIAO
-#endif /* CIAO_MONITORH */
diff --git a/TAO/CIAO/DAnCE/NodeManager/Monitor.mpc b/TAO/CIAO/DAnCE/NodeManager/Monitor.mpc
deleted file mode 100644
index 65166bb2521..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/Monitor.mpc
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-
-
-// MPC file for the Monitor
-
-project(*monitorlib): ciao_client_dnc, ciao_events_base_dnc {
- after += CIAO_TargetManager_stub
- includes += $(CIAO_ROOT)/DAnCE/TargetManager
- sharedname = ciaomonlib
-
- libs += TargetManager_stub CIAO_Deployment_stub
-
- IDL_Files {
- }
-
- Header_Files {
- }
-
- Inline_Files {
- }
-
- Template_Files {
- }
-
- Source_Files {
- CIAO_Monitor.cpp
- }
-}
diff --git a/TAO/CIAO/DAnCE/NodeManager/MonitorCB.cpp b/TAO/CIAO/DAnCE/NodeManager/MonitorCB.cpp
deleted file mode 100644
index 5bd59627d2e..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/MonitorCB.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-//----------------------------------------------------------------------------------
-/**
- * @file MonitorCB.cpp
- *
- * @brief The Monitor Update class
- *
- * The class which updates the resource data
- *
- * @author Nilabja Roy <nilabjar@dre.vanderbilt.edu>
- */
-//----------------------------------------------------------------------------------
-
-#include "MonitorCB.h"
-#include "CIAO_common.h"
-
-
-CIAO::MonitorCB::MonitorCB (CORBA::ORB_ptr orb,
- Deployment::TargetManager_ptr target,
- int interval
- ):orb_ (orb),
- target_mgr_ (target),
- interval_ (interval)
-{
-}
-
-int CIAO::MonitorCB::update_data (::Deployment::Domain& data)
-{
- CORBA::StringSeq elements;
- elements.length (0);
-
- // data to be updated ...
- ::Deployment::DomainUpdateKind update_kind
- = ::Deployment::UpdateAvailable;
-
- // The copy of the domain variable
- ::Deployment::Domain_var domain
- = new ::Deployment::Domain (data);
-
- try
- {
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "---Making a call to update\n"));
- }
- target_mgr_->updateDomain (elements , domain , update_kind);
- }
- catch (CORBA::Exception&)
- {
- ACE_DEBUG ((LM_DEBUG, "Unknown Exception"));
- }
-
- return 0;
-}
diff --git a/TAO/CIAO/DAnCE/NodeManager/MonitorCB.h b/TAO/CIAO/DAnCE/NodeManager/MonitorCB.h
deleted file mode 100644
index 66cb25db287..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/MonitorCB.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// $Id$
-//==============================================================
-/**
- * @file MonitorCB.h
- *
- * @brief The Monitor Callback Function
- *
- * This class updates data back to the Target Manager
- *
- * @author Nilabja Roy <nilabjar.vanderbilt.edu>
-*/
-//==============================================================
-
-#ifndef MONITOR_CBH
-#define MONITOR_CBH
-
-#include "TargetManagerC.h"
-
-
-
-/**
- * @namespace CIAO
- *
- * @brief The top level CIAO namespace
- *
- */
-
-namespace CIAO
-{
- /**
- * @class MonitorCB
- *
- * @brief Updates data back to the TM.
- *
- */
-
- class MonitorCB
- {
- public:
- /**
- * @constructor
- * @param _orb The ORB pointer
- * @param The TargetManager reference
- * @param interval The time interval to sent update
- */
- MonitorCB (CORBA::ORB_ptr _orb,Deployment::TargetManager_ptr,int interval);
- /**
- * @function update_data
- * @param data Contains the updated Domain data
- * @return int indicates success.
- * @description This function is called by the monitor to
- * update Domain data, which is then sent to
- * TM.
- */
- int update_data (::Deployment::Domain& data);
- private:
- /// The ORB pointer
- CORBA::ORB_ptr orb_;
-
- /// The Target Manager pointer to send back the
- /// update
- ::Deployment::TargetManager_ptr target_mgr_;
-
- /// The interval after which updates need to be send
- int interval_;
-
- };
-
- /// The Callback function pointer
- typedef int (MonitorCB::*CallBack) (::Deployment::Domain &);
-
-} // CIAO namespace
-
-#endif /* MONITOR_CBH */
diff --git a/TAO/CIAO/DAnCE/NodeManager/MonitorController.cpp b/TAO/CIAO/DAnCE/NodeManager/MonitorController.cpp
deleted file mode 100644
index 0b2f0e24762..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/MonitorController.cpp
+++ /dev/null
@@ -1,139 +0,0 @@
-// $Id$
-//----------------------------------------------------------------------------------
-/**
- * @file MonitorController.cpp
- *
- * @brief The Monitor Controller implementation.
- *
- * This is the facade class for Monitor
- *
- * @author Nilabja Roy <nilabjar@dre.vanderbilt.edu>
- */
-//----------------------------------------------------------------------------------
-
-#include "MonitorController.h"
-#include "BaseMonitor.h"
-#include "MonitorCB.h"
-#include "CIAO_common.h"
-
-#include "ace/Log_Msg.h"
-#include "ace/DLL.h"
-#include "ace/SString.h"
-
-namespace CIAO
-{
- typedef MonitorBase* (*MonitorFactory) (void);
-
- /// for the CIAO monitor
- const char* monitor_lib_name = "ciaomonlib";
-
- // The interval after which update will be sent.
- // This value will sent by the EM in the later implementation
- const int interval = 10;
-
- static const char* factory_func = "createMonitor";
-}
-
-CIAO::MonitorController::MonitorController (CORBA::ORB_ptr orb,
- ::Deployment::Domain& domain,
- ::Deployment::TargetManager_ptr target
- )
- : target_facet_i_ (::Deployment::TargetManager::_duplicate (target)),
- terminate_flag_ (0),
- orb_ (orb),
- initial_domain_ (domain)
-{
-}
-
-int CIAO::MonitorController::svc (void)
-{
- ACE_DLL dll;
-
- // forming the library name
- ACE_CString lib_name = ACE_DLL_PREFIX;
- lib_name += monitor_lib_name;
-
- int retval
- = dll.open (lib_name.c_str ());
-
- if (retval != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p",
- "dll.open"),
- -1);
-
-
- MonitorFactory factory =
- (MonitorFactory) dll.symbol (factory_func);
-
- if (factory == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p",
- "dll.symbol"),
- -1);
- {
- ACE_TRACE ((LM_DEBUG, "Inside the init call\n"));
-
- monitor_.reset ((MonitorBase*) factory ());
- monitor_->initialize_params (initial_domain_,
- target_facet_i_.in (),
- interval);
-
-
- // Start the Monitor
- monitor_->start (orb_);
- auto_ptr <CIAO::MonitorCB> monitor_callback (new CIAO::MonitorCB (orb_,
- target_facet_i_.in (),
- interval));
-
- // The loop in which UpdateData is called
- while (!terminating ())
- {
- // data will be updated in intervals of 10 secs.
- // in the latest version of spec , this value will
- // come from Execution Manager
- ACE_OS::sleep (interval);
- // ACE_DEBUG ((LM_DEBUG , "=The Terminate is %d\n", terminate_flag_));
- ::Deployment::Domain* domain =
- monitor_->get_current_data ();
-
- monitor_callback->update_data (*domain);
- }
- monitor_->stop ();
- }
-
- dll.close ();
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Terminating Monitor\n"));
- }
- return 0;
-}
-
-CIAO::MonitorController::~MonitorController ()
-{
- terminate ();
- wait ();
-}
-
-void CIAO::MonitorController::terminate ()
-{
- // make the terminate flag false
- ACE_GUARD (ACE_SYNCH_MUTEX,
- guard,
- lock_
- );
- ACE_DEBUG ((LM_DEBUG , "WITHIN TERMINATE CALL ......"));
- terminate_flag_=1;
-}
-
-bool CIAO::MonitorController::terminating ()
-{
- ACE_GUARD_RETURN (ACE_SYNCH_MUTEX,
- guard,
- lock_,
- 0
- );
- return terminate_flag_;
-}
diff --git a/TAO/CIAO/DAnCE/NodeManager/MonitorController.h b/TAO/CIAO/DAnCE/NodeManager/MonitorController.h
deleted file mode 100644
index 9fc62beed8b..00000000000
--- a/TAO/CIAO/DAnCE/NodeManager/MonitorController.h
+++ /dev/null
@@ -1,111 +0,0 @@
-// $Id$
-//---------------------------------------------------------------------------------
-/**
- * @file MonitorController.h
- *
- * @brief The Monitor Controller class.
- *
- * This class is invoked by the Nodemanager object and it
- * in turn loads the proper Monitor which is strategised.
- *
- * @author Nilabja Roy
- */
-//----------------------------------------------------------------------------------
-#ifndef MONITOR_CONTROLLER_H
-#define MONITOR_CONTROLLER_H
-
-#include "NodeManager_svnt_export.h"
-#include "TargetManager/TargetManagerC.h"
-#include "ace/Task.h"
-#include "ace/Auto_Ptr.h"
-
-#include "ace/Synch_Traits.h"
-#include "ace/Synch.h"
-
-
-
-/**
- * @namespace CIAO
- *
- * @brief The top level CIAO namespace
- *
- */
-
-namespace CIAO
-{
-
- class MonitorBase;
-
- /**
- * @class MonitorController
- *
- * @brief The Controller class
- *
- * Acts as a facade to the Monitor
- * module
- *
- */
- class NodeManager_svnt_Export MonitorController : public ACE_Task_Base
- {
- public:
- /**
- * @function svc.
- * @brief The main function containing the
- * entire activity.
- *
- * This function runs in the context of the
- * thread
- * @return int The status of the function
- */
- int svc (void);
- /**
- * @function terminate.
- * @brief The terminate function
- *
- * This function is called to terminate the
- * thread
- */
- void terminate ();
-
-
- /// The Constructor.
- MonitorController (CORBA::ORB_ptr orb,
- ::Deployment::Domain& domain,
- ::Deployment::TargetManager_ptr target
- );
-
- ~MonitorController ();
- protected:
-
- /**
- * @function terminating.
- * @brief returns the terminating flag
- * @return bool The terminting state of the thread
- */
- bool terminating ();
-
- /// The monitor object
- auto_ptr <MonitorBase> monitor_;
-
- /// The TargetManagerImpl object
- CIAO::TargetManagerImpl_var target_impl_cmp_;
-
- /// The TargetManager Facet ....
- Deployment::TargetManager_var target_facet_i_;
-
- /// The terminate flag_
- bool terminate_flag_;
-
- //Thread Mutex for synchronizing call
- ACE_SYNCH_MUTEX lock_;
-
- // the ORB pointer ..
- CORBA::ORB_ptr orb_;
-
- /// The initial domain
- ::Deployment::Domain initial_domain_;
- };
-
-} // CIAO
-
-#endif
diff --git a/TAO/CIAO/DAnCE/NodeManager/NAM_Map.cpp b/TAO/CIAO/DAnCE/NodeManager/NAM_Map.cpp
index 07d145f5752..d14efc9829b 100644
--- a/TAO/CIAO/DAnCE/NodeManager/NAM_Map.cpp
+++ b/TAO/CIAO/DAnCE/NodeManager/NAM_Map.cpp
@@ -9,35 +9,35 @@ namespace CIAO
: map_ (CIAO_DEFAULT_MAP_SIZE)
{
}
-
+
bool
NAM_Map::is_available (const ACE_CString &str)
{
if (this->map_.find (str) == 0)
return true;
-
+
return false;
}
-
+
bool
NAM_Map::insert_nam (const ACE_CString &str,
const PortableServer::ObjectId &oid)
{
return (this->map_.bind (str, oid) == 0);
}
-
+
::PortableServer::ObjectId
NAM_Map::get_nam (const ACE_CString &str)
{
- MAP::ENTRY *entry = 0;
-
+ MAP::ENTRY *entry;
+
if (this->map_.find (str, entry) != 0)
return ::PortableServer::ObjectId ();
-
+
return entry->int_id_.in ();
}
-
- bool
+
+ bool
NAM_Map::remove_nam (const PortableServer::ObjectId &oid)
{
for (Iterator i = this->map_.begin ();
@@ -51,6 +51,6 @@ namespace CIAO
}
}
-
-
+
+
diff --git a/TAO/CIAO/DAnCE/NodeManager/NAM_Map.h b/TAO/CIAO/DAnCE/NodeManager/NAM_Map.h
index a3a6a7def5f..1a2dc80f054 100644
--- a/TAO/CIAO/DAnCE/NodeManager/NAM_Map.h
+++ b/TAO/CIAO/DAnCE/NodeManager/NAM_Map.h
@@ -1,4 +1,4 @@
- /**
+/**
* @file NAM_Map.h
* @author Will Otte <wotte@dre.vanderbilt.edu>
*
@@ -13,16 +13,15 @@
#include /**/ "ace/pre.h"
+#include "ace/Null_Mutex.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ciao/DeploymentC.h"
+#include "ace/SString.h"
#include "tao/PortableServer/PortableServer.h"
-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Null_Mutex.h"
-#include "ace/Hash_Map_Manager.h"
-#include "ace/SString.h"
-
namespace CIAO
{
/**
diff --git a/TAO/CIAO/DAnCE/NodeManager/NodeManager.idl b/TAO/CIAO/DAnCE/NodeManager/NodeManager.idl
new file mode 100644
index 00000000000..ea964a4e14b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/NodeManager/NodeManager.idl
@@ -0,0 +1,28 @@
+// $Id$
+
+/**
+ * @file NodeManager.idl
+ *
+ * @brief Controling interface for managing and controling CIAO daemon.
+ */
+
+#include "ciao/Deployment.idl"
+
+module CIAO
+{
+ /**
+ * @brief CIAO daemon process control program.
+ *
+ * @@The Inheritage might cause binary code bloating but
+ * it's an easy way of combining features. In the future we could
+ * move this definition into Deployment.idl.
+ */
+ interface NodeManager : Deployment::NodeManager
+ {
+ // Canonical name of this daemon
+ readonly attribute string name;
+
+ // Shutdown the daemon process.
+ oneway void shutdown ();
+ };
+};
diff --git a/TAO/CIAO/DAnCE/NodeManager/NodeManager.mpc b/TAO/CIAO/DAnCE/NodeManager/NodeManager.mpc
index 01b11fa563a..e068d31c6fb 100644
--- a/TAO/CIAO/DAnCE/NodeManager/NodeManager.mpc
+++ b/TAO/CIAO/DAnCE/NodeManager/NodeManager.mpc
@@ -1,37 +1,32 @@
// -*- MPC -*-
// $Id$
-//For static D&C, the NodeManager should be available as a linkable library
-project(NodeManager_svnt): ciao_component_dnc, ciao_deployment_svnt, iortable, ifr_client, dance_extension_stub, ciao_server_dnc {
- sharedname = NodeManager
- after += NodeApplicationManager NodeManager_stub CIAO_TargetManager_stub NoOp_Configurator
- libs += NodeManager_stub NodeApplicationManager TargetManager_stub CIAO_NoOp_Configurator
- includes += $(CIAO_ROOT)/ciao $(CIAO_ROOT)/DAnCE/Interfaces $(CIAO_ROOT)/DAnCE/TargetManager
- dynamicflags = NODEMANAGER_SVNT_BUILD_DLL
+project (NodeManager_stub): ciao_component_dnc {
+ sharedname = NodeManager_stub
+ idlflags += -Wb,stub_export_macro=NodeManager_stub_Export -Wb,stub_export_include=NodeManager_stub_export.h
+ dynamicflags = NODEMANAGER_STUB_BUILD_DLL
IDL_Files {
+ NodeManager.idl
}
Source_Files {
- ../Interfaces/NodeManagerDaemonS.cpp
- NodeManager_Impl.cpp
- NAM_Map.cpp
- MonitorController.cpp
- MonitorCB.cpp
+ NodeManagerC.cpp
}
}
-project(NodeManager): ciao_server_dnc, iortable, ifr_client, dance_extension_stub {
- after += NodeApplicationManager NodeManager_stub CIAO_TargetManager_stub NodeManager_svnt
- libs += NodeManager_stub NodeManager NodeApplicationManager TargetManager_stub CIAO_NoOp_Configurator
- includes += $(CIAO_ROOT)/ciao $(CIAO_ROOT)/DAnCE/TargetManager
+project(NodeManager): ciao_component_dnc, iortable, ifr_client {
+ after += NodeApplicationManager NodeManager_stub
+ libs += NodeManager_stub NodeApplicationManager
exename = NodeManager
IDL_Files {
}
Source_Files {
+ NodeManagerS.cpp
+ NodeManager_Impl.cpp
Node_Manager.cpp
+ NAM_Map.cpp
}
}
-
diff --git a/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.cpp b/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.cpp
index f657129ebf0..c040b75859f 100644
--- a/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.cpp
+++ b/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.cpp
@@ -2,9 +2,8 @@
#include "NodeManager_Impl.h"
#include "../NodeApplicationManager/NodeApplicationManager_Impl.h"
-#include "ace/Log_Msg.h"
-CIAO::NodeManager_Impl_Base::NodeManager_Impl_Base (const char *name,
+CIAO::NodeManager_Impl::NodeManager_Impl (const char *name,
CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
const char * nodeapp_loc,
@@ -21,12 +20,13 @@ CIAO::NodeManager_Impl_Base::NodeManager_Impl_Base (const char *name,
{
}
-CIAO::NodeManager_Impl_Base::~NodeManager_Impl_Base ()
+CIAO::NodeManager_Impl::~NodeManager_Impl ()
{
+
}
void
-CIAO::NodeManager_Impl_Base::init (ACE_ENV_SINGLE_ARG_DECL)
+CIAO::NodeManager_Impl::init (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
@@ -42,6 +42,7 @@ CIAO::NodeManager_Impl_Base::init (ACE_ENV_SINGLE_ARG_DECL)
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+
}
ACE_CATCHANY
{
@@ -54,21 +55,21 @@ CIAO::NodeManager_Impl_Base::init (ACE_ENV_SINGLE_ARG_DECL)
}
PortableServer::POA_ptr
-CIAO::NodeManager_Impl_Base::_default_POA (void)
+CIAO::NodeManager_Impl::_default_POA (void)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
char *
-CIAO::NodeManager_Impl_Base::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+CIAO::NodeManager_Impl::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return CORBA::string_dup (this->name_.in ());
}
void
-CIAO::NodeManager_Impl_Base::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+CIAO::NodeManager_Impl::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
@@ -76,120 +77,27 @@ CIAO::NodeManager_Impl_Base::shutdown (ACE_ENV_SINGLE_ARG_DECL)
}
void
-CIAO::NodeManager_Impl_Base::joinDomain (const Deployment::Domain & domain,
- Deployment::TargetManager_ptr target,
+CIAO::NodeManager_Impl::joinDomain (const Deployment::Domain & ,
+ Deployment::TargetManager_ptr ,
Deployment::Logger_ptr
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
-// ACE_THROW (CORBA::NO_IMPLEMENT ());
-// Here start the Monitor
- CIAO_TRACE("CIAO::NodeManager_Impl_Base::joinDomain");
-
- ::Deployment::Domain this_domain = domain;
-// MonitorController* monitor_controller
- monitor_controller_.reset (
- new MonitorController (orb_.in (),
- this_domain,
- target));
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Before Activate"));
- }
- /// Activate the Monitor Controller to
- //start the monitoring
- monitor_controller_->activate ();
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "After Activate"));
- }
+ ACE_THROW (CORBA::NO_IMPLEMENT ());
}
void
-CIAO::NodeManager_Impl_Base::leaveDomain (ACE_ENV_SINGLE_ARG_DECL)
+CIAO::NodeManager_Impl::leaveDomain (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
//Implementation undefined.
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-::Components::FacetDescriptions *
-CIAO::NodeManager_Impl_Base::
-get_all_facets (ACE_CString & name)
-{
- Component_Facets_Map::ENTRY *entry = 0;
-
- if (this->comp_facets_map_.find (name.c_str (), entry) != 0)
- ACE_DEBUG ((LM_ERROR, "(%P|%t) - NodeManager_Impl_Base::get_all_facets - "
- "No component with name [%s] was found in the NodeManager\n", name.c_str ()));
-
- CORBA::ULong facet_len = entry->int_id_->length ();
-
- Components::FacetDescriptions_var retv;
- ACE_NEW_RETURN (retv,
- Components::FacetDescriptions,
- 0);
-
- retv->length (facet_len);
-
- for (CORBA::ULong i = 0; i < facet_len; ++i)
- {
- retv[i] = entry->int_id_[i];
- }
-
- return retv._retn ();
-}
-
-::Components::ConsumerDescriptions *
-CIAO::NodeManager_Impl_Base::
-get_all_consumers (ACE_CString & name)
-{
- Component_Consumers_Map::ENTRY *entry = 0;
-
- if (this->comp_consumers_map_.find (name.c_str (), entry) != 0)
- ACE_DEBUG ((LM_ERROR, "(%P|%t) - NodeManager_Impl_Base::get_all_facets - "
- "Component [%s] was not found in the NodeManager\n", name.c_str ()));
-
- CORBA::ULong consumer_len = entry->int_id_->length ();
-
- Components::ConsumerDescriptions_var retv;
- ACE_NEW_RETURN (retv,
- Components::ConsumerDescriptions,
- 0);
-
- retv->length (consumer_len);
-
- for (CORBA::ULong i = 0; i < consumer_len; ++i)
- {
- retv[i] = entry->int_id_[i];
- }
-
- return retv._retn ();
-}
-
-void
-CIAO::NodeManager_Impl_Base::
-set_all_facets (ACE_CString &name,
- const ::Components::FacetDescriptions_var & facets)
-{
- this->comp_facets_map_.rebind (name, facets);
-}
-
-void
-CIAO::NodeManager_Impl_Base::
-set_all_consumers (ACE_CString &name,
- const ::Components::ConsumerDescriptions_var & consumers)
-{
- this->comp_consumers_map_.rebind (name, consumers);
-}
-
Deployment::NodeApplicationManager_ptr
-CIAO::NodeManager_Impl_Base::
-preparePlan (const Deployment::DeploymentPlan &plan
- ACE_ENV_ARG_DECL)
+CIAO::NodeManager_Impl::preparePlan (const Deployment::DeploymentPlan &plan
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StartError,
Deployment::PlanError))
@@ -198,7 +106,7 @@ preparePlan (const Deployment::DeploymentPlan &plan
if (! this->validate_plan (plan))
{
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) NodeManager <%s>:prepare_plan:Plan_Error.\n",
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) NodeManager <%s>:prepare_plan:Plan_Error.\n",
plan.instance[0].node.in ()));
ACE_DEBUG ((LM_DEBUG, "(%P|%t) All component instances hosted in the "
"same component server must have the "
@@ -208,35 +116,6 @@ preparePlan (const Deployment::DeploymentPlan &plan
Deployment::NodeApplicationManager::_nil ());
}
- // Update the reference count map based on the deployment plan input
- for (CORBA::ULong i = 0; i < plan.instance.length (); ++i)
- {
- Reference_Count_Map::ENTRY *entry = 0;
- if (this->ref_count_map_.find (plan.instance[i].name.in (), entry) != 0)
- {
- // Create a new entry, set the initial ref count "1", and insert to the map.
- Ref_Count_Info new_entry;
- new_entry.plan_uuid_ = plan.UUID.in ();
- new_entry.count_ = 1;
- this->ref_count_map_.bind (plan.instance[i].name.in (), new_entry);
- }
- else
- {
- // If the instance is within the same deployment plan, e.g.,
- // when ReDaC service is used, then just do nothing since it is NOT
- // actually a shared component at all.
- if (ACE_OS::strcmp (plan.UUID.in (),
- entry->int_id_.plan_uuid_.c_str ()) == 0)
- continue;
-
- // Otherwise, it is really a shared component, so let's increase
- // the ref count by 1
- this->shared_components_.insert (plan.instance[i].name.in ());
- ++ entry->int_id_.count_;
- }
- }
-
- // Create/find NodeApplicationManager and set/reset plan on it
ACE_TRY
{
if (!this->map_.is_available (plan.UUID.in ()))
@@ -249,45 +128,28 @@ preparePlan (const Deployment::DeploymentPlan &plan
}
//Implementation undefined.
- CIAO::NodeApplicationManager_Impl_Base *node_app_mgr;
- node_app_mgr =
- this->create_node_app_manager (this->orb_.in (), this->poa_.in ()
- ACE_ENV_ARG_PARAMETER);
+ CIAO::NodeApplicationManager_Impl *app_mgr;
+ ACE_NEW_THROW_EX (app_mgr,
+ CIAO::NodeApplicationManager_Impl (this->orb_.in (),
+ this->poa_.in ()),
+ CORBA::NO_MEMORY ());
ACE_TRY_CHECK;
- PortableServer::ServantBase_var safe (node_app_mgr);
+ PortableServer::ServantBase_var safe (app_mgr);
//@@ Note: after the init call the servant ref count would
// become 2. so we can leave the safeservant along and be
// dead. Also note that I added
PortableServer::ObjectId_var oid =
- node_app_mgr->init (this->nodeapp_location_.in (),
- this->nodeapp_options_.in (),
- this->spawn_delay_,
- plan,
- this->callback_poa_.in (),
- this // pass in a copy of ourself (servant object)
- ACE_ENV_ARG_PARAMETER);
+ app_mgr->init (this->nodeapp_location_,
+ this->nodeapp_options_.in (),
+ this->spawn_delay_,
+ plan,
+ this->callback_poa_.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
this->map_.insert_nam (plan.UUID.in (), oid.in ());
-
- CORBA::Object_var obj =
- this->poa_->id_to_reference (this->map_.get_nam (plan.UUID.in ()));
- ACE_TRY_CHECK;
-
- // We should inform NAM about "shared" components, so they
- // won't be instantiated again
- Deployment::NodeApplicationManager_var nam =
- Deployment::NodeApplicationManager::_narrow (obj.in ());
-
- // Convert the ACE Set into CORBA sequence, and make the remote invocation
- Deployment::ComponentPlans_var shared =
- this->get_shared_components_i ();
- nam->set_shared_components (shared.in ());
-
- // narrow should return a nil reference if it fails.
- return Deployment::NodeApplicationManager::_narrow (nam.in ());
}
else
{
@@ -297,28 +159,16 @@ preparePlan (const Deployment::DeploymentPlan &plan
"with UUID: %s\n",
plan.UUID.in ()));
}
+ }
- CORBA::Object_var obj =
- this->poa_->id_to_reference (this->map_.get_nam (plan.UUID.in ()));
- ACE_TRY_CHECK;
-
- Deployment::NodeApplicationManager_var nam =
- Deployment::NodeApplicationManager::_narrow (obj.in ());
- ACE_TRY_CHECK;
-
- nam->reset_plan (plan);
- ACE_TRY_CHECK;
- // Similarly, we should inform NAM about "shared" components, so
- // they won't be instantiated again
- Deployment::ComponentPlans_var shared =
- this->get_shared_components_i ();
- nam->set_shared_components (shared.in ());
+ CORBA::Object_var obj =
+ this->poa_->id_to_reference (this->map_.get_nam (plan.UUID.in ()));
+ ACE_TRY_CHECK;
- // Potentially we could reset many other configuration settings
- // such as command line options, service configuration file, etc.
- return nam._retn ();
- }
+ // narrow should return a nil reference if it fails.
+ return
+ Deployment::NodeApplicationManager::_narrow (obj.in ());
}
ACE_CATCH (PortableServer::POA::ObjectNotActive, ex)
{
@@ -338,7 +188,7 @@ preparePlan (const Deployment::DeploymentPlan &plan
}
void
-CIAO::NodeManager_Impl_Base::destroyManager
+CIAO::NodeManager_Impl::destroyManager
(Deployment::NodeApplicationManager_ptr manager
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
@@ -348,14 +198,13 @@ CIAO::NodeManager_Impl_Base::destroyManager
CIAO_TRACE("CIAO::NodeManager_Impl::destroyManager");
ACE_TRY
{
- printf("Entering NM_Impl::destroyManager\n");
// Deactivate this object
PortableServer::ObjectId_var id =
this->poa_->reference_to_id (manager
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (!this->map_.remove_nam (id.in ()))
+ if (!this->map_.remove_nam (id))
{
ACE_ERROR ((LM_ERROR,
"NodeManager_Impl::destroyManager: "
@@ -365,14 +214,13 @@ CIAO::NodeManager_Impl_Base::destroyManager
this->poa_->deactivate_object (id.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- printf("Exiting NM_Impl::destroyManager\n");
}
ACE_CATCH (PortableServer::POA::WrongAdapter, ex)
{
- ACE_ERROR ((LM_ERROR,
+ ACE_ERROR ((LM_ERROR,
"NodeManager_Impl::destroyManager: EXCEPTION - "
"Invalid reference passed to destroyManager\n"));
-
+
ACE_THROW (::Deployment::InvalidReference ());
}
ACE_CATCH (PortableServer::POA::ObjectNotActive, ex)
@@ -391,143 +239,8 @@ CIAO::NodeManager_Impl_Base::destroyManager
ACE_ENDTRY;
}
-void
-CIAO::NodeManager_Impl_Base::
-destroyPlan (const Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::StopError))
-{
- // Update the reference counting map (subtract by 1 for each instance)
- // If the ref count becomes 0, then remove this component, otherwise,
- // we should remove the necesary bindings on this component specified
- // in the deployment plan.
-
- // Clean up the cached "Facets" and "Consumers" map of the components
- // if their ref count become 0
- CORBA::ULong const length = plan.instance.length ();
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- Reference_Count_Map::ENTRY *entry = 0;
- if (this->ref_count_map_.find (plan.instance[i].name.in (), entry) == 0)
- {
- --entry->int_id_.count_; // decrease ref count by 1
-
- if (entry->int_id_.count_ == 0)
- {
- // Remove this component from the shared set
- this->shared_components_.remove (plan.instance[i].name.in ());
-
- // Unbind this component from the ref_count_map_
- this->ref_count_map_.unbind (plan.instance[i].name.in ());
-
- // Unbind this component from the facet/consumer maps
- if (this->comp_facets_map_.unbind (
- plan.instance[i].name.in ()) != 0 ||
- this->comp_consumers_map_.unbind (
- plan.instance[i].name.in ()) != 0)
- {
- ACE_TRY_THROW
- (Deployment::StopError ("NodeManager_Impl_Base::destroyPlan ",
- "Unable to find component instance"));
- }
- }
- }
- }
-
- // Find the NAM from the map and invoke the destroyPlan() operation on
- // it, which will actuall remove components and connections in this plan.
- // If
- CORBA::Object_var obj =
- this->poa_->id_to_reference (this->map_.get_nam (plan.UUID.in ()));
-
- Deployment::NodeApplicationManager_var nam =
- Deployment::NodeApplicationManager::_narrow (obj.in ());
-
- // Reset each NAM about the shared components information
- Deployment::ComponentPlans_var shared = this->get_shared_components_i ();
- nam->set_shared_components (shared.in ());
-
- nam->destroyApplication (0);
-
- // @@ The problem is that we should NOT actually kill the NA process if
- // there are some components that are shared by other plans.
-}
-
-Deployment::ComponentPlans *
-CIAO::NodeManager_Impl_Base::
-get_shared_components (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException))
-{
- return this->get_shared_components_i ();
-}
-
-Deployment::ComponentPlans *
-CIAO::NodeManager_Impl_Base::get_shared_components_i (void)
-{
- Deployment::ComponentPlans_var retv;
- ACE_NEW_RETURN (retv,
- Deployment::ComponentPlans,
- 0);
- retv->length (0);
-
- ACE_Unbounded_Set<ACE_CString>::iterator
- end = this->shared_components_.end ();
-
- for (ACE_Unbounded_Set<ACE_CString>::iterator
- iter = this->shared_components_.begin ();
- iter != end;
- ++iter)
- {
- CORBA::ULong curr_len = retv->length ();
- retv->length (curr_len + 1);
- (*retv)[curr_len].name = (*iter).c_str ();
-
- // Fill in the plan_uuid information about this component, by
- // searching in the ref_count_map_
- Reference_Count_Map::ENTRY *entry = 0;
- if (this->ref_count_map_.find ((*iter).c_str (), entry) == 0)
- {
- // Get the plan_uuid_ info and populate the field
- (*retv)[curr_len].plan_uuid = entry->int_id_.plan_uuid_.c_str ();
- }
- else
- {
- // should never happen
- ACE_DEBUG ((LM_ERROR, "Component [%s] in the list of shared component, "
- "was not found in the NodeManager ref count map.\n",
- (*iter).c_str ()));
- }
- }
-
- return retv._retn ();
-}
-
-
-CORBA::StringSeq *
-CIAO::NodeManager_Impl_Base::shared_components_seq (void)
-{
- CORBA::StringSeq * retv;
- ACE_NEW_RETURN (retv, CORBA::StringSeq, 0);
- retv->length (0);
-
- ACE_Unbounded_Set<ACE_CString>::iterator end = this->shared_components_.end ();
- for (ACE_Unbounded_Set<ACE_CString>::iterator
- iter = this->shared_components_.begin ();
- iter != end;
- ++iter)
- {
- CORBA::ULong curr_len = retv->length ();
- retv->length (curr_len + 1);
- (*retv)[curr_len] = (*iter).c_str ();
- }
-
- return retv;
-}
-
bool
-CIAO::NodeManager_Impl_Base::
-validate_plan (const Deployment::DeploymentPlan &plan)
+CIAO::NodeManager_Impl::validate_plan (const Deployment::DeploymentPlan &plan)
{
const char * resource_id = 0;
CORBA::ULong i = 0;
@@ -540,7 +253,7 @@ validate_plan (const Deployment::DeploymentPlan &plan)
// the "resourceValue" field represents the policy_set_id, so we
// are checking to make sure that all component instances have
// the same server_resource_id.
- resource_id =
+ resource_id =
plan.instance[i].deployedResource[0].resourceName.in ();
break;
}
@@ -557,7 +270,7 @@ validate_plan (const Deployment::DeploymentPlan &plan)
}
else
{
- my_resource_id =
+ my_resource_id =
plan.instance[i].deployedResource[0].resourceName.in ();;
if (ACE_OS::strcmp (resource_id, my_resource_id) != 0)
{
@@ -568,94 +281,3 @@ validate_plan (const Deployment::DeploymentPlan &plan)
}
return true;
}
-
-CIAO::NodeManager_Impl::~NodeManager_Impl ()
-{
-}
-
-CIAO::NodeManager_Impl::
-NodeManager_Impl (const char *name,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- const char * nodeapp_loc,
- const char * nodeapp_options,
- int spawn_delay)
- : NodeManager_Impl_Base (name, orb, poa, nodeapp_loc, nodeapp_options, spawn_delay)
-{}
-
-
-::CIAO::NodeApplicationManager_Impl_Base *
-CIAO::NodeManager_Impl::
-create_node_app_manager (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- CIAO::NodeApplicationManager_Impl_Base *app_mgr;
- ACE_NEW_THROW_EX (app_mgr,
- CIAO::NodeApplicationManager_Impl (orb,
- poa),
- CORBA::NO_MEMORY ());
- return app_mgr;
-}
-
-CIAO::Static_NodeManager_Impl::~Static_NodeManager_Impl ()
-{
-}
-
-CIAO::Static_NodeManager_Impl::
-Static_NodeManager_Impl (const char *name,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- const char * nodeapp_loc,
- const char * nodeapp_options,
- int spawn_delay,
- Static_Config_EntryPoints_Maps* static_config_entrypoints_maps)
- : NodeManager_Impl_Base (name, orb, poa, nodeapp_loc, nodeapp_options, spawn_delay),
- static_config_entrypoints_maps_ (static_config_entrypoints_maps)
-{}
-
-::CIAO::NodeApplicationManager_Impl_Base *
-CIAO::Static_NodeManager_Impl::
-create_node_app_manager (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG, "creating static_node_app_manager\n"));
- CIAO::NodeApplicationManager_Impl_Base *app_mgr;
- ACE_NEW_THROW_EX (app_mgr,
- CIAO::Static_NodeApplicationManager_Impl (orb,
- poa,
- this->static_config_entrypoints_maps_),
- CORBA::NO_MEMORY ());
- return app_mgr;
-}
-
-void
-CIAO::Static_NodeManager_Impl::destroyManager
- (Deployment::NodeApplicationManager_ptr manager
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StopError,
- Deployment::InvalidReference))
-{
- CIAO_TRACE("CIAO::Static_NodeManager_Impl::destroyManager");
- ACE_TRY
- {
- CIAO::NodeManager_Impl_Base::destroyManager (manager ACE_ENV_ARG_PARAMETER);
-
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Static_NodeManager_Impl::destroyManager\t\n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
-
- ACE_CHECK;
-}
diff --git a/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.h b/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.h
index 55ed65c5c0d..3dff06a20f2 100644
--- a/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.h
+++ b/TAO/CIAO/DAnCE/NodeManager/NodeManager_Impl.h
@@ -6,14 +6,13 @@
* $Id$
*
* This file contains servant implementation for Deployment:NodeManager
- * interface. In the current design of the NodeManager, each NodeManager
- * could manage one or more NodeApplication Managers.
- * Though, the name intuitively suggests
+ * interface. In the current design of the NodeManager, as with the
+ * legacy implementation of CIAO, Each NodeManager corresponds to
+ * ONE NodeApplication Manager. Though, the name intuitively suggests
* that there be one NodeManager for every node, our design, allows
* the end-user to have multiple components run on the same node.
*
* @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
*/
//=============================================================================
@@ -22,7 +21,7 @@
#define CIAO_NODEMANAGER_IMPL_H
#include /**/ "ace/pre.h"
-#include "Interfaces/NodeManagerDaemonS.h"
+#include "NodeManagerS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,39 +32,26 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-#include "NodeManager_svnt_export.h"
#include "NAM_Map.h"
-#include "MonitorController.h"
-#include "ace/Vector_T.h"
namespace CIAO
{
- class NodeApplicationManager_Impl_Base;
-
/**
* @class NodeManager_Impl
*
* @brief Servant implementation CIAO's daemon process control
* interface
*
- * This class implements the CIAO:NodeManagerDaemon interface.
+ * This class implements the CIAO:NodeManager interface.
*
*/
- class NodeManager_svnt_Export NodeManager_Impl_Base
- : public virtual POA_CIAO::NodeManagerDaemon
+ class NodeManager_Impl
+ : public virtual POA_CIAO::NodeManager
{
public:
- /// A struct that tracks the reference count of a particular
- /// component as well as the "child_plan_uuid" where the component is
- /// actually installed
- typedef struct _ref_count_info
- {
- ACE_CString plan_uuid_;
- size_t count_;
- } Ref_Count_Info;
/// Constructor
- NodeManager_Impl_Base (const char *name,
+ NodeManager_Impl (const char *name,
CORBA::ORB_ptr orb,
PortableServer::POA_ptr p,
const char * nodeapp_loc,
@@ -111,34 +97,6 @@ namespace CIAO
Deployment::StopError,
Deployment::InvalidReference));
- /// CIAO specific extension, which is particularly useful for dealing with
- /// shared components issue
- virtual void destroyPlan (const Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException,
- ::Deployment::StopError));
-
- /// CIAO specific extension, return a set of shared components
- virtual ::Deployment::ComponentPlans *
- get_shared_components (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- // ********* CIAO Specific Helper functions ************
-
- virtual ::Components::FacetDescriptions *
- get_all_facets (ACE_CString & name);
-
- virtual ::Components::ConsumerDescriptions *
- get_all_consumers (ACE_CString & name);
-
- virtual void
- set_all_facets (ACE_CString &name,
- const ::Components::FacetDescriptions_var & facets);
-
- virtual void
- set_all_consumers (ACE_CString &name,
- const ::Components::ConsumerDescriptions_var & consumers);
-
private:
/// Validate the child deployment plan. In particular, we are
/// trying to verify that all the component instances within this
@@ -152,20 +110,7 @@ namespace CIAO
/// through the reference counting mechanism (i.e. to
/// disallow calling operator delete() on an instance of
/// this class.
- virtual ~NodeManager_Impl_Base (void);
-
- virtual ::CIAO::NodeApplicationManager_Impl_Base *
- create_node_app_manager (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))=0;
-
- /// Actual implementation of the <get_shared_components> IDL operation
- virtual ::Deployment::ComponentPlans *
- get_shared_components_i (void);
-
- /// A helper method that convert ACE_Unbounded_Set to CORBA StringSeq
- CORBA::StringSeq * shared_components_seq (void);
+ virtual ~NodeManager_Impl (void);
/// Keep a pointer to the managing ORB serving this servant.
CORBA::ORB_var orb_;
@@ -188,131 +133,11 @@ namespace CIAO
/// Spawn delay for the NodeAppMgr
int spawn_delay_;
- /// Cache reference of last NodeAppManager
- /// Deployment::NodeApplicationManager_var manager_;
- NAM_Map map_;
-
- /// A reference count map for the components installed on this node
- /// @@TODO We should also keep the information about *where* the
- /// component is installed
- typedef
- ACE_Hash_Map_Manager_Ex <ACE_CString,
- Ref_Count_Info,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> Reference_Count_Map;
- typedef Reference_Count_Map::iterator Ref_Count_Iterator;
-
- Reference_Count_Map ref_count_map_;
-
- /// A set to track the names of shared component instances
- ACE_Unbounded_Set<ACE_CString> shared_components_;
-
- /// Cached object references of ports (facets/consumers) of
- /// all components. This is useful for getting the port object
- /// references of "shared components". The key in the map
- /// is the component instance name.
- typedef
- ACE_Hash_Map_Manager_Ex <ACE_CString,
- Components::FacetDescriptions_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> Component_Facets_Map;
-
- Component_Facets_Map comp_facets_map_;
-
- typedef
- ACE_Hash_Map_Manager_Ex <ACE_CString,
- Components::ConsumerDescriptions_var,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> Component_Consumers_Map;
-
- Component_Consumers_Map comp_consumers_map_;
-
- /// The MonitorController pointer
- auto_ptr <MonitorController> monitor_controller_;
- };
-
-
- /**
- * @class NodeManager_Impl
- *
- */
- class NodeManager_svnt_Export NodeManager_Impl
- : public virtual NodeManager_Impl_Base
- {
- public:
-
- /// Constructor
- NodeManager_Impl (const char *name,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr p,
- const char * nodeapp_loc,
- const char * nodeapp_options,
- int spawn_delay);
+ // Cache reference of last NodeAppManager
+ // Deployment::NodeApplicationManager_var manager_;
- protected:
- /// Since this class is reference counted, making this
- /// destructor protected to enforce proper memory managment
- /// through the reference counting mechanism (i.e. to
- /// disallow calling operator delete() on an instance of
- /// this class.
- virtual ~NodeManager_Impl (void);
-
- virtual ::CIAO::NodeApplicationManager_Impl_Base *
- create_node_app_manager (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
- };
-
- class NodeApplicationManager_Impl;
- struct Static_Config_EntryPoints_Maps;
-
- /**
- * @class Static_NodeManager_Impl
- *
- */
- class NodeManager_svnt_Export Static_NodeManager_Impl
- : public virtual NodeManager_Impl_Base
- {
- public:
-
- /// Constructor
- Static_NodeManager_Impl (const char *name,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr p,
- const char * nodeapp_loc,
- const char * nodeapp_options,
- int spawn_delay,
- Static_Config_EntryPoints_Maps* static_config_entrypoints_maps
- );
-
- void destroyManager
- (Deployment::NodeApplicationManager_ptr manager
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Deployment::StopError,
- Deployment::InvalidReference));
-
- protected:
- /// Since this class is reference counted, making this
- /// destructor protected to enforce proper memory managment
- /// through the reference counting mechanism (i.e. to
- /// disallow calling operator delete() on an instance of
- /// this class.
- virtual ~Static_NodeManager_Impl (void);
-
- virtual ::CIAO::NodeApplicationManager_Impl_Base *
- create_node_app_manager (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- Static_Config_EntryPoints_Maps* static_config_entrypoints_maps_;
+ NAM_Map map_;
};
-
}
#if defined(_MSC_VER)
diff --git a/TAO/CIAO/DAnCE/Interfaces/NodeManager_stub_export.h b/TAO/CIAO/DAnCE/NodeManager/NodeManager_stub_export.h
index 3e708b0ab1f..3e708b0ab1f 100644
--- a/TAO/CIAO/DAnCE/Interfaces/NodeManager_stub_export.h
+++ b/TAO/CIAO/DAnCE/NodeManager/NodeManager_stub_export.h
diff --git a/TAO/CIAO/DAnCE/NodeManager/Node_Manager.cpp b/TAO/CIAO/DAnCE/NodeManager/Node_Manager.cpp
index ecfa53d3645..78d63ebd770 100644
--- a/TAO/CIAO/DAnCE/NodeManager/Node_Manager.cpp
+++ b/TAO/CIAO/DAnCE/NodeManager/Node_Manager.cpp
@@ -25,7 +25,7 @@ int spawn_delay = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:c:m:s:d:na:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:c:m:s:d:n");
int c;
while ((c = get_opts ()) != -1)
@@ -48,11 +48,11 @@ parse_args (int argc, char *argv[])
nodeapp_location_ = get_opts.opt_arg ();
nodeapp_loc_ = 1;
break;
-
+
case 'a': // Nodeapplication arguments
nodeapp_options_ = get_opts.opt_arg ();
break;
-
+
case 'd': //get the spawn delay argument
spawn_delay = ACE_OS::atoi (get_opts.opt_arg ());
break;
@@ -69,7 +69,6 @@ parse_args (int argc, char *argv[])
"-c <svc.conf file>\n"
"-n <use naming service>\n"
"-s <NodeApplication executable path>\n"
- "-a <arguments to NodeApplication>\n"
"-d <spawn delay for nodeapplication>\n"
"\n",
argv [0]),
@@ -99,7 +98,7 @@ write_IOR(const char* ior)
bool
register_with_ns (const char * name_context,
CORBA::ORB_ptr orb,
- CIAO::NodeManagerDaemon_ptr obj
+ CIAO::NodeManager_ptr obj
ACE_ENV_ARG_DECL)
{
// Naming Service related operations
@@ -123,7 +122,7 @@ register_with_ns (const char * name_context,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
@@ -172,9 +171,10 @@ main (int argc, char *argv[])
if (CORBA::is_nil (adapter.in ()))
ACE_ERROR_RETURN ((LM_ERROR, "Nil IORTable\n"), -1);
- // Create and install the CIAO NodeManager servant
- CIAO::NodeManager_Impl *node_manager_servant = 0;
- ACE_NEW_RETURN (node_manager_servant,
+
+ // Create and install the CIAO Daemon servant
+ CIAO::NodeManager_Impl *daemon_servant = 0;
+ ACE_NEW_RETURN (daemon_servant,
CIAO::NodeManager_Impl("NodeManager",
orb.in (),
poa.in (),
@@ -182,17 +182,16 @@ main (int argc, char *argv[])
nodeapp_options_,
spawn_delay),
-1);
-
- PortableServer::ServantBase_var safe_daemon (node_manager_servant);
-
- node_manager_servant->init ();
-
+ PortableServer::ServantBase_var safe_daemon (daemon_servant);
+
+ daemon_servant->init ();
+
// Implicit activation
- CIAO::NodeManagerDaemon_var node_manager =
- node_manager_servant->_this ();
+ CIAO::NodeManager_var daemon =
+ daemon_servant->_this ();
CORBA::String_var str =
- orb->object_to_string (node_manager.in ()
+ orb->object_to_string (daemon.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -216,7 +215,7 @@ main (int argc, char *argv[])
// Register this name with the Naming Service
(void) register_with_ns (name,
orb.in (),
- node_manager.in ()
+ daemon.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -231,17 +230,7 @@ main (int argc, char *argv[])
mgr->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- // Here start the Monitor
-/*
- MonitorController* monitor_controller
- = new MonitorController (orb);
-
- ACE_DEBUG ((LM_DEBUG , "Before Activate"));
- monitor_controller->activate ();
- ACE_DEBUG ((LM_DEBUG , "After Activate"));
-*/
-
- // Finishing Deployment part
+ // End Deployment part
ACE_DEBUG ((LM_DEBUG,
"CIAO_NodeManager is running...\n"));
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.cpp
new file mode 100644
index 00000000000..55efb468266
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.cpp
@@ -0,0 +1,225 @@
+//$Id$
+
+#include "Any_Handler.h"
+#include "DT_Handler.h"
+#include "Utils.h"
+
+#include "tao/Exception.h"
+
+#include "ace/OS_NS_string.h"
+
+void
+CIAO::Config_Handler::Any_Handler::validate_ValueNode (DOMNodeIterator * iter,
+ const char * name)
+{
+ DOMNode * node = iter->nextNode ();
+ XStr temp_name (node->getNodeName ());
+ if (temp_name != XStr (ACE_TEXT (name)))
+ {
+ ACE_DEBUG ((LM_DEBUG, "CIAO::Config_Handler::Any_Handler::validate\
+ valueNode (), element mismatch expected \
+ <%s> \n", name));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+}
+
+void
+CIAO::Config_Handler::Any_Handler::process_Any (DOMNodeIterator * iter,
+ ::CORBA::Any &any_obj)
+{
+ // Process the name value definitions within the Any
+ DOMNode * node = iter->nextNode ();
+
+ // Get name of the current element
+ XStr name (node->getNodeName ());
+
+ // Initialize the ORB so that CORBA::Any will work
+ int argc = 0;
+ char ** argv = 0;
+ CORBA::ORB_ptr orb = CORBA::ORB_init (argc, argv, "");
+
+ if (name == XStr (ACE_TEXT ("type")))
+ {
+ // Process DataType
+ ::CORBA::TypeCode_var type;
+ DT_Handler::process_DataType (iter, type.out (), orb);
+
+ //Switch on the type of the BasicType
+ switch (type->kind ())
+ {
+ case CORBA::tk_short:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "short");
+ // Process the short value
+ any_obj <<= static_cast<CORBA::Short> (Utils::parse_long (iter));
+ break;
+
+ case CORBA::tk_ushort:
+
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "ushort");
+ // Process the ushort value
+ any_obj <<= static_cast<CORBA::UShort> (Utils::parse_ulong (iter));
+ break;
+
+ case CORBA::tk_long:
+
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <long> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "long");
+ // Process the long value
+ any_obj <<= static_cast<CORBA::Long> (Utils::parse_long (iter));
+ break;
+
+ case CORBA::tk_ulong:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <ulong> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "ulong");
+ // Process the ulong value
+ any_obj <<= static_cast<CORBA::ULong> (Utils::parse_long (iter));
+ break;
+
+ case CORBA::tk_float:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <float> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "float");
+ // Process the float value
+ any_obj <<= static_cast<CORBA::Float> (Utils::parse_float (iter));
+ break;
+
+ case CORBA::tk_double:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "double");
+ // Process the double value
+ any_obj <<= static_cast<CORBA::Double> (Utils::parse_double (iter));
+ break;
+
+ case CORBA::tk_boolean:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "bool");
+ // Process the bool value
+ any_obj <<= CORBA::Any::from_boolean (Utils::parse_bool (iter));
+ break;
+
+ case CORBA::tk_char:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "char");
+ // Process the char value
+ any_obj <<= CORBA::Any::from_char (Utils::parse_char (iter));
+ break;
+
+ case CORBA::tk_octet:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "octet");
+ // Process the octet value
+ any_obj <<= CORBA::Any::from_octet (Utils::parse_octet (iter));
+ break;
+
+ case CORBA::tk_string:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "string");
+ // Process the string value
+ {
+ char * temp = Utils::parse_string (iter);
+ any_obj <<= temp;
+ XMLString::release (&temp);
+ }
+ break;
+
+ case CORBA::tk_longlong:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "longlong");
+ // Process the longlong value
+ any_obj <<= static_cast<CORBA::LongLong> (Utils::parse_long (iter));
+ break;
+
+ case CORBA::tk_ulonglong:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "ulonglong");
+ // Process the longlong value
+ any_obj <<= static_cast<CORBA::ULongLong> (Utils::parse_ulong (iter));
+ break;
+
+ case CORBA::tk_longdouble:
+ // Check if next node is a <value> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "value");
+ // Check if the next node is a <short> node
+ CIAO::Config_Handler::Any_Handler::validate_ValueNode (iter,
+ "longdouble");
+ // Process the longlong value -- Create a scope to define the
+ // lifetime for the ret_val object created within the case statement.
+ {
+#if ACE_SIZEOF_LONG_DOUBLE == 16
+ CORBA::LongDouble ret_str = Utils::parse_double (iter);
+#else
+ CORBA::LongDouble ret_str;
+ char * ret_val = Utils::parse_string (iter);
+ ACE_OS::memcpy (&ret_str.ld, ret_val, 16);
+ XMLString::release (&ret_val);
+#endif
+ any_obj <<= ret_str;
+ }
+ break;
+
+ default:
+ ACE_DEBUG ((LM_DEBUG, "Currently the DnC handlers support only \
+ basic types, complex and recusive type \
+ support will be added\n"));
+ }
+ }
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "Config_Handlers::Any_Handler::process_ \
+ Any element mismatch expected <type>"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Release ORB resource
+ CORBA::release (orb);
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.h
new file mode 100644
index 00000000000..be6dbcd591f
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Any_Handler.h
@@ -0,0 +1,59 @@
+//==================================================================
+/**
+ * @file Any_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef ANY_HANDLER_H
+#define ANY_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class Any_Handler
+ *
+ * @brief Handler class for <Deployment:Any> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Dependency types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export Any_Handler
+ {
+ public:
+ static void process_Any (DOMNodeIterator * iter,
+ ::CORBA::Any &any_obj);
+ // process elements of type Deployment:Any in the descriptor files
+
+ private:
+ static void validate_ValueNode (DOMNodeIterator * iter,
+ const char * name);
+ // validate <value> .. </value> node present in the XML schema
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* ID_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.cpp
new file mode 100644
index 00000000000..062be4de64c
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.cpp
@@ -0,0 +1,6257 @@
+// $Id$
+#include "Basic_Deployment_Data.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // TCKind
+ //
+
+ TCKind::
+ TCKind ()
+ {
+ }
+
+ TCKind::Value TCKind::
+ integral () const
+ {
+ return v_;
+ }
+
+ bool
+ operator== (::CIAO::Config_Handlers::TCKind const& a, ::CIAO::Config_Handlers::TCKind const& b)
+ {
+ return a.v_ == b.v_;
+ }
+
+ bool
+ operator!= (::CIAO::Config_Handlers::TCKind const& a, ::CIAO::Config_Handlers::TCKind const& b)
+ {
+ return a.v_ != b.v_;
+ }
+
+ TCKind::
+ TCKind (TCKind::Value v)
+ : v_ (v)
+ {
+ }
+
+ // DataType
+ //
+
+ DataType::
+ DataType ()
+ :
+ regulator__ ()
+ {
+ }
+
+ DataType::
+ DataType (::CIAO::Config_Handlers::DataType const& s)
+ :
+ kind_ (s.kind_.get () ? new ::CIAO::Config_Handlers::TCKind (*s.kind_) : 0),
+ regulator__ ()
+ {
+ if (kind_.get ()) kind_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::DataType& DataType::
+ operator= (::CIAO::Config_Handlers::DataType const& s)
+ {
+ if (s.kind_.get ()) kind (*(s.kind_));
+ else kind_ = ::std::auto_ptr< ::CIAO::Config_Handlers::TCKind > (0);
+
+ return *this;
+ }
+
+
+ // DataType
+ //
+ bool DataType::
+ kind_p () const
+ {
+ return kind_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::TCKind const& DataType::
+ kind () const
+ {
+ return *kind_;
+ }
+
+ ::CIAO::Config_Handlers::TCKind& DataType::
+ kind ()
+ {
+ return *kind_;
+ }
+
+ void DataType::
+ kind (::CIAO::Config_Handlers::TCKind const& e)
+ {
+ if (kind_.get ())
+ {
+ *kind_ = e;
+ }
+
+ else
+ {
+ kind_ = ::std::auto_ptr< ::CIAO::Config_Handlers::TCKind > (new ::CIAO::Config_Handlers::TCKind (e));
+ kind_->container (this);
+ }
+ }
+
+
+ // DataValue
+ //
+
+ DataValue::
+ DataValue ()
+ :
+ regulator__ ()
+ {
+ }
+
+ DataValue::
+ DataValue (::CIAO::Config_Handlers::DataValue const& s)
+ :
+ short__ (s.short__.get () ? new ::XMLSchema::short_ (*s.short__) : 0),
+ long__ (s.long__.get () ? new ::XMLSchema::int_ (*s.long__) : 0),
+ ushort_ (s.ushort_.get () ? new ::XMLSchema::unsignedShort (*s.ushort_) : 0),
+ ulong_ (s.ulong_.get () ? new ::XMLSchema::unsignedInt (*s.ulong_) : 0),
+ float__ (s.float__.get () ? new ::XMLSchema::float_ (*s.float__) : 0),
+ double__ (s.double__.get () ? new ::XMLSchema::double_ (*s.double__) : 0),
+ boolean_ (s.boolean_.get () ? new ::XMLSchema::boolean (*s.boolean_) : 0),
+ octet_ (s.octet_.get () ? new ::XMLSchema::unsignedByte (*s.octet_) : 0),
+ objref_ (s.objref_.get () ? new ::XMLSchema::string< char > (*s.objref_) : 0),
+ enum__ (s.enum__.get () ? new ::XMLSchema::string< char > (*s.enum__) : 0),
+ string_ (s.string_.get () ? new ::XMLSchema::string< char > (*s.string_) : 0),
+ longlong_ (s.longlong_.get () ? new ::XMLSchema::long_ (*s.longlong_) : 0),
+ ulonglong_ (s.ulonglong_.get () ? new ::XMLSchema::unsignedLong (*s.ulonglong_) : 0),
+ longdouble_ (s.longdouble_.get () ? new ::XMLSchema::double_ (*s.longdouble_) : 0),
+ fixed_ (s.fixed_.get () ? new ::XMLSchema::string< char > (*s.fixed_) : 0),
+ typecode_ (s.typecode_.get () ? new ::CIAO::Config_Handlers::DataType (*s.typecode_) : 0),
+ regulator__ ()
+ {
+ if (short__.get ()) short__->container (this);
+ if (long__.get ()) long__->container (this);
+ if (ushort_.get ()) ushort_->container (this);
+ if (ulong_.get ()) ulong_->container (this);
+ if (float__.get ()) float__->container (this);
+ if (double__.get ()) double__->container (this);
+ if (boolean_.get ()) boolean_->container (this);
+ if (octet_.get ()) octet_->container (this);
+ if (objref_.get ()) objref_->container (this);
+ if (enum__.get ()) enum__->container (this);
+ if (string_.get ()) string_->container (this);
+ if (longlong_.get ()) longlong_->container (this);
+ if (ulonglong_.get ()) ulonglong_->container (this);
+ if (longdouble_.get ()) longdouble_->container (this);
+ if (fixed_.get ()) fixed_->container (this);
+ if (typecode_.get ()) typecode_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::DataValue& DataValue::
+ operator= (::CIAO::Config_Handlers::DataValue const& s)
+ {
+ if (s.short__.get ()) short_ (*(s.short__));
+ else short__ = ::std::auto_ptr< ::XMLSchema::short_ > (0);
+
+ if (s.long__.get ()) long_ (*(s.long__));
+ else long__ = ::std::auto_ptr< ::XMLSchema::int_ > (0);
+
+ if (s.ushort_.get ()) ushort (*(s.ushort_));
+ else ushort_ = ::std::auto_ptr< ::XMLSchema::unsignedShort > (0);
+
+ if (s.ulong_.get ()) ulong (*(s.ulong_));
+ else ulong_ = ::std::auto_ptr< ::XMLSchema::unsignedInt > (0);
+
+ if (s.float__.get ()) float_ (*(s.float__));
+ else float__ = ::std::auto_ptr< ::XMLSchema::float_ > (0);
+
+ if (s.double__.get ()) double_ (*(s.double__));
+ else double__ = ::std::auto_ptr< ::XMLSchema::double_ > (0);
+
+ if (s.boolean_.get ()) boolean (*(s.boolean_));
+ else boolean_ = ::std::auto_ptr< ::XMLSchema::boolean > (0);
+
+ if (s.octet_.get ()) octet (*(s.octet_));
+ else octet_ = ::std::auto_ptr< ::XMLSchema::unsignedByte > (0);
+
+ if (s.objref_.get ()) objref (*(s.objref_));
+ else objref_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.enum__.get ()) enum_ (*(s.enum__));
+ else enum__ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.string_.get ()) string (*(s.string_));
+ else string_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.longlong_.get ()) longlong (*(s.longlong_));
+ else longlong_ = ::std::auto_ptr< ::XMLSchema::long_ > (0);
+
+ if (s.ulonglong_.get ()) ulonglong (*(s.ulonglong_));
+ else ulonglong_ = ::std::auto_ptr< ::XMLSchema::unsignedLong > (0);
+
+ if (s.longdouble_.get ()) longdouble (*(s.longdouble_));
+ else longdouble_ = ::std::auto_ptr< ::XMLSchema::double_ > (0);
+
+ if (s.fixed_.get ()) fixed (*(s.fixed_));
+ else fixed_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.typecode_.get ()) typecode (*(s.typecode_));
+ else typecode_ = ::std::auto_ptr< ::CIAO::Config_Handlers::DataType > (0);
+
+ return *this;
+ }
+
+
+ // DataValue
+ //
+ bool DataValue::
+ short_p () const
+ {
+ return short__.get () != 0;
+ }
+
+ ::XMLSchema::short_ const& DataValue::
+ short_ () const
+ {
+ return *short__;
+ }
+
+ ::XMLSchema::short_& DataValue::
+ short_ ()
+ {
+ return *short__;
+ }
+
+ void DataValue::
+ short_ (::XMLSchema::short_ const& e)
+ {
+ if (short__.get ())
+ {
+ *short__ = e;
+ }
+
+ else
+ {
+ short__ = ::std::auto_ptr< ::XMLSchema::short_ > (new ::XMLSchema::short_ (e));
+ short__->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ long_p () const
+ {
+ return long__.get () != 0;
+ }
+
+ ::XMLSchema::int_ const& DataValue::
+ long_ () const
+ {
+ return *long__;
+ }
+
+ ::XMLSchema::int_& DataValue::
+ long_ ()
+ {
+ return *long__;
+ }
+
+ void DataValue::
+ long_ (::XMLSchema::int_ const& e)
+ {
+ if (long__.get ())
+ {
+ *long__ = e;
+ }
+
+ else
+ {
+ long__ = ::std::auto_ptr< ::XMLSchema::int_ > (new ::XMLSchema::int_ (e));
+ long__->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ ushort_p () const
+ {
+ return ushort_.get () != 0;
+ }
+
+ ::XMLSchema::unsignedShort const& DataValue::
+ ushort () const
+ {
+ return *ushort_;
+ }
+
+ ::XMLSchema::unsignedShort& DataValue::
+ ushort ()
+ {
+ return *ushort_;
+ }
+
+ void DataValue::
+ ushort (::XMLSchema::unsignedShort const& e)
+ {
+ if (ushort_.get ())
+ {
+ *ushort_ = e;
+ }
+
+ else
+ {
+ ushort_ = ::std::auto_ptr< ::XMLSchema::unsignedShort > (new ::XMLSchema::unsignedShort (e));
+ ushort_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ ulong_p () const
+ {
+ return ulong_.get () != 0;
+ }
+
+ ::XMLSchema::unsignedInt const& DataValue::
+ ulong () const
+ {
+ return *ulong_;
+ }
+
+ ::XMLSchema::unsignedInt& DataValue::
+ ulong ()
+ {
+ return *ulong_;
+ }
+
+ void DataValue::
+ ulong (::XMLSchema::unsignedInt const& e)
+ {
+ if (ulong_.get ())
+ {
+ *ulong_ = e;
+ }
+
+ else
+ {
+ ulong_ = ::std::auto_ptr< ::XMLSchema::unsignedInt > (new ::XMLSchema::unsignedInt (e));
+ ulong_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ float_p () const
+ {
+ return float__.get () != 0;
+ }
+
+ ::XMLSchema::float_ const& DataValue::
+ float_ () const
+ {
+ return *float__;
+ }
+
+ ::XMLSchema::float_& DataValue::
+ float_ ()
+ {
+ return *float__;
+ }
+
+ void DataValue::
+ float_ (::XMLSchema::float_ const& e)
+ {
+ if (float__.get ())
+ {
+ *float__ = e;
+ }
+
+ else
+ {
+ float__ = ::std::auto_ptr< ::XMLSchema::float_ > (new ::XMLSchema::float_ (e));
+ float__->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ double_p () const
+ {
+ return double__.get () != 0;
+ }
+
+ ::XMLSchema::double_ const& DataValue::
+ double_ () const
+ {
+ return *double__;
+ }
+
+ ::XMLSchema::double_& DataValue::
+ double_ ()
+ {
+ return *double__;
+ }
+
+ void DataValue::
+ double_ (::XMLSchema::double_ const& e)
+ {
+ if (double__.get ())
+ {
+ *double__ = e;
+ }
+
+ else
+ {
+ double__ = ::std::auto_ptr< ::XMLSchema::double_ > (new ::XMLSchema::double_ (e));
+ double__->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ boolean_p () const
+ {
+ return boolean_.get () != 0;
+ }
+
+ ::XMLSchema::boolean const& DataValue::
+ boolean () const
+ {
+ return *boolean_;
+ }
+
+ ::XMLSchema::boolean& DataValue::
+ boolean ()
+ {
+ return *boolean_;
+ }
+
+ void DataValue::
+ boolean (::XMLSchema::boolean const& e)
+ {
+ if (boolean_.get ())
+ {
+ *boolean_ = e;
+ }
+
+ else
+ {
+ boolean_ = ::std::auto_ptr< ::XMLSchema::boolean > (new ::XMLSchema::boolean (e));
+ boolean_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ octet_p () const
+ {
+ return octet_.get () != 0;
+ }
+
+ ::XMLSchema::unsignedByte const& DataValue::
+ octet () const
+ {
+ return *octet_;
+ }
+
+ ::XMLSchema::unsignedByte& DataValue::
+ octet ()
+ {
+ return *octet_;
+ }
+
+ void DataValue::
+ octet (::XMLSchema::unsignedByte const& e)
+ {
+ if (octet_.get ())
+ {
+ *octet_ = e;
+ }
+
+ else
+ {
+ octet_ = ::std::auto_ptr< ::XMLSchema::unsignedByte > (new ::XMLSchema::unsignedByte (e));
+ octet_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ objref_p () const
+ {
+ return objref_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& DataValue::
+ objref () const
+ {
+ return *objref_;
+ }
+
+ ::XMLSchema::string< char >& DataValue::
+ objref ()
+ {
+ return *objref_;
+ }
+
+ void DataValue::
+ objref (::XMLSchema::string< char > const& e)
+ {
+ if (objref_.get ())
+ {
+ *objref_ = e;
+ }
+
+ else
+ {
+ objref_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ objref_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ enum_p () const
+ {
+ return enum__.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& DataValue::
+ enum_ () const
+ {
+ return *enum__;
+ }
+
+ ::XMLSchema::string< char >& DataValue::
+ enum_ ()
+ {
+ return *enum__;
+ }
+
+ void DataValue::
+ enum_ (::XMLSchema::string< char > const& e)
+ {
+ if (enum__.get ())
+ {
+ *enum__ = e;
+ }
+
+ else
+ {
+ enum__ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ enum__->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ string_p () const
+ {
+ return string_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& DataValue::
+ string () const
+ {
+ return *string_;
+ }
+
+ ::XMLSchema::string< char >& DataValue::
+ string ()
+ {
+ return *string_;
+ }
+
+ void DataValue::
+ string (::XMLSchema::string< char > const& e)
+ {
+ if (string_.get ())
+ {
+ *string_ = e;
+ }
+
+ else
+ {
+ string_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ string_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ longlong_p () const
+ {
+ return longlong_.get () != 0;
+ }
+
+ ::XMLSchema::long_ const& DataValue::
+ longlong () const
+ {
+ return *longlong_;
+ }
+
+ ::XMLSchema::long_& DataValue::
+ longlong ()
+ {
+ return *longlong_;
+ }
+
+ void DataValue::
+ longlong (::XMLSchema::long_ const& e)
+ {
+ if (longlong_.get ())
+ {
+ *longlong_ = e;
+ }
+
+ else
+ {
+ longlong_ = ::std::auto_ptr< ::XMLSchema::long_ > (new ::XMLSchema::long_ (e));
+ longlong_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ ulonglong_p () const
+ {
+ return ulonglong_.get () != 0;
+ }
+
+ ::XMLSchema::unsignedLong const& DataValue::
+ ulonglong () const
+ {
+ return *ulonglong_;
+ }
+
+ ::XMLSchema::unsignedLong& DataValue::
+ ulonglong ()
+ {
+ return *ulonglong_;
+ }
+
+ void DataValue::
+ ulonglong (::XMLSchema::unsignedLong const& e)
+ {
+ if (ulonglong_.get ())
+ {
+ *ulonglong_ = e;
+ }
+
+ else
+ {
+ ulonglong_ = ::std::auto_ptr< ::XMLSchema::unsignedLong > (new ::XMLSchema::unsignedLong (e));
+ ulonglong_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ longdouble_p () const
+ {
+ return longdouble_.get () != 0;
+ }
+
+ ::XMLSchema::double_ const& DataValue::
+ longdouble () const
+ {
+ return *longdouble_;
+ }
+
+ ::XMLSchema::double_& DataValue::
+ longdouble ()
+ {
+ return *longdouble_;
+ }
+
+ void DataValue::
+ longdouble (::XMLSchema::double_ const& e)
+ {
+ if (longdouble_.get ())
+ {
+ *longdouble_ = e;
+ }
+
+ else
+ {
+ longdouble_ = ::std::auto_ptr< ::XMLSchema::double_ > (new ::XMLSchema::double_ (e));
+ longdouble_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ fixed_p () const
+ {
+ return fixed_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& DataValue::
+ fixed () const
+ {
+ return *fixed_;
+ }
+
+ ::XMLSchema::string< char >& DataValue::
+ fixed ()
+ {
+ return *fixed_;
+ }
+
+ void DataValue::
+ fixed (::XMLSchema::string< char > const& e)
+ {
+ if (fixed_.get ())
+ {
+ *fixed_ = e;
+ }
+
+ else
+ {
+ fixed_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ fixed_->container (this);
+ }
+ }
+
+ // DataValue
+ //
+ bool DataValue::
+ typecode_p () const
+ {
+ return typecode_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::DataType const& DataValue::
+ typecode () const
+ {
+ return *typecode_;
+ }
+
+ ::CIAO::Config_Handlers::DataType& DataValue::
+ typecode ()
+ {
+ return *typecode_;
+ }
+
+ void DataValue::
+ typecode (::CIAO::Config_Handlers::DataType const& e)
+ {
+ if (typecode_.get ())
+ {
+ *typecode_ = e;
+ }
+
+ else
+ {
+ typecode_ = ::std::auto_ptr< ::CIAO::Config_Handlers::DataType > (new ::CIAO::Config_Handlers::DataType (e));
+ typecode_->container (this);
+ }
+ }
+
+
+ // Any
+ //
+
+ Any::
+ Any ()
+ :
+ type_ (new ::CIAO::Config_Handlers::DataType ()),
+ value_ (new ::CIAO::Config_Handlers::DataValue ()),
+ regulator__ ()
+ {
+ type_->container (this);
+ value_->container (this);
+ }
+
+ Any::
+ Any (::CIAO::Config_Handlers::Any const& s)
+ :
+ type_ (new ::CIAO::Config_Handlers::DataType (*s.type_)),
+ value_ (new ::CIAO::Config_Handlers::DataValue (*s.value_)),
+ regulator__ ()
+ {
+ type_->container (this);
+ value_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Any& Any::
+ operator= (::CIAO::Config_Handlers::Any const& s)
+ {
+ type (s.type ());
+
+ value (s.value ());
+
+ return *this;
+ }
+
+
+ // Any
+ //
+ ::CIAO::Config_Handlers::DataType const& Any::
+ type () const
+ {
+ return *type_;
+ }
+
+ ::CIAO::Config_Handlers::DataType& Any::
+ type ()
+ {
+ return *type_;
+ }
+
+ void Any::
+ type (::CIAO::Config_Handlers::DataType const& e)
+ {
+ *type_ = e;
+ }
+
+ // Any
+ //
+ ::CIAO::Config_Handlers::DataValue const& Any::
+ value () const
+ {
+ return *value_;
+ }
+
+ ::CIAO::Config_Handlers::DataValue& Any::
+ value ()
+ {
+ return *value_;
+ }
+
+ void Any::
+ value (::CIAO::Config_Handlers::DataValue const& e)
+ {
+ *value_ = e;
+ }
+
+
+ // Property
+ //
+
+ Property::
+ Property ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ value_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ value_->container (this);
+ }
+
+ Property::
+ Property (::CIAO::Config_Handlers::Property const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ value_ (new ::CIAO::Config_Handlers::Any (*s.value_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ value_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Property& Property::
+ operator= (::CIAO::Config_Handlers::Property const& s)
+ {
+ name (s.name ());
+
+ value (s.value ());
+
+ return *this;
+ }
+
+
+ // Property
+ //
+ ::XMLSchema::string< char > const& Property::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& Property::
+ name ()
+ {
+ return *name_;
+ }
+
+ void Property::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // Property
+ //
+ ::CIAO::Config_Handlers::Any const& Property::
+ value () const
+ {
+ return *value_;
+ }
+
+ ::CIAO::Config_Handlers::Any& Property::
+ value ()
+ {
+ return *value_;
+ }
+
+ void Property::
+ value (::CIAO::Config_Handlers::Any const& e)
+ {
+ *value_ = e;
+ }
+
+
+ // Node
+ //
+
+ Node::
+ Node ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ label_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ label_->container (this);
+ }
+
+ Node::
+ Node (::CIAO::Config_Handlers::Node const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ label_ (new ::XMLSchema::string< char > (*s.label_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ label_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Node& Node::
+ operator= (::CIAO::Config_Handlers::Node const& s)
+ {
+ name (s.name ());
+
+ label (s.label ());
+
+ return *this;
+ }
+
+
+ // Node
+ //
+ ::XMLSchema::string< char > const& Node::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& Node::
+ name ()
+ {
+ return *name_;
+ }
+
+ void Node::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // Node
+ //
+ ::XMLSchema::string< char > const& Node::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& Node::
+ label ()
+ {
+ return *label_;
+ }
+
+ void Node::
+ label (::XMLSchema::string< char > const& e)
+ {
+ *label_ = e;
+ }
+
+
+ // SatisfierPropertyKind
+ //
+
+ SatisfierPropertyKind::
+ SatisfierPropertyKind ()
+ {
+ }
+
+ SatisfierPropertyKind::Value SatisfierPropertyKind::
+ integral () const
+ {
+ return v_;
+ }
+
+ bool
+ operator== (::CIAO::Config_Handlers::SatisfierPropertyKind const& a, ::CIAO::Config_Handlers::SatisfierPropertyKind const& b)
+ {
+ return a.v_ == b.v_;
+ }
+
+ bool
+ operator!= (::CIAO::Config_Handlers::SatisfierPropertyKind const& a, ::CIAO::Config_Handlers::SatisfierPropertyKind const& b)
+ {
+ return a.v_ != b.v_;
+ }
+
+ SatisfierPropertyKind::
+ SatisfierPropertyKind (SatisfierPropertyKind::Value v)
+ : v_ (v)
+ {
+ }
+
+ // SatisfierProperty
+ //
+
+ SatisfierProperty::
+ SatisfierProperty ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ kind_ (new ::CIAO::Config_Handlers::SatisfierPropertyKind ()),
+ value_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ kind_->container (this);
+ value_->container (this);
+ }
+
+ SatisfierProperty::
+ SatisfierProperty (::CIAO::Config_Handlers::SatisfierProperty const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ kind_ (new ::CIAO::Config_Handlers::SatisfierPropertyKind (*s.kind_)),
+ value_ (new ::CIAO::Config_Handlers::Any (*s.value_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ kind_->container (this);
+ value_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::SatisfierProperty& SatisfierProperty::
+ operator= (::CIAO::Config_Handlers::SatisfierProperty const& s)
+ {
+ name (s.name ());
+
+ kind (s.kind ());
+
+ value (s.value ());
+
+ return *this;
+ }
+
+
+ // SatisfierProperty
+ //
+ ::XMLSchema::string< char > const& SatisfierProperty::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& SatisfierProperty::
+ name ()
+ {
+ return *name_;
+ }
+
+ void SatisfierProperty::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // SatisfierProperty
+ //
+ ::CIAO::Config_Handlers::SatisfierPropertyKind const& SatisfierProperty::
+ kind () const
+ {
+ return *kind_;
+ }
+
+ ::CIAO::Config_Handlers::SatisfierPropertyKind& SatisfierProperty::
+ kind ()
+ {
+ return *kind_;
+ }
+
+ void SatisfierProperty::
+ kind (::CIAO::Config_Handlers::SatisfierPropertyKind const& e)
+ {
+ *kind_ = e;
+ }
+
+ // SatisfierProperty
+ //
+ ::CIAO::Config_Handlers::Any const& SatisfierProperty::
+ value () const
+ {
+ return *value_;
+ }
+
+ ::CIAO::Config_Handlers::Any& SatisfierProperty::
+ value ()
+ {
+ return *value_;
+ }
+
+ void SatisfierProperty::
+ value (::CIAO::Config_Handlers::Any const& e)
+ {
+ *value_ = e;
+ }
+
+
+ // Resource
+ //
+
+ Resource::
+ Resource ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
+ }
+
+ Resource::
+ Resource (::CIAO::Config_Handlers::Resource const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ resourceType_ (new ::XMLSchema::string< char > (*s.resourceType_)),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty (*s.property_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Resource& Resource::
+ operator= (::CIAO::Config_Handlers::Resource const& s)
+ {
+ name (s.name ());
+
+ resourceType (s.resourceType ());
+
+ property (s.property ());
+
+ return *this;
+ }
+
+
+ // Resource
+ //
+ ::XMLSchema::string< char > const& Resource::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& Resource::
+ name ()
+ {
+ return *name_;
+ }
+
+ void Resource::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // Resource
+ //
+ ::XMLSchema::string< char > const& Resource::
+ resourceType () const
+ {
+ return *resourceType_;
+ }
+
+ ::XMLSchema::string< char >& Resource::
+ resourceType ()
+ {
+ return *resourceType_;
+ }
+
+ void Resource::
+ resourceType (::XMLSchema::string< char > const& e)
+ {
+ *resourceType_ = e;
+ }
+
+ // Resource
+ //
+ ::CIAO::Config_Handlers::SatisfierProperty const& Resource::
+ property () const
+ {
+ return *property_;
+ }
+
+ ::CIAO::Config_Handlers::SatisfierProperty& Resource::
+ property ()
+ {
+ return *property_;
+ }
+
+ void Resource::
+ property (::CIAO::Config_Handlers::SatisfierProperty const& e)
+ {
+ *property_ = e;
+ }
+
+
+ // SharedResource
+ //
+
+ SharedResource::
+ SharedResource ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ node_ (new ::CIAO::Config_Handlers::Node ()),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ node_->container (this);
+ property_->container (this);
+ }
+
+ SharedResource::
+ SharedResource (::CIAO::Config_Handlers::SharedResource const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ resourceType_ (new ::XMLSchema::string< char > (*s.resourceType_)),
+ node_ (new ::CIAO::Config_Handlers::Node (*s.node_)),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty (*s.property_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ node_->container (this);
+ property_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::SharedResource& SharedResource::
+ operator= (::CIAO::Config_Handlers::SharedResource const& s)
+ {
+ name (s.name ());
+
+ resourceType (s.resourceType ());
+
+ node (s.node ());
+
+ property (s.property ());
+
+ return *this;
+ }
+
+
+ // SharedResource
+ //
+ ::XMLSchema::string< char > const& SharedResource::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& SharedResource::
+ name ()
+ {
+ return *name_;
+ }
+
+ void SharedResource::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // SharedResource
+ //
+ ::XMLSchema::string< char > const& SharedResource::
+ resourceType () const
+ {
+ return *resourceType_;
+ }
+
+ ::XMLSchema::string< char >& SharedResource::
+ resourceType ()
+ {
+ return *resourceType_;
+ }
+
+ void SharedResource::
+ resourceType (::XMLSchema::string< char > const& e)
+ {
+ *resourceType_ = e;
+ }
+
+ // SharedResource
+ //
+ ::CIAO::Config_Handlers::Node const& SharedResource::
+ node () const
+ {
+ return *node_;
+ }
+
+ ::CIAO::Config_Handlers::Node& SharedResource::
+ node ()
+ {
+ return *node_;
+ }
+
+ void SharedResource::
+ node (::CIAO::Config_Handlers::Node const& e)
+ {
+ *node_ = e;
+ }
+
+ // SharedResource
+ //
+ ::CIAO::Config_Handlers::SatisfierProperty const& SharedResource::
+ property () const
+ {
+ return *property_;
+ }
+
+ ::CIAO::Config_Handlers::SatisfierProperty& SharedResource::
+ property ()
+ {
+ return *property_;
+ }
+
+ void SharedResource::
+ property (::CIAO::Config_Handlers::SatisfierProperty const& e)
+ {
+ *property_ = e;
+ }
+
+
+ // Requirement
+ //
+
+ Requirement::
+ Requirement ()
+ :
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ name_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::Property ()),
+ regulator__ ()
+ {
+ resourceType_->container (this);
+ name_->container (this);
+ property_->container (this);
+ }
+
+ Requirement::
+ Requirement (::CIAO::Config_Handlers::Requirement const& s)
+ :
+ resourceType_ (new ::XMLSchema::string< char > (*s.resourceType_)),
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ property_ (new ::CIAO::Config_Handlers::Property (*s.property_)),
+ regulator__ ()
+ {
+ resourceType_->container (this);
+ name_->container (this);
+ property_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Requirement& Requirement::
+ operator= (::CIAO::Config_Handlers::Requirement const& s)
+ {
+ resourceType (s.resourceType ());
+
+ name (s.name ());
+
+ property (s.property ());
+
+ return *this;
+ }
+
+
+ // Requirement
+ //
+ ::XMLSchema::string< char > const& Requirement::
+ resourceType () const
+ {
+ return *resourceType_;
+ }
+
+ ::XMLSchema::string< char >& Requirement::
+ resourceType ()
+ {
+ return *resourceType_;
+ }
+
+ void Requirement::
+ resourceType (::XMLSchema::string< char > const& e)
+ {
+ *resourceType_ = e;
+ }
+
+ // Requirement
+ //
+ ::XMLSchema::string< char > const& Requirement::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& Requirement::
+ name ()
+ {
+ return *name_;
+ }
+
+ void Requirement::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // Requirement
+ //
+ ::CIAO::Config_Handlers::Property const& Requirement::
+ property () const
+ {
+ return *property_;
+ }
+
+ ::CIAO::Config_Handlers::Property& Requirement::
+ property ()
+ {
+ return *property_;
+ }
+
+ void Requirement::
+ property (::CIAO::Config_Handlers::Property const& e)
+ {
+ *property_ = e;
+ }
+
+
+ // ResourceDeploymentDescription
+ //
+
+ ResourceDeploymentDescription::
+ ResourceDeploymentDescription ()
+ :
+ requirementName_ (new ::XMLSchema::string< char > ()),
+ resourceName_ (new ::XMLSchema::string< char > ()),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+ }
+
+ ResourceDeploymentDescription::
+ ResourceDeploymentDescription (::CIAO::Config_Handlers::ResourceDeploymentDescription const& s)
+ :
+ requirementName_ (new ::XMLSchema::string< char > (*s.requirementName_)),
+ resourceName_ (new ::XMLSchema::string< char > (*s.resourceName_)),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any (*s.resourceValue_)),
+ regulator__ ()
+ {
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ResourceDeploymentDescription& ResourceDeploymentDescription::
+ operator= (::CIAO::Config_Handlers::ResourceDeploymentDescription const& s)
+ {
+ requirementName (s.requirementName ());
+
+ resourceName (s.resourceName ());
+
+ resourceValue (s.resourceValue ());
+
+ return *this;
+ }
+
+
+ // ResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ResourceDeploymentDescription::
+ requirementName () const
+ {
+ return *requirementName_;
+ }
+
+ ::XMLSchema::string< char >& ResourceDeploymentDescription::
+ requirementName ()
+ {
+ return *requirementName_;
+ }
+
+ void ResourceDeploymentDescription::
+ requirementName (::XMLSchema::string< char > const& e)
+ {
+ *requirementName_ = e;
+ }
+
+ // ResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ResourceDeploymentDescription::
+ resourceName () const
+ {
+ return *resourceName_;
+ }
+
+ ::XMLSchema::string< char >& ResourceDeploymentDescription::
+ resourceName ()
+ {
+ return *resourceName_;
+ }
+
+ void ResourceDeploymentDescription::
+ resourceName (::XMLSchema::string< char > const& e)
+ {
+ *resourceName_ = e;
+ }
+
+ // ResourceDeploymentDescription
+ //
+ ::CIAO::Config_Handlers::Any const& ResourceDeploymentDescription::
+ resourceValue () const
+ {
+ return *resourceValue_;
+ }
+
+ ::CIAO::Config_Handlers::Any& ResourceDeploymentDescription::
+ resourceValue ()
+ {
+ return *resourceValue_;
+ }
+
+ void ResourceDeploymentDescription::
+ resourceValue (::CIAO::Config_Handlers::Any const& e)
+ {
+ *resourceValue_ = e;
+ }
+
+
+ // ArtifactDeploymentDescription
+ //
+
+ ArtifactDeploymentDescription::
+ ArtifactDeploymentDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ source_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ source_->container (this);
+ }
+
+ ArtifactDeploymentDescription::
+ ArtifactDeploymentDescription (::CIAO::Config_Handlers::ArtifactDeploymentDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ source_ (new ::XMLSchema::string< char > (*s.source_)),
+ node_ (s.node_.get () ? new ::XMLSchema::string< char > (*s.node_) : 0),
+ execParameter_ (s.execParameter_.get () ? new ::CIAO::Config_Handlers::Property (*s.execParameter_) : 0),
+ deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0),
+ deployedResource_ (s.deployedResource_.get () ? new ::CIAO::Config_Handlers::ResourceDeploymentDescription (*s.deployedResource_) : 0),
+ id_ (s.id_.get () ? new ::XMLSchema::ID< char > (*s.id_) : 0),
+ regulator__ ()
+ {
+ name_->container (this);
+ source_->container (this);
+ if (node_.get ()) node_->container (this);
+ location_.reserve (s.location_.size ());
+ {
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
+ }
+
+ if (execParameter_.get ()) execParameter_->container (this);
+ if (deployRequirement_.get ()) deployRequirement_->container (this);
+ if (deployedResource_.get ()) deployedResource_->container (this);
+ if (id_.get ()) id_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ArtifactDeploymentDescription& ArtifactDeploymentDescription::
+ operator= (::CIAO::Config_Handlers::ArtifactDeploymentDescription const& s)
+ {
+ name (s.name ());
+
+ source (s.source ());
+
+ if (s.node_.get ()) node (*(s.node_));
+ else node_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ location_.clear ();
+ location_.reserve (s.location_.size ());
+ {
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
+ }
+
+ if (s.execParameter_.get ()) execParameter (*(s.execParameter_));
+ else execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
+ else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ if (s.deployedResource_.get ()) deployedResource (*(s.deployedResource_));
+ else deployedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ResourceDeploymentDescription > (0);
+
+ if (s.id_.get ()) id (*(s.id_));
+ else id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (0);
+
+ return *this;
+ }
+
+
+ // ArtifactDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ArtifactDeploymentDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& ArtifactDeploymentDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void ArtifactDeploymentDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ArtifactDeploymentDescription::
+ source () const
+ {
+ return *source_;
+ }
+
+ ::XMLSchema::string< char >& ArtifactDeploymentDescription::
+ source ()
+ {
+ return *source_;
+ }
+
+ void ArtifactDeploymentDescription::
+ source (::XMLSchema::string< char > const& e)
+ {
+ *source_ = e;
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ bool ArtifactDeploymentDescription::
+ node_p () const
+ {
+ return node_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ArtifactDeploymentDescription::
+ node () const
+ {
+ return *node_;
+ }
+
+ ::XMLSchema::string< char >& ArtifactDeploymentDescription::
+ node ()
+ {
+ return *node_;
+ }
+
+ void ArtifactDeploymentDescription::
+ node (::XMLSchema::string< char > const& e)
+ {
+ if (node_.get ())
+ {
+ *node_ = e;
+ }
+
+ else
+ {
+ node_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ node_->container (this);
+ }
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ ArtifactDeploymentDescription::location_iterator ArtifactDeploymentDescription::
+ begin_location ()
+ {
+ return location_.begin ();
+ }
+
+ ArtifactDeploymentDescription::location_iterator ArtifactDeploymentDescription::
+ end_location ()
+ {
+ return location_.end ();
+ }
+
+ ArtifactDeploymentDescription::location_const_iterator ArtifactDeploymentDescription::
+ begin_location () const
+ {
+ return location_.begin ();
+ }
+
+ ArtifactDeploymentDescription::location_const_iterator ArtifactDeploymentDescription::
+ end_location () const
+ {
+ return location_.end ();
+ }
+
+ void ArtifactDeploymentDescription::
+ add_location (::XMLSchema::string< char > const& e)
+ {
+ if (location_.capacity () < location_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::string< char > > v;
+ v.reserve (location_.size () + 1);
+
+ while (location_.size ())
+ {
+ //@@ VC6
+ ::XMLSchema::string< char >& t = location_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ location_.pop_back ();
+ }
+
+ location_.swap (v);
+ }
+
+ location_.push_back (e);
+ location_.back ().container (this);
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ bool ArtifactDeploymentDescription::
+ execParameter_p () const
+ {
+ return execParameter_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ArtifactDeploymentDescription::
+ execParameter () const
+ {
+ return *execParameter_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ArtifactDeploymentDescription::
+ execParameter ()
+ {
+ return *execParameter_;
+ }
+
+ void ArtifactDeploymentDescription::
+ execParameter (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (execParameter_.get ())
+ {
+ *execParameter_ = e;
+ }
+
+ else
+ {
+ execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ execParameter_->container (this);
+ }
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ bool ArtifactDeploymentDescription::
+ deployRequirement_p () const
+ {
+ return deployRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& ArtifactDeploymentDescription::
+ deployRequirement () const
+ {
+ return *deployRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& ArtifactDeploymentDescription::
+ deployRequirement ()
+ {
+ return *deployRequirement_;
+ }
+
+ void ArtifactDeploymentDescription::
+ deployRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (deployRequirement_.get ())
+ {
+ *deployRequirement_ = e;
+ }
+
+ else
+ {
+ deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ deployRequirement_->container (this);
+ }
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ bool ArtifactDeploymentDescription::
+ deployedResource_p () const
+ {
+ return deployedResource_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ResourceDeploymentDescription const& ArtifactDeploymentDescription::
+ deployedResource () const
+ {
+ return *deployedResource_;
+ }
+
+ ::CIAO::Config_Handlers::ResourceDeploymentDescription& ArtifactDeploymentDescription::
+ deployedResource ()
+ {
+ return *deployedResource_;
+ }
+
+ void ArtifactDeploymentDescription::
+ deployedResource (::CIAO::Config_Handlers::ResourceDeploymentDescription const& e)
+ {
+ if (deployedResource_.get ())
+ {
+ *deployedResource_ = e;
+ }
+
+ else
+ {
+ deployedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ResourceDeploymentDescription > (new ::CIAO::Config_Handlers::ResourceDeploymentDescription (e));
+ deployedResource_->container (this);
+ }
+ }
+
+ // ArtifactDeploymentDescription
+ //
+ bool ArtifactDeploymentDescription::
+ id_p () const
+ {
+ return id_.get () != 0;
+ }
+
+ ::XMLSchema::ID< char > const& ArtifactDeploymentDescription::
+ id () const
+ {
+ return *id_;
+ }
+
+ ::XMLSchema::ID< char >& ArtifactDeploymentDescription::
+ id ()
+ {
+ return *id_;
+ }
+
+ void ArtifactDeploymentDescription::
+ id (::XMLSchema::ID< char > const& e)
+ {
+ if (id_.get ())
+ {
+ *id_ = e;
+ }
+
+ else
+ {
+ id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (new ::XMLSchema::ID< char > (e));
+ id_->container (this);
+ }
+ }
+
+
+ // MonolithicDeploymentDescription
+ //
+
+ MonolithicDeploymentDescription::
+ MonolithicDeploymentDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ source_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ source_->container (this);
+ }
+
+ MonolithicDeploymentDescription::
+ MonolithicDeploymentDescription (::CIAO::Config_Handlers::MonolithicDeploymentDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ source_ (new ::XMLSchema::string< char > (*s.source_)),
+ execParameter_ (s.execParameter_.get () ? new ::CIAO::Config_Handlers::Property (*s.execParameter_) : 0),
+ deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0),
+ id_ (s.id_.get () ? new ::XMLSchema::ID< char > (*s.id_) : 0),
+ regulator__ ()
+ {
+ name_->container (this);
+ source_->container (this);
+ artifact_.reserve (s.artifact_.size ());
+ {
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
+ }
+
+ if (execParameter_.get ()) execParameter_->container (this);
+ if (deployRequirement_.get ()) deployRequirement_->container (this);
+ if (id_.get ()) id_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::MonolithicDeploymentDescription& MonolithicDeploymentDescription::
+ operator= (::CIAO::Config_Handlers::MonolithicDeploymentDescription const& s)
+ {
+ name (s.name ());
+
+ source (s.source ());
+
+ artifact_.clear ();
+ artifact_.reserve (s.artifact_.size ());
+ {
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
+ }
+
+ if (s.execParameter_.get ()) execParameter (*(s.execParameter_));
+ else execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
+ else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ if (s.id_.get ()) id (*(s.id_));
+ else id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (0);
+
+ return *this;
+ }
+
+
+ // MonolithicDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& MonolithicDeploymentDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& MonolithicDeploymentDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void MonolithicDeploymentDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // MonolithicDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& MonolithicDeploymentDescription::
+ source () const
+ {
+ return *source_;
+ }
+
+ ::XMLSchema::string< char >& MonolithicDeploymentDescription::
+ source ()
+ {
+ return *source_;
+ }
+
+ void MonolithicDeploymentDescription::
+ source (::XMLSchema::string< char > const& e)
+ {
+ *source_ = e;
+ }
+
+ // MonolithicDeploymentDescription
+ //
+ MonolithicDeploymentDescription::artifact_iterator MonolithicDeploymentDescription::
+ begin_artifact ()
+ {
+ return artifact_.begin ();
+ }
+
+ MonolithicDeploymentDescription::artifact_iterator MonolithicDeploymentDescription::
+ end_artifact ()
+ {
+ return artifact_.end ();
+ }
+
+ MonolithicDeploymentDescription::artifact_const_iterator MonolithicDeploymentDescription::
+ begin_artifact () const
+ {
+ return artifact_.begin ();
+ }
+
+ MonolithicDeploymentDescription::artifact_const_iterator MonolithicDeploymentDescription::
+ end_artifact () const
+ {
+ return artifact_.end ();
+ }
+
+ void MonolithicDeploymentDescription::
+ add_artifact (::XMLSchema::IDREF< char > const& e)
+ {
+ if (artifact_.capacity () < artifact_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::IDREF< char > > v;
+ v.reserve (artifact_.size () + 1);
+
+ while (artifact_.size ())
+ {
+ //@@ VC6
+ ::XMLSchema::IDREF< char >& t = artifact_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ artifact_.pop_back ();
+ }
+
+ artifact_.swap (v);
+ }
+
+ artifact_.push_back (e);
+ artifact_.back ().container (this);
+ }
+
+ // MonolithicDeploymentDescription
+ //
+ bool MonolithicDeploymentDescription::
+ execParameter_p () const
+ {
+ return execParameter_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& MonolithicDeploymentDescription::
+ execParameter () const
+ {
+ return *execParameter_;
+ }
+
+ ::CIAO::Config_Handlers::Property& MonolithicDeploymentDescription::
+ execParameter ()
+ {
+ return *execParameter_;
+ }
+
+ void MonolithicDeploymentDescription::
+ execParameter (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (execParameter_.get ())
+ {
+ *execParameter_ = e;
+ }
+
+ else
+ {
+ execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ execParameter_->container (this);
+ }
+ }
+
+ // MonolithicDeploymentDescription
+ //
+ bool MonolithicDeploymentDescription::
+ deployRequirement_p () const
+ {
+ return deployRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& MonolithicDeploymentDescription::
+ deployRequirement () const
+ {
+ return *deployRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& MonolithicDeploymentDescription::
+ deployRequirement ()
+ {
+ return *deployRequirement_;
+ }
+
+ void MonolithicDeploymentDescription::
+ deployRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (deployRequirement_.get ())
+ {
+ *deployRequirement_ = e;
+ }
+
+ else
+ {
+ deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ deployRequirement_->container (this);
+ }
+ }
+
+ // MonolithicDeploymentDescription
+ //
+ bool MonolithicDeploymentDescription::
+ id_p () const
+ {
+ return id_.get () != 0;
+ }
+
+ ::XMLSchema::ID< char > const& MonolithicDeploymentDescription::
+ id () const
+ {
+ return *id_;
+ }
+
+ ::XMLSchema::ID< char >& MonolithicDeploymentDescription::
+ id ()
+ {
+ return *id_;
+ }
+
+ void MonolithicDeploymentDescription::
+ id (::XMLSchema::ID< char > const& e)
+ {
+ if (id_.get ())
+ {
+ *id_ = e;
+ }
+
+ else
+ {
+ id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (new ::XMLSchema::ID< char > (e));
+ id_->container (this);
+ }
+ }
+
+
+ // ResourceUsageKind
+ //
+
+ ResourceUsageKind::
+ ResourceUsageKind ()
+ {
+ }
+
+ ResourceUsageKind::Value ResourceUsageKind::
+ integral () const
+ {
+ return v_;
+ }
+
+ bool
+ operator== (::CIAO::Config_Handlers::ResourceUsageKind const& a, ::CIAO::Config_Handlers::ResourceUsageKind const& b)
+ {
+ return a.v_ == b.v_;
+ }
+
+ bool
+ operator!= (::CIAO::Config_Handlers::ResourceUsageKind const& a, ::CIAO::Config_Handlers::ResourceUsageKind const& b)
+ {
+ return a.v_ != b.v_;
+ }
+
+ ResourceUsageKind::
+ ResourceUsageKind (ResourceUsageKind::Value v)
+ : v_ (v)
+ {
+ }
+
+ // InstanceResourceDeploymentDescription
+ //
+
+ InstanceResourceDeploymentDescription::
+ InstanceResourceDeploymentDescription ()
+ :
+ resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind ()),
+ requirementName_ (new ::XMLSchema::string< char > ()),
+ resourceName_ (new ::XMLSchema::string< char > ()),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ resourceUsage_->container (this);
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+ }
+
+ InstanceResourceDeploymentDescription::
+ InstanceResourceDeploymentDescription (::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& s)
+ :
+ resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind (*s.resourceUsage_)),
+ requirementName_ (new ::XMLSchema::string< char > (*s.requirementName_)),
+ resourceName_ (new ::XMLSchema::string< char > (*s.resourceName_)),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any (*s.resourceValue_)),
+ regulator__ ()
+ {
+ resourceUsage_->container (this);
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription& InstanceResourceDeploymentDescription::
+ operator= (::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& s)
+ {
+ resourceUsage (s.resourceUsage ());
+
+ requirementName (s.requirementName ());
+
+ resourceName (s.resourceName ());
+
+ resourceValue (s.resourceValue ());
+
+ return *this;
+ }
+
+
+ // InstanceResourceDeploymentDescription
+ //
+ ::CIAO::Config_Handlers::ResourceUsageKind const& InstanceResourceDeploymentDescription::
+ resourceUsage () const
+ {
+ return *resourceUsage_;
+ }
+
+ ::CIAO::Config_Handlers::ResourceUsageKind& InstanceResourceDeploymentDescription::
+ resourceUsage ()
+ {
+ return *resourceUsage_;
+ }
+
+ void InstanceResourceDeploymentDescription::
+ resourceUsage (::CIAO::Config_Handlers::ResourceUsageKind const& e)
+ {
+ *resourceUsage_ = e;
+ }
+
+ // InstanceResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& InstanceResourceDeploymentDescription::
+ requirementName () const
+ {
+ return *requirementName_;
+ }
+
+ ::XMLSchema::string< char >& InstanceResourceDeploymentDescription::
+ requirementName ()
+ {
+ return *requirementName_;
+ }
+
+ void InstanceResourceDeploymentDescription::
+ requirementName (::XMLSchema::string< char > const& e)
+ {
+ *requirementName_ = e;
+ }
+
+ // InstanceResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& InstanceResourceDeploymentDescription::
+ resourceName () const
+ {
+ return *resourceName_;
+ }
+
+ ::XMLSchema::string< char >& InstanceResourceDeploymentDescription::
+ resourceName ()
+ {
+ return *resourceName_;
+ }
+
+ void InstanceResourceDeploymentDescription::
+ resourceName (::XMLSchema::string< char > const& e)
+ {
+ *resourceName_ = e;
+ }
+
+ // InstanceResourceDeploymentDescription
+ //
+ ::CIAO::Config_Handlers::Any const& InstanceResourceDeploymentDescription::
+ resourceValue () const
+ {
+ return *resourceValue_;
+ }
+
+ ::CIAO::Config_Handlers::Any& InstanceResourceDeploymentDescription::
+ resourceValue ()
+ {
+ return *resourceValue_;
+ }
+
+ void InstanceResourceDeploymentDescription::
+ resourceValue (::CIAO::Config_Handlers::Any const& e)
+ {
+ *resourceValue_ = e;
+ }
+
+
+ // InstanceDeploymentDescription
+ //
+
+ InstanceDeploymentDescription::
+ InstanceDeploymentDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ node_ (new ::XMLSchema::string< char > ()),
+ source_ (new ::XMLSchema::string< char > ()),
+ implementation_ (new ::XMLSchema::IDREF< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ node_->container (this);
+ source_->container (this);
+ implementation_->container (this);
+ }
+
+ InstanceDeploymentDescription::
+ InstanceDeploymentDescription (::CIAO::Config_Handlers::InstanceDeploymentDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ node_ (new ::XMLSchema::string< char > (*s.node_)),
+ source_ (new ::XMLSchema::string< char > (*s.source_)),
+ implementation_ (new ::XMLSchema::IDREF< char > (*s.implementation_)),
+ configProperty_ (s.configProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.configProperty_) : 0),
+ deployedResource_ (s.deployedResource_.get () ? new ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription (*s.deployedResource_) : 0),
+ deployedSharedResource_ (s.deployedSharedResource_.get () ? new ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription (*s.deployedSharedResource_) : 0),
+ id_ (s.id_.get () ? new ::XMLSchema::ID< char > (*s.id_) : 0),
+ regulator__ ()
+ {
+ name_->container (this);
+ node_->container (this);
+ source_->container (this);
+ implementation_->container (this);
+ if (configProperty_.get ()) configProperty_->container (this);
+ if (deployedResource_.get ()) deployedResource_->container (this);
+ if (deployedSharedResource_.get ()) deployedSharedResource_->container (this);
+ if (id_.get ()) id_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::InstanceDeploymentDescription& InstanceDeploymentDescription::
+ operator= (::CIAO::Config_Handlers::InstanceDeploymentDescription const& s)
+ {
+ name (s.name ());
+
+ node (s.node ());
+
+ source (s.source ());
+
+ implementation (s.implementation ());
+
+ if (s.configProperty_.get ()) configProperty (*(s.configProperty_));
+ else configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.deployedResource_.get ()) deployedResource (*(s.deployedResource_));
+ else deployedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > (0);
+
+ if (s.deployedSharedResource_.get ()) deployedSharedResource (*(s.deployedSharedResource_));
+ else deployedSharedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > (0);
+
+ if (s.id_.get ()) id (*(s.id_));
+ else id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (0);
+
+ return *this;
+ }
+
+
+ // InstanceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& InstanceDeploymentDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& InstanceDeploymentDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void InstanceDeploymentDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // InstanceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& InstanceDeploymentDescription::
+ node () const
+ {
+ return *node_;
+ }
+
+ ::XMLSchema::string< char >& InstanceDeploymentDescription::
+ node ()
+ {
+ return *node_;
+ }
+
+ void InstanceDeploymentDescription::
+ node (::XMLSchema::string< char > const& e)
+ {
+ *node_ = e;
+ }
+
+ // InstanceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& InstanceDeploymentDescription::
+ source () const
+ {
+ return *source_;
+ }
+
+ ::XMLSchema::string< char >& InstanceDeploymentDescription::
+ source ()
+ {
+ return *source_;
+ }
+
+ void InstanceDeploymentDescription::
+ source (::XMLSchema::string< char > const& e)
+ {
+ *source_ = e;
+ }
+
+ // InstanceDeploymentDescription
+ //
+ ::XMLSchema::IDREF< char > const& InstanceDeploymentDescription::
+ implementation () const
+ {
+ return *implementation_;
+ }
+
+ ::XMLSchema::IDREF< char >& InstanceDeploymentDescription::
+ implementation ()
+ {
+ return *implementation_;
+ }
+
+ void InstanceDeploymentDescription::
+ implementation (::XMLSchema::IDREF< char > const& e)
+ {
+ *implementation_ = e;
+ }
+
+ // InstanceDeploymentDescription
+ //
+ bool InstanceDeploymentDescription::
+ configProperty_p () const
+ {
+ return configProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& InstanceDeploymentDescription::
+ configProperty () const
+ {
+ return *configProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& InstanceDeploymentDescription::
+ configProperty ()
+ {
+ return *configProperty_;
+ }
+
+ void InstanceDeploymentDescription::
+ configProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (configProperty_.get ())
+ {
+ *configProperty_ = e;
+ }
+
+ else
+ {
+ configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ configProperty_->container (this);
+ }
+ }
+
+ // InstanceDeploymentDescription
+ //
+ bool InstanceDeploymentDescription::
+ deployedResource_p () const
+ {
+ return deployedResource_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& InstanceDeploymentDescription::
+ deployedResource () const
+ {
+ return *deployedResource_;
+ }
+
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription& InstanceDeploymentDescription::
+ deployedResource ()
+ {
+ return *deployedResource_;
+ }
+
+ void InstanceDeploymentDescription::
+ deployedResource (::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& e)
+ {
+ if (deployedResource_.get ())
+ {
+ *deployedResource_ = e;
+ }
+
+ else
+ {
+ deployedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > (new ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription (e));
+ deployedResource_->container (this);
+ }
+ }
+
+ // InstanceDeploymentDescription
+ //
+ bool InstanceDeploymentDescription::
+ deployedSharedResource_p () const
+ {
+ return deployedSharedResource_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& InstanceDeploymentDescription::
+ deployedSharedResource () const
+ {
+ return *deployedSharedResource_;
+ }
+
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription& InstanceDeploymentDescription::
+ deployedSharedResource ()
+ {
+ return *deployedSharedResource_;
+ }
+
+ void InstanceDeploymentDescription::
+ deployedSharedResource (::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& e)
+ {
+ if (deployedSharedResource_.get ())
+ {
+ *deployedSharedResource_ = e;
+ }
+
+ else
+ {
+ deployedSharedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > (new ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription (e));
+ deployedSharedResource_->container (this);
+ }
+ }
+
+ // InstanceDeploymentDescription
+ //
+ bool InstanceDeploymentDescription::
+ id_p () const
+ {
+ return id_.get () != 0;
+ }
+
+ ::XMLSchema::ID< char > const& InstanceDeploymentDescription::
+ id () const
+ {
+ return *id_;
+ }
+
+ ::XMLSchema::ID< char >& InstanceDeploymentDescription::
+ id ()
+ {
+ return *id_;
+ }
+
+ void InstanceDeploymentDescription::
+ id (::XMLSchema::ID< char > const& e)
+ {
+ if (id_.get ())
+ {
+ *id_ = e;
+ }
+
+ else
+ {
+ id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (new ::XMLSchema::ID< char > (e));
+ id_->container (this);
+ }
+ }
+
+
+ // CCMComponentPortKind
+ //
+
+ CCMComponentPortKind::
+ CCMComponentPortKind ()
+ {
+ }
+
+ CCMComponentPortKind::Value CCMComponentPortKind::
+ integral () const
+ {
+ return v_;
+ }
+
+ bool
+ operator== (::CIAO::Config_Handlers::CCMComponentPortKind const& a, ::CIAO::Config_Handlers::CCMComponentPortKind const& b)
+ {
+ return a.v_ == b.v_;
+ }
+
+ bool
+ operator!= (::CIAO::Config_Handlers::CCMComponentPortKind const& a, ::CIAO::Config_Handlers::CCMComponentPortKind const& b)
+ {
+ return a.v_ != b.v_;
+ }
+
+ CCMComponentPortKind::
+ CCMComponentPortKind (CCMComponentPortKind::Value v)
+ : v_ (v)
+ {
+ }
+
+ // ComponentPortDescription
+ //
+
+ ComponentPortDescription::
+ ComponentPortDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ specificType_ (new ::XMLSchema::string< char > ()),
+ supportedType_ (new ::XMLSchema::string< char > ()),
+ provider_ (new ::XMLSchema::string< char > ()),
+ exclusiveProvider_ (new ::XMLSchema::string< char > ()),
+ exclusiveUser_ (new ::XMLSchema::string< char > ()),
+ optional_ (new ::XMLSchema::string< char > ()),
+ kind_ (new ::CIAO::Config_Handlers::CCMComponentPortKind ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ specificType_->container (this);
+ supportedType_->container (this);
+ provider_->container (this);
+ exclusiveProvider_->container (this);
+ exclusiveUser_->container (this);
+ optional_->container (this);
+ kind_->container (this);
+ }
+
+ ComponentPortDescription::
+ ComponentPortDescription (::CIAO::Config_Handlers::ComponentPortDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ specificType_ (new ::XMLSchema::string< char > (*s.specificType_)),
+ supportedType_ (new ::XMLSchema::string< char > (*s.supportedType_)),
+ provider_ (new ::XMLSchema::string< char > (*s.provider_)),
+ exclusiveProvider_ (new ::XMLSchema::string< char > (*s.exclusiveProvider_)),
+ exclusiveUser_ (new ::XMLSchema::string< char > (*s.exclusiveUser_)),
+ optional_ (new ::XMLSchema::string< char > (*s.optional_)),
+ kind_ (new ::CIAO::Config_Handlers::CCMComponentPortKind (*s.kind_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ specificType_->container (this);
+ supportedType_->container (this);
+ provider_->container (this);
+ exclusiveProvider_->container (this);
+ exclusiveUser_->container (this);
+ optional_->container (this);
+ kind_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentPortDescription& ComponentPortDescription::
+ operator= (::CIAO::Config_Handlers::ComponentPortDescription const& s)
+ {
+ name (s.name ());
+
+ specificType (s.specificType ());
+
+ supportedType (s.supportedType ());
+
+ provider (s.provider ());
+
+ exclusiveProvider (s.exclusiveProvider ());
+
+ exclusiveUser (s.exclusiveUser ());
+
+ optional (s.optional ());
+
+ kind (s.kind ());
+
+ return *this;
+ }
+
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void ComponentPortDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ specificType () const
+ {
+ return *specificType_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ specificType ()
+ {
+ return *specificType_;
+ }
+
+ void ComponentPortDescription::
+ specificType (::XMLSchema::string< char > const& e)
+ {
+ *specificType_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ supportedType () const
+ {
+ return *supportedType_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ supportedType ()
+ {
+ return *supportedType_;
+ }
+
+ void ComponentPortDescription::
+ supportedType (::XMLSchema::string< char > const& e)
+ {
+ *supportedType_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ provider () const
+ {
+ return *provider_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ provider ()
+ {
+ return *provider_;
+ }
+
+ void ComponentPortDescription::
+ provider (::XMLSchema::string< char > const& e)
+ {
+ *provider_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ exclusiveProvider () const
+ {
+ return *exclusiveProvider_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ exclusiveProvider ()
+ {
+ return *exclusiveProvider_;
+ }
+
+ void ComponentPortDescription::
+ exclusiveProvider (::XMLSchema::string< char > const& e)
+ {
+ *exclusiveProvider_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ exclusiveUser () const
+ {
+ return *exclusiveUser_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ exclusiveUser ()
+ {
+ return *exclusiveUser_;
+ }
+
+ void ComponentPortDescription::
+ exclusiveUser (::XMLSchema::string< char > const& e)
+ {
+ *exclusiveUser_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPortDescription::
+ optional () const
+ {
+ return *optional_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPortDescription::
+ optional ()
+ {
+ return *optional_;
+ }
+
+ void ComponentPortDescription::
+ optional (::XMLSchema::string< char > const& e)
+ {
+ *optional_ = e;
+ }
+
+ // ComponentPortDescription
+ //
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& ComponentPortDescription::
+ kind () const
+ {
+ return *kind_;
+ }
+
+ ::CIAO::Config_Handlers::CCMComponentPortKind& ComponentPortDescription::
+ kind ()
+ {
+ return *kind_;
+ }
+
+ void ComponentPortDescription::
+ kind (::CIAO::Config_Handlers::CCMComponentPortKind const& e)
+ {
+ *kind_ = e;
+ }
+
+
+ // ComponentPropertyDescription
+ //
+
+ ComponentPropertyDescription::
+ ComponentPropertyDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ type_ (new ::CIAO::Config_Handlers::DataType ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ type_->container (this);
+ }
+
+ ComponentPropertyDescription::
+ ComponentPropertyDescription (::CIAO::Config_Handlers::ComponentPropertyDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ type_ (new ::CIAO::Config_Handlers::DataType (*s.type_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ type_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentPropertyDescription& ComponentPropertyDescription::
+ operator= (::CIAO::Config_Handlers::ComponentPropertyDescription const& s)
+ {
+ name (s.name ());
+
+ type (s.type ());
+
+ return *this;
+ }
+
+
+ // ComponentPropertyDescription
+ //
+ ::XMLSchema::string< char > const& ComponentPropertyDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPropertyDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void ComponentPropertyDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // ComponentPropertyDescription
+ //
+ ::CIAO::Config_Handlers::DataType const& ComponentPropertyDescription::
+ type () const
+ {
+ return *type_;
+ }
+
+ ::CIAO::Config_Handlers::DataType& ComponentPropertyDescription::
+ type ()
+ {
+ return *type_;
+ }
+
+ void ComponentPropertyDescription::
+ type (::CIAO::Config_Handlers::DataType const& e)
+ {
+ *type_ = e;
+ }
+
+
+ // ComponentExternalPortEndpoint
+ //
+
+ ComponentExternalPortEndpoint::
+ ComponentExternalPortEndpoint ()
+ :
+ portName_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ portName_->container (this);
+ }
+
+ ComponentExternalPortEndpoint::
+ ComponentExternalPortEndpoint (::CIAO::Config_Handlers::ComponentExternalPortEndpoint const& s)
+ :
+ portName_ (new ::XMLSchema::string< char > (*s.portName_)),
+ regulator__ ()
+ {
+ portName_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentExternalPortEndpoint& ComponentExternalPortEndpoint::
+ operator= (::CIAO::Config_Handlers::ComponentExternalPortEndpoint const& s)
+ {
+ portName (s.portName ());
+
+ return *this;
+ }
+
+
+ // ComponentExternalPortEndpoint
+ //
+ ::XMLSchema::string< char > const& ComponentExternalPortEndpoint::
+ portName () const
+ {
+ return *portName_;
+ }
+
+ ::XMLSchema::string< char >& ComponentExternalPortEndpoint::
+ portName ()
+ {
+ return *portName_;
+ }
+
+ void ComponentExternalPortEndpoint::
+ portName (::XMLSchema::string< char > const& e)
+ {
+ *portName_ = e;
+ }
+
+
+ // PlanSubcomponentPortEndpoint
+ //
+
+ PlanSubcomponentPortEndpoint::
+ PlanSubcomponentPortEndpoint ()
+ :
+ portName_ (new ::XMLSchema::string< char > ()),
+ kind_ (new ::CIAO::Config_Handlers::CCMComponentPortKind ()),
+ instance_ (new ::XMLSchema::IDREF< char > ()),
+ regulator__ ()
+ {
+ portName_->container (this);
+ kind_->container (this);
+ instance_->container (this);
+ }
+
+ PlanSubcomponentPortEndpoint::
+ PlanSubcomponentPortEndpoint (::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint const& s)
+ :
+ portName_ (new ::XMLSchema::string< char > (*s.portName_)),
+ provider_ (s.provider_.get () ? new ::XMLSchema::string< char > (*s.provider_) : 0),
+ kind_ (new ::CIAO::Config_Handlers::CCMComponentPortKind (*s.kind_)),
+ instance_ (new ::XMLSchema::IDREF< char > (*s.instance_)),
+ regulator__ ()
+ {
+ portName_->container (this);
+ if (provider_.get ()) provider_->container (this);
+ kind_->container (this);
+ instance_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint& PlanSubcomponentPortEndpoint::
+ operator= (::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint const& s)
+ {
+ portName (s.portName ());
+
+ if (s.provider_.get ()) provider (*(s.provider_));
+ else provider_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ kind (s.kind ());
+
+ instance (s.instance ());
+
+ return *this;
+ }
+
+
+ // PlanSubcomponentPortEndpoint
+ //
+ ::XMLSchema::string< char > const& PlanSubcomponentPortEndpoint::
+ portName () const
+ {
+ return *portName_;
+ }
+
+ ::XMLSchema::string< char >& PlanSubcomponentPortEndpoint::
+ portName ()
+ {
+ return *portName_;
+ }
+
+ void PlanSubcomponentPortEndpoint::
+ portName (::XMLSchema::string< char > const& e)
+ {
+ *portName_ = e;
+ }
+
+ // PlanSubcomponentPortEndpoint
+ //
+ bool PlanSubcomponentPortEndpoint::
+ provider_p () const
+ {
+ return provider_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& PlanSubcomponentPortEndpoint::
+ provider () const
+ {
+ return *provider_;
+ }
+
+ ::XMLSchema::string< char >& PlanSubcomponentPortEndpoint::
+ provider ()
+ {
+ return *provider_;
+ }
+
+ void PlanSubcomponentPortEndpoint::
+ provider (::XMLSchema::string< char > const& e)
+ {
+ if (provider_.get ())
+ {
+ *provider_ = e;
+ }
+
+ else
+ {
+ provider_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ provider_->container (this);
+ }
+ }
+
+ // PlanSubcomponentPortEndpoint
+ //
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& PlanSubcomponentPortEndpoint::
+ kind () const
+ {
+ return *kind_;
+ }
+
+ ::CIAO::Config_Handlers::CCMComponentPortKind& PlanSubcomponentPortEndpoint::
+ kind ()
+ {
+ return *kind_;
+ }
+
+ void PlanSubcomponentPortEndpoint::
+ kind (::CIAO::Config_Handlers::CCMComponentPortKind const& e)
+ {
+ *kind_ = e;
+ }
+
+ // PlanSubcomponentPortEndpoint
+ //
+ ::XMLSchema::IDREF< char > const& PlanSubcomponentPortEndpoint::
+ instance () const
+ {
+ return *instance_;
+ }
+
+ ::XMLSchema::IDREF< char >& PlanSubcomponentPortEndpoint::
+ instance ()
+ {
+ return *instance_;
+ }
+
+ void PlanSubcomponentPortEndpoint::
+ instance (::XMLSchema::IDREF< char > const& e)
+ {
+ *instance_ = e;
+ }
+
+
+ // ExternalReferenceEndpoint
+ //
+
+ ExternalReferenceEndpoint::
+ ExternalReferenceEndpoint ()
+ :
+ location_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ location_->container (this);
+ }
+
+ ExternalReferenceEndpoint::
+ ExternalReferenceEndpoint (::CIAO::Config_Handlers::ExternalReferenceEndpoint const& s)
+ :
+ location_ (new ::XMLSchema::string< char > (*s.location_)),
+ regulator__ ()
+ {
+ location_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ExternalReferenceEndpoint& ExternalReferenceEndpoint::
+ operator= (::CIAO::Config_Handlers::ExternalReferenceEndpoint const& s)
+ {
+ location (s.location ());
+
+ return *this;
+ }
+
+
+ // ExternalReferenceEndpoint
+ //
+ ::XMLSchema::string< char > const& ExternalReferenceEndpoint::
+ location () const
+ {
+ return *location_;
+ }
+
+ ::XMLSchema::string< char >& ExternalReferenceEndpoint::
+ location ()
+ {
+ return *location_;
+ }
+
+ void ExternalReferenceEndpoint::
+ location (::XMLSchema::string< char > const& e)
+ {
+ *location_ = e;
+ }
+
+
+ // ConnectionResourceDeploymentDescription
+ //
+
+ ConnectionResourceDeploymentDescription::
+ ConnectionResourceDeploymentDescription ()
+ :
+ targetName_ (new ::XMLSchema::string< char > ()),
+ requirementName_ (new ::XMLSchema::string< char > ()),
+ resourceName_ (new ::XMLSchema::string< char > ()),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ targetName_->container (this);
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+ }
+
+ ConnectionResourceDeploymentDescription::
+ ConnectionResourceDeploymentDescription (::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription const& s)
+ :
+ targetName_ (new ::XMLSchema::string< char > (*s.targetName_)),
+ requirementName_ (new ::XMLSchema::string< char > (*s.requirementName_)),
+ resourceName_ (new ::XMLSchema::string< char > (*s.resourceName_)),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any (*s.resourceValue_)),
+ regulator__ ()
+ {
+ targetName_->container (this);
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription& ConnectionResourceDeploymentDescription::
+ operator= (::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription const& s)
+ {
+ targetName (s.targetName ());
+
+ requirementName (s.requirementName ());
+
+ resourceName (s.resourceName ());
+
+ resourceValue (s.resourceValue ());
+
+ return *this;
+ }
+
+
+ // ConnectionResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ConnectionResourceDeploymentDescription::
+ targetName () const
+ {
+ return *targetName_;
+ }
+
+ ::XMLSchema::string< char >& ConnectionResourceDeploymentDescription::
+ targetName ()
+ {
+ return *targetName_;
+ }
+
+ void ConnectionResourceDeploymentDescription::
+ targetName (::XMLSchema::string< char > const& e)
+ {
+ *targetName_ = e;
+ }
+
+ // ConnectionResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ConnectionResourceDeploymentDescription::
+ requirementName () const
+ {
+ return *requirementName_;
+ }
+
+ ::XMLSchema::string< char >& ConnectionResourceDeploymentDescription::
+ requirementName ()
+ {
+ return *requirementName_;
+ }
+
+ void ConnectionResourceDeploymentDescription::
+ requirementName (::XMLSchema::string< char > const& e)
+ {
+ *requirementName_ = e;
+ }
+
+ // ConnectionResourceDeploymentDescription
+ //
+ ::XMLSchema::string< char > const& ConnectionResourceDeploymentDescription::
+ resourceName () const
+ {
+ return *resourceName_;
+ }
+
+ ::XMLSchema::string< char >& ConnectionResourceDeploymentDescription::
+ resourceName ()
+ {
+ return *resourceName_;
+ }
+
+ void ConnectionResourceDeploymentDescription::
+ resourceName (::XMLSchema::string< char > const& e)
+ {
+ *resourceName_ = e;
+ }
+
+ // ConnectionResourceDeploymentDescription
+ //
+ ::CIAO::Config_Handlers::Any const& ConnectionResourceDeploymentDescription::
+ resourceValue () const
+ {
+ return *resourceValue_;
+ }
+
+ ::CIAO::Config_Handlers::Any& ConnectionResourceDeploymentDescription::
+ resourceValue ()
+ {
+ return *resourceValue_;
+ }
+
+ void ConnectionResourceDeploymentDescription::
+ resourceValue (::CIAO::Config_Handlers::Any const& e)
+ {
+ *resourceValue_ = e;
+ }
+
+
+ // PlanConnectionDescription
+ //
+
+ PlanConnectionDescription::
+ PlanConnectionDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ }
+
+ PlanConnectionDescription::
+ PlanConnectionDescription (::CIAO::Config_Handlers::PlanConnectionDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ source_ (s.source_.get () ? new ::XMLSchema::string< char > (*s.source_) : 0),
+ deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0),
+ deployedResource_ (s.deployedResource_.get () ? new ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription (*s.deployedResource_) : 0),
+ regulator__ ()
+ {
+ name_->container (this);
+ if (source_.get ()) source_->container (this);
+ if (deployRequirement_.get ()) deployRequirement_->container (this);
+ externalEndpoint_.reserve (s.externalEndpoint_.size ());
+ {
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
+ }
+
+ internalEndpoint_.reserve (s.internalEndpoint_.size ());
+ {
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
+ }
+
+ externalReference_.reserve (s.externalReference_.size ());
+ {
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
+ }
+
+ if (deployedResource_.get ()) deployedResource_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::PlanConnectionDescription& PlanConnectionDescription::
+ operator= (::CIAO::Config_Handlers::PlanConnectionDescription const& s)
+ {
+ name (s.name ());
+
+ if (s.source_.get ()) source (*(s.source_));
+ else source_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
+ else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ externalEndpoint_.clear ();
+ externalEndpoint_.reserve (s.externalEndpoint_.size ());
+ {
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
+ }
+
+ internalEndpoint_.clear ();
+ internalEndpoint_.reserve (s.internalEndpoint_.size ());
+ {
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
+ }
+
+ externalReference_.clear ();
+ externalReference_.reserve (s.externalReference_.size ());
+ {
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
+ }
+
+ if (s.deployedResource_.get ()) deployedResource (*(s.deployedResource_));
+ else deployedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription > (0);
+
+ return *this;
+ }
+
+
+ // PlanConnectionDescription
+ //
+ ::XMLSchema::string< char > const& PlanConnectionDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& PlanConnectionDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void PlanConnectionDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // PlanConnectionDescription
+ //
+ bool PlanConnectionDescription::
+ source_p () const
+ {
+ return source_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& PlanConnectionDescription::
+ source () const
+ {
+ return *source_;
+ }
+
+ ::XMLSchema::string< char >& PlanConnectionDescription::
+ source ()
+ {
+ return *source_;
+ }
+
+ void PlanConnectionDescription::
+ source (::XMLSchema::string< char > const& e)
+ {
+ if (source_.get ())
+ {
+ *source_ = e;
+ }
+
+ else
+ {
+ source_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ source_->container (this);
+ }
+ }
+
+ // PlanConnectionDescription
+ //
+ bool PlanConnectionDescription::
+ deployRequirement_p () const
+ {
+ return deployRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& PlanConnectionDescription::
+ deployRequirement () const
+ {
+ return *deployRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& PlanConnectionDescription::
+ deployRequirement ()
+ {
+ return *deployRequirement_;
+ }
+
+ void PlanConnectionDescription::
+ deployRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (deployRequirement_.get ())
+ {
+ *deployRequirement_ = e;
+ }
+
+ else
+ {
+ deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ deployRequirement_->container (this);
+ }
+ }
+
+ // PlanConnectionDescription
+ //
+ PlanConnectionDescription::externalEndpoint_iterator PlanConnectionDescription::
+ begin_externalEndpoint ()
+ {
+ return externalEndpoint_.begin ();
+ }
+
+ PlanConnectionDescription::externalEndpoint_iterator PlanConnectionDescription::
+ end_externalEndpoint ()
+ {
+ return externalEndpoint_.end ();
+ }
+
+ PlanConnectionDescription::externalEndpoint_const_iterator PlanConnectionDescription::
+ begin_externalEndpoint () const
+ {
+ return externalEndpoint_.begin ();
+ }
+
+ PlanConnectionDescription::externalEndpoint_const_iterator PlanConnectionDescription::
+ end_externalEndpoint () const
+ {
+ return externalEndpoint_.end ();
+ }
+
+ void PlanConnectionDescription::
+ add_externalEndpoint (::CIAO::Config_Handlers::ComponentExternalPortEndpoint const& e)
+ {
+ if (externalEndpoint_.capacity () < externalEndpoint_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint > v;
+ v.reserve (externalEndpoint_.size () + 1);
+
+ while (externalEndpoint_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ComponentExternalPortEndpoint& t = externalEndpoint_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ externalEndpoint_.pop_back ();
+ }
+
+ externalEndpoint_.swap (v);
+ }
+
+ externalEndpoint_.push_back (e);
+ externalEndpoint_.back ().container (this);
+ }
+
+ // PlanConnectionDescription
+ //
+ PlanConnectionDescription::internalEndpoint_iterator PlanConnectionDescription::
+ begin_internalEndpoint ()
+ {
+ return internalEndpoint_.begin ();
+ }
+
+ PlanConnectionDescription::internalEndpoint_iterator PlanConnectionDescription::
+ end_internalEndpoint ()
+ {
+ return internalEndpoint_.end ();
+ }
+
+ PlanConnectionDescription::internalEndpoint_const_iterator PlanConnectionDescription::
+ begin_internalEndpoint () const
+ {
+ return internalEndpoint_.begin ();
+ }
+
+ PlanConnectionDescription::internalEndpoint_const_iterator PlanConnectionDescription::
+ end_internalEndpoint () const
+ {
+ return internalEndpoint_.end ();
+ }
+
+ void PlanConnectionDescription::
+ add_internalEndpoint (::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint const& e)
+ {
+ if (internalEndpoint_.capacity () < internalEndpoint_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint > v;
+ v.reserve (internalEndpoint_.size () + 1);
+
+ while (internalEndpoint_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint& t = internalEndpoint_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ internalEndpoint_.pop_back ();
+ }
+
+ internalEndpoint_.swap (v);
+ }
+
+ internalEndpoint_.push_back (e);
+ internalEndpoint_.back ().container (this);
+ }
+
+ // PlanConnectionDescription
+ //
+ PlanConnectionDescription::externalReference_iterator PlanConnectionDescription::
+ begin_externalReference ()
+ {
+ return externalReference_.begin ();
+ }
+
+ PlanConnectionDescription::externalReference_iterator PlanConnectionDescription::
+ end_externalReference ()
+ {
+ return externalReference_.end ();
+ }
+
+ PlanConnectionDescription::externalReference_const_iterator PlanConnectionDescription::
+ begin_externalReference () const
+ {
+ return externalReference_.begin ();
+ }
+
+ PlanConnectionDescription::externalReference_const_iterator PlanConnectionDescription::
+ end_externalReference () const
+ {
+ return externalReference_.end ();
+ }
+
+ void PlanConnectionDescription::
+ add_externalReference (::CIAO::Config_Handlers::ExternalReferenceEndpoint const& e)
+ {
+ if (externalReference_.capacity () < externalReference_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint > v;
+ v.reserve (externalReference_.size () + 1);
+
+ while (externalReference_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ExternalReferenceEndpoint& t = externalReference_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ externalReference_.pop_back ();
+ }
+
+ externalReference_.swap (v);
+ }
+
+ externalReference_.push_back (e);
+ externalReference_.back ().container (this);
+ }
+
+ // PlanConnectionDescription
+ //
+ bool PlanConnectionDescription::
+ deployedResource_p () const
+ {
+ return deployedResource_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription const& PlanConnectionDescription::
+ deployedResource () const
+ {
+ return *deployedResource_;
+ }
+
+ ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription& PlanConnectionDescription::
+ deployedResource ()
+ {
+ return *deployedResource_;
+ }
+
+ void PlanConnectionDescription::
+ deployedResource (::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription const& e)
+ {
+ if (deployedResource_.get ())
+ {
+ *deployedResource_ = e;
+ }
+
+ else
+ {
+ deployedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription > (new ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription (e));
+ deployedResource_->container (this);
+ }
+ }
+
+
+ // ImplementationDependency
+ //
+
+ ImplementationDependency::
+ ImplementationDependency ()
+ :
+ requiredType_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ requiredType_->container (this);
+ }
+
+ ImplementationDependency::
+ ImplementationDependency (::CIAO::Config_Handlers::ImplementationDependency const& s)
+ :
+ requiredType_ (new ::XMLSchema::string< char > (*s.requiredType_)),
+ regulator__ ()
+ {
+ requiredType_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ImplementationDependency& ImplementationDependency::
+ operator= (::CIAO::Config_Handlers::ImplementationDependency const& s)
+ {
+ requiredType (s.requiredType ());
+
+ return *this;
+ }
+
+
+ // ImplementationDependency
+ //
+ ::XMLSchema::string< char > const& ImplementationDependency::
+ requiredType () const
+ {
+ return *requiredType_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationDependency::
+ requiredType ()
+ {
+ return *requiredType_;
+ }
+
+ void ImplementationDependency::
+ requiredType (::XMLSchema::string< char > const& e)
+ {
+ *requiredType_ = e;
+ }
+
+
+ // Capability
+ //
+
+ Capability::
+ Capability ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
+ }
+
+ Capability::
+ Capability (::CIAO::Config_Handlers::Capability const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ resourceType_ (new ::XMLSchema::string< char > (*s.resourceType_)),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty (*s.property_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Capability& Capability::
+ operator= (::CIAO::Config_Handlers::Capability const& s)
+ {
+ name (s.name ());
+
+ resourceType (s.resourceType ());
+
+ property (s.property ());
+
+ return *this;
+ }
+
+
+ // Capability
+ //
+ ::XMLSchema::string< char > const& Capability::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& Capability::
+ name ()
+ {
+ return *name_;
+ }
+
+ void Capability::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // Capability
+ //
+ ::XMLSchema::string< char > const& Capability::
+ resourceType () const
+ {
+ return *resourceType_;
+ }
+
+ ::XMLSchema::string< char >& Capability::
+ resourceType ()
+ {
+ return *resourceType_;
+ }
+
+ void Capability::
+ resourceType (::XMLSchema::string< char > const& e)
+ {
+ *resourceType_ = e;
+ }
+
+ // Capability
+ //
+ ::CIAO::Config_Handlers::SatisfierProperty const& Capability::
+ property () const
+ {
+ return *property_;
+ }
+
+ ::CIAO::Config_Handlers::SatisfierProperty& Capability::
+ property ()
+ {
+ return *property_;
+ }
+
+ void Capability::
+ property (::CIAO::Config_Handlers::SatisfierProperty const& e)
+ {
+ *property_ = e;
+ }
+
+
+ // ImplementationRequirement
+ //
+
+ ImplementationRequirement::
+ ImplementationRequirement ()
+ :
+ resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind ()),
+ resourcePort_ (new ::XMLSchema::string< char > ()),
+ componentPort_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ name_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::Property ()),
+ regulator__ ()
+ {
+ resourceUsage_->container (this);
+ resourcePort_->container (this);
+ componentPort_->container (this);
+ resourceType_->container (this);
+ name_->container (this);
+ property_->container (this);
+ }
+
+ ImplementationRequirement::
+ ImplementationRequirement (::CIAO::Config_Handlers::ImplementationRequirement const& s)
+ :
+ resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind (*s.resourceUsage_)),
+ resourcePort_ (new ::XMLSchema::string< char > (*s.resourcePort_)),
+ componentPort_ (new ::XMLSchema::string< char > (*s.componentPort_)),
+ resourceType_ (new ::XMLSchema::string< char > (*s.resourceType_)),
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ property_ (new ::CIAO::Config_Handlers::Property (*s.property_)),
+ regulator__ ()
+ {
+ resourceUsage_->container (this);
+ resourcePort_->container (this);
+ componentPort_->container (this);
+ resourceType_->container (this);
+ name_->container (this);
+ property_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ImplementationRequirement& ImplementationRequirement::
+ operator= (::CIAO::Config_Handlers::ImplementationRequirement const& s)
+ {
+ resourceUsage (s.resourceUsage ());
+
+ resourcePort (s.resourcePort ());
+
+ componentPort (s.componentPort ());
+
+ resourceType (s.resourceType ());
+
+ name (s.name ());
+
+ property (s.property ());
+
+ return *this;
+ }
+
+
+ // ImplementationRequirement
+ //
+ ::CIAO::Config_Handlers::ResourceUsageKind const& ImplementationRequirement::
+ resourceUsage () const
+ {
+ return *resourceUsage_;
+ }
+
+ ::CIAO::Config_Handlers::ResourceUsageKind& ImplementationRequirement::
+ resourceUsage ()
+ {
+ return *resourceUsage_;
+ }
+
+ void ImplementationRequirement::
+ resourceUsage (::CIAO::Config_Handlers::ResourceUsageKind const& e)
+ {
+ *resourceUsage_ = e;
+ }
+
+ // ImplementationRequirement
+ //
+ ::XMLSchema::string< char > const& ImplementationRequirement::
+ resourcePort () const
+ {
+ return *resourcePort_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationRequirement::
+ resourcePort ()
+ {
+ return *resourcePort_;
+ }
+
+ void ImplementationRequirement::
+ resourcePort (::XMLSchema::string< char > const& e)
+ {
+ *resourcePort_ = e;
+ }
+
+ // ImplementationRequirement
+ //
+ ::XMLSchema::string< char > const& ImplementationRequirement::
+ componentPort () const
+ {
+ return *componentPort_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationRequirement::
+ componentPort ()
+ {
+ return *componentPort_;
+ }
+
+ void ImplementationRequirement::
+ componentPort (::XMLSchema::string< char > const& e)
+ {
+ *componentPort_ = e;
+ }
+
+ // ImplementationRequirement
+ //
+ ::XMLSchema::string< char > const& ImplementationRequirement::
+ resourceType () const
+ {
+ return *resourceType_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationRequirement::
+ resourceType ()
+ {
+ return *resourceType_;
+ }
+
+ void ImplementationRequirement::
+ resourceType (::XMLSchema::string< char > const& e)
+ {
+ *resourceType_ = e;
+ }
+
+ // ImplementationRequirement
+ //
+ ::XMLSchema::string< char > const& ImplementationRequirement::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationRequirement::
+ name ()
+ {
+ return *name_;
+ }
+
+ void ImplementationRequirement::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // ImplementationRequirement
+ //
+ ::CIAO::Config_Handlers::Property const& ImplementationRequirement::
+ property () const
+ {
+ return *property_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ImplementationRequirement::
+ property ()
+ {
+ return *property_;
+ }
+
+ void ImplementationRequirement::
+ property (::CIAO::Config_Handlers::Property const& e)
+ {
+ *property_ = e;
+ }
+
+
+ // ComponentPackageReference
+ //
+
+ ComponentPackageReference::
+ ComponentPackageReference ()
+ :
+ requiredUUID_ (new ::XMLSchema::string< char > ()),
+ requiredName_ (new ::XMLSchema::string< char > ()),
+ requiredType_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ requiredUUID_->container (this);
+ requiredName_->container (this);
+ requiredType_->container (this);
+ }
+
+ ComponentPackageReference::
+ ComponentPackageReference (::CIAO::Config_Handlers::ComponentPackageReference const& s)
+ :
+ requiredUUID_ (new ::XMLSchema::string< char > (*s.requiredUUID_)),
+ requiredName_ (new ::XMLSchema::string< char > (*s.requiredName_)),
+ requiredType_ (new ::XMLSchema::string< char > (*s.requiredType_)),
+ regulator__ ()
+ {
+ requiredUUID_->container (this);
+ requiredName_->container (this);
+ requiredType_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageReference& ComponentPackageReference::
+ operator= (::CIAO::Config_Handlers::ComponentPackageReference const& s)
+ {
+ requiredUUID (s.requiredUUID ());
+
+ requiredName (s.requiredName ());
+
+ requiredType (s.requiredType ());
+
+ return *this;
+ }
+
+
+ // ComponentPackageReference
+ //
+ ::XMLSchema::string< char > const& ComponentPackageReference::
+ requiredUUID () const
+ {
+ return *requiredUUID_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPackageReference::
+ requiredUUID ()
+ {
+ return *requiredUUID_;
+ }
+
+ void ComponentPackageReference::
+ requiredUUID (::XMLSchema::string< char > const& e)
+ {
+ *requiredUUID_ = e;
+ }
+
+ // ComponentPackageReference
+ //
+ ::XMLSchema::string< char > const& ComponentPackageReference::
+ requiredName () const
+ {
+ return *requiredName_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPackageReference::
+ requiredName ()
+ {
+ return *requiredName_;
+ }
+
+ void ComponentPackageReference::
+ requiredName (::XMLSchema::string< char > const& e)
+ {
+ *requiredName_ = e;
+ }
+
+ // ComponentPackageReference
+ //
+ ::XMLSchema::string< char > const& ComponentPackageReference::
+ requiredType () const
+ {
+ return *requiredType_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPackageReference::
+ requiredType ()
+ {
+ return *requiredType_;
+ }
+
+ void ComponentPackageReference::
+ requiredType (::XMLSchema::string< char > const& e)
+ {
+ *requiredType_ = e;
+ }
+
+
+ // SubcomponentPortEndpoint
+ //
+
+ SubcomponentPortEndpoint::
+ SubcomponentPortEndpoint ()
+ :
+ portName_ (new ::XMLSchema::string< char > ()),
+ instance_ (new ::XMLSchema::IDREF< char > ()),
+ regulator__ ()
+ {
+ portName_->container (this);
+ instance_->container (this);
+ }
+
+ SubcomponentPortEndpoint::
+ SubcomponentPortEndpoint (::CIAO::Config_Handlers::SubcomponentPortEndpoint const& s)
+ :
+ portName_ (new ::XMLSchema::string< char > (*s.portName_)),
+ instance_ (new ::XMLSchema::IDREF< char > (*s.instance_)),
+ regulator__ ()
+ {
+ portName_->container (this);
+ instance_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::SubcomponentPortEndpoint& SubcomponentPortEndpoint::
+ operator= (::CIAO::Config_Handlers::SubcomponentPortEndpoint const& s)
+ {
+ portName (s.portName ());
+
+ instance (s.instance ());
+
+ return *this;
+ }
+
+
+ // SubcomponentPortEndpoint
+ //
+ ::XMLSchema::string< char > const& SubcomponentPortEndpoint::
+ portName () const
+ {
+ return *portName_;
+ }
+
+ ::XMLSchema::string< char >& SubcomponentPortEndpoint::
+ portName ()
+ {
+ return *portName_;
+ }
+
+ void SubcomponentPortEndpoint::
+ portName (::XMLSchema::string< char > const& e)
+ {
+ *portName_ = e;
+ }
+
+ // SubcomponentPortEndpoint
+ //
+ ::XMLSchema::IDREF< char > const& SubcomponentPortEndpoint::
+ instance () const
+ {
+ return *instance_;
+ }
+
+ ::XMLSchema::IDREF< char >& SubcomponentPortEndpoint::
+ instance ()
+ {
+ return *instance_;
+ }
+
+ void SubcomponentPortEndpoint::
+ instance (::XMLSchema::IDREF< char > const& e)
+ {
+ *instance_ = e;
+ }
+
+
+ // AssemblyConnectionDescription
+ //
+
+ AssemblyConnectionDescription::
+ AssemblyConnectionDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ }
+
+ AssemblyConnectionDescription::
+ AssemblyConnectionDescription (::CIAO::Config_Handlers::AssemblyConnectionDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0),
+ regulator__ ()
+ {
+ name_->container (this);
+ if (deployRequirement_.get ()) deployRequirement_->container (this);
+ externalEndpoint_.reserve (s.externalEndpoint_.size ());
+ {
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
+ }
+
+ internalEndpoint_.reserve (s.internalEndpoint_.size ());
+ {
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
+ }
+
+ externalReference_.reserve (s.externalReference_.size ());
+ {
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
+ }
+ }
+
+ ::CIAO::Config_Handlers::AssemblyConnectionDescription& AssemblyConnectionDescription::
+ operator= (::CIAO::Config_Handlers::AssemblyConnectionDescription const& s)
+ {
+ name (s.name ());
+
+ if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
+ else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ externalEndpoint_.clear ();
+ externalEndpoint_.reserve (s.externalEndpoint_.size ());
+ {
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
+ }
+
+ internalEndpoint_.clear ();
+ internalEndpoint_.reserve (s.internalEndpoint_.size ());
+ {
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
+ }
+
+ externalReference_.clear ();
+ externalReference_.reserve (s.externalReference_.size ());
+ {
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
+ }
+
+ return *this;
+ }
+
+
+ // AssemblyConnectionDescription
+ //
+ ::XMLSchema::string< char > const& AssemblyConnectionDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& AssemblyConnectionDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void AssemblyConnectionDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // AssemblyConnectionDescription
+ //
+ bool AssemblyConnectionDescription::
+ deployRequirement_p () const
+ {
+ return deployRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& AssemblyConnectionDescription::
+ deployRequirement () const
+ {
+ return *deployRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& AssemblyConnectionDescription::
+ deployRequirement ()
+ {
+ return *deployRequirement_;
+ }
+
+ void AssemblyConnectionDescription::
+ deployRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (deployRequirement_.get ())
+ {
+ *deployRequirement_ = e;
+ }
+
+ else
+ {
+ deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ deployRequirement_->container (this);
+ }
+ }
+
+ // AssemblyConnectionDescription
+ //
+ AssemblyConnectionDescription::externalEndpoint_iterator AssemblyConnectionDescription::
+ begin_externalEndpoint ()
+ {
+ return externalEndpoint_.begin ();
+ }
+
+ AssemblyConnectionDescription::externalEndpoint_iterator AssemblyConnectionDescription::
+ end_externalEndpoint ()
+ {
+ return externalEndpoint_.end ();
+ }
+
+ AssemblyConnectionDescription::externalEndpoint_const_iterator AssemblyConnectionDescription::
+ begin_externalEndpoint () const
+ {
+ return externalEndpoint_.begin ();
+ }
+
+ AssemblyConnectionDescription::externalEndpoint_const_iterator AssemblyConnectionDescription::
+ end_externalEndpoint () const
+ {
+ return externalEndpoint_.end ();
+ }
+
+ void AssemblyConnectionDescription::
+ add_externalEndpoint (::CIAO::Config_Handlers::ComponentExternalPortEndpoint const& e)
+ {
+ if (externalEndpoint_.capacity () < externalEndpoint_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint > v;
+ v.reserve (externalEndpoint_.size () + 1);
+
+ while (externalEndpoint_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ComponentExternalPortEndpoint& t = externalEndpoint_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ externalEndpoint_.pop_back ();
+ }
+
+ externalEndpoint_.swap (v);
+ }
+
+ externalEndpoint_.push_back (e);
+ externalEndpoint_.back ().container (this);
+ }
+
+ // AssemblyConnectionDescription
+ //
+ AssemblyConnectionDescription::internalEndpoint_iterator AssemblyConnectionDescription::
+ begin_internalEndpoint ()
+ {
+ return internalEndpoint_.begin ();
+ }
+
+ AssemblyConnectionDescription::internalEndpoint_iterator AssemblyConnectionDescription::
+ end_internalEndpoint ()
+ {
+ return internalEndpoint_.end ();
+ }
+
+ AssemblyConnectionDescription::internalEndpoint_const_iterator AssemblyConnectionDescription::
+ begin_internalEndpoint () const
+ {
+ return internalEndpoint_.begin ();
+ }
+
+ AssemblyConnectionDescription::internalEndpoint_const_iterator AssemblyConnectionDescription::
+ end_internalEndpoint () const
+ {
+ return internalEndpoint_.end ();
+ }
+
+ void AssemblyConnectionDescription::
+ add_internalEndpoint (::CIAO::Config_Handlers::SubcomponentPortEndpoint const& e)
+ {
+ if (internalEndpoint_.capacity () < internalEndpoint_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::SubcomponentPortEndpoint > v;
+ v.reserve (internalEndpoint_.size () + 1);
+
+ while (internalEndpoint_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::SubcomponentPortEndpoint& t = internalEndpoint_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ internalEndpoint_.pop_back ();
+ }
+
+ internalEndpoint_.swap (v);
+ }
+
+ internalEndpoint_.push_back (e);
+ internalEndpoint_.back ().container (this);
+ }
+
+ // AssemblyConnectionDescription
+ //
+ AssemblyConnectionDescription::externalReference_iterator AssemblyConnectionDescription::
+ begin_externalReference ()
+ {
+ return externalReference_.begin ();
+ }
+
+ AssemblyConnectionDescription::externalReference_iterator AssemblyConnectionDescription::
+ end_externalReference ()
+ {
+ return externalReference_.end ();
+ }
+
+ AssemblyConnectionDescription::externalReference_const_iterator AssemblyConnectionDescription::
+ begin_externalReference () const
+ {
+ return externalReference_.begin ();
+ }
+
+ AssemblyConnectionDescription::externalReference_const_iterator AssemblyConnectionDescription::
+ end_externalReference () const
+ {
+ return externalReference_.end ();
+ }
+
+ void AssemblyConnectionDescription::
+ add_externalReference (::CIAO::Config_Handlers::ExternalReferenceEndpoint const& e)
+ {
+ if (externalReference_.capacity () < externalReference_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint > v;
+ v.reserve (externalReference_.size () + 1);
+
+ while (externalReference_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ExternalReferenceEndpoint& t = externalReference_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ externalReference_.pop_back ();
+ }
+
+ externalReference_.swap (v);
+ }
+
+ externalReference_.push_back (e);
+ externalReference_.back ().container (this);
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // TCKind
+ //
+
+ TCKind::
+ TCKind (::XSCRT::XML::Element< char > const& e)
+ : Type (e)
+ {
+ ::std::basic_string< char > v (e.value ());
+
+ if (v == "tk_null") v_ = tk_null_l;
+ else if (v == "tk_void") v_ = tk_void_l;
+ else if (v == "tk_short") v_ = tk_short_l;
+ else if (v == "tk_long") v_ = tk_long_l;
+ else if (v == "tk_ushort") v_ = tk_ushort_l;
+ else if (v == "tk_ulong") v_ = tk_ulong_l;
+ else if (v == "tk_float") v_ = tk_float_l;
+ else if (v == "tk_double") v_ = tk_double_l;
+ else if (v == "tk_boolean") v_ = tk_boolean_l;
+ else if (v == "tk_char") v_ = tk_char_l;
+ else if (v == "tk_octet") v_ = tk_octet_l;
+ else if (v == "tk_any") v_ = tk_any_l;
+ else if (v == "tk_TypeCode") v_ = tk_TypeCode_l;
+ else if (v == "tk_Principal") v_ = tk_Principal_l;
+ else if (v == "tk_objref") v_ = tk_objref_l;
+ else if (v == "tk_struct") v_ = tk_struct_l;
+ else if (v == "tk_union") v_ = tk_union_l;
+ else if (v == "tk_enum") v_ = tk_enum_l;
+ else if (v == "tk_string") v_ = tk_string_l;
+ else if (v == "tk_sequence") v_ = tk_sequence_l;
+ else if (v == "tk_array") v_ = tk_array_l;
+ else if (v == "tk_alias") v_ = tk_alias_l;
+ else if (v == "tk_except") v_ = tk_except_l;
+ else if (v == "tk_longlong") v_ = tk_longlong_l;
+ else if (v == "tk_ulonglong") v_ = tk_ulonglong_l;
+ else if (v == "tk_longdouble") v_ = tk_longdouble_l;
+ else if (v == "tk_wchar") v_ = tk_wchar_l;
+ else if (v == "tk_wstring") v_ = tk_wstring_l;
+ else if (v == "tk_wfixed") v_ = tk_wfixed_l;
+ else if (v == "tk_value") v_ = tk_value_l;
+ else if (v == "tk_value_box") v_ = tk_value_box_l;
+ else if (v == "tk_native") v_ = tk_native_l;
+ else if (v == "tk_abstract_interface") v_ = tk_abstract_interface_l;
+ else if (v == "tk_local_interface") v_ = tk_local_interface_l;
+ else if (v == "tk_component") v_ = tk_component_l;
+ else if (v == "tk_home") v_ = tk_home_l;
+ else if (v == "tk_event") v_ = tk_event_l;
+ else
+ {
+ }
+ }
+
+ TCKind::
+ TCKind (::XSCRT::XML::Attribute< char > const& a)
+ : Type (a)
+ {
+ ::std::basic_string< char > v (a.value ());
+
+ if (v == "tk_null") v_ = tk_null_l;
+ else if (v == "tk_void") v_ = tk_void_l;
+ else if (v == "tk_short") v_ = tk_short_l;
+ else if (v == "tk_long") v_ = tk_long_l;
+ else if (v == "tk_ushort") v_ = tk_ushort_l;
+ else if (v == "tk_ulong") v_ = tk_ulong_l;
+ else if (v == "tk_float") v_ = tk_float_l;
+ else if (v == "tk_double") v_ = tk_double_l;
+ else if (v == "tk_boolean") v_ = tk_boolean_l;
+ else if (v == "tk_char") v_ = tk_char_l;
+ else if (v == "tk_octet") v_ = tk_octet_l;
+ else if (v == "tk_any") v_ = tk_any_l;
+ else if (v == "tk_TypeCode") v_ = tk_TypeCode_l;
+ else if (v == "tk_Principal") v_ = tk_Principal_l;
+ else if (v == "tk_objref") v_ = tk_objref_l;
+ else if (v == "tk_struct") v_ = tk_struct_l;
+ else if (v == "tk_union") v_ = tk_union_l;
+ else if (v == "tk_enum") v_ = tk_enum_l;
+ else if (v == "tk_string") v_ = tk_string_l;
+ else if (v == "tk_sequence") v_ = tk_sequence_l;
+ else if (v == "tk_array") v_ = tk_array_l;
+ else if (v == "tk_alias") v_ = tk_alias_l;
+ else if (v == "tk_except") v_ = tk_except_l;
+ else if (v == "tk_longlong") v_ = tk_longlong_l;
+ else if (v == "tk_ulonglong") v_ = tk_ulonglong_l;
+ else if (v == "tk_longdouble") v_ = tk_longdouble_l;
+ else if (v == "tk_wchar") v_ = tk_wchar_l;
+ else if (v == "tk_wstring") v_ = tk_wstring_l;
+ else if (v == "tk_wfixed") v_ = tk_wfixed_l;
+ else if (v == "tk_value") v_ = tk_value_l;
+ else if (v == "tk_value_box") v_ = tk_value_box_l;
+ else if (v == "tk_native") v_ = tk_native_l;
+ else if (v == "tk_abstract_interface") v_ = tk_abstract_interface_l;
+ else if (v == "tk_local_interface") v_ = tk_local_interface_l;
+ else if (v == "tk_component") v_ = tk_component_l;
+ else if (v == "tk_home") v_ = tk_home_l;
+ else if (v == "tk_event") v_ = tk_event_l;
+ else
+ {
+ }
+ }
+
+ TCKind const TCKind::tk_null (TCKind::tk_null_l);
+ TCKind const TCKind::tk_void (TCKind::tk_void_l);
+ TCKind const TCKind::tk_short (TCKind::tk_short_l);
+ TCKind const TCKind::tk_long (TCKind::tk_long_l);
+ TCKind const TCKind::tk_ushort (TCKind::tk_ushort_l);
+ TCKind const TCKind::tk_ulong (TCKind::tk_ulong_l);
+ TCKind const TCKind::tk_float (TCKind::tk_float_l);
+ TCKind const TCKind::tk_double (TCKind::tk_double_l);
+ TCKind const TCKind::tk_boolean (TCKind::tk_boolean_l);
+ TCKind const TCKind::tk_char (TCKind::tk_char_l);
+ TCKind const TCKind::tk_octet (TCKind::tk_octet_l);
+ TCKind const TCKind::tk_any (TCKind::tk_any_l);
+ TCKind const TCKind::tk_TypeCode (TCKind::tk_TypeCode_l);
+ TCKind const TCKind::tk_Principal (TCKind::tk_Principal_l);
+ TCKind const TCKind::tk_objref (TCKind::tk_objref_l);
+ TCKind const TCKind::tk_struct (TCKind::tk_struct_l);
+ TCKind const TCKind::tk_union (TCKind::tk_union_l);
+ TCKind const TCKind::tk_enum (TCKind::tk_enum_l);
+ TCKind const TCKind::tk_string (TCKind::tk_string_l);
+ TCKind const TCKind::tk_sequence (TCKind::tk_sequence_l);
+ TCKind const TCKind::tk_array (TCKind::tk_array_l);
+ TCKind const TCKind::tk_alias (TCKind::tk_alias_l);
+ TCKind const TCKind::tk_except (TCKind::tk_except_l);
+ TCKind const TCKind::tk_longlong (TCKind::tk_longlong_l);
+ TCKind const TCKind::tk_ulonglong (TCKind::tk_ulonglong_l);
+ TCKind const TCKind::tk_longdouble (TCKind::tk_longdouble_l);
+ TCKind const TCKind::tk_wchar (TCKind::tk_wchar_l);
+ TCKind const TCKind::tk_wstring (TCKind::tk_wstring_l);
+ TCKind const TCKind::tk_wfixed (TCKind::tk_wfixed_l);
+ TCKind const TCKind::tk_value (TCKind::tk_value_l);
+ TCKind const TCKind::tk_value_box (TCKind::tk_value_box_l);
+ TCKind const TCKind::tk_native (TCKind::tk_native_l);
+ TCKind const TCKind::tk_abstract_interface (TCKind::tk_abstract_interface_l);
+ TCKind const TCKind::tk_local_interface (TCKind::tk_local_interface_l);
+ TCKind const TCKind::tk_component (TCKind::tk_component_l);
+ TCKind const TCKind::tk_home (TCKind::tk_home_l);
+ TCKind const TCKind::tk_event (TCKind::tk_event_l);
+
+ // DataType
+ //
+
+ DataType::
+ DataType (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "kind")
+ {
+ ::CIAO::Config_Handlers::TCKind t (e);
+ kind (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // DataValue
+ //
+
+ DataValue::
+ DataValue (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "short")
+ {
+ ::XMLSchema::short_ t (e);
+ short_ (t);
+ }
+
+ else if (n == "long")
+ {
+ ::XMLSchema::int_ t (e);
+ long_ (t);
+ }
+
+ else if (n == "ushort")
+ {
+ ::XMLSchema::unsignedShort t (e);
+ ushort (t);
+ }
+
+ else if (n == "ulong")
+ {
+ ::XMLSchema::unsignedInt t (e);
+ ulong (t);
+ }
+
+ else if (n == "float")
+ {
+ ::XMLSchema::float_ t (e);
+ float_ (t);
+ }
+
+ else if (n == "double")
+ {
+ ::XMLSchema::double_ t (e);
+ double_ (t);
+ }
+
+ else if (n == "boolean")
+ {
+ ::XMLSchema::boolean t (e);
+ boolean (t);
+ }
+
+ else if (n == "octet")
+ {
+ ::XMLSchema::unsignedByte t (e);
+ octet (t);
+ }
+
+ else if (n == "objref")
+ {
+ ::XMLSchema::string< char > t (e);
+ objref (t);
+ }
+
+ else if (n == "enum")
+ {
+ ::XMLSchema::string< char > t (e);
+ enum_ (t);
+ }
+
+ else if (n == "string")
+ {
+ ::XMLSchema::string< char > t (e);
+ string (t);
+ }
+
+ else if (n == "longlong")
+ {
+ ::XMLSchema::long_ t (e);
+ longlong (t);
+ }
+
+ else if (n == "ulonglong")
+ {
+ ::XMLSchema::unsignedLong t (e);
+ ulonglong (t);
+ }
+
+ else if (n == "longdouble")
+ {
+ ::XMLSchema::double_ t (e);
+ longdouble (t);
+ }
+
+ else if (n == "fixed")
+ {
+ ::XMLSchema::string< char > t (e);
+ fixed (t);
+ }
+
+ else if (n == "typecode")
+ {
+ ::CIAO::Config_Handlers::DataType t (e);
+ typecode (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // Any
+ //
+
+ Any::
+ Any (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ type_ (new ::CIAO::Config_Handlers::DataType ()),
+ value_ (new ::CIAO::Config_Handlers::DataValue ()),
+ regulator__ ()
+ {
+ type_->container (this);
+ value_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "type")
+ {
+ ::CIAO::Config_Handlers::DataType t (e);
+ type (t);
+ }
+
+ else if (n == "value")
+ {
+ ::CIAO::Config_Handlers::DataValue t (e);
+ value (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // Property
+ //
+
+ Property::
+ Property (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ value_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ value_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "value")
+ {
+ ::CIAO::Config_Handlers::Any t (e);
+ value (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // Node
+ //
+
+ Node::
+ Node (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ label_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ label_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // SatisfierPropertyKind
+ //
+
+ SatisfierPropertyKind::
+ SatisfierPropertyKind (::XSCRT::XML::Element< char > const& e)
+ : Type (e)
+ {
+ ::std::basic_string< char > v (e.value ());
+
+ if (v == "Quantity") v_ = Quantity_l;
+ else if (v == "Capacity") v_ = Capacity_l;
+ else if (v == "Minimum") v_ = Minimum_l;
+ else if (v == "Maximum") v_ = Maximum_l;
+ else if (v == "Attribute") v_ = Attribute_l;
+ else if (v == "Selection") v_ = Selection_l;
+ else
+ {
+ }
+ }
+
+ SatisfierPropertyKind::
+ SatisfierPropertyKind (::XSCRT::XML::Attribute< char > const& a)
+ : Type (a)
+ {
+ ::std::basic_string< char > v (a.value ());
+
+ if (v == "Quantity") v_ = Quantity_l;
+ else if (v == "Capacity") v_ = Capacity_l;
+ else if (v == "Minimum") v_ = Minimum_l;
+ else if (v == "Maximum") v_ = Maximum_l;
+ else if (v == "Attribute") v_ = Attribute_l;
+ else if (v == "Selection") v_ = Selection_l;
+ else
+ {
+ }
+ }
+
+ SatisfierPropertyKind const SatisfierPropertyKind::Quantity (SatisfierPropertyKind::Quantity_l);
+ SatisfierPropertyKind const SatisfierPropertyKind::Capacity (SatisfierPropertyKind::Capacity_l);
+ SatisfierPropertyKind const SatisfierPropertyKind::Minimum (SatisfierPropertyKind::Minimum_l);
+ SatisfierPropertyKind const SatisfierPropertyKind::Maximum (SatisfierPropertyKind::Maximum_l);
+ SatisfierPropertyKind const SatisfierPropertyKind::Attribute (SatisfierPropertyKind::Attribute_l);
+ SatisfierPropertyKind const SatisfierPropertyKind::Selection (SatisfierPropertyKind::Selection_l);
+
+ // SatisfierProperty
+ //
+
+ SatisfierProperty::
+ SatisfierProperty (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ kind_ (new ::CIAO::Config_Handlers::SatisfierPropertyKind ()),
+ value_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ kind_->container (this);
+ value_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "kind")
+ {
+ ::CIAO::Config_Handlers::SatisfierPropertyKind t (e);
+ kind (t);
+ }
+
+ else if (n == "value")
+ {
+ ::CIAO::Config_Handlers::Any t (e);
+ value (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // Resource
+ //
+
+ Resource::
+ Resource (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "resourceType")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceType (t);
+ }
+
+ else if (n == "property")
+ {
+ ::CIAO::Config_Handlers::SatisfierProperty t (e);
+ property (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // SharedResource
+ //
+
+ SharedResource::
+ SharedResource (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ node_ (new ::CIAO::Config_Handlers::Node ()),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ node_->container (this);
+ property_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "resourceType")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceType (t);
+ }
+
+ else if (n == "node")
+ {
+ ::CIAO::Config_Handlers::Node t (e);
+ node (t);
+ }
+
+ else if (n == "property")
+ {
+ ::CIAO::Config_Handlers::SatisfierProperty t (e);
+ property (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // Requirement
+ //
+
+ Requirement::
+ Requirement (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ name_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::Property ()),
+ regulator__ ()
+ {
+ resourceType_->container (this);
+ name_->container (this);
+ property_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "resourceType")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceType (t);
+ }
+
+ else if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "property")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ property (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ResourceDeploymentDescription
+ //
+
+ ResourceDeploymentDescription::
+ ResourceDeploymentDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ requirementName_ (new ::XMLSchema::string< char > ()),
+ resourceName_ (new ::XMLSchema::string< char > ()),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "requirementName")
+ {
+ ::XMLSchema::string< char > t (e);
+ requirementName (t);
+ }
+
+ else if (n == "resourceName")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceName (t);
+ }
+
+ else if (n == "resourceValue")
+ {
+ ::CIAO::Config_Handlers::Any t (e);
+ resourceValue (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ArtifactDeploymentDescription
+ //
+
+ ArtifactDeploymentDescription::
+ ArtifactDeploymentDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ source_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ source_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "source")
+ {
+ ::XMLSchema::string< char > t (e);
+ source (t);
+ }
+
+ else if (n == "node")
+ {
+ ::XMLSchema::string< char > t (e);
+ node (t);
+ }
+
+ else if (n == "location")
+ {
+ ::XMLSchema::string< char > t (e);
+ add_location (t);
+ }
+
+ else if (n == "execParameter")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ execParameter (t);
+ }
+
+ else if (n == "deployRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ deployRequirement (t);
+ }
+
+ else if (n == "deployedResource")
+ {
+ ::CIAO::Config_Handlers::ResourceDeploymentDescription t (e);
+ deployedResource (t);
+ }
+
+ else
+ {
+ }
+ }
+
+ while (p.more_attributes ())
+ {
+ ::XSCRT::XML::Attribute< char > a (p.next_attribute ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (a.name ()));
+ if (n == "id")
+ {
+ ::XMLSchema::ID< char > t (a);
+ id (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // MonolithicDeploymentDescription
+ //
+
+ MonolithicDeploymentDescription::
+ MonolithicDeploymentDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ source_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ source_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "source")
+ {
+ ::XMLSchema::string< char > t (e);
+ source (t);
+ }
+
+ else if (n == "artifact")
+ {
+ ::XMLSchema::IDREF< char > t (e);
+ add_artifact (t);
+ }
+
+ else if (n == "execParameter")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ execParameter (t);
+ }
+
+ else if (n == "deployRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ deployRequirement (t);
+ }
+
+ else
+ {
+ }
+ }
+
+ while (p.more_attributes ())
+ {
+ ::XSCRT::XML::Attribute< char > a (p.next_attribute ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (a.name ()));
+ if (n == "id")
+ {
+ ::XMLSchema::ID< char > t (a);
+ id (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ResourceUsageKind
+ //
+
+ ResourceUsageKind::
+ ResourceUsageKind (::XSCRT::XML::Element< char > const& e)
+ : Type (e)
+ {
+ ::std::basic_string< char > v (e.value ());
+
+ if (v == "None") v_ = None_l;
+ else if (v == "InstanceUsesResource") v_ = InstanceUsesResource_l;
+ else if (v == "ResourceUsesInstance") v_ = ResourceUsesInstance_l;
+ else if (v == "PortUsesResource") v_ = PortUsesResource_l;
+ else if (v == "ResourceUsesPort") v_ = ResourceUsesPort_l;
+ else
+ {
+ }
+ }
+
+ ResourceUsageKind::
+ ResourceUsageKind (::XSCRT::XML::Attribute< char > const& a)
+ : Type (a)
+ {
+ ::std::basic_string< char > v (a.value ());
+
+ if (v == "None") v_ = None_l;
+ else if (v == "InstanceUsesResource") v_ = InstanceUsesResource_l;
+ else if (v == "ResourceUsesInstance") v_ = ResourceUsesInstance_l;
+ else if (v == "PortUsesResource") v_ = PortUsesResource_l;
+ else if (v == "ResourceUsesPort") v_ = ResourceUsesPort_l;
+ else
+ {
+ }
+ }
+
+ ResourceUsageKind const ResourceUsageKind::None (ResourceUsageKind::None_l);
+ ResourceUsageKind const ResourceUsageKind::InstanceUsesResource (ResourceUsageKind::InstanceUsesResource_l);
+ ResourceUsageKind const ResourceUsageKind::ResourceUsesInstance (ResourceUsageKind::ResourceUsesInstance_l);
+ ResourceUsageKind const ResourceUsageKind::PortUsesResource (ResourceUsageKind::PortUsesResource_l);
+ ResourceUsageKind const ResourceUsageKind::ResourceUsesPort (ResourceUsageKind::ResourceUsesPort_l);
+
+ // InstanceResourceDeploymentDescription
+ //
+
+ InstanceResourceDeploymentDescription::
+ InstanceResourceDeploymentDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind ()),
+ requirementName_ (new ::XMLSchema::string< char > ()),
+ resourceName_ (new ::XMLSchema::string< char > ()),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ resourceUsage_->container (this);
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "resourceUsage")
+ {
+ ::CIAO::Config_Handlers::ResourceUsageKind t (e);
+ resourceUsage (t);
+ }
+
+ else if (n == "requirementName")
+ {
+ ::XMLSchema::string< char > t (e);
+ requirementName (t);
+ }
+
+ else if (n == "resourceName")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceName (t);
+ }
+
+ else if (n == "resourceValue")
+ {
+ ::CIAO::Config_Handlers::Any t (e);
+ resourceValue (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // InstanceDeploymentDescription
+ //
+
+ InstanceDeploymentDescription::
+ InstanceDeploymentDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ node_ (new ::XMLSchema::string< char > ()),
+ source_ (new ::XMLSchema::string< char > ()),
+ implementation_ (new ::XMLSchema::IDREF< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ node_->container (this);
+ source_->container (this);
+ implementation_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "node")
+ {
+ ::XMLSchema::string< char > t (e);
+ node (t);
+ }
+
+ else if (n == "source")
+ {
+ ::XMLSchema::string< char > t (e);
+ source (t);
+ }
+
+ else if (n == "implementation")
+ {
+ ::XMLSchema::IDREF< char > t (e);
+ implementation (t);
+ }
+
+ else if (n == "configProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ configProperty (t);
+ }
+
+ else if (n == "deployedResource")
+ {
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription t (e);
+ deployedResource (t);
+ }
+
+ else if (n == "deployedSharedResource")
+ {
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription t (e);
+ deployedSharedResource (t);
+ }
+
+ else
+ {
+ }
+ }
+
+ while (p.more_attributes ())
+ {
+ ::XSCRT::XML::Attribute< char > a (p.next_attribute ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (a.name ()));
+ if (n == "id")
+ {
+ ::XMLSchema::ID< char > t (a);
+ id (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // CCMComponentPortKind
+ //
+
+ CCMComponentPortKind::
+ CCMComponentPortKind (::XSCRT::XML::Element< char > const& e)
+ : Type (e)
+ {
+ ::std::basic_string< char > v (e.value ());
+
+ if (v == "Facet") v_ = Facet_l;
+ else if (v == "SimplexReceptacle") v_ = SimplexReceptacle_l;
+ else if (v == "MultiplexReceptacle") v_ = MultiplexReceptacle_l;
+ else if (v == "EventEmitter") v_ = EventEmitter_l;
+ else if (v == "EventPublisher") v_ = EventPublisher_l;
+ else if (v == "EventConsumer") v_ = EventConsumer_l;
+ else
+ {
+ }
+ }
+
+ CCMComponentPortKind::
+ CCMComponentPortKind (::XSCRT::XML::Attribute< char > const& a)
+ : Type (a)
+ {
+ ::std::basic_string< char > v (a.value ());
+
+ if (v == "Facet") v_ = Facet_l;
+ else if (v == "SimplexReceptacle") v_ = SimplexReceptacle_l;
+ else if (v == "MultiplexReceptacle") v_ = MultiplexReceptacle_l;
+ else if (v == "EventEmitter") v_ = EventEmitter_l;
+ else if (v == "EventPublisher") v_ = EventPublisher_l;
+ else if (v == "EventConsumer") v_ = EventConsumer_l;
+ else
+ {
+ }
+ }
+
+ CCMComponentPortKind const CCMComponentPortKind::Facet (CCMComponentPortKind::Facet_l);
+ CCMComponentPortKind const CCMComponentPortKind::SimplexReceptacle (CCMComponentPortKind::SimplexReceptacle_l);
+ CCMComponentPortKind const CCMComponentPortKind::MultiplexReceptacle (CCMComponentPortKind::MultiplexReceptacle_l);
+ CCMComponentPortKind const CCMComponentPortKind::EventEmitter (CCMComponentPortKind::EventEmitter_l);
+ CCMComponentPortKind const CCMComponentPortKind::EventPublisher (CCMComponentPortKind::EventPublisher_l);
+ CCMComponentPortKind const CCMComponentPortKind::EventConsumer (CCMComponentPortKind::EventConsumer_l);
+
+ // ComponentPortDescription
+ //
+
+ ComponentPortDescription::
+ ComponentPortDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ specificType_ (new ::XMLSchema::string< char > ()),
+ supportedType_ (new ::XMLSchema::string< char > ()),
+ provider_ (new ::XMLSchema::string< char > ()),
+ exclusiveProvider_ (new ::XMLSchema::string< char > ()),
+ exclusiveUser_ (new ::XMLSchema::string< char > ()),
+ optional_ (new ::XMLSchema::string< char > ()),
+ kind_ (new ::CIAO::Config_Handlers::CCMComponentPortKind ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ specificType_->container (this);
+ supportedType_->container (this);
+ provider_->container (this);
+ exclusiveProvider_->container (this);
+ exclusiveUser_->container (this);
+ optional_->container (this);
+ kind_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "specificType")
+ {
+ ::XMLSchema::string< char > t (e);
+ specificType (t);
+ }
+
+ else if (n == "supportedType")
+ {
+ ::XMLSchema::string< char > t (e);
+ supportedType (t);
+ }
+
+ else if (n == "provider")
+ {
+ ::XMLSchema::string< char > t (e);
+ provider (t);
+ }
+
+ else if (n == "exclusiveProvider")
+ {
+ ::XMLSchema::string< char > t (e);
+ exclusiveProvider (t);
+ }
+
+ else if (n == "exclusiveUser")
+ {
+ ::XMLSchema::string< char > t (e);
+ exclusiveUser (t);
+ }
+
+ else if (n == "optional")
+ {
+ ::XMLSchema::string< char > t (e);
+ optional (t);
+ }
+
+ else if (n == "kind")
+ {
+ ::CIAO::Config_Handlers::CCMComponentPortKind t (e);
+ kind (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ComponentPropertyDescription
+ //
+
+ ComponentPropertyDescription::
+ ComponentPropertyDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ type_ (new ::CIAO::Config_Handlers::DataType ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ type_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "type")
+ {
+ ::CIAO::Config_Handlers::DataType t (e);
+ type (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ComponentExternalPortEndpoint
+ //
+
+ ComponentExternalPortEndpoint::
+ ComponentExternalPortEndpoint (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ portName_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ portName_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "portName")
+ {
+ ::XMLSchema::string< char > t (e);
+ portName (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // PlanSubcomponentPortEndpoint
+ //
+
+ PlanSubcomponentPortEndpoint::
+ PlanSubcomponentPortEndpoint (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ portName_ (new ::XMLSchema::string< char > ()),
+ kind_ (new ::CIAO::Config_Handlers::CCMComponentPortKind ()),
+ instance_ (new ::XMLSchema::IDREF< char > ()),
+ regulator__ ()
+ {
+ portName_->container (this);
+ kind_->container (this);
+ instance_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "portName")
+ {
+ ::XMLSchema::string< char > t (e);
+ portName (t);
+ }
+
+ else if (n == "provider")
+ {
+ ::XMLSchema::string< char > t (e);
+ provider (t);
+ }
+
+ else if (n == "kind")
+ {
+ ::CIAO::Config_Handlers::CCMComponentPortKind t (e);
+ kind (t);
+ }
+
+ else if (n == "instance")
+ {
+ ::XMLSchema::IDREF< char > t (e);
+ instance (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ExternalReferenceEndpoint
+ //
+
+ ExternalReferenceEndpoint::
+ ExternalReferenceEndpoint (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ location_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ location_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "location")
+ {
+ ::XMLSchema::string< char > t (e);
+ location (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ConnectionResourceDeploymentDescription
+ //
+
+ ConnectionResourceDeploymentDescription::
+ ConnectionResourceDeploymentDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ targetName_ (new ::XMLSchema::string< char > ()),
+ requirementName_ (new ::XMLSchema::string< char > ()),
+ resourceName_ (new ::XMLSchema::string< char > ()),
+ resourceValue_ (new ::CIAO::Config_Handlers::Any ()),
+ regulator__ ()
+ {
+ targetName_->container (this);
+ requirementName_->container (this);
+ resourceName_->container (this);
+ resourceValue_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "targetName")
+ {
+ ::XMLSchema::string< char > t (e);
+ targetName (t);
+ }
+
+ else if (n == "requirementName")
+ {
+ ::XMLSchema::string< char > t (e);
+ requirementName (t);
+ }
+
+ else if (n == "resourceName")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceName (t);
+ }
+
+ else if (n == "resourceValue")
+ {
+ ::CIAO::Config_Handlers::Any t (e);
+ resourceValue (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // PlanConnectionDescription
+ //
+
+ PlanConnectionDescription::
+ PlanConnectionDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "source")
+ {
+ ::XMLSchema::string< char > t (e);
+ source (t);
+ }
+
+ else if (n == "deployRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ deployRequirement (t);
+ }
+
+ else if (n == "externalEndpoint")
+ {
+ ::CIAO::Config_Handlers::ComponentExternalPortEndpoint t (e);
+ add_externalEndpoint (t);
+ }
+
+ else if (n == "internalEndpoint")
+ {
+ ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint t (e);
+ add_internalEndpoint (t);
+ }
+
+ else if (n == "externalReference")
+ {
+ ::CIAO::Config_Handlers::ExternalReferenceEndpoint t (e);
+ add_externalReference (t);
+ }
+
+ else if (n == "deployedResource")
+ {
+ ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription t (e);
+ deployedResource (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ImplementationDependency
+ //
+
+ ImplementationDependency::
+ ImplementationDependency (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ requiredType_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ requiredType_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "requiredType")
+ {
+ ::XMLSchema::string< char > t (e);
+ requiredType (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // Capability
+ //
+
+ Capability::
+ Capability (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "resourceType")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceType (t);
+ }
+
+ else if (n == "property")
+ {
+ ::CIAO::Config_Handlers::SatisfierProperty t (e);
+ property (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ImplementationRequirement
+ //
+
+ ImplementationRequirement::
+ ImplementationRequirement (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind ()),
+ resourcePort_ (new ::XMLSchema::string< char > ()),
+ componentPort_ (new ::XMLSchema::string< char > ()),
+ resourceType_ (new ::XMLSchema::string< char > ()),
+ name_ (new ::XMLSchema::string< char > ()),
+ property_ (new ::CIAO::Config_Handlers::Property ()),
+ regulator__ ()
+ {
+ resourceUsage_->container (this);
+ resourcePort_->container (this);
+ componentPort_->container (this);
+ resourceType_->container (this);
+ name_->container (this);
+ property_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "resourceUsage")
+ {
+ ::CIAO::Config_Handlers::ResourceUsageKind t (e);
+ resourceUsage (t);
+ }
+
+ else if (n == "resourcePort")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourcePort (t);
+ }
+
+ else if (n == "componentPort")
+ {
+ ::XMLSchema::string< char > t (e);
+ componentPort (t);
+ }
+
+ else if (n == "resourceType")
+ {
+ ::XMLSchema::string< char > t (e);
+ resourceType (t);
+ }
+
+ else if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "property")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ property (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ComponentPackageReference
+ //
+
+ ComponentPackageReference::
+ ComponentPackageReference (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ requiredUUID_ (new ::XMLSchema::string< char > ()),
+ requiredName_ (new ::XMLSchema::string< char > ()),
+ requiredType_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ requiredUUID_->container (this);
+ requiredName_->container (this);
+ requiredType_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "requiredUUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ requiredUUID (t);
+ }
+
+ else if (n == "requiredName")
+ {
+ ::XMLSchema::string< char > t (e);
+ requiredName (t);
+ }
+
+ else if (n == "requiredType")
+ {
+ ::XMLSchema::string< char > t (e);
+ requiredType (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // SubcomponentPortEndpoint
+ //
+
+ SubcomponentPortEndpoint::
+ SubcomponentPortEndpoint (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ portName_ (new ::XMLSchema::string< char > ()),
+ instance_ (new ::XMLSchema::IDREF< char > ()),
+ regulator__ ()
+ {
+ portName_->container (this);
+ instance_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "portName")
+ {
+ ::XMLSchema::string< char > t (e);
+ portName (t);
+ }
+
+ else if (n == "instance")
+ {
+ ::XMLSchema::IDREF< char > t (e);
+ instance (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // AssemblyConnectionDescription
+ //
+
+ AssemblyConnectionDescription::
+ AssemblyConnectionDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ name_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "deployRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ deployRequirement (t);
+ }
+
+ else if (n == "externalEndpoint")
+ {
+ ::CIAO::Config_Handlers::ComponentExternalPortEndpoint t (e);
+ add_externalEndpoint (t);
+ }
+
+ else if (n == "internalEndpoint")
+ {
+ ::CIAO::Config_Handlers::SubcomponentPortEndpoint t (e);
+ add_internalEndpoint (t);
+ }
+
+ else if (n == "externalReference")
+ {
+ ::CIAO::Config_Handlers::ExternalReferenceEndpoint t (e);
+ add_externalReference (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.hpp
new file mode 100644
index 00000000000..9113806e87e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Deployment_Data.hpp
@@ -0,0 +1,1928 @@
+//$Id$
+#ifndef BASIC_DEPLOYMENT_DATA_HPP
+#define BASIC_DEPLOYMENT_DATA_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class TCKind;
+ class DataType;
+ class DataValue;
+ class Any;
+ class Property;
+ class Node;
+ class SatisfierPropertyKind;
+ class SatisfierProperty;
+ class Resource;
+ class SharedResource;
+ class Requirement;
+ class ResourceDeploymentDescription;
+ class ArtifactDeploymentDescription;
+ class MonolithicDeploymentDescription;
+ class ResourceUsageKind;
+ class InstanceResourceDeploymentDescription;
+ class InstanceDeploymentDescription;
+ class CCMComponentPortKind;
+ class ComponentPortDescription;
+ class ComponentPropertyDescription;
+ class ComponentExternalPortEndpoint;
+ class PlanSubcomponentPortEndpoint;
+ class ExternalReferenceEndpoint;
+ class ConnectionResourceDeploymentDescription;
+ class PlanConnectionDescription;
+ class ImplementationDependency;
+ class Capability;
+ class ImplementationRequirement;
+ class ComponentPackageReference;
+ class SubcomponentPortEndpoint;
+ class AssemblyConnectionDescription;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class TCKind : public ::XSCRT::Type
+ {
+ public:
+ TCKind ();
+ TCKind (::XSCRT::XML::Element< char > const&);
+ TCKind (::XSCRT::XML::Attribute< char > const&);
+
+ static TCKind const tk_null;
+ static TCKind const tk_void;
+ static TCKind const tk_short;
+ static TCKind const tk_long;
+ static TCKind const tk_ushort;
+ static TCKind const tk_ulong;
+ static TCKind const tk_float;
+ static TCKind const tk_double;
+ static TCKind const tk_boolean;
+ static TCKind const tk_char;
+ static TCKind const tk_octet;
+ static TCKind const tk_any;
+ static TCKind const tk_TypeCode;
+ static TCKind const tk_Principal;
+ static TCKind const tk_objref;
+ static TCKind const tk_struct;
+ static TCKind const tk_union;
+ static TCKind const tk_enum;
+ static TCKind const tk_string;
+ static TCKind const tk_sequence;
+ static TCKind const tk_array;
+ static TCKind const tk_alias;
+ static TCKind const tk_except;
+ static TCKind const tk_longlong;
+ static TCKind const tk_ulonglong;
+ static TCKind const tk_longdouble;
+ static TCKind const tk_wchar;
+ static TCKind const tk_wstring;
+ static TCKind const tk_wfixed;
+ static TCKind const tk_value;
+ static TCKind const tk_value_box;
+ static TCKind const tk_native;
+ static TCKind const tk_abstract_interface;
+ static TCKind const tk_local_interface;
+ static TCKind const tk_component;
+ static TCKind const tk_home;
+ static TCKind const tk_event;
+
+ enum Value
+ {
+ tk_null_l,
+ tk_void_l,
+ tk_short_l,
+ tk_long_l,
+ tk_ushort_l,
+ tk_ulong_l,
+ tk_float_l,
+ tk_double_l,
+ tk_boolean_l,
+ tk_char_l,
+ tk_octet_l,
+ tk_any_l,
+ tk_TypeCode_l,
+ tk_Principal_l,
+ tk_objref_l,
+ tk_struct_l,
+ tk_union_l,
+ tk_enum_l,
+ tk_string_l,
+ tk_sequence_l,
+ tk_array_l,
+ tk_alias_l,
+ tk_except_l,
+ tk_longlong_l,
+ tk_ulonglong_l,
+ tk_longdouble_l,
+ tk_wchar_l,
+ tk_wstring_l,
+ tk_wfixed_l,
+ tk_value_l,
+ tk_value_box_l,
+ tk_native_l,
+ tk_abstract_interface_l,
+ tk_local_interface_l,
+ tk_component_l,
+ tk_home_l,
+ tk_event_l,
+ };
+
+
+ Value
+ integral () const;
+
+ friend bool
+ operator== (TCKind const& a, TCKind const& b);
+
+ friend bool
+ operator!= (TCKind const& a, TCKind const& b);
+
+ private:
+ TCKind (Value v);
+
+ Value v_;
+ };
+
+ class DataType : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // kind
+ //
+ public:
+ bool kind_p () const;
+ ::CIAO::Config_Handlers::TCKind const& kind () const;
+ ::CIAO::Config_Handlers::TCKind& kind ();
+ void kind (::CIAO::Config_Handlers::TCKind const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::TCKind > kind_;
+
+ public:
+ DataType ();
+ DataType (::XSCRT::XML::Element< char > const&);
+ DataType (DataType const& s);
+
+ DataType&
+ operator= (DataType const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class DataValue : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // short
+ //
+ public:
+ bool short_p () const;
+ ::XMLSchema::short_ const& short_ () const;
+ ::XMLSchema::short_& short_ ();
+ void short_ (::XMLSchema::short_ const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::short_ > short__;
+
+ // long
+ //
+ public:
+ bool long_p () const;
+ ::XMLSchema::int_ const& long_ () const;
+ ::XMLSchema::int_& long_ ();
+ void long_ (::XMLSchema::int_ const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::int_ > long__;
+
+ // ushort
+ //
+ public:
+ bool ushort_p () const;
+ ::XMLSchema::unsignedShort const& ushort () const;
+ ::XMLSchema::unsignedShort& ushort ();
+ void ushort (::XMLSchema::unsignedShort const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::unsignedShort > ushort_;
+
+ // ulong
+ //
+ public:
+ bool ulong_p () const;
+ ::XMLSchema::unsignedInt const& ulong () const;
+ ::XMLSchema::unsignedInt& ulong ();
+ void ulong (::XMLSchema::unsignedInt const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::unsignedInt > ulong_;
+
+ // float
+ //
+ public:
+ bool float_p () const;
+ ::XMLSchema::float_ const& float_ () const;
+ ::XMLSchema::float_& float_ ();
+ void float_ (::XMLSchema::float_ const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::float_ > float__;
+
+ // double
+ //
+ public:
+ bool double_p () const;
+ ::XMLSchema::double_ const& double_ () const;
+ ::XMLSchema::double_& double_ ();
+ void double_ (::XMLSchema::double_ const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::double_ > double__;
+
+ // boolean
+ //
+ public:
+ bool boolean_p () const;
+ ::XMLSchema::boolean const& boolean () const;
+ ::XMLSchema::boolean& boolean ();
+ void boolean (::XMLSchema::boolean const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::boolean > boolean_;
+
+ // octet
+ //
+ public:
+ bool octet_p () const;
+ ::XMLSchema::unsignedByte const& octet () const;
+ ::XMLSchema::unsignedByte& octet ();
+ void octet (::XMLSchema::unsignedByte const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::unsignedByte > octet_;
+
+ // objref
+ //
+ public:
+ bool objref_p () const;
+ ::XMLSchema::string< char > const& objref () const;
+ ::XMLSchema::string< char >& objref ();
+ void objref (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > objref_;
+
+ // enum
+ //
+ public:
+ bool enum_p () const;
+ ::XMLSchema::string< char > const& enum_ () const;
+ ::XMLSchema::string< char >& enum_ ();
+ void enum_ (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > enum__;
+
+ // string
+ //
+ public:
+ bool string_p () const;
+ ::XMLSchema::string< char > const& string () const;
+ ::XMLSchema::string< char >& string ();
+ void string (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > string_;
+
+ // longlong
+ //
+ public:
+ bool longlong_p () const;
+ ::XMLSchema::long_ const& longlong () const;
+ ::XMLSchema::long_& longlong ();
+ void longlong (::XMLSchema::long_ const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::long_ > longlong_;
+
+ // ulonglong
+ //
+ public:
+ bool ulonglong_p () const;
+ ::XMLSchema::unsignedLong const& ulonglong () const;
+ ::XMLSchema::unsignedLong& ulonglong ();
+ void ulonglong (::XMLSchema::unsignedLong const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::unsignedLong > ulonglong_;
+
+ // longdouble
+ //
+ public:
+ bool longdouble_p () const;
+ ::XMLSchema::double_ const& longdouble () const;
+ ::XMLSchema::double_& longdouble ();
+ void longdouble (::XMLSchema::double_ const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::double_ > longdouble_;
+
+ // fixed
+ //
+ public:
+ bool fixed_p () const;
+ ::XMLSchema::string< char > const& fixed () const;
+ ::XMLSchema::string< char >& fixed ();
+ void fixed (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > fixed_;
+
+ // typecode
+ //
+ public:
+ bool typecode_p () const;
+ ::CIAO::Config_Handlers::DataType const& typecode () const;
+ ::CIAO::Config_Handlers::DataType& typecode ();
+ void typecode (::CIAO::Config_Handlers::DataType const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::DataType > typecode_;
+
+ public:
+ DataValue ();
+ DataValue (::XSCRT::XML::Element< char > const&);
+ DataValue (DataValue const& s);
+
+ DataValue&
+ operator= (DataValue const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class Any : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // type
+ //
+ public:
+ ::CIAO::Config_Handlers::DataType const& type () const;
+ ::CIAO::Config_Handlers::DataType& type ();
+ void type (::CIAO::Config_Handlers::DataType const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::DataType > type_;
+
+ // value
+ //
+ public:
+ ::CIAO::Config_Handlers::DataValue const& value () const;
+ ::CIAO::Config_Handlers::DataValue& value ();
+ void value (::CIAO::Config_Handlers::DataValue const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::DataValue > value_;
+
+ public:
+ Any ();
+ Any (::XSCRT::XML::Element< char > const&);
+ Any (Any const& s);
+
+ Any&
+ operator= (Any const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class Property : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // value
+ //
+ public:
+ ::CIAO::Config_Handlers::Any const& value () const;
+ ::CIAO::Config_Handlers::Any& value ();
+ void value (::CIAO::Config_Handlers::Any const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Any > value_;
+
+ public:
+ Property ();
+ Property (::XSCRT::XML::Element< char > const&);
+ Property (Property const& s);
+
+ Property&
+ operator= (Property const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class Node : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // label
+ //
+ public:
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ public:
+ Node ();
+ Node (::XSCRT::XML::Element< char > const&);
+ Node (Node const& s);
+
+ Node&
+ operator= (Node const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class SatisfierPropertyKind : public ::XSCRT::Type
+ {
+ public:
+ SatisfierPropertyKind ();
+ SatisfierPropertyKind (::XSCRT::XML::Element< char > const&);
+ SatisfierPropertyKind (::XSCRT::XML::Attribute< char > const&);
+
+ static SatisfierPropertyKind const Quantity;
+ static SatisfierPropertyKind const Capacity;
+ static SatisfierPropertyKind const Minimum;
+ static SatisfierPropertyKind const Maximum;
+ static SatisfierPropertyKind const Attribute;
+ static SatisfierPropertyKind const Selection;
+
+ enum Value
+ {
+ Quantity_l,
+ Capacity_l,
+ Minimum_l,
+ Maximum_l,
+ Attribute_l,
+ Selection_l,
+ };
+
+
+ Value
+ integral () const;
+
+ friend bool
+ operator== (SatisfierPropertyKind const& a, SatisfierPropertyKind const& b);
+
+ friend bool
+ operator!= (SatisfierPropertyKind const& a, SatisfierPropertyKind const& b);
+
+ private:
+ SatisfierPropertyKind (Value v);
+
+ Value v_;
+ };
+
+ class SatisfierProperty : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // kind
+ //
+ public:
+ ::CIAO::Config_Handlers::SatisfierPropertyKind const& kind () const;
+ ::CIAO::Config_Handlers::SatisfierPropertyKind& kind ();
+ void kind (::CIAO::Config_Handlers::SatisfierPropertyKind const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierPropertyKind > kind_;
+
+ // value
+ //
+ public:
+ ::CIAO::Config_Handlers::Any const& value () const;
+ ::CIAO::Config_Handlers::Any& value ();
+ void value (::CIAO::Config_Handlers::Any const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Any > value_;
+
+ public:
+ SatisfierProperty ();
+ SatisfierProperty (::XSCRT::XML::Element< char > const&);
+ SatisfierProperty (SatisfierProperty const& s);
+
+ SatisfierProperty&
+ operator= (SatisfierProperty const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class Resource : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // resourceType
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceType () const;
+ ::XMLSchema::string< char >& resourceType ();
+ void resourceType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceType_;
+
+ // property
+ //
+ public:
+ ::CIAO::Config_Handlers::SatisfierProperty const& property () const;
+ ::CIAO::Config_Handlers::SatisfierProperty& property ();
+ void property (::CIAO::Config_Handlers::SatisfierProperty const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierProperty > property_;
+
+ public:
+ Resource ();
+ Resource (::XSCRT::XML::Element< char > const&);
+ Resource (Resource const& s);
+
+ Resource&
+ operator= (Resource const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class SharedResource : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // resourceType
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceType () const;
+ ::XMLSchema::string< char >& resourceType ();
+ void resourceType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceType_;
+
+ // node
+ //
+ public:
+ ::CIAO::Config_Handlers::Node const& node () const;
+ ::CIAO::Config_Handlers::Node& node ();
+ void node (::CIAO::Config_Handlers::Node const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Node > node_;
+
+ // property
+ //
+ public:
+ ::CIAO::Config_Handlers::SatisfierProperty const& property () const;
+ ::CIAO::Config_Handlers::SatisfierProperty& property ();
+ void property (::CIAO::Config_Handlers::SatisfierProperty const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierProperty > property_;
+
+ public:
+ SharedResource ();
+ SharedResource (::XSCRT::XML::Element< char > const&);
+ SharedResource (SharedResource const& s);
+
+ SharedResource&
+ operator= (SharedResource const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class Requirement : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // resourceType
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceType () const;
+ ::XMLSchema::string< char >& resourceType ();
+ void resourceType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceType_;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // property
+ //
+ public:
+ ::CIAO::Config_Handlers::Property const& property () const;
+ ::CIAO::Config_Handlers::Property& property ();
+ void property (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > property_;
+
+ public:
+ Requirement ();
+ Requirement (::XSCRT::XML::Element< char > const&);
+ Requirement (Requirement const& s);
+
+ Requirement&
+ operator= (Requirement const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ResourceDeploymentDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // requirementName
+ //
+ public:
+ ::XMLSchema::string< char > const& requirementName () const;
+ ::XMLSchema::string< char >& requirementName ();
+ void requirementName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requirementName_;
+
+ // resourceName
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceName () const;
+ ::XMLSchema::string< char >& resourceName ();
+ void resourceName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceName_;
+
+ // resourceValue
+ //
+ public:
+ ::CIAO::Config_Handlers::Any const& resourceValue () const;
+ ::CIAO::Config_Handlers::Any& resourceValue ();
+ void resourceValue (::CIAO::Config_Handlers::Any const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Any > resourceValue_;
+
+ public:
+ ResourceDeploymentDescription ();
+ ResourceDeploymentDescription (::XSCRT::XML::Element< char > const&);
+ ResourceDeploymentDescription (ResourceDeploymentDescription const& s);
+
+ ResourceDeploymentDescription&
+ operator= (ResourceDeploymentDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ArtifactDeploymentDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // source
+ //
+ public:
+ ::XMLSchema::string< char > const& source () const;
+ ::XMLSchema::string< char >& source ();
+ void source (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > source_;
+
+ // node
+ //
+ public:
+ bool node_p () const;
+ ::XMLSchema::string< char > const& node () const;
+ ::XMLSchema::string< char >& node ();
+ void node (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > node_;
+
+ // location
+ //
+ public:
+ typedef ::std::vector< ::XMLSchema::string< char > >::iterator location_iterator;
+ typedef ::std::vector< ::XMLSchema::string< char > >::const_iterator location_const_iterator;
+ location_iterator begin_location ();
+ location_iterator end_location ();
+ location_const_iterator begin_location () const;
+ location_const_iterator end_location () const;
+ void add_location (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::vector< ::XMLSchema::string< char > > location_;
+
+ // execParameter
+ //
+ public:
+ bool execParameter_p () const;
+ ::CIAO::Config_Handlers::Property const& execParameter () const;
+ ::CIAO::Config_Handlers::Property& execParameter ();
+ void execParameter (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > execParameter_;
+
+ // deployRequirement
+ //
+ public:
+ bool deployRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& deployRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& deployRequirement ();
+ void deployRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
+
+ // deployedResource
+ //
+ public:
+ bool deployedResource_p () const;
+ ::CIAO::Config_Handlers::ResourceDeploymentDescription const& deployedResource () const;
+ ::CIAO::Config_Handlers::ResourceDeploymentDescription& deployedResource ();
+ void deployedResource (::CIAO::Config_Handlers::ResourceDeploymentDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ResourceDeploymentDescription > deployedResource_;
+
+ // id
+ //
+ public:
+ bool id_p () const;
+ ::XMLSchema::ID< char > const& id () const;
+ ::XMLSchema::ID< char >& id ();
+ void id (::XMLSchema::ID< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::ID< char > > id_;
+
+ public:
+ ArtifactDeploymentDescription ();
+ ArtifactDeploymentDescription (::XSCRT::XML::Element< char > const&);
+ ArtifactDeploymentDescription (ArtifactDeploymentDescription const& s);
+
+ ArtifactDeploymentDescription&
+ operator= (ArtifactDeploymentDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class MonolithicDeploymentDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // source
+ //
+ public:
+ ::XMLSchema::string< char > const& source () const;
+ ::XMLSchema::string< char >& source ();
+ void source (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > source_;
+
+ // artifact
+ //
+ public:
+ typedef ::std::vector< ::XMLSchema::IDREF< char > >::iterator artifact_iterator;
+ typedef ::std::vector< ::XMLSchema::IDREF< char > >::const_iterator artifact_const_iterator;
+ artifact_iterator begin_artifact ();
+ artifact_iterator end_artifact ();
+ artifact_const_iterator begin_artifact () const;
+ artifact_const_iterator end_artifact () const;
+ void add_artifact (::XMLSchema::IDREF< char > const& );
+
+ protected:
+ ::std::vector< ::XMLSchema::IDREF< char > > artifact_;
+
+ // execParameter
+ //
+ public:
+ bool execParameter_p () const;
+ ::CIAO::Config_Handlers::Property const& execParameter () const;
+ ::CIAO::Config_Handlers::Property& execParameter ();
+ void execParameter (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > execParameter_;
+
+ // deployRequirement
+ //
+ public:
+ bool deployRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& deployRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& deployRequirement ();
+ void deployRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
+
+ // id
+ //
+ public:
+ bool id_p () const;
+ ::XMLSchema::ID< char > const& id () const;
+ ::XMLSchema::ID< char >& id ();
+ void id (::XMLSchema::ID< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::ID< char > > id_;
+
+ public:
+ MonolithicDeploymentDescription ();
+ MonolithicDeploymentDescription (::XSCRT::XML::Element< char > const&);
+ MonolithicDeploymentDescription (MonolithicDeploymentDescription const& s);
+
+ MonolithicDeploymentDescription&
+ operator= (MonolithicDeploymentDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ResourceUsageKind : public ::XSCRT::Type
+ {
+ public:
+ ResourceUsageKind ();
+ ResourceUsageKind (::XSCRT::XML::Element< char > const&);
+ ResourceUsageKind (::XSCRT::XML::Attribute< char > const&);
+
+ static ResourceUsageKind const None;
+ static ResourceUsageKind const InstanceUsesResource;
+ static ResourceUsageKind const ResourceUsesInstance;
+ static ResourceUsageKind const PortUsesResource;
+ static ResourceUsageKind const ResourceUsesPort;
+
+ enum Value
+ {
+ None_l,
+ InstanceUsesResource_l,
+ ResourceUsesInstance_l,
+ PortUsesResource_l,
+ ResourceUsesPort_l,
+ };
+
+
+ Value
+ integral () const;
+
+ friend bool
+ operator== (ResourceUsageKind const& a, ResourceUsageKind const& b);
+
+ friend bool
+ operator!= (ResourceUsageKind const& a, ResourceUsageKind const& b);
+
+ private:
+ ResourceUsageKind (Value v);
+
+ Value v_;
+ };
+
+ class InstanceResourceDeploymentDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // resourceUsage
+ //
+ public:
+ ::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage () const;
+ ::CIAO::Config_Handlers::ResourceUsageKind& resourceUsage ();
+ void resourceUsage (::CIAO::Config_Handlers::ResourceUsageKind const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ResourceUsageKind > resourceUsage_;
+
+ // requirementName
+ //
+ public:
+ ::XMLSchema::string< char > const& requirementName () const;
+ ::XMLSchema::string< char >& requirementName ();
+ void requirementName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requirementName_;
+
+ // resourceName
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceName () const;
+ ::XMLSchema::string< char >& resourceName ();
+ void resourceName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceName_;
+
+ // resourceValue
+ //
+ public:
+ ::CIAO::Config_Handlers::Any const& resourceValue () const;
+ ::CIAO::Config_Handlers::Any& resourceValue ();
+ void resourceValue (::CIAO::Config_Handlers::Any const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Any > resourceValue_;
+
+ public:
+ InstanceResourceDeploymentDescription ();
+ InstanceResourceDeploymentDescription (::XSCRT::XML::Element< char > const&);
+ InstanceResourceDeploymentDescription (InstanceResourceDeploymentDescription const& s);
+
+ InstanceResourceDeploymentDescription&
+ operator= (InstanceResourceDeploymentDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class InstanceDeploymentDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // node
+ //
+ public:
+ ::XMLSchema::string< char > const& node () const;
+ ::XMLSchema::string< char >& node ();
+ void node (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > node_;
+
+ // source
+ //
+ public:
+ ::XMLSchema::string< char > const& source () const;
+ ::XMLSchema::string< char >& source ();
+ void source (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > source_;
+
+ // implementation
+ //
+ public:
+ ::XMLSchema::IDREF< char > const& implementation () const;
+ ::XMLSchema::IDREF< char >& implementation ();
+ void implementation (::XMLSchema::IDREF< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::IDREF< char > > implementation_;
+
+ // configProperty
+ //
+ public:
+ bool configProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& configProperty () const;
+ ::CIAO::Config_Handlers::Property& configProperty ();
+ void configProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > configProperty_;
+
+ // deployedResource
+ //
+ public:
+ bool deployedResource_p () const;
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& deployedResource () const;
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription& deployedResource ();
+ void deployedResource (::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > deployedResource_;
+
+ // deployedSharedResource
+ //
+ public:
+ bool deployedSharedResource_p () const;
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& deployedSharedResource () const;
+ ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription& deployedSharedResource ();
+ void deployedSharedResource (::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > deployedSharedResource_;
+
+ // id
+ //
+ public:
+ bool id_p () const;
+ ::XMLSchema::ID< char > const& id () const;
+ ::XMLSchema::ID< char >& id ();
+ void id (::XMLSchema::ID< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::ID< char > > id_;
+
+ public:
+ InstanceDeploymentDescription ();
+ InstanceDeploymentDescription (::XSCRT::XML::Element< char > const&);
+ InstanceDeploymentDescription (InstanceDeploymentDescription const& s);
+
+ InstanceDeploymentDescription&
+ operator= (InstanceDeploymentDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class CCMComponentPortKind : public ::XSCRT::Type
+ {
+ public:
+ CCMComponentPortKind ();
+ CCMComponentPortKind (::XSCRT::XML::Element< char > const&);
+ CCMComponentPortKind (::XSCRT::XML::Attribute< char > const&);
+
+ static CCMComponentPortKind const Facet;
+ static CCMComponentPortKind const SimplexReceptacle;
+ static CCMComponentPortKind const MultiplexReceptacle;
+ static CCMComponentPortKind const EventEmitter;
+ static CCMComponentPortKind const EventPublisher;
+ static CCMComponentPortKind const EventConsumer;
+
+ enum Value
+ {
+ Facet_l,
+ SimplexReceptacle_l,
+ MultiplexReceptacle_l,
+ EventEmitter_l,
+ EventPublisher_l,
+ EventConsumer_l,
+ };
+
+
+ Value
+ integral () const;
+
+ friend bool
+ operator== (CCMComponentPortKind const& a, CCMComponentPortKind const& b);
+
+ friend bool
+ operator!= (CCMComponentPortKind const& a, CCMComponentPortKind const& b);
+
+ private:
+ CCMComponentPortKind (Value v);
+
+ Value v_;
+ };
+
+ class ComponentPortDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // specificType
+ //
+ public:
+ ::XMLSchema::string< char > const& specificType () const;
+ ::XMLSchema::string< char >& specificType ();
+ void specificType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > specificType_;
+
+ // supportedType
+ //
+ public:
+ ::XMLSchema::string< char > const& supportedType () const;
+ ::XMLSchema::string< char >& supportedType ();
+ void supportedType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > supportedType_;
+
+ // provider
+ //
+ public:
+ ::XMLSchema::string< char > const& provider () const;
+ ::XMLSchema::string< char >& provider ();
+ void provider (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > provider_;
+
+ // exclusiveProvider
+ //
+ public:
+ ::XMLSchema::string< char > const& exclusiveProvider () const;
+ ::XMLSchema::string< char >& exclusiveProvider ();
+ void exclusiveProvider (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > exclusiveProvider_;
+
+ // exclusiveUser
+ //
+ public:
+ ::XMLSchema::string< char > const& exclusiveUser () const;
+ ::XMLSchema::string< char >& exclusiveUser ();
+ void exclusiveUser (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > exclusiveUser_;
+
+ // optional
+ //
+ public:
+ ::XMLSchema::string< char > const& optional () const;
+ ::XMLSchema::string< char >& optional ();
+ void optional (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > optional_;
+
+ // kind
+ //
+ public:
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& kind () const;
+ ::CIAO::Config_Handlers::CCMComponentPortKind& kind ();
+ void kind (::CIAO::Config_Handlers::CCMComponentPortKind const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::CCMComponentPortKind > kind_;
+
+ public:
+ ComponentPortDescription ();
+ ComponentPortDescription (::XSCRT::XML::Element< char > const&);
+ ComponentPortDescription (ComponentPortDescription const& s);
+
+ ComponentPortDescription&
+ operator= (ComponentPortDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ComponentPropertyDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // type
+ //
+ public:
+ ::CIAO::Config_Handlers::DataType const& type () const;
+ ::CIAO::Config_Handlers::DataType& type ();
+ void type (::CIAO::Config_Handlers::DataType const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::DataType > type_;
+
+ public:
+ ComponentPropertyDescription ();
+ ComponentPropertyDescription (::XSCRT::XML::Element< char > const&);
+ ComponentPropertyDescription (ComponentPropertyDescription const& s);
+
+ ComponentPropertyDescription&
+ operator= (ComponentPropertyDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ComponentExternalPortEndpoint : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // portName
+ //
+ public:
+ ::XMLSchema::string< char > const& portName () const;
+ ::XMLSchema::string< char >& portName ();
+ void portName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > portName_;
+
+ public:
+ ComponentExternalPortEndpoint ();
+ ComponentExternalPortEndpoint (::XSCRT::XML::Element< char > const&);
+ ComponentExternalPortEndpoint (ComponentExternalPortEndpoint const& s);
+
+ ComponentExternalPortEndpoint&
+ operator= (ComponentExternalPortEndpoint const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class PlanSubcomponentPortEndpoint : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // portName
+ //
+ public:
+ ::XMLSchema::string< char > const& portName () const;
+ ::XMLSchema::string< char >& portName ();
+ void portName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > portName_;
+
+ // provider
+ //
+ public:
+ bool provider_p () const;
+ ::XMLSchema::string< char > const& provider () const;
+ ::XMLSchema::string< char >& provider ();
+ void provider (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > provider_;
+
+ // kind
+ //
+ public:
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& kind () const;
+ ::CIAO::Config_Handlers::CCMComponentPortKind& kind ();
+ void kind (::CIAO::Config_Handlers::CCMComponentPortKind const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::CCMComponentPortKind > kind_;
+
+ // instance
+ //
+ public:
+ ::XMLSchema::IDREF< char > const& instance () const;
+ ::XMLSchema::IDREF< char >& instance ();
+ void instance (::XMLSchema::IDREF< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::IDREF< char > > instance_;
+
+ public:
+ PlanSubcomponentPortEndpoint ();
+ PlanSubcomponentPortEndpoint (::XSCRT::XML::Element< char > const&);
+ PlanSubcomponentPortEndpoint (PlanSubcomponentPortEndpoint const& s);
+
+ PlanSubcomponentPortEndpoint&
+ operator= (PlanSubcomponentPortEndpoint const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ExternalReferenceEndpoint : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // location
+ //
+ public:
+ ::XMLSchema::string< char > const& location () const;
+ ::XMLSchema::string< char >& location ();
+ void location (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > location_;
+
+ public:
+ ExternalReferenceEndpoint ();
+ ExternalReferenceEndpoint (::XSCRT::XML::Element< char > const&);
+ ExternalReferenceEndpoint (ExternalReferenceEndpoint const& s);
+
+ ExternalReferenceEndpoint&
+ operator= (ExternalReferenceEndpoint const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ConnectionResourceDeploymentDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // targetName
+ //
+ public:
+ ::XMLSchema::string< char > const& targetName () const;
+ ::XMLSchema::string< char >& targetName ();
+ void targetName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > targetName_;
+
+ // requirementName
+ //
+ public:
+ ::XMLSchema::string< char > const& requirementName () const;
+ ::XMLSchema::string< char >& requirementName ();
+ void requirementName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requirementName_;
+
+ // resourceName
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceName () const;
+ ::XMLSchema::string< char >& resourceName ();
+ void resourceName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceName_;
+
+ // resourceValue
+ //
+ public:
+ ::CIAO::Config_Handlers::Any const& resourceValue () const;
+ ::CIAO::Config_Handlers::Any& resourceValue ();
+ void resourceValue (::CIAO::Config_Handlers::Any const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Any > resourceValue_;
+
+ public:
+ ConnectionResourceDeploymentDescription ();
+ ConnectionResourceDeploymentDescription (::XSCRT::XML::Element< char > const&);
+ ConnectionResourceDeploymentDescription (ConnectionResourceDeploymentDescription const& s);
+
+ ConnectionResourceDeploymentDescription&
+ operator= (ConnectionResourceDeploymentDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class PlanConnectionDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // source
+ //
+ public:
+ bool source_p () const;
+ ::XMLSchema::string< char > const& source () const;
+ ::XMLSchema::string< char >& source ();
+ void source (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > source_;
+
+ // deployRequirement
+ //
+ public:
+ bool deployRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& deployRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& deployRequirement ();
+ void deployRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
+
+ // externalEndpoint
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint >::iterator externalEndpoint_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint >::const_iterator externalEndpoint_const_iterator;
+ externalEndpoint_iterator begin_externalEndpoint ();
+ externalEndpoint_iterator end_externalEndpoint ();
+ externalEndpoint_const_iterator begin_externalEndpoint () const;
+ externalEndpoint_const_iterator end_externalEndpoint () const;
+ void add_externalEndpoint (::CIAO::Config_Handlers::ComponentExternalPortEndpoint const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint > externalEndpoint_;
+
+ // internalEndpoint
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint >::iterator internalEndpoint_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint >::const_iterator internalEndpoint_const_iterator;
+ internalEndpoint_iterator begin_internalEndpoint ();
+ internalEndpoint_iterator end_internalEndpoint ();
+ internalEndpoint_const_iterator begin_internalEndpoint () const;
+ internalEndpoint_const_iterator end_internalEndpoint () const;
+ void add_internalEndpoint (::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint > internalEndpoint_;
+
+ // externalReference
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint >::iterator externalReference_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint >::const_iterator externalReference_const_iterator;
+ externalReference_iterator begin_externalReference ();
+ externalReference_iterator end_externalReference ();
+ externalReference_const_iterator begin_externalReference () const;
+ externalReference_const_iterator end_externalReference () const;
+ void add_externalReference (::CIAO::Config_Handlers::ExternalReferenceEndpoint const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint > externalReference_;
+
+ // deployedResource
+ //
+ public:
+ bool deployedResource_p () const;
+ ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription const& deployedResource () const;
+ ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription& deployedResource ();
+ void deployedResource (::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription > deployedResource_;
+
+ public:
+ PlanConnectionDescription ();
+ PlanConnectionDescription (::XSCRT::XML::Element< char > const&);
+ PlanConnectionDescription (PlanConnectionDescription const& s);
+
+ PlanConnectionDescription&
+ operator= (PlanConnectionDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ImplementationDependency : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // requiredType
+ //
+ public:
+ ::XMLSchema::string< char > const& requiredType () const;
+ ::XMLSchema::string< char >& requiredType ();
+ void requiredType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requiredType_;
+
+ public:
+ ImplementationDependency ();
+ ImplementationDependency (::XSCRT::XML::Element< char > const&);
+ ImplementationDependency (ImplementationDependency const& s);
+
+ ImplementationDependency&
+ operator= (ImplementationDependency const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class Capability : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // resourceType
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceType () const;
+ ::XMLSchema::string< char >& resourceType ();
+ void resourceType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceType_;
+
+ // property
+ //
+ public:
+ ::CIAO::Config_Handlers::SatisfierProperty const& property () const;
+ ::CIAO::Config_Handlers::SatisfierProperty& property ();
+ void property (::CIAO::Config_Handlers::SatisfierProperty const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierProperty > property_;
+
+ public:
+ Capability ();
+ Capability (::XSCRT::XML::Element< char > const&);
+ Capability (Capability const& s);
+
+ Capability&
+ operator= (Capability const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ImplementationRequirement : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // resourceUsage
+ //
+ public:
+ ::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage () const;
+ ::CIAO::Config_Handlers::ResourceUsageKind& resourceUsage ();
+ void resourceUsage (::CIAO::Config_Handlers::ResourceUsageKind const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ResourceUsageKind > resourceUsage_;
+
+ // resourcePort
+ //
+ public:
+ ::XMLSchema::string< char > const& resourcePort () const;
+ ::XMLSchema::string< char >& resourcePort ();
+ void resourcePort (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourcePort_;
+
+ // componentPort
+ //
+ public:
+ ::XMLSchema::string< char > const& componentPort () const;
+ ::XMLSchema::string< char >& componentPort ();
+ void componentPort (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > componentPort_;
+
+ // resourceType
+ //
+ public:
+ ::XMLSchema::string< char > const& resourceType () const;
+ ::XMLSchema::string< char >& resourceType ();
+ void resourceType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > resourceType_;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // property
+ //
+ public:
+ ::CIAO::Config_Handlers::Property const& property () const;
+ ::CIAO::Config_Handlers::Property& property ();
+ void property (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > property_;
+
+ public:
+ ImplementationRequirement ();
+ ImplementationRequirement (::XSCRT::XML::Element< char > const&);
+ ImplementationRequirement (ImplementationRequirement const& s);
+
+ ImplementationRequirement&
+ operator= (ImplementationRequirement const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ComponentPackageReference : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // requiredUUID
+ //
+ public:
+ ::XMLSchema::string< char > const& requiredUUID () const;
+ ::XMLSchema::string< char >& requiredUUID ();
+ void requiredUUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requiredUUID_;
+
+ // requiredName
+ //
+ public:
+ ::XMLSchema::string< char > const& requiredName () const;
+ ::XMLSchema::string< char >& requiredName ();
+ void requiredName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requiredName_;
+
+ // requiredType
+ //
+ public:
+ ::XMLSchema::string< char > const& requiredType () const;
+ ::XMLSchema::string< char >& requiredType ();
+ void requiredType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > requiredType_;
+
+ public:
+ ComponentPackageReference ();
+ ComponentPackageReference (::XSCRT::XML::Element< char > const&);
+ ComponentPackageReference (ComponentPackageReference const& s);
+
+ ComponentPackageReference&
+ operator= (ComponentPackageReference const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class SubcomponentPortEndpoint : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // portName
+ //
+ public:
+ ::XMLSchema::string< char > const& portName () const;
+ ::XMLSchema::string< char >& portName ();
+ void portName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > portName_;
+
+ // instance
+ //
+ public:
+ ::XMLSchema::IDREF< char > const& instance () const;
+ ::XMLSchema::IDREF< char >& instance ();
+ void instance (::XMLSchema::IDREF< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::IDREF< char > > instance_;
+
+ public:
+ SubcomponentPortEndpoint ();
+ SubcomponentPortEndpoint (::XSCRT::XML::Element< char > const&);
+ SubcomponentPortEndpoint (SubcomponentPortEndpoint const& s);
+
+ SubcomponentPortEndpoint&
+ operator= (SubcomponentPortEndpoint const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class AssemblyConnectionDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // deployRequirement
+ //
+ public:
+ bool deployRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& deployRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& deployRequirement ();
+ void deployRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
+
+ // externalEndpoint
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint >::iterator externalEndpoint_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint >::const_iterator externalEndpoint_const_iterator;
+ externalEndpoint_iterator begin_externalEndpoint ();
+ externalEndpoint_iterator end_externalEndpoint ();
+ externalEndpoint_const_iterator begin_externalEndpoint () const;
+ externalEndpoint_const_iterator end_externalEndpoint () const;
+ void add_externalEndpoint (::CIAO::Config_Handlers::ComponentExternalPortEndpoint const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ComponentExternalPortEndpoint > externalEndpoint_;
+
+ // internalEndpoint
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::SubcomponentPortEndpoint >::iterator internalEndpoint_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::SubcomponentPortEndpoint >::const_iterator internalEndpoint_const_iterator;
+ internalEndpoint_iterator begin_internalEndpoint ();
+ internalEndpoint_iterator end_internalEndpoint ();
+ internalEndpoint_const_iterator begin_internalEndpoint () const;
+ internalEndpoint_const_iterator end_internalEndpoint () const;
+ void add_internalEndpoint (::CIAO::Config_Handlers::SubcomponentPortEndpoint const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::SubcomponentPortEndpoint > internalEndpoint_;
+
+ // externalReference
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint >::iterator externalReference_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint >::const_iterator externalReference_const_iterator;
+ externalReference_iterator begin_externalReference ();
+ externalReference_iterator end_externalReference ();
+ externalReference_const_iterator begin_externalReference () const;
+ externalReference_const_iterator end_externalReference () const;
+ void add_externalReference (::CIAO::Config_Handlers::ExternalReferenceEndpoint const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ExternalReferenceEndpoint > externalReference_;
+
+ public:
+ AssemblyConnectionDescription ();
+ AssemblyConnectionDescription (::XSCRT::XML::Element< char > const&);
+ AssemblyConnectionDescription (AssemblyConnectionDescription const& s);
+
+ AssemblyConnectionDescription&
+ operator= (AssemblyConnectionDescription const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // BASIC_DEPLOYMENT_DATA_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.cpp
new file mode 100644
index 00000000000..205ad62a83a
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.cpp
@@ -0,0 +1,40 @@
+// $Id$
+
+#include "Basic_Handler.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+Basic_Handler::Basic_Handler (DOMDocument* doc, unsigned long filter)
+ : traverse_ (doc),
+ doc_ (doc),
+ root_ (doc->getDocumentElement()),
+ filter_ (filter),
+ iter_ (traverse_->createNodeIterator (this->root_,
+ this->filter_,
+ 0,
+ true)),
+ release_ (true),
+ index_ (0)
+{
+}
+
+Basic_Handler::Basic_Handler (DOMNodeIterator* iter, bool release)
+ : traverse_ (0), doc_ (0), root_ (0), filter_ (0), iter_ (iter),
+ release_ (release)
+{
+}
+
+Basic_Handler::Basic_Handler (DOMDocument* doc, DOMNodeIterator* iter,
+ bool release)
+ : traverse_ (0), doc_ (doc), root_ (0), filter_ (0), iter_ (iter),
+ release_ (release)
+{
+}
+
+Basic_Handler::~Basic_Handler()
+{
+ if (this->release_)
+ this->iter_->release();
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.h
new file mode 100644
index 00000000000..a8d31ea54f1
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Basic_Handler.h
@@ -0,0 +1,93 @@
+//==================================================================
+/**
+ * @file Basic_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <emre.turkay@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef BASIC_HANDLER_H
+#define BASIC_HANDLER_H
+
+#include "Config.h"
+
+#include "ace/SString.h"
+#include "ace/Null_Mutex.h"
+#include "ace/Hash_Map_Manager.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/dom/DOM.hpp>
+
+using xercesc::DOMDocument;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNode;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class Basic_Handler
+ *
+ * @brief The base class for all the Handler classes
+ *
+ * This class provides the functionalities common to all handler classes.
+ * Keeps variables for basic XML document handling,
+ * initialization/uninitialization,
+ * and required get/set methods.
+ */
+
+class Config_Handler_Export Basic_Handler {
+public:
+ typedef ACE_Hash_Map_Manager<ACE_TString, int, ACE_Null_Mutex> REF_MAP;
+ typedef ACE_Hash_Map_Iterator<ACE_TString, int, ACE_Null_Mutex> REF_ITER;
+ typedef ACE_Hash_Map_Manager<int, ACE_TString, ACE_Null_Mutex> IDREF_MAP;
+
+ Basic_Handler (DOMDocument* doc, unsigned long filter_);
+
+ Basic_Handler (DOMNodeIterator* iter, bool release = false);
+
+ Basic_Handler (DOMDocument* doc, DOMNodeIterator* iter,
+ bool release = false);
+
+ ~Basic_Handler (void);
+
+ REF_MAP& id_map()
+ {
+ return this->id_map_;
+ }
+
+ void set_iter (DOMNodeIterator* iter)
+ {
+ iter_ = iter;
+ }
+
+ void set_doc (DOMDocument* doc)
+ {
+ doc_ = doc;
+ }
+
+protected:
+ DOMDocumentTraversal* traverse_;
+
+ DOMDocument* doc_;
+
+ DOMNode* root_;
+
+ unsigned long filter_;
+
+ DOMNodeIterator* iter_;
+
+ bool release_;
+
+ int index_;
+
+ REF_MAP id_map_;
+
+ IDREF_MAP idref_map_;
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#endif // BASIC_HANDLER_H
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.cpp
new file mode 100644
index 00000000000..1f6464e6102
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.cpp
@@ -0,0 +1,310 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ERE_Handler.h"
+#include "CEPE_Handler.h"
+#include "CPR_Handler.h"
+#include "CAD_Handler.h"
+#include "Property_Handler.h"
+#include "Requirement_Handler.h"
+#include "CompPkgDesc_Handler.h"
+#include "Utils.h"
+#include "Process_Element.h"
+#include <iostream>
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the connection resource deployment description and populate it
+void CAD_Handler::process_ComponentAssemblyDescription
+ (::Deployment::ComponentAssemblyDescription& cad)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ComponentAssemblyDescription")))
+ {
+ }
+ else if
+ (process_sequence_local
+ <Deployment::SubcomponentInstantiationDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "instance", cad.instance,
+ this, &CAD_Handler::process_instance));
+ else if
+ (process_sequence_local<Deployment::AssemblyConnectionDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "connection", cad.connection,
+ this, &CAD_Handler::process_connection));
+ else if
+ (process_sequence_local<Deployment::AssemblyPropertyMapping>
+ (this->doc_, this->iter_, node,
+ node_name, "externalProperty", cad.externalProperty,
+ this, &CAD_Handler::process_property));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+
+ this->update_spe_refs (cad);
+ this->update_spr_refs (cad);
+
+ return;
+}
+
+void CAD_Handler::update_spe_refs (Deployment::
+ ComponentAssemblyDescription& cad)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < cad.connection.length (); ++x)
+ {
+ for (y = 0; y < cad.connection[x].internalEndpoint.length (); ++y)
+ {
+ ref_value = cad.connection[x].internalEndpoint[y].instanceRef;
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, value) == 0)
+ {
+ cad.connection[x].internalEndpoint[y].instanceRef= value;
+ }
+ }
+ }
+ }
+}
+
+void CAD_Handler::update_spr_refs (Deployment::
+ ComponentAssemblyDescription& cad)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < cad.externalProperty.length (); ++x)
+ {
+ for (y = 0; y < cad.externalProperty[x].delegatesTo.length (); ++y)
+ {
+ ref_value = cad.externalProperty[x].delegatesTo[y].instanceRef;
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, value) == 0)
+ {
+ cad.externalProperty[x].delegatesTo[y].instanceRef = value;
+ }
+ }
+ }
+ }
+}
+
+void CAD_Handler::process_instance (DOMNodeIterator* iter,
+ Deployment::
+ SubcomponentInstantiationDescription& sid)
+{
+ char* root_node_name_ch = XMLString::transcode
+ (this->doc_->getDocumentElement ()->getNodeName ());
+ ACE_TString root_node_name (root_node_name_ch);
+
+ XMLString::release (&root_node_name_ch);
+
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:SubcomponentInstantiationDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", sid.name));
+ else if
+ (process_sequence_remote<Deployment::ComponentPackageDescription,
+ CompPkgDesc_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "package", sid.package,
+ &CompPkgDesc_Handler::process_ComponentPackageDescription,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "configProperty", sid.configProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Requirement>
+ (this->doc_, this->iter_, node,
+ node_name, "selectRequirement", sid.selectRequirement,
+ &Requirement_Handler::process_Requirement,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::ComponentPackageReference,
+ CPR_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "reference", sid.reference,
+ &CPR_Handler::process_ComponentPackageReference, this->id_map_));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void CAD_Handler::process_connection (DOMNodeIterator* iter,
+ Deployment::
+ AssemblyConnectionDescription& acd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:AssemblyConnectionDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", acd.name));
+ else if
+ (process_sequence_common<Deployment::Requirement>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "deployRequirement", acd.deployRequirement,
+ &Requirement_Handler::process_Requirement,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::ComponentExternalPortEndpoint>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "externalEndpoint", acd.externalEndpoint,
+ &CEPE_Handler::process_ComponentExternalPortEndpoint,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::SubcomponentPortEndpoint>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "internalEndpoint", acd.internalEndpoint,
+ this, &CAD_Handler::process_spe));
+ else if
+ (process_sequence_common<Deployment::ExternalReferenceEndpoint>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "externalReference", acd.externalReference,
+ &ERE_Handler::process_ExternalReferenceEndpoint,
+ this->id_map_));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void CAD_Handler::process_spe (DOMNodeIterator* iter,
+ Deployment::SubcomponentPortEndpoint& spe)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:SubcomponentPortEndpoint")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "portName", spe.portName));
+ else if
+ (process_reference(node, node_name, "instance",
+ spe.instanceRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void CAD_Handler::process_spr (DOMNodeIterator* iter,
+ Deployment::SubcomponentPropertyReference& spr)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:SubcomponentPropertyReference")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "propertyName", spr.propertyName));
+ else if
+ (process_reference(node, node_name, "instance",
+ spr.instanceRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void CAD_Handler::process_property(DOMNodeIterator* iter,
+ Deployment::AssemblyPropertyMapping& apm)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:AssemblyPropertyMapping")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", apm.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "externalName", apm.externalName));
+ else if
+ (process_sequence_local<Deployment::SubcomponentPropertyReference>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "delegatesTo", apm.delegatesTo,
+ this, &CAD_Handler::process_spr));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.h
new file mode 100644
index 00000000000..515a59d70c2
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CAD_Handler.h
@@ -0,0 +1,129 @@
+//==================================================================
+/**
+ * @file CAD_Handler.h
+ *
+ * $Id$
+ *
+ * @author Aniruddha S. Gokhale <gokhale@dre.vanderbilt.edu>
+ */
+//=====================================================================
+#ifndef CAD_HANDLER_H
+#define CAD_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Basic_Handler.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class CAD_Handler
+ *
+ * @brief Handler class for <ComponentAssemblyDescription> type
+ *
+ * This class is within the Component Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the descriptor files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export CAD_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ CAD_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ CAD_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ CAD_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the component assembly description
+ void process_ComponentAssemblyDescription (::Deployment::ComponentAssemblyDescription &cad);
+
+ /// process instance
+ void process_instance (DOMNodeIterator* iter,
+ Deployment::SubcomponentInstantiationDescription& sid);
+
+ /// process connection element
+ void process_connection (DOMNodeIterator* iter,
+ Deployment::AssemblyConnectionDescription& acd);
+
+ /// process property element
+ void process_property (DOMNodeIterator* iter,
+ Deployment::AssemblyPropertyMapping& acd);
+
+ /// process spe element
+ void process_spe (DOMNodeIterator* iter,
+ Deployment::SubcomponentPortEndpoint& spe);
+
+ /// process spr element
+ void process_spr (DOMNodeIterator* iter,
+ Deployment::SubcomponentPropertyReference& spr);
+
+ /// process CPD
+ void process_package (DOMNodeIterator* iter,
+ Deployment::ComponentPackageDescription& sid_package);
+
+ /// update spe refs
+ void update_spe_refs (Deployment::ComponentAssemblyDescription& cad);
+
+ /// update spr refs
+ void update_spr_refs (Deployment::ComponentAssemblyDescription& cad);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* CAD_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.cpp
new file mode 100644
index 00000000000..27152ba8c1d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.cpp
@@ -0,0 +1,30 @@
+//$Id$
+
+#include "CEPE_Handler.h"
+#include "tao/Exception.h"
+#include "Utils.h"
+
+using CIAO::Config_Handler::Utils;
+
+void
+CIAO::Config_Handler::CEPE_Handler::
+process_ComponentExternalPortEndpoint (DOMNodeIterator * iter,
+ Deployment::ComponentExternalPortEndpoint
+ &ret_struct)
+{
+ //Check if the Schema IDs for both the elements match
+ DOMNode * node = iter->nextNode ();
+ XStr name (node->getNodeName ());
+
+ if (name != XStr (ACE_TEXT ("portName")))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handlers:: \
+ CEPE_Handler::process_ComponentExtPortEndPoint \
+ element mismatch expected <portName>"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Populate the structure
+ ret_struct.portName = Utils::parse_string (iter);
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.h
new file mode 100644
index 00000000000..18eabeff80e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CEPE_Handler.h
@@ -0,0 +1,62 @@
+//==================================================================
+/**
+ * @file CEPE_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+#ifndef CEPE_HANDLER_H
+#define CEPE_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Config_Handler_export.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class ID_Handler
+ *
+ * @brief Handler class for <ComponentExternalPortEndpoint> type
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the descriptor files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+ class Config_Handler_Export CEPE_Handler
+ {
+ public:
+ static void
+ process_ComponentExternalPortEndpoint (DOMNodeIterator * iter,
+ Deployment::ComponentExternalPortEndpoint &ret_struct);
+ // process <ComponentExternalPortEndPoint> definitions in the descriptor
+ // files
+
+ };
+ }
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* CEPE_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.cpp
new file mode 100644
index 00000000000..0326581ff18
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.cpp
@@ -0,0 +1,76 @@
+//$Id$
+
+#include "CPK_Handler.h"
+#include "Utils.h"
+#include "tao/Exception.h"
+#include "ace/OS_NS_string.h"
+
+using CIAO::Config_Handler::Utils;
+
+void
+CIAO::Config_Handler::CPK_Handler::
+process_CCMComponentPortKind (DOMNodeIterator * iter,
+ Deployment::CCMComponentPortKind &kind)
+{
+ char* facet = XMLString::transcode (XStr ("Facet"));
+ char* simplex_receptacle = XMLString::transcode (XStr ("SimplexReceptacle"));
+ char* multiplex_receptacle = XMLString::transcode
+ (XStr ("MultiplexReceptacle"));
+ char* event_emitter = XMLString::transcode (XStr ("EventEmitter"));
+ char* event_publisher = XMLString::transcode (XStr ("EventPublisher"));
+ char* event_consumer = XMLString::transcode (XStr ("EventConsumer"));
+ char * temp = Utils::parse_string (iter);
+ XStr kind_str = XStr (temp);
+ XMLString::release (&temp);
+
+ char* kind_str_tr = XMLString::transcode (kind_str);
+
+ if ((ACE_OS::strcmp (kind_str_tr, facet)) == 0)
+ {
+ kind = Deployment::Facet;
+ }
+ else if ((ACE_OS::strcmp (kind_str_tr, simplex_receptacle)) == 0)
+ {
+ kind = Deployment::SimplexReceptacle;
+ }
+ else if ((ACE_OS::strcmp (kind_str_tr, multiplex_receptacle)) == 0)
+ {
+ kind = Deployment::MultiplexReceptacle;
+ }
+ else if ((ACE_OS::strcmp (kind_str_tr, event_emitter)) == 0)
+ {
+ kind = Deployment::EventEmitter;
+ }
+ else if ((ACE_OS::strcmp (kind_str_tr, event_publisher)) == 0)
+ {
+ kind = Deployment::EventPublisher;
+ }
+ else if ((ACE_OS::strcmp (kind_str_tr, event_consumer)) == 0)
+ {
+ kind = Deployment::EventConsumer;
+ }
+ else
+ {
+ // Something wrong here.. Throw exception
+ XMLString::release (&kind_str_tr);
+ XMLString::release (&facet);
+ XMLString::release (&simplex_receptacle);
+ XMLString::release (&multiplex_receptacle);
+ XMLString::release (&event_emitter);
+ XMLString::release (&event_publisher);
+ XMLString::release (&event_consumer);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handler::CPK_Handler::process_CCMComponentPortKing \
+ illegal <CCMComponentPortKind> value found \n"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ XMLString::release (&kind_str_tr);
+ XMLString::release (&facet);
+ XMLString::release (&simplex_receptacle);
+ XMLString::release (&multiplex_receptacle);
+ XMLString::release (&event_emitter);
+ XMLString::release (&event_publisher);
+ XMLString::release (&event_consumer);
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.h
new file mode 100644
index 00000000000..2c34055e08e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPK_Handler.h
@@ -0,0 +1,57 @@
+//==================================================================
+/**
+ * @file CPK_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <emre.turkay@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef CPK_HANDLER_H
+#define CPK_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class CPK_Handler
+ *
+ * @brief Handler class for <CCMComponentPortKind> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Dependency types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export CPK_Handler
+ {
+ public:
+ static void process_CCMComponentPortKind (DOMNodeIterator * iter,
+ Deployment::CCMComponentPortKind &kind);
+ // process elements of type CCMComponentPortKind definitions in
+ // the descriptor files
+
+ };
+ }
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* CPK_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.cpp
new file mode 100644
index 00000000000..424e6246e28
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.cpp
@@ -0,0 +1,40 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "CPR_Handler.h"
+#include "Utils.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the connection resource deployment description and populate it
+void CPR_Handler::process_ComponentPackageReference
+(::Deployment::ComponentPackageReference &cpr)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (false);
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "requiredUUID",
+ cpr.requiredUUID));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "requiredName", cpr.requiredName));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "requiredType", cpr.requiredType));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.h
new file mode 100644
index 00000000000..8e9c8132f17
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CPR_Handler.h
@@ -0,0 +1,87 @@
+//==================================================================
+/**
+ * @file CPR_Handler.h
+ *
+ * $Id$
+ *
+ * @author Aniruddha S. Gokhale <gokhale@dre.vanderbilt.edu>
+ */
+//=====================================================================
+#ifndef CPR_HANDLER_H
+#define CPR_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+#include "Basic_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class CPR_Handler
+ *
+ * @brief Handler class for <ComponentPackageReference> type
+ *
+ * This class is within the Execution Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the descriptor files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export CPR_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ CPR_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ CPR_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ CPR_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the component package reference
+ void process_ComponentPackageReference (::Deployment::ComponentPackageReference &cpr);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* CPR_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.cpp
new file mode 100644
index 00000000000..d357bc03ec8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.cpp
@@ -0,0 +1,57 @@
+//==================================================================
+/**
+ * @file Cap_Handler.cpp
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//==================================================================
+
+#include "Cap_Handler.h"
+#include "SP_Handler.h"
+#include "tao/Exception.h"
+#include "Utils.h"
+#include <iostream>
+#include "string.h"
+#include "Utils.h"
+#include "Process_Element.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+void
+CAP_Handler::process_Capability (Deployment::Capability &cap)
+{
+ //Check if the Schema IDs for both the elements match
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName ());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:Capability")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "name", cap.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (this->iter_, node_name, "resourceType",
+ cap.resourceType));
+ else if
+ (process_sequence_common<Deployment::SatisfierProperty>
+ (this->doc_, this->iter_, node,
+ node_name, "property", cap.property,
+ &SP_Handler::process_SatisfierProperty,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ break;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.h
new file mode 100644
index 00000000000..f680961f75d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Cap_Handler.h
@@ -0,0 +1,97 @@
+//==================================================================
+/**
+ * @file Cap_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//==================================================================
+
+#ifndef CAP_HANDLER_H
+#define CAP_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class CAP_Handler
+ *
+ * @brief Handler class for <Capability> type
+ *
+ * This class defines handler methods to parse Capability
+ * types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+class Config_Handler_Export CAP_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ CAP_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ CAP_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ CAP_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ void process_Capability (Deployment::Capability &ret_struct);
+ // process elements of type Capability definitions in
+ // the descriptor files
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* ID_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.cpp
new file mode 100644
index 00000000000..afccc0c5f0b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.cpp
@@ -0,0 +1,98 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Property_Handler.h"
+#include "Requirement_Handler.h"
+#include "CAD_Handler.h"
+#include "MID_Handler.h"
+#include "ID_Handler.h"
+#include "Cap_Handler.h"
+#include "CompIntrDesc_Handler.h"
+#include "CompImplDesc_Handler.h"
+#include "Utils.h"
+#include "Process_Element.h"
+#include <iostream>
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the component implementation description and populate it
+void CompImplDesc_Handler::process_ComponentImplementationDescription
+ (::Deployment::ComponentImplementationDescription &cid)
+{
+ char* root_node_name_ch = XMLString::transcode
+ (this->doc_->getDocumentElement ()->getNodeName ());
+ ACE_TString root_node_name (root_node_name_ch);
+ XMLString::release (&root_node_name_ch);
+
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ComponentImplementationDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", cid.label));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", cid.UUID));
+ else if
+ (process_element_remote<Deployment::ComponentInterfaceDescription,
+ CompIntrDesc_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "implements", cid.implements,
+ &CompIntrDesc_Handler::process_ComponentInterfaceDescription,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::ComponentAssemblyDescription,
+ CAD_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "assemblyImpl", cid.assemblyImpl,
+ &CAD_Handler::process_ComponentAssemblyDescription,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::
+ MonolithicImplementationDescription,
+ MID_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "monolithicImpl", cid.monolithicImpl,
+ &MID_Handler::process_MonolithicImplementationDescription,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "configProperty", cid.configProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::Capability, CAP_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "capability", cid.capability,
+ &CAP_Handler::process_Capability, this->id_map_));
+ else if
+ (process_sequence_common<Deployment::ImplementationDependency>
+ (this->doc_, this->iter_, node,
+ node_name, "dependsOn", cid.dependsOn,
+ &ID_Handler::process_ImplementationDependency,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "infoProperty", cid.infoProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+ return;
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.h
new file mode 100644
index 00000000000..c7918732628
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.h
@@ -0,0 +1,87 @@
+//==================================================================
+/**
+ * @file CompImplDesc_Handler.h
+ *
+ * $Id$
+ *
+ * @author Aniruddha S. Gokhale <gokhale@dre.vanderbilt.edu>
+ */
+//=====================================================================
+#ifndef CompImplDesc_HANDLER_H
+#define CompImplDesc_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class CompImplDesc_Handler
+ *
+ * @brief Handler class for <ComponentImplementationDescription> type
+ *
+ * This class is within the Execution Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the description files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export CompImplDesc_Handler: public Basic_Handler
+{
+ public:
+
+ /// constructor
+ CompImplDesc_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ CompImplDesc_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ CompImplDesc_Handler (DOMDocument* doc,
+ DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the monolithic deployment description
+ void process_ComponentImplementationDescription (::Deployment::ComponentImplementationDescription &cid);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* CompImplDesc_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.cpp
new file mode 100644
index 00000000000..25ca99733fc
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.cpp
@@ -0,0 +1,164 @@
+//$Id$
+
+#ifndef CompIntrDesc_HANDLER_C
+#define CompIntrDesc_HANDLER_C
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Utils.h"
+#include "Process_Element.h"
+#include "Property_Handler.h"
+#include "CompIntrDesc_Handler.h"
+#include "DT_Handler.h"
+#include "CPK_Handler.h"
+#include <iostream>
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void CompIntrDesc_Handler::process_ComponentInterfaceDescription
+(::Deployment::ComponentInterfaceDescription &ccd)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ComponentInterfaceDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", ccd.label));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", ccd.UUID));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "specificType",
+ ccd.specificType));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (this->iter_, node_name, "supportedType",
+ ccd.supportedType));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (this->iter_, node_name, "idlFile", ccd.idlFile));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "configProperty", ccd.configProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::ComponentPortDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "port", ccd.port,
+ this, &CompIntrDesc_Handler::process_port));
+ else if
+ (process_sequence_local<Deployment::ComponentPropertyDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "property", ccd.property,
+ this, &CompIntrDesc_Handler::process_comp_property));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "infoProperty", ccd.infoProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+ return;
+}
+
+/// process component property element
+void CompIntrDesc_Handler::process_comp_property (DOMNodeIterator* iter,
+ Deployment::
+ ComponentPropertyDescription&
+ property)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ComponentPropertyDescription")))
+ {
+ }
+ else if (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", property.name));
+ else if (node_name == XStr (ACE_TEXT ("type")))
+ {
+ int argc = 0;
+ char ** argv = 0;
+ CORBA::ORB_ptr orb = CORBA::ORB_init (argc, argv, "");
+ DT_Handler::process_DataType (iter, property.type.out (), orb);
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+/// process port element
+void CompIntrDesc_Handler::process_port (DOMNodeIterator* iter,
+ Deployment::
+ ComponentPortDescription& port)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ComponentPortDescription")))
+ {
+ }
+ else if (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", port.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "specificType", port.specificType));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "supportedType", port.supportedType));
+ else if
+ (CIAO::Config_Handler::Utils::process_boolean
+ (iter, node_name, "provider", port.provider));
+ else if
+ (CIAO::Config_Handler::Utils::process_boolean
+ (iter, node_name, "exclusiveProvider",
+ port.exclusiveProvider));
+ else if
+ (CIAO::Config_Handler::Utils::process_boolean
+ (iter, node_name, "exclusiveUser", port.exclusiveUser));
+ else if
+ (CIAO::Config_Handler::Utils::process_boolean
+ (iter, node_name, "optional", port.optional));
+ else if (node_name == XStr(ACE_TEXT("kind")))
+ {
+ CPK_Handler::process_CCMComponentPortKind (iter, port.kind);
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
+
+#endif /* CompIntrDesc_HANDLER_C */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.h
new file mode 100644
index 00000000000..7c4e2e22898
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompIntrDesc_Handler.h
@@ -0,0 +1,89 @@
+//$Id$
+
+#ifndef COMPINTRDESC_HANDLER_H
+#define COMPINTRDESC_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+#include "Basic_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+class Config_Handler_Export CompIntrDesc_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ CompIntrDesc_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ CompIntrDesc_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { };
+
+ /// constructor
+ CompIntrDesc_Handler (DOMDocument* doc,
+ DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { };
+
+ /// Process the component package description
+ void process_ComponentInterfaceDescription (::Deployment::ComponentInterfaceDescription &CompIntrDesc);
+
+protected:
+ /// process port element
+ void process_port (DOMNodeIterator* iter,
+ Deployment::ComponentPortDescription& port);
+
+ /// process component property element
+ void process_comp_property (DOMNodeIterator* iter,
+ Deployment::ComponentPropertyDescription& property);
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif // COMPINTRDESC_HANDLER_H
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.cpp
new file mode 100644
index 00000000000..c60201535cb
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.cpp
@@ -0,0 +1,75 @@
+// $Id$
+
+#ifndef COMPPKGDESC_HANDLER_C
+#define COMPPKGDESC_HANDLER_C
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Utils.h"
+#include "CompPkgDesc_Handler.h"
+#include "Property_Handler.h"
+#include "PCI_Handler.h"
+#include "CompIntrDesc_Handler.h"
+#include "Process_Element.h"
+#include <iostream>
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void CompPkgDesc_Handler::process_ComponentPackageDescription
+(::Deployment::ComponentPackageDescription &comppkgdesc)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ComponentPackageDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", comppkgdesc.label));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", comppkgdesc.UUID));
+ else if
+ (process_element_remote<Deployment::ComponentInterfaceDescription,
+ CompIntrDesc_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "realizes", comppkgdesc.realizes,
+ &CompIntrDesc_Handler::process_ComponentInterfaceDescription,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "configProperty", comppkgdesc.configProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::PackagedComponentImplementation,
+ PCI_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "implementation", comppkgdesc.implementation,
+ &PCI_Handler::process_PackagedComponentImplementation,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "infoProperty", comppkgdesc.infoProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
+
+#endif /* COMPPKGDESC_HANDLER_C */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.h
new file mode 100644
index 00000000000..9cd81ffa5f5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/CompPkgDesc_Handler.h
@@ -0,0 +1,88 @@
+//==================================================================
+/**
+ * @file CompPkgDesc_Handler.h
+ *
+ * $Id$
+ *
+ * @author George Edwards <g.edwards@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef COMPPKGDESC_HANDLER_H
+#define COMPPKGDESC_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+#include "Basic_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class CompPkgDesc_Handler
+ *
+ * @brief Handler class for <ComponentPackageDescription> type
+ *
+ * This class is within the Component Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the description files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export CompPkgDesc_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ CompPkgDesc_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ CompPkgDesc_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ CompPkgDesc_Handler (DOMDocument* doc,
+ DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the component package description
+ void process_ComponentPackageDescription (::Deployment::ComponentPackageDescription &comppkgdesc);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* COMPPKGDESC_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Config.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config.h
new file mode 100644
index 00000000000..524679335cf
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config.h
@@ -0,0 +1,17 @@
+//==================================================================
+/**
+ * @file Config.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <emre.turkay@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef CIAO_DANCE_CONFIG_H
+#define CIAO_DANCE_CONFIG_H
+
+#define BEGIN_DEPLOYMENT_NAMESPACE namespace CIAO { namespace Config_Handler {
+#define END_DEPLOYMENT_NAMESPACE } }
+
+#endif // CIAO_DANCE_CONFIG_H
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.cpp
new file mode 100644
index 00000000000..de938a2ce0e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "ace/Log_Msg.h"
+#include "ace/Auto_Ptr.h"
+#include <xercesc/util/XMLString.hpp>
+#include <xercesc/dom/DOMLocator.hpp>
+#include "Config_Error_Handler.h"
+#include "XercesString.h"
+
+using xercesc::XMLString;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ Config_Error_Handler::Config_Error_Handler()
+ : errors_ (false)
+ {}
+
+ Config_Error_Handler::~Config_Error_Handler()
+ {}
+
+
+ bool Config_Error_Handler::handleError (const DOMError& domError)
+ {
+ this->errors_ = true;
+ if (domError.getSeverity() == DOMError::DOM_SEVERITY_WARNING)
+ {
+ ACE_ERROR ((LM_ERROR, "Warning "));
+ }
+ else if (domError.getSeverity() == DOMError::DOM_SEVERITY_ERROR)
+ {
+ ACE_ERROR ((LM_ERROR, "Error "));
+ }
+ else
+ {
+ ACE_ERROR ((LM_ERROR, "FatalError "));
+ }
+
+ char *msg = XMLString::transcode(domError.getMessage());
+ char *url = XMLString::transcode (domError.getLocation()->getURI());
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_msg (msg);
+ ACE_ERROR ((LM_ERROR, "while processing resource '%s', "
+ "Line %d, Position %d : %s\n",
+ url,
+ domError.getLocation()->getLineNumber(),
+ domError.getLocation()->getColumnNumber(),
+ msg));
+ return true;
+ }
+
+ void Config_Error_Handler::resetErrors()
+ {
+ this->errors_ = false;
+ }
+
+ bool Config_Error_Handler::getErrors() const
+ {
+ return this->errors_;
+ }
+ }
+
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.h
new file mode 100644
index 00000000000..ba1b8b5514c
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.h
@@ -0,0 +1,50 @@
+// $Id$
+
+#ifndef CONFIG_ERROR_HANDLER_H
+#define CONFIG_ERROR_HANDLER_H
+
+#include /**/ "ace/pre.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include <xercesc/dom/DOMErrorHandler.hpp>
+#include "Config_Handler_export.h"
+
+using xercesc::DOMErrorHandler;
+using xercesc::DOMError;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ class Config_Handler_Export Config_Error_Handler : public DOMErrorHandler
+ {
+ public:
+
+ Config_Error_Handler ();
+
+ ~Config_Error_Handler ();
+
+ bool handleError (const DOMError& domError);
+
+ void resetErrors ();
+
+ bool getErrors() const;
+
+ private :
+ // Disallow copying
+ Config_Error_Handler (const Config_Error_Handler&);
+ Config_Error_Handler& operator= (const Config_Error_Handler&);
+
+ bool errors_;
+
+ };
+
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* CONFIG_ERROR_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handler_export.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handler_export.h
new file mode 100644
index 00000000000..0c9beba35b9
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handler_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s Config_Handler
+// ------------------------------
+#ifndef CONFIG_HANDLER_EXPORT_H
+#define CONFIG_HANDLER_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (CONFIG_HANDLER_HAS_DLL)
+# define CONFIG_HANDLER_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && CONFIG_HANDLER_HAS_DLL */
+
+#if !defined (CONFIG_HANDLER_HAS_DLL)
+# define CONFIG_HANDLER_HAS_DLL 1
+#endif /* ! CONFIG_HANDLER_HAS_DLL */
+
+#if defined (CONFIG_HANDLER_HAS_DLL) && (CONFIG_HANDLER_HAS_DLL == 1)
+# if defined (CONFIG_HANDLER_BUILD_DLL)
+# define Config_Handler_Export ACE_Proper_Export_Flag
+# define CONFIG_HANDLER_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define CONFIG_HANDLER_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* CONFIG_HANDLER_BUILD_DLL */
+# define Config_Handler_Export ACE_Proper_Import_Flag
+# define CONFIG_HANDLER_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define CONFIG_HANDLER_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* CONFIG_HANDLER_BUILD_DLL */
+#else /* CONFIG_HANDLER_HAS_DLL == 1 */
+# define Config_Handler_Export
+# define CONFIG_HANDLER_SINGLETON_DECLARATION(T)
+# define CONFIG_HANDLER_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* CONFIG_HANDLER_HAS_DLL == 1 */
+
+// Set CONFIG_HANDLER_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (CONFIG_HANDLER_NTRACE)
+# if (ACE_NTRACE == 1)
+# define CONFIG_HANDLER_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define CONFIG_HANDLER_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !CONFIG_HANDLER_NTRACE */
+
+#if (CONFIG_HANDLER_NTRACE == 1)
+# define CONFIG_HANDLER_TRACE(X)
+#else /* (CONFIG_HANDLER_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define CONFIG_HANDLER_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (CONFIG_HANDLER_NTRACE == 1) */
+
+#endif /* CONFIG_HANDLER_EXPORT_H */
+
+// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handlers.mpc b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handlers.mpc
new file mode 100644
index 00000000000..143154079cd
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Config_Handlers.mpc
@@ -0,0 +1,46 @@
+//$Id$
+
+project (Config_Handlers) : ciao_component_dnc, ifr_client, valuetype, xerces, exceptions {
+
+ after += CIAO_DnC_Server
+ sharedname = Config_Handlers
+ dynamicflags = CONFIG_HANDLER_BUILD_DLL
+ libs += CIAO_DnC_Server
+
+ Source_Files {
+ Utils.cpp
+ Any_Handler.cpp
+ Basic_Handler.cpp
+ CAD_Handler.cpp
+ Cap_Handler.cpp
+ CEPE_Handler.cpp
+ CompImplDesc_Handler.cpp
+ CompIntrDesc_Handler.cpp
+ CompPkgDesc_Handler.cpp
+ Config_Error_Handler.cpp
+ CPK_Handler.cpp
+ CPR_Handler.cpp
+ DnC_Dump.cpp
+ Dump_Obj.cpp
+ Domain_Handler.cpp
+ DT_Handler.cpp
+ ERE_Handler.cpp
+ IAD_Handler.cpp
+ ID_Handler.cpp
+ IR_Handler.cpp
+ MID_Handler.cpp
+ NIA_Handler.cpp
+ PC_Handler.cpp
+ PCI_Handler.cpp
+ Plan_Handler.cpp
+ Process_Element.cpp
+ Property_Handler.cpp
+ Requirement_Handler.cpp
+ RS_Handler.cpp
+ RUK_Handler.cpp
+ SP_Handler.cpp
+ SPK_Handler.cpp
+ TPD_Handler.cpp
+ XercesString.cpp
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.cpp
new file mode 100644
index 00000000000..b5515fa225c
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.cpp
@@ -0,0 +1,104 @@
+//$Id$
+
+#include "DT_Handler.h"
+#include "Utils.h"
+#include "tao/AnyTypeCode/TypeCode.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/OS_NS_string.h"
+
+void
+CIAO::Config_Handler::DT_Handler::process_basic_tc (DOMNodeIterator * iter,
+ ::CORBA::TypeCode_ptr &type)
+{
+
+ // For all types defined return the appropriate typecode
+ char * code_value = Utils::parse_string (iter);
+ auto_ptr<char> cleanup_char (code_value);
+
+ // For this piece of code to work, it is necessary that ORB_init
+ // be called by the top level handler which calls the
+ // process_DataType common handler.
+ if (ACE_OS::strcmp (code_value,
+ "tk_null") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_short") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_short);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_long") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_long);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_ushort") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_ushort);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_ulong") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_ulong);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_float") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_float);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_double") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_double);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_boolean") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_boolean);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_char") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_char);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_octet") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_octet);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_string") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_string);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_longlong") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_longlong);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_ulonglong") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_ulonglong);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_longdouble") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_longdouble);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_wchar") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_wchar);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_wstring") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_wstring);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_any") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_any);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_TypeCode") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_TypeCode);
+ else if (ACE_OS::strcmp (code_value,
+ "tk_Object") == 0)
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_Object);
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "Config_Handlers::DT_Handler::process_Datatype \
+ unsupported TCkind value %s encountered \
+ abortingi\n", type));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+}
+
+void
+CIAO::Config_Handler::DT_Handler::process_DataType (DOMNodeIterator * iter,
+ ::CORBA::TypeCode_ptr &type,
+ ::CORBA::ORB_ptr )
+{
+ DOMNode * node = iter->nextNode ();
+ XStr name (node->getNodeName ());
+ if (name == XStr (ACE_TEXT ("kind")))
+ DT_Handler::process_basic_tc (iter, type);
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "Config_Handlers::Property_Handler::process_ \
+ DataType supports only TCKind types\
+ support for recursive types will be added later\n"));
+ ACE_THROW (CORBA::INTERNAL ());
+
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.h
new file mode 100644
index 00000000000..54ab924355a
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/DT_Handler.h
@@ -0,0 +1,73 @@
+//==================================================================
+/**
+ * @file DT_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef DT_HANDLER_H
+#define DT_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "Config_Handler_export.h"
+#include "tao/Basic_Types.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CORBA
+{
+ class ORB;
+ typedef ORB* ORB_ptr;
+}
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class DT_Handler
+ *
+ * @brief Handler class for <type> tag
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the descriptor files. The corresponding CORBA IDL mapped type in this
+ * a CORBA::Typecode is created and returned. Dynamic creation of typecodes
+ * also requires operations defined on the ORB interface, hence the
+ * process_DataType requires an ORB_ptr as a formal parameter.
+ */
+
+ class Config_Handler_Export DT_Handler
+ {
+ public:
+ static void process_DataType (DOMNodeIterator * iter,
+ ::CORBA::TypeCode_ptr &type,
+ ::CORBA::ORB_ptr orb);
+ // process <type> definitions in the descriptor files
+ private:
+ static void process_basic_tc (DOMNodeIterator * iter,
+ ::CORBA::TypeCode_ptr &type);
+ // process <Deployment:TCKind> definitions in the descriptor
+ // files
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* DT_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.cpp
new file mode 100644
index 00000000000..be15143889d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.cpp
@@ -0,0 +1,151 @@
+// $Id$
+#include "Deployment.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ ::CIAO::Config_Handlers::Domain
+ domain (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "domain")
+ {
+ ::CIAO::Config_Handlers::Domain r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::DeploymentPlan
+ deploymentPlan (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "deploymentPlan")
+ {
+ ::CIAO::Config_Handlers::DeploymentPlan r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription
+ implementationArtifactDescription (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "implementationArtifactDescription")
+ {
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription
+ componentInterfaceDescription (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "componentInterfaceDescription")
+ {
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::ComponentImplementationDescription
+ componentImplementationDescription (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "componentImplementationDescription")
+ {
+ ::CIAO::Config_Handlers::ComponentImplementationDescription r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageDescription
+ componentPackageDescription (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "componentPackageDescription")
+ {
+ ::CIAO::Config_Handlers::ComponentPackageDescription r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::PackageConfiguration
+ packageConfiguration (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "packageConfiguration")
+ {
+ ::CIAO::Config_Handlers::PackageConfiguration r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+
+ ::CIAO::Config_Handlers::TopLevelPackageDescription
+ topLevelPackageDescription (xercesc::DOMDocument const* d)
+ {
+ ::XSCRT::XML::Element< char > e (d->getDocumentElement ());
+ if (e.name () == "topLevelPackageDescription")
+ {
+ ::CIAO::Config_Handlers::TopLevelPackageDescription r (e);
+ return r;
+ }
+
+ else
+ {
+ throw 1;
+ }
+ }
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.hpp
new file mode 100644
index 00000000000..575ea151800
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Deployment.hpp
@@ -0,0 +1,68 @@
+// $Id$
+#ifndef DEPLOYMENT_HPP
+#define DEPLOYMENT_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "Basic_Deployment_Data.hpp"
+
+#include "cpd.hpp"
+
+#include "cdd.hpp"
+
+#include "cdp.hpp"
+
+#include "pcd.hpp"
+
+#include "toplevel.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ ::CIAO::Config_Handlers::Domain
+ domain (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::DeploymentPlan
+ deploymentPlan (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription
+ implementationArtifactDescription (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription
+ componentInterfaceDescription (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::ComponentImplementationDescription
+ componentImplementationDescription (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::ComponentPackageDescription
+ componentPackageDescription (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::PackageConfiguration
+ packageConfiguration (xercesc::DOMDocument const*);
+
+ ::CIAO::Config_Handlers::TopLevelPackageDescription
+ topLevelPackageDescription (xercesc::DOMDocument const*);
+ }
+}
+
+#endif // DEPLOYMENT_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.cpp
new file mode 100644
index 00000000000..2763d3390b5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.cpp
@@ -0,0 +1,972 @@
+// $Id$
+
+#include "ace/Log_Msg.h"
+#include "ciao/Deployment_DataC.h"
+#include "DnC_Dump.h"
+#include "DnC_Dump_T.h"
+#include <iostream>
+
+using namespace ::Deployment::DnC_Dump_T;
+namespace Deployment
+{
+ void
+ DnC_Dump::dump (const char* caption, const ::CORBA::StringSeq &str_seq)
+ {
+ CORBA::ULong size = str_seq.length ();
+
+ if (size != 0)
+ {
+ Dump_Obj dump_obj (caption);
+
+ for (CORBA::ULong i = 0; i < size; ++i)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s %d: \n",
+ Dump_Obj::indent(), caption, i));
+ ACE_DEBUG ((LM_DEBUG, "%s %s: \n",
+ Dump_Obj::indent(), str_seq[i].in ()));
+ }
+ }
+ }
+
+ // Dumps a string
+ void DnC_Dump::dump (const char* caption, const TAO_String_Manager& str)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s: %s\n", Dump_Obj::indent(),
+ caption, str.in()));
+ }
+
+ // Dumps a boolean
+ void DnC_Dump::dump (const char* caption, const CORBA::Boolean& val)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s: %s\n", Dump_Obj::indent(),
+ caption, val ? "true" : "false"));
+ }
+
+ /*
+ * Object dump methods
+ */
+
+ // SatisfierProperty
+ void DnC_Dump::dump (const Deployment::SatisfierProperty& sp)
+ {
+ Dump_Obj dump_obj("SatisfierProperty");
+ dump ("name", sp.name);
+
+ ACE_DEBUG ((LM_DEBUG, "%skind: ", Dump_Obj::indent()));
+ switch (sp.kind) {
+ case Quantity: ACE_DEBUG ((LM_DEBUG, "Quantity\n")); break;
+ case Capacity: ACE_DEBUG ((LM_DEBUG, "Capacity\n")); break;
+ case Minimum: ACE_DEBUG ((LM_DEBUG, "Minimum\n")); break;
+ case Maximum: ACE_DEBUG ((LM_DEBUG, "Maximum\n")); break;
+ case Attribute: ACE_DEBUG ((LM_DEBUG, "Attribute\n")); break;
+ case Selection: ACE_DEBUG ((LM_DEBUG, "Selection\n")); break;
+ }
+
+ ACE_DEBUG ((LM_DEBUG, "%svalue:\n", Dump_Obj::indent()));
+ dump (sp.value);
+ }
+
+ // SharedResource
+ void DnC_Dump::dump (const Deployment::SharedResource& sr)
+ {
+ Dump_Obj dump_obj("SharedResource");
+ dump ("name", sr.name);
+ dump ("resourceType", sr.resourceType);
+#if 0
+ dump_ref_seq<Deployment::Domain> ("nodeRef",
+ sr.nodeRef,
+ "Domain",
+ &Domain::node);
+#endif /*if 0*/
+ dump_sequence ("property",
+ sr.property);
+ }
+
+ // Resource
+ void DnC_Dump::dump (const Deployment::Resource& resource)
+ {
+ Dump_Obj dump_obj("Resource");
+ dump ("name", resource.name);
+ dump ("resourceType", resource.resourceType);
+ dump_sequence ("property",
+ resource.property);
+ }
+
+ // Node
+ void DnC_Dump::dump (const Deployment::Node& node)
+ {
+ Dump_Obj dump_obj("Node");
+ dump ("name", node.name);
+ dump ("label", node.label);
+
+#if (_MSC_VER > 1200)
+ dump_ref_seq<Deployment::Domain> (
+ "sharedResourceRef",
+ node.sharedResourceRef, "Domain",
+ &Domain::sharedResource);
+
+ dump_ref_seq<Deployment::Domain> (
+ "connectionRef",
+ node.connectionRef,
+ "Domain",
+ &Domain::interconnect);
+#endif /* _MSC_VER */
+ dump_sequence ("resource",
+ node.resource);
+
+ }
+
+ // Interconnect
+ void DnC_Dump::dump (const Deployment::Interconnect& conn)
+ {
+ Dump_Obj dump_obj("Interconnect");
+ dump ("name", conn.name);
+ dump ("label", conn.label);
+
+#if (_MSC_VER > 1200)
+ dump_ref_seq<Deployment::Domain> (
+ "connectionRef",
+ conn.connectionRef,
+ "Domain",
+ &Domain::bridge);
+
+ dump_ref_seq<Deployment::Domain> (
+ "connectRef",
+ conn.connectRef,
+ "Domain",
+ &Domain::node);
+#endif /*_MSC_VER*/
+
+ dump_sequence ("resource",
+ conn.resource);
+ }
+
+ // Bridge
+ void
+ DnC_Dump::dump (const Deployment::Bridge& bridge)
+ {
+ Dump_Obj dump_obj("Bridge");
+ dump ("name", bridge.name);
+ dump ("label", bridge.label);
+#if (_MSC_VER > 1200)
+
+ dump_ref_seq<Deployment::Domain> (
+ "connectRef",
+ bridge.connectRef,
+ "Domain",
+ &Domain::interconnect);
+#endif /*_MSC_VER*/
+
+ dump_sequence ("resource", bridge.resource);
+ }
+
+ void DnC_Dump::dump (const ::Deployment::Domain &domain)
+ {
+ CORBA::Any val;
+ val <<= domain;
+
+ Dump_Obj dump_obj ("Domain",
+ val);
+
+ dump ("UUID",
+ domain.UUID);
+ dump ("label",
+ domain.label);
+
+ dump_sequence ("sharedResource",
+ domain.sharedResource);
+ dump_sequence ("node",
+ domain.node);
+ dump_sequence ("interconnect",
+ domain.interconnect);
+ dump_sequence ("bridge",
+ domain.bridge);
+
+ dump_sequence ("infoProperty",
+ domain.infoProperty);
+ }
+
+ // ComponentPortDescription
+
+ void DnC_Dump::dump (const ::Deployment::ComponentPortDescription
+ &compportdesc)
+ {
+ Dump_Obj dump_obj("ComponentPortDescription");
+
+ dump ("name", compportdesc.name);
+ dump ("specificType", compportdesc.specificType);
+ dump ("supportedType", compportdesc.supportedType);
+ dump ("provider", compportdesc.provider);
+ dump ("exclusiveProvider", compportdesc.exclusiveProvider);
+ dump ("exclusiveUser", compportdesc.exclusiveUser);
+ dump ("optional", compportdesc.optional);
+
+ ACE_DEBUG ((LM_DEBUG, "%skind: ", Dump_Obj::indent()));
+ switch (compportdesc.kind) {
+ case Facet: ACE_DEBUG ((LM_DEBUG, "Facet\n")); break;
+ case SimplexReceptacle: ACE_DEBUG ((LM_DEBUG, "SimplexReceptacle\n")); break;
+ case MultiplexReceptacle: ACE_DEBUG ((LM_DEBUG, "MultiplexReceptacle\n")); break;
+ case EventEmitter: ACE_DEBUG ((LM_DEBUG, "EventEmitter\n")); break;
+ case EventPublisher: ACE_DEBUG ((LM_DEBUG, "EventPublisher\n")); break;
+ case EventConsumer: ACE_DEBUG ((LM_DEBUG, "EventConsumer\n")); break;
+ }
+ }
+
+ // ComponentPropertyDescription
+
+ void DnC_Dump::dump (const ::Deployment::ComponentPropertyDescription &comppropdesc)
+ {
+ Dump_Obj dump_obj("ComponentPropertyDescription");
+
+ dump ("name", comppropdesc.name);
+
+ ACE_DEBUG ((LM_DEBUG, "%stype: ", Dump_Obj::indent()));
+ switch (comppropdesc.type.in()->kind()) {
+ case ::CORBA::tk_null: ACE_DEBUG ((LM_DEBUG, "tk_null\n")); break;
+ case ::CORBA::tk_void: ACE_DEBUG ((LM_DEBUG, "tk_void\n")); break;
+ case ::CORBA::tk_short: ACE_DEBUG ((LM_DEBUG, "tk_short\n")); break;
+ case ::CORBA::tk_long: ACE_DEBUG ((LM_DEBUG, "tk_long\n")); break;
+ case ::CORBA::tk_ushort: ACE_DEBUG ((LM_DEBUG, "tk_ushort\n")); break;
+ case ::CORBA::tk_ulong: ACE_DEBUG ((LM_DEBUG, "tk_ulong\n")); break;
+ case ::CORBA::tk_float: ACE_DEBUG ((LM_DEBUG, "tk_float\n")); break;
+ case ::CORBA::tk_double: ACE_DEBUG ((LM_DEBUG, "tk_double\n")); break;
+ case ::CORBA::tk_boolean: ACE_DEBUG ((LM_DEBUG, "tk_boolean\n")); break;
+ case ::CORBA::tk_char: ACE_DEBUG ((LM_DEBUG, "tk_char\n")); break;
+ case ::CORBA::tk_octet: ACE_DEBUG ((LM_DEBUG, "tk_octet\n")); break;
+ case ::CORBA::tk_any: ACE_DEBUG ((LM_DEBUG, "tk_any\n")); break;
+ case ::CORBA::tk_TypeCode: ACE_DEBUG ((LM_DEBUG, "tk_TypeCode\n")); break;
+ case ::CORBA::tk_Principal: ACE_DEBUG ((LM_DEBUG, "tk_Principal\n")); break;
+ case ::CORBA::tk_objref: ACE_DEBUG ((LM_DEBUG, "tk_objref\n")); break;
+ case ::CORBA::tk_struct: ACE_DEBUG ((LM_DEBUG, "tk_struct\n")); break;
+ case ::CORBA::tk_union: ACE_DEBUG ((LM_DEBUG, "tk_union\n")); break;
+ case ::CORBA::tk_enum: ACE_DEBUG ((LM_DEBUG, "tk_enum\n")); break;
+ case ::CORBA::tk_string: ACE_DEBUG ((LM_DEBUG, "tk_string\n")); break;
+ case ::CORBA::tk_sequence: ACE_DEBUG ((LM_DEBUG, "tk_sequence\n")); break;
+ case ::CORBA::tk_array: ACE_DEBUG ((LM_DEBUG, "tk_array\n")); break;
+ case ::CORBA::tk_alias: ACE_DEBUG ((LM_DEBUG, "tk_alias\n")); break;
+ case ::CORBA::tk_except: ACE_DEBUG ((LM_DEBUG, "tk_except\n")); break;
+ case ::CORBA::tk_longlong: ACE_DEBUG ((LM_DEBUG, "tk_longlong\n")); break;
+ case ::CORBA::tk_ulonglong: ACE_DEBUG ((LM_DEBUG, "tk_ulonglong\n")); break;
+ case ::CORBA::tk_longdouble: ACE_DEBUG ((LM_DEBUG, "tk_longdouble\n")); break;
+ case ::CORBA::tk_wchar: ACE_DEBUG ((LM_DEBUG, "tk_wchar\n")); break;
+ case ::CORBA::tk_wstring: ACE_DEBUG ((LM_DEBUG, "tk_wstring\n")); break;
+ case ::CORBA::tk_fixed: ACE_DEBUG ((LM_DEBUG, "tk_fixed\n")); break;
+ case ::CORBA::tk_value: ACE_DEBUG ((LM_DEBUG, "tk_value\n")); break;
+ case ::CORBA::tk_value_box: ACE_DEBUG ((LM_DEBUG, "tk_value_box\n")); break;
+ case ::CORBA::tk_native: ACE_DEBUG ((LM_DEBUG, "tk_native\n")); break;
+ case ::CORBA::tk_abstract_interface: ACE_DEBUG ((LM_DEBUG, "tk_abstract_interface\n")); break;
+ case ::CORBA::tk_local_interface: ACE_DEBUG ((LM_DEBUG, "tk_local_interface\n")); break;
+ case ::CORBA::tk_component: ACE_DEBUG ((LM_DEBUG, "tk_component\n")); break;
+ case ::CORBA::tk_home: ACE_DEBUG ((LM_DEBUG, "tk_home\n")); break;
+ case ::CORBA::tk_event: ACE_DEBUG ((LM_DEBUG, "tk_event\n")); break;
+ default:
+ break;
+ };
+ }
+
+ // ComponentInterfaceDescription
+
+ void DnC_Dump::dump (const ::Deployment::ComponentInterfaceDescription &cid)
+ {
+ Dump_Obj dump_obj("ComponentInterfaceDescription");
+ dump ("label", cid.label);
+ dump ("UUID", cid.UUID);
+ dump ("specificType", cid.specificType);
+ dump ("supportedType", cid.supportedType);
+ dump ("idlFile", cid.idlFile);
+ dump_sequence ("configProperty", cid.configProperty);
+ dump_sequence ("port", cid.port);
+ dump_sequence ("property", cid.property);
+ dump_sequence ("infoProperty", cid.infoProperty);
+ }
+
+ // Requirement
+
+ void DnC_Dump::dump (const ::Deployment::Requirement &req)
+ {
+ Dump_Obj dump_obj("Requirement");
+
+ dump ("resourceType", req.resourceType);
+ dump ("name", req.name);
+ dump_sequence ("property", req.property);
+ }
+
+ // MonolithicDeploymentDescription
+
+ void DnC_Dump::dump(const Deployment::MonolithicDeploymentDescription &mdd)
+ {
+ Dump_Obj dump_obj("MonolithicDeploymentDescription");
+
+ dump ("name", mdd.name);
+ dump ("source", mdd.source);
+#if (_MSC_VER > 1200)
+
+ dump_ref_seq<Deployment::DeploymentPlan> ("artifactRef", mdd.artifactRef,
+ "DeploymentPlan",
+ &DeploymentPlan::artifact);
+#endif /*_MSC_VER*/
+ dump_sequence ("execParameter", mdd.execParameter);
+ dump_sequence ("deployRequirement", mdd.deployRequirement);
+ }
+
+ // ResourceUsageKind
+
+ void DnC_Dump::dump(const Deployment::ResourceUsageKind &ruk)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%sresourceUsage: ", Dump_Obj::indent()));
+ switch (ruk) {
+ case None: ACE_DEBUG ((LM_DEBUG, "None\n")); break;
+ case InstanceUsesResource: ACE_DEBUG ((LM_DEBUG, "InstanceUsesResource\n")); break;
+ case ResourceUsesInstance: ACE_DEBUG ((LM_DEBUG, "ResourceUsesInstance\n")); break;
+ case PortUsesResource: ACE_DEBUG ((LM_DEBUG, "PortUsesResource\n")); break;
+ case ResourceUsesPort: ACE_DEBUG ((LM_DEBUG, "ResourceUsesPort\n")); break;
+ }
+ }
+
+ // InstanceResourceDeploymentDescription
+
+ void DnC_Dump::dump(const Deployment::InstanceResourceDeploymentDescription &irdd)
+ {
+ Dump_Obj dump_obj("InstanceResourceDeploymentDescription");
+
+ dump (irdd.resourceUsage);
+ dump ("requirementName", irdd.requirementName);
+ dump ("resourceName", irdd.resourceName);
+ ACE_DEBUG ((LM_DEBUG, "%sresourceValue:\n", Dump_Obj::indent()));
+ dump (irdd.resourceValue);
+ }
+
+ // InstanceDeploymentDescription
+
+ void DnC_Dump::dump(const Deployment::InstanceDeploymentDescription &idd)
+ {
+ Dump_Obj dump_obj("InstanceDeploymentDescription");
+
+ dump ("name", idd.name);
+ dump ("node", idd.node);
+ dump ("source", idd.source);
+
+#if (_MSC_VER > 1200)
+ dump_ref<Deployment::DeploymentPlan> ("implementationRef",
+ idd.implementationRef,
+ "DeploymentPlan",
+ &DeploymentPlan::implementation);
+#endif /*_MSC_VER*/
+ dump_sequence ("configProperty", idd.configProperty);
+ dump_sequence ("deployedResource", idd.deployedResource);
+ dump_sequence ("deployedSharedResource", idd.deployedSharedResource);
+ }
+
+ // ComponentExternalPortEndpoint
+
+ void DnC_Dump::dump (const ::Deployment::ComponentExternalPortEndpoint &cepe)
+ {
+ Dump_Obj dump_obj("ComponentExternalPortEndpoint");
+
+ dump ("portName", cepe.portName);
+ }
+
+ // PlanSubcomponentPortEndpoint
+
+ void DnC_Dump::dump(const Deployment::PlanSubcomponentPortEndpoint &pspe)
+ {
+ Dump_Obj dump_obj("PlanSubcomponentPortEndpoint");
+
+ dump ("portName", pspe.portName);
+ dump ("provider", pspe.provider);
+ ACE_DEBUG ((LM_DEBUG, "%skind: ", Dump_Obj::indent()));
+ switch (pspe.kind) {
+ case Facet: ACE_DEBUG ((LM_DEBUG, "Facet\n")); break;
+ case SimplexReceptacle: ACE_DEBUG ((LM_DEBUG, "SimplexReceptacle\n")); break;
+ case MultiplexReceptacle: ACE_DEBUG ((LM_DEBUG, "MultiplexReceptacle\n")); break;
+ case EventEmitter: ACE_DEBUG ((LM_DEBUG, "EventEmitter\n")); break;
+ case EventPublisher: ACE_DEBUG ((LM_DEBUG, "EventPublisher\n")); break;
+ case EventConsumer: ACE_DEBUG ((LM_DEBUG, "EventConsumer\n")); break;
+ }
+#if (_MSC_VER > 1200)
+ dump_ref<Deployment::DeploymentPlan> ("instanceRef", pspe.instanceRef,
+ "DeploymentPlan",
+ &DeploymentPlan::instance);
+#endif /*_MSC_VER*/
+ }
+
+ // ExternalReferenceEndpoint
+
+ void DnC_Dump::dump (const ::Deployment::ExternalReferenceEndpoint &ere)
+ {
+ Dump_Obj dump_obj("ExternalReferenceEndpoint");
+
+ dump ("location", ere.location);
+ }
+
+ // ConnectionResourceDeploymentDescription
+
+ void DnC_Dump::dump(const Deployment::ConnectionResourceDeploymentDescription &crdd)
+ {
+ Dump_Obj dump_obj("ConnectionResourceDeploymentDescription");
+
+ dump ("targetName", crdd.targetName);
+ dump ("requirementName", crdd.requirementName);
+ dump ("resourceName", crdd.resourceName);
+ ACE_DEBUG ((LM_DEBUG, "%sresourceValue:\n", Dump_Obj::indent()));
+ dump (crdd.resourceValue);
+ }
+
+ // PlanConnectionDescription
+
+ void DnC_Dump::dump(const Deployment::PlanConnectionDescription &pcd)
+ {
+ Dump_Obj dump_obj("PlanConnectionDescription");
+
+ dump ("name", pcd.name);
+ dump ("source", pcd.source);
+ dump_sequence ("deployRequirement", pcd.deployRequirement);
+ dump_sequence ("externalEndpoint", pcd.externalEndpoint);
+ dump_sequence ("internalEndpoint", pcd.internalEndpoint);
+ dump_sequence ("externalReference", pcd.externalReference);
+ dump_sequence ("deployedResource", pcd.deployedResource);
+ }
+
+ // PlanSubcomponentPropertyReference
+
+ void DnC_Dump::dump(const Deployment::PlanSubcomponentPropertyReference &pspr)
+ {
+ Dump_Obj dump_obj("PlanSubcomponentPropertyReference");
+
+ dump ("propertyName", pspr.propertyName);
+
+#if (_MSC_VER > 1200)
+ dump_ref<Deployment::DeploymentPlan> ("instanceRef", pspr.instanceRef,
+ "DeploymentPlan",
+ &DeploymentPlan::instance);
+#endif /*_MSC_VER*/
+ }
+
+ // PlanPropertyMapping
+
+ void DnC_Dump::dump(const Deployment::PlanPropertyMapping &ppm)
+ {
+ Dump_Obj dump_obj("PlanPropertyMapping");
+
+ dump ("name", ppm.name);
+ dump ("source", ppm.source);
+ dump ("externalName", ppm.externalName);
+ dump_sequence ("delegatesTo", ppm.delegatesTo);
+ }
+
+ // ImplementationDependency
+
+ void DnC_Dump::dump(const Deployment::ImplementationDependency &id)
+ {
+ Dump_Obj dump_obj("ImplementationDependency");
+
+ dump ("requiredType", id.requiredType);
+ }
+
+ // ResourceDeploymentDescription
+
+ void DnC_Dump::dump(const Deployment::ResourceDeploymentDescription &rdd)
+ {
+ Dump_Obj dump_obj("ResourceDeploymentDescription");
+
+ dump ("requirementName", rdd.requirementName);
+ dump ("resourceName", rdd.resourceName);
+ ACE_DEBUG ((LM_DEBUG, "%sresourceValue:\n", Dump_Obj::indent()));
+ dump (rdd.resourceValue);
+ }
+
+ // ArtifactDeploymentDescription
+
+ void DnC_Dump::dump(const Deployment::ArtifactDeploymentDescription &add)
+ {
+ Dump_Obj dump_obj("ArtifactDeploymentDescription");
+
+ dump ("name", add.name);
+ dump ("location", add.location);
+ dump ("node", add.node);
+ dump ("source", add.source);
+ dump_sequence ("execParameter", add.execParameter);
+ dump_sequence ("deployRequirement", add.deployRequirement);
+ dump_sequence ("deployedResource", add.deployedResource);
+ }
+
+ void DnC_Dump::dump(const Deployment::DeploymentPlan &plan)
+ {
+ CORBA::Any val;
+
+ val <<= plan;
+
+ Dump_Obj dump_obj("DeploymentPlan", val);
+
+ dump ("label", plan.label);
+ dump ("UUID", plan.UUID);
+ dump (plan.realizes);
+ dump_sequence ("implementation", plan.implementation);
+ dump_sequence ("instance", plan.instance);
+ dump_sequence ("connection", plan.connection);
+ dump_sequence ("externalProperty", plan.externalProperty);
+ dump_sequence ("dependsOn", plan.dependsOn);
+ dump_sequence ("artifact", plan.artifact);
+ dump_sequence ("infoProperty", plan.infoProperty);
+ }
+
+ // ComponentPackageReference
+
+ void DnC_Dump::dump (const ::Deployment::ComponentPackageReference &cpr)
+ {
+ Dump_Obj dump_obj("ComponentPackageReference");
+
+ dump ("requiredUUID", cpr.requiredUUID);
+ dump ("requiredName", cpr.requiredName);
+ dump ("requiredType", cpr.requiredType);
+ }
+
+ // SubcomponentInstantiationDescription
+
+ void DnC_Dump::dump (const ::Deployment::SubcomponentInstantiationDescription &sid)
+ {
+ Dump_Obj dump_obj("SubcomponentInstantiationDescription");
+
+ dump ("name", sid.name);
+ dump_sequence ("package", sid.package);
+ dump_sequence ("configProperty", sid.configProperty);
+ dump_sequence ("selectRequirement", sid.selectRequirement);
+ dump_sequence ("reference", sid.reference);
+ }
+
+ // SubcomponentPortEndpoint
+
+ void DnC_Dump::dump (const ::Deployment::SubcomponentPortEndpoint& spe)
+ {
+ Dump_Obj dump_obj("SubcomponentPortEndpoint");
+
+ dump ("portName", spe.portName);
+ int value = spe.instanceRef;
+ ::Deployment::ComponentAssemblyDescription *v;
+ const CORBA::Any &a =
+ Dump_Obj::desc ("ComponentAssemblyDescription");
+
+ a >>= v;
+
+ ACE_DEBUG ((LM_DEBUG, "%sinstance: %s \n", Dump_Obj::indent (),
+ v->instance[value].name.in ()));
+ }
+
+ // AssemblyConnectionDescription
+
+ void DnC_Dump::dump (const ::Deployment::AssemblyConnectionDescription &acd)
+ {
+ Dump_Obj dump_obj("AssemblyConnectionDescription");
+
+ dump ("name", acd.name);
+ dump_sequence ("deployRequirement", acd.deployRequirement);
+ dump_sequence ("externalEndpoint", acd.externalEndpoint);
+ dump_sequence ("internalEndpoint", acd.internalEndpoint);
+ dump_sequence ("externalReference", acd.externalReference);
+ }
+
+ // SubcomponentPropertyReference
+
+ void DnC_Dump::dump (const ::Deployment::SubcomponentPropertyReference &spr)
+ {
+ Dump_Obj dump_obj("SubcomponentPropertyReference");
+
+ dump ("propertyName", spr.propertyName);
+ int value = spr.instanceRef;
+
+ ::Deployment::ComponentAssemblyDescription *v;
+
+ const CORBA::Any &a =
+ Dump_Obj::desc ("ComponentAssemblyDescription");
+
+ a >>= v;
+
+ ACE_DEBUG ((LM_DEBUG, "%sinstance: %s \n", Dump_Obj::indent (),
+ v->instance[value].name.in ()));
+ }
+
+ void
+ DnC_Dump::dump (const ::Deployment::AssemblyPropertyMapping &apm)
+ {
+ Dump_Obj dump_obj("AssemblyPropertyMapping");
+
+ dump ("name", apm.name);
+ dump ("externalName", apm.externalName);
+ dump_sequence ("delegatesTo", apm.delegatesTo);
+ }
+
+ // ComponentAssemblyDescription
+
+ void DnC_Dump::dump (const ::Deployment::ComponentAssemblyDescription& cad)
+ {
+ CORBA::Any a;
+ a <<= cad;
+
+ Dump_Obj dump_obj ("ComponentAssemblyDescription",
+ a);
+
+ dump_sequence ("instance", cad.instance);
+ dump_sequence ("connection", cad.connection);
+ dump_sequence ("externalProperty", cad.externalProperty);
+ }
+
+ // ImplementationArtifactDescription
+
+ void DnC_Dump::dump (const ::Deployment::ImplementationArtifactDescription &iad)
+ {
+ Dump_Obj dump_obj("ImplementationArtifactDescription");
+
+ dump ("label", iad.label);
+ dump ("UUID", iad.UUID);
+ dump ("location", iad.location);
+ dump_sequence ("execParameter", iad.execParameter);
+ dump_sequence ("deployRequirement", iad.deployRequirement);
+ dump_sequence ("dependsOn", iad.dependsOn);
+ dump_sequence ("infoProperty", iad.infoProperty);
+ }
+
+ // NamedImplementationArtifact
+
+ void DnC_Dump::dump (const ::Deployment::NamedImplementationArtifact &nia)
+ {
+ Dump_Obj dump_obj("NamedImplementationArtifact");
+
+ dump ("name", nia.name);
+ dump (nia.referencedArtifact);
+ }
+
+ // ImplementationRequirement
+
+ void DnC_Dump::dump (const ::Deployment::ImplementationRequirement &ir)
+ {
+ Dump_Obj dump_obj("ImplementationRequirement");
+
+ dump_sequence ("resourceUsage", ir.resourceUsage);
+ dump ("resourcePort", ir.resourcePort);
+ dump ("componentPort", ir.componentPort);
+ dump ("resourceType", ir.resourceType);
+ dump ("name", ir.name);
+ dump_sequence ("property", ir.property);
+ }
+
+ // MonolithicImplementationDescription
+
+ void DnC_Dump::dump (const ::Deployment::MonolithicImplementationDescription
+ &mid)
+ {
+ Dump_Obj dump_obj("MonolithicImplementationDescription");
+
+ dump_sequence ("execParameter", mid.execParameter);
+ dump_sequence ("primaryArtifact", mid.primaryArtifact);
+ dump_sequence ("deployRequirement", mid.deployRequirement);
+ }
+
+ void
+ DnC_Dump::dump (const ::Deployment::Capability &capability)
+ {
+ Dump_Obj dump_obj("Capability");
+
+ dump ("name", capability.name);
+ DnC_Dump::dump ("resourceType", capability.resourceType);
+ dump_sequence ("property",
+ capability.property);
+ }
+
+ // ComponentImplementationDescription
+
+ void DnC_Dump::dump (
+ const ::Deployment::ComponentImplementationDescription &cid)
+ {
+ Dump_Obj dump_obj("ComponentImplementationDescription");
+
+ dump ("label", cid.label);
+ dump ("UUID", cid.UUID);
+ ACE_DEBUG ((LM_DEBUG, "%sImplements:\n", Dump_Obj::indent()));
+ dump (cid.implements);
+ dump_sequence ("assemblyImpl", cid.assemblyImpl);
+ dump_sequence ("monolithicImpl", cid.monolithicImpl);
+ dump_sequence ("configProperty", cid.configProperty);
+ dump_sequence ("capability", cid.capability);
+ dump_sequence ("dependsOn", cid.dependsOn);
+ dump_sequence ("infoProperty", cid.infoProperty);
+ }
+
+ // PackagedComponentImplementation
+
+ void DnC_Dump::dump (const ::Deployment::PackagedComponentImplementation &pci)
+ {
+ Dump_Obj dump_obj("PackagedComponentImplementation");
+
+ dump ("Name", pci.name);
+ ACE_DEBUG ((LM_DEBUG,
+ "%sreferencedImplementation: \n", Dump_Obj::indent()));
+ DnC_Dump::dump (pci.referencedImplementation);
+ }
+
+ // ComponentPackageDescription
+
+ void DnC_Dump::dump (const ::Deployment::ComponentPackageDescription
+ &comppkgdesc)
+ {
+ Dump_Obj dump_obj("ComponentPackageDescription");
+
+ dump ("label", comppkgdesc.label);
+ dump ("UUID", comppkgdesc.UUID);
+ ACE_DEBUG ((LM_DEBUG, "%srealizes: \n", Dump_Obj::indent ()));
+ DnC_Dump::dump (comppkgdesc.realizes); // ComponentInterfaceDescription
+ dump_sequence ("configProperty", comppkgdesc.configProperty);
+ dump_sequence ("implementation", comppkgdesc.implementation);
+ dump_sequence ("infoProperty", comppkgdesc.infoProperty);
+ }
+
+ // PackageConfiguration
+
+ void DnC_Dump::dump (const ::Deployment::PackageConfiguration &pc)
+ {
+ Dump_Obj dump_obj("PackageConfiguration");
+
+ dump ("label", pc.label);
+ dump ("UUID", pc.UUID);
+ dump_sequence ("specializedConfig", pc.specializedConfig);
+ dump_sequence ("basePackage", pc.basePackage);
+ dump_sequence ("reference", pc.reference);
+ dump_sequence ("selectRequirement", pc.selectRequirement);
+ dump_sequence ("configProperty", pc.configProperty);
+ }
+
+ // Requirement Satisfier
+ void DnC_Dump::dump (const Deployment::RequirementSatisfier& rs)
+ {
+ Dump_Obj dump_obj("RequirementSatisfier");
+
+ dump ("name", rs.name);
+ dump ("resourceType", rs.resourceType);
+ dump_sequence ("property", rs.property);
+ }
+
+ // Property
+ void DnC_Dump::dump (const Deployment::Property& property)
+ {
+ Dump_Obj dump_obj("Property");
+ dump ("name", property.name);
+ ACE_DEBUG ((LM_DEBUG, "%svalue:\n", Dump_Obj::indent()));
+ dump (property.value);
+ }
+
+ // CORBA::Any
+
+ void DnC_Dump::dump (const ::CORBA::Any &any)
+ {
+ ::CORBA::TypeCode * type = any.type ();
+ switch (type->kind ())
+ {
+ case CORBA::tk_short:
+ {
+ CORBA::Short temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC_Dump::dump (CORBA::Any), expected short\
+ encoded different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %d \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_null:
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: null value encoded\n",
+ Dump_Obj::indent ()));
+ break;
+
+ case CORBA::tk_void:
+ ACE_DEBUG ((LM_DEBUG, "Any value: void type encoded \n"));
+ break;
+ case CORBA::tk_long:
+ {
+ CORBA::Long temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected long\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %d \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_ushort:
+ {
+ CORBA::UShort temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected u short\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %u \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_ulong:
+ {
+ CORBA::ULong temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected ulong\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %u \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_float:
+ {
+ CORBA::Float temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected float\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %f \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+ case CORBA::tk_double:
+ {
+ CORBA::Double temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected double\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %f \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+ case CORBA::tk_boolean:
+ {
+ CORBA::Boolean temp;
+ if (! (any >>= CORBA::Any::to_boolean (temp)))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected bool\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ if (temp)
+ ACE_DEBUG ((LM_DEBUG, "Any value: True \n"));
+ else
+ ACE_DEBUG ((LM_DEBUG, "Any value: False \n"));
+ }
+ break;
+
+ case CORBA::tk_char:
+ {
+ CORBA::Char temp;
+ if (! (any >>= CORBA::Any::to_char (temp)))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected char\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %c \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_octet:
+ {
+ CORBA::Octet temp;
+ if (! (any >>= CORBA::Any::to_octet (temp)))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected octet\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %d \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_string:
+ {
+ const char * temp = 0;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected string\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %s \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+ case CORBA::tk_longlong:
+ {
+ CORBA::LongLong temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected longlong\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %l \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_longdouble:
+ {
+ CORBA::LongDouble temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected longdouble\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %d \n", Dump_Obj::indent (),
+ temp));
+ }
+
+ break;
+ case CORBA::tk_wchar:
+ {
+ CORBA::WChar temp;
+ if (! (any >>= CORBA::Any::to_wchar (temp)))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected wchar\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %c \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ case CORBA::tk_wstring:
+ {
+ const CORBA::WChar * temp;
+ if (! (any >>= temp))
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC::dump (CORBA::Any) expected wstring\
+ encoded with different type"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ ACE_DEBUG ((LM_DEBUG, "%sAny value: %s \n", Dump_Obj::indent (),
+ temp));
+ }
+ break;
+
+ default:
+ ACE_DEBUG ((LM_DEBUG, "Unknown type encoded in Any\n"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.h
new file mode 100644
index 00000000000..1c504e57133
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.h
@@ -0,0 +1,153 @@
+//==================================================================
+/**
+ * @file DnC_Dump.h
+ *
+ * $Id$
+ *
+ * @author Gan Deng <gan.deng@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef DNC_DUMP_H
+#define DNC_DUMP_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+
+namespace Deployment
+{
+ /**
+ * @class DnC_Dump
+ *
+ * @brief This class defines a set of overloaded "dump" methods to print
+ * the contents of various IDL data types, which passed as input.
+ */
+ class Config_Handler_Export DnC_Dump
+ {
+ public:
+ /// Dump functions for CORBA sequences
+ static void dump (const char* caption,
+ const ::CORBA::StringSeq &str_seq);
+
+ static void dump (const char* caption, const TAO_String_Manager& str);
+
+ static void dump (const char* caption, const CORBA::Boolean& val);
+
+ /// A whole slew of overloaded dump routines for different IDL
+ /// data types.
+
+ static void dump(const Deployment::SatisfierProperty &sp);
+
+ static void dump (const Deployment::SharedResource& sr);
+
+ static void dump (const Deployment::Node& node);
+
+ static void dump (const Deployment::Resource& resource);
+
+ static void dump (const Deployment::Interconnect& conn);
+
+ static void dump (const Deployment::Bridge& bridge);
+
+ static void dump (const ::Deployment::Property &property);
+
+ static void dump (const ::Deployment::AssemblyConnectionDescription &acd);
+
+ static void dump (const ::Deployment::AssemblyPropertyMapping &apm);
+
+ static void dump (const ::Deployment::ComponentPackageDescription
+ &comppkgdesc);
+
+ static void dump (const ::Deployment::ComponentPortDescription
+ &compportdesc);
+
+ static void dump (const ::Deployment::ComponentPropertyDescription
+ &comppropdesc);
+
+ static void dump (const ::Deployment::MonolithicImplementationDescription
+ &mid);
+
+ static void dump (const ::Deployment::PackageConfiguration &pc);
+
+ static void dump (const ::Deployment::PackagedComponentImplementation
+ &pci);
+
+ static void dump (const ::Deployment::SubcomponentPortEndpoint &spe);
+
+ static void dump (const ::Deployment::Requirement &requirement);
+
+ static void dump (const ::Deployment::ComponentExternalPortEndpoint
+ &cepe);
+
+ static void dump (const ::Deployment::ComponentPackageReference &cpr);
+
+ static void dump (const ::Deployment::ComponentImplementationDescription
+ &cid);
+
+ static void dump (const ::Deployment::SubcomponentInstantiationDescription
+ &sid);
+
+ static void dump (const ::Deployment::NamedImplementationArtifact
+ &named_implementation);
+
+ static void dump (const ::Deployment::ComponentInterfaceDescription &cid);
+
+ static void dump (const ::Deployment::SubcomponentPropertyReference
+ &scpr);
+
+ static void dump (const ::Deployment::ExternalReferenceEndpoint &ere);
+
+ static void dump (const ::Deployment::Domain &domain);
+
+ static void dump (const ::Deployment::Capability &capability);
+
+ static void dump (const ::Deployment::ImplementationArtifactDescription
+ &iad);
+
+ static void dump (const ::Deployment::ImplementationRequirement &ir);
+
+ static void dump(const Deployment::ResourceUsageKind &ruk);
+
+ static void dump(const Deployment::DeploymentPlan &plan);
+
+ static void dump(const Deployment::MonolithicDeploymentDescription &mdd);
+
+ static void dump(const Deployment::InstanceDeploymentDescription &idd);
+
+ static void dump(const Deployment::PlanConnectionDescription &pcd);
+
+ static void dump(const Deployment::PlanPropertyMapping &ppm);
+
+ static void dump(const Deployment::ImplementationDependency &id);
+
+ static void dump(const Deployment::ArtifactDeploymentDescription &add);
+
+ static void dump(const Deployment::InstanceResourceDeploymentDescription
+ &irdd);
+
+ static void dump(const PlanSubcomponentPortEndpoint &pspe);
+
+ static void dump(const ConnectionResourceDeploymentDescription &crdd);
+
+ static void dump(const PlanSubcomponentPropertyReference &pspr);
+
+ static void dump(const ResourceDeploymentDescription &rdd);
+
+ static void dump (const ::Deployment::ComponentAssemblyDescription& cad);
+
+ static void dump (const Deployment::RequirementSatisfier& rs);
+
+ private:
+ static void dump (const ::CORBA::Any &any);
+ // Helper function to print an Any
+ };
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* DNC_DUMP_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.cpp
new file mode 100644
index 00000000000..d02492c82e9
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.cpp
@@ -0,0 +1,89 @@
+// $Id$
+#ifndef DNC_DUMP_T_C
+#define DNC_DUMP_T_C
+#include "DnC_Dump_T.h"
+#include "Dump_Obj.h"
+
+ACE_RCSID (Config_Handlers,
+ DnC_Dump_T,
+ "$Id$")
+namespace Deployment
+{
+ namespace DnC_Dump_T
+ {
+ // Dumps a reference
+ template <typename ROOT, typename REFERENCE, typename DATA_TYPE,
+ typename CLASS>
+ void
+ dump_ref (const char* caption, REFERENCE& ref,
+ const char* root, DATA_TYPE CLASS::*data)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s:\n",
+ Dump_Obj::indent(), caption));
+
+ const CORBA::Any &val = Dump_Obj::desc (root);
+
+ ROOT *t = 0;
+
+ val >>= t;
+
+ const ROOT &root_obj = *t;
+
+ int value = ref;
+ ACE_DEBUG ((LM_DEBUG, "%s%s.name: %s\n",
+ Dump_Obj::indent(), caption,
+ (root_obj.*data)[value].name.in()));
+ }
+
+ // Dumps a reference sequence
+ template <typename ROOT, typename SEQUENCE, typename DATA_TYPE,
+ typename CLASS>
+ void
+ dump_ref_seq (const char* caption, SEQUENCE& seq,
+ const char* root, DATA_TYPE CLASS::*data)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "%s%s:\n",
+ Dump_Obj::indent(), caption));
+
+ CORBA::Any val;
+ val <<= root;
+
+ for (size_t i = 0; i < seq.length(); ++i)
+ {
+ const CORBA::Any &val = Dump_Obj::desc (root);
+
+ ROOT *t = 0;
+
+ val >>= t;
+
+ const ROOT &root_obj = *t;
+ int value = seq[i];
+ ACE_DEBUG ((LM_DEBUG, "%s%s[%d].name: %s\n",
+ Dump_Obj::indent(), caption, i,
+ (root_obj.*data)[value].name.in()));
+ }
+ }
+
+ // Dumps a sequence
+ template <typename SEQUENCE>
+ void
+ dump_sequence (const char* caption, const SEQUENCE &seq)
+ {
+ CORBA::ULong size = seq.length ();
+
+ if (size != 0)
+ {
+ Dump_Obj dump_obj(caption);
+
+ for (CORBA::ULong i = 0; i < size; ++i)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s %d: \n", Dump_Obj::indent(),
+ caption, i));
+ DnC_Dump::dump (seq[i]);
+ }
+ }
+ }
+ }
+}
+#endif /* DNC_DUMP_C */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.h
new file mode 100644
index 00000000000..065c6275705
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/DnC_Dump_T.h
@@ -0,0 +1,50 @@
+//==================================================================
+/**
+ * @file DnC_Dump_T.h
+ *
+ * $Id$
+ *
+ * @author Gan Deng <gan.deng@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef CIAO_CONFIG_HANDLERS_DNC_DUMP_T_H
+#define CIAO_CONFIG_HANDLERS_DNC_DUMP_T_H
+#include /**/ "ace/pre.h"
+
+#include "ace/config-lite.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+namespace Deployment
+{
+ namespace DnC_Dump_T
+ {
+ template <typename SEQUENCE>
+ static void dump_sequence (const char* caption, const SEQUENCE &seq);
+
+ template <typename ROOT, typename SEQUENCE,
+ typename DATA_TYPE, typename CLASS>
+ static void dump_ref_seq (const char* caption, SEQUENCE& seq,
+ const char* root, DATA_TYPE CLASS::*data);
+
+ template <typename ROOT, typename REFERENCE, typename DATA_TYPE,
+ typename CLASS>
+ static void dump_ref (const char* caption, REFERENCE& ref,
+ const char* root, DATA_TYPE CLASS::*data);
+ }
+}
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "DnC_Dump_T.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("DnC_Dump_T.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+
+#include /**/ "ace/post.h"
+#endif /*CIAO_CONFIG_HANDLERS_DNC_DUMP_T_H*/
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.cpp
new file mode 100644
index 00000000000..5d6d1456e07
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.cpp
@@ -0,0 +1,403 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Domain_Handler.h"
+#include "Property_Handler.h"
+#include "SP_Handler.h"
+#include "Process_Element.h"
+#include "Utils.h"
+#include <iostream>
+#include "string.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the Domain type and populate the IDL structure
+void Domain_Handler::process_domain (Deployment::Domain& domain)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName ());
+
+ if (node_name == XStr (ACE_TEXT ("Deployment:Domain")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", domain.UUID));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", domain.label));
+ else if
+ (process_sequence_local<Deployment::SharedResource>
+ (this->doc_, this->iter_, node,
+ node_name, "sharedResource", domain.sharedResource,
+ this, &Domain_Handler::process_sr));
+ else if
+ (process_sequence_local<Deployment::Node>
+ (this->doc_, this->iter_, node,
+ node_name, "node", domain.node,
+ this, &Domain_Handler::process_node));
+ else if
+ (process_sequence_local<Deployment::Interconnect>
+ (this->doc_, this->iter_, node,
+ node_name, "interconnect", domain.interconnect,
+ this, &Domain_Handler::process_interconnect));
+ else if
+ (process_sequence_local<Deployment::Bridge>
+ (this->doc_, this->iter_, node,
+ node_name, "bridge", domain.bridge,
+ this, &Domain_Handler::process_bridge));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "infoProperty", domain.infoProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ // ??? How did we get here ???
+ ACE_THROW (CORBA::INTERNAL());
+ }
+ }
+
+ this->update_node_refs (domain);
+ this->update_ic_refs (domain);
+ this->update_bridge_refs (domain);
+ this->update_sr_refs (domain);
+
+ return;
+}
+
+void Domain_Handler::process_node (DOMNodeIterator* iter,
+ Deployment::Node& domain_node)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:Node")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", domain_node.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "label", domain_node.label));
+ else if
+ (process_sequence_local<Deployment::Resource>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "resource", domain_node.resource,
+ this, &Domain_Handler::process_resource));
+ else if
+ (process_reference_seq (node, node_name, "connection",
+ domain_node.connectionRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_reference_seq (node, node_name, "sharedResource",
+ domain_node.sharedResourceRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Domain_Handler::process_resource (DOMNodeIterator* iter,
+ Deployment::Resource& domain_resource)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:Resource")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", domain_resource.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "resourceType", domain_resource.resourceType));
+ else if
+ (process_sequence_common<Deployment::SatisfierProperty>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "property", domain_resource.property,
+ &SP_Handler::process_SatisfierProperty,
+ this->id_map_));
+ else
+ {
+ node = iter->previousNode ();
+ break;
+ }
+ }
+}
+
+void Domain_Handler::process_bridge (DOMNodeIterator* iter,
+ Deployment::Bridge& domain_bridge)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:Bridge")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", domain_bridge.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "label", domain_bridge.label));
+ else if
+ (process_reference_seq (node, node_name, "connect",
+ domain_bridge.connectRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_sequence_local<Deployment::Resource>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "resource", domain_bridge.resource,
+ this, &Domain_Handler::process_resource));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+
+void Domain_Handler::process_interconnect (DOMNodeIterator* iter,
+ Deployment::Interconnect& domain_ic)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:Interconnect")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", domain_ic.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "label", domain_ic.label));
+ else if
+ (process_reference_seq (node, node_name, "connect",
+ domain_ic.connectRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_reference_seq (node, node_name, "connection",
+ domain_ic.connectionRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_sequence_local<Deployment::Resource>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "resource", domain_ic.resource,
+ this, &Domain_Handler::process_resource));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+
+void Domain_Handler::process_sr (DOMNodeIterator* iter,
+ Deployment::SharedResource& domain_sr)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:SharedResource")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", domain_sr.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "resourceType",
+ domain_sr.resourceType));
+ else if
+ (process_reference_seq (node, node_name, "node",
+ domain_sr.nodeRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_sequence_common<Deployment::SatisfierProperty>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "property", domain_sr.property,
+ &SP_Handler::process_SatisfierProperty,
+ this->id_map_));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Domain_Handler::update_node_refs (Deployment::Domain& domain)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < domain.node.length (); ++x)
+ {
+ for (y = 0; y < domain.node[x].connectionRef.length (); ++y)
+ {
+ ref_value = domain.node[x].connectionRef[y];
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ domain.node[x].connectionRef[y] = orig_value;
+ }
+ }
+ }
+
+ for (y = 0; y < domain.node[x].sharedResourceRef.length (); ++y)
+ {
+ ref_value = domain.node[x].sharedResourceRef[y];
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ domain.node[x].sharedResourceRef[y] = orig_value;
+ }
+ }
+ }
+
+ }
+}
+
+void Domain_Handler::update_ic_refs (Deployment::Domain& domain)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < domain.interconnect.length (); ++x)
+ {
+ for (y = 0; y < domain.interconnect[x].connectionRef.length (); ++y)
+ {
+ ref_value = domain.interconnect[x].connectionRef[y];
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ domain.interconnect[x].connectionRef[y] = orig_value;
+ }
+ }
+ }
+
+ for (y = 0; y < domain.interconnect[x].connectRef.length (); ++y)
+ {
+ ref_value = domain.interconnect[x].connectRef[y];
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ domain.interconnect[x].connectRef[y] = orig_value;
+ }
+ }
+ }
+ }
+}
+
+void Domain_Handler::update_bridge_refs (Deployment::Domain& domain)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < domain.bridge.length (); ++x)
+ {
+ for (y = 0; y < domain.bridge[x].connectRef.length (); ++y)
+ {
+ ref_value = domain.bridge[x].connectRef[y];
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ domain.bridge[x].connectRef[y] = orig_value;
+ }
+ }
+ }
+ }
+}
+
+void Domain_Handler::update_sr_refs (Deployment::Domain& domain)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < domain.sharedResource.length (); ++x)
+ {
+ for (y = 0; y < domain.sharedResource[x].nodeRef.length (); ++y)
+ {
+ ref_value = domain.sharedResource[x].nodeRef[y];
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ domain.sharedResource[x].nodeRef[y] = orig_value;
+ }
+ }
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.h
new file mode 100644
index 00000000000..327bfe54bba
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.h
@@ -0,0 +1,127 @@
+//==================================================================
+/**
+ * @file Domain_Handler.h
+ *
+ * $Id$
+ *
+ * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ */
+//=====================================================================
+#ifndef DOMAIN_HANDLER_H
+#define DOMAIN_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "Basic_Handler.h"
+#include "XercesString.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class Domain_Handler
+ *
+ * @brief Handler class for <Domain> type
+ *
+ * This class is within the Target Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the description files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export Domain_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ Domain_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ Domain_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ Domain_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the Domain type
+ void process_domain (Deployment::Domain& domain);
+
+ /// process the node attribute
+ void process_node (DOMNodeIterator* iter,
+ Deployment::Node& domain_node);
+
+ /// process the node attribute
+ void process_bridge (DOMNodeIterator* iter,
+ Deployment::Bridge& domain_bridge);
+
+ /// process the node attribute
+ void process_interconnect (DOMNodeIterator* iter,
+ Deployment::Interconnect& domain_ic);
+
+ /// process the resource attribute
+ void process_resource (DOMNodeIterator* iter,
+ Deployment::Resource& domain_resource);
+
+ /// process the node attribute
+ void process_sr (DOMNodeIterator* iter,
+ Deployment::SharedResource& domain_sr);
+
+ /// update node refs
+ void update_node_refs (Deployment::Domain& domain);
+
+ /// update ic refs
+ void update_ic_refs (Deployment::Domain& domain);
+
+ /// update bridge refs
+ void update_bridge_refs (Deployment::Domain& domain);
+
+ /// update sr refs
+ void update_sr_refs (Deployment::Domain& domain);
+
+ /// process IDREFs
+ void process_refs (DOMNamedNodeMap* named_node_map);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* DOMAIN_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.cpp
new file mode 100644
index 00000000000..18dde6aa39f
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.cpp
@@ -0,0 +1,64 @@
+// $Id$
+#include "Dump_Obj.h"
+
+ACE_RCSID (Config_Handlers,
+ Dump_Obj,
+ "$Id$")
+
+namespace Deployment
+{
+ // static member initialization
+ std::string Dump_Obj::indent_ = "-";
+ std::map<std::string, CORBA::Any> Dump_Obj::desc_map_;
+
+ Dump_Obj::Dump_Obj(const char* caption)
+ : desc_()
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s:\n", indent_.c_str(), caption));
+ indent_.append(" ");
+ }
+
+
+ Dump_Obj::Dump_Obj(const char* caption,
+ CORBA::Any &val)
+ : desc_(caption)
+ {
+ ACE_DEBUG ((LM_DEBUG, "%s%s:\n",
+ indent_.c_str(),
+ caption));
+
+ indent_.append(" ");
+
+ if (desc_map_.find (std::string (caption)) != desc_map_.end())
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC_Dump.cpp:Dump_Obj - \
+ The item with name %s is already in \
+ the node map.\n", caption));
+ throw Node_Exist();
+ }
+ else
+ {
+ desc_map_[std::string(caption)] = val;
+ }
+ }
+
+ Dump_Obj::~Dump_Obj()
+ {
+ indent_.erase(indent_.size() - 2, 2);
+ if (desc_.size() != 0)
+ {
+ if (desc_map_.find(desc_) != desc_map_.end())
+ {
+ desc_map_.erase(desc_map_.find(desc_));
+ }
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "DnC_Dump.cpp:Dump_Obj - \
+ The item with name %s is not in the node map.\n",
+ desc_.c_str()));
+ throw Node_Not_Exist();
+ }
+ }
+ }
+
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.h
new file mode 100644
index 00000000000..a3667376589
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Dump_Obj.h
@@ -0,0 +1,76 @@
+//==================================================================
+/**
+ * @file Dump_Obj.h
+ *
+ * $Id$
+ *
+ * @author Gan Deng <gan.deng@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef CIAO_DUMP_OBJ_H
+#define CIAO_DUMP_OBJ_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Config_Handler_export.h"
+#include <string>
+#include <map>
+
+namespace Deployment
+{
+ /*
+ * @brief class Dump_Obj handles the indentation and keeps a map of
+ * structures for reference look-up.
+ */
+ class Config_Handler_Export Dump_Obj
+ {
+ public:
+ /// Exception thrown when there is a node with the same name in the
+ /// map
+ class Node_Exist { };
+
+ /// Exception thrown when there is no node with the name given in
+ /// the map
+ class Node_Not_Exist { };
+
+ /// Constructors prints out the caption and increases indent
+ Dump_Obj (const char *caption);
+
+ /// Additionally insets <val> into the map
+ Dump_Obj (const char* caption,
+ CORBA::Any &val);
+
+ // Destructor
+ ~Dump_Obj (void);
+ // return the indent string
+ static const char* indent()
+ {
+ return indent_.c_str();
+ }
+
+ static CORBA::Any& desc(const char* caption)
+ {
+ return desc_map_[caption];
+ }
+
+ private:
+ // indent string
+ static std::string indent_;
+
+ // map for reference lookup
+ static std::map<std::string, CORBA::Any> desc_map_;
+
+ // descriptor - used by destructor for deleting the
+ // correct descriptor from the map
+ std::string desc_;
+ };
+}
+
+#include /**/ "ace/post.h"
+#endif /*CIAO_DUMP_OBJ_H*/
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.cpp
new file mode 100644
index 00000000000..9251ab3adb5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.cpp
@@ -0,0 +1,27 @@
+//$Id$
+
+#include "ERE_Handler.h"
+#include "Utils.h"
+
+using CIAO::Config_Handler::Utils;
+
+void
+CIAO::Config_Handler::ERE_Handler::
+process_ExternalReferenceEndpoint (DOMNodeIterator * iter,
+ Deployment::ExternalReferenceEndpoint &ret_struct)
+{
+ //Check if the Schema IDs for both the elements match
+ DOMNode * node = iter->nextNode ();
+ XStr name (node->getNodeName ());
+
+ if (name != XStr (ACE_TEXT ("location")))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handlers::ERE_Handler::process_ExternalRefEndPoint \
+ element mismatch expected <location>"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Populate the structure
+ ret_struct.location = Utils::parse_string (iter);
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.h
new file mode 100644
index 00000000000..272bd8ecc63
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/ERE_Handler.h
@@ -0,0 +1,63 @@
+
+//==================================================================
+/**
+ * @file ERE_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef ERE_HANDLER_H
+#define ERE_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Config_Handler_export.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class ERE_Handler
+ *
+ * @brief Handler class for <ExternalReferenceEndpoint> tag
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the descriptor files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+ class Config_Handler_Export ERE_Handler
+ {
+ public:
+ static void
+ process_ExternalReferenceEndpoint (DOMNodeIterator * iter,
+ Deployment::ExternalReferenceEndpoint &ret_struct);
+ // process <ExternalReferenceEndpoint> definitions in the descriptor
+ // files
+
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* ERE_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.cpp
new file mode 100644
index 00000000000..e75292e2fcb
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.cpp
@@ -0,0 +1,78 @@
+//$Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Property_Handler.h"
+#include "Requirement_Handler.h"
+#include "NIA_Handler.h"
+#include "IAD_Handler.h"
+#include "Utils.h"
+#include "Process_Element.h"
+#include <iostream>
+#include <string>
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void IAD_Handler::process_ImplementationArtifactDescription
+(::Deployment::ImplementationArtifactDescription &iad)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ImplementationArtifactDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", iad.label));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", iad.UUID));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (this->iter_, node_name, "location",
+ iad.location));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "execParameter", iad.execParameter,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Requirement>
+ (node->getOwnerDocument(), this->iter_, node,
+ node_name, "deployRequirement", iad.deployRequirement,
+ &Requirement_Handler::process_Requirement,
+ this->id_map_));
+ else if (iad.dependsOn.length () == 0)
+ ;
+ /*
+ else if
+ (process_sequence_remote<Deployment::NamedImplementationArtifact,
+ NIA_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "dependsOn", iad.dependsOn,
+ &NIA_Handler::process_NamedImplementationArtifact, this->id_map_));
+ */
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "infoProperty", iad.infoProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+ return;
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.h
new file mode 100644
index 00000000000..8cbfabd510e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/IAD_Handler.h
@@ -0,0 +1,99 @@
+//==================================================================
+/**
+ * @file IAD_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef IAD_HANDLER_H
+#define IAD_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class IAD_Handler
+ *
+ * @brief Handler class for <ImplementationArtifactDescription> tag
+ *
+ * This class defines handler methods to parse the
+ * ImplementationArtifactDescription type
+ * in the descriptor files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export IAD_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ IAD_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ IAD_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ IAD_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the component package description
+ void process_ImplementationArtifactDescription
+ (::Deployment::ImplementationArtifactDescription &iad);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* IAD_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.cpp
new file mode 100644
index 00000000000..71f700f596e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.cpp
@@ -0,0 +1,28 @@
+//$Id$
+
+#include "ID_Handler.h"
+#include "tao/Exception.h"
+#include "Utils.h"
+
+using CIAO::Config_Handler::Utils;
+
+void
+CIAO::Config_Handler::ID_Handler::
+process_ImplementationDependency (DOMNodeIterator * iter,
+ Deployment::ImplementationDependency &ret_struct)
+{
+ //Check if the Schema IDs for both the elements match
+ DOMNode * node = iter->nextNode ();
+ XStr name (node->getNodeName ());
+
+ if (name != XStr (ACE_TEXT ("elementType")))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handlers::ID_Handler::process_ImplDependency \
+ element mismatch expected <elementType>"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Populate the structure
+ ret_struct.requiredType = Utils::parse_string (iter);
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.h
new file mode 100644
index 00000000000..c2142cfb706
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/ID_Handler.h
@@ -0,0 +1,64 @@
+//==================================================================
+/**
+ * @file ID_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef ID_HANDLER_H
+#define ID_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class ID_Handler
+ *
+ * @brief Handler class for <ImplementationDependency> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Dependency types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ * KNOWN ISSUE:
+ * The IDL mapping for this type defines a struct containing a
+ * string type. However, the schema defines an unbounded string.
+ * Currently, this Handler handles what the IDL requires as this is
+ * valid via the schema definition also.
+ *
+ */
+ class Config_Handler_Export ID_Handler
+ {
+ public:
+ static void
+ process_ImplementationDependency (DOMNodeIterator * iter,
+ Deployment::ImplementationDependency &ret_struct);
+ // process elements of type Implementation Dependency definitions in
+ // the descriptor files
+
+ };
+ }
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* ID_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.cpp
new file mode 100644
index 00000000000..d4255b5555e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.cpp
@@ -0,0 +1,58 @@
+//$Id$
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "IAD_Handler.h"
+#include "IR_Handler.h"
+#include "RUK_Handler.h"
+#include "Utils.h"
+#include "Utils.h"
+#include "Process_Element.h"
+#include "Property_Handler.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void IR_Handler::process_ImplementationRequirement
+(::Deployment::ImplementationRequirement &ir)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ImplementationRequirement")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "resourcePort",
+ ir.resourcePort));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "componentPort",
+ ir.componentPort));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "resourceType",
+ ir.resourceType));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "name", ir.name));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "Property", ir.property,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.h
new file mode 100644
index 00000000000..d7ff20f1c99
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/IR_Handler.h
@@ -0,0 +1,106 @@
+//==================================================================
+/**
+ * @file IR_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef IR_HANDLER_H
+#define IR_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+#include "RUK_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class IR_Handler
+ *
+ * @brief Handler class for <ImplementationRequirement> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Requirement types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+
+class Config_Handler_Export IR_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ IR_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ IR_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ IR_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the package configuration
+ void process_ImplementationRequirement (::Deployment::ImplementationRequirement &ir);
+
+protected:
+ /// Process the resourceUsage attribute
+ void process_resourceUsage (const XMLCh* name, ::Deployment::ImplementationRequirement &ir);
+
+ /// Process the resourcePort attribute
+ void process_resourcePort (const XMLCh* name, ::Deployment::ImplementationRequirement &ir);
+
+ /// Process the componentPort attribute
+ void process_componentPort (const XMLCh* name, ::Deployment::ImplementationRequirement &ir);
+
+ /*
+ * Derived from Requirement
+ */
+
+ /// Process the label attribute
+ void process_name (const XMLCh* name, ::Deployment::ImplementationRequirement &ir);
+
+ /// Process the label attribute
+ void process_resourceType (const XMLCh* name, ::Deployment::ImplementationRequirement &ir);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* IR_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.cpp
new file mode 100644
index 00000000000..bce6afd2e7a
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.cpp
@@ -0,0 +1,54 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Property_Handler.h"
+#include "Requirement_Handler.h"
+#include "NIA_Handler.h"
+#include "MID_Handler.h"
+#include "IR_Handler.h"
+#include "Process_Element.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+void MID_Handler::process_MonolithicImplementationDescription
+ (::Deployment::MonolithicImplementationDescription &mid)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:MonolithicImplementationDescription")))
+ {
+ }
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "execParameter", mid.execParameter,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::NamedImplementationArtifact,
+ NIA_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "primaryArtifact", mid.primaryArtifact,
+ &NIA_Handler::process_NamedImplementationArtifact,
+ this->id_map_));
+ else if
+ (process_sequence_remote<Deployment::ImplementationRequirement,
+ IR_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "deployRequirement", mid.deployRequirement,
+ &IR_Handler::process_ImplementationRequirement, this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.h
new file mode 100644
index 00000000000..4c99ef81621
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/MID_Handler.h
@@ -0,0 +1,116 @@
+// $Id$
+
+#ifndef MID_HANDLER_H
+#define MID_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class MID_Handler
+ *
+ * @brief Handler class for <MonolithicImplementationDescription> type
+ *
+ * This class defines handler methods to parse Monolithic Implementation
+ * Descroption types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+
+class Config_Handler_Export MID_Handler: public Basic_Handler
+{
+public:
+
+ MID_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ MID_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ MID_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ void process_MonolithicImplementationDescription (::Deployment::MonolithicImplementationDescription &mid);
+
+protected:
+ /// process exec parameter element
+ void process_exec_parameter_element (DOMNode* node,
+ DOMDocument* doc, DOMNodeIterator* iter,
+ Deployment::MonolithicImplementationDescription& mid);
+
+ /// process attributes for property element
+ void process_attributes_for_property (DOMNamedNodeMap* named_node_map,
+ DOMDocument* doc,
+ DOMNodeIterator* iter,
+ int value,
+ Deployment::Property& ccd_property);
+
+ /// process attributes for deploy requirement
+ void process_attributes_for_deploy_requirement (DOMNamedNodeMap* nm,
+ DOMDocument* doc,
+ DOMNodeIterator* iter,
+ int value,
+ Deployment::ImplementationRequirement& req);
+
+ /// process attributes for NIA
+ void process_attributes_for_nia (DOMNamedNodeMap* nm,
+ DOMDocument* doc,
+ DOMNodeIterator* iter,
+ int value,
+ Deployment::NamedImplementationArtifact& nia);
+
+ /// process IDREFS
+ void process_refs (DOMNamedNodeMap* named_node_map);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* MID_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.cpp
new file mode 100644
index 00000000000..11db8839207
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.cpp
@@ -0,0 +1,44 @@
+//$Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "IAD_Handler.h"
+#include "NIA_Handler.h"
+#include "Utils.h"
+#include "Process_Element.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void NIA_Handler::process_NamedImplementationArtifact
+(::Deployment::NamedImplementationArtifact &nia)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:NamedImplementationArtifact")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "name", nia.name));
+ else if
+ (process_element_remote<Deployment::ImplementationArtifactDescription,
+ IAD_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "referencedArtifact", nia.referencedArtifact,
+ &IAD_Handler::process_ImplementationArtifactDescription,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.h
new file mode 100644
index 00000000000..cc3b1fd2a11
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/NIA_Handler.h
@@ -0,0 +1,84 @@
+//==================================================================
+/**
+ * @file NIA_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef NIA_HANDLER_H
+#define NIA_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class NIA_Handler
+ *
+ * @brief Handler class for <NamedImplementationArtifact> type
+ *
+ * This class defines handler methods to parse Named Implementation
+ * Artifact types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+
+class Config_Handler_Export NIA_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ NIA_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ NIA_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ NIA_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the package configuration
+ void process_NamedImplementationArtifact (::Deployment::NamedImplementationArtifact &nia);
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* NIA_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.cpp
new file mode 100644
index 00000000000..e26a73dab27
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.cpp
@@ -0,0 +1,47 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "CompImplDesc_Handler.h"
+#include "PCI_Handler.h"
+#include "Utils.h"
+#include "Process_Element.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void PCI_Handler::process_PackagedComponentImplementation
+ (::Deployment::PackagedComponentImplementation &pci)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:PackagedComponentImplementation")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "name", pci.name));
+ else if
+ (process_element_remote<Deployment::ComponentImplementationDescription,
+ CompImplDesc_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "referencedImplementation",
+ pci.referencedImplementation,
+ &CompImplDesc_Handler::process_ComponentImplementationDescription,
+ this->id_map_));
+ else
+ {
+ this->iter_->previousNode ();
+ return;
+ }
+ }
+ return;
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.h
new file mode 100644
index 00000000000..95cefcf5a90
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/PCI_Handler.h
@@ -0,0 +1,87 @@
+//==================================================================
+/**
+ * @file PCI_Handler.h
+ *
+ * $Id$
+ *
+ * @author George Edwards <g.edwards@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef PCI_HANDLER_H
+#define PCI_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+#include "Basic_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class PCI_Handler
+ *
+ * @brief Handler class for <PackagedComponentImplementation> type
+ *
+ * This class is within the Component Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the description files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export PCI_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ PCI_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ PCI_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ PCI_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the package configuration
+ void process_PackagedComponentImplementation (::Deployment::PackagedComponentImplementation &pci);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* PCI_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.cpp
new file mode 100644
index 00000000000..25804bd71c3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.cpp
@@ -0,0 +1,75 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Property_Handler.h"
+#include "Requirement_Handler.h"
+#include "CPR_Handler.h"
+#include "CompPkgDesc_Handler.h"
+#include "PC_Handler.h"
+#include "Process_Element.h"
+#include "Utils.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+void PC_Handler::process_PackageConfiguration
+ (::Deployment::PackageConfiguration &pc)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName());
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:PackageConfiguration")))
+ {
+ }
+ else if (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", pc.label))
+ {
+ }
+ else if (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", pc.UUID))
+ {
+ }
+ else if (process_sequence_remote
+ <Deployment::ComponentPackageDescription,
+ CompPkgDesc_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "basePackage", pc.basePackage,
+ &CompPkgDesc_Handler::process_ComponentPackageDescription,
+ this->id_map_))
+ {
+ }
+ else if (process_sequence_remote
+ <Deployment::ComponentPackageReference, CPR_Handler>
+ (this->doc_, this->iter_, node,
+ node_name, "reference", pc.reference,
+ &CPR_Handler::process_ComponentPackageReference,
+ this->id_map_))
+ {
+ }
+ else if (process_sequence_common
+ <Deployment::Requirement>
+ (this->doc_, this->iter_, node,
+ node_name, "selectRequirement", pc.selectRequirement,
+ &Requirement_Handler::process_Requirement,this->id_map_))
+ {
+ }
+ else if (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "configProperty", pc.configProperty,
+ &Property_Handler::process_Property, this->id_map_))
+ {
+ }
+ else
+ {
+ ACE_THROW (CORBA::INTERNAL());
+ }
+ }
+ return;
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.h
new file mode 100644
index 00000000000..9dfa24dd354
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/PC_Handler.h
@@ -0,0 +1,91 @@
+//==================================================================
+/**
+ * @file PC_Handler.h
+ *
+ * $Id$
+ *
+ * @author George Edwards <g.edwards@vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef PC_HANDLER_H
+#define PC_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class PC_Handler
+ *
+ * @brief Handler class for <PackageConfiguration> type
+ *
+ * This class is within the Component Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the description files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export PC_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ PC_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ PC_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ PC_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the package configuration
+ void process_PackageConfiguration (::Deployment::PackageConfiguration &pc);
+
+ /// Process the specializedConfig attribute
+ void process_specializedConfig
+ (const XMLCh* specializedConfig, ::Deployment::PackageConfiguration &pc);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* PC_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.cpp
new file mode 100644
index 00000000000..2b3e5bd3a28
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.cpp
@@ -0,0 +1,624 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "Plan_Handler.h"
+#include "ID_Handler.h"
+#include "CompIntrDesc_Handler.h"
+#include "Property_Handler.h"
+#include "SP_Handler.h"
+#include "Requirement_Handler.h"
+#include "Any_Handler.h"
+#include "RUK_Handler.h"
+#include "CEPE_Handler.h"
+#include "ERE_Handler.h"
+#include "CPK_Handler.h"
+#include "Process_Element.h"
+#include "Utils.h"
+#include <iostream>
+#include "string.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the DeploymentPlan type and populate the IDL structure
+void Plan_Handler::process_plan(Deployment::DeploymentPlan& plan)
+{
+ for (DOMNode* node = this->iter_->nextNode();
+ node != 0;
+ node = this->iter_->nextNode())
+ {
+ XStr node_name (node->getNodeName ());
+
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:DeploymentPlan")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "label", plan.label));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (this->iter_, node_name, "UUID", plan.UUID));
+ else if
+ (process_element<Deployment::ComponentInterfaceDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "realizes", plan.realizes,
+ this, &Plan_Handler::process_ccd,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::MonolithicDeploymentDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "implementation", plan.implementation,
+ this, &Plan_Handler::process_mdd));
+ else if
+ (process_sequence_local<Deployment::InstanceDeploymentDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "instance", plan.instance,
+ this, &Plan_Handler::process_idd));
+ else if
+ (process_sequence_local<Deployment::PlanConnectionDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "connection", plan.connection,
+ this, &Plan_Handler::process_pcd));
+ else if
+ (process_sequence_local<Deployment::PlanPropertyMapping>
+ (this->doc_, this->iter_, node,
+ node_name, "externalProperty", plan.externalProperty,
+ this, &Plan_Handler::process_ppm));
+ else if
+ (process_sequence_common<Deployment::ImplementationDependency>
+ (this->doc_, this->iter_, node,
+ node_name, "dependsOn", plan.dependsOn,
+ &ID_Handler::process_ImplementationDependency, this->id_map_));
+ else if
+ (process_sequence_local<Deployment::ArtifactDeploymentDescription>
+ (this->doc_, this->iter_, node,
+ node_name, "artifact", plan.artifact,
+ this, &Plan_Handler::process_add));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (this->doc_, this->iter_, node,
+ node_name, "infoProperty", plan.infoProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else
+ {
+ // ??? How did we get here ???
+ ACE_THROW (CORBA::INTERNAL());
+ }
+ }
+
+ this->update_mdd_refs (plan);
+ this->update_idd_refs (plan);
+ this->update_pspe_refs (plan);
+ this->update_pspr_refs (plan);
+ return;
+}
+
+void Plan_Handler::process_rdd (DOMNodeIterator* iter,
+ Deployment::
+ ResourceDeploymentDescription& rdd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ResourceDeploymentDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "requirementName",
+ rdd.requirementName));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "resourceName", rdd.resourceName));
+ else if (node_name == XStr (ACE_TEXT ("resourceValue")))
+ {
+ Any_Handler::process_Any (iter, rdd.resourceValue);
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_irdd (DOMNodeIterator* iter,
+ Deployment::
+ InstanceResourceDeploymentDescription &irdd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:InstanceResourceDeploymentDescription")))
+ {
+ }
+ else if (node_name == XStr ("resourceUsage"))
+ {
+ RUK_Handler::process_ResourceUsageKind (iter, irdd.resourceUsage);
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "requirementName",
+ irdd.requirementName));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "resourceName", irdd.resourceName));
+ else if (node_name == XStr (ACE_TEXT ("resourceValue")))
+ {
+ Any_Handler::process_Any (iter, irdd.resourceValue);
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_add (DOMNodeIterator* iter,
+ Deployment::ArtifactDeploymentDescription& add)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ArtifactDeploymentDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", add.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "location", add.location));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "node", add.node));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "source", add.source));
+ else if
+ (process_sequence_common<Deployment::Property>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "execParameter", add.execParameter,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Requirement>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "deployRequirement", add.deployRequirement,
+ &Requirement_Handler::process_Requirement,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::ResourceDeploymentDescription>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "deployedResource", add.deployedResource,
+ this, &Plan_Handler::process_rdd));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_idd (DOMNodeIterator* iter,
+ Deployment::InstanceDeploymentDescription& idd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:InstanceDeploymentDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", idd.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "node", idd.node));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "source", idd.source));
+ else if
+ (process_reference (node, node_name, "implementation",
+ idd.implementationRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_sequence_common<Deployment::Property>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "configProperty", idd.configProperty,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::
+ InstanceResourceDeploymentDescription>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "deployedResource", idd.deployedResource,
+ this, &Plan_Handler::process_irdd));
+ else if
+ (process_sequence_local<Deployment::
+ InstanceResourceDeploymentDescription>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "deployedSharedResource", idd.deployedSharedResource,
+ this, &Plan_Handler::process_irdd));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_mdd (DOMNodeIterator* iter,
+ Deployment::MonolithicDeploymentDescription&
+ mdd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:MonolithicDeploymentDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", mdd.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "source", mdd.source));
+ else if
+ (process_reference_seq (node, node_name, "artifact",
+ mdd.artifactRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else if
+ (process_sequence_common<Deployment::Property>
+ (node->getOwnerDocument(), this->iter_, node,
+ node_name, "execParameter", mdd.execParameter,
+ &Property_Handler::process_Property,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::Requirement>
+ (node->getOwnerDocument(), this->iter_, node,
+ node_name, "deployRequirement", mdd.deployRequirement,
+ &Requirement_Handler::process_Requirement,
+ this->id_map_));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_ccd (DOMNodeIterator* iter,
+ Deployment::ComponentInterfaceDescription&
+ cid)
+{
+ CompIntrDesc_Handler handler (iter, false);
+ handler.process_ComponentInterfaceDescription (cid);
+}
+
+void Plan_Handler::process_pspr (DOMNodeIterator* iter,
+ Deployment::PlanSubcomponentPropertyReference& pspr)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:PlanSubcomponentPropertyReference")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "propertyName", pspr.propertyName));
+ else if
+ (process_reference (node, node_name, "instance", pspr.instanceRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_pspe (DOMNodeIterator* iter,
+ Deployment::PlanSubcomponentPortEndpoint& pspe)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:PlanSubcomponentPortEndpoint")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "portName", pspe.portName));
+ else if
+ (CIAO::Config_Handler::Utils::process_boolean
+ (iter, node_name, "provider", pspe.provider));
+ else if (node_name == XStr (ACE_TEXT ("kind")))
+ {
+ CPK_Handler::process_CCMComponentPortKind (iter, pspe.kind);
+ }
+ else if
+ (process_reference (node, node_name, "instance",
+ pspe.instanceRef,
+ this->index_, this->idref_map_))
+ {
+ this->index_ = this->index_ + 1;
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_ppm(DOMNodeIterator* iter,
+ Deployment::PlanPropertyMapping& ppm)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:PlanPropertyMapping")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", ppm.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "source", ppm.source));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "externalName", ppm.externalName));
+ else if
+ (process_sequence_local<Deployment::PlanSubcomponentPropertyReference>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "delegatesTo", ppm.delegatesTo,
+ this, &Plan_Handler::process_pspr));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_crdd (DOMNodeIterator* iter,
+ Deployment::
+ ConnectionResourceDeploymentDescription& crdd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:ConnectionResourceDeploymentDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "targetName", crdd.targetName));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "requirementName",
+ crdd.requirementName));
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "resourceName", crdd.resourceName));
+ else if (node_name == XStr (ACE_TEXT ("resourceValue")))
+ {
+ Any_Handler::process_Any (iter, crdd.resourceValue);
+ }
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::process_pcd (DOMNodeIterator* iter,
+ Deployment::PlanConnectionDescription& pcd)
+{
+ for (DOMNode* node = iter->nextNode();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:PlanConnectionDescription")))
+ {
+ }
+ else if
+ (CIAO::Config_Handler::Utils::process_string
+ (iter, node_name, "name", pcd.name));
+ else if
+ (CIAO::Config_Handler::Utils::process_string_seq
+ (iter, node_name, "source", pcd.source));
+ else if
+ (process_sequence_common<Deployment::Requirement>
+ (node->getOwnerDocument(), this->iter_, node,
+ node_name, "deployRequirement", pcd.deployRequirement,
+ &Requirement_Handler::process_Requirement,
+ this->id_map_));
+ else if
+ (process_sequence_common<Deployment::ComponentExternalPortEndpoint>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "externalEndpoint", pcd.externalEndpoint,
+ &CEPE_Handler::process_ComponentExternalPortEndpoint,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::PlanSubcomponentPortEndpoint>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "internalEndpoint", pcd.internalEndpoint,
+ this, &Plan_Handler::process_pspe));
+ else if
+ (process_sequence_common<Deployment::ExternalReferenceEndpoint>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "externalReference", pcd.externalReference,
+ &ERE_Handler::process_ExternalReferenceEndpoint,
+ this->id_map_));
+ else if
+ (process_sequence_local<Deployment::
+ ConnectionResourceDeploymentDescription>
+ (node->getOwnerDocument(), iter, node,
+ node_name, "deployedResource", pcd.deployedResource,
+ this, &Plan_Handler::process_crdd));
+ else
+ {
+ iter->previousNode();
+ return;
+ }
+ }
+}
+
+void Plan_Handler::update_mdd_refs (Deployment::DeploymentPlan& plan)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < plan.implementation.length (); ++x)
+ {
+ for (y = 0; y < plan.implementation[x].artifactRef.length (); ++y)
+ {
+ ref_value = plan.implementation[x].artifactRef[y];
+ //ACE_DEBUG ((LM_DEBUG, "ref_value in ADD is %d \n", ref_value));
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ plan.implementation[x].artifactRef[y] = orig_value;
+ }
+ }
+ }
+ }
+}
+
+void Plan_Handler::update_idd_refs (Deployment::DeploymentPlan& plan)
+{
+ CORBA::ULong x;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < plan.instance.length (); ++x)
+ {
+ ref_value = plan.instance[x].implementationRef;
+ //ACE_DEBUG ((LM_DEBUG, "ref_value in MDD is %d \n", ref_value));
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ plan.instance[x].implementationRef = orig_value;
+ }
+ }
+ }
+}
+
+void Plan_Handler::update_pspe_refs (Deployment::DeploymentPlan& plan)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < plan.connection.length (); ++x)
+ {
+ for (y = 0; y < plan.connection[x].internalEndpoint.length (); ++y)
+ {
+ ref_value = plan.connection[x].internalEndpoint[y].
+ instanceRef;
+ //ACE_DEBUG ((LM_DEBUG, "ref_value in IDD is %d \n", ref_value));
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ plan.connection[x].internalEndpoint[y].
+ instanceRef = orig_value;
+ }
+ }
+ }
+ }
+}
+
+void Plan_Handler::update_pspr_refs (Deployment::DeploymentPlan& plan)
+{
+ CORBA::ULong x;
+ CORBA::ULong y;
+ int ref_value;
+ int orig_value;
+ ACE_TString ref_name;
+
+ for (x = 0; x < plan.externalProperty.length (); ++x)
+ {
+ for (y = 0; y < plan.externalProperty[x].delegatesTo.length (); ++y)
+ {
+ ref_value = plan.externalProperty[x].delegatesTo[y].
+ instanceRef;
+ if (idref_map_.find (ref_value, ref_name) == 0)
+ {
+ if (id_map_.find (ref_name, orig_value) == 0)
+ {
+ plan.externalProperty[x].delegatesTo[y].
+ instanceRef = orig_value;
+ }
+ }
+ }
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.h
new file mode 100644
index 00000000000..c4994e4255d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.h
@@ -0,0 +1,251 @@
+//==================================================================
+/**
+ * @file Plan_Handler.h
+ *
+ * $Id$
+ *
+ * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ */
+//=====================================================================
+#ifndef PLAN_HANDLER_H
+#define PLAN_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Basic_Handler.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class Plan_Handler
+ *
+ * @brief Handler class for <DeploymentPlan> type
+ *
+ */
+
+class Config_Handler_Export Plan_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ Plan_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ Plan_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ Plan_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the plan type
+ void process_plan (Deployment::DeploymentPlan& plan);
+
+ /// process cid
+ void process_ccd (DOMNodeIterator* iter,
+ Deployment::ComponentInterfaceDescription& cid);
+
+ /// process pspr
+ void process_pspr (DOMNodeIterator* iter,
+ Deployment::PlanSubcomponentPropertyReference& pspr);
+
+ /// process pspe
+ void process_pspe (DOMNodeIterator* iter,
+ Deployment::PlanSubcomponentPortEndpoint& pspe);
+
+ /// process add
+ void process_add (DOMNodeIterator* iter,
+ Deployment::ArtifactDeploymentDescription& add);
+
+ /// process con
+ void process_pcd (DOMNodeIterator* iter,
+ Deployment::PlanConnectionDescription& con);
+
+ /// process external property
+ void process_ppm (DOMNodeIterator* iter,
+ Deployment::PlanPropertyMapping& ppm);
+
+ /// process idd
+ void process_idd (DOMNodeIterator* iter,
+ Deployment::InstanceDeploymentDescription& idd);
+
+ /// process mdd
+ void process_mdd (DOMNodeIterator* iter,
+ Deployment::MonolithicDeploymentDescription& mdd);
+
+ /// process rdd
+ void process_rdd (DOMNodeIterator* iter,
+ Deployment::ResourceDeploymentDescription& rdd);
+
+ /// process crdd
+ void process_crdd (DOMNodeIterator* iter,
+ Deployment::ConnectionResourceDeploymentDescription& crdd);
+ /// process irdd
+ void process_irdd (DOMNodeIterator* iter,
+ Deployment::InstanceResourceDeploymentDescription &irdd);
+
+ /// process the add name
+ void process_add_name (const XMLCh* name,
+ Deployment::ArtifactDeploymentDescription& add);
+
+ /// process the pspr property name
+ void process_pspr_prop_name (const XMLCh* name,
+ Deployment::PlanSubcomponentPropertyReference& pspr);
+
+ /// process the pspe port name
+ void process_pspe_port_name (const XMLCh* name,
+ Deployment::PlanSubcomponentPortEndpoint& pspe);
+
+ /// process the pspe provider
+ void process_pspe_provider (const XMLCh* value,
+ Deployment::PlanSubcomponentPortEndpoint& pspe);
+
+ /// process the idd name
+ void process_idd_name (const XMLCh* name,
+ Deployment::InstanceDeploymentDescription& idd);
+
+ /// process the ppm name
+ void process_ppm_name (const XMLCh* name,
+ Deployment::PlanPropertyMapping& ppm);
+
+ /// process the ppm external name
+ void process_ppm_ext_name (const XMLCh* name,
+ Deployment::PlanPropertyMapping& ppm);
+
+ /// process the idd node
+ void process_idd_node (const XMLCh* node,
+ Deployment::InstanceDeploymentDescription& idd);
+
+ /// process the idd source
+ void process_idd_source (const XMLCh* source,
+ Deployment::InstanceDeploymentDescription& idd);
+
+ /// process the add location
+ void process_add_location (const XMLCh* location,
+ Deployment::ArtifactDeploymentDescription& add);
+
+ /// process the add source
+ void process_add_source (const XMLCh* source,
+ Deployment::ArtifactDeploymentDescription& add);
+
+ /// process the add node
+ void process_add_node (const XMLCh* node,
+ Deployment::ArtifactDeploymentDescription& add);
+
+ /// process the mdd source
+ void process_mdd_source (const XMLCh* source,
+ Deployment::MonolithicDeploymentDescription& mdd);
+
+ /// process the ppm source
+ void process_ppm_source (const XMLCh* source,
+ Deployment::PlanPropertyMapping& ppm);
+
+ /// process the pcd source
+ void process_pcd_source (const XMLCh* source,
+ Deployment::PlanConnectionDescription& pcd);
+
+ /// process the pcd name
+ void process_pcd_name (const XMLCh* name,
+ Deployment::PlanConnectionDescription& pcd);
+
+ /// process the add node
+ void process_mdd_name (const XMLCh* name,
+ Deployment::MonolithicDeploymentDescription& mdd);
+
+ /// process the rdd req name
+ void process_rdd_req_name (const XMLCh* name,
+ Deployment::ResourceDeploymentDescription& rdd);
+
+ /// process the rdd res name
+ void process_rdd_res_name (const XMLCh* name,
+ Deployment::ResourceDeploymentDescription& rdd);
+
+ /// process the irdd res name
+ void process_irdd_res_name (const XMLCh* name,
+ Deployment::InstanceResourceDeploymentDescription &irdd);
+
+ /// process the crdd res name
+ void process_crdd_res_name (const XMLCh* name,
+ Deployment::ConnectionResourceDeploymentDescription& crdd);
+
+ /// process the crdd req name
+ void process_crdd_req_name (const XMLCh* name,
+ Deployment::ConnectionResourceDeploymentDescription& crdd);
+
+ /// process the crdd target name
+ void process_crdd_target_name (const XMLCh* name,
+ Deployment::ConnectionResourceDeploymentDescription& crdd);
+
+ /// process the irdd req name
+ void process_irdd_req_name (const XMLCh* name,
+ Deployment::InstanceResourceDeploymentDescription &irdd);
+
+ /// process the irdd res usage
+ void process_irdd_res_usage (const XMLCh* name,
+ Deployment::InstanceResourceDeploymentDescription &irdd);
+
+ /// process references
+ void process_refs (DOMNamedNodeMap* named_node_map);
+
+ /// update mdd refs
+ void update_mdd_refs (Deployment::DeploymentPlan& plan);
+
+ /// update idd refs
+ void update_idd_refs (Deployment::DeploymentPlan& plan);
+
+ /// update pspe refs
+ void update_pspe_refs (Deployment::DeploymentPlan& plan);
+
+ /// update pspr refs
+ void update_pspr_refs (Deployment::DeploymentPlan& plan);
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* PLAN_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.cpp
new file mode 100644
index 00000000000..76f2681189d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.cpp
@@ -0,0 +1,121 @@
+//==================================================================
+/**
+ * @file Process_Element.cpp
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#include "Process_Element.h"
+#include "ace/Auto_Ptr.h"
+#include "Utils.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/*
+ * Process references
+ */
+
+void
+process_refs(DOMNode*& node,
+ CORBA::ULongSeq& seq,
+ int& index,
+ IDREF_MAP& idref_map)
+{
+ CORBA::ULong i (seq.length ());
+ seq.length (i + 1);
+ seq[i] = index;
+ if (node->hasAttributes())
+ {
+ DOMNamedNodeMap* named_node_map = node->getAttributes ();
+ //auto_ptr<DOMNamedNodeMap> cleanup_nodemap (named_node_map);
+
+ int length = named_node_map->getLength ();
+
+ for (int j = 0; j < length; j++)
+ {
+ DOMNode* attribute_node = named_node_map->item (j);
+ XStr strattrnodename (attribute_node->getNodeName ());
+ char* aceattrnodevalue_ch = XMLString::transcode
+ (attribute_node->getNodeValue ());
+ ACE_TString aceattrnodevalue = aceattrnodevalue_ch;
+ XMLString::release (&aceattrnodevalue_ch);
+ if (strattrnodename == XStr (ACE_TEXT ("xmi:idref")))
+ {
+ //index = index + 1;
+ idref_map.bind (index, aceattrnodevalue);
+ }
+ }
+ }
+}
+
+void
+process_ref(DOMNode*& node,
+ CORBA::ULong& ref,
+ int& index,
+ IDREF_MAP& idref_map)
+{
+ ref = index;
+ if (node->hasAttributes ())
+ {
+ DOMNamedNodeMap* named_node_map = node->getAttributes ();
+ //auto_ptr<DOMNamedNodeMap> cleanup_nodemap (named_node_map);
+
+ int length = named_node_map->getLength ();
+
+ for (int j = 0; j < length; j++)
+ {
+ DOMNode* attribute_node = named_node_map->item (j);
+ XStr strattrnodename (attribute_node->getNodeName ());
+ char* aceattrnodevalue_ch = XMLString::transcode
+ (attribute_node->getNodeValue ());
+ ACE_TString aceattrnodevalue = aceattrnodevalue_ch;
+ XMLString::release (&aceattrnodevalue_ch);
+ if (strattrnodename == XStr (ACE_TEXT ("xmi:idref")))
+ {
+ //index = index + 1;
+ idref_map.bind (index, aceattrnodevalue);
+ }
+ }
+ }
+}
+
+/*
+ * Process function for references
+ */
+
+bool
+process_reference_seq (DOMNode* node,
+ XStr& node_name, const char* name,
+ CORBA::ULongSeq& seq,
+ int& index,
+ IDREF_MAP& idref_map)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ process_refs (node, seq, index, idref_map);
+
+ return result;
+}
+
+// Process reference
+bool
+process_reference (DOMNode* node,
+ XStr& node_name, const char* name,
+ CORBA::ULong& ref,
+ int& index,
+ IDREF_MAP& idref_map)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ process_ref (node, ref, index, idref_map);
+
+ return result;
+}
+
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.h
new file mode 100644
index 00000000000..42f37c4e319
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element.h
@@ -0,0 +1,197 @@
+// -*- C++ -*-
+
+//==================================================================
+/**
+ * @file Process_Element.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ * Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef PROCESS_ELEMENT_H
+#define PROCESS_ELEMENT_H
+
+#include "ciao/DeploymentC.h"
+#include "Config.h"
+#include "Basic_Handler.h"
+#include "Config_Handler_export.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMInputSource;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMNamedNodeMap;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+// ID map type definition
+typedef ACE_Hash_Map_Manager<ACE_TString, int, ACE_Null_Mutex> REF_MAP;
+typedef ACE_Hash_Map_Iterator<ACE_TString, int, ACE_Null_Mutex> REF_ITER;
+typedef ACE_Hash_Map_Manager<int, ACE_TString, ACE_Null_Mutex> IDREF_MAP;
+
+template <typename DATA>
+class Process_Function
+{
+public:
+ /// Destructor.
+ virtual ~Process_Function (void) {};
+
+ virtual void call (DOMDocument*, DOMNodeIterator*, DATA&) = 0;
+
+ void operator() (DOMDocument* doc, DOMNodeIterator* iter, DATA& data)
+ {
+ call (doc, iter, data);
+ }
+};
+
+/*
+ * Wrapper class for the process member functions.
+ */
+
+template <typename OBJ, typename DATA>
+class Process_Member_Function: public Process_Function<DATA>
+{
+public:
+ typedef void (OBJ::*func_type) (DOMNodeIterator*, DATA&);
+ typedef DATA data_type;
+
+ Process_Member_Function(OBJ& obj, func_type f)
+ : obj_(&obj), f_(f)
+ {
+ }
+
+ Process_Member_Function(OBJ* obj, func_type f)
+ : obj_(obj), f_(f)
+ {
+ }
+
+ virtual void call(DOMDocument* doc, DOMNodeIterator* iter, DATA& data)
+ {
+ obj_->set_doc (doc);
+ obj_->set_iter (iter);
+ (obj_->*f_) (iter, data);
+ }
+
+private:
+ OBJ* obj_;
+ func_type f_;
+};
+
+/*
+ * Wrapper class for the process member functions which does not have
+ DOMNodeIterator parameter
+ */
+
+template <typename OBJ, typename DATA>
+class Process_Member_Function_Remote: public Process_Function<DATA>
+{
+public:
+ typedef void (OBJ::*func_type) (DATA&);
+ typedef DATA data_type;
+
+ Process_Member_Function_Remote(OBJ& obj, func_type f)
+ : obj_(&obj), f_(f)
+ {
+ }
+
+ Process_Member_Function_Remote(OBJ* obj, func_type f)
+ : obj_(obj), f_(f)
+ {
+ }
+
+ virtual void call(DOMDocument* doc, DOMNodeIterator* iter, DATA& data)
+ {
+ obj_->set_iter(iter);
+ obj_->set_doc(doc);
+ (obj_->*f_) (data);
+ }
+
+private:
+ OBJ* obj_;
+ func_type f_;
+};
+
+/*
+ * Wrapper class for the static process member functions.
+ */
+
+template <typename DATA>
+class Process_Static_Function: public Process_Function<DATA>
+{
+public:
+ typedef void (*func_type) (DOMNodeIterator*, DATA&);
+ typedef DATA data_type;
+
+ Process_Static_Function(func_type f)
+ : f_(f)
+ {
+ }
+
+ virtual void call(DOMDocument*, DOMNodeIterator* iter, DATA& data)
+ {
+ (*f_) (iter, data);
+ }
+
+private:
+ func_type f_;
+};
+
+// Processes reference sequences
+bool
+process_reference_seq (DOMNode* node,
+ XStr& node_name, const char* name,
+ CORBA::ULongSeq& seq,
+ int& index,
+ IDREF_MAP& idref_map);
+
+// Process reference
+bool
+process_reference (DOMNode* node,
+ XStr& node_name, const char* name,
+ CORBA::ULong& ref,
+ int& index,
+ IDREF_MAP& idref_map);
+
+END_DEPLOYMENT_NAMESPACE
+
+#include "Process_Element_T.h"
+
+#endif // PROCESS_ELEMENT_H
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.cpp
new file mode 100644
index 00000000000..420f38ed884
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.cpp
@@ -0,0 +1,294 @@
+//=====================================================================
+/**
+ * @file Process_Element_T.cpp
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ * Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#include "Process_Element_T.h"
+#include "Old_Config_Handlers/Config_Error_Handler.h"
+#include "ace/Auto_Ptr.h"
+#include "Utils.h"
+#include <iostream>
+#include <memory>
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+class parser_error { };
+
+template<typename DATA, typename OBJECT, typename SEQUENCE, typename FUNCTION>
+bool
+process_sequence_local(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ SEQUENCE& seq, OBJECT* obj, FUNCTION func)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ Process_Member_Function<OBJECT, DATA>
+ pf(obj, func);
+ process_sequential_element (node, doc, iter, seq, &pf, obj->id_map());
+ }
+
+ return result;
+}
+
+template<typename DATA, typename OBJECT, typename SEQUENCE, typename FUNCTION>
+bool
+process_sequence_remote(DOMDocument* doc, DOMNodeIterator* iter, DOMNode*
+node,
+ XStr& node_name, const char* name,
+ SEQUENCE& seq, FUNCTION func,
+ REF_MAP& id_map)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ OBJECT obj (doc, iter, false);
+
+ Process_Member_Function_Remote<OBJECT, DATA>
+ pf(obj, func);
+ process_sequential_element (node, doc, iter, seq, &pf, id_map);
+ }
+
+ return result;
+}
+
+template<typename DATA, typename SEQUENCE, typename FUNCTION>
+bool
+process_sequence_common(DOMDocument* doc, DOMNodeIterator* iter, DOMNode*
+node,
+ XStr& node_name, const char* name,
+ SEQUENCE& seq, FUNCTION func,
+ REF_MAP& id_map)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ Process_Static_Function<DATA>
+ pf(func);
+ process_sequential_element (node, doc, iter, seq, &pf, id_map);
+ }
+
+ return result;
+}
+
+template<typename DATA, typename OBJECT, typename ELEMENT, typename FUNCTION>
+bool
+process_element(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ ELEMENT& elem, OBJECT* obj, FUNCTION func,
+ REF_MAP& id_map)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ if (node->hasAttributes ())
+ {
+ DOMNamedNodeMap* named_node_map = node->getAttributes ();
+ int length = named_node_map->getLength ();
+
+ Process_Member_Function<OBJECT, DATA>
+ pf(obj, func);
+
+ if (length == 1)
+ pf(doc, iter, elem);
+ else
+ process_element_attributes(named_node_map, doc, iter, 0, elem,
+&pf, id_map);
+ }
+ }
+
+ return result;
+}
+
+template<typename DATA, typename OBJECT, typename ELEMENT, typename FUNCTION>
+bool
+process_element_remote(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char *name,
+ ELEMENT& elem, FUNCTION func,
+ REF_MAP& id_map)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ OBJECT obj (iter, false);
+
+ if (node->hasAttributes ())
+ {
+ DOMNamedNodeMap* named_node_map = node->getAttributes ();
+ int length = named_node_map->getLength ();
+
+ Process_Member_Function_Remote<OBJECT, DATA>
+ pf(&obj, func);
+
+ if (length == 1)
+ pf(doc, iter, elem);
+ else
+ process_element_attributes(named_node_map, doc, iter, 0, elem,
+&pf, id_map);
+ }
+ }
+
+ return result;
+}
+
+template <typename VALUE, typename DATA>
+void process_element_attributes(DOMNamedNodeMap* named_node_map,
+ DOMDocument* doc,
+ DOMNodeIterator* iter,
+ VALUE value,
+ DATA& data,
+ Process_Function <DATA>* func,
+ REF_MAP& id_map)
+{
+ char* final_url_ch;
+ try
+ {
+ // the number of attributes
+ int length = named_node_map->getLength();
+ // iterate the attributes
+ for (int j = 0; j < length; ++j)
+ {
+ DOMNode* attribute_node = named_node_map->item (j);
+ XStr strattrnodename (attribute_node->getNodeName ());
+ char* aceattrnodevalue_ch =
+ XMLString::transcode (attribute_node->getNodeValue ());
+ ACE_TString aceattrnodevalue = aceattrnodevalue_ch;
+ XMLString::release (&aceattrnodevalue_ch);
+
+ // if xmi::id is given process the element and bind the value
+ if (strattrnodename == XStr (ACE_TEXT ("xmi:id")))
+ {
+ (*func) (doc, iter, data);
+ id_map.bind (aceattrnodevalue, value);
+ }
+ // if href is given find out the referenced position
+ // and process the element
+ else if (strattrnodename == XStr (ACE_TEXT ("href")))
+ {
+ XMLURL xml_url (aceattrnodevalue.c_str ());
+ XMLURL result (aceattrnodevalue.c_str ());
+ std::string url_string = aceattrnodevalue.c_str ();
+ char* doc_path_ch =
+ XMLString::transcode ( doc->getDocumentURI ());
+ ACE_TString doc_path = doc_path_ch;
+ XMLString::release (&doc_path_ch);
+ XMLCh* rel_str =
+ (XMLString::transcode (doc_path.c_str ()));
+ result.makeRelativeTo
+ (rel_str);
+ final_url_ch =
+ XMLString::transcode (result.getURLText ());
+ ACE_TString final_url = final_url_ch;
+ XMLString::release (&final_url_ch);
+ XMLString::release (&rel_str);
+
+ DOMDocument* href_doc;
+
+ std::auto_ptr<DOMBuilder> parser (
+ CIAO::Config_Handler::Utils::create_parser ());
+
+ CIAO::Config_Handler::Config_Error_Handler handler;
+ parser->setErrorHandler(&handler);
+
+ if (xml_url.isRelative ())
+ {
+ href_doc = parser->parseURI (final_url.c_str ());
+ if (handler.getErrors ())
+ {
+ ACE_DEBUG ((LM_DEBUG, "XML descriptor error\n"));
+ //throw parser_error ();
+ throw DOMException ();
+ }
+ }
+ else
+ {
+ href_doc = parser->parseURI (url_string.c_str ());
+ if (handler.getErrors ())
+ {
+ ACE_DEBUG ((LM_DEBUG, "XML descriptor error\n"));
+ //throw parser_error ();
+ throw DOMException ();
+ }
+ }
+
+ DOMDocumentTraversal* traverse = href_doc;
+ DOMNode* root = (href_doc->getDocumentElement ());
+ unsigned long filter = DOMNodeFilter::SHOW_ELEMENT |
+ DOMNodeFilter::SHOW_TEXT;
+ DOMNodeIterator* href_iter = traverse->createNodeIterator
+ (root,
+ filter,
+ 0,
+ true);
+ href_iter->nextNode ();
+ (*func) (href_doc, href_iter, data);
+ }
+ }
+ }
+ catch (const DOMException& e)
+ {
+ const unsigned int maxChars = 2047;
+ XMLCh errText[maxChars + 1];
+
+ ACE_ERROR ((LM_ERROR, "\nException occured while parsing %s: \
+ \n",final_url_ch));
+ ACE_ERROR ((LM_ERROR, "DOMException code: %d\n ", e.code));
+ if (DOMImplementation::loadDOMExceptionMsg (e.code, errText, maxChars))
+ {
+ char* message = XMLString::transcode (errText);
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_ERROR ((LM_ERROR, "Message is: %s\n", message));
+ }
+ ACE_ERROR ((LM_ERROR, "Caught DOM exception\n\n"));
+ return;
+ }
+ catch (...)
+ {
+ ACE_DEBUG ((LM_DEBUG, "Caught unknown exception\n\n"));
+ return;
+ }
+}
+
+template <typename SEQUENCE, typename DATA>
+void
+process_sequential_element (DOMNode* node,
+ DOMDocument* doc,
+ DOMNodeIterator* iter,
+ SEQUENCE& seq,
+ Process_Function <DATA>* func,
+ REF_MAP& id_map)
+{
+ if (node->hasAttributes ())
+ {
+ // the size of the sequence
+ CORBA::ULong i = seq.length ();
+
+ // add 1 to the size of the sequence
+ seq.length (i + 1);
+
+ // fetch attributes
+ DOMNamedNodeMap* named_node_map = node->getAttributes ();
+
+ // the number of attributes the element have
+ int length = named_node_map->getLength();
+ // if there is no other attribute but 'version'
+
+ if (length == 1) // call directly the static process_ method
+ (*func) (doc, iter, seq[i]);
+ else // Check the xmi::id & href attributes
+ process_element_attributes(named_node_map, doc, iter, i, seq[i], func, id_map);
+ }
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.h
new file mode 100644
index 00000000000..693f0338a47
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Process_Element_T.h
@@ -0,0 +1,90 @@
+//==================================================================
+/**
+ * @file Process_Element_T.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ * Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef PROCESS_ELEMENT_T_H
+#define PROCESS_ELEMENT_T_H
+
+#include "Process_Element.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+// processes sequence - not for common elements, process function is a
+// member of "this" -
+template<typename DATA, typename OBJECT, typename SEQUENCE, typename FUNCTION>
+bool
+process_sequence_local(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ SEQUENCE& seq, OBJECT* obj, FUNCTION func);
+
+// processes sequence - not for common elements, process function is not a
+// member of "this" -
+template<typename DATA, typename OBJECT, typename SEQUENCE, typename FUNCTION>
+bool
+process_sequence_remote(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ SEQUENCE& seq, FUNCTION func,
+ REF_MAP& id_map);
+
+// Processes sequence - common elements -
+template<typename DATA, typename SEQUENCE, typename FUNCTION>
+bool
+process_sequence_common(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ SEQUENCE& seq, FUNCTION func,
+ REF_MAP& id_map);
+
+// Process function for non-sequential elements
+template<typename DATA, typename OBJECT, typename ELEMENT, typename FUNCTION>
+bool
+process_element(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ ELEMENT& elem, OBJECT* obj, FUNCTION func,
+ REF_MAP& id_map);
+
+// Process function for non-sequential non-local elements
+template<typename DATA, typename OBJECT, typename ELEMENT, typename FUNCTION>
+bool
+process_element_remote(DOMDocument* doc, DOMNodeIterator* iter, DOMNode* node,
+ XStr& node_name, const char* name,
+ ELEMENT& elem, OBJECT* obj, FUNCTION func,
+ REF_MAP& id_map);
+
+template <typename SEQUENCE, typename DATA>
+void
+process_sequential_element (DOMNode* node,
+ DOMDocument* doc,
+ DOMNodeIterator* iter,
+ SEQUENCE& seq,
+ Process_Function <DATA>* func,
+ REF_MAP& id_map);
+
+template <typename VALUE, typename DATA>
+void process_element_attributes (DOMNamedNodeMap* named_node_map,
+ DOMDocument* doc, DOMNodeIterator* iter,
+ VALUE value, DATA& data,
+ Process_Function <DATA>* func,
+ REF_MAP& id_map);
+
+END_DEPLOYMENT_NAMESPACE
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "Process_Element_T.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("Process_Element_T.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+#endif // PROCESS_ELEMENT_H
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.cpp
new file mode 100644
index 00000000000..0260921be11
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.cpp
@@ -0,0 +1,83 @@
+//$Id$
+
+#include "Property_Handler.h"
+#include "Any_Handler.h"
+#include "Utils.h"
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/SString.h"
+
+
+using CIAO::Config_Handler::Utils;
+using CIAO::Config_Handler::Any_Handler;
+
+void
+CIAO::Config_Handler::Property_Handler::process_Property (DOMNodeIterator * iter,
+ Deployment::Property &property)
+{
+ int valid_name = 0, valid_value = 0;
+ for (DOMNode * node = iter->nextNode (); node != 0; node = iter->nextNode ())
+ {
+ //Check if the Schema IDs for both the elements match
+ XStr name (node->getNodeName ());
+ if (name == XStr (ACE_TEXT ("name")))
+ {
+ valid_name = 1;
+ property.name = Utils::parse_string (iter);
+ }
+ else if (name == XStr (ACE_TEXT ("value")))
+ {
+ valid_value = 1;
+ if (node->hasAttributes ())
+ {
+ xercesc::DOMNamedNodeMap * named_node_map =
+ node->getAttributes ();
+ int length = named_node_map->getLength ();
+ if (length > 1)
+ {
+ for (int j = 0; j < length; j++)
+ {
+ DOMNode * attr_node = named_node_map->item (j);
+ XStr attr_node_name = attr_node->getNodeName ();
+ char* attr_node_value_ch =
+ XMLString::transcode (attr_node->getNodeValue ());
+ ACE_TString attr_node_value = attr_node_value_ch;
+ XMLString::release (&attr_node_value_ch);
+ if (attr_node_name = XStr (ACE_TEXT ("href")))
+ {
+ XMLURL url (attr_node_value.c_str ());
+ DOMNodeIterator * value_iter =
+ Utils::parse_href_tag (url,
+ node->getOwnerDocument ());
+ // Get to the root-node
+ value_iter->nextNode ();
+
+ // Process the value node present there
+ Any_Handler::process_Any (value_iter,
+ property.value);
+ }
+ }
+ }
+ else if (length == 1)
+ Any_Handler::process_Any (iter, property.value);
+ }
+ else
+ // Process the value associated
+ Any_Handler::process_Any (iter, property.value);
+ }
+ else
+ {
+ if (! valid_name || ! valid_value)
+ {
+ ACE_DEBUG ((LM_DEBUG, "Config_Handlers::Property_Handler::\
+ process_Property element mismatch expected <name> \
+ or <value>"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Processed one element more go back one and exit
+ iter->previousNode ();
+ break;
+ }
+ }/* End Outer for */
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.h
new file mode 100644
index 00000000000..1e392aea185
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Property_Handler.h
@@ -0,0 +1,55 @@
+//==================================================================
+/**
+ * @file Property_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//===================================================================
+
+#ifndef PROPERTY_HANDLER_H
+#define PROPERTY_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+
+#include "Config_Handler_export.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class Property_Handler
+ *
+ * @brief Handler class for <Property> type
+ *
+ * This class defines handler methods to parse Property
+ * types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export Property_Handler
+ {
+ public:
+ static void process_Property (DOMNodeIterator * iter,
+ Deployment::Property &property);
+ // process elements of type Property definitions in
+ // the descriptor files
+
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* PROPERTY_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.cpp
new file mode 100644
index 00000000000..0d385e759c1
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.cpp
@@ -0,0 +1,130 @@
+//$Id$
+
+#include "RS_Handler.h"
+#include "SP_Handler.h"
+#include "Utils.h"
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/SString.h"
+
+
+void
+CIAO::Config_Handler::RS_Handler::
+process_RequirementSatisfier (DOMNodeIterator * iter,
+ Deployment::RequirementSatisfier &ret_struct)
+{
+ // boolean to represent valid <RequirementSatisfier> definition
+ int valid_name = 0, valid_resourceType = 0, valid_property = 0;
+
+ for (DOMNode * node = iter->nextNode (); ; node = iter->nextNode ())
+ {
+ XStr name (node->getNodeName ());
+ if (name == XStr (ACE_TEXT ("name")))
+ {
+ ret_struct.name = CIAO::Config_Handler::Utils::parse_string (iter);
+ valid_name = 1;
+ }
+ else if (name == XStr (ACE_TEXT ("resourceType")))
+ {
+ valid_resourceType = 1;
+ // Requirement: Atleast one <resourceType> definition present
+ ::CORBA::StringSeq_var res_seq = 0;
+ ACE_NEW_THROW_EX (res_seq,
+ ::CORBA::StringSeq (1),
+ CORBA::NO_MEMORY ());
+ res_seq->length (0);
+
+ while (name == XStr (ACE_TEXT ("resourceType")))
+ {
+ ::CORBA::ULong index = res_seq->length ();
+ res_seq->length (res_seq->length () + 1);
+ res_seq [index] =
+ CIAO::Config_Handler::Utils::parse_string (iter);
+ name = node->getNodeName ();
+ }
+
+ // On exit go one step back to faciliate parsing next tag
+ iter->previousNode ();
+
+ // Assign this sequence to the Return Structure
+ ret_struct.resourceType = res_seq;
+ }
+
+ else if (name == XStr (ACE_TEXT ("property")))
+ {
+ valid_property = 1;
+ Deployment::SatisfierProperties_var property_seq = 0;
+ DOMNodeIterator * property_iter = 0;
+ ACE_NEW_THROW_EX (property_seq,
+ Deployment::SatisfierProperties,
+ CORBA::NO_MEMORY ());
+ property_seq->length (0);
+ while (name == XStr (ACE_TEXT ("property")))
+ {
+ // Check for <href> tags
+ if (node->hasAttributes ())
+ {
+ xercesc::DOMNamedNodeMap * named_node_map =
+ node->getAttributes ();
+ int length = named_node_map->getLength ();
+ if (length > 1)
+ {
+ for (int j = 0; j < length; j++)
+ {
+ DOMNode * attr_node = named_node_map->item (j);
+ XStr attr_node_name = attr_node->getNodeName ();
+ char* attr_node_value_ch =
+ XMLString::transcode (attr_node->getNodeValue ());
+ ACE_TString attr_node_value = attr_node_value_ch;
+ XMLString::release (&attr_node_value_ch);
+ if (attr_node_name = XStr (ACE_TEXT ("href")))
+ {
+ XMLURL url (attr_node_value.c_str ());
+ DOMNodeIterator * value_iter =
+ Utils::parse_href_tag (url,
+ node->getOwnerDocument ());
+ // Get to the root-node
+ value_iter->nextNode ();
+
+ // Process the property href tag
+ property_iter = value_iter;
+ }
+ }
+ }
+ }
+ else
+ property_iter = iter;
+
+ // Copy the property onto the sequence
+ ::CORBA::ULong index = property_seq->length ();
+ property_seq->length (property_seq->length () + 1);
+ CIAO::Config_Handler::SP_Handler::
+ process_SatisfierProperty (property_iter,
+ property_seq [index]);
+
+ // Get next node
+ iter->nextNode ();
+ name = node->getNodeName ();
+ }
+
+ // On exit go one step back to faciliate parsing next tag
+ iter->previousNode ();
+
+ // Copy the sequence to return structure
+ ret_struct.property = property_seq;
+ }
+ else
+ {
+ if (! valid_name || ! valid_resourceType || ! valid_property)
+ ACE_DEBUG ((LM_DEBUG, "Config_Handlers::RS_Handler::process_ \
+ RequirementSatisfier element mismatch expected <name>,\
+ <resourceType> <property>\n"));
+ // On exit go one step back as one might have processed the next
+ // valid tag
+ iter->previousNode ();
+
+ // Exit out of the for loop
+ break;
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.h
new file mode 100644
index 00000000000..dff3a6e149d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/RS_Handler.h
@@ -0,0 +1,57 @@
+//==================================================================
+/**
+ * @file RS_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//==================================================================
+
+#ifndef RS_HANDLER_H
+#define RS_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class RS_Handler
+ *
+ * @brief Handler class for <RequirementSatisfier> type
+ *
+ * This class defines handler methods to parse RequirementSatisfier
+ * types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export RS_Handler
+ {
+ public:
+ static void
+ process_RequirementSatisfier (DOMNodeIterator * iter,
+ Deployment::RequirementSatisfier &ret_struct);
+ // process elements of type RequirementSatisfier definitions in
+ // the descriptor files
+
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* ID_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.cpp
new file mode 100644
index 00000000000..08f390824dc
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.cpp
@@ -0,0 +1,61 @@
+//==================================================================
+/**
+ * @file RUK_Handler.cpp
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+
+#include "IAD_Handler.h"
+#include "RUK_Handler.h"
+#include "Utils.h"
+
+#include <iostream>
+
+using std::cerr;
+using std::endl;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /*
+ * Class ResourceUsageKind_Handler
+ */
+
+ void RUK_Handler::process_ResourceUsageKind
+ (DOMNodeIterator *iter, ::Deployment::ResourceUsageKind &kind)
+ {
+ // -- ResourceUsageKind enum
+ XStr none ("None");
+ XStr instance_uses_resource ("InstanceUsesResource");
+ XStr resource_uses_instance ("ResourceUsesInstance");
+ XStr port_uses_resource ("PortUsesResource");
+ XStr resource_uses_port ("ResourceUsesPort");
+
+ XStr kind_str = XStr (Utils::parse_string (iter));
+ if (kind_str == none)
+ kind = Deployment::None;
+ else if (kind_str = instance_uses_resource)
+ kind = Deployment::InstanceUsesResource;
+ else if (kind_str == resource_uses_instance)
+ kind = Deployment::ResourceUsesInstance;
+ else if (kind_str == port_uses_resource)
+ kind = Deployment::PortUsesResource;
+ else if (kind_str == resource_uses_port)
+ kind = Deployment::ResourceUsesPort;
+
+ // Something wrong here.. Throw exception
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handler::RUK_Handler::process_ResourceUsageKind \
+ illegal <ResourceUsageKind> value found \n"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.h
new file mode 100644
index 00000000000..b988eead549
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/RUK_Handler.h
@@ -0,0 +1,77 @@
+//==================================================================
+/**
+ * @file RUK_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef RUK_HANDLER_H
+#define RUK_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+
+ /**
+ * @class RUK_Handler
+ *
+ * @brief Handler class for <ResourceUsageKind> type
+ *
+ * This class defines handler methods to parse ResourceUsage
+ * Kind types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+
+ class Config_Handler_Export RUK_Handler {
+ public:
+
+ /// Process elements of type ResourceUsageKind definitions in
+ /// the description files.
+ static void
+ process_ResourceUsageKind (DOMNodeIterator *iter, ::Deployment::ResourceUsageKind &kind);
+ };
+
+ }
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* RUK_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.cpp
new file mode 100644
index 00000000000..2b6eb94fb9c
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.cpp
@@ -0,0 +1,115 @@
+//$Id$
+
+#include "Requirement_Handler.h"
+#include "Property_Handler.h"
+#include "Utils.h"
+#include "tao/Exception.h"
+#include "ace/SString.h"
+
+
+using CIAO::Config_Handler::Property_Handler;
+
+void
+CIAO::Config_Handler::Requirement_Handler::process_Requirement (DOMNodeIterator * iter,
+ Deployment::Requirement &ret_struct)
+{
+ int valid_resourceType = 0, valid_property = 0, valid_name = 0;
+ for (DOMNode * node = iter->nextNode ();
+ node != 0;
+ node = iter->nextNode ())
+ {
+ XStr name (node->getNodeName ());
+ if (name == XStr (ACE_TEXT ("resourceType")))
+ {
+ valid_resourceType = 1;
+ // Populate the structure
+ ret_struct.resourceType =
+ CIAO::Config_Handler::Utils::parse_string (iter);
+ }
+ else if (name == XStr (ACE_TEXT ("property")))
+ {
+ Deployment::Properties_var properties = 0;
+ ACE_NEW_THROW_EX (properties,
+ Deployment::Properties,
+ CORBA::NO_MEMORY ());
+ properties->length (0);
+
+ for (node = iter->nextNode ();
+ name == XStr (ACE_TEXT ("property"));
+ iter->nextNode ())
+ {
+ // Increment length of sequence
+ ::CORBA::ULong index = properties->length ();
+ properties->length (properties->length () + 1);
+ DOMNodeIterator * property_iter = 0;
+
+ // Check for <href> tags
+ if (node->hasAttributes ())
+ {
+ xercesc::DOMNamedNodeMap * named_node_map =
+ node->getAttributes ();
+ int length = named_node_map->getLength ();
+
+ if (length > 1)
+ {
+ for (int j = 0; j < length; j++)
+ {
+ DOMNode * attr_node = named_node_map->item (j);
+ XStr attr_node_name = attr_node->getNodeName ();
+ char* attr_node_value_ch =
+ XMLString::transcode (attr_node->getNodeValue ());
+ ACE_TString attr_node_value = attr_node_value_ch;
+ auto_ptr<char> cleanup_char (attr_node_value_ch);
+ if (attr_node_name = XStr (ACE_TEXT ("href")))
+ {
+ XMLURL url (attr_node_value.c_str ());
+ DOMNodeIterator * value_iter =
+ Utils::parse_href_tag (url,
+ node->getOwnerDocument ());
+ // Get to the root-node
+ value_iter->nextNode ();
+
+ // Process the property href tag
+ property_iter = value_iter;
+ }
+ }
+ }
+ else
+ property_iter = iter;
+
+ // Deep copy the value
+ CIAO::Config_Handler::Property_Handler::
+ process_Property (property_iter, properties [index]);
+ }
+ }
+ valid_property = 1;
+
+ // On exit go one step back to faciliate parsing next tag
+ iter->previousNode ();
+
+ // Copy sequence on to return struct
+ ret_struct.property = properties;
+ }
+ else if (name == XStr (ACE_TEXT ("name")))
+ {
+ valid_name = 1;
+ ret_struct.name = CIAO::Config_Handler::Utils::parse_string (iter);
+ }
+ else
+ {
+ if (! valid_resourceType ||
+ ! valid_property ||
+ ! valid_name)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handlers::Requirement_Handler::process_\
+ Requirement element mismatch expected <resourceType>\
+ , <property> or <name>"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ // On exit go one step back as we have read one too many
+ iter->previousNode ();
+ break;
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.h
new file mode 100644
index 00000000000..c01ead11cab
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Requirement_Handler.h
@@ -0,0 +1,57 @@
+//==================================================================
+/**
+ * @file Requirement_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef REQUIREMENT_HANDLER_H
+#define REQUIREMENT_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class Requirement_Handler
+ *
+ * @brief Handler class for <ImplementationDependency> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Dependency types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export Requirement_Handler
+ {
+ public:
+ static void
+ process_Requirement (DOMNodeIterator * iter,
+ Deployment::Requirement &ret_struct);
+ // process elements of type Requirement in the descriptor files
+
+ };
+ }
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* REQUIREMENT_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.cpp
new file mode 100644
index 00000000000..e7731252994
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.cpp
@@ -0,0 +1,41 @@
+//$Id$
+
+#include "SPK_Handler.h"
+#include "tao/Exception.h"
+#include "Utils.h"
+
+using CIAO::Config_Handler::Utils;
+
+void
+CIAO::Config_Handler::SPK_Handler::
+process_SatisfierPropertyKind (DOMNodeIterator * iter,
+ Deployment::SatisfierPropertyKind &kind)
+{
+ // -- SatisfierPropertyKind enum
+ XStr quantity ("Quantity");
+ XStr capacity ("Capacity");
+ XStr minimum ("Minimum");
+ XStr maximum ("Maximum");
+ XStr attribute ("Attribute");
+ XStr selection ("Selection");
+
+ XStr kind_str = XStr (Utils::parse_string (iter));
+ if (kind_str == quantity)
+ kind = Deployment::Quantity;
+ else if (kind_str = capacity)
+ kind = Deployment::Capacity;
+ else if (kind_str == minimum)
+ kind = Deployment::Minimum;
+ else if (kind_str == maximum)
+ kind = Deployment::Maximum;
+ else if (kind_str == attribute)
+ kind = Deployment::Attribute;
+ else if (kind_str == selection)
+ kind = Deployment::Selection;
+
+ // Something wrong here.. Throw exception
+ ACE_DEBUG ((LM_DEBUG,
+ "Config_Handler::SPK_Handler::process_SPK \
+ illegal <SatisfierPropertyKind> value found \n"));
+ ACE_THROW (CORBA::INTERNAL ());
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.h
new file mode 100644
index 00000000000..7a9caa3c2a0
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/SPK_Handler.h
@@ -0,0 +1,57 @@
+//==================================================================
+/**
+ * @file SPK_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef SPK_HANDLER_H
+#define SPK_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class SPK_Handler
+ *
+ * @brief Handler class for <SatisfierPropertyKind> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Dependency types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export SPK_Handler
+ {
+ public:
+ static void process_SatisfierPropertyKind (DOMNodeIterator * iter,
+ Deployment::SatisfierPropertyKind &kind);
+ // process elements of type SatisfierPropertyKind definitions in
+ // the descriptor files
+
+ };
+ }
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* SPK_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.cpp
new file mode 100644
index 00000000000..f741b93e701
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.cpp
@@ -0,0 +1,81 @@
+//$Id$
+
+#include "SP_Handler.h"
+#include "Any_Handler.h"
+#include "SPK_Handler.h"
+#include "Utils.h"
+#include "tao/Exception.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/SString.h"
+
+
+using CIAO::Config_Handler::Utils;
+using CIAO::Config_Handler::Any_Handler;
+
+void
+CIAO::Config_Handler::SP_Handler::
+process_SatisfierProperty (DOMNodeIterator * iter,
+ Deployment::SatisfierProperty &property)
+{
+ for (DOMNode * node = iter->nextNode (); ; node = iter->nextNode ())
+ {
+ // Get name of the current element
+ XStr name (node->getNodeName ());
+
+ if (name == XStr (ACE_TEXT ("name")))
+ property.name = Utils::parse_string (iter);
+ else if (name == XStr (ACE_TEXT ("kind")))
+ SPK_Handler::process_SatisfierPropertyKind (iter, property.kind);
+ else if (name == XStr (ACE_TEXT ("value")))
+ {
+ // Check for <href> tags
+ if (node->hasAttributes ())
+ {
+ xercesc::DOMNamedNodeMap * named_node_map =
+ node->getAttributes ();
+ int length = named_node_map->getLength ();
+ if (length > 1)
+ {
+ for (int j = 0; j < length; j++)
+ {
+ DOMNode * attr_node = named_node_map->item (j);
+ XStr attr_node_name = attr_node->getNodeName ();
+ char* attr_node_value_ch =
+ XMLString::transcode (attr_node->getNodeValue ());
+ ACE_TString attr_node_value = attr_node_value_ch;
+ XMLString::release (&attr_node_value_ch);
+ if (attr_node_name = XStr (ACE_TEXT ("href")))
+ {
+ XMLURL url (attr_node_value.c_str ());
+ DOMNodeIterator * value_iter =
+ Utils::parse_href_tag (url,
+ node->getOwnerDocument ());
+
+ // Get to the root-node
+ value_iter->nextNode ();
+
+ // Process the property href tag
+ Any_Handler::process_Any (value_iter,
+ property.value);
+ }
+ }
+ }
+ }
+ else
+ // Populate value for the Property
+ Any_Handler::process_Any (iter, property.value);
+ }
+ else
+ {
+ ACE_DEBUG ((LM_DEBUG, "Config_Handlers::SP_Handler::process_ \
+ RequirementSatisfier element mismatch expected <name> \
+ or <PropertyKind> <Deployment:Any>"));
+
+ // Get the previous iterator
+ iter->previousNode ();
+
+ // Exit from the for loop
+ break;
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.h
new file mode 100644
index 00000000000..a45dcf7d508
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/SP_Handler.h
@@ -0,0 +1,56 @@
+//==================================================================
+/**
+ * @file SP_Handler.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef SP_HANDLER_H
+#define SP_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLString;
+using xercesc::DOMText;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+
+namespace CIAO
+{
+ namespace Config_Handler
+ {
+ /**
+ * @class SP_Handler
+ *
+ * @brief Handler class for <SatisfierProperty> type
+ *
+ * This class defines handler methods to parse Implementation
+ * Dependency types in the descriptor files. The corresponding
+ * CORBA IDL type for the schema element is returned.
+ *
+ */
+ class Config_Handler_Export SP_Handler
+ {
+ public:
+ static void process_SatisfierProperty (DOMNodeIterator * iter,
+ Deployment::SatisfierProperty &property);
+ // process elements of type SatisfierProperty definitions in
+ // the descriptor files
+
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* ID_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.cpp
new file mode 100644
index 00000000000..d145106bae5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.cpp
@@ -0,0 +1,88 @@
+// $Id$
+
+#include "tao/Exception.h"
+#include "ace/Log_Msg.h"
+#include "Property_Handler.h"
+#include "Requirement_Handler.h"
+#include "CPR_Handler.h"
+#include "CompPkgDesc_Handler.h"
+#include "TPD_Handler.h"
+#include "Process_Element.h"
+#include "Utils.h"
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/// handle the package configuration and populate it
+ACE_TString TPD_Handler::process_TopLevelPackageDescription()
+{
+ for (DOMNode* node = this->iter_->nextNode ();
+ node != 0;
+ node = this->iter_->nextNode ())
+ {
+ XStr node_name (node->getNodeName());
+ if (node_name == XStr
+ (ACE_TEXT ("Deployment:TopLevelPackageDescription")))
+ {
+ }
+ else if (node_name == XStr(ACE_TEXT ("package")))
+ {
+ if (node->hasAttributes ())
+ {
+ DOMNamedNodeMap* named_node_map = node->getAttributes ();
+
+ // the number of attributes
+ int length = named_node_map->getLength();
+ // iterate the attributes
+ for (int j = 0; j < length; ++j)
+ {
+ DOMNode* attribute_node = named_node_map->item (j);
+ XStr strattrnodename (attribute_node->getNodeName ());
+
+ char * temp =
+ XMLString::transcode (attribute_node->getNodeValue ());
+ ACE_TString aceattrnodevalue = temp;
+ XMLString::release (&temp);
+
+ // if href is given find out the referenced position
+ // and process the element
+ if (strattrnodename == XStr (ACE_TEXT ("href")))
+ {
+ XMLURL xml_url (aceattrnodevalue.c_str ());
+ XMLURL result (aceattrnodevalue.c_str ());
+ ACE_TString url_string = aceattrnodevalue.c_str ();
+
+ char * temp =
+ XMLString::transcode ( doc_->getDocumentURI ());
+ ACE_TString doc_path = temp;
+ XMLString::release (&temp);
+
+ XMLCh * relative_path =
+ XMLString::transcode (doc_path.c_str ());
+ result.makeRelativeTo (relative_path);
+ XMLString::release (&relative_path);
+
+ temp = XMLString::transcode (result.getURLText ());
+ ACE_TString final_url = temp;
+ XMLString::release (&temp);
+
+ if (xml_url.isRelative ())
+ {
+ return final_url;
+ }
+ else
+ {
+ return url_string;
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ break;
+ }
+ }
+ ACE_THROW (CORBA::INTERNAL());
+}
+
+END_DEPLOYMENT_NAMESPACE
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.h
new file mode 100644
index 00000000000..20b7020bd58
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/TPD_Handler.h
@@ -0,0 +1,87 @@
+//==================================================================
+/**
+ * @file TPD_Handler.h
+ *
+ * $Id$
+ *
+ * @author Emre Turkay <turkaye@dre.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef TPD_HANDLER_H
+#define TPD_HANDLER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "Config_Handler_export.h"
+#include "Basic_Handler.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/SString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include "XercesString.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMText;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+BEGIN_DEPLOYMENT_NAMESPACE
+
+/**
+ * @class TPD_Handler
+ *
+ * @brief Handler class for <TopLevelPackageConfiguration> type
+ *
+ * This class is within the Component Data Model subpackage of the
+ * Deployment & Configuration package.
+ *
+ * This class defines handler methods to parse the aforementioned type
+ * in the description files. The corresponding CORBA IDL type for this
+ * element is returned.
+ */
+
+class Config_Handler_Export TPD_Handler: public Basic_Handler
+{
+public:
+
+ /// constructor
+ TPD_Handler (DOMDocument* doc, unsigned long filter_)
+ : Basic_Handler (doc, filter_) { }
+
+ /// constructor
+ TPD_Handler (DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (iter, release) { }
+
+ /// constructor
+ TPD_Handler (DOMDocument* doc, DOMNodeIterator* iter, bool release = false)
+ : Basic_Handler (doc, iter, release) { }
+
+ /// Process the package configuration
+ ACE_TString process_TopLevelPackageDescription ();
+
+};
+
+END_DEPLOYMENT_NAMESPACE
+
+#include /**/ "ace/post.h"
+
+#endif /* TPD_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.cpp
new file mode 100644
index 00000000000..02068be58ad
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.cpp
@@ -0,0 +1,350 @@
+//$Id$
+
+#include "Utils.h"
+#include "ace/OS_NS_stdlib.h"
+#include "ace/Log_Msg.h"
+#include "ace/SString.h"
+#include "ace/Auto_Ptr.h"
+
+#include "XercesString.h"
+#include <xercesc/util/XMLURL.hpp>
+#include <xercesc/util/XMLUri.hpp>
+#include <xercesc/util/XMLUniDefs.hpp>
+
+using xercesc::XMLUri;
+using xercesc::XMLURL;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::XMLUni;
+using xercesc::DOMImplementation;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMNodeFilter;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationLS;
+
+char *
+CIAO::Config_Handler::Utils::parse_string (DOMNodeIterator * iter)
+{
+ DOMNode * node = iter->nextNode();
+ DOMText* text = reinterpret_cast<DOMText*> (node);
+ return XMLString::transcode (text->getNodeValue ());
+}
+
+CORBA::Short
+CIAO::Config_Handler::Utils::parse_short (DOMNodeIterator * iter)
+{
+ char *temp = Config_Handler::Utils::parse_string (iter);
+ CORBA::Short ret_val = ACE_OS::atoi (temp);
+ XMLString::release (&temp);
+ return ret_val;
+}
+
+CORBA::ULong
+CIAO::Config_Handler::Utils::parse_ulong (DOMNodeIterator * iter)
+{
+ char *temp = Config_Handler::Utils::parse_string (iter);
+ CORBA::ULong ret_val = ACE_OS::strtoul (temp, 0, 10);
+ XMLString::release (&temp);
+ return ret_val;
+}
+
+CORBA::Long
+CIAO::Config_Handler::Utils::parse_long (DOMNodeIterator * iter)
+{
+ char *temp = Config_Handler::Utils::parse_string (iter);
+ CORBA::ULong ret_val = ACE_OS::strtol (temp, 0, 10);
+ XMLString::release (&temp);
+ return ret_val;
+}
+
+CORBA::Double
+CIAO::Config_Handler::Utils::parse_double (DOMNodeIterator * iter)
+{
+ char *temp = Config_Handler::Utils::parse_string (iter);
+ CORBA::Double ret_val = ACE_OS::strtod (temp, 0);
+ XMLString::release (&temp);
+ return ret_val;
+}
+
+CORBA::Float
+CIAO::Config_Handler::Utils::parse_float (DOMNodeIterator * iter)
+{
+ return static_cast<CORBA::Float> (Utils::parse_double (iter));
+}
+
+CORBA::Boolean
+CIAO::Config_Handler::Utils::parse_bool (DOMNodeIterator * iter)
+{
+ XStr true_val ("true");
+ XStr true_cap_val ("TRUE");
+
+ DOMText * text = reinterpret_cast<DOMText *> (iter->nextNode ());
+ XStr value (text->getNodeValue ());
+
+ if (value == true_val || value == true_cap_val)
+ return 1;
+ else
+ return 0;
+}
+
+CORBA::Char
+CIAO::Config_Handler::Utils::parse_char (DOMNodeIterator * iter)
+{
+ DOMText * text = reinterpret_cast<DOMText *> (iter->nextNode ());
+ char * temp_string = XMLString::transcode (text->getNodeValue ());
+
+ // Should be non-null
+ ACE_ASSERT (temp_string != 0);
+
+ // Return the first character in the node as char value
+ char ret_char = temp_string [0];
+ XMLString::release (&temp_string);
+ return ret_char;
+}
+
+CORBA::Octet
+CIAO::Config_Handler::Utils::parse_octet (DOMNodeIterator * iter)
+{
+ return Utils::parse_char (iter);
+}
+
+bool
+CIAO::Config_Handler::Utils::process_string (DOMNodeIterator* iter,
+ const XStr& node_name, const char* name,
+ TAO_String_Manager& var)
+{
+ bool result = (node_name == XStr(ACE_TEXT (name)));
+ if (result == true)
+ {
+ DOMNode* node = iter->nextNode();
+ const XMLCh* text = reinterpret_cast<DOMText*> (node)->getNodeValue
+();
+ if (text)
+ var = XMLString::transcode (text);
+ }
+ return result;
+}
+
+bool
+CIAO::Config_Handler::Utils::process_string_seq (DOMNodeIterator* iter,
+ const XStr& node_name, const char* name,
+ CORBA::StringSeq& seq)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ DOMNode* node = iter->nextNode ();
+ const XMLCh* text = reinterpret_cast<DOMText*> (node)->getNodeValue ();
+
+ if (text)
+ {
+ CORBA::ULong i (seq.length ());
+ seq.length (i + 1);
+ seq[i] = XMLString::transcode (text);
+ }
+ }
+
+ return result;
+}
+
+bool
+CIAO::Config_Handler::Utils::process_ulong (DOMNodeIterator* iter,
+ const XStr& node_name, const char* name,
+ CORBA::ULong& var)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ DOMNode* node = iter->nextNode ();
+ const XMLCh* text = reinterpret_cast<DOMText*> (node)->getNodeValue ();
+
+ if (text)
+ {
+ CORBA::String_var temp = XMLString::transcode (text);
+ var = static_cast<CORBA::ULong> (ACE_OS::strtol (temp.in (),
+ 0, 10));
+ }
+ }
+
+ return result;
+}
+
+bool
+CIAO::Config_Handler::Utils::process_boolean (DOMNodeIterator* iter,
+ const XStr& node_name, const char* name,
+ CORBA::Boolean& var)
+{
+ bool result = (node_name == XStr (ACE_TEXT (name)));
+
+ if (result == true)
+ {
+ DOMNode* node = iter->nextNode ();
+ const XMLCh* text = reinterpret_cast<DOMText*> (node)->getNodeValue ();
+
+ if (text)
+ {
+ CORBA::String_var temp = XMLString::transcode (text);
+ var = static_cast<CORBA::Boolean> (ACE_OS::strtol (temp.in (),
+ 0, 10));
+ }
+ }
+
+ return result;
+}
+
+DOMDocument*
+CIAO::Config_Handler::Utils::create_document (const char * url)
+{
+ xercesc::XMLPlatformUtils::Initialize();
+ static const XMLCh gLS[] = { xercesc::chLatin_L,
+ xercesc::chLatin_S,
+ xercesc::chNull };
+
+ DOMImplementation* impl
+ = DOMImplementationRegistry::getDOMImplementation(gLS);
+ //auto_ptr<DOMImplementation> cleanup_impl (impl);
+
+ DOMBuilder* parser =
+ ((DOMImplementationLS*)impl)->
+ createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
+ //auto_ptr<DOMBuilder> cleanup_parser (parser);
+
+ // Discard comment nodes in the document
+ parser->setFeature (XMLUni::fgDOMComments, false);
+
+ // Disable datatype normalization. The XML 1.0 attribute value
+ // normalization always occurs though.
+ parser->setFeature (XMLUni::fgDOMDatatypeNormalization, true);
+
+ // Do not create EntityReference nodes in the DOM tree. No
+ // EntityReference nodes will be created, only the nodes
+ // corresponding to their fully expanded sustitution text will be
+ // created.
+ parser->setFeature (XMLUni::fgDOMEntities, false);
+
+ // Perform Namespace processing.
+ parser->setFeature (XMLUni::fgDOMNamespaces, true);
+
+ // Perform Validation
+ parser->setFeature (XMLUni::fgDOMValidation, true);
+
+ // Do not include ignorable whitespace in the DOM tree.
+ parser->setFeature (XMLUni::fgDOMWhitespaceInElementContent, false);
+
+ // Enable the parser's schema support.
+ parser->setFeature (XMLUni::fgXercesSchema, true);
+
+ // Enable full schema constraint checking, including checking which
+ // may be time-consuming or memory intensive. Currently, particle
+ // unique attribution constraint checking and particle derivation
+ // restriction checking are controlled by this option.
+ parser->setFeature (XMLUni::fgXercesSchemaFullChecking, true);
+
+ // The parser will treat validation error as fatal and will exit.
+ parser->setFeature (XMLUni::fgXercesValidationErrorAsFatal, true);
+
+
+ DOMDocument* doc = parser->parseURI (url);
+ //auto_ptr<DOMDocument> cleanup_doc (doc);
+
+ return doc;
+}
+
+DOMBuilder*
+CIAO::Config_Handler::Utils::create_parser ()
+{
+ xercesc::XMLPlatformUtils::Initialize();
+ static const XMLCh gLS[] = { xercesc::chLatin_L,
+ xercesc::chLatin_S,
+ xercesc::chNull };
+
+ DOMImplementation* impl
+ = DOMImplementationRegistry::getDOMImplementation(gLS);
+ //auto_ptr<DOMImplementation> cleanup_impl (impl);
+
+ DOMBuilder* parser =
+ ((DOMImplementationLS*)impl)->
+ createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
+ //auto_ptr<DOMBuilder> cleanup_parser (parser);
+
+ // Discard comment nodes in the document
+ parser->setFeature (XMLUni::fgDOMComments, false);
+
+ // Disable datatype normalization. The XML 1.0 attribute value
+ // normalization always occurs though.
+ parser->setFeature (XMLUni::fgDOMDatatypeNormalization, true);
+
+ // Do not create EntityReference nodes in the DOM tree. No
+ // EntityReference nodes will be created, only the nodes
+ // corresponding to their fully expanded sustitution text will be
+ // created.
+ parser->setFeature (XMLUni::fgDOMEntities, false);
+
+ // Perform Namespace processing.
+ parser->setFeature (XMLUni::fgDOMNamespaces, true);
+
+ // Perform Validation
+ parser->setFeature (XMLUni::fgDOMValidation, true);
+
+ // Do not include ignorable whitespace in the DOM tree.
+ parser->setFeature (XMLUni::fgDOMWhitespaceInElementContent, false);
+
+ // Enable the parser's schema support.
+ parser->setFeature (XMLUni::fgXercesSchema, true);
+
+ // Enable full schema constraint checking, including checking which
+ // may be time-consuming or memory intensive. Currently, particle
+ // unique attribution constraint checking and particle derivation
+ // restriction checking are controlled by this option.
+ parser->setFeature (XMLUni::fgXercesSchemaFullChecking, true);
+
+ // The parser will treat validation error as fatal and will exit.
+ parser->setFeature (XMLUni::fgXercesValidationErrorAsFatal, true);
+
+
+ //DOMDocument* doc = parser->parseURI (url);
+ //auto_ptr<DOMDocument> cleanup_doc (doc);
+
+ return parser;
+}
+
+DOMNodeIterator *
+CIAO::Config_Handler::Utils::parse_href_tag (XMLURL url, DOMDocument * doc)
+{
+ char * document_path = 0;
+ if (url.isRelative ())
+ {
+ char * doc_path = XMLString::transcode (doc->getDocumentURI ());
+ XMLCh * temp = XMLString::transcode (doc_path);
+ url.makeRelativeTo (temp);
+ document_path = XMLString::transcode (url.getURLText ());
+
+ // Release allocated memory
+ XMLString::release (&doc_path);
+ XMLString::release (&temp);
+ }
+ else
+ {
+ document_path = XMLString::transcode (url.getURLText ());
+
+ }
+
+ DOMDocument* href_doc =
+ CIAO::Config_Handler::Utils::create_document (document_path);
+ //auto_ptr<DOMDocument> cleanup_doc (href_doc);
+
+ DOMDocumentTraversal* traverse = href_doc;
+ DOMNode* root = (href_doc->getDocumentElement ());
+ unsigned long filter = DOMNodeFilter::SHOW_ELEMENT |
+ DOMNodeFilter::SHOW_TEXT;
+
+ // release allocated memory
+ XMLString::release (&document_path);
+
+ return traverse->createNodeIterator (root,
+ filter,
+ 0,
+ true);
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.h
new file mode 100644
index 00000000000..fd77fa947c9
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/Utils.h
@@ -0,0 +1,120 @@
+//====================================================================
+/**
+ * @file Utils.h
+ *
+ * $Id$
+ *
+ * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
+ * @author Tao Lu <lu@dre.vanderbilt.edu>,
+ * @author Boris <boris@dre.vanderbilt.edu>
+ *
+ */
+//=====================================================================
+
+#ifndef UTILS_H
+#define UTILS_H
+
+#include /**/ "ace/pre.h"
+
+#include "Config_Handler_export.h"
+#include "ciao/DeploymentC.h"
+
+#include "tao/Basic_Types.h"
+#include "XercesString.h"
+#include <xercesc/util/XercesDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+#include <xercesc/util/XMLURL.hpp>
+
+using xercesc::XMLURL;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMText;
+using xercesc::DOMBuilder;
+using xercesc::XMLString;
+using xercesc::DOMDocument;
+using Config_Handler::XStr;
+
+namespace CIAO {
+
+ namespace Config_Handler
+ {
+
+ /**
+ * @class Utils
+ *
+ * @brief Utility class for parsing basic types such as string float
+ * double etc.
+ *
+ * Helper methods for each type are defined as parse_<type> where type
+ * equals string, float, double etc. The corresponding C++ types are
+ * returned. These follow the IDL to C++ mapping defined by the CORBA
+ * specification.
+ *
+ */
+
+ class Config_Handler_Export Utils
+ {
+ public:
+ static char * parse_string (DOMNodeIterator * iter);
+ // Parse string type
+
+ static CORBA::ULong parse_ulong (DOMNodeIterator * iter);
+ // Parse ulong type
+
+ static CORBA::Long parse_long (DOMNodeIterator * iter);
+ // Parse long type
+
+ static CORBA::Short parse_short (DOMNodeIterator * iter);
+ // Parse short type
+
+ static CORBA::Float parse_float (DOMNodeIterator * iter);
+ // Parse float type
+
+ static CORBA::Double parse_double (DOMNodeIterator * iter);
+ // Parse double type
+
+ static CORBA::Boolean parse_bool (DOMNodeIterator * iter);
+ // Parse bool type
+
+ static CORBA::Char parse_char (DOMNodeIterator * iter);
+ // Parse char type
+
+ static CORBA::Octet parse_octet (DOMNodeIterator * iter);
+ // Parse octect type
+
+ static DOMDocument* create_document (const char * url);
+ // Create a document from the URL
+
+ static DOMBuilder* create_parser ();
+ // Create a parser from the URL
+
+ static bool process_string (DOMNodeIterator* iter, const XStr& node_name,
+ const char* name, TAO_String_Manager& var);
+ // process strings
+
+ static bool process_string_seq (DOMNodeIterator* iter,
+ const XStr& node_name,
+ const char* name, CORBA::StringSeq& seq);
+ // process string sequence
+
+ static bool process_boolean (DOMNodeIterator* iter,
+ const XStr& node_name,
+ const char* name, CORBA::Boolean& var);
+ // process strings
+
+ static bool process_ulong (DOMNodeIterator* iter, const XStr& node_name,
+ const char* name, CORBA::ULong& var);
+ // process ulong
+
+
+ static DOMNodeIterator * parse_href_tag (XMLURL xml_url,
+ DOMDocument * doc);
+ // Process the <href = "URL"> and return an iterator to the
+ // new document
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* UTILS_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.cpp
new file mode 100644
index 00000000000..877f9639d51
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.cpp
@@ -0,0 +1,140 @@
+// $Id$
+
+#include <ostream>
+
+#include "XercesString.h"
+using xercesc::XMLString;
+
+namespace Config_Handler
+{
+
+ XStr::XStr (const char* str)
+ : _wstr(0)
+ {
+ _wstr = XMLString::transcode(str);
+ }
+
+ XStr::XStr (XMLCh *wstr)
+ : _wstr(wstr)
+ {
+
+ }
+
+ XStr::XStr (const XMLCh* wstr)
+ : _wstr(0)
+ {
+ _wstr = XMLString::replicate(wstr);
+ }
+
+ XStr::XStr (const XStr &right)
+ : _wstr(0)
+ {
+ _wstr = XMLString::replicate(right._wstr);
+ }
+
+ XStr& XStr::operator= (const XStr& rhs)
+ {
+ if (&rhs == this)
+ return *this;
+ XStr temp (rhs);
+ ACE_Swap<XMLCh*>::swap (this->_wstr, temp._wstr);
+ return *this;
+ }
+
+ XStr::~XStr ()
+ {
+ if (_wstr)
+ XMLString::release(&_wstr);
+ }
+
+ const XMLCh* XStr::begin () const
+ {
+ return _wstr;
+ }
+
+ const XMLCh* XStr::end () const
+ {
+ return _wstr + size();
+ }
+
+ bool XStr::append(const XMLCh *tail)
+ {
+ int iTailLen = XMLString::stringLen(tail);
+ int iWorkLen = XMLString::stringLen(_wstr);
+ XMLCh *result = new XMLCh[ iWorkLen + iTailLen + 1 ];
+ bool bOK = result != 0;
+ if (bOK)
+ {
+ XMLCh *target = result;
+ XMLString::moveChars(target, _wstr, iWorkLen);
+ target += iWorkLen;
+ XMLString::moveChars(target, tail, iTailLen);
+ target += iTailLen;
+ *target++ = 0;
+ XMLString::release(&_wstr);
+ _wstr = result;
+ }
+ return bOK;
+ }
+
+ bool XStr::erase(const XMLCh *head, const XMLCh *tail)
+ {
+ bool bOK = head <= tail && head >= begin() && tail <= end();
+ if (bOK)
+ {
+ XMLCh *result = new XMLCh[ size() - (tail - head) + 1 ];
+ XMLCh *target = result;
+ bOK = target != NULL;
+ if (bOK)
+ {
+ const XMLCh *cursor = begin();
+
+ while (cursor != head) *target++ = *cursor++;
+ cursor = tail;
+ while ( cursor != end() ) *target++ = *cursor++;
+ *target ++ = 0;
+ XMLString::release(&_wstr);
+ _wstr = result;
+ }
+ }
+ return bOK;
+ }
+
+ int XStr::size () const
+ {
+ return XMLString::stringLen(_wstr);
+ }
+
+ XMLCh XStr::operator [] (const int i)
+ {
+ return _wstr[i];
+ }
+
+ const XMLCh XStr::operator [] (const int i) const
+ {
+ return _wstr[i];
+ }
+
+ bool operator== (const XStr& lhs, const XStr& rhs)
+ {
+ return XMLString::compareIString (lhs,rhs) == 0;
+ }
+
+ bool operator!= (const XStr& lhs, const XStr& rhs)
+ {
+ return !operator==(lhs, rhs);
+ }
+
+
+ std::ostream&
+ operator<< (std::ostream& o, XStr const& str)
+ {
+ char* s = XMLString::transcode (str);
+
+ o << s;
+
+ XMLString::release (&s); // idiots?
+ return o;
+ }
+
+}
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.h b/TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.h
new file mode 100644
index 00000000000..7ac692d34de
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/XercesString.h
@@ -0,0 +1,73 @@
+// $Id$
+
+#ifndef _XERCESSTRING_H
+#define _XERCESSTRING_H
+
+#include /**/ "ace/pre.h"
+
+#include "ace/Swap.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include <iosfwd>
+
+#include <xercesc/util/XMLString.hpp>
+
+// Utility class that provides a std::string like facade to XMLString.
+// Doesn't implement all of the methods of std::string.
+
+namespace Config_Handler
+{
+
+ class XStr
+ {
+ public:
+ XStr() : _wstr(0L) { };
+
+ XStr (const char* str);
+
+ XStr (XMLCh* wstr);
+
+ XStr (const XMLCh* wstr);
+
+ XStr (const XStr& copy);
+
+ XStr& operator= (const XStr& rhs);
+
+ ~XStr();
+
+ const XMLCh* begin() const;
+
+ const XMLCh* end() const;
+
+ bool append(const XMLCh* tail);
+
+ bool erase (const XMLCh* head, const XMLCh* tail);
+
+ int size() const;
+
+ XMLCh operator [] (const int i);
+
+ const XMLCh operator [] (const int i) const;
+
+ operator const XMLCh* () const { return _wstr; };
+
+ private:
+
+ XMLCh* _wstr; // Internal representation
+
+ };
+
+ bool operator== (const XStr& lhs, const XStr& rhs);
+ bool operator!= (const XStr& lhs, const XStr& rhs);
+
+ std::ostream&
+ operator<< (std::ostream& o, XStr const& str);
+
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* _XERCESSTRING_H */
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.cpp
new file mode 100644
index 00000000000..2721776e2fd
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.cpp
@@ -0,0 +1,555 @@
+// $Id$
+#include "ccd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // ComponentInterfaceDescription
+ //
+
+ ComponentInterfaceDescription::
+ ComponentInterfaceDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ ComponentInterfaceDescription::
+ ComponentInterfaceDescription (::CIAO::Config_Handlers::ComponentInterfaceDescription const& s)
+ :
+ label_ (s.label_.get () ? new ::XMLSchema::string< char > (*s.label_) : 0),
+ UUID_ (s.UUID_.get () ? new ::XMLSchema::string< char > (*s.UUID_) : 0),
+ specificType_ (s.specificType_.get () ? new ::XMLSchema::string< char > (*s.specificType_) : 0),
+ supportedType_ (s.supportedType_.get () ? new ::XMLSchema::string< char > (*s.supportedType_) : 0),
+ idlFile_ (s.idlFile_.get () ? new ::XMLSchema::string< char > (*s.idlFile_) : 0),
+ configProperty_ (s.configProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.configProperty_) : 0),
+ property_ (s.property_.get () ? new ::CIAO::Config_Handlers::ComponentPropertyDescription (*s.property_) : 0),
+ infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 0),
+ contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< char > (*s.contentLocation_) : 0),
+ regulator__ ()
+ {
+ if (label_.get ()) label_->container (this);
+ if (UUID_.get ()) UUID_->container (this);
+ if (specificType_.get ()) specificType_->container (this);
+ if (supportedType_.get ()) supportedType_->container (this);
+ if (idlFile_.get ()) idlFile_->container (this);
+ if (configProperty_.get ()) configProperty_->container (this);
+ port_.reserve (s.port_.size ());
+ {
+ for (port_const_iterator i (s.port_.begin ());
+ i != s.port_.end ();
+ ++i) add_port (*i);
+ }
+
+ if (property_.get ()) property_->container (this);
+ if (infoProperty_.get ()) infoProperty_->container (this);
+ if (contentLocation_.get ()) contentLocation_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& ComponentInterfaceDescription::
+ operator= (::CIAO::Config_Handlers::ComponentInterfaceDescription const& s)
+ {
+ if (s.label_.get ()) label (*(s.label_));
+ else label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.UUID_.get ()) UUID (*(s.UUID_));
+ else UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.specificType_.get ()) specificType (*(s.specificType_));
+ else specificType_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.supportedType_.get ()) supportedType (*(s.supportedType_));
+ else supportedType_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.idlFile_.get ()) idlFile (*(s.idlFile_));
+ else idlFile_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.configProperty_.get ()) configProperty (*(s.configProperty_));
+ else configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ port_.clear ();
+ port_.reserve (s.port_.size ());
+ {
+ for (port_const_iterator i (s.port_.begin ());
+ i != s.port_.end ();
+ ++i) add_port (*i);
+ }
+
+ if (s.property_.get ()) property (*(s.property_));
+ else property_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPropertyDescription > (0);
+
+ if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_));
+ else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_));
+ else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ return *this;
+ }
+
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ label_p () const
+ {
+ return label_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentInterfaceDescription::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& ComponentInterfaceDescription::
+ label ()
+ {
+ return *label_;
+ }
+
+ void ComponentInterfaceDescription::
+ label (::XMLSchema::string< char > const& e)
+ {
+ if (label_.get ())
+ {
+ *label_ = e;
+ }
+
+ else
+ {
+ label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ label_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ UUID_p () const
+ {
+ return UUID_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentInterfaceDescription::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& ComponentInterfaceDescription::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void ComponentInterfaceDescription::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ if (UUID_.get ())
+ {
+ *UUID_ = e;
+ }
+
+ else
+ {
+ UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ UUID_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ specificType_p () const
+ {
+ return specificType_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentInterfaceDescription::
+ specificType () const
+ {
+ return *specificType_;
+ }
+
+ ::XMLSchema::string< char >& ComponentInterfaceDescription::
+ specificType ()
+ {
+ return *specificType_;
+ }
+
+ void ComponentInterfaceDescription::
+ specificType (::XMLSchema::string< char > const& e)
+ {
+ if (specificType_.get ())
+ {
+ *specificType_ = e;
+ }
+
+ else
+ {
+ specificType_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ specificType_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ supportedType_p () const
+ {
+ return supportedType_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentInterfaceDescription::
+ supportedType () const
+ {
+ return *supportedType_;
+ }
+
+ ::XMLSchema::string< char >& ComponentInterfaceDescription::
+ supportedType ()
+ {
+ return *supportedType_;
+ }
+
+ void ComponentInterfaceDescription::
+ supportedType (::XMLSchema::string< char > const& e)
+ {
+ if (supportedType_.get ())
+ {
+ *supportedType_ = e;
+ }
+
+ else
+ {
+ supportedType_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ supportedType_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ idlFile_p () const
+ {
+ return idlFile_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentInterfaceDescription::
+ idlFile () const
+ {
+ return *idlFile_;
+ }
+
+ ::XMLSchema::string< char >& ComponentInterfaceDescription::
+ idlFile ()
+ {
+ return *idlFile_;
+ }
+
+ void ComponentInterfaceDescription::
+ idlFile (::XMLSchema::string< char > const& e)
+ {
+ if (idlFile_.get ())
+ {
+ *idlFile_ = e;
+ }
+
+ else
+ {
+ idlFile_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ idlFile_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ configProperty_p () const
+ {
+ return configProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ComponentInterfaceDescription::
+ configProperty () const
+ {
+ return *configProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ComponentInterfaceDescription::
+ configProperty ()
+ {
+ return *configProperty_;
+ }
+
+ void ComponentInterfaceDescription::
+ configProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (configProperty_.get ())
+ {
+ *configProperty_ = e;
+ }
+
+ else
+ {
+ configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ configProperty_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ ComponentInterfaceDescription::port_iterator ComponentInterfaceDescription::
+ begin_port ()
+ {
+ return port_.begin ();
+ }
+
+ ComponentInterfaceDescription::port_iterator ComponentInterfaceDescription::
+ end_port ()
+ {
+ return port_.end ();
+ }
+
+ ComponentInterfaceDescription::port_const_iterator ComponentInterfaceDescription::
+ begin_port () const
+ {
+ return port_.begin ();
+ }
+
+ ComponentInterfaceDescription::port_const_iterator ComponentInterfaceDescription::
+ end_port () const
+ {
+ return port_.end ();
+ }
+
+ void ComponentInterfaceDescription::
+ add_port (::CIAO::Config_Handlers::ComponentPortDescription const& e)
+ {
+ if (port_.capacity () < port_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ComponentPortDescription > v;
+ v.reserve (port_.size () + 1);
+
+ while (port_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ComponentPortDescription& t = port_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ port_.pop_back ();
+ }
+
+ port_.swap (v);
+ }
+
+ port_.push_back (e);
+ port_.back ().container (this);
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ property_p () const
+ {
+ return property_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPropertyDescription const& ComponentInterfaceDescription::
+ property () const
+ {
+ return *property_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPropertyDescription& ComponentInterfaceDescription::
+ property ()
+ {
+ return *property_;
+ }
+
+ void ComponentInterfaceDescription::
+ property (::CIAO::Config_Handlers::ComponentPropertyDescription const& e)
+ {
+ if (property_.get ())
+ {
+ *property_ = e;
+ }
+
+ else
+ {
+ property_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPropertyDescription > (new ::CIAO::Config_Handlers::ComponentPropertyDescription (e));
+ property_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ infoProperty_p () const
+ {
+ return infoProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ComponentInterfaceDescription::
+ infoProperty () const
+ {
+ return *infoProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ComponentInterfaceDescription::
+ infoProperty ()
+ {
+ return *infoProperty_;
+ }
+
+ void ComponentInterfaceDescription::
+ infoProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (infoProperty_.get ())
+ {
+ *infoProperty_ = e;
+ }
+
+ else
+ {
+ infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ infoProperty_->container (this);
+ }
+ }
+
+ // ComponentInterfaceDescription
+ //
+ bool ComponentInterfaceDescription::
+ contentLocation_p () const
+ {
+ return contentLocation_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentInterfaceDescription::
+ contentLocation () const
+ {
+ return *contentLocation_;
+ }
+
+ ::XMLSchema::string< char >& ComponentInterfaceDescription::
+ contentLocation ()
+ {
+ return *contentLocation_;
+ }
+
+ void ComponentInterfaceDescription::
+ contentLocation (::XMLSchema::string< char > const& e)
+ {
+ if (contentLocation_.get ())
+ {
+ *contentLocation_ = e;
+ }
+
+ else
+ {
+ contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ contentLocation_->container (this);
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // ComponentInterfaceDescription
+ //
+
+ ComponentInterfaceDescription::
+ ComponentInterfaceDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "specificType")
+ {
+ ::XMLSchema::string< char > t (e);
+ specificType (t);
+ }
+
+ else if (n == "supportedType")
+ {
+ ::XMLSchema::string< char > t (e);
+ supportedType (t);
+ }
+
+ else if (n == "idlFile")
+ {
+ ::XMLSchema::string< char > t (e);
+ idlFile (t);
+ }
+
+ else if (n == "configProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ configProperty (t);
+ }
+
+ else if (n == "port")
+ {
+ ::CIAO::Config_Handlers::ComponentPortDescription t (e);
+ add_port (t);
+ }
+
+ else if (n == "property")
+ {
+ ::CIAO::Config_Handlers::ComponentPropertyDescription t (e);
+ property (t);
+ }
+
+ else if (n == "infoProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ infoProperty (t);
+ }
+
+ else if (n == "contentLocation")
+ {
+ ::XMLSchema::string< char > t (e);
+ contentLocation (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.hpp
new file mode 100644
index 00000000000..684dd24a4d3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/ccd.hpp
@@ -0,0 +1,165 @@
+//$Id$
+#ifndef CCD_HPP
+#define CCD_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class ComponentInterfaceDescription;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "Basic_Deployment_Data.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class ComponentInterfaceDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ bool label_p () const;
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ bool UUID_p () const;
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // specificType
+ //
+ public:
+ bool specificType_p () const;
+ ::XMLSchema::string< char > const& specificType () const;
+ ::XMLSchema::string< char >& specificType ();
+ void specificType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > specificType_;
+
+ // supportedType
+ //
+ public:
+ bool supportedType_p () const;
+ ::XMLSchema::string< char > const& supportedType () const;
+ ::XMLSchema::string< char >& supportedType ();
+ void supportedType (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > supportedType_;
+
+ // idlFile
+ //
+ public:
+ bool idlFile_p () const;
+ ::XMLSchema::string< char > const& idlFile () const;
+ ::XMLSchema::string< char >& idlFile ();
+ void idlFile (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > idlFile_;
+
+ // configProperty
+ //
+ public:
+ bool configProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& configProperty () const;
+ ::CIAO::Config_Handlers::Property& configProperty ();
+ void configProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > configProperty_;
+
+ // port
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ComponentPortDescription >::iterator port_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ComponentPortDescription >::const_iterator port_const_iterator;
+ port_iterator begin_port ();
+ port_iterator end_port ();
+ port_const_iterator begin_port () const;
+ port_const_iterator end_port () const;
+ void add_port (::CIAO::Config_Handlers::ComponentPortDescription const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ComponentPortDescription > port_;
+
+ // property
+ //
+ public:
+ bool property_p () const;
+ ::CIAO::Config_Handlers::ComponentPropertyDescription const& property () const;
+ ::CIAO::Config_Handlers::ComponentPropertyDescription& property ();
+ void property (::CIAO::Config_Handlers::ComponentPropertyDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPropertyDescription > property_;
+
+ // infoProperty
+ //
+ public:
+ bool infoProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& infoProperty () const;
+ ::CIAO::Config_Handlers::Property& infoProperty ();
+ void infoProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > infoProperty_;
+
+ // contentLocation
+ //
+ public:
+ bool contentLocation_p () const;
+ ::XMLSchema::string< char > const& contentLocation () const;
+ ::XMLSchema::string< char >& contentLocation ();
+ void contentLocation (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > contentLocation_;
+
+ public:
+ ComponentInterfaceDescription ();
+ ComponentInterfaceDescription (::XSCRT::XML::Element< char > const&);
+ ComponentInterfaceDescription (ComponentInterfaceDescription const& s);
+
+ ComponentInterfaceDescription&
+ operator= (ComponentInterfaceDescription const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // CCD_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.cpp
new file mode 100644
index 00000000000..1fac6f758af
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.cpp
@@ -0,0 +1,301 @@
+//$Id$
+#include "cdd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // Domain
+ //
+
+ Domain::
+ Domain ()
+ :
+ label_ (new ::XMLSchema::string< char > ()),
+ UUID_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ label_->container (this);
+ UUID_->container (this);
+ }
+
+ Domain::
+ Domain (::CIAO::Config_Handlers::Domain const& s)
+ :
+ label_ (new ::XMLSchema::string< char > (*s.label_)),
+ UUID_ (new ::XMLSchema::string< char > (*s.UUID_)),
+ sharedResource_ (s.sharedResource_.get () ? new ::CIAO::Config_Handlers::SharedResource (*s.sharedResource_) : 0),
+ infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 0),
+ regulator__ ()
+ {
+ label_->container (this);
+ UUID_->container (this);
+ if (sharedResource_.get ()) sharedResource_->container (this);
+ node_.reserve (s.node_.size ());
+ {
+ for (node_const_iterator i (s.node_.begin ());
+ i != s.node_.end ();
+ ++i) add_node (*i);
+ }
+
+ if (infoProperty_.get ()) infoProperty_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::Domain& Domain::
+ operator= (::CIAO::Config_Handlers::Domain const& s)
+ {
+ label (s.label ());
+
+ UUID (s.UUID ());
+
+ if (s.sharedResource_.get ()) sharedResource (*(s.sharedResource_));
+ else sharedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::SharedResource > (0);
+
+ node_.clear ();
+ node_.reserve (s.node_.size ());
+ {
+ for (node_const_iterator i (s.node_.begin ());
+ i != s.node_.end ();
+ ++i) add_node (*i);
+ }
+
+ if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_));
+ else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ return *this;
+ }
+
+
+ // Domain
+ //
+ ::XMLSchema::string< char > const& Domain::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& Domain::
+ label ()
+ {
+ return *label_;
+ }
+
+ void Domain::
+ label (::XMLSchema::string< char > const& e)
+ {
+ *label_ = e;
+ }
+
+ // Domain
+ //
+ ::XMLSchema::string< char > const& Domain::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& Domain::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void Domain::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ *UUID_ = e;
+ }
+
+ // Domain
+ //
+ bool Domain::
+ sharedResource_p () const
+ {
+ return sharedResource_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::SharedResource const& Domain::
+ sharedResource () const
+ {
+ return *sharedResource_;
+ }
+
+ ::CIAO::Config_Handlers::SharedResource& Domain::
+ sharedResource ()
+ {
+ return *sharedResource_;
+ }
+
+ void Domain::
+ sharedResource (::CIAO::Config_Handlers::SharedResource const& e)
+ {
+ if (sharedResource_.get ())
+ {
+ *sharedResource_ = e;
+ }
+
+ else
+ {
+ sharedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::SharedResource > (new ::CIAO::Config_Handlers::SharedResource (e));
+ sharedResource_->container (this);
+ }
+ }
+
+ // Domain
+ //
+ Domain::node_iterator Domain::
+ begin_node ()
+ {
+ return node_.begin ();
+ }
+
+ Domain::node_iterator Domain::
+ end_node ()
+ {
+ return node_.end ();
+ }
+
+ Domain::node_const_iterator Domain::
+ begin_node () const
+ {
+ return node_.begin ();
+ }
+
+ Domain::node_const_iterator Domain::
+ end_node () const
+ {
+ return node_.end ();
+ }
+
+ void Domain::
+ add_node (::CIAO::Config_Handlers::Node const& e)
+ {
+ if (node_.capacity () < node_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::Node > v;
+ v.reserve (node_.size () + 1);
+
+ while (node_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::Node& t = node_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ node_.pop_back ();
+ }
+
+ node_.swap (v);
+ }
+
+ node_.push_back (e);
+ node_.back ().container (this);
+ }
+
+ // Domain
+ //
+ bool Domain::
+ infoProperty_p () const
+ {
+ return infoProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& Domain::
+ infoProperty () const
+ {
+ return *infoProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& Domain::
+ infoProperty ()
+ {
+ return *infoProperty_;
+ }
+
+ void Domain::
+ infoProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (infoProperty_.get ())
+ {
+ *infoProperty_ = e;
+ }
+
+ else
+ {
+ infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ infoProperty_->container (this);
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // Domain
+ //
+
+ Domain::
+ Domain (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ label_ (new ::XMLSchema::string< char > ()),
+ UUID_ (new ::XMLSchema::string< char > ()),
+ regulator__ ()
+ {
+ label_->container (this);
+ UUID_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "sharedResource")
+ {
+ ::CIAO::Config_Handlers::SharedResource t (e);
+ sharedResource (t);
+ }
+
+ else if (n == "node")
+ {
+ ::CIAO::Config_Handlers::Node t (e);
+ add_node (t);
+ }
+
+ else if (n == "infoProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ infoProperty (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.hpp
new file mode 100644
index 00000000000..16053fce1f3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdd.hpp
@@ -0,0 +1,108 @@
+// $Id$
+#ifndef CDD_HPP
+#define CDD_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class Domain;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "Basic_Deployment_Data.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class Domain : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // sharedResource
+ //
+ public:
+ bool sharedResource_p () const;
+ ::CIAO::Config_Handlers::SharedResource const& sharedResource () const;
+ ::CIAO::Config_Handlers::SharedResource& sharedResource ();
+ void sharedResource (::CIAO::Config_Handlers::SharedResource const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SharedResource > sharedResource_;
+
+ // node
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::Node >::iterator node_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::Node >::const_iterator node_const_iterator;
+ node_iterator begin_node ();
+ node_iterator end_node ();
+ node_const_iterator begin_node () const;
+ node_const_iterator end_node () const;
+ void add_node (::CIAO::Config_Handlers::Node const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::Node > node_;
+
+ // infoProperty
+ //
+ public:
+ bool infoProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& infoProperty () const;
+ ::CIAO::Config_Handlers::Property& infoProperty ();
+ void infoProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > infoProperty_;
+
+ public:
+ Domain ();
+ Domain (::XSCRT::XML::Element< char > const&);
+ Domain (Domain const& s);
+
+ Domain&
+ operator= (Domain const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // CDD_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.cpp
new file mode 100644
index 00000000000..a4e63057eff
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.cpp
@@ -0,0 +1,588 @@
+// $Id$
+#include "cdp.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // DeploymentPlan
+ //
+
+ DeploymentPlan::
+ DeploymentPlan ()
+ :
+ realizes_ (new ::CIAO::Config_Handlers::ComponentInterfaceDescription ()),
+ implementation_ (new ::CIAO::Config_Handlers::MonolithicDeploymentDescription ()),
+ regulator__ ()
+ {
+ realizes_->container (this);
+ implementation_->container (this);
+ }
+
+ DeploymentPlan::
+ DeploymentPlan (::CIAO::Config_Handlers::DeploymentPlan const& s)
+ :
+ label_ (s.label_.get () ? new ::XMLSchema::string< char > (*s.label_) : 0),
+ UUID_ (s.UUID_.get () ? new ::XMLSchema::string< char > (*s.UUID_) : 0),
+ realizes_ (new ::CIAO::Config_Handlers::ComponentInterfaceDescription (*s.realizes_)),
+ implementation_ (new ::CIAO::Config_Handlers::MonolithicDeploymentDescription (*s.implementation_)),
+ regulator__ ()
+ {
+ if (label_.get ()) label_->container (this);
+ if (UUID_.get ()) UUID_->container (this);
+ realizes_->container (this);
+ implementation_->container (this);
+ instance_.reserve (s.instance_.size ());
+ {
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
+ }
+
+ connection_.reserve (s.connection_.size ());
+ {
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
+ }
+
+ dependsOn_.reserve (s.dependsOn_.size ());
+ {
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
+ }
+
+ artifact_.reserve (s.artifact_.size ());
+ {
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
+ }
+
+ infoProperty_.reserve (s.infoProperty_.size ());
+ {
+ for (infoProperty_const_iterator i (s.infoProperty_.begin ());
+ i != s.infoProperty_.end ();
+ ++i) add_infoProperty (*i);
+ }
+ }
+
+ ::CIAO::Config_Handlers::DeploymentPlan& DeploymentPlan::
+ operator= (::CIAO::Config_Handlers::DeploymentPlan const& s)
+ {
+ if (s.label_.get ()) label (*(s.label_));
+ else label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.UUID_.get ()) UUID (*(s.UUID_));
+ else UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ realizes (s.realizes ());
+
+ implementation (s.implementation ());
+
+ instance_.clear ();
+ instance_.reserve (s.instance_.size ());
+ {
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
+ }
+
+ connection_.clear ();
+ connection_.reserve (s.connection_.size ());
+ {
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
+ }
+
+ dependsOn_.clear ();
+ dependsOn_.reserve (s.dependsOn_.size ());
+ {
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
+ }
+
+ artifact_.clear ();
+ artifact_.reserve (s.artifact_.size ());
+ {
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
+ }
+
+ infoProperty_.clear ();
+ infoProperty_.reserve (s.infoProperty_.size ());
+ {
+ for (infoProperty_const_iterator i (s.infoProperty_.begin ());
+ i != s.infoProperty_.end ();
+ ++i) add_infoProperty (*i);
+ }
+
+ return *this;
+ }
+
+
+ // DeploymentPlan
+ //
+ bool DeploymentPlan::
+ label_p () const
+ {
+ return label_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& DeploymentPlan::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& DeploymentPlan::
+ label ()
+ {
+ return *label_;
+ }
+
+ void DeploymentPlan::
+ label (::XMLSchema::string< char > const& e)
+ {
+ if (label_.get ())
+ {
+ *label_ = e;
+ }
+
+ else
+ {
+ label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ label_->container (this);
+ }
+ }
+
+ // DeploymentPlan
+ //
+ bool DeploymentPlan::
+ UUID_p () const
+ {
+ return UUID_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& DeploymentPlan::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& DeploymentPlan::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void DeploymentPlan::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ if (UUID_.get ())
+ {
+ *UUID_ = e;
+ }
+
+ else
+ {
+ UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ UUID_->container (this);
+ }
+ }
+
+ // DeploymentPlan
+ //
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription const& DeploymentPlan::
+ realizes () const
+ {
+ return *realizes_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& DeploymentPlan::
+ realizes ()
+ {
+ return *realizes_;
+ }
+
+ void DeploymentPlan::
+ realizes (::CIAO::Config_Handlers::ComponentInterfaceDescription const& e)
+ {
+ *realizes_ = e;
+ }
+
+ // DeploymentPlan
+ //
+ ::CIAO::Config_Handlers::MonolithicDeploymentDescription const& DeploymentPlan::
+ implementation () const
+ {
+ return *implementation_;
+ }
+
+ ::CIAO::Config_Handlers::MonolithicDeploymentDescription& DeploymentPlan::
+ implementation ()
+ {
+ return *implementation_;
+ }
+
+ void DeploymentPlan::
+ implementation (::CIAO::Config_Handlers::MonolithicDeploymentDescription const& e)
+ {
+ *implementation_ = e;
+ }
+
+ // DeploymentPlan
+ //
+ DeploymentPlan::instance_iterator DeploymentPlan::
+ begin_instance ()
+ {
+ return instance_.begin ();
+ }
+
+ DeploymentPlan::instance_iterator DeploymentPlan::
+ end_instance ()
+ {
+ return instance_.end ();
+ }
+
+ DeploymentPlan::instance_const_iterator DeploymentPlan::
+ begin_instance () const
+ {
+ return instance_.begin ();
+ }
+
+ DeploymentPlan::instance_const_iterator DeploymentPlan::
+ end_instance () const
+ {
+ return instance_.end ();
+ }
+
+ void DeploymentPlan::
+ add_instance (::CIAO::Config_Handlers::InstanceDeploymentDescription const& e)
+ {
+ if (instance_.capacity () < instance_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::InstanceDeploymentDescription > v;
+ v.reserve (instance_.size () + 1);
+
+ while (instance_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::InstanceDeploymentDescription& t = instance_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ instance_.pop_back ();
+ }
+
+ instance_.swap (v);
+ }
+
+ instance_.push_back (e);
+ instance_.back ().container (this);
+ }
+
+ // DeploymentPlan
+ //
+ DeploymentPlan::connection_iterator DeploymentPlan::
+ begin_connection ()
+ {
+ return connection_.begin ();
+ }
+
+ DeploymentPlan::connection_iterator DeploymentPlan::
+ end_connection ()
+ {
+ return connection_.end ();
+ }
+
+ DeploymentPlan::connection_const_iterator DeploymentPlan::
+ begin_connection () const
+ {
+ return connection_.begin ();
+ }
+
+ DeploymentPlan::connection_const_iterator DeploymentPlan::
+ end_connection () const
+ {
+ return connection_.end ();
+ }
+
+ void DeploymentPlan::
+ add_connection (::CIAO::Config_Handlers::PlanConnectionDescription const& e)
+ {
+ if (connection_.capacity () < connection_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::PlanConnectionDescription > v;
+ v.reserve (connection_.size () + 1);
+
+ while (connection_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::PlanConnectionDescription& t = connection_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ connection_.pop_back ();
+ }
+
+ connection_.swap (v);
+ }
+
+ connection_.push_back (e);
+ connection_.back ().container (this);
+ }
+
+ // DeploymentPlan
+ //
+ DeploymentPlan::dependsOn_iterator DeploymentPlan::
+ begin_dependsOn ()
+ {
+ return dependsOn_.begin ();
+ }
+
+ DeploymentPlan::dependsOn_iterator DeploymentPlan::
+ end_dependsOn ()
+ {
+ return dependsOn_.end ();
+ }
+
+ DeploymentPlan::dependsOn_const_iterator DeploymentPlan::
+ begin_dependsOn () const
+ {
+ return dependsOn_.begin ();
+ }
+
+ DeploymentPlan::dependsOn_const_iterator DeploymentPlan::
+ end_dependsOn () const
+ {
+ return dependsOn_.end ();
+ }
+
+ void DeploymentPlan::
+ add_dependsOn (::CIAO::Config_Handlers::ImplementationDependency const& e)
+ {
+ if (dependsOn_.capacity () < dependsOn_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ImplementationDependency > v;
+ v.reserve (dependsOn_.size () + 1);
+
+ while (dependsOn_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ImplementationDependency& t = dependsOn_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ dependsOn_.pop_back ();
+ }
+
+ dependsOn_.swap (v);
+ }
+
+ dependsOn_.push_back (e);
+ dependsOn_.back ().container (this);
+ }
+
+ // DeploymentPlan
+ //
+ DeploymentPlan::artifact_iterator DeploymentPlan::
+ begin_artifact ()
+ {
+ return artifact_.begin ();
+ }
+
+ DeploymentPlan::artifact_iterator DeploymentPlan::
+ end_artifact ()
+ {
+ return artifact_.end ();
+ }
+
+ DeploymentPlan::artifact_const_iterator DeploymentPlan::
+ begin_artifact () const
+ {
+ return artifact_.begin ();
+ }
+
+ DeploymentPlan::artifact_const_iterator DeploymentPlan::
+ end_artifact () const
+ {
+ return artifact_.end ();
+ }
+
+ void DeploymentPlan::
+ add_artifact (::CIAO::Config_Handlers::ArtifactDeploymentDescription const& e)
+ {
+ if (artifact_.capacity () < artifact_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ArtifactDeploymentDescription > v;
+ v.reserve (artifact_.size () + 1);
+
+ while (artifact_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::ArtifactDeploymentDescription& t = artifact_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ artifact_.pop_back ();
+ }
+
+ artifact_.swap (v);
+ }
+
+ artifact_.push_back (e);
+ artifact_.back ().container (this);
+ }
+
+ // DeploymentPlan
+ //
+ DeploymentPlan::infoProperty_iterator DeploymentPlan::
+ begin_infoProperty ()
+ {
+ return infoProperty_.begin ();
+ }
+
+ DeploymentPlan::infoProperty_iterator DeploymentPlan::
+ end_infoProperty ()
+ {
+ return infoProperty_.end ();
+ }
+
+ DeploymentPlan::infoProperty_const_iterator DeploymentPlan::
+ begin_infoProperty () const
+ {
+ return infoProperty_.begin ();
+ }
+
+ DeploymentPlan::infoProperty_const_iterator DeploymentPlan::
+ end_infoProperty () const
+ {
+ return infoProperty_.end ();
+ }
+
+ void DeploymentPlan::
+ add_infoProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (infoProperty_.capacity () < infoProperty_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::Property > v;
+ v.reserve (infoProperty_.size () + 1);
+
+ while (infoProperty_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::Property& t = infoProperty_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ infoProperty_.pop_back ();
+ }
+
+ infoProperty_.swap (v);
+ }
+
+ infoProperty_.push_back (e);
+ infoProperty_.back ().container (this);
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // DeploymentPlan
+ //
+
+ DeploymentPlan::
+ DeploymentPlan (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ realizes_ (new ::CIAO::Config_Handlers::ComponentInterfaceDescription ()),
+ implementation_ (new ::CIAO::Config_Handlers::MonolithicDeploymentDescription ()),
+ regulator__ ()
+ {
+ realizes_->container (this);
+ implementation_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "realizes")
+ {
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription t (e);
+ realizes (t);
+ }
+
+ else if (n == "implementation")
+ {
+ ::CIAO::Config_Handlers::MonolithicDeploymentDescription t (e);
+ implementation (t);
+ }
+
+ else if (n == "instance")
+ {
+ ::CIAO::Config_Handlers::InstanceDeploymentDescription t (e);
+ add_instance (t);
+ }
+
+ else if (n == "connection")
+ {
+ ::CIAO::Config_Handlers::PlanConnectionDescription t (e);
+ add_connection (t);
+ }
+
+ else if (n == "dependsOn")
+ {
+ ::CIAO::Config_Handlers::ImplementationDependency t (e);
+ add_dependsOn (t);
+ }
+
+ else if (n == "artifact")
+ {
+ ::CIAO::Config_Handlers::ArtifactDeploymentDescription t (e);
+ add_artifact (t);
+ }
+
+ else if (n == "infoProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ add_infoProperty (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.hpp
new file mode 100644
index 00000000000..012daf5621a
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cdp.hpp
@@ -0,0 +1,164 @@
+// $Id$
+#ifndef CDP_HPP
+#define CDP_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class DeploymentPlan;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "ccd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class DeploymentPlan : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ bool label_p () const;
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ bool UUID_p () const;
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // realizes
+ //
+ public:
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription const& realizes () const;
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& realizes ();
+ void realizes (::CIAO::Config_Handlers::ComponentInterfaceDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > realizes_;
+
+ // implementation
+ //
+ public:
+ ::CIAO::Config_Handlers::MonolithicDeploymentDescription const& implementation () const;
+ ::CIAO::Config_Handlers::MonolithicDeploymentDescription& implementation ();
+ void implementation (::CIAO::Config_Handlers::MonolithicDeploymentDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::MonolithicDeploymentDescription > implementation_;
+
+ // instance
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::InstanceDeploymentDescription >::iterator instance_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::InstanceDeploymentDescription >::const_iterator instance_const_iterator;
+ instance_iterator begin_instance ();
+ instance_iterator end_instance ();
+ instance_const_iterator begin_instance () const;
+ instance_const_iterator end_instance () const;
+ void add_instance (::CIAO::Config_Handlers::InstanceDeploymentDescription const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::InstanceDeploymentDescription > instance_;
+
+ // connection
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::PlanConnectionDescription >::iterator connection_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PlanConnectionDescription >::const_iterator connection_const_iterator;
+ connection_iterator begin_connection ();
+ connection_iterator end_connection ();
+ connection_const_iterator begin_connection () const;
+ connection_const_iterator end_connection () const;
+ void add_connection (::CIAO::Config_Handlers::PlanConnectionDescription const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::PlanConnectionDescription > connection_;
+
+ // dependsOn
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ImplementationDependency >::iterator dependsOn_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ImplementationDependency >::const_iterator dependsOn_const_iterator;
+ dependsOn_iterator begin_dependsOn ();
+ dependsOn_iterator end_dependsOn ();
+ dependsOn_const_iterator begin_dependsOn () const;
+ dependsOn_const_iterator end_dependsOn () const;
+ void add_dependsOn (::CIAO::Config_Handlers::ImplementationDependency const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ImplementationDependency > dependsOn_;
+
+ // artifact
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::ArtifactDeploymentDescription >::iterator artifact_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ArtifactDeploymentDescription >::const_iterator artifact_const_iterator;
+ artifact_iterator begin_artifact ();
+ artifact_iterator end_artifact ();
+ artifact_const_iterator begin_artifact () const;
+ artifact_const_iterator end_artifact () const;
+ void add_artifact (::CIAO::Config_Handlers::ArtifactDeploymentDescription const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::ArtifactDeploymentDescription > artifact_;
+
+ // infoProperty
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::Property >::iterator infoProperty_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::Property >::const_iterator infoProperty_const_iterator;
+ infoProperty_iterator begin_infoProperty ();
+ infoProperty_iterator end_infoProperty ();
+ infoProperty_const_iterator begin_infoProperty () const;
+ infoProperty_const_iterator end_infoProperty () const;
+ void add_infoProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::Property > infoProperty_;
+
+ public:
+ DeploymentPlan ();
+ DeploymentPlan (::XSCRT::XML::Element< char > const&);
+ DeploymentPlan (DeploymentPlan const& s);
+
+ DeploymentPlan&
+ operator= (DeploymentPlan const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // CDP_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cid.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cid.cpp
new file mode 100644
index 00000000000..2b5ea3712db
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cid.cpp
@@ -0,0 +1,1554 @@
+// $Id$
+#include "cid.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // SubcomponentInstantiationDescription
+ //
+
+ SubcomponentInstantiationDescription::
+ SubcomponentInstantiationDescription ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ package_ (new ::CIAO::Config_Handlers::ComponentPackageDescription ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ package_->container (this);
+ }
+
+ SubcomponentInstantiationDescription::
+ SubcomponentInstantiationDescription (::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ package_ (new ::CIAO::Config_Handlers::ComponentPackageDescription (*s.package_)),
+ configProperty_ (s.configProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.configProperty_) : 0),
+ selectRequirement_ (s.selectRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.selectRequirement_) : 0),
+ reference_ (s.reference_.get () ? new ::CIAO::Config_Handlers::ComponentPackageReference (*s.reference_) : 0),
+ id_ (s.id_.get () ? new ::XMLSchema::ID< char > (*s.id_) : 0),
+ regulator__ ()
+ {
+ name_->container (this);
+ package_->container (this);
+ if (configProperty_.get ()) configProperty_->container (this);
+ if (selectRequirement_.get ()) selectRequirement_->container (this);
+ if (reference_.get ()) reference_->container (this);
+ if (id_.get ()) id_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription& SubcomponentInstantiationDescription::
+ operator= (::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& s)
+ {
+ name (s.name ());
+
+ package (s.package ());
+
+ if (s.configProperty_.get ()) configProperty (*(s.configProperty_));
+ else configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.selectRequirement_.get ()) selectRequirement (*(s.selectRequirement_));
+ else selectRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ if (s.reference_.get ()) reference (*(s.reference_));
+ else reference_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageReference > (0);
+
+ if (s.id_.get ()) id (*(s.id_));
+ else id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (0);
+
+ return *this;
+ }
+
+
+ // SubcomponentInstantiationDescription
+ //
+ ::XMLSchema::string< char > const& SubcomponentInstantiationDescription::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& SubcomponentInstantiationDescription::
+ name ()
+ {
+ return *name_;
+ }
+
+ void SubcomponentInstantiationDescription::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // SubcomponentInstantiationDescription
+ //
+ ::CIAO::Config_Handlers::ComponentPackageDescription const& SubcomponentInstantiationDescription::
+ package () const
+ {
+ return *package_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageDescription& SubcomponentInstantiationDescription::
+ package ()
+ {
+ return *package_;
+ }
+
+ void SubcomponentInstantiationDescription::
+ package (::CIAO::Config_Handlers::ComponentPackageDescription const& e)
+ {
+ *package_ = e;
+ }
+
+ // SubcomponentInstantiationDescription
+ //
+ bool SubcomponentInstantiationDescription::
+ configProperty_p () const
+ {
+ return configProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& SubcomponentInstantiationDescription::
+ configProperty () const
+ {
+ return *configProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& SubcomponentInstantiationDescription::
+ configProperty ()
+ {
+ return *configProperty_;
+ }
+
+ void SubcomponentInstantiationDescription::
+ configProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (configProperty_.get ())
+ {
+ *configProperty_ = e;
+ }
+
+ else
+ {
+ configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ configProperty_->container (this);
+ }
+ }
+
+ // SubcomponentInstantiationDescription
+ //
+ bool SubcomponentInstantiationDescription::
+ selectRequirement_p () const
+ {
+ return selectRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& SubcomponentInstantiationDescription::
+ selectRequirement () const
+ {
+ return *selectRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& SubcomponentInstantiationDescription::
+ selectRequirement ()
+ {
+ return *selectRequirement_;
+ }
+
+ void SubcomponentInstantiationDescription::
+ selectRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (selectRequirement_.get ())
+ {
+ *selectRequirement_ = e;
+ }
+
+ else
+ {
+ selectRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ selectRequirement_->container (this);
+ }
+ }
+
+ // SubcomponentInstantiationDescription
+ //
+ bool SubcomponentInstantiationDescription::
+ reference_p () const
+ {
+ return reference_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageReference const& SubcomponentInstantiationDescription::
+ reference () const
+ {
+ return *reference_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageReference& SubcomponentInstantiationDescription::
+ reference ()
+ {
+ return *reference_;
+ }
+
+ void SubcomponentInstantiationDescription::
+ reference (::CIAO::Config_Handlers::ComponentPackageReference const& e)
+ {
+ if (reference_.get ())
+ {
+ *reference_ = e;
+ }
+
+ else
+ {
+ reference_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageReference > (new ::CIAO::Config_Handlers::ComponentPackageReference (e));
+ reference_->container (this);
+ }
+ }
+
+ // SubcomponentInstantiationDescription
+ //
+ bool SubcomponentInstantiationDescription::
+ id_p () const
+ {
+ return id_.get () != 0;
+ }
+
+ ::XMLSchema::ID< char > const& SubcomponentInstantiationDescription::
+ id () const
+ {
+ return *id_;
+ }
+
+ ::XMLSchema::ID< char >& SubcomponentInstantiationDescription::
+ id ()
+ {
+ return *id_;
+ }
+
+ void SubcomponentInstantiationDescription::
+ id (::XMLSchema::ID< char > const& e)
+ {
+ if (id_.get ())
+ {
+ *id_ = e;
+ }
+
+ else
+ {
+ id_ = ::std::auto_ptr< ::XMLSchema::ID< char > > (new ::XMLSchema::ID< char > (e));
+ id_->container (this);
+ }
+ }
+
+
+ // SubcomponentPropertyReference
+ //
+
+ SubcomponentPropertyReference::
+ SubcomponentPropertyReference ()
+ :
+ propertyName_ (new ::XMLSchema::string< char > ()),
+ instance_ (new ::CIAO::Config_Handlers::SubcomponentInstantiationDescription ()),
+ regulator__ ()
+ {
+ propertyName_->container (this);
+ instance_->container (this);
+ }
+
+ SubcomponentPropertyReference::
+ SubcomponentPropertyReference (::CIAO::Config_Handlers::SubcomponentPropertyReference const& s)
+ :
+ propertyName_ (new ::XMLSchema::string< char > (*s.propertyName_)),
+ instance_ (new ::CIAO::Config_Handlers::SubcomponentInstantiationDescription (*s.instance_)),
+ regulator__ ()
+ {
+ propertyName_->container (this);
+ instance_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference& SubcomponentPropertyReference::
+ operator= (::CIAO::Config_Handlers::SubcomponentPropertyReference const& s)
+ {
+ propertyName (s.propertyName ());
+
+ instance (s.instance ());
+
+ return *this;
+ }
+
+
+ // SubcomponentPropertyReference
+ //
+ ::XMLSchema::string< char > const& SubcomponentPropertyReference::
+ propertyName () const
+ {
+ return *propertyName_;
+ }
+
+ ::XMLSchema::string< char >& SubcomponentPropertyReference::
+ propertyName ()
+ {
+ return *propertyName_;
+ }
+
+ void SubcomponentPropertyReference::
+ propertyName (::XMLSchema::string< char > const& e)
+ {
+ *propertyName_ = e;
+ }
+
+ // SubcomponentPropertyReference
+ //
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& SubcomponentPropertyReference::
+ instance () const
+ {
+ return *instance_;
+ }
+
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription& SubcomponentPropertyReference::
+ instance ()
+ {
+ return *instance_;
+ }
+
+ void SubcomponentPropertyReference::
+ instance (::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& e)
+ {
+ *instance_ = e;
+ }
+
+
+ // AssemblyPropertyMapping
+ //
+
+ AssemblyPropertyMapping::
+ AssemblyPropertyMapping ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ externalName_ (new ::XMLSchema::string< char > ()),
+ delegatesTo_ (new ::CIAO::Config_Handlers::SubcomponentPropertyReference ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ externalName_->container (this);
+ delegatesTo_->container (this);
+ }
+
+ AssemblyPropertyMapping::
+ AssemblyPropertyMapping (::CIAO::Config_Handlers::AssemblyPropertyMapping const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ externalName_ (new ::XMLSchema::string< char > (*s.externalName_)),
+ delegatesTo_ (new ::CIAO::Config_Handlers::SubcomponentPropertyReference (*s.delegatesTo_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ externalName_->container (this);
+ delegatesTo_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::AssemblyPropertyMapping& AssemblyPropertyMapping::
+ operator= (::CIAO::Config_Handlers::AssemblyPropertyMapping const& s)
+ {
+ name (s.name ());
+
+ externalName (s.externalName ());
+
+ delegatesTo (s.delegatesTo ());
+
+ return *this;
+ }
+
+
+ // AssemblyPropertyMapping
+ //
+ ::XMLSchema::string< char > const& AssemblyPropertyMapping::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& AssemblyPropertyMapping::
+ name ()
+ {
+ return *name_;
+ }
+
+ void AssemblyPropertyMapping::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // AssemblyPropertyMapping
+ //
+ ::XMLSchema::string< char > const& AssemblyPropertyMapping::
+ externalName () const
+ {
+ return *externalName_;
+ }
+
+ ::XMLSchema::string< char >& AssemblyPropertyMapping::
+ externalName ()
+ {
+ return *externalName_;
+ }
+
+ void AssemblyPropertyMapping::
+ externalName (::XMLSchema::string< char > const& e)
+ {
+ *externalName_ = e;
+ }
+
+ // AssemblyPropertyMapping
+ //
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference const& AssemblyPropertyMapping::
+ delegatesTo () const
+ {
+ return *delegatesTo_;
+ }
+
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference& AssemblyPropertyMapping::
+ delegatesTo ()
+ {
+ return *delegatesTo_;
+ }
+
+ void AssemblyPropertyMapping::
+ delegatesTo (::CIAO::Config_Handlers::SubcomponentPropertyReference const& e)
+ {
+ *delegatesTo_ = e;
+ }
+
+
+ // ComponentAssemblyDescription
+ //
+
+ ComponentAssemblyDescription::
+ ComponentAssemblyDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ ComponentAssemblyDescription::
+ ComponentAssemblyDescription (::CIAO::Config_Handlers::ComponentAssemblyDescription const& s)
+ :
+ externalProperty_ (s.externalProperty_.get () ? new ::CIAO::Config_Handlers::AssemblyPropertyMapping (*s.externalProperty_) : 0),
+ regulator__ ()
+ {
+ instance_.reserve (s.instance_.size ());
+ {
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
+ }
+
+ connection_.reserve (s.connection_.size ());
+ {
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
+ }
+
+ if (externalProperty_.get ()) externalProperty_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentAssemblyDescription& ComponentAssemblyDescription::
+ operator= (::CIAO::Config_Handlers::ComponentAssemblyDescription const& s)
+ {
+ instance_.clear ();
+ instance_.reserve (s.instance_.size ());
+ {
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
+ }
+
+ connection_.clear ();
+ connection_.reserve (s.connection_.size ());
+ {
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
+ }
+
+ if (s.externalProperty_.get ()) externalProperty (*(s.externalProperty_));
+ else externalProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::AssemblyPropertyMapping > (0);
+
+ return *this;
+ }
+
+
+ // ComponentAssemblyDescription
+ //
+ ComponentAssemblyDescription::instance_iterator ComponentAssemblyDescription::
+ begin_instance ()
+ {
+ return instance_.begin ();
+ }
+
+ ComponentAssemblyDescription::instance_iterator ComponentAssemblyDescription::
+ end_instance ()
+ {
+ return instance_.end ();
+ }
+
+ ComponentAssemblyDescription::instance_const_iterator ComponentAssemblyDescription::
+ begin_instance () const
+ {
+ return instance_.begin ();
+ }
+
+ ComponentAssemblyDescription::instance_const_iterator ComponentAssemblyDescription::
+ end_instance () const
+ {
+ return instance_.end ();
+ }
+
+ void ComponentAssemblyDescription::
+ add_instance (::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& e)
+ {
+ if (instance_.capacity () < instance_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::SubcomponentInstantiationDescription > v;
+ v.reserve (instance_.size () + 1);
+
+ while (instance_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription& t = instance_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ instance_.pop_back ();
+ }
+
+ instance_.swap (v);
+ }
+
+ instance_.push_back (e);
+ instance_.back ().container (this);
+ }
+
+ // ComponentAssemblyDescription
+ //
+ ComponentAssemblyDescription::connection_iterator ComponentAssemblyDescription::
+ begin_connection ()
+ {
+ return connection_.begin ();
+ }
+
+ ComponentAssemblyDescription::connection_iterator ComponentAssemblyDescription::
+ end_connection ()
+ {
+ return connection_.end ();
+ }
+
+ ComponentAssemblyDescription::connection_const_iterator ComponentAssemblyDescription::
+ begin_connection () const
+ {
+ return connection_.begin ();
+ }
+
+ ComponentAssemblyDescription::connection_const_iterator ComponentAssemblyDescription::
+ end_connection () const
+ {
+ return connection_.end ();
+ }
+
+ void ComponentAssemblyDescription::
+ add_connection (::CIAO::Config_Handlers::AssemblyConnectionDescription const& e)
+ {
+ if (connection_.capacity () < connection_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::AssemblyConnectionDescription > v;
+ v.reserve (connection_.size () + 1);
+
+ while (connection_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::AssemblyConnectionDescription& t = connection_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ connection_.pop_back ();
+ }
+
+ connection_.swap (v);
+ }
+
+ connection_.push_back (e);
+ connection_.back ().container (this);
+ }
+
+ // ComponentAssemblyDescription
+ //
+ bool ComponentAssemblyDescription::
+ externalProperty_p () const
+ {
+ return externalProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::AssemblyPropertyMapping const& ComponentAssemblyDescription::
+ externalProperty () const
+ {
+ return *externalProperty_;
+ }
+
+ ::CIAO::Config_Handlers::AssemblyPropertyMapping& ComponentAssemblyDescription::
+ externalProperty ()
+ {
+ return *externalProperty_;
+ }
+
+ void ComponentAssemblyDescription::
+ externalProperty (::CIAO::Config_Handlers::AssemblyPropertyMapping const& e)
+ {
+ if (externalProperty_.get ())
+ {
+ *externalProperty_ = e;
+ }
+
+ else
+ {
+ externalProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::AssemblyPropertyMapping > (new ::CIAO::Config_Handlers::AssemblyPropertyMapping (e));
+ externalProperty_->container (this);
+ }
+ }
+
+
+ // MonolithicImplementationDescription
+ //
+
+ MonolithicImplementationDescription::
+ MonolithicImplementationDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ MonolithicImplementationDescription::
+ MonolithicImplementationDescription (::CIAO::Config_Handlers::MonolithicImplementationDescription const& s)
+ :
+ execParameter_ (s.execParameter_.get () ? new ::CIAO::Config_Handlers::Property (*s.execParameter_) : 0),
+ deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::ImplementationRequirement (*s.deployRequirement_) : 0),
+ regulator__ ()
+ {
+ if (execParameter_.get ()) execParameter_->container (this);
+ primaryArtifact_.reserve (s.primaryArtifact_.size ());
+ {
+ for (primaryArtifact_const_iterator i (s.primaryArtifact_.begin ());
+ i != s.primaryArtifact_.end ();
+ ++i) add_primaryArtifact (*i);
+ }
+
+ if (deployRequirement_.get ()) deployRequirement_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::MonolithicImplementationDescription& MonolithicImplementationDescription::
+ operator= (::CIAO::Config_Handlers::MonolithicImplementationDescription const& s)
+ {
+ if (s.execParameter_.get ()) execParameter (*(s.execParameter_));
+ else execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ primaryArtifact_.clear ();
+ primaryArtifact_.reserve (s.primaryArtifact_.size ());
+ {
+ for (primaryArtifact_const_iterator i (s.primaryArtifact_.begin ());
+ i != s.primaryArtifact_.end ();
+ ++i) add_primaryArtifact (*i);
+ }
+
+ if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
+ else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationRequirement > (0);
+
+ return *this;
+ }
+
+
+ // MonolithicImplementationDescription
+ //
+ bool MonolithicImplementationDescription::
+ execParameter_p () const
+ {
+ return execParameter_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& MonolithicImplementationDescription::
+ execParameter () const
+ {
+ return *execParameter_;
+ }
+
+ ::CIAO::Config_Handlers::Property& MonolithicImplementationDescription::
+ execParameter ()
+ {
+ return *execParameter_;
+ }
+
+ void MonolithicImplementationDescription::
+ execParameter (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (execParameter_.get ())
+ {
+ *execParameter_ = e;
+ }
+
+ else
+ {
+ execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ execParameter_->container (this);
+ }
+ }
+
+ // MonolithicImplementationDescription
+ //
+ MonolithicImplementationDescription::primaryArtifact_iterator MonolithicImplementationDescription::
+ begin_primaryArtifact ()
+ {
+ return primaryArtifact_.begin ();
+ }
+
+ MonolithicImplementationDescription::primaryArtifact_iterator MonolithicImplementationDescription::
+ end_primaryArtifact ()
+ {
+ return primaryArtifact_.end ();
+ }
+
+ MonolithicImplementationDescription::primaryArtifact_const_iterator MonolithicImplementationDescription::
+ begin_primaryArtifact () const
+ {
+ return primaryArtifact_.begin ();
+ }
+
+ MonolithicImplementationDescription::primaryArtifact_const_iterator MonolithicImplementationDescription::
+ end_primaryArtifact () const
+ {
+ return primaryArtifact_.end ();
+ }
+
+ void MonolithicImplementationDescription::
+ add_primaryArtifact (::CIAO::Config_Handlers::NamedImplementationArtifact const& e)
+ {
+ if (primaryArtifact_.capacity () < primaryArtifact_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact > v;
+ v.reserve (primaryArtifact_.size () + 1);
+
+ while (primaryArtifact_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::NamedImplementationArtifact& t = primaryArtifact_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ primaryArtifact_.pop_back ();
+ }
+
+ primaryArtifact_.swap (v);
+ }
+
+ primaryArtifact_.push_back (e);
+ primaryArtifact_.back ().container (this);
+ }
+
+ // MonolithicImplementationDescription
+ //
+ bool MonolithicImplementationDescription::
+ deployRequirement_p () const
+ {
+ return deployRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ImplementationRequirement const& MonolithicImplementationDescription::
+ deployRequirement () const
+ {
+ return *deployRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::ImplementationRequirement& MonolithicImplementationDescription::
+ deployRequirement ()
+ {
+ return *deployRequirement_;
+ }
+
+ void MonolithicImplementationDescription::
+ deployRequirement (::CIAO::Config_Handlers::ImplementationRequirement const& e)
+ {
+ if (deployRequirement_.get ())
+ {
+ *deployRequirement_ = e;
+ }
+
+ else
+ {
+ deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationRequirement > (new ::CIAO::Config_Handlers::ImplementationRequirement (e));
+ deployRequirement_->container (this);
+ }
+ }
+
+
+ // ComponentImplementationDescription
+ //
+
+ ComponentImplementationDescription::
+ ComponentImplementationDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ ComponentImplementationDescription::
+ ComponentImplementationDescription (::CIAO::Config_Handlers::ComponentImplementationDescription const& s)
+ :
+ label_ (s.label_.get () ? new ::XMLSchema::string< char > (*s.label_) : 0),
+ UUID_ (s.UUID_.get () ? new ::XMLSchema::string< char > (*s.UUID_) : 0),
+ implements_ (s.implements_.get () ? new ::CIAO::Config_Handlers::ComponentInterfaceDescription (*s.implements_) : 0),
+ assemblyImpl_ (s.assemblyImpl_.get () ? new ::CIAO::Config_Handlers::ComponentAssemblyDescription (*s.assemblyImpl_) : 0),
+ monolithicImpl_ (s.monolithicImpl_.get () ? new ::CIAO::Config_Handlers::MonolithicImplementationDescription (*s.monolithicImpl_) : 0),
+ configProperty_ (s.configProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.configProperty_) : 0),
+ capability_ (s.capability_.get () ? new ::CIAO::Config_Handlers::Capability (*s.capability_) : 0),
+ dependsOn_ (s.dependsOn_.get () ? new ::CIAO::Config_Handlers::ImplementationDependency (*s.dependsOn_) : 0),
+ infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 0),
+ contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< char > (*s.contentLocation_) : 0),
+ regulator__ ()
+ {
+ if (label_.get ()) label_->container (this);
+ if (UUID_.get ()) UUID_->container (this);
+ if (implements_.get ()) implements_->container (this);
+ if (assemblyImpl_.get ()) assemblyImpl_->container (this);
+ if (monolithicImpl_.get ()) monolithicImpl_->container (this);
+ if (configProperty_.get ()) configProperty_->container (this);
+ if (capability_.get ()) capability_->container (this);
+ if (dependsOn_.get ()) dependsOn_->container (this);
+ if (infoProperty_.get ()) infoProperty_->container (this);
+ if (contentLocation_.get ()) contentLocation_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentImplementationDescription& ComponentImplementationDescription::
+ operator= (::CIAO::Config_Handlers::ComponentImplementationDescription const& s)
+ {
+ if (s.label_.get ()) label (*(s.label_));
+ else label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.UUID_.get ()) UUID (*(s.UUID_));
+ else UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.implements_.get ()) implements (*(s.implements_));
+ else implements_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > (0);
+
+ if (s.assemblyImpl_.get ()) assemblyImpl (*(s.assemblyImpl_));
+ else assemblyImpl_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentAssemblyDescription > (0);
+
+ if (s.monolithicImpl_.get ()) monolithicImpl (*(s.monolithicImpl_));
+ else monolithicImpl_ = ::std::auto_ptr< ::CIAO::Config_Handlers::MonolithicImplementationDescription > (0);
+
+ if (s.configProperty_.get ()) configProperty (*(s.configProperty_));
+ else configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.capability_.get ()) capability (*(s.capability_));
+ else capability_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Capability > (0);
+
+ if (s.dependsOn_.get ()) dependsOn (*(s.dependsOn_));
+ else dependsOn_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationDependency > (0);
+
+ if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_));
+ else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_));
+ else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ return *this;
+ }
+
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ label_p () const
+ {
+ return label_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentImplementationDescription::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& ComponentImplementationDescription::
+ label ()
+ {
+ return *label_;
+ }
+
+ void ComponentImplementationDescription::
+ label (::XMLSchema::string< char > const& e)
+ {
+ if (label_.get ())
+ {
+ *label_ = e;
+ }
+
+ else
+ {
+ label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ label_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ UUID_p () const
+ {
+ return UUID_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentImplementationDescription::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& ComponentImplementationDescription::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void ComponentImplementationDescription::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ if (UUID_.get ())
+ {
+ *UUID_ = e;
+ }
+
+ else
+ {
+ UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ UUID_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ implements_p () const
+ {
+ return implements_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription const& ComponentImplementationDescription::
+ implements () const
+ {
+ return *implements_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& ComponentImplementationDescription::
+ implements ()
+ {
+ return *implements_;
+ }
+
+ void ComponentImplementationDescription::
+ implements (::CIAO::Config_Handlers::ComponentInterfaceDescription const& e)
+ {
+ if (implements_.get ())
+ {
+ *implements_ = e;
+ }
+
+ else
+ {
+ implements_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > (new ::CIAO::Config_Handlers::ComponentInterfaceDescription (e));
+ implements_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ assemblyImpl_p () const
+ {
+ return assemblyImpl_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentAssemblyDescription const& ComponentImplementationDescription::
+ assemblyImpl () const
+ {
+ return *assemblyImpl_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentAssemblyDescription& ComponentImplementationDescription::
+ assemblyImpl ()
+ {
+ return *assemblyImpl_;
+ }
+
+ void ComponentImplementationDescription::
+ assemblyImpl (::CIAO::Config_Handlers::ComponentAssemblyDescription const& e)
+ {
+ if (assemblyImpl_.get ())
+ {
+ *assemblyImpl_ = e;
+ }
+
+ else
+ {
+ assemblyImpl_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentAssemblyDescription > (new ::CIAO::Config_Handlers::ComponentAssemblyDescription (e));
+ assemblyImpl_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ monolithicImpl_p () const
+ {
+ return monolithicImpl_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::MonolithicImplementationDescription const& ComponentImplementationDescription::
+ monolithicImpl () const
+ {
+ return *monolithicImpl_;
+ }
+
+ ::CIAO::Config_Handlers::MonolithicImplementationDescription& ComponentImplementationDescription::
+ monolithicImpl ()
+ {
+ return *monolithicImpl_;
+ }
+
+ void ComponentImplementationDescription::
+ monolithicImpl (::CIAO::Config_Handlers::MonolithicImplementationDescription const& e)
+ {
+ if (monolithicImpl_.get ())
+ {
+ *monolithicImpl_ = e;
+ }
+
+ else
+ {
+ monolithicImpl_ = ::std::auto_ptr< ::CIAO::Config_Handlers::MonolithicImplementationDescription > (new ::CIAO::Config_Handlers::MonolithicImplementationDescription (e));
+ monolithicImpl_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ configProperty_p () const
+ {
+ return configProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ComponentImplementationDescription::
+ configProperty () const
+ {
+ return *configProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ComponentImplementationDescription::
+ configProperty ()
+ {
+ return *configProperty_;
+ }
+
+ void ComponentImplementationDescription::
+ configProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (configProperty_.get ())
+ {
+ *configProperty_ = e;
+ }
+
+ else
+ {
+ configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ configProperty_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ capability_p () const
+ {
+ return capability_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Capability const& ComponentImplementationDescription::
+ capability () const
+ {
+ return *capability_;
+ }
+
+ ::CIAO::Config_Handlers::Capability& ComponentImplementationDescription::
+ capability ()
+ {
+ return *capability_;
+ }
+
+ void ComponentImplementationDescription::
+ capability (::CIAO::Config_Handlers::Capability const& e)
+ {
+ if (capability_.get ())
+ {
+ *capability_ = e;
+ }
+
+ else
+ {
+ capability_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Capability > (new ::CIAO::Config_Handlers::Capability (e));
+ capability_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ dependsOn_p () const
+ {
+ return dependsOn_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ImplementationDependency const& ComponentImplementationDescription::
+ dependsOn () const
+ {
+ return *dependsOn_;
+ }
+
+ ::CIAO::Config_Handlers::ImplementationDependency& ComponentImplementationDescription::
+ dependsOn ()
+ {
+ return *dependsOn_;
+ }
+
+ void ComponentImplementationDescription::
+ dependsOn (::CIAO::Config_Handlers::ImplementationDependency const& e)
+ {
+ if (dependsOn_.get ())
+ {
+ *dependsOn_ = e;
+ }
+
+ else
+ {
+ dependsOn_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationDependency > (new ::CIAO::Config_Handlers::ImplementationDependency (e));
+ dependsOn_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ infoProperty_p () const
+ {
+ return infoProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ComponentImplementationDescription::
+ infoProperty () const
+ {
+ return *infoProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ComponentImplementationDescription::
+ infoProperty ()
+ {
+ return *infoProperty_;
+ }
+
+ void ComponentImplementationDescription::
+ infoProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (infoProperty_.get ())
+ {
+ *infoProperty_ = e;
+ }
+
+ else
+ {
+ infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ infoProperty_->container (this);
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+ bool ComponentImplementationDescription::
+ contentLocation_p () const
+ {
+ return contentLocation_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentImplementationDescription::
+ contentLocation () const
+ {
+ return *contentLocation_;
+ }
+
+ ::XMLSchema::string< char >& ComponentImplementationDescription::
+ contentLocation ()
+ {
+ return *contentLocation_;
+ }
+
+ void ComponentImplementationDescription::
+ contentLocation (::XMLSchema::string< char > const& e)
+ {
+ if (contentLocation_.get ())
+ {
+ *contentLocation_ = e;
+ }
+
+ else
+ {
+ contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ contentLocation_->container (this);
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // SubcomponentInstantiationDescription
+ //
+
+ SubcomponentInstantiationDescription::
+ SubcomponentInstantiationDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ package_ (new ::CIAO::Config_Handlers::ComponentPackageDescription ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ package_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "package")
+ {
+ ::CIAO::Config_Handlers::ComponentPackageDescription t (e);
+ package (t);
+ }
+
+ else if (n == "configProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ configProperty (t);
+ }
+
+ else if (n == "selectRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ selectRequirement (t);
+ }
+
+ else if (n == "reference")
+ {
+ ::CIAO::Config_Handlers::ComponentPackageReference t (e);
+ reference (t);
+ }
+
+ else
+ {
+ }
+ }
+
+ while (p.more_attributes ())
+ {
+ ::XSCRT::XML::Attribute< char > a (p.next_attribute ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (a.name ()));
+ if (n == "id")
+ {
+ ::XMLSchema::ID< char > t (a);
+ id (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // SubcomponentPropertyReference
+ //
+
+ SubcomponentPropertyReference::
+ SubcomponentPropertyReference (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ propertyName_ (new ::XMLSchema::string< char > ()),
+ instance_ (new ::CIAO::Config_Handlers::SubcomponentInstantiationDescription ()),
+ regulator__ ()
+ {
+ propertyName_->container (this);
+ instance_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "propertyName")
+ {
+ ::XMLSchema::string< char > t (e);
+ propertyName (t);
+ }
+
+ else if (n == "instance")
+ {
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription t (e);
+ instance (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // AssemblyPropertyMapping
+ //
+
+ AssemblyPropertyMapping::
+ AssemblyPropertyMapping (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ externalName_ (new ::XMLSchema::string< char > ()),
+ delegatesTo_ (new ::CIAO::Config_Handlers::SubcomponentPropertyReference ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ externalName_->container (this);
+ delegatesTo_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "externalName")
+ {
+ ::XMLSchema::string< char > t (e);
+ externalName (t);
+ }
+
+ else if (n == "delegatesTo")
+ {
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference t (e);
+ delegatesTo (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ComponentAssemblyDescription
+ //
+
+ ComponentAssemblyDescription::
+ ComponentAssemblyDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "instance")
+ {
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription t (e);
+ add_instance (t);
+ }
+
+ else if (n == "connection")
+ {
+ ::CIAO::Config_Handlers::AssemblyConnectionDescription t (e);
+ add_connection (t);
+ }
+
+ else if (n == "externalProperty")
+ {
+ ::CIAO::Config_Handlers::AssemblyPropertyMapping t (e);
+ externalProperty (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // MonolithicImplementationDescription
+ //
+
+ MonolithicImplementationDescription::
+ MonolithicImplementationDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "execParameter")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ execParameter (t);
+ }
+
+ else if (n == "primaryArtifact")
+ {
+ ::CIAO::Config_Handlers::NamedImplementationArtifact t (e);
+ add_primaryArtifact (t);
+ }
+
+ else if (n == "deployRequirement")
+ {
+ ::CIAO::Config_Handlers::ImplementationRequirement t (e);
+ deployRequirement (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ComponentImplementationDescription
+ //
+
+ ComponentImplementationDescription::
+ ComponentImplementationDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "implements")
+ {
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription t (e);
+ implements (t);
+ }
+
+ else if (n == "assemblyImpl")
+ {
+ ::CIAO::Config_Handlers::ComponentAssemblyDescription t (e);
+ assemblyImpl (t);
+ }
+
+ else if (n == "monolithicImpl")
+ {
+ ::CIAO::Config_Handlers::MonolithicImplementationDescription t (e);
+ monolithicImpl (t);
+ }
+
+ else if (n == "configProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ configProperty (t);
+ }
+
+ else if (n == "capability")
+ {
+ ::CIAO::Config_Handlers::Capability t (e);
+ capability (t);
+ }
+
+ else if (n == "dependsOn")
+ {
+ ::CIAO::Config_Handlers::ImplementationDependency t (e);
+ dependsOn (t);
+ }
+
+ else if (n == "infoProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ infoProperty (t);
+ }
+
+ else if (n == "contentLocation")
+ {
+ ::XMLSchema::string< char > t (e);
+ contentLocation (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cid.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cid.hpp
new file mode 100644
index 00000000000..8e84504bafd
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cid.hpp
@@ -0,0 +1,445 @@
+// $Id$
+#ifndef CID_HPP
+#define CID_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class SubcomponentInstantiationDescription;
+ class SubcomponentPropertyReference;
+ class AssemblyPropertyMapping;
+ class ComponentAssemblyDescription;
+ class MonolithicImplementationDescription;
+ class ComponentImplementationDescription;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "Basic_Deployment_Data.hpp"
+
+#include "cpd.hpp"
+
+#include "iad.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class SubcomponentInstantiationDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // package
+ //
+ public:
+ ::CIAO::Config_Handlers::ComponentPackageDescription const& package () const;
+ ::CIAO::Config_Handlers::ComponentPackageDescription& package ();
+ void package (::CIAO::Config_Handlers::ComponentPackageDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageDescription > package_;
+
+ // configProperty
+ //
+ public:
+ bool configProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& configProperty () const;
+ ::CIAO::Config_Handlers::Property& configProperty ();
+ void configProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > configProperty_;
+
+ // selectRequirement
+ //
+ public:
+ bool selectRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& selectRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& selectRequirement ();
+ void selectRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > selectRequirement_;
+
+ // reference
+ //
+ public:
+ bool reference_p () const;
+ ::CIAO::Config_Handlers::ComponentPackageReference const& reference () const;
+ ::CIAO::Config_Handlers::ComponentPackageReference& reference ();
+ void reference (::CIAO::Config_Handlers::ComponentPackageReference const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageReference > reference_;
+
+ // id
+ //
+ public:
+ bool id_p () const;
+ ::XMLSchema::ID< char > const& id () const;
+ ::XMLSchema::ID< char >& id ();
+ void id (::XMLSchema::ID< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::ID< char > > id_;
+
+ public:
+ SubcomponentInstantiationDescription ();
+ SubcomponentInstantiationDescription (::XSCRT::XML::Element< char > const&);
+ SubcomponentInstantiationDescription (SubcomponentInstantiationDescription const& s);
+
+ SubcomponentInstantiationDescription&
+ operator= (SubcomponentInstantiationDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class SubcomponentPropertyReference : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // propertyName
+ //
+ public:
+ ::XMLSchema::string< char > const& propertyName () const;
+ ::XMLSchema::string< char >& propertyName ();
+ void propertyName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > propertyName_;
+
+ // instance
+ //
+ public:
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& instance () const;
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription& instance ();
+ void instance (::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SubcomponentInstantiationDescription > instance_;
+
+ public:
+ SubcomponentPropertyReference ();
+ SubcomponentPropertyReference (::XSCRT::XML::Element< char > const&);
+ SubcomponentPropertyReference (SubcomponentPropertyReference const& s);
+
+ SubcomponentPropertyReference&
+ operator= (SubcomponentPropertyReference const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class AssemblyPropertyMapping : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // externalName
+ //
+ public:
+ ::XMLSchema::string< char > const& externalName () const;
+ ::XMLSchema::string< char >& externalName ();
+ void externalName (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > externalName_;
+
+ // delegatesTo
+ //
+ public:
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference const& delegatesTo () const;
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference& delegatesTo ();
+ void delegatesTo (::CIAO::Config_Handlers::SubcomponentPropertyReference const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SubcomponentPropertyReference > delegatesTo_;
+
+ public:
+ AssemblyPropertyMapping ();
+ AssemblyPropertyMapping (::XSCRT::XML::Element< char > const&);
+ AssemblyPropertyMapping (AssemblyPropertyMapping const& s);
+
+ AssemblyPropertyMapping&
+ operator= (AssemblyPropertyMapping const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ComponentAssemblyDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // instance
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::SubcomponentInstantiationDescription >::iterator instance_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::SubcomponentInstantiationDescription >::const_iterator instance_const_iterator;
+ instance_iterator begin_instance ();
+ instance_iterator end_instance ();
+ instance_const_iterator begin_instance () const;
+ instance_const_iterator end_instance () const;
+ void add_instance (::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::SubcomponentInstantiationDescription > instance_;
+
+ // connection
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::AssemblyConnectionDescription >::iterator connection_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::AssemblyConnectionDescription >::const_iterator connection_const_iterator;
+ connection_iterator begin_connection ();
+ connection_iterator end_connection ();
+ connection_const_iterator begin_connection () const;
+ connection_const_iterator end_connection () const;
+ void add_connection (::CIAO::Config_Handlers::AssemblyConnectionDescription const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::AssemblyConnectionDescription > connection_;
+
+ // externalProperty
+ //
+ public:
+ bool externalProperty_p () const;
+ ::CIAO::Config_Handlers::AssemblyPropertyMapping const& externalProperty () const;
+ ::CIAO::Config_Handlers::AssemblyPropertyMapping& externalProperty ();
+ void externalProperty (::CIAO::Config_Handlers::AssemblyPropertyMapping const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::AssemblyPropertyMapping > externalProperty_;
+
+ public:
+ ComponentAssemblyDescription ();
+ ComponentAssemblyDescription (::XSCRT::XML::Element< char > const&);
+ ComponentAssemblyDescription (ComponentAssemblyDescription const& s);
+
+ ComponentAssemblyDescription&
+ operator= (ComponentAssemblyDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class MonolithicImplementationDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // execParameter
+ //
+ public:
+ bool execParameter_p () const;
+ ::CIAO::Config_Handlers::Property const& execParameter () const;
+ ::CIAO::Config_Handlers::Property& execParameter ();
+ void execParameter (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > execParameter_;
+
+ // primaryArtifact
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact >::iterator primaryArtifact_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact >::const_iterator primaryArtifact_const_iterator;
+ primaryArtifact_iterator begin_primaryArtifact ();
+ primaryArtifact_iterator end_primaryArtifact ();
+ primaryArtifact_const_iterator begin_primaryArtifact () const;
+ primaryArtifact_const_iterator end_primaryArtifact () const;
+ void add_primaryArtifact (::CIAO::Config_Handlers::NamedImplementationArtifact const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact > primaryArtifact_;
+
+ // deployRequirement
+ //
+ public:
+ bool deployRequirement_p () const;
+ ::CIAO::Config_Handlers::ImplementationRequirement const& deployRequirement () const;
+ ::CIAO::Config_Handlers::ImplementationRequirement& deployRequirement ();
+ void deployRequirement (::CIAO::Config_Handlers::ImplementationRequirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationRequirement > deployRequirement_;
+
+ public:
+ MonolithicImplementationDescription ();
+ MonolithicImplementationDescription (::XSCRT::XML::Element< char > const&);
+ MonolithicImplementationDescription (MonolithicImplementationDescription const& s);
+
+ MonolithicImplementationDescription&
+ operator= (MonolithicImplementationDescription const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ComponentImplementationDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ bool label_p () const;
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ bool UUID_p () const;
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // implements
+ //
+ public:
+ bool implements_p () const;
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription const& implements () const;
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& implements ();
+ void implements (::CIAO::Config_Handlers::ComponentInterfaceDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > implements_;
+
+ // assemblyImpl
+ //
+ public:
+ bool assemblyImpl_p () const;
+ ::CIAO::Config_Handlers::ComponentAssemblyDescription const& assemblyImpl () const;
+ ::CIAO::Config_Handlers::ComponentAssemblyDescription& assemblyImpl ();
+ void assemblyImpl (::CIAO::Config_Handlers::ComponentAssemblyDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentAssemblyDescription > assemblyImpl_;
+
+ // monolithicImpl
+ //
+ public:
+ bool monolithicImpl_p () const;
+ ::CIAO::Config_Handlers::MonolithicImplementationDescription const& monolithicImpl () const;
+ ::CIAO::Config_Handlers::MonolithicImplementationDescription& monolithicImpl ();
+ void monolithicImpl (::CIAO::Config_Handlers::MonolithicImplementationDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::MonolithicImplementationDescription > monolithicImpl_;
+
+ // configProperty
+ //
+ public:
+ bool configProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& configProperty () const;
+ ::CIAO::Config_Handlers::Property& configProperty ();
+ void configProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > configProperty_;
+
+ // capability
+ //
+ public:
+ bool capability_p () const;
+ ::CIAO::Config_Handlers::Capability const& capability () const;
+ ::CIAO::Config_Handlers::Capability& capability ();
+ void capability (::CIAO::Config_Handlers::Capability const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Capability > capability_;
+
+ // dependsOn
+ //
+ public:
+ bool dependsOn_p () const;
+ ::CIAO::Config_Handlers::ImplementationDependency const& dependsOn () const;
+ ::CIAO::Config_Handlers::ImplementationDependency& dependsOn ();
+ void dependsOn (::CIAO::Config_Handlers::ImplementationDependency const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationDependency > dependsOn_;
+
+ // infoProperty
+ //
+ public:
+ bool infoProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& infoProperty () const;
+ ::CIAO::Config_Handlers::Property& infoProperty ();
+ void infoProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > infoProperty_;
+
+ // contentLocation
+ //
+ public:
+ bool contentLocation_p () const;
+ ::XMLSchema::string< char > const& contentLocation () const;
+ ::XMLSchema::string< char >& contentLocation ();
+ void contentLocation (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > contentLocation_;
+
+ public:
+ ComponentImplementationDescription ();
+ ComponentImplementationDescription (::XSCRT::XML::Element< char > const&);
+ ComponentImplementationDescription (ComponentImplementationDescription const& s);
+
+ ComponentImplementationDescription&
+ operator= (ComponentImplementationDescription const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // CID_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.cpp
new file mode 100644
index 00000000000..93ffc86d1d3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.cpp
@@ -0,0 +1,507 @@
+// $Id$
+#include "cpd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // PackagedComponentImplementation
+ //
+
+ PackagedComponentImplementation::
+ PackagedComponentImplementation ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ referencedImplementation_ (new ::CIAO::Config_Handlers::ComponentImplementationDescription ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ referencedImplementation_->container (this);
+ }
+
+ PackagedComponentImplementation::
+ PackagedComponentImplementation (::CIAO::Config_Handlers::PackagedComponentImplementation const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ referencedImplementation_ (new ::CIAO::Config_Handlers::ComponentImplementationDescription (*s.referencedImplementation_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ referencedImplementation_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::PackagedComponentImplementation& PackagedComponentImplementation::
+ operator= (::CIAO::Config_Handlers::PackagedComponentImplementation const& s)
+ {
+ name (s.name ());
+
+ referencedImplementation (s.referencedImplementation ());
+
+ return *this;
+ }
+
+
+ // PackagedComponentImplementation
+ //
+ ::XMLSchema::string< char > const& PackagedComponentImplementation::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& PackagedComponentImplementation::
+ name ()
+ {
+ return *name_;
+ }
+
+ void PackagedComponentImplementation::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // PackagedComponentImplementation
+ //
+ ::CIAO::Config_Handlers::ComponentImplementationDescription const& PackagedComponentImplementation::
+ referencedImplementation () const
+ {
+ return *referencedImplementation_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentImplementationDescription& PackagedComponentImplementation::
+ referencedImplementation ()
+ {
+ return *referencedImplementation_;
+ }
+
+ void PackagedComponentImplementation::
+ referencedImplementation (::CIAO::Config_Handlers::ComponentImplementationDescription const& e)
+ {
+ *referencedImplementation_ = e;
+ }
+
+
+ // ComponentPackageDescription
+ //
+
+ ComponentPackageDescription::
+ ComponentPackageDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ ComponentPackageDescription::
+ ComponentPackageDescription (::CIAO::Config_Handlers::ComponentPackageDescription const& s)
+ :
+ label_ (s.label_.get () ? new ::XMLSchema::string< char > (*s.label_) : 0),
+ UUID_ (s.UUID_.get () ? new ::XMLSchema::string< char > (*s.UUID_) : 0),
+ realizes_ (s.realizes_.get () ? new ::CIAO::Config_Handlers::ComponentInterfaceDescription (*s.realizes_) : 0),
+ configProperty_ (s.configProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.configProperty_) : 0),
+ implementation_ (s.implementation_.get () ? new ::CIAO::Config_Handlers::PackagedComponentImplementation (*s.implementation_) : 0),
+ infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 0),
+ contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< char > (*s.contentLocation_) : 0),
+ regulator__ ()
+ {
+ if (label_.get ()) label_->container (this);
+ if (UUID_.get ()) UUID_->container (this);
+ if (realizes_.get ()) realizes_->container (this);
+ if (configProperty_.get ()) configProperty_->container (this);
+ if (implementation_.get ()) implementation_->container (this);
+ if (infoProperty_.get ()) infoProperty_->container (this);
+ if (contentLocation_.get ()) contentLocation_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageDescription& ComponentPackageDescription::
+ operator= (::CIAO::Config_Handlers::ComponentPackageDescription const& s)
+ {
+ if (s.label_.get ()) label (*(s.label_));
+ else label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.UUID_.get ()) UUID (*(s.UUID_));
+ else UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.realizes_.get ()) realizes (*(s.realizes_));
+ else realizes_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > (0);
+
+ if (s.configProperty_.get ()) configProperty (*(s.configProperty_));
+ else configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.implementation_.get ()) implementation (*(s.implementation_));
+ else implementation_ = ::std::auto_ptr< ::CIAO::Config_Handlers::PackagedComponentImplementation > (0);
+
+ if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_));
+ else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_));
+ else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ return *this;
+ }
+
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ label_p () const
+ {
+ return label_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentPackageDescription::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPackageDescription::
+ label ()
+ {
+ return *label_;
+ }
+
+ void ComponentPackageDescription::
+ label (::XMLSchema::string< char > const& e)
+ {
+ if (label_.get ())
+ {
+ *label_ = e;
+ }
+
+ else
+ {
+ label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ label_->container (this);
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ UUID_p () const
+ {
+ return UUID_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentPackageDescription::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPackageDescription::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void ComponentPackageDescription::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ if (UUID_.get ())
+ {
+ *UUID_ = e;
+ }
+
+ else
+ {
+ UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ UUID_->container (this);
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ realizes_p () const
+ {
+ return realizes_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription const& ComponentPackageDescription::
+ realizes () const
+ {
+ return *realizes_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& ComponentPackageDescription::
+ realizes ()
+ {
+ return *realizes_;
+ }
+
+ void ComponentPackageDescription::
+ realizes (::CIAO::Config_Handlers::ComponentInterfaceDescription const& e)
+ {
+ if (realizes_.get ())
+ {
+ *realizes_ = e;
+ }
+
+ else
+ {
+ realizes_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > (new ::CIAO::Config_Handlers::ComponentInterfaceDescription (e));
+ realizes_->container (this);
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ configProperty_p () const
+ {
+ return configProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ComponentPackageDescription::
+ configProperty () const
+ {
+ return *configProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ComponentPackageDescription::
+ configProperty ()
+ {
+ return *configProperty_;
+ }
+
+ void ComponentPackageDescription::
+ configProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (configProperty_.get ())
+ {
+ *configProperty_ = e;
+ }
+
+ else
+ {
+ configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ configProperty_->container (this);
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ implementation_p () const
+ {
+ return implementation_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::PackagedComponentImplementation const& ComponentPackageDescription::
+ implementation () const
+ {
+ return *implementation_;
+ }
+
+ ::CIAO::Config_Handlers::PackagedComponentImplementation& ComponentPackageDescription::
+ implementation ()
+ {
+ return *implementation_;
+ }
+
+ void ComponentPackageDescription::
+ implementation (::CIAO::Config_Handlers::PackagedComponentImplementation const& e)
+ {
+ if (implementation_.get ())
+ {
+ *implementation_ = e;
+ }
+
+ else
+ {
+ implementation_ = ::std::auto_ptr< ::CIAO::Config_Handlers::PackagedComponentImplementation > (new ::CIAO::Config_Handlers::PackagedComponentImplementation (e));
+ implementation_->container (this);
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ infoProperty_p () const
+ {
+ return infoProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ComponentPackageDescription::
+ infoProperty () const
+ {
+ return *infoProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ComponentPackageDescription::
+ infoProperty ()
+ {
+ return *infoProperty_;
+ }
+
+ void ComponentPackageDescription::
+ infoProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (infoProperty_.get ())
+ {
+ *infoProperty_ = e;
+ }
+
+ else
+ {
+ infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ infoProperty_->container (this);
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+ bool ComponentPackageDescription::
+ contentLocation_p () const
+ {
+ return contentLocation_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ComponentPackageDescription::
+ contentLocation () const
+ {
+ return *contentLocation_;
+ }
+
+ ::XMLSchema::string< char >& ComponentPackageDescription::
+ contentLocation ()
+ {
+ return *contentLocation_;
+ }
+
+ void ComponentPackageDescription::
+ contentLocation (::XMLSchema::string< char > const& e)
+ {
+ if (contentLocation_.get ())
+ {
+ *contentLocation_ = e;
+ }
+
+ else
+ {
+ contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ contentLocation_->container (this);
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // PackagedComponentImplementation
+ //
+
+ PackagedComponentImplementation::
+ PackagedComponentImplementation (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ referencedImplementation_ (new ::CIAO::Config_Handlers::ComponentImplementationDescription ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ referencedImplementation_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "referencedImplementation")
+ {
+ ::CIAO::Config_Handlers::ComponentImplementationDescription t (e);
+ referencedImplementation (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ComponentPackageDescription
+ //
+
+ ComponentPackageDescription::
+ ComponentPackageDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "realizes")
+ {
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription t (e);
+ realizes (t);
+ }
+
+ else if (n == "configProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ configProperty (t);
+ }
+
+ else if (n == "implementation")
+ {
+ ::CIAO::Config_Handlers::PackagedComponentImplementation t (e);
+ implementation (t);
+ }
+
+ else if (n == "infoProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ infoProperty (t);
+ }
+
+ else if (n == "contentLocation")
+ {
+ ::XMLSchema::string< char > t (e);
+ contentLocation (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.hpp
new file mode 100644
index 00000000000..290af440d33
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/cpd.hpp
@@ -0,0 +1,169 @@
+// $Id$
+#ifndef CPD_HPP
+#define CPD_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class PackagedComponentImplementation;
+ class ComponentPackageDescription;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "ccd.hpp"
+
+#include "cid.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class PackagedComponentImplementation : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // referencedImplementation
+ //
+ public:
+ ::CIAO::Config_Handlers::ComponentImplementationDescription const& referencedImplementation () const;
+ ::CIAO::Config_Handlers::ComponentImplementationDescription& referencedImplementation ();
+ void referencedImplementation (::CIAO::Config_Handlers::ComponentImplementationDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentImplementationDescription > referencedImplementation_;
+
+ public:
+ PackagedComponentImplementation ();
+ PackagedComponentImplementation (::XSCRT::XML::Element< char > const&);
+ PackagedComponentImplementation (PackagedComponentImplementation const& s);
+
+ PackagedComponentImplementation&
+ operator= (PackagedComponentImplementation const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ComponentPackageDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ bool label_p () const;
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ bool UUID_p () const;
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // realizes
+ //
+ public:
+ bool realizes_p () const;
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription const& realizes () const;
+ ::CIAO::Config_Handlers::ComponentInterfaceDescription& realizes ();
+ void realizes (::CIAO::Config_Handlers::ComponentInterfaceDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentInterfaceDescription > realizes_;
+
+ // configProperty
+ //
+ public:
+ bool configProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& configProperty () const;
+ ::CIAO::Config_Handlers::Property& configProperty ();
+ void configProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > configProperty_;
+
+ // implementation
+ //
+ public:
+ bool implementation_p () const;
+ ::CIAO::Config_Handlers::PackagedComponentImplementation const& implementation () const;
+ ::CIAO::Config_Handlers::PackagedComponentImplementation& implementation ();
+ void implementation (::CIAO::Config_Handlers::PackagedComponentImplementation const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::PackagedComponentImplementation > implementation_;
+
+ // infoProperty
+ //
+ public:
+ bool infoProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& infoProperty () const;
+ ::CIAO::Config_Handlers::Property& infoProperty ();
+ void infoProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > infoProperty_;
+
+ // contentLocation
+ //
+ public:
+ bool contentLocation_p () const;
+ ::XMLSchema::string< char > const& contentLocation () const;
+ ::XMLSchema::string< char >& contentLocation ();
+ void contentLocation (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > contentLocation_;
+
+ public:
+ ComponentPackageDescription ();
+ ComponentPackageDescription (::XSCRT::XML::Element< char > const&);
+ ComponentPackageDescription (ComponentPackageDescription const& s);
+
+ ComponentPackageDescription&
+ operator= (ComponentPackageDescription const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // CPD_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/iad.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/iad.cpp
new file mode 100644
index 00000000000..4615031d2ab
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/iad.cpp
@@ -0,0 +1,605 @@
+// $Id$
+#include "iad.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // NamedImplementationArtifact
+ //
+
+ NamedImplementationArtifact::
+ NamedImplementationArtifact ()
+ :
+ name_ (new ::XMLSchema::string< char > ()),
+ referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ referencedArtifact_->container (this);
+ }
+
+ NamedImplementationArtifact::
+ NamedImplementationArtifact (::CIAO::Config_Handlers::NamedImplementationArtifact const& s)
+ :
+ name_ (new ::XMLSchema::string< char > (*s.name_)),
+ referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (*s.referencedArtifact_)),
+ regulator__ ()
+ {
+ name_->container (this);
+ referencedArtifact_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::NamedImplementationArtifact& NamedImplementationArtifact::
+ operator= (::CIAO::Config_Handlers::NamedImplementationArtifact const& s)
+ {
+ name (s.name ());
+
+ referencedArtifact (s.referencedArtifact ());
+
+ return *this;
+ }
+
+
+ // NamedImplementationArtifact
+ //
+ ::XMLSchema::string< char > const& NamedImplementationArtifact::
+ name () const
+ {
+ return *name_;
+ }
+
+ ::XMLSchema::string< char >& NamedImplementationArtifact::
+ name ()
+ {
+ return *name_;
+ }
+
+ void NamedImplementationArtifact::
+ name (::XMLSchema::string< char > const& e)
+ {
+ *name_ = e;
+ }
+
+ // NamedImplementationArtifact
+ //
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription const& NamedImplementationArtifact::
+ referencedArtifact () const
+ {
+ return *referencedArtifact_;
+ }
+
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription& NamedImplementationArtifact::
+ referencedArtifact ()
+ {
+ return *referencedArtifact_;
+ }
+
+ void NamedImplementationArtifact::
+ referencedArtifact (::CIAO::Config_Handlers::ImplementationArtifactDescription const& e)
+ {
+ *referencedArtifact_ = e;
+ }
+
+
+ // ImplementationArtifactDescription
+ //
+
+ ImplementationArtifactDescription::
+ ImplementationArtifactDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ ImplementationArtifactDescription::
+ ImplementationArtifactDescription (::CIAO::Config_Handlers::ImplementationArtifactDescription const& s)
+ :
+ label_ (s.label_.get () ? new ::XMLSchema::string< char > (*s.label_) : 0),
+ UUID_ (s.UUID_.get () ? new ::XMLSchema::string< char > (*s.UUID_) : 0),
+ execParameter_ (s.execParameter_.get () ? new ::CIAO::Config_Handlers::Property (*s.execParameter_) : 0),
+ deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0),
+ infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 0),
+ contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< char > (*s.contentLocation_) : 0),
+ regulator__ ()
+ {
+ if (label_.get ()) label_->container (this);
+ if (UUID_.get ()) UUID_->container (this);
+ location_.reserve (s.location_.size ());
+ {
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
+ }
+
+ if (execParameter_.get ()) execParameter_->container (this);
+ if (deployRequirement_.get ()) deployRequirement_->container (this);
+ dependsOn_.reserve (s.dependsOn_.size ());
+ {
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
+ }
+
+ if (infoProperty_.get ()) infoProperty_->container (this);
+ if (contentLocation_.get ()) contentLocation_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription& ImplementationArtifactDescription::
+ operator= (::CIAO::Config_Handlers::ImplementationArtifactDescription const& s)
+ {
+ if (s.label_.get ()) label (*(s.label_));
+ else label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.UUID_.get ()) UUID (*(s.UUID_));
+ else UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ location_.clear ();
+ location_.reserve (s.location_.size ());
+ {
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
+ }
+
+ if (s.execParameter_.get ()) execParameter (*(s.execParameter_));
+ else execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
+ else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ dependsOn_.clear ();
+ dependsOn_.reserve (s.dependsOn_.size ());
+ {
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
+ }
+
+ if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_));
+ else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_));
+ else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ return *this;
+ }
+
+
+ // ImplementationArtifactDescription
+ //
+ bool ImplementationArtifactDescription::
+ label_p () const
+ {
+ return label_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ImplementationArtifactDescription::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationArtifactDescription::
+ label ()
+ {
+ return *label_;
+ }
+
+ void ImplementationArtifactDescription::
+ label (::XMLSchema::string< char > const& e)
+ {
+ if (label_.get ())
+ {
+ *label_ = e;
+ }
+
+ else
+ {
+ label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ label_->container (this);
+ }
+ }
+
+ // ImplementationArtifactDescription
+ //
+ bool ImplementationArtifactDescription::
+ UUID_p () const
+ {
+ return UUID_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ImplementationArtifactDescription::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationArtifactDescription::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void ImplementationArtifactDescription::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ if (UUID_.get ())
+ {
+ *UUID_ = e;
+ }
+
+ else
+ {
+ UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ UUID_->container (this);
+ }
+ }
+
+ // ImplementationArtifactDescription
+ //
+ ImplementationArtifactDescription::location_iterator ImplementationArtifactDescription::
+ begin_location ()
+ {
+ return location_.begin ();
+ }
+
+ ImplementationArtifactDescription::location_iterator ImplementationArtifactDescription::
+ end_location ()
+ {
+ return location_.end ();
+ }
+
+ ImplementationArtifactDescription::location_const_iterator ImplementationArtifactDescription::
+ begin_location () const
+ {
+ return location_.begin ();
+ }
+
+ ImplementationArtifactDescription::location_const_iterator ImplementationArtifactDescription::
+ end_location () const
+ {
+ return location_.end ();
+ }
+
+ void ImplementationArtifactDescription::
+ add_location (::XMLSchema::string< char > const& e)
+ {
+ if (location_.capacity () < location_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::string< char > > v;
+ v.reserve (location_.size () + 1);
+
+ while (location_.size ())
+ {
+ //@@ VC6
+ ::XMLSchema::string< char >& t = location_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ location_.pop_back ();
+ }
+
+ location_.swap (v);
+ }
+
+ location_.push_back (e);
+ location_.back ().container (this);
+ }
+
+ // ImplementationArtifactDescription
+ //
+ bool ImplementationArtifactDescription::
+ execParameter_p () const
+ {
+ return execParameter_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ImplementationArtifactDescription::
+ execParameter () const
+ {
+ return *execParameter_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ImplementationArtifactDescription::
+ execParameter ()
+ {
+ return *execParameter_;
+ }
+
+ void ImplementationArtifactDescription::
+ execParameter (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (execParameter_.get ())
+ {
+ *execParameter_ = e;
+ }
+
+ else
+ {
+ execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ execParameter_->container (this);
+ }
+ }
+
+ // ImplementationArtifactDescription
+ //
+ bool ImplementationArtifactDescription::
+ deployRequirement_p () const
+ {
+ return deployRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& ImplementationArtifactDescription::
+ deployRequirement () const
+ {
+ return *deployRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& ImplementationArtifactDescription::
+ deployRequirement ()
+ {
+ return *deployRequirement_;
+ }
+
+ void ImplementationArtifactDescription::
+ deployRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (deployRequirement_.get ())
+ {
+ *deployRequirement_ = e;
+ }
+
+ else
+ {
+ deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ deployRequirement_->container (this);
+ }
+ }
+
+ // ImplementationArtifactDescription
+ //
+ ImplementationArtifactDescription::dependsOn_iterator ImplementationArtifactDescription::
+ begin_dependsOn ()
+ {
+ return dependsOn_.begin ();
+ }
+
+ ImplementationArtifactDescription::dependsOn_iterator ImplementationArtifactDescription::
+ end_dependsOn ()
+ {
+ return dependsOn_.end ();
+ }
+
+ ImplementationArtifactDescription::dependsOn_const_iterator ImplementationArtifactDescription::
+ begin_dependsOn () const
+ {
+ return dependsOn_.begin ();
+ }
+
+ ImplementationArtifactDescription::dependsOn_const_iterator ImplementationArtifactDescription::
+ end_dependsOn () const
+ {
+ return dependsOn_.end ();
+ }
+
+ void ImplementationArtifactDescription::
+ add_dependsOn (::CIAO::Config_Handlers::NamedImplementationArtifact const& e)
+ {
+ if (dependsOn_.capacity () < dependsOn_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact > v;
+ v.reserve (dependsOn_.size () + 1);
+
+ while (dependsOn_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::NamedImplementationArtifact& t = dependsOn_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ dependsOn_.pop_back ();
+ }
+
+ dependsOn_.swap (v);
+ }
+
+ dependsOn_.push_back (e);
+ dependsOn_.back ().container (this);
+ }
+
+ // ImplementationArtifactDescription
+ //
+ bool ImplementationArtifactDescription::
+ infoProperty_p () const
+ {
+ return infoProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& ImplementationArtifactDescription::
+ infoProperty () const
+ {
+ return *infoProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& ImplementationArtifactDescription::
+ infoProperty ()
+ {
+ return *infoProperty_;
+ }
+
+ void ImplementationArtifactDescription::
+ infoProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (infoProperty_.get ())
+ {
+ *infoProperty_ = e;
+ }
+
+ else
+ {
+ infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ infoProperty_->container (this);
+ }
+ }
+
+ // ImplementationArtifactDescription
+ //
+ bool ImplementationArtifactDescription::
+ contentLocation_p () const
+ {
+ return contentLocation_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& ImplementationArtifactDescription::
+ contentLocation () const
+ {
+ return *contentLocation_;
+ }
+
+ ::XMLSchema::string< char >& ImplementationArtifactDescription::
+ contentLocation ()
+ {
+ return *contentLocation_;
+ }
+
+ void ImplementationArtifactDescription::
+ contentLocation (::XMLSchema::string< char > const& e)
+ {
+ if (contentLocation_.get ())
+ {
+ *contentLocation_ = e;
+ }
+
+ else
+ {
+ contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ contentLocation_->container (this);
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // NamedImplementationArtifact
+ //
+
+ NamedImplementationArtifact::
+ NamedImplementationArtifact (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ name_ (new ::XMLSchema::string< char > ()),
+ referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription ()),
+ regulator__ ()
+ {
+ name_->container (this);
+ referencedArtifact_->container (this);
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "name")
+ {
+ ::XMLSchema::string< char > t (e);
+ name (t);
+ }
+
+ else if (n == "referencedArtifact")
+ {
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription t (e);
+ referencedArtifact (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+
+ // ImplementationArtifactDescription
+ //
+
+ ImplementationArtifactDescription::
+ ImplementationArtifactDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "location")
+ {
+ ::XMLSchema::string< char > t (e);
+ add_location (t);
+ }
+
+ else if (n == "execParameter")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ execParameter (t);
+ }
+
+ else if (n == "deployRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ deployRequirement (t);
+ }
+
+ else if (n == "dependsOn")
+ {
+ ::CIAO::Config_Handlers::NamedImplementationArtifact t (e);
+ add_dependsOn (t);
+ }
+
+ else if (n == "infoProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ infoProperty (t);
+ }
+
+ else if (n == "contentLocation")
+ {
+ ::XMLSchema::string< char > t (e);
+ contentLocation (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/iad.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/iad.hpp
new file mode 100644
index 00000000000..882a18332a8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/iad.hpp
@@ -0,0 +1,184 @@
+// $Id$
+#ifndef IAD_HPP
+#define IAD_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class NamedImplementationArtifact;
+ class ImplementationArtifactDescription;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "Basic_Deployment_Data.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class NamedImplementationArtifact : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // name
+ //
+ public:
+ ::XMLSchema::string< char > const& name () const;
+ ::XMLSchema::string< char >& name ();
+ void name (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > name_;
+
+ // referencedArtifact
+ //
+ public:
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact () const;
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription& referencedArtifact ();
+ void referencedArtifact (::CIAO::Config_Handlers::ImplementationArtifactDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationArtifactDescription > referencedArtifact_;
+
+ public:
+ NamedImplementationArtifact ();
+ NamedImplementationArtifact (::XSCRT::XML::Element< char > const&);
+ NamedImplementationArtifact (NamedImplementationArtifact const& s);
+
+ NamedImplementationArtifact&
+ operator= (NamedImplementationArtifact const& s);
+
+ private:
+ char regulator__;
+ };
+
+ class ImplementationArtifactDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ bool label_p () const;
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ bool UUID_p () const;
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // location
+ //
+ public:
+ typedef ::std::vector< ::XMLSchema::string< char > >::iterator location_iterator;
+ typedef ::std::vector< ::XMLSchema::string< char > >::const_iterator location_const_iterator;
+ location_iterator begin_location ();
+ location_iterator end_location ();
+ location_const_iterator begin_location () const;
+ location_const_iterator end_location () const;
+ void add_location (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::vector< ::XMLSchema::string< char > > location_;
+
+ // execParameter
+ //
+ public:
+ bool execParameter_p () const;
+ ::CIAO::Config_Handlers::Property const& execParameter () const;
+ ::CIAO::Config_Handlers::Property& execParameter ();
+ void execParameter (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > execParameter_;
+
+ // deployRequirement
+ //
+ public:
+ bool deployRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& deployRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& deployRequirement ();
+ void deployRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
+
+ // dependsOn
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact >::iterator dependsOn_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact >::const_iterator dependsOn_const_iterator;
+ dependsOn_iterator begin_dependsOn ();
+ dependsOn_iterator end_dependsOn ();
+ dependsOn_const_iterator begin_dependsOn () const;
+ dependsOn_const_iterator end_dependsOn () const;
+ void add_dependsOn (::CIAO::Config_Handlers::NamedImplementationArtifact const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact > dependsOn_;
+
+ // infoProperty
+ //
+ public:
+ bool infoProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& infoProperty () const;
+ ::CIAO::Config_Handlers::Property& infoProperty ();
+ void infoProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > infoProperty_;
+
+ // contentLocation
+ //
+ public:
+ bool contentLocation_p () const;
+ ::XMLSchema::string< char > const& contentLocation () const;
+ ::XMLSchema::string< char >& contentLocation ();
+ void contentLocation (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > contentLocation_;
+
+ public:
+ ImplementationArtifactDescription ();
+ ImplementationArtifactDescription (::XSCRT::XML::Element< char > const&);
+ ImplementationArtifactDescription (ImplementationArtifactDescription const& s);
+
+ ImplementationArtifactDescription&
+ operator= (ImplementationArtifactDescription const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // IAD_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.cpp
new file mode 100644
index 00000000000..bcae0ddb3a8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.cpp
@@ -0,0 +1,391 @@
+// $Id$
+#include "pcd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // PackageConfiguration
+ //
+
+ PackageConfiguration::
+ PackageConfiguration ()
+ :
+ regulator__ ()
+ {
+ }
+
+ PackageConfiguration::
+ PackageConfiguration (::CIAO::Config_Handlers::PackageConfiguration const& s)
+ :
+ label_ (s.label_.get () ? new ::XMLSchema::string< char > (*s.label_) : 0),
+ UUID_ (s.UUID_.get () ? new ::XMLSchema::string< char > (*s.UUID_) : 0),
+ basePackage_ (s.basePackage_.get () ? new ::CIAO::Config_Handlers::ComponentPackageDescription (*s.basePackage_) : 0),
+ reference_ (s.reference_.get () ? new ::CIAO::Config_Handlers::ComponentPackageReference (*s.reference_) : 0),
+ selectRequirement_ (s.selectRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.selectRequirement_) : 0),
+ configProperty_ (s.configProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.configProperty_) : 0),
+ contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< char > (*s.contentLocation_) : 0),
+ regulator__ ()
+ {
+ if (label_.get ()) label_->container (this);
+ if (UUID_.get ()) UUID_->container (this);
+ if (basePackage_.get ()) basePackage_->container (this);
+ if (reference_.get ()) reference_->container (this);
+ if (selectRequirement_.get ()) selectRequirement_->container (this);
+ if (configProperty_.get ()) configProperty_->container (this);
+ if (contentLocation_.get ()) contentLocation_->container (this);
+ }
+
+ ::CIAO::Config_Handlers::PackageConfiguration& PackageConfiguration::
+ operator= (::CIAO::Config_Handlers::PackageConfiguration const& s)
+ {
+ if (s.label_.get ()) label (*(s.label_));
+ else label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.UUID_.get ()) UUID (*(s.UUID_));
+ else UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ if (s.basePackage_.get ()) basePackage (*(s.basePackage_));
+ else basePackage_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageDescription > (0);
+
+ if (s.reference_.get ()) reference (*(s.reference_));
+ else reference_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageReference > (0);
+
+ if (s.selectRequirement_.get ()) selectRequirement (*(s.selectRequirement_));
+ else selectRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0);
+
+ if (s.configProperty_.get ()) configProperty (*(s.configProperty_));
+ else configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0);
+
+ if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_));
+ else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (0);
+
+ return *this;
+ }
+
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ label_p () const
+ {
+ return label_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& PackageConfiguration::
+ label () const
+ {
+ return *label_;
+ }
+
+ ::XMLSchema::string< char >& PackageConfiguration::
+ label ()
+ {
+ return *label_;
+ }
+
+ void PackageConfiguration::
+ label (::XMLSchema::string< char > const& e)
+ {
+ if (label_.get ())
+ {
+ *label_ = e;
+ }
+
+ else
+ {
+ label_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ label_->container (this);
+ }
+ }
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ UUID_p () const
+ {
+ return UUID_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& PackageConfiguration::
+ UUID () const
+ {
+ return *UUID_;
+ }
+
+ ::XMLSchema::string< char >& PackageConfiguration::
+ UUID ()
+ {
+ return *UUID_;
+ }
+
+ void PackageConfiguration::
+ UUID (::XMLSchema::string< char > const& e)
+ {
+ if (UUID_.get ())
+ {
+ *UUID_ = e;
+ }
+
+ else
+ {
+ UUID_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ UUID_->container (this);
+ }
+ }
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ basePackage_p () const
+ {
+ return basePackage_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageDescription const& PackageConfiguration::
+ basePackage () const
+ {
+ return *basePackage_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageDescription& PackageConfiguration::
+ basePackage ()
+ {
+ return *basePackage_;
+ }
+
+ void PackageConfiguration::
+ basePackage (::CIAO::Config_Handlers::ComponentPackageDescription const& e)
+ {
+ if (basePackage_.get ())
+ {
+ *basePackage_ = e;
+ }
+
+ else
+ {
+ basePackage_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageDescription > (new ::CIAO::Config_Handlers::ComponentPackageDescription (e));
+ basePackage_->container (this);
+ }
+ }
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ reference_p () const
+ {
+ return reference_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageReference const& PackageConfiguration::
+ reference () const
+ {
+ return *reference_;
+ }
+
+ ::CIAO::Config_Handlers::ComponentPackageReference& PackageConfiguration::
+ reference ()
+ {
+ return *reference_;
+ }
+
+ void PackageConfiguration::
+ reference (::CIAO::Config_Handlers::ComponentPackageReference const& e)
+ {
+ if (reference_.get ())
+ {
+ *reference_ = e;
+ }
+
+ else
+ {
+ reference_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageReference > (new ::CIAO::Config_Handlers::ComponentPackageReference (e));
+ reference_->container (this);
+ }
+ }
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ selectRequirement_p () const
+ {
+ return selectRequirement_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Requirement const& PackageConfiguration::
+ selectRequirement () const
+ {
+ return *selectRequirement_;
+ }
+
+ ::CIAO::Config_Handlers::Requirement& PackageConfiguration::
+ selectRequirement ()
+ {
+ return *selectRequirement_;
+ }
+
+ void PackageConfiguration::
+ selectRequirement (::CIAO::Config_Handlers::Requirement const& e)
+ {
+ if (selectRequirement_.get ())
+ {
+ *selectRequirement_ = e;
+ }
+
+ else
+ {
+ selectRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e));
+ selectRequirement_->container (this);
+ }
+ }
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ configProperty_p () const
+ {
+ return configProperty_.get () != 0;
+ }
+
+ ::CIAO::Config_Handlers::Property const& PackageConfiguration::
+ configProperty () const
+ {
+ return *configProperty_;
+ }
+
+ ::CIAO::Config_Handlers::Property& PackageConfiguration::
+ configProperty ()
+ {
+ return *configProperty_;
+ }
+
+ void PackageConfiguration::
+ configProperty (::CIAO::Config_Handlers::Property const& e)
+ {
+ if (configProperty_.get ())
+ {
+ *configProperty_ = e;
+ }
+
+ else
+ {
+ configProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e));
+ configProperty_->container (this);
+ }
+ }
+
+ // PackageConfiguration
+ //
+ bool PackageConfiguration::
+ contentLocation_p () const
+ {
+ return contentLocation_.get () != 0;
+ }
+
+ ::XMLSchema::string< char > const& PackageConfiguration::
+ contentLocation () const
+ {
+ return *contentLocation_;
+ }
+
+ ::XMLSchema::string< char >& PackageConfiguration::
+ contentLocation ()
+ {
+ return *contentLocation_;
+ }
+
+ void PackageConfiguration::
+ contentLocation (::XMLSchema::string< char > const& e)
+ {
+ if (contentLocation_.get ())
+ {
+ *contentLocation_ = e;
+ }
+
+ else
+ {
+ contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< char > > (new ::XMLSchema::string< char > (e));
+ contentLocation_->container (this);
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // PackageConfiguration
+ //
+
+ PackageConfiguration::
+ PackageConfiguration (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "label")
+ {
+ ::XMLSchema::string< char > t (e);
+ label (t);
+ }
+
+ else if (n == "UUID")
+ {
+ ::XMLSchema::string< char > t (e);
+ UUID (t);
+ }
+
+ else if (n == "basePackage")
+ {
+ ::CIAO::Config_Handlers::ComponentPackageDescription t (e);
+ basePackage (t);
+ }
+
+ else if (n == "reference")
+ {
+ ::CIAO::Config_Handlers::ComponentPackageReference t (e);
+ reference (t);
+ }
+
+ else if (n == "selectRequirement")
+ {
+ ::CIAO::Config_Handlers::Requirement t (e);
+ selectRequirement (t);
+ }
+
+ else if (n == "configProperty")
+ {
+ ::CIAO::Config_Handlers::Property t (e);
+ configProperty (t);
+ }
+
+ else if (n == "contentLocation")
+ {
+ ::XMLSchema::string< char > t (e);
+ contentLocation (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.hpp
new file mode 100644
index 00000000000..94ad98b2f56
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/pcd.hpp
@@ -0,0 +1,131 @@
+// $Id$
+#ifndef PCD_HPP
+#define PCD_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class PackageConfiguration;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "Basic_Deployment_Data.hpp"
+
+#include "cpd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class PackageConfiguration : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // label
+ //
+ public:
+ bool label_p () const;
+ ::XMLSchema::string< char > const& label () const;
+ ::XMLSchema::string< char >& label ();
+ void label (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > label_;
+
+ // UUID
+ //
+ public:
+ bool UUID_p () const;
+ ::XMLSchema::string< char > const& UUID () const;
+ ::XMLSchema::string< char >& UUID ();
+ void UUID (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > UUID_;
+
+ // basePackage
+ //
+ public:
+ bool basePackage_p () const;
+ ::CIAO::Config_Handlers::ComponentPackageDescription const& basePackage () const;
+ ::CIAO::Config_Handlers::ComponentPackageDescription& basePackage ();
+ void basePackage (::CIAO::Config_Handlers::ComponentPackageDescription const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageDescription > basePackage_;
+
+ // reference
+ //
+ public:
+ bool reference_p () const;
+ ::CIAO::Config_Handlers::ComponentPackageReference const& reference () const;
+ ::CIAO::Config_Handlers::ComponentPackageReference& reference ();
+ void reference (::CIAO::Config_Handlers::ComponentPackageReference const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::ComponentPackageReference > reference_;
+
+ // selectRequirement
+ //
+ public:
+ bool selectRequirement_p () const;
+ ::CIAO::Config_Handlers::Requirement const& selectRequirement () const;
+ ::CIAO::Config_Handlers::Requirement& selectRequirement ();
+ void selectRequirement (::CIAO::Config_Handlers::Requirement const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > selectRequirement_;
+
+ // configProperty
+ //
+ public:
+ bool configProperty_p () const;
+ ::CIAO::Config_Handlers::Property const& configProperty () const;
+ ::CIAO::Config_Handlers::Property& configProperty ();
+ void configProperty (::CIAO::Config_Handlers::Property const& );
+
+ protected:
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Property > configProperty_;
+
+ // contentLocation
+ //
+ public:
+ bool contentLocation_p () const;
+ ::XMLSchema::string< char > const& contentLocation () const;
+ ::XMLSchema::string< char >& contentLocation ();
+ void contentLocation (::XMLSchema::string< char > const& );
+
+ protected:
+ ::std::auto_ptr< ::XMLSchema::string< char > > contentLocation_;
+
+ public:
+ PackageConfiguration ();
+ PackageConfiguration (::XSCRT::XML::Element< char > const&);
+ PackageConfiguration (PackageConfiguration const& s);
+
+ PackageConfiguration&
+ operator= (PackageConfiguration const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // PCD_HPP
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.cpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.cpp
new file mode 100644
index 00000000000..5cc0c37b532
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.cpp
@@ -0,0 +1,140 @@
+// $Id$
+#include "toplevel.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // TopLevelPackageDescription
+ //
+
+ TopLevelPackageDescription::
+ TopLevelPackageDescription ()
+ :
+ regulator__ ()
+ {
+ }
+
+ TopLevelPackageDescription::
+ TopLevelPackageDescription (::CIAO::Config_Handlers::TopLevelPackageDescription const& s)
+ :
+ regulator__ ()
+ {
+ package_.reserve (s.package_.size ());
+ {
+ for (package_const_iterator i (s.package_.begin ());
+ i != s.package_.end ();
+ ++i) add_package (*i);
+ }
+ }
+
+ ::CIAO::Config_Handlers::TopLevelPackageDescription& TopLevelPackageDescription::
+ operator= (::CIAO::Config_Handlers::TopLevelPackageDescription const& s)
+ {
+ package_.clear ();
+ package_.reserve (s.package_.size ());
+ {
+ for (package_const_iterator i (s.package_.begin ());
+ i != s.package_.end ();
+ ++i) add_package (*i);
+ }
+
+ return *this;
+ }
+
+
+ // TopLevelPackageDescription
+ //
+ TopLevelPackageDescription::package_iterator TopLevelPackageDescription::
+ begin_package ()
+ {
+ return package_.begin ();
+ }
+
+ TopLevelPackageDescription::package_iterator TopLevelPackageDescription::
+ end_package ()
+ {
+ return package_.end ();
+ }
+
+ TopLevelPackageDescription::package_const_iterator TopLevelPackageDescription::
+ begin_package () const
+ {
+ return package_.begin ();
+ }
+
+ TopLevelPackageDescription::package_const_iterator TopLevelPackageDescription::
+ end_package () const
+ {
+ return package_.end ();
+ }
+
+ void TopLevelPackageDescription::
+ add_package (::CIAO::Config_Handlers::PackageConfiguration const& e)
+ {
+ if (package_.capacity () < package_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::PackageConfiguration > v;
+ v.reserve (package_.size () + 1);
+
+ while (package_.size ())
+ {
+ //@@ VC6
+ ::CIAO::Config_Handlers::PackageConfiguration& t = package_.back ();
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ package_.pop_back ();
+ }
+
+ package_.swap (v);
+ }
+
+ package_.push_back (e);
+ package_.back ().container (this);
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ // TopLevelPackageDescription
+ //
+
+ TopLevelPackageDescription::
+ TopLevelPackageDescription (::XSCRT::XML::Element< char > const& e)
+ :
+ Base__ (e),
+ regulator__ ()
+ {
+
+ ::XSCRT::Parser< char > p (e);
+
+ while (p.more_elements ())
+ {
+ ::XSCRT::XML::Element< char > e (p.next_element ());
+ ::std::basic_string< char > n (::XSCRT::XML::uq_name (e.name ()));
+
+ if (n == "package")
+ {
+ ::CIAO::Config_Handlers::PackageConfiguration t (e);
+ add_package (t);
+ }
+
+ else
+ {
+ }
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.hpp b/TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.hpp
new file mode 100644
index 00000000000..2897d588609
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Old_Config_Handlers/toplevel.hpp
@@ -0,0 +1,66 @@
+// $Id$
+#ifndef TOPLEVEL_HPP
+#define TOPLEVEL_HPP
+
+// Forward declarations.
+//
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class TopLevelPackageDescription;
+ }
+}
+
+#include <memory>
+#include <vector>
+#include "XSCRT/XMLSchema.hpp"
+#include "XSCRT/Parser.hpp"
+
+#include "pcd.hpp"
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ class TopLevelPackageDescription : public ::XSCRT::Type
+ {
+ //@@ VC6 anathema
+ typedef ::XSCRT::Type Base__;
+
+ // package
+ //
+ public:
+ typedef ::std::vector< ::CIAO::Config_Handlers::PackageConfiguration >::iterator package_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PackageConfiguration >::const_iterator package_const_iterator;
+ package_iterator begin_package ();
+ package_iterator end_package ();
+ package_const_iterator begin_package () const;
+ package_const_iterator end_package () const;
+ void add_package (::CIAO::Config_Handlers::PackageConfiguration const& );
+
+ protected:
+ ::std::vector< ::CIAO::Config_Handlers::PackageConfiguration > package_;
+
+ public:
+ TopLevelPackageDescription ();
+ TopLevelPackageDescription (::XSCRT::XML::Element< char > const&);
+ TopLevelPackageDescription (TopLevelPackageDescription const& s);
+
+ TopLevelPackageDescription&
+ operator= (TopLevelPackageDescription const& s);
+
+ private:
+ char regulator__;
+ };
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+
+#endif // TOPLEVEL_HPP
diff --git a/TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.cpp b/TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.cpp
new file mode 100644
index 00000000000..10a85560237
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.cpp
@@ -0,0 +1,117 @@
+#include "DAM_Map.h"
+#include "ciao/CIAO_Config.h"
+#include "ciao/CIAO_common.h"
+
+ACE_RCSID (ExecutionManager,
+ DAM_Map,
+ "$Id$")
+
+namespace CIAO
+{
+ namespace Execution_Manager
+ {
+ DAM_Map::DAM_Map (void)
+ : map_ (CIAO_DEFAULT_MAP_SIZE)
+ {
+ }
+
+ bool
+ DAM_Map::is_plan_available (const ACE_CString &str)
+ {
+ CIAO_TRACE("Execution_Manager::DAM_Map::is_plan_available");
+ if (this->map_.find (str) == 0)
+ return true;
+
+ return false;
+ }
+
+ ::Deployment::DomainApplicationManager_ptr
+ DAM_Map::fetch_dam_reference (const ACE_CString &str)
+ {
+ CIAO_TRACE("Execution_Manager::DAM_Map::fetch_dam_reference");
+ if (!this->is_plan_available (str))
+ return ::Deployment::DomainApplicationManager::_nil ();
+
+ ::Deployment::DomainApplicationManager_var tmp;
+
+ /// There should be duplicate when assigning a _var to an _var.
+ int retval = this->map_.find (str,
+ tmp);
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) CIAO_ExecutionManager: fetch_dam_reference, "
+ "result from find is [%d] \n",
+ retval));
+ }
+
+ return tmp._retn ();
+ }
+
+
+ bool
+ DAM_Map::bind_dam_reference (
+ const ACE_CString &str,
+ ::Deployment::DomainApplicationManager_ptr dam)
+ {
+ CIAO_TRACE("Execution_Manager::DAM_Map::bind_dam_reference");
+ int retval =
+ this->map_.bind (str,
+ dam);
+
+ if (retval != 0)
+ return false;
+
+ return true;
+ }
+
+
+ Deployment::DomainApplicationManagers *
+ DAM_Map::get_dams (ACE_ENV_SINGLE_ARG_DECL)
+ {
+ CIAO_TRACE("Execution_Manager::DAM_Map::get_dams");
+ CORBA::ULong sz =
+ this->map_.current_size ();
+
+ // Initialize the list of DomainApplication Managers
+ Deployment::DomainApplicationManagers_var list;
+ ACE_NEW_THROW_EX (list,
+ Deployment::DomainApplicationManagers (sz),
+ CORBA::NO_MEMORY());
+ ACE_CHECK_RETURN (0);
+
+ // Add the manager to the list
+ list->length (sz);
+
+ Iterator end =
+ this->map_.end ();
+
+ CORBA::ULong i = 0;
+
+ for (Iterator b =
+ this->map_.begin (); b != end; ++b)
+ {
+ list [i] =
+ Deployment::DomainApplicationManager::_duplicate ((*b).int_id_.in ());
+
+ ++i;
+ }
+
+ return list._retn ();
+ }
+
+ bool
+ DAM_Map::unbind_dam (const ACE_CString &str)
+ {
+ CIAO_TRACE("Execution_Manager::DAM_Map::unbind_dam");
+ int retval =
+ this->map_.unbind (str);
+
+ if (retval != 0)
+ return false;
+
+ return true;
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.h b/TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.h
new file mode 100644
index 00000000000..21d8dee5de9
--- /dev/null
+++ b/TAO/CIAO/DAnCE/Plan_Launcher/DAM_Map.h
@@ -0,0 +1,71 @@
+/*=======================================================================
+ *
+ * @file DAM_Map.h
+ *
+ * $Id$
+ *
+ * @brief Map of DomainApplicationManager to UUID's
+ *
+ * @author Bala Natarajan <bala @ dre.vanderbilt.edu>
+ *
+ *======================================================================*/
+#ifndef CIAO_DAM_MAP_H
+#define CIAO_DAM_MAP_H
+#include /**/ "ace/pre.h"
+
+#include "ace/Null_Mutex.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/Hash_Map_Manager.h"
+#include "ciao/DeploymentC.h"
+#include "ace/SString.h"
+
+
+namespace CIAO
+{
+ namespace Execution_Manager
+ {
+ /**
+ * @class DAM_Map
+ *
+ * @brief Map of DomainApplicationManager to ACE_CStrings
+ *
+ */
+ class DAM_Map
+ {
+ public:
+ DAM_Map (void);
+
+ bool is_plan_available (const ACE_CString &str);
+
+ ::Deployment::DomainApplicationManager_ptr
+ fetch_dam_reference (const ACE_CString &str);
+
+ bool bind_dam_reference (
+ const ACE_CString &str,
+ ::Deployment::DomainApplicationManager_ptr tmp);
+
+ Deployment::DomainApplicationManagers *
+ get_dams (ACE_ENV_SINGLE_ARG_DECL);
+
+ bool unbind_dam (const ACE_CString &str);
+
+ private:
+ typedef
+ ACE_Hash_Map_Manager_Ex < ACE_CString,
+ ::Deployment::DomainApplicationManager_var,
+ ACE_Hash<ACE_CString>,
+ ACE_Equal_To<ACE_CString>,
+ ACE_Null_Mutex> MAP;
+ typedef MAP::iterator Iterator;
+
+ MAP map_;
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+#endif /*CIAO_DAM_MAP_H*/
diff --git a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp
index 3841c980792..af67fd06b45 100644
--- a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp
+++ b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.cpp
@@ -5,7 +5,7 @@
#include "ace/Get_Opt.h"
#include <iostream>
-#include "DAnCE/Interfaces/ExecutionManagerDaemonC.h"
+#include "ExecutionManager/ExecutionManagerC.h"
namespace CIAO
{
@@ -13,22 +13,16 @@ namespace CIAO
{
// deployment plan URL
const char* package_url = 0;
- const char* new_package_url = 0;
- const char* plan_uuid = 0;
bool use_naming = false;
const char* ior_file = "file://em.ior";
const char* dap_ior_filename = 0;
const char* dap_ior = 0;
-
- enum mode_type {
+ enum mode_type {
pl_mode_start,
- pl_mode_interactive,
- pl_mode_stop_by_dam,
- pl_mode_stop_by_uuid,
- pl_mode_redeployment
+ pl_mode_stop,
+ pl_mode_interactive
};
- // default mode
mode_type mode = pl_mode_interactive;
static void
@@ -41,10 +35,8 @@ namespace CIAO
ACE_TEXT (" : Default file://em.ior\n")
ACE_TEXT ("-n : Use naming service to fetch")
ACE_TEXT (" Execution Manager IOR Alternative to -k\n")
- ACE_TEXT ("-t <PLAN_UUID>\n")
ACE_TEXT ("-o <DOMAIN_APPLICATION_MANAGER_IOR_OUTPUT_FILE>\n")
ACE_TEXT ("-i <DOMAIN_APPLICATION_MANAGER_IOR_FOR_INPUT>\n")
- ACE_TEXT ("-r <NEW_PLAN_DESCRIPTOR_FOR_REDEPLOYMENT>\n")
ACE_TEXT ("-h : Show this usage information\n"),
program));
}
@@ -53,9 +45,9 @@ namespace CIAO
parse_args (int argc,
ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc,
+ ACE_Get_Arg_Opt<char> get_opt (argc,
argv,
- ACE_TEXT ("p:nk:t:o:i:r:h"));
+ ACE_TEXT ("p:nk:o:i:h"));
int c;
while ((c = get_opt ()) != EOF)
@@ -77,15 +69,7 @@ namespace CIAO
break;
case 'i':
dap_ior = get_opt.opt_arg ();
- mode = pl_mode_stop_by_dam;
- break;
- case 't':
- plan_uuid = get_opt.opt_arg ();
- mode = pl_mode_stop_by_uuid;
- break;
- case 'r':
- new_package_url = get_opt.opt_arg ();
- mode = pl_mode_redeployment;
+ mode = pl_mode_stop;
break;
case 'h':
default:
@@ -94,15 +78,12 @@ namespace CIAO
}
}
- if ((mode != pl_mode_stop_by_dam) &&
- (mode != pl_mode_stop_by_uuid) &&
- (package_url == 0) &&
- (new_package_url ==0))
+ if ((mode != pl_mode_stop) && (package_url == 0))
{
usage (argv[0]);
return false;
}
-
+
return true;
}
@@ -153,32 +134,32 @@ namespace CIAO
if (parse_args (argc, argv) == false)
return -1;
-
-
+
+
Plan_Launcher_i launcher;
-
+
if (!launcher.init (use_naming ? 0 : ior_file,
orb.in ()))
{
ACE_ERROR ((LM_ERROR, "(%P|%t) Plan_Launcher: Error initializing the EM.\n"));
return -1;
}
-
+
::Deployment::DomainApplicationManager_var dapp_mgr;
-
- if (mode == pl_mode_start || mode == pl_mode_interactive) // initial deployment
+
+ if (mode != pl_mode_stop)
{
const char* uuid = launcher.launch_plan (package_url);
-
+
if (uuid == 0)
{
ACE_ERROR ((LM_ERROR, "(%P|%t) Plan_Launcher: Error launching plan\n"));
return -1;
}
-
+
ACE_DEBUG ((LM_DEBUG, "Plan_Launcher returned UUID is %s\n", uuid));
dapp_mgr = launcher.get_dam (uuid);
-
+
// Write out DAM ior if requested
if (mode == pl_mode_start)
write_dap_ior (orb.in (), dapp_mgr.in ());
@@ -188,58 +169,35 @@ namespace CIAO
"Press <Enter> to tear down application\n"));
char dummy [256];
std::cin.getline (dummy, 256);
-
- // Tear down the assembly
- ACE_DEBUG ((LM_DEBUG,
- "Plan_Launcher: destroy the application....."));
- if (! launcher.teardown_plan (uuid))
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) CIAO_PlanLauncher:tear down assembly failed: "
- "unkonw plan uuid.\n"));
- }
- }
- else if (mode == pl_mode_redeployment && new_package_url != 0) // do redeployment
- {
- ACE_DEBUG ((LM_DEBUG,
- "Plan_Launcher: reconfigure application assembly....."));
- const char* uuid = launcher.re_launch_plan (new_package_url);
-
- if (uuid == 0)
- {
- ACE_ERROR ((LM_ERROR, "(%P|%t) Plan_Launcher: Error re-launching plan\n"));
- return -1;
}
}
- else if (mode == pl_mode_stop_by_dam) // tear down by DAM
+ else
{
dapp_mgr = read_dap_ior (orb.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
-
- if (CORBA::is_nil (dapp_mgr.in ()))
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) CIAO_PlanLauncher:tear down assembly failed: "
- "nil DomainApplicationManager reference\n"));
- return -1;
- }
-
- // Tear down the assembly
- ACE_DEBUG ((LM_DEBUG,
- "Plan_Launcher: destroy the application....."));
- launcher.teardown_plan (dapp_mgr.in ());
}
- else if (mode == pl_mode_stop_by_uuid) // tear down by plan_uuid
+
+ if (CORBA::is_nil (dapp_mgr.in ()))
{
- // Tear down the assembly
ACE_DEBUG ((LM_DEBUG,
- "Plan_Launcher: destroy the application....."));
- if (! launcher.teardown_plan (plan_uuid))
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) CIAO_PlanLauncher:tear down assembly failed: "
- "unkonw plan uuid.\n"));
+ "(%P|%t) CIAO_PlanLauncher:preparePlan call failed: "
+ "nil DomainApplicationManager reference\n"));
+ return -1;
}
+ if (CIAO::debug_level () > 9)
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO_PlanLauncher: Obtained DAM ref \n"));
+
+ if (mode != pl_mode_start)
+ {
+ // Tear down the assembly
+ ACE_DEBUG ((LM_DEBUG,
+ "Plan_Launcher: destroy the application....."));
+ launcher.teardown_plan (dapp_mgr.in ());
+ }
+
orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -275,7 +233,7 @@ int
ACE_TMAIN (int argc,
ACE_TCHAR *argv[])
{
- //ACE_DEBUG ((LM_DEBUG, "NEW PLAN LAUNCHER\n"));
+ ACE_DEBUG ((LM_DEBUG, "NEW PLAN LAUNCHER\n"));
return run_main_implementation (argc, argv);
}
diff --git a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.mpc b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.mpc
index 391912025b4..20921a279e8 100644
--- a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.mpc
+++ b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher.mpc
@@ -1,25 +1,24 @@
// -*- MPC -*-
// $Id$
-project(Plan_Launcher_Impl) : ciao_servant_dnc, ciao_config_handlers {
+project(Plan_Launcher_Impl) : ciao_component_dnc, ciao_config_handlers {
sharedname = Plan_Launcher_Impl
- after += ExecutionManager_stub
+ after += ExecutionManager_stub NodeDaemon_stub
libs += ExecutionManager_stub
dynamicflags = PLAN_LAUNCHER_IMPL_BUILD_DLL
Source_Files {
Plan_Launcher_Impl.cpp
- ../ExecutionManager/DAM_Map.cpp
+ DAM_Map.cpp
}
Header_Files {
- ../ExecutionManager/DAM_Map.h
Plan_Launcher_Impl_Export.h
}
}
-project(Plan_Launcher) : ciao_server_dnc, ciao_config_handlers {
+project(Plan_Launcher) : ciao_component_dnc, taoexe, ciao_config_handlers {
exename = plan_launcher
after += Plan_Launcher_Impl
diff --git a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
index c8522b9b4fb..8e66ff17a7e 100644
--- a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
+++ b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.cpp
@@ -91,7 +91,7 @@ namespace CIAO
return this->launch_plan (plan.in ());
}
-
+
const char *
Plan_Launcher_i::launch_plan (const ::Deployment::DeploymentPlan &plan ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((Plan_Launcher_i::Deployment_Failure))
@@ -126,7 +126,7 @@ namespace CIAO
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: start Launch application...\n"));
+ "CIAO_PlanLauncher: start Launch application..."));
// Dont not start the Application immediately since it vialtes
// the semantics of component activation sequence
@@ -142,8 +142,8 @@ namespace CIAO
// Call finish Launch to complete the connections
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: finish Launch application...\n"));
- dam->finishLaunch (start, false); // is_ReDAC by default is <false>
+ "CIAO_PlanLauncher: finish Launch application..."));
+ dam->finishLaunch (start);
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG, "[success]\n"));
@@ -151,7 +151,7 @@ namespace CIAO
// Call start to activate components
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: start activating components...\n"));
+ "CIAO_PlanLauncher: start activating components..."));
dam->start ();
if (CIAO::debug_level ())
@@ -164,6 +164,8 @@ namespace CIAO
map_.bind_dam_reference (plan.UUID.in (),
Deployment::DomainApplicationManager::_duplicate (dam.in ()));
+
+
}
ACE_CATCH (Deployment::ResourceNotAvailable, ex)
{
@@ -228,114 +230,49 @@ namespace CIAO
bool
Plan_Launcher_i::teardown_plan (const char *uuid)
{
- // Since people could always run another instance of the Plan_Launcher
- // executable to tear down a plan, so we could NOT rely on the local
- // DAM_Map to fetch DAM obj reference. Instead, we make a remote call
- // on ExecutionManager to fetch it.
- ACE_TRY
- {
- ::Deployment::DomainApplicationManager_var dapp_mgr =
- this->em_->getManager (uuid);
-
- dapp_mgr->destroyApplication ();
- if (CIAO::debug_level ())
- ACE_DEBUG ((LM_DEBUG, "[success]\n"));
-
- // Note that we should ask the DAM to tell EM whether the DAM should
- // be destroyed
- this->destroy_dam_by_plan (uuid);
- }
- ACE_CATCHANY
- {
- ACE_DEBUG ((LM_ERROR, "Unable to find DomainApplicationManager "
- "for plan with uuid: %s\n", uuid));
- return false;
- }
- ACE_ENDTRY;
-
+ if (!this->map_.is_plan_available (uuid))
+ return false;
+
+ ::Deployment::DomainApplicationManager_var dapp_mgr
+ (this->map_.fetch_dam_reference (uuid));
+
+
+ this->map_.unbind_dam (uuid);
+
return true;
}
bool
Plan_Launcher_i::teardown_plan (::Deployment::DomainApplicationManager_ptr dam
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
{
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: destroy the application.....\n"));
-
+ "CIAO_PlanLauncher: destroy the application....."));
dam->destroyApplication ();
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG, "[success]\n"));
- this->destroy_dam (dam);
+ this->destroy_dam (dam);
return true;
}
void
Plan_Launcher_i::destroy_dam (::Deployment::DomainApplicationManager_ptr dam
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
{
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: destroy the manager.....\n"));
+ "CIAO_PlanLauncher: destroy the manager....."));
this->em_->destroyManager (dam);
if (CIAO::debug_level ())
ACE_DEBUG ((LM_DEBUG, "[success]\n"));
}
-
- void
- Plan_Launcher_i::destroy_dam_by_plan (const char* plan_uuid
- ACE_ENV_ARG_DECL)
- {
- if (CIAO::debug_level ())
- ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: destroy the manager.....\n"));
-
- this->em_->destroyManagerByPlan (plan_uuid);
-
- if (CIAO::debug_level ())
- ACE_DEBUG ((LM_DEBUG, "[success]\n"));
- }
-
- const char *
- Plan_Launcher_i::re_launch_plan (const char *plan_uri ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((Plan_Launcher_i::Deployment_Failure))
- {
- CIAO::Config_Handlers::XML_File_Intf intf (plan_uri);
-
- ::Deployment::DeploymentPlan_var plan =
- intf.get_plan ();
-
- return this->re_launch_plan (plan.in ());
- }
-
- const char *
- Plan_Launcher_i::re_launch_plan (const ::Deployment::DeploymentPlan &plan ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((Plan_Launcher_i::Deployment_Failure))
- {
-
- if (CORBA::is_nil (this->em_.in ()))
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("CIAO::Plan_Launcher_i: ")
- ACE_TEXT ("re_launch_plan called witn an uninitialized EM.\n")));
- return 0;
- }
-
- this->em_->perform_redeployment (plan);
-
- if (CIAO::debug_level ())
- ACE_DEBUG ((LM_DEBUG,
- "CIAO_PlanLauncher: new plan redeployed ...\n"));
-
- std::string * retv = new std::string (plan.UUID.in ());
-
- return (*retv).c_str ();
- }
+
}
+
}
diff --git a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.h b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
index e91711332d4..41e2cebacb8 100644
--- a/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
+++ b/TAO/CIAO/DAnCE/Plan_Launcher/Plan_Launcher_Impl.h
@@ -1,8 +1,8 @@
-/**
+/**
* $Id$
* @file Plan_Launcher_Impl.h
* @author Will Otte <wotte@dre.vanderbilt.edu>
- *
+ *
* Contains the Plan_Launcher_i class, which can be used by
* applications to launch component assemblies.
*/
@@ -12,14 +12,14 @@
#include "Plan_Launcher_Impl_Export.h"
#include "ciao/DeploymentS.h"
#include "ciao/CIAO_common.h"
-#include "DAnCE/ExecutionManager/DAM_Map.h"
-#include "DAnCE/Interfaces/ExecutionManagerDaemonC.h"
+#include "ExecutionManager/DAM_Map.h"
+#include "ExecutionManager/ExecutionManagerC.h"
namespace CIAO
{
namespace Plan_Launcher
{
-
+
/**
* @class Plan_Launcher_i
* @brief This class launches and manages deployment plans.
@@ -28,13 +28,13 @@ namespace CIAO
{
public:
class Deployment_Failure {};
-
+
Plan_Launcher_i ();
-
-
- bool init (const char *em_ior,
+
+
+ bool init (const char *em_ior,
CORBA::ORB_ptr orb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
+ ACE_ENV_ARG_DECL);
/**
* @fn launch_plan
@@ -43,13 +43,9 @@ namespace CIAO
* @returns a string containing the UUID of the plan. Null indicates failure.
*/
const char * launch_plan (const char *plan_uri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((Deployment_Failure));
-
- const char * re_launch_plan (const char *plan_uri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((Deployment_Failure));
-
+
/**
* @fn launch_plan
* @brief Launch a plan, given an IDL deployment plan
@@ -57,36 +53,30 @@ namespace CIAO
* @returns a string containing the UUID of the plan. Null indicates failure.
*/
const char * launch_plan (const ::Deployment::DeploymentPlan &plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((Deployment_Failure));
-
- const char * re_launch_plan (const ::Deployment::DeploymentPlan &plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((Deployment_Failure));
-
+
/// Returns the DAM associated with a given plan URI
::Deployment::DomainApplicationManager_ptr get_dam (const char *uuid
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
+ ACE_ENV_ARG_DECL);
+
/// Tears down a plan given the UUID
bool teardown_plan (const char *uuid ACE_ENV_ARG_DECL);
-
+
bool teardown_plan (::Deployment::DomainApplicationManager_ptr dam
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
+ ACE_ENV_ARG_DECL);
+
void destroy_dam (::Deployment::DomainApplicationManager_ptr dam
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
- void destroy_dam_by_plan (const char * plan_uuid
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
+ ACE_ENV_ARG_DECL);
+
private:
::CIAO::ExecutionManagerDaemon_var em_;
-
+
/// Local map for DAMs, to save expensive UUID lookups.
Execution_Manager::DAM_Map map_;
+
};
-
+
}
}
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.cpp b/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.cpp
index aac0a55afbc..4f92f0edbe9 100644
--- a/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.cpp
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.cpp
@@ -1,11 +1,12 @@
// $Id$
#include "ciao/NodeApplication_CallBackC.h"
-#include "ciao/CIAO_common.h"
-#include "tao/RTPortableServer/RTPortableServer.h"
-#include "ace/Null_Mutex.h"
#include "NodeApplication_Task.h"
+#include "tao/RTPortableServer/RTPortableServer.h"
#include "RTServer_Impl.h"
+#include "ace/Null_Mutex.h"
+#include "ciao/CIAO_common.h"
+#include "tao/RTPortableServer/RTPortableServer.h"
#if !defined (__ACE_INLINE__)
# include "NodeApplication_Task.inl"
@@ -83,18 +84,18 @@ CIAO::NodeApplication_Task::svc ()
*/
bool retval = nodeapp_servant->init (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (retval)
{
ACE_DEBUG ((LM_DEBUG, "NodeApplication Failed on creating and\
initializing the session container!"));
return 1;
}
-
+
CORBA::String_var str = this->orb_->object_to_string (nodeapp_obj.in ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
if (this->options_.ior_output_filename_.length () != 0)
CIAO::Utility::write_IOR (this->options_.ior_output_filename_.c_str (),
str.in ());
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h b/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h
index 521dd9a4806..5b14a2b5ab5 100644
--- a/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h
@@ -36,7 +36,7 @@ namespace CIAO
* @brief An ACE_Task subclass that manages the RT-ORB therad
*/
class NodeApplication_Task
- : public ACE_Task_Base
+ : public virtual ACE_Task_Base
{
public:
// We can add a rt-task configuration facility here.
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/README b/TAO/CIAO/DAnCE/RTNodeApplication/README
index 1eb382ceaf7..9ec28e29391 100644
--- a/TAO/CIAO/DAnCE/RTNodeApplication/README
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/README
@@ -1,7 +1,6 @@
$Id$
-This directory contains the depricated RTNodeApplication
-implementation. It will be removed shortly.
+This directory contains the RTNodeApplication implementation
* Currently, the RTNodeApplication does not support configuring of any
RT policies.
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.cpp b/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.cpp
index 86e56f99cb3..2bdc40ffff1 100644
--- a/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.cpp
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.cpp
@@ -10,7 +10,7 @@ parse_args (int argc,
char *argv[],
CIAO::NodeApplication_Task::Options &opts)
{
- ACE_Get_Opt get_opts (argc, argv, "nk:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "nk:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -96,7 +96,7 @@ check_supported_priorities (CORBA::ORB_ptr orb)
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.mpc b/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.mpc
new file mode 100644
index 00000000000..db58a042214
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/RTNodeApplication.mpc
@@ -0,0 +1,13 @@
+// $Id$
+
+project(RTNodeApplication): ciao_component_dnc,rt_server {
+
+ exename = RTNodeApplication
+
+ Source_Files {
+ NodeApplication_Task.cpp
+ RTNodeApplication.cpp
+ RTServer_Impl.cpp
+ }
+}
+
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/senv.sh b/TAO/CIAO/DAnCE/RTNodeApplication/senv.sh
new file mode 100755
index 00000000000..bc01029e288
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/senv.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ACE_ROOT/lib
+export LD_LIBRARY_PATH
+$*
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp b/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp
deleted file mode 100644
index 73a8071f305..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id$
-
-// HTTP_Client.cpp, Stoyan
-
-#include "HTTP_Client.h"
-#include "HTTP_Handler.h"
-#include "ace/OS_NS_string.h"
-
-HTTP_Client::HTTP_Client (void)
-{
-}
-
-HTTP_Client::~HTTP_Client (void)
-{
- this->close ();
-}
-
-// initialize address and filename. No network i/o in open
-int
-HTTP_Client::open (const ACE_TCHAR *filename,
- const ACE_TCHAR *hostname,
- u_short port)
-{
- filename_ = ACE_OS::strdup (filename);
- inet_addr_.set (port, hostname);
- return 0;
-}
-
-// read from connection length bytes from offset, into Message block
-int
-HTTP_Client::read (ACE_Message_Block *mb)
-{
-
- // Create a HTTP_Client Reader
- HTTP_Reader HTTP_reader (mb, filename_);
- HTTP_Handler *brp = &HTTP_reader;
-
- // Connect to the server
- if (connector_.connect (brp, inet_addr_) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Client::read():Connector error"), -1);
-
- return HTTP_reader.byte_count ();
-
-}
-
-// close down the HTTP_Client
-int
-HTTP_Client::close (void)
-{
-
- if (filename_)
- {
- ACE_OS::free ((void *) filename_);
- filename_ = 0;
- }
- return 0;
-
-}
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.h b/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.h
deleted file mode 100644
index ac0f9cbea92..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Client.h
+++ /dev/null
@@ -1,72 +0,0 @@
-
-/* -*- C++ -*- */
-
-//=============================================================================
-/**
- * @file HTTP_Client.h
- *
- * $Id$
- *
- * This is the HTTP_Client class, which is the API for doing file
- * uploads/downloads.
- *
- * @author Stoyan Paunov
- */
-//=============================================================================
-
-
-#ifndef HTTP_Client_H
-#define HTTP_Client_H
-
-
-#include "ace/INET_Addr.h"
-#include "ace/Svc_Handler.h"
-#include "ace/SOCK_Connector.h"
-#include "ace/Connector.h"
-#include "ace/Message_Block.h"
-#include "HTTP_Handler.h"
-
-/**
- * @class HTTP_Client
- *
- * @brief HTTP_Client is intended to provide application API to
- * classes that wish to do network i/o at a very
- * high level of abstraction.
- *
- * This class provides the ability to retrieve data from
- * the network, of specified length and offset, and potentially
- * use any protocol "under the hood" to do so. It currently
- * uses HTTP. See HTTP_Handler also.
- */
-class HTTP_Client
-{
-public:
- HTTP_Client (void);
- ~HTTP_Client (void);
-
- /// Initializes the class with the given filename, hostname and port.
- /// it should be called with the filename, before any read/write calls
- int open (const ACE_TCHAR *filename,
- const ACE_TCHAR *hostname = ACE_DEFAULT_SERVER_HOST,
- u_short port = 80);
-
- /// Starts a connection, and reads a file from the server into
- /// Message_Block mb
- int read (ACE_Message_Block *mb);
-
- /// Frees memory allocated for filename.
- int close ();
-
-private:
- /// Store the internet address of the server
- ACE_INET_Addr inet_addr_;
-
- /// The filename
- ACE_TCHAR *filename_;
-
- /// The connector endpoint to initiate the client connection
- ACE_Connector<HTTP_Handler, ACE_SOCK_CONNECTOR> connector_;
-
-};
-
-#endif /* HTTP_Client_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.cpp b/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.cpp
deleted file mode 100644
index ffd85ca1ebf..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.cpp
+++ /dev/null
@@ -1,203 +0,0 @@
-// $Id$
-
-// HTTP_Handler.cpp, Stoyan
-
-#include "HTTP_Handler.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_strings.h"
-
-// Empty constructor for compliance with new Connector behavior.
-HTTP_Handler::HTTP_Handler (void)
-{
-}
-
-// Always use this constructor
-HTTP_Handler::HTTP_Handler (ACE_Message_Block * mb,
- ACE_TCHAR *filename) :
- mb_ (mb),
- filename_ (ACE_OS::strdup (filename)),
- bytecount_ (0)
-{
-}
-
-HTTP_Handler::~HTTP_Handler (void)
-{
- if (filename_)
- {
- ACE_OS::free (filename_);
- filename_ = 0;
- }
-}
-
-// Called by Connector after connection is established
-int
-HTTP_Handler::open (void *)
-{
- if (this->send_request () != 0)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Handler::open():send_request failed\n"), -1);
-
- if (this->receive_reply () != 0)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Handler::open():receive_reply failed\n"), -1);
- return 0;
-
-}
-
-// No-op
-int
-HTTP_Handler::close (u_long)
-{
- return 0;
-}
-
-// Always overridden by the derived classes
-int
-HTTP_Handler::send_request (void)
-{
- return -1;
-}
-
-// Always overridden by the derived classes
-int
-HTTP_Handler::receive_reply (void)
-{
- return -1;
-}
-
-// used to retrieve the number of bytes read/written by the
-// last operation on the Blob
-size_t
-HTTP_Handler::byte_count (void)
-{
- return bytecount_;
-}
-
-// Reader **************************************************
-
-HTTP_Reader::HTTP_Reader (ACE_Message_Block * mb,
- ACE_TCHAR *filename,
- const char *request_prefix,
- const char *request_suffix) :
- HTTP_Handler (mb, filename),
- request_prefix_ (request_prefix),
- request_suffix_ (request_suffix)
-{
-}
-
-// Send the HTTP request
-int
-HTTP_Reader::send_request (void)
-{
- char mesg [MAX_HEADER_SIZE];
-
- // Check to see if the request is too big
- if (MAX_HEADER_SIZE < (ACE_OS::strlen (request_prefix_)
- + ACE_OS::strlen (filename_)
- + ACE_OS::strlen (request_suffix_) + 4))
- ACE_ERROR_RETURN((LM_ERROR,"Request too large!"), -1);
-
- // Create a message to send to the server requesting retrieval of the file
- int len = ACE_OS::sprintf (mesg, "%s %s %s", request_prefix_, filename_, request_suffix_);
-
- // Send the message to server
- if (peer ().send_n (mesg, len) != len)
- ACE_ERROR_RETURN((LM_ERROR,"Error sending request\n"), -1);
-
-
- return 0;
-}
-
-// Recieve the HTTP Reply
-int
-HTTP_Reader::receive_reply (void)
-{
- size_t num_recvd = 0;
- char buf [MTU+1];
- char *buf_ptr = 0;
- size_t bytes_read = 0;
-
- // Receive the first MTU bytes and strip the header off.
- // Note that we assume that the header will fit into MTU bytes.
-
- if (peer ().recv_n (buf, MTU, 0, &num_recvd) >= 0)
- {
- //Make sure that response type is 200 OK
- if (ACE_OS::strstr (buf,"200 OK") == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "HTTP_Reader::receiveReply(): Response is not 200 OK\n" ), -1);
-
- // Search for the header termination string "\r\n\r\n", or "\n\n". If
- // found, move past it to get to the data portion.
- if ((buf_ptr = ACE_OS::strstr (buf,"\r\n\r\n")) != 0)
- buf_ptr += 4;
- else if ((buf_ptr = ACE_OS::strstr (buf, "\n\n")) != 0) //for compatibility with JAWS
- buf_ptr += 2;
- else
- buf_ptr = buf;
-
- // Determine number of data bytes read. This is equal to the
- // total bytes read minus number of header bytes.
- bytes_read = num_recvd - (buf_ptr - buf);
-
- }
- else
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Reader::receiveReply():Error while reading header\n"), -1);
-
- // ***************************************************************
- // At this point, we have stripped off the header and are ready to
- // process data. buf_ptr points to the data
-
- //set the size of the ACE_Message_Block to the current bytes read
- //NOTE: this function reallocates if necessary
- //this->mb_->size (bytes_read);
-
- ACE_Message_Block* temp; //pointer used temporarily
- //for memory allocations before
- //chaining to Message_Block
-
- ACE_Message_Block* curr = this->mb_;
-
- ACE_NEW_RETURN (temp, ACE_Message_Block (bytes_read), -1);
- curr->cont (temp);
-
- curr = curr->cont ();
-
- // Copy over all the data bytes into our message buffer.
- if (curr->copy (buf_ptr, bytes_read) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n",
- "HTTP_Reader::receiveReply():Error copying data into Message_Block\n" ), -1);
-
- //read the rest of the data into a number of ACE_Message_Blocks and
- //chain them together in a link list fashion
-
- num_recvd = 0;
-
- do
- {
- if (curr->space () == 0)
- {
- ACE_NEW_RETURN (temp, ACE_Message_Block (MTU), -1);
- curr->cont (temp);
- curr = curr->cont ();
- }
-
- if (peer ().recv_n (curr->wr_ptr (), curr->space (), 0, &num_recvd) >= 0)
- {
- //move the write pointer
- curr->wr_ptr (num_recvd);
-
- //increment bytes_read
- bytes_read += num_recvd;
-
- }
- else
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Reader::receiveReply():Error while reading header\n"), -1);
-
- }while (num_recvd != 0);
-
- // Set the byte count to number of bytes received
- this->bytecount_ = bytes_read;
-
- return 0;
-}
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.h b/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.h
deleted file mode 100644
index d1e9aae2894..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/HTTP_Handler.h
+++ /dev/null
@@ -1,86 +0,0 @@
-
-/* -*- C++ -*- */
-
-//=============================================================================
-/**
- * @file HTTP_Handler.h
- *
- * $Id$
- *
- * HTTP_Handler is a base class for HTTP_Reader and
- * HTTP_Writer which are created in response to calls to
- * read/write, as appropriate
- *
- *
- * @author Stoyan Paunov
- */
-//=============================================================================
-
-
-#ifndef HTTP_HANDLER_H
-#define HTTP_HANDLER_H
-
-#include "ace/SOCK_Stream.h"
-#include "ace/Svc_Handler.h"
-#include "ace/Message_Block.h"
-
-/**
- * @class HTTP_Handler
- * class to retrieve data via HTTP
- */
-class HTTP_Handler : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH>
-{
-public:
- /// Null constructor, insures that it works properly with Connector
- HTTP_Handler (void);
-
- /// Always use this constructor to make HTTP_Handlers
- HTTP_Handler (ACE_Message_Block *mb,
- ACE_TCHAR *filename);
-
- /// returns the number of bytes read/written in the last operation.
- size_t byte_count (void);
-
- /// Activate this instance of the <HTTP_Handler>
- virtual int open (void * = 0);
-
- /// Close down the Blob
- virtual int close (u_long flags = 0);
-
- ~HTTP_Handler (void);
-
-protected:
- virtual int send_request (void);
- virtual int receive_reply (void);
-
- ACE_Message_Block *mb_;
- ACE_TCHAR *filename_;
- size_t bytecount_;
- enum
- {
- /// The handler assumes that the first 2048 bytes of a server response
- /// contains the header
- MAX_HEADER_SIZE = 2048,
-
- /// set the MAX_TRANSMISSION_UNIT (MTU) = BUFSIZ as defined by OS
- MTU = BUFSIZ
- };
-};
-
-class HTTP_Reader : public HTTP_Handler
-{
-public:
- HTTP_Reader (ACE_Message_Block *mb,
- ACE_TCHAR *filename,
- const char *request_prefix = "GET",
- const char *request_suffix = "HTTP/1.0\r\n\r\n");
-
-private:
- //NOTE: these functions return -1 on error
- int send_request (void);
- int receive_reply (void);
- const char *request_prefix_;
- const char *request_suffix_;
-};
-
-#endif /* HTTP_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/Options.cpp b/TAO/CIAO/DAnCE/RepositoryManager/Options.cpp
deleted file mode 100644
index 6503e01aa3e..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/Options.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-// $Id$
-
-// Options.cpp,v Stoyan
-
-#include "ace/Get_Opt.h"
-#include "ace/ARGV.h"
-#include "Options.h"
-
-
-bool
-Options::parse_args (int argc, ACE_TCHAR *argv[])
-{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("n:l:u:ifdsTNa"));
-
- int c;
-
- while ((c = get_opt ()) != -1)
- switch (c)
- {
- case 'i':
- this->install_ = true;
- break;
- case 'd':
- this->delete_ = true;
- break;
- case 'f':
- this->find_ = true;
- break;
- case 's':
- this->shutdown_ = true;
- break;
- case 'n':
- this->name_ = get_opt.opt_arg ();
- break;
- case 'l':
- this->path_ = get_opt.opt_arg ();
- break;
- case 'u':
- this->uuid_ = get_opt.opt_arg ();
- break;
- case 'N':
- this->all_names_ = true;
- break;
- case 'T':
- this->all_types_ = true;
- break;
- case 'a':
- this->names_by_type_ = true;
- break;
- // Usage fallthrough.
- default:
- this->usage ();
- return false;
- }
-
- if ((this->name_ == "")
- && (this->shutdown_ == false)
- && (this->uuid_ == "")
- && (this->all_names_ == false)
- && (this->all_types_ == false))
- {
- this->usage ();
- return false;
- }
- else if (this->name_ != "")
- {
- if (!(this->install_ || this->find_ || this->delete_))
- {
- this->usage ();
- return false;
- }
- else if (this->install_ && this->path_ == "")
- {
- this->usage ();
- return false;
- }
- }
- else if (this->uuid_ != "")
- {
- if (!this->find_ && !this->names_by_type_)
- {
- this->usage ();
- return false;
- }
- }
-
- return true;
-}
-
-/// @todo Exit is not nice, return -1 so that the caller can do something and
-/// we don't exit abruptly
-void Options::usage (void)
-{
- ACE_DEBUG ((LM_INFO, "OPTIONS: -s <shutdown> -n <:name> [-i <install> -l <:path>] \
- [-d <delete>] [-f <find>] [-u <:uuid> [-a <names by type>] ] \
- [-N <all names>] [-T <all types>]\n"));
-}
-
-Options::Options (void)
- : name_ (""),
- uuid_ (""),
- path_ (""),
- delete_ (false),
- install_ (false),
- find_ (false),
- all_names_ (false),
- all_types_ (false),
- names_by_type_ (false),
- shutdown_ (false)
-{
-}
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/Options.h b/TAO/CIAO/DAnCE/RepositoryManager/Options.h
deleted file mode 100644
index ac65d008762..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/Options.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// $Id$
-
-/* -*- C++ -*- */
-
-//=============================================================================
-/**
- * @file Options.h
- *
- * $Id$
- *
- * TheOptions is an Options class wrapped into an ACE_Singleton
- * with Null_Mutex because the client is single-threaded.
- *
- *
- * @author Stoyan Paunov
- */
-//=============================================================================
-
-
-#ifndef RM_OPTIONS_H
-#define RM_OPTIONS_H
-
-#include "ace/Get_Opt.h"
-#include "ace/SString.h" //for ACE_CString
-#include "ace/Singleton.h" //for ACE_Singleton
-#include "ace/Null_Mutex.h" //for ACE_Null_Mutex
-
-//forward declaration
-class Options;
-
-typedef ACE_Singleton <Options, ACE_Null_Mutex> TheOptions;
-
-class Options
-{
-public:
-
- ///constructor
- Options (void);
-
- /// parses commandline arguments
- bool parse_args (int argc, ACE_TCHAR *argv[]);
-
- /// Name of package
- ACE_CString name_;
-
- /// Name of package
- ACE_CString uuid_;
-
- /// specifies the local path for install
- ACE_CString path_;
-
- /// delete the name_
- bool delete_;
-
- /// installs the name_
- bool install_;
-
- /// finds the name_
- bool find_;
-
- /// get all Names
- bool all_names_;
-
- /// get all types
- bool all_types_;
-
- /// find all names by type
- bool names_by_type_;
-
- /// shutdown the RepositoryManagerDemon
- bool shutdown_;
-
-protected:
- //usage function
- void usage (void);
-};
-
-#endif /* RM_OPTIONS_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.cpp b/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.cpp
deleted file mode 100644
index 9858d39a3c5..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.cpp
+++ /dev/null
@@ -1,269 +0,0 @@
-// $Id$
-
-#include "ace/Log_Msg.h"
-#include "ciao/Deployment_DataC.h"
-#include "PC_Updater.h"
-#include "PC_Updater_T.h"
-#include "ace/Containers_T.h" //for ACE_Double_Linked_List
-
-
-#include <iostream>
-using namespace std;
-
-namespace
-{
- const size_t TEMP_LEN = 1024;
-}
-
-using namespace PC_Updater_T;
-
-
- //PATH of glory/gory to update the locations of the IADs
- //
- //PackageConfiguration something;
- //ComponentPackageDescriptions basePackage;
- //PackagedComponentImplementations implementation;
- //ComponentImplementationDescription referencedImplementation;
- //
- //MONOLITHIC Component:
- //MonolithicImplementationDescriptions monolithicImpl;
- //NamedImplementationArtifacts primaryArtifact;
- //ImplementationArtifactDescription referencedArtifact;
- //::CORBA::StringSeq location;
- //
- //ASSEMBLY-BASED Component
- //ComponentAssemblyDescriptions assemblyImpl;
- //SubcomponentInstantiationDescriptions instance;
- //ComponentPackageDescriptions package;
- //...
-
-
- /*
- * PC_Updater Constructors
- */
-
-PC_Updater::PC_Updater (const char* server_path, const char* package)
-: server_path_ (server_path),
- file_list_ (&allocator_),
- package_ (package),
- success_ (true)
-{
-}
-
-
-PC_Updater::PC_Updater (ACE_CString& server_path, ACE_CString& package)
-: server_path_ (server_path),
- file_list_ (&allocator_),
- package_ (package),
- success_ (true)
-{
-}
-
- /*
- * PC_Updater - Destructor
- */
-
-PC_Updater::~PC_Updater ()
-{
- this->clear_list ();
-}
-
-
-void PC_Updater::clear_list ()
-{
- while (!this->file_list_.is_empty ())
- {
- ZIP_File_Info* inf = this->file_list_.delete_head ();
-
- //deallocate the head of the filename list
- delete inf;
- }
-}
-
-
- /*
- * PC_Updater - Object update methods
- */
-
-
- // PackageConfiguration
-
- bool PC_Updater::update (const ::Deployment::PackageConfiguration &pc)
- {
- //get the list of files in the package and figure out the names of all necessary files
- if (!ZIP_Wrapper::file_list_info (const_cast <char*> (this->package_.c_str ()), this->file_list_))
- return false;
-
- update_sequence (pc.basePackage, this);
-
- return this->success_;
- }
-
-
- // ComponentInterfaceDescription
-
- void PC_Updater::update (const ::Deployment::ComponentInterfaceDescription &cid)
- {
- }
-
- // Requirement
-
- void PC_Updater::update (const ::Deployment::Requirement &req)
- {
- }
-
-
- // ComponentExternalPortEndpoint
-
- void PC_Updater::update (const ::Deployment::ComponentExternalPortEndpoint &cepe)
- {
- }
-
-
-
- // ImplementationDependency
-
- void PC_Updater::update(const Deployment::ImplementationDependency &id)
- {
- }
-
- // ComponentPackageReference
-
- void PC_Updater::update (const ::Deployment::ComponentPackageReference &cpr)
- {
- }
-
- // SubcomponentInstantiationDescription
-
- void PC_Updater::update (const ::Deployment::SubcomponentInstantiationDescription &sid)
- {
- update_sequence (sid.package, this);
- }
-
- // SubcomponentPortEndpoint
-
- void PC_Updater::update (const ::Deployment::SubcomponentPortEndpoint& spe)
- {
- }
-
- // AssemblyConnectionDescription
-
- void PC_Updater::update (const ::Deployment::AssemblyConnectionDescription &acd)
- {
- }
-
-
- // AssemblyPropertyMapping
-
- void
- PC_Updater::update (const ::Deployment::AssemblyPropertyMapping &apm)
- {
- }
-
- // ComponentAssemblyDescription
-
- void PC_Updater::update (const ::Deployment::ComponentAssemblyDescription& cad)
- {
- update_sequence (cad.instance, this);
- }
-
- // ImplementationArtifactDescription
-
- void PC_Updater::update (const ::Deployment::ImplementationArtifactDescription &iad)
- {
- bool found = false;
-
- //cout << "label: " << iad.label << endl;
- //cout << "location: " << CORBA::string_dup (iad.location[0].in ()) << endl;
-
- ACE_Double_Linked_List_Iterator<ZIP_File_Info> iter (this->file_list_);
- char str [TEMP_LEN];
-
- while (!iter.done ())
- {
- ACE_OS::strncpy ( str, iter.next ()->name_.c_str (), TEMP_LEN);
- //weird. Need to call next to get current ?!?!
-
- const char* name;
- const char* ext;
-
- name = ACE_OS::strstr (str, iad.location[0].in ());
-
- if (name)
- {
- ext = ACE_OS::strstr (name, ".");
-
- ACE_CString loc (this->server_path_);
- loc += iad.location[0].in ();
- loc += ext;
-
- iad.location[0] = CORBA::string_dup (loc.c_str ());
-
- //cout << "new location: " << iad.location[0].in () << endl << endl;
-
- found = true;
- break;
- }
- iter++;
- }
-
- if (!found)
- this->success_ = false;
- }
-
- // NamedImplementationArtifact
-
- void PC_Updater::update (const ::Deployment::NamedImplementationArtifact &nia)
- {
- update (nia.referencedArtifact);
- }
-
- // ImplementationRequirement
-
- void PC_Updater::update (const ::Deployment::ImplementationRequirement &ir)
- {
- }
-
- // MonolithicImplementationDescription
-
- void PC_Updater::update (const ::Deployment::MonolithicImplementationDescription &mid)
- {
- update_sequence (mid.primaryArtifact, this);
- }
-
- // Capability
-
- void PC_Updater::update (const ::Deployment::Capability &capability)
- {
- }
-
-
-
- // ComponentImplementationDescription
-
- void PC_Updater::update (
- const ::Deployment::ComponentImplementationDescription &cid)
- {
- update_sequence (cid.assemblyImpl, this);
- update_sequence (cid.monolithicImpl, this);
- }
-
- // PackagedComponentImplementation
-
- void PC_Updater::update (const ::Deployment::PackagedComponentImplementation &pci)
- {
- PC_Updater::update (pci.referencedImplementation);
- }
-
- // ComponentPackageDescription
-
- void PC_Updater::update (const ::Deployment::ComponentPackageDescription &comppkgdesc)
- {
- update_sequence (comppkgdesc.implementation, this);
- }
-
-
- // Property
- void PC_Updater::update (const Deployment::Property& property)
- {
- }
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.h b/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.h
deleted file mode 100644
index a60de14a90a..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater.h
+++ /dev/null
@@ -1,113 +0,0 @@
-
-/* -*- C++ -*- */
-
-//========================================================================
-/**
- * file PC_Updater.h
- *
- * $Id$
- *
- * This class is used to update the location field of the implementation
- * artifacts in the PackageConfiguration, so that they point to the
- * physical libraries on the collocated HTTP server
- *
- * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
- */
-//========================================================================
-
-#ifndef PC_UPDATER_H
-#define PC_UPDATER_H
-#include /**/ "ace/pre.h"
-
-#include "ciao/DeploymentC.h"
-#include "ace/SString.h" //for the ACE_CString
-
-#include "ZIP_Wrapper.h" //Wrapper around zzip
-#include "ace/Containers_T.h" //for ACE_Double_Linked_List
-#include "ace/Malloc_Allocator.h" //for ACE_New_Allocator needed by the doubly link list
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-/**
- * @class PC_Updater
- *
- * This class defines a set of overloaded methods used to update
- * the contents of a PackageConfiguration. More specifically the class
- * goes through the PackageConfiguration and updates the locations of the
- * artifacts, wrt to their location on the HTTP server.
- */
-class PC_Updater
-{
-public:
-
- /// Constructors
-
- PC_Updater (const char* server_path, const char* package);
- PC_Updater (ACE_CString& server_path, ACE_CString& package);
-
- ~PC_Updater ();
-
- /// A whole slew of overloaded routines for different IDL
- /// data types part of the PackageConfiguration.
-
- bool update (const ::Deployment::PackageConfiguration &pc);
-
- void update (const ::Deployment::Property &property);
-
- void update (const ::Deployment::AssemblyConnectionDescription &acd);
-
- void update (const ::Deployment::AssemblyPropertyMapping &apm);
-
- void update (const ::Deployment::ComponentPackageDescription &comppkgdesc);
-
- void update (const ::Deployment::MonolithicImplementationDescription &mid);
-
- void update (const ::Deployment::PackagedComponentImplementation &pci);
-
- void update (const ::Deployment::SubcomponentPortEndpoint &spe);
-
- void update (const ::Deployment::Requirement &requirement);
-
- void update (const ::Deployment::ComponentExternalPortEndpoint &cepe);
-
- void update (const ::Deployment::ComponentPackageReference &cpr);
-
- void update (const ::Deployment::ComponentImplementationDescription &cid);
-
- void update (const ::Deployment::SubcomponentInstantiationDescription &sid);
-
- void update (const ::Deployment::NamedImplementationArtifact &named_implementation);
-
- void update (const ::Deployment::ComponentInterfaceDescription &cid);
-
- void update (const ::Deployment::Capability &capability);
-
- void update (const ::Deployment::ImplementationArtifactDescription &iad);
-
- void update (const ::Deployment::ImplementationRequirement &ir);
-
- void update(const Deployment::ImplementationDependency &id);
-
- void update (const ::Deployment::ComponentAssemblyDescription& cad);
-
-protected:
-
- void clear_list ();
-
-private:
-
- ACE_CString server_path_;
-
- /// create a doubly link list
- ACE_New_Allocator allocator_;
- ACE_Double_Linked_List<ZIP_File_Info> file_list_;
-
- ACE_CString package_;
- bool success_;
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* PC_UPDATER_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.cpp b/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.cpp
deleted file mode 100644
index f1b53537735..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-// $Id$
-#ifndef PC_UPDATER_T_C
-#define PC_UPDATER_T_C
-#include "PC_Updater.h"
-#include "PC_Updater_T.h"
-
-namespace PC_Updater_T
-{
- /// Dumps a sequence
- template <typename SEQUENCE>
- void update_sequence (const SEQUENCE &seq, PC_Updater* updater)
- {
- const CORBA::ULong size = seq.length ();
-
- for (CORBA::ULong i = 0; i < size; ++i)
- updater->update (seq[i]);
- }
-}
-
-#endif /* PC_Updater_C */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.h b/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.h
deleted file mode 100644
index 0e3eb05b5f5..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/PC_Updater_T.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-/* -*- C++ -*- */
-
-//==================================================================
-/**
- * file PC_Updater_T.h
- *
- * $Id$
- *
- * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
- */
-//=====================================================================
-
-#ifndef CIAO_CONFIG_HANDLERS_PC_UPDATER_T_H
-#define CIAO_CONFIG_HANDLERS_PC_UPDATER_T_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-lite.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-namespace PC_Updater_T
-{
- template <typename SEQUENCE>
- static void update_sequence (const SEQUENCE &seq);
-}
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "PC_Updater_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("PC_Updater_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-
-#include /**/ "ace/post.h"
-#endif /*CIAO_CONFIG_HANDLERS_PC_Updater_T_H*/
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/README.txt b/TAO/CIAO/DAnCE/RepositoryManager/README.txt
deleted file mode 100644
index e4cd2fa6397..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/README.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-This is the README file for the Repository Manager (RM).
-
-In order to be able to compile the RM you need to have ZZIP lib because the Repository
-Manager (RM) uses it to read the contents of CCM packages. ZZIP itself is a C++ wrapper
-around ZLIB, thus you will also need ZLIB. In order to compile the RM successfully
-you will need to do the following:
-
-1. Download ZLIB and ZZIP-LIB
-2. Compile the multi-threaded versions of these libraries
-3. [on Windows] create a separate directory for each library; create an include and a lib
-subdirectory within them. Then copy the libraries files in the library subdirectory.
-Copy zlib.h in the zlib_path/include and copy zziplib.h, zzip-conf.h and zzip-msvc.h
-(for Windows platforms; Linux might have its own file!!!). This step might be easier if
-you find a binary package of the libraries and just install it.
-4. Set $ZLIB_ROOT and $ZZIP_ROOT to point to the directories where you placed the
-libraries and the include files.
-5. Turn on zzip and zlib in default.features for MPC.
-6. MPC will handle the rest.
-
-
-Things to watch out for:
-On Windows make sure that you are linking the right ZIP libraries
-together with the rest of the libraries, i.e. if you are building the debug version of ACE,
-TAO and CIAO, then use the debug version of the ZIP libraries. Otherwise the RM will compile
-but it will not work properly.
-
-to compile the idl with the tao_idl compiler:
-
-tao_idl -GI new_RepositoryManager.idl -I%TAO_ROOT% -I%TAO_ROOT%\tao -I%TAO_ROOT%\orbsvcs -I%CIAO_ROOT%\DAnCE\ciao
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.cpp b/TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.cpp
deleted file mode 100644
index 9c14b6b9608..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.cpp
+++ /dev/null
@@ -1,253 +0,0 @@
-// $Id$
-
-#include "RM_Helper.h"
-#include "ciao/Packaging_DataC.h" //for the PackageConfiguration declaration
-#include "tao/CDR.h" //for TAO CDR classes
-#include "ace/Message_Block.h" //for ACE_Message_Block
-#include "ace/Auto_Ptr.h" //for Auto_Ptr
-#include "ace/OS_NS_fcntl.h" //for open
-#include "ace/OS_NS_unistd.h" //for close
-#include "ace/OS_NS_sys_stat.h" //for filesize and mkdir
-
-
-void RM_Helper::pc_to_cdr (const Deployment::PackageConfiguration& pc, TAO_OutputCDR& cdr)
-{
- cdr << pc;
-}
-
-
-void RM_Helper::cdr_to_pc (Deployment::PackageConfiguration& pc, TAO_InputCDR& cdr)
-{
- cdr >> pc;
-}
-
-
-bool RM_Helper::externalize (const Deployment::PackageConfiguration& pc, const char* path)
-{
- size_t bufsiz = 0;
- TAO_OutputCDR out (bufsiz);
-
- RM_Helper::pc_to_cdr (pc, out);
-
- const ACE_Message_Block* mb = out.begin ();
-
- return write_pc_to_disk (path, *(const_cast<ACE_Message_Block*> (mb)));
-}
-
-bool RM_Helper::reincarnate (Deployment::PackageConfiguration& pc, const char* path)
-{
- size_t length = 0;
- ACE_Auto_Ptr<ACE_Message_Block> mb (read_pc_from_disk (path, length));
-
- if (!mb.get ())
- return false;
-
- TAO_InputCDR in (mb.get ());
-
- RM_Helper::cdr_to_pc (pc, in);
-
- return true;
-}
-
-
-//---------------------------------------------------------------------
-//These are a bit obsolete but until I am sure I will keep them
-
-//This function attempts to write a sequence of bytes to
-//a specified location. A 0 is returned in the case of an error
-//and a 1 upon success
-
-bool RM_Helper::write_to_disk (
- const char* full_path,
- const CORBA::Octet* buffer,
- size_t length
- )
-{
-
- // Open a file handle to the local filesystem
- ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file creation error")),
- 0);
-
- //write the data to the file
- if (ACE_OS::write (handle, buffer, length) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file write error")),
- 0);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- return 1;
-}
-
-
-//This function attempts to write a sequence of bytes from an
-//ACE_Message_Block to a specified location. A 0 is returned
-//in the case of an error and a 1 upon success
-
-bool RM_Helper::write_to_disk (
- const char* full_path,
- ACE_Message_Block& mb,
- bool replace
- )
-{
-
- ACE_stat stat;
-
- if (ACE_OS::stat(full_path, &stat) != -1 && !replace)
- return 0;
-
- // Open a file handle to the local filesystem
- ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file creation error")),
- 0);
-
- //write the data to the file
- for (ACE_Message_Block * curr = &mb; curr != 0; curr = curr->cont ())
- if (ACE_OS::write_n (handle, curr->rd_ptr(), curr->length()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("write error")),
- 0);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- return 1;
-}
-
-
-//This function attempts to write a sequence of bytes from an
-//ACE_Message_Block to a specified location. A 0 is returned
-//in the case of an error and a 1 upon success
-//
-//NOTE: This function write the contents in a way that preserves the
-//structure of the ACE_Message_Block. It is relevant for
-//PackageConfigurations ONLY
-
-
-bool RM_Helper::write_pc_to_disk (
- const char* full_path,
- ACE_Message_Block& mb,
- bool replace
- )
-{
-
- ACE_stat stat;
-
- if (ACE_OS::stat(full_path, &stat) != -1 && !replace)
- return 0;
-
- // Open a file handle to the local filesystem
- ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file creation error")),
- 0);
-
- //write the data to the file
- for (ACE_Message_Block * curr = &mb; curr != 0; curr = curr->cont ())
- if (ACE_OS::write_n (handle, curr->rd_ptr(), curr->length()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("write error")),
- 0);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- return 1;
-}
-
-
-//This function attempts to read a sequence of bytes from a specified
-//location and returns an octet sequence. A 0 is returned
-//in the case of an error and a 1 upon success
-
-CORBA::Octet* RM_Helper::read_from_disk (
- const char* full_path,
- size_t &length
- )
-{
- //open the file
- ACE_HANDLE handle = ACE_OS::open (full_path, O_RDONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::read_from_disk] file open error")),
- 0);
-
- ACE_stat file_info;
-
- ACE_OS::fstat (handle, &file_info);
-
- CORBA::Octet* buffer;
- ACE_NEW_RETURN (buffer, CORBA::Octet[file_info.st_size], 0);
-
- //read the contents of the file into the buffer
- if (ACE_OS::read_n (handle, buffer, file_info.st_size) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::read_from_disk] file read error")),
- 0);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- length = file_info.st_size;
- return buffer;
-}
-
-
-
- ///function to read the contents of a file from disk into an ACE_Message_Block
- ///returns a pointer to an ACE_Message_Block and updates the lenght on success
- /// 0 on failure
-
-
-ACE_Message_Block* RM_Helper::read_pc_from_disk (
- const char* full_path,
- size_t &length
- )
-{
- length = 0;
-
- //open the file
- ACE_HANDLE handle = ACE_OS::open (full_path, O_RDONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::read_mb_from_disk] file open error")),
- 0);
-
- ACE_stat file_info;
-
- ACE_OS::fstat (handle, &file_info);
-
- ACE_Message_Block* mb;
- ACE_NEW_RETURN (mb, ACE_Message_Block (file_info.st_size + 1), 0);
-
- //read the contents of the file into the buffer
- if (ACE_OS::read_n (handle, mb->wr_ptr (), file_info.st_size) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::read_mb_from_disk] file read error")),
- 0);
-
- mb->length (file_info.st_size);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- length = file_info.st_size;
- return mb;
-}
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.h b/TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.h
deleted file mode 100644
index fb2f8a61db0..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/RM_Helper.h
+++ /dev/null
@@ -1,101 +0,0 @@
-
-/* -*- C++ -*- */
-
-//=============================================================================
-/**
- * @file RM_Helper.h
- *
- * $Id$
- *
- * This class aggregates a number of helper functions used by the
- * CIAO RepositoryManager
- *
- *
- * @author Stoyan Paunov
- */
-//=============================================================================
-
-#ifndef RM_HELPER_H_
-#define RM_HELPER_H_
-
-
-#include "ciao/Packaging_DataC.h" //for the PackageConfiguration declaration
-#include "tao/CDR.h" //for TAO CDR classes
-#include "ace/Message_Block.h" //for ACE_Message_Block
-
-//int operator<< (ACE_OutputCDR& cdr, const Deployment::PackageConfiguration& pc);
-//int operator>> (ACE_InputCDR& cdr, Deployment::PackageConfiguration& pc);
-//Similar operators are generated by the IDL compiler
-//
-//Do search for "Deployment::PackageConfiguration &" in Packaging_DataC.cpp
-//
-//::CORBA::Boolean operator<< (
-// TAO_OutputCDR &strm,
-// const Deployment::PackageConfiguration &_tao_aggregate
-//
-//::CORBA::Boolean operator>> (
-// TAO_InputCDR &strm,
-// Deployment::PackageConfiguration &_tao_aggregate
-// )
-
-
-class RM_Helper
-{
-public:
-
- static void pc_to_cdr (const Deployment::PackageConfiguration& pc, TAO_OutputCDR& cdr);
-
- static void cdr_to_pc (Deployment::PackageConfiguration& pc, TAO_InputCDR& cdr);
-
- static bool externalize (const Deployment::PackageConfiguration& pc, const char* path);
-
- static bool reincarnate (Deployment::PackageConfiguration& pc, const char* path);
-
- ///function that writes out a file to a specified location on the hard disk
- ///returns 1 on success
- /// 0 on error
-
- static bool write_to_disk (const char* full_path,
- const CORBA::Octet* buffer,
- size_t length
- );
-
-
- ///function that writes out a file to a specified location on the hand disk
- ///returns 1 on success
- /// 0 on already exists and replace == false
- /// 0 on error
-
- static bool write_to_disk (const char* full_path,
- ACE_Message_Block& mb,
- bool replace = true
- );
-
- ///function that writes out a file to a specified location on the hand disk
- ///returns 1 on success
- /// 0 on already exists and replace == false
- /// 0 on error
- ///
- ///NOTE: This function is relevant for PackageConfigurations ONLY
-
- static bool write_pc_to_disk (const char* full_path,
- ACE_Message_Block& mb,
- bool replace = true
- );
-
- ///function to read the contents of a file from disk into a CORBA::OctetSeq
- ///returns a pointer to a CORBA::Octet buffer and updates the lenght on success
- /// 0 on failure
-
- static CORBA::Octet* read_from_disk (const char* full_path, size_t &length);
-
- ///function to read the contents of a file from disk into an ACE_Message_Block
- ///returns a pointer to an ACE_Message_Block and updates the lenght on success
- /// 0 on failure
-
-
- static ACE_Message_Block* read_pc_from_disk (const char* full_path, size_t &length);
-
-};
-
-#endif
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RMadmin.cpp b/TAO/CIAO/DAnCE/RepositoryManager/RMadmin.cpp
deleted file mode 100644
index 2a884d2bd16..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/RMadmin.cpp
+++ /dev/null
@@ -1,274 +0,0 @@
-
-/* -*- C++ -*- */
-
-/***
- * file RMClient.cpp
- *
- * $Id$
- *
- * A sample client to the RepositoryManager showcasing how to use it
- *
- * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
- **/
-
-#include "RepositoryManagerDaemonC.h"
-#include "Options.h"
-
-#include "ace/OS_NS_fcntl.h" //for open
-#include "ace/OS_NS_unistd.h" //for close
-#include "ace/OS_NS_sys_stat.h" //for filesize and fstat and mkdir
-
-#include "Config_Handlers/DnC_Dump.h"
-
-#include <iostream>
-using namespace std;
-
-#include "RM_Helper.h" //to be able to externalize/internalize a PackageConfiguration
-#include "tao/CDR.h" //for TAO CDR classes
-#include "ace/Message_Block.h" //for ACE_Message_Block
-
-
-
-//IOR file of the RM
-const char * ior = "file://RepositoryManagerDeamon.ior";
-
-
-///=============================COUPLE OF HELPER METHORS==================================
-CORBA::Octet* read_from_disk (
- const char* full_path,
- size_t &length
- );
-
-int write_to_disk (
- const char* full_path,
- const CORBA::Octet* buffer,
- size_t length
- );
-///========================================================================================
-
-
-///main function that provides a sample interface for RM clients
-
-int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- // Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv,
- ""ACE_ENV_ARG_PARAMETER);
-
- ACE_TRY_CHECK;
-
-
- CORBA::Object_var obj =
- orb->string_to_object (ior
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CIAO::RepositoryManagerDaemon_var rm =
- CIAO::RepositoryManagerDaemon::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (rm.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to acquire RepositoryManagerDaemon's objref\n"),
- -1);
- }
-
-
- Options* options = TheOptions::instance ();
- if (!options->parse_args (argc, argv))
- return -1;
-
- if (options->shutdown_)
- {
- rm->shutdown ();
- }
- else if (options->all_names_)
- {
- try
- {
- CORBA::StringSeq_var seq = rm->getAllNames ();
- cout << "Known Names:\n";
- cout << "Seq length () : " << seq->length () << endl;
- for (size_t i = 0;
- i < seq->length ();
- ++i)
- cout << seq[i].in () << endl;
- }
- catch (CORBA::Exception & ex)
- {
- cout << "\nException caught!" << ex << "\n";
- return 0;
- }
- }
- else if (options->all_types_)
- {
- try
- {
- CORBA::StringSeq_var seq = rm->getAllTypes ();
- cout << "Known Component Interface Types:\n";
- for (size_t i = 0;
- i < seq->length ();
- ++i)
- cout << seq[i].in () << endl;
- }
- catch (CORBA::Exception & ex)
- {
- cout << "\nException caught!" << ex << "\n";
- return 0;
- }
- }
- else if (options->uuid_ != "" && options->names_by_type_)
- {
- try
- {
- CORBA::StringSeq_var seq = rm->findNamesByType (options->uuid_.c_str ());
- cout << "Known Component Interface Types:\n";
- for (size_t i = 0;
- i < seq->length ();
- ++i)
- cout << seq[i].in () << endl;
- }
- catch (CORBA::Exception & ex)
- {
- cout << "\nException caught!" << ex << "\n";
- return 0;
- }
-
- }
- else if (options->install_)
- {
- try
- {
- rm->installPackage (options->name_.c_str (), options->path_.c_str ());
- }
- catch (CORBA::Exception & ex)
- {
- cout << "\nException caught!" << ex << "\n";
- return 0;
- }
-
- cout << "\nReassuring that the package in the repository ..." << endl;
- try
- {
- Deployment::PackageConfiguration_var pc = rm->findPackageByName (options->name_.c_str ());
- cout << "The package was found!" << endl;
- cout << "Label: " << pc->label << endl;
- cout << "UUID: " << pc->UUID << endl;
- }
- catch (CORBA::Exception &)
- {
- cout << "\nError! Package not found!" << endl;
- }
- }
- else if (options->delete_)
- {
- try
- {
- rm->deletePackage (options->name_.c_str ());
- cout << options->name_.c_str () << " deleted" << endl;
- }
- catch (CORBA::Exception & ex)
- {
- cout << "\nException: " << ex << endl;
- }
-
- }
- else if (options->find_)
- {
- if (options->name_ != "")
- {
- Deployment::PackageConfiguration_var pc = rm->findPackageByName (options->name_.c_str ());
- cout << "The package was found!" << endl;
- Deployment::DnC_Dump::dump (pc);
- }
- else
- {
- Deployment::PackageConfiguration_var pc = rm->findPackageByUUID (options->uuid_.c_str ());
- cout << "The package was found!" << endl;
- Deployment::DnC_Dump::dump (pc);
- }
- }
-
- orb->shutdown (1);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Unknown exception \n");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-
-CORBA::Octet* read_from_disk (
- const char* full_path,
- size_t &length
- )
-{
- //open the file
-
- ACE_HANDLE handle = ACE_OS::open (full_path, O_RDONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::read_from_disk] file open error")),
- 0);
-
- ACE_stat file_info;
-
- ACE_OS::fstat (handle, &file_info);
-
- CORBA::Octet* buffer = 0;
- ACE_NEW_RETURN (buffer, CORBA::Octet[file_info.st_size], 0);
-
- // read the contents of the file into the buffer
- if (ACE_OS::read_n (handle, buffer, file_info.st_size) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file write error")),
- 0);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- length = file_info.st_size;
- return buffer;
-}
-
-
-int write_to_disk (
- const char* full_path,
- const CORBA::Octet* buffer,
- size_t length
- )
-{
- // Open a file handle to the local filesystem
- ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
- if (handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file creation error")),
- -1);
-
- //write the data to the file
- if (ACE_OS::write (handle, buffer, length) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[RM::write_to_disk] file write error")),
- -1);
-
- // Close the file handle
- ACE_OS::close (handle);
-
- return 1;
-}
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.cpp b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.cpp
deleted file mode 100644
index b8a94492920..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.cpp
+++ /dev/null
@@ -1,166 +0,0 @@
-
-/* -*- C++ -*- */
-
-//======================================================================
-/**
- * @file RepositoryManager.cpp
- *
- * $Id$
- *
- * Description:
- * Main driver program for the CIAO RepositoryManager
- * Please run as follows:
- * RepositoryManagerDeamon [int:nthreads]
- *
- * @author Stoyan Paunov
- */
-//======================================================================
-
-#include "RepositoryManager_Impl.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/streams.h"
-#include "ace/Auto_Ptr.h"
-#include "ace/Task.h"
-using namespace std;
-
-namespace
-{
-/// Name of the file holding the IOR of the RM
-const char * rm_ior = "RepositoryManagerDeamon.ior";
-
-/// Default number of worker threads to run in the multi-threaded RM
-unsigned int nthreads = 3;
-}
-
-
-/**
- * @class Worker
- *
- * Class that implements the service routine of the worker threads
- * of the repository manager
- */
-class Worker : public ACE_Task_Base
-{
-public:
- /// ctor
- Worker (CORBA::ORB_ptr orb);
-
- /// The thread entry point.
- virtual int svc (void);
-
-private:
- /// The orb
- CORBA::ORB_var orb_;
-};
-
-
-///Main function
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- try
- {
- //init the ORB
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
-
- //Get the root POA object
- CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA");
-
- //downcast to POA type
- PortableServer::POA_var root_poa = PortableServer::POA::_narrow (obj.in ());
-
- //activate the POA manager
- PortableServer::POAManager_var mgr = root_poa->the_POAManager ();
- mgr->activate ();
-
- //create a servant
- CIAO_RepositoryManagerDaemon_i* repo;
- ACE_NEW_RETURN (repo, CIAO_RepositoryManagerDaemon_i (orb.in ()), 1);
-
- //trasfer ownership to the POA
- PortableServer::ServantBase_var distributor_owner_transfer(repo);
-
- //register and implicitly activate servant
- CIAO::RepositoryManagerDaemon_var RepositoryManagerDeamon = repo->_this ();
-
- //convert the IOR to string
- CORBA::String_var ior = orb->object_to_string (RepositoryManagerDeamon.in ());
-
- //output the IOR to a file
- FILE* ior_out = ACE_OS::fopen (rm_ior, "w");
-
- if (ior_out == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- rm_ior),
- 1);
-
- ACE_OS::fprintf (ior_out, "%s", ior.in ());
- ACE_OS::fclose (ior_out);
-
- if (argc > 1)
- nthreads = ACE_OS::atoi (argv[1]);
-
- Worker worker (orb.in ());
- if (worker.activate (THR_NEW_LWP | THR_JOINABLE, nthreads) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot activate worker threads\n"),
- 1);
-
- worker.thr_mgr ()->wait ();
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- //done
- return 0;
-
- //Start accepting requests
- orb->run ();
-
- //allow objects registered with the POA ot get cleaned-up
- root_poa->destroy (1, 1);
-
- //shutdown the orb
- orb->shutdown (1);
-
- return 0;
- }
- catch (CORBA::Exception &ex) {
- cerr << "CORBA Exception: " << ex << endl;
-
- return 1;
- }
-
-
- return 0;
-}
-
-
-
-// ****************************************************************
-
-///Constuctor for the worker class
-Worker::Worker (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-///implementation of the service routine inherited from ACE::Task_Base
-
-int Worker::svc (void)
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.idl b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.idl
new file mode 100644
index 00000000000..1fc19b0d1be
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.idl
@@ -0,0 +1,12 @@
+// $Id$
+
+#include "Deployment.idl"
+
+module CIAO
+{
+ interface RepositoryManagerDaemon : Deployment::RepositoryManager
+ {
+ // Shutdown the daemon process.
+ oneway void shutdown ();
+ };
+};
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.mpc b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.mpc
index b1300b1f92e..4e059b669b2 100644
--- a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.mpc
+++ b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager.mpc
@@ -1,48 +1,24 @@
// -*- MPC -*-
// $Id$
-//RepositoryManager project: implementation of a repository manager
-//compleint with the D&C spec
-
-project (RepositoryManager) : ciao_server_dnc, ciao_config_handlers, zzip, zlib {
-
- exename = RepositoryManagerDeamon
- requires += zzip zlib
+project(Repository_Manager): ciao_server_dnc,ciao_deployment_svnt, ciao_deployment_stub, taoexe, xerces, exceptions {
+ exename = executor
+ after += Config_Handlers ExecutionManager_stub NodeManager_stub
+ includes += /usr/include $(CIAO_ROOT)/tools
+ libpaths += /usr/lib
+ libs += Config_Handlers NodeManager_stub
+ libs += ExecutionManager_stub CIAO_DnC_Server
+ after += Config_Handlers
IDL_Files {
- RepositoryManagerDaemon.idl
+ RepositoryManager.idl
}
Source_Files {
- RepositoryManagerDaemonC.cpp
- RepositoryManagerDaemonS.cpp
- ZIP_Wrapper.cpp
- RepositoryManager.cpp
+ RepositoryManagerC.cpp
+ RepositoryManagerS.cpp
+ Update_Plan.cpp
+ Repository_Manager.cpp
RepositoryManager_Impl.cpp
- RM_Helper.cpp
- URL_Parser.cpp
- HTTP_Handler.cpp
- HTTP_Client.cpp
- PC_Updater_T.cpp
- PC_Updater.cpp
- }
-}
-
-
-// RMadmin project: a sample client for the RM.
-
-project (RMAdmin) : ciao_servant_dnc, ciao_config_handlers {
- exename = RMadmin
- after += RepositoryManager
-
- IDL_Files {
- RepositoryManagerDaemon.idl
- }
-
- Source_Files {
- RMadmin.cpp
- RepositoryManagerDaemonC.cpp
- Options.cpp
- RM_Helper.cpp
}
}
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManagerDaemon.idl b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManagerDaemon.idl
deleted file mode 100644
index f86e14c1c8b..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManagerDaemon.idl
+++ /dev/null
@@ -1,13 +0,0 @@
-// $Id$
-
-#include "RepositoryManager.idl"
-
-module CIAO
-{
- interface RepositoryManagerDaemon : Deployment::RepositoryManager
- {
- // Shutdown the daemon process.
- oneway void shutdown ();
- };
-};
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.cpp b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.cpp
index a529c07f84a..da85e59cf55 100644
--- a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.cpp
+++ b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.cpp
@@ -1,1130 +1,205 @@
+/* -*- C++ -*- */
// $Id$
-//====================================================================
-/**
- * @file RepositoryManager_Impl.cpp
- *
- * $Id$
- *
- * Description: Actial implementation of the RepoMan
- *
- * @author Stoyan Paunov
- */
-//====================================================================
-
#include "RepositoryManager_Impl.h"
+#include "Repository_Manager_conf.h"
+#include "Old_Config_Handlers/TPD_Handler.h"
+#include "Old_Config_Handlers/DnC_Dump.h"
-#include "ace/OS_NS_fcntl.h" //for open
-#include "ace/OS_NS_unistd.h" //for close
-#include "ace/OS_NS_sys_stat.h" //for filesize and fstat and mkdir
-#include "ace/OS_NS_string.h" //for ACE_CString
-#include "ace/OS_Memory.h" //for ACE_NEW* macros
-
-
-//to remove a file or dir from the local filesystem need remove () from stdio.h
-// ---> need to include ace/OS_NS_stdio.h which would include the correct file for any OS!
-#include "ace/OS_NS_stdio.h"
-
-#include "ZIP_Wrapper.h" //Wrapper around zzip
-#include "ace/Containers_T.h" //for ACE_Double_Linked_List
-#include "ace/Malloc_Allocator.h" //for ACE_New_Allocator
-
-//for the PackageConfiguration parsing
-#include "Config_Handlers/STD_PC_Intf.h"
-#include "ciao/Deployment_DataC.h"
-#include "ciao/Packaging_DataC.h"
-#include "Config_Handlers/Utils/XML_Helper.h"
-#include "xercesc/dom/DOM.hpp"
-
-#include "RM_Helper.h" //to be able to externalize/internalize a PackageConfiguration
-#include "ace/Message_Block.h" //for ACE_Message_Block
-
-#include "ace/Thread.h" //for obtaining the ID of the current thread
-#include "ace/OS_NS_stdlib.h" //for itoa ()
-
-#include "URL_Parser.h" //for parsing the URL
-#include "HTTP_Client.h" //the HTTP client class to downloading packages
-
-#include "PC_Updater.h" //A visitor class to walk through the elements of the PC
-
-#include <iostream>
-using namespace std;
-
-//-----------------------------------------------------------------
-//Constructor
-//
-//-----------------------------------------------------------------
-
-CIAO_RepositoryManagerDaemon_i::CIAO_RepositoryManagerDaemon_i (CORBA::ORB_ptr the_orb, const char* server)
- : the_orb_ (CORBA::ORB::_duplicate (the_orb)),
- install_root_ (""),
- HTTP_server_ (server)
+CIAO::RepositoryManager_Impl::RepositoryManager_Impl
+ (CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa)
+ : orb_ (CORBA::ORB::_duplicate (orb)),
+ poa_ (PortableServer::POA::_duplicate (poa)),
+ pc_table_ (MAX_PACKAGES)
{
- //create directory in which the packages will be stored
-
- ACE_OS::mkdir(INSTALL_PATH);
- //if dir already exists a -1 is returned
- //we ignore this, just need to make sure the directory exists
-
- ACE_OS::getcwd (this->cwd_, TEMP_LEN);
-
- this->install_root_ = this->cwd_;
- this->install_root_ += "/";
- this->install_root_ += INSTALL_PATH;
}
-//-----------------------------------------------------------------
-//Destructor
-//
-//-----------------------------------------------------------------
-
-CIAO_RepositoryManagerDaemon_i::~CIAO_RepositoryManagerDaemon_i (void)
+CIAO::RepositoryManager_Impl::RepositoryManager_Impl ()
+ : pc_table_ (MAX_PACKAGES)
{
- this->names_.unbind_all ();
- this->uuids_.unbind_all ();
}
-//-----------------------------------------------------------------
-//shutdown
-//
-//-----------------------------------------------------------------
-
-void CIAO_RepositoryManagerDaemon_i::shutdown ()
-
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
+CIAO::RepositoryManager_Impl::~RepositoryManager_Impl ()
{
-
- this->names_.unbind_all ();
- this->uuids_.unbind_all ();
-
- this->the_orb_->shutdown (0);
}
-
-//-----------------------------------------------------------------
-//installPackage
-//
-//-----------------------------------------------------------------
-
-void CIAO_RepositoryManagerDaemon_i::installPackage (
- const char * installationName,
- const char * location
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NameExists,
- ::Deployment::PackageError
- ))
+void
+CIAO::RepositoryManager_Impl::
+installPackage (const char* installation_name,
+ const char* location
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NameExists,
+ Deployment::PackageError))
{
-
- PCEntry *entry = 0;
-
- if (this->names_.find (ACE_CString (installationName), entry) == 0)
- ACE_THROW (Deployment::NameExists ());
-
- //Now lets form the path for the local file
- //NOTE: I need the absolute path because I will change to a subdirectory
- //when I am parsing the descriptors
-
- ACE_CString path (this->install_root_);
- path += "/";
- path += installationName;
-
- ACE_CString package_path (path);
- package_path += ".cpk"; //package extension
-
- ACE_CString pc_path (path);
- pc_path += PC_EXTENSION; //external PackageConfiguration extension
-
-
- ACE_CString descriptor_dir (path);
- descriptor_dir += "/descriptors/"; //location of the descriptor directory
-
-
- //check if URL or local file
- //download or load into memory
-
- size_t length = 0;
-
- if (ACE_OS::strstr (location, "http://"))
+ try
{
-
- //TODO: how can I incorporate a Auto_Ptr is explicit release is needed
- ACE_Message_Block* mb;
- ACE_NEW_THROW_EX (mb, ACE_Message_Block (), CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
- //get the remote file
- if (!HTTP_Get (location, *mb))
- {
- mb->release ();
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- // Write file to designated location on disk
- if (!RM_Helper::write_to_disk (package_path.c_str (), *mb))
- {
- mb->release ();
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- mb->release ();
+ xercesc::XMLPlatformUtils::Initialize();
}
- else
- {
- CORBA::Octet* file = 0;
-
- //read the package from disk and store in the RM directory
- //see if you can substiture this with a memory mapped file
- //for better perofrmance (mimic zero copy here)
- file = RM_Helper::read_from_disk (location, length);
-
- if (!file)
- ACE_THROW (CORBA::INTERNAL ());
-
- //Store the package in the local RM dir for future retrieval
- if (!RM_Helper::write_to_disk (package_path.c_str (), file, length))
+ catch (const XMLException& xml_e)
{
- delete file;
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- //NOTE: MEMORY LEAK UNLESS delete file; change to Auto_Ptr
- delete file;
+ char* message = XMLString::transcode (xml_e.getMessage());
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_DEBUG ((LM_DEBUG, "Error during initialization : %s\n", message));
+ return;
}
-
-
- ZIP_Wrapper::uncompress (const_cast<char*> (package_path.c_str ()),
- const_cast<char*> (this->install_root_.c_str ()),
- false //not verbose
- );
-
- //Start the parsing
-
- ACE_CString pc_name;
-
- this->find_PC_name (const_cast<char*> (package_path.c_str ()), pc_name);
-
- //if the PackageConfiguration name cannot be found, then there is nothing to install
- if (pc_name == "")
- ACE_THROW (Deployment::PackageError ());
-
-
- //TODO: move exception throwing out of this func. User boolean error handling!!!
- //TODO: check for errors!
- Deployment::PackageConfiguration_var pc;
- pc = this->retrieve_PC_from_descriptors (const_cast<char*> (pc_name.c_str ()),
- descriptor_dir.c_str ());
-
-
- //forming the server path info
- ACE_CString server_path (this->HTTP_server_);
- server_path += installationName;
- server_path += "/implementations/";
-
- //NOTE: ComponentPackageReferences are currently NOT supported
- if (!(pc->basePackage.length () > 0))
- ACE_THROW (CORBA::NO_IMPLEMENT ());
-
- PC_Updater updater (server_path, package_path);
-
- if (!updater.update (pc))
+ try
{
- ACE_DEBUG ((LM_ERROR, "[RM] problem updating the PackageConfiguration!\n"));
- remove_extracted_package (package_path.c_str (), path.c_str ());
- remove (package_path.c_str ());
- ACE_THROW (Deployment::PackageError ());
- }
-
-
- //now lets externalize the PackageConfiguration, so that we can access it later on
- //without having to do the whole parsing again.
- //NOTE: Order here is important. Do not populate maps before the externalization!
- RM_Helper::externalize (pc, pc_path.c_str ());
-
- //insert the package into the database
- if (this->names_.bind (ACE_CString (installationName), path) == -1)
- {
- ACE_DEBUG ((LM_ERROR,
- "[RM] could not bind %s.\n",
- installationName));
-
- //clean the extracted files
- remove_extracted_package (package_path.c_str (), path.c_str ());
- //remove the package
- remove (package_path.c_str ());
- //remove the PackageConfiguration externalization
- remove (pc_path.c_str ());
-
- //throw exception
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- //ALSO NEED THE UUID here
- if (this->uuids_.bind (ACE_CString (pc->UUID), path) == -1)
- {
- ACE_DEBUG ((LM_ERROR,
- "[RM] could not bind %s.\n",
- pc->UUID));
-
- //unbind the name
- this->names_.unbind (installationName);
-
- //clean the extracted files
- remove_extracted_package (package_path.c_str (), path.c_str ());
- //remove the package
- remove (package_path.c_str ());
- //remove the PackageConfiguration externalization
- remove (pc_path.c_str ());
-
- //throw exception
- ACE_THROW (CORBA::INTERNAL ());
- }
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
- //now add the type interface
- //TODO: CHECK if successful
- if(!this->add_type (pc, installationName))
- ACE_DEBUG ((LM_ERROR, "Failed to add the type\n"));
-#endif
-
- this->dump ();
-
- ACE_DEBUG ((LM_INFO,
- "Installed PackageConfiguration \n\tname: %s \n\tuuid: %s\n",
- installationName, pc->UUID));
-}
-
+ CIAO::Config_Handler::Config_Error_Handler tpd_err_handler;
+ CIAO::Config_Handler::Config_Error_Handler pc_err_handler;
+ auto_ptr<DOMBuilder> tpd_parser (CIAO::Config_Handler::Utils::
+ create_parser ());
+ tpd_parser->setErrorHandler(&tpd_err_handler);
+ DOMDocument* tpd_doc = tpd_parser->parseURI (location);
-//-----------------------------------------------------------------
-//createPackage
-//
-//-----------------------------------------------------------------
-
-void CIAO_RepositoryManagerDaemon_i::createPackage (
- const char * installationName,
- const ::Deployment::PackageConfiguration & package,
- const char * baseLocation,
- ::CORBA::Boolean replace
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NameExists,
- ::Deployment::PackageError
- ))
-{
- ACE_THROW (CORBA::NO_IMPLEMENT ());
-}
-
-
-//-----------------------------------------------------------------
-//findPackageByName
-//
-//-----------------------------------------------------------------
-
-::Deployment::PackageConfiguration*
-CIAO_RepositoryManagerDaemon_i::findPackageByName (const char * name)
-
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NoSuchName
- ))
-{
- // Find out if the PackageConfiguration was installed in the repository,
- // return it if found or throw and exception otherwise
-
- PCEntry *entry = 0;
-
- if (this->names_.find (ACE_CString (name), entry) != 0)
- ACE_THROW (Deployment::NoSuchName ());
- //PackageConfiguration was not found
-
- ACE_CString pc_path (entry->int_id_.c_str ());
- pc_path += PC_EXTENSION;
-
- Deployment::PackageConfiguration_var pc;
- ACE_NEW_THROW_EX (pc,
- Deployment::PackageConfiguration (),
- CORBA::INTERNAL ());
-
- ACE_CHECK_RETURN (0);
-
- if(!RM_Helper::reincarnate (pc, pc_path.c_str ()))
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
-
- ACE_DEBUG ((LM_INFO, "Successfully looked up \'%s\'.\n", name));
-
- return pc._retn ();
-}
-
-
-//-----------------------------------------------------------------
-//findPackageByUUID
-//
-//-----------------------------------------------------------------
-
-::Deployment::PackageConfiguration*
-CIAO_RepositoryManagerDaemon_i::findPackageByUUID (const char * UUID)
-
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NoSuchName
- ))
-{
- // Find out if the PackageConfiguration was installed in the repository,
- // return it if found or throw and exception otherwise
-
- PCEntry *entry = 0;
-
- if (this->uuids_.find (ACE_CString (UUID), entry) != 0)
- ACE_THROW (Deployment::NoSuchName ());
- //PackageConfiguration was not found
-
- ACE_CString pc_path (entry->int_id_.c_str ());
- pc_path += PC_EXTENSION;
-
- Deployment::PackageConfiguration_var pc;
- ACE_NEW_THROW_EX (pc,
- Deployment::PackageConfiguration (),
- CORBA::INTERNAL ());
-
- ACE_CHECK_RETURN (0);
-
- if(!RM_Helper::reincarnate (pc, pc_path.c_str ()))
- ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
-
- ACE_DEBUG ((LM_INFO, "Successfully looked up %s.\n", UUID));
-
- return pc._retn ();
-}
-
-//-----------------------------------------------------------------
-//findPackageByType
-//
-//-----------------------------------------------------------------
-
-::CORBA::StringSeq * CIAO_RepositoryManagerDaemon_i::findNamesByType (
- const char * type
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
-
-#if !defined ASSEMBLY_INTERFACE_SUPPORT
- ACE_THROW (CORBA::NO_IMPLEMENT ());
-#endif
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
-
- CIEntry *entry = 0;
-
- //find the type in the interface map
- if (!this->types_.find (ACE_CString (type), entry))
- {
- //return an empty sequence
- CORBA::StringSeq_var seq;
- ACE_NEW_THROW_EX (seq, CORBA::StringSeq (0), CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
- return seq._retn ();
- }
- else
- {
- //The CORBA::StringSeq is implemented as an array and growing
- //one at a time on demand is very inefficient due to the
- //deallocations and reallocations. This is why we figure out the
- //number of elements in advance and then create a CORBA::StringSeq
- //of the right length
-
- CIBucket_Iterator counter (this->types_, type);
-
- CIBucket_Iterator end (this->types_,
- type,
- 1 /*tail = true*/);
+ if (tpd_err_handler.getErrors())
+ {
+ throw Deployment::PackageError ();
+ }
- //count the number of components implementing this type
- CORBA::ULong num_entries = 0;
- for (;
- counter != end;
- ++counter)
- ++num_entries;
+ CIAO::Config_Handler::TPD_Handler top_pc_handler
+ (tpd_doc,
+ DOMNodeFilter::SHOW_ELEMENT |
+ DOMNodeFilter::SHOW_TEXT);
+ ACE_TString package_location = top_pc_handler.
+ process_TopLevelPackageDescription ();
- //allocate a sequence of the right length
- CORBA::StringSeq_var seq;
- ACE_NEW_THROW_EX (seq,
- CORBA::StringSeq (num_entries),
- CORBA::INTERNAL ());
+ auto_ptr<DOMBuilder> pc_parser (CIAO::Config_Handler::Utils::
+ create_parser ());
+ pc_parser->setErrorHandler(&pc_err_handler);
+ DOMDocument* pc_doc = pc_parser->parseURI (package_location.c_str());
- ACE_CHECK_RETURN (0);
+ if (pc_err_handler.getErrors())
+ {
+ throw Deployment::PackageError ();
+ }
- //store the elements in the string sequence
- CIBucket_Iterator iter (this->types_, type);
- CORBA::ULong index = 0;
- for (;
- iter != end && index < num_entries;
- ++iter, ++index)
- {
- CIEntry& element = *iter;
- seq[index] = CORBA::string_dup (element.int_id_.c_str ());
+ CIAO::Config_Handler::PC_Handler pc_handler (pc_doc,
+ DOMNodeFilter::SHOW_ELEMENT |
+ DOMNodeFilter::SHOW_TEXT);
+ Deployment::PackageConfiguration pc;
+ pc_handler.process_PackageConfiguration (pc);
+ //Deployment::DnC_Dump::dump (pc);
+ this->pc_table_.bind (installation_name, (pc));
+ //Deployment::DnC_Dump::dump (*(&pc));
}
-
- return seq._retn ();
- }
-
-#endif
-}
-
-
-//-----------------------------------------------------------------
-//getAllNames
-//
-//-----------------------------------------------------------------
-
-::CORBA::StringSeq*
-CIAO_RepositoryManagerDaemon_i::getAllNames ()
-
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
- //Map.current_size () gives you the current number with the duplicates
- //Map.total_size () gives you the allocated space + the empty slots
- //Apparently the only way to figure out the number of keys is to
- //count them with an iterator.
-
- CORBA::ULong num_entries = 0;
-
- for (PCMap_Iterator i = this->names_.begin ();
- i != this->names_.end ();
- ++i)
- ++num_entries;
-
- CORBA::StringSeq_var seq;
- ACE_NEW_THROW_EX (seq, CORBA::StringSeq (num_entries), CORBA::INTERNAL ());
-
- ACE_CHECK_RETURN (0);
-
- seq->length (num_entries);
-
- CORBA::ULong index = 0;
- for (PCMap_Iterator iter = this->names_.begin ();
- iter != this->names_.end () && index < num_entries;
- ++iter, ++index)
- {
- CIEntry& element = *iter;
- seq[index] = CORBA::string_dup (element.ext_id_.c_str ());
- }
-
- ACE_DEBUG ((LM_INFO, "Current # packages [ %d ]\n", seq->length ()));
-
- return seq._retn (); //release the underlying CORBA::StringSeq
-}
-
-
-//-----------------------------------------------------------------
-//getAllTypes
-//
-//-----------------------------------------------------------------
-
-::CORBA::StringSeq * CIAO_RepositoryManagerDaemon_i::getAllTypes (
-
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
-
-#if !defined ASSEMBLY_INTERFACE_SUPPORT
- ACE_THROW (CORBA::NO_IMPLEMENT ());
-#endif
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
-
- //Map.current_size () gives you the current number with the duplicates
- //Map.total_size () gives you the allocated space + the empty slots
- //Apparently the only way to figure out the number of keys is to
- //count them with an iterator.
-
- CORBA::ULong num_entries = 0;
-
- for (PCMap_Iterator i = this->names_.begin ();
- i != this->names_.end ();
- ++i)
- ++num_entries;
-
- ACE_DEBUG ((LM_DEBUG, "# names: %d\n", num_entries));
-
-
- CORBA::StringSeq_var seq;
- ACE_NEW_THROW_EX (seq,
- CORBA::StringSeq (num_entries),
- CORBA::INTERNAL ());
-
- ACE_CHECK_RETURN (0);
-
- seq->length (num_entries);
-
- CORBA::ULong index = 0;
- for (CIMap_Iterator iter = this->types_.begin ();
- iter != this->types_.end () && index < num_entries;
- ++iter, ++index)
-
- {
- CIEntry& element = *iter;
- seq[index] = CORBA::string_dup (element.int_id_.c_str ());
- }
-
- return seq._retn (); //release the underlying CORBA::StringSeq
-
-#endif
-}
-
-
-//-----------------------------------------------------------------
-//DeletePackage
-//
-//-----------------------------------------------------------------
-
-void CIAO_RepositoryManagerDaemon_i::deletePackage (
- const char * installationName
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NoSuchName
- ))
-{
- bool internal_err = false;
-
- PCEntry *entry = 0;
-
- if (this->names_.find (ACE_CString (installationName), entry) != 0)
- ACE_THROW (Deployment::NoSuchName ());
-
- //cache the package path
- ACE_CString path (entry->int_id_.c_str ());
-
- //remove the name association
- if (this->names_.unbind (installationName) == -1)
- {
- ACE_DEBUG ((LM_ERROR,
- "Unable to unbind %s.\n",
- installationName));
- internal_err = true;
- }
-
- //the package location
- ACE_CString package_path (path);
- package_path += ".cpk"; //package extension
-
- //the PackageConfiguration externalization location
- ACE_CString pc_path (path);
- pc_path += PC_EXTENSION; //external PackageConfiguration extension
-
- Deployment::PackageConfiguration_var pc;
- ACE_NEW_THROW_EX (pc,
- Deployment::PackageConfiguration (),
- CORBA::INTERNAL ());
-
- ACE_CHECK_RETURN (0);
-
- if(!RM_Helper::reincarnate (pc, pc_path.c_str ()))
- {
- ACE_DEBUG ((LM_ERROR, "Could not reincarnate PC\n"));
- internal_err = true;
- }
-
- //if (this->uuids_.find (ACE_CString (pc->UUID), entry) != 0)
- //{
- // ACE_DEBUG ((LM_ERROR, "Could not remove UUID\n"));
- // internal_err = true;
- //}
- //else
- // //remove the UUID association
- // this->uuids_.unbind (entry->int_id_.c_str ());
-
- if (this->uuids_.unbind (ACE_CString (pc->UUID)) == -1)
- {
- ACE_DEBUG ((LM_ERROR, "Could not remove UUID\n"));
- internal_err = true;
- }
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
- //remove the type from the interface map
- if (!this->remove_type (pc, installationName))
- {
- ACE_DEBUG ((LM_ERROR, "Could not remove type\n"));
- internal_err = true;
- }
-#endif
-
- //actually delete the package here!
-
- //clean the extracted files
- remove_extracted_package (package_path.c_str (), path.c_str ());
- //remove the package
- remove (package_path.c_str ());
- //remove the PackageConfiguration externalization
- remove (pc_path.c_str ());
-
- this->dump ();
-
- if (internal_err)
- ACE_THROW (CORBA::INTERNAL ());
- else
- ACE_DEBUG ((LM_INFO, "Successfully deleting \'%s\'\n", installationName));
-
-}
-
-
-
-
-
-//==========================================HELPER METHODS==================================================
-
-Deployment::PackageConfiguration*
-CIAO_RepositoryManagerDaemon_i::retrieve_PC_from_package (char* package)
-{
- char temp[128];
- // ACE_thread_t thread_id = ACE_Thread::self ();
- char* PID = ACE_OS::itoa (ACE_OS::getpid (), temp, 10);
-
- ACE_OS::mkdir(PID);
- //if dir already exists a -1 is returned
- //we ignore this, just need to make sure the directory exists
-
- //change the working dir
- ACE_OS::chdir (PID);
-
- ACE_CString pcd_name;
- //extract the necessary descriptors
- if (extract_descriptor_files (package,
- pcd_name) < 0)
+ catch (CORBA::Exception& ex)
{
- ACE_OS::chdir (this->cwd_);
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) RepositoryManager: error extracting necessary files\n"));
- ACE_THROW (CORBA::INTERNAL ());
+ ACE_PRINT_EXCEPTION (ex, "Caught CORBA Exception: ");
+ return;
}
-
- Deployment::PackageConfiguration_var pc;
- //parse the PCD to make sure that there are no package errors
- ACE_TRY
+ catch (const DOMException& e)
{
- CIAO::Config_Handlers::STD_PC_Intf intf (pcd_name.c_str ());
+ const unsigned int maxChars = 2047;
+ XMLCh errText[maxChars + 1];
- pc = intf.get_PC ();
+ ACE_ERROR ((LM_ERROR, "\nException occured while parsing %s: \
+ \n",location));
+ ACE_ERROR ((LM_ERROR, "DOMException code: %d\n ", e.code));
+ if (DOMImplementation::loadDOMExceptionMsg (e.code, errText, maxChars))
+ {
+ char* message = XMLString::transcode (errText);
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_ERROR ((LM_ERROR, "Message is: %s\n", message));
+ }
+ ACE_ERROR ((LM_ERROR, "Caught DOM exception\n"));
+ return;
}
- ACE_CATCHALL
+ catch (...)
{
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) RepositoryManager: Error parsing the PCD\n"));
-
- //change back the the old working dir
- ACE_OS::chdir (this->cwd_);
- ACE_THROW (Deployment::PackageError ());
+ ACE_ERROR ((LM_ERROR, "Caught unknown exception\n"));
+ return;
}
- ACE_ENDTRY;
- //able to parse the PC. So lets install the package in the repo
-
- //we no longer need the descriptors, so lets erase them!
- remove_descriptor_files (package);
-
- //change back the the old working dir
- ACE_OS::chdir (this->cwd_);
-
- //now lets erase the directory!
- ACE_OS::rmdir (PID);
- //the ACE_OS::rmdir does not work. Possibly because we need to delete
- //the contents first. I will look into it more closely when I am back.
-
- return pc._retn ();
}
-
-//function to retvieve a file via HTTP
-//stores the file in the passed preallocated ACE_Message_Block
-//returns 1 on success
-// 0 on error
-
-int CIAO_RepositoryManagerDaemon_i::HTTP_Get (const char* URL, ACE_Message_Block &mb)
+void
+CIAO::RepositoryManager_Impl::
+createPackage (const char*,
+ const Deployment::PackageConfiguration&,
+ const char*,
+ CORBA::Boolean
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NameExists,
+ Deployment::PackageError))
{
- URL_Parser *parser = TheURL_Parser::instance ();
- if (!parser->parseURL (const_cast<char*> (URL)))
- return 0;
-
- // Create a client
- HTTP_Client client;
-
- // Open the client
- if (client.open (parser->filename_,
- parser->hostname_,
- parser->port_) == -1)
- {
- client.close ();
- return 0;
- }
-
- // Read from it
- if (client.read (&mb) <= 0)
- {
- client.close ();
- return 0;
- }
-
- return 1;
+ ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-
-
-//function to parse and return the PackageConfiguration from the already
-//extracted descriptor files
Deployment::PackageConfiguration*
-CIAO_RepositoryManagerDaemon_i::retrieve_PC_from_descriptors (const char* pc_name,
- const char* descriptor_dir)
-{
- //change the working dir
- ACE_OS::chdir (descriptor_dir);
-
- Deployment::PackageConfiguration_var pc;
- //parse the PCD to make sure that there are no package errors
- ACE_TRY
- {
- CIAO::Config_Handlers::STD_PC_Intf intf (pc_name);
-
- pc = intf.get_PC ();
+CIAO::RepositoryManager_Impl::findPackageByName (const char* name
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NoSuchName))
+{
+ Deployment::PackageConfiguration pc;
+ if (pc_table_.find (name, pc) == 0)
+ {
+ //Deployment::PackageConfiguration* dup_pc = pc;
+ //Deployment::DnC_Dump::dump (*pc);
+ //return dup_pc;
+ Deployment::PackageConfiguration_var pc_var = 0;
+ ACE_NEW_THROW_EX (pc_var,
+ Deployment::PackageConfiguration (pc),
+ CORBA::NO_MEMORY ());
+ //Deployment::DnC_Dump::dump (*pc_var);
+ return pc_var._retn ();
}
- ACE_CATCHALL
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) [RM::retrieve_PC_from_descriptors] Error parsing the PCD\n"));
-
- //change back the the old working dir
- ACE_OS::chdir (this->cwd_);
- ACE_THROW (Deployment::PackageError ());
- }
- ACE_ENDTRY;
- //able to parse the PC. So lets install the package in the repo
-
- //change back the the old working dir
- ACE_OS::chdir (this->cwd_);
-
- return pc._retn ();
-}
-
-
-//find out what the name of the PackageConfiguration file is
-void CIAO_RepositoryManagerDaemon_i::find_PC_name (char* package, ACE_CString& pcd_name)
-{
- pcd_name = ""; //empty the contents of the ACE_CString
-
- //create a doubly link list
- ACE_New_Allocator allocator;
- ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
-
- //get the list of files in the package and figure out the names of all necessary files
- if (!(ZIP_Wrapper::file_list_info (package, list)))
- return;
-
- size_t skip_len = ACE_OS::strlen ("descriptors") + 1;
-
- while (!list.is_empty ())
+ else
{
- ZIP_File_Info* inf = list.delete_head ();
-
- if (ACE_OS::strstr (inf->name_.c_str (), "descriptors"))
- if (ACE_OS::strstr (inf->name_.c_str (), ".pcd"))
- pcd_name = inf->name_.c_str () + skip_len;
-
- //deallocate the head of the filename list
- delete inf;
+ ACE_THROW_RETURN (Deployment::NoSuchName (), 0);
}
}
-
-//We are using Xercesc in the Config_Handlers and unfortunately its API only
-//takes a file in the local file system as an argument, thus need to
-//write out the contents of the deployent plan to a file
-//in the current directory. I use the thread id to guarrantee
-//lack of race conditions if multithreading is enabled
-
-int CIAO_RepositoryManagerDaemon_i::extract_descriptor_files (char* package, ACE_CString& pcd_name)
+Deployment::PackageConfiguration*
+CIAO::RepositoryManager_Impl::
+findPackageByUUID (const char*
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NoSuchName))
{
- //create a doubly link list
- ACE_New_Allocator allocator;
- ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
-
- //get the list of files in the package and figure out the names of all necessary files
- if (!(ZIP_Wrapper::file_list_info (package, list)))
- return 0;
-
- size_t skip_len = ACE_OS::strlen ("descriptors") + 1;
-
- while (!list.is_empty ())
- {
- ZIP_File_Info* inf = list.delete_head ();
- ACE_Message_Block* file = 0;
- if (ACE_OS::strstr (inf->name_.c_str (), "descriptors"))
- {
- if (ACE_OS::strstr (inf->name_.c_str (), ".pcd"))
- pcd_name = inf->name_.c_str () + skip_len;
-
- //extract the descriptor from the package
- ACE_NEW_RETURN (file, ACE_Message_Block (0,0), 0);
- if (!ZIP_Wrapper::get_file(const_cast<char*> (package),
- const_cast<char*> (inf->name_.c_str ()),
- *file))
- {
- ACE_ERROR ((LM_ERROR,
- "[RM::extract_descriptor_files] Unable to retrieve file!\n"));
- //release the message block chain
- file->release ();
- return 0;
- }
-
-
- //write the file to disk
- if(!RM_Helper::write_to_disk (inf->name_.c_str () + skip_len, *file))
- {
- ACE_ERROR ((LM_ERROR,
- "[RM::extract_descriptor_files] Unable to write out descriptor to disk!\n"));
- //release the message block chain
- file->release ();
- return 0;
- }
-
- //release the message block chain
- file->release ();
- }
-
- //deallocate the head of the filename list
- delete inf;
- }
-
- return 1;
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
}
-int CIAO_RepositoryManagerDaemon_i::remove_descriptor_files (char* package)
+CORBA::StringSeq*
+CIAO::RepositoryManager_Impl::
+findNamesByType (const char*
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
{
- int return_code = 1;
-
- //create a doubly link list
- ACE_New_Allocator allocator;
- ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
-
- //get the list of files in the package and figure out the names of all necessary files
- if (!(ZIP_Wrapper::file_list_info (package, list)))
- return 0;
-
- size_t skip_len = ACE_OS::strlen ("descriptors") + 1;
-
- while (!list.is_empty ())
- {
- ZIP_File_Info* inf = list.delete_head ();
- if (ACE_OS::strstr (inf->name_.c_str (), "descriptors"))
- {
- //delete disk
- if(remove (inf->name_.c_str () + skip_len))
- {
- ACE_ERROR ((LM_ERROR,
- "[RM::remove_descriptor_files] Unable to write out descriptor to disk!\n"));
- return_code = 0;
- }
- }
- //deallocate the head of the filename list
- delete inf;
- }
-
- return return_code;
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
}
-//function to remove the files extracted from the package upon istallation
-//It reads the names of the files from the package. They correspond to the
-//names on disk. It deletes each file, then it deletes the directories that
-//contain them.
-//return 1 on success
-// 0 on error
-
-int CIAO_RepositoryManagerDaemon_i::remove_extracted_package
-(const char* package_path,
- const char* extraction_location)
+CORBA::StringSeq*
+CIAO::RepositoryManager_Impl::
+getAllNames (ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
{
- //change the working dir
- if (ACE_OS::chdir (extraction_location) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "[RM::remove_extracted_package] Unable to chdir to doomed directory!\n"),
- 0);
-
- int return_code = 1;
-
- //create a doubly link list
- ACE_New_Allocator allocator;
- ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
-
- //get the list of files in the package and figure out the names of all necessary files
- if (!(ZIP_Wrapper::file_list_info (const_cast <char*> (package_path), list)))
- {
- //change back the the old working dir
- ACE_OS::chdir (this->cwd_);
- return 0;
- }
-
- while (!list.is_empty ())
- {
- ZIP_File_Info* inf = list.delete_head ();
-
- //delete file from disk
- if(remove (inf->name_.c_str ()))
- {
- ACE_ERROR ((LM_ERROR,
- "[RM::remove_extracted files] Unable to delete %s!\n", inf->name_.c_str ()));
- return_code = 0;
- }
-
- //deallocate the head of the filename list
- delete inf;
- }
-
- //now remove the descriptors and implementations directories.
- ACE_OS::rmdir ("descriptors");
- ACE_OS::rmdir ("implementations");
-
- //now go one directory up and delete the extraction directory
- ACE_OS::chdir (this->install_root_.c_str ());
- ACE_OS::rmdir (extraction_location);
-
- //change back the the old working dir
- ACE_OS::chdir (this->cwd_);
-
- return return_code;
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
}
-#if defined ASSEMBLY_INTERFACE_SUPPORT
-
-//function to extract the type of the component from
-//the PackageConfiguration and update the interface map
-//returns 1 on success
-// 0 on error
-
-int CIAO_RepositoryManagerDaemon_i::add_type (Deployment::PackageConfiguration& pc,
- const char* name)
+CORBA::StringSeq*
+CIAO::RepositoryManager_Impl::
+getAllTypes (ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
{
- const char* ifaceUUID = 0;
- //
- if (pc.basePackage.length () > 0)
- {
- ifaceUUID = pc.basePackage[0]
- .implementation[0]
- .referencedImplementation
- .implements
- .specificType.in ();
- //.UUID.in ();
-
- ACE_DEBUG ((LM_DEBUG, "storing under: %s\n", ifaceUUID));
-
- CIEntry *entry = 0;
-
- //create an entry for this interface type
- if (this->types_.bind (ACE_CString (ifaceUUID),
- ACE_CString (name)/*pc.label.in ()*/ ) != 0)
- return 0;
-
- }
- else //ComponentPackageReference
- {
- //not implemented yet
- return 0;
- }
-
- return 1;
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
}
-
-
-//function to remove the interface type of the component
-//being removed from the interface map
-//returns 1 on success
-// 0 on error
-
-int CIAO_RepositoryManagerDaemon_i::remove_type (Deployment::PackageConfiguration& pc,
- const char* name)
+void
+CIAO::RepositoryManager_Impl::
+deletePackage (const char*
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NoSuchName))
{
- const char* ifaceUUID = 0;
- //
- if (pc.basePackage.length () > 0)
- {
- ifaceUUID = pc.basePackage[0]
- .implementation[0]
- .referencedImplementation
- .implements
- .specificType.in ();
- //.UUID.in ();
-
- ACE_DEBUG ((LM_DEBUG, "removing by: %s\n", ifaceUUID));
-
- CIEntry *entry = 0;
-
- //find the type in the interface map
- if (this->types_.find (ACE_CString (ifaceUUID), entry) == 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Type to be removed: ",
- "KEY: %s", entry->ext_id_.c_str (),
- " VAL: %s\n", entry->int_id_.c_str ()));
- }
- else
- ACE_DEBUG ((LM_DEBUG, "Could not find type!\n"));
-
- ACE_DEBUG ((LM_DEBUG, "Attempting to remove: %s\n", ifaceUUID));
- CIBucket_Iterator iter (this->types_, ACE_CString (ifaceUUID));
-
- CIBucket_Iterator end (this->types_,
- ACE_CString (ifaceUUID),
- 1 /*tail = true*/);
- for (;
- iter != end;
- ++iter)
- {
- CIEntry& element = *iter;
-
- if(!(strcmp (element.int_id_.c_str (), name /*pc.label.in ()*/)))
- {
- //clashes are not allowed so this must be the ONLY
- //element that we are interested in
-
- //lets remove this element
- this->types_.unbind (&element);
- return 1;
- }
- }
-
- }
- else //ComponentPackageReference
- {
- //not implemented yet
- return 0;
- }
-
- return 1;
+ ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-#endif //for has ASSEMBLY_INTERFACE_SUPPORT
-
-//function to dump the state of the RepositoryManager
-void CIAO_RepositoryManagerDaemon_i::dump (void)
+void
+CIAO::RepositoryManager_Impl::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
{
-#if defined (ACE_HAS_DUMP)
-
- ACE_DEBUG(LM_DEBUG, "NAMES:\n");
- this->names_.dump ();
- ACE_DEBUG(LM_DEBUG, "UUIDs:\n");
- this->uuids_.dump ();
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
- ACE_DEBUG (LM_DEBUG, "Component Interface Types:\n");
- this->types_.dump ();
-#endif
-
-#endif /* ACE_HAS_DUMP */
+ this->orb_->shutdown (1 ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.h b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.h
index 6538f254a9d..cfb9e4f715b 100644
--- a/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.h
+++ b/TAO/CIAO/DAnCE/RepositoryManager/RepositoryManager_Impl.h
@@ -1,294 +1,162 @@
-
-/* -*- C++ -*- */
-
-//======================================================================
-/**
+/*=======================================================================
+ *
* @file RepositoryManager_Impl.h
*
* $Id$
*
- * Description:
- * This file is the main implementation file for the RepositoryManager
- * in CIAO. We have used a number of techniques in order to increase
- * scalability of the RepoMan while still maintaining complience with
- * the D&C spec
+ * @brief This file contains implementation for
+ * Deployment::RepositoryManager interface.
*
- * @author Stoyan Paunov
- */
-//======================================================================
-
-#ifndef REPOSITORYMANAGERI_H_
-#define REPOSITORYMANAGERI_H_
-
-
-//-----------------------------NOTE---------------------------------
-//I need to disable all the code which has to do with interface
-//type information because we currently do not support assembly
-//interfaces which causes undesired behavior with respect to the
-//hash tables because the specificType field in assembly interfaces
-//is empty, so two unrelated intefaces appear to be related.
-
-//uncomment this line to turn on the code that relates to interface types
-//#define ASSEMBLY_INTERFACE_SUPPORT 1
-
-
-#include "RepositoryManagerDaemonS.h"
-
-#include "ace/Hash_Map_Manager.h" //for the ACE_Hash_Map_Manager
-#include "ace/Null_Mutex.h" //for ACE_Null_Mutex
-#include "ace/RW_Mutex.h" //for ACE_RW_Mutex
-#include "ace/OS_NS_string.h" //for ACE_CString
-#include "ace/SString.h"
+ * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ *
+ *======================================================================*/
+
+#ifndef REPOSITORYMANAGER_IMPL_H
+#define REPOSITORYMANAGER_IMPL_H
+#include /**/ "ace/pre.h"
+
+#include "RepositoryManagerS.h"
+#include "ace/Get_Opt.h"
+#include "RepositoryManager_Impl.h"
+#include "ace/Synch.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "tao/Exception.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/parsers/XercesDOMParser.hpp>
+#include <xercesc/parsers/AbstractDOMParser.hpp>
+#include "CIAO/DAnCE/Old_Config_Handlers/Config_Handler_export.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/Domain_Handler.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/PC_Handler.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/Plan_Handler.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/CompImplDesc_Handler.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/DnC_Dump.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/Utils.h"
+#include "CIAO/DAnCE/Old_Config_Handlers/Config_Error_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMAttr;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMNodeList;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+using xercesc::XercesDOMParser;
+using xercesc::AbstractDOMParser;
#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
+# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-namespace
+/**
+ *
+ * @class ReposityManager_Impl
+ *
+ * @brief This class implements the RepositoryManager. RepositoryManager
+ * assists the execution process after the planning stage.
+ *
+ */
+namespace CIAO
{
- /// Directory where the packages will be stored locally
- const static char* INSTALL_PATH = "RepositoryDir";
-
- const static size_t TEMP_LEN = 512;
-
- const static char* PC_EXTENSION = ".epc";
+ class RepositoryManager_Impl
+ : public virtual POA_CIAO::RepositoryManagerDaemon
+ {
+
+ public:
+
+ RepositoryManager_Impl ();
+
+ /// Constructor.
+ RepositoryManager_Impl (CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa
+ ACE_ENV_ARG_DECL);
+
+ virtual void installPackage (const char* installation_name,
+ const char* location
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NameExists,
+ Deployment::PackageError));
+
+ virtual void createPackage (const char* installation_name,
+ const Deployment::PackageConfiguration& pc,
+ const char* base_location,
+ CORBA::Boolean replace
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NameExists,
+ Deployment::PackageError));
+
+ virtual Deployment::PackageConfiguration*
+ findPackageByName (const char* name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NoSuchName));
+
+ virtual Deployment::PackageConfiguration*
+ findPackageByUUID (const char* name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NoSuchName));
+
+ virtual CORBA::StringSeq*
+ findNamesByType (const char* type
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual CORBA::StringSeq*
+ getAllNames (ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual CORBA::StringSeq*
+ getAllTypes (ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual void
+ deletePackage (const char* name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::NoSuchName));
+
+ virtual void
+ shutdown (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ protected:
+
+ ~RepositoryManager_Impl ();
+ // destructor
+
+ typedef ACE_Hash_Map_Manager_Ex<const char *,
+ Deployment::PackageConfiguration,
+ ACE_Hash<const char *>, ACE_Equal_To<const char *>,
+ TAO_SYNCH_MUTEX> pc_table;
+
+ typedef pc_table::iterator pc_iterator;
+ // Cached ORB pointer
+ CORBA::ORB_var orb_;
+
+ // Cached POA pointer
+ PortableServer::POA_var poa_;
+
+ pc_table pc_table_;
+ };
}
-class CIAO_RepositoryManagerDaemon_i :
- public virtual POA_CIAO::RepositoryManagerDaemon
-{
-public:
- /// Constructor
- CIAO_RepositoryManagerDaemon_i (CORBA::ORB_ptr the_orb,
- const char* server = "http://localhost:5432/");
-
- /// Destructor
- virtual ~CIAO_RepositoryManagerDaemon_i (void);
-
- virtual
- void shutdown (
-
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual
- void installPackage (
- const char * installationName,
- const char * location
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NameExists,
- ::Deployment::PackageError
- ));
-
- virtual
- void createPackage (
- const char * installationName,
- const ::Deployment::PackageConfiguration & package,
- const char * baseLocation,
- ::CORBA::Boolean replace
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NameExists,
- ::Deployment::PackageError
- ));
-
- virtual
- ::Deployment::PackageConfiguration * findPackageByName (
- const char * name
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NoSuchName
- ));
-
- virtual
- ::Deployment::PackageConfiguration * findPackageByUUID (
- const char * UUID
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NoSuchName
- ));
-
- virtual
- ::CORBA::StringSeq * findNamesByType (
- const char * type
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual
- ::CORBA::StringSeq * getAllNames (
-
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual
- ::CORBA::StringSeq * getAllTypes (
-
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual
- void deletePackage (
- const char * installationName
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- ::Deployment::NoSuchName
- ));
-
- protected:
-
- /// Function to parse and return the PackageConfiguration from a specified
- /// package
- Deployment::PackageConfiguration* retrieve_PC_from_package (char* package);
-
- /// Find out what the name of the PackageConfiguration file is
- void find_PC_name (char* package, ACE_CString& pcd_name);
-
- /// Function to parse and return the PackageConfiguration from the already
- /// extracted descriptor files
- Deployment::PackageConfiguration* retrieve_PC_from_descriptors (const char* pc_name,
- const char* descriptor_dir);
-
-
- /// Function to retrieve a file via HTTP
- /// stores the file in the passed preallocated ACE_Message_Block
- /// @retval 1 success
- /// @retval 0 error
-
- int HTTP_Get (const char* URL, ACE_Message_Block &mb);
-
- /// Function to extract all necessary files for parsing the
- /// PackageConfiguration descriptor and populating the idl struct.
- /// @retval 1 success
- /// @retval 0 error
- ///
- /// @note ACE_CString& pcd_name is an out parameter
-
- int extract_descriptor_files (char* package,
- ACE_CString& pcd_name);
-
-
- ///function to remove the files extracted for parsing the PackageConfiguration
- ///descriptor and populating the idl struct. It reads the names of the files
- ///from the package. They correspond to the names on disk.
- ///return 1 on success
- /// 0 on error
-
- int remove_descriptor_files (char* package);
-
-
- ///function to remove the files extracted from the package upon istallation
- ///It reads the names of the files from the package. They correspond to the
- ///names on disk. It deletes each file, then it deletes the directories that
- ///contain them.
- ///NOTE: extraction location is path/*archive_name*/
- ///returns 1 on success
- /// 0 on error
-
- int remove_extracted_package (const char* package_path, const char* extraction_location);
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
- ///function to extract the type of the component from
- ///the PackageConfiguration and update the interface map
- ///returns 1 on success
- /// 0 on error
-
- int add_type (::Deployment::PackageConfiguration& pc,
- const char* name);
-
- ///function to remove the interface type of the component
- ///being removed from the interface map
- ///returns 1 on success
- /// 0 on error
-
- int remove_type (::Deployment::PackageConfiguration& pc,
- const char* name);
-
-#endif
-
- ///function to dump the state of the RepositoryManager
- void dump (void);
-
- private:
- /// Cached information about the installed PackageConfigurations
- /// A separate map for the installation names and their UUID's
- /// Key: PackageConfiguration name or its UUID (CString type)
- /// Value: The location of the local copy of the package
-
- ///Based on the synchronization needed we can parametrize this with either
- ///ACE_Null_Mutex or ACE_RW_Mutex
-
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- ACE_CString,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_RW_Mutex> PCMap;
-
-
- typedef PCMap::iterator PCMap_Iterator;
- typedef ACE_Hash_Map_Entry <ACE_CString,ACE_CString> PCEntry;
-
-
- /// Cached information about the installed Component Interfaces
- /// A map which associates Component Interface UUIDs with the
- /// names of packages which implement this component type
- /// Key: Component Interface UUID
- /// Value: linked list of the names of installed packages which
- /// implement this component type
-
- ///Based on the synchronization needed we can parametrize this with either
- ///ACE_Null_Mutex or ACE_RW_Mutex
-
- typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
- ACE_CString,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_RW_Mutex> CIMap;
-
-
- typedef CIMap::iterator CIMap_Iterator;
- typedef ACE_Hash_Map_Entry <ACE_CString,ACE_CString> CIEntry;
- typedef ACE_Hash_Map_Bucket_Iterator<ACE_CString,
- ACE_CString,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_RW_Mutex> CIBucket_Iterator;
-
- //a hash map that associates the names of
- //PackageConfigurations with their location
- PCMap names_;
-
- /// a hash map that associates the UUIDs of
- /// PackageConfigurations with their location
- PCMap uuids_;
-
-#if defined ASSEMBLY_INTERFACE_SUPPORT
- //a hash map which associates Component Interface
- //UUIDs with their implementations
- CIMap types_;
-#endif
-
- //the ORB
- CORBA::ORB_var the_orb_;
-
- char cwd_ [TEMP_LEN]; //will hold the current working directory
- ACE_CString install_root_; //full path for the install directory
- ACE_CString HTTP_server_; //location of the server
-
-};
-
-#endif /* REPOSITORYMANAGER_H_ */
-
+#include /**/ "ace/post.h"
+#endif /* REPOSITORYMANAGER_IMPL_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager.cpp b/TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager.cpp
new file mode 100644
index 00000000000..b04f594cc91
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager.cpp
@@ -0,0 +1,305 @@
+// $Id$
+
+#include "RepositoryManager_Impl.h"
+#include "Update_Plan.h"
+#include "ExecutionManager/ExecutionManagerC.h"
+#include "Config_Handlers/DnC_Dump.h"
+#include "NodeManager/NodeManagerC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/streams.h"
+#include "ace/Auto_Ptr.h"
+using namespace std;
+
+const char * exec_ior = "file://exec_mgr.ior";
+const char * node_daemon_ior = 0;
+
+static void
+usage (const ACE_TCHAR* program)
+{
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("Usage: %s -p <URI> -d <URI> -k <EX_IOR> \
+ -t <NODE_MANAGER_IOR> \n")
+ ACE_TEXT (" <URI>: URI identifying the package\n"),
+ program));
+}
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ // Initialize orb
+ CORBA::ORB_var orb =
+ CORBA::ORB_init (argc,
+ argv,
+ ""
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (-1);
+
+ // top level package URL
+ char* package_url = 0;
+
+ // deployment plan URL
+ char* plan_url = 0;
+
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, ACE_TEXT ("p:d:k:t:"));
+ int c;
+
+ while ((c = get_opt ()) != EOF)
+ {
+ switch (c)
+ {
+ case 'p':
+ package_url = get_opt.opt_arg ();
+ break;
+ case 'd':
+ plan_url = get_opt.opt_arg ();
+ break;
+ case 'k':
+ exec_ior = get_opt.opt_arg ();
+ break;
+ case 't':
+ node_daemon_ior = get_opt.opt_arg ();
+ break;
+ default:
+ usage(argv[0]);
+ return -1;
+ }
+ }
+
+ if (package_url == 0) {
+ usage(argv[0]);
+ return -1;
+ }
+
+ if (plan_url == 0) {
+ usage(argv[0]);
+ return -1;
+ }
+
+ try
+ {
+ xercesc::XMLPlatformUtils::Initialize();
+ }
+
+ catch (const XMLException& xml_e)
+ {
+ char* message = XMLString::transcode (xml_e.getMessage());
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_DEBUG ((LM_DEBUG, "Error during initialization : %s\n", message));
+ return 1;
+ }
+ try
+ {
+ // get a reference to the parser.
+ auto_ptr<DOMBuilder> plan_parser (
+ CIAO::Config_Handler::Utils::create_parser ()
+ );
+
+ CIAO::Config_Handler::Config_Error_Handler handler;
+ plan_parser->setErrorHandler(&handler);
+
+ auto_ptr<DOMBuilder> tpd_parser (
+ CIAO::Config_Handler::Utils::create_parser ()
+ );
+
+ CIAO::Config_Handler::Config_Error_Handler tpd_handler;
+ tpd_parser->setErrorHandler(&tpd_handler);
+
+ // use the parser to parse the deployment plan URL and create
+ // a DOM document.
+ DOMDocument* plan_doc = plan_parser->parseURI (plan_url);
+
+ if (handler.getErrors())
+ {
+ return 1;
+ }
+
+ //DOMDocument* tpd_doc = tpd_parser->parseURI (package_url);
+
+ //ACE_UNUSED_ARG (tpd_doc);
+
+ if (tpd_handler.getErrors())
+ {
+ return 1;
+ }
+
+ if (plan_doc == NULL)
+ {
+ ACE_DEBUG ((LM_DEBUG, "Null DOM Document obtained, \
+ May be the URL is wrong!!\n"));
+ throw CIAO::Null_Dom_Document ();
+ }
+
+ // free up DOMBuilder. DOMBuilder also deletes the DOMDocument memory.
+ //auto_ptr<DOMBuilder> cleanup_parser (parser);
+
+ // call the Deployment Plan handler to parse the XML descriptor.
+ CIAO::Config_Handler::Plan_Handler plan_handler (
+ plan_doc,
+ DOMNodeFilter::SHOW_ELEMENT | DOMNodeFilter::SHOW_TEXT
+ );
+
+ Deployment::DeploymentPlan plan;
+ plan_handler.process_plan (plan);
+
+ // call the PackageConfiguration handler to parse the XML descriptor.
+ Deployment::PackageConfiguration* pc;
+
+ CIAO::RepositoryManager_Impl *rep_impl = 0;
+ ACE_NEW_RETURN (rep_impl,
+ CIAO::RepositoryManager_Impl (),
+ -1);
+ PortableServer::ServantBase_var owner_transfer (rep_impl);
+
+ rep_impl->installPackage ("PC", package_url);
+ pc = rep_impl->findPackageByName ("PC");
+ //Deployment::DnC_Dump::dump (*pc);
+
+ CIAO::REF_MAP ref_map;
+ CIAO::REF_MAP primary_ref_map;
+
+ // traverse the PackageConfiguration IDL data structure and
+ // update the deployment plan IDL data structure.
+ CIAO::traverse_package (pc, plan, ref_map, primary_ref_map);
+
+ //Deployment::DnC_Dump::dump (plan);
+
+ // Pass the parsed plan to the Execution Manager to start the
+ // Deployment Process.
+
+ CORBA::Object_var obj = orb->string_to_object (exec_ior
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CIAO::ExecutionManagerDaemon_var exec_mgr =
+ CIAO::ExecutionManagerDaemon::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (exec_mgr.in ()))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Executor: nil Execution Manager reference, \
+ narrow failed\n"));
+ return 1;
+
+ }
+
+ CIAO::NodeManager_var node_mgr;
+ if (node_daemon_ior != 0)
+ {
+ CORBA::Object_var node_mgr_obj =
+ orb->string_to_object (node_daemon_ior
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ node_mgr =
+ CIAO::NodeManager::_narrow (node_mgr_obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (node_mgr.in ()))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Executor: nil Node Manager reference, \
+ narrow failed\n"));
+ return 1;
+ }
+ }
+
+ ACE_DEBUG ((LM_DEBUG, "Executor: Obtained Execution Manager ref \n"));
+ Deployment::DomainApplicationManager_var dapp_mgr =
+ exec_mgr->preparePlan (plan, 1);
+
+ if (CORBA::is_nil (dapp_mgr.in ()))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Executor:preparePlan call failed:nil \
+ DomainApplicationManager reference\n"));
+ return 1;
+ }
+ ACE_DEBUG ((LM_DEBUG,
+ "Executor: Obtained DomainApplication Manager ref \n"));
+
+ // Create a dummy set of properties and start the
+ // Launching of applications
+ Deployment::Properties_var properties;
+ ACE_NEW_RETURN (properties,
+ Deployment::Properties,
+ 1);
+ ACE_DEBUG ((LM_DEBUG, "Executor: start Launch application....."));
+
+ // Do not start the Application immediately
+ int start = 0;
+ dapp_mgr->startLaunch (properties.in (), start);
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+
+ // Call finish Launch to complete the connections
+ ACE_DEBUG ((LM_DEBUG, "Executor: finish Launch application....."));
+ dapp_mgr->finishLaunch (start);
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+
+ // Call start to activate components
+ ACE_DEBUG ((LM_DEBUG, "Executor: start activating components..."));
+ dapp_mgr->start ();
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+
+ ACE_DEBUG ((LM_DEBUG, "Executor: Application Deployed successfully \n"));
+ ACE_DEBUG ((LM_DEBUG, "Press <Enter> to tear down application \n"));
+
+ char dummy [256];
+ cin.getline (dummy, 256);
+ // Tear down the assembly
+
+ ACE_DEBUG ((LM_DEBUG, "Executor: destroy the application....."));
+ dapp_mgr->destroyApplication ();
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+
+ ACE_DEBUG ((LM_DEBUG, "Executor: destroy the manager....."));
+ exec_mgr->destroyManager (dapp_mgr.in ());
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+
+ if (node_daemon_ior != 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "shutting down node manager \n"));
+ exec_mgr->shutdown (); // shut down execution manager.
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+
+ ACE_DEBUG ((LM_DEBUG, "shutting down node manager \n"));
+ node_mgr->shutdown (); // shut down the node manager.
+ ACE_DEBUG ((LM_DEBUG, "[success]\n"));
+ }
+
+ orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ catch (CORBA::Exception& ex)
+ {
+ ACE_PRINT_EXCEPTION (ex, "Caught CORBA Exception: ");
+ return -1;
+ }
+ catch (const DOMException& e)
+ {
+ const unsigned int maxChars = 2047;
+ XMLCh errText[maxChars + 1];
+
+ ACE_ERROR ((LM_ERROR, "\nException occured while parsing %s: \
+ \n",plan_url));
+ ACE_ERROR ((LM_ERROR, "DOMException code: %d\n ", e.code));
+ if (DOMImplementation::loadDOMExceptionMsg (e.code, errText, maxChars))
+ {
+ char* message = XMLString::transcode (errText);
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_ERROR ((LM_ERROR, "Message is: %s\n", message));
+ }
+ //ACE_PRINT_EXCEPTION ("Caught DOM Exception: ");
+ ACE_ERROR ((LM_ERROR, "Caught DOM exception\n"));
+ return -1;
+ }
+ catch (...)
+ {
+ ACE_ERROR ((LM_ERROR, "Caught unknown exception\n"));
+ return -1;
+ }
+
+ return 0;
+}
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager_conf.h b/TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager_conf.h
new file mode 100644
index 00000000000..c746f4d6a9c
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RepositoryManager/Repository_Manager_conf.h
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Repository_Manager_conf.h
+ *
+ * $Id$
+ *
+ * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ */
+//=============================================================================
+
+
+#ifndef REPOSITORY_MANAGER_CONF_H
+#define REPOSITORY_MANAGER_CONF_H
+
+#include /**/ "ace/pre.h"
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+
+#ifndef MAX_PACKAGES_DEF
+/// The number of packages that need to be configured
+const long MAX_PACKAGES = 15;
+#endif /* MAX_PACKAGES_DEF */
+
+#include /**/ "ace/post.h"
+
+#endif /* REPOSITORY_MANAGER_CONF_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.cpp b/TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.cpp
deleted file mode 100644
index 7eed65dafbb..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.cpp
+++ /dev/null
@@ -1,103 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "ace/ARGV.h"
-#include "URL_Parser.h"
-
-#include "ace/OS_NS_string.h"
-
-bool
-URL_Parser::parse_args (int argc, ACE_TCHAR *argv[])
-{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("rwu:h:p:f:d"));
-
- bool success = true;
- int c;
-
- while ((c = get_opt ()) != -1)
- switch (c)
- {
- case 'd':
- this->debug_ = 1;
- break;
- case 'u':
- success = parseURL (get_opt.opt_arg ());
- break;
- // Usage fallthrough.
- default:
- success = false;
- }
- if (this->hostname_ == 0 || this->filename_ == 0)
- success = false;
-
- return success;
-}
-
-URL_Parser::URL_Parser (void)
- : hostname_ ("127.0.0.1"),
- port_ (ACE_DEFAULT_HTTP_SERVER_PORT),
- filename_ (0),
- debug_ (0)
-{
-}
-
-bool URL_Parser::parseURL (char* url)
-{
- char* ptr;
- bool success = true;
-
- if (ptr = ACE_OS::strstr (url, "http://"))
- url += ACE_OS::strlen ("http://");
-
- if (url[0] == '/')
- {
- this->filename_ = ACE_OS::strdup (url);
- }
- else
- {
- if (ptr = ACE_OS::strstr (url, ":"))
- this->port_ = ACE_OS::atoi (ptr + 1);
- else
- ptr = ACE_OS::strstr (url, "/");
-
- if(!ptr)
- success = false;
- else
- {
- size_t host_len = ptr - url;
- ACE_NEW_RETURN (this->hostname_, char [host_len + 1], false);
- ACE_OS::strncpy (this->hostname_, url, host_len);
- this->hostname_ [host_len] = '\0';
-
- if (ptr = ACE_OS::strstr (ptr, "/"))
- {
- this->filename_ = ACE_OS::strdup(ptr);
- }
- else
- success = false;
- }
- }
- return success;
-}
-
-
-void URL_Parser::Error (void)
-{
- ACE_DEBUG ((LM_DEBUG, "./http_client -u http://hostname:port/filename [-d]\n"));
-
-}
-
-
- URL_Parser::~URL_Parser()
- {
- if(this->hostname_)
- {
- delete [] this->hostname_;
- this->hostname_ =0;
- }
- if (this->filename_)
- {
- ACE_OS::free (this->filename_);
- this->filename_ = 0;
- }
- }
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.h b/TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.h
deleted file mode 100644
index aaaeab4960c..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/URL_Parser.h
+++ /dev/null
@@ -1,68 +0,0 @@
-
-/* -*- C++ -*- */
-
-//=============================================================================
-/**
- * @file URL_Parser.h
- *
- * $Id$
- *
- * Parses a URL into its logical chunks
- *
- *
- * @author Stoyan Paunov
- */
-//=============================================================================
-
-
-#ifndef URL_PARSER_H
-#define URL_PARSER_H
-
-#include "ace/Get_Opt.h"
-#include "ace/ARGV.h"
-#include "ace/Singleton.h" //for ACE_Singleton
-#include "ace/Null_Mutex.h" //for ACE_Null_Mutex
-
-//forward declaration
-class URL_Parser;
-
-typedef ACE_Singleton <URL_Parser, ACE_Null_Mutex> TheURL_Parser;
-
-
-class URL_Parser
-{
-public:
-
- friend class ACE_Singleton <URL_Parser, ACE_Null_Mutex>;
-
- /// parses commandline arguments
- bool parse_args (int argc, ACE_TCHAR *argv[]);
-
- //return false on failure
- bool parseURL (char* url);
-
- void Error (void);
-
- /// Hostname to connect to
- ACE_TCHAR *hostname_;
-
- /// Port number to use
- u_short port_;
-
- /// Filename to upload/download
- ACE_TCHAR *filename_;
-
- /// turns on verbosity
- int debug_;
-
- //destructor
- ~URL_Parser (void);
-
-protected:
- URL_Parser (void);
- // protected constructor, singleton
-};
-
-
-
-#endif /* URL_PARSER_H */
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.cpp b/TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.cpp
new file mode 100644
index 00000000000..9f7b77a7799
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.cpp
@@ -0,0 +1,462 @@
+// $Id$
+
+#include "RepositoryManager_Impl.h"
+#include "Update_Plan.h"
+#include "DeploymentC.h"
+#include "ace/Hash_Map_Manager.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/streams.h"
+
+ACE_RCSID (DAnCE,
+ RepositoryManager,
+ "$Id$")
+
+using namespace Deployment;
+
+namespace CIAO
+{
+ void
+ traverse_package (PackageConfiguration* &pc,
+ DeploymentPlan &plan,
+ REF_MAP &ref_map,
+ REF_MAP &primary_ref_map)
+ {
+ // traverse the package configuration structure to get to the
+ // BasePackage which consists of assemblies.
+ //
+ REF_MAP plan_ref_map;
+ CORBA::ULong bp_len =
+ pc->basePackage.length ();
+
+ for (CORBA::ULong x = 0; x != bp_len; ++x)
+ {
+ CORBA::ULong impl_len =
+ pc->basePackage[x].implementation.length ();
+
+ for (CORBA::ULong y = 0;
+ y != impl_len;
+ ++y)
+ {
+ // traverse the .cpd file and get to the referenced .cid file
+ //
+ ComponentImplementationDescription cid =
+ pc->basePackage[x].implementation[y].referencedImplementation;
+ CORBA::ULong assembly_len = cid.assemblyImpl.length ();
+
+ for (CORBA::ULong z = 0;
+ z != assembly_len;
+ ++z)
+ {
+ // traverse the .cid file and get to each
+ // of the "assemblyImpl" tags.
+ //
+ ComponentAssemblyDescription assembly =
+ cid.assemblyImpl[z];
+ //
+ // traverse the individual assembly.
+ //
+ traverse_assembly (assembly, plan, ref_map, primary_ref_map,
+ plan_ref_map);
+ }
+ }
+ }
+ }
+
+ void
+ traverse_assembly (ComponentAssemblyDescription &assembly,
+ DeploymentPlan &plan,
+ REF_MAP &ref_map, REF_MAP &primary_ref_map,
+ REF_MAP &plan_ref_map)
+ {
+ // traverse the assembly (ComponentAssemblyDescription) and
+ // processes the instances and the connection within the assembly.
+ //
+ CORBA::ULong ins_len = assembly.instance.length ();
+ for (CORBA::ULong k = 0; k < ins_len; ++k)
+ {
+ SubcomponentInstantiationDescription ins =
+ assembly.instance[k];
+ const char* in_name = ins.name;
+
+ CORBA::ULong plan_ins_len =
+ plan.instance.length ();
+
+ for (CORBA::ULong l = 0; l < plan_ins_len; ++l)
+ {
+ const char* plan_name = plan.instance[l].name;
+ if (ACE_OS::strcmp (plan_name, in_name) == 0)
+ {
+ traverse_assembly_instance (ins, plan, l,
+ ref_map, primary_ref_map,
+ plan_ref_map);
+ }
+ }
+ }
+
+ CORBA::ULong assembly_conn_len =
+ assembly.connection.length ();
+
+ for (CORBA::ULong m = 0; m < assembly_conn_len; ++m)
+ {
+ AssemblyConnectionDescription
+ assembly_connection = assembly.connection[m];
+ traverse_assembly_connection (assembly,
+ assembly_connection,
+ plan);
+ }
+ }
+
+ void
+ traverse_assembly_connection (ComponentAssemblyDescription
+ &assembly,
+ AssemblyConnectionDescription
+ &assembly_connection,
+ DeploymentPlan &plan)
+ {
+ // traverse the assembly connection and get information about the
+ // portName and the instances at each end of the connection.
+ // Also traverse the InterfaceDescriptions for each of those instances
+ // and populate the portKind information.
+ //
+ CORBA::ULong con_length (plan.connection.length ());
+ plan.connection.length (con_length + 1);
+ CORBA::ULong iepe_len = assembly_connection.internalEndpoint.length ();
+ for (CORBA::ULong n = 0; n < iepe_len; ++n)
+ {
+ CORBA::ULong iep_len (plan.connection[con_length].
+ internalEndpoint.length ());
+ plan.connection[con_length].internalEndpoint
+ .length (iep_len + 1);
+ plan.connection[con_length].internalEndpoint
+ [iep_len].portName = assembly_connection.
+ internalEndpoint[n].portName;
+ CORBA::ULong ins_ref = assembly_connection.internalEndpoint[n].
+ instanceRef;
+ const char* ins_name = assembly.instance[ins_ref].name;
+ CORBA::ULong plan_ins_len = plan.instance.length ();
+ for (CORBA::ULong w = 0; w < plan_ins_len; ++w)
+ {
+ const char* pl_name = plan.instance[w].name;
+ if (ACE_OS::strcmp (pl_name, ins_name) == 0)
+ {
+ plan.connection[con_length].internalEndpoint
+ [iep_len].instanceRef = w;
+ break;
+ }
+ }
+ traverse_interface (assembly.instance[ins_ref],
+ plan.connection[con_length].
+ internalEndpoint[iep_len]);
+ }
+ }
+
+ void
+ traverse_interface (SubcomponentInstantiationDescription
+ &instance,
+ PlanSubcomponentPortEndpoint
+ &pspe)
+ {
+ // traverse the InterfaceDescription of the instance and get information
+ // about the portkind of the port.
+ //
+ CORBA::ULong pack_len = instance.package.length ();
+ for (CORBA::ULong m = 0; m < pack_len; ++m)
+ {
+ ComponentPackageDescription
+ package = instance.package[m];
+
+ ComponentInterfaceDescription
+ cid = package.realizes;
+
+ CORBA::ULong port_len = cid.port.length ();
+
+ for (CORBA::ULong n = 0; n < port_len; ++n)
+ {
+ const char* main_port_name = cid.port[n].name;
+ const char* port_name = pspe.portName;
+ if (ACE_OS::strcmp (main_port_name, port_name) == 0)
+ {
+ pspe.kind = cid.port[n].kind;
+ }
+ }
+ }
+ }
+
+ void
+ traverse_assembly_instance (
+ SubcomponentInstantiationDescription
+ &instance,
+ DeploymentPlan &plan, int l,
+ REF_MAP &ref_map, REF_MAP &primary_ref_map,
+ REF_MAP &plan_ref_map)
+ {
+ // Each instance has a package.
+ // Each package has an implementation and their correspoding artifacts.
+ // Traverse this information and populate the artifact and the
+ // implementation information within the DeploymentPlan.
+ //
+ ART_REF_MAP art_ref_map;
+
+ update_config_property (instance, plan.instance[l]);
+
+ CORBA::ULong pack_len = instance.package.length ();
+ for (CORBA::ULong m = 0; m < pack_len; ++m)
+ {
+ ComponentPackageDescription
+ package = instance.package[m];
+ CORBA::ULong pack_impl_len = package.implementation.length ();
+
+ for (CORBA::ULong n = 0; n < pack_impl_len; ++n)
+ {
+ PackagedComponentImplementation
+ impl = package.implementation[n];
+ CORBA::ULong impl_length (plan.implementation.length ());
+ plan.implementation.length (impl_length + 1);
+ plan.implementation[impl_length].name = plan.instance[l].name;
+ plan.instance[l].implementationRef = impl_length;
+ CORBA::ULong mono_impl_len =
+ impl.referencedImplementation.monolithicImpl.length ();
+
+ for (CORBA::ULong p = 0; p < mono_impl_len; ++p)
+ {
+ MonolithicImplementationDescription
+ mid = impl.referencedImplementation.monolithicImpl[p];
+
+ update_artifacts (mid, plan, plan.instance[l],
+ ref_map, primary_ref_map, art_ref_map,
+ plan_ref_map,
+ plan.implementation[impl_length]);
+ }
+ update_impl_config_property (impl, plan.implementation[impl_length],
+ plan.instance[l]);
+ }
+ }
+ }
+
+ void
+ update_artifacts (MonolithicImplementationDescription &mid,
+ DeploymentPlan &plan,
+ InstanceDeploymentDescription &instance,
+ REF_MAP &ref_map, REF_MAP &primary_ref_map,
+ ART_REF_MAP &art_ref_map,
+ REF_MAP &plan_ref_map,
+ MonolithicDeploymentDescription &mdd)
+ {
+ ref_map.unbind_all ();
+ primary_ref_map.unbind_all ();
+ art_ref_map.unbind_all ();
+ CORBA::ULong prim_art_len = mid.primaryArtifact.length ();
+ for (CORBA::ULong q = 0; q < prim_art_len; ++q)
+ {
+ ImplementationArtifactDescription
+ pack_iad = mid.primaryArtifact[q].referencedArtifact;
+ ACE_TString artifact_name = (const char*)mid.primaryArtifact[q].name;
+ int arti_len;
+ int plan_arti_len;
+ CORBA::ULong art_length (plan.artifact.length ());
+
+ if (ref_map.find (artifact_name, arti_len) != 0)
+ {
+ if (plan_ref_map.find (artifact_name, plan_arti_len) != 0)
+ {
+ plan.artifact.length (art_length + 1);
+ plan.artifact[art_length].name = mid.primaryArtifact[q].name;
+ plan.artifact[art_length].node = instance.node;
+ ref_map.bind (artifact_name, art_length);
+ plan_ref_map.bind (artifact_name, art_length);
+ primary_ref_map.bind (artifact_name, art_length);
+ CORBA::ULong art_ref_len (mdd.artifactRef.length ());
+ mdd.artifactRef.length (art_ref_len + 1);
+ mdd.artifactRef[art_ref_len] = art_length;
+ update_artifact_location (pack_iad,
+ plan.artifact[art_length]);
+ update_artifact_property (pack_iad,
+ plan.artifact[art_length]);
+ }
+ else
+ {
+ art_length = plan_arti_len;
+ ref_map.bind (artifact_name, art_length);
+ primary_ref_map.bind (artifact_name, art_length);
+ CORBA::ULong art_ref_len (mdd.artifactRef.length ());
+ mdd.artifactRef.length (art_ref_len + 1);
+ mdd.artifactRef[art_ref_len] = art_length;
+ update_artifact_location (pack_iad,
+ plan.artifact[art_length]);
+ update_artifact_property (pack_iad,
+ plan.artifact[art_length]);
+ }
+ }
+ update_common_artifact_and_art_ref (pack_iad,
+ primary_ref_map, ref_map,
+ art_ref_map, plan_ref_map, mdd,
+ plan, instance);
+ }
+ }
+
+ void
+ update_common_artifact_and_art_ref (
+ ImplementationArtifactDescription
+ &pack_iad,
+ REF_MAP &primary_ref_map,
+ REF_MAP &ref_map,
+ ART_REF_MAP &art_ref_map,
+ REF_MAP &plan_ref_map,
+ MonolithicDeploymentDescription &mid,
+ DeploymentPlan &plan,
+ InstanceDeploymentDescription
+ &instance)
+ {
+ int plan_arti_len;
+ int arti_len;
+ CORBA::ULong new_art_length;
+ CORBA::ULong deps_len = pack_iad.dependsOn.length ();
+ for (CORBA::ULong g = 0; g < deps_len; ++g)
+ {
+ ACE_TString dep_name =
+ (const char*)pack_iad.dependsOn[g].name;
+
+ if (ref_map.find (dep_name, arti_len) == 0)
+ {
+ if (primary_ref_map.find (dep_name, arti_len) != 0)
+ {
+ if (art_ref_map.find (arti_len, arti_len) != 0)
+ {
+ update_impl_art_ref (mid, arti_len);
+ art_ref_map.bind (arti_len, arti_len);
+ }
+ }
+ }
+ else
+ {
+ ImplementationArtifactDescription
+ depends_iad = pack_iad.dependsOn[g].
+ referencedArtifact;
+ if (plan_ref_map.find (dep_name, plan_arti_len) != 0)
+ {
+ new_art_length = plan.artifact.length ();
+ plan.artifact.length (new_art_length + 1);
+ plan.artifact[new_art_length].name =
+ pack_iad.dependsOn[g].name;
+ plan.artifact[new_art_length].node = instance.node;
+ update_artifact_location (depends_iad,
+ plan.artifact
+ [new_art_length]);
+ ref_map.bind (
+ (const char*)plan.artifact[new_art_length].name,
+ new_art_length);
+ plan_ref_map.bind (
+ (const char*)plan.artifact[new_art_length].name,
+ new_art_length);
+ update_impl_art_ref (mid, new_art_length);
+ art_ref_map.bind (new_art_length, new_art_length);
+ }
+ else
+ {
+ new_art_length = plan_arti_len;
+ ref_map.bind (
+ (const char*)plan.artifact[new_art_length].name,
+ new_art_length);
+ update_impl_art_ref (mid, new_art_length);
+ art_ref_map.bind (new_art_length, new_art_length);
+ }
+ }
+ }
+ }
+
+ void
+ update_config_property (SubcomponentInstantiationDescription &sub_instance,
+ InstanceDeploymentDescription &instance)
+ {
+ CORBA::ULong pro_len =
+ sub_instance.configProperty.length ();
+
+ for (CORBA::ULong x = 0; x < pro_len; ++x)
+ {
+ CORBA::ULong ins_pro_len (instance.configProperty. length ());
+ instance.configProperty.length (ins_pro_len + 1);
+ instance.configProperty[ins_pro_len]
+ = sub_instance.configProperty[x];
+ }
+ }
+
+ void
+ update_impl_config_property (PackagedComponentImplementation
+ &impl,
+ MonolithicDeploymentDescription
+ &mid,
+
+ InstanceDeploymentDescription
+ &instance)
+ {
+ int update_flag;
+ CORBA::ULong pro_len =
+ impl.referencedImplementation.configProperty.length ();
+
+ for (CORBA::ULong x = 0; x < pro_len; ++x)
+ {
+ update_flag = 1;
+ CORBA::ULong impl_pro_len (mid.execParameter.length ());
+ mid.execParameter.length (impl_pro_len + 1);
+ mid.execParameter[impl_pro_len]
+ = impl.referencedImplementation.configProperty[x];
+ const char* property_name =
+ impl.referencedImplementation.configProperty[x].name;
+ CORBA::ULong ins_pro_len (instance.configProperty. length ());
+ for (CORBA::ULong y = 0; y < ins_pro_len; ++y)
+ {
+ const char* ins_pro_name = instance.configProperty[y].name;
+ if (ACE_OS::strcmp (ins_pro_name, property_name) == 0)
+ {
+ update_flag = 0;
+ break;
+ }
+ }
+ if (update_flag == 1)
+ {
+ instance.configProperty.length (ins_pro_len + 1);
+ instance.configProperty[ins_pro_len]
+ = impl.referencedImplementation.configProperty[x];
+ }
+ }
+ }
+
+ void
+ update_impl_art_ref (MonolithicDeploymentDescription &mid,
+ int arti_len)
+ {
+ CORBA::ULong new_art_ref_len (mid.artifactRef.length ());
+ mid.artifactRef.length (new_art_ref_len + 1);
+ mid.artifactRef[new_art_ref_len] = arti_len;
+ }
+
+ void
+ update_artifact_location (ImplementationArtifactDescription
+ &pack_iad,
+ ArtifactDeploymentDescription
+ &plan_artifact)
+ {
+ CORBA::ULong loc_len = pack_iad.location.length ();
+ for (CORBA::ULong e = 0; e < loc_len; ++e)
+ {
+ CORBA::ULong art_loc_len (plan_artifact.location.length ());
+ plan_artifact.location.length (art_loc_len + 1);
+ plan_artifact.location[art_loc_len] = pack_iad.location[e];
+ }
+ }
+
+ void
+ update_artifact_property (ImplementationArtifactDescription
+ &pack_iad,
+ ArtifactDeploymentDescription
+ &plan_artifact)
+ {
+ CORBA::ULong para_len = pack_iad.execParameter.length ();
+ for (CORBA::ULong f = 0; f < para_len; ++f)
+ {
+ CORBA::ULong art_pro_len (plan_artifact.execParameter.length ());
+ plan_artifact.execParameter.length (art_pro_len + 1);
+ plan_artifact.execParameter[art_pro_len] = pack_iad.execParameter[f];
+ }
+ }
+}
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.h b/TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.h
new file mode 100644
index 00000000000..9c3125092fd
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RepositoryManager/Update_Plan.h
@@ -0,0 +1,123 @@
+/*=======================================================================
+ *
+ * @file Update_Plan.h
+ *
+ * $Id$
+ *
+ * @brief This file contains declarations for helper functions
+ * used in updating the deployment plan data structure from
+ * PackageConfiguration data structure.
+ *
+ * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
+ *
+ *======================================================================*/
+
+#ifndef CIAO_REPOSITORY_MANAGER_UPDATE_PLAN_H
+#define CIAO_REPOSITORY_MANAGER_UPDATE_PLAN_H
+#include /**/ "ace/pre.h"
+
+#include "ace/Hash_Map_Manager.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+
+namespace Deployment
+{
+ struct SubcomponentInstantiationDescription;
+ struct DeploymentPlan;
+ struct ComponentAssemblyDescription;
+ struct SubcomponentInstantiationDescription;
+ struct AssemblyConnectionDescription;
+}
+
+namespace CIAO
+{
+ class Null_Dom_Document { };
+ // exception thrown when we have a null dom document.
+
+ typedef ACE_Hash_Map_Manager<ACE_TString, int, ACE_Null_Mutex> REF_MAP;
+ typedef ACE_Hash_Map_Manager<int, int, ACE_Null_Mutex> ART_REF_MAP;
+
+ void
+ traverse_assembly_instance (Deployment::
+ SubcomponentInstantiationDescription &instance,
+ Deployment::DeploymentPlan &plan,
+ int l,
+ REF_MAP &ref_map,
+ REF_MAP &primary_ref_map,
+ REF_MAP &plan_ref_map);
+
+ void traverse_assembly (Deployment::ComponentAssemblyDescription &assembly,
+ Deployment::DeploymentPlan &plan,
+ REF_MAP &ref_map, REF_MAP &primary_ref_map,
+ REF_MAP &plan_ref_map);
+
+ void traverse_interface (Deployment::SubcomponentInstantiationDescription
+ &instance,
+ Deployment::PlanSubcomponentPortEndpoint
+ &pspe);
+
+ void traverse_assembly_connection (Deployment::ComponentAssemblyDescription
+ &assembly,
+ Deployment::AssemblyConnectionDescription
+ &assembly_connection,
+ Deployment::DeploymentPlan &plan);
+
+ void traverse_package (Deployment::PackageConfiguration* &pc,
+ Deployment::DeploymentPlan &plan,
+ REF_MAP &ref_map, REF_MAP &primary_ref_map);
+
+ void update_artifacts (Deployment::MonolithicImplementationDescription &mid,
+ Deployment::DeploymentPlan &plan,
+ Deployment::InstanceDeploymentDescription &instance,
+ REF_MAP &ref_map, REF_MAP &primary_ref_map,
+ ART_REF_MAP &art_ref_map,
+ REF_MAP &plan_ref_map,
+ Deployment::MonolithicDeploymentDescription &mdd);
+
+ void update_artifact_location (Deployment::ImplementationArtifactDescription
+ &pack_iad,
+ Deployment::ArtifactDeploymentDescription
+ &plan_artifact);
+
+ void update_artifact_property (Deployment::ImplementationArtifactDescription
+ &pack_iad,
+ Deployment::ArtifactDeploymentDescription
+ &plan_artifact);
+
+ void update_impl_art_ref (Deployment::MonolithicDeploymentDescription
+ &mid, int art_len);
+
+ void update_impl_config_property (Deployment::
+ PackagedComponentImplementation &impl,
+ Deployment::
+ MonolithicDeploymentDescription &mid,
+ Deployment::
+ InstanceDeploymentDescription
+ &instance);
+
+ void update_config_property (Deployment::
+ SubcomponentInstantiationDescription
+ &sub_instance,
+ Deployment::
+ InstanceDeploymentDescription
+ &instance);
+
+ void update_common_artifact_and_art_ref (Deployment::
+ ImplementationArtifactDescription &pack_iad,
+ REF_MAP &primary_ref_map,
+ REF_MAP &ref_map,
+ ART_REF_MAP &art_ref_map,
+ REF_MAP &plan_ref_map,
+ Deployment::MonolithicDeploymentDescription
+ &mid,
+ Deployment::DeploymentPlan &plan,
+ Deployment::
+ InstanceDeploymentDescription
+ &instance);
+}
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_REPOSITORY_MANAGER_UPDATE_PLAN_H*/
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.cpp b/TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.cpp
deleted file mode 100644
index f910374f71f..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.cpp
+++ /dev/null
@@ -1,299 +0,0 @@
-
-//=======================================================================
-/**
- * @file ZIP_Wrapper.cpp
- *
- * $Id$
- *
- * Purpose: implementing the ZIP_Wrapper class
- *
- * @author Stoyan Paunov
- */
-//=======================================================================
-
-
-#include "ace/Containers_T.h" //for ACE_Double_Linked_List
-#include "ace/Message_Block.h" //for ACE_Message_Block
-
-#include "ace/OS_NS_fcntl.h" //for open
-#include "ace/OS_NS_unistd.h" //for close
-#include "ace/OS_NS_string.h" //for strncpy
-#include "ace/SString.h" //for ACE_CString
-#include "ace/OS_NS_sys_stat.h" //for stat
-#include "ace/OS_NS_sys_stat.h" //for filesize and mkdir
-#include "ace/OS_Memory.h" //for ACE_NEW* macros
-
-#include <string>
-#include <memory> //for auto_ptr
-
-/////////////////////////////////////////////////////////////////////////////
-//NOTE: some #defines problems with zzip & ACE - put these 2 lines on top!!!!
-/////////////////////////////////////////////////////////////////////////////
-#include "zzip/zzip.h" //for ZZIP
-#include "ZIP_Wrapper.h"
-
-
-//ZIP_File_Info constructor
-ZIP_File_Info::ZIP_File_Info (char* name, size_t size)
- : name_ (name),
- size_ (size),
- next_ (0),
- prev_ (0)
-{
-}
-
-//ZIP_File_Info default constructor
-ZIP_File_Info::ZIP_File_Info ()
- : name_ (""),
- size_ (0),
- next_ (0),
- prev_ (0)
-{
-}
-
-
-//get a list of the files in the archive
-int ZIP_Wrapper::file_list_info (char* zip_name, ACE_Double_Linked_List<ZIP_File_Info> &list)
-{
- size_t num = 0; //number of files in archive
- ZZIP_DIR * dir = 0; //pointer to a zip archive
- ZZIP_DIRENT * dir_entry = 0; //pointer to a file within the archive
-
- //open the zip archive
- dir = zzip_opendir(zip_name);
-
- if (!dir)
- return 0;
-
- //read each dir entry and show one line of info per file
- while ((dir_entry = zzip_readdir (dir)))
- {
- //retrieve the name of the file
- char* name = dir_entry->d_name;
-
- //remove the subpath part if any NOTE: Lunux style assumed, need to check
- //while(char* next = strstr(name, "/"))
- // name = next + 1;
-
- ZIP_File_Info* next;
- ACE_NEW_RETURN (next, ZIP_File_Info (name, dir_entry->st_size), -1);
-
- list.insert_tail (next);
- num++;
- }
-
- zzip_closedir(dir);
- return num;
-}
-
-// Get file and store it into an ACE_Message_Block
-bool ZIP_Wrapper::get_file (char* accessor, ACE_Message_Block &file)
-{
- bool return_code = true;
-
- ZZIP_FILE* zip_file = zzip_open (accessor, O_RDONLY| O_BINARY);
-
- if (!zip_file)
- return false;
-
- int num_read = 0;
- file.size(BUFSIZ);
- ACE_Message_Block* head = &file;
-
- // read chunks of 16 bytes into buf and print them to stdout
- while (0 < (num_read = zzip_read(zip_file, head->wr_ptr(), head->size())))
- {
- head->wr_ptr (num_read);
- ACE_Message_Block* next;
- ACE_NEW_RETURN (next, ACE_Message_Block (BUFSIZ), false);
- head->cont (next);
- head = head->cont ();
- }
-
- if (num_read < 0)
- return_code = false;
-
- zzip_file_close (zip_file);
-
- return return_code;
-}
-
-
-bool ZIP_Wrapper::get_file (char* archive_path, char* filename, ACE_Message_Block &file)
-{
- bool return_code = true;
- ZZIP_DIR * dir; //pointer to a zip archive
-
- //open the zip archive
- dir = zzip_opendir(archive_path);
-
- if (!dir)
- return false;
-
- //get the handle to the file
- ZZIP_FILE* zip_file = zzip_file_open (dir, filename, O_RDONLY | O_BINARY);
-
- if (!zip_file)
- return false;
-
- int num_read = 0;
- ACE_Message_Block* head = &file;
-
- //read the file into the ACE_Message_Block
- do
- {
- if (head->space () == 0)
- {
- ACE_Message_Block* next;
- ACE_NEW_RETURN (next, ACE_Message_Block (BUFSIZ), false);
- head->cont ();
- head = head->cont ();
- }
-
- num_read = zzip_read(zip_file, head->wr_ptr(), head->space());
-
- if (num_read > 0)
- head->wr_ptr (num_read);
-
- } while (num_read > 0);
-
- if (num_read < 0)
- return_code = false;
-
- zzip_file_close (zip_file);
- zzip_closedir(dir);
-
- return return_code;
-}
-
-
-//uncompress
-//the uncompress format will be
-//mkdir(name of zip archive).
-//the path is assumed to be an existing directory
-//directory structure of archive is recreated
-bool ZIP_Wrapper::uncompress (char* zip_archive, char* path, bool verbose)
-{
- ZZIP_DIR * dir = 0; //pointer to a zip archive
- ZZIP_DIRENT * dir_entry = 0; //pointer to a file within the archive
- ZZIP_FILE* file = 0; //pointer to a zip file within an archive
-
- //open the zip archive
- dir = zzip_opendir(zip_archive);
-
- if (!dir)
- return false;
-
- //??????
- //check if a directory with the name if the archive exists
- //If not, create it. Else, existing files will be truncated upon open.
- //??????
-
- //get the name of the archive
- ACE_CString arch_dir (path);
- arch_dir += "/";
-
- //get only the name of the archive; remove path info
- char* n = ACE_OS::strstr (zip_archive, "/");
- char* zip_name = 0;
- while (n != NULL)
- {
- zip_name = ++n;
- n = ACE_OS::strstr (n, "/");
- }
-
- arch_dir += zip_name;
- //NOTE: Assumes .zip or cpk extension
- arch_dir = arch_dir.substring (0, arch_dir.length () - 4);
-
- //create directory
- ACE_OS::mkdir(arch_dir.c_str()); //if dir exists -1 is returned and ignored
-
- //read each dir entry and show one line of info per file
- while ((dir_entry = zzip_readdir (dir)))
- {
- //retrieve the name of the file
- char* name = dir_entry->d_name;
-
- //remove the subpath part if any NOTE: Lunux style assumed, need to check
-
- //let's try to create the directory structure for the package
- char dir_name [2048];
- char* next = ACE_OS::strstr (name, "/");
- while (next != NULL)
- {
- ACE_CString location (arch_dir);
- ACE_OS::strncpy (dir_name, name, next - name + 1);
- dir_name[next - name + 1] = '\0';
-
- location += "/";
- location += dir_name;
-
- ACE_stat stat;
- if (ACE_OS::stat (location.c_str (), &stat) == -1)
- ACE_OS::mkdir (location.c_str ());
-
- next++;
- next = ACE_OS::strstr (next, "/");
- }
-
- //open a zip handle
- file = zzip_file_open(dir, dir_entry->d_name, O_RDONLY | O_BINARY);
- if (!file)
- return false;
-
- //allocate buffer
-
- //std::auto_ptr releases the memory upon reset.
- //ACE_Auto_Ptr does not support this functionality
- std::auto_ptr<char> buffer;
- char* temp;
- ACE_NEW_RETURN (temp, char [dir_entry->st_size + 1], false);
- buffer.reset (temp);
-
- //read in the data
- zzip_read(file, &(*buffer), dir_entry->st_size);
-
- //close the zip handle
- zzip_file_close (file);
-
- //create file name + path to open
- std::string file_path (arch_dir.c_str ()); //NOTE: need the c-style char to stop at '\0'
- file_path += "/";
- file_path += name;
-
- //print out the file to be uncompressed
- if (verbose)
- {
- ACE_OS::write(ACE_STDOUT, file_path.c_str (), file_path.length () );
- ACE_OS::write(ACE_STDOUT, "\n", 1);
- }
-
- // Open a file handle to the local filesystem
- ACE_HANDLE handle = ACE_OS::open (file_path.c_str (), O_CREAT | O_TRUNC | O_WRONLY);
- if (handle == ACE_INVALID_HANDLE)
- {
- zzip_closedir(dir);
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[uncompress] file creation error")),
- 0);
- }
-
- //write the uncompressed data to the file
- if (ACE_OS::write (handle, &(*buffer), dir_entry->st_size) == -1)
- {
- zzip_closedir(dir);
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("[uncompress] file write error")),
- 0);
- }
-
- // Close the file handle
- ACE_OS::close (handle);
- }
-
- zzip_closedir(dir);
- return true;
-}
diff --git a/TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.h b/TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.h
deleted file mode 100644
index ddb3eb480e8..00000000000
--- a/TAO/CIAO/DAnCE/RepositoryManager/ZIP_Wrapper.h
+++ /dev/null
@@ -1,86 +0,0 @@
-
-/* -*- C++ -*- */
-
-//=======================================================================
-/**
- * @file ZIP_Wrapper.h
- *
- * $Id$
- *
- * Purpose: to provide a wrapper around ZZIPlib for easy handling of
- * ZIP archives. This wrapper can me used as an auxiliary
- * class that allows a program to become ZIP-aware
- *
- * @author Stoyan Paunov
- */
-//=======================================================================
-
-#ifndef _ZIP_WRAPPER_H_
-#define _ZIP_WRAPPER_H_
-
-#include "ace/Containers_T.h" //for ACE_Double_Linked_List
-#include "ace/Message_Block.h" //for ACE_Message_Block
-#include "ace/SString.h" //for ACE_CString
-
-#include "ace/OS_NS_fcntl.h" //for open
-#include "ace/OS_NS_sys_stat.h" //for filesize and mkdir
-
-#include <string>
-
-/**
- * @class ZIP_File_Info
- *
- * This class is used as a carrier of information
- * about entities residing inside a ZIP archive
- */
-class ZIP_File_Info
-{
-public:
- ACE_CString name_;
- size_t size_;
- ZIP_File_Info* next_;
- ZIP_File_Info* prev_;
-
- ZIP_File_Info (char* name, size_t size);
- ZIP_File_Info ();
-};
-
-/**
- * @class ZIP_Wrappers
- *
- * This class is the actual workhorse that provides all of
- * the necessary functionality
- */
-class ZIP_Wrapper
-{
-public:
- /// Get a list of the files in the archive
- ///returns -1 on failure
- static int file_list_info (char* zip_name,
- ACE_Double_Linked_List<ZIP_File_Info> &list);
-
- /// Get file and store it into an ACE_Message_Block
- /// need to provide the correct accessor string. It formed by the ZIP_Options
- /// singleton on argument parsing and stored in ZIP_Options::instance()->read_file_
- /// ACE_Message_Block is null-terminated, but this is not reflected in the size!
- ///
- /// NOTE: Be sure to release the message block even if the function returns
- /// false becuase the return value might be due to unsuccessful allocation
- static bool get_file (char* accessor, ACE_Message_Block &file);
-
- /// Additional get_file function to avert subdirectory traversal problems with
- /// zziplib accessors
- ///
- /// NOTE: Be sure to release the message block even if the function returns
- /// false becuase the return value might be due to unsuccessful allocation
- static bool get_file (char* archive_path, char* filename, ACE_Message_Block &file);
-
- /// uncompress
- /// the uncompress format will be
- /// mkdir(name of zip archive)
- /// store all files in that directory.
- /// the path is assumed to be an existing directory
- static bool uncompress (char* zip_archive, char* path = "", bool verbose = true);
-};
-
-#endif
diff --git a/TAO/CIAO/DAnCE/StaticConfigurator/README b/TAO/CIAO/DAnCE/StaticConfigurator/README
deleted file mode 100644
index 76d3c83f48f..00000000000
--- a/TAO/CIAO/DAnCE/StaticConfigurator/README
+++ /dev/null
@@ -1,29 +0,0 @@
-Please see $CIAO_ROOT/docs/static_dance.html for details.
-
-To run the static version of Hello example, do the following,
-
-1. Build ACE+TAO+CIAO statically
-2. Build $CIAO_ROOT/examples/Hello
-3. Generate the static function entrypoints (plan.h)
- > cd $CIAO_ROOT/examples/Hello/descriptors
- > $CIAO_ROOT/DAnCE/StaticConfigurator/StaticDAnCEParser -p flattened_deploymentplan_without_ns.cdp
- > cp plan.h $CIAO_ROOT/DAnCE/StaticConfigurator/
-4. Build the static NodeManager for Hello example
- > cd $CIAO_ROOT/DAnCE/StaticConfigurator
- > cp StaticDAnCEApp.cpp.tmpl StaticDAnCEApp.cpp
- > cp StaticDAnCEApp.mpc.tmpl StaticDAnCEApp.mpc
- > $ACE_ROOT/bin/mwc.pl
- > make
-5. Run the static node managers. Note that the ORBEndpoint values should
- correspond to the ones in $CIAO_ROOT/examples/Hello/descriptors/TestNodeManagerMap.dat
- > cd $CIAO_ROOT/DAnCE/StaticConfigurator
- > ./StaticDAnCEApp -ORBEndpoint iiop://localhost:60001 &
- > ./StaticDAnCEApp -ORBEndpoint iiop://localhost:60002 &
-6. Do the deployment. This is just the same as the non-static version of DAnCE
- except that we have the NodeManagers already running and need not spawn node
- managers. To accomplish this, change
- $CIAO_ROOT/examples/Hello/descriptors/run_test_without_ns.pl
- to *not* run the node manager daemons and do the following.
- > cd $CIAO_ROOT/examples/Hello/descriptors
- > ./run_test_without_ns.pl
-
diff --git a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.cpp.tmpl b/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.cpp.tmpl
deleted file mode 100644
index 3b230c3c843..00000000000
--- a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.cpp.tmpl
+++ /dev/null
@@ -1,119 +0,0 @@
-// $Id$
-
-#include "Container_Base.h"
-#include "NodeManager/NodeManager_Impl.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/streams.h"
-#include "ace/Get_Opt.h"
-#include "tao/IORTable/IORTable.h"
-#include "tao/CDR.h"
-#include "plan.h"
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- // Initialize the ORB so that CORBA::Any will work
- //
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- "");
- try
- {
- // Get reference to Root POA.
- CORBA::Object_var obj
- = orb->resolve_initial_references ("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var poa
- = PortableServer::POA::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Activate POA manager
- PortableServer::POAManager_var mgr
- = poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- mgr->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- int homes_table_size =
- sizeof (homes_table)/sizeof(HomeAttributes);
-
- CIAO::HOMECREATOR_FUNCPTR_MAP home_creator_fptr_map;
- CIAO::HOMESERVANTCREATOR_FUNCPTR_MAP homesvnt_creator_fptr_map;
- CIAO::Static_Config_EntryPoints_Maps static_config_entrypoints_maps;
- static_config_entrypoints_maps.home_creator_funcptr_map_ = &home_creator_fptr_map;
- static_config_entrypoints_maps.home_servant_creator_funcptr_map_ = &homesvnt_creator_fptr_map;
-
- int i=0;
- for (i=0; i<homes_table_size; ++i)
- {
- home_creator_fptr_map.bind (homes_table[i].executor_entrypt_,
- homes_table[i].executor_fptr_);
-
- homesvnt_creator_fptr_map.bind (homes_table[i].servant_entrypt_,
- homes_table[i].servant_fptr_);
- }
-
- CIAO::Static_NodeManager_Impl *static_node_manager_impl;
- // Create and install the CIAO Daemon servant
-
- ACE_DEBUG ((LM_DEBUG, "creating static_node_manager\n"));
-
- static_node_manager_impl =
- new CIAO::Static_NodeManager_Impl("NodeManager",
- orb.in (),
- poa.in (),
- "", //exe location
- "", //exe options
- 0, //spawn delay
- &static_config_entrypoints_maps);
-
- static_node_manager_impl->init ();
-
- CORBA::Object_var table_object =
- orb->resolve_initial_references ("IORTable"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- IORTable::Table_var adapter =
- IORTable::Table::_narrow (table_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (adapter.in ()))
- ACE_ERROR_RETURN ((LM_ERROR, "Nil IORTable\n"), -1);
-
- CIAO::NodeManager_var manager =
- static_node_manager_impl->_this ();
-
- CORBA::String_var str =
- orb->object_to_string (manager.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- adapter->bind ("NodeManager",
- str.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Run the main event loop for the ORB.
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- catch (CORBA::Exception& ex)
- {
- ACE_PRINT_EXCEPTION (ex, "Caught CORBA Exception: ");
- return -1;
- }
-
- return 0;
-}
diff --git a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.mpc.tmpl b/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.mpc.tmpl
deleted file mode 100644
index c9790a28bc3..00000000000
--- a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEApp.mpc.tmpl
+++ /dev/null
@@ -1,24 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(StaticDAnCEApp): ciao_component_dnc, iortable {
- exename = StaticDAnCEApp
- requires += exceptions
- includes += ../NodeApplicationManager ../NodeManager
- libs += NodeManager NodeManager_stub NodeApplicationManager
- after += NodeManager NodeManager_stub NodeApplicationManager
-
- libs += Hello_Base_DnC_stub
- libs += Hello_Base_DnC_svnt
- libs += Receiver_DnC_stub
- libs += Receiver_DnC_svnt
- libs += Receiver_DnC_exec
- libs += Sender_DnC_stub
- libs += Sender_DnC_svnt
- libs += Sender_DnC_exec
-
- Source_Files {
- StaticDAnCEApp.cpp
- }
-}
-
diff --git a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.cpp b/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.cpp
deleted file mode 100644
index bce83577955..00000000000
--- a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.cpp
+++ /dev/null
@@ -1,162 +0,0 @@
-//=============================================================================
-/**
- * @file StaticDAnCEParser.cpp
- *
- * $Id$
- *
- * This parser is used in static deployment of CIAO components. This
- * parser parses a deployment plan and generates a header file plan.h
- * containing information about the home and servant creation
- * function entry points. This can be used by a Static_NodeManager to
- * instantiate instances of homes and servants just like the regular
- * NodeManager. For more details, see
- * $CIAO_ROOT/DAnCE/StaticConfigurator/docs/static_dance.html
- *
- * @author Venkita Subramonian <venkita@cse.wustl.edu>
- */
-//=============================================================================
-
-#include "NodeApplicationManager/ImplementationInfo.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/streams.h"
-#include "ace/Get_Opt.h"
-#include "tao/IORTable/IORTable.h"
-#include "tao/CDR.h"
-#include "Config_Handlers/XML_File_Intf.h"
-
-using namespace CIAO;
-
-static void
-usage (const ACE_TCHAR* program)
-{
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Usage: %s -p <package URI>\n"),
- program));
-}
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- // top level package URL
- char* package_url = 0;
-
- // Initialize the ORB so that CORBA::Any will work
- //
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- "");
-
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"));
- int c;
-
- while ((c = get_opt ()) != EOF)
- {
- switch (c)
- {
- case 'p':
- package_url = get_opt.opt_arg ();
- break;
-
- default:
- usage(argv[0]);
- return -1;
- }
- }
-
- if (package_url == 0) {
- usage(argv[0]);
- return -1;
- }
-
- CIAO::Config_Handlers::XML_File_Intf intf (package_url);
-
- ::Deployment::DeploymentPlan_var plan =
- intf.get_plan ();
-
- ::Deployment::ComponentPlans dummy;
- dummy.length (0);
-
- NodeImplementationInfoHandler handler (plan, dummy);
-
- Deployment::NodeImplementationInfo * node_impl_info =
- handler.node_impl_info ();
-
- if (!node_impl_info)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "DAnCE (%P|%t) StaticParser -"
- "Failed to create Node Implementation Infos!\n"), 1);
-
- }
-
- Deployment::ContainerImplementationInfos& impl_infos = node_impl_info[0].impl_infos;
-
- FILE* fp = fopen ("plan.h", "w");
-
- CORBA::ULong i,j,num_containers,num_components;
- num_containers = impl_infos.length ();
- for (i = 0; i < num_containers; ++i)
- {
- num_components = impl_infos[i].impl_infos.length ();
- for (j = 0; j < num_components; ++j)
- {
- ACE_DEBUG ((LM_DEBUG, "The info for installation: \n\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n",
- impl_infos[i].impl_infos[j].component_instance_name.in (),
- impl_infos[i].impl_infos[j].executor_dll.in (),
- impl_infos[i].impl_infos[j].executor_entrypt.in (),
- impl_infos[i].impl_infos[j].servant_dll.in (),
- impl_infos[i].impl_infos[j].servant_entrypt.in () ));
- ACE_OS::fprintf (fp,
- "extern \"C\" ::Components::HomeExecutorBase_ptr %s (void);\n",
- impl_infos[i].impl_infos[j].executor_entrypt.in ());
- ACE_OS::fprintf (fp,
- "extern \"C\" ::PortableServer::Servant %s \n",
- impl_infos[i].impl_infos[j].servant_entrypt.in ());
- ACE_OS::fprintf (fp,
- "\t\t(::Components::HomeExecutorBase_ptr p,\n");
- ACE_OS::fprintf (fp,
- "\t\t::CIAO::Session_Container *c,\n");
- ACE_OS::fprintf (fp,
- "\t\tconst char*\n");
- ACE_OS::fprintf (fp,
- "\t\tACE_ENV_ARG_DECL_WITH_DEFAULTS);\n");
- }
- }
-
- ACE_OS::fprintf (fp, "struct HomeAttributes\n");
- ACE_OS::fprintf (fp, "{\n");
- ACE_OS::fprintf (fp, " ACE_TString component_instance_name_;\n");
- ACE_OS::fprintf (fp, " /// Specify the entrypoint to component executor DLL.\n");
- ACE_OS::fprintf (fp, " ACE_TString executor_entrypt_;\n");
- ACE_OS::fprintf (fp, " ::CIAO::HomeFactory executor_fptr_;\n");
- ACE_OS::fprintf (fp, " /// Specify the entrypoint to component servant DLL.\n");
- ACE_OS::fprintf (fp, " ACE_TString servant_entrypt_;\n");
- ACE_OS::fprintf (fp, " ::CIAO::ServantFactory servant_fptr_;\n");
- ACE_OS::fprintf (fp, "};\n");
- ACE_OS::fprintf (fp, "//Homes\n");
- ACE_OS::fprintf (fp, "HomeAttributes homes_table[]= \n");
- ACE_OS::fprintf (fp, "{\n");
-
- num_containers = impl_infos.length ();
- for (i = 0; i < num_containers; ++i)
- {
- num_components = impl_infos[i].impl_infos.length ();
- for (j = 0; j < num_components; ++j)
- {
- ACE_OS::fprintf (fp, "\t{\"%s\", \"%s\", %s, \"%s\", %s}",
- impl_infos[i].impl_infos[j].component_instance_name.in (),
- impl_infos[i].impl_infos[j].executor_entrypt.in (),
- impl_infos[i].impl_infos[j].executor_entrypt.in (),
- impl_infos[i].impl_infos[j].servant_entrypt.in (),
- impl_infos[i].impl_infos[j].servant_entrypt.in () );
- if (!(i == num_containers -1 && j == num_components-1))
- ACE_OS::fprintf (fp, ",\n");
- }
- }
- ACE_OS::fprintf (fp, "};\n\n");
-
- fclose (fp);
-
- return 0;
-}
diff --git a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.mpc b/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.mpc
deleted file mode 100644
index 6ff77c3e1fa..00000000000
--- a/TAO/CIAO/DAnCE/StaticConfigurator/StaticDAnCEParser.mpc
+++ /dev/null
@@ -1,13 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(StaticDAnCEParser): ciao_component_dnc, taoexe, ciao_config_handlers, ciao_domainapplicationmanager_dnc, iortable, exceptions, ciao_server_dnc {
- exename = StaticDAnCEParser
- includes += ..
- libs += NodeApplicationManager
- after += NodeApplicationManager NodeManager
-
- Source_Files {
- StaticDAnCEParser.cpp
- }
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/CmpClient.cpp b/TAO/CIAO/DAnCE/TargetManager/CmpClient.cpp
deleted file mode 100644
index d695ab38062..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/CmpClient.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-// $Id$
-/**
- * @file CmpClient.cpp
- *
- * @brief This file contains a client of TargetManager.
- *
- * It picks up the TM ior from the Targetmanager.ior file
- * present in the current directory, and makes the calls on the
- * TM to getAllResources and getAvailable resources
- */
-
-#include "TargetManagerC.h"
-#include "ace/streams.h"
-#include "Config_Handlers/DnC_Dump.h"
-
-
-int main (int argc, char* argv[])
-{
- try {
- // First initialize the ORB, that will remove some arguments...
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv,
- "" /* the ORB name, it can be anything! */);
-
- // There must be at least two arguments, the first is the factory
- // name, the rest are the names of the stock symbols we want to
- // get quotes for.
- if (argc < 2) {
- cerr << "Usage: " << argv[0]
- << " Factory_IOR ..." << endl;
- return 1;
- }
-
- // Use the first argument to create the factory object reference,
- // in real applications we use the naming service, but let's do
- // the easy part first!
- CORBA::Object_var factory_object =
- orb->string_to_object (argv[1]);
-
- // Now downcast the object reference to the appropriate type
- CIAO::TargetManagerImpl_var targetCmp =
- CIAO::TargetManagerImpl::_narrow (factory_object.in ());
-
- // Now get the facet reference from the target Manager Component
- ACE_DEBUG((LM_DEBUG, "Making a Call to provide_targetMgr ()\n"));
- Deployment::TargetManager_ptr targetI = targetCmp->provide_targetMgr ();
-
- // Now make calls on the Target Manager facet
-
- try
- {
- Deployment::Domain_var domainV = targetI->getAllResources ();
- ACE_DEBUG ((LM_DEBUG , "\n\nGetAllResources Returned \n"));
- ::Deployment::DnC_Dump::dump (domainV);
- }
- catch(CORBA::NO_IMPLEMENT &)
- {
- ACE_DEBUG((LM_DEBUG ,"Error:TargetManager:CORBA::NO_IMPLEMENT thrown\n"));
- }
- catch(CORBA::Exception &)
- {
- ACE_DEBUG((LM_DEBUG ,"Error:TargetManager:CORBA Generic Exception \n"));
- ACE_DEBUG((LM_DEBUG ,"Error:TargetManager:Exception in TargetManager call\n"));
- }
-
- // Now make a call of getAvailableResources on the TargetManager ...
- try
- {
- Deployment::Domain_var domainV = targetI->getAvailableResources();
- ACE_DEBUG ((LM_DEBUG , "\n\nGetAvailableResources Returned \n"));
- ::Deployment::DnC_Dump::dump (domainV);
- }
- catch(CORBA::NO_IMPLEMENT &)
- {
- cerr << "Error:TargetManager:CORBA::NO_IMPLEMENT thrown" << endl;
- }
- catch(CORBA::Exception & ex)
- {
- cout << "Error:TargetManager:CORBA Generic Exception " << endl;
- cerr << "Error:TargetManager:Exception in TargetManager call" << ex << endl;
- }
-
- // Finally destroy the ORB
- orb->destroy ();
- }
- catch (CORBA::Exception & ex) {
- cerr << "Error:TargetManager:CORBA exception raised!" << ex << endl;
- }
- return 0;
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.cpp b/TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.cpp
deleted file mode 100644
index 6b5325e840c..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.cpp
+++ /dev/null
@@ -1,152 +0,0 @@
-// $Id$
-
-#include "Deployment_Configuration.h"
-
-#include "ace/OS_NS_stdio.h"
-
-const int NAME_BUFSIZE = 1024;
-
-CIAO::Deployment_Configuration::Deployment_Configuration (CORBA::ORB_ptr o)
- : orb_ (CORBA::ORB::_duplicate (o))
-{
-}
-
-CIAO::Deployment_Configuration::~Deployment_Configuration (void)
-{
- this->deployment_info_.unbind_all ();
-}
-
-int
-CIAO::Deployment_Configuration::init (const char *filename)
-{
- // @@ We should change to use ACE_Configuration here.
-
- if (filename == 0)
- {
- ACE_ERROR ((LM_ERROR, "CIAO (%P|%t) Deployment_Configuration.cpp"
- ": Unable to identify the file name \n"));
- return -1;
- }
-
- FILE *inf = ACE_OS::fopen (filename, "r");
-
- if (inf == NULL)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "DAnCE (%P|%t) Deployment_Configuration.cpp:"
- "Fail to open node manager map data file: %s : \n",
- filename),
- -1);
- }
-
- char destination[NAME_BUFSIZE], ior[NAME_BUFSIZE];
- int first = 1;
-
- while (fscanf (inf, "%s %s", destination, ior ) != EOF)
- {
- // This should not fail!!
- //
- if (this->deployment_info_.bind (destination, ior) != 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "DAnCE (%P|%t) Deployment_Configuration.cpp:"
- "Failed to bind destination [%s] : \n",
- destination),
- -1);
- }
-
- if (first)
- {
- this->default_node_manager_.IOR_ = ior;
- first = 0;
- }
- }
- return 0;
-}
-
-const char *
-CIAO::Deployment_Configuration::get_node_manager_ior (const char *name)
-{
- if (name == 0)
- return get_default_node_manager_ior ();
-
- ACE_Hash_Map_Entry
- <ACE_CString,
- CIAO::Deployment_Configuration::Node_Manager_Info> *entry = 0;
-
- if (this->deployment_info_.find (ACE_CString (name),
- entry) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) Deployment_Configuration.cpp:"
- "Failed to find IOR for destination [%s] : \n",
- name));
- return 0;
- }
-
- return entry->int_id_.IOR_.c_str ();
-}
-
-const char *
-CIAO::Deployment_Configuration::get_default_node_manager_ior (void)
-{
- if (this->default_node_manager_.IOR_.length () == 0)
- return 0;
- return this->default_node_manager_.IOR_.c_str ();
-}
-
-::Deployment::NodeManager_ptr
-CIAO::Deployment_Configuration::get_node_manager (const char *name
- ACE_ENV_ARG_DECL)
-{
- if (name == 0)
- return get_default_node_manager (ACE_ENV_SINGLE_ARG_PARAMETER);
-
- ACE_Hash_Map_Entry
- <ACE_CString,
- CIAO::Deployment_Configuration::Node_Manager_Info> *entry = 0;
-
- if (this->deployment_info_.find (ACE_CString (name),
- entry) != 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DAnCE (%P|%t) Deployment_Configuration.cpp:"
- "Failed to find IOR for destination [%s] : \n",
- name));
- return 0;
- }
-
- if (CORBA::is_nil (entry->int_id_.node_manager_.in ()))
- {
- CORBA::Object_var temp = this->orb_->string_to_object
- (entry->int_id_.IOR_.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- entry->int_id_.node_manager_ =
- ::Deployment::NodeManager::_narrow (temp.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
- return ::Deployment::NodeManager::_duplicate
- (entry->int_id_.node_manager_.in ());
-}
-
-::Deployment::NodeManager_ptr
-CIAO::Deployment_Configuration::get_default_node_manager (ACE_ENV_SINGLE_ARG_DECL)
-{
- if (CORBA::is_nil (this->default_node_manager_.node_manager_.in ()))
- {
- CORBA::Object_var temp = this->orb_->string_to_object
- (this->default_node_manager_.IOR_.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- this->default_node_manager_.node_manager_ =
- ::Deployment::NodeManager::_narrow (temp.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
- return ::Deployment::NodeManager::_duplicate
- (this->default_node_manager_.node_manager_.in ());
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.h b/TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.h
deleted file mode 100644
index effca979a4c..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/Deployment_Configuration.h
+++ /dev/null
@@ -1,129 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Deployment_Configuration.h
- *
- * $Id$
- *
- * The Deployment_Configuration provides abstraction for the
- * deployment mechanisms.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- * @author Gan Deng <gan.deng@vanderbilt.edu>
- */
-//=============================================================================
-#ifndef CIAO_DEPLOYMENT_CONFIGURATION_H
-#define CIAO_DEPLOYMENT_CONFIGURATION_H
-#include /**/ "ace/pre.h"
-
-#include "ace/Hash_Map_Manager_T.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ciao/NodeManagerC.h"
-#include "tao/Valuetype/ValueBase.h"
-#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
-#include "ace/SString.h"
-
-#include "DomainApplicationManager/DomainApplicationManager_Export.h"
-
-namespace CIAO
-{
- /**
- * @class Deployment_Configuration
- *
- * @brief A class that provides strategies on deployment topology.
- *
- * This class provides strategies on how the DomainApplicationManager
- * should deploy an deployment plan at domain-level. This is achieved
- * by providing mappings from deployment destination names to actually
- * NodeManager daemon IORs, and the strategy for which default NodeManager
- * daemons a deployment mechanism should use.
- *
- * This is a trivial implementation of the deployment configuration
- * strategy. We can enhance this class later on to provide
- * different deployment location strategies, such as naming service.
- */
- class DomainApplicationManager_Export Deployment_Configuration
- {
- public:
- typedef struct _node_manager_info
- {
- _node_manager_info (const char *ior = 0)
- {
- IOR_ = ior;
- }
-
- ACE_CString IOR_;
- ::Deployment::NodeManager_var node_manager_;
- } Node_Manager_Info;
-
- Deployment_Configuration (CORBA::ORB_ptr o);
-
- /// Destructor
- virtual ~Deployment_Configuration (void);
-
- /**
- * Init method takes the filename to a configuration file which
- * has a simple line format of name, ior string delimited by a
- * space in each line.
- *
- * name IOR-string
- *
- * @retval 0 on success.
- * @retval -1 otherwise.
- */
- int init (const char *filename);
-
- /**
- * @retval 0 if no valid name were found. When @c name = 0, then
- * this function behave exactly as get_default_activator_ior.
- */
- virtual const char *get_node_manager_ior (const char *name);
-
- /**
- * Return the default NodeManager the DomainApplicationManager
- * should use to deploy a component. In this implementation, the
- * first entry in the deployment configuration data file is always
- * the entry for default activator.
- *
- * @retval 0 if no valid daemon is configured.
- */
- virtual const char *get_default_node_manager_ior ();
-
- /**
- * @retval nil if no valid name were found.
- */
- virtual ::Deployment::NodeManager_ptr
- get_node_manager (const char *name
- ACE_ENV_ARG_DECL_WITH_DEFAULTS);
-
- /**
- * Return the reference to the default NodeManager the
- * DomainApplicationManager should use to deploy a node-level
- * deployment plan..
- *
- * @retval nil if no valid daemon is configured.
- */
- virtual ::Deployment::NodeManager_ptr
- get_default_node_manager (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
- protected:
- CORBA::ORB_var orb_;
-
- ACE_Hash_Map_Manager_Ex<ACE_CString,
- Node_Manager_Info,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> deployment_info_;
-
- Node_Manager_Info default_node_manager_;
- };
-
-}
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_DEPLOYMENT_CONFIGURATION_H */
diff --git a/TAO/CIAO/DAnCE/TargetManager/DomainDataManager.cpp b/TAO/CIAO/DAnCE/TargetManager/DomainDataManager.cpp
deleted file mode 100644
index 57130b90fa4..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/DomainDataManager.cpp
+++ /dev/null
@@ -1,147 +0,0 @@
-// $Id$
-//===============================================================
-/**
- * @file DomainDataManager.cpp
- *
- * @brief Maintains the Domain Information
- *
- * It contains the entire Domain information.Both the
- * initial domain as well as the current available domain.
- *
- * @author Nilabja Roy nilabjar@dre.vanderbilt.edu
- */
-//===============================================================
-#include "DomainDataManager.h"
-
-#include "Config_Handlers/DD_Handler.h"
-#include "Config_Handlers/DnC_Dump.h"
-#include "ciao/CIAO_common.h"
-
-const char * domain_file_name = "Domain.cdd";
-
-int CIAO::DomainDataManager::update_domain (const ::CORBA::StringSeq &,
- const ::Deployment::Domain & domainSubset,
- ::Deployment::DomainUpdateKind )
-{
- // Update the subset of the domain which the above
- // parameter corresponds to
-
- // for now consider only nodes
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Inside The update Domain of Manager\n"));
- ACE_DEBUG ((LM_DEBUG , "the length of domain is [%d]",
- current_domain_.node.length ()));
- ACE_DEBUG ((LM_DEBUG , "domainSubsetNode is \n" ));
- }
- int size = current_domain_.node.length ();
- int i;
- for (i=0;i < size;i++)
- {
- if (!strcmp (domainSubset.node[0].name , current_domain_.node[i].name))
- {
- // found a match
- // for now overwrite the entire Node info ...
- // but later , this has to be changed to overwrite
- // only the specific part ...
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Changed the memory Value\n"));
- }
- current_domain_.node[i] = domainSubset.node[0];
- break; // finished job ...break
- }
- }
-
- if (i == size)
- {
- // thus the node is new .. add it to current_domain_
- // later change it ...
- current_domain_.node.length (size+1);
- current_domain_.node[size]=domainSubset.node[0];
- }
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Inside The update Domain of Manager\n"));
- }
- return 0;
-}
-
-CIAO::DomainDataManager::
-DomainDataManager (CORBA::ORB_ptr orb,
- ::Deployment::TargetManager_ptr target)
- : orb_ (CORBA::ORB::_duplicate (orb)),
- deployment_config_ (orb_.in()),
- target_mgr_ (::Deployment::TargetManager::_duplicate(target))
-{
- CIAO::Config_Handlers::DD_Handler dd (domain_file_name);
- ::Deployment::Domain* dmn = dd.domain_idl ();
- ::Deployment::DnC_Dump::dump (*dmn);
- current_domain_ = *dmn;
- initial_domain_ = current_domain_;
-
- call_all_node_managers ();
-}
-
-::Deployment::Domain* CIAO::DomainDataManager::get_current_domain ()
-{
- ::Deployment::Domain * retval = new ::Deployment::Domain (current_domain_);
- return retval;
-}
-
-::Deployment::Domain* CIAO::DomainDataManager::get_initial_domain ()
-{
- ::Deployment::Domain * retval = new ::Deployment::Domain (initial_domain_);
- return retval;
-}
-
-int CIAO::DomainDataManager::readin_domain_data ()
-{
- // here read in Domain data ...
- //
- return 0;
-}
-
-int CIAO::DomainDataManager::call_all_node_managers ()
-{
- if ( this->deployment_config_.init ("NodeDetails.dat") == -1 )
- {
- ACE_ERROR ((LM_ERROR,
- "TargetM (%P|%t) DomainDataManager.cpp -"
- "CIAO::DomainDataManager::call_all_node_managers -"
- "ERROR while trying to initialize after reading "
- "node details DAT file \n"));
- return 0;
- }
-
- int length = initial_domain_.node.length ();
- for (int i=0;i < length;i++)
- {
- ::Deployment::NodeManager_var node_manager =
- deployment_config_.get_node_manager (initial_domain_.node[i].name);
- if (node_manager.in () != 0)
- {
- Deployment::Logger_ptr log =
- Deployment::Logger::_nil ();
- ::Deployment::Domain sub_domain;
- sub_domain.UUID = CORBA::string_dup("Node-Level-domain");
- sub_domain.label = CORBA::string_dup("Node-level-domain");
- sub_domain.sharedResource.length(0);
- sub_domain.interconnect.length(0);
- sub_domain.bridge.length(0);
- sub_domain.infoProperty.length(0);
- sub_domain.node.length (1);
- sub_domain.node[0] = initial_domain_.node[i];
- try
- {
- node_manager->joinDomain (sub_domain , target_mgr_.in (), log);
- }
- catch (CORBA::Exception&)
- {
- ACE_DEBUG ((LM_DEBUG , "Error in calling Join Domain==\n"));
- }
- }
- }
- return 0;
-
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/DomainDataManager.h b/TAO/CIAO/DAnCE/TargetManager/DomainDataManager.h
deleted file mode 100644
index 6d3e8772c87..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/DomainDataManager.h
+++ /dev/null
@@ -1,118 +0,0 @@
-// $Id$
-//===============================================================
-/**
- * @file DomainDataManager.h
- *
- * @brief Maintains the Domain Information
- *
- * It contains the entire Domain information.Both the
- * initial domain as well as the current available domain.
- *
- * @author Nilabja Roy nilabjar@dre.vanderbilt.edu
- */
-//===============================================================
-#ifndef DOMAIN_DATA_MGRH
-#define DOMAIN_DATA_MGRH
-
-#include "TargetManagerC.h"
-#include "Deployment_Configuration.h"
-
-/**
- * @namespace CIAO
- *
- * @brief The main CIAO namespace
- *
- */
-namespace CIAO
-{
- /**
- * @class DomainDataManager
- *
- * @brief Responsible for maintaining the Domain Information
- *
- * It maintains both the Current Domain Information as well
- * as the Initial domain at full capacity.
- */
- class DomainDataManager
- {
-
- public :
- /**
- * @operation updateDomain
- * @brief This function is called by the other classes to update
- * current domain data.
- * @param elements The string sequence of elements
- * being updated
- * @param domainSubset The subset of the actual Domain to be updated
- * @param updateKind Specifies the update type eg. add, delete, update
- *
- */
- int update_domain (const ::CORBA::StringSeq & elements,
- const ::Deployment::Domain & domainSubset,
- ::Deployment::DomainUpdateKind updateKind
- );
- /**
- * @operation getInitialDomain
- * @brief This function is called the Executor code
- * to get the Original Domain data.
- * @return Domain* The Initial Domain
- *
- */
- ::Deployment::Domain* get_initial_domain ();
-
- /**
- * @operation getCurrentDomain
- * @brief This function is called the Executor code
- * to get the Current Domain data.
- * @return Domain* The Current Domain
- */
- ::Deployment::Domain* get_current_domain ();
-
-
- /**
- * @operation Constructor
- * @param orb The orb pointer
- * @param target The Target Manager Object Reference
- */
- DomainDataManager (CORBA::ORB_ptr orb,
- ::Deployment::TargetManager_ptr target
- );
-
- protected:
-
- /**
- * @operation readinDomainData
- * @brief It will read the initial Domain data from
- * XML files.
- */
- int readin_domain_data ();
-
- /**
- * @operation call_all_node_managers
- * @brief This function calls all NM and gives them
- * the sub-domain
- */
- int call_all_node_managers ();
-
- /// The ORB pointer
- CORBA::ORB_var orb_;
-
- /// The Deployment Configuration
- CIAO::Deployment_Configuration deployment_config_;
-
- /// The Initial Domain - contains resources
- /// at total capacity
- ::Deployment::Domain initial_domain_;
-
-
- /// The Current Domain - contains resources
- /// at current capacity
- ::Deployment::Domain current_domain_;
-
- /// The Target Manager Context
- ::Deployment::TargetManager_var target_mgr_;
- };
-
-} // CIAO
-
-#endif /* DOMAIN_DATA_MGRH */
diff --git a/TAO/CIAO/DAnCE/TargetManager/TM_Client.mpc b/TAO/CIAO/DAnCE/TargetManager/TM_Client.mpc
deleted file mode 100644
index 40904b1585d..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TM_Client.mpc
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-
-// Client.mpc,v 1.6 2005/02/18 09:07:06 jwillemsen Exp
-
-
-project(TMClient): ciao_client_dnc,ciao_deployment_stub, ciao_config_handlers {
- after += CIAO_TargetManager_stub
- includes += $(CIAO_ROOT)/DAnCE $(TAO_ROOT)/orbsvcs
- includes += $(CIAO_ROOT)/DAnCE/TargetManager
- libs += TargetManager_stub
-
-
- IDL_Files {
- }
-
- Source_Files {
- CmpClient.cpp
- }
-
- Header_Files {
- }
-
- Inline_Files {
- }
-
- Template_Files {
- }
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager.cidl b/TAO/CIAO/DAnCE/TargetManager/TargetManager.cidl
deleted file mode 100644
index 39fda73366e..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager.cidl
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-
-/*
- * @file TargetManager.cidl
- * @brief The file contains the TargetManager component
- * defination
- */
-
-#ifndef TARGETMANAGER_CIDL
-#define TARGETMANAGER_CIDL
-
-
-#include "TargetManager.idl"
-
-/*
- * @composition TargetManager_i
- */
-
-composition session TargetManager_i
-{
- home executor TargetManagerHome_Exec
- {
- implements CIAO::TargetManagerHome;
- manages TargetManagerImpl_Exec;
- };
-};
-
-#endif
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager.idl b/TAO/CIAO/DAnCE/TargetManager/TargetManager.idl
deleted file mode 100644
index 21200871e68..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager.idl
+++ /dev/null
@@ -1,38 +0,0 @@
-// $Id$
-
-/**
- * @file TargetManager.idl
- * @brief TargetManager interface defintion
- *
- * @author Nilabja R <nilabjar@dre.vanderbilt.edu>
- */
-
-#ifndef TARGETMGR_IDL
-#define TARGETMGR_IDL
-
-
-
-#include "ciao/Components.idl"
-#include "ciao/Target_Data.idl"
-#include "TargetManagerExt.idl"
-
-/**
- * @module CIAO
- *
- * @brief TargetManager interface defintion
- *
- */
-module CIAO
-{
- component TargetManagerImpl
- {
- provides ::Deployment::TargetManager targetMgr;
- provides CIAO::TargetManagerExt target_manager_ext;
- };
-
- home TargetManagerHome manages TargetManagerImpl
- {
- };
-};
-
-#endif
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager.mpc b/TAO/CIAO/DAnCE/TargetManager/TargetManager.mpc
deleted file mode 100644
index 36c55cf4277..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager.mpc
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-// generate_component_mpc.pl,v
-project(CIAO_TargetManager_stub): ciao_client_dnc, ciao_deployment_stub {
- sharedname = TargetManager_stub
- idlflags += -Wb,stub_export_macro=TARGETMANAGER_STUB_Export -Wb,stub_export_include=TargetManager_stub_export.h -Wb,skel_export_macro=TARGETMANAGER_SVNT_Export -Wb,skel_export_include=TargetManager_svnt_export.h
- dynamicflags = TARGETMANAGER_STUB_BUILD_DLL
-
- IDL_Files {
- TargetManager.idl
- TargetManagerExt.idl
- }
-
- Source_Files {
- TargetManagerC.cpp
- TargetManagerExtC.cpp
- }
-}
-
-project(CIAO_TargetManager_svnt) : ciao_servant_dnc {
- after += CIAO_TargetManager_stub
- sharedname = TargetManager_svnt
- libs += TargetManager_stub
-
- idlflags += -Wb,export_macro=TARGETMANAGER_SVNT_Export -Wb,export_include=TargetManager_svnt_export.h
- dynamicflags = TARGETMANAGER_SVNT_BUILD_DLL
-
- CIDL_Files {
- TargetManager.cidl
- }
-
- IDL_Files {
- TargetManagerE.idl
- }
-
- Source_Files {
- TargetManagerEC.cpp
- TargetManagerS.cpp
- TargetManagerExtS.cpp
- TargetManager_svnt.cpp
- }
-}
-
-
-project(CIAO_TargetManager_exec) : ciao_servant_dnc, ciao_config_handlers, ciao_domainapplicationmanager_dnc {
- after += CIAO_TargetManager_svnt
- sharedname = TargetManager_exec
- libs += TargetManager_stub TargetManager_svnt
-
- idlflags += -Wb,export_macro=TARGETMANAGER_EXEC_Export -Wb,export_include=TargetManager_exec_export.h
- dynamicflags = TARGETMANAGER_EXEC_BUILD_DLL
-
- Source_Files {
- DomainDataManager.cpp
- TargetManager_exec.cpp
- }
-
- IDL_Files {
- }
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManagerExt.idl b/TAO/CIAO/DAnCE/TargetManager/TargetManagerExt.idl
deleted file mode 100644
index cc9443b3c51..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManagerExt.idl
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id$
-
-/**
- * @file TargetManagerExt.idl
- *
- * @brief The Extensions to the TM interface for ARMS demo
- *
- * This file declares a interface which will be implemented as
- * a facet by the TargetManager component
- */
-
-/**
- * @module CIAO
- *
- * @brief The CIAO module
- */
-
-module CIAO
-{
- /**
- * @struct Cpu_Info
- * @brief Consists of individual host-cpu info
- */
- struct Host_Info
- {
- string hostname;
- double cpu_util;
- };
-
- /// The sequence of CPU infos
- typedef sequence<Host_Info> Host_Infos;
-
- /**
- * @struct Component_Cpu_Util
- * @brief Contains a component CPU Util
- */
- struct Component_Info
- {
- string component_name;
- double cpu_util;
- };
-
- /// The sequence of component cpu utilization
- typedef sequence <Component_Info> Component_Infos;
-
- /**
- * @interface TargetManagerExt
- * @brief The Target Manager Extension
- *
- * Contains the interface used by the RACE
- * controller.
- */
- interface TargetManagerExt
- {
- long get_pid (in string component_uuid);
- Host_Infos get_host_cpu ();
- Component_Infos get_component_cpu ();
- };
-};
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.cpp b/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.cpp
deleted file mode 100644
index 552197adf0e..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.cpp
+++ /dev/null
@@ -1,337 +0,0 @@
-// $Id$
-//===============================================================
-/**
- * @file TargetManager_exec.cpp
- *
- * @brief TargetManager Executor code
- *
- * @author Nilabja Roy nilabjar@dre.vanderbilt.edu
- */
-//===============================================================
-#include "TargetManager_exec.h"
-#include "ciao/CIAO_common.h"
-#include <orbsvcs/CosNamingC.h>
-#include "Config_Handlers/DD_Handler.h"
-#include "Config_Handlers/DnC_Dump.h"
-
-using namespace std;
-
-namespace CIDL_TargetManager_i
-{
- //==================================================================
- // Facet Executor Implementation Class: TargetManager_exec_i
- //==================================================================
-
- TargetManager_exec_i::
- TargetManager_exec_i (TargetManagerImpl_exec_i* exec ,
- CORBA::ORB_ptr orb,
- TargetManagerImpl_Context *context
- )
- : _exec (exec),
- orb_ (orb),
- context_ (context)
- {
- // The DomainDataManager created here ...
-
- // get its own obj ref , then call
-
-
- CORBA::Object_var object = context_->get_CCM_object ();
- CIAO::TargetManagerImpl_var target_impl =
- CIAO::TargetManagerImpl::_narrow (object.in ());
- ::Deployment::TargetManager_var target =
- target_impl->provide_targetMgr ();
- dataManager_.reset (new CIAO::DomainDataManager (orb, target.in ()));
- }
-
- TargetManager_exec_i::~TargetManager_exec_i (void)
- {
- }
-
- // Operations from ::Deployment::TargetManager
-
- ::Deployment::Domain *
- TargetManager_exec_i::getAllResources (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- return dataManager_->get_initial_domain ();
- }
-
- ::Deployment::Domain *
- TargetManager_exec_i::getAvailableResources (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- return dataManager_->get_current_domain ();
- }
-
- void
- TargetManager_exec_i::commitResources (
- const ::Deployment::DeploymentPlan & /* plan */
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::ResourceNotAvailable,
- ::Deployment::PlanError))
- {
- throw CORBA::NO_IMPLEMENT ();
- }
-
- void
- TargetManager_exec_i::releaseResources (
- const ::Deployment::DeploymentPlan & /* argname */
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- throw CORBA::NO_IMPLEMENT ();
- }
-
- void
- TargetManager_exec_i::updateDomain (
- const ::CORBA::StringSeq & elements ,
- const ::Deployment::Domain & domainSubset ,
- ::Deployment::DomainUpdateKind updateKind
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- // Your code here.
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , ".. Update Domain called ...\n"));
- }
- dataManager_->update_domain (
- elements,
- domainSubset,
- updateKind
- );
- }
-
- //==================================================================
- // Facet Executor Implementation Class: TargetManagerExt_exec_i
- // required for RACE
- //==================================================================
-
- TargetManagerExt_exec_i::TargetManagerExt_exec_i (void)
- {
- }
-
- TargetManagerExt_exec_i::~TargetManagerExt_exec_i (void)
- {
- }
-
- // Operations from ::CIAO::TargetManagerExt
-
- ::CORBA::Long
- TargetManagerExt_exec_i::get_pid (
- const char * /* component_uuid */
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- // Your code here.
- ACE_DEBUG ((LM_DEBUG, "Get PID :: Skeleton Impl"));
- return 0;
- }
-
- ::CIAO::Host_Infos *
- TargetManagerExt_exec_i::get_host_cpu (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- // Your code here.
- ACE_DEBUG ((LM_DEBUG, "Get host cpu :: Skeleton Impl"));
- return 0;
- }
-
- ::CIAO::Component_Infos *
- TargetManagerExt_exec_i::get_component_cpu (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- // Your code here.
- ACE_DEBUG ((LM_DEBUG, "Get component cpu :: Skeleton Impl"));
- return 0;
- }
-
- //==================================================================
- // Component Executor Implementation Class: TargetManagerImpl_exec_i
- //==================================================================
-
- TargetManagerImpl_exec_i::TargetManagerImpl_exec_i (void)
- : exec_object_ (0)
- {
- }
-
- TargetManagerImpl_exec_i::~TargetManagerImpl_exec_i (void)
- {
- }
-
- // Supported or inherited operations.
-
- // Attribute operations.
-
- // Port operations.
-
- ::Deployment::CCM_TargetManager_ptr
- TargetManagerImpl_exec_i::get_targetMgr (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- // Your code here.
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Calling TM constructor"));
- }
-
- if (this->exec_object_.in () == 0)
- {
- this->exec_object_ = new TargetManager_exec_i(this,
- context_->_ciao_the_Container()->the_ORB(),
- context_
- );
- }
- return this->exec_object_.in ();
- }
-
- ::CIAO::CCM_TargetManagerExt_ptr TargetManagerImpl_exec_i
- ::get_target_manager_ext (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
- ) ACE_THROW_SPEC ((CORBA::SystemException))
- {
- return new TargetManagerExt_exec_i ();
- }
-
- // Operations from Components::SessionComponent
-
- void
- TargetManagerImpl_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- this->context_ =
- TargetManagerImpl_Context::_narrow (
- ctx
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->context_ == 0)
- {
- ACE_THROW (CORBA::INTERNAL ());
- }
- }
-
- void
- TargetManagerImpl_exec_i::ciao_preactivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- void
- TargetManagerImpl_exec_i::ciao_postactivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
-
- void
- TargetManagerImpl_exec_i::ccm_activate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "Inside CCM_ACTIVATE\n"));
- }
- get_targetMgr ();
- }
-
- void
- TargetManagerImpl_exec_i::ccm_passivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- void
- TargetManagerImpl_exec_i::ccm_remove (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
-
- //==================================================================
- // Home Executor Implementation Class: TargetManagerHome_exec_i
- //==================================================================
-
- TargetManagerHome_exec_i::TargetManagerHome_exec_i (void)
- {
- }
-
- TargetManagerHome_exec_i::~TargetManagerHome_exec_i (void)
- {
- }
-
- // Supported or inherited operations.
-
- // Home operations.
-
- // Factory and finder operations.
-
- // Attribute operations.
-
- // Implicit operations.
-
- ::Components::EnterpriseComponent_ptr
- TargetManagerHome_exec_i::create (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_THROW_EX (
- retval,
- TargetManagerImpl_exec_i,
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ());
-
- return retval;
- }
-
- extern "C" TARGETMANAGER_EXEC_Export ::Components::HomeExecutorBase_ptr
- createTargetManagerHome_Impl (void)
- {
- ::Components::HomeExecutorBase_ptr retval =
- ::Components::HomeExecutorBase::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- TargetManagerHome_exec_i,
- ::Components::HomeExecutorBase::_nil ());
-
- return retval;
- }
-}
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.h b/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.h
deleted file mode 100644
index a756f67ec5e..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec.h
+++ /dev/null
@@ -1,229 +0,0 @@
-// $Id$
-//===============================================================
-/**
- * @file TargetManager_exec.h
- *
- * @brief TargetManager Executor code
- *
- * @author Nilabja Roy nilabjar@dre.vanderbilt.edu
- */
-//===============================================================
-
-#ifndef CIAO_TARGETMANAGER_EXEC_H
-#define CIAO_TARGETMANAGER_EXEC_H
-
-#include /**/ "ace/pre.h"
-
-#include "TargetManager_svnt.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "TargetManager_exec_export.h"
-#include "tao/LocalObject.h"
-#include "DomainDataManager.h"
-
-namespace CIDL_TargetManager_i
-{
- class TargetManager_exec_i;
-
- class TARGETMANAGER_EXEC_Export TargetManagerImpl_exec_i
- : public virtual TargetManagerImpl_Exec,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- TargetManagerImpl_exec_i (void);
- virtual ~TargetManagerImpl_exec_i (void);
-
- // Supported or inherited operations.
-
- // Attribute operations.
-
- // Port operations.
-
- virtual ::Deployment::CCM_TargetManager_ptr
- get_targetMgr (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::CIAO::CCM_TargetManagerExt_ptr
- get_target_manager_ext (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- // Operations from Components::SessionComponent
-
- virtual void
- set_session_context (
- ::Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ciao_preactivate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ciao_postactivate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ccm_activate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ccm_passivate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ccm_remove (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- protected:
- /// The service context pointer
- TargetManagerImpl_Context *context_;
-
- /// The exec Object
- ::Deployment::CCM_TargetManager_var exec_object_;
- };
-
- class TARGETMANAGER_EXEC_Export TargetManagerExt_exec_i
- : public virtual ::CIAO::CCM_TargetManagerExt,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- TargetManagerExt_exec_i (void);
- virtual ~TargetManagerExt_exec_i (void);
-
- // Operations from ::CIAO::TargetManagerExt
-
- virtual ::CORBA::Long
- get_pid (
- const char * component_uuid
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::CIAO::Host_Infos *
- get_host_cpu (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::CIAO::Component_Infos *
- get_component_cpu (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
- };
-
- class TARGETMANAGER_EXEC_Export TargetManager_exec_i
- : public virtual ::Deployment::CCM_TargetManager,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- TargetManager_exec_i (TargetManagerImpl_exec_i* exec,
- CORBA::ORB_ptr orb,
- TargetManagerImpl_Context *context
- );
- virtual ~TargetManager_exec_i (void);
-
- // Operations from ::Deployment::TargetManager
-
- virtual ::Deployment::Domain *
- getAllResources (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::Deployment::Domain *
- getAvailableResources (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void
- commitResources (
- const ::Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Deployment::ResourceNotAvailable,
- ::Deployment::PlanError));
-
- virtual void
- releaseResources (
- const ::Deployment::DeploymentPlan & argname
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void
- updateDomain (
- const ::CORBA::StringSeq & elements,
- const ::Deployment::Domain & domainSubset,
- ::Deployment::DomainUpdateKind updateKind
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- private:
- TargetManagerImpl_exec_i * _exec;
-
- ///The pointer to the Domain Manager
- std::auto_ptr<CIAO::DomainDataManager> dataManager_;
-
- /// The CORBA ORB ...
- CORBA::ORB_var orb_;
-
- /// The context object ...
- TargetManagerImpl_Context *context_;
- };
-
-
-
- class TARGETMANAGER_EXEC_Export TargetManagerHome_exec_i
- : public virtual TargetManagerHome_Exec,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- TargetManagerHome_exec_i (void);
- virtual ~TargetManagerHome_exec_i (void);
-
- // Supported or inherited operations.
-
- // Home operations.
-
- // Factory and finder operations.
-
- // Attribute operations.
-
- // Implicit operations.
-
- virtual ::Components::EnterpriseComponent_ptr
- create (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
- };
-
- extern "C" TARGETMANAGER_EXEC_Export ::Components::HomeExecutorBase_ptr
- createTargetManagerHome_Impl (void);
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* CIAO_TARGETMANAGER_EXEC_H */
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec_export.h b/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec_export.h
deleted file mode 100644
index 690e5b6136e..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager_exec_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl TARGETMANAGER_EXEC
-// ------------------------------
-#ifndef TARGETMANAGER_EXEC_EXPORT_H
-#define TARGETMANAGER_EXEC_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (TARGETMANAGER_EXEC_HAS_DLL)
-# define TARGETMANAGER_EXEC_HAS_DLL 1
-#endif /* ! TARGETMANAGER_EXEC_HAS_DLL */
-
-#if defined (TARGETMANAGER_EXEC_HAS_DLL) && (TARGETMANAGER_EXEC_HAS_DLL == 1)
-# if defined (TARGETMANAGER_EXEC_BUILD_DLL)
-# define TARGETMANAGER_EXEC_Export ACE_Proper_Export_Flag
-# define TARGETMANAGER_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TARGETMANAGER_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TARGETMANAGER_EXEC_BUILD_DLL */
-# define TARGETMANAGER_EXEC_Export ACE_Proper_Import_Flag
-# define TARGETMANAGER_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TARGETMANAGER_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TARGETMANAGER_EXEC_BUILD_DLL */
-#else /* TARGETMANAGER_EXEC_HAS_DLL == 1 */
-# define TARGETMANAGER_EXEC_Export
-# define TARGETMANAGER_EXEC_SINGLETON_DECLARATION(T)
-# define TARGETMANAGER_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TARGETMANAGER_EXEC_HAS_DLL == 1 */
-
-// Set TARGETMANAGER_EXEC_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TARGETMANAGER_EXEC_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TARGETMANAGER_EXEC_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TARGETMANAGER_EXEC_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TARGETMANAGER_EXEC_NTRACE */
-
-#if (TARGETMANAGER_EXEC_NTRACE == 1)
-# define TARGETMANAGER_EXEC_TRACE(X)
-#else /* (TARGETMANAGER_EXEC_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define TARGETMANAGER_EXEC_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (TARGETMANAGER_EXEC_NTRACE == 1) */
-
-#endif /* TARGETMANAGER_EXEC_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager_stub_export.h b/TAO/CIAO/DAnCE/TargetManager/TargetManager_stub_export.h
deleted file mode 100644
index d362f4f4ac8..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager_stub_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl TARGETMANAGER_STUB
-// ------------------------------
-#ifndef TARGETMANAGER_STUB_EXPORT_H
-#define TARGETMANAGER_STUB_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (TARGETMANAGER_STUB_HAS_DLL)
-# define TARGETMANAGER_STUB_HAS_DLL 1
-#endif /* ! TARGETMANAGER_STUB_HAS_DLL */
-
-#if defined (TARGETMANAGER_STUB_HAS_DLL) && (TARGETMANAGER_STUB_HAS_DLL == 1)
-# if defined (TARGETMANAGER_STUB_BUILD_DLL)
-# define TARGETMANAGER_STUB_Export ACE_Proper_Export_Flag
-# define TARGETMANAGER_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TARGETMANAGER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TARGETMANAGER_STUB_BUILD_DLL */
-# define TARGETMANAGER_STUB_Export ACE_Proper_Import_Flag
-# define TARGETMANAGER_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TARGETMANAGER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TARGETMANAGER_STUB_BUILD_DLL */
-#else /* TARGETMANAGER_STUB_HAS_DLL == 1 */
-# define TARGETMANAGER_STUB_Export
-# define TARGETMANAGER_STUB_SINGLETON_DECLARATION(T)
-# define TARGETMANAGER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TARGETMANAGER_STUB_HAS_DLL == 1 */
-
-// Set TARGETMANAGER_STUB_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TARGETMANAGER_STUB_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TARGETMANAGER_STUB_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TARGETMANAGER_STUB_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TARGETMANAGER_STUB_NTRACE */
-
-#if (TARGETMANAGER_STUB_NTRACE == 1)
-# define TARGETMANAGER_STUB_TRACE(X)
-#else /* (TARGETMANAGER_STUB_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define TARGETMANAGER_STUB_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (TARGETMANAGER_STUB_NTRACE == 1) */
-
-#endif /* TARGETMANAGER_STUB_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/TargetManager/TargetManager_svnt_export.h b/TAO/CIAO/DAnCE/TargetManager/TargetManager_svnt_export.h
deleted file mode 100644
index f57ce799949..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/TargetManager_svnt_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl TARGETMANAGER_SVNT
-// ------------------------------
-#ifndef TARGETMANAGER_SVNT_EXPORT_H
-#define TARGETMANAGER_SVNT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (TARGETMANAGER_SVNT_HAS_DLL)
-# define TARGETMANAGER_SVNT_HAS_DLL 1
-#endif /* ! TARGETMANAGER_SVNT_HAS_DLL */
-
-#if defined (TARGETMANAGER_SVNT_HAS_DLL) && (TARGETMANAGER_SVNT_HAS_DLL == 1)
-# if defined (TARGETMANAGER_SVNT_BUILD_DLL)
-# define TARGETMANAGER_SVNT_Export ACE_Proper_Export_Flag
-# define TARGETMANAGER_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TARGETMANAGER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TARGETMANAGER_SVNT_BUILD_DLL */
-# define TARGETMANAGER_SVNT_Export ACE_Proper_Import_Flag
-# define TARGETMANAGER_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TARGETMANAGER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TARGETMANAGER_SVNT_BUILD_DLL */
-#else /* TARGETMANAGER_SVNT_HAS_DLL == 1 */
-# define TARGETMANAGER_SVNT_Export
-# define TARGETMANAGER_SVNT_SINGLETON_DECLARATION(T)
-# define TARGETMANAGER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TARGETMANAGER_SVNT_HAS_DLL == 1 */
-
-// Set TARGETMANAGER_SVNT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TARGETMANAGER_SVNT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TARGETMANAGER_SVNT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TARGETMANAGER_SVNT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TARGETMANAGER_SVNT_NTRACE */
-
-#if (TARGETMANAGER_SVNT_NTRACE == 1)
-# define TARGETMANAGER_SVNT_TRACE(X)
-#else /* (TARGETMANAGER_SVNT_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define TARGETMANAGER_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (TARGETMANAGER_SVNT_NTRACE == 1) */
-
-#endif /* TARGETMANAGER_SVNT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/DAnCE/TargetManager/descriptors/Domain.cdd b/TAO/CIAO/DAnCE/TargetManager/descriptors/Domain.cdd
deleted file mode 100644
index 382f7f6b83b..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/descriptors/Domain.cdd
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<Deployment:domain
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
-<UUID>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID>
-<label>Hello Domain</label>
-
-
-<node>
- <name>TargetManagerNode_1</name>
- <label>Sender's Node</label>
- <resource>
- <name>Processor</name>
- <resourceType>CPULoad</resourceType>
- <property>
- <name>LoadAverage</name>
- <kind>Quantity</kind>
- <value>
- <type>
- <kind>tk_long</kind>
- </type>
- <value><long>99</long></value>
- </value>
- </property>
- </resource>
-</node>
-<node>
- <name>TargetManagerNode_2</name>
- <label>Receiver's Node</label>
- <resource>
- <name>Processor</name>
- <resourceType>CPULoad</resourceType>
- <property>
- <name>LoadAverage</name>
- <kind>Quantity</kind>
- <value>
- <type>
- <kind>tk_long</kind>
- </type>
- <value><long>99</long></value>
- </value>
- </property>
- </resource>
-</node>
-
-
-<interconnect>
- <name>NoBridgeInterConnect</name>
- <connect>
- <name>Receiver</name>
- <resource>
- <name>Processor</name>
- <resourceType>CPULoad</resourceType>
- <property>
- <name>LoadAverage</name>
- <kind>Quantity</kind>
- <value>
- <type>
- <kind>tk_long</kind>
- </type>
- <value><long>99</long></value>
- </value>
- </property>
- </resource>
- </connect>
-</interconnect>
-
-
-<bridge>
- <name>NoBridge</name>
- <connect>
- <name>NoBridgeInterConnect</name>
- <connect>
- <name>Receiver</name>
- <resource>
- <name>Processor</name>
- <resourceType>CPULoad</resourceType>
- <property>
- <name>LoadAverage</name>
- <kind>Quantity</kind>
- <value>
- <type>
- <kind>tk_long</kind>
- </type>
- <value><long>99</long></value>
- </value>
- </property>
- </resource>
- </connect>
- </connect>
-</bridge>
-
-
-</Deployment:domain>
diff --git a/TAO/CIAO/DAnCE/TargetManager/descriptors/NodeDetails.dat b/TAO/CIAO/DAnCE/TargetManager/descriptors/NodeDetails.dat
deleted file mode 100644
index 0ca8bfefd8b..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/descriptors/NodeDetails.dat
+++ /dev/null
@@ -1,2 +0,0 @@
-TargetManagerNode_1 corbaloc:iiop:localhost:40000/NodeManager
-TargetManagerNode_2 corbaloc:iiop:localhost:30000/NodeManager
diff --git a/TAO/CIAO/DAnCE/TargetManager/descriptors/NodeManagerMap.dat b/TAO/CIAO/DAnCE/TargetManager/descriptors/NodeManagerMap.dat
deleted file mode 100644
index 0ca8bfefd8b..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/descriptors/NodeManagerMap.dat
+++ /dev/null
@@ -1,2 +0,0 @@
-TargetManagerNode_1 corbaloc:iiop:localhost:40000/NodeManager
-TargetManagerNode_2 corbaloc:iiop:localhost:30000/NodeManager
diff --git a/TAO/CIAO/DAnCE/TargetManager/descriptors/flattened_deploymentplan.cdp b/TAO/CIAO/DAnCE/TargetManager/descriptors/flattened_deploymentplan.cdp
deleted file mode 100644
index be10e2254bf..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/descriptors/flattened_deploymentplan.cdp
+++ /dev/null
@@ -1,92 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Modified_Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false></provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="TargetManager-mdd">
- <name>TargetManager-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>TargetManager_exec</artifact>
- <artifact>TargetManager_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="TargetManager-idd">
- <name>TargetManager-idd</name>
- <node>TargetManagerNode_1</node>
- <source><!-- @@ What goes here --></source>
- <implementation>TargetManager-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TargetManager.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
-
- <artifact id="TargetManager_exec">
- <name>TargetManager_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>TargetManager_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createTargetManagerHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="TargetManager_svnt">
- <name>TargetManager_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>TargetManager_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_CIAO_TargetManagerHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/DAnCE/TargetManager/descriptors/run_test_TargetManager.pl b/TAO/CIAO/DAnCE/TargetManager/descriptors/run_test_TargetManager.pl
deleted file mode 100644
index b0b00cf8324..00000000000
--- a/TAO/CIAO/DAnCE/TargetManager/descriptors/run_test_TargetManager.pl
+++ /dev/null
@@ -1,160 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::Run_Test;
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$DAnCE = "$ENV{'ACE_ROOT'}/TAO/CIAO/DAnCE";
-
-$daemons_running = 0;
-$em_running = 0;
-$daemons = 2;
-@ports = ( 40000, 30000 );
-@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" );
-$status = 0;
-$dat_file = "NodeManagerMap.dat";
-$cdp_file = "flattened_DeploymentPlan.cdp";
-
-$E = 0;
-$EM = 0;
-
-# Delete if there are any .ior files.
-sub delete_ior_files {
- for ($i = 0; $i < $daemons; ++$i) {
- unlink $iorfiles[$i];
- }
- unlink PerlACE::LocalFile ("EM.ior");
- unlink PerlACE::LocalFile ("TargetManager.ior");
- unlink PerlACE::LocalFile ("DAM.ior");
-}
-
-sub kill_node_daemons {
- for ($i = 0; $i < $daemons; ++$i) {
- $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1);
- }
-}
-
-sub kill_open_processes {
- if ($daemons_running == 1) {
- kill_node_daemons ();
- }
-
- if ($em_running == 1) {
- $EM->Kill ();
- $EM->TimedWait (1);
- }
-}
-
-sub run_node_daemons {
- for ($i = 0; $i < $daemons; ++$i)
- {
- $iorfile = $iorfiles[$i];
- $port = $ports[$i];
-
- $iiop = "iiop://localhost:$port";
- $node_app = "$DAnCE/NodeApplication/NodeApplication";
-
- $d_cmd = "$DAnCE/NodeManager/NodeManager";
- $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile";
-
- $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param);
- $result = $Daemons[$i]->Spawn ();
- push(@processes, $Daemons[$i]);
-
- if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR
- "ERROR: The ior file of node daemon $i could not be found\n";
- for (; $i > 0; --$i) {
- $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1);
- }
- return -1;
- }
- }
- $daemons_running = 1;
- return 0;
-}
-
-delete_ior_files ();
-
-# Invoke node daemons.
-print "Invoking node daemons\n";
-$status = run_node_daemons ();
-
-if ($status != 0) {
- print STDERR "ERROR: Unable to execute the node daemons\n";
- exit 1;
-}
-
-$ns_running = 1;
-
-# Invoke execution manager.
-print "Invoking execution manager\n";
-$EM = new PerlACE::Process ("$DAnCE/ExecutionManager/Execution_Manager",
- "-o EM.ior -i $dat_file");
-$EM->Spawn ();
-
-if (PerlACE::waitforfile_timed ("EM.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR
- "ERROR: The ior file of execution manager could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-$em_running = 1;
-
-# Invoke executor - start the application -.
-print "Invoking executor - start the application -\n";
-$E =
- new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher",
- "-p flattened_deploymentplan.cdp -k file://EM.ior -o DAM.ior");
-
-$E->SpawnWaitKill (5000);
-
-if (PerlACE::waitforfile_timed (
- "TargetManager.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: The ior file of receiver could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Waiting for 15 secs then invoking client ===\n";
-sleep (15);
-
-print "Making 5 such calls \n";
-
-$call_num = 5;
-
-for ($i = 0; $i < $call_num; ++$i)
-{
- print "Invoking the client\n";
- $tmclient = new PerlACE::Process ("../CmpClient", "file://TargetManager.ior");
- $result = $tmclient->SpawnWaitKill (3000);
-
- if ($result != 0) {
- print STDERR "ERROR: The client returned $result\n";
- $status = 1;
- }
- sleep (15);
-}
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-$E =
- new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher",
- "-k file://EM.ior -i file://DAM.ior");
-$E->SpawnWaitKill (3000);
-
-print "Executor returned.\n";
-print "Shutting down rest of the processes.\n";
-
-delete_ior_files ();
-kill_open_processes ();
-
-exit $status;
diff --git a/TAO/CIAO/DAnCE/XMI.xsd b/TAO/CIAO/DAnCE/XMI.xsd
new file mode 100644
index 00000000000..f4adac91934
--- /dev/null
+++ b/TAO/CIAO/DAnCE/XMI.xsd
@@ -0,0 +1,35 @@
+<?xml version="1.0" ?>
+<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'>
+ <xsd:attribute name="id" type="xsd:ID" />
+ <xsd:attributeGroup name="IdentityAttribs">
+ <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:attributeGroup name="LinkAttribs">
+ <xsd:attribute name="href" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:attributeGroup name="ObjectAttribs">
+ <xsd:attributeGroup ref="xmi:IdentityAttribs" />
+ <xsd:attributeGroup ref="xmi:LinkAttribs" />
+ <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:complexType name="Extension">
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:any processContents="lax" />
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" />
+ <xsd:attributeGroup ref="xmi:ObjectAttribs" />
+ <xsd:attribute name="extender" type="xsd:string" use="optional" />
+ <xsd:attribute name="extenderID" type="xsd:string" use="optional" />
+ </xsd:complexType>
+ <xsd:element name="Extension" type="xmi:Extension" />
+ <xsd:complexType name="Any">
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:any processContents="skip" />
+ </xsd:choice>
+ <xsd:anyAttribute processContents="skip" />
+ </xsd:complexType>
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/XMI.xsd.orig b/TAO/CIAO/DAnCE/XMI.xsd.orig
new file mode 100644
index 00000000000..f4adac91934
--- /dev/null
+++ b/TAO/CIAO/DAnCE/XMI.xsd.orig
@@ -0,0 +1,35 @@
+<?xml version="1.0" ?>
+<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'>
+ <xsd:attribute name="id" type="xsd:ID" />
+ <xsd:attributeGroup name="IdentityAttribs">
+ <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:attributeGroup name="LinkAttribs">
+ <xsd:attribute name="href" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:attributeGroup name="ObjectAttribs">
+ <xsd:attributeGroup ref="xmi:IdentityAttribs" />
+ <xsd:attributeGroup ref="xmi:LinkAttribs" />
+ <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:complexType name="Extension">
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:any processContents="lax" />
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" />
+ <xsd:attributeGroup ref="xmi:ObjectAttribs" />
+ <xsd:attribute name="extender" type="xsd:string" use="optional" />
+ <xsd:attribute name="extenderID" type="xsd:string" use="optional" />
+ </xsd:complexType>
+ <xsd:element name="Extension" type="xmi:Extension" />
+ <xsd:complexType name="Any">
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:any processContents="skip" />
+ </xsd:choice>
+ <xsd:anyAttribute processContents="skip" />
+ </xsd:complexType>
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/new_RepositoryManager/packages/inconsistent.cpk b/TAO/CIAO/DAnCE/new_RepositoryManager/packages/inconsistent.cpk
new file mode 100644
index 00000000000..c944a2d25dd
--- /dev/null
+++ b/TAO/CIAO/DAnCE/new_RepositoryManager/packages/inconsistent.cpk
Binary files differ
diff --git a/TAO/CIAO/DAnCE/new_RepositoryManager/packages/package.cpk b/TAO/CIAO/DAnCE/new_RepositoryManager/packages/package.cpk
new file mode 100644
index 00000000000..ed3721f3165
--- /dev/null
+++ b/TAO/CIAO/DAnCE/new_RepositoryManager/packages/package.cpk
Binary files differ
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.cpp
new file mode 100644
index 00000000000..00b228d0ee3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.cpp
@@ -0,0 +1,61 @@
+// $Id$
+
+// HTTP_Client.cpp, Stoyan
+
+#include "HTTP_Client.h"
+#include "HTTP_Handler.h"
+#include "ace/OS_NS_string.h"
+
+HTTP_Client::HTTP_Client (void)
+{
+}
+
+HTTP_Client::~HTTP_Client (void)
+{
+ this->close ();
+}
+
+// initialize address and filename. No network i/o in open
+
+int
+HTTP_Client::open (const ACE_TCHAR *filename, const ACE_TCHAR *hostname , u_short port)
+{
+ filename_ = ACE_OS::strdup (filename);
+ inet_addr_.set (port, hostname);
+ return 0;
+}
+
+// read from connection length bytes from offset, into Message block
+
+int
+HTTP_Client::read (ACE_Message_Block *mb)
+{
+
+ // Create a HTTP_Client Reader
+ HTTP_Reader HTTP_reader (mb, filename_);
+ HTTP_Handler *brp = &HTTP_reader;
+
+ // Connect to the server
+ if (connector_.connect (brp, inet_addr_) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Client::read():Connector error"), -1);
+
+ return HTTP_reader.byte_count ();
+
+}
+
+
+// close down the HTTP_Client
+
+int
+HTTP_Client::close (void)
+{
+
+ if (filename_)
+ {
+ ACE_OS::free ((void *) filename_);
+ filename_ = 0;
+ }
+ return 0;
+
+}
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.h
new file mode 100644
index 00000000000..eed67d3b93d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Client.h
@@ -0,0 +1,70 @@
+// $Id$
+
+/* -*- C++ -*- */
+// HTTP_Client.h
+
+//============================================================================
+// = FILENAME
+// HTTP_Client.h
+//
+// = DESCRIPTION
+// This is the HTTP_Client class, which is the API for doing file
+// uploads/downloads.
+//
+// = AUTHOR
+// Stoyan Paunov
+//
+//============================================================================
+
+#ifndef HTTP_Client_H
+#define HTTP_Client_H
+
+
+#include "ace/INET_Addr.h"
+#include "ace/Svc_Handler.h"
+#include "ace/SOCK_Connector.h"
+#include "ace/Connector.h"
+#include "ace/Message_Block.h"
+#include "HTTP_Handler.h"
+
+class HTTP_Client
+ // = TITLE
+ // HTTP_Client is intended to provide application API to
+ // classes that wish to do network i/o at a very
+ // high level of abstraction.
+ //
+ // = This class provides the ability to retrieve data from
+ // the network, of specified length and offset, and potentially
+ // use any protocol "under the hood" to do so. It currently
+ // uses HTTP. See HTTP_Handler also.
+{
+public:
+ HTTP_Client (void);
+ ~HTTP_Client (void);
+
+ int open (const ACE_TCHAR *filename,
+ const ACE_TCHAR *hostname = ACE_DEFAULT_SERVER_HOST,
+ u_short port = 80);
+ // initializes the class with the given filename, hostname and port.
+ // it should be called with the filename, before any read/write calls
+
+
+ int read (ACE_Message_Block *mb);
+ // starts a connection, and reads a file from the server into Message_Block mb
+
+ int close ();
+ // Frees memory allocated for filename.
+
+private:
+ ACE_INET_Addr inet_addr_;
+ // store the internet address of the server
+
+ ACE_TCHAR *filename_;
+ // The filename
+
+ ACE_Connector<HTTP_Handler, ACE_SOCK_CONNECTOR> connector_;
+ // The connector endpoint to initiate the client connection
+
+};
+
+#endif /* HTTP_Client_H */
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.cpp
new file mode 100644
index 00000000000..a5312605779
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.cpp
@@ -0,0 +1,202 @@
+// $Id$
+
+// HTTP_Handler.cpp, Stoyan
+
+#include "HTTP_Handler.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+#include "ace/OS_NS_strings.h"
+
+// Empty constructor for compliance with new Connector behavior.
+HTTP_Handler::HTTP_Handler (void)
+{
+}
+
+// Always use this constructor
+HTTP_Handler::HTTP_Handler (ACE_Message_Block * mb,
+ ACE_TCHAR *filename) :
+ mb_ (mb),
+ filename_ (ACE_OS::strdup (filename)),
+ bytecount_ (0)
+{
+}
+
+HTTP_Handler::~HTTP_Handler (void)
+{
+ if (filename_)
+ {
+ ACE_OS::free ((void *) filename_);
+ filename_ = 0;
+ }
+}
+
+// Called by Connector after connection is established
+int
+HTTP_Handler::open (void *)
+{
+ if (this->send_request () != 0)
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Handler::open():send_request failed"), -1);
+
+ if (this->receive_reply () != 0)
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Handler::open():receive_reply failed"), -1);
+ return 0;
+
+}
+
+// No-op
+int
+HTTP_Handler::close (u_long flags)
+{
+ ACE_UNUSED_ARG (flags);
+ return 0;
+}
+
+
+// Always overridden by the derived classes
+int
+HTTP_Handler::send_request (void)
+{
+ return -1;
+}
+
+// Always overridden by the derived classes
+int
+HTTP_Handler::receive_reply (void)
+{
+ return -1;
+}
+
+// used to retrieve the number of bytes read/written by the
+// last operation on the Blob
+int
+HTTP_Handler::byte_count (void)
+{
+ return bytecount_;
+}
+
+// Reader **************************************************
+
+HTTP_Reader::HTTP_Reader (ACE_Message_Block * mb,
+ ACE_TCHAR *filename,
+ const char *request_prefix,
+ const char *request_suffix) :
+ HTTP_Handler (mb, filename),
+ request_prefix_ (request_prefix),
+ request_suffix_ (request_suffix)
+{
+}
+
+// Send the HTTP request
+int
+HTTP_Reader::send_request (void)
+{
+ char mesg [MAX_HEADER_SIZE];
+
+ // Check to see if the request is too big
+ if (MAX_HEADER_SIZE < (ACE_OS::strlen (request_prefix_)
+ + ACE_OS::strlen (filename_)
+ + ACE_OS::strlen (request_suffix_) + 4))
+ ACE_ERROR_RETURN((LM_ERROR,"Request too large!"), -1);
+
+ // Create a message to send to the server requesting retrieval of the file
+ int len = ACE_OS::sprintf (mesg, "%s %s %s", request_prefix_, filename_, request_suffix_);
+
+ // Send the message to server
+ if (peer ().send_n (mesg, len) != len)
+ ACE_ERROR_RETURN((LM_ERROR,"Error sending request"), -1);
+
+
+ return 0;
+}
+
+// Recieve the HTTP Reply
+int
+HTTP_Reader::receive_reply (void)
+{
+ size_t num_recvd = 0;
+ char buf [MTU+1];
+ char *buf_ptr;
+ int bytes_read = 0;
+
+ // Receive the first MTU bytes and strip the header off.
+ // Note that we assume that the header will fit into MTU bytes.
+
+ if (peer ().recv_n (buf, MTU, 0, &num_recvd) >= 0)
+ {
+
+ //Make sure that response type is 200 OK
+ if (ACE_OS::strstr (buf,"200 OK") == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "HTTP_Reader::receiveReply(): Response is not 200 OK" ), -1);
+
+ // Search for the header termination string "\r\n\r\n", or "\n\n". If
+ // found, move past it to get to the data portion.
+ if ((buf_ptr = ACE_OS::strstr (buf,"\r\n\r\n")) != 0)
+ buf_ptr += 4;
+ else if ((buf_ptr = ACE_OS::strstr (buf, "\n\n")) != 0) //for compatibility with JAWS
+ buf_ptr += 2;
+ else
+ buf_ptr = buf;
+
+ // Determine number of data bytes read. This is equal to the
+ // total bytes read minus number of header bytes.
+ bytes_read = num_recvd - (buf_ptr - buf);
+
+ }
+ else
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Reader::receiveReply():Error while reading header"), -1);
+
+ // ***************************************************************
+ // At this point, we have stripped off the header and are ready to
+ // process data. buf_ptr points to the data
+
+ //set the size of the ACE_Message_Block to the current bytes read
+ //NOTE: this function reallocates if necessary
+ //this->mb_->size (bytes_read);
+
+ ACE_Message_Block* curr = this->mb_;
+ curr->cont (new ACE_Message_Block (bytes_read));
+ curr = curr->cont ();
+
+
+ // Copy over all the data bytes into our message buffer.
+ if (curr->copy (buf_ptr, bytes_read) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n",
+ "HTTP_Reader::receiveReply():Error copying data into Message_Block" ), -1);
+
+
+ //read the rest of the data into a number of ACE_Message_Blocks and
+ //chain them together in a link list fashion
+
+ num_recvd = 0;
+
+ do
+ {
+ if (curr->space () == 0)
+ {
+ curr->cont (new ACE_Message_Block (MTU));
+ curr = curr->cont ();
+ }
+
+ if (peer ().recv_n (curr->wr_ptr (), curr->space (), 0, &num_recvd) >= 0)
+ {
+ //move the write pointer
+ curr->wr_ptr (num_recvd);
+
+ //increment bytes_read
+ bytes_read += num_recvd;
+
+ }
+ else
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "HTTP_Reader::receiveReply():Error while reading header"), -1);
+
+ }while (num_recvd != 0);
+
+
+ // Set the byte count to number of bytes received
+ this->bytecount_ = bytes_read;
+
+ return 0;
+
+}
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.h
new file mode 100644
index 00000000000..3a2118bec8d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/HTTP_Handler.h
@@ -0,0 +1,82 @@
+// $Id$
+
+/* -*- C++ -*- */
+// HTTP_Handler.h, Stoyan
+
+//============================================================================
+// = FILENAME
+// HTTP_Handler.h
+//
+// = DESCRIPTION
+// HTTP_Handler is a base class for HTTP_Reader and
+// HTTP_Writer which are created in response to calls to
+// read/write, as appropriate
+//
+// = AUTHOR
+// Stoyan Paunov
+//
+//============================================================================
+
+#ifndef HTTP_HANDLER_H
+#define HTTP_HANDLER_H
+
+#include "ace/SOCK_Stream.h"
+#include "ace/Svc_Handler.h"
+#include "ace/Message_Block.h"
+
+class HTTP_Handler : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH>
+ //class to retrieve data via HTTP
+{
+public:
+ HTTP_Handler (void);
+ // Null constructor, insures that it works properly with Connector
+
+ HTTP_Handler (ACE_Message_Block *mb,
+ ACE_TCHAR *filename);
+ // Always use this constructor to make HTTP_Handlers
+
+ int byte_count (void);
+ // returns the number of bytes read/written in the last operation.
+
+ virtual int open (void * = 0);
+ // Activate this instance of the <HTTP_Handler>
+
+ virtual int close (u_long flags = 0);
+ // Close down the Blob
+
+ ~HTTP_Handler (void);
+
+protected:
+ virtual int send_request (void);
+ virtual int receive_reply (void);
+
+ ACE_Message_Block *mb_;
+ ACE_TCHAR *filename_;
+ int bytecount_;
+ enum
+ {
+ MAX_HEADER_SIZE = 2048,
+ // The handler assumes that the first 2048 bytes of a server response
+ // contains the header
+
+ MTU = BUFSIZ
+ //set the MAX_TRANSMISSION_UNIT (MTU) = BUFSIZ as defined by OS
+ };
+};
+
+class HTTP_Reader : public HTTP_Handler
+{
+public:
+ HTTP_Reader (ACE_Message_Block *mb,
+ ACE_TCHAR *filename,
+ const char *request_prefix = "GET",
+ const char *request_suffix = "HTTP/1.0\r\n\r\n");
+
+private:
+ int send_request (void);
+ int receive_reply (void);
+ const char *request_prefix_;
+ const char *request_suffix_;
+};
+
+#endif /* HTTP_HANDLER_H */
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/Options.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/Options.cpp
new file mode 100644
index 00000000000..45227d1741b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/Options.cpp
@@ -0,0 +1,88 @@
+// $Id$
+
+// Options.cpp,v Stoyan
+
+#include "ace/Get_Opt.h"
+#include "ace/ARGV.h"
+#include "Options.h"
+
+Options *Options::instance_ = 0;
+
+Options *
+Options::instance (void)
+{
+
+ if (Options::instance_ == 0)
+ Options::instance_ = new Options;
+
+ return Options::instance_;
+}
+
+void
+Options::parse_args (int argc, ACE_TCHAR *argv[])
+{
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, ACE_TEXT ("n:l:u:ifds"));
+
+ int c;
+
+ while ((c = get_opt ()) != -1)
+ switch (c)
+ {
+ case 'i':
+ this->install_ = true;
+ break;
+ case 'd':
+ this->delete_ = true;
+ break;
+ case 'f':
+ this->find_ = true;
+ break;
+ case 's':
+ this->shutdown_ = true;
+ break;
+ case 'n':
+ this->name_ = get_opt.opt_arg ();
+ break;
+ case 'l':
+ this->path_ = get_opt.opt_arg ();
+ break;
+ case 'u':
+ this->uuid_ = get_opt.opt_arg ();
+ break;
+ // Usage fallthrough.
+ default:
+ this->usage ();
+
+ }
+
+ if ((this->name_ == "") && (this->shutdown_ == false) && (this->uuid_ == ""))
+ this->usage ();
+ else if (this->name_ != "")
+ {
+ if (!(this->install_ || this->find_ || this->delete_))
+ this->usage ();
+ else if (this->install_ && this->path_ == "")
+ this->usage ();
+ }
+ else if (this->uuid_ != "" && !this->find_)
+ this->usage ();
+}
+
+void Options::usage (void)
+{
+ ACE_DEBUG ((LM_DEBUG, "OPTIONS: -s <shutdown> -n <:name> [-i <install> -l <:path>] \
+ [-d <delete>] [-f <find>] [-u <:uuid>]\n"));
+ ACE_OS::exit (1);
+}
+
+
+Options::Options (void)
+ : name_ (""),
+ uuid_ (""),
+ path_ (""),
+ delete_ (false),
+ install_ (false),
+ find_ (false),
+ shutdown_ (false)
+{
+}
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/Options.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/Options.h
new file mode 100644
index 00000000000..32fad271f7d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/Options.h
@@ -0,0 +1,71 @@
+// $Id$
+
+/* -*- C++ -*- */
+// Options.h, Stoyan
+
+//============================================================================
+//
+// = LIBRARY
+// JAWS
+//
+// = FILENAME
+// Options.h
+//
+// = DESCRIPTION
+// Options is an Singleton for blobby
+//
+// = AUTHOR
+// Stoyan Paunov
+//
+//============================================================================
+
+#ifndef RM_OPTIONS_H
+#define RM_OPTIONS_H
+
+#include "ace/Get_Opt.h"
+#include "ace/SString.h" //for ACE_CString
+
+class Options
+{
+public:
+ /// Returns the singleton instance
+ static Options *instance (void);
+
+ /// parses commandline arguments
+ void parse_args (int argc, ACE_TCHAR *argv[]);
+
+ ACE_CString name_;
+ // Name of package
+
+ ACE_CString uuid_;
+ // Name of package
+
+ ACE_CString path_;
+ // specifies the local path for install
+
+ /// delete the package_ name
+ bool delete_;
+
+ /// installs the package_ name
+ bool install_;
+
+ bool find_;
+ // installs the package_ name
+
+
+ /// shutdown the RepositoryManagerDemon
+ bool shutdown_;
+
+
+protected:
+ /// protected constructor, singleton
+ Options (void);
+
+ /// the singleton
+ static Options *instance_;
+
+
+ void usage (void);
+};
+
+#endif /* RM_OPTIONS_H */
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.cpp
new file mode 100644
index 00000000000..8e8c7daa665
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.cpp
@@ -0,0 +1,269 @@
+// $Id$
+
+#include "ace/Log_Msg.h"
+#include "ciao/Deployment_DataC.h"
+#include "PC_Updater.h"
+#include "PC_Updater_T.h"
+#include "ace/Containers_T.h" //for ACE_Double_Linked_List
+
+
+#include <iostream>
+using namespace std;
+
+namespace
+{
+ const size_t TEMP_LEN = 1024;
+}
+
+using namespace PC_Updater_T;
+
+
+ //PATH of glory/gory to update the locations of the IADs
+ //
+ //PackageConfiguration something;
+ //ComponentPackageDescriptions basePackage;
+ //PackagedComponentImplementations implementation;
+ //ComponentImplementationDescription referencedImplementation;
+ //
+ //MONOLITHIC Component:
+ //MonolithicImplementationDescriptions monolithicImpl;
+ //NamedImplementationArtifacts primaryArtifact;
+ //ImplementationArtifactDescription referencedArtifact;
+ //::CORBA::StringSeq location;
+ //
+ //ASSEMBLY-BASED Component
+ //ComponentAssemblyDescriptions assemblyImpl;
+ //SubcomponentInstantiationDescriptions instance;
+ //ComponentPackageDescriptions package;
+ //...
+
+
+ /*
+ * PC_Updater Constructors
+ */
+
+PC_Updater::PC_Updater (const char* server_path, const char* package)
+: server_path_ (server_path),
+ file_list_ (&allocator_),
+ package_ (package),
+ success_ (true)
+{
+}
+
+
+PC_Updater::PC_Updater (ACE_CString& server_path, ACE_CString& package)
+: server_path_ (server_path),
+ file_list_ (&allocator_),
+ package_ (package),
+ success_ (true)
+{
+}
+
+ /*
+ * PC_Updater - Destructor
+ */
+
+PC_Updater::~PC_Updater ()
+{
+ this->clear_list ();
+}
+
+
+void PC_Updater::clear_list ()
+{
+ while (!this->file_list_.is_empty ())
+ {
+ ZIP_File_Info* inf = this->file_list_.delete_head ();
+
+ //deallocate the head of the filename list
+ delete inf;
+ }
+}
+
+
+ /*
+ * PC_Updater - Object update methods
+ */
+
+
+ // PackageConfiguration
+
+ bool PC_Updater::update (const ::Deployment::PackageConfiguration &pc)
+ {
+ //get the list of files in the package and figure out the names of all necessary files
+ if (!ZIP_Wrapper::file_list_info (const_cast <char*> (this->package_.c_str ()), this->file_list_))
+ return false;
+
+ update_sequence (pc.basePackage, this);
+
+ return this->success_;
+ }
+
+
+ // ComponentInterfaceDescription
+
+ void PC_Updater::update (const ::Deployment::ComponentInterfaceDescription &cid)
+ {
+ }
+
+ // Requirement
+
+ void PC_Updater::update (const ::Deployment::Requirement &req)
+ {
+ }
+
+
+ // ComponentExternalPortEndpoint
+
+ void PC_Updater::update (const ::Deployment::ComponentExternalPortEndpoint &cepe)
+ {
+ }
+
+
+
+ // ImplementationDependency
+
+ void PC_Updater::update(const Deployment::ImplementationDependency &id)
+ {
+ }
+
+ // ComponentPackageReference
+
+ void PC_Updater::update (const ::Deployment::ComponentPackageReference &cpr)
+ {
+ }
+
+ // SubcomponentInstantiationDescription
+
+ void PC_Updater::update (const ::Deployment::SubcomponentInstantiationDescription &sid)
+ {
+ update_sequence (sid.package, this);
+ }
+
+ // SubcomponentPortEndpoint
+
+ void PC_Updater::update (const ::Deployment::SubcomponentPortEndpoint& spe)
+ {
+ }
+
+ // AssemblyConnectionDescription
+
+ void PC_Updater::update (const ::Deployment::AssemblyConnectionDescription &acd)
+ {
+ }
+
+
+ // AssemblyPropertyMapping
+
+ void
+ PC_Updater::update (const ::Deployment::AssemblyPropertyMapping &apm)
+ {
+ }
+
+ // ComponentAssemblyDescription
+
+ void PC_Updater::update (const ::Deployment::ComponentAssemblyDescription& cad)
+ {
+ update_sequence (cad.instance, this);
+ }
+
+ // ImplementationArtifactDescription
+
+ void PC_Updater::update (const ::Deployment::ImplementationArtifactDescription &iad)
+ {
+ bool found = false;
+
+ cout << "label: " << iad.label << endl;
+ cout << "location: " << CORBA::string_dup (iad.location[0].in ()) << endl;
+
+ ACE_Double_Linked_List_Iterator<ZIP_File_Info> iter (this->file_list_);
+ char str [TEMP_LEN];
+
+ while (!iter.done ())
+ {
+ ACE_OS::strncpy ( str, iter.next ()->name_.c_str (), TEMP_LEN);
+ //weird. Need to call next to get current ?!?!
+
+ const char* name;
+ const char* ext;
+
+ name = ACE_OS::strstr (str, iad.location[0].in ());
+
+ if (name)
+ {
+ ext = ACE_OS::strstr (name, ".");
+
+ ACE_CString loc (this->server_path_);
+ loc += iad.location[0].in ();
+ loc += ext;
+
+ iad.location[0] = CORBA::string_dup (loc.c_str ());
+
+ cout << "new location: " << iad.location[0].in () << endl << endl;
+
+ found = true;
+ break;
+ }
+ iter++;
+ }
+
+ if (!found)
+ this->success_ = false;
+ }
+
+ // NamedImplementationArtifact
+
+ void PC_Updater::update (const ::Deployment::NamedImplementationArtifact &nia)
+ {
+ update (nia.referencedArtifact);
+ }
+
+ // ImplementationRequirement
+
+ void PC_Updater::update (const ::Deployment::ImplementationRequirement &ir)
+ {
+ }
+
+ // MonolithicImplementationDescription
+
+ void PC_Updater::update (const ::Deployment::MonolithicImplementationDescription &mid)
+ {
+ update_sequence (mid.primaryArtifact, this);
+ }
+
+ // Capability
+
+ void PC_Updater::update (const ::Deployment::Capability &capability)
+ {
+ }
+
+
+
+ // ComponentImplementationDescription
+
+ void PC_Updater::update (
+ const ::Deployment::ComponentImplementationDescription &cid)
+ {
+ update_sequence (cid.assemblyImpl, this);
+ update_sequence (cid.monolithicImpl, this);
+ }
+
+ // PackagedComponentImplementation
+
+ void PC_Updater::update (const ::Deployment::PackagedComponentImplementation &pci)
+ {
+ PC_Updater::update (pci.referencedImplementation);
+ }
+
+ // ComponentPackageDescription
+
+ void PC_Updater::update (const ::Deployment::ComponentPackageDescription &comppkgdesc)
+ {
+ update_sequence (comppkgdesc.implementation, this);
+ }
+
+
+ // Property
+ void PC_Updater::update (const Deployment::Property& property)
+ {
+ }
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.h
new file mode 100644
index 00000000000..8833f6ec6f3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater.h
@@ -0,0 +1,109 @@
+//==================================================================
+/**
+ * file PC_Updater.h
+ *
+ * $Id$
+ *
+ * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef PC_UPDATER_H
+#define PC_UPDATER_H
+#include /**/ "ace/pre.h"
+
+#include "ciao/DeploymentC.h"
+#include "ace/SString.h" //for the ACE_CString
+
+#include "ZIP_Wrapper.h" //Wrapper around zzip
+#include "ace/Containers_T.h" //for ACE_Double_Linked_List
+#include "ace/Malloc_Allocator.h" //for ACE_New_Allocator needed by the doubly link list
+
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+
+ /**
+ * class PC_Updater
+ *
+ * This class defines a set of overloaded methods used to update
+ * the contents of a PackageConfiguration. More specifically the class
+ * goes through the PackageConfiguration and updates the locations of the
+ * artifacts, wrt to their location on the HTTP server.
+ */
+
+class PC_Updater
+{
+public:
+
+ ///constructors
+
+ PC_Updater (const char* server_path, const char* package);
+ PC_Updater (ACE_CString& server_path, ACE_CString& package);
+
+ ~PC_Updater ();
+
+ /// A whole slew of overloaded routines for different IDL
+ /// data types part of the PackageConfiguration.
+
+ bool update (const ::Deployment::PackageConfiguration &pc);
+
+ void update (const ::Deployment::Property &property);
+
+ void update (const ::Deployment::AssemblyConnectionDescription &acd);
+
+ void update (const ::Deployment::AssemblyPropertyMapping &apm);
+
+ void update (const ::Deployment::ComponentPackageDescription &comppkgdesc);
+
+ void update (const ::Deployment::MonolithicImplementationDescription &mid);
+
+ void update (const ::Deployment::PackagedComponentImplementation &pci);
+
+ void update (const ::Deployment::SubcomponentPortEndpoint &spe);
+
+ void update (const ::Deployment::Requirement &requirement);
+
+ void update (const ::Deployment::ComponentExternalPortEndpoint &cepe);
+
+ void update (const ::Deployment::ComponentPackageReference &cpr);
+
+ void update (const ::Deployment::ComponentImplementationDescription &cid);
+
+ void update (const ::Deployment::SubcomponentInstantiationDescription &sid);
+
+ void update (const ::Deployment::NamedImplementationArtifact &named_implementation);
+
+ void update (const ::Deployment::ComponentInterfaceDescription &cid);
+
+ void update (const ::Deployment::Capability &capability);
+
+ void update (const ::Deployment::ImplementationArtifactDescription &iad);
+
+ void update (const ::Deployment::ImplementationRequirement &ir);
+
+ void update(const Deployment::ImplementationDependency &id);
+
+ void update (const ::Deployment::ComponentAssemblyDescription& cad);
+
+protected:
+
+ void clear_list ();
+
+private:
+
+ ACE_CString server_path_;
+
+ //create a doubly link list
+ ACE_New_Allocator allocator_;
+ ACE_Double_Linked_List<ZIP_File_Info> file_list_;
+
+ ACE_CString package_;
+ bool success_;
+};
+
+#include /**/ "ace/post.h"
+
+#endif /* PC_UPDATER_H */
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
new file mode 100644
index 00000000000..4bd4de11c67
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.cpp
@@ -0,0 +1,22 @@
+// $Id$
+#ifndef PC_UPDATER_T_C
+#define PC_UPDATER_T_C
+#include "PC_Updater.h"
+#include "PC_Updater_T.h"
+
+ namespace PC_Updater_T
+ {
+ // Dumps a sequence
+ template <typename SEQUENCE>
+ void update_sequence (const SEQUENCE &seq, PC_Updater* updater)
+ {
+ CORBA::ULong size = seq.length ();
+
+ if (size != 0)
+ for (CORBA::ULong i = 0; i < size; ++i)
+ updater->update (seq[i]);
+ }
+
+ }
+
+#endif /* PC_Updater_C */
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.h
new file mode 100644
index 00000000000..d2c7e9cb836
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/PC_Updater_T.h
@@ -0,0 +1,38 @@
+//==================================================================
+/**
+ * file PC_Updater_T.h
+ *
+ * $Id$
+ *
+ * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
+ */
+//=====================================================================
+
+#ifndef CIAO_CONFIG_HANDLERS_PC_UPDATER_T_H
+#define CIAO_CONFIG_HANDLERS_PC_UPDATER_T_H
+#include /**/ "ace/pre.h"
+
+#include "ace/config-lite.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+ namespace PC_Updater_T
+ {
+ template <typename SEQUENCE>
+ static void update_sequence (const SEQUENCE &seq);
+ }
+
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "PC_Updater_T.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("PC_Updater_T.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+
+#include /**/ "ace/post.h"
+#endif /*CIAO_CONFIG_HANDLERS_PC_Updater_T_H*/
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/README.txt b/TAO/CIAO/DAnCE/spec_RepositoryManager/README.txt
new file mode 100644
index 00000000000..29495032206
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/README.txt
@@ -0,0 +1,30 @@
+This is the README file for the Repository Manager (RM).
+
+In order to be able to compile the RM you need to have ZZIP lib because the RM
+uses it to read the contents of CCM packages. ZZIP itself is a C++ wrapper
+around ZLIB, thus you will also need ZLIB. In order to compile the RM successfully
+you will need to do the following:
+
+1. Download ZLIB and ZZIP-LIB
+2. Compile the multi-threaded versions of these libraries
+3. create a separate directory for each library and create an include and a lib
+subdirectory within them. Then copy the libraries files in the library subdirectory.
+Copy zlib.h in the zlib_path/include and copy zziplib.h, zzip-conf.h and zzip-msvc.h
+(for Windows platforms; Linux might have its own file!!!). This step might be easier if
+you find a binary package of the libraries and just install it.
+4. Set $ZLIB_ROOT and $ZZIP_ROOT to point to the directories where you placed the
+libraries and the include files.
+5. Turn on zzip and zlib in default.features for MPC.
+6. MPC will handle the rest.
+
+
+Things to watch out for:
+On Windows make sure that you are linking the right ZIP libraries
+together with the rest of the libraries, i.e. if you are building the debug version of ACE,
+TAO and CIAO, then use the debug version of the ZIP libraries. Otherwise the RM will compile
+but it will not work properly.
+
+to compile the idl with the tao_idl compiler:
+
+tao_idl -GI new_RepositoryManager.idl -I%TAO_ROOT% -I%TAO_ROOT%\tao -I%TAO_ROOT%\orbsvcs -I%CIAO_ROOT%\DAnCE\ciao
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.cpp
new file mode 100644
index 00000000000..db446d6c31e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.cpp
@@ -0,0 +1,257 @@
+// $Id$
+
+#include "RM_Helper.h"
+#include "ciao/Packaging_DataC.h" //for the PackageConfiguration declaration
+#include "tao/CDR.h" //for TAO CDR classes
+#include "ace/Message_Block.h" //for ACE_Message_Block
+#include "ace/Auto_Ptr.h" //for Auto_Ptr
+#include "ace/OS_NS_fcntl.h" //for open
+#include "ace/OS_NS_unistd.h" //for close
+#include "ace/OS_NS_sys_stat.h" //for filesize and mkdir
+
+
+void RM_Helper::pc_to_cdr (const Deployment::PackageConfiguration& pc, TAO_OutputCDR& cdr)
+{
+ cdr << pc;
+}
+
+
+void RM_Helper::cdr_to_pc (Deployment::PackageConfiguration& pc, TAO_InputCDR& cdr)
+{
+ cdr >> pc;
+}
+
+
+bool RM_Helper::externalize (const Deployment::PackageConfiguration& pc, const char* path)
+{
+ size_t bufsiz = 0;
+ TAO_OutputCDR out (bufsiz);
+
+ RM_Helper::pc_to_cdr (pc, out);
+
+ const ACE_Message_Block* mb = out.begin ();
+
+ return write_pc_to_disk (path, *(const_cast<ACE_Message_Block*> (mb)));
+}
+
+bool RM_Helper::reincarnate (Deployment::PackageConfiguration& pc, const char* path)
+{
+ size_t length = 0;
+ ACE_Auto_Ptr<ACE_Message_Block> mb (read_pc_from_disk (path, length));
+
+ if (!mb.get ())
+ return false;
+
+ TAO_InputCDR in (mb.get ());
+
+ RM_Helper::cdr_to_pc (pc, in);
+
+ return true;
+}
+
+
+//---------------------------------------------------------------------
+//These are a bit obsolete but until I am sure I will keep them
+
+//This function attempts to write a sequence of bytes to
+//a specified location. A 0 is returned in the case of an error
+//and a 1 upon success
+
+bool RM_Helper::write_to_disk (
+ const char* full_path,
+ const CORBA::Octet* buffer,
+ size_t length
+ )
+{
+
+ // Open a file handle to the local filesystem
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file creation error")),
+ 0);
+
+ //write the data to the file
+ if (ACE_OS::write (handle, buffer, length) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file write error")),
+ 0);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ return 1;
+}
+
+
+//This function attempts to write a sequence of bytes from an
+//ACE_Message_Block to a specified location. A 0 is returned
+//in the case of an error and a 1 upon success
+
+bool RM_Helper::write_to_disk (
+ const char* full_path,
+ ACE_Message_Block& mb,
+ bool replace
+ )
+{
+
+ ACE_stat stat;
+
+ if (ACE_OS::stat(full_path, &stat) != -1 && !replace)
+ return 0;
+
+ // Open a file handle to the local filesystem
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file creation error")),
+ 0);
+
+ //write the data to the file
+ for (ACE_Message_Block * curr = &mb; curr != 0; curr = curr->cont ())
+ if (ACE_OS::write_n (handle, curr->rd_ptr(), curr->length()) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("write error")),
+ 0);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ return 1;
+}
+
+
+//This function attempts to write a sequence of bytes from an
+//ACE_Message_Block to a specified location. A 0 is returned
+//in the case of an error and a 1 upon success
+//
+//NOTE: This function write the contents in a way that preserves the
+//structure of the ACE_Message_Block. It is relevant for
+//PackageConfigurations ONLY
+
+
+bool RM_Helper::write_pc_to_disk (
+ const char* full_path,
+ ACE_Message_Block& mb,
+ bool replace
+ )
+{
+
+ ACE_stat stat;
+
+ if (ACE_OS::stat(full_path, &stat) != -1 && !replace)
+ return 0;
+
+ // Open a file handle to the local filesystem
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file creation error")),
+ 0);
+
+ //write the data to the file
+ for (ACE_Message_Block * curr = &mb; curr != 0; curr = curr->cont ())
+ if (ACE_OS::write_n (handle, curr->rd_ptr(), curr->length()) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("write error")),
+ 0);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ return 1;
+}
+
+
+//This function attempts to read a sequence of bytes from a specified
+//location and returns an octet sequence. A 0 is returned
+//in the case of an error and a 1 upon success
+
+CORBA::Octet* RM_Helper::read_from_disk (
+ const char* full_path,
+ size_t &length
+ )
+{
+ //open the file
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_RDONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::read_from_disk] file open error")),
+ 0);
+
+ ACE_stat file_info;
+
+ ACE_OS::fstat (handle, &file_info);
+
+ CORBA::Octet* buffer = new CORBA::Octet[file_info.st_size];
+
+ if (buffer == 0)
+ return 0;
+
+ //read the contents of the file into the buffer
+ if (ACE_OS::read_n (handle, buffer, file_info.st_size) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::read_from_disk] file read error")),
+ 0);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ length = file_info.st_size;
+ return buffer;
+}
+
+
+
+ ///function to read the contents of a file from disk into an ACE_Message_Block
+ ///returns a pointer to an ACE_Message_Block and updates the lenght on success
+ /// 0 on failure
+
+
+ACE_Message_Block* RM_Helper::read_pc_from_disk (
+ const char* full_path,
+ size_t &length
+ )
+{
+ length = 0;
+
+ //open the file
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_RDONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::read_mb_from_disk] file open error")),
+ 0);
+
+ ACE_stat file_info;
+
+ ACE_OS::fstat (handle, &file_info);
+
+ ACE_Message_Block* mb = new ACE_Message_Block (file_info.st_size + 1);
+
+ if (mb == 0)
+ return 0;
+
+ //read the contents of the file into the buffer
+ if (ACE_OS::read_n (handle, mb->wr_ptr (), file_info.st_size) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::read_mb_from_disk] file read error")),
+ 0);
+
+ mb->length (file_info.st_size);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ length = file_info.st_size;
+ return mb;
+}
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.h
new file mode 100644
index 00000000000..e78be2e4f44
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RM_Helper.h
@@ -0,0 +1,85 @@
+// $Id$
+
+#ifndef RM_HELPER_H_
+#define RM_HELPER_H_
+
+
+#include "ciao/Packaging_DataC.h" //for the PackageConfiguration declaration
+#include "tao/CDR.h" //for TAO CDR classes
+
+//int operator<< (ACE_OutputCDR& cdr, const Deployment::PackageConfiguration& pc);
+//int operator>> (ACE_InputCDR& cdr, Deployment::PackageConfiguration& pc);
+//Similar operators are generated by the IDL compiler
+//
+//Do search for "Deployment::PackageConfiguration &" in Packaging_DataC.cpp
+//
+//::CORBA::Boolean operator<< (
+// TAO_OutputCDR &strm,
+// const Deployment::PackageConfiguration &_tao_aggregate
+//
+//::CORBA::Boolean operator>> (
+// TAO_InputCDR &strm,
+// Deployment::PackageConfiguration &_tao_aggregate
+// )
+
+
+class RM_Helper
+{
+public:
+
+ static void pc_to_cdr (const Deployment::PackageConfiguration& pc, TAO_OutputCDR& cdr);
+
+ static void cdr_to_pc (Deployment::PackageConfiguration& pc, TAO_InputCDR& cdr);
+
+ static bool externalize (const Deployment::PackageConfiguration& pc, const char* path);
+
+ static bool reincarnate (Deployment::PackageConfiguration& pc, const char* path);
+
+ ///function that writes out a file to a specified location on the hard disk
+ ///returns 1 on success
+ /// 0 on error
+
+ static bool write_to_disk (const char* full_path,
+ const CORBA::Octet* buffer,
+ size_t length
+ );
+
+
+ ///function that writes out a file to a specified location on the hand disk
+ ///returns 1 on success
+ /// 0 on already exists and replace == false
+ /// 0 on error
+
+ static bool write_to_disk (const char* full_path,
+ ACE_Message_Block& mb,
+ bool replace = true
+ );
+
+ ///function that writes out a file to a specified location on the hand disk
+ ///returns 1 on success
+ /// 0 on already exists and replace == false
+ /// 0 on error
+ ///
+ ///NOTE: This function is relevant for PackageConfigurations ONLY
+
+ static bool write_pc_to_disk (const char* full_path,
+ ACE_Message_Block& mb,
+ bool replace = true
+ );
+
+ ///function to read the contents of a file from disk into a CORBA::OctetSeq
+ ///returns a pointer to a CORBA::Octet buffer and updates the lenght on success
+ /// 0 on failure
+
+ static CORBA::Octet* read_from_disk (const char* full_path, size_t &length);
+
+ ///function to read the contents of a file from disk into an ACE_Message_Block
+ ///returns a pointer to an ACE_Message_Block and updates the lenght on success
+ /// 0 on failure
+
+
+ static ACE_Message_Block* read_pc_from_disk (const char* full_path, size_t &length);
+
+};
+
+#endif
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RMadmin.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/RMadmin.cpp
new file mode 100644
index 00000000000..3b96e606e83
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RMadmin.cpp
@@ -0,0 +1,219 @@
+// $Id$
+
+/***
+ * file RMClient.cpp
+ *
+ * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
+ **/
+
+#include "RepositoryManagerC.h"
+#include "Options.h"
+
+//#include "Config_Handlers/pcd.hpp" //for the PackageConfiguration data struct
+#include "ace/OS_NS_fcntl.h" //for open
+#include "ace/OS_NS_unistd.h" //for close
+#include "ace/OS_NS_sys_stat.h" //for filesize and fstat and mkdir
+
+#include "Config_Handlers/DnC_Dump.h"
+
+#include <iostream>
+using namespace std;
+
+#include "RM_Helper.h" //to be able to externalize/internalize a PackageConfiguration
+#include "tao/CDR.h" //for TAO CDR classes
+#include "ace/Message_Block.h" //for ACE_Message_Block
+
+
+
+//IOR file of the RM
+const char * ior = "file://RepositoryManagerDeamon.ior";
+
+
+///=============================COUPLE OF HELPER METHORS==================================
+CORBA::Octet* read_from_disk (
+ const char* full_path,
+ size_t &length
+ );
+
+int write_to_disk (
+ const char* full_path,
+ const CORBA::Octet* buffer,
+ size_t length
+ );
+///========================================================================================
+
+
+///main function that provides a sample interface for RM clients
+
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ ACE_TRY_NEW_ENV
+ {
+ // Initialize orb
+ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv,
+ ""ACE_ENV_ARG_PARAMETER);
+
+ ACE_TRY_CHECK;
+
+
+ CORBA::Object_var obj =
+ orb->string_to_object (ior
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CIAO::RepositoryManagerDaemon_var rm =
+ CIAO::RepositoryManagerDaemon::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (rm.in ()))
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Unable to acquire RepositoryManagerDaemon's objref\n"),
+ -1);
+ }
+
+
+ Options* options = Options::instance ();
+ options->parse_args (argc, argv);
+
+ if (options->shutdown_)
+ {
+ rm->shutdown ();
+ }
+ else if (options->install_)
+ {
+ try
+ {
+ rm->installPackage (options->name_.c_str (), options->path_.c_str ());
+ }
+ catch (CORBA::Exception & ex)
+ {
+ cout << "\nException caught!" << ex << "\n";
+ return 0;
+ }
+
+ cout << "\nReassuring that the package in the repository ..." << endl;
+ try
+ {
+ Deployment::PackageConfiguration_var pc = rm->findPackageByName (options->name_.c_str ());
+ cout << "The package was found!" << endl;
+ cout << "Label: " << pc->label << endl;
+ cout << "UUID: " << pc->UUID << endl;
+ }
+ catch (CORBA::Exception &)
+ {
+ cout << "\nError! Package not found!" << endl;
+ }
+ }
+ else if (options->delete_)
+ {
+ try
+ {
+ rm->deletePackage (options->name_.c_str ());
+ cout << options->name_.c_str () << " deleted" << endl;
+ }
+ catch (CORBA::Exception &)
+ {
+ cout << "\nNo such package!" << endl;
+ }
+
+ }
+ else if (options->find_)
+ {
+ if (options->name_ != "")
+ {
+ Deployment::PackageConfiguration_var pc = rm->findPackageByName (options->name_.c_str ());
+ cout << "The package was found!" << endl;
+ Deployment::DnC_Dump::dump (pc);
+ }
+ else
+ {
+ Deployment::PackageConfiguration_var pc = rm->findPackageByUUID (options->uuid_.c_str ());
+ cout << "The package was found!" << endl;
+ Deployment::DnC_Dump::dump (pc);
+ }
+ }
+
+ orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Unknown exception \n");
+ return -1;
+ }
+ ACE_ENDTRY;
+
+ return 0;
+}
+
+
+
+CORBA::Octet* read_from_disk (
+ const char* full_path,
+ size_t &length
+ )
+{
+ //open the file
+
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_RDONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::read_from_disk] file open error")),
+ 0);
+
+ ACE_stat file_info;
+
+ ACE_OS::fstat (handle, &file_info);
+
+ CORBA::Octet* buffer = new CORBA::Octet[file_info.st_size];
+
+ if (buffer == 0)
+ return 0;
+
+ //read the contents of the file into the buffer
+ if (ACE_OS::read_n (handle, buffer, file_info.st_size) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file write error")),
+ 0);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ length = file_info.st_size;
+ return buffer;
+}
+
+
+int write_to_disk (
+ const char* full_path,
+ const CORBA::Octet* buffer,
+ size_t length
+ )
+{
+
+ // Open a file handle to the local filesystem
+ ACE_HANDLE handle = ACE_OS::open (full_path, O_CREAT | O_TRUNC | O_WRONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file creation error")),
+ -1);
+
+ //write the data to the file
+ if (ACE_OS::write (handle, buffer, length) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[RM::write_to_disk] file write error")),
+ -1);
+
+ // Close the file handle
+ ACE_OS::close (handle);
+
+ return 1;
+}
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.cpp
new file mode 100644
index 00000000000..ebe07839060
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.cpp
@@ -0,0 +1,157 @@
+// $Id$
+
+/***
+ * file RepositoryManager.cpp
+ *
+ * author Stoyan Paunov <spaunov@isis.vanderbilt.edu>
+ **/
+
+
+#include "RepositoryManager_Impl.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/streams.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Task.h"
+using namespace std;
+
+namespace
+{
+///name of the file holding the IOR of the RM
+const char * rm_ior = "RepositoryManagerDeamon.ior";
+
+///default number of worker threads to run in the multi-threaded RM
+const unsigned int nthreads = 3;
+}
+
+
+///Class that implements the service routine of the worker threads
+///of the repository manager
+
+class Worker : public ACE_Task_Base
+{
+ // = TITLE
+ // Run a server thread
+ //
+ // = DESCRIPTION
+ // Use the ACE_Task_Base class to run server threads
+ //
+public:
+ Worker (CORBA::ORB_ptr orb);
+ // ctor
+
+ virtual int svc (void);
+ // The thread entry point.
+
+private:
+ CORBA::ORB_var orb_;
+ // The orb
+};
+
+
+///Main function
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ try
+ {
+ //init the ORB
+ CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
+
+ //Get the root POA object
+ CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA");
+
+ //downcast to POA type
+ PortableServer::POA_var root_poa = PortableServer::POA::_narrow (obj.in ());
+
+ //activate the POA manager
+ PortableServer::POAManager_var mgr = root_poa->the_POAManager ();
+ mgr->activate ();
+
+ //create a servant
+ CIAO_RepositoryManagerDaemon_i* repo = new CIAO_RepositoryManagerDaemon_i (orb.in ());
+
+ //trasfer ownership to the POA
+ PortableServer::ServantBase_var distributor_owner_transfer(repo);
+
+ //register and implicitly activate servant
+ CIAO::RepositoryManagerDaemon_var RepositoryManagerDeamon = repo->_this ();
+
+ //convert the IOR to string
+ CORBA::String_var ior = orb->object_to_string (RepositoryManagerDeamon.in ());
+
+ //output the IOR to a file
+ FILE* ior_out = ACE_OS::fopen (rm_ior, "w");
+
+ if (ior_out == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot open output file for writing IOR: %s",
+ rm_ior),
+ 1);
+
+ ACE_OS::fprintf (ior_out, "%s", ior.in ());
+ ACE_OS::fclose (ior_out);
+
+ Worker worker (orb.in ());
+ if (worker.activate (THR_NEW_LWP | THR_JOINABLE,
+ nthreads) != 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot activate client threads\n"),
+ 1);
+
+ worker.thr_mgr ()->wait ();
+
+ ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
+
+ //done
+ return 0;
+
+ //Start accepting requests
+ orb->run ();
+
+ //allow objects registered with the POA ot get cleaned-up
+ root_poa->destroy (1, 1);
+
+ //shutdown the orb
+ orb->shutdown (1);
+
+ return 0;
+ }
+ catch (CORBA::Exception &ex) {
+ cerr << "CORBA Exception: " << ex << endl;
+
+ return 1;
+ }
+
+
+ return 0;
+}
+
+
+
+// ****************************************************************
+
+///Constuctor for the worker class
+Worker::Worker (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+///implementation of the service routine inherited from ACE::Task_Base
+
+int Worker::svc (void)
+{
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
+ {
+ this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ }
+ ACE_ENDTRY;
+ return 0;
+}
+
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.idl b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.idl
new file mode 100644
index 00000000000..5293ed4fcbe
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager.idl
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Deployment.idl"
+
+module CIAO
+{
+ interface RepositoryManagerDaemon : Deployment::RepositoryManager
+ {
+ // Shutdown the daemon process.
+ oneway void shutdown ();
+ };
+};
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
new file mode 100644
index 00000000000..d6b66dfe33c
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.cpp
@@ -0,0 +1,705 @@
+// $Id$
+
+///====================================================================
+// filename: RepositoryManager_Impl.cpp
+// Author: Stoyan Paunov spaunov@isis.vanderbilt.edu
+//
+
+#include "RepositoryManager_Impl.h"
+
+#include "ace/OS_NS_fcntl.h" //for open
+#include "ace/OS_NS_unistd.h" //for close
+#include "ace/OS_NS_sys_stat.h" //for filesize and fstat and mkdir
+#include "ace/OS_NS_string.h" //for ACE_CString
+
+
+//to remove a file or dir from the local filesystem need remove () from stdio.h
+// ---> need to include ace/OS_NS_stdio.h which would include the correct file for any OS!
+#include "ace/OS_NS_stdio.h"
+
+#include "ZIP_Wrapper.h" //Wrapper around zzip
+#include "ace/Containers_T.h" //for ACE_Double_Linked_List
+#include "ace/Malloc_Allocator.h" //for ACE_New_Allocator needed by the doubly link list
+
+//for the PackageConfiguration parsing
+#include "Config_Handlers/STD_PC_Intf.h"
+//#include "Config_Handlers/Deployment.hpp"
+#include "ciao/Deployment_DataC.h"
+#include "ciao/Packaging_DataC.h"
+#include "Config_Handlers/Utils/XML_Helper.h"
+#include "xercesc/dom/DOM.hpp"
+
+#include "RM_Helper.h" //to be able to externalize/internalize a PackageConfiguration
+#include "ace/Message_Block.h" //for ACE_Message_Block
+
+#include "ace/Thread.h" //for obtaining the ID of the current thread
+#include "ace/OS_NS_stdlib.h" //for itoa ()
+
+#include "URL_Parser.h" //for parsing the URL
+#include "HTTP_Client.h" //the HTTP client class to downloading packages
+
+#include "PC_Updater.h" //A visitor class to walk through the elements of the PC
+
+#include <iostream>
+using namespace std;
+
+
+// Implementation skeleton constructor
+CIAO_RepositoryManagerDaemon_i::CIAO_RepositoryManagerDaemon_i (CORBA::ORB_ptr the_orb, const char* server)
+ : the_orb_ (CORBA::ORB::_duplicate (the_orb)),
+ install_root_ (""),
+ HTTP_server_ (server)
+{
+ //create directory in which the packages will be stored
+
+ ACE_OS::mkdir(INSTALL_PATH);
+ //if dir already exists a -1 is returned
+ //we ignore this, just need to make sure the directory exists
+
+ ACE_OS::getcwd (this->cwd_, TEMP_LEN);
+
+ this->install_root_ = this->cwd_;
+ this->install_root_ += "/";
+ this->install_root_ += INSTALL_PATH;
+}
+
+// Implementation skeleton destructor
+CIAO_RepositoryManagerDaemon_i::~CIAO_RepositoryManagerDaemon_i (void)
+{
+ this->names_.unbind_all ();
+ this->uuids_.unbind_all ();
+}
+
+void CIAO_RepositoryManagerDaemon_i::shutdown (
+
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+ // Add your implementation here
+ this->names_.unbind_all ();
+ this->uuids_.unbind_all ();
+
+ this->the_orb_->shutdown (0);
+}
+
+
+void CIAO_RepositoryManagerDaemon_i::installPackage (
+ const char * installationName,
+ const char * location
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NameExists,
+ ::Deployment::PackageError
+ ))
+{
+ // Add your implementation here
+
+ ACE_Hash_Map_Entry <ACE_CString, ACE_CString> *entry;
+
+ if (this->names_.find (ACE_CString (installationName), entry) == 0)
+ ACE_THROW (Deployment::NameExists ());
+
+ //Now lets form the path for the local file
+ //NOTE: I need the absolute path because I will change to a subdirectory
+ //when I am parsing the descriptors
+
+ ACE_CString path (this->install_root_);
+ path += "/";
+ path += installationName;
+
+ ACE_CString package_path (path);
+ package_path += ".cpk"; //package extension
+
+ ACE_CString pc_path (path);
+ pc_path += PC_EXTENSION; //external PackageConfiguration extension
+
+
+ ACE_CString descriptor_dir (path);
+ descriptor_dir += "/descriptors/"; //location of the descriptor directory
+
+
+ //check if URL or local file
+ //download or load into memory
+
+ size_t length = 0;
+
+ if (ACE_OS::strstr (location, "http://"))
+ {
+ URL_Parser *parser = URL_Parser::instance ();
+ if (!parser->parseURL (const_cast <char*> (location)))
+ ACE_THROW (CORBA::INTERNAL ());
+
+ // Create a client
+ HTTP_Client client;
+
+ //TODO: how can I incorporate a Auto_Ptr is explicit release is needed
+ ACE_Message_Block* mb = new ACE_Message_Block (0,0);
+
+ // Open the client
+ if (client.open (parser->filename_,
+ parser->hostname_,
+ parser->port_) == -1)
+ {
+ mb->release ();
+ client.close ();
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Read from it
+ if (client.read (mb) <= 0)
+ {
+ mb->release ();
+ client.close ();
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ // Write file to designated location on disk
+ if (!RM_Helper::write_to_disk (package_path.c_str (), *mb))
+ {
+ mb->release ();
+ client.close ();
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ mb->release ();
+ client.close ();
+ }
+ else
+ {
+ CORBA::Octet* file = 0;
+
+ //read the package from disk and store in the RM directory
+ //see if you can substiture this with a memory mapped file
+ //for better perofrmance (mimic zero copy here)
+ file = RM_Helper::read_from_disk (location, length);
+
+ if (!file)
+ ACE_THROW (CORBA::INTERNAL ());
+
+ //Store the package in the local RM dir for future retrieval
+ if (!RM_Helper::write_to_disk (package_path.c_str (), file, length))
+ ACE_THROW (CORBA::INTERNAL ());
+
+ //NOTE: MEMORY LEAK UNLESS delete file; change to Auto_Ptr
+ delete file;
+ }
+
+
+ ZIP_Wrapper::uncompress (const_cast<char*> (package_path.c_str ()),
+ const_cast<char*> (this->install_root_.c_str ()),
+ false //not verbose
+ );
+
+ //Start the parsing
+
+ ACE_CString pc_name;
+
+ this->find_PC_name (const_cast<char*> (package_path.c_str ()), pc_name);
+
+ //if the PackageConfiguration name cannot be found, then there is nothing to install
+ if (pc_name == "")
+ ACE_THROW (Deployment::PackageError ());
+
+
+ //TODO: move exception throwing out of this func. User boolean error handling!!!
+ //TODO: check for errors!
+ Deployment::PackageConfiguration_var pc;
+ pc = this->retrieve_PC_from_descriptors (const_cast<char*> (pc_name.c_str ()),
+ descriptor_dir.c_str ());
+
+
+ //forming the server path info
+ ACE_CString server_path (this->HTTP_server_);
+ server_path += installationName;
+ server_path += "/implementations/";
+
+ PC_Updater updater (server_path, package_path);
+
+ if (!updater.update (pc))
+ {
+ cout << "[RM] problem updating the PackageConfiguration!\n";
+ remove_extracted_package (package_path.c_str (), path.c_str ());
+ remove (package_path.c_str ());
+ ACE_THROW (Deployment::PackageError ());
+ }
+
+
+ //now lets externalize the PackageConfiguration, so that we can access it later on
+ //without having to do the whole parsing again.
+ //NOTE: Order here is important. Do not populate maps before the externalization!
+ RM_Helper::externalize (pc, pc_path.c_str ());
+
+ //insert the package into the database
+ this->names_.bind (ACE_CString (installationName), path);
+
+ //ALSO NEED THE UUID here
+ this->uuids_.bind (ACE_CString (pc->UUID), path);
+
+ ACE_TRACE (("Installed PackageConfiguration with: \nlabel %s \nuuid %s\n", pc->label, pc->UUID));
+}
+
+void CIAO_RepositoryManagerDaemon_i::createPackage (
+ const char * installationName,
+ const ::Deployment::PackageConfiguration & package,
+ const char * baseLocation,
+ ::CORBA::Boolean replace
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NameExists,
+ ::Deployment::PackageError
+ ))
+{
+ // Add your implementation here
+ ACE_THROW (CORBA::NO_IMPLEMENT ());
+}
+
+::Deployment::PackageConfiguration * CIAO_RepositoryManagerDaemon_i::findPackageByName (
+ const char * name
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NoSuchName
+ ))
+{
+ // Find out if the PackageConfiguration was installed in the repository,
+ // return it if found or throw and exception otherwise
+
+ ACE_Hash_Map_Entry <ACE_CString, ACE_CString> *entry = 0;
+
+ if (this->names_.find (ACE_CString (name), entry) != 0)
+ ACE_THROW (Deployment::NoSuchName ());
+ //PackageConfiguration was not found
+
+ ACE_CString pc_path (entry->int_id_.c_str ());
+ pc_path += PC_EXTENSION;
+
+ Deployment::PackageConfiguration_var pc = new Deployment::PackageConfiguration ();
+
+ if(!RM_Helper::reincarnate (pc, pc_path.c_str ()))
+ ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
+
+ //maybe I will still retrieve it in the case of failure: TODO
+ //Deployment::PackageConfiguration_var pc = retrieve_PC(const_cast<char*> ());
+
+ return pc._retn ();
+}
+
+::Deployment::PackageConfiguration * CIAO_RepositoryManagerDaemon_i::findPackageByUUID (
+ const char * UUID
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NoSuchName
+ ))
+{
+ // Add your implementation here
+
+ //NOTE: The following code actually works but I have not gotten
+ //the DELETE to remove the UUIDs and I am not allowing this code
+ //to be used for right now because the RM stays in an inconsistent
+ //state. A package can be deleted but it is still retrievable by is UUID.
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
+
+
+ // Find out if the PackageConfiguration was installed in the repository,
+ // return it if found or throw and exception otherwise
+
+ ACE_Hash_Map_Entry <ACE_CString, ACE_CString> *entry = 0;
+
+ if (this->uuids_.find (ACE_CString (UUID), entry) != 0)
+ ACE_THROW (Deployment::NoSuchName ());
+ //PackageConfiguration was not found
+
+ ACE_CString pc_path (entry->int_id_.c_str ());
+ pc_path += PC_EXTENSION;
+
+ Deployment::PackageConfiguration_var pc = new Deployment::PackageConfiguration ();
+
+ if(!RM_Helper::reincarnate (pc, pc_path.c_str ()))
+ ACE_THROW_RETURN (CORBA::INTERNAL (), 0);
+
+ //maybe I will still retrieve it in the case of failure: TODO
+ //Deployment::PackageConfiguration_var pc = retrieve_PC(const_cast<char*> ());
+
+ return pc._retn ();
+}
+
+::CORBA::StringSeq * CIAO_RepositoryManagerDaemon_i::findNamesByType (
+ const char * type
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+ // Add your implementation here
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
+}
+
+::CORBA::StringSeq * CIAO_RepositoryManagerDaemon_i::getAllNames (
+
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+ // Add your implementation here
+
+ CORBA::ULong num_entries = this->names_.current_size ();
+ CORBA::StringSeq_var seq = new CORBA::StringSeq (num_entries);
+
+ CORBA::ULong index = 0;
+ for (PCMap_Iterator iter = this->names_.begin ();
+ iter != this->names_.end () && index < num_entries;
+ iter++)
+
+ seq[index] = const_cast<char*> (((*iter).int_id_).c_str ()); //this looks hideous, but as long as it works!
+
+
+ return seq._retn (); //release the underlying CORBA::StringSeq
+}
+
+::CORBA::StringSeq * CIAO_RepositoryManagerDaemon_i::getAllTypes (
+
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
+{
+ // Add your implementation here
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
+}
+
+void CIAO_RepositoryManagerDaemon_i::deletePackage (
+ const char * installationName
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NoSuchName
+ ))
+{
+ // Add your implementation here
+
+ ACE_Hash_Map_Entry <ACE_CString, ACE_CString> *entry;
+
+ if (this->names_.find (ACE_CString (installationName), entry) != 0)
+ ACE_THROW (Deployment::NoSuchName ());
+ else
+ this->names_.unbind (installationName);
+
+ //do the same for the UUID!!!!
+ //TODO: NEED TO DO THIS LATER
+
+
+ //actually delete the package here!
+ //TODO: Check if files are ref-counted by the OS, so if I delete it here while
+ //some other process is still using it from a previous request, would that cause an error,
+ //or would it decrement the recount and delete the file when the other process is done.
+ //
+ //on that note is a file handle is not closed the file does not get deleted! , so see how
+ //temp files work!
+
+ ACE_CString path (this->install_root_.c_str ());
+ path += "/";
+ path += installationName;
+
+ ACE_CString package_path (path);
+ package_path += ".cpk"; //package extension
+
+ ACE_CString pc_path (path);
+ pc_path += PC_EXTENSION; //external PackageConfiguration extension
+
+ remove_extracted_package (package_path.c_str (), path.c_str ());
+
+ remove (package_path.c_str ());
+ remove (pc_path.c_str ());
+}
+
+//==========================================HELPER METHODS==================================================
+
+Deployment::PackageConfiguration*
+CIAO_RepositoryManagerDaemon_i::retrieve_PC_from_package (char* package)
+{
+ char temp[128];
+ // ACE_thread_t thread_id = ACE_Thread::self ();
+ char* PID = ACE_OS::itoa (ACE_OS::getpid (), temp, 10);
+
+ ACE_OS::mkdir(PID);
+ //if dir already exists a -1 is returned
+ //we ignore this, just need to make sure the directory exists
+
+ //change the working dir
+ ACE_OS::chdir (PID);
+
+ ACE_CString pcd_name;
+ //extract the necessary descriptors
+ if (extract_descriptor_files (package,
+ pcd_name) < 0)
+ {
+ ACE_OS::chdir (this->cwd_);
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) RepositoryManager: error extracting necessary files\n"));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+
+ Deployment::PackageConfiguration_var pc;
+ //parse the PCD to make sure that there are no package errors
+ ACE_TRY
+ {
+ CIAO::Config_Handlers::STD_PC_Intf intf (pcd_name.c_str ());
+
+ pc = intf.get_PC ();
+ }
+ ACE_CATCHALL
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) RepositoryManager: Error parsing the PCD\n"));
+
+ //change back the the old working dir
+ ACE_OS::chdir (this->cwd_);
+ ACE_THROW (Deployment::PackageError ());
+ }
+ ACE_ENDTRY;
+ //able to parse the PC. So lets install the package in the repo
+
+ //we no longer need the descriptors, so lets erase them!
+ remove_descriptor_files (package);
+
+ //change back the the old working dir
+ ACE_OS::chdir (this->cwd_);
+
+ //now lets erase the directory!
+ ACE_OS::rmdir (PID);
+ //the ACE_OS::rmdir does not work. Possibly because we need to delete
+ //the contents first. I will look into it more closely when I am back.
+
+ return pc._retn ();
+}
+
+
+//function to parse and return the PackageConfiguration from the already
+//extracted descriptor files
+Deployment::PackageConfiguration*
+CIAO_RepositoryManagerDaemon_i::retrieve_PC_from_descriptors (const char* pc_name,
+ const char* descriptor_dir)
+{
+ //change the working dir
+ ACE_OS::chdir (descriptor_dir);
+
+ Deployment::PackageConfiguration_var pc;
+ //parse the PCD to make sure that there are no package errors
+ ACE_TRY
+ {
+ CIAO::Config_Handlers::STD_PC_Intf intf (pc_name);
+
+ pc = intf.get_PC ();
+ }
+ ACE_CATCHALL
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) [RM::retrieve_PC_from_descriptors] Error parsing the PCD\n"));
+
+ //change back the the old working dir
+ ACE_OS::chdir (this->cwd_);
+ ACE_THROW (Deployment::PackageError ());
+ }
+ ACE_ENDTRY;
+ //able to parse the PC. So lets install the package in the repo
+
+ //change back the the old working dir
+ ACE_OS::chdir (this->cwd_);
+
+ return pc._retn ();
+}
+
+
+//find out what the name of the PackageConfiguration file is
+void CIAO_RepositoryManagerDaemon_i::find_PC_name (char* package, ACE_CString& pcd_name)
+{
+ pcd_name = ""; //empty the contents of the ACE_CString
+
+ //create a doubly link list
+ ACE_New_Allocator allocator;
+ ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
+
+ //get the list of files in the package and figure out the names of all necessary files
+ if (!(ZIP_Wrapper::file_list_info (package, list)))
+ return;
+
+ size_t skip_len = ACE_OS::strlen ("descriptors") + 1;
+
+ while (!list.is_empty ())
+ {
+ ZIP_File_Info* inf = list.delete_head ();
+
+ if (ACE_OS::strstr (inf->name_.c_str (), "descriptors"))
+ if (ACE_OS::strstr (inf->name_.c_str (), ".pcd"))
+ pcd_name = inf->name_.c_str () + skip_len;
+
+ //deallocate the head of the filename list
+ delete inf;
+ }
+}
+
+
+//We are using Xercesc in the Config_Handlers and unfortunately its API only
+//takes a file in the local file system as an argument, thus need to
+//write out the contents of the deployent plan to a file
+//in the current directory. I use the thread id to guarrantee
+//lack of race conditions if multithreading is enabled
+
+int CIAO_RepositoryManagerDaemon_i::extract_descriptor_files (char* package, ACE_CString& pcd_name)
+{
+ //create a doubly link list
+ ACE_New_Allocator allocator;
+ ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
+
+ //get the list of files in the package and figure out the names of all necessary files
+ if (!(ZIP_Wrapper::file_list_info (package, list)))
+ return 0;
+
+ size_t skip_len = ACE_OS::strlen ("descriptors") + 1;
+
+ while (!list.is_empty ())
+ {
+ ZIP_File_Info* inf = list.delete_head ();
+ ACE_Message_Block* file = 0;
+ if (ACE_OS::strstr (inf->name_.c_str (), "descriptors"))
+ {
+ if (ACE_OS::strstr (inf->name_.c_str (), ".pcd"))
+ pcd_name = inf->name_.c_str () + skip_len;
+
+ //extract the descriptor from the package
+ file = new ACE_Message_Block (0,0);
+ if (!ZIP_Wrapper::get_file(const_cast<char*> (package),
+ const_cast<char*> (inf->name_.c_str ()),
+ *file))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "[RM::extract_descriptor_files] Unable to retrieve file!\n"));
+ //release the message block chain
+ file->release ();
+ return 0;
+ }
+
+
+ //write the file to disk
+ if(!RM_Helper::write_to_disk (inf->name_.c_str () + skip_len, *file))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "[RM::extract_descriptor_files] Unable to write out descriptor to disk!\n"));
+ //release the message block chain
+ file->release ();
+ return 0;
+ }
+
+ //release the message block chain
+ file->release ();
+ }
+
+ //deallocate the head of the filename list
+ delete inf;
+ }
+
+ return 1;
+}
+
+int CIAO_RepositoryManagerDaemon_i::remove_descriptor_files (char* package)
+{
+ int return_code = 1;
+
+ //create a doubly link list
+ ACE_New_Allocator allocator;
+ ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
+
+ //get the list of files in the package and figure out the names of all necessary files
+ if (!(ZIP_Wrapper::file_list_info (package, list)))
+ return 0;
+
+ size_t skip_len = ACE_OS::strlen ("descriptors") + 1;
+
+ while (!list.is_empty ())
+ {
+ ZIP_File_Info* inf = list.delete_head ();
+ if (ACE_OS::strstr (inf->name_.c_str (), "descriptors"))
+ {
+ //delete disk
+ if(remove (inf->name_.c_str () + skip_len))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "[RM::remove_descriptor_files] Unable to write out descriptor to disk!\n"));
+ return_code = 0;
+ }
+ }
+ //deallocate the head of the filename list
+ delete inf;
+ }
+
+ return return_code;
+}
+
+//function to remove the files extracted from the package upon istallation
+//It reads the names of the files from the package. They correspond to the
+//names on disk. It deletes each file, then it deletes the directories that
+//contain them.
+//return 1 on success
+// 0 on error
+
+int CIAO_RepositoryManagerDaemon_i::remove_extracted_package
+(const char* package_path,
+ const char* extraction_location)
+{
+ //change the working dir
+ if (ACE_OS::chdir (extraction_location) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "[RM::remove_extracted_package] Unable to chdir to doomed directory!\n"),
+ 0);
+
+ int return_code = 1;
+
+ //create a doubly link list
+ ACE_New_Allocator allocator;
+ ACE_Double_Linked_List<ZIP_File_Info> list (&allocator);
+
+ //get the list of files in the package and figure out the names of all necessary files
+ if (!(ZIP_Wrapper::file_list_info (const_cast <char*> (package_path), list)))
+ {
+ //change back the the old working dir
+ ACE_OS::chdir (this->cwd_);
+ return 0;
+ }
+
+ while (!list.is_empty ())
+ {
+ ZIP_File_Info* inf = list.delete_head ();
+
+ //delete file from disk
+ if(remove (inf->name_.c_str ()))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "[RM::remove_extracted files] Unable to delete %s!\n", inf->name_.c_str ()));
+ return_code = 0;
+ }
+
+ //deallocate the head of the filename list
+ delete inf;
+ }
+
+ //now remove the descriptors and implementations directories.
+ ACE_OS::rmdir ("descriptors");
+ ACE_OS::rmdir ("implementations");
+
+ //now go one directory up and delete the extraction directory
+ ACE_OS::chdir (this->install_root_.c_str ());
+ ACE_OS::rmdir (extraction_location);
+
+ //change back the the old working dir
+ ACE_OS::chdir (this->cwd_);
+
+ return return_code;
+}
+
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h
new file mode 100644
index 00000000000..85a0002c457
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/RepositoryManager_Impl.h
@@ -0,0 +1,210 @@
+// $Id$
+
+#ifndef REPOSITORYMANAGERI_H_
+#define REPOSITORYMANAGERI_H_
+
+///====================================================================
+// filename: RepositoryManager_Impl.h
+// Author: Stoyan Paunov spaunov@isis.vanderbilt.edu
+//
+// Purpose: This class is the implementation class for the spec
+// complient RepositoryManager
+//
+
+
+#include "RepositoryManagerS.h"
+#include "DeploymentS.h" //added for the deployment stuff
+
+#include "ace/Hash_Map_Manager.h" //for the ACE_Hash_Map_Manager
+#include "ace/Null_Mutex.h" //for ACE_Null_Mutex
+#include "ace/RW_Mutex.h" //for ACE_RW_Mutex
+#include "ace/OS_NS_string.h" //for ACE_CString
+#include "ace/SString.h"
+
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+#pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+
+namespace
+{
+///DIRECTORY WHERE THE PACKAGES WILL BE STORED LOCALLY
+const static char* INSTALL_PATH = "RepositoryDir";
+
+const static size_t TEMP_LEN = 512;
+
+const static char* PC_EXTENSION = ".epc";
+}
+
+class CIAO_RepositoryManagerDaemon_i : public virtual POA_CIAO::RepositoryManagerDaemon
+{
+public:
+ //Constructor
+ CIAO_RepositoryManagerDaemon_i (CORBA::ORB_ptr the_orb,
+ const char* server = "http://localhost:5432/");
+
+ //Destructor
+ virtual ~CIAO_RepositoryManagerDaemon_i (void);
+
+ virtual
+ void shutdown (
+
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+
+ virtual
+ void installPackage (
+ const char * installationName,
+ const char * location
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NameExists,
+ ::Deployment::PackageError
+ ));
+
+ virtual
+ void createPackage (
+ const char * installationName,
+ const ::Deployment::PackageConfiguration & package,
+ const char * baseLocation,
+ ::CORBA::Boolean replace
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NameExists,
+ ::Deployment::PackageError
+ ));
+
+ virtual
+ ::Deployment::PackageConfiguration * findPackageByName (
+ const char * name
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NoSuchName
+ ));
+
+ virtual
+ ::Deployment::PackageConfiguration * findPackageByUUID (
+ const char * UUID
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NoSuchName
+ ));
+
+ virtual
+ ::CORBA::StringSeq * findNamesByType (
+ const char * type
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+
+ virtual
+ ::CORBA::StringSeq * getAllNames (
+
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+
+ virtual
+ ::CORBA::StringSeq * getAllTypes (
+
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ));
+
+ virtual
+ void deletePackage (
+ const char * installationName
+ )
+ ACE_THROW_SPEC ((
+ CORBA::SystemException,
+ ::Deployment::NoSuchName
+ ));
+
+ protected:
+
+ ///function to parse and return the PackageConfiguration from a specified package
+ Deployment::PackageConfiguration* retrieve_PC_from_package (char* package);
+
+ ///find out what the name of the PackageConfiguration file is
+ void find_PC_name (char* package, ACE_CString& pcd_name);
+
+ ///function to parse and return the PackageConfiguration from the already
+ ///extracted descriptor files
+ Deployment::PackageConfiguration* retrieve_PC_from_descriptors (const char* pc_name,
+ const char* descriptor_dir);
+
+ ///function to extract all necessary files for parsing the PackageConfiguration
+ ///descriptor and populating the idl struct.
+ ///return 1 on success
+ /// 0 on error
+ ///
+ ///NOTE: ACE_CString& pcd_name is an out parameter
+
+ int extract_descriptor_files (char* package,
+ ACE_CString& pcd_name);
+
+
+ ///function to remove the files extracted for parsing the PackageConfiguration
+ ///descriptor and populating the idl struct. It reads the names of the files
+ ///from the package. They correspond to the names on disk.
+ ///return 1 on success
+ /// 0 on error
+
+ int remove_descriptor_files (char* package);
+
+
+ ///function to remove the files extracted from the package upon istallation
+ ///It reads the names of the files from the package. They correspond to the
+ ///names on disk. It deletes each file, then it deletes the directories that
+ ///contain them.
+ ///NOTE: extraction location is path/*archive_name*/
+ ///return 1 on success
+ /// 0 on error
+
+ int remove_extracted_package (const char* package_path, const char* extraction_location);
+
+ private:
+ /// Cached information about the installed PackageConfigurations
+ /// A separate map for the installation names and their UUID's
+ /// Key: PackageConfiguration name or its UUID (CString type)
+ /// Value: The location of the local copy of the package
+
+ ///Based on the synchronization needed we can parametrize this with either
+ ///ACE_Null_Mutex or ACE_RW_Mutex
+
+ typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
+ ACE_CString,
+ ACE_Hash<ACE_CString>,
+ ACE_Equal_To<ACE_CString>,
+ ACE_RW_Mutex> PCMap;
+
+
+ typedef PCMap::iterator PCMap_Iterator;
+
+ //a hash map that associates the names of PackageConfigurations with their location
+ PCMap names_;
+
+ //a hash map that associates the UUIDs of PackageConfigurations with their location
+ PCMap uuids_;
+
+ CORBA::ORB_var the_orb_;
+
+ char cwd_ [TEMP_LEN]; //will hold the current working directory
+ ACE_CString install_root_; //full path for the install directory
+ ACE_CString HTTP_server_; //location of the server
+
+};
+
+
+#endif /* REPOSITORYMANAGER_H_ */
+
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.cpp
new file mode 100644
index 00000000000..d9428e8f14e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.cpp
@@ -0,0 +1,107 @@
+// $Id$
+
+#include "ace/Get_Opt.h"
+#include "ace/ARGV.h"
+#include "URL_Parser.h"
+
+#include "ace/OS_NS_string.h"
+
+URL_Parser* URL_Parser::instance_ = 0;
+
+URL_Parser*
+URL_Parser::instance (void)
+{
+
+ if (URL_Parser::instance_ == 0)
+ URL_Parser::instance_ = new URL_Parser ();
+
+ return URL_Parser::instance_;
+}
+
+bool
+URL_Parser::parse_args (int argc, ACE_TCHAR *argv[])
+{
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, ACE_TEXT ("rwu:h:p:f:d"));
+
+ bool success = true;
+ int c;
+
+ while ((c = get_opt ()) != -1)
+ switch (c)
+ {
+ case 'd':
+ this->debug_ = 1;
+ break;
+ case 'u':
+ success = parseURL (get_opt.opt_arg ());
+ break;
+ // Usage fallthrough.
+ default:
+ success = false;
+ }
+ if (this->hostname_ == 0 || this->filename_ == 0)
+ success = false;
+
+ return success;
+}
+
+URL_Parser::URL_Parser (void)
+ : hostname_ ("127.0.0.1"),
+ port_ (ACE_DEFAULT_HTTP_SERVER_PORT),
+ filename_ (0),
+ debug_ (0)
+{
+}
+
+
+
+bool URL_Parser::parseURL (char* url)
+{
+ char* ptr;
+ bool success = true;
+
+ if (ptr = ACE_OS::strstr (url, "http://"))
+ url += ACE_OS::strlen ("http://");
+
+ if (url[0] == '/')
+ this->filename_ = url;
+ else
+ {
+ if (ptr = ACE_OS::strstr (url, ":"))
+ this->port_ = ACE_OS::atoi (ptr + 1);
+ else
+ ptr = ACE_OS::strstr (url, "/");
+
+ if(!ptr)
+ success = false;
+ else
+ {
+ size_t host_len = ptr - url;
+ this->hostname_ = new char [host_len];
+ ACE_OS::strncpy (this->hostname_, url, host_len);
+ this->hostname_ [host_len] = '\0';
+
+ if (ptr = ACE_OS::strstr (ptr, "/"))
+ {
+ this->filename_ = ptr;
+ }
+ else
+ success = false;
+ }
+ }
+ return success;
+}
+
+
+void URL_Parser::exitOnError (void)
+ {
+ ACE_DEBUG ((LM_DEBUG, "./http_client -u http://hostname:port/filename [-d]\n"));
+ ACE_OS::exit (1);
+ }
+
+
+ URL_Parser::~URL_Parser()
+ {
+ if(this->hostname_)
+ delete [] this->hostname_;
+ }
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.h
new file mode 100644
index 00000000000..5f973fb4062
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/URL_Parser.h
@@ -0,0 +1,65 @@
+// $Id$
+
+/* -*- C++ -*- */
+// URL_Parser.h, Stoyan
+
+//============================================================================
+//
+// = FILENAME
+// URL_Parser.h
+//
+// = DESCRIPTION
+// parses a URL
+//
+// = AUTHOR
+// Stoyan Paunov
+//
+//============================================================================
+
+#ifndef URL_PARSER_H
+#define URL_PARSER_H
+
+#include "ace/Get_Opt.h"
+
+//#if !defined (ACE_LACKS_PRAGMA_ONCE)
+//# pragma once
+//#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "ace/ARGV.h"
+
+class URL_Parser
+{
+public:
+ static URL_Parser *instance (void);
+ // Returns the singleton instance
+
+ bool parse_args (int argc, ACE_TCHAR *argv[]);
+ // parses commandline arguments
+
+ bool parseURL (char* url);
+
+ void exitOnError (void);
+
+ ACE_TCHAR *hostname_;
+ // Hostname to connect to
+
+ u_short port_;
+ // Port number to use
+
+ ACE_TCHAR *filename_;
+ // Filename to upload/download
+
+ int debug_;
+ // turns on verbosity
+
+ //destructor
+ ~URL_Parser (void);
+protected:
+ URL_Parser (void);
+ // protected constructor, singleton
+
+ static URL_Parser *instance_;
+ // the singleton
+};
+
+#endif /* URL_PARSER_H */
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp b/TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
new file mode 100644
index 00000000000..2b084521ffe
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.cpp
@@ -0,0 +1,287 @@
+// $Id$
+
+///====================================================================
+// filename: ZIP_Wrapper.cpp
+// Author: Stoyan Paunov spaunov@isis.vanderbilt.edu
+//
+// Purpose: to provide a wrapper around ZZIPlib for easy handling of
+// ZIP archives. This wrapper can me used as an auxiliary
+// class that allows a program to become ZIP-aware
+
+
+
+#include "ace/Containers_T.h" //for ACE_Double_Linked_List
+#include "ace/Message_Block.h" //for ACE_Message_Block
+
+#include "ace/OS_NS_fcntl.h" //for open
+#include "ace/OS_NS_unistd.h" //for close
+#include "ace/OS_NS_string.h" //for strncpy
+#include "ace/SString.h" //for ACE_CString
+#include "ace/OS_NS_sys_stat.h" //for stat
+#include "ace/OS_NS_sys_stat.h" //for filesize and mkdir
+
+#include <string>
+#include <memory> //for auto_ptr
+
+/////////////////////////////////////////////////////////////////////////////
+//NOTE: some #defines problems with zzip & ACE - put these 2 lines on top!!!!
+/////////////////////////////////////////////////////////////////////////////
+#include "zziplib.h" //for ZZIP
+#include "ZIP_Wrapper.h"
+
+
+//ZIP_File_Info constructor
+ZIP_File_Info::ZIP_File_Info (char* name, size_t size)
+ : name_ (name),
+ size_ (size),
+ next_ (0),
+ prev_ (0)
+{
+}
+
+//ZIP_File_Info default constructor
+ZIP_File_Info::ZIP_File_Info ()
+ : name_ (""),
+ size_ (0),
+ next_ (0),
+ prev_ (0)
+{
+}
+
+
+//get a list of the files in the archive
+size_t ZIP_Wrapper::file_list_info (char* zip_name, ACE_Double_Linked_List<ZIP_File_Info> &list)
+{
+ size_t num = 0; //number of files in archive
+ ZZIP_DIR * dir; //pointer to a zip archive
+ ZZIP_DIRENT * dir_entry; //pointer to a file within the archive
+
+ //open the zip archive
+ dir = zzip_opendir(zip_name);
+
+ if (!dir)
+ return 0;
+
+ //read each dir entry and show one line of info per file
+ while ((dir_entry = zzip_readdir (dir)))
+ {
+ //retrieve the name of the file
+ char* name = dir_entry->d_name;
+
+ //remove the subpath part if any NOTE: Lunux style assumed, need to check
+ //while(char* next = strstr(name, "/"))
+ // name = next + 1;
+
+ list.insert_tail (new ZIP_File_Info (name, dir_entry->st_size));
+ num++;
+ }
+
+ zzip_closedir(dir);
+ return num;
+}
+
+//get file and store it into an ACE_Message_Block
+bool ZIP_Wrapper::get_file (char* accessor, ACE_Message_Block &file)
+{
+ bool return_code = true;
+
+ ZZIP_FILE* zip_file = zzip_open (accessor, O_RDONLY| O_BINARY);
+
+ if (! zip_file)
+ return false;
+
+ int num_read;
+ file.size(BUFSIZ);
+ ACE_Message_Block* head = &file;
+
+ // read chunks of 16 bytes into buf and print them to stdout
+ while (0 < (num_read = zzip_read(zip_file, head->wr_ptr(), head->size())))
+ {
+ head->wr_ptr (num_read);
+ head->cont (new ACE_Message_Block (BUFSIZ));
+ head = head->cont ();
+ }
+
+ if (num_read < 0)
+ return_code = false;
+
+ zzip_file_close (zip_file);
+
+ return return_code;
+}
+
+
+bool ZIP_Wrapper::get_file (char* archive_path, char* filename, ACE_Message_Block &file)
+{
+ bool return_code = true;
+ ZZIP_DIR * dir; //pointer to a zip archive
+
+ //open the zip archive
+ dir = zzip_opendir(archive_path);
+
+ if (!dir)
+ return false;
+
+ //get the handle to the file
+ ZZIP_FILE* zip_file = zzip_file_open (dir, filename, O_RDONLY | O_BINARY);
+
+ if (!zip_file)
+ return false;
+
+ int num_read = 0;
+ ACE_Message_Block* head = &file;
+
+ //read the file into the ACE_Message_Block
+ do
+ {
+ if (head->space () == 0)
+ {
+ head->cont (new ACE_Message_Block (BUFSIZ));
+ head = head->cont ();
+ }
+
+ num_read = zzip_read(zip_file, head->wr_ptr(), head->space());
+
+ if (num_read > 0)
+ head->wr_ptr (num_read);
+
+ }while (num_read > 0);
+
+ if (num_read < 0)
+ return_code = false;
+
+ zzip_file_close (zip_file);
+ zzip_closedir(dir);
+
+ return return_code;
+}
+
+
+//uncompress
+//the uncompress format will be
+//mkdir(name of zip archive).
+//the path is assumed to be an existing directory
+//directory structure of archive is recreated
+bool ZIP_Wrapper::uncompress (char* zip_archive, char* path, bool verbose)
+{
+ ZZIP_DIR * dir; //pointer to a zip archive
+ ZZIP_DIRENT * dir_entry; //pointer to a file within the archive
+ ZZIP_FILE* file; //pointer to a zip file within an archive
+
+ //open the zip archive
+ dir = zzip_opendir(zip_archive);
+
+ if (!dir)
+ return false;
+
+ //??????
+ //check if a directory with the name if the archive exists
+ //If not, create it. Else, existing files will be truncated upon open.
+ //??????
+
+ //get the name of the archive
+ ACE_CString arch_dir (path);
+ arch_dir += "/";
+
+ //get only the name of the archive; remove path info
+ char* n = ACE_OS::strstr (zip_archive, "/");
+ char* zip_name = 0;
+ while (n != NULL)
+ {
+ zip_name = ++n;
+ n = ACE_OS::strstr (n, "/");
+ }
+
+ arch_dir += zip_name;
+ //NOTE: Assumes .zip or cpk extension
+ arch_dir = arch_dir.substring (0, arch_dir.length () - 4);
+
+ //create directory
+ ACE_OS::mkdir(arch_dir.c_str()); //if dir exists -1 is returned and ignored
+
+ //read each dir entry and show one line of info per file
+ while ((dir_entry = zzip_readdir (dir)))
+ {
+ //retrieve the name of the file
+ char* name = dir_entry->d_name;
+
+ //remove the subpath part if any NOTE: Lunux style assumed, need to check
+
+ //let's try to create the directory structure for the package
+ char dir_name [2048];
+ char* next = ACE_OS::strstr (name, "/");
+ while (next != NULL)
+ {
+ ACE_CString location (arch_dir);
+ ACE_OS::strncpy (dir_name, name, next - name + 1);
+ dir_name[next - name + 1] = '\0';
+
+ location += "/";
+ location += dir_name;
+
+ ACE_stat stat;
+ if (ACE_OS::stat (location.c_str (), &stat) == -1)
+ ACE_OS::mkdir (location.c_str ());
+
+ next++;
+ next = ACE_OS::strstr (next, "/");
+ }
+
+ //open a zip handle
+ file = zzip_file_open(dir, dir_entry->d_name, O_RDONLY | O_BINARY);
+ if (!file)
+ return false;
+
+ //allocate buffer
+
+ //std::auto_ptr releases the memory upon reset.
+ //ACE_Auto_Ptr does not support this functionality
+ std::auto_ptr<char> buffer;
+ buffer.reset ( new char [dir_entry->st_size + 1]);
+
+ //read in the data
+ zzip_read(file, &(*buffer), dir_entry->st_size);
+
+ //close the zip handle
+ zzip_file_close (file);
+
+ //create file name + path to open
+ std::string file_path (arch_dir.c_str ()); //NOTE: need the c-style char to stop at '\0'
+ file_path += "/";
+ file_path += name;
+
+ //print out the file to be uncompressed
+ if (verbose)
+ {
+ ACE_OS::write(ACE_STDOUT, file_path.c_str (), file_path.length () );
+ ACE_OS::write(ACE_STDOUT, "\n", 1);
+ }
+
+ // Open a file handle to the local filesystem
+ ACE_HANDLE handle = ACE_OS::open (file_path.c_str (), O_CREAT | O_TRUNC | O_WRONLY);
+ if (handle == ACE_INVALID_HANDLE)
+ {
+ zzip_closedir(dir);
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[uncompress] file creation error")),
+ 0);
+ }
+
+ //write the uncompressed data to the file
+ if (ACE_OS::write (handle, &(*buffer), dir_entry->st_size) == -1)
+ {
+ zzip_closedir(dir);
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("[uncompress] file write error")),
+ 0);
+ }
+
+ // Close the file handle
+ ACE_OS::close (handle);
+ }
+
+ zzip_closedir(dir);
+ return true;
+}
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.h b/TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.h
new file mode 100644
index 00000000000..cb0e7e8752d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/ZIP_Wrapper.h
@@ -0,0 +1,75 @@
+// $Id$
+
+///====================================================================
+// filename: ZIP_Wrapper.h
+// Author: Stoyan Paunov spaunov@isis.vanderbilt.edu
+//
+// Purpose: to provide a wrapper around ZZIPlib for easy handling of
+// ZIP archives. This wrapper can me used as an auxiliary
+// class that allows a program to become ZIP-aware
+
+
+#ifndef _ZIP_WRAPPER_H_
+#define _ZIP_WRAPPER_H_
+
+#include "ace/Containers_T.h" //for ACE_Double_Linked_List
+#include "ace/Message_Block.h" //for ACE_Message_Block
+#include "ace/SString.h" //for ACE_CString
+
+#include "ace/OS_NS_fcntl.h" //for open
+#include "ace/OS_NS_sys_stat.h" //for filesize and mkdir
+
+#include <string>
+
+///===================================================================
+//Class definition for ZIP_File_Info
+//
+// Description: This class is used as a carrier of information
+// about entities residing inside a ZIP archive
+
+class ZIP_File_Info
+{
+public:
+ ACE_CString name_;
+ size_t size_;
+ ZIP_File_Info* next_;
+ ZIP_File_Info* prev_;
+
+ ZIP_File_Info (char* name, size_t size);
+ ZIP_File_Info ();
+};
+
+
+///===================================================================
+//Class definition for ZIP_Wrapper
+//
+//@Description: This class is the actual workhorse that provides all of
+// the necessary functionality
+
+class ZIP_Wrapper
+{
+
+public:
+
+ //get a list of the files in the archive
+ static size_t file_list_info (char* zip_name, ACE_Double_Linked_List<ZIP_File_Info> &list);
+
+ //get file and store it into an ACE_Message_Block
+ //need to provide the correct accessor string. It formed by the ZIP_Options
+ //singleton on argument parsing and stored in ZIP_Options::instance()->read_file_
+ //ACE_Message_Block is null-terminated, but this is not reflected in the size!
+ static bool get_file (char* accessor, ACE_Message_Block &file);
+
+ //additional get_file function to avert subdirectory traversal problems with
+ //zziplib accessors
+ static bool get_file (char* archive_path, char* filename, ACE_Message_Block &file);
+
+ //uncompress
+ //the uncompress format will be
+ //mkdir(name of zip archive)
+ //store all files in that directory.
+ //the path is assumed to be an existing directory
+ static bool uncompress (char* zip_archive, char* path = "", bool verbose = true);
+};
+
+#endif
diff --git a/TAO/CIAO/DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc b/TAO/CIAO/DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
new file mode 100644
index 00000000000..76aae145588
--- /dev/null
+++ b/TAO/CIAO/DAnCE/spec_RepositoryManager/spec_RepositoryManager.mpc
@@ -0,0 +1,48 @@
+// -*- MPC -*-
+// $Id$
+
+//RepositoryManager project: implementation of a repository manager
+//compleint with the D&C spec
+
+project (spec_RepositoryManager) : ciao_component_dnc, taoexe, ciao_config_handlers, zzip, zlib {
+
+ exename = RepositoryManagerDeamon
+ requires += zzip zlib
+
+ IDL_Files {
+ RepositoryManager.idl
+ }
+
+ Source_Files {
+ RepositoryManagerC.cpp
+ RepositoryManagerS.cpp
+ ZIP_Wrapper.cpp
+ RepositoryManager.cpp
+ RepositoryManager_Impl.cpp
+ RM_Helper.cpp
+ URL_Parser.cpp
+ HTTP_Handler.cpp
+ HTTP_Client.cpp
+ PC_Updater_T.cpp
+ PC_Updater.cpp
+ }
+}
+
+
+// RMadmin project: a sample client for the RM.
+
+project (spec_RMAdmin) : ciao_component_dnc, ciao_config_handlers {
+ exename = RMadmin
+ after += spec_RepositoryManager
+
+ IDL_Files {
+ RepositoryManager.idl
+ }
+
+ Source_Files {
+ RMadmin.cpp
+ RepositoryManagerC.cpp
+ Options.cpp
+ RM_Helper.cpp
+ }
+}
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/CompImplDesc_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/CompImplDesc_Handler_Test.cpp
new file mode 100644
index 00000000000..30b938ae411
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/CompImplDesc_Handler_Test.cpp
@@ -0,0 +1,17 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/CompImplDesc_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test
+ <CIAO::Config_Handler::CompImplDesc_Handler,
+ Deployment::ComponentImplementationDescription>
+ (argc,
+ argv,
+ &CIAO::Config_Handler::CompImplDesc_Handler::process_ComponentImplementationDescription);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/CompIntrDesc_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/CompIntrDesc_Handler_Test.cpp
new file mode 100644
index 00000000000..a772c463452
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/CompIntrDesc_Handler_Test.cpp
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/CompIntrDesc_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test <CIAO::Config_Handler::CompIntrDesc_Handler, Deployment::ComponentInterfaceDescription>
+ (argc, argv, &CIAO::Config_Handler::CompIntrDesc_Handler::process_ComponentInterfaceDescription);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/CompPkgDesc_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/CompPkgDesc_Handler_Test.cpp
new file mode 100644
index 00000000000..74d19064680
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/CompPkgDesc_Handler_Test.cpp
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/CompPkgDesc_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test <CIAO::Config_Handler::CompPkgDesc_Handler, Deployment::ComponentPackageDescription>
+ (argc, argv, &CIAO::Config_Handler::CompPkgDesc_Handler::process_ComponentPackageDescription);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/Domain_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/Domain_Handler_Test.cpp
new file mode 100644
index 00000000000..31dbc7a9079
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/Domain_Handler_Test.cpp
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/Domain_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test <CIAO::Config_Handler::Domain_Handler, Deployment::Domain>
+ (argc, argv, &CIAO::Config_Handler::Domain_Handler::process_domain);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.ccd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.ccd
new file mode 100644
index 00000000000..f8a0c2be6bf
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.ccd
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentInterfaceDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Airframe Component</label>
+ <UUID>058178f1-430a-460c-927a-d3c98b4ec860</UUID>
+ <specificType>IDL:BasicSP/BMClosedED:1.0</specificType>
+ <supportedType>IDL:BasicSP/BMClosedED:1.0</supportedType>
+ <port>
+ <name>in_avail</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>false</provider>
+ <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType>
+ <specificType>IDL:BasicSP/DataAvailable:1.0</specificType>
+ <kind>EventConsumer</kind>
+ </port>
+
+ <port>
+ <name>out_avail</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType>
+ <specificType>IDL:BasicSP/DataAvailable:1.0</specificType>
+ <kind>EventPublisher</kind>
+ </port>
+
+ <port>
+ <name>dataout</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/ReadData:1.0</supportedType>
+ <specificType>IDL:BasicSP/ReadData:1.0</specificType>
+ <kind>Facet</kind>
+ </port>
+
+ <port>
+ <name>datain</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/ReadData:1.0</supportedType>
+ <specificType>IDL:BasicSP/ReadData:1.0</specificType>
+ <kind>SimplexReceptacle</kind>
+ </port>
+
+</Deployment:ComponentInterfaceDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cid b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cid
new file mode 100644
index 00000000000..69d19585bee
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cid
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentImplementationDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Airframe Implementation</label>
+ <UUID>66a409c2-fa3a-48ea-be50-482dec4ae7a2</UUID>
+ <implements href="Airframe.ccd"/>
+ <monolithicImpl>
+ <primaryArtifact>
+ <name>BMClosedED_Stub</name>
+ <referencedArtifact href="Airframe_Stub.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>BMClosedED_Svnt</name>
+ <referencedArtifact href="Airframe_Svnt.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>BMClosedED_Exec</name>
+ <referencedArtifact href="Airframe_Exec.iad"/>
+ </primaryArtifact>
+ </monolithicImpl>
+ <configProperty>
+ <name>ComponentIOR</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>BMClosedED.ior</string>
+ </value>
+ </value>
+ </configProperty>
+</Deployment:ComponentImplementationDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cpd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cpd
new file mode 100644
index 00000000000..2b8f461581b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe.cpd
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentPackageDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Airframe Package </label>
+ <UUID>3c4c5adf-ae85-4b18-a404-a7c4887d6f7d</UUID>
+ <realizes href="Airframe.ccd"/>
+ <implementation>
+ <name>BMClosedED</name>
+ <referencedImplementation href="Airframe.cid"/>
+ </implementation>
+</Deployment:ComponentPackageDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Exec.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Exec.iad
new file mode 100644
index 00000000000..7b70be3fd5f
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Exec.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Airframe Executor Artifact</label>
+ <UUID>0f76b3d3-3d50-4d65-88b1-e26b60b624dd</UUID>
+ <location>BMClosedED_exec</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>BMClosedED_Stub</name>
+ <referencedArtifact href="Airframe_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createBMClosedEDHome_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Stub.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Stub.iad
new file mode 100644
index 00000000000..b3e7013091d
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Stub.iad
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Airframe Stub Artifact</label>
+ <UUID>93bbdf7d-d3f7-4227-bb75-b0562ac15b92</UUID>
+ <location>BMClosedED_stub</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Svnt.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Svnt.iad
new file mode 100644
index 00000000000..cb27b660286
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Airframe_Svnt.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Airframe Servant Artifact</label>
+ <UUID>88f66272-bdb6-488b-9d95-cfa63317c616</UUID>
+ <location>BMClosedED_svnt</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>BMClosedED_Stub</name>
+ <referencedArtifact href="Airframe_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createBMClosedEDHome_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Deployment.xsd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Deployment.xsd
new file mode 100644
index 00000000000..c8a6399730b
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Deployment.xsd
@@ -0,0 +1,776 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ targetNamespace="http://www.omg.org/Deployment">
+
+ <xsd:import namespace="http://www.omg.org/XMI" schemaLocation="XMI.xsd" />
+
+
+ <xsd:complexType name="Any">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Any" type="Deployment:Any"/>
+ <xsd:complexType name="DataType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="kind" type="Deployment:TCKind"/>
+ <xsd:element name="enum" type="Deployment:EnumType"/>
+ <xsd:element name="objref" type="Deployment:ObjrefType"/>
+ <xsd:element name="boundedString" type="Deployment:BoundedStringType"/>
+ <xsd:element name="fixed" type="Deployment:FixedType"/>
+ <xsd:element name="array" type="Deployment:ArrayType"/>
+ <xsd:element name="sequence" type="Deployment:SequenceType"/>
+ <xsd:element name="alias" type="Deployment:AliasType"/>
+ <xsd:element name="struct" type="Deployment:StructType"/>
+ <xsd:element name="value" type="Deployment:ValueType"/>
+ <xsd:element name="union" type="Deployment:UnionType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DataType" type="Deployment:DataType"/>
+ <xsd:complexType name="DataValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="short" type="xsd:short"/>
+ <xsd:element name="long" type="xsd:int"/>
+ <xsd:element name="ushort" type="xsd:unsignedShort"/>
+ <xsd:element name="ulong" type="xsd:unsignedInt"/>
+ <xsd:element name="float" type="xsd:float"/>
+ <xsd:element name="double" type="xsd:double"/>
+ <xsd:element name="boolean" type="xsd:boolean"/>
+ <xsd:element name="octet" type="xsd:unsignedByte"/>
+ <xsd:element name="opaque" type="xsd:base64Binary"/>
+ <xsd:element name="objref" type="xsd:string"/>
+ <xsd:element name="enum" type="xsd:string"/>
+ <xsd:element name="string" type="xsd:string"/>
+ <xsd:element name="longlong" type="xsd:long"/>
+ <xsd:element name="ulonglong" type="xsd:unsignedLong"/>
+ <xsd:element name="longdouble" type="xsd:double"/>
+ <xsd:element name="fixed" type="xsd:string"/>
+ <xsd:element name="any" type="Deployment:Any"/>
+ <xsd:element name="typecode" type="Deployment:DataType"/>
+ <xsd:element name="element" type="Deployment:DataValue"/>
+ <xsd:element name="discriminator" type="Deployment:DataValue"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ <xsd:element name="boxedValue" type="Deployment:DataValue"/>
+ <xsd:element name="member" type="Deployment:NamedValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DataValue" type="Deployment:DataValue"/>
+
+
+ <xsd:complexType name="EnumType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="EnumType" type="Deployment:EnumType"/>
+ <xsd:complexType name="ObjrefType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+
+
+ <xsd:element name="ObjrefType" type="Deployment:ObjrefType"/>
+ <xsd:complexType name="BoundedStringType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="BoundedStringType" type="Deployment:BoundedStringType"/>
+ <xsd:complexType name="FixedType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="digits" type="xsd:string"/>
+ <xsd:element name="scale" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="FixedType" type="Deployment:FixedType"/>
+ <xsd:complexType name="ArrayType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="length" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ArrayType" type="Deployment:ArrayType"/>
+ <xsd:complexType name="SequenceType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SequenceType" type="Deployment:SequenceType"/>
+ <xsd:complexType name="AliasType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AliasType" type="Deployment:AliasType"/>
+ <xsd:complexType name="StructType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="Deployment:StructMemberType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="StructType" type="Deployment:StructType"/>
+ <xsd:complexType name="StructMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="StructMemberType" type="Deployment:StructMemberType"/>
+ <xsd:complexType name="ValueType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="modifier" type="xsd:string"/>
+ <xsd:element name="baseType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:ValueMemberType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ValueType" type="Deployment:ValueType"/>
+ <xsd:complexType name="ValueMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="visibility" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ValueMemberType" type="Deployment:ValueMemberType"/>
+ <xsd:complexType name="UnionType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="default" type="Deployment:UnionMemberType"/>
+ <xsd:element name="discriminatorType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:UnionMemberType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="UnionType" type="Deployment:UnionType"/>
+ <xsd:complexType name="UnionMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="label" type="Deployment:DataValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="UnionMemberType" type="Deployment:UnionMemberType"/>
+ <xsd:complexType name="NamedValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="NamedValue" type="Deployment:NamedValue"/>
+ <xsd:complexType name="Bridge">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connect" type="Deployment:Interconnect"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Bridge" type="Deployment:Bridge"/>
+ <xsd:complexType name="Interconnect">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Bridge"/>
+ <xsd:element name="connect" type="Deployment:Node"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Interconnect" type="Deployment:Interconnect"/>
+ <xsd:complexType name="Node">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Interconnect"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Node" type="Deployment:Node"/>
+ <xsd:complexType name="Resource">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Resource" type="Deployment:Resource"/>
+ <xsd:complexType name="SharedResource">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="node" type="Deployment:Node"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SharedResource" type="Deployment:SharedResource"/>
+ <xsd:complexType name="Domain">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="node" type="Deployment:Node"/>
+ <xsd:element name="interconnect" type="Deployment:Interconnect"/>
+ <xsd:element name="bridge" type="Deployment:Bridge"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Domain" type="Deployment:Domain"/>
+ <xsd:complexType name="PlanPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanPropertyMapping" type="Deployment:PlanPropertyMapping"/>
+ <xsd:complexType name="PlanSubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanSubcomponentPropertyReference" type="Deployment:PlanSubcomponentPropertyReference"/>
+ <xsd:complexType name="PlanSubcomponentPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element name="provider" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanSubcomponentPortEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:complexType name="PlanConnectionDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint"/>
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PlanConnectionDescription" type="Deployment:PlanConnectionDescription"/>
+ <xsd:complexType name="InstanceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="node" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="InstanceDeploymentDescription" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:complexType name="MonolithicDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="MonolithicDeploymentDescription" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:complexType name="ArtifactDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element name="node" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ArtifactDeploymentDescription" type="Deployment:ArtifactDeploymentDescription"/>
+
+
+ <xsd:complexType name="DeploymentPlan">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ <xsd:element name="connection" type="Deployment:PlanConnectionDescription"/>
+ <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/>
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/>
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="DeploymentPlan" type="Deployment:DeploymentPlan"/>
+
+
+ <xsd:complexType name="ResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ResourceDeploymentDescription" type="Deployment:ResourceDeploymentDescription"/>
+ <xsd:complexType name="InstanceResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/>
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="InstanceResourceDeploymentDescription" type="Deployment:InstanceResourceDeploymentDescription"/>
+ <xsd:complexType name="ConnectionResourceDeploymentDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="targetName" type="xsd:string"/>
+ <xsd:element name="requirementName" type="xsd:string"/>
+ <xsd:element name="resourceName" type="xsd:string"/>
+ <xsd:element name="resourceValue" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ConnectionResourceDeploymentDescription" type="Deployment:ConnectionResourceDeploymentDescription"/>
+ <xsd:complexType name="Capability">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Capability" type="Deployment:Capability"/>
+ <xsd:complexType name="ComponentPropertyDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPropertyDescription" type="Deployment:ComponentPropertyDescription"/>
+ <xsd:complexType name="ComponentPortDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="specificType" type="xsd:string"/>
+ <xsd:element name="supportedType" type="xsd:string"/>
+ <xsd:element name="provider" type="xsd:string"/>
+ <xsd:element name="exclusiveProvider" type="xsd:string"/>
+ <xsd:element name="exclusiveUser" type="xsd:string"/>
+ <xsd:element name="optional" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPortDescription" type="Deployment:ComponentPortDescription"/>
+ <xsd:complexType name="ComponentInterfaceDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="specificType" type="xsd:string"/>
+ <xsd:element name="supportedType" type="xsd:string"/>
+ <xsd:element name="idlFile" type="xsd:string"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="port" type="Deployment:ComponentPortDescription"/>
+ <xsd:element name="property" type="Deployment:ComponentPropertyDescription"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentInterfaceDescription" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:complexType name="ImplementationArtifactDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="location" type="xsd:string"/>
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationArtifactDescription" type="Deployment:ImplementationArtifactDescription"/>
+ <xsd:complexType name="MonolithicImplementationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="execParameter" type="Deployment:Property"/>
+ <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="MonolithicImplementationDescription" type="Deployment:MonolithicImplementationDescription"/>
+ <xsd:complexType name="AssemblyPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AssemblyPropertyMapping" type="Deployment:AssemblyPropertyMapping"/>
+ <xsd:complexType name="SubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentPropertyReference" type="Deployment:SubcomponentPropertyReference"/>
+ <xsd:complexType name="SubcomponentPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentPortEndpoint" type="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:complexType name="AssemblyConnectionDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="deployRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint"/>
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="AssemblyConnectionDescription" type="Deployment:AssemblyConnectionDescription"/>
+ <xsd:complexType name="SubcomponentInstantiationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="package" type="Deployment:ComponentPackageDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="selectRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SubcomponentInstantiationDescription" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:complexType name="ComponentAssemblyDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription"/>
+ <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription"/>
+ <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentAssemblyDescription" type="Deployment:ComponentAssemblyDescription"/>
+ <xsd:complexType name="ComponentImplementationDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription"/>
+ <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="capability" type="Deployment:Capability"/>
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentImplementationDescription" type="Deployment:ComponentImplementationDescription"/>
+ <xsd:complexType name="ComponentPackageReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requiredUUID" type="xsd:string"/>
+ <xsd:element name="requiredName" type="xsd:string"/>
+ <xsd:element name="requiredType" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPackageReference" type="Deployment:ComponentPackageReference"/>
+ <xsd:complexType name="ComponentPackageDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation"/>
+ <xsd:element name="infoProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentPackageDescription" type="Deployment:ComponentPackageDescription"/>
+ <xsd:complexType name="PackageConfiguration">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="UUID" type="xsd:string"/>
+ <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/>
+ <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription"/>
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference"/>
+ <xsd:element name="selectRequirement" type="Deployment:Requirement"/>
+ <xsd:element name="configProperty" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PackageConfiguration" type="Deployment:PackageConfiguration"/>
+ <xsd:complexType name="PackagedComponentImplementation">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="PackagedComponentImplementation" type="Deployment:PackagedComponentImplementation"/>
+ <xsd:complexType name="NamedImplementationArtifact">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="NamedImplementationArtifact" type="Deployment:NamedImplementationArtifact"/>
+ <xsd:complexType name="ImplementationRequirement">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind"/>
+ <xsd:element name="resourcePort" type="xsd:string"/>
+ <xsd:element name="componentPort" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationRequirement" type="Deployment:ImplementationRequirement"/>
+ <xsd:complexType name="RequirementSatisfier">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="RequirementSatisfier" type="Deployment:RequirementSatisfier"/>
+ <xsd:complexType name="SatisfierProperty">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="kind" type="Deployment:SatisfierPropertyKind"/>
+ <xsd:element name="value" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="SatisfierProperty" type="Deployment:SatisfierProperty"/>
+ <xsd:complexType name="Requirement">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:Property"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Requirement" type="Deployment:Requirement"/>
+ <xsd:complexType name="Property">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:Any"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="Property" type="Deployment:Property"/>
+ <xsd:complexType name="ExternalReferenceEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="location" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ExternalReferenceEndpoint" type="Deployment:ExternalReferenceEndpoint"/>
+ <xsd:complexType name="ComponentExternalPortEndpoint">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="portName" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ComponentExternalPortEndpoint" type="Deployment:ComponentExternalPortEndpoint"/>
+ <xsd:complexType name="ImplementationDependency">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="requiredType" type="xsd:string"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="ImplementationDependency" type="Deployment:ImplementationDependency"/>
+ <xsd:complexType name="TopLevelPackageDescription">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="package" type="Deployment:PackageConfiguration"/>
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" use="optional"/>
+ <xsd:attributeGroup ref="xmi:ObjectAttribs"/>
+ </xsd:complexType>
+ <xsd:element name="TopLevelPackageDescription" type="Deployment:TopLevelPackageDescription"/>
+ <xsd:simpleType name="TCKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="tk_null"/>
+ <xsd:enumeration value="tk_void"/>
+ <xsd:enumeration value="tk_short"/>
+ <xsd:enumeration value="tk_long"/>
+ <xsd:enumeration value="tk_ushort"/>
+ <xsd:enumeration value="tk_ulong"/>
+ <xsd:enumeration value="tk_float"/>
+ <xsd:enumeration value="tk_double"/>
+ <xsd:enumeration value="tk_boolean"/>
+ <xsd:enumeration value="tk_char"/>
+ <xsd:enumeration value="tk_octet"/>
+ <xsd:enumeration value="tk_any"/>
+ <xsd:enumeration value="tk_TypeCode"/>
+ <xsd:enumeration value="tk_Principal"/>
+ <xsd:enumeration value="tk_objref"/>
+ <xsd:enumeration value="tk_struct"/>
+ <xsd:enumeration value="tk_union"/>
+ <xsd:enumeration value="tk_enum"/>
+ <xsd:enumeration value="tk_string"/>
+ <xsd:enumeration value="tk_sequence"/>
+ <xsd:enumeration value="tk_array"/>
+ <xsd:enumeration value="tk_alias"/>
+ <xsd:enumeration value="tk_except"/>
+ <xsd:enumeration value="tk_longlong"/>
+ <xsd:enumeration value="tk_ulonglong"/>
+ <xsd:enumeration value="tk_longdouble"/>
+ <xsd:enumeration value="tk_wchar"/>
+ <xsd:enumeration value="tk_wstring"/>
+ <xsd:enumeration value="tk_wfixed"/>
+ <xsd:enumeration value="tk_value"/>
+ <xsd:enumeration value="tk_value_box"/>
+ <xsd:enumeration value="tk_native"/>
+ <xsd:enumeration value="tk_abstract_interface"/>
+ <xsd:enumeration value="tk_local_interface"/>
+ <xsd:enumeration value="tk_component"/>
+ <xsd:enumeration value="tk_home"/>
+ <xsd:enumeration value="tk_event"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="ResourceUsageKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="None"/>
+ <xsd:enumeration value="InstanceUsesResource"/>
+ <xsd:enumeration value="ResourceUsesInstance"/>
+ <xsd:enumeration value="PortUsesResource"/>
+ <xsd:enumeration value="ResourceUsesPort"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="CCMComponentPortKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="Facet"/>
+ <xsd:enumeration value="SimplexReceptacle"/>
+ <xsd:enumeration value="MultiplexReceptacle"/>
+ <xsd:enumeration value="EventEmitter"/>
+ <xsd:enumeration value="EventPublisher"/>
+ <xsd:enumeration value="EventConsumer"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:simpleType name="SatisfierPropertyKind">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="Quantity"/>
+ <xsd:enumeration value="Capacity"/>
+ <xsd:enumeration value="Minimum"/>
+ <xsd:enumeration value="Maximum"/>
+ <xsd:enumeration value="Attribute"/>
+ <xsd:enumeration value="Selection"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Domain.cdd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Domain.cdd
new file mode 100644
index 00000000000..6f5277d799e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Domain.cdd
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Deployment:Domain
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+<label>HUDisplay Domain</label>
+<UUID>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID>
+<node>
+ <name>EC</name>
+ <label>Timer's Node</label>
+</node>
+<node>
+ <name>BMDisplay</name>
+ <label>NavDisplay's Node</label>
+</node>
+<node>
+ <name>BMDevice</name>
+ <label>GPS's Node</label>
+</node>
+<node>
+ <name>BMClosedED</name>
+ <label>Airframe's Node</label>
+</node>
+</Deployment:Domain>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.ccd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.ccd
new file mode 100644
index 00000000000..3d7d99491c8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.ccd
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentInterfaceDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>GPS Component</label>
+ <UUID>058178f1-430a-460c-927a-d3c98b4ec860</UUID>
+ <specificType>IDL:BasicSP/BMDevice:1.0</specificType>
+ <supportedType>IDL:BasicSP/BMDevice:1.0</supportedType>
+ <port>
+ <name>timeout</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>false</provider>
+ <supportedType>IDL:BasicSP/TimeOut:1.0</supportedType>
+ <specificType>IDL:BasicSP/TimeOut:1.0</specificType>
+ <kind>EventConsumer</kind>
+ </port>
+
+ <port>
+ <name>data_available</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType>
+ <specificType>IDL:BasicSP/DataAvailable:1.0</specificType>
+ <kind>EventPublisher</kind>
+ </port>
+
+ <port>
+ <name>data_read</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/ReadData:1.0</supportedType>
+ <specificType>IDL:BasicSP/ReadData:1.0</specificType>
+ <kind>Facet</kind>
+ </port>
+
+</Deployment:ComponentInterfaceDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cid b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cid
new file mode 100644
index 00000000000..ba56a63c8f5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cid
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentImplementationDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>GPS Implementation</label>
+ <UUID>154cf3cd-1770-4e92-b19b-8c2c921fea38</UUID>
+ <implements href="GPS.ccd"/>
+ <monolithicImpl>
+ <primaryArtifact>
+ <name>BMDevice_Stub</name>
+ <referencedArtifact href="GPS_Stub.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>BMDevice_Svnt</name>
+ <referencedArtifact href="GPS_Svnt.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>BMDevice_Exec</name>
+ <referencedArtifact href="GPS_Exec.iad"/>
+ </primaryArtifact>
+ </monolithicImpl>
+ <configProperty>
+ <name>ComponentIOR</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>BMDevice.ior</string>
+ </value>
+ </value>
+ </configProperty>
+</Deployment:ComponentImplementationDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cpd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cpd
new file mode 100644
index 00000000000..3f1424967f4
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS.cpd
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentPackageDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+
+ <label>GPS System</label>
+
+ <UUID>b55c949b-a9e8-41dd-bbb5-67d8f610dffe</UUID>
+
+ <realizes href="GPS.ccd"/>
+
+ <implementation>
+ <name>GPSImpl</name>
+ <referencedImplementation href="GPS.cid"/>
+ </implementation>
+
+</Deployment:ComponentPackageDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Exec.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Exec.iad
new file mode 100644
index 00000000000..c6724d39c8a
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Exec.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>GPS Executor Artifact</label>
+ <UUID>9617ed9a-d127-4797-836a-0a3b3d7d8b12</UUID>
+ <location>BMDevice_exec</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>BMDevice_Stub</name>
+ <referencedArtifact href="GPS_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createBMDeviceHome_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Stub.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Stub.iad
new file mode 100644
index 00000000000..6968ec7ad74
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Stub.iad
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>GPS Stub Artifact</label>
+ <UUID>c7264c15-d373-4d01-84ee-d37536599240</UUID>
+ <location>BMDevice_stub</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Svnt.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Svnt.iad
new file mode 100644
index 00000000000..a087459cc84
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/GPS_Svnt.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>GPS Servant Artifact</label>
+ <UUID>657440e8-9143-494b-928c-2a3df84e509f</UUID>
+ <location>BMDevice_svnt</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>BMDevice_Stub</name>
+ <referencedArtifact href="GPS_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createBMDeviceHome_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cdp b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cdp
new file mode 100644
index 00000000000..613eec58754
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cdp
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:DeploymentPlan
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>HUDisplay Deployment Plan</label>
+ <instance xmi:id="BMClosedED_Instance">
+ <name>BMClosedED_Instance</name>
+ <node>BMClosedED</node>
+ </instance>
+ <instance xmi:id="BMDevice_Instance">
+ <name>BMDevice_Instance</name>
+ <node>BMClosedED</node>
+ </instance>
+ <instance xmi:id="BMDisplay_Instance">
+ <name>BMDisplay_Instance</name>
+ <node>BMClosedED</node>
+ </instance>
+ <instance xmi:id="EC_Instance">
+ <name>EC_Instance</name>
+ <node>EC</node>
+ </instance>
+</Deployment:DeploymentPlan>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cid b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cid
new file mode 100644
index 00000000000..3746e7cae24
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cid
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentImplementationDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>HUDisplay Assembly</label>
+ <UUID>effd4bd0-6db0-4c50-9bb7-db9decebae1c</UUID>
+ <assemblyImpl>
+ <instance xmi:id="a_GPS">
+ <name>BMDevice_Instance</name>
+ <package href="GPS.cpd"/>
+ </instance>
+ <instance xmi:id="a_Airframe">
+ <name>BMClosedED_Instance</name>
+ <package href="Airframe.cpd"/>
+ </instance>
+ <instance xmi:id="a_NavDisplay">
+ <name>BMDisplay_Instance</name>
+ <package href="NavDisplay.cpd"/>
+ </instance>
+ <instance xmi:id="a_Timer">
+ <name>EC_Instance</name>
+ <package href="Timer.cpd"/>
+ </instance>
+ <connection>
+ <name>Timer_NavDisplay</name>
+ <internalEndpoint>
+ <portName>timeout</portName>
+ <instance xmi:idref="a_Timer"/>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>timeout</portName>
+ <instance xmi:idref="a_GPS"/>
+ </internalEndpoint>
+ </connection>
+ <connection>
+ <name>GPS_Airframe</name>
+ <internalEndpoint>
+ <portName>data_available</portName>
+ <instance xmi:idref="a_GPS"/>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>in_avail</portName>
+ <instance xmi:idref="a_Airframe"/>
+ </internalEndpoint>
+ </connection>
+ <connection>
+ <name>Airframe_GPS</name>
+ <internalEndpoint>
+ <portName>datain</portName>
+ <instance xmi:idref="a_Airframe"/>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>data_read</portName>
+ <instance xmi:idref="a_GPS"/>
+ </internalEndpoint>
+ </connection>
+ <connection>
+ <name>Airframe_NavDisplay</name>
+ <internalEndpoint>
+ <portName>data_ready</portName>
+ <instance xmi:idref="a_NavDisplay"/>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>out_avail</portName>
+ <instance xmi:idref="a_Airframe"/>
+ </internalEndpoint>
+ </connection>
+ <connection>
+ <name>NavDisplay_Airframe</name>
+ <internalEndpoint>
+ <portName>comp_data</portName>
+ <instance xmi:idref="a_NavDisplay"/>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>dataout</portName>
+ <instance xmi:idref="a_Airframe"/>
+ </internalEndpoint>
+ </connection>
+ </assemblyImpl>
+</Deployment:ComponentImplementationDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cpd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cpd
new file mode 100644
index 00000000000..9be7a1e0ef2
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.cpd
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentPackageDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>HUDisplay Package</label>
+ <UUID>823e4287-f53c-4caa-8619-f3dfda4c4998</UUID>
+ <implementation>
+ <name>HUDisplay</name>
+ <referencedImplementation href="HUDisplay.cid"/>
+ </implementation>
+</Deployment:ComponentPackageDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.pcd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.pcd
new file mode 100644
index 00000000000..cbcec4e9113
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/HUDisplay.pcd
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:PackageConfiguration
+xmlns:Deployment="http://www.omg.org/Deployment"
+xmlns:xmi="http://www.omg.org/XMI"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>HUDisplay Configuration for Unix machines</label>
+ <UUID>559d65e8-0407-48c0-a158-dafe21360fef</UUID>
+ <basePackage href="HUDisplay.cpd"/>
+</Deployment:PackageConfiguration>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Libraries.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Libraries.iad
new file mode 100644
index 00000000000..720a7ce8219
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Libraries.iad
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription xmlns:Deployment="http://www.omg.org/Deployment" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Common Libraries</label>
+ <UUID>6bae4fcd-c71c-44b4-a0d4-0e4199ce1a49</UUID>
+ <location>$ACE_ROOT/lib/libACE</location>
+ <location>$ACE_ROOT/lib/libTAO</location>
+ <location>$ACE_ROOT/lib/libCIAO_Client</location>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.ccd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.ccd
new file mode 100644
index 00000000000..175d4067000
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.ccd
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentInterfaceDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>NavDisplay Component </label>
+ <UUID>589462ed-e88f-4f96-a7a7-359cdc333d63</UUID>
+ <specificType>IDL:BasicSP/BMDisplay:1.0</specificType>
+ <supportedType>IDL:BasicSP/BMDisplay:1.0</supportedType>
+ <idlFile>BMDisplay.idl</idlFile>
+ <port>
+ <name>data_ready</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>false</provider>
+ <supportedType>IDL:BasicSP/DataAvailable:1.0</supportedType>
+ <specificType>IDL:BasicSP/DataAvailable:1.0</specificType>
+ <kind>EventConsumer</kind>
+ </port>
+
+ <port>
+ <name>comp_data</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>false</provider>
+ <supportedType>IDL:BasicSP/ReadData:1.0</supportedType>
+ <specificType>IDL:BasicSP/ReadData:1.0</specificType>
+ <kind>SimplexReceptacle</kind>
+ </port>
+
+</Deployment:ComponentInterfaceDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cid b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cid
new file mode 100644
index 00000000000..30b66fea0b2
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cid
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentImplementationDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>NavDisplay Implementation</label>
+ <UUID>0a52c9de-7852-42e4-aac7-bf478169a21a</UUID>
+ <implements href="NavDisplay.ccd"/>
+ <monolithicImpl>
+ <primaryArtifact>
+ <name>BMDisplay_Stub</name>
+ <referencedArtifact href="NavDisplay_Stub.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>BMDisplay_Svnt</name>
+ <referencedArtifact href="NavDisplay_Svnt.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>BMDisplay_Exec</name>
+ <referencedArtifact href="NavDisplay_Exec.iad"/>
+ </primaryArtifact>
+ </monolithicImpl>
+ <configProperty>
+ <name>ComponentIOR</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>BMDisplay.ior</string>
+ </value>
+ </value>
+ </configProperty>
+</Deployment:ComponentImplementationDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cpd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cpd
new file mode 100644
index 00000000000..04862555769
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay.cpd
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentPackageDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Navigation Display Package</label>
+ <UUID>a5923ef4-9c62-4458-9fa4-869b53d834ca</UUID>
+ <realizes href="NavDisplay.ccd"/>
+ <implementation>
+ <name>BMDisplay</name>
+ <referencedImplementation href="NavDisplay.cid"/>
+ </implementation>
+</Deployment:ComponentPackageDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Exec.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Exec.iad
new file mode 100644
index 00000000000..fbd092506a8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Exec.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>NavDisplay Servant Artifact</label>
+ <UUID>412f8156-7913-4651-9110-f7a3f98c7a83</UUID>
+ <location>BMDisplay_exec</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>BMDisplay_Stub</name>
+ <referencedArtifact href="NavDisplay_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createBMDisplayHome_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Stub.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Stub.iad
new file mode 100644
index 00000000000..e79eeea1f4e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Stub.iad
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>NavDisplay Stub Artifact</label>
+ <UUID>4d02c22b-768e-4d1a-bf07-76da2f5d1fbf</UUID>
+ <location>BMDisplay_Stub</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Svnt.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Svnt.iad
new file mode 100644
index 00000000000..05acef61d72
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/NavDisplay_Svnt.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>NavDisplay Servant Artifact</label>
+ <UUID>ad052b10-0806-43c7-9ccc-2dfeda0e0e03</UUID>
+ <location>BMDisplay_svnt</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>BMDisplay_Stub</name>
+ <referencedArtifact href="NavDisplay_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createBMDisplayHome_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.ccd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.ccd
new file mode 100644
index 00000000000..ba44bcf1a00
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.ccd
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentInterfaceDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+
+ <label>Timer Component</label>
+ <UUID>803f8fc7-55de-4a20-81eb-ae951d85b7f4</UUID>
+ <specificType>IDL:BasicSP/EC:1.0</specificType>
+ <supportedType>IDL:BasicSP/EC:1.0</supportedType>
+ <property>
+ <name>hertz</name>
+ <type>
+ <kind>tk_long</kind>
+ </type>
+ </property>
+ <port>
+ <name>supports</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/trigger:1.0</supportedType>
+ <kind>Facet</kind>
+ </port>
+ <port>
+ <name>timeout</name>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>false</exclusiveUser>
+ <optional>false</optional>
+ <provider>true</provider>
+ <supportedType>IDL:BasicSP/TimeOut:1.0</supportedType>
+ <specificType>IDL:BasicSP/TimeOut:1.0</specificType>
+ <kind>EventPublisher</kind>
+ </port>
+
+</Deployment:ComponentInterfaceDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cid b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cid
new file mode 100644
index 00000000000..ac50742d0e3
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cid
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentImplementationDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Timer Implementation</label>
+ <UUID>789e1be2-703f-4bd3-af50-b400eef91fd0</UUID>
+ <implements href="Timer.ccd"/>
+ <monolithicImpl>
+ <primaryArtifact>
+ <name>EC_Stub</name>
+ <referencedArtifact href="Timer_Stub.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>EC_Svnt</name>
+ <referencedArtifact href="Timer_Svnt.iad"/>
+ </primaryArtifact>
+ <primaryArtifact>
+ <name>EC_Exec</name>
+ <referencedArtifact href="Timer_Exec.iad"/>
+ </primaryArtifact>
+ </monolithicImpl>
+ <configProperty>
+ <name>hertz</name>
+ <value>
+ <type>
+ <kind>tk_long</kind>
+ </type>
+ <value>
+ <long>40</long>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>ComponentIOR</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>EC.ior</string>
+ </value>
+ </value>
+ </configProperty>
+</Deployment:ComponentImplementationDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cpd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cpd
new file mode 100644
index 00000000000..167b1238934
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer.cpd
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ComponentPackageDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Timer Package</label>
+ <UUID>07ebf947-2174-4a3b-bd37-bcb92986eaf4</UUID>
+ <realizes href="Timer.ccd"/>
+ <implementation>
+ <name>EC</name>
+ <referencedImplementation href="Timer.cid"/>
+ </implementation>
+</Deployment:ComponentPackageDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Exec.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Exec.iad
new file mode 100644
index 00000000000..222fc22bc9e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Exec.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Timer Executor Artifact</label>
+ <UUID>5e4f2366-3810-4d4c-a269-5788a525cbe1</UUID>
+ <location>EC_exec</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>EC_Stub</name>
+ <referencedArtifact href="Timer_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createECHome_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Stub.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Stub.iad
new file mode 100644
index 00000000000..c9d15dcc82e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Stub.iad
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Timer Stub Artifact</label>
+ <UUID>93bbdf7d-d3f7-4227-bb75-b0562ac15b92</UUID>
+ <location>EC_stub</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Svnt.iad b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Svnt.iad
new file mode 100644
index 00000000000..f870112f143
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/Timer_Svnt.iad
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:ImplementationArtifactDescription
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <label>Timer Servant Artifact</label>
+ <UUID>04e4d246-e6eb-4b0e-8e32-60b996497cea</UUID>
+ <location>EC_svnt</location>
+ <dependsOn>
+ <name>ACE</name>
+ <referencedArtifact href="Libraries.iad"/>
+ </dependsOn>
+ <dependsOn>
+ <name>EC_Stub</name>
+ <referencedArtifact href="Timer_Stub.iad"/>
+ </dependsOn>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createECHome_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+</Deployment:ImplementationArtifactDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/XMI.xsd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/XMI.xsd
new file mode 100644
index 00000000000..f4adac91934
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/XMI.xsd
@@ -0,0 +1,35 @@
+<?xml version="1.0" ?>
+<xsd:schema targetNamespace="http://www.omg.org/XMI" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation='http://www.w3.org/2001/XMLSchema XMLSchema.xsd'>
+ <xsd:attribute name="id" type="xsd:ID" />
+ <xsd:attributeGroup name="IdentityAttribs">
+ <xsd:attribute form="qualified" name="label" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="uuid" type="xsd:string" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:attributeGroup name="LinkAttribs">
+ <xsd:attribute name="href" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="idref" type="xsd:IDREF" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:attributeGroup name="ObjectAttribs">
+ <xsd:attributeGroup ref="xmi:IdentityAttribs" />
+ <xsd:attributeGroup ref="xmi:LinkAttribs" />
+ <xsd:attribute fixed="2.0" form="qualified" name="version" type="xsd:string" use="optional" />
+ <xsd:attribute form="qualified" name="type" type="xsd:QName" use="optional" />
+ </xsd:attributeGroup>
+ <xsd:complexType name="Extension">
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:any processContents="lax" />
+ </xsd:choice>
+ <xsd:attribute ref="xmi:id" />
+ <xsd:attributeGroup ref="xmi:ObjectAttribs" />
+ <xsd:attribute name="extender" type="xsd:string" use="optional" />
+ <xsd:attribute name="extenderID" type="xsd:string" use="optional" />
+ </xsd:complexType>
+ <xsd:element name="Extension" type="xmi:Extension" />
+ <xsd:complexType name="Any">
+ <xsd:choice maxOccurs="unbounded" minOccurs="0">
+ <xsd:any processContents="skip" />
+ </xsd:choice>
+ <xsd:anyAttribute processContents="skip" />
+ </xsd:complexType>
+</xsd:schema>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/package.tpd b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/package.tpd
new file mode 100644
index 00000000000..9096beb2c48
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/HUDisplay/package.tpd
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:TopLevelPackageDescription
+xmlns:Deployment="http://www.omg.org/Deployment"
+xmlns:xmi="http://www.omg.org/XMI"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
+ <package href="HUDisplay.pcd"/>
+</Deployment:TopLevelPackageDescription>
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.cpp
new file mode 100644
index 00000000000..ec2bebd91e7
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.cpp
@@ -0,0 +1,208 @@
+// $Id$
+#ifndef HANDLER_TEST_CPP
+#define HANDLER_TEST_CPP
+
+#include "Handler_Test.h"
+
+#include "ace/Get_Opt.h"
+#include "ace/Auto_Ptr.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+#include "ace/Auto_Ptr.h"
+#include "tao/Exception.h"
+#include "Old_Config_Handlers/XercesString.h"
+#include <xercesc/util/XMLUniDefs.hpp>
+#include "Old_Config_Handlers/Config_Handler_export.h"
+#include "Old_Config_Handlers/DnC_Dump.h"
+#include "Old_Config_Handlers/Config_Error_Handler.h"
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMAttr;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMNodeList;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+namespace Config_Handler_Test
+{
+ void
+ usage (const ACE_TCHAR* program)
+ {
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("Usage: %s -u <URI>\n")
+ ACE_TEXT (" <URI>: URI identifying the resource\n"),
+ program));
+ }
+
+ template <typename HANDLER, typename DATA>
+ int run_test (int argc, ACE_TCHAR *argv[], void (HANDLER::*func) (DATA&))
+ {
+ ACE_TCHAR* url = 0;
+
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, ACE_TEXT ("u:"));
+ int c;
+
+ while ((c = get_opt ()) != EOF)
+ {
+ switch (c)
+ {
+ case 'u':
+ url = get_opt.opt_arg();
+ break;
+ default:
+ usage(argv[0]);
+ return -1;
+ }
+ }
+
+ if (url == 0) {
+ usage (argv[0]);
+ return -1;
+ }
+
+ // Initialize the ORB so that CORBA::Any will work
+ //
+ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "");
+
+ // Initialize the Xerces run-time
+ try
+ {
+ xercesc::XMLPlatformUtils::Initialize();
+ }
+
+ catch (const XMLException& e)
+ {
+ char* message = XMLString::transcode (e.getMessage());
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_DEBUG ((LM_DEBUG, "Error during initialization : %s\n", message));
+ return 1;
+ }
+
+ try
+ {
+
+ // Instantiate the DOM parser.
+ static const XMLCh gLS[] = { xercesc::chLatin_L,
+ xercesc::chLatin_S,
+ xercesc::chNull };
+
+ // Get an implementation of the Load-Store (LS) interface
+ DOMImplementation* impl
+ = DOMImplementationRegistry::getDOMImplementation(gLS);
+
+ auto_ptr<DOMImplementation> cleanup_impl (impl);
+
+ // Create a DOMBuilder
+ DOMBuilder* parser =
+ ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
+
+ auto_ptr<DOMBuilder> cleanup_builder (parser);
+
+ // Discard comment nodes in the document
+ parser->setFeature (XMLUni::fgDOMComments, false);
+
+ // Disable datatype normalization. The XML 1.0 attribute value
+ // normalization always occurs though.
+ parser->setFeature (XMLUni::fgDOMDatatypeNormalization, true);
+
+ // Do not create EntityReference nodes in the DOM tree. No
+ // EntityReference nodes will be created, only the nodes
+ // corresponding to their fully expanded sustitution text will be
+ // created.
+ parser->setFeature (XMLUni::fgDOMEntities, false);
+
+ // Perform Namespace processing.
+ parser->setFeature (XMLUni::fgDOMNamespaces, true);
+
+ // Perform Validation
+ parser->setFeature (XMLUni::fgDOMValidation, true);
+
+ // Do not include ignorable whitespace in the DOM tree.
+ parser->setFeature (XMLUni::fgDOMWhitespaceInElementContent, false);
+
+ // Enable the parser schema support.
+ parser->setFeature (XMLUni::fgXercesSchema, true);
+
+ // Enable full schema constraint checking, including checking which
+ // may be time-consuming or memory intensive. Currently, particle
+ // unique attribution constraint checking and particle derivation
+ // restriction checking are controlled by this option.
+ parser->setFeature (XMLUni::fgXercesSchemaFullChecking, true);
+
+ // The parser will treat validation error as fatal and will exit.
+ parser->setFeature (XMLUni::fgXercesValidationErrorAsFatal, true);
+
+ CIAO::Config_Handler::Config_Error_Handler handler;
+ parser->setErrorHandler(&handler);
+
+ DOMDocument* doc = parser->parseURI(url);
+ auto_ptr<DOMDocument> cleanup_doc (doc);
+
+ if (handler.getErrors())
+ {
+ return 1;
+ }
+ HANDLER obj (doc, DOMNodeFilter::SHOW_ELEMENT |
+ DOMNodeFilter::SHOW_TEXT);
+
+ DATA data;
+ (obj.*func)(data);
+ Deployment::DnC_Dump::dump (data);
+ //domain_handler.dump(domain);
+
+ // parser->release ();
+ }
+ catch (const DOMException& e)
+ {
+ const unsigned int maxChars = 2047;
+ XMLCh errText[maxChars + 1];
+
+ ACE_ERROR ((LM_ERROR,
+ "\nException occured while parsing %s: \n", url));
+ ACE_ERROR ((LM_ERROR,
+ "DOMException code: %d\n ", e.code));
+ if (DOMImplementation::loadDOMExceptionMsg(e.code, errText, maxChars))
+ {
+ char* message = XMLString::transcode (errText);
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_ERROR ((LM_ERROR, "Message is: %s\n", message));
+ }
+ return 1;
+ }
+ catch (const XMLException& e)
+ {
+ char* message = XMLString::transcode (e.getMessage());
+ ACE_Auto_Basic_Array_Ptr<char> cleanup_message (message);
+ ACE_ERROR ((LM_ERROR, "\nException occured: %s\n ", message));
+ return 1;
+ }
+ catch (CORBA::Exception& ex)
+ {
+ ACE_PRINT_EXCEPTION (ex, "Caught CORBA Exception: ");
+ return 1;
+ }
+ catch (...)
+ {
+ ACE_ERROR ((LM_ERROR, "Caught unknown exception\n"));
+ return 1;
+ }
+
+ xercesc::XMLPlatformUtils::Terminate();
+ return 0;
+ }
+}
+
+#endif /*HANDLER_TEST_CPP*/
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.h b/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.h
new file mode 100644
index 00000000000..0e0a95e3cca
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Test.h
@@ -0,0 +1,53 @@
+// $Id$
+
+#ifndef HANDLER_TEST_H
+#define HANDLER_TEST_H
+
+#include "ace/Log_Msg.h"
+#include "ace/OS_main.h"
+
+#include "ace/Get_Opt.h"
+#include "ace/Auto_Ptr.h"
+#include "tao/Exception.h"
+#include "Old_Config_Handlers/XercesString.h"
+#include "Old_Config_Handlers/Config_Handler_export.h"
+#include "Old_Config_Handlers/DnC_Dump.h"
+#include "Old_Config_Handlers/Config_Error_Handler.h"
+
+#include <xercesc/util/XMLUniDefs.hpp>
+#include <xercesc/dom/DOM.hpp>
+
+using Config_Handler::XStr;
+using xercesc::XMLUni;
+using xercesc::XMLString;
+using xercesc::XMLException;
+using xercesc::DOMException;
+using xercesc::DOMBuilder;
+using xercesc::DOMImplementationRegistry;
+using xercesc::DOMImplementationLS;
+using xercesc::DOMImplementation;
+using xercesc::DOMAttr;
+using xercesc::DOMNamedNodeMap;
+using xercesc::DOMLocator;
+using xercesc::DOMError;
+using xercesc::DOMNodeList;
+using xercesc::DOMDocument;
+using xercesc::DOMDocumentTraversal;
+using xercesc::DOMNodeIterator;
+using xercesc::DOMNode;
+using xercesc::DOMNodeFilter;
+
+namespace Config_Handler_Test
+{
+}
+
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "Handler_Test.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("Handler_Test.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+#endif // HANDLER_TEST_H
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Tests.mpc b/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Tests.mpc
new file mode 100644
index 00000000000..f8bda5acc48
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/Handler_Tests.mpc
@@ -0,0 +1,57 @@
+//$Id$
+
+project (Domain_Handler_Test) : handler_test {
+ exename = domain
+
+ Source_Files {
+ Domain_Handler_Test.cpp
+ }
+}
+
+project (CompImpl_Handler_Test) : handler_test {
+ exename = compimpldesc
+
+ Source_Files {
+ CompImplDesc_Handler_Test.cpp
+ }
+}
+
+project (CompIntr_Handler_Test) : handler_test {
+ exename = compintrdesc
+
+ Source_Files {
+ CompIntrDesc_Handler_Test.cpp
+ }
+}
+
+project (CompPkg_Handler_Test) : handler_test {
+ exename = comppkgdesc
+
+ Source_Files {
+ CompPkgDesc_Handler_Test.cpp
+ }
+}
+
+project (IAD_Handler_Test) : handler_test {
+ exename = iad
+
+ Source_Files {
+ IAD_Handler_Test.cpp
+ }
+}
+
+project (PC_Handler_Test) : handler_test {
+ exename = pc
+
+ Source_Files {
+ PC_Handler_Test.cpp
+ }
+}
+
+project (Plan_Handler_Test) : handler_test {
+ exename = plan
+
+ Source_Files {
+ Plan_Handler_Test.cpp
+ }
+}
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/IAD_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/IAD_Handler_Test.cpp
new file mode 100644
index 00000000000..f7a3017ddc2
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/IAD_Handler_Test.cpp
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/IAD_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test <CIAO::Config_Handler::IAD_Handler, Deployment::ImplementationArtifactDescription>
+ (argc, argv, &CIAO::Config_Handler::IAD_Handler::process_ImplementationArtifactDescription);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/PC_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/PC_Handler_Test.cpp
new file mode 100644
index 00000000000..cc973145cb8
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/PC_Handler_Test.cpp
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/PC_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test <CIAO::Config_Handler::PC_Handler, Deployment::PackageConfiguration>
+ (argc, argv, &CIAO::Config_Handler::PC_Handler::process_PackageConfiguration);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/Plan_Handler_Test.cpp b/TAO/CIAO/DAnCE/tests/Config_Handlers/Plan_Handler_Test.cpp
new file mode 100644
index 00000000000..faeb52a1341
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/Plan_Handler_Test.cpp
@@ -0,0 +1,13 @@
+// $Id$
+
+#include "Handler_Test.h"
+
+#include "Old_Config_Handlers/Plan_Handler.h"
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ return Config_Handler_Test::run_test <CIAO::Config_Handler::Plan_Handler, Deployment::DeploymentPlan>
+ (argc, argv, &CIAO::Config_Handler::Plan_Handler::process_plan);
+}
+
diff --git a/TAO/CIAO/DAnCE/tests/Config_Handlers/handler_test.mpb b/TAO/CIAO/DAnCE/tests/Config_Handlers/handler_test.mpb
new file mode 100644
index 00000000000..f342352961e
--- /dev/null
+++ b/TAO/CIAO/DAnCE/tests/Config_Handlers/handler_test.mpb
@@ -0,0 +1,14 @@
+//$Id$
+
+project : taoexe, ciao_server_dnc, ciao_deployment_stub, xerces {
+ dynamicflags = CONFIG_HANDLER_BUILD_DLL
+ requires += exceptions
+ includes += $(ACE_ROOT)/TAO/CIAO/DAnCE
+ libs += Config_Handlers // Deployment_stub Deployment_svnt
+// libs += CIAO_DnC_Server CIAO_DnC_Container
+ after += Config_Handlers
+
+ Template_Files {
+ Handler_Test.cpp
+ }
+}
diff --git a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
index 2cc04a9a18a..734635d9c09 100644
--- a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
+++ b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeAppTest.mpc
@@ -62,7 +62,7 @@ project(NodeAppTest_RoundTrip_svnt) : ciao_servant_dnc {
}
}
-project(NodeAppTest_RoundTrip_exec) : ciao_component_dnc, ciao_events_dnc, ciao_server_dnc {
+project(NodeAppTest_RoundTrip_exec) : ciao_component_dnc {
after += NodeAppTest_RoundTrip_stub NodeAppTest_RoundTrip_svnt
sharedname = NodeAppTest_RoundTrip_exec
@@ -143,21 +143,21 @@ project (NodeAppTest_client_ex) : ciao_deployment_stub {
}
}
-project (NodeAppTest_client_dynamic) : ciao_deployment_stub {
- after += NodeAppTest_RoundTrip_stub
- libs += NodeAppTest_RoundTrip_stub
- exename += client_dynamic
-
- IDL_Files {
- }
-
- Source_Files {
- NodeApp_test_client_dynamic.cpp
- }
-
- Header_Files {
- }
-
- Inline_Files {
- }
-}
+//project (NodeAppTest_client_dynamic) : ciao_deployment_stub {
+// after += NodeAppTest_RoundTrip_stub
+// libs += NodeAppTest_RoundTrip_stub
+// exename += client_dynamic
+//
+// IDL_Files {
+// }
+//
+// Source_Files {
+// NodeApp_test_client_dynamic.cpp
+// }
+
+// Header_Files {
+// }
+
+// Inline_Files {
+// }
+//}
diff --git a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
index 21502bb63a6..a7f196835db 100644
--- a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
+++ b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client.cpp
@@ -14,11 +14,11 @@
const char *ior = "file://test.ior";
int comp_number = 4;
-int counter = 0;
+int count = 0;
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -47,7 +47,7 @@ int parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
std::vector<NodeAppTest::NodeAppTest_RoundTrip_var> comp_list;
//std::vector<NodeAppTest::NodeAppTest_RoundTrip_var>::const_iterator iter;
@@ -95,8 +95,8 @@ main (int argc, char *argv[])
Deployment::ComponentImplementationInfo info;
std::stringstream tmp;
- tmp << "NodeAppTest_RoundTrip:" << counter;
- counter = counter + 1;
+ tmp << "NodeAppTest_RoundTrip:" << count;
+ count = count + 1;
// Add the names and entry points of each of the DLLs
info.component_instance_name =
@@ -107,9 +107,7 @@ main (int argc, char *argv[])
info.servant_dll =
CORBA::string_dup ("NodeAppTest_RoundTrip_svnt");
info.servant_entrypt =
- CORBA::string_dup (
- "create_NodeAppTest_NodeAppTest_RoundTripHome_Servant"
- );
+ CORBA::string_dup ("createNodeAppTest_RoundTripHome_Servant");
//Now add the info into the infos
container_info_1.impl_infos[i] = info;
@@ -143,8 +141,8 @@ main (int argc, char *argv[])
Deployment::ComponentImplementationInfo info;
std::stringstream tmp;
- tmp << "NodeAppTest_RoundTrip:" << counter;
- counter = counter + 1;
+ tmp << "NodeAppTest_RoundTrip:" << count;
+ count = count + 1;
// Add the names and entry points of each of the DLLs
info.component_instance_name =
@@ -155,9 +153,7 @@ main (int argc, char *argv[])
info.servant_dll =
CORBA::string_dup ("NodeAppTest_RoundTrip_svnt");
info.servant_entrypt =
- CORBA::string_dup (
- "create_NodeAppTest_NodeAppTest_RoundTripHome_Servant"
- );
+ CORBA::string_dup ("createNodeAppTest_RoundTripHome_Servant");
//Now add the info into the infos
container_info_2.impl_infos[i] = info;
diff --git a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp
deleted file mode 100644
index 9807170cc79..00000000000
--- a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_dynamic.cpp
+++ /dev/null
@@ -1,166 +0,0 @@
-// $Id$
-
-#include "Deployment_CoreC.h"
-#include "Client_init.h"
-#include "NodeAppTest_RoundTripC.h"
-#include "ace/Get_Opt.h"
-#include "assert.h"
-
-const char *ior = "file://test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s \n"
- "-k <ComponentServer ior> \n"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CIAO::Client_init (orb.in ());
-
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Deployment::NodeApplication_var node_app =
- Deployment::NodeApplication::_narrow(tmp.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (node_app.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil nodeapplication reference <%s>\n",
- ior),
- 1);
- }
-
-
- ACE_DEBUG ((LM_DEBUG, "Try installing Home and Component\n"));
-
- Deployment::ComponentImplementationInfo info;
-
- // Add the names and entry points of each of the DLLs
- info.component_instance_name =
- CORBA::string_dup ("NodeAppTest_RoundTrip");
- info.executor_dll =
- CORBA::string_dup ("NodeAppTest_RoundTrip_exec");
- info.executor_entrypt =
- CORBA::string_dup ("createRoundTripHome_Impl");
- info.servant_dll =
- CORBA::string_dup ("NodeAppTest_RoundTrip_svnt");
- info.servant_entrypt =
- CORBA::string_dup (
- "create_NodeAppTest_NodeAppTest_RoundTripHome_Servant"
- );
-
- // Create a ContainerImplementationInfo sequence
- Deployment::ContainerImplementationInfo container_info;
- container_info.impl_infos.length (1);
- container_info.impl_infos[0] = info;
-
- // Create a NodeImplementationInfo sequence
- Deployment::NodeImplementationInfo node_info;
- node_info.impl_infos.length (1);
- node_info.impl_infos[0] = container_info;
-
- // Install test component and its home on NodeApplication
- Deployment::ComponentInfos_var comp_info =
- node_app->install (node_info ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- assert (comp_info->length () == 1); //return 1 component objeref
-
- const CORBA::ULong i = 0;
- Components::CCMObject_var objref = (comp_info[i]).component_ref;
-
- NodeAppTest::NodeAppTest_RoundTrip_var roundtrip_var =
- NodeAppTest::NodeAppTest_RoundTrip::_narrow (objref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip_var.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil RoundTrip reference\n"),
- 1);
- }
-
- // Invoke Operation on the Interface
- ACE_DEBUG ((LM_DEBUG, "Try cube_long operation on the Interface \n"));
- CORBA::Long input = 1L;
- CORBA::Long output =
- roundtrip_var->cube_long (input ACE_ENV_ARG_PARAMETER);
-
- if (input == output)
- ACE_DEBUG ((LM_DEBUG, "Retrun values matched!!\n"));
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Return values did not match: failure\n"));
- exit (1);
- }
-
- // Install another set of components
- ACE_DEBUG ((LM_DEBUG, "Try installing another component dynamically\n"));
-
- // Modifying the component instance name since it must be unique
- (node_info.impl_infos[0]).impl_infos[0].component_instance_name =
- CORBA::string_dup ("NodeAppTest_RoundTrip_2");
- Deployment::ComponentInfos_var comp_info_new =
- node_app->install (node_info ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- assert (comp_info_new->length () == 1); //return 1 component objeref
-
- ACE_DEBUG ((LM_DEBUG, "Try removing the second component and its home\n"));
- node_app->remove_component ("NodeAppTest_RoundTrip");
- ACE_DEBUG ((LM_DEBUG, "Component and Home removed successfully\n"));
-
- ACE_DEBUG ((LM_DEBUG, "=====Try removing all remaining components and homes\n"));
- node_app->remove ();
- ACE_DEBUG ((LM_DEBUG, "=====Components and Homes removed successfully\n"));
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_DEBUG ((LM_DEBUG, "=====Test success!!\n"));
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
index 7792de3eed2..d1834637fcc 100644
--- a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
+++ b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_ex.cpp
@@ -11,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,7 +35,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
@@ -80,9 +80,7 @@ main (int argc, char *argv[])
info.servant_dll =
CORBA::string_dup ("NodeAppTest_RoundTrip_svnt");
info.servant_entrypt =
- CORBA::string_dup (
- "create_NodeAppTest_NodeAppTest_RoundTripHome_Servant"
- );
+ CORBA::string_dup ("createNodeAppTest_RoundTripHome_Servant");
// Create a ContainerImplementationInfo sequence
Deployment::ContainerImplementationInfo container_info;
diff --git a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
index 8b6d23887fb..c3beeed8a2b 100644
--- a/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
+++ b/TAO/CIAO/DAnCE/tests/NodeApplicationTest/NodeApp_test_client_simple.cpp
@@ -11,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,7 +35,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
@@ -80,9 +80,7 @@ main (int argc, char *argv[])
info.servant_dll =
CORBA::string_dup ("NodeAppTest_RoundTrip_svnt");
info.servant_entrypt =
- CORBA::string_dup (
- "create_NodeAppTest_NodeAppTest_RoundTripHome_Servant"
- );
+ CORBA::string_dup ("createNodeAppTest_RoundTripHome_Servant");
// Create a ContainerImplementationInfo sequence
Deployment::ContainerImplementationInfo container_info;
diff --git a/TAO/CIAO/NEWS b/TAO/CIAO/NEWS
index ab5537075ec..3c3fc72a79e 100644
--- a/TAO/CIAO/NEWS
+++ b/TAO/CIAO/NEWS
@@ -1,18 +1,12 @@
PLANNED MAJOR CHANGES "SOMETIME IN THE FUTURE" (i.e., exact beta not known)
===========================================================================
-. Enhance Execution Manager and Domain Application Manager to make calls
- on the Target Manager to get resource information.
-
-. Enhance Node Manager to integrate resource monitoring capacity within
- individual Nodes.
-
. Add assembly-wide component activation/deactivation feature.
- This should allow system deployers to specify the dependencies
among component instances within the assembly.
- - Add support in DAnCE so DAnCE could enforce the order in which
+ - Add support in DAnCE so DAnCE could enforce the order in which
components are to be activated within the assembly.
. Add AMI support in DAnCE toolchain to when the DomainApplicationManager
@@ -25,8 +19,13 @@ PLANNED MAJOR CHANGES "SOMETIME IN THE FUTURE" (i.e., exact beta not known)
. Enhance DAnCE to support OpenCCM components.
+. Static Configuration for DAnCE.
+
. Target Manager implementation.
+. Support threading models in NodeApplication, such as thread pools
+ and the like.
+
. Implement Resource Allocation and Control Engine (RACE), which is a
component middleware framework built atop of CIAO/DAnCE that integrates
multiple resource allocation/control algorithms for (re)deploying and
@@ -37,272 +36,42 @@ PLANNED MAJOR CHANGES "SOMETIME IN THE FUTURE" (i.e., exact beta not known)
decisions, without handcrafting the mechanisms needed to (1) configure
the algorithms and (2) deploy the decisions made by the algorithms.
-. Implement support for more complex type initialization with XML.
-
-. (Remedy) support for using CIAO with VxWorks as target
-
-. Decouple dependencies to NodeApplication from other DAnCE tools.
- These dependencies were added to support static configurator. We
- need to have these tools in both conventional version and static
- configuration version.
-
-. Support tool-specific debug levels and added CIAO_DEBUG macros to
- simplify adding debug printouts based on various tool-specific debug
- levels.
-
-. Add support for querying for interface types to the
- RepositoryManager.
-
-. Implement a planner to query the TargetManager and RepositoryManager
- and generate deployment plans on the fly.
PLANNED MAJOR CHANGES FOR THE NEXT RELEASE
==========================================
-. Adding support to manage multiple interconnected assemblies, which will
- involve the work through ExternalReferenceEndPoint idea.
-
-. Seamless integration of swapping into the main line programming model,
- so that DAnCE can actually kickstart swapping.
-
-. Integrate various Pub/Sub services into CIAO and DAnCE.
-
-USER VISIBLE CHANGES BETWEEN CIAO-0.5.0 and CIAO-0.5.1
-====================================================
-
-. Added the support of integrating real-time event service into the
- CIAO core framework. Enhanced DAnCE to support declaratively configure
- and deploy real-time event channels to mediate event communication
- among components.
-
-. Fixed a bug in detecting External connection and Internal
- connections when components are shared across different
- deployment plans. Earlier when removing connections attached
- to an external/shared component, not *all* connections
- associated with this components are purged from the
- to-be-removed connections list.
-
-. Fixed a bug when redeploying components using the same set
- of NodeManagers, the destroy of applications results not
- all internal components and external/shared components
- are unbinded from the cached map, which sometimes causes
- duplicate instance exception thrown.
-
-. Fixed bug in detecting name clashes between names of ports of the same
- category (facet, event sink, etc.) in the same component.
-
-. Added support for attribute exceptions in code generated for executor
- implementation classes.
-
-. Implemented spec-defined component methods get_all_receptacles(),
- get_all_publishers(), and disconnect_consumer().
-
-USER VISIBLE CHANGES BETWEEN CIAO-0.4.10 and CIAO-0.5.0
-====================================================
-
-. Changed MPC configuration of Config_Handlers to turn off hidden
- visibility if applicable when compiling Config_Handlers or projects
- that use Config_Handlers on linux.This change was to work around symbol
- visibility inconsistencies in GNU standard C++ library when using g++
- 4.x's symbol visibility features.
-
-. Enhanced ReDaC service to enforce the correct
- assembly redeployment and reconfiguration order.
-
-. Some bug fixes in ReDaC about removing components.
-
-. Fixed NodeApplication to unbind a component with naming service
- when removing it from the container.
-
-USER VISIBLE CHANGES BETWEEN CIAO-0.4.9 and CIAO-0.4.10
-======================================================
-
-. Enhanced DAnCE ReDaC service to enforce the correct
- assembly redeployment and reconfiguration order.
-
- The order that ReDaC currently enforces:
-
- (1) Install new components,
- (2) Set up new connections,
- (3) Activate new components,
- (4) Passivate old components,
- (5) Remove old connections
- (6) Remove old components.
-
-. Enhanced DAnCE to create hierarchical naming context
- path through XML descriptors.
-
-. Enhanced DAnCE to maintain a component state map in
- the component server to manage component life cycle.
-
-. Some bug fixes in DAnCE.
-
-USER VISIBLE CHANGES BETWEEN CIAO-0.4.8 and CIAO-0.4.9
-======================================================
-. RTTI enabled versions of the Xerces library are no longer needed on
- Windows platforms.
-
-. The CIDLC compiler now supports basic preprocessor directives:
- #ifdef, #ifndef, #else, and #endif as well as the -D command-
- line option.
-
-. The CIDLC compiler now supports incomplete struct and union
- semantics which will appear in CORBA 3.1.
-
-. DAnCE now supports dynamically adding/removing components
+. Enhance DAnCE to support dynamically adding/removing components
to/from the existing running assembly without shutting down the
running appliation. This will allow the application developers to
evolve their applications on the fly without incuring service down
- time. The service is called ReDaC (Redeployment and Reconfiguration)
-
- Basically ReDAC provides a whole range of redeployment and
- reconfiguration granularity level, including:
-
- 1) Install/remove component instances of the existing component types.
- 2) Install/remove component instances of a different type, i.e., a
- totally new type of component.
- 3) Install/remove component instances from an existing container.
- 4) Install new component instances into a dynamically created brand
- new container.
- Move around existing components from one existing container to
- another existing/new container.
- 5) Install new component instances into another component server in
- the same physical node.
- 6) Install new component instances into another component server
- into a remote host.
-
- To see how to use this feature, please see the ReDaC-Usage.html
- under the $CIAO_ROOT/examples/Hello/ directory.
-
-. Removed the Old Config Handlers, which have been deprecated for some
- time. Please see tools/Config_Handlers for the current version.
-
-. Added a step-by-step CoSMIC tutorial for modeling CIAO components
- using PICML($CIAO_ROOT/docs/tutorials/CoSMIC). Using a simple Stock
- Quoter system as example, this tutorial demonstrates all the steps
- that needed to model Component-Based applications.
-
-. DAnCE now supports making connections among components across
- different assemblies, and allow components to be "shared"
- across assemblies seamlessly.
-
- Internally, DAnCE provides a reference counting mechanism when
- deploying/destroying components, and a reference count table
- is maintained on each NodeManager.
-
- From a deployer's point of view, if he/she chooses to deploy
- a new assembly of component and simultaneously wants to reuse
- previous deployed components in an existing running assembly,
- then in the new deployment plan descriptor, he could refer
- to an old component instance in the <InstanceDeploymentDescriptions>
- XML tag. The "key" to identify the old component instance is
- through the <Component_UUID, Node> pair, if such a key is found
- present in a previous deployed assembly, then DAnCE won't
- install this component instance (specified by the <Component_UUID>)
- again, but instead it will increase the reference count of this
- component instance.
-
- DAnCE also supports making connections from existing running
- components to newly deployed components in another assembly, and
- vice versa.
-
-. The RepositoryManager has been enhanced to support standards based
- interfaces. A number of techniques have been used to ensure high
- performance and scalability.
-
-. The RepositoryManager can now retrieve packages from remote locations via
- HTTP.
-
-. The Target Manager is released with this CIAO release. It is an
- infrastructure component which keeps track of resource usage in the
- target domain. The initial domain configuration remains with the
- Target Manager. A monitor framework has been built into Node Manager which
- monitors the resources used within each host. This monitor reports its
- data intermittently to the Target Manager which aggregates the data
- received across all such hosts acroos the Target domain. The monitor
- is implemented using a strategy pattern, thus enabling the plug-in of
- new monitors which can monitor different resources in the domain. The
- Target manager is a component thus it needs to be started using a
- deployment plan. It is right now a optional component in the DAnCE
- tool chain.
-
-. We added a skeleton implementation of the Resource Allocation and
- Control Engine (RACE) which is a middleware framework built atop
- CIAO/DAnCE that integrates multiple resource management algorithms for
- (re)deploying and (re)configuring application components. We are in
- the process of developing resource management algorithms (both
- resource allocation and control algorithms) that will be a part of
- future releases.
-
-USER VISIBLE CHANGES BETWEEN CIAO-0.4.7 and CIAO-0.4.8
-======================================================
-. The deprecated RepositoryManager implementation, under
- DAnCE/RepositoryManager, has been removed from this release. Please
- use the Plan_Launcher and flattened deployment plans to deploy
- component assemblies.
-
-. The CIDL compiler frontend now supports constants, const expressions,
- bounded strings, bounded sequences, and arrays.
-
-. The CIDL compiler frontend now supports automatic indentation of
- function arguments (both "new line" and "same line" styles are
- supported).
+ time.
-. Added backend CIDL compiler support for constants, arrays, bounded
- strings, bounded sequences, and attribute exceptions, corresponding
- to frontend support added by Boris Kolpackov <boris@kolpackov.net>.
-
-. Updated documentation to include instructions for building
- the CIDL compiler using MakeProjectCreator (MPC).
-
-. Fixed a bug in the CIDL compiler's determination if an IDL
- type is of fixed or variable size type, when it is declared
- in the scope of an interface, valuetype or home.
-
-. Changes to generate servant code to support component
- swapping.
-
-. Added capability to pass a base class event consumer to a
- subscribe() operation generated for a derived event type.
-
-. Added support for .cdl file extension, which was belatedly
- standardized by the OMG.
-
-. Added documentation on using Rational Purify with CIAO and
- DAnCE.
+. Adding support to manage multiple interconnected assemblies, which will
+ involve the work through ExternalReferenceEndPoint idea.
-. Added tests and documentation for the IDL3-to-IDL2 converter tool.
+. Seamless integration of swapping into the main line programming model,
+ so that DAnCE can actually kickstart swapping.
-. RepositoryManager:
- - enhanced the implementation to use various optimization techniques
- - added HTTP support
- - added PackageConfiguration visitor to update the locations of the
- implementation artifacts with relevant HTTP URLs
- - refactored some of the code and added a number of helpers functions
+. Integrate RepositoryManager into the DAnCE toolchain.
-. The XSC based config handlers have been heavily optimized, resulting
- in greatly reduced parsing overhead for large deployments.
+. Integrate various Pub/Sub services into CIAO and DAnCE.
+
-. The DAnCE toolchain now supports initializing attributes which have
- enumerated types. Support for other complex types is planned for the
- future. Please see examples/Hello/descriptors/
- flattened_deploymentplan_without_ns.cdp for an example of how to
- populate enumerated attributes.
+USER VISIBLE CHANGES BETWEEN CIAO-0.4.7 and CIAO-0.4.8
+======================================================
-. Integrated Real-time QoS support into the DAnCE-based runtime and
- deployment tools based on the new OMG Deployment and Configuration
- (D&C) specification. Such effort allows application developers to
- use real-time CORBA 1.0 features within their CCM appliation through
- meta-programming (via XML metadata through DAnCE toolchain). The old
- run-time and deployment tools based on original Packaging and Deployment
- section of the CCM specification have been completely removed. This
- work includes extensions to D&C schema, schema parsers, container and
- NodeApplication.
+. Integrated Real-time QoS support to CIAO based on OMG's new
+ Deployment and Configuration (D&C) specification. Such effort
+ allows application developers to use real-time CORBA 1.0 features
+ within their CCM appliation through meta-programming (via XML
+ metadata through DAnCE toolchain). Particularly, we added support
+ for server-side RT policies, including extension for schema,
+ container, and NodeApplication.
. Added functionality in XML parsing code to resolve schema in
$CIAO_ROOT/docs/schema instead of the local directory only. All
DeploymentPlans should use Deployment.xsd instead of
- Modified_Deployment.xsd, which has been removed.
+ Modified_Deployment.xsd.
. Fixed bug in CIDL code generation for some types of component and
home attributes.
@@ -322,25 +91,26 @@ USER VISIBLE CHANGES BETWEEN CIAO-0.4.7 and CIAO-0.4.8
. Error reporting during component deployment has been greatly
improved. While debugging using CIAO_DEBUG_LEVEL is still
available, detailed error messages are now generated and propagated
- to the Plan_Launcher using exceptions.
+ to the Plan_Launcher using exceptions.
. generate_component_mpc.pl has been updated to generate MPC files
useful by the modern CIAO infrastructure. This script now also
- automatically generates export files.
+ automatically generates export files.
. DAnCE has been enhanced to support deploying multiple assemblies
with the same set of ExecutionManager and NodeMangers.
+
USER VISIBLE CHANGES BETWEEN CIAO-0.4.6 and CIAO-0.4.7
======================================================
-. Added a component packaging tool to DAnCE. This tool will allow
- component packagers to create from deployment plan archived
- packages that wrap up all relevant component properties,
+. Added a component packaging tool to DAnCE. This tool will allow
+ component packagers to create from deployment plan archived
+ packages that wrap up all relevant component properties,
descriptors and implementation artifacts.The component packages
- generated from this tool will be distributed to Repository
+ generated from this tool will be distributed to Repository
Manager.
-. Enhanced DAnCE to allow more than one NodeApplicationManagers within
+. Enhanced DAnCE to allow more than one NodeApplicationManagers within
a NodeManager.
. Enhanced DAnCE to support configurable output of debugging information.
@@ -353,7 +123,7 @@ USER VISIBLE CHANGES BETWEEN CIAO-0.4.6 and CIAO-0.4.7
. Added binding component to the Naming Service. A system deployer
could configure this through XML-based flattened deployment plan
- descriptor.
+ descriptor.
See $CIAO_ROOT/DAnCE/examples/Hello/descriptors/flattened_deploymentplan.cdp
for details. Currently DAnCE only provides resolving naming service
reference through multicast, so be sure to initialize the naming service
diff --git a/TAO/CIAO/PROBLEM-REPORT-FORM b/TAO/CIAO/PROBLEM-REPORT-FORM
index 69f9b59b45d..9255f42336e 100644
--- a/TAO/CIAO/PROBLEM-REPORT-FORM
+++ b/TAO/CIAO/PROBLEM-REPORT-FORM
@@ -43,9 +43,9 @@
To: ciao-users@cs.wustl.edu
Subject: [area]: [synopsis]
- CIAO VERSION: 0.5
- TAO VERSION : 1.5
- ACE VERSION : 5.5
+ CIAO VERSION: 0.4.7
+ TAO VERSION : 1.4.7
+ ACE VERSION : 5.4.7
HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
@@ -92,4 +92,3 @@ transcript if at all possible. ]
SAMPLE FIX/WORKAROUND:
[If available ]
-
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller.cidl b/TAO/CIAO/RACE/Controller/Component/Controller.cidl
deleted file mode 100644
index 0122563c69a..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller.cidl
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-#ifndef RACE_CONTROLLER_CIDL
-#define RACE_CONTROLLER_CIDL
-
-/*
- * @file Controller.cidl
- * @brief This file contains the Controller component implementation defination.
- */
-
-#include "Controller.idl"
-
-module CIAO
-{
- module RACE
- {
- composition session Controller_Impl
- {
- home executor Controller_Home_Exec
- {
- implements Controller_Home;
- manages Controller_Exec;
- };
- };
- };
-};
-
-
-#endif /* RACE_CONTROLLER_CIDL */
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller.idl b/TAO/CIAO/RACE/Controller/Component/Controller.idl
deleted file mode 100644
index 44deb393b36..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller.idl
+++ /dev/null
@@ -1,64 +0,0 @@
-// $Id$
-
-#ifndef RACE_CONTROLLER_IDL
-#define RACE_CONTROLLER_IDL
-
-/**
- * @file Controller.idl
- *
- * @brief Controller Component of RACE.
- *
- * This file declares a Controller of the RACE framework.
- *
- * @author Nishanth Shankaran <nshankar@dre.vanderbilt.edu>
- */
-
-#include <Components.idl>
-#include "ciao/Target_Data.idl"
-#include "../../../DAnCE/TargetManager/TargetManagerExt.idl"
-
-/**
- * @module CIAO
- * @brief The CIAO module.
- */
-module CIAO
-{
- module RACE
- {
-
- /**
- * @interface Trigger
- * @brief This interface is used to start and stop
- * the feedback loop of the controller.
- */
- interface Trigger
- {
- oneway void start ();
-
- oneway void stop ();
- };
-
- /**
- * @component Controller
- * @brief The Controller component of RACE.
- */
-
- component Controller supports Trigger
- {
- uses TargetManagerExt target_mgr_ext;
- uses ::Deployment::TargetManager targer_mgr;
-
- /// TODO: Need to integrate the receptacle for the BDC facet into
- /// the controller.
- // uses BDC_QoS bdc;
-
- /// The sampling period of the controller.
- readonly attribute double sampling_period;
- };
-
- home Controller_Home manages Controller
- {
- };
- };
-};
-#endif /* RACE_CONTROLLER_IDL */
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller.mpc b/TAO/CIAO/RACE/Controller/Component/Controller.mpc
deleted file mode 100644
index e3581425579..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller.mpc
+++ /dev/null
@@ -1,64 +0,0 @@
-// $Id$
-// This file is generated with "generate_component_mpc.pl Controller"
-
-project(Controller_stub): ciao_deployment_stub {
-
- after += CIAO_TargetManager_stub
- sharedname = Controller_stub
- libs += TargetManager_stub
- idlflags += -Wb,stub_export_macro=CONTROLLER_STUB_Export \
- -Wb,stub_export_include=Controller_stub_export.h \
- -Wb,skel_export_macro=CONTROLLER_SVNT_Export \
- -Wb,skel_export_include=Controller_svnt_export.h
- dynamicflags = CONTROLLER_STUB_BUILD_DLL
-
- IDL_Files {
- Controller.idl
- }
-
- Source_Files {
- ControllerC.cpp
- }
-}
-
-project(Controller_svnt) : ciao_servant_dnc {
- after += Controller_stub CIAO_TargetManager_svnt
- sharedname = Controller_svnt
- libs += Controller_stub TargetManager_stub TargetManager_svnt
-
- idlflags += -Wb,export_macro=CONTROLLER_SVNT_Export \
- -Wb,export_include=Controller_svnt_export.h
- dynamicflags = CONTROLLER_SVNT_BUILD_DLL
-
- CIDL_Files {
- Controller.cidl
- }
-
- IDL_Files {
- ControllerE.idl
- }
-
- Source_Files {
- ControllerEC.cpp
- ControllerS.cpp
- Controller_svnt.cpp
- }
-}
-
-
-project(Controller_exec) : ciao_component_dnc {
- after += Controller_svnt
- sharedname = Controller_exec
- libs += Controller_stub Controller_svnt TargetManager_stub TargetManager_svnt
-
- idlflags += -Wb,export_macro=CONTROLLER_EXEC_Export \
- -Wb,export_include=Controller_exec_export.h
- dynamicflags = CONTROLLER_EXEC_BUILD_DLL
-
- IDL_Files {
- }
-
- Source_Files {
- Controller_exec.cpp
- }
-}
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller_exec.cpp b/TAO/CIAO/RACE/Controller/Component/Controller_exec.cpp
deleted file mode 100644
index 1e3c61ea414..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller_exec.cpp
+++ /dev/null
@@ -1,171 +0,0 @@
-// $Id$
-#include "Controller_exec.h"
-#include "ciao/CIAO_common.h"
-
-namespace CIAO
-{
- namespace RACE
- {
- namespace CIDL_Controller_Impl
- {
- Controller_exec_i::Controller_exec_i (void)
- {
- }
-
- Controller_exec_i::~Controller_exec_i (void)
- {
- }
-
- // Supported operations.
- void
- Controller_exec_i::start (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException))
- {}
-
- void
- Controller_exec_i::stop (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException))
- {}
-
- // Attribute operations.
-
- ::CORBA::Double
- Controller_exec_i::sampling_period (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- // Your code here.
- return 0.0;
- }
-
- // Port operations.
-
- // Operations from Components::SessionComponent
-
- void
- Controller_exec_i::set_session_context (
- ::Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- this->context_ =
- Controller_Context::_narrow (
- ctx
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->context_ == 0)
- {
- ACE_THROW (CORBA::INTERNAL ());
- }
- }
-
- void
- Controller_exec_i::ciao_preactivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- void
- Controller_exec_i::ciao_postactivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- void
- Controller_exec_i::ccm_activate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- void
- Controller_exec_i::ccm_passivate (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- void
- Controller_exec_i::ccm_remove (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- // Your code here.
- }
-
- //==================================================================
- // Home Executor Implementation Class: Controller_Home_exec_i
- //==================================================================
-
- Controller_Home_exec_i::Controller_Home_exec_i (void)
- {
- }
-
- Controller_Home_exec_i::~Controller_Home_exec_i (void)
- {
- }
-
- // Supported or inherited operations.
-
- // Home operations.
-
- // Factory and finder operations.
-
- // Attribute operations.
-
- // Implicit operations.
-
- ::Components::EnterpriseComponent_ptr
- Controller_Home_exec_i::create (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException))
- {
- ::Components::EnterpriseComponent_ptr retval =
- ::Components::EnterpriseComponent::_nil ();
-
- ACE_NEW_THROW_EX (
- retval,
- Controller_exec_i,
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (::Components::EnterpriseComponent::_nil ());
-
- return retval;
- }
-
- extern "C" CONTROLLER_EXEC_Export ::Components::HomeExecutorBase_ptr
- create_CIAO_RACE_Controller_Home_Impl (void)
- {
- ::Components::HomeExecutorBase_ptr retval =
- ::Components::HomeExecutorBase::_nil ();
-
- ACE_NEW_RETURN (
- retval,
- Controller_Home_exec_i,
- ::Components::HomeExecutorBase::_nil ());
-
- return retval;
- }
- }
- }
-}
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller_exec.h b/TAO/CIAO/RACE/Controller/Component/Controller_exec.h
deleted file mode 100644
index 8729cd99fc6..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller_exec.h
+++ /dev/null
@@ -1,128 +0,0 @@
-// $Id$
-#ifndef CIAO_CONTROLLER_EXEC_H
-#define CIAO_CONTROLLER_EXEC_H
-
-#include /**/ "ace/pre.h"
-
-#include "Controller_svnt.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "Controller_exec_export.h"
-#include "tao/LocalObject.h"
-
-namespace CIAO
-{
- namespace RACE
- {
- namespace CIDL_Controller_Impl
- {
- class CONTROLLER_EXEC_Export Controller_exec_i
- : public virtual Controller_Exec,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- Controller_exec_i (void);
- virtual ~Controller_exec_i (void);
-
- // Supported operations.
- virtual void start (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- virtual void stop (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- // Attribute operations.
- virtual ::CORBA::Double
- sampling_period (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- // Port operations.
-
- // Operations from Components::SessionComponent
-
- virtual void
- set_session_context (
- ::Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ciao_preactivate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ciao_postactivate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ccm_activate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ccm_passivate (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- virtual void
- ccm_remove (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
-
- protected:
- Controller_Context *context_;
- };
-
- class CONTROLLER_EXEC_Export Controller_Home_exec_i
- : public virtual Controller_Home_Exec,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- Controller_Home_exec_i (void);
- virtual ~Controller_Home_exec_i (void);
-
- // Supported or inherited operations.
-
- // Home operations.
-
- // Factory and finder operations.
-
- // Attribute operations.
-
- // Implicit operations.
-
- virtual ::Components::EnterpriseComponent_ptr
- create (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::Components::CCMException));
- };
-
- extern "C" CONTROLLER_EXEC_Export ::Components::HomeExecutorBase_ptr
- create_CIAO_RACE_Controller_Home_Impl (void);
- }
- }
-}
-
-#include /**/ "ace/post.h"
-
-#endif /* CIAO_CONTROLLER_EXEC_H */
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller_exec_export.h b/TAO/CIAO/RACE/Controller/Component/Controller_exec_export.h
deleted file mode 100644
index 080ecb25a44..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller_exec_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CONTROLLER_EXEC
-// ------------------------------
-#ifndef CONTROLLER_EXEC_EXPORT_H
-#define CONTROLLER_EXEC_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CONTROLLER_EXEC_HAS_DLL)
-# define CONTROLLER_EXEC_HAS_DLL 1
-#endif /* ! CONTROLLER_EXEC_HAS_DLL */
-
-#if defined (CONTROLLER_EXEC_HAS_DLL) && (CONTROLLER_EXEC_HAS_DLL == 1)
-# if defined (CONTROLLER_EXEC_BUILD_DLL)
-# define CONTROLLER_EXEC_Export ACE_Proper_Export_Flag
-# define CONTROLLER_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CONTROLLER_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CONTROLLER_EXEC_BUILD_DLL */
-# define CONTROLLER_EXEC_Export ACE_Proper_Import_Flag
-# define CONTROLLER_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CONTROLLER_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CONTROLLER_EXEC_BUILD_DLL */
-#else /* CONTROLLER_EXEC_HAS_DLL == 1 */
-# define CONTROLLER_EXEC_Export
-# define CONTROLLER_EXEC_SINGLETON_DECLARATION(T)
-# define CONTROLLER_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CONTROLLER_EXEC_HAS_DLL == 1 */
-
-// Set CONTROLLER_EXEC_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CONTROLLER_EXEC_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CONTROLLER_EXEC_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CONTROLLER_EXEC_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CONTROLLER_EXEC_NTRACE */
-
-#if (CONTROLLER_EXEC_NTRACE == 1)
-# define CONTROLLER_EXEC_TRACE(X)
-#else /* (CONTROLLER_EXEC_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CONTROLLER_EXEC_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CONTROLLER_EXEC_NTRACE == 1) */
-
-#endif /* CONTROLLER_EXEC_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller_stub_export.h b/TAO/CIAO/RACE/Controller/Component/Controller_stub_export.h
deleted file mode 100644
index 65a430401a8..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller_stub_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CONTROLLER_STUB
-// ------------------------------
-#ifndef CONTROLLER_STUB_EXPORT_H
-#define CONTROLLER_STUB_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CONTROLLER_STUB_HAS_DLL)
-# define CONTROLLER_STUB_HAS_DLL 1
-#endif /* ! CONTROLLER_STUB_HAS_DLL */
-
-#if defined (CONTROLLER_STUB_HAS_DLL) && (CONTROLLER_STUB_HAS_DLL == 1)
-# if defined (CONTROLLER_STUB_BUILD_DLL)
-# define CONTROLLER_STUB_Export ACE_Proper_Export_Flag
-# define CONTROLLER_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CONTROLLER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CONTROLLER_STUB_BUILD_DLL */
-# define CONTROLLER_STUB_Export ACE_Proper_Import_Flag
-# define CONTROLLER_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CONTROLLER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CONTROLLER_STUB_BUILD_DLL */
-#else /* CONTROLLER_STUB_HAS_DLL == 1 */
-# define CONTROLLER_STUB_Export
-# define CONTROLLER_STUB_SINGLETON_DECLARATION(T)
-# define CONTROLLER_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CONTROLLER_STUB_HAS_DLL == 1 */
-
-// Set CONTROLLER_STUB_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CONTROLLER_STUB_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CONTROLLER_STUB_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CONTROLLER_STUB_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CONTROLLER_STUB_NTRACE */
-
-#if (CONTROLLER_STUB_NTRACE == 1)
-# define CONTROLLER_STUB_TRACE(X)
-#else /* (CONTROLLER_STUB_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CONTROLLER_STUB_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CONTROLLER_STUB_NTRACE == 1) */
-
-#endif /* CONTROLLER_STUB_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/RACE/Controller/Component/Controller_svnt_export.h b/TAO/CIAO/RACE/Controller/Component/Controller_svnt_export.h
deleted file mode 100644
index d5e7c6aa42d..00000000000
--- a/TAO/CIAO/RACE/Controller/Component/Controller_svnt_export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CONTROLLER_SVNT
-// ------------------------------
-#ifndef CONTROLLER_SVNT_EXPORT_H
-#define CONTROLLER_SVNT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CONTROLLER_SVNT_HAS_DLL)
-# define CONTROLLER_SVNT_HAS_DLL 1
-#endif /* ! CONTROLLER_SVNT_HAS_DLL */
-
-#if defined (CONTROLLER_SVNT_HAS_DLL) && (CONTROLLER_SVNT_HAS_DLL == 1)
-# if defined (CONTROLLER_SVNT_BUILD_DLL)
-# define CONTROLLER_SVNT_Export ACE_Proper_Export_Flag
-# define CONTROLLER_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CONTROLLER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CONTROLLER_SVNT_BUILD_DLL */
-# define CONTROLLER_SVNT_Export ACE_Proper_Import_Flag
-# define CONTROLLER_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CONTROLLER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CONTROLLER_SVNT_BUILD_DLL */
-#else /* CONTROLLER_SVNT_HAS_DLL == 1 */
-# define CONTROLLER_SVNT_Export
-# define CONTROLLER_SVNT_SINGLETON_DECLARATION(T)
-# define CONTROLLER_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CONTROLLER_SVNT_HAS_DLL == 1 */
-
-// Set CONTROLLER_SVNT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CONTROLLER_SVNT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CONTROLLER_SVNT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CONTROLLER_SVNT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CONTROLLER_SVNT_NTRACE */
-
-#if (CONTROLLER_SVNT_NTRACE == 1)
-# define CONTROLLER_SVNT_TRACE(X)
-#else /* (CONTROLLER_SVNT_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CONTROLLER_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CONTROLLER_SVNT_NTRACE == 1) */
-
-#endif /* CONTROLLER_SVNT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/RACE/Planner_Manager/Component/Planner_Manager.idl b/TAO/CIAO/RACE/Planner_Manager/Component/Planner_Manager.idl
index 24bc92644f5..81f2211af90 100644
--- a/TAO/CIAO/RACE/Planner_Manager/Component/Planner_Manager.idl
+++ b/TAO/CIAO/RACE/Planner_Manager/Component/Planner_Manager.idl
@@ -5,9 +5,6 @@
#include <Components.idl>
#include "../Interface/Planner_Manager_I.idl"
-#include "../../Planners/Interface/Planner_I.idl"
-#include "../../Output_Adapters/Interface/PlanEgress.idl"
-
module CIAO
{
module RACE
diff --git a/TAO/CIAO/VERSION b/TAO/CIAO/VERSION
index 5a1a7bfbd7a..76b372e6ac1 100644
--- a/TAO/CIAO/VERSION
+++ b/TAO/CIAO/VERSION
@@ -1,4 +1,4 @@
-This is CIAO version 0.5, released Sun Mar 05 11:16:46 2006.
+This is CIAO version 0.4.7, released Fri Aug 05 08:00:08 2005.
If you have any problems with or questions about CIAO, please send
e-mail to the CIAO mailing list (ciao-users@cs.wustl.edu), using the
@@ -9,4 +9,3 @@ see responses, please do one of the following:
contents "subscribe ciao-users" to majordomo@cs.wustl.edu.
2) Or, monitor the comp.soft-sys.ace newsgroup for responses.
-
diff --git a/TAO/CIAO/ciao/CCM_Base.idl b/TAO/CIAO/ciao/CCM_Base.idl
index 63c05a79578..7e89723be4b 100644
--- a/TAO/CIAO/ciao/CCM_Base.idl
+++ b/TAO/CIAO/ciao/CCM_Base.idl
@@ -14,7 +14,7 @@
//#define CIAO_HAS_IMPORT_KEYWORD
-#ifdef CIAO_HAS_IMPORT_KEYWORD
+#if defined (CIAO_HAS_IMPORT_KEYWORD)
// import ::CORBA;
#else
#include <orb.idl>
@@ -25,6 +25,9 @@
module Components
{
+ /**
+ * @@ Commented out temporarily for lack of typePrefix support.
+ */
typeprefix Components "omg.org";
typedef string FeatureName;
diff --git a/TAO/CIAO/ciao/CCM_Core.mpc b/TAO/CIAO/ciao/CCM_Core.mpc
index 8a3a2f5ef51..f338fba8256 100644
--- a/TAO/CIAO/ciao/CCM_Core.mpc
+++ b/TAO/CIAO/ciao/CCM_Core.mpc
@@ -10,7 +10,7 @@ project (CIAO_DnC_Client) : taolib_with_idl, valuetype, ifr_client {
// This is necessary for MPC to pull in rules.ciao.GNU
includes += $(CIAO_ROOT)/DAnCE
-
+
dynamicflags = CIAO_CLIENT_BUILD_DLL
IDL_Files {
@@ -34,8 +34,10 @@ project (CIAO_DnC_Client) : taolib_with_idl, valuetype, ifr_client {
}
}
-project (CIAO_DnC_Container) : orbsvcslib, portableserver, security, valuetype, ifr_client, codecfactory, pi, ciao_client_dnc {
+project (CIAO_DnC_Container) : orbsvcslib, portableserver, security, valuetype, ifr_client, codecfactory, pi {
+ after += CIAO_DnC_Client
sharedname = CIAO_DnC_Container
+ libs += CIAO_DnC_Client
idlflags += -Wb,export_include=CIAO_Container_Export.h
idlflags += -Wb,export_macro=CIAO_CONTAINER_Export
dynamicflags = CIAO_CONTAINER_BUILD_DLL
@@ -50,6 +52,7 @@ project (CIAO_DnC_Container) : orbsvcslib, portableserver, security, valuetype,
CCM_Container_Ex.idl
SwapExec.idl
UpgradeableContext.idl
+ // ServerResources.idl
}
Source_Files {
@@ -69,11 +72,14 @@ project (CIAO_DnC_Container) : orbsvcslib, portableserver, security, valuetype,
// Valuetype library must be linked for this project.
// Please don't remove.
-project(Deployment_stub) : taolib_with_idl, valuetype, ifr_client, ciao_events_base_dnc, ciao_client_dnc {
+project(Deployment_stub) : taolib_with_idl, valuetype, ifr_client {
sharedname = CIAO_Deployment_stub
+ after += CIAO_DnC_Client
+
+ libs += CIAO_DnC_Client
// This is necessary for MPC to pull in rules.ciao.GNU
- includes += $(CIAO_ROOT)/DAnCE $(CIAO_ROOT)
+ includes += $(CIAO_ROOT)/DAnCE
idlflags += -Wb,stub_export_macro=Deployment_stub_Export
idlflags += -Wb,stub_export_include=Deployment_stub_export.h
@@ -88,15 +94,8 @@ project(Deployment_stub) : taolib_with_idl, valuetype, ifr_client, ciao_events_b
Deployment_Base.idl
Deployment_Data.idl
Packaging_Data.idl
- Target_Data.idl
Deployment.idl
- NodeManager.idl
- NodeApplicationManager.idl
- DomainApplicationManager.idl
- ExecutionManager.idl
- RepositoryManager.idl
ServerResources.idl
- Deployment_Events.idl
}
Source_Files {
@@ -104,31 +103,26 @@ project(Deployment_stub) : taolib_with_idl, valuetype, ifr_client, ciao_events_b
Deployment_BaseC.cpp
Deployment_DataC.cpp
Packaging_DataC.cpp
- Target_DataC.cpp
DeploymentC.cpp
- NodeManagerC.cpp
- NodeApplicationManagerC.cpp
- DomainApplicationManagerC.cpp
- ExecutionManagerC.cpp
- RepositoryManagerC.cpp
NodeApplication_CallBackC.cpp
ServerResourcesC.cpp
- Deployment_EventsC.cpp
}
}
// CIAO_DnC_Client library must be linked for this project.
// Please don't remove.
-project(Deployment_svnt) : taolib_with_idl, portableserver, valuetype, ifr_client, ciao_deployment_stub, ciao_events_dnc, ciao_client_dnc {
+project(Deployment_svnt) : taolib_with_idl, portableserver, valuetype, ifr_client {
+ after += Deployment_stub
sharedname = CIAO_Deployment_svnt
dynamicflags = DEPLOYMENT_SVNT_BUILD_DLL
+ libs += CIAO_Deployment_stub CIAO_DnC_Client
idlflags += -Wb,stub_export_macro=Deployment_stub_Export
idlflags += -Wb,stub_export_include=Deployment_stub_export.h
idlflags += -Wb,skel_export_macro=Deployment_svnt_Export
idlflags += -Wb,skel_export_include=Deployment_svnt_export.h
// This is necessary for MPC to pull in rules.ciao.GNU
- includes += $(CIAO_ROOT)/DAnCE $(CIAO_ROOT)
+ includes += $(CIAO_ROOT)/DAnCE
IDL_Files {
}
@@ -138,25 +132,20 @@ project(Deployment_svnt) : taolib_with_idl, portableserver, valuetype, ifr_clien
Deployment_BaseS.cpp
Deployment_DataS.cpp
Packaging_DataS.cpp
- Target_DataS.cpp
DeploymentS.cpp
- RepositoryManagerS.cpp
- NodeManagerS.cpp
- NodeApplicationManagerS.cpp
- DomainApplicationManagerS.cpp
- ExecutionManagerS.cpp
NodeApp_CB_Impl.cpp
NodeApplication_CallBackS.cpp
ServerResourcesS.cpp
- Deployment_EventsS.cpp
}
}
-project (CIAO_DnC_Server) : orbsvcslib, portableserver, valuetype, naming, ifr_client, utils, security, ciao_container_dnc, ciao_client_dnc, ciao_deployment_svnt {
- includes += $(CIAO_ROOT)/ciao
+project (CIAO_DnC_Server) : orbsvcslib, portableserver, valuetype, naming, ifr_client, utils, security {
+ after += CIAO_DnC_Container Deployment_svnt
+ includes += $(CIAO_ROOT)/DAnCE
includes += $(CIAO_ROOT)
sharedname = CIAO_DnC_Server
+ libs += CIAO_DnC_Client CIAO_DnC_Container CIAO_Deployment_svnt CIAO_Deployment_stub
idlflags += -Wb,export_include=CIAO_Server_Export.h -Wb,export_macro=CIAO_SERVER_Export
dynamicflags = CIAO_SERVER_BUILD_DLL
@@ -166,7 +155,9 @@ project (CIAO_DnC_Server) : orbsvcslib, portableserver, valuetype, naming, ifr_c
Source_Files {
Container_Base.cpp
+ Container_Impl.cpp
Swapping_Container.cpp
+ NodeApplication_Impl.cpp
Context_Impl_Base.cpp
Home_Servant_Impl_Base.cpp
Servant_Impl_Base.cpp
@@ -191,7 +182,6 @@ project (CIAO_DnC_Server) : orbsvcslib, portableserver, valuetype, naming, ifr_c
Swapping_Servant_Home_Impl_T.cpp
Dynamic_Component_Servant_T.cpp
Servant_Impl_T.cpp
- Servant_Impl_Utils_T.cpp
Servant_Activator_T.cpp
}
}
diff --git a/TAO/CIAO/ciao/CCM_Event.idl b/TAO/CIAO/ciao/CCM_Event.idl
index 59fa878f97f..575220a0283 100644
--- a/TAO/CIAO/ciao/CCM_Event.idl
+++ b/TAO/CIAO/ciao/CCM_Event.idl
@@ -27,7 +27,7 @@ module Components
interface EventConsumerBase
{
void push_event (in EventBase evt) raises (BadEventType);
-
+
// CIAO-specific operation to help support the capability
// to subscribe to eventtypes more derived than the type
// consumed.
diff --git a/TAO/CIAO/ciao/CIAO_common.h b/TAO/CIAO/ciao/CIAO_common.h
index 56796f04a13..d55546b2aa3 100644
--- a/TAO/CIAO/ciao/CIAO_common.h
+++ b/TAO/CIAO/ciao/CIAO_common.h
@@ -15,7 +15,7 @@
#include "ace/config-all.h"
#if !defined ACE_LACKS_PRAGMA_ONCE
-# pragma once
+#pragma once
#endif /* ! ACE_LACKS_PRAGMA_ONCE */
#include "CIAO_Client_Export.h"
@@ -30,7 +30,7 @@
factory->_remove_ref (); }
// By default tracing is turned off.
-#if !defined (CIAO_NTRACE)
+#if !defined (CIAO_NTRACE)
# if !defined (ACE_NTRACE)
# define CIAO_NTRACE 1
# else
@@ -43,7 +43,7 @@
# define CIAO_TRACE(X)
# else
# if (ACE_NTRACE == 0)
-# error CIAO_TRACE cannot be disabled if ACE_TRACE is enabled
+# #error CIAO_TRACE cannot be disabled if ACE_TRACE is enabled
# else
# define CIAO_TRACE(X)
# endif
diff --git a/TAO/CIAO/ciao/Client_init.h b/TAO/CIAO/ciao/Client_init.h
index 9c86e386778..065c1f2a280 100644
--- a/TAO/CIAO/ciao/Client_init.h
+++ b/TAO/CIAO/ciao/Client_init.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-//
// $Id$
/**
@@ -20,15 +18,11 @@
#pragma once
#endif /* ! ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class ORB;
typedef ORB *ORB_ptr;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
namespace CIAO
{
@@ -42,6 +36,5 @@ namespace CIAO
CIAO_CLIENT_Export int Client_init (CORBA::ORB_ptr o);
}
-
#include /**/ "ace/post.h"
#endif /* CIAO_CLIENT_INIT_H */
diff --git a/TAO/CIAO/ciao/ComponentsC.h b/TAO/CIAO/ciao/ComponentsC.h
index 9ed1608c2c0..a1c75c61736 100644
--- a/TAO/CIAO/ciao/ComponentsC.h
+++ b/TAO/CIAO/ciao/ComponentsC.h
@@ -40,7 +40,6 @@
#include "tao/CDR.h"
#include "tao/Environment.h"
#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/Versioned_Namespace.h"
#include "CCM_ContainerC.h"
@@ -69,12 +68,9 @@
// be/be_visitor_traits.cpp:50
// Traits specializations.
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be/be_visitor_root/cdr_op.cpp:48
diff --git a/TAO/CIAO/ciao/Container_Base.cpp b/TAO/CIAO/ciao/Container_Base.cpp
index 4d8d013e743..8d8d3e0c0ad 100644
--- a/TAO/CIAO/ciao/Container_Base.cpp
+++ b/TAO/CIAO/ciao/Container_Base.cpp
@@ -6,6 +6,7 @@
#include "tao/Utils/PolicyList_Destroyer.h"
#include "ace/OS_NS_stdio.h"
#include "Servant_Activator.h"
+#include "ace/SString.h"
#if !defined (__ACE_INLINE__)
# include "Container_Base.inl"
@@ -13,11 +14,16 @@
namespace CIAO
{
- ////////////////////////////////////////////////////////////////
+
+////////////////////////////////////////////////////////////////
+
+ Container::Container (void)
+ {
+ ACE_ASSERT (0);
+ }
Container::Container (CORBA::ORB_ptr o)
- : orb_ (CORBA::ORB::_duplicate (o)),
- container_impl_ (0)
+ : orb_ (CORBA::ORB::_duplicate (o))
{
}
@@ -51,13 +57,18 @@ namespace CIAO
///////////////////////////////////////////////////////////////
- ACE_Atomic_Op <ACE_SYNCH_MUTEX, unsigned long>
+ ACE_Atomic_Op <ACE_SYNCH_MUTEX, long>
Session_Container::serial_number_ (0);
+ Session_Container::Session_Container (void)
+ {
+ ACE_ASSERT (0);
+ }
+
Session_Container::Session_Container (CORBA::ORB_ptr o,
Container_Impl *container_impl,
bool static_config_flag,
- const Static_Config_EntryPoints_Maps* maps)
+ const Static_Config_EntryPoints_Maps* maps)
: Container (o, container_impl),
number_ (0),
static_config_flag_ (static_config_flag),
@@ -114,7 +125,6 @@ namespace CIAO
ACE_CString port_poa_name (name);
port_poa_name += ":Port_POA";
this->create_facet_consumer_POA (port_poa_name.c_str (),
- more_policies,
root_poa.in ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -162,7 +172,6 @@ namespace CIAO
void
Session_Container::create_facet_consumer_POA (
const char *name,
- const CORBA::PolicyList *p,
PortableServer::POA_ptr root
ACE_ENV_ARG_DECL)
{
@@ -170,23 +179,16 @@ namespace CIAO
root->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- CORBA::ULong p_length = 0;
- if (p != 0)
- {
- p_length = p->length ();
- }
-
- TAO::Utils::PolicyList_Destroyer policies (p_length + 3);
- policies.length (p_length + 3);
+ TAO::Utils::PolicyList_Destroyer policies (3);
+ policies.length (3);
policies[0] =
root->create_id_assignment_policy (PortableServer::USER_ID
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- // Servant Manager Policy
policies[1] =
- root->create_request_processing_policy
+ root->create_request_processing_policy
(PortableServer::USE_SERVANT_MANAGER
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -197,11 +199,6 @@ namespace CIAO
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- for (CORBA::ULong i = 0; i < p_length; ++i)
- {
- policies[i+3] = (*p)[i];
- }
-
this->facet_cons_poa_ =
root->create_POA (name,
poa_manager.in (),
@@ -292,14 +289,14 @@ namespace CIAO
HomeFactory hcreator = 0;
ServantFactory screator = 0;
- if (this->static_config_flag_ == false)
+ if (this->static_config_flag_ == 0)
{
ACE_DLL executor_dll, servant_dll;
if (exe_dll_name == 0 || sv_dll_name == 0)
{
- ACE_CString exception;
-
+ ACE_CString exception;
+
if (exe_dll_name == 0)
{
exception = "Null component executor DLL name";
@@ -309,17 +306,17 @@ namespace CIAO
{
exception = "Null component servant DLL name";
}
-
+
ACE_ERROR ((LM_ERROR,
"CIAO (%P|%t) Container_Base.cpp -"
"Session_Container::ciao_install_home -"
"ERROR: %s\n",
exception.c_str ()));
- ACE_THROW_RETURN
+ ACE_THROW_RETURN
(Deployment::UnknownImplId (
"Session_Container::ciao_install_home",
- exception.c_str ()),
+ exception.c_str ()),
Components::CCMHome::_nil ());
}
@@ -329,15 +326,15 @@ namespace CIAO
{
ACE_CString error ("Failed to open executor DLL: ");
error += exe_dll_name;
-
+
ACE_ERROR ((LM_ERROR,
"CIAO (%P|%t) Container_Base.cpp -"
"Session_Container::ciao_install_home -"
"ERROR in opening the executor DLL [%s] \n",
exe_dll_name));
-
- ACE_THROW_RETURN
- (Deployment::UnknownImplId
+
+ ACE_THROW_RETURN
+ (Deployment::UnknownImplId
("Session_Container::ciao_install_home",
error.c_str ()), Components::CCMHome::_nil ());
}
@@ -354,9 +351,9 @@ namespace CIAO
"Session_Container::ciao_install_home -"
"ERROR in opening the servant DLL [%s] \n",
sv_dll_name));
-
- ACE_THROW_RETURN
- (Deployment::UnknownImplId
+
+ ACE_THROW_RETURN
+ (Deployment::UnknownImplId
("Session_Container::ciao_install_home",
error.c_str ()), Components::CCMHome::_nil ());
}
@@ -364,7 +361,7 @@ namespace CIAO
if (exe_entrypt == 0 || sv_entrypt == 0)
{
ACE_CString error ("Entry point is null for ");
-
+
if (exe_entrypt == 0)
{
ACE_ERROR ((LM_ERROR,
@@ -383,11 +380,11 @@ namespace CIAO
"ERROR in opening the servant entry point "
"for servant DLL [%s] \n",
sv_dll_name));
- error += sv_dll_name;
+ error += sv_dll_name;
}
-
- ACE_THROW_RETURN
- (Deployment::ImplEntryPointNotFound
+
+ ACE_THROW_RETURN
+ (Deployment::ImplEntryPointNotFound
("Session_Container::ciao_install_home",
error.c_str ()), Components::CCMHome::_nil ());
}
@@ -424,7 +421,7 @@ namespace CIAO
if (hcreator == 0 || screator == 0)
{
ACE_CString error ("Entry point ");
-
+
if (hcreator == 0)
{
error += exe_entrypt;
@@ -437,19 +434,19 @@ namespace CIAO
error += " invalid in dll ";
error += sv_dll_name;
}
-
- ACE_THROW_RETURN
- (Deployment::ImplEntryPointNotFound
+
+ ACE_THROW_RETURN
+ (Deployment::ImplEntryPointNotFound
("SessionContainer::ciao_install_home",
error.c_str ()), Components::CCMHome::_nil ());
}
Components::HomeExecutorBase_var home_executor = hcreator ();
-
+
if (CORBA::is_nil (home_executor.in ()))
{
- ACE_THROW_RETURN
- (Deployment::InstallationFailure
+ ACE_THROW_RETURN
+ (Deployment::InstallationFailure
("SessionContainer::ciao_install_home",
"Executor entrypoint failed to create a home."),
Components::CCMHome::_nil ());
@@ -463,8 +460,8 @@ namespace CIAO
if (home_servant == 0)
{
- ACE_THROW_RETURN
- (Deployment::InstallationFailure
+ ACE_THROW_RETURN
+ (Deployment::InstallationFailure
("SessionContainer::ciao_install_home",
"Servant entrypoing failed to create a home."),
Components::CCMHome::_nil ());
@@ -579,10 +576,11 @@ namespace CIAO
}
void
- Session_Container::deactivate_facet (const PortableServer::ObjectId &
+ Session_Container::deactivate_facet (const PortableServer::ObjectId &oid
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG (oid);
}
void
@@ -621,6 +619,16 @@ namespace CIAO
PortableServer::ObjectId_var oid =
PortableServer::string_to_ObjectId (obj_id);
+ CORBA::String_var str =
+ PortableServer::ObjectId_to_string (oid);
+
+ if (t == Container::Facet_Consumer)
+ {
+ if (CIAO::debug_level () > 1)
+ ACE_DEBUG ((LM_DEBUG, "STRING in container is %s\n",
+ str.in ()));
+ }
+
CORBA::Object_var objref =
tmp->create_reference_with_id (oid.in (),
repo_id
diff --git a/TAO/CIAO/ciao/Container_Base.h b/TAO/CIAO/ciao/Container_Base.h
index cbde8a4d6c0..f6ae970238a 100644
--- a/TAO/CIAO/ciao/Container_Base.h
+++ b/TAO/CIAO/ciao/Container_Base.h
@@ -9,7 +9,6 @@
* Header file for CIAO's container implementations
*
* @author Nanbor Wang <nanbor@cs.wustl.edu>
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
*/
//=============================================================================
@@ -30,6 +29,7 @@
#include "ace/Hash_Map_Manager_T.h"
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
@@ -57,6 +57,8 @@ namespace CIAO
Facet_Consumer
};
+ explicit Container (void);
+
Container (CORBA::ORB_ptr o);
Container (CORBA::ORB_ptr o, Container_Impl *container_impl);
@@ -118,7 +120,6 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
protected:
- /// Reference to the ORB
CORBA::ORB_var orb_;
/// POA within which all the components in this container will be
@@ -132,12 +133,8 @@ namespace CIAO
* are distinct from the component.
*/
PortableServer::POA_var facet_cons_poa_;
-
PortableServer::POA_var home_servant_poa_;
Container_Impl *container_impl_;
- private:
- /// Not allowed to be used
- Container (void);
};
class Session_Container;
@@ -176,6 +173,12 @@ namespace CIAO
class CIAO_SERVER_Export Session_Container : public Container
{
public:
+
+ explicit Session_Container (void);
+
+ // @@ (OO) Does the static_config_flag really need to be an int?
+ // It appears to be a boolean value. Please use bool
+ // instead.
Session_Container (CORBA::ORB_ptr o,
Container_Impl *container_impl,
bool static_config_flag = false,
@@ -214,41 +217,41 @@ namespace CIAO
Deployment::ImplEntryPointNotFound,
Deployment::InstallationFailure));
- /// Uninstall a servant for component or home.
+ // Uninstall a servant for component or home.
virtual void ciao_uninstall_home (Components::CCMHome_ptr homeref
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Uninstall a servant for component.
+ // Uninstall a servant for component.
virtual void uninstall_component (::Components::CCMObject_ptr objref,
PortableServer::ObjectId_out oid
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Install a servant for component or home.
+ // Install a servant for component or home.
virtual CORBA::Object_ptr install_servant (PortableServer::Servant p,
Container::OA_Type t
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Install a component servant.
+ // Install a component servant.
CORBA::Object_ptr install_component (PortableServer::Servant p,
PortableServer::ObjectId_out oid
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Get an object reference to a component or home from the servant.
+ // Get an object reference to a component or home from the servant.
virtual CORBA::Object_ptr get_objref (PortableServer::Servant p
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Uninstall a servant for component or home.
+ // Uninstall a servant for component or home.
void uninstall (CORBA::Object_ptr objref,
Container::OA_Type t
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Uninstall a servant for component or home.
+ // Uninstall a servant for component or home.
void uninstall (PortableServer::Servant svt,
Container::OA_Type t
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
@@ -282,8 +285,8 @@ namespace CIAO
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Analog of the POA method that creates an object reference from
- /// an object id string.
+ // Analog of the POA method that creates an object reference from
+ // an object id string.
CORBA::Object_ptr generate_reference (const char *obj_id,
const char *repo_id,
Container::OA_Type t
@@ -295,7 +298,7 @@ namespace CIAO
private:
- /// Create POA for the component.
+ /// Create POA for the component.
/**
* This is the POA that is returned to the component applications
* if they need one.
@@ -307,21 +310,19 @@ namespace CIAO
/// Create POA for the facets and consumers alone.
void create_facet_consumer_POA (const char *name,
- const CORBA::PolicyList *p,
PortableServer::POA_ptr root
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- /// Not allowed to be
- Session_Container (void);
-
protected:
- unsigned long number_;
+ long number_;
- /// Static variable to store the highest number we have given out until
- /// now
- static ACE_Atomic_Op <ACE_SYNCH_MUTEX, unsigned long> serial_number_;
+ static ACE_Atomic_Op <ACE_SYNCH_MUTEX, long> serial_number_;
- const bool static_config_flag_;
+ // @@ (OO) Does this really need to be an int? It appears to be a
+ // boolean value. Please use bool instead.
+ //
+ // It looks like it can also be declared const, as well.
+ bool static_config_flag_;
const Static_Config_EntryPoints_Maps* static_entrypts_maps_;
/// The servant activator factory used to activate facets and
diff --git a/TAO/CIAO/ciao/Container_Impl.cpp b/TAO/CIAO/ciao/Container_Impl.cpp
new file mode 100644
index 00000000000..ac5fc047693
--- /dev/null
+++ b/TAO/CIAO/ciao/Container_Impl.cpp
@@ -0,0 +1,567 @@
+// $Id$
+#include "Container_Impl.h"
+#include "CCM_ComponentC.h" // for calling StandardConfigurator interface
+
+#include "orbsvcs/CosNamingC.h"
+
+#if !defined (__ACE_INLINE__)
+# include "Container_Impl.inl"
+#endif /* __ACE_INLINE__ */
+
+CIAO::Container_Impl::~Container_Impl ()
+{
+ // @@ remove all components and home?
+ delete this->container_;
+}
+
+PortableServer::POA_ptr
+CIAO::Container_Impl::_default_POA (void)
+{
+ return PortableServer::POA::_duplicate (this->poa_.in ());
+}
+
+ ///////////////////////////////////////////////////////////////
+
+CORBA::Long
+CIAO::Container_Impl::init (const ::Deployment::Properties &properties
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ // @@ Gan/Jai, see how this init can create many instances of the
+ // same container? Neither thread safe or single entity safe.
+ this->properties_ = properties;
+
+ // @@ Initialize container and create the internal container
+ // implementation that actually interacts with installed
+ // homes/components.
+
+ // @@ We will need a container factory here later on when we support
+ // more kinds of container implementations.
+
+ // @@Jai, what is the condition to create an upgradeable container?
+ // Where is it getting created and how? Need to address that.
+
+ ACE_NEW_THROW_EX (this->container_,
+ CIAO::Session_Container (this->orb_.in (), this),
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (-1);
+
+ return this->container_->init (0,
+ 0
+ ACE_ENV_ARG_PARAMETER);
+}
+
+
+Deployment::ComponentInfos *
+CIAO::Container_Impl::install (
+ const ::Deployment::ContainerImplementationInfo & container_impl_info
+ ACE_ENV_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ ::Deployment::UnknownImplId,
+ ::Deployment::ImplEntryPointNotFound,
+ ::Deployment::InstallationFailure,
+ ::Components::InvalidConfiguration))
+{
+ Deployment::ComponentInfos_var retv;
+ ACE_TRY
+ {
+ ACE_NEW_THROW_EX (retv,
+ Deployment::ComponentInfos,
+ CORBA::NO_MEMORY ());
+ ACE_TRY_CHECK;
+
+ // Get the ComponentImplementationInfos from the
+ // ContainerImplementationInfo
+ // to avoid too long syntax representation
+ const ::Deployment::ComponentImplementationInfos impl_infos =
+ container_impl_info.impl_infos;
+
+ const CORBA::ULong len = impl_infos.length ();
+ retv->length (len);
+
+ for (CORBA::ULong i = 0; i < len; ++i)
+ {
+ // Install home
+ Components::CCMHome_var home =
+ this->install_home (impl_infos[i]
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ Components::KeylessCCMHome_var kh =
+ Components::KeylessCCMHome::_narrow (home.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (kh.in ()))
+ ACE_TRY_THROW (Deployment::InstallationFailure ());
+
+ // Create component from home
+ Components::CCMObject_var comp =
+ kh->create_component (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (comp.in ()))
+ ACE_TRY_THROW (Deployment::InstallationFailure ());
+
+ if (this->component_map_.bind
+ (impl_infos[i].component_instance_name.in (),
+ Components::CCMObject::_duplicate (comp.in ())))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) Container_Impl.cpp -"
+ "CIAO::Container_Impl::install -"
+ "error in binding component "
+ "instance name [%s] into the component map \n",
+ impl_infos[i].component_instance_name.in ()));
+ ACE_TRY_THROW (Deployment::InstallationFailure ());
+ }
+
+ // Set the return value.
+ (*retv)[i].component_instance_name
+ = impl_infos[i].component_instance_name.in ();
+
+ (*retv)[i].component_ref =
+ Components::CCMObject::_duplicate (comp.in ());
+
+ // Deal with Component instance related Properties.
+ // Now I am only concerning about the COMPOENTIOR and attribute
+ // configuration initialization.
+
+ // I need to map Properties to Components::ConfigValues
+ ::Components::ConfigValues comp_attributes;
+ comp_attributes.length (0);
+
+ const CORBA::ULong clen = impl_infos[i].component_config.length ();
+ for (CORBA::ULong prop_len = 0; prop_len < clen; ++prop_len)
+ {
+ // Set up the ComponentIOR attribute
+ if (ACE_OS::strcmp
+ (impl_infos[i].component_config[prop_len].name.in (),
+ "ComponentIOR") == 0)
+ {
+ const char * path;
+ impl_infos[i].component_config[prop_len].value >>= path;
+
+ CORBA::String_var ior =
+ this->orb_->object_to_string (comp.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CIAO::Utility::write_IOR (path, ior.in ()) != 0)
+ {
+ if (CIAO::debug_level () > 1)
+ ACE_DEBUG ((LM_DEBUG, "Failed to write the IOR.\n"));
+
+ ACE_TRY_THROW (CORBA::INTERNAL ());
+ }
+ }
+
+ // Set up the naming service attribute
+ if (ACE_OS::strcmp
+ (impl_infos[i].component_config[prop_len].name.in (),
+ "RegisterNaming") == 0)
+ {
+ const char * naming_context;
+ impl_infos[i].
+ component_config[prop_len].value >>= naming_context;
+
+ // Register the component with the naming service
+ ACE_DEBUG ((LM_DEBUG,
+ "Register component with naming service.\n"));
+ bool result = register_with_ns (naming_context,
+ this->orb_.in (),
+ comp.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (!result)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Failed to register with naming service.\n"));
+ }
+
+ }
+
+ // Initialize attributes through StandardConfigurator interface
+ // @@Todo: Currently I have to manually map
+ // the Deployment::Properties to
+ // Components::ConfigValues, we should use a
+ // common data structure in
+ // the future. - Gan
+ CORBA::ULong cur_len = comp_attributes.length ();
+ comp_attributes.length (cur_len + 1);
+
+ Components::ConfigValue *item = new OBV_Components::ConfigValue ();
+ item->name (impl_infos[i].component_config[prop_len].name.in ());
+ CORBA::Any tmp = impl_infos[i].component_config[prop_len].value;
+ item->value (tmp);
+
+ comp_attributes[cur_len] = item;
+ }
+
+ if (comp_attributes.length () != 0)
+ {
+ //std_configurator.set_configuration
+ ::Components::StandardConfigurator_var std_configurator =
+ comp->get_standard_configurator ();
+
+ std_configurator->set_configuration (comp_attributes);
+ }
+ }
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Container_Impl::install\t\n");
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (0);
+
+ return retv._retn ();
+}
+
+::Deployment::Properties *
+CIAO::Container_Impl::properties (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ ::Deployment::Properties *retval;
+
+ ACE_NEW_THROW_EX (retval,
+ ::Deployment::Properties,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
+ *retval = this->properties_;
+
+ return retval;
+}
+
+::Deployment::NodeApplication_ptr
+CIAO::Container_Impl::get_node_application (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return ::Deployment::NodeApplication::_duplicate (this->nodeapp_.in ());
+}
+
+::Components::CCMHome_ptr
+CIAO::Container_Impl::install_home (
+ const ::Deployment::ComponentImplementationInfo & impl_info
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::UnknownImplId,
+ Deployment::ImplEntryPointNotFound,
+ Deployment::InstallationFailure,
+ Components::InvalidConfiguration))
+{
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) Container_Impl.cpp -"
+ "CIAO::Container_Impl::install_home -"
+ "installing home for component "
+ "instance [%s] \n",
+ impl_info.component_instance_name.in ()));
+ }
+
+ Components::CCMHome_var newhome =
+ this->container_->ciao_install_home (impl_info.executor_dll.in (),
+ impl_info.executor_entrypt.in (),
+ impl_info.servant_dll.in (),
+ impl_info.servant_entrypt.in (),
+ impl_info.component_instance_name.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (Components::CCMHome::_nil ());
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) Container_Impl.cpp -"
+ "CIAO::Container_Impl::install_home -"
+ "success in installing home for component "
+ "instance [%s] \n",
+ impl_info.component_instance_name.in ()));
+ }
+
+ // We don't have to do _narrow since the generated code makes sure of
+ // the object type for us
+ // Bind the home in the map.
+ if (this->home_map_.bind (impl_info.component_instance_name.in (),
+ Components::CCMHome::_duplicate (newhome.in ())))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) Container_Impl.cpp -"
+ "CIAO::Container_Impl::install_home -"
+ "error in binding home for component "
+ "instance [%s] \n",
+ impl_info.component_instance_name.in ()));
+ ACE_THROW_RETURN (Deployment::InstallationFailure (),
+ Components::CCMHome::_nil ());
+ }
+
+ //Note: If the return value will be discarded, it must be kept in a var or
+ // release () will have to be called explicitly.
+ return newhome._retn ();
+}
+
+
+void
+CIAO::Container_Impl::remove_home (const char * comp_ins_name
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure))
+{
+ Components::CCMHome_ptr home;
+ ACE_CString str (comp_ins_name);
+
+ if (this->home_map_.find (str, home) != 0)
+ ACE_THROW (CORBA::BAD_PARAM ());
+
+ // @@TODO We should remove all components created by this home as well.
+ // This is not implemented yet.
+
+ this->container_->ciao_uninstall_home (home
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+
+ // If the previous calls failed, what should we do here??
+ CORBA::release (home);
+
+ // @@ Still need to remove the home if the previous operation fails?
+ if (this->home_map_.unbind (str) == -1)
+ ACE_THROW (::Components::RemoveFailure ());
+}
+
+::Components::CCMHomes *
+CIAO::Container_Impl::get_homes (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ Components::CCMHomes * tmp;
+ ACE_NEW_THROW_EX (tmp,
+ Components::CCMHomes (),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (0);
+
+ Components::CCMHomes_var retval (tmp);
+
+ const CORBA::ULong len = this->home_map_.current_size ();
+ retval->length (len);
+
+
+ CORBA::ULong i = 0;
+ const Home_Iterator end = this->home_map_.end ();
+ for (Home_Iterator iter (this->home_map_.begin ());
+ iter != end;
+ ++iter, ++i)
+ {
+ retval[i] = Components::CCMHome::_duplicate ( (*iter).int_id_);
+ }
+
+ return retval._retn ();
+}
+
+// Remove all homes and components
+void
+CIAO::Container_Impl::remove (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure))
+{
+ // Remove all components first.
+ this->remove_components (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+
+ // Even if above operation failed we should still remove homes.
+ const Home_Iterator end = this->home_map_.end ();
+ for (Home_Iterator iter (this->home_map_.begin ());
+ iter != end;
+ ++iter)
+ {
+ this->container_->ciao_uninstall_home ( (*iter).int_id_
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+
+ CORBA::release ( (*iter).int_id_);
+ }
+
+ this->home_map_.unbind_all ();
+
+ //if (CIAO::debug_level () > 1)
+ if (true)
+ ACE_DEBUG ((LM_DEBUG,
+ "Removed all homes and components from this container!\n"));
+}
+
+////////////////////////////////////////////////////////////////////////
+// Internal helper functions.
+////////////////////////////////////////////////////////////////////////
+
+void
+CIAO::Container_Impl::remove_components (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure))
+{
+ // Remove all the components in the NodeApplication/Container
+ // Release all component servant object.
+ const Component_Iterator end = this->component_map_.end ();
+ for (Component_Iterator iter (this->component_map_.begin ());
+ iter != end;
+ ++iter)
+ {
+ // Find the component home first, then call the remove_component
+ // on the home.
+ Components::CCMHome_ptr home;
+ if (this->home_map_.find ( (*iter).ext_id_, home) != 0)
+ ACE_THROW (CORBA::BAD_PARAM ());
+
+ // This will call ccm_passivate on the component executor.
+ home->remove_component (((*iter).int_id_).in ());
+ ACE_CHECK;
+
+ CORBA::release (((*iter).int_id_).in ());
+ }
+
+ this->component_map_.unbind_all ();
+ // To this point the servant should have been destroyed. However,
+ // if someone is still making calls on the servant, terrible thing
+ // will happen.
+}
+
+
+// Below method is not used actually.
+void
+CIAO::Container_Impl::remove_component (const char * comp_ins_name
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure))
+{
+ Components::CCMObject_var comp;
+ Components::CCMHome_ptr home;
+
+ ACE_CString str (comp_ins_name);
+
+ /* Before we do remove component we have to inform the homeservant so
+ * Component::ccm_passivate ()
+ * constainer::uninstall_component () ->deactivate_object () will be called.
+ *
+ * ccm_remove will be called when the poa destroys the servant.
+ */
+
+ if (this->component_map_.find (str, comp) != 0)
+ ACE_THROW (CORBA::BAD_PARAM ());
+
+ if (this->home_map_.find (str, home) != 0)
+ ACE_THROW (CORBA::BAD_PARAM ());
+
+ // This will call ccm_passivate on the component executor.
+ home->remove_component (comp.in ());
+ ACE_CHECK;
+
+ // If the previous calls failed, what should we do here??
+ CORBA::release (comp.in ());
+
+ // @@ Still need to remove the home if the previous operation fails?
+ if (this->component_map_.unbind (str) == -1)
+ ACE_THROW (::Components::RemoveFailure ());
+}
+
+bool
+CIAO::Container_Impl::register_with_ns (const char * obj_name,
+ CORBA::ORB_ptr orb,
+ Components::CCMObject_ptr obj
+ ACE_ENV_ARG_DECL)
+{
+ ACE_TRY
+ {
+ // Obtain the naming service
+ CORBA::Object_var naming_obj =
+ orb->resolve_initial_references ("NameService"
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (naming_obj.in ()))
+ ACE_ERROR_RETURN ((LM_ERROR,
+ " (%P|%t) Unable to get the Naming Service.\n"),
+ false);
+
+ CosNaming::NamingContext_var naming_context =
+ CosNaming::NamingContext::_narrow (naming_obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // Create a Naming Sequence
+ CosNaming::Name name (1);
+ name.length (1);
+ name[0].id = CORBA::string_dup (obj_name);
+ name[0].kind = CORBA::string_dup ("");
+
+ // Register with the Name Server
+ naming_context->bind (name, obj ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ return true;
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "CIAO (%P|%t) Container_Impl.cpp -"
+ "CIAO::Container_Impl::register_with_ns -"
+ "NodeApplication: failed to register "
+ "with naming service.");
+ return false;
+ }
+ ACE_ENDTRY;
+ return true;
+}
+
+bool
+CIAO::Container_Impl::unregister_with_ns (const char * obj_name,
+ CORBA::ORB_ptr orb
+ ACE_ENV_ARG_DECL)
+{
+ ACE_TRY
+ {
+ // Obtain the naming service
+ CORBA::Object_var naming_obj =
+ orb->resolve_initial_references ("NameService"
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (naming_obj.in ()))
+ ACE_ERROR_RETURN ((LM_ERROR,
+ " (%P|%t) Unable to get the Naming Service.\n"),
+ false);
+
+ CosNaming::NamingContext_var naming_context =
+ CosNaming::NamingContext::_narrow (naming_obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // Create a Naming Sequence
+ CosNaming::Name name (1);
+ name.length (1);
+ name[0].id = CORBA::string_dup (obj_name);
+ name[0].kind = CORBA::string_dup ("");
+
+ // Register with the Name Server
+ ACE_DEBUG ((LM_DEBUG,
+ "Unregister component with the name server : %s!\n",
+ obj_name));
+ naming_context->unbind (name ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ return true;
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "CIAO (%P|%t) Container_Impl.cpp -"
+ "CIAO::Container_Impl::unregister_with_ns -"
+ "NodeApplication: failed to unregister "
+ "with naming service.");
+ return false;
+ }
+ ACE_ENDTRY;
+ return true;
+}
+
diff --git a/TAO/CIAO/ciao/Container_Impl.h b/TAO/CIAO/ciao/Container_Impl.h
new file mode 100644
index 00000000000..428b47c67f2
--- /dev/null
+++ b/TAO/CIAO/ciao/Container_Impl.h
@@ -0,0 +1,218 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Container_Impl.h
+ *
+ * $Id$
+ *
+ * This file contains implementation for the servant of
+ * Components::Deployment::Container interface.
+ *
+ * @author Nanbor Wang <nanbor@cs.wustl.edu>
+ * @author Gan Deng <gan.deng@vanderbilt.edu>
+ */
+//=============================================================================
+
+
+#ifndef CIAO_CONTAINER_IMPL_H
+#define CIAO_CONTAINER_IMPL_H
+#include /**/ "ace/pre.h"
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Deployment_CoreS.h"
+#include "Container_Base.h"
+#include "Swapping_Container.h"
+#include "ace/SString.h"
+#include "Server_init.h" // write_IOR function
+#include "CIAO_common.h" // CIAO::debug_level
+
+namespace CIAO
+{
+ /**
+ * @class Container_Impl
+ *
+ * @brief Servant implementation for the interface Deployment::Container
+ *
+ * This class implements the Deployment::Container
+ * interface which is not defined by the CCM DnC specification.
+ * As the interface implies, this is actually part of the deployment
+ * interface and is used to manage the lifecycle of the installed
+ * components and homes.
+ */
+ class CIAO_SERVER_Export Container_Impl
+ : public virtual POA_Deployment::Container
+ {
+ public:
+ /// Constructor
+ Container_Impl (CORBA::ORB_ptr o,
+ PortableServer::POA_ptr p,
+ ::Deployment::NodeApplication_ptr server);
+
+ /// Destructor
+ virtual ~Container_Impl (void);
+
+ /*-------------------------------------------------------------*/
+ /*-------------------- IDL operations (idl) ------------------*/
+
+ /// Initialize the container.
+ virtual CORBA::Long init (const ::Deployment::Properties &properties
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /// Install all homes and components
+ Deployment::ComponentInfos *
+ install (const ::Deployment::ContainerImplementationInfo & container_impl_info
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::UnknownImplId,
+ Deployment::ImplEntryPointNotFound,
+ Deployment::InstallationFailure,
+ Components::InvalidConfiguration));
+
+ /// Remove all homes and components
+ virtual void
+ remove (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure));
+
+ /// Deployment::Container interface defined attributes/operations.
+ virtual ::Deployment::Properties *
+ properties (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual ::Deployment::NodeApplication_ptr
+ get_node_application (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /*-------------------------------------------------------------*/
+ /*------------------- C++ help methods (c++) -----------------*/
+
+ /// Get the containing POA. This operation does *not*
+ /// increase the reference count of the POA.
+ virtual PortableServer::POA_ptr _default_POA (void);
+
+
+ // Install the home of this particular component
+ virtual ::Components::CCMHome_ptr
+ install_home (const ::Deployment::ComponentImplementationInfo & impl_info
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::UnknownImplId,
+ Deployment::ImplEntryPointNotFound,
+ Deployment::InstallationFailure,
+ Components::InvalidConfiguration));
+
+ /**
+ * @@Note: I don't know how to remove a home right now.
+ * I assume that user will only call remove instead.
+ * This is true at least for DnC run time.
+ *
+ * Right now, in this implementation I assumpe that there will be
+ * same number of homes as the components even if the components
+ * are of the same type. I don't think that we have the modeling
+ * side support of this either. So bear me if you think I avoid
+ * the real thinking for easiness.
+ */
+ // Remove the home of this particular component
+ virtual void
+ remove_home (const char * comp_ins_name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure));
+
+ // Get all homes
+ virtual ::Components::CCMHomes *
+ get_homes (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ bool
+ register_with_ns (const char * obj_name,
+ CORBA::ORB_ptr orb,
+ Components::CCMObject_ptr obj
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS);
+
+ bool
+ unregister_with_ns (const char * obj_name,
+ CORBA::ORB_ptr orb
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS);
+
+
+ // ------------------- CIAO Internal Operations ------------------------
+ // These below two are helper methods to clean up components
+ // should only be called when we are sure that there is no
+ // active connection on this component.
+ virtual void remove_components (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure));
+
+ virtual void remove_component (const char * comp_ins_name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::RemoveFailure));
+
+ /// Set the cached object reference.
+ void set_objref (Deployment::Container_ptr o
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS);
+
+ /// Get the cached object reference. This operation will invoke
+ /// _this if there's no cached reference available. Notice that
+ /// this method does *NOT* increase the reference count of the
+ /// cached reference.
+ /// @@ Gan, caller should own memory. In this case you shoudl
+ /// return a duplicate OR add a const to the operation
+ /// signature. This is simply bad programming.
+ Deployment::Container_ptr get_objref (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
+
+protected:
+ /// Keep a pointer to the managing ORB serving this servant.
+ CORBA::ORB_var orb_;
+
+ /// Keep a pointer to the managing POA.
+ PortableServer::POA_var poa_;
+
+ /// Internal container implementation.
+ // @@ Gan/Jai, heard of auto_ptr <>?
+ CIAO::Container *container_;
+
+ /// Cached ConfigValues.
+ Deployment::Properties properties_;
+
+ /// Cached Container reference (of ourselves.)
+ Deployment::Container_var objref_;
+
+ /// Cached NodeApplication.
+ Deployment::NodeApplication_var nodeapp_;
+
+ /// To store all created CCMHome object
+ typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
+ Components::CCMHome_ptr,
+ ACE_Hash<ACE_CString>,
+ ACE_Equal_To<ACE_CString>,
+ ACE_Null_Mutex> CCMHome_Map;
+ typedef CCMHome_Map::iterator Home_Iterator;
+ CCMHome_Map home_map_;
+
+ /// To store all created Component object.
+ // @@Gan, see how this caching is duplicated..
+ typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
+ Components::CCMObject_var,
+ ACE_Hash<ACE_CString>,
+ ACE_Equal_To<ACE_CString>,
+ ACE_Null_Mutex> CCMComponent_Map;
+ typedef CCMComponent_Map::iterator Component_Iterator;
+ CCMComponent_Map component_map_;
+ };
+}
+
+#if defined (__ACE_INLINE__)
+# include "Container_Impl.inl"
+#endif /* __ACE_INLINE__ */
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_CONTAINER_IMPL_H */
diff --git a/TAO/CIAO/ciao/Container_Impl.inl b/TAO/CIAO/ciao/Container_Impl.inl
new file mode 100644
index 00000000000..40406e5582e
--- /dev/null
+++ b/TAO/CIAO/ciao/Container_Impl.inl
@@ -0,0 +1,33 @@
+/* -*- C++ -*- */
+// $Id$
+
+ACE_INLINE
+CIAO::Container_Impl::Container_Impl (CORBA::ORB_ptr o,
+ PortableServer::POA_ptr p,
+ ::Deployment::NodeApplication_ptr server)
+ : orb_ (CORBA::ORB::_duplicate (o)),
+ poa_ (PortableServer::POA::_duplicate (p)),
+ nodeapp_ (::Deployment::NodeApplication::_duplicate (server))
+{
+}
+
+ACE_INLINE void
+CIAO::Container_Impl::set_objref (Deployment::Container_ptr o
+ ACE_ENV_ARG_DECL)
+{
+ if (!CORBA::is_nil (this->objref_.in ()))
+ ACE_THROW (CORBA::BAD_INV_ORDER ());
+
+ this->objref_ = Deployment::Container::_duplicate (o);
+}
+
+ACE_INLINE ::Deployment::Container_ptr
+CIAO::Container_Impl::get_objref (ACE_ENV_SINGLE_ARG_DECL)
+{
+ if (CORBA::is_nil (this->objref_.in ()))
+ {
+ this->objref_ = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+ }
+ return this->objref_.in ();
+}
diff --git a/TAO/CIAO/ciao/Context_Impl_Base.cpp b/TAO/CIAO/ciao/Context_Impl_Base.cpp
index 71581293d8c..e68639a889e 100644
--- a/TAO/CIAO/ciao/Context_Impl_Base.cpp
+++ b/TAO/CIAO/ciao/Context_Impl_Base.cpp
@@ -6,6 +6,7 @@ namespace CIAO
{
Context_Impl_Base::Context_Impl_Base (void)
{
+ // Should not be called
ACE_ASSERT (0);
}
diff --git a/TAO/CIAO/ciao/Context_Impl_Base.h b/TAO/CIAO/ciao/Context_Impl_Base.h
index 9a86e3bfd7d..737956742a6 100644
--- a/TAO/CIAO/ciao/Context_Impl_Base.h
+++ b/TAO/CIAO/ciao/Context_Impl_Base.h
@@ -56,9 +56,7 @@ namespace CIAO
: public virtual Components::CCMContext
{
public:
- /// @todo This constructor should be declarated private but it seems
- /// the compilers want it, have to sort this out in detail.
- Context_Impl_Base (void);
+ explicit Context_Impl_Base (void);
Context_Impl_Base (Components::CCMHome_ptr home,
Session_Container * c);
diff --git a/TAO/CIAO/ciao/Context_Impl_T.h b/TAO/CIAO/ciao/Context_Impl_T.h
index a2cdc0b8fc8..2cc2895e23f 100644
--- a/TAO/CIAO/ciao/Context_Impl_T.h
+++ b/TAO/CIAO/ciao/Context_Impl_T.h
@@ -26,7 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class SystemException;
@@ -36,7 +35,6 @@ namespace SecurityLevel2
{
class Credentials;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
namespace Components
{
diff --git a/TAO/CIAO/ciao/Deployment.idl b/TAO/CIAO/ciao/Deployment.idl
index f5ff99919e3..f37d71aa520 100644
--- a/TAO/CIAO/ciao/Deployment.idl
+++ b/TAO/CIAO/ciao/Deployment.idl
@@ -1,19 +1,35 @@
// $Id$
-#ifndef DEPLOYMENT_IDL
-#define DEPLOYMENT_IDL
-
-#include "Deployment_Data.idl"
#include "Packaging_Data.idl"
-#include "Target_Data.idl"
#include "ServerResources.idl"
module Deployment {
+ exception ResourceNotAvailable {
+ string name;
+ string resourceType;
+ string propertyName;
+ string elementName;
+ string resourceName;
+ };
+
+ exception PlanError {
+ string name;
+ string reason;
+ };
+
exception InvalidProperty {
string name;
string reason;
};
+ exception NameExists {
+ };
+
+ exception PackageError {
+ string source;
+ string reason;
+ };
+
exception NoSuchName {
};
@@ -23,24 +39,137 @@ module Deployment {
exception InvalidReference {
};
- // Below exception types are CIAO specific
- exception PlanNotExist {
+ interface ApplicationManager {
+ Application startLaunch (in Properties configProperty, out Connections providedReference, in boolean start)
+ raises (ResourceNotAvailable, StartError, InvalidProperty);
+ void destroyApplication (in Application app)
+ raises (StopError);
};
- // CIAO specific struct type used for shared component management
- // mapping the name of component to its plan_uuid
- struct ComponentPlan
+ typedef sequence < Application > Applications;
+
+ interface DomainApplicationManager
{
- string name;
- string plan_uuid;
+ DeploymentPlan getPlan ();
+ void startLaunch (in Properties configProperty, in boolean start)
+ raises (ResourceNotAvailable, StartError, InvalidProperty);
+ void finishLaunch (in boolean start)
+ raises (StartError, InvalidConnection);
+ void start ()
+ raises (StartError);
+ void destroyApplication ()
+ raises (StopError);
+ void destroyManager ()
+ raises (StopError);
};
- typedef sequence < ComponentPlan > ComponentPlans;
+ typedef sequence < DomainApplicationManager > DomainApplicationManagers;
- typedef sequence < Application > Applications;
+ interface ExecutionManager {
+ DomainApplicationManager preparePlan (in DeploymentPlan plan, in boolean commitResources)
+ raises (ResourceNotAvailable, PlanError, StartError);
+ DomainApplicationManagers getManagers ();
+ void destroyManager (in DomainApplicationManager manager)
+ raises (StopError);
+ };
+
+ interface TargetManager {
+ Domain getAllResources ();
+ Domain getAvailableResources ();
+ void commitResources (in DeploymentPlan plan)
+ raises (ResourceNotAvailable, PlanError);
+ void releaseResources (in DeploymentPlan argname);
+ void updateDomain (in ::CORBA::StringSeq elements, in Domain domainSubset, in DomainUpdateKind updateKind);
+ };
interface Logger {
};
-};
-#endif /* DEPLOYMENT_IDL */
+ interface NodeApplicationManager :
+ ApplicationManager
+ {
+ };
+
+ interface NodeManager {
+ void joinDomain (in Domain ciao_domain, in TargetManager manager, in Logger log);
+ void leaveDomain ();
+ NodeApplicationManager preparePlan (in DeploymentPlan plan)
+ raises (StartError, PlanError);
+ void destroyManager (in NodeApplicationManager appManager)
+ raises (StopError, InvalidReference);
+ };
+
+ interface RepositoryManager {
+ void installPackage (in string installationName, in string location)
+ raises (NameExists, PackageError);
+ void createPackage (in string installationName, in PackageConfiguration package, in string baseLocation, in boolean replace)
+ raises (NameExists, PackageError);
+ PackageConfiguration findPackageByName (in string name)
+ raises (NoSuchName);
+ PackageConfiguration findPackageByUUID (in string UUID)
+ raises (NoSuchName);
+ ::CORBA::StringSeq findNamesByType (in string type);
+ ::CORBA::StringSeq getAllNames ();
+ ::CORBA::StringSeq getAllTypes ();
+ void deletePackage (in string installationName)
+ raises (NoSuchName);
+ };
+
+
+//***************************************new_RepositoryManager ONWARDS*****************************************
+
+
+ typedef sequence<octet> Artifact;
+ typedef sequence<octet> Package;
+
+ exception NoPlan {
+ };
+
+ enum Platform {
+ Win32,
+ Unix,
+ Linux,
+ Solaris,
+ Vxworks,
+ UNDEF
+ };
+
+ struct Implementation
+ {
+ Platform the_platform;
+ string name;
+ Artifact the_implementation;
+ };
+
+ typedef sequence<Implementation> Implementations;
+
+ interface new_RepositoryManager
+ {
+ void installPackage (in string installationName, in Package the_package, in boolean replace)
+ raises (NameExists, PackageError);
+
+ DeploymentPlan retrievePlan (in string packageName)
+ raises (NoPlan);
+
+ Package findPackageByName (in string name)
+ raises (NoSuchName);
+
+ Implementation findImplementationByName (in string implementation_name, in string package_name)
+ raises (NoSuchName);
+
+ Package findPackageByUUID (in string UUID)
+ raises (NoSuchName);
+
+ Implementation findImplementationByUUID (in string UUID)
+ raises (NoSuchName);
+
+
+ //::CORBA::StringSeq findNamesByType (in string type);
+ //::CORBA::StringSeq getAllTypes ();
+
+ ::CORBA::StringSeq getAllPackageNames ();
+
+ void deletePackage (in string installationName)
+ raises (NoSuchName);
+ };
+};
diff --git a/TAO/CIAO/ciao/Deployment_Base.idl b/TAO/CIAO/ciao/Deployment_Base.idl
index 1562541796c..7a9e9219ef9 100644
--- a/TAO/CIAO/ciao/Deployment_Base.idl
+++ b/TAO/CIAO/ciao/Deployment_Base.idl
@@ -1,8 +1,6 @@
//$Id$
-#ifndef DEPLOYMENT_BASE_IDL
-#define DEPLOYMENT_BASE_IDL
-
#include <orb.idl>
+#include "tao/ULongSeq.pidl"
#include "Deployment_Core.idl"
module Deployment {
@@ -81,5 +79,3 @@ module Deployment {
};
};
-
-#endif /* DEPLOYMENT_BASE_IDL */
diff --git a/TAO/CIAO/ciao/Deployment_Core.idl b/TAO/CIAO/ciao/Deployment_Core.idl
index fec1b124c61..023c413b1fc 100644
--- a/TAO/CIAO/ciao/Deployment_Core.idl
+++ b/TAO/CIAO/ciao/Deployment_Core.idl
@@ -4,7 +4,6 @@
#define DEPLOYMENT_CORE_IDL
#include "CCM_Component.idl"
-#include <ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl>
// *************** Packaging and Deployment ***************
module Deployment
@@ -12,19 +11,21 @@ module Deployment
// Typeprefix Components "omg.org";
// OMG threw these things away, didn't it.
- exception UnknownImplId
+ exception UnknownImplId
{
string name;
string reason;
};
exception InvalidLocation {};
- exception InstallationFailure
+ exception InstallationFailure
{
+ /*Do we still need a reason? --Tao
+ *Yes -- will */
string name;
string reason;
};
- exception ImplEntryPointNotFound
+ exception ImplEntryPointNotFound
{
string name;
string reason;
@@ -48,14 +49,14 @@ module Deployment
string name;
string reason;
};
-
+
//==============property==================
struct Property
{
string name;
any value;
};
-
+
typedef sequence < Property > Properties;
//============connection==================
@@ -70,19 +71,9 @@ module Deployment
MultiplexReceptacle,
EventEmitter,
EventPublisher,
- EventConsumer,
- ecEventEmitter,
- ecEventPublisher,
- ecEventConsumer,
- rtecEventEmitter,
- rtecEventPublisher,
- rtecEventConsumer,
- nsEventEmitter,
- nsEventPublisher,
- nsEventConsumer
+ EventConsumer
};
- // CIAO's specific <Connection> type defition.
// To avoid the connection info in the plan being passed to the
// local node and to make the implementation not very cumbersome
// I changed the connection struct to include some extra informations.
@@ -92,22 +83,11 @@ module Deployment
string portName;
CCMComponentPortKind kind;
- string endpointInstanceName; // CIAO specific extension
- string endpointPortName; // CIAO specific extension
-
// the endpoints member is change to endpoint.
// Since we will not have more than 1 objref in there.
Object endpoint;
-
- // A wrapper facade interface to provision different event
- // communication mechanisms, including RTEC, etc.
- CIAO::CIAO_Event_Service event_service;
-
- // The properties of this connection, particularly useful
- // to speicfy QoS properties of pub/sub service connections.
- Properties config;
};
-
+
typedef sequence < Connection > Connections;
//=======================================
@@ -143,9 +123,7 @@ module Deployment
//==================================
interface Application
{
- void finishLaunch (in Connections providedReference,
- in boolean start,
- in boolean is_ReDAC)
+ void finishLaunch (in Connections providedReference, in boolean start)
raises (StartError, InvalidConnection);
void start ()
raises (StartError);
@@ -173,8 +151,6 @@ module Deployment
interface NodeApplication; // Forward decl.
typedef sequence<NodeApplication> NodeApplications;
- /// CIAO specific interface, which could deal with installing multiple
- /// containers into a single NodeApplication.
interface Container
{
readonly attribute ::Deployment::Properties properties;
@@ -182,14 +158,10 @@ module Deployment
/// Get the NodeApplication which created us
NodeApplication get_node_application ();
- /// Initialize the container with policies
- // long init (in ::CORBA::PolicyList policies);
+ /// Initialize the container with properties.
+ long init (in ::Deployment::Properties properties);
- // NW: The following should be component specific info because the
- // container has already been created and initialized at this
- // time. So there's not much container configuration to be done
- // at this stage.
- //@@ The container_impl_info will contain
+ //@@ The properties will contain
//1 component instance name as the key.
//2 dll/so name of the exec
//3 entry point of the exec
@@ -197,7 +169,7 @@ module Deployment
//5 entry point of the svnt
//6 Poosible other configuration for container/home/component
- /// Install all homes and components
+ /// Install all homes and components
Deployment::ComponentInfos install (in ContainerImplementationInfo container_impl_info)
raises (UnknownImplId,
ImplEntryPointNotFound,
@@ -207,35 +179,14 @@ module Deployment
/// Remove all homes and components
void remove ()
raises (::Components::RemoveFailure);
-
- /// Remove a component instance
- void remove_component (in string inst_name)
- raises (::Components::RemoveFailure);
};
typedef sequence<Container> Containers;
- typedef sequence<CIAO::CIAO_Event_Service> CIAO_Event_Services;
-
- /// CIAO specific extension
- /// This struct captures the installation information of a particular
- /// CIAO_Event_Service, as defined in <ciaosvcs/Events/CIAO_Events.idl>
- struct ESInstallationInfo
- {
- string id;
- CIAO::EventServiceType type;
- string svcconf;
- //Properties es_config;
- };
-
- /// CIAO specific extension
- typedef sequence<ESInstallationInfo> ESInstallationInfos;
interface NodeApplication : Application
{
readonly attribute ::Deployment::Properties properties;
- /// CIAO specific operation to handle dynamic system redeployment
- /// and reconfiguration
/// @@ Initialize the nodeapplication, so it will know what
/// components it will create and home many of them are
/// there. However the real create action will take place when
@@ -251,52 +202,33 @@ module Deployment
::Components::InvalidConfiguration,
::Components::RemoveFailure);
- /// CIAO specific extension
- /// This operation will create one or more CIAO_Event_Service objects
- /// within the NodeApplication, which will be used to mediate the
- /// communication of CCM events
- CIAO_Event_Services install_es (in ESInstallationInfos es_infos)
- raises (InstallationFailure);
-
- /// CIAO specific extensions
- ///@@ We know that Deployment::NodeApplicationManager will be returned,
+ ///@@ We know that Dployment::NodeApplicationManager will be returned,
/// however to avoid the size of the shared object of CIAO_Server.
/// we return an Object.
Object get_node_application_manager ();
- /// CIAO specific extension
Container create_container (in ::Deployment::Properties properties)
raises (::Components::CreateFailure,
::Components::InvalidConfiguration);
- /// CIAO specific extension
void remove_container (in Container cref)
raises (::Components::RemoveFailure);
- /// CIAO specific extension
Containers get_containers ();
- /// CIAO specific extension
- /// Remove a component instance from the NodeApplication
- void remove_component (in string inst_name)
- raises (::Components::RemoveFailure);
-
- /// CIAO specific extension
/// Remove all containers, components and component homes.
/// Shuts down the ORB of the NodeApplication to terminate the process.
oneway void remove ();
- /// CIAO specific extension. This will enforce the component to
+ /// CIAO specific extensions. This will enforce the component to
/// be activated (preactivate, activate, postactivated) before the assembly
/// is established
void ciao_preactivate ()
raises (StartError);
- /// CIAO specific extension
void ciao_postactivate ()
raises (StartError);
- /// CIAO specific extension
void ciao_passivate ()
raises (StopError);
};
diff --git a/TAO/CIAO/ciao/Deployment_Data.idl b/TAO/CIAO/ciao/Deployment_Data.idl
index d6e2fe23128..5cb8a2d98d0 100644
--- a/TAO/CIAO/ciao/Deployment_Data.idl
+++ b/TAO/CIAO/ciao/Deployment_Data.idl
@@ -1,6 +1,5 @@
// $Id$
-#ifndef DEPLOYMENT_DATA_IDL
-#define DEPLOYMENT_DATA_IDL
+
#include "Deployment_Base.idl"
module Deployment {
@@ -255,5 +254,3 @@ module Deployment {
SatisfierProperties property;
};
};
-
-#endif /* DEPLOYMENT_DATA_IDL */
diff --git a/TAO/CIAO/ciao/Deployment_Events.idl b/TAO/CIAO/ciao/Deployment_Events.idl
deleted file mode 100644
index 1d4d431287c..00000000000
--- a/TAO/CIAO/ciao/Deployment_Events.idl
+++ /dev/null
@@ -1,68 +0,0 @@
-// $Id$
-
-/**
- * @file Deployment_Events.idl
- *
- * @brief A collection of IDL data types for CIAO pub/sub services deployment.
- *
- * @author Gan Deng
- */
-
-#if !defined (CIAO_DEPLOYMENT_EVENT_SERVICES_IDL)
-#define CIAO_DEPLOYMENT_EVENT_SERVICES_IDL
-
-#include <orb.idl>
-
-module CIAO
-{
- module DAnCE
- {
- /// CIAO specific extension to describe pub/sub services in the deployment
- enum EventServiceType
- {
- EC,
- RTEC,
- NOTIFY,
- RTNOTIFY
- };
-
- /// Each element in the EventSourceSet denotes a event source id
- typedef string EventSourceId;
-
- typedef sequence<EventSourceId> EventSourceSet;
-
- /// Event Filters
- enum FilterType
- {
- CONJUNCTION,
- DISJUNCTION,
- LOGICAL_AND,
- NEGATE
- };
-
- struct EventFilter
- {
- string name;
- FilterType type;
- EventSourceSet sources;
- };
-
- typedef sequence < EventFilter > EventFilters;
-
- /// CIAO specific extension to describe pub/sub services in the deployment
- struct EventServiceDeploymentDescription
- {
- string name;
- string node;
- EventServiceType type;
- string svc_cfg_file;
-
- EventFilters filters;
- };
-
- typedef sequence < EventServiceDeploymentDescription >
- EventServiceDeploymentDescriptions;
- };
-};
-
-#endif /* CIAO_DEPLOYMENT_EVENT_SERVICES_IDL */
diff --git a/TAO/CIAO/ciao/Deployment_common.h b/TAO/CIAO/ciao/Deployment_common.h
deleted file mode 100644
index 4e15401d7d8..00000000000
--- a/TAO/CIAO/ciao/Deployment_common.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-
-/**
- * @file Deployment_common.h
- *
- * This file collects common type definitions used across different
- * objects of DAnCE toolchain.
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- */
-
-#ifndef DANCE_COMMON_H
-#define DANCE_COMMON_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined ACE_LACKS_PRAGMA_ONCE
-#pragma once
-#endif /* ! ACE_LACKS_PRAGMA_ONCE */
-
-/// A struct which captures the binding information about a component
-
-namespace CIAO
-{
- /// A struct which captures the compnent binding information, which
- /// is useful for inter-assembly connection setup
- typedef struct _component_binding
- {
- _component_binding ()
- {
- providedReference_ = 0;
- }
-
- ACE_CString name_;
- ACE_CString plan_uuid_;
- ACE_CString node_;
-
- Deployment::Connections_var providedReference_;
-
- bool operator==(const struct _component_binding & comp)
- {
- if (this->name_ == comp.name_ &&
- this->plan_uuid_ == comp.plan_uuid_ &&
- this->node_ == comp.node_)
- return true;
- else
- return false;
- }
- } Component_Binding_Info;
-}
-
-#include /**/ "ace/post.h"
-#endif /* DANCE_COMMON_H */
diff --git a/TAO/CIAO/ciao/DomainApplicationManager.idl b/TAO/CIAO/ciao/DomainApplicationManager.idl
deleted file mode 100644
index c0030465638..00000000000
--- a/TAO/CIAO/ciao/DomainApplicationManager.idl
+++ /dev/null
@@ -1,57 +0,0 @@
-// $Id$
-#ifndef DOMAINAPPLICATIONMANAGER_IDL
-#define DOMAINAPPLICATIONMANAGER_IDL
-
-#include "Deployment.idl"
-
-module Deployment {
- /// CIAO 's DomainApplicationManager interface differs spec-defined interface
- /// in the same that it also integrates the spec-defined interface for
- /// DomainApplication into itself
- interface DomainApplicationManager
- {
- DeploymentPlan getPlan ();
-
- /// CIAO specific version of startLaunch implementation, this one
- /// differs with spec-defined operation in the sense that it doesn't
- /// return DomainApplication object reference.
- void startLaunch (in Properties configProperty, in boolean start)
- raises (ResourceNotAvailable, StartError, InvalidProperty);
-
- void finishLaunch (in boolean start,
- in boolean is_ReDAC)
- raises (StartError, InvalidConnection);
-
- void start ()
- raises (StartError);
-
- /// CIAO specific extention
- /// Fetch NodeApplication based on the given node name
- NodeApplication get_node_app (in string node_name)
- raises (NoSuchName);
-
- /// CIAO specific extension, it differs with the spec defined one
- /// for no input parameter.
- void destroyApplication ()
- raises (StopError);
-
- /// CIAO specific extension to destroy NodeApplicationManager
- void destroyManager ()
- raises (StopError);
-
- /// CIAO specific extension
- /// Perform the actual redeployment and reconfiguration on the dommain level.
- void perform_redeployment (in DeploymentPlan new_plan)
- raises (PlanError,
- InstallationFailure,
- UnknownImplId,
- ImplEntryPointNotFound,
- InvalidConnection,
- InvalidProperty,
- ::Components::RemoveFailure);
- };
-
- typedef sequence < DomainApplicationManager > DomainApplicationManagers;
-};
-
-#endif /* DOMAINAPPLICATIONMANAGER_IDL */
diff --git a/TAO/CIAO/ciao/Dynamic_Component_Activator.h b/TAO/CIAO/ciao/Dynamic_Component_Activator.h
index d42fa216698..1e9a023f38c 100644
--- a/TAO/CIAO/ciao/Dynamic_Component_Activator.h
+++ b/TAO/CIAO/ciao/Dynamic_Component_Activator.h
@@ -15,24 +15,23 @@
#define CIAO_DYNAMIC_SWAPPING_ACTIVATOR_H
#include /**/ "ace/pre.h"
+#include "ace/Array_Base.h"
#include "ciao/CIAO_Server_Export.h"
+#include "ciao/CCM_ContainerC.h"
+#include "ciao/Deployment_CoreC.h"
+
+#include "tao/PortableServer/Key_Adapters.h"
+#include "ace/Hash_Map_Manager_T.h"
+#include "Dynamic_Component_Servant_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ciao/CCM_ContainerC.h"
-#include "ciao/Deployment_CoreC.h"
-#include "ciao/Dynamic_Component_Servant_Base.h"
-
-#include "tao/PortableServer/Key_Adapters.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/LocalObject.h"
#include "tao/PortableServer/ServantActivatorC.h"
-#include "ace/Hash_Map_Manager_T.h"
-#include "ace/Array_Base.h"
-
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
diff --git a/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.cpp b/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.cpp
index 16a9f40ea3a..e7a0daceadd 100644
--- a/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.cpp
+++ b/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.cpp
@@ -10,7 +10,6 @@ ACE_RCSID (ciao,
namespace CIAO
{
Dynamic_Component_Servant_Base::Dynamic_Component_Servant_Base (void)
- : container_ (0)
{
ACE_ASSERT (0);
}
diff --git a/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.h b/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.h
index 15aab6cace3..db1a89fd6f6 100644
--- a/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.h
+++ b/TAO/CIAO/ciao/Dynamic_Component_Servant_Base.h
@@ -31,10 +31,9 @@ namespace CIAO
class CIAO_SERVER_Export Dynamic_Component_Servant_Base
{
public:
- /// @todo Not to be used, no idea why this should be public, have to check this
- Dynamic_Component_Servant_Base (void);
+ explicit Dynamic_Component_Servant_Base (void);
- explicit Dynamic_Component_Servant_Base (Session_Container *c);
+ Dynamic_Component_Servant_Base (Session_Container *c);
virtual ~Dynamic_Component_Servant_Base (void);
diff --git a/TAO/CIAO/ciao/ExecutionManager.idl b/TAO/CIAO/ciao/ExecutionManager.idl
deleted file mode 100644
index a5108b77281..00000000000
--- a/TAO/CIAO/ciao/ExecutionManager.idl
+++ /dev/null
@@ -1,50 +0,0 @@
-// $Id$
-#ifndef EXECUTIONMANAGER_IDL
-#define EXECUTIONMANAGER_IDL
-
-#include "Deployment.idl"
-#include "DomainApplicationManager.idl"
-
-module Deployment {
- interface ExecutionManager {
- DomainApplicationManager preparePlan (in DeploymentPlan plan,
- in boolean commitResources)
- raises (ResourceNotAvailable, PlanError, StartError);
-
- DomainApplicationManagers getManagers ();
-
- DomainApplicationManager getManager (in string plan_uuid)
- raises (PlanNotExist);
-
- void destroyManager (in DomainApplicationManager manager)
- raises (StopError);
-
- /// CIAO specific extention
- /// Destroy ApplicationManagers by plan_uuid, the unique semantics of this
- /// operation lies in the fact that if some components are
- /// still up and running, then the ApplicationManagers won't be destroyed.
- void destroyManagerByPlan (in string plan_uuid)
- raises (StopError);
-
- /// CIAO specific extention
- /// "Get" operation, return the DeploymentPlan
- DeploymentPlan getPlan (in string plan_uuid);
-
- /// CIAO specific operation to handle dynamic system redeployment
- /// and reconfiguration
- /// This operation could handle dynamic redeployment, and this
- /// is the operation exposed to clients directly. Other
- /// "perform_redeployment" operation defined on DAM and NA
- /// are implementaion details within DAnCE.
- void perform_redeployment (in DeploymentPlan new_plan)
- raises (PlanError,
- InstallationFailure,
- UnknownImplId,
- ImplEntryPointNotFound,
- InvalidConnection,
- InvalidProperty,
- ::Components::RemoveFailure);
- };
-};
-
-#endif /* EXECUTIONMANAGER_IDL */
diff --git a/TAO/CIAO/ciao/Home_Servant_Impl_Base.cpp b/TAO/CIAO/ciao/Home_Servant_Impl_Base.cpp
index 81c62eb6110..5520c193be7 100644
--- a/TAO/CIAO/ciao/Home_Servant_Impl_Base.cpp
+++ b/TAO/CIAO/ciao/Home_Servant_Impl_Base.cpp
@@ -4,6 +4,11 @@
namespace CIAO
{
+ Home_Servant_Impl_Base::Home_Servant_Impl_Base (void)
+ {
+ ACE_ASSERT (0);
+ }
+
Home_Servant_Impl_Base::Home_Servant_Impl_Base (Session_Container * c)
: container_ (c)
{
diff --git a/TAO/CIAO/ciao/Home_Servant_Impl_Base.h b/TAO/CIAO/ciao/Home_Servant_Impl_Base.h
index a8752b95218..8fb03deb168 100644
--- a/TAO/CIAO/ciao/Home_Servant_Impl_Base.h
+++ b/TAO/CIAO/ciao/Home_Servant_Impl_Base.h
@@ -43,6 +43,8 @@ namespace CIAO
: public virtual POA_Components::CCMHome
{
public:
+ explicit Home_Servant_Impl_Base (void);
+
Home_Servant_Impl_Base (Session_Container * c);
virtual ~Home_Servant_Impl_Base (void);
@@ -62,9 +64,6 @@ namespace CIAO
protected:
Session_Container *container_;
- private:
- /// Not to be used
- Home_Servant_Impl_Base (void);
};
}
diff --git a/TAO/CIAO/ciao/NodeApp_CB_Impl.h b/TAO/CIAO/ciao/NodeApp_CB_Impl.h
index 824f3605d8f..e14899f38ff 100644
--- a/TAO/CIAO/ciao/NodeApp_CB_Impl.h
+++ b/TAO/CIAO/ciao/NodeApp_CB_Impl.h
@@ -24,6 +24,9 @@
namespace CIAO
{
+ // Forward declaration.
+ // class NodeApplicationManager;
+
/**
* @class NodeApplication_Callback_Impl
*
@@ -44,6 +47,14 @@ namespace CIAO
const Deployment::Properties &properties)
ACE_THROW_SPEC ((CORBA::SystemException));
+ // @@ (OO) Since this class is reference counted, please make this
+ // destructor protected to enforce proper memory managment
+ // through the reference counting mechanism (i.e. to
+ // disallow calling operator delete() on an instance of
+ // this class.
+ /// Destructor.
+ ~NodeApplication_Callback_Impl ();
+
/// Get the containing POA. This operation does *not* increase
/// the reference count of the POA.
virtual PortableServer::POA_ptr _default_POA (void);
@@ -57,11 +68,8 @@ namespace CIAO
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- Deployment::NodeApplication_ptr get_nodeapp_ref (void);
-
protected:
- /// Destructor.
- ~NodeApplication_Callback_Impl ();
+ Deployment::NodeApplication_ptr get_nodeapp_ref (void);
CORBA::ORB_var orb_;
diff --git a/TAO/CIAO/ciao/NodeApplicationManager.idl b/TAO/CIAO/ciao/NodeApplicationManager.idl
deleted file mode 100644
index 63c64b23785..00000000000
--- a/TAO/CIAO/ciao/NodeApplicationManager.idl
+++ /dev/null
@@ -1,46 +0,0 @@
-// $Id$
-#ifndef NODEAPPLICATIONMANAGER_IDL
-#define NODEAPPLICATIONMANAGER_IDL
-
-#include "Deployment.idl"
-
-module Deployment {
- interface ApplicationManager {
- Application startLaunch (in Properties configProperty,
- out Connections providedReference,
- in boolean start)
- raises (ResourceNotAvailable, StartError, InvalidProperty);
- void destroyApplication (in Application app)
- raises (StopError);
- };
-
- interface NodeApplicationManager :
- ApplicationManager
- {
- /// CIAO specific operation to handle dynamic system redeployment
- /// and reconfiguration
- /// This operation could handle dynamic redeployment for
- /// a node-level deployment plan within a node
- /// @para add_or_remove If true, we add new components only, vice vesa.
- Application perform_redeployment (in Properties configProperty,
- out Connections providedReference,
- in boolean add_or_remove,
- in boolean start)
- raises (PlanError,
- InstallationFailure,
- UnknownImplId,
- ImplEntryPointNotFound,
- InvalidConnection,
- InvalidProperty,
- ::Components::RemoveFailure);
-
- /// CIAO specific operation to reset deployment plan
- void reset_plan (in DeploymentPlan plan);
-
- /// CIAO speicfic operation to set the information of
- /// "shared components" (through NodeManager)
- void set_shared_components (in ComponentPlans components);
- };
-};
-
-#endif /* NODEAPPLICATIONMANAGER_IDL */
diff --git a/TAO/CIAO/ciao/NodeApplication_CallBack.idl b/TAO/CIAO/ciao/NodeApplication_CallBack.idl
index d0f8daeb42e..9c4f1d14775 100644
--- a/TAO/CIAO/ciao/NodeApplication_CallBack.idl
+++ b/TAO/CIAO/ciao/NodeApplication_CallBack.idl
@@ -4,13 +4,12 @@
* This IDL file is used to combine the NodeApplication
* interface with the NodeApplicationManager interface.
*
- * NodeApplicationManager will be spawn NodeApplication.
+ * NodeApplicationManager will be spwan NodeApplication.
* The call back object will be used to get the objectref of
* NodeApplication.
*/
#include "Deployment.idl"
-#include "NodeApplicationManager.idl"
module CIAO
{
diff --git a/TAO/CIAO/ciao/NodeApplication_Impl.cpp b/TAO/CIAO/ciao/NodeApplication_Impl.cpp
new file mode 100644
index 00000000000..cfc18baaf91
--- /dev/null
+++ b/TAO/CIAO/ciao/NodeApplication_Impl.cpp
@@ -0,0 +1,516 @@
+//$Id$
+
+#include "NodeApplication_Impl.h"
+#include "ace/SString.h"
+#include "Container_Impl.h"
+
+#if !defined (__ACE_INLINE__)
+# include "NodeApplication_Impl.inl"
+#endif /* __ACE_INLINE__ */
+
+CIAO::NodeApplication_Impl::~NodeApplication_Impl (void)
+{
+}
+
+CORBA::Long
+CIAO::NodeApplication_Impl::init (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ //@@TODO initialize this NodeApplication properties
+ return 0;
+}
+
+CORBA::Long
+CIAO::NodeApplication_Impl::create_all_containers (
+ const ::Deployment::ContainerImplementationInfos & container_infos
+ ACE_ENV_ARG_DECL_NOT_USED
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ // Create all the containers here based on the input node_impl_info.
+ const CORBA::ULong len = container_infos.length ();
+
+ for (CORBA::ULong i = 0; i < len; ++i)
+ {
+ // The factory method <create_container> will intialize the container
+ // servant with properties, so we don't need to call <init> on the
+ // container object reference.
+ // Also, the factory method will add the container object reference
+ // to the set for us.
+ ::Deployment::Container_var cref =
+ this->create_container (container_infos[i].container_config);
+ }
+
+ return 0;
+}
+
+void
+CIAO::NodeApplication_Impl::finishLaunch (
+ const Deployment::Connections & providedReference,
+ CORBA::Boolean start
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError,
+ Deployment::InvalidConnection))
+{
+ ACE_UNUSED_ARG (start);
+
+ ACE_TRY
+ {
+ const CORBA::ULong length = providedReference.length ();
+
+ // For every connection struct we finish the connection.
+ for (CORBA::ULong i = 0; i < length; ++i)
+ {
+ ACE_CString name = providedReference[i].instanceName.in ();
+ Components::CCMObject_ptr comp;
+
+ if (this->component_map_.find (name, comp) != 0)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "invalid port name [%s] in instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ ACE_TRY_THROW (Deployment::InvalidConnection ());
+ }
+
+ Components::EventConsumerBase_var consumer;
+
+ // Since we know CCMObject inherits from
+ // navigation/event/receptacle, no need
+ // to narrow here.
+
+ switch (providedReference[i].kind)
+ {
+ case Deployment::SimplexReceptacle:
+ case Deployment::MultiplexReceptacle:
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "connecting port name [%s] in instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ }
+
+ comp->connect (providedReference[i].portName.in (),
+ providedReference[i].endpoint.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "success connecting port name [%s] in "
+ "instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ }
+ break;
+
+ // @@ (GD) A place holder where the Event Channel connections
+ // should be set up.
+
+ case Deployment::EventEmitter:
+
+ consumer = Components::EventConsumerBase::
+ _narrow (providedReference[i].endpoint.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (consumer.in ()))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "for port name [%s] in instance [%s] ,"
+ "there is an invalid endPoint. \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ ACE_TRY_THROW (Deployment::InvalidConnection ());
+ }
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "connecting port name [%s] in instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ }
+
+ comp->connect_consumer (providedReference[i].portName.in (),
+ consumer.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "success connecting port name [%s] in "
+ "instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ }
+ break;
+
+ case Deployment::EventPublisher:
+
+ consumer = Components::EventConsumerBase::
+ _narrow (providedReference[i].endpoint.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (consumer.in ()))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "for port name [%s] in instance [%s] ,"
+ "there is an invalid endPoint. \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ ACE_TRY_THROW (Deployment::InvalidConnection ());
+ }
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "connecting port name [%s] in instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ }
+
+ comp->subscribe (providedReference[i].portName.in (),
+ consumer.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) - NodeApplication_Impl.cpp, "
+ "CIAO::NodeApplication_Impl::finishLaunch, "
+ "success connecting port name [%s] in "
+ "instance [%s] \n",
+ providedReference[i].portName.in (),
+ name.c_str ()));
+ }
+ break;
+
+ default:
+ ACE_TRY_THROW (Deployment::InvalidConnection ());
+ }
+ }
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "NodeApplication_Impl::finishLaunch\t\n");
+ ACE_RE_THROW;
+ }
+
+ ACE_ENDTRY;
+}
+
+void
+CIAO::NodeApplication_Impl::ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError))
+{
+ Component_Iterator end = this->component_map_.end ();
+ for (Component_Iterator iter (this->component_map_.begin ());
+ iter != end;
+ ++iter)
+ {
+ ((*iter).int_id_)->ciao_preactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+}
+
+void
+CIAO::NodeApplication_Impl::start (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError))
+{
+ Component_Iterator end = this->component_map_.end ();
+ for (Component_Iterator iter (this->component_map_.begin ());
+ iter != end;
+ ++iter)
+ {
+ ((*iter).int_id_)->ciao_activate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+}
+
+void
+CIAO::NodeApplication_Impl::ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError))
+{
+ Component_Iterator end = this->component_map_.end ();
+ for (Component_Iterator iter (this->component_map_.begin ());
+ iter != end;
+ ++iter)
+ {
+ ((*iter).int_id_)->ciao_postactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+}
+
+void
+CIAO::NodeApplication_Impl::ciao_passivate (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StopError))
+{
+ Component_Iterator end = this->component_map_.end ();
+ for (Component_Iterator iter (this->component_map_.begin ());
+ iter != end;
+ ++iter)
+ {
+ ((*iter).int_id_)->ciao_passivate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+}
+
+Deployment::ComponentInfos *
+CIAO::NodeApplication_Impl::install (
+ const ::Deployment::NodeImplementationInfo & node_impl_info
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::UnknownImplId,
+ Deployment::ImplEntryPointNotFound,
+ Deployment::InstallationFailure,
+ Components::InvalidConfiguration))
+{
+ Deployment::ComponentInfos_var retv;
+ ACE_TRY
+ {
+ const ::Deployment::ContainerImplementationInfos container_infos =
+ node_impl_info.impl_infos;
+
+ ACE_NEW_THROW_EX (retv,
+ Deployment::ComponentInfos,
+ CORBA::NO_MEMORY ());
+ ACE_TRY_CHECK;
+
+ retv->length (0UL);
+
+ // Call create_all_containers to create all the necessary containers..
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) NodeApplication_Impl.cpp -"
+ "CIAO::NodeApplication_Impl::install -"
+ "creating all the containers. \n"));
+ }
+ (void) this->create_all_containers (container_infos);
+ if (CIAO::debug_level () > 9)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) NodeApplication_Impl.cpp -"
+ "CIAO::NodeApplication_Impl::install -"
+ "created all the containers. \n"));
+ }
+
+ // For each container, invoke <install> operation, this will return
+ // the ComponentInfo for components installed in each container.
+ // Merge all the returned ComponentInfo, which will be used
+ // as the return value of this method.
+ const CORBA::ULong num_containers = container_infos.length ();
+ for (CORBA::ULong i = 0; i < num_containers; ++i)
+ {
+ Deployment::ComponentInfos_var comp_infos =
+ this->container_set_.at(i)->install (container_infos[i]
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // Append the return sequence to the *big* return sequence
+ CORBA::ULong curr_len = retv->length ();
+ retv->length (curr_len + comp_infos->length ());
+
+ for (CORBA::ULong j = curr_len; j < retv->length (); j++)
+ retv[j] = comp_infos[j-curr_len];
+ }
+
+ // @@ Maybe we can optimize this. We can come up with a decision later.
+ // Cache a copy of the component object references for all the components
+ // installed on this NodeApplication. I know we can delegates these to the
+ // undelying containers, but in that case, we should loop
+ // all the containers
+ // to find the component object reference. - Gan
+ const CORBA::ULong comp_len = retv->length ();
+ for (CORBA::ULong len = 0;
+ len < comp_len;
+ ++len)
+ {
+ //Since we know the type ahead of time...narrow is omitted here.
+ if (this->component_map_.bind (retv[len].component_instance_name.in(),
+ Components::CCMObject::_duplicate (retv[len].
+ component_ref.in ())))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "CIAO (%P|%t) NodeApplication_Impl.cpp -"
+ "CIAO::NodeApplication_Impl::install -"
+ "error binding component instance [%s] "
+ "into the map. \n",
+ retv[len].component_instance_name.in ()));
+ ACE_TRY_THROW (
+ Deployment::InstallationFailure ("NodeApplication_Imp::install",
+ "Duplicate component instance name"));
+ }
+ }
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "CIAO_NodeApplication::install error\t\n");
+ ACE_RE_THROW;
+ }
+ ACE_ENDTRY;
+ ACE_CHECK_RETURN (0);
+
+ return retv._retn ();
+}
+
+void
+CIAO::NodeApplication_Impl::remove (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ // For each container, invoke <remove> operation to remove home and components.
+ const CORBA::ULong set_size = this->container_set_.size ();
+ for (CORBA::ULong i = 0; i < set_size; ++i)
+ {
+ this->container_set_.at(i)->remove (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+
+ // Remove all containers
+ // Maybe we should also deactivate container object reference.
+ this->container_set_.remove_all ();
+
+ if (CIAO::debug_level () > 1)
+ ACE_DEBUG ((LM_DEBUG, "Removed all containers from this NodeApplication!\n"));
+
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+}
+
+
+// Create a container interface, which will be hosted in this NodeApplication.
+::Deployment::Container_ptr
+CIAO::NodeApplication_Impl::create_container (const ::Deployment::Properties &properties
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ ::Components::CreateFailure,
+ ::Components::InvalidConfiguration))
+{
+ if (CIAO::debug_level () > 1)
+ ACE_DEBUG ((LM_DEBUG, "ENTERING: NodeApplication_Impl::create_container()\n"));
+
+ CIAO::Container_Impl *container_servant = 0;
+
+ ACE_NEW_THROW_EX (container_servant,
+ CIAO::Container_Impl (this->orb_.in (),
+ this->poa_.in (),
+ this->get_objref ()),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (0);
+
+ PortableServer::ServantBase_var safe_servant (container_servant);
+
+ // @TODO: Need to decide a "component_installation" equivalent data
+ // structure to pass to the container, which will be used to
+ // suggest how to install the components. Each such data stucture
+ // should be correspond to one <process_collocation> tag in the XML
+ // file to describe the deployment plan.
+ container_servant->init (properties
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ PortableServer::ObjectId_var oid
+ = this->poa_->activate_object (container_servant
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ CORBA::Object_var obj
+ = this->poa_->id_to_reference (oid.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ ::Deployment::Container_var ci
+ = ::Deployment::Container::_narrow (obj.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ // Cached the objref in its servant.
+ container_servant->set_objref (ci.in () ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+
+ {
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->lock_, 0);
+
+ this->container_set_.add (ci.in ());
+ }
+
+ if (CIAO::debug_level () > 1)
+ ACE_DEBUG ((LM_DEBUG,
+ "LEAVING: NodeApplication_Impl::create_container()\n"));
+ return ci._retn ();
+}
+
+// Remove a container interface.
+void
+CIAO::NodeApplication_Impl::remove_container (::Deployment::Container_ptr cref
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ ::Components::RemoveFailure))
+{
+ ACE_DEBUG ((LM_DEBUG, "ENTERING: NodeApplication_Impl::remove_container()\n"));
+ ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_);
+
+ if (this->container_set_.object_in_set (cref) == 0)
+ {
+ ACE_THROW (Components::RemoveFailure());
+ }
+
+ cref->remove (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+
+ // @@ Deactivate object.
+ PortableServer::ObjectId_var oid
+ = this->poa_->reference_to_id (cref
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+
+ this->poa_->deactivate_object (oid.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+
+ // Should we remove the server still, even if the previous call failed.
+
+ if (this->container_set_.remove (cref) == -1)
+ {
+ ACE_THROW (::Components::RemoveFailure ());
+ }
+
+ ACE_DEBUG ((LM_DEBUG, "LEAVING: NodeApplication_Impl::remove_container()\n"));
+}
+
+// Get containers
+::Deployment::Containers *
+CIAO::NodeApplication_Impl::get_containers (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return 0;
+}
diff --git a/TAO/CIAO/ciao/NodeApplication_Impl.h b/TAO/CIAO/ciao/NodeApplication_Impl.h
new file mode 100644
index 00000000000..b16e8931ccb
--- /dev/null
+++ b/TAO/CIAO/ciao/NodeApplication_Impl.h
@@ -0,0 +1,238 @@
+//$Id$
+/**========================================================
+ *
+ * @file NodeApplication_Impl.h
+ *
+ * @Brief This file contains the implementation of
+ * the NodeApplication interface.
+ *
+ * @author Tao Lu <lu@dre.vanderbilt.edu>
+ * @author Gan Deng <dengg@dre.vanderbilt.edu>
+ *========================================================*/
+
+#ifndef NODEAPPLICATION_IMPL_H
+#define NODEAPPLICATION_IMPL_H
+#include /**/ "ace/pre.h"
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "Container_Base.h"
+#include "Deployment_CoreS.h"
+#include "Server_init.h"
+#include "CIAO_common.h"
+#include "Object_Set_T.h"
+#include "tao/ORB.h"
+#include "ace/Synch.h"
+#include "ace/Synch_Traits.h"
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager_T.h"
+
+using CIAO::Utility::write_IOR;
+
+/**
+ *
+ * @class NodeApplication_Impl
+ *
+ * @brief This class implements the NodeApplication interface.
+ * This interface is semantically very simillar to container
+ * in the old DnC spec. However this class will also be used
+ * as a Server for hosting home/component. This way we reduce the
+ * complexity of the framework by omitting the componentserver layer.
+ *
+ * @@TODO add configuration capabilities. Threading is one of them.
+ *
+ * @@Assumptions:
+ * 1. Now the implementation is not thread safe.
+ * // @@Gan, the above assumption is _really_ bad. Could you please
+ * use the lock in the imeplementation to do some simple
+ * prootections.
+ **/
+
+namespace CIAO
+{
+ // @@ Gan, as we discussed before can you please wrap this
+ // implementation in a namespace Node_Application or whatever to
+ // signify that it belongs to another software piece of CIAO?
+ class CIAO_SERVER_Export NodeApplication_Impl
+ : public virtual POA_Deployment::NodeApplication
+ {
+ public:
+ /// Default constructor.
+ NodeApplication_Impl (CORBA::ORB_ptr o,
+ PortableServer::POA_ptr p);
+
+ /// Default destructor.
+ virtual ~NodeApplication_Impl (void);
+
+ /**
+ * @method finishLaunch
+ *
+ * @brief This operation dose 2 things.
+ * 1. Get the external connction (facet and Event source)
+ * and connect them to the local receptacle/event sink.
+ * 2. If the start augment is true, start the Components.
+ * @Note:
+ * The connection containes the object ref of the provided object
+ * reference (facet/event consumer) of components from other NodeApplications.
+ * However the name field stores the name of the port on the local component.
+ */
+ virtual void
+ finishLaunch (const Deployment::Connections & providedReference,
+ CORBA::Boolean start
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError,
+ Deployment::InvalidConnection));
+
+ /**
+ * @method start
+ */
+ virtual void
+ start (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError));
+
+ /*------------- CIAO specific IDL operations (idl)----------
+ *
+ *-----------------------------------------------------------*/
+
+ /**
+ * @method ciao_preactivate
+ */
+ virtual void
+ ciao_preactivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError));
+
+ /**
+ * @method ciao_postactivate
+ */
+ virtual void
+ ciao_postactivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StartError));
+
+ /**
+ * @method ciao_passivate
+ */
+ virtual void
+ ciao_passivate (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Deployment::StopError));
+
+ /// Initialize the NodeApplication
+ virtual CORBA::Long init (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /// Start install homes and components.
+ virtual ::Deployment::ComponentInfos *
+ install (const ::Deployment::NodeImplementationInfo & node_impl_info
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ ::Deployment::UnknownImplId,
+ ::Deployment::ImplEntryPointNotFound,
+ ::Deployment::InstallationFailure,
+ ::Components::InvalidConfiguration));
+
+ /// Get the object reference of the NodeApplicationManager.
+ /// This might come in handy later.
+ virtual ::CORBA::Object_ptr
+ get_node_application_manager (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /// Access the readonly attribute.
+ virtual ::Deployment::Properties *
+ properties (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /// Remove everything inside including all components and homes.
+ virtual void remove (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /// Create a container interface, which will be hosted in this NodeApplication.
+ virtual ::Deployment::Container_ptr
+ create_container (const ::Deployment::Properties &properties
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ ::Components::CreateFailure,
+ ::Components::InvalidConfiguration));
+
+ /// Remove a container interface.
+ virtual void remove_container (::Deployment::Container_ptr cref
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ ::Components::RemoveFailure));
+
+ /// Get all container object refs
+ virtual ::Deployment::Containers * get_containers (
+ ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /*------------- CIAO specific helper functions (C++)---------
+ *
+ *-----------------------------------------------------------*/
+
+ /// Get the containing POA. This operation does *not*
+ /// increase the reference count of the POA.
+ virtual PortableServer::POA_ptr _default_POA (void);
+
+ /// Return the cached object reference of this NodeApplication object.
+ /// This operation does *NOT* increase the reference count.
+ ::Deployment::NodeApplication_ptr
+ get_objref (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
+
+ protected:
+ /// Create and initialize all the containers
+ virtual CORBA::Long create_all_containers (
+ const ::Deployment::ContainerImplementationInfos & container_infos
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ /// To store all created Component object.
+ // @@Gan/Jai, as we discussed before this is simply a BAD
+ //idea. These need to moved into the container.
+ // @@ Jai/Gan, how about using CCMObject_var instead of
+ //CCMObject_ptr's?
+ typedef ACE_Hash_Map_Manager_Ex<ACE_CString,
+ Components::CCMObject_ptr,
+ ACE_Hash<ACE_CString>,
+ ACE_Equal_To<ACE_CString>,
+ ACE_Null_Mutex> CCMComponent_Map;
+ typedef CCMComponent_Map::iterator Component_Iterator;
+ CCMComponent_Map component_map_;
+
+ /// Synchronize access to the object set.
+ TAO_SYNCH_MUTEX lock_;
+
+ /// Keep a list of managed Container objects.
+ Object_Set<Deployment::Container, Deployment::Container_var> container_set_;
+ /// Keep a pointer to the managing ORB serving this servant.
+ CORBA::ORB_var orb_;
+
+ /// Keep a pointer to the managing POA.
+ // @@Gan/Jai, which POA is this? Same as the component POA or a
+ // different one. My sense is that its different. Could you please
+ //document it?
+ PortableServer::POA_var poa_;
+
+ /// Cached properties
+ Deployment::Properties properties_;
+
+ /// And a reference to the NodeApplicationManager that created us.
+ ::CORBA::Object_var node_app_manager_;
+
+ /// Cache the object reference (of ourselves).
+ ::Deployment::NodeApplication_var objref_;
+ };
+}
+
+#if defined (__ACE_INLINE__)
+# include "NodeApplication_Impl.inl"
+#endif /* __ACE_INLINE__ */
+
+#include /**/ "ace/post.h"
+#endif /* NODEAPPLICATION_IMPL_H */
diff --git a/TAO/CIAO/ciao/NodeApplication_Impl.inl b/TAO/CIAO/ciao/NodeApplication_Impl.inl
new file mode 100644
index 00000000000..d0a30e2b401
--- /dev/null
+++ b/TAO/CIAO/ciao/NodeApplication_Impl.inl
@@ -0,0 +1,77 @@
+/* -*- C++ -*- */
+// $Id$
+
+ACE_INLINE
+CIAO::NodeApplication_Impl::
+NodeApplication_Impl (CORBA::ORB_ptr o,
+ PortableServer::POA_ptr p)
+
+ : orb_ (CORBA::ORB::_duplicate (o)),
+ poa_ (PortableServer::POA::_duplicate (p))
+{
+}
+
+// Access the readonly attribute
+ACE_INLINE
+Deployment::Properties *
+CIAO::NodeApplication_Impl::properties (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ Deployment::Properties * tmp;
+
+ ACE_NEW_THROW_EX (tmp,
+ Deployment::Properties (this->properties_),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (0);
+
+ return tmp;
+}
+
+ACE_INLINE
+PortableServer::POA_ptr
+CIAO::NodeApplication_Impl::_default_POA (void)
+{
+ return PortableServer::POA::_duplicate (this->poa_.in ());
+}
+
+
+ACE_INLINE
+CORBA::Object_ptr
+CIAO::NodeApplication_Impl::get_node_application_manager (
+ ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return ::CORBA::Object::_duplicate (this->node_app_manager_.in ());
+}
+
+/*
+ACE_INLINE void
+CIAO::NodeApplication_Impl::
+set_objref (Components::Deployment::ServerActivator_ptr act,
+ const Components::ConfigValues &config,
+ Components::Deployment::ComponentServer_ptr cs
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ if (!CORBA::is_nil (this->node_app_manager_.in ()) ||
+ !CORBA::is_nil (this->objref_.in ()))
+ ACE_THROW (CORBA::BAD_INV_ORDER ());
+
+ this->config_ = new Components::ConfigValues (config);
+ this->activator_ = Components::Deployment::ServerActivator::_duplicate (act);
+ this->objref_ = Components::Deployment::ComponentServer::_duplicate (cs);
+}
+*/
+
+ACE_INLINE ::Deployment::NodeApplication_ptr
+CIAO::NodeApplication_Impl::
+get_objref (ACE_ENV_SINGLE_ARG_DECL)
+{
+ if (CORBA::is_nil (this->objref_.in ()))
+ {
+ this->objref_ = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
+ }
+
+ return this->objref_.in ();
+}
diff --git a/TAO/CIAO/ciao/NodeManager.idl b/TAO/CIAO/ciao/NodeManager.idl
deleted file mode 100644
index 47651ac52bb..00000000000
--- a/TAO/CIAO/ciao/NodeManager.idl
+++ /dev/null
@@ -1,38 +0,0 @@
-// $Id$
-#ifndef NODEMANAGER_IDL
-#define NODEMANAGER_IDL
-
-#include "Deployment.idl"
-
-module Deployment {
-
- interface NodeApplicationManager;
-
- interface NodeManager {
- void joinDomain (in Domain ciao_domain,
- in TargetManager manager,
- in Logger log);
-
- void leaveDomain ();
-
- NodeApplicationManager preparePlan (in DeploymentPlan plan)
- raises (StartError, PlanError);
-
- void destroyManager (in NodeApplicationManager appManager)
- raises (StopError, InvalidReference);
-
- /// CIAO specific extension
- /// Destroy the NAM and all the associated NAs with this child_plan
- /// We can guarantee that the input DeploymentPlan is valid, since it
- /// is fetched from the cached DeploymentPlan of DAM, which has been
- /// validated before.
- void destroyPlan (in DeploymentPlan plan)
- raises (StopError);
-
- /// CIAO specific extension
- /// Get all the shared components installed in this node
- ComponentPlans get_shared_components ();
- };
-};
-
-#endif /* NODEMANAGER_IDL */
diff --git a/TAO/CIAO/ciao/Packaging_Data.idl b/TAO/CIAO/ciao/Packaging_Data.idl
index 59f8420fd16..0b1881d3288 100644
--- a/TAO/CIAO/ciao/Packaging_Data.idl
+++ b/TAO/CIAO/ciao/Packaging_Data.idl
@@ -1,8 +1,5 @@
// $Id$
-#ifndef PACKAGING_DATA_IDL
-#define PACKAGING_DATA_IDL
-
#include "Deployment_Data.idl"
module Deployment
@@ -34,7 +31,7 @@ module Deployment
};
typedef sequence < MonolithicImplementationDescription > MonolithicImplementationDescriptions;
-
+
struct PackageConfiguration;
typedef sequence < PackageConfiguration > PackageConfigurations;
@@ -103,7 +100,5 @@ module Deployment
Properties configProperty;
};
-
+
};
-
-#endif /* PACKAGING_DATA_IDL */
diff --git a/TAO/CIAO/ciao/Port_Activator.h b/TAO/CIAO/ciao/Port_Activator.h
index 5ab3adb2604..d87d0c2630f 100644
--- a/TAO/CIAO/ciao/Port_Activator.h
+++ b/TAO/CIAO/ciao/Port_Activator.h
@@ -54,7 +54,7 @@ namespace CIAO
/// Return the name of port that this activator encapulates.
const char* name (void) const;
- /// Set the name
+ /// set the name
void set_name (const char* name);
/// Activate the servant reponsible for this port.
@@ -79,7 +79,7 @@ namespace CIAO
/// Name of the port
CORBA::String_var name_;
- /// What type of port is it, a consumer or facet.
+ /// What type of port is it, a conumer or facet.
Type t_;
};
}
diff --git a/TAO/CIAO/ciao/Port_Activator_T.cpp b/TAO/CIAO/ciao/Port_Activator_T.cpp
index 6881ffc73e5..8b84e931f56 100644
--- a/TAO/CIAO/ciao/Port_Activator_T.cpp
+++ b/TAO/CIAO/ciao/Port_Activator_T.cpp
@@ -64,7 +64,7 @@ namespace CIAO
this->t_ == Port_Activator::Facet)
{
CORBA::Object_var tmp =
- this->comp_serv_->get_facet_executor (this->name_.in ());
+ this->comp_serv_->get_facet_executor (this->name_);
this->executor_ = EXEC::_narrow (tmp.in ());
}
diff --git a/TAO/CIAO/ciao/RepositoryManager.idl b/TAO/CIAO/ciao/RepositoryManager.idl
deleted file mode 100644
index f7fbe6f4d36..00000000000
--- a/TAO/CIAO/ciao/RepositoryManager.idl
+++ /dev/null
@@ -1,38 +0,0 @@
-// $Id$
-#ifndef REPOSITORY_MANAGER_IDL
-#define REPOSITORY_MANAGER_IDL
-
-#include "Packaging_Data.idl"
-#include "Deployment.idl"
-
-module Deployment {
-
- exception NameExists {
- };
-
- exception PackageError {
- string source;
- string reason;
- };
-
- interface RepositoryManager {
- void installPackage (in string installationName, in string location)
- raises (NameExists, PackageError);
- void createPackage (in string installationName,
- in PackageConfiguration package,
- in string baseLocation,
- in boolean replace)
- raises (NameExists, PackageError);
- PackageConfiguration findPackageByName (in string name)
- raises (NoSuchName);
- PackageConfiguration findPackageByUUID (in string UUID)
- raises (NoSuchName);
- ::CORBA::StringSeq findNamesByType (in string type);
- ::CORBA::StringSeq getAllNames ();
- ::CORBA::StringSeq getAllTypes ();
- void deletePackage (in string installationName)
- raises (NoSuchName);
- };
-};
-
-#endif /* REPOSITOR_MANAGER_IDL */
diff --git a/TAO/CIAO/ciao/Servant_Activator.cpp b/TAO/CIAO/ciao/Servant_Activator.cpp
index 6830454ac35..3c57a6a8e8a 100644
--- a/TAO/CIAO/ciao/Servant_Activator.cpp
+++ b/TAO/CIAO/ciao/Servant_Activator.cpp
@@ -25,9 +25,9 @@ namespace CIAO
guard,
this->mutex_);
- const size_t sz = this->slot_index_;
+ const unsigned int sz = this->slot_index_;
- for (size_t t = 0; t != sz; ++t)
+ for (unsigned int t = 0; t != sz; ++t)
{
Port_Activator *&tmp = this->pa_[t];
@@ -49,8 +49,8 @@ namespace CIAO
guard,
this->mutex_,
0);
- const size_t sz = this->slot_index_;
- for (size_t t = 0; t != sz; ++t)
+ const unsigned int sz = this->slot_index_;
+ for (unsigned int t = 0; t != sz; ++t)
{
Port_Activator *&tmp = this->pa_[t];
if (ACE_OS::strcmp (tmp->name (), str.in ()) == 0)
@@ -86,11 +86,11 @@ namespace CIAO
this->mutex_,
0);
- const size_t sz = this->slot_index_;
+ const unsigned int sz = this->slot_index_;
Port_Activator *tmp = 0;
- for (size_t t = 0; t != sz; ++t)
+ for (unsigned int t = 0; t != sz; ++t)
{
if (this->pa_.get (tmp, t) == -1)
ACE_THROW_RETURN (CORBA::OBJECT_NOT_EXIST (),
@@ -133,11 +133,11 @@ namespace CIAO
CORBA::String_var str =
PortableServer::ObjectId_to_string (oid);
- const size_t sz = this->slot_index_;
+ const unsigned int sz = this->slot_index_;
Port_Activator *tmp = 0;
- for (size_t t = 0; t != sz; ++t)
+ for (unsigned int t = 0; t != sz; ++t)
{
if (this->pa_.get (tmp, t) == -1)
{
@@ -181,10 +181,8 @@ namespace CIAO
if (CIAO::debug_level () > 9)
ACE_DEBUG ((LM_DEBUG,
- "CIAO (%P|%t) - Servant_Activator::register_port_activator"
- " with port name [%s],"
+ "CIAO (%P|%t) - Servant_Activator::register_port_activator,"
" the slot_index_ is [%d] \n",
- pa->name (),
this->slot_index_));
return true;
diff --git a/TAO/CIAO/ciao/Servant_Impl_Base.cpp b/TAO/CIAO/ciao/Servant_Impl_Base.cpp
index 4dff1298c16..4918c0cda49 100644
--- a/TAO/CIAO/ciao/Servant_Impl_Base.cpp
+++ b/TAO/CIAO/ciao/Servant_Impl_Base.cpp
@@ -6,6 +6,11 @@
namespace CIAO
{
+ Servant_Impl_Base::Servant_Impl_Base (void)
+ {
+ ACE_ASSERT (0);
+ }
+
Servant_Impl_Base::Servant_Impl_Base (Components::CCMHome_ptr home,
Home_Servant_Impl_Base *home_servant,
Session_Container * c)
@@ -79,7 +84,7 @@ namespace CIAO
CIAO::Servant_Activator *sa =
this->container_->ports_servant_activator ();
- sa->update_port_activator (facet_id.in () ACE_ENV_ARG_PARAMETER);
+ sa->update_port_activator (facet_id ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
this->container_->the_facet_cons_POA ()->deactivate_object
@@ -105,7 +110,7 @@ namespace CIAO
CIAO::Servant_Activator *sa =
this->container_->ports_servant_activator ();
- sa->update_port_activator (cons_id.in () ACE_ENV_ARG_PARAMETER);
+ sa->update_port_activator (cons_id ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
this->container_->the_facet_cons_POA ()->deactivate_object
@@ -127,11 +132,11 @@ namespace CIAO
PortableServer::ObjectId_var oid;
- this->container_->uninstall_component (ccmobjref.in (),
- oid.out ()
- ACE_ENV_ARG_PARAMETER);
+ this->container_->uninstall_component ( ccmobjref.in (),
+ oid.out ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
this->home_servant_->update_component_map (oid);
}
ACE_CATCHANY
@@ -173,9 +178,11 @@ namespace CIAO
this->get_all_receptacles (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
+ /*
::Components::ConsumerDescriptions_var consumer_desc =
this->get_all_consumers (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
+ */
::Components::EmitterDescriptions_var emitter_desc =
this->get_all_emitters (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -187,7 +194,7 @@ namespace CIAO
retv->facets (facets_desc.in ());
retv->receptacles (receptacle_desc.in ());
- retv->consumers (consumer_desc.in ());
+ // retv->consumers (consumer_desc.in ());
retv->emitters (emitter_desc.in ());
retv->publishers (publisher_desc.in ());
@@ -202,7 +209,7 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
Components::InvalidName))
{
- if (0 == name)
+ if (name == 0)
{
ACE_THROW_RETURN (Components::InvalidName (),
CORBA::Object::_nil ());
@@ -240,7 +247,7 @@ namespace CIAO
{
tmp = this->lookup_facet_description (names[i].in ());
- if (0 == tmp)
+ if (tmp == 0)
{
ACE_THROW_RETURN (Components::InvalidName (),
0);
@@ -265,15 +272,15 @@ namespace CIAO
::Components::FacetDescriptions_var retval = tmp;
- retval->length (this->facet_table_.size ());
+ retval->length (this->facet_table_.current_size ());
CORBA::ULong i = 0;
- for (FacetTable::const_iterator iter = this->facet_table_.begin ();
+ for (FacetTable::iterator iter = this->facet_table_.begin ();
iter != this->facet_table_.end ();
++iter, ++i)
{
- FacetTable::const_reference entry = *iter;
- retval[i] = entry.second;
+ FacetTable::ENTRY & entry = *iter;
+ retval[i] = entry.int_id_;
}
return retval._retn ();
@@ -286,25 +293,25 @@ namespace CIAO
)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+
::Components::ConsumerDescriptions *tmp = 0;
ACE_NEW_THROW_EX (tmp,
::Components::ConsumerDescriptions (
- this->consumer_table_.size ()),
+ this->consumer_table_.current_size ()),
CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
::Components::ConsumerDescriptions_var retval = tmp;
- retval->length (this->consumer_table_.size ());
+ retval->length (this->consumer_table_.current_size ());
CORBA::ULong i = 0;
- for (ConsumerTable::const_iterator iter = this->consumer_table_.begin ();
+ for (ConsumerTable::iterator iter = this->consumer_table_.begin ();
iter != this->consumer_table_.end ();
++iter, ++i)
{
// ACE_DEBUG ((LM_DEBUG, "EXECUTING \n"));
- ConsumerTable::const_reference entry = *iter;
- retval[i] = entry.second;
+ ConsumerTable::ENTRY & entry = *iter;
+ retval[i] = entry.int_id_;
}
return retval._retn ();
@@ -319,7 +326,7 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
Components::InvalidName))
{
- if (0 == sink_name)
+ if (sink_name == 0)
{
ACE_THROW_RETURN (Components::InvalidName (),
Components::EventConsumerBase::_nil ());
@@ -337,6 +344,18 @@ namespace CIAO
return retval;
}
+ ::Components::EventConsumerBase_ptr
+ Servant_Impl_Base::disconnect_consumer (
+ const char * /* source_name */
+ ACE_ENV_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::InvalidName,
+ Components::NoConnection))
+ {
+ ACE_THROW_RETURN (::CORBA::NO_IMPLEMENT (), 0);
+ }
+
::Components::ConsumerDescriptions *
Servant_Impl_Base::get_named_consumers (
const ::Components::NameList & names
@@ -358,7 +377,7 @@ namespace CIAO
{
tmp = this->lookup_consumer_description (names[i].in ());
- if (0 == tmp)
+ if (tmp == 0)
{
ACE_THROW_RETURN (Components::InvalidName (),
0);
@@ -371,6 +390,15 @@ namespace CIAO
}
::Components::EmitterDescriptions *
+ Servant_Impl_Base::get_all_emitters (
+ ACE_ENV_SINGLE_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
+ }
+
+ ::Components::EmitterDescriptions *
Servant_Impl_Base::get_named_emitters (
const ::Components::NameList & /* names */
ACE_ENV_ARG_DECL
@@ -382,6 +410,15 @@ namespace CIAO
}
::Components::ReceptacleDescriptions *
+ Servant_Impl_Base::get_all_receptacles (
+ ACE_ENV_SINGLE_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ ACE_THROW_RETURN (::CORBA::NO_IMPLEMENT (), 0);
+ }
+
+ ::Components::ReceptacleDescriptions *
Servant_Impl_Base::get_named_receptacles (
const ::Components::NameList & /* names */
ACE_ENV_ARG_DECL
@@ -393,6 +430,15 @@ namespace CIAO
}
::Components::PublisherDescriptions *
+ Servant_Impl_Base::get_all_publishers (
+ ACE_ENV_SINGLE_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ ACE_THROW_RETURN (::CORBA::NO_IMPLEMENT (), 0);
+ }
+
+ ::Components::PublisherDescriptions *
Servant_Impl_Base::get_named_publishers (
const ::Components::NameList & /* names */
ACE_ENV_ARG_DECL
@@ -407,84 +453,46 @@ namespace CIAO
void
Servant_Impl_Base::add_facet (const char *port_name,
- ::CORBA::Object_ptr port_ref
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC (( ::CORBA::SystemException))
+ CORBA::Object_ptr port_ref)
{
- if (0 == port_name || ::CORBA::is_nil (port_ref))
- {
- ACE_THROW ( ::CORBA::BAD_PARAM ());
- return;
- }
-
::Components::FacetDescription *fd = 0;
ACE_NEW (fd,
- ::OBV_Components::FacetDescription);
+ OBV_Components::FacetDescription);
::Components::FacetDescription_var safe = fd;
fd->name (port_name);
fd->type_id (port_ref->_interface_repository_id ());
fd->facet_ref (port_ref);
- FacetTable::value_type entry;
- entry.first = port_name;
- entry.second = safe._retn ();
-
- ACE_WRITE_GUARD (TAO_SYNCH_MUTEX, mon, this->lock_);
-
- (void) this->facet_table_.insert (entry);
+ if (this->facet_table_.bind (port_name, fd) == 0)
+ {
+ safe._retn ();
+ }
}
CORBA::Object_ptr
Servant_Impl_Base::lookup_facet (const char *port_name)
{
- if (0 == port_name)
- {
- return CORBA::Object::_nil ();
- }
-
- ACE_READ_GUARD_RETURN (TAO_SYNCH_MUTEX,
- mon,
- this->lock_,
- CORBA::Object::_nil ());
-
- FacetTable::const_iterator iter =
- this->facet_table_.find (port_name);
+ ::Components::FacetDescription_var fd;
- if (iter == this->facet_table_.end ())
+ if (this->facet_table_.find (port_name, fd) != 0)
{
return CORBA::Object::_nil ();
}
- return CORBA::Object::_duplicate (iter->second->facet_ref ());
+ return CORBA::Object::_duplicate (fd.in ()->facet_ref ());
}
::Components::FacetDescription *
Servant_Impl_Base::lookup_facet_description (const char *port_name)
{
- if (0 == port_name)
+ ::Components::FacetDescription_var fd;
+
+ if (this->facet_table_.find (port_name, fd) != 0)
{
- /// Calling function will throw InvalidName after getting this.
return 0;
}
- ::Components::FacetDescription_var fd;
- FacetTable::const_iterator iter;
-
- {
- ACE_READ_GUARD_RETURN (TAO_SYNCH_MUTEX,
- mon,
- this->lock_,
- 0);
-
- iter = this->facet_table_.find (port_name);
-
- if (iter != this->facet_table_.end ())
- {
- fd = iter->second;
- }
- }
-
return fd._retn ();
}
@@ -492,59 +500,35 @@ namespace CIAO
Servant_Impl_Base::add_consumer (
const char *port_name,
::Components::EventConsumerBase_ptr port_ref
- ACE_ENV_ARG_DECL
)
- ACE_THROW_SPEC (( ::CORBA::SystemException))
{
- if (0 == port_name || ::CORBA::is_nil (port_ref))
- {
- ACE_THROW ( ::CORBA::BAD_PARAM ());
- return;
- }
-
::Components::ConsumerDescription *cd = 0;
ACE_NEW (cd,
- ::OBV_Components::ConsumerDescription);
+ OBV_Components::ConsumerDescription);
::Components::ConsumerDescription_var safe = cd;
cd->name (port_name);
cd->type_id (port_ref->_interface_repository_id ());
cd->consumer (port_ref);
- ConsumerTable::value_type entry;
- entry.first = port_name;
- entry.second = safe._retn ();
-
- ACE_WRITE_GUARD (TAO_SYNCH_MUTEX, mon, this->lock_);
-
- (void) this->consumer_table_.insert (entry);
+ if (this->consumer_table_.bind (port_name, cd) == 0)
+ {
+ safe._retn ();
+ }
}
::Components::EventConsumerBase_ptr
Servant_Impl_Base::lookup_consumer (const char *port_name)
{
- if (0 == port_name)
- {
- return ::Components::EventConsumerBase::_nil ();
- }
-
- ACE_READ_GUARD_RETURN (TAO_SYNCH_MUTEX,
- mon,
- this->lock_,
- ::Components::EventConsumerBase::_nil ());
-
- ConsumerTable::const_iterator iter =
- this->consumer_table_.find (port_name);
+ ::Components::ConsumerDescription_var cd;
- if (iter == this->consumer_table_.end ())
+ if (this->consumer_table_.find (port_name, cd) != 0)
{
return ::Components::EventConsumerBase::_nil ();
}
return
- ::Components::EventConsumerBase::_duplicate (
- iter->second->consumer ()
- );
+ ::Components::EventConsumerBase::_duplicate (cd.in ()->consumer ());
}
::Components::ConsumerDescription *
@@ -552,33 +536,17 @@ namespace CIAO
const char *port_name
)
{
- if (0 == port_name)
+ ::Components::ConsumerDescription_var cd;
+
+ if (this->consumer_table_.find (port_name, cd) != 0)
{
- /// Calling function will throw InvalidName after getting this.
return 0;
}
- ::Components::ConsumerDescription_var cd;
- ConsumerTable::const_iterator iter;
-
- {
- ACE_READ_GUARD_RETURN (TAO_SYNCH_MUTEX,
- mon,
- this->lock_,
- 0);
-
- iter = this->consumer_table_.find (port_name);
-
- if (iter != this->consumer_table_.end ())
- {
- cd = iter->second;
- }
- }
-
return cd._retn ();
}
-
- ::Components::StandardConfigurator_ptr
+
+ ::Components::StandardConfigurator_ptr
Servant_Impl_Base::get_standard_configurator (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -605,4 +573,3 @@ namespace CIAO
PortableServer::POA::_duplicate (container_->the_POA ());
}
}
-
diff --git a/TAO/CIAO/ciao/Servant_Impl_Base.h b/TAO/CIAO/ciao/Servant_Impl_Base.h
index da5603f98d2..4a32b5e8e57 100644
--- a/TAO/CIAO/ciao/Servant_Impl_Base.h
+++ b/TAO/CIAO/ciao/Servant_Impl_Base.h
@@ -19,15 +19,12 @@
#include /**/ "ace/pre.h"
-#include "ace/Array_Map.h"
+#include "ace/Hash_Map_Manager_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Active_Map_Manager_T.h"
-#include "ace/Thread_Mutex.h"
-
#include "CCM_EventC.h"
#include "CIAO_Server_Export.h"
#include "CCM_ComponentS.h"
@@ -51,7 +48,9 @@ namespace CIAO
: public virtual POA_Components::CCMObject
{
public:
- Servant_Impl_Base (Components::CCMHome_ptr home,
+ explicit Servant_Impl_Base (void);
+
+ Servant_Impl_Base (Components::CCMHome_ptr home,
Home_Servant_Impl_Base *home_servant,
Session_Container * c);
@@ -108,11 +107,11 @@ namespace CIAO
get_all_facets (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual ::Components::ConsumerDescriptions *
get_all_consumers (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
-
+
virtual ::Components::EventConsumerBase_ptr
get_consumer (const char *sink_name
@@ -120,6 +119,13 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
Components::InvalidName));
+ virtual ::Components::EventConsumerBase_ptr
+ disconnect_consumer (const char *source_name
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ Components::InvalidName,
+ Components::NoConnection));
+
virtual ::Components::ConsumerDescriptions *
get_named_consumers (const ::Components::NameList & names
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
@@ -127,18 +133,30 @@ namespace CIAO
Components::InvalidName));
virtual ::Components::EmitterDescriptions *
- get_named_emitters (const ::Components::NameList & names
+ get_all_emitters (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual ::Components::EmitterDescriptions *
+ get_named_emitters (const ::Components::NameList & /* names */
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::InvalidName));
virtual ::Components::ReceptacleDescriptions *
- get_named_receptacles (const ::Components::NameList & names
+ get_all_receptacles (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual ::Components::ReceptacleDescriptions *
+ get_named_receptacles (const ::Components::NameList & /* names */
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::InvalidName));
virtual ::Components::PublisherDescriptions *
+ get_all_publishers (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual ::Components::PublisherDescriptions *
get_named_publishers (const ::Components::NameList & names
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
@@ -149,7 +167,7 @@ namespace CIAO
ACE_ENV_ARG_DECL) = 0;
// Creates and returns the StandardConfigurator for the component.
- virtual ::Components::StandardConfigurator_ptr
+ virtual ::Components::StandardConfigurator_ptr
get_standard_configurator (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -162,9 +180,7 @@ namespace CIAO
protected:
void add_facet (const char *port_name,
- ::CORBA::Object_ptr port_ref
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC (( ::CORBA::SystemException));
+ CORBA::Object_ptr port_ref);
CORBA::Object_ptr lookup_facet (const char *port_name);
@@ -173,9 +189,7 @@ namespace CIAO
);
void add_consumer (const char *port_name,
- ::Components::EventConsumerBase_ptr port_ref
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC (( ::CORBA::SystemException));
+ ::Components::EventConsumerBase_ptr port_ref);
::Components::EventConsumerBase_ptr lookup_consumer (
const char *port_name
@@ -184,53 +198,20 @@ namespace CIAO
::Components::ConsumerDescription *lookup_consumer_description (
const char *port_name
);
-
- /// Called from generated servant class to help with
- /// get_all_*() methods.
-
- template<typename T_var>
- static void describe_simplex_receptacle (
- const char *port_name,
- const char *port_type_repo_id,
- T_var &connection,
- ::Components::ReceptacleDescriptions_var &descriptions,
- CORBA::ULong slot
- );
-
- template<typename T_var>
- static void describe_multiplex_receptacle (
- const char *port_name,
- const char *port_type_repo_id,
- ACE_Active_Map_Manager<T_var> &objrefs,
- ::Components::ReceptacleDescriptions_var &descriptions,
- CORBA::ULong slot
- );
-
- template<typename T_var>
- static void describe_pub_event_source (
- const char *port_name,
- const char *port_type_repo_id,
- ACE_Active_Map_Manager<T_var> &consumers,
- ::Components::PublisherDescriptions_var &descriptions,
- CORBA::ULong slot
- );
-
- template<typename T_var>
- static void describe_emit_event_source (
- const char *port_name,
- const char *port_type_repo_id,
- T_var &consumer_ref,
- ::Components::EmitterDescriptions_var &descriptions,
- CORBA::ULong slot
- );
-
+
protected:
- typedef ACE_Array_Map<ACE_CString,
- ::Components::FacetDescription_var>
+ typedef ACE_Hash_Map_Manager_Ex<const char *,
+ ::Components::FacetDescription_var,
+ ACE_Hash<const char *>,
+ ACE_Equal_To<const char *>,
+ ACE_Null_Mutex>
FacetTable;
- typedef ACE_Array_Map<ACE_CString,
- ::Components::ConsumerDescription_var>
+ typedef ACE_Hash_Map_Manager_Ex<const char *,
+ ::Components::ConsumerDescription_var,
+ ACE_Hash<const char *>,
+ ACE_Equal_To<const char *>,
+ ACE_Null_Mutex>
ConsumerTable;
FacetTable facet_table_;
@@ -238,24 +219,9 @@ namespace CIAO
Components::CCMHome_var home_;
Home_Servant_Impl_Base *home_servant_;
Session_Container * container_;
- private:
- /// Not allowed to be used
- Servant_Impl_Base (void);
-
- private:
- /// For internal locking of table reads and writes.
- TAO_SYNCH_MUTEX lock_;
};
}
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "Servant_Impl_Utils_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("Servant_Impl_Utils_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
#include /**/ "ace/post.h"
#endif /* CIAO_SERVANT_IMPL_T_H */
diff --git a/TAO/CIAO/ciao/Servant_Impl_T.cpp b/TAO/CIAO/ciao/Servant_Impl_T.cpp
index 4d1d15b4823..e0fa17715b1 100644
--- a/TAO/CIAO/ciao/Servant_Impl_T.cpp
+++ b/TAO/CIAO/ciao/Servant_Impl_T.cpp
@@ -18,9 +18,9 @@ namespace CIAO
Session_Container * c
)
: Servant_Impl_Base (home, home_servant, c),
- activated_ (false),
- pre_activated_ (false),
- post_activated_ (false),
+ activated_ (0),
+ pre_activated_ (0),
+ post_activated_ (0),
executor_ (EXEC::_duplicate (exe))
{
}
diff --git a/TAO/CIAO/ciao/Servant_Impl_T.h b/TAO/CIAO/ciao/Servant_Impl_T.h
index c4151d37f10..b4da0013448 100644
--- a/TAO/CIAO/ciao/Servant_Impl_T.h
+++ b/TAO/CIAO/ciao/Servant_Impl_T.h
@@ -105,10 +105,8 @@ namespace CIAO
CORBA::Boolean pre_activated_;
CORBA::Boolean post_activated_;
- /// Initialized in this constructor.
EXEC_VAR executor_;
- /// Initialized in the derived, generated servant constructor.
CONTEXT * context_;
};
}
diff --git a/TAO/CIAO/ciao/Servant_Impl_Utils_T.cpp b/TAO/CIAO/ciao/Servant_Impl_Utils_T.cpp
deleted file mode 100644
index 5d75ef51fd3..00000000000
--- a/TAO/CIAO/ciao/Servant_Impl_Utils_T.cpp
+++ /dev/null
@@ -1,143 +0,0 @@
-// $Id$
-
-#ifndef CIAO_SERVANT_IMPL_UTILS_T_C
-#define CIAO_SERVANT_IMPL_UTILS_T_C
-
-#include "Servant_Impl_Base.h"
-#include "ciao/Cookies.h"
-
-namespace CIAO
-{
- template<typename T_var>
- void
- Servant_Impl_Base::describe_simplex_receptacle (
- const char *port_name,
- const char *port_type_repo_id,
- T_var &connection,
- ::Components::ReceptacleDescriptions_var &descriptions,
- CORBA::ULong slot
- )
- {
- ::Components::ReceptacleDescription *elem = 0;
- ACE_NEW (elem,
- ::OBV_Components::ReceptacleDescription);
- ::Components::ReceptacleDescription_var safe_elem = elem;
-
- elem->name (port_name);
- elem->type_id (port_type_repo_id);
- elem->is_multiple (false);
- elem->connections ().length (1UL);
- elem->connections ()[0UL]->ck (0);
-
- // Valuetype 'set' call increments the reference count.
- elem->connections ()[0UL]->objref (connection.in ());
-
- descriptions[slot] = safe_elem._retn ();
- }
-
- template<typename T_var>
- void
- Servant_Impl_Base::describe_multiplex_receptacle (
- const char *port_name,
- const char *port_type_repo_id,
- ACE_Active_Map_Manager<T_var> &objrefs,
- ::Components::ReceptacleDescriptions_var &descriptions,
- CORBA::ULong slot
- )
- {
- ::Components::ReceptacleDescription *elem = 0;
- ACE_NEW (elem,
- ::OBV_Components::ReceptacleDescription);
- ::Components::ReceptacleDescription_var safe_elem = elem;
-
- elem->name (port_name);
- elem->type_id (port_type_repo_id);
- elem->is_multiple (true);
- elem->connections ().length (objrefs.current_size ());
-
- CORBA::ULong map_slot = 0UL;
-
- for (typename ACE_Active_Map_Manager<T_var>::CONST_ITERATOR iter (
- objrefs
- );
- 0 == iter.done ();
- iter.advance (), ++map_slot)
- {
- ::Components::Cookie *cookie_from_key = 0;
- ACE_NEW (cookie_from_key,
- ::CIAO::Map_Key_Cookie ((*iter).ext_id_));
-
- // Both valuetype 'set' calls increment the reference count.
- elem->connections ()[map_slot]->ck (cookie_from_key);
- CORBA::remove_ref (cookie_from_key);
- elem->connections ()[map_slot]->objref ((*iter).int_id_.in ());
- }
-
- descriptions[slot] = safe_elem._retn ();
- }
-
- template<typename T_var>
- void
- Servant_Impl_Base::describe_pub_event_source (
- const char *port_name,
- const char *port_type_repo_id,
- ACE_Active_Map_Manager<T_var> &consumers,
- ::Components::PublisherDescriptions_var &descriptions,
- CORBA::ULong slot
- )
- {
- ::Components::PublisherDescription *elem = 0;
- ACE_NEW (elem,
- ::OBV_Components::PublisherDescription);
- ::Components::PublisherDescription_var safe_elem = elem;
-
- elem->name (port_name);
- elem->type_id (port_type_repo_id);
-
- CORBA::ULong map_slot = 0UL;
-
- for (typename ACE_Active_Map_Manager<T_var>::CONST_ITERATOR iter (
- consumers
- );
- 0 == iter.done ();
- iter.advance (), ++map_slot)
- {
- ::Components::Cookie *cookie_from_key = 0;
- ACE_NEW (cookie_from_key,
- ::CIAO::Map_Key_Cookie ((*iter).ext_id_));
-
- // Both valuetype 'set' calls increment the reference count.
- elem->consumer ()[map_slot]->ck (cookie_from_key);
- CORBA::remove_ref (cookie_from_key);
- elem->consumer ()[map_slot]->consumer ((*iter).int_id_.in ());
- }
-
- descriptions[slot] = safe_elem._retn ();
- }
-
- template<typename T_var>
- void
- Servant_Impl_Base::describe_emit_event_source (
- const char *port_name,
- const char *port_type_repo_id,
- T_var &consumer_ref,
- ::Components::EmitterDescriptions_var &descriptions,
- CORBA::ULong slot
- )
- {
- ::Components::EmitterDescription *elem = 0;
- ACE_NEW (elem,
- ::OBV_Components::EmitterDescription);
- ::Components::EmitterDescription_var safe_elem = elem;
-
- elem->name (port_name);
- elem->type_id (port_type_repo_id);
-
- // Valuetype 'set' call increments the reference count.
- elem->consumer (consumer_ref.in ());
-
- descriptions[slot] = safe_elem._retn ();
- }
-}
-
-#endif /* CIAO_SERVANT_IMPL_T_C */
diff --git a/TAO/CIAO/ciao/ServerResources.idl b/TAO/CIAO/ciao/ServerResources.idl
index 2269357ce38..726bb1f8a12 100644
--- a/TAO/CIAO/ciao/ServerResources.idl
+++ b/TAO/CIAO/ciao/ServerResources.idl
@@ -1,12 +1,20 @@
// $Id$
-/**
- * @file ServerResources.idl
- *
- * @brief A collection of IDL data types for
- *
- * @author Nanbor Wang
- */
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/Param_Test
+//
+// = FILENAME
+// ServerResrouces.idl
+//
+// = DESCRIPTION
+// A collection of IDL data types for
+//
+// = AUTHORS
+// Nanbor Wang
+//
+// ============================================================================
#if !defined (CIAO_SERVERRESOURCES_IDL)
#define CIAO_SERVERRESOURCES_IDL
@@ -68,8 +76,6 @@ module CIAO
unsigned long max_request_buffer_size;
};
- typedef sequence<ORS_Threadpool> ORS_ThreadpoolSeq;
-
/**
* @brief Defines the configuration of a threadpool lane. We need
* to redefine it here to avoid dependency to RTCORBA library.
@@ -102,8 +108,6 @@ module CIAO
unsigned long max_request_buffer_size;
};
- typedef sequence<ORS_ThreadpoolWithLanes> ORS_ThreadpoolWithLanesSeq;
-
/**
* @brief Define a priority band for BandedConnection policies.
*/
@@ -129,23 +133,21 @@ module CIAO
ORS_PriorityBands bands;
};
- typedef sequence<ORS_ConnectionBands> ORS_ConnectionBandsSeq;
-
/**
* @brief Collection of resources managed by the NodeApplication
* ORB.
*/
struct ORBResource
{
- ORS_ThreadpoolSeq threadpool_list;
+ sequence<ORS_Threadpool> threadpool_list;
- ORS_ThreadpoolWithLanesSeq threadpool_with_lanes_list;
+ sequence<ORS_ThreadpoolWithLanes> threadpool_with_lanes_list;
- ORS_ConnectionBandsSeq connection_bands_list;
+ sequence<ORS_ConnectionBands> connection_bands_list;
};
typedef sequence<ORBResource, 1> ORBResources;
-
+
// =================================================================
/**
@@ -216,13 +218,13 @@ module CIAO
* @brief A list of all policy sets.
*/
typedef sequence<PolicySet> PolicySets;
-
+
struct ORBConfigs
{
ORBResources orb_resources;
PolicySets policy_set;
};
-
+
struct ServerResource
{
string Id;
@@ -230,7 +232,7 @@ module CIAO
CommandlineArgs args;
SvcconfURI svcconf;
ORBConfigs orb_config;
- };
+ };
};
};
diff --git a/TAO/CIAO/ciao/Server_init.cpp b/TAO/CIAO/ciao/Server_init.cpp
index 27c4d035cdc..43eaabcd598 100644
--- a/TAO/CIAO/ciao/Server_init.cpp
+++ b/TAO/CIAO/ciao/Server_init.cpp
@@ -6,235 +6,52 @@
#include "Cookies.h"
#include "ace/OS_NS_stdio.h"
-namespace CIAO
-{
- int
- Server_init (CORBA::ORB_ptr o)
- {
- CIAO_REGISTER_VALUE_FACTORY (o, CIAO::Map_Key_Cookie_init,
- Components::Cookie);
- CIAO_REGISTER_VALUE_FACTORY (o, CIAO::Map_Key_Cookie_init,
- CIAO::Cookie);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::PortDescription_init,
- Components::PortDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::FacetDescription_init,
- Components::FacetDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::ConnectionDescription_init,
- Components::ConnectionDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::ReceptacleDescription_init,
- Components::ReceptacleDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::ConsumerDescription_init,
- Components::ConsumerDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::EmitterDescription_init,
- Components::EmitterDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::SubscriberDescription_init,
- Components::SubscriberDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::PublisherDescription_init,
- Components::PublisherDescription);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::ConfigValue_init,
- Components::ConfigValue);
- CIAO_REGISTER_VALUE_FACTORY (o, Components::ComponentPortDescription_init,
- Components::ComponentPortDescription);
- return 0;
- }
-
- namespace Utility
- {
- int write_IOR (const char *pathname,
- const char *ior)
- {
- FILE* ior_output_file_ =
- ACE_OS::fopen (pathname, "w");
-
- if (ior_output_file_)
- {
- ACE_OS::fprintf (ior_output_file_,
- "%s",
- ior);
- ACE_OS::fclose (ior_output_file_);
- return 0;
- }
-
- return -1;
- }
-
- // --------------------------------------------------------------
- // Implementation of NameUtility class
- // --------------------------------------------------------------
-
- void NameUtility::CreateContextPath (const CosNaming::NamingContextExt_ptr nc,
- const CosNaming::Name& name)
- {
- bool isNotFound = false;
- CORBA::ULong lengthMissing = 0;
- CORBA::ULong OriginalLength = name.length();
- CosNaming::Name tmpName;
-
- CosNaming::NamingContext_var tmpCtxVar;
- ACE_TRY
- {
- tmpCtxVar = nc->bind_new_context(name);
- ACE_DEBUG ((LM_DEBUG, "Bound Context.\n\n"));
- }
- ACE_CATCH (CosNaming::NamingContext::AlreadyBound, ex)
- {
- ACE_DEBUG ((LM_DEBUG, "Context Already Bound.\n\n"));
- }
- ACE_CATCH (CosNaming::NamingContext::NotFound, nf)
- {
- ACE_DEBUG ((LM_DEBUG, "Context not found.\n\n"));
- isNotFound = true;
- lengthMissing = nf.rest_of_name.length();
- }
- ACE_ENDTRY;
-
- if (lengthMissing == name.length())
- {
- ACE_DEBUG ((LM_ERROR, "Null name length.\n\n"));
- }
-
- if (isNotFound)
- {
- for (CORBA::ULong l = OriginalLength-lengthMissing;
- l < OriginalLength;
- l++)
- {
- tmpName.length(l+1);
- for (CORBA::ULong i=0; i <= l; i++)
- {
- tmpName[i] = name[i];
-
- CORBA::String_var newSCName = nc->to_string(tmpName);
- ACE_DEBUG ((LM_DEBUG, "What's left of the name:%s\n",
- newSCName.in ()));
- }
-
- tmpCtxVar = nc->bind_new_context(tmpName);
- ACE_DEBUG ((LM_DEBUG, "Bound New Context.\n"));
- }
- }
- }
-
- //---------------------------------------------------------------------------------------------
- void NameUtility::BindObjectPath (const CosNaming::NamingContextExt_ptr nc,
- const CosNaming::Name& name,
- const CORBA::Object_var obj)
- {
- CosNaming::Name tmpName;
- CORBA::String_var newSCName = nc->to_string(name);
- ACE_DEBUG ((LM_DEBUG, "The name is: %s\n", newSCName.in ()));
-
- ACE_TRY
- {
- nc->rebind(name, obj);
- }
-
- ACE_CATCH (CosNaming::NamingContext::NotFound, ex )
- {
- ACE_DEBUG ((LM_DEBUG, "Name not found, doing new bind.\n"));
- nc->bind(name, obj);
- }
- ACE_ENDTRY;
- }
-
- //---------------------------------------------------------------------------------------------
- CosNaming::BindingList *
- NameUtility::listBindings (const CosNaming::NamingContext_ptr nc,
- const CosNaming::Name& name,
- CORBA::ULong max_list_size)
- {
- CosNaming::BindingList_var basicListV;
- CosNaming::BindingIterator_var bIterV;
-
- CORBA::Object_var objV;
- CosNaming::NamingContext_var tmpContextV;
-
- if (name.length()==0)
- {
- tmpContextV = CosNaming::NamingContext::_duplicate(nc);
- }
- else
- {
- objV = nc->resolve(name);
- tmpContextV = CosNaming::NamingContext::_narrow(objV.in ());
- }
- if (CORBA::is_nil(tmpContextV.in ()))
- {
- ACE_DEBUG ((LM_ERROR, "listBindings: Nil context.\n"));
- return 0;
- }
-
- tmpContextV->list(max_list_size, basicListV.out(), bIterV.out());
-
- CORBA::Long max_remaining = max_list_size - basicListV->length();
- CORBA::Boolean moreBindings = !CORBA::is_nil(bIterV.in ());
-
- if (moreBindings)
- {
- while (moreBindings && (max_remaining > 0) )
- {
- CosNaming::BindingList_var tmpListV;
-
- moreBindings = bIterV->next_n(max_remaining, tmpListV.out());
-
- //Append 'tmpListV' to 'basicListV'
- CORBA::ULong basicListLen = basicListV->length();
- basicListV->length(basicListLen+tmpListV->length());
- for (CORBA::ULong i=0; i < tmpListV->length(); i++)
- {
- (*basicListV)[i+basicListLen] = (*tmpListV)[i];
- }
-
- //Re-calculate 'max_remaining'
- max_remaining = max_list_size - basicListV->length();
- }
- bIterV->destroy();
- }
-
- return basicListV._retn();
- }
+int
+CIAO::Server_init (CORBA::ORB_ptr o)
+{
+ CIAO_REGISTER_VALUE_FACTORY (o, CIAO::Map_Key_Cookie_init,
+ Components::Cookie);
+ CIAO_REGISTER_VALUE_FACTORY (o, CIAO::Map_Key_Cookie_init,
+ CIAO::Cookie);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::PortDescription_init,
+ Components::PortDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::FacetDescription_init,
+ Components::FacetDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::ConnectionDescription_init,
+ Components::ConnectionDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::ReceptacleDescription_init,
+ Components::ReceptacleDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::ConsumerDescription_init,
+ Components::ConsumerDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::EmitterDescription_init,
+ Components::EmitterDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::SubscriberDescription_init,
+ Components::SubscriberDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::PublisherDescription_init,
+ Components::PublisherDescription);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::ConfigValue_init,
+ Components::ConfigValue);
+ CIAO_REGISTER_VALUE_FACTORY (o, Components::ComponentPortDescription_init,
+ Components::ComponentPortDescription);
+ return 0;
+}
+
+int
+CIAO::Utility::write_IOR (const char *pathname,
+ const char *ior)
+{
+ FILE* ior_output_file_ =
+ ACE_OS::fopen (pathname, "w");
- //---------------------------------------------------------------------------------------------
- void
- NameUtility::recursiveUnbind (const CosNaming::NamingContext_ptr nc,
- const CosNaming::Name& name)
+ if (ior_output_file_)
{
- CORBA::Object_var objV;
- CosNaming::NamingContext_var tmpContextV;
-
- objV = nc->resolve(name);
- tmpContextV = CosNaming::NamingContext::_narrow(objV.in ());
- if (CORBA::is_nil(tmpContextV.in ()))
- {
- ACE_DEBUG ((LM_ERROR, "recursiveUnbind: Nil context reference.\n"));
- return;
- }
-
- CosNaming::BindingList_var blV;
- CosNaming::Name tmpName;
- tmpName.length(0);
-
- blV = NameUtility::listBindings(tmpContextV.in(),
- tmpName,
- 10000); // 'max_list_size'
-
- for (CORBA::ULong i=0; i<blV->length(); i++)
- {
- tmpName = (*blV)[i].binding_name;
-
- if ((*blV)[i].binding_type==CosNaming::nobject)
- {
- tmpContextV->unbind(tmpName);
- }
- else if ( (*blV)[i].binding_type==CosNaming::ncontext)
- {
- NameUtility::recursiveUnbind(tmpContextV.in(), tmpName);
- }
- }
- nc->unbind(name);
- tmpContextV->destroy();
+ ACE_OS::fprintf (ior_output_file_,
+ "%s",
+ ior);
+ ACE_OS::fclose (ior_output_file_);
+ return 0;
}
- } /* namespace Utility */
-} /* namespace CIAO */
+ return -1;
+}
diff --git a/TAO/CIAO/ciao/Server_init.h b/TAO/CIAO/ciao/Server_init.h
index c5fe53ed77d..d2cbfcc04f5 100644
--- a/TAO/CIAO/ciao/Server_init.h
+++ b/TAO/CIAO/ciao/Server_init.h
@@ -7,7 +7,6 @@
* I'm also puting some utilities functions here.
*
* @author Nanbor Wang <nanbor@cs.wustl.edu>
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
*/
#ifndef CIAO_SERVER_INIT_H
@@ -15,20 +14,16 @@
#include /**/ "ace/pre.h"
#include "CIAO_Server_Export.h"
-#include "tao/Versioned_Namespace.h"
-#include <orbsvcs/CosNamingC.h>
#if !defined ACE_LACKS_PRAGMA_ONCE
#pragma once
#endif /* ! ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class ORB;
typedef ORB *ORB_ptr;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
namespace CIAO
{
@@ -48,42 +43,6 @@ namespace CIAO
/// overwritten.
CIAO_SERVER_Export int write_IOR (const char *pathname,
const char *IOR);
-
- class CIAO_SERVER_Export NameUtility
- {
- /**
- * A utility class to bind naming context. This class is contributed by
- * Dipa Suri <dipa.suri@lmco.com>.
- *
- * The concept/code are derived from
- * http://www.informit.com/articles/article.asp?p=23266&seqNum=6
- */
-
- public:
- /// For each 'NameComponent' in 'name', create a corresponding 'NamingContext'.
- static void CreateContextPath (const CosNaming::NamingContextExt_ptr,
- const CosNaming::Name &);
-
- /// For the first [0, length-2] NameComponents of 'name', create a
- /// corresponding 'NamingContext'.
- /// For the length-1 NameComponent of 'name', bind it to the object
- /// reference 'obj'.
- static void BindObjectPath (const CosNaming::NamingContextExt_ptr,
- const CosNaming::Name&,
- const CORBA::Object_var);
-
- /// Get a list of all bindings under the given context, up to
- /// max_list_size.
- static CosNaming::BindingList * listBindings (const CosNaming::NamingContext_ptr,
- const CosNaming::Name&,
- CORBA::ULong);
-
- /// Recursively unbind all objects and contexts below the given name
- /// context, given the initial context nc.
- /// Assumes a tree shape to service (not cyclic)
- static void recursiveUnbind (const CosNaming::NamingContext_ptr,
- const CosNaming::Name&);
- };
}
}
diff --git a/TAO/CIAO/ciao/StandardConfigurator_Impl.h b/TAO/CIAO/ciao/StandardConfigurator_Impl.h
index a743c4d231f..d7184c74647 100644
--- a/TAO/CIAO/ciao/StandardConfigurator_Impl.h
+++ b/TAO/CIAO/ciao/StandardConfigurator_Impl.h
@@ -51,6 +51,7 @@ namespace CIAO
/// Destructor
virtual ~StandardConfigurator_Impl (void);
+
/// This method will call set_attributes on the component that is
/// being configured, i.e, the template method from
/// StandardConfigurator interface.
diff --git a/TAO/CIAO/ciao/Swapping_Container.cpp b/TAO/CIAO/ciao/Swapping_Container.cpp
index d7539ed21f2..643454b16db 100644
--- a/TAO/CIAO/ciao/Swapping_Container.cpp
+++ b/TAO/CIAO/ciao/Swapping_Container.cpp
@@ -13,7 +13,7 @@
namespace CIAO
{
- ACE_Atomic_Op <ACE_SYNCH_MUTEX, unsigned long>
+ ACE_Atomic_Op <ACE_SYNCH_MUTEX, long>
Swapping_Container::serial_number_ (0);
Swapping_Container::Swapping_Container (CORBA::ORB_ptr o,
diff --git a/TAO/CIAO/ciao/Swapping_Container.h b/TAO/CIAO/ciao/Swapping_Container.h
index 99be4aa474f..9f107cd1b46 100644
--- a/TAO/CIAO/ciao/Swapping_Container.h
+++ b/TAO/CIAO/ciao/Swapping_Container.h
@@ -96,11 +96,10 @@ namespace CIAO
void create_connections_POA (PortableServer::POA_ptr root
ACE_ENV_ARG_DECL);
protected:
- unsigned long number_;
+ long number_;
- /// Static variable to store the highest number we have given out until
- /// now
- static ACE_Atomic_Op <ACE_SYNCH_MUTEX, unsigned long> serial_number_;
+ // @@ Jai, why should this be static?
+ static ACE_Atomic_Op <ACE_SYNCH_MUTEX, long> serial_number_;
Dynamic_Component_Activator *dsa_;
diff --git a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.cpp b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.cpp
index d222e722818..9f799ae08aa 100644
--- a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.cpp
+++ b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.cpp
@@ -4,7 +4,12 @@
namespace CIAO
{
- Swapping_Home_Servant_Impl_Base::Swapping_Home_Servant_Impl_Base
+ Swapping_Home_Servant_Impl_Base::Swapping_Home_Servant_Impl_Base (void)
+ {
+ ACE_ASSERT (0);
+ }
+
+ Swapping_Home_Servant_Impl_Base::Swapping_Home_Servant_Impl_Base
(Swapping_Container * c)
: container_ (c)
{
diff --git a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.h b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.h
index 66258261e7d..ed02e055c9d 100644
--- a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.h
+++ b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_Base.h
@@ -21,7 +21,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ciao/CIAO_Server_Export.h"
+#include "CIAO_Server_Export.h"
namespace CIAO
{
@@ -41,6 +41,8 @@ namespace CIAO
: public virtual POA_Components::CCMHome
{
public:
+ explicit Swapping_Home_Servant_Impl_Base (void);
+
Swapping_Home_Servant_Impl_Base (Swapping_Container * c);
virtual ~Swapping_Home_Servant_Impl_Base (void);
@@ -56,9 +58,6 @@ namespace CIAO
protected:
Swapping_Container *container_;
- private:
- /// Not to be used
- Swapping_Home_Servant_Impl_Base (void);
};
}
diff --git a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.cpp b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.cpp
index 8df9c7554e8..22ddf32cb00 100644
--- a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.cpp
+++ b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.cpp
@@ -3,8 +3,8 @@
#ifndef CIAO_SWAPPING_SERVANT_IMPL_T_C
#define CIAO_SWAPPING_SERVANT_IMPL_T_C
-#include "ciao/Swapping_Servant_Home_Impl_T.h"
-#include "ciao/Dynamic_Component_Servant_T.h"
+#include "Swapping_Servant_Home_Impl_T.h"
+#include "Dynamic_Component_Servant_T.h"
namespace CIAO
{
@@ -105,7 +105,7 @@ namespace CIAO
PortableServer::string_to_ObjectId (this->obj_id_);
Dynamic_Component_Servant_Base *servant = 0;
- if (this->dynamic_servant_map_.find (oid.in (), servant) == 0)
+ if (this->dynamic_servant_map_.find (oid, servant) == 0)
{
servant->destroy (oid);
}
@@ -230,7 +230,7 @@ namespace CIAO
this->container_->add_servant_map (oid, svt ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (COMP::_nil ());
- this->dynamic_servant_map_.bind (oid.in (), svt);
+ this->dynamic_servant_map_.bind (oid, svt);
COMP_VAR ho = COMP::_narrow (objref.in ()
ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.h b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.h
index 2b5b64df889..76bc3a09f0f 100644
--- a/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.h
+++ b/TAO/CIAO/ciao/Swapping_Servant_Home_Impl_T.h
@@ -18,7 +18,7 @@
#include /**/ "ace/pre.h"
-#include "ciao/Home_Servant_Impl_Base.h"
+#include "Home_Servant_Impl_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,7 +26,7 @@
#include "tao/PortableServer/Key_Adapters.h"
#include "ace/Hash_Map_Manager_T.h"
-#include "ciao/Dynamic_Component_Servant_Base.h"
+#include "Dynamic_Component_Servant_Base.h"
namespace CIAO
{
@@ -54,10 +54,9 @@ namespace CIAO
{
public:
Swapping_Home_Servant_Impl (EXEC * exe,
- Session_Container * c,
- const char* ins_name,
- const char* obj_id,
- const char* repo_id);
+ Session_Container * c,
+ const char* ins_name,
+ const char* obj_id, const char* repo_id);
virtual ~Swapping_Home_Servant_Impl (void);
diff --git a/TAO/CIAO/ciao/Target_Data.idl b/TAO/CIAO/ciao/Target_Data.idl
deleted file mode 100644
index 19c7d3ca4d0..00000000000
--- a/TAO/CIAO/ciao/Target_Data.idl
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-
-#ifndef TARGET_DATA_IDL
-#define TARGET_DATA_IDL
-
-#include "Deployment_Data.idl"
-
-module Deployment {
-
- exception ResourceNotAvailable {
- string name;
- string resourceType;
- string propertyName;
- string elementName;
- string resourceName;
- };
-
- exception PlanError {
- string name;
- string reason;
- };
-
-
- interface TargetManager {
- Domain getAllResources ();
- Domain getAvailableResources ();
- void commitResources (in DeploymentPlan plan)
- raises (ResourceNotAvailable, PlanError);
- void releaseResources (in DeploymentPlan argname);
- void updateDomain (in ::CORBA::StringSeq elements,
- in Domain domainSubset,
- in DomainUpdateKind updateKind);
- };
-};
-
-#endif /* TARGET_DATA_IDL */
diff --git a/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.cpp b/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.cpp
index b2a85351487..9a1564b7a5a 100644
--- a/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.cpp
+++ b/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.cpp
@@ -66,10 +66,10 @@ namespace CIAO
(reference ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->update_port_activator (oid.in () ACE_ENV_ARG_PARAMETER);
+ this->update_port_activator (oid ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->deactivate_facet (oid.in () ACE_ENV_ARG_PARAMETER);
+ this->deactivate_facet (oid ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
diff --git a/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.h b/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.h
index 18e5272b205..28670a296da 100644
--- a/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.h
+++ b/TAO/CIAO/ciao/Upgradeable_Context_Impl_T.h
@@ -15,25 +15,23 @@
#include /**/ "ace/pre.h"
-#include "ciao/UpgradeableContextC.h"
-#include "ciao/Context_Impl_T.h"
+#include "UpgradeableContextC.h"
+#include "Context_Impl_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class SystemException;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
namespace CIAO
{
- template <typename BASE_CTX,
- typename SVNT,
- typename COMP,
+ template <typename BASE_CTX,
+ typename SVNT,
+ typename COMP,
typename COMP_VAR>
class Upgradeable_Context_Impl : public virtual Context_Impl<
BASE_CTX, SVNT, COMP, COMP_VAR>
@@ -66,14 +64,11 @@ namespace CIAO
ACE_THROW_SPEC ((CORBA::SystemException,
::Components::InvalidName,
::Components::InvalidConnection)) = 0;
-
+
protected:
SVNT *servant_;
COMP_VAR component_;
typedef Context_Impl<BASE_CTX, SVNT, COMP, COMP_VAR> session_context;
- private:
- /// Not to be used
- Upgradeable_Context_Impl (void);
};
}
diff --git a/TAO/CIAO/ciao/Version.h b/TAO/CIAO/ciao/Version.h
index 98adcad373a..6f4d721b1c0 100644
--- a/TAO/CIAO/ciao/Version.h
+++ b/TAO/CIAO/ciao/Version.h
@@ -1,9 +1,7 @@
-// -*- C++ -*-
// $Id$
-
-// This is file was automatically generated by $ACE_ROOT/bin/make_release.
+// This is an automatically generated file.
#define CIAO_MAJOR_VERSION 0
-#define CIAO_MINOR_VERSION 5
-#define CIAO_BETA_VERSION 0
-#define CIAO_VERSION "0.5"
+#define CIAO_MINOR_VERSION 4
+#define CIAO_BETA_VERSION 7
+#define CIAO_VERSION "0.4.7"
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.cpp b/TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.cpp
deleted file mode 100644
index a4a5fbf9c90..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CIAO_EventService_Factory_impl.cpp
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- * @author George Edwards <g.edwards@vanderbilt.edu>
- */
-//=============================================================================
-
-#include "CIAO_EventService_Factory_impl.h"
-#include "ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h"
-
-namespace CIAO
-{
- EventService_Factory_impl::EventService_Factory_impl (void)
- {
- }
-
- EventService_Factory_impl::EventService_Factory_impl (
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa) :
- orb_ (CORBA::ORB::_duplicate (orb)),
- poa_ (PortableServer::POA::_duplicate (poa))
- {
- }
-
- EventService_Factory_impl::~EventService_Factory_impl (void)
- {
- }
-
- CIAO_Event_Service_ptr
- EventService_Factory_impl::create (EventServiceType type)
- {
- ACE_DEBUG ((LM_DEBUG, "CIAO::EventService_Factory_impl::create_event_service\n"));
-
- EventServiceBase * event_service = 0;
-
- switch (type)
- {
- case RTEC:
- ACE_NEW_RETURN (event_service,
- RTEventService (this->orb_.in (),
- this->poa_.in ()),
- 0);
- break;
-
- default:
- ACE_ERROR_RETURN ((LM_ERROR, "CIAO::EventService_Factory_impl::"
- "create_event_service: unsuppoted type.\n"),
- 0);
-
- }
-
- // Activate the servant
- CIAO_Event_Service_var service = event_service->_this ();
- return service._retn ();
- }
-
- int
- EventService_Factory_impl::Initializer (void)
- {
- return
- ACE_Service_Config::process_directive (
- ace_svc_desc_EventService_Factory_impl
- );
- }
-
- void EventService_Factory_impl::initialize (
- CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
- {
- this->orb_ = CORBA::ORB::_duplicate (orb);
- this->poa_ = PortableServer::POA::_duplicate (poa);
- }
-
-ACE_STATIC_SVC_DEFINE (
- EventService_Factory_impl,
- ACE_TEXT ("CIAO_EventService_Factory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (EventService_Factory_impl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0
- )
-
-ACE_FACTORY_DEFINE (CIAO_EVENTS, EventService_Factory_impl)
-
-} // namespace CIAO
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.h b/TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.h
deleted file mode 100644
index 349a48aa09a..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_EventService_Factory_impl.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CIAO_EventService_Factory_impl.h
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- * @author George Edwards <g.edwards@vanderbilt.edu>
- */
-//=============================================================================
-
-#ifndef CIAO_EVENTSERVICE_FACTORY_IMPL_H
-#define CIAO_EVENTSERVICE_FACTORY_IMPL_H
-#include /**/ "ace/pre.h"
-
-#include "tao/PortableServer/PortableServer.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "CIAO_Events_Export.h"
-#include "ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h"
-
-namespace CIAO
-{
- class CIAO_EVENTS_Export EventService_Factory_impl :
- public ACE_Service_Object
- {
- public:
- EventService_Factory_impl (void);
-
- EventService_Factory_impl (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa);
-
- virtual ~EventService_Factory_impl (void);
-
- /// A factory method which creates an CIAO_Event_Service object
- virtual CIAO_Event_Service_ptr create (EventServiceType type);
-
- virtual void initialize (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
-
- /// Used to force the initialization.
- static int Initializer (void);
-
- private:
- /// Reference to the ORB
- CORBA::ORB_var orb_;
-
- /// Reference to the Root POA
- PortableServer::POA_var poa_;
- };
-
-ACE_STATIC_SVC_DECLARE (EventService_Factory_impl)
-ACE_FACTORY_DECLARE (CIAO_EVENTS, EventService_Factory_impl)
-
-}
-
-#if defined (ACE_HAS_BROKEN_STATIC_CONSTRUCTORS)
-
-typedef int (*CIAO_Module_Initializer) (void);
-
-static CIAO_Module_Initializer
-CIAO_Requires_EventService_Initializer =
- &CIAO::EventService_Factory_impl::Initializer;
-
-#else
-
-static int
-CIAO_Requires_EventService_Initializer =
- CIAO::EventService_Factory_impl::Initializer ();
-
-#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_EVENTSERVICE_FACTORY_IMPL_H */
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events.mpc b/TAO/CIAO/ciaosvcs/Events/CIAO_Events.mpc
deleted file mode 100644
index a5a1417673e..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events.mpc
+++ /dev/null
@@ -1,20 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project (CIAO_DnC_Events) : orbsvcslib, ciao_rtevent_dnc {
-
- sharedname = CIAO_DnC_Events
- idlflags += -Wb,export_include=CIAO_Events_Export.h -Wb,export_macro=CIAO_EVENTS_Export
- dynamicflags = CIAO_EVENTS_BUILD_DLL
-
- Source_Files {
- CIAO_EventService_Factory_impl.cpp
- }
-
- Header_Files {
- CIAO_EventService_Factory_impl.h
- }
-
- IDL_Files {
- }
-}
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.cpp b/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.cpp
deleted file mode 100644
index 6c06c5c8f27..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-//=============================================================================
-/**
- * @file CIAO_EventServiceBase.cpp
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- */
-//=============================================================================
-
-#include "CIAO_EventServiceBase.h"
-
-namespace CIAO
-{
- EventServiceBase::
- EventServiceBase (void)
- {
- }
-
- EventServiceBase::~EventServiceBase (void)
- {
- }
-}
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h b/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h
deleted file mode 100644
index 90b9f872ca6..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CIAO_EventServiceBase.h
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- * @author George Edwards <g.edwards@vanderbilt.edu>
- */
-//=============================================================================
-
-#ifndef CIAO_EVENTSERVICEBASE_H
-#define CIAO_EVENTSERVICEBASE_H
-#include /**/ "ace/pre.h"
-
-#include "CIAO_EventsS.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-namespace CIAO
-{
- /**
- * @class EventServiceBase
- *
- * An abstract base servant class to implement the CIAO_Event_Service
- * interface. The derived classes will provide appropriate
- * implementations of the connect, disconnect, and push methods depending on
- * the event mechanism used.
- */
- class CIAO_EVENTS_Export EventServiceBase :
- public virtual POA_CIAO::CIAO_Event_Service
- {
- public:
- EventServiceBase (void);
-
- virtual ~EventServiceBase (void);
-
- /// A factory method for Supplier_Config objects
- virtual Supplier_Config_ptr
- create_supplier_config (void)
- ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
-
- /// A factory method for Consumer_Config objects
- virtual Consumer_Config_ptr
- create_consumer_config (void)
- ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
-
- /**
- * @fn void connect_event_supplier (Supplier_Config_ptr supplier_config)
- *
- * Connects an event supplier using the options specified by
- * @c supplier_config.
- */
- virtual void connect_event_supplier (
- Supplier_Config_ptr supplier_config
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException)) = 0;
-
- /**
- * @fn void connect_event_consumer (Consumer_Config_ptr consumer_config)
- *
- * Connects an event consumer using the options specified by
- * @c consumer_config.
- */
- virtual void connect_event_consumer (
- Consumer_Config_ptr consumer_config
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException)) = 0;
-
- /**
- * @fn void disconnect_event_supplier ()
- *
- * Disconnects the event supplier associated with this object.
- */
- virtual void disconnect_event_supplier (
- const char * consumer_id
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- Components::InvalidConnection)) = 0;
-
- /**
- * @fn void disconnect_event_consumer (CONNECTION_ID consumer_id)
- *
- * Disconnects the event consumer with UUID @c consumer_id.
- */
- virtual void disconnect_event_consumer (
- const char * consumer_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- Components::InvalidConnection)) = 0;
-
- /**
- * @fn void push_event (Components::EventBase * ev)
- *
- * Pushes event @c ev to all consumers.
- */
- virtual void push_event (
- Components::EventBase * ev
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException)) = 0;
- };
-
- class Event_Consumer_Config_Base :
- public virtual POA_CIAO::Consumer_Config
- {
- public:
- virtual void start_conjunction_group (
- ::CORBA::Long size
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException)) = 0;
-
- virtual void start_disjunction_group (
- ::CORBA::Long size
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException)) = 0;
-
- virtual void insert_source (
- const char * source_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException)) = 0;
-
- virtual void insert_type (
- ::CORBA::Long event_type
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException)) = 0;
- };
-}
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_EVENTSERVICEBASE_H */
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl b/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl
deleted file mode 100644
index bcfcca9ef93..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl
+++ /dev/null
@@ -1,69 +0,0 @@
-// $Id$
-
-/**
- * @file CIAO_Events.idl
- *
- * @author George Edwards <g.edwards@vanderbilt.edu>
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- *
- * @brief Interfaces for configuring CIAO's event mechanism.
- */
-
-#include "ciao/CCM_Event.idl"
-
-module CIAO
-{
- /// A component's UUID + port name.
- typedef string CONNECTION_ID;
-
- enum EventServiceType
- {
- DIRECT,
- EC,
- RTEC,
- NOTIFY,
- RTNOTIFY
- };
-
- interface Supplier_Config
- {
- attribute CONNECTION_ID supplier_id;
-
- readonly attribute EventServiceType service_type;
-
- void destroy ();
- };
-
- interface Consumer_Config : Supplier_Config
- {
- attribute CONNECTION_ID consumer_id;
- attribute Components::EventConsumerBase consumer;
-
- void start_conjunction_group (in long size);
-
- void start_disjunction_group (in long size);
-
- void insert_source (in CONNECTION_ID source_id);
-
- void insert_type (in long event_type);
- };
-
- interface CIAO_Event_Service : Components::EventConsumerBase
- {
- Supplier_Config create_supplier_config ();
-
- Consumer_Config create_consumer_config ();
-
- void connect_event_supplier (in Supplier_Config supplier_conf);
-
- void connect_event_consumer (in Consumer_Config consumer_conf);
-
- void disconnect_event_supplier (in CONNECTION_ID conn_id)
- raises (Components::InvalidConnection);
-
- void disconnect_event_consumer (in CONNECTION_ID conn_id)
- raises (Components::InvalidConnection);
-
- //void push_event (in Components::EventBase ev);
- };
-};
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc b/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc
deleted file mode 100644
index ef9688d0d5b..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Base.mpc
+++ /dev/null
@@ -1,26 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-
-project (CIAO_DnC_Events_Base) : orbsvcslib, ciao_client_dnc, ciao_container_dnc {
-
- sharedname = CIAO_DnC_Events_Base
- idlflags += -Wb,export_include=CIAO_Events_Export.h -Wb,export_macro=CIAO_EVENTS_Export
- dynamicflags = CIAO_EVENTS_BUILD_DLL
-
- IDL_Files {
- CIAO_Events.idl
- }
-
- Source_Files {
- CIAO_EventServiceBase.cpp
- CIAO_EventsC.cpp
- CIAO_EventsS.cpp
- }
-
- Header_Files {
- CIAO_EventsC.h
- CIAO_EventsS.h
- CIAO_EventServiceBase.h
- }
-}
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Export.h b/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Export.h
deleted file mode 100644
index 6678cef4bcc..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Base/CIAO_Events_Export.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CIAO_EVENTS
-// ------------------------------
-#ifndef CIAO_EVENTS_EXPORT_H
-#define CIAO_EVENTS_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CIAO_EVENTS_HAS_DLL)
-# define CIAO_EVENTS_HAS_DLL 1
-#endif /* ! CIAO_EVENTS_HAS_DLL */
-
-#if defined (CIAO_EVENTS_HAS_DLL) && (CIAO_EVENTS_HAS_DLL == 1)
-# if defined (CIAO_EVENTS_BUILD_DLL)
-# define CIAO_EVENTS_Export ACE_Proper_Export_Flag
-# define CIAO_EVENTS_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CIAO_EVENTS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CIAO_EVENTS_BUILD_DLL */
-# define CIAO_EVENTS_Export ACE_Proper_Import_Flag
-# define CIAO_EVENTS_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CIAO_EVENTS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CIAO_EVENTS_BUILD_DLL */
-#else /* CIAO_EVENTS_HAS_DLL == 1 */
-# define CIAO_EVENTS_Export
-# define CIAO_EVENTS_SINGLETON_DECLARATION(T)
-# define CIAO_EVENTS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CIAO_EVENTS_HAS_DLL == 1 */
-
-// Set CIAO_EVENTS_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CIAO_EVENTS_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CIAO_EVENTS_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CIAO_EVENTS_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CIAO_EVENTS_NTRACE */
-
-#if (CIAO_EVENTS_NTRACE == 1)
-# define CIAO_EVENTS_TRACE(X)
-#else /* (CIAO_EVENTS_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CIAO_EVENTS_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CIAO_EVENTS_NTRACE == 1) */
-
-#endif /* CIAO_EVENTS_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Export.h b/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Export.h
deleted file mode 100644
index 6678cef4bcc..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_Events_Export.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CIAO_EVENTS
-// ------------------------------
-#ifndef CIAO_EVENTS_EXPORT_H
-#define CIAO_EVENTS_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CIAO_EVENTS_HAS_DLL)
-# define CIAO_EVENTS_HAS_DLL 1
-#endif /* ! CIAO_EVENTS_HAS_DLL */
-
-#if defined (CIAO_EVENTS_HAS_DLL) && (CIAO_EVENTS_HAS_DLL == 1)
-# if defined (CIAO_EVENTS_BUILD_DLL)
-# define CIAO_EVENTS_Export ACE_Proper_Export_Flag
-# define CIAO_EVENTS_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CIAO_EVENTS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CIAO_EVENTS_BUILD_DLL */
-# define CIAO_EVENTS_Export ACE_Proper_Import_Flag
-# define CIAO_EVENTS_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CIAO_EVENTS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CIAO_EVENTS_BUILD_DLL */
-#else /* CIAO_EVENTS_HAS_DLL == 1 */
-# define CIAO_EVENTS_Export
-# define CIAO_EVENTS_SINGLETON_DECLARATION(T)
-# define CIAO_EVENTS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CIAO_EVENTS_HAS_DLL == 1 */
-
-// Set CIAO_EVENTS_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CIAO_EVENTS_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CIAO_EVENTS_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CIAO_EVENTS_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CIAO_EVENTS_NTRACE */
-
-#if (CIAO_EVENTS_NTRACE == 1)
-# define CIAO_EVENTS_TRACE(X)
-#else /* (CIAO_EVENTS_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CIAO_EVENTS_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CIAO_EVENTS_NTRACE == 1) */
-
-#endif /* CIAO_EVENTS_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEVENT_Export.h b/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEVENT_Export.h
deleted file mode 100644
index d79e4a4581f..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEVENT_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl CIAO_RTEVENT
-// ------------------------------
-#ifndef CIAO_RTEVENT_EXPORT_H
-#define CIAO_RTEVENT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CIAO_RTEVENT_HAS_DLL)
-# define CIAO_RTEVENT_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CIAO_RTEVENT_HAS_DLL */
-
-#if !defined (CIAO_RTEVENT_HAS_DLL)
-# define CIAO_RTEVENT_HAS_DLL 1
-#endif /* ! CIAO_RTEVENT_HAS_DLL */
-
-#if defined (CIAO_RTEVENT_HAS_DLL) && (CIAO_RTEVENT_HAS_DLL == 1)
-# if defined (CIAO_RTEVENT_BUILD_DLL)
-# define CIAO_RTEVENT_Export ACE_Proper_Export_Flag
-# define CIAO_RTEVENT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CIAO_RTEVENT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CIAO_RTEVENT_BUILD_DLL */
-# define CIAO_RTEVENT_Export ACE_Proper_Import_Flag
-# define CIAO_RTEVENT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CIAO_RTEVENT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CIAO_RTEVENT_BUILD_DLL */
-#else /* CIAO_RTEVENT_HAS_DLL == 1 */
-# define CIAO_RTEVENT_Export
-# define CIAO_RTEVENT_SINGLETON_DECLARATION(T)
-# define CIAO_RTEVENT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CIAO_RTEVENT_HAS_DLL == 1 */
-
-// Set CIAO_RTEVENT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CIAO_RTEVENT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CIAO_RTEVENT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CIAO_RTEVENT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CIAO_RTEVENT_NTRACE */
-
-#if (CIAO_RTEVENT_NTRACE == 1)
-# define CIAO_RTEVENT_TRACE(X)
-#else /* (CIAO_RTEVENT_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CIAO_RTEVENT_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CIAO_RTEVENT_NTRACE == 1) */
-
-#endif /* CIAO_RTEVENT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp b/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp
deleted file mode 100644
index e85c8f0ee4f..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.cpp
+++ /dev/null
@@ -1,624 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CIAO_RTEvent.cpp
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- * @author George Edwards <g.edwards@vanderbilt.edu>
- */
-//=============================================================================
-
-#include "CIAO_RTEvent.h"
-#include "ciao/CIAO_common.h"
-
-namespace CIAO
-{
-
- RTEventService::RTEventService (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa) :
- orb_ (CORBA::ORB::_duplicate (orb)),
- root_poa_ (PortableServer::POA::_duplicate (poa)),
- type_id_ (ACE_ES_EVENT_ANY),
- source_id_ (ACE_ES_EVENT_SOURCE_ANY)
- {
- this->create_rt_event_channel ();
- }
-
-
- RTEventService::~RTEventService (void)
- {
- }
-
-
- Supplier_Config_ptr
- RTEventService::create_supplier_config (void)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- RTEvent_Supplier_Config_impl * supplier_config = 0;
- ACE_NEW_RETURN (supplier_config,
- RTEvent_Supplier_Config_impl (this->root_poa_.in ()),
- Supplier_Config::_nil ());
- RTEvent_Supplier_Config_var return_rtec =
- supplier_config->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- return return_rtec._retn ();
- }
-
-
- Consumer_Config_ptr
- RTEventService::create_consumer_config (void)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- RTEvent_Consumer_Config_impl * consumer_config = 0;
- ACE_NEW_RETURN (consumer_config,
- RTEvent_Consumer_Config_impl (this->root_poa_.in ()),
- Consumer_Config::_nil ());
- RTEvent_Consumer_Config_var return_rtec =
- consumer_config->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- return return_rtec._retn ();
- }
-
-
- void
- RTEventService::connect_event_supplier (
- Supplier_Config_ptr supplier_config
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG, "CIAO::RTEventService::connect_event_supplier\n"));
- }
-
- RTEvent_Supplier_Config_ptr rt_config =
- RTEvent_Supplier_Config::_narrow (supplier_config
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil (rt_config))
- {
- ACE_THROW (CORBA::BAD_PARAM ());
- }
-
- ACE_Hash<ACE_CString> hasher;
- this->source_id_ = hasher (supplier_config->supplier_id (ACE_ENV_SINGLE_ARG_PARAMETER));
- ACE_CHECK;
- this->type_id_ = this->source_id_;
-
- if (CIAO::debug_level () > 11)
- {
- ACE_DEBUG ((LM_DEBUG, "connect source id: %i\n", this->source_id_));
- }
-
- RtecEventChannelAdmin::SupplierAdmin_var supplier_admin =
- this->rt_event_channel_->for_suppliers (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- this->proxy_consumer_ =
- supplier_admin->obtain_push_consumer (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Create and register supplier servant
- RTEventServiceSupplier_impl * supplier_servant = 0;
- ACE_NEW (supplier_servant,
- RTEventServiceSupplier_impl (root_poa_.in ()));
- RtecEventComm::PushSupplier_var push_supplier =
- supplier_servant->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- RtecEventChannelAdmin::SupplierQOS_var qos =
- rt_config->rt_event_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- this->proxy_consumer_->connect_push_supplier (push_supplier.in (),
- qos.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- void
- RTEventService::connect_event_consumer (
- Consumer_Config_ptr consumer_config
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG, "CIAO::RTEventService::connect_event_consumer\n"));
- }
-
- RTEvent_Consumer_Config_ptr rt_config =
- RTEvent_Consumer_Config::_narrow (consumer_config
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil (rt_config))
- {
- ACE_THROW (CORBA::BAD_PARAM ());
- }
-
- Components::EventConsumerBase_var consumer =
- consumer_config->consumer (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil (consumer.in ()))
- ACE_DEBUG ((LM_DEBUG, "nil event consumer\n"));
-
- RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin =
- this->rt_event_channel_->for_consumers (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- RtecEventChannelAdmin::ProxyPushSupplier_var proxy_supplier =
- consumer_admin->obtain_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Create and register consumer servant
- RTEventServiceConsumer_impl * consumer_servant = 0;
- ACE_NEW (consumer_servant,
- RTEventServiceConsumer_impl (
- root_poa_.in (),
- consumer.in ()));
- RtecEventComm::PushConsumer_var push_consumer =
- consumer_servant->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- //@@@
- rt_config->start_disjunction_group (1);
-
- rt_config->insert_type (ACE_ES_EVENT_ANY);
-
- RtecEventChannelAdmin::ConsumerQOS_var qos =
- rt_config->rt_event_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- proxy_supplier->connect_push_consumer (push_consumer.in (),
- qos.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_CString consumer_id =
- consumer_config->consumer_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- this->proxy_supplier_map_.bind (consumer_id.c_str (), proxy_supplier._retn ());
- }
-
- void
- RTEventService::disconnect_event_supplier (
- const char * connection_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- Components::InvalidConnection))
- {
- ACE_UNUSED_ARG (connection_id);
-
- this->proxy_consumer_->disconnect_push_consumer (
- ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // What to do with the consumers?!
- }
-
- void
- RTEventService::disconnect_event_consumer (
- const char * connection_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- Components::InvalidConnection))
- {
- RtecEventChannelAdmin::ProxyPushSupplier_var proxy_supplier;
-
- this->proxy_supplier_map_.unbind (connection_id, proxy_supplier);
-
- proxy_supplier->disconnect_push_supplier (
- ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- void
- RTEventService::push_event (
- Components::EventBase * ev
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG, "------CIAO::RTEventService::push_event------\n"));
- }
-
- RtecEventComm::EventSet events (1);
- events.length (1);
- events[0].header.source = ACE_ES_EVENT_SOURCE_ANY; //this->source_id_;
- events[0].header.type = ACE_ES_EVENT_ANY; //this->type_id_;
- events[0].data.any_value <<= ev;
-
- this->proxy_consumer_->push (events ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- void
- RTEventService::create_rt_event_channel (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG, "CIAO::EventService_Factory_impl::create_rt_event_channel\n"));
- }
-
- // @@ (GD) Anything else to do to get the svc.conf file options?
- TAO_EC_Default_Factory::init_svcs ();
-
- TAO_EC_Event_Channel_Attributes attributes (this->root_poa_.in (),
- this->root_poa_.in ());
- TAO_EC_Event_Channel * ec_servant = 0;
- ACE_NEW (ec_servant, TAO_EC_Event_Channel (attributes));
- ec_servant->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- this->rt_event_channel_ = ec_servant->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-
-
- //////////////////////////////////////////////////////////////////////
- /// Supplier Servant Implementation
- //////////////////////////////////////////////////////////////////////
-
- RTEventServiceSupplier_impl::RTEventServiceSupplier_impl (
- PortableServer::POA_ptr poa) :
- poa_ (PortableServer::POA::_duplicate (poa))
- {
- }
-
- void
- RTEventServiceSupplier_impl::disconnect_push_supplier (void)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- PortableServer::ObjectId_var oid = this->poa_->servant_to_id (this);
- this->poa_->deactivate_object (oid);
- this->_remove_ref ();
- }
-
- //////////////////////////////////////////////////////////////////////
- /// Consumer Servant Implementation
- //////////////////////////////////////////////////////////////////////
-
- RTEventServiceConsumer_impl::RTEventServiceConsumer_impl (
- PortableServer::POA_ptr poa,
- Components::EventConsumerBase_ptr consumer) :
- poa_ (PortableServer::POA::_duplicate (poa)),
- event_consumer_ (Components::EventConsumerBase::_duplicate (consumer))
- {
- }
-
- void
- RTEventServiceConsumer_impl::push (const RtecEventComm::EventSet& events)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG, "CIAO::RTEventServiceConsumer_impl::push\n"));
- }
-
- for (size_t i = 0; i < events.length (); ++i)
- {
- Components::EventBase * ev = 0;
- if (events[i].data.any_value >>= ev)
- {
- ev->_add_ref ();
- this->event_consumer_->push_event (ev
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- }
-
- }
-
- void
- RTEventServiceConsumer_impl::disconnect_push_consumer (void)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG, "CIAO::RTEventServiceConsumer_impl::disconnect_push_consumer\n"));
- }
-
- PortableServer::ObjectId_var oid = this->poa_->servant_to_id (this);
- this->poa_->deactivate_object (oid);
- this->_remove_ref ();
- }
-
-
- //////////////////////////////////////////////////////////////////////
- /// Supplier Config Implementation
- //////////////////////////////////////////////////////////////////////
-
- RTEvent_Supplier_Config_impl::RTEvent_Supplier_Config_impl (PortableServer::POA_ptr poa) :
- service_type_ (RTEC),
- poa_ (PortableServer::POA::_duplicate (poa))
- {
- }
-
- RTEvent_Supplier_Config_impl::~RTEvent_Supplier_Config_impl (void)
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG
- ((LM_DEBUG, "RTEvent_Supplier_Config_impl::~RTEvent_Supplier_Config_impl\n"));
- }
- }
-
- void
- RTEvent_Supplier_Config_impl::supplier_id (
- const char * supplier_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 11)
- {
- ACE_DEBUG ((LM_DEBUG, "supplier's id: %s\n", supplier_id));
-
- }
-
- this->supplier_id_ = supplier_id;
-
- ACE_Hash<ACE_CString> hasher;
- RtecEventComm::EventSourceID source_id =
- hasher (this->supplier_id_.c_str ());
-
- this->qos_.insert (source_id,
- source_id,
- 0,
- 1);
- }
-
- CONNECTION_ID
- RTEvent_Supplier_Config_impl::supplier_id (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- return CORBA::string_dup (this->supplier_id_.c_str ());
- }
-
- EventServiceType
- RTEvent_Supplier_Config_impl::service_type (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- return this->service_type_;
- }
-
- RtecEventChannelAdmin::SupplierQOS *
- RTEvent_Supplier_Config_impl::rt_event_qos (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- RtecEventChannelAdmin::SupplierQOS * supplier_qos = 0;
- ACE_NEW_RETURN (supplier_qos,
- RtecEventChannelAdmin::SupplierQOS (this->qos_.get_SupplierQOS ()),
- 0);
- return supplier_qos;
- }
-
- void
- RTEvent_Supplier_Config_impl::destroy (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- PortableServer::ObjectId_var oid = this->poa_->servant_to_id (this);
- this->poa_->deactivate_object (oid);
- this->_remove_ref ();
- }
-
- //////////////////////////////////////////////////////////////////////
- /// Consumer Config Implementation
- //////////////////////////////////////////////////////////////////////
-
- RTEvent_Consumer_Config_impl::RTEvent_Consumer_Config_impl (PortableServer::POA_ptr poa) :
- service_type_ (RTEC),
- poa_ (PortableServer::POA::_duplicate (poa))
- {
- }
-
- RTEvent_Consumer_Config_impl::~RTEvent_Consumer_Config_impl (void)
- {
- ACE_DEBUG
- ((LM_DEBUG, "RTEvent_Consumer_Config_impl::~RTEvent_Consumer_Config_impl\n"));
- }
-
- void
- RTEvent_Consumer_Config_impl::start_conjunction_group (
- CORBA::Long size ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- this->qos_.start_conjunction_group (size);
- }
-
- void
- RTEvent_Consumer_Config_impl::start_disjunction_group (
- CORBA::Long size
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- this->qos_.start_disjunction_group (size);
- }
-
- void
- RTEvent_Consumer_Config_impl::insert_source (
- const char * source_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
-
- ACE_Hash<ACE_CString> hasher;
- RtecEventComm::EventSourceID int_source_id =
- hasher (source_id);
-
- this->qos_.insert_source (int_source_id,
- 0);
- }
-
- void
- RTEvent_Consumer_Config_impl::insert_type (
- ::CORBA::Long event_type
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((::CORBA::SystemException))
- {
- this->qos_.insert_type (event_type,
- 0);
- }
-
- void
- RTEvent_Consumer_Config_impl::consumer_id (
- const char * consumer_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTEvent_Consumer_Config_impl::set_consumer_id:%s\n",
- consumer_id));
- }
-
- this->consumer_id_ = consumer_id;
- }
-
- void
- RTEvent_Consumer_Config_impl::supplier_id (
- const char * supplier_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG,
- "RTEvent_Consumer_Config_impl::set_supplier_id:%s\n",
- supplier_id));
- }
-
- this->supplier_id_ = supplier_id;
-
- ACE_Hash<ACE_CString> hasher;
- RtecEventComm::EventSourceID source_id =
- hasher (this->supplier_id_.c_str ());
-
- this->qos_.start_disjunction_group (1);
- this->qos_.insert (source_id,
- source_id,
- 0);
- }
-
- void
- RTEvent_Consumer_Config_impl::consumer (
- Components::EventConsumerBase_ptr consumer
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- this->consumer_ = Components::EventConsumerBase::_duplicate (consumer);
- }
-
- CONNECTION_ID
- RTEvent_Consumer_Config_impl::consumer_id (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- return CORBA::string_dup (this->consumer_id_.c_str ());
- }
-
- CONNECTION_ID
- RTEvent_Consumer_Config_impl::supplier_id (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG, "RTEvent_Consumer_Config_impl::get_supplier_id\n"));
- }
-
- return CORBA::string_dup (this->supplier_id_.c_str ());
- }
-
- EventServiceType
- RTEvent_Consumer_Config_impl::service_type (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- return this->service_type_;
- }
-
- Components::EventConsumerBase_ptr
- RTEvent_Consumer_Config_impl::consumer (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG ((LM_DEBUG, "RTEvent_Consumer_Config_impl::get_consumer\n"));
- }
-
- return Components::EventConsumerBase::_duplicate (this->consumer_.in ());
- }
-
- RtecEventChannelAdmin::ConsumerQOS *
- RTEvent_Consumer_Config_impl::rt_event_qos (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- RtecEventChannelAdmin::ConsumerQOS * consumer_qos = 0;
- ACE_NEW_RETURN (consumer_qos,
- RtecEventChannelAdmin::ConsumerQOS (this->qos_.get_ConsumerQOS ()),
- 0);
-
-
- // @@@ Hard coded
- this->qos_.start_disjunction_group (1);
- this->qos_.insert_type (ACE_ES_EVENT_ANY, 0);
-
- return consumer_qos;
- }
-
- void
- RTEvent_Consumer_Config_impl::destroy (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException))
- {
- if (CIAO::debug_level () > 10)
- {
- ACE_DEBUG
- ((LM_DEBUG, "RTEvent_Consumer_Config_impl::destroy\n"));
- }
-
- PortableServer::ObjectId_var oid = this->poa_->servant_to_id (this);
- this->poa_->deactivate_object (oid);
- this->_remove_ref ();
- }
-}
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h b/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h
deleted file mode 100644
index 0ba65234b21..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.h
+++ /dev/null
@@ -1,332 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CIAO_RTEvent.h
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- * @author George Edwards <g.edwards@vanderbilt.edu>
- */
-//=============================================================================
-
-#ifndef CIAO_RTEVENT_H
-#define CIAO_RTEVENT_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "CIAO_RTEVENT_Export.h"
-#include "ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h"
-#include "CIAO_RTEventS.h"
-
-#include "orbsvcs/orbsvcs/Event_Utilities.h"
-#include "orbsvcs/orbsvcs/Event/EC_Event_Channel.h"
-#include "orbsvcs/orbsvcs/Event/EC_Default_Factory.h"
-#include "ace/Hash_Map_Manager.h"
-
-namespace CIAO
-{
-
- /**
- * @class RTEventService
- *
- * An implementation of EventServiceBase using the RT event channel.
- *
- * @@ (GD) There should be a place where the deployment tool could
- * specify the RT Event Channel service configuration file.
- * This should be the place where the RtecEventChannel servant was
- * first time initialized.
- */
- class CIAO_RTEVENT_Export RTEventService :
- public virtual EventServiceBase
- {
- public:
-
- RTEventService (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa);
-
- virtual ~RTEventService (void);
-
- virtual Supplier_Config_ptr
- create_supplier_config (void)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual Consumer_Config_ptr
- create_consumer_config (void)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void connect_event_supplier (
- CIAO::Supplier_Config_ptr supplier_config
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- virtual void connect_event_consumer (
- CIAO::Consumer_Config_ptr consumer_config
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- virtual void
- disconnect_event_supplier (
- const char * consumer_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- Components::InvalidConnection));
-
- virtual void disconnect_event_consumer (
- const char * connection_id
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- Components::InvalidConnection));
-
- virtual void push_event (
- Components::EventBase * ev
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- private:
- // @@ (GD) This is the place where use could provide a parameter
- // which specifies the event channel service configuration file.
- void create_rt_event_channel (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- private:
-
- /// Reference to the ORB
- CORBA::ORB_var orb_;
-
- /// Reference to the Root POA
- PortableServer::POA_var root_poa_;
-
- /**
- * @var RtecEventChannelAdmin::EventChannel_var rt_event_channel_
- *
- * Reference to the RT event channel.
- */
- RtecEventChannelAdmin::EventChannel_var rt_event_channel_;
-
- /**
- * @var RtecEventComm::EventType type_id_
- *
- * The type of event.
- */
- RtecEventComm::EventType type_id_;
-
- /**
- * @var RtecEventComm::EventSourceID source_id_
- * @@@ Need to change this into a map, since multiple sources
- * could be connected to the event channel.
- *
- * The supplier id.
- */
- RtecEventComm::EventSourceID source_id_;
-
- /**
- * @var RtecEventChannelAdmin::ProxyPushConsumer_var proxy_consumer_
- *
- * The proxy consumer to which events are pushed.
- */
- RtecEventChannelAdmin::ProxyPushConsumer_var proxy_consumer_;
-
- /**
- * @var ACE_Hash_Map_Manager<> proxy_supplier_map_
- *
- * Mapping of each event sink to a proxy supplier for disconnect purposes.
- */
- ACE_Hash_Map_Manager_Ex<ACE_CString,
- RtecEventChannelAdmin::ProxyPushSupplier_ptr,
- ACE_Hash<ACE_CString>,
- ACE_Equal_To<ACE_CString>,
- ACE_Null_Mutex> proxy_supplier_map_;
-
- };
-
- /**
- * @class RTEventServiceSupplier_impl
- *
- * An implementation of the PushSupplier interface.
- */
- class RTEventServiceSupplier_impl :
- public virtual POA_RtecEventComm::PushSupplier
- {
- public:
-
- RTEventServiceSupplier_impl (
- PortableServer::POA_ptr poa);
-
- virtual void disconnect_push_supplier (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- private:
-
- PortableServer::POA_var poa_;
- };
-
- /**
- * @class RTEventServiceConsumer_impl
- *
- * An implementation of the PushConsumer interface.
- */
- class RTEventServiceConsumer_impl :
- public virtual POA_RtecEventComm::PushConsumer
- {
- public:
-
- RTEventServiceConsumer_impl (
- PortableServer::POA_ptr poa,
- Components::EventConsumerBase_ptr consumer);
-
- virtual void push (
- const RtecEventComm::EventSet& events)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- virtual void disconnect_push_consumer (
- ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((
- CORBA::SystemException));
-
- private:
-
- PortableServer::POA_var poa_;
-
- Components::EventConsumerBase_var event_consumer_;
- };
-
- /**
- * @class RTEvent_Consumer_Config_impl
- *
- * Implementation of the RTEvent_Consumer_Config IDL interface that
- * configures TAO's RT event channel. An object of this type will be returned
- * from @c CIAO::Container::create_consumer_config () when @c RTEC is
- * specified as the event service type.
- */
- class RTEvent_Consumer_Config_impl :
- public virtual POA_CIAO::RTEvent_Consumer_Config,
- public virtual Event_Consumer_Config_Base
- {
-
- public:
- RTEvent_Consumer_Config_impl (PortableServer::POA_ptr poa);
-
- virtual ~RTEvent_Consumer_Config_impl (void);
-
- virtual void start_conjunction_group (CORBA::Long size ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void start_disjunction_group (CORBA::Long size ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void insert_source (const char * source_id ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void insert_type (::CORBA::Long event_type
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((::CORBA::SystemException));
-
- virtual void consumer_id (const char * consumer_id ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CONNECTION_ID consumer_id (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void supplier_id (const char * supplier_id ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CONNECTION_ID supplier_id (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void consumer (Components::EventConsumerBase_ptr consumer ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual Components::EventConsumerBase_ptr consumer (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual EventServiceType service_type (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- //@@ (GD) There should be a place where the deployment tool could
- // set up the rt_event_qos properties for Consumer Config.
-
- virtual RtecEventChannelAdmin::ConsumerQOS * rt_event_qos (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- private:
-
- ACE_CString consumer_id_;
-
- ACE_CString supplier_id_;
-
- Components::EventConsumerBase_var consumer_;
-
- EventServiceType service_type_;
-
- ACE_ConsumerQOS_Factory qos_;
-
- PortableServer::POA_var poa_;
- };
-
- /**
- * @class RTEvent_Supplier_Config_impl
- *
- * Implementation of the RTEvent_Supplier_Config IDL interface that
- * configures TAO's RT event channel. An object of this type will be returned
- * from @c CIAO::Container::create_supplier_config () when @c RTEC is
- * specified as the event service type.
- */
- class RTEvent_Supplier_Config_impl :
- public virtual POA_CIAO::RTEvent_Supplier_Config
- {
- public:
- RTEvent_Supplier_Config_impl (PortableServer::POA_ptr poa);
-
- virtual ~RTEvent_Supplier_Config_impl (void);
-
- void supplier_id (const char * supplier_id ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- CONNECTION_ID supplier_id (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- EventServiceType service_type (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- //@@ (GD) There should be a place where the deployment tool could
- // set up the rt_event_qos properties for Supplier Config.
-
- RtecEventChannelAdmin::SupplierQOS * rt_event_qos (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- private:
- ACE_CString supplier_id_;
-
- EventServiceType service_type_;
-
- ACE_SupplierQOS_Factory qos_;
-
- PortableServer::POA_var poa_;
- };
-}
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_RTEVENT_H */
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.idl b/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.idl
deleted file mode 100644
index b51d00ec07d..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.idl
+++ /dev/null
@@ -1,38 +0,0 @@
-// $Id$
-
-/**
- * @file CIAO_RTEvent.idl
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- * @author George Edwards
- *
- * @brief Interfaces for configuring CIAO's RT event channel.
- */
-
-#include <ciaosvcs/Events/CIAO_Events_Base/CIAO_Events.idl>
-#include <orbsvcs/orbsvcs/RtecEventChannelAdmin.idl>
-
-module CIAO
-{
- interface RTEvent_Consumer_Config :
- Consumer_Config
- {
- //void start_logical_and_group (in long size);
-
- //void start_negation ();
-
- //void insert_bitmasked_value (in long source_mask,
- // in long type_mask,
- // in long source_value,
- // in long type_value);
-
- readonly attribute RtecEventChannelAdmin::ConsumerQOS rt_event_qos;
- };
-
- interface RTEvent_Supplier_Config :
- Supplier_Config
- {
- readonly attribute RtecEventChannelAdmin::SupplierQOS rt_event_qos;
- };
-
-};
diff --git a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc b/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc
deleted file mode 100644
index 457806b3ffb..00000000000
--- a/TAO/CIAO/ciaosvcs/Events/CIAO_RTEC/CIAO_RTEvent.mpc
+++ /dev/null
@@ -1,25 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project (CIAO_RTEvent) : rtevent_serv, ciao_events_base_dnc {
-
- sharedname = CIAO_RTEvent
- idlflags += -Wb,export_include=CIAO_RTEVENT_Export.h -Wb,export_macro=CIAO_RTEVENT_Export
- dynamicflags = CIAO_RTEVENT_BUILD_DLL
-
- IDL_Files {
- CIAO_RTEvent.idl
- }
-
- Source_Files {
- CIAO_RTEvent.cpp
- CIAO_RTEventC.cpp
- CIAO_RTEventS.cpp
- }
-
- Header_Files {
- CIAO_RTEvent.h
- CIAO_RTEventC.h
- CIAO_RTEventS.h
- }
-}
diff --git a/TAO/CIAO/docs/imgs/dance_arch.jpg b/TAO/CIAO/docs/imgs/dance_arch.jpg
deleted file mode 100644
index 95f139c7e6e..00000000000
--- a/TAO/CIAO/docs/imgs/dance_arch.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/imgs/dance_arch.vsd b/TAO/CIAO/docs/imgs/dance_arch.vsd
deleted file mode 100644
index cfe75fca9c6..00000000000
--- a/TAO/CIAO/docs/imgs/dance_arch.vsd
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/imgs/static_dance_arch.jpg b/TAO/CIAO/docs/imgs/static_dance_arch.jpg
deleted file mode 100644
index 3a4b579c3d5..00000000000
--- a/TAO/CIAO/docs/imgs/static_dance_arch.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/imgs/static_dance_arch.vsd b/TAO/CIAO/docs/imgs/static_dance_arch.vsd
deleted file mode 100644
index 1ca1f50f69d..00000000000
--- a/TAO/CIAO/docs/imgs/static_dance_arch.vsd
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/imgs/static_dance_impl.jpg b/TAO/CIAO/docs/imgs/static_dance_impl.jpg
deleted file mode 100644
index 1040e65c1db..00000000000
--- a/TAO/CIAO/docs/imgs/static_dance_impl.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/imgs/static_dance_impl.vsd b/TAO/CIAO/docs/imgs/static_dance_impl.vsd
deleted file mode 100644
index 6c21e6139d4..00000000000
--- a/TAO/CIAO/docs/imgs/static_dance_impl.vsd
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/index.html b/TAO/CIAO/docs/index.html
index fcfc8cd2060..937753498a9 100644
--- a/TAO/CIAO/docs/index.html
+++ b/TAO/CIAO/docs/index.html
@@ -82,9 +82,8 @@ Visio file</a> (The same file in Visio V.5 format is <a
<br>
<hr>
<h2>CIAO's D&C Framework (DAnCE) part-by-part</h2>
-DAnCE's implementation is based on the OMG's Deployment and Configuration
-Specification version [ptc/2003-07-08]. Here is a list of the major
-actors of CIAO runtime that a user should be aware of.
+Here is a list of the major actors of CIAO runtime that a user should
+be aware of.
<ul>
<li><a
href="http://www.dre.vanderbilt.edu/Doxygen/Current/html/tao/ciao/dance/dir_000011.html"><strong>NodeManager:</strong></a>
diff --git a/TAO/CIAO/docs/schema/Basic_Deployment_Data.xsd b/TAO/CIAO/docs/schema/Basic_Deployment_Data.xsd
index 73c2c1ce342..c7e708b1af5 100644
--- a/TAO/CIAO/docs/schema/Basic_Deployment_Data.xsd
+++ b/TAO/CIAO/docs/schema/Basic_Deployment_Data.xsd
@@ -146,8 +146,8 @@
<xsd:complexType name="Resource">
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
- <xsd:element name="resourceType" type="xsd:string" maxOccurs="unbounded" />
- <xsd:element name="property" type="Deployment:SatisfierProperty" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
</xsd:sequence>
</xsd:complexType>
@@ -231,6 +231,7 @@
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
+
<xsd:simpleType name="CCMComponentPortKind">
<xsd:restriction base="xsd:NCName">
<xsd:enumeration value="Facet"/>
@@ -239,8 +240,6 @@
<xsd:enumeration value="EventEmitter"/>
<xsd:enumeration value="EventPublisher"/>
<xsd:enumeration value="EventConsumer"/>
- <xsd:enumeration value="rtecEventPublisher"/>
- <xsd:enumeration value="rtecEventConsumer"/>
</xsd:restriction>
</xsd:simpleType>
diff --git a/TAO/CIAO/docs/schema/CIAOEvents.xsd b/TAO/CIAO/docs/schema/CIAOEvents.xsd
deleted file mode 100644
index 6ea307609f3..00000000000
--- a/TAO/CIAO/docs/schema/CIAOEvents.xsd
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsd:schema targetNamespace="http://www.dre.vanderbilt.edu/CIAOEvents"
- xmlns:CIAO="http://www.dre.vanderbilt.edu/CIAOEvents"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- attributeFormDefault="unqualified">
-
- <xsd:element name="CIAOEvents" type="CIAO:CIAOEventsDef">
- <xsd:annotation>
- <xsd:documentation>
- Root element for defining all the pub/sub services configuration
- used by a DeploymentPlan.
- A CIAO:Events document should reside in a separate file.
- A DeploymentPlan can refer to one or more CIAO:Events file names
- using the "infoProperty" tag.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
-
-<!-- =============================================================== -->
-<!-- CIAO Event Service Deployment Description -->
-<!-- =============================================================== -->
-
- <xsd:simpleType name="EventServiceType">
- <xsd:restriction base="xsd:NCName">
- <xsd:enumeration value="EC"/>
- <xsd:enumeration value="RTEC"/>
- <xsd:enumeration value="NOTIFY"/>
- <xsd:enumeration value="RTNOTIFY"/>
- </xsd:restriction>
- </xsd:simpleType>
-
- <xsd:complexType name="CIAOEventsDef">
- <xsd:sequence>
- <xsd:element name="eventServiceConfiguration" type="CIAO:EventServiceDescription" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
- <xsd:complexType name="EventServiceDescription">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element name="node" type="xsd:string"/>
- <xsd:element name="type" type="CIAO:EventServiceType"/>
- <xsd:element name="svc_cfg_file" type="xsd:string"/>
- <xsd:element name="filter" type="CIAO:Filter" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-
-
-
-<!-- =============================================================== -->
-<!-- CIAO Event Filter Description -->
-<!-- =============================================================== -->
-
- <xsd:simpleType name="FilterType">
- <xsd:restriction base="xsd:NCName">
- <xsd:enumeration value="CONJUNCTION"/>
- <xsd:enumeration value="DISJUNCTION"/>
- <xsd:enumeration value="LOGICAL_AND"/>
- <xsd:enumeration value="NEGATE"/>
- </xsd:restriction>
- </xsd:simpleType>
-
- <xsd:complexType name="Filter">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element name="type" type="CIAO:FilterType"/>
- <xsd:element name="source" type="xsd:string" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- =============================================================== -->
-<!-- CIAO Event Service Federation Description -->
-<!-- =============================================================== -->
-
- <xsd:complexType name="MCastSenderDescription">
- <xsd:sequence>
- <xsd:element name="node" type="xsd:string"/>
- <xsd:element name="type" type="CIAO:EventServiceType"/>
- <xsd:element name="svc_cfg_file" type="xsd:string"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
- <xsd:complexType name="MCastReceiverDescription">
- <xsd:sequence>
- <xsd:element name="node" type="xsd:string"/>
- <xsd:element name="type" type="CIAO:EventServiceType"/>
- <xsd:element name="svc_cfg_file" type="xsd:string"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
- <xsd:complexType name="EC_to_MCastSender">
- <xsd:sequence>
- <xsd:element name="destination" type="xsd:string"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
- <xsd:complexType name="MCastReceiver_to_EC">
- <xsd:sequence>
- <xsd:element name="source" type="xsd:string"/>
- <xsd:element name="destination" type="xsd:string"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-</xsd:schema>
diff --git a/TAO/CIAO/docs/schema/cdd.xsd b/TAO/CIAO/docs/schema/cdd.xsd
index 711ec8d4e0a..301ab1f4d9e 100644
--- a/TAO/CIAO/docs/schema/cdd.xsd
+++ b/TAO/CIAO/docs/schema/cdd.xsd
@@ -43,7 +43,7 @@
<xsd:element name="label" type="xsd:string" minOccurs="0" />
<xsd:element name="connection" type="Deployment:Interconnect" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="sharedResource" type="Deployment:SharedResource" minOccurs="0" maxOccurs="unbounded" />
- <xsd:element name="resource" type="Deployment:Resource" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="resource" type="Deployment:Resource"/>
</xsd:sequence>
</xsd:complexType>
diff --git a/TAO/CIAO/docs/schema/cdp.xsd b/TAO/CIAO/docs/schema/cdp.xsd
index d3641992b34..4fa69acd3fe 100644
--- a/TAO/CIAO/docs/schema/cdp.xsd
+++ b/TAO/CIAO/docs/schema/cdp.xsd
@@ -13,11 +13,6 @@
<xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0" />
<xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription" maxOccurs="unbounded" />
<xsd:element name="instance" type="Deployment:InstanceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/>
-
- <!-- CIAO Specific Extension
- <xsd:element name="es" type="Deployment:EventServiceDeploymentDescription" minOccurs="0" maxOccurs="unbounded"/>
- -->
-
<xsd:element name="connection" type="Deployment:PlanConnectionDescription" minOccurs="0" maxOccurs="unbounded"/>
<!-- potentially recursive, not used
<xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/>
diff --git a/TAO/CIAO/docs/schema/xsc-banner.h b/TAO/CIAO/docs/schema/xsc-banner.h
index 361ae2c84d1..0bccbd262ca 100644
--- a/TAO/CIAO/docs/schema/xsc-banner.h
+++ b/TAO/CIAO/docs/schema/xsc-banner.h
@@ -19,4 +19,4 @@
# include <string.h>
#endif
-#include "XSC_XML_Handlers_Export.h"
+#include "Config_Handlers_Export.h"
diff --git a/TAO/CIAO/docs/static_dance.html b/TAO/CIAO/docs/static_dance.html
deleted file mode 100644
index 3bd6433e133..00000000000
--- a/TAO/CIAO/docs/static_dance.html
+++ /dev/null
@@ -1,214 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
- <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
- <title></title>
-<!-- $Id$ -->
- <meta name="GENERATOR" content="OpenOffice.org 1.1.2 (Linux)">
- <meta name="CREATED" content="20041128;11452700">
- <meta name="CHANGED" content="20041210;11524200">
- <style>
- <!--
- @page { size: 8.5in 11in; margin-left: 1.25in; margin-right: 1.25in; margin-top: 1in; margin-bottom: 1in }
- P { margin-bottom: 0.08in }
- H2.western { font-family: "Times New Roman", serif }
- H2.cjk { font-family: "Arial Unicode MS" }
- H2.ctl { font-family: "Tahoma" }
- H3.western { font-family: "Times New Roman", serif }
- H3.cjk { font-family: "Arial Unicode MS" }
- H3.ctl { font-family: "Tahoma" }
- -->
- </style>
-</head>
-<body dir="ltr" lang="en-US">
-<h2 class="western" align="center">CIAO Static Configuration Support
-with DanCE for Real-Time Platforms </h2>
-<h3 class="western">1. Introduction</h3>
-<p>The dynamic packaging, assembly, and deployment mechanisms
-currently available in CIAO are useful for application domains where
-component metadata is less likely to be known a priori, where
-implementation upgrades may need to be performed on-line, and where
-platform features like loading and unloading dynamic libraries are
-both available and useful. We have already incorporated <a
- href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/TAO/CIAO/docs/static_ciao_index.html">static
-configuration support</a> for component configuration in CIAO on
-platforms like VxWorks, as a set of optional strategies and
-optimizations to the existing CIAO configuration capabilities (). In
-this white paper, we discuss implementation details for extending the
-static configuration capabilities as part of the new DanCE (D&amp;C
-support available with CIAO) framework.</p>
-<p>The fundamental intuition in understanding our approach is that in
-DRE systems the stages of the overall system lifecycle are similar to
-those in more dynamic conventional component-oriented client-server
-applications.However, in DRE systems several phases of the system
-lifecycle are compressed into the compile-time and
-system-initialization phases, so that (1) for testing and
-verification purposes the set of components in an application can be
-identified and analyzed before run-time, and (2) overheads for
-run-time operation following initialization are reduced and made more
-predictable. Furthermore, due to the nuances of the platforms
-traditionally used for deploying DRE systems, not all features of
-conventional platforms are available. Our approach therefore avoids
-certain mechanisms that are either unavailable or too costly in terms
-of performance. We follow these intuitions in our approach, taking
-the existing configuration phases in CIAO and pushing several of them
-earlier in the configuration lifecycle.</p>
-<h3 class="western">2. Current D&amp;C in CIAO with DanCE</h3>
-<p><img src="imgs/dance_arch.jpg" name="Graphic2"
- style="border: 0px solid ; width: 600px; height: 400px;" alt=""
- align="left"><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br><b>Figure 1.</b> <b>Current D&amp;C process using DAnCE</b></p>
-One of the key concerns while supporting the static configuration
-within the DAnCE framework is to reuse the existing components in the
-DAnCE framework as much as possible. Figure 1 shows the current D&amp;C
-process using the DAnCE framework. This is the standard D&amp;C
-process as specified in the CCM D&amp;C specification.As seen from
-the figure, there are multiple processes (Executor, ExecutionManager,
-NodeManagers and NodeApplications) that are involved.
-<h3 class="western">3. Static Configuration with DanCE</h3>
-<p><img src="imgs/static_dance_arch.jpg" name="Graphic3"
- style="border: 0px solid ; width: 800px; height: 800px;" alt=""
- align="left"><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br>
-</p>
-<p><br><b>Figure 2.</b> <b>Static D&amp;C in DAnCE</b></p>
-<p>Figure 2 shows the static configuration approach in DAnCE. Here,
-the flattened deployment plan (.cdp) is parsed offline by an offline
-parser ($CIAO_ROOT/StaticConfigurator/StaticDAnCEParser) using the
-same XML parser classes that the dynamic configuration uses. The
-output of the parser is a C++ plan.h file, which contains the function
-entry points for home and home servant creation. The assumption here
-is that all the necessary (component implementations and other)
-libraries are statically linked to the driver application (see a
-template in
-$CIAO_ROOT/DAnCE/StaticConfigurator/StaticDAnCEApp.cpp.tmpl). </p>
-<p>The driver application is essentially a NodeManager which can be
-used to do deployment just the same as in DAnCE. To achieve maximum
-reusability of the existing classes in the DAnCE framework, we use
-the class hierarchy shown in Figure 3. </p>
-<br>
-<b></b>
-<p style="page-break-before: always;" align="left"><img
- src="imgs/static_dance_impl.jpg" name="Graphic1"
- style="border: 0px solid ; width: 700px; height: 700px;" alt=""
- align="left"><br clear="left">
-<b>Figure 3. New class hierarchy to accommodate static configuration
-within DAnCE<br>
-</b></p>
-<h3 class="western">3.Example</h3>
-<p>To run the static version of Hello example, do the following,<br>
-</p>
-<ol>
- <li>Build ACE+TAO+CIAO statically</li>
- <li>Build $CIAO_ROOT/examples/Hello&nbsp;</li>
- <li>Generate the static function entrypoints (plan.h)<br>
- <span style="font-family: monospace;">&gt; cd
-$CIAO_ROOT/examples/Hello/descriptors</span><span
- style="font-family: monospace;"><br>
-&gt; <span style="font-family: &quot;times new roman&quot;,serif;"><span
- style="font-weight: bold;"></span></span>$CIAO_ROOT/DAnCE/StaticConfigurator/StaticDAnCEParser
--p flattened_deploymentplan_without_ns.cdp</span><br>
- <span style="font-family: monospace;">&gt; cp plan.h <span
- style="font-weight: bold;"></span>$CIAO_ROOT/DAnCE/StaticConfigurator/</span><br>
- </li>
- <li>Build the static NodeManager for Hello example<span
- style="font-family: monospace;"><br>
-&gt; cd $CIAO_ROOT/DAnCE/StaticConfigurator</span><br
- style="font-family: monospace;">
- <span style="font-family: monospace;"></span><span
- style="font-family: monospace;">&gt; cp StaticDAnCEApp.cpp.tmpl
-StaticDAnCEApp.cpp</span><br style="font-family: monospace;">
- <span style="font-family: monospace;">&gt; cp
-StaticDAnCEApp.mpc.tmpl StaticDAnCEApp.mpc<br>
-&gt; $ACE_ROOT/bin/mwc.pl<br>
-&gt; make<br>
- </span></li>
- <li>Run the static node managers. Note that the <span
- style="font-family: monospace;">ORBEndpoint</span> values should
-correspond to the ones in&nbsp;<span style="font-family: monospace;">
-$CIAO_ROOT/examples/Hello/descriptors/TestNodeManagerMap.dat </span><br>
-&gt; <span style="font-family: monospace;">cd
-$CIAO_ROOT/DAnCE/StaticConfigurator<br>
-&gt; ./StaticDAnCEApp -ORBEndpoint iiop://localhost:60001 &amp;<br>
- </span><span style="font-family: monospace;">&gt; ./StaticDAnCEApp
--ORBEndpoint iiop://localhost:60002 &amp;</span><br>
- </li>
- <li>Do the deployment. This is just the same as the non-static
-version of DAnCE except that we have the NodeManagers already running
-and need not spawn node managers. To accomplish this, change&nbsp; <span
- style="font-family: monospace;">$CIAO_ROOT/examples/Hello/descriptors/run_test_without_ns.pl
-to <span style="font-weight: bold;">*not*</span> run the node manager
-daemons.<br>
- </span><span style="font-family: monospace;">&gt; cd
-$CIAO_ROOT/examples/Hello/descriptors<br>
-&gt; ./</span><span style="font-family: monospace;">run_test_without_ns.pl</span></li>
-</ol>
-<br>
-<p></p>
-</body>
-</html>
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/01.html b/TAO/CIAO/docs/tutorials/CoSMIC/01.html
deleted file mode 100644
index e43e2c148a8..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/01.html
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<!-- $Id$ -->
- <title>Getting Started</title>
-</head>
-<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
- link="#000fff" vlink="#ff0f0f">
-<h3>Getting Started<br>
-</h3>
-<b>Writing IDL files</b><br>
-<br>
-We will start from writing the idl file for each
-component. <br>
-&nbsp;&nbsp;&nbsp;1. Create a directory named <code> <span
- style="font-style: italic;">MyQuoter</span></code><span
- style="font-style: italic;">.</span><br>
-&nbsp;&nbsp;&nbsp;2. In <code style="font-style: italic;">MyQuoter</code><span
- style="font-style: italic;"> </span>directory, create one
-directory <span style="font-style: italic;">Stock_Base</span> <code></code>for
-the base idl <code></code>and two more directories <span
- style="font-style: italic;">Broker</span>, <span
- style="font-style: italic;">Distributor </span>for each
-component<code></code>. In <code style="font-style: italic;">MyQuoter/Stock_Base</code>,
-place an idl file <code style="font-style: italic;">Stock_Base.idl</code>
-that
-you could copy from <a
- href="../Quoter/Simple/Stock_Base/Stock_Base.idl">here</a>.
-This file defines the interfaces and events that will be used by both
-Stock Distributor and Stock Broker. We put together the
-common interface definitions so the base library can be shared by both
-components, reducing the size of "real" components. <br>
-&nbsp;&nbsp;&nbsp;3. In <code style="font-style: italic;">MyQuoter/Distributor</code>,
-place an idl
-file <code style="font-style: italic;">Distributor.idl</code> that
-looks like <a href="../Quoter/Simple/Distributor/Distributor.idl">this</a>.
-This file defines the StockDistributor component interfaces.<br>
-&nbsp;&nbsp;&nbsp;4. In <code style="font-style: italic;">MyQuoter/Broker</code>
-place an idl
-file <code><span style="font-style: italic;">Broker.id</span>l</code>
-that looks like <a href="../Quoter/Simple/Broker/Broker.idl">this</a>.
-This file defines the StockBroker component interface.<br>
-<br>
-<b>Importing IDL to PICML</b><br>
-<br>
-&nbsp;&nbsp; To quick start our Stock Quoter
-modeling process in GME, CoSMIC introduces <i style=""><span
- style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">idl_to_picml
-</span></i>, which is an executable program that imports the IDL files
-you just created into PICML. <br>
-&nbsp;&nbsp;&nbsp; 1. Make sure <code>%COSMIC_ROOT%\bin</code> is
-included in the
-PATH variable, e.g., c:\Program Files\ISIS\CoSMIC\bin. <br>
-&nbsp;&nbsp;&nbsp; 2. Open a command prompt, run VCVARS32.BAT from the
-MSVC .NET folder if you haven't done so. It will set the environment
-for using Microsoft Visual Studio .NET tools so that <span
- style="font-style: italic;">idl_to_picml</span> works
-properly.<br>
-in my machine, VCVARS32.bat is in C:\Program Files\Microsoft Visual
-Studio .NET 2003\Vc7\bin<br>
-&nbsp;&nbsp;&nbsp; 3. In the same command prompt, change directory to <code>MyQuoter\</code>,
-and type the following
-command:<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <span
- style="font-family: monospace;">idl_to_picml</span><code> -x MyQuoter
-.\Stock_Base\Stock_Base.idl .\Broker\Broker.idl
-.\Distributor\Distributor.idl -I .\Stock_Base<br>
-&nbsp;&nbsp; (if the above command does not work, you may also try this<br>
-&nbsp;&nbsp; &gt;idl_to_picml -x MyQuoter .\Stock_Base\Stock_Base.idl
-.\Broker\Broker.idl
-.\Distributor\Distributor.idl&nbsp; -I .\Stock_Base -I %TAO_ROOT%
--I %TAO_ROOT%\orbsvcs -I %CIAO_ROOT%\ciao)</code><br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
- style="font-style: italic;">idl_to_picml</span>
-will parse
-your IDL files and generated a <code>MyQuoter.xme</code> file in the <code>MyQuoter</code>
-directory. Note that if -x option is not used, the default xme file
-name will be <span
- style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;" lang="EN-US">PICML_default_xme_file.xme.</span><br>
-&nbsp;&nbsp;&nbsp; 4. Start GME, select <strong>File-&gt;Import xml..</strong>,
-and choose
-the xme file just generated. You should be able to see an imported
-PICML model similar to the one shown in Figure 2.<br>
-<br>
-<div style="text-align: center;"><img alt="" src="Images/fig2.jpg"
- style="width: 781px; height: 635px;"><br>
-<br>
-Figure 2<br>
-<div style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp; In the Browser
-of the generated model, the <em>PredefinedTypes
-</em>folder contains a bunch of atomic datatype elements that will be
-referenced by other modeling parts later. You don't have to worry about
-them for now. The models in <em>InterfaceDefinitions</em> folder
-are the PICML representations ofthe IDL files you just imported.
-Double-click to open <em>Broker</em>, it will show you
-a white, document-like entity which represents a
-&lt;&lt;FileRef&gt;&gt; instance and a yellow box-shaped entity
-representing a &lt;&lt;Package&gt;&gt; instance. Their equivalent
-representations in IDL files are "#include" and "module" respectively.
-Figure 3 gives you a clear view of
-GME representation of all the 3 idl files created. We will cover the
-other folders in the next section. <br>
-<div style="text-align: center;"><img alt="" src="Images/fig3.jpg"
- style="width: 223px; height: 336px;"><br>
-<br>
-Figure 3<br>
-<br>
-<div style="text-align: left;">Now we are ready to model the rest of
-the Stock Quoter systems. <br>
-<br>
-<br>
-</div>
-</div>
-<span style="font-weight: bold;"><span style="font-weight: bold;"></span></span></div>
-</div>
-<big><big><small><span style="font-weight: bold;"><small><span
- style="font-weight: bold;"><span style="font-weight: bold;"></span></span></small></span></small></big></big>&nbsp;&nbsp;&nbsp;
-<br style="font-style: italic;">
-<hr style="font-style: italic;">
-<address><a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br>
-</a></address>
-<!-- Created: Sat Nov 27 15:25:06 CST 1999 --><!-- hhmts start -->
-Last modified:<!-- hhmts end -->
-</body>
-</html>
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/02.html b/TAO/CIAO/docs/tutorials/CoSMIC/02.html
deleted file mode 100644
index 6c8cee01aa2..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/02.html
+++ /dev/null
@@ -1,422 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
- <title>Building a Stock Quoter with TAO - A Tutorial</title>
-<!-- $Id$ -->
-</head>
-<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
- link="#000fff" vlink="#ff0f0f">
-<h3>Building Stock Quoter system in PICML<br>
-</h3>
-Now we can start modelling the Quoter system using PICML. If there's
-anything that confuses you as we go through each step, <a
- href="Model/Quoter.xme">here</a> is a pre-built Quoter model for your
-reference.
-It has everything that we will be achieving in this section.
-<blockquote>
- <hr><strong>Note:</strong>
-In case you don't know, to importa a XML file, just select <span
- style="font-weight: bold;">File-&gt;Import XML..</span> from
-GME and choose your XML model <br>
- <hr></blockquote>
-The paradigm of PICML is designed keeping in mind the <a
- href="http://www.omg.org/cgi-bin/doc?ptc/2003-07-08">OMG Deployment
-&amp; Configuration (D&amp;C) specification (ptc/2003-07-08)</a>, so
-the modeling process is straightforwrd if you are familar
-with the specification. Please go to <a
- href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/TAO/CIAO/docs/releasenotes/dance.html">DAnCE
-project</a> for more information. <br>
-<br>
-<hr>
-<h3>Table of Contents</h3>
-<ul>
- <li><a href="#1">ImplementationArtifacts</a></li>
- <li><a href="#2">ComponentImplementations</a></li>
- <li><a href="#3">ComponentPackages</a></li>
- <li><a href="#4">PackageConfiguration</a></li>
- <li><a href="#5">TopLevelPackage</a></li>
- <li><a href="#6">Targets</a></li>
- <li><a href="#7">DeploymentPlan</a></li>
-</ul>
-<hr>
-The complete PICML Quoter model consists of modeling elements
-distributed in various folders.. <span style="font-style: italic;">idl_to_picml</span>
-has created
-all these folders and some of the modeling entities for us, as you
-might have seen. In
-the rest of the section, we will explain the purpose of each folder as
-well as the modeling entities contained in these folders. We will also
-show how to model some of the folders that have to be done by hand.
-Before we start, it is worth reminding you that, please don't forget to
-check the constraints when you are done with your model. In particular,
-whenever you are about to generate something from your model, check the
-constraint first by choosing <br>
-<span style="font-weight: bold;">File-&gt;Check-&gt;Check All</span> in
-GME. This will help you find a lot of logic error in your model.<br>
-<a name="1">
-<h3>ImplementationArtifacts<br>
-</h3>
-</a>This folder contains implementation artifacts associated with
-components. <span style="font-style: italic;">idl_to_picml</span> has
-created these artifacts for us, with their dependency relationships
-correctly captured. Figure 4 shows the Implementation Artifacts for <span
- style="font-style: italic;">Broker</span>.
-<div style="text-align: center;"><img alt="" src="Images/fig4.jpg"
- style="border: 1px solid ; width: 891px; height: 552px;"><a name="1"><br>
-Figure 4.<br>
-</a><br>
-<div style="text-align: left;"><a name="1"></a>
-<hr><a name="2">
-<h3>ComponentImplementation<br>
-</h3>
-</a>This folder contains models that describes the implementations of
-component interfaces. In the Quoter example, we will have two
-monolithic component implementations; respectively <span
- style="font-style: italic;">StockDistributorImplementation </span><span
- style="font-style: italic;">StockBroker</span>Implementation, and an
-assembly
-component implementation: <span style="font-style: italic;">StockQuoter</span>,
-which is an assembly of <span style="font-style: italic;">StockDistributorImplementation
-</span>and <span style="font-style: italic;">StockBrokerImplementaion</span>.
-<span style="font-style: italic;">idl_to_picml</span> has created the
-monolithic component implementations for us, as shown in figure 5 for
-example, but we have to put them together by hand in order to construct
-a Quoter system. <br>
-<br>
-<br>
-<div style="text-align: center;"><img alt="" src="Images/fig5.jpg"
- style="border: 1px solid ; width: 922px; height: 639px;"><br>
-Figure 5<br>
-<div style="text-align: left;"><br>
-Assembly component is a recursive concept. It provides a boundary for
-the composition of monolithic components.Assembly component does not
-provide real implementation for any interface, i.e., it is a virtual
-component. Modeling an assembly component is different from modeling a
-monolithic component: you don't need to worry about the
-artifacts.Instead, you need to create connections between monolithic
-components so that they can talk via ports. Let's try to assemble the <span
- style="font-style: italic;">StockQuoter</span>.<br>
-<ol>
- <li>Right click folder <span style="font-style: italic;">ComponentImplementations</span>,
-choose <span style="font-weight: bold;">Insert
-Model-&gt;ComponentImplementationContainer</span>, rename it
-as "StockQuoterImplementation" in the Attribute Panel. Double click to
-open it.<br>
- </li>
- <li> From the Part Browser, drag a &lt;&lt;ComponentAssembly&gt;&gt;
-to the modeling window,
-name it "StockQuoter". Double click to open it.<br>
- </li>
- <li> Now we will create two instances for interfaces<span
- style="font-style: italic;"> StockBroker </span>and <span
- style="font-style: italic;">StockDistributor</span>. To do
-that, expand the folder <code><span style="font-style: italic;">InterfaceDefinitions</span></code>,
-then expand the <code><span style="font-style: italic;">InterfaceDefinitions/</span></code><span
- style="font-style: italic;">Broker</span>, then <code><span
- style="font-style: italic;">InterfaceDefinitions/</span></code><span
- style="font-style: italic;">Broker/</span><span
- style="font-style: italic;">Stock</span> until the interface
-definition of <span style="font-style: italic;">StockBroker </span>shows.
-While expanding the tree, always keep
-the "StockQuoter" &lt;&lt;ComponentAssembly&gt;&gt; window open.
-Then drag <code style="font-style: italic;">MyQuoter/InterfaceDefinitions/Broker/Stock/StockBroker</code>
-in the
-browser to the "StockQuoter" &lt;&lt;ComponentAssembly&gt;&gt; window
-while pressing ALT key. Repeat the
-same steps for <span style="font-style: italic;">My</span><code
- style="font-style: italic;">Quoter/InterfaceDefinitions/Distributor/Stock/StockDistributor</code>,
-and you will see two instances of component interfaces have been
-created as shown in Figure 6 (the black line in the figure only
-indicates .mapping)<br>
- </li>
-</ol>
-<br>
-<div style="text-align: center;"><img alt="" src="Images/fig6.jpg"
- style="width: 972px; height: 714px;"><br>
-<br>
-Figure 6
-<br>
-<ol style="text-align: left;">
- <li value="4"> Create an &lt;&lt;PublishConnector&gt;&gt;.<br>
- </li>
- <li> Now assemble the components together according to <a
- href="Images/fig1.jpg">Figure 1</a>(make sure you change to connect
-mode <img alt="" src="Icons/AddConnMode.gif"
- style="width: 20px; height: 17px;"> ) and
-the resulting assembly model should look like Figure 7. Note that to
-create connections between
-StockDistributor.notify_out and StockBroker.notify_in, you will need
-the intermediate connector &lt;&lt;PublishConnector&gt;&gt;. <br>
- </li>
-</ol>
-<img alt="" src="Images/fig7.jpg" style="width: 724px; height: 402px;"><br>
-<br>
-Figure 7<br>
-</div>
-<hr>
-<a name="3"></a>
-<h3>ComponentPackage<br>
-</h3>
-This folder contains deployable component packages. Every instance in
-an assembly should have a corresponding monolithic implementation and
-packaged in a ComponentPackagebe To create a package for <em>StockBroker</em>.instance<br>
-<ol>
- <li> Right click folder <span style="font-style: italic;">ComponentPackage</span>s
-,
-insert a &lt;&lt;PackageContainer&gt;&gt;, name it "Broker"; Double
-click to open it.<br>
- </li>
- <li> From the PartBrowser, add the following:<br>
- <ul>
- <li>a &lt;&lt;ComponentPackage&gt;&gt; named "Broker";</li>
- <li>a &lt;&lt;ComponentImplementationReference&gt;&gt; named
-"Broker";</li>
- <li>a &lt;&lt;ComponentRef&gt;&gt; named "Broker";</li>
- </ul>
- </li>
- <li> Refer the &lt;&lt;ComponentImplementationReference&gt;&gt; <em>Broker</em>
-to <code>MyQuoter/ComponentImplementations/StockBroker</code>Implementation/StockBrokerMonolithicImpl.
-Refer the
-&lt;&lt;ComponentRef&gt;&gt; <em>Broker</em> to <code>MyQuoter/InterfaceDefinitions/Broker/Stock/StockBroker.
-To do a refering in GME, simply drage the tree node in the Browser
-"into" the reference model. For example, you should drage the tree node
- </code><code>MyQuoter/ComponentImplementations/StockBroker</code>Implementation/StockBrokerMonolithicImpl
-into &lt;&lt;ComponentImplementationReference&gt;&gt; <em>Broker. </em><code>Check
-GME manual(tutorials) for more information.</code> </li>
- <li> Switch to Connect Mode and create two connections according to
-the following relationship.<br>
- <ul>
- <li> &lt;&lt;ComponentImplementationReference&gt;&gt; <em>Broker</em>
-implements &lt;&lt;ComponentPackage&gt;&gt; <em>Broker</em>; </li>
- <li> &lt;&lt;ComponentPackage&gt;&gt; <em>Broker </em>realizes
-&lt;&lt;ComponentRef&gt;&gt; <em>Broker</em>. </li>
- </ul>
- <br>
- <br>
-&nbsp;&nbsp;&nbsp;&nbsp; The model you built should resemble Figure 8. <br>
- <br>
- <div style="text-align: center;"><img alt="" src="Images/fig8.jpg"
- style="width: 675px; height: 497px;"><br>
- <br>
-Figure 8<br>
- <br>
- <div style="text-align: left;">Now create a
-ComponentPackage/StockDistributor following the same steps.</div>
- </div>
- </li>
- <br>
- <div style="text-align: center;">
- <div style="text-align: left;">We will also need to create a package
-for the assembly component
-StockQuoter. Remember assembly component is a virtual component, it
-does not "realize" a certain interface, so different from the Broker
-and Distributor packages, the
-StockQuoter does not need a &lt;&lt;ComponentRef&gt;&gt;. To create
-this model: </div>
- </div>
- <div style="text-align: center;">
- <div style="text-align: left;">
- <ol>
- <il>1. Insert a &lt;&lt;ComponentPackage&gt;&gt; named "StockQuoter"<br>
- </il><il><il>2. Add a
-&lt;&lt;ComponentImplementationReference&gt;&gt; named "StockQuoter",
-refer it to MyQuoter<span style="font-family: monospace;">/ComponentImplementations/StockQuoter/StockQuoter</span></il></il>
- </ol>
- <ol>
- <il><il>3. Switch to connect mode and connect
-&lt;&lt;ComponentImplementationReference&gt;&gt; StockQuoter with
-&lt;&lt;ComponentPackage&gt;&gt; StockQuoter, as in Figure 9.<br>
- </il></il>
- </ol>
- <ol>
- <ul>
- </ul>
- </ol>
- </div>
- </div>
- <div style="text-align: center;">
- <div style="text-align: left;"> <br>
- <br>
- </div>
- <div style="text-align: center;"><img alt="" src="Images/fig9.jpg"
- style="width: 549px; height: 354px;"><br>
- <br>
-Figure 9<br>
- <br>
- </div>
- </div>
-</ol>
-<hr>
-<div style="text-align: left;"> <a name="4"></a>
-<h3>PackageConfiguration<br>
-</h3>
-This folder contains just one model capturing specific configuration of
-Component packages. <br>
-<ol>
- <li> In the folder <span style="font-style: italic;">PackageConfiguratio</span>n,
-and create a
-&lt;&lt;PackageConfigurationContainer&gt;&gt;, name it "Default", click
-to
-open it.<br>
- </li>
- <li> Add a &lt;&lt;PackageConfiguration&gt;&gt; named "default" and a
-&lt;&lt;ComponentPackageReference&gt;&gt;, name it "StockQuoter",
-connect "Default" to "StockQuoter"<br>
- </li>
- <li> Refer &lt;&lt;ComponentPackageReference&gt;&gt; StockQuoter to
-&lt;&lt;ComponentPackage&gt;&gt; <code>MyQuoter/ComponentPackage/StockQuoter/StockQuoter
- <br>
-(Not &lt;&lt;ComponentImplementationReference&gt;&gt; </code><code>MyQuoter/ComponentPackage/StockQuoter/StockQuoter!)&nbsp;</code>
- </li>
-</ol>
-<br>
-<hr>
-<a name="5"></a>
-<h3>ToplevelPackage<br>
-</h3>
-This folder contains one model capturing information about the
-top-level element that will be fed to
-the application. <br>
-<ol>
- <li>In the folder <span style="font-style: italic;">ToplevelPackage</span>,
-and create a
-&lt;&lt;ToplevelPackageContainer&gt;&gt;, name it "Default", double
-click to open it.<br>
- </li>
- <li> Add a &lt;&lt;ToplevelPackage&gt;&gt; named "ToplevelPackage"
-and a &lt;&lt;PackageConfigurationReference&gt;&gt;, name it "Default",
-connect "ToplevelPackage" to "Default" <br>
- </li>
- <li> Refer "Default" to My<code>Quoter/PackageConfiguration/Default/Default</code><br>
- </li>
-</ol>
-<br>
-<hr>
-<a name="6"></a>
-<h3>Targets<br>
-</h3>
-This folder contains domain-specific models capturing information about
-the target
-environment in which component-based application will be deployed. In
-this Quoter example, we can either deploy the two components into ONE
-host, or into TWO different host. We will deploy the Quoter into two
-different host. <br>
-<ol>
- <li> In the folder <span style="font-style: italic;">Targets</span>,
-insert a new &lt;&lt;Domain&gt;&gt; named "Domain"; double click to
-open it.<br>
- </li>
- <li> From the Part Browser, add two &lt;&lt;Node&gt;&gt; named
-"Broker" and "Distributor" respectively.<br>
- </li>
-</ol>
-<br>
-Now we are ready to deploy our Components to the actual physical
-environment.<br>
-<hr>
-<a name="7"></a>
-<h3>DeploymentPlan<br>
-</h3>
-This folder contains a plan model that captures information about the
-assignment of component to nodes. <br>
-<ol>
- <li> In the folder <span style="font-style: italic;">DeploymentPlan</span>,
-insert a model
-&lt;&lt;DeploymentPlan&gt;&gt;; name it "Plan", click to open it<br>
- </li>
- <li> From the PartBrowser, add the following:<br>
- <ul>
- <li>Two &lt;&lt;CollocationGroup&gt;&gt;</li>
- <li>Two &lt;&lt;NodeReference&gt;&gt; named "Node_Broker" and
-"Node_Distributor" respectively, refering to <code>MyQuoter/Targets/Domain/Broker</code>
-and <code>MyQuoter/Targets/Domain/Distributor<code> respectively</code></code></li>
- <li>Two &lt;&lt;ComponentRef&gt;&gt; named "StockBroker" and
-"StockDistributor" respectively, refering to <code>MyQuoter/ComponentImplementations/StockQuoterImplementation/StockQuoter/StockBroker</code>
-and <code>MyQuoter/ComponentImplementations/StockQuoterImplementation/StockQuoter/StockDistributor</code>
-respectively. Note that the &lt;&lt;ComponentRef&gt;&gt; in
-DeploymentPlan is not refering to the interface, but rather, the actual
-instance of the implementation.</li>
- </ul>
- </li>
- <li> Switch to Connect Mode, connect one
-&lt;&lt;CollocationGroup&gt;&gt; to &lt;&lt;NodeReference&gt;&gt; <em>Node_Broker</em>,
-connect another
-&lt;&lt;CollocationGroup&gt;&gt; to &lt;&lt;NodeReference&gt;&gt; <span
- style="font-style: italic;">Node_</span><em>Distributor</em>.
-Now the model looks like the following.<br>
- <br>
- <div style="text-align: center;"><img alt="" src="Images/fig10.jpg"
- style="width: 752px; height: 530px;"><br>
- <br>
-Figure 10.<br>
- <br>
- </div>
- </li>
- <li> Now we need to associate &lt;&lt;ComponentRef&gt;&gt;
-StockBroker to the
-&lt;&lt;CollocationGroup&gt;&gt; running on the
-&lt;&lt;NodeReference&gt;&gt; Broker, and &lt;&lt;ComponentRef&gt;&gt;
-StockDistributor to the &lt;&lt;CollocationGroup&gt;&gt; running on the
-&lt;&lt;NodeReference&gt;&gt; Distributor. To do that, switch the Edit
-Mode Bar to Set Mode (<img alt="" src="Icons/SetMode.gif"
- style="width: 20px; height: 17px;">), and move
-the cursor to the &lt;&lt;CollocationGroup&gt;&gt; running on
-&lt;&lt;NodeReference&gt;&gt; Distributor, right-click on it. You will
-find the cursor is changed to set mode cursor, and only the
-&lt;&lt;CollocationGroup&gt;&gt; you clicked in is highlighted, as
-shown
-in Figure 11.<br>
- <br>
- </li>
-</ol>
-</div>
-<div style="text-align: center;"><img alt="" src="Images/fig11.jpg"
- style="width: 672px; height: 505px;"><br>
-<br>
-Figure 11<br>
-<br>
-</div>
-<div style="text-align: left;">&nbsp;Now move your cursor to
-&lt;&lt;ComponentRef&gt;&gt;&nbsp; StockDistributor, and left-click it,
-so that it looks like Figure 12.<br>
-</div>
-<br>
-<div style="text-align: center;"><img alt="" src="Images/fig12.jpg"
- style="width: 672px; height: 505px;"><br>
-<br>
-Figure 12<br>
-<br>
-</div>
-<div style="text-align: left;">&nbsp;&nbsp; This operation
-associates <em>StockDistributor</em> component to the
-&lt;&lt;CollocationGroup&gt;&gt; running on <em>Distributor</em> node.
-To do the same with
-Broker, just right-click on another &lt;&lt;CollocationGroup&gt;&gt;,
-and left-click on StockBroker &lt;&lt;CollocationGroup&gt;&gt; which is
-highlighted. <br>
-<br>
-<hr>
-<a name="8"></a></div>
-<br>
-Up to this point, we are basiclly done with the modeling part. Before
-we generate anything from this model though, please <span
- style="font-weight: bold;">DO </span>remember to check the
-constraints of the model as we mentioned earlier.<br>
-<br>
-After we are done with the modeling, the flattened_deploymentplan
-interpreter that comes along with PICML will help us to generate a
-flattened_deploymentplan.cdp file. Please make sure you generate this
-file to MyQuoter/descriptors.
-<address><span style="font-style: italic;"></span><br>
-<span style="font-style: italic;"></span><br>
-<br>
-<a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br>
-</a></address>
-<!-- Created: Sat Nov 27 15:25:06 CST 1999 --><!-- hhmts start -->
-Last modified:<!-- hhmts end -->
-</div>
-</div>
-</div>
-</div>
-</body>
-</html>
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/03.html b/TAO/CIAO/docs/tutorials/CoSMIC/03.html
deleted file mode 100644
index df614e1b2bc..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/03.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
- <title>Building a Stock Quoter with TAO - A Tutorial</title>
-<!-- $Id$ -->
-</head>
-<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
- link="#000fff" vlink="#ff0f0f">
-<h3>Implementing Quoter Components with DAnCE<br>
-</h3>
-We discuss this section after the PICML modeling only because we would
-like to focus our attention more on the modeling stage. It does not
-indicate that the implementation of components has to be
-subsequent to the work we've done under GME. They are totally
-orthogonal to each other. In fact, they are so orthogonal&nbsp; that we
-won't go into details as to how DAnCE programming should be done. We'll
-briefly go through the functionality of each component and provides the
-links to their implementations respectively. For a hands on experience
-on DAnCE programming, please refer to $CIAO_ROOT/DAnCE/examples/Hello. <br>
-<br>
-<big><big><small>Broker Component<br>
-&nbsp;&nbsp;&nbsp; </small></big></big>The Broker componennt waits to
-be notified by the Distributor component about stock changes. When a
-stock change event arrives,&nbsp; it will go back to Distributor
-component and retrieve the information it interest in and output them
-to the console. The users are allowed to subscribe to the interested
-stock value through the interface supported by Broker component. Here's
-the complete version of <a href="../Quoter/Simple/Broker/Broker_exec.h">Broker_exec.h</a>
-and <a href="../Quoter/Simple/Broker/Broker_exec.cpp">Broker_exec.cpp</a>.
-<br>
-<br>
-<big><big><small>Distributor Component<br>
-&nbsp;&nbsp; </small></big></big>The Distributor componennt monitors
-the real time stock database and publishes events whenever it detects
-stock change. In our program, we use a ACE_Task&nbsp; to simmulate this
-real-life activity. The task will run in a seperate thread and
-periodically increment the stock value by 1. In the same time the stock
-value is incremented, an <span style="font-style: italic;">StockName</span>
-event along with the name of the changed stock will be sent. Here's the
-complete version of <a
- href="../Quoter/Simple/Distributor/Distributor_exec.h">Distributor_exec.h</a>
-and <a href="../Quoter/Simple/Distributor/Distributor_exec.cpp">Distributor_exec.cpp</a><br>
-<big><big><small><span style="font-style: italic;"><span
- style="font-style: italic;"></span></span><br>
-Broker client<br>
-&nbsp;&nbsp;&nbsp; </small></big></big>The Broker client program is
-the driver program for client to control Broker component, subscribe
-and unsubscribe to a specific stock. Here's the complete version of
-<a href="../Quoter/Simple/Broker/Broker.cpp">Broker.cpp</a><br>
-<big><big><small><br>
-Distributor client<br>
-&nbsp;&nbsp;&nbsp;&nbsp; </small></big></big>The Distributor client
-program is the driver program for client
-to control Distributor component, turn on and off the distribution
-service, set up the frequency, etc. Here's the complete version of
-<a href="../Quoter/Simple/Distributor/Distributor.cpp">Distributor.cpp</a><a
- name="2"><br>
-<big><big><small><br>
-</small></big></big></a><br>
-<div style="text-align: center;"><br>
-</div>
-<address><a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br>
-</a></address>
-<!-- Created: Sat Nov 27 15:25:06 CST 1999 --><!-- hhmts start -->
-<a href="mailto:ming.xiong@vanderbilt.edu">Last modified:<!-- hhmts end -->
-</a>
-</body>
-</html>
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/04.html b/TAO/CIAO/docs/tutorials/CoSMIC/04.html
deleted file mode 100644
index 27a5344af23..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/04.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
- <title>Building a Stock Quoter with TAO - A Tutorial</title>
-<!-- $Id$ -->
-</head>
-<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
- link="#000fff" vlink="#ff0f0f">
-<h3>Running the application<br></h3>
-
-Now that we have all the components and driver programs successfully built, along with the flattened_deploymentplan generated by PICML, we will be able to run our application<BR><BR>
-
-From different command prompts in <code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/descriptors/</code>
-directory:<ul>
- <li>Start NodeManagers (NodeDameon) by running <CODE>runNodeDaemon.pl</CODE> </li>
- <li>Start the execution manager
-<CODE>%CIAO_ROOT%/DAnCE/ExecutionManager/Execution_Manager -o ior -i Stock.dat</CODE>&nbsp;
-</ul>
-<p>The <CODE>Stock.dat</CODE> file describes the deployment daemons CIAO's Execution_Manager
-will contact to instantiate ComponentServer's, home's, and component instances.
-Each line specify the name of a installation &quot;destination&quot; and the corresponding
-IOR for the CIAO_Daemon.</p>
-<ul type="square">
- <li><em>NOTE</em>: As one can see, we use the &quot;Stock.dat&quot; file to instruct the
- Execution_Manager how to find the endpoint of each individual NodeManager
- (i.e., Node Daemon) where component(s) will be deployed, so this is
- non-standard. We plan to use Naming Service to do this in the future. </li>
-</ul>
-<ul>
- <li> Start the plan_launcher by running
-<CODE>%CIAO_ROOT%/DAnCE/Plan_Launcher/Plan_Launcher -p
-flattened_deploymentplan.cdp -k file://ior</CODE></li>
- <li>By now the components should be successfully deployed. You may
-run the driver program to start the application. e.g. you can try the
-following<br>
- </li>
-</ul>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/Distributor.exe -o </CODE><br>
-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe -s MSFT</CODE><br>
-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe -s IBM</CODE><br>
-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Broker/Broker.exe -u MSFT</CODE><br>
-<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-<CODE>%CIAO_ROOT%/docs/tutorials/Quoter/Simple/Distributor/Distributor.exe -f </CODE><br>
-<br>
-
-
-
-</body>
-</html>
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Icons/AddConnMode.gif b/TAO/CIAO/docs/tutorials/CoSMIC/Icons/AddConnMode.gif
deleted file mode 100644
index 3604d32946d..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Icons/AddConnMode.gif
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Icons/SetMode.gif b/TAO/CIAO/docs/tutorials/CoSMIC/Icons/SetMode.gif
deleted file mode 100644
index 6dcad861f07..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Icons/SetMode.gif
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig1.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig1.jpg
deleted file mode 100644
index a8550fe1176..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig1.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig10.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig10.jpg
deleted file mode 100644
index 3db5ac174e0..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig10.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig11.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig11.jpg
deleted file mode 100644
index c5eaf705384..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig11.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig12.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig12.jpg
deleted file mode 100644
index ea2a885af6b..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig12.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig2.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig2.jpg
deleted file mode 100644
index 49d6f90c3b0..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig2.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig3.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig3.jpg
deleted file mode 100644
index 0559dc7382b..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig3.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig4.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig4.jpg
deleted file mode 100644
index 8fb89eccb57..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig4.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig5.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig5.jpg
deleted file mode 100644
index e847b9290d6..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig5.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig6.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig6.jpg
deleted file mode 100644
index 0a214c84ea8..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig6.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig7.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig7.jpg
deleted file mode 100644
index 67d90b775b0..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig7.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig8.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig8.jpg
deleted file mode 100644
index a565c2ab989..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig8.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig9.jpg b/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig9.jpg
deleted file mode 100644
index 996d90d800b..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Images/fig9.jpg
+++ /dev/null
Binary files differ
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/Model/Quoter.xme b/TAO/CIAO/docs/tutorials/CoSMIC/Model/Quoter.xme
deleted file mode 100644
index 10f968f69ca..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/Model/Quoter.xme
+++ /dev/null
@@ -1,2003 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE project SYSTEM "mga.dtd">
-
-<project guid="{693BB5A4-CC13-45F0-8470-8F189DE22CF8}" cdate="Thu Feb 02 21:46:10 2006" mdate="Thu Feb 02 21:46:10 2006" version="" metaguid="{3F14D74F-DE80-4071-8F14-550B6023233F}" metaversion="" metaname="PICML">
- <name>MyQuoter</name>
- <comment></comment>
- <author></author>
- <folder id="id-006a-00000001" relid="0x1" childrelidcntr="0x2" kind="RootFolder">
- <name>MyQuoter</name>
- <folder id="id-006a-00000002" relid="0x2" childrelidcntr="0x3" kind="InterfaceDefinitions">
- <name>InterfaceDefinitions</name>
- <model id="id-0065-00000001" kind="File" relid="0x1" childrelidcntr="0x1">
- <name>Stock_Base</name>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000002" kind="Package" role="Package" relid="0x1" childrelidcntr="0x5">
- <name>Stock</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>293,153</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000003" kind="Exception" role="Exception" relid="0x1" childrelidcntr="0x0">
- <name>Invalid_Stock</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>151,84</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- </model>
- <model id="id-0065-00000004" kind="Aggregate" role="Aggregate" relid="0x3" childrelidcntr="0x4">
- <name>StockInfo</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>517,316</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000018" kind="Member" role="Member" relid="0x1" referred="id-0066-00000003">
- <name>name</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>188,108</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000019" kind="Member" role="Member" relid="0x2" referred="id-0066-00000007">
- <name>high</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>408,248</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000001a" kind="Member" role="Member" relid="0x3" referred="id-0066-00000007">
- <name>low</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>628,388</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000001b" kind="Member" role="Member" relid="0x4" referred="id-0066-00000007">
- <name>last</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>848,528</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <model id="id-0065-00000005" kind="Object" role="Object" relid="0x4" childrelidcntr="0x1">
- <name>StockQuoter</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,432</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="abstract" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="local" status="meta">
- <value>false</value>
- </attribute>
- <model id="id-0065-00000006" kind="TwowayOperation" role="TwowayOperation" relid="0x1" childrelidcntr="0x3">
- <name>get_stock_info</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000001" kind="ReturnType" role="ReturnType" relid="0x1" referred="id-0065-00000004">
- <name>ReturnType</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>243,143</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000002" kind="ExceptionRef" role="ExceptionRef" relid="0x4" referred="id-0065-00000003">
- <name>ExceptionRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>1068,668</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000001c" kind="InParameter" role="InParameter" relid="0x3" referred="id-0066-00000003">
- <name>stock_name</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>793,493</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- </model>
- <model id="id-0065-00000007" kind="Event" role="Event" relid="0x5" childrelidcntr="0x1">
- <name>StockName</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>883,548</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="abstract" status="meta">
- <value>false</value>
- </attribute>
- <reference id="id-0067-0000001d" kind="Member" role="Member" relid="0x1" referred="id-0066-00000003">
- <name>name</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <reference id="id-0067-00000017" kind="Collection" role="Collection" relid="0x2" referred="id-0066-0000000b">
- <name>ImageBlob</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,200</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- </reference>
- </model>
- </model>
- <model id="id-0065-00000008" kind="File" relid="0x2" childrelidcntr="0x2">
- <name>Broker</name>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000009" kind="Package" role="Package" relid="0x2" childrelidcntr="0x4">
- <name>Stock</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>314,216</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-0000000a" kind="Object" role="Object" relid="0x1" childrelidcntr="0x2">
- <name>StockSubscriber</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>243,143</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="abstract" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="local" status="meta">
- <value>false</value>
- </attribute>
- <model id="id-0065-0000000b" kind="TwowayOperation" role="TwowayOperation" relid="0x1" childrelidcntr="0x2">
- <name>stock_subscribe</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,201</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000004" kind="ExceptionRef" role="ExceptionRef" relid="0x2" referred="id-0065-00000003">
- <name>ExceptionRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,434</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000001e" kind="InParameter" role="InParameter" relid="0x1" referred="id-0066-00000003">
- <name>stock_name</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,201</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <model id="id-0065-0000000c" kind="TwowayOperation" role="TwowayOperation" relid="0x2" childrelidcntr="0x2">
- <name>stock_unsubscribe</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,434</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000005" kind="ExceptionRef" role="ExceptionRef" relid="0x2" referred="id-0065-00000003">
- <name>ExceptionRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,434</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000001f" kind="InParameter" role="InParameter" relid="0x1" referred="id-0066-00000003">
- <name>stock_name</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,201</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- </model>
- <model id="id-0065-0000000d" kind="Component" role="Component" relid="0x2" childrelidcntr="0x3">
- <name>StockBroker</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>426,242</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="UUID">
- <value>58E736A4-F9F5-44CF-AA0F-83A280F907A6</value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000006" kind="Supports" role="Supports" relid="0x1" referred="id-0065-0000000a">
- <name>Supports</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>55,160</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000007" kind="RequiredRequestPort" role="RequiredRequestPort" relid="0x2" referred="id-0065-00000005">
- <name>read_quoter</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>69,307</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="multiple_connections">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- </reference>
- <reference id="id-0067-00000008" kind="InEventPort" role="InEventPort" relid="0x3" referred="id-0065-00000007">
- <name>notify_in</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>83,433</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- </reference>
- </model>
- <model id="id-0065-0000000e" kind="ComponentFactory" role="ComponentFactory" relid="0x3" childrelidcntr="0x0">
- <name>StockBrokerHome</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>793,493</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- </model>
- <connection id="id-0068-00000001" kind="ManagesComponent" role="ManagesComponent" relid="0x4">
- <name>ManagesComponent</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ws</value>
- </regnode>
- <connpoint role="dst" target="id-0065-0000000d"/>
- <connpoint role="src" target="id-0065-0000000e"/>
- </connection>
- </model>
- <reference id="id-0067-00000003" kind="FileRef" role="FileRef" relid="0x1" referred="id-0065-00000001">
- <name>FileRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>174,181</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <model id="id-0065-0000000f" kind="File" relid="0x3" childrelidcntr="0x2">
- <name>Distributor</name>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000010" kind="Package" role="Package" relid="0x2" childrelidcntr="0x4">
- <name>Stock</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,434</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000011" kind="Object" role="Object" relid="0x1" childrelidcntr="0x2">
- <name>Trigger</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>243,143</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="PrefixTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="abstract" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="local" status="meta">
- <value>false</value>
- </attribute>
- <model id="id-0065-00000012" kind="TwowayOperation" role="TwowayOperation" relid="0x1" childrelidcntr="0x0">
- <name>start</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,201</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- </model>
- <model id="id-0065-00000013" kind="TwowayOperation" role="TwowayOperation" relid="0x2" childrelidcntr="0x0">
- <name>stop</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,434</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- </model>
- </model>
- <model id="id-0065-00000014" kind="Component" role="Component" relid="0x2" childrelidcntr="0x4">
- <name>StockDistributor</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="UUID">
- <value>B124B4A8-F51C-4F63-9A08-35256C9A9259</value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000015" kind="Attribute" role="Attribute" relid="0x4" childrelidcntr="0x1">
- <name>rate</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>848,528</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000020" kind="AttributeMember" role="AttributeMember" relid="0x1" referred="id-0066-00000007">
- <name>AttributeMember</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <reference id="id-0067-0000000a" kind="Supports" role="Supports" relid="0x1" referred="id-0065-00000011">
- <name>Supports</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>188,108</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000000b" kind="ProvidedRequestPort" role="ProvidedRequestPort" relid="0x2" referred="id-0065-00000005">
- <name>push_quoter</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>608,216</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- </reference>
- <reference id="id-0067-0000000c" kind="OutEventPort" role="OutEventPort" relid="0x3" referred="id-0065-00000007">
- <name>notify_out</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>628,388</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="out_event_port_type" status="meta">
- <value>DirectConnect</value>
- </attribute>
- <attribute kind="single_destination">
- <value>false</value>
- </attribute>
- </reference>
- </model>
- <model id="id-0065-00000016" kind="ComponentFactory" role="ComponentFactory" relid="0x3" childrelidcntr="0x0">
- <name>StockDistributorHome</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>793,493</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- </model>
- <connection id="id-0068-00000002" kind="ManagesComponent" role="ManagesComponent" relid="0x4">
- <name>ManagesComponent</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ws</value>
- </regnode>
- <connpoint role="dst" target="id-0065-00000014"/>
- <connpoint role="src" target="id-0065-00000016"/>
- </connection>
- </model>
- <reference id="id-0067-00000009" kind="FileRef" role="FileRef" relid="0x1" referred="id-0065-00000001">
- <name>FileRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="InterfaceDefinition" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,201</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- </folder>
- <folder id="id-006a-00000003" relid="0x1" childrelidcntr="0xb" kind="PredefinedTypes">
- <name>PredefinedTypes</name>
- <atom id="id-0066-00000001" kind="TypeKind" relid="0xb">
- <name>TypeKind</name>
- </atom>
- <atom id="id-0066-00000002" kind="TypeEncoding" relid="0xa">
- <name>TypeEncoding</name>
- </atom>
- <atom id="id-0066-00000003" kind="String" relid="0x9">
- <name>String</name>
- </atom>
- <atom id="id-0066-00000004" kind="Boolean" relid="0x8">
- <name>Boolean</name>
- </atom>
- <atom id="id-0066-00000005" kind="ShortInteger" relid="0x7">
- <name>ShortInteger</name>
- </atom>
- <atom id="id-0066-00000006" kind="RealNumber" relid="0x6">
- <name>RealNumber</name>
- </atom>
- <atom id="id-0066-00000007" kind="LongInteger" relid="0x5">
- <name>LongInteger</name>
- </atom>
- <atom id="id-0066-00000008" kind="GenericValueObject" relid="0x4">
- <name>GenericValueObject</name>
- </atom>
- <atom id="id-0066-00000009" kind="GenericValue" relid="0x3">
- <name>GenericValue</name>
- </atom>
- <atom id="id-0066-0000000a" kind="GenericObject" relid="0x2">
- <name>GenericObject</name>
- </atom>
- <atom id="id-0066-0000000b" kind="Byte" relid="0x1">
- <name>Byte</name>
- </atom>
- </folder>
- <folder id="id-006a-00000004" relid="0x3" childrelidcntr="0x1" kind="ComponentImplementations">
- <name>ComponentImplementations</name>
- <model id="id-0065-00000017" kind="ComponentImplementationContainer" relid="0x1" childrelidcntr="0xb">
- <name>StockBrokerImplementation</name>
- <model id="id-0065-00000018" kind="Property" role="Property" relid="0x2" childrelidcntr="0x2">
- <name>ComponentIOR</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>282,168</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="DataValue">
- <value>StockBroker.ior</value>
- </attribute>
- <reference id="id-0067-0000000d" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003">
- <name>String</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <atom id="id-0066-0000000c" kind="MonolithicImplementation" role="MonolithicImplementation" relid="0x1">
- <name>StockBrokerMonolithicImpl</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>125,68</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </atom>
- <reference id="id-0067-0000000e" kind="ComponentRef" role="ComponentRef" relid="0x9" referred="id-0065-0000000d">
- <name>StockBrokerRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>783,557</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000021" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x3" referred="id-0066-0000000e">
- <name>StockBroker_stubRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>461,265</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000022" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x4" referred="id-0066-0000000f">
- <name>StockBroker_svntRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>566,363</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000023" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x5" referred="id-0066-00000010">
- <name>StockBroker_execRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>741,468</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-00000003" kind="ConfigProperty" role="ConfigProperty" relid="0xa">
- <name>ConfigProperty</name>
- <connpoint role="dst" target="id-0065-00000018"/>
- <connpoint role="src" target="id-0066-0000000c"/>
- </connection>
- <connection id="id-0068-00000004" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x6">
- <name>MonolithprimaryArtifact</name>
- <connpoint role="src" target="id-0066-0000000c"/>
- <connpoint role="dst" target="id-0067-00000021"/>
- </connection>
- <connection id="id-0068-00000005" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x7">
- <name>MonolithprimaryArtifact</name>
- <connpoint role="src" target="id-0066-0000000c"/>
- <connpoint role="dst" target="id-0067-00000022"/>
- </connection>
- <connection id="id-0068-00000006" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x8">
- <name>MonolithprimaryArtifact</name>
- <connpoint role="src" target="id-0066-0000000c"/>
- <connpoint role="dst" target="id-0067-00000023"/>
- </connection>
- <connection id="id-0068-00000007" kind="Implements" role="Implements" relid="0xb">
- <name>Implements</name>
- <connpoint role="src" target="id-0066-0000000c"/>
- <connpoint role="dst" target="id-0067-0000000e"/>
- </connection>
- </model>
- <model id="id-0065-00000019" kind="ComponentImplementationContainer" relid="0x2" childrelidcntr="0xb">
- <name>StockDistributorImplementation</name>
- <model id="id-0065-0000001a" kind="Property" role="Property" relid="0x2" childrelidcntr="0x2">
- <name>ComponentIOR</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>282,168</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="DataValue">
- <value>StockDistributor.ior</value>
- </attribute>
- <reference id="id-0067-0000000f" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003">
- <name>String</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <atom id="id-0066-0000000d" kind="MonolithicImplementation" role="MonolithicImplementation" relid="0x1">
- <name>StockDistributorMonolithicImpl</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>125,68</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </atom>
- <reference id="id-0067-00000010" kind="ComponentRef" role="ComponentRef" relid="0x9" referred="id-0065-00000014">
- <name>StockDistributorRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>910,568</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000024" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x3" referred="id-0066-00000011">
- <name>StockDistributor_stubRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>439,268</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000025" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x4" referred="id-0066-00000012">
- <name>StockDistributor_svntRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>596,368</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000026" kind="ImplementationArtifactReference" role="ImplementationArtifactReference" relid="0x5" referred="id-0066-00000013">
- <name>StockDistributor_execRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>753,468</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-00000008" kind="ConfigProperty" role="ConfigProperty" relid="0xa">
- <name>ConfigProperty</name>
- <connpoint role="dst" target="id-0065-0000001a"/>
- <connpoint role="src" target="id-0066-0000000d"/>
- </connection>
- <connection id="id-0068-00000009" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x6">
- <name>MonolithprimaryArtifact</name>
- <connpoint role="src" target="id-0066-0000000d"/>
- <connpoint role="dst" target="id-0067-00000024"/>
- </connection>
- <connection id="id-0068-0000000a" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x7">
- <name>MonolithprimaryArtifact</name>
- <connpoint role="src" target="id-0066-0000000d"/>
- <connpoint role="dst" target="id-0067-00000025"/>
- </connection>
- <connection id="id-0068-0000000b" kind="MonolithprimaryArtifact" role="MonolithprimaryArtifact" relid="0x8">
- <name>MonolithprimaryArtifact</name>
- <connpoint role="src" target="id-0066-0000000d"/>
- <connpoint role="dst" target="id-0067-00000026"/>
- </connection>
- <connection id="id-0068-0000000c" kind="Implements" role="Implements" relid="0xb">
- <name>Implements</name>
- <connpoint role="src" target="id-0066-0000000d"/>
- <connpoint role="dst" target="id-0067-00000010"/>
- </connection>
- </model>
- <model id="id-0065-00000023" kind="ComponentImplementationContainer" relid="0x1" childrelidcntr="0x1">
- <name>StockQuoterImplementation</name>
- <model id="id-0065-00000024" kind="ComponentAssembly" role="ComponentAssembly" relid="0x1" childrelidcntr="0x6">
- <name>StockQuoter</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>307,221</value>
- </regnode>
- </regnode>
- <regnode name="QoSModelAspect" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>331,198</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID">
- <value>EBE916A6-E4E5-469C-A8EE-EDDFCA4B9CE3</value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000025" kind="Component" role="Component" derivedfrom="id-0065-0000000d" isinstance="yes" isprimary="yes" relid="0x1" childrelidcntr="0x0">
- <name>StockBroker</name>
- <regnode name="PartRegs">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>447,116</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="UUID">
- <value>94A1586C-2E9A-4FFD-8D75-7FC5A54F6B71</value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000027" kind="InEventPort" role="InEventPort" derivedfrom="id-0067-00000008" isinstance="yes" isprimary="no" referred="id-0065-00000007" isbound="yes">
- <name>notify_in</name>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- </reference>
- <reference id="id-0067-00000028" kind="RequiredRequestPort" role="RequiredRequestPort" derivedfrom="id-0067-00000007" isinstance="yes" isprimary="no" referred="id-0065-00000005" isbound="yes">
- <name>read_quoter</name>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="multiple_connections" status="inherited">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- </reference>
- <reference id="id-0067-00000029" kind="Supports" role="Supports" derivedfrom="id-0067-00000006" isinstance="yes" isprimary="no" referred="id-0065-0000000a" isbound="yes">
- <name>Supports</name>
- </reference>
- </model>
- <model id="id-0065-00000026" kind="Component" role="Component" derivedfrom="id-0065-00000014" isinstance="yes" isprimary="yes" relid="0x2" childrelidcntr="0x0">
- <name>StockDistributor</name>
- <regnode name="PartRegs">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>83,123</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="UUID">
- <value>2DBE2452-FDE3-4399-9210-509CAC49139A</value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-00000027" kind="Attribute" role="Attribute" derivedfrom="id-0065-00000015" isinstance="yes" isprimary="no" childrelidcntr="0x0">
- <name>rate</name>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-0000002a" kind="AttributeMember" role="AttributeMember" derivedfrom="id-0067-00000020" isinstance="yes" isprimary="no" referred="id-0066-00000007" isbound="yes">
- <name>AttributeMember</name>
- </reference>
- </model>
- <reference id="id-0067-0000002b" kind="OutEventPort" role="OutEventPort" derivedfrom="id-0067-0000000c" isinstance="yes" isprimary="no" referred="id-0065-00000007" isbound="yes">
- <name>notify_out</name>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="out_event_port_type" status="meta">
- <value>DirectConnect</value>
- </attribute>
- <attribute kind="single_destination" status="inherited">
- <value>false</value>
- </attribute>
- </reference>
- <reference id="id-0067-0000002c" kind="ProvidedRequestPort" role="ProvidedRequestPort" derivedfrom="id-0067-0000000b" isinstance="yes" isprimary="no" referred="id-0065-00000005" isbound="yes">
- <name>push_quoter</name>
- <attribute kind="SpecifyIdTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="VersionTag" status="meta">
- <value></value>
- </attribute>
- <attribute kind="exclusiveProvider" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="exclusiveUser" status="meta">
- <value>false</value>
- </attribute>
- <attribute kind="optional" status="meta">
- <value>false</value>
- </attribute>
- </reference>
- <reference id="id-0067-0000002d" kind="Supports" role="Supports" derivedfrom="id-0067-0000000a" isinstance="yes" isprimary="no" referred="id-0065-00000011" isbound="yes">
- <name>Supports</name>
- </reference>
- </model>
- <atom id="id-0066-00000014" kind="PublishConnector" role="PublishConnector" relid="0x3">
- <name>PublishConnector</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>329,154</value>
- </regnode>
- </regnode>
- </regnode>
- </atom>
- <connection id="id-0068-00000017" kind="invoke" role="invoke" relid="0x4">
- <name>invoke</name>
- <connpoint role="src" target="id-0067-00000028"/>
- <connpoint role="dst" target="id-0067-0000002c"/>
- </connection>
- <connection id="id-0068-00000018" kind="publish" role="publish" relid="0x5">
- <name>publish</name>
- <connpoint role="dst" target="id-0066-00000014"/>
- <connpoint role="src" target="id-0067-0000002b"/>
- </connection>
- <connection id="id-0068-00000019" kind="deliverTo" role="deliverTo" relid="0x6">
- <name>deliverTo</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>E</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000014"/>
- <connpoint role="dst" target="id-0067-00000027"/>
- </connection>
- </model>
- </model>
- </folder>
- <folder id="id-006a-00000005" relid="0x4" childrelidcntr="0x0" kind="ImplementationArtifacts">
- <name>ImplementationArtifacts</name>
- <model id="id-0065-0000001b" kind="ArtifactContainer" relid="0x1" childrelidcntr="0xa">
- <name>StockBrokerArtifacts</name>
- <model id="id-0065-0000001c" kind="Property" role="Property" relid="0x2" childrelidcntr="0x2">
- <name>entryPoint</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,200</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="DataValue">
- <value>createStockBrokerHome_Servant</value>
- </attribute>
- <reference id="id-0067-00000011" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003">
- <name>String</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>298,193</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <model id="id-0065-0000001d" kind="Property" role="Property" relid="0x4" childrelidcntr="0x2">
- <name>entryPoint</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,432</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="DataValue">
- <value>createStockBrokerHome_Impl</value>
- </attribute>
- <reference id="id-0067-00000012" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003">
- <name>String</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>340,172</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <atom id="id-0066-0000000e" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x1">
- <name>StockBroker_stub</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>151,84</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="configuration" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label">
- <value></value>
- </attribute>
- <attribute kind="location">
- <value>StockBroker_stub</value>
- </attribute>
- </atom>
- <atom id="id-0066-0000000f" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x3">
- <name>StockBroker_svnt</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>517,316</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="configuration" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label">
- <value></value>
- </attribute>
- <attribute kind="location">
- <value>StockBroker_svnt</value>
- </attribute>
- </atom>
- <atom id="id-0066-00000010" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x5">
- <name>StockBroker_exec</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>883,548</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="configuration" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label">
- <value></value>
- </attribute>
- <attribute kind="location">
- <value>StockBroker_exec</value>
- </attribute>
- </atom>
- <connection id="id-0068-0000000d" kind="ArtifactExecParameter" role="ArtifactExecParameter" relid="0x7">
- <name>ArtifactExecParameter</name>
- <connpoint role="dst" target="id-0065-0000001c"/>
- <connpoint role="src" target="id-0066-0000000f"/>
- </connection>
- <connection id="id-0068-0000000e" kind="ArtifactDependency" role="ArtifactDependency" relid="0x8">
- <name>ArtifactDependency</name>
- <connpoint role="dst" target="id-0066-0000000e"/>
- <connpoint role="src" target="id-0066-0000000f"/>
- </connection>
- <connection id="id-0068-0000000f" kind="ArtifactExecParameter" role="ArtifactExecParameter" relid="0x8">
- <name>ArtifactExecParameter</name>
- <connpoint role="dst" target="id-0065-0000001d"/>
- <connpoint role="src" target="id-0066-00000010"/>
- </connection>
- <connection id="id-0068-00000010" kind="ArtifactDependency" role="ArtifactDependency" relid="0x9">
- <name>ArtifactDependency</name>
- <connpoint role="dst" target="id-0066-0000000f"/>
- <connpoint role="src" target="id-0066-00000010"/>
- </connection>
- <connection id="id-0068-00000011" kind="ArtifactDependency" role="ArtifactDependency" relid="0xa">
- <name>ArtifactDependency</name>
- <connpoint role="dst" target="id-0066-0000000e"/>
- <connpoint role="src" target="id-0066-00000010"/>
- </connection>
- </model>
- <model id="id-0065-0000001e" kind="ArtifactContainer" relid="0x2" childrelidcntr="0xa">
- <name>StockDistributorArtifacts</name>
- <model id="id-0065-0000001f" kind="Property" role="Property" relid="0x2" childrelidcntr="0x2">
- <name>entryPoint</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>334,200</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="DataValue">
- <value>createStockDistributorHome_Servant</value>
- </attribute>
- <reference id="id-0067-00000013" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003">
- <name>String</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <model id="id-0065-00000020" kind="Property" role="Property" relid="0x4" childrelidcntr="0x2">
- <name>entryPoint</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>700,432</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="DataValue">
- <value>createStockDistributorHome_Impl</value>
- </attribute>
- <reference id="id-0067-00000014" kind="DataType" role="DataType" relid="0x2" referred="id-0066-00000003">
- <name>String</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>518,318</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <atom id="id-0066-00000011" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x1">
- <name>StockDistributor_stub</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>151,84</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="configuration" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label">
- <value></value>
- </attribute>
- <attribute kind="location">
- <value>StockDistributor_stub</value>
- </attribute>
- </atom>
- <atom id="id-0066-00000012" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x3">
- <name>StockDistributor_svnt</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>517,316</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="configuration" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label">
- <value></value>
- </attribute>
- <attribute kind="location">
- <value>StockDistributor_svnt</value>
- </attribute>
- </atom>
- <atom id="id-0066-00000013" kind="ImplementationArtifact" role="ImplementationArtifact" relid="0x5">
- <name>StockDistributor_exec</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>883,548</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="configuration" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label">
- <value></value>
- </attribute>
- <attribute kind="location">
- <value>StockDistributor_exec</value>
- </attribute>
- </atom>
- <connection id="id-0068-00000012" kind="ArtifactExecParameter" role="ArtifactExecParameter" relid="0x7">
- <name>ArtifactExecParameter</name>
- <connpoint role="dst" target="id-0065-0000001f"/>
- <connpoint role="src" target="id-0066-00000012"/>
- </connection>
- <connection id="id-0068-00000013" kind="ArtifactDependency" role="ArtifactDependency" relid="0x8">
- <name>ArtifactDependency</name>
- <connpoint role="dst" target="id-0066-00000011"/>
- <connpoint role="src" target="id-0066-00000012"/>
- </connection>
- <connection id="id-0068-00000014" kind="ArtifactExecParameter" role="ArtifactExecParameter" relid="0x8">
- <name>ArtifactExecParameter</name>
- <connpoint role="dst" target="id-0065-00000020"/>
- <connpoint role="src" target="id-0066-00000013"/>
- </connection>
- <connection id="id-0068-00000015" kind="ArtifactDependency" role="ArtifactDependency" relid="0x9">
- <name>ArtifactDependency</name>
- <connpoint role="dst" target="id-0066-00000012"/>
- <connpoint role="src" target="id-0066-00000013"/>
- </connection>
- <connection id="id-0068-00000016" kind="ArtifactDependency" role="ArtifactDependency" relid="0xa">
- <name>ArtifactDependency</name>
- <connpoint role="dst" target="id-0066-00000011"/>
- <connpoint role="src" target="id-0066-00000013"/>
- </connection>
- </model>
- </folder>
- <folder id="id-006a-00000006" relid="0x5" childrelidcntr="0x0" kind="ComponentTypes">
- <name>ComponentTypes</name>
- <model id="id-0065-00000021" kind="ComponentContainer" relid="0x1" childrelidcntr="0x1">
- <name>StockBrokerContainer</name>
- <reference id="id-0067-00000015" kind="ComponentRef" role="ComponentRef" relid="0x1" referred="id-0065-0000000d">
- <name>StockBrokerRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>244,214</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- <model id="id-0065-00000022" kind="ComponentContainer" relid="0x2" childrelidcntr="0x1">
- <name>StockDistributorContainer</name>
- <reference id="id-0067-00000016" kind="ComponentRef" role="ComponentRef" relid="0x1" referred="id-0065-00000014">
- <name>StockDistributorRef</name>
- <regnode name="PartRegs" isopaque="yes">
- <value></value>
- <regnode name="Packaging" isopaque="yes">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>202,249</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- </model>
- </folder>
- <folder id="id-006a-00000007" relid="0x6" childrelidcntr="0x1" kind="PackageConfigurations">
- <name>PackageConfigurations</name>
- <model id="id-0065-0000002b" kind="PackageConfigurationContainer" relid="0x1" childrelidcntr="0x2">
- <name>Default</name>
- <atom id="id-0066-00000018" kind="PackageConfiguration" role="PackageConfiguration" relid="0x1">
- <name>Default</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>163,226</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </atom>
- <reference id="id-0067-00000033" kind="ComponentPackageReference" role="ComponentPackageReference" relid="0x2" referred="id-0066-00000017">
- <name>StockQuoter</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>391,230</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="requiredName" status="meta">
- <value></value>
- </attribute>
- <attribute kind="requiredType" status="meta">
- <value></value>
- </attribute>
- <attribute kind="requiredUUID" status="meta">
- <value></value>
- </attribute>
- </reference>
- </model>
- </folder>
- <folder id="id-006a-00000008" relid="0x7" childrelidcntr="0x3" kind="ComponentPackages">
- <name>ComponentPackages</name>
- <model id="id-0065-00000028" kind="PackageContainer" relid="0x1" childrelidcntr="0x5">
- <name>Broker</name>
- <atom id="id-0066-00000015" kind="ComponentPackage" role="ComponentPackage" relid="0x1">
- <name>Broker</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>272,195</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </atom>
- <reference id="id-0067-0000002e" kind="ComponentImplementationReference" role="ComponentImplementationReference" relid="0x2" referred="id-0066-0000000c">
- <name>Broker</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>96,194</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-0000002f" kind="ComponentRef" role="ComponentRef" relid="0x3" referred="id-0065-0000000d">
- <name>Broker</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>440,172</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-0000001b" kind="Implementation" role="Implementation" relid="0x4">
- <name>Implementation</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>We</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000015"/>
- <connpoint role="dst" target="id-0067-0000002e"/>
- </connection>
- <connection id="id-0068-0000001c" kind="PackageInterface" role="PackageInterface" relid="0x5">
- <name>PackageInterface</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ew</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000015"/>
- <connpoint role="dst" target="id-0067-0000002f"/>
- </connection>
- </model>
- <model id="id-0065-00000029" kind="PackageContainer" relid="0x2" childrelidcntr="0x5">
- <name>Distributor</name>
- <atom id="id-0066-00000016" kind="ComponentPackage" role="ComponentPackage" relid="0x2">
- <name>Distributor</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>272,195</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </atom>
- <reference id="id-0067-00000030" kind="ComponentImplementationReference" role="ComponentImplementationReference" relid="0x1" referred="id-0066-0000000d">
- <name>Distributor</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>96,194</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000031" kind="ComponentRef" role="ComponentRef" relid="0x3" referred="id-0065-00000014">
- <name>Distributor</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>440,172</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-0000001d" kind="Implementation" role="Implementation" relid="0x4">
- <name>Implementation</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>We</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000016"/>
- <connpoint role="dst" target="id-0067-00000030"/>
- </connection>
- <connection id="id-0068-0000001e" kind="PackageInterface" role="PackageInterface" relid="0x5">
- <name>PackageInterface</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ew</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000016"/>
- <connpoint role="dst" target="id-0067-00000031"/>
- </connection>
- </model>
- <model id="id-0065-0000002a" kind="PackageContainer" relid="0x3" childrelidcntr="0x3">
- <name>StockQuoter</name>
- <atom id="id-0066-00000017" kind="ComponentPackage" role="ComponentPackage" relid="0x2">
- <name>StockQuoter</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>391,125</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </atom>
- <reference id="id-0067-00000032" kind="ComponentImplementationReference" role="ComponentImplementationReference" relid="0x1" referred="id-0065-00000024">
- <name>StockQuoter</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>96,103</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-0000001f" kind="Implementation" role="Implementation" relid="0x3">
- <name>Implementation</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>We</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000017"/>
- <connpoint role="dst" target="id-0067-00000032"/>
- </connection>
- </model>
- </folder>
- <folder id="id-006a-00000009" relid="0x8" childrelidcntr="0x1" kind="DeploymentPlans">
- <name>DeploymentPlans</name>
- <model id="id-0065-00000030" kind="DeploymentPlan" relid="0x1" childrelidcntr="0x8">
- <name>Plan</name>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <reference id="id-0067-00000035" kind="NodeReference" role="NodeReference" relid="0x3" referred="id-0065-0000002e">
- <name>Node_Broker</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="NodeMapping" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>284,137</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000036" kind="NodeReference" role="NodeReference" relid="0x4" referred="id-0065-0000002f">
- <name>Node_Distributor</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="NodeMapping" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>284,298</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000037" kind="ComponentRef" role="ComponentRef" relid="0x5" referred="id-0065-00000025">
- <name>StockBroker</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="NodeMapping" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>412,95</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <reference id="id-0067-00000038" kind="ComponentRef" role="ComponentRef" relid="0x6" referred="id-0065-00000026">
- <name>StockDistributor</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="NodeMapping" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>412,270</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-00000021" kind="InstanceMapping" role="InstanceMapping" relid="0x7">
- <name>InstanceMapping</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ew</value>
- </regnode>
- <connpoint role="dst" target="id-0067-00000035"/>
- <connpoint role="src" target="id-0069-00000001"/>
- </connection>
- <connection id="id-0068-00000022" kind="InstanceMapping" role="InstanceMapping" relid="0x8">
- <name>InstanceMapping</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ew</value>
- </regnode>
- <connpoint role="dst" target="id-0067-00000036"/>
- <connpoint role="src" target="id-0069-00000002"/>
- </connection>
- <set id="id-0069-00000001" kind="CollocationGroup" role="CollocationGroup" relid="0x1" members="id-0067-00000037">
- <name>CollocationGroup</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="NodeMapping" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>118,125</value>
- </regnode>
- </regnode>
- </regnode>
- </set>
- <set id="id-0069-00000002" kind="CollocationGroup" role="CollocationGroup" relid="0x2" members="id-0067-00000038">
- <name>CollocationGroup</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="NodeMapping" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>97,279</value>
- </regnode>
- </regnode>
- </regnode>
- </set>
- </model>
- </folder>
- <folder id="id-006a-0000000a" relid="0x9" childrelidcntr="0x1" kind="Targets">
- <name>Targets</name>
- <model id="id-0065-0000002d" kind="Domain" relid="0x1" childrelidcntr="0x2">
- <name>Domain</name>
- <attribute kind="UUID" status="meta">
- <value></value>
- </attribute>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- <model id="id-0065-0000002e" kind="Node" role="Node" relid="0x1" childrelidcntr="0x0">
- <name>Broker</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Target" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>198,261</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </model>
- <model id="id-0065-0000002f" kind="Node" role="Node" relid="0x2" childrelidcntr="0x0">
- <name>Distributor</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Target" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>394,310</value>
- </regnode>
- </regnode>
- </regnode>
- <attribute kind="label" status="meta">
- <value></value>
- </attribute>
- </model>
- </model>
- </folder>
- <folder id="id-006a-0000000b" relid="0xa" childrelidcntr="0x1" kind="TopLevelPackages">
- <name>TopLevelPackages</name>
- <model id="id-0065-0000002c" kind="TopLevelPackageContainer" relid="0x1" childrelidcntr="0x3">
- <name>Default</name>
- <atom id="id-0066-00000019" kind="TopLevelPackage" role="TopLevelPackage" relid="0x1">
- <name>TopLevelPackage</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>132,275</value>
- </regnode>
- </regnode>
- </regnode>
- </atom>
- <reference id="id-0067-00000034" kind="PackageConfigurationReference" role="PackageConfigurationReference" relid="0x2" referred="id-0066-00000018">
- <name>Default</name>
- <regnode name="PartRegs" status="undefined">
- <value></value>
- <regnode name="Packaging" status="undefined">
- <value></value>
- <regnode name="Position" isopaque="yes">
- <value>370,265</value>
- </regnode>
- </regnode>
- </regnode>
- </reference>
- <connection id="id-0068-00000020" kind="package" role="package" relid="0x3">
- <name>package</name>
- <regnode name="autorouterPref" isopaque="yes">
- <value>Ew</value>
- </regnode>
- <connpoint role="src" target="id-0066-00000019"/>
- <connpoint role="dst" target="id-0067-00000034"/>
- </connection>
- </model>
- </folder>
- <folder id="id-006a-0000000c" relid="0xb" childrelidcntr="0x0" kind="ComponentBuild">
- <name>ComponentBuild</name>
- </folder>
- </folder>
-</project>
diff --git a/TAO/CIAO/docs/tutorials/CoSMIC/index.html b/TAO/CIAO/docs/tutorials/CoSMIC/index.html
deleted file mode 100644
index 30d5fde64f1..00000000000
--- a/TAO/CIAO/docs/tutorials/CoSMIC/index.html
+++ /dev/null
@@ -1,135 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
- <title>Building a Stock Quoter with TAO - A Tutorial</title>
-<!-- $Id$ -->
-</head>
-<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"
- link="#000fff" vlink="#ff0f0f">
-<h3>Building a Stock Quoter with CoSMIC and DAnCE - A Tutorial<br>
-</h3>
-<p>This tutorial provides a step-by-step lesson on developing
-component-based distributed applications using <a
- href="http://www.dre.vanderbilt.edu/cosmic/">CoSMIC</a> modeling
-toolkit and <a href="http://www.cs.wustl.edu/%7Eschmidt/CIAO.html">CIAO
-DAnCE</a> framework. The example application used in this tutorial is a
-Stock Quoter that consists of two components; the <span
- style="font-style: italic;">StockDistributor</span>
-and the <span style="font-style: italic;">StockBroker</span>. The <span
- style="font-style: italic;">StockDistributor</span>
-notifies one or more stock brokers whenever a stock price changes. Upon
-receiving the notification, the <span style="font-style: italic;">StockBroker</span>
-fetches information about a particular stock from the <span
- style="font-style: italic;">StockDistributor</span>. The figure bellow
-shows the application diagram.
-This Stock Quoter application
-is based on a series of <a
- href="http://www.cs.wustl.edu/%7Eschmidt/report-doc.html">CORBA
-component model</a> columns written by <a
- href="http://www.cs.wustl.edu/%7Eschmidt/">Doug Schmidt</a> and <a
- href="http://www.iona.com/hyplan/vinoski/">Steve Vinoski</a> for <a
- href="http://www.cuj.com">C/C++ Users Journal</a> and has consistently
-been
-used as an example for <a
- href="http://www.cs.wustl.edu/%7Eschmidt/TAO.html">TAO</a>.<br>
-</p>
-<div style="text-align: center;"><img alt="" src="Images/fig1.jpg"
- style="width: 362px; height: 193px;"><br>
-<br>
-Stock Quoter application Diagram <br>
-</div>
-<p>This tutorial will show you how to use generic modeling techniques <a
- href="http://www.dre.vanderbilt.edu/cosmic/">CoSMIC</a> to assist the
-development process of CIAO applications. All the necessary steps to
-build a component-based application model via <a
- href="http://www.dre.vanderbilt.edu/cosmic/">CoSMIC</a>
-toolkit are documented here.
-</p>
-<blockquote>
- <hr><strong>Note:</strong> <br>
-1. Although the descriptor files generated by CoSMIC toolkits are
-portable, the modeling environment required by CoSMIC (GME) only
-supports MS Windows platforms currently. So this tutorial will focus on
-Windows users.<br>
-2. The CIAO/DAnCE codes used for this tutorial <span
- style="font-family: monospace;">can be found in </span><code>%CIAO_ROOT%/docs/tutorials/Quoter/Simple</code>.
- <br>
-3. The current tutorial is tested under GME 5.9.21, and&nbsp; CosMIC
-0.4.8. It will be subject to change as version of GME and CoSMIC
-evolves.<br>
- <hr></blockquote>
-<span style="font-weight: bold;"><big>Prerequisite<br>
-<br>
-</big></span>&nbsp;&nbsp;&nbsp;Before you start,
-you need the following:<br>
-&nbsp;&nbsp;&nbsp;&nbsp; 1. ACE+TAO+CIAO (Component Integraated
-ACE ORB)<br>
-&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACE + TAO + CIAO provide the CCM
-infrastructure necessary to enable the CCM-based distributed component
-interaction. You can click <a
- href="http://deuce.doc.wustl.edu/Download.html"> here</a> to download
-the latest
-ACE + TAO + CIAO and click <a
- href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/TAO/CIAO/CIAO-INSTALL.html">here</a>
-for information on how
-to build ACE+TAO+CIAO.<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. GME (Generic Modeling Environment)<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
- class="intbody">GME is a configurable toolkit for creating
-domain-specific modeling and program synthesis environments. It
-provides the execution environment for CoSMIC toolkits. Click
-<a href="http://www.isis.vanderbilt.edu/Projects/gme/download.html">here</a>
-to download
-GME.<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3. CoSMIC toolkit<br>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Click
-<a href="http://www.dre.vanderbilt.edu/cosmic/">here</a> to download
-the
-latest CoSMIC release.<br>
-<blockquote>
- <hr> <strong>Note:</strong><br>
-1.Usually you should download the latest GME, but it is possible that
-CoSMIC hasn't been updated yet to support the very latest GME..The
-installation process of CoSMIC will tell you which version it is
-expecting.&nbsp; So <span class="intbody">please make sure the GME
-version you are using is the version required by CoSMIC. A different
-version of </span>GME may result in
-undefined errors. <br>
-2.Make susre that you
-install GME first before you start with CoSMIC toolkits.<br>
- <hr></blockquote>
-</span><br>
-<a style="font-weight: bold;" href="01.html">Getting Started</a><br>
-<br>
-&nbsp;&nbsp; This section describes the IDL files used by the example
-and
-shows you how to import IDL into <a
- href="http://www.cs.wustl.edu/%7Eschmidt/PDF/RTAS05-PICML.pdf">
-PICML (Platform-Independent Component Modeling Language)</a>; a
-domain-specific modeling language which is defined using GME. PICML is
-designed to help to bridge the gap between design-time verification and
-model-checking tools and the deployment of component implementations.
-<br>
-<br>
-<a style="font-weight: bold;" href="02.html">Modeling
-StockQuoter system with PICML</a><br>
-<br>
-&nbsp;&nbsp;&nbsp; This section describes how to model the Stock
-Quoter components in PICML.<br>
-&nbsp;&nbsp;&nbsp;&nbsp; <br>
-<a href="03.html"><b>Implementing Quoter components with DAnCE</b></a><br>
-<br>
-&nbsp;&nbsp;&nbsp; This section provides codes for the Quoter example.<br>
-<br>
-<a style="font-weight: bold;" href="04.html">Running the application</a><br>
-<br>
-&nbsp;&nbsp; After all the components and descriptors generated by
-PICML are in place. You are ready to compile and run the application.<br>
-<br>
-<hr>
-<address><a href="mailto:ming.xiong@vanderbilt.edu">Ming Xiong<br>
-</a></address>
-<!-- Created: Sat Nov 27 15:25:06 CST 1999 --><!-- hhmts start -->
-Last modified:<!-- hhmts end -->
-</body>
-</html>
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cpp b/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cpp
index 330b4419477..4c284e26fb0 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cpp
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.cpp
@@ -17,7 +17,7 @@ const char *unsubscribe_name = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:s:u:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:s:u:");
int c;
while ((c = get_opts ()) != -1)
@@ -52,7 +52,7 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.mpc b/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.mpc
index 70d9efbce53..724277307ed 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.mpc
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p Stock_Base Broker"
project(Stock_Base_Broker_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Stock_Base_stub
sharedname = Broker_stub
idlflags += -Wb,stub_export_macro=BROKER_STUB_Export -Wb,stub_export_include=Broker_stub_export.h -Wb,skel_export_macro=BROKER_SVNT_Export -Wb,skel_export_include=Broker_svnt_export.h
@@ -19,7 +18,6 @@ project(Stock_Base_Broker_stub): ciao_client_dnc {
}
project(Stock_Base_Broker_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Stock_Base_svnt Stock_Base_Broker_stub
sharedname = Broker_svnt
libs += Broker_stub Stock_Base_stub Stock_Base_svnt
@@ -44,7 +42,6 @@ project(Stock_Base_Broker_svnt) : ciao_servant_dnc {
project(Stock_Base_Broker_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += Stock_Base_Broker_svnt
sharedname = Broker_exec
libs += Broker_stub Broker_svnt Stock_Base_stub Stock_Base_svnt
@@ -64,7 +61,6 @@ project(Stock_Base_Broker_exec) : ciao_component_dnc {
project (Stock_Broker) : ciao_client_dnc, valuetype{
- avoids += ace_for_tao
exename = Broker
after += Stock_Base_Broker_stub
libs += Broker_stub Stock_Base_stub
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp b/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
index 9332d1a3e0c..3ba0c93cf81 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.cpp
@@ -17,7 +17,7 @@ int turn_on = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:r:of");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:r:of");
int c;
while ((c = get_opts ()) != -1)
@@ -58,7 +58,7 @@ parse_args (int argc, char *argv[])
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc b/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc
index 295c8d0004c..014838a3b5a 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/Distributor/Distributor.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p Stock_Base Distributor"
project(Stock_Base_Distributor_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Stock_Base_stub
sharedname = Distributor_stub
idlflags += -Wb,stub_export_macro=DISTRIBUTOR_STUB_Export -Wb,stub_export_include=Distributor_stub_export.h -Wb,skel_export_macro=DISTRIBUTOR_SVNT_Export -Wb,skel_export_include=Distributor_svnt_export.h
@@ -20,7 +19,6 @@ project(Stock_Base_Distributor_stub): ciao_client_dnc {
}
project(Stock_Base_Distributor_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Stock_Base_svnt Stock_Base_Distributor_stub
sharedname = Distributor_svnt
libs += Distributor_stub Stock_Base_stub Stock_Base_svnt
@@ -45,7 +43,6 @@ project(Stock_Base_Distributor_svnt) : ciao_servant_dnc {
project(Stock_Base_Distributor_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += Stock_Base_Distributor_svnt
sharedname = Distributor_exec
libs += Distributor_stub Distributor_svnt Stock_Base_stub Stock_Base_svnt
@@ -65,7 +62,6 @@ project(Stock_Base_Distributor_exec) : ciao_component_dnc {
project (Stock_Distributor) : ciao_client_dnc, valuetype{
- avoids += ace_for_tao
exename = Distributor
after += Stock_Base_Distributor_stub
libs += Distributor_stub Stock_Base_stub
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl b/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl
index b038cdca509..a107b070529 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl
@@ -5,7 +5,6 @@
module Stock
{
exception Invalid_Stock {};
- typedef sequence<octet> ImageBlob;
/**
* @struct StockInfo
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc b/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc
index f652394bee3..b294d5db74e 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.mpc
@@ -1,7 +1,7 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Stock_Base"
-project(Stock_Base_stub): ciao_component_dnc {
+project(Stock_Base_stub): ciao_client_dnc {
sharedname = Stock_Base_stub
idlflags += -Wb,stub_export_macro=STOCK_BASE_STUB_Export -Wb,stub_export_include=Stock_Base_stub_export.h -Wb,skel_export_macro=STOCK_BASE_SVNT_Export -Wb,skel_export_include=Stock_Base_svnt_export.h
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad b/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad
index 2944181e015..176cb624872 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Broker_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Stock_StockBrokerHome_Servant</string>
+ <string>createStockBrokerHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad b/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad
index 7643089044f..bb253b468d7 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/Distributor_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Stock_StockDistributorHome_Servant</string>
+ <string>createStockDistributorHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp b/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
index 86f7c27b786..fb989627a2b 100644
--- a/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
+++ b/TAO/CIAO/docs/tutorials/Quoter/Simple/descriptors/flattened_deploymentplan.cdp
@@ -147,7 +147,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Stock_StockDistributorHome_Servant</string>
+ <string>createStockDistributorHome_Servant</string>
</value>
</value>
</execParameter>
@@ -190,7 +190,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Stock_StockBrokerHome_Servant</string>
+ <string>createStockBrokerHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED.mpc b/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED.mpc
index d08061594a0..652dab2f7a3 100644
--- a/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED.mpc
+++ b/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED.mpc
@@ -3,7 +3,6 @@
// This file has been manually modified to add a second component implementation.
project(BMClosedED_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_stub
sharedname = BMClosedED_stub
@@ -26,7 +25,6 @@ project(BMClosedED_DnC_stub): ciao_client_dnc {
}
project(BMClosedED_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_svnt BMClosedED_DnC_stub
sharedname = BMClosedED_svnt
@@ -58,7 +56,6 @@ project(BMClosedED_DnC_svnt) : ciao_servant_dnc {
project(BMClosedED_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += BMClosedED_DnC_svnt
sharedname = BMClosedED_exec
diff --git a/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED_exec.cpp b/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED_exec.cpp
index 12b3d28ea98..ddf343d9277 100644
--- a/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED_exec.cpp
+++ b/TAO/CIAO/examples/BasicSP/BMClosedED/BMClosedED_exec.cpp
@@ -67,7 +67,7 @@ MyImpl::BMClosedED_exec_i::push_in_avail (BasicSP::DataAvailable *
str.in ()));
}
- if (ACE_OS::strcmp (str.in (), "BM DEVICE DATA") == 0)
+ if (ACE_OS::strcmp (str, "BM DEVICE DATA") == 0)
{
this->str_ = CORBA::string_dup ("BM CLOSED ED DATA");
}
diff --git a/TAO/CIAO/examples/BasicSP/BMDevice/BMDevice.mpc b/TAO/CIAO/examples/BasicSP/BMDevice/BMDevice.mpc
index 90212cc63ec..a58ba4a18fe 100644
--- a/TAO/CIAO/examples/BasicSP/BMDevice/BMDevice.mpc
+++ b/TAO/CIAO/examples/BasicSP/BMDevice/BMDevice.mpc
@@ -1,7 +1,6 @@
// $Id$
project(BMDevice_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_stub
sharedname = BMDevice_stub
@@ -20,7 +19,6 @@ project(BMDevice_DnC_stub): ciao_client_dnc {
}
project(BMDevice_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += BMDevice_DnC_stub BasicSP_DnC_stub
sharedname = BMDevice_svnt
libs += BMDevice_stub BasicSP_stub BasicSP_svnt
@@ -45,7 +43,6 @@ project(BMDevice_DnC_svnt) : ciao_servant_dnc {
project(BMDevice_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += BMDevice_DnC_svnt
sharedname = BMDevice_exec
libs += BMDevice_stub BMDevice_svnt BasicSP_stub BasicSP_svnt
diff --git a/TAO/CIAO/examples/BasicSP/BMDisplay/BMDisplay.mpc b/TAO/CIAO/examples/BasicSP/BMDisplay/BMDisplay.mpc
index 35e0c3196f0..5a28ed1b783 100644
--- a/TAO/CIAO/examples/BasicSP/BMDisplay/BMDisplay.mpc
+++ b/TAO/CIAO/examples/BasicSP/BMDisplay/BMDisplay.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -l .. -p BasicSP -i BMDisplay"
project(BMDisplay_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_stub
sharedname = BMDisplay_stub
@@ -25,7 +24,6 @@ project(BMDisplay_DnC_stub): ciao_client_dnc {
}
project(BMDisplay_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_svnt BMDisplay_DnC_stub
sharedname = BMDisplay_svnt
@@ -56,7 +54,6 @@ project(BMDisplay_DnC_svnt) : ciao_servant_dnc {
project(BMDisplay_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += BMDisplay_DnC_svnt
sharedname = BMDisplay_exec
diff --git a/TAO/CIAO/examples/BasicSP/BasicSP.mpc b/TAO/CIAO/examples/BasicSP/BasicSP.mpc
index b0b9999b3d2..20f682a413b 100644
--- a/TAO/CIAO/examples/BasicSP/BasicSP.mpc
+++ b/TAO/CIAO/examples/BasicSP/BasicSP.mpc
@@ -1,7 +1,7 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n HUDisplay"
-project(BasicSP_DnC_stub): ciao_component_dnc {
+project(BasicSP_DnC_stub): ciao_client_dnc {
sharedname = BasicSP_stub
idlflags += -Wb,stub_export_macro=BASICSP_STUB_Export -Wb,stub_export_include=BasicSP_stub_export.h -Wb,skel_export_macro=BASICSP_SVNT_Export -Wb,skel_export_include=BasicSP_svnt_export.h
diff --git a/TAO/CIAO/examples/BasicSP/EC/EC.mpc b/TAO/CIAO/examples/BasicSP/EC/EC.mpc
index 6c318154655..2b0362f66ba 100644
--- a/TAO/CIAO/examples/BasicSP/EC/EC.mpc
+++ b/TAO/CIAO/examples/BasicSP/EC/EC.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -l .. -p BasicSP -i -c EC"
project(EC_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_stub
sharedname = EC_stub
@@ -26,7 +25,6 @@ project(EC_DnC_stub): ciao_client_dnc {
}
project(EC_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += BasicSP_DnC_svnt EC_DnC_stub
sharedname = EC_svnt
@@ -56,11 +54,10 @@ project(EC_DnC_svnt) : ciao_servant_dnc {
project(EC_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += EC_DnC_svnt
sharedname = EC_exec
- libs += EC_stub BasicSP_stub BasicSP_svnt EC_svnt
+ libs += EC_stub BasicSP_stub EC_svnt
libpaths += ..
@@ -82,7 +79,6 @@ project(EC_DnC_exec) : ciao_component_dnc {
project (EC_DnC_client) : ciao_client_dnc, valuetype {
- avoids += ace_for_tao
exename = client
after += EC_DnC_stub
libs += EC_stub BasicSP_stub
@@ -98,7 +94,6 @@ project (EC_DnC_client) : ciao_client_dnc, valuetype {
project (EC_DnC_controller) : ciao_client_dnc, valuetype {
- avoids += ace_for_tao
exename = controller
after += EC_DnC_stub
libs += EC_stub BasicSP_stub
diff --git a/TAO/CIAO/examples/BasicSP/EC/EC_exec.h b/TAO/CIAO/examples/BasicSP/EC/EC_exec.h
index db95a5deaa4..057f8f70f14 100644
--- a/TAO/CIAO/examples/BasicSP/EC/EC_exec.h
+++ b/TAO/CIAO/examples/BasicSP/EC/EC_exec.h
@@ -62,7 +62,7 @@ namespace MyImpl
int done_;
/// The timer id we are waiting.
- long tid_;
+ int tid_;
EC_exec_i *pulse_callback_;
diff --git a/TAO/CIAO/examples/BasicSP/EC/client.cpp b/TAO/CIAO/examples/BasicSP/EC/client.cpp
index 2c2f34118bc..7b3c62c776f 100644
--- a/TAO/CIAO/examples/BasicSP/EC/client.cpp
+++ b/TAO/CIAO/examples/BasicSP/EC/client.cpp
@@ -16,7 +16,7 @@
#include "ace/OS_NS_unistd.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/examples/BasicSP/EC/controller.cpp b/TAO/CIAO/examples/BasicSP/EC/controller.cpp
index d52ac54dba9..0bd9a112e7f 100644
--- a/TAO/CIAO/examples/BasicSP/EC/controller.cpp
+++ b/TAO/CIAO/examples/BasicSP/EC/controller.cpp
@@ -18,7 +18,7 @@ int turn_on = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:r:of");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:r:of");
int c;
while ((c = get_opts ()) != -1)
@@ -70,7 +70,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad b/TAO/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad
index dd086ff5f23..cb27b660286 100644
--- a/TAO/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad
+++ b/TAO/CIAO/examples/BasicSP/descriptors/Airframe_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_BMClosedEDHome_Servant</string>
+ <string>createBMClosedEDHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad b/TAO/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad
index 3f4f592cf3f..a087459cc84 100644
--- a/TAO/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad
+++ b/TAO/CIAO/examples/BasicSP/descriptors/GPS_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_BMDeviceHome_Servant</string>
+ <string>createBMDeviceHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad b/TAO/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad
index c6b0e7a34ea..05acef61d72 100644
--- a/TAO/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad
+++ b/TAO/CIAO/examples/BasicSP/descriptors/NavDisplay_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_BMDisplayHome_Servant</string>
+ <string>createBMDisplayHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad b/TAO/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad
index 0082291e27f..f870112f143 100644
--- a/TAO/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad
+++ b/TAO/CIAO/examples/BasicSP/descriptors/Timer_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_ECHome_Servant</string>
+ <string>createECHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp b/TAO/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp
index d3aa1197327..03f5d22d057 100644
--- a/TAO/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp
+++ b/TAO/CIAO/examples/BasicSP/descriptors/flattened_deploymentplan.cdp
@@ -263,7 +263,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_BMClosedEDHome_Servant</string>
+ <string>createBMClosedEDHome_Servant</string>
</value>
</value>
</execParameter>
@@ -318,7 +318,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_BMDeviceHome_Servant</string>
+ <string>createBMDeviceHome_Servant</string>
</value>
</value>
</execParameter>
@@ -356,7 +356,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_BMDisplayHome_Servant</string>
+ <string>createBMDisplayHome_Servant</string>
</value>
</value>
</execParameter>
@@ -393,7 +393,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_BasicSP_ECHome_Servant</string>
+ <string>createECHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/Display/GPS/GPS.mpc b/TAO/CIAO/examples/Display/GPS/GPS.mpc
index 179370dc95b..9722a2747b9 100644
--- a/TAO/CIAO/examples/Display/GPS/GPS.mpc
+++ b/TAO/CIAO/examples/Display/GPS/GPS.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p HUDisplay GPS"
project(GPS_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += HUDisplay_DnC_stub
sharedname = GPS_DnC_stub
idlflags += -Wb,stub_export_macro=GPS_STUB_Export -Wb,stub_export_include=GPS_stub_export.h -Wb,skel_export_macro=GPS_SVNT_Export -Wb,skel_export_include=GPS_svnt_export.h
@@ -20,7 +19,6 @@ project(GPS_DnC_stub): ciao_client_dnc {
}
project(GPS_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += GPS_DnC_svnt GPS_DnC_stub HUDisplay_DnC_svnt
sharedname = GPS_DnC_svnt
libs += GPS_DnC_stub HUDisplay_DnC_stub HUDisplay_DnC_svnt
@@ -45,7 +43,6 @@ project(GPS_DnC_svnt) : ciao_servant_dnc {
project(GPS_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += GPS_DnC_svnt
sharedname = GPS_DnC_exec
libs += GPS_DnC_stub GPS_DnC_svnt HUDisplay_DnC_stub HUDisplay_DnC_svnt
diff --git a/TAO/CIAO/examples/Display/HUDisplay.mpc b/TAO/CIAO/examples/Display/HUDisplay.mpc
index a7391f6792a..29016a5c4d6 100644
--- a/TAO/CIAO/examples/Display/HUDisplay.mpc
+++ b/TAO/CIAO/examples/Display/HUDisplay.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n HUDisplay"
-project(HUDisplay_DnC_stub): ciao_component_dnc {
-
+project(HUDisplay_DnC_stub): ciao_client_dnc {
+
sharedname = HUDisplay_DnC_stub
idlflags += -Wb,stub_export_macro=HUDISPLAY_STUB_Export -Wb,stub_export_include=HUDisplay_stub_export.h -Wb,skel_export_macro=HUDISPLAY_SVNT_Export -Wb,skel_export_include=HUDisplay_svnt_export.h
dynamicflags = HUDISPLAY_STUB_BUILD_DLL
@@ -19,20 +19,20 @@ project(HUDisplay_DnC_stub): ciao_component_dnc {
project(HUDisplay_DnC_svnt) : ciao_servant_dnc {
after += HUDisplay_DnC_stub
sharedname = HUDisplay_DnC_svnt
- libs += HUDisplay_DnC_stub
-
+ libs += HUDisplay_DnC_stub
+
//idlflags += -Wb,export_macro=HUDISPLAY_SVNT_Export -Wb,export_include=HUDisplay_svnt_export.h
-
+
idlflags += -Wb,stub_export_macro=HUDISPLAY_STUB_Export -Wb,stub_export_include=HUDisplay_stub_export.h -Wb,skel_export_macro=HUDISPLAY_SVNT_Export -Wb,skel_export_include=HUDisplay_svnt_export.h
-
+
dynamicflags = HUDISPLAY_SVNT_BUILD_DLL
-
+
Source_Files {
-
+
HUDisplayS.cpp
-
+
}
}
diff --git a/TAO/CIAO/examples/Display/NavDisplay/NavDisplay.mpc b/TAO/CIAO/examples/Display/NavDisplay/NavDisplay.mpc
index 667c96250b8..5aeaaa0ef8a 100644
--- a/TAO/CIAO/examples/Display/NavDisplay/NavDisplay.mpc
+++ b/TAO/CIAO/examples/Display/NavDisplay/NavDisplay.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p HUDisplay NavDisplay"
project(NavDisplay_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += HUDisplay_DnC_stub
sharedname = NavDisplay_DnC_stub
idlflags += -Wb,stub_export_macro=NAVDISPLAY_STUB_Export -Wb,stub_export_include=NavDisplay_stub_export.h -Wb,skel_export_macro=NAVDISPLAY_SVNT_Export -Wb,skel_export_include=NavDisplay_svnt_export.h
@@ -18,7 +17,6 @@ project(NavDisplay_DnC_stub): ciao_client_dnc {
}
project(NavDisplay_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += HUDisplay_DnC_svnt NavDisplay_DnC_stub
sharedname = NavDisplay_DnC_svnt
libs += NavDisplay_DnC_stub HUDisplay_DnC_stub HUDisplay_DnC_svnt
@@ -43,7 +41,6 @@ project(NavDisplay_DnC_svnt) : ciao_servant_dnc {
project(NavDisplay_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += NavDisplay_DnC_svnt
sharedname = NavDisplay_DnC_exec
libs += NavDisplay_DnC_stub NavDisplay_DnC_svnt HUDisplay_DnC_stub HUDisplay_DnC_svnt
diff --git a/TAO/CIAO/examples/Display/README.html b/TAO/CIAO/examples/Display/README.html
index 3f6958893db..3475a97dc33 100644
--- a/TAO/CIAO/examples/Display/README.html
+++ b/TAO/CIAO/examples/Display/README.html
@@ -11,11 +11,11 @@
<h2>Example Description</h2>
-<font face="Times New Roman" size="4">This example is an imaginary car
-(software) instrument assembly which updates the display of
-current coordination of the airplane periodically. It consists of
-the following three components:
-<ul>
+<font face="Times New Roman" size="4">This example is an imaginary car (software) instrument assembly which updates the display of current coordination of the airplane periodically. It consists of 3 components as shown above:
+</font>
+<p align="center"><img src="Display1.gif" border="0" height="268" width="652"></p>
+<p>Each of these components are placed in its own directory and works as
+follows:</p><ul>
<li>The <font face="Courier New">RateGen</font> component sends periodic
<font face="Courier New">Pulse</font> events to consumers according to the
rate specified in its attribute <font face="Courier New">Rate</font>, it
diff --git a/TAO/CIAO/examples/Display/RateGen/RateGen.mpc b/TAO/CIAO/examples/Display/RateGen/RateGen.mpc
index 5cdab590983..d063453a020 100644
--- a/TAO/CIAO/examples/Display/RateGen/RateGen.mpc
+++ b/TAO/CIAO/examples/Display/RateGen/RateGen.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p HUDisplay RateGen"
project(RateGen_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += HUDisplay_DnC_stub
sharedname = RateGen_DnC_stub
idlflags += -Wb,stub_export_macro=RATEGEN_STUB_Export -Wb,stub_export_include=RateGen_stub_export.h -Wb,skel_export_macro=RATEGEN_SVNT_Export -Wb,skel_export_include=RateGen_svnt_export.h
@@ -18,7 +17,6 @@ project(RateGen_DnC_stub): ciao_client_dnc {
}
project(RateGen_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += HUDisplay_DnC_svnt RateGen_DnC_stub
sharedname = RateGen_DnC_svnt
libs += RateGen_DnC_stub HUDisplay_DnC_stub HUDisplay_DnC_svnt
@@ -43,7 +41,6 @@ project(RateGen_DnC_svnt) : ciao_servant_dnc {
project(RateGen_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += RateGen_DnC_svnt
sharedname = RateGen_DnC_exec
libs += RateGen_DnC_stub RateGen_DnC_svnt HUDisplay_DnC_stub HUDisplay_DnC_svnt
@@ -63,20 +60,19 @@ project(RateGen_DnC_exec) : ciao_component_dnc {
-project (RateGen_DnC_controller) : ciao_client_dnc, valuetype {
- avoids += ace_for_tao
- exename = controller
- after += RateGen_DnC_stub
- libs += RateGen_DnC_stub HUDisplay_DnC_stub
- libpaths += ..
+ project (RateGen_DnC_controller) : ciao_client_dnc, valuetype {
+ exename = controller
+ after += RateGen_DnC_stub
+ libs += RateGen_DnC_stub HUDisplay_DnC_stub
+ libpaths += ..
- IDL_Files {
- }
+ IDL_Files {
+ }
Source_Files {
- controller.cpp
- }
+ controller.cpp
+ }
}
-
+
diff --git a/TAO/CIAO/examples/Display/RateGen/RateGen_exec.h b/TAO/CIAO/examples/Display/RateGen/RateGen_exec.h
index b6b8031c3bf..8122b1cceda 100644
--- a/TAO/CIAO/examples/Display/RateGen/RateGen_exec.h
+++ b/TAO/CIAO/examples/Display/RateGen/RateGen_exec.h
@@ -61,7 +61,7 @@ namespace MyImpl
int done_;
/// The timer id we are waiting.
- long tid_;
+ int tid_;
RateGen_exec_i *pulse_callback_;
diff --git a/TAO/CIAO/examples/Display/RateGen/controller.cpp b/TAO/CIAO/examples/Display/RateGen/controller.cpp
index f90ee66e797..3f2fa87298f 100644
--- a/TAO/CIAO/examples/Display/RateGen/controller.cpp
+++ b/TAO/CIAO/examples/Display/RateGen/controller.cpp
@@ -19,7 +19,7 @@ int turn_on = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:r:of");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:r:of");
int c;
while ((c = get_opts ()) != -1)
@@ -67,7 +67,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/examples/Display/descriptors/EM.ior b/TAO/CIAO/examples/Display/descriptors/EM.ior
new file mode 100644
index 00000000000..e177e5d5062
--- /dev/null
+++ b/TAO/CIAO/examples/Display/descriptors/EM.ior
@@ -0,0 +1 @@
+IOR:010000002400000049444c3a4349414f2f457865637574696f6e4d616e616765724461656d6f6e3a312e3000010000000000000078000000010102001b00000070616e746572612e6472652e56616e64657262696c742e4564750000c89f00001b00000014010f00525354ca168142626304000000000001000000010000000002000000000000000800000001000000004f415401000000140000000176e9b601000100000000000901010000000000 \ No newline at end of file
diff --git a/TAO/CIAO/examples/Display/descriptors/GPS.ior b/TAO/CIAO/examples/Display/descriptors/GPS.ior
new file mode 100644
index 00000000000..d5469764621
--- /dev/null
+++ b/TAO/CIAO/examples/Display/descriptors/GPS.ior
@@ -0,0 +1 @@
+IOR:010000001600000049444c3a4855446973706c61792f4750533a312e30000000010000000000000080000000010102001b00000070616e746572612e6472652e56616e64657262696c742e4564750000cc9f00002300000014010f004e5354ce1681422b8d030001000000010000000100000001000000020000000002000000000000000800000001000000004f415401000000140000000126f0b601000100000000000901010000000000 \ No newline at end of file
diff --git a/TAO/CIAO/examples/Display/descriptors/NavDisplay.ior b/TAO/CIAO/examples/Display/descriptors/NavDisplay.ior
new file mode 100644
index 00000000000..9dc8184f9a9
--- /dev/null
+++ b/TAO/CIAO/examples/Display/descriptors/NavDisplay.ior
@@ -0,0 +1 @@
+IOR:010000001d00000049444c3a4855446973706c61792f4e6176446973706c61793a312e3000000000010000000000000080000000010102001b00000070616e746572612e6472652e56616e64657262696c742e456475000038b100002300000014010f004e535400fa7842a820000001000000010000000100000001000000020000000002000000000000000800000001000000004f415401000000140000000100000001000100000000000901010000000000 \ No newline at end of file
diff --git a/TAO/CIAO/examples/Display/descriptors/NavDisplayGUI.ior b/TAO/CIAO/examples/Display/descriptors/NavDisplayGUI.ior
new file mode 100644
index 00000000000..0eefd174095
--- /dev/null
+++ b/TAO/CIAO/examples/Display/descriptors/NavDisplayGUI.ior
@@ -0,0 +1 @@
+IOR:010000001d00000049444c3a4855446973706c61792f4e6176446973706c61793a312e3000000000010000000000000080000000010102001b00000070616e746572612e6472652e56616e64657262696c742e4564750000cc9f00002300000014010f004e5354ce1681422b8d030001000000010000000500000001000000060000000002000000000000000800000001000000004f415401000000140000000100000001000100000000000901010000000000 \ No newline at end of file
diff --git a/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.idl b/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.idl
index 18b300932ee..2cd4a44cf3f 100644
--- a/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.idl
+++ b/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.idl
@@ -14,7 +14,6 @@ module Hello
eventtype TimeOut
{
- public string data;
};
};
diff --git a/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc b/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc
index c42d1c0358c..b5c00fea2c8 100644
--- a/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc
+++ b/TAO/CIAO/examples/Hello/Hello_Base/Hello_Base.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Hello_Base"
-project(Hello_Base_DnC_stub): ciao_component_dnc {
-
+project(Hello_Base_DnC_stub): ciao_client_dnc {
+
sharedname = Hello_Base_DnC_stub
idlflags += -Sc \
-Wb,stub_export_macro=HELLO_BASE_STUB_Export \
@@ -18,11 +18,11 @@ project(Hello_Base_DnC_stub): ciao_component_dnc {
Source_Files {
Hello_BaseC.cpp
}
-
+
Header_Files {
Hello_BaseC.h
}
-
+
Inline_Files {
Hello_BaseC.inl
}
@@ -31,14 +31,14 @@ project(Hello_Base_DnC_stub): ciao_component_dnc {
project(Hello_Base_DnC_svnt) : ciao_servant_dnc {
after += Hello_Base_DnC_stub
sharedname = Hello_Base_DnC_svnt
- libs += Hello_Base_DnC_stub
-
+ libs += Hello_Base_DnC_stub
+
idlflags += -Sc \
-Wb,stub_export_macro=HELLO_BASE_STUB_Export \
-Wb,stub_export_include=Hello_Base_stub_export.h \
-Wb,skel_export_macro=HELLO_BASE_SVNT_Export \
-Wb,skel_export_include=Hello_Base_svnt_export.h
- dynamicflags = HELLO_BASE_SVNT_BUILD_DLL
+ dynamicflags = HELLO_BASE_SVNT_BUILD_DLL
IDL_Files {
Hello_Base.idl
@@ -47,11 +47,11 @@ project(Hello_Base_DnC_svnt) : ciao_servant_dnc {
Source_Files {
Hello_BaseS.cpp
}
-
+
Header_Files {
Hello_BaseS.h
}
-
+
Inline_Files {
Hello_BaseS.inl
}
diff --git a/TAO/CIAO/examples/Hello/ReDaC-Usage.html b/TAO/CIAO/examples/Hello/ReDaC-Usage.html
deleted file mode 100644
index eb9b8c729b7..00000000000
--- a/TAO/CIAO/examples/Hello/ReDaC-Usage.html
+++ /dev/null
@@ -1,308 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<!--//$Id$ -->
-
-
-
- <title>ReDaC Service Usage</title>
-</head>
-
-
-<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" alink="#0000ff" link="#000fff" vlink="#ff0f0f">
-
-
-<hr>
-<h2>Simple Tutorial for using ReDaC (<span style="font-style: italic;">Redeployment and Reconfiguration</span>)</h2>
-
-
-<span style="font-weight: bold;">Prerequisite</span><b>:<br>
-
-
-<br>
-
-
-</b>Before you proceed further, please read the <a href="./step-by-step.html">step-by-step</a> tutorial
-page first.<b><br>
-
-
-<br>
-
-
-</b><b>Note:</b>
-<br>
-
-
-<ul>
-
-
- <li>ReDaC is a middleware service provided by the <a href="http://www.cs.wustl.edu/%7Eschmidt/ACE_wrappers/TAO/CIAO/docs/releasenotes/dance.html">DAnCE</a>
-framework.</li>
-
-
- <li>ReDaC service is used for redeployment and/or
-reconfiguration of your&nbsp;running component-based application on
-the fly without shutting down your application.&nbsp;</li>
-
-
- <li>ReDaC currently works for CIAO QoS-enabled component
-middleware only.</li>
-
-
-</ul>
-
-
-<hr>
-<h2>Example Description</h2>
-
-
-We will use the Hello example to illustrate how one could use ReDaC
-service to perform redeployment and reconfiguration.
-<hr>
-<h3>Initial Deployment</h3>
-
-
-Below steps are required for the initial deployment of your application,
-which is performed by DAnCE. The below steps are different from those
-presented in the <a href="./step-by-step.html">step-by-step</a>
-tutorial page in the sense that we pass different command line options
-to the <span style="font-style: italic;">Plan_Launcher</span>
-client:<br>
-
-
-<ul>
-
-
- <li> Go into the <em> descriptors </em> directory
-Start NodeManagers (NodeDameons) by running <code>
-run_NodeDaemons.pl </code> </li>
-
-
-
- <ul>
-
-
- <li>This step is the same as the one presented in the
-&nbsp;<a href="step-by-step.html">step-by-step</a>
-tutorial page. </li>
-
-
-
- </ul>
-
-
- <li> Start the execution manager: <code>$CIAO_ROOT/DAnCE/ExecutionManager/Execution_Manager
--o EM.ior -i NodeManagerMap.dat </code> </li>
-
-
-
- <ul>
-
-
- <li> As one can see, we use the
-"NodeManagerMap.dat" file to instruct the Execution_Manager how to find
-the endpoint of each individual NodeManager (i.e., Node Daemon) where
-component(s) will be deployed.</li>
-
-
-
- </ul>
-
-
-
- <ul>
-
-
- <li>This step is the same as the one presented in the
-&nbsp;<a href="step-by-step.html">step-by-step</a>
-tutorial page. </li>
-
-
-
- </ul>
-
-
- <li> Start the plan launcher: <code>
-$CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -p
-flattened_deploymentplan_without_ns.cdp -k file://EM.ior -o DAM.ior</code>&nbsp;</li>
-
-
-
- <ul>
-
-
- <li>After this, components should be deployed
-successfully. </li>
-
-
- <li>This step is different &nbsp;from the one presented
-in the
-&nbsp;<a href="step-by-step.html">step-by-step</a>
-tutorial page in the way that we added an additional "<code>-o</code>"
-option when running <code>Plan_Launcher</code>, which
-dumps an IOR file of DAnCE's DomainApplicationManager. &nbsp;With
-this option added, the <code>plan_launcher </code>will
-exit immediately after the application is deployed, instead of staying
-in the interactive mode. (As a normal user, you don't need to worry
-about the details of what exactly a DomainApplicationManager is.)</li>
-
-
-
- </ul>
-
-
-</ul>
-
-
-<hr>
-<h3>Redeployment and Reconfiguration</h3>
-
-
-Basically, you could use ReDaC service in two ways. <br>
-
-
-<ol style="font-weight: bold;">
-
-
- <li>Use ReDaC service <span style="font-style: italic;">directly</span>
-through DAnCE's&nbsp;<span style="font-style: italic;">Plan_Launcher</span>
-client</li>
-
-
- <li><span style="font-weight: bold;">Use ReDaC
-service <span style="font-style: italic;">programmatically</span>
-by writing your own client</span></li>
-
-
-</ol>
-
-
-This tutorial illustrates how exactly you could use ReDaC.<br>
-
-
-<br style="font-weight: bold;">
-
-
-<span style="font-weight: bold;">Use ReDaC service through
-</span><span style="font-style: italic; font-weight: bold;">Plan_Launcher</span><span style="font-weight: bold;">&nbsp; of DAnCE:</span><br>
-
-
-<ul>
-
-
- <li>As we've already mentioned, you should first deploy your
-Hello application with DAnCE, which is described in the above "Initial
-Deployment" section of this tutorial.<code> </code>
- </li>
-
-
- <li>
-
- <p> Use ReDaC service through <code>Plan_Launcher</code>'s
-"-r" command line option to perform redeployment and reconfiguration.<br>
-
-
-Run the command
- <code>$CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -r
-flattened_deploymentplan_without_ns_add.cdp </code>will add
-additional components to the existing running assembly.</p>
-
-
- </li>
-
-
- <li>
-
- <p>Run the command
- <code>$CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher -r
-flattened_deploymentplan_without_ns_remove.cdp </code>will
-remove components from the existing running assembly.</p>
-
-
- </li>
-
-
- <li>Run the command
- <code></code><code>$CIAO_ROOT/DAnCE/Plan_Launcher/plan_launcher
--i file://DAM.ior</code> will tear down your entire application
-completely.</li>
-
-
-</ul>
-
-
-<br>
-
-
-<div style="margin-left: 40px;"><span style="font-weight: bold;">NOTE: &nbsp;</span>By
-using ReDaC through Plan_Launcher, as a user you must provide a new
-DeploymentPlan (.cdp) XML file, which captures the new deployment and
-configuration settings of your application, and the Plan_UUID of the
-new DeploymentPlan should be&nbsp;the same as the one of the old
-(running) DeploymentPlan. Otherwise, DAnCE will think you want to
-deploy a totally different deployment plan, instead of applying some
-changes to the existing plan. One could use <a href="http://www.dre.vanderbilt.edu/cosmic">CoSMIC</a> MDD tool to create such a deployment plan XML file.<br>
-
-</div>
-
-
-<br>
-
-
-<span style="font-weight: bold;">Use ReDaC service <span style="font-style: italic;">programmatically</span>:</span><span style="font-weight: bold;"></span>
-<ul>
-
-
-
- <p> You could also use ReDaC service programmatically by writing your
-own client to invoke ReDaC service. Basically, to accomplish this, your
-client program needs to:</p>
-
-
- <ol>
-
- <li>Obtain the&nbsp;<code>ExecutionManager</code> object reference, either through naming service or through IOR file.</li>
-
- <li>Invoke the operation&nbsp;<code>perform_redeployment</code> on this interface by passing a single argument type called&nbsp;<code>DeploymentPlan</code>.</li>
-
-
- </ol>
-
-
-</ul>
-
-
-<div style="margin-left: 40px;">The IDL signature of this operation is as follows:<br>
-
-<code><br>
-
-&nbsp;&nbsp;&nbsp; void perform_redeployment (in DeploymentPlan new_plan)<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raises (PlanError,<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InstallationFailure,<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UnknownImplId,<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImplEntryPointNotFound,<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InvalidConnection,<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InvalidProperty,<br>
-
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::Components::RemoveFailure);</code><br>
-
-</div>
-
-
-<br>
-<div style="margin-left: 40px;">In order to simplify the creation of a the&nbsp;<code>"new_plan", </code>we are implementing a utility class which allows a developer to easily manipulate a deployment plan data structure.</div>
-
-
-<hr>
-<b>Email: </b>
-<address>ciao-users@cse.wustl.edu</address>
-
-
-</body>
-</html>
diff --git a/TAO/CIAO/examples/Hello/Receiver/Receiver.mpc b/TAO/CIAO/examples/Hello/Receiver/Receiver.mpc
index df794278191..5aa0c89e176 100644
--- a/TAO/CIAO/examples/Hello/Receiver/Receiver.mpc
+++ b/TAO/CIAO/examples/Hello/Receiver/Receiver.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc_extra.pl -p Hello_Base Receiver"
project(Hello_Base_Receiver_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Hello_Base_DnC_stub
sharedname = Receiver_DnC_stub
idlflags += -Sc \
@@ -31,7 +30,6 @@ project(Hello_Base_Receiver_DnC_stub): ciao_client_dnc {
}
project(Hello_Base_Receiver_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Hello_Base_DnC_svnt \
Hello_Base_Receiver_DnC_stub
sharedname = Receiver_DnC_svnt
@@ -72,7 +70,6 @@ project(Hello_Base_Receiver_DnC_svnt) : ciao_servant_dnc {
project(Hello_Base_Receiver_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += Hello_Base_Receiver_DnC_svnt
sharedname = Receiver_DnC_exec
libs += Receiver_DnC_stub \
diff --git a/TAO/CIAO/examples/Hello/Sender/Sender.mpc b/TAO/CIAO/examples/Hello/Sender/Sender.mpc
index 0b4473033c8..45b4dd2db78 100644
--- a/TAO/CIAO/examples/Hello/Sender/Sender.mpc
+++ b/TAO/CIAO/examples/Hello/Sender/Sender.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc_extra.pl -p Hello_Base Sender"
project(Hello_Base_Sender_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Hello_Base_DnC_stub
sharedname = Sender_DnC_stub
idlflags += -Sc \
@@ -31,7 +30,6 @@ project(Hello_Base_Sender_DnC_stub): ciao_client_dnc {
}
project(Hello_Base_Sender_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Hello_Base_DnC_svnt \
Hello_Base_Sender_DnC_stub
sharedname = Sender_DnC_svnt
@@ -71,7 +69,6 @@ project(Hello_Base_Sender_DnC_svnt) : ciao_servant_dnc {
}
project(Hello_Base_Sender_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += Hello_Base_Sender_DnC_svnt
sharedname = Sender_DnC_exec
libs += Sender_DnC_stub \
@@ -97,7 +94,6 @@ project(Hello_Base_Sender_DnC_exec) : ciao_component_dnc {
}
project (Hello_DnC_Starter) : ciao_client_dnc, valuetype {
- avoids += ace_for_tao
exename = starter
after += Hello_Base_Sender_DnC_stub
libs += Sender_DnC_stub Hello_Base_DnC_stub
diff --git a/TAO/CIAO/examples/Hello/Sender/Sender_exec.cpp b/TAO/CIAO/examples/Hello/Sender/Sender_exec.cpp
index 7e7e889ca8d..76245c1a4de 100644
--- a/TAO/CIAO/examples/Hello/Sender/Sender_exec.cpp
+++ b/TAO/CIAO/examples/Hello/Sender/Sender_exec.cpp
@@ -28,7 +28,7 @@ namespace CIDL_Sender_Impl
Sender_exec_i::local_message (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return CORBA::string_dup (message_.in ());
+ return CORBA::string_dup (message_);
}
void
@@ -69,7 +69,7 @@ namespace CIDL_Sender_Impl
Sender_exec_i::get_push_message (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"Sender_exec.i::get_push_message called\n "));
return ( new Message_Impl (*this) );
}
@@ -82,30 +82,30 @@ namespace CIDL_Sender_Impl
ACE_DEBUG ((LM_DEBUG, "Sender initiates the process.\n"));
this->context_->push_click_out (event ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
+
ACE_DEBUG ((LM_DEBUG, "My current color is:"));
-
+
switch (this->color_)
{
case ::Hello::empty:
ACE_DEBUG ((LM_DEBUG, "ERROR: Enum attribute initialization failed.\n"));
break;
-
+
case ::Hello::white:
ACE_DEBUG ((LM_DEBUG, "white\n"));
break;
-
+
case ::Hello::red:
ACE_DEBUG ((LM_DEBUG, "red\n"));
break;
-
+
case ::Hello::yellow:
ACE_DEBUG ((LM_DEBUG, "yellow\n"));
break;
-
+
default:
ACE_DEBUG ((LM_DEBUG, "Unknown color!\n"));
-
+
}
}
@@ -184,7 +184,7 @@ namespace CIDL_Sender_Impl
ACE_THROW_SPEC ((CORBA::SystemException,
Components::CCMException))
{
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) creating SenderHome \n"));
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) creating SenderHome \n"));
return new Sender_exec_i;
}
diff --git a/TAO/CIAO/examples/Hello/Sender/starter.cpp b/TAO/CIAO/examples/Hello/Sender/starter.cpp
index 7c647ef01dd..3577fcee991 100644
--- a/TAO/CIAO/examples/Hello/Sender/starter.cpp
+++ b/TAO/CIAO/examples/Hello/Sender/starter.cpp
@@ -11,7 +11,7 @@ const char * message = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:m:");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -47,7 +47,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat b/TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat
index fe88523971e..7221318ce42 100644
--- a/TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat
+++ b/TAO/CIAO/examples/Hello/descriptors/NodeManagerMap.dat
@@ -1,2 +1,2 @@
-SenderNode corbaloc:iiop:localhost:60001/NodeManager
-ReceiverNode corbaloc:iiop:localhost:60002/NodeManager
+SenderNode corbaloc:iiop:localhost:30000/NodeManager
+ReceiverNode corbaloc:iiop:localhost:40000/NodeManager
diff --git a/TAO/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad b/TAO/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad
index 54f024360c7..2bb0e867ddf 100644
--- a/TAO/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad
+++ b/TAO/CIAO/examples/Hello/descriptors/Receiver_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Hello_ReceiverHome_Servant</string>
+ <string>createReceiverHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/Hello/descriptors/Sender_Svnt.iad b/TAO/CIAO/examples/Hello/descriptors/Sender_Svnt.iad
index 8a9d128e50d..8fec927ebad 100644
--- a/TAO/CIAO/examples/Hello/descriptors/Sender_Svnt.iad
+++ b/TAO/CIAO/examples/Hello/descriptors/Sender_Svnt.iad
@@ -22,7 +22,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Hello_SenderHome_Servant</string>
+ <string>createSenderHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/Hello/descriptors/TestNodeManagerMap.dat b/TAO/CIAO/examples/Hello/descriptors/TestNodeManagerMap.dat
new file mode 100644
index 00000000000..d3e2c75a243
--- /dev/null
+++ b/TAO/CIAO/examples/Hello/descriptors/TestNodeManagerMap.dat
@@ -0,0 +1,3 @@
+SenderNode corbaloc:iiop:localhost:60001/NodeManager
+ReceiverNode corbaloc:iiop:localhost:60002/NodeManager
+
diff --git a/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan.cdp b/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan.cdp
index 7192a2bc061..6d54602b33c 100644
--- a/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan.cdp
+++ b/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan.cdp
@@ -96,26 +96,6 @@
</value>
</value>
</configProperty>
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
</instance>
<instance id="Hello-Receiver-idd">
@@ -196,7 +176,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Hello_SenderHome_Servant</string>
+ <string>createSenderHome_Servant</string>
</value>
</value>
</execParameter>
@@ -232,7 +212,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Hello_ReceiverHome_Servant</string>
+ <string>createReceiverHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp b/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
index 8b42fa056ef..93ea095a6e5 100644
--- a/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
+++ b/TAO/CIAO/examples/Hello/descriptors/flattened_deploymentplan_without_ns.cdp
@@ -120,7 +120,7 @@
<connection>
- <name>hello_event_connection</name>
+ <name>hell_event_connection</name>
<internalEndpoint>
<portName>click_out</portName>
<kind>EventPublisher</kind>
@@ -178,7 +178,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Hello_SenderHome_Servant</string>
+ <string>createSenderHome_Servant</string>
</value>
</value>
</execParameter>
@@ -214,7 +214,7 @@
<kind>tk_string</kind>
</type>
<value>
- <string>create_Hello_ReceiverHome_Servant</string>
+ <string>createReceiverHome_Servant</string>
</value>
</value>
</execParameter>
diff --git a/TAO/CIAO/examples/Hello/descriptors/rt-config-example.cdp b/TAO/CIAO/examples/Hello/descriptors/rt-config-example.cdp
new file mode 100644
index 00000000000..962a24062a8
--- /dev/null
+++ b/TAO/CIAO/examples/Hello/descriptors/rt-config-example.cdp
@@ -0,0 +1,215 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<Deployment:deploymentPlan
+ xmlns:Deployment="http://www.omg.org/Deployment"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.omg.org/Deployment Modified_Deployment.xsd">
+
+ <label>Hello-DeploymentPlan</label>
+
+ <UUID>Hello_Plan_UUID_0001</UUID>
+
+ <realizes>
+ <label>BasicSP-realizes-cid</label>
+ <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
+ <specificType/>
+ <supportedType>IDL:Hello/Sender:1.0</supportedType>
+ <port>
+ <name>read_message</name>
+ <specificType>IDL:Hello/ReadMessage:1.0</specificType>
+ <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
+ <provider>false</provider>
+ <exclusiveProvider>false</exclusiveProvider>
+ <exclusiveUser>true</exclusiveUser>
+ <optional>false</optional>
+ <kind>SimplexReceptacle</kind>
+ </port>
+ </realizes>
+
+ <implementation id="Hello-Sender-mdd">
+ <name>Hello-Sender-mdd</name>
+ <source/>
+ <artifact>Hello-Sender_exec</artifact>
+ <artifact>Hello-Sender_svnt</artifact>
+ </implementation>
+
+ <implementation id="Hello-Receiver-mdd">
+ <name>Hello-Receiver-mdd</name>
+ <source/>
+ <artifact>Hello-Receiver_exec</artifact>
+ <artifact>Hello-Receiver_svnt</artifact>
+ </implementation>
+
+ <instance id="Hello-Sender-idd">
+ <name>Hello-Sender-idd</name>
+ <node>SenderNode</node>
+ <source/>
+ <implementation>Hello-Sender-mdd</implementation>
+ <configProperty>
+ <name>ComponentIOR</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Sender.ior</string>
+ </value>
+ </value>
+ </configProperty>
+ <configProperty>
+ <name>local_message</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>This is a test message passed in through XML.</string>
+ </value>
+ </value>
+ </configProperty>
+ <deployedResource>
+ <resourceUsage>InstanceUsesResource</resourceUsage>
+ <requirementName>CIAO:PolicySet</requirementName>
+ <resourceName>test_policy_set_id</resourceName>
+ <resourceValue>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>test_server_resource_id</string>
+ </value>
+ </resourceValue>
+ </deployedResource>
+ </instance>
+
+ <instance id="Hello-Receiver-idd">
+ <name>Hello-Receiver-idd</name>
+ <node>ReceiverNode</node>
+ <source/>
+ <implementation>Hello-Receiver-mdd</implementation>
+ <configProperty>
+ <name>ComponentIOR</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>Receiver.ior</string>
+ </value>
+ </value>
+ </configProperty>
+ </instance>
+
+ <connection>
+ <name>hell_event_connection</name>
+ <internalEndpoint>
+ <portName>click_out</portName>
+ <kind>EventPublisher</kind>
+ <instance>Hello-Sender-idd</instance>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>click_in</portName>
+ <kind>EventConsumer</kind>
+ <instance>Hello-Receiver-idd</instance>
+ </internalEndpoint>
+ </connection>
+
+ <connection>
+ <name>hello_facet_connection</name>
+ <internalEndpoint>
+ <portName>push_message</portName>
+ <kind>Facet</kind>
+ <instance>Hello-Sender-idd</instance>
+ </internalEndpoint>
+ <internalEndpoint>
+ <portName>read_message</portName>
+ <kind>SimplexReceptacle</kind>
+ <instance>Hello-Receiver-idd</instance>
+ </internalEndpoint>
+ </connection>
+
+ <artifact id="Hello-Sender_exec">
+ <name>Sender_exec</name>
+ <source/>
+ <node/>
+ <location>Sender_DnC_exec</location>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createSenderHome_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ </artifact>
+
+ <artifact id="Hello-Sender_svnt">
+ <name>Sender_svnt</name>
+ <source/>
+ <node/>
+ <location>Sender_DnC_svnt</location>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createSenderHome_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ </artifact>
+
+ <artifact id="Hello-Receiver_exec">
+ <name>Receiver_exec</name>
+ <source/>
+ <node/>
+ <location>Receiver_DnC_exec</location>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createReceiverHome_Impl</string>
+ </value>
+ </value>
+ </execParameter>
+ </artifact>
+
+ <artifact id="Hello-Receiver_svnt">
+ <name>Receiver_svnt</name>
+ <source/>
+ <node/>
+ <location>Receiver_DnC_svnt</location>
+ <execParameter>
+ <name>entryPoint</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>createReceiverHome_Servant</string>
+ </value>
+ </value>
+ </execParameter>
+ </artifact>
+
+ <infoProperty>
+ <name>CIAOServerResources</name>
+ <value>
+ <type>
+ <kind>tk_string</kind>
+ </type>
+ <value>
+ <string>rt-config-example.csr</string>
+ </value>
+ </value>
+ </infoProperty>
+
+</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/input.csr b/TAO/CIAO/examples/Hello/descriptors/rt-config-example.csr
index a3881225930..a3881225930 100644
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/input.csr
+++ b/TAO/CIAO/examples/Hello/descriptors/rt-config-example.csr
diff --git a/TAO/CIAO/examples/Hello/descriptors/run_NodeDaemons.pl b/TAO/CIAO/examples/Hello/descriptors/run_NodeDaemons.pl
index 82d96898de5..0192d11c2b7 100644
--- a/TAO/CIAO/examples/Hello/descriptors/run_NodeDaemons.pl
+++ b/TAO/CIAO/examples/Hello/descriptors/run_NodeDaemons.pl
@@ -29,10 +29,10 @@ unlink $iorfile2;
$CIAO_ROOT=$ENV{'CIAO_ROOT'};
$SV1 = new PerlACE::Process ("$CIAO_ROOT/DAnCE/NodeManager/NodeManager",
- "-ORBEndpoint iiop://localhost:60001 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication");
+ "-ORBEndpoint iiop://localhost:30000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication");
$SV2 = new PerlACE::Process ("$CIAO_ROOT/DAnCE/NodeManager/NodeManager",
- "-ORBEndpoint iiop://localhost:60002 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication");
+ "-ORBEndpoint iiop://localhost:40000 -s $CIAO_ROOT/DAnCE/NodeApplication/NodeApplication");
$SV1->Spawn ();
$SV2->Spawn ();
diff --git a/TAO/CIAO/examples/Hello/descriptors/run_test.pl b/TAO/CIAO/examples/Hello/descriptors/run_test.pl
index cfb0e0e9e49..90b5f69f4a4 100755
--- a/TAO/CIAO/examples/Hello/descriptors/run_test.pl
+++ b/TAO/CIAO/examples/Hello/descriptors/run_test.pl
@@ -18,7 +18,7 @@ $daemons = 2;
@ports = ( 60001, 60002 );
@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" );
$status = 0;
-$dat_file = "NodeManagerMap.dat";
+$dat_file = "TestNodeManagerMap.dat";
$cdp_file = "DeploymentPlan.cdp";
$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter";
@@ -74,7 +74,7 @@ sub run_node_daemons {
$node_app = "$DAnCE/NodeApplication/NodeApplication";
$d_cmd = "$DAnCE/NodeManager/NodeManager";
- $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -d 30";
+ $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile";
$Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param);
$result = $Daemons[$i]->Spawn ();
@@ -98,7 +98,7 @@ delete_ior_files ();
# Invoke naming service
-$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 0 -ORBEndpoint iiop://localhost:60003 -o ns.ior");
+$NS = new PerlACE::Process ("$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service", "-m 1 -o $nsior");
$NS->Spawn ();
@@ -111,9 +111,6 @@ if (PerlACE::waitforfile_timed ($nsior, 10) == -1)
exit 1;
}
-# Set up NamingService environment
-$ENV{"NameServiceIOR"} = "corbaloc:iiop:localhost:60003/NameService";
-
# Invoke node daemons.
print "Invoking node daemons\n";
$status = run_node_daemons ();
diff --git a/TAO/CIAO/examples/Hello/descriptors/run_test_without_ns.pl b/TAO/CIAO/examples/Hello/descriptors/run_test_without_ns.pl
index c0659c4299f..1649cb0595f 100755
--- a/TAO/CIAO/examples/Hello/descriptors/run_test_without_ns.pl
+++ b/TAO/CIAO/examples/Hello/descriptors/run_test_without_ns.pl
@@ -16,7 +16,7 @@ $daemons = 2;
@ports = ( 60001, 60002 );
@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" );
$status = 0;
-$dat_file = "NodeManagerMap.dat";
+$dat_file = "TestNodeManagerMap.dat";
$cdp_file = "DeploymentPlan.cdp";
$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter";
@@ -61,7 +61,7 @@ sub run_node_daemons {
$node_app = "$DAnCE/NodeApplication/NodeApplication";
$d_cmd = "$DAnCE/NodeManager/NodeManager";
- $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -d 30";
+ $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile";
$Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param);
$result = $Daemons[$i]->Spawn ();
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/NodeManagerMap.dat b/TAO/CIAO/examples/Hello/descriptors_RTCCM/NodeManagerMap.dat
deleted file mode 100644
index fe88523971e..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/NodeManagerMap.dat
+++ /dev/null
@@ -1,2 +0,0 @@
-SenderNode corbaloc:iiop:localhost:60001/NodeManager
-ReceiverNode corbaloc:iiop:localhost:60002/NodeManager
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/RTsvc.conf b/TAO/CIAO/examples/Hello/descriptors_RTCCM/RTsvc.conf
deleted file mode 100644
index 1bfd9e8eaba..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/RTsvc.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-# No options required for regular testing
-
-# For real-time testing, uncomment the following line:
-static RT_ORB_Loader "-ORBSchedPolicy SCHED_FIFO -ORBScopePolicy SYSTEM"
-
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.cdp b/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.cdp
deleted file mode 100644
index 72e1694b1c3..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.cdp
+++ /dev/null
@@ -1,215 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Modified_Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
-
- <UUID>Hello_Plan_UUID_0001</UUID>
-
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType/>
- <supportedType>IDL:Hello/Sender:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source/>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source/>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source/>
- <implementation>Hello-Sender-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
- <deployedResource>
- <resourceUsage>InstanceUsesResource</resourceUsage>
- <requirementName>CIAO:PolicySet</requirementName>
- <resourceName>test_server_resource_id</resourceName>
- <resourceValue>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>test_policy_set_id</string>
- </value>
- </resourceValue>
- </deployedResource>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>ReceiverNode</node>
- <source/>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>hell_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source/>
- <node/>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source/>
- <node/>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source/>
- <node/>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source/>
- <node/>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <infoProperty>
- <name>CIAOServerResources</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>rt-config-example.csr</string>
- </value>
- </value>
- </infoProperty>
-
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.csr b/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.csr
deleted file mode 100644
index cd3d1bf8f7d..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-config-example.csr
+++ /dev/null
@@ -1,75 +0,0 @@
-
-<CIAO:ServerResources
- xmlns:CIAO="http://www.dre.vanderbilt.edu/ServerResources"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.dre.vanderbilt.edu/ServerResources CIAOServerResources.xsd"
- id="test_server_resource_id">
-
- <cmdline>
- <arg>-r</arg>
- </cmdline>
-
- <svcconf>
- <uri>
- RTsvc.conf
- </uri>
- </svcconf>
-
- <orbConfigs>
- <resources>
- <threadpool id="threadpool-1">
- <stacksize>0</stacksize>
- <static_threads>5</static_threads>
- <dynamic_threads>0</dynamic_threads>
- <default_priority>1</default_priority>
- <allow_request_buffering>false</allow_request_buffering>
- <max_buffered_requests>0</max_buffered_requests>
- <max_request_buffered_size>0</max_request_buffered_size>
- </threadpool>
-
- <threadpoolWithLanes id="threadpool-2">
- <threadpoolLane>
- <static_threads>5</static_threads>
- <dynamic_threads>0</dynamic_threads>
- <priority>2</priority>
- </threadpoolLane>
- <threadpoolLane>
- <static_threads>5</static_threads>
- <dynamic_threads>0</dynamic_threads>
- <priority>1</priority>
- </threadpoolLane>
- <stacksize>0</stacksize>
- <allow_borrowing>false</allow_borrowing>
- <allow_request_buffering>false</allow_request_buffering>
- <max_buffered_requests>0</max_buffered_requests>
- <max_request_buffered_size>0</max_request_buffered_size>
- </threadpoolWithLanes>
-
- <connectionBands id="cb-1">
- <band>
- <low>0</low>
- <high>10</high>
- </band>
- <band>
- <low>11</low>
- <high>20</high>
- </band>
- </connectionBands>
- </resources>
-
- <policySet id="test_policy_set_id">
- <priorityModel server_priority="1">
- <priority_model>SERVER_DECLARED</priority_model>
- </priorityModel>
- </policySet>
-
- <policySet id="test_policy_set_2">
- <priorityModel>
- <priority_model>CLIENT_PROPAGATED</priority_model>
- </priorityModel>
- <threadpool>threadpool-2</threadpool>
- </policySet>
-
- </orbConfigs>
-</CIAO:ServerResources>
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-example.cdp b/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-example.cdp
deleted file mode 100644
index 10317dbe33e..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt-example.cdp
+++ /dev/null
@@ -1,265 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
-
- <deployedResource>
- <resourceUsage>InstanceUsesResource</resourceUsage>
- <requirementName>CIAO:PolicySet</requirementName>
- <resourceName>test_server_resource_id</resourceName>
- <resourceValue>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>test_policy_set_id</string>
- </value>
- </resourceValue>
- </deployedResource>
-
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
-
- <deployedResource>
- <resourceUsage>InstanceUsesResource</resourceUsage>
- <requirementName>CIAO:PolicySet</requirementName>
- <resourceName>test_server_resource_id</resourceName>
- <resourceValue>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>test_policy_set_id</string>
- </value>
- </resourceValue>
- </deployedResource>
-
- </instance>
-
-
- <connection>
- <name>hell_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <infoProperty>
- <name>CIAOServerResources</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>rt-config-example.csr</string>
- </value>
- </value>
- </infoProperty>
-
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt_run_test.pl b/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt_run_test.pl
deleted file mode 100644
index a790fef1be0..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_RTCCM/rt_run_test.pl
+++ /dev/null
@@ -1,163 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::Run_Test;
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$DAnCE = "$ENV{'ACE_ROOT'}/TAO/CIAO/DAnCE";
-
-$daemons_running = 0;
-$em_running = 0;
-$daemons = 2;
-@ports = ( 60001, 60002 );
-@iorfiles = ( "NodeApp1.ior", "NodeApp2.ior" );
-$status = 0;
-$dat_file = "NodeManagerMap.dat";
-$cdp_file = "DeploymentPlan.cdp";
-$controller_exec = "$CIAO_ROOT/examples/Hello/Sender/starter";
-
-$E = 0;
-$EM = 0;
-
-# Delete if there are any .ior files.
-sub delete_ior_files {
- for ($i = 0; $i < $daemons; ++$i) {
- unlink $iorfiles[$i];
- }
- unlink PerlACE::LocalFile ("EM.ior");
- unlink PerlACE::LocalFile ("Receiver.ior");
- unlink PerlACE::LocalFile ("Sender.ior");
- unlink PerlACE::LocalFile ("DAM.ior");
-}
-
-sub kill_node_daemons {
- for ($i = 0; $i < $daemons; ++$i) {
- $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1);
- }
-}
-
-sub kill_open_processes {
- if ($daemons_running == 1) {
- kill_node_daemons ();
- }
-
- if ($em_running == 1) {
- $EM->Kill ();
- $EM->TimedWait (1);
- }
-}
-
-sub run_node_daemons {
- for ($i = 0; $i < $daemons; ++$i)
- {
- $iorfile = $iorfiles[$i];
- $port = $ports[$i];
-
- $iiop = "iiop://localhost:$port";
- $node_app = "$DAnCE/NodeApplication/NodeApplication";
-
- $d_cmd = "$DAnCE/NodeManager/NodeManager";
-
- # NON-RT
-# $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile";
-
- # RT enabled
- $d_param = "-ORBEndpoint $iiop -s $node_app -a \"-r\" -o $iorfile";
-
- $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param);
- $result = $Daemons[$i]->Spawn ();
- push(@processes, $Daemons[$i]);
-
- if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR
- "ERROR: The ior file of node daemon $i could not be found\n";
- for (; $i > 0; --$i) {
- $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1);
- }
- return -1;
- }
- }
- $daemons_running = 1;
- return 0;
-}
-
-delete_ior_files ();
-
-# Invoke node daemons.
-print "Invoking node daemons\n";
-$status = run_node_daemons ();
-
-if ($status != 0) {
- print STDERR "ERROR: Unable to execute the node daemons\n";
- exit 1;
-}
-
-$ns_running = 1;
-
-# Invoke execution manager.
-print "Invoking execution manager\n";
-$EM = new PerlACE::Process ("$DAnCE/ExecutionManager/Execution_Manager",
- "-o EM.ior -i $dat_file");
-$EM->Spawn ();
-
-if (PerlACE::waitforfile_timed ("EM.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR
- "ERROR: The ior file of execution manager could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-$em_running = 1;
-
-# Invoke executor - start the application -.
-print "Invoking executor - start the application -\n";
-$E =
- new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher",
- "-p rt-example.cdp -k file://EM.ior -o DAM.ior");
-
-$E->SpawnWaitKill (5000);
-
-if (PerlACE::waitforfile_timed (
- "Receiver.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: The ior file of receiver could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-if (PerlACE::waitforfile_timed ("Sender.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: The ior file of sender could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Invoking the controller\n";
-$controller = new PerlACE::Process ("$controller_exec", "-k file://Sender.ior");
-$result = $controller->SpawnWaitKill (3000);
-
-if ($result != 0) {
- print STDERR "ERROR: The controller returned $result\n";
- $status = 1;
-}
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-$E =
- new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher",
- "-k file://EM.ior -i file://DAM.ior");
-$E->SpawnWaitKill (3000);
-
-print "Executor returned.\n";
-print "Shutting down rest of the processes.\n";
-
-delete_ior_files ();
-kill_open_processes ();
-
-exit $status;
diff --git a/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp b/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp
deleted file mode 100644
index 8b42fa056ef..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan.cdp
+++ /dev/null
@@ -1,222 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hello_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp b/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp
deleted file mode 100644
index 3cd860509a6..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_add.cdp
+++ /dev/null
@@ -1,267 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd-UPDATE-XXXXXXXX">
- <name>Hello-Receiver-idd-UPDATE-XXXXXXXXX</name>
- <node>ReceiverNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver_2.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <connection>
- <name>hello_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_event_connection_new</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd-UPDATE-XXXXXXXX</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection_new</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd-UPDATE-XXXXXXXX</instance>
- </internalEndpoint>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp b/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp
deleted file mode 100644
index 6a34f62e7b0..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_ReDaC/deploymentplan_remove.cdp
+++ /dev/null
@@ -1,223 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <instance id="Hello-Receiver-idd-UPDATE-XXXXXXXX">
- <name>Hello-Receiver-idd-UPDATE-XXXXXXXXX</name>
- <node>ReceiverNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver_2.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hello_event_connection_new</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd-UPDATE-XXXXXXXX</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection_new</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd-UPDATE-XXXXXXXX</instance>
- </internalEndpoint>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced b/TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced
deleted file mode 100644
index 916a9e465c7..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example-with-filters.ced
+++ /dev/null
@@ -1,37 +0,0 @@
-<!-- $ID$ -->
-
-<CIAO:CIAOEvents
- xmlns:CIAO="http://www.dre.vanderbilt.edu/CIAOEvents"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.dre.vanderbilt.edu/CIAOEvents CIAOEvents.xsd">
-
- <eventServiceConfiguration id="es_configuration-01">
- <name>ES_01</name>
- <node>SenderNode</node>
- <type>RTEC</type>
- <svc_cfg_file>svc.conf</svc_cfg_file>
-
- <filter>
- <name>my_filter_01</name>
- <type>DISJUNCTION</type>
- <source>Hello-Sender-idd_click_out</source>
- <source>Hello-Sender-idd-02_click_out</source>
- </filter>
-
- <filter>
- <name>my_filter_02</name>
- <type>CONJUNCTION</type>
- <source>Hello-Sender-idd_click_out</source>
- <source>Hello-Sender-idd-02_click_out</source>
- </filter>
- </eventServiceConfiguration>
-
- <eventServiceConfiguration id="es_configuration-02">
- <name>ES_02</name>
- <node>SenderNode</node>
- <type>RTEC</type>
- <svc_cfg_file>svc.conf</svc_cfg_file>
- </eventServiceConfiguration>
-
-</CIAO:CIAOEvents>
diff --git a/TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced b/TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced
deleted file mode 100644
index 9ee5b20ccc0..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_events/ciao-events-example.ced
+++ /dev/null
@@ -1,21 +0,0 @@
-<CIAO:CIAOEvents
- xmlns:CIAO="http://www.dre.vanderbilt.edu/CIAOEvents"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.dre.vanderbilt.edu/CIAOEvents CIAOEvents.xsd">
-
- <eventServiceConfiguration id="es_configuration-01">
- <name>ES_01</name>
- <node>SenderNode</node>
- <type>RTEC</type>
- <svc_cfg_file>svc.conf</svc_cfg_file>
- </eventServiceConfiguration>
-
- <eventServiceConfiguration id="es_configuration-02">
- <name>ES_02</name>
- <node>SenderNode</node>
- <type>RTEC</type>
- <svc_cfg_file>svc.conf</svc_cfg_file>
- </eventServiceConfiguration>
-
-</CIAO:CIAOEvents>
diff --git a/TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_events.cdp b/TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_events.cdp
deleted file mode 100644
index b2c75e78c02..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_events.cdp
+++ /dev/null
@@ -1,260 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
-<!--
- <connection>
- <name>hello_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
--->
-
- <connection>
- <name>hello_event_ec_publisher_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>rtecEventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <externalReference>
- <location>ES_01</location>
- </externalReference>
- </connection>
-
- <connection>
- <name>hello_event_ec_consumer_connection</name>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>rtecEventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- <externalReference>
- <location>ES_01</location>
- </externalReference>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <infoProperty>
- <name>CIAOEvents</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>ciao-events-example.ced</string>
- </value>
- </value>
- </infoProperty>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_with_filters.cdp b/TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_with_filters.cdp
deleted file mode 100644
index 9ad178d6dfc..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_events/flattened_deploymentplan_with_filters.cdp
+++ /dev/null
@@ -1,278 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
-<!--
- <connection>
- <name>hello_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
--->
-
- <connection>
- <name>hello_event_ec_publisher_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>rtecEventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <externalReference>
- <location>ES_01</location>
- </externalReference>
- </connection>
-
- <connection>
- <name>hello_event_ec_consumer_connection</name>
-
- <!-- The position of the below "deployRequirement" element matters -->
- <deployRequirement>
- <resourceType>EventFilter</resourceType>
- <name>my_filter_01</name>
- <property>
- <name>EventFilter</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>my_filter</string>
- </value>
- </value>
- </property>
- </deployRequirement>
-
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>rtecEventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- <externalReference>
- <location>ES_01</location>
- </externalReference>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <infoProperty>
- <name>CIAOEvents</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>ciao-events-example-with-filters.ced</string>
- </value>
- </value>
- </infoProperty>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_naming/deploymentplan_naming.cdp b/TAO/CIAO/examples/Hello/descriptors_naming/deploymentplan_naming.cdp
deleted file mode 100644
index 7192a2bc061..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_naming/deploymentplan_naming.cdp
+++ /dev/null
@@ -1,240 +0,0 @@
-<!-- This flattened deployment plan allows component instance to
- register to naming service, if you don't want to use naming
- service at all, you can use the flattened_deployment_without_ns.cdp
- as your deployment descriptor. -->
-
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false></provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to register with naming service -->
- <!-- The string is the naming context to bind to naming service -->
- <configProperty>
- <name>RegisterNaming</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender_001</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>ReceiverNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hell_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp b/TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp
deleted file mode 100644
index a206dc64080..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan.cdp
+++ /dev/null
@@ -1,224 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0001</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd">
- <name>Hello-Sender-idd</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>ReceiverNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Receiver.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hello_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
-<!--
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
--->
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp b/TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp
deleted file mode 100644
index 1acfa45c985..00000000000
--- a/TAO/CIAO/examples/Hello/descriptors_shared_components/deploymentplan_shared_components.cdp
+++ /dev/null
@@ -1,229 +0,0 @@
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Deployment.xsd">
-
- <label>Hello-DeploymentPlan</label>
- <UUID>Hello_Plan_UUID_0002</UUID>
- <!-- Could be ZERO -->
- <realizes>
- <label>BasicSP-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType><!-- @@ What does here? --></specificType>
- <supportedType>IDL:BasicSP/EC:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:Hello/ReadMessage:1.0</specificType>
- <supportedType>IDL:Hello/ReadMessage:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="Hello-Sender-mdd">
- <name>Hello-Sender-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Sender_exec</artifact>
- <artifact>Hello-Sender_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <implementation id="Hello-Receiver-mdd">
- <name>Hello-Receiver-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>Hello-Receiver_exec</artifact>
- <artifact>Hello-Receiver_svnt</artifact>
- <!--
- <execParameter></execParameter>
- <deployRequirement></deployRequirement>
- -->
- </implementation>
-
- <instance id="Hello-Sender-idd-new-component">
- <name>Hello-Sender-idd-new-component</name>
- <node>SenderNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Sender-mdd</implementation>
-
- <!-- Add this property if you want to write component reference to IOR -->
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>Sender_new_component.ior</string>
- </value>
- </value>
- </configProperty>
-
- <!-- Add this property if you want to initialize component attribute -->
- <configProperty>
- <name>local_message</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>This is a test message passed in through XML.</string>
- </value>
- </value>
- </configProperty>
-
- <!-- This attribute initializes an enumerated value -->
- <configProperty>
- <name>color</name>
- <value>
- <type>
- <kind>tk_enum</kind>
- <enum>
- <name>COLOR_SELECTION</name>
- <typeId>IDL:Hello/COLOR_SELECTION:1.0</typeId>
- <member>empty</member>
- <member>white</member>
- <member>red</member>
- <member>yellow</member>
- </enum>
- </type>
- <value>
- <enum>yellow</enum>
- </value>
- </value>
- </configProperty>
- </instance>
-
- <instance id="Hello-Receiver-idd">
- <name>Hello-Receiver-idd</name>
- <node>ReceiverNode</node>
- <source><!-- @@ What goes here --></source>
- <implementation>Hello-Receiver-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <!-- ****************************************
- This IOR file should NOT be generated.
- DAnCE should NOT create this component instance
- because it is a "shared" component
- **************************************** -->
- <string>Receiver_new_component.ior</string>
- </value>
- </value>
- </configProperty>
- </instance>
-
-
- <connection>
- <name>hello_event_connection</name>
- <internalEndpoint>
- <portName>click_out</portName>
- <kind>EventPublisher</kind>
- <instance>Hello-Sender-idd-new-component</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>click_in</portName>
- <kind>EventConsumer</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
-
- <connection>
- <name>hello_facet_connection</name>
- <internalEndpoint>
- <portName>push_message</portName>
- <kind>Facet</kind>
- <instance>Hello-Sender-idd-new-component</instance>
- </internalEndpoint>
- <internalEndpoint>
- <portName>read_message</portName>
- <kind>SimplexReceptacle</kind>
- <instance>Hello-Receiver-idd</instance>
- </internalEndpoint>
- </connection>
-
-
- <!-- @@ Runtime library name must match exactly in "location" tag -->
- <artifact id="Hello-Sender_exec">
- <name>Sender_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createSenderHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Sender_svnt">
- <name>Sender_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Sender_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_SenderHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_exec">
- <name>Receiver_exec</name>
- <source><!-- @@ Not sure about this--></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createReceiverHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="Hello-Receiver_svnt">
- <name>Receiver_svnt</name>
- <source><!-- @@ Not sure --></source>
- <node><!-- blank --></node>
- <location>Receiver_DnC_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_Hello_ReceiverHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-</Deployment:deploymentPlan>
diff --git a/TAO/CIAO/examples/Hello/step-by-step.html b/TAO/CIAO/examples/Hello/step-by-step.html
index cb73707d0b7..c0fc607c4cd 100644
--- a/TAO/CIAO/examples/Hello/step-by-step.html
+++ b/TAO/CIAO/examples/Hello/step-by-step.html
@@ -147,8 +147,8 @@ Note: Creating the deployment plan descriptor is a tedious and
</UL>
<hr>
-<h3>Deploy with <A href="../../docs/releasenotes/dance.html">DAnCE</A></h3>
-Finally you are ready to deploy the component-based application you have developed.
+<h3>Run</h3>
+Finally you are ready to test the application you have made.
<br><br>
<UL>
@@ -190,12 +190,6 @@ Finally you are ready to deploy the component-based application you have develop
</UL>
<hr>
-<h3>More Features</h3>
-Recently DAnCE is enabled with a feature called <em>Redeployment and Reconfiguration</em> (ReDaC). For more information
-about how to use this feature, please refer to the ReDaC-Usage-Example.html under $CIAO_ROOT/examples/Hello/.
-<br><br>
-
-<hr>
<b>Email: </b><a href="mailto:"</a<ADDRESS>ciao-users@cse.wustl.edu</ADDRESS>
</body>
</html>
diff --git a/TAO/CIAO/examples/Swapping/Hello_Base/Hello_Base.mpc b/TAO/CIAO/examples/Swapping/Hello_Base/Hello_Base.mpc
index 5b908c14f1b..22c0598f8a7 100644
--- a/TAO/CIAO/examples/Swapping/Hello_Base/Hello_Base.mpc
+++ b/TAO/CIAO/examples/Swapping/Hello_Base/Hello_Base.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Hello_Base"
-project(Hello_Base_DnC_Upgradeable_stub): ciao_component_dnc {
-
+project(Hello_Base_DnC_Upgradeable_stub): ciao_client_dnc {
+
sharedname = Hello_Base_DnC_Upgradeable_stub
idlflags += -Wb,stub_export_macro=HELLO_BASE_STUB_Export -Wb,stub_export_include=Hello_Base_stub_export.h -Wb,skel_export_macro=HELLO_BASE_SVNT_Export -Wb,skel_export_include=Hello_Base_svnt_export.h
dynamicflags = HELLO_BASE_STUB_BUILD_DLL
@@ -19,8 +19,8 @@ project(Hello_Base_DnC_Upgradeable_stub): ciao_component_dnc {
project(Hello_Base_DnC_Upgradeable_svnt) : ciao_servant_dnc {
after += Hello_Base_DnC_Upgradeable_stub
sharedname = Hello_Base_DnC_Upgradeable_svnt
- libs += Hello_Base_DnC_Upgradeable_stub
-
+ libs += Hello_Base_DnC_Upgradeable_stub
+
idlflags += -Wb,stub_export_macro=HELLO_BASE_STUB_Export -Wb,stub_export_include=Hello_Base_stub_export.h -Wb,skel_export_macro=HELLO_BASE_SVNT_Export -Wb,skel_export_include=Hello_Base_svnt_export.h
dynamicflags = HELLO_BASE_SVNT_BUILD_DLL
diff --git a/TAO/CIAO/examples/Swapping/Receiver/Receiver.mpc b/TAO/CIAO/examples/Swapping/Receiver/Receiver.mpc
index b6b13c0660b..6dfd8271a73 100644
--- a/TAO/CIAO/examples/Swapping/Receiver/Receiver.mpc
+++ b/TAO/CIAO/examples/Swapping/Receiver/Receiver.mpc
@@ -1,8 +1,7 @@
// $Id$
// This file is generated with "generate_component_mpc_extra.pl -p Hello_Base Receiver"
-project(HelloB_Receiver_DnC_Upgradeable_stub): ciao_client_dnc {
- avoids += ace_for_tao
+project(Hello_Base_Receiver_DnC_Upgradeable_stub): ciao_client_dnc {
after += Hello_Base_DnC_Upgradeable_stub
sharedname = Receiver_DnC_Upgradeable_stub
idlflags += -Wb,stub_export_macro=RECEIVER_STUB_Export -Wb,stub_export_include=Receiver_stub_export.h -Wb,skel_export_macro=RECEIVER_SVNT_Export -Wb,skel_export_include=Receiver_svnt_export.h
@@ -18,9 +17,8 @@ project(HelloB_Receiver_DnC_Upgradeable_stub): ciao_client_dnc {
}
}
-project(HelloB_Receiver_DnC_Upgradeable_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
- after += Hello_Base_DnC_Upgradeable_svnt HelloB_Receiver_DnC_Upgradeable_stub
+project(Hello_Base_Receiver_DnC_Upgradeable_svnt) : ciao_servant_dnc {
+ after += Hello_Base_DnC_Upgradeable_svnt Hello_Base_Receiver_DnC_Upgradeable_stub
sharedname = Receiver_DnC_Upgradeable_svnt
libs += Receiver_DnC_Upgradeable_stub Hello_Base_DnC_Upgradeable_stub Hello_Base_DnC_Upgradeable_svnt
@@ -45,9 +43,8 @@ project(HelloB_Receiver_DnC_Upgradeable_svnt) : ciao_servant_dnc {
}
-project(HelloB_Receiver_DnC_Upgradeable_exec) : ciao_component_dnc {
- avoids += ace_for_tao
- after += HelloB_Receiver_DnC_Upgradeable_svnt
+project(Hello_Base_Receiver_DnC_Upgradeable_exec) : ciao_component_dnc {
+ after += Hello_Base_Receiver_DnC_Upgradeable_svnt
sharedname = Receiver_DnC_Upgradeable_exec
libs += Receiver_DnC_Upgradeable_stub Receiver_DnC_Upgradeable_svnt Hello_Base_DnC_Upgradeable_stub Hello_Base_DnC_Upgradeable_svnt
diff --git a/TAO/CIAO/examples/Swapping/Sender/Sender.mpc b/TAO/CIAO/examples/Swapping/Sender/Sender.mpc
index d0d42c7c8bc..1d0e5662b0b 100644
--- a/TAO/CIAO/examples/Swapping/Sender/Sender.mpc
+++ b/TAO/CIAO/examples/Swapping/Sender/Sender.mpc
@@ -1,8 +1,7 @@
// $Id$
// This file is generated with "generate_component_mpc_extra.pl -p Hello_Base Sender"
-project(HelloB_Sender_DnC_Upgradeable_stub): ciao_client_dnc {
- avoids += ace_for_tao
+project(Hello_Base_Sender_DnC_Upgradeable_stub): ciao_client_dnc {
after += Hello_Base_DnC_Upgradeable_stub
sharedname = Sender_DnC_Upgradeable_stub
idlflags += -Wb,stub_export_macro=SENDER_STUB_Export -Wb,stub_export_include=Sender_stub_export.h -Wb,skel_export_macro=SENDER_SVNT_Export -Wb,skel_export_include=Sender_svnt_export.h
@@ -19,10 +18,9 @@ project(HelloB_Sender_DnC_Upgradeable_stub): ciao_client_dnc {
}
}
-project(HelloB_Sender_DnC_Upgradeable_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
+project(Hello_Base_Sender_DnC_Upgradeable_svnt) : ciao_servant_dnc {
after += Hello_Base_DnC_Upgradeable_svnt \
- HelloB_Sender_DnC_Upgradeable_stub
+ Hello_Base_Sender_DnC_Upgradeable_stub
sharedname = Sender_DnC_Upgradeable_svnt
libs += Sender_DnC_Upgradeable_stub Hello_Base_DnC_Upgradeable_stub \
Hello_Base_DnC_Upgradeable_svnt
@@ -37,7 +35,7 @@ project(HelloB_Sender_DnC_Upgradeable_svnt) : ciao_servant_dnc {
}
IDL_Files {
- SenderE.idl << SenderE.idl
+ SenderE.idl
}
Source_Files {
@@ -47,9 +45,8 @@ project(HelloB_Sender_DnC_Upgradeable_svnt) : ciao_servant_dnc {
}
}
-project(HelloB_Sender_DnC_Upgradeable_exec) : ciao_component_dnc {
- avoids += ace_for_tao
- after += HelloB_Sender_DnC_Upgradeable_svnt
+project(Hello_Base_Sender_DnC_Upgradeable_exec) : ciao_component_dnc {
+ after += Hello_Base_Sender_DnC_Upgradeable_svnt
sharedname = Sender_DnC_Upgradeable_exec
libs += Sender_DnC_Upgradeable_stub Sender_DnC_Upgradeable_svnt Hello_Base_DnC_Upgradeable_stub Hello_Base_DnC_Upgradeable_svnt
@@ -64,10 +61,9 @@ project(HelloB_Sender_DnC_Upgradeable_exec) : ciao_component_dnc {
}
}
-project(HelloB_Sender_DnC_Upgradeable_exec_1) : ciao_component_dnc {
- avoids += ace_for_tao
- after += HelloB_Sender_DnC_Upgradeable_svnt \
- HelloB_Sender_DnC_Upgradeable_exec
+project(Hello_Base_Sender_DnC_Upgradeable_exec_1) : ciao_component_dnc {
+ after += Hello_Base_Sender_DnC_Upgradeable_svnt \
+ Hello_Base_Sender_DnC_Upgradeable_exec
sharedname = Sender_DnC_Upgradeable_exec_1
libs += Sender_DnC_Upgradeable_stub Sender_DnC_Upgradeable_svnt \
Sender_DnC_Upgradeable_exec Hello_Base_DnC_Upgradeable_stub \
@@ -85,10 +81,9 @@ project(HelloB_Sender_DnC_Upgradeable_exec_1) : ciao_component_dnc {
}
}
-project(HelloB_Sender_DnC_Upgradeable_exec_2) : ciao_component_dnc {
- avoids += ace_for_tao
- after += HelloB_Sender_DnC_Upgradeable_svnt \
- HelloB_Sender_DnC_Upgradeable_exec
+project(Hello_Base_Sender_DnC_Upgradeable_exec_2) : ciao_component_dnc {
+ after += Hello_Base_Sender_DnC_Upgradeable_svnt \
+ Hello_Base_Sender_DnC_Upgradeable_exec
sharedname = Sender_DnC_Upgradeable_exec_2
libs += Sender_DnC_Upgradeable_stub Sender_DnC_Upgradeable_svnt \
Sender_DnC_Upgradeable_exec Hello_Base_DnC_Upgradeable_stub \
@@ -107,9 +102,8 @@ project(HelloB_Sender_DnC_Upgradeable_exec_2) : ciao_component_dnc {
}
project (Hello_DnC_Upgradeable_Starter) : ciao_client_dnc, valuetype{
- avoids += ace_for_tao
exename = Upgradeable_starter
- after += HelloB_Sender_DnC_Upgradeable_stub
+ after += Hello_Base_Sender_DnC_Upgradeable_stub
libs += Sender_DnC_Upgradeable_stub Hello_Base_DnC_Upgradeable_stub
IDL_Files {
diff --git a/TAO/CIAO/examples/Swapping/Sender/Sender_exec.cpp b/TAO/CIAO/examples/Swapping/Sender/Sender_exec.cpp
index 8bd256ea90c..7825b0c2238 100644
--- a/TAO/CIAO/examples/Swapping/Sender/Sender_exec.cpp
+++ b/TAO/CIAO/examples/Swapping/Sender/Sender_exec.cpp
@@ -33,7 +33,7 @@ namespace CIDL_Sender_Impl
Sender_exec_i::local_message (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return CORBA::string_dup(message_. in());
+ return CORBA::string_dup(message_);
}
Hello::CCM_ReadMessage_ptr
diff --git a/TAO/CIAO/examples/Swapping/Sender/Sender_exec_1.cpp b/TAO/CIAO/examples/Swapping/Sender/Sender_exec_1.cpp
index e2e976424a7..33900d43382 100644
--- a/TAO/CIAO/examples/Swapping/Sender/Sender_exec_1.cpp
+++ b/TAO/CIAO/examples/Swapping/Sender/Sender_exec_1.cpp
@@ -30,7 +30,7 @@ namespace CIDL_Sender_Impl
Sender_exec_1_i::local_message (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return CORBA::string_dup(message_.in ());
+ return CORBA::string_dup(message_);
}
Hello::CCM_ReadMessage_ptr
@@ -113,7 +113,7 @@ namespace CIDL_Sender_Impl
this->context_->get_registered_consumers ("click_out"
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
+
this->base_exec_->consumers (retval._retn ());
CORBA::Object_var o =
@@ -131,7 +131,7 @@ namespace CIDL_Sender_Impl
const CORBA::ULong facet_len = facets->length ();
CORBA::ULong i = 0;
-
+
for (i = 0; i < facet_len; ++i)
{
this->context_->remove_facet (facets[i]->facet_ref ()
diff --git a/TAO/CIAO/examples/Swapping/Sender/Sender_exec_2.cpp b/TAO/CIAO/examples/Swapping/Sender/Sender_exec_2.cpp
index a4c8fe46308..a57cb4b9049 100644
--- a/TAO/CIAO/examples/Swapping/Sender/Sender_exec_2.cpp
+++ b/TAO/CIAO/examples/Swapping/Sender/Sender_exec_2.cpp
@@ -29,7 +29,7 @@ namespace CIDL_Sender_Impl
Sender_exec_2_i::local_message (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return CORBA::string_dup(message_.in ());
+ return CORBA::string_dup(message_);
}
Hello::CCM_ReadMessage_ptr
diff --git a/TAO/CIAO/examples/Swapping/Sender/starter.cpp b/TAO/CIAO/examples/Swapping/Sender/starter.cpp
index c88771ea568..82005cfe9aa 100644
--- a/TAO/CIAO/examples/Swapping/Sender/starter.cpp
+++ b/TAO/CIAO/examples/Swapping/Sender/starter.cpp
@@ -11,7 +11,7 @@ const char * message = "starters message";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:m");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:m");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -48,7 +48,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/performance-tests/Benchmark/Benchmark.mpc b/TAO/CIAO/performance-tests/Benchmark/Benchmark.mpc
index 59cb34c414d..cd4ecb031fc 100644
--- a/TAO/CIAO/performance-tests/Benchmark/Benchmark.mpc
+++ b/TAO/CIAO/performance-tests/Benchmark/Benchmark.mpc
@@ -1,7 +1,7 @@
// $Id$
project(Benchmark_stub): ciao_client_dnc {
- avoids += ace_for_tao
+
sharedname = Benchmark_stub
idlflags += -Wb,stub_export_macro=BENCHMARK_STUB_Export -Wb,stub_export_include=Benchmark_stub_export.h -Wb,skel_export_macro=BENCHMARK_SVNT_Export -Wb,skel_export_include=Benchmark_svnt_export.h
dynamicflags = BENCHMARK_STUB_BUILD_DLL
@@ -15,24 +15,20 @@ project(Benchmark_stub): ciao_client_dnc {
}
}
-project(Benchmark_svnt) : ciao_component_dnc {
- avoids += ace_for_tao
+project(Benchmark_svnt) : ciao_server_dnc {
after += Benchmark_stub
sharedname = Benchmark_svnt
libs += Benchmark_stub
idlflags += -Wb,export_macro=BENCHMARK_SVNT_Export -Wb,export_include=Benchmark_svnt_export.h
dynamicflags = BENCHMARK_SVNT_BUILD_DLL
- IDL_Files {
- }
Source_Files {
BenchmarkS.cpp
}
}
-project (*server) : taoserver, strategies,ciao_component_dnc {
- avoids += ace_for_tao
+project (*server) : taoserver, strategies,ciao_server_dnc {
after += Benchmark_svnt
libs += Benchmark_svnt Benchmark_stub
diff --git a/TAO/CIAO/performance-tests/Benchmark/LatencyTest.h b/TAO/CIAO/performance-tests/Benchmark/LatencyTest.h
index b4b73b1ae84..ad066166e6b 100644
--- a/TAO/CIAO/performance-tests/Benchmark/LatencyTest.h
+++ b/TAO/CIAO/performance-tests/Benchmark/LatencyTest.h
@@ -8,6 +8,11 @@
#include "BenchmarkS.h"
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable:4250)
+#endif /* _MSC_VER */
+
/// Implement the Test::LatencyTest interface
class LatencyTest
: public virtual POA_Benchmark::LatencyTest
@@ -26,9 +31,13 @@ class LatencyTest
private:
/// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
+ /// the application.
+ CORBA::ORB_var orb_;
};
+#if defined(_MSC_VER)
+# pragma warning(pop)
+#endif /* _MSC_VER */
+
#include /**/ "ace/post.h"
#endif /* LATENCYTEST_H */
diff --git a/TAO/CIAO/performance-tests/Benchmark/Multi_Threaded/client.cpp b/TAO/CIAO/performance-tests/Benchmark/Multi_Threaded/client.cpp
index 7eba8595527..4be012c571d 100644
--- a/TAO/CIAO/performance-tests/Benchmark/Multi_Threaded/client.cpp
+++ b/TAO/CIAO/performance-tests/Benchmark/Multi_Threaded/client.cpp
@@ -25,7 +25,7 @@ const char *ior4 = "file://comp4.ior";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/performance-tests/Benchmark/RoundTrip/RoundTrip.mpc b/TAO/CIAO/performance-tests/Benchmark/RoundTrip/RoundTrip.mpc
index 3a6e310d8ae..9a237b88bc0 100644
--- a/TAO/CIAO/performance-tests/Benchmark/RoundTrip/RoundTrip.mpc
+++ b/TAO/CIAO/performance-tests/Benchmark/RoundTrip/RoundTrip.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -l .. -p Benchmark -i -c RoundTrip"
project(RoundTrip_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Benchmark_stub
sharedname = RoundTrip_stub
@@ -25,7 +24,6 @@ project(RoundTrip_stub): ciao_client_dnc {
}
project(RoundTrip_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Benchmark_svnt RoundTrip_stub
sharedname = RoundTrip_svnt
@@ -55,11 +53,10 @@ project(RoundTrip_svnt) : ciao_servant_dnc {
project(RoundTrip_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += RoundTrip_svnt
sharedname = RoundTrip_exec
- libs += RoundTrip_stub Benchmark_stub Benchmark_svnt RoundTrip_svnt
+ libs += RoundTrip_stub Benchmark_stub RoundTrip_svnt
libpaths += ..
idlflags += -Wb,export_macro=ROUNDTRIP_EXEC_Export
@@ -80,7 +77,6 @@ project(RoundTrip_exec) : ciao_component_dnc {
project (RoundTrip_client) : ciao_client_dnc, valuetype, strategies{
- avoids += ace_for_tao
exename = client
after += RoundTrip_stub
libs += RoundTrip_stub Benchmark_stub
diff --git a/TAO/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp b/TAO/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
index 08bd7c111d9..15dc1c5d5ed 100644
--- a/TAO/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
+++ b/TAO/CIAO/performance-tests/Benchmark/RoundTrip/client.cpp
@@ -30,7 +30,7 @@ int
parse_args (int argc, char *argv[])
{
//parse arguments
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:");
char c;
while ((c = get_opts ()) != -1)
switch (c)
@@ -83,7 +83,7 @@ set_priority ()
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc b/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
index 6ccc38cc06b..41c67edcb2d 100644
--- a/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
+++ b/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/RoundTripClient.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -l .. -p Benchmark -i -c RoundTripClient"
project(RoundTripClient_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Benchmark_stub
sharedname = RoundTripClient_stub
@@ -25,7 +24,6 @@ project(RoundTripClient_stub): ciao_client_dnc {
}
project(RoundTripClient_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Benchmark_svnt RoundTripClient_stub
sharedname = RoundTripClient_svnt
libs += RoundTripClient_stub Benchmark_stub Benchmark_svnt
@@ -53,12 +51,11 @@ project(RoundTripClient_svnt) : ciao_servant_dnc {
project(RoundTripClient_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += RoundTripClient_svnt
sharedname = RoundTripClient_exec
- libs += RoundTripClient_stub Benchmark_stub Benchmark_svnt RoundTripClient_svnt
+ libs += RoundTripClient_stub Benchmark_stub RoundTripClient_svnt
libpaths += ..
@@ -79,7 +76,6 @@ project(RoundTripClient_exec) : ciao_component_dnc {
project (*client) : ciao_client_dnc {
- avoids += ace_for_tao
exename = client
after += RoundTripClient_stub
libs += RoundTripClient_stub Benchmark_stub
diff --git a/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp b/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
index 2df894b41c1..b4b6d285e1b 100644
--- a/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
+++ b/TAO/CIAO/performance-tests/Benchmark/RoundTripClient/client.cpp
@@ -18,7 +18,7 @@
const char *ior = "file://test.ior";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc b/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc
index 35a3dbed71b..6d20d6872f8 100644
--- a/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc
+++ b/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/RoundTripServer.mpc
@@ -1,5 +1,5 @@
// $Id$
-project (RoundTripServer) : strategies, ciao_component_dnc {
+project (RoundTripServer) : strategies, ciao_server_dnc {
after += Benchmark_svnt
libs += Benchmark_stub Benchmark_svnt
libpaths += ..
diff --git a/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/server.cpp b/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/server.cpp
index c6f2f81ae0c..8e6b863386a 100644
--- a/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/server.cpp
+++ b/TAO/CIAO/performance-tests/Benchmark/RoundTripServer/server.cpp
@@ -9,7 +9,7 @@
const char *ior_output_file = "rtserver.ior";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/CIAO/performance-tests/Benchmark/server.cpp b/TAO/CIAO/performance-tests/Benchmark/server.cpp
index 345610c1eb2..e76dc23daf9 100644
--- a/TAO/CIAO/performance-tests/Benchmark/server.cpp
+++ b/TAO/CIAO/performance-tests/Benchmark/server.cpp
@@ -10,7 +10,7 @@
const char *ior_output_file = "test.ior";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/CIAO/performance-tests/Protocols/Controller/Controller.cpp b/TAO/CIAO/performance-tests/Protocols/Controller/Controller.cpp
index 2ea3c57a1c3..f88e97c5fe5 100644
--- a/TAO/CIAO/performance-tests/Protocols/Controller/Controller.cpp
+++ b/TAO/CIAO/performance-tests/Protocols/Controller/Controller.cpp
@@ -29,7 +29,7 @@ static const char *test_type = "PACED";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "a:b:c:d:e:i:m:p:r:s:t:u:v:w:x:y:z:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:b:c:d:e:i:m:p:r:s:t:u:v:w:x:y:z:");
int c;
while ((c = get_opts ()) != -1)
@@ -150,7 +150,7 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
try
{
diff --git a/TAO/CIAO/performance-tests/Protocols/Controller/Controller.mpc b/TAO/CIAO/performance-tests/Protocols/Controller/Controller.mpc
index ce70851188d..2a6f2e404b6 100644
--- a/TAO/CIAO/performance-tests/Protocols/Controller/Controller.mpc
+++ b/TAO/CIAO/performance-tests/Protocols/Controller/Controller.mpc
@@ -1,7 +1,6 @@
// $Id$
project (perf*) : ciao_client_dnc, rtcorba, exceptions {
- avoids += ace_for_tao
after += Protocols_Sender_stub Protocols_Receiver_stub
includes += ../Sender
includes += ../Receiver
diff --git a/TAO/CIAO/performance-tests/Protocols/Receiver/Receiver.mpc b/TAO/CIAO/performance-tests/Protocols/Receiver/Receiver.mpc
index 1cbf85b801a..5f83db6a1e0 100644
--- a/TAO/CIAO/performance-tests/Protocols/Receiver/Receiver.mpc
+++ b/TAO/CIAO/performance-tests/Protocols/Receiver/Receiver.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p Protocols Receiver"
project(Protocols_Receiver_stub): ciao_client_dnc, exceptions {
- avoids += ace_for_tao
libs += Protocols_stub
after += Protocols_stub
sharedname = Protocols_Receiver_stub
@@ -19,7 +18,6 @@ project(Protocols_Receiver_stub): ciao_client_dnc, exceptions {
}
project(Protocols_Receiver_svnt) : ciao_servant_dnc, exceptions {
- avoids += ace_for_tao
after += Protocols_svnt Protocols_Receiver_stub
sharedname = Protocols_Receiver_svnt
libs += Protocols_Receiver_stub Protocols_stub Protocols_svnt
@@ -43,7 +41,6 @@ project(Protocols_Receiver_svnt) : ciao_servant_dnc, exceptions {
project(Protocols_Receiver_exec) : ciao_component_dnc, exceptions {
- avoids += ace_for_tao
after += Protocols_Receiver_svnt
sharedname = Protocols_Receiver_exec
libs += Protocols_Receiver_stub Protocols_Receiver_svnt Protocols_stub Protocols_svnt
diff --git a/TAO/CIAO/performance-tests/Protocols/Sender/Sender.mpc b/TAO/CIAO/performance-tests/Protocols/Sender/Sender.mpc
index 9382dd63289..ae6ba814b79 100644
--- a/TAO/CIAO/performance-tests/Protocols/Sender/Sender.mpc
+++ b/TAO/CIAO/performance-tests/Protocols/Sender/Sender.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc.pl -p Protocols Sender"
project(Protocols_Sender_stub): ciao_client_dnc, exceptions {
- avoids += ace_for_tao
libs += Protocols_stub
after += Protocols_stub
sharedname = Protocols_Sender_stub
@@ -19,7 +18,6 @@ project(Protocols_Sender_stub): ciao_client_dnc, exceptions {
}
project(Protocols_Sender_svnt) : ciao_servant_dnc, exceptions {
- avoids += ace_for_tao
after += Protocols_svnt Protocols_Sender_stub
sharedname = Protocols_Sender_svnt
libs += Protocols_Sender_stub Protocols_stub Protocols_svnt
@@ -43,7 +41,6 @@ project(Protocols_Sender_svnt) : ciao_servant_dnc, exceptions {
project(Protocols_Sender_exec) : ciao_component_dnc, rtcorba, exceptions {
- avoids += ace_for_tao
after += Protocols_Sender_svnt
sharedname = Protocols_Sender_exec
libs += Protocols_Sender_stub Protocols_Sender_svnt Protocols_stub Protocols_svnt
diff --git a/TAO/CIAO/performance-tests/Protocols/common/Protocols.mpc b/TAO/CIAO/performance-tests/Protocols/common/Protocols.mpc
index 4c01677de0e..43caa154675 100644
--- a/TAO/CIAO/performance-tests/Protocols/common/Protocols.mpc
+++ b/TAO/CIAO/performance-tests/Protocols/common/Protocols.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Protocols"
-project(Protocols_stub): ciao_component_dnc {
-
+project(Protocols_stub): ciao_client_dnc {
+
sharedname = Protocols_stub
idlflags += -Wb,stub_export_macro=PROTOCOLS_STUB_Export -Wb,stub_export_include=Protocols_stub_export.h -Wb,skel_export_macro=PROTOCOLS_SVNT_Export -Wb,skel_export_include=Protocols_svnt_export.h
dynamicflags = PROTOCOLS_STUB_BUILD_DLL
@@ -19,8 +19,8 @@ project(Protocols_stub): ciao_component_dnc {
project(Protocols_svnt) : ciao_servant_dnc {
after += Protocols_stub
sharedname = Protocols_svnt
- libs += Protocols_stub
-
+ libs += Protocols_stub
+
idlflags += -Wb,export_macro=PROTOCOLS_SVNT_Export -Wb,export_include=Protocols_svnt_export.h
dynamicflags = PROTOCOLS_SVNT_BUILD_DLL
diff --git a/TAO/CIAO/rules.ciao.GNU b/TAO/CIAO/rules.ciao.GNU
index 890aaa15778..8c13c54fa2c 100644
--- a/TAO/CIAO/rules.ciao.GNU
+++ b/TAO/CIAO/rules.ciao.GNU
@@ -16,27 +16,14 @@ ifndef CIAO_ROOT
CIAO_ROOT = $(TAO_ROOT)/CIAO
endif
-ifeq (,$(findstring -L$(CIAO_ROOT)/ciao,$(LDFLAGS)))
- LDFLAGS += -L$(CIAO_ROOT)/ciao
-endif
-ifeq (,$(findstring -I$(CIAO_ROOT),$(INCLDIRS)))
- INCLDIRS += -I$(CIAO_ROOT)
-endif
-
# Turn on symbol versioning. The scheme that we follow is to allow
# applications dependent on libraries, with same version numbers (major,
# minor and beta) to run, but applications with dependencies on libraries
# with different minor or major or beta versions to fail.
#
-ifeq (cmd,$(findstring cmd,$(SHELL)))
-CIAO_MAJOR_VERSION := $(shell awk "/CIAO_MAJOR_VERSION/ { print $$3}" ${CIAO_ROOT}/ciao/Version.h)
-CIAO_MINOR_VERSION := $(shell awk "/CIAO_MINOR_VERSION/ { print $$3}" ${CIAO_ROOT}/ciao/Version.h)
-CIAO_BETA_VERSION := $(shell awk "/CIAO_BETA_VERSION/ { print $$3}" ${CIAO_ROOT}/ciao/Version.h)
-else
CIAO_MAJOR_VERSION := $(shell awk '/CIAO_MAJOR_VERSION/ { print $$3}' ${CIAO_ROOT}/ciao/Version.h)
CIAO_MINOR_VERSION := $(shell awk '/CIAO_MINOR_VERSION/ { print $$3}' ${CIAO_ROOT}/ciao/Version.h)
CIAO_BETA_VERSION := $(shell awk '/CIAO_BETA_VERSION/ { print $$3}' ${CIAO_ROOT}/ciao/Version.h)
-endif
# Version number of the libraries
#
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/Logs/PROBLEM-REPORT-FORM b/TAO/CIAO/tests/Bug_2130_Regression/Logs/PROBLEM-REPORT-FORM
deleted file mode 100644
index df98c63f06d..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/Logs/PROBLEM-REPORT-FORM
+++ /dev/null
@@ -1,93 +0,0 @@
-To: ciao-users@cs.wustl.edu
-Subject: RTComponentServer: Session_Container::get_objref blocks
-
- CIAO VERSION: 0.4.7
- TAO VERSION : 1.4.7
- ACE VERSION : 5.4.7
-
- HOST MACHINE and OPERATING SYSTEM:
- Intel(R) Pentium(R) D CPU 3.00GHZ
- Microsoft Windows XP Professional Version 2002 Service Pack 2
-
- COMPILER NAME AND VERSION (AND PATCHLEVEL):
- Microsoft Visual C++ .NET 2003
- Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 13.10.3077
-
- THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
- specific file, simply state which one]:
- #include "ace/config-win32.h"
-
- THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
- use a link to a platform-specific file, simply state which one
- (unless this isn't used in this case, e.g., with Microsoft Visual
- C++)]:
-
- CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
- ssl=0
- qos=1
- cidl=0
- rwho=0
- sctp=0
- qt=1
-
- AREA/CLASS/EXAMPLE AFFECTED:
- CIAO/ciao/Session_Container::get_objref
-
-
- DOES THE PROBLEM AFFECT:
- COMPILATION?
- No
- LINKING?
- No
- EXECUTION?
- Yes
- OTHER (please specify)?
-[Please indicate whether ACE/TAO/CIAO, your application, or both are affected.]
-
- SYNOPSIS:
- A call of Session_Container::get_objref blocks forever.
-
- DESCRIPTION:
- I'm running two clients simultaneously callings the methods acquireSession
- and releaseSession of the CORBA component TSEC_CheckPoint ( please see
- sample code in TSEC_CheckPoint_exec.cpp lines 233... and 283... and also
- controller.cpp line 150... ) configured with realtime policies. After the
- start of the second client the component TSEC_CheckPoint blocks in the
- method Session_Container::get_objref ( please see the log file
- DebuggerCallStack.log ).
-
- The serious code line of TSEC_CheckPoint_exec.cpp is:
- CORBA::Object_var obj = this->getObjRef( p_sessionImpl) ;
-
- If only one client is calling acquireSession every thing works fine.
- But if I start a second client which is calling acquireSession then the
- block happens.
-
- I'm using the patch from 20051612 for the files
- Container_Base.cpp and Container_Base.h which I merge with the CIAO
- version 047.
-
- If i use CIAO version < 043 everythings works fine with no blocks.
-
- REPEAT BY:
- Please build the sample code:
- - cd interfaces
- - mwc.pl -type nmake
- - nmake realclean clean depend all
- - touch *.idl
- - nmake
- - cd SEC_CheckPoint
- - mwc.pl -type nmake
- - nmake realclean clean depend all
-
- Please run the sample:
- - cd descriptors
- - start_da.bat
- - start_am.bat
- - start_test.bat
- - start_testcase_1.bat
- - start_testcase_2.bat
-
-
- SAMPLE FIX/WORKAROUND:
-[If available ]
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.cidl b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.cidl
deleted file mode 100644
index 07748288e51..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.cidl
+++ /dev/null
@@ -1,17 +0,0 @@
-//$Id$
-
-#ifndef TSEC_CHECKPOINT_CIDL
-#define TSEC_CHECKPOINT_CIDL
-
-#include "TSEC_CheckPoint.idl"
-
-composition session TSEC_CheckPoint_Impl
-{
- home executor TSEC_CheckPointHome_Exec
- {
- implements ENW::TSEC_CheckPointHome;
- manages TSEC_CheckPoint_Exec;
- };
-};
-
-#endif // TSEC_CHECKPOINT_CIDL
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.idl b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.idl
deleted file mode 100644
index 83d68fc4353..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.idl
+++ /dev/null
@@ -1,27 +0,0 @@
-//$Id$
-
-#ifndef TSEC_CHECKPOINT_IDL
-#define TSEC_CHECKPOINT_IDL
-
-#include "../interfaces/ENW.idl"
-
-
-module ENW
-{
- component TSEC_CheckPoint supports ISessionService
- {
- provides ISessionService sessionService;
-
- consumes ET_LifeToken lifeTokenIn;
- publishes ET_LifeToken lifeTokenOut;
-
- };
-
- home TSEC_CheckPointHome manages TSEC_CheckPoint
- {
- factory new_TSEC_CheckPoint( in string Version );
- };
-};
-
-
-#endif // TSEC_CHECKPOINT_IDL
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc
deleted file mode 100644
index 41501f86b1e..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint.mpc
+++ /dev/null
@@ -1,91 +0,0 @@
-//$Id$
-
-project(TSEC_CheckPoint_stub): ciao_client_dnc, event {
- avoids += ace_for_tao
- after += ENW_stub
- libpaths += ../interfaces
- libs += ENW_stub
- sharedname = TSEC_CheckPoint_stub
- idlflags += -Wb,stub_export_macro=TSEC_CHECKPOINT_STUB_Export -Wb,stub_export_include=TSEC_CheckPoint_stub_export.h -Wb,skel_export_macro=TSEC_CHECKPOINT_SVNT_Export -Wb,skel_export_include=TSEC_CheckPoint_svnt_export.h
- dynamicflags = TSEC_CHECKPOINT_STUB_BUILD_DLL
-
- IDL_Files {
- TSEC_CheckPoint.idl
- }
-
- Source_Files {
- TSEC_CheckPointC.cpp
- }
-}
-
-project(TSEC_CheckPoint_svnt) : ciao_servant_dnc, event {
- avoids += ace_for_tao
- after += TSEC_CheckPoint_stub
- after += ENW_svnt ENW_stub
- sharedname = TSEC_CheckPoint_svnt
- libpaths += ../interfaces
- libs += TSEC_CheckPoint_stub
- libs += ENW_stub ENW_svnt
-
- idlflags += -Wb,export_macro=TSEC_CHECKPOINT_SVNT_Export -Wb,export_include=TSEC_CheckPoint_svnt_export.h
- dynamicflags = TSEC_CHECKPOINT_SVNT_BUILD_DLL
-
- CIDL_Files {
- TSEC_CheckPoint.cidl
- }
-
- IDL_Files {
- TSEC_CheckPointE.idl
- }
-
- Source_Files {
- TSEC_CheckPointEC.cpp
- TSEC_CheckPointS.cpp
- TSEC_CheckPoint_svnt.cpp
- }
-}
-
-
-project(TSEC_CheckPoint_exec) : ciao_component_dnc, event {
- avoids += ace_for_tao
- after += TSEC_CheckPoint_svnt
- after += ENW_svnt ENW_stub
-
- includes += ../interfaces
-
- sharedname = TSEC_CheckPoint_exec
- libpaths += ../interfaces
- libs += TSEC_CheckPoint_stub TSEC_CheckPoint_svnt
- libs += ENW_stub ENW_svnt CIAO_DnC_Server TAO_CosNaming
-
- idlflags += -Wb,export_macro=TSEC_CHECKPOINT_EXEC_Export -Wb,export_include=TSEC_CheckPoint_exec_export.h
- dynamicflags = TSEC_CHECKPOINT_EXEC_BUILD_DLL
-
- IDL_Files {
- TSEC_CheckPointEI.idl
- }
-
- Source_Files {
- TSEC_CheckPointEIC.cpp
- TSEC_CheckPoint_exec.cpp
- }
-}
-
-
-project(TSEC_CheckPoint_controller) : ciao_client_dnc, valuetype, event {
- avoids += ace_for_tao
- exename = controller
- after += TSEC_CheckPoint_stub
- libs += TSEC_CheckPoint_stub ENW_stub
- libpaths += ../interfaces
-
- IDL_Files {
- }
-
- Source_Files {
- controller.cpp
- }
-}
-
-
-
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPointEI.idl b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPointEI.idl
deleted file mode 100644
index 9cd47181299..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPointEI.idl
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#ifndef TSEC_CHECKPOINTEI_IDL
-#define TSEC_CHECKPOINTEI_IDL
-
-#include "TSEC_CheckPointE.idl"
-
-module ENW
-{
- local interface TSEC_CheckPoint_Exec :
- CCM_TSEC_CheckPoint,
- CCM_ISessionService,
- Components::SessionComponent
- {
- };
-
-};
-
-#endif /* TSEC_CHECKPOINTEI_IDL */
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp
deleted file mode 100644
index 4e51b2b0e0d..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.cpp
+++ /dev/null
@@ -1,635 +0,0 @@
-//$Id$
-
-//-------------------------------------------------------------------
-// Includes
-//-------------------------------------------------------------------
-
-#include "ace/Timer_Queue.h"
-#include "ace/Reactor.h"
-
-#include "tao/LocalObject.h"
-#include <orbsvcs/CosNamingC.h>
-
-#include "ciao/CIAO_common.h"
-#include "ciao/Version.h"
-
-#include "TSEC_CheckPoint_exec.h"
-#include "TSEC_CheckPoint_svnt.h"
-
-
-//-------------------------------------------------------------------
-// Defines
-//-------------------------------------------------------------------
-
-#define SEPARATION_LINE "----------------------------------------" \
- "----------------------------------------\n"
-
-
-//-------------------------------------------------------------------
-// Statics
-//-------------------------------------------------------------------
-
-static const char* argv[] =
-{
- "TSEC_CheckPoint"
-};
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_SessionEntry::TSEC_SessionEntry()
-: _p_sessionImpl( 0 )
-{
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_SessionEntry::TSEC_SessionEntry
-(
- TSEC_Session_impl* pSessionImpl,
- ENW::TSession_ptr Session
-)
-: _p_sessionImpl( pSessionImpl )
-{
- if( !CORBA::is_nil( Session ) )
- {
- _session = ENW::TSession::_duplicate( Session );
- }
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_Session_impl::TSEC_Session_impl
-(
- TSEC_CheckPoint_exec_i& Parent,
- CORBA::Long Ident
-)
- : _isInUse(0),_ident( Ident ),_parent( Parent )
-{
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_Session_impl::~TSEC_Session_impl()
-{
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-CORBA::ULong
-Impl::TSEC_Session_impl::hash
-(
- CORBA::ULong Maximum
- ACE_ENV_ARG_DECL_NOT_USED
-)
-{
- CORBA::ULong hash =
- static_cast <CORBA::ULong> (reinterpret_cast <ptrdiff_t> (this));
-
- return hash % Maximum;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-CORBA::Long
-Impl::TSEC_Session_impl::getIdent
-(
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- //ACE_GUARD_RETURN( TMutex, guard, _parent.getMutex(), -1 );
-
- return _ident;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-CORBA::Boolean
-Impl::TSEC_Session_impl::isInUse
-(
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- //ACE_GUARD_RETURN( TMutex, guard, _parent.getMutex(), FALSE );
- return _isInUse;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_CheckPoint_exec_i::TSEC_CheckPoint_exec_i()
-: _p_sessionContainer( 0 ),
- _isActivated( false )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::"
- "TSEC_CheckPoint_exec_i\n" ) );
-
- this->init();
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_CheckPoint_exec_i::TSEC_CheckPoint_exec_i
-(
- const char* /*Version*/
-)
-: _p_sessionContainer( 0 ),
- _isActivated( false )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::"
- "TSEC_CheckPoint_exec_i\n" ) );
- this->init();
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_CheckPoint_exec_i::~TSEC_CheckPoint_exec_i()
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::"
- "~TSEC_CheckPoint_exec_i\n" ) );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-CORBA::Object_ptr
-Impl::TSEC_CheckPoint_exec_i::getObjRef
-(
- PortableServer::Servant Servant
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( (CORBA::SystemException ) )
-{
- return this->_p_sessionContainer->get_objref( Servant ACE_ENV_ARG_PARAMETER );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-int
-Impl::TSEC_CheckPoint_exec_i::init
-(
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- ACE_DEBUG ((LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::init\n"));
-
- int argc = sizeof( argv ) / sizeof( argv[0] );
-
- CORBA::ORB_var orb = CORBA::ORB_init( argc,
- const_cast<char **> (argv)
- ACE_ENV_ARG_PARAMETER );
- _orb = CORBA::ORB::_duplicate( orb.in () );
-
- return 0;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-CORBA::Object_ptr
-Impl::TSEC_CheckPoint_exec_i::installServant
-(
- PortableServer::Servant Servant
- ACE_ENV_ARG_DECL
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- assert( this->_p_sessionContainer );
-
- return this->_p_sessionContainer->install_servant( Servant,
- CIAO::Container::Component ACE_ENV_ARG_PARAMETER );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::uninstallServant
-(
- CORBA::Object_ptr ObjRef
- ACE_ENV_ARG_DECL
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- assert( this->_p_sessionContainer );
-
- this->_p_sessionContainer->uninstall( ObjRef, CIAO::Container::Component );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-ENW::TSession_ptr
-Impl::TSEC_CheckPoint_exec_i::createSession
-(
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- static long cnt = 0L;
-
- ENW::TSession_var session = ENW::TSession::_nil();
-
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::createSession...\n" ) );
-
- TSEC_Session_impl* p_sessionImpl = new TSEC_Session_impl( *this, ++cnt );
- PortableServer::ServantBase_var safe_servant( p_sessionImpl );
- CORBA::Object_var obj = this->installServant( p_sessionImpl
- ACE_ENV_ARG_PARAMETER );
- session = ENW::TSession::_narrow ( obj.in () ACE_ENV_ARG_PARAMETER );
-
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::createSession...[DONE]\n" ) );
-
- return session._retn();
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-::CORBA::Boolean
-Impl::TSEC_CheckPoint_exec_i::destroySession
-(
- ENW::TSession_ptr Session
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::destroySession...\n" ) );
-
- if( CORBA::is_nil( Session ) )
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::destroySession...[ERROR]\n" ) );
- return 0;
- }
-
- this->uninstallServant( Session );
-
- return 1;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-ENW::TSession_ptr
-Impl::TSEC_CheckPoint_exec_i::acquireSession
-(
- CORBA::Long Ident
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- ENW::EUnknownIdent ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::acquireSession...\n" ) );
-
- if( Ident <= 0 || Ident > TSEC_SESSION_MAX_IDENT )
- {
- if( Ident != -1 )
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[ERROR]\n" ) );
- throw ENW::EUnknownIdent();
- }
- }
-
- ENW::TSession_var session = ENW::TSession::_nil();
- TSEC_Session_impl* p_sessionImpl = 0;
-
- ACE_TRY_NEW_ENV
- {
- {
- //ACE_GUARD_RETURN( TMutex, guard, _mutex, ENW::TSession::_nil() );
- p_sessionImpl = sessionVector[Ident-1]._p_sessionImpl;
- }
-
- p_sessionImpl->isInUse( 1 );
- CORBA::Object_var obj = this->getObjRef( p_sessionImpl) ;
- session = ENW::TSession::_narrow ( obj.in () ACE_ENV_ARG_PARAMETER );
- //session = sessionVector[Ident-1]._session;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION( ACE_ANY_EXCEPTION, "Reason\n" );
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[ERROR]\n" ) );
-
- return session._retn();
- }
- ACE_ENDTRY;
-
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[DONE]\n" ) );
-
- return session._retn();
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-::CORBA::Boolean
-Impl::TSEC_CheckPoint_exec_i::releaseSession
-(
- CORBA::Long Ident,
- ENW::TSession_ptr Session
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- ENW::EUnknownSession ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...\n" ) );
-
- if( CORBA::is_nil( Session ) )
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[ERROR]\n" ) );
- throw ENW::EUnknownSession();
- }
-
- //CORBA::Long ident = Session->getIdent();
- CORBA::Long ident = Ident;
-
- if( ident <= 0 || ident > TSEC_SESSION_MAX_IDENT )
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[ERROR]\n" ) );
- return 0;;
- }
-
- TSEC_Session_impl* p_sessionImpl = 0;
-
- {
- //ACE_GUARD_RETURN( TMutex, guard, _mutex, FALSE );
-
- p_sessionImpl = sessionVector[ident-1]._p_sessionImpl;
- }
-
- assert( p_sessionImpl );
-
-
- if( !p_sessionImpl->isInUse() )
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[ERROR]\n" ) );
- return 0;
- }
-
- p_sessionImpl->isInUse( 0);
-
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) TSEC_CheckPoint_exec_i::releaseSession...[DONE]\n" ) );
-
- return 1;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-ENW::CCM_ISessionService_ptr
-Impl::TSEC_CheckPoint_exec_i::get_sessionService
-(
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- return ENW::CCM_ISessionService::_duplicate( this );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::set_session_context
-(
- Components::SessionContext_ptr Ctx
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
- ACE_DEBUG( ( LM_DEBUG,
- "Impl::TSEC_CheckPoint_exec_i::set_session_context\n" ) );
-
- this->_context =
- ENW::CCM_TSEC_CheckPoint_Context::_narrow( Ctx
- ACE_ENV_ARG_PARAMETER );
- ACE_CHECK;
-
- if( CORBA::is_nil( this->_context.in() ) )
- {
- ACE_THROW( CORBA::INTERNAL() );
- }
-
- CIDL_TSEC_CheckPoint_Impl::TSEC_CheckPoint_Context* p_checkPoint_Context =
- CIDL_TSEC_CheckPoint_Impl::TSEC_CheckPoint_Context::_narrow( Ctx );
-
- if( !p_checkPoint_Context )
- {
- ACE_THROW( CORBA::INTERNAL() );
- }
-
- this->_p_sessionContainer = p_checkPoint_Context->_ciao_the_Container();
-
- if( !_p_sessionContainer )
- {
- ACE_THROW( CORBA::INTERNAL() );
- }
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::push_lifeTokenIn
-(
- ENW::ET_LifeToken* /* Event */
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
-) ACE_THROW_SPEC( ( CORBA::SystemException ) )
-{
- _awaitingLifeToken = false;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::ciao_preactivate
-(
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::ciao_preactivate\n" ) );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::ccm_activate
-(
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::ccm_activate\n" ) );
-
- TSEC_Session_impl* p_sessionImpl = 0;
-
- for( CORBA::Long i = 0; i < TSEC_SESSION_MAX_IDENT; ++i )
- {
- p_sessionImpl = new TSEC_Session_impl( *this, i + 1 );
- PortableServer::ServantBase_var safe_servant( p_sessionImpl );
- CORBA::Object_var obj = this->installServant( p_sessionImpl
- ACE_ENV_ARG_PARAMETER );
- ENW::TSession_var session =
- ENW::TSession::_narrow ( obj.in () ACE_ENV_ARG_PARAMETER );
- sessionVector[i] = TSEC_SessionEntry( p_sessionImpl, session.in () );
- }
-
- _isActivated = true;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::ciao_postactivate
-(
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::ciao_postactivate\n" ) );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::ccm_passivate
-(
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::ccm_passivate\n" ) );
- _isActivated = false;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-void
-Impl::TSEC_CheckPoint_exec_i::ccm_remove
-(
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
- ACE_DEBUG( ( LM_DEBUG, "Impl::TSEC_CheckPoint_exec_i::ccm_remove\n" ) );
- _isActivated = false;
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_CheckPointHome_exec_i::TSEC_CheckPointHome_exec_i()
-{
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-Impl::TSEC_CheckPointHome_exec_i::~TSEC_CheckPointHome_exec_i()
-{
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-::Components::EnterpriseComponent_ptr
-Impl::TSEC_CheckPointHome_exec_i::new_TSEC_CheckPoint
-(
- const char* Version
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ))
-{
- return new Impl::TSEC_CheckPoint_exec_i( Version );
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-::Components::EnterpriseComponent_ptr
-Impl::TSEC_CheckPointHome_exec_i::create
-(
- ACE_ENV_SINGLE_ARG_DECL
-) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) )
-{
-
- return new Impl::TSEC_CheckPoint_exec_i();
-}
-
-
-//-------------------------------------------------------------------
-// Operation
-//-------------------------------------------------------------------
-
-extern "C" TSEC_CHECKPOINT_EXEC_Export ::Components::HomeExecutorBase_ptr
-createTSEC_CheckPointHome_Impl()
-{
- return new Impl::TSEC_CheckPointHome_exec_i();
-}
-
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h
deleted file mode 100644
index 8aab825250b..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec.h
+++ /dev/null
@@ -1,278 +0,0 @@
-//$Id$
-
-//===================================================================
-/**
- * @file TSEC_CheckPoint_exec.h
- *
- * Header file for the Executor implementation.
- */
-//===================================================================
-
-#ifndef TSEC_CheckPoint_EXEC_H
-#define TSEC_CheckPoint_EXEC_H
-
-//-------------------------------------------------------------------
-// Includes
-//-------------------------------------------------------------------
-
-#include "ace/Thread_Manager.h"
-#include "ace/Task.h"
-
-#include "tao/LocalObject.h"
-
-#include "ciao/Container_Base.h"
-
-#include "ENWS.h"
-#include "TSEC_CheckPointEIC.h"
-#include "TSEC_CheckPoint_exec_export.h"
-
-
-//-------------------------------------------------------------------
-// Defines
-//-------------------------------------------------------------------
-
-#define TSEC_SESSION_ID_MAX 0xffffffff
-#define TSEC_SESSION_MAX_IDENT 2
-
-
-//-------------------------------------------------------------------
-// Type definitions
-//-------------------------------------------------------------------
-
-
-//-------------------------------------------------------------------
-// Forward declarations
-//-------------------------------------------------------------------
-
-
-//-------------------------------------------------------------------
-// Classes
-//-------------------------------------------------------------------
-
-namespace Impl
-{
- typedef ACE_SYNCH_MUTEX TMutex;
-
- class TSEC_CheckPoint_exec_i;
-
- class TSEC_Session_impl :
- public virtual POA_ENW::TSession,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
-
- TSEC_Session_impl
- (
- TSEC_CheckPoint_exec_i& Parent,
- CORBA::Long Ident
- );
-
- virtual ~TSEC_Session_impl();
-
- CORBA::Long getIdent() ACE_THROW_SPEC( ( CORBA::SystemException ) );
- CORBA::Boolean isInUse() ACE_THROW_SPEC( ( CORBA::SystemException ) );
- void isInUse( CORBA::Boolean Flag ) { _isInUse = Flag; }
-
- protected:
- CORBA::Boolean _isInUse;
- CORBA::Long _ident;
-
- TSEC_CheckPoint_exec_i& _parent;
-
- CORBA::ULong hash
- (
- CORBA::ULong Maximum
- ACE_ENV_ARG_DECL_NOT_USED
- );
-
- TSEC_CheckPoint_exec_i& getParent() { return _parent; }
-
- };
-
- struct TSEC_SessionEntry
- {
- TSEC_SessionEntry();
-
- TSEC_SessionEntry
- (
- TSEC_Session_impl* pSessionImpl,
- ENW::TSession_ptr Session
- );
-
- TSEC_Session_impl* _p_sessionImpl;
- ENW::TSession_var _session;
- };
-
- class TSEC_CHECKPOINT_EXEC_Export TSEC_CheckPoint_exec_i :
- public virtual ENW::TSEC_CheckPoint_Exec,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
- TSEC_CheckPoint_exec_i();
- TSEC_CheckPoint_exec_i( const char* Version );
-
- virtual ~TSEC_CheckPoint_exec_i();
-
- // Attribute Operationen:
- //
-
-
- // Interface ISessionService
- //
-
- virtual ENW::CCM_ISessionService_ptr get_sessionService
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
-
- virtual ENW::TSession_ptr createSession
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
- virtual CORBA::Boolean destroySession
- (
- ENW::TSession_ptr Session
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
- virtual ENW::TSession_ptr acquireSession
- (
- CORBA::Long Ident
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- ENW::EUnknownIdent ) );
-
- virtual CORBA::Boolean releaseSession
- (
- CORBA::Long Ident,
- ENW::TSession_ptr Session
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- ENW::EUnknownSession ) );
-
-
- // Events
- //
-
- virtual void push_lifeTokenIn
- (
- ENW::ET_LifeToken* Event
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
-
- // Operations from Components::SessionComponent
- //
-
- virtual void set_session_context
- (
- Components::SessionContext_ptr ctx
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
-
- virtual void ciao_preactivate
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
-
- virtual void ccm_activate
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
-
- virtual void ciao_postactivate
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
-
-
- virtual void ccm_passivate
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
-
- virtual void ccm_remove
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
-
- CORBA::Object_ptr getObjRef
- (
- PortableServer::Servant Servant
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
- int init( ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
- CORBA::Object_ptr installServant
- (
- PortableServer::Servant Servant
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
- void uninstallServant
- (
- CORBA::Object_ptr ObjRef
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException ) );
-
- TMutex& getMutex() { return _mutex; }
-
- protected:
- // Copmponent specific context
-
- ENW::CCM_TSEC_CheckPoint_Context_var _context;
- ::CIAO::Session_Container* _p_sessionContainer;
- TMutex _mutex;
- CORBA::ORB_var _orb;
-
- private:
- bool _awaitingLifeToken;
- bool _isActivated;
-
- //TSEC_Session_impl* sessionVector[TSEC_SESSION_MAX_IDENT];
- TSEC_SessionEntry sessionVector[TSEC_SESSION_MAX_IDENT];
- };
-
- /**
- * home executor implementation class.
- */
- class TSEC_CHECKPOINT_EXEC_Export TSEC_CheckPointHome_exec_i :
- public virtual ENW::CCM_TSEC_CheckPointHome,
- public virtual TAO_Local_RefCounted_Object
- {
- public:
-
- TSEC_CheckPointHome_exec_i();
-
- virtual ~TSEC_CheckPointHome_exec_i();
-
- // Explicit home operations.
- virtual ::Components::EnterpriseComponent_ptr new_TSEC_CheckPoint
- (
- const char* Version
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC(( CORBA::SystemException));
-
- // Implicit home operations.
- virtual ::Components::EnterpriseComponent_ptr create
- (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- ) ACE_THROW_SPEC( ( CORBA::SystemException,
- Components::CCMException ) );
- };
-} // Impl
-
-extern "C" TSEC_CHECKPOINT_EXEC_Export ::Components::HomeExecutorBase_ptr
-createTSEC_CheckPointHome_Impl();
-
-#endif // TSEC_CheckPoint_EXEC_H
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec_export.h b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec_export.h
deleted file mode 100644
index 4b0bf7770ef..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_exec_export.h
+++ /dev/null
@@ -1,50 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl TSEC_CHECKPOINT_EXEC
-// ------------------------------
-#ifndef TSEC_CHECKPOINT_EXEC_EXPORT_H
-#define TSEC_CHECKPOINT_EXEC_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (TSEC_CHECKPOINT_EXEC_HAS_DLL)
-# define TSEC_CHECKPOINT_EXEC_HAS_DLL 1
-#endif /* ! TSEC_CHECKPOINT_EXEC_HAS_DLL */
-
-#if defined (TSEC_CHECKPOINT_EXEC_HAS_DLL) && (TSEC_CHECKPOINT_EXEC_HAS_DLL == 1)
-# if defined (TSEC_CHECKPOINT_EXEC_BUILD_DLL)
-# define TSEC_CHECKPOINT_EXEC_Export ACE_Proper_Export_Flag
-# define TSEC_CHECKPOINT_EXEC_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TSEC_CHECKPOINT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TSEC_CHECKPOINT_EXEC_BUILD_DLL */
-# define TSEC_CHECKPOINT_EXEC_Export ACE_Proper_Import_Flag
-# define TSEC_CHECKPOINT_EXEC_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TSEC_CHECKPOINT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TSEC_CHECKPOINT_EXEC_BUILD_DLL */
-#else /* TSEC_CHECKPOINT_EXEC_HAS_DLL == 1 */
-# define TSEC_CHECKPOINT_EXEC_Export
-# define TSEC_CHECKPOINT_EXEC_SINGLETON_DECLARATION(T)
-# define TSEC_CHECKPOINT_EXEC_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TSEC_CHECKPOINT_EXEC_HAS_DLL == 1 */
-
-// Set TSEC_CHECKPOINT_EXEC_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TSEC_CHECKPOINT_EXEC_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TSEC_CHECKPOINT_EXEC_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TSEC_CHECKPOINT_EXEC_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TSEC_CHECKPOINT_EXEC_NTRACE */
-
-#if (TSEC_CHECKPOINT_EXEC_NTRACE == 1)
-# define TSEC_CHECKPOINT_EXEC_TRACE(X)
-#else /* (TSEC_CHECKPOINT_EXEC_NTRACE == 1) */
-# define TSEC_CHECKPOINT_EXEC_TRACE(X) ACE_TRACE_IMPL(X)
-#endif /* (TSEC_CHECKPOINT_EXEC_NTRACE == 1) */
-
-#endif /* TSEC_CHECKPOINT_EXEC_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_stub_export.h b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_stub_export.h
deleted file mode 100644
index 5619f37d45d..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_stub_export.h
+++ /dev/null
@@ -1,50 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl TSEC_CHECKPOINT_STUB
-// ------------------------------
-#ifndef TSEC_CHECKPOINT_STUB_EXPORT_H
-#define TSEC_CHECKPOINT_STUB_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (TSEC_CHECKPOINT_STUB_HAS_DLL)
-# define TSEC_CHECKPOINT_STUB_HAS_DLL 1
-#endif /* ! TSEC_CHECKPOINT_STUB_HAS_DLL */
-
-#if defined (TSEC_CHECKPOINT_STUB_HAS_DLL) && (TSEC_CHECKPOINT_STUB_HAS_DLL == 1)
-# if defined (TSEC_CHECKPOINT_STUB_BUILD_DLL)
-# define TSEC_CHECKPOINT_STUB_Export ACE_Proper_Export_Flag
-# define TSEC_CHECKPOINT_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TSEC_CHECKPOINT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TSEC_CHECKPOINT_STUB_BUILD_DLL */
-# define TSEC_CHECKPOINT_STUB_Export ACE_Proper_Import_Flag
-# define TSEC_CHECKPOINT_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TSEC_CHECKPOINT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TSEC_CHECKPOINT_STUB_BUILD_DLL */
-#else /* TSEC_CHECKPOINT_STUB_HAS_DLL == 1 */
-# define TSEC_CHECKPOINT_STUB_Export
-# define TSEC_CHECKPOINT_STUB_SINGLETON_DECLARATION(T)
-# define TSEC_CHECKPOINT_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TSEC_CHECKPOINT_STUB_HAS_DLL == 1 */
-
-// Set TSEC_CHECKPOINT_STUB_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TSEC_CHECKPOINT_STUB_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TSEC_CHECKPOINT_STUB_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TSEC_CHECKPOINT_STUB_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TSEC_CHECKPOINT_STUB_NTRACE */
-
-#if (TSEC_CHECKPOINT_STUB_NTRACE == 1)
-# define TSEC_CHECKPOINT_STUB_TRACE(X)
-#else /* (TSEC_CHECKPOINT_STUB_NTRACE == 1) */
-# define TSEC_CHECKPOINT_STUB_TRACE(X) ACE_TRACE_IMPL(X)
-#endif /* (TSEC_CHECKPOINT_STUB_NTRACE == 1) */
-
-#endif /* TSEC_CHECKPOINT_STUB_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_svnt_export.h b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_svnt_export.h
deleted file mode 100644
index 99666df89e6..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/TSEC_CheckPoint_svnt_export.h
+++ /dev/null
@@ -1,50 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl TSEC_CHECKPOINT_SVNT
-// ------------------------------
-#ifndef TSEC_CHECKPOINT_SVNT_EXPORT_H
-#define TSEC_CHECKPOINT_SVNT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (TSEC_CHECKPOINT_SVNT_HAS_DLL)
-# define TSEC_CHECKPOINT_SVNT_HAS_DLL 1
-#endif /* ! TSEC_CHECKPOINT_SVNT_HAS_DLL */
-
-#if defined (TSEC_CHECKPOINT_SVNT_HAS_DLL) && (TSEC_CHECKPOINT_SVNT_HAS_DLL == 1)
-# if defined (TSEC_CHECKPOINT_SVNT_BUILD_DLL)
-# define TSEC_CHECKPOINT_SVNT_Export ACE_Proper_Export_Flag
-# define TSEC_CHECKPOINT_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TSEC_CHECKPOINT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TSEC_CHECKPOINT_SVNT_BUILD_DLL */
-# define TSEC_CHECKPOINT_SVNT_Export ACE_Proper_Import_Flag
-# define TSEC_CHECKPOINT_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TSEC_CHECKPOINT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TSEC_CHECKPOINT_SVNT_BUILD_DLL */
-#else /* TSEC_CHECKPOINT_SVNT_HAS_DLL == 1 */
-# define TSEC_CHECKPOINT_SVNT_Export
-# define TSEC_CHECKPOINT_SVNT_SINGLETON_DECLARATION(T)
-# define TSEC_CHECKPOINT_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TSEC_CHECKPOINT_SVNT_HAS_DLL == 1 */
-
-// Set TSEC_CHECKPOINT_SVNT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TSEC_CHECKPOINT_SVNT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TSEC_CHECKPOINT_SVNT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TSEC_CHECKPOINT_SVNT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TSEC_CHECKPOINT_SVNT_NTRACE */
-
-#if (TSEC_CHECKPOINT_SVNT_NTRACE == 1)
-# define TSEC_CHECKPOINT_SVNT_TRACE(X)
-#else /* (TSEC_CHECKPOINT_SVNT_NTRACE == 1) */
-# define TSEC_CHECKPOINT_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
-#endif /* (TSEC_CHECKPOINT_SVNT_NTRACE == 1) */
-
-#endif /* TSEC_CHECKPOINT_SVNT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/controller.cpp b/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/controller.cpp
deleted file mode 100644
index 1adcc7a3e97..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/SEC_CheckPoint/controller.cpp
+++ /dev/null
@@ -1,203 +0,0 @@
-//$Id$
-
-
-/**
- * @file controller.cpp
- *
- * This program interact with a TSEC_CheckPoint component, using its supported
- * interface "ISessionService"
- */
-
-
-//-------------------------------------------------------------------
-// Includes
-//-------------------------------------------------------------------
-
-#include <ace/streams.h>
-#include <ace/Get_Opt.h>
-
-#include "TSEC_CheckPointC.h"
-
-
-//-------------------------------------------------------------------
-// Defines
-//-------------------------------------------------------------------
-
-#define SEPARATION_LINE "----------------------------------------" \
- "----------------------------------------\n"
-
-#define TESTCASE_NOT_DEFINED 0
-#define TESTCASE_ACQUIRE_RELEASE_SESSION 1
-#define TESTCASE_CREATE_DESTROY_SESSION 2
-
-
-//-------------------------------------------------------------------
-// Statics
-//-------------------------------------------------------------------
-
-static int _testcase = TESTCASE_NOT_DEFINED;
-static int _loop = 0;
-static int _ident = 1;
-static const char* _sessionService_ior = 0;
-
-
-//-------------------------------------------------------------------
-// Function
-//-------------------------------------------------------------------
-
-int
-parse_args
-(
- int argc,
- char* argv[]
-)
-{
- ACE_Get_Opt get_opts( argc, argv, "i:k:l:t:" );
- int c;
-
- while( ( c = get_opts() ) != -1 )
- {
- switch( c )
- {
- case 'i':
- _ident = atoi( get_opts.opt_arg() );
- break;
-
- case 'k':
- _sessionService_ior = get_opts.opt_arg();
- break;
-
- case 'l':
- _loop = atoi( get_opts.opt_arg() );
- break;
-
- case 't':
- _testcase = atoi( get_opts.opt_arg() );
- break;
-
- case '?': // display help for use of the server.
- default:
- ACE_ERROR_RETURN( ( LM_ERROR,
- "usage: %s\n"
- "-i <Ident> (default is 1)\n"
- "-k <TSEC_CheckPoint IOR> (default is file://TSEC_CheckPoint.ior)\n"
- "-t <testcase number> (default is 1)\n"
- "\n",
- argv[0] ),
- -1 );
- break;
- }
- }
-
- if ( _sessionService_ior == 0 )
- {
- _sessionService_ior = "file://TSEC_CheckPoint.ior";
- }
-
- if( _testcase == 0 )
- {
- _testcase = TESTCASE_ACQUIRE_RELEASE_SESSION;
- }
-
- return 0;
-}
-
-
-//-------------------------------------------------------------------
-// Function
-//-------------------------------------------------------------------
-
-int
-main
-(
- int argc,
- char* argv[]
-)
-{
- ACE_TRY_NEW_ENV
- {
- // Initialize orb
- CORBA::ORB_var orb =
- CORBA::ORB_init( argc, argv, "" ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
-
- if( parse_args( argc, argv ) != 0 )
- {
- return -1;
- }
-
- CORBA::Object_var obj = orb->string_to_object( _sessionService_ior
- ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
-
- ENW::ISessionService_var sessionService =
- ENW::ISessionService::_narrow (obj.in () ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
-
- if( CORBA::is_nil( sessionService.in() ) )
- {
- ACE_ERROR_RETURN( ( LM_ERROR,
- "Unable to acquire 'SessionService' objref\n" ),
- -1 );
- }
-
- ACE_DEBUG( ( LM_DEBUG, SEPARATION_LINE ) );
-
- for( int i = 0; i < _loop; ++i )
- {
- switch( _testcase )
- {
- case TESTCASE_ACQUIRE_RELEASE_SESSION:
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) Executing testcase acquire release session...[running]\n" ) );
-
- ENW::TSession_var session = sessionService->acquireSession( _ident );
- //CORBA::Long ident = session->getIdent();
- sessionService->releaseSession( _ident, session.in () );
-
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) Executing testcase acquire release session...[ready]\n" ) );
- }
-
- break;
-
- case TESTCASE_CREATE_DESTROY_SESSION:
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) Executing testcase create destroy session...[running]\n" ) );
-
- ENW::TSession_var session = sessionService->createSession();
- CORBA::Long ident = session->getIdent();
- ACE_DEBUG(( LM_DEBUG, "(%P|%t@%T) Ident: %d\n", ident ) );
-
- if( !sessionService->destroySession( session.in () ) )
- {
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) Executing testcase create destroy session...[ERROR]\n" ) );
- }
-
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) Executing testcase create destroy session...[ready]\n" ) );
- }
-
- break;
-
- default:
- ACE_DEBUG( ( LM_DEBUG, "(%P|%t@%T) Testcase is undefined!\n" ) );
- break;
-
- }
- }
-
- orb->destroy( ACE_ENV_SINGLE_ARG_PARAMETER );
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION( ACE_ANY_EXCEPTION,
- "Who is the culprit \n" );
- cerr << "Uncaught CORBA exception" << endl;
-
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/DeploymentPlan.cdp b/TAO/CIAO/tests/Bug_2130_Regression/descriptors/DeploymentPlan.cdp
deleted file mode 100644
index d814af11a50..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/DeploymentPlan.cdp
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
-<Deployment:deploymentPlan
- xmlns:Deployment="http://www.omg.org/Deployment"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.omg.org/Deployment Modified_Deployment.xsd">
-
- <label>CheckPoint-DeploymentPlan</label>
-
- <UUID>CheckPoint_Plan_UUID_0001</UUID>
-
- <realizes>
- <label>CheckPoint-realizes-cid</label>
- <UUID>c0965470-7b83-11d9-9669-0800200c9a66</UUID>
- <specificType/>
- <supportedType>IDL:ENW/Sender:1.0</supportedType>
- <port>
- <name>read_message</name>
- <specificType>IDL:ENW/ISessionService:1.0</specificType>
- <supportedType>IDL:ENW/ISessionService:1.0</supportedType>
- <provider>false</provider>
- <exclusiveProvider>false</exclusiveProvider>
- <exclusiveUser>true</exclusiveUser>
- <optional>false</optional>
- <kind>SimplexReceptacle</kind>
- </port>
- </realizes>
-
- <implementation id="CheckPoint-TSEC_CheckPoint-mdd">
- <name>CheckPoint-TSEC_CheckPoint-mdd</name>
- <source><!-- @@ Don't know what goes here --></source>
- <artifact>CheckPoint-TSEC_CheckPoint_exec</artifact>
- <artifact>CheckPoint-TSEC_CheckPoint_svnt</artifact>
- </implementation>
-
- <instance id="CheckPoint-TSEC_CheckPoint-idd">
- <name>CheckPoint-TSEC_CheckPoint-idd</name>
- <node>CheckPointNode</node>
- <source/>
- <implementation>CheckPoint-TSEC_CheckPoint-mdd</implementation>
- <configProperty>
- <name>ComponentIOR</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>TSEC_CheckPoint.ior</string>
- </value>
- </value>
- </configProperty>
-
- <deployedResource>
- <resourceUsage>InstanceUsesResource</resourceUsage>
- <requirementName>CIAO:PolicySet</requirementName>
- <resourceName>test_server_resource_id</resourceName>
- <resourceValue>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>test_policy_set_id</string>
- </value>
- </resourceValue>
- </deployedResource>
- </instance>
-
- <artifact id="CheckPoint-TSEC_CheckPoint_exec">
- <name>TSEC_CheckPoint_exec</name>
- <source/>
- <node/>
- <location>TSEC_CheckPoint_exec</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>createTSEC_CheckPointHome_Impl</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <artifact id="CheckPoint-TSEC_CheckPoint_svnt">
- <name>TSEC_CheckPoint_svnt</name>
- <source/>
- <node/>
- <location>TSEC_CheckPoint_svnt</location>
- <execParameter>
- <name>entryPoint</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>create_ENW_TSEC_CheckPointHome_Servant</string>
- </value>
- </value>
- </execParameter>
- </artifact>
-
- <infoProperty>
- <name>CIAOServerResources</name>
- <value>
- <type>
- <kind>tk_string</kind>
- </type>
- <value>
- <string>rt-config-example.csr</string>
- </value>
- </value>
- </infoProperty>
-
-</Deployment:deploymentPlan>
-
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/TestNodeManagerMap.dat b/TAO/CIAO/tests/Bug_2130_Regression/descriptors/TestNodeManagerMap.dat
deleted file mode 100644
index ec06179aca7..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/TestNodeManagerMap.dat
+++ /dev/null
@@ -1,2 +0,0 @@
-CheckPointNode corbaloc:iiop:localhost:30000/NodeManager
-
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/rt-config-example.csr b/TAO/CIAO/tests/Bug_2130_Regression/descriptors/rt-config-example.csr
deleted file mode 100644
index e1d120352aa..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/rt-config-example.csr
+++ /dev/null
@@ -1,30 +0,0 @@
-
-<CIAO:ServerResources
- xmlns:CIAO="http://www.dre.vanderbilt.edu/ServerResources"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.dre.vanderbilt.edu/ServerResources CIAOServerResources.xsd"
- id="test_server_resource_id">
-
- <orbConfigs>
- <resources>
- <threadpool id="threadpool-1">
- <stacksize>0</stacksize>
- <static_threads>6</static_threads>
- <dynamic_threads>0</dynamic_threads>
- <default_priority>2</default_priority>
- <allow_request_buffering>false</allow_request_buffering>
- <max_buffered_requests>0</max_buffered_requests>
- <max_request_buffered_size>0</max_request_buffered_size>
- </threadpool>
- </resources>
-
- <policySet id="test_policy_set_id">
- <priorityModel server_priority="2">
- <priority_model>SERVER_DECLARED</priority_model>
- </priorityModel>
- <threadpool>threadpool-1</threadpool>
- </policySet>
-
- </orbConfigs>
-</CIAO:ServerResources> \ No newline at end of file
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/run_test.pl b/TAO/CIAO/tests/Bug_2130_Regression/descriptors/run_test.pl
deleted file mode 100644
index 6688e0a224f..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/descriptors/run_test.pl
+++ /dev/null
@@ -1,177 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib "$ENV{'ACE_ROOT'}/bin";
-use PerlACE::Run_Test;
-
-$DAnCE = "$ENV{'ACE_ROOT'}/TAO/CIAO/DAnCE";
-$CIAO_ROOT = "$ENV{'CIAO_ROOT'}";
-$TAO_ROOT = "$ENV{'TAO_ROOT'}";
-$daemons_running = 0;
-$em_running = 0;
-$daemons = 1;
-@ports = ( 30000 );
-@iorfiles = ( "NodeApp.ior" );
-$status = 0;
-$dat_file = "TestNodeManagerMap.dat";
-$cdp_file = "DeploymentPlan.cdp";
-$controller_exec = "../SEC_CheckPoint/controller";
-
-$E = 0;
-$EM = 0;
-
-# Delete if there are any .ior files.
-sub delete_ior_files {
- for ($i = 0; $i < $daemons; ++$i) {
- unlink $iorfiles[$i];
- }
- unlink PerlACE::LocalFile ("EM.ior");
- unlink PerlACE::LocalFile ("TSEC_CheckPoint.ior");
- unlink PerlACE::LocalFile ("DAM.ior");
-}
-
-sub kill_node_daemons {
- for ($i = 0; $i < $daemons; ++$i) {
- $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1);
- }
-}
-
-sub kill_open_processes {
- if ($daemons_running == 1) {
- kill_node_daemons ();
- }
-
- if ($em_running == 1) {
- $EM->Kill ();
- $EM->TimedWait (1);
- }
-}
-
-sub run_node_daemons {
- for ($i = 0; $i < $daemons; ++$i)
- {
- $iorfile = $iorfiles[$i];
- $port = $ports[$i];
-
- $iiop = "iiop://localhost:$port";
- $node_app = "$DAnCE/NodeApplication/NodeApplication";
-
- $d_cmd = "$DAnCE/NodeManager/NodeManager";
- $d_param = "-ORBEndpoint $iiop -s $node_app -o $iorfile -a \"-r\"";
-
- $Daemons[$i] = new PerlACE::Process ($d_cmd, $d_param);
-
-
- $result = $Daemons[$i]->Spawn ();
- push(@processes, $Daemons[$i]);
-
- if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR
- "ERROR: The ior file of node daemon $i could not be found\n";
- for (; $i > 0; --$i) {
- $Daemons[$i]->Kill (); $Daemons[$i]->TimedWait (1);
- }
- return -1;
- }
- }
- $daemons_running = 1;
- return 0;
-}
-
-delete_ior_files ();
-
-
-# Invoke node daemons.
-print "Invoking node daemons\n";
-$status = run_node_daemons ();
-
-if ($status != 0) {
- print STDERR "ERROR: Unable to execute the node daemons\n";
- exit 1;
-}
-
-$ns_running = 1;
-
-# Invoke execution manager.
-print "Invoking execution manager\n";
-$EM = new PerlACE::Process ("$DAnCE/ExecutionManager/Execution_Manager",
- "-o EM.ior -i $dat_file");
-$EM->Spawn ();
-
-if (PerlACE::waitforfile_timed ("EM.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR
- "ERROR: The ior file of execution manager could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-$em_running = 1;
-
-# Invoke executor - start the application -.
-print "Invoking executor - start the application -\n";
-$E =
- new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher",
- "-p DeploymentPlan.cdp -k file://EM.ior -o DAM.ior");
-
-$E->SpawnWaitKill (5000);
-
-
-if (PerlACE::waitforfile_timed ("TSEC_CheckPoint.ior",
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: The ior file of sender could not be found\n";
- kill_open_processes ();
- exit 1;
-}
-
-print "Running testcase 1\n";
-
-$controller = new PerlACE::Process ("$controller_exec", "-i 1 -k file://TSEC_CheckPoint.ior -t 1 -l 100000");
-$result = $controller->SpawnWaitKill (3000);
-
-if ($result != 0) {
- print STDERR "ERROR: The controller returned $result\n";
- $status = 1;
-}
-
-
-print "Running testcase 2\n";
-
-$controller = new PerlACE::Process ("$controller_exec", "-i 2 -k file://TSEC_CheckPoint.ior -t 1 -l 100000");
-$result = $controller->SpawnWaitKill (3000);
-
-if ($result != 0) {
- print STDERR "ERROR: The controller returned $result\n";
- $status = 1;
-}
-
-print "Running testcase 3\n";
-
-$controller = new PerlACE::Process ("$controller_exec", "-k file://TSEC_CheckPoint.ior -t 2 -l 100000");
-$result = $controller->SpawnWaitKill (3000);
-
-if ($result != 0) {
- print STDERR "ERROR: The controller returned $result\n";
- $status = 1;
-}
-
-
-# Invoke executor - stop the application -.
-print "Invoking executor - stop the application -\n";
-$E =
- new PerlACE::Process ("$DAnCE/Plan_Launcher/plan_launcher",
- "-k file://EM.ior -i file://DAM.ior");
-$E->SpawnWaitKill (3000);
-
-print "Executor returned.\n";
-print "Shutting down rest of the processes.\n";
-
-delete_ior_files ();
-kill_open_processes ();
-
-exit $status;
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.idl b/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.idl
deleted file mode 100644
index f62febba8a3..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.idl
+++ /dev/null
@@ -1,52 +0,0 @@
-//$Id$
-
-#ifndef ENW_IDL
-#define ENW_IDL
-
-#include <Components.idl>
-
-
-module ENW
-{
- exception EUnknownIdent
- {
- };
-
- exception EUnknownSession
- {
- };
-
- eventtype ET_LifeToken
- {
- };
-
- //////////////////////////////////////////////////////////////////////////////
- //
- // ICheckPoint-Interfaces
- //
-
- const long IdNotDefined = -1;
-
- interface TSession
- {
- long getIdent();
- boolean isInUse();
- };
-
- interface ISessionService
- {
- TSession createSession();
- boolean destroySession( in TSession Session );
-
- TSession acquireSession( in long Ident )
- raises( EUnknownIdent );
-
- boolean releaseSession( in long Ident,
- in TSession Session )
- raises( EUnknownSession );
- };
-
-};
-
-
-#endif //ENW_IDL
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.mpc b/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.mpc
deleted file mode 100644
index 2991caf58f3..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW.mpc
+++ /dev/null
@@ -1,32 +0,0 @@
-//$Id$
-
-project(ENW_stub): ciao_component_dnc, event {
-
- sharedname = ENW_stub
- idlflags += -Wb,stub_export_macro=ENW_STUB_Export -Wb,stub_export_include=ENW_stub_export.h -Wb,skel_export_macro=ENW_SVNT_Export -Wb,skel_export_include=ENW_svnt_export.h
- dynamicflags = ENW_STUB_BUILD_DLL
-
- IDL_Files {
- ENW.idl
- }
-
- Source_Files {
- ENWC.cpp
- }
-}
-
-project(ENW_svnt) : ciao_servant_dnc, event {
- after += ENW_stub
- sharedname = ENW_svnt
- libs += ENW_stub
-
- dynamicflags = ENW_SVNT_BUILD_DLL
-
- Source_Files {
- ENWS.cpp
- }
-}
-
-
-
-
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_stub_export.h b/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_stub_export.h
deleted file mode 100644
index ce5a4067f67..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_stub_export.h
+++ /dev/null
@@ -1,50 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl ENW_STUB
-// ------------------------------
-#ifndef ENW_STUB_EXPORT_H
-#define ENW_STUB_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (ENW_STUB_HAS_DLL)
-# define ENW_STUB_HAS_DLL 1
-#endif /* ! ENW_STUB_HAS_DLL */
-
-#if defined (ENW_STUB_HAS_DLL) && (ENW_STUB_HAS_DLL == 1)
-# if defined (ENW_STUB_BUILD_DLL)
-# define ENW_STUB_Export ACE_Proper_Export_Flag
-# define ENW_STUB_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define ENW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* ENW_STUB_BUILD_DLL */
-# define ENW_STUB_Export ACE_Proper_Import_Flag
-# define ENW_STUB_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define ENW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* ENW_STUB_BUILD_DLL */
-#else /* ENW_STUB_HAS_DLL == 1 */
-# define ENW_STUB_Export
-# define ENW_STUB_SINGLETON_DECLARATION(T)
-# define ENW_STUB_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* ENW_STUB_HAS_DLL == 1 */
-
-// Set ENW_STUB_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (ENW_STUB_NTRACE)
-# if (ACE_NTRACE == 1)
-# define ENW_STUB_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define ENW_STUB_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !ENW_STUB_NTRACE */
-
-#if (ENW_STUB_NTRACE == 1)
-# define ENW_STUB_TRACE(X)
-#else /* (ENW_STUB_NTRACE == 1) */
-# define ENW_STUB_TRACE(X) ACE_TRACE_IMPL(X)
-#endif /* (ENW_STUB_NTRACE == 1) */
-
-#endif /* ENW_STUB_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_svnt_export.h b/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_svnt_export.h
deleted file mode 100644
index 2e4b7580702..00000000000
--- a/TAO/CIAO/tests/Bug_2130_Regression/interfaces/ENW_svnt_export.h
+++ /dev/null
@@ -1,50 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl ENW_SVNT
-// ------------------------------
-#ifndef ENW_SVNT_EXPORT_H
-#define ENW_SVNT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (ENW_SVNT_HAS_DLL)
-# define ENW_SVNT_HAS_DLL 1
-#endif /* ! ENW_SVNT_HAS_DLL */
-
-#if defined (ENW_SVNT_HAS_DLL) && (ENW_SVNT_HAS_DLL == 1)
-# if defined (ENW_SVNT_BUILD_DLL)
-# define ENW_SVNT_Export ACE_Proper_Export_Flag
-# define ENW_SVNT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define ENW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* ENW_SVNT_BUILD_DLL */
-# define ENW_SVNT_Export ACE_Proper_Import_Flag
-# define ENW_SVNT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define ENW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* ENW_SVNT_BUILD_DLL */
-#else /* ENW_SVNT_HAS_DLL == 1 */
-# define ENW_SVNT_Export
-# define ENW_SVNT_SINGLETON_DECLARATION(T)
-# define ENW_SVNT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* ENW_SVNT_HAS_DLL == 1 */
-
-// Set ENW_SVNT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (ENW_SVNT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define ENW_SVNT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define ENW_SVNT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !ENW_SVNT_NTRACE */
-
-#if (ENW_SVNT_NTRACE == 1)
-# define ENW_SVNT_TRACE(X)
-#else /* (ENW_SVNT_NTRACE == 1) */
-# define ENW_SVNT_TRACE(X) ACE_TRACE_IMPL(X)
-#endif /* (ENW_SVNT_NTRACE == 1) */
-
-#endif /* ENW_SVNT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/tests/CIDL/CodeGen/CodeGen.mpc b/TAO/CIAO/tests/CIDL/CodeGen/CodeGen.mpc
index 46cd2ef5573..0a3ffc979e3 100644
--- a/TAO/CIAO/tests/CIDL/CodeGen/CodeGen.mpc
+++ b/TAO/CIAO/tests/CIDL/CodeGen/CodeGen.mpc
@@ -1,7 +1,7 @@
// $Id$
-project(CIDL_Basic_stub): ciao_component_dnc {
- avoids += ace_for_tao
+project(CIDL_Basic_stub): ciao_client_dnc {
+
sharedname = CIDL_Basic_stub
idlflags += -Wb,stub_export_macro=BASIC_STUB_Export -Wb,stub_export_include=Basic_stub_export.h -Wb,skel_export_macro=BASIC_SVNT_Export -Wb,skel_export_include=Basic_svnt_export.h
dynamicflags = BASIC_STUB_BUILD_DLL
@@ -21,7 +21,6 @@ project(CIDL_Basic_stub): ciao_component_dnc {
}
project(CIDL_Basic_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += CIDL_Basic_stub
sharedname = CIDL_Basic_svnt
libs += CIDL_Basic_stub
@@ -44,7 +43,6 @@ project(CIDL_Basic_svnt) : ciao_servant_dnc {
}
project(CodeGen_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += CIDL_Basic_stub
libs += CIDL_Basic_stub
sharedname = CodeGen_stub
@@ -66,7 +64,6 @@ project(CodeGen_stub): ciao_client_dnc {
}
project(CodeGen_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += CIDL_Basic_svnt CodeGen_stub
sharedname = CodeGen_svnt
libs += CodeGen_stub CIDL_Basic_stub CIDL_Basic_svnt
@@ -99,7 +96,6 @@ project(CodeGen_svnt) : ciao_servant_dnc {
project(CodeGen_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += CodeGen_svnt CodeGen_stub
sharedname = CodeGen_exec
libs += CodeGen_stub CodeGen_svnt CIDL_Basic_stub CIDL_Basic_svnt
diff --git a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc
index 5613617d1af..1372ae82668 100644
--- a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc
+++ b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Attributes/Attributes.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Attributes"
-project(Attributes_stub): ciao_component_dnc {
-
+project(Attributes_stub): ciao_client_dnc {
+
sharedname = Attributes_stub
idlflags += -Wb,stub_export_macro=ATTRIBUTES_STUB_Export -Wb,stub_export_include=Attributes_stub_export.h -Wb,skel_export_macro=ATTRIBUTES_SVNT_Export -Wb,skel_export_include=Attributes_svnt_export.h
dynamicflags = ATTRIBUTES_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc
index 11d5d9e28d9..a1a90abe9a3 100644
--- a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc
+++ b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSink/EventSink.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n EventSink"
-project(EventSink_stub): ciao_component_dnc {
-
+project(EventSink_stub): ciao_client_dnc {
+
sharedname = EventSink_stub
idlflags += -Wb,stub_export_macro=EVENTSINK_STUB_Export -Wb,stub_export_include=EventSink_stub_export.h -Wb,skel_export_macro=EVENTSINK_SVNT_Export -Wb,skel_export_include=EventSink_svnt_export.h
dynamicflags = EVENTSINK_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc
index 1ef539cc479..e98d21e8a5a 100644
--- a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc
+++ b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/EventSource/EventSource.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n EventSource"
-project(EventSource_stub): ciao_component_dnc {
-
+project(EventSource_stub): ciao_client_dnc {
+
sharedname = EventSource_stub
idlflags += -Wb,stub_export_macro=EVENTSOURCE_STUB_Export -Wb,stub_export_include=EventSource_stub_export.h -Wb,skel_export_macro=EVENTSOURCE_SVNT_Export -Wb,skel_export_include=EventSource_svnt_export.h
dynamicflags = EVENTSOURCE_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc
index 70c54bba7b4..1f1ba286b7d 100644
--- a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc
+++ b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Facets/Facets.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Facets"
-project(Facets_stub): ciao_component_dnc {
-
+project(Facets_stub): ciao_client_dnc {
+
sharedname = Facets_stub
idlflags += -Wb,stub_export_macro=FACETS_STUB_Export -Wb,stub_export_include=Facets_stub_export.h -Wb,skel_export_macro=FACETS_SVNT_Export -Wb,skel_export_include=Facets_svnt_export.h
dynamicflags = FACETS_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc
index 53db53dee90..6ecfc50f438 100644
--- a/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc
+++ b/TAO/CIAO/tests/IDL3/Components/ComplexComponent/Receptacles/Receptacles.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Receptacles"
-project(Receptacles_stub): ciao_component_dnc {
-
+project(Receptacles_stub): ciao_client_dnc {
+
sharedname = Receptacles_stub
idlflags += -Wb,stub_export_macro=RECEPTACLES_STUB_Export -Wb,stub_export_include=Receptacles_stub_export.h -Wb,skel_export_macro=RECEPTACLES_SVNT_Export -Wb,skel_export_include=Receptacles_svnt_export.h
dynamicflags = RECEPTACLES_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc b/TAO/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc
index 5737e7220e0..da4084ee9f3 100644
--- a/TAO/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc
+++ b/TAO/CIAO/tests/IDL3/Components/SimpleComponent/SimpleComponent.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl SimpleComponent"
-project(SimpleComponent_stub): ciao_component_dnc {
-
+project(SimpleComponent_stub): ciao_client_dnc {
+
sharedname = SimpleComponent_stub
idlflags += -Wb,stub_export_macro=SIMPLECOMPONENT_STUB_Export -Wb,stub_export_include=SimpleComponent_stub_export.h -Wb,skel_export_macro=SIMPLECOMPONENT_SVNT_Export -Wb,skel_export_include=SimpleComponent_svnt_export.h
dynamicflags = SIMPLECOMPONENT_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc b/TAO/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc
index b9ab054bae6..bffbdebb9df 100644
--- a/TAO/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc
+++ b/TAO/CIAO/tests/IDL3/Events/Abstract/Abstract.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Abstract"
-project(Abstract_stub): ciao_component_dnc {
-
+project(Abstract_stub): ciao_client_dnc {
+
sharedname = Abstract_stub
idlflags += -Wb,stub_export_macro=ABSTRACT_STUB_Export -Wb,stub_export_include=Abstract_stub_export.h -Wb,skel_export_macro=ABSTRACT_SVNT_Export -Wb,skel_export_include=Abstract_svnt_export.h
dynamicflags = ABSTRACT_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Events/Regular/Regular.mpc b/TAO/CIAO/tests/IDL3/Events/Regular/Regular.mpc
index a8f153cfb1d..81faf3a8e4f 100644
--- a/TAO/CIAO/tests/IDL3/Events/Regular/Regular.mpc
+++ b/TAO/CIAO/tests/IDL3/Events/Regular/Regular.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Regular"
-project(Regular_stub): ciao_component_dnc {
-
+project(Regular_stub): ciao_client_dnc {
+
sharedname = Regular_stub
idlflags += -Wb,stub_export_macro=REGULAR_STUB_Export -Wb,stub_export_include=Regular_stub_export.h -Wb,skel_export_macro=REGULAR_SVNT_Export -Wb,skel_export_include=Regular_svnt_export.h
dynamicflags = REGULAR_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc b/TAO/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc
index 931fa200079..413748705d0 100644
--- a/TAO/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc
+++ b/TAO/CIAO/tests/IDL3/Homes/Attributes/HomeAttributes.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n HomeAttributes"
-project(HomeAttributes_stub): ciao_component_dnc {
-
+project(HomeAttributes_stub): ciao_client_dnc {
+
sharedname = HomeAttributes_stub
idlflags += -Wb,stub_export_macro=HOMEATTRIBUTES_STUB_Export -Wb,stub_export_include=HomeAttributes_stub_export.h -Wb,skel_export_macro=HOMEATTRIBUTES_SVNT_Export -Wb,skel_export_include=HomeAttributes_svnt_export.h
dynamicflags = HOMEATTRIBUTES_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Homes/Basic/Basic.mpc b/TAO/CIAO/tests/IDL3/Homes/Basic/Basic.mpc
index 8130df04024..f364c13c293 100644
--- a/TAO/CIAO/tests/IDL3/Homes/Basic/Basic.mpc
+++ b/TAO/CIAO/tests/IDL3/Homes/Basic/Basic.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Basic"
-project(IDL3_Basic_stub): ciao_component_dnc {
-
+project(IDL3_Basic_stub): ciao_client_dnc {
+
sharedname = Homes_Basic_stub
idlflags += -Wb,stub_export_macro=BASIC_STUB_Export -Wb,stub_export_include=Basic_stub_export.h -Wb,skel_export_macro=BASIC_SVNT_Export -Wb,skel_export_include=Basic_svnt_export.h
dynamicflags = BASIC_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Homes/Factory/Factory.mpc b/TAO/CIAO/tests/IDL3/Homes/Factory/Factory.mpc
index aa13235daf0..7ff6c2a75bc 100644
--- a/TAO/CIAO/tests/IDL3/Homes/Factory/Factory.mpc
+++ b/TAO/CIAO/tests/IDL3/Homes/Factory/Factory.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Factory"
-project(Factory_stub): ciao_component_dnc {
-
+project(Factory_stub): ciao_client_dnc {
+
sharedname = Factory_stub
idlflags += -Wb,stub_export_macro=FACTORY_STUB_Export -Wb,stub_export_include=Factory_stub_export.h -Wb,skel_export_macro=FACTORY_SVNT_Export -Wb,skel_export_include=Factory_svnt_export.h
dynamicflags = FACTORY_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Homes/Finder/Finder.mpc b/TAO/CIAO/tests/IDL3/Homes/Finder/Finder.mpc
index 965043e4558..0409af4d8ad 100644
--- a/TAO/CIAO/tests/IDL3/Homes/Finder/Finder.mpc
+++ b/TAO/CIAO/tests/IDL3/Homes/Finder/Finder.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Finder"
-project(Finder_stub): ciao_component_dnc {
-
+project(Finder_stub): ciao_client_dnc {
+
sharedname = Finder_stub
idlflags += -Wb,stub_export_macro=FINDER_STUB_Export -Wb,stub_export_include=Finder_stub_export.h -Wb,skel_export_macro=FINDER_SVNT_Export -Wb,skel_export_include=Finder_svnt_export.h
dynamicflags = FINDER_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc b/TAO/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc
index ef6226a3426..b8c27d5b42d 100644
--- a/TAO/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc
+++ b/TAO/CIAO/tests/IDL3/Homes/Inheritance/Inheritance.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Inheritance"
-project(Inheritance_stub): ciao_component_dnc {
-
+project(Inheritance_stub): ciao_client_dnc {
+
sharedname = Inheritance_stub
idlflags += -Wb,stub_export_macro=INHERITANCE_STUB_Export -Wb,stub_export_include=Inheritance_stub_export.h -Wb,skel_export_macro=INHERITANCE_SVNT_Export -Wb,skel_export_include=Inheritance_svnt_export.h
dynamicflags = INHERITANCE_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc
index e83dabd8b0e..5759c52f43c 100644
--- a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc
+++ b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Basic/ICBasic.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n ICBasic"
-project(ICBasic_stub): ciao_component_dnc {
-
+project(ICBasic_stub): ciao_client_dnc {
+
sharedname = ICBasic_stub
idlflags += -Wb,stub_export_macro=ICBASIC_STUB_Export -Wb,stub_export_include=ICBasic_stub_export.h -Wb,skel_export_macro=ICBASIC_SVNT_Export -Wb,skel_export_include=ICBasic_svnt_export.h
dynamicflags = ICBASIC_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc
index 5f7126ff4f4..f3707d8bea2 100644
--- a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc
+++ b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSink/ICEventSink.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n ICEventSink"
-project(ICEventSink_stub): ciao_component_dnc {
-
+project(ICEventSink_stub): ciao_client_dnc {
+
sharedname = ICEventSink_stub
idlflags += -Wb,stub_export_macro=ICEVENTSINK_STUB_Export -Wb,stub_export_include=ICEventSink_stub_export.h -Wb,skel_export_macro=ICEVENTSINK_SVNT_Export -Wb,skel_export_include=ICEventSink_svnt_export.h
dynamicflags = ICEVENTSINK_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc
index 103ba9123d6..c86b9521ce4 100644
--- a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc
+++ b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/EventSource/ICEventSource.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n ICEventSource"
-project(ICEventSource_stub): ciao_component_dnc {
-
+project(ICEventSource_stub): ciao_client_dnc {
+
sharedname = ICEventSource_stub
idlflags += -Wb,stub_export_macro=ICEVENTSOURCE_STUB_Export -Wb,stub_export_include=ICEventSource_stub_export.h -Wb,skel_export_macro=ICEVENTSOURCE_SVNT_Export -Wb,skel_export_include=ICEventSource_svnt_export.h
dynamicflags = ICEVENTSOURCE_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc
index 4307a8bfb9c..d47827f2a2d 100644
--- a/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc
+++ b/TAO/CIAO/tests/IDL3/ImpliedIDL/Components/Receptacles/ICReceptacles.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n ICReceptacles"
-project(ICReceptacles_stub): ciao_component_dnc {
-
+project(ICReceptacles_stub): ciao_client_dnc {
+
sharedname = ICReceptacles_stub
idlflags += -Wb,stub_export_macro=ICRECEPTACLES_STUB_Export -Wb,stub_export_include=ICReceptacles_stub_export.h -Wb,skel_export_macro=ICRECEPTACLES_SVNT_Export -Wb,skel_export_include=ICReceptacles_svnt_export.h
dynamicflags = ICRECEPTACLES_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/ImpliedIDL/Events/Events.mpc b/TAO/CIAO/tests/IDL3/ImpliedIDL/Events/Events.mpc
index 07c4820fce6..7c3478d0b2e 100644
--- a/TAO/CIAO/tests/IDL3/ImpliedIDL/Events/Events.mpc
+++ b/TAO/CIAO/tests/IDL3/ImpliedIDL/Events/Events.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Events"
-project(Events_stub): ciao_component_dnc {
-
+project(Events_stub): ciao_client_dnc {
+
sharedname = Events_stub
idlflags += -Wb,stub_export_macro=EVENTS_STUB_Export -Wb,stub_export_include=Events_stub_export.h -Wb,skel_export_macro=EVENTS_SVNT_Export -Wb,skel_export_include=Events_svnt_export.h
dynamicflags = EVENTS_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/ImpliedIDL/Homes/Homes.mpc b/TAO/CIAO/tests/IDL3/ImpliedIDL/Homes/Homes.mpc
index cd97e268c98..c81e215abfa 100644
--- a/TAO/CIAO/tests/IDL3/ImpliedIDL/Homes/Homes.mpc
+++ b/TAO/CIAO/tests/IDL3/ImpliedIDL/Homes/Homes.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Homes"
-project(Homes_stub): ciao_component_dnc {
-
+project(Homes_stub): ciao_client_dnc {
+
sharedname = Homes_stub
idlflags += -Wb,stub_export_macro=HOMES_STUB_Export -Wb,stub_export_include=Homes_stub_export.h -Wb,skel_export_macro=HOMES_SVNT_Export -Wb,skel_export_include=Homes_svnt_export.h
dynamicflags = HOMES_STUB_BUILD_DLL
diff --git a/TAO/CIAO/tests/IDL3/Lookup/lookup_test.mpc b/TAO/CIAO/tests/IDL3/Lookup/lookup_test.mpc
index f0c020b3169..9814f248c5a 100644
--- a/TAO/CIAO/tests/IDL3/Lookup/lookup_test.mpc
+++ b/TAO/CIAO/tests/IDL3/Lookup/lookup_test.mpc
@@ -1,7 +1,7 @@
// $Id$
-project(LookupTest_stub): ciao_component_dnc {
-
+project(LookupTest_stub): ciao_client_dnc {
+
sharedname = LookupTest_stub
idlflags += -Sc
diff --git a/TAO/CIAO/tests/Minimum/Minimum_Base/Minimum.mpc b/TAO/CIAO/tests/Minimum/Minimum_Base/Minimum.mpc
index 190b358d5c8..f4393115c4f 100644
--- a/TAO/CIAO/tests/Minimum/Minimum_Base/Minimum.mpc
+++ b/TAO/CIAO/tests/Minimum/Minimum_Base/Minimum.mpc
@@ -1,8 +1,8 @@
// $Id$
// This file is generated with "generate_component_mpc.pl -n Minimum_Base"
-project(Minimum_Base_DnC_stub): ciao_component_dnc {
-
+project(Minimum_Base_DnC_stub): ciao_client_dnc {
+
sharedname = Minimum_Base_DnC_stub
idlflags += -Sc \
-Wb,stub_export_macro=MINIMUM_BASE_STUB_Export \
@@ -18,11 +18,11 @@ project(Minimum_Base_DnC_stub): ciao_component_dnc {
Source_Files {
Minimum_BaseC.cpp
}
-
+
Header_Files {
Minimum_BaseC.h
}
-
+
Inline_Files {
Minimum_BaseC.inl
}
@@ -31,14 +31,14 @@ project(Minimum_Base_DnC_stub): ciao_component_dnc {
project(Minimum_Base_DnC_svnt) : ciao_servant_dnc {
after += Minimum_Base_DnC_stub
sharedname = Minimum_Base_DnC_svnt
- libs += Minimum_Base_DnC_stub
-
+ libs += Minimum_Base_DnC_stub
+
idlflags += -Sc \
-Wb,stub_export_macro=MINIMUM_BASE_STUB_Export \
-Wb,stub_export_include=Minimum_Base_stub_export.h \
-Wb,skel_export_macro=MINIMUM_BASE_SVNT_Export \
-Wb,skel_export_include=Minimum_Base_svnt_export.h
- dynamicflags = MINIMUM_BASE_SVNT_BUILD_DLL
+ dynamicflags = MINIMUM_BASE_SVNT_BUILD_DLL
IDL_Files {
Minimum_Base.idl
@@ -47,11 +47,11 @@ project(Minimum_Base_DnC_svnt) : ciao_servant_dnc {
Source_Files {
Minimum_BaseS.cpp
}
-
+
Header_Files {
Minimum_BaseS.h
}
-
+
Inline_Files {
Minimum_BaseS.inl
}
diff --git a/TAO/CIAO/tests/Minimum/Receiver/Receiver.mpc b/TAO/CIAO/tests/Minimum/Receiver/Receiver.mpc
index 0fc995db8e8..3b7d613143d 100644
--- a/TAO/CIAO/tests/Minimum/Receiver/Receiver.mpc
+++ b/TAO/CIAO/tests/Minimum/Receiver/Receiver.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc_extra.pl -p Minimum_Base Receiver"
project(Minimum_Base_Receiver_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Minimum_Base_DnC_stub
sharedname = Minimum_Receiver_DnC_stub
idlflags += -Sc \
@@ -31,7 +30,6 @@ project(Minimum_Base_Receiver_DnC_stub): ciao_client_dnc {
}
project(Minimum_Base_Receiver_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Minimum_Base_DnC_svnt \
Minimum_Base_Receiver_DnC_stub
sharedname = Minimum_Receiver_DnC_svnt
@@ -72,7 +70,6 @@ project(Minimum_Base_Receiver_DnC_svnt) : ciao_servant_dnc {
project(Minimum_Base_Receiver_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += Minimum_Base_Receiver_DnC_svnt
sharedname = Minimum_Receiver_DnC_exec
libs += Minimum_Receiver_DnC_stub \
diff --git a/TAO/CIAO/tests/Minimum/Sender/Sender.mpc b/TAO/CIAO/tests/Minimum/Sender/Sender.mpc
index 583a980b793..d1a92577943 100644
--- a/TAO/CIAO/tests/Minimum/Sender/Sender.mpc
+++ b/TAO/CIAO/tests/Minimum/Sender/Sender.mpc
@@ -2,7 +2,6 @@
// This file is generated with "generate_component_mpc_extra.pl -p Minimum_Base Sender"
project(Minimum_Base_Sender_DnC_stub): ciao_client_dnc {
- avoids += ace_for_tao
after += Minimum_Base_DnC_stub
sharedname = Minimum_Sender_DnC_stub
idlflags += -Sc \
@@ -31,7 +30,6 @@ project(Minimum_Base_Sender_DnC_stub): ciao_client_dnc {
}
project(Minimum_Base_Sender_DnC_svnt) : ciao_servant_dnc {
- avoids += ace_for_tao
after += Minimum_Base_DnC_svnt \
Minimum_Base_Sender_DnC_stub
sharedname = Minimum_Sender_DnC_svnt
@@ -71,7 +69,6 @@ project(Minimum_Base_Sender_DnC_svnt) : ciao_servant_dnc {
}
project(Minimum_Base_Sender_DnC_exec) : ciao_component_dnc {
- avoids += ace_for_tao
after += Minimum_Base_Sender_DnC_svnt
sharedname = Minimum_Sender_DnC_exec
libs += Minimum_Sender_DnC_stub \
diff --git a/TAO/CIAO/tools/Config_Handlers/ADD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/ADD_Handler.cpp
index 9a0d50a34f1..09d53d2afd5 100644
--- a/TAO/CIAO/tools/Config_Handlers/ADD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/ADD_Handler.cpp
@@ -21,7 +21,6 @@ namespace CIAO
const DeploymentPlan &src,
::Deployment::ArtifactDeploymentDescriptions &dest)
{
- CIAO_TRACE("ADD_Handler::atrifact_deployment_descrs");
DeploymentPlan::artifact_const_iterator aci_e =
src.end_artifact ();
dest.length (src.count_artifact ());
@@ -44,7 +43,6 @@ namespace CIAO
Deployment::ArtifactDeploymentDescription &dest,
CORBA::ULong pos)
{
- CIAO_TRACE("ADD_Handler::atrifact_deployment_descr");
dest.name = src.name ().c_str ();
dest.node = src.node ().c_str ();
@@ -129,40 +127,39 @@ namespace CIAO
ADD_Handler::artifact_deployment_descr (
const Deployment::ArtifactDeploymentDescription &src)
{
- CIAO_TRACE("ADD_Handler::atrifact_deployment_descr - reverse");
//Get the name and node and store them in the add
- XMLSchema::string< char > name ((src.name));
- XMLSchema::string< char > node ((src.node));
-
- ArtifactDeploymentDescription add (name,node);
-
- //Get the location(s) and store it/them in the add
- size_t total = src.location.length ();
- for (size_t i = 0; i < total; ++i)
+ XMLSchema::string< char > name ((src.name));
+ XMLSchema::string< char > node ((src.node));
+
+ ArtifactDeploymentDescription add (name,node);
+
+ //Get the location(s) and store it/them in the add
+ size_t total = src.location.length ();
+ for (size_t i = 0; i < total; ++i)
{
- XMLSchema::string< char > curr ((src.location[i]));
- add.add_location (curr);
+ XMLSchema::string< char > curr ((src.location[i]));
+ add.add_location (curr);
}
-
- //As above, for the source(s)
- total = src.source.length ();
- for (size_t j = 0; j < total; ++j)
+
+ //As above, for the source(s)
+ total = src.source.length ();
+ for (size_t j = 0; j < total; ++j)
{
- XMLSchema::string< char > curr ((src.source[j]));
- add.add_source (curr);
+ XMLSchema::string< char > curr ((src.source[j]));
+ add.add_source (curr);
}
-
- //As above for the execParameter(s)
- total = src.execParameter.length ();
+
+ //As above for the execParameter(s)
+ total = src.execParameter.length ();
for (size_t k = 0; k < total; ++k)
- {
+ {
add.add_execParameter (
Property_Handler::get_property (
src.execParameter[k]));
- }
-
+ }
+
return add;
- }
+ }
diff --git a/TAO/CIAO/tools/Config_Handlers/Any_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/Any_Handler.cpp
index 5a8ff23331f..e14838e9a9a 100644
--- a/TAO/CIAO/tools/Config_Handlers/Any_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/Any_Handler.cpp
@@ -6,7 +6,7 @@
#include "DataType_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "tao/AnyTypeCode/Any.h"
-#include "ciao/CIAO_common.h"
+
#include "DynAny_Handler/DynAny_Handler.h"
namespace CIAO
@@ -27,7 +27,6 @@ namespace CIAO
CORBA::Any& toconfig)
{
- CIAO_TRACE("Any_Handler::extract_into_any");
DynamicAny::DynAny_var dyn = DYNANY_HANDLER->extract_into_dynany (desc.type (),
desc.value ());
@@ -38,7 +37,6 @@ namespace CIAO
Any Any_Handler::get_any (const ::CORBA::Any& src)
{
- CIAO_TRACE("Any_Handler::extract_into_any - reverse");
//MAJO
//@Bala ... still haven't figured this one out yet
//I was saving it for last...going from corba::any
diff --git a/TAO/CIAO/tools/Config_Handlers/Any_Handler.h b/TAO/CIAO/tools/Config_Handlers/Any_Handler.h
index 17b0814ad41..8317c41422f 100644
--- a/TAO/CIAO/tools/Config_Handlers/Any_Handler.h
+++ b/TAO/CIAO/tools/Config_Handlers/Any_Handler.h
@@ -18,14 +18,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class Any;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
namespace CIAO
{
diff --git a/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.cpp b/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.cpp
index d3cc2577aa2..57d9d4c5c9e 100644
--- a/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.cpp
@@ -141,55 +141,81 @@ namespace CIAO
regulator__ ()
{
{
- for (short_const_iterator i (s.short_.begin ());i != s.short_.end ();++i) add_short (*i);
+ for (short_const_iterator i (s.short_.begin ());
+ i != s.short_.end ();
+ ++i) add_short (*i);
}
{
- for (long_const_iterator i (s.long_.begin ());i != s.long_.end ();++i) add_long (*i);
+ for (long_const_iterator i (s.long_.begin ());
+ i != s.long_.end ();
+ ++i) add_long (*i);
}
{
- for (ushort_const_iterator i (s.ushort_.begin ());i != s.ushort_.end ();++i) add_ushort (*i);
+ for (ushort_const_iterator i (s.ushort_.begin ());
+ i != s.ushort_.end ();
+ ++i) add_ushort (*i);
}
{
- for (ulong_const_iterator i (s.ulong_.begin ());i != s.ulong_.end ();++i) add_ulong (*i);
+ for (ulong_const_iterator i (s.ulong_.begin ());
+ i != s.ulong_.end ();
+ ++i) add_ulong (*i);
}
{
- for (float_const_iterator i (s.float_.begin ());i != s.float_.end ();++i) add_float (*i);
+ for (float_const_iterator i (s.float_.begin ());
+ i != s.float_.end ();
+ ++i) add_float (*i);
}
{
- for (double_const_iterator i (s.double_.begin ());i != s.double_.end ();++i) add_double (*i);
+ for (double_const_iterator i (s.double_.begin ());
+ i != s.double_.end ();
+ ++i) add_double (*i);
}
{
- for (boolean_const_iterator i (s.boolean_.begin ());i != s.boolean_.end ();++i) add_boolean (*i);
+ for (boolean_const_iterator i (s.boolean_.begin ());
+ i != s.boolean_.end ();
+ ++i) add_boolean (*i);
}
{
- for (octet_const_iterator i (s.octet_.begin ());i != s.octet_.end ();++i) add_octet (*i);
+ for (octet_const_iterator i (s.octet_.begin ());
+ i != s.octet_.end ();
+ ++i) add_octet (*i);
}
{
- for (enum_const_iterator i (s.enum_.begin ());i != s.enum_.end ();++i) add_enum (*i);
+ for (enum_const_iterator i (s.enum_.begin ());
+ i != s.enum_.end ();
+ ++i) add_enum (*i);
}
{
- for (string_const_iterator i (s.string_.begin ());i != s.string_.end ();++i) add_string (*i);
+ for (string_const_iterator i (s.string_.begin ());
+ i != s.string_.end ();
+ ++i) add_string (*i);
}
{
- for (longlong_const_iterator i (s.longlong_.begin ());i != s.longlong_.end ();++i) add_longlong (*i);
+ for (longlong_const_iterator i (s.longlong_.begin ());
+ i != s.longlong_.end ();
+ ++i) add_longlong (*i);
}
{
- for (ulonglong_const_iterator i (s.ulonglong_.begin ());i != s.ulonglong_.end ();++i) add_ulonglong (*i);
+ for (ulonglong_const_iterator i (s.ulonglong_.begin ());
+ i != s.ulonglong_.end ();
+ ++i) add_ulonglong (*i);
}
{
- for (longdouble_const_iterator i (s.longdouble_.begin ());i != s.longdouble_.end ();++i) add_longdouble (*i);
+ for (longdouble_const_iterator i (s.longdouble_.begin ());
+ i != s.longdouble_.end ();
+ ++i) add_longdouble (*i);
}
}
@@ -198,67 +224,93 @@ namespace CIAO
{
short_.clear ();
{
- for (short_const_iterator i (s.short_.begin ());i != s.short_.end ();++i) add_short (*i);
+ for (short_const_iterator i (s.short_.begin ());
+ i != s.short_.end ();
+ ++i) add_short (*i);
}
long_.clear ();
{
- for (long_const_iterator i (s.long_.begin ());i != s.long_.end ();++i) add_long (*i);
+ for (long_const_iterator i (s.long_.begin ());
+ i != s.long_.end ();
+ ++i) add_long (*i);
}
ushort_.clear ();
{
- for (ushort_const_iterator i (s.ushort_.begin ());i != s.ushort_.end ();++i) add_ushort (*i);
+ for (ushort_const_iterator i (s.ushort_.begin ());
+ i != s.ushort_.end ();
+ ++i) add_ushort (*i);
}
ulong_.clear ();
{
- for (ulong_const_iterator i (s.ulong_.begin ());i != s.ulong_.end ();++i) add_ulong (*i);
+ for (ulong_const_iterator i (s.ulong_.begin ());
+ i != s.ulong_.end ();
+ ++i) add_ulong (*i);
}
float_.clear ();
{
- for (float_const_iterator i (s.float_.begin ());i != s.float_.end ();++i) add_float (*i);
+ for (float_const_iterator i (s.float_.begin ());
+ i != s.float_.end ();
+ ++i) add_float (*i);
}
double_.clear ();
{
- for (double_const_iterator i (s.double_.begin ());i != s.double_.end ();++i) add_double (*i);
+ for (double_const_iterator i (s.double_.begin ());
+ i != s.double_.end ();
+ ++i) add_double (*i);
}
boolean_.clear ();
{
- for (boolean_const_iterator i (s.boolean_.begin ());i != s.boolean_.end ();++i) add_boolean (*i);
+ for (boolean_const_iterator i (s.boolean_.begin ());
+ i != s.boolean_.end ();
+ ++i) add_boolean (*i);
}
octet_.clear ();
{
- for (octet_const_iterator i (s.octet_.begin ());i != s.octet_.end ();++i) add_octet (*i);
+ for (octet_const_iterator i (s.octet_.begin ());
+ i != s.octet_.end ();
+ ++i) add_octet (*i);
}
enum_.clear ();
{
- for (enum_const_iterator i (s.enum_.begin ());i != s.enum_.end ();++i) add_enum (*i);
+ for (enum_const_iterator i (s.enum_.begin ());
+ i != s.enum_.end ();
+ ++i) add_enum (*i);
}
string_.clear ();
{
- for (string_const_iterator i (s.string_.begin ());i != s.string_.end ();++i) add_string (*i);
+ for (string_const_iterator i (s.string_.begin ());
+ i != s.string_.end ();
+ ++i) add_string (*i);
}
longlong_.clear ();
{
- for (longlong_const_iterator i (s.longlong_.begin ());i != s.longlong_.end ();++i) add_longlong (*i);
+ for (longlong_const_iterator i (s.longlong_.begin ());
+ i != s.longlong_.end ();
+ ++i) add_longlong (*i);
}
ulonglong_.clear ();
{
- for (ulonglong_const_iterator i (s.ulonglong_.begin ());i != s.ulonglong_.end ();++i) add_ulonglong (*i);
+ for (ulonglong_const_iterator i (s.ulonglong_.begin ());
+ i != s.ulonglong_.end ();
+ ++i) add_ulonglong (*i);
}
longdouble_.clear ();
{
- for (longdouble_const_iterator i (s.longdouble_.begin ());i != s.longdouble_.end ();++i) add_longdouble (*i);
+ for (longdouble_const_iterator i (s.longdouble_.begin ());
+ i != s.longdouble_.end ();
+ ++i) add_longdouble (*i);
}
return *this;
@@ -765,7 +817,7 @@ namespace CIAO
EnumType::
EnumType (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& typeId__)
+ ::XMLSchema::string< ACE_TCHAR > const& typeId__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -787,7 +839,9 @@ namespace CIAO
name_->container (this);
typeId_->container (this);
{
- for (member_const_iterator i (s.member_.begin ());i != s.member_.end ();++i) add_member (*i);
+ for (member_const_iterator i (s.member_.begin ());
+ i != s.member_.end ();
+ ++i) add_member (*i);
}
}
@@ -800,7 +854,9 @@ namespace CIAO
member_.clear ();
{
- for (member_const_iterator i (s.member_.begin ());i != s.member_.end ();++i) add_member (*i);
+ for (member_const_iterator i (s.member_.begin ());
+ i != s.member_.end ();
+ ++i) add_member (*i);
}
return *this;
@@ -879,7 +935,7 @@ namespace CIAO
Any::
Any (::CIAO::Config_Handlers::DataType const& type__,
- ::CIAO::Config_Handlers::DataValue const& value__)
+ ::CIAO::Config_Handlers::DataValue const& value__)
:
::XSCRT::Type (),
type_ (new ::CIAO::Config_Handlers::DataType (type__)),
@@ -947,7 +1003,7 @@ namespace CIAO
Property::
Property (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::Any const& value__)
+ ::CIAO::Config_Handlers::Any const& value__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -1042,8 +1098,8 @@ namespace CIAO
SatisfierProperty::
SatisfierProperty (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::SatisfierPropertyKind const& kind__,
- ::CIAO::Config_Handlers::Any const& value__)
+ ::CIAO::Config_Handlers::SatisfierPropertyKind const& kind__,
+ ::CIAO::Config_Handlers::Any const& value__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -1130,13 +1186,19 @@ namespace CIAO
//
Resource::
- Resource (::XMLSchema::string< ACE_TCHAR > const& name__)
+ Resource (::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::CIAO::Config_Handlers::SatisfierProperty const& property__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
+ resourceType_ (new ::XMLSchema::string< ACE_TCHAR > (resourceType__)),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty (property__)),
regulator__ ()
{
name_->container (this);
+ resourceType_->container (this);
+ property_->container (this);
}
Resource::
@@ -1144,16 +1206,13 @@ namespace CIAO
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)),
+ resourceType_ (new ::XMLSchema::string< ACE_TCHAR > (*s.resourceType_)),
+ property_ (new ::CIAO::Config_Handlers::SatisfierProperty (*s.property_)),
regulator__ ()
{
name_->container (this);
- {
- for (resourceType_const_iterator i (s.resourceType_.begin ());i != s.resourceType_.end ();++i) add_resourceType (*i);
- }
-
- {
- for (property_const_iterator i (s.property_.begin ());i != s.property_.end ();++i) add_property (*i);
- }
+ resourceType_->container (this);
+ property_->container (this);
}
::CIAO::Config_Handlers::Resource& Resource::
@@ -1161,15 +1220,9 @@ namespace CIAO
{
name (s.name ());
- resourceType_.clear ();
- {
- for (resourceType_const_iterator i (s.resourceType_.begin ());i != s.resourceType_.end ();++i) add_resourceType (*i);
- }
+ resourceType (s.resourceType ());
- property_.clear ();
- {
- for (property_const_iterator i (s.property_.begin ());i != s.property_.end ();++i) add_property (*i);
- }
+ property (s.property ());
return *this;
}
@@ -1191,78 +1244,30 @@ namespace CIAO
// Resource
//
- Resource::resourceType_iterator Resource::
- begin_resourceType ()
- {
- return resourceType_.begin ();
- }
-
- Resource::resourceType_iterator Resource::
- end_resourceType ()
- {
- return resourceType_.end ();
- }
-
- Resource::resourceType_const_iterator Resource::
- begin_resourceType () const
- {
- return resourceType_.begin ();
- }
-
- Resource::resourceType_const_iterator Resource::
- end_resourceType () const
+ ::XMLSchema::string< ACE_TCHAR > const& Resource::
+ resourceType () const
{
- return resourceType_.end ();
+ return *resourceType_;
}
void Resource::
- add_resourceType (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- resourceType_.push_back (e);
- }
-
- size_t Resource::
- count_resourceType(void) const
+ resourceType (::XMLSchema::string< ACE_TCHAR > const& e)
{
- return resourceType_.size ();
+ *resourceType_ = e;
}
// Resource
//
- Resource::property_iterator Resource::
- begin_property ()
- {
- return property_.begin ();
- }
-
- Resource::property_iterator Resource::
- end_property ()
- {
- return property_.end ();
- }
-
- Resource::property_const_iterator Resource::
- begin_property () const
- {
- return property_.begin ();
- }
-
- Resource::property_const_iterator Resource::
- end_property () const
+ ::CIAO::Config_Handlers::SatisfierProperty const& Resource::
+ property () const
{
- return property_.end ();
+ return *property_;
}
void Resource::
- add_property (::CIAO::Config_Handlers::SatisfierProperty const& e)
- {
- property_.push_back (e);
- }
-
- size_t Resource::
- count_property(void) const
+ property (::CIAO::Config_Handlers::SatisfierProperty const& e)
{
- return property_.size ();
+ *property_ = e;
}
@@ -1271,8 +1276,8 @@ namespace CIAO
Requirement::
Requirement (::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::Property const& property__)
+ ::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::CIAO::Config_Handlers::Property const& property__)
:
::XSCRT::Type (),
resourceType_ (new ::XMLSchema::string< ACE_TCHAR > (resourceType__)),
@@ -1360,8 +1365,8 @@ namespace CIAO
ResourceDeploymentDescription::
ResourceDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& requirementName__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
- ::CIAO::Config_Handlers::Any const& resourceValue__)
+ ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
+ ::CIAO::Config_Handlers::Any const& resourceValue__)
:
::XSCRT::Type (),
requirementName_ (new ::XMLSchema::string< ACE_TCHAR > (requirementName__)),
@@ -1449,7 +1454,7 @@ namespace CIAO
ArtifactDeploymentDescription::
ArtifactDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& node__)
+ ::XMLSchema::string< ACE_TCHAR > const& node__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -1471,24 +1476,34 @@ namespace CIAO
{
name_->container (this);
{
- for (source_const_iterator i (s.source_.begin ());i != s.source_.end ();++i) add_source (*i);
+ for (source_const_iterator i (s.source_.begin ());
+ i != s.source_.end ();
+ ++i) add_source (*i);
}
node_->container (this);
{
- for (location_const_iterator i (s.location_.begin ());i != s.location_.end ();++i) add_location (*i);
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
}
{
- for (execParameter_const_iterator i (s.execParameter_.begin ());i != s.execParameter_.end ();++i) add_execParameter (*i);
+ for (execParameter_const_iterator i (s.execParameter_.begin ());
+ i != s.execParameter_.end ();
+ ++i) add_execParameter (*i);
}
{
- for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());i != s.deployRequirement_.end ();++i) add_deployRequirement (*i);
+ for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());
+ i != s.deployRequirement_.end ();
+ ++i) add_deployRequirement (*i);
}
{
- for (deployedResource_const_iterator i (s.deployedResource_.begin ());i != s.deployedResource_.end ();++i) add_deployedResource (*i);
+ for (deployedResource_const_iterator i (s.deployedResource_.begin ());
+ i != s.deployedResource_.end ();
+ ++i) add_deployedResource (*i);
}
if (id_.get ()) id_->container (this);
@@ -1501,29 +1516,39 @@ namespace CIAO
source_.clear ();
{
- for (source_const_iterator i (s.source_.begin ());i != s.source_.end ();++i) add_source (*i);
+ for (source_const_iterator i (s.source_.begin ());
+ i != s.source_.end ();
+ ++i) add_source (*i);
}
node (s.node ());
location_.clear ();
{
- for (location_const_iterator i (s.location_.begin ());i != s.location_.end ();++i) add_location (*i);
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
}
execParameter_.clear ();
{
- for (execParameter_const_iterator i (s.execParameter_.begin ());i != s.execParameter_.end ();++i) add_execParameter (*i);
+ for (execParameter_const_iterator i (s.execParameter_.begin ());
+ i != s.execParameter_.end ();
+ ++i) add_execParameter (*i);
}
deployRequirement_.clear ();
{
- for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());i != s.deployRequirement_.end ();++i) add_deployRequirement (*i);
+ for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());
+ i != s.deployRequirement_.end ();
+ ++i) add_deployRequirement (*i);
}
deployedResource_.clear ();
{
- for (deployedResource_const_iterator i (s.deployedResource_.begin ());i != s.deployedResource_.end ();++i) add_deployedResource (*i);
+ for (deployedResource_const_iterator i (s.deployedResource_.begin ());
+ i != s.deployedResource_.end ();
+ ++i) add_deployedResource (*i);
}
if (s.id_.get ()) id (*(s.id_));
@@ -1810,19 +1835,27 @@ namespace CIAO
{
name_->container (this);
{
- for (source_const_iterator i (s.source_.begin ());i != s.source_.end ();++i) add_source (*i);
+ for (source_const_iterator i (s.source_.begin ());
+ i != s.source_.end ();
+ ++i) add_source (*i);
}
{
- for (artifact_const_iterator i (s.artifact_.begin ());i != s.artifact_.end ();++i) add_artifact (*i);
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
}
{
- for (execParameter_const_iterator i (s.execParameter_.begin ());i != s.execParameter_.end ();++i) add_execParameter (*i);
+ for (execParameter_const_iterator i (s.execParameter_.begin ());
+ i != s.execParameter_.end ();
+ ++i) add_execParameter (*i);
}
{
- for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());i != s.deployRequirement_.end ();++i) add_deployRequirement (*i);
+ for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());
+ i != s.deployRequirement_.end ();
+ ++i) add_deployRequirement (*i);
}
if (id_.get ()) id_->container (this);
@@ -1835,22 +1868,30 @@ namespace CIAO
source_.clear ();
{
- for (source_const_iterator i (s.source_.begin ());i != s.source_.end ();++i) add_source (*i);
+ for (source_const_iterator i (s.source_.begin ());
+ i != s.source_.end ();
+ ++i) add_source (*i);
}
artifact_.clear ();
{
- for (artifact_const_iterator i (s.artifact_.begin ());i != s.artifact_.end ();++i) add_artifact (*i);
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
}
execParameter_.clear ();
{
- for (execParameter_const_iterator i (s.execParameter_.begin ());i != s.execParameter_.end ();++i) add_execParameter (*i);
+ for (execParameter_const_iterator i (s.execParameter_.begin ());
+ i != s.execParameter_.end ();
+ ++i) add_execParameter (*i);
}
deployRequirement_.clear ();
{
- for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());i != s.deployRequirement_.end ();++i) add_deployRequirement (*i);
+ for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());
+ i != s.deployRequirement_.end ();
+ ++i) add_deployRequirement (*i);
}
if (s.id_.get ()) id (*(s.id_));
@@ -2094,9 +2135,9 @@ namespace CIAO
InstanceResourceDeploymentDescription::
InstanceResourceDeploymentDescription (::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage__,
- ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
- ::CIAO::Config_Handlers::Any const& resourceValue__)
+ ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
+ ::CIAO::Config_Handlers::Any const& resourceValue__)
:
::XSCRT::Type (),
resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind (resourceUsage__)),
@@ -2204,9 +2245,9 @@ namespace CIAO
InstanceDeploymentDescription::
InstanceDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& node__,
- ::XMLSchema::string< ACE_TCHAR > const& source__,
- ::XMLSchema::IDREF< ACE_TCHAR > const& implementation__)
+ ::XMLSchema::string< ACE_TCHAR > const& node__,
+ ::XMLSchema::string< ACE_TCHAR > const& source__,
+ ::XMLSchema::IDREF< ACE_TCHAR > const& implementation__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -2239,7 +2280,9 @@ namespace CIAO
source_->container (this);
implementation_->container (this);
{
- for (configProperty_const_iterator i (s.configProperty_.begin ());i != s.configProperty_.end ();++i) add_configProperty (*i);
+ for (configProperty_const_iterator i (s.configProperty_.begin ());
+ i != s.configProperty_.end ();
+ ++i) add_configProperty (*i);
}
if (deployedResource_.get ()) deployedResource_->container (this);
@@ -2260,7 +2303,9 @@ namespace CIAO
configProperty_.clear ();
{
- for (configProperty_const_iterator i (s.configProperty_.begin ());i != s.configProperty_.end ();++i) add_configProperty (*i);
+ for (configProperty_const_iterator i (s.configProperty_.begin ());
+ i != s.configProperty_.end ();
+ ++i) add_configProperty (*i);
}
if (s.deployedResource_.get ()) deployedResource (*(s.deployedResource_));
@@ -2496,13 +2541,13 @@ namespace CIAO
ComponentPortDescription::
ComponentPortDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& specificType__,
- ::XMLSchema::string< ACE_TCHAR > const& supportedType__,
- ::XMLSchema::string< ACE_TCHAR > const& provider__,
- ::XMLSchema::string< ACE_TCHAR > const& exclusiveProvider__,
- ::XMLSchema::string< ACE_TCHAR > const& exclusiveUser__,
- ::XMLSchema::string< ACE_TCHAR > const& optional__,
- ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__)
+ ::XMLSchema::string< ACE_TCHAR > const& specificType__,
+ ::XMLSchema::string< ACE_TCHAR > const& supportedType__,
+ ::XMLSchema::string< ACE_TCHAR > const& provider__,
+ ::XMLSchema::string< ACE_TCHAR > const& exclusiveProvider__,
+ ::XMLSchema::string< ACE_TCHAR > const& exclusiveUser__,
+ ::XMLSchema::string< ACE_TCHAR > const& optional__,
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -2690,7 +2735,7 @@ namespace CIAO
ComponentPropertyDescription::
ComponentPropertyDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::DataType const& type__)
+ ::CIAO::Config_Handlers::DataType const& type__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -2805,8 +2850,8 @@ namespace CIAO
PlanSubcomponentPortEndpoint::
PlanSubcomponentPortEndpoint (::XMLSchema::string< ACE_TCHAR > const& portName__,
- ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__,
- ::XMLSchema::IDREF< ACE_TCHAR > const& instance__)
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__,
+ ::XMLSchema::IDREF< ACE_TCHAR > const& instance__)
:
::XSCRT::Type (),
portName_ (new ::XMLSchema::string< ACE_TCHAR > (portName__)),
@@ -2975,9 +3020,9 @@ namespace CIAO
ConnectionResourceDeploymentDescription::
ConnectionResourceDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& targetName__,
- ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
- ::CIAO::Config_Handlers::Any const& resourceValue__)
+ ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
+ ::CIAO::Config_Handlers::Any const& resourceValue__)
:
::XSCRT::Type (),
targetName_ (new ::XMLSchema::string< ACE_TCHAR > (targetName__)),
@@ -3104,23 +3149,33 @@ namespace CIAO
name_->container (this);
if (source_.get ()) source_->container (this);
{
- for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());i != s.deployRequirement_.end ();++i) add_deployRequirement (*i);
+ for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());
+ i != s.deployRequirement_.end ();
+ ++i) add_deployRequirement (*i);
}
{
- for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());i != s.externalEndpoint_.end ();++i) add_externalEndpoint (*i);
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
}
{
- for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());i != s.internalEndpoint_.end ();++i) add_internalEndpoint (*i);
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
}
{
- for (externalReference_const_iterator i (s.externalReference_.begin ());i != s.externalReference_.end ();++i) add_externalReference (*i);
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
}
{
- for (deployedResource_const_iterator i (s.deployedResource_.begin ());i != s.deployedResource_.end ();++i) add_deployedResource (*i);
+ for (deployedResource_const_iterator i (s.deployedResource_.begin ());
+ i != s.deployedResource_.end ();
+ ++i) add_deployedResource (*i);
}
}
@@ -3134,27 +3189,37 @@ namespace CIAO
deployRequirement_.clear ();
{
- for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());i != s.deployRequirement_.end ();++i) add_deployRequirement (*i);
+ for (deployRequirement_const_iterator i (s.deployRequirement_.begin ());
+ i != s.deployRequirement_.end ();
+ ++i) add_deployRequirement (*i);
}
externalEndpoint_.clear ();
{
- for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());i != s.externalEndpoint_.end ();++i) add_externalEndpoint (*i);
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
}
internalEndpoint_.clear ();
{
- for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());i != s.internalEndpoint_.end ();++i) add_internalEndpoint (*i);
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
}
externalReference_.clear ();
{
- for (externalReference_const_iterator i (s.externalReference_.begin ());i != s.externalReference_.end ();++i) add_externalReference (*i);
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
}
deployedResource_.clear ();
{
- for (deployedResource_const_iterator i (s.deployedResource_.begin ());i != s.deployedResource_.end ();++i) add_deployedResource (*i);
+ for (deployedResource_const_iterator i (s.deployedResource_.begin ());
+ i != s.deployedResource_.end ();
+ ++i) add_deployedResource (*i);
}
return *this;
@@ -3447,8 +3512,8 @@ namespace CIAO
Capability::
Capability (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::CIAO::Config_Handlers::SatisfierProperty const& property__)
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::CIAO::Config_Handlers::SatisfierProperty const& property__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -3536,11 +3601,11 @@ namespace CIAO
ImplementationRequirement::
ImplementationRequirement (::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage__,
- ::XMLSchema::string< ACE_TCHAR > const& resourcePort__,
- ::XMLSchema::string< ACE_TCHAR > const& componentPort__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::Property const& property__)
+ ::XMLSchema::string< ACE_TCHAR > const& resourcePort__,
+ ::XMLSchema::string< ACE_TCHAR > const& componentPort__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::CIAO::Config_Handlers::Property const& property__)
:
::XSCRT::Type (),
resourceUsage_ (new ::CIAO::Config_Handlers::ResourceUsageKind (resourceUsage__)),
@@ -3688,8 +3753,8 @@ namespace CIAO
ComponentPackageReference::
ComponentPackageReference (::XMLSchema::string< ACE_TCHAR > const& requiredUUID__,
- ::XMLSchema::string< ACE_TCHAR > const& requiredName__,
- ::XMLSchema::string< ACE_TCHAR > const& requiredType__)
+ ::XMLSchema::string< ACE_TCHAR > const& requiredName__,
+ ::XMLSchema::string< ACE_TCHAR > const& requiredType__)
:
::XSCRT::Type (),
requiredUUID_ (new ::XMLSchema::string< ACE_TCHAR > (requiredUUID__)),
@@ -3777,7 +3842,7 @@ namespace CIAO
SubcomponentPortEndpoint::
SubcomponentPortEndpoint (::XMLSchema::string< ACE_TCHAR > const& portName__,
- ::XMLSchema::IDREF< ACE_TCHAR > const& instance__)
+ ::XMLSchema::IDREF< ACE_TCHAR > const& instance__)
:
::XSCRT::Type (),
portName_ (new ::XMLSchema::string< ACE_TCHAR > (portName__)),
@@ -3864,15 +3929,21 @@ namespace CIAO
name_->container (this);
if (deployRequirement_.get ()) deployRequirement_->container (this);
{
- for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());i != s.externalEndpoint_.end ();++i) add_externalEndpoint (*i);
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
}
{
- for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());i != s.internalEndpoint_.end ();++i) add_internalEndpoint (*i);
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
}
{
- for (externalReference_const_iterator i (s.externalReference_.begin ());i != s.externalReference_.end ();++i) add_externalReference (*i);
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
}
}
@@ -3886,17 +3957,23 @@ namespace CIAO
externalEndpoint_.clear ();
{
- for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());i != s.externalEndpoint_.end ();++i) add_externalEndpoint (*i);
+ for (externalEndpoint_const_iterator i (s.externalEndpoint_.begin ());
+ i != s.externalEndpoint_.end ();
+ ++i) add_externalEndpoint (*i);
}
internalEndpoint_.clear ();
{
- for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());i != s.internalEndpoint_.end ();++i) add_internalEndpoint (*i);
+ for (internalEndpoint_const_iterator i (s.internalEndpoint_.begin ());
+ i != s.internalEndpoint_.end ();
+ ++i) add_internalEndpoint (*i);
}
externalReference_.clear ();
{
- for (externalReference_const_iterator i (s.externalReference_.begin ());i != s.externalReference_.end ();++i) add_externalReference (*i);
+ for (externalReference_const_iterator i (s.externalReference_.begin ());
+ i != s.externalReference_.end ();
+ ++i) add_externalReference (*i);
}
return *this;
@@ -4546,14 +4623,14 @@ namespace CIAO
else if (n == "resourceType")
{
- ::XMLSchema::string< ACE_TCHAR > t (e);
- add_resourceType (t);
+ resourceType_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
+ resourceType_->container (this);
}
else if (n == "property")
{
- ::CIAO::Config_Handlers::SatisfierProperty t (e);
- add_property (t);
+ property_ = ::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierProperty > (new ::CIAO::Config_Handlers::SatisfierProperty (e));
+ property_->container (this);
}
else
@@ -4963,8 +5040,6 @@ namespace CIAO
else if (v == "EventEmitter") v_ = EventEmitter_l;
else if (v == "EventPublisher") v_ = EventPublisher_l;
else if (v == "EventConsumer") v_ = EventConsumer_l;
- else if (v == "rtecEventPublisher") v_ = rtecEventPublisher_l;
- else if (v == "rtecEventConsumer") v_ = rtecEventConsumer_l;
else
{
}
@@ -4982,8 +5057,6 @@ namespace CIAO
else if (v == "EventEmitter") v_ = EventEmitter_l;
else if (v == "EventPublisher") v_ = EventPublisher_l;
else if (v == "EventConsumer") v_ = EventConsumer_l;
- else if (v == "rtecEventPublisher") v_ = rtecEventPublisher_l;
- else if (v == "rtecEventConsumer") v_ = rtecEventConsumer_l;
else
{
}
@@ -4995,8 +5068,6 @@ namespace CIAO
CCMComponentPortKind const CCMComponentPortKind::EventEmitter (CCMComponentPortKind::EventEmitter_l);
CCMComponentPortKind const CCMComponentPortKind::EventPublisher (CCMComponentPortKind::EventPublisher_l);
CCMComponentPortKind const CCMComponentPortKind::EventConsumer (CCMComponentPortKind::EventConsumer_l);
- CCMComponentPortKind const CCMComponentPortKind::rtecEventPublisher (CCMComponentPortKind::rtecEventPublisher_l);
- CCMComponentPortKind const CCMComponentPortKind::rtecEventConsumer (CCMComponentPortKind::rtecEventConsumer_l);
// ComponentPortDescription
//
@@ -6147,7 +6218,9 @@ namespace CIAO
if (b != e)
{
short_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) short_next (o);
@@ -6169,7 +6242,9 @@ namespace CIAO
if (b != e)
{
short_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) short_next (o);
@@ -6231,7 +6306,9 @@ namespace CIAO
if (b != e)
{
long_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) long_next (o);
@@ -6253,7 +6330,9 @@ namespace CIAO
if (b != e)
{
long_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) long_next (o);
@@ -6315,7 +6394,9 @@ namespace CIAO
if (b != e)
{
ushort_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) ushort_next (o);
@@ -6337,7 +6418,9 @@ namespace CIAO
if (b != e)
{
ushort_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) ushort_next (o);
@@ -6399,7 +6482,9 @@ namespace CIAO
if (b != e)
{
ulong_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) ulong_next (o);
@@ -6421,7 +6506,9 @@ namespace CIAO
if (b != e)
{
ulong_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) ulong_next (o);
@@ -6483,7 +6570,9 @@ namespace CIAO
if (b != e)
{
float_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) float_next (o);
@@ -6505,7 +6594,9 @@ namespace CIAO
if (b != e)
{
float_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) float_next (o);
@@ -6567,7 +6658,9 @@ namespace CIAO
if (b != e)
{
double_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) double_next (o);
@@ -6589,7 +6682,9 @@ namespace CIAO
if (b != e)
{
double_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) double_next (o);
@@ -6651,7 +6746,9 @@ namespace CIAO
if (b != e)
{
boolean_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) boolean_next (o);
@@ -6673,7 +6770,9 @@ namespace CIAO
if (b != e)
{
boolean_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) boolean_next (o);
@@ -6735,7 +6834,9 @@ namespace CIAO
if (b != e)
{
octet_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) octet_next (o);
@@ -6757,7 +6858,9 @@ namespace CIAO
if (b != e)
{
octet_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) octet_next (o);
@@ -6819,7 +6922,9 @@ namespace CIAO
if (b != e)
{
enum_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) enum_next (o);
@@ -6841,7 +6946,9 @@ namespace CIAO
if (b != e)
{
enum_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) enum_next (o);
@@ -6903,7 +7010,9 @@ namespace CIAO
if (b != e)
{
string_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) string_next (o);
@@ -6925,7 +7034,9 @@ namespace CIAO
if (b != e)
{
string_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) string_next (o);
@@ -6987,7 +7098,9 @@ namespace CIAO
if (b != e)
{
longlong_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) longlong_next (o);
@@ -7009,7 +7122,9 @@ namespace CIAO
if (b != e)
{
longlong_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) longlong_next (o);
@@ -7071,7 +7186,9 @@ namespace CIAO
if (b != e)
{
ulonglong_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) ulonglong_next (o);
@@ -7093,7 +7210,9 @@ namespace CIAO
if (b != e)
{
ulonglong_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) ulonglong_next (o);
@@ -7155,7 +7274,9 @@ namespace CIAO
if (b != e)
{
longdouble_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) longdouble_next (o);
@@ -7177,7 +7298,9 @@ namespace CIAO
if (b != e)
{
longdouble_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) longdouble_next (o);
@@ -7307,7 +7430,9 @@ namespace CIAO
if (b != e)
{
member_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) member_next (o);
@@ -7327,7 +7452,9 @@ namespace CIAO
if (b != e)
{
member_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) member_next (o);
@@ -7638,155 +7765,25 @@ namespace CIAO
void Resource::
resourceType (Type& o)
{
- // VC6 anathema strikes again
- //
- Resource::Type::resourceType_iterator b (o.begin_resourceType()), e (o.end_resourceType());
-
- if (b != e)
- {
- resourceType_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) resourceType_next (o);
- }
-
- resourceType_post (o);
- }
+ dispatch (o.resourceType ());
}
void Resource::
resourceType (Type const& o)
{
- // VC6 anathema strikes again
- //
- Resource::Type::resourceType_const_iterator b (o.begin_resourceType()), e (o.end_resourceType());
-
- if (b != e)
- {
- resourceType_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) resourceType_next (o);
- }
-
- resourceType_post (o);
- }
- }
-
- void Resource::
- resourceType_pre (Type&)
- {
- }
-
- void Resource::
- resourceType_pre (Type const&)
- {
- }
-
- void Resource::
- resourceType_next (Type&)
- {
- }
-
- void Resource::
- resourceType_next (Type const&)
- {
- }
-
- void Resource::
- resourceType_post (Type&)
- {
- }
-
- void Resource::
- resourceType_post (Type const&)
- {
+ dispatch (o.resourceType ());
}
void Resource::
property (Type& o)
{
- // VC6 anathema strikes again
- //
- Resource::Type::property_iterator b (o.begin_property()), e (o.end_property());
-
- if (b != e)
- {
- property_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) property_next (o);
- }
-
- property_post (o);
- }
-
- else property_none (o);
+ dispatch (o.property ());
}
void Resource::
property (Type const& o)
{
- // VC6 anathema strikes again
- //
- Resource::Type::property_const_iterator b (o.begin_property()), e (o.end_property());
-
- if (b != e)
- {
- property_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) property_next (o);
- }
-
- property_post (o);
- }
-
- else property_none (o);
- }
-
- void Resource::
- property_pre (Type&)
- {
- }
-
- void Resource::
- property_pre (Type const&)
- {
- }
-
- void Resource::
- property_next (Type&)
- {
- }
-
- void Resource::
- property_next (Type const&)
- {
- }
-
- void Resource::
- property_post (Type&)
- {
- }
-
- void Resource::
- property_post (Type const&)
- {
- }
-
- void Resource::
- property_none (Type&)
- {
- }
-
- void Resource::
- property_none (Type const&)
- {
+ dispatch (o.property ());
}
void Resource::
@@ -8027,7 +8024,9 @@ namespace CIAO
if (b != e)
{
source_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) source_next (o);
@@ -8047,7 +8046,9 @@ namespace CIAO
if (b != e)
{
source_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) source_next (o);
@@ -8109,7 +8110,9 @@ namespace CIAO
if (b != e)
{
location_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) location_next (o);
@@ -8129,7 +8132,9 @@ namespace CIAO
if (b != e)
{
location_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) location_next (o);
@@ -8179,7 +8184,9 @@ namespace CIAO
if (b != e)
{
execParameter_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) execParameter_next (o);
@@ -8201,7 +8208,9 @@ namespace CIAO
if (b != e)
{
execParameter_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) execParameter_next (o);
@@ -8263,7 +8272,9 @@ namespace CIAO
if (b != e)
{
deployRequirement_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployRequirement_next (o);
@@ -8285,7 +8296,9 @@ namespace CIAO
if (b != e)
{
deployRequirement_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployRequirement_next (o);
@@ -8347,7 +8360,9 @@ namespace CIAO
if (b != e)
{
deployedResource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployedResource_next (o);
@@ -8369,7 +8384,9 @@ namespace CIAO
if (b != e)
{
deployedResource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployedResource_next (o);
@@ -8517,7 +8534,9 @@ namespace CIAO
if (b != e)
{
source_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) source_next (o);
@@ -8537,7 +8556,9 @@ namespace CIAO
if (b != e)
{
source_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) source_next (o);
@@ -8587,7 +8608,9 @@ namespace CIAO
if (b != e)
{
artifact_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) artifact_next (o);
@@ -8607,7 +8630,9 @@ namespace CIAO
if (b != e)
{
artifact_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) artifact_next (o);
@@ -8657,7 +8682,9 @@ namespace CIAO
if (b != e)
{
execParameter_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) execParameter_next (o);
@@ -8679,7 +8706,9 @@ namespace CIAO
if (b != e)
{
execParameter_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) execParameter_next (o);
@@ -8741,7 +8770,9 @@ namespace CIAO
if (b != e)
{
deployRequirement_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployRequirement_next (o);
@@ -8763,7 +8794,9 @@ namespace CIAO
if (b != e)
{
deployRequirement_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployRequirement_next (o);
@@ -9049,7 +9082,9 @@ namespace CIAO
if (b != e)
{
configProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) configProperty_next (o);
@@ -9071,7 +9106,9 @@ namespace CIAO
if (b != e)
{
configProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) configProperty_next (o);
@@ -9807,7 +9844,9 @@ namespace CIAO
if (b != e)
{
deployRequirement_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployRequirement_next (o);
@@ -9829,7 +9868,9 @@ namespace CIAO
if (b != e)
{
deployRequirement_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployRequirement_next (o);
@@ -9891,7 +9932,9 @@ namespace CIAO
if (b != e)
{
externalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalEndpoint_next (o);
@@ -9913,7 +9956,9 @@ namespace CIAO
if (b != e)
{
externalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalEndpoint_next (o);
@@ -9975,7 +10020,9 @@ namespace CIAO
if (b != e)
{
internalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) internalEndpoint_next (o);
@@ -9997,7 +10044,9 @@ namespace CIAO
if (b != e)
{
internalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) internalEndpoint_next (o);
@@ -10059,7 +10108,9 @@ namespace CIAO
if (b != e)
{
externalReference_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalReference_next (o);
@@ -10081,7 +10132,9 @@ namespace CIAO
if (b != e)
{
externalReference_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalReference_next (o);
@@ -10143,7 +10196,9 @@ namespace CIAO
if (b != e)
{
deployedResource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployedResource_next (o);
@@ -10165,7 +10220,9 @@ namespace CIAO
if (b != e)
{
deployedResource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) deployedResource_next (o);
@@ -10711,7 +10768,9 @@ namespace CIAO
if (b != e)
{
externalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalEndpoint_next (o);
@@ -10733,7 +10792,9 @@ namespace CIAO
if (b != e)
{
externalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalEndpoint_next (o);
@@ -10795,7 +10856,9 @@ namespace CIAO
if (b != e)
{
internalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) internalEndpoint_next (o);
@@ -10817,7 +10880,9 @@ namespace CIAO
if (b != e)
{
internalEndpoint_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) internalEndpoint_next (o);
@@ -10879,7 +10944,9 @@ namespace CIAO
if (b != e)
{
externalReference_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalReference_next (o);
@@ -10901,7 +10968,9 @@ namespace CIAO
if (b != e)
{
externalReference_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) externalReference_next (o);
@@ -11595,40 +11664,18 @@ namespace CIAO
}
void Resource::
- resourceType_pre (Type const&)
+ resourceType (Type const& o)
{
push_ (::XSCRT::XML::Element< ACE_TCHAR > ("resourceType", top_ ()));
- }
-
- void Resource::
- resourceType_next (Type const& o)
- {
- resourceType_post (o);
- resourceType_pre (o);
- }
-
- void Resource::
- resourceType_post (Type const&)
- {
+ Traversal::Resource::resourceType (o);
pop_ ();
}
void Resource::
- property_pre (Type const&)
+ property (Type const& o)
{
push_ (::XSCRT::XML::Element< ACE_TCHAR > ("property", top_ ()));
- }
-
- void Resource::
- property_next (Type const& o)
- {
- property_post (o);
- property_pre (o);
- }
-
- void Resource::
- property_post (Type const&)
- {
+ Traversal::Resource::property (o);
pop_ ();
}
@@ -12193,8 +12240,6 @@ namespace CIAO
else if (o == ::CIAO::Config_Handlers::CCMComponentPortKind::EventEmitter) s = "EventEmitter";
else if (o == ::CIAO::Config_Handlers::CCMComponentPortKind::EventPublisher) s = "EventPublisher";
else if (o == ::CIAO::Config_Handlers::CCMComponentPortKind::EventConsumer) s = "EventConsumer";
- else if (o == ::CIAO::Config_Handlers::CCMComponentPortKind::rtecEventPublisher) s = "rtecEventPublisher";
- else if (o == ::CIAO::Config_Handlers::CCMComponentPortKind::rtecEventConsumer) s = "rtecEventConsumer";
else
{
}
diff --git a/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.hpp b/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.hpp
index 2a0fd3d5919..530a46d5bbf 100644
--- a/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/Basic_Deployment_Data.hpp
@@ -3,7 +3,7 @@
*
* Changes made to this code will most likely be overwritten
* when the handlers are recompiled.
- *
+ *
* If you find errors or feel that there are bugfixes to be made,
* please contact the current XSC maintainer:
* Will Otte <wotte@dre.vanderbilt.edu>
@@ -12,7 +12,7 @@
// Fixes the VC6 warning 4786.
#include "vc6-4786.h"
-
+
// Fix for Borland compilers, which seem to have a broken
// <string> include.
#ifdef __BORLANDC__
@@ -123,10 +123,10 @@ namespace CIAO
Value
integral () const;
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator== (TCKind const& a, TCKind const& b);
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator!= (TCKind const& a, TCKind const& b);
private:
@@ -146,7 +146,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// kind
- //
+ //
public:
::CIAO::Config_Handlers::TCKind const& kind () const;
void kind (::CIAO::Config_Handlers::TCKind const& );
@@ -155,7 +155,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::TCKind > kind_;
// enum
- //
+ //
public:
bool enum_p () const;
::CIAO::Config_Handlers::EnumType const& enum_ () const;
@@ -184,7 +184,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// short
- //
+ //
public:
typedef ::std::list< ::XMLSchema::short_ >::iterator short_iterator;
typedef ::std::list< ::XMLSchema::short_ >::const_iterator short_const_iterator;
@@ -199,7 +199,7 @@ namespace CIAO
::std::list< ::XMLSchema::short_ > short_;
// long
- //
+ //
public:
typedef ::std::list< ::XMLSchema::int_ >::iterator long_iterator;
typedef ::std::list< ::XMLSchema::int_ >::const_iterator long_const_iterator;
@@ -214,7 +214,7 @@ namespace CIAO
::std::list< ::XMLSchema::int_ > long_;
// ushort
- //
+ //
public:
typedef ::std::list< ::XMLSchema::unsignedShort >::iterator ushort_iterator;
typedef ::std::list< ::XMLSchema::unsignedShort >::const_iterator ushort_const_iterator;
@@ -229,7 +229,7 @@ namespace CIAO
::std::list< ::XMLSchema::unsignedShort > ushort_;
// ulong
- //
+ //
public:
typedef ::std::list< ::XMLSchema::unsignedInt >::iterator ulong_iterator;
typedef ::std::list< ::XMLSchema::unsignedInt >::const_iterator ulong_const_iterator;
@@ -244,7 +244,7 @@ namespace CIAO
::std::list< ::XMLSchema::unsignedInt > ulong_;
// float
- //
+ //
public:
typedef ::std::list< ::XMLSchema::float_ >::iterator float_iterator;
typedef ::std::list< ::XMLSchema::float_ >::const_iterator float_const_iterator;
@@ -259,7 +259,7 @@ namespace CIAO
::std::list< ::XMLSchema::float_ > float_;
// double
- //
+ //
public:
typedef ::std::list< ::XMLSchema::double_ >::iterator double_iterator;
typedef ::std::list< ::XMLSchema::double_ >::const_iterator double_const_iterator;
@@ -274,7 +274,7 @@ namespace CIAO
::std::list< ::XMLSchema::double_ > double_;
// boolean
- //
+ //
public:
typedef ::std::list< ::XMLSchema::boolean >::iterator boolean_iterator;
typedef ::std::list< ::XMLSchema::boolean >::const_iterator boolean_const_iterator;
@@ -289,7 +289,7 @@ namespace CIAO
::std::list< ::XMLSchema::boolean > boolean_;
// octet
- //
+ //
public:
typedef ::std::list< ::XMLSchema::unsignedByte >::iterator octet_iterator;
typedef ::std::list< ::XMLSchema::unsignedByte >::const_iterator octet_const_iterator;
@@ -304,7 +304,7 @@ namespace CIAO
::std::list< ::XMLSchema::unsignedByte > octet_;
// enum
- //
+ //
public:
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator enum_iterator;
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator enum_const_iterator;
@@ -319,7 +319,7 @@ namespace CIAO
::std::list< ::XMLSchema::string< ACE_TCHAR > > enum_;
// string
- //
+ //
public:
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator string_iterator;
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator string_const_iterator;
@@ -334,7 +334,7 @@ namespace CIAO
::std::list< ::XMLSchema::string< ACE_TCHAR > > string_;
// longlong
- //
+ //
public:
typedef ::std::list< ::XMLSchema::long_ >::iterator longlong_iterator;
typedef ::std::list< ::XMLSchema::long_ >::const_iterator longlong_const_iterator;
@@ -349,7 +349,7 @@ namespace CIAO
::std::list< ::XMLSchema::long_ > longlong_;
// ulonglong
- //
+ //
public:
typedef ::std::list< ::XMLSchema::unsignedLong >::iterator ulonglong_iterator;
typedef ::std::list< ::XMLSchema::unsignedLong >::const_iterator ulonglong_const_iterator;
@@ -364,7 +364,7 @@ namespace CIAO
::std::list< ::XMLSchema::unsignedLong > ulonglong_;
// longdouble
- //
+ //
public:
typedef ::std::list< ::XMLSchema::double_ >::iterator longdouble_iterator;
typedef ::std::list< ::XMLSchema::double_ >::const_iterator longdouble_const_iterator;
@@ -398,7 +398,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -407,7 +407,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// typeId
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& typeId () const;
void typeId (::XMLSchema::string< ACE_TCHAR > const& );
@@ -416,7 +416,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > typeId_;
// member
- //
+ //
public:
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator member_iterator;
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator member_const_iterator;
@@ -432,7 +432,7 @@ namespace CIAO
public:
EnumType (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& typeId__);
+ ::XMLSchema::string< ACE_TCHAR > const& typeId__);
EnumType (::XSCRT::XML::Element< ACE_TCHAR > const&);
EnumType (EnumType const& s);
@@ -451,7 +451,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// type
- //
+ //
public:
::CIAO::Config_Handlers::DataType const& type () const;
void type (::CIAO::Config_Handlers::DataType const& );
@@ -460,7 +460,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::DataType > type_;
// value
- //
+ //
public:
::CIAO::Config_Handlers::DataValue const& value () const;
void value (::CIAO::Config_Handlers::DataValue const& );
@@ -470,7 +470,7 @@ namespace CIAO
public:
Any (::CIAO::Config_Handlers::DataType const& type__,
- ::CIAO::Config_Handlers::DataValue const& value__);
+ ::CIAO::Config_Handlers::DataValue const& value__);
Any (::XSCRT::XML::Element< ACE_TCHAR > const&);
Any (Any const& s);
@@ -489,7 +489,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -498,7 +498,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// value
- //
+ //
public:
::CIAO::Config_Handlers::Any const& value () const;
void value (::CIAO::Config_Handlers::Any const& );
@@ -508,7 +508,7 @@ namespace CIAO
public:
Property (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::Any const& value__);
+ ::CIAO::Config_Handlers::Any const& value__);
Property (::XSCRT::XML::Element< ACE_TCHAR > const&);
Property (Property const& s);
@@ -543,10 +543,10 @@ namespace CIAO
Value
integral () const;
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator== (SatisfierPropertyKind const& a, SatisfierPropertyKind const& b);
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator!= (SatisfierPropertyKind const& a, SatisfierPropertyKind const& b);
private:
@@ -566,7 +566,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -575,7 +575,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// kind
- //
+ //
public:
::CIAO::Config_Handlers::SatisfierPropertyKind const& kind () const;
void kind (::CIAO::Config_Handlers::SatisfierPropertyKind const& );
@@ -584,7 +584,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierPropertyKind > kind_;
// value
- //
+ //
public:
::CIAO::Config_Handlers::Any const& value () const;
void value (::CIAO::Config_Handlers::Any const& );
@@ -594,8 +594,8 @@ namespace CIAO
public:
SatisfierProperty (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::SatisfierPropertyKind const& kind__,
- ::CIAO::Config_Handlers::Any const& value__);
+ ::CIAO::Config_Handlers::SatisfierPropertyKind const& kind__,
+ ::CIAO::Config_Handlers::Any const& value__);
SatisfierProperty (::XSCRT::XML::Element< ACE_TCHAR > const&);
SatisfierProperty (SatisfierProperty const& s);
@@ -614,7 +614,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -623,37 +623,27 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// resourceType
- //
+ //
public:
- typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator resourceType_iterator;
- typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator resourceType_const_iterator;
- resourceType_iterator begin_resourceType ();
- resourceType_iterator end_resourceType ();
- resourceType_const_iterator begin_resourceType () const;
- resourceType_const_iterator end_resourceType () const;
- void add_resourceType (::XMLSchema::string< ACE_TCHAR > const& );
- size_t count_resourceType (void) const;
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType () const;
+ void resourceType (::XMLSchema::string< ACE_TCHAR > const& );
protected:
- ::std::list< ::XMLSchema::string< ACE_TCHAR > > resourceType_;
+ ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > resourceType_;
// property
- //
+ //
public:
- typedef ::std::list< ::CIAO::Config_Handlers::SatisfierProperty >::iterator property_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::SatisfierProperty >::const_iterator property_const_iterator;
- property_iterator begin_property ();
- property_iterator end_property ();
- property_const_iterator begin_property () const;
- property_const_iterator end_property () const;
- void add_property (::CIAO::Config_Handlers::SatisfierProperty const& );
- size_t count_property (void) const;
+ ::CIAO::Config_Handlers::SatisfierProperty const& property () const;
+ void property (::CIAO::Config_Handlers::SatisfierProperty const& );
protected:
- ::std::list< ::CIAO::Config_Handlers::SatisfierProperty > property_;
+ ::std::auto_ptr< ::CIAO::Config_Handlers::SatisfierProperty > property_;
public:
- Resource (::XMLSchema::string< ACE_TCHAR > const& name__);
+ Resource (::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::CIAO::Config_Handlers::SatisfierProperty const& property__);
Resource (::XSCRT::XML::Element< ACE_TCHAR > const&);
Resource (Resource const& s);
@@ -672,7 +662,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// resourceType
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& resourceType () const;
void resourceType (::XMLSchema::string< ACE_TCHAR > const& );
@@ -681,7 +671,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > resourceType_;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -690,7 +680,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// property
- //
+ //
public:
::CIAO::Config_Handlers::Property const& property () const;
void property (::CIAO::Config_Handlers::Property const& );
@@ -700,8 +690,8 @@ namespace CIAO
public:
Requirement (::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::Property const& property__);
+ ::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::CIAO::Config_Handlers::Property const& property__);
Requirement (::XSCRT::XML::Element< ACE_TCHAR > const&);
Requirement (Requirement const& s);
@@ -720,7 +710,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// requirementName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& requirementName () const;
void requirementName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -729,7 +719,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > requirementName_;
// resourceName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& resourceName () const;
void resourceName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -738,7 +728,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > resourceName_;
// resourceValue
- //
+ //
public:
::CIAO::Config_Handlers::Any const& resourceValue () const;
void resourceValue (::CIAO::Config_Handlers::Any const& );
@@ -748,8 +738,8 @@ namespace CIAO
public:
ResourceDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& requirementName__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
- ::CIAO::Config_Handlers::Any const& resourceValue__);
+ ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
+ ::CIAO::Config_Handlers::Any const& resourceValue__);
ResourceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
ResourceDeploymentDescription (ResourceDeploymentDescription const& s);
@@ -768,7 +758,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -777,7 +767,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// source
- //
+ //
public:
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator source_iterator;
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator source_const_iterator;
@@ -792,7 +782,7 @@ namespace CIAO
::std::list< ::XMLSchema::string< ACE_TCHAR > > source_;
// node
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& node () const;
void node (::XMLSchema::string< ACE_TCHAR > const& );
@@ -801,7 +791,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > node_;
// location
- //
+ //
public:
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator location_iterator;
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator location_const_iterator;
@@ -816,7 +806,7 @@ namespace CIAO
::std::list< ::XMLSchema::string< ACE_TCHAR > > location_;
// execParameter
- //
+ //
public:
typedef ::std::list< ::CIAO::Config_Handlers::Property >::iterator execParameter_iterator;
typedef ::std::list< ::CIAO::Config_Handlers::Property >::const_iterator execParameter_const_iterator;
@@ -831,7 +821,7 @@ namespace CIAO
::std::list< ::CIAO::Config_Handlers::Property > execParameter_;
// deployRequirement
- //
+ //
public:
typedef ::std::list< ::CIAO::Config_Handlers::Requirement >::iterator deployRequirement_iterator;
typedef ::std::list< ::CIAO::Config_Handlers::Requirement >::const_iterator deployRequirement_const_iterator;
@@ -846,7 +836,7 @@ namespace CIAO
::std::list< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
// deployedResource
- //
+ //
public:
typedef ::std::list< ::CIAO::Config_Handlers::ResourceDeploymentDescription >::iterator deployedResource_iterator;
typedef ::std::list< ::CIAO::Config_Handlers::ResourceDeploymentDescription >::const_iterator deployedResource_const_iterator;
@@ -861,7 +851,7 @@ namespace CIAO
::std::list< ::CIAO::Config_Handlers::ResourceDeploymentDescription > deployedResource_;
// id
- //
+ //
public:
bool id_p () const;
::XMLSchema::ID< ACE_TCHAR > const& id () const;
@@ -873,7 +863,7 @@ namespace CIAO
public:
ArtifactDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& node__);
+ ::XMLSchema::string< ACE_TCHAR > const& node__);
ArtifactDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
ArtifactDeploymentDescription (ArtifactDeploymentDescription const& s);
@@ -892,7 +882,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -901,7 +891,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// source
- //
+ //
public:
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator source_iterator;
typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator source_const_iterator;
@@ -916,7 +906,7 @@ namespace CIAO
::std::list< ::XMLSchema::string< ACE_TCHAR > > source_;
// artifact
- //
+ //
public:
typedef ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > >::iterator artifact_iterator;
typedef ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > >::const_iterator artifact_const_iterator;
@@ -931,7 +921,7 @@ namespace CIAO
::std::list< ::XMLSchema::IDREF< ACE_TCHAR > > artifact_;
// execParameter
- //
+ //
public:
typedef ::std::list< ::CIAO::Config_Handlers::Property >::iterator execParameter_iterator;
typedef ::std::list< ::CIAO::Config_Handlers::Property >::const_iterator execParameter_const_iterator;
@@ -946,7 +936,7 @@ namespace CIAO
::std::list< ::CIAO::Config_Handlers::Property > execParameter_;
// deployRequirement
- //
+ //
public:
typedef ::std::list< ::CIAO::Config_Handlers::Requirement >::iterator deployRequirement_iterator;
typedef ::std::list< ::CIAO::Config_Handlers::Requirement >::const_iterator deployRequirement_const_iterator;
@@ -961,7 +951,7 @@ namespace CIAO
::std::list< ::CIAO::Config_Handlers::Requirement > deployRequirement_;
// id
- //
+ //
public:
bool id_p () const;
::XMLSchema::ID< ACE_TCHAR > const& id () const;
@@ -1006,10 +996,10 @@ namespace CIAO
Value
integral () const;
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator== (ResourceUsageKind const& a, ResourceUsageKind const& b);
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator!= (ResourceUsageKind const& a, ResourceUsageKind const& b);
private:
@@ -1029,7 +1019,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// resourceUsage
- //
+ //
public:
::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage () const;
void resourceUsage (::CIAO::Config_Handlers::ResourceUsageKind const& );
@@ -1038,7 +1028,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::ResourceUsageKind > resourceUsage_;
// requirementName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& requirementName () const;
void requirementName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1047,7 +1037,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > requirementName_;
// resourceName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& resourceName () const;
void resourceName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1056,7 +1046,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > resourceName_;
// resourceValue
- //
+ //
public:
::CIAO::Config_Handlers::Any const& resourceValue () const;
void resourceValue (::CIAO::Config_Handlers::Any const& );
@@ -1066,9 +1056,9 @@ namespace CIAO
public:
InstanceResourceDeploymentDescription (::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage__,
- ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
- ::CIAO::Config_Handlers::Any const& resourceValue__);
+ ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
+ ::CIAO::Config_Handlers::Any const& resourceValue__);
InstanceResourceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
InstanceResourceDeploymentDescription (InstanceResourceDeploymentDescription const& s);
@@ -1087,7 +1077,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1096,7 +1086,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// node
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& node () const;
void node (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1105,7 +1095,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > node_;
// source
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& source () const;
void source (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1114,7 +1104,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > source_;
// implementation
- //
+ //
public:
::XMLSchema::IDREF< ACE_TCHAR > const& implementation () const;
void implementation (::XMLSchema::IDREF< ACE_TCHAR > const& );
@@ -1123,7 +1113,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::IDREF< ACE_TCHAR > > implementation_;
// configProperty
- //
+ //
public:
typedef ::std::list< ::CIAO::Config_Handlers::Property >::iterator configProperty_iterator;
typedef ::std::list< ::CIAO::Config_Handlers::Property >::const_iterator configProperty_const_iterator;
@@ -1138,7 +1128,7 @@ namespace CIAO
::std::list< ::CIAO::Config_Handlers::Property > configProperty_;
// deployedResource
- //
+ //
public:
bool deployedResource_p () const;
::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& deployedResource () const;
@@ -1148,7 +1138,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > deployedResource_;
// deployedSharedResource
- //
+ //
public:
bool deployedSharedResource_p () const;
::CIAO::Config_Handlers::InstanceResourceDeploymentDescription const& deployedSharedResource () const;
@@ -1158,7 +1148,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription > deployedSharedResource_;
// id
- //
+ //
public:
bool id_p () const;
::XMLSchema::ID< ACE_TCHAR > const& id () const;
@@ -1170,9 +1160,9 @@ namespace CIAO
public:
InstanceDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& node__,
- ::XMLSchema::string< ACE_TCHAR > const& source__,
- ::XMLSchema::IDREF< ACE_TCHAR > const& implementation__);
+ ::XMLSchema::string< ACE_TCHAR > const& node__,
+ ::XMLSchema::string< ACE_TCHAR > const& source__,
+ ::XMLSchema::IDREF< ACE_TCHAR > const& implementation__);
InstanceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
InstanceDeploymentDescription (InstanceDeploymentDescription const& s);
@@ -1197,22 +1187,20 @@ namespace CIAO
static CCMComponentPortKind const EventEmitter;
static CCMComponentPortKind const EventPublisher;
static CCMComponentPortKind const EventConsumer;
- static CCMComponentPortKind const rtecEventPublisher;
- static CCMComponentPortKind const rtecEventConsumer;
enum Value
{
- Facet_l,SimplexReceptacle_l,MultiplexReceptacle_l,EventEmitter_l,EventPublisher_l,EventConsumer_l,rtecEventPublisher_l,rtecEventConsumer_l
+ Facet_l,SimplexReceptacle_l,MultiplexReceptacle_l,EventEmitter_l,EventPublisher_l,EventConsumer_l
};
Value
integral () const;
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator== (CCMComponentPortKind const& a, CCMComponentPortKind const& b);
- friend bool XSC_XML_Handlers_Export
+ friend bool XSC_XML_Handlers_Export
operator!= (CCMComponentPortKind const& a, CCMComponentPortKind const& b);
private:
@@ -1232,7 +1220,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1241,7 +1229,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// specificType
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& specificType () const;
void specificType (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1250,7 +1238,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > specificType_;
// supportedType
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& supportedType () const;
void supportedType (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1259,7 +1247,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > supportedType_;
// provider
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& provider () const;
void provider (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1268,7 +1256,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > provider_;
// exclusiveProvider
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& exclusiveProvider () const;
void exclusiveProvider (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1277,7 +1265,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > exclusiveProvider_;
// exclusiveUser
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& exclusiveUser () const;
void exclusiveUser (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1286,7 +1274,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > exclusiveUser_;
// optional
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& optional () const;
void optional (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1295,7 +1283,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > optional_;
// kind
- //
+ //
public:
::CIAO::Config_Handlers::CCMComponentPortKind const& kind () const;
void kind (::CIAO::Config_Handlers::CCMComponentPortKind const& );
@@ -1305,13 +1293,13 @@ namespace CIAO
public:
ComponentPortDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& specificType__,
- ::XMLSchema::string< ACE_TCHAR > const& supportedType__,
- ::XMLSchema::string< ACE_TCHAR > const& provider__,
- ::XMLSchema::string< ACE_TCHAR > const& exclusiveProvider__,
- ::XMLSchema::string< ACE_TCHAR > const& exclusiveUser__,
- ::XMLSchema::string< ACE_TCHAR > const& optional__,
- ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__);
+ ::XMLSchema::string< ACE_TCHAR > const& specificType__,
+ ::XMLSchema::string< ACE_TCHAR > const& supportedType__,
+ ::XMLSchema::string< ACE_TCHAR > const& provider__,
+ ::XMLSchema::string< ACE_TCHAR > const& exclusiveProvider__,
+ ::XMLSchema::string< ACE_TCHAR > const& exclusiveUser__,
+ ::XMLSchema::string< ACE_TCHAR > const& optional__,
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__);
ComponentPortDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
ComponentPortDescription (ComponentPortDescription const& s);
@@ -1330,7 +1318,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// name
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& name () const;
void name (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1339,7 +1327,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
// type
- //
+ //
public:
::CIAO::Config_Handlers::DataType const& type () const;
void type (::CIAO::Config_Handlers::DataType const& );
@@ -1349,7 +1337,7 @@ namespace CIAO
public:
ComponentPropertyDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::DataType const& type__);
+ ::CIAO::Config_Handlers::DataType const& type__);
ComponentPropertyDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
ComponentPropertyDescription (ComponentPropertyDescription const& s);
@@ -1368,7 +1356,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// portName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& portName () const;
void portName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1396,7 +1384,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// portName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& portName () const;
void portName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1405,7 +1393,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > portName_;
// provider
- //
+ //
public:
bool provider_p () const;
::XMLSchema::string< ACE_TCHAR > const& provider () const;
@@ -1415,7 +1403,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > provider_;
// kind
- //
+ //
public:
::CIAO::Config_Handlers::CCMComponentPortKind const& kind () const;
void kind (::CIAO::Config_Handlers::CCMComponentPortKind const& );
@@ -1424,7 +1412,7 @@ namespace CIAO
::std::auto_ptr< ::CIAO::Config_Handlers::CCMComponentPortKind > kind_;
// instance
- //
+ //
public:
::XMLSchema::IDREF< ACE_TCHAR > const& instance () const;
void instance (::XMLSchema::IDREF< ACE_TCHAR > const& );
@@ -1434,8 +1422,8 @@ namespace CIAO
public:
PlanSubcomponentPortEndpoint (::XMLSchema::string< ACE_TCHAR > const& portName__,
- ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__,
- ::XMLSchema::IDREF< ACE_TCHAR > const& instance__);
+ ::CIAO::Config_Handlers::CCMComponentPortKind const& kind__,
+ ::XMLSchema::IDREF< ACE_TCHAR > const& instance__);
PlanSubcomponentPortEndpoint (::XSCRT::XML::Element< ACE_TCHAR > const&);
PlanSubcomponentPortEndpoint (PlanSubcomponentPortEndpoint const& s);
@@ -1454,7 +1442,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// location
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& location () const;
void location (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1482,7 +1470,7 @@ namespace CIAO
typedef ::XSCRT::Type Base__;
// targetName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& targetName () const;
void targetName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1491,7 +1479,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > targetName_;
// requirementName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& requirementName () const;
void requirementName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1500,7 +1488,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > requirementName_;
// resourceName
- //
+ //
public:
::XMLSchema::string< ACE_TCHAR > const& resourceName () const;
void resourceName (::XMLSchema::string< ACE_TCHAR > const& );
@@ -1509,7 +1497,7 @@ namespace CIAO
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > resourceName_;
// resourceValue
- //
+ //
public:
::CIAO::Config_Handlers::Any const& resourceValue () const;
void resourceValue (::CIAO::Config_Handlers::Any const& );
@@ -1519,9 +1507,9 @@ namespace CIAO
public:
ConnectionResourceDeploymentDescription (::XMLSchema::string< ACE_TCHAR > const& targetName__,
- ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
- ::CIAO::Config_Handlers::Any const& resourceValue__);
+ ::XMLSchema::string< ACE_TCHAR > const& requirementName__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceName__,
+ ::CIAO::Config_Handlers::Any const& resourceValue__);
ConnectionResourceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
ConnectionResourceDeploymentDescription (ConnectionResourceDeploymentDescription const& s);
@@ -1709,8 +1697,8 @@ namespace CIAO
public:
Capability (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::CIAO::Config_Handlers::SatisfierProperty const& property__);
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::CIAO::Config_Handlers::SatisfierProperty const& property__);
Capability (::XSCRT::XML::Element< ACE_TCHAR > const&);
Capability (Capability const& s);
@@ -1784,11 +1772,11 @@ namespace CIAO
public:
ImplementationRequirement (::CIAO::Config_Handlers::ResourceUsageKind const& resourceUsage__,
- ::XMLSchema::string< ACE_TCHAR > const& resourcePort__,
- ::XMLSchema::string< ACE_TCHAR > const& componentPort__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::Property const& property__);
+ ::XMLSchema::string< ACE_TCHAR > const& resourcePort__,
+ ::XMLSchema::string< ACE_TCHAR > const& componentPort__,
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::CIAO::Config_Handlers::Property const& property__);
ImplementationRequirement (::XSCRT::XML::Element< ACE_TCHAR > const&);
ImplementationRequirement (ImplementationRequirement const& s);
@@ -1835,8 +1823,8 @@ namespace CIAO
public:
ComponentPackageReference (::XMLSchema::string< ACE_TCHAR > const& requiredUUID__,
- ::XMLSchema::string< ACE_TCHAR > const& requiredName__,
- ::XMLSchema::string< ACE_TCHAR > const& requiredType__);
+ ::XMLSchema::string< ACE_TCHAR > const& requiredName__,
+ ::XMLSchema::string< ACE_TCHAR > const& requiredType__);
ComponentPackageReference (::XSCRT::XML::Element< ACE_TCHAR > const&);
ComponentPackageReference (ComponentPackageReference const& s);
@@ -1874,7 +1862,7 @@ namespace CIAO
public:
SubcomponentPortEndpoint (::XMLSchema::string< ACE_TCHAR > const& portName__,
- ::XMLSchema::IDREF< ACE_TCHAR > const& instance__);
+ ::XMLSchema::IDREF< ACE_TCHAR > const& instance__);
SubcomponentPortEndpoint (::XSCRT::XML::Element< ACE_TCHAR > const&);
SubcomponentPortEndpoint (SubcomponentPortEndpoint const& s);
@@ -2633,54 +2621,12 @@ namespace CIAO
resourceType (Type const&);
virtual void
- resourceType_pre (Type&);
-
- virtual void
- resourceType_pre (Type const&);
-
- virtual void
- resourceType_next (Type&);
-
- virtual void
- resourceType_next (Type const&);
-
- virtual void
- resourceType_post (Type&);
-
- virtual void
- resourceType_post (Type const&);
-
- virtual void
property (Type&);
virtual void
property (Type const&);
virtual void
- property_pre (Type&);
-
- virtual void
- property_pre (Type const&);
-
- virtual void
- property_next (Type&);
-
- virtual void
- property_next (Type const&);
-
- virtual void
- property_post (Type&);
-
- virtual void
- property_post (Type const&);
-
- virtual void
- property_none (Type&);
-
- virtual void
- property_none (Type const&);
-
- virtual void
post (Type&);
virtual void
@@ -4040,12 +3986,14 @@ namespace CIAO
{
TCKind (::XSCRT::XML::Element< ACE_TCHAR >&);
- virtual void
+ #ifdef __BORLANDC__
+ virtual void TCKind::
traverse (Type &o)
{
this->traverse (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
@@ -4059,6 +4007,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::DataType Type;
DataType (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4067,9 +4016,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
kind (Type &o)
{
@@ -4078,9 +4030,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
kind (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
enum_ (Type &o)
{
@@ -4089,6 +4044,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
enum_ (Type const&);
@@ -4102,6 +4058,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::DataValue Type;
DataValue (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4110,9 +4067,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
short_pre (Type &o)
{
@@ -4121,9 +4081,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
short_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
short_next (Type &o)
{
@@ -4132,9 +4095,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
short_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
short_post (Type &o)
{
@@ -4143,9 +4109,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
short_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
long_pre (Type &o)
{
@@ -4154,9 +4123,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
long_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
long_next (Type &o)
{
@@ -4165,9 +4137,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
long_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
long_post (Type &o)
{
@@ -4176,9 +4151,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
long_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ushort_pre (Type &o)
{
@@ -4187,9 +4165,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ushort_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ushort_next (Type &o)
{
@@ -4198,9 +4179,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ushort_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ushort_post (Type &o)
{
@@ -4209,9 +4193,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ushort_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ulong_pre (Type &o)
{
@@ -4220,9 +4207,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ulong_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ulong_next (Type &o)
{
@@ -4231,9 +4221,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ulong_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ulong_post (Type &o)
{
@@ -4242,9 +4235,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ulong_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
float_pre (Type &o)
{
@@ -4253,9 +4249,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
float_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
float_next (Type &o)
{
@@ -4264,9 +4263,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
float_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
float_post (Type &o)
{
@@ -4275,9 +4277,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
float_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
double_pre (Type &o)
{
@@ -4286,9 +4291,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
double_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
double_next (Type &o)
{
@@ -4297,9 +4305,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
double_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
double_post (Type &o)
{
@@ -4308,9 +4319,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
double_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
boolean_pre (Type &o)
{
@@ -4319,9 +4333,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
boolean_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
boolean_next (Type &o)
{
@@ -4330,9 +4347,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
boolean_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
boolean_post (Type &o)
{
@@ -4341,9 +4361,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
boolean_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
octet_pre (Type &o)
{
@@ -4352,9 +4375,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
octet_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
octet_next (Type &o)
{
@@ -4363,9 +4389,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
octet_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
octet_post (Type &o)
{
@@ -4374,9 +4403,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
octet_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
enum_pre (Type &o)
{
@@ -4385,9 +4417,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
enum_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
enum_next (Type &o)
{
@@ -4396,9 +4431,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
enum_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
enum_post (Type &o)
{
@@ -4407,9 +4445,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
enum_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
string_pre (Type &o)
{
@@ -4418,9 +4459,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
string_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
string_next (Type &o)
{
@@ -4429,9 +4473,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
string_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
string_post (Type &o)
{
@@ -4440,9 +4487,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
string_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
longlong_pre (Type &o)
{
@@ -4451,9 +4501,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
longlong_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
longlong_next (Type &o)
{
@@ -4462,9 +4515,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
longlong_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
longlong_post (Type &o)
{
@@ -4473,9 +4529,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
longlong_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ulonglong_pre (Type &o)
{
@@ -4484,9 +4543,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ulonglong_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ulonglong_next (Type &o)
{
@@ -4495,9 +4557,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ulonglong_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
ulonglong_post (Type &o)
{
@@ -4506,9 +4571,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
ulonglong_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
longdouble_pre (Type &o)
{
@@ -4517,9 +4585,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
longdouble_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
longdouble_next (Type &o)
{
@@ -4528,9 +4599,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
longdouble_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
longdouble_post (Type &o)
{
@@ -4539,6 +4613,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
longdouble_post (Type const&);
@@ -4552,6 +4627,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::EnumType Type;
EnumType (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4560,9 +4636,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -4571,9 +4650,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
typeId (Type &o)
{
@@ -4582,9 +4664,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
typeId (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
member_pre (Type &o)
{
@@ -4593,9 +4678,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
member_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
member_next (Type &o)
{
@@ -4604,9 +4692,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
member_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
member_post (Type &o)
{
@@ -4615,6 +4706,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
member_post (Type const&);
@@ -4628,6 +4720,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Any Type;
Any (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4636,9 +4729,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
type (Type &o)
{
@@ -4647,9 +4743,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
type (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
value (Type &o)
{
@@ -4658,6 +4757,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
value (Type const&);
@@ -4671,6 +4771,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Property Type;
Property (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4679,9 +4780,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -4690,9 +4794,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
value (Type &o)
{
@@ -4701,6 +4808,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
value (Type const&);
@@ -4713,12 +4821,14 @@ namespace CIAO
{
SatisfierPropertyKind (::XSCRT::XML::Element< ACE_TCHAR >&);
- virtual void
+ #ifdef __BORLANDC__
+ virtual void SatisfierPropertyKind::
traverse (Type &o)
{
this->traverse (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
@@ -4732,6 +4842,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::SatisfierProperty Type;
SatisfierProperty (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4740,9 +4851,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -4751,9 +4865,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
kind (Type &o)
{
@@ -4762,9 +4879,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
kind (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
value (Type &o)
{
@@ -4773,6 +4893,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
value (Type const&);
@@ -4786,6 +4907,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Resource Type;
Resource (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4794,9 +4916,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -4805,74 +4930,37 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
- resourceType_pre (Type &o)
- {
-
- this->resourceType_pre (const_cast <Type const &> (o));
- }
-
-
- virtual void
- resourceType_pre (Type const&);
-
- virtual void
- resourceType_next (Type &o)
- {
-
- this->resourceType_next (const_cast <Type const &> (o));
- }
-
-
- virtual void
- resourceType_next (Type const&);
-
- virtual void
- resourceType_post (Type &o)
- {
-
- this->resourceType_post (const_cast <Type const &> (o));
- }
-
-
- virtual void
- resourceType_post (Type const&);
-
- virtual void
- property_pre (Type &o)
- {
-
- this->property_pre (const_cast <Type const &> (o));
- }
-
-
- virtual void
- property_pre (Type const&);
-
- virtual void
- property_next (Type &o)
+ resourceType (Type &o)
{
- this->property_next (const_cast <Type const &> (o));
+ this->resourceType (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
- property_next (Type const&);
+ resourceType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
- property_post (Type &o)
+ property (Type &o)
{
- this->property_post (const_cast <Type const &> (o));
+ this->property (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
- property_post (Type const&);
+ property (Type const&);
protected:
Resource ();
@@ -4884,6 +4972,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Requirement Type;
Requirement (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4892,9 +4981,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceType (Type &o)
{
@@ -4903,9 +4995,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -4914,9 +5009,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property (Type &o)
{
@@ -4925,6 +5023,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property (Type const&);
@@ -4938,6 +5037,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ResourceDeploymentDescription Type;
ResourceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -4946,9 +5046,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requirementName (Type &o)
{
@@ -4957,9 +5060,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requirementName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceName (Type &o)
{
@@ -4968,9 +5074,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceValue (Type &o)
{
@@ -4979,6 +5088,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceValue (Type const&);
@@ -4992,6 +5102,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ArtifactDeploymentDescription Type;
ArtifactDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5000,9 +5111,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -5011,9 +5125,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source_pre (Type &o)
{
@@ -5022,9 +5139,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source_next (Type &o)
{
@@ -5033,9 +5153,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source_post (Type &o)
{
@@ -5044,9 +5167,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
node (Type &o)
{
@@ -5055,9 +5181,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
node (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location_pre (Type &o)
{
@@ -5066,9 +5195,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location_next (Type &o)
{
@@ -5077,9 +5209,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location_post (Type &o)
{
@@ -5088,9 +5223,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter_pre (Type &o)
{
@@ -5099,9 +5237,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter_next (Type &o)
{
@@ -5110,9 +5251,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter_post (Type &o)
{
@@ -5121,9 +5265,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_pre (Type &o)
{
@@ -5132,9 +5279,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_next (Type &o)
{
@@ -5143,9 +5293,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_post (Type &o)
{
@@ -5154,9 +5307,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource_pre (Type &o)
{
@@ -5165,9 +5321,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource_next (Type &o)
{
@@ -5176,9 +5335,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource_post (Type &o)
{
@@ -5187,9 +5349,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -5198,6 +5363,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -5211,6 +5377,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::MonolithicDeploymentDescription Type;
MonolithicDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5219,9 +5386,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -5230,9 +5400,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source_pre (Type &o)
{
@@ -5241,9 +5414,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source_next (Type &o)
{
@@ -5252,9 +5428,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source_post (Type &o)
{
@@ -5263,9 +5442,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
artifact_pre (Type &o)
{
@@ -5274,9 +5456,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
artifact_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
artifact_next (Type &o)
{
@@ -5285,9 +5470,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
artifact_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
artifact_post (Type &o)
{
@@ -5296,9 +5484,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
artifact_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter_pre (Type &o)
{
@@ -5307,9 +5498,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter_next (Type &o)
{
@@ -5318,9 +5512,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter_post (Type &o)
{
@@ -5329,9 +5526,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_pre (Type &o)
{
@@ -5340,9 +5540,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_next (Type &o)
{
@@ -5351,9 +5554,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_post (Type &o)
{
@@ -5362,9 +5568,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -5373,6 +5582,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -5385,12 +5595,14 @@ namespace CIAO
{
ResourceUsageKind (::XSCRT::XML::Element< ACE_TCHAR >&);
- virtual void
+ #ifdef __BORLANDC__
+ virtual void ResourceUsageKind::
traverse (Type &o)
{
this->traverse (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
@@ -5404,6 +5616,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::InstanceResourceDeploymentDescription Type;
InstanceResourceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5412,9 +5625,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceUsage (Type &o)
{
@@ -5423,9 +5639,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceUsage (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requirementName (Type &o)
{
@@ -5434,9 +5653,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requirementName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceName (Type &o)
{
@@ -5445,9 +5667,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceValue (Type &o)
{
@@ -5456,6 +5681,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceValue (Type const&);
@@ -5469,6 +5695,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::InstanceDeploymentDescription Type;
InstanceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5477,9 +5704,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -5488,9 +5718,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
node (Type &o)
{
@@ -5499,9 +5732,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
node (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source (Type &o)
{
@@ -5510,9 +5746,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
implementation (Type &o)
{
@@ -5521,9 +5760,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
implementation (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty_pre (Type &o)
{
@@ -5532,9 +5774,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty_next (Type &o)
{
@@ -5543,9 +5788,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty_post (Type &o)
{
@@ -5554,9 +5802,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource (Type &o)
{
@@ -5565,9 +5816,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedSharedResource (Type &o)
{
@@ -5576,9 +5830,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedSharedResource (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -5587,6 +5844,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -5599,12 +5857,14 @@ namespace CIAO
{
CCMComponentPortKind (::XSCRT::XML::Element< ACE_TCHAR >&);
- virtual void
+ #ifdef __BORLANDC__
+ virtual void CCMComponentPortKind::
traverse (Type &o)
{
this->traverse (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
@@ -5618,6 +5878,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentPortDescription Type;
ComponentPortDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5626,9 +5887,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -5637,9 +5901,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
specificType (Type &o)
{
@@ -5648,9 +5915,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
specificType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
supportedType (Type &o)
{
@@ -5659,9 +5929,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
supportedType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
provider (Type &o)
{
@@ -5670,9 +5943,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
provider (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
exclusiveProvider (Type &o)
{
@@ -5681,9 +5957,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
exclusiveProvider (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
exclusiveUser (Type &o)
{
@@ -5692,9 +5971,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
exclusiveUser (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
optional (Type &o)
{
@@ -5703,9 +5985,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
optional (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
kind (Type &o)
{
@@ -5714,6 +5999,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
kind (Type const&);
@@ -5727,6 +6013,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentPropertyDescription Type;
ComponentPropertyDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5735,9 +6022,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -5746,9 +6036,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
type (Type &o)
{
@@ -5757,6 +6050,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
type (Type const&);
@@ -5770,6 +6064,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentExternalPortEndpoint Type;
ComponentExternalPortEndpoint (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5778,9 +6073,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
portName (Type &o)
{
@@ -5789,6 +6087,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
portName (Type const&);
@@ -5802,6 +6101,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PlanSubcomponentPortEndpoint Type;
PlanSubcomponentPortEndpoint (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5810,9 +6110,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
portName (Type &o)
{
@@ -5821,9 +6124,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
portName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
provider (Type &o)
{
@@ -5832,9 +6138,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
provider (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
kind (Type &o)
{
@@ -5843,9 +6152,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
kind (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance (Type &o)
{
@@ -5854,6 +6166,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance (Type const&);
@@ -5867,6 +6180,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ExternalReferenceEndpoint Type;
ExternalReferenceEndpoint (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5875,9 +6189,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location (Type &o)
{
@@ -5886,6 +6203,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location (Type const&);
@@ -5899,6 +6217,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ConnectionResourceDeploymentDescription Type;
ConnectionResourceDeploymentDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5907,9 +6226,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
targetName (Type &o)
{
@@ -5918,9 +6240,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
targetName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requirementName (Type &o)
{
@@ -5929,9 +6254,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requirementName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceName (Type &o)
{
@@ -5940,9 +6268,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceValue (Type &o)
{
@@ -5951,6 +6282,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceValue (Type const&);
@@ -5964,6 +6296,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PlanConnectionDescription Type;
PlanConnectionDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -5972,9 +6305,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -5983,9 +6319,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
source (Type &o)
{
@@ -5994,9 +6333,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
source (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_pre (Type &o)
{
@@ -6005,9 +6347,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_next (Type &o)
{
@@ -6016,9 +6361,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement_post (Type &o)
{
@@ -6027,9 +6375,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalEndpoint_pre (Type &o)
{
@@ -6038,9 +6389,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalEndpoint_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalEndpoint_next (Type &o)
{
@@ -6049,9 +6403,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalEndpoint_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalEndpoint_post (Type &o)
{
@@ -6060,9 +6417,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalEndpoint_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
internalEndpoint_pre (Type &o)
{
@@ -6071,9 +6431,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
internalEndpoint_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
internalEndpoint_next (Type &o)
{
@@ -6082,9 +6445,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
internalEndpoint_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
internalEndpoint_post (Type &o)
{
@@ -6093,9 +6459,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
internalEndpoint_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalReference_pre (Type &o)
{
@@ -6104,9 +6473,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalReference_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalReference_next (Type &o)
{
@@ -6115,9 +6487,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalReference_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalReference_post (Type &o)
{
@@ -6126,9 +6501,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalReference_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource_pre (Type &o)
{
@@ -6137,9 +6515,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource_next (Type &o)
{
@@ -6148,9 +6529,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployedResource_post (Type &o)
{
@@ -6159,6 +6543,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployedResource_post (Type const&);
@@ -6172,6 +6557,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ImplementationDependency Type;
ImplementationDependency (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -6180,9 +6566,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requiredType (Type &o)
{
@@ -6191,6 +6580,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requiredType (Type const&);
@@ -6204,6 +6594,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Capability Type;
Capability (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -6212,9 +6603,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -6223,9 +6617,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceType (Type &o)
{
@@ -6234,9 +6631,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property (Type &o)
{
@@ -6245,6 +6645,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property (Type const&);
@@ -6258,6 +6659,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ImplementationRequirement Type;
ImplementationRequirement (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -6266,9 +6668,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceUsage (Type &o)
{
@@ -6277,9 +6682,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceUsage (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourcePort (Type &o)
{
@@ -6288,9 +6696,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourcePort (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
componentPort (Type &o)
{
@@ -6299,9 +6710,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
componentPort (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceType (Type &o)
{
@@ -6310,9 +6724,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -6321,9 +6738,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property (Type &o)
{
@@ -6332,6 +6752,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property (Type const&);
@@ -6345,6 +6766,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentPackageReference Type;
ComponentPackageReference (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -6353,9 +6775,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requiredUUID (Type &o)
{
@@ -6364,9 +6789,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requiredUUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requiredName (Type &o)
{
@@ -6375,9 +6803,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requiredName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
requiredType (Type &o)
{
@@ -6386,6 +6817,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
requiredType (Type const&);
@@ -6399,6 +6831,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::SubcomponentPortEndpoint Type;
SubcomponentPortEndpoint (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -6407,9 +6840,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
portName (Type &o)
{
@@ -6418,9 +6854,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
portName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance (Type &o)
{
@@ -6429,6 +6868,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance (Type const&);
@@ -6442,6 +6882,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::AssemblyConnectionDescription Type;
AssemblyConnectionDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -6450,9 +6891,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -6461,9 +6905,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement (Type &o)
{
@@ -6472,9 +6919,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalEndpoint_pre (Type &o)
{
@@ -6483,9 +6933,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalEndpoint_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalEndpoint_next (Type &o)
{
@@ -6494,9 +6947,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalEndpoint_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalEndpoint_post (Type &o)
{
@@ -6505,9 +6961,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalEndpoint_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
internalEndpoint_pre (Type &o)
{
@@ -6516,9 +6975,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
internalEndpoint_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
internalEndpoint_next (Type &o)
{
@@ -6527,9 +6989,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
internalEndpoint_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
internalEndpoint_post (Type &o)
{
@@ -6538,9 +7003,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
internalEndpoint_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalReference_pre (Type &o)
{
@@ -6549,9 +7017,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalReference_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalReference_next (Type &o)
{
@@ -6560,9 +7031,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalReference_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalReference_post (Type &o)
{
@@ -6571,6 +7045,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalReference_post (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/CCD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/CCD_Handler.cpp
index f55e3654282..288787f1eda 100644
--- a/TAO/CIAO/tools/Config_Handlers/CCD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/CCD_Handler.cpp
@@ -1,6 +1,5 @@
// $Id$
-#include "ciao/CIAO_common.h"
#include "CCD_Handler.h"
#include "ccd.hpp"
#include "Property_Handler.h"
@@ -17,93 +16,92 @@ namespace CIAO
const ComponentInterfaceDescription &desc,
Deployment::ComponentInterfaceDescription& toconfig)
{
- CIAO_TRACE("CCD_Handler::component_interface_descr");
- if (desc.UUID_p ())
- toconfig.UUID =
- CORBA::string_dup (desc.UUID ().c_str ());
-
- if (desc.label_p ())
+ if (desc.UUID_p ())
+ toconfig.UUID =
+ CORBA::string_dup (desc.UUID ().c_str ());
+
+ if (desc.label_p ())
{
- toconfig.label =
- CORBA::string_dup (desc.label ().c_str ());
+ toconfig.label =
+ CORBA::string_dup (desc.label ().c_str ());
}
-
- if (desc.specificType_p ())
+
+ if (desc.specificType_p ())
{
toconfig.specificType =
- CORBA::string_dup (desc.specificType ().c_str ());
+ CORBA::string_dup (desc.specificType ().c_str ());
}
-
- ComponentInterfaceDescription::supportedType_const_iterator
- end = desc.end_supportedType ();
-
- CORBA::ULong pos = 0;
- toconfig.supportedType.length (desc.count_supportedType ());
- for (ComponentInterfaceDescription::supportedType_const_iterator s =
- desc.begin_supportedType ();
- s != end;
- ++s)
+
+ ComponentInterfaceDescription::supportedType_const_iterator
+ end = desc.end_supportedType ();
+
+ CORBA::ULong pos = 0;
+ toconfig.supportedType.length (desc.count_supportedType ());
+ for (ComponentInterfaceDescription::supportedType_const_iterator s =
+ desc.begin_supportedType ();
+ s != end;
+ ++s)
{
toconfig.supportedType[pos++] = s->c_str ();
}
-
- ComponentInterfaceDescription::idlFile_const_iterator
- eidl = desc.end_idlFile ();
- pos = 0;
- toconfig.idlFile.length (desc.count_idlFile ());
- for (ComponentInterfaceDescription::idlFile_const_iterator sidl=
- desc.begin_idlFile ();
- sidl != eidl;
- ++sidl)
+
+ ComponentInterfaceDescription::idlFile_const_iterator
+ eidl = desc.end_idlFile ();
+ pos = 0;
+ toconfig.idlFile.length (desc.count_idlFile ());
+ for (ComponentInterfaceDescription::idlFile_const_iterator sidl=
+ desc.begin_idlFile ();
+ sidl != eidl;
+ ++sidl)
{
- toconfig.idlFile [pos++] = sidl->c_str ();
+ toconfig.idlFile [pos++] = sidl->c_str ();
}
-
- ComponentInterfaceDescription::configProperty_const_iterator pend =
- desc.end_configProperty ();
- pos = 0;
- toconfig.configProperty.length (desc.count_configProperty ());
- for (ComponentInterfaceDescription::configProperty_const_iterator pstart =
- desc.begin_configProperty ();
- pstart != pend;
- ++pstart)
+
+ ComponentInterfaceDescription::configProperty_const_iterator pend =
+ desc.end_configProperty ();
+ pos = 0;
+ toconfig.configProperty.length (desc.count_configProperty ());
+ for (ComponentInterfaceDescription::configProperty_const_iterator pstart =
+ desc.begin_configProperty ();
+ pstart != pend;
+ ++pstart)
{
- Property_Handler::get_property (*pstart,
- toconfig.configProperty [pos++]);
+ Property_Handler::get_property (*pstart,
+ toconfig.configProperty [pos++]);
}
-
- pos = 0;
- toconfig.port.length (desc.count_port ());
- for (ComponentInterfaceDescription::port_const_iterator
- port (desc.begin_port ());
- port != desc.end_port ();
- ++port)
+
+ pos = 0;
+ toconfig.port.length (desc.count_port ());
+ for (ComponentInterfaceDescription::port_const_iterator
+ port (desc.begin_port ());
+ port != desc.end_port ();
+ ++port)
{
- CPD_Handler::component_port_description (
- *port,
- toconfig.port[pos++]);
+ CPD_Handler::component_port_description (
+ *port,
+ toconfig.port[pos++]);
}
-
- pos = 0;
- toconfig.property.length ( desc.count_property ());
- for(ComponentInterfaceDescription::property_const_iterator
- prop (desc.begin_property());
- prop != desc.end_property();
- prop++)
+
+ pos = 0;
+ toconfig.property.length ( desc.count_property ());
+ for(ComponentInterfaceDescription::property_const_iterator
+ prop (desc.begin_property());
+ prop != desc.end_property();
+ prop++)
{
- ComponentPropertyDescription_Handler::component_property_description (
+ ComponentPropertyDescription_Handler::component_property_description (
*prop,
toconfig.property[pos++]);
}
- pos = 0;
- toconfig.infoProperty.length (desc.count_infoProperty ());
- for ( ComponentInterfaceDescription::infoProperty_const_iterator
- infoProp (desc.begin_infoProperty());
- infoProp != desc.end_infoProperty();
+ pos = 0;
+ toconfig.infoProperty.length (desc.count_infoProperty ());
+ for ( ComponentInterfaceDescription::infoProperty_const_iterator
+ infoProp (desc.begin_infoProperty());
+ infoProp != desc.end_infoProperty();
infoProp++)
{
- Property_Handler::get_property (
+ Property_Handler::get_property (
*infoProp,
toconfig.infoProperty[pos]);
}
@@ -113,7 +111,6 @@ namespace CIAO
CCD_Handler::component_interface_descr (
const ::Deployment::ComponentInterfaceDescription& src)
{
- CIAO_TRACE("CCD_Handler::component_interface_descr - reverse");
ComponentInterfaceDescription cid;
//Load up the basic string members
@@ -129,55 +126,58 @@ namespace CIAO
//Get the supported type(s) and load them into cid
::CORBA::ULong total = src.supportedType.length ();
for (size_t i = 0; i < total; ++i)
- {
+ {
XMLSchema::string< char > curr ((src.supportedType[i]));
cid.add_supportedType (curr);
- }
+ }
//Get the idlFile(s) and store them into the cid
total = src.idlFile.length ();
for (size_t j = 0; j < total; ++j)
- {
+ {
XMLSchema::string< char > curr ((src.idlFile[j]));
cid.add_idlFile (curr);
- }
+ }
//Get the configProperty(ies) and store them into the cid
total = src.configProperty.length ();
for (size_t k = 0; k < total; ++k)
- {
+ {
cid.add_configProperty (
- Property_Handler::get_property (src.configProperty[k]));
- }
+ Property_Handler::get_property (
+ src.configProperty[k]));
+ }
//Same drill for the component port description(s)
total = src.port.length ();
for (size_t l = 0; l < total; ++l)
- {
+ {
cid.add_port (
- CPD_Handler::component_port_description (src.port[l]));
- }
+ CPD_Handler::component_port_description (
+ src.port[l]));
+ }
//Load up the property field
total = src.property.length();
for(size_t m = 0;
m < total;
m++)
- {
+ {
cid.add_property(
- ComponentPropertyDescription_Handler::component_property_description (
- src.property[m]));
- }
+ ComponentPropertyDescription_Handler::component_property_description (
+ src.property[m]));
+ }
//Load up the infoProperty(s)
total = src.infoProperty.length();
for(size_t n = 0;
n < total;
n++)
- {
+ {
cid.add_infoProperty(
- Property_Handler::get_property (src.infoProperty[n]));
- }
+ Property_Handler::get_property (
+ src.infoProperty[n]));
+ }
return cid;
}
diff --git a/TAO/CIAO/tools/Config_Handlers/CEPE_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/CEPE_Handler.cpp
index 7eda79a5338..71d280266bd 100644
--- a/TAO/CIAO/tools/Config_Handlers/CEPE_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/CEPE_Handler.cpp
@@ -3,7 +3,7 @@
#include "CEPE_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -13,7 +13,6 @@ namespace CIAO
const PlanConnectionDescription &src,
::Deployment::ComponentExternalPortEndpoints &dest)
{
- CIAO_TRACE("CEOE_Handler::external_port_endpoints");
PlanConnectionDescription::externalEndpoint_const_iterator eeci_e =
src.end_externalEndpoint ();
@@ -34,7 +33,6 @@ namespace CIAO
const ComponentExternalPortEndpoint &src,
::Deployment::ComponentExternalPortEndpoint &dest)
{
- CIAO_TRACE("CEOE_Handler::external_port_endpoint");
dest.portName = src.portName ().c_str ();
}
@@ -42,7 +40,6 @@ namespace CIAO
CEPE_Handler::external_port_endpoint (
const ::Deployment::ComponentExternalPortEndpoint &src)
{
- CIAO_TRACE("CEOE_Handler::external_port_endpoint - reverse");
//MAJO Unfinished
XMLSchema::string< char > portname ((src.portName));
ComponentExternalPortEndpoint cepe (portname);
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.cpp b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.cpp
deleted file mode 100644
index de7c731b954..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.cpp
+++ /dev/null
@@ -1,3015 +0,0 @@
-/* $Id$
- * This code was generated by the XML Schema Compiler.
- *
- * Changes made to this code will most likely be overwritten
- * when the handlers are recompiled.
- *
- * If you find errors or feel that there are bugfixes to be made,
- * please contact the current XSC maintainer:
- * Will Otte <wotte@dre.vanderbilt.edu>
- */
-
-#include "CIAOEvents.hpp"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- // EventServiceType
- //
-
- EventServiceType::Value EventServiceType::
- integral () const
- {
- return v_;
- }
-
- bool
- operator== (::CIAO::Config_Handlers::EventServiceType const& a, ::CIAO::Config_Handlers::EventServiceType const& b)
- {
- return a.v_ == b.v_;
- }
-
- bool
- operator!= (::CIAO::Config_Handlers::EventServiceType const& a, ::CIAO::Config_Handlers::EventServiceType const& b)
- {
- return a.v_ != b.v_;
- }
-
- EventServiceType::
- EventServiceType (EventServiceType::Value v)
- : v_ (v)
- {
- }
-
- // CIAOEventsDef
- //
-
- CIAOEventsDef::
- CIAOEventsDef ()
- :
- ::XSCRT::Type (),
- regulator__ ()
- {
- }
-
- CIAOEventsDef::
- CIAOEventsDef (::CIAO::Config_Handlers::CIAOEventsDef const& s)
- :
- ::XSCRT::Type (),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- {
- for (eventServiceConfiguration_const_iterator i (s.eventServiceConfiguration_.begin ());i != s.eventServiceConfiguration_.end ();++i) add_eventServiceConfiguration (*i);
- }
-
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::CIAOEventsDef& CIAOEventsDef::
- operator= (::CIAO::Config_Handlers::CIAOEventsDef const& s)
- {
- eventServiceConfiguration_.clear ();
- {
- for (eventServiceConfiguration_const_iterator i (s.eventServiceConfiguration_.begin ());i != s.eventServiceConfiguration_.end ();++i) add_eventServiceConfiguration (*i);
- }
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // CIAOEventsDef
- //
- CIAOEventsDef::eventServiceConfiguration_iterator CIAOEventsDef::
- begin_eventServiceConfiguration ()
- {
- return eventServiceConfiguration_.begin ();
- }
-
- CIAOEventsDef::eventServiceConfiguration_iterator CIAOEventsDef::
- end_eventServiceConfiguration ()
- {
- return eventServiceConfiguration_.end ();
- }
-
- CIAOEventsDef::eventServiceConfiguration_const_iterator CIAOEventsDef::
- begin_eventServiceConfiguration () const
- {
- return eventServiceConfiguration_.begin ();
- }
-
- CIAOEventsDef::eventServiceConfiguration_const_iterator CIAOEventsDef::
- end_eventServiceConfiguration () const
- {
- return eventServiceConfiguration_.end ();
- }
-
- void CIAOEventsDef::
- add_eventServiceConfiguration (::CIAO::Config_Handlers::EventServiceDescription const& e)
- {
- eventServiceConfiguration_.push_back (e);
- }
-
- size_t CIAOEventsDef::
- count_eventServiceConfiguration(void) const
- {
- return eventServiceConfiguration_.size ();
- }
-
- // CIAOEventsDef
- //
- bool CIAOEventsDef::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& CIAOEventsDef::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& CIAOEventsDef::
- id ()
- {
- return *id_;
- }
-
- void CIAOEventsDef::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
-
-
- // EventServiceDescription
- //
-
- EventServiceDescription::
- EventServiceDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& node__,
- ::CIAO::Config_Handlers::EventServiceType const& type__,
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__)
- :
- ::XSCRT::Type (),
- name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
- node_ (new ::XMLSchema::string< ACE_TCHAR > (node__)),
- type_ (new ::CIAO::Config_Handlers::EventServiceType (type__)),
- svc_cfg_file_ (new ::XMLSchema::string< ACE_TCHAR > (svc_cfg_file__)),
- regulator__ ()
- {
- name_->container (this);
- node_->container (this);
- type_->container (this);
- svc_cfg_file_->container (this);
- }
-
- EventServiceDescription::
- EventServiceDescription (::CIAO::Config_Handlers::EventServiceDescription const& s)
- :
- ::XSCRT::Type (),
- name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)),
- node_ (new ::XMLSchema::string< ACE_TCHAR > (*s.node_)),
- type_ (new ::CIAO::Config_Handlers::EventServiceType (*s.type_)),
- svc_cfg_file_ (new ::XMLSchema::string< ACE_TCHAR > (*s.svc_cfg_file_)),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- name_->container (this);
- node_->container (this);
- type_->container (this);
- svc_cfg_file_->container (this);
- {
- for (filter_const_iterator i (s.filter_.begin ());i != s.filter_.end ();++i) add_filter (*i);
- }
-
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::EventServiceDescription& EventServiceDescription::
- operator= (::CIAO::Config_Handlers::EventServiceDescription const& s)
- {
- name (s.name ());
-
- node (s.node ());
-
- type (s.type ());
-
- svc_cfg_file (s.svc_cfg_file ());
-
- filter_.clear ();
- {
- for (filter_const_iterator i (s.filter_.begin ());i != s.filter_.end ();++i) add_filter (*i);
- }
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // EventServiceDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& EventServiceDescription::
- name () const
- {
- return *name_;
- }
-
- void EventServiceDescription::
- name (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *name_ = e;
- }
-
- // EventServiceDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& EventServiceDescription::
- node () const
- {
- return *node_;
- }
-
- void EventServiceDescription::
- node (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *node_ = e;
- }
-
- // EventServiceDescription
- //
- ::CIAO::Config_Handlers::EventServiceType const& EventServiceDescription::
- type () const
- {
- return *type_;
- }
-
- void EventServiceDescription::
- type (::CIAO::Config_Handlers::EventServiceType const& e)
- {
- *type_ = e;
- }
-
- // EventServiceDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& EventServiceDescription::
- svc_cfg_file () const
- {
- return *svc_cfg_file_;
- }
-
- void EventServiceDescription::
- svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *svc_cfg_file_ = e;
- }
-
- // EventServiceDescription
- //
- EventServiceDescription::filter_iterator EventServiceDescription::
- begin_filter ()
- {
- return filter_.begin ();
- }
-
- EventServiceDescription::filter_iterator EventServiceDescription::
- end_filter ()
- {
- return filter_.end ();
- }
-
- EventServiceDescription::filter_const_iterator EventServiceDescription::
- begin_filter () const
- {
- return filter_.begin ();
- }
-
- EventServiceDescription::filter_const_iterator EventServiceDescription::
- end_filter () const
- {
- return filter_.end ();
- }
-
- void EventServiceDescription::
- add_filter (::CIAO::Config_Handlers::Filter const& e)
- {
- filter_.push_back (e);
- }
-
- size_t EventServiceDescription::
- count_filter(void) const
- {
- return filter_.size ();
- }
-
- // EventServiceDescription
- //
- bool EventServiceDescription::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& EventServiceDescription::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& EventServiceDescription::
- id ()
- {
- return *id_;
- }
-
- void EventServiceDescription::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
-
-
- // FilterType
- //
-
- FilterType::Value FilterType::
- integral () const
- {
- return v_;
- }
-
- bool
- operator== (::CIAO::Config_Handlers::FilterType const& a, ::CIAO::Config_Handlers::FilterType const& b)
- {
- return a.v_ == b.v_;
- }
-
- bool
- operator!= (::CIAO::Config_Handlers::FilterType const& a, ::CIAO::Config_Handlers::FilterType const& b)
- {
- return a.v_ != b.v_;
- }
-
- FilterType::
- FilterType (FilterType::Value v)
- : v_ (v)
- {
- }
-
- // Filter
- //
-
- Filter::
- Filter (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::FilterType const& type__)
- :
- ::XSCRT::Type (),
- name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
- type_ (new ::CIAO::Config_Handlers::FilterType (type__)),
- regulator__ ()
- {
- name_->container (this);
- type_->container (this);
- }
-
- Filter::
- Filter (::CIAO::Config_Handlers::Filter const& s)
- :
- ::XSCRT::Type (),
- name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)),
- type_ (new ::CIAO::Config_Handlers::FilterType (*s.type_)),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- name_->container (this);
- type_->container (this);
- {
- for (source_const_iterator i (s.source_.begin ());i != s.source_.end ();++i) add_source (*i);
- }
-
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::Filter& Filter::
- operator= (::CIAO::Config_Handlers::Filter const& s)
- {
- name (s.name ());
-
- type (s.type ());
-
- source_.clear ();
- {
- for (source_const_iterator i (s.source_.begin ());i != s.source_.end ();++i) add_source (*i);
- }
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // Filter
- //
- ::XMLSchema::string< ACE_TCHAR > const& Filter::
- name () const
- {
- return *name_;
- }
-
- void Filter::
- name (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *name_ = e;
- }
-
- // Filter
- //
- ::CIAO::Config_Handlers::FilterType const& Filter::
- type () const
- {
- return *type_;
- }
-
- void Filter::
- type (::CIAO::Config_Handlers::FilterType const& e)
- {
- *type_ = e;
- }
-
- // Filter
- //
- Filter::source_iterator Filter::
- begin_source ()
- {
- return source_.begin ();
- }
-
- Filter::source_iterator Filter::
- end_source ()
- {
- return source_.end ();
- }
-
- Filter::source_const_iterator Filter::
- begin_source () const
- {
- return source_.begin ();
- }
-
- Filter::source_const_iterator Filter::
- end_source () const
- {
- return source_.end ();
- }
-
- void Filter::
- add_source (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- source_.push_back (e);
- }
-
- size_t Filter::
- count_source(void) const
- {
- return source_.size ();
- }
-
- // Filter
- //
- bool Filter::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& Filter::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& Filter::
- id ()
- {
- return *id_;
- }
-
- void Filter::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
-
-
- // MCastSenderDescription
- //
-
- MCastSenderDescription::
- MCastSenderDescription (::XMLSchema::string< ACE_TCHAR > const& node__,
- ::CIAO::Config_Handlers::EventServiceType const& type__,
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__)
- :
- ::XSCRT::Type (),
- node_ (new ::XMLSchema::string< ACE_TCHAR > (node__)),
- type_ (new ::CIAO::Config_Handlers::EventServiceType (type__)),
- svc_cfg_file_ (new ::XMLSchema::string< ACE_TCHAR > (svc_cfg_file__)),
- regulator__ ()
- {
- node_->container (this);
- type_->container (this);
- svc_cfg_file_->container (this);
- }
-
- MCastSenderDescription::
- MCastSenderDescription (::CIAO::Config_Handlers::MCastSenderDescription const& s)
- :
- ::XSCRT::Type (),
- node_ (new ::XMLSchema::string< ACE_TCHAR > (*s.node_)),
- type_ (new ::CIAO::Config_Handlers::EventServiceType (*s.type_)),
- svc_cfg_file_ (new ::XMLSchema::string< ACE_TCHAR > (*s.svc_cfg_file_)),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- node_->container (this);
- type_->container (this);
- svc_cfg_file_->container (this);
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::MCastSenderDescription& MCastSenderDescription::
- operator= (::CIAO::Config_Handlers::MCastSenderDescription const& s)
- {
- node (s.node ());
-
- type (s.type ());
-
- svc_cfg_file (s.svc_cfg_file ());
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // MCastSenderDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& MCastSenderDescription::
- node () const
- {
- return *node_;
- }
-
- void MCastSenderDescription::
- node (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *node_ = e;
- }
-
- // MCastSenderDescription
- //
- ::CIAO::Config_Handlers::EventServiceType const& MCastSenderDescription::
- type () const
- {
- return *type_;
- }
-
- void MCastSenderDescription::
- type (::CIAO::Config_Handlers::EventServiceType const& e)
- {
- *type_ = e;
- }
-
- // MCastSenderDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& MCastSenderDescription::
- svc_cfg_file () const
- {
- return *svc_cfg_file_;
- }
-
- void MCastSenderDescription::
- svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *svc_cfg_file_ = e;
- }
-
- // MCastSenderDescription
- //
- bool MCastSenderDescription::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& MCastSenderDescription::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& MCastSenderDescription::
- id ()
- {
- return *id_;
- }
-
- void MCastSenderDescription::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
-
-
- // MCastReceiverDescription
- //
-
- MCastReceiverDescription::
- MCastReceiverDescription (::XMLSchema::string< ACE_TCHAR > const& node__,
- ::CIAO::Config_Handlers::EventServiceType const& type__,
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__)
- :
- ::XSCRT::Type (),
- node_ (new ::XMLSchema::string< ACE_TCHAR > (node__)),
- type_ (new ::CIAO::Config_Handlers::EventServiceType (type__)),
- svc_cfg_file_ (new ::XMLSchema::string< ACE_TCHAR > (svc_cfg_file__)),
- regulator__ ()
- {
- node_->container (this);
- type_->container (this);
- svc_cfg_file_->container (this);
- }
-
- MCastReceiverDescription::
- MCastReceiverDescription (::CIAO::Config_Handlers::MCastReceiverDescription const& s)
- :
- ::XSCRT::Type (),
- node_ (new ::XMLSchema::string< ACE_TCHAR > (*s.node_)),
- type_ (new ::CIAO::Config_Handlers::EventServiceType (*s.type_)),
- svc_cfg_file_ (new ::XMLSchema::string< ACE_TCHAR > (*s.svc_cfg_file_)),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- node_->container (this);
- type_->container (this);
- svc_cfg_file_->container (this);
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::MCastReceiverDescription& MCastReceiverDescription::
- operator= (::CIAO::Config_Handlers::MCastReceiverDescription const& s)
- {
- node (s.node ());
-
- type (s.type ());
-
- svc_cfg_file (s.svc_cfg_file ());
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // MCastReceiverDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& MCastReceiverDescription::
- node () const
- {
- return *node_;
- }
-
- void MCastReceiverDescription::
- node (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *node_ = e;
- }
-
- // MCastReceiverDescription
- //
- ::CIAO::Config_Handlers::EventServiceType const& MCastReceiverDescription::
- type () const
- {
- return *type_;
- }
-
- void MCastReceiverDescription::
- type (::CIAO::Config_Handlers::EventServiceType const& e)
- {
- *type_ = e;
- }
-
- // MCastReceiverDescription
- //
- ::XMLSchema::string< ACE_TCHAR > const& MCastReceiverDescription::
- svc_cfg_file () const
- {
- return *svc_cfg_file_;
- }
-
- void MCastReceiverDescription::
- svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *svc_cfg_file_ = e;
- }
-
- // MCastReceiverDescription
- //
- bool MCastReceiverDescription::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& MCastReceiverDescription::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& MCastReceiverDescription::
- id ()
- {
- return *id_;
- }
-
- void MCastReceiverDescription::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
-
-
- // EC_to_MCastSender
- //
-
- EC_to_MCastSender::
- EC_to_MCastSender (::XMLSchema::string< ACE_TCHAR > const& destination__)
- :
- ::XSCRT::Type (),
- destination_ (new ::XMLSchema::string< ACE_TCHAR > (destination__)),
- regulator__ ()
- {
- destination_->container (this);
- }
-
- EC_to_MCastSender::
- EC_to_MCastSender (::CIAO::Config_Handlers::EC_to_MCastSender const& s)
- :
- ::XSCRT::Type (),
- destination_ (new ::XMLSchema::string< ACE_TCHAR > (*s.destination_)),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- destination_->container (this);
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::EC_to_MCastSender& EC_to_MCastSender::
- operator= (::CIAO::Config_Handlers::EC_to_MCastSender const& s)
- {
- destination (s.destination ());
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // EC_to_MCastSender
- //
- ::XMLSchema::string< ACE_TCHAR > const& EC_to_MCastSender::
- destination () const
- {
- return *destination_;
- }
-
- void EC_to_MCastSender::
- destination (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *destination_ = e;
- }
-
- // EC_to_MCastSender
- //
- bool EC_to_MCastSender::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& EC_to_MCastSender::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& EC_to_MCastSender::
- id ()
- {
- return *id_;
- }
-
- void EC_to_MCastSender::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
-
-
- // MCastReceiver_to_EC
- //
-
- MCastReceiver_to_EC::
- MCastReceiver_to_EC (::XMLSchema::string< ACE_TCHAR > const& source__,
- ::XMLSchema::string< ACE_TCHAR > const& destination__)
- :
- ::XSCRT::Type (),
- source_ (new ::XMLSchema::string< ACE_TCHAR > (source__)),
- destination_ (new ::XMLSchema::string< ACE_TCHAR > (destination__)),
- regulator__ ()
- {
- source_->container (this);
- destination_->container (this);
- }
-
- MCastReceiver_to_EC::
- MCastReceiver_to_EC (::CIAO::Config_Handlers::MCastReceiver_to_EC const& s)
- :
- ::XSCRT::Type (),
- source_ (new ::XMLSchema::string< ACE_TCHAR > (*s.source_)),
- destination_ (new ::XMLSchema::string< ACE_TCHAR > (*s.destination_)),
- id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
- regulator__ ()
- {
- source_->container (this);
- destination_->container (this);
- if (id_.get ()) id_->container (this);
- }
-
- ::CIAO::Config_Handlers::MCastReceiver_to_EC& MCastReceiver_to_EC::
- operator= (::CIAO::Config_Handlers::MCastReceiver_to_EC const& s)
- {
- source (s.source ());
-
- destination (s.destination ());
-
- if (s.id_.get ()) id (*(s.id_));
- else id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (0);
-
- return *this;
- }
-
-
- // MCastReceiver_to_EC
- //
- ::XMLSchema::string< ACE_TCHAR > const& MCastReceiver_to_EC::
- source () const
- {
- return *source_;
- }
-
- void MCastReceiver_to_EC::
- source (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *source_ = e;
- }
-
- // MCastReceiver_to_EC
- //
- ::XMLSchema::string< ACE_TCHAR > const& MCastReceiver_to_EC::
- destination () const
- {
- return *destination_;
- }
-
- void MCastReceiver_to_EC::
- destination (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- *destination_ = e;
- }
-
- // MCastReceiver_to_EC
- //
- bool MCastReceiver_to_EC::
- id_p () const
- {
- return id_.get () != 0;
- }
-
- ::XMLSchema::ID< ACE_TCHAR > const& MCastReceiver_to_EC::
- id () const
- {
- return *id_;
- }
-
- ::XMLSchema::ID< ACE_TCHAR >& MCastReceiver_to_EC::
- id ()
- {
- return *id_;
- }
-
- void MCastReceiver_to_EC::
- id (::XMLSchema::ID< ACE_TCHAR > const& e)
- {
- if (id_.get ())
- {
- *id_ = e;
- }
-
- else
- {
- id_ = ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > (new ::XMLSchema::ID< ACE_TCHAR > (e));
- id_->container (this);
- }
- }
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- // EventServiceType
- //
-
- EventServiceType::
- EventServiceType (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- : ::XSCRT::Type (e)
- {
- ::std::basic_string< ACE_TCHAR > v (e.value ());
-
- if (v == "EC") v_ = EC_l;
- else if (v == "RTEC") v_ = RTEC_l;
- else if (v == "NOTIFY") v_ = NOTIFY_l;
- else if (v == "RTNOTIFY") v_ = RTNOTIFY_l;
- else
- {
- }
- }
-
- EventServiceType::
- EventServiceType (::XSCRT::XML::Attribute< ACE_TCHAR > const& a)
- : ::XSCRT::Type (a)
- {
- ::std::basic_string< ACE_TCHAR > v (a.value ());
-
- if (v == "EC") v_ = EC_l;
- else if (v == "RTEC") v_ = RTEC_l;
- else if (v == "NOTIFY") v_ = NOTIFY_l;
- else if (v == "RTNOTIFY") v_ = RTNOTIFY_l;
- else
- {
- }
- }
-
- EventServiceType const EventServiceType::EC (EventServiceType::EC_l);
- EventServiceType const EventServiceType::RTEC (EventServiceType::RTEC_l);
- EventServiceType const EventServiceType::NOTIFY (EventServiceType::NOTIFY_l);
- EventServiceType const EventServiceType::RTNOTIFY (EventServiceType::RTNOTIFY_l);
-
- // CIAOEventsDef
- //
-
- CIAOEventsDef::
- CIAOEventsDef (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "eventServiceConfiguration")
- {
- ::CIAO::Config_Handlers::EventServiceDescription t (e);
- add_eventServiceConfiguration (t);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
-
- // EventServiceDescription
- //
-
- EventServiceDescription::
- EventServiceDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "name")
- {
- name_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- name_->container (this);
- }
-
- else if (n == "node")
- {
- node_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- node_->container (this);
- }
-
- else if (n == "type")
- {
- type_ = ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > (new ::CIAO::Config_Handlers::EventServiceType (e));
- type_->container (this);
- }
-
- else if (n == "svc_cfg_file")
- {
- svc_cfg_file_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- svc_cfg_file_->container (this);
- }
-
- else if (n == "filter")
- {
- ::CIAO::Config_Handlers::Filter t (e);
- add_filter (t);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
-
- // FilterType
- //
-
- FilterType::
- FilterType (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- : ::XSCRT::Type (e)
- {
- ::std::basic_string< ACE_TCHAR > v (e.value ());
-
- if (v == "CONJUNCTION") v_ = CONJUNCTION_l;
- else if (v == "DISJUNCTION") v_ = DISJUNCTION_l;
- else if (v == "LOGICAL_AND") v_ = LOGICAL_AND_l;
- else if (v == "NEGATE") v_ = NEGATE_l;
- else
- {
- }
- }
-
- FilterType::
- FilterType (::XSCRT::XML::Attribute< ACE_TCHAR > const& a)
- : ::XSCRT::Type (a)
- {
- ::std::basic_string< ACE_TCHAR > v (a.value ());
-
- if (v == "CONJUNCTION") v_ = CONJUNCTION_l;
- else if (v == "DISJUNCTION") v_ = DISJUNCTION_l;
- else if (v == "LOGICAL_AND") v_ = LOGICAL_AND_l;
- else if (v == "NEGATE") v_ = NEGATE_l;
- else
- {
- }
- }
-
- FilterType const FilterType::CONJUNCTION (FilterType::CONJUNCTION_l);
- FilterType const FilterType::DISJUNCTION (FilterType::DISJUNCTION_l);
- FilterType const FilterType::LOGICAL_AND (FilterType::LOGICAL_AND_l);
- FilterType const FilterType::NEGATE (FilterType::NEGATE_l);
-
- // Filter
- //
-
- Filter::
- Filter (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "name")
- {
- name_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- name_->container (this);
- }
-
- else if (n == "type")
- {
- type_ = ::std::auto_ptr< ::CIAO::Config_Handlers::FilterType > (new ::CIAO::Config_Handlers::FilterType (e));
- type_->container (this);
- }
-
- else if (n == "source")
- {
- ::XMLSchema::string< ACE_TCHAR > t (e);
- add_source (t);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
-
- // MCastSenderDescription
- //
-
- MCastSenderDescription::
- MCastSenderDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "node")
- {
- node_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- node_->container (this);
- }
-
- else if (n == "type")
- {
- type_ = ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > (new ::CIAO::Config_Handlers::EventServiceType (e));
- type_->container (this);
- }
-
- else if (n == "svc_cfg_file")
- {
- svc_cfg_file_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- svc_cfg_file_->container (this);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
-
- // MCastReceiverDescription
- //
-
- MCastReceiverDescription::
- MCastReceiverDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "node")
- {
- node_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- node_->container (this);
- }
-
- else if (n == "type")
- {
- type_ = ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > (new ::CIAO::Config_Handlers::EventServiceType (e));
- type_->container (this);
- }
-
- else if (n == "svc_cfg_file")
- {
- svc_cfg_file_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- svc_cfg_file_->container (this);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
-
- // EC_to_MCastSender
- //
-
- EC_to_MCastSender::
- EC_to_MCastSender (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "destination")
- {
- destination_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- destination_->container (this);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
-
- // MCastReceiver_to_EC
- //
-
- MCastReceiver_to_EC::
- MCastReceiver_to_EC (::XSCRT::XML::Element< ACE_TCHAR > const& e)
- :Base__ (e), regulator__ ()
- {
-
- ::XSCRT::Parser< ACE_TCHAR > p (e);
-
- while (p.more_elements ())
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ()));
-
- if (n == "source")
- {
- source_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- source_->container (this);
- }
-
- else if (n == "destination")
- {
- destination_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- destination_->container (this);
- }
-
- else
- {
- }
- }
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "id")
- {
- ::XMLSchema::ID< ACE_TCHAR > t (a);
- id (t);
- }
-
- else
- {
- }
- }
- }
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- ::CIAO::Config_Handlers::CIAOEventsDef
- CIAOEvents (xercesc::DOMDocument const* d)
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (d->getDocumentElement ());
- if (e.name () == "CIAOEvents")
- {
- ::CIAO::Config_Handlers::CIAOEventsDef r (e);
- return r;
- }
-
- else
- {
- throw 1;
- }
- }
- }
-
-}
-
-#include "XMLSchema/TypeInfo.hpp"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- namespace
- {
- ::XMLSchema::TypeInfoInitializer < ACE_TCHAR > XMLSchemaTypeInfoInitializer_ (::XSCRT::extended_type_info_map ());
-
- struct EventServiceTypeTypeInfoInitializer
- {
- EventServiceTypeTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (EventServiceType));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
-
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- EventServiceTypeTypeInfoInitializer EventServiceTypeTypeInfoInitializer_;
-
- struct CIAOEventsDefTypeInfoInitializer
- {
- CIAOEventsDefTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (CIAOEventsDef));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- CIAOEventsDefTypeInfoInitializer CIAOEventsDefTypeInfoInitializer_;
-
- struct EventServiceDescriptionTypeInfoInitializer
- {
- EventServiceDescriptionTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (EventServiceDescription));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- EventServiceDescriptionTypeInfoInitializer EventServiceDescriptionTypeInfoInitializer_;
-
- struct FilterTypeTypeInfoInitializer
- {
- FilterTypeTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (FilterType));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
-
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- FilterTypeTypeInfoInitializer FilterTypeTypeInfoInitializer_;
-
- struct FilterTypeInfoInitializer
- {
- FilterTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (Filter));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- FilterTypeInfoInitializer FilterTypeInfoInitializer_;
-
- struct MCastSenderDescriptionTypeInfoInitializer
- {
- MCastSenderDescriptionTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (MCastSenderDescription));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- MCastSenderDescriptionTypeInfoInitializer MCastSenderDescriptionTypeInfoInitializer_;
-
- struct MCastReceiverDescriptionTypeInfoInitializer
- {
- MCastReceiverDescriptionTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (MCastReceiverDescription));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- MCastReceiverDescriptionTypeInfoInitializer MCastReceiverDescriptionTypeInfoInitializer_;
-
- struct EC_to_MCastSenderTypeInfoInitializer
- {
- EC_to_MCastSenderTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (EC_to_MCastSender));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- EC_to_MCastSenderTypeInfoInitializer EC_to_MCastSenderTypeInfoInitializer_;
-
- struct MCastReceiver_to_ECTypeInfoInitializer
- {
- MCastReceiver_to_ECTypeInfoInitializer ()
- {
- ::XSCRT::TypeId id (typeid (MCastReceiver_to_EC));
- ::XSCRT::ExtendedTypeInfo nf (id);
-
- nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
- ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
- }
- };
-
- MCastReceiver_to_ECTypeInfoInitializer MCastReceiver_to_ECTypeInfoInitializer_;
- }
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- namespace Traversal
- {
- // CIAOEventsDef
- //
- //
-
- void CIAOEventsDef::
- traverse (Type& o)
- {
- pre (o);
- eventServiceConfiguration (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void CIAOEventsDef::
- traverse (Type const& o)
- {
- pre (o);
- eventServiceConfiguration (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void CIAOEventsDef::
- pre (Type&)
- {
- }
-
- void CIAOEventsDef::
- pre (Type const&)
- {
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration (Type& o)
- {
- // VC6 anathema strikes again
- //
- CIAOEventsDef::Type::eventServiceConfiguration_iterator b (o.begin_eventServiceConfiguration()), e (o.end_eventServiceConfiguration());
-
- if (b != e)
- {
- eventServiceConfiguration_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) eventServiceConfiguration_next (o);
- }
-
- eventServiceConfiguration_post (o);
- }
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration (Type const& o)
- {
- // VC6 anathema strikes again
- //
- CIAOEventsDef::Type::eventServiceConfiguration_const_iterator b (o.begin_eventServiceConfiguration()), e (o.end_eventServiceConfiguration());
-
- if (b != e)
- {
- eventServiceConfiguration_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) eventServiceConfiguration_next (o);
- }
-
- eventServiceConfiguration_post (o);
- }
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_pre (Type&)
- {
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_pre (Type const&)
- {
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_next (Type&)
- {
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_next (Type const&)
- {
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_post (Type&)
- {
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_post (Type const&)
- {
- }
-
- void CIAOEventsDef::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void CIAOEventsDef::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void CIAOEventsDef::
- id_none (Type&)
- {
- }
-
- void CIAOEventsDef::
- id_none (Type const&)
- {
- }
-
- void CIAOEventsDef::
- post (Type&)
- {
- }
-
- void CIAOEventsDef::
- post (Type const&)
- {
- }
-
- // EventServiceDescription
- //
- //
-
- void EventServiceDescription::
- traverse (Type& o)
- {
- pre (o);
- name (o);
- node (o);
- type (o);
- svc_cfg_file (o);
- filter (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void EventServiceDescription::
- traverse (Type const& o)
- {
- pre (o);
- name (o);
- node (o);
- type (o);
- svc_cfg_file (o);
- filter (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void EventServiceDescription::
- pre (Type&)
- {
- }
-
- void EventServiceDescription::
- pre (Type const&)
- {
- }
-
- void EventServiceDescription::
- name (Type& o)
- {
- dispatch (o.name ());
- }
-
- void EventServiceDescription::
- name (Type const& o)
- {
- dispatch (o.name ());
- }
-
- void EventServiceDescription::
- node (Type& o)
- {
- dispatch (o.node ());
- }
-
- void EventServiceDescription::
- node (Type const& o)
- {
- dispatch (o.node ());
- }
-
- void EventServiceDescription::
- type (Type& o)
- {
- dispatch (o.type ());
- }
-
- void EventServiceDescription::
- type (Type const& o)
- {
- dispatch (o.type ());
- }
-
- void EventServiceDescription::
- svc_cfg_file (Type& o)
- {
- dispatch (o.svc_cfg_file ());
- }
-
- void EventServiceDescription::
- svc_cfg_file (Type const& o)
- {
- dispatch (o.svc_cfg_file ());
- }
-
- void EventServiceDescription::
- filter (Type& o)
- {
- // VC6 anathema strikes again
- //
- EventServiceDescription::Type::filter_iterator b (o.begin_filter()), e (o.end_filter());
-
- if (b != e)
- {
- filter_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) filter_next (o);
- }
-
- filter_post (o);
- }
-
- else filter_none (o);
- }
-
- void EventServiceDescription::
- filter (Type const& o)
- {
- // VC6 anathema strikes again
- //
- EventServiceDescription::Type::filter_const_iterator b (o.begin_filter()), e (o.end_filter());
-
- if (b != e)
- {
- filter_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) filter_next (o);
- }
-
- filter_post (o);
- }
-
- else filter_none (o);
- }
-
- void EventServiceDescription::
- filter_pre (Type&)
- {
- }
-
- void EventServiceDescription::
- filter_pre (Type const&)
- {
- }
-
- void EventServiceDescription::
- filter_next (Type&)
- {
- }
-
- void EventServiceDescription::
- filter_next (Type const&)
- {
- }
-
- void EventServiceDescription::
- filter_post (Type&)
- {
- }
-
- void EventServiceDescription::
- filter_post (Type const&)
- {
- }
-
- void EventServiceDescription::
- filter_none (Type&)
- {
- }
-
- void EventServiceDescription::
- filter_none (Type const&)
- {
- }
-
- void EventServiceDescription::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void EventServiceDescription::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void EventServiceDescription::
- id_none (Type&)
- {
- }
-
- void EventServiceDescription::
- id_none (Type const&)
- {
- }
-
- void EventServiceDescription::
- post (Type&)
- {
- }
-
- void EventServiceDescription::
- post (Type const&)
- {
- }
-
- // Filter
- //
- //
-
- void Filter::
- traverse (Type& o)
- {
- pre (o);
- name (o);
- type (o);
- source (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void Filter::
- traverse (Type const& o)
- {
- pre (o);
- name (o);
- type (o);
- source (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void Filter::
- pre (Type&)
- {
- }
-
- void Filter::
- pre (Type const&)
- {
- }
-
- void Filter::
- name (Type& o)
- {
- dispatch (o.name ());
- }
-
- void Filter::
- name (Type const& o)
- {
- dispatch (o.name ());
- }
-
- void Filter::
- type (Type& o)
- {
- dispatch (o.type ());
- }
-
- void Filter::
- type (Type const& o)
- {
- dispatch (o.type ());
- }
-
- void Filter::
- source (Type& o)
- {
- // VC6 anathema strikes again
- //
- Filter::Type::source_iterator b (o.begin_source()), e (o.end_source());
-
- if (b != e)
- {
- source_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) source_next (o);
- }
-
- source_post (o);
- }
- }
-
- void Filter::
- source (Type const& o)
- {
- // VC6 anathema strikes again
- //
- Filter::Type::source_const_iterator b (o.begin_source()), e (o.end_source());
-
- if (b != e)
- {
- source_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) source_next (o);
- }
-
- source_post (o);
- }
- }
-
- void Filter::
- source_pre (Type&)
- {
- }
-
- void Filter::
- source_pre (Type const&)
- {
- }
-
- void Filter::
- source_next (Type&)
- {
- }
-
- void Filter::
- source_next (Type const&)
- {
- }
-
- void Filter::
- source_post (Type&)
- {
- }
-
- void Filter::
- source_post (Type const&)
- {
- }
-
- void Filter::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void Filter::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void Filter::
- id_none (Type&)
- {
- }
-
- void Filter::
- id_none (Type const&)
- {
- }
-
- void Filter::
- post (Type&)
- {
- }
-
- void Filter::
- post (Type const&)
- {
- }
-
- // MCastSenderDescription
- //
- //
-
- void MCastSenderDescription::
- traverse (Type& o)
- {
- pre (o);
- node (o);
- type (o);
- svc_cfg_file (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void MCastSenderDescription::
- traverse (Type const& o)
- {
- pre (o);
- node (o);
- type (o);
- svc_cfg_file (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void MCastSenderDescription::
- pre (Type&)
- {
- }
-
- void MCastSenderDescription::
- pre (Type const&)
- {
- }
-
- void MCastSenderDescription::
- node (Type& o)
- {
- dispatch (o.node ());
- }
-
- void MCastSenderDescription::
- node (Type const& o)
- {
- dispatch (o.node ());
- }
-
- void MCastSenderDescription::
- type (Type& o)
- {
- dispatch (o.type ());
- }
-
- void MCastSenderDescription::
- type (Type const& o)
- {
- dispatch (o.type ());
- }
-
- void MCastSenderDescription::
- svc_cfg_file (Type& o)
- {
- dispatch (o.svc_cfg_file ());
- }
-
- void MCastSenderDescription::
- svc_cfg_file (Type const& o)
- {
- dispatch (o.svc_cfg_file ());
- }
-
- void MCastSenderDescription::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void MCastSenderDescription::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void MCastSenderDescription::
- id_none (Type&)
- {
- }
-
- void MCastSenderDescription::
- id_none (Type const&)
- {
- }
-
- void MCastSenderDescription::
- post (Type&)
- {
- }
-
- void MCastSenderDescription::
- post (Type const&)
- {
- }
-
- // MCastReceiverDescription
- //
- //
-
- void MCastReceiverDescription::
- traverse (Type& o)
- {
- pre (o);
- node (o);
- type (o);
- svc_cfg_file (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void MCastReceiverDescription::
- traverse (Type const& o)
- {
- pre (o);
- node (o);
- type (o);
- svc_cfg_file (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void MCastReceiverDescription::
- pre (Type&)
- {
- }
-
- void MCastReceiverDescription::
- pre (Type const&)
- {
- }
-
- void MCastReceiverDescription::
- node (Type& o)
- {
- dispatch (o.node ());
- }
-
- void MCastReceiverDescription::
- node (Type const& o)
- {
- dispatch (o.node ());
- }
-
- void MCastReceiverDescription::
- type (Type& o)
- {
- dispatch (o.type ());
- }
-
- void MCastReceiverDescription::
- type (Type const& o)
- {
- dispatch (o.type ());
- }
-
- void MCastReceiverDescription::
- svc_cfg_file (Type& o)
- {
- dispatch (o.svc_cfg_file ());
- }
-
- void MCastReceiverDescription::
- svc_cfg_file (Type const& o)
- {
- dispatch (o.svc_cfg_file ());
- }
-
- void MCastReceiverDescription::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void MCastReceiverDescription::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void MCastReceiverDescription::
- id_none (Type&)
- {
- }
-
- void MCastReceiverDescription::
- id_none (Type const&)
- {
- }
-
- void MCastReceiverDescription::
- post (Type&)
- {
- }
-
- void MCastReceiverDescription::
- post (Type const&)
- {
- }
-
- // EC_to_MCastSender
- //
- //
-
- void EC_to_MCastSender::
- traverse (Type& o)
- {
- pre (o);
- destination (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void EC_to_MCastSender::
- traverse (Type const& o)
- {
- pre (o);
- destination (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void EC_to_MCastSender::
- pre (Type&)
- {
- }
-
- void EC_to_MCastSender::
- pre (Type const&)
- {
- }
-
- void EC_to_MCastSender::
- destination (Type& o)
- {
- dispatch (o.destination ());
- }
-
- void EC_to_MCastSender::
- destination (Type const& o)
- {
- dispatch (o.destination ());
- }
-
- void EC_to_MCastSender::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void EC_to_MCastSender::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void EC_to_MCastSender::
- id_none (Type&)
- {
- }
-
- void EC_to_MCastSender::
- id_none (Type const&)
- {
- }
-
- void EC_to_MCastSender::
- post (Type&)
- {
- }
-
- void EC_to_MCastSender::
- post (Type const&)
- {
- }
-
- // MCastReceiver_to_EC
- //
- //
-
- void MCastReceiver_to_EC::
- traverse (Type& o)
- {
- pre (o);
- source (o);
- destination (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void MCastReceiver_to_EC::
- traverse (Type const& o)
- {
- pre (o);
- source (o);
- destination (o);
- if (o.id_p ()) id (o);
- else id_none (o);
- post (o);
- }
-
- void MCastReceiver_to_EC::
- pre (Type&)
- {
- }
-
- void MCastReceiver_to_EC::
- pre (Type const&)
- {
- }
-
- void MCastReceiver_to_EC::
- source (Type& o)
- {
- dispatch (o.source ());
- }
-
- void MCastReceiver_to_EC::
- source (Type const& o)
- {
- dispatch (o.source ());
- }
-
- void MCastReceiver_to_EC::
- destination (Type& o)
- {
- dispatch (o.destination ());
- }
-
- void MCastReceiver_to_EC::
- destination (Type const& o)
- {
- dispatch (o.destination ());
- }
-
- void MCastReceiver_to_EC::
- id (Type& o)
- {
- dispatch (o.id ());
- }
-
- void MCastReceiver_to_EC::
- id (Type const& o)
- {
- dispatch (o.id ());
- }
-
- void MCastReceiver_to_EC::
- id_none (Type&)
- {
- }
-
- void MCastReceiver_to_EC::
- id_none (Type const&)
- {
- }
-
- void MCastReceiver_to_EC::
- post (Type&)
- {
- }
-
- void MCastReceiver_to_EC::
- post (Type const&)
- {
- }
- }
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- namespace Writer
- {
- // EventServiceType
- //
- //
-
- EventServiceType::
- EventServiceType (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- EventServiceType::
- EventServiceType ()
- {
- }
-
- void EventServiceType::
- traverse (Type const& o)
- {
- ::std::basic_string< ACE_TCHAR > s;
-
- if (o == ::CIAO::Config_Handlers::EventServiceType::EC) s = "EC";
- else if (o == ::CIAO::Config_Handlers::EventServiceType::RTEC) s = "RTEC";
- else if (o == ::CIAO::Config_Handlers::EventServiceType::NOTIFY) s = "NOTIFY";
- else if (o == ::CIAO::Config_Handlers::EventServiceType::RTNOTIFY) s = "RTNOTIFY";
- else
- {
- }
-
- if (::XSCRT::XML::Attribute< ACE_TCHAR >* a = attr_ ())
- {
- a->value (s);
- }
-
- else
- {
- top_().value (s);
- }
- }
-
- // CIAOEventsDef
- //
- //
-
- CIAOEventsDef::
- CIAOEventsDef (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- CIAOEventsDef::
- CIAOEventsDef ()
- {
- }
-
- void CIAOEventsDef::
- traverse (Type const& o)
- {
- Traversal::CIAOEventsDef::traverse (o);
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_pre (Type const&)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("eventServiceConfiguration", top_ ()));
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_next (Type const& o)
- {
- eventServiceConfiguration_post (o);
- eventServiceConfiguration_pre (o);
- }
-
- void CIAOEventsDef::
- eventServiceConfiguration_post (Type const&)
- {
- pop_ ();
- }
-
- void CIAOEventsDef::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::CIAOEventsDef::id (o);
- attr_ (0);
- }
-
- // EventServiceDescription
- //
- //
-
- EventServiceDescription::
- EventServiceDescription (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- EventServiceDescription::
- EventServiceDescription ()
- {
- }
-
- void EventServiceDescription::
- traverse (Type const& o)
- {
- Traversal::EventServiceDescription::traverse (o);
- }
-
- void EventServiceDescription::
- name (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("name", top_ ()));
- Traversal::EventServiceDescription::name (o);
- pop_ ();
- }
-
- void EventServiceDescription::
- node (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("node", top_ ()));
- Traversal::EventServiceDescription::node (o);
- pop_ ();
- }
-
- void EventServiceDescription::
- type (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("type", top_ ()));
- Traversal::EventServiceDescription::type (o);
- pop_ ();
- }
-
- void EventServiceDescription::
- svc_cfg_file (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("svc_cfg_file", top_ ()));
- Traversal::EventServiceDescription::svc_cfg_file (o);
- pop_ ();
- }
-
- void EventServiceDescription::
- filter_pre (Type const&)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("filter", top_ ()));
- }
-
- void EventServiceDescription::
- filter_next (Type const& o)
- {
- filter_post (o);
- filter_pre (o);
- }
-
- void EventServiceDescription::
- filter_post (Type const&)
- {
- pop_ ();
- }
-
- void EventServiceDescription::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::EventServiceDescription::id (o);
- attr_ (0);
- }
-
- // FilterType
- //
- //
-
- FilterType::
- FilterType (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- FilterType::
- FilterType ()
- {
- }
-
- void FilterType::
- traverse (Type const& o)
- {
- ::std::basic_string< ACE_TCHAR > s;
-
- if (o == ::CIAO::Config_Handlers::FilterType::CONJUNCTION) s = "CONJUNCTION";
- else if (o == ::CIAO::Config_Handlers::FilterType::DISJUNCTION) s = "DISJUNCTION";
- else if (o == ::CIAO::Config_Handlers::FilterType::LOGICAL_AND) s = "LOGICAL_AND";
- else if (o == ::CIAO::Config_Handlers::FilterType::NEGATE) s = "NEGATE";
- else
- {
- }
-
- if (::XSCRT::XML::Attribute< ACE_TCHAR >* a = attr_ ())
- {
- a->value (s);
- }
-
- else
- {
- top_().value (s);
- }
- }
-
- // Filter
- //
- //
-
- Filter::
- Filter (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- Filter::
- Filter ()
- {
- }
-
- void Filter::
- traverse (Type const& o)
- {
- Traversal::Filter::traverse (o);
- }
-
- void Filter::
- name (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("name", top_ ()));
- Traversal::Filter::name (o);
- pop_ ();
- }
-
- void Filter::
- type (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("type", top_ ()));
- Traversal::Filter::type (o);
- pop_ ();
- }
-
- void Filter::
- source_pre (Type const&)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("source", top_ ()));
- }
-
- void Filter::
- source_next (Type const& o)
- {
- source_post (o);
- source_pre (o);
- }
-
- void Filter::
- source_post (Type const&)
- {
- pop_ ();
- }
-
- void Filter::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::Filter::id (o);
- attr_ (0);
- }
-
- // MCastSenderDescription
- //
- //
-
- MCastSenderDescription::
- MCastSenderDescription (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- MCastSenderDescription::
- MCastSenderDescription ()
- {
- }
-
- void MCastSenderDescription::
- traverse (Type const& o)
- {
- Traversal::MCastSenderDescription::traverse (o);
- }
-
- void MCastSenderDescription::
- node (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("node", top_ ()));
- Traversal::MCastSenderDescription::node (o);
- pop_ ();
- }
-
- void MCastSenderDescription::
- type (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("type", top_ ()));
- Traversal::MCastSenderDescription::type (o);
- pop_ ();
- }
-
- void MCastSenderDescription::
- svc_cfg_file (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("svc_cfg_file", top_ ()));
- Traversal::MCastSenderDescription::svc_cfg_file (o);
- pop_ ();
- }
-
- void MCastSenderDescription::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::MCastSenderDescription::id (o);
- attr_ (0);
- }
-
- // MCastReceiverDescription
- //
- //
-
- MCastReceiverDescription::
- MCastReceiverDescription (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- MCastReceiverDescription::
- MCastReceiverDescription ()
- {
- }
-
- void MCastReceiverDescription::
- traverse (Type const& o)
- {
- Traversal::MCastReceiverDescription::traverse (o);
- }
-
- void MCastReceiverDescription::
- node (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("node", top_ ()));
- Traversal::MCastReceiverDescription::node (o);
- pop_ ();
- }
-
- void MCastReceiverDescription::
- type (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("type", top_ ()));
- Traversal::MCastReceiverDescription::type (o);
- pop_ ();
- }
-
- void MCastReceiverDescription::
- svc_cfg_file (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("svc_cfg_file", top_ ()));
- Traversal::MCastReceiverDescription::svc_cfg_file (o);
- pop_ ();
- }
-
- void MCastReceiverDescription::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::MCastReceiverDescription::id (o);
- attr_ (0);
- }
-
- // EC_to_MCastSender
- //
- //
-
- EC_to_MCastSender::
- EC_to_MCastSender (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- EC_to_MCastSender::
- EC_to_MCastSender ()
- {
- }
-
- void EC_to_MCastSender::
- traverse (Type const& o)
- {
- Traversal::EC_to_MCastSender::traverse (o);
- }
-
- void EC_to_MCastSender::
- destination (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("destination", top_ ()));
- Traversal::EC_to_MCastSender::destination (o);
- pop_ ();
- }
-
- void EC_to_MCastSender::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::EC_to_MCastSender::id (o);
- attr_ (0);
- }
-
- // MCastReceiver_to_EC
- //
- //
-
- MCastReceiver_to_EC::
- MCastReceiver_to_EC (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
-
- MCastReceiver_to_EC::
- MCastReceiver_to_EC ()
- {
- }
-
- void MCastReceiver_to_EC::
- traverse (Type const& o)
- {
- Traversal::MCastReceiver_to_EC::traverse (o);
- }
-
- void MCastReceiver_to_EC::
- source (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("source", top_ ()));
- Traversal::MCastReceiver_to_EC::source (o);
- pop_ ();
- }
-
- void MCastReceiver_to_EC::
- destination (Type const& o)
- {
- push_ (::XSCRT::XML::Element< ACE_TCHAR > ("destination", top_ ()));
- Traversal::MCastReceiver_to_EC::destination (o);
- pop_ ();
- }
-
- void MCastReceiver_to_EC::
- id (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("id", "", top_ ());
- attr_ (&a);
- Traversal::MCastReceiver_to_EC::id (o);
- attr_ (0);
- }
- }
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
-
- void
- CIAOEvents (::CIAO::Config_Handlers::CIAOEventsDef const& s, xercesc::DOMDocument* d)
- {
- ::XSCRT::XML::Element< ACE_TCHAR > e (d->getDocumentElement ());
- if (e.name () != "CIAOEvents")
- {
- throw 1;
- }
-
- struct W : virtual ::CIAO::Config_Handlers::Writer::CIAOEventsDef,
- virtual ::CIAO::Config_Handlers::Writer::EventServiceDescription,
- virtual ::XMLSchema::Writer::FundamentalType< ::XMLSchema::string< ACE_TCHAR >, ACE_TCHAR >,
- virtual ::CIAO::Config_Handlers::Writer::EventServiceType,
- virtual ::CIAO::Config_Handlers::Writer::Filter,
- virtual ::CIAO::Config_Handlers::Writer::FilterType,
- virtual ::XMLSchema::Writer::FundamentalType< ::XMLSchema::ID< ACE_TCHAR >, ACE_TCHAR >,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- W (::XSCRT::XML::Element< ACE_TCHAR >& e)
- : ::XSCRT::Writer< ACE_TCHAR > (e)
- {
- }
- };
-
- W w (e);
- w.dispatch (s);
- }
- }
-
-}
-
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp
deleted file mode 100644
index 7a7ca403bac..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents.hpp
+++ /dev/null
@@ -1,1502 +0,0 @@
-/* $Id$
- * This code was generated by the XML Schema Compiler.
- *
- * Changes made to this code will most likely be overwritten
- * when the handlers are recompiled.
- *
- * If you find errors or feel that there are bugfixes to be made,
- * please contact the current XSC maintainer:
- * Will Otte <wotte@dre.vanderbilt.edu>
- */
-
-
-// Fixes the VC6 warning 4786.
-#include "vc6-4786.h"
-
-// Fix for Borland compilers, which seem to have a broken
-// <string> include.
-#ifdef __BORLANDC__
-# include <string.h>
-#endif
-
-#include "CIAO_Events_Handlers_Export.h"
-#ifndef CIAOEVENTS_HPP
-#define CIAOEVENTS_HPP
-
-// Forward declarations.
-//
-namespace CIAO
-{
- namespace Config_Handlers
- {
- class EventServiceType;
- class CIAOEventsDef;
- class EventServiceDescription;
- class FilterType;
- class Filter;
- class MCastSenderDescription;
- class MCastReceiverDescription;
- class EC_to_MCastSender;
- class MCastReceiver_to_EC;
- }
-}
-
-#include <memory>
-#include <list>
-#include "XMLSchema/Types.hpp"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- class CIAO_Events_Handlers_Export EventServiceType : public ::XSCRT::Type
- {
- public:
- EventServiceType (::XSCRT::XML::Element< ACE_TCHAR > const&);
- EventServiceType (::XSCRT::XML::Attribute< ACE_TCHAR > const&);
-
- static EventServiceType const EC;
- static EventServiceType const RTEC;
- static EventServiceType const NOTIFY;
- static EventServiceType const RTNOTIFY;
-
- enum Value
- {
- EC_l,RTEC_l,NOTIFY_l,RTNOTIFY_l
- };
-
-
- Value
- integral () const;
-
- friend bool CIAO_Events_Handlers_Export
- operator== (EventServiceType const& a, EventServiceType const& b);
-
- friend bool CIAO_Events_Handlers_Export
- operator!= (EventServiceType const& a, EventServiceType const& b);
-
- private:
- EventServiceType (Value v);
-
- Value v_;
- };
-
- bool CIAO_Events_Handlers_Export operator== (EventServiceType const &a, EventServiceType const &b);
-
- bool CIAO_Events_Handlers_Export operator!= (EventServiceType const &a, EventServiceType const &b);
-
-
- class CIAO_Events_Handlers_Export CIAOEventsDef : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // eventServiceConfiguration
- //
- public:
- typedef ::std::list< ::CIAO::Config_Handlers::EventServiceDescription >::iterator eventServiceConfiguration_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::EventServiceDescription >::const_iterator eventServiceConfiguration_const_iterator;
- eventServiceConfiguration_iterator begin_eventServiceConfiguration ();
- eventServiceConfiguration_iterator end_eventServiceConfiguration ();
- eventServiceConfiguration_const_iterator begin_eventServiceConfiguration () const;
- eventServiceConfiguration_const_iterator end_eventServiceConfiguration () const;
- void add_eventServiceConfiguration (::CIAO::Config_Handlers::EventServiceDescription const& );
- size_t count_eventServiceConfiguration (void) const;
-
- protected:
- ::std::list< ::CIAO::Config_Handlers::EventServiceDescription > eventServiceConfiguration_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- CIAOEventsDef ();
-
- CIAOEventsDef (::XSCRT::XML::Element< ACE_TCHAR > const&);
- CIAOEventsDef (CIAOEventsDef const& s);
-
- CIAOEventsDef&
- operator= (CIAOEventsDef const& s);
-
- private:
- char regulator__;
- };
-
-
- class CIAO_Events_Handlers_Export EventServiceDescription : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // name
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& name () const;
- void name (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
-
- // node
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& node () const;
- void node (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > node_;
-
- // type
- //
- public:
- ::CIAO::Config_Handlers::EventServiceType const& type () const;
- void type (::CIAO::Config_Handlers::EventServiceType const& );
-
- protected:
- ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > type_;
-
- // svc_cfg_file
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file () const;
- void svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > svc_cfg_file_;
-
- // filter
- //
- public:
- typedef ::std::list< ::CIAO::Config_Handlers::Filter >::iterator filter_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::Filter >::const_iterator filter_const_iterator;
- filter_iterator begin_filter ();
- filter_iterator end_filter ();
- filter_const_iterator begin_filter () const;
- filter_const_iterator end_filter () const;
- void add_filter (::CIAO::Config_Handlers::Filter const& );
- size_t count_filter (void) const;
-
- protected:
- ::std::list< ::CIAO::Config_Handlers::Filter > filter_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- EventServiceDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& node__,
- ::CIAO::Config_Handlers::EventServiceType const& type__,
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__);
-
- EventServiceDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
- EventServiceDescription (EventServiceDescription const& s);
-
- EventServiceDescription&
- operator= (EventServiceDescription const& s);
-
- private:
- char regulator__;
- };
-
-
- class CIAO_Events_Handlers_Export FilterType : public ::XSCRT::Type
- {
- public:
- FilterType (::XSCRT::XML::Element< ACE_TCHAR > const&);
- FilterType (::XSCRT::XML::Attribute< ACE_TCHAR > const&);
-
- static FilterType const CONJUNCTION;
- static FilterType const DISJUNCTION;
- static FilterType const LOGICAL_AND;
- static FilterType const NEGATE;
-
- enum Value
- {
- CONJUNCTION_l,DISJUNCTION_l,LOGICAL_AND_l,NEGATE_l
- };
-
-
- Value
- integral () const;
-
- friend bool CIAO_Events_Handlers_Export
- operator== (FilterType const& a, FilterType const& b);
-
- friend bool CIAO_Events_Handlers_Export
- operator!= (FilterType const& a, FilterType const& b);
-
- private:
- FilterType (Value v);
-
- Value v_;
- };
-
- bool CIAO_Events_Handlers_Export operator== (FilterType const &a, FilterType const &b);
-
- bool CIAO_Events_Handlers_Export operator!= (FilterType const &a, FilterType const &b);
-
-
- class CIAO_Events_Handlers_Export Filter : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // name
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& name () const;
- void name (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > name_;
-
- // type
- //
- public:
- ::CIAO::Config_Handlers::FilterType const& type () const;
- void type (::CIAO::Config_Handlers::FilterType const& );
-
- protected:
- ::std::auto_ptr< ::CIAO::Config_Handlers::FilterType > type_;
-
- // source
- //
- public:
- typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator source_iterator;
- typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator source_const_iterator;
- source_iterator begin_source ();
- source_iterator end_source ();
- source_const_iterator begin_source () const;
- source_const_iterator end_source () const;
- void add_source (::XMLSchema::string< ACE_TCHAR > const& );
- size_t count_source (void) const;
-
- protected:
- ::std::list< ::XMLSchema::string< ACE_TCHAR > > source_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- Filter (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::FilterType const& type__);
-
- Filter (::XSCRT::XML::Element< ACE_TCHAR > const&);
- Filter (Filter const& s);
-
- Filter&
- operator= (Filter const& s);
-
- private:
- char regulator__;
- };
-
-
- class CIAO_Events_Handlers_Export MCastSenderDescription : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // node
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& node () const;
- void node (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > node_;
-
- // type
- //
- public:
- ::CIAO::Config_Handlers::EventServiceType const& type () const;
- void type (::CIAO::Config_Handlers::EventServiceType const& );
-
- protected:
- ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > type_;
-
- // svc_cfg_file
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file () const;
- void svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > svc_cfg_file_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- MCastSenderDescription (::XMLSchema::string< ACE_TCHAR > const& node__,
- ::CIAO::Config_Handlers::EventServiceType const& type__,
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__);
-
- MCastSenderDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
- MCastSenderDescription (MCastSenderDescription const& s);
-
- MCastSenderDescription&
- operator= (MCastSenderDescription const& s);
-
- private:
- char regulator__;
- };
-
-
- class CIAO_Events_Handlers_Export MCastReceiverDescription : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // node
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& node () const;
- void node (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > node_;
-
- // type
- //
- public:
- ::CIAO::Config_Handlers::EventServiceType const& type () const;
- void type (::CIAO::Config_Handlers::EventServiceType const& );
-
- protected:
- ::std::auto_ptr< ::CIAO::Config_Handlers::EventServiceType > type_;
-
- // svc_cfg_file
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file () const;
- void svc_cfg_file (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > svc_cfg_file_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- MCastReceiverDescription (::XMLSchema::string< ACE_TCHAR > const& node__,
- ::CIAO::Config_Handlers::EventServiceType const& type__,
- ::XMLSchema::string< ACE_TCHAR > const& svc_cfg_file__);
-
- MCastReceiverDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
- MCastReceiverDescription (MCastReceiverDescription const& s);
-
- MCastReceiverDescription&
- operator= (MCastReceiverDescription const& s);
-
- private:
- char regulator__;
- };
-
-
- class CIAO_Events_Handlers_Export EC_to_MCastSender : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // destination
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& destination () const;
- void destination (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > destination_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- EC_to_MCastSender (::XMLSchema::string< ACE_TCHAR > const& destination__);
-
- EC_to_MCastSender (::XSCRT::XML::Element< ACE_TCHAR > const&);
- EC_to_MCastSender (EC_to_MCastSender const& s);
-
- EC_to_MCastSender&
- operator= (EC_to_MCastSender const& s);
-
- private:
- char regulator__;
- };
-
-
- class CIAO_Events_Handlers_Export MCastReceiver_to_EC : public ::XSCRT::Type
- {
- //@@ VC6 anathema
- typedef ::XSCRT::Type Base__;
-
- // source
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& source () const;
- void source (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > source_;
-
- // destination
- //
- public:
- ::XMLSchema::string< ACE_TCHAR > const& destination () const;
- void destination (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > destination_;
-
- // id
- //
- public:
- bool id_p () const;
- ::XMLSchema::ID< ACE_TCHAR > const& id () const;
- ::XMLSchema::ID< ACE_TCHAR >& id ();
- void id (::XMLSchema::ID< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::ID< ACE_TCHAR > > id_;
-
- public:
- MCastReceiver_to_EC (::XMLSchema::string< ACE_TCHAR > const& source__,
- ::XMLSchema::string< ACE_TCHAR > const& destination__);
-
- MCastReceiver_to_EC (::XSCRT::XML::Element< ACE_TCHAR > const&);
- MCastReceiver_to_EC (MCastReceiver_to_EC const& s);
-
- MCastReceiver_to_EC&
- operator= (MCastReceiver_to_EC const& s);
-
- private:
- char regulator__;
- };
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- CIAO_Events_Handlers_Export
- ::CIAO::Config_Handlers::CIAOEventsDef
- CIAOEvents (xercesc::DOMDocument const*);
- }
-}
-
-#include "XMLSchema/Traversal.hpp"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- namespace Traversal
- {
- typedef
- ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::EventServiceType >
- EventServiceType;
-
- struct CIAO_Events_Handlers_Export CIAOEventsDef : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::CIAOEventsDef >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- eventServiceConfiguration (Type&);
-
- virtual void
- eventServiceConfiguration (Type const&);
-
- virtual void
- eventServiceConfiguration_pre (Type&);
-
- virtual void
- eventServiceConfiguration_pre (Type const&);
-
- virtual void
- eventServiceConfiguration_next (Type&);
-
- virtual void
- eventServiceConfiguration_next (Type const&);
-
- virtual void
- eventServiceConfiguration_post (Type&);
-
- virtual void
- eventServiceConfiguration_post (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
-
- struct CIAO_Events_Handlers_Export EventServiceDescription : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::EventServiceDescription >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- name (Type&);
-
- virtual void
- name (Type const&);
-
- virtual void
- node (Type&);
-
- virtual void
- node (Type const&);
-
- virtual void
- type (Type&);
-
- virtual void
- type (Type const&);
-
- virtual void
- svc_cfg_file (Type&);
-
- virtual void
- svc_cfg_file (Type const&);
-
- virtual void
- filter (Type&);
-
- virtual void
- filter (Type const&);
-
- virtual void
- filter_pre (Type&);
-
- virtual void
- filter_pre (Type const&);
-
- virtual void
- filter_next (Type&);
-
- virtual void
- filter_next (Type const&);
-
- virtual void
- filter_post (Type&);
-
- virtual void
- filter_post (Type const&);
-
- virtual void
- filter_none (Type&);
-
- virtual void
- filter_none (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
-
- typedef
- ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::FilterType >
- FilterType;
-
- struct CIAO_Events_Handlers_Export Filter : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::Filter >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- name (Type&);
-
- virtual void
- name (Type const&);
-
- virtual void
- type (Type&);
-
- virtual void
- type (Type const&);
-
- virtual void
- source (Type&);
-
- virtual void
- source (Type const&);
-
- virtual void
- source_pre (Type&);
-
- virtual void
- source_pre (Type const&);
-
- virtual void
- source_next (Type&);
-
- virtual void
- source_next (Type const&);
-
- virtual void
- source_post (Type&);
-
- virtual void
- source_post (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
-
- struct CIAO_Events_Handlers_Export MCastSenderDescription : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::MCastSenderDescription >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- node (Type&);
-
- virtual void
- node (Type const&);
-
- virtual void
- type (Type&);
-
- virtual void
- type (Type const&);
-
- virtual void
- svc_cfg_file (Type&);
-
- virtual void
- svc_cfg_file (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
-
- struct CIAO_Events_Handlers_Export MCastReceiverDescription : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::MCastReceiverDescription >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- node (Type&);
-
- virtual void
- node (Type const&);
-
- virtual void
- type (Type&);
-
- virtual void
- type (Type const&);
-
- virtual void
- svc_cfg_file (Type&);
-
- virtual void
- svc_cfg_file (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
-
- struct CIAO_Events_Handlers_Export EC_to_MCastSender : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::EC_to_MCastSender >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- destination (Type&);
-
- virtual void
- destination (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
-
- struct CIAO_Events_Handlers_Export MCastReceiver_to_EC : ::XMLSchema::Traversal::Traverser< ::CIAO::Config_Handlers::MCastReceiver_to_EC >
- {
- virtual void
- traverse (Type&);
-
- virtual void
- traverse (Type const&);
-
- virtual void
- pre (Type&);
-
- virtual void
- pre (Type const&);
-
- virtual void
- source (Type&);
-
- virtual void
- source (Type const&);
-
- virtual void
- destination (Type&);
-
- virtual void
- destination (Type const&);
-
- virtual void
- id (Type&);
-
- virtual void
- id (Type const&);
-
- virtual void
- id_none (Type&);
-
- virtual void
- id_none (Type const&);
-
- virtual void
- post (Type&);
-
- virtual void
- post (Type const&);
- };
- }
- }
-
-}
-
-#include "XMLSchema/Writer.hpp"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- namespace Writer
- {
- struct EventServiceType : Traversal::EventServiceType,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- EventServiceType (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
- this->traverse (const_cast <Type const &> (o));
- }
-
- virtual void
- traverse (Type const&);
-
- protected:
- EventServiceType ();
- };
-
- struct CIAOEventsDef : Traversal::CIAOEventsDef,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::CIAOEventsDef Type;
- CIAOEventsDef (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- eventServiceConfiguration_pre (Type &o)
- {
-
- this->eventServiceConfiguration_pre (const_cast <Type const &> (o));
- }
-
-
- virtual void
- eventServiceConfiguration_pre (Type const&);
-
- virtual void
- eventServiceConfiguration_next (Type &o)
- {
-
- this->eventServiceConfiguration_next (const_cast <Type const &> (o));
- }
-
-
- virtual void
- eventServiceConfiguration_next (Type const&);
-
- virtual void
- eventServiceConfiguration_post (Type &o)
- {
-
- this->eventServiceConfiguration_post (const_cast <Type const &> (o));
- }
-
-
- virtual void
- eventServiceConfiguration_post (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- CIAOEventsDef ();
- };
-
- struct EventServiceDescription : Traversal::EventServiceDescription,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::EventServiceDescription Type;
- EventServiceDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- name (Type &o)
- {
-
- this->name (const_cast <Type const &> (o));
- }
-
-
- virtual void
- name (Type const&);
-
- virtual void
- node (Type &o)
- {
-
- this->node (const_cast <Type const &> (o));
- }
-
-
- virtual void
- node (Type const&);
-
- virtual void
- type (Type &o)
- {
-
- this->type (const_cast <Type const &> (o));
- }
-
-
- virtual void
- type (Type const&);
-
- virtual void
- svc_cfg_file (Type &o)
- {
-
- this->svc_cfg_file (const_cast <Type const &> (o));
- }
-
-
- virtual void
- svc_cfg_file (Type const&);
-
- virtual void
- filter_pre (Type &o)
- {
-
- this->filter_pre (const_cast <Type const &> (o));
- }
-
-
- virtual void
- filter_pre (Type const&);
-
- virtual void
- filter_next (Type &o)
- {
-
- this->filter_next (const_cast <Type const &> (o));
- }
-
-
- virtual void
- filter_next (Type const&);
-
- virtual void
- filter_post (Type &o)
- {
-
- this->filter_post (const_cast <Type const &> (o));
- }
-
-
- virtual void
- filter_post (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- EventServiceDescription ();
- };
-
- struct FilterType : Traversal::FilterType,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- FilterType (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
- this->traverse (const_cast <Type const &> (o));
- }
-
- virtual void
- traverse (Type const&);
-
- protected:
- FilterType ();
- };
-
- struct Filter : Traversal::Filter,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::Filter Type;
- Filter (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- name (Type &o)
- {
-
- this->name (const_cast <Type const &> (o));
- }
-
-
- virtual void
- name (Type const&);
-
- virtual void
- type (Type &o)
- {
-
- this->type (const_cast <Type const &> (o));
- }
-
-
- virtual void
- type (Type const&);
-
- virtual void
- source_pre (Type &o)
- {
-
- this->source_pre (const_cast <Type const &> (o));
- }
-
-
- virtual void
- source_pre (Type const&);
-
- virtual void
- source_next (Type &o)
- {
-
- this->source_next (const_cast <Type const &> (o));
- }
-
-
- virtual void
- source_next (Type const&);
-
- virtual void
- source_post (Type &o)
- {
-
- this->source_post (const_cast <Type const &> (o));
- }
-
-
- virtual void
- source_post (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- Filter ();
- };
-
- struct MCastSenderDescription : Traversal::MCastSenderDescription,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::MCastSenderDescription Type;
- MCastSenderDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- node (Type &o)
- {
-
- this->node (const_cast <Type const &> (o));
- }
-
-
- virtual void
- node (Type const&);
-
- virtual void
- type (Type &o)
- {
-
- this->type (const_cast <Type const &> (o));
- }
-
-
- virtual void
- type (Type const&);
-
- virtual void
- svc_cfg_file (Type &o)
- {
-
- this->svc_cfg_file (const_cast <Type const &> (o));
- }
-
-
- virtual void
- svc_cfg_file (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- MCastSenderDescription ();
- };
-
- struct MCastReceiverDescription : Traversal::MCastReceiverDescription,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::MCastReceiverDescription Type;
- MCastReceiverDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- node (Type &o)
- {
-
- this->node (const_cast <Type const &> (o));
- }
-
-
- virtual void
- node (Type const&);
-
- virtual void
- type (Type &o)
- {
-
- this->type (const_cast <Type const &> (o));
- }
-
-
- virtual void
- type (Type const&);
-
- virtual void
- svc_cfg_file (Type &o)
- {
-
- this->svc_cfg_file (const_cast <Type const &> (o));
- }
-
-
- virtual void
- svc_cfg_file (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- MCastReceiverDescription ();
- };
-
- struct EC_to_MCastSender : Traversal::EC_to_MCastSender,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::EC_to_MCastSender Type;
- EC_to_MCastSender (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- destination (Type &o)
- {
-
- this->destination (const_cast <Type const &> (o));
- }
-
-
- virtual void
- destination (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- EC_to_MCastSender ();
- };
-
- struct MCastReceiver_to_EC : Traversal::MCastReceiver_to_EC,
- virtual ::XSCRT::Writer< ACE_TCHAR >
- {
- typedef ::CIAO::Config_Handlers::MCastReceiver_to_EC Type;
- MCastReceiver_to_EC (::XSCRT::XML::Element< ACE_TCHAR >&);
-
- virtual void
- traverse (Type &o)
- {
-
- this->traverse (const_cast <Type const &> (o));
- }
-
-
- virtual void
- traverse (Type const&);
-
- virtual void
- source (Type &o)
- {
-
- this->source (const_cast <Type const &> (o));
- }
-
-
- virtual void
- source (Type const&);
-
- virtual void
- destination (Type &o)
- {
-
- this->destination (const_cast <Type const &> (o));
- }
-
-
- virtual void
- destination (Type const&);
-
- virtual void
- id (Type &o)
- {
-
- this->id (const_cast <Type const &> (o));
- }
-
-
- virtual void
- id (Type const&);
-
- protected:
- MCastReceiver_to_EC ();
- };
- }
- }
-
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- CIAO_Events_Handlers_Export
- void
- CIAOEvents (::CIAO::Config_Handlers::CIAOEventsDef const&, xercesc::DOMDocument*);
- }
-}
-
-#endif // CIAOEVENTS_HPP
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.cpp
deleted file mode 100644
index 6c265bea2a5..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.cpp
+++ /dev/null
@@ -1,155 +0,0 @@
-// $Id$
-#include "Utils/XML_Helper.h"
-#include "CIAOEvents_Handler.h"
-#include "CIAOEvents.hpp"
-#include "ciao/Deployment_EventsC.h"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- CIAOEvents_Handler::CIAOEvents_Handler (const ACE_TCHAR *file) :
- idl_esd_(0),
- esd_(0),
- retval_ (false)
- {
- XML_Helper helper;
-
- XERCES_CPP_NAMESPACE::DOMDocument *dom =
- helper.create_dom (file);
-
- if (!dom)
- throw CIAOEvents_Handler::NoESD ();
-
- this->esd_.reset (new CIAOEventsDef
- (CIAOEvents (dom)));
-
- if (!this->build_esd ())
- throw NoESD ();
- }
-
- CIAOEvents_Handler::CIAOEvents_Handler (CIAOEventsDef *esd):
- idl_esd_(0),
- esd_(esd),
- retval_(false)
- {
- if(!this->build_esd())
- throw NoESD ();
- }
-
-
- CIAOEvents_Handler::~CIAOEvents_Handler (void)
- {
- }
-
- bool
- CIAOEvents_Handler::build_esd ()
- {
- this->idl_esd_.reset ( new ::CIAO::DAnCE::EventServiceDeploymentDescriptions );
-
-
- this->idl_esd_->length (this->esd_->count_eventServiceConfiguration ());
- CORBA::ULong pos_i = 0;
- for (CIAOEventsDef::eventServiceConfiguration_const_iterator i = this->esd_->begin_eventServiceConfiguration ();
- i != this->esd_->end_eventServiceConfiguration ();
- i++)
- {
- CIAO::DAnCE::EventServiceDeploymentDescription a_esd;
-
- a_esd.name = CORBA::string_dup (i->name ().c_str ());
- a_esd.node = CORBA::string_dup (i->node ().c_str ());
-
- switch (i->type ().integral ())
- {
- case ::CIAO::Config_Handlers::EventServiceType::EC_l:
- a_esd.type = CIAO::DAnCE::EC;
- break;
- case ::CIAO::Config_Handlers::EventServiceType::NOTIFY_l:
- a_esd.type = CIAO::DAnCE::NOTIFY;
- break;
- case ::CIAO::Config_Handlers::EventServiceType::RTEC_l:
- a_esd.type = CIAO::DAnCE::RTEC;
- break;
- case ::CIAO::Config_Handlers::EventServiceType::RTNOTIFY_l:
- a_esd.type = CIAO::DAnCE::RTNOTIFY;
- break;
- default:
- ACE_ERROR ((LM_ERROR,
- "Invalid event service type\n"));
- return false;
- }
-
- a_esd.svc_cfg_file = CORBA::string_dup (i->svc_cfg_file ().c_str ());
-
-
- a_esd.filters.length (i->count_filter ());
- CORBA::ULong pos_j = 0;
- for (EventServiceDescription::filter_const_iterator j = i->begin_filter ();
- j != i->end_filter ();
- j++)
- {
- a_esd.filters[pos_j].name = CORBA::string_dup (j->name ().c_str ());
- switch (j->type ().integral ())
- {
- case ::CIAO::Config_Handlers::FilterType::CONJUNCTION_l:
- a_esd.filters[pos_j].type = CIAO::DAnCE::CONJUNCTION;
- break;
- case ::CIAO::Config_Handlers::FilterType::DISJUNCTION_l:
- a_esd.filters[pos_j].type = CIAO::DAnCE::DISJUNCTION;
- break;
- case ::CIAO::Config_Handlers::FilterType::LOGICAL_AND_l:
- a_esd.filters[pos_j].type = CIAO::DAnCE::LOGICAL_AND;
- break;
- case ::CIAO::Config_Handlers::FilterType::NEGATE_l:
- a_esd.filters[pos_j].type = CIAO::DAnCE::NEGATE;
- break;
- default:
- ACE_ERROR ((LM_ERROR,
- "Invalid filter type\n"));
- return false;
- }
-
- a_esd.filters[pos_j].sources.length (j->count_source ());
- CORBA::ULong pos_k = 0;
- for (Filter::source_const_iterator k = j->begin_source ();
- k != j->end_source ();
- k++)
- {
- a_esd.filters[pos_j].sources[pos_k] = CORBA::string_dup (k->c_str ());
- pos_k++;
-
- }
- pos_j++;
- }
-
- (*this->idl_esd_)[pos_i] = a_esd;
- pos_i++;
- }
- return true;
- }
-
-
- ::CIAO::DAnCE::EventServiceDeploymentDescriptions const *
- CIAOEvents_Handler::esd_idl () const
- throw (CIAOEvents_Handler::NoESD)
- {
- if(!this->idl_esd_.get())
- throw NoESD ();
-
- //else
- return this->idl_esd_.get();
- }
-
- ::CIAO::DAnCE::EventServiceDeploymentDescriptions *
- CIAOEvents_Handler::esd_idl ()
- throw (CIAOEvents_Handler::NoESD)
- {
- if(!this->idl_esd_.get())
- throw NoESD();
-
- //else
- return this->idl_esd_.release();
- }
- }
-}
-
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.h b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.h
deleted file mode 100644
index 7a27aa76a64..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAOEvents_Handler.h
+++ /dev/null
@@ -1,74 +0,0 @@
-//================================================
-/**
- * @file CIAOEvents_Handler.h
- *
- * $Id$
- *
- * @author Ming Xiong <mxiong@dre.vanderbilt.edu>
- */
-//================================================
-
-#ifndef CIAO_CONFIG_HANDLERS_CIAOEvents_HANDLER_H
-#define CIAO_CONFIG_HANDLERS_CIAOEvents_HANDLER_H
-
-#include /**/ "ace/pre.h"
-
-#include "Utils/XML_Helper.h"
-#include "ciao/Deployment_EventsC.h"
-#include "CIAO_Events_Handlers_Export.h"
-#include "ciao/DeploymentC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- class CIAOEventsDef;
-
- /*
- * @class CIAOEvents_Handler
- *
- * @brief Handler class for <CIAOEvents> types.
- *
- * This class defines handler methods to map values from
- * XSC objects, parsed from the descriptor files, to the
- * corresponding CORBA IDL type for the schema element.
- *
- */
- class CIAO_Events_Handlers_Export CIAOEvents_Handler
- {
-
- public:
- class NoESD {};
-
- CIAOEvents_Handler (const ACE_TCHAR *file);
-
- CIAOEvents_Handler(CIAOEventsDef *esd);
-
- ~CIAOEvents_Handler (void);
-
- CIAO::DAnCE::EventServiceDeploymentDescriptions const *esd_idl (void) const
- throw (CIAOEvents_Handler::NoESD);
-
- CIAO::DAnCE::EventServiceDeploymentDescriptions *esd_idl (void)
- throw (CIAOEvents_Handler::NoESD);
-
- private:
- bool build_esd ();
-
- auto_ptr <CIAO::DAnCE::EventServiceDeploymentDescriptions > idl_esd_;
-
- auto_ptr <CIAOEventsDef> esd_;
-
- bool retval_;
-
- };
- }
-}
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_CONFIG_HANDLERS_CIAOEvents_HANDLER_H*/
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers.mpc b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers.mpc
deleted file mode 100644
index 77e20b50566..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers.mpc
+++ /dev/null
@@ -1,28 +0,0 @@
-//$Id$
-
-project (CIAO_Events_Handlers) : acelib, ciao_deployment_stub, xerces, exceptions, ciao_xml_utils, ciao_events_dnc {
- sharedname = CIAO_Events_Handlers
- dynamicflags = CIAO_EVENTS_HANDLERS_BUILD_DLL
- macros += XML_USE_PTHREADS
- includes += $(CIAO_ROOT)/tools/Config_Handlers
-
- Source_Files {
- CIAOEvents.cpp
- CIAOEvents_Handler.cpp
- }
-
- Header_Files {
- }
-}
-
-project (CIAO_Events_Handlers_Tests) : ciao_component_dnc, xerces, exceptions, ciao_xml_utils, ciao_server_dnc {
- exename = test
- after += CIAO_Events_Handlers
- macros += XML_USE_PTHREADS
- includes += $(CIAO_ROOT)/tools/Config_Handlers
- libs += CIAO_Events_Handlers
-
- Source_Files {
- test.cpp
- }
-}
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers_Export.h b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers_Export.h
deleted file mode 100644
index efe95849905..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/CIAO_Events_Handlers_Export.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -n CIAO_Events_Handlers
-// ------------------------------
-#ifndef CIAO_EVENTS_HANDLERS_EXPORT_H
-#define CIAO_EVENTS_HANDLERS_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if !defined (CIAO_EVENTS_HANDLERS_HAS_DLL)
-# define CIAO_EVENTS_HANDLERS_HAS_DLL 1
-#endif /* ! CIAO_EVENTS_HANDLERS_HAS_DLL */
-
-#if defined (CIAO_EVENTS_HANDLERS_HAS_DLL) && (CIAO_EVENTS_HANDLERS_HAS_DLL == 1)
-# if defined (CIAO_EVENTS_HANDLERS_BUILD_DLL)
-# define CIAO_Events_Handlers_Export ACE_Proper_Export_Flag
-# define CIAO_EVENTS_HANDLERS_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CIAO_EVENTS_HANDLERS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CIAO_EVENTS_HANDLERS_BUILD_DLL */
-# define CIAO_Events_Handlers_Export ACE_Proper_Import_Flag
-# define CIAO_EVENTS_HANDLERS_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CIAO_EVENTS_HANDLERS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CIAO_EVENTS_HANDLERS_BUILD_DLL */
-#else /* CIAO_EVENTS_HANDLERS_HAS_DLL == 1 */
-# define CIAO_Events_Handlers_Export
-# define CIAO_EVENTS_HANDLERS_SINGLETON_DECLARATION(T)
-# define CIAO_EVENTS_HANDLERS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CIAO_EVENTS_HANDLERS_HAS_DLL == 1 */
-
-// Set CIAO_EVENTS_HANDLERS_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CIAO_EVENTS_HANDLERS_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CIAO_EVENTS_HANDLERS_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CIAO_EVENTS_HANDLERS_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CIAO_EVENTS_HANDLERS_NTRACE */
-
-#if (CIAO_EVENTS_HANDLERS_NTRACE == 1)
-# define CIAO_EVENTS_HANDLERS_TRACE(X)
-#else /* (CIAO_EVENTS_HANDLERS_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CIAO_EVENTS_HANDLERS_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CIAO_EVENTS_HANDLERS_NTRACE == 1) */
-
-#endif /* CIAO_EVENTS_HANDLERS_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/test.cpp b/TAO/CIAO/tools/Config_Handlers/CIAO_Events/test.cpp
deleted file mode 100644
index 63c024a0a89..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/CIAO_Events/test.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// $Id$
-
-#include <iostream>
-
-#include "CIAOEvents.hpp"
-#include "CIAOEvents_Handler.h"
-#include "ciao/Deployment_EventsC.h"
-
-#include "ace/Get_Opt.h"
-#include "tao/ORB.h"
-
-static const char *input_file = "test.ced";
-
-
-static int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'i':
- input_file = get_opts.opt_arg ();
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-i <input file> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command-line
- return 0;
-}
-
-using namespace CIAO::Config_Handlers;
-
-int main (int argc, char *argv[])
-{
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CIAOEvents_Handler event_handler (input_file);
- // Convert XSC to idl datatype
-
- std::cout << "Instance document import succeeded. Dumping contents to file\n";
-
- std::cout << "Test completed!";
-
- return 0;
-
-}
diff --git a/TAO/CIAO/tools/Config_Handlers/CPD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/CPD_Handler.cpp
index 2d480e2b360..ccf604c5465 100644
--- a/TAO/CIAO/tools/Config_Handlers/CPD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/CPD_Handler.cpp
@@ -2,8 +2,6 @@
#include "CPD_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
-
namespace CIAO
{
namespace Config_Handlers
@@ -13,7 +11,6 @@ namespace CIAO
const ComponentPortDescription& desc,
Deployment::ComponentPortDescription& toconfig)
{
- CIAO_TRACE("CPD_Handler::component_port_description");
toconfig.name =
desc.name ().c_str ();
@@ -26,89 +23,80 @@ namespace CIAO
toconfig.supportedType[0] =
desc.supportedType ().c_str ();
}
-
+
switch (desc.kind ().integral ())
{
case CCMComponentPortKind::Facet_l:
toconfig.kind = Deployment::Facet;
break;
-
+
case CCMComponentPortKind::SimplexReceptacle_l:
toconfig.kind = Deployment::SimplexReceptacle;
break;
-
+
case CCMComponentPortKind::MultiplexReceptacle_l:
toconfig.kind = Deployment::MultiplexReceptacle;
break;
-
+
case CCMComponentPortKind::EventEmitter_l:
toconfig.kind = Deployment::EventEmitter;
break;
-
+
case CCMComponentPortKind::EventPublisher_l:
toconfig.kind = Deployment::EventPublisher;
break;
-
+
case CCMComponentPortKind::EventConsumer_l:
- toconfig.kind = Deployment::EventConsumer;
+ toconfig.kind = Deployment::EventConsumer;
break;
-
- case CCMComponentPortKind::rtecEventPublisher_l:
- toconfig.kind = Deployment::rtecEventPublisher;
- break;
-
- case CCMComponentPortKind::rtecEventConsumer_l:
- toconfig.kind = Deployment::rtecEventConsumer;
- break;
-
+
default:
ACE_ERROR ((LM_ERROR, "Invalid port type in connection %s\n",
desc.name ().c_str ()));
throw 1;
}
-
+
/* @@BUG: We need to consider how to handle booleans. */
toconfig.provider = desc.provider () == "true";
toconfig.exclusiveProvider = desc.exclusiveProvider () == "true";
toconfig.exclusiveUser = desc.exclusiveUser () == "true";
toconfig.optional = desc.optional () == "true";
}
-
+
ComponentPortDescription
CPD_Handler::component_port_description (
const Deployment::ComponentPortDescription& src)
{
- CIAO_TRACE("CPD_Handler::component_port_description - reverse");
::XMLSchema::string< char > name ((src.name));
::XMLSchema::string< char > stype ((src.specificType));
-
- ::XMLSchema::string< char > tval ("true");
- ::XMLSchema::string< char > fval ("false");
+
+ ::XMLSchema::string< char > tval ("true");
+ ::XMLSchema::string< char > fval ("false");
::XMLSchema::string< char > provider ("");
::XMLSchema::string< char > exclusiveProvider ("");
::XMLSchema::string< char > exclusiveUser ("");
::XMLSchema::string< char > optional ("");
-
+
if (src.provider)
provider = tval;
else
provider = fval;
-
+
if (src.exclusiveUser)
exclusiveUser = tval;
else
provider = fval;
-
+
if (src.exclusiveProvider)
exclusiveProvider = tval;
else
provider = fval;
-
+
if (src.optional)
optional = tval;
else
provider = fval;
-
+
ComponentPortDescription cpd (
name,
stype,
@@ -124,39 +112,39 @@ namespace CIAO
case ::Deployment::Facet:
cpd.kind (CCMComponentPortKind::Facet);
break;
-
+
case ::Deployment::SimplexReceptacle:
cpd.kind (CCMComponentPortKind::SimplexReceptacle);
break;
-
+
case ::Deployment::MultiplexReceptacle:
cpd.kind (CCMComponentPortKind::MultiplexReceptacle);
break;
-
+
case ::Deployment::EventEmitter:
cpd.kind (CCMComponentPortKind::EventEmitter);
break;
-
+
case ::Deployment::EventPublisher:
cpd.kind (CCMComponentPortKind::EventPublisher);
break;
-
+
case ::Deployment::EventConsumer:
cpd.kind (CCMComponentPortKind::EventConsumer);
break;
-
+
default:
ACE_ERROR ((LM_ERROR, "Invalid port kind in connection %s\n",
name.c_str ()));
}
-
+
if (src.supportedType.length () > 0)
cpd.supportedType (
- XMLSchema::string< char > ((src.supportedType[0])));
+ XMLSchema::string< char > ((src.supportedType[0])));
return cpd;
}
-
+
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/CRDD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/CRDD_Handler.cpp
index b9a8b41de94..da4f6584eb0 100644
--- a/TAO/CIAO/tools/Config_Handlers/CRDD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/CRDD_Handler.cpp
@@ -4,7 +4,7 @@
#include "Any_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -25,7 +25,6 @@ namespace CIAO
Deployment::ConnectionResourceDeploymentDescription& toconfig,
ConnectionResourceDeploymentDescription& desc)
{
- CIAO_TRACE("CRDD_Handler::get_ConnectionResourceDeploymentDescription");
toconfig.targetName = CORBA::string_dup (desc.targetName ().c_str ());
toconfig.requirementName =
CORBA::string_dup (desc.requirementName ().c_str ());
@@ -40,7 +39,6 @@ namespace CIAO
CRDD_Handler::connection_resource_depl_desc (
const ::Deployment::ConnectionResourceDeploymentDescription& src)
{
- CIAO_TRACE("CRDD_Handler::get_ConnectionResourceDeploymentDescription- reverse");
XMLSchema::string< char > tname ((src.targetName));
XMLSchema::string< char > reqname ((src.requirementName));
XMLSchema::string< char > resname ((src.resourceName));
diff --git a/TAO/CIAO/tools/Config_Handlers/ComponentPropertyDescription_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/ComponentPropertyDescription_Handler.cpp
index 751464970aa..6c56f10a44e 100644
--- a/TAO/CIAO/tools/Config_Handlers/ComponentPropertyDescription_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/ComponentPropertyDescription_Handler.cpp
@@ -3,7 +3,7 @@
#include "ComponentPropertyDescription_Handler.h"
#include "DataType_Handler.h"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -13,7 +13,6 @@ namespace CIAO
const ComponentPropertyDescription& desc,
::Deployment::ComponentPropertyDescription& toconfig)
{
- CIAO_TRACE("ComponentPropertyDescription_Handler::component_property_description");
toconfig.name = CORBA::string_dup (desc.name ().c_str ());
// Delegate the DataType to the
@@ -30,7 +29,6 @@ namespace CIAO
ComponentPropertyDescription_Handler::component_property_description (
const ::Deployment::ComponentPropertyDescription &src)
{
- CIAO_TRACE("ComponentPropertyDescription_Handler::component_property_description - reverse");
XMLSchema::string< char > name ((src.name));
DataType dt (DataType_Handler::data_type (src.type));
ComponentPropertyDescription cpd (name,dt);
diff --git a/TAO/CIAO/tools/Config_Handlers/Config_Handlers.mpc b/TAO/CIAO/tools/Config_Handlers/Config_Handlers.mpc
index 4c65199b147..5131bbfdf8a 100644
--- a/TAO/CIAO/tools/Config_Handlers/Config_Handlers.mpc
+++ b/TAO/CIAO/tools/Config_Handlers/Config_Handlers.mpc
@@ -1,11 +1,6 @@
//$Id$
project (XSC_XML_Handlers) : acelib, xerces {
-
- verbatim(gnuace, macros) {
- override no_hidden_visibility = 1
- }
-
sharedname += XSC_XML_Handlers
dynamicflags = XSC_XML_HANDLERS_BUILD_DLL
macros += XML_USE_PTHREADS
@@ -30,19 +25,14 @@ project (XSC_XML_Handlers) : acelib, xerces {
}
}
-project (XSC_Config_Handlers) : ciao_deployment_stub, xerces, dynamicany, typecodefactory {
-
- verbatim(gnuace, macros) {
- override no_hidden_visibility = 1
- }
-
- after += CIAO_Events_Handlers RT_CCM_Config_Handlers XSC_XML_Handlers XSC_DynAny_Handler
+project (XSC_Config_Handlers) : ciao_deployment_stub, xerces, dynamicany {
+ after += RT_CCM_Config_Handlers XSC_XML_Handlers XSC_DynAny_Handler
sharedname = XSC_Config_Handlers
dynamicflags = CONFIG_HANDLERS_BUILD_DLL
macros += XML_USE_PTHREADS
requires += exceptions
includes += $(CIAO_ROOT)/tools/Config_Handlers
- libs += CIAO_XML_Utils CIAO_Events_Handlers RT_CCM_Config_Handlers XSC_XML_Handlers XSC_DynAny_Handler
+ libs += CIAO_XML_Utils RT_CCM_Config_Handlers XSC_XML_Handlers XSC_DynAny_Handler
Source_Files {
DP_Handler.cpp
@@ -81,7 +71,6 @@ project (XSC_Config_Handlers) : ciao_deployment_stub, xerces, dynamicany, typeco
STD_PCD_Handler.cpp
PCD_Handler.cpp
IRDD_Handler.cpp
- DD_Handler.cpp
}
Header_Files {
diff --git a/TAO/CIAO/tools/Config_Handlers/DD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/DD_Handler.cpp
deleted file mode 100644
index 4e212e62922..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/DD_Handler.cpp
+++ /dev/null
@@ -1,231 +0,0 @@
-// $Id$
-#include "Utils/XML_Helper.h"
-#include "DD_Handler.h"
-#include "Any_Handler.h"
-#include "Deployment.hpp"
-#include "ciao/Deployment_BaseC.h"
-#include "CIAO_common.h"
-
-using namespace std;
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- DD_Handler::DD_Handler (const ACE_TCHAR *file) :
- idl_domain_(0),
- domain_ (0),
- retval_ (false)
- {
- CIAO_TRACE("DP_PCD_Handler::constructor");
- XML_Helper helper;
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "inside DD_Handler"));
- }
-
-
- XERCES_CPP_NAMESPACE::DOMDocument *dom =
- helper.create_dom (file);
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "after create dom"));
- }
-
- if (!dom)
- throw DD_Handler::NoDomain ();
-
- Domain *dm =
- new Domain (domain (dom));
-
-// Domain d = domain (dom);
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "dom"));
- }
-
-
- this->domain_.reset (dm);
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "after reset"));
- }
-
- if (!this->build_domain ())
- throw NoDomain ();
- }
-
- DD_Handler::DD_Handler (Domain *dmn):
- idl_domain_(0),
- domain_(dmn),
- retval_(false)
- {
- CIAO_TRACE("DP_PCD_Handler::constructor - Domain");
- if(!this->build_domain ())
- throw NoDomain ();
- }
-
- DD_Handler::DD_Handler (::Deployment::Domain *dmn):
- idl_domain_(dmn),
- domain_(0),
- retval_(false)
- {
- if(!this->build_xsc())
- throw NoDomain ();
- }
-
- DD_Handler::~DD_Handler (void)
- {
- }
-
- bool
- DD_Handler::build_domain ()
- {
- CIAO_TRACE("DP_PCD_Handler::build_domain");
- this->idl_domain_.reset ( new ::Deployment::Domain );
-
- // Read in the name
- this->idl_domain_->label =
- CORBA::string_dup (domain_->label ().c_str ());
-
- this->idl_domain_->UUID =
- CORBA::string_dup (domain_->UUID ().c_str ());
-
- CORBA::ULong len = domain_->count_node ();
- this->idl_domain_->node.length (len);
-
- if (CIAO::debug_level () > 9)
- {
- ACE_DEBUG ((LM_DEBUG , "The node length is [%d]\n",len));
- }
-
- //Resource _resource;
- int i =0;
- for (Domain::node_const_iterator iter = domain_->begin_node ();
- iter != domain_->end_node ();
- ++iter,++i
- )
- {
- // Node* thisNode = (Node*)iter;
- this->idl_domain_->node[i].name =
- CORBA::string_dup (iter->name ().c_str ());
- this->idl_domain_->node[i].label =
- CORBA::string_dup (iter->label ().c_str ());
-
- // length is hard-coded for now ...
- // here iterate over the resources ...
- CORBA::ULong res_len = iter->count_resource ();
- this->idl_domain_->node[i].resource.length (res_len);
-
- int res_id=0;
- // FOR EACH RESOURCE ....
- for (Node::resource_const_iterator res_iter = iter->begin_resource ();
- res_iter != iter->end_resource ();
- res_iter++, res_id++)
- {
-
- this->idl_domain_->node[i].resource[res_id].name =
- CORBA::string_dup (res_iter->name ().c_str ());
-
- CORBA::ULong resource_type_len = res_iter->count_resourceType ();
- this->idl_domain_->node[i].resource[res_id].resourceType.length (resource_type_len);
-
- int res_type_id =0;
-
- // FOR EACH RESOURCE TYPE
- for (Resource::resourceType_const_iterator res_type_iter =
- res_iter->begin_resourceType ();
- res_type_iter != res_iter->end_resourceType ();
- res_type_iter++, res_type_id++)
- {
- this->idl_domain_->node[i].resource[res_id].resourceType[res_type_id] =
- CORBA::string_dup (res_type_iter->c_str ());
- }
-
- CORBA::ULong property_len = res_iter->count_property ();
- this->idl_domain_->node[i].resource[res_id].property.length (property_len);
-
- int property_id =0;
-
- //FOR EACH PROPERTY
- for (Resource::property_const_iterator property_iter =
- res_iter->begin_property ();
- property_iter != res_iter->end_property ();
- property_iter++, property_id++)
- {
- this->idl_domain_->node[i].resource[res_id].property[property_id ].name =
- CORBA::string_dup (property_iter->name ().c_str ());
-
-
- this->idl_domain_->node[i].resource[res_id].property[property_id].kind =
- ::Deployment::Quantity;
-
- Any the_any = property_iter->value ();
- CORBA::Any a_corba_any;
- Any_Handler::extract_into_any (the_any , a_corba_any);
- this->idl_domain_->node[i].resource[res_id].property[property_id].value
- = a_corba_any;
- }
- }
- }
-
- return true;
-
- }
-
- bool
- DD_Handler::build_xsc ()
- {
- return true;
- }
-
- ::Deployment::Domain const *
- DD_Handler::domain_idl () const
- throw (DD_Handler::NoDomain)
- {
- if(!this->idl_domain_.get())
- throw NoDomain ();
-
- //else
- return this->idl_domain_.get();
- }
-
- ::Deployment::Domain *
- DD_Handler::domain_idl ()
- throw (DD_Handler::NoDomain)
- {
- if(!this->idl_domain_.get())
- throw NoDomain();
-
- //else
- return this->idl_domain_.release();
- }
-
- Domain const *
- DD_Handler::domain_xsc () const
- throw (DD_Handler::NoDomain)
- {
- if(!this->domain_.get())
- throw NoDomain ();
-
- //else
- return this->domain_.get();
- }
-
- Domain *
- DD_Handler::domain_xsc ()
- throw (DD_Handler::NoDomain)
- {
- if(!this->domain_.get())
- throw NoDomain ();
-
- //else
- return this->domain_.release();
- }
- }
-}
-
diff --git a/TAO/CIAO/tools/Config_Handlers/DD_Handler.h b/TAO/CIAO/tools/Config_Handlers/DD_Handler.h
deleted file mode 100644
index dcf1e69b073..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/DD_Handler.h
+++ /dev/null
@@ -1,139 +0,0 @@
-// $Id$
-//======================================
-/**
- * @file DD_Handler.h
- *
- * @brief Contains the Domain Descriptior
- * Handler
- *
- * @author Nilabja Roy <nilabjar@dre.vanderbilt.edu>
- *
- */
-//======================================
-
-#ifndef CIAO_CONFIG_HANDLERS_DD_HANDLER_H
-#define CIAO_CONFIG_HANDLERS_DD_HANDLER_H
-#include /**/ "ace/pre.h"
-
-#include "Config_Handlers_Export.h"
-#include "ace/Auto_Ptr.h"
-// #include "Utils/XML_Helper.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-namespace Deployment
-{
- struct Domain;
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- class Domain;
-
- /*
- * @class DD_Handler
- *
- * @brief Handler class for <Domain>
- */
-
- class Config_Handlers_Export DD_Handler
- {
- public:
- class NoDomain {};
-
- /**
- * @operation constructor
- *
- * @param The file to be read
- */
- DD_Handler (const ACE_TCHAR *file);
-
- /**
- * @operation constructor
- *
- * @param dmn The Domain structure
- */
- DD_Handler(Domain *dmn);
-
- /**
- * @operation constructor
- *
- * @param dmn The Deployment::Domain structure
- */
- DD_Handler(::Deployment::Domain *dmn);
-
- /**
- * @operation destructor
- *
- */
- ~DD_Handler (void);
-
- /**
- * @operation domain_idl
- *
- * @brief Returns the const IDL domain
- * @return Domain* the IDL domain pointer
- */
- ::Deployment::Domain const *domain_idl (void) const
- throw (NoDomain);
-
- /**
- * @operation domain_idl
- *
- * @brief Returns the IDL domain
- * @return Domain* the IDL domain pointer
- */
- ::Deployment::Domain *domain_idl (void)
- throw (NoDomain);
-
- /**
- * @operation domain_xsc
- *
- * @brief Returns the const XSC domain
- * @return Domain* the XSC domain pointer
- */
- Domain const *domain_xsc (void) const
- throw (NoDomain);
-
- /**
- * @operation domain_xsc
- *
- * @brief Returns the XSC domain
- * @return Domain* the XSC domain pointer
- */
- Domain *domain_xsc (void)
- throw (NoDomain);
-
- private:
- /**
- * @operation build_domain
- *
- * @brief builds the domain structure
- */
- bool build_domain ();
-
- /**
- * @operation build_xsc
- *
- * @brief builds the XSC data structure
- */
- bool build_xsc ();
-
- /// The Deployment Domain structure
- auto_ptr < ::Deployment::Domain > idl_domain_;
-
- /// The XSC Domain structure
- auto_ptr <Domain> domain_;
-
- /// The return value used
- bool retval_;
- };
- }
-}
-
-#include /**/ "ace/post.h"
-#endif /* DD_HANDLER_H */
diff --git a/TAO/CIAO/tools/Config_Handlers/DP_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/DP_Handler.cpp
index 112cf72b27d..00aacd892c9 100644
--- a/TAO/CIAO/tools/Config_Handlers/DP_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/DP_Handler.cpp
@@ -16,8 +16,6 @@
#include "cdp.hpp"
#include "RT-CCM/SRD_Handler.h"
#include "RT-CCM/CIAOServerResources.hpp"
-#include "CIAO_Events/CIAOEvents_Handler.h"
-#include "CIAO_Events/CIAOEvents.hpp"
#include "DP_PCD_Handler.h"
@@ -95,8 +93,6 @@ namespace CIAO
bool
DP_Handler::resolve_plan (DeploymentPlan &xsc_dp)
{
- CIAO_TRACE ("DP_Handler::resolve_plan");
-
::Deployment::DeploymentPlan *tmp =
new Deployment::DeploymentPlan;
@@ -139,17 +135,19 @@ namespace CIAO
this->idl_dp_->infoProperty.length (len + 1);
-
-
- if (pstart->name () == "CIAOServerResources")
+ if (pstart->name () != "CIAOServerResources")
+ Property_Handler::get_property (*pstart,
+ this->idl_dp_->infoProperty [len]);
+ else
{
/*
* Hook for RT-CCM
*/
- ACE_DEBUG ((LM_DEBUG,
- "Importing ServerResources...\n"));
+ ACE_DEBUG ((LM_DEBUG,
+ "Importing ServerResources...\n"));
+
// Parse the SR document
SRD_Handler srd_handler (pstart->value ().value ().begin_string ()->c_str ());
@@ -157,30 +155,7 @@ namespace CIAO
this->idl_dp_->infoProperty [len].name = pstart->name ().c_str ();
this->idl_dp_->infoProperty [len].value <<= *(srd_handler.srd_idl ());
}
- else if (pstart->name () == "CIAOEvents")
- {
- /*
- * Hook for RT-CCM
- */
-
- ACE_DEBUG ((LM_DEBUG,
- "Importing CIAOEvents...\n"));
-
- // Parse the SR document
- CIAOEvents_Handler event_handler (pstart->value ().value ().begin_string ()->c_str ());
-
- // Populate the property
- this->idl_dp_->infoProperty [len].name = pstart->name ().c_str ();
- this->idl_dp_->infoProperty [len].value <<= *(event_handler.esd_idl ());
- }
- else
- {
- Property_Handler::get_property (*pstart,
- this->idl_dp_->infoProperty [len]);
- }
-
}
-
// Read in the realizes, if present
if (xsc_dp.realizes_p ())
{
@@ -206,8 +181,6 @@ namespace CIAO
bool
DP_Handler::build_xsc (const ::Deployment::DeploymentPlan &plan)
{
- CIAO_TRACE ("DP_Handler::build_xsc");
-
size_t len; //Used for checking the length of struct data members
// Read in the label, if present, since minoccurs = 0
diff --git a/TAO/CIAO/tools/Config_Handlers/DP_PCD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/DP_PCD_Handler.cpp
index 22512ec15a5..e468ec00357 100644
--- a/TAO/CIAO/tools/Config_Handlers/DP_PCD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/DP_PCD_Handler.cpp
@@ -9,7 +9,7 @@
#include "Basic_Deployment_Data.hpp"
#include "cdp.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -19,7 +19,6 @@ namespace CIAO
const DeploymentPlan &src,
Deployment::PlanConnectionDescriptions& dest)
{
- CIAO_TRACE("DP_PCD_Handler::plan_connection_descrs");
DeploymentPlan::connection_const_iterator cci_e =
src.end_connection ();
@@ -39,9 +38,8 @@ namespace CIAO
DP_PCD_Handler::plan_connection_descr (
const Deployment::PlanConnectionDescription &src)
{
- CIAO_TRACE("DP_PCD_Handler::plan_connection_descr");
- PlanConnectionDescription pcd = PCD_Handler::get_PlanConnectionDescription(src);
- return pcd;
+ PlanConnectionDescription pcd = PCD_Handler::get_PlanConnectionDescription(src);
+ return pcd;
}
void
@@ -49,7 +47,6 @@ namespace CIAO
const PlanConnectionDescription &src,
Deployment::PlanConnectionDescription &dest)
{
- CIAO_TRACE("DP_PCD_Handler::plan_connection_descr - reverse");
dest.name =
src.name ().c_str ();
diff --git a/TAO/CIAO/tools/Config_Handlers/DataType_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/DataType_Handler.cpp
index 52360fc3b6f..c71f8701d6f 100644
--- a/TAO/CIAO/tools/Config_Handlers/DataType_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/DataType_Handler.cpp
@@ -2,7 +2,7 @@
#include "DataType_Handler.h"
#include "tao/AnyTypeCode/TypeCode.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO{
namespace Config_Handlers{
@@ -21,158 +21,158 @@ namespace CIAO{
CORBA::TypeCode_ptr& type,
const DataType& desc)
{
- CIAO_TRACE("DataType_Handler::data_type");
- TCKind kind (desc.kind ());
+
+ TCKind kind (desc.kind ());
- switch (kind.integral ())
- {
- case TCKind::tk_null_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
- break;
-
- case TCKind::tk_short_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_short);
- break;
-
- case TCKind::tk_long_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_long);
- break;
-
- case TCKind::tk_ushort_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_ushort);
- break;
-
- case TCKind::tk_ulong_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_ulong);
- break;
-
- case TCKind::tk_float_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_float);
- break;
-
- case TCKind::tk_double_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_double);
- break;
-
- case TCKind::tk_boolean_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_boolean);
- break;
-
- case TCKind::tk_char_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_char);
- break;
-
- case TCKind::tk_octet_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_octet);
- break;
-
- case TCKind::tk_string_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_string);
- break;
-
- case TCKind::tk_longlong_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_longlong);
- break;
-
- case TCKind::tk_ulonglong_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_ulonglong);
- break;
-
- case TCKind::tk_longdouble_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_longdouble);
- break;
-
- case TCKind::tk_wchar_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_wchar);
- break;
-
- case TCKind::tk_wstring_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_wstring);
- break;
-
- case TCKind::tk_any_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_any);
- break;
-
- case TCKind::tk_TypeCode_l:
- type = CORBA::TypeCode::_duplicate (CORBA::_tc_TypeCode);
- break;
-
- default:
- ACE_ERROR ((LM_ERROR, "Invalid typecode in any\n"));
- throw 1;
- }
+ switch (kind.integral ())
+ {
+ case TCKind::tk_null_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
+ break;
+
+ case TCKind::tk_short_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_short);
+ break;
+
+ case TCKind::tk_long_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_long);
+ break;
+
+ case TCKind::tk_ushort_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_ushort);
+ break;
+
+ case TCKind::tk_ulong_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_ulong);
+ break;
+
+ case TCKind::tk_float_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_float);
+ break;
+
+ case TCKind::tk_double_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_double);
+ break;
+
+ case TCKind::tk_boolean_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_boolean);
+ break;
+
+ case TCKind::tk_char_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_char);
+ break;
+
+ case TCKind::tk_octet_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_octet);
+ break;
+
+ case TCKind::tk_string_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_string);
+ break;
+
+ case TCKind::tk_longlong_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_longlong);
+ break;
+
+ case TCKind::tk_ulonglong_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_ulonglong);
+ break;
+
+ case TCKind::tk_longdouble_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_longdouble);
+ break;
+
+ case TCKind::tk_wchar_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_wchar);
+ break;
+
+ case TCKind::tk_wstring_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_wstring);
+ break;
+
+ case TCKind::tk_any_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_any);
+ break;
+
+ case TCKind::tk_TypeCode_l:
+ type = CORBA::TypeCode::_duplicate (CORBA::_tc_TypeCode);
+ break;
+
+ default:
+ ACE_ERROR ((LM_ERROR, "Invalid typecode in any\n"));
+ throw 1;
+ }
- // This case used to be supported...is it not in the schema?
- // case TCKind::tk_Object)
- // type = CORBA::TypeCode::_duplicate (CORBA::_tc_Object);*/
+ // This case used to be supported...is it not in the schema?
+ // case TCKind::tk_Object)
+ // type = CORBA::TypeCode::_duplicate (CORBA::_tc_Object);*/
}
DataType
DataType_Handler::data_type (
- const CORBA::TypeCode_ptr& src)
+ const CORBA::TypeCode_ptr& src)
{
- CIAO_TRACE("DataType_Handler::data_type - reverse");
- switch (src->kind ())
- {
- case ::CORBA::tk_null:
- return DataType ( (TCKind::tk_null));
- break;
- case CORBA::tk_short:
- return DataType ( (TCKind::tk_short));
- break;
- case CORBA::tk_long:
- return DataType ( (TCKind::tk_long));
- break;
- case CORBA::tk_ushort:
- return DataType ( (TCKind::tk_ushort));
- break;
- case CORBA::tk_ulong:
- return DataType ( (TCKind::tk_ulong));
- break;
- case CORBA::tk_float:
- return DataType ( (TCKind::tk_float));
- break;
- case CORBA::tk_double:
- return DataType ( (TCKind::tk_double));
- break;
- case CORBA::tk_boolean:
- return DataType ( (TCKind::tk_boolean));
- break;
- case CORBA::tk_char:
- return DataType ( (TCKind::tk_char));
- break;
- case CORBA::tk_octet:
- return DataType ( (TCKind::tk_octet));
- break;
- case CORBA::tk_string:
- return DataType ( (TCKind::tk_string));
- break;
- case CORBA::tk_longlong:
- return DataType ( (TCKind::tk_longlong));
- break;
- case CORBA::tk_ulonglong:
- return DataType ( (TCKind::tk_ulonglong));
- break;
- case CORBA::tk_longdouble:
- return DataType ( (TCKind::tk_longdouble));
- break;
- case CORBA::tk_wchar:
- return DataType ( (TCKind::tk_wchar));
- break;
- case CORBA::tk_wstring:
- return DataType ( (TCKind::tk_wstring));
- break;
- case CORBA::tk_any:
- return DataType ( (TCKind::tk_any));
- break;
- case CORBA::tk_TypeCode:
- return DataType ( (TCKind::tk_TypeCode));
- default:
- ACE_ERROR ((LM_ERROR, "Invalid typecode\n"));
- throw 1;
- }
+
+ switch (src->kind ())
+ {
+ case ::CORBA::tk_null:
+ return DataType ( (TCKind::tk_null));
+ break;
+ case CORBA::tk_short:
+ return DataType ( (TCKind::tk_short));
+ break;
+ case CORBA::tk_long:
+ return DataType ( (TCKind::tk_long));
+ break;
+ case CORBA::tk_ushort:
+ return DataType ( (TCKind::tk_ushort));
+ break;
+ case CORBA::tk_ulong:
+ return DataType ( (TCKind::tk_ulong));
+ break;
+ case CORBA::tk_float:
+ return DataType ( (TCKind::tk_float));
+ break;
+ case CORBA::tk_double:
+ return DataType ( (TCKind::tk_double));
+ break;
+ case CORBA::tk_boolean:
+ return DataType ( (TCKind::tk_boolean));
+ break;
+ case CORBA::tk_char:
+ return DataType ( (TCKind::tk_char));
+ break;
+ case CORBA::tk_octet:
+ return DataType ( (TCKind::tk_octet));
+ break;
+ case CORBA::tk_string:
+ return DataType ( (TCKind::tk_string));
+ break;
+ case CORBA::tk_longlong:
+ return DataType ( (TCKind::tk_longlong));
+ break;
+ case CORBA::tk_ulonglong:
+ return DataType ( (TCKind::tk_ulonglong));
+ break;
+ case CORBA::tk_longdouble:
+ return DataType ( (TCKind::tk_longdouble));
+ break;
+ case CORBA::tk_wchar:
+ return DataType ( (TCKind::tk_wchar));
+ break;
+ case CORBA::tk_wstring:
+ return DataType ( (TCKind::tk_wstring));
+ break;
+ case CORBA::tk_any:
+ return DataType ( (TCKind::tk_any));
+ break;
+ case CORBA::tk_TypeCode:
+ return DataType ( (TCKind::tk_TypeCode));
+ default:
+ ACE_ERROR ((LM_ERROR, "Invalid typecode\n"));
+ throw 1;
+ }
}
diff --git a/TAO/CIAO/tools/Config_Handlers/DnC_Dump.cpp b/TAO/CIAO/tools/Config_Handlers/DnC_Dump.cpp
index 67cb9dbde72..52ecb06e220 100644
--- a/TAO/CIAO/tools/Config_Handlers/DnC_Dump.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/DnC_Dump.cpp
@@ -209,7 +209,6 @@ namespace Deployment
case EventEmitter: ACE_DEBUG ((LM_DEBUG, "EventEmitter\n")); break;
case EventPublisher: ACE_DEBUG ((LM_DEBUG, "EventPublisher\n")); break;
case EventConsumer: ACE_DEBUG ((LM_DEBUG, "EventConsumer\n")); break;
- default: ACE_DEBUG ((LM_DEBUG, "Unknown port kind\n")); break;
}
}
@@ -383,7 +382,6 @@ namespace Deployment
case EventEmitter: ACE_DEBUG ((LM_DEBUG, "EventEmitter\n")); break;
case EventPublisher: ACE_DEBUG ((LM_DEBUG, "EventPublisher\n")); break;
case EventConsumer: ACE_DEBUG ((LM_DEBUG, "EventConsumer\n")); break;
- default: ACE_DEBUG ((LM_DEBUG, "Unknown port kind\n")); break;
}
#if (_MSC_VER > 1200)
dump_ref<Deployment::DeploymentPlan> ("instanceRef", pspe.instanceRef,
diff --git a/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.h b/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.h
index 4d4c7427797..80ce883fb87 100644
--- a/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.h
+++ b/TAO/CIAO/tools/Config_Handlers/DnC_Dump_T.h
@@ -23,16 +23,16 @@ namespace Deployment
namespace DnC_Dump_T
{
template <typename SEQUENCE>
- void dump_sequence (const char* caption, const SEQUENCE &seq);
+ static void dump_sequence (const char* caption, const SEQUENCE &seq);
template <typename ROOT, typename SEQUENCE,
typename DATA_TYPE, typename CLASS>
- void dump_ref_seq (const char* caption, SEQUENCE& seq,
+ static void dump_ref_seq (const char* caption, SEQUENCE& seq,
const char* root, DATA_TYPE CLASS::*data);
template <typename ROOT, typename REFERENCE, typename DATA_TYPE,
typename CLASS>
- void dump_ref (const char* caption, REFERENCE& ref,
+ static void dump_ref (const char* caption, REFERENCE& ref,
const char* root, DATA_TYPE CLASS::*data);
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/DynAny_Handler.mpc b/TAO/CIAO/tools/Config_Handlers/DynAny_Handler.mpc
index 51daccc97dc..601f9e8a746 100644
--- a/TAO/CIAO/tools/Config_Handlers/DynAny_Handler.mpc
+++ b/TAO/CIAO/tools/Config_Handlers/DynAny_Handler.mpc
@@ -1,6 +1,6 @@
// $Id$
-project (XSC_DynAny_Handler) : taolib, xerces, dynamicany, anytypecode, typecodefactory, ciao_client_dnc {
+project (XSC_DynAny_Handler) : taolib, xerces, dynamicany, anytypecode, typecodefactory {
after += XSC_XML_Handlers
libs += XSC_XML_Handlers
dynamicflags += DYNANY_HANDLER_BUILD_DLL
diff --git a/TAO/CIAO/tools/Config_Handlers/ERE_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/ERE_Handler.cpp
index 51fcbf6f898..2f6de450d8c 100644
--- a/TAO/CIAO/tools/Config_Handlers/ERE_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/ERE_Handler.cpp
@@ -3,7 +3,7 @@
#include "ERE_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -13,7 +13,6 @@ namespace CIAO
const PlanConnectionDescription &src,
Deployment::ExternalReferenceEndpoints &dest)
{
- CIAO_TRACE("ERE_Handler::external_ref_endpoints");
PlanConnectionDescription::externalReference_const_iterator erep_e =
src.end_externalReference ();
@@ -34,7 +33,6 @@ namespace CIAO
const ExternalReferenceEndpoint &src,
Deployment::ExternalReferenceEndpoint &dest)
{
- CIAO_TRACE("ERE_Handler::external_ref_endpoint");
dest.location =
src.location ().c_str ();
}
@@ -43,7 +41,6 @@ namespace CIAO
ERE_Handler::external_ref_endpoint (
const Deployment::ExternalReferenceEndpoint& src)
{
- CIAO_TRACE("ERE_Handler::external_ref_endpoint - reverse");
XMLSchema::string< char > loc ((src.location));
ExternalReferenceEndpoint erp (loc);
return erp;
diff --git a/TAO/CIAO/tools/Config_Handlers/ESD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/ESD_Handler.cpp
deleted file mode 100644
index 1ae8a526842..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/ESD_Handler.cpp
+++ /dev/null
@@ -1,127 +0,0 @@
-// $Id$
-
-#include "ESD_Handler.h"
-#include "Basic_Deployment_Data.hpp"
-#include "ciao/Deployment_DataC.h"
-#include "cdp.hpp"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- void
- ESD_Handler::es_deployment_descrs (
- const DeploymentPlan &src,
- Deployment::EventServiceDeploymentDescriptions& dest)
- throw (Config_Error)
- {
- CIAO_TRACE("ESD_Handler::instance_deployment_descrs");
- DeploymentPlan::es_const_iterator esd_e = src.end_instance ();
-
- CORBA::ULong pos = 0;
- dest.length (src.count_instance ());
- for (DeploymentPlan::es_const_iterator esd_b =
- src.begin_instance ();
- esd_b != esd_e;
- ++esd_b)
- {
- ESD_Handler::instance_deployment_descr ((*esd_b),
- dest[pos], pos);
- pos++;
- }
- }
-
-
- void
- ESD_Handler::es_deployment_descr (
- const EventServiceDeploymentDescription& src,
- Deployment::EventServiceDeploymentDescription& dest,
- CORBA::ULong pos)
- throw (Config_Error)
- {
- CIAO_TRACE("IDD_Handler::es_deployment_descr");
- try
- {
- dest.name = src.name ().c_str ();
- dest.node = src.node ().c_str ();
- dest.svc_cfg_file = src.svc_cfg_file ().c_str ());
-
- switch (desc.type ().integral ())
- {
- case EventServiceType::EC_l:
- dest.type = Deployment::EC;
- break;
-
- case EventServiceType::RTEC_l:
- dest.type = Deployment::RTEC;
- break;
-
- case EventServiceType::NOTIFY_l:
- dest.type = Deployment::NOTIFY;
- break;
-
- case EventServiceType::RTNOTIFY_l:
- dest.type = Deployment::RTNOTIFY;
- break;
-
- default:
- throw Config_Error (desc.requirementName (),
- "Unknown EventServiceType.");
- break;
- }
- }
- catch (Config_Error &ex)
- {
- ex.name_ = src.name () + ":" + ex.name_;
- throw ex;
- }
- // Done!
- }
-
- EventServiceDeploymentDescription
- ESD_Handler::es_deployment_descr (
- const Deployment::EventServiceDeploymentDescription& src)
- throw (Config_Error)
- {
- CIAO_TRACE("ESD_Handler::es_deployment_descr - reverse");
- //Get all the string
- XMLSchema::string < ACE_TCHAR > name ((src.name));
- XMLSchema::string < ACE_TCHAR > node ((src.node));
- XMLSchema::string < ACE_TCHAR > svc_cfg_file ((src.svc_cfg_file));
-
- // Instantiate the IDD
- EventServiceDeploymentDescription esd (
- name,
- node,
- EventServiceType::RTEC_l,
- svc_cfg_file);
-
- switch (src.EventServiceType)
- {
- case Deployment::EC:
- esd.EventServiceType (EventServiceType::EC);
- break;
-
- case Deployment::RTEC:
- esd.EventServiceType (EventServiceType::RTEC);
- break;
-
- case Deployment::NOTIFY:
- esd.EventServiceType (EventServiceType::NOTIFY);
- break;
-
- case Deployment::RTNOTIFY:
- esd.EventServiceType (EventServiceType::RTNOTIFY);
- break;
-
- default:
- throw Config_Error (src.resourceName.in (),
- "Unknown EventServiceType.");
- break;
- }
-
- return esd;
- }
-
- }
-}
diff --git a/TAO/CIAO/tools/Config_Handlers/ESD_Handler.h b/TAO/CIAO/tools/Config_Handlers/ESD_Handler.h
deleted file mode 100644
index f89480f00e4..00000000000
--- a/TAO/CIAO/tools/Config_Handlers/ESD_Handler.h
+++ /dev/null
@@ -1,73 +0,0 @@
-//==============================================================
-/**
- * @file ESD_Handler.h
- *
- * $Id$
- *
- * @author Gan Deng <dengg@dre.vanderbilt.edu>
- */
-//================================================================
-
-#ifndef CIAO_CONFIG_HANDLERS_IDD_HANDLER_H
-#define CIAO_CONFIG_HANDLERS_IDD_HANDLER_H
-#include /**/ "ace/pre.h"
-
-#include "Common.h"
-#include "tao/Basic_Types.h"
-#include "Config_Handlers_Export.h"
-#include "IDREF_Base.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-namespace Deployment
-{
- struct EventServiceDeploymentDescription;
- class EventServiceDeploymentDescriptions;
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- class DeploymentPlan;
- class EventServiceDeploymentDescription;
-
- /*
- * @class ESD_Handler
- *
- * @brief Handler class for <EventServiceDeploymentDescription> types.
- *
- * This class defines handler methods to map values from
- * XSC EventServiceDeploymentDescription objects, parsed from
- * the descriptor files, to the corresponding CORBA IDL type.
- *
- */
-
- class Config_Handlers_Export ESD_Handler
- {
- public:
- static void es_deployment_descrs (
- const DeploymentPlan &src,
- ::Deployment::EventServiceDeploymentDescriptions& dest)
- throw (Config_Error);
-
- static EventServiceDeploymentDescription es_deployment_descr (
- const Deployment::EventServiceDeploymentDescription &src)
- throw (Config_Error);
-
- static IDREF_Base<CORBA::ULong> IDREF;
-
- private:
- static void es_deployment_descr (
- const EventServiceDeploymentDescription &src,
- ::Deployment::EventServiceDeploymentDescription &dest,
- CORBA::ULong pos)
- throw (Config_Error);
- };
- }
-}
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_CONFIG_HANDLERS_IDD_HANDLER_H*/
diff --git a/TAO/CIAO/tools/Config_Handlers/IDD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/IDD_Handler.cpp
index 5897a3d4e76..5f1978d41b9 100644
--- a/TAO/CIAO/tools/Config_Handlers/IDD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/IDD_Handler.cpp
@@ -21,7 +21,6 @@ namespace CIAO
Deployment::InstanceDeploymentDescriptions& dest)
throw (Config_Error)
{
- CIAO_TRACE("IDD_Handler::instance_deployment_descrs");
DeploymentPlan::instance_const_iterator idd_e =
src.end_instance ();
@@ -45,7 +44,6 @@ namespace CIAO
CORBA::ULong pos)
throw (Config_Error)
{
- CIAO_TRACE("IDD_Handler::instance_deployment_descr");
try
{
dest.name = src.name ().c_str ();
@@ -116,38 +114,38 @@ namespace CIAO
const Deployment::InstanceDeploymentDescription& src)
throw (Config_Error)
{
- CIAO_TRACE("IDD_Handler::instance_deployment_descr - reverse");
- //Get all the string/IDREFs
- XMLSchema::string < ACE_TCHAR > name ((src.name));
- XMLSchema::string < ACE_TCHAR > node ((src.node));
- XMLSchema::string < ACE_TCHAR > source ((src.source[0]));
- ACE_CString temp;
- MDD_Handler::IDREF.find_ref(src.implementationRef, temp);
- XMLSchema::IDREF< ACE_TCHAR > implementation ((temp.c_str()));
-
- // Instantiate the IDD
- InstanceDeploymentDescription idd (name, node, source, implementation);
-
- //Get and store the configProperty(s)
- size_t total = src.configProperty.length();
- for(size_t j = 0; j < total; j++)
+
+ //Get all the string/IDREFs
+ XMLSchema::string < ACE_TCHAR > name ((src.name));
+ XMLSchema::string < ACE_TCHAR > node ((src.node));
+ XMLSchema::string < ACE_TCHAR > source ((src.source[0]));
+ ACE_CString temp;
+ MDD_Handler::IDREF.find_ref(src.implementationRef, temp);
+ XMLSchema::IDREF< ACE_TCHAR > implementation ((temp.c_str()));
+
+ // Instantiate the IDD
+ InstanceDeploymentDescription idd (name, node, source, implementation);
+
+ //Get and store the configProperty(s)
+ size_t total = src.configProperty.length();
+ for(size_t j = 0; j < total; j++)
{
- idd.add_configProperty(
+ idd.add_configProperty(
Property_Handler::get_property (
src.configProperty[j]));
}
- //Check if there is a deployedResource, if so store
- if(src.deployedResource.length() != 0)
- idd.deployedResource(
+ //Check if there is a deployedResource, if so store
+ if(src.deployedResource.length() != 0)
+ idd.deployedResource(
IRDD_Handler::instance_resource_deployment_descr(
src.deployedResource[0]));
- //Check if there is a deployedSharedResource, if so store it
- if(src.deployedSharedResource.length() != 0)
- idd. deployedSharedResource(
+ //Check if there is a deployedSharedResource, if so store it
+ if(src.deployedSharedResource.length() != 0)
+ idd. deployedSharedResource(
IRDD_Handler::instance_resource_deployment_descr(
- src.deployedSharedResource[0]));
+ src.deployedSharedResource[0]));
return idd;
}
diff --git a/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp b/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp
index 24da9dc6c3b..88808bb4a6f 100644
--- a/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp
@@ -2,7 +2,6 @@
#ifndef IDREF_BASE_CPP
#define IDREF_BASE_CPP
-#include "ciao/CIAO_common.h"
#include "IDREF_Base.h"
#include <iostream>
@@ -21,8 +20,6 @@ namespace CIAO
IDREF_Base<T>::bind_ref (ACE_CString& id, T value)
throw (Config_Error)
{
- CIAO_TRACE("IDREF_Base<T>::bind_ref");
-
int retval =
idref_map_.bind (id, value);
@@ -38,8 +35,6 @@ namespace CIAO
IDREF_Base<T>::find_ref (const ACE_CString& id, T& val)
throw (Config_Error)
{
- CIAO_TRACE("IDREF_Base<T>::find_ref(C_String, T)");
-
int retval =
idref_map_.find (id, val);
@@ -53,8 +48,6 @@ namespace CIAO
IDREF_Base<T>::find_ref (const T& value, ACE_CString& id)
throw (Config_Error)
{
- CIAO_TRACE("IDREF_Base<T>::find_ref (T, CString)");
-
int retval =
pos_map_.find (value, id);
@@ -67,8 +60,6 @@ namespace CIAO
bool
IDREF_Base<T>::unbind_refs (void)
{
- CIAO_TRACE("IDREF_Base<T>::unbind_refs");
-
int retval =
idref_map_.unbind_all ();
diff --git a/TAO/CIAO/tools/Config_Handlers/ID_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/ID_Handler.cpp
index 2df07f281e0..664e4f46b3d 100644
--- a/TAO/CIAO/tools/Config_Handlers/ID_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/ID_Handler.cpp
@@ -4,7 +4,7 @@
#include "ID_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -23,8 +23,6 @@ namespace CIAO
Deployment::ImplementationDependency& toconfig,
const ImplementationDependency& desc)
{
- CIAO_TRACE("ID_Handler::get_ImplementationDependency");
-
toconfig.requiredType=
CORBA::string_dup (desc.requiredType ().c_str ());
}
@@ -33,7 +31,6 @@ namespace CIAO
ID_Handler::impl_dependency (
const ::Deployment::ImplementationDependency& src)
{
- CIAO_TRACE("ID_Handler::get_ImplementationDependency - reverse");
XMLSchema::string< char > reqtype ((src.requiredType));
ImplementationDependency id (reqtype);
diff --git a/TAO/CIAO/tools/Config_Handlers/IRDD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/IRDD_Handler.cpp
index 3cf1578892c..36ab6231001 100644
--- a/TAO/CIAO/tools/Config_Handlers/IRDD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/IRDD_Handler.cpp
@@ -6,7 +6,7 @@
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
#include "Any_Handler.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
@@ -29,7 +29,6 @@ namespace CIAO
Deployment::InstanceResourceDeploymentDescription& toconfig)
throw (Config_Error)
{
- CIAO_TRACE("IRDD_Handler::instance_resource_deployment_descr");
switch (desc.resourceUsage ().integral ())
{
@@ -73,8 +72,6 @@ namespace CIAO
const Deployment::InstanceResourceDeploymentDescription& src)
throw (Config_Error)
{
- CIAO_TRACE("IRDD_Handler::instance_resource_deployment_descr - reverse");
-
XMLSchema::string< char > reqname ((src.requirementName));
XMLSchema::string< char > resname ((src.resourceName));
Any resval (Any_Handler::get_any (src.resourceValue));
diff --git a/TAO/CIAO/tools/Config_Handlers/MDD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/MDD_Handler.cpp
index 1acbc3c1c9a..e9200cb0a49 100644
--- a/TAO/CIAO/tools/Config_Handlers/MDD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/MDD_Handler.cpp
@@ -18,8 +18,6 @@ namespace CIAO
const DeploymentPlan& src,
Deployment::MonolithicDeploymentDescriptions& dest)
{
- CIAO_TRACE("MDD_Handler::mono_deployment_descriptions");
-
DeploymentPlan::implementation_const_iterator imp_e =
src.end_implementation ();
CORBA::ULong pos = 0;
@@ -122,47 +120,47 @@ namespace CIAO
MDD_Handler::mono_deployment_description(
const Deployment::MonolithicDeploymentDescription &src)
{
- CIAO_TRACE("mono_deployment_description - reverse");
-
- //Get the name and instantiate the mdd
- XMLSchema::string < char > name ((src.name));
- MonolithicDeploymentDescription mdd (name);
-
- //Get the source(s) from the IDL and store them
- size_t total = src.source.length();
- for(size_t i = 0; i < total; i++)
+ //Get the name and instantiate the mdd
+ XMLSchema::string < char > name ((src.name));
+ MonolithicDeploymentDescription mdd (name);
+
+ //Get the source(s) from the IDL and store them
+ size_t total = src.source.length();
+ for(size_t i = 0; i < total; i++)
{
- XMLSchema::string< char > curr ((src.source[i]));
- mdd.add_source(curr);
+ XMLSchema::string< char > curr ((src.source[i]));
+ mdd.add_source(curr);
}
- //Get the artifactRef(s) from the IDL and store them
- total = src.artifactRef.length();
- for(size_t j = 0; j < total; j++)
+ //Get the artifactRef(s) from the IDL and store them
+ total = src.artifactRef.length();
+ for(size_t j = 0; j < total; j++)
{
- ACE_CString tmp;
- ADD_Handler::IDREF.find_ref(src.artifactRef[j], tmp);
- XMLSchema::IDREF< ACE_TCHAR > curr(tmp.c_str());
- mdd.add_artifact (curr);
+ ACE_CString tmp;
+ ADD_Handler::IDREF.find_ref(src.artifactRef[j], tmp);
+ XMLSchema::IDREF< ACE_TCHAR > curr(tmp.c_str());
+ mdd.add_artifact (curr);
}
- //Get the execParameter(s) from the IDL and store them
- total = src.execParameter.length();
- for(size_t k = 0; k < total; k++)
+ //Get the execParameter(s) from the IDL and store them
+ total = src.execParameter.length();
+ for(size_t k = 0; k < total; k++)
{
- mdd.add_execParameter (
- Property_Handler::get_property (src.execParameter[k]));
+ mdd.add_execParameter (
+ Property_Handler::get_property (
+ src.execParameter[k]));
}
- //Get the deployRequirement(s) from the IDL and store them
- total = src.deployRequirement.length();
- for(size_t l = 0; l < total; l++)
+ //Get the deployRequirement(s) from the IDL and store them
+ total = src.deployRequirement.length();
+ for(size_t l = 0; l < total; l++)
{
- mdd.add_deployRequirement(
- Req_Handler::get_requirement (src.deployRequirement[l]));
+ mdd.add_deployRequirement(
+ Req_Handler::get_requirement (
+ src.deployRequirement[l]));
}
- return mdd;
+ return mdd;
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/Modified_Deployment.xsd b/TAO/CIAO/tools/Config_Handlers/Modified_Deployment.xsd
new file mode 100644
index 00000000000..53ff11a9107
--- /dev/null
+++ b/TAO/CIAO/tools/Config_Handlers/Modified_Deployment.xsd
@@ -0,0 +1,688 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" xmlns:Deployment="http://www.omg.org/Deployment"
+ targetNamespace="http://www.omg.org/Deployment">
+ <xsd:simpleType name="TCKind">
+ <xsd:restriction base="xsd:NCName">
+ <xsd:enumeration value="tk_null" />
+ <xsd:enumeration value="tk_void" />
+ <xsd:enumeration value="tk_short" />
+ <xsd:enumeration value="tk_long" />
+ <xsd:enumeration value="tk_ushort" />
+ <xsd:enumeration value="tk_ulong" />
+ <xsd:enumeration value="tk_float" />
+ <xsd:enumeration value="tk_double" />
+ <xsd:enumeration value="tk_boolean" />
+ <xsd:enumeration value="tk_char" />
+ <xsd:enumeration value="tk_octet" />
+ <xsd:enumeration value="tk_any" />
+ <xsd:enumeration value="tk_TypeCode" />
+ <xsd:enumeration value="tk_Principal" />
+ <xsd:enumeration value="tk_objref" />
+ <xsd:enumeration value="tk_struct" />
+ <xsd:enumeration value="tk_union" />
+ <xsd:enumeration value="tk_enum" />
+ <xsd:enumeration value="tk_string" />
+ <xsd:enumeration value="tk_sequence" />
+ <xsd:enumeration value="tk_array" />
+ <xsd:enumeration value="tk_alias" />
+ <xsd:enumeration value="tk_except" />
+ <xsd:enumeration value="tk_longlong" />
+ <xsd:enumeration value="tk_ulonglong" />
+ <xsd:enumeration value="tk_longdouble" />
+ <xsd:enumeration value="tk_wchar" />
+ <xsd:enumeration value="tk_wstring" />
+ <xsd:enumeration value="tk_wfixed" />
+ <xsd:enumeration value="tk_value" />
+ <xsd:enumeration value="tk_value_box" />
+ <xsd:enumeration value="tk_native" />
+ <xsd:enumeration value="tk_abstract_interface" />
+ <xsd:enumeration value="tk_local_interface" />
+ <xsd:enumeration value="tk_component" />
+ <xsd:enumeration value="tk_home" />
+ <xsd:enumeration value="tk_event" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:complexType name="DataType">
+ <xsd:choice>
+ <xsd:element name="kind" type="Deployment:TCKind" />
+ <!--
+@@ not used, what for?
+
+ <xsd:element name="enum" type="Deployment:EnumType"/>
+ <xsd:element name="objref" type="Deployment:ObjrefType"/>
+ <xsd:element name="boundedString" type="Deployment:BoundedStringType"/>
+ <xsd:element name="fixed" type="Deployment:FixedType"/>
+ <xsd:element name="array" type="Deployment:ArrayType"/>
+ <xsd:element name="sequence" type="Deployment:SequenceType"/>
+ <xsd:element name="alias" type="Deployment:AliasType"/>
+ <xsd:element name="struct" type="Deployment:StructType"/>
+ <xsd:element name="value" type="Deployment:ValueType"/>
+ <xsd:element name="union" type="Deployment:UnionType"/>
+-->
+ </xsd:choice>
+ </xsd:complexType>
+ <xsd:complexType name="DataValue">
+ <xsd:choice>
+ <xsd:element name="short" type="xsd:short" />
+ <xsd:element name="long" type="xsd:int" />
+ <xsd:element name="ushort" type="xsd:unsignedShort" />
+ <xsd:element name="ulong" type="xsd:unsignedInt" />
+ <xsd:element name="float" type="xsd:float" />
+ <xsd:element name="double" type="xsd:double" />
+ <xsd:element name="boolean" type="xsd:boolean" />
+ <xsd:element name="octet" type="xsd:unsignedByte" />
+ <!-- xsd:element name="opaque" type="xsd:base64Binary"/ -->
+ <xsd:element name="objref" type="xsd:string" />
+ <xsd:element name="enum" type="xsd:string" />
+ <xsd:element name="string" type="xsd:string" />
+ <xsd:element name="longlong" type="xsd:long" />
+ <xsd:element name="ulonglong" type="xsd:unsignedLong" />
+ <xsd:element name="longdouble" type="xsd:double" />
+ <xsd:element name="fixed" type="xsd:string" />
+ <!--
+@@ recursive
+ <xsd:element name="any" type="Deployment:Any"/>
+-->
+ <xsd:element name="typecode" type="Deployment:DataType" />
+ <!--
+@@ recursive
+ <xsd:element name="element" type="Deployment:DataValue"/>
+ <xsd:element name="discriminator" type="Deployment:DataValue"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ <xsd:element name="boxedValue" type="Deployment:DataValue"/>
+ <xsd:element name="member" type="Deployment:NamedValue"/>
+-->
+ </xsd:choice>
+ </xsd:complexType>
+ <xsd:complexType name="Any">
+ <xsd:sequence>
+ <xsd:element name="type" type="Deployment:DataType" />
+ <xsd:element name="value" type="Deployment:DataValue" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="Property">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="value" type="Deployment:Any" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <!-- End of base definitions. -->
+ <xsd:complexType name="Node">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="label" type="xsd:string" />
+ <!--
+@@ recursive, not used
+ <xsd:element name="connection" type="Deployment:Interconnect"/>
+ <xsd:element name="sharedResource" type="Deployment:SharedResource"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+-->
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:simpleType name="SatisfierPropertyKind">
+ <xsd:restriction base="xsd:NCName">
+ <xsd:enumeration value="Quantity" />
+ <xsd:enumeration value="Capacity" />
+ <xsd:enumeration value="Minimum" />
+ <xsd:enumeration value="Maximum" />
+ <xsd:enumeration value="Attribute" />
+ <xsd:enumeration value="Selection" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:complexType name="SatisfierProperty">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="kind" type="Deployment:SatisfierPropertyKind" />
+ <xsd:element name="value" type="Deployment:Any" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="Resource">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="resourceType" type="xsd:string" />
+ <xsd:element name="property" type="Deployment:SatisfierProperty" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="SharedResource">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="resourceType" type="xsd:string" />
+ <xsd:element name="node" type="Deployment:Node" />
+ <xsd:element name="property" type="Deployment:SatisfierProperty" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="Domain">
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" />
+ <xsd:element name="UUID" type="xsd:string" />
+ <xsd:element name="sharedResource" type="Deployment:SharedResource" minOccurs="0" />
+ <xsd:element name="node" type="Deployment:Node" maxOccurs="unbounded" />
+ <!--
+@@ recursive, not used
+ <xsd:element name="interconnect" type="Deployment:Interconnect"/>
+ <xsd:element name="bridge" type="Deployment:Bridge"/>
+-->
+ <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="Requirement">
+ <xsd:sequence>
+ <xsd:element name="resourceType" type="xsd:string" />
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="property" type="Deployment:Property" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <!-- Deployment -->
+ <xsd:complexType name="ResourceDeploymentDescription">
+ <xsd:sequence>
+ <xsd:element name="requirementName" type="xsd:string" />
+ <xsd:element name="resourceName" type="xsd:string" />
+ <xsd:element name="resourceValue" type="Deployment:Any" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ArtifactDeploymentDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="source" type="xsd:string" />
+ <xsd:element name="node" type="xsd:string" minOccurs="0" />
+ <xsd:element name="location" type="xsd:string" maxOccurs="unbounded" />
+ <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" />
+ <xsd:element name="deployedResource" type="Deployment:ResourceDeploymentDescription" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+ <xsd:complexType name="MonolithicDeploymentDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="source" type="xsd:string" />
+ <xsd:element name="artifact" type="xsd:IDREF" maxOccurs="unbounded" />
+ <!-- ArtifactDeploymentDescription -->
+ <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+ <xsd:simpleType name="ResourceUsageKind">
+ <xsd:restriction base="xsd:NCName">
+ <xsd:enumeration value="None" />
+ <xsd:enumeration value="InstanceUsesResource" />
+ <xsd:enumeration value="ResourceUsesInstance" />
+ <xsd:enumeration value="PortUsesResource" />
+ <xsd:enumeration value="ResourceUsesPort" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:complexType name="InstanceResourceDeploymentDescription">
+ <xsd:sequence>
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind" />
+ <xsd:element name="requirementName" type="xsd:string" />
+ <xsd:element name="resourceName" type="xsd:string" />
+ <xsd:element name="resourceValue" type="Deployment:Any" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="InstanceDeploymentDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="node" type="xsd:string" />
+ <xsd:element name="source" type="xsd:string" />
+ <xsd:element name="implementation" type="xsd:IDREF" />
+ <!-- MonolithicDeploymentDescription -->
+ <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="deployedResource" type="Deployment:InstanceResourceDeploymentDescription"
+ minOccurs="0" />
+ <xsd:element name="deployedSharedResource" type="Deployment:InstanceResourceDeploymentDescription"
+ minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+ <xsd:simpleType name="CCMComponentPortKind">
+ <xsd:restriction base="xsd:NCName">
+ <xsd:enumeration value="Facet" />
+ <xsd:enumeration value="SimplexReceptacle" />
+ <xsd:enumeration value="MultiplexReceptacle" />
+ <xsd:enumeration value="EventEmitter" />
+ <xsd:enumeration value="EventPublisher" />
+ <xsd:enumeration value="EventConsumer" />
+ </xsd:restriction>
+ </xsd:simpleType>
+ <xsd:complexType name="ComponentPortDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="specificType" type="xsd:string" />
+ <xsd:element name="supportedType" type="xsd:string" />
+ <xsd:element name="provider" type="xsd:string" />
+ <xsd:element name="exclusiveProvider" type="xsd:string" />
+ <xsd:element name="exclusiveUser" type="xsd:string" />
+ <xsd:element name="optional" type="xsd:string" />
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentPropertyDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="type" type="Deployment:DataType" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentInterfaceDescription">
+ <xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" />
+ <xsd:element name="UUID" type="xsd:string" />
+ <xsd:element name="specificType" type="xsd:string" />
+ <xsd:element name="supportedType" type="xsd:string" maxOccurs="unbounded" />
+ <xsd:element name="idlFile" type="xsd:string" minOccurs="0" />
+ <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="port" type="Deployment:ComponentPortDescription" maxOccurs="unbounded" />
+ <xsd:element name="property" type="Deployment:ComponentPropertyDescription" minOccurs="0" />
+ <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:element name="contentLocation" type="xsd:string" />
+ </xsd:choice>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentExternalPortEndpoint">
+ <xsd:sequence>
+ <xsd:element name="portName" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="PlanSubcomponentPortEndpoint">
+ <xsd:sequence>
+ <xsd:element name="portName" type="xsd:string" />
+ <xsd:element name="provider" type="xsd:string" minOccurs="0" />
+ <xsd:element name="kind" type="Deployment:CCMComponentPortKind" />
+ <xsd:element name="instance" type="xsd:IDREF" />
+ <!-- InstanceDeploymentDescription -->
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ExternalReferenceEndpoint">
+ <xsd:sequence>
+ <xsd:element name="location" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ConnectionResourceDeploymentDescription">
+ <xsd:sequence>
+ <xsd:element name="targetName" type="xsd:string" />
+ <xsd:element name="requirementName" type="xsd:string" />
+ <xsd:element name="resourceName" type="xsd:string" />
+ <xsd:element name="resourceValue" type="Deployment:Any" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="PlanConnectionDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="source" type="xsd:string" minOccurs="0" />
+ <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" />
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint" minOccurs="0"
+ maxOccurs="unbounded" />
+ <xsd:element name="internalEndpoint" type="Deployment:PlanSubcomponentPortEndpoint" minOccurs="0"
+ maxOccurs="unbounded" />
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint" minOccurs="0"
+ maxOccurs="unbounded" />
+ <xsd:element name="deployedResource" type="Deployment:ConnectionResourceDeploymentDescription"
+ minOccurs="0" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ImplementationDependency">
+ <xsd:sequence>
+ <xsd:element name="requiredType" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="DeploymentPlan">
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" minOccurs="0" />
+ <xsd:element name="UUID" type="xsd:string" minOccurs="0" />
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" />
+ <xsd:element name="implementation" type="Deployment:MonolithicDeploymentDescription" maxOccurs="unbounded" />
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="connection" type="Deployment:PlanConnectionDescription" minOccurs="0" maxOccurs="unbounded" />
+ <!-- potentially recursive, not used
+ <xsd:element name="externalProperty" type="Deployment:PlanPropertyMapping"/>
+ -->
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="artifact" type="Deployment:ArtifactDeploymentDescription" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <!-- Implementation -->
+ <xsd:complexType name="Capability">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="resourceType" type="xsd:string" />
+ <xsd:element name="property" type="Deployment:SatisfierProperty" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="NamedImplementationArtifact">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <!-- @@ recursive NIA->IAD->NIA -->
+ <xsd:element name="referencedArtifact" type="Deployment:ImplementationArtifactDescription" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ImplementationArtifactDescription">
+ <xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" />
+ <xsd:element name="UUID" type="xsd:string" />
+ <!-- @@ There probably should be only one location? -->
+ <xsd:element name="location" type="xsd:string" maxOccurs="unbounded" />
+ <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" />
+ <xsd:element name="dependsOn" type="Deployment:NamedImplementationArtifact" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:element name="contentLocation" type="xsd:string" />
+ </xsd:choice>
+ </xsd:complexType>
+ <xsd:complexType name="ImplementationRequirement">
+ <xsd:sequence>
+ <xsd:element name="resourceUsage" type="Deployment:ResourceUsageKind" />
+ <xsd:element name="resourcePort" type="xsd:string" />
+ <xsd:element name="componentPort" type="xsd:string" />
+ <xsd:element name="resourceType" type="xsd:string" />
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="property" type="Deployment:Property" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="MonolithicImplementationDescription">
+ <xsd:sequence>
+ <xsd:element name="execParameter" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="primaryArtifact" type="Deployment:NamedImplementationArtifact" maxOccurs="unbounded" />
+ <xsd:element name="deployRequirement" type="Deployment:ImplementationRequirement" minOccurs="0" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="PackagedComponentImplementation">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <!-- @@ recursive CPD->PCI->CID->CAD->SID->CPD -->
+ <xsd:element name="referencedImplementation" type="Deployment:ComponentImplementationDescription" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentPackageDescription">
+ <xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" />
+ <xsd:element name="UUID" type="xsd:string" />
+ <xsd:element name="realizes" type="Deployment:ComponentInterfaceDescription" minOccurs="0" />
+ <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="implementation" type="Deployment:PackagedComponentImplementation" />
+ <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:element name="contentLocation" type="xsd:string" />
+ </xsd:choice>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentPackageReference">
+ <xsd:sequence>
+ <xsd:element name="requiredUUID" type="xsd:string" />
+ <xsd:element name="requiredName" type="xsd:string" />
+ <xsd:element name="requiredType" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="SubcomponentInstantiationDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="package" type="Deployment:ComponentPackageDescription" />
+ <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="selectRequirement" type="Deployment:Requirement" minOccurs="0" />
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+ <xsd:complexType name="SubcomponentPortEndpoint">
+ <xsd:sequence>
+ <xsd:element name="portName" type="xsd:string" />
+ <xsd:element name="instance" type="xsd:IDREF" />
+ <!-- SubcomponentInstantiationDescription -->
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="AssemblyConnectionDescription">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="deployRequirement" type="Deployment:Requirement" minOccurs="0" />
+ <xsd:element name="externalEndpoint" type="Deployment:ComponentExternalPortEndpoint" minOccurs="0"
+ maxOccurs="unbounded" />
+ <xsd:element name="internalEndpoint" type="Deployment:SubcomponentPortEndpoint" minOccurs="0"
+ maxOccurs="unbounded" />
+ <xsd:element name="externalReference" type="Deployment:ExternalReferenceEndpoint" minOccurs="0"
+ maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="SubcomponentPropertyReference">
+ <xsd:sequence>
+ <xsd:element name="propertyName" type="xsd:string" />
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="AssemblyPropertyMapping">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string" />
+ <xsd:element name="externalName" type="xsd:string" />
+ <xsd:element name="delegatesTo" type="Deployment:SubcomponentPropertyReference" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentAssemblyDescription">
+ <xsd:sequence>
+ <xsd:element name="instance" type="Deployment:SubcomponentInstantiationDescription" maxOccurs="unbounded" />
+ <xsd:element name="connection" type="Deployment:AssemblyConnectionDescription" maxOccurs="unbounded" />
+ <xsd:element name="externalProperty" type="Deployment:AssemblyPropertyMapping" minOccurs="0" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:complexType name="ComponentImplementationDescription">
+ <xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" />
+ <xsd:element name="UUID" type="xsd:string" />
+ <xsd:element name="implements" type="Deployment:ComponentInterfaceDescription" minOccurs="0" />
+ <xsd:choice>
+ <xsd:element name="assemblyImpl" type="Deployment:ComponentAssemblyDescription" />
+ <xsd:element name="monolithicImpl" type="Deployment:MonolithicImplementationDescription" />
+ </xsd:choice>
+ <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" />
+ <xsd:element name="capability" type="Deployment:Capability" minOccurs="0" />
+ <xsd:element name="dependsOn" type="Deployment:ImplementationDependency" minOccurs="0" />
+ <xsd:element name="infoProperty" type="Deployment:Property" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:element name="contentLocation" type="xsd:string" />
+ </xsd:choice>
+ </xsd:complexType>
+ <!-- Package -->
+ <xsd:complexType name="PackageConfiguration">
+ <xsd:choice>
+ <xsd:sequence>
+ <xsd:element name="label" type="xsd:string" />
+ <xsd:element name="UUID" type="xsd:string" />
+ <!--
+@@ recursive, not used
+ <xsd:element name="specializedConfig" type="Deployment:PackageConfiguration"/>
+-->
+ <xsd:element name="basePackage" type="Deployment:ComponentPackageDescription" />
+ <xsd:element name="reference" type="Deployment:ComponentPackageReference" minOccurs="0" />
+ <xsd:element name="selectRequirement" type="Deployment:Requirement" minOccurs="0" />
+ <xsd:element name="configProperty" type="Deployment:Property" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:element name="contentLocation" type="xsd:string" />
+ </xsd:choice>
+ </xsd:complexType>
+ <xsd:complexType name="TopLevelPackageDescription">
+ <xsd:sequence>
+ <xsd:element name="package" type="Deployment:PackageConfiguration" maxOccurs="unbounded" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <!-- Top-level elements. -->
+ <xsd:element name="domain" type="Deployment:Domain" />
+ <xsd:element name="deploymentPlan" type="Deployment:DeploymentPlan" />
+ <xsd:element name="implementationArtifactDescription" type="Deployment:ImplementationArtifactDescription" />
+ <xsd:element name="componentInterfaceDescription" type="Deployment:ComponentInterfaceDescription" />
+ <xsd:element name="componentImplementationDescription" type="Deployment:ComponentImplementationDescription" />
+ <xsd:element name="componentPackageDescription" type="Deployment:ComponentPackageDescription" />
+ <xsd:element name="packageConfiguration" type="Deployment:PackageConfiguration" />
+ <xsd:element name="topLevelPackageDescription" type="Deployment:TopLevelPackageDescription" />
+ <!-- VAULT
+
+Place for strange things. Nobody knows what they are for...
+
+-->
+ <!--
+
+ <xsd:complexType name="EnumType">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="xsd:string" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="ObjrefType">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="BoundedStringType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="FixedType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="digits" type="xsd:string"/>
+ <xsd:element name="scale" type="xsd:string"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="ArrayType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="length" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="SequenceType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="bound" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="AliasType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="elementType" type="Deployment:DataType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="StructType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="member" type="Deployment:StructMemberType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="StructMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="ValueType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="modifier" type="xsd:string"/>
+ <xsd:element name="baseType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:ValueMemberType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="ValueMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="visibility" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="UnionType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="typeId" type="xsd:string"/>
+ <xsd:element name="default" type="Deployment:UnionMemberType"/>
+ <xsd:element name="discriminatorType" type="Deployment:DataType"/>
+ <xsd:element name="member" type="Deployment:UnionMemberType"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="UnionMemberType">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="type" type="Deployment:DataType"/>
+ <xsd:element name="label" type="Deployment:DataValue"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="NamedValue">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="value" type="Deployment:DataValue"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="Bridge">
+ <xsd:sequence>
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connect" type="Deployment:Interconnect"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="Interconnect">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="label" type="xsd:string"/>
+ <xsd:element name="connection" type="Deployment:Bridge"/>
+ <xsd:element name="connect" type="Deployment:Node"/>
+ <xsd:element name="resource" type="Deployment:Resource"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="PlanPropertyMapping">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="source" type="xsd:string"/>
+ <xsd:element name="externalName" type="xsd:string"/>
+ <xsd:element name="delegatesTo" type="Deployment:PlanSubcomponentPropertyReference"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+
+ <xsd:complexType name="PlanSubcomponentPropertyReference">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="propertyName" type="xsd:string"/>
+ <xsd:element name="instance" type="Deployment:InstanceDeploymentDescription"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+-->
+ <!--
+
+ This type is not referenced anywhere.
+
+ <xsd:complexType name="RequirementSatisfier">
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="name" type="xsd:string"/>
+ <xsd:element name="resourceType" type="xsd:string"/>
+ <xsd:element name="property" type="Deployment:SatisfierProperty"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+-->
+</xsd:schema> \ No newline at end of file
diff --git a/TAO/CIAO/tools/Config_Handlers/PCD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/PCD_Handler.cpp
index a383f9dad4b..917c056a6cb 100644
--- a/TAO/CIAO/tools/Config_Handlers/PCD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/PCD_Handler.cpp
@@ -8,7 +8,6 @@
#include "CRDD_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
namespace CIAO
{
@@ -30,8 +29,6 @@ namespace CIAO
Deployment::PlanConnectionDescription& toconfig,
PlanConnectionDescription& desc)
{
- CIAO_TRACE("PCD_Handler::get_PlanConnectionDescription");
-
toconfig.name = CORBA::string_dup (desc.name ().c_str ());
//Source is mapped to a string in the schema and a sequence
@@ -98,63 +95,66 @@ namespace CIAO
}
- PlanConnectionDescription PCD_Handler::get_PlanConnectionDescription (
- const Deployment::PlanConnectionDescription &src)
- {
- CIAO_TRACE("PCD_Handler::get_PlanConnectionDescription");
-
- XMLSchema::string< char > name ((src.name));
-
- PlanConnectionDescription pcd(name);
-
- //Get the source if it exists
- if(src.source.length() != 0)
- {
- XMLSchema::string< char > source((src.source[0]));
- pcd.source(source);
- }
-
- //Get any externalEndpoint(s) and store them
- size_t total = src.externalEndpoint.length();
- for(size_t i = 0; i < total; i++)
- {
- pcd.add_externalEndpoint(
- CEPE_Handler::external_port_endpoint(src.externalEndpoint[i]));
- }
-
- //Get any externalReference(s) and store them
- total = src.externalReference.length();
- for(size_t j = 0; j < total; j++)
- {
- pcd.add_externalReference(
- ERE_Handler::external_ref_endpoint(src.externalReference[j]));
- }
-
- //Get any internalEndpoint(s) and store them
- total = src.internalEndpoint.length();
- for(size_t k = 0; k < total; k++)
- {
- pcd.add_internalEndpoint(
- PSPE_Handler::sub_component_port_endpoint(src.internalEndpoint[k]));
- }
+ PlanConnectionDescription PCD_Handler::get_PlanConnectionDescription (
+ const Deployment::PlanConnectionDescription &src)
+ {
+ XMLSchema::string< char > name ((src.name));
+
+ PlanConnectionDescription pcd(name);
+
+ //Get the source if it exists
+ if(src.source.length() != 0)
+ {
+ XMLSchema::string< char > source((src.source[0]));
+ pcd.source(source);
+ }
+
+ //Get any externalEndpoint(s) and store them
+ size_t total = src.externalEndpoint.length();
+ for(size_t i = 0; i < total; i++)
+ {
+ pcd.add_externalEndpoint(
+ CEPE_Handler::external_port_endpoint(
+ src.externalEndpoint[i]));
+ }
+
+ //Get any externalReference(s) and store them
+ total = src.externalReference.length();
+ for(size_t j = 0; j < total; j++)
+ {
+ pcd.add_externalReference(
+ ERE_Handler::external_ref_endpoint(
+ src.externalReference[j]));
+ }
+
+ //Get any internalEndpoint(s) and store them
+ total = src.internalEndpoint.length();
+ for(size_t k = 0; k < total; k++)
+ {
+ pcd.add_internalEndpoint(
+ PSPE_Handler::sub_component_port_endpoint(
+ src.internalEndpoint[k]));
+ }
- //Get any deployedResource(s) and store them
- total = src.deployedResource.length();
- for(size_t l = 0; l < total; l++)
- {
- pcd.add_deployedResource(
- CRDD_Handler::connection_resource_depl_desc(src.deployedResource[l]));
- }
-
- //Get any deployRequirement(s) and store them
- total = src.deployRequirement.length();
- for(size_t m = 0; m < total; m++)
- {
- pcd.add_deployRequirement(
- Req_Handler::get_requirement(src.deployRequirement[m]));
- }
-
- return pcd;
- }
+ //Get any deployedResource(s) and store them
+ total = src.deployedResource.length();
+ for(size_t l = 0; l < total; l++)
+ {
+ pcd.add_deployedResource(
+ CRDD_Handler::connection_resource_depl_desc(
+ src.deployedResource[l]));
+ }
+
+ //Get any deployRequirement(s) and store them
+ total = src.deployRequirement.length();
+ for(size_t m = 0; m < total; m++)
+ {
+ pcd.add_deployRequirement(
+ Req_Handler::get_requirement(
+ src.deployRequirement[m]));
+ }
+
+ return pcd;
+ }
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/PSPE_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/PSPE_Handler.cpp
index d43ebc689b1..302c560d899 100644
--- a/TAO/CIAO/tools/Config_Handlers/PSPE_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/PSPE_Handler.cpp
@@ -14,13 +14,11 @@ namespace CIAO
const PlanConnectionDescription &src,
::Deployment::PlanSubcomponentPortEndpoints &dest)
{
- CIAO_TRACE("PSPE_Handler::sub_component_port_endpoints");
-
PlanConnectionDescription::internalEndpoint_const_iterator iei_e =
src.end_internalEndpoint ();
CORBA::ULong pos = 0;
dest.length (src.count_internalEndpoint ());
-
+
for (PlanConnectionDescription::internalEndpoint_const_iterator iei_b =
src.begin_internalEndpoint ();
iei_b != iei_e;
@@ -36,7 +34,6 @@ namespace CIAO
const PlanSubcomponentPortEndpoint &src,
::Deployment::PlanSubcomponentPortEndpoint &dest)
{
- CIAO_TRACE("PSPE_Handler::sub_component_port_endpoint");
dest.portName =
src.portName ().c_str ();
@@ -50,9 +47,9 @@ namespace CIAO
}
CORBA::ULong tmp = 0;
- IDD_Handler::IDREF.find_ref (ACE_CString (src.instance ().id ().c_str ()),
- tmp);
-
+ IDD_Handler::IDREF.find_ref (ACE_CString (src.instance ().id ().c_str ()),
+ tmp);
+
dest.instanceRef = tmp;
switch (src.kind ().integral ())
@@ -60,38 +57,30 @@ namespace CIAO
case CCMComponentPortKind::Facet_l:
dest.kind = Deployment::Facet;
break;
-
+
case CCMComponentPortKind::SimplexReceptacle_l:
dest.kind = Deployment::SimplexReceptacle;
break;
-
+
case CCMComponentPortKind::MultiplexReceptacle_l:
dest.kind = Deployment::MultiplexReceptacle;
break;
-
+
case CCMComponentPortKind::EventEmitter_l:
dest.kind = Deployment::EventEmitter;
break;
-
+
case CCMComponentPortKind::EventPublisher_l:
dest.kind = Deployment::EventPublisher;
break;
-
+
case CCMComponentPortKind::EventConsumer_l:
dest.kind = Deployment::EventConsumer;
break;
-
- case CCMComponentPortKind::rtecEventPublisher_l:
- dest.kind = Deployment::rtecEventPublisher;
- break;
-
- case CCMComponentPortKind::rtecEventConsumer_l:
- dest.kind = Deployment::rtecEventConsumer;
- break;
-
+
default:
ACE_DEBUG ((LM_DEBUG, "Invalid port kind in connection\n"));
-
+
}
}
@@ -99,62 +88,48 @@ namespace CIAO
PSPE_Handler::sub_component_port_endpoint (
const Deployment::PlanSubcomponentPortEndpoint &src)
{ // @@MAJO
- CIAO_TRACE("PSPE_Handler::sub_component_port_endpoint - reverse");
XMLSchema::string< char > pname ((src.portName));
XMLSchema::string< char > tval ("true");
XMLSchema::string< char > prov ("");
ACE_CString id;
IDD_Handler::IDREF.find_ref(src.instanceRef, id);
- XMLSchema::IDREF < ACE_TCHAR > idref(id.c_str());
-
+ XMLSchema::IDREF < ACE_TCHAR > idref(id.c_str());
+
if (src.provider)
prov = tval;
PlanSubcomponentPortEndpoint pspe (pname,
- CCMComponentPortKind::Facet,
- idref);
+ CCMComponentPortKind::Facet,
+ idref);
pspe.provider (prov);
-
+
switch (src.kind)
- {
+ {
case ::Deployment::Facet:
pspe.kind (CCMComponentPortKind::Facet);
break;
-
+
case ::Deployment::SimplexReceptacle:
pspe.kind (CCMComponentPortKind::SimplexReceptacle);
break;
-
+
case ::Deployment::MultiplexReceptacle:
pspe.kind (CCMComponentPortKind::MultiplexReceptacle);
break;
-
+
case ::Deployment::EventEmitter:
pspe.kind (CCMComponentPortKind::EventEmitter);
break;
-
+
case ::Deployment::EventPublisher:
pspe.kind (CCMComponentPortKind::EventPublisher);
break;
-
+
case ::Deployment::EventConsumer:
pspe.kind (CCMComponentPortKind::EventConsumer);
break;
-
- case ::Deployment::ecEventEmitter:
- case ::Deployment::ecEventPublisher:
- case ::Deployment::ecEventConsumer:
- case ::Deployment::rtecEventEmitter:
- case ::Deployment::rtecEventPublisher:
- case ::Deployment::rtecEventConsumer:
- case ::Deployment::nsEventEmitter:
- case ::Deployment::nsEventPublisher:
- case ::Deployment::nsEventConsumer:
- ACE_ERROR ((LM_ERROR, "Unsupported PortKind\n"));
- break;
-
}
-
+
return pspe;
}
diff --git a/TAO/CIAO/tools/Config_Handlers/Property_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/Property_Handler.cpp
index 9a66a4a0c00..c2525f5ceeb 100644
--- a/TAO/CIAO/tools/Config_Handlers/Property_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/Property_Handler.cpp
@@ -4,7 +4,7 @@
#include "Any_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -23,8 +23,6 @@ namespace CIAO
const Property& desc,
Deployment::Property& toconfig)
{
- CIAO_TRACE("Property_Handler::get_property");
-
toconfig.name =
CORBA::string_dup (desc.name ().c_str ());
@@ -37,8 +35,6 @@ namespace CIAO
Property_Handler::get_property (
const Deployment::Property& src)
{
- CIAO_TRACE("Property_Handler::get_property - reverse");
-
::XMLSchema::string< char > name ((src.name));
Any value (Any_Handler::get_any (src.value));
diff --git a/TAO/CIAO/tools/Config_Handlers/RDD_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/RDD_Handler.cpp
index 7b071ab0308..7a9fe8bca08 100644
--- a/TAO/CIAO/tools/Config_Handlers/RDD_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RDD_Handler.cpp
@@ -3,7 +3,7 @@
#include "Basic_Deployment_Data.hpp"
#include "ciao/Deployment_DataC.h"
#include "Any_Handler.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -13,8 +13,6 @@ namespace CIAO
const ResourceDeploymentDescription &src,
::Deployment::ResourceDeploymentDescription &dest)
{
- CIAO_TRACE("RDD_Handler::resource_deployment_descr");
-
dest.requirementName =
src.requirementName ().c_str ();
@@ -30,8 +28,6 @@ namespace CIAO
RDD_Handler::resource_deployment_descr (
const ::Deployment::ResourceDeploymentDescription &src)
{
- CIAO_TRACE("RDD_Handler::resource_deployment_descr - reverse");
-
XMLSchema::string< char > reqname ((src.requirementName));
XMLSchema::string< char > resname ((src.resourceName));
Any resval (Any_Handler::get_any (src.resourceValue));
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/CB_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/CB_Handler.cpp
index 61f6e58352a..595f0850e39 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/CB_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/CB_Handler.cpp
@@ -25,7 +25,6 @@ namespace CIAO
{
dest.bands[num].low = static_cast <ACE_INT32> ((i->low ()));
dest.bands[num].high = static_cast < ACE_INT32 > (i->high ());
- num++;
}
if (src.id_p ())
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
index 67f26438d49..d56f03149eb 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
@@ -187,8 +187,11 @@ namespace CIAO
::XSCRT::Type (),
regulator__ ()
{
+ arg_.reserve (s.arg_.size ());
{
- for (arg_const_iterator i (s.arg_.begin ());i != s.arg_.end ();++i) add_arg (*i);
+ for (arg_const_iterator i (s.arg_.begin ());
+ i != s.arg_.end ();
+ ++i) add_arg (*i);
}
}
@@ -196,8 +199,11 @@ namespace CIAO
operator= (::CIAO::Config_Handlers::ServerCmdlineOptions const& s)
{
arg_.clear ();
+ arg_.reserve (s.arg_.size ());
{
- for (arg_const_iterator i (s.arg_.begin ());i != s.arg_.end ();++i) add_arg (*i);
+ for (arg_const_iterator i (s.arg_.begin ());
+ i != s.arg_.end ();
+ ++i) add_arg (*i);
}
return *this;
@@ -233,7 +239,26 @@ namespace CIAO
void ServerCmdlineOptions::
add_arg (::XMLSchema::string< ACE_TCHAR > const& e)
{
+ if (arg_.capacity () < arg_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::string< ACE_TCHAR > > v;
+ v.reserve (arg_.size () + 1);
+
+ for (arg_iterator i = arg_.begin ();
+ i != arg_.end ();
+ ++i)
+ {
+ ::XMLSchema::string< ACE_TCHAR >& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ arg_.swap (v);
+ }
+
arg_.push_back (e);
+ arg_.back ().container (this);
}
size_t ServerCmdlineOptions::
@@ -323,8 +348,11 @@ namespace CIAO
regulator__ ()
{
if (resources_.get ()) resources_->container (this);
+ policySet_.reserve (s.policySet_.size ());
{
- for (policySet_const_iterator i (s.policySet_.begin ());i != s.policySet_.end ();++i) add_policySet (*i);
+ for (policySet_const_iterator i (s.policySet_.begin ());
+ i != s.policySet_.end ();
+ ++i) add_policySet (*i);
}
}
@@ -335,8 +363,11 @@ namespace CIAO
else resources_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ORBResources > (0);
policySet_.clear ();
+ policySet_.reserve (s.policySet_.size ());
{
- for (policySet_const_iterator i (s.policySet_.begin ());i != s.policySet_.end ();++i) add_policySet (*i);
+ for (policySet_const_iterator i (s.policySet_.begin ());
+ i != s.policySet_.end ();
+ ++i) add_policySet (*i);
}
return *this;
@@ -401,7 +432,26 @@ namespace CIAO
void ORBConfigs::
add_policySet (::CIAO::Config_Handlers::PolicySet const& e)
{
+ if (policySet_.capacity () < policySet_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::PolicySet > v;
+ v.reserve (policySet_.size () + 1);
+
+ for (policySet_iterator i = policySet_.begin ();
+ i != policySet_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::PolicySet& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ policySet_.swap (v);
+ }
+
policySet_.push_back (e);
+ policySet_.back ().container (this);
}
size_t ORBConfigs::
@@ -428,16 +478,25 @@ namespace CIAO
::XSCRT::Type (),
regulator__ ()
{
+ threadpool_.reserve (s.threadpool_.size ());
{
- for (threadpool_const_iterator i (s.threadpool_.begin ());i != s.threadpool_.end ();++i) add_threadpool (*i);
+ for (threadpool_const_iterator i (s.threadpool_.begin ());
+ i != s.threadpool_.end ();
+ ++i) add_threadpool (*i);
}
+ threadpoolWithLanes_.reserve (s.threadpoolWithLanes_.size ());
{
- for (threadpoolWithLanes_const_iterator i (s.threadpoolWithLanes_.begin ());i != s.threadpoolWithLanes_.end ();++i) add_threadpoolWithLanes (*i);
+ for (threadpoolWithLanes_const_iterator i (s.threadpoolWithLanes_.begin ());
+ i != s.threadpoolWithLanes_.end ();
+ ++i) add_threadpoolWithLanes (*i);
}
+ connectionBands_.reserve (s.connectionBands_.size ());
{
- for (connectionBands_const_iterator i (s.connectionBands_.begin ());i != s.connectionBands_.end ();++i) add_connectionBands (*i);
+ for (connectionBands_const_iterator i (s.connectionBands_.begin ());
+ i != s.connectionBands_.end ();
+ ++i) add_connectionBands (*i);
}
}
@@ -445,18 +504,27 @@ namespace CIAO
operator= (::CIAO::Config_Handlers::ORBResources const& s)
{
threadpool_.clear ();
+ threadpool_.reserve (s.threadpool_.size ());
{
- for (threadpool_const_iterator i (s.threadpool_.begin ());i != s.threadpool_.end ();++i) add_threadpool (*i);
+ for (threadpool_const_iterator i (s.threadpool_.begin ());
+ i != s.threadpool_.end ();
+ ++i) add_threadpool (*i);
}
threadpoolWithLanes_.clear ();
+ threadpoolWithLanes_.reserve (s.threadpoolWithLanes_.size ());
{
- for (threadpoolWithLanes_const_iterator i (s.threadpoolWithLanes_.begin ());i != s.threadpoolWithLanes_.end ();++i) add_threadpoolWithLanes (*i);
+ for (threadpoolWithLanes_const_iterator i (s.threadpoolWithLanes_.begin ());
+ i != s.threadpoolWithLanes_.end ();
+ ++i) add_threadpoolWithLanes (*i);
}
connectionBands_.clear ();
+ connectionBands_.reserve (s.connectionBands_.size ());
{
- for (connectionBands_const_iterator i (s.connectionBands_.begin ());i != s.connectionBands_.end ();++i) add_connectionBands (*i);
+ for (connectionBands_const_iterator i (s.connectionBands_.begin ());
+ i != s.connectionBands_.end ();
+ ++i) add_connectionBands (*i);
}
return *this;
@@ -492,7 +560,26 @@ namespace CIAO
void ORBResources::
add_threadpool (::CIAO::Config_Handlers::ThreadpoolDef const& e)
{
+ if (threadpool_.capacity () < threadpool_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ThreadpoolDef > v;
+ v.reserve (threadpool_.size () + 1);
+
+ for (threadpool_iterator i = threadpool_.begin ();
+ i != threadpool_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::ThreadpoolDef& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ threadpool_.swap (v);
+ }
+
threadpool_.push_back (e);
+ threadpool_.back ().container (this);
}
size_t ORBResources::
@@ -530,7 +617,26 @@ namespace CIAO
void ORBResources::
add_threadpoolWithLanes (::CIAO::Config_Handlers::ThreadpoolWithLanesDef const& e)
{
+ if (threadpoolWithLanes_.capacity () < threadpoolWithLanes_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef > v;
+ v.reserve (threadpoolWithLanes_.size () + 1);
+
+ for (threadpoolWithLanes_iterator i = threadpoolWithLanes_.begin ();
+ i != threadpoolWithLanes_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::ThreadpoolWithLanesDef& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ threadpoolWithLanes_.swap (v);
+ }
+
threadpoolWithLanes_.push_back (e);
+ threadpoolWithLanes_.back ().container (this);
}
size_t ORBResources::
@@ -568,7 +674,26 @@ namespace CIAO
void ORBResources::
add_connectionBands (::CIAO::Config_Handlers::ConnectionBandsDef const& e)
{
+ if (connectionBands_.capacity () < connectionBands_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ConnectionBandsDef > v;
+ v.reserve (connectionBands_.size () + 1);
+
+ for (connectionBands_iterator i = connectionBands_.begin ();
+ i != connectionBands_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::ConnectionBandsDef& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ connectionBands_.swap (v);
+ }
+
connectionBands_.push_back (e);
+ connectionBands_.back ().container (this);
}
size_t ORBResources::
@@ -612,12 +737,12 @@ namespace CIAO
ThreadpoolDef::
ThreadpoolDef (::XMLSchema::unsignedLong const& stacksize__,
- ::XMLSchema::unsignedLong const& static_threads__,
- ::XMLSchema::unsignedLong const& dynamic_threads__,
- ::CIAO::Config_Handlers::Priority const& default_priority__,
- ::XMLSchema::boolean const& allow_request_buffering__,
- ::XMLSchema::unsignedLong const& max_buffered_requests__,
- ::XMLSchema::unsignedLong const& max_request_buffered_size__)
+ ::XMLSchema::unsignedLong const& static_threads__,
+ ::XMLSchema::unsignedLong const& dynamic_threads__,
+ ::CIAO::Config_Handlers::Priority const& default_priority__,
+ ::XMLSchema::boolean const& allow_request_buffering__,
+ ::XMLSchema::unsignedLong const& max_buffered_requests__,
+ ::XMLSchema::unsignedLong const& max_request_buffered_size__)
:
::XSCRT::Type (),
stacksize_ (new ::XMLSchema::unsignedLong (stacksize__)),
@@ -825,10 +950,10 @@ namespace CIAO
ThreadpoolWithLanesDef::
ThreadpoolWithLanesDef (::XMLSchema::unsignedLong const& stacksize__,
- ::XMLSchema::boolean const& allow_borrowing__,
- ::XMLSchema::boolean const& allow_request_buffering__,
- ::XMLSchema::unsignedLong const& max_buffered_requests__,
- ::XMLSchema::unsignedLong const& max_request_buffered_size__)
+ ::XMLSchema::boolean const& allow_borrowing__,
+ ::XMLSchema::boolean const& allow_request_buffering__,
+ ::XMLSchema::unsignedLong const& max_buffered_requests__,
+ ::XMLSchema::unsignedLong const& max_request_buffered_size__)
:
::XSCRT::Type (),
stacksize_ (new ::XMLSchema::unsignedLong (stacksize__)),
@@ -857,8 +982,11 @@ namespace CIAO
id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
regulator__ ()
{
+ threadpoolLane_.reserve (s.threadpoolLane_.size ());
{
- for (threadpoolLane_const_iterator i (s.threadpoolLane_.begin ());i != s.threadpoolLane_.end ();++i) add_threadpoolLane (*i);
+ for (threadpoolLane_const_iterator i (s.threadpoolLane_.begin ());
+ i != s.threadpoolLane_.end ();
+ ++i) add_threadpoolLane (*i);
}
stacksize_->container (this);
@@ -873,8 +1001,11 @@ namespace CIAO
operator= (::CIAO::Config_Handlers::ThreadpoolWithLanesDef const& s)
{
threadpoolLane_.clear ();
+ threadpoolLane_.reserve (s.threadpoolLane_.size ());
{
- for (threadpoolLane_const_iterator i (s.threadpoolLane_.begin ());i != s.threadpoolLane_.end ();++i) add_threadpoolLane (*i);
+ for (threadpoolLane_const_iterator i (s.threadpoolLane_.begin ());
+ i != s.threadpoolLane_.end ();
+ ++i) add_threadpoolLane (*i);
}
stacksize (s.stacksize ());
@@ -923,7 +1054,26 @@ namespace CIAO
void ThreadpoolWithLanesDef::
add_threadpoolLane (::CIAO::Config_Handlers::ThreadpoolLaneDef const& e)
{
+ if (threadpoolLane_.capacity () < threadpoolLane_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::ThreadpoolLaneDef > v;
+ v.reserve (threadpoolLane_.size () + 1);
+
+ for (threadpoolLane_iterator i = threadpoolLane_.begin ();
+ i != threadpoolLane_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::ThreadpoolLaneDef& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ threadpoolLane_.swap (v);
+ }
+
threadpoolLane_.push_back (e);
+ threadpoolLane_.back ().container (this);
}
size_t ThreadpoolWithLanesDef::
@@ -1043,8 +1193,8 @@ namespace CIAO
ThreadpoolLaneDef::
ThreadpoolLaneDef (::XMLSchema::unsignedLong const& static_threads__,
- ::XMLSchema::unsignedLong const& dynamic_threads__,
- ::CIAO::Config_Handlers::Priority const& priority__)
+ ::XMLSchema::unsignedLong const& dynamic_threads__,
+ ::CIAO::Config_Handlers::Priority const& priority__)
:
::XSCRT::Type (),
static_threads_ (new ::XMLSchema::unsignedLong (static_threads__)),
@@ -1145,8 +1295,11 @@ namespace CIAO
id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
regulator__ ()
{
+ band_.reserve (s.band_.size ());
{
- for (band_const_iterator i (s.band_.begin ());i != s.band_.end ();++i) add_band (*i);
+ for (band_const_iterator i (s.band_.begin ());
+ i != s.band_.end ();
+ ++i) add_band (*i);
}
if (id_.get ()) id_->container (this);
@@ -1156,8 +1309,11 @@ namespace CIAO
operator= (::CIAO::Config_Handlers::ConnectionBandsDef const& s)
{
band_.clear ();
+ band_.reserve (s.band_.size ());
{
- for (band_const_iterator i (s.band_.begin ());i != s.band_.end ();++i) add_band (*i);
+ for (band_const_iterator i (s.band_.begin ());
+ i != s.band_.end ();
+ ++i) add_band (*i);
}
if (s.id_.get ()) id (*(s.id_));
@@ -1196,7 +1352,26 @@ namespace CIAO
void ConnectionBandsDef::
add_band (::CIAO::Config_Handlers::PriorityBandDef const& e)
{
+ if (band_.capacity () < band_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::PriorityBandDef > v;
+ v.reserve (band_.size () + 1);
+
+ for (band_iterator i = band_.begin ();
+ i != band_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::PriorityBandDef& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ band_.swap (v);
+ }
+
band_.push_back (e);
+ band_.back ().container (this);
}
size_t ConnectionBandsDef::
@@ -1246,7 +1421,7 @@ namespace CIAO
PriorityBandDef::
PriorityBandDef (::XMLSchema::int_ const& low__,
- ::XMLSchema::int_ const& high__)
+ ::XMLSchema::int_ const& high__)
:
::XSCRT::Type (),
low_ (new ::XMLSchema::int_ (low__)),
@@ -1327,16 +1502,25 @@ namespace CIAO
id_ (s.id_.get () ? new ::XMLSchema::ID< ACE_TCHAR > (*s.id_) : 0),
regulator__ ()
{
+ priorityModel_.reserve (s.priorityModel_.size ());
{
- for (priorityModel_const_iterator i (s.priorityModel_.begin ());i != s.priorityModel_.end ();++i) add_priorityModel (*i);
+ for (priorityModel_const_iterator i (s.priorityModel_.begin ());
+ i != s.priorityModel_.end ();
+ ++i) add_priorityModel (*i);
}
+ threadpool_.reserve (s.threadpool_.size ());
{
- for (threadpool_const_iterator i (s.threadpool_.begin ());i != s.threadpool_.end ();++i) add_threadpool (*i);
+ for (threadpool_const_iterator i (s.threadpool_.begin ());
+ i != s.threadpool_.end ();
+ ++i) add_threadpool (*i);
}
+ priorityBandedConnection_.reserve (s.priorityBandedConnection_.size ());
{
- for (priorityBandedConnection_const_iterator i (s.priorityBandedConnection_.begin ());i != s.priorityBandedConnection_.end ();++i) add_priorityBandedConnection (*i);
+ for (priorityBandedConnection_const_iterator i (s.priorityBandedConnection_.begin ());
+ i != s.priorityBandedConnection_.end ();
+ ++i) add_priorityBandedConnection (*i);
}
if (id_.get ()) id_->container (this);
@@ -1346,18 +1530,27 @@ namespace CIAO
operator= (::CIAO::Config_Handlers::PolicySet const& s)
{
priorityModel_.clear ();
+ priorityModel_.reserve (s.priorityModel_.size ());
{
- for (priorityModel_const_iterator i (s.priorityModel_.begin ());i != s.priorityModel_.end ();++i) add_priorityModel (*i);
+ for (priorityModel_const_iterator i (s.priorityModel_.begin ());
+ i != s.priorityModel_.end ();
+ ++i) add_priorityModel (*i);
}
threadpool_.clear ();
+ threadpool_.reserve (s.threadpool_.size ());
{
- for (threadpool_const_iterator i (s.threadpool_.begin ());i != s.threadpool_.end ();++i) add_threadpool (*i);
+ for (threadpool_const_iterator i (s.threadpool_.begin ());
+ i != s.threadpool_.end ();
+ ++i) add_threadpool (*i);
}
priorityBandedConnection_.clear ();
+ priorityBandedConnection_.reserve (s.priorityBandedConnection_.size ());
{
- for (priorityBandedConnection_const_iterator i (s.priorityBandedConnection_.begin ());i != s.priorityBandedConnection_.end ();++i) add_priorityBandedConnection (*i);
+ for (priorityBandedConnection_const_iterator i (s.priorityBandedConnection_.begin ());
+ i != s.priorityBandedConnection_.end ();
+ ++i) add_priorityBandedConnection (*i);
}
if (s.id_.get ()) id (*(s.id_));
@@ -1396,7 +1589,26 @@ namespace CIAO
void PolicySet::
add_priorityModel (::CIAO::Config_Handlers::PriorityModelPolicyDef const& e)
{
+ if (priorityModel_.capacity () < priorityModel_.size () + 1)
+ {
+ ::std::vector< ::CIAO::Config_Handlers::PriorityModelPolicyDef > v;
+ v.reserve (priorityModel_.size () + 1);
+
+ for (priorityModel_iterator i = priorityModel_.begin ();
+ i != priorityModel_.end ();
+ ++i)
+ {
+ ::CIAO::Config_Handlers::PriorityModelPolicyDef& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ priorityModel_.swap (v);
+ }
+
priorityModel_.push_back (e);
+ priorityModel_.back ().container (this);
}
size_t PolicySet::
@@ -1434,7 +1646,26 @@ namespace CIAO
void PolicySet::
add_threadpool (::XMLSchema::IDREF< ACE_TCHAR > const& e)
{
+ if (threadpool_.capacity () < threadpool_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > > v;
+ v.reserve (threadpool_.size () + 1);
+
+ for (threadpool_iterator i = threadpool_.begin ();
+ i != threadpool_.end ();
+ ++i)
+ {
+ ::XMLSchema::IDREF< ACE_TCHAR >& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ threadpool_.swap (v);
+ }
+
threadpool_.push_back (e);
+ threadpool_.back ().container (this);
}
size_t PolicySet::
@@ -1472,7 +1703,26 @@ namespace CIAO
void PolicySet::
add_priorityBandedConnection (::XMLSchema::IDREF< ACE_TCHAR > const& e)
{
+ if (priorityBandedConnection_.capacity () < priorityBandedConnection_.size () + 1)
+ {
+ ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > > v;
+ v.reserve (priorityBandedConnection_.size () + 1);
+
+ for (priorityBandedConnection_iterator i = priorityBandedConnection_.begin ();
+ i != priorityBandedConnection_.end ();
+ ++i)
+ {
+ ::XMLSchema::IDREF< ACE_TCHAR >& t = *i;
+ t.container (0);
+ v.push_back (t);
+ v.back ().container (this);
+ }
+
+ priorityBandedConnection_.swap (v);
+ }
+
priorityBandedConnection_.push_back (e);
+ priorityBandedConnection_.back ().container (this);
}
size_t PolicySet::
@@ -2635,7 +2885,9 @@ namespace CIAO
if (b != e)
{
arg_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) arg_next (o);
@@ -2655,7 +2907,9 @@ namespace CIAO
if (b != e)
{
arg_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) arg_next (o);
@@ -2835,7 +3089,9 @@ namespace CIAO
if (b != e)
{
policySet_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) policySet_next (o);
@@ -2855,7 +3111,9 @@ namespace CIAO
if (b != e)
{
policySet_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) policySet_next (o);
@@ -2949,7 +3207,9 @@ namespace CIAO
if (b != e)
{
threadpool_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpool_next (o);
@@ -2971,7 +3231,9 @@ namespace CIAO
if (b != e)
{
threadpool_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpool_next (o);
@@ -3033,7 +3295,9 @@ namespace CIAO
if (b != e)
{
threadpoolWithLanes_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpoolWithLanes_next (o);
@@ -3055,7 +3319,9 @@ namespace CIAO
if (b != e)
{
threadpoolWithLanes_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpoolWithLanes_next (o);
@@ -3117,7 +3383,9 @@ namespace CIAO
if (b != e)
{
connectionBands_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connectionBands_next (o);
@@ -3139,7 +3407,9 @@ namespace CIAO
if (b != e)
{
connectionBands_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connectionBands_next (o);
@@ -3455,7 +3725,9 @@ namespace CIAO
if (b != e)
{
threadpoolLane_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpoolLane_next (o);
@@ -3475,7 +3747,9 @@ namespace CIAO
if (b != e)
{
threadpoolLane_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpoolLane_next (o);
@@ -3731,7 +4005,9 @@ namespace CIAO
if (b != e)
{
band_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) band_next (o);
@@ -3751,7 +4027,9 @@ namespace CIAO
if (b != e)
{
band_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) band_next (o);
@@ -3937,7 +4215,9 @@ namespace CIAO
if (b != e)
{
priorityModel_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) priorityModel_next (o);
@@ -3959,7 +4239,9 @@ namespace CIAO
if (b != e)
{
priorityModel_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) priorityModel_next (o);
@@ -4021,7 +4303,9 @@ namespace CIAO
if (b != e)
{
threadpool_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpool_next (o);
@@ -4043,7 +4327,9 @@ namespace CIAO
if (b != e)
{
threadpool_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) threadpool_next (o);
@@ -4105,7 +4391,9 @@ namespace CIAO
if (b != e)
{
priorityBandedConnection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) priorityBandedConnection_next (o);
@@ -4127,7 +4415,9 @@ namespace CIAO
if (b != e)
{
priorityBandedConnection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) priorityBandedConnection_next (o);
@@ -4565,6 +4855,10 @@ namespace CIAO
void Priority::
traverse (Type const& o)
{
+ std::basic_ostringstream<ACE_TCHAR> os;
+ os << o;
+ top_().value (os.str ());
+ //::XMLSchema::Writer::FundamentalType< ::XMLSchema::int_, ACE_TCHAR >::traverse (o);
Traversal::Priority::traverse (o);
}
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
index cceaf787891..1c5ac74417a 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
@@ -47,7 +47,7 @@ namespace CIAO
}
#include <memory>
-#include <list>
+#include <vector>
#include "XMLSchema/Types.hpp"
namespace CIAO
@@ -121,8 +121,8 @@ namespace CIAO
// arg
//
public:
- typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::iterator arg_iterator;
- typedef ::std::list< ::XMLSchema::string< ACE_TCHAR > >::const_iterator arg_const_iterator;
+ typedef ::std::vector< ::XMLSchema::string< ACE_TCHAR > >::iterator arg_iterator;
+ typedef ::std::vector< ::XMLSchema::string< ACE_TCHAR > >::const_iterator arg_const_iterator;
arg_iterator begin_arg ();
arg_iterator end_arg ();
arg_const_iterator begin_arg () const;
@@ -131,7 +131,7 @@ namespace CIAO
size_t count_arg (void) const;
protected:
- ::std::list< ::XMLSchema::string< ACE_TCHAR > > arg_;
+ ::std::vector< ::XMLSchema::string< ACE_TCHAR > > arg_;
public:
ServerCmdlineOptions ();
@@ -194,8 +194,8 @@ namespace CIAO
// policySet
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::PolicySet >::iterator policySet_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::PolicySet >::const_iterator policySet_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PolicySet >::iterator policySet_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PolicySet >::const_iterator policySet_const_iterator;
policySet_iterator begin_policySet ();
policySet_iterator end_policySet ();
policySet_const_iterator begin_policySet () const;
@@ -204,7 +204,7 @@ namespace CIAO
size_t count_policySet (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::PolicySet > policySet_;
+ ::std::vector< ::CIAO::Config_Handlers::PolicySet > policySet_;
public:
ORBConfigs ();
@@ -228,8 +228,8 @@ namespace CIAO
// threadpool
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::ThreadpoolDef >::iterator threadpool_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::ThreadpoolDef >::const_iterator threadpool_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ThreadpoolDef >::iterator threadpool_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ThreadpoolDef >::const_iterator threadpool_const_iterator;
threadpool_iterator begin_threadpool ();
threadpool_iterator end_threadpool ();
threadpool_const_iterator begin_threadpool () const;
@@ -238,13 +238,13 @@ namespace CIAO
size_t count_threadpool (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::ThreadpoolDef > threadpool_;
+ ::std::vector< ::CIAO::Config_Handlers::ThreadpoolDef > threadpool_;
// threadpoolWithLanes
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef >::iterator threadpoolWithLanes_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef >::const_iterator threadpoolWithLanes_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef >::iterator threadpoolWithLanes_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef >::const_iterator threadpoolWithLanes_const_iterator;
threadpoolWithLanes_iterator begin_threadpoolWithLanes ();
threadpoolWithLanes_iterator end_threadpoolWithLanes ();
threadpoolWithLanes_const_iterator begin_threadpoolWithLanes () const;
@@ -253,13 +253,13 @@ namespace CIAO
size_t count_threadpoolWithLanes (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef > threadpoolWithLanes_;
+ ::std::vector< ::CIAO::Config_Handlers::ThreadpoolWithLanesDef > threadpoolWithLanes_;
// connectionBands
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::ConnectionBandsDef >::iterator connectionBands_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::ConnectionBandsDef >::const_iterator connectionBands_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ConnectionBandsDef >::iterator connectionBands_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ConnectionBandsDef >::const_iterator connectionBands_const_iterator;
connectionBands_iterator begin_connectionBands ();
connectionBands_iterator end_connectionBands ();
connectionBands_const_iterator begin_connectionBands () const;
@@ -268,7 +268,7 @@ namespace CIAO
size_t count_connectionBands (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::ConnectionBandsDef > connectionBands_;
+ ::std::vector< ::CIAO::Config_Handlers::ConnectionBandsDef > connectionBands_;
public:
ORBResources ();
@@ -384,12 +384,12 @@ namespace CIAO
public:
ThreadpoolDef (::XMLSchema::unsignedLong const& stacksize__,
- ::XMLSchema::unsignedLong const& static_threads__,
- ::XMLSchema::unsignedLong const& dynamic_threads__,
- ::CIAO::Config_Handlers::Priority const& default_priority__,
- ::XMLSchema::boolean const& allow_request_buffering__,
- ::XMLSchema::unsignedLong const& max_buffered_requests__,
- ::XMLSchema::unsignedLong const& max_request_buffered_size__);
+ ::XMLSchema::unsignedLong const& static_threads__,
+ ::XMLSchema::unsignedLong const& dynamic_threads__,
+ ::CIAO::Config_Handlers::Priority const& default_priority__,
+ ::XMLSchema::boolean const& allow_request_buffering__,
+ ::XMLSchema::unsignedLong const& max_buffered_requests__,
+ ::XMLSchema::unsignedLong const& max_request_buffered_size__);
ThreadpoolDef (::XSCRT::XML::Element< ACE_TCHAR > const&);
ThreadpoolDef (ThreadpoolDef const& s);
@@ -410,8 +410,8 @@ namespace CIAO
// threadpoolLane
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::ThreadpoolLaneDef >::iterator threadpoolLane_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::ThreadpoolLaneDef >::const_iterator threadpoolLane_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ThreadpoolLaneDef >::iterator threadpoolLane_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::ThreadpoolLaneDef >::const_iterator threadpoolLane_const_iterator;
threadpoolLane_iterator begin_threadpoolLane ();
threadpoolLane_iterator end_threadpoolLane ();
threadpoolLane_const_iterator begin_threadpoolLane () const;
@@ -420,7 +420,7 @@ namespace CIAO
size_t count_threadpoolLane (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::ThreadpoolLaneDef > threadpoolLane_;
+ ::std::vector< ::CIAO::Config_Handlers::ThreadpoolLaneDef > threadpoolLane_;
// stacksize
//
@@ -480,10 +480,10 @@ namespace CIAO
public:
ThreadpoolWithLanesDef (::XMLSchema::unsignedLong const& stacksize__,
- ::XMLSchema::boolean const& allow_borrowing__,
- ::XMLSchema::boolean const& allow_request_buffering__,
- ::XMLSchema::unsignedLong const& max_buffered_requests__,
- ::XMLSchema::unsignedLong const& max_request_buffered_size__);
+ ::XMLSchema::boolean const& allow_borrowing__,
+ ::XMLSchema::boolean const& allow_request_buffering__,
+ ::XMLSchema::unsignedLong const& max_buffered_requests__,
+ ::XMLSchema::unsignedLong const& max_request_buffered_size__);
ThreadpoolWithLanesDef (::XSCRT::XML::Element< ACE_TCHAR > const&);
ThreadpoolWithLanesDef (ThreadpoolWithLanesDef const& s);
@@ -530,8 +530,8 @@ namespace CIAO
public:
ThreadpoolLaneDef (::XMLSchema::unsignedLong const& static_threads__,
- ::XMLSchema::unsignedLong const& dynamic_threads__,
- ::CIAO::Config_Handlers::Priority const& priority__);
+ ::XMLSchema::unsignedLong const& dynamic_threads__,
+ ::CIAO::Config_Handlers::Priority const& priority__);
ThreadpoolLaneDef (::XSCRT::XML::Element< ACE_TCHAR > const&);
ThreadpoolLaneDef (ThreadpoolLaneDef const& s);
@@ -552,8 +552,8 @@ namespace CIAO
// band
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::PriorityBandDef >::iterator band_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::PriorityBandDef >::const_iterator band_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PriorityBandDef >::iterator band_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PriorityBandDef >::const_iterator band_const_iterator;
band_iterator begin_band ();
band_iterator end_band ();
band_const_iterator begin_band () const;
@@ -562,7 +562,7 @@ namespace CIAO
size_t count_band (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::PriorityBandDef > band_;
+ ::std::vector< ::CIAO::Config_Handlers::PriorityBandDef > band_;
// id
//
@@ -614,7 +614,7 @@ namespace CIAO
public:
PriorityBandDef (::XMLSchema::int_ const& low__,
- ::XMLSchema::int_ const& high__);
+ ::XMLSchema::int_ const& high__);
PriorityBandDef (::XSCRT::XML::Element< ACE_TCHAR > const&);
PriorityBandDef (PriorityBandDef const& s);
@@ -635,8 +635,8 @@ namespace CIAO
// priorityModel
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::PriorityModelPolicyDef >::iterator priorityModel_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::PriorityModelPolicyDef >::const_iterator priorityModel_const_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PriorityModelPolicyDef >::iterator priorityModel_iterator;
+ typedef ::std::vector< ::CIAO::Config_Handlers::PriorityModelPolicyDef >::const_iterator priorityModel_const_iterator;
priorityModel_iterator begin_priorityModel ();
priorityModel_iterator end_priorityModel ();
priorityModel_const_iterator begin_priorityModel () const;
@@ -645,13 +645,13 @@ namespace CIAO
size_t count_priorityModel (void) const;
protected:
- ::std::list< ::CIAO::Config_Handlers::PriorityModelPolicyDef > priorityModel_;
+ ::std::vector< ::CIAO::Config_Handlers::PriorityModelPolicyDef > priorityModel_;
// threadpool
//
public:
- typedef ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > >::iterator threadpool_iterator;
- typedef ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > >::const_iterator threadpool_const_iterator;
+ typedef ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > >::iterator threadpool_iterator;
+ typedef ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > >::const_iterator threadpool_const_iterator;
threadpool_iterator begin_threadpool ();
threadpool_iterator end_threadpool ();
threadpool_const_iterator begin_threadpool () const;
@@ -660,13 +660,13 @@ namespace CIAO
size_t count_threadpool (void) const;
protected:
- ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > > threadpool_;
+ ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > > threadpool_;
// priorityBandedConnection
//
public:
- typedef ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > >::iterator priorityBandedConnection_iterator;
- typedef ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > >::const_iterator priorityBandedConnection_const_iterator;
+ typedef ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > >::iterator priorityBandedConnection_iterator;
+ typedef ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > >::const_iterator priorityBandedConnection_const_iterator;
priorityBandedConnection_iterator begin_priorityBandedConnection ();
priorityBandedConnection_iterator end_priorityBandedConnection ();
priorityBandedConnection_const_iterator begin_priorityBandedConnection () const;
@@ -675,7 +675,7 @@ namespace CIAO
size_t count_priorityBandedConnection (void) const;
protected:
- ::std::list< ::XMLSchema::IDREF< ACE_TCHAR > > priorityBandedConnection_;
+ ::std::vector< ::XMLSchema::IDREF< ACE_TCHAR > > priorityBandedConnection_;
// id
//
@@ -1599,6 +1599,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ServerResourcesDef Type;
ServerResourcesDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1607,9 +1608,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
cmdline (Type &o)
{
@@ -1618,9 +1622,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
cmdline (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
svcconf (Type &o)
{
@@ -1629,9 +1636,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
svcconf (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
orbConfigs (Type &o)
{
@@ -1640,9 +1650,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
orbConfigs (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -1651,6 +1664,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -1664,6 +1678,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ServerCmdlineOptions Type;
ServerCmdlineOptions (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1672,9 +1687,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
arg_pre (Type &o)
{
@@ -1683,9 +1701,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
arg_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
arg_next (Type &o)
{
@@ -1694,9 +1715,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
arg_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
arg_post (Type &o)
{
@@ -1705,6 +1729,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
arg_post (Type const&);
@@ -1718,6 +1743,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ACESvcConf Type;
ACESvcConf (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1726,9 +1752,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
uri (Type &o)
{
@@ -1737,6 +1766,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
uri (Type const&);
@@ -1750,6 +1780,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ORBConfigs Type;
ORBConfigs (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1758,9 +1789,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resources (Type &o)
{
@@ -1769,9 +1803,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resources (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
policySet_pre (Type &o)
{
@@ -1780,9 +1817,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
policySet_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
policySet_next (Type &o)
{
@@ -1791,9 +1831,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
policySet_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
policySet_post (Type &o)
{
@@ -1802,6 +1845,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
policySet_post (Type const&);
@@ -1815,6 +1859,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ORBResources Type;
ORBResources (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1823,9 +1868,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpool_pre (Type &o)
{
@@ -1834,9 +1882,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpool_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpool_next (Type &o)
{
@@ -1845,9 +1896,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpool_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpool_post (Type &o)
{
@@ -1856,9 +1910,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpool_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpoolWithLanes_pre (Type &o)
{
@@ -1867,9 +1924,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpoolWithLanes_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpoolWithLanes_next (Type &o)
{
@@ -1878,9 +1938,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpoolWithLanes_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpoolWithLanes_post (Type &o)
{
@@ -1889,9 +1952,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpoolWithLanes_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connectionBands_pre (Type &o)
{
@@ -1900,9 +1966,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connectionBands_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connectionBands_next (Type &o)
{
@@ -1911,9 +1980,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connectionBands_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connectionBands_post (Type &o)
{
@@ -1922,6 +1994,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connectionBands_post (Type const&);
@@ -1930,19 +2003,21 @@ namespace CIAO
};
struct Priority : Traversal::Priority,
+// virtual ::XMLSchema::Writer::FundamentalType< ::XMLSchema::int_, ACE_TCHAR >,
virtual ::XSCRT::Writer< ACE_TCHAR >
{
typedef ::CIAO::Config_Handlers::Priority Type;
Priority (::XSCRT::XML::Element< ACE_TCHAR >&);
-
+
+ #ifdef __BORLANDC__
+
virtual void
traverse (Type &o)
{
-
this->traverse (const_cast <Type const &> (o));
}
-
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
@@ -1956,6 +2031,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ThreadpoolDef Type;
ThreadpoolDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1964,9 +2040,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
stacksize (Type &o)
{
@@ -1975,9 +2054,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
stacksize (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
static_threads (Type &o)
{
@@ -1986,9 +2068,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
static_threads (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dynamic_threads (Type &o)
{
@@ -1997,9 +2082,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dynamic_threads (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
default_priority (Type &o)
{
@@ -2008,9 +2096,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
default_priority (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
allow_request_buffering (Type &o)
{
@@ -2019,9 +2110,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
allow_request_buffering (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
max_buffered_requests (Type &o)
{
@@ -2030,9 +2124,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
max_buffered_requests (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
max_request_buffered_size (Type &o)
{
@@ -2041,9 +2138,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
max_request_buffered_size (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -2052,6 +2152,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -2065,6 +2166,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ThreadpoolWithLanesDef Type;
ThreadpoolWithLanesDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -2073,9 +2175,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpoolLane_pre (Type &o)
{
@@ -2084,9 +2189,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpoolLane_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpoolLane_next (Type &o)
{
@@ -2095,9 +2203,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpoolLane_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpoolLane_post (Type &o)
{
@@ -2106,9 +2217,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpoolLane_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
stacksize (Type &o)
{
@@ -2117,9 +2231,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
stacksize (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
allow_borrowing (Type &o)
{
@@ -2128,9 +2245,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
allow_borrowing (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
allow_request_buffering (Type &o)
{
@@ -2139,9 +2259,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
allow_request_buffering (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
max_buffered_requests (Type &o)
{
@@ -2150,9 +2273,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
max_buffered_requests (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
max_request_buffered_size (Type &o)
{
@@ -2161,9 +2287,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
max_request_buffered_size (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -2172,6 +2301,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -2185,6 +2315,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ThreadpoolLaneDef Type;
ThreadpoolLaneDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -2193,9 +2324,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
static_threads (Type &o)
{
@@ -2204,9 +2338,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
static_threads (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dynamic_threads (Type &o)
{
@@ -2215,9 +2352,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dynamic_threads (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priority (Type &o)
{
@@ -2226,6 +2366,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priority (Type const&);
@@ -2239,6 +2380,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ConnectionBandsDef Type;
ConnectionBandsDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -2247,9 +2389,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
band_pre (Type &o)
{
@@ -2258,9 +2403,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
band_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
band_next (Type &o)
{
@@ -2269,9 +2417,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
band_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
band_post (Type &o)
{
@@ -2280,9 +2431,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
band_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -2291,6 +2445,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -2304,6 +2459,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PriorityBandDef Type;
PriorityBandDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -2312,9 +2468,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
low (Type &o)
{
@@ -2323,9 +2482,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
low (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
high (Type &o)
{
@@ -2334,6 +2496,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
high (Type const&);
@@ -2347,6 +2510,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PolicySet Type;
PolicySet (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -2355,9 +2519,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priorityModel_pre (Type &o)
{
@@ -2366,9 +2533,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priorityModel_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priorityModel_next (Type &o)
{
@@ -2377,9 +2547,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priorityModel_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priorityModel_post (Type &o)
{
@@ -2388,9 +2561,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priorityModel_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpool_pre (Type &o)
{
@@ -2399,9 +2575,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpool_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpool_next (Type &o)
{
@@ -2410,9 +2589,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpool_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
threadpool_post (Type &o)
{
@@ -2421,9 +2603,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
threadpool_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priorityBandedConnection_pre (Type &o)
{
@@ -2432,9 +2617,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priorityBandedConnection_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priorityBandedConnection_next (Type &o)
{
@@ -2443,9 +2631,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priorityBandedConnection_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priorityBandedConnection_post (Type &o)
{
@@ -2454,9 +2645,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priorityBandedConnection_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -2465,6 +2659,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -2477,12 +2672,14 @@ namespace CIAO
{
PriorityModel (::XSCRT::XML::Element< ACE_TCHAR >&);
- virtual void
+ #ifdef __BORLANDC__
+ virtual void PriorityModel::
traverse (Type &o)
{
this->traverse (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
@@ -2496,6 +2693,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PriorityModelPolicyDef Type;
PriorityModelPolicyDef (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -2504,9 +2702,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
priority_model (Type &o)
{
@@ -2515,9 +2716,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
priority_model (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
server_priority (Type &o)
{
@@ -2526,6 +2730,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
server_priority (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/PS_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/PS_Handler.cpp
index bbe8f7a28db..14ce2d8702b 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/PS_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/PS_Handler.cpp
@@ -26,11 +26,7 @@ namespace CIAO
i != src.end_priorityModel ();
++i)
{
- ::CIAO::DAnCE::PriorityModelPolicyDef pmd;
-
- PM_Handler::priority_model_pd (*i, pmd);
-
- dest.policies[len++].PriorityModelDef (pmd);
+ PM_Handler::priority_model_pd (*i, dest.policies[len++].PriorityModelDef ());
}
for (PolicySet::threadpool_const_iterator i = src.begin_threadpool ();
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/TPL_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/TPL_Handler.cpp
index 5232b48a757..eaf336d4b52 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/TPL_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/TPL_Handler.cpp
@@ -9,73 +9,75 @@ namespace CIAO
{
bool
TPL_Handler::threadpool_with_lanes (
- const ThreadpoolWithLanesDef &src,
- ::CIAO::DAnCE::ORS_ThreadpoolWithLanes &dest)
- {
- if (src.id_p ())
- {
+ const ThreadpoolWithLanesDef &src,
+ ::CIAO::DAnCE::ORS_ThreadpoolWithLanes &dest
+ )
+ {
+ if (src.id_p ())
+ {
dest.Id = CORBA::string_dup (src.id().c_str ());
}
- for (ThreadpoolWithLanesDef::threadpoolLane_const_iterator loc =
- src.begin_threadpoolLane ();
- loc != src.end_threadpoolLane ();
- loc++)
- {
- size_t len = dest.threadpool_lanes.length ();
+ for (ThreadpoolWithLanesDef::threadpoolLane_const_iterator loc =
+ src.begin_threadpoolLane ();
+ loc != src.end_threadpoolLane ();
+ loc++)
+ {
+ size_t len = dest.threadpool_lanes.length ();
- dest.threadpool_lanes.length (len + 1);
+ dest.threadpool_lanes.length (len + 1);
dest.threadpool_lanes[len].lane_priority =
- static_cast <ACE_INT16> (loc->priority ());
+ static_cast <const ACE_INT16> (loc->priority ());
- dest.threadpool_lanes[len].static_threads =
- static_cast <ACE_UINT32> (loc->static_threads ());
+ dest.threadpool_lanes[len].static_threads =
+ static_cast <ACE_UINT32> (loc->static_threads ());
- dest.threadpool_lanes[len].dynamic_threads =
- static_cast <ACE_UINT32> (loc->dynamic_threads ());
- }
-
- dest.stacksize = static_cast <ACE_INT16> (src.stacksize ());
+ dest.threadpool_lanes[len].dynamic_threads =
+ static_cast <ACE_UINT32> (loc->dynamic_threads ());
+ }
- dest.allow_borrowing = src.allow_borrowing ();
+ dest.allow_borrowing = src.allow_borrowing ();
- dest.allow_request_buffering = src.allow_request_buffering ();
+ dest.allow_request_buffering = src.allow_request_buffering ();
- dest.max_buffered_requests =
- static_cast <ACE_UINT32> (src.max_buffered_requests ());
+ dest.max_buffered_requests =
+ static_cast <ACE_UINT32> (src.max_buffered_requests ());
- dest.max_request_buffer_size =
- static_cast <ACE_UINT32> (src.max_request_buffered_size ());
+ dest.max_request_buffer_size =
+ static_cast <ACE_UINT32> (src.max_request_buffered_size ());
- return true;
- }
+ return true;
+ }
- ThreadpoolWithLanesDef TPL_Handler::threadpool_with_lanes (
- const ::CIAO::DAnCE::ORS_ThreadpoolWithLanes &src)
- {
- ThreadpoolWithLanesDef tpl (XMLSchema::unsignedLong (src.stacksize),
- XMLSchema::boolean ((src.allow_borrowing)),
- XMLSchema::boolean ((src.allow_request_buffering)),
- XMLSchema::unsignedLong ((src.max_buffered_requests)),
- XMLSchema::unsignedLong ((src.max_request_buffer_size))
- );
+ ThreadpoolWithLanesDef TPL_Handler::threadpool_with_lanes (
+ const ::CIAO::DAnCE::ORS_ThreadpoolWithLanes &src
+ )
+ {
+ ThreadpoolWithLanesDef tpl (
+ XMLSchema::unsignedLong (src.stacksize),
+ XMLSchema::boolean ((src.allow_borrowing)),
+ XMLSchema::boolean ((src.allow_request_buffering)),
+ XMLSchema::unsignedLong ((src.max_buffered_requests)),
+ XMLSchema::unsignedLong ((src.max_request_buffer_size))
+ );
- //XMLSchema::ID <ACE_TCHAR> id = ((src.Id));
- tpl.id (src.Id.in ());
+ //XMLSchema::ID <ACE_TCHAR> id = ((src.Id));
+ tpl.id (src.Id.in ());
- size_t len = src.threadpool_lanes.length ();
- for (size_t i = 0; i < len; i++)
- {
- ThreadpoolLaneDef new_tplane (
- XMLSchema::unsignedLong (src.threadpool_lanes[i].static_threads),
- XMLSchema::unsignedLong (src.threadpool_lanes[i].dynamic_threads),
- XMLSchema::int_ (src.threadpool_lanes[i].lane_priority));
+ size_t len = src.threadpool_lanes.length ();
+ for (size_t i = 0; i < len; i++)
+ {
+ ThreadpoolLaneDef new_tplane (
+ XMLSchema::unsignedLong (src.threadpool_lanes[i].static_threads),
+ XMLSchema::unsignedLong (src.threadpool_lanes[i].dynamic_threads),
+ XMLSchema::int_ (src.threadpool_lanes[i].lane_priority)
+ );
- tpl.add_threadpoolLane (new_tplane);
- }
+ tpl.add_threadpoolLane (new_tplane);
+ }
- return tpl;
- }
- }
+ return tpl;
+ }
+ }
}
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
index e177820261a..9f18172ba5b 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
@@ -16,7 +16,7 @@ static const char *input_file = "BasicSP.cdp";
static int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:");
int c;
@@ -41,7 +41,7 @@ parse_args (int argc, char *argv[])
using namespace CIAO::Config_Handlers;
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (parse_args (argc, argv) != 0)
diff --git a/TAO/CIAO/tools/Config_Handlers/Req_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/Req_Handler.cpp
index 621f24de6a3..4a52efb9967 100644
--- a/TAO/CIAO/tools/Config_Handlers/Req_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/Req_Handler.cpp
@@ -3,7 +3,7 @@
#include "Req_Handler.h"
#include "Property_Handler.h"
#include "ciao/DeploymentC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
namespace Config_Handlers
@@ -22,8 +22,6 @@ namespace CIAO
Deployment::Requirement& toconfig,
Requirement& desc)
{
- CIAO_TRACE("Req_Handler::get_Requirement");
-
//Map the basic string types to their Deployment::Req
//counterparts.
toconfig.name = CORBA::string_dup (desc.name ().c_str ());
@@ -40,22 +38,23 @@ namespace CIAO
toconfig.property[toconfig.property.length () - 1]);
}
- Requirement
- Req_Handler::get_requirement (const Deployment::Requirement& src)
- {
- CIAO_TRACE("Req_Handler::get_requirement - reverse");
-
- //Get the values for name and res
- XMLSchema::string< char > name ((src.name));
- XMLSchema::string< char > res ((src.resourceType));
-
- //Get the Property
- Property prop (Property_Handler::get_property (src.property[0]));
-
- //Instantiate the Requirement
- Requirement req (name,res,prop);
-
- return req;
- }
+ Requirement
+ Req_Handler::get_requirement (
+ const Deployment::Requirement& src)
+ {
+ //Get the values for name and res
+ XMLSchema::string< char > name ((src.name));
+ XMLSchema::string< char > res ((src.resourceType));
+
+ //Get the Property
+ Property prop (
+ Property_Handler::get_property (
+ src.property[0]));
+
+ //Instantiate the Requirement
+ Requirement req (name,res,prop);
+
+ return req;
+ }
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/STD_CPD_Handler.h b/TAO/CIAO/tools/Config_Handlers/STD_CPD_Handler.h
index 654fb0155ca..66db939ec49 100644
--- a/TAO/CIAO/tools/Config_Handlers/STD_CPD_Handler.h
+++ b/TAO/CIAO/tools/Config_Handlers/STD_CPD_Handler.h
@@ -58,20 +58,20 @@ namespace CIAO
const ComponentPackageDescription &desc,
::Deployment::ComponentPackageDescription &toconfig);
- //@@Note: This part has yet to be added in the future
- // ComponentPortDescription
- // component_package_descr (
- // const Deployment::ComponentPortDescription& src);
+//@@Note: This part has yet to be added in the future
+// ComponentPortDescription
+// component_package_descr (
+// const Deployment::ComponentPortDescription& src);
private:
// disable the default constructor
STD_CPD_Handler ()
:xml_helper_ (0)
{
}
-
+
XML_Helper *xml_helper_;
};
- }
+ }
}
#include /**/ "ace/post.h"
diff --git a/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp b/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp
index 6d4095a810b..f3eb1609c1b 100644
--- a/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp
@@ -11,7 +11,7 @@
#include "Deployment.hpp"
#include "STD_PCD_Handler.h"
#include "ciao/Packaging_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
{
@@ -26,8 +26,6 @@ namespace CIAO
bool
STD_PC_Intf::prepare_PC (const char *file)
{
- CIAO_TRACE("STD_PC_Intf::prepare_PC");
-
ACE_Auto_Ptr<XML_Helper> helper (new XML_Helper);
if (!helper->is_initialized ())
diff --git a/TAO/CIAO/tools/Config_Handlers/Utils/Utils.mpc b/TAO/CIAO/tools/Config_Handlers/Utils/Utils.mpc
index 6fc4f4697a1..359af0af27a 100644
--- a/TAO/CIAO/tools/Config_Handlers/Utils/Utils.mpc
+++ b/TAO/CIAO/tools/Config_Handlers/Utils/Utils.mpc
@@ -1,11 +1,12 @@
// $Id$
-project (CIAO_XML_Utils) : acelib, xerces, exceptions {
+project (CIAO_XML_Utils) : acelib, xerces {
includes += $(CIAO_ROOT)/tools/Config_Handlers
sharedname += CIAO_XML_Utils
dynamicflags = CIAO_XML_UTILS_BUILD_DLL
macros += XML_USE_PTHREADS
-
+ requires += exceptions
+
Source_Files {
XML_Schema_Resolver.cpp
XML_Error_Handler.cpp
diff --git a/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.cpp b/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.cpp
index 8901675a8b1..1d4d5a74a0e 100644
--- a/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.cpp
@@ -111,8 +111,8 @@ namespace Config_Handlers
{
return _wstr[i];
}
-
- XMLCh XStr::operator [] (const int i) const
+
+ const XMLCh XStr::operator [] (const int i) const
{
return _wstr[i];
}
diff --git a/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.h b/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.h
index 4df0f009984..9e8f963f8d1 100644
--- a/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.h
+++ b/TAO/CIAO/tools/Config_Handlers/Utils/XercesString.h
@@ -52,7 +52,7 @@ namespace Config_Handlers
XMLCh operator [] (const int i);
- XMLCh operator [] (const int i) const;
+ const XMLCh operator [] (const int i) const;
operator const XMLCh* () const { return _wstr; };
diff --git a/TAO/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp b/TAO/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp
index 04532665d51..c8dca806caf 100644
--- a/TAO/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/XMLSchema/Writer.hpp
@@ -26,8 +26,8 @@ namespace XMLSchema
}
using XSCRT::Writer<C>::top_;
- using XSCRT::Writer<C>::attr_;
-
+ using XSCRT::Writer<C>::attr_;
+
virtual void
traverse (T const& o)
{
@@ -48,12 +48,6 @@ namespace XMLSchema
}
protected:
- virtual void
- traverse (T &t)
- {
- Traversal::Traverser<T>::traverse (t);
- }
-
FundamentalType ()
{
}
@@ -89,13 +83,6 @@ namespace XMLSchema
}
protected:
-
- virtual void
- traverse (typename Traversal::Traverser<XMLSchema::IDREF<C> >::Type &o)
- {
- Traversal::Traverser<XMLSchema::IDREF<C> >::traverse (o);
- }
-
IDREF ()
{
}
diff --git a/TAO/CIAO/tools/Config_Handlers/XML_File_Intf.cpp b/TAO/CIAO/tools/Config_Handlers/XML_File_Intf.cpp
index 065890af816..8c4caa05475 100644
--- a/TAO/CIAO/tools/Config_Handlers/XML_File_Intf.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/XML_File_Intf.cpp
@@ -11,7 +11,7 @@
#include "Deployment.hpp"
#include "DP_Handler.h"
#include "ciao/Deployment_DataC.h"
-#include "ciao/CIAO_common.h"
+
namespace CIAO
@@ -27,8 +27,6 @@ namespace CIAO
bool
XML_File_Intf::read_process_file (const char *file)
{
- CIAO_TRACE("XML_File_Intf::read_process_file");
-
XML_Helper helper;
if (!helper.is_initialized ())
@@ -57,15 +55,12 @@ namespace CIAO
::Deployment::DeploymentPlan const *
XML_File_Intf::get_plan (void) const
{
- CIAO_TRACE("get_plan");
return this->idl_dp_.get ();
}
::Deployment::DeploymentPlan *
XML_File_Intf::get_plan (void)
{
- CIAO_TRACE("XML_File_Intf::get_plan");
-
return this->idl_dp_.release ();
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp b/TAO/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp
index 5fa1e827f8d..66fd4b6db5c 100644
--- a/TAO/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/XSCRT/Parser.hpp
@@ -30,7 +30,8 @@ namespace XSCRT
XML::Element<C>
next_element ()
{
- return XML::Element<C> (XML::dom_cast <xercesc::DOMElement*> (e_->item (ei_++)));
+ return XML::Element<C> (
+ dynamic_cast<xercesc::DOMElement*> (e_->item (ei_++)));
}
bool
@@ -43,7 +44,7 @@ namespace XSCRT
next_attribute ()
{
return XML::Attribute<C> (
- XML::dom_cast <xercesc::DOMAttr*> (a_->item (ai_++)));
+ dynamic_cast<xercesc::DOMAttr*> (a_->item (ai_++)));
}
private:
diff --git a/TAO/CIAO/tools/Config_Handlers/XSCRT/XML.hpp b/TAO/CIAO/tools/Config_Handlers/XSCRT/XML.hpp
index 588cb61dc84..4b440803a0f 100644
--- a/TAO/CIAO/tools/Config_Handlers/XSCRT/XML.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/XSCRT/XML.hpp
@@ -144,35 +144,6 @@ namespace XSCRT
template <typename C>
std::basic_string<C>
ns_prefix (std::basic_string<C> const& ns, Element<C> const& e);
-
- // Casting helpers, made necessary by the Xerces project's braindead
- // avoidance of RTTI.
- template <typename DERIVED> struct dom_traits;
-
- // Specializations for different node types
- template <>
- struct dom_traits<xercesc::DOMElement *>
- {
- enum { node_type = xercesc::DOMNode::ELEMENT_NODE };
- };
-
- template <>
- struct dom_traits<xercesc::DOMAttr *>
- {
- enum { node_type = xercesc::DOMNode::ATTRIBUTE_NODE };
- };
-
- template <typename DERIVED_PTR>
- DERIVED_PTR dom_cast (xercesc::DOMNode *node)
- {
- DERIVED_PTR elem = 0;
- if ((node != 0) &&
- (node->getNodeType () == dom_traits<DERIVED_PTR>::node_type))
- {
- elem = reinterpret_cast <DERIVED_PTR> (node);
- }
- return elem;
- }
template <typename C>
class Element
@@ -250,7 +221,7 @@ namespace XSCRT
Element<C>
parent () const
{
- return dom_cast <xercesc::DOMElement const*>(ce_->getParentNode ());
+ return dynamic_cast<xercesc::DOMElement const*>(ce_->getParentNode ());
}
public:
diff --git a/TAO/CIAO/tools/Config_Handlers/ccd.cpp b/TAO/CIAO/tools/Config_Handlers/ccd.cpp
index 3c561e8f1af..f9081629cc8 100644
--- a/TAO/CIAO/tools/Config_Handlers/ccd.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/ccd.cpp
@@ -34,38 +34,48 @@ namespace CIAO
UUID_ (s.UUID_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.UUID_) : 0),
specificType_ (s.specificType_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.specificType_) : 0),
contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.contentLocation_) : 0),
- href_ (s.href_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.href_) : 0),
regulator__ ()
{
if (label_.get ()) label_->container (this);
if (UUID_.get ()) UUID_->container (this);
if (specificType_.get ()) specificType_->container (this);
{
- for (supportedType_const_iterator i (s.supportedType_.begin ());i != s.supportedType_.end ();++i) add_supportedType (*i);
+ for (supportedType_const_iterator i (s.supportedType_.begin ());
+ i != s.supportedType_.end ();
+ ++i) add_supportedType (*i);
}
{
- for (idlFile_const_iterator i (s.idlFile_.begin ());i != s.idlFile_.end ();++i) add_idlFile (*i);
+ for (idlFile_const_iterator i (s.idlFile_.begin ());
+ i != s.idlFile_.end ();
+ ++i) add_idlFile (*i);
}
{
- for (configProperty_const_iterator i (s.configProperty_.begin ());i != s.configProperty_.end ();++i) add_configProperty (*i);
+ for (configProperty_const_iterator i (s.configProperty_.begin ());
+ i != s.configProperty_.end ();
+ ++i) add_configProperty (*i);
}
{
- for (port_const_iterator i (s.port_.begin ());i != s.port_.end ();++i) add_port (*i);
+ for (port_const_iterator i (s.port_.begin ());
+ i != s.port_.end ();
+ ++i) add_port (*i);
}
{
- for (property_const_iterator i (s.property_.begin ());i != s.property_.end ();++i) add_property (*i);
+ for (property_const_iterator i (s.property_.begin ());
+ i != s.property_.end ();
+ ++i) add_property (*i);
}
{
- for (infoProperty_const_iterator i (s.infoProperty_.begin ());i != s.infoProperty_.end ();++i) add_infoProperty (*i);
+ for (infoProperty_const_iterator i (s.infoProperty_.begin ());
+ i != s.infoProperty_.end ();
+ ++i) add_infoProperty (*i);
}
if (contentLocation_.get ()) contentLocation_->container (this);
- if (href_.get ()) href_->container (this);
}
::CIAO::Config_Handlers::ComponentInterfaceDescription& ComponentInterfaceDescription::
@@ -82,40 +92,49 @@ namespace CIAO
supportedType_.clear ();
{
- for (supportedType_const_iterator i (s.supportedType_.begin ());i != s.supportedType_.end ();++i) add_supportedType (*i);
+ for (supportedType_const_iterator i (s.supportedType_.begin ());
+ i != s.supportedType_.end ();
+ ++i) add_supportedType (*i);
}
idlFile_.clear ();
{
- for (idlFile_const_iterator i (s.idlFile_.begin ());i != s.idlFile_.end ();++i) add_idlFile (*i);
+ for (idlFile_const_iterator i (s.idlFile_.begin ());
+ i != s.idlFile_.end ();
+ ++i) add_idlFile (*i);
}
configProperty_.clear ();
{
- for (configProperty_const_iterator i (s.configProperty_.begin ());i != s.configProperty_.end ();++i) add_configProperty (*i);
+ for (configProperty_const_iterator i (s.configProperty_.begin ());
+ i != s.configProperty_.end ();
+ ++i) add_configProperty (*i);
}
port_.clear ();
{
- for (port_const_iterator i (s.port_.begin ());i != s.port_.end ();++i) add_port (*i);
+ for (port_const_iterator i (s.port_.begin ());
+ i != s.port_.end ();
+ ++i) add_port (*i);
}
property_.clear ();
{
- for (property_const_iterator i (s.property_.begin ());i != s.property_.end ();++i) add_property (*i);
+ for (property_const_iterator i (s.property_.begin ());
+ i != s.property_.end ();
+ ++i) add_property (*i);
}
infoProperty_.clear ();
{
- for (infoProperty_const_iterator i (s.infoProperty_.begin ());i != s.infoProperty_.end ();++i) add_infoProperty (*i);
+ for (infoProperty_const_iterator i (s.infoProperty_.begin ());
+ i != s.infoProperty_.end ();
+ ++i) add_infoProperty (*i);
}
if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_));
else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0);
- if (s.href_.get ()) href (*(s.href_));
- else href_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0);
-
return *this;
}
@@ -463,41 +482,6 @@ namespace CIAO
contentLocation_->container (this);
}
}
-
- // ComponentInterfaceDescription
- //
- bool ComponentInterfaceDescription::
- href_p () const
- {
- return href_.get () != 0;
- }
-
- ::XMLSchema::string< ACE_TCHAR > const& ComponentInterfaceDescription::
- href () const
- {
- return *href_;
- }
-
- ::XMLSchema::string< ACE_TCHAR >& ComponentInterfaceDescription::
- href ()
- {
- return *href_;
- }
-
- void ComponentInterfaceDescription::
- href (::XMLSchema::string< ACE_TCHAR > const& e)
- {
- if (href_.get ())
- {
- *href_ = e;
- }
-
- else
- {
- href_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e));
- href_->container (this);
- }
- }
}
}
@@ -584,21 +568,6 @@ namespace CIAO
{
}
}
-
- while (p.more_attributes ())
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ());
- ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ()));
- if (n == "href")
- {
- ::XMLSchema::string< ACE_TCHAR > t (a);
- href (t);
- }
-
- else
- {
- }
- }
}
}
}
@@ -665,8 +634,6 @@ namespace CIAO
infoProperty (o);
if (o.contentLocation_p ()) contentLocation (o);
else contentLocation_none (o);
- if (o.href_p ()) href (o);
- else href_none (o);
post (o);
}
@@ -688,8 +655,6 @@ namespace CIAO
infoProperty (o);
if (o.contentLocation_p ()) contentLocation (o);
else contentLocation_none (o);
- if (o.href_p ()) href (o);
- else href_none (o);
post (o);
}
@@ -779,7 +744,9 @@ namespace CIAO
if (b != e)
{
supportedType_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) supportedType_next (o);
@@ -801,7 +768,9 @@ namespace CIAO
if (b != e)
{
supportedType_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) supportedType_next (o);
@@ -863,7 +832,9 @@ namespace CIAO
if (b != e)
{
idlFile_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) idlFile_next (o);
@@ -885,7 +856,9 @@ namespace CIAO
if (b != e)
{
idlFile_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) idlFile_next (o);
@@ -947,7 +920,9 @@ namespace CIAO
if (b != e)
{
configProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) configProperty_next (o);
@@ -969,7 +944,9 @@ namespace CIAO
if (b != e)
{
configProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) configProperty_next (o);
@@ -1031,7 +1008,9 @@ namespace CIAO
if (b != e)
{
port_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) port_next (o);
@@ -1053,7 +1032,9 @@ namespace CIAO
if (b != e)
{
port_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) port_next (o);
@@ -1115,7 +1096,9 @@ namespace CIAO
if (b != e)
{
property_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) property_next (o);
@@ -1137,7 +1120,9 @@ namespace CIAO
if (b != e)
{
property_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) property_next (o);
@@ -1199,7 +1184,9 @@ namespace CIAO
if (b != e)
{
infoProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) infoProperty_next (o);
@@ -1221,7 +1208,9 @@ namespace CIAO
if (b != e)
{
infoProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) infoProperty_next (o);
@@ -1296,28 +1285,6 @@ namespace CIAO
}
void ComponentInterfaceDescription::
- href (Type& o)
- {
- dispatch (o.href ());
- }
-
- void ComponentInterfaceDescription::
- href (Type const& o)
- {
- dispatch (o.href ());
- }
-
- void ComponentInterfaceDescription::
- href_none (Type&)
- {
- }
-
- void ComponentInterfaceDescription::
- href_none (Type const&)
- {
- }
-
- void ComponentInterfaceDescription::
post (Type&)
{
}
@@ -1502,15 +1469,6 @@ namespace CIAO
Traversal::ComponentInterfaceDescription::contentLocation (o);
pop_ ();
}
-
- void ComponentInterfaceDescription::
- href (Type const& o)
- {
- ::XSCRT::XML::Attribute< ACE_TCHAR > a ("href", "", top_ ());
- attr_ (&a);
- Traversal::ComponentInterfaceDescription::href (o);
- attr_ (0);
- }
}
}
}
diff --git a/TAO/CIAO/tools/Config_Handlers/ccd.hpp b/TAO/CIAO/tools/Config_Handlers/ccd.hpp
index ab460a46a7d..36e0c82c71d 100644
--- a/TAO/CIAO/tools/Config_Handlers/ccd.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/ccd.hpp
@@ -178,17 +178,6 @@ namespace CIAO
protected:
::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > contentLocation_;
- // href
- //
- public:
- bool href_p () const;
- ::XMLSchema::string< ACE_TCHAR > const& href () const;
- ::XMLSchema::string< ACE_TCHAR >& href ();
- void href (::XMLSchema::string< ACE_TCHAR > const& );
-
- protected:
- ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > href_;
-
public:
ComponentInterfaceDescription ();
@@ -462,18 +451,6 @@ namespace CIAO
contentLocation_none (Type const&);
virtual void
- href (Type&);
-
- virtual void
- href (Type const&);
-
- virtual void
- href_none (Type&);
-
- virtual void
- href_none (Type const&);
-
- virtual void
post (Type&);
virtual void
@@ -497,6 +474,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentInterfaceDescription Type;
ComponentInterfaceDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -505,9 +483,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -516,9 +497,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -527,9 +511,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
specificType (Type &o)
{
@@ -538,9 +525,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
specificType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
supportedType_pre (Type &o)
{
@@ -549,9 +539,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
supportedType_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
supportedType_next (Type &o)
{
@@ -560,9 +553,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
supportedType_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
supportedType_post (Type &o)
{
@@ -571,9 +567,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
supportedType_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
idlFile_pre (Type &o)
{
@@ -582,9 +581,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
idlFile_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
idlFile_next (Type &o)
{
@@ -593,9 +595,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
idlFile_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
idlFile_post (Type &o)
{
@@ -604,9 +609,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
idlFile_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty_pre (Type &o)
{
@@ -615,9 +623,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty_next (Type &o)
{
@@ -626,9 +637,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty_post (Type &o)
{
@@ -637,9 +651,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
port_pre (Type &o)
{
@@ -648,9 +665,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
port_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
port_next (Type &o)
{
@@ -659,9 +679,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
port_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
port_post (Type &o)
{
@@ -670,9 +693,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
port_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property_pre (Type &o)
{
@@ -681,9 +707,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property_next (Type &o)
{
@@ -692,9 +721,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property_post (Type &o)
{
@@ -703,9 +735,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty_pre (Type &o)
{
@@ -714,9 +749,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty_next (Type &o)
{
@@ -725,9 +763,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty_post (Type &o)
{
@@ -736,9 +777,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
contentLocation (Type &o)
{
@@ -747,20 +791,10 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
contentLocation (Type const&);
- virtual void
- href (Type &o)
- {
-
- this->href (const_cast <Type const &> (o));
- }
-
-
- virtual void
- href (Type const&);
-
protected:
ComponentInterfaceDescription ();
};
diff --git a/TAO/CIAO/tools/Config_Handlers/cdd.cpp b/TAO/CIAO/tools/Config_Handlers/cdd.cpp
index 2b2f8cb2927..048afb74ca0 100644
--- a/TAO/CIAO/tools/Config_Handlers/cdd.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/cdd.cpp
@@ -20,7 +20,7 @@ namespace CIAO
Domain::
Domain (::CIAO::Config_Handlers::Interconnect const& interconnect__,
- ::CIAO::Config_Handlers::Bridge const& bridge__)
+ ::CIAO::Config_Handlers::Bridge const& bridge__)
:
::XSCRT::Type (),
interconnect_ (new ::CIAO::Config_Handlers::Interconnect (interconnect__)),
@@ -46,7 +46,9 @@ namespace CIAO
if (UUID_.get ()) UUID_->container (this);
if (label_.get ()) label_->container (this);
{
- for (node_const_iterator i (s.node_.begin ());i != s.node_.end ();++i) add_node (*i);
+ for (node_const_iterator i (s.node_.begin ());
+ i != s.node_.end ();
+ ++i) add_node (*i);
}
interconnect_->container (this);
@@ -66,7 +68,9 @@ namespace CIAO
node_.clear ();
{
- for (node_const_iterator i (s.node_.begin ());i != s.node_.end ();++i) add_node (*i);
+ for (node_const_iterator i (s.node_.begin ());
+ i != s.node_.end ();
+ ++i) add_node (*i);
}
interconnect (s.interconnect ());
@@ -290,11 +294,15 @@ namespace CIAO
name_->container (this);
if (label_.get ()) label_->container (this);
{
- for (connect_const_iterator i (s.connect_.begin ());i != s.connect_.end ();++i) add_connect (*i);
+ for (connect_const_iterator i (s.connect_.begin ());
+ i != s.connect_.end ();
+ ++i) add_connect (*i);
}
{
- for (resource_const_iterator i (s.resource_.begin ());i != s.resource_.end ();++i) add_resource (*i);
+ for (resource_const_iterator i (s.resource_.begin ());
+ i != s.resource_.end ();
+ ++i) add_resource (*i);
}
}
@@ -308,12 +316,16 @@ namespace CIAO
connect_.clear ();
{
- for (connect_const_iterator i (s.connect_.begin ());i != s.connect_.end ();++i) add_connect (*i);
+ for (connect_const_iterator i (s.connect_.begin ());
+ i != s.connect_.end ();
+ ++i) add_connect (*i);
}
resource_.clear ();
{
- for (resource_const_iterator i (s.resource_.begin ());i != s.resource_.end ();++i) add_resource (*i);
+ for (resource_const_iterator i (s.resource_.begin ());
+ i != s.resource_.end ();
+ ++i) add_resource (*i);
}
return *this;
@@ -464,15 +476,21 @@ namespace CIAO
name_->container (this);
if (label_.get ()) label_->container (this);
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
{
- for (connect_const_iterator i (s.connect_.begin ());i != s.connect_.end ();++i) add_connect (*i);
+ for (connect_const_iterator i (s.connect_.begin ());
+ i != s.connect_.end ();
+ ++i) add_connect (*i);
}
{
- for (resource_const_iterator i (s.resource_.begin ());i != s.resource_.end ();++i) add_resource (*i);
+ for (resource_const_iterator i (s.resource_.begin ());
+ i != s.resource_.end ();
+ ++i) add_resource (*i);
}
}
@@ -486,17 +504,23 @@ namespace CIAO
connection_.clear ();
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
connect_.clear ();
{
- for (connect_const_iterator i (s.connect_.begin ());i != s.connect_.end ();++i) add_connect (*i);
+ for (connect_const_iterator i (s.connect_.begin ());
+ i != s.connect_.end ();
+ ++i) add_connect (*i);
}
resource_.clear ();
{
- for (resource_const_iterator i (s.resource_.begin ());i != s.resource_.end ();++i) add_resource (*i);
+ for (resource_const_iterator i (s.resource_.begin ());
+ i != s.resource_.end ();
+ ++i) add_resource (*i);
}
return *this;
@@ -665,13 +689,16 @@ namespace CIAO
//
Node::
- Node (::XMLSchema::string< ACE_TCHAR > const& name__)
+ Node (::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::CIAO::Config_Handlers::Resource const& resource__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
+ resource_ (new ::CIAO::Config_Handlers::Resource (resource__)),
regulator__ ()
{
name_->container (this);
+ resource_->container (this);
}
Node::
@@ -680,21 +707,24 @@ namespace CIAO
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)),
label_ (s.label_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.label_) : 0),
+ resource_ (new ::CIAO::Config_Handlers::Resource (*s.resource_)),
regulator__ ()
{
name_->container (this);
if (label_.get ()) label_->container (this);
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
{
- for (sharedResource_const_iterator i (s.sharedResource_.begin ());i != s.sharedResource_.end ();++i) add_sharedResource (*i);
+ for (sharedResource_const_iterator i (s.sharedResource_.begin ());
+ i != s.sharedResource_.end ();
+ ++i) add_sharedResource (*i);
}
- {
- for (resource_const_iterator i (s.resource_.begin ());i != s.resource_.end ();++i) add_resource (*i);
- }
+ resource_->container (this);
}
::CIAO::Config_Handlers::Node& Node::
@@ -707,18 +737,19 @@ namespace CIAO
connection_.clear ();
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
sharedResource_.clear ();
{
- for (sharedResource_const_iterator i (s.sharedResource_.begin ());i != s.sharedResource_.end ();++i) add_sharedResource (*i);
+ for (sharedResource_const_iterator i (s.sharedResource_.begin ());
+ i != s.sharedResource_.end ();
+ ++i) add_sharedResource (*i);
}
- resource_.clear ();
- {
- for (resource_const_iterator i (s.resource_.begin ());i != s.resource_.end ();++i) add_resource (*i);
- }
+ resource (s.resource ());
return *this;
}
@@ -845,40 +876,16 @@ namespace CIAO
// Node
//
- Node::resource_iterator Node::
- begin_resource ()
+ ::CIAO::Config_Handlers::Resource const& Node::
+ resource () const
{
- return resource_.begin ();
- }
-
- Node::resource_iterator Node::
- end_resource ()
- {
- return resource_.end ();
- }
-
- Node::resource_const_iterator Node::
- begin_resource () const
- {
- return resource_.begin ();
- }
-
- Node::resource_const_iterator Node::
- end_resource () const
- {
- return resource_.end ();
+ return *resource_;
}
void Node::
- add_resource (::CIAO::Config_Handlers::Resource const& e)
- {
- resource_.push_back (e);
- }
-
- size_t Node::
- count_resource(void) const
+ resource (::CIAO::Config_Handlers::Resource const& e)
{
- return resource_.size ();
+ *resource_ = e;
}
@@ -887,9 +894,9 @@ namespace CIAO
SharedResource::
SharedResource (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::CIAO::Config_Handlers::Node const& node__,
- ::CIAO::Config_Handlers::SatisfierProperty const& property__)
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::CIAO::Config_Handlers::Node const& node__,
+ ::CIAO::Config_Handlers::SatisfierProperty const& property__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -1197,8 +1204,8 @@ namespace CIAO
else if (n == "resource")
{
- ::CIAO::Config_Handlers::Resource t (e);
- add_resource (t);
+ resource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Resource > (new ::CIAO::Config_Handlers::Resource (e));
+ resource_->container (this);
}
else
@@ -1454,7 +1461,9 @@ namespace CIAO
if (b != e)
{
node_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) node_next (o);
@@ -1474,7 +1483,9 @@ namespace CIAO
if (b != e)
{
node_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) node_next (o);
@@ -1674,7 +1685,9 @@ namespace CIAO
if (b != e)
{
connect_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connect_next (o);
@@ -1694,7 +1707,9 @@ namespace CIAO
if (b != e)
{
connect_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connect_next (o);
@@ -1744,7 +1759,9 @@ namespace CIAO
if (b != e)
{
resource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) resource_next (o);
@@ -1766,7 +1783,9 @@ namespace CIAO
if (b != e)
{
resource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) resource_next (o);
@@ -1912,7 +1931,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -1934,7 +1955,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -1996,7 +2019,9 @@ namespace CIAO
if (b != e)
{
connect_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connect_next (o);
@@ -2016,7 +2041,9 @@ namespace CIAO
if (b != e)
{
connect_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connect_next (o);
@@ -2066,7 +2093,9 @@ namespace CIAO
if (b != e)
{
resource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) resource_next (o);
@@ -2088,7 +2117,9 @@ namespace CIAO
if (b != e)
{
resource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) resource_next (o);
@@ -2234,7 +2265,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -2256,7 +2289,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -2318,7 +2353,9 @@ namespace CIAO
if (b != e)
{
sharedResource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) sharedResource_next (o);
@@ -2340,7 +2377,9 @@ namespace CIAO
if (b != e)
{
sharedResource_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) sharedResource_next (o);
@@ -2395,85 +2434,13 @@ namespace CIAO
void Node::
resource (Type& o)
{
- // VC6 anathema strikes again
- //
- Node::Type::resource_iterator b (o.begin_resource()), e (o.end_resource());
-
- if (b != e)
- {
- resource_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) resource_next (o);
- }
-
- resource_post (o);
- }
-
- else resource_none (o);
+ dispatch (o.resource ());
}
void Node::
resource (Type const& o)
{
- // VC6 anathema strikes again
- //
- Node::Type::resource_const_iterator b (o.begin_resource()), e (o.end_resource());
-
- if (b != e)
- {
- resource_pre (o);
- for (; b != e;)
- {
- dispatch (*b);
- if (++b != e) resource_next (o);
- }
-
- resource_post (o);
- }
-
- else resource_none (o);
- }
-
- void Node::
- resource_pre (Type&)
- {
- }
-
- void Node::
- resource_pre (Type const&)
- {
- }
-
- void Node::
- resource_next (Type&)
- {
- }
-
- void Node::
- resource_next (Type const&)
- {
- }
-
- void Node::
- resource_post (Type&)
- {
- }
-
- void Node::
- resource_post (Type const&)
- {
- }
-
- void Node::
- resource_none (Type&)
- {
- }
-
- void Node::
- resource_none (Type const&)
- {
+ dispatch (o.resource ());
}
void Node::
@@ -2922,21 +2889,10 @@ namespace CIAO
}
void Node::
- resource_pre (Type const&)
+ resource (Type const& o)
{
push_ (::XSCRT::XML::Element< ACE_TCHAR > ("resource", top_ ()));
- }
-
- void Node::
- resource_next (Type const& o)
- {
- resource_post (o);
- resource_pre (o);
- }
-
- void Node::
- resource_post (Type const&)
- {
+ Traversal::Node::resource (o);
pop_ ();
}
diff --git a/TAO/CIAO/tools/Config_Handlers/cdd.hpp b/TAO/CIAO/tools/Config_Handlers/cdd.hpp
index 27ea37d4160..f24fac62bd7 100644
--- a/TAO/CIAO/tools/Config_Handlers/cdd.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/cdd.hpp
@@ -20,7 +20,6 @@
#endif
#include "XSC_XML_Handlers_Export.h"
-
#ifndef CDD_HPP
#define CDD_HPP
@@ -128,7 +127,7 @@ namespace CIAO
public:
Domain (::CIAO::Config_Handlers::Interconnect const& interconnect__,
- ::CIAO::Config_Handlers::Bridge const& bridge__);
+ ::CIAO::Config_Handlers::Bridge const& bridge__);
Domain (::XSCRT::XML::Element< ACE_TCHAR > const&);
Domain (Domain const& s);
@@ -349,20 +348,15 @@ namespace CIAO
// resource
//
public:
- typedef ::std::list< ::CIAO::Config_Handlers::Resource >::iterator resource_iterator;
- typedef ::std::list< ::CIAO::Config_Handlers::Resource >::const_iterator resource_const_iterator;
- resource_iterator begin_resource ();
- resource_iterator end_resource ();
- resource_const_iterator begin_resource () const;
- resource_const_iterator end_resource () const;
- void add_resource (::CIAO::Config_Handlers::Resource const& );
- size_t count_resource (void) const;
+ ::CIAO::Config_Handlers::Resource const& resource () const;
+ void resource (::CIAO::Config_Handlers::Resource const& );
protected:
- ::std::list< ::CIAO::Config_Handlers::Resource > resource_;
+ ::std::auto_ptr< ::CIAO::Config_Handlers::Resource > resource_;
public:
- Node (::XMLSchema::string< ACE_TCHAR > const& name__);
+ Node (::XMLSchema::string< ACE_TCHAR > const& name__,
+ ::CIAO::Config_Handlers::Resource const& resource__);
Node (::XSCRT::XML::Element< ACE_TCHAR > const&);
Node (Node const& s);
@@ -418,9 +412,9 @@ namespace CIAO
public:
SharedResource (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
- ::CIAO::Config_Handlers::Node const& node__,
- ::CIAO::Config_Handlers::SatisfierProperty const& property__);
+ ::XMLSchema::string< ACE_TCHAR > const& resourceType__,
+ ::CIAO::Config_Handlers::Node const& node__,
+ ::CIAO::Config_Handlers::SatisfierProperty const& property__);
SharedResource (::XSCRT::XML::Element< ACE_TCHAR > const&);
SharedResource (SharedResource const& s);
@@ -869,30 +863,6 @@ namespace CIAO
resource (Type const&);
virtual void
- resource_pre (Type&);
-
- virtual void
- resource_pre (Type const&);
-
- virtual void
- resource_next (Type&);
-
- virtual void
- resource_next (Type const&);
-
- virtual void
- resource_post (Type&);
-
- virtual void
- resource_post (Type const&);
-
- virtual void
- resource_none (Type&);
-
- virtual void
- resource_none (Type const&);
-
- virtual void
post (Type&);
virtual void
@@ -961,6 +931,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Domain Type;
Domain (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -969,9 +940,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -980,9 +954,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -991,9 +968,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
node_pre (Type &o)
{
@@ -1002,9 +982,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
node_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
node_next (Type &o)
{
@@ -1013,9 +996,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
node_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
node_post (Type &o)
{
@@ -1024,9 +1010,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
node_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
interconnect (Type &o)
{
@@ -1035,9 +1024,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
interconnect (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
bridge (Type &o)
{
@@ -1046,9 +1038,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
bridge (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
sharedResource (Type &o)
{
@@ -1057,9 +1052,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
sharedResource (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty (Type &o)
{
@@ -1068,6 +1066,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty (Type const&);
@@ -1081,6 +1080,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Bridge Type;
Bridge (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1089,9 +1089,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -1100,9 +1103,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -1111,9 +1117,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connect_pre (Type &o)
{
@@ -1122,9 +1131,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connect_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connect_next (Type &o)
{
@@ -1133,9 +1145,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connect_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connect_post (Type &o)
{
@@ -1144,9 +1159,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connect_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resource_pre (Type &o)
{
@@ -1155,9 +1173,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resource_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resource_next (Type &o)
{
@@ -1166,9 +1187,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resource_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resource_post (Type &o)
{
@@ -1177,6 +1201,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resource_post (Type const&);
@@ -1190,6 +1215,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Interconnect Type;
Interconnect (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1198,9 +1224,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -1209,9 +1238,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -1220,9 +1252,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_pre (Type &o)
{
@@ -1231,9 +1266,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_next (Type &o)
{
@@ -1242,9 +1280,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_post (Type &o)
{
@@ -1253,9 +1294,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connect_pre (Type &o)
{
@@ -1264,9 +1308,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connect_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connect_next (Type &o)
{
@@ -1275,9 +1322,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connect_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connect_post (Type &o)
{
@@ -1286,9 +1336,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connect_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resource_pre (Type &o)
{
@@ -1297,9 +1350,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resource_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resource_next (Type &o)
{
@@ -1308,9 +1364,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resource_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resource_post (Type &o)
{
@@ -1319,6 +1378,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resource_post (Type const&);
@@ -1332,6 +1392,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::Node Type;
Node (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1340,9 +1401,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -1351,9 +1415,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -1362,9 +1429,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_pre (Type &o)
{
@@ -1373,9 +1443,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_next (Type &o)
{
@@ -1384,9 +1457,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_post (Type &o)
{
@@ -1395,9 +1471,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
sharedResource_pre (Type &o)
{
@@ -1406,9 +1485,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
sharedResource_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
sharedResource_next (Type &o)
{
@@ -1417,9 +1499,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
sharedResource_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
sharedResource_post (Type &o)
{
@@ -1428,41 +1513,23 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
sharedResource_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
- resource_pre (Type &o)
- {
-
- this->resource_pre (const_cast <Type const &> (o));
- }
-
-
- virtual void
- resource_pre (Type const&);
-
- virtual void
- resource_next (Type &o)
+ resource (Type &o)
{
- this->resource_next (const_cast <Type const &> (o));
+ this->resource (const_cast <Type const &> (o));
}
+ #endif /* __BORLANDC__ */
virtual void
- resource_next (Type const&);
-
- virtual void
- resource_post (Type &o)
- {
-
- this->resource_post (const_cast <Type const &> (o));
- }
-
-
- virtual void
- resource_post (Type const&);
+ resource (Type const&);
protected:
Node ();
@@ -1474,6 +1541,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::SharedResource Type;
SharedResource (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1482,9 +1550,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -1493,9 +1564,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
resourceType (Type &o)
{
@@ -1504,9 +1578,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
resourceType (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
node (Type &o)
{
@@ -1515,9 +1592,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
node (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
property (Type &o)
{
@@ -1526,6 +1606,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
property (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/cdp.cpp b/TAO/CIAO/tools/Config_Handlers/cdp.cpp
index 8603731cd5e..60a4e272d67 100644
--- a/TAO/CIAO/tools/Config_Handlers/cdp.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/cdp.cpp
@@ -39,27 +39,39 @@ namespace CIAO
if (UUID_.get ()) UUID_->container (this);
if (realizes_.get ()) realizes_->container (this);
{
- for (implementation_const_iterator i (s.implementation_.begin ());i != s.implementation_.end ();++i) add_implementation (*i);
+ for (implementation_const_iterator i (s.implementation_.begin ());
+ i != s.implementation_.end ();
+ ++i) add_implementation (*i);
}
{
- for (instance_const_iterator i (s.instance_.begin ());i != s.instance_.end ();++i) add_instance (*i);
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
}
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
{
- for (dependsOn_const_iterator i (s.dependsOn_.begin ());i != s.dependsOn_.end ();++i) add_dependsOn (*i);
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
}
{
- for (artifact_const_iterator i (s.artifact_.begin ());i != s.artifact_.end ();++i) add_artifact (*i);
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
}
{
- for (infoProperty_const_iterator i (s.infoProperty_.begin ());i != s.infoProperty_.end ();++i) add_infoProperty (*i);
+ for (infoProperty_const_iterator i (s.infoProperty_.begin ());
+ i != s.infoProperty_.end ();
+ ++i) add_infoProperty (*i);
}
}
@@ -77,32 +89,44 @@ namespace CIAO
implementation_.clear ();
{
- for (implementation_const_iterator i (s.implementation_.begin ());i != s.implementation_.end ();++i) add_implementation (*i);
+ for (implementation_const_iterator i (s.implementation_.begin ());
+ i != s.implementation_.end ();
+ ++i) add_implementation (*i);
}
instance_.clear ();
{
- for (instance_const_iterator i (s.instance_.begin ());i != s.instance_.end ();++i) add_instance (*i);
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
}
connection_.clear ();
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
dependsOn_.clear ();
{
- for (dependsOn_const_iterator i (s.dependsOn_.begin ());i != s.dependsOn_.end ();++i) add_dependsOn (*i);
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
}
artifact_.clear ();
{
- for (artifact_const_iterator i (s.artifact_.begin ());i != s.artifact_.end ();++i) add_artifact (*i);
+ for (artifact_const_iterator i (s.artifact_.begin ());
+ i != s.artifact_.end ();
+ ++i) add_artifact (*i);
}
infoProperty_.clear ();
{
- for (infoProperty_const_iterator i (s.infoProperty_.begin ());i != s.infoProperty_.end ();++i) add_infoProperty (*i);
+ for (infoProperty_const_iterator i (s.infoProperty_.begin ());
+ i != s.infoProperty_.end ();
+ ++i) add_infoProperty (*i);
}
return *this;
@@ -675,7 +699,9 @@ namespace CIAO
if (b != e)
{
implementation_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) implementation_next (o);
@@ -695,7 +721,9 @@ namespace CIAO
if (b != e)
{
implementation_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) implementation_next (o);
@@ -745,7 +773,9 @@ namespace CIAO
if (b != e)
{
instance_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) instance_next (o);
@@ -767,7 +797,9 @@ namespace CIAO
if (b != e)
{
instance_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) instance_next (o);
@@ -829,7 +861,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -851,7 +885,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -913,7 +949,9 @@ namespace CIAO
if (b != e)
{
dependsOn_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) dependsOn_next (o);
@@ -935,7 +973,9 @@ namespace CIAO
if (b != e)
{
dependsOn_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) dependsOn_next (o);
@@ -997,7 +1037,9 @@ namespace CIAO
if (b != e)
{
artifact_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) artifact_next (o);
@@ -1019,7 +1061,9 @@ namespace CIAO
if (b != e)
{
artifact_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) artifact_next (o);
@@ -1081,7 +1125,9 @@ namespace CIAO
if (b != e)
{
infoProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) infoProperty_next (o);
@@ -1103,7 +1149,9 @@ namespace CIAO
if (b != e)
{
infoProperty_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) infoProperty_next (o);
diff --git a/TAO/CIAO/tools/Config_Handlers/cdp.hpp b/TAO/CIAO/tools/Config_Handlers/cdp.hpp
index dc449ab6031..50ea96a11f6 100644
--- a/TAO/CIAO/tools/Config_Handlers/cdp.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/cdp.hpp
@@ -20,7 +20,6 @@
#endif
#include "XSC_XML_Handlers_Export.h"
-
#ifndef CDP_HPP
#define CDP_HPP
@@ -447,6 +446,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::DeploymentPlan Type;
DeploymentPlan (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -455,9 +455,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -466,9 +469,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -477,9 +483,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
realizes (Type &o)
{
@@ -488,9 +497,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
realizes (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
implementation_pre (Type &o)
{
@@ -499,9 +511,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
implementation_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
implementation_next (Type &o)
{
@@ -510,9 +525,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
implementation_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
implementation_post (Type &o)
{
@@ -521,9 +539,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
implementation_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance_pre (Type &o)
{
@@ -532,9 +553,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance_next (Type &o)
{
@@ -543,9 +567,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance_post (Type &o)
{
@@ -554,9 +581,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_pre (Type &o)
{
@@ -565,9 +595,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_next (Type &o)
{
@@ -576,9 +609,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_post (Type &o)
{
@@ -587,9 +623,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn_pre (Type &o)
{
@@ -598,9 +637,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn_next (Type &o)
{
@@ -609,9 +651,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn_post (Type &o)
{
@@ -620,9 +665,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
artifact_pre (Type &o)
{
@@ -631,9 +679,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
artifact_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
artifact_next (Type &o)
{
@@ -642,9 +693,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
artifact_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
artifact_post (Type &o)
{
@@ -653,9 +707,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
artifact_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty_pre (Type &o)
{
@@ -664,9 +721,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty_next (Type &o)
{
@@ -675,9 +735,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty_post (Type &o)
{
@@ -686,6 +749,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty_post (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/cid.cpp b/TAO/CIAO/tools/Config_Handlers/cid.cpp
index 37c49aabe18..39111605f5d 100644
--- a/TAO/CIAO/tools/Config_Handlers/cid.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/cid.cpp
@@ -20,7 +20,7 @@ namespace CIAO
SubcomponentInstantiationDescription::
SubcomponentInstantiationDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::ComponentPackageDescription const& package__)
+ ::CIAO::Config_Handlers::ComponentPackageDescription const& package__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -230,7 +230,7 @@ namespace CIAO
SubcomponentPropertyReference::
SubcomponentPropertyReference (::XMLSchema::string< ACE_TCHAR > const& propertyName__,
- ::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& instance__)
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& instance__)
:
::XSCRT::Type (),
propertyName_ (new ::XMLSchema::string< ACE_TCHAR > (propertyName__)),
@@ -298,8 +298,8 @@ namespace CIAO
AssemblyPropertyMapping::
AssemblyPropertyMapping (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& externalName__,
- ::CIAO::Config_Handlers::SubcomponentPropertyReference const& delegatesTo__)
+ ::XMLSchema::string< ACE_TCHAR > const& externalName__,
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference const& delegatesTo__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -401,11 +401,15 @@ namespace CIAO
regulator__ ()
{
{
- for (instance_const_iterator i (s.instance_.begin ());i != s.instance_.end ();++i) add_instance (*i);
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
}
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
if (externalProperty_.get ()) externalProperty_->container (this);
@@ -416,12 +420,16 @@ namespace CIAO
{
instance_.clear ();
{
- for (instance_const_iterator i (s.instance_.begin ());i != s.instance_.end ();++i) add_instance (*i);
+ for (instance_const_iterator i (s.instance_.begin ());
+ i != s.instance_.end ();
+ ++i) add_instance (*i);
}
connection_.clear ();
{
- for (connection_const_iterator i (s.connection_.begin ());i != s.connection_.end ();++i) add_connection (*i);
+ for (connection_const_iterator i (s.connection_.begin ());
+ i != s.connection_.end ();
+ ++i) add_connection (*i);
}
if (s.externalProperty_.get ()) externalProperty (*(s.externalProperty_));
@@ -558,7 +566,9 @@ namespace CIAO
{
if (execParameter_.get ()) execParameter_->container (this);
{
- for (primaryArtifact_const_iterator i (s.primaryArtifact_.begin ());i != s.primaryArtifact_.end ();++i) add_primaryArtifact (*i);
+ for (primaryArtifact_const_iterator i (s.primaryArtifact_.begin ());
+ i != s.primaryArtifact_.end ();
+ ++i) add_primaryArtifact (*i);
}
if (deployRequirement_.get ()) deployRequirement_->container (this);
@@ -572,7 +582,9 @@ namespace CIAO
primaryArtifact_.clear ();
{
- for (primaryArtifact_const_iterator i (s.primaryArtifact_.begin ());i != s.primaryArtifact_.end ();++i) add_primaryArtifact (*i);
+ for (primaryArtifact_const_iterator i (s.primaryArtifact_.begin ());
+ i != s.primaryArtifact_.end ();
+ ++i) add_primaryArtifact (*i);
}
if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_));
@@ -1877,7 +1889,9 @@ namespace CIAO
if (b != e)
{
instance_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) instance_next (o);
@@ -1897,7 +1911,9 @@ namespace CIAO
if (b != e)
{
instance_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) instance_next (o);
@@ -1947,7 +1963,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -1967,7 +1985,9 @@ namespace CIAO
if (b != e)
{
connection_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) connection_next (o);
@@ -2109,7 +2129,9 @@ namespace CIAO
if (b != e)
{
primaryArtifact_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) primaryArtifact_next (o);
@@ -2129,7 +2151,9 @@ namespace CIAO
if (b != e)
{
primaryArtifact_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) primaryArtifact_next (o);
diff --git a/TAO/CIAO/tools/Config_Handlers/cid.hpp b/TAO/CIAO/tools/Config_Handlers/cid.hpp
index 7439935c8df..9a07d2b6788 100644
--- a/TAO/CIAO/tools/Config_Handlers/cid.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/cid.hpp
@@ -118,7 +118,7 @@ namespace CIAO
public:
SubcomponentInstantiationDescription (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::ComponentPackageDescription const& package__);
+ ::CIAO::Config_Handlers::ComponentPackageDescription const& package__);
SubcomponentInstantiationDescription (::XSCRT::XML::Element< ACE_TCHAR > const&);
SubcomponentInstantiationDescription (SubcomponentInstantiationDescription const& s);
@@ -156,7 +156,7 @@ namespace CIAO
public:
SubcomponentPropertyReference (::XMLSchema::string< ACE_TCHAR > const& propertyName__,
- ::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& instance__);
+ ::CIAO::Config_Handlers::SubcomponentInstantiationDescription const& instance__);
SubcomponentPropertyReference (::XSCRT::XML::Element< ACE_TCHAR > const&);
SubcomponentPropertyReference (SubcomponentPropertyReference const& s);
@@ -203,8 +203,8 @@ namespace CIAO
public:
AssemblyPropertyMapping (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::XMLSchema::string< ACE_TCHAR > const& externalName__,
- ::CIAO::Config_Handlers::SubcomponentPropertyReference const& delegatesTo__);
+ ::XMLSchema::string< ACE_TCHAR > const& externalName__,
+ ::CIAO::Config_Handlers::SubcomponentPropertyReference const& delegatesTo__);
AssemblyPropertyMapping (::XSCRT::XML::Element< ACE_TCHAR > const&);
AssemblyPropertyMapping (AssemblyPropertyMapping const& s);
@@ -949,6 +949,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::SubcomponentInstantiationDescription Type;
SubcomponentInstantiationDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -957,9 +958,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -968,9 +972,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
package (Type &o)
{
@@ -979,9 +986,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
package (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty (Type &o)
{
@@ -990,9 +1000,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
selectRequirement (Type &o)
{
@@ -1001,9 +1014,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
selectRequirement (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
reference (Type &o)
{
@@ -1012,9 +1028,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
reference (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
id (Type &o)
{
@@ -1023,6 +1042,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
id (Type const&);
@@ -1036,6 +1056,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::SubcomponentPropertyReference Type;
SubcomponentPropertyReference (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1044,9 +1065,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
propertyName (Type &o)
{
@@ -1055,9 +1079,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
propertyName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance (Type &o)
{
@@ -1066,6 +1093,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance (Type const&);
@@ -1079,6 +1107,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::AssemblyPropertyMapping Type;
AssemblyPropertyMapping (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1087,9 +1116,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -1098,9 +1130,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalName (Type &o)
{
@@ -1109,9 +1144,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalName (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
delegatesTo (Type &o)
{
@@ -1120,6 +1158,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
delegatesTo (Type const&);
@@ -1133,6 +1172,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentAssemblyDescription Type;
ComponentAssemblyDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1141,9 +1181,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance_pre (Type &o)
{
@@ -1152,9 +1195,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance_next (Type &o)
{
@@ -1163,9 +1209,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
instance_post (Type &o)
{
@@ -1174,9 +1223,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
instance_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_pre (Type &o)
{
@@ -1185,9 +1237,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_next (Type &o)
{
@@ -1196,9 +1251,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
connection_post (Type &o)
{
@@ -1207,9 +1265,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
connection_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
externalProperty (Type &o)
{
@@ -1218,6 +1279,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
externalProperty (Type const&);
@@ -1231,6 +1293,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::MonolithicImplementationDescription Type;
MonolithicImplementationDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1239,9 +1302,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter (Type &o)
{
@@ -1250,9 +1316,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
primaryArtifact_pre (Type &o)
{
@@ -1261,9 +1330,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
primaryArtifact_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
primaryArtifact_next (Type &o)
{
@@ -1272,9 +1344,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
primaryArtifact_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
primaryArtifact_post (Type &o)
{
@@ -1283,9 +1358,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
primaryArtifact_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement (Type &o)
{
@@ -1294,6 +1372,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement (Type const&);
@@ -1307,6 +1386,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentImplementationDescription Type;
ComponentImplementationDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -1315,9 +1395,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -1326,9 +1409,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -1337,9 +1423,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
implements (Type &o)
{
@@ -1348,9 +1437,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
implements (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
assemblyImpl (Type &o)
{
@@ -1359,9 +1451,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
assemblyImpl (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
monolithicImpl (Type &o)
{
@@ -1370,9 +1465,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
monolithicImpl (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty (Type &o)
{
@@ -1381,9 +1479,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
capability (Type &o)
{
@@ -1392,9 +1493,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
capability (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn (Type &o)
{
@@ -1403,9 +1507,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty (Type &o)
{
@@ -1414,9 +1521,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
contentLocation (Type &o)
{
@@ -1425,9 +1535,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
contentLocation (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
href (Type &o)
{
@@ -1436,6 +1549,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
href (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/cpd.cpp b/TAO/CIAO/tools/Config_Handlers/cpd.cpp
index f4e49fad6de..787afc2e32b 100644
--- a/TAO/CIAO/tools/Config_Handlers/cpd.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/cpd.cpp
@@ -20,7 +20,7 @@ namespace CIAO
PackagedComponentImplementation::
PackagedComponentImplementation (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::ComponentImplementationDescription const& referencedImplementation__)
+ ::CIAO::Config_Handlers::ComponentImplementationDescription const& referencedImplementation__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
diff --git a/TAO/CIAO/tools/Config_Handlers/cpd.hpp b/TAO/CIAO/tools/Config_Handlers/cpd.hpp
index 5fc156ff616..a6c297da012 100644
--- a/TAO/CIAO/tools/Config_Handlers/cpd.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/cpd.hpp
@@ -71,7 +71,7 @@ namespace CIAO
public:
PackagedComponentImplementation (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::ComponentImplementationDescription const& referencedImplementation__);
+ ::CIAO::Config_Handlers::ComponentImplementationDescription const& referencedImplementation__);
PackagedComponentImplementation (::XSCRT::XML::Element< ACE_TCHAR > const&);
PackagedComponentImplementation (PackagedComponentImplementation const& s);
@@ -367,6 +367,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PackagedComponentImplementation Type;
PackagedComponentImplementation (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -375,9 +376,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -386,9 +390,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
referencedImplementation (Type &o)
{
@@ -397,6 +404,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
referencedImplementation (Type const&);
@@ -410,6 +418,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ComponentPackageDescription Type;
ComponentPackageDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -418,9 +427,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -429,9 +441,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -440,9 +455,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
realizes (Type &o)
{
@@ -451,9 +469,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
realizes (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty (Type &o)
{
@@ -462,9 +483,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
implementation (Type &o)
{
@@ -473,9 +497,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
implementation (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty (Type &o)
{
@@ -484,9 +511,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
contentLocation (Type &o)
{
@@ -495,9 +525,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
contentLocation (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
href (Type &o)
{
@@ -506,6 +539,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
href (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/iad.cpp b/TAO/CIAO/tools/Config_Handlers/iad.cpp
index 0c0b1f32942..6c058af91a5 100644
--- a/TAO/CIAO/tools/Config_Handlers/iad.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/iad.cpp
@@ -20,7 +20,7 @@ namespace CIAO
NamedImplementationArtifact::
NamedImplementationArtifact (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact__)
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact__)
:
::XSCRT::Type (),
name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)),
@@ -110,11 +110,15 @@ namespace CIAO
if (label_.get ()) label_->container (this);
if (UUID_.get ()) UUID_->container (this);
{
- for (location_const_iterator i (s.location_.begin ());i != s.location_.end ();++i) add_location (*i);
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
}
{
- for (dependsOn_const_iterator i (s.dependsOn_.begin ());i != s.dependsOn_.end ();++i) add_dependsOn (*i);
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
}
if (execParameter_.get ()) execParameter_->container (this);
@@ -135,12 +139,16 @@ namespace CIAO
location_.clear ();
{
- for (location_const_iterator i (s.location_.begin ());i != s.location_.end ();++i) add_location (*i);
+ for (location_const_iterator i (s.location_.begin ());
+ i != s.location_.end ();
+ ++i) add_location (*i);
}
dependsOn_.clear ();
{
- for (dependsOn_const_iterator i (s.dependsOn_.begin ());i != s.dependsOn_.end ();++i) add_dependsOn (*i);
+ for (dependsOn_const_iterator i (s.dependsOn_.begin ());
+ i != s.dependsOn_.end ();
+ ++i) add_dependsOn (*i);
}
if (s.execParameter_.get ()) execParameter (*(s.execParameter_));
@@ -806,7 +814,9 @@ namespace CIAO
if (b != e)
{
location_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) location_next (o);
@@ -828,7 +838,9 @@ namespace CIAO
if (b != e)
{
location_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) location_next (o);
@@ -890,7 +902,9 @@ namespace CIAO
if (b != e)
{
dependsOn_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) dependsOn_next (o);
@@ -912,7 +926,9 @@ namespace CIAO
if (b != e)
{
dependsOn_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) dependsOn_next (o);
diff --git a/TAO/CIAO/tools/Config_Handlers/iad.hpp b/TAO/CIAO/tools/Config_Handlers/iad.hpp
index c45b689338e..4ec2e67443c 100644
--- a/TAO/CIAO/tools/Config_Handlers/iad.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/iad.hpp
@@ -69,7 +69,7 @@ namespace CIAO
public:
NamedImplementationArtifact (::XMLSchema::string< ACE_TCHAR > const& name__,
- ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact__);
+ ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact__);
NamedImplementationArtifact (::XSCRT::XML::Element< ACE_TCHAR > const&);
NamedImplementationArtifact (NamedImplementationArtifact const& s);
@@ -433,6 +433,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::NamedImplementationArtifact Type;
NamedImplementationArtifact (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -441,9 +442,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
name (Type &o)
{
@@ -452,9 +456,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
name (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
referencedArtifact (Type &o)
{
@@ -463,6 +470,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
referencedArtifact (Type const&);
@@ -476,6 +484,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::ImplementationArtifactDescription Type;
ImplementationArtifactDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -484,9 +493,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -495,9 +507,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -506,9 +521,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location_pre (Type &o)
{
@@ -517,9 +535,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location_next (Type &o)
{
@@ -528,9 +549,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
location_post (Type &o)
{
@@ -539,9 +563,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
location_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn_pre (Type &o)
{
@@ -550,9 +577,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn_next (Type &o)
{
@@ -561,9 +591,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
dependsOn_post (Type &o)
{
@@ -572,9 +605,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
dependsOn_post (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
execParameter (Type &o)
{
@@ -583,9 +619,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
execParameter (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
deployRequirement (Type &o)
{
@@ -594,9 +633,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
deployRequirement (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
infoProperty (Type &o)
{
@@ -605,9 +647,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
infoProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
contentLocation (Type &o)
{
@@ -616,9 +661,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
contentLocation (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
href (Type &o)
{
@@ -627,6 +675,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
href (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/pcd.hpp b/TAO/CIAO/tools/Config_Handlers/pcd.hpp
index ff4d123c6b0..546aab53451 100644
--- a/TAO/CIAO/tools/Config_Handlers/pcd.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/pcd.hpp
@@ -272,6 +272,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::PackageConfiguration Type;
PackageConfiguration (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -280,9 +281,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
label (Type &o)
{
@@ -291,9 +295,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
label (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
UUID (Type &o)
{
@@ -302,9 +309,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
UUID (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
basePackage (Type &o)
{
@@ -313,9 +323,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
basePackage (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
reference (Type &o)
{
@@ -324,9 +337,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
reference (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
selectRequirement (Type &o)
{
@@ -335,9 +351,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
selectRequirement (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
configProperty (Type &o)
{
@@ -346,9 +365,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
configProperty (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
contentLocation (Type &o)
{
@@ -357,6 +379,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
contentLocation (Type const&);
diff --git a/TAO/CIAO/tools/Config_Handlers/test.cpp b/TAO/CIAO/tools/Config_Handlers/test.cpp
index 96c19b6688d..2f77796921c 100644
--- a/TAO/CIAO/tools/Config_Handlers/test.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/test.cpp
@@ -16,7 +16,7 @@ static const char *input_file = "BasicSP.cdp";
static int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:");
int c;
@@ -45,7 +45,7 @@ void check_srd (const Deployment::DeploymentPlan &);
using namespace CIAO::Config_Handlers;
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (parse_args (argc, argv) != 0)
diff --git a/TAO/CIAO/tools/Config_Handlers/toplevel.cpp b/TAO/CIAO/tools/Config_Handlers/toplevel.cpp
index dd3e4d241a8..a12f1510cbe 100644
--- a/TAO/CIAO/tools/Config_Handlers/toplevel.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/toplevel.cpp
@@ -33,7 +33,9 @@ namespace CIAO
regulator__ ()
{
{
- for (package_const_iterator i (s.package_.begin ());i != s.package_.end ();++i) add_package (*i);
+ for (package_const_iterator i (s.package_.begin ());
+ i != s.package_.end ();
+ ++i) add_package (*i);
}
}
@@ -42,7 +44,9 @@ namespace CIAO
{
package_.clear ();
{
- for (package_const_iterator i (s.package_.begin ());i != s.package_.end ();++i) add_package (*i);
+ for (package_const_iterator i (s.package_.begin ());
+ i != s.package_.end ();
+ ++i) add_package (*i);
}
return *this;
@@ -202,7 +206,9 @@ namespace CIAO
if (b != e)
{
package_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) package_next (o);
@@ -222,7 +228,9 @@ namespace CIAO
if (b != e)
{
package_pre (o);
- for (; b != e;)
+ for (;
+ b != e;
+ )
{
dispatch (*b);
if (++b != e) package_next (o);
diff --git a/TAO/CIAO/tools/Config_Handlers/toplevel.hpp b/TAO/CIAO/tools/Config_Handlers/toplevel.hpp
index 559700357f6..9f0071f18d0 100644
--- a/TAO/CIAO/tools/Config_Handlers/toplevel.hpp
+++ b/TAO/CIAO/tools/Config_Handlers/toplevel.hpp
@@ -155,6 +155,7 @@ namespace CIAO
typedef ::CIAO::Config_Handlers::TopLevelPackageDescription Type;
TopLevelPackageDescription (::XSCRT::XML::Element< ACE_TCHAR >&);
+ #ifdef __BORLANDC__
virtual void
traverse (Type &o)
{
@@ -163,9 +164,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
traverse (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
package_pre (Type &o)
{
@@ -174,9 +178,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
package_pre (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
package_next (Type &o)
{
@@ -185,9 +192,12 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
package_next (Type const&);
+ // Hack to make borland stop complaining.
+ #ifdef __BORLANDC__
virtual void
package_post (Type &o)
{
@@ -196,6 +206,7 @@ namespace CIAO
}
+ #endif /* __BORLANDC__ */
virtual void
package_post (Type const&);
diff --git a/TAO/CIAO/tools/IDL3_to_IDL2/be_global.h b/TAO/CIAO/tools/IDL3_to_IDL2/be_global.h
index f70b062b77a..3592635634e 100644
--- a/TAO/CIAO/tools/IDL3_to_IDL2/be_global.h
+++ b/TAO/CIAO/tools/IDL3_to_IDL2/be_global.h
@@ -27,6 +27,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "idl_bool.h"
+
class AST_Generator;
// Defines a class containing all back end global data.
@@ -53,25 +55,25 @@ public:
const char* output_dir (void) const;
void output_dir (const char* s);
-
+
void parse_args (long &i, char **av);
// Parse args that affect the backend.
-
+
void prep_be_arg (char *s);
// Special BE arg call factored out of DRV_args.
-
+
void arg_post_proc (void);
// Checks made after parsing args.
-
+
void usage (void) const;
// Usage message for backend options.
-
+
AST_Generator *generator_init (void);
// Create an AST node generator.
-
+
void destroy (void);
// Cleanup.
-
+
private:
char *filename_;
// Name of the IDL file we are processing.
diff --git a/TAO/CIAO/tools/IDL3_to_IDL2/be_init.cpp b/TAO/CIAO/tools/IDL3_to_IDL2/be_init.cpp
index 0fbfcf6fdf2..f74e4d2a5b6 100644
--- a/TAO/CIAO/tools/IDL3_to_IDL2/be_init.cpp
+++ b/TAO/CIAO/tools/IDL3_to_IDL2/be_init.cpp
@@ -16,7 +16,7 @@ BE_version (void)
TAO_IDL3_TO_IDL2_BE_Export int
BE_init (int & /* argc */, char * /* argv */ [])
{
- idl_global->pass_orb_idl (true);
+ idl_global->pass_orb_idl (I_TRUE);
return 0;
}
diff --git a/TAO/CIAO/tools/IDL3_to_IDL2/be_sunsoft.cpp b/TAO/CIAO/tools/IDL3_to_IDL2/be_sunsoft.cpp
index 71c67116ab1..fe0810a4202 100644
--- a/TAO/CIAO/tools/IDL3_to_IDL2/be_sunsoft.cpp
+++ b/TAO/CIAO/tools/IDL3_to_IDL2/be_sunsoft.cpp
@@ -9,8 +9,8 @@
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_ctype.h"
-ACE_RCSID (be,
- be_sunsoft,
+ACE_RCSID (be,
+ be_sunsoft,
"$Id$")
TAO_SunSoft_OutStream::TAO_SunSoft_OutStream (void)
@@ -34,8 +34,8 @@ TAO_SunSoft_OutStream::print (Identifier *id)
TAO_OutStream &
TAO_SunSoft_OutStream::print (UTL_IdList *idl)
{
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
Identifier *id = 0;
for (UTL_IdListActiveIterator i (idl); !i.is_done (); i.next ())
@@ -46,7 +46,7 @@ TAO_SunSoft_OutStream::print (UTL_IdList *idl)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -58,11 +58,11 @@ TAO_SunSoft_OutStream::print (UTL_IdList *idl)
if (ACE_OS::strcmp (id->get_string (), "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -126,8 +126,8 @@ TAO_SunSoft_OutStream::print (AST_Expression *expr)
else if ((unsigned char) ev->u.cval > ACE_CHAR_MAX)
this->TAO_OutStream::print ("%hd", ev->u.cval);
else if (isprint (ev->u.cval))
- this->TAO_OutStream::print ("'%c'", ev->u.cval);
- else if (iscntrl (ev->u.cval))
+ this->TAO_OutStream::print ("'%c'", ev->u.cval);
+ else if (iscntrl (ev->u.cval))
switch (ev->u.cval)
{
case '\n':
@@ -157,8 +157,8 @@ TAO_SunSoft_OutStream::print (AST_Expression *expr)
default:
this->TAO_OutStream::print ("'\\x%x'", ev->u.cval);
}
- else
- this->TAO_OutStream::print ("'\\x%x'", ev->u.cval);
+ else
+ this->TAO_OutStream::print ("'\\x%x'", ev->u.cval);
break;
case AST_Expression::EV_wchar:
this->TAO_OutStream::print ("L'%lc'", ev->u.wcval);
diff --git a/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp b/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
index 11792c4e319..99a9f7bc7db 100644
--- a/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
+++ b/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
@@ -49,13 +49,13 @@ idl3_to_idl2_visitor::~idl3_to_idl2_visitor (void)
this->os = 0;
}
-int
+int
idl3_to_idl2_visitor::visit_decl (AST_Decl *)
{
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_scope (UTL_Scope *node)
{
for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
@@ -63,12 +63,12 @@ idl3_to_idl2_visitor::visit_scope (UTL_Scope *node)
si.next ())
{
AST_Decl *d = si.item ();
-
+
if (d->node_type () == AST_Decl::NT_pre_defined)
{
continue;
}
-
+
// Want to skip the uses_xxxConnection structs added by uses
// multiple ports.
// @@@ (JP) This will go away when the visitor is finished, since
@@ -78,7 +78,7 @@ idl3_to_idl2_visitor::visit_scope (UTL_Scope *node)
{
continue;
}
-
+
if (d->ast_accept (this) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -87,38 +87,38 @@ idl3_to_idl2_visitor::visit_scope (UTL_Scope *node)
-1);
}
}
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_type (AST_Type *)
{
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_predefined_type (AST_PredefinedType *)
{
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_module (AST_Module *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "module " << node->local_name () << be_nl
<< "{" << be_idt;
-
+
this->check_id_and_version (node);
this->check_prefix (node);
-
+
if (this->visit_scope (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -126,37 +126,37 @@ idl3_to_idl2_visitor::visit_module (AST_Module *node)
"codegen for scope failed\n"),
-1);
}
-
- *os << be_uidt_nl
+
+ *os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_interface (AST_Interface *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
if (node->is_local ())
{
*os << "local ";
}
-
+
if (node->is_abstract ())
{
*os << "abstract ";
- }
-
+ }
+
*os << "interface " << node->local_name ();
-
+
AST_Interface **parents = node->inherits ();
-
+
for (long i = 0; i < node->n_inherits (); ++i)
{
if (i == 0)
@@ -167,16 +167,16 @@ idl3_to_idl2_visitor::visit_interface (AST_Interface *node)
{
*os << ", ";
}
-
+
*os << parents[i]->name ();
}
-
+
*os << be_nl
<< "{" << be_idt;
-
+
this->check_id_and_version (node);
this->check_prefix (node);
-
+
if (this->visit_scope (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -184,53 +184,53 @@ idl3_to_idl2_visitor::visit_interface (AST_Interface *node)
"codegen for scope failed\n"),
-1);
}
-
- *os << be_uidt_nl
+
+ *os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_interface_fwd (AST_InterfaceFwd *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
if (node->is_local ())
{
*os << "local ";
}
-
+
if (node->is_abstract ())
{
*os << "abstract ";
- }
-
+ }
+
*os << "interface " << node->local_name () << ";";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_valuebox (AST_ValueBox *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl
<< "valuetype " << node->local_name ();
-
+
AST_Type *bt = node->boxed_type ();
-
+
// Keep output statements separate because of side effects.
-
+
if (bt->node_type () == AST_Decl::NT_array)
{
this->gen_anonymous_array (bt, node);
@@ -239,41 +239,41 @@ idl3_to_idl2_visitor::visit_valuebox (AST_ValueBox *node)
{
*os << this->type_name (bt);
}
-
+
*os << ";";
-
+
this->check_id_and_version (node);
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_valuetype (AST_ValueType *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
if (node->is_abstract ())
{
*os << "abstract ";
}
-
+
if (node->custom ())
{
*os << "custom ";
}
-
+
*os << "valuetype " << node->local_name ();
-
- AST_Decl::NodeType nt = node->node_type ();
+
+ AST_Decl::NodeType nt = node->node_type ();
AST_Interface **parents = node->inherits ();
long ninherits = node->n_inherits ();
-
- long i = 0;
+
+ long i = 0;
for (i = 0; i < ninherits; ++i)
{
if (i == 0)
@@ -284,18 +284,18 @@ idl3_to_idl2_visitor::visit_valuetype (AST_ValueType *node)
{
*os << ", ";
}
-
+
*os << parents[i]->name ();
}
-
+
if (nt == AST_Decl::NT_eventtype)
{
*os << (ninherits == 0 ? " : " : ", ")
<< "Components::EventBase";
}
-
+
AST_Interface **supports = node->supports ();
-
+
for (i = 0; i < node->n_supports (); ++i)
{
if (i == 0)
@@ -306,16 +306,16 @@ idl3_to_idl2_visitor::visit_valuetype (AST_ValueType *node)
{
*os << ", ";
}
-
+
*os << supports[i]->name ();
}
-
+
*os << be_nl
<< "{" << be_idt;
-
+
this->check_id_and_version (node);
this->check_prefix (node);
-
+
if (this->visit_scope (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -323,30 +323,30 @@ idl3_to_idl2_visitor::visit_valuetype (AST_ValueType *node)
"codegen for scope failed\n"),
-1);
}
-
- *os << be_uidt_nl
+
+ *os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_valuetype_fwd (AST_ValueTypeFwd *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
if (node->is_abstract ())
{
*os << "abstract ";
}
-
+
(void) node->node_type ();
-
+
*os << "valuetype " << node->local_name () << ";";
return 0;
@@ -359,26 +359,26 @@ idl3_to_idl2_visitor::visit_component (AST_Component *node)
{
return 0;
}
-
+
*os << be_nl << be_nl
<< "interface " << node->local_name ();
-
+
AST_Component *base = node->base_component ();
long nsupports = node->n_supports ();
-
- *os << " : "
+
+ *os << " : "
<< (base != 0 ? base->full_name () : "Components::CCMObject");
-
+
for (long i = 0; i < nsupports; ++i)
{
*os << ", " << node->supports ()[i]->name ();
}
-
+
*os << be_nl
<< "{" << be_idt;
-
+
this->check_id_and_version (node);
-
+
if (this->visit_scope (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -386,42 +386,42 @@ idl3_to_idl2_visitor::visit_component (AST_Component *node)
"codegen for scope failed\n"),
-1);
}
-
+
this->gen_provides (node);
this->gen_uses (node);
this->gen_publishes (node);
this->gen_emits (node);
this->gen_consumes (node);
-
+
*os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_component_fwd (AST_ComponentFwd *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "component " << node->local_name () << ";";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_eventtype (AST_EventType *node)
{
if (node->imported ())
{
return 0;
}
-
+
if (this->visit_valuetype (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -429,20 +429,20 @@ idl3_to_idl2_visitor::visit_eventtype (AST_EventType *node)
"codegen for valuetype failed\n"),
-1);
}
-
+
*os << be_nl << be_nl
<< "interface " << node->local_name () << "Consumer : ";
-
+
AST_Interface *parent = 0;
AST_Decl::NodeType nt = AST_Decl::NT_native;
-
+
if (node->n_inherits () > 0)
{
parent = node->inherits ()[0];
AST_Type *ut = parent->unaliased_type ();
nt = ut->node_type ();
}
-
+
if (node->n_inherits () == 0 || nt == AST_Decl::NT_valuetype)
{
*os << "Components::EventConsumerBase";
@@ -451,25 +451,25 @@ idl3_to_idl2_visitor::visit_eventtype (AST_EventType *node)
{
*os << node->inherits ()[0]->name () << "Consumer";
}
-
+
*os << be_nl
<< "{" << be_idt_nl
<< "void push_" << node->local_name () << " (in "
<< node->local_name () << " the_"
<< node->local_name () << ");" << be_uidt_nl
<< "};";
-
- return 0;
+
+ return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_eventtype_fwd (AST_EventTypeFwd *node)
{
if (node->imported ())
{
return 0;
}
-
+
if (this->visit_valuetype_fwd (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -477,10 +477,10 @@ idl3_to_idl2_visitor::visit_eventtype_fwd (AST_EventTypeFwd *node)
"codegen for valuetype_fwd failed\n"),
-1);
}
-
+
*os << be_nl
<< "interface " << node->local_name () << "Consumer;";
-
+
return 0;
}
@@ -491,15 +491,15 @@ idl3_to_idl2_visitor::visit_home (AST_Home *node)
{
return 0;
}
-
+
ACE_CString explicit_name = node->local_name ()->get_string ();
explicit_name += "Explicit";
-
+
*os << be_nl << be_nl
<< "interface " << explicit_name.c_str () << " : ";
-
+
AST_Home *base = node->base_home ();
-
+
if (base == 0)
{
*os << "Components::CCMHome";
@@ -508,89 +508,89 @@ idl3_to_idl2_visitor::visit_home (AST_Home *node)
{
*os << base->name () << "Explicit";
}
-
+
*os << be_nl
<< "{" << be_idt;
-
+
this->check_id_and_version (node);
-
+
// Create a temporary interface node corresponding to the one we
// just generated above for the home explicit interface.
- UTL_ScopedName *sn =
+ UTL_ScopedName *sn =
this->create_scoped_name (0,
explicit_name.c_str (),
0,
ScopeAsDecl (node->defined_in ()));
-
+
AST_Interface xplicit (sn,
0,
0,
0,
0,
- false,
- false);
+ I_FALSE,
+ I_FALSE);
xplicit.set_defined_in (node->defined_in ());
// Reset the home's decls to be defined in the explicit home interface.
this->tranfer_scope_elements (node, xplicit);
-
+
this->gen_factories (node, xplicit);
this->gen_finders (node, xplicit);
-
+
*os << be_uidt_nl
<< "};" << be_nl << be_nl;
-
+
xplicit.destroy ();
sn->destroy ();
delete sn;
sn = 0;
-
+
AST_ValueType *key = node->primary_key ();
-
- // Generate the implicit home interface and its operations.
+
+ // Generate the implicit home interface and its operations.
*os << "interface " << node->local_name () << "Implicit"
<< (key == 0 ? " : Components::KeylessCCMHome" : "")
<< be_nl
<< "{" << be_idt_nl
<< node->managed_component ()->name () << " create (";
-
+
if (key != 0)
{
*os << "in " << key->name () << " key";
}
-
+
*os << ")" << be_idt_nl
<< "raises (Components::CreateFailure";
-
+
if (key != 0)
{
*os << ", Components::InvalidKey, Components::DuplicateKeyValue";
}
-
+
*os << ");" << be_uidt;
-
+
if (key != 0)
{
*os << be_nl << be_nl
- << node->managed_component ()->name ()
- << " find_by_primary_key (in " << key->name ()
+ << node->managed_component ()->name ()
+ << " find_by_primary_key (in " << key->name ()
<< " key)" << be_idt_nl
<< "raises (Components::InvalidKey, Components::UnknownKeyValue, "
<< "Components::FinderFailure);" << be_uidt;
-
+
*os << be_nl << be_nl
<< "void remove (in " << key->name () << " key)" << be_idt_nl
<< "raises (Components::InvalidKey, Components::UnknownKeyValue, "
<< "Components::RemoveFailure);" << be_uidt;
-
+
*os << be_nl << be_nl
<< key->name () << " get_primary_key (in "
<< node->managed_component ()->name () << " comp);";
}
-
+
*os << be_uidt_nl
<< "};";
-
+
// Create equivalent interface.
*os << be_nl << be_nl
<< "interface " << node->local_name () << " : "
@@ -598,29 +598,29 @@ idl3_to_idl2_visitor::visit_home (AST_Home *node)
<< node->local_name () << "Implicit" << be_nl
<< "{" << be_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_factory (AST_Factory *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl;
-
+
*os << "factory " << node->local_name () << " (";
-
+
this->gen_params (node, node->argument_count ());
-
+
*os << ")";
-
+
this->gen_exception_list (node->exceptions ());
-
+
*os << ";";
this->check_id_and_version (node);
@@ -628,16 +628,16 @@ idl3_to_idl2_visitor::visit_factory (AST_Factory *node)
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_structure (AST_Structure *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "struct " << node->local_name () << be_nl
<< "{" << be_idt;
@@ -650,38 +650,38 @@ idl3_to_idl2_visitor::visit_structure (AST_Structure *node)
"codegen for scope failed\n"),
-1);
}
-
+
*os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_structure_fwd (AST_StructureFwd *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "struct " << node->local_name () << ";";
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_exception (AST_Exception *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "exception " << node->local_name () << be_nl
<< "{" << be_idt;
@@ -694,29 +694,29 @@ idl3_to_idl2_visitor::visit_exception (AST_Exception *node)
"codegen for scope failed\n"),
-1);
}
-
+
*os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_expression (AST_Expression *)
{
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_enum (AST_Enum *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "enum " << node->local_name () << be_nl
<< "{" << be_idt;
@@ -724,28 +724,28 @@ idl3_to_idl2_visitor::visit_enum (AST_Enum *node)
!i.is_done ();)
{
*os << be_nl;
-
+
AST_EnumVal *ev = AST_EnumVal::narrow_from_decl (i.item ());
*os << ev->local_name ();
-
+
// Advance here so the check below will work.
i.next ();
-
+
if (!i.is_done ())
{
*os << ",";
}
}
-
+
*os << be_uidt_nl
<< "};";
-
+
this->check_id_and_version (node);
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_operation (AST_Operation *node)
{
*os << be_nl << be_nl;
@@ -754,16 +754,16 @@ idl3_to_idl2_visitor::visit_operation (AST_Operation *node)
{
*os << "oneway ";
}
-
+
*os << this->type_name (node->return_type ());
*os << " " << node->local_name () << " (";
-
+
this->gen_params (node, node->argument_count ());
-
+
*os << ")";
-
+
this->gen_exception_list (node->exceptions ());
-
+
*os << ";";
this->check_id_and_version (node);
@@ -771,18 +771,18 @@ idl3_to_idl2_visitor::visit_operation (AST_Operation *node)
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_field (AST_Field *node)
{
AST_Field::Visibility v = node->visibility ();
*os << be_nl
- << (v == AST_Field::vis_PUBLIC
- ? "public "
+ << (v == AST_Field::vis_PUBLIC
+ ? "public "
: (v == AST_Field::vis_PRIVATE ? "private " : ""));
-
+
AST_Type *ft = node->field_type ();
-
+
if (ft->node_type () == AST_Decl::NT_array)
{
this->gen_anonymous_array (ft, node);
@@ -793,13 +793,13 @@ idl3_to_idl2_visitor::visit_field (AST_Field *node)
*os << this->type_name (ft);
*os << " " << node->local_name ();
}
-
+
*os << ";";
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_argument (AST_Argument *node)
{
*os << be_nl;
@@ -814,22 +814,22 @@ idl3_to_idl2_visitor::visit_argument (AST_Argument *node)
break;
case AST_Argument::dir_OUT:
*os << "out ";
- break;
+ break;
default:
return -1;
}
-
- *os << this->type_name (node->field_type ())
+
+ *os << this->type_name (node->field_type ())
<< " " << node->local_name ();
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_attribute (AST_Attribute *node)
{
- bool rd_only = node->readonly ();
-
+ idl_bool rd_only = node->readonly ();
+
// Keep output statements separate because of side effects.
// No need to check for anonymous array - anonymous types not
// accepted by parser for attributes.
@@ -837,13 +837,13 @@ idl3_to_idl2_visitor::visit_attribute (AST_Attribute *node)
<< (rd_only ? "readonly " : "") << "attribute ";
*os << this->type_name (node->field_type ());
*os << " " << node->local_name ();
-
+
this->gen_exception_list (node->get_get_exceptions (),
rd_only ? "" : "get");
-
+
this->gen_exception_list (node->get_set_exceptions (),
"set");
-
+
*os << ";";
this->check_id_and_version (node);
@@ -851,18 +851,18 @@ idl3_to_idl2_visitor::visit_attribute (AST_Attribute *node)
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_union (AST_Union *node)
{
if (node->imported ())
{
return 0;
}
-
+
this->disc_type_ = node->disc_type ()->unaliased_type ();
-
+
*os << be_nl << be_nl;
-
+
*os << "union " << node->local_name () << " switch ("
<< node->disc_type ()->name () << ")" << be_nl
<< "{" << be_idt;
@@ -876,28 +876,28 @@ idl3_to_idl2_visitor::visit_union (AST_Union *node)
"codegen for scope failed\n"),
-1);
}
-
+
*os << be_uidt_nl
<< "};";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_union_fwd (AST_UnionFwd *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl
<< "union " << node->local_name () << ";";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_union_branch (AST_UnionBranch *node)
{
for (unsigned long i = 0; i < node->label_list_length (); ++i)
@@ -910,9 +910,9 @@ idl3_to_idl2_visitor::visit_union_branch (AST_UnionBranch *node)
-1);
}
}
-
+
AST_Type *ft = node->field_type ();
-
+
if (ft->node_type () == AST_Decl::NT_array)
{
this->gen_anonymous_array (ft, node);
@@ -922,43 +922,43 @@ idl3_to_idl2_visitor::visit_union_branch (AST_UnionBranch *node)
*os << this->type_name (ft);
*os << " " << node->local_name ();
}
-
+
*os << ";";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_union_label (AST_UnionLabel *node)
{
*os << be_nl;
-
+
if (node->label_kind () == AST_UnionLabel::UL_default)
{
*os << "default: ";
- }
+ }
else
{
*os << "case ";
this->gen_label_value (node);
*os << ": ";
}
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_constant (AST_Constant *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "const ";
-
+
switch (node->et ())
{
case AST_Expression::EV_short:
@@ -980,7 +980,7 @@ idl3_to_idl2_visitor::visit_constant (AST_Constant *node)
*os << "unsigned long long";
break;
case AST_Expression::EV_char:
- *os << "char";
+ *os << "char";
break;
case AST_Expression::EV_wchar:
*os << "wchar";
@@ -1012,26 +1012,26 @@ idl3_to_idl2_visitor::visit_constant (AST_Constant *node)
default:
break;
}
-
- *os << " "
+
+ *os << " "
<< node->local_name () << " = " << node->constant_value () << ";";
-
+
this->check_id_and_version (node);
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_enum_val (AST_EnumVal *)
{
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_array (AST_Array *node)
{
*os << node->base_type ()->name ();
-
+
for (unsigned long i = 0; i < node->n_dims (); ++i)
{
*os << "[" << node->dims ()[i] << "]";
@@ -1040,53 +1040,53 @@ idl3_to_idl2_visitor::visit_array (AST_Array *node)
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_sequence (AST_Sequence *node)
{
// Keep output statements separate because of side effects.
*os << "sequence<";
*os << this->type_name (node->base_type ());
-
+
if (!node->unbounded ())
{
*os << ", " << node->max_size ()->ev ()->u.ulval;
}
-
+
*os << "> ";
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_string (AST_String *node)
{
*os << (node->width () > 1 ? "w" : "") << "string";
-
+
unsigned long bound = node->max_size ()->ev ()->u.ulval;
-
+
if (bound > 0)
{
*os << "<" << bound << ">";
}
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_typedef (AST_Typedef *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl
<< "typedef ";
-
+
AST_Type *bt = node->base_type ();
-
+
// Keep output statements separate because of side effects.
-
+
if (bt->node_type () == AST_Decl::NT_array)
{
this->gen_anonymous_array (bt, node);
@@ -1096,59 +1096,59 @@ idl3_to_idl2_visitor::visit_typedef (AST_Typedef *node)
*os << this->type_name (bt);
*os << " " << node->local_name ();
}
-
+
*os << ";";
-
+
this->check_id_and_version (node);
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_root (AST_Root *node)
{
ACE_NEW_RETURN (this->os,
TAO_SunSoft_OutStream,
-1);
-
+
ACE_CString fn (idl_global->stripped_filename ()->get_string ());
fn = fn.substr (0, fn.rfind ('.'));
fn += "_IDL2.idl";
-
+
const char *path = be_global->output_dir ();
ACE_CString target_name;
-
+
if (path != 0)
{
target_name = path;
target_name += "/";
}
-
+
target_name += fn;
-
+
if (this->os->open (target_name.c_str ()) != 0)
{
ACE_DEBUG ((LM_DEBUG,
"Failed to open file %s for writing.\n",
target_name.c_str ()));
-
+
return -1;
}
-
+
os->gen_ifndef_string (fn.c_str (), "_TAO_IDL_", "_IDL_");
-
+
ACE_CString raw_filename;
ACE_CString filename;
-
+
for (size_t i = 0; i < idl_global->n_included_idl_files (); ++i)
{
if (i == 0)
{
*os << be_nl;
}
-
+
raw_filename = idl_global->included_idl_files ()[i];
-
+
if (raw_filename.find (".pidl") != ACE_CString::npos
|| raw_filename == "orb.idl"
|| raw_filename == "Components.idl")
@@ -1157,22 +1157,22 @@ idl3_to_idl2_visitor::visit_root (AST_Root *node)
}
else
{
- filename =
+ filename =
raw_filename.substr (0, raw_filename.rfind ('.')) + "_IDL2.idl";
}
-
+
*os << be_nl
<< "#include \"" << filename.c_str () << "\"";
}
-
+
const char *pfix = node->prefix ();
-
+
if (ACE_OS::strcmp (pfix, "") != 0)
{
*os << be_nl << be_nl
<< "#pragma prefix \"" << pfix << "\"";
}
-
+
if (this->visit_scope (node) != 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -1180,25 +1180,25 @@ idl3_to_idl2_visitor::visit_root (AST_Root *node)
"codegen for scope failed\n"),
-1);
}
-
+
*os << be_nl << be_nl
<< "#endif /* ifndef */" << be_nl << be_nl;
-
+
return 0;
}
-int
+int
idl3_to_idl2_visitor::visit_native (AST_Native *node)
{
if (node->imported ())
{
return 0;
}
-
+
*os << be_nl << be_nl;
-
+
*os << "native " << node->local_name () << ";";
-
+
return 0;
}
@@ -1212,11 +1212,11 @@ idl3_to_idl2_visitor::check_prefix (AST_Decl *d)
const char *the_prefix = d->prefix ();
AST_Decl *p = ScopeAsDecl (d->defined_in ());
-
+
if (ACE_OS::strcmp (the_prefix, p->prefix ()) != 0)
{
*os << be_nl
- << "typeprefix " << d->local_name ()
+ << "typeprefix " << d->local_name ()
<< " \"" << the_prefix << "\";";
}
}
@@ -1227,19 +1227,19 @@ idl3_to_idl2_visitor::check_id_and_version (AST_Decl *d)
if (d->typeid_set ())
{
*os << be_nl
- << "typeid " << d->local_name ()
+ << "typeid " << d->local_name ()
<< " \"" << d->repoID () << "\";";
-
+
return;
}
-
+
const char *the_version = d->version ();
AST_Decl *p = ScopeAsDecl (d->defined_in ());
-
+
if (ACE_OS::strcmp (the_version, p->version ()) != 0)
{
*os << "\n"
- << "#pragma version " << d->local_name ()
+ << "#pragma version " << d->local_name ()
<< " " << the_version;
}
}
@@ -1260,7 +1260,7 @@ idl3_to_idl2_visitor::type_name (AST_Type *t)
return "";
case AST_Decl::NT_pre_defined:
pdt = AST_PredefinedType::narrow_from_decl (t);
-
+
switch (pdt->pt ())
{
case AST_PredefinedType::PT_pseudo:
@@ -1311,10 +1311,10 @@ idl3_to_idl2_visitor::gen_anonymous_array (AST_Type *a,
{
AST_Array *array = AST_Array::narrow_from_decl (a);
AST_Type *bt = array->base_type ();
-
+
*os << this->type_name (bt);
*os << " " << wrapper->local_name ();
-
+
for (unsigned long i = 0; i < array->n_dims (); ++i)
{
*os << "[" << array->dims ()[i]->ev ()->u.ulval << "]";
@@ -1326,11 +1326,11 @@ idl3_to_idl2_visitor::gen_label_value (AST_UnionLabel *node)
{
AST_Expression *val = node->label_val ();
AST_Expression::AST_ExprValue *ev = val->ev ();
-
+
if (this->disc_type_->node_type () == AST_Decl::NT_enum)
{
UTL_Scope *s = this->disc_type_->defined_in ();
-
+
if (s == 0)
{
*os << val->n ();
@@ -1340,7 +1340,7 @@ idl3_to_idl2_visitor::gen_label_value (AST_UnionLabel *node)
*os << ScopeAsDecl (s)->name () << "::"
<< val->n ()->last_component ();
}
-
+
return;
}
@@ -1371,7 +1371,7 @@ idl3_to_idl2_visitor::gen_label_value (AST_UnionLabel *node)
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
break;
case AST_Expression::EV_char:
- *os << ev->u.cval;
+ *os << ev->u.cval;
break;
case AST_Expression::EV_wchar:
*os << ev->u.wcval;
@@ -1399,7 +1399,7 @@ idl3_to_idl2_visitor::gen_provides (AST_Component *node)
iter.advance ())
{
iter.next (pd);
-
+
*os << be_nl << be_nl
<< pd->impl->name () << " provide_" << pd->id << " ();";
}
@@ -1417,9 +1417,9 @@ idl3_to_idl2_visitor::gen_uses (AST_Component *node)
iter.advance ())
{
iter.next (pd);
-
+
*os << be_nl << be_nl;
-
+
if (pd->is_multiple)
{
*os << "struct " << pd->id << "Connection" << be_nl
@@ -1436,14 +1436,14 @@ idl3_to_idl2_visitor::gen_uses (AST_Component *node)
<< "Components::InvalidConnection);" << be_uidt_nl << be_nl
<< pd->impl->name () << " disconnect_" << pd->id
<< " (in Components::Cookie ck)" << be_idt_nl
- << "raises (Components::InvalidConnection);"
+ << "raises (Components::InvalidConnection);"
<< be_uidt_nl << be_nl
- << pd->id << "Connections get_connections_" << pd->id
+ << pd->id << "Connections get_connections_" << pd->id
<< " ();";
}
else
{
- *os << "void connect_" << pd->id << " (in "
+ *os << "void connect_" << pd->id << " (in "
<< pd->impl->name () << " conxn)" << be_idt_nl
<< "raises (Components::AlreadyConnected, "
<< "Components::InvalidConnection);" << be_uidt_nl << be_nl
@@ -1468,10 +1468,10 @@ idl3_to_idl2_visitor::gen_publishes (AST_Component *node)
iter.advance ())
{
iter.next (pd);
-
+
*os << be_nl << be_nl
<< "Components::Cookie subscribe_" << pd->id
- << " (in " << pd->impl->name () <<"Consumer consumer)"
+ << " (in " << pd->impl->name () <<"Consumer consumer)"
<< be_idt_nl
<< "raises (Components::ExceededConnectionLimit);"
<< be_uidt_nl << be_nl
@@ -1493,12 +1493,12 @@ idl3_to_idl2_visitor::gen_emits (AST_Component *node)
iter.advance ())
{
iter.next (pd);
-
+
*os << be_nl << be_nl
<< "void connect_" << pd->id
- << " (in " << pd->impl->name ()
+ << " (in " << pd->impl->name ()
<< "Consumer consumer)" << be_idt_nl
- << "raises (Components::AlreadyConnected);"
+ << "raises (Components::AlreadyConnected);"
<< be_uidt_nl << be_nl
<< pd->impl->name () << "Consumer disconnect_" << pd->id
<< " ()" << be_idt_nl
@@ -1518,7 +1518,7 @@ idl3_to_idl2_visitor::gen_consumes (AST_Component *node)
iter.advance ())
{
iter.next (pd);
-
+
*os << be_nl << be_nl
<< pd->impl->name () << "Consumer get_consumer_" << pd->id
<< " ();";
@@ -1571,10 +1571,10 @@ idl3_to_idl2_visitor::tranfer_scope_elements (AST_Home *src,
d->set_name (new_name);
dst.add_to_scope (d);
}
-
+
// Visit the transferred scope elements normally to generate the IDL.
// This way referenced items will have the interface's name in the
- // scoped name instead of the home's name.
+ // scoped name instead of the home's name.
for (UTL_ScopeActiveIterator dst_iter (&dst, UTL_Scope::IK_decls);
! dst_iter.is_done ();
dst_iter.next ())
@@ -1599,27 +1599,27 @@ idl3_to_idl2_visitor::gen_factories (AST_Home *node,
i.advance ())
{
i.next (item);
-
+
*os << be_nl << be_nl
<< node->managed_component ()->name () << " "
<< (*item)->local_name () << " (";
-
+
this->gen_params (*item, (*item)->argument_count ());
-
+
*os << ")";
-
+
UTL_ExceptList *exceps = (*item)->exceptions ();
-
+
if (exceps != 0 && exceps->length () > 0)
{
- this->gen_exception_list (exceps, "", false);
+ this->gen_exception_list (exceps, "", I_FALSE);
}
else
{
*os << be_idt_nl
<< "raises (";
}
-
+
*os << "Components::CreateFailure);" << be_uidt;
}
}
@@ -1635,27 +1635,27 @@ idl3_to_idl2_visitor::gen_finders (AST_Home *node,
i.advance ())
{
i.next (item);
-
+
*os << be_nl << be_nl
<< node->managed_component ()->name () << " "
<< (*item)->local_name () << " (";
-
+
this->gen_params (*item, (*item)->argument_count ());
-
+
*os << ")";
-
+
UTL_ExceptList *exceps = (*item)->exceptions ();
-
+
if (exceps != 0 && exceps->length () > 0)
{
- this->gen_exception_list (exceps, "", false);
+ this->gen_exception_list (exceps, "", I_FALSE);
}
else
{
*os << be_idt_nl
<< "raises (";
}
-
+
*os << "Components::FinderFailure);" << be_uidt;
}
}
@@ -1666,7 +1666,7 @@ idl3_to_idl2_visitor::gen_params (UTL_Scope *s, int arg_count)
if (arg_count > 0)
{
*os << be_idt << be_idt;
-
+
for (UTL_ScopeActiveIterator si (s, UTL_Scope::IK_decls);
!si.is_done ();)
{
@@ -1676,45 +1676,45 @@ idl3_to_idl2_visitor::gen_params (UTL_Scope *s, int arg_count)
"idl3_to_idl2_visitor::gen_params - "
"codegen for parameters failed\n"));
}
-
+
si.next ();
-
+
if (!si.is_done ())
{
*os << ",";
}
}
-
+
*os << be_uidt_nl << be_uidt;
- }
+ }
}
void
idl3_to_idl2_visitor::gen_exception_list (UTL_ExceptList *exceptions,
const char *prefix,
- bool closed)
+ idl_bool closed)
{
if (exceptions != 0 && exceptions->length () > 0)
{
*os << be_idt_nl
<< prefix << "raises (";
-
+
for (UTL_ExceptlistActiveIterator ei (exceptions);
!ei.is_done ();)
{
*os << ei.item ()->name ();
-
+
ei.next ();
-
+
if (!ei.is_done () || !closed)
{
*os << ", ";
}
}
-
+
if (closed)
- {
+ {
*os << ")" << be_uidt;
}
- }
+ }
}
diff --git a/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h b/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h
index e5f976edf3e..e310e2d1cfc 100644
--- a/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h
+++ b/TAO/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h
@@ -82,7 +82,7 @@ public:
virtual int visit_typedef (AST_Typedef *node);
virtual int visit_root (AST_Root *node);
virtual int visit_native (AST_Native *node);
-
+
private:
void check_prefix (AST_Decl *d);
void check_id_and_version (AST_Decl *d);
@@ -104,8 +104,8 @@ private:
void gen_params (UTL_Scope *s, int arg_count);
void gen_exception_list (UTL_ExceptList *exceptions,
const char *prefix = "",
- bool closed = true);
-
+ idl_bool closed = I_TRUE);
+
private:
TAO_OutStream *os;
AST_Type *disc_type_;
diff --git a/TAO/COPYING b/TAO/COPYING
index 35b26e8f8b7..41eecbf0fc3 100644
--- a/TAO/COPYING
+++ b/TAO/COPYING
@@ -8,11 +8,11 @@
referred to as "DOC software") are copyrighted by [5]Douglas C.
Schmidt and his [6]research group at [7]Washington University,
[8]University of California, Irvine, and [9]Vanderbilt University,
- Copyright (c) 1993-2006, all rights reserved. Since DOC software is
- open-source, freely available software, you are free to use, modify,
- copy, and distribute--perpetually and irrevocably--the DOC software
- source code and object code produced from the source, as well as copy
- and distribute modified versions of this software. You must, however,
+ Copyright (c) 1993-2005, all rights reserved. Since DOC software is
+ open-source, free software, you are free to use, modify, copy, and
+ distribute--perpetually and irrevocably--the DOC software source code
+ and object code produced from the source, as well as copy and
+ distribute modified versions of this software. You must, however,
include this copyright statement along with code built using DOC
software.
@@ -67,16 +67,9 @@
the part of Washington University, UC Irvine, Vanderbilt University,
their employees, or students to assist in its use, correction,
modification, or enhancement. A [19]number of companies around the
- world provide commercial support for DOC software, however.
-
- DOC software is Y2K-compliant, as long as the underlying OS platform
- is Y2K-compliant. Likewise, DOC software is compliant with the new US
- daylight savings rule passed by Congress as "The Energy Policy Act of
- 2005," which established new daylight savings times (DST) rules for
- the United States that expand DST as of March 2007. Since DOC software
- obtains time/date and calendaring information from operating systems
- users will not be affected by the new DST rules as long as they
- upgrade their operating systems accordingly.
+ world provide commercial support for DOC software, however. DOC
+ software is Y2K-compliant, as long as the underlying OS platform is
+ Y2K-compliant.
The names ACE(TM), TAO(TM), CIAO(TM), CoSMIC(TM), Washington
University, UC Irvine, and Vanderbilt University, may not be used to
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index e5473a974ec..30b01997a1c 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,12762 +1,12 @@
-Fri Apr 14 15:01:51 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
+Tue Jan 10 16:03:17 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
- * orbsvcs/tests/Notify/MT_Dispatching/MT_Dispatching.mpc:
-
- Avoids building with ace_for_tao.
-
-Wed Apr 12 21:48:29 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated with the race condition fix.
-
-Tue Apr 11 16:26:47 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * tao/Connection_Handler.cpp:
- * tao/Resume_Handle.h:
- * tao/Resume_Handle.cpp:
-
- Reapply the fix a week ago with a correction.
- Before, I mistakenly put a new operation into a
- wrong place. It should be in the right place now.
- Thanks to Frank Rehberger for correcting this.
- Mon Mar 27 18:55:51 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
-Tue Apr 11 13:13:27 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tao/Utils/Servant_Var.h:
- * tao/Utils/Servant_Var.inl:
-
- Add ACE_LACKS_MEMBER_TEMPLATES guards around problematic equality
- operators.
-
-Mon Apr 10 18:42:47 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/tests/Event/Mcast/Simple/Simple.mpc:
-
- Fixed the 'after' setting in the client project.
-
-Mon Apr 10 16:21:40 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
-
- Trying to fix another compiler error in ICC 9.0 Windows
- 64-bit build.
-
-Mon Apr 10 14:50:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2377_Regression/Hello.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- Fixed conversion warnings in vxworks build
-
-Mon Apr 10 10:13:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/IDL_Test/interface.idl:
- Added some extra test cases which where reported by Hans Bos
- <hans dot bos at xelion dot nl> as not working with 1.4.4 but
- they are now working with cvs head.
-
-Mon Apr 10 06:34:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/extra_core.mpb:
- * tao/tao.mpc:
- Moved ServerRequestInterceptor_Adapter.cpp and
- ClientRequestInterceptor_Adapter.cpp from extra_core to tao
- to fix link errors in vc minimum build
-
-Fri Apr 7 19:54:44 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * tao/Connection_Handler.cpp:
- * tao/Resume_Handle.h:
- * tao/Resume_Handle.cpp:
-
- Back out the changes I put a week ago since they didn't help
- resovle a race condition.
- Mon Mar 27 18:55:51 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
-Fri Apr 7 09:12:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp:
- Removed include of orbsvcs/Time_Utilities.h, it is not needed and
- caused errors in some builds because this app wasn't build after
- the svc_utils anymore
-
-Thu Apr 6 18:18:47 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/Strategies/advanced_resource.cpp (input_cdr_buffer_allocator):
-
- Modified this method to defer to the TAO_Default_Resource_Factory
- for the input_cdr_buffer_allocator if the allocator type is not
- TAO_ALLOCATOR_NULL_LOCK. In the event that the user has chosen
- not to use the memory pool allocator, they will get the right type
- of input cdr buffer allocator.
-
-Thu Apr 6 00:33:35 UTC 2006 Iliyan Jeliazkov <iliyan@ociweb.com>
-
- * tao/ORB_Core.cpp:
-
- Fixing the usage of the correct dynamic service names, for the
- case of TAO built with support for dynamic linking. Thanks to
- Ossama Othman <Ossama_Othman at symantec dot com> for providing
- the patch.
-
-Wed Apr 5 22:39:28 UTC 2006 Adam Mitz <mitza@ociweb.com>
-
- * tests/Bug_2494_Regression/Bug_2494_Regression.mpc:
- * tests/Bug_2494_Regression/README:
- * tests/Bug_2494_Regression/client.cpp:
- * tests/Bug_2494_Regression/run_test.pl:
- * tests/Bug_2494_Regression/server.cpp:
- * tests/Bug_2494_Regression/test.idl:
- * tests/Bug_2494_Regression/test_i.h:
- * tests/Bug_2494_Regression/test_i.inl:
- * tests/Bug_2494_Regression/test_i.cpp:
-
- Added a regression test for Bugzilla bug #2494.
-
- * tao/Transport.cpp (~Transport):
-
- Added back the ACE_ASSERTS, needed for the regression test above.
- See Bugzilla bug #2494.
-
-Tue Apr 4 22:03:35 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/examples/ImR/Advanced/TestClient.h:
- * orbsvcs/examples/ImR/Advanced/TestClient.cpp:
- * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
-
- Trying to fix compile error occuring on icc 9.0 build.
- Replaced std::cout with ACE_DEBUG, std::getline with
- ACE_Capabilies::getline.
-
-Tue Apr 4 12:30:08 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp:
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp:
-
- Fix old gcc warnings.
-
-Tue Apr 4 09:15:16 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Documented Frank's formidably fabulous forwarding fix.
-
-Tue Apr 4 08:36:45 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Permanent_Forward/StubTest.cpp:
-
- Fixed gcc 2.96 warnings.
-
-Tue Apr 4 08:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/AnyTypeCode/NVList.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Loader.cpp:
- Fixed unitialized warnings
-
-Mon Apr 3 18:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/Options.html:
- Document that with waitstrategy RW you can't use BiDIR GIOP
-
-Mon Apr 03 18:03:29 UTC 2006 Trevor Fields <fields_t@ociweb.com>
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.cpp:
-
- Change the interceptor to not count any _is_a calls. The comparison count
- does not include any _is_a calls. The calls can occur as a full CORBA
- call when the system does not recognize the object is Collocated or
- collocation is turned off.
-
-Sat Apr 1 18:56:25 UTC 2006 Jaiganesh Balasubramanian <jai.dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/LoadBalancing/README:
-
- Added a README file explaining the features supported by the TAO
- Load Balancing service and the future work that is targeted.
-
-Sat Apr 1 18:43:21 UTC 2006 Jaiganesh Balasubramanian <jai.dre.vanderbilt.edu>
-
- * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/README:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/README:
-
- Added README files for the tests checking the application
- controlled and infrastructure controlled group membership
- support of the TAO Load Balancing service.
-
-Sat Apr 1 18:41:04 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/be/be_codegen.cpp:
-
- Crash when deleting this->gperf_input_stream_ occurs on other
- systems that use glibc (like GNU/kFreeBSD), not just on linux.
- Thanks to Thomas Girard <thomas dot g dot girard at free dot fr>
- for this fix.
-
-Fri Mar 31 14:30:24 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * tao/Object_Ref_Table.{h,inl} (register_initial_reference):
- Added a new parameter called "rebind" that defaults to false.
- If this parameter is true then rebind() will be used instead of
- bind to make it possible to update the initial references
- dynamically. Thanks to Bob Ronak <ronak2121 at gmail dot com>
- for suggesting this.
-
-Fri Mar 31 17:19:13 UTC 2006 Adam Mitz <mitza@ociweb.com>
-
- * tao/Transport.cpp:
-
- See bugzilla bug #2494 for full details. This fixes a race condition
- where one thread sends data out of the transport (drain_queue_helper)
- but then gets scheduled out before reaching the flushing strategy.
- Meanwhile another thread runs on the same transport and notices that
- the client has closed the connection. This thread closes the
- transport. The first thread then continues and attempts to register
- with the reactor to do further output (schedule_output_i), however
- the connection handler has already been removed from the reactor.
- This causes problems later on including a memory leak, since a block
- has been allocated on the tranpsort's queue (in send_reply_message_i)
- and it will never be deallocated (the transport destructor will run
- first).
-
-Fri Mar 31 15:17:51 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/IDL_Test/included.idl:
- * tests/IDL_Test/including.idl:
-
- Added valuetype IDL example that is declared in one file, which
- is included in another where the valuetype is used in a sequence.
- This example tests whether the inclusion of Value_VarOut_T.h
- occurs soon enough in the translation unit to be seen when the
- sequence template class is instantiated, and to make sure the
- change in
-
- Thu Mar 30 20:21:53 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- survives when the TAO sequence overhaul is integrated.
-
-Fri Mar 31 11:13:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl:
- Check the return value of the spawn of the server and don't try
- to also run the client on the vxworks target, the server is the
- side of the test that runs there
-
-Fri Mar 31 11:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/POA/Adapter_Activator/run_test.pl:
- * examples/POA/Default_Servant/run_test.pl:
- * examples/POA/Explicit_Activation/run_test.pl:
- * examples/POA/Loader/run_test.pl:
- * examples/POA/On_Demand_Activation/run_test.pl:
- * examples/POA/On_Demand_Loading/run_test.pl:
- * examples/POA/Reference_Counted_Servant/run_test.pl:
- Check the return value of the spawn of the server, if this is
- not equal zero just exit directly. Speeds up the tests when
- there are no executables build
-
-Fri Mar 31 11:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Wait_On_Read.cpp:
- Use false instead of 0 for a bool
-
-Thu Mar 30 20:21:53 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tao/Valuetype/Sequence_T.h:
-
- Added include of Value_VarOut_T.h, needed when compiling
- generated code from an IDL file with a sequence whose
- valuetype element was declared in an included IDL file, on
- platforms where template source files are not included in
- the corresponding header file. Thanks to Dmitriy Kuznetsov
- <dk3@garant.ru> for sending the example IDL files that
- uncovered the problem.
-
-Thu Mar 30 19:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.i:
- Moved is_permanent_forward_condition out of TAO_HAS_INTERCEPTORS
- check
-
-Thu Mar 30 11:46:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Exclusive_TMS.cpp:
- Fixed incorrect formatted debug statement
-
-Thu Mar 30 11:26:45 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/tao_idl.mpc:
-
- If variable ACE_CC_PREPROCESSOR is defined add that as a macro
- definition on the compile line instead of assuming that the value of
- CXX should be used. This fixes bug #2478.
-
- See also: Thu Mar 30 11:27:00 UTC 2006 Simon McQueen <sm@prismtech.com>
- in ../ChangeLog.
-
-Thu Mar 30 11:15:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/BiDirectional_DelayedUpcall/*:
- New test testing bidir where the client makes an invocation to
- the server, this directly returns, and a second later the
- server is going to callback on the client.
-
-Thu Mar 30 11:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/BiDirectional_NestedUpcall/run_test.pl:
- Updated for VxWorks
-
-Thu Mar 30 10:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IIOP_Transport.cpp:
- Fixed incorrect debug statements
-
-Thu Mar 30 10:38:31 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Permanent_Forward/StubTest.cpp:
-
- VxWorks warning - make String_var conversion explicit.
-
-Thu Mar 30 10:24:14 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Permanent_Forward/StubTest.cpp:
-
- LynxOS compile error. Use ACE_OS::strcmp.
-
-Thu Mar 30 09:58:11 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Permanent_Forward/StubTest.cpp:
-
- Suppress unused function warnings and make the test more effective
- when ACE_NDEBUG defined.
-
-Thu Mar 30 06:46:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitInfo.cpp (codec_factory):
- Fixed resource leak. Thanks to Steven Xie
- <steven dot xie at mpathix dot com> for reporting this.
-
-Thu Mar 30 03:30:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * tao/Stub.i: add missing call to
- orb_core->reinitialize_object (this), to optimize for colocal
- case.
-
- * tests/Permanent_Forward/StubTest.cpp: Removed code at end of
- test, which caused error messages even if the test run thru all
- test-cases successfully.
-
-Wed Mar 29 19:30:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * tao/Transport.h:
- Correct the documentation explaining message parsing. This is
- related to #2313
-
-Wed Mar 29 17:15:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * TAO/tao/DynamicInterface/DII_Invocation_Adapter.cpp:
- TAO/tao/Messaging/Asynch_Invocation_Adapter.cpp:
- TAO/tao/Invocation_Adapter.cpp:
-
- Guard reply_status() operation with if-else-endif macro for
- MINIMUM builds.
-
-Wed Mar 29 15:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h:
- Explicit shouldn't be used for a copy constructor
-
-Wed Mar 29 15:24:45 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/idl.yy (yyparse):
- * TAO_IDL/fe/y.tab.cpp (yyparse):
-
- Added return with error code immediately after outputting
- a lookup error for an enum type, since further parsing
- leads to a crash. Thanks to Jules Colding <colding@omesc.com>
- for reporting the problem and submitting examples IDL files.
-
-Wed Mar 29 03:42:55 UTC 2006 Balachandran Natarajan <bala_natarajan at symantec dot com>
-
- * docs/Options.html:
-
- Added documentation for -ORBConnectionHandlerCleanup.
-
-Tue Mar 28 23:59:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.{h,cpp}:
- * tao/Service_Callbacks.{h,cpp}:
- Add operation is_permanent_forward_condition()
-
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp:
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl:
- Add reset() operation to interceptor to be able to do colocal
- and repeat as remote test. Also store forward objects as
- deep-copies.
-
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp:
- Compare stringified object reference before and after the
- LOCATION_FORWARD_PERM occured, they must differ.
-
- * tao/GIOP_Message_Generator_Parser.cpp:
- * tao/GIOP_Message_Base.cpp:
- * tao/Invocation_Adapter.cpp:
- Add handling of TAO_GIOP_LOCATION_FORWARD_PERM.
-
- * tao/ORB_Core.{i,h,cpp}:
- Add operation is_permanent_forward_condition() which will
- upcalls the operation in Service_Callbacks interface.
-
- * tao/Object.cpp:
- Refactor the Object marshaling code into TAO_Stub::marshal()
- operation to encapsulate the TAO_GIOP_LOCATION_FORWARD_PERM
- case.
-
- * tao/Stub.{i,h,cpp}:
- Add operation TAO_Stub::marshal(), and permanent-forward-feature
- to operation add_forward_profiles().
-
- * tao/Synch_Invocation.cpp:
- * tao/DynamicInterface/Request.cpp:
- * tao/TAO_Server_Request.cpp:
- * tao/Messaging/Asynch_Invocation_Adapter.cpp:
- * tao/Messaging/Asynch_Reply_Dispatcher.cpp:
- Add handling for TAO_GIOP_LOCATION_FORWARD_PERM.
-
- * bin/tao_orb_tests.lst
- Add TAO/tests/Permanent_Forward/run_test.pl
-
- * tests/Permanent_Forward/Permanent_Forward.mpc:
- * tests/Permanent_Forward/run_test.pl:
- * tests/Permanent_Forward/StubTest.cpp:
- * tests/Permanent_Forward/README:
- New test, testing TAO_Stub features for permanent-forwarding support
-
- These changes add LOCATION_FORWARD_PERM feature, #1777
-
-Tue Mar 28 14:15:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/AMH_Exceptions/run_test.pl:
- * tests/AMH_Oneway/run_test.pl:
- Adjusted the timeouts to platform constants.
- Existing time too short for lynxos.
-
-Tue Mar 28 13:28:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Root_POA.cpp:
- Use bool as type, improved constness
-
-Mon Mar 27 18:55:51 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl:
- * tao/Connection_Handler.cpp:
- * tao/Resume_Handle.h:
- * tao/Resume_Handle.cpp:
-
- Merged in fixes from OCI 1.4a.
- Tue Feb 21 16:29:32 UTC 2006 Don Busch <busch_d@ociweb.com>
-
- * tao/Connection_Handler.cpp
- * tao/Resume_Handle.h
- * tao/Resume_Handle.cpp
- * orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl
-
- RT8248(Bug 1647) is a race condition involving two threads
- active in the same connection handler at the same time.
- The race is fixed by
- ensuring that a connection handler that has allowed its handle
- to be resumed in the Reactor does not return "1" from
- handle_input. "1" is the Reactor's "call me back immediately"
- value. Essentially, you can't give up ownership of yourself twice
- -- you give up owner-ship when you resume the handle, so you
- can't ask to be called back immediately. (The SSLIOP handler
- is the only one that ever returns 1, so that's the only handler
- in which this manifests itself)
-
- The additional test (run_test_harsh.pl) is a longer (~5 minute)
- version of the MT_SSLIOP test that fails without this change,
- but succeeds with it.
-
- Also moved the code for Ciju's "connection close" fix of
- "Fri Dec 16 14:40:54 2005" (this entry is moved from OCI 1.4a)
- from the Connection_Handler.cpp to the Resume_Handle.cpp.
- Fri Dec 16 14:40:54 2005 Ciju John <john_c@ociweb.com>
-
- * tao/Connection_Handler.cpp:
-
- When the client closes its connections, it sends an EOF
- to the server. The sever reactor gets an event for that
- handler. It first suspends the handler and then dispatches
- a thread to handle_input().Some where down the lane, a read()
- is done on the handle and automatically the handle is resumed.
- At this point another thread CAN enter the reactor and
- since the handle being closed has been resumed, the reactor
- will add it to its fd_set. As expected the reactor gets an
- event on that handle and dispatches someone else to handle
- that event.
- What this patch does is prevent the closing handler from being
- resumed. Thus it never does get added to the reactor
- fd_set and the possibility of getting a nil handler is removed.
-
-Mon Mar 27 10:29:08 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * tao/ORB_Core.cpp (destroy_interceptors):
-
- Fixed race condition that allowed multiple threads to destroy
- interceptors concurrently. Thanks to Iliyan for finding this
- race condition.
-
-Wed Mar 22 16:18:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/Bug_1482_Regression/run_test.pl:
- * tests/Bug_2174_Regression/run_test.pl:
- * tests/RTCORBA/Banded_Connections/run_test.pl:
- * tests/RTCORBA/Client_Protocol/run_test.pl:
- * tests/RTCORBA/Explicit_Binding/run_test.pl:
- * tests/RTCORBA/Policy_Combinations/run_test.pl:
- * tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl:
- * tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl:
- * tests/RTCORBA/Server_Protocol/run_test.pl:
- * tests/RTCORBA/Thread_Pool/run_test.pl:
- * tests/RTScheduling/DT_Spawn/run_test.pl:
- * tests/RTScheduling/Current/run_test.pl:
- * tests/RTScheduling/Scheduling_Interceptor/run_test.pl:
- * tests/OBV/Collocated/Forward/run_test.pl:
- * tests/Muxed_GIOP_Versions/run_test.pl:
- Altered IOR file wait timing to platform constant.
- Existing time too short for lynxos.
-
-Mon Mar 27 08:13:12 UTC 2006 Martin Corino <mcorino@remedy.nl>
-
- * docs/Options.html :
- * docs/ORBEndpoint.html :
- Fixed incorrect ORBInitRef examples.
-
-Fri Mar 24 01:58:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Notify_Service/Notify_Service.cpp:
- * orbsvcs/tests/Notify/lib/Driver.cpp:
-
- Removed logging of ORB worker thread start up, as that fails on
- systems without thread priorities. See bugzilla issue 2477 for
- details.
-
-Wed Mar 22 16:18:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/Bug_1495_Regression/run_test.pl:
- Altered IOR file wait timing to platform constant.
-
-Wed Mar 22 16:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp:
- Also disable a warning for BDS2006 with Update Pack 2
-
-Wed Mar 22 15:47:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2417_Regression/run_test.pl:
- Updated to run with VxWorks
-
-Wed Mar 22 14:40:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp:
- * tao/AnyTypeCode/Union_TypeCode.cpp:
- Fixed no return statement in function warning
-
-Wed Mar 22 14:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/GIOP_Message_Base.cpp:
- Fixed "control reaches end of non-void function" warning
-
-Tue Mar 21 13:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Table.h:
- Removed update_orbs method declaration, there was no implementation,
- if someone would use this method he would get an unresolved external,
- so zapped it
-
-Tue Mar 21 13:00:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Profile.h:
- * tao/LocalObject.h:
- * tao/IIOP_Acceptor.h:
- * tao/IIOP_Acceptor.h:
- Documentation and layout fixes
-
-Mon Mar 20 13:31:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IIOP_Acceptor.cpp:
- Use prefix decrement instead of postfix
-
-Mon Mar 20 13:23:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/GIOP_Message_Base.cpp:
- Made more local variables const, initialize pointer to 0
-
- * tao/GIOP_Message_Base.h:
- Documentation fix
-
-Mon Mar 20 13:13:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Transport.cpp:
- Made some more local variables const
-
-Mon Mar 20 13:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Transport.h:
- Documentation improvements
-
-Fri Mar 17 15:33:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/pluggable_protocols/index.html:
- Fixed some hyperlinks to TAO source files
-
-Fri Mar 17 14:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/poa_migration.html:
- Fixed links to the POA implementation
-
-Fri Mar 17 14:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/Smart_Proxies.html:
- Fixed typo
-
-Thu Mar 16 22:20:46 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_interface.cpp (be_add_operation):
- * TAO_IDL/include/ast_interface.h (be_add_operation):
-
- Changed the return type from void to AST_Operation*,
- the same type that is returned from the implementation's
- delegation to the private method fe_add_operation. This
- change allows an error in fe_add_operation (which will
- return 0 and probably be the result of a name clash) to
- get propagated up and be reflected in tao_idl's return
- value.
-
- * TAO_IDL/be/be_visitor_amh_pre_proc.cpp:
- * TAO_IDL/be/be_visitor_ami_pre_proc.cpp:
- * TAO_IDL/be/be_visitor_ccm_pre_proc.cpp:
- * TAO_IDL/be/be_visitor_interface/amh_sh.cpp:
-
- Changed usage of be_add_operation() to check the new
- return type and return -1 if it is null. The IDL
- compiler formerly would output a 'redefinition'
- (name clash) diagnostic if a user operation name
- clashed with an implied operation name of AMI or AMH,
- and likewise if 2 ports of the same category in a
- component had the same name. Now the IDL compiler
- will also indicate failure when it exits.
-
-Thu Mar 16 20:13:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Object.cpp:
- Use true/false instead of 1/0
-
-Thu Mar 16 12:20:41 MST 2006 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_ThreadPool/CSD_TP_Task.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Task.h:
-
- Typedef'd Thread_Counter as unsigned long and used it for
- the num_threads.
-
- * tao/CSD_ThreadPool/CSD_TP_Strategy.h:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.inl:
-
- Updated data member num_threads_ and set_num_threads() method
- to use the Thread_Counter type for the number of threads.
-
-Thu Mar 16 15:48:50 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
- * TAO_IDL/util/utl_global.cpp
- * orbsvcs/FTRT_Event_Service/Factory_Service/EventChannelFactory_i.cpp
- * orbsvcs/ImplRepo_Service/Activator_Loader.cpp
- * orbsvcs/ImplRepo_Service/INS_Locator.cpp
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
- * orbsvcs/ImplRepo_Service/Locator_Loader.cpp
- * orbsvcs/Notify_Service/Notify_Service.cpp
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp
- * orbsvcs/orbsvcs/AV/RTCP_Packet.cpp
- * orbsvcs/orbsvcs/AV/RTP.cpp
- * orbsvcs/orbsvcs/AV/sfp.cpp
- * orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp
- * orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp
- * orbsvcs/orbsvcs/PortableGroup/GOA.cpp
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp
- * orbsvcs/orbsvcs/Trader/Trading_Loader.cpp
- * tao/GIOP_Message_Base.cpp
- * tao/GIOP_Message_Generator_Parser_10.cpp
- * tao/GIOP_Message_Generator_Parser_12.cpp
- * tao/GIOP_Message_Lite.cpp
- * tao/IIOP_Acceptor.cpp
- * tao/IIOP_Connection_Handler.cpp
- * tao/ORB_Core.cpp
- * tao/TAO_Internal.cpp
- * tao/AnyTypeCode/Union_TypeCode.cpp
- * tao/AnyTypeCode/append.cpp
- * tao/AnyTypeCode/skip.cpp
- * tao/PortableServer/POAManager.cpp
- * tao/RTCORBA/Continuous_Priority_Mapping.cpp
- * tao/RTCORBA/Linear_Priority_Mapping.cpp
- * tao/RTCORBA/Multi_Priority_Mapping.cpp
- * tao/RTCORBA/RT_ORB_Loader.cpp
- * tao/Strategies/DIOP_Acceptor.cpp
- * tao/Strategies/SHMIOP_Factory.cpp
- * tao/Strategies/advanced_resource.cpp
- * utils/catior/catior.cpp
- Updated these files to solve the warnings when setting up "VC level
- 4 warnings" on Windows. These warnings include "unreachable code",
- "assignment within conditional expression", "conversion from some
- type to another type, possible loss of data", "local variable may be
- used without having been initialized" and so on.
- Thanks to Lukas Gruetzmacher <gruetzmacher at ais-dresden dot de>
- for motivating the fix to these "VC level 4 warnings".
-
-Thu Mar 16 14:10:53 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * docs/Compiler.html:
-
- Updated '-Ge <flag>' entry in the options table to reflect
- the current status in the ongoing migration toward dropping
- support for emulated exceptions.
-
-Thu Mar 16 12:41:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl:
- Fixed fuzz error
-
-Thu Mar 16 11:29:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/POA/Persistent_ID/server.cpp:
- After creating the child poa destroy the policies
-
-Wed Mar 15 21:26:35 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Notify/Builder.cpp:
- * orbsvcs/orbsvcs/Notify/Default_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Event.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.h:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h:
-
- Add "orbsvcs/..." prefix to #includes of *.h, *.i, *.inl, and
- template *.cpp files found in ${TAO_ROOT}/orbsvcs/orbsvcs.
-
- These instances were missed among the the changes made on:
- Tue Mar 14 06:02:15 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- because they used relative paths.
-
-Wed Mar 15 13:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Resume_Handle.h:
- Documentation fix
-
-Wed Mar 15 11:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h:
- Doxygen fix
-
-Wed Mar 15 10:52:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2186_Regression/server.conf:
- Use 1 instead of true for -ORBConnectionHandlerCleanup, true is
- deprecated
-
-Wed Mar 15 07:48:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Event_Utilities.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Factory.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h:
- * orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h:
- * orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h:
- * orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h:
- * orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h:
- * orbsvcs/orbsvcs/ESF/ESF_Worker.h:
- * orbsvcs/orbsvcs/Event/ECG_Adapters.h:
- * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h:
- * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
- * orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Busy_Lock.h:
- * orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h:
- * orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h:
- * orbsvcs/orbsvcs/Event/EC_ConsumerControl.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h:
- * orbsvcs/orbsvcs/Event/EC_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h:
- * orbsvcs/orbsvcs/Event/EC_Negation_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h:
- * orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h:
- * orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h:
- * orbsvcs/orbsvcs/Event/EC_QOS_Info.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h:
- * orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h:
- * orbsvcs/orbsvcs/Event/EC_SupplierControl.h:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h:
- * orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Type_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_UDP_Admin.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h:
- * orbsvcs/orbsvcs/Naming/Naming_Service_Container.h:
- * orbsvcs/orbsvcs/Trader/Offer_Database.h:
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.h:
-
- Add "orbsvcs/..." prefix to #includes of *.h, *.i, *.inl, and
- template *.cpp files found in ${TAO_ROOT}/orbsvcs/orbsvcs.
-
- These instances were missed among the the changes made on:
- Tue Mar 14 06:02:15 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
-Tue Mar 14 08:12:55 UTC 2006 Ciju John <john_c@ociweb.com>
-
- * tao/Connection_Handler.cpp:
-
- When the client closes its connections, it sends an EOF to the
- server. The sever reactor gets an event for that handler. It
- first suspends the handler and then dispatches a thread to
- handle_input(). Some where down the lane, a read() is done on the
- handle and automatically the handle is resumed. At this point
- another thread CAN enter the reactor and since the handle being
- closed has been resumed, the reactor will add it to its
- fd_set. As expected the reactor gets an event on that handle and
- dispatches someone else to handle that event. What this patch
- does is prevent the closing handler from being resumed. Thus it
- never does get added to the reactor fd_set and the possibility
- of getting a nil handler is removed.
-
-Tue Mar 14 15:25:48 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Domain.pidl:
- * tao/GIOP.pidl:
- * tao/IOP.pidl:
- * tao/IOP_IOR.pidl:
- * tao/Messaging_PolicyValue.pidl:
- * tao/PI_Forward.pidl:
- * tao/Policy.pidl:
- * tao/PortableInterceptor.pidl:
- * tao/Services.pidl:
- * tao/TAO.pidl:
- * tao/AnyTypeCode/Dynamic_Parameter.pidl:
- * tao/BiDir_GIOP/BiDirPolicy.pidl:
- * tao/CodecFactory/IOP_Codec.pidl:
- * tao/CodecFactory/IOP_Codec_include.pidl:
- * tao/DynamicAny/DynamicAny.pidl:
- * tao/IFR_Client/IFR_Base.pidl:
- * tao/ObjRefTemplate/ObjectReferenceTemplate.pidl:
- * tao/PI/ClientRequestInfo.pidl:
- * tao/PI/ORBInitInfo.pidl:
- * tao/PI/PICurrent.pidl:
- * tao/PI/PolicyFactory.pidl:
- * tao/PI/RequestInfo.pidl:
- * tao/PI_Server/PI_Server_include.pidl:
- * tao/PI_Server/ServerRequestInfo.pidl:
- * tao/PI_Server/ServerRequestInterceptor.pidl:
- * tao/PortableServer/AdapterActivator.pidl:
- * tao/PortableServer/IdAssignmentPolicy.pidl:
- * tao/PortableServer/IdUniquenessPolicy.pidl:
- * tao/PortableServer/ImplicitActivationPolicy.pidl:
- * tao/PortableServer/LifespanPolicy.pidl:
- * tao/PortableServer/PS_Current.pidl:
- * tao/PortableServer/PS_Forward.pidl:
- * tao/PortableServer/PortableServer.pidl:
- * tao/PortableServer/PortableServer_include.pidl:
- * tao/PortableServer/RequestProcessingPolicy.pidl:
- * tao/PortableServer/ServantActivator.pidl:
- * tao/PortableServer/ServantLocator.pidl:
- * tao/PortableServer/ServantRetentionPolicy.pidl:
- * tao/PortableServer/ThreadPolicy.pidl:
- * tao/RTCORBA/RTCORBA.pidl:
- * tao/RTPortableServer/RTPortableServer_include.pidl:
-
- Change #include <tao/...> to #include "tao/..." to avoid fuzz
- warnings. At the very least, this makes everyting consistant
- while we are investigate and decide what #include conventions
- for <...> vs. "..." to adopt.
-
-Tue Mar 14 06:02:15 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/...*.cpp:
- * orbsvcs/orbsvcs/...*.h:
- * orbsvcs/orbsvcs/...*.i:
- * orbsvcs/orbsvcs/...*.inl:
-
- Add "orbsvcs/..." prefix to #includes of *.h, *.i, *.inl, and
- template *.cpp files found in ${TAO_ROOT}/orbsvcs/orbsvcs.
-
-Mon Mar 13 19:51:12 UTC 2006 Johnny Willemsen <jwilemsen@remedy.nl>
-
- * tests/Any/Recursive/client.cpp:
- * tests/Any/Recursive/Test.idl:
- Extended this test with a non recursive union with an enum
- as discriminator, this also fails.
-
-Mon Mar 13 15:06:08 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/CollocationLockup/run_test.pl:
-
- Attempted to add support for running the important portion of the
- test on VxWorks.
-
-Mon Mar 13 10:09:21 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2186_Regression/server.conf:
-
- Add '-ORBConnectionHandlerCleanup true' to get this test to pass.
-
-Sun Mar 12 10:21:12 UTC 2006 Johnny Willemsen <jwilemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp:
- Fixed invalid deletes when using the typed event channel and fixed
- some unicode issues. Thanks to Feng Li <fengli at gmail dot com>
- for providing the patches.
-
-Sat Mar 11 12:16:01 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/CollocationLockup/SimpleNamingService.cpp:
-
- Fixed a warning with gcc.
-
-Fri Mar 10 20:00:45 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/tests/Bug_2247_Regression/Manager.cpp:
- * orbsvcs/tests/Bug_2248_Regression/client.cpp:
-
- Removed extra "orbsvcs/" prefix when including orbsvcs
- headers.
-
-Fri Mar 10 15:57:32 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- Committing the following on behalf of Adam Mitz
- <mitza at ociweb dot com>.
-
- * tests/CollocationLockup/AB.idl:
- * tests/CollocationLockup/CollocationLockup.cpp:
- * tests/CollocationLockup/CollocationLockup.mpc:
- * tests/CollocationLockup/SimpleNamingService.cpp:
- * tests/CollocationLockup/SimpleNamingService.idl:
- * tests/CollocationLockup/run_test.pl:
-
- Added a regression test for Bugzilla #2130, which is a deadlock
- involving servant activation and collocated calls.
-
-Fri Mar 10 15:36:08 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
-
- Fixed warning. Thanks to Johnny for the tip off.
-
-Fri Mar 10 14:00:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp:
- Remove redundant ACE_PRINT_EXCEPTION when rethrowing
- CANNOT_PROCEED exceptions, to clean up the scoreboard and
- stop confusing end users who think an unhandled exception has
- occured when it hasn't.
-
-Fri Mar 10 11:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Any/Recursive/Test.idl:
- * tests/Any/Recursive/client.cpp:
- Also added a test for a recursive union with no default
-
-Fri Mar 10 10:44:29 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * orbsvcs/tests/Bug_2377_Regression/Hello.cpp:
-
- std::string ==> ACE_CString.
-
-Fri Mar 10 10:12:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Transport_Descriptor_Interface.inl:
- * tao/AnyTypeCode/skip.cpp:
- Use true/false
-
-Fri Mar 10 09:27:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Stub.cpp:
- Fixed warning in vc6 build
-
-Fri Mar 10 08:17:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Any/Recursive/client.cpp:
- * tests/Any/Recursive/Test.idl:
- Extended this test with a new test case as described in bug
- 2446. This test now fails again because this added test case
- uncovers a new bug. Thanks to Tommy Persson
- <tpe at ida dot liu dot se> for delivering this test case
-
-Fri Mar 10 07:09:22 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/...*.cpp:
- * tao/...*.h:
- * tao/...*.i:
- * tao/...*.inl:
-
- Add "tao/..." prefix to #includes of *.h, *.i, *.inl, and
- template *.cpp files found in ${TAO_ROOT}/tao.
-
-Thu Mar 9 16:04:22 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_visitor_ami_pre_proc.cpp:
-
- Don't bail out on code generation when the node is imported.
-
- This fixes bug #2429.
-
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
-
- Prevent seg faults when the activator has been fed a duff ImR IOR.
-
- This fixes bug #2445.
-
-Thu Mar 9 15:37:05 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/AnyTypeCode/Dynamic.pidl:
- * tao/AnyTypeCode/Dynamic_Parameter.pidl:
- * tao/BiDir_GIOP/BiDirPolicy.pidl:
- * tao/CodecFactory/IOP_Codec.pidl:
- * tao/DynamicAny/DynamicAny.pidl:
- * tao/IFR_Client/IFR_Base.pidl:
- * tao/IFR_Client/IFR_Basic.pidl:
- * tao/ObjRefTemplate/ObjectReferenceTemplate.pidl:
- * tao/PI/ClientRequestInfo.pidl:
- * tao/PI/ORBInitInfo.pidl:
- * tao/PI/PICurrent.pidl:
- * tao/PI/PolicyFactory.pidl:
- * tao/PI/RequestInfo.pidl:
- * tao/PI_Server/ServerRequestInfo.pidl:
- * tao/PI_Server/ServerRequestInterceptor.pidl:
- * tao/PortableServer/IdAssignmentPolicy.pidl:
- * tao/PortableServer/IdUniquenessPolicy.pidl:
- * tao/PortableServer/ImplicitActivationPolicy.pidl:
- * tao/PortableServer/LifespanPolicy.pidl:
- * tao/PortableServer/PS_Current.pidl:
- * tao/PortableServer/PS_Forward.pidl:
- * tao/PortableServer/PortableServer.pidl:
- * tao/PortableServer/RequestProcessingPolicy.pidl:
- * tao/PortableServer/ServantLocator.pidl:
- * tao/PortableServer/ServantRetentionPolicy.pidl:
- * tao/PortableServer/ThreadPolicy.pidl:
- * tao/RTCORBA/RTCORBA.pidl:
- * tao/RTScheduling/RTScheduler_include.pidl:
-
- Add "tao/" prefix to #includes of *.pidl files found in
- ${TAO_ROOT}/tao.
-
-Thu Mar 9 09:18:58 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu>
-
- * COPYING: Updated the date to include 2006.
- Thanks to Alan Kierstead <ackierstead at fedex dot com> for
- motivating the fix to this oversight.
-
-Thu Mar 9 15:03:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/CSIIOP.idl:
- * tao/Domain.pidl:
- * tao/GIOP.pidl:
- * tao/IOP.pidl:
- * tao/IOP_IOR.pidl:
- * tao/Messaging_PolicyValue.pidl:
- * tao/PI_Forward.pidl:
- * tao/Policy.pidl:
- * tao/PortableInterceptor.pidl:
- * tao/Services.pidl:
- * tao/TAO.pidl:
- * tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl:
-
- Add "tao/" prefix to #includes of *.pidl files found in
- ${TAO_ROOT}/tao. Thanks to Thomas Lockhart <Thomas dot
- Lockhart at jpl dot nasa dot gov> for providing this change.
-
-Thu Mar 9 14:51:32 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/orbsvcs/CosConcurrency.mpc:
- * orbsvcs/orbsvcs/CosEvent.mpc:
- * orbsvcs/orbsvcs/CosNaming.mpc:
- * orbsvcs/orbsvcs/CosNaming_Skel.mpc:
- * orbsvcs/orbsvcs/CosNotification.mpc:
- * orbsvcs/orbsvcs/CosProperty.mpc:
- * orbsvcs/orbsvcs/CosTrading.mpc:
- * orbsvcs/orbsvcs/DsEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc:
- * orbsvcs/orbsvcs/PortableGroup.mpc:
- * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/RTEvent_Skel.mpc:
-
- Support for the TAO_ORBSVCS GNU Make macro was broken for some
- time. I added the missing 'tagchecks' settings to these projects.
-
- * orbsvcs/orbsvcs/FtRtEvent.mpc:
-
- Corrected the usage of 'tagchecks' so that the values were added
- instead of being set absolutely.
-
-Thu Mar 9 12:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Stub.{cpp,i}:
- Use true/false instead of 1/0
-
-Thu Mar 9 10:57:13 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * orbsvcs/tests/Bug_2377_Regression/Hello.cpp:
-
- Removed extra semi-colons.
-
-Wed Mar 8 17:01:00 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * orbsvcs/tests/Bug_2377_Regression/Hello.cpp:
-
- Following a suggestion from Simon McQueen, <sm@prismtech.com>,
- used a more portable method of invoking sub-second resolution
- timing intervals.
-
-Wed Mar 8 14:58:07 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/driver/drv_preproc.cpp:
-
- Use a dynamically allocated buffer to read IDL file lines and resize
- it if required.
-
- This fixes bug #2424.
-
- * tests/Bug_2424_Regression/Bug_2424_Regression.mpc:
- * tests/Bug_2424_Regression/OneLineCosNaming.idl:
- * tests/Bug_2424_Regression/README:
- * tests/Bug_2424_Regression/client.cpp:
-
- Regression test for the above fix.
-
- * tests/Bug_2429_Regression/Bug_2429_Regression.mpc:
- * tests/Bug_2429_Regression/Child.idl:
- * tests/Bug_2429_Regression/ChildServant.h:
- * tests/Bug_2429_Regression/ChildServant.cpp:
- * tests/Bug_2429_Regression/Parent.idl:
- * tests/Bug_2429_Regression/README:
- * tests/Bug_2429_Regression/client.cpp:
- * tests/Bug_2429_Regression/run_test.pl:
- * tests/Bug_2429_Regression/server.cpp:
-
- Regression test for bug #2429. This bug is currently not fixed so
- this test will fail.
-
-Wed Mar 8 13:05:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IFR_Client/IFR_Client_Adapter_Impl.cpp:
- Include IFR_BasicC.h instead of IFR_ExtendedC.h, all types
- used in this file are from IFR_BasicC.h
-
-Wed Mar 8 12:31:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp:
- The workaround in this file for Borland C++ is also needed for
- BCB2006 Update Pack 2
-
-Wed Mar 8 12:11:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Object.cpp:
- Use true/false instead of 1/0
-
-Wed Mar 8 12:19:37 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Bug_2377_Regression/*:
- removed from TAO level to the more appropriate orbsvcs
-
- * orbsvcs/tests/Bug_2377_Regression/*:
- Regression for bug 2377 moved here.
-
-Wed Mar 8 11:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/LocalObject.cpp:
- Use true/false instead of 1/0
-
-Wed Mar 8 07:14:30 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerated.
-
-Tue Mar 7 16:21:32 UTC 2006 Adam Mitz <mitza@ociweb.com>
-
- * orbsvcs/Naming_Service/Makefile.am:
- * orbsvcs/Naming_Service/Naming_Server.cpp:
- * orbsvcs/Naming_Service/Naming_Service.mpc:
- The Naming Server executable now includes the header for the
- ImR client library. This is required for tests in static
- builds that use the Naming Server with the ImR.
-
-Tue Mar 07 11:11:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2417_Regression/publisher_impl.cpp:
- Fixed implicit conversion warnings
-
-Tue Mar 7 10:16:50 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * tests/Bug_2377_Regression/*:
- New regression for bug 2377.
-
-Tue Mar 07 09:36:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2417_Regression/Bug_2417_Regression.mpc:
- Added threads as base project
-
-Tue Mar 7 07:51:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/LifeCycle_Service/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/LifeCycle_Service/LifeCycle_Service.mpc:
-
- Changed to not inherit from 'core' so LifeCycle_Service
- executable is not installed. It's not a stand-alone service
- like the others in ${TAO_ROOT}/orbsvcs, it is an example for use
- with ${TAO_ROOT}/examples/Quoter. After x.5.1 we'll try to find
- a better place for this. See bugzilla issue 2410.
-
-Tue Mar 7 07:40:37 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/AMI/FL_Callback/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated for autoconf FL & QT Reactor / FL & QT Resource
- Factory support.
-
-Mon Mar 06 20:08:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Transport.h:
- Doxygen improvement
-
-Mon Mar 06 19:19:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Incoming_Message_Queue.cpp:
- Doxygen improvements
-
-Mon Mar 06 16:00:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp:
- Use prefix increment instead of postfix
-
-Mon Mar 06 15:57:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Invocation_Adapter.cpp:
- Removed a not needed local variable.
-
- * tao/IIOP_Transport.cpp:
- Initialise pointer with 0
-
-Mon Mar 06 15:56:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/Factory/OBV_Factory.mpc:
- * tests/OBV/Forward/OBV_Forward.mpc:
- * tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc:
- * tests/OBV/ValueBox/valuebox.mpc:
- Use more specific base projects
-
- * tests/OBV/Supports/Supports_Test.mpc:
- Removed exename, not needed
-
-Mon Mar 06 15:32:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Any/Recursive/client.cpp:
- * tests/Any/Recursive/Test.idl:
- Extended this test by making the IDL even a little bit more complex
-
- * TAO_IDL/fe/fe_interface_header.cpp:
- Explicitly initialize pd_n_supports to 0, fixes a crash of TAO_IDL
- when build with Borland C++ when feeding it a certain incorrect
- IDL file. This fixes bugzilla bug 2428
-
- * tao/AnyTypeCode/Any.cpp:
- * tao/AnyTypeCode/Any_Array_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Basic_Impl.cpp:
- * tao/AnyTypeCode/Any_Basic_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Dual_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Special_Impl_T.cpp:
- * tao/AnyTypeCode/Any_SystemException.cpp:
- * tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp:
- * tao/AnyTypeCode/Empty_Param_TypeCode.cpp:
- * tao/AnyTypeCode/Enum_TypeCode.cpp:
- * tao/AnyTypeCode/Enum_TypeCode_Static.cpp:
- * tao/AnyTypeCode/ExceptionA.cpp:
- * tao/AnyTypeCode/TypeCode.cpp:
- * tao/AnyTypeCode/TypeCode_Case_T.cpp:
- * tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp:
- * tao/AnyTypeCode/Union_TypeCode.cpp:
- * tao/AnyTypeCode/Union_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Value_TypeCode.cpp:
- * tao/AnyTypeCode/Value_TypeCode_Static.cpp:
- Initialise some pointers with 0, made some local variables const,
- use true/false instead of 1/0. Fixed bugzilla bug 2323 by:
- - When marshaling recursive unions for each case use a seperate
- stream so that the offsets do get calculated
- - For each recursive type be able to handle multiple members of
- the recursive type, we could only handle one occurence.
- For recursive types we should have more test cases, probably there
- are a few small bugs left in this code but these aren't catched
- by the current regression test suite.
-
-Mon Mar 06 15:13:12 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2417_Regression/*:
- New regression for bug 2417. Thanks to Jan Ohlenburg
- <jan dot ohlenburg at fit dot fraunhofer dot de> for
- delivering this test. This bug has not been fixed yet.
-
-Sun Mar 05 11:13:13 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * TAO version 1.5 released.
-
-Fri Mar 3 17:09:34 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file.
-
-Thu Mar 2 14:53:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Trader/Trader.h:
- * tao/Incoming_Message_Stack.h:
- For Borland C++ we have workarounds in these files, seems these
- are also needed for BDS2006 with Update Pack 2
-
-Thu Mar 2 01:56:58 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with more inputs.
-
-Wed Mar 1 22:39:37 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with info from Jeff Parsons
-
-Wed Mar 1 15:09:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.cpp (shutdown):
- After releasing pi_current_ set it to nil because this release could
- result in the destruction of picurrent and then we read invalid
- memory. Found from the AdvSlot test running with valgrind.
-
-Wed Mar 1 07:29:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/RTScheduling/Fixed_Priority_Scheduler/Fixed_Priority_Scheduler.mpc:
- * examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.mpc:
- Added after to fix parallel build problems with vc8
-
-Tue Feb 28 12:25:24 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Updated.
-
-Tue Feb 28 11:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Incoming_Message_Stack.inl (destructor):
- Initialise pointer with 0
-
-Tue Feb 28 10:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Incoming_Message_Queue.cpp (destructor):
- Use the correct datatype for the cleanup loop.
-
-Tue Feb 28 10:09:45 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_argument.cpp:
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/include/idl_global.h:
- * TAO_IDL/util/utl_global.cpp:
-
- Redo the fix for bug #2419 from:
- Mon Feb 27 16:23:50 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- Introduce a new flag to idl_global to indicate when we need to
- force generation of the skeleton includes. Setting
- non_local_iface_seen_ to be true was causing undesirable side effects
- on non-inlined builds. Generate skeleton includes when the new
- need_skeleton_includes_ or non_local_iface_seen_ is true.
-
-Tue Feb 28 08:04:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Incoming_Message_Stack.h:
- Also BCB2006 Update Pack 1 needs an explicit export
-
-Mon Feb 27 18:19:03 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2084_Regression/Server_Task.cpp:
-
- Suppress occasional spurious exception output on fast machines.
-
-Mon Feb 27 18:42:38 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp:
-
- Reverted my change on
- Thu Feb 23 15:10:18 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
- Because it made the two tests IOGRManipulation and 2247 failed.
- I will supply a better fix in x.5.1 after more thorough testing.
-
-Mon Feb 27 17:08:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * tao/Transport.cpp:
- Incomplete messages, smaller Header-Length, shall be put
- into intermediate buffer
-
-Mon Feb 27 16:23:50 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_argument.cpp:
-
- Don't not generate skeleton includes for arguments from inherited
- imported abtstract types.
-
- This fixes bug #2419 howewer the ticket needs to stay open pending
- a fix that can be described without ugly double negatives. ;-)
-
- * tests/Bug_2419_Regression/Bug_2419_Regression.mpc:
- * tests/Bug_2419_Regression/README:
- * tests/Bug_2419_Regression/abstract_parent.idl:
- * tests/Bug_2419_Regression/client.cpp:
- * tests/Bug_2419_Regression/local_child.idl:
-
- Small regression test for the above.
-
-Mon Feb 27 15:27:42 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log_i.cpp (TAO_Log_i::set_capacity_alarm_thresholds):
-
- Call get_capacity_alarm_thresholds() on the record store instead
- of on "this" to avoid recursive lock invocation.
-
-Mon Feb 27 10:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/PolicyFactory/run_test.pl:
- * tests/Portable_Interceptors/Register_Initial_References/run_test.pl:
- Increased timeouts to get these test running fine with VxWorks,
- the time there includes also loading the image which takes a
- few seconds
-
-Sun Feb 26 12:26:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/AMI/AMI.mpc:
- Added after to fix problems in vc8 ide build
-
-Sun Feb 26 11:57:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Incoming_Message_Stack.h:
- Only export this class with BCB6, all other compilers don't have
- problems with this.
-
- * tests/Bug_2174_Regression/run_test.pl:
- * tests/Bug_2183_Regression/run_test.pl:
- * tests/Bug_2289_Regression/run_test.pl:
- * tests/Smart_Proxies/dtor/run_test.pl:
- Updated to work under VxWorks
-
-Sat Feb 25 14:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Incoming_Message_Stack.h:
- Export this class, fixes unresolved external errors with BCB6
-
-Sat Feb 25 12:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/CodeSets/simple/CodeSets_simple.mpc:
- Added after to fix parallel build problems with vc8
-
-Sat Feb 25 03:00:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * tao/Incoming_Message_Stack.{h,cpp,inl}: remove unused operation
- from interface and turn return type of push-operation to "void"
- * tao/Transport.cpp:
- tao/GIOP_Message_Base.cpp:
- Adapt to interface of Incoming_Message_Stack and limit
- number of ACE_ERROR message to usefull amount to reduce
- footprint size.
-
-Fri Feb 24 19:11:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Param_Test/run_test.pl:
- Check what spawn returned, when there is no exe this speedsup
- this test a lot
-
-Fri Feb 24 14:06:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2289_Regression/run_test.pl:
- Fixed error message to say correct test number
-
-Fri Feb 24 13:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2234_Regression/run_test.pl:
- * tests/AMH_Oneway/run_test.pl:
- * tests/Smart_Proxies/dtor/run_test.pl:
- * tests/Bug_2183_Regression/run_test.pl:
- Updated these scripts to work with VxWorks and when we can't
- spawn the server directly exists, safes us some seconds in
- the test run when nothing has been build
-
-Fri Feb 24 11:29:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2349_Regression/Bug_2349_Regression.mpc:
- Added after to fix build problems with the vc8 ide
-
-Fri Feb 24 10:22:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Sequence_Latency/DII/client.cpp:
- Added static casts to fix compile errors with SunCC 64bit
-
-Fri Feb 24 09:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/IDL_Test/interface.idl:
- Added try interface as testcase
-
-Fri Feb 24 09:43:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Basic_Arguments.h:
- Use for the basic types the AnyTypeCode adapter, belonging to
- Tue Feb 21 19:17:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
-Fri Feb 24 07:26:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTScheduling/RTScheduler_includeS.h:
- Added this file, needed by the RTScheduling example
-
-Thu Feb 23 21:45:54 UTC 2006 Adam Mitz <mitza@ociweb.com>
-
- * orbsvcs/tests/ImplRepo/run_test.pl:
- The test "nt_service_ir" copies files, installs services, and starts
- those services (Windows "NT" Services). With this change the test
- will clean up all of these actions even when the test fails.
-
-Thu Feb 23 20:01:29 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerated for autoconf TK Reactor / TK Resource Factory
- support.
-
-Thu Feb 23 18:41:18 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * tao/Utils/Servant_Var.inl (operator=):
- * tao/Valuetype/Value_VarOut_T.cpp (operator=):
-
- Fixed problem where non-copying assignment prematurely decreased
- reference count on contained object by adding a check for
- self-assignment. The canonical copy-and-swap idiom was used to
- provide a strong exception safety guarantee. It doesn't require
- a self-assignment check for copying assignment but it may be
- needed for non-copying assignment. Addresses memory access
- violations.
-
-Thu Feb 23 17:14:25 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tao/GIOP_Message_Lite.cpp:
- * tao/Strategies/SHMIOP_Transport.cpp:
-
- Fixed unused argument warning.
-
-Thu Feb 23 16:45:36 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2186_Regression/Bug_2186_Regression.mpc:
- * tests/Bug_2186_Regression/Hello.h:
- * tests/Bug_2186_Regression/Hello.cpp:
- * tests/Bug_2186_Regression/README:
- * tests/Bug_2186_Regression/Test.idl:
- * tests/Bug_2186_Regression/client.cpp:
- * tests/Bug_2186_Regression/run_test.pl:
- * tests/Bug_2186_Regression/server.conf:
- * tests/Bug_2186_Regression/server.cpp:
-
- Added a regression test for this bug. This will fail until it is
- fixed.
-
-Thu Feb 23 15:45:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tao/PI/PICurrent_Impl.cpp:
-
- Updated/TAOized debug text at line 57.
-
-Thu Feb 23 15:10:18 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp:
-
- Added A helper function that tests the equivalency of two
- profiles that come from an ior and an iogr.
-
-Thu Feb 23 10:55:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/README:
-
- Updated README to show example test run.
-
-Wed Feb 22 23:42:40 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerate for new files.
-
-Wed Feb 22 20:54:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/LogNotification.cpp:
-
- _duplicate() log reference before assigning it to event's logref
- field to get life cycle/reference count management right. Fixes
- bugzilla issue #2416.
-
-Wed Feb 22 20:37:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * tao/PluggableMessaging.h: Remove abstract operation:
- read_message, missing_data, get_message_data. Add abstract
- operation parse_next_message (), consolidate_fragmented_message,
- discard_fragmented_message.
-
- * tao/GIOPMessageBase.{h,cpp}: Remove implementation for
- read_message. Add parse_incoming_messages. Add implementation for
- new abstract methods consolidate_fragmented_message,
- parse_next_message, discard_fragmented_message. Declare as private
- parse_incoming_messages, parse_request_id. Add new member
- attribute fragment_stack_ of type Incoming_Message_Stack. Handle
- TAO_GIOP_MESSAGE_ERROR not as error. For incomplete messages of
- unknown size, allocating message_blocks of size
- ACE_CDR::DEFAULT_BUFSIZE. Handle memory allocation failures in
- code. Wrap output-strings with ACE_TEXT macro.
-
- * tao/GIOP_Message_Lite.{h,cpp}: Remove implementation of
- read_message and get_message_data. Handle
- GIOP_MESSAGE_CANCELREQUEST. IMplement new virtual method
- parse_next_message, Handle out-of-memory cases. Dummy
- implementations for consolidate_fragmented_message and
- discard_fragmented_message.
-
- * tao/Incoming_Message_Stack.{h,cpp}: New class providing stack
- operations for TAO_Queued_Data, operations do not require dynamic
- memory allocation.
-
- * tao/Incoming_Message_Queue.{h,cpp,inl}: remove obsolet
- operations for interface TAO_Incoming_Message_Queue: copy_tail,
- is_tail_complete, is_head_complete, is_tail_fragmented,
- missing_data_tail, find_fragment_chain. Change return type to
- "int" for operation consolidate, return value -1 indicating out of
- memory cases.
-
- * tao/Transport.{h,cpp}: Major changes: New implementation of
- operation handle_input() fixing following, errors with GIOP
- fragment handling that showed up testing with Java_Big_Request
- test (w/ jre1.4), handling of messages bigger than 2Go, concurrent
- processing of short messages using single-read-optimization, keep
- connection in case of GIOP CancelRequests, compensate memory
- buffer alignment. Remote methods from interface
- parse_consolidate_messages, parse_incoming_messages, missing_data,
- consolidate_message, consolidate_fragments,
- consolidate_message_queue, consolidate_extra_messages,
- make_queued_data. Add methods handle_input_missing_data,
- handle_input_parse_data. Add instance member
- "incoming_message_stack_" of type Incomig_Message_Stack. Minor
- changes: Wrap output strings with ACE_TEXT macro, remove
- ACE_ASSERT statements.
-
- * tao/Strategies/DIOP_Transport.cpp: Compensate memory buffer
- alignment.
-
- * tao/Strategies/SHMIOP_Transport.{h,cpp}: Compensate memory
- buffer alignment. Adapt to new interface of
- PluggableMessaging. Add specialized implemenation of
- PLuggable_Messaging::handle_input()
-
- * tao/tao.mpc: Add dependency to tao/IncomingMessageStack.{h,cpp}
-
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Tranport.cpp: Adapt to new
- interface of PluggableMessaging.
-
- These changes require to recompile and modify custom Messaging
- implementations. This patch fixes #2303, 2305, 2306, 2307, 2308,
- 2309, 2313, 2361, 2365
-
-Wed Feb 22 16:55:24 GMT 2006 Rich Seibel <seibel_r@ociweb.com>
-
- * examples/RTScheduling/MIF_Scheduler/svc.conf.client:
- * examples/RTScheduling/MIF_Scheduler/svc.conf.server:
- Changed priority policy from direct to continuous.
- The direct does not work on AIX 5.3, but continuous
- seems to work everywhere.
-
-Wed Feb 22 16:45:29 GMT 2006 Rich Seibel <seibel_r@ociweb.com>
-
- * tao/Array_VarOut_T.inl:
- Removed a nasty cast that shouldn't be necessary.
- Only broken builds, like MSVC6 should require the
- reinterpret_cast<>, otherwise builds should need
- no cast. Thus, only the broken compilers should
- be singled out. Thanks to the XL 7 compiler on
- AIX for pointing this out.
-
-Wed Feb 22 15:56:49 UTC 2006 Iliyan Jeliazkov <iliyan@ociweb.com>
-
- Reverting a change, added with the commits from
- Fri Feb 10 20:40:31 UTC 2006 and Thu Feb 9 19:59:41 UTC
- 2006. The original intent was to ensure that unsecured clients
- can not make invocations on servants, explicitly marked as
- secure. The problem is in that a client-side-only policy
- (Security::SecQoP*) was used, which is not permitted by the
- CORBA specification. An alternative solution, based upon
- SecurityLevel2 SecureInvocationPolicy or SecurityLevel3
- ObjectCredentialsPolicy should be sought. Thanks
- to Ossama Othman <Ossama_Othman at symantec dot com> for
- pointing that out and discussing the alternatives.
-
- * NEWS:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp:
- * orbsvcs/tests/Security/Policies/Foo.idl:
- * orbsvcs/tests/Security/Policies/Foo_i.h:
- * orbsvcs/tests/Security/Policies/Foo_i.cpp:
- * orbsvcs/tests/Security/Policies/Policies.mpc:
- * orbsvcs/tests/Security/Policies/README:
- * orbsvcs/tests/Security/Policies/cacert.pem:
- * orbsvcs/tests/Security/Policies/client.conf:
- * orbsvcs/tests/Security/Policies/client.conf.xml:
- * orbsvcs/tests/Security/Policies/client.cpp:
- * orbsvcs/tests/Security/Policies/client_cert.pem:
- * orbsvcs/tests/Security/Policies/client_key.pem:
- * orbsvcs/tests/Security/Policies/client_nopasswd.conf:
- * orbsvcs/tests/Security/Policies/client_nopasswd.conf.xml:
- * orbsvcs/tests/Security/Policies/run_test.pl:
- * orbsvcs/tests/Security/Policies/server.conf:
- * orbsvcs/tests/Security/Policies/server.conf.xml:
- * orbsvcs/tests/Security/Policies/server.cpp:
- * orbsvcs/tests/Security/Policies/server_cert.pem:
- * orbsvcs/tests/Security/Policies/server_key.pem:
- * orbsvcs/tests/Security/Policies/server_key_nopasswd.pem:
-
- Removed these files.
-
-Wed Feb 22 12:15:30 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2134_Regression/Hello.cpp:
-
- Fix error on FC4_ACE_FOR_TAO build. Spurious ';'s in the code.
-
-Wed Feb 22 11:30:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tao/PI/PICurrent_Copy_Callback.cpp:
- * tao/PI/PICurrent_Impl.cpp:
- * tao/PI/PICurrent_Impl.h:
- * tao/PI/PICurrent_Impl.inl:
- * tao/PI_Server/PICurrent_Guard.cpp:
-
- Bugzilla bugfix #2304, also fixes #2066
-
-Wed Feb 22 09:55:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp:
- * tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp:
-
- Updated regression test for set_slot in send_reply
- bugzilla bug #2304.
-
-Wed Feb 22 04:45:00 UTC 2006 Frank Rehberger <frehberger@prismtech.com>
-
- * tao/ORB_Core.cpp:
- Fixing TAO_ORB_Core_Auto_Ptr assignment
-
- * tao/ORB_Table.{h,inl}:
- Fixing namespace-ing for TAO_ORB_Core.
-
- * tao/Stub.i:
- Fixing TAO_ORB_Core declaration
-
- Together all these changes are related to previous commit for
- bugzilla bugs #1741 / #2134; #2289; #1493; #2130.
-
-Tue Feb 21 19:17:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.{h,cpp}:
- * tao/AnyTypeCode_Adapter.h:
- Added insert_into_any methods for all basic types. Thanks to
- Nemoy Michael <michaeln at sintecmedia dot com> for providing
- the patches. This also fixes bugzilla bugs 2371, 2367, and 2422
-
-Tue Feb 21 17:48:24 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tao/Adapter.h:
-
- Remove the CORBA::Object_ptr argument from
- ::initialize_collocated_object on TAO_Adapter. We need to call this
- method in circumstances when a CORBA::Object is not available.
-
- * tao/Adapter_Registry.h:
- * tao/Adapter_Registry.cpp:
-
- Reflect the above change. Also ::initialize_collocated_object must
- now only return 0 for success if the stub it is working on has been
- fully initialized. The registry reflects this by continuing to try
- adapters until one returns 0.
-
- Similarly ::create_collocated_object now will potentially call the
- above method on all remaining adapters if, after an adapter has
- created an Object, the Object has not been fully initialized.
-
- * tao/IORTable/Table_Adapter.h:
- * tao/IORTable/Table_Adapter.cpp:
-
- Create a common method ::find_object which attempts to locate an
- object in in the table. Implement ::dispatch in terms of this method.
-
- Implement ::initialize_collocated_object to search the table using
- the above mentioned ::find_object method and, if one is found, to
- forward the stub it is initializing to this object ref. Reflect the
- change in API for ::initialize_collocated_object.
-
- Add an implementation of ::create_collocated_object in terms of
- ::initialize_collocated_object.
-
- * tao/ORB_Core.h:
- * tao/ORB_Core.cpp:
- * tao/ORB_Table.h:
-
- Include the locking changes proposed by Robert Hancock (Robert dot
- Hancock at sedsystems dot ca) on bug #2130 with a couple of small
- mods. Thanks to Robert Hancock for providing these.
-
- Add a new method ::reinitialize_object to be called on stubs whenever
- an object has been forwarded or has fallen back from a forwarded
- location. This method determines if the stub has become (or ceased to
- be) collocated and performs the necessary actions to set the
- collocation relevent attributes on the stub.
-
- * tao/Object.h:
- * tao/Object.i:
- * tao/Object.cpp:
-
- Remove the members TAO::Object_Proxy_Broker *proxy_broker_,
- TAO_Abstract_ServantBase *servant_ and
- CORBA::Boolean is_collocated_ from this class. These are now held on
- the stub. Change all access to these values to delegate to the stub.
-
- * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
-
- Remove the CORBA::Object_ptr argument from the function
- _TAO_collocation_Object_Proxy_Broker_Factory. It was unused and we
- need to use this when we don't have an Object.
-
- * tao/PortableServer/Object_Adapter.h:
- * tao/PortableServer/Object_Adapter.cpp:
-
- Reflect the change in API for ::initialize_collocated_object. Make
- that method and ::create_collocated_object use the new accessors
- for collocation attributes on the stub rather than the CORBA::Object.
- Make ::initialize_object only return 0 for success if it has fully
- completed the intialisation of an object. i.e. it managed to locate
- a collocated servant for the stub.
-
- * tao/Stub.h:
- * tao/Stub.i:
- * tao/Stub.cpp:
-
- Add the collocated servant, collocated indicator, and object proxy
- broker members from CORBA::Object to this class with appropriate
- accessors.
-
- Insert calls to ::reinitialize_object on the stubs ORB core at points
- where the stub may have moved to / from being collocated.
-
- Together all these changes fix bugzilla bugs #1741 / #2134; #2289;
- #1495; #2130.
-
- * tests/Bug_2134_Regression/Bug_2134_Regression.mpc:
- * tests/Bug_2134_Regression/Hello.idl:
- * tests/Bug_2134_Regression/Hello.cpp:
- * tests/Bug_2134_Regression/README:
- * tests/Bug_2134_Regression/run_test.pl:
-
- A regression test for bugzilla #1741 / #2134. #2289 is already in the
- repo, as is #1495.
-
-Tue Feb 21 17:45:06 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * orbsvcs/orbsvcs/IFRService/Container_i.cpp:
-
- Cosmetic change to source code.
-
- * orbsvcs/orbsvcs/IFRService/StructDef_i.cpp (members_i):
- * orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp (members_i):
-
- Fixed a bug with nested structs/nested unions that results
- in the servant's ACE_Configuration_Section_Key (its
- placeholder in the repository) being changed to the key
- of the nested type, when processing returns to the top level
- Thanks to Richard Spence <richard.spence.extern@icn.siemens.de>
- for reporting the bogus exception thrown in TypeCodeFactory
- that uncovered the problem. This fix closes [BUGID:2407].
-
-Mon Feb 20 15:06:27 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * TAO version 1.4.10 released.
-
-Mon Feb 20 07:27:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * Release:
- Updated for rename of TAOACE.mwc to TAO_ACE.mwc
-
-Sun Feb 19 11:50:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp:
- Fixed conversion warning and fixed compile error with gcc4
-
-Fri Feb 17 19:30:59 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Updated this file with more inputs.
-
-Fri Feb 17 15:32:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO-INSTALL.html:
- Small improvements
-
-Fri Feb 17 13:53:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp:
- Removed escape character that slipped in by accident
-
-Fri Feb 17 09:40:00 UTC Simon Massey <sma@prismtech.com>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp:
- Work around GCC4.0 template resolusion compilation bug?
-
-Fri Feb 17 09:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp:
- Fixed compile error with Borland
-
-Fri Feb 17 08:56:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp:
- Fixed conversion warning
-
-Thu Feb 16 19:47:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp:
- Fixed GOA factory name. Thanks to Alex Sheh
- <ASHEH at euphonix dot com> for reporting this.
-
-Thu Feb 16 18:11:03 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/default_client.cpp:
-
- Report an error if unknown/unsupported argument is used with
- -ORBIIOPProfileLock.
-
- Changed -ORBConnectionHandlerCleanup to support 0 and 1 as
- arguments. Previously it only supported false, which made it
- impossible to set the option after the default was changed to
- false last September. Support false (and now true) arguments
- for backwards compatibility.
-
-Thu Feb 16 16:00:07 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Notify_Service/Notify_Service.cpp:
-
- Revert change that got mixed in with:
- Thu Feb 16 03:33:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
-Thu Feb 16 12:35:00 UTC Simon Massey <sma@prismtech.com>
-
- * tests/Portable_Interceptors/AdvSlotDblCpy/AdvSlotDblCpy.mpc:
- * tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp:
- * tests/Portable_Interceptors/AdvSlotDblCpy/InvokeMe.idl:
- * tests/Portable_Interceptors/AdvSlotDblCpy/README:
- * tests/Portable_Interceptors/AdvSlotDblCpy/run_test.pl:
- * tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp:
- Added regression test for Bugzilla 2403
-
-Thu Feb 16 09:21:51 UTC Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAOACE.mwc:
- * TAO_ACE.mwc:
- Renamed TAOACE to TAO_ACE, makes it easier for the builds to
- exclude
-
-Thu Feb 16 03:33:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * docs/tutorials/Quoter/AMI/Makefile.am:
- * docs/tutorials/Quoter/Event_Service/Makefile.am:
- * docs/tutorials/Quoter/On_Demand_Activation/Makefile.am:
- * docs/tutorials/Quoter/RT_Event_Service/Makefile.am:
- * examples/AMH/Sink_Server/Makefile.am:
- * examples/AMI/FL_Callback/Makefile.am:
- * examples/Advanced/ch_3/Makefile.am:
- * examples/Buffered_AMI/Makefile.am:
- * examples/Buffered_Oneways/Makefile.am:
- * examples/Callback_Quoter/Makefile.am:
- * examples/Content_Server/AMI_Iterator/Makefile.am:
- * examples/Content_Server/AMI_Observer/Makefile.am:
- * examples/Content_Server/SMI_Iterator/Makefile.am:
- * examples/Event_Comm/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am:
- * examples/Load_Balancing/Makefile.am:
- * examples/Load_Balancing_persistent/Makefile.am:
- * examples/Logging/Makefile.am:
- * examples/OBV/Typed_Events/Makefile.am:
- * examples/POA/DSI/Makefile.am:
- * examples/POA/Default_Servant/Makefile.am:
- * examples/POA/Forwarding/Makefile.am:
- * examples/POA/TIE/Makefile.am:
- * examples/Persistent_Grid/Makefile.am:
- * examples/PluggableUDP/tests/Basic/Makefile.am:
- * examples/PluggableUDP/tests/Performance/Makefile.am:
- * examples/PluggableUDP/tests/SimplePerformance/Makefile.am:
- * examples/Quoter/Makefile.am:
- * examples/Simple/bank/Makefile.am:
- * examples/Simple/chat/Makefile.am:
- * examples/Simple/echo/Makefile.am:
- * examples/Simple/grid/Makefile.am:
- * examples/Simple/time/Makefile.am:
- * examples/Simple/time-date/Makefile.am:
- * examples/Simulator/Event_Supplier/Makefile.am:
- * examples/ior_corbaloc/Makefile.am:
- * interop-tests/wchar/Makefile.am:
- * orbsvcs/Makefile.am:
- * orbsvcs/ImplRepo_Service/Makefile.am:
- * orbsvcs/LifeCycle_Service/Makefile.am:
- * orbsvcs/Notify_Service/Notify_Service.cpp:
- * orbsvcs/Trading_Service/Makefile.am:
- * orbsvcs/examples/CosEC/Factory/Makefile.am:
- * orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am:
- * orbsvcs/examples/ImR/Advanced/Makefile.am:
- * orbsvcs/examples/ImR/Combined_Service/Makefile.am:
- * orbsvcs/examples/LoadBalancing/Makefile.am:
- * orbsvcs/examples/Log/RTEvent/Makefile.am:
- * orbsvcs/examples/ORT/Makefile.am:
- * orbsvcs/examples/Security/Send_File/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am:
- * orbsvcs/tests/Bug_1395_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2247_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2248_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2285_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2287_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2316_Regression/Makefile.am:
- * orbsvcs/tests/EC_Custom_Marshal/Makefile.am:
- * orbsvcs/tests/FT_App/Makefile.am:
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am:
- * orbsvcs/tests/FaultTolerance/IOGR/Makefile.am:
- * orbsvcs/tests/HTIOP/AMI/Makefile.am:
- * orbsvcs/tests/HTIOP/BiDirectional/Makefile.am:
- * orbsvcs/tests/HTIOP/Hello/Makefile.am:
- * orbsvcs/tests/IOR_MCast/Makefile.am:
- * orbsvcs/tests/ImplRepo/Makefile.am:
- * orbsvcs/tests/ImplRepo/scale/Makefile.am:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile.am:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile.am:
- * orbsvcs/tests/Miop/McastHello/Makefile.am:
- * orbsvcs/tests/Notify/Blocking/Makefile.am:
- * orbsvcs/tests/Notify/Discarding/Makefile.am:
- * orbsvcs/tests/Notify/MT_Dispatching/Makefile.am:
- * orbsvcs/tests/Notify/Ordering/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Structured_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am:
- * orbsvcs/tests/Security/BiDirectional/Makefile.am:
- * orbsvcs/tests/Security/Big_Request/Makefile.am:
- * orbsvcs/tests/Security/Callback/Makefile.am:
- * orbsvcs/tests/Security/Crash_Test/Makefile.am:
- * orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am:
- * orbsvcs/tests/Security/MT_SSLIOP/Makefile.am:
- * orbsvcs/tests/Security/Secure_Invocation/Makefile.am:
- * orbsvcs/tests/Trading/Makefile.am:
- * orbsvcs/tests/ior_corbaname/Makefile.am:
- * performance-tests/Callback/Makefile.am:
- * performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am:
- * performance-tests/Cubit/TAO/MT_Cubit/Makefile.am:
- * performance-tests/Latency/AMH_Single_Threaded/Makefile.am:
- * performance-tests/Latency/AMI/Makefile.am:
- * performance-tests/Latency/DII/Makefile.am:
- * performance-tests/Latency/Deferred/Makefile.am:
- * performance-tests/Latency/Single_Threaded/Makefile.am:
- * performance-tests/Latency/Thread_Per_Connection/Makefile.am:
- * performance-tests/Latency/Thread_Pool/Makefile.am:
- * performance-tests/Memory/IORsize/Makefile.am:
- * performance-tests/Memory/Single_Threaded/Makefile.am:
- * performance-tests/POA/Demux/Makefile.am:
- * performance-tests/POA/Implicit_Activation/Makefile.am:
- * performance-tests/Pluggable/Makefile.am:
- * performance-tests/Protocols/Makefile.am:
- * performance-tests/RTCorba/Oneways/Reliable/Makefile.am:
- * performance-tests/RTCorba/Thread_Pool/Makefile.am:
- * performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am:
- * performance-tests/Sequence_Latency/AMI/Makefile.am:
- * performance-tests/Sequence_Latency/DII/Makefile.am:
- * performance-tests/Sequence_Latency/DSI/Makefile.am:
- * performance-tests/Sequence_Latency/Deferred/Makefile.am:
- * performance-tests/Sequence_Latency/Single_Threaded/Makefile.am:
- * performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am:
- * performance-tests/Sequence_Latency/Thread_Pool/Makefile.am:
- * performance-tests/Throughput/Makefile.am:
-
- Regenerated with new MPC automake template. Addresses
- problems where *.idl files in IDL custom_only projects
- weren't listed. This addresses a large part of the issue
- raised by Vladimir Panov where orbsvcs *.idl files were
- not installed.
-
-Wed Feb 15 20:11:51 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc:
-
- Renamed many of the projects within this MPC file to avoid fuzz
- warnings.
-
-Wed Feb 15 16:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/AnyTypeCode/Objref_TypeCode.cpp:
- * tao/Special_Basic_Argument_T.cpp:
- Added includes to fix the solaris autoconf build. Thanks to
- Vladimir Panov <gbr at voidland dot org> for reporting this
- and providing patches.
-
-Wed Feb 15 11:42:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PICurrent_Impl.h:
- Extended documentation
-
- * tests/Portable_Interceptors/AdvSlotExt/*:
- Another new PI test. We test the PI functionality in
- receive_request. When we set a value in TSC, then this should
- be independent of any change in RSC, so we set a value in
- TSC, then another value in RSC and then read TSC again and
- check if we did get the correct value back.
-
- * tao/PI/PICurrent_Impl.cpp (set_slot):
- When this PICurrent has a lc_slot_table set, then copy this
- table we refer to to our own table befor we start modifiying
- our table.
-
- * tao/PI/PICurrent_Copy_Callback.cpp:
- Only copy the slot table from source to destination when the
- destination still refers to the table of the source.
-
- These changes together fix bugzilla bug 2401 and 2398.
-
-Wed Feb 15 09:01:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PICurrent_Copy_Callback.{h,cpp}:
- Changed the return type of the execute method to void, there
- was no real meaning for the return value
-
- * tao/PI/PICurrent_Impl.cpp:
- Updated for the change of the return value type
-
-Wed Feb 15 08:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/TC_Alignment/test_i.cpp:
- Fixed compile errors with Borland
-
- * tao/PI_Server/PICurrent_Guard.h:
- No need to export this class from this shared library
-
-Tue Feb 14 13:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/PICurrent/server.cpp:
- Explicitly destroy the ORB at the end to make sure all interceptors
- do get destroyed
-
-Tue Feb 14 12:51:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp:
- Improved check in receive_request to not give bad output
-
-Tue Feb 14 11:40:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Abstract_Interface/test_i.cpp:
- * tests/OBV/Any/AnyS_impl.cpp:
- * tests/OBV/Any/client.cpp:
- * tests/OBV/Collocated/Forward/Client_Task.cpp:
- * tests/OBV/Forward/client.cpp:
- Fixed compile errors with Borland
-
-Tue Feb 14 08:40:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp:
- Added a test case for bugzilla bug 2401, in the receive_request we
- modifity the RSC, this should not effect the TSC, this bug has not
- been fixed yet, working on it
-
-Tue Feb 14 08:30:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- Fixed compile errors with Borland C++
-
-Mon Feb 13 20:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Latency/DII/client.cpp:
- * performance-tests/Sequence_Latency/DII/client.cpp:
- Use a cast to convert a ACE_hrtime_t to a CORBA::ULongLong. This
- fixes compile errors on Solaris 64bit
-
-Mon Feb 13 16:28:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/releasenotes/orbcore.html:
- Updated link for bugzilla
-
-Mon Feb 13 15:51:38 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * TAO_IDL/fe/idl.ll:
- * TAO_IDL/fe/lex.yy.cpp:
-
- Remove trailing whitespace for const wstring's as is done for
- const string's.
-
- * tao/Seq_Var_T.h:
- * tao/Seq_Var_T.inl:
-
- Added const [] operators to the TAO_FixedSeq_Var_T and
- TAO_VarSeq_Var_T classes.
-
-Mon Feb 13 15:23:42 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/tests/EC_MT_Mcast/Makefile.am:
-
- Regenerate. Test now requires Strategies library.
-
-Mon Feb 13 15:20:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h:
- Changed is_primary from bool to CORBA::Boolean to fix compile
- errors with MacOS. Also removed is_primary method, was just
- declared and I couldn't find any implementation
-
-Mon Feb 13 14:21:42 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_union.cpp (compute_default_value):
-
- When a clash is found between a declared case label value and
- the initialized default discriminator value for a boolean
- discriminator, changed the method of modifying the intialized
- discriminator defaul value from '++' to '^=', in order to
- be consistent with the changes in
-
- Thu Feb 9 16:31:17 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- since this type of discriminator value is now stored internally as
- a native boolean instead of a signed long.
-
- * TAO_IDL/be/be_generator.cpp:
- * TAO_IDL/be_include/be_generator.h:
-
- Changed signature of one of the create_expr() overloads
- to match the signature change to constructors of be_expression
- and AST_Expression in
-
- Thu Feb 9 16:31:17 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
-Mon Feb 13 13:47:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlot/server.cpp:
- Improved this test, explicitly put a Long with value 5 in the PI
- slot and retrieve it later, this we can check whether we get
- the correct value back.
-
-Mon Feb 13 13:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PICurrent_Copy_Callback.h:
- Disallow copy and assignment
-
-Mon Feb 13 12:54:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PICurrent_Impl.cpp:
- Added some more documentation
-
-Mon Feb 13 12:45:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PICurrent_Impl.h:
- Doxygen improvements
-
-Mon Feb 13 12:12:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlot/client.cpp:
- Call shutdown on the server when ready
-
-Mon Feb 13 11:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Servant_Upcall.cpp:
- Fixed typo in comment
-
- * tao/PortableServer/Servant_Upcall.h:
- Document that we have an instance per upcall
-
-Mon Feb 13 11:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Object_Adapter.cpp:
- Initialise some pointers with 0
-
-Mon Feb 13 11:19:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/Thread_Pool.{h,cpp}:
- Create the dynamic threads as detached, they can exit themselves
- when load drops again, so we then can't join on them. Used the
- same flags as for the TPC thread the ORB can create
-
-Mon Feb 13 09:11:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Security/Policies/Foo_i.cpp:
- Use CORBA::is_nil to check if an object reference is nil or not
-
-Mon Feb 13 09:02:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp:
- Do the allocation of the ExceptionHolder in two steps, for allocate
- is using a pointer and then assign this pointer to a _var. Fixes
- compile problems in the Borland builds
-
-Sun Feb 12 13:41:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * utils/catior/catior.cpp:
- * orbsvcs/tests/Security/Policies/client.cpp:
- Fixed conversion warning
-
- * orbsvcs/tests/Security/Policies/Policies.mpc:
- No need to set exename
-
-Sun Feb 12 08:32:09 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
-
- Regenerated.
-
- * utils/catior/catior.cpp:
-
- Use #include "orbsvcs/CosNamingC.h" instead of #include
- "CosNamingC.h", as per normal TAO include path conventions.
-
- * utils/catior/catior.mpc:
-
- Remove includes += definition. The include path already has
- orbsvcs via inheritance from namingexe.
-
-Sun Feb 12 05:29:06 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp:
-
- Cosmetic change to source code.
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp (gen_throw_spec):
-
- Fixed code generation error introduced with a change to this
- file in
-
- Thu Feb 9 14:06:09 UTC 2006 Simon McQueen <sm@prismtech.com>
-
-Sat Feb 11 15:36:12 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tests/OBV/ValueBox/Test_impl.cpp:
-
- Divide sizeof(VBlongarray) by sizeof(CORBA::Long) instead of
- sizeof(long). Fixes OBV/ValueBox test on systems with 64 bit
- longs.
-
-Sat Feb 11 04:08:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
-Sat Feb 11 000:26:18 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_decl.cpp:
- * TAO_IDL/ast/ast_interface.cpp:
- * TAO_IDL/ast/ast_structure.cpp:
- * TAO_IDL/include/ast_decl.h:
- * TAO_IDL/include/idl_global.h:
- * TAO_IDL/util/utl_err.cpp:
-
- Changed base class AST_Decl to use ACE_CString for its
- pd_file_name member, instead of using UTL_String*. Also
- changed static method idl_error_header() to take an
- ACE_CString for the filename argument. Easier to get
- this member type to stick around until we check for
- illegal primary keys, which must be done after all
- other parsing.
-
-Fri Feb 10 20:40:31 UTC 2006 Iliyan Jeliazkov <iliyan@ociweb.com>
-
- * orbsvcs/tests/Security/Policies/Foo_i.cpp:
- * orbsvcs/tests/Security/Policies/client.cpp:
-
- Minor updates to printed output to prevent the regression suite
- from incorrectly interpreting debug output as test failure.
-
-Fri Feb 10 19:22:34 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/orbsvcs/CosTrading.mpc:
-
- Added iortable as a base project for the CosTrading_Serv library.
-
- * orbsvcs/orbsvcs/Trader/Trading_Loader.cpp:
-
- Add the TradingService IOR to the IORTable so that it may be used
- as a corbaloc within a -ORBInitRef.
-
- * orbsvcs/tests/Trading/run_test.pl:
-
- Modified this test to use a corbaloc to locate the TradingService.
-
-Fri Feb 10 15:49:17 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
-
- Reverted back a change I did because its non-compliance
- with the FT Spec.
- Thu Feb 9 20:06:18 UTC 2006 Wallace Zhang
-
-Fri Feb 10 15:28:50 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_typecode/value_typecode.cpp:
-
- Applied the fix suggested by Johnny Willemsen
- <jwillemsen@remedy.nl> in [BUGID:2145], since it was
- never supplied by the bug reporter, and closed the entry.
-
-Fri Feb 10 15:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/configurations.html:
- Fixed link
-
-Fri Feb 10 15:00:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tao/ServerRequestInterceptor_Adapter.h
- * tao/PI_Server/ServerInterceptorAdapter.cpp:
- * tao/PortableServer/Object_Adapter.cpp:
- Correct compile problems for TAO_HAS_EXTENDED_FT_INTERCEPTORS
- builds. This build configuration has been left behind with
- recent changes.
-
-Fri Feb 10 14:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/EC_Mcast/run_test.pl:
- * orbsvcs/tests/EC_MT_Mcast/run_test.pl:
- When we can't spawn the processes, just exit directly instead
- of waiting on a timeout. Speedsup the daily builds when we
- can't build the executables
-
-Fri Feb 10 11:21:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp:
- Use prefix increment
-
- * orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h:
- Removed this file
-
- * orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc:
- * orbsvcs/tests/EC_MT_Mcast/MCast.cpp:
- * orbsvcs/tests/EC_MT_Mcast/svc.conf:
- Link in the strategies lib, this way this test can be used
- also in a static environment
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp:
- Initialise pointer with 0
-
-Fri Feb 10 11:10:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2319_Regression/*:
- Added regression for this bug. Thanks to Toha Bakanovsky
- <im-scooter at yandex dot ru> for creating this. This bug
- is not fixed
-
- * tao/Blocked_Connect_Strategy.h:
- Doxygen improvements
-
- * tao/FlResource_Loader.cpp:
- Removed not needed include
-
- * tao/FlResource_Factory.h:
- Reordered includes
-
- * tao/PI_Server/ServerInterceptorAdapter.cpp:
- We did copy PICurrent too often from TSC to RSC and back
-
- * tao/PortableServer/Servant_Upcall.h:
- Made single argument constructor explicit
-
- * tao/RTPortableServer/RT_POA.cpp:
- Initialize pointer with 0
-
-Fri Feb 10 08:28:55 UTC 2006 Don Sharp <Donald.Sharp@prismtech.com>
-
- * utils/catior/catior.cpp:
- * utils/catior/catior.mpc:
-
- Better error reporting.
-
- Implement name server IOR lookup.
-
-Wed Feb 8 12:00:57 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * utils/catior/catior.cpp (cat_codeset_info):
-
- Take into account CDR encapsulation byte order when demarshaling
- information from the encapsulation. Fixes incorrect
- demarshaling in cases where CDR encapsulation byte order does
- not match CDR stream byte order. [Bug 2400]
-
-Thu Feb 9 21:07:51 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_helper.cpp:
- * TAO_IDL/be_include/be_helper.h:
-
- Changed the signature of the TAO_OutStream operator that
- takes a TAO_ACE_CHECK struct to get a const reference of
- the struct, instead of a non-const reference. In code
- generation, this struct is passed to the operator as a
- temporary, and gcc is evidently catching that a temporary
- shouldn't be passed as a non-const reference (Visual Studio
- did not catch it), but reporting the error as a failure to
- resolve the operator overload.
-
-Thu Feb 9 20:17:37 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Fix typo in regeneration.
-
-Thu Feb 9 20:06:18 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp:
-
- Corrected the use of the length of the passing parameter to a
- function.
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
-
- Changed the return value of function is_profile_equivalent when
- comparing an IOR and an IOGR. Basically, when you compare an
- IOR and an IOGR, we need to return "DONT_KNOW",not
- "NOT_EQUIVALENT".
-
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp:
-
- A fix for using the object reference.
-
- * tao/IORManipulation/IORManipulation.cpp:
-
- Corrected the order of adding, removing profiles, and creating
- Object References.
-
-Thu Feb 9 19:59:41 UTC 2006 Iliyan Jeliazkov <iliyan@ociweb.com>
-
- This change was adds enforcement for any Security::SecQoP*
- policies applicable on a POA, that may be different from the ORB
- default. It resolves an bug, which allowed security unaware
- clients to make invocations on "secure" objects when the ORB is
- configured with support for Security::SecQoPNoProtection.
- ("Secure" in this context means that the object is activated in
- a POA, for wich security policy was set to at least
- Security::SecQoPIntegrity.)
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp:
-
- Added code to the interception point to ensure that any
- Security::SecQoP* policies are enforced.
-
- * orbsvcs/tests/Security/Policies/Foo.idl:
- * orbsvcs/tests/Security/Policies/Foo_i.h:
- * orbsvcs/tests/Security/Policies/Foo_i.cpp:
- * orbsvcs/tests/Security/Policies/Policies.mpc:
- * orbsvcs/tests/Security/Policies/README:
- * orbsvcs/tests/Security/Policies/cacert.pem:
- * orbsvcs/tests/Security/Policies/client.conf:
- * orbsvcs/tests/Security/Policies/client.conf.xml:
- * orbsvcs/tests/Security/Policies/client.cpp:
- * orbsvcs/tests/Security/Policies/client_cert.pem:
- * orbsvcs/tests/Security/Policies/client_key.pem:
- * orbsvcs/tests/Security/Policies/client_nopasswd.conf:
- * orbsvcs/tests/Security/Policies/client_nopasswd.conf.xml:
- * orbsvcs/tests/Security/Policies/run_test.pl:
- * orbsvcs/tests/Security/Policies/server.conf:
- * orbsvcs/tests/Security/Policies/server.conf.xml:
- * orbsvcs/tests/Security/Policies/server.cpp:
- * orbsvcs/tests/Security/Policies/server_cert.pem:
- * orbsvcs/tests/Security/Policies/server_key.pem:
- * orbsvcs/tests/Security/Policies/server_key_nopasswd.pem:
-
- Added a test to excercise the various combinations of clients
- making invocations on servers that either support or requre
- protection.
-
-Thu Feb 9 19:27:13 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/HTOIP.mpc:
- * orbsvcs/orbsvcs/SSLIOP.mpc:
-
- Add Pidl_Files section so that *_endpoints.pidl files are
- installed in autoconf builds.
-
-Thu Feb 9 18:25:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/driver/drv_preproc.cpp:
-
- If TAO_ROOT or ACE_ROOT environment variables are set they
- override the path set by 'TAO_IDL_INCLUDE_DIR'. Both $TAO_ROOT
- and $TAO_ROOT/tao (or $ACE_ROOT/TAO and $ACE_ROOT/TAO/tao) have
- to be added to the list of preprocessor include paths. Instead
- of unconditionally disabling appending the second include path
- when TAO_IDL_INCLUDE_PATH is defined, we just set it to '.' in
- the case neither TAO_ROOT or ACE_ROOT environment variables are
- set.
-
- Similarly, disable appending /orbsvcs, /CIAO, and /CIAO/ciao to
- TAO_IDL_INCLUDE_PATH, again setting the include paths to '.'.
-
-Thu Feb 9 16:45:21 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * orbsvcs/IFR_Service/be_global.cpp:
- * orbsvcs/IFR_Servicebe_global.h:
- * orbsvcs/IFR_Serviceifr_adding_visitor.cpp:
- * orbsvcs/IFR_Serviceifr_adding_visitor_exception.cpp:
- * orbsvcs/IFR_Serviceifr_adding_visitor_structure.cpp:
- * orbsvcs/IFR_Serviceifr_adding_visitor_union.cpp:
-
- - removed all usage of idl_bool typedef in the IFR loader,
- consistentlty with changes in
-
- Thu Feb 9 16:31:17 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- - added support for boxed valuetypes to the IFR loader
-
-Thu Feb 9 16:31:17 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/include/idl_bool.h:
-
- Removed this file, no longer used because of changes
- below.
-
- * TAO_IDL/tao_idl.cpp:
- * TAO_IDL/ast/ast_array.cpp:
- * TAO_IDL/ast/ast_attribute.cpp:
- * TAO_IDL/ast/ast_component.cpp:
- * TAO_IDL/ast/ast_component_fwd.cpp:
- * TAO_IDL/ast/ast_constant.cpp:
- * TAO_IDL/ast/ast_decl.cpp:
- * TAO_IDL/ast/ast_enum.cpp:
- * TAO_IDL/ast/ast_eventtype.cpp:
- * TAO_IDL/ast/ast_eventtype_fwd.cpp:
- * TAO_IDL/ast/ast_exception.cpp:
- * TAO_IDL/ast/ast_expression.cpp:
- * TAO_IDL/ast/ast_factory.cpp:
- * TAO_IDL/ast/ast_generator.cpp:
- * TAO_IDL/ast/ast_home.cpp:
- * TAO_IDL/ast/ast_interface.cpp:
- * TAO_IDL/ast/ast_interface_fwd.cpp:
- * TAO_IDL/ast/ast_module.cpp:
- * TAO_IDL/ast/ast_native.cpp:
- * TAO_IDL/ast/ast_operation.cpp:
- * TAO_IDL/ast/ast_predefined_type.cpp:
- * TAO_IDL/ast/ast_recursive.cpp:
- * TAO_IDL/ast/ast_redef.cpp:
- * TAO_IDL/ast/ast_sequence.cpp:
- * TAO_IDL/ast/ast_string.cpp:
- * TAO_IDL/ast/ast_structure.cpp:
- * TAO_IDL/ast/ast_structure_fwd.cpp:
- * TAO_IDL/ast/ast_type.cpp:
- * TAO_IDL/ast/ast_typedef.cpp:
- * TAO_IDL/ast/ast_union.cpp:
- * TAO_IDL/ast/ast_valuebox.cpp:
- * TAO_IDL/ast/ast_valuetype.cpp:
- * TAO_IDL/ast/ast_valuetype_fwd.cpp:
- * TAO_IDL/be/be_argument.cpp:
- * TAO_IDL/be/be_array.cpp:
- * TAO_IDL/be/be_attribute.cpp:
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_component.cpp:
- * TAO_IDL/be/be_decl.cpp:
- * TAO_IDL/be/be_enum.cpp:
- * TAO_IDL/be/be_eventtype.cpp:
- * TAO_IDL/be/be_exception.cpp:
- * TAO_IDL/be/be_expression.cpp:
- * TAO_IDL/be/be_generator.cpp:
- * TAO_IDL/be/be_global.cpp:
- * TAO_IDL/be/be_helper.cpp:
- * TAO_IDL/be/be_home.cpp:
- * TAO_IDL/be/be_interface.cpp:
- * TAO_IDL/be/be_interface_fwd.cpp:
- * TAO_IDL/be/be_native.cpp:
- * TAO_IDL/be/be_operation.cpp:
- * TAO_IDL/be/be_predefined_type.cpp:
- * TAO_IDL/be/be_sequence.cpp:
- * TAO_IDL/be/be_string.cpp:
- * TAO_IDL/be/be_structure.cpp:
- * TAO_IDL/be/be_sunsoft.cpp:
- * TAO_IDL/be/be_type.cpp:
- * TAO_IDL/be/be_typedef.cpp:
- * TAO_IDL/be/be_union.cpp:
- * TAO_IDL/be/be_valuetype.cpp:
- * TAO_IDL/be/be_visitor_ami_pre_proc.cpp:
- * TAO_IDL/be/be_visitor_arg_traits.cpp:
- * TAO_IDL/be/be_visitor_ccm_pre_proc.cpp:
- * TAO_IDL/be/be_visitor_context.cpp:
- * TAO_IDL/be/be_visitor_scope.cpp:
- * TAO_IDL/be/be_visitor_traits.cpp:
- * TAO_IDL/be/be_visitor_argument/arglist.cpp:
- * TAO_IDL/be/be_visitor_array/array_ci.cpp:
- * TAO_IDL/be/be_visitor_array/array_cs.cpp:
- * TAO_IDL/be/be_visitor_component/component_ch.cpp:
- * TAO_IDL/be/be_visitor_component/component_ci.cpp:
- * TAO_IDL/be/be_visitor_component/component_cs.cpp:
- * TAO_IDL/be/be_visitor_component/component_sh.cpp:
- * TAO_IDL/be/be_visitor_constant/constant_ch.cpp:
- * TAO_IDL/be/be_visitor_constant/constant_cs.cpp:
- * TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_enum/enum_ch.cpp:
- * TAO_IDL/be/be_visitor_enum/enum_cs.cpp:
- * TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_exception/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_exception/exception_ch.cpp:
- * TAO_IDL/be/be_visitor_exception/exception_ci.cpp:
- * TAO_IDL/be/be_visitor_exception/exception_cs.cpp:
- * TAO_IDL/be/be_visitor_home/home_ch.cpp:
- * TAO_IDL/be/be_visitor_home/home_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/amh_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/amh_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/amh_si.cpp:
- * TAO_IDL/be/be_visitor_interface/amh_ss.cpp:
- * TAO_IDL/be/be_visitor_interface/base_proxy_broker_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/interface.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_ci.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_ss.cpp:
- * TAO_IDL/be/be_visitor_interface/remote_proxy_broker_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/remote_proxy_broker_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_ss.cpp:
- * TAO_IDL/be/be_visitor_interface/tie_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/tie_si.cpp:
- * TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp:
- * TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/amh_sh.cpp:
- * TAO_IDL/be/be_visitor_operation/amh_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/ami_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp:
- * TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/argument.cpp:
- * TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/operation.cpp:
- * TAO_IDL/be/be_visitor_operation/operation_sh.cpp:
- * TAO_IDL/be/be_visitor_operation/operation_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp:
- * TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp:
- * TAO_IDL/be/be_visitor_root/root.cpp:
- * TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp:
- * TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp:
- * TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_structure/structure_ch.cpp:
- * TAO_IDL/be/be_visitor_structure/structure_ci.cpp:
- * TAO_IDL/be/be_visitor_structure/structure_cs.cpp:
- * TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp:
- * TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp:
- * TAO_IDL/be/be_visitor_union/union_ch.cpp:
- * TAO_IDL/be/be_visitor_union/union_ci.cpp:
- * TAO_IDL/be/be_visitor_union/union_cs.cpp:
- * TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp:
- * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp:
- * TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp:
- * TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp:
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
- * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp:
- * TAO_IDL/be/be_visitor_valuetype/arglist.cpp:
- * TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp:
- * TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ci.cpp:
- * TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp:
- * TAO_IDL/be_include/be_array.h:
- * TAO_IDL/be_include/be_attribute.h:
- * TAO_IDL/be_include/be_decl.h:
- * TAO_IDL/be_include/be_enum.h:
- * TAO_IDL/be_include/be_eventtype.h:
- * TAO_IDL/be_include/be_exception.h:
- * TAO_IDL/be_include/be_expression.h:
- * TAO_IDL/be_include/be_generator.h:
- * TAO_IDL/be_include/be_global.h:
- * TAO_IDL/be_include/be_helper.h:
- * TAO_IDL/be_include/be_interface.h:
- * TAO_IDL/be_include/be_interface_fwd.h:
- * TAO_IDL/be_include/be_operation.h:
- * TAO_IDL/be_include/be_sequence.h:
- * TAO_IDL/be_include/be_structure.h:
- * TAO_IDL/be_include/be_type.h:
- * TAO_IDL/be_include/be_typedef.h:
- * TAO_IDL/be_include/be_union.h:
- * TAO_IDL/be_include/be_valuetype.h:
- * TAO_IDL/be_include/be_visitor_arg_traits.h:
- * TAO_IDL/be_include/be_visitor_context.h:
- * TAO_IDL/be_include/be_visitor_scope.h:
- * TAO_IDL/be_include/be_visitor_operation/operation.h:
- * TAO_IDL/be_include/be_visitor_valuetype/arglist.h:
- * TAO_IDL/be_include/be_visitor_valuetype/field_ci.h:
- * TAO_IDL/be_include/be_visitor_valuetype/field_cs.h:
- * TAO_IDL/be_include/be_visitor_valuetype/valuetype.h:
- * TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h:
- * TAO_IDL/driver/drv_args.cpp:
- * TAO_IDL/driver/drv_preproc.cpp:
- * TAO_IDL/fe/fe_init.cpp:
- * TAO_IDL/fe/fe_interface_header.cpp:
- * TAO_IDL/fe/idl.yy
- * TAO_IDL/fe/lex.yy.cpp:
- * TAO_IDL/fe/y.tab.cpp:
- * TAO_IDL/fe/y.tab.cpp:.diff
- * TAO_IDL/fe/y.tab.h:
- * TAO_IDL/include/ast_array.h:
- * TAO_IDL/include/ast_attribute.h:
- * TAO_IDL/include/ast_component.h:
- * TAO_IDL/include/ast_constant.h:
- * TAO_IDL/include/ast_decl.h:
- * TAO_IDL/include/ast_enum.h:
- * TAO_IDL/include/ast_eventtype.h:
- * TAO_IDL/include/ast_exception.h:
- * TAO_IDL/include/ast_expression.h:
- * TAO_IDL/include/ast_extern.h:
- * TAO_IDL/include/ast_generator.h:
- * TAO_IDL/include/ast_home.h:
- * TAO_IDL/include/ast_interface.h:
- * TAO_IDL/include/ast_interface_fwd.h:
- * TAO_IDL/include/ast_module.h:
- * TAO_IDL/include/ast_operation.h:
- * TAO_IDL/include/ast_sequence.h:
- * TAO_IDL/include/ast_structure.h:
- * TAO_IDL/include/ast_structure_fwd.h:
- * TAO_IDL/include/ast_type.h:
- * TAO_IDL/include/ast_typedef.h:
- * TAO_IDL/include/ast_union.h:
- * TAO_IDL/include/ast_valuetype.h:
- * TAO_IDL/include/fe_interface_header.h:
- * TAO_IDL/include/global_extern.h:
- * TAO_IDL/include/idl_global.h:
- * TAO_IDL/include/utl_identifier.h:
- * TAO_IDL/include/utl_list.h:
- * TAO_IDL/include/utl_namelist.h:
- * TAO_IDL/include/utl_scope.h:
- * TAO_IDL/include/utl_string.h:
- * TAO_IDL/include/utl_tmpl/utl_exceptlist.h:
- * TAO_IDL/util/utl_global.cpp:
- * TAO_IDL/util/utl_identifier.cpp:
- * TAO_IDL/util/utl_idlist.cpp:
- * TAO_IDL/util/utl_list.cpp:
- * TAO_IDL/util/utl_namelist.cpp:
- * TAO_IDL/util/utl_scope.cpp:
- * TAO_IDL/util/utl_stack.cpp:
- * TAO_IDL/util/utl_string.cpp:
- * TAO_IDL/util/utl_strlist.cpp:
- * TAO_IDL/util/utl_tmpl/utl_idlist.cpp:
- * TAO_IDL/util/utl_tmpl/utl_list.cpp:
- * TAO_IDL/util/utl_tmpl/utl_strlist.cpp:
-
- - Replaced all usage of the IDL compiler's internal type
- idl_bool (typedef of long) with native bool. Also
- replaced similarly typedef'd values I_TRUE and I_FALSE.
-
- - Extended the effects of the -Ge 2 command line option
- (which previously replaced 'ACE_THROW' with 'throw'
- and removed all generation of environment variables
- and forms of 'ACE_CHECK' in user defined operations)
- to remove generation of environment variables and
- forms of 'ACE_CHECK' in all operations, including
- overrides of inherited operations, to replace
- all forms of 'ACE_TRY' and 'ACE_CATCH', and to
- remove generation of 'ACE_ENDTRY'.
-
- - regenerated lex.yy.cpp and y.tab.cpp, along with
- the associated diff files.
-
- - removed the passing of 'TAO_IDL_INCLUDE_DIR/tao' path to
- the preprocessor, when 'TAO_IDL_INCLUDE_DIR' is used
- instead of the TAO_ROOT environment variable.
-
- - made many cosmetic changes to generated code formatting.
-
-Thu Feb 9 14:06:09 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_global.cpp:
-
- Whitespace.
-
- * TAO_IDL/be/be_visitor_operation/tie_si.cpp:
-
- Prevent arguments called T from clashing with the temmplate class
- identifier. This fixes bug #2390.
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp:
-
- Prevent generation of spurious SystemException throw specs on
- valuetype factroy methods. This fixes bug #2375.
-
- * TAO_IDL/driver/drv_preproc.cpp:
-
- Change all '#include "foo.idl"' entries in IDL files to
- '#include <foo.idl>' before feeding them to the pre-processor.
- Prevents accidental processing of IDL files from the users tmp
- directory. This fixes bug #2399.
-
- * tests/Bug_2375_Regression/Bug_2375_Regression.mpc:
- * tests/Bug_2375_Regression/README:
- * tests/Bug_2375_Regression/test.cpp:
- * tests/Bug_2375_Regression/test.idl:
- * tests/Bug_2399_Regression/README:
- * tests/Bug_2399_Regression/included.idl:
- * tests/Bug_2399_Regression/mytmp/included.idl:
- * tests/Bug_2399_Regression/Bug_2399_Regression.mpc:
- * tests/Bug_2399_Regression/test.idl:
- * tests/Bug_2399_Regression/test.cpp:
-
- Regression tests for two of the above bugs.
-
-Wed Feb 08 15:49:54 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * TAO version 1.4.9 released.
-
-Wed Feb 8 04:46:33 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
-
- Added versioned namespace macros to generation of
- any insertion/extraction operators. Thanks to Ossama
- Othman for pointing out this problem.
-
-Tue Feb 7 22:40:54 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tests/Sequence_Unit_Tests/bounded_basic_string_sequence.hpp
- * tests/Sequence_Unit_Tests/bounded_object_reference_sequence.hpp
- * tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/bounded_reference_allocation_traits.hpp
- * tests/Sequence_Unit_Tests/bounded_sequence_cdr.hpp
- * tests/Sequence_Unit_Tests/bounded_sequence_cdr_ut.cpp
- * tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
- * tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/bounded_value_allocation_traits.hpp
- * tests/Sequence_Unit_Tests/bounded_value_sequence.hpp
- * tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/bounded_wstring_sequence.hpp
- * tests/Sequence_Unit_Tests/fwd_mock_reference.cpp
- * tests/Sequence_Unit_Tests/fwd_mock_reference.hpp
- * tests/Sequence_Unit_Tests/generic_sequence.hpp
- * tests/Sequence_Unit_Tests/mock_reference.cpp
- * tests/Sequence_Unit_Tests/mock_reference.hpp
- * tests/Sequence_Unit_Tests/mock_stream.cpp
- * tests/Sequence_Unit_Tests/mock_stream.hpp
- * tests/Sequence_Unit_Tests/object_reference_sequence_element.hpp
- * tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp
- * tests/Sequence_Unit_Tests/object_reference_traits.hpp
- * tests/Sequence_Unit_Tests/object_reference_traits_base.hpp
- * tests/Sequence_Unit_Tests/range_checking.hpp
- * tests/Sequence_Unit_Tests/string_sequence_element.hpp
- * tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp
- * tests/Sequence_Unit_Tests/string_traits.hpp
- * tests/Sequence_Unit_Tests/string_traits_base.hpp
- * tests/Sequence_Unit_Tests/testing_allocation_traits.hpp
- * tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
- * tests/Sequence_Unit_Tests/testing_object_reference_traits.hpp
- * tests/Sequence_Unit_Tests/testing_range_checking.hpp
- * tests/Sequence_Unit_Tests/testing_string_traits.hpp
- * tests/Sequence_Unit_Tests/unbounded_basic_string_sequence.hpp
- * tests/Sequence_Unit_Tests/unbounded_fwd_object_reference_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_object_reference_sequence.hpp
- * tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_reference_allocation_traits.hpp
- * tests/Sequence_Unit_Tests/unbounded_sequence_cdr.hpp
- * tests/Sequence_Unit_Tests/unbounded_sequence_cdr_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_string_sequence.hpp
- * tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_value_allocation_traits.hpp
- * tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp
- * tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp
- * tests/Sequence_Unit_Tests/unbounded_wstring_sequence.hpp
- * tests/Sequence_Unit_Tests/value_sequence_tester.hpp
- * tests/Sequence_Unit_Tests/value_traits.hpp
-
- Fixes for versioned namespace compile problems. Thanks to
- Ossama Othman (ossama_othman at symantec dot com) for providing
- assistance..
-
-Tue Feb 7 21:07:35 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
-
- Surrounded valuetype CDR operators with versioned namespace
- macros.
-
- * performance-tests/Cubit/TAO/MT_Cubit/Globals.h
- * tests/NestedUpcall/MT_Client_Test/local_server.h
-
- Surrounded forward declarations of ACE/TAO types with versioned
- namespace macros.
-
-Mon Feb 6 16:46:57 Pacific Standard Time 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp:
-
- Added ability to set "versioned" namespace opening and closing
- text. Addresses problem where applications that do not enable
- versioned namespace support in their own code need not get
- "versioned" stubs/skeletons. This was previously done for all
- other IDL types. Forward interface declarations were
- overlooked.
-
- * tests/MT_BiDir/Sender_i.h:
- * tests/MT_BiDir/Server_Task.h:
- * tests/NestedUpcall/MT_Client_Test/local_server.h:
- * tests/OBV/Collocated/Forward/Server_Task.h:
- * tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.h:
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.h:
- * tests/Two_Objects/First_i.cpp:
- * tests/Two_Objects/First_i.h:
- * tests/Two_Objects/Object_Factory_i.h:
- * tests/Two_Objects/Second_i.h:
-
- Placed forward declarations for ACE/TAO types in the appropriate
- versioned namespace.
-
-Fri Feb 3 15:16:41 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * tests/Bug_1495_Regression/Server_Task.h:
- * tests/Bug_2084_Regression/Server_Task.h:
- * tests/Collocation_Exception_Test/Server_Task.h:
- * tests/Collocation_Oneway_Tests/Server_Task.h:
- * tests/Collocation_Tests/Server_Task.h:
-
- Place ACE_Manual_Event forward declaration within versioned
- namespace.
-
- * tests/Hang_Shutdown/Test.idl:
- * tests/Hang_Shutdown/client.cpp:
- * tests/Hang_Shutdown/server.cpp:
- * tests/Hang_Shutdown/test_i.h:
-
- Removed outer "TAO" namespace. It served no useful purpose, and
- conflicted with the versioned TAO namespace used in the core TAO
- libraries.
-
-Thu Feb 3 14:54:51 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * be/be_visitor_valuebox/valuebox_ci.cpp:
- * be/be_visitor_valuebox/valuebox_cs.cpp:
- * be_include/be_visitor_valuebox/valuebox_ci.h:
- * be_include/be_visitor_valuebox/valuebox_cs.h:
-
- Moved generated inlined virtual functions out of line. The
- TAO_IDL valuebox code previously generated inlined virtual
- functions, including a virtual destructor, which can cause RTTI
- problems when attempting to downcast a valuebox object found in
- a shared library that was compiled with g++ 4.0's
- "-fvisibility-inlines-hidden" command line option. The virtual
- functions marked as "inline" (as opposed to actually inlined)
- end up being left out of the export table, which breaks RTTI for
- valueboxes in the shared library. [Bug 2392]
-
-Fri Feb 3 10:44:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/TAO-metrics.html:
- Fixed hyperlink
-
-Thu Feb 2 13:08:31 Pacific Standard Time 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp:
-
- Added ability to set "versioned" namespace opening and closing
- text. Addresses problem where applications that do not enable
- versioned namespace support in their own code need not get
- "versioned" stubs/skeletons. This was previously done for all
- other IDL types. Valuetypes were overlooked.
-
-Thu Feb 2 12:20:16 Pacific Standard Time 2006 Ossama Othman <ossama_othman at symantec dot com>
-
- * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc
- (ImR_Activator_IDL, ImR_Locator_IDL):
-
- Added missing "tao_versioning_idl_defaults" base project. Fixes
- syntax errors in versioned namespace builds.
-
-Thu Feb 2 17:48:16 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Makefile.am:
-
- Must build tests before examples, as the Notify Service examples
- use a Notify Service test library.
-
-Wed Feb 1 21:02:45 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_predefined_type.cpp:
-
- Fixed a bug in the computation of repository ids for
- predefined types.
-
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp (fill_valuemember_sequence):
-
- Fixed a bug in retrieving the repository path to the type of
- a valuetype member.
-
- * orbsvcs/IFR_Service/adding_visitor.cpp(create_value_member):
-
- Fixed a bug in looking up a valuetype member's type in the
- repository.
-
-Wed Feb 1 20:07:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/pluggable_messaging.html:
- Added some info how to load IIOP Lite when the strategies lib
- is used. Thanks to Kobi Cohen Arazi <kobi dot cohenarazi at gmail
- dot com> for reporting this.
-
-Wed Feb 1 14:46:55 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * NEWS:
-
- Describe changes to Telecom Log Service Strategy interface.
-
-Wed Feb 1 14:19:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2345_Regression/Bug_2345_Regression.mpc:
- * tests/Bug_2345_Regression/server.cpp:
- Link in the ImR_Client library explicitly, this is needed for
- this test
-
-Wed Feb 1 13:25:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/pluggable_messaging.html:
- Small improvements to improve readability
-
-Wed Feb 1 13:00:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/Options.html:
- Small fix
-
-Tue Jan 31 19:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/rtcorba/issues.html:
- Fixed bugzilla link
-
-Mon Jan 30 22:04:39 UTC 2006 Ming Xiong <ming.xiong@vanderbilt.edu>
-
- * TAO/tao/PortableServer/Root_POA.h
-
- Improved documentation for find_servant_priority ()
-
-Mon Jan 30 17:22:50 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS:
-
- Moved the NEWS entry below to the right place.
- Updated info for support for RTCORBA Keepalive.
-
-Mon Jan 30 17:09:25 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Record -ORBKeepalive option.
-
-Sun Jan 29 22:23:21 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/driver/drv_args.cpp (DRV_usage):
- * TAO_IDL/be/be_global.cpp (usage):
-
- Moved all all usage messages about -Wb options to the IDL
- compiler back end, which they are specific to. Thanks to
- Andy Gokhale <a.gokhale@vanderbilt.edu> for pointing
- out that these usage message were appearing with the
- idl_to_picml executable, where they are not relevant.
-
-Sun Jan 29 15:01:13 UTC 2006 Martin Corino <mcorino@remedy.nl>
-
- * tao/IIOP_Profile.cpp:
-
- Fixed some compile problems with the enhancements in
- TAO_IIOP_Profile::to_string() for IPv6 enabled builds.
-
-Sat Jan 28 23:15:13 UTC 2006 Martin Corino <mcorino@remedy.nl>
-
- * tao/IIOP_Profile.cpp:
-
- Added enhancement to TAO_IIOP_Profile::to_string() to return
- *all* endpoints in profile embedded in a corbaloc URL like:
- corbaloc:iiop:1.2@host:port,iiop:1.2@host:port,.../key
- Thanks to Victor Chernenko (GE Healthcare) for suggesting this
- and providing a first patch.
-
-Sat Jan 28 22:22:13 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * tao/PortableServer/ServantRetentionStrategyNonRetain.cpp
-
- Fixed unused argument warning.
-
-Fri Jan 27 22:03:14 UTC 2006 Ming Xiong <ming.xiong@vanderbilt.edu>
-
- * tao/PortableServer/ServantRetentionStrategy.h
- * tao/PortableServer/ServantRetentionStrategyNonRetain.cpp
- * tao/PortableServer/ServantRetentionStrategyNonRetain.h
- * tao/PortableServer/ServantRetentionStrategyRetain.cpp
- * tao/PortableServer/ServantRetentionStrategyRetain.h
-
- Add a find_servant_priority () method to
- PortableServer::ServantRetentionStrategy
- PortableServer::ServantRetentionStrategyNonRetain
- PortableServer::ServantRetentionStrategyRetain
-
- * tao/PortableServer/Root_POA.cpp
- * tao/PortableServer/Root_POA.h
-
- Add a find_servant_priority () method to TAO_Root_POA
-
- * tao/RTPortableServer/RT_Collocation_Resolver.cpp
-
- Change the way TAO_RT_Collocation_Resolver::is_collocated
- retrieves servant priority. In particular, it will use
- poa->find_servant_priority () instread of locate_servant_i ()
-
- This change is aimed at fixing TAO Bug 2325, which has a misuse
- of Servant_Upcall, causing the aom entry reference counts to
- be incorrectly incremented.Thanks to Abhi (abhi dot qualcomm
- dot com) and Johnny for reporting this bug and helping out
- with the solution.
-
-
-Fri Jan 27 14:53:45 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Add some .in()'s to help out old senile compilers who can't
- figure things out on their own.
-
-Fri Jan 27 03:51:42 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- If examples and/or tests have been disabled, don't bother
- generating subdirectory hierarchies or Makefiles for them.
-
-Fri Jan 27 02:41:12 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
- * orbsvcs/Makefile.am:
-
- Use BUILD_EXAMPLES AND BUILD_TESTS automake conditionals to
- control whether TAO's (and TAO's ORBservice's) examples and
- tests are built.
-
- * configure.ac:
-
- Invoke TAO_ENABLE_EXAMPLES and TAO_ENABLE_TESTS.
-
- * m4/tao.m4:
-
- Added TAO_ENABLE_EXAMPLES and TAO_ENABLE_TESTS autoconf macros.
- These enable/disable BUILD_EXAMPLES and BUILD_TESTS automake
- conditionals.
-
-Thu Jan 26 20:36:47 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * orbsvcs/IFR_Service/be_produce.cpp(BE_cleanup):
-
- Removed code to destory the temporary holding scope entry in
- the repository after each IDL file is processed. Instead the
- lifetime of that entry is now tied to the repository itself.
-
- * orbsvcs/IFR_Service/ifr_adding_visitor.cpp (visit_typedef):
-
- Removed code that replaces a typedef with the same repo id
- with a new entry, which would invalidate any references to
- the typedef entry that other entries may hold. The IFR will
- now throw the BAD_PARAM minor code that corresponds to an
- attempt to create an entry for a repo id that already exists
- in the repository. Thanks to Richard Spence
- <richard dot spence dot extern at icn dot siemens dot de>
- for reporting the problem when the typdef is used as an
- operation parameter. This closes [BUGID:2381].
-
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp (name_exists):
-
- Changed the loop to be a FOR loop using the explicit section
- names, rather than a while loop calling enumerate_sections()
- to get each section name.
-
-Thu Jan 26 15:37:12 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp:
- * orbsvcs/orbsvcs/Log/Hash_Iterator_i.h:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Added lock() method to LogRecordStore that returns a reference
- to a ACE_SYNCH_RW_MUTEX. Changed Log_i and Hash_Iterator_i to
- use the lock (via the ACE_READ_GUARD... and ACE_WRITE_GUARD...
- macros), while removing its use within the Hash_LogRecordStore
- methods themselves.
-
- This change avoids any race conditions in read-modify-write
- operations (e.g. the set_* methods) that exist when locking is
- done entirely within the LogRecordStore.
-
- It also avoids acquiring and releasing the lock multiple times
- in the course of a single operation, which resulted in a modest
- performance improvement (~15%) for methods like write_records()
- and write_recordlist().
-
- In the future, we may want to abstract locking so instead of a
- rwlock it may represent a database session or transaction.
-
-Mon Jan 23 15:50:27 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Obtain the capacity alarm thresholds, log QoS, and week mask
- from the record store.
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/LogRecordStore.h:
-
- Added methods to get and set the log QoS and week mask.
-
-Tue Jan 24 20:37:55 UTC 2006 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/IIOP_Connection_Handler.cpp:
-
- Extended Simon McQueen's Fri Jan 20 17:11:49 UTC 2006 addition
- of support for SO_KEEPALIVE to include taking the value from
- RTCORBA::TCPPrototocolProperties::keep_alive, when RTCORBA is
- used, and the application is using a Server or Client
- ProtocolPolicy.
-
- * docs/rtcorba/issues.html:
-
- Removed lack of support for the keep alive protocol property
- from the list of issues.
-
-Tue Jan 24 19:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Borland/ChatClientWnd.cpp:
- Fixed parameter unused warnings
-
-Tue Jan 24 15:24:58 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Calling create_reference_with_id() (via create_log_reference) in
- the constructor and/or ::init() appears to result in an infinate
- loop within the ORB. Until that's resolved, defer obtaining the
- logs object reference until it's needed.
-
-Tue Jan 24 14:36:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h:
- Fixed export macro in ACE_FACTORY_DECLARE
-
-Tue Jan 24 10:20:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * NEWS:
- Added -ORBUseLocalMemoryPool option info.
-
-Mon Jan 23 12:46:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlot/client.cpp:
- * tests/Portable_Interceptors/AdvSlot/server.cpp:
- Fixed compile warnings
-
-Sun Jan 22 18:32:03 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Property/CosPropertyService_i.h:
-
- Use _Serv versions of the export macros. It seems I missed
- some that should have been part of this:
-
- Tue Jan 17 22:26:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
-Sun Jan 22 18:24:37 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp:
-
- Update ACE_FACTORY_DEFINE() that wasn't updated when splitting
- the Concurrency Service libraries.
-
-Sun Jan 22 16:54:55 UTC 2006 Boris Kolpackov <boris@kolpackov.net>
-
- * tests/Portable_Interceptors/AdvSlot/server.cpp:
-
- Fixed a problem with VC6.
-
-Sun Jan 22 02:42:21 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Added operator== and operator!= for IDL generated types
- DsLogAdmin::QoSList and DsLogAdmin::TimeInterval. Use them to
- compare old and new log attribute values to decide whether to
- send an AttributeValueChange event.
-
-Sun Jan 22 02:34:02 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Added a new member variable to store the log channel's object
- reference. Until now, the code was calling _this() each time
- the reference was needed. Not only was this inefficient (the
- reference is a field of each of the the structures used for log
- notification events, so it's needed relatively frequently), but
- also it resulted in the servant being activated in the RootPOA,
- so a transient rather than persistent IOR was returned.
-
- * orbsvcs/orbsvcs/Log/LogNotification.cpp:
-
- The event's logref field wasn't being set in state_change() and
- threshold alarm(), even though the log channel object reference
- was being passed to the methods.
-
-Sat Jan 21 01:56:30 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log_i.cpp:
-
- Call reset_capacity_alarm_threshold () in set_log_full_action()
- if the value is changed.
-
- If the log full action is DsLogAdmin::halt, capacity threshold
- alarms are triggered when the size of a log exceeds one if its
- capacity alarm thresholds; if the log full action is ::wrap,
- capacity threshold alarms are triggered "as if coupled to a
- guage that counts from zero to the highest capacity threshold
- value". The specification doesn't describe required behavior
- when changing from one to the other. Since the recordkeeping
- needed for each option is so different, resetting may be the
- only realistic option --- at least that way we won't be using
- one set of data for the other.
-
- * orbsvcs/orbsvcs/Log_i.cpp:
-
- The current revision of the log service spec is inconsistent
- whether an AttributeValueChange event should generated only if
- the attribute's value actually changed or whether it should be
- sent unconditionally. TAO's log service implements the former,
- which I believe to be the most useful behavior. Nevertheless,
- I've filed a defect report with the OMG for clarification. I've
- also added a block comment to this effect before each instance
- to alert future maintainers.
-
-Sat Jan 21 01:02:46 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log_i.cpp:
- * orbsvcs/orbsvcs/Log_i.h:
-
- Changed set_week_mask() to avoid recomputing week_intervals_,
- updating the record store, and sending an AttributeValueChange
- event if the new mask has the same value as the old.
-
- Added operator== and operator!= for many IDL generated types and
- sequences. Use them to compare old and new log attribute values
- to decide whether to send an AttributeValueChange event.
-
- * orbsvcs/orbsvcs/Log_i.cpp:
-
- Although set_week_mask() updated week_intervals_ (an optimized
- representation) from the new mask, it didn't actually save it;
- this resulted in get_week_mask() returning the original value.
-
-Fri Jan 20 17:11:49 UTC 2006 Simon McQueen <sm@prismtech.com>
-
- * tao/IIOP_Connection_Handler.cpp:
- * tao/ORB_Core.cpp:
- * tao/params.h:
- * tao/params.i:
- * tao/params.cpp:
-
- Add configuration option -ORBKeepalive to allow users to specify
- that the SO_KEEPALIVE option be set on TCP sockets.
-
- This fixes bug #2374.
-
- * docs/Options.html:
-
- Add documentation for the above.
-
-Fri Jan 20 16:30:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * docs/Options.html
- * tao/ORB_Core.cpp:
- * tao/ORB_Core.h:
- * tao/Resource_Factory.cpp
- * tao/Resource_Factory.h
- * tao/default_resource.cpp
- * tao/default_resource.h
- Fix for Bug 2373.
- Add run-time option -ORBUseLocalMemoryPool (0|1) which defaults
- to the compile time option TAO_USES_LOCAL_MEMORY_POOL.
-
-Fri Jan 20 15:30:00 UTC 2006 Simon Massey <sma@prismtech.com>
-
- * tao/CDR.cpp:
- * tao/CDR.h:
- * tao/Synch_Reply_Dispatcher.cpp:
- Fix for Bug 2372.
- Possiably unnecessary reply_cdr_.clone_from() inside
- TAO_Synch_Reply_Dispatcher::dispatch_reply() averted.
-
-Fri Jan 20 11:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AdvSlot/*:
- Added new regression from Boris Kolpackov
- <boris at dre dot vanderbilt dot edu> for a bug with PI. Not fixed
- yet, but having a regression will make finding the problem a lot
- easier
-
-Fri Jan 20 11:18:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitializer_Registry_Impl.cpp:
- Fixed bug related to the slot functionality of PICurrent, when the
- slot count is not equal to zero and there is no PICurrent yet,
- then force the creation of PICurrent by the ORB to make sure we
- don't loose the slot_count. Thanks to Boris Kolpackov
- <boris at dre dot vanderbilt dot edu> for providing the patch
-
-Thu Jan 19 02:45:48 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log_i.cpp:
-
- Call reset_capacity_alarm_threshold () in set_max_size () and
- set_capacity_alarm_thresholds () if the value is changed. If
- either the max size or the threshold list is changed, the old
- capacity index no longer makes sense.
-
- Reseting the index means that a ThresholdAlarm event will be
- sent after the next threshold is crossed. It is unclear whether
- this is the correct behavior. An argument could be made that an
- event should be sent for each threshold that has already been
- crossed given the new max size or capacity alarm threshold list.
-
- Unfortunately the current version of the specification does not
- describe what is the correct behavior.
-
-Wed Jan 18 23:35:24 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerate.
-
- * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
-
- Fix typos in symbol export header file names.
-
-Wed Jan 18 19:43:11 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/RTEventLogConsumer.h:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLogNotification.h:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
-
- Now that we use the *_Serv_Export versions of the symbol export
- macros, we need to #include "*_serv_export.h"
-
-Wed Jan 18 19:38:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Slot/*:
- Added new regression from Boris Kolpackov
- <boris at dre dot vanderbilt dot edu> for a bug with PI. Not fixed
- yet, but having a regression will make finding the problem a lot
- easier
-
-Wed Jan 18 18:41:09 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Concurrency/CC_Lock.h:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSet.h:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h:
- * orbsvcs/orbsvcs/Property/CosPropertyService_i.h:
-
- Now that we use the *_Serv_Export versions of the symbol export
- macros, we need to #include "*_serv_export.h"
-
-Wed Jan 18 13:44:07 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/RTScheduling/Current.h:
- * tao/RTScheduling/Current.cpp:
- * tests/RTScheduling/Current/Thread_Task.cpp:
- * tests/RTScheduling/DT_Spawn/Thread_Action.h:
- * tests/RTScheduling/DT_Spawn/test.cpp:
- * tests/RTScheduling/Thread_Cancel/Thread_Task.cpp:
-
- Reverted a portion of my memory leak changes. I was mistaken as
- to the reference counting.
-
- * tests/RTScheduling/VoidData/test.h:
-
- Dereference the "something" pointer as was most likely the
- original intention.
-
-Wed Jan 18 01:42:04 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * NEWS:
-
- Update for splitting ORB service libraries.
-
-Tue Jan 17 23:03:46 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
-Tue Jan 17 22:26:52 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Concurrency/CC_Lock.h:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSet.h:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h:
- * orbsvcs/orbsvcs/Log/RTEventLogConsumer.h:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLogNotification.h:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
- * orbsvcs/orbsvcs/Property/CosPropertyService_i.h:
-
- Use _Serv_ version of the symbol export macros.
-
-Tue Jan 17 20:36:35 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
- Update project to inherit from rteventlogadmin_serv.mpb ---
- rteventlogadmin.mpb now only brings in the client stubs.
-
- * orbsvcs/orbsvcs/TAO_RTEventLogAdmin.pc.in:
- * orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Serv.pc.in:
- * orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Skel.pc.in:
-
- New files, pkg-template files for RTEventLogAdmin client stub,
- servant skeleton, and service implementation libraries.
-
- * orbsvcs/orbsvcs/Log/rteventlog_serv_export.h:
- * orbsvcs/orbsvcs/Log/rteventlog_skel_export.h:
-
- New export headers for RTEventLogAdmin servant skeleton and
- service implementation libraries.
-
- * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
-
- Split the RTEventLogAdmin Service (A varient of the OMG Telecom
- Logging Service that uses TAO's Real-Time Event channels) into
- three libraries: RTEventLogAdmin, RTEventLogAdmin_Skel, and
- RTEventLogAdmin_Serv for client stubs, servant skeletons, and
- service implementation respectively.
-
-Tue Jan 17 13:31:40 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp:
-
- Changed #include to use "" instead of <>.
-
-Tue Jan 17 02:32:37 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/TAO_RTEvent.pc.in:
- * orbsvcs/orbsvcs/TAO_RTEvent_Serv.pc.in:
- * orbsvcs/orbsvcs/TAO_RTEvent_Skel.pc.in:
-
- New files, pkg-template files for RTEvent client stub,
- servant skeleton, and service implementation libraries.
-
- * orbsvcs/orbsvcs/RTEvent.mpc:
- * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
- * orbsvcs/orbsvcs/RTEvent_Skel.mpc:
-
- Added Pkgconfig_Files section for pkg-config templates.
-
-Tue Jan 17 02:21:56 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/TAO_CosEvent_Serv.pc.in:
-
- Somehow this pkg-config template was describing the
- CosNaming_Serv library.
-
-Tue Jan 17 01:50:24 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h:
-
- Change type of property_lookup_ map from Any_var to Any, similar
- to what was done for the Notify_Constraint_Visitor some time
- ago. This allows us to avoid dynamically allocating Anys in
- the constructor for increased performance and reliability.
-
- I've measured a ~10% performance boost from this change.
-
-Mon Jan 16 17:57:53 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/AV.mpc
-
- Fixed a linking error on OS X.
-
-Mon Jan 16 16:49:27 UTC 2006 Olli Savia <ops@iki.fi>
-
- * tao/AnyTypeCode/SystemExceptionA.cpp:
- * tao/Exception.h:
- * tao/RTScheduling/Current.cpp:
- * tao/SystemException.h:
- * tao/SystemException.cpp:
- * tests/RTScheduling/Scheduling_Interceptor/test_client.cpp:
- * tests/RTScheduling/Thread_Cancel/Thread_Task.cpp:
- Get rid of ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO.
- If macro THREAD_CANCELLED is defined we now simply undef it.
-
-Mon Jan 16 14:17:47 UTC 2006 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/AnyTypeCode/Any_Special_Impl_T.cpp:
-
- Delete the stored memory in _tao_decode() before calling
- demarshal_value() to avoid leaking memory.
-
- * tao/RTScheduling/Current.h:
- * tao/RTScheduling/Current.cpp:
- * tao/RTScheduling/Distributable_Thread.h:
- * tao/RTScheduling/RTScheduler_Initializer.cpp:
- * tao/RTScheduling/Request_Interceptor.h:
- * tao/RTScheduling/Request_Interceptor.cpp:
-
- Corrected various misuses of memory management.
-
- * tests/CodeSets/simple/client.cpp:
- * tests/CodeSets/simple/server.cpp:
-
- Added memory cleanup code so these tests do not contribute to
- the memory leak list.
-
- * tests/OBV/TC_Alignment/test_i.cpp:
-
- Call shutdown() on the ORB from within test_i::shutdown() instead
- of destroy(). Calling destroy() within this context is not
- allowed by CORBA 2.3.
-
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp:
-
- Call shtdown() on the ORB with a wait_for_completion of zero
- instead of 1. The later is not allowed by CORBA 2.3.
-
- * tests/Portable_Interceptors/IORInterceptor/server.cpp:
-
- This test registers a portable interceptor with the ORB. If
- destroy() is not called on the ORB the interceptor initializer
- will be leaked.
-
- * tests/Queued_Message_Test/Queued_Message_Test.cpp:
-
- The TAO_Asynch_Queued_Message needs to know if it is allocated on
- the heap in order to clean itself properly.
-
- * tests/RTScheduling/Current/Thread_Task.h:
- * tests/RTScheduling/Current/Thread_Task.cpp:
- * tests/RTScheduling/Current/test.cpp:
- * tests/RTScheduling/DT_Spawn/Thread_Action.h:
- * tests/RTScheduling/DT_Spawn/test.cpp:
- * tests/RTScheduling/Scheduler.cpp:
- * tests/RTScheduling/Scheduling_Interceptor/test_client.cpp:
- * tests/RTScheduling/Scheduling_Interceptor/test_server.cpp:
- * tests/RTScheduling/Thread_Cancel/Thread_Task.cpp:
- * tests/RTScheduling/Thread_Cancel/test.cpp:
- * tests/RTScheduling/VoidData/test_client.cpp:
-
- Corrected various misuses of memory management.
-
-Mon Jan 16 05:51:14 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * orbsvcs/examples/ImR/Combined_Service/test.cpp (assertTrue):
- Make sure to #include <string> so that "std::" makes sense.
- Thanks to Ian Zagorskih <ianzag at megasignal dot com> for this
- fix. This fixes bugid 2362.
-
-Sun Jan 15 19:18:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1869_Regression/client.cpp:
- Fixed conversion warning
-
-Sun Jan 15 18:54:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1869_Regression/client.cpp:
- Fixed unused argument warning
-
-Sun Jan 15 05:44:45 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Concurrency_Service/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am:
- * orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am:
- * orbsvcs/tests/AVStreams/Component_Switching/Makefile.am:
- * orbsvcs/tests/AVStreams/Full_Profile/Makefile.am:
- * orbsvcs/tests/AVStreams/Latency/Makefile.am:
- * orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am:
- * orbsvcs/tests/AVStreams/Multicast/Makefile.am:
- * orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am:
- * orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am:
- * orbsvcs/tests/AVStreams/Pluggable/Makefile.am:
- * orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am:
- * orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am:
- * orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am:
- * orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am:
- * orbsvcs/tests/Concurrency/Makefile.am:
- * orbsvcs/tests/Property/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/tests/Property/Property.mpc:
-
- Update project to inherit from property_serv.mpb, as this
- test uses a collocated concurrency service --- property.mpb
- now only brings in the client stubs.
-
- * orbsvcs/Concurrency_Service/Concurrency_Service.mpc:
-
- Update project to inherit from concurrency_serv.mpb, as this
- test uses a collocated concurrency service --- concurrency.mpb
- now only brings in the client stubs.
-
- * orbsvcs/orbsvcs/TAO_CosConcurrency.pc.in:
- * orbsvcs/orbsvcs/TAO_CosConcurrency_Serv.pc.in:
- * orbsvcs/orbsvcs/TAO_CosConcurrency_Skel.pc.in:
-
- Split TAO_CosConcurrency.pc.in pkg-config template into one for
- each library.
-
- * orbsvcs/orbsvcs/Concurrency/concurrency_serv_export.h:
- * orbsvcs/orbsvcs/Concurrency/concurrency_skel_export.h:
-
- New export headers for CosConcurrency servant skeleton and
- service implementation libraries.
-
- * orbsvcs/orbsvcs/CosConcurrency.mpc:
-
- Split CosConcurrency Service into three libraries:
- CosConcurrency, CosConcurrency_Skel, and CosConcurrency_Serv for
- client stubs, servant skeletons, and service implementation
- respectively.
-
- * orbsvcs/orbsvcs/TAO_CosProperty.pc.in:
- * orbsvcs/orbsvcs/TAO_CosProperty_Serv.pc.in:
- * orbsvcs/orbsvcs/TAO_CosProperty_Skel.pc.in:
-
- Split TAO_CosProperty.pc.in pkg-config template into one for
- each library.
-
- * orbsvcs/orbsvcs/Property/property_serv_export.h:
- * orbsvcs/orbsvcs/Property/property_skel_export.h:
-
- New export headers for CosProperty servant skeleton and service
- implementation libraries.
-
- * orbsvcs/orbsvcs/CosProperty.mpc:
-
- Split CosProperty Service into three libraries:
- CosProperty, CosProperty_Skel, and CosProperty_Serv for client
- stubs, servant skeletons, and service implementation
- respectively.
-
-Sun Jan 15 05:35:57 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
- * orbsvcs/tests/InterfaceRepo/Makefile.am:
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/Makefile.am:
-
- Added autoconf build support for this new test.
-
-Sat Jan 14 23:44:39 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Changed TAO_Log_i::set_capacity_alarm_thresholds() to compare
- the new threshold list against the old. If they're the same,
- we don't send a change notification.
-
- Added operator== and operator!= for DsLogAdmin::
- CapacityAlarmThresholdList.
-
-Sat Jan 14 16:29:47 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/TAO_CosEvent.pc.in:
- * orbsvcs/orbsvcs/TAO_CosNaming.pc.in:
- * orbsvcs/orbsvcs/TAO_CosTrading.pc.in:
- * orbsvcs/orbsvcs/TAO_DsLogAdmin.pc.in:
- * orbsvcs/orbsvcs/TAO_ETCL.pc.in:
-
- Changed to Require TAO_AnyTypeCode.
-
-Sat Jan 14 09:35:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/ExceptionHolder_i.h:
- Fixed casing of include
-
-Fri Jan 13 13:24:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1869_Regression/*:
- Added this regression to cvs, no fix yet and regression could
- be improved more to give more output to the user
-
-Fri Jan 13 12:49:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/ExceptionHolder_i.{h,cpp}:
- * tao/Messaging/Messaging_ORBInitializer.{h,cpp}:
- Added a OBV Factory for the ExceptionHolder. At the moment we use
- AMI with collocation disabled the ExceptionHolder is marshaled
- and then tried to be demarshaled and then we need an OBV factory.
- For system exceptions things work fine now, for user exceptions
- always an UNKNOWN exception occurs in the _excep method, the
- meta data which user exceptions we could throw is not available
- in the current callstack so we just can't recreate the correct
- user exception, have to see how we could fix that but
- this is at least a good step in the direction. This only works
- for the new AMI mapping. This is part of the fix for bugzilla
- bug 2350. Thanks to Alan Stokes <alan at alanstokes dot org dot uk>
- for reporting this.
-
-Fri Jan 13 12:30:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/AMI/simple_client.cpp:
- Print out the exception when we get a not expected exception
-
-Fri Jan 13 11:43:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Valuetype/ValueBase.cpp:
- When no OBV Factory is found, throw a MARSHAL exception with
- minor code 1 and completed MAYBE. This fixes bugzilla bug
- 2354
-
-Fri Jan 13 04:57:20 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp:
-
- Changed to #include "Thread_Lane_Resources.h". This was missed
- in this change:
-
- Thu Jan 12 00:31:27 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- because I didn't have SSL enabled at the time.
-
-Thu Jan 12 19:27:12 UTC 2006 Tim Bradley <bradley_t@ociweb.com>
-
- * tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp
- * tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp
-
- The files listed above were modified to fix a problem that was
- observed in two similar tests. The original problem was observed
- to occur when the test application was shutting down, and is not
- 100% repeatable. It is theorized that a race condition in the
- existing test code, causing the tests to sometimes succeed.
-
- When the test applications did fail, some platforms caused the
- message "pure virtual method called" to be printed to standard
- error. A core file, created using Linux (FC3), showed a somewhat
- corrupt stack trace pointing to the implementation of the
- shutdown() operation in the Visual_i (servant) class (test_i.cpp).
-
- Both tests are very similar, and the following description applies
- to both. Note that there are details not being described (such
- as the Portable Interceptor usage), but are not important to the
- problem that was fixed (hopefully).
-
- The test is a "collocation" (thru_poa) test, consisting of one
- application/executable. A single IDL interface (Visual)
- is declared, and a servant class (Visual_i) is defined that
- implements the interface.
-
- The test application creates two active objects (ClientTask and
- ServerTask), and two ORBs. Each active object is given its own
- ORB to use, and then each is activated in a separate thread.
- The "mainline" thread waits until both of the task threads complete,
- performs the expected vs. actual results comparison, and then exits.
-
- The ServerTask::svc() does the following:
-
- - Obtain the RootPOA
- - Create/activate the Visual_i servant object
- - Save the IOR to a file
- - Run the (server) ORB event loop.
- - Destroy the RootPOA
- - Destroy the (server) ORB.
-
- The ClientTask::svc() does the following:
-
- - Read/convert/narrow the server-side's IOR file into a
- "Visual" object reference (using the ClientTask's ORB).
- - Invoke each of the operations on the (Visual) object reference.
- - Invoke the "shutdown" operation on the (Visual) object reference.
-
- The problem lies with the servant's (Visual_i) implementation of
- the "shutdown" operation. The IDL interface, Visual, declares the
- "shutdown" operation to be a "oneway" operation. The
- Visual_i::shutdown() method is implemented to invoke
- "shutdown(false)" on the (server) ORB. This is a rather common
- approach taken by many other TAO tests, but the approach doesn't
- work here because the servant object is collocated (thru_poa).
-
- The "oneway" operations do not work the same way under collocated
- versus remote request contexts. A collocated oneway request gets
- treated as if it were a synchronous request, for it is the client's
- "requesting thread" that carries out the entire dispatching and
- invocation of the appropriate method on the collocated servant
- object. Control is not returned to the client's requesting thread
- until the request is completely finished.
-
- So, the steps that lead up to the problem in the tests is that
- the ClientTask's thread is the thread that ends up invoking
- shutdown() on the (server) ORB. At some point soon afterwards,
- and before the ClientTask's thread has been given back control,
- the (server) ORB event loop being run in the ServerTask completes.
- This causes the ServerTask thread to continue on in its logic,
- which is to destroy the (server) RootPOA, destroy the (server) ORB,
- and then go away (the ServerTask thread, that is). Meanwhile,
- the ClientTask's thread left executing a method in an object that
- has been destroyed. When the stack is unwound, bad things happen,
- and a segmentation fault, with a somewhat corrupt stack trace
- is produced.
-
- The fix to the tests was to stop destroying the (server) ORB
- in the ServerTask thread. Instead, the application mainline code
- was modified (Collocated_Test.cpp) to destroy the (server) ORB
- after both the ServerTask and the ClientTask threads have
- completed.
-
-
-Thu Jan 12 11:33:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
- Replaced some return 0, with return false
-
-Thu Jan 12 11:08:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO-INSTALL.html:
- Small updates
-
-Thu Jan 12 10:28:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/PluggableUDP/tests/SimplePerformance/server.cpp:
- * examples/PluggableUDP/tests/SimplePerformance/client.cpp:
- * performance-tests/Cubit/TAO/IDL_Cubit/client.cpp:
- * performance-tests/Cubit/TAO/IDL_Cubit/server.cpp:
- * performance-tests/Cubit/TAO/MT_Cubit/server.cpp:
- * performance-tests/Cubit/TAO/MT_Cubit/client.cpp:
- In rtp model don't do main redefinition
-
-Thu Jan 12 09:54:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Latency/DII/client.cpp:
- * performance-tests/Sequence_Latency/DII/client.cpp:
- Added include of AnyTypeCode/Any.h to get all operator <<
-
-Thu Jan 12 00:49:53 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/TAO_CosNotification.pc.in:
-
- Add TAO_CosEvent to Requires.
-
- * orbsvcs/orbsvcs/TAO_CosNotification_Skel.pc.in:
-
- Add TAO_CosEvent_Skel to Requires.
-
-Thu Jan 12 00:31:27 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/be/be_visitor_arg_traits.cpp:
- * TAO_IDL/be/be_visitor_home.cpp:
- * TAO_IDL/be/be_visitor_interface.cpp:
- * TAO_IDL/be/be_visitor_valuebox.cpp:
- * examples/Kokyu_dsrt_schedulers/Task_Stats.inl:
- * examples/RTCORBA/Activity/Task_Stats.inl:
- * orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp:
- * orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.cpp:
- * orbsvcs/orbsvcs/IOR_Multicast.cpp:
- * orbsvcs/orbsvcs/Shutdown_Utilities.cpp:
- * orbsvcs/orbsvcs/AV/TCP.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp:
- * orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/Options.h:
- * orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp:
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h:
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
- * orbsvcs/orbsvcs/Notify/Random_File.cpp:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.cpp:
- * orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp:
- * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/lib/Activation_Manager.h:
- * orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp:
- * orbsvcs/tests/Notify/lib/Task_Stats.inl:
- * tao/Any_Insert_Policy_T.h:
- * tao/ORB_Table.inl:
- * tao/WrongTransactionC.cpp:
- * tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl:
- * tao/Codeset/UTF16_BOM_Factory.cpp:
- * tao/Codeset/UTF8_Latin1_Factory.cpp:
-
- On systems where ACE_TEMPLATES_REQUIRE_SOURCE is not defined,
- template implementation files (*_T.cpp) are not #included by the
- corresponding template header file (*_T.h). So headers that had
- been implicitly #included via the template implementation file,
- may now need to be #included explicitly.
-
- This change explicitly #includes those headers (most commonly
- ace/Log_Msg.h and ace/Auto_Ptr.h). Now TAO can be built with
- autoconf on Solaris using the Sun Studio C++ compiler.
-
- Thanks to Vladimir Panov for reporting this problem and
- providing the initial patch.
-
-Tue Jan 10 19:38:49 UTC 2006 Scott Harris <harris_s@ociweb.com>
-
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp:
-
- Fix VC++ v6.0 compile error and conform to ACE coding standards.
-
-Tue Jan 10 19:26:58 UTC 2006 Wallace Zhang <zhangw@ociweb.com>
-
- * tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp:
- * tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp:
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp:
-
- On behalf of Tim Bradley (bradley_t@ociweb.com), applying these
- changes to resolve the failure of the two tests.
-
-Tue Jan 10 10:16:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2349_Regression/server.cpp:
- Added missign return
-
-Mon Jan 9 23:33:10 UTC 2006 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/tests/Notify/lib/common.h:
-
- Correcting a build problem due to the wrong placement of an
- export modifier in the function's declaration.
-
-Mon Jan 9 13:51:05 MST 2006 Scott Harris <harris_s@ociweb.com>
-
- * orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp:
- * orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp:
-
- Fixed an Interface Repository inheritance bug.
- Thanks to Bryan Cassell <BryanCassell@iti-team.com> for identifying
- the problem.
- Thanks to Jeff Parsons <j.parsons@vanderbilt.edu> for reviewing
- the changes.
-
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.mpc:
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/README:
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp:
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl:
- * orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.idl:
-
- An automated test of the bug.
-
-Mon Jan 9 16:20:05 UTC 2006 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/tests/Notify/lib/common.cpp:
-
- Correcting a build problem due to an unnecessary export in the
- function's definition.
-
-Mon Jan 9 13:47:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2349_Regression/*:
- Added regression for this test. Not fixed yet, just to make
- clear that we have this bug, thanks to Chad Elliot
- <elliott_c at ociweb dot com> for creating this regression
- test.
-
-Mon Jan 9 13:11:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/Security/SSLIOP-INSTALL.html:
- Updated this file, update references to local files instead
- of webbased and refer to ACE-INSTALL.html for how to build
- ACE_SSL
-
-Mon Jan 9 09:26:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Valuetype/ValueFactory_Map.h:
- No need to export this class from the Valuetype library
-
-Mon Jan 9 08:59:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/Factory/client.cpp:
- Extended this test to check if we get a marshal exception with
- minor code 1 when using OBV without a valuefactory registered.
- This is added for bugzilla bug 2354
-
-Mon Jan 9 08:10:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Cubit/TAO/MT_Cubit/client.cpp:
- Made this test compiling with VxWorks and pthread support
-
-Fri Jan 6 19:03:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/AMI/run_test.pl:
- Extended this test to also run the client with -ORBCollocation
- no. This will fail at this moment, this bug seems to be there
- already for a long time, not it is visible for everyone
-
- * tao/Valuetype/ValueBase.cpp:
- Use true/false instead of 0/1
-
-Fri Jan 6 18:25:18 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/tests/Notify/Blocking/Makefile.am:
- * orbsvcs/tests/Notify/Discarding/Makefile.am:
- * orbsvcs/tests/Notify/Ordering/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am:
-
- Regenerated.
-
-Fri Jan 6 16:14:56 UTC 2006 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/tests/Notify/lib/Makefile.am:
- * orbsvcs/tests/Notify/lib/common.h:
- * orbsvcs/tests/Notify/lib/common.cpp:
-
- Newly created to give permanent home to previously scattered and
- duplicated functionality. Updated to use the
- ACE_[U]INT[16|32|64]_FORMAT_SPECIFIER macros. Thanks to Johnny
- Willemsen <jwillemsen@remedy.nl> for suggesting it.
-
- * orbsvcs/tests/Notify/Blocking/common.h:
- * orbsvcs/tests/Notify/Blocking/common.cpp:
- * orbsvcs/tests/Notify/Discarding/common.h:
- * orbsvcs/tests/Notify/Discarding/common.cpp:
- * orbsvcs/tests/Notify/Ordering/common.h:
- * orbsvcs/tests/Notify/Ordering/common.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/common.h:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.h:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/common.h:
- * orbsvcs/tests/Notify/performance-tests/Filter/common.cpp:
-
- Removed these files to eliminate duplication. Moved the code to
- the lib/common.{cpp|h}
-
- * orbsvcs/tests/Notify/Blocking/Blocking.mpc:
- * orbsvcs/tests/Notify/Discarding/Discarding.mpc:
- * orbsvcs/tests/Notify/Ordering/Ordering.mpc:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Seq_Multi_ETCL_Filter.mpc:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Seq_Multi_Filter.mpc:
- * orbsvcs/tests/Notify/performance-tests/Filter/Filter.mpc:
-
- Updated to remove references to common.{cpp|h}
-
- * orbsvcs/tests/Notify/Blocking/Makefile.am:
- * orbsvcs/tests/Notify/Discarding/Makefile.am:
- * orbsvcs/tests/Notify/Ordering/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am:
-
- Updated to remove references to common.{cpp|h}
-
-Fri Jan 6 12:23:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Valuetype/ValueBase.cpp:
- When no OBV Factory is found, tell in the error message for what we
- are lacking an OBV Factory.
-
-Thu Jan 5 19:56:43 2006 Michi Henning <michi@triodia.com>
-
- * End of bloatware predicted.
-
-Fri Jan 6 03:16:41 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * interop-tests/wchar/Makefile.am:
-
- Regenerated.
-
- * interop-tests/wchar/interop_wchar.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Fri Jan 6 02:34:55 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
-
- Moved static const definitions out of class declaration as VC6
- doesn't support this. Thanks to Wallace Zhang for the initial
- patch for Notify Service, which I've adapted for the Logging
- Service.
-
-Fri Jan 6 01:57:00 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/ior_corbaloc/Makefile.am:
-
- Regenerated.
-
- * examples/ior_corbaloc/ior_corbaloc.mpc:
-
- Changed client and corbaname client projects not to inherit
- from portableserver. These are pure clients.
-
- Changed corbaname client project to not add status_i.cpp to
- Source Files section. It's not part of the client.
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
- * examples/ior_corbaloc/corbaname_client.cpp
-
- Changed to #include "corbanameC.h" instead of
- "ior_corbaloc_client_i.h", which is actually part of the
- client project.
-
-Thu Jan 5 15:50:47 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/Simple/bank/Makefile.am:
- * examples/Simple/chat/Makefile.am:
- * examples/Simple/echo/Makefile.am:
- * examples/Simple/grid/Makefile.am:
- * examples/Simple/time/Makefile.am:
-
- Regenerated.
-
- * examples/Simple/bank/bank.mpc:
- * examples/Simple/chat/chat.mpc:
- * examples/Simple/echo/echo.mpc:
- * examples/Simple/grid/grid.mpc:
- * examples/Simple/time/time.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Thu Jan 5 15:44:15 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Release:
-
- Add TAO/m4 subdirectory to CONTROLLED_FILES.
-
-Thu Jan 5 10:29:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/AMI/simple_client.cpp:
- Small layout fixes
-
- * tests/AMI/client.cpp:
- Use prefix decrement
-
-Thu Jan 5 09:52:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/IFR_Service/be_init.cpp:
- Fixed 64bit conversion warnings
-
-Wed Jan 4 21:27:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Changed "add-log-time-format" to a really ugly lambda expression
- that formats changelog timestamps in UTC and works with both GNU
- Emacs and XEmacs.
-
-Wed Jan 4 11:08:58 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/ast/ast_expression.cpp:
-
- Fix cut-n-pasto where unsigned long longs / long longs were
- compared with a floating point zero literal. This should be
- benign, but triggers a VC6 bug.
-
-Wed Jan 4 09:54:01 2006 David Giovannini <giovannd@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/Activator_Loader.cpp:
- * orbsvcs/ImplRepo_Service/Activator_NT_Service.cpp:
- * orbsvcs/ImplRepo_Service/Activator_Options.h:
- * orbsvcs/ImplRepo_Service/Activator_Options.cpp:
- * orbsvcs/ImplRepo_Service/Adapter_Activator.cpp:
- * orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.h:
- * orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.cpp:
- * orbsvcs/ImplRepo_Service/Forwarder.cpp:
- * orbsvcs/ImplRepo_Service/INS_Locator.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Activator.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Locator.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Locator.idl:
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
- * orbsvcs/ImplRepo_Service/Iterator.cpp:
- * orbsvcs/ImplRepo_Service/Locator_Loader.h:
- * orbsvcs/ImplRepo_Service/Locator_Loader.cpp:
- * orbsvcs/ImplRepo_Service/Locator_NT_Service.cpp:
- * orbsvcs/ImplRepo_Service/Locator_Options.h:
- * orbsvcs/ImplRepo_Service/Locator_Options.cpp:
- * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
- * orbsvcs/ImplRepo_Service/Locator_XMLHandler.h:
- * orbsvcs/ImplRepo_Service/Locator_XMLHandler.cpp:
- * orbsvcs/ImplRepo_Service/Server_Info.cpp:
- * orbsvcs/ImplRepo_Service/tao_imr_i.cpp:
-
- Corrected white-space to match ACE/TAO guidelines.
- Adding a const to an int in Imr_Locator_i.cpp.
- Changing a command line behavior for defualt activator
- in tao_imr_i.cpp.
-
-Tue Jan 3 21:34:30 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Add "indent-tabs-mode: nil" to Local Variables at end of file.
- Untabify.
- Delete-trailing-whitespace.
-
-Tue Jan 3 11:27:56 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/OBV/Typed_Events/Makefile.am:
- * examples/POA/DSI/Makefile.am:
- * examples/POA/Default_Servant/Makefile.am:
- * examples/POA/Forwarding/Makefile.am:
- * examples/PluggableUDP/tests/Basic/Makefile.am:
- * examples/PluggableUDP/tests/Performance/Makefile.am:
- * examples/PluggableUDP/tests/SimplePerformance/Makefile.am:
- * examples/Quoter/Makefile.am:
-
- Regenerated.
-
- * examples/OBV/Typed_Events/Typed_Events.mpc:
- * examples/POA/DSI/POA_DSI.mpc:
- * examples/POA/Default_Servant/POA_Default_Servant.mpc:
- * examples/POA/Forwarding/POA_Forwarding.mpc:
- * examples/PluggableUDP/tests/Basic/Basic.mpc:
- * examples/PluggableUDP/tests/Performance/Performance.mpc:
- * examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc:
- * examples/Quoter/Quoter.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Tue Jan 3 10:39:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2345_Regression/server.cpp:
- Fixed unused variable warning
-
-Mon Jan 2 18:45:12 UTC UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2345_Regression/server.cpp:
- Fixed implicit conversion warning
-
-Mon Jan 2 15:21:27 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp:
- * orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp:
-
- Fixed a bug in the describe_interface() API operation that occurs
- when an interface has one or more parents. Thanks to Scott Harris
- <harris_s@ociweb.com> for reporting the problem.
-
-Mon Jan 2 14:12:15 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/tao_idl.cpp:
- * TAO_IDL/driver/drv_args.cpp:
- * TAO_IDL/driver/drv_preproc.cpp:
- * TAO_IDL/include/drv_extern.h:
- * TAO_IDL/include/idl_global.h:
- * TAO_IDL/util/utl_global.cpp:
-
- - Frontend changes necessary to support a backend option
- for the CoSMIC IDL importer that passes a directory
- name instead of a list of IDL files. This option is
- not available for any other backends and should not
- affect their behavior.
-
- - Added a patch submitted by Ken Sedgwick <ken+5a4@bonsai,com>
- that fixes a bug in the functioning of TAO_IDL_INCLUDE_DIR.
-
-Sun Jan 1 10:50:39 2006 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp (is_alive):
- Fixed a couple of bugs reported by Yariv Tal
- <yariv_tal2003@hotmail.com>. This fixes bugid 2347.
-
-Fri Dec 30 15:36:04 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/Event_Comm/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am:
- * examples/Logging/Makefile.am:
-
- Regenerated.
-
- * examples/Event_Comm/Event_Comm.mpc:
- * examples/Kokyu_dsrt_schedulers/fp_example/fp_example.mpc:
- * examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc:
- * examples/Kokyu_dsrt_schedulers/muf_example/muf_example.mpc:
- * examples/Logging/Logging.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Fri Dec 30 16:15:24 2005 Wallace Zhang <zhangw@ociweb.com>
-
- * NEWS: Updated information for the wchar refactoring work.
-
-Wed Dec 30 14:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp:
- * tests/MT_Timeout/server.cpp:
- * tests/Crash_On_Write/server.cpp:
- Fixed compile error
-
-Wed Dec 30 12:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2345_Regression/*:
- Added regression for bug 2345, this is not fixed yet, just
- adding the regression first. Thanks to Yariv Tal
- <yariv_tal2003 at hotmail dot com> for reporting this
- problem and delivering this simple regression
-
-Thu Dec 29 11:43:02 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/Content_Server/AMI_Iterator/Makefile.am
- * examples/Content_Server/AMI_Observer/Makefile.am
- * examples/Content_Server/SMI_Iterator/Makefile.am
-
- Regenerated.
-
- * examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc:
- * examples/Content_Server/AMI_Observer/AMI_Observer.mpc:
- * examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Thu Dec 29 11:26:45 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/tests/Bug_2316_Regression/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Thu Dec 29 09:43:07 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/PI/PI_PolicyFactory.cpp:
- * tao/PI/ProcessingModePolicy.h:
- * tao/PI/ProcessingModePolicy.pidl:
-
- Took care of some TBD comments. The TBD in the .pidl has been
- changed into a Doxygen @todo.
-
-Thu Dec 29 07:29:38 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * NEWS:
-
- Added Comment regarding new Endpoint Selector.
-
-Thu Dec 29 06:47:37 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/Strategies/OC_Endpoint_Selector_Factory.cpp:
-
- Wrapped plain text string in ACE_TEXT () to avoid problems on
- wide-character builds.
-
-Wed Dec 28 18:20:23 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/Callback_Quoter/Makefile.am:
-
- Regenerated.
-
- * examples/Callback_Quoter/Callback_Quoter.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Wed Dec 28 17:07:23 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/AMH/Sink_Server/Makefile.am:
- * examples/Buffered_AMI/Makefile.am:
- * examples/Buffered_Oneways/Makefile.am:
-
- Regenerated.
-
- * examples/AMH/Sink_Server/Sink_Server.mpc:
- * examples/Buffered_AMI/Buffered_AMI.mpc:
- * examples/Buffered_Oneways/Buffered_Oneways.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Wed Dec 28 13:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Native_Exceptions/Native_Exceptions.mpc:
- * tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc:
- Removed setting of idlflags, native exceptions are the default
- now and the overruling of the idlflags gives problem when
- trying to extend TAO_IDLFLAGS from the platform_macros.GNU
- file
-
-Wed Dec 28 11:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Cubit/TAO/MT_Cubit/client.cpp:
- Made this test compiling again with VxWorks 6.1, the WIND_TCB
- struct has been changed and shouldn't be used directly anymore
-
-Wed Dec 28 10:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/RTScheduling/Synch_i.cpp:
- Cast number of seconds explicitly to time_t
-
-Wed Dec 28 10:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp:
- Applied a workaround for Borland to not give argument not used
- warnings. This problem has been reported to Borland to get it
- fixed in the next version.
-
-Wed Dec 28 09:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp:
- Fixed 64bit conversion warning
-
-Wed Dec 28 09:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h:
- No need to derive explicitly from ServantBase
-
-Wed Dec 28 09:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * utils/catior/catior.cpp:
- * tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp:
- * tao/PortableServer/Root_POA.cpp:
- * tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp:
- * tao/PortableServer/Object_Adapter.cpp:
- Added missing include
-
-Wed Dec 28 08:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Strategies/Optimized_Connection_Endpoint_Selector.cpp:
- Removed incorrect ; at end of method
-
-Tue Dec 27 22:50:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/CosTrading.mpc:
-
- Fix typo in last change.
-
-Tue Dec 27 18:17:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/CosTrading.mpc:
-
- Tweak so trading_serv_export.h is installed.
-
-Tue Dec 27 17:21:54 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/CosNotification.mpc:
-
- Tweak so notify_serv_export and notify_persist_export.h are
- installed.
-
- * orbsvcs/orbsvcs/CosTime.mpc:
-
- Tweak so time_export.h is installed.
-
- * orbsvcs/orbsvcs/CosEvent.mpc:
- * orbsvcs/orbsvcs/ec_typed_events_serv.mpb:
-
- Tweak so that CEC_Defaults.h and event_serv_export.h are
- installed.
-
-Tue Dec 27 16:17:30 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/CosConcurrency.mpc:
-
- Tweak so concurrency_export.h is installed. Thanks to Vladimir
- Panov for pointing out this class of problems.
-
- * tao/Makefile.am:
-
- Regenerated due to new Optimized Connection Endpoint Selector
- feature. C.f.:
-
- Tue Dec 27 08:22:42 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
-Tue Dec 27 15:33:28 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
-
- Remove DISTCLEANFILES definitions. We no longer ship
- tao-config and tao-config.1.
-
- * Makefile.am:
-
- Build examples and interop-tests subdirectories.
-
- * Makefile.am:
-
- I accidently clobbered this file by checking in the MPC
- generated version. Restore to revision 1.13, the last
- known good version.
-
-Tue Dec 27 15:11:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Release
-
- Add aclocal.m4 to RELEASE_FILES. Thanks to Vladimir Panov
- < gbr at voidland dot org >.
-
-Fri Dec 23 20:17:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
-
- Changed lock strategy of implicit_ids_, filterable_data_, and
- variable_header_ maps from TAO_SYNCH_MUTEX to ACE_Null_Mutex,
- since accesses to the maps are already protected at a higher
- level.
-
- Explicitly set the size of the implicit_ids_, filterable_data_,
- and variable_header_ maps to 27, 31, and 31 hash buckets
- respectively.
-
- A fixed set of 9 keys are stored in implicit_ids_. With the
- default hash_pjw() hash function, 27 buckets is the smallest
- table where each key is hashed to a unique bucket. Further
- optimizations, perhaps using a minimal perfect hash, may be
- possible.
-
- A 31 bucket hash table size was selected for filterable_data_
- and variable_header_ because a typical structured event has very
- few if any attributes, the cost of allocating default (1024 hash
- buckets) size maps outweigh any benefits of fewer hash
- collisions.
-
-Tue Dec 27 12:24:29 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
-
- Fixed botched ACLOCAL_AMFLAGS definition.
-
-Tue Dec 27 11:34:29 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * Makefile.am:
-
- Build examples subdirectory.
-
- * examples/Makefile.am:
-
- Disable building CSD_Strategy and RTScheduling subdirectories.
- These *.mpc files need major changes to support separate build
- directories. This is too risky to complete within this beta
- cycle.
-
- * performance-tests/Makefile.am:
-
- Disable building CSD_Strategy subdirectory.
- These *.mpc files need major changes to support separate build
- directories. This is too risky to complete within this beta
- cycle.
-
- * examples/Load_Balancing/Makefile.am:
- * examples/Load_Balancing_persistent/Makefile.am:
- * examples/POA/Adapter_Activator/Makefile.am:
- * examples/POA/Explicit_Activation/Makefile.am:
- * examples/POA/On_Demand_Activation/Makefile.am:
- * examples/POA/Reference_Counted_Servant/Makefile.am:
- * examples/POA/TIE/Makefile.am:
- * examples/Persistent_Grid/Makefile.am:
- * examples/Simulator/Event_Supplier/Makefile.am:
-
- Regenerated.
-
- * examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc:
- * examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc:
- * examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc:
- * examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc:
-
- Change automake specific includes definitions to to have both
- build dir and source dir relative paths.
-
- * examples/Load_Balancing/Load_Balancing.mpc:
- * examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc:
- * examples/POA/TIE/POA_TIE.mpc:
- * examples/Persistent_Grid/Persistent_Grid.mpc:
- * examples/Simulator/Event_Supplier/Event_Supplier.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Tue Dec 27 08:22:42 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Profile_Transport_Resolver.cpp:
- * tao/Profile_Transport_Resolver.h:
- * tao/Strategies/OC_Endpoint_Selector_Loader.cpp:
- * tao/Strategies/OC_Endpoint_Selector_Loader.h:
- * tao/Strategies/OC_Endpoint_Selector_Factory.cpp:
- * tao/Strategies/OC_Endpoint_Selector_Factory.h:
- * tao/Strategies/Optimized_Connection_Endpoint_Selector.cpp:
- * tao/Strategies/Optimized_Connection_Endpoint_Selector.h:
-
- A new feature requested by Homag. This feature is an
- alternative endpoint selector that improves the performance of
- connection establishment when an IOR contains unreachable
- endpoints. The two elements of this optimization are a
- connection cache lookup before attempting any connections and a
- second means for setting the connection timeout without loading
- the AMI library to use the TAO-specific connection timeout
- policy.
-
- * tests/AlternateIIOP/svc.conf:
-
- The alternate IIOP test now uses the Optimized Connection
- Endpoint Selector to speed up the selection of the correct endpoint.
-
-Tue Dec 27 09:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/FlResource_Loader.h:
- * tao/TkResource_Loader.h:
- Added missing versioning include. Thanks to
- Ken Sedgwick <ken at bonsai dot com>
-
-Tue Dec 27 09:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IORInterceptor/IORInterceptor_Details.h:
- Fixed pragma once warning
-
-Fri Dec 23 16:16:20 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add orbsvcs/tests/Bug_2316_Regression/Makefile to
- AC_CONFIG_FILES.
-
- * orbsvcs/tests/Bug_2316_Regression/Makefile.am:
-
- New file.
-
-Fri Dec 23 13:06:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h:
-
- Don't assign values to dynamically allocated Any's if the
- allocation failed.
-
- Remove rec_ member variable. The constructor extracts all
- relevant fields and adds them to property_lookup_ map.
-
- Const-qualify constructor argument.
-
-Fri Dec 23 10:47:55 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
-
- Removed unused variable.
-
-Fri Dec 23 09:09:14 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/PI/PI_ORBInitializer.h:
- * tao/PI/PI_ORBInitializer.cpp:
- * tao/PI/PI_PolicyFactory.h:
- * tao/PI/PI_PolicyFactory.cpp:
- * tao/PI/ProcessingModePolicy.h:
- * tao/PI/ProcessingModePolicy.cpp:
-
- Added the TAO versioning namespace macros.
-
-Fri Dec 23 08:50:37 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h:
-
- Fixed fuzz errors related to RefCountedServantBase and _MSC_VER >=
- 1200.
-
-Fri Dec 23 13:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/util/utl_err.cpp:
- Added include of Log_Msg.h to get ACE_ERROR. Can't reproduce
- it on my machine but it can be that because of other defines
- this file is not included implicitly. This fixes bugzilla bug
- 2342. Thanks to Dave Craig <dwcraig at qualcomm dot com> for
- reporting this.
-
-Fri Dec 23 10:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IIOP_Acceptor.cpp:
- * examples/POA/On_Demand_Loading/Servant_Manager.cpp:
- Fixed 64bit conversion warnings
-
-Fri Dec 23 10:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Native_Exceptions/Native_Exceptions.mpc:
- * tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc:
- Changed the way we change the TAO_IDL flags so that adding
- more flags from the platform_macros.GNU file works for these
- projects
-
-Fri Dec 23 10:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PI_PolicyFactory.h:
- Fixed export macros
-
-Fri Dec 23 10:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ClientRequestDetails.{h,inl}:
- * tao/PI_Server/ServerRequestDetails.{h,inl}:
- * tao/IORInterceptor/IORInterceptor_Details.{h,inl,cpp}:
- Fixed pragma once warning, removed empty destructor, not needed
-
- * tao/IORInterceptor/IORInterceptor_Details.inl:
- Removed this file, it is now empty
-
- * tao/Makefile.am:
- Updated
-
-Fri Dec 23 08:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/PI_ORBInitializer.h:
- * tao/PI/ProcessingModePolicy.h:
- Fixed export macros
-
-Thu Dec 22 16:07:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * docs/tutorials/Quoter/RT_Event_Service/Makefile.am:
- * examples/Makefile.am:
- * examples/AMH/Sink_Server/Makefile.am:
- * examples/AMI/FL_Callback/Makefile.am:
- * examples/Buffered_AMI/Makefile.am:
- * examples/Buffered_Oneways/Makefile.am:
- * examples/CSD_Strategy/ThreadPool/Makefile.am:
- * examples/CSD_Strategy/ThreadPool2/Makefile.am:
- * examples/CSD_Strategy/ThreadPool3/Makefile.am:
- * examples/CSD_Strategy/ThreadPool5/Makefile.am:
- * examples/CSD_Strategy/ThreadPool6/Makefile.am:
- * examples/Content_Server/AMI_Iterator/Makefile.am:
- * examples/Content_Server/AMI_Observer/Makefile.am:
- * examples/Content_Server/SMI_Iterator/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am:
- * examples/Load_Balancing/Makefile.am:
- * examples/Load_Balancing_persistent/Makefile.am:
- * examples/OBV/Typed_Events/Makefile.am:
- * examples/POA/DSI/Makefile.am:
- * examples/POA/Default_Servant/Makefile.am:
- * examples/POA/Forwarding/Makefile.am:
- * examples/POA/Generic_Servant/Makefile.am:
- * examples/POA/TIE/Makefile.am:
- * examples/Persistent_Grid/Makefile.am:
- * examples/PluggableUDP/tests/Basic/Makefile.am:
- * examples/PluggableUDP/tests/Performance/Makefile.am:
- * examples/PluggableUDP/tests/SimplePerformance/Makefile.am:
- * examples/Simulator/Event_Supplier/Makefile.am:
- * interop-tests/wchar/Makefile.am:
- * orbsvcs/Event_Service/Makefile.am:
- * orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am:
- * orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am:
- * orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am:
- * orbsvcs/FT_ReplicationManager/Makefile.am:
- * orbsvcs/Fault_Detector/Makefile.am:
- * orbsvcs/Fault_Notifier/Makefile.am:
- * orbsvcs/IFR_Service/Makefile.am:
- * orbsvcs/ImplRepo_Service/Makefile.am:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am:
- * orbsvcs/Naming_Service/Makefile.am:
- * orbsvcs/Notify_Service/Makefile.am:
- * orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile.am:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile.am:
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile.am:
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am:
- * orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am:
- * orbsvcs/examples/LoadBalancing/Makefile.am:
- * orbsvcs/examples/Log/RTEvent/Makefile.am:
- * orbsvcs/examples/Notify/Federation/Agent/Makefile.am:
- * orbsvcs/examples/Notify/Federation/Gate/Makefile.am:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile.am:
- * orbsvcs/examples/Notify/Subscribe/Makefile.am:
- * orbsvcs/examples/RtEC/IIOPGateway/Makefile.am:
- * orbsvcs/examples/RtEC/Kokyu/Makefile.am:
- * orbsvcs/examples/RtEC/MCast/Makefile.am:
- * orbsvcs/examples/RtEC/Schedule/Makefile.am:
- * orbsvcs/examples/RtEC/Simple/Makefile.am:
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/lib/Makefile.am:
- * orbsvcs/tests/Makefile.am:
- * orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am:
- * orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am:
- * orbsvcs/tests/AVStreams/Component_Switching/Makefile.am:
- * orbsvcs/tests/AVStreams/Full_Profile/Makefile.am:
- * orbsvcs/tests/AVStreams/Latency/Makefile.am:
- * orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am:
- * orbsvcs/tests/AVStreams/Multicast/Makefile.am:
- * orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am:
- * orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am:
- * orbsvcs/tests/AVStreams/Pluggable/Makefile.am:
- * orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am:
- * orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am:
- * orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am:
- * orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am:
- * orbsvcs/tests/Bug_2137_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2247_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2248_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2285_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2287_Regression/Makefile.am:
- * orbsvcs/tests/EC_Custom_Marshal/Makefile.am:
- * orbsvcs/tests/EC_MT_Mcast/Makefile.am:
- * orbsvcs/tests/EC_Mcast/Makefile.am:
- * orbsvcs/tests/EC_Multiple/Makefile.am:
- * orbsvcs/tests/EC_Throughput/Makefile.am:
- * orbsvcs/tests/Event/Basic/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Common/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Complex/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Simple/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am:
- * orbsvcs/tests/Event/Performance/Makefile.am:
- * orbsvcs/tests/Event/lib/Makefile.am:
- * orbsvcs/tests/FT_App/Makefile.am:
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am:
- * orbsvcs/tests/FaultTolerance/IOGR/Makefile.am:
- * orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile.am:
- * orbsvcs/tests/FtRtEvent/Makefile.am:
- * orbsvcs/tests/ImplRepo/Makefile.am:
- * orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am:
- * orbsvcs/tests/Security/Big_Request/Makefile.am:
- * orbsvcs/tests/Security/Callback/Makefile.am:
- * orbsvcs/tests/Security/Crash_Test/Makefile.am:
- * orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am:
- * orbsvcs/tests/Security/MT_SSLIOP/Makefile.am:
- * orbsvcs/tests/Security/Secure_Invocation/Makefile.am:
- * performance-tests/Makefile.am:
- * performance-tests/Anyop/Makefile.am:
- * performance-tests/Callback/Makefile.am:
- * performance-tests/Cubit/TAO/DII_Cubit/Makefile.am:
- * performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am:
- * performance-tests/Cubit/TAO/MT_Cubit/Makefile.am:
- * performance-tests/Latency/AMH_Single_Threaded/Makefile.am:
- * performance-tests/Latency/AMI/Makefile.am:
- * performance-tests/Latency/Collocation/Makefile.am:
- * performance-tests/Latency/DII/Makefile.am:
- * performance-tests/Latency/DSI/Makefile.am:
- * performance-tests/Latency/Deferred/Makefile.am:
- * performance-tests/Latency/Single_Threaded/Makefile.am:
- * performance-tests/Latency/Thread_Per_Connection/Makefile.am:
- * performance-tests/Latency/Thread_Pool/Makefile.am:
- * performance-tests/POA/Create_Reference/Makefile.am:
- * performance-tests/POA/Implicit_Activation/Makefile.am:
- * performance-tests/POA/Object_Creation_And_Registration/Makefile.am:
- * performance-tests/Protocols/Makefile.am:
- * performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile.am:
- * performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile.am:
- * performance-tests/RTCorba/Thread_Pool/Makefile.am:
- * performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am:
- * performance-tests/Sequence_Latency/AMI/Makefile.am:
- * performance-tests/Sequence_Latency/DII/Makefile.am:
- * performance-tests/Sequence_Latency/DSI/Makefile.am:
- * performance-tests/Sequence_Latency/Deferred/Makefile.am:
- * performance-tests/Sequence_Latency/Single_Threaded/Makefile.am:
- * performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am:
- * performance-tests/Sequence_Latency/Thread_Pool/Makefile.am:
- * performance-tests/Throughput/Makefile.am:
-
- Regenerated.
-
-Thu Dec 22 15:24:38 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/tao_idl.mpc:
- * docs/tutorials/Quoter/Naming_Service/Quoter_Naming_Service.mpc:
- * docs/tutorials/Quoter/Simple/Client/Quoter_Simple_Client.mpc:
- * docs/tutorials/Quoter/Simple/Impl-Repo/Quoter_Simple_Impl_Repo.mpc:
- * docs/tutorials/Quoter/Simple/ImprovedServer/Quoter_Simple_ImprovedServer.mpc:
- * docs/tutorials/Quoter/Simple/Persistent/Quoter_Simple_Persistent.mpc:
- * docs/tutorials/Quoter/Simple/Server/Quoter_Simple_Server.mpc:
- * examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc:
- * examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc:
- * examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc:
- * examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc:
- * orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc:
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc:
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc:
- * orbsvcs/examples/Notify/Federation/Agent/Agent.mpc:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc:
- * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Colocated_Roundtrip.mpc:
- * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Federated_Roundtrip.mpc:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc:
- * orbsvcs/performance-tests/RTEvent/Roundtrip/Roundtrip.mpc:
- * orbsvcs/performance-tests/RTEvent/TCP_Baseline/TCP_Baseline.mpc:
- * orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc:
- * orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc:
- * orbsvcs/tests/CosEvent/Basic/basiceventtestexe.mpb:
- * orbsvcs/tests/Event/Basic/rteventtestexe.mpb:
- * orbsvcs/tests/Event/Mcast/Complex/Complex.mpc:
- * orbsvcs/tests/Event/Mcast/Simple/Simple.mpc:
- * orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc:
- * orbsvcs/tests/Event/Performance/eventperftestexe.mpb:
- * performance-tests/Protocols/Protocols.mpc:
-
- Add automake specific blocks that either add or replace include
- paths definitions with $(srcdir) relative paths.
-
-Thu Dec 22 13:04:09 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Added BUILD_ACE_FOR_TAO automake conditional. Explicitly
- set to false (at least for now).
-
-Thu Dec 22 14:43:24 2005 Paul Calabrese <calabrese_p@ociweb.com>
-
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp:
-
- Fix some uninitialized data members.
-
-Thu Dec 22 12:38:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
-Thu Dec 22 14:13:14 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl:
-
- Made an attempt at supporting these new tests on VxWorks.
-
-Wed Dec 21 19:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/examples/Notify/Federation/federation.mwc:
- Removed this file, it causes project files with
- just different casing, which causes problems when extracting
- the zip release files under windows
-
-Thu Dec 22 10:12:33 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/PI/ProcessingModePolicyC.h:
- * tao/PI/ProcessingModePolicyC.cpp:
- * tao/PI/ProcessingModePolicyS.h:
-
- These did not show up as unknown files for the previous commit.
-
-Thu Dec 22 08:54:09 2005 Chad Elliott <elliott_c@ociweb.com>
-
- Committing these changes on behalf of Tim Bradley
- <bradley_t@ociweb.com>.
-
- The following changes were made in order to support a new
- feature that is described in the CORBA 3.1 draft specification.
- The new feature consists of adding the capability to register
- Portable Interceptors with an associated set of Policy objects.
- In addition, a new Policy was introduced: the
- PortableInterceptor::ProcessingModePolicy. This policy can be
- applied to either client request interceptors or server request
- interceptors. There are three possible ProcessingMode values:
-
- - LOCAL_AND_REMOTE (the default)
- - LOCAL_ONLY
- - REMOTE_ONLY
-
- The policy is used during the dispatching of a CORBA request.
- It comes into play for remote requests as well as collocated
- (thru-poa) requests. When the policy value is something other
- than the default value, the interception points on the
- corresponding interceptor may or may not be invoked. For the
- LOCAL_ONLY policy value, the interception points are only invoked
- on the interceptor if the request is a collocated (thru-poa)
- request. If it is a remote request, the LOCAL_ONLY policy value
- causes the interceptor to not apply to the current request.
- The REMOTE_ONLY has the opposite effect - only remote requests
- cause the interception points to be invoked in the interceptor.
-
- * tao/IORInterceptor/IORInterceptor_Details.cpp:
- * tao/IORInterceptor/IORInterceptor_Details.h:
- * tao/IORInterceptor/IORInterceptor_Details.inl:
- * tao/PI/ClientRequestDetails.cpp:
- * tao/PI/ClientRequestDetails.h:
- * tao/PI/ClientRequestDetails.inl:
- * tao/PI/PI_ORBInitializer.cpp:
- * tao/PI/PI_ORBInitializer.h:
- * tao/PI/PI_PolicyFactory.cpp:
- * tao/PI/PI_PolicyFactory.h:
- * tao/PI/ProcessingModePolicy.cpp:
- * tao/PI/ProcessingModePolicy.h:
- * tao/PI/ProcessingModePolicy.pidl:
- * tao/PI/ProcessingModePolicyC.cpp:
- * tao/PI/ProcessingModePolicyC.h:
- * tao/PI/ProcessingModePolicyS.h:
- * tao/PI_Server/ServerRequestDetails.cpp:
- * tao/PI_Server/ServerRequestDetails.h:
- * tao/PI_Server/ServerRequestDetails.inl:
-
- The files listed above have been added as part of the
- the new PI Policy support (including the new
- PI ProcessingModePolicy).
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/PI_ProcMode_Collocated.mpc:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test.idl:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h:
-
- The files listed above make up a new "collocated" test for the
- new PortableInterceptor::ProcessingModePolicy "feature".
-
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/PI_ProcMode_Remote.mpc:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.h:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.cpp:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test.idl:
- * tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h:
-
- The files listed above make up a new "remote" test for the
- new PortableInterceptor::ProcessingModePolicy "feature".
-
- * tao/PortableServer/Upcall_Wrapper.cpp:
-
- The Upcall_Wrapper class was modified to fix a bug that
- was observed while testing the new ProcessingModePolicy.
- The server request portable interceptors were being supplied
- with a ServerRequestInfo object that referenced uninitialized
- operation arguments in the collocated (thru_poa) case.
-
- * tao/PI/ClientRequestInfo.cpp:
-
- During testing of the new ProcessingModePolicy, another bug
- was observed. Client request interceptors were not getting
- the proper "result argument" (both collocated and remote cases).
- The changes made to the tao/PI/ClientRequestInfo.cpp file fixes
- this bug.
-
- * tao/ClientRequestInterceptor_Adapter.h:
- * tao/Collocated_Invocation.cpp:
- * tao/IORInterceptor_Adapter.h:
- * tao/Invocation_Base.cpp:
- * tao/Invocation_Base.h:
- * tao/Invocation_Base.inl:
- * tao/ORB_Core.cpp:
- * tao/ORB_Core.h:
- * tao/Remote_Invocation.cpp:
- * tao/ServerRequestInterceptor_Adapter.h:
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp:
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.h:
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp:
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.h:
- * tao/PI/Interceptor_List_T.cpp:
- * tao/PI/Interceptor_List_T.h:
- * tao/PI/ORBInitInfo.cpp:
- * tao/PI/ORBInitInfo.h:
- * tao/PI/ORBInitInfo.pidl:
- * tao/PI/ORBInitInfoC.cpp:
- * tao/PI/ORBInitInfoC.h:
- * tao/PI/ORBInitInfoS.h:
- * tao/PI/PI.cpp:
- * tao/PI_Server/ServerInterceptorAdapter.cpp:
- * tao/PI_Server/ServerInterceptorAdapter.h:
-
- The files listed above were modified as part of the
- changes made to support policies at PI registration-time
- and the new PI ProcessingModePolicy.
-
- * tests/Portable_Interceptors/Collocated/Dynamic/test_i.cpp:
-
- Added a sleep before the shutdown to allow the client thread to
- complete the collocated call before shutting down the ORB to avoid
- BAD_INV_ORDER exceptions on fast multi-processor machines.
-
-Thu Dec 22 14:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/Dynamic_Thread_Pool/client.cpp:
- Fixed variable not used warning
-
-Thu Dec 22 12:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/Dynamic_Thread_Pool/*.mpc:
- Shortened filename to fix fuzz error
-
-Wed Dec 21 13:06:53 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Use TAO_ENABLE_MINIMUM_CORBA macro instead of explicitly setting
- BUILD_MINIMUM_CORBA automake conditional to false.
-
- * m4/tao.m4:
-
- New file, autoconf macros for TAO-specific feature tests.
-
- Added TAO_ENABLE_MINIMUM_CORBA autoconf macro. Configuring with
- --enable-minimum-corba will set the BUILD_MINIMUM_CORBA automake
- conditional.
-
- * configure.ac:
- * Makefile.am:
-
- Look for automake macro files (*.m4) in ../m4 and ./m4.
-
-Wed Dec 21 12:08:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
-
- Changed TAO_Log_Constraint_Visitor constructor to use
- ACE_CString constructors that don't copy or take ownership of
- the string, this allows us to wrap string literals for use as
- map bindings with as little overhead as possible.
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h:
-
- Changed lock strategy of property_lookup_map_ from
- TAO_SYNCH_MUTEX to ACE_Null_Mutex, since all accesses to the map
- are already protected at a higher level.
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h:
-
- Explicitly set the size of the property_lookup_map_ to 31 hash
- buckets. A typical log record has very few if any attributes,
- the cost of allocating the default (1024 hash bucket) size map
- outweighs any benefits of fewer hash collisions.
-
-Wed Dec 21 19:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Servant_Upcall.cpp:
- No need to store the TAO_Adapter in an intermediate variable
-
- * examples/Load_Balancing_persistent/Load_Balancer_i.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp:
- Fixed 64bit conversion warning
-
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp:
- Initialise pointer with 0 and removed some debugging statements that
- appear always and don't add a value to the log
-
- * orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp:
- Removed some old comments
-
- * tao/orbconf.h:
- Did some cleanup, removed TAO_USE_SEQUENCE_TEMPLATES,
- TAO_MAXIMUM_NATIVE_TYPE_SIZE, TAO_MAX_TRANSPORT_REREAD_ATTEMPTS.
- I couldn't find these throughtout all the code.
-
-Wed Dec 21 11:03:25 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/ast/ast_expression.cpp:
- * TAO_IDL/include/ast_expression.h:
-
- If !ACE_LACKS_LONGLONG_T, perform operations on CORBA::LongLong
- and CORBA::ULongLong types using 64 bit arithmetic. Previously
- this was done with doubles (53 bit mantissa) for '+', '-', '*';
- or disallowed for the other operators.
-
- * TAO_IDL/ast/ast_expression.cpp:
- * TAO_IDL/include/ast_expression.h:
-
- Add EvalKind parameter to ::eval_bin_op and ::eval_mod_op so
- that operations can be done in terms of the given type.
-
- * TAO_IDL/ast/ast_expression.cpp:
-
- Remove handling of '%' operator in AST_Expression::eval_bin_op()
- as it is handled by AST_Expression::eval_mod_op().
-
-Wed Dec 21 18:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Trader/constraint.l:
- * orbsvcs/orbsvcs/Trader/Constraint_l.cpp:
- * tao/RTPortableServer/RT_Collocation_Resolver.cpp:
- Use true and false for booleans
-
-Wed Dec 21 18:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2328_Regression/*:
- Added new regression for bug 2328. When having a client without
- codeset support and a server with, sending multiple strings in one
- invocation caused a crash with x.4.7. A retest just before the
- release of x.4.8 proved things where fixed already, just putting
- the regression into the repo to make sure we don't get this bug
- back.
-
-Wed Dec 21 16:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Leader_Follower.cpp:
- Use prefix increment/decrement instead of postfix
-
- * tao/Object.cpp:
- Made lazy_strategy a real bool instead of an int
-
- * tao/CSD_ThreadPool/CSD_TP_Strategy.{h,inl}:
- Made num_threads a long to fix 64bit conversion warnings
-
- * tao/RTPortableServer/RT_Servant_Dispatcher.cpp:
- Initialise pointer with 0
-
- * tests/IDL_Test/array.idl:
- Added some bound array types
-
- * tests/IDL_Test/interface.idl:
- Added an empty local interface
-
- * tests/IDL_Test/sequence.idl:
- Added a sequence of local interfaces
-
- * tests/RTCORBA/Dynamic_Thread_Pool/*:
- Added new test to show dynamic thread pools with the idle timeout
- functionality
-
-Tue Dec 20 08:04:30 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO version 1.4.8 released.
-
-Fri Dec 16 18:06:27 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_global.cpp:
- * TAO_IDL/be_include/be_global.h:
- * TAO_IDL/driver/drv_args.cpp:
-
- Added missing code that sets versioned namespace opening and
- closing text.
-
- * TAO_IDL/be/be_visitor_union/any_op_ch.cpp:
-
- Fixed typo that caused generated versioned namespace to be
- reopened before it was closed.
-
- * orbsvcs/orbsvcs/AV.mpc:
- * orbsvcs/orbsvcs/CosConcurrency.mpc:
- * orbsvcs/orbsvcs/CosEvent.mpc:
- * orbsvcs/orbsvcs/CosLifeCycle.mpc:
- * orbsvcs/orbsvcs/CosLoadBalancing.mpc:
- * orbsvcs/orbsvcs/CosNaming.mpc:
- * orbsvcs/orbsvcs/CosNotification.mpc:
- * orbsvcs/orbsvcs/CosProperty.mpc:
- * orbsvcs/orbsvcs/CosTime.mpc:
- * orbsvcs/orbsvcs/CosTrading.mpc:
- * orbsvcs/orbsvcs/DsEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc:
- * orbsvcs/orbsvcs/FTORB.mpc:
- * orbsvcs/orbsvcs/FaultTolerance.mpc:
- * orbsvcs/orbsvcs/FtRtEvent.mpc:
- * orbsvcs/orbsvcs/HTIOP.mpc:
- * orbsvcs/orbsvcs/PortableGroup.mpc:
- * orbsvcs/orbsvcs/RTCosScheduling.mpc:
- * orbsvcs/orbsvcs/RTEvent.mpc:
- * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/RTSched.mpc:
- * orbsvcs/orbsvcs/RT_Notification.mpc:
- * orbsvcs/orbsvcs/SSLIOP.mpc:
- * orbsvcs/orbsvcs/Security.mpc:
- * orbsvcs/orbsvcs/Svc_Utils.mpc:
-
- Core orbsvcs stubs/skeletons must have ability to support
- versioned namespaces. IDL-capable MPC projects now inherit from
- the "tao_versioning_idl_defaults" MPC base project.
-
- * tao/CONV_FRAME.pidl:
- * tao/CharSeq.pidl:
- * tao/Current.pidl:
- * tao/Domain.pidl:
- * tao/DoubleSeq.pidl:
- * tao/FloatSeq.pidl:
- * tao/GIOP.pidl:
- * tao/IIOP.pidl:
- * tao/AnyTypeCode/AnySeq.pidl:
- * tao/AnyTypeCode/Bounds.pidl:
- * tao/AnyTypeCode/Dynamic.pidl:
- * tao/AnyTypeCode/Dynamic_Parameter.pidl:
- * tao/AnyTypeCode/ValueModifier.pidl:
- * tao/AnyTypeCode/Visibility.pidl:
- * tao/BiDir_GIOP/BiDirPolicy.pidl:
- * tao/CSD_Framework/CSD_Framework.pidl:
- * tao/CodecFactory/IOP_Codec.pidl:
- * tao/CodecFactory/IOP_Codec_include.pidl:
- * tao/DynamicAny/DynamicAny.pidl:
- * tao/IFR_Client/IFR_Base.pidl:
- * tao/IFR_Client/IFR_Basic.pidl:
- * tao/IFR_Client/IFR_Components.pidl:
- * tao/IFR_Client/IFR_Extended.pidl:
-
- Added versioned namespace related TAO_IDL command line options
- to the stub/skeleton generation documentation.
-
- * tests/Param_Test/results.h:
-
- Wrap forward declaration of class in CORBA namespace within a
- TAO versioned namespace since the core TAO library does so.
-
-Thu Dec 15 16:19:48 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_global.cpp:
- * TAO_IDL/be/be_valuetype.cpp:
- * TAO_IDL/be/be_visitor_arg_traits.cpp:
- * TAO_IDL/be/be_visitor_traits.cpp:
- * TAO_IDL/be/be_visitor_array/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_array/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_enum/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_enum/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_exception/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_exception/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_root/root.cpp:
- * TAO_IDL/be/be_visitor_root/root_ch.cpp:
- * TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_structure/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_structure/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp:
- * TAO_IDL/be/be_visitor_union/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_union/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp:
- * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp:
- * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp:
- * TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp:
- * TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp:
- * TAO_IDL/be_include/be_global.h:
- * TAO_IDL/driver/drv_args.cpp:
-
- Added ability to set "versioned" namespace opening and closing
- text. Addresses problem where applications that do not enable
- versioned namespace support in their own code need not get
- "versioned" stubs/skeletons.
-
-Tue Dec 13 12:13:26 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * COPYING: Updated this file to mention compliance issues wrt the
- new "The Energy Policy Act of 2005". Thanks to Malcolm Spence
- for providing this.
-
-Wed Dec 14 09:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Borland/README:
- Updated contact information
-
-Tue Dec 13 13:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/string_traits_base.hpp:
- Removed static from the declaration of empty to fix VxWorks warnings
-
-Tue Dec 13 12:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Notify/Discarding/notify.conf:
- Use DispatchingThreads instead of ListeningThreads, the last one
- is deprecated
-
-Tue Dec 13 12:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/examples/Notify/Subscribe/Notify_Subscribe.mpc:
- Set exename to Subscribe to match the run_test perl script
-
-Tue Dec 13 12:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/Notify_Service/Notify_Service.cpp (shutdown):
- Only unbind from the naming service when we have a valid object
- reference to it.
-
-Tue Dec 13 10:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Codeset_Manager_Factory_Base.h:
- Fixed typo in comment
-
-Tue Dec 13 09:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Shutdown_Utilities.{h,cpp}:
- The vc8 runtime seems to check wether a signal number is a valid
- one, if not it asserts. The Shutdown_Utilities where just
- calling remove_handler for all signal numbers, changed this to just
- call it for the signals we registered. This way we can end the
- orbsvcs executable with ctrl-c again.
-
-Mon Dec 12 15:20:10 2005 <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/Notify_Service/Notify_Service.mpc:
-
- Disable NT_Notify_Service project in ace_for_tao configuration.
- It depends on ace/NT_Service.*, which is currently not part of
- the ace_for_tao subset.
-
- * examples/Load_Balancing/Load_Balancing.mpc:
-
- Disable in ace_for_tao configuration. It requires ACE_DLList,
- which is not part of the ace_for_tao subset.
-
-Mon Dec 12 09:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.cpp:
- Minor formatting improvement in debug logging
-
-Sun Dec 11 17:39:54 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp:
-
- Added sleep before client call done(). This is workaround with
- the problem that some oneway requests lost when the server has
- multiple orb threads.
-
-Fri Dec 9 16:36:27 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp:
-
- Made actual_vs_expected() dump more details with the failure.
-
-Fri Dec 9 21:48:48 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tao/Array_VarOut_T.h:
- * tao/Array_VarOut_T.inl:
-
- In the TAO_Array_Forany_T<> template class:
-
- - Changed initialization values for the CORBA::Boolean
- nocopy_ member from '0' to 'false'.
-
- - Removed the 'const' qualifier from the nocopy_ member.
- This member gets assigned to in the class assignment
- operator, and because of this, tools like insure++
- complain. It's a mystery why C++ compilers don't
- complain as well. This fix closes [BUGID:2326]. Thanks
- to Brian Buesker <bbuesker@qualcomm.com> for reporting
- the problem.
-
-Thu Dec 8 16:37:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * examples/RTCORBA/Activity/Activity.mpc:
-
- Do not override "macros" variable. Add to it instead. Fixes
- problem where versioned namespace preprocessor symbols were not
- added to generated Makefiles/projects.
-
- * examples/RTCORBA/Activity/Activity.h:
- * examples/RTCORBA/Activity/Builder.h:
- * examples/RTCORBA/Activity/Job_i.h:
- * examples/RTCORBA/Activity/POA_Holder.h:
- * examples/RTCORBA/Activity/Periodic_Task.h:
- * examples/RTScheduling/Job_i.h:
- * examples/RTScheduling/POA_Holder.h:
- * examples/Simple/bank/AccountManager_i.h:
-
- Fixed versioned namespace support.
-
-Thu Dec 8 14:19:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h:
-
- Fixed versioned namespace support. The versioning macros calls
- were missing.
-
-Thu Dec 8 20:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * interop-tests/wchar/interop_wchar.mpc:
- * examples/PluggableUDP/tests/Basic/Basic.mpc:
- * examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc:
- * examples/POA/Default_Servant/POA_Default_Servant.mpc:
- * examples/POA/DSI/POA_DSI.mpc:
- * examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc:
- * examples/Content_Server/AMI_Observer/AMI_Observer.mpc:
- * examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc:
- * examples/Buffered_Oneways/Buffered_Oneways.mpc:
- * examples/Buffered_AMI/Buffered_AMI.mpc:
- Added 'after += ...' lines to files where projects share one or
- more IDL files.
-
-Thu Dec 8 13:10:42 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl:
-
- Commented the client command line output previously added for
- debugging.
-
-Thu Dec 8 07:17:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Asynch_Queued_Message.h:
- * tao/default_server.h:
- * tao/PortableServer/Operation_Table_Binary_Search.h:
-
- Fixed versioned namespace support. The versioning macros calls
- were missing.
-
-Thu Dec 8 06:54:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h:
-
- Fixed versioned namespace build errors, predominantly caused by
- forwared declarations not being placed within the appropriate
- {ACE,TAO}_{BEGIN,END}_VERSIONED_NAMESPACE_DECL block.
-
-Thu Dec 8 06:45:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/OctetSeq/OctetSeq.mpc:
- * performance-tests/Anyop/Anyop.mpc:
- * performance-tests/POA/Create_Reference/Create_Reference.mpc:
- * performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc:
- * performance-tests/POA/Object_Creation_And_Registration/Object_Creation_And_Registration.mpc:
- * performance-tests/Protocols/Protocols.mpc:
- * performance-tests/RTCorba/Thread_Pool/Thread_Pool.mpc:
-
- Disable these projects when "ace_for_tao" is enabled.
-
-Wed Dec 7 19:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp:
- Workaround for Borland is also needed for BSD2006
-
-Wed Dec 7 18:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc:
- * examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc:
- * examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc:
- * examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool5.mpc:
- * examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool6.mpc:
- Added 'after += ...' lines to files where projects share one or
- more IDL files.
-
- * examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc:
- Simplified
-
-Wed Dec 7 05:43:53 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/Connection_Timeout/Connection_Timeout.mpc:
- * tests/Hang_Shutdown/Hang.mpc:
- * tests/Param_Test/Param_Test.mpc:
-
- Disable these projects when "ace_for_tao" is enabled.
-
-Wed Dec 7 10:59:55 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp:
-
- Added more logging in test results checking to help debug the
- TP_Test_3 failure on RHEL3_Minimum build.
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h:
-
- Removed the ACE_Atomic_Op for num_callbacks_ data member since the
- CSD synchronizes the request dispatching.
-
-Wed Dec 7 17:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc:
- * examples/POA/Forwarding/POA_Forwarding.mpc:
- * examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc:
- Added 'after += ...' lines to files where projects share one or
- more IDL files.
-
-Wed Dec 7 12:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Trader/Trader.h:
- Work around for TAO_Lockable is also needed for BCB2006 Update 1
-
-Tue Dec 6 21:16:05 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h:
- * orbsvcs/tests/Notify/lib/Activation_Manager.h:
- * orbsvcs/tests/Notify/lib/Command.h:
- * orbsvcs/tests/Notify/lib/EventChannel_Command.h:
- * orbsvcs/tests/Notify/lib/Options_Parser.cpp:
- * orbsvcs/tests/Notify/lib/Options_Parser.h:
- * orbsvcs/tests/Notify/lib/Peer.h:
- * orbsvcs/tests/Notify/lib/Periodic_Consumer.h:
- * orbsvcs/tests/Notify/lib/Periodic_Supplier.h:
-
- Fixed versioned namespace build errors, predominantly caused by
- forwared declarations not being placed within the appropriate
- {ACE,TAO}_{BEGIN,END}_VERSIONED_NAMESPACE_DECL block.
-
-Tue Dec 6 14:55:41 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp:
-
- Added debug message to help debugging the problem of
- "<server_main> failed: No such file or directory".
-
-Tue Dec 6 15:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc:
- Added 'after += ...' lines to files where projects share one or
- more IDL files.
-
-Tue Dec 6 15:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Security/BiDirectional/client.cpp:
- * orbsvcs/tests/Security/BiDirectional/test_i.cpp:
- Fixed 64bit conversion warnings
-
-Tue Dec 6 08:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc:
- * examples/OBV/Typed_Events/Typed_Events.mpc:
- * examples/Load_Balancing/Load_Balancing.mpc:
- Added 'after += ...' lines to files where projects share one or
- more IDL files.
-
-Tue Dec 6 08:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Trader/Trader.h:
- Also with BDS2006 we need to export the TAO_Lockable class as
- workaround. Reported this to Borland, hopefully they will fix
- this soon
-
-Mon Dec 5 19:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2137_Regression/client.cpp:
- Added include of PI/PI.h to fix test failures in static builds
-
-Mon Dec 5 14:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/releasenotes/index.html:
- Small improvements
-
-Sun Dec 4 11:34:11 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Notify/XML_Loader.cpp
-
- Moved definition of TOPOLOGY_ID_NAME earier in the file to avoid
- undefined argument error.
-
-Sun Dec 4 11:14:45 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_helper.cpp
-
- Fixed an unused arg warning.
-
-Sat Dec 3 20:54:28 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/XML_Loader.cpp: Moved the namespace decl
- for TOPOLOGY_ID_NAME inside the VERSIONED_NAMESPACE_DECL block
- to fix broken versioned namespace builds. Thanks to Ossama for
- pointing this out.
-
-Sat Dec 3 19:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/QtTests/QtTests.mpc:
- Added anytypecode to the client project
-
-Sat Dec 3 09:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/IDL_Test/constants.idl:
- Removed the wstring constants for the time being, cause issues
- with some builds that lack wchar_t support
-
-Fri Dec 2 16:18:15 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp (DTOR):
- Add try/catch block around call to ec->destroy() because it
- seems that often in this test the EC is gone by the time
- destroy() gets called. This raises a COMM_FAILURE which now
- gets caught and noticed printed. We also now catch and print
- any exception raised in the DTOR since there's little chance of
- doing anything about it, and at least this way we get
- information.
-
-Fri Dec 2 10:26:33 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h: Added 'extern'
- declaration in here as this seems to placate the VC8 compiler's
- errors.
-
-Fri Dec 2 11:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/SSLIOP/params_dup.h:
- Added missing include of ace/pre.h
-
-Fri Dec 2 11:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1627_Regression/test.mpc:
- * tests/Bug_1551_Regression/test.mpc:
- * tests/Bug_1482_Regression/test.mpc:
- * tests/Bug_1627_Regression/Bug_1627_Regression.mpc:
- * tests/Bug_1551_Regression/Bug_1551_Regression.mpc:
- * tests/Bug_1482_Regression/Bug_1482_Regression.mpc:
- Renamed test.mpc to a more specific name to fix duplicate errors
- in the MPC generation
-
-Fri Dec 2 11:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/IDL_Test/constants.idl:
- Added several wstring constants for test
-
-Fri Dec 2 01:35:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.c:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.cpp:
-
- Reintroduced `params_dup.c' and removed `params_dup.cpp' file.
- Some C++ compiler/platform combinations cannot handle the broken
- OpenSSL function pointer conversions. Stick with a C compiler.
-
- * orbsvcs/orbsvcs/SSLIOP/params_dup.h:
-
- Include the new "ace/config-macros.h" header instead of
- "ace/config-lite.h". The former can be parsed by C compilers.
-
- * tao/TAO_Singleton_Manager.cpp:
- * tao/TAO_Singleton_Manager.h:
-
- Moved static "instance_" pointer to an anonymous namespace
- within the implementation file. Allows the friend declaration
- to be removed, in turn fixing builds that cannot handle the
- global scope qualifier prepended to that friend declaration.
-
- Removed unused "preallocated_object" static array.
-
- * tao/Versioned_Namespace.h:
-
- Update preprocessor check to use new config-macros.h specific
- include guard preprocessor symbol.
-
-Thu Dec 1 08:07:23 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * TAO-INSTALL.html: Updated this file for VxWorks.
- Thanks to Nathan Anderson <nathan dot l dot anderson at lmco dot
- com> for these suggestions.
-
-Thu Dec 1 20:17:29 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Topology_Object.h:
- * orbsvcs/orbsvcs/Notify/Topology_Object.cpp:
-
- Removed TOPOLOGY_ID from here. It should have been nmoved when
- the persistence stuff was broken into a separate library.
-
- * orbsvcs/orbsvcs/Notify/XML_Loader.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Saver.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp:
-
- Moved TOPOLOGY_ID into here since that's all that uses it.
-
-Thu Dec 1 12:08:17 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Object.h: Revert previous change as it
- apparently confused Borland BC6.
-
- * orbsvcs/orbsvcs/Notify/Topology_Object.*:
- * orbsvcs/orbsvcs/Notify/Reconnection_Registry.*:
-
- Changed manifest constants for TOPOLOGY_ID_NAME, REGISTRY_TYPE,
- RECONNECT_ID, RECONNECT_IOR, and REGISTRY_CALLBACK_TYPE from
- statics within the namespace to being declared in the namespace
- in the header, but defined in the .cpp file. This de-warns on
- OS X Tiger G++ 3.3 builds, but may also have a minor reduction
- in footprint everywhere since now there will be only one
- instance of these rather than an instance everywhere the
- relevant header gets #included.
-
-Thu Dec 1 18:10:48 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/AMH_Exceptions/AMH_Exceptions.mpc:
- * tests/AMH_Oneway/AMH_Oneway.mpc:
- * tests/AMI_Buffering/AMI_Buffering.mpc:
- * tests/Abstract_Interface/Abstract_Interface.mpc:
- * tests/Any/Recursive/RecursiveHello.mpc:
- * tests/BiDirectional/BiDirectional.mpc:
- * tests/BiDirectional_NestedUpcall/BiDir_NestedUpcall.mpc:
- * tests/Big_AMI/Big_AMI.mpc:
- * tests/Big_Oneways/Big_Oneways.mpc:
- * tests/Big_Reply/Big_Reply.mpc:
- * tests/Big_Request_Muxing/Big_Request_Muxing.mpc:
- * tests/Big_Twoways/Big_Twoways.mpc:
- * tests/Blocking_Sync_None/Blocking_Sync_None.mpc:
- * tests/Bug_1020_Basic_Regression/Bug_1020_Basic_Regression.mpc:
- * tests/Bug_1269_Regression/Bug_1269_Regression.mpc:
- * tests/Bug_1270_Regression/Bug_1270_Regression.mpc:
- * tests/Bug_1330_Regression/Bug_1330_Regression.mpc:
- * tests/Bug_1361_Regression/Bug_1361_Regression.mpc:
- * tests/Bug_1476_Regression/Bug_1476_Regression.mpc:
- * tests/Bug_1482_Regression/test.mpc:
- * tests/Bug_1495_Regression/Bug_1495.mpc:
- * tests/Bug_1551_Regression/test.mpc:
- * tests/Bug_1568_Regression/Bug_1568_Regression.mpc:
- * tests/Bug_1627_Regression/test.mpc:
- * tests/Bug_2174_Regression/Bug_2174_Regression.mpc:
- * tests/Bug_2183_Regression/Bug_2183_Regression.mpc:
- * tests/Bug_2234_Regression/Bug_2234_Regression.mpc:
- * tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/CSD_TP_Test_Dynamic.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_Static/CSD_TP_Test_Static.mpc:
- * tests/Cache_Growth_Test/Cache_Growth_Test.mpc:
- * tests/CallbackTest/CallbackTest.mpc:
- * tests/Client_Leaks/Client_Leaks.mpc:
- * tests/Collocation/Collocation.mpc:
- * tests/Connect_Strategy_Test/Connect_Strategy_Test.mpc:
- * tests/Connection_Purging/Connection_Purging.mpc:
- * tests/Crash_On_Write/Crash_On_Write.mpc:
- * tests/Crashed_Callback/Crashed_Callback.mpc:
- * tests/DLL_ORB/DLL_ORB.mpc:
- * tests/DSI_Gateway/DSI_Gateway.mpc:
- * tests/Explicit_Event_Loop/Explicit_Event_Loop.mpc:
- * tests/Exposed_Policies/Exposed_Policies.mpc:
- * tests/FL_Cube/FL_Cube.mpc:
- * tests/Faults/Faults.mpc:
- * tests/File_IO/File_IO.mpc:
- * tests/Forwarding/Forwarding.mpc:
- * tests/Hang_Shutdown/Hang.mpc:
- * tests/Hello/Hello.mpc:
- * tests/ICMG_Any_Bug/Hello.mpc:
- * tests/IPV6/IPV6_Hello.mpc:
- * tests/InterOp-Naming/InterOp-Naming.mpc:
- * tests/Leader_Followers/Leader_Followers.mpc:
- * tests/LongUpcalls/LongUpcalls.mpc:
- * tests/MProfile/MProfile.mpc:
- * tests/MProfile_Connection_Timeout/MProfile_Connection_Timeout.mpc:
- * tests/MProfile_Forwarding/MProfile_Forwarding.mpc:
- * tests/MT_BiDir/MT_BiDir.mpc:
- * tests/MT_Client/MT_Client.mpc:
- * tests/MT_Server/MT_Server.mpc:
- * tests/Multiple/Multiple.mpc:
- * tests/Multiple_Inheritance/Multiple_Inheritance.mpc:
- * tests/Muxed_GIOP_Versions/Muxed_GIOP_Versions.mpc:
- * tests/Muxing/Muxing.mpc:
- * tests/Native_Exceptions/Native_Exceptions.mpc:
- * tests/NestedUpcall/MT_Client_Test/MT_Client_Test.mpc:
- * tests/NestedUpcall/Triangle_Test/TT.mpc:
- * tests/Nested_Event_Loop/Nested_Event_Loop.mpc:
- * tests/No_Server_MT_Connect_Test/No_Server_Connect_Test.mpc:
- * tests/OBV/Any/OBV_Any.mpc:
- * tests/OBV/Factory/OBV_Factory.mpc:
- * tests/OBV/Forward/OBV_Forward.mpc:
- * tests/OBV/Supports/Supports_Test.mpc:
- * tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc:
- * tests/OBV/ValueBox/valuebox.mpc:
- * tests/Object_Loader/Object_Loader.mpc:
- * tests/Objref_Sequence_Test/Objref_Sequence_Test.mpc:
- * tests/OctetSeq/OctetSeq.mpc:
- * tests/Oneway_Buffering/Oneway_Buffering.mpc:
- * tests/Oneways_Invoking_Twoways/Oneways_Invoking_Twoways.mpc:
- * tests/POA/Persistent_ID/Persistent_ID.mpc:
- * tests/Param_Test/Param_Test.mpc:
- * tests/Portable_Interceptors/AMI/PI_AMI.mpc:
- * tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc:
- * tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc:
- * tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc:
- * tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc:
- * tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc:
- * tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc:
- * tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc:
- * tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc:
- * tests/QtTests/QtTests.mpc:
- * tests/RTCORBA/Banded_Connections/RTCORBA_Banded_Conn.mpc:
- * tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc:
- * tests/RTCORBA/Client_Protocol/RTCORBA_Client_Protocol.mpc:
- * tests/RTCORBA/Diffserv/RTCORBA_Diffserv.mpc:
- * tests/RTCORBA/Explicit_Binding/RTCORBA_Explicit_Binding.mpc:
- * tests/RTCORBA/Persistent_IOR/RTCORBA_Persistent_IOR.mpc:
- * tests/RTCORBA/Policy_Combinations/RTCORBA_Policy_Combinations.mpc:
- * tests/RTCORBA/Priority_Inversion_With_Bands/Priority_Inversion_With_Bands.mpc:
- * tests/RTCORBA/Profile_And_Endpoint_Selection/PaE_Selection.mpc:
- * tests/RTCORBA/Server_Declared/RTCORBA_Server_Declared.mpc:
- * tests/RTCORBA/Server_Protocol/RTCORBA_Server_Protocol.mpc:
- * tests/RTCORBA/Thread_Pool/RTCORBA_Thread_Pool.mpc:
- * tests/RTScheduling/Scheduling_Interceptor/Scheduler_Interceptor.mpc:
- * tests/Reliable_Oneways/Reliable_Oneways.mpc:
- * tests/Server_Connection_Purging/Server_Connection_Purging.mpc:
- * tests/Server_Leaks/Server_Leaks.mpc:
- * tests/Single_Read/Single_Read.mpc:
- * tests/Smart_Proxies/Smart_Proxies.mpc:
- * tests/Stack_Recursion/Stack_Recursion.mpc:
- * tests/Strategies/Strategies.mpc:
- * tests/Timed_Buffered_Oneways/Timed_Buffered_Oneways.mpc:
- * tests/Timeout/Timeout.mpc:
- * tests/Two_Objects/Two_Objects.mpc:
- * tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc:
- * tests/Xt_Stopwatch/Xt_Stopwatch.mpc:
-
- Added 'after += ...' lines to files where projects share one or
- more IDL files. This change will order the builds and eliminate
- concurrency problems in VC8 builds. This is a temporary solution
- until there is time to apply J.T. Conklin's <jtc@acorntoolworks.com>
- approach of creating a separate project in each file that just
- executes the IDL compiler on the shared files, and ordering all
- other projects that build the resulting generated files to
- come after this step.
-
-Thu Dec 1 16:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/Thread_Pool.cpp:
- Fixed bug in thread pool id calculation
-
-Thu Dec 1 16:02:36 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/MT_Timeout/MT_Timeout.mpc:
-
- Added 'after' line in one project to order the builds (which
- share an IDL file) for VC8.
-
-Thu Dec 1 14:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO-INSTALL.html:
- Updated VxWorks part
-
-Wed Nov 30 10:23:05 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/performance-tests/RTEvent/lib/Client_Options.h:
- * orbsvcs/performance-tests/RTEvent/lib/Low_Priority_Setup.h:
- * orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.h:
- * orbsvcs/performance-tests/RTEvent/lib/Send_Task.h:
- * orbsvcs/tests/EC_Throughput/ECT_Driver.h:
- * orbsvcs/tests/Event/Basic/BCast.h:
- * orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h:
- * orbsvcs/tests/Event/Performance/Latency.h:
- * orbsvcs/tests/Event/lib/Driver.h:
- * orbsvcs/tests/FT_App/FT_Creator.h:
- * orbsvcs/tests/FT_App/TAO_Object_Group_Creator.h:
- * orbsvcs/tests/FtRtEvent/PushSupplier.h:
-
- Fixed forward declarations so that they take into account
- versioned namespace support.
-
-Wed Nov 30 00:33:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc:
- * examples/Content_Server/AMI_Observer/AMI_Observer.mpc:
- * examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc:
- * examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc:
- * examples/POA/Generic_Servant/POA_Generic_Servant.mpc:
- * examples/POA/TIE/POA_TIE.mpc:
- * examples/Persistent_Grid/Persistent_Grid.mpc:
- * orbsvcs/examples/LoadBalancing/LoadBalancing.mpc:
- * orbsvcs/orbsvcs/AV.mpc:
- * orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.mpc:
- * orbsvcs/tests/EC_Throughput/EC_Throughput.mpc:
- * orbsvcs/tests/ImplRepo/ImplRepo.mpc:
- * orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc:
-
- Disable these projects when "ace_for_tao" is enabled.
-
- * tao/GIOP_Message_Generator_Parser_Impl.inl:
-
- Removed "static" keywork from constant variable declaration.
- Corrected semantics are not supported in shared libraries on
- VxWorks. Thanks to Frank Rehberger for suggesting the change,
- and to Johnny for pointing out the VxWorks issue. [Bug 2304]
-
-Wed Nov 30 14:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/RT_ORB_Loader.cpp:
- * tao/RTCORBA/Thread_Pool.{h,cpp}:
- Fixed warnings in GCC build
-
-Wed Nov 30 12:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Security/MT_SSLIOP/run_test_heavy.pl:
- New regression test script. Test the TAO SSLIOP under heavy load
- and it will fail. This test takes a long time to succeed so
- didn't put it in the standard test suite. We have no idea why
- it fails, but something is buggy in the SSLIOP support
-
-Wed Nov 30 11:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/RT_ORB.{h,cpp}:
- * tao/RTCORBA/RT_ORB_Loader.cpp:
- * tao/RTCORBA/RT_ORBInitializer.{h,cpp}:
- * tao/RTCORBA/Thread_Pool.{h,cpp,inl}:
- * docs/rtcorba/features.html:
- When using RTCorba threadpools dynamic threads can be used, these
- will be created on demand but will life forever after that. A new
- option has been added to the RT_ORB_Loader:
- RTORBDynamicThreadIdleTimeout. With this option a number of micro
- seconds can be specified. If a dynamic thread has not performed
- anywork in that time it will end itself. This way dynamic threads
- can go away if the load reduces again on the server, at the moment
- they are needed they are recreated. Because of this some internal
- administration has been updated, argument parsing has been updated
- and the timeout is passed through several interfacs.
-
- * docs/releasenotes/index.html:
- Fixed RTCorba link
-
-Wed Nov 30 08:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/RequestProcessingStrategyAOMOnly.h:
- Added brief class description
-
-Tue Nov 29 06:44:35 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.h:
- * orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.cpp:
- * orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h:
- * orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.cpp:
- * orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.h:
- * orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp:
- * orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h:
- * orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.cpp:
- * orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.h:
- * orbsvcs/FT_ReplicationManager/FT_Property_Validator.cpp:
- * orbsvcs/FT_ReplicationManager/FT_Property_Validator.h:
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp:
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h:
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.cpp:
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.h:
- * orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp:
- * orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.h:
- * orbsvcs/Fault_Detector/Fault_Detector_i.cpp:
- * orbsvcs/Fault_Detector/Fault_Detector_i.h:
- * orbsvcs/Fault_Notifier/FT_Notifier_i.cpp:
- * orbsvcs/Fault_Notifier/FT_Notifier_i.h:
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.h:
- * orbsvcs/Notify_Service/Notify_Service.h:
- * orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Extensions.h:
-
- More versioned namespace build fixes.
-
-Tue Nov 29 13:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/LRU_Connection_Purging_Strategy.cpp:
- Use prefix increment instead of postfix
-
-Tue Nov 29 11:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.h:
- Added argument names to perform_work methods, improves doxygen
- docu
-
-Tue Nov 29 09:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/PluggableUDP/tests/Performance/Performance.mpc:
- Added 'after' lines to order the builds for VC8.
-
-Mon Nov 28 22:22:11 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
- * tests/RTCORBA/Linear_Priority/RTCORBA_Linear_Priority.mpc:
-
- Added 'after' lines to order the builds for VC8.
-
-Mon Nov 28 12:09:12 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * performance-tests/CSD_Strategy/TestApps/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/Broken/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/Broken/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp:
-
- Made main thread call ACE_Object_Manager::instance()->wait()
- after orb shutdown. This would avoid the problem that the main
- thread possiably exit before all CSD threads exit and crash
- upon exit.
-
-Mon Nov 28 07:30:58 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/SSLIOP/params_dup.h:
-
- Added missing "/**/ between "include" and "{pre,post}.h".
-
- * tao/Utils/Server_Main.h:
-
- Fixed "obsolete #pragma once" warning.
-
-Sun Nov 27 04:00:27 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/orbsvcs/Scheduler_Factory.cpp:
- * orbsvcs/orbsvcs/Scheduler_Factory.h:
- * orbsvcs/orbsvcs/Scheduler_Factory.i:
- * orbsvcs/orbsvcs/AV/AV_Core.h:
- * orbsvcs/orbsvcs/AV/Endpoint_Strategy.h:
- * orbsvcs/orbsvcs/AV/Policy.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Factory.h:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h:
- * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Adapters.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
- * orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp:
- * orbsvcs/orbsvcs/Event/EC_ConsumerControl.h:
- * orbsvcs/orbsvcs/Event/EC_Default_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h:
- * orbsvcs/orbsvcs/IFRService/IFR_BaseS.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_BaseS.h:
- * orbsvcs/orbsvcs/IFRService/IFR_BaseS.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.h:
- * orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_BasicS.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_BasicS.h:
- * orbsvcs/orbsvcs/IFRService/IFR_BasicS.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.h:
- * orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.h:
- * orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.h:
- * orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.h:
- * orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.h:
- * orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.inl:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h:
- * orbsvcs/orbsvcs/IFRService/ProvidesDef_i.h:
- * orbsvcs/orbsvcs/IFRService/PublishesDef_i.h:
- * orbsvcs/orbsvcs/Log/BasicLog_i.cpp:
- * orbsvcs/orbsvcs/Log/BasicLog_i.h:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.h:
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h:
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.h:
- * orbsvcs/orbsvcs/Naming/Naming_Service_Container.h:
- * orbsvcs/orbsvcs/Notify/Factory.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.h:
- * orbsvcs/orbsvcs/Notify/Property.h:
- * orbsvcs/orbsvcs/Notify/Timer.h:
- * orbsvcs/orbsvcs/Notify/Timer_Reactor.h:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.c:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.cpp:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.h:
- * orbsvcs/orbsvcs/Trader/Constraint_l.cpp:
- * tao/Basic_Types.h:
- * tao/TAO_Singleton_Manager.inl:
- * tao/AnyTypeCode/String_TypeCode_Traits.h:
- * tao/AnyTypeCode/TAOA.h:
- * tao/AnyTypeCode/TypeCodeA.cpp:
- * tao/AnyTypeCode/TypeCode_Case_Base_T.h:
- * tao/AnyTypeCode/TypeCode_Constants.cpp:
- * tao/IFR_Client/IFR_BasicC.cpp:
- * tao/ImR_Client/ImR_Client.cpp:
- * tao/ImR_Client/ImR_Client.h:
- * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp:
- * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h:
- * tao/PI/InvalidSlotA.cpp:
- * tao/PI/ORBInitInfoC.cpp:
- * tao/PI/ORBInitInfoC.h:
- * tao/PI/PICurrentC.cpp:
- * tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp:
- * tao/PortableServer/IdAssignmentStrategyFactoryImpl.h:
- * tao/PortableServer/IdAssignmentStrategySystem.cpp:
- * tao/PortableServer/IdAssignmentStrategySystem.h:
- * tao/PortableServer/IdAssignmentStrategyUser.cpp:
- * tao/PortableServer/IdAssignmentStrategyUser.h:
- * tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp:
- * tao/PortableServer/IdUniquenessStrategyFactoryImpl.h:
- * tao/PortableServer/IdUniquenessStrategyMultiple.cpp:
- * tao/PortableServer/IdUniquenessStrategyMultiple.h:
- * tao/PortableServer/IdUniquenessStrategyUnique.cpp:
- * tao/PortableServer/IdUniquenessStrategyUnique.h:
- * tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp:
- * tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h:
- * tao/PortableServer/ImplicitActivationStrategyExplicit.cpp:
- * tao/PortableServer/ImplicitActivationStrategyExplicit.h:
- * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp:
- * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h:
- * tao/PortableServer/ImplicitActivationStrategyImplicit.cpp:
- * tao/PortableServer/ImplicitActivationStrategyImplicit.h:
- * tao/PortableServer/LifespanStrategyFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyFactoryImpl.h:
- * tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h:
- * tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyTransientFactoryImpl.h:
- * tao/PortableServer/Non_Servant_Upcall.h:
- * tao/PortableServer/PortableServer.cpp:
- * tao/PortableServer/PortableServerA.cpp:
- * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h:
- * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h:
- * tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyFactoryImpl.h:
- * tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h:
- * tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h:
- * tao/PortableServer/ServantRetentionStrategyFactory.h:
- * tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyFactoryImpl.h:
- * tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h:
- * tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h:
- * tao/PortableServer/StrategyFactory.h:
- * tao/PortableServer/ThreadStrategyFactoryImpl.cpp:
- * tao/PortableServer/ThreadStrategyFactoryImpl.h:
- * tao/PortableServer/ThreadStrategyORBControl.cpp:
- * tao/PortableServer/ThreadStrategyORBControl.h:
- * tao/PortableServer/ThreadStrategySingle.cpp:
- * tao/PortableServer/ThreadStrategySingle.h:
- * tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp:
- * tao/PortableServer/ThreadStrategySingleFactoryImpl.h:
- * tao/PortableServer/Var_Size_SArgument_T.cpp:
- * tao/PortableServer/Var_Size_SArgument_T.h:
- * tao/PortableServer/Var_Size_SArgument_T.inl:
- * tao/RTCORBA/Network_Priority_Mapping_Manager.h:
- * tao/RTCORBA/RTCORBAA.cpp:
- * tao/RTCORBA/RT_ORB.h:
- * tao/RTPortableServer/RTPortableServerA.cpp:
- * tao/RTScheduling/RTSchedulerA.cpp:
- * tao/TypeCodeFactory/TypeCodeFactoryA.cpp:
- * tao/Utils/PolicyList_Destroyer.h:
- * tao/Utils/Server_Main.cpp:
- * tao/Utils/Server_Main.h:
-
- Corrected build errors in versioned namespace builds.
-
-Sat Nov 26 14:57:56 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/util/utl_global.cpp:
- * TAO_IDL/include/idl_global.h:
-
- Modified files overlooked in the checkin of
-
- Fri Nov 25 19:26:03 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
-Fri Nov 25 18:54:19 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * NEWS:
-
- Updated with latest versioned namespace information.
-
- * TAO_IDL/tao_idl.mpc:
- * orbsvcs/orbsvcs/CosNaming_Serv.mpc:
- * orbsvcs/orbsvcs/FTORB.mpc:
- * orbsvcs/orbsvcs/IFRService.mpc:
- * orbsvcs/orbsvcs/PortableGroup.mpc:
- * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
- * orbsvcs/orbsvcs/Svc_Utils.mpc:
- * tao/Strategies.mpc:
-
- Updated to take into account latest "ace_for_tao" subset
- changes.
-
- * tao/TAO_Singleton_Manager.h:
- * tao/AnyTypeCode/CharSeqA.cpp:
- * tao/AnyTypeCode/CharSeqA.h:
- * tao/AnyTypeCode/CurrentA.cpp:
- * tao/AnyTypeCode/CurrentA.h:
- * tao/AnyTypeCode/DomainA.cpp:
- * tao/AnyTypeCode/DomainA.h:
- * tao/AnyTypeCode/DoubleSeqA.cpp:
- * tao/AnyTypeCode/DoubleSeqA.h:
- * tao/AnyTypeCode/DynamicA.cpp:
- * tao/AnyTypeCode/DynamicA.h:
- * tao/AnyTypeCode/Dynamic_ParameterA.cpp:
- * tao/AnyTypeCode/Dynamic_ParameterA.h:
- * tao/AnyTypeCode/ExceptionA.cpp:
- * tao/AnyTypeCode/ExceptionA.h:
- * tao/AnyTypeCode/FloatSeqA.cpp:
- * tao/AnyTypeCode/FloatSeqA.h:
- * tao/AnyTypeCode/GIOPA.cpp:
- * tao/AnyTypeCode/GIOPA.h:
- * tao/AnyTypeCode/IIOPA.cpp:
- * tao/AnyTypeCode/IIOPA.h:
- * tao/AnyTypeCode/IIOP_EndpointsA.cpp:
- * tao/AnyTypeCode/IIOP_EndpointsA.h:
- * tao/AnyTypeCode/IOP_IORA.cpp:
- * tao/AnyTypeCode/IOP_IORA.h:
- * tao/AnyTypeCode/LongDoubleSeqA.cpp:
- * tao/AnyTypeCode/LongDoubleSeqA.h:
- * tao/AnyTypeCode/LongLongSeqA.cpp:
- * tao/AnyTypeCode/LongLongSeqA.h:
- * tao/AnyTypeCode/LongSeqA.cpp:
- * tao/AnyTypeCode/LongSeqA.h:
- * tao/AnyTypeCode/Messaging_PolicyValueA.cpp:
- * tao/AnyTypeCode/Messaging_PolicyValueA.h:
- * tao/AnyTypeCode/ObjectIdListA.cpp:
- * tao/AnyTypeCode/ObjectIdListA.h:
- * tao/AnyTypeCode/PI_ForwardA.cpp:
- * tao/AnyTypeCode/PI_ForwardA.h:
- * tao/AnyTypeCode/ParameterModeA.cpp:
- * tao/AnyTypeCode/ParameterModeA.h:
- * tao/AnyTypeCode/PolicyA.cpp:
- * tao/AnyTypeCode/PolicyA.h:
- * tao/AnyTypeCode/Policy_ForwardA.cpp:
- * tao/AnyTypeCode/Policy_ForwardA.h:
- * tao/AnyTypeCode/PortableInterceptorA.h:
- * tao/AnyTypeCode/ServicesA.cpp:
- * tao/AnyTypeCode/ServicesA.h:
- * tao/AnyTypeCode/ShortSeqA.cpp:
- * tao/AnyTypeCode/ShortSeqA.h:
- * tao/AnyTypeCode/StringSeqA.cpp:
- * tao/AnyTypeCode/StringSeqA.h:
- * tao/AnyTypeCode/SystemExceptionA.cpp:
- * tao/AnyTypeCode/SystemExceptionA.h:
- * tao/AnyTypeCode/TAOA.cpp:
- * tao/AnyTypeCode/TimeBaseA.cpp:
- * tao/AnyTypeCode/TimeBaseA.h:
- * tao/AnyTypeCode/ULongLongSeqA.cpp:
- * tao/AnyTypeCode/ULongLongSeqA.h:
- * tao/AnyTypeCode/ULongSeqA.cpp:
- * tao/AnyTypeCode/ULongSeqA.h:
- * tao/AnyTypeCode/UShortSeqA.cpp:
- * tao/AnyTypeCode/UShortSeqA.h:
- * tao/AnyTypeCode/ValueModifierA.cpp:
- * tao/AnyTypeCode/ValueModifierA.h:
- * tao/AnyTypeCode/VisibilityA.cpp:
- * tao/AnyTypeCode/VisibilityA.h:
- * tao/AnyTypeCode/WCharSeqA.cpp:
- * tao/AnyTypeCode/WCharSeqA.h:
- * tao/AnyTypeCode/WStringSeqA.cpp:
- * tao/AnyTypeCode/WStringSeqA.h:
- * tao/AnyTypeCode/WrongTransactionA.cpp:
- * tao/AnyTypeCode/WrongTransactionA.h:
- * tao/AnyTypeCode/orb_typesA.cpp:
- * tao/AnyTypeCode/orb_typesA.h:
- * tao/CSD_Framework/CSD_FrameworkA.cpp:
- * tao/CSD_Framework/CSD_FrameworkA.h:
- * tao/CSD_Framework/CSD_FrameworkC.cpp:
- * tao/CSD_Framework/CSD_FrameworkC.h:
- * tao/Domain/DomainS.cpp:
- * tao/Domain/DomainS.h:
- * tao/Domain/DomainS.inl:
- * tao/Domain/DomainS_T.h:
- * tao/Domain/DomainS_T.inl:
- * tao/DynamicAny/DynamicAnyC.cpp:
- * tao/DynamicAny/DynamicAnyC.h:
- * tao/IFR_Client/IFR_BaseC.cpp:
- * tao/IFR_Client/IFR_BaseC.h:
- * tao/IFR_Client/IFR_BaseC.inl:
- * tao/IFR_Client/IFR_BaseS.h:
- * tao/IFR_Client/IFR_BasicC.h:
- * tao/IFR_Client/IFR_BasicC.inl:
- * tao/IFR_Client/IFR_ComponentsC.cpp:
- * tao/IFR_Client/IFR_ComponentsC.h:
- * tao/IFR_Client/IFR_ComponentsC.inl:
- * tao/IFR_Client/IFR_ExtendedC.cpp:
- * tao/IFR_Client/IFR_ExtendedC.h:
- * tao/IFR_Client/IFR_ExtendedC.inl:
- * tao/IORInterceptor/IORInfoC.cpp:
- * tao/IORInterceptor/IORInfoC.h:
- * tao/IORInterceptor/IORInterceptorC.cpp:
- * tao/IORInterceptor/IORInterceptorC.h:
- * tao/IORManipulation/IORA.cpp:
- * tao/IORManipulation/IORC.cpp:
- * tao/IORManipulation/IORC.h:
- * tao/IORTable/IORTableC.cpp:
- * tao/IORTable/IORTableC.h:
- * tao/ImR_Client/ImplRepoC.cpp:
- * tao/ImR_Client/ImplRepoC.h:
- * tao/ImR_Client/ImplRepoC.inl:
- * tao/ImR_Client/ImplRepoS.cpp:
- * tao/ImR_Client/ImplRepoS.h:
- * tao/ImR_Client/ServerObjectC.cpp:
- * tao/ImR_Client/ServerObjectC.h:
- * tao/ImR_Client/ServerObjectC.inl:
- * tao/ImR_Client/ServerObjectS.cpp:
- * tao/ImR_Client/ServerObjectS.h:
- * tao/Messaging/ExceptionHolderA.cpp:
- * tao/Messaging/ExceptionHolderA.h:
- * tao/Messaging/ExceptionHolderC.cpp:
- * tao/Messaging/ExceptionHolderC.h:
- * tao/Messaging/ExceptionHolderC.inl:
- * tao/Messaging/MessagingA.cpp:
- * tao/Messaging/MessagingA.h:
- * tao/Messaging/MessagingC.cpp:
- * tao/Messaging/MessagingC.h:
- * tao/Messaging/MessagingC.inl:
- * tao/Messaging/MessagingS.cpp:
- * tao/Messaging/MessagingS.h:
- * tao/Messaging/MessagingS_T.h:
- * tao/Messaging/MessagingS_T.inl:
- * tao/Messaging/Messaging_No_ImplA.cpp:
- * tao/Messaging/Messaging_No_ImplA.h:
- * tao/Messaging/Messaging_No_ImplC.cpp:
- * tao/Messaging/Messaging_No_ImplC.h:
- * tao/Messaging/Messaging_RT_PolicyA.cpp:
- * tao/Messaging/Messaging_RT_PolicyA.h:
- * tao/Messaging/Messaging_RT_PolicyC.cpp:
- * tao/Messaging/Messaging_RT_PolicyC.h:
- * tao/Messaging/Messaging_SyncScope_PolicyA.cpp:
- * tao/Messaging/Messaging_SyncScope_PolicyA.h:
- * tao/Messaging/Messaging_SyncScope_PolicyC.cpp:
- * tao/Messaging/Messaging_SyncScope_PolicyC.h:
- * tao/Messaging/OldExceptionHolderA.cpp:
- * tao/Messaging/OldExceptionHolderA.h:
- * tao/Messaging/OldExceptionHolderC.cpp:
- * tao/Messaging/OldExceptionHolderC.h:
- * tao/Messaging/OldExceptionHolderC.inl:
- * tao/Messaging/PollableC.cpp:
- * tao/Messaging/PollableC.h:
- * tao/Messaging/TAO_ExtA.cpp:
- * tao/Messaging/TAO_ExtA.h:
- * tao/Messaging/TAO_ExtC.cpp:
- * tao/Messaging/TAO_ExtC.h:
- * tao/ObjRefTemplate/Default_ORTA.cpp:
- * tao/ObjRefTemplate/Default_ORTC.cpp:
- * tao/ObjRefTemplate/Default_ORTC.h:
- * tao/ObjRefTemplate/ObjectReferenceTemplateA.cpp:
- * tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp:
- * tao/ObjRefTemplate/ObjectReferenceTemplateC.h:
- * tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h:
- * tao/PI/ClientRequestInfoA.cpp:
- * tao/PI/ClientRequestInfoA.h:
- * tao/PI/ClientRequestInfoC.cpp:
- * tao/PI/ClientRequestInterceptorA.cpp:
- * tao/PI/ClientRequestInterceptorA.h:
- * tao/PI/ClientRequestInterceptorC.cpp:
- * tao/PI/InterceptorA.cpp:
- * tao/PI/InterceptorA.h:
- * tao/PI/InterceptorC.cpp:
- * tao/PI/InterceptorC.h:
- * tao/PI/InvalidSlotA.h:
- * tao/PI/InvalidSlotC.cpp:
- * tao/PI/InvalidSlotC.h:
- * tao/PI/ORBInitializerA.cpp:
- * tao/PI/ORBInitializerA.h:
- * tao/PI/ORBInitializerC.cpp:
- * tao/PI/ORBInitializerC.h:
- * tao/PI/PICurrentA.cpp:
- * tao/PI/PICurrentA.h:
- * tao/PI/PICurrentC.h:
- * tao/PI/PIForwardRequestA.cpp:
- * tao/PI/PIForwardRequestA.h:
- * tao/PI/PIForwardRequestC.cpp:
- * tao/PI/PIForwardRequestC.h:
- * tao/PI/PolicyFactoryA.cpp:
- * tao/PI/PolicyFactoryA.h:
- * tao/PI/PolicyFactoryC.cpp:
- * tao/PI/PolicyFactoryC.h:
- * tao/PI/RequestInfoA.cpp:
- * tao/PI/RequestInfoA.h:
- * tao/PI/RequestInfoC.cpp:
- * tao/PI/RequestInfoC.h:
- * tao/PI_Server/ServerRequestInfoA.cpp:
- * tao/PI_Server/ServerRequestInfoA.h:
- * tao/PI_Server/ServerRequestInfoC.cpp:
- * tao/PI_Server/ServerRequestInfoC.h:
- * tao/PI_Server/ServerRequestInterceptorA.cpp:
- * tao/PI_Server/ServerRequestInterceptorA.h:
- * tao/PI_Server/ServerRequestInterceptorC.cpp:
- * tao/PI_Server/ServerRequestInterceptorC.h:
- * tao/PortableServer/AdapterActivatorA.cpp:
- * tao/PortableServer/AdapterActivatorA.h:
- * tao/PortableServer/AdapterActivatorC.cpp:
- * tao/PortableServer/AdapterActivatorC.h:
- * tao/PortableServer/ForwardRequestA.cpp:
- * tao/PortableServer/ForwardRequestA.h:
- * tao/PortableServer/ForwardRequestC.cpp:
- * tao/PortableServer/ForwardRequestC.h:
- * tao/PortableServer/IdAssignmentPolicyA.cpp:
- * tao/PortableServer/IdAssignmentPolicyA.h:
- * tao/PortableServer/IdAssignmentPolicyC.cpp:
- * tao/PortableServer/IdAssignmentPolicyC.h:
- * tao/PortableServer/IdUniquenessPolicyA.cpp:
- * tao/PortableServer/IdUniquenessPolicyA.h:
- * tao/PortableServer/IdUniquenessPolicyC.cpp:
- * tao/PortableServer/IdUniquenessPolicyC.h:
- * tao/PortableServer/ImplicitActivationPolicyA.cpp:
- * tao/PortableServer/ImplicitActivationPolicyA.h:
- * tao/PortableServer/ImplicitActivationPolicyC.cpp:
- * tao/PortableServer/ImplicitActivationPolicyC.h:
- * tao/PortableServer/LifespanPolicyA.cpp:
- * tao/PortableServer/LifespanPolicyA.h:
- * tao/PortableServer/LifespanPolicyC.cpp:
- * tao/PortableServer/LifespanPolicyC.h:
- * tao/PortableServer/POAManagerC.cpp:
- * tao/PortableServer/POAManagerC.h:
- * tao/PortableServer/PS_CurrentC.cpp:
- * tao/PortableServer/PS_CurrentC.h:
- * tao/PortableServer/PS_ForwardA.cpp:
- * tao/PortableServer/PS_ForwardA.h:
- * tao/PortableServer/PS_ForwardC.cpp:
- * tao/PortableServer/PS_ForwardC.h:
- * tao/PortableServer/PolicyS.cpp:
- * tao/PortableServer/PolicyS.h:
- * tao/PortableServer/PolicyS_T.h:
- * tao/PortableServer/PolicyS_T.inl:
- * tao/PortableServer/PortableServerC.cpp:
- * tao/PortableServer/PortableServerC.h:
- * tao/PortableServer/PortableServerS.h:
- * tao/PortableServer/PortableServer_includeC.h:
- * tao/PortableServer/RequestProcessingPolicyA.cpp:
- * tao/PortableServer/RequestProcessingPolicyA.h:
- * tao/PortableServer/RequestProcessingPolicyC.cpp:
- * tao/PortableServer/RequestProcessingPolicyC.h:
- * tao/PortableServer/ServantActivatorA.cpp:
- * tao/PortableServer/ServantActivatorA.h:
- * tao/PortableServer/ServantActivatorC.cpp:
- * tao/PortableServer/ServantActivatorC.h:
- * tao/PortableServer/ServantLocatorA.cpp:
- * tao/PortableServer/ServantLocatorA.h:
- * tao/PortableServer/ServantLocatorC.cpp:
- * tao/PortableServer/ServantLocatorC.h:
- * tao/PortableServer/ServantManagerA.cpp:
- * tao/PortableServer/ServantManagerA.h:
- * tao/PortableServer/ServantManagerC.cpp:
- * tao/PortableServer/ServantManagerC.h:
- * tao/PortableServer/ServantRetentionPolicyA.cpp:
- * tao/PortableServer/ServantRetentionPolicyA.h:
- * tao/PortableServer/ServantRetentionPolicyC.cpp:
- * tao/PortableServer/ServantRetentionPolicyC.h:
- * tao/PortableServer/ThreadPolicyA.cpp:
- * tao/PortableServer/ThreadPolicyA.h:
- * tao/PortableServer/ThreadPolicyC.cpp:
- * tao/PortableServer/ThreadPolicyC.h:
- * tao/RTCORBA/RTCORBAC.cpp:
- * tao/RTCORBA/RTCORBAC.h:
- * tao/RTCORBA/RTCORBA_includeC.h:
- * tao/RTPortableServer/RTPortableServerC.cpp:
- * tao/RTPortableServer/RTPortableServerC.h:
- * tao/RTPortableServer/RTPortableServerS.h:
- * tao/RTPortableServer/RTPortableServer_includeC.h:
- * tao/RTScheduling/RTSchedulerC.cpp:
- * tao/RTScheduling/RTSchedulerC.h:
- * tao/RTScheduling/RTScheduler_includeA.h:
- * tao/RTScheduling/RTScheduler_includeC.h:
- * tao/Strategies/sciop_endpointsC.cpp:
- * tao/Strategies/sciop_endpointsC.h:
- * tao/Strategies/uiop_endpointsC.cpp:
- * tao/Strategies/uiop_endpointsC.h:
- * tao/TypeCodeFactory/TypeCodeFactoryC.cpp:
- * tao/TypeCodeFactory/TypeCodeFactoryC.h:
- * tao/Valuetype/StringValueC.cpp:
- * tao/Valuetype/StringValueC.h:
- * tao/Valuetype/StringValueC.inl:
-
- Added missing versioned namespace support.
-
-Fri Nov 25 19:26:03 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_field.cpp:
- * TAO_IDL/fe/fe_declarator.cpp:
-
- Added code generation for explicit inclusionn of
- tao/Managed_Types.h if TAO_(W)String_Manager is seen
- anywhere in the generated code. This inclusion is
- redundant now, but will make it easier to merge the
- new sequence implementation branch, where managed_Types.h
- will be changed to the name of a new file, into which
- templatized versions of TAO_(W)String_Manager have
- been factored.
-
-Fri Nov 25 07:43:56 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/TAO_Singleton_Manager.h (~TAO_Singleton_Manager):
-
- Made destructor protected to address warnings about a class with
- a private destructor and no friends.
-
-Fri Nov 25 15:06:43 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/fe_interface_header.cpp:
-
- Applied a patch submitted by Max Khon <mkhon@swsoft.com>
- to fix a bug in computing the inheritance list of an IDL
- interface. This fix closes [BUGID:2318].
-
-Fri Nov 25 13:01:23 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/ImplRepo/run_test.pl:
-
- Added time parameter to WaitKill to fix spurious test error.
-
-Fri Nov 25 11:18:12 2005 Simon McQueen <sm@prismtech.com>
-
- * orsbvcs/tests/Bug_2074_Regression/run_test.pl:
-
- Correct the use lib path to give this a sporting chance.
- Can't have ever been run from this location.
-
-Thu Nov 24 19:50:35 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h:
-
- Override the base class ::decode method with one that
- doesn't try and extract an object key from the CDR encoding.
- MIOP profiles don't have an object key marshalled between
- the address info and the tagged components.
-
- This fixes bug #2316.
-
- * orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc:
- * orbsvcs/tests/Bug_2316_Regression/README:
- * orbsvcs/tests/Bug_2316_Regression/Test.idl:
- * orbsvcs/tests/Bug_2316_Regression/Test_impl.cpp:
- * orbsvcs/tests/Bug_2316_Regression/Test_impl.h:
- * orbsvcs/tests/Bug_2316_Regression/client.cpp:
- * orbsvcs/tests/Bug_2316_Regression/run_test.pl:
- * orbsvcs/tests/Bug_2316_Regression/server.cpp:
- * orbsvcs/tests/Bug_2316_Regression/svc.conf:
-
- Regression test for the above.
-
-Thu Nov 24 19:07:56 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp:
-
- Fix calculation of protocol name length. This fixes the
- failure in orbsvcs/tests/Miop/McastHello.
-
-Thu Nov 24 15:56:31 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/Bug_1670_Regression/Bug_1670_Regression.mpc:
-
- Added 'after' line in one project to avoid concurrently
- clashes in VC8 builds, since the two projects share an
- IDL file.
-
-Thu Nov 24 03:01:29 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h:
- * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
- * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i:
- * orbsvcs/orbsvcs/Event/EC_ProxySupplier.i:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp:
- * orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h:
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp:
- * orbsvcs/orbsvcs/Notify/Refcountable.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp:
- * orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp:
- * orbsvcs/orbsvcs/Security/Security_Current.h:
- * orbsvcs/orbsvcs/Trader/Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Trader/Constraint_l.cpp:
- * orbsvcs/orbsvcs/Trader/Trader.cpp:
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.h:
- * tao/Acceptor_Registry.h:
- * tao/Asynch_Reply_Dispatcher_Base.h:
- * tao/BooleanSeqC.cpp:
- * tao/BooleanSeqC.h:
- * tao/CDR.h:
- * tao/CONV_FRAMEC.cpp:
- * tao/CONV_FRAMEC.h:
- * tao/CORBA_methods.h:
- * tao/CharSeqC.cpp:
- * tao/CharSeqC.h:
- * tao/Client_Strategy_Factory.h:
- * tao/Codeset_Manager.h:
- * tao/Codeset_Translator_Base.h:
- * tao/Collocation_Strategy.h:
- * tao/Condition.h:
- * tao/Connect_Strategy.h:
- * tao/Connection_Handler.h:
- * tao/Connection_Handler.inl:
- * tao/Connector_Impl.h:
- * tao/CurrentC.cpp:
- * tao/CurrentC.h:
- * tao/DomainC.cpp:
- * tao/DomainC.h:
- * tao/DomainC.inl:
- * tao/DoubleSeqC.cpp:
- * tao/DoubleSeqC.h:
- * tao/Exception.h:
- * tao/Fault_Tolerance_Service.h:
- * tao/FlResource_Factory.h:
- * tao/FloatSeqC.cpp:
- * tao/FloatSeqC.h:
- * tao/Flushing_Strategy.h:
- * tao/GIOPC.cpp:
- * tao/GIOPC.h:
- * tao/GIOPC.inl:
- * tao/GIOP_Utils.h:
- * tao/GUIResource_Factory.h:
- * tao/IIOPC.cpp:
- * tao/IIOPC.h:
- * tao/IIOP_EndpointsC.cpp:
- * tao/IIOP_EndpointsC.h:
- * tao/IIOP_Lite_Factory.cpp:
- * tao/IOPC.cpp:
- * tao/IOPC.h:
- * tao/IOP_IORC.cpp:
- * tao/IOP_IORC.h:
- * tao/IORInterceptor_Adapter.h:
- * tao/Incoming_Message_Queue.h:
- * tao/Invocation_Adapter.h:
- * tao/Invocation_Endpoint_Selectors.h:
- * tao/LF_Connect_Strategy.h:
- * tao/LF_Strategy.h:
- * tao/Leader_Follower.h:
- * tao/LocateRequest_Invocation_Adapter.h:
- * tao/LongDoubleSeqC.cpp:
- * tao/LongDoubleSeqC.h:
- * tao/LongLongSeqC.cpp:
- * tao/LongLongSeqC.h:
- * tao/LongSeqC.cpp:
- * tao/LongSeqC.h:
- * tao/Messaging_PolicyValueC.cpp:
- * tao/Messaging_PolicyValueC.h:
- * tao/Messaging_SyncScopeC.cpp:
- * tao/Messaging_SyncScopeC.h:
- * tao/ORBInitializer_Registry.h:
- * tao/ORB_Core.h:
- * tao/Object.h:
- * tao/ObjectIdListC.cpp:
- * tao/ObjectIdListC.h:
- * tao/Object_KeyC.cpp:
- * tao/Object_KeyC.h:
- * tao/OctetSeqC.cpp:
- * tao/OctetSeqC.h:
- * tao/PI_ForwardC.cpp:
- * tao/PI_ForwardC.h:
- * tao/ParameterModeC.cpp:
- * tao/ParameterModeC.h:
- * tao/Pluggable_Messaging.h:
- * tao/PolicyC.cpp:
- * tao/PolicyC.h:
- * tao/PolicyC.inl:
- * tao/Policy_Current.h:
- * tao/Policy_ForwardC.cpp:
- * tao/Policy_ForwardC.h:
- * tao/PortableInterceptorC.cpp:
- * tao/PortableInterceptorC.h:
- * tao/Profile.h:
- * tao/Profile_Transport_Resolver.cpp:
- * tao/Profile_Transport_Resolver.h:
- * tao/Queued_Message.h:
- * tao/Reactive_Connect_Strategy.h:
- * tao/Resource_Factory.h:
- * tao/Sequence.h:
- * tao/ServicesC.cpp:
- * tao/ServicesC.h:
- * tao/ShortSeqC.cpp:
- * tao/ShortSeqC.h:
- * tao/StringSeqC.cpp:
- * tao/StringSeqC.h:
- * tao/Synch_Invocation.h:
- * tao/TAOC.cpp:
- * tao/TAOC.h:
- * tao/TAO_Internal.h:
- * tao/TAO_Server_Request.h:
- * tao/TAO_Singleton_Manager.cpp:
- * tao/TAO_Singleton_Manager.h:
- * tao/Thread_Lane_Resources.h:
- * tao/TimeBaseC.cpp:
- * tao/TimeBaseC.h:
- * tao/Transport_Acceptor.h:
- * tao/Transport_Cache_Manager.h:
- * tao/Transport_Connector.h:
- * tao/Transport_Mux_Strategy.h:
- * tao/Transport_Queueing_Strategies.h:
- * tao/TypeCodeFactory_Adapter.h:
- * tao/Typecode_typesC.cpp:
- * tao/Typecode_typesC.h:
- * tao/ULongLongSeqC.cpp:
- * tao/ULongLongSeqC.h:
- * tao/ULongSeqC.cpp:
- * tao/ULongSeqC.h:
- * tao/UShortSeqC.cpp:
- * tao/UShortSeqC.h:
- * tao/VarOut_T.cpp:
- * tao/Var_Size_Argument_T.inl:
- * tao/Versioned_Namespace.h:
- * tao/WCharSeqC.cpp:
- * tao/WCharSeqC.h:
- * tao/WStringSeqC.cpp:
- * tao/WStringSeqC.h:
- * tao/Wait_Strategy.h:
- * tao/WrongTransactionC.cpp:
- * tao/WrongTransactionC.h:
- * tao/default_resource.h:
- * tao/orb_typesC.cpp:
- * tao/orb_typesC.h:
- * tao/target_specification.h:
- * tao/target_specification.i:
- * tao/AnyTypeCode/AnySeqA.cpp:
- * tao/AnyTypeCode/AnySeqA.h:
- * tao/AnyTypeCode/AnySeqC.cpp:
- * tao/AnyTypeCode/AnySeqC.h:
- * tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp:
- * tao/AnyTypeCode/Any_Impl.h:
- * tao/AnyTypeCode/Any_Impl_T.h:
- * tao/AnyTypeCode/Any_Impl_T.inl:
- * tao/AnyTypeCode/Any_Unknown_IDL_Type.h:
- * tao/AnyTypeCode/BooleanSeqA.cpp:
- * tao/AnyTypeCode/BooleanSeqA.h:
- * tao/AnyTypeCode/BoundsA.cpp:
- * tao/AnyTypeCode/BoundsA.h:
- * tao/AnyTypeCode/BoundsC.cpp:
- * tao/AnyTypeCode/BoundsC.h:
- * tao/AnyTypeCode/CONV_FRAMEA.cpp:
- * tao/AnyTypeCode/CONV_FRAMEA.h:
- * tao/AnyTypeCode/DynamicC.cpp:
- * tao/AnyTypeCode/DynamicC.h:
- * tao/AnyTypeCode/Dynamic_ParameterC.cpp:
- * tao/AnyTypeCode/Dynamic_ParameterC.h:
- * tao/AnyTypeCode/OctetSeqA.cpp:
- * tao/AnyTypeCode/OctetSeqA.h:
- * tao/AnyTypeCode/TypeCode_CDR_Extraction.h:
- * tao/AnyTypeCode/ValueModifierC.cpp:
- * tao/AnyTypeCode/ValueModifierC.h:
- * tao/AnyTypeCode/VisibilityC.cpp:
- * tao/AnyTypeCode/VisibilityC.h:
- * tao/BiDir_GIOP/BiDirPolicyC.cpp:
- * tao/BiDir_GIOP/BiDirPolicyC.h:
- * tao/CodecFactory/IOP_CodecC.cpp:
- * tao/CodecFactory/IOP_CodecC.h:
- * tao/CodecFactory/IOP_Codec_includeC.h:
- * tao/Codeset/Codeset_Translator_Factory.h:
- * tao/DynamicInterface/DII_Invocation_Adapter.cpp:
- * tao/DynamicInterface/DII_Invocation_Adapter.h:
- * tao/Messaging/AMH_Response_Handler.h:
- * tao/Messaging/Asynch_Invocation.h:
- * tao/Messaging/Asynch_Invocation_Adapter.h:
- * tao/Messaging/Asynch_Reply_Dispatcher.h:
- * tao/Messaging/Connection_Timeout_Policy_i.h:
- * tao/PI/ClientRequestInfo.cpp:
- * tao/PI/ClientRequestInfoC.h:
- * tao/PI/ClientRequestInterceptorC.h:
- * tao/PortableServer/IdUniquenessStrategyUnique.h:
- * tao/PortableServer/Key_Adapters.h:
- * tao/PortableServer/Servant_Dispatcher.cpp:
- * tao/PortableServer/Servant_Dispatcher.h:
- * tao/Utils/Synch_Refcountable.h:
- * tao/Valuetype/Valuetype_Adapter_Impl.h:
-
- Corrected build errors in versioned namespace builds.
-
-Wed Nov 23 22:24:38 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Event_Manager.h:
-
- Explicitly declared a private copy constructor and assignment
- operator for TAO_Notify_Event_Manager. By not declaring them,
- the compiler has to generate them. In generating them, it needs
- to be able to know the complete type for the template arguments
- to its ACE_Auto_Ptr<> private instances. Various circular
- dependencies make that difficult to impossible without
- restructuring, so we take this approach instead.
-
- This change should eliminate warnings from Windows-based
- compilers (e.g., VC8) about calling delete through a pointer to
- an incomplete type while instantiating ACE_Auto_Ptr<> methods.
-
- * orbsvcs/orbsvcs/Notify/Object.h:
- * orbsvcs/orbsvcs/Notify/Object.cpp:
-
- Only needed a forward decl in Object.h; we only needed the
- complete type in Object.cpp. Maybe this will help footprint.
-
-Wed Nov 23 09:20:03 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- Fix a few things I should have caught in the Great Merge, but
- missed.
-
- * orbsvcs/orbsvcs/Notify/Consumer.cpp (dispatch_request): Change
- from using deprecated TAO_DEFAULT_MINOR_CODE to TAO::VMCID.
-
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp: Use
- real C++ static_cast<> rather than deprecated ACE_static_cast().
-
-Wed Nov 23 14:53:09 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
-
- Added an 'after' line to one project to avoid concurrency
- collisions in VC8 builds, since the 2 projects in this file
- share IDL.
-
-Wed Nov 23 14:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- This test was doing a few release calls to much causing it to
- crash.
-
-Wed Nov 23 14:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
- Make sure all generated pointers are initialised to 0
-
-Wed Nov 23 10:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/BiDirectional/run_test_ipv6.pl:
- * tests/CallbackTest/run_test_ipv6.pl:
- * tests/IPV6/run_test.pl:
- * orbsvcs/tests/Notify/Basic/run_test_ipv6.pl:
- Updated these scripts because of the following change, use
- 1|0 instead of YES|NO
- Tue Nov 22 07:49:59 2005 Douglas C. Schmidt
-
-Tue Nov 22 22:58:55 2005 Chris Cleeland <cleeland@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
-
- Fixed warnings about preferring one conversion over another
- from a _var that appeared on a couple of platforms.
-
-Tue Nov 22 07:49:59 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * tao/ORB_Core.cpp (init): Updated the code to use 1 or 0 for
- options, rather than YES or NO. Thanks to Abhi Sachdev for
- motivating this cleanup.
-
- * docs/Options.html: Updated the documentation to remove the use of
- YES and NO as options and replace them with 1 or 0 to be
- consistent with the other options.
-
-Tue Nov 22 04:14:05 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * TAO_IDL/be_include/be_visitor_traits.h:
-
- Added missing operation declaration.
-
-Tue Nov 22 01:42:48 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/PortableGroup.mpc:
-
- Rather than disable this project in the ACE_FOR_TAO
- configuration, inherit from acesocketslib_for_tao to allow it to
- be used.
-
-Tue Nov 22 09:33:30 (IST) 2005 Bala Natarajan <bala_natarajan@symantec.com>
-
- * orbsvcs/orbsvcs/PortableGroup.mpc:
-
- Do not build in ACE_FOR_TAO configuration.
-
-Mon Nov 21 19:28:51 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/EventChannel.h: Removed mistakenly left
- in attempt to #include EventChannel.inl.
-
-Mon Nov 21 22:22:41 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp:
-
- Removed commented out code.
-
- * TAO_IDL/be/be_visitor_traits.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
- * TAO_IDL/be_include/be_visitor_traits.h:
-
- Added code generation of Value_Traits<> template
- specialization for boxed valuetypes. Thanks to
- Johnny Willemse <jwillemsen@remedy.nl> for reporting
- the missing code. This fix closes [BUGID:2311].
-
-Mon Nov 21 20:14:09 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/RTCORBA/Private_Connection/RTCORBA_Private_Connection.mpc:
-
- Added an 'after' line for one of the two projects, since they
- share an IDL file and VC8 concurrency features need an
- ordering.
-
-Mon Nov 21 13:21:03 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- This entry is the result of an accumulation of many changes in
- the OCITAO repository for the Notification Service and the
- subsequent merge of those changes back to DOC. There have been
- general changes to improve code formatting in accordance with
- ACE guidelines, improve lax checking of emulated exceptions, and
- the like, so these sorts of changes are not noted on a per-file
- basis.
-
- These changes include changes from the following OCITAO 1.4a
- OCIChangeLog entries:
-
- Thu Oct 27 13:01:00 2005 Wallace Zhang <zhangw@ociweb.com>
- Wed Sep 28 14:25:52 2005 David Giovannini <giovannd@ociweb.com>
- Mon Sep 26 15:58:41 USMST 2005 Yan Dai <dai_y@ociweb.com>
- Tue Sep 13 17:14:25 2005 Justin Michel <michel_j@ociweb.com>
- Sun Sep 11 14:21:45 2005 Justin Michel <michel_j@ociweb.com>
- Thu Aug 18 13:50:50 2005 David Giovannini <giovannd@ociweb.com>
- Tue Aug 16 14:16:47 2005 Justin Michel <michel_j@ociweb.com>
- Wed Jul 27 12:38:01 2005 Justin Michel <michel_j@ociweb.com>
- Wed Jul 13 14:28:39 2005 Justin Michel <michel_j@ociweb.com>
- Mon Jul 11 16:47:08 2005 Justin Michel <michel_j@ociweb.com>
- Mon May 23 09:18:46 2005 David Giovannini <giovanninid@ociweb.com>
- Fri Apr 22 15:24:43 2005 David Giovannini <giovanninid@ociweb.com>
-
- * orbsvcs/Notify_Service/Notify_Server.cpp:
-
- Added #include of valuetype header file to that the service can
- use valuetypes portably.
-
- * orbsvcs/Notify_Service/Notify_Service.cpp:
-
- Made some error messages more informative and removed dead code.
-
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
-
- Improve compliance with ACE formatting guidelines.
-
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
- * orbsvcs/orbsvcs/Notify/Object.cpp:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/Topology_Object.cpp:
- * orbsvcs/tests/Notify/Basic/Filter.cpp:
- * orbsvcs/tests/Notify/Basic/MultiTypes.cpp:
- * orbsvcs/tests/Notify/Reconnecting/Consumer.cpp:
- * orbsvcs/tests/Notify/Reconnecting/Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/lib/Application_Command.cpp:
- * orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp:
- * orbsvcs/tests/Notify/lib/EventChannel_Command.cpp:
- * orbsvcs/tests/Notify/lib/Filter_Command.cpp:
- * orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp:
- * orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp:
- * orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
-
- Emulated exception cleanup.
-
- * orbsvcs/orbsvcs/Notify/Consumer.h:
- * orbsvcs/orbsvcs/Notify/Peer.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Notify_Service.h:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.h:
- * orbsvcs/tests/Notify/PluggableTopology/main.cpp:
-
- Improved/removed crufty comments.
-
- * orbsvcs/orbsvcs/Notify/AllocTracker.h (ACE_WIN32_HEAP_MONITOR):
-
- Explicitly scoped reference to CrtHeapDumper to address a
- compiler error.
-
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.h:
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
-
- Changed methods using TAO_Notify_Method_Request_Queueable to use
- a pointer rather than a reference. This improves expectations
- in areas of code that take the address of the reference and
- store it or treat it as a pointer.
-
- * orbsvcs/orbsvcs/Notify/Consumer.cpp (dispatch_request):
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
-
- Handle COMM_FAILURE and TIMEOUT exceptions when pushing to a
- consumer. These exceptions used to result in simply discarding
- the event, but now they are considered a failure, and consumer
- resources will be released.
-
- * orbsvcs/orbsvcs/Notify/Consumer.cpp (dispatch_batch):
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
-
- Fixed the detection of dead consumers for batches of events, so
- that killing (or crashing) a consumer will correctly discard
- remaining queued events for that consumer, and prevent new
- events from being queued.
-
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
-
- Simplify the types of threads from "dispatching, listener,
- source, and lookup" to simply be "consumer" and "supplier"
- threads. This is the way they were used, anyway.
-
- Changed the info message printed at startup to correctly
- indicate that -DispatchingThreads threads are used
- *per-consumer_admin*. Previously it indicated that the thread
- pool was per-channel.
-
- * orbsvcs/orbsvcs/Notify/EventChannel.h:
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp (destroy):
-
- Fixed a memory leak where event channel destroy was not cleaning
- up the admins. This avoids circular reference counting problems
- similar to those described in the next entry.
-
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp (destroy):
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp (destroy):
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp (destroy):
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp (destroy):
- * orbsvcs/orbsvcs/Notify/ProxySupplier.cpp (destroy):
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp (destroy):
-
- Fixed exceptions=0 builds logical error in destroy methods and
- made certain all owned circular refcounted members are released
- in class::destroy methods.
-
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp (init):
-
- Prefer ACE_Auto_Ptr<> to auto_ptr<>.
-
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h (event_var_):
-
- Eliminated 'const'.
-
- * orbsvcs/orbsvcs/Notify/Method_Request_Event.h (CTOR):
- * orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp (CTOR):
-
- Changed potentially confusing name of argument; it had "_var"
- appended when it was really a pointer of sorts.
-
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
-
- Eliminated 'const' on event_var_ data member and changed
- potentially confusing name of local variable in copy() b/c it
- had "_var" appended when it was really a pointer of sorts.
-
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
-
- Changed the filterable_data_ and variable_header_
- maps. Previously they contained a CORBA::Any* which was not
- properly reference counted; the reference count was always one
- regardless of the number of threads using the Any. Now it is
- changed to contain the light-weighted CORBA::Any Object. Now the
- "bind" method for the map will pass in the value from
- StructuredEvent by value. Since the payload object of the
- CORBA::Any is reference counted, we are safe.
-
- This change fixed a Notification Service crash.
-
- * orbsvcs/orbsvcs/Notify/Object.h (lock_):
-
- Added new mutex to serialize access to state variables. In the
- past, the notification service reused mutexes for different
- purposes, allowing a mutex in one scope to be used in a
- different scope. When we started using reference counting on
- objects properly, these scopes occasionally crossed, creating
- deadlocks, race conditions, and all other sorts of mayhem
- associated with misuse of mutexes.
-
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp:
- * orbsvcs/orbsvcs/Notify/Peer.h:
- * orbsvcs/orbsvcs/Notify/Proxy.cpp:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp:
- * orbsvcs/tests/Notify/XML_Persistence/run_test.pl:
-
- Changed how the persistence specific methods handle nil object
- references - since TAO throws an exception with url ref styles
- on nil references.
-
- * orbsvcs/orbsvcs/Notify/README:
-
- Changed "ListenerThreads" to "SourceThreads".
-
- * orbsvcs/orbsvcs/Notify/Reactive_Task.h (timer_):
-
- Changed to private scope. There was no need for it to be
- anything but private.
-
- * orbsvcs/orbsvcs/Notify/Refcountable.h (TAO_Notify_Tracker):
- * orbsvcs/orbsvcs/Notify/Refcountable.cpp (TAO_Notify_Tracker):
-
- Added class to track reference counted objects in the
- notification service. This is disabled by default, and enabled
- by setting the preprocessor macro
- TAO_NOTIFY_REFCOUNT_DIAGNOSTICS to 1. Note that currently this
- class requires the availability of the STL map and string
- features.
-
- Use CORBA::Long for reference count rather than compilation
- environment's 'long'.
-
- * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
-
- Updates to use isSet() predicate on TAO_Notify_Event::Ptr.
-
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
-
- Remove the fix for zombie threads, and instead use THR_DETACHED
- to avoid the problem entirely.
-
- * orbsvcs/orbsvcs/Notify/Topology_Factory.h (DTOR):
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp:
-
- Add explicit virtual destructor to get around the problem in g++
- 4.0 where inlines get hidden. Without the virtual DTOR, this
- class does not get exported and code that dynamically loads
- classes derived from this class cannot access this type and
- access the derived instances through pointers of this type.
- This happens most notably when loading topology persistence
- mechanisms via the Service Configurator.
-
- The actual code for the do-nothing destructor is in
- EventChannelFactory.cpp. I did this because the only chunk of
- code that uses Topology_Factory is already in that file, and it
- didn't seem terribly reasonable to create a completely new file
- to hold a do-nothing implementation of a destructor.
-
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h:
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp:
-
- Added explicit virtual destructor for the same reasons as
- described immediately above.
-
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
-
- Changed ANY_CODE from being static to being
- scope-local.
-
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
-
- Removed asserts associated with parameters. If a param is not
- optional we throw a BAD_PARAM exception.
-
- * orbsvcs/tests/Notify/Basic/Basic.mpc:
- * orbsvcs/tests/Notify/XML_Persistence/XML_Persistence.mpc:
-
- Provide explicit exenames for each project. While not strictly
- required, this is "best practice" because it eliminates the need
- for MPC to open each source file and search for the pattern
- "*main*" to intuit an exename.
-
- * orbsvcs/tests/Notify/Basic/Sequence.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl:
- * orbsvcs/tests/Notify/XML_Persistence/main.cpp:
-
- Fix incorrect use of pacing interval and other test issues.
-
- * orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp:
-
- Fixed ACE_DEBUG printf-style message that had one too many
- arguments.
-
- * orbsvcs/tests/Notify/Reconnecting/event.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_mt_topo.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_st_topo.conf:
- * orbsvcs/tests/Notify/XML_Persistence/svc.conf:
-
- Changed name of factory function used to dynamically load
- persistence mechanism to be consistent with the new use of
- ACE_FACTORY_NAMESPACE_DEFINE.
-
- * orbsvcs/tests/Notify/XML_Persistence/run_test.pl:
-
- Use -ORBObjRefStyle url so that IORs will be comparable.
-
-Mon Nov 21 07:23:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h:
-
- Re-export TAO_SSLIOP_Transport class. It is currently used
- outside of the TAO_SSLIOP shared library by some of our
- regression tests.
-
-Fri Nov 18 19:27:29 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/lex.yy.cpp:
-
- Reverted change of
-
- Wed Nov 16 21:53:08 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- since it caused problems with Borland and Intel compilers.
- We'll try it again after the next beta, or when there is
- more time to track down the problems.
-
-Fri Nov 18 15:08:19 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/Typedef_String_Array/typedef_string_array.mpc:
-
- Added 'after' line to one of two projects that share an IDL
- file, to avoid concurrency problems with the VC8 build.
-
-Thu Nov 17 16:38:27 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/RTCORBA/MT_Client_Protocol_Priority/RTCORBA_MT_Client_Proto_Prio.mpc:
-
- Added 'after' line to one project to avoid concurrency clashes
- in IDL compiler execution when compiling with VC8.
-
-Thu Nov 17 07:57:13 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * docs/releasenotes/index.html:
-
- Added CSD feature to ORB related section.
-
-Thu Nov 17 06:55:53 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h:
- * orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h:
-
- Re-export the classes in these files. Addresses unresolved
- symbol errors in g++ 4.x builds.
-
-Thu Nov 17 06:49:02 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/SSLIOP/params_dup.h:
-
- Declare wrapper functions with their versioned namespace macro
- counterparts.
-
- * orbsvcs/orbsvcs/SSLIOP/params_dup.c:
-
- Include "params_dup.h" to pull in wrapper function names with
- versioned namespace support.
-
-Thu Nov 17 13:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Borland/ChatClient.mpc:
- New MPC file, add vcl=1 to your default.features and pass VCL=1
- to the make flags to build this
-
- * examples/Borland/README:
- Updated
-
-Thu Nov 17 12:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Borland/ChatClient.bpr:
- * examples/Borland/ChatClient.res:
- Updated to BCB6 format
-
-Wed Nov 16 21:53:08 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/lex.yy.cpp:
- * TAO_IDL/fe/lex.yy.cpp.diff:
-
- Since the change of
-
- Wed Nov 16 11:23:15 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- checked in a version of lex.yy.cpp that had been generated
- elsewhere, regenerated this file with the version of flex
- that's on tango.dre.vanderbilt.edu, and updated the
- corresponding diff file.
-
-Wed Nov 16 14:12:08 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl:
- * tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl:
-
- Rolled back the changes
- "Sun Nov 13 12:15:58 USMST 2005 Yan Dai <dai_y@ociweb.com>"
- made for debugging test failures on VxWorks build.
-
- * NEWS:
-
- Added description for CSD feature.
-
-Wed Nov 16 11:23:15 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/idl.ll:
- * TAO_IDL/fe/idl.yy.cpp:
-
- Applied patches submitted by Thomas Lockhart
- <Thomas.Lockhart@jpl.nasa.gov> to enable the IDL compiler's
- lexer to handle extra numeric fields produced by the gcc
- 4.0.1 preprocessor. Closes [BUGID:2294].
-
-Wed Nov 16 09:14:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp:
-
- Include "tao/ORB_Constants.h" to pull TAO::VMCID constant.
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h:
-
- Corrected typos in versioned namespace macros.
-
-Wed Nov 16 09:05:08 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h (Current):
-
- Removed "const" qualifier for tss_slot_ member. It must
- currently remain mutable.
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h:
-
- Include "tao/Versioned_Namespace.h" to pull in versioned
- namespace macro definitions.
-
-Wed Nov 16 14:52:32 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/NestedUpcall/Simple/Simple.mpc:
-
- Added 'after' line to one of the two projects in the MPC file,
- so VC8 doesn't execute the IDL compiler concurrently.
-
-Tue Nov 15 23:48:47 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.cpp:
- * orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.cpp:
-
- Removed empty files.
-
- * orbsvcs/orbsvcs/ETCL/ETCL.ll:
- * orbsvcs/orbsvcs/ETCL/ETCL.yy:
- * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
- * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp:
-
- Added missing versioned namespace macros.
-
- * orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp:
- * orbsvcs/orbsvcs/Property/CosPropertyService_i.h:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.cpp:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.h:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp:
- * orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.i:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.inl:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.inl:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.i:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.h:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.c:
- * orbsvcs/orbsvcs/SSLIOP/params_dup.h:
- * orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.cpp:
- * orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.h:
- * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp:
- * orbsvcs/orbsvcs/Sched/Config_Scheduler.h:
- * orbsvcs/orbsvcs/Sched/DynSched.cpp:
- * orbsvcs/orbsvcs/Sched/DynSched.h:
- * orbsvcs/orbsvcs/Sched/DynSched.i:
- * orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp:
- * orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.h:
- * orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp:
- * orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.h:
- * orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp:
- * orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.h:
- * orbsvcs/orbsvcs/Sched/SchedEntry.cpp:
- * orbsvcs/orbsvcs/Sched/SchedEntry.h:
- * orbsvcs/orbsvcs/Sched/SchedEntry.i:
- * orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp:
- * orbsvcs/orbsvcs/Sched/Scheduler_Generic.h:
- * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp:
- * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h:
- * orbsvcs/orbsvcs/Security/CSI_Utils.cpp:
- * orbsvcs/orbsvcs/Security/CSI_Utils.h:
- * orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp:
- * orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.h:
- * orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp:
- * orbsvcs/orbsvcs/Security/SL2_QOPPolicy.h:
- * orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp:
- * orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.h:
- * orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp:
- * orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h:
- * orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp:
- * orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h:
- * orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp:
- * orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.h:
- * orbsvcs/orbsvcs/Security/SL3_PolicyFactory.cpp:
- * orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h:
- * orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp:
- * orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.h:
- * orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.inl:
- * orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp:
- * orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h:
- * orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp:
- * orbsvcs/orbsvcs/Security/SL3_SecurityManager.h:
- * orbsvcs/orbsvcs/Security/Security_Current.cpp:
- * orbsvcs/orbsvcs/Security/Security_Current.h:
- * orbsvcs/orbsvcs/Security/Security_Current.inl:
- * orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp:
- * orbsvcs/orbsvcs/Security/Security_Current_Impl.h:
- * orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp:
- * orbsvcs/orbsvcs/Security/Security_ORBInitializer.h:
- * orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp:
- * orbsvcs/orbsvcs/Security/Security_PolicyFactory.h:
- * orbsvcs/orbsvcs/Time/TAO_TIO.cpp:
- * orbsvcs/orbsvcs/Time/TAO_TIO.h:
- * orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp:
- * orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.h:
- * orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp:
- * orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.h:
- * orbsvcs/orbsvcs/Time/TAO_UTO.cpp:
- * orbsvcs/orbsvcs/Time/TAO_UTO.h:
- * orbsvcs/orbsvcs/Time/Timer_Helper.cpp:
- * orbsvcs/orbsvcs/Time/Timer_Helper.h:
- * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp:
- * orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h:
- * orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp:
- * orbsvcs/orbsvcs/Trader/Constraint_Nodes.h:
- * orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Trader/Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Trader/Constraint_l.cpp:
- * orbsvcs/orbsvcs/Trader/Constraint_y.cpp:
- * orbsvcs/orbsvcs/Trader/Interpreter.cpp:
- * orbsvcs/orbsvcs/Trader/Interpreter.h:
- * orbsvcs/orbsvcs/Trader/Interpreter_Utils.cpp:
- * orbsvcs/orbsvcs/Trader/Interpreter_Utils.h:
- * orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.cpp:
- * orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.h:
- * orbsvcs/orbsvcs/Trader/Locking.h:
- * orbsvcs/orbsvcs/Trader/Offer_Database.cpp:
- * orbsvcs/orbsvcs/Trader/Offer_Database.h:
- * orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp:
- * orbsvcs/orbsvcs/Trader/Offer_Iterators.h:
- * orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp:
- * orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h:
- * orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp:
- * orbsvcs/orbsvcs/Trader/Service_Type_Repository.h:
- * orbsvcs/orbsvcs/Trader/Trader.cpp:
- * orbsvcs/orbsvcs/Trader/Trader.h:
- * orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp:
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.h:
- * orbsvcs/orbsvcs/Trader/Trader_T.cpp:
- * orbsvcs/orbsvcs/Trader/Trader_T.h:
- * orbsvcs/orbsvcs/Trader/Trader_Utils.cpp:
- * orbsvcs/orbsvcs/Trader/Trader_Utils.h:
- * orbsvcs/orbsvcs/Trader/constraint.l:
- * orbsvcs/orbsvcs/Trader/constraint.y:
-
- Added versioned namespace support.
-
-Tue Nov 15 07:44:59 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/tests/Bug_2285_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2287_Regression/Makefile.am:
-
- Regenerate with a separate project for compiling *.idl files.
- The corresponding *.mpc changes will be committed at a later
- date since the repo is frozen.
-
-Tue Nov 15 06:56:51 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/Makefile.am:
- * examples/POA/Explicit_Activation/Makefile.am:
- * orbsvcs/Naming_Service/Makefile.am:
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am:
- * orbsvcs/examples/Log/RTEvent/Makefile.am:
- * orbsvcs/examples/Notify/Lanes/Makefile.am:
- * orbsvcs/examples/Notify/ThreadPool/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/tests/Makefile.am:
- * orbsvcs/tests/Notify/Basic/Makefile.am:
- * orbsvcs/tests/Notify/Blocking/Makefile.am:
- * orbsvcs/tests/Notify/Destroy/Makefile.am:
- * orbsvcs/tests/Notify/Discarding/Makefile.am:
- * orbsvcs/tests/Notify/Driver/Makefile.am:
- * orbsvcs/tests/Notify/MT_Dispatching/Makefile.am:
- * orbsvcs/tests/Notify/Ordering/Makefile.am:
- * orbsvcs/tests/Notify/RT_lib/Makefile.am:
- * orbsvcs/tests/Notify/Reconnecting/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Structured_Filter/Makefile.am:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am:
- * orbsvcs/tests/Notify/lib/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile.am:
- * orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am:
- * orbsvcs/tests/Security/Crash_Test/Makefile.am:
- * orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am:
- * orbsvcs/tests/Security/Secure_Invocation/Makefile.am:
- * performance-tests/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
- * configure.ac:
-
- Add new files to AC_CONFIG_FILES.
-
- * examples/CSD_Strategy/Makefile.am:
- * examples/CSD_Strategy/ThreadPool/Makefile.am:
- * examples/CSD_Strategy/ThreadPool2/Makefile.am:
- * examples/CSD_Strategy/ThreadPool3/Makefile.am:
- * examples/CSD_Strategy/ThreadPool4/Makefile.am:
- * examples/CSD_Strategy/ThreadPool5/Makefile.am:
- * examples/CSD_Strategy/ThreadPool6/Makefile.am:
- * orbsvcs/tests/Bug_2074_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2285_Regression/Makefile.am:
- * orbsvcs/tests/Bug_2287_Regression/Makefile.am:
- * performance-tests/CSD_Strategy/Makefile.am:
- * performance-tests/CSD_Strategy/TestApps/Makefile.am:
- * performance-tests/CSD_Strategy/TestInf/Makefile.am:
- * performance-tests/CSD_Strategy/TestServant/Makefile.am:
-
- New files.
-
-Tue Nov 15 07:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/*:
- Handle sequences of forward declared object references and
- added some more unit tests
-
-Mon Nov 14 23:37:09 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp:
-
- Fixed memory leaks.
-
-Mon Nov 14 13:54:08 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Makefile.am (libTAO_PortableGroup_la_SOURCES):
- * orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.cpp:
-
- Removed empty map/set source files.
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/EventLogConsumer.cpp:
- * orbsvcs/orbsvcs/Log/EventLogConsumer.h:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/EventLogNotification.cpp:
- * orbsvcs/orbsvcs/Log/EventLogNotification.h:
- * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLog_i.h:
- * orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp:
- * orbsvcs/orbsvcs/Log/Hash_Iterator_i.h:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.h:
- * orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp:
- * orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h:
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
- * orbsvcs/orbsvcs/Log/Iterator_i.h:
- * orbsvcs/orbsvcs/Log/LogActivator.cpp:
- * orbsvcs/orbsvcs/Log/LogActivator.h:
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
- * orbsvcs/orbsvcs/Log/LogMgr_i.h:
- * orbsvcs/orbsvcs/Log/LogNotification.cpp:
- * orbsvcs/orbsvcs/Log/LogNotification.h:
- * orbsvcs/orbsvcs/Log/LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp:
- * orbsvcs/orbsvcs/Log/LogRecordStore_persist.h:
- * orbsvcs/orbsvcs/Log/LogStore.h:
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp:
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp:
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.h:
- * orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.h:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogNotification.h:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
- * orbsvcs/orbsvcs/Log/PersistStore.cpp:
- * orbsvcs/orbsvcs/Log/PersistStore.h:
- * orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogConsumer.h:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogNotification.h:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.cpp:
- * orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp:
- * orbsvcs/orbsvcs/Metrics/Metrics_Logger.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.i:
- * orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp:
- * orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.i:
- * orbsvcs/orbsvcs/Metrics/Metrics_Utils.cpp:
- * orbsvcs/orbsvcs/Metrics/Metrics_Utils.h:
- * orbsvcs/orbsvcs/Metrics/Metrics_Utils.i:
- * orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp:
- * orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h:
- * orbsvcs/orbsvcs/Naming/Entries.cpp:
- * orbsvcs/orbsvcs/Naming/Entries.h:
- * orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp:
- * orbsvcs/orbsvcs/Naming/Flat_File_Persistence.h:
- * orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp:
- * orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h:
- * orbsvcs/orbsvcs/Naming/Naming_Client.cpp:
- * orbsvcs/orbsvcs/Naming/Naming_Client.h:
- * orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp:
- * orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h:
- * orbsvcs/orbsvcs/Naming/Naming_Loader.cpp:
- * orbsvcs/orbsvcs/Naming/Naming_Loader.h:
- * orbsvcs/orbsvcs/Naming/Naming_Server.cpp:
- * orbsvcs/orbsvcs/Naming/Naming_Server.h:
- * orbsvcs/orbsvcs/Naming/Naming_Service_Container.cpp:
- * orbsvcs/orbsvcs/Naming/Naming_Service_Container.h:
- * orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp:
- * orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h:
- * orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp:
- * orbsvcs/orbsvcs/Naming/Persistent_Entries.h:
- * orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp:
- * orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.h:
- * orbsvcs/orbsvcs/Naming/Storable.h:
- * orbsvcs/orbsvcs/Naming/Storable.inl:
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp:
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h:
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.cpp:
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.h:
- * orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp:
- * orbsvcs/orbsvcs/Naming/Transient_Naming_Context.h:
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
- * orbsvcs/orbsvcs/Notify/Admin.h:
- * orbsvcs/orbsvcs/Notify/Admin.inl:
- * orbsvcs/orbsvcs/Notify/AdminProperties.cpp:
- * orbsvcs/orbsvcs/Notify/AdminProperties.h:
- * orbsvcs/orbsvcs/Notify/AdminProperties.inl:
- * orbsvcs/orbsvcs/Notify/Bit_Vector.cpp:
- * orbsvcs/orbsvcs/Notify/Bit_Vector.h:
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.h:
- * orbsvcs/orbsvcs/Notify/Builder.cpp:
- * orbsvcs/orbsvcs/Notify/Builder.h:
- * orbsvcs/orbsvcs/Notify/Consumer.cpp:
- * orbsvcs/orbsvcs/Notify/Consumer.h:
- * orbsvcs/orbsvcs/Notify/Consumer.inl:
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.h:
- * orbsvcs/orbsvcs/Notify/Consumer_Map.h:
- * orbsvcs/orbsvcs/Notify/Container_T.cpp:
- * orbsvcs/orbsvcs/Notify/Container_T.h:
- * orbsvcs/orbsvcs/Notify/Container_T.inl:
- * orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp:
- * orbsvcs/orbsvcs/Notify/CosNotify_Initializer.h:
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.h:
- * orbsvcs/orbsvcs/Notify/Default_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Default_Factory.h:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.cpp:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.h:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.inl:
- * orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp:
- * orbsvcs/orbsvcs/Notify/ETCL_Filter.h:
- * orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp:
- * orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h:
- * orbsvcs/orbsvcs/Notify/Event.cpp:
- * orbsvcs/orbsvcs/Notify/Event.h:
- * orbsvcs/orbsvcs/Notify/Event.inl:
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannel.h:
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.h:
- * orbsvcs/orbsvcs/Notify/EventType.cpp:
- * orbsvcs/orbsvcs/Notify/EventType.h:
- * orbsvcs/orbsvcs/Notify/EventType.inl:
- * orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp:
- * orbsvcs/orbsvcs/Notify/EventTypeSeq.h:
- * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Manager.h:
- * orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.h:
- * orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.inl:
- * orbsvcs/orbsvcs/Notify/Event_Map_T.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Map_T.h:
- * orbsvcs/orbsvcs/Notify/Event_Map_T.inl:
- * orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h:
- * orbsvcs/orbsvcs/Notify/Event_Persistence_Strategy.h:
- * orbsvcs/orbsvcs/Notify/Factory.h:
- * orbsvcs/orbsvcs/Notify/FilterAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/FilterAdmin.h:
- * orbsvcs/orbsvcs/Notify/FilterAdmin.inl:
- * orbsvcs/orbsvcs/Notify/FilterFactory.h:
- * orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp:
- * orbsvcs/orbsvcs/Notify/Find_Worker_T.h:
- * orbsvcs/orbsvcs/Notify/Find_Worker_T.inl:
- * orbsvcs/orbsvcs/Notify/ID_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/ID_Factory.h:
- * orbsvcs/orbsvcs/Notify/ID_Factory.inl:
- * orbsvcs/orbsvcs/Notify/Method_Request.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Event.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.inl:
- * orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp:
- * orbsvcs/orbsvcs/Notify/Name_Value_Pair.h:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.h:
- * orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h:
- * orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.h:
- * orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.h:
- * orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h:
- * orbsvcs/orbsvcs/Notify/Notify_Extensions.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Extensions.h:
- * orbsvcs/orbsvcs/Notify/Object.cpp:
- * orbsvcs/orbsvcs/Notify/Object.h:
- * orbsvcs/orbsvcs/Notify/Object.inl:
- * orbsvcs/orbsvcs/Notify/POA_Helper.cpp:
- * orbsvcs/orbsvcs/Notify/POA_Helper.h:
- * orbsvcs/orbsvcs/Notify/POA_Helper.inl:
- * orbsvcs/orbsvcs/Notify/Peer.cpp:
- * orbsvcs/orbsvcs/Notify/Peer.h:
- * orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp:
- * orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h:
- * orbsvcs/orbsvcs/Notify/Properties.cpp:
- * orbsvcs/orbsvcs/Notify/Properties.h:
- * orbsvcs/orbsvcs/Notify/Properties.inl:
- * orbsvcs/orbsvcs/Notify/Property.h:
- * orbsvcs/orbsvcs/Notify/PropertySeq.cpp:
- * orbsvcs/orbsvcs/Notify/PropertySeq.h:
- * orbsvcs/orbsvcs/Notify/PropertySeq.inl:
- * orbsvcs/orbsvcs/Notify/Property_Boolean.cpp:
- * orbsvcs/orbsvcs/Notify/Property_Boolean.h:
- * orbsvcs/orbsvcs/Notify/Property_Boolean.inl:
- * orbsvcs/orbsvcs/Notify/Property_T.cpp:
- * orbsvcs/orbsvcs/Notify/Property_T.h:
- * orbsvcs/orbsvcs/Notify/Property_T.inl:
- * orbsvcs/orbsvcs/Notify/Proxy.cpp:
- * orbsvcs/orbsvcs/Notify/Proxy.h:
- * orbsvcs/orbsvcs/Notify/Proxy.inl:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.h:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.inl:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer_T.h:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.h:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.inl:
- * orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier_T.h:
- * orbsvcs/orbsvcs/Notify/Proxy_T.cpp:
- * orbsvcs/orbsvcs/Notify/Proxy_T.h:
- * orbsvcs/orbsvcs/Notify/QoSProperties.cpp:
- * orbsvcs/orbsvcs/Notify/QoSProperties.h:
- * orbsvcs/orbsvcs/Notify/QoSProperties.inl:
- * orbsvcs/orbsvcs/Notify/RT_Builder.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Builder.h:
- * orbsvcs/orbsvcs/Notify/RT_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Factory.h:
- * orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Notify_Service.h:
- * orbsvcs/orbsvcs/Notify/RT_POA_Helper.cpp:
- * orbsvcs/orbsvcs/Notify/RT_POA_Helper.h:
- * orbsvcs/orbsvcs/Notify/RT_Properties.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Properties.h:
- * orbsvcs/orbsvcs/Notify/RT_Properties.inl:
- * orbsvcs/orbsvcs/Notify/Random_File.cpp:
- * orbsvcs/orbsvcs/Notify/Random_File.h:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.cpp:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.h:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.inl:
- * orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.cpp:
- * orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.h:
- * orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp:
- * orbsvcs/orbsvcs/Notify/Reconnection_Registry.h:
- * orbsvcs/orbsvcs/Notify/Refcountable.cpp:
- * orbsvcs/orbsvcs/Notify/Refcountable.h:
- * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h:
- * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.h:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.h:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h:
- * orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.cpp:
- * orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.h:
- * orbsvcs/orbsvcs/Notify/Seq_Worker_T.cpp:
- * orbsvcs/orbsvcs/Notify/Seq_Worker_T.h:
- * orbsvcs/orbsvcs/Notify/Seq_Worker_T.inl:
- * orbsvcs/orbsvcs/Notify/Service.cpp:
- * orbsvcs/orbsvcs/Notify/Service.h:
- * orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp:
- * orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h:
- * orbsvcs/orbsvcs/Notify/Supplier.cpp:
- * orbsvcs/orbsvcs/Notify/Supplier.h:
- * orbsvcs/orbsvcs/Notify/Supplier.inl:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.h:
- * orbsvcs/orbsvcs/Notify/Supplier_Map.h:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
- * orbsvcs/orbsvcs/Notify/Timer.h:
- * orbsvcs/orbsvcs/Notify/Timer_Queue.cpp:
- * orbsvcs/orbsvcs/Notify/Timer_Queue.h:
- * orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp:
- * orbsvcs/orbsvcs/Notify/Timer_Reactor.h:
- * orbsvcs/orbsvcs/Notify/Topology_Factory.h:
- * orbsvcs/orbsvcs/Notify/Topology_Loader.cpp:
- * orbsvcs/orbsvcs/Notify/Topology_Loader.h:
- * orbsvcs/orbsvcs/Notify/Topology_Object.cpp:
- * orbsvcs/orbsvcs/Notify/Topology_Object.h:
- * orbsvcs/orbsvcs/Notify/Topology_Object.inl:
- * orbsvcs/orbsvcs/Notify/Topology_Saver.cpp:
- * orbsvcs/orbsvcs/Notify/Topology_Saver.h:
- * orbsvcs/orbsvcs/Notify/Worker_Task.cpp:
- * orbsvcs/orbsvcs/Notify/Worker_Task.h:
- * orbsvcs/orbsvcs/Notify/XML_Loader.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Loader.h:
- * orbsvcs/orbsvcs/Notify/XML_Saver.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Saver.h:
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.h:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h:
- * orbsvcs/orbsvcs/PortableGroup/GOA.cpp:
- * orbsvcs/orbsvcs/PortableGroup/GOA.h:
- * orbsvcs/orbsvcs/PortableGroup/MIOP.cpp:
- * orbsvcs/orbsvcs/PortableGroup/MIOP.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.inl:
- * orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.inl:
- * orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Operators.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Operators.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl:
- * orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Set_Find.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PG_Utils.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_conf.h:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h:
- * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp:
- * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.i:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.i:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.h:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.h:
-
- Added versioned namespace support.
-
-Mon Nov 14 15:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_traits.cpp:
- * TAO_IDL/be/be_visitor_component/component_cs.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_cs.cpp:
- The first argument of Objref_Traits::marshal should be
- a const argument
-
-Mon Nov 14 09:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp:
- Fixed compile error with HPUX
-
-Mon Nov 14 07:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/mock_stream.{hpp,cpp}:
- * tests/Sequence_Unit_Tests/fwd_mock_reference.{hpp,cpp}:
- New mock_stream and fwd_mock_reference, needed for some more unit
- tests
-
-Sun Nov 13 12:15:58 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl:
-
- Changed the done() method to be oneway to see if this fixes TRANSIENT
- exception caught on VXWORKS builds.
-
- * tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl:
-
- Extended timeout for server process startup to see if this fixes
- server.ior not found problem on VXWORKS builds.
-
-Sat Nov 12 09:55:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Change "FaultTolerance/FT_IOGR_Property.i" to
- "FaultTolerance/FT_IOGR_Property.inl".
-
- Remove "ETCL/ETCL_Constraint.i".
-
-Sat Nov 12 01:34:26 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/CosLoadBalancing.mpc:
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_MonitorMap.cpp:
-
- Removed empty LoadBalancing/*Map.cpp source files.
-
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Listener.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/replace_key.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.inl:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/resolve_init.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.i:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.i:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.h:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h:
- * orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.cpp:
- * orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.h:
- * orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/AliasDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ArrayDef_i.h:
- * orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/AttributeDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ComponentContainer_i.h:
- * orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ComponentDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ComponentRepository_i.h:
- * orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ConstantDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ConsumesDef_i.h:
- * orbsvcs/orbsvcs/IFRService/Contained_i.cpp:
- * orbsvcs/orbsvcs/IFRService/Contained_i.h:
- * orbsvcs/orbsvcs/IFRService/Container_i.cpp:
- * orbsvcs/orbsvcs/IFRService/Container_i.h:
- * orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/EmitsDef_i.h:
- * orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/EnumDef_i.h:
- * orbsvcs/orbsvcs/IFRService/EventDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/EventDef_i.h:
- * orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/EventPortDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ExceptionDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ExtValueDef_i.h:
- * orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/FactoryDef_i.h:
- * orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/FinderDef_i.h:
- * orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/FixedDef_i.h:
- * orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/HomeDef_i.h:
- * orbsvcs/orbsvcs/IFRService/IDLType_i.cpp:
- * orbsvcs/orbsvcs/IFRService/IDLType_i.h:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.h:
- * orbsvcs/orbsvcs/IFRService/IRObject_i.cpp:
- * orbsvcs/orbsvcs/IFRService/IRObject_i.h:
- * orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp:
- * orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.h:
- * orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/InterfaceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ModuleDef_i.h:
- * orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/NativeDef_i.h:
- * orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/OperationDef_i.h:
- * orbsvcs/orbsvcs/IFRService/Options.cpp:
- * orbsvcs/orbsvcs/IFRService/Options.h:
- * orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.h:
- * orbsvcs/orbsvcs/IFRService/RecursDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/RecursDef_i.h:
- * orbsvcs/orbsvcs/IFRService/Repository_i.cpp:
- * orbsvcs/orbsvcs/IFRService/Repository_i.h:
- * orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/SequenceDef_i.h:
- * orbsvcs/orbsvcs/IFRService/StringDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/StringDef_i.h:
- * orbsvcs/orbsvcs/IFRService/StructDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/StructDef_i.h:
- * orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/TypedefDef_i.h:
- * orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/UnionDef_i.h:
- * orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/UsesDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ValueDef_i.h:
- * orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.h:
- * orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp:
- * orbsvcs/orbsvcs/IFRService/WstringDef_i.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Component.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.inl:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.inl:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.inl:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.inl:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Random.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp:
- * orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_conf.h:
-
- Added versioned namespace support.
-
-Fri Nov 11 08:55:05 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/CosEvent/CEC_Factory.h:
-
- Include "tao/Versioned_Namespace.h" for
- TAO_BEGIN_VERSIONED_NAMESPACE_DECL macro definition.
-
-Fri Nov 11 08:50:02 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp:
-
- Include "ace/OS_NS_unistd.h" for ACE_OS::getgid() prototype.
-
-Thu Nov 10 10:18:20 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp:
-
- Merged a bug fix from OCI 1.4a.
- "Thu Nov 10 02:34:04 2005 Ciju John <john_c@ociweb.com>"
-
-Thu Nov 10 10:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp:
- Fixed incorrect macro
-
-Wed Nov 9 22:34:24 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Channel_Clients_T.cpp:
- * orbsvcs/orbsvcs/Channel_Clients_T.h:
- * orbsvcs/orbsvcs/Channel_Clients_T.i:
- * orbsvcs/orbsvcs/Event_Service_Constants.h:
- * orbsvcs/orbsvcs/Event_Utilities.cpp:
- * orbsvcs/orbsvcs/Event_Utilities.h:
- * orbsvcs/orbsvcs/Event_Utilities.i:
- * orbsvcs/orbsvcs/IOR_Multicast.cpp:
- * orbsvcs/orbsvcs/IOR_Multicast.h:
- * orbsvcs/orbsvcs/Makefile.am:
- * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
- * orbsvcs/orbsvcs/Runtime_Scheduler.cpp:
- * orbsvcs/orbsvcs/Runtime_Scheduler.h:
- * orbsvcs/orbsvcs/Shutdown_Utilities.cpp:
- * orbsvcs/orbsvcs/Shutdown_Utilities.h:
- * orbsvcs/orbsvcs/Time_Utilities.cpp:
- * orbsvcs/orbsvcs/Time_Utilities.h:
- * orbsvcs/orbsvcs/Time_Utilities.i:
- * orbsvcs/orbsvcs/AV/AVStreams_i.cpp:
- * orbsvcs/orbsvcs/AV/AVStreams_i.h:
- * orbsvcs/orbsvcs/AV/AVStreams_i.i:
- * orbsvcs/orbsvcs/AV/AV_Core.cpp:
- * orbsvcs/orbsvcs/AV/AV_Core.h:
- * orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp:
- * orbsvcs/orbsvcs/AV/Endpoint_Strategy.h:
- * orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp:
- * orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h:
- * orbsvcs/orbsvcs/AV/Fill_ACE_QoS.cpp:
- * orbsvcs/orbsvcs/AV/Fill_ACE_QoS.h:
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp:
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.h:
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.i:
- * orbsvcs/orbsvcs/AV/Flows_T.cpp:
- * orbsvcs/orbsvcs/AV/Flows_T.h:
- * orbsvcs/orbsvcs/AV/MCast.cpp:
- * orbsvcs/orbsvcs/AV/MCast.h:
- * orbsvcs/orbsvcs/AV/MCast.i:
- * orbsvcs/orbsvcs/AV/Policy.cpp:
- * orbsvcs/orbsvcs/AV/Policy.h:
- * orbsvcs/orbsvcs/AV/Policy.i:
- * orbsvcs/orbsvcs/AV/Protocol_Factory.cpp:
- * orbsvcs/orbsvcs/AV/Protocol_Factory.h:
- * orbsvcs/orbsvcs/AV/QoS_UDP.cpp:
- * orbsvcs/orbsvcs/AV/QoS_UDP.h:
- * orbsvcs/orbsvcs/AV/QoS_UDP.i:
- * orbsvcs/orbsvcs/AV/RTCP.cpp:
- * orbsvcs/orbsvcs/AV/RTCP.h:
- * orbsvcs/orbsvcs/AV/RTCP_Channel.cpp:
- * orbsvcs/orbsvcs/AV/RTCP_Channel.h:
- * orbsvcs/orbsvcs/AV/RTCP_Packet.cpp:
- * orbsvcs/orbsvcs/AV/RTCP_Packet.h:
- * orbsvcs/orbsvcs/AV/RTP.cpp:
- * orbsvcs/orbsvcs/AV/RTP.h:
- * orbsvcs/orbsvcs/AV/Resource_Factory.h:
- * orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp:
- * orbsvcs/orbsvcs/AV/SCTP_SEQ.h:
- * orbsvcs/orbsvcs/AV/TCP.cpp:
- * orbsvcs/orbsvcs/AV/TCP.h:
- * orbsvcs/orbsvcs/AV/Transport.cpp:
- * orbsvcs/orbsvcs/AV/Transport.h:
- * orbsvcs/orbsvcs/AV/Transport.i:
- * orbsvcs/orbsvcs/AV/UDP.cpp:
- * orbsvcs/orbsvcs/AV/UDP.h:
- * orbsvcs/orbsvcs/AV/UDP.i:
- * orbsvcs/orbsvcs/AV/default_resource.cpp:
- * orbsvcs/orbsvcs/AV/default_resource.h:
- * orbsvcs/orbsvcs/AV/media_timer.cpp:
- * orbsvcs/orbsvcs/AV/media_timer.h:
- * orbsvcs/orbsvcs/AV/ntp-time.h:
- * orbsvcs/orbsvcs/AV/sfp.cpp:
- * orbsvcs/orbsvcs/AV/sfp.h:
- * orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp:
- * orbsvcs/orbsvcs/Concurrency/CC_Lock.h:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSet.h:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp:
- * orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp:
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_Defaults.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Factory.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i:
- * orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h:
- * orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.i:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h:
- * orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.i:
- * orbsvcs/orbsvcs/ESF/ESF_Defaults.h:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.i:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h:
- * orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.i:
- * orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h:
- * orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.i:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h:
- * orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.i:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.i:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_List.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.i:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h:
- * orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i:
- * orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h:
- * orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.i:
- * orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h:
- * orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.i:
- * orbsvcs/orbsvcs/ESF/ESF_Worker.cpp:
- * orbsvcs/orbsvcs/ESF/ESF_Worker.h:
- * orbsvcs/orbsvcs/ETCL/ETCL.ll:
- * orbsvcs/orbsvcs/ETCL/ETCL_Constraint.cpp:
- * orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i:
- * orbsvcs/orbsvcs/ETCL/ETCL_Constraint_Visitor.h:
- * orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.cpp:
- * orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h:
- * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Adapters.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Adapters.h:
- * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.i:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.i:
- * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.i:
- * orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp:
- * orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Defaults.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.i:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i:
- * orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.i:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp:
- * orbsvcs/orbsvcs/Event/ECG_UDP_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_EH.i:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.i:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.i:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl:
- * orbsvcs/orbsvcs/Event/EC_And_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_And_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Basic_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp:
- * orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.i:
- * orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Busy_Lock.cpp:
- * orbsvcs/orbsvcs/Event/EC_Busy_Lock.h:
- * orbsvcs/orbsvcs/Event/EC_Busy_Lock.i:
- * orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp:
- * orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h:
- * orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h:
- * orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Default_Factory.i:
- * orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h:
- * orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp:
- * orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h:
- * orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp:
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.i:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel.h:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.i:
- * orbsvcs/orbsvcs/Event/EC_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Filter.i:
- * orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp:
- * orbsvcs/orbsvcs/Event/EC_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Filter_Builder.i:
- * orbsvcs/orbsvcs/Event/EC_Gateway.cpp:
- * orbsvcs/orbsvcs/Event/EC_Gateway.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.i:
- * orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp:
- * orbsvcs/orbsvcs/Event/EC_Gateway_Sched.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.i:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.i:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.i:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.i:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.i:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.cpp:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i:
- * orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Negation_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Null_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp:
- * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h:
- * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.i:
- * orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.i:
- * orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp:
- * orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.i:
- * orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp:
- * orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.i:
- * orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h:
- * orbsvcs/orbsvcs/Event/EC_ProxyConsumer.i:
- * orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp:
- * orbsvcs/orbsvcs/Event/EC_ProxySupplier.h:
- * orbsvcs/orbsvcs/Event/EC_ProxySupplier.i:
- * orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp:
- * orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h:
- * orbsvcs/orbsvcs/Event/EC_QOS_Info.h:
- * orbsvcs/orbsvcs/Event/EC_QOS_Info.i:
- * orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp:
- * orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.i:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp:
- * orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.i:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h:
- * orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_Sched_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Sched_Factory.i:
- * orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Sched_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp:
- * orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.i:
- * orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp:
- * orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h:
- * orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h:
- * orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp:
- * orbsvcs/orbsvcs/Event/EC_SupplierControl.h:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter.i:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.h:
- * orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h:
- * orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp:
- * orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h:
- * orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.i:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Filter.i:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Generator.i:
- * orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp:
- * orbsvcs/orbsvcs/Event/EC_Type_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp:
- * orbsvcs/orbsvcs/Event/EC_UDP_Admin.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.i:
- * orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.inl:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.i:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.inl:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h:
-
- Added versioned namespace support.
-
-Wed Nov 9 22:54:43 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_ThreadPool/CSD_TP_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.h:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.inl:
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp:
-
- Merged changes from OCI TAO 1.4a that optionally supports the
- serialization of requests. (See OCIChangeLog entry
- "Mon Nov 7 09:31:11 MST 2005 Tim Bradley <bradley_t@ociweb.com>"
- for details.)
-
-Wed Nov 9 15:59:01 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * tests/Bug_2234_Regression/client.cpp
-
- Fixed a warning on the OS X build.
-
-Wed Nov 9 13:39:13 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * examples/CSD_Strategy/ThreadPool4/Foo.idl:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool5/Foo.idl:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.h:
-
- Added exception raise to test_callback() in idl. This would fix the
- warnings on borland builds.
-
-Wed Nov 9 10:20:05 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc:
-
- Removed duplicated dependency on pi and codecfactory and removed
- dependency on interceptors since it's not needed and it makes the
- test library not built on minumum corba build.
-
-Wed Nov 9 14:57:54 2005 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2289_Regression/Bug_2289_Regression.mpc:
- * tests/Bug_2289_Regression/MyInterfaceImpl.cpp:
- * tests/Bug_2289_Regression/MyInterfaceImpl.h:
- * tests/Bug_2289_Regression/README:
- * tests/Bug_2289_Regression/Test.idl:
- * tests/Bug_2289_Regression/client.cpp:
-
- Updated this test so it doesn't need handcrafted code.
-
- * tests/Bug_2289_Regression/MyStruct.idl:
- * tests/Bug_2289_Regression/MyStructC.cpp:
- * tests/Bug_2289_Regression/MyStructC.h:
- * tests/Bug_2289_Regression/MyStructC.inl:
- * tests/Bug_2289_Regression/MyStructS.cpp:
- * tests/Bug_2289_Regression/MyStructS.h:
- * tests/Bug_2289_Regression/MyStructS.inl:
- * tests/Bug_2289_Regression/MyStructS_T.cpp:
- * tests/Bug_2289_Regression/MyStructS_T.h:
- * tests/Bug_2289_Regression/MyStructS_T.inl:
-
- Removed these files. They are no longer needed.
-
-Wed Nov 9 14:25:41 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/IDL_Test/constants.idl:
-
- Reverted the change of
-
- Tue Nov 8 20:11:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- since that constant value is being used to address an Intel compiler
- bug, and the value itself is a legal one. Thanks to Johnny Willemsen
- <jwillemsen@remedy.nl> for pointing this out.
-
-Tue Nov 8 20:11:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tests/IDL_Test/constants.idl:
-
- Changed the literal rhs for one of the constants
- to a value that won't challenge compilers that are not
- compliant with the ANSI/IEEE minimum positive value for
- double. This change should eliminate a warning on
- SuSE 9.3 ICC90.
-
-Tue Nov 8 11:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2074_Regression/Bug_2074_Regression.mpc:
- Added minimum_corba as base project
-
-Tue Nov 8 10:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Big_Request_Muxing/server.cpp:
- Slightly changed this server, when we directly have all expected
- messages then there is no need to wait for anymore. If we don't
- have all messages, we print how many we have and then we run
- the orb for another 5 seconds to see if we get extra messages
-
-Tue Nov 8 10:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp:
- Reimplemented the copy constructor and implemented the assignment
- operator in terms of using the copy constructor
-
-Tue Nov 8 10:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Makefile.am:
- Removed POA_Current.inl
-
-Tue Nov 8 08:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp:
- Changed test_get_buffer_true_with_release_false to use
- a BOOST_CHECK to chekd that we correctly return a null pointer
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp:
- Trying to test the normal sequence behaviour and the special
- TAO optimization when TAO_NO_COPY_OCTET_SEQUENCES in one file
- will make things hard to maintain, this file now just tests
- the default behaviour, the special behaviour is now done in the
- new unit test listed below.
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp:
- New unit test file
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp:
- Fixed get_buffer()
-
- * tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc:
- * tests/Sequence_Unit_Tests/run_test.pl:
- Added the new unit test
-
-Tue Nov 8 08:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp:
- Specialization for unbounded octet sequences, enabled when
- TAO_NO_COPY_OCTET_SEQUENCES is defined to 1. This is not
- ready yet, but this way it is easier to share the code
- and build it on multiple systems
-
- * tests/Sequence_Unit_Tests/Unbounded_Octet.cpp:
- Include unbounded_octet_sequences.hpp
-
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp:
- Added a first extra test for when TAO_NO_COPY_OCTET_SEQUENCES
- is defined
-
-Tue Nov 8 08:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp:
- * tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp:
- * tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp:
- Made these unit tests working with boost 1.33
-
- * tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp:
- Enabled the explicit for the single argument constructor
-
- * tests/Sequence_Unit_Tests/run_test.pl:
- Reduced test time to 10 seconds, long enough
-
-Tue Nov 8 08:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp:
- Fixed compile error on Solaris
-
-Mon Nov 7 16:25:38 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc
- * orbsvcs/tests/Notify/lib/Notify_lib.mpc
- * orbsvcs/tests/Security/Crash_Test/Security_Crash_Test.mpc
- * orbsvcs/tests/Security/MT_IIOP_SSL/MT_IIOP_SSL.mpc
- * orbsvcs/tests/Security/Secure_Invocation/Secure_Invocation.mpc
- * orbsvcs/tests/Trading/Trading.mpc
- * performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc
-
- Fixes for linking problems on OS X.
-
-Mon Nov 7 12:07:44 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/PortableServer/POA_Current.h (POA_Current):
-
- Re-exported this class. Unfortunately, some other TAO libraries
- make direct calls on this class. Addresses unresolved symbol
- errors.
-
- * tao/PortableServer/POA_Current.inl:
-
- Removed this unused file.
-
-Mon Nov 7 19:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp:
- Extended test_get_buffer_true_with_release_true test
-
-Mon Nov 7 08:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp:
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp:
- * orbsvcs/tests/Notify/lib/EventChannel_Command.cpp:
- Fixed warning in MinGW build
-
-Mon Nov 7 08:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/Thread_Pool.{h,inl}:
- Don't export TAO_Thread_Pool_Threads and removed
- threads accessor it exposes internal data
- and current_threads modifier which just is invalid todo
-
-Mon Nov 7 00:54:58 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * examples/CSD_Strategy/ThreadPool4/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.cpp:
-
- Fixed warnings that complains mis-use of throw expression.
-
-Sun Nov 6 14:34:51 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/field_ch.cpp:
- * TAO_IDLbe/be_visitor_valuetype/field_cs.cpp:
-
- Made the generated signature of member mutators
- consistent with IN parameter semantics.
-
-Sat Nov 5 01:43:59 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/PI/ClientRequestInfo.h (TAO_ClientRequestInfo):
-
- Re-exported this class. TAO's FT client side requires access to
- it.
-
-Fri Nov 4 11:57:12 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Versioned_Namespace.h:
-
- Added TAO_ORBCONF_H include/define sanity check.
-
- * tao/Utils/Synch_Refcountable.h:
-
- Include "tao/Versioned_Namespace.h" to pull in versioned
- namespace macros.
-
-Fri Nov 4 10:31:15 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/SmartProxies/Smart_Proxies.h:
- * tao/SmartProxies/Smart_Proxies.inl:
- * tao/Strategies/DIOP_Acceptor.cpp:
- * tao/Strategies/DIOP_Acceptor.h:
- * tao/Strategies/DIOP_Acceptor.i:
- * tao/Strategies/DIOP_Connection_Handler.cpp:
- * tao/Strategies/DIOP_Connection_Handler.h:
- * tao/Strategies/DIOP_Connector.cpp:
- * tao/Strategies/DIOP_Connector.h:
- * tao/Strategies/DIOP_Endpoint.cpp:
- * tao/Strategies/DIOP_Endpoint.h:
- * tao/Strategies/DIOP_Endpoint.i:
- * tao/Strategies/DIOP_Factory.cpp:
- * tao/Strategies/DIOP_Factory.h:
- * tao/Strategies/DIOP_Profile.cpp:
- * tao/Strategies/DIOP_Profile.h:
- * tao/Strategies/DIOP_Transport.cpp:
- * tao/Strategies/DIOP_Transport.h:
- * tao/Strategies/FIFO_Connection_Purging_Strategy.cpp:
- * tao/Strategies/FIFO_Connection_Purging_Strategy.h:
- * tao/Strategies/LFU_Connection_Purging_Strategy.cpp:
- * tao/Strategies/LFU_Connection_Purging_Strategy.h:
- * tao/Strategies/LF_Strategy_Null.cpp:
- * tao/Strategies/LF_Strategy_Null.h:
- * tao/Strategies/NULL_Connection_Purging_Strategy.cpp:
- * tao/Strategies/NULL_Connection_Purging_Strategy.h:
- * tao/Strategies/SCIOP_Acceptor.cpp:
- * tao/Strategies/SCIOP_Acceptor.h:
- * tao/Strategies/SCIOP_Acceptor.i:
- * tao/Strategies/SCIOP_Connection_Handler.cpp:
- * tao/Strategies/SCIOP_Connection_Handler.h:
- * tao/Strategies/SCIOP_Connector.cpp:
- * tao/Strategies/SCIOP_Connector.h:
- * tao/Strategies/SCIOP_Endpoint.cpp:
- * tao/Strategies/SCIOP_Endpoint.h:
- * tao/Strategies/SCIOP_Endpoint.i:
- * tao/Strategies/SCIOP_Factory.cpp:
- * tao/Strategies/SCIOP_Factory.h:
- * tao/Strategies/SCIOP_Lite_Factory.cpp:
- * tao/Strategies/SCIOP_Lite_Factory.h:
- * tao/Strategies/SCIOP_Profile.cpp:
- * tao/Strategies/SCIOP_Profile.h:
- * tao/Strategies/SCIOP_Transport.cpp:
- * tao/Strategies/SCIOP_Transport.h:
- * tao/Strategies/SHMIOP_Acceptor.cpp:
- * tao/Strategies/SHMIOP_Acceptor.h:
- * tao/Strategies/SHMIOP_Connection_Handler.cpp:
- * tao/Strategies/SHMIOP_Connection_Handler.h:
- * tao/Strategies/SHMIOP_Connector.cpp:
- * tao/Strategies/SHMIOP_Connector.h:
- * tao/Strategies/SHMIOP_Endpoint.cpp:
- * tao/Strategies/SHMIOP_Endpoint.h:
- * tao/Strategies/SHMIOP_Endpoint.i:
- * tao/Strategies/SHMIOP_Factory.cpp:
- * tao/Strategies/SHMIOP_Factory.h:
- * tao/Strategies/SHMIOP_Profile.cpp:
- * tao/Strategies/SHMIOP_Profile.h:
- * tao/Strategies/SHMIOP_Transport.cpp:
- * tao/Strategies/SHMIOP_Transport.h:
- * tao/Strategies/UIOP_Acceptor.cpp:
- * tao/Strategies/UIOP_Acceptor.h:
- * tao/Strategies/UIOP_Connection_Handler.cpp:
- * tao/Strategies/UIOP_Connection_Handler.h:
- * tao/Strategies/UIOP_Connector.cpp:
- * tao/Strategies/UIOP_Connector.h:
- * tao/Strategies/UIOP_Endpoint.cpp:
- * tao/Strategies/UIOP_Endpoint.h:
- * tao/Strategies/UIOP_Endpoint.i:
- * tao/Strategies/UIOP_Factory.cpp:
- * tao/Strategies/UIOP_Factory.h:
- * tao/Strategies/UIOP_Lite_Factory.cpp:
- * tao/Strategies/UIOP_Lite_Factory.h:
- * tao/Strategies/UIOP_Profile.cpp:
- * tao/Strategies/UIOP_Profile.h:
- * tao/Strategies/UIOP_Transport.cpp:
- * tao/Strategies/UIOP_Transport.h:
- * tao/Strategies/advanced_resource.cpp:
- * tao/Strategies/advanced_resource.h:
- * tao/TypeCodeFactory/Recursive_TypeCode.cpp:
- * tao/TypeCodeFactory/Recursive_TypeCode.h:
- * tao/TypeCodeFactory/Recursive_TypeCode.inl:
- * tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp:
- * tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h:
- * tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp:
- * tao/TypeCodeFactory/TypeCodeFactory_Loader.h:
- * tao/TypeCodeFactory/TypeCodeFactory_i.cpp:
- * tao/TypeCodeFactory/TypeCodeFactory_i.h:
- * tao/Utils/Encodable.cpp:
- * tao/Utils/Encodable.h:
- * tao/Utils/Implicit_Deactivator.cpp:
- * tao/Utils/Implicit_Deactivator.h:
- * tao/Utils/ORB_Destroyer.cpp:
- * tao/Utils/ORB_Destroyer.h:
- * tao/Utils/ORB_Manager.cpp:
- * tao/Utils/ORB_Manager.h:
- * tao/Utils/PolicyList_Destroyer.cpp:
- * tao/Utils/PolicyList_Destroyer.inl:
- * tao/Utils/RIR_Narrow.cpp:
- * tao/Utils/RIR_Narrow.h:
- * tao/Utils/Servant_Var.h:
- * tao/Utils/Servant_Var.inl:
- * tao/Utils/Synch_Refcountable.cpp:
- * tao/Utils/Synch_Refcountable.h:
- * tao/Utils/Synch_Refcountable.inl:
- * tao/Valuetype/AbstractBase.cpp:
- * tao/Valuetype/AbstractBase.h:
- * tao/Valuetype/AbstractBase.inl:
- * tao/Valuetype/AbstractBase_Invocation_Adapter.cpp:
- * tao/Valuetype/AbstractBase_Invocation_Adapter.h:
- * tao/Valuetype/AbstractBase_T.cpp:
- * tao/Valuetype/AbstractBase_T.h:
- * tao/Valuetype/Sequence_T.cpp:
- * tao/Valuetype/Sequence_T.h:
- * tao/Valuetype/Sequence_T.inl:
- * tao/Valuetype/ValueBase.cpp:
- * tao/Valuetype/ValueBase.h:
- * tao/Valuetype/ValueBase.inl:
- * tao/Valuetype/ValueFactory.cpp:
- * tao/Valuetype/ValueFactory.h:
- * tao/Valuetype/ValueFactory_Map.cpp:
- * tao/Valuetype/ValueFactory_Map.h:
- * tao/Valuetype/Value_CORBA_methods.h:
- * tao/Valuetype/Value_VarOut_T.cpp:
- * tao/Valuetype/Value_VarOut_T.h:
- * tao/Valuetype/Valuetype_Adapter_Impl.cpp:
- * tao/Valuetype/Valuetype_Adapter_Impl.h:
-
- Added remaining core TAO library versioned namespace support.
-
-Fri Nov 4 10:13:43 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/RTScheduling/Request_Interceptor.h (Client_Interceptor):
-
- Re-exported this class. The export declaration was
- inadvertently removed.
-
-Fri Nov 4 08:59:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/ORB_Core.i (add_tss_cleanup_func):
- * tao/ORB_Core.cpp (add_tss_cleanup_func):
-
- Moved this method out of line. Allows the
- TAO_Cleanup_Func_Registry class to remain unexported from the
- TAO DLL.
-
- * tao/AnyTypeCode/TypeCode_Constants.h (_tc_UnknownUserException):
-
- Removed this forward declaration. It's DLL linkage ends up
- differing from the same declaration in the DynamicInterface
- library. Addresses "inconsistent dll linkage" warnings from
- VC++.
-
- * tao/PortableServer/POA_Current_Impl.h (POA_Current_Impl):
-
- Re-exported this class. Unfortunately, some other TAO libraries
- make direct calls on this class. Addresses unresolved symbol
- errors.
-
-Fri Nov 4 16:56:06 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/field_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/field_cs.cpp:
-
- Added a 'const' qualifier to the generated member mutator
- argument for array member types, since this arguement has
- the same semantics as an 'in' operation argument.
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp:
- * TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h:
-
- Change generation of the initializing constructor definition to
- simply call the corresponding member mutators in the constructor
- body. This change allows reuse of the copy semantics already
- generated in the various member mutator methods, and as a side
- effect, avoids a VC6 compiler bug that complained when we had
- a call to the base class initializing constructor in the
- derived constructor's initialization list.
-
-Thu Nov 3 22:17:27 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * performance-tests/Cubit/TAO/DII_Cubit/client.cpp:
- * performance-tests/Latency/DII/client.cpp:
- * performance-tests/Latency/DSI/Roundtrip.cpp:
- * performance-tests/Latency/Deferred/client.cpp:
- * performance-tests/Sequence_Latency/DII/client.cpp:
- * performance-tests/Sequence_Latency/DSI/Roundtrip.cpp:
- * performance-tests/Sequence_Latency/Deferred/client.cpp:
- * tests/CDR/tc.cpp:
- * tests/DynAny_Test/data.h:
- * tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.cpp:
-
- Include "TypeCode_Constants.h" instead of
- "TC_Constants_Forward.h". The latter is deprecated.
-
-Thu Nov 3 22:06:44 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/AnyTypeCode/TC_Constants_Forward.h:
-
- Reintroduced this header as a backward compatibility header that
- includes "tao/AnyTypeCode/TypeCode_Constants.h".
-
-Thu Nov 3 19:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2084_Regression/Hello.cpp:
- Fixed variable not used warning
-
-Thu Nov 3 12:17:09 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_Framework.mpc:
-
- Removed interceptor as the base project since it's not needed.
-
-Thu Nov 3 09:26:21 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h:
- * orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h:
- * orbsvcs/orbsvcs/Event/EC_And_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Negation_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Sched_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Type_Filter.h:
- * orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h:
- * orbsvcs/orbsvcs/Naming/Naming_Loader.h:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp:
- * orbsvcs/orbsvcs/Sched/DynSched.h:
- * orbsvcs/orbsvcs/Sched/Scheduler.h:
- * orbsvcs/orbsvcs/Sched/Scheduler_Generic.h:
- * orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h:
- * orbsvcs/orbsvcs/Security/Security_Current.h:
- * orbsvcs/orbsvcs/Trader/Trader_Interfaces.h:
- * orbsvcs/orbsvcs/Trader/Trading_Loader.h:
-
- Removed unnecessary uses of ACE_UNIMPLEMENTED_FUNC macro. It is
- only meant to be used for private unimplemented member functions
- in class templates.
-
- * tao/Collocated_Invocation.h:
- * tao/Connector_Registry.h:
- * tao/Object_Ref_Table.h:
- * tao/PolicyFactory_Registry_Factory.cpp:
- * tao/PolicyFactory_Registry_Factory.h:
- * tao/Profile.h:
- * tao/Resource_Factory.h:
- * tao/Stub.h:
- * tao/TSS_Resources.h:
- * tao/Transport.h:
- * tao/Wait_On_LF_No_Upcall.cpp:
- * tao/AnyTypeCode/Alias_TypeCode.cpp:
- * tao/AnyTypeCode/Alias_TypeCode.h:
- * tao/AnyTypeCode/Alias_TypeCode.inl:
- * tao/AnyTypeCode/Alias_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Alias_TypeCode_Static.h:
- * tao/AnyTypeCode/Alias_TypeCode_Static.inl:
- * tao/AnyTypeCode/Any.cpp:
- * tao/AnyTypeCode/Any.h:
- * tao/AnyTypeCode/Any.inl:
- * tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp:
- * tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h:
- * tao/AnyTypeCode/AnyTypeCode_methods.h:
- * tao/AnyTypeCode/Any_Arg_Traits.h:
- * tao/AnyTypeCode/Any_Array_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Array_Impl_T.h:
- * tao/AnyTypeCode/Any_Array_Impl_T.inl:
- * tao/AnyTypeCode/Any_Basic_Impl.cpp:
- * tao/AnyTypeCode/Any_Basic_Impl.h:
- * tao/AnyTypeCode/Any_Basic_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Basic_Impl_T.h:
- * tao/AnyTypeCode/Any_Basic_Impl_T.inl:
- * tao/AnyTypeCode/Any_Dual_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Dual_Impl_T.h:
- * tao/AnyTypeCode/Any_Dual_Impl_T.inl:
- * tao/AnyTypeCode/Any_Impl.cpp:
- * tao/AnyTypeCode/Any_Impl.h:
- * tao/AnyTypeCode/Any_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Special_Impl_T.cpp:
- * tao/AnyTypeCode/Any_Special_Impl_T.h:
- * tao/AnyTypeCode/Any_Special_Impl_T.inl:
- * tao/AnyTypeCode/Any_SystemException.cpp:
- * tao/AnyTypeCode/Any_SystemException.h:
- * tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp:
- * tao/AnyTypeCode/Any_Unknown_IDL_Type.h:
- * tao/AnyTypeCode/Empty_Param_TypeCode.cpp:
- * tao/AnyTypeCode/Empty_Param_TypeCode.h:
- * tao/AnyTypeCode/Empty_Param_TypeCode.inl:
- * tao/AnyTypeCode/Enum_TypeCode.cpp:
- * tao/AnyTypeCode/Enum_TypeCode.h:
- * tao/AnyTypeCode/Enum_TypeCode.inl:
- * tao/AnyTypeCode/Enum_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Enum_TypeCode_Static.h:
- * tao/AnyTypeCode/Enum_TypeCode_Static.inl:
- * tao/AnyTypeCode/Fixed_TypeCode.cpp:
- * tao/AnyTypeCode/Fixed_TypeCode.h:
- * tao/AnyTypeCode/Fixed_TypeCode.inl:
- * tao/AnyTypeCode/Marshal.cpp:
- * tao/AnyTypeCode/Marshal.h:
- * tao/AnyTypeCode/Marshal.inl:
- * tao/AnyTypeCode/NVList.cpp:
- * tao/AnyTypeCode/NVList.h:
- * tao/AnyTypeCode/NVList.inl:
- * tao/AnyTypeCode/NVList_Adapter_Impl.cpp:
- * tao/AnyTypeCode/NVList_Adapter_Impl.h:
- * tao/AnyTypeCode/Null_RefCount_Policy.h:
- * tao/AnyTypeCode/Objref_TypeCode.cpp:
- * tao/AnyTypeCode/Objref_TypeCode.h:
- * tao/AnyTypeCode/Objref_TypeCode.inl:
- * tao/AnyTypeCode/Objref_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Objref_TypeCode_Static.h:
- * tao/AnyTypeCode/Objref_TypeCode_Static.inl:
- * tao/AnyTypeCode/Recursive_Type_TypeCode.cpp:
- * tao/AnyTypeCode/Recursive_Type_TypeCode.h:
- * tao/AnyTypeCode/Recursive_Type_TypeCode.inl:
- * tao/AnyTypeCode/RefCount_Policy_Traits.h:
- * tao/AnyTypeCode/Sequence_TypeCode.cpp:
- * tao/AnyTypeCode/Sequence_TypeCode.h:
- * tao/AnyTypeCode/Sequence_TypeCode.inl:
- * tao/AnyTypeCode/Sequence_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Sequence_TypeCode_Static.h:
- * tao/AnyTypeCode/Sequence_TypeCode_Static.inl:
- * tao/AnyTypeCode/String_TypeCode.cpp:
- * tao/AnyTypeCode/String_TypeCode.h:
- * tao/AnyTypeCode/String_TypeCode.inl:
- * tao/AnyTypeCode/String_TypeCode_Static.cpp:
- * tao/AnyTypeCode/String_TypeCode_Static.h:
- * tao/AnyTypeCode/String_TypeCode_Static.inl:
- * tao/AnyTypeCode/Struct_TypeCode.cpp:
- * tao/AnyTypeCode/Struct_TypeCode.h:
- * tao/AnyTypeCode/Struct_TypeCode.inl:
- * tao/AnyTypeCode/Struct_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Struct_TypeCode_Static.h:
- * tao/AnyTypeCode/Struct_TypeCode_Static.inl:
- * tao/AnyTypeCode/True_RefCount_Policy.cpp:
- * tao/AnyTypeCode/True_RefCount_Policy.h:
- * tao/AnyTypeCode/True_RefCount_Policy.inl:
- * tao/AnyTypeCode/TypeCode.cpp:
- * tao/AnyTypeCode/TypeCode.h:
- * tao/AnyTypeCode/TypeCode.inl:
- * tao/AnyTypeCode/TypeCode_Base_Attributes.h:
- * tao/AnyTypeCode/TypeCode_Base_Attributes.inl:
- * tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp:
- * tao/AnyTypeCode/TypeCode_CDR_Extraction.h:
- * tao/AnyTypeCode/TypeCode_Case_Base_T.cpp:
- * tao/AnyTypeCode/TypeCode_Case_Base_T.h:
- * tao/AnyTypeCode/TypeCode_Case_Base_T.inl:
- * tao/AnyTypeCode/TypeCode_Case_T.cpp:
- * tao/AnyTypeCode/TypeCode_Case_T.h:
- * tao/AnyTypeCode/TypeCode_Case_T.inl:
- * tao/AnyTypeCode/TypeCode_Constants.h:
- * tao/AnyTypeCode/TypeCode_Struct_Field.h:
- * tao/AnyTypeCode/TypeCode_Traits.h:
- * tao/AnyTypeCode/TypeCode_Value_Field.h:
- * tao/AnyTypeCode/Union_TypeCode.cpp:
- * tao/AnyTypeCode/Union_TypeCode.h:
- * tao/AnyTypeCode/Union_TypeCode.inl:
- * tao/AnyTypeCode/Union_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Union_TypeCode_Static.h:
- * tao/AnyTypeCode/Union_TypeCode_Static.inl:
- * tao/AnyTypeCode/Value_TypeCode.cpp:
- * tao/AnyTypeCode/Value_TypeCode.h:
- * tao/AnyTypeCode/Value_TypeCode.inl:
- * tao/AnyTypeCode/Value_TypeCode_Static.cpp:
- * tao/AnyTypeCode/Value_TypeCode_Static.h:
- * tao/AnyTypeCode/Value_TypeCode_Static.inl:
- * tao/AnyTypeCode/append.cpp:
- * tao/AnyTypeCode/skip.cpp:
- * tao/BiDir_GIOP/BiDirGIOP.cpp:
- * tao/BiDir_GIOP/BiDirGIOP.h:
- * tao/BiDir_GIOP/BiDirPolicy_Validator.cpp:
- * tao/BiDir_GIOP/BiDirPolicy_Validator.h:
- * tao/BiDir_GIOP/BiDir_ORBInitializer.cpp:
- * tao/BiDir_GIOP/BiDir_ORBInitializer.h:
- * tao/BiDir_GIOP/BiDir_PolicyFactory.cpp:
- * tao/BiDir_GIOP/BiDir_PolicyFactory.h:
- * tao/BiDir_GIOP/BiDir_Policy_i.cpp:
- * tao/BiDir_GIOP/BiDir_Policy_i.h:
- * tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp:
- * tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h:
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp:
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h:
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl:
- * tao/CSD_Framework/CSD_Framework_Loader.cpp:
- * tao/CSD_Framework/CSD_Framework_Loader.h:
- * tao/CSD_Framework/CSD_ORBInitializer.cpp:
- * tao/CSD_Framework/CSD_ORBInitializer.h:
- * tao/CSD_Framework/CSD_Object_Adapter.cpp:
- * tao/CSD_Framework/CSD_Object_Adapter.h:
- * tao/CSD_Framework/CSD_Object_Adapter_Factory.cpp:
- * tao/CSD_Framework/CSD_Object_Adapter_Factory.h:
- * tao/CSD_Framework/CSD_POA.cpp:
- * tao/CSD_Framework/CSD_POA.h:
- * tao/CSD_Framework/CSD_POA.inl:
- * tao/CSD_Framework/CSD_Strategy_Base.cpp:
- * tao/CSD_Framework/CSD_Strategy_Base.h:
- * tao/CSD_Framework/CSD_Strategy_Base.inl:
- * tao/CSD_Framework/CSD_Strategy_Proxy.cpp:
- * tao/CSD_Framework/CSD_Strategy_Proxy.h:
- * tao/CSD_Framework/CSD_Strategy_Proxy.inl:
- * tao/CSD_Framework/CSD_Strategy_Repository.cpp:
- * tao/CSD_Framework/CSD_Strategy_Repository.h:
- * tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h:
- * tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Corba_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Corba_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h:
- * tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl:
- * tao/CSD_ThreadPool/CSD_TP_Queue.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Queue.h:
- * tao/CSD_ThreadPool/CSD_TP_Queue.inl:
- * tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h:
- * tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl:
- * tao/CSD_ThreadPool/CSD_TP_Remote_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Remote_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State.h:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State.inl:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.h:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.inl:
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h:
- * tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h:
- * tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl:
- * tao/CSD_ThreadPool/CSD_TP_Task.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Task.h:
- * tao/CSD_ThreadPool/CSD_TP_Task.inl:
- * tao/CSD_ThreadPool/CSD_ThreadPool.cpp:
- * tao/CSD_ThreadPool/CSD_ThreadPool.h:
- * tao/CodecFactory/CDR_Encaps_Codec.cpp:
- * tao/CodecFactory/CDR_Encaps_Codec.h:
- * tao/CodecFactory/CodecFactory.cpp:
- * tao/CodecFactory/CodecFactory.h:
- * tao/CodecFactory/CodecFactory_impl.cpp:
- * tao/CodecFactory/CodecFactory_impl.h:
- * tao/Codeset/Codeset.cpp:
- * tao/Codeset/Codeset.h:
- * tao/Codeset/Codeset_Descriptor.cpp:
- * tao/Codeset/Codeset_Descriptor.h:
- * tao/Codeset/Codeset_Manager_Factory.cpp:
- * tao/Codeset/Codeset_Manager_Factory.h:
- * tao/Codeset/Codeset_Manager_i.cpp:
- * tao/Codeset/Codeset_Manager_i.h:
- * tao/Codeset/Codeset_Translator_Factory.cpp:
- * tao/Codeset/Codeset_Translator_Factory.h:
- * tao/Codeset/Codeset_Translator_Factory_T.cpp:
- * tao/Codeset/Codeset_Translator_Factory_T.h:
- * tao/Codeset/UTF16_BOM_Factory.cpp:
- * tao/Codeset/UTF16_BOM_Factory.h:
- * tao/Codeset/UTF16_BOM_Translator.cpp:
- * tao/Codeset/UTF16_BOM_Translator.h:
- * tao/Codeset/UTF8_Latin1_Factory.cpp:
- * tao/Codeset/UTF8_Latin1_Factory.h:
- * tao/Codeset/UTF8_Latin1_Translator.cpp:
- * tao/Codeset/UTF8_Latin1_Translator.h:
- * tao/DynamicAny/DynAnyFactory.cpp:
- * tao/DynamicAny/DynAnyFactory.h:
- * tao/DynamicAny/DynAny_i.cpp:
- * tao/DynamicAny/DynAny_i.h:
- * tao/DynamicAny/DynArray_i.cpp:
- * tao/DynamicAny/DynArray_i.h:
- * tao/DynamicAny/DynCommon.cpp:
- * tao/DynamicAny/DynCommon.h:
- * tao/DynamicAny/DynEnum_i.cpp:
- * tao/DynamicAny/DynEnum_i.h:
- * tao/DynamicAny/DynSequence_i.cpp:
- * tao/DynamicAny/DynSequence_i.h:
- * tao/DynamicAny/DynStruct_i.cpp:
- * tao/DynamicAny/DynStruct_i.h:
- * tao/DynamicAny/DynUnion_i.cpp:
- * tao/DynamicAny/DynUnion_i.h:
- * tao/DynamicAny/DynamicAny.cpp:
- * tao/DynamicAny/DynamicAny.h:
- * tao/DynamicInterface/Context.cpp:
- * tao/DynamicInterface/Context.h:
- * tao/DynamicInterface/Context.inl:
- * tao/DynamicInterface/DII_Arguments.cpp:
- * tao/DynamicInterface/DII_Arguments.h:
- * tao/DynamicInterface/DII_Arguments.inl:
- * tao/DynamicInterface/DII_CORBA_methods.h:
- * tao/DynamicInterface/DII_Invocation.cpp:
- * tao/DynamicInterface/DII_Invocation.h:
- * tao/DynamicInterface/DII_Invocation_Adapter.h:
- * tao/DynamicInterface/DII_Reply_Dispatcher.cpp:
- * tao/DynamicInterface/DII_Reply_Dispatcher.h:
- * tao/DynamicInterface/Dynamic_Adapter_Impl.cpp:
- * tao/DynamicInterface/Dynamic_Adapter_Impl.h:
- * tao/DynamicInterface/Dynamic_Implementation.cpp:
- * tao/DynamicInterface/Dynamic_Implementation.h:
- * tao/DynamicInterface/ExceptionList.cpp:
- * tao/DynamicInterface/ExceptionList.h:
- * tao/DynamicInterface/ExceptionList.inl:
- * tao/DynamicInterface/Request.cpp:
- * tao/DynamicInterface/Request.h:
- * tao/DynamicInterface/Request.inl:
- * tao/DynamicInterface/Server_Request.cpp:
- * tao/DynamicInterface/Server_Request.h:
- * tao/DynamicInterface/Server_Request.inl:
- * tao/DynamicInterface/Unknown_User_Exception.cpp:
- * tao/DynamicInterface/Unknown_User_Exception.h:
- * tao/IFR_Client/IFR_Client_Adapter_Impl.cpp:
- * tao/IFR_Client/IFR_Client_Adapter_Impl.h:
- * tao/IORInterceptor/IORInfo.cpp:
- * tao/IORInterceptor/IORInfo.h:
- * tao/IORInterceptor/IORInfo.inl:
- * tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp:
- * tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h:
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp:
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.h:
- * tao/IORManipulation/IORManip_Loader.cpp:
- * tao/IORManipulation/IORManip_Loader.h:
- * tao/IORManipulation/IORManipulation.cpp:
- * tao/IORManipulation/IORManipulation.h:
- * tao/IORTable/IORTable.cpp:
- * tao/IORTable/IORTable.h:
- * tao/IORTable/IOR_Table_Impl.cpp:
- * tao/IORTable/IOR_Table_Impl.h:
- * tao/IORTable/Table_Adapter.cpp:
- * tao/IORTable/Table_Adapter.h:
- * tao/ImR_Client/ImR_Client.cpp:
- * tao/ImR_Client/ImR_Client.h:
- * tao/ImR_Client/ServerObject_i.cpp:
- * tao/ImR_Client/ServerObject_i.h:
- * tao/Messaging/AMH_Response_Handler.cpp:
- * tao/Messaging/AMH_Response_Handler.h:
- * tao/Messaging/Asynch_Invocation.cpp:
- * tao/Messaging/Asynch_Invocation.h:
- * tao/Messaging/Asynch_Invocation_Adapter.cpp:
- * tao/Messaging/Asynch_Invocation_Adapter.h:
- * tao/Messaging/Asynch_Reply_Dispatcher.cpp:
- * tao/Messaging/Asynch_Reply_Dispatcher.h:
- * tao/Messaging/Asynch_Timeout_Handler.cpp:
- * tao/Messaging/Asynch_Timeout_Handler.h:
- * tao/Messaging/Connection_Timeout_Policy_i.cpp:
- * tao/Messaging/Connection_Timeout_Policy_i.h:
- * tao/Messaging/ExceptionHolder_i.cpp:
- * tao/Messaging/ExceptionHolder_i.h:
- * tao/Messaging/Messaging.cpp:
- * tao/Messaging/Messaging.h:
- * tao/Messaging/Messaging_Loader.cpp:
- * tao/Messaging/Messaging_Loader.h:
- * tao/Messaging/Messaging_ORBInitializer.cpp:
- * tao/Messaging/Messaging_ORBInitializer.h:
- * tao/Messaging/Messaging_PolicyFactory.cpp:
- * tao/Messaging/Messaging_PolicyFactory.h:
- * tao/Messaging/Messaging_Policy_i.cpp:
- * tao/Messaging/Messaging_Policy_i.h:
- * tao/Messaging/Messaging_Policy_i.i:
- * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp:
- * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h:
- * tao/ObjRefTemplate/ORT_Adapter_Impl.cpp:
- * tao/ObjRefTemplate/ORT_Adapter_Impl.h:
- * tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp:
- * tao/ObjRefTemplate/ObjectReferenceTemplate_i.h:
- * tao/PI/ClientRequestInfo.cpp:
- * tao/PI/ClientRequestInfo.h:
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp:
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.h:
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.inl:
- * tao/PI/ClientRequestInterceptor_Factory_Impl.cpp:
- * tao/PI/ClientRequestInterceptor_Factory_Impl.h:
- * tao/PI/Interceptor_List_T.cpp:
- * tao/PI/Interceptor_List_T.h:
- * tao/PI/ORBInitInfo.cpp:
- * tao/PI/ORBInitInfo.h:
- * tao/PI/ORBInitInfo.inl:
- * tao/PI/ORBInitializer_Registry_Impl.cpp:
- * tao/PI/ORBInitializer_Registry_Impl.h:
- * tao/PI/PI.cpp:
- * tao/PI/PI.h:
- * tao/PI/PICurrent.cpp:
- * tao/PI/PICurrent.h:
- * tao/PI/PICurrent.inl:
- * tao/PI/PICurrent_Copy_Callback.cpp:
- * tao/PI/PICurrent_Copy_Callback.h:
- * tao/PI/PICurrent_Impl.cpp:
- * tao/PI/PICurrent_Impl.h:
- * tao/PI/PICurrent_Impl.inl:
- * tao/PI/PICurrent_Loader.cpp:
- * tao/PI/PICurrent_Loader.h:
- * tao/PI/PolicyFactory_Loader.cpp:
- * tao/PI/PolicyFactory_Loader.h:
- * tao/PI/PolicyFactory_Registry.cpp:
- * tao/PI/PolicyFactory_Registry.h:
- * tao/PI/RequestInfo_Util.cpp:
- * tao/PI/RequestInfo_Util.h:
- * tao/PI_Server/PICurrent_Guard.cpp:
- * tao/PI_Server/PICurrent_Guard.h:
- * tao/PI_Server/PI_Server.cpp:
- * tao/PI_Server/PI_Server.h:
- * tao/PI_Server/PI_Server_Loader.cpp:
- * tao/PI_Server/PI_Server_Loader.h:
- * tao/PI_Server/Policy_Creator_T.h:
- * tao/PI_Server/PortableServer_ORBInitializer.cpp:
- * tao/PI_Server/PortableServer_ORBInitializer.h:
- * tao/PI_Server/PortableServer_PolicyFactory.cpp:
- * tao/PI_Server/PortableServer_PolicyFactory.h:
- * tao/PI_Server/ServerInterceptorAdapter.cpp:
- * tao/PI_Server/ServerInterceptorAdapter.h:
- * tao/PI_Server/ServerRequestInfo.cpp:
- * tao/PI_Server/ServerRequestInfo.h:
- * tao/PI_Server/ServerRequestInfo.inl:
- * tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp:
- * tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h:
- * tao/PortableServer/Active_Object_Map.cpp:
- * tao/PortableServer/Active_Object_Map.h:
- * tao/PortableServer/Active_Object_Map.i:
- * tao/PortableServer/Active_Object_Map_Entry.cpp:
- * tao/PortableServer/Active_Object_Map_Entry.h:
- * tao/PortableServer/Active_Policy_Strategies.cpp:
- * tao/PortableServer/Active_Policy_Strategies.h:
- * tao/PortableServer/Active_Policy_Strategies.inl:
- * tao/PortableServer/Adapter_Activator.cpp:
- * tao/PortableServer/Adapter_Activator.h:
- * tao/PortableServer/Any_SArg_Traits.h:
- * tao/PortableServer/BD_String_SArgument_T.cpp:
- * tao/PortableServer/BD_String_SArgument_T.h:
- * tao/PortableServer/BD_String_SArgument_T.inl:
- * tao/PortableServer/Basic_SArgument_T.cpp:
- * tao/PortableServer/Basic_SArgument_T.h:
- * tao/PortableServer/Basic_SArgument_T.inl:
- * tao/PortableServer/Basic_SArguments.h:
- * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
- * tao/PortableServer/Collocated_Object_Proxy_Broker.h:
- * tao/PortableServer/Creation_Time.h:
- * tao/PortableServer/Creation_Time.inl:
- * tao/PortableServer/Default_Acceptor_Filter.cpp:
- * tao/PortableServer/Default_Acceptor_Filter.h:
- * tao/PortableServer/Default_Policy_Validator.cpp:
- * tao/PortableServer/Default_Policy_Validator.h:
- * tao/PortableServer/Default_Servant_Dispatcher.cpp:
- * tao/PortableServer/Default_Servant_Dispatcher.h:
- * tao/PortableServer/Direct_Collocation_Upcall_Wrapper.cpp:
- * tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h:
- * tao/PortableServer/Fixed_Array_SArgument_T.cpp:
- * tao/PortableServer/Fixed_Array_SArgument_T.h:
- * tao/PortableServer/Fixed_Array_SArgument_T.inl:
- * tao/PortableServer/Fixed_Size_SArgument_T.cpp:
- * tao/PortableServer/Fixed_Size_SArgument_T.h:
- * tao/PortableServer/Fixed_Size_SArgument_T.inl:
- * tao/PortableServer/IdAssignmentPolicy.cpp:
- * tao/PortableServer/IdAssignmentPolicy.h:
- * tao/PortableServer/IdAssignmentStrategy.cpp:
- * tao/PortableServer/IdAssignmentStrategy.h:
- * tao/PortableServer/IdAssignmentStrategyFactory.h:
- * tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp:
- * tao/PortableServer/IdAssignmentStrategyFactoryImpl.h:
- * tao/PortableServer/IdAssignmentStrategySystem.cpp:
- * tao/PortableServer/IdAssignmentStrategySystem.h:
- * tao/PortableServer/IdAssignmentStrategyUser.cpp:
- * tao/PortableServer/IdAssignmentStrategyUser.h:
- * tao/PortableServer/IdUniquenessPolicy.cpp:
- * tao/PortableServer/IdUniquenessPolicy.h:
- * tao/PortableServer/IdUniquenessStrategy.h:
- * tao/PortableServer/IdUniquenessStrategyFactory.h:
- * tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp:
- * tao/PortableServer/IdUniquenessStrategyFactoryImpl.h:
- * tao/PortableServer/IdUniquenessStrategyMultiple.cpp:
- * tao/PortableServer/IdUniquenessStrategyMultiple.h:
- * tao/PortableServer/IdUniquenessStrategyUnique.cpp:
- * tao/PortableServer/IdUniquenessStrategyUnique.h:
- * tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp:
- * tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h:
- * tao/PortableServer/ImR_Client_Adapter.cpp:
- * tao/PortableServer/ImR_Client_Adapter.h:
- * tao/PortableServer/ImplicitActivationPolicy.cpp:
- * tao/PortableServer/ImplicitActivationPolicy.h:
- * tao/PortableServer/ImplicitActivationStrategy.cpp:
- * tao/PortableServer/ImplicitActivationStrategy.h:
- * tao/PortableServer/ImplicitActivationStrategyExplicit.cpp:
- * tao/PortableServer/ImplicitActivationStrategyExplicit.h:
- * tao/PortableServer/ImplicitActivationStrategyFactory.h:
- * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp:
- * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h:
- * tao/PortableServer/ImplicitActivationStrategyImplicit.cpp:
- * tao/PortableServer/ImplicitActivationStrategyImplicit.h:
- * tao/PortableServer/Key_Adapters.cpp:
- * tao/PortableServer/Key_Adapters.h:
- * tao/PortableServer/LifespanPolicy.cpp:
- * tao/PortableServer/LifespanPolicy.h:
- * tao/PortableServer/LifespanStrategy.cpp:
- * tao/PortableServer/LifespanStrategy.h:
- * tao/PortableServer/LifespanStrategyFactory.h:
- * tao/PortableServer/LifespanStrategyFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyFactoryImpl.h:
- * tao/PortableServer/LifespanStrategyPersistent.cpp:
- * tao/PortableServer/LifespanStrategyPersistent.h:
- * tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h:
- * tao/PortableServer/LifespanStrategyTransient.cpp:
- * tao/PortableServer/LifespanStrategyTransient.h:
- * tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyTransientFactoryImpl.h:
- * tao/PortableServer/Local_Servant_Base.cpp:
- * tao/PortableServer/Local_Servant_Base.h:
- * tao/PortableServer/Local_Servant_Base.inl:
- * tao/PortableServer/Non_Servant_Upcall.cpp:
- * tao/PortableServer/Non_Servant_Upcall.h:
- * tao/PortableServer/Non_Servant_Upcall.inl:
- * tao/PortableServer/ORT_Adapter.cpp:
- * tao/PortableServer/ORT_Adapter.h:
- * tao/PortableServer/ORT_Adapter_Factory.cpp:
- * tao/PortableServer/ORT_Adapter_Factory.h:
- * tao/PortableServer/Object_Adapter.cpp:
- * tao/PortableServer/Object_Adapter.h:
- * tao/PortableServer/Object_Adapter.i:
- * tao/PortableServer/Object_Adapter_Factory.cpp:
- * tao/PortableServer/Object_Adapter_Factory.h:
- * tao/PortableServer/Object_SArg_Traits.h:
- * tao/PortableServer/Object_SArgument_T.cpp:
- * tao/PortableServer/Object_SArgument_T.h:
- * tao/PortableServer/Object_SArgument_T.inl:
- * tao/PortableServer/Operation_Table.cpp:
- * tao/PortableServer/Operation_Table.h:
- * tao/PortableServer/Operation_Table_Binary_Search.cpp:
- * tao/PortableServer/Operation_Table_Binary_Search.h:
- * tao/PortableServer/Operation_Table_Dynamic_Hash.cpp:
- * tao/PortableServer/Operation_Table_Dynamic_Hash.h:
- * tao/PortableServer/Operation_Table_Linear_Search.cpp:
- * tao/PortableServer/Operation_Table_Linear_Search.h:
- * tao/PortableServer/Operation_Table_Perfect_Hash.cpp:
- * tao/PortableServer/Operation_Table_Perfect_Hash.h:
- * tao/PortableServer/POAManager.cpp:
- * tao/PortableServer/POAManager.h:
- * tao/PortableServer/POAManager.i:
- * tao/PortableServer/POA_Cached_Policies.cpp:
- * tao/PortableServer/POA_Cached_Policies.h:
- * tao/PortableServer/POA_Cached_Policies.i:
- * tao/PortableServer/POA_Current.cpp:
- * tao/PortableServer/POA_Current.h:
- * tao/PortableServer/POA_Current.inl:
- * tao/PortableServer/POA_Current_Factory.cpp:
- * tao/PortableServer/POA_Current_Factory.h:
- * tao/PortableServer/POA_Current_Impl.cpp:
- * tao/PortableServer/POA_Current_Impl.h:
- * tao/PortableServer/POA_Current_Impl.inl:
- * tao/PortableServer/POA_Guard.cpp:
- * tao/PortableServer/POA_Guard.h:
- * tao/PortableServer/POA_Policy_Set.cpp:
- * tao/PortableServer/POA_Policy_Set.h:
- * tao/PortableServer/POA_Policy_Set.i:
- * tao/PortableServer/Policy_Strategy.h:
- * tao/PortableServer/PortableServer.cpp:
- * tao/PortableServer/PortableServer.h:
- * tao/PortableServer/PortableServer_Functions.cpp:
- * tao/PortableServer/PortableServer_Functions.h:
- * tao/PortableServer/PortableServer_WFunctions.cpp:
- * tao/PortableServer/PortableServer_WFunctions.h:
- * tao/PortableServer/Regular_POA.cpp:
- * tao/PortableServer/Regular_POA.h:
- * tao/PortableServer/Regular_POA.inl:
- * tao/PortableServer/RequestProcessingPolicy.cpp:
- * tao/PortableServer/RequestProcessingPolicy.h:
- * tao/PortableServer/RequestProcessingStrategy.cpp:
- * tao/PortableServer/RequestProcessingStrategy.h:
- * tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp:
- * tao/PortableServer/RequestProcessingStrategyAOMOnly.h:
- * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h:
- * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
- * tao/PortableServer/RequestProcessingStrategyDefaultServant.h:
- * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h:
- * tao/PortableServer/RequestProcessingStrategyFactory.h:
- * tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyFactoryImpl.h:
- * tao/PortableServer/RequestProcessingStrategyServantActivator.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantActivator.h:
- * tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h:
- * tao/PortableServer/RequestProcessingStrategyServantLocator.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantLocator.h:
- * tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h:
- * tao/PortableServer/RequestProcessingStrategyServantManager.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantManager.h:
- * tao/PortableServer/Root_POA.cpp:
- * tao/PortableServer/Root_POA.h:
- * tao/PortableServer/Root_POA.inl:
- * tao/PortableServer/SArg_Traits_T.h:
- * tao/PortableServer/ServantRetentionPolicy.cpp:
- * tao/PortableServer/ServantRetentionPolicy.h:
- * tao/PortableServer/ServantRetentionStrategy.h:
- * tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyFactoryImpl.h:
- * tao/PortableServer/ServantRetentionStrategyNonRetain.cpp:
- * tao/PortableServer/ServantRetentionStrategyNonRetain.h:
- * tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h:
- * tao/PortableServer/ServantRetentionStrategyRetain.cpp:
- * tao/PortableServer/ServantRetentionStrategyRetain.h:
- * tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h:
- * tao/PortableServer/Servant_Base.cpp:
- * tao/PortableServer/Servant_Base.h:
- * tao/PortableServer/Servant_Base.i:
- * tao/PortableServer/Servant_Dispatcher.cpp:
- * tao/PortableServer/Servant_Dispatcher.h:
- * tao/PortableServer/Servant_Location.h:
- * tao/PortableServer/Servant_Upcall.cpp:
- * tao/PortableServer/Servant_Upcall.h:
- * tao/PortableServer/Servant_Upcall.inl:
- * tao/PortableServer/Special_Basic_SArgument_T.cpp:
- * tao/PortableServer/Special_Basic_SArgument_T.h:
- * tao/PortableServer/Special_Basic_SArgument_T.inl:
- * tao/PortableServer/Special_Basic_SArguments.h:
- * tao/PortableServer/StrategyFactory.cpp:
- * tao/PortableServer/StrategyFactory.h:
- * tao/PortableServer/ThreadPolicy.cpp:
- * tao/PortableServer/ThreadPolicy.h:
- * tao/PortableServer/ThreadStrategy.cpp:
- * tao/PortableServer/ThreadStrategy.h:
- * tao/PortableServer/ThreadStrategyFactory.h:
- * tao/PortableServer/ThreadStrategyFactoryImpl.cpp:
- * tao/PortableServer/ThreadStrategyFactoryImpl.h:
- * tao/PortableServer/ThreadStrategyORBControl.cpp:
- * tao/PortableServer/ThreadStrategyORBControl.h:
- * tao/PortableServer/ThreadStrategySingle.cpp:
- * tao/PortableServer/ThreadStrategySingle.h:
- * tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp:
- * tao/PortableServer/ThreadStrategySingleFactoryImpl.h:
- * tao/PortableServer/TypeCode_SArg_Traits.h:
- * tao/PortableServer/UB_String_SArgument_T.cpp:
- * tao/PortableServer/UB_String_SArgument_T.h:
- * tao/PortableServer/UB_String_SArgument_T.inl:
- * tao/PortableServer/UB_String_SArguments.h:
- * tao/PortableServer/Upcall_Command.cpp:
- * tao/PortableServer/Upcall_Command.h:
- * tao/PortableServer/Upcall_Wrapper.cpp:
- * tao/PortableServer/Upcall_Wrapper.h:
- * tao/PortableServer/Var_Array_SArgument_T.cpp:
- * tao/PortableServer/Var_Array_SArgument_T.h:
- * tao/PortableServer/Var_Array_SArgument_T.inl:
- * tao/PortableServer/get_arg.h:
- * tao/PortableServer/poa_macros.h:
- * tao/RTCORBA/Continuous_Priority_Mapping.cpp:
- * tao/RTCORBA/Continuous_Priority_Mapping.h:
- * tao/RTCORBA/Direct_Priority_Mapping.cpp:
- * tao/RTCORBA/Direct_Priority_Mapping.h:
- * tao/RTCORBA/Linear_Network_Priority_Mapping.cpp:
- * tao/RTCORBA/Linear_Network_Priority_Mapping.h:
- * tao/RTCORBA/Linear_Priority_Mapping.cpp:
- * tao/RTCORBA/Linear_Priority_Mapping.h:
- * tao/RTCORBA/Multi_Priority_Mapping.cpp:
- * tao/RTCORBA/Multi_Priority_Mapping.h:
- * tao/RTCORBA/Network_Priority_Mapping.cpp:
- * tao/RTCORBA/Network_Priority_Mapping.h:
- * tao/RTCORBA/Network_Priority_Mapping_Manager.cpp:
- * tao/RTCORBA/Network_Priority_Mapping_Manager.i:
- * tao/RTCORBA/Priority_Mapping.cpp:
- * tao/RTCORBA/Priority_Mapping.h:
- * tao/RTCORBA/Priority_Mapping_Manager.cpp:
- * tao/RTCORBA/Priority_Mapping_Manager.h:
- * tao/RTCORBA/Priority_Mapping_Manager.i:
- * tao/RTCORBA/RTCORBA.cpp:
- * tao/RTCORBA/RTCORBA.h:
- * tao/RTCORBA/RT_Current.cpp:
- * tao/RTCORBA/RT_Current.h:
- * tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp:
- * tao/RTCORBA/RT_Endpoint_Selector_Factory.h:
- * tao/RTCORBA/RT_Endpoint_Utils.cpp:
- * tao/RTCORBA/RT_Endpoint_Utils.h:
- * tao/RTCORBA/RT_Invocation_Endpoint_Selectors.cpp:
- * tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h:
- * tao/RTCORBA/RT_Mutex.cpp:
- * tao/RTCORBA/RT_Mutex.h:
- * tao/RTCORBA/RT_ORB.cpp:
- * tao/RTCORBA/RT_ORB.h:
- * tao/RTCORBA/RT_ORBInitializer.cpp:
- * tao/RTCORBA/RT_ORBInitializer.h:
- * tao/RTCORBA/RT_ORB_Loader.cpp:
- * tao/RTCORBA/RT_ORB_Loader.h:
- * tao/RTCORBA/RT_PolicyFactory.cpp:
- * tao/RTCORBA/RT_PolicyFactory.h:
- * tao/RTCORBA/RT_Policy_i.cpp:
- * tao/RTCORBA/RT_Policy_i.h:
- * tao/RTCORBA/RT_Protocols_Hooks.cpp:
- * tao/RTCORBA/RT_Protocols_Hooks.h:
- * tao/RTCORBA/RT_Stub.cpp:
- * tao/RTCORBA/RT_Stub.h:
- * tao/RTCORBA/RT_Stub_Factory.cpp:
- * tao/RTCORBA/RT_Stub_Factory.h:
- * tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp:
- * tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h:
- * tao/RTCORBA/RT_Transport_Descriptor.cpp:
- * tao/RTCORBA/RT_Transport_Descriptor.h:
- * tao/RTCORBA/RT_Transport_Descriptor.inl:
- * tao/RTCORBA/RT_Transport_Descriptor_Property.cpp:
- * tao/RTCORBA/RT_Transport_Descriptor_Property.h:
- * tao/RTCORBA/RT_Transport_Descriptor_Property.inl:
- * tao/RTCORBA/Thread_Pool.cpp:
- * tao/RTCORBA/Thread_Pool.h:
- * tao/RTCORBA/Thread_Pool.inl:
- * tao/RTCORBA/rtcorba_typedefs.h:
- * tao/RTPortableServer/RTPortableServer.cpp:
- * tao/RTPortableServer/RTPortableServer.h:
- * tao/RTPortableServer/RT_Acceptor_Filters.cpp:
- * tao/RTPortableServer/RT_Acceptor_Filters.h:
- * tao/RTPortableServer/RT_Collocation_Resolver.cpp:
- * tao/RTPortableServer/RT_Collocation_Resolver.h:
- * tao/RTPortableServer/RT_Object_Adapter_Factory.cpp:
- * tao/RTPortableServer/RT_Object_Adapter_Factory.h:
- * tao/RTPortableServer/RT_POA.cpp:
- * tao/RTPortableServer/RT_POA.h:
- * tao/RTPortableServer/RT_POA.i:
- * tao/RTPortableServer/RT_Policy_Validator.cpp:
- * tao/RTPortableServer/RT_Policy_Validator.h:
- * tao/RTPortableServer/RT_Servant_Dispatcher.cpp:
- * tao/RTPortableServer/RT_Servant_Dispatcher.h:
- * tao/RTScheduling/Current.cpp:
- * tao/RTScheduling/Current.h:
- * tao/RTScheduling/Distributable_Thread.cpp:
- * tao/RTScheduling/Distributable_Thread.h:
- * tao/RTScheduling/RTScheduler.cpp:
- * tao/RTScheduling/RTScheduler.h:
- * tao/RTScheduling/RTScheduler_Initializer.cpp:
- * tao/RTScheduling/RTScheduler_Initializer.h:
- * tao/RTScheduling/RTScheduler_Loader.cpp:
- * tao/RTScheduling/RTScheduler_Loader.h:
- * tao/RTScheduling/RTScheduler_Manager.cpp:
- * tao/RTScheduling/RTScheduler_Manager.h:
- * tao/RTScheduling/RTScheduler_Manager.i:
- * tao/RTScheduling/Request_Interceptor.cpp:
- * tao/RTScheduling/Request_Interceptor.h:
- * tao/RTScheduling/ThreadAction.h:
- * tao/Valuetype/AbstractBase_Invocation_Adapter.h:
-
- Added versioned namespace support.
-
- Removed unnecessary *_Export keywords from symbols that need not
- be exported from the shared library within which they reside.
-
- * tao/AnyTypeCode/TC_Constants_Forward.h:
-
- Removed this unused file.
-
- * tao/Makefile.am (nobase_include_HEADERS):
-
- Removed `AnyTypeCode/TC_Constants_Forward.h' header from this
- list.
-
-Thu Nov 3 09:11:51 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
- (visit_valuetype_scope):
-
- Removed unused variable.
-
-Thu Nov 3 05:30:41 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
- * tao/tao.mpc:
-
- Fix tipo. Change Version_Namespace.h to Versioned_Namespace.h.
-
-Wed Nov 2 09:07:48 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/TAO_Singleton.h:
-
- Include "tao/Versioned_Namespace.h" to pull in
- "TAO_BEGIN_VERSIONED_NAMESPACE_DECL" macro definition.
- Addresses VC++ 6 build errors.
-
-Wed Nov 2 09:39:27 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp:
-
- Commented the if/endif with TAO_HAS_INTERCEPTORS because the code
- guarded by the macro is commented out already.
-
-Wed Nov 2 08:30:41 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * tao/Synch_Invocation.cpp:
- * tao/LocalRequest_Invocation.cpp:
-
- Reverted "Fri Aug 26 11:33:07 2005 Justin Michel
- <michel_j@ociweb.com>" since the change was wrong. Chris
- Cleeland is informed, and he has accepted to do a right fix
- when he gets time.
-
- * tao/orbconf.h:
-
- Removed TAO_RESET_OUTPUT_CDR_AFTER_SEND #define, since it is of no
- use anymore.
-
-Wed Nov 2 14:17:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp:
-
- Fixed logic for generating commas separating base
- constructor call and member inits in generated valuetype
- initializing constructor.
-
-Wed Nov 2 13:19:02 2005 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp:
-
- Add explicit exclude of forward request exception header to
- try and fix Solaris build error.
-
-Wed Nov 2 12:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Intrusive_Ref_Count_Handle_T.inl:
- Fixed compile error
-
-Wed Nov 2 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2289_Regression/MyStruct*.*:
- Readded these files to get things building, having hand modified
- generated file in the repo is not the right things todo.
-
-Wed Nov 2 08:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/Unbounded_Octet.cpp:
- Changed include for the time being
-
-Tue Nov 1 14:49:40 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_codegen.cpp (end_anyop_header):
- (end_anyop_source, end_client_header, end_client_inline):
- (end_client_stubs, end_server_header, end_server_inline):
- (end_server_skeletons, end_server_template_skeletons):
- (end_server_template_inline, end_server_template_header):
- (gen_stub_hdr_includes):
- (start_anyop_source, start_anyop_header, start_client_header):
- (start_client_inline, start_client_stubs):
- (start_server_template_inline, start_server_header):
- (start_server_inline, start_server_template_skeletons):
- (start_server_skeletons, start_server_template_header):
-
- Generate versioned namespace macro/declaration in the
- appropriate location.
-
- * TAO_IDL/be_include/be_codegen.h (end_client_inline):
- (end_client_stubs, end_server_inline):
-
- New methods that (currently) add ending versioned namespace
- macro/declaration to the corresponding file.
-
- * TAO_IDL/be/be_visitor_root/root.cpp (visit_root):
-
- Added calls to end client stubs, and client and server inline
- files.
-
- * tao/Makefile.am (nobase_include_HEADERS):
- * tao/tao.mpc:
-
- Added new "tao/Versioned_Namespace.h" header.
-
- * tao/Versioned_Namespace.h:
-
- TAO-specific versioned namespace macros.
-
- * tao/Abstract_Servant_Base.cpp:
- * tao/Abstract_Servant_Base.h:
- * tao/Acceptor_Filter.cpp:
- * tao/Acceptor_Filter.h:
- * tao/Acceptor_Impl.cpp:
- * tao/Acceptor_Impl.h:
- * tao/Acceptor_Registry.cpp:
- * tao/Acceptor_Registry.h:
- * tao/Acceptor_Registry.i:
- * tao/Adapter.cpp:
- * tao/Adapter.h:
- * tao/Adapter_Factory.cpp:
- * tao/Adapter_Factory.h:
- * tao/Adapter_Registry.cpp:
- * tao/Adapter_Registry.h:
- * tao/Allocator.h:
- * tao/AnyTypeCode_Adapter.cpp:
- * tao/AnyTypeCode_Adapter.h:
- * tao/Any_Insert_Policy_T.h:
- * tao/Arg_Traits_T.h:
- * tao/Argument.cpp:
- * tao/Argument.h:
- * tao/Array_VarOut_T.cpp:
- * tao/Array_VarOut_T.h:
- * tao/Array_VarOut_T.inl:
- * tao/Asynch_Queued_Message.cpp:
- * tao/Asynch_Reply_Dispatcher_Base.cpp:
- * tao/Asynch_Reply_Dispatcher_Base.h:
- * tao/Asynch_Reply_Dispatcher_Base.i:
- * tao/Auto_Functor.h:
- * tao/BD_String_Argument_T.cpp:
- * tao/BD_String_Argument_T.h:
- * tao/BD_String_Argument_T.inl:
- * tao/Base_Transport_Property.cpp:
- * tao/Base_Transport_Property.h:
- * tao/Base_Transport_Property.inl:
- * tao/Basic_Argument_T.cpp:
- * tao/Basic_Argument_T.h:
- * tao/Basic_Argument_T.inl:
- * tao/Basic_Arguments.h:
- * tao/Basic_Types.h:
- * tao/BiDir_Adapter.cpp:
- * tao/BiDir_Adapter.h:
- * tao/Bind_Dispatcher_Guard.cpp:
- * tao/Bind_Dispatcher_Guard.h:
- * tao/Bind_Dispatcher_Guard.i:
- * tao/Block_Flushing_Strategy.cpp:
- * tao/Block_Flushing_Strategy.h:
- * tao/Blocked_Connect_Strategy.cpp:
- * tao/Blocked_Connect_Strategy.h:
- * tao/Buffer_Allocator_T.cpp:
- * tao/Buffer_Allocator_T.h:
- * tao/Buffering_Constraint_Policy.cpp:
- * tao/Buffering_Constraint_Policy.h:
- * tao/Buffering_Constraint_Policy.i:
- * tao/CDR.cpp:
- * tao/CDR.h:
- * tao/CDR.i:
- * tao/CORBALOC_Parser.cpp:
- * tao/CORBALOC_Parser.h:
- * tao/CORBALOC_Parser.i:
- * tao/CORBANAME_Parser.cpp:
- * tao/CORBANAME_Parser.h:
- * tao/CORBANAME_Parser.i:
- * tao/CORBA_String.cpp:
- * tao/CORBA_String.h:
- * tao/CORBA_String.inl:
- * tao/Cache_Entries.cpp:
- * tao/Cache_Entries.h:
- * tao/Cache_Entries.inl:
- * tao/Cleanup_Func_Registry.cpp:
- * tao/Cleanup_Func_Registry.h:
- * tao/Cleanup_Func_Registry.inl:
- * tao/ClientRequestInterceptor_Adapter.cpp:
- * tao/ClientRequestInterceptor_Adapter.h:
- * tao/ClientRequestInterceptor_Adapter_Factory.cpp:
- * tao/ClientRequestInterceptor_Adapter_Factory.h:
- * tao/Client_Strategy_Factory.cpp:
- * tao/Client_Strategy_Factory.h:
- * tao/Codeset_Descriptor_Base.h:
- * tao/Codeset_Manager.cpp:
- * tao/Codeset_Manager.h:
- * tao/Codeset_Manager_Factory_Base.cpp:
- * tao/Codeset_Manager_Factory_Base.h:
- * tao/Codeset_Translator_Base.cpp:
- * tao/Codeset_Translator_Base.h:
- * tao/Collocated_Invocation.cpp:
- * tao/Collocated_Invocation.h:
- * tao/Collocation_Proxy_Broker.cpp:
- * tao/Collocation_Proxy_Broker.h:
- * tao/Collocation_Resolver.cpp:
- * tao/Collocation_Resolver.h:
- * tao/Condition.cpp:
- * tao/Condition.h:
- * tao/Condition.inl:
- * tao/Connect_Strategy.cpp:
- * tao/Connect_Strategy.h:
- * tao/Connection_Handler.cpp:
- * tao/Connection_Handler.h:
- * tao/Connection_Handler.inl:
- * tao/Connection_Purging_Strategy.cpp:
- * tao/Connection_Purging_Strategy.h:
- * tao/Connection_Purging_Strategy.inl:
- * tao/Connector_Impl.cpp:
- * tao/Connector_Impl.h:
- * tao/Connector_Registry.cpp:
- * tao/Connector_Registry.h:
- * tao/Connector_Registry.i:
- * tao/DLL_Parser.cpp:
- * tao/DLL_Parser.h:
- * tao/DLL_Parser.i:
- * tao/Default_Collocation_Resolver.cpp:
- * tao/Default_Collocation_Resolver.h:
- * tao/Default_Endpoint_Selector_Factory.cpp:
- * tao/Default_Endpoint_Selector_Factory.h:
- * tao/Default_Protocols_Hooks.cpp:
- * tao/Default_Protocols_Hooks.h:
- * tao/Default_Stub_Factory.cpp:
- * tao/Default_Stub_Factory.h:
- * tao/Default_Thread_Lane_Resources_Manager.cpp:
- * tao/Default_Thread_Lane_Resources_Manager.h:
- * tao/Dynamic_Adapter.cpp:
- * tao/Dynamic_Adapter.h:
- * tao/Endpoint.cpp:
- * tao/Endpoint.h:
- * tao/Endpoint.i:
- * tao/Endpoint_Selector_Factory.cpp:
- * tao/Endpoint_Selector_Factory.h:
- * tao/Environment.cpp:
- * tao/Environment.h:
- * tao/Environment.i:
- * tao/Exception.cpp:
- * tao/Exception.h:
- * tao/Exception.i:
- * tao/Exception_Data.h:
- * tao/Exclusive_TMS.cpp:
- * tao/Exclusive_TMS.h:
- * tao/FILE_Parser.cpp:
- * tao/FILE_Parser.h:
- * tao/FILE_Parser.i:
- * tao/Fault_Tolerance_Service.cpp:
- * tao/Fault_Tolerance_Service.h:
- * tao/Fault_Tolerance_Service.i:
- * tao/Fixed_Array_Argument_T.cpp:
- * tao/Fixed_Array_Argument_T.h:
- * tao/Fixed_Array_Argument_T.inl:
- * tao/Fixed_Size_Argument_T.cpp:
- * tao/Fixed_Size_Argument_T.h:
- * tao/Fixed_Size_Argument_T.inl:
- * tao/FlResource_Factory.cpp:
- * tao/FlResource_Factory.h:
- * tao/FlResource_Loader.cpp:
- * tao/FlResource_Loader.h:
- * tao/Flushing_Strategy.cpp:
- * tao/Flushing_Strategy.h:
- * tao/GIOP_Message_Base.cpp:
- * tao/GIOP_Message_Base.h:
- * tao/GIOP_Message_Generator_Parser.cpp:
- * tao/GIOP_Message_Generator_Parser.h:
- * tao/GIOP_Message_Generator_Parser_10.cpp:
- * tao/GIOP_Message_Generator_Parser_10.h:
- * tao/GIOP_Message_Generator_Parser_11.cpp:
- * tao/GIOP_Message_Generator_Parser_11.h:
- * tao/GIOP_Message_Generator_Parser_12.cpp:
- * tao/GIOP_Message_Generator_Parser_12.h:
- * tao/GIOP_Message_Generator_Parser_Impl.h:
- * tao/GIOP_Message_Generator_Parser_Impl.inl:
- * tao/GIOP_Message_Lite.cpp:
- * tao/GIOP_Message_Lite.h:
- * tao/GIOP_Message_Locate_Header.cpp:
- * tao/GIOP_Message_Locate_Header.h:
- * tao/GIOP_Message_Locate_Header.i:
- * tao/GIOP_Message_State.cpp:
- * tao/GIOP_Message_State.h:
- * tao/GIOP_Message_State.inl:
- * tao/GIOP_Message_Version.h:
- * tao/GIOP_Message_Version.inl:
- * tao/GIOP_Utils.cpp:
- * tao/GIOP_Utils.h:
- * tao/GUIResource_Factory.cpp:
- * tao/GUIResource_Factory.h:
- * tao/IFR_Client_Adapter.cpp:
- * tao/IFR_Client_Adapter.h:
- * tao/IIOP_Acceptor.cpp:
- * tao/IIOP_Acceptor.h:
- * tao/IIOP_Acceptor.i:
- * tao/IIOP_Connection_Handler.cpp:
- * tao/IIOP_Connection_Handler.h:
- * tao/IIOP_Connector.cpp:
- * tao/IIOP_Connector.h:
- * tao/IIOP_Endpoint.cpp:
- * tao/IIOP_Endpoint.h:
- * tao/IIOP_Endpoint.i:
- * tao/IIOP_Factory.cpp:
- * tao/IIOP_Factory.h:
- * tao/IIOP_Lite_Factory.cpp:
- * tao/IIOP_Lite_Factory.h:
- * tao/IIOP_Profile.cpp:
- * tao/IIOP_Profile.h:
- * tao/IIOP_Transport.cpp:
- * tao/IIOP_Transport.h:
- * tao/IORInterceptor_Adapter.cpp:
- * tao/IORInterceptor_Adapter.h:
- * tao/IORInterceptor_Adapter_Factory.cpp:
- * tao/IORInterceptor_Adapter_Factory.h:
- * tao/IOR_Parser.cpp:
- * tao/IOR_Parser.h:
- * tao/Incoming_Message_Queue.cpp:
- * tao/Incoming_Message_Queue.h:
- * tao/Incoming_Message_Queue.inl:
- * tao/Intrusive_Ref_Count_Base_T.cpp:
- * tao/Intrusive_Ref_Count_Base_T.h:
- * tao/Intrusive_Ref_Count_Base_T.inl:
- * tao/Intrusive_Ref_Count_Handle_T.cpp:
- * tao/Intrusive_Ref_Count_Handle_T.h:
- * tao/Intrusive_Ref_Count_Handle_T.inl:
- * tao/Invocation_Adapter.cpp:
- * tao/Invocation_Adapter.h:
- * tao/Invocation_Adapter.inl:
- * tao/Invocation_Base.cpp:
- * tao/Invocation_Base.h:
- * tao/Invocation_Base.inl:
- * tao/Invocation_Endpoint_Selectors.cpp:
- * tao/Invocation_Endpoint_Selectors.h:
- * tao/Invocation_Utils.h:
- * tao/LF_CH_Event.cpp:
- * tao/LF_CH_Event.h:
- * tao/LF_Connect_Strategy.cpp:
- * tao/LF_Connect_Strategy.h:
- * tao/LF_Event.cpp:
- * tao/LF_Event.h:
- * tao/LF_Event.inl:
- * tao/LF_Event_Binder.cpp:
- * tao/LF_Event_Binder.h:
- * tao/LF_Event_Binder.inl:
- * tao/LF_Event_Loop_Thread_Helper.cpp:
- * tao/LF_Event_Loop_Thread_Helper.h:
- * tao/LF_Event_Loop_Thread_Helper.inl:
- * tao/LF_Follower.cpp:
- * tao/LF_Follower.h:
- * tao/LF_Follower.inl:
- * tao/LF_Follower_Auto_Adder.cpp:
- * tao/LF_Follower_Auto_Adder.h:
- * tao/LF_Follower_Auto_Adder.inl:
- * tao/LF_Follower_Auto_Ptr.cpp:
- * tao/LF_Follower_Auto_Ptr.h:
- * tao/LF_Follower_Auto_Ptr.inl:
- * tao/LF_Invocation_Event.cpp:
- * tao/LF_Invocation_Event.h:
- * tao/LF_Strategy.cpp:
- * tao/LF_Strategy.h:
- * tao/LF_Strategy_Complete.cpp:
- * tao/LF_Strategy_Complete.h:
- * tao/LF_Strategy_Complete.inl:
- * tao/LRU_Connection_Purging_Strategy.cpp:
- * tao/LRU_Connection_Purging_Strategy.h:
- * tao/Leader_Follower.cpp:
- * tao/Leader_Follower.h:
- * tao/Leader_Follower.i:
- * tao/Leader_Follower_Flushing_Strategy.cpp:
- * tao/Leader_Follower_Flushing_Strategy.h:
- * tao/LocalObject.cpp:
- * tao/LocalObject.h:
- * tao/LocalObject.i:
- * tao/LocateRequest_Invocation.cpp:
- * tao/LocateRequest_Invocation.h:
- * tao/LocateRequest_Invocation_Adapter.cpp:
- * tao/LocateRequest_Invocation_Adapter.h:
- * tao/MCAST_Parser.cpp:
- * tao/MCAST_Parser.h:
- * tao/MCAST_Parser.i:
- * tao/MProfile.cpp:
- * tao/MProfile.h:
- * tao/MProfile.i:
- * tao/Managed_Types.cpp:
- * tao/Managed_Types.h:
- * tao/Managed_Types.i:
- * tao/Muxed_TMS.cpp:
- * tao/Muxed_TMS.h:
- * tao/NVList_Adapter.cpp:
- * tao/NVList_Adapter.h:
- * tao/New_Leader_Generator.cpp:
- * tao/New_Leader_Generator.h:
- * tao/ORB.cpp:
- * tao/ORB.h:
- * tao/ORB.i:
- * tao/ORBInitializer_Registry.cpp:
- * tao/ORBInitializer_Registry.h:
- * tao/ORBInitializer_Registry_Adapter.cpp:
- * tao/ORBInitializer_Registry_Adapter.h:
- * tao/ORB_Constants.h:
- * tao/ORB_Core.cpp:
- * tao/ORB_Core.h:
- * tao/ORB_Core.i:
- * tao/ORB_Core_Auto_Ptr.cpp:
- * tao/ORB_Core_Auto_Ptr.h:
- * tao/ORB_Core_Auto_Ptr.inl:
- * tao/ORB_Core_TSS_Resources.cpp:
- * tao/ORB_Core_TSS_Resources.h:
- * tao/ORB_Table.cpp:
- * tao/ORB_Table.h:
- * tao/ORB_Table.inl:
- * tao/Object.cpp:
- * tao/Object.h:
- * tao/Object.i:
- * tao/ObjectKey_Table.cpp:
- * tao/ObjectKey_Table.h:
- * tao/Object_Argument_T.cpp:
- * tao/Object_Argument_T.h:
- * tao/Object_Argument_T.inl:
- * tao/Object_Loader.cpp:
- * tao/Object_Loader.h:
- * tao/Object_Proxy_Broker.cpp:
- * tao/Object_Proxy_Broker.h:
- * tao/Object_Ref_Table.cpp:
- * tao/Object_Ref_Table.h:
- * tao/Object_Ref_Table.inl:
- * tao/Object_T.cpp:
- * tao/Object_T.h:
- * tao/Objref_VarOut_T.cpp:
- * tao/Objref_VarOut_T.h:
- * tao/Parser_Registry.cpp:
- * tao/Parser_Registry.h:
- * tao/Parser_Registry.i:
- * tao/Pluggable_Messaging.cpp:
- * tao/Pluggable_Messaging.h:
- * tao/Pluggable_Messaging_Utils.cpp:
- * tao/Pluggable_Messaging_Utils.h:
- * tao/Pluggable_Messaging_Utils.i:
- * tao/PolicyFactory_Registry_Adapter.cpp:
- * tao/PolicyFactory_Registry_Adapter.h:
- * tao/Policy_Current.cpp:
- * tao/Policy_Current.h:
- * tao/Policy_Current.inl:
- * tao/Policy_Current_Impl.cpp:
- * tao/Policy_Current_Impl.h:
- * tao/Policy_Current_Impl.inl:
- * tao/Policy_Manager.cpp:
- * tao/Policy_Manager.h:
- * tao/Policy_Manager.i:
- * tao/Policy_Set.cpp:
- * tao/Policy_Set.h:
- * tao/Policy_Set.i:
- * tao/Policy_Validator.cpp:
- * tao/Policy_Validator.h:
- * tao/Principal.cpp:
- * tao/Principal.h:
- * tao/Principal.i:
- * tao/Profile.cpp:
- * tao/Profile.h:
- * tao/Profile.i:
- * tao/Profile_Transport_Resolver.cpp:
- * tao/Profile_Transport_Resolver.h:
- * tao/Profile_Transport_Resolver.inl:
- * tao/Protocol_Factory.cpp:
- * tao/Protocol_Factory.h:
- * tao/Protocols_Hooks.cpp:
- * tao/Protocols_Hooks.h:
- * tao/Pseudo_VarOut_T.cpp:
- * tao/Pseudo_VarOut_T.h:
- * tao/Pseudo_VarOut_T.inl:
- * tao/QtResource_Factory.cpp:
- * tao/QtResource_Factory.h:
- * tao/QtResource_Loader.cpp:
- * tao/QtResource_Loader.h:
- * tao/Queued_Message.cpp:
- * tao/Queued_Message.h:
- * tao/Reactive_Connect_Strategy.cpp:
- * tao/Reactive_Connect_Strategy.h:
- * tao/Reactive_Flushing_Strategy.cpp:
- * tao/Reactive_Flushing_Strategy.h:
- * tao/Refcounted_ObjectKey.cpp:
- * tao/Refcounted_ObjectKey.h:
- * tao/Refcounted_ObjectKey.inl:
- * tao/Remote_Invocation.cpp:
- * tao/Remote_Invocation.h:
- * tao/Remote_Object_Proxy_Broker.cpp:
- * tao/Remote_Object_Proxy_Broker.h:
- * tao/Reply_Dispatcher.cpp:
- * tao/Reply_Dispatcher.h:
- * tao/Reply_Dispatcher.i:
- * tao/Request_Dispatcher.cpp:
- * tao/Request_Dispatcher.h:
- * tao/Resource_Factory.cpp:
- * tao/Resource_Factory.h:
- * tao/Resume_Handle.cpp:
- * tao/Resume_Handle.h:
- * tao/Resume_Handle.inl:
- * tao/Seq_Out_T.cpp:
- * tao/Seq_Out_T.h:
- * tao/Seq_Out_T.inl:
- * tao/Seq_Var_T.cpp:
- * tao/Seq_Var_T.h:
- * tao/Seq_Var_T.inl:
- * tao/Sequence.cpp:
- * tao/Sequence.h:
- * tao/Sequence.i:
- * tao/Sequence_T.cpp:
- * tao/Sequence_T.h:
- * tao/Sequence_T.i:
- * tao/ServerRequestInterceptor_Adapter.cpp:
- * tao/ServerRequestInterceptor_Adapter.h:
- * tao/ServerRequestInterceptor_Adapter_Factory.cpp:
- * tao/ServerRequestInterceptor_Adapter_Factory.h:
- * tao/Server_Strategy_Factory.cpp:
- * tao/Server_Strategy_Factory.h:
- * tao/Service_Callbacks.cpp:
- * tao/Service_Callbacks.h:
- * tao/Service_Context.cpp:
- * tao/Service_Context.h:
- * tao/Service_Context.inl:
- * tao/Services_Activate.cpp:
- * tao/Services_Activate.h:
- * tao/Special_Basic_Argument_T.cpp:
- * tao/Special_Basic_Argument_T.h:
- * tao/Special_Basic_Argument_T.inl:
- * tao/Special_Basic_Arguments.h:
- * tao/Stub.cpp:
- * tao/Stub.h:
- * tao/Stub.i:
- * tao/Stub_Factory.cpp:
- * tao/Stub_Factory.h:
- * tao/Synch_Invocation.cpp:
- * tao/Synch_Invocation.h:
- * tao/Synch_Invocation.inl:
- * tao/Synch_Queued_Message.cpp:
- * tao/Synch_Queued_Message.h:
- * tao/Synch_Reply_Dispatcher.cpp:
- * tao/Synch_Reply_Dispatcher.h:
- * tao/SystemException.cpp:
- * tao/SystemException.h:
- * tao/SystemException.inl:
- * tao/TAO_Internal.cpp:
- * tao/TAO_Server_Request.cpp:
- * tao/TAO_Server_Request.h:
- * tao/TAO_Server_Request.i:
- * tao/TAO_Singleton.cpp:
- * tao/TAO_Singleton.h:
- * tao/TAO_Singleton.inl:
- * tao/TAO_Singleton_Manager.cpp:
- * tao/TAO_Singleton_Manager.h:
- * tao/TAO_Singleton_Manager.inl:
- * tao/TSS_Resources.cpp:
- * tao/TSS_Resources.h:
- * tao/Tagged_Components.cpp:
- * tao/Tagged_Components.h:
- * tao/Tagged_Components.i:
- * tao/Tagged_Profile.cpp:
- * tao/Tagged_Profile.h:
- * tao/Tagged_Profile.i:
- * tao/Thread_Lane_Resources.cpp:
- * tao/Thread_Lane_Resources.h:
- * tao/Thread_Lane_Resources_Manager.cpp:
- * tao/Thread_Lane_Resources_Manager.h:
- * tao/Thread_Per_Connection_Handler.cpp:
- * tao/Thread_Per_Connection_Handler.h:
- * tao/TkResource_Factory.cpp:
- * tao/TkResource_Factory.h:
- * tao/TkResource_Loader.cpp:
- * tao/TkResource_Loader.h:
- * tao/Transport.cpp:
- * tao/Transport.h:
- * tao/Transport.inl:
- * tao/Transport_Acceptor.cpp:
- * tao/Transport_Acceptor.h:
- * tao/Transport_Acceptor.inl:
- * tao/Transport_Cache_Manager.cpp:
- * tao/Transport_Cache_Manager.h:
- * tao/Transport_Cache_Manager.inl:
- * tao/Transport_Connector.cpp:
- * tao/Transport_Connector.h:
- * tao/Transport_Connector.inl:
- * tao/Transport_Descriptor_Interface.cpp:
- * tao/Transport_Descriptor_Interface.h:
- * tao/Transport_Descriptor_Interface.inl:
- * tao/Transport_Mux_Strategy.cpp:
- * tao/Transport_Mux_Strategy.h:
- * tao/Transport_Queueing_Strategies.cpp:
- * tao/Transport_Queueing_Strategies.h:
- * tao/Transport_Timer.cpp:
- * tao/Transport_Timer.h:
- * tao/TypeCodeFactory_Adapter.h:
- * tao/UB_String_Argument_T.cpp:
- * tao/UB_String_Argument_T.h:
- * tao/UB_String_Argument_T.inl:
- * tao/UB_String_Arguments.h:
- * tao/UserException.cpp:
- * tao/UserException.h:
- * tao/UserException.inl:
- * tao/Valuetype_Adapter.cpp:
- * tao/Valuetype_Adapter.h:
- * tao/VarOut_T.cpp:
- * tao/VarOut_T.h:
- * tao/VarOut_T.inl:
- * tao/Var_Array_Argument_T.cpp:
- * tao/Var_Array_Argument_T.h:
- * tao/Var_Array_Argument_T.inl:
- * tao/Var_Size_Argument_T.cpp:
- * tao/Var_Size_Argument_T.h:
- * tao/Var_Size_Argument_T.inl:
- * tao/Wait_On_LF_No_Upcall.cpp:
- * tao/Wait_On_LF_No_Upcall.h:
- * tao/Wait_On_Leader_Follower.cpp:
- * tao/Wait_On_Leader_Follower.h:
- * tao/Wait_On_Reactor.cpp:
- * tao/Wait_On_Reactor.h:
- * tao/Wait_On_Read.cpp:
- * tao/Wait_On_Read.h:
- * tao/Wait_Strategy.cpp:
- * tao/Wait_Strategy.h:
- * tao/corba.h:
- * tao/corbafwd.cpp:
- * tao/debug.cpp:
- * tao/debug.h:
- * tao/default_client.cpp:
- * tao/default_client.h:
- * tao/default_environment.h:
- * tao/default_resource.cpp:
- * tao/default_resource.h:
- * tao/default_server.cpp:
- * tao/objectid.h:
- * tao/operation_details.cpp:
- * tao/operation_details.h:
- * tao/operation_details.i:
- * tao/orbconf.h:
- * tao/params.cpp:
- * tao/params.h:
- * tao/params.i:
- * tao/varbase.h:
-
- Added versioned namespace support.
-
- Removed some empty and/or unnecessary `.cpp' and `.inl' files.
-
- Improved exception safety in some assignment operators.
-
-Tue Nov 1 14:27:36 USMST 2005 Yan Dai <dai_y@ociweb.com>
-
- * examples/CSD_Strategy/ThreadPool/run_test.pl:
- * examples/CSD_Strategy/ThreadPool2/run_test.pl:
- * examples/CSD_Strategy/ThreadPool3/run_test.pl:
- * examples/CSD_Strategy/ThreadPool4/run_test.pl:
- * examples/CSD_Strategy/ThreadPool5/run_test.pl:
- * examples/CSD_Strategy/ThreadPool6/run_test.pl:
- * performance-tests/CSD_Strategy/TestApps/run_test.pl:
- * tests/CSD_Strategy_Tests/Broken/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl:
-
- Changed to enable these scripts to run from autobuild for VxWorks builds.
-
- * tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp:
-
- Removed duplicated log message.
-
-Tue Nov 1 14:30:05 2005 William Otte <wotte@dre.vanderbilt.edu>
-
- * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc
-
- Added missing project dependancies to fix errors/warnings for the
- strict OS X linker.
-
-Tue Nov 1 19:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2289_Regression/MyInterfaceImpl.h:
- Fixed fuzz error
-
-Tue Nov 1 19:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp:
- * tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp:
- Added regression for bug 2201
-
-Tue Nov 1 19:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp:
- Added regression for bug 2201
-
-Tue Nov 1 19:06:48 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/driver/drv_preproc.cpp:
-
- Fixed addition of default paths to preprocess command line,
- for the case where only $ACE_ROOT, and not $TAO_ROOT, is
- defined in the environment. Thanks to Chris Cleeland
- <cleeland_c@ociweb.cpm> for reporting the problem.
-
-Tue Nov 1 19:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc:
- * tests/Sequence_Unit_Tests/run_test.pl:
- * tests/Sequence_Unit_Tests/Unbounded_Octet.cpp:
- * tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp:
- Added new tests for unbounded octet sequences, a specialization
- for octet sequences will follow in the near future
-
-Tue Nov 1 18:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/bounded_value_sequence.hpp:
- Fixed incorrect guards
-
-Tue Nov 1 17:55:43 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp:
-
- Fixed bug in code generation of valuetype initialzing
- constructor when there is a generated call to the
- valuetype's base class constrcutor.
-
-Tue Nov 1 15:44:41 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp:
-
- Eliminated unused local variable.
-
-Tue Nov 1 15:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/value_sequence_tester.hpp:
- Fixed two bugs in this tester, it expected that the sequence
- always expects int which is not true, made it generic so
- that it can also be used for sequences of other types
-
-Tue Nov 1 15:37:04 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp:
- * TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h:
-
- Fixed generation of valuetype initializing constructor for
- array members. These cannot be handled in the constructor's
- initialization list, so they are handled in the constructor
- body.
-
-Tue Nov 1 14:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp:
- Added a regression for bug 2201
-
- * tests/Sequence_Unit_Tests/value_traits.hpp:
- Implement initialize_range and zero_range as fix for bug
- 2201 which also seemed to exist in the new sequence implementation
-
-Tue Nov 1 14:42:14 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp:
-
- Fixed bug in generation of constructor initializing member
- values that failed to screen out attributes when traversing
- the valuetype's scope for stub source file generation.
-
-Tue Nov 1 14:14:31 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tao/Managed_Types.h:
- * tao/Managed_Types.i:
-
- Added constructors for TAO_String_Manager and
- TAO_WString_Manager from const char* and const CORBA::WChar*
- respectively (each constructor makes a copy). These new
- constructors are used in generated code for valuetypes, in
- the initializing constructor added in
-
- Fri Oct 28 23:55:14 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
-Tue Nov 1 12:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2074_Regression/*:
- * orbsvcs/tests/Bug_2074_Regression/*:
- Moved test to orbsvs
-
-Tue Nov 1 11:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/generic_sequence.hpp:
- Fixed typo
-
-Tue Nov 1 10:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/File_IO/File_i.cpp:
- 64bit fix
-
-Tue Nov 1 10:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/CSD_Strategy/TestInf/ClientTask.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/ClientTask.cpp:
- Fixed 64bit conversion warnings
-
-Tue Nov 1 10:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Profile.cpp:
- Use prefix operators to modify the refcount
-
-Tue Nov 1 09:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1495_Regression/Client_Task.cpp:
- Extended this test to do multiple calls. It will fail now
-
- * tests/Bug_2289_Regression/MyStruct*.{h,cpp,inl}:
- Removed generated files, shouldn't be in the repo
-
-Tue Nov 1 09:35:36 2005 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2289_Regression/Bug_2289_Regression.mpc:
- * tests/Bug_2289_Regression/MyInterfaceImpl.cpp:
- * tests/Bug_2289_Regression/MyInterfaceImpl.h:
- * tests/Bug_2289_Regression/MyStruct.idl:
- * tests/Bug_2289_Regression/MyStructC.cpp:
- * tests/Bug_2289_Regression/MyStructC.h:
- * tests/Bug_2289_Regression/MyStructC.inl:
- * tests/Bug_2289_Regression/MyStructS.cpp:
- * tests/Bug_2289_Regression/MyStructS.h:
- * tests/Bug_2289_Regression/MyStructS.inl:
- * tests/Bug_2289_Regression/MyStructS_T.cpp:
- * tests/Bug_2289_Regression/MyStructS_T.h:
- * tests/Bug_2289_Regression/MyStructS_T.inl:
- * tests/Bug_2289_Regression/README:
- * tests/Bug_2289_Regression/Test.idl:
- * tests/Bug_2289_Regression/client.cpp:
- * tests/Bug_2289_Regression/run_test.pl:
- * tests/Bug_2289_Regression/server.cpp:
-
- Added regression test for this bug. Bug is not yet fixed so it
- *will* fail.
-
-Mon Oct 31 15:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Sequence_Unit_Tests/mock_reference.hpp:
- * tests/Sequence_Unit_Tests/range_checking.hpp:
- Small doxygen improvements
-
-Mon Oct 31 12:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2084_Regression/*:
- Integrated regression for bug 2084. Thanks to David Faure
- <dfaure at klaralvdalens-datakonsult dot se> for creating this
- test. It seems this bug has already been resolved in the past
- but to prevent to reappear it in the future added the test
- to our regression suite.
-
-Mon Oct 31 11:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2074_Regression/*:
- Integrated regression for bug 2074. Thanks to Robert Hancock
- <hancockr at shaw dot ca> for creating this test
-
-Sat Oct 29 13:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_2285_Regression/client2.cpp:
- Fixed compile error
-
-Fri Oct 28 23:55:14 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_type.cpp:
-
- Cosmetic changes.
-
- * TAO_IDL/include/ast_attribute.h:
-
- Removed legacy comment.
-
- * TAO_IDL/be/be_valuetype.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp:
- * TAO_IDL/be_include/be_valuetype.h:
- * TAO_IDL/be_include/be_visitor_valuetype/valuetype.h:
- * TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h:
-
- Added generation of valuetype constructor that initializes all
- members, including inherited members, as specified in the CORBA
- C++ mapping (03-06-03) section 1.17.2. This fix closes
- [BUGID:2270].
-
-Thu Oct 27 14:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Dynamic/server_interceptor.cpp:
- Reordered includes to fix gcc4 errors
-
-Fri Oct 28 15:35:54 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/Bug_2287_Regression/Hello.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp:
- * orbsvcs/tests/Bug_2285_Regression/client2.cpp:
-
- More unused arg warnings and 'EXCEPTION' in the debug output
- was incorrectly marking this as a 'fail'.
-
-Fri Oct 28 09:53:24 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp:
-
- Fixed debian full build error - residual ACE cast macro.
-
-Thu Oct 27 14:20:35 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_global.cpp:
-
- Modified change in
-
- Wed Oct 26 18:57:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- to handle the use case where skeleton files are generated
- from a .pidl file, for example tao/ImR_Client/ImplRepo.pidl.
- Thanks to Johnny Willemsen <jwillemsen@remedy.nl> for
- reporting the problem.
-
-Thu Oct 27 14:31:12 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/Bug_2287_Regression/Hello.cpp:
-
- Fix gcc unused arg warning.
-
-Thu Oct 27 13:36:53 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/Bug_2285_Regression/Hello.h:
- * orbsvcs/tests/Bug_2287_Regression/Hello.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.h:
- * orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.h:
- * orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.h:
-
- Fix the obligatory fuzz errors.
-
-Thu Oct 27 11:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_codegen.cpp:
- * tao/GIOP_Utils.cpp:
- * tao/Transport_Connector.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp:
- 64bit fixes
-
-Thu Oct 27 11:30:59 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/operation_details.h:
- * tao/operation_details.i:
-
- Add members (with accessors) for the FT request retention ID and
- expiration time.
-
- * tao/PI/ClientRequestInfo.cpp:
- * tao/PI/ClientRequestInfo.h:
-
- Add accessors for the FT request retention ID and expiration time
- of the underlying request operation details (see above).
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp:
-
- Transmit the correct retention ID and request expiration time in
- the request service context. Bound retries by the expiration time.
-
- This fixes bus #2285 and #2287.
-
- * orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc:
- * orbsvcs/tests/Bug_2285_Regression/Hello.cpp:
- * orbsvcs/tests/Bug_2285_Regression/Hello.h:
- * orbsvcs/tests/Bug_2285_Regression/README:
- * orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.h:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.cpp:
- * orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.h:
- * orbsvcs/tests/Bug_2285_Regression/Test.idl:
- * orbsvcs/tests/Bug_2285_Regression/client.cpp:
- * orbsvcs/tests/Bug_2285_Regression/client2.cpp:
- * orbsvcs/tests/Bug_2285_Regression/run_test.pl:
- * orbsvcs/tests/Bug_2285_Regression/run_test2.pl:
- * orbsvcs/tests/Bug_2285_Regression/server.cpp:
- * orbsvcs/tests/Bug_2285_Regression/server2.cpp:
- * orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc:
- * orbsvcs/tests/Bug_2287_Regression/Hello.cpp:
- * orbsvcs/tests/Bug_2287_Regression/Hello.h:
- * orbsvcs/tests/Bug_2287_Regression/README:
- * orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.cpp:
- * orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.h:
- * orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp:
- * orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.h:
- * orbsvcs/tests/Bug_2287_Regression/Test.idl:
- * orbsvcs/tests/Bug_2287_Regression/client.cpp:
- * orbsvcs/tests/Bug_2287_Regression/run_test.pl:
- * orbsvcs/tests/Bug_2287_Regression/server.cpp:
-
- Regression tests for these bugs.
-
-Thu Oct 27 09:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Sequence_T.{h,cpp}:
- Applied the fix of bug 2201, when shrinking a sequence we
- re initialize the elements. Fixes bugzilla 2201.
- Thanks to Frank Pilhofer <fp at mc dot com> for reporting this
- and supplying the patch.
-
-Thu Oct 27 09:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2201_Regression/*:
- Added regression for bug 2201 to the cvs archive
-
-Thu Oct 27 06:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp:
- Fixed conversion warnings
-
-Wed Oct 26 17:22:12 2005 Don Busch <busch_d@ociweb.com>
-
- * orbsvcs/CosEvent_Service/CosEvent_Service.mpc
- * orbsvcs/examples/ORT/ORT.mpc
- * orbsvcs/orbsvcs/CosEvent.mpc
- * orbsvcs/orbsvcs/CosNaming_Serv.mpc
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp
- * orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp
- * orbsvcs/orbsvcs/Naming/Naming_Server.cpp
- * tao/CSD_Framework.mpc
-
- This is a footprint reduction fix, eliminating a library dependency.
- TAO 1.4 introduced a new dependency on the Messaging, Valuetype,
- PI, and CodecFactory libraries for the CosNaming_Serv and
- CosEvent_Serv libraries. Turning off CORBA Messaging did not remove
- this dependency. Thus, any application that uses CosNaming_Serv or
- CosEvent_Serv, but not CORBA Messaging, depends on those libraries
- anyway. This change eliminates the CosNaming_Serv and CosEvent_Serv
- dependencies on Messaging (and thus PI, CodecFactory, and Valuetype)
- when CORBA Messaging and Interceptors are turned off. It reduces
- the footprint in that case by about 600K.
- There is a ACE ChangeLog entry with the same timestamp that
- descibes the MPC config file changes.
-
-Wed Oct 26 19:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/CodecFactory/IOP_Codec_includeA.h:
- Added new file
-
- * tao/Makefile.am:
- Updated
-
-Wed Oct 26 18:57:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_global.cpp (be_change_idl_file_extension):
-
- Changed logic to ignore a header extension set by the -hc
- option and use "C.h", if we are processing a .pidl file,
- and we are not generating an *A.h file. Thanks to
- Johnny Willemsen <jwillemsen@remedy.nl> for reporting
- the problem.
-
-Wed Oct 26 18:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ClientRequestInfoA.cpp
- * tao/PI/ClientRequestInfoC.cpp
- * tao/PI/ClientRequestInfoC.h
- * tao/PI/ClientRequestInfoS.h
- * tao/PI/ClientRequestInterceptorA.cpp
- * tao/PI/ClientRequestInterceptorC.cpp
- * tao/PI/ClientRequestInterceptorC.h
- * tao/PI/ClientRequestInterceptorS.h
- * tao/PI/InterceptorA.cpp
- * tao/PI/InterceptorC.cpp
- * tao/PI/InterceptorC.h
- * tao/PI/InterceptorS.h
- * tao/PI/ORBInitInfoC.cpp
- * tao/PI/ORBInitInfoC.h
- * tao/PI/ORBInitInfoS.h
- * tao/PI/ORBInitializerA.cpp
- * tao/PI/ORBInitializerC.cpp
- * tao/PI/ORBInitializerC.h
- * tao/PI/ORBInitializerS.h
- * tao/PI/PIForwardRequestA.cpp
- * tao/PI/PIForwardRequestC.cpp
- * tao/PI/PIForwardRequestC.h
- * tao/PI/PIForwardRequestS.h
- * tao/PI/PolicyFactoryA.cpp
- * tao/PI/PolicyFactoryC.cpp
- * tao/PI/PolicyFactoryC.h
- * tao/PI/PolicyFactoryS.h
- * tao/PI/RequestInfoA.cpp
- * tao/PI/RequestInfoC.cpp
- * tao/PI/RequestInfoC.h
- * tao/PI/RequestInfoS.h
- * tao/PI_Server/ServerRequestInfoA.cpp
- * tao/PI_Server/ServerRequestInfoC.cpp
- * tao/PI_Server/ServerRequestInfoC.h
- * tao/PI_Server/ServerRequestInfoS.h
- * tao/PI_Server/ServerRequestInterceptorA.cpp
- * tao/PI_Server/ServerRequestInterceptorC.cpp
- * tao/PI_Server/ServerRequestInterceptorC.h
- * tao/PI_Server/ServerRequestInterceptorS.h
- * tao/IORInterceptor/IORInfoC.cpp
- * tao/IORInterceptor/IORInfoC.h
- Regenerated
-
- * tao/IORInterceptor/IORInfo.pidl
- * tao/PI/ORBInitInfo.pidl
- Updated regeneration instructions
-
- * tao/PI/ORBInitInfoA.cpp:
- Removed
-
- * tao/PI/ClientRequestInfoA.h
- * tao/PI/ClientRequestInterceptorA.h
- * tao/PI/InterceptorA.h
- * tao/PI/ORBInitializerA.h
- * tao/PI/PIForwardRequestA.h
- * tao/PI/PolicyFactoryA.h
- * tao/PI/RequestInfoA.h
- * tao/PI_Server/ServerRequestInfoA.h
- * tao/PI_Server/ServerRequestInterceptorA.h
- New generated files
-
- * tao/PortableServer/POA_Cached_Policies.cpp
- Layout fix
-
- * tao/Makefile.am
- Added new files
-
- * tao/IORInterceptor/IORInterceptor.pidl
- * tao/IORInterceptor/IORInterceptorC.cpp
- * tao/IORInterceptor/IORInterceptorC.h
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp
- Splitted PortableInterceptor::IORInterceptor into IORInterceptor
- and IORInterceptor_3_0. This is triggered by bug 1271 which contained
- issues about CORBA Compliance. In the 3.0.3 spec the IORInterceptor
- was splitted. This fixes bug 1271.
-
- IMPORTANT!!!
- If you use IORInterceptor methods components_established,
- adapter_manger_state_changed and adapter_state_changed you have to
- derive your implementation from IORInterceptor_3_0 else these
- methods don't get called!!!
-
- * tests/ORT/ORT_test_IORInterceptor.h
- * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h
- * tests/Portable_Interceptors/PolicyFactory/IORInterceptor.cpp
- * tests/Portable_Interceptors/PolicyFactory/IORInterceptor.h
- * orbsvcs/examples/ORT/Server_IORInterceptor.h
- * orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
- Changes for IORInterceptor_3_0.
-
-Wed Oct 26 13:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/diffs/ServerRequestInterceptor.diff:
- * tao/PI_Server/diffs/ServerRequestInterceptor.diff:
- Moved this diff to the PI_Server directory, it belongs there
-
-Wed Oct 26 09:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ObjRefTemplate/ObjectReferenceTemplate.pidl:
- Removed the equals and make_profiles methods which where
- commented out. That these exist in the IDL of CORBA 3.0.3
- is an editorial error. See also OMG issue 9112
-
-Tue Oct 25 22:24:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/LocateRequest_Invocation.cpp (invoke):
- * tao/Synch_Invocation.cpp (remote_oneway, remote_twoway):
-
- Changed OutputCDR_Auto_Reset to ACE_OutputCDR_Auto_Reset to
- match corresponding changes made to ACE.
-
-Tue Oct 25 21:50:46 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * utils/wxNamingViewer/wxNamingViewer.cpp:
- * utils/wxNamingViewer/wxNamingViewerFrame.cpp: Added some #include
- files to get things working again on Linux. Thanks to Matt
- Gillen <mgillen@bbn.com> for these fixes.
-
-Tue Oct 25 08:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/CosEvent/Basic/Shutdown.cpp:
- Fixed warning in MinGW build
-
-Tue Oct 25 07:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/POA_Current_Impl.cpp:
- Implemented POA_Current::get_reference. This is the last item
- of bugzilla bug 1917, which is now totally fixed
-
-Mon Oct 24 19:08:06 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/util/utl_scope.cpp:
- * TAO_IDL/util/utl_string.cpp:
-
- Added immediate exits when name clash errors are encountered,
- since trying to continue parsing from these points can lead to a
- crash. Thanks to Ian Zagorskih <ianzag@megasignal.com> for
- reporting the problem. This fix closes [BUGID:2281].
-
-Mon Oct 24 18:39:31 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+ * orbsvcs/performance-tests/perf.mwc:
+
+ avoided wchar for this whole test.
- * TAO_IDL/fe/fe_interface_header.cpp:
- * TAO_IDL/fe/idl.yy:
- * TAO_IDL/fe/y.tab.cpp:
- * TAO_IDL/include/fe_interface_header.h:
-
- For IDL types that are added to the IDL compiler's
- AST via an FE_*Header class (interfaces, valuetypes,
- eventtypes, components, and homes), modified the
- creation of this class to pass in a scoped name
- created on the heap instead of on the stack.
- Memory allocated within this scoped name was being
- freed in a different scope, and it's dangerous
- to assume that the stack address would still be
- valid. Also added a destroy() method to the
- FE_InterfaceHeader class (base class to all the
- others) that handles the destruction of the scoped
- name member and its contents, if it is nonzero.
- Thanks to Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
- for reporting the problem.
-
-Mon Oct 24 18:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/CodecFactory/CodecFactory_impl.cpp:
- Added validation whether the requested codesets are supported
-
- * tao/Codeset/Codeset_Manager_i.{h,cpp}:
- * tao/Codeset_Manager.h:
- Added get_ncs to be able to check whether a codeset is supported.
- Thanks to Phil Mesnier for helping with this issue.
-
-Mon Oct 24 17:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Codec/client.cpp:
- Added missing return
-
-Mon Oct 24 06:53:12 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/IFR_Service/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
-Mon Oct 24 13:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Codec/client.cpp:
- * tests/Codec/Codec.mpc:
- Extended this test
-
-Mon Oct 24 13:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/CodecFactory/CDR_Encaps_Codec.{h,cpp}
- * tao/CodecFactory/CodecFactory_impl.{h,cpp}:
- * tao/CodecFactory/IOP_Codec.pidl:
- * tao/CodecFactory/IOP_Codec_includeC.h:
- * tao/CodecFactory/IOP_Codec_includeS.h:
- * tao/CodecFactory/IOP_CodecC.{h,cpp}:
- The current Codec just encode/decodes wstring without
- using the codesets. When wstrings are encoded/decoded
- this causes problems. We found that there has been
- raised already an issue at the OMG for this: issue 6050,
- see http://www.omg.org/issues/issue6050.txt
- This proposes a new IDL method on CodecFactory,
- CodecFactory::create_codec_with_codesets.
- With this method a Codec can be created with specific
- codesets in place. We implemented this method in TAO,
- the only thing we will add soon is the extra check whether
- the requested codeset is supported, this is not possible
- at this moment because the codeset interfaces are not really
- setup in a way to do this.
-
- * tao/CodecFactory/IOP_CodecA.cpp:
- Removed
-
- * tao/Codeset_Manager.h:
- * tao/Codeset_Descriptor_Base.h:
- Small layout/doxygen fixes
-
- * tao/Makefile.am:
- Removed tao/CodecFactory/IOP_CodecA.cpp
-
- * tao/CodecFactory/diff/IOP_Codec.diff:
- Updated
-
-Mon Oct 24 12:59:07 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/Messaging/ExceptionHolder_i.cpp:
-
- Fixed compile error with VC++ 6.
-
-Mon Oct 24 07:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * Adapter_Registry.cpp:
- * ORB_Core.cpp:
- * Object.cpp:
- * BiDir_GIOP/BiDirGIOP.cpp:
- * CSD_Framework/CSD_Object_Adapter_Factory.cpp:
- * Messaging/Messaging_Loader.cpp:
- * PortableServer/Root_POA.cpp:
- * RTPortableServer/RT_Servant_Dispatcher.cpp:
- Don't pass %P, %t, \n to ACE_PRINT_EXCEPTION, it
- does this itself already.
-
- * Codeset/Codeset_Manager_i.cpp:
- Layout improvements
-
-Fri Oct 21 14:12:49 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * examples/CSD_Strategy/ThreadPool6/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool5/ClientApp.cpp:
- * examples/CSD_Strategy/ThreadPool5/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool3/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool2/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool4/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/Broken/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/Broken/ServerApp.cpp:
- * performance-tests/CSD_Strategy/TestApps/ServerApp.cpp:
-
- Added PI.h include to force statically initialization happen
- before the TAO_CSD_Object_Adapter::init() is called. This would
- resolve the problem that CSD test failures on static builds.
-
- * examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc:
- * examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc:
- * examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc:
- * examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc:
- * examples/CSD_Strategy/ThreadPool5/CSD_Test_ThreadPool5.mpc:
- * examples/CSD_Strategy/ThreadPool6/CSD_Test_ThreadPool6.mpc:
-
- Added dependency on pi base project since the PI.h is included
- in the test application.
-
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp:
-
- Corrected the conversion specifier (using %u) for unsigned value.
-
-Fri Oct 21 12:25:56 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/PI_Server/PI_Server_Loader.cpp:
-
- Removed the %P|%t in the ACE_PRINT_EXCEPTION info parameter.
-
-Fri Oct 21 11:17:10 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp:
-
- Made the number of threads to use the default value 1 if the
- number of threads is not specified in the service config file.
-
- * tao/CSD_ThreadPool/CSD_TP_Task.cpp:
-
- Replaced the unsigned* with unsigned int* to fix a parse error
- compilation error on some compilers.
-
-Fri Oct 21 07:19:32 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * performance-tests/Sequence_Latency/Deferred/Deferred.mpc:
-
- Fix tipo in server project that caused it not to depend on IDL
- project.
-
-Fri Oct 21 13:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/CodeSets/simple/client.cpp:
- Fixed signed/unsigned warning
-
-Fri Oct 21 10:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/driver.cpp:
- * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/client.cpp:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp:
- * orbsvcs/performance-tests/RTEvent/Roundtrip/client.cpp:
- * orbsvcs/performance-tests/RTEvent/TCP_Baseline/client.cpp:
- Don't use barrier as variable name, can be a macro. fixes bugzila
- bug 2271. Thanks to Francesco Salvestrini
- <f dot salvestrini at nextworks dot it> for reporting this.
-
- * tests/Nested_Upcall_Crash/Clock_Ticks.{h,cpp}:
- * orbsvcs/orbsvcs/IFRService/Container_i.cpp:
- * tests/CodeSets/simple/client.cpp:
- 64bit fixes
-
- * examples/Simple/echo/Echo_i.cpp:
- Initialise pointer with 0
-
- * tao/PortableServer/POA_Current.{h,cpp}:
- * tao/PortableServer/POA_Current_Impl.{h,cpp}:
- * tao/PortableServer/PS_CurrentA.cpp:
- * tao/PortableServer/PS_CurrentC.{h,cpp}:
- * tao/PortableServer/PS_Current.pidl:
- Added Current::get_reference as to be implemented method, that will
- be done soon. Generated the pidl file as a result of AnyTypeCode
- refactoring the PS_CurrentA.cpp is not usable for this file, so
- zapped it.
-
- * tao/Makefile.am:
- Removed PS_CurrentA.cpp
-
-Fri Oct 21 09:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/ExceptionHolder_i.h:
- Fixed forward declaration
-
-Thu Oct 20 12:24:30 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/server.cpp:
-
- Made the ACE_Thread_Manager instance wait for CSD task threads
- exit. This should fix test failure shown on scoreboard.
-
-Thu Oct 20 11:54:38 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * examples/CSD_Strategy/ThreadPool/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool2/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool3/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool4/Callback_i.h:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool5/Callback_i.h:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.h:
- * performance-tests/CSD_Strategy/TestServant/Foo_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h:
-
- Removed the duplicated inheritence of PortableServer::ServantBase.
-
- * tao/CSD_Framework/CSD_Framework.pidl:
-
- Fixed fuzz errors.
-
- * tao/CSD_Framework/CSD_FrameworkA.cpp:
- * tao/CSD_Framework/CSD_FrameworkA.h:
- * tao/CSD_Framework/CSD_FrameworkC.cpp:
- * tao/CSD_Framework/CSD_FrameworkC.h:
- * tao/CSD_Framework/diffs/CSD_Framework.diff:
-
- Regenerated files from pidl file and updated to resolve error
- message from compiler.
-
- * tao/CSD_Framework/CSD_FrameworkC.inl:
-
- Removed the empty file to fix fuzz error.
-
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp:
- * tao/CSD_Framework/CSD_Strategy_Base.h:
- * tao/CSD_ThreadPool/CSD_ThreadPool.h:
- * tao/CSD_ThreadPool/CSD_TP_Task.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.h:
-
- Fixed fuzz errors and compilation errors shown on scoreboard.
-
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/client.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl:
-
- Updated to be the same as in $TAO_ROOT/tests/Hello test.
-
-Thu Oct 20 14:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp:
- Fixed argument not used warning
-
-Thu Oct 20 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- Enabled the new AMI implementation as described in the CORBA
- 3.0.3 specification. All tests and examples are updated to the
- new spec but if you want to use the old specification for
- your application then define TAO_HAS_DEPRECATED_EXCEPTION_HOLDER
- in your config.h and rebuild the core libs and the TAO IDL compiler.
- This deprecated AMI support will be kept alive until x.5.1 has
- been released and then we will zap it completely from the
- TAO distribution.
-
- When you want to update the application code for the new mapping,
- all _excep methods in the reply handler must be updated. Change
- the interface specific exceptionholder in the interface to
- ::Messaging::ExceptionHolder, change in the implementation the
- raise_x call to raise_exception.
-
- * TAO_IDL/be_include/be_global.h:
- * tao/orbconf.h:
- Removed define of TAO_HAS_DEPRECATED_EXCEPTION_HOLDER, we
- are switching now to the new AMI implementation
-
- * docs/tutorials/Quoter/AMI/Handler_i.{h,cpp}:
- * docs/tutorials/Quoter/On_Demand_Activation/Handler_i.{h,cpp}:
- * examples/AMI/FL_Callback/Peer_i.{h,cpp}:
- * examples/Buffered_AMI/client.cpp:
- * examples/Content_Server/AMI_Iterator/Iterator_Handler.h:
- * examples/Content_Server/AMI_Observer/Callback_Handler.{h,cpp}:
- * examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.{h,cpp}:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.{h,cpp}:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.{h,cpp}:
- * orbsvcs/tests/HTIOP/AMI/client.cpp
- * orbsvcs/tests/HTIOP/AMI/simple_client.cpp
- * performance-tests/Latency/AMI/Roundtrip_Handler.{h,cpp}:
- * performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.{h,cpp}:
- * tests/AMI/client.cpp:
- * tests/AMI/simple_client.cpp:
- * tests/AMI_Buffering/Reply_Handler.{h,cpp}:
- * tests/AMI_Timeouts/timeout_i.{h,cpp}:
- * tests/Big_AMI/client.cpp:
- * tests/Bug_1482_Regression/Reply_Handler.{h,cpp}:
- * tests/Bug_1551_Regression/Reply_Handler.{h,cpp}:
- * tests/LongUpcalls/AMI_Manager.{h,cpp}:
- * tests/LongUpcalls/Manager_Handler.{h,cpp}:
- * tests/Portable_Interceptors/AMI/Echo_Handler.{h,cpp}:
- Updated for the new AMI mapping
-
-Thu Oct 20 12:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/compiler.html:
- Documented AMI behaviour and fixed some incorrect links
-
-Thu Oct 20 12:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/releasenotes/index.html:
- Fixed html tag
-
-Thu Oct 20 10:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_ami_pre_proc.cpp:
- Fixed problem with the exceptionholder in the new AMI mapping, it
- was created for each interface in an idl file, it should only
- be created once
-
-Thu Oct 20 09:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp:
- Guarded another part of code with TAO_HAS_DEPRECATED_EXCEPTION_HOLDER,
- it is not needed with the new AMI implementation
-
-Wed Oct 19 14:09:44 2005 Bala Natarajan <bala_natarajan at symantec dot com>
-
- * tao/Messaging/AMH_Response_Handler.cpp:
-
- Release the lock in the destructor before calling
- _tao_rh_send_exception (). The said method is well
- protected. Calling this method with the lock held could create a
- deadlock. Thanks to Anton Bakanovskiy <Anton dot Bakanovskiy at
- bercut dot ru> and Toha Bakanovsky <im-scooter at yandex.ru> for
- reporting the problem. This fixes [BUGID 2269].
-
-Wed Oct 19 11:30:23 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- * tao/CSD_Framework/CSD_Strategy_Base.h:
-
- Removed extra ";" from the POAManager forward declaration.
-
- * tao/CSD_Framework/CSD_Strategy_Base.cpp:
- * tao/PortableServer/Root_POA.cpp:
-
- Removed the argument name from the csd hook interfaces instead
- of using ACE_UNUSED_ARG.
-
- * docs/libraries.html:
-
- Added CSD_Framework and CSD_ThreadPool library descriptions.
-
- * examples/CSD_Strategy/ThreadPool/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool2/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool3/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool4/Callback_i.h:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool5/Callback_i.h:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.h:
- * performance-tests/CSD_Strategy/TestServant/Foo_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h:
-
- Replaced deprecated RefCountServantBase with ServantBase.
-
-Wed Oct 19 10:01:03 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Valuetype/Value_VarOut_T.cpp (operator=):
-
- Implement assignment operators in terms of their constructor
- counterparts using the canonical copy and (non-throwing) swap
- technique. Provides strong exception safety guarantee, obviates
- need for self-assignment check and reduces code duplication
- between constructors and assignment operators. This change also
- reverts "Tue Jun 21 13:38:23 2005 Gary Maxey <gary.maxey@...>",
- and fixes a memory leak reported by Mickael P. Golovin <migel at
- garant dot ru>.
-
-Wed Oct 19 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/ExceptionHolder_i.cpp:
- Added todo that code could be simplified when missing valuetype
- constructor is generated
-
-Wed Oct 19 10:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+Tue Jan 10 09:57:39 2006 Wallace Zhang <zhangw@ociweb.com>
- * TAO_IDL/be_include/be_global.h:
- Added define of TAO_HAS_DEPRECATED_EXCEPTION_HOLDER. This way
- I can the new AMI support to the IDL compiler in the repo
- and build it on multiple boxes by removing this define by hand.
- At the moment the new AMI support is fully ready I will remove
- this define and then it is up to the user to set it.
-
- * TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp:
- * TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp:
- * TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_cs.cpp:
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_visitor_ami_pre_proc.cpp:
- Added support for the new AMI mapping, is enabled when
- TAO_HAS_DEPRECATED_EXCEPTION_HOLDER is not defined, so by
- default it is disabled at this moment
-
-Wed Oct 19 09:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/ExceptionHolder_i.{h,cpp}:
- Added new Messaging::ExceptionHolder implementation, will be used
- for the new AMI mapping
-
- * tao/Makefile.am:
- Added new files above
-
-Wed Oct 19 08:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be_include/be_global.h:
- * TAO_IDL/be/be_global.cpp:
- Added member to store the new Messaging::ExceptionHolder
- for the latest AMI mapping
-
-Wed Oct 19 00:35:02 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * configure.ac:
-
- Add default AM_CONDITIONAL for BUILD_WFMO.
-
-Wed Oct 19 07:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp:
- Fixed MinGW warning
-
-Wed Oct 19 00:11:34 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/POA/Explicit_Activation/Alt_Resources/Makefile.am:
-
- Regenerate.
-
- * examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource.mpc:
-
- Changed to inherit from wfmo instead of using a verbatim section
- to disable building on systems without the ACE_WFMO_Reactor.
-
-Tue Oct 18 23:43:02 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am
-
- Regenerate.
-
- * tao/CSD_Framework.mpc:
- * tao/CSD_ThreadPool.mpc:
-
- Add Pkconfig_Files section for new pkg-config templates.
-
- * tao/CSD_Framework/TAO_CSD_Framework.pc.in:
-
- New file, pkg-config *.pc template for TAO_CSD_Framework
- library.
-
- * tao/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in:
-
- New file, pkg-config *.pc template for TAO_CSD_ThreadPool
- library.
-
-Tue Oct 18 20:56:24 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/CSD_ThreadPool.mpc:
-
- Changed to inherit from core.mpb base project.
-
-Tue Oct 18 18:35:26 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerate due to CSD.
-
-Tue Oct 18 18:33:04 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am:
- * examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am:
-
- Regenerate due to change in Kokyu_dsrt_schedulers.mpb.
-
-Tue Oct 18 17:24:26 MST 2005 Yan Dai <dai_y@ociweb.com>
-
- Merged in the CSD (Custom Servant Dispatching) feature from OCI.
-
- The main changes to existing code are:
-
- - Four hooks are added to TAO_Root_POA to notify the CSD when poa
- is activated/deactivated and servant is activated/deactivated.
- Some areas of the code were instrumented to call these hooks to
- notify the CSD Strategy object of POA activation and deactivation
- "events". Likewise, code was added to notify the CSD Strategy object
- of servant activation and deactivation "events".
- - A virtual method do_dispatch() is added to the TAO_Object_Adapter so
- the CSD object adpater can override the default implementation to
- dispatch the requests to the CSD strategy.
- - The remote requests and the collocated oneway requests are cloned when
- they are dispatched to the CSD strategy. To support the TAO_ServerRequest
- clone in the CSD library, the friendship is added to the TAO_ServerRequest
- class and it's data member classes such as TAO_Service_Context class,
- TAO_Operation_Details class and TAO_Tagged_Profile class.
-
- * tao/PortableServer/Root_POA.cpp:
- * tao/PortableServer/Root_POA.h:
-
- Added four hooks.
-
- * tao/PortableServer/Object_Adapter.cpp:
- * tao/PortableServer/Object_Adapter.h:
- * tao/PortableServer/POAManager.cpp:
- * tao/PortableServer/ServantRetentionStrategyRetain.cpp:
-
- Instrumented to call the hooks.
-
- * tao/operation_details.h:
- * tao/Service_Context.h:
- * tao/Tagged_Profile.h:
-
- Added friendship with CSD_FW_Server_Request_Wrapper to support
- the TAO_ServerRequest clone in CSD library.
-
- * tao/TAO_Server_Request.h:
-
- - Changed the operation_details_ to be pointer to const
- TAO_Operation_Details object instead of const pointer to const
- TAO_Operation_Details object. This change is made to accommodate
- the change of TAO_ServerRequest clone in the CSD library.
- - Added friendship with CSD_FW_Server_Request_Wrapper to support
- the TAO_ServerRequest clone in CSD library.
-
- * tao/PortableServer/get_arg.h:
-
- Made the get_in_arg template function check whether the
- detail argument is nil. If the detail is not nil and the
- argument list in detail is nil(collocated oneway case) then it
- will demarshall the input CDR stream and get arguments. This
- change is made to accommodate the changes in TAO_Operation_Details
- clone that writes the argument list to the input CDR of the
- TAO_ServerRequest object.
-
- * tao/Intrusive_Ref_Count_Base_T.cpp:
- * tao/Intrusive_Ref_Count_Base_T.h:
- * tao/Intrusive_Ref_Count_Base_T.inl:
- * tao/Intrusive_Ref_Count_Handle_T.cpp:
- * tao/Intrusive_Ref_Count_Handle_T.h:
- * tao/Intrusive_Ref_Count_Handle_T.inl:
-
- These are two new classes that provide infrastructure-level support
- for classes that need an "intrusive" reference counting mechanism.
-
- * tao/CSD_Framework.mpc:
- * tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp:
- * tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h:
- * tao/CSD_Framework/CSD_Framework.pidl:
- * tao/CSD_Framework/CSD_Framework_Loader.cpp:
- * tao/CSD_Framework/CSD_Framework_Loader.h:
- * tao/CSD_Framework/CSD_FrameworkA.cpp:
- * tao/CSD_Framework/CSD_FrameworkA.h:
- * tao/CSD_Framework/CSD_FrameworkC.cpp:
- * tao/CSD_Framework/CSD_FrameworkC.h:
- * tao/CSD_Framework/CSD_FrameworkC.inl:
- * tao/CSD_Framework/CSD_FW_Export.h:
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp:
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h:
- * tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl:
- * tao/CSD_Framework/CSD_Object_Adapter.cpp:
- * tao/CSD_Framework/CSD_Object_Adapter.h:
- * tao/CSD_Framework/CSD_Object_Adapter_Factory.cpp:
- * tao/CSD_Framework/CSD_Object_Adapter_Factory.h:
- * tao/CSD_Framework/CSD_ORBInitializer.cpp:
- * tao/CSD_Framework/CSD_ORBInitializer.h:
- * tao/CSD_Framework/CSD_POA.cpp:
- * tao/CSD_Framework/CSD_POA.h:
- * tao/CSD_Framework/CSD_POA.inl:
- * tao/CSD_Framework/CSD_Strategy_Base.cpp:
- * tao/CSD_Framework/CSD_Strategy_Base.h:
- * tao/CSD_Framework/CSD_Strategy_Base.inl:
- * tao/CSD_Framework/CSD_Strategy_Proxy.cpp:
- * tao/CSD_Framework/CSD_Strategy_Proxy.h:
- * tao/CSD_Framework/CSD_Strategy_Proxy.inl:
- * tao/CSD_Framework/CSD_Strategy_Repository.cpp:
- * tao/CSD_Framework/CSD_Strategy_Repository.h:
- * tao/CSD_Framework/diffs/CSD_Framework.diff:
-
- All of the files listed above are brand new and are used to build
- the new CSD Framework library. This framework implements the base
- classes for the concrete strategy implementation and implements
- the service objects for CSD strategy static and dynamic loading
- via the service configuration file.
-
- * tao/CSD_ThreadPool.mpc:
- * tao/CSD_ThreadPool/CSD_ThreadPool.cpp:
- * tao/CSD_ThreadPool/CSD_ThreadPool.h:
- * tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h:
- * tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Corba_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Corba_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h:
- * tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl:
- * tao/CSD_ThreadPool/CSD_TP_Export.h:
- * tao/CSD_ThreadPool/CSD_TP_Queue.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Queue.h:
- * tao/CSD_ThreadPool/CSD_TP_Queue.inl:
- * tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h:
- * tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl:
- * tao/CSD_ThreadPool/CSD_TP_Remote_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Remote_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Request.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Request.h:
- * tao/CSD_ThreadPool/CSD_TP_Request.inl:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State.h:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State.inl:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h:
- * tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.h:
- * tao/CSD_ThreadPool/CSD_TP_Strategy.inl:
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h:
- * tao/CSD_ThreadPool/CSD_TP_Synch_Helper.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h:
- * tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl:
- * tao/CSD_ThreadPool/CSD_TP_Task.cpp:
- * tao/CSD_ThreadPool/CSD_TP_Task.h:
- * tao/CSD_ThreadPool/CSD_TP_Task.inl:
-
- All of the files listed above are brand new and are used to build
- the new CSD ThreadPool library. Collectively, these classes
- represent the reference-implementation for the CSD Strategy feature.
-
- * examples/CSD_Strategy/README:
- * examples/CSD_Strategy/ThreadPool/client_main.cpp:
- * examples/CSD_Strategy/ThreadPool/ClientApp.cpp:
- * examples/CSD_Strategy/ThreadPool/ClientApp.h:
- * examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc:
- * examples/CSD_Strategy/ThreadPool/Foo.idl:
- * examples/CSD_Strategy/ThreadPool/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool/OrbShutdownTask.cpp:
- * examples/CSD_Strategy/ThreadPool/OrbShutdownTask.h:
- * examples/CSD_Strategy/ThreadPool/README:
- * examples/CSD_Strategy/ThreadPool/run_test.pl:
- * examples/CSD_Strategy/ThreadPool/server_main.cpp:
- * examples/CSD_Strategy/ThreadPool/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool/ServerApp.h:
- * examples/CSD_Strategy/ThreadPool2/client_main.cpp:
- * examples/CSD_Strategy/ThreadPool2/ClientApp.cpp:
- * examples/CSD_Strategy/ThreadPool2/ClientApp.h:
- * examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc:
- * examples/CSD_Strategy/ThreadPool2/Foo.idl:
- * examples/CSD_Strategy/ThreadPool2/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool2/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool2/FooServantList.cpp:
- * examples/CSD_Strategy/ThreadPool2/FooServantList.h:
- * examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.cpp:
- * examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.h:
- * examples/CSD_Strategy/ThreadPool2/README:
- * examples/CSD_Strategy/ThreadPool2/run_test.pl:
- * examples/CSD_Strategy/ThreadPool2/server_main.cpp:
- * examples/CSD_Strategy/ThreadPool2/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool2/ServerApp.h:
- * examples/CSD_Strategy/ThreadPool3/client_main.cpp:
- * examples/CSD_Strategy/ThreadPool3/ClientApp.cpp:
- * examples/CSD_Strategy/ThreadPool3/ClientApp.h:
- * examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc:
- * examples/CSD_Strategy/ThreadPool3/Foo.idl:
- * examples/CSD_Strategy/ThreadPool3/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool3/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.cpp:
- * examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.h:
- * examples/CSD_Strategy/ThreadPool3/OrbTask.cpp:
- * examples/CSD_Strategy/ThreadPool3/OrbTask.h:
- * examples/CSD_Strategy/ThreadPool3/README:
- * examples/CSD_Strategy/ThreadPool3/run_test.pl:
- * examples/CSD_Strategy/ThreadPool3/server_main.cpp:
- * examples/CSD_Strategy/ThreadPool3/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool3/ServerApp.h:
- * examples/CSD_Strategy/ThreadPool4/Callback.idl:
- * examples/CSD_Strategy/ThreadPool4/Callback_i.cpp:
- * examples/CSD_Strategy/ThreadPool4/Callback_i.h:
- * examples/CSD_Strategy/ThreadPool4/ClientTask.cpp:
- * examples/CSD_Strategy/ThreadPool4/ClientTask.h:
- * examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc:
- * examples/CSD_Strategy/ThreadPool4/Foo.idl:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool4/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.cpp:
- * examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.h:
- * examples/CSD_Strategy/ThreadPool4/README:
- * examples/CSD_Strategy/ThreadPool4/run_test.pl:
- * examples/CSD_Strategy/ThreadPool4/server_main.cpp:
- * examples/CSD_Strategy/ThreadPool4/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool4/ServerApp.h:
- * examples/CSD_Strategy/ThreadPool5/Callback.idl:
- * examples/CSD_Strategy/ThreadPool5/Callback_i.cpp:
- * examples/CSD_Strategy/ThreadPool5/Callback_i.h:
- * examples/CSD_Strategy/ThreadPool5/client_main.cpp:
- * examples/CSD_Strategy/ThreadPool5/ClientApp.cpp:
- * examples/CSD_Strategy/ThreadPool5/ClientApp.h:
- * examples/CSD_Strategy/ThreadPool5/ClientTask.cpp:
- * examples/CSD_Strategy/ThreadPool5/ClientTask.h:
- * examples/CSD_Strategy/ThreadPool5/CSD_Test_ThreadPool5.mpc:
- * examples/CSD_Strategy/ThreadPool5/Foo.idl:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool5/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool5/FooServantList.cpp:
- * examples/CSD_Strategy/ThreadPool5/FooServantList.h:
- * examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.cpp:
- * examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.h:
- * examples/CSD_Strategy/ThreadPool5/OrbTask.cpp:
- * examples/CSD_Strategy/ThreadPool5/OrbTask.h:
- * examples/CSD_Strategy/ThreadPool5/README:
- * examples/CSD_Strategy/ThreadPool5/run_test.pl:
- * examples/CSD_Strategy/ThreadPool5/server_main.cpp:
- * examples/CSD_Strategy/ThreadPool5/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool5/ServerApp.h:
- * examples/CSD_Strategy/ThreadPool6/client_main.cpp:
- * examples/CSD_Strategy/ThreadPool6/ClientApp.cpp:
- * examples/CSD_Strategy/ThreadPool6/ClientApp.h:
- * examples/CSD_Strategy/ThreadPool6/CSD_Test_ThreadPool6.mpc:
- * examples/CSD_Strategy/ThreadPool6/Foo.idl:
- * examples/CSD_Strategy/ThreadPool6/Foo_i.cpp:
- * examples/CSD_Strategy/ThreadPool6/Foo_i.h:
- * examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.cpp:
- * examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.h:
- * examples/CSD_Strategy/ThreadPool6/README:
- * examples/CSD_Strategy/ThreadPool6/run_test.pl:
- * examples/CSD_Strategy/ThreadPool6/server_main.cpp:
- * examples/CSD_Strategy/ThreadPool6/ServerApp.cpp:
- * examples/CSD_Strategy/ThreadPool6/ServerApp.h:
- * performance-tests/CSD_Strategy/TestApps/client_main.cpp:
- * performance-tests/CSD_Strategy/TestApps/ClientApp.cpp:
- * performance-tests/CSD_Strategy/TestApps/ClientApp.h:
- * performance-tests/CSD_Strategy/TestApps/csd_pt_testapps.mpc:
- * performance-tests/CSD_Strategy/TestApps/run_test.pl:
- * performance-tests/CSD_Strategy/TestApps/server_main.cpp:
- * performance-tests/CSD_Strategy/TestApps/ServerApp.cpp:
- * performance-tests/CSD_Strategy/TestApps/ServerApp.h:
- * performance-tests/CSD_Strategy/TestApps/README:
- * performance-tests/CSD_Strategy/TestInf/AppHelper.cpp:
- * performance-tests/CSD_Strategy/TestInf/AppHelper.h:
- * performance-tests/CSD_Strategy/TestInf/AppShutdown.cpp:
- * performance-tests/CSD_Strategy/TestInf/AppShutdown.h:
- * performance-tests/CSD_Strategy/TestInf/CancelledException.idl:
- * performance-tests/CSD_Strategy/TestInf/ClientEngine.cpp:
- * performance-tests/CSD_Strategy/TestInf/ClientEngine.h:
- * performance-tests/CSD_Strategy/TestInf/ClientTask.cpp:
- * performance-tests/CSD_Strategy/TestInf/ClientTask.h:
- * performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc:
- * performance-tests/CSD_Strategy/TestInf/CSD_PT_TestInf_Export.h:
- * performance-tests/CSD_Strategy/TestInf/CustomException.idl:
- * performance-tests/CSD_Strategy/TestInf/FooException.idl:
- * performance-tests/CSD_Strategy/TestInf/OrbRunner.cpp:
- * performance-tests/CSD_Strategy/TestInf/OrbRunner.h:
- * performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.cpp:
- * performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.h:
- * performance-tests/CSD_Strategy/TestInf/OrbTask.cpp:
- * performance-tests/CSD_Strategy/TestInf/OrbTask.h:
- * performance-tests/CSD_Strategy/TestInf/ServantList_T.cpp:
- * performance-tests/CSD_Strategy/TestInf/ServantList_T.h:
- * performance-tests/CSD_Strategy/TestInf/TestAppBase.cpp:
- * performance-tests/CSD_Strategy/TestInf/TestAppBase.h:
- * performance-tests/CSD_Strategy/TestInf/TestAppException.idl:
- * performance-tests/CSD_Strategy/TestInf/TestAppMain.h:
- * performance-tests/CSD_Strategy/TestInf/README:
- * performance-tests/CSD_Strategy/TestServant/csd_pt_testservant.mpc:
- * performance-tests/CSD_Strategy/TestServant/CSD_PT_TestServant_Export.h:
- * performance-tests/CSD_Strategy/TestServant/Foo.idl:
- * performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.cpp:
- * performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.h:
- * performance-tests/CSD_Strategy/TestServant/Foo_i.cpp:
- * performance-tests/CSD_Strategy/TestServant/Foo_i.h:
- * performance-tests/CSD_Strategy/TestServant/Foo_Statistics.cpp:
- * performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h:
- * performance-tests/CSD_Strategy/TestServant/README:
- * tests/CSD_Strategy_Tests/README:
- * tests/CSD_Strategy_Tests/Broken/client_main.cpp:
- * tests/CSD_Strategy_Tests/Broken/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/Broken/ClientApp.h:
- * tests/CSD_Strategy_Tests/Broken/CSD_TP_Broken.mpc:
- * tests/CSD_Strategy_Tests/Broken/run_test.pl:
- * tests/CSD_Strategy_Tests/Broken/server_main.cpp:
- * tests/CSD_Strategy_Tests/Broken/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/Broken/ServerApp.h:
- * tests/CSD_Strategy_Tests/TP_Common/AppHelper.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/AppHelper.h:
- * tests/CSD_Strategy_Tests/TP_Common/AppShutdown.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/AppShutdown.h:
- * tests/CSD_Strategy_Tests/TP_Common/CancelledException.idl:
- * tests/CSD_Strategy_Tests/TP_Common/ClientEngine.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/ClientEngine.h:
- * tests/CSD_Strategy_Tests/TP_Common/ClientTask.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/ClientTask.h:
- * tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Export.h:
- * tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.mpc:
- * tests/CSD_Strategy_Tests/TP_Common/CustomException.idl:
- * tests/CSD_Strategy_Tests/TP_Common/FooException.idl:
- * tests/CSD_Strategy_Tests/TP_Common/OrbRunner.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/OrbRunner.h:
- * tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.h:
- * tests/CSD_Strategy_Tests/TP_Common/OrbTask.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/OrbTask.h:
- * tests/CSD_Strategy_Tests/TP_Common/ServantList_T.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/ServantList_T.h:
- * tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.h:
- * tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp:
- * tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h:
- * tests/CSD_Strategy_Tests/TP_Common/TestAppException.idl:
- * tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h:
- * tests/CSD_Strategy_Tests/TP_Foo_A/CSD_TP_Foo_A_Export.h:
- * tests/CSD_Strategy_Tests/TP_Foo_A/csd_tp_foo_a_lib.mpc:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A.idl:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.h:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback.idl:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/CSD_TP_Foo_B_Export.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/csd_tp_foo_b_lib.mpc:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.h:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/CSD_TP_Foo_C_Export.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/csd_tp_foo_c_lib.mpc:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C.idl:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.cpp:
- * tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.h:
- * tests/CSD_Strategy_Tests/TP_Test_1/client_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_1/CSD_TP_Test_1.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_1/server_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_2/client_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_2/CSD_TP_Test_2.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_2/server_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_3/client_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_3/CSD_TP_Test_3.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_3/server_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_4/client_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_4/CSD_TP_Test_4.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_4/README:
- * tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_4/server_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/client.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/CSD_TP_Test_Dynamic.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/README:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/server.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/svc.conf:
- * tests/CSD_Strategy_Tests/TP_Test_Dynamic/Test.idl:
- * tests/CSD_Strategy_Tests/TP_Test_Static/client_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_Static/CSD_TP_Test_Static.mpc:
- * tests/CSD_Strategy_Tests/TP_Test_Static/README:
- * tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl:
- * tests/CSD_Strategy_Tests/TP_Test_Static/server_main.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp:
- * tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.h:
- * tests/CSD_Strategy_Tests/TP_Test_Static/svc.conf:
-
- All of the files above are part of the examples, tests and performance
- tests added for the CSD feature.
+ * orbsvcs/performance-tests/perf.mwc:
Tue Oct 18 13:23:21 2005 Chris Cleeland <cleeland_c@ociweb.com>
@@ -12815,7 +65,7 @@ Tue Oct 18 00:08:30 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
* tao/ORB.cpp (resolve_service):
- Use snprintf() to simplify integer-to-string conversion and
+ Use snprintf() to simplify integer to-tring conversion and
string concatenation. Thanks to Jiang Wei <jw dot tao at sduept
dot com> for providing a patch.
@@ -12826,8 +76,8 @@ Tue Oct 18 00:08:30 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
(resolve_initial_references):
- Updated calls to resolve_service() to reflect new signature and
- void return type.
+ Updated to calls to resolve_service() to reflect new signature
+ and void return type.
* tao/ORB_Core.cpp (init):
@@ -14423,24 +1673,24 @@ Mon Oct 3 18:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Mon Oct 3 10:48:45 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * TAO_IDL/tao_idl.mpc:
- * orbsvcs/orbsvcs/CosNaming_Serv.mpc:
- * orbsvcs/orbsvcs/Svc_Utils.mpc:
- * tao/Strategies.mpc:
+ * TAO/TAO_IDL/tao_idl.mpc:
+ * TAO/orbsvcs/orbsvcs/CosNaming_Serv.mpc:
+ * TAO/orbsvcs/orbsvcs/Svc_Utils.mpc:
+ * TAO/tao/Strategies.mpc:
Added "ace_for_tao" ACE library subset support.
- * TAO_IDL/driver/drv_preproc.cpp:
- * TAO_IDL/fe/fe_extern.cpp:
- * TAO_IDL/fe/fe_init.cpp:
- * TAO_IDL/include/fe_extern.h:
+ * TAO/TAO_IDL/driver/drv_preproc.cpp:
+ * TAO/TAO_IDL/fe/fe_extern.cpp:
+ * TAO/TAO_IDL/fe/fe_init.cpp:
+ * TAO/TAO_IDL/include/fe_extern.h:
Removed use of ACE_UUID. Rely on ACE_OS::mkstemp() instead to
avoid depending on more areas of ACE than necessary.
- * orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h:
- * tao/default_resource.cpp:
- * tao/Strategies/advanced_resource.cpp:
+ * TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h:
+ * TAO/tao/default_resource.cpp:
+ * TAO/tao/Strategies/advanced_resource.cpp:
Include appropriate headers to address incomplete type
definition related compile-time errors. Necessitated by header
@@ -14663,11 +1913,11 @@ Fri Sep 30 12:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Fri Sep 30 12:22:51 2005 Simon McQueen <sm@prismtech.com>
- * orbsvcs/tests/Bug_2247_Regression/Bug_2247_Regression.mpc:
+ * TAO/orbsvcs/tests/Bug_2247_Regression/Bug_2247_Regression.mpc:
Add minimum_corba.
- * orbsvcs/tests/Bug_2247_Regression/Manager.cpp:
+ * TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp:
ACE_CHECK to ACE_CHECK_RETURN.
@@ -16709,7 +3959,7 @@ Fri Aug 26 23:48:25 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* tao/default_client.cpp:
* tao/default_client.h:
- New strategy ORBConnectionHandlerCleanup .
+ New strategy ORBCOnnectionHandlerCleanup .
* tao/Connection_Handler.cpp:
@@ -17137,8 +4387,8 @@ Wed Aug 24 09:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Only store and use the typecode of an user exception when
interceptors are enabled
- * tao/ImR_Client/ImplRepo.pidl:
- * tao/ImR_Client/ServerObject.pidl:
+ * TAO/tao/ImR_Client/ImplRepo.pidl:
+ * TAO/tao/ImR_Client/ServerObject.pidl:
Updated regeneration instructions to not use -GA
* tao/ImR_Client/ImplRepoA.h
@@ -17155,8 +4405,8 @@ Wed Aug 24 09:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
* tao/ImR_Client/ServerObjectS.h
Regenerated
- * tao/ImR_Client/ImplRepoA.cpp
- * tao/ImR_Client/ServerObjectA.cpp
+ * TAO/tao/ImR_Client/ImplRepoA.cpp
+ * TAO/tao/ImR_Client/ServerObjectA.cpp
Removed
* tao/Makefile.am:
@@ -20990,8 +8240,8410 @@ Fri Aug 05 07:49:26 2005 Simon Massey <sma@prismtech.com>
* TAO version 1.4.7 released.
+Tue Aug 2 21:18:02 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/fe/idl.yy:
+ * TAO_IDL/fe/y.tab.cpp:
+
+ Fixed some mismatched allocate/deallocate errors. Thanks to
+ Johnny Willemsen <jwillemsen@rememdy.nl> for pointing them
+ out.
+
+Tue Aug 2 13:01:58 2005 Steve Totten <totten_s@ociweb.com>
+
+ Applied the following change from the OCI TAO 1.4a repository on
+ behalf of Abdel Rigumye:
+
+ Fri Jul 29 14:30 2005 Abdel Rigumye <rigumyea@ociweb.com>
+
+ * orbsvc/Naming_Service/README:
+
+ Added and documented the existence of the -u and -r persistence
+ options
+
+Tue Aug 2 09:53:23 2005 Simon McQueen <sm@prismtech.com>
+
+ * orbsvcs/tests/Bug_1630_Regression/test.mpc:
+
+ Use imr_client base project.
+
+Mon Aug 1 07:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/Bug_1395_Regression/Makefile.am:
+ Added ImR_Client
+
+Sat Jul 30 10:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/Bug_1395_Regression/Test_i.cpp:
+ Fixed casing of include
+
+Fri Jul 29 17:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/LifespanStrategyPersistent.cpp:
+ Added missing ACE_CHECK
+
+Fri Jul 29 18:41:50 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/ImR_Client/ImR_Client.cpp:
+
+ Fixed typo.
+
+ * orbsvcs/tests/Bug_1395_Regression/Bug_1395_Regression.mpc:
+ * orbsvcs/tests/Bug_1395_Regression/Test_i.cpp:
+
+ Forced link of ImR_Client to fix error on static builds.
+
+Fri Jul 29 17:55:23 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/ORB_Core.h:
+ * tao/ORB_Core.i:
+
+ Add accessor for use_implrepo_ value.
+
+ * tao/ImR_Client/ImR_Client.cpp:
+
+ Make calling imr_notify_startup when the ImR ref cannot be
+ found or narrowed into an error condition.
+
+ * tao/PortableServer/LifespanStrategyPersistent.h:
+ * tao/PortableServer/LifespanStrategyPersistent.cpp:
+
+ Read the use_imr_ value from the ORB core. Only try and load
+ the ImR_Client and call imr_notify_startup if use_imr_ set.
+
+Fri Jul 29 14:15:11 2005 Simon McQueen <sm@prismtech.com>
+
+ * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
+
+ Added ACE_NOTREACHED to unreachable code to fix warning on
+ HP non stop build.
+
+Thu Jul 28 12:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/Bug_1630_Regression/testclient.cpp:
+ Added include of IFR_Client_Adapter_Impl, this should make sure
+ the IFR_Client is linked into the exe and the static initializers
+ are called. This should fix this test in the Windows static
+ builds
+
+Thu Jul 28 10:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OctetSeq/client.cpp:
+ Don't test _repository_id in a minimum corba build
+
+Thu Jul 28 00:43:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/CORBA_String.h:
+ * tao/CORBA_String.inl:
+
+ Removed operator==({W}String_var,{W}String_var) from the CORBA
+ namespace. It was TAO-specific, only existed so that
+ {W}String_var could be used as map key, and polluted the CORBA
+ namespace. Replaced with TAO::String_Var_Equal_To equality
+ functor.
+
+ * tao/ORB.cpp (_downcast):
+
+ Removed redundant/unnecessary repository ID string comparison
+ from ORB::InvalidName::_downcast() method. A simple
+ dynamic_cast<>-based check is sufficient.
+
+ (ORB_init):
+
+ Removed ORB shutdown check. The goal of the check was to cause
+ the CORBA::BAD_INV_ORDER system exception to be thrown if the
+ ORB was shutdown. However, that only applies to ORB methods,
+ not CORBA::ORB_init(). Just return the ORB. ORB methods
+ already check for ORB shutdown.
+
+ * tao/ORB_Table.cpp (bind):
+
+ Moved pair creation before the lock acquisition. Pair creation
+ in this case need not be synchronized across threads.
+
+ (unbind):
+
+ Pass the iterator returned from the underlaying map's find()
+ call to erase(). Saves us a duplicate element search found in
+ the erase() overload that accepts a key_type instead of an
+ iterator.
+
+ Removed work around described here in ChangeLog entry "Fri Jul
+ 22 10:07:12 UTC 2005 Johnny Willemsen
+ <jwillemsen@remedy.nl>". It is no longer necessary due to
+ changes in the ACE_Array_Map implementation. Also addresses
+ missing key object destruction in the workaround.
+
+ * tao/ORB_Table.h:
+ * tao/ORB_Table.inl:
+
+ Removed the ORB_Core_Ref_Counter equality operator. It is a
+ vestige of a transitional ORB_Table and ORB_Core_Ref_Counter
+ implementation, and is no longer needed.
+
+ Set the ACE_Array_Map equality functor template parameter to
+ TAO::String_Var_Equal_To. See changes to CORBA_String.h above
+ for details.
+
+ * tao/Object_Ref_Table.h:
+
+ Set the ACE_Array_Map equality functor template parameter to
+ TAO::String_Var_Equal_To. See changes to CORBA_String.h above
+ for details.
+
+ * tao/Object_Ref_Table.cpp (bind):
+
+ Moved pair creation before the lock acquisition. Pair creation
+ in this case need not be synchronized across threads.
+
+ * tao/PortableServer/Servant_Base.cpp:
+ * tao/PortableServer/Servant_Base.h:
+ * tao/PortableServer/Servant_Base.i:
+
+ Inlined one-liners. Reduces footprint.
+
+ Use the ACE_Atomic_Op<long> specialization as the underlying
+ synchronized reference counting mechanism instead of
+ ACE_Atomic_Op<CORBA::ULong>. Improves performance and reduces
+ footprint.
+
+Wed Jul 27 21:35:20 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/lib/Makefile.am:
+
+ Regenerated.
+
+Wed Jul 27 15:59:54 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
+
+ When generating Any insertion and extraction operators
+ conditionally put them in a namespace that corresponds to their
+ enclosing module (if any). Addresses problem reported in
+ Bugzilla report #2071. Since some compilers do not implement
+ symbol lookup correctly the changed code is controlled by the
+ ACE_ANY_OPS_USE_NAMESPACE macro. Use this macro in config*.h if
+ your compiler implements symbol lookup correctly. Without the
+ macro the IDL generated code is as it was.
+
+Wed Jul 27 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Wait_On_Leader_Follower.h:
+ Fixed typo in documentation
+
+Wed Jul 27 09:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
+ Fixed compile error in minimum build
+
+Wed Jul 27 07:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OBV/ValueBox/client.cpp:
+ Fixed conversion warning
+
+Wed Jul 27 07:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/tutorials/Quoter/Event_Service/index.html:
+ Updated documentation how to run this tutorial. Thanks to
+ Frederick Heckel <fwph at cse dot wustl dot edu> for
+ reporting that things didn't work.
+
+Tue Jul 26 12:11:36 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp:
+
+ Plugged some memory leaks.
+
+Tue Jul 26 14:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/Options.html:
+ Small link improvements
+
+Tue Jul 26 12:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.cpp (destroy_interceptors):
+ Fixed memory leak of client/server request interceptor lists
+
+Tue Jul 26 12:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp:
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl:
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.{h,cpp}:
+ Added a CORBA::ULongSeq as out argument to the server_test
+ method to test for bug 2158. It seems this problem doesn't
+ exists anymore
+
+Tue Jul 26 11:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO_IDL/be/be_interface.cpp:
+ Fixed problem in dynamic hash lookup table generation
+
+Tue Jul 26 10:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
+ Added return 0
+
+Tue Jul 26 10:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Remote_Object_Proxy_Broker.cpp:
+ Fixed compile error in minimum build
+
+Tue Jul 26 09:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PICurrent.{h,cpp}:
+ * tao/PICurrent_Loader.cpp:
+ Overruled _get_orb and store an ORB_Core reference instead of
+ a pointer
+
+Tue Jul 26 09:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/params.h:
+ Removed some old comment
+
+Tue Jul 26 08:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OBV/ValueBox/client.cpp:
+ Added some missing CORBA::string_dup calls which caused this tet
+ to fail in a static build
+
+Tue Jul 26 08:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp:
+ No need to check for a nill pointer, the dynamic_cast handles that
+
+Tue Jul 26 08:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1020_Regression/client.cpp:
+ Initialise pointer with 0
+
+Tue Jul 26 07:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/IdAssignmentStrategy.h:
+ * tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp:
+ * tao/PortableServer/IdAssignmentStrategySystem.cpp:
+ * tao/PortableServer/IdAssignmentStrategySystem.h:
+ * tao/PortableServer/IdAssignmentStrategyUser.cpp:
+ * tao/PortableServer/IdAssignmentStrategyUser.h:
+ * tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp:
+ * tao/PortableServer/IdUniquenessStrategyFactoryImpl.h:
+ * tao/PortableServer/IdUniquenessStrategyMultiple.cpp:
+ * tao/PortableServer/IdUniquenessStrategyUnique.cpp:
+ * tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp:
+ * tao/PortableServer/ImplicitActivationStrategy.h:
+ * tao/PortableServer/ImplicitActivationStrategyExplicit.cpp:
+ * tao/PortableServer/ImplicitActivationStrategyExplicit.h:
+ * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp:
+ * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h:
+ * tao/PortableServer/ImplicitActivationStrategyImplicit.cpp:
+ * tao/PortableServer/LifespanStrategy.h:
+ * tao/PortableServer/LifespanStrategyFactoryImpl.cpp:
+ * tao/PortableServer/LifespanStrategyPersistent.h:
+ * tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp:
+ * tao/PortableServer/LifespanStrategyTransient.h:
+ * tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp:
+ * tao/PortableServer/Policy_Strategy.h:
+ * tao/PortableServer/RequestProcessingStrategy.h:
+ * tao/PortableServer/RequestProcessingStrategyAOMOnly.h:
+ * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp:
+ * tao/PortableServer/RequestProcessingStrategyDefaultServant.h:
+ * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp:
+ * tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp:
+ * tao/PortableServer/RequestProcessingStrategyServantActivator.h:
+ * tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp:
+ * tao/PortableServer/RequestProcessingStrategyServantLocator.h:
+ * tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp:
+ * tao/PortableServer/RequestProcessingStrategyServantManager.h:
+ * tao/PortableServer/ServantRetentionStrategy.h:
+ * tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp:
+ * tao/PortableServer/ServantRetentionStrategyNonRetain.h:
+ * tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp:
+ * tao/PortableServer/ServantRetentionStrategyRetain.h:
+ * tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp:
+ * tao/PortableServer/StrategyFactory.h:
+ * tao/PortableServer/ThreadStrategy.h:
+ * tao/PortableServer/ThreadStrategyFactory.h:
+ * tao/PortableServer/ThreadStrategyFactoryImpl.cpp:
+ * tao/PortableServer/ThreadStrategySingle.cpp:
+ * tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp:
+ * tao/PortableServer/ThreadStrategySingleFactoryImpl.h:
+ Reduced the number of exports. This will reduce footprint in
+ Windows and GCC 4 builds.
+
+Tue Jul 26 06:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/ImplRepo/airplane_server_i.cpp:
+ Added missing include
+
+Tue Jul 26 06:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/Notify/lib/Task_Callback.{h,cpp}:
+ Added virtual destructor
+
+Mon Jul 25 15:48:05 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp:
+
+ Plugged some memory leaks.
+
+Mon Jul 25 12:49:44 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Array_VarOut_T.h:
+ * tao/Array_VarOut_T.inl:
+ * tao/Fixed_Array_Argument_T.inl:
+ * tao/PortableServer/Fixed_Array_SArgument_T.inl:
+
+ Removed "out" method from class TAO_Array_Var_Base_T and added
+ the method to classes TAO_FixedArray_Var_T and
+ TAO_VarArray_Var_T. For fixed arrays the "out" method now
+ returns T_slice * for fixed arrays. For variable arrays the
+ "out" method returns T_slice *& (same as previously).
+
+Mon Jul 25 12:37:34 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp:
+
+ Fixed platform-specific compilation warnings.
+
+Mon Jul 25 13:34:03 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/ImplRepo/airplane_server.cpp:
+ * orbsvcs/tests/ImplRepo/airplane_server_i.cpp:
+
+ Add suicide capability to the server. This won't help any tests
+ pass, but should prevent airplane server processes from hanging.
+
+ * orbsvcs/tests/ImplRepo/run_test.pl:
+
+ Change the both_ir test to work as documented. The test should run
+ once with the servers running, and then once with the servers launched
+ by the activator. This works around some weird startup problems on
+ Windows.
+
+Mon Jul 25 18:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/ThreadStrategyORBControl.{h,cpp}:
+ Don't export this, this is only used internally in the
+ portableserver library.
+
+Mon Jul 25 18:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO_IDL/be/be_interface.cpp:
+ * TAO_IDL/be/be_visitor_component/component_sh.cpp:
+ * TAO_IDL/be/be_visitor_interface/amh_sh.cpp:
+ * TAO_IDL/be/be_visitor_interface/interface_sh.cpp:
+ * TAO_IDL/be/be_visitor_interface/interface_ss.cpp:
+ * tao/Abstract_Servant_Base.h:
+ * tao/LocalObject.{h,cpp}:
+ * tao/Object.{h,cpp}:
+ * tao/Object_Proxy_Broker.h:
+ * tao/Remote_Object_Proxy_Broker.{h,cpp}:
+ * tao/PortableServer/Collocated_Object_Proxy_Broker.{h,cpp}:
+ * tao/PortableServer/Servant_Base.{h,cpp}:
+ Added CORBA::Object::_repository_id, this fixes bugzilla 2180
+
+ * tests/OctetSeq/client.cpp:
+ Call _repository_id
+
+ * tao/PortableServer/Active_Object_Map.h:
+ No need to export this class
+
+Mon Jul 25 15:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp:
+ * orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp:
+ Initialise pointers to 0 and fixed some typos in comments
+
+ * tao/PortableServer/Root_POA.{h,cpp}:
+ * tao/PortableServer/POAManager.{h,cpp}:
+ Overruled _get_orb as required by the CORBA spec
+
+Mon Jul 25 13:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp:
+ Ensured access to codeset manager is guarded by a nil check.
+
+Mon Jul 25 07:38:47 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/Strategies/DIOP_Acceptor.cpp:
+ * tao/Strategies/SCIOP_Acceptor.cpp:
+ * tao/Strategies/SHMIOP_Acceptor.cpp:
+ * tao/Strategies/UIOP_Acceptor.cpp:
+ * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp:
+
+ Ensured access to codeset manager is guarded by a nil check.
+
+Sat Jul 23 19:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/ServantRetentionStrategyRetain.cpp:
+ * tao/PortableServer/Active_Object_Map.{h,i}:
+ Fixed a bug when we tried to deactivate a reference created with
+ a user id using a POA that uses servant activator.
+
+Sat Jul 23 12:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/POA/Etherealization/Etherealization.cpp:
+ Extended this test with two test cases where we create a
+ reference with user created id using a POA that has a
+ servant activator but don't do any calls and just deactivate
+ the object again. This is the same problem as we are seeing
+ in CIAO and this needs to be resolved as P1 bug
+
+Sat Jul 23 10:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
+ Fixed warning in MinGW build
+
+Fri Jul 22 15:39:18 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp:
+
+ Guard against null pointers returned from _downcast()
+
+Fri Jul 22 18:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORBInitializer_Registry.cpp:
+ Fixed compile error on AIX. Thanks to Ventimiglia Chere
+ <Ventimiglia_Chere at emc dot com> for reporting this.
+
+Fri Jul 22 12:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp:
+ Updated for obj_ref_table interface change
+
+Fri Jul 22 12:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitInfo.cpp:
+ Fixed emulated excepton
+
+ * tao/Object_Ref_Table.{h,inl}:
+ * tao/ORB.cpp:
+ * tao/ORB_Core.i:
+ * tao/RTCORBA/RT_Protocols_Hooks.cpp:
+ * tao/RTScheduling/Current.cpp:
+ Changed resolve_initial_references to resolve_initial_reference
+ on the object ref table, this way the fuzz build doesn't trigger.
+
+Fri Jul 22 11:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTCORBA/RT_Protocols_Hooks.cpp:
+ * tao/RTPortableServer/RT_Policy_Validator.cpp:
+ * tao/RTScheduling/RTScheduler_Manager.i:
+ * tao/RTScheduling/Current.cpp:
+ Fixed problems with emulated exceptions
+
+Fri Jul 22 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.{h,i}:
+ Removed exception macros from resolve_rt_orb and removed the
+ resolve_rt_current method because it is not used at all
+
+Fri Jul 22 11:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.i:
+ Removed environment macro to resolve_initial_references on
+ objreftable
+
+Fri Jul 22 11:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitInfo.cpp:
+ * tao/ORB.cpp:
+ * tao/Object_Ref_Table.{h,inl}:
+ Corrected exceptions that should be thrown when a duplicate or
+ invalid name is passed with register_initial_reference. Also
+ removed some not needed exception argument macros. Fixes bug
+ 2087 and the associated regression test now works fine
+
+Fri Jul 22 10:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Object_Ref_Table.inl (register_initial_reference):
+ When passed a nil object reference, throw a BAD_PARAM exception with
+ minor code 27
+
+Fri Jul 22 10:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Table.cpp:
+ In the unbind, assign a default constructed refcount so that we
+ drop the refcount on the orb at this moment. The array_map uses
+ lazy destruction and only destructs then the ORB at process exit
+ and this causes then crashes with RTCorba.
+
+Fri Jul 22 09:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OBV/ValueBox/client.cpp:
+ Fixed invalid remove_ref call
+
+Fri Jul 22 09:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+ Fixed implicit conversion warning
+
+Fri Jul 22 09:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OBV/ValueBox/client.cpp:
+ When assigning a hardcoded string, use CORBA::string_dup else
+ we get a crash when trying to free the string with some
+ runtimes.
+
+Fri Jul 22 09:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OBV/ValueBox/client.cpp:
+ Fixed compile errors with Borland
+
+ * tao/Valuetype/ValueBase.{h,cpp}:
+ Use Atomic_Op for the refcount, initialize the refcount to 1 in
+ the copy constructor.
+
+Thu Jul 21 15:07:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am:
+ * orbsvcs/FT_ReplicationManager/Makefile.am:
+ * orbsvcs/Fault_Detector/Makefile.am:
+ * orbsvcs/Fault_Notifier/Makefile.am:
+ * orbsvcs/LifeCycle_Service/Makefile.am:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Makefile.am:
+ * orbsvcs/Naming_Service/Makefile.am:
+ * orbsvcs/Notify_Service/Makefile.am:
+
+ Regenerated.
+
+Thu Jul 21 08:29:13 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/LogMgr_i.cpp:
+
+ Fix typo in last change.
+
+Thu Jul 21 07:42:40 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/LogMgr_i.cpp:
+
+ Don't set the servant retention policy when creating the log POA
+ in minimum CORBA builds.
+
+Thu Jul 21 07:26:27 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbscvs/orbsvcs/Hash_LogStore.cpp:
+ * orbsvcs/orbsvcs/Hash_LogRecordStore.cpp:
+
+ Use ACE_SYNCH_RW_MUTEX instead of ACE_RW_Thread_Mutex to fix
+ single threaded builds.
+
+Thu Jul 21 14:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/OBV/Valuebox/client.cpp:
+ Fixed problem with emulated exceptions
+
+Thu Jul 21 13:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
+ Fixed compile error with Borland
+
+Thu Jul 21 07:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Notify/Event_Manager.h:
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.{h,cpp}:
+ Fixed problem with emulated exceptions
+
+Thu Jul 21 06:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/tutorials/Quoter/Simple/Client/index.html:
+ * docs/tutorials/Quoter/Simple/Impl-Repo/index.html:
+ * docs/tutorials/Quoter/Simple/ImprovedServer/index.html:
+ * docs/tutorials/Quoter/Simple/Server/index.html:
+ Updated GNU makefile names with the MPC generated files.
+ Thanks to <gomezt at saic dot com> for reporting this.
+
+Wed Jul 20 13:48:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Wed Jul 20 11:06:57 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp
+ * tests/OBV/ValueBox/valuebox.idl
+ * tests/OBV/ValueBox/Test_impl.cpp
+ * tests/OBV/ValueBox/Test_impl.h
+
+ Resolved some test problems.
+
+Wed Jul 20 11:16:07 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
+ * orbsvcs/orbsvcs/Notify/Default_Factory.cpp:
+ * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.h:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h:
+ * orbsvcs/orbsvcs/Notify/Peer.h:
+ * orbsvcs/orbsvcs/Notify/Peer.cpp:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip.h:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp:
+ * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h:
+ * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp:
+ * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
+
+ More cleanup to eliminate compile errors related to template
+ instantiation and #includes. The primary change consisted of
+ moving some ESF Worker classes to Event_Manager.cpp from
+ Event_Manager.h.
+
+ * orbsvcs/orbsvcs/Notify/Event_Manager.inl:
+ * orbsvcs/orbsvcs/Notify/Method_Request.inl:
+ * orbsvcs/orbsvcs/Notify/Peer.inl:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip.inl:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.inl:
+ * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.inl:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.inl:
+
+ Removed these files.
+
+Wed Jul 20 07:06:10 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/BasicLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp:
+
+ Update callers.
+
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.h:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.h:
+ * orbsvcs/orbsvcs/Log/LogStore.h:
+
+ Added emulated exception goo to ::exists() and ::remove()
+ methods.
+
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
+
+ Work around MSV6 not supporting scoping of variables declared in
+ for loops.
+
+Wed Jul 20 13:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Connection_Timeout/client.cpp:
+ Changed this test to test the timeout in a separate method so that
+ also in case of failure we cleanly destroy the ORB.
+
+Wed Jul 20 12:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/default_resource.cpp:
+ Delete the codeset_manager_, fixes a memory leak
+
+ * tao/Codeset/Codeset_Descriptor.cpp:
+ Use ACE_OS::free to delete the name, it is allocated with
+ ACE_OS::strdup, fixes an invalid read error with valgrind
+
+Wed Jul 20 12:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Recursive_ORBInitializer/Client_ORBInitializer.cpp:
+ Emulated exception fix
+
+Wed Jul 20 12:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp:
+ Removed %P|%t from the print exception, this is already done
+ by the print exception itself
+
+Wed Jul 20 11:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+ Fixed compile problem with emulated exceptions
+
+Wed Jul 20 11:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+ Fixed compile problem with emulated exceptions
+
+Wed Jul 20 10:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Messaging/Messaging_Loader.cpp:
+ Small layout improvement. Last change in my workspace for the
+ upcoming beta
+
+Wed Jul 20 10:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Object_Proxy_Impl.{h,cpp}:
+ Removed these files, class is not used anymore, we will do soon
+ some cleanup in the TAO_IDL compiler related to this
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Removed file above
+
+Wed Jul 20 07:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/BiDir_Adapter.h:
+ Removed activate call, we are using the init() call to register
+ the ORBInitializer
+
+ * tao/ORB_Core.{h,cpp}:
+ Removed bidirectional_giop_init, this is not needed anymore, get
+ the BiDIR adapter just in load_policy_validators
+
+ * tao/TAO_Internal:
+ Init BiDIR GIOP library as the other libs
+
+ * tao/BiDIR_GIOP/BiDirGIOP.{h,cpp}:
+ Use init() instead of activate() to register the ORBInitializer.
+
+ All these changes make sure that the BiDIR ORBInitializer is
+ registered before the ORBInitializer::pre_init() call, previously
+ if was registered after pre_init which resulted in the problem that
+ after fixing a bug now it doesn't get called anymore in post_init()
+
+Tue Jul 19 18:45:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.h
+
+ Use ACE_SYNCH_RW_MUTEX instead of ACE_RW_Thread_Mutex to fix
+ single threaded builds.
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h
+ * orbsvcs/orbsvcs/Log/LogStore.h
+
+ Made constructor protected.
+ Made destructor virtual.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+
+ Fixed typo introduced in:
+ Tue Jul 19 14:14:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+Tue Jul 19 16:40:37 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * orbsvcs/orbsvcs/IFRService/Container_i.cpp:
+
+ Exclude unsigned long long case in store_label() if platform
+ does not allow this type.
+
+Tue Jul 19 14:14:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.h:
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h:
+ * orbsvcs/orbsvcs/Log/LogStore.h:
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
+
+ Fix assorted build errors, mostly related to emulated
+ exceptions. Thanks to Simon Massey and Don Sharp for
+ pointing out these problems.
+
+Tue Jul 19 16:02:32 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
+
+ Free process_map_ entries in handle_exit(). Thanks to
+ Yevgen Galchenko <yevgeng at softcomputer dot com> for finding
+ this memory leak.
+
+ * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
+ * orbsvcs/orbsvcs/Notify/Consumer.inl:
+ * orbsvcs/orbsvcs/Notify/Consumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Delivery_Request.inl:
+ * orbsvcs/orbsvcs/Notify/Delivery_Request.cpp:
+ * orbsvcs/orbsvcs/Notify/Event.h:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.inl:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request.inl:
+ * orbsvcs/orbsvcs/Notify/Method_Request.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
+ * orbsvcs/orbsvcs/Notify/Object.h:
+ * orbsvcs/orbsvcs/Notify/Peer.inl:
+ * orbsvcs/orbsvcs/Notify/Peer.cpp:
+ * orbsvcs/orbsvcs/Notify/Property.h:
+ * orbsvcs/orbsvcs/Notify/ProxyConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp:
+ * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.inl:
+ * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp:
+ * orbsvcs/orbsvcs/Notify/SupplierAdmin.h:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.inl:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
+ * orbsvcs/orbsvcs/Notify/Timer_Queue.h:
+ * orbsvcs/orbsvcs/Notify/Timer_Reactor.h:
+ * orbsvcs/orbsvcs/Notify/Topology_Loader.h:
+ * orbsvcs/orbsvcs/Notify/Topology_Object.h:
+
+ My previous checkin caused problems depending on the compiler
+ and the setting for __ACE_INLINE__. I took the opportunity to
+ clean up the #includes a little, and hopefully this fixes the
+ compile errors on all platforms.
+
+Tue Jul 19 19:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitializer_Registry_Impl.cpp:
+ Fixed emulated exception error
+
+Tue Jul 19 10:26:03 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
+
+ When parse error occurs flush input buffer so a subsequent parse
+ does not see tokens from the current one.
+
+Tue Jul 19 10:21:05 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp:
+ * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
+ * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp.diff:
+ * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp.diff:
+
+ When parse error occurs flush input buffer so a subsequent parse
+ does not see tokens from the current one.
+
+Tue Jul 19 10:21:17 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/Admin.cpp:
+ * orbsvcs/orbsvcs/Notify/Builder.cpp:
+ * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
+ * orbsvcs/orbsvcs/Notify/Object.h:
+ * orbsvcs/orbsvcs/Notify/Object.cpp:
+
+ Fix some problems with compilers that use early template
+ instantiation.
+
+ * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp:
+
+ Fix a warning about signed/unsigned comparison.
+
+Tue Jul 19 15:52:19 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/Union_TypeCode.cpp:
+
+ Put unreachable code back with ACE_NOTREACHED macro to fix
+ warning on Redhat implicit templates build.
+
+Tue Jul 19 14:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Register_Initial_References/*
+ Added a new regression for register_initial_references on the ORB
+ and the ORBInitInfo. It seems we have some bugs to resolve. This is
+ to test for bugzilla bug 2087
+
+Tue Jul 19 13:14:51 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_interface/interface_ih.cpp:
+
+ Fixed error in generation of inheritance list for impl
+ class declaration. Thanks to Steven Hattons
+ <hattons@globalsymmetry.com> for reporting the bug.
+
+Tue Jul 19 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO_IDL/be/be_visitor_interface/interface_ih.cpp:
+ Fixed bug when generating the implementation class, I removed
+ the base RefCountServantBase generation, but then also public
+ virtual shouldn't be generated. Thanks to Steven T. Hatton
+ <hattons at globalsymmetry dot com> for bringing this to my
+ attention.
+
+Tue Jul 19 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitializer_Registry_Impl.{h,cpp}:
+ Use a recursive mutex instead of a normal mutex to allow an
+ ORBInitializer to register another ORBInitializer during
+ pre/post init. Also use the mutex in the fini method to
+ prevent race conditions there. This fixes bugzilla bug
+ 2089.
+
+Tue Jul 19 12:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ObjectKey_Table.cpp:
+ Removed explicit templates
+
+ * tao/ORB.cpp:
+ * tao/ORBInitializer_Registry_Adapter.h:
+ * tao/PI/ORBInitializer_Registry_Impl.{h,cpp}:
+ Change the interface to the ORBInitializer_Registry related to
+ bugzilla bug 2089. An ORBInitializer can register another
+ ORBInitializer during pre_init/post_init. I found that when
+ during pre_init a new ORBInitializer is registered, this is called
+ during post_init directly, but that shouldn't happen, the new
+ one should only be called when another ORB is initialized.
+ Changed the interface to the registry in such a way the pre_init
+ returns the number of initializers called, this is then passed
+ to post_init so that we only invoke the number of initializers
+ that where called during pre_init.
+
+ * tao/tests/Portable_Interceptors/Recursive_ORBInitializer/*:
+ New regression to test an ORBInitializer that registers
+ itself another ORBInitializer
+
+Tue Jul 19 11:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Bug_2088/client.cpp:
+ Rewrote this test to test the draft 3.1 spec behaviour which
+ matches the current implementation. The 3.0.3 behaviour about
+ which I made this report doesn't seem usable for end users.
+ Fixes bugzilla bug 2088
+
+Tue Jul 19 11:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/examples/ORT/Gateway_i.cpp:
+ Initialise pointer with 0
+
+ * tao/Object_Loader.cpp:
+ * tao/NVList.cpp:
+ Removed explicit templates
+
+Tue Jul 19 10:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/IORInterceptor_Adapter_Factory.{h,cpp}:
+ Added virtual destructor to fix gcc4 runtime error
+
+Tue Jul 19 10:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Reliable_Oneways/Reliable_Oneways.mpc:
+ Simplified this MPC file
+
+Tue Jul 19 10:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/DynamicInterface/Server_Request.h:
+ * tao/DynamicInterface/Request.h:
+ Fixed documentation typo
+
+ * tao/DynamicInterface/Server_Request.cpp:
+ Use prefix operators for the refcount
+
+ * tao/DynamicInterface/Context.{h,cpp}:
+ * tao/True_RefCount_Policy.{h,inl}:
+ * tao/Principal.{h,cpp,i}:
+ * tao/NVList.{h,cpp}:
+ Use ACE_Atomic_Op for the refcount
+
+ * tao/Synch_Refcountable.{h,cpp,inl}:
+ * tao/Utils/Synch_Refcountable.{h,cpp,inl}:
+ Moved TAO_Synch_Refcountable to the Utils lib, it is a utility
+ class and not used anywhere in the complete TAO distribution
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Updated for change above
+
+Tue Jul 19 09:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Object.cpp:
+ Fixed the _non_existent to catch a OBJECT_NOT_EXIST and then return
+ true.
+
+ * tao/PortableServer/Servant_Base.cpp (_non_existent) :
+ Return false instead of 0
+
+ * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
+ Removed try/catch. This is done in CORBA::Object.
+
+ This fixes bugzills 2174. Thanks to Torsten Kuepper
+ <torsten dot kuepper at nokia dot com> for reporting this
+
+Mon Jul 18 14:53:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+
+ Changed to compute size of log record only once.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
+
+ Update for below change.
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h:
+
+ Changed TAO_LogRecordStore::log()'s log record parameter to a
+ const reference.
+
+ Prior to this change, TAO_Log_i::write_recordlist() copied the
+ indexed record (from the list) to a temporary before invoking
+ TAO_LogRecordStore::log(), since that updated the id and time-
+ stamp fields. Since this is not always true with dynamically
+ loaded strategies, we make the concrete LogRecordStore class
+ do the copy.
+
+Mon Jul 18 13:12:15 2005 Ciju John <john_c@ociweb.com>
+
+ * orbsvcs/Notify_Service/Notify_Service.mpc:
+
+ Linked in the ValueType library to the NamingService. This is
+ required in case the event embedds a valuetype. The event body
+ consists of several CORBA anys. The current implementation
+ demarshalls an any before touching app code. Thus if the any
+ were to contain a valuetype, the valuetype library will be
+ called upon to demarshall the data.
+
+Mon Jul 18 15:34:01 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/DynamicInterface/DII_Invocation.cpp:
+ * tao/PI_Server/PI_Server_Loader.cpp:
+ * tao/Union_TypeCode.cpp:
+ * tao/Union_TypeCode_Static.cpp:
+ * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
+
+ Removed unreachable statements identified by HP non stop
+ MIPS build warnings.
+
+Mon Jul 18 14:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_2174_Regression/client.cpp:
+ Don't print the transient exception, this is expected
+
+ * tests/Bug_2174_Regression/server.cpp:
+ Removed commented out code
+
+Mon Jul 18 09:20:46 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * NEWS:
+ Added notes about codeset refactoring.
+
+Mon Jul 18 14:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Any_Impl.cpp:
+ Fixed crash in Any cleanup
+
+Mon Jul 18 15:05:03 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
+
+ Fixed a bunch of warnings.
+
+Mon Jul 18 08:13:14 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/Admin.cpp:
+
+ Attempt to fix compile errors on Irix resulting from partially
+ defined types.
+
+Mon Jul 18 05:15:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+
+ #include "ace/OS_NS_sys_time.h" to bring ACE_OS::gettimeofday()
+ definition into scope for noinline builds.
+
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
+
+ #include "ace/Auto_Ptr.h" to bring auto_ptr<> template into
+ scope for noinline builds.
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+
+ #include "ace/OS_NS_stdio.h" to bring ACE_OS::sprintf()
+ definition into scope for noinline builds.
+
+Mon Jul 18 06:53:00 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
+
+ Fixed a bug where using reference_to_servant() with the
+ DefaultServant strategy incremented the reference count by two
+ instead of one.
+
+ * tests/POA/Default_Servant/Default_Servant.cpp:
+
+ Added tests to check that the reference count is correctly
+ maintained when using reference_to_servant() with the Root POA
+ and the Default Servant POA.
+
+Mon Jul 18 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Any_Impl.{h,cpp}:
+ * tao/LocalObject.{h,cpp,i}:
+ * tao/Messaging/AMH_Response_Handler.cpp:
+ * tao/Valuetype/ValueFactory.{h,cpp}:
+ Use ACE_Atomic_Op for the refcount
+
+Mon Jul 18 08:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Codeset_Descriptor_Base.h:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
+ Fixed fuzz errors
+
+Sun Jul 17 18:57:26 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp (operator):
+
+ Fixed a typo resulting from an earlier edit.
+
+Sun Jul 17 16:39:01 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/Codeset_Descriptor_Base.h:
+ * tao/Codeset_Manager.cpp:
+ * tao/Codeset_Manager.h:
+ * tao/Codeset_Manager_Factory_Base.cpp:
+ * tao/Codeset_Manager_Factory_Base.h:
+ * tao/Makefile.am:
+ * tao/ORB_Core.cpp:
+ * tao/ORB_Core.h:
+ * tao/ORB_Core.i:
+ * tao/Resource_Factory.cpp:
+ * tao/Resource_Factory.h:
+ * tao/default_resource.cpp:
+ * tao/default_resource.h:
+ * tao/tao.mpc:
+ * tao/Codeset/Codeset_Manager_Factory.cpp:
+ * tao/Codeset/Codeset_Manager_Factory.h:
+ * tao/Codeset/Codeset_Manager_i.cpp:
+ * tao/Codeset/Codeset_Manager_i.h:
+ * tao/Codeset/Codeset_Translator_Factory.cpp:
+ * tao/Codeset/UTF16_BOM_Translator.cpp:
+ * tao/Codeset/Codeset_Descriptor.cpp:
+ * tao/Codeset/Codeset_Descriptor.h:
+
+ Moved the remaining codeset-specific details out of the ORB core
+ and into TAO_Codeset. This is accomplished by moving the codeset
+ descriptor interface out of the Resource_Factory.h and making it
+ accessible only through the Codeset_Manager interface. This
+ means that the codeset manager must be created earlier in
+ the start-up if the library is available. If one assumes that
+ specifying a native [w]char codeset, or translators in the
+ svc.conf file, one expects to use codeset negotiation, then this
+ earlier loading is not a problem. If no codeset configuration is
+ supplied and -ORBNegotiateCodesets 0 is supplied to ORB_init,
+ then the TAO_Codeset library will not be loaded.
+
+ With static linked applications, if TAO_Codeset is not linked in
+ and tao/Codeset/Codeset.h is not included, then any codeset
+ specific configuration is ignored by the resource factory.
+
+ This change requires regenerating makefiles for TAO and
+ TAO_Codeset. If rebuilding in an existing workspace, rebuilding
+ dependencies for these libraries is recommended.
+
+
+Sat Jul 16 18:01:26 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+
+ Changed init() method to not set the administrative and
+ forwarding states, since those may be from a persistent
+ data store.
+
+Sat Jul 16 17:48:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp
+
+ Remove stray ACE_DEBUGs.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+
+ Fix inverted conditional in set_administative_state().
+
+Sat Jul 16 17:17:30 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+
+ Changed log record to use log_record_size() instead of sizeof()
+ when checking whether log is full.
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
+
+ Use the thread-safe interface pattern for remove() method.
+ Change all callers who already have the write lock to call
+ new remove_i() method. Avoids deadlock found by unit test.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+
+ Changed flush method to invoke flush on log record store.
+
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h
+
+ Added flush method to ensure log records have been written
+ to persistent media.
+
+ * orbsvcs/orbsvcs/Log/Log_i.h:
+
+ Make remove_old_records public so it can be called by log
+ compaction timer.
+
+ * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp:
+
+ Changed to invoke remove_old_records() on log now that
+ Hash_LogRecordStore is protected by read/write locks.
+
+Sat Jul 16 15:46:21 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.h:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
+
+ Refactor identical code to create the factory and log channel
+ POAs out of *LogFactory_i and into base class TAO_LogMgr_i.
+
+Sat Jul 16 14:46:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Hash_LogRecordStore.cpp:
+
+ Add missing read/write guards.
+
+ * orbsvcs/orbsvcs/LogRecordStore.h:
+ * orbsvcs/orbsvcs/Hash_LogRecordStore.h:
+ * orbsvcs/orbsvcs/Hash_LogRecordStore.cpp:
+
+ Suppored emulated exceptions on all LogRecordStore methods.
+
+ * orbsvcs/orbsvcs/Log_Persistence_Strategy.h:
+ * orbsvcs/orbsvcs/LogStore.h:
+
+ New files that should have been committed as part of:
+ Fri Jul 15 17:01:34 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+Sat Jul 16 16:12:04 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp (dispatch):
+ Don't put the ACE_GUARDs in the TAO_GroupId*::operator() methods.
+ Thanks to J.T. for noticing this.
+
+Sat Jul 16 18:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/DynamicInterface/Request.inl:
+ Added include of NVList.h to fix compile errors in builds with
+ inlining enabled
+
+Sat Jul 16 10:24:36 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.{cpp,h}: Added
+ a lock to prevent race conditions. Thanks to Frank Hunleth
+ <frank@hunleth.com> and Felix Perez Alamillo
+ <fpalamillo@indra.es> for helping with this.
+
+Sat Jul 16 02:18:12 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
+
+ Changed code generation of the _boxed_out() method for
+ boxed array types to return the type of the valuebox
+ member's .out() method. The _boxed_out() method previously
+ returned the member's .inout() method, which could
+ potentially cause a memory leak if the member _var's
+ contained pointer is non-zero when _boxed_out() is
+ called.
+
+Fri Jul 15 17:01:34 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/DsLogAdmin.mpc:
+
+ Added Hash_Persistence_Strategy.*, Hash_LogStore.*, and
+ Hash_LogRecordStore.* to DsLogAdmin_Serv project.
+
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.h:
+
+ Use dynamically loaded persistence strategy to create
+ LogStore.
+
+ * orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h:
+ * orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h:
+
+ New TAO_Log_Persistence_Strategy abstract base class which
+ strategizes the log parameter and log record storage, with
+ concrete TAO_Hash_Persistence_Strategy.h implementation.
+
+ * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
+ * orbsvcs/orbsvcs/Log/LogMgr_i.h:
+ * orbsvcs/orbsvcs/Log/LogStore.h:
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogStore.h:
+
+ Refactor LogMgr_i class so it bridges to new LogStore abstract
+ base class, with concrete TAO_Hash_LogStore implementation.
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h:
+ * orbsvcs/orbsvcs/Log/LogRecordStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
+ * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
+
+ Refactor TAO_LogRecordStore class into an abstract base class
+ with a concrete TAO_Hash_LogRecordStore implementartion.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (write_recordlist):
+
+ Throw DsLogAdmin::LogOffDuty if log is off duty.
+
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+
+ Use poa_ instead of _default_POA for collocated event channel.
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+
+ Update callers.
+
+ * orbsvcs/orbsvcs/Log/BasicLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/BasicLog_i.h:
+ * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLog_i.h:
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
+
+ Added poa_ member variable.
+
+ Changed constructor to take poa parameter.
+
+ Changed destroy to use poa_ member variable instead of using
+ _default_POA(), since there are now multiple POAs in play.
+
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+
+ Update callers.
+
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp (object_creation):
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
+
+ Removed unused Log argument.
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
+
+ Create persistent POAs for the log factory and log channels.
+
+ Activate factory and log channel objects explicitly instead
+ of using _this().
+
+ Fix assorted resource leaks, unchecked emulated exceptions.
+
+Fri Jul 15 16:17:34 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * docs/Options.html:
+ * tao/Codeset_Manager.cpp:
+ * tao/Codeset_Manager.h:
+ * tao/Makefile.am:
+ * tao/ORB_Core.cpp:
+ * tao/orbconf.h:
+ * tao/tao.mpc:
+ * tao/Codeset/Codeset.cpp:
+ * tao/Codeset/Codeset_Manager_Factory.cpp:
+ * tao/Codeset/Codeset_Manager_Factory.h:
+ * tao/Codeset/UTF16_BOM_Factory.cpp:
+ * tao/Codeset/UTF8_Latin1_Factory.cpp:
+
+ Another round of changes to reconcile the differences between
+ static and dynamic libraries. Static applications must
+ explicitly link libTAO_Codeset and include "tao/Codeset/Codeset"
+ to enable codeset support. Failing to do the include will cause
+ none of the TAO_Codeset code to actually link. Thus merely
+ adding -lTAO_Codeset to the link line is benign if no codeset
+ support is desired. The link line is modified automatically for
+ MPC projects depending on taoexe if the negotiate_codesets
+ feature is enabled in default.features.
+
+Fri Jul 15 11:00:03 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
+
+ Fixed platform-specific errors.
+
+Fri Jul 15 08:48:55 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp:
+
+ Fixed platform-specific errors.
+
+Fri Jul 15 17:18:44 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
+
+ Fixed a number of warnings.
+
+Fri Jul 15 13:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB.h:
+ Added forward declaration NVList
+
+ * tao/tao.mpc:
+ * tao/extra_core.mpb:
+ Moved ClientRequestInterceptor_Adapter and ServerRequestInterceptor_
+ Adapter to extra_core, don't need them in a minimum build. Removed
+ tao.mpc from tao.mpv, it is already in extra_core.mpb
+
+Fri Jul 15 13:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/DynamicInterface/Context.cpp:
+ * tao/DynamicInterface/DII_Invocation.cpp:
+ * tao/DynamicInterface/Request.{h,cpp}:
+ * tao/DynamicInterface/Server_Request.{h,cpp,inl}:
+ Use more forward declarations and reduced the includes done, doxygen
+ improvement and removed explicit templates
+
+Fri Jul 15 11:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/NVList.cpp:
+ Initialise pointers with 0
+
+Fri Jul 15 10:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Any.h:
+ Removed not needed forward declaration of CORBA_NVList
+
+Thu Jul 14 22:15:02 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/Codeset/Codeset.cpp:
+ * tao/Codeset/Codeset.h:
+ * tao/Codeset/Codeset_Manager_Factory.cpp:
+ * tao/Codeset/Codeset_Manager_Factory.h:
+ * tao/Codeset/Codeset_Manager_i.cpp:
+ * tao/Codeset/Codeset_Manager_i.h:
+
+ Separated the classes responsible for initailizing the codeset
+ library from the codeset manager implementation. This is an
+ effort to improve the integration with either static or shared
+ libraries.
+
+ * tao/Makefile.am:
+
+ Added the new files mentioned above.
+
+ * tao/orbconf.h:
+
+ Changed the default for codeset negotiation to be 0 for static
+ builds.
+
+Thu Jul 14 22:52:09 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * tao/PortableServer/Fixed_Array_SArgument_T.h:
+ * tao/PortableServer/Fixed_Array_SArgument_T.inl:
+
+ Changed the Fixed_Array_SArg_Traits_T typedef
+ 'out_arg_type' for fixed arrays to
+ be <array>_slice* instead of <array>_slice*&, and
+ changed the Out_Fixed_Array_SArgument_T::arg() method
+ to return a slice pointer instead of a slice pointer
+ reference. Since the array is of fixed size, the slice
+ pointer can be declared on the stack, and no heap
+ allocation is necessary, for an OUT arg of this type on
+ the skeleton side. Thanks to Chad Elliott
+ <elliott_c@ociweb.com> for pointing this out.
+
+Thu Jul 14 15:04:41 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Makefile.am:
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerated.
+
+Thu Jul 14 21:42:43 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * docs/performance.html:
+
+ Updated section on ways to reduce compile-time footprint.
+
+Thu Jul 14 12:20:59 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Codeset.mpc:
+
+ Added PIDL_Files and Resource_Files definitions so that bogus
+ definitions aren't added to the project.
+
+Thu Jul 14 10:51:38 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc:
+
+ Add *_IDL projects for compiling *.idl files. This eliminates
+ duplicate rules that would otherwise result when Makefile.am's
+ are aggregated in the automake build.
+
+Thu Jul 14 08:38:48 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
+ * tests/OBV/ValueBox/Test_impl.cpp
+ * tests/OBV/ValueBox/client.cpp
+ * tests/OBV/ValueBox/server.cpp:
+
+ Fixed platform-specific errors.
+
+Thu Jul 14 09:06:53 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/Codeset/codeset_export.h:
+
+ Another round of fixes.
+
+Thu Jul 14 08:11:27 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/Codeset/codeset_export.h:
+ * tao/Codeset/Codeset_Manager_i.cpp:
+ * tao/Codeset/UTF16_BOM_Factory.cpp:
+ * tao/Codeset/UTF8_Latin1_Factory.cpp:
+ * tao/Codeset/UTF8_Latin1_Translator.cpp:
+
+ Fixed more platform-specific errors.
+
+Thu Jul 14 08:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.i:
+ Removed not needed ;
+
+Thu Jul 14 09:37:54 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
+
+ Fixed a number of fuzz errors.
+
+Wed Jul 13 21:51:15 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/ORB_Core.h:
+
+ I forgot to take out the unneeded CORBA::Environment arg from
+ load_codeset_manager. This was caught by a No Exceptions build.
+
+Wed Jul 13 16:46:09 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/ETCL.mpc:
+
+ Added Header_Files, Inline_Files, and Template_Files sections
+ so headers and inlines are installed for the automake build.
+
+Wed Jul 13 16:37:41 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/Codeset.mpc
+ * tao/Codeset_Manager.cpp
+ * tao/Codeset_Manager.h
+ * tao/Codeset_Translator_Base.cpp
+ * tao/Codeset_Translator_Base.h
+ * tao/Codeset_Translator_Factory.h
+ * tao/GIOP_Message_Base.cpp
+ * tao/GIOP_Message_Lite.cpp
+ * tao/IIOP_Acceptor.cpp
+ * tao/ORB_Core.cpp
+ * tao/ORB_Core.h
+ * tao/ORB_Core.i
+ * tao/Profile_Transport_Resolver.cpp
+ * tao/Resource_Factory.cpp
+ * tao/Resource_Factory.h
+ * tao/Transport.cpp
+ * tao/Transport.h
+ * tao/Transport.inl
+ * tao/default_resource.cpp
+ * tao/default_resource.h
+ * tao/orbconf.h
+ * tao/params.cpp
+ * tao/params.h
+ * tao/params.i
+ * tao/tao.mpc
+ * tao/Codeset/Codeset_Manager_i.cpp
+ * tao/Codeset/Codeset_Manager_i.h
+ * tao/Codeset/Codeset_Translator_Factory.cpp
+ * tao/Codeset/Codeset_Translator_Factory.h
+ * tao/Codeset/Codeset_Translator_Factory_T.cpp
+ * tao/Codeset/Codeset_Translator_Factory_T.h
+ * tao/Codeset/UTF16_BOM_Factory.cpp
+ * tao/Codeset/UTF16_BOM_Factory.h
+ * tao/Codeset/UTF16_BOM_Translator.cpp
+ * tao/Codeset/UTF16_BOM_Translator.h
+ * tao/Codeset/UTF8_Latin1_Factory.cpp
+ * tao/Codeset/UTF8_Latin1_Factory.h
+ * tao/Codeset/UTF8_Latin1_Translator.cpp
+ * tao/Codeset/UTF8_Latin1_Translator.h
+ * tao/Codeset/codeset_export.h
+
+ Refactored the support for codeset negotiation. All logic is now
+ maintained in a separate library, TAO_Codeset. The class
+ TAO_Codeset_Manager is now an abstract base class, providing the
+ interface, when needed, to the traditional codeset assignment
+ and translator selection functions. Since the instance of the
+ codeset manager is now optional, all places that reference it
+ must test for a non-null pointer. The initialization of the
+ codeset manager is now deferred. The resource factory now
+ populates a collection of codeset descriptors based on the
+ supplied configuration options. The ORB Core loads an instance
+ of the codeset manager on demand if the negotiate_codesets
+ option is set. The tao/Codeset_Translator_Factory.h file remains
+ as a shell to support backwards compatibility at the code level,
+ but the base class for the translators is now in the Codeset
+ library.
+
+ * tests/CodeSets/libs/IBM1047_ISO8859/CodeSets_libs_IMB1047_ISO8859.mpc
+ * tests/CodeSets/libs/UCS4_UTF16/CodeSets_libs_UCS4_UTF16.mpc
+
+ Added a reference to the new MPC base project, codeset.
+
+ * tests/CodeSets/simple/CodeSets_simple.mpc
+ * tests/CodeSets/simple/wcs_test.conf
+
+ Fixed misc. typos and odd dependancies.
+
+ * docs/Options.html:
+ * NEWS:
+
+ Added description of Codeset changes.
+
+Wed Jul 13 13:26:45 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * NEWS:
+
+ Added information about availability of the Boxed Value Type.
+
+Wed Jul 13 13:17:56 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tests/OBV/ValueBox/client.cpp:
+ * tests/OBV/ValueBox/run_test.pl:
+ * tests/OBV/ValueBox/server.cpp:
+ * tests/OBV/ValueBox/Test_impl.cpp:
+ * tests/OBV/ValueBox/Test_impl.h:
+ * tests/OBV/ValueBox/valuebox.idl:
+ * tests/OBV/ValueBox/valuebox.mpc:
+ * tests/OBV/ValueBox/vb_basic.idl:
+ * tests/OBV/ValueBox/vb_struct.idl:
+ * tests/OBV/ValueBox/vb_union.idl:
+
+ New test for valuebox feature
+
+Wed Jul 13 15:14:46 2005 Justin Michel <michel_j@ociweb.com>
+
+ * NEWS:
+
+ Added information about recent Notification Service changes.
+
+Wed Jul 13 18:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ServerRequestInterceptor_Adapter_Factory.{h,cpp}:
+ * tao/ClientRequestInterceptor_Adapter_Factory.{h,cpp}:
+ Added virtual destructor to resolve gcc4 runtime errors, the cpp
+ file is new
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Added new files
+
+ * tao/Thread_Lane_Resources_Manager.cpp:
+ Removed explicit templates
+
+Wed Jul 13 18:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Pollable.pidl:
+ * tao/PollableC.{h,cpp}:
+ * tao/PollableS.h:
+ Moved these files to the Messaging library
+
+ * tao/Messaging/*C.{h,cpp}:
+ Regenerated
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Updated because of file move above
+
+Wed Jul 13 12:53:34 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp:
+
+ Added a missing ACE_CHECK_RETURN.
+
+Wed Jul 13 16:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTPortableServer/RT_Servant_Dispatcher.cpp:
+ Updated some debug statements to get the same layout as in other places
+
+Wed Jul 13 11:18:44 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp:
+
+ Update the test to be more tolerant of differing thread behavior
+ on the various platforms.
+
+Wed Jul 13 10:24:39 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
+
+ Print an error if the registry option is used on a non-Windows OS.
+
+ * orbsvcs/examples/ImR/Advanced/run_test.pl:
+
+ When "using" Getopts::Long, take everything to be compatible with
+ Perl 5.6.1.
+
+ * orbsvcs/orbsvcs/CosNotification.mpc:
+
+ Simplify the persistence project by using a wildcard.
+
+ * tao/ImR_Client/ImR_Client.h:
+ * tao/ImR_Client/ImR_Client.cpp:
+
+ Added a constructor to initialize the server_object_ pointer.
+
+ * tao/PortableServer/Root_POA.cpp:
+
+ Do not put the passed in POAManager in the safe_poa_manager as we
+ do not want it to be destroyed in case an exception is thrown
+ during the create_POA_i() method.
+
+Wed Jul 13 08:01:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/LoadBalancing.mpc:
+
+ Fixed typo introduced in:
+ Tue Jul 12 17:12:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+Wed Jul 13 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Encodable.{h,cpp}:
+ * tao/Utils/Encodable.{h,cpp}:
+ Moved Encodable from the TAO lib to the Utils lib. It is a utility
+ class that is not used in TAO and its tests. This way anyone using
+ it can keep using it.
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Updated for change above
+
+Wed Jul 13 12:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTCORBA/RT_ORB_Loader.cpp:
+ Create the _var later on the stack
+
+ * tao/RTCORBA/RT_ORBInitializer.cpp:
+ Initialise pointer
+
+ * tao/RTCORBA/RTCORBAC.h:
+ No need to derive ProtocolProperties from TAO_Encodable
+
+ * tao/RTCORBA/diffs/RTCORBA.diff:
+ Updated
+
+Wed Jul 13 10:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/IIOP_Acceptor.cpp:
+ Updated some debug statements so that they have the same formatting
+ as the other statements
+
+Wed Jul 13 10:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/performance.html:
+ Started with documenting the defines that have impact on runtime
+ footprint
+
+Tue Jul 12 17:43:55 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Tue Jul 12 17:12:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/LoadBalancing.mpc:
+ * orbsvcs/tests/Bug_1395_Regression/Bug_1395_Regression.mpc:
+
+ Add *_IDL projects for compiling *.idl files. This eliminates
+ duplicate rules that would otherwise result when Makefile.am's
+ are aggregated in the automake build.
+
+Tue Jul 12 13:39:21 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/CosNaming.mpc:
+ * orbsvcs/orbsvcs/CosNotification.mpc:
+ * orbsvcs/orbsvcs/CosTrading.mpc:
+ * orbsvcs/orbsvcs/DsEventLogAdmin.mpc:
+ * orbsvcs/orbsvcs/DsLogAdmin.mpc:
+ * orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc:
+
+ Make _IDL projects unconditional now that Chad has enhanced
+ MPC to support custom_only builds for VC++ projects.
+
+Tue Jul 12 18:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/Upcall_Wrapper.cpp:
+ Fixed compile errors with msvc6
+
+Tue Jul 12 18:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp:
+ Added missing include
+
+Tue Jul 12 17:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.{h,cpp}:
+ Fixed compile errors
+
+Tue Jul 12 08:56:03 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/ImplRepo/run_test.pl:
+
+ Ensure that old exe files are deleted before new ones are copied in
+ the nt_service_ir test.
+ Make the nt_service_ir test fail more quickly when an error occurs.
+
+Tue Jul 12 08:33:05 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tests/RTCORBA/Banded_Connections/bands.irix:
+ * tests/RTCORBA/Banded_Connections/run_test.pl:
+ * tests/RTCORBA/MT_Client_Protocol_Priority/run_test.pl:
+
+ Added support for IRIX.
+
+ * tests/RTCORBA/Collocation/continuous.conf:
+ * tests/RTCORBA/Collocation/continuous.conf.xml:
+ * tests/RTCORBA/Collocation/run_test.pl:
+ * tests/RTCORBA/Destroy_Thread_Pool/continuous.conf:
+ * tests/RTCORBA/Destroy_Thread_Pool/continuous.conf.xml:
+ * tests/RTCORBA/Destroy_Thread_Pool/run_test.pl:
+ * tests/RTCORBA/Persistent_IOR/continuous.conf:
+ * tests/RTCORBA/Persistent_IOR/continuous.conf.xml:
+ * tests/RTCORBA/Persistent_IOR/run_test.pl:
+ * tests/RTCORBA/Persistent_IOR/server.cpp:
+ * tests/RTCORBA/Priority_Inversion_With_Bands/continuous.conf:
+ * tests/RTCORBA/Priority_Inversion_With_Bands/continuous.conf.xml:
+ * tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl:
+ * tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp:
+ * tests/RTCORBA/Server_Declared/continuous.conf:
+ * tests/RTCORBA/Server_Declared/continuous.conf.xml:
+ * tests/RTCORBA/Server_Declared/run_test.pl:
+ * tests/RTCORBA/Thread_Pool/continuous.conf:
+ * tests/RTCORBA/Thread_Pool/continuous.conf.xml:
+ * tests/RTCORBA/Thread_Pool/run_test.pl:
+
+ For HP-UX, the only priority mapping that makes sense is
+ continuous. For each of these tests, I added a configurator file
+ to set the priority mapping and only use it on HP-UX.
+
+ * tests/RTCORBA/common_args.cpp:
+
+ sscanf wasn't working properly (at least with aCC 3.60) so I
+ switched to strtoul.
+
+Tue Jul 12 13:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/RTCORBA/Persistent_IOR/client.cpp:
+ Added check for nil reference
+
+ * tao/Thread_Lane_Resources.cpp (cleanup_rw_transports):
+ If we are already finalized (transport_cache pointer is zero)
+ directly return.
+
+Tue Jul 12 13:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/RTCORBA/Persistent_IOR/test.idl:
+ Made the shutdown call a oneway
+
+Tue Jul 12 12:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Thread_Lane_Resources.cpp:
+ Set pointers to zero after deleting them
+
+Tue Jul 12 12:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ClientRequestInfo.h:
+ Removed invalid export macro
+
+Tue Jul 12 11:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTCORBA/RT_ORB.cpp:
+ Initialise pointers with 0
+
+Tue Jul 12 11:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1639_Regression/test.mpc:
+ Simplified this mpc file
+
+Tue Jul 12 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_2174_Regression/Bug_2174_Regression.mpc:
+ Don't build the client when minimum_corba is set
+
+ * tao/CONV_FRAME.pidl:
+ * tao/GIOP.pidl
+ Updated regeneration instructions
+
+ * tao/CONV_FRAMES_T.h:
+ * tao/GIOPS_T.h
+ Removed this file
+
+ * tao/ClientRequestInfo.{h,cpp}
+ * tao/ClientRequestInfo.pidl:
+ * tao/ClientRequestInfoA.cpp
+ * tao/ClientRequestInfoC.{h,cpp}:
+ * tao/ClientRequestInfoS.h:
+ * tao/PIForwardRequest.pidl
+ * tao/PIForwardRequestA.cpp
+ * tao/PIForwardRequestC.{h,cpp}:
+ * tao/PIForwardRequestS.h
+ * tao/RequestInfo.pidl
+ * tao/RequestInfoA.cpp:
+ * tao/RequestInfoC.{h,cpp}:
+ * tao/RequestInfoS.h:
+ These files are moved to the PI library
+
+ * tao/ClientRequestInterceptor_Adapter.h:
+ Don't pass TAO_ClientRequestInfo with each invocation,
+ an instance is allocated within the adapter implementation.
+ Also added a method to get the PortableInterceptor::ReplyStatus
+ from a TAO::Invocation_Base
+
+ * tao/Collocation_Resolver.cpp:
+ * tao/Protocol_Factory.cpp:
+ * tao/Protocols_Hooks.cpp:
+ * tao/Tagged_Components.cpp:
+ Removed explicit template instantiations
+
+ * tao/IIOP_Profile.h:
+ * tao/Profile.h:
+ Moved destructor to protected part to make sure an instance
+ is only removed by the _decr_refcnt
+
+ * tao/Invocation_Base.{h,cpp,inl}:
+ Reworked the invocation path to invoke the client request
+ interceptor when it is set and don't create a TAO_ClientRequestInfo
+ on the stack, this is done in the PI adapter. Store the invoke_status
+ and caught_exception as members in this class, this was done
+ previously in the TAO_ClientRequestInfo, but this is now not
+ used anymore in the TAO lib
+
+ * tao/MProfile.h:
+ Doxygen improvement
+
+ * tao/Makefile.am:
+ Updated because of moving of files
+
+ * tao/ORB_Core.h:
+ No need to forward declare TAO_ServerRequest
+
+ * tao/PortableInterceptor.pidl:
+ * tao/PortableInterceptorC.h:
+ Removed the files we moved to PI/PI_Server
+
+ * tao/ServerRequestInfo.pidl:
+ * tao/ServerRequestInfoA.cpp:
+ * tao/ServerRequestInfoC.{h,cpp}:
+ * tao/ServerRequestInfoS.h:
+ Moved to the PI_Server lib
+
+ * tao/ServerRequestInterceptor_Adapter.h:
+ Updated to not pass TAO_ServerRequestInfo with each call, pass
+ the difference exception info
+
+ * tao/Stub.{h,cpp}:
+ Removed service_profile_selection(), this was marked deprecated for
+ a long time.
+
+ * tao/Synch_Invocation.cpp:
+ Fixed incorrect emulated exception usage
+
+ * tao/TAO_Server_Request.{h,cpp,i}:
+ Added data members which where previous in TAO_ServerRequestInfo
+
+ * tao/Transport.{h,cpp,inl}:
+ Removed TAO_Transport_Refcount_Guard, not used
+
+ * tao/tao.mpc:
+ Updated
+
+ * tao/PI/ClientRequestInfo.{cpp,h}:
+ * tao/PI/ClientRequestInfo.pidl:
+ * tao/PI/ClientRequestInfoA.cpp"
+ * tao/PI/ClientRequestInfoC.{h,cpp}:
+ * tao/PI/ClientRequestInfoS.h:
+ These files moved here from the TAO core library
+
+ * tao/PI/ClientRequestInterceptor.pidl:
+ Updated includes because of moved files
+
+ * tao/PI/ClientRequestInterceptorA.cpp:
+ * tao/PI/ClientRequestInterceptorC.{h,cpp}:
+ * tao/PI/ClientRequestInterceptorS.h:
+ Regenerated
+
+ * tao/PI/ClientRequestInterceptor_Adapter_Impl.{h,cpp}:
+ Allocate a TAO_ClientRequestInfo on the stack for each
+ interception point and updated for base interface
+
+ * tao/PI/InterceptorA.cpp
+ * tao/PI/InterceptorC.{h,cpp}:
+ * tao/PI/InterceptorS.h:
+ * tao/PI/ORBInitInfoA.cpp:
+ * tao/PI/ORBInitInfoC.{h,cpp}:
+ * tao/PI/ORBInitInfoS.h:
+ * tao/PI/ORBInitializerA.cpp:
+ * tao/PI/ORBInitializerC.{h,cpp}:
+ * tao/PI/ORBInitializerS.h:
+ Regenerated
+
+ * tao/PI/PI.h:
+ Include new *C.h files
+
+ * tao/PI/PIForwardRequest.pidl
+ * tao/PI/PIForwardRequestA.cpp
+ * tao/PI/PIForwardRequestC.{h,cpp}:
+ * tao/PI/PIForwardRequestS.h:
+ * tao/PI/RequestInfo.pidl:
+ * tao/PI/RequestInfoA.cpp:
+ * tao/PI/RequestInfoC.{h,cpp}:
+ * tao/PI/RequestInfoS.h:
+ Moved from the TAO lib
+
+ * tao/PI_Server/PI_Server.h:
+ Added new *C.h files
+
+ * tao/PI_Server/ServerInterceptorAdapter.{h,cpp}:
+ Allocate a TAO_ServerRequestInfo for each interception point
+
+ * tao/PI_Server/ServerRequestInfo.{h,cpp,inl}:
+ * tao/PI_Server/ServerRequestInfo.pidl:
+ * tao/PI_Server/ServerRequestInfoA.cpp:
+ * tao/PI_Server/ServerRequestInfoC.{h,cpp}:
+ * tao/PI_Server/ServerRequestInfoS.h:
+ Moved from the PortableServer lib
+
+ * tao/PI_Server/ServerRequestInterceptor.pidl:
+ Updated includes
+
+ * tao/PI_Server/ServerRequestInterceptorC.h:
+ Regenerated
+
+ * tao/PortableServer/Basic_SArguments.cpp:
+ * tao/PortableServer/Special_Basic_SArguments.cpp:
+ * tao/PortableServer/UB_String_SArguments.cpp
+ Removed, not needed
+
+ * tao/PortableServer/ServerRequestInfo.{h,cpp,inl}:
+ Moved to the PI_Server lib
+
+ * tao/PortableServer/Local_Servant_Base.inl:
+ Removed commented out code
+
+ * tao/PortableServer/ORT_Adapter.cpp:
+ * tao/PortableServer/ORT_Adapter_Factory.cpp:
+ * tao/PortableServer/StrategyFactory.cpp:
+ Removed explicit templates
+
+ * tao/PortableServer/Object_Adapter.cpp:
+ * tao/PortableServer/Upcall_Wrapper.cpp:
+ Updated code because of changes ServerRequestInterceptor
+ adapter change
+
+ * tao/RTCORBA/RT_ORBInitializer.cpp:
+ Initialise pointer with 0
+
+ * tao/RTScheduling/RTScheduler.pidl:
+ Updated include
+
+ * tao/RTScheduling/RTSchedulerC.h:
+ Regenerated
+
+ * tests/Big_Twoways/Peer.cpp:
+ Initialise pointer with 0
+
+ * tests/Portable_Interceptors/ForwardRequest/Server_Request_Interceptor.h:
+ Added needed include
+
+Mon Jul 11 13:39:34 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp:
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
+
+ Updated to solve cross platform compilation problems.
+
+Mon Jul 11 21:08:17 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Gate/Export.h:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.h:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.mpc:
+
+ Added export macro.
+
+Mon Jul 11 09:07:26 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/Admin.cpp:
+
+ Add missing include of Event_Manager.h
+
+Mon Jul 11 07:23:49 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
+
+ Set the stack size for windows based project types to 16Mb to
+ allow this test to complete on Windows.
+
+Mon Jul 11 11:12:42 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
+
+ Add explicit return statements to main (which is renamed
+ to ace_main_i and, as a result, doesn't have proper main
+ semantics).
+
+Mon Jul 11 08:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
+ Removed not needed base projects
+
+Mon Jul 11 08:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_2183_Regression/Bug_2183_Regression.mpc:
+ Simplified this mpc file
+
+ * tests/Bug_2174_Regression/*:
+ New regression for bug 2174. _non_existent should return
+ true/false, not raise OBJECT_NOT_EXIST. Thanks to
+ Torsten Kuepper <torsten dot kuepper at nokia dot com>
+ for making this regression. The bugfix for this will follow
+ later this week.
+
+Fri Jul 8 12:59:38 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tests/GIOP_Fragments/PMB_With_Fragments/dribble.pl:
+
+ Added a sleep(1) at the end of this script to allow the socket to
+ get flushed before the process exits. On windows, the socket data
+ is lost if the socket isn't flushed by the OS before the process
+ completes.
+
+Fri Jul 8 11:15:00 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Discarding/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/lib/PushConsumer.cpp:
+ * orbsvcs/tests/Notify/lib/PushSupplier.cpp:
+ * orbsvcs/tests/Notify/lib/SequencePushConsumer.cpp:
+ * orbsvcs/tests/Notify/lib/SequencePushSupplier.cpp:
+ * orbsvcs/tests/Notify/lib/StructuredPushConsumer.cpp:
+ * orbsvcs/tests/Notify/lib/StructuredPushSupplier.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp:
+
+ Add NOT_USED where appropriate to exception macros.
+
+Fri Jul 8 16:03:46 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.h:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
+
+ Made the code compile on platforms with emulated exceptions.
+
+Fri Jul 8 14:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Transport_Cache_Manager.h:
+ Removed virtual from destructor, no need for this.
+
+Fri Jul 8 15:32:36 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
+
+ Changed all references to TAO_Notify_Service:init to read
+ init_service because somebody decided for some reason to
+ rename this function. Also made the code compilable by VC6.
+
+Fri Jul 8 12:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/LocalObject.cpp:
+ Removed some remarks about possible corba spec mismatch. Checked
+ the latest corba spec and we throw the correct error
+
+Fri Jul 8 12:20:47 2005 Simon McQueen <sm@prismtech.com>
+
+ * tests/Bug_2183_Regression/server.conf:
+
+ Used the wrong comment character in this file.
+
+Thu Jul 7 16:29:47 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
+
+ Cleanup the output when enqueueing fails.
+
+Thu Jul 7 15:39:54 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf.xml:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/lookup.conf:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/lookup.conf.xml:
+
+ Fix test failure due to premature orb->shutdown().
+ Update conf files to reflect changes in Notify options.
+
+Thu Jul 07 12:46:22 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/fe/idl.ll
+ * TAO_IDL/fe/lex.yy.cpp
+ * TAO_IDL/fe/lex.yy.cpp.diff
+
+ Added to regular expression for IDL_STRING_LITERAL and
+ IDL_WSTRING_LITERAL to allow additional escape sequences
+ specified by OMG.
+
+Thu Jul 7 19:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/performance.html:
+ Added some info about how to reduce compilation footprint
+
+Thu Jul 7 19:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTScheduling/Current.cpp:
+ Fixed conversion warning
+
+Thu Jul 7 11:33:09 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/ORB_Table.inl (operator==):
+
+ Improved slightly by adding a TAO_ORB_Core pointer equality
+ check.
+
+Thu Jul 7 11:23:12 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/ORB_Table.inl (ORB_Core_Ref_Counter):
+
+ Fixed seg faults caused by calling methods through a nil
+ TAO_ORB_Core pointer by verifying that the pointer is non-nil
+ before doing so. Thanks to Johnny for pointing out the
+ corresponding crash.
+
+Thu Jul 7 18:13:24 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/include/utl_err.h:
+ * TAO_IDL/util/utl_err.cpp:
+ * TAO_IDL/util/utl_global.cpp (string_to_scoped_name):
+
+ Minor fix to the logic of string_to_scoped_name(), and
+ removed the "malformed scoped name string" error since
+ the lookup now catches it if it's incorrect.
+
+Thu Jul 7 16:56:55 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/ORB_Core.cpp:
+ * tao/params.cpp:
+ * tao/params.h:
+ * tao/params.i:
+ * tao/IIOP_Connection_Handler.cpp:
+
+ Add configuration property '-ORBNoServerSideNameLookups' so
+ that server side client name lookups can still be prevented
+ when '-ORBDottedDecimalAddresses 1' is not used.
+
+ * docs/Options.html:
+
+ Document the above.
+
+Thu Jul 7 10:01:26 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/Builder.cpp:
+ * orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp:
+ * orbsvcs/tests/Notify/Basic/ConnectDisconnect.h:
+ * orbsvcs/tests/Notify/Basic/Events.h:
+ * orbsvcs/tests/Notify/Basic/Filter.h:
+ * orbsvcs/tests/Notify/Basic/MultiTypes.h:
+ * orbsvcs/tests/Notify/Basic/Sequence.h:
+ * orbsvcs/tests/Notify/Basic/Simple.h:
+ * orbsvcs/tests/Notify/Basic/Updates.h:
+ * orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Reconnecting/Consumer.h:
+ * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.h:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.h:
+ * orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h:
+ * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h:
+ * tests/Bug_2183_Regression/Hello.h:
+
+ Fix problems with ACE exception macros and fuzz errors.
+
+Thu Jul 7 15:18:01 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * orbsvcs/examples/Notify/Federation/federation.mwc:
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
+ * orbsvcs/examples/Notify/Federation/Agent/Agent.mpc:
+ * orbsvcs/examples/Notify/Federation/Agent/README:
+ * orbsvcs/examples/Notify/Federation/Agent/agent.dia:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.h:
+ * orbsvcs/examples/Notify/Federation/Gate/Gate.mpc:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/README:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
+ * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc:
+
+ Added a set of examples and support code that show how to set
+ up a multicast-based federation of Notification Services.
+
+ * NEWS:
+
+ Announce new examples.
+
+Thu Jul 7 11:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core_TSS_Resources.cpp:
+ Removed not needed include
+
+Thu Jul 7 08:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Basic_Arguments.cpp:
+ * tao/Special_Basic_Arguments.cpp:
+ * tao/UB_String_Arguments.cpp:
+ Removed these files
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Updated for changes above
+
+ * tao/Object.cpp (_get_orb):
+ Updated to comply with coding guidelines. Thanks to Ossama to
+ point out a few minor items
+
+Wed Jul 6 23:10:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Object_Ref_Table.cpp (bind):
+
+ "Transfer" ownership of the object reference being inserted to the
+ object reference table by increasing the reference count.
+ Addresses seg faults in code that accesses object references
+ from the this table.
+
+Wed Jul 6 15:06:17 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
+ * orbsvcs/tests/Notify/Blocking/common.cpp:
+ * orbsvcs/tests/Notify/Discarding/common.cpp:
+ * orbsvcs/tests/Notify/Ordering/common.cpp:
+ * orbsvcs/tests/Notify/Reconnecting/Consumer.cpp:
+ * orbsvcs/tests/Notify/Reconnecting/Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp:
+ * orbsvcs/tests/Notify/lib/Task_Stats.inl:
+ * orbsvcs/tests/Notify/performance-tests/Filter/common.cpp:
+
+ Some ACE_*_cast macros were inadvertently reintroduced when porting notification
+ service fixes from 1.4a.
+
+Wed Jul 6 12:15:49 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Object_Ref_Table.h (TAO_Object_Ref_Table):
+
+ Re-exported this class until code that accesses it directly is
+ updated to use the standard interface.
+
+ * tao/RTCORBA/RT_Protocols_Hooks.cpp:
+ * tao/RTScheduling/Current.cpp:
+ * tao/RTScheduling/RTScheduler_Manager.i:
+
+ Reverted changes below due to potential order of initialization
+ problems.
+
+Wed Jul 6 11:06:22 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/RTCORBA/RT_Protocols_Hooks.cpp:
+ * tao/RTScheduling/Current.cpp:
+ * tao/RTScheduling/RTScheduler_Manager.i:
+
+ Register and retrieve initial references through the standard
+ ORB interface, not directly through the underlying table. The
+ table is no longer exported.
+
+Wed Jul 06 10:48:04 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/ast/ast_expression.cpp:
+ * TAO_IDL/include/ast_expression.h:
+
+ Fix for broken mod (%) operator in constant expressions.
+
+Wed Jul 6 08:11:07 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp (create_with_id):
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp (create_with_id):
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp (create_with_id):
+
+ Fix cut-n-pasto introduced in:
+ Tue Jul 5 18:01:04 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+Wed Jul 6 15:44:16 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/IIOP_Connection_Handler.cpp (open):
+
+ Set server side sockets to be non-blocking even if the
+ client connection policy is blocking. This fixes bugzilla
+ #2183.
+
+ * tests/Bug_2183_Regression/Bug_2183_Regression.mpc:
+ * tests/Bug_2183_Regression/Hello.cpp:
+ * tests/Bug_2183_Regression/Hello.h:
+ * tests/Bug_2183_Regression/README:
+ * tests/Bug_2183_Regression/Test.idl:
+ * tests/Bug_2183_Regression/client.cpp:
+ * tests/Bug_2183_Regression/hang_client.pl:
+ * tests/Bug_2183_Regression/run_test.pl:
+ * tests/Bug_2183_Regression/server.conf:
+ * tests/Bug_2183_Regression/server.cpp:
+
+ Added regression test for the above.
+
+Wed Jul 6 09:47:47 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
+ * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
+ * orbsvcs/orbsvcs/Notify/Event.inl:
+ * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
+ * orbsvcs/orbsvcs/Notify/Reactive_Task.h:
+ * orbsvcs/orbsvcs/Notify/Reactive_Task.cpp:
+ * orbsvcs/tests/Notify/lib/Notify_Test_Client.h:
+
+ Fix misc problems with exception macros.
+ Fix problem with renamed init() method.
+ Fix problem with use of ACE_Thread_Mutex instead of TAO_SYNCH_MUTEX.
+
+Tue Jul 5 18:01:04 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp (create_with_id):
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp (create_with_id):
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp (create_with_id):
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp (create_with_id):
+
+ Throw DsLogAdmin::InvalidLogFullAction when passed an
+ unknown/unsupported log full action.
+
+Tue Jul 5 17:22:12 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp (create_with_id):
+
+ Uncomment ACE_CHECK_RETURN(...) after call to object_creation()
+ to align behavior between native and emulated exceptions and to
+ match cooresponding checks in NotifyLogFactory_i.cpp and
+ RTEventLogFactory_i.cpp.
+
+Tue Jul 5 17:06:09 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (set_log_full_action):
+ * orbsvcs/orbsvcs/Log/Log_i.h:
+
+ Throw DsLogAdmin::InvalidLogFullAction when passed an
+ unknown/unsupported log full action.
+
+Tue Jul 5 23:03:27 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/fe/idl.ll:
+ * TAO_IDL/fe/lex.yy.cpp:
+ * TAO_IDL/include/utl_err.h:
+ * TAO_IDL/util/utl_err.cpp:
+ * TAO_IDL/util/utl_global.cpp:
+
+ - Added a check to code that converts a string to a
+ ScopedName class in the IDL compiler. The check
+ detects certain kinds (not all) of malformed strings.
+
+ - Fixed a bug in the string handling code that processes
+ a #pragma ID directive. There was confusion if the
+ target node name was not scoped (contained no double
+ colon) but the ID string did.
+
+ Thanks to Gar Maxey <gary.maxey@hp.com> for sending in
+ the example IDL file that uncovered these problems.
+
+Tue Jul 5 14:12:07 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/ImplRepo/run_test.pl:
+
+ Cleanup generated files such as IORs and the copy of the server
+ executable.
+
+Tue Jul 05 11:49:13 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Valuetype/StringValueC.inl:
+
+ Avoid error when compiling with HPUX compiler.
+
+Tue Jul 5 10:15:29 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp:
+
+ Ensure that OS_NS_unistd.h is included where we use ACE_OS::unlink().
+
+Tue Jul 5 07:48:44 2005 Justin Michel <michel_j@ociweb.com>
+
+ * examples/Kokyu_dsrt_schedulers/EDF_SchedulingC.cpp:
+ * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
+
+ Fix case of include for tao/TypeCode.h
+
+Tue Jul 5 07:41:12 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/Notify/Basic/AdminProperties.cpp:
+ * orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp:
+ * orbsvcs/tests/Notify/Basic/Events.cpp:
+ * orbsvcs/tests/Notify/Basic/MultiTypes.cpp:
+ * orbsvcs/tests/Notify/Basic/Sequence.cpp:
+ * orbsvcs/tests/Notify/Basic/Simple.cpp:
+ * orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Filter/go.idl:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/go.idl:
+ * orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp:
+ * orbsvcs/tests/Notify/lib/Peer_T.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
+
+ Fix misc problems with use of ACE_ENV macros.
+ Add missing go.idl files
+
+Tue Jul 5 03:07:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/CORBA_String.h:
+ * tao/CORBA_String.inl:
+
+ Added TAO-specific equality operators. Allows
+ CORBA::{W}String_var to be used as map key.
+
+ * tao/ORB.cpp (resolve_initial_references):
+
+ The initial reference map is now an ACE_Array_Map, which
+ implements an STL-like map interface. Updated map iteration
+ accordingly.
+
+ * tao/ORB_Core.cpp:
+ * tao/ORB_Core.h:
+ * tao/ORB_Core.i:
+ * tao/ORB_Table.cpp:
+ * tao/ORB_Table.h:
+ * tao/ORB_Table.inl:
+ * tao/Object_Ref_Table.cpp:
+ * tao/Object_Ref_Table.h:
+ * tao/Object_Ref_Table.inl:
+ * tao/params.cpp:
+ * tao/params.h:
+ * tao/params.i:
+
+ Replaced ACE_Hash_Map_Manager_Ex usage with light weight
+ ACE_Array_Map. Hash map benefits were not worth the larger
+ footprint.
+
+ Inlined a number very small functions. Reduces footprint.
+
+ * tao/Object_Ref_Table.h (TAO_Object_Ref_Table):
+
+ Do not export this class from the TAO shared library. It is
+ meant for internal use alone.
+
+ * tao/ORB_Core_Auto_Ptr.h (TAO_ORB_Core_Auto_Ptr):
+
+ Uncommented "explicit" constructor keyword. Support for it has
+ been required in ACE and TAO for a while now.
+
+ * tao/Makefile.am (nobase_include_HEADERS):
+
+ Added new Object_Ref_Table.inl inline soure file.
+
+Mon Jul 4 18:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/PortableGroup/MIOP.h:
+ Added closing } that was removed by accident earlier today
+
+Mon Jul 4 14:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Collocation_Opportunities/Collocation_Opportunities.cpp:
+ Fixed compile error
+
+Mon Jul 4 14:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.h:
+ * tao/params.h:
+ * tao/Server_Strategy_Factory.h:
+ Removed not needed forward declarations
+
+Mon Jul 4 13:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Stub.h:
+ Removed not needed forward declarations
+
+Mon Jul 4 13:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/orb_types.pidl:
+ Don't use -GA with regeneration, we then get an A.cpp with contents
+ but the C.cpp file is empty, so just generate everything in C.cpp
+
+ * tao/orb_typesC.{h,cpp}:
+ * tao/orb_typesS.h:
+ Regenerated
+
+ * tao/orb_typesA.cpp:
+ Removed
+
+ * tao/Makefile.am:
+ * tao/tao.mpc:
+ Removed file above
+
+Mon Jul 4 13:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Makefile.am:
+ Added missing Messaging_PolicyValueA.cpp
+
+ * tao/tao.mpc:
+ Added missing Messaging_PolicyValueA.cpp and
+ Messaging_PolicyValueC.cpp
+
+Mon Jul 4 13:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Protocols_Hooks.h:
+ Removed several not needed forward declarations
+
+Mon Jul 4 13:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Visibility.pidl:
+ Don't use -GA with regeneration, we then get an A.cpp with contents
+ but the C.cpp file is empty, so just generate everything in C.cpp
+
+ * tao/VisibilityC.{h,cpp}:
+ * tao/VisibilityS.h:
+ Regenerated
+
+ * tao/VisibilityA.cpp:
+ Removed
+
+ * tao/Makefile.am:
+ * tao/tao.mpc:
+ Removed file above
+
+Mon Jul 4 12:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PredefinedType_Seq_Tmplinst.cpp:
+ Removed this file, explicit templates are not working with TAO
+ and will not work anymore in the future
+
+ * tao/Makefile.am:
+ * tao/tao.mpc:
+ Removed file above
+
+Mon Jul 4 12:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h:
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h:
+ * orbsvcs/orbsvcs/PortableGroup/MIOP.h:
+ * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h:
+ * tao/PICurrent_Loader.h:
+ * tao/BiDir_GIOP/BiDirGIOP.h:
+ * tao/CodecFactory/CodecFactory.h:
+ * tao/DynamicAny/DynamicAny.h:
+ * tao/DynamicInterface/Dynamic_Adapter_Impl.h:
+ * tao/IFR_Client/IFR_Client_Adapter_Impl.h:
+ * tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h:
+ * tao/IORManipulation/IORManip_Loader.h:
+ * tao/IORTable/IORTable.h:
+ * tao/ImR_Client/ImR_Client.h:
+ * tao/Messaging/Messaging.h:
+ * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h:
+ * tao/PI/PI.h:
+ * tao/PI/PolicyFactory_Loader.h:
+ * tao/PI_Server/PI_Server.h:
+ * tao/PortableServer/PortableServer.h:
+ * tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h:
+ * tao/TypeCodeFactory/TypeCodeFactory_Loader.h:
+ * tao/Valuetype/Valuetype_Adapter_Impl.h:
+ Removed usage of ACE_HAS_BROKEN_STATIC_CONSTRUCTORS. This seems
+ to be used for older broken VxWorks versions but we don't need
+ this anymore. Zapped the usage of this and the workaround we
+ had in TAO. This fixes bugzilla bug 2177
+
+Mon Jul 4 11:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORBInitializer_Registry_Adapter.{h,cpp}:
+ Added virtual destructor in new cpp file, hopefully this fixes the
+ gcc 4 runtime errors
+
+ * tao/tao.mpc
+ * tao/Makefile.am:
+ Added new file
+
+Mon Jul 4 10:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI_Server/PI_Server.cpp:
+ * tao/PI_Server/ServerRequestInterceptor_Factory_Impl.{h,cpp}:
+ * tao/PI/PI.cpp:
+ * tao/PI/ClientRequestInterceptor_Factory_Impl.{h,cpp}:
+ * tao/PI/ClientRequestInterceptor_Adapter_Impl.{h,cpp}:
+ Added guards for when interceptors are disabled. The complete
+ PI/PI_Server lib shouldn't get build when interceptors are
+ disabled but that is not yet possible because the
+ ORBInitializers are used internally by some core libs.
+
+Mon Jul 4 09:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/AMH/Sink_Server/AMH_Servant.h:
+ * examples/Content_Server/AMI_Iterator/Content_Iterator_i.h:
+ * examples/Content_Server/AMI_Iterator/Iterator_Handler.h:
+ * examples/Content_Server/AMI_Observer/Callback_Handler.h:
+ * examples/Content_Server/AMI_Observer/Callback_i.h:
+ * examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h:
+ * examples/Content_Server/SMI_Iterator/Content_Iterator_i.h:
+ * examples/Load_Balancing/Identity_i.h:
+ * examples/Load_Balancing/Load_Balancer_i.h:
+ * examples/Load_Balancing_persistent/Identity_i.h:
+ * examples/Load_Balancing_persistent/Load_Balancer_i.h:
+ * examples/POA/Forwarding/test_i.h:
+ * examples/RTCORBA/Activity/Job_i.h:
+ * examples/RTScheduling/Job_i.h:
+ * examples/Simple/time-date/Time_Date_i.h:
+ * orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h:
+ * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h:
+ * orbsvcs/ImplRepo_Service/Iterator.h:
+ * orbsvcs/examples/CosEC/Factory/CosEventChannelFactory_i.h:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/ConsumerAdmin_i.h:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/CosEvent_Utilities.h:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/EventChannel_i.h:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushConsumer_i.h:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushSupplier_i.h:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h:
+ * orbsvcs/examples/ImR/Advanced/Manager_i.h:
+ * orbsvcs/examples/ImR/Advanced/Messenger_i.h:
+ * orbsvcs/examples/ImR/Combined_Service/dynserver.h:
+ * orbsvcs/examples/LoadBalancing/RPS_Monitor.h:
+ * orbsvcs/examples/LoadBalancing/StockFactory.h:
+ * orbsvcs/examples/Log/Notify/Notify_Consumer.h:
+ * orbsvcs/examples/Log/Notify/Notify_Supplier.h:
+ * orbsvcs/examples/Notify/Filter/Filter.h:
+ * orbsvcs/examples/Notify/Lanes/Consumer.h:
+ * orbsvcs/examples/Notify/Lanes/Supplier.h:
+ * orbsvcs/examples/Notify/Subscribe/Subscribe.h:
+ * orbsvcs/examples/Notify/ThreadPool/Consumer.h:
+ * orbsvcs/examples/Notify/ThreadPool/Supplier.h:
+ * orbsvcs/examples/ORT/Gateway_i.h:
+ * orbsvcs/orbsvcs/AV/AVStreams_i.h:
+ * orbsvcs/orbsvcs/AV/Flows_T.h:
+ * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h:
+ * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
+ * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
+ * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
+ * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_Random.h:
+ * orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h:
+ * orbsvcs/orbsvcs/Log/BasicLog_i.h:
+ * orbsvcs/orbsvcs/Log/EventLog_i.h:
+ * orbsvcs/orbsvcs/Log/Iterator_i.h:
+ * orbsvcs/orbsvcs/Log/NotifyLogConsumer.h:
+ * orbsvcs/orbsvcs/Log/NotifyLogNotification.h:
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
+ * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
+ * orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h:
+ * orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h:
+ * orbsvcs/orbsvcs/Notify/ETCL_Filter.h:
+ * orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h:
+ * orbsvcs/orbsvcs/Property/CosPropertyService_i.h:
+ * orbsvcs/orbsvcs/Trader/Offer_Iterators.h:
+ * orbsvcs/orbsvcs/Trader/Trader_T.h:
+ * orbsvcs/orbsvcs/Trader/Trader_Utils.h:
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/Roundtrip.h:
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/RPS_Monitor.h:
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Roundtrip.h:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.h:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Session.h:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Session_Factory.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Consumer.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Control.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Loopback.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Loopback_Consumer.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Loopback_Supplier.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Peer_Base.h:
+ * orbsvcs/performance-tests/RTEvent/lib/Supplier.h:
+ * orbsvcs/tests/CosEvent/Basic/Random.h:
+ * orbsvcs/tests/Event/Basic/Random.h:
+ * orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h:
+ * orbsvcs/tests/HTIOP/Hello/Hello.h:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Basic.h:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Simple.h:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Basic.h:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.h:
+ * orbsvcs/tests/Miop/McastHello/McastHello.h:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.h:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.h:
+ * orbsvcs/tests/Notify/lib/Peer_T.h:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h:
+ * orbsvcs/tests/RTCosScheduling/Object1_i.h:
+ * orbsvcs/tests/Security/Callback/client_i.h:
+ * orbsvcs/tests/Security/Callback/server_i.h:
+ * orbsvcs/tests/Security/Secure_Invocation/Foo_i.h:
+ * performance-tests/Protocols/Protocols.mpc
+ * tests/AMI_Buffering/AMI_Buffering.h:
+ * tests/AMI_Buffering/AMI_Buffering_Admin.h:
+ * tests/AMI_Buffering/Reply_Handler.h:
+ * tests/Any/Recursive/Hello.h:
+ * tests/BiDirectional_NestedUpcall/test_i.h:
+ * tests/Big_Reply/Big_Reply_i.h:
+ * tests/Big_Request_Muxing/Payload_Receiver.h:
+ * tests/Big_Twoways/Peer.h:
+ * tests/Blocking_Sync_None/Blocking_Sync_None.h:
+ * tests/Bug_1476_Regression/Sender_i.h:
+ * tests/Bug_1482_Regression/Hello.h:
+ * tests/Bug_1495_Regression/test_i.h:
+ * tests/Bug_1551_Regression/Hello.h:
+ * tests/Bug_1551_Regression/Reply_Handler.h:
+ * tests/Cache_Growth_Test/Hello.h:
+ * tests/Client_Leaks/Process.h:
+ * tests/Client_Leaks/Process_Factory.h:
+ * tests/Client_Leaks/Startup_Callback.h:
+ * tests/Collocation_Tests/Hello.h:
+ * tests/Connect_Strategy_Test/Hello.h:
+ * tests/Connection_Purging/test_i.h:
+ * tests/Crash_On_Write/Oneway_Receiver.h:
+ * tests/Crashed_Callback/Crashed_Callback.h:
+ * tests/Crashed_Callback/Service.h:
+ * tests/Faults/ping_i.h:
+ * tests/Faults/test_i.h:
+ * tests/GIOP_Fragments/Java_Big_Request/Payload_Receiver.h:
+ * tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h:
+ * tests/Hang_Shutdown/test_i.h:
+ * tests/Hello/Hello.h:
+ * tests/ICMG_Any_Bug/Hello.h:
+ * tests/ICMG_Any_Bug/HelloWorld.h:
+ * tests/IOR_Endpoint_Hostnames/bogus_i.h:
+ * tests/LongUpcalls/AMI_Manager.h:
+ * tests/LongUpcalls/Controller.h:
+ * tests/LongUpcalls/Manager.h:
+ * tests/LongUpcalls/Manager_Handler.h:
+ * tests/MT_BiDir/Receiver_i.h:
+ * tests/MT_BiDir/Sender_i.h:
+ * tests/MT_Timeout/Sleep_Service.h:
+ * tests/Nested_Upcall_Crash/Client_Peer.h:
+ * tests/Nested_Upcall_Crash/Server_Peer.h:
+ * tests/OBV/Supports/Supports_Test_impl.h:
+ * tests/ORB_shutdown/Foo_Bar.h:
+ * tests/Object_Loader/Test_i.h:
+ * tests/Oneway_Buffering/Oneway_Buffering.h:
+ * tests/Oneway_Buffering/Oneway_Buffering_Admin.h:
+ * tests/Oneways_Invoking_Twoways/Receiver_i.h:
+ * tests/Oneways_Invoking_Twoways/Sender_i.h:
+ * tests/POA/Deactivate_Object/Hello.h:
+ * tests/Portable_Interceptors/AMI/Echo.h:
+ * tests/Portable_Interceptors/AMI/Echo_Handler.h:
+ * tests/Portable_Interceptors/Collocated/Dynamic/test_i.h:
+ * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.h:
+ * tests/RTCORBA/Priority_Inversion_With_Bands/test_i.h:
+ * tests/RTCORBA/Thread_Pool/test_i.h:
+ * tests/Reliable_Oneways/Oneway_Receiver.h:
+ * tests/Reliable_Oneways/Shutdown_Helper.h:
+ * tests/Servant_To_Reference_Test/Test_i.h:
+ * tests/Server_Connection_Purging/Test_i.h:
+ * tests/Server_Leaks/Ping_Service.h:
+ * tests/Server_Port_Zero/Hello.h:
+ * tests/Stack_Recursion/Sender.h:
+ * TAO_IDL/be/be_visitor_interface/interface_ih.cpp:
+ * docs/tutorials/Quoter/Event_Service/Stock_i.h:
+ * docs/tutorials/Quoter/RT_Event_Service/Stock_i.h:
+ * docs/tutorials/Quoter/Simple/ImprovedServer/Stock_i.h:
+ * examples/POA/Adapter_Activator/server.cpp:
+ * examples/POA/Reference_Counted_Servant/server.cpp:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushConsumer_i.cpp:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushSupplier_i.cpp:
+ * orbsvcs/examples/ImR/Combined_Service/combined.cpp:
+ * orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp:
+ * orbsvcs/tests/Event/Mcast/Complex/consumer.cpp:
+ * orbsvcs/tests/Event/Mcast/Simple/consumer.cpp:
+ * orbsvcs/tests/Event/Mcast/Two_Way/application.cpp:
+ * orbsvcs/tests/ImplRepo/scale/server_i.cpp:
+ * orbsvcs/tests/Redundant_Naming/client.cpp:
+ * orbsvcs/tests/Security/ssliop_corbaloc/client.cpp:
+ * orbsvcs/tests/Simple_Naming/client.cpp:
+ * performance-tests/Latency/AMH_Single_Threaded/Roundtrip.h:
+ * performance-tests/Latency/AMI/Roundtrip.h:
+ * performance-tests/Latency/AMI/Roundtrip_Handler.h:
+ * performance-tests/Latency/Collocation/Roundtrip.h:
+ * performance-tests/Latency/DII/Roundtrip.h:
+ * performance-tests/Latency/DSI/Roundtrip.h:
+ * performance-tests/Latency/Deferred/Roundtrip.h:
+ * performance-tests/Latency/Single_Threaded/Roundtrip.h:
+ * performance-tests/Latency/Thread_Per_Connection/Roundtrip.h:
+ * performance-tests/Latency/Thread_Pool/Roundtrip.h:
+ * performance-tests/Memory/IORsize/Foo_i.h:
+ * performance-tests/Memory/IORsize/Memory_Growth.h:
+ * performance-tests/Memory/Single_Threaded/Memory_Growth.h:
+ * performance-tests/POA/Implicit_Activation/Factory.h:
+ * performance-tests/POA/Implicit_Activation/Simple.h:
+ * performance-tests/Protocols/Protocols.mpc
+ * performance-tests/Protocols/distributor.cpp:
+ * performance-tests/Protocols/receiver.cpp:
+ * performance-tests/RTCorba/Thread_Pool/server.cpp:
+ * performance-tests/Sequence_Latency/AMH_Single_Threaded/Roundtrip.h:
+ * performance-tests/Sequence_Latency/AMI/Roundtrip.h:
+ * performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h:
+ * performance-tests/Sequence_Latency/DII/Roundtrip.h:
+ * performance-tests/Sequence_Latency/DSI/Roundtrip.h:
+ * performance-tests/Sequence_Latency/Deferred/Roundtrip.h:
+ * performance-tests/Sequence_Latency/Single_Threaded/Roundtrip.h:
+ * performance-tests/Sequence_Latency/Thread_Per_Connection/Roundtrip.h:
+ * performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.h:
+ * performance-tests/Throughput/Receiver.h:
+ * performance-tests/Throughput/Receiver_Factory.h:
+ * tao/ImR_Client/ServerObject_i.h:
+ * tests/AMH_Exceptions/server.cpp:
+ * tests/AMH_Oneway/server.cpp:
+ * tests/Bug_1568_Regression/server.cpp:
+ * tests/Bug_1670_Regression/server.cpp:
+ * tests/Collocation_Opportunities/Collocation_Opportunities.cpp:
+ * tests/Faults/test_i.h:
+ * tests/Objref_Sequence_Test/server.cpp:
+ * tests/POA/Etherealization/Etherealization.cpp:
+ * tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp:
+ * tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp:
+ * tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp:
+ * tests/POA/Persistent_ID/server.cpp:
+ * tests/RTCORBA/Collocation/Collocation.cpp:
+ * tests/RTCORBA/Linear_Priority/server.cpp:
+ * tests/RTCORBA/Persistent_IOR/server.cpp:
+ * tests/RTCORBA/Policy_Combinations/server.cpp:
+ * tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp:
+ * tests/UNKNOWN_Exception/server.cpp:
+ All servants are reference counted by default, no need anymore to
+ derive the servant from RefCountServantBase. Also removed the msvc
+ pragma push/pop when it was not needed anymore
+
+ * tao/Object.{h,cpp}:
+ Corrected implementation _get_orb()
+
+ * tao/SystemException.cpp:
+ Initailize pointers with 0
+
+Mon Jul 4 07:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Big_Twoways/Coordinator.h:
+ * tests/Big_Twoways/Session.h:
+ * tests/Big_Twoways/Session_Control.h:
+ * tests/Big_Oneways/Coordinator.h:
+ * tests/Big_Oneways/Peer.h:
+ * tests/Big_Oneways/Session.h:
+ * tests/Big_Oneways/Session_Control.h:
+ No need to derive from RefCountServantBase, Servants are
+ reference counted now by defailt.
+
+ * tests/Big_Twoways/run_test.pl:
+ * tests/Big_Oneways/run_test.pl:
+ Use WaitKill for the server, if the server is still running, it
+ is an error
+
+ * tests/Big_Twoways/server.cpp:
+ * tests/Big_Oneways/server.cpp:
+ No need to do a _remove_ref, the _var handle this
+
+Sun Jul 3 15:09:06 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+
+ Fix typo in ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA case.
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+
+ Change create() method parameter name from max_rec_size to
+ max_size, as it specifies the size of the whole log, not a
+ single log record.
+
+Sun Jul 3 15:00:29 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Makefile.am:
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerated.
+
+ * tao/tao.mpc:
+
+ Removed Interceptor_List.h from Header_Files and
+ Interceptor_List.cpp from Template_Files sections.
+
+Fri Jul 01 15:14:06 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Valuetype/StringValueC.inl:
+
+ Avoid error when compiling with MSVC6 compiler.
+
+Fri Jul 1 16:14:16 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp:
+ * orbsvcs/tests/Notify/lib/Options_Parser.cpp:
+
+ Fix some typos with the previous checkin.
+
+Fri Jul 1 14:43:27 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/Notify_Service/Notify_Service.cpp:
+ * orbsvcs/Notify_Service/README:
+ * orbsvcs/Notify_Service/svc.conf:
+ * orbsvcs/Notify_Service/svc.conf.xml:
+ * orbsvcs/orbsvcs/CosNotification.mpc:
+ * orbsvcs/orbsvcs/CosNotifyComm.idl:
+ * orbsvcs/orbsvcs/Notify/Admin.h:
+ * orbsvcs/orbsvcs/Notify/Admin.inl:
+ * orbsvcs/orbsvcs/Notify/Admin.cpp:
+ * orbsvcs/orbsvcs/Notify/AdminProperties.h:
+ * orbsvcs/orbsvcs/Notify/AdminProperties.inl:
+ * orbsvcs/orbsvcs/Notify/AdminProperties.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/AnyEvent.h:
+ * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/PushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Any/PushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.h:
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
+ * orbsvcs/orbsvcs/Notify/Builder.cpp:
+ * orbsvcs/orbsvcs/Notify/Consumer.h:
+ * orbsvcs/orbsvcs/Notify/Consumer.inl:
+ * orbsvcs/orbsvcs/Notify/Consumer.cpp:
+ * orbsvcs/orbsvcs/Notify/ConsumerAdmin.h:
+ * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
+ * orbsvcs/orbsvcs/Notify/CosNotify_Service.h:
+ * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
+ * orbsvcs/orbsvcs/Notify/Default_Factory.cpp:
+ * orbsvcs/orbsvcs/Notify/Delivery_Request.h:
+ * orbsvcs/orbsvcs/Notify/Delivery_Request.cpp:
+ * orbsvcs/orbsvcs/Notify/ETCL_Filter.h:
+ * orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp:
+ * orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h:
+ * orbsvcs/orbsvcs/Notify/Event.h:
+ * orbsvcs/orbsvcs/Notify/Event.inl:
+ * orbsvcs/orbsvcs/Notify/Event.cpp:
+ * orbsvcs/orbsvcs/Notify/EventChannel.h:
+ * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
+ * orbsvcs/orbsvcs/Notify/EventChannelFactory.h:
+ * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp:
+ * orbsvcs/orbsvcs/Notify/EventTypeSeq.h:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.h:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.inl:
+ * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
+ * orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h:
+ * orbsvcs/orbsvcs/Notify/FilterAdmin.h:
+ * orbsvcs/orbsvcs/Notify/FilterAdmin.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request.inl:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Event.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Updates.h:
+ * orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp:
+ * orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp:
+ * orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h:
+ * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
+ * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
+ * orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp:
+ * orbsvcs/orbsvcs/Notify/Object.h:
+ * orbsvcs/orbsvcs/Notify/Object.inl:
+ * orbsvcs/orbsvcs/Notify/Object.cpp:
+ * orbsvcs/orbsvcs/Notify/Peer.h:
+ * orbsvcs/orbsvcs/Notify/Peer.cpp:
+ * orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h:
+ * orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp:
+ * orbsvcs/orbsvcs/Notify/Properties.cpp:
+ * orbsvcs/orbsvcs/Notify/Proxy.h:
+ * orbsvcs/orbsvcs/Notify/Proxy.cpp:
+ * orbsvcs/orbsvcs/Notify/ProxyConsumer.h:
+ * orbsvcs/orbsvcs/Notify/ProxyConsumer.inl:
+ * orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp:
+ * orbsvcs/orbsvcs/Notify/ProxySupplier.h:
+ * orbsvcs/orbsvcs/Notify/ProxySupplier.inl:
+ * orbsvcs/orbsvcs/Notify/ProxySupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp:
+ * orbsvcs/orbsvcs/Notify/Proxy_T.cpp:
+ * orbsvcs/orbsvcs/Notify/QoSProperties.h:
+ * orbsvcs/orbsvcs/Notify/QoSProperties.inl:
+ * orbsvcs/orbsvcs/Notify/QoSProperties.cpp:
+ * orbsvcs/orbsvcs/Notify/README:
+ * orbsvcs/orbsvcs/Notify/RT_Builder.cpp:
+ * orbsvcs/orbsvcs/Notify/RT_Notify_Service.h:
+ * orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp:
+ * orbsvcs/orbsvcs/Notify/Random_File.h:
+ * orbsvcs/orbsvcs/Notify/Random_File.cpp:
+ * orbsvcs/orbsvcs/Notify/Reactive_Task.h:
+ * orbsvcs/orbsvcs/Notify/Reactive_Task.cpp:
+ * orbsvcs/orbsvcs/Notify/Reconnection_Registry.h:
+ * orbsvcs/orbsvcs/Notify/Refcountable.h:
+ * orbsvcs/orbsvcs/Notify/Refcountable.cpp:
+ * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h:
+ * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip.h:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
+ * orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Service.h:
+ * orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h:
+ * orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h:
+ * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp:
+ * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h:
+ * orbsvcs/orbsvcs/Notify/Supplier.h:
+ * orbsvcs/orbsvcs/Notify/SupplierAdmin.h:
+ * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.inl:
+ * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
+ * orbsvcs/orbsvcs/Notify/Timer.h:
+ * orbsvcs/orbsvcs/Notify/Timer_Queue.h:
+ * orbsvcs/orbsvcs/Notify/Timer_Reactor.h:
+ * orbsvcs/orbsvcs/Notify/Topology_Object.h:
+ * orbsvcs/orbsvcs/Notify/Topology_Object.cpp:
+ * orbsvcs/orbsvcs/Notify/Worker_Task.h:
+ * orbsvcs/orbsvcs/Notify/Buffering_Strategy.inl:
+ * orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.h:
+ * orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.cpp:
+
+ Ported over the refactoring of the Notify Service by Dave Giovannini
+ <giovannini_d at ociweb dot com>. These changes primarily fix memory leaks
+ and crashes.
+ Ported over my own changes that reimplement the OrderPolicy, BlockingPolicy, and
+ DiscardPolicy features.
+
+ * orbsvcs/tests/Notify/Basic/AdminProperties.h:
+ * orbsvcs/tests/Notify/Basic/AdminProperties.cpp:
+ * orbsvcs/tests/Notify/Basic/ConnectDisconnect.h:
+ * orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp:
+ * orbsvcs/tests/Notify/Basic/Events.h:
+ * orbsvcs/tests/Notify/Basic/Events.cpp:
+ * orbsvcs/tests/Notify/Basic/Filter.h:
+ * orbsvcs/tests/Notify/Basic/Filter.cpp:
+ * orbsvcs/tests/Notify/Basic/IdAssignment.cpp:
+ * orbsvcs/tests/Notify/Basic/LifeCycle.cpp:
+ * orbsvcs/tests/Notify/Basic/MultiTypes.h:
+ * orbsvcs/tests/Notify/Basic/MultiTypes.cpp:
+ * orbsvcs/tests/Notify/Basic/Sequence.h:
+ * orbsvcs/tests/Notify/Basic/Sequence.cpp:
+ * orbsvcs/tests/Notify/Basic/Simple.h:
+ * orbsvcs/tests/Notify/Basic/Simple.cpp:
+ * orbsvcs/tests/Notify/Basic/Updates.h:
+ * orbsvcs/tests/Notify/Basic/Updates.cpp:
+ * orbsvcs/tests/Notify/Basic/adminproperties.conf:
+ * orbsvcs/tests/Notify/Basic/notify.mt.conf:
+ * orbsvcs/tests/Notify/Basic/notify.reactive.conf:
+ * orbsvcs/tests/Notify/Basic/notify.rt.conf:
+ * orbsvcs/tests/Notify/Basic/run_test.pl:
+ * orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Blocking/common.cpp:
+ * orbsvcs/tests/Notify/Blocking/go.idl:
+ * orbsvcs/tests/Notify/Blocking/notify.conf:
+ * orbsvcs/tests/Notify/Blocking/notify.conf.xml:
+ * orbsvcs/tests/Notify/Blocking/run_test.pl:
+ * orbsvcs/tests/Notify/Destroy/main.cpp:
+ * orbsvcs/tests/Notify/Discarding/Notify_Sequence_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Discarding/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Discarding/common.cpp:
+ * orbsvcs/tests/Notify/Discarding/go.idl:
+ * orbsvcs/tests/Notify/Discarding/notify.conf:
+ * orbsvcs/tests/Notify/Discarding/notify.conf.xml:
+ * orbsvcs/tests/Notify/Discarding/run_test.pl:
+ * orbsvcs/tests/Notify/Driver/main.cpp:
+ * orbsvcs/tests/Notify/Lanes/consumer.conf:
+ * orbsvcs/tests/Notify/Lanes/notify.conf:
+ * orbsvcs/tests/Notify/Lanes/run_test.pl:
+ * orbsvcs/tests/Notify/Lanes/run_test_consumer.pl:
+ * orbsvcs/tests/Notify/Lanes/run_test_notify.pl:
+ * orbsvcs/tests/Notify/Lanes/run_test_supplier.pl:
+ * orbsvcs/tests/Notify/Lanes/supplier.conf:
+ * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/MT_Dispatching/go.idl:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_mtdispatching.conf:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_mtdispatching.conf.xml:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_mtsource.conf:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_mtsource.conf.xml:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_nothreads.conf:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_nothreads.conf.xml:
+ * orbsvcs/tests/Notify/MT_Dispatching/run_test.pl:
+ * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Ordering/common.cpp:
+ * orbsvcs/tests/Notify/Ordering/go.idl:
+ * orbsvcs/tests/Notify/Ordering/notify.conf:
+ * orbsvcs/tests/Notify/Ordering/notify.conf.xml:
+ * orbsvcs/tests/Notify/Ordering/run_test.pl:
+ * orbsvcs/tests/Notify/PluggableTopology/Test_Topology_Factory.h:
+ * orbsvcs/tests/Notify/PluggableTopology/main.cpp:
+ * orbsvcs/tests/Notify/PluggableTopology/plugtop_ns.conf:
+ * orbsvcs/tests/Notify/Reconnecting/Consumer.h:
+ * orbsvcs/tests/Notify/Reconnecting/Consumer.cpp:
+ * orbsvcs/tests/Notify/Reconnecting/README:
+ * orbsvcs/tests/Notify/Reconnecting/Supplier.cpp:
+ * orbsvcs/tests/Notify/Reconnecting/event.conf:
+ * orbsvcs/tests/Notify/Reconnecting/ns_mt.conf:
+ * orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf:
+ * orbsvcs/tests/Notify/Reconnecting/ns_st.conf:
+ * orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf:
+ * orbsvcs/tests/Notify/Reconnecting/run_test.pl:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/go.idl:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/notify.conf:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/notify.conf.xml:
+ * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/run_test.pl:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/go.idl:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/notify.conf:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/notify.conf.xml:
+ * orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl:
+ * orbsvcs/tests/Notify/Structured_Filter/Notify_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Structured_Filter/Notify_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Structured_Filter/Struct_Filter.mpc:
+ * orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Filter/notify.conf:
+ * orbsvcs/tests/Notify/Structured_Filter/run_test.pl:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.h:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Supplier.h:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Struct_Multi_Filter.mpc:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/notify.conf:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/run_test.pl:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.h:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp:
+ * orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.h:
+ * orbsvcs/tests/Notify/ThreadPool/consumer.conf:
+ * orbsvcs/tests/Notify/ThreadPool/notify.conf:
+ * orbsvcs/tests/Notify/ThreadPool/run_test.pl:
+ * orbsvcs/tests/Notify/ThreadPool/supplier.conf:
+ * orbsvcs/tests/Notify/XML_Persistence/main.cpp:
+ * orbsvcs/tests/Notify/XML_Persistence/run_test.pl:
+ * orbsvcs/tests/Notify/XML_Persistence/svc.conf:
+ * orbsvcs/tests/Notify/lib/Command.cpp:
+ * orbsvcs/tests/Notify/lib/Consumer_T.h:
+ * orbsvcs/tests/Notify/lib/Consumer_T.cpp:
+ * orbsvcs/tests/Notify/lib/Driver.h:
+ * orbsvcs/tests/Notify/lib/Driver.cpp:
+ * orbsvcs/tests/Notify/lib/EventChannel_Command.cpp:
+ * orbsvcs/tests/Notify/lib/Notify_Test_Client.h:
+ * orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp:
+ * orbsvcs/tests/Notify/lib/Options_Parser.cpp:
+ * orbsvcs/tests/Notify/lib/Peer_T.h:
+ * orbsvcs/tests/Notify/lib/Peer_T.cpp:
+ * orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp:
+ * orbsvcs/tests/Notify/lib/PushConsumer.cpp:
+ * orbsvcs/tests/Notify/lib/PushSupplier.cpp:
+ * orbsvcs/tests/Notify/lib/README:
+ * orbsvcs/tests/Notify/lib/SequencePushConsumer.cpp:
+ * orbsvcs/tests/Notify/lib/SequencePushSupplier.cpp:
+ * orbsvcs/tests/Notify/lib/StructuredPushConsumer.cpp:
+ * orbsvcs/tests/Notify/lib/StructuredPushSupplier.cpp:
+ * orbsvcs/tests/Notify/lib/Supplier_T.h:
+ * orbsvcs/tests/Notify/lib/Supplier_T.cpp:
+ * orbsvcs/tests/Notify/lib/Task_Callback.h:
+ * orbsvcs/tests/Notify/lib/Task_Stats.inl:
+ * orbsvcs/tests/Notify/lib/Task_Stats.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Sequence_Push_Consumer.h:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Sequence_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Structured_Push_Consumer.h:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Structured_Push_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/common.cpp:
+ * orbsvcs/tests/Notify/performance-tests/Filter/go.idl:
+ * orbsvcs/tests/Notify/performance-tests/Filter/notify.conf:
+ * orbsvcs/tests/Notify/performance-tests/Filter/notify.conf.xml:
+ * orbsvcs/tests/Notify/performance-tests/Filter/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf.xml:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/lookup.conf:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/reactive.conf:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/RedGreen/svc.conf:
+ * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h:
+ * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_0/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_10/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_15/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_20/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_25/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_30/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_35/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_40/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_45/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_5/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_50/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/README:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/run_all.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_0/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_10/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_15/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_20/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_25/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_30/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_35/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_40/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_45/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_5/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_50/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/README:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/run_all.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops_RTCORBA/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops_RTCORBA/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops_RTCORBA/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/relay.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/relay.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated/colocated.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated_RTCORBA/colocated.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated_RTCORBA/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify_RTCORBA/consumer.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify_RTCORBA/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify_RTCORBA/supplier.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/README:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/run_all.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_1/other_paths.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_10/other_paths.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_20/other_paths.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_3/other_paths.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_5/other_paths.conf:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/README:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_all.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_high_path.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_notify.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_other_paths.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_test.pl:
+ * orbsvcs/tests/Notify/performance-tests/scripts/run_all.pl:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_mtlistener.conf:
+ * orbsvcs/tests/Notify/MT_Dispatching/notify_mtlistener.conf.xml:
+ * orbsvcs/tests/Notify/Structured_Filter/control.idl:
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/control.idl:
+
+ Dave G also refactored the tests somewhat to resolve various problems.
+ Many tests were rewritten to more fully test the broken QoS features.
+
+
+Fri Jul 1 17:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/AMI/PI_AMI.mpc:
+ By accident ami was removed as base project of server
+
+Fri Jul 1 17:04:50 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp:
+
+ When generating the base class name in the constructor of
+ a sequence, changed the call to be_sequence::gen_base_class_name
+ to pass the current scope (as is already done for the same call
+ in the stub header visitor) instead of the global scope. This
+ change fixes a problem with nested anonymous sequences, for
+ example, 'sequence<sequence<short> >, in the generated
+ constructor initialization list.
+
+Fri Jul 1 11:33:12 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * TAO_IDL/be/be_helper.cpp:
+ * TAO_IDL/be/be_visitor_arg_traits.cpp:
+ * TAO_IDL/be/be_visitor_traits.cpp:
+ * TAO_IDL/be_include/be_helper.h:
+
+ When generating template specializations, do not add the stream
+ type suffix. This allows users to combine the idl generated .cpp
+ files into one which with some compilers decreases build times.
+
+Fri Jul 1 15:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/AVStreams/Full_Profile/run_test.pl:
+ * orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl:
+ * orbsvcs/tests/AVStreams/Component_Switching/run_test.pl:
+ * orbsvcs/tests/AVStreams/Multicast/run_test.pl:
+ * orbsvcs/tests/AVStreams/Pluggable/run_test.pl:
+ * orbsvcs/tests/AVStreams/Simple_Three_Stage/run_test.pl:
+ Cleanup generated test files at the start, there can be an old file
+ when things failed in the previous run
+
+Fri Jul 1 15:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * performance-tests/Callback/Callback.mpc:
+ * performance-tests/Latency/AMH_Single_Threaded/Single_Threaded.mpc:
+ * performance-tests/Latency/AMI/AMI.mpc:
+ * performance-tests/Latency/Collocation/Collocation.mpc:
+ * performance-tests/Latency/DII/DII.mpc:
+ * performance-tests/Latency/DSI/DSI.mpc:
+ * performance-tests/Latency/Deferred/Deferred.mpc:
+ * performance-tests/Latency/Single_Threaded/Single_Threaded.mpc:
+ * performance-tests/Latency/Thread_Per_Connection/Thread_Per_Connection.mpc:
+ * performance-tests/Latency/Thread_Pool/Thread_Pool.mpc:
+ * performance-tests/Memory/IORsize/Memory_IORsize.mpc:
+ * performance-tests/Memory/Single_Threaded/Memory_Growth.mpc:
+ * performance-tests/POA/Create_Reference/Create_Reference.mpc:
+ * performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc:
+ Use better base projects to simplify things
+
+Fri Jul 1 14:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
+ Added pi_server to the client project also
+
+Fri Jul 1 14:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Invocation_Base.cpp:
+ Fixed compilation error when interceptors are disabled
+
+Fri Jul 1 07:18:44 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/IFR_Service/Makefile.am:
+ * orbsvcs/orbsvcs/Makefile.am:
+ * tao/Makefile.am:
+
+ Regenerated.
+
+ * orbsvcs/IFR_Service/IFR_Service.mpc:
+
+ Changed so-called "convenience libraries" projects to inherit
+ from conv_lib.mpb.
+
+Fri Jul 1 13:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ClientRequestInterceptor_Adapter_Impl.h:
+ Corrected export macro
+
+Fri Jul 1 13:16:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_produce.cpp:
+
+ Moved the conditional initialization of the *A.cpp file stream
+ from before the stub header visitor executes to after the
+ stub header visitor and before the stub source visitor. This
+ move allows the checks for recursive types that happen in
+ the stub header visitor to complete, giving correct results
+ when the presence of recursive types is checked in the
+ generation of includes for the *A.cpp file, if it is generated.
+ The *A.cpp includes must also be generated before the *C.cpp
+ file since the *A.cpp file, if generated, will steal some
+ includes that would go in the *C.cpp file if the -GA option
+ was not used.
+
+Fri Jul 1 12:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h:
+ Added include of PI_Server.h
+
+ * orbsvcs/orbsvcs/SSLIOP.mpc:
+ Added PI_Server as base project
+
+Fri Jul 1 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ClientRequestInfo.{h,cpp,inl}:
+ Doxygen fix and moved check_validity to the cpp file and removed
+ the inline file
+
+ * tao/ClientRequestInterceptor.pidl:
+ * tao/ClientRequestInterceptorA.cpp:
+ * tao/ClientRequestInterceptorC.{h,cpp}:
+ * tao/ClientRequestInterceptorS.h:
+ Moved to the PI library
+
+ * tao/ClientRequestInterceptor_Adapter.{h,cpp,inl}:
+ Made this a base class, real functionality is in the PI lib.
+ Remove the .inl file
+
+ * tao/ClientRequestInterceptor_Adapter_Factory.h:
+ New factory base for creating a ClientRequestInterceptor_Adapter
+
+ * tao/Interceptor.pidl:
+ * tao/InterceptorA.cpp:
+ * tao/InterceptorC.{h,cpp}:
+ * tao/InterceptorS.h:
+ * tao/Interceptor_List.{cpp,h}:
+ Moved to the PI lib
+
+ * tao/Invocation_Base.{h,cpp,inl}:
+ Store the PI stack size in the invocation base and handle that
+ the ClientRequestInterceptor pointer can be 0.
+
+ * tao/IORInterceptor_Adapter.h:
+ Removed several not needed forward declarations
+
+ * tao/ORB_Core.{h,cpp,i}:
+ Added methods to get the Client/Server Request interceptor adapters.
+ Added the moment an interceptor is registered an adapter will be
+ created on demand. Later on we just retrieve the pointer
+
+ * tao/PortableInterceptor.pidl:
+ * tao/PortableInterceptorC.h:
+ Updated for the moved files
+
+ * tao/RTScheduler.mpc:
+ Needs PI_Server
+
+ * tao/ServerRequestInterceptor.pidl:
+ * tao/ServerRequestInterceptorA.cpp:
+ * tao/ServerRequestInterceptorC.{h,cpp}:
+ * tao/ServerRequestInterceptorS.h:
+ Moved to the PI_Server library
+
+ * tao/ServerRequestInterceptor_Adapter.{h,cpp}:
+ New adapter
+
+ * tao/ServerRequestInterceptor_Adapter_Factory.h:
+ New factory
+
+ * tao/tao.mpc:
+ Updated for all moved files.
+
+ * tao/IORInterceptor/IORInterceptor.pidl
+ * tao/IORInterceptor/IORInterceptorC.h
+ * tao/IORInterceptor/IORInterceptor_Adapter_Impl.{h,cpp}:
+ Updated for Interceptor_List changes
+
+ * tao/Messaging/Asynch_Reply_Dispatcher.cpp:
+ Improved debug statement
+
+ * tao/PI/ClientRequestInterceptor.pidl:
+ * tao/PI/ClientRequestInterceptorA.cpp:
+ * tao/PI/ClientRequestInterceptorC.{h,cpp}:
+ * tao/PI/ClientRequestInterceptorS.h:
+ Moved from TAO lib
+
+ * tao/PI/ClientRequestInterceptor_Adapter_Impl.{h,cpp,inl}:
+ Implemented ClientRequestInterceptor Adapter which calls the
+ interceptors
+ * tao/PI/ClientRequestInterceptor_Factory_Impl.{h,cpp}:
+ Implemented factory interface.
+
+ * tao/PI/Interceptor.pidl:
+ * tao/PI/InterceptorA.cpp:
+ * tao/PI/InterceptorC.{h,cpp}:
+ * tao/PI/InterceptorS.h:
+ Moved from TAO lib
+
+ * tao/PI/Interceptor_List_T.{h,cpp}:
+ Moved from TAO lib and updated interfaces to not expose any
+ internal knowledge
+
+ * tao/PI/PI.{h,cpp}:
+ Add some process directives
+
+ * tao/PI/diff/ORBInitializer.diff
+ New diff
+
+ * tao/PI_Server/PI_Server.{h,cpp}:
+ Add some process directives
+
+ * tao/PI_Server/PS_CurrentA.cpp
+ * tao/PI_Server/PS_CurrentC.{h,cpp}:
+ Regenerated
+
+ * tao/PI_Server/ServerInterceptorAdapter.{h,cpp}:
+ From portableserver library, adapter that invokes server
+ request interceptors
+
+ * tao/PI_Server/ServerRequestInterceptor.pidl
+ * tao/PI_Server/ServerRequestInterceptorA.cpp
+ * tao/PI_Server/ServerRequestInterceptorC.cpp
+ * tao/PI_Server/ServerRequestInterceptorC.h
+ * tao/PI_Server/ServerRequestInterceptorS.h
+ Moved from TAO lib
+
+ * tao/PI_Server/ServerRequestInterceptor_Factory_Impl.{h,cpp}:
+ New factory to create an instance of the adapter
+
+ * tao/PortableServer/Object_Adapter.cpp:
+ * tao/PortableServer/Upcall_Wrapper.cpp:
+ Be aware the Server Request Interceptor adapter is a pointer and
+ can be zero
+
+ * tao/PortableServer/ServerInterceptorAdapter.{h,cpp,inl}:
+ Removed, moved to the PI_Server lib
+
+ * tao/PortableServer/ServerRequestInfo.{h,inl}:
+ Export this classes, need it from the PI_Server lib
+
+ * tao/RTCORBA/RTCORBAA.cpp
+ * tao/RTCORBA/RTCORBAC.h
+ Regenerated
+
+ * tao/RTScheduling/RTScheduler.pidl
+ * tao/RTScheduling/RTSchedulerA.cpp
+ * tao/RTScheduling/RTSchedulerC.h
+ * tao/RTScheduling/Request_Interceptor.h
+ Updated for PI changes
+
+ * tests/Bug_1495_Regression/interceptors.cpp
+ * tests/Bug_1495_Regression/interceptors.h
+ * tests/Portable_Interceptors/Benchmark/interceptors.cpp
+ * tests/Portable_Interceptors/Benchmark/interceptors.h
+ * tests/Portable_Interceptors/Dynamic/interceptors.cpp
+ * tests/Portable_Interceptors/Dynamic/interceptors.h
+ * tests/Portable_Interceptors/Service_Context_Manipulation/interceptors.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/interceptors.h
+ * tests/Portable_Interceptors/Bug_1559/interceptors.cpp
+ * tests/Portable_Interceptors/Bug_1559/interceptors.h
+ Removed these files, replaced by seperate client/server files below
+
+ * tests/Bug_1495_Regression/client_interceptor.cpp
+ * tests/Bug_1495_Regression/client_interceptor.h
+ * tests/Bug_1495_Regression/server_interceptor.cpp
+ * tests/Bug_1495_Regression/server_interceptor.h
+ * tests/Portable_Interceptors/Benchmark/client_interceptors.cpp
+ * tests/Portable_Interceptors/Benchmark/client_interceptors.h
+ * tests/Portable_Interceptors/Benchmark/server_interceptors.cpp
+ * tests/Portable_Interceptors/Benchmark/server_interceptors.h
+ * tests/Portable_Interceptors/Bug_1559/client_interceptor.cpp
+ * tests/Portable_Interceptors/Bug_1559/client_interceptor.h
+ * tests/Portable_Interceptors/Bug_1559/server_interceptor.cpp
+ * tests/Portable_Interceptors/Bug_1559/server_interceptor.h
+ * tests/Portable_Interceptors/Dynamic/client_interceptor.cpp
+ * tests/Portable_Interceptors/Dynamic/client_interceptor.h
+ * tests/Portable_Interceptors/Dynamic/server_interceptor.cpp
+ * tests/Portable_Interceptors/Dynamic/server_interceptor.h
+ * tests/Portable_Interceptors/Service_Context_Manipulation/client_interceptor.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/client_interceptor.h
+ * tests/Portable_Interceptors/Service_Context_Manipulation/server_interceptor.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/server_interceptor.h
+ New files
+
+ * tests/Bug_1495_Regression/Bug_1495.mpc
+ * tests/Bug_1495_Regression/Server_ORBInitializer.cpp
+ * tests/Bug_1495_Regression/Server_ORBInitializer.h
+ * tests/Bug_1495_Regression/Threaded_Server.cpp
+ * tests/Portable_Interceptors/AMI/Client_Interceptor.h
+ * tests/Portable_Interceptors/AMI/PI_AMI.mpc
+ * tests/Portable_Interceptors/AMI/Server_Interceptor.h
+ * tests/Portable_Interceptors/Benchmark/Client_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc
+ * tests/Portable_Interceptors/Benchmark/Server_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Benchmark/client.cpp
+ * tests/Portable_Interceptors/Benchmark/server.cpp
+ * tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc
+ * tests/Portable_Interceptors/Bug_1559/Client_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Bug_1559/Server_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Bug_1559/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/Bug_1559/client.cpp
+ * tests/Portable_Interceptors/Bug_1559/server.cpp
+ * tests/Portable_Interceptors/Bug_2088/Bug_2088.mpc
+ * tests/Portable_Interceptors/Collocated/Dynamic/PI_Dynamic.mpc
+ * tests/Portable_Interceptors/Collocated/Dynamic/interceptors.h
+ * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
+ * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/interceptors.h
+ * tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc
+ * tests/Portable_Interceptors/Dynamic/client.cpp
+ * tests/Portable_Interceptors/Dynamic/server.cpp
+ * tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h
+ * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc
+ * tests/Portable_Interceptors/ForwardRequest/Server_Request_Interceptor.h
+ * tests/Portable_Interceptors/ForwardRequest/test.idl
+ * tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc
+ * tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc
+ * tests/Portable_Interceptors/ORB_Shutdown/Server_Request_Interceptor.h
+ * tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h
+ * tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h
+ * tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc
+ * tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/Client_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
+ * tests/Portable_Interceptors/Service_Context_Manipulation/Server_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp
+ * tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp
+ * tests/RTCORBA/Client_Propagated/interceptors.h
+ * orbsvcs/examples/FaultTolerance/RolyPoly/ReplicaController.h
+ * orbsvcs/examples/FaultTolerance/RolyPoly/RolyPoly.mpc
+ * orbsvcs/examples/LoadBalancing/LoadBalancing.mpc
+ * orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
+ * orbsvcs/orbsvcs/CosLoadBalancing.mpc
+ * orbsvcs/orbsvcs/FTORB.mpc
+ * orbsvcs/orbsvcs/FaultTolerance.mpc
+ * orbsvcs/orbsvcs/FtRtEvent.mpc
+ * orbsvcs/orbsvcs/Security.mpc
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h
+ * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h
+ * orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h
+ * orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/LoadBalancing.mpc
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
+ * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/GroupRef_Manipulation.mpc
+ * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl
+ Update for PI change
+
+Fri Jul 1 000:27:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/ast/ast_exception.cpp:
+ * TAO_IDL/ast/ast_sequence.cpp:
+ * TAO_IDL/ast/ast_structure.cpp:
+ * TAO_IDL/ast/ast_union.cpp:
+ * TAO_IDL/be/be_codegen.cpp:
+ * TAO_IDL/be/be_valuetype.cpp:
+ * TAO_IDL/be/be_visitor_structure/structure_ch.cpp:
+ * TAO_IDL/be/be_visitor_union/union_ch.cpp:
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp:
+
+ Moved evaluation of the in_recursion_ member of structs unions
+ and valuetypes to happen soon enough to make the generation of
+ the file include of Recursive_Type_TypeCode.h conditional on
+ whether a recursive type has been seen or not. Thanks to
+ Ossama Othman <ossama@dre.vanderbilt.edu> for suggesting
+ the conditional include.
+
+Thu Jun 30 18:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1551_Regression/client.cpp:
+ When we get a timeout on the client threads output an error but
+ first nicely destroy the POA and ORB before shutting down
+
+Thu Jun 30 10:21:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (get_current_size, get_n_records,
+ flush):
+
+ Changed argument list to use ACE_ENV_SINGLE_ARG_DECL_NOT_USED
+ instead of ACE_ENV_SINGLE_ARG_DECL, since these methods do not
+ throw exceptions.
+
+Thu Jun 30 09:50:46 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/IIOP_Profile.cpp:
+ * tao/IIOP_Profile.h:
+ * tao/Profile.cpp:
+ * tao/Profile.h:
+ * tao/PortableServer/Default_Acceptor_Filter.cpp:
+ This restores the behavior of IIOP_Profile::encode_endpoints so
+ that it always creates only TAO_TAG_ENDPOINT component.
+ Initially, the new TAG_ALTERNATE_IIOP_ADDRESS support was added
+ to this method, with an internal test if the endpoint priority
+ was TAO_INVALID_PRIORITY or not. If it was not, both kinds of
+ tagged components were created, if the priority was invalid,
+ only the new tagged component was created. But this causes
+ trouble for RT_CORBA with multiple nics. It also generates
+ redundant components.
+
+ A new method, encode_alternate_endpoints is added to support the
+ generation of combined endpoints in non-RT ORBs. This new method
+ is called from Default_Acceptor_Filter.cpp. The base TAO_Profile
+ supplies a null implementation of encode_alternate_endpoints so
+ that existing, non-IIOP profiles don't have to be altered.
+
+ * tao/params.cpp:
+ To address the issue raised by bugzilla #2173, I've set the
+ default for using shared profiles (non-RT) to 0. This avoids a
+ side-effect of making shared profiles with endpoints that do not
+ have a priority set in an RT environment.
+
+ * tests/AlternateIIOP/run_test.pl:
+ Add an explicit -ORBUseSharedProfile 1 to the server.
+
+Thu Jun 30 09:29:56 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Valuetype/StringValueC.inl
+
+ Latest attempt at getting rid of warning from gcc compiler
+
+Thu Jun 30 14:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTScheduling/RTSchedulerC.cpp:
+ Regenerated with the latest version of the idl compiler
+
+Thu Jun 30 13:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
+ Added missing .in()
+
+Thu Jun 30 13:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/IORInterceptor/IORInfoC.cpp:
+ * tao/IORInterceptor/IORInterceptorC.cpp:
+ * tao/RTCORBA/RTCORBAC.cpp:
+ Regenerated with the latest version of the idl compiler
+
+Thu Jun 30 12:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Any/Recursive/client.cpp:
+ Added include of TypeCodeFactory_Loader.h so that the
+ TypeCodeFactory is loaded. Fixes crashing of the test on
+ windows
+
+Thu Jun 30 11:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * utils/catior/catior.cpp:
+ Fixed retrieval and printing of port number in
+ cat_tag_alternate_endpoints.
+
+Wed Jun 29 20:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Naming/Naming_Client.h:
+ Added include of naming_client.h
+
+Wed Jun 29 20:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/IOR_Parser.h:
+ Emulated exception macro fix
+
+Wed Jun 29 12:02:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Invocation_Base.cpp:
+
+ Moved "PortableInterceptor.h" include directive out of
+ TAO_HAS_INTERCEPTORS preprocessor block. It should always be
+ visible. Fixes errors in builds with interceptors disabled.
+
+Wed Jun 29 18:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * utils/catior/catior.cpp:
+ Added an extra identation for priority and priority model so that it
+ is clear they belong to a certain priority and added
+ PRIORITY_BANDED_CONNECTION_POLICY_TYPE as one of the types we
+ recognize.
+
+Wed Jun 29 10:13:54 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
+
+ Change type of orb_ member variable from _ptr to _var.
+
+Wed Jun 29 10:00:31 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO/tao/Valuetype/StringValueC.inl
+
+ Change to avoid compiler warnings from some compilers.
+
+Wed Jun 29 07:22:38 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * TAO_IDL/Makefile.am:
+ * orbsvcs/FT_ReplicationManager/Makefile.am:
+ * orbsvcs/ImplRepo_Service/Makefile.am:
+
+ Regenerated.
+
+ * TAO_IDL/tao_idl.mpc:
+ * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.mpc:
+ * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc:
+
+ Changed so-called "convenience libraries" projects to inherit
+ from conv_lib.mpb.
+
+Tue Jun 28 22:21:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Invocation_Base.inl (reply_received):
+ * tao/Invocation_Base.cpp (reply_received):
+
+ Moved this method out-of-line. It calls a method on its
+ TAO_ClientRequestInfo field. Inlining this method exposes the
+ unexported TAO_ClientRequestInfo class to code outside of the
+ TAO shared library, which results in "unresolved_symbol"
+ link-time errors when attempting to call
+ Invocation_Base::reply_received() directly or indirectly
+ (e.g. via TAO::Reply_Guard::~Reply_Guard()). Fixes g++ 4.0
+ link-time errors.
+
+ * tao/Synch_Invocation.h (Reply_Guard):
+
+ Improved const-correctness by making an immutable pointer member
+ "const".
+
+Tue Jun 28 20:52:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/Concurrency_Service/Makefile.am:
+ * orbsvcs/CosEvent_Service/Makefile.am:
+ * orbsvcs/Dump_Schedule/Makefile.am:
+ * orbsvcs/Event_Service/Makefile.am:
+ * orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am:
+ * orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am:
+ * orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am:
+ * orbsvcs/FT_ReplicationManager/Makefile.am:
+ * orbsvcs/Fault_Detector/Makefile.am:
+ * orbsvcs/Fault_Notifier/Makefile.am:
+ * orbsvcs/IFR_Service/Makefile.am:
+ * orbsvcs/ImplRepo_Service/Makefile.am:
+ * orbsvcs/LifeCycle_Service/Makefile.am:
+ * orbsvcs/LoadBalancer/Makefile.am:
+ * orbsvcs/Naming_Service/Makefile.am:
+ * orbsvcs/Notify_Service/Makefile.am:
+ * orbsvcs/Scheduling_Service/Makefile.am:
+ * orbsvcs/TAO_Service/Makefile.am:
+ * orbsvcs/Time_Service/Makefile.am:
+ * orbsvcs/Trading_Service/Makefile.am:
+
+ Regenerated.
+
+Tue Jun 28 19:51:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * TAO_IDL/Makefile.am:
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Makefile.am:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Makefile.am:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Makefile.am:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am:
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerated.
+
+ * orbsvcs/orbsvcs/CosNaming.mpc:
+ * orbsvcs/orbsvcs/CosNotification.mpc:
+ * orbsvcs/orbsvcs/CosTrading.mpc:
+ * orbsvcs/orbsvcs/DsEventLogAdmin.mpc:
+ * orbsvcs/orbsvcs/DsLogAdmin.mpc:
+ * orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc:
+
+ Added a *_IDL project, currently only for automake builds, that
+ only compiles the *.idl files. This ensures that all generated
+ files will be included in the lists of sources, headers,
+ inlines, templates, etc. instead of only those used in the stub
+ libraries. Other build types continue to compile *.idl files as
+ part of the stub library projects. When this is prefected, most
+ build methods can use the automake build mechanism.
+
+ * orbsvcs/orbsvcs/CosProperty.mpc:
+
+ Added missing *.h, *.inl, and *S_T.* files to Header_Files,
+ Inline_Files, and Template_Files so that they're installed.
+
+ * orbsvcs/orbsvcs/SSLIOP.mpc:
+
+ Added explicit Header_Files and Inline_Files sections so all
+ files are installed.
+
+Tue Jun 28 16:11:50 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
+
+ Backing out namespace code generation change of Mon Jun 27
+ for now due to problems getting it to work across multiple
+ compilers.
+
+Tue Jun 28 13:31:01 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO/tao/Valuetype/StringValueC.cpp
+ Change to allow operation in non-exception environments
+
+Tue Jun 28 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Dynamic_ParameterC.h:
+ Remove generated include of TypeCode.h. This seems to cause problems
+ in some builds.
+
+Tue Jun 28 07:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Object.cpp (_get_orb):
+ Return the orb related to the TAO_Stub, the orb_core_ member
+ could sometimes be zero. Thanks to Bala for giving feedback
+ on this.
+
+Mon Jun 27 14:54:53 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Mon Jun 27 13:54:27 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_util.cpp
+ * TAO_IDL/be_include/be_util.h
+ * TAO_IDL/be/be_visitor_interface.cpp
+ * TAO_IDL/be/be_visitor_interface_fwd.cpp
+ * TAO_IDL/be/be_visitor_valuebox.cpp
+ * TAO_IDL/be/be_visitor_valuetype.cpp
+ * TAO_IDL/be/be_visitor_valuetype_fwd.cpp
+ * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
+
+ When generating Any insertion and extraction operators put them
+ in a namespace that corresponds to their enclosing module (if
+ any). Addresses problem reported in Bugzilla report #2071.
+
+Mon Jun 27 13:08:01 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Valuetype/ValueBase.cpp:
+ Added missing copy constructor implementation
+
+ * TAO/tao/Valuetype/StringValueC.inl
+ Change to avoid warnings by some compilers
+
+Mon Jun 27 12:19:01 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp
+ (TAO): Changed the comment to "Using default value of 1.5
+ seconds". Thanks to Simon Massey and Bala for resolving this.
+
+Mon Jun 27 11:09:34 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tests/Exposed_Policies/Policy_Verifier.h:
+ * tests/Exposed_Policies/Policy_Verifier.cpp:
+ * tests/Exposed_Policies/client.cpp:
+
+ Modified this test to not run if the initialization failed. This
+ avoids a core dump.
+
+ * tests/Exposed_Policies/run_test.pl:
+
+ Remove the ior files before running the server and cut the wait
+ times in half.
+
+Mon Jun 27 09:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/RTCosScheduling.mpc:
+ Added requires dummy_label. The RTCosScheduling library uses
+ a non compliant way to register its interceptors. This is
+ causing problems with the PI refactory so disable the building
+ of this lib until that has been fixed. See also bugzilla 2163.
+
+Mon Jun 27 09:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO_IDL/be_include/be_visitor_operation/ami_cs.h:
+ * TAO_IDL/be/be_visitor_operation/ami_cs.cpp:
+ Removed gen_marshal_and_invoke method. It wasn't used and contained
+ a lot of generation of old code that we don't use anymore
+
+Mon Jun 27 09:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Policy_Validator.h:
+ Fixed small typo in comment
+
+Mon Jun 27 08:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Valuetype/ValueBase.cpp:
+ Fixed implicit conversion warning and use ACE_OS::strcmp instead of
+ strcmp directly
+
+Mon Jun 27 07:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO/tao/*C.{h,cpp,inl}:
+ * TAO/tao/*A.cpp:
+ * TAO/tao/PortableServer/*C.{h,cpp,inl}:
+ * TAO/tao/PortableServer/*A.cpp:
+ * TAO/tao/Messaging/*C.{h,cpp,inl}:
+ * TAO/tao/Messaging*A.cpp:
+ Regenerated
+
+Sat Jun 25 06:39:03 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO/tao/Valuetype/StringValueC.inl
+ Change to avoid warnings by some compilers
+
+Sat Jun 25 06:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/AdapterActivatorC.cpp:
+ * tao/PortableServer/ForwardRequestC.cpp:
+ * tao/PortableServer/IdAssignmentPolicyC.cpp:
+ Regenerated to see what the footprint results are from the latest idl
+ compiler change
+
+Fri Jun 24 23:11:45 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Messaging/TAO_Messaging.pc.in:
+ * tao/RTPortableServer/TAO_RTPortableServer.pc.in:
+
+ Update with current list of dependencies based on values from
+ MPC base project files.
+
+ * tao/PI_Server.mpc:
+
+ Added Pkgconfig_Files definition.
+
+ * tao/PI_Server/TAO_PI_Server.pc.in:
+
+ New file, pkg-config *.pc template for TAO_PI_Server library.
+
+Fri Jun 24 22:50:07 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * TAO_IDL/Makefile.am:
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Fri Jun 24 13:15:03 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_codegen.cpp
+ Generated additional include files in stub header for Value Box
+
+ * TAO/tao/Valuetype/StringValue.pidl
+ * TAO/tao/Valuetype/StringValueC.cpp
+ * TAO/tao/Valuetype/StringValueC.h
+ * TAO/tao/Valuetype/StringValueC.inl
+ Standard OMG Value Box Definitions
+
+Fri Jun 24 19:42:03 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_interface/interface_cs.cpp:
+
+ For local interfaces, changed generated code for _narrow()
+ and _unchecked_narrow() methods. For local interfaces, all
+ that needs to be done is return a duplicate of a
+ dynamic_cast<>, for both methods. Thanks to Johnny Willemsen
+ <jwillemsen@remedy.nl> for pointing out the opportunity to
+ shrink generated code, and to Ossama Othman
+ <ossama@dre.vanderbilt.edu> for an informative discussion on
+ the possible benefits of inlining these methods.
+
+Fri Jun 24 13:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ClientRequestInfo.{cpp,inl}:
+ Moved a few methods out of the inline file to the cpp file
+
+Fri Jun 24 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/TAO_Server_Request.h:
+ Corrected ifdef guards in this file to match the real filename
+
+ * tao/Dynamic_Adapter.h:
+ Removed forward declaration of TAO_GIOP_Twoway_Invocation
+
+ * tao/DynamicInterface/DII_Invocation.{h,cpp,inl}:
+ The inl file has some constructors that are ifdef'd with #if 0.
+ These used a base class that is not there, so zapped them and
+ because the inl file is now empty, removed that from the archive
+
+Fri Jun 24 06:56:11 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
+
+ Avoid ambiguity error from Visual C++ 6.0.
+
+Fri Jun 24 11:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ClientRequestInfo.{h,cpp,inl}:
+ * tao/ClientRequestInfo_i.{h,cpp,inl}:
+ Moved the implementation from ClientRequestInfo_i to
+ ClientRequestInfo. The ClientRequestInfo was split into
+ two parts, this is causing problems with the PI refactoring
+ and after checking with Ossama we decided to merge these
+ two again. This maybe has a small performance impact
+ at the moment no interceptors are registered but that
+ will be resolved soon with the PI refactoring itself.
+
+ * tao/ClientRequestInterceptor_Adapter.{h,cpp}:
+ Updated to use TAO_ClientRequestInfo
+
+ * tao/Invocation_Base.{h,cpp}:
+ Updated to use TAO_ClientRequestInfo
+
+ * tao/ORB_Core_TSS_Resources.{h,cpp}:
+ No need anymore to store TAO_ClientRequestInfo in TSS.
+ This decouples the ClientRequestInfo from the ORB TSS which was the
+ main reason to do this.
+
+ * tao/tao.mpc:
+ Removed the ClientRequestInfo_i.{h,cpp,inl} files
+
+Fri Jun 24 10:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/AMI/client.cpp:
+ Added some more checks to see if things are gone fine.
+
+Fri Jun 24 09:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ClientRequestInfo_i.{h,cpp}:
+ No need to have virtual methods, this is not a base and removed
+ the destructor using an Abstract base, it is not used
+
+Fri Jun 24 08:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h
+ * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h
+ * tao/ClientRequestInfo.cpp
+ * tao/ClientRequestInfo.h
+ * tao/ClientRequestInfo_i.cpp
+ * tao/ClientRequestInfo_i.h
+ * tao/ClientRequestInfo_i.inl
+ * tao/Codeset_Manager.h
+ * tao/Protocols_Hooks.h
+ * tao/Stub.h
+ * tao/PortableServer/ServerRequestInfo.cpp
+ * tao/RTCORBA/RT_Endpoint_Utils.h
+ Removed TAO_GIOP_Invocation forward declaration and remarks
+ about this. This class doesn't exist anymore already for a long
+ time
+
+Fri Jun 24 07:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Leader_Follower.h:
+ Added missing include for single threaded builds
+
+Thu Jun 23 11:02:11 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Locator_i.h:
+ * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
+
+ Use an IORTable::Locator_var instead of an INS_Locator to avoid a
+ deletion of a stack variable.
+
+Thu Jun 23 08:21:29 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp (handle_timeout):
+ * orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp (handle_timeout):
+
+ Catch and squelch any exceptions that might be thrown. Also
+ fixes emulated exception builds. Thanks to Simon Massey for
+ pointing out this issue.
+
+Thu Jun 23 14:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/operation_details.{h,cpp}:
+ The exception_list method should only be build when interceptors
+ are enabled
+
+Thu Jun 23 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.{h,cpp}:
+ * tao/ORB_Core_TSS_Resources.{h,cpp}:
+ Moved ORB_Core_TSS_Resources back to its own file. Problem was
+ easier then on first sight, orbconf.h was not includes so the
+ TSS file was build without interceptor support
+
+Thu Jun 23 12:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.{h,cpp}:
+ * tao/ORB_Core_TSS_Resources.{h,cpp}:
+ Moved ORB_Core_TSS_Resources to the ORB_Core file again. The
+ PI tests now break and I have not an idea why but moving it
+ back fixes it now. Will sort this out soon.
+
+Thu Jun 23 09:52:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
+
+ * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp:
+ * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp:
+
+ Replaced ACE_UNUSED_ARG() with native C++ unnamed parameters
+ in responce to Ossama's request that the macro is only used
+ in places where normal practices are not available.
+
+ * orbsvcs/IFR_Service/ifr_adding_visitor.cpp:
+
+ Removed unused arg.
+
+Wed Jun 22 18:49:03 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * tao/ORB_Core.h:
+
+ Added include of ORB_Core_TSS_Resources.h, so when the
+ ACE_TSS_TYPE tss_resources_ member is declared, there
+ will be knowledge of a default constructor.
+
+Wed Jun 22 11:34:12 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/fe/y.tab.cpp
+ * TAO_IDL/fe/idl.yy
+
+ Added valuebox support
+
+Wed Jun 22 08:23:16 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp (handle_timeout):
+
+ Catch and squelch any exceptions that might be thrown by
+ destroy(). Thanks to Don Sharp for pointing out this
+ issue.
+
+ * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h:
+ * orbsvcs/orbsvcs/Log/Log_Flush_Handler.h:
+
+ #include "ace/Time_Value.h", needed by no-inline builds. Thanks
+ to Simon Massey for pointing out this issue.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (set_records_attribute):
+
+ Changed method to process any excess records returned by the
+ query iterator.
+
+ * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/EventLog_i.h:
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
+ * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
+
+ Removed write_recordlist() method, as it just called
+ write_recordlist() on the base class.
+
+Wed Jun 22 14:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.{h,cpp,i}:
+ * tao/ORB_Core_TSS_Resources.{h,cpp}:
+ Moved TAO_ORB_Core_TSS_Resources to its own file. Makes it much easier
+ to just see where things are used.
+
+ * tao/tao.mpc:
+ Added new files
+
+ * tao/Leader_Follower.{h,cpp,i}:
+ * tao/Leader_Follower_Flushing_Strategy.cpp:
+ * tao/LF_Connect_Strategy.cpp:
+ * tao/LF_Event.cpp LF_Strategy_Complete.cpp:
+ * tao/ORB.cpp:
+ * tao/PICurrent.cpp:
+ * tao/Thread_Lane_Resources.cpp:
+ * tao/Transport.cpp:
+ * tao/Wait_On_Leader_Follower.cpp:
+ * tao/Wait_On_LF_No_Upcall.cpp:
+ * tao/ClientRequestInterceptor_Adapter.cpp:
+ * tao/RTCORBA/Thread_Pool.cpp:
+ * tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp:
+ * tao/RTPortableServer/RT_Collocation_Resolver.cpp:
+ * tao/RTPortableServer/RT_Servant_Dispatcher.cpp:
+ Added missing includes now we get less for free from ORB_Core
+
+Wed Jun 22 12:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ClientRequestInfo_i.{h,cpp,inl}:
+ Removed reply_status and response_expected methods, they had a
+ comment that they need to go and they are not used in the TAO
+ libs so it is now time to zap them
+
+Wed Jun 22 12:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp:
+ Added checks in the destroy that start and end interception
+ point calls must not be zero. If they are zero there is a bug
+ in TAO
+
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp:
+ * tests/Portable_Interceptors/PICurrent/client.cpp:
+ Explicitly destroy the ORB. When this is not done explicitly the
+ destroy operation of the registered interceptors is not called and
+ then our checks are not triggered in the destoy operation of the
+ registered interceptors
+
+Wed Jun 22 10:27:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
+
+ * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp:
+ * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp:
+
+ Added ACE_UNUSED_ARG() to the above files.
+
+Tue Jun 21 17:50:26 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Interceptor_List.cpp:
+
+ Include "tao/debug.h" to pull in TAO_debug_level global variable
+ declaration.
+
+Tue Jun 21 14:41:01 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp:
+ * TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp:
+
+ Add missing "int" return type to method definitions.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+ * orbsvcs/orbsvcs/Log/Log_i.h:
+
+ Added flush and compaction handlers to class. The flush handler
+ is scheduled when the QoS is set to QoSFlush. The compaction
+ handler is scheduled when the max record life is set.
+
+ Removed explicit calls to remove_old_records(), that is now done
+ via the compaction handler.
+
+ * orbvcs/orbsvcs/DsLogAdmin.mpc:
+
+ Added Log_Flush_Handler.cpp and Log_Compaction_Handler.cpp to
+ the DsLogAdmin_Serv project's list of Source Files.
+
+ * orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp:
+ * orbsvcs/orbsvcs/Log/Log_Flush_Handler.h:
+
+ New files. Added TAO_Log_Flush_Handler class that manages an
+ interval timer that calls flush() on the log when it fires. The
+ interval is currently set to 300 seconds. This should probably
+ be a parameter that is specified when the service is started.
+
+ * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp:
+ * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h:
+
+ New files. Added TAO_Log_Compaction_Handler class that manages
+ an interval timer that calls remove_old_records() on the log
+ when it fires. The interval is currently set to 60 seconds.
+ This should probably be a parameter that is specified when the
+ service is started.
+
+Tue Jun 21 14:27:12 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Valuetype/ValueBase.h
+ * tao/Valuetype/ValueBase.cpp
+ Added support method for valuebox demarshalling.
+
+Tue Jun 21 13:38:23 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * tao/Valuetype/Value_VarOut_T.cpp
+ Added missing add_ref in TAO_Value_Var_T assignment operator
+
+Tue Jun 21 13:35:00 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be_include/be_visitor_arg_traits.h
+ * TAO_IDL/be_include/be_visitor_argument/arglist.h
+ * TAO_IDL/be_include/be_visitor_argument/invoke_cs.h
+ * TAO_IDL/be_include/be_visitor_argument/marshal_ss.h
+ * TAO_IDL/be_include/be_visitor_argument/upcall_ss.h
+ * TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h
+ * TAO_IDL/be_include/be_visitor_array/array.h
+ * TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h
+ * TAO_IDL/be_include/be_visitor_exception/ctor.h
+ * TAO_IDL/be_include/be_visitor_exception/ctor_assign.h
+ * TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h
+ * TAO_IDL/be_include/be_visitor_field/field_ch.h
+ * TAO_IDL/be_include/be_visitor_operation/rettype.h
+ * TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h
+ * TAO_IDL/be_include/be_visitor_sequence/buffer_type.h
+ * TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h
+ * TAO_IDL/be_include/be_visitor_sequence/sequence_base.h
+ * TAO_IDL/be_include/be_visitor_tmplinst/arg_tmplinst.h
+ * TAO_IDL/be_include/be_visitor_tmplinst/tmplinst_cs.h
+ * TAO_IDL/be_include/be_visitor_tmplinst/tmplinst_ss.h
+ * TAO_IDL/be_include/be_visitor_typecode/alias_typecode.h
+ * TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h
+ * TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h
+ * TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h
+ * TAO_IDL/be_include/be_visitor_union_branch/private_ch.h
+ * TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h
+ * TAO_IDL/be_include/be_visitor_union_branch/public_ch.h
+ * TAO_IDL/be_include/be_visitor_union_branch/public_ci.h
+ * TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h
+ * TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h
+ * TAO_IDL/be_include/be_visitor_valuetype/field_ch.h
+ * TAO_IDL/be_include/be_visitor_valuetype/field_cs.h
+ * TAO_IDL/be/be_sequence.cpp
+ * TAO_IDL/be/be_visitor_arg_traits.cpp
+ * TAO_IDL/be/be_visitor_argument.cpp
+ * TAO_IDL/be/be_visitor_argument/arglist.cpp
+ * TAO_IDL/be/be_visitor_argument/invoke_cs.cpp
+ * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp
+ * TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
+ * TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp
+ * TAO_IDL/be/be_visitor_array.cpp
+ * TAO_IDL/be/be_visitor_array/array.cpp
+ * TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
+ * TAO_IDL/be/be_visitor_exception.cpp
+ * TAO_IDL/be/be_visitor_exception/ctor_assign.cpp
+ * TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
+ * TAO_IDL/be/be_visitor_field.cpp
+ * TAO_IDL/be/be_visitor_field/field_ch.cpp
+ * TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp
+ * TAO_IDL/be/be_visitor_operation.cpp
+ * TAO_IDL/be/be_visitor_operation/rettype.cpp
+ * TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp
+ * TAO_IDL/be/be_visitor_sequence.cpp
+ * TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
+ * TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp
+ * TAO_IDL/be/be_visitor_sequence/sequence_base.cpp
+ * TAO_IDL/be/be_visitor_tmplinst.cpp
+ * TAO_IDL/be/be_visitor_tmplinst/arg_tmplinst.cpp
+ * TAO_IDL/be/be_visitor_tmplinst/tmplinst_cs.cpp
+ * TAO_IDL/be/be_visitor_tmplinst/tmplinst_ss.cpp
+ * TAO_IDL/be/be_visitor_typecode.cpp
+ * TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp
+ * TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp
+ * TAO_IDL/be/be_visitor_typedef.cpp
+ * TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp
+ * TAO_IDL/be/be_visitor_union_branch.cpp
+ * TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
+ * TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
+ * TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
+ * TAO_IDL/be/be_visitor_union_branch/public_ch.cpp
+ * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
+ * TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype.cpp
+ * TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
+ * TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
+ * TAO_IDL/be/be_visitor_valuetype/field_cs.cpp
+
+ Changes and additions to IDL compiler back-end for
+ valuebox support.
+
+Tue Jun 21 16:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/releasenotes/rtc10_sched.html:
+ Removed remark about generated include of PortableServerS.h,
+ that is not valid anymore.
+
+Tue Jun 21 08:06:00 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
+ * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
+ Minor changes to deal with warnings on some compilers.
+
+Tue Jun 21 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/RTScheduling/Current/Thread_Task.cpp:
+ Layout fixes
+
+Tue Jun 21 11:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.h:
+ Added a todo for client_request_interceptors and
+ server_request_interceptors methods that these should be removed
+ when RTCosScheduling doesn't use them anymore
+
+Tue Jun 21 10:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Interceptor_List.{h,cpp}:
+ Added destroy_interceptors method that goes through the list of
+ interceptors and calls destroy on each interceptor
+
+ * tao/IORInterceptor_Adapter.h:
+ Removed empty throw spec from destroy_interceptors and removed the
+ interceptor_list method which returns the list build up, this is
+ internal data which the outside doesn't need to have.
+
+ * tao/ORB_Core.{h,cpp} (destroy_interceptors):
+ Use the new destoy_interceptors of the Interceptor_List template
+
+ * tao/IORInterceptor/IORInterceptor_Adapter_Impl.{h,cpp}:
+ Use the new destoy_interceptors of the Interceptor_List template
+ and removed interceptor_list method
+
+Tue Jun 21 08:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORBInitializer_Registry_Adapter.h:
+ Added export macro.
+
+Mon Jun 20 23:17:42 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
+
+ Fixed fuzz build errors related to missing ACE_ENV_ARG_PARAMETER
+ in call to resolve_initial_references().
+
+Mon Jun 20 21:49:02 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
+ * orbsvcs/orbsvcs/Log/Iterator_i.h:
+
+ Added iterator inactivity timer that causes the iterator to self
+ destruct after 1 hour of inactivity. This should probably be a
+ parameter that is specified when the service is started.
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
+ * orbsvcs/orbsvcs/Log/Iterator_i.h:
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+
+ Pass reactor to Iterator constructor.
+
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
+
+ Removed the debug messages that indicated the log service was
+ starting, and the name the ior was registered with the naming
+ service. TAO's other ORBservice implementations don't output
+ this sort of mundane information.
+
+Mon Jun 20 12:21:00 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/be_include/be_generator.h
+ * TAO_IDL/be_include/be_valuebox.h
+ * TAO_IDL/be_include/be_visitor.h
+ * TAO_IDL/be_include/be_visitor_valuebox.h
+ * TAO_IDL/be_include/be_visitor_module/module.h
+ * TAO_IDL/be_include/be_visitor_root/root.h
+ * TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h
+ * TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h
+ * TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h
+ * TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h
+ * TAO_IDL/be_include/be_visitor_valuebox/field_ch.h
+ * TAO_IDL/be_include/be_visitor_valuebox/field_ci.h
+ * TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h
+ * TAO_IDL/be_include/be_visitor_valuebox/valuebox.h
+ * TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h
+ * TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h
+ * TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h
+ * TAO_IDL/be/be_generator.cpp
+ * TAO_IDL/be/be_valuebox.cpp
+ * TAO_IDL/be/be_visitor.cpp
+ * TAO_IDL/be/be_visitor_root.cpp
+ * TAO_IDL/be/be_visitor_module.cpp
+ * TAO_IDL/be/be_visitor_valuebox.cpp
+ * TAO_IDL/be/be_visitor_module/module.cpp
+ * TAO_IDL/be/be_visitor_root/root.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
+ * TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
+ * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
+ * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
+ Changes and additions to IDL compiler back-end for
+ valuebox support.
+
+Mon Jun 20 09:18:00 2005 Gary Maxey <gary.maxey@hp.com>
+ * orbsvcs/IFR_Service/ifr_visitor.cpp
+ * orbsvcs/IFR_Service/ifr_visitor.h
+ * orbsvcs/IFR_Service/ifr_adding_visitor.cpp
+ * orbsvcs/IFR_Service/ifr_adding_visitor.h
+ Add visitors for valuebox support.
+
+Mon Jun 20 08:51:17 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
+
+ Added missing semi-colon; bug was hidden by use of emulated
+ exception macros.
+
+Mon Jun 20 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FtRtEvent.mpc:
+ Reverted change to add ami as base project and added -GC again to
+ one set of IDL files.
+
+ * orbsvcs/ImplRepo_Service/Forwarder.{h,cpp}:
+ * orbsvcs/examples/ORT/Gateway_i.h:
+ Corrected includes
+
+ * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc:
+ * orbsvcs/examples/ORT/ORT.mpc:
+ Added pi_server as base project
+
+Mon Jun 20 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/DynamicInterface/Dynamic_Implementation.cpp:
+ Fixed emulated exception errors related to the fact that
+ POA_Current_Impl doesn't use them anymore
+
+Mon Jun 20 11:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
+ Fixed emulated exception errors related to the fact that
+ POA_Current_Impl doesn't use them anymore
+
+Mon Jun 20 10:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI_Server.mpc:
+ New MPC file to build the new PI_Server library
+
+ * examples/POA/DSI/Database_i.h:
+ * examples/POA/Default_Servant/File_i.cpp:
+ * orbsvcs/ImplRepo_Service/Forwarder.cpp:
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp:
+ * orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp:
+ * orbsvcs/orbsvcs/IFRService/Repository_i.h:
+ * orbsvcs/tests/FtRtEvent/PushConsumer.cpp:
+ * orbsvcs/tests/FtRtEvent/PushSupplier.cpp:
+ * orbsvcs/tests/ImplRepo/scale/server_i.cpp:
+ * tests/Collocation_Opportunities/Collocation_Opportunities.cpp:
+ * tests/File_IO/File_i.cpp:
+ * tests/ORT/ServerRequestInterceptor.h:
+ * tests/POA/Current/Current.cpp:
+ * tests/POA/Persistent_ID/server.cpp:
+ * tests/POA/Policies/Policies.cpp:
+ Added include of tao/PI_Server/PI_Server.h because of the
+ pi_server refactoring. This is needed because these files
+ use functionality that is now in the pi_server lib
+
+ * tests/File_IO/File_IO.mpc:
+ * tests/ORT/ORT.mpc:
+ * tests/POA/Current/Current.mpc:
+ * tests/POA/Persistent_ID/Persistent_ID.mpc:
+ * tests/POA/Policies/Policies.mpc:
+ * tests/Portable_Interceptors/AMI/PI_AMI.mpc:
+ * tests/Collocation_Opportunities/Collocation_Opportunities.mpc:
+ * examples/POA/DSI/POA_DSI.mpc:
+ * examples/POA/Default_Servant/POA_Default_Servant.mpc:
+ * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc:
+ * orbsvcs/orbsvcs/FtRtEvent.mpc:
+ * orbsvcs/orbsvcs/IFRService.mpc:
+ * orbsvcs/tests/ImplRepo/scale/scaletest.mpc:
+ Added pi_server as base project
+
+ * tao/Messaging.mpc:
+ Added pi as base project, messaging needs pi stuff
+
+ * tao/PortableServer.mpc:
+ PortableServer is not dependent on pi anymore
+
+ * tao/TAO_Internal.cpp:
+ If the PI_Server_Loader is available, initialize it, this way
+ we get the needed services available
+
+ * tao/PortableServer/Object_Adapter_Factory.{cpp,h}:
+ No need to register the ORBInitializer, this is now in the pi_server
+ library
+
+ * tao/PortableServer/POA_Current_Impl.{h,cpp}:
+ Removed exception throw spec and environment macros. These are
+ coming from POA::Curent but are not used here and just make
+ things dependent on IDL generated code which it doesn't need
+ to be.
+
+ * tao/RTPortableServer/RT_Object_Adapter_Factory.{h,cpp}:
+ No need to register POA::Current, this is in the pi_server lib.
+ Also the adapter can be derived from TAO_Adapter_Factory
+
+ * tao/PortableServer/POA_Current.cpp
+ * tao/PortableServer/POA_Current.h
+ * tao/PortableServer/POA_Current.inl
+ * tao/PortableServer/PS_Current.pidl
+ * tao/PortableServer/PS_CurrentA.cpp
+ * tao/PortableServer/PS_CurrentC.cpp
+ * tao/PortableServer/PS_CurrentC.h
+ * tao/PortableServer/Policy_Creator_T.h
+ * tao/PortableServer/PortableServer_ORBInitializer.cpp
+ * tao/PortableServer/PortableServer_ORBInitializer.h
+ * tao/PortableServer/PortableServer_PolicyFactory.cpp
+ * tao/PortableServer/PortableServer_PolicyFactory.h
+ Removed these files, they are now in the pi_server library.
+ If you included one of these files or used the functionality
+ of the classes in one of these files, include
+ tao/PI_Server/PI_Server.h and link the new pi_server library.
+
+Sat Jun 18 18:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/CORBA_String.{h,inl}:
+ Added missing operator = (const WChar*) to WString_out. Thanks to
+ Jean-Marc Prud'Homme <jprudhomme at interstarinc dot com> for
+ reporting this and deliver the patch. This fixes bugzilla bug
+ 2159
+
+Sat Jun 18 15:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
+ Fixed crashing of notication service in mt configuration
+
+Fri Jun 17 19:54:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h (LOG_DEFAULT_MAX_REC_LIST_LEN):
+ * orbsvcs/orbsvcs/Log/LogRecordStore_persist.h (LOG_DEFAULT_MAX_REC_LIST_LEN):
+
+ Changed the maximum number of records that can be returned by
+ query() without using an iterator from 30 to 100. This should
+ probably be a parameter that is specified when the service is
+ started, but until it is, 100 is a more reasonable default.
+
+ From documentation available on line, the Orbix log service
+ implementation defaults to 100 records, the VisiBroker
+ implementation defaults to 1000.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i):
+
+ The ACE_LACKS_LONGLONG_T case cast the 64 bit log record fields
+ "id" and "time" to 32 bits, but the format directive still used
+ %Q. Changed to "%d".
+
+Fri Jun 17 19:02:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
+
+ Moved code for the IOR file and pid file output. It had been
+ mistakenly added inside a commented out section of the code.
+
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
+
+ From documentation available on-line, VisiBroker's and Orbix's
+ log service implementations support using corbaloc IORs and
+ resolve_initial_references() to obtain the log factory object
+ reference. Changed TAO's implementation to support the same by
+ registering the factory IORs in the IORTable:
+
+ * "BasicLogService" for the Basic_Logging_Service
+ * "EventLogService" for the Event_Logging_Service
+ * "NotifyLogService" for the Notify_Logging_Service
+ * "RTEventLogService" for the RTEvent_Logging_Service
+
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.mpc:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.mpc:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.mpc:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
+
+ Changed to inherit from iortable.
+
+Fri Jun 17 23:45:00 UTC 2005 Gary Maxey <gary.maxey@hp.com>
+
+ * TAO_IDL/include/ast_decl.h
+ * TAO_IDL/include/ast_generator.h
+ * TAO_IDL/include/ast_module.h
+ * TAO_IDL/include/ast_valuebox.h
+ * TAO_IDL/include/ast_visitor.h
+ * TAO_IDL/include/idl_global.h
+ * TAO_IDL/include/utl_err.h
+ * TAO_IDL/include/utl_scope.h
+ * TAO_IDL/util/utl_err.cpp
+ * TAO_IDL/util/utl_scope.cpp
+ * TAO_IDL/ast/ast_generator.cpp
+ * TAO_IDL/ast/ast_module.cpp
+ * TAO_IDL/ast/ast_redef.cpp
+ * TAO_IDL/ast/ast_valuebox.cpp
+ Changes and additions to IDL compiler front-end for
+ valuebox support.
+
+Fri Jun 17 15:40:51 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/orbsvcs.rc:
+ * orbsvcs/orbsvcs/orbsvcs_export.h:
+
+ Remove stray bits left over from when orbsvcs was a single
+ library.
+
+Fri Jun 17 19:09:56 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_codegen.cpp:
+
+ Reverted the change of
+
+ Thu Jun 16 18:54:01 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ It seems this problem is appearing in other places besides
+ generated code, and that making lots of modifications to
+ TAO code to work around what is essentially an HP compiler
+ bug is not the right approach. Thanks to Johnny Willemsen
+ <jwillemsen@remedy.nl> for advice on this matter.
+
+Fri Jun 17 17:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB.cpp:
+ Fixed resolve_initial_references of the CodecFactory
+
+Fri Jun 17 12:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI_Server/*:
+ First commit of the PI_Server library. Will contain the parts
+ of the PortableServer that are dependent on PortableInterceptors.
+ These files will be used soon when the MPC files are updated
+
+Fri Jun 17 11:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/DLL_ORB/client.cpp:
+ Fixed process_directive call
+
+Fri Jun 17 09:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB.cpp:
+ Corrected wrong compare in resolve_initial_references
+
+Fri Jun 17 09:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Param_Test/Param_Test.mpc:
+ Added explicit after so that we don't compile the same idl file
+ at the same time multiple times
+
+Fri Jun 17 09:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB.{h,cpp}:
+ Removed some unneeded emulated exeption macros
+
+Fri Jun 17 09:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
+ Fixed typo in exename, wanted to commit this yesterday but couldn't
+ reach cvs
+
+Fri Jun 17 09:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/DLL_ORB/client.cpp:
+ * tests/DLL_ORB/server.cpp:
+ * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp:
+ Use the new macro ACE_DYNAMIC_SERVICE_DIRECTIVE to load the
+ libraries
+
+Fri Jun 17 09:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1551_Regression/test.mpc:
+ Simplified this mpc file
+
+Fri Jun 17 09:56:44 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/Valuetype/ValueBase.cpp:
+
+ Add support for stream encoded repository ID indirection as per
+ "15.3.4.3 Scope of the Indirections" in 02-06-33.
+ This fixes bug #2156.
+
+Fri Jun 17 08:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORBInitializer_Registry.cpp:
+ * tao/PI/ORBInitInfo.cpp:
+ * tao/PortableServer/LifespanStrategyPersistent.cpp:
+ * tao/RTCORBA/RT_ORBInitializer.cpp:
+ * tao/ORB_Core.cpp:
+ Use the new macro ACE_DYNAMIC_SERVICE_DIRECTIVE to load the
+ libraries
+
+ * tao/Messaging/Messaging.cpp:
+ Return the value of the process_directive call
+
+ * tao/Messaging/Messaging_ORBInitializer.{h,cpp}:
+ Don't keep a PolicyFactory as member, just create an instance for
+ each ORB. Keeping an instance can cause crashes when the unloading
+ of the DLL already has happened before the PolicyFactory registry
+ is destructed.
+
+ * tao/PortableServer/Servant_Upcall.h:
+ Added forward declaration of CORBA::Object. Need it soon because
+ of even more subsetting
+
+ * tao/ORB_Core.cpp:
+ * tao/ORB.{h,cpp}:
+ Changed the way we throw an InvalidName exception from
+ resolve_initial_references. Instead of throwing it from each
+ resolve_x_method, just let those methods return a nil object
+ and then throw the exception at the end of
+ resolve_initial_references when then the object reference is nil.
+ This reduces some needs for exception emulation macros but more
+ important it guarantees that we always throw the exception instad
+ of returning a nil reference. During testing I found that a rir
+ of POACurrent returned a nil reference when the PortableServer
+ library was not loaded instead of throwing an exception.
+
+Fri Jun 17 08:49:09 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
+
+ Use _retn () instead of out () for the return value from
+ _get_component ().
+ This fixes bug #2155.
+
+Thu Jun 16 14:23:08 MST 2005 Trevor Fields <fields_t@ociweb.com>
+
+ * TAO_IDL/be/be_visitor_array/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_field/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_union_branch/serializer_op_cs.cpp:
+
+ Fix warning about unsigned long arg.
+
+Thu Jun 16 18:54:01 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_codegen.cpp:
+
+ Added conditional (for HPUX compiler only) code generation of
+ include of ace/SString.h in the stub source file, apparently
+ necessary when the HP compiler has optimize=1. Thanks to
+ Kris Dekeyser <Kris.Dekeyser@lms.be> for reporting the problem.
+
+Thu Jun 16 17:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/TAO_Internal.cpp:
+ Do the initialisation of the messaging loader earlier
+
+Thu Jun 16 16:47:42 2005 Simon McQueen <sm@prismtech.com>
+
+ * orbsvcs/IFR_Service/be_produce.cpp:
+
+ Check repository ptr is not null before use in BE_cleanup.
+ This fixes bug #2154.
+
+Thu Jun 16 07:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitializer_Registry_Impl.{h,cpp}:
+ Implemented fini call, at the moment the ORBInitializer Registry
+ is removed by service config we release all registered
+ ORBInitializers
+
+ * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
+ Simplified this MPC file
+
+Thu Jun 16 06:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Param_Test/Param_Test.mpc:
+ Set exename for anyop
+
+Wed Jun 15 13:46:48 MST 2005 Trevor Fields <fields_t@ociweb.com>
+
+ * TAO_IDL/be/be_visitor_array/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_array/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_enum/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_field/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_field/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_module/serializer_op.cpp:
+ * TAO_IDL/be/be_visitor_root/serializer_op.cpp:
+ * TAO_IDL/be/be_visitor_sequence/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_structure/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_typedef/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_typedef/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_union/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_union/serializer_op_cs.cpp:
+ * TAO_IDL/be/be_visitor_union_branch/serializer_op_ch.cpp:
+ * TAO_IDL/be/be_visitor_union_branch/serializer_op_cs.cpp:
+ * TAO_IDL/be_include/be_visitor_array/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_array/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_enum/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_enum/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_field/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_field/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_module/serializer_op.h:
+ * TAO_IDL/be_include/be_visitor_root/serializer_op.h:
+ * TAO_IDL/be_include/be_visitor_sequence/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_sequence/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_structure/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_structure/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_typedef/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_typedef/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_union/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_union/serializer_op_cs.h:
+ * TAO_IDL/be_include/be_visitor_union_branch/serializer_op_ch.h:
+ * TAO_IDL/be_include/be_visitor_union_branch/serializer_op_cs.h:
+
+ Addin additional files for providing serialization for sending
+ in DDS.
+
+Wed Jun 15 12:36:04 MST 2005 Trevor Fields <fields_t@ociweb.com>
+
+ * TAO_IDL/be/be_codegen.cpp:
+ * TAO_IDL/be/be_decl.cpp:
+ * TAO_IDL/be/be_global.cpp:
+ * TAO_IDL/be/be_visitor_array.cpp:
+ * TAO_IDL/be/be_visitor_enum.cpp:
+ * TAO_IDL/be/be_visitor_field.cpp:
+ * TAO_IDL/be/be_visitor_module.cpp:
+ * TAO_IDL/be/be_visitor_root.cpp:
+ * TAO_IDL/be/be_visitor_sequence.cpp:
+ * TAO_IDL/be/be_visitor_structure.cpp:
+ * TAO_IDL/be/be_visitor_typedef.cpp:
+ * TAO_IDL/be/be_visitor_union.cpp:
+ * TAO_IDL/be/be_visitor_union_branch.cpp:
+ * TAO_IDL/be/be_visitor_module/module.cpp:
+ * TAO_IDL/be/be_visitor_root/root.cpp:
+ * TAO_IDL/be/be_visitor_structure/structure.cpp:
+ * TAO_IDL/be/be_visitor_typedef/typedef.cpp:
+ * TAO_IDL/be/be_visitor_union/union.cpp:
+ * TAO_IDL/be_include/be_codegen.h:
+ * TAO_IDL/be_include/be_decl.h:
+ * TAO_IDL/be_include/be_global.h:
+ * TAO_IDL/be_include/be_visitor_array.h:
+ * TAO_IDL/be_include/be_visitor_enum.h:
+ * TAO_IDL/be_include/be_visitor_field.h:
+ * TAO_IDL/be_include/be_visitor_module.h:
+ * TAO_IDL/be_include/be_visitor_root.h:
+ * TAO_IDL/be_include/be_visitor_sequence.h:
+ * TAO_IDL/be_include/be_visitor_structure.h:
+ * TAO_IDL/be_include/be_visitor_typedef.h:
+ * TAO_IDL/be_include/be_visitor_union.h:
+ * TAO_IDL/be_include/be_visitor_union_branch.h:
+ * TAO_IDL/fe/idl.ll:
+ * TAO_IDL/fe/lex.yy.cpp:
+ * TAO_IDL/include/idl_global.h:
+ * TAO_IDL/util/utl_global.cpp:
+
+ Adding idl support for the new DDS DCPS implementation over TAO.
+
+Wed Jun 15 17:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Collocation_Proxy_Broker.h:
+ Added include to get size_t. This should fix the LynxOS build
+
+Wed Jun 15 10:46:12 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/PortableServer/TAO_PortableServer.pc.in:
+
+ Added TAO_PI to list of required libraries.
+
+ * tao/PI.mpc:
+
+ Added Pkgconfig_Files definition.
+
+ * tao/PI/TAO_PI.pc.in:
+
+ New file, pkg-config *.pc template for TAO_PI library.
+
+Wed Jun 15 13:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/Object_Adapter.cpp:
+ * tao/PortableServer/POA_Current_Impl.cpp:
+ * tao/PortableServer/Root_POA.cpp:
+ Removed several not needed includes
+
+Wed Jun 15 11:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Param_Test/Param_Test.mpc:
+ Simplified this MPC file, server anyop are not using messaging
+
+ * tao/RTScheduling/RTScheduler_Loader.h:
+ Removed not needed forward declaration
+
+ * tao/Messaging/Messaging_ORBInitializer.h:
+ Removed not needed forward declaration
+
+ * tao/Messaging/Messaging_Loader.{h,cpp}:
+ * tao/Messaging/Messaging.cpp:
+ We have an initialisation problem in the Messaging library, it
+ registers it ORBInitializer in a static object but the
+ ORBInitializer_Registry then doesn't need to be loaded yet.
+ Added a Messaging_Loader, this loader is just add to the
+ service config registry in the static object, from TAO_Internal
+ we then intialize the Message_Loader when it is available,
+ which then will register the ORBInitializer. Maybe this problem
+ exists with more libs, the regression tests will show it.
+
+ * tao/TAO_Internal.cpp:
+ Initialise the Messaging Loader when available
+
+ * tao/PI/ORBInitializer_Registry_Impl.h:
+ Removed old documentation
+
+ * tao/RTCORBA/RT_ORBInitializer.cpp:
+ Initialise pointer with 0
+
+Wed Jun 15 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/RTScheduling/Distributable_Thread.cpp:
+ * tao/RTScheduling/Request_Interceptor.h:
+ * tao/RTScheduling/RTScheduler_Initializer.cpp:
+ * tao/RTScheduling/RTScheduler_Loader.cpp:
+ Fixed some potential memory leaks when things go wrong and some
+ minor formatting changes
+
+Wed Jun 15 09:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORBInitializer_Registry.cpp:
+ Don't try to load the ORBInitializer registry in a static
+ build
+
+Wed Jun 15 08:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
+ Fixed conversion warning
+
+Tue Jun 14 21:35:35 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/PolicyFactory_Registry_Adapter.cpp:
+
+ Removed stray semi-colon.
+
+Tue Jun 14 20:57:00 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ From Lothar Werzinger <lothar@xcerla.com>
+ * orbsvcs/orbsvcs/Naming/Naming_Server.cpp (init_new_naming):
+
+ Register with the ORB's resolve_initial_references() mechanism.
+ Primarily useful for dynamically loaded Name Services.
+ [Bug 2150]
+
+Tue Jun 14 14:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/TAO_Server_Request.h:
+ Just include Object.h to get CORBA::Object instead of a forward
+ declaration, we get else problems in an inline build.
+
+Tue Jun 14 14:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Strategies/SCIOP_Profile.cpp:
+ Include tao/StringSeqC.h to get StringSeq. It seems the refactoring
+ of some PI reveales a lot of includes which are previously
+ gotten for free.
+
+Tue Jun 14 14:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/Upcall_Wrapper.cpp:
+ Added include of tao/Argument.h, this is not pulled in when
+ interceptors are disabled
+
+Tue Jun 14 14:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/TAO_Server_Request.h:
+ Added forward declaration of CORBA::Object. This is not pulled in
+ when interceptors are disabled
+
+Tue Jun 14 14:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/RTCORBA/check_supported_priorities.cpp
+ * tests/RTCORBA/common_args.cpp
+ * tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
+ * tests/RTCORBA/Banded_Connections/client.cpp
+ * tests/RTCORBA/Banded_Connections/server.cpp
+ * tests/RTCORBA/Client_Propagated/Client_ORBInitializer.h
+ * tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
+ * tests/RTCORBA/Client_Propagated/client.cpp
+ * tests/RTCORBA/Client_Propagated/server.cpp
+ * tests/RTCORBA/Collocation/Collocation.cpp
+ * tests/RTCORBA/Linear_Priority/client.cpp
+ * tests/RTCORBA/Linear_Priority/server.cpp
+ * tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
+ * tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
+ * tests/RTCORBA/Policy_Combinations/client.cpp
+ * tests/RTCORBA/Policy_Combinations/server.cpp
+ * tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
+ * tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
+ * tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
+ * tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
+ * tests/RTCORBA/Server_Declared/server.cpp
+ * tests/RTCORBA/Thread_Pool/client.cpp
+ * tests/RTCORBA/Thread_Pool/server.cpp
+ Return 2 instead of -1 when the check_support_priorities fail.
+ The test scripts expect then a return value of 2
+
+Tue Jun 14 14:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO-INSTALL.html:
+ Updated Borland build instructions
+
+Tue Jun 14 13:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitializer_Registry_Impl.cpp:
+ Corrected include
+
+Tue Jun 14 13:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.{h,cpp}:
+ Updated includes
+
+Tue Jun 14 12:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/examples/ORT/Server_IORInterceptor_ORBInitializer.h:
+ Updated include, missed in a previous checkin
+
+Tue Jun 14 12:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/ORBInitializer_Registry.{h,cpp}:
+ Renamed to ORBInitializer_Registry_Impl.{h,cpp} This prevents
+ confusion if we have the file in the tao or tao/PI directory
+
+ * tao/PI/PI.cpp:
+ Updated include
+
+Tue Jun 14 11:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/Kokyu_dsrt_schedulers/FP_Scheduler.h:
+ * examples/Kokyu_dsrt_schedulers/MIF_Scheduler.h:
+ * examples/Kokyu_dsrt_schedulers/MUF_Scheduler.h:
+ Added missing include of CodecFactory.h
+
+Tue Jun 14 11:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB_Core.cpp:
+ Fixed problem with emulated exceptions
+
+Tue Jun 14 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/IOPS_T.h:
+ Removed, not included by IOPS.h anymore
+
+ * tao/tao.mpc:
+ Removed tao/tao.mpc
+
+Tue Jun 14 10:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h:
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp:
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp:
+ Added missing includes
+
+Tue Jun 14 10:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h:
+ * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h:
+ Added missing includes
+
+Tue Jun 14 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/AV/SCTP_SEQ.h:
+ Added missing include
+
+Tue Jun 14 09:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_1693_Test/client.cpp:
+ * tests/RTCORBA/Thread_Pool/client.cpp:
+ * tests/Codec/client.cpp:
+ Fixed compile errors
+
+ * tao/ORB.cpp:
+ * tao/ORB_Core.{h,cpp}:
+ Changed the way we use the ORBInitializer registry. When it is
+ requested from the ORB_Core, get it from the service config
+ registry but in a static build don't try to load it on demand
+
+Tue Jun 14 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PI/*:
+ New PI library. Contains ORBInitializer registry, ORBInitInfo and
+ PolicyFactory. This will be extended in the future with more classes
+ but this is the first step. If you use any of these classes in
+ your app, add the include of tao/PI/PI.h to your application code.
+ This will make sure the service config registry is filled with
+ the loadable modules.
+
+ * tao/BiDir_GIOP.mpc:
+ The BiDir library uses a PolicyFactory so it must link with the PI
+ library
+
+ * tao/Interceptor_List.{h,cpp}:
+ Changed the list to return a value indicating whether it was possible
+ to add the interceptor or not. The caller in the PI or IORInterceptor
+ library will then throw the correct exception. This way the list
+ template can stay in the TAO lib because the exception DuplicateName
+ is now in the PI library
+
+ * tao/IORInterceptor.mpc:
+ Added PI as base project
+
+ * tao/IORInterceptor_Adapter.{h,cpp}:
+ Removed throw clause from add_interceptor method. The clause was
+ not correct also, it could throw a DuplicateName exception also.
+ This way we are not dependent on the PI library. Also the adapter
+ doesn't need to be derived from ACE_Service_Object, this class
+ is not loaded, the factory that creates it is.
+
+ * tao/IORInterceptor_Adapter_Factory.{h,cpp}:
+ Removed destructor, it is not needed
+
+ * tao/ORB.cpp:
+ Updated to use the new ORBInitializer Factory adapter and Policy
+ Factory adapter
+
+ * tao/ORB_Core.{h,cpp,i}:
+ Updated for new adapters and interceptor list changes. Also added
+ a get_orbinitializer_registry which returns the current pointer
+ without trying to load the PI library. This is used by the ORB
+ to call alls orbinitializers. When the library is not loaded yet,
+ no user code caused this so we don't have to do this also
+
+ * tao/ORBInitializer.pidl:
+ * tao/ORBInitializerA.cpp:
+ * tao/ORBInitializerC.{h,cpp,inl}:
+ * tao/ORBInitializerS.h:
+ * tao/ORBInitInfo.pidl:
+ * tao/ORBInitInfoA.cpp:
+ * tao/ORBInitInfoC.{h,cpp,inl}:
+ * tao/ORBInitInfoS.h:
+ * tao/ORBInitInfo.{h,cpp,inl}:
+ * tao/PolicyFactory.pidl:
+ * tao/PolicyFactory_Registry.{h,cpp}:
+ * tao/PolicyFactoryA.cpp:
+ * tao/PolicyFactoryC.{h,cpp,inl}:
+ Moved to the PI library
+
+ * tao/IOP_Codec.pidl:
+ * tao/IOP_CodecA.cpp:
+ * tao/IOP_CodecC.{h,cpp,inl}:
+ Moved to the CodecFactory library
+
+ * tao/IOP.pidl:
+ Removed include of IOP_Codec.pidl
+
+ * tao/ORBInitializer_Registry.{h,cpp}:
+ Removed all code except register_orb_initializer, which now tries
+ to load the ORBInitializer Registry on demand. The code is moved to
+ the PI library
+
+ * tao/PI.mpc:
+ New file
+
+ * tao/PolicyFactory_Registry_Adapter.{h,cpp}:
+ New adapter for PolicyFactory_Registry
+
+ * tao/PolicyFactory_Registry_Factory.h:
+ New factory for creating a PolicyFactory for each ORB
+
+ * tao/PortableInterceptor.pidl:
+ Removed files that moved to the PI library
+
+ * tao/PortableInterceptorA.cpp:
+ Removed, empty
+
+ * tao/PortableInterceptorC.{cpp,h}:
+ Regenerated
+
+ * tao/PortableServer.mpc:
+ * tao/RTCORBA.mpc:
+ * tao/Utils.mpc
+ Based on the new PI. These all use something of the PI library.
+ Because of this only a client gets benefits from this, but the
+ server will be handled in the next iteration
+
+ * tao/tao.mpc:
+ Updated for all changes
+
+ * tao/BiDir_GIOP/BiDirGIOP.cpp:
+ Added include of ORBInitializer_Registry.h
+
+ * tao/BiDir_GIOP/BiDir_ORBInitializer.{h,cpp}:
+ * tao/BiDir_GIOP/BiDir_PolicyFactory.h:
+ Include tao/PI/PI.h
+
+ * tao/CodecFactory/CodecFactory.h:
+ Include IOP_CodecC.h
+
+ * tao/CodecFactory/IOP_CodecC.{h,cpp}:
+ * tao/CodecFactory/IOP_CodecA.cpp:
+ * tao/CodecFactory/IOP_CodecS.h:
+ Files moved from the tao lib
+
+ * tao/CodecFactory/IOP_Codec_include.pidl:
+ * tao/CodecFactory/IOP_Codec_includeC.h:
+ * tao/CodecFactory/IOP_Codec_includeS.h:
+ New files for apps that include IOP_Codec.pidl in the past, they
+ should now use this pidl file
+
+ * tao/CodecFactory/CDR_Encaps_Codec.h:
+ * tao/CodecFactory/CodecFactory.h:
+ * tao/CodecFactory/CodecFactory_imp.h:
+ Updated for moving of IOP_Codec.pidl
+
+ * tao/IORInterceptor/IORInterceptor_Adapter_Impl.{h,cpp}:
+ Updated for interceptor list change
+
+ * tao/Messaging/Messaging_ORBInitializer.h:
+ * tao/Messaging/Messaging_PolicyFactory.h:
+ * tao/PortableServer/PortableServer_ORBInitializer.{h,cpp}:
+ * tao/PortableServer/PortableServer_PolicyFactory.h:
+ * tao/RTCORBA/RT_ORBInitializer.cpp:
+ * tao/RTCORBA/RT_PolicyFactory.h
+ * tao/RTScheduling/RTScheduling_Initializer.{h,cpp}:
+ * tao/Utils/RIR_Narrow.h:
+ Changed includes to include tao/PI/PI.h
+
+ * tao/docs/libraries.html:
+ Added PI
+
+ * orbsvcs/examples/FaultTolerance/RolyPoly/RolyPoly.mpc
+ * orbsvcs/examples/LoadBalancing/ORBInitializer.h
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp
+ * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h
+ * orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
+ * orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h
+ * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp
+ * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h
+ * orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h
+ * orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp
+ * orbsvcs/orbsvcs/Security/Security_ORBInitializer.h
+ * orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp
+ * orbsvcs/orbsvcs/Security/Security_PolicyFactory.h
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/ORBInitializer.cpp
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/ORBInitializer.h
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ORBInitializer.h
+ * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp
+ * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_ORBInitializer.h
+ * orbsvcs/tests/RTCosScheduling/RTCosScheduling.mpc
+ * tests/Bug_1495_Regression/Bug_1495.mpc
+ * tests/Bug_1495_Regression/Client_ORBInitializer.h
+ * tests/Bug_1495_Regression/Server_ORBInitializer.h
+ * tests/ORT/ORT.mpc
+ * tests/ORT/ServerORBInitializer.h
+ * tests/Portable_Interceptors/AMI/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/AMI/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/Benchmark/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/Benchmark/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/Bug_1559/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/Bug_1559/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/Bug_2088/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp
+ * tests/Portable_Interceptors/Collocated/Dynamic/Echo_Collocated_ORBInitializer.cpp
+ * tests/Portable_Interceptors/Collocated/Dynamic/Echo_Collocated_ORBInitializer.h
+ * tests/Portable_Interceptors/Collocated/Dynamic/PI_Dynamic.mpc
+ * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_ORBInitializer.h
+ * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
+ * tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h
+ * tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h
+ * tests/Portable_Interceptors/ForwardRequest/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/ForwardRequest/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.h
+ * tests/Portable_Interceptors/IORInterceptor/FOO_Client_ORBInitializer.h
+ * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h
+ * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor_ORBInitializer.h
+ * tests/Portable_Interceptors/ORB_Shutdown/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h
+ * tests/Portable_Interceptors/PICurrent/ServerORBInitializer.cpp
+ * tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h
+ * tests/Portable_Interceptors/PICurrent/client.cpp
+ * tests/Portable_Interceptors/PolicyFactory/PolicyFactory.h
+ * tests/Portable_Interceptors/PolicyFactory/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h
+ * tests/Portable_Interceptors/Service_Context_Manipulation/Client_ORBInitializer.h
+ * tests/Portable_Interceptors/Service_Context_Manipulation/Server_ORBInitializer.h
+ Updated for the new PI library
+
+ * tests/RTCORBA/check_supported_priorities.cpp
+ * tests/RTCORBA/common_args.cpp
+ * tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
+ * tests/RTCORBA/Banded_Connections/client.cpp
+ * tests/RTCORBA/Banded_Connections/server.cpp
+ * tests/RTCORBA/Client_Propagated/Client_ORBInitializer.h
+ * tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
+ * tests/RTCORBA/Client_Propagated/client.cpp
+ * tests/RTCORBA/Client_Propagated/server.cpp
+ * tests/RTCORBA/Collocation/Collocation.cpp
+ * tests/RTCORBA/Linear_Priority/client.cpp
+ * tests/RTCORBA/Linear_Priority/server.cpp
+ * tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
+ * tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
+ * tests/RTCORBA/Policy_Combinations/client.cpp
+ * tests/RTCORBA/Policy_Combinations/server.cpp
+ * tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
+ * tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
+ * tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
+ * tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
+ * tests/RTCORBA/Server_Declared/server.cpp
+ * tests/RTCORBA/Thread_Pool/client.cpp
+ * tests/RTCORBA/Thread_Pool/server.cpp
+ Instead of doing an ACE_OS::exit() when the needed priorities
+ are not available, return from the main with a -1. Will reduce
+ the number of memory leaks reported by valgrind a lot.
+
+Tue Jun 14 07:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp:
+ Added missing include
+
+Mon Jun 13 17:27:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp (get):
+
+ Change to return a zero-length sequence before destroying
+ iterator as required by the spec.
+
+Mon Jun 13 17:18:44 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.h:
+
+ Change type of constraint member variable to CORBA::String_var
+ so we don't dereference a dangling char * in get().
+
+Mon Jun 13 12:10:06 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
+ * orbsvcs/orbsvcs/Log/Iterator_i.h:
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+
+ Changed to interpret "position" as the index in the complete
+ sequence of records that match the constraint instead of the
+ index in the sequence of all records.
+
+ Changed TAO_Iterator_i constructor to take new "current" and
+ "end" iterator parameters. This allows us to avoid scanning
+ and skipping records returned as part of the initial query().
+
+ Simplify iterating over record store by using ACE_Hash_Map's
+ STL-like API.
+
+Mon Jun 13 18:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h:
+ Converted comments to doxygen style
+
+Mon Jun 13 18:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp:
+ Include ORBInitializer_Registry.h, needed for the upcoming PI library
+
+Mon Jun 13 05:07:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * orbsvcs/orbsvcs/AV/AVStreams_i.cpp:
+ * orbsvcs/orbsvcs/AV/AVStreams_i.h:
+
+ Made public destructors protected since the objects in question
+ are reference counted, i.e. memory management should be
+ performed through the reference counting mechanism, not operator
+ delete();
+
+ * orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp:
+ * orbsvcs/orbsvcs/AV/FlowSpec_Entry.h (TAO_FlowSpec_Entry):
+ * orbsvcs/orbsvcs/AV/FlowSpec_Entry.i:
+
+ Fixed a memory leak.
+
+Mon Jun 13 09:32:38 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * tao/IIOP_Profile.cpp:
+ * tao/Tagged_Component.cpp:
+ * tao/Tagged_Component.h:
+
+ Reverted the change to TAO_Tagged_Component::get_component.
+
+Mon Jun 13 12:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/RTCORBA/Client_Propagated/client.cpp:
+ Added include of ORBInitializer_Registry.h
+
+Mon Jun 13 11:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc:
+ * tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc:
+ * tests/Portable_Interceptors/Bug_2088/Bug_2088.mpc:
+ * tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc:
+ * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
+ * tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc:
+ * tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc:
+ * tests/Portable_Interceptors/PolicyFactory/PI_PolicyFactory.mpc:
+ * tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc:
+ * tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc:
+ Use interceptors as base project instead of the requires
+ interceptors
+
+Mon Jun 13 08:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Strategies/SCIOP_Endpoint.cpp:
+ Fixed compile error
+
+Mon Jun 13 08:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Messaging/Asynch_Invocation_Adapter.{h,cpp}:
+ Fixed ambiguity warnings with Borland.
+
+Sun Jun 12 23:09:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp (TAO_Log_Constraint_Visitor):
+
+ Add property list bindings for each item in the log record's
+ attribute list.
+
+Sun Jun 12 23:38:02 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
+
+ * tao/GIOP_Message_Base.h (process_request, process_locate_request):
+
+ Made the above calls virtual since it makes it easier to do
+ implementation inheritance, and override behaviours.
+
+Sun Jun 12 14:24:05 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i, match_i, remove_old_records):
+
+ Simplify iterating over record store by using ACE_Hash_Map's
+ STL-like API.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i):
+
+ Changed from LOG_HASH_MAP_ITER to LOG_RECORD_STORE_ITER.
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.h (TAO_LogRecordStore):
+
+ Added LOG_RECORD_STORE_ENTRY typedef.
+
+ * orbsvcs/orbsvcs/Log/Iterator_i.cpp: (TAO_Iterator_i):
+ * orbsvcs/orbsvcs/Log/Iterator_i.h (TAO_Iterator_i):
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i):
+
+ Removed max_store_size argument from constructor.
+ Removed (unused) max_store_size member variable.
+
+ * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
+
+ Changed constructor to directly assign log record's .info field
+ to property list value binding instead of stashing it in an the
+ Any. This allows the value to be queried via ETCL constraints.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (remove_old_records):
+
+ Changed conditional in constraint as it was casing new, not old,
+ records to be deleted.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (validate_capacity_alarm_thresholds):
+ * orbsvcs/orbsvcs/Log/Log_i.h (validate_capacity_alarm_thresholds):
+
+ Move validate_capacity_alarm_thresholds method from public to
+ protected visibility.
+
+ * tao/Makefile.am:
+
+ Updated to remove Queued_Message.inl.
+
+Sun Jun 12 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Collocation_Proxy_Broker.h:
+ Added forward declaration of environment
+
+Sun Jun 12 13:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Security/Security_ORBInitializer.{h,cpp}:
+ * tao/RTCORBA/RT_ORBInitializer.{h,cpp}:
+ Updated the way the policyfactory is registered in a way that things
+ are not dependent on the destruction order and we only have one
+ instance of the factory in runtime
+
+Sun Jun 12 12:37:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
+
+ * rules.tao.GNU:
+ Fixed problem with TAO version detection when default Make
+ shell is CMD.EXE.
+
+Sat Jun 11 23:45:07 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_operation.cpp:
+ * TAO_IDL/be/be_visitor_sequence.cpp:
+ * TAO_IDL/be_include/be_visitor_operation.h:
+ * TAO_IDL/be_include/be_visitor_sequence.h:
+
+ Removed includes of unused files.
+
+ * TAO_IDL/be/be_visitor_argument/invoke_cs.cpp:
+ * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp:
+
+ Fixed incorrect visitor names in error messages.
+
+ * TAO_IDL/be/be_visitor_argument/post_invoke_cs.cpp:
+ * TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp:
+ * TAO_IDL/be/be_visitor_argument/pre_invoke_cs.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_is.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_post_invoke_cs.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_pre_invoke_cs.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp:
+ * TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp:
+ * TAO_IDL/be/be_visitor_sequence/elemtype.cpp:
+ * TAO_IDL/be_include/be_visitor_argument/post_invoke_cs.h:
+ * TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h:
+ * TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_is.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_post_invoke_cs.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h:
+ * TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h:
+ * TAO_IDL/be_include/be_visitor_sequence/elemtype.h:
+
+ Removed from the repository visitors that are no longer used.
+ Thanks to Gary Maxey <gary.maxey@hp.com> for pointing out
+ most of them.
+
+Sat Jun 11 14:43:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/EventLogConsumer.cpp (push):
+ * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp (push):
+
+ Add ACE_TRY_CATCH after call to write_recordlist() for emulated
+ exception builds.
+
+Sat Jun 11 13:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PolicyFactory_Registry.cpp:
+ Fixed memory leak at the moment the registering of a policy
+ factory fails
+
+Sat Jun 11 12:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/RTCORBA/Linear_Priority/run_test.pl:
+ When the server can't be started end this test directly
+
+ * tao/RTCORBA/RT_ORBInitializer.{h,cpp}:
+ Changed the way we register the PolicyFactory. Don't store it as
+ member in the ORBInitializer, this gives problems now we start
+ loading the PI stuff on demand. The order of destruction seems to
+ be changed causing crashes in the RTCorba tests. This fixes these
+ crashes
+
+Sat Jun 11 11:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Queued_Message.{h,inl,cpp}:
+ Removed the .inl file, it is empty
+
+Fri Jun 10 14:58:23 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Fri Jun 10 13:07:04 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Collocation_Proxy_Broker.cpp:
+ * tao/Collocation_Proxy_Broker.h:
+ * tao/Connection_Handler.cpp:
+ * tao/Connection_Handler.inl:
+ * tao/GIOP_Message_Generator_Parser.cpp:
+ * tao/GIOP_Message_Generator_Parser.h:
+ * tao/Invocation_Adapter.cpp:
+ * tao/Invocation_Adapter.inl:
+ * tao/New_Leader_Generator.cpp:
+ * tao/New_Leader_Generator.h:
+ * tao/Object.cpp:
+ * tao/Object.i:
+ * tao/Policy_Manager.cpp:
+ * tao/Policy_Manager.i:
+ * tao/Queued_Message.cpp:
+ * tao/Queued_Message.inl:
+ * tao/SystemException.cpp:
+ * tao/SystemException.h:
+ * tao/UTF16_BOM_Translator.cpp:
+ * tao/UTF16_BOM_Translator.h:
+ * tao/Messaging/MessagingS.cpp:
+ * tao/Messaging/MessagingS.h:
+ * tao/PortableServer/PolicyS.cpp:
+ * tao/PortableServer/PolicyS.h:
+ * tao/PortableServer/Upcall_Command.cpp:
+ * tao/PortableServer/Upcall_Command.h:
+
+ Moved inlined virtual methods out of line. Inlinging them
+ causes RTTI issues when using g++ 4.0's hidden symbol
+ visibility.
+
+ * tao/Messaging/Asynch_Invocation_Adapter.cpp:
+ * tao/Messaging/Asynch_Invocation_Adapter.h (invoke):
+ * tao/Messaging/Asynch_Invocation_Adapter.inl:
+
+ Removed unnecessary virtual function override. All it was
+ forward the call to the base class implementation.
+
+ Removed empty inline source file.
+
+ * tao/Makefile.am:
+ * tao/tao.mpc:
+
+ Updated source file lists.
+
+Fri Jun 10 13:00:49 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/PICurrent_Loader.h:
+
+ Include "tao/orbconf.h" to pull in default TAO_HAS_INTERCEPTORS
+ preprocessor symbol definition. Fixes link-time errors related
+ to missing static constructor definition.
+
+ * tao/PICurrent_Loader.cpp:
+
+ Reorganized include directives so that interceptor related
+ headers are not included when compile-time interceptor support
+ is not enabled.
+
+Fri Jun 10 12:51:44 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp:
+ * TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp:
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp:
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
+
+ Generate out of line virtual methods. Inlined ones prevent RTTI
+ from working when enabling hidden symbols with g++ 4.0's
+ visibility support.
+
+ * tao/GIOP_Message_Generator_Parser_Impl.inl (check_revision):
+
+ Made "max_allowable_version" variable a static constant instead
+ of a non-const variable. Reduces run-time overhead since this
+ value may be computed at compile-time.
+
+Fri Jun 10 18:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB.cpp:
+ * tao/ORB_Core.{h,i}:
+ * tao/PICurrent_Loader.{h,cpp}:
+ Fixed compile errors when interceptors are disabled
+
+Fri Jun 10 17:21:28 2005 Simon McQueen <sm@prismtech.com>
+
+ * orbsvcs/tests/Bug_2137_Regression/run_test.pl:
+
+ Fix wrong 'use lib'.
+
+Fri Jun 10 09:59:17 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tao/default_client.cpp:
+
+ Ensure that all TAO related options are consistently case
+ insensitive.
+
+Fri Jun 10 13:16:27 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/fe/fe_extern (FE_generate_UUID):
+
+ Added arguments (which were passed by default value before) to
+ the generateUUID() call on the ACE UUID_GENERATOR singleton.
+ These arguments trigger the inclusion of the thread id in the
+ formation of the uuid, along with the process id and timestamp
+ that were already being used. In some experiments we have done
+ with the Visual Studio 2005 beta (which can take advantage of
+ multiple processors to do parallel builds), the process id
+ and timestamp alone were apparently not enough to ensure a
+ unique id when creating one for use in the temporary file name,
+ and multiple threads corresponding to multiple builds in the
+ same directory were trying to open temporary files with the
+ same name.
+
+Fri Jun 10 08:21:47 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp:
+ * examples/RTScheduling/Thread_Task.cpp:
+
+ Addressed data initialization and memcpy issues which mainly
+ showed up in a 64-bit Solaris build.
+
+ * performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp:
+
+ Use ACE_SCOPE_THREAD on AIX and MacOS X instead of
+ ACE_SCOPE_PROCESS since it's not supported.
+
+Fri Jun 10 07:51:36 2005 Phil Mesnier <mesnier_p@ociweb.com>
+
+ * docs/Options.html:
+ * tao/IIOP_Acceptor.cpp:
+ * tao/IIOP_Profile.cpp:
+ * tao/IIOP_Profile.h:
+ * tao/ORB_Core.cpp:
+ * tao/Tagged_Components.cpp:
+ * tao/Tagged_Components.h:
+ * tao/params.cpp:
+ * tao/params.h:
+ * tao/params.i:
+ * tao/PortableServer/Default_Acceptor_Filter.cpp:
+ * tests/AlternateIIOP:
+ * utils/catior/catior.cpp:
+
+ Added support for TAG_ALTERNATE_IIOP_ADDRESS to combine many
+ endpoints into a single profile when not using RTCORBA. This may
+ be overridden by using the ORB_init argument
+ -ORBUseSharedProfiles 0. It is enabled by default. Unlike the
+ TAO-specific TAO_TAG_ENDPOINTS, the TAG_ALTERNATE_IIOP_ADDRESS
+ component contains a single host:port pair, but many such
+ components may be added to a profile to carry as many endpoints
+ as required.
+
+Fri Jun 10 10:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/CodecFactory/*:
+ New CodecFactory library. When users want to use the CodecFactory
+ they have to include tao/CodecFactory/CodecFactory.h
+
+ * tao/Bind_Dispatcher_Guard.h:
+ Doxygen improvement
+
+ * tao/IOP_IOR.pidl:
+ Updated numbers for reliable multicast as mentioned in omg document
+ 03-01-11
+
+ * tao/CDR_Encaps_Codec.{h,cpp}:
+ * tao/CodecFactory.{h,cpp}:
+ These files are moved to the CodecFactory library
+
+ * tao/CodecFactory.mpc:
+ New MPC file for the CodecFactory library
+
+ * tao/ClientRequestInfo_i.h:
+ * tao/ClientRequestInterceptor_Adapter.{h,cpp}:
+ * tao/Collocated_Invocation.cpp:
+ * tao/Invocation_Base.cpp:
+ * tao/PICurrent_Copy_Callback.cpp:
+ * tao/Synch_Invocation.cpp:
+ * tao/TAO_Server_Request.h:
+ * tao/TSS_Resources.h:
+ * tao/Messaging/Asynch_Invocation.cpp:
+ * tao/PortableServer/ServerRequestInfo.h:
+ Changed includes and added some more forward declarations because
+ of reduced header dependencies
+
+ * tao/Tagged_Components.h:
+ Removed commented out code
+
+ * tao/tao.mpc:
+ Updated for all these changes
+
+ * tao/ClientRequestInfo_i.i:
+ Added needed include
+
+ * tao/CodecFactory_ORBInitializer.{h,cpp}:
+ Removed, we don't use an ORBInitializer anymore for the CodecFactory
+
+ * tao/ORB.cpp:
+ * tao/ORB_Core.{h,cpp,i}:
+ Changed the way we retrieve the CodecFactory and PICurrent. Instead
+ of an ORBInitializer we try to load them using svc.conf
+
+ * tao/ORBInitInfo.cpp:
+ Use svc.conf to get the CodecFactory instead of allocating a new
+ instance here
+
+ * tao/Parser_Registry.cpp:
+ Removed empty explicit template instantiation block
+
+ * tao/PICurrent.{h,cpp,inl}:
+ * tao/PICurrent_Impl.{h,cpp,inl}:
+ Moved TAO::PICurrent_Impl to its own file
+
+ * tao/PICurrent.pidl:
+ * tao/PICurrentA.cpp:
+ * tao/PICurrentC.{h,cpp}:
+ * tao/PICurrentS.h:
+ Moved PICurrent to its own file
+
+ * tao/PICurrent_Loader.{h,cpp}:
+ Use svc.conf to get PICurrent
+
+ * tao/PICurrent_ORBInitializer.{h,cpp}:
+ Removed these files
+
+ * tao/Policy_Manager.{h,cpp,i}:
+ * tao/Policy_Current.{h,cpp,inl}:
+ * tao/Policy_Current_Impl.{h,cpp,inl}:
+ Moved Policy_Current and Policy_Current_Impl to their own files
+
+ * tao/PortableInterceptor.pidl:
+ * tao/PortableInterceptorA.cpp:
+ * tao/PortableInterceptorC.{h,cpp}:
+ * tao/PortableInterceptorS.h:
+ Moved PICurrent out of this file and regenerated
+
+ * tao/Services_Activate.cpp:
+ Removed explicit templates
+
+ * tao/ServicesS_T.h:
+ Removed
+
+ * tao/orbconf.h:
+ Added deablfine for RootPOAManager name, will be used later
+
+ * tao/objectid.h:
+ Added define for POAManagerFactory
+
+ * tao/LocalObject.{h,cpp}:
+ Override _get_orb to throw a no implement with minor code 8
+
+ * tao/Object.{h,cpp}:
+ Added _get_orb()
+
+ * docs/libraries.html:
+ Added codecfactory
+
+ * tests/Bug_1693_Test/Bug_1693_Test.mpc:
+ * tests/Bug_1693_Test/client.cpp:
+ * tests/Codec/client.cpp:
+ * tests/Codec/Codec.mpc:
+ * tests/Portable_Interceptors/IORInterceptor/FOO_Client_ORBInitializer.cpp:
+ * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor_ORBInitializer.cpp:
+ * tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc:
+ * examples/Kokyu_dsrt_schedulers/EDF_Scheduler.cpp:
+ * examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp:
+ * examples/Kokyu_dsrt_schedulers/Kokyu_DSRT_Schedulers.mpc:
+ * examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp:
+ * examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp:
+ * orbsvcs/PSS/PSDL_Code_Gen.cpp:
+ * orbsvcs/orbsvcs/RTCosScheduling.mpc:
+ * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp:
+ * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp:
+ Updated because of new CodecFactory library
+
+Fri Jun 10 10:15:17 2005 Simon McQueen <sm@prismtech.com>
+
+ * tests/Bug_2144_Regression/Bug_2144_Regression.mpc:
+
+ Add valuetype to dependencies to (hopefully) fix Linux error.
+
+ * tao/Profile.cpp:
+
+ Fix warning on Linux.
+
+Thu Jun 10 08:40:00 UTC 2005 Simon Massey <sma@prismtech.com>
+
+ * tao/orbsvcs/tests/Bug_2137_Regression/client.cpp:
+ Corrected const char * problem.
+
+Thu Jun 9 18:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Tagged_Components.h:
+ Removed commented out code
+
+Thu Jun 9 18:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ServicesS_T.h:
+ Removed this file, was not included at all
+
+Thu Jun 9 18:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/FaultTolerance/ChangeLog:
+ Removed this file, we have a main changelog
+
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp:
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp:
+ * orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp:
+ * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp:
+ * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp:
+ Minor formatting issues. Fixes bugzilla bug 2139. Thanks to
+ <jmegq at radiance dot com>
+
+Thu Jun 9 18:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/POA/Reference_Counting/*
+ New reference counting test, regression for bug 2142.
+ Thanks to Frank Pilhofer <fp@mc.com>
+
+Thu Jun 9 15:33:52 2005 Simon McQueen <sm@prismtech.com>
+
+ * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp:
+
+ Change valuetype acessor declaration to return a pointer
+ rather than a _ptr.
+
+ This fixes bugzilla #2144.
+
+ * tests/Bug_2144_Regression/Bug_2144_Regression.mpc:
+ * tests/Bug_2144_Regression/README:
+ * tests/Bug_2144_Regression/test.cpp:
+ * tests/Bug_2144_Regression/test.idl:
+
+ Regression test for the above.
+
+Thu Jun 9 07:24:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/EventLogConsumer.cpp (push):
+ * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp (push):
+
+ Catch log service exceptions and rethrow the corresponding
+ system exception.
+
+Thu Jun 9 07:11:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (write_records, write_recordlist):
+ * orbsvcs/orbsvcs/Log/Log_i.h:
+
+ Add DsLogAdmin::LogOffDuty to exception specification.
+
+Thu Jun 9 07:05:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerate.
+
+ * orbsvcs/orbsvcs/Security.mpc:
+
+ Add security_export.h to Header File section.
+
+Thu Jun 9 12:54:41 2005 Simon McQueen <sm@prismtech.com>
+
+ * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
+ * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h:
+ * tao/ORB_Core.h:
+ * tao/ORB_Core.i:
+ * tao/Profile.cpp:
+ * tao/Profile.h:
+ * tao/Service_Callbacks.cpp:
+ * tao/Service_Callbacks.h:
+
+ Changed the signature of the service callbacks is_equivalent
+ hook so that a service can completely override the default
+ profile comparison mechanism as required by the FT spec.
+
+ This fixes bugzilla # 2137.
+
+ * orbsvcs/tests/Bug_2137_Regression/Bug_2137_Regression.mpc:
+ * orbsvcs/tests/Bug_2137_Regression/client.cpp:
+ * orbsvcs/tests/Bug_2137_Regression/ep1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep1_d1_g1_v1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep1_d1_g1_v2.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep1_d1_g2_v1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep1_d2_g1_v1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep2.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep2_d1_g1_v1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep2_d1_g1_v2.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep2_d1_g2_v1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/ep2_d2_g1_v1.ior:
+ * orbsvcs/tests/Bug_2137_Regression/README:
+ * orbsvcs/tests/Bug_2137_Regression/run_test.pl:
+
+ Committed regression test for the above.
+
+Thu Jun 9 09:31:28 2005 Simon McQueen <sm@prismtech.com>
+
+ * NEWS:
+
+ Updated with late release note submissions.
+
+Wed Jun 08 08:46:48 2005 Simon McQueen <sm@prismtech.com>
+
+ * TAO version 1.4.6 released.
+
+Wed Jun 8 11:21:50 2005 Simon McQueen <sm@prismtech.com>
+
+ * NEWS:
+
+ Updated with release note entries.
+
+Mon Jun 6 18:05:52 2005 unknown <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
+
+ Escape more strings written to the xml file. This should fix bug 2129.
+
+Mon Jun 6 16:48:21 2005 <cleeland_c@ociweb.com>
+
+ * tao/IIOP_Acceptor.cpp (create_new_profile): Reverse the order of
+ comparisons so that port numbers get compared first. This
+ should make comparisons marginally faster when hostnames are
+ ridiculously long if the ports don't match.
+
+ * tao/IIOP_Acceptor.cpp (create_shared_profile): Make port numbers
+ a part of the comparison so that RTCORBA connections work
+ properly.
+
+Mon Jun 6 02:10:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/TypeCode.cpp (equivalent):
+
+ Pass the unaliased TypeCode to the subclass equivalent_i()
+ template method instead of the potentially aliased one. Fixes
+ equivalence failures between an aliased TypeCode and unaliased
+ TypeCode. Thanks to Jiang Wei <jiangwei_1976 at yahoo dot com
+ dot cn> for reporting the problem and providing a simple test
+ case. [Bug 2140]
+
+Fri Jun 3 10:21:50 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tests/Any/Recursive/client.cpp:
+
+ Fixed unused argument warnings in emulated exception builds.
+
+ Fixed syntax errors in minimum CORBA builds.
+
+Fri Jun 3 09:17:13 2005 Chris Cleeland <cleeland_c@ociweb.com>
+
+ * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp (main):
+
+ Since this code was copied from
+ TAO_IIOP_Acceptor::probe_interfaces(), update this code to look
+ like the code there. This was also in response to seemingly
+ nonsense complaints on one platform in the line containing
+ ACE_static_cast(), so hopefully the change to static_cast<>
+ remedies that as well.
+
+Fri Jun 3 14:49:14 2005 Simon McQueen <sm@prismtech.com>
+
+ * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp:
+
+ This test was trying to use the old (and superior :-) ) form
+ of the FT service context and was subsequently failing to
+ extract the group version correctly. Fixed.
+
+Thu Jun 2 14:04:23 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
+
+ Fix exception macros.
+
+Thu Jun 2 11:06:05 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
+
+ Add an explicit constructor to work around BCB6 compiler
+ warnings about implicit char* to string conversion.
+
+Thu Jun 2 09:10:38 2005 Chris Cleeland <cleeland_c@ociweb.com>
+
+ * tests/IOR_Endpoint_Hostnames/generate_ior.cpp (main): Added
+ explicit OrbId to ORB_init() call to fix errors on emulated
+ exception builds.
+
+Thu Jun 2 07:04:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerate.
+
+ * orbsvcs/orbsvcs/Svc_Utils.mpc:
+
+ Add svc_utils_export.h to Header File section.
+
+Thu Jun 2 09:19:50 2005 Simon McQueen <sm@prismtech.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
+
+ Exception macro fix. Thanks to jmegq@radiance.com for the
+ report and fix. This fixes bug #2135.
+
+Wed Jun 1 14:05:31 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/tests/ImplRepo/run_test.pl:
+
+ Fix the persistent_ir test for unix platforms.
+
+Wed Jun 1 09:26:14 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
+
+ More fixes for exception macros.
+
+Wed Jun 1 08:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/Root_POA.cpp:
+ Increment refcount on the servant in the id_to_servant method.
+
+ * tests/POA/Identity/Identity.cpp:
+ Use ServantBase_var to store the servant pointer
+
+Wed Jun 1 02:50:28 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
+
+ * tests/Muxing/Receiver.h:
+
+ Removed inheritance from PortableServer::RefcountServantBase
+ since reference is on by default. Please see "Thu May 26
+ 10:17:12 UTC 2005 Johnny Willemsen
+ <jwillemsen@remedy.nl>". Many tests need to be changed
+ similarly.
+
+ * tests/Muxing/svc.conf:
+
+ Added -ORBConnectionCacheMax option to the test.
+
+Tue May 31 22:43:10 2005 <cleeland_c@ociweb.com>
+
+ * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp (main):
+ * tests/IOR_Endpoint_Hostnames/generate_ior.cpp (main):
+
+ Fixed warnings related to unused args or variables.
+
+Tue May 31 19:28:48 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_codegen.cpp:
+ * TAO_IDL/be/be_visitor_exception/exception_ch.cpp:
+ * TAO_IDL/be/be_visitor_exception/exception_cs.cpp:
+ * TAO_IDL/include/utl_err.h:
+ * TAO_IDL/util/utl_err.cpp:
+
+ Since the typecode of a user-defined IDL exception is required
+ by any IDL operation that raises it, changed the logic of the
+ -St option to be ignored for user exceptions. An informative
+ message is also output for each user exception encountered if
+ the -St option is used. Formerly, the simultaneous appearance
+ of -St and user exceptions would be made apparent only by a
+ C++ compile failure.
+
+ * docs/compiler.html:
+
+ Updated IDL compiler documentation to reflect the above change.
+
+Tue May 31 10:08:27 2005 Justin Michel <michel_j@ociweb.com>
+
+ * tao/IIOP_Endpoint.cpp:
+
+ Add ACE_UNUSED_ARG for variable only used in assert.
+
+Tue May 31 09:19:10 2005 Chris Cleeland <cleeland@ociweb.com>
+
+ * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp (dotted_decimal_address):
+
+ Removed '#if 0' bracketing around this method. I don't know why
+ this method was removed in the first place, but the originator
+ of that change is unavailable for consultation for the next
+ week, so I will err on the side of making things compile.
+
+ * tests/IOR_Endpoint_Hostnames/IOR_Endpoint_Hostnames.mpc:
+ * tests/IOR_Endpoint_Hostnames/bogus_i.h:
+
+ Fixed fuzz build errors related to RCS Id strings and MSC
+ version checks, etc.
+
+Tue May 31 09:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORBInitializer_Registry.cpp:
+ Reverted my change of Mon May 30 13:14:12 UTC 2005. With my change
+ we are 3.0.3 corba compliant but this is not usable for our users.
+ The draft 3.1 seems to describe the wanted behaviour better. I keep
+ the regression test in the archive, the bugzilla entry is reopened.
+ We will look at bug 2088 again
+
+Mon May 30 22:19:54 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
+
+ * tao/Transport.h (post_connect_hook):
+ * tao/Transport.cpp:
+
+ Added post_connect_hook () method which is invoked just after
+ connection establishment (or after a connection is fetched from
+ cache). The return value signifies whether the invoker should
+ proceed with post connection establishment
+ activities or not. There are a wide range of use cases, for
+ example protocols like SSLIOP need this to verify whether
+ connections already established have valid
+ certificates. Validation of certificates/credentials can be done
+ inside this method. Implementations of this method can even
+ tear down the connection, and return a false to the
+ invoker. There are no pre_connect_hooks () since the transport
+ doesn't exist before a connection establishment. :-). A default
+ noop implementation has been provided.
+
+ * tao/Transport_Connector.cpp:
+
+ Invoke post_connect_hook () after grabbing a connection from
+ cache.
+
+Mon May 30 22:11:35 2005 Chris Cleeland <cleeland@ociweb.com>
+
+ * tests/IOR_Endpoint_Hostnames/bogus_i.cpp:
+ * tests/IOR_Endpoint_Hostnames/generate_ior.cpp:
+
+ Fix ACE_RCSID macro usage that prevented compilation.
+
+Mon May 30 18:27:22 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/include/ast_module.h:
+ * TAO_IDL/include/utl_scope.h:
+ * TAO_IDL/util/utl_scope.cpp:
+
+ Fixed discrepancies in the signature of look_in_previous()
+ between the no-op UTL_Scope version and the AST_Module
+ version. These discrepancies were causing warnings with
+ the Borland compiler.
+
+Mon May 30 10:23:27 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (get_log_qos, set_log_qos):
+
+ Fixed compilation on systems where new() does not throw an
+ exception on failure (i.e. ACE_NEW_THROWS_EXCEPTIONS is not
+ set).
+
+Mon May 30 13:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Bug_2088/*:
+ Added a regression for bugzilla bug 2088. When an ORBInitializer
+ throws an exception, this should be ignored and the next
+ ORBInitializer should be called. Previously an exception was
+ propagated back to the caller of ORB::init(). See also 21.7.3.1
+ of the corba spec.
+
+ * tao/ORBInitializer_Registry.cpp:
+ Fixed bug 2088, catch exceptions locally.
+
+Mon May 30 12:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Cleanup_Func_Registry.h:
+ Removed not needed friend classes
+
+Sat May 28 08:59:32 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
+
+ * tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc:
+
+ Now there is an mpb file in ACE_MPC for the boost related
+ settings. Changed the mpc base project accordingly.
+
+Fri May 27 20:14:56 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (check_grammar):
+
+ Changed to accept TCL, ETCL, and EXTENDED_TCL like the
+ Notification Service.
+
+Fri May 27 15:19:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp:
+ * orbsvcs/orbsvcs/Log/Log_i.h:
+
+ Changed class to store a single QoS property instead of list, as
+ the currently specified properties are mutually exclusive. This
+ greatly simplifies the get_log_qos and set_log_qos methods.
+
+ Changed set_log_qos to return all of the unknown/unsupported QoS
+ properties when throwing the UnsupportedQoS exception.
+
+Fri May 27 17:01:24 2005 Chris Cleeland <cleeland_c@ociweb.com>
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
+ * tao/IIOP_Connection_Handler.cpp:
+
+ Corrected a problem whereby, when listen points received in a
+ bidirectional context get processed, the key for the entry made
+ in the transport cache was created using the receiver's notion
+ of whether dotted decimal addresses (-ORBDottedDecimalAddresses)
+ should be used, rather than how the listen points were sent by
+ the sender. In doing so, when, for example, a CORBA server was
+ using -ORBDottedDecimalAddresses and the client was not, the
+ client's listen point got cached using its IP address rather
+ than its hostname. However, all the IORs distributed by the
+ client would use the hostname, and, thus, the server would not
+ be able to find a match for the client's endpoint in its cache,
+ and subsequently try to create a new one.
+
+ The change now creates an entry in the cache using, for the
+ hostname portion of the key, the host name however the client
+ sent the hostname. This should insure that a receiver of a
+ bidirectional context will have the ability to find a match in
+ the transport cache.
+
+ This change supercedes the following changelog entry:
+
+ Thu Sep 13 11:05:13 2001 Balachandran Natarajan <bala@cs.wustl.edu>
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
+ * tao/IIOP_Connection_Handler.cpp (process_listen_point_list):
+
+ When creating an IIOP Endpoint, passed in the value of the
+ ORBDottedDecimal address value from the ORB_Core. This is a real
+ stupid mistake :(. Added a debug statement. Thanks to Werner
+ Buchert <w.buchert@medat.de> for reporting this problem.
+
+ * tao/IIOP_Connection_Handler.cpp:
+ * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp:
+ * tao/IIOP_Acceptor.h:
+ * tao/IIOP_Acceptor.cpp:
+ * tao/IIOP_Transport.cpp:
+
+ Modified the IIOP Acceptor so that the behavior for the host
+ identifier (hostname or IP address) that appears in IIOP
+ profiles is consistent with the following:
+
+ 1. value from "hostname_in_ior", if specified;
+ 2. setting of -ORBDottedDecimalAddresses option
+ 3. value for <hostname> used in -ORBEndpoint iiop://<hostname>
+ 4. whatever TAO magically comes up with
+
+ The significant change here is that previous to this change,
+ numbers 1 and 2 were reversed, i.e., -ORBDottedDecimalAddresses
+ took precedence over hostname_in_ior.
+
+ * tests/IOR_Endpoint_Hostnames/IOR_Endpoint_Hostnames.mpc:
+ * tests/IOR_Endpoint_Hostnames/bogus.idl:
+ * tests/IOR_Endpoint_Hostnames/bogus_i.cpp:
+ * tests/IOR_Endpoint_Hostnames/bogus_i.h:
+ * tests/IOR_Endpoint_Hostnames/generate_ior.cpp:
+ * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp:
+ * tests/IOR_Endpoint_Hostnames/run_test.pl:
+
+ Added a new functionality/regression test for the change listed
+ above. The run_test.pl prints out a matrix for permutations and
+ expected results, and indicates whether each permutation
+ succeeds or fails. It also depends upon a new option to catior,
+ found in the next entry.
+
+ * orbsvcs/tests/Security/BiDirectional/server.conf:
+
+ Removed some hardcoded paths to OCI personal home directories.
+
+ * utils/catior/catior.cpp:
+
+ Added a "-x" option that works like "-f" except that it reads
+ the IOR from standard input (stdin or cin) rather than from a
+ file. This makes catior much more like the unix "cat" command,
+ and enables it to be used in a pipeline.
+
+Fri May 27 15:54:44 2005 Justin Michel <michel_j@ociweb.com>
+
+ * docs/Options.html:
+ * tao/IIOP_Connector.cpp:
+ * tao/IIOP_Endpoint.h:
+ * tao/IIOP_Endpoint.cpp:
+ * tao/IIOP_Profile.cpp:
+ * tao/params.cpp:
+
+ Reimplemented the -ORBPreferredInterfaces option to support
+ wildcards.
+
+Fri May 27 15:30:21 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/Activator_NT_Service.h:
+ * orbsvcs/ImplRepo_Service/Locator_NT_Service.h:
+ * tao/TypeCode_Base_Attributes.h:
+ * tao/TypeCode_Case.h:
+ * tao/TypeCode_Case_T.h:
+ * tao/TypeCode_Struct_Field.h:
+ * tao/TypeCode_Value_Field.h:
+ * utils/wxNamingViewer/pch.h:
+
+ These files #included config.h which isn't safe, because it
+ won't necessarilly pick up the correct symbols. For example, I
+ caught this by trying to build ACE on Windows with
+ __ACE_INLINE__ = 0. The files that #included config.h directly
+ saw that it was defined as 0, but changing them to #include
+ config-all.h instead, correctly saw that the symbol was
+ undefined.
+
+Fri May 27 13:12:10 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tests/Any/Recursive/Test.idl:
+
+ Added new user exception to be used when reporting Any
+ demarshaling errors.
+
+ * tests/Any/Recursive/client.cpp:
+
+ Fixed unused argument warnings.
+
+ Use the new user exception when report Any demarshaling
+ failures, instead of CORBA::INV_OBJREF.
+
+Fri May 27 08:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/POA/Default_Servant/Default_Servant.cpp:
+ Slightly modified this test to test reference_to_servant with
+ reference counting
+
+ * tests/POA/Deactivate_Object/server.cpp:
+ Added a call to reference_to_servant. This as a regression for
+ a bug where we didn't increment the reference count on the
+ servant before returning it.
+
+ * tao/PortableServer/Root_POA.cpp (reference_to_servant_i):
+ Increment the reference count on the servant before returning it.
+ Thanks to Konstantinos Lykiardopoulos <klyk at intracom dot gr>
+ and Lothar Werzinger <lothar at xcerla dot com> for reporting
+ this problem.
+
+ * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
+ In system_id_to_servant() don't increment the refcount on the
+ servant, this is done by the POA.
+
+Fri May 27 08:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/Servant_Base.cpp:
+ Fixed typo in comment
+
+Fri May 27 08:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+ Fixed conversion warnings
+
+Fri May 27 00:36:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tests/Any/Recursive/Hello.cpp:
+ * tests/Any/Recursive/Hello.h:
+ * tests/Any/Recursive/README:
+ * tests/Any/Recursive/RecursiveHello.mpc:
+ * tests/Any/Recursive/Test.idl:
+ * tests/Any/Recursive/client.cpp:
+ * tests/Any/Recursive/run_test.pl:
+ * tests/Any/Recursive/server.cpp:
+
+ New test that verifies properly functioning recursive type Any
+ insertion and extraction support. It also indirectly verifies
+ that recursive TypeCode support is working.
+
+Thu May 26 16:09:50 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
+
+ Functions with two or more try blocks must use ACE_TRY_EX.
+
+ * orbsvcs/examples/ImR/Advanced/TestClient.cpp:
+
+ Use getline() instead of operator>> to read in lines of
+ text from a file into a std::string. Use string::c_str() with
+ operator<< instead of relying on existence of ostream extraction
+ operators for strings. A more useful solution might be to
+ provide insertion/extraction operators for platforms that are
+ missing them.
+
+Thu May 26 16:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp:
+ * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp:
+ Updated for interceptor_list changes
+
+Thu May 26 14:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Interceptor_List.cpp:
+ Fixed gnu warning
+
+Thu May 26 10:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ Made the Interceptor_List a template which is now used instead of a
+ base class with derived specific list classes. This is now in the TAO
+ namespace instead of using a TAO_ prefix.
+
+ * tao/Interceptor_List.{h,cpp}:
+ The Interceptor_List is now a template
+
+ * tao/ClientRequestInterceptor_List.{h,cpp,inl}:
+ * tao/ServerRequestInterceptor_List.{h,cpp,inl}:
+ * tao/IORInterceptor/IORInterceptor_List.{h,cpp,inl}:
+ Removed these files, we have now template instantiations instead
+ of specific classes
+
+ * tao/ORB_Core.{h,cpp,i}:
+ Update for changes above.
+
+ * tao/IORInterceptor_Adapter.h:
+ Updated for interceptor list change
+
+ * tao/IORInterceptor/IORInterceptor_Adapter_Impl.h:
+ Updated for interceptor_list change and also implemented
+ adapter_state_changed in this class because we don't have
+ a specific IORInterceptor list anymore where this was
+ implemented.
+
+ * tao/ClientRequestInterceptor_Adapter.{h,cpp,inl}:
+ Updated because of ClientInterceptorList change
+
+ * PortableServer/ServerInterceptorAdapter.h:
+ Updated because of ServerRequestInterceptor List change
+
+ * tao/tao.mpc:
+ * tao/Makefile.am:
+ Updated for changes above
+
+Thu May 26 10:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ According to the latest C++ mapping, reference counting is mandatory;
+ the RefCountServantBase class is now a legacy artifact. Thanks to
+ Frank Pilhofer <fpilhofe at mc dot com> for reporting this.
+ This fixes bugzilla [1952].
+
+ * tao/Abstract_Servant_Base.{h,cpp}:
+ Made the add_ref/remove_ref methods pure virtual and added
+ _refcount_value
+
+ * tao/PortableServer/Servant_Base.{h,cpp}:
+ Added reference counting to TAO_ServantBase and removed
+ TAO_RefCountServantBase
+
+ * tao/PortableServer/PS_ForwardC.h:
+ Make RefCountServantBase a noop struct
+
+ * tao/PortableServer/diffs/PS_Forward.diff:
+ Updated
+
+Thu May 26 09:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Profile.h:
+ Removed commented out code
+
+ * tao/QtResource_Factory.h:
+ Doxygen improvement
+
+Thu May 26 08:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Portable_Interceptors/Collocated/Dynamic/interceptors.cpp:
+ Retrieve the object_id in the receive_request. According to
+ Konstantinos Lykiardopoulos <klyk at intracom dot gr> this failed
+ with the 1.4.5 release of TAO but it works now again. Added this
+ as regression so that we don't have a problem in the future again
+
+Thu May 26 07:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ImR_Client/ImplRepo.pidl:
+ * tao/ImR_Client/ServerObject.pidl:
+ Updated regeneration instructions
+
+Thu May 26 07:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableServer/LifespanStrategyPersistent.cpp:
+ Also add a process directive that uses the xml svc.conf way of
+ specifying this. This fixes bugzilla 2127. Thanks to Lothar
+ Werzinger <lothar at xcerla dot com> for reporting this.
+
+Wed May 25 23:42:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
+ * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
+
+ Changed to pass the ORB pointer to the factories' activate()
+ method.
+
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
+ Changed to pass the ORB pointer to the factory's init() method.
+
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
+ * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp
+ * orbsvcs/orbsvcs/Log/EventLogFactory_i.h
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp
+ * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h
+
+ Changed to stash away ORB pointer in the activate() method, and
+ to pass it to the Log servant constructors.
+
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h
+
+ Changed to stash away ORB pointer in the init() method, and to
+ pass it to the RTEventLog servant constructor.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp
+ * orbsvcs/orbsvcs/Log/Log_i.h
+ * orbsvcs/orbsvcs/Log/BasicLog_i.cpp
+ * orbsvcs/orbsvcs/Log/BasicLog_i.h
+ * orbsvcs/orbsvcs/Log/EventLog_i.cpp
+ * orbsvcs/orbsvcs/Log/EventLog_i.h
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp
+ * orbsvcs/orbsvcs/Log/NotifyLog_i.h
+ * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp
+ * orbsvcs/orbsvcs/Log/RTEventLog_i.h
+
+ Changed constructor to take an ORB pointer instead of a Reactor
+ pointer. The latter had defaulted to use the Reactor Singleton
+ instance, but using the servant ORB's reactor ensures the event
+ loop will be active. Curiously, the old reactor pointer wasn't
+ being used. That will change soon, as we'll be adding timer
+ handlers for database flush and compaction.
+
+Wed May 25 20:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc:
+ Use rtevent_serv as base project
+
+Wed May 25 20:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
+ Changed order of the projects.
+
+Wed May 25 12:24:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/DynamicInterface/Unknown_User_Exception.h (_type):
+ * tao/DynamicInterface/Unknown_User_Exception.h (_type):
+
+ Renamed this method to "_tao_type" since it is meant to be an
+ override for the CORBA::Exception::_tao_type() base class
+ method. Addresses CORBA::UnknownUserException Any insertion
+ problems.
+
+Tue May 24 21:13:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Invocation_Adapter.cpp (invoke_collocated_i):
+
+ Updated ACE_ASSERT condition to reflect new thru POA case.
+ Thanks to Lothar Werzinger for reporting the assertion.
+
+Tue May 24 19:57:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/Event_Service/Makefile.am:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am:
+ * orbsvcs/performance-tests/RTEvent/lib/Makefile.am:
+ * orbsvcs/tests/EC_Custom_Marshal/Makefile.am:
+ * orbsvcs/tests/EC_MT_Mcast/Makefile.am:
+ * orbsvcs/tests/EC_Mcast/Makefile.am:
+ * orbsvcs/tests/EC_Multiple/Makefile.am:
+ * orbsvcs/tests/EC_Throughput/Makefile.am:
+ * orbsvcs/tests/Event/Basic/Makefile.am:
+ * orbsvcs/tests/Event/Mcast/Common/Makefile.am:
+ * orbsvcs/tests/Event/Mcast/Complex/Makefile.am:
+ * orbsvcs/tests/Event/Mcast/Simple/Makefile.am:
+ * orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am:
+ * orbsvcs/tests/Event/Performance/Makefile.am:
+ * orbsvcs/tests/Event/lib/Makefile.am:
+ * orbsvcs/tests/FtRtEvent/Makefile.am:
+
+ Regenerate for removal of RTOLDEvent and split of RTEvent
+ libraries.
+
+ * orbsvcs/Time_Service/Makefile.am:
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerate for change below.
+
+ * orbsvcs/orbsvcs/CosTime.mpc:
+
+ Inherit from svc_utils.
+
+ * orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp:
+
+ Use new ORBSVCS_Time::Time_Value_to_TimeT() method from the
+ Svc_Utils library to convert timestamp to a TimeBase::TimeT.
+
+ * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp:
+ * orbsvcs/orbsvcs/Log/NotifyLogConsumer.h:
+
+ The specification requires that a structured or typed event
+ should be stored as an Any as specified by the Notification
+ Service, so connect to the channel as an Any consumer.
+
+Tue May 24 14:29:14 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerated.
+
+Tue May 24 14:15:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/RTEvent.mpc:
+ * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
+ * orbsvcs/orbsvcs/RTEvent_Skel.mpc:
+
+ Removed RTEvent MPC group. This causes problems when project
+ Makefile.am's are aggregated.
+
+Tue May 24 11:59:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Time_Utilities.cpp:
+ * orbsvcs/orbsvcs/Time_Utilities.h:
+ * orbsvcs/orbsvcs/Time_Utilities.i:
+
+ Updated comments to Doxygen format.
+
+ Added new methods for converting absolute timestamps between
+ ACE_Time_Value and TimeBase::TimeT.
+
+Tue May 24 10:32:31 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+
+ Regenerated.
+
+Tue May 24 10:58:53 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
+
+ Add missing include.
+
+Tue May 24 09:47:52 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
+
+ Disable fuzz check, because it can't detect the try/catch
+ in the calling function.
+
+Tue May 24 09:14:57 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/examples/ImR/Advanced/TestServer.h:
+ * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
+
+ This example was simply copied from 1.4a, and I forgot to make
+ the adjustments required by the POA refactoring.
+
+ * tao/ImR_Client/ImplRepoC.h:
+
+ The ImplRepo.pidl had #include ServerObject.pidl, but didn't include
+ ServerObjectC.h. For now, I manually added the include, but this isn't
+ a final solution.
+
+Mon May 23 14:50:27 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/examples/ImR/Advanced/Advanced.mpc:
+
+ Changed from requires += exceptions to inheriting from exceptions. Hopefully
+ this will eliminate fuzz errors.
+
+Mon May 23 18:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * docs/tutorials/Quoter/RT_Event_Service/Quoter_RT_Event_Service.mpc:
+ Updated for RTEvent library split
+
+Mon May 23 18:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/Simulator/Event_Supplier/Event_Supplier.mpc:
+ Updated for RTEvent library split
+
+Mon May 23 13:24:41 2005 Justin Michel <michel_j@ociweb.com>
+
+ * tao/ImR_Client/ImplRepo.pidl:
+ * tao/ImR_Client/ImplRepoA.cpp:
+ * tao/ImR_Client/ImplRepoC.h:
+ * tao/ImR_Client/ImplRepoC.inl:
+ * tao/ImR_Client/ImplRepoC.cpp:
+ * tao/ImR_Client/ImplRepoS.h:
+ * tao/ImR_Client/ImplRepoS.cpp:
+
+ Re-added the -GA option and updated the command in the pidl to save
+ footprint for static builds.
+
+Mon May 23 18:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.{h,cpp}:
+ Fixed service config macros
+
+Mon May 23 12:38:31 2005 Justin Michel <michel_j@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/Activator_Options.cpp:
+ * orbsvcs/ImplRepo_Service/ImR_Activator.cpp:
+ * orbsvcs/ImplRepo_Service/ImR_Activator.idl:
+ * orbsvcs/ImplRepo_Service/ImR_Activator_i.h:
+ * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
+ * orbsvcs/ImplRepo_Service/ImR_Locator.cpp:
+ * orbsvcs/ImplRepo_Service/ImR_Locator_i.h:
+ * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
+ * orbsvcs/ImplRepo_Service/Locator_Options.h:
+ * orbsvcs/ImplRepo_Service/Locator_Options.cpp:
+ * orbsvcs/ImplRepo_Service/Locator_Repository.h:
+ * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
+ * orbsvcs/ImplRepo_Service/README.txt:
+ * orbsvcs/ImplRepo_Service/tao_imr_i.h:
+ * orbsvcs/ImplRepo_Service/tao_imr_i.cpp:
+ * tao/ImR_Client/ImR_Client.cpp:
+ * tao/ImR_Client/ImplRepo.pidl:
+ * tao/ImR_Client/ImplRepoC.h:
+ * tao/ImR_Client/ImplRepoC.inl:
+ * tao/ImR_Client/ImplRepoC.cpp:
+ * tao/ImR_Client/ImplRepoS.h:
+ * tao/ImR_Client/ImplRepoS.cpp:
+
+ Several bug fixes and enhancments to the ImR.
+ Cleaned up the perl to use strict and compile without warnings.
+ Displayed a message that the poa was being registered with the
+ ImR even when -orbuseimr 0 was specified.
+ Stop printing the exception details for unexpected exceptions
+ that happen during a call to server->shutdown(). At least on
+ windows, we often get COMM_FAILURE or TRANSIENT, because the
+ socket is not shutdown gracefully by the server.
+ Don't print the exception when a TRANSIENT is received while
+ pinging the server. This is not an error. Not sure why we were
+ getting 'No usable profile in IOR' messages though, when we
+ expect a 'POA in holding state'.
+ Merge in changes to support ImplRepo_Service -e, which
+ will clear the repository on startup. This makes it easier to write
+ persistence tests, and might be useful in general.
+ Updated to automatically set the ImplRepoServiceIOR and
+ TAO_USE_IMR environment variables, obviating the need to pass
+ -orbuseimr or -orbinitref ImplRepoService=... when using an
+ Activator to start a server.
+ Add -orbuseimr 0 to the cmd line args, so that the TAO_USE_IMR=1
+ environment variable can be used safely.
+ Fix incorrect exception specifications in activator.
+ Fix command line help descriptions.
+ Combine add/update operations in the imr and imr util.
+ Support clean shutdown using ctrl-c as well as the
+ imr util shutdown-repo command.
+ Add detection of server process death, and an option to
+ notify the ImR when this happens, to the activator.
+ Fix some problems with exception macros and unused vars.
+ Fix bug with case-insensitive activator name and binary persistence.
+
+
+ * orbsvcs/examples/ImR/Advanced/Advanced.mpc:
+ * orbsvcs/examples/ImR/Advanced/Manager.idl:
+ * orbsvcs/examples/ImR/Advanced/Manager_i.h:
+ * orbsvcs/examples/ImR/Advanced/Manager_i.cpp:
+ * orbsvcs/examples/ImR/Advanced/Messenger.idl:
+ * orbsvcs/examples/ImR/Advanced/Messenger_i.h:
+ * orbsvcs/examples/ImR/Advanced/Messenger_i.cpp:
+ * orbsvcs/examples/ImR/Advanced/README:
+ * orbsvcs/examples/ImR/Advanced/TestClient.h:
+ * orbsvcs/examples/ImR/Advanced/TestClient.cpp:
+ * orbsvcs/examples/ImR/Advanced/TestServer.h:
+ * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
+ * orbsvcs/examples/ImR/Advanced/client_main.cpp:
+ * orbsvcs/examples/ImR/Advanced/drivers/all:
+ * orbsvcs/examples/ImR/Advanced/drivers/defaults:
+ * orbsvcs/examples/ImR/Advanced/drivers/environment:
+ * orbsvcs/examples/ImR/Advanced/drivers/invocation:
+ * orbsvcs/examples/ImR/Advanced/drivers/persistence:
+ * orbsvcs/examples/ImR/Advanced/drivers/retry:
+ * orbsvcs/examples/ImR/Advanced/drivers/use_environment:
+ * orbsvcs/examples/ImR/Advanced/drivers/use_invocation:
+ * orbsvcs/examples/ImR/Advanced/drivers/use_persistence:
+ * orbsvcs/examples/ImR/Advanced/manager_main.cpp:
+ * orbsvcs/examples/ImR/Advanced/run_test.pl:
+ * orbsvcs/examples/ImR/Advanced/server_main.cpp:
+
+ Dave Giovannini's new test which provides greater
+ coverage of ImR features. Some tests are still failing, so
+ this is not ready to be enabled for nightly builds.
+
+ * orbsvcs/orbsvcs/IOR_Multicast.cpp:
+
+ Fixed bug in unregistration, and updated log messages
+ to show the name of the class and method being logged.
+
+ * orbsvcs/orbsvcs/Notify/XML_Saver.h:
+ * orbsvcs/orbsvcs/Notify/XML_Saver.cpp:
+
+ Updated to use the new ACEXML_escape_string() function.
+
+ * orbsvcs/orbsvcs/Shutdown_Utilities.h:
+ * orbsvcs/orbsvcs/Shutdown_Utilities.cpp:
+
+ Updated to work on Windows.
+
+ * orbsvcs/tests/ImplRepo/airplane_server_i.h:
+ * orbsvcs/tests/ImplRepo/airplane_server_i.cpp:
+ * orbsvcs/tests/ImplRepo/locked/run_test.pl:
+ * orbsvcs/tests/ImplRepo/nestea_server_i.h:
+ * orbsvcs/tests/ImplRepo/nestea_server_i.cpp:
+ * orbsvcs/tests/ImplRepo/run_test.pl:
+ * orbsvcs/tests/ImplRepo/scale/server_i.cpp:
+
+ Basic code cleanup to match latest 1.4a.
+ Some tests were not shutting down correctly, and were
+ activating the poa manager too soon.
+ Nestea test prints the contents of ImplRepoServiceIOR and TAO_USE_IMR.
+ Stop passing -orbuseimr 1 and imr_init_ref in the command lines
+ registered with the ImR.
+
+
+ * orbsvcs/tests/Notify/Reconnecting/run_test.pl:
+
+ Use -ORBObjRefStyle URL so that the XML file has consistent
+ contents, and can be compared for equality. This should let this
+ test pass on more (all?) platforms.
+
+ * tao/ORB_Core.cpp:
+
+ Add missing support for -ORBObjRefStyle IOR.
+
+ * tao/ImR_Client/ImplRepoA.cpp:
+
+ Removed this file, because the idl command line wasn't set to generate it.
+
+
+Mon May 23 06:12:01 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::remove_old_records):
+
+ Fixed typo introduced in last change.
+
+Mon May 23 12:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_2119_Regression/test.mpc:
+ Simplified this mpc file
+
+Mon May 23 11:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Event/ECG_Adapters.h:
+ * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h:
+ * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h:
+ * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h:
+ * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
+ * orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h:
+ * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
+ * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h:
+ * orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h:
+ * orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h:
+ * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h:
+ * orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_EH.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
+ * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
+ * orbsvcs/orbsvcs/Event/EC_And_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Basic_Factory.h:
+ * orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h:
+ * orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h:
+ * orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h:
+ * orbsvcs/orbsvcs/Event/EC_ConsumerControl.h:
+ * orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp
+ * orbsvcs/orbsvcs/Event/EC_Default_Factory.h:
+ * orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h:
+ * orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h:
+ * orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Dispatching.h:
+ * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h:
+ * orbsvcs/orbsvcs/Event/EC_Event_Channel.h:
+ * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h:
+ * orbsvcs/orbsvcs/Event/EC_Factory.h:
+ * orbsvcs/orbsvcs/Event/EC_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Filter_Builder.h:
+ * orbsvcs/orbsvcs/Event/EC_Gateway.h:
+ * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h:
+ * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp
+ * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h:
+ * orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h:
+ * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h:
+ * orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h:
+ * orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Negation_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Null_Factory.h:
+ * orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h:
+ * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h:
+ * orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h:
+ * orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h:
+ * orbsvcs/orbsvcs/Event/EC_ProxySupplier.h:
+ * orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h:
+ * orbsvcs/orbsvcs/Event/EC_QOS_Info.h:
+ * orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h:
+ * orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h:
+ * orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h:
+ * orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h:
+ * orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h:
+ * orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h:
+ * orbsvcs/orbsvcs/Event/EC_SupplierControl.h:
+ * orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h:
+ * orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h:
+ * orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_Type_Filter.h:
+ * orbsvcs/orbsvcs/Event/EC_UDP_Admin.h:
+ * orbsvcs/orbsvcs/Event/event_export.h:
+ Include the RTEvent_Serv file and updated export macro
+
+ * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
+ * orbsvcs/orbsvcs/RTEvent_Serv.rc:
+ * orbsvcs/orbsvcs/RTEvent_Skel.mpc:
+ * orbsvcs/orbsvcs/RTEvent_Skel.rc:
+ * orbsvcs/orbsvcs/Event/event_serv_export.h:
+ * orbsvcs/orbsvcs/Event/event_skel_export.h:
+ New files for the new RTEvent Serv and Skel libraries
+
+ * orbsvcs/Event_Service/Event_Service.mpc:
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
+ * orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc:
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/CosEC_RtEC_Based_lib.mpc:
+ * orbsvcs/examples/Log/RTEvent/Log_RTEvent.mpc:
+ * orbsvcs/examples/RtEC/IIOPGateway/RtEC_IIOPGateway.mpc:
+ * orbsvcs/examples/RtEC/Kokyu/RtECKokyu.mpc:
+ * orbsvcs/examples/RtEC/MCast/RtEC_MCast.mpc:
+ * orbsvcs/examples/RtEC/Schedule/RtEC_Schedule.mpc:
+ * orbsvcs/examples/RtEC/Simple/RtEC_Simple.mpc:
+ * orbsvcs/orbsvcs/FtRtEvent.mpc:
+ * orbsvcs/orbsvcs/RTCORBAEvent.mpc:
+ * orbsvcs/orbsvcs/RTEvent.mpc:
+ * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
+ * orbsvcs/orbsvcs/RTKokyuEvent.mpc:
+ * orbsvcs/orbsvcs/RTSchedEvent.mpc:
+ * orbsvcs/performance-tests/RTEvent/lib/RTEC_Perf.mpc:
+ * orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc:
+ * orbsvcs/tests/EC_Mcast/EC_Mcast.mpc:
+ * orbsvcs/tests/EC_Multiple/EC_Multiple.mpc:
+ * orbsvcs/tests/EC_Throughput/EC_Throughput.mpc:
+ * orbsvcs/tests/Event/Basic/rteventtestexe.mpb
+ * orbsvcs/tests/Event/Mcast/Common/ECMcastTests_lib.mpc:
+ * orbsvcs/tests/Event/Mcast/Complex/Complex.mpc:
+ * orbsvcs/tests/Event/Mcast/Simple/Simple.mpc:
+ * orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc:
+ * orbsvcs/tests/Event/Performance/Event_Performance.mpc:
+ * orbsvcs/tests/Event/lib/Event_lib.mpc:
+ Updated because of splitted RTEvent library
+
+Mon May 23 09:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/EC_Custom_Marshal/run_test.pl:
+ No need to specify the type of the event service anymore
+
+Mon May 23 05:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Event/BCU.cpp BCU.h:
+ * orbsvcs/orbsvcs/Event/Debug_Macros.h:
+ * orbsvcs/orbsvcs/Event/Dispatching_Modules.{h,cpp,i}:
+ * orbsvcs/orbsvcs/Event/Event_Channel.{h,cpp,i}:
+ * orbsvcs/orbsvcs/Event/Event_Manip.{h,cpp,i}:
+ * orbsvcs/orbsvcs/Event/Fast_Reactor.h
+ * orbsvcs/orbsvcs/Event/GPlot_File.{h,cpp,i}:
+ * orbsvcs/orbsvcs/Event/Local_ESTypes.{h,cpp}:
+ * orbsvcs/orbsvcs/Event/Memory_Pools.{h,cpp,i}:
+ * orbsvcs/orbsvcs/Event/Module_Factory.{h,cpp}:
+ * orbsvcs/orbsvcs/Event/old_event_export.h:
+ * orbsvcs/orbsvcs/Event/ReactorTask.{h,cpp}:
+ * orbsvcs/orbsvcs/Event/RT_Task.{cpp,h,i}:
+ * orbsvcs/orbsvcs/Event/Timer_Module.{h,cpp,i}:
+ Removed the old RTEvent implementation. This is already deprecated
+ for years. This fixes bugzilla bug 2047
+
+ * orbsvcs/orbsvcs/Event_Service_Constants.h:
+ Removed the constants that are for the old ec
+
+Mon May 23 05:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/Event_Service/Event_Service.{h,cpp}:
+ Removed module_factory_, it was for the old ec
+
+Mon May 23 05:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/Simulator/Event_Supplier/DualEC_Sup.cpp:
+ Fixed casing of include
+
+Sun May 22 22:10:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp (display_records)
+ (delete_records):
+
+ Changed query language parameter from "TCL" to "EXTENDED_TCL".
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (QUERY_LANG_SUPPORTED_BY_LOG):
+
+ Changed from "TCL" to "EXTENDED_TCL".
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::delete_records_by_id)
+ (TAO_Log_i::delete_records, TAO_Log_i::remove_old_records):
+
+ Don't bother checking whether current_size is less than max_size
+ if not log_full. Avoids potentially costly calls into log store
+ (if/when we support strategized stores).
+
+Sun May 22 18:02:07 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::delete_records)
+ (TAO_Log_i::remove_old_records):
+
+ Like delete_records_by_id(), reset "log_full" if "current_size"
+ is less than "max_size".
+
+Sun May 22 17:01:56 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::scheduled):
+
+ Removed duplicate fetch of current time.
+
+ * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::remove_old_records):
+
+ Corrected calculation of purge time. Arithmetic was being done on
+ time values without normalizing units first.
+
+Sun May 22 16:37:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Sun May 22 20:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.{cpp,h}:
+ * orbsvcs/Event_Service/Event_Service.{h,cpp}:
+ * orbsvcs/tests/EC_Throughput/ECT_Throughput.{h,cpp}:
+ * examples/Simulator/Event_Supplier/DualEC_Sup.{h,cpp}:
+ * orbsvcs/tests/Event/lib/Driver.{h,cpp}:
+ * orbsvcs/examples/RtEC/Kokyu/Service.cpp:
+ * orbsvcs/examples/RtEC/Schedule/Service.cpp:
+ Removed support for the old rt event service, this will be removed
+ soon.
+
+ * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
+ Removed not needed includes
+
+ * orbsvcs/Event_Service/Event_Service.mpc:
+ * orbsvcs/tests/EC_Throughput/EC_Throughput.mpc:
+ * orbsvcs/examples/RtEC/Schedule/RtEC_Schedule.mpc:
+ * examples/Simulator/Event_Supplier/Event_Supplier.mpc:
+ * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
+ Removed rtoldevent as base project
+
+ * orbsvcs/tests/EC_Throughput/run_test.pl:
+ Updated because we just only have one RTEvent implementation
+
+ * orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp:
+ * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp:
+ * orbsvcs/Dump_Schedule/Dump_Schedule.cpp:
+ Removed workaround for very old Sun compiler
+
+ * orbsvcs/examples/RtEC/Schedule/Consumer.cpp:
+ * orbsvcs/examples/RtEC/Schedule/Supplier.cpp:
+ Removed empty explicit instantiation block
+
+ * orbsvcs/examples/RtEC/Schedule/Service.cpp:
+ * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
+ Removed not needed includes of old rtevent files
+
+Sun May 22 10:33:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/PortableServer/Root_POA.cpp (create_POA_i):
+
+ Increment the reference count immediately after binding the
+ child POA to children map. Addresses a seg fault introduced by
+ the leak fix described in ChangeLog entry "Sun May 22 00:00:31
+ 2005 Ossama Othman <ossama@dre.vanderbilt.edu>".
+
+ * tao/PortableServer/Root_POA.h (create_POA_i):
+
+ No need to return a pointer to TAO_Root_POA. Return a
+ PortableServer::POA_ptr instead. Allows implementation to be
+ slightly simplified.
+
+Sun May 22 14:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/EC_Multiple/EC_Multiple.mpc:
+ * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp:
+ Converted this test to use the new RTEC instead of the old one
+ which will be removed soon. Also removed a workaround for the Sun 4.2
+ compiler which we don't support already for a long time
+
+Sun May 22 14:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PICurrent.h:
+ Fixed warning
+
+Sun May 22 11:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ClientRequestInfo_i.h:
+ * tao/ClientRequestInterceptor_Adapter.h:
+ * tao/ClientRequestInterceptor_List.cpp:
+ * tao/ClientRequestInterceptor_List.h:
+ * tao/ClientRequestInterceptor_List.inl:
+ * tao/Interceptor_List.cpp:
+ * tao/Interceptor_List.h:
+ * tao/Interceptor_List.inl:
+ * tao/ORB_Core.h:
+ * tao/PICurrent.h:
+ * tao/PICurrent_Copy_Callback.h:
+ * tao/PICurrent_ORBInitializer.h:
+ * tao/ServerRequestInterceptor_List.cpp:
+ * tao/ServerRequestInterceptor_List.h:
+ * tao/ServerRequestInterceptor_List.inl:
+ * tao/tao.mpc:
+ * tao/PortableServer/ServerInterceptorAdapter.h:
+ Moved ClientRequestInterceptor_List and
+ ServerRequestInterceptor_List to their own files and updated
+ includes.
+
+Sun May 22 11:54:16 2005 Olli Savia <ops@iki.fi>
+
+ * tao/Collocated_Invocation.cpp:
+
+ Fixed a typo in comment.
+
+Sun May 22 00:00:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+
+ * tao/Any.h (to_object, to_abstract_base, to_value):
+
+ Made these constructors explicit, in keeping with the CORBA spec
+ since it requires that the other "to_" helper structs have
+ explicit single argument constructors if supported by the C++
+ compiler.
+
+ * tao/PortableServer/Root_POA.cpp (create_POA_i):
+
+ Do not duplicate POA returned from the other create_POA_i()
+ override called in this method since we are returning it
+ directly to the caller and do not need to retain ownership.
+ Fixes a number of memory leaks.
+
+ * tests/ORT/ObjectReferenceFactory.h:
+
+ CORBA::DefaultValueRefCountBase mix-in class should be the last
+ in the inheritance chain. Addresses potential memory leaks.
+
+ * tests/Param_Test/options.cpp:
+ * tests/Param_Test/options.h:
+
+ Store the test IOR in a CORBA::String_var and drop the explicit
+ calls to CORBA::string_free(). Simplifies memory management and
+ fixes a memory leak.
+
+Sat May 21 18:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Profile.cpp:
+ Fixed unused argument warning when messaging is disabled.
+
+Sat May 21 18:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tests/Bug_2124_Regression/Bug_2124_Regression.mpc:
+ Use taoserver as base project to fix unresolved link errors
+
+Fri May 20 20:47:00 2005 Huang-Ming Huang <hh1@cse.wustl.edu>
+
+ * tao/MProfile.cpp:
+ * tao/Profile.h:
+ * tao/Profile.cpp
+ * tao/Stub.cpp:
+
+ Removed the association of TAO_Profile to TAO_Stub. This allows an
+ instance of TAO_Profile to be shared between different TAO_MProfile
+ objects.
+
+Fri May 20 16:51:35 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.cpp (TAO_LogRecoreStore::log):
+ * orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp:
+
+ Use "%d" instead of "%Q" log format directive for ACE_UINT64_TO_U32
+ parameter.
+
+ * orbsvcs/orbsvcs/Log/LogRecordStore.cpp (TAO_LogRecordStore::update):
+ * orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp:
+
+ Subtract size of existing record and Add size of new record to
+ current size.
+
+Fri May 20 16:44:54 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Fri May 20 17:10:00 2005 Huang-Ming Huang <hh1@cse.wustl.edu>
+
+ * tao/IIOP_Endpoint:
+
+ Fixed problem in TAO_IIOP_Endpoint::is_preferred_network()
+ which should check for empty string rather than null pointer.
+
+Fri May 20 17:00:00 2005 Huang-Ming Huang <hh1@cse.wustl.edu>
+
+ * tao/PortableServer/ServantRetentionStrategyRetain.cpp:
+
+ Fixed problem in ServantRetentionStrategyRetain::find_servant()
+ where servant_upcall.user_id is assigned to a local variable which
+ causes memory access violation when ServerReqeustInfo::object_id()
+ is accessed inside interceptors.
+
+Fri May 20 18:30:23 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_operation/operation.cpp:
+ * TAO_IDL/be/be_visitor_tmplinst/tmplinst_cs.cpp:
+ * TAO_IDL/be/be_visitor_tmplinst/tmplinst_ss.cpp:
+
+ Added global '::' qualifier to several instances of code
+ generation of a scoped name used as a template argument,
+ to avoid ambiguity if there are two modules with the same
+ name at different levels of nesting. This fix closes
+ [BUGID:2125].
+
+ * tests/IDL_Test/array.idl:
+ * tests/IDL_Test/nested_scope.idl:
+ * tests/IDL_Test/typedef.idl:
+
+ Added various IDL snips provided by Simon McQueen
+ <sm@prismtech.com> in various (now closed) Bugzilla entries.
+
+Fri May 20 12:13:13 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * orbsvcs/Naming_Service/NT_Naming_Service.h:
+ * orbsvcs/Naming_Service/NT_Naming_Service.cpp:
+
+ Fixed build problems with Visual C++ 6 on Windows
+
+Fri May 20 15:22:42 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp:
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp:
+
+ Changed the copy constructor for generated skeleton-side
+ valuetype classes private and unimplemented. Skeleton
+ code is generated for valuetypes only if they support a
+ concrete interface. However, these valuetypes also inherit
+ from the stub-side valuetype class, which has a private
+ unimplemented copy constructor. This fact makes it
+ problematic to generate a valid copy constructor for the
+ skeleton-side class, since C++ (and many compilers) require each
+ base class copy constructor to be called in the
+ initialization list.
+
+Fri May 20 15:40:17 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/ORB_Core.i:
+
+ Further to Fri May 20 11:27:02 2005 Simon McQueen:
+ I forgot to commit the accessor implementation. Not
+ my finest hour.
+
+Fri May 20 14:19:08 2005 Simon McQueen <sm@prismtech.com>
+
+ * TAO_IDL/ast/ast_array.cpp:
+
+ Arrays need to take on the "constructed ?" status of the
+ type they are an array of as they do with the size type.
+
+ This fixes bug #2126.
+
+ * tests/Bug_2126_Regression/Bug_2126_Regression.mpc:
+ * tests/Bug_2126_Regression/README:
+ * tests/Bug_2126_Regression/test.cpp:
+ * tests/Bug_2126_Regression/Test.idl:
+
+ A regression test for the above fix.
+
+Fri May 20 12:38:34 2005 Simon McQueen <sm@prismtech.com>
+
+ * TAO_IDL/be/be_visitor_arg_traits.cpp:
+
+ Check for alias before bailing out of ::visit_string.
+
+ This fixes bug #2124.
+
+ * tests/Bug_2124_Regression/Bug_2124_Regression.mpc:
+ * tests/Bug_2124_Regression/README:
+ * tests/Bug_2124_Regression/test.cpp:
+ * tests/Bug_2124_Regression/Test.idl:
+
+ A regression test for the above fix.
+
+Fri May 20 10:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/Current.pidl:
+ Updated header to doxygen style and removed remark about patching
+ generated files, this is not needed anymore
+
+Fri May 20 11:27:02 2005 Simon McQueen <sm@prismtech.com>
+
+ * tao/ORB_Core.cpp:
+ * tao/ORB_Core.h:
+
+ Add orb init option -ORBIMREndpointsInIMR to allow control over
+ whether the ImR enpoint is encoded into persistent policy object
+ refs whhen the POA has been registered with the ImR. Default is true.
+
+ * tao/PortableServer/Root_POA.cpp:
+
+ Check whether the above property is set before encoding ImR location
+ in preference to the local listener address into object references.
+
+ * docs/Options.html:
+
+ Document the above new option.
+
+ This fixes bug #2123.
+
+Fri May 20 08:55:03 2005 Simon McQueen <sm@prismtech.com>
+
+ * TAO_IDL/be/be_visitor_arg_traits.cpp:
+
+ Generate a guard macro definition based upon the bound length
+ and local name of bound strings to prevent duplicate definitions
+ when a string of the same length is defined with the same name
+ in two different scopes.
+
+ This fixes bug #2122.
+
+ * tests/Bug_2122_Regression/Bug_2122_Regression.mpc:
+ * tests/Bug_2122_Regression/README:
+ * tests/Bug_2122_Regression/test.cpp:
+ * tests/Bug_2122_Regression/Test.idl:
+
+ A regression test for the above.
+
+Thu May 19 11:52:39 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp:
+
+ Fixed emulated exception usage.
+
+Thu May 19 15:03:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/ast/ast_module.cpp:
+ * TAO_IDL/include/ast_module.h:
+
+ Modified look_in_previous() by adding a boolean parameter to
+ optionally ignore forward declared types when iterating
+ over the declarations in previous openings of a module. This
+ new parameter is false by default, so that ordinary lookups
+ will behave as always. In AST_Module::referenced() however,
+ the argument is passed as true explicitly, to avoid
+ redefinition errors for forward delcared types that appear
+ in an opening of a module previous to the one in which they
+ are fully defined, and also referenced before the full
+ definition appears. Thanks to Aaron <crackajaxx@gmail.com>
+ for reporting the problem and sending example IDL files>.
+
+ * tests/IDL_Test/full.idl:
+
+ Cosmetic changes.
+
+Thu May 19 09:42:22 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/tests/Trading/Trading.mpc:
+
+ I accidentally removed the utils base project from 3 of the
+ projects in this mpc file.
+
+Thu May 19 08:55:36 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * orbsvcs/tests/Security/BiDirectional/server.cpp:
+
+ Added an include file for ACE_OS::fopen() to fix VC6 build
+ errors.
+
+ * orbsvcs/tests/Security/BiDirectional/test_i.cpp:
+
+ Changed reference to a non-existent test_i.i file to fix
+ problems with builds that do not have inline.
+
+Thu May 19 00:55:20 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/Valuetype/ValueFactory_Map.cpp (instance):
+ * tao/Valuetype/ValueFactory_Map.h (instance):
+
+ Avoid multiple singleton instances by hiding singleton
+ template instance behind this new static method. See
+ TSS_Resources.* changes below for additional details.
+
+Thu May 19 00:29:35 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * tao/TSS_Resources.cpp (instance):
+ * tao/TSS_Resources.h (instance):
+
+ Hide TAO_TSS_Singleton behind new TAO_TSS_Resources::instance()
+ method. Addresses multiple TAO_TSS_Singleton instances on
+ platforms/compilers that support symbol hiding, but for which we
+ do not yet have an appropriate *_SINGLETON_DECLARATION() macro,
+ such as g++ 4.0. Fixes problems where an incorrect singleton
+ instance is returned to the caller.
+
+ Removed unnecessary zero pointer check before operator delete()
+ call. Calling operator delete() on a zero pointer is perfectly
+ valid.
+
+Wed May 18 16:23:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp:
+ * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
+
+ Moved generated virtual methods out of line. Inlining them
+ causes RTTI problems when the stubs are compiled with g++ 4.0's
+ "-fvisibility-inlines-hidden" command line option, and the
+ classes in the stubs are exported from a DSO/DLL.
+
+ * tao/Messaging/MessagingC.cpp:
+ * tao/Messaging/MessagingC.inl:
+ * tao/ObjRefTemplate/Default_ORTC.cpp:
+ * tao/ObjRefTemplate/Default_ORTC.inl:
+ * tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp:
+ * tao/ObjRefTemplate/ObjectReferenceTemplateC.inl:
+ * tao/Valuetype/AbstractBase.cpp:
+ * tao/Valuetype/AbstractBase.inl:
+ * tao/Valuetype/Sequence_T.cpp:
+ * tao/Valuetype/Sequence_T.inl:
+
+ Moved virtual methods out of line. See above for the motivation
+ behind these changes.
+
+ * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h:
+
+ Moved preprocessor "#else" to the first column for portability
+ reasons.
+
+ * tao/PortableServer/ORT_Adapter_Factory.cpp:
+ * tao/PortableServer/ORT_Adapter_Factory.h (ORT_Adapter_Factory):
+
+ Added a virtual destructor. Even though this class only defines
+ an interface, an out-of-line virtual destructor is necessary to
+ avoid dynamic_cast<> failures when using g++ 4.0's
+ -fvisibility-inlines-hidden command line option. Apparently the
+ compiler generated destructor is inlined.
+
+Wed May 18 14:56:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/Makefile.am:
+ * tao/Makefile.am:
+
+ Regenerated.
+
+Wed May 18 15:03:15 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * orbsvcs/tests/Security/BiDirectional/Secure_BiDir.mpc:
+
+ Renamed the BiDirectional.mpc to avoid build problems on Windows
+ platforms, caused by duplicate (case-insensitive) project names.
+ It conflicts with tests/BiDirectional/BiDirectional.mpc
+
+ * orbsvcs/tests/Security/BiDirectional/BiDirectional.mpc:
+
+ Removed this file.
+
+Wed May 18 14:38:15 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * orbsvcs/Naming_Service/NT_Naming_Service.h:
+
+ Fixing a build problem with Borland on Windows.
+
+Wed May 18 13:05:48 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * tao/Transport_Cache_Manager.cpp:
+
+ Reverted changes that added printing of the stringified
+ endpoint address, because it is not possible to pre-determine
+ the lenght of the character representation for all protocols'
+ endpoints. Thanks Johny and Ossama.
+
+Wed May 18 17:13:53 2005 Simon McQueen <sm@prismtech.com>
+
+ * TAO_IDL/be/be_visitor_valuetype/field_ch.cpp:
+ * TAO_IDL/be_include/be_visitor_valuetype/field_ch.h:
+
+ Make valuetype anonymous private sequence member definitions
+ public rather than private.
+
+ This fixes Bugzilla #2119.
+
+ * tests/Bug_2119_Regression/README:
+ * tests/Bug_2119_Regression/test.idl:
+ * tests/Bug_2119_Regression/test.mpc:
+
+ Regression test for the above.
+
+ * tao/Synch_Invocation.cpp:
+
+ Add COMM_FAILURE to the list of SystemExceptions that can be
+ retried in a fault tolerant configuration.
+
+ This fixes Bugzilla #2118.
+
+Wed May 18 10:29:33 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * tao/Transport_Cache_Manager.cpp:
+ Fixed Borland build problems and some stylistic improvements
+ to logging.
+
+Wed May 18 15:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PIForwardRequest.pidl:
+ Fixed fuzz error
+
+Wed May 18 13:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/ORB.h:
+ Doxygen improvement
+
+Wed May 18 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/corba.h:
+ Removed duplicate includes
+
+Wed May 18 12:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/PortableInterceptor.pidl:
+ Moved several interfaces to their own file
+
+ * tao/ClientRequestInterceptor.pidl:
+ * tao/Interceptor.pidl:
+ * tao/PIForwardRequest.pidl:
+ * tao/ServerRequestInterceptor.pidl:
+ New files, contains parts of the original PortableInterceptor.pidl
+
+ * tao/ClientRequestInterceptorA.cpp:
+ * tao/ClientRequestInterceptorC.cpp:
+ * tao/ClientRequestInterceptorC.h:
+ * tao/ClientRequestInterceptorS.h:
+ * tao/InterceptorA.cpp:
+ * tao/InterceptorC.cpp:
+ * tao/InterceptorC.h:
+ * tao/InterceptorS.h:
+ * tao/PIForwardRequestA.cpp:
+ * tao/PIForwardRequestC.cpp:
+ * tao/PIForwardRequestC.h:
+ * tao/PIForwardRequestS.h:
+ * tao/PortableInterceptorA.cpp:
+ * tao/PortableInterceptorC.cpp:
+ * tao/PortableInterceptorC.h:
+ * tao/PortableInterceptorS.h:
+ * tao/ServerRequestInterceptorA.cpp:
+ * tao/ServerRequestInterceptorC.cpp:
+ * tao/ServerRequestInterceptorC.h:
+ * tao/ServerRequestInterceptorS.h:
+ Mew generated files
+
+ * tao/tao.mpc:
+ Added new files
+
+ * tao/diffs/PortableInterceptor.diff:
+ Removed, not needed anymore
+
+ * tao/diffs/ServerRequestInterceptor.diff:
+ New diff file
+
+Wed May 18 06:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/Security/BiDirectional/BiDirectional.mpc:
+ Give this project an unique name so that MPC doesn't complain about
+ duplicate names
+
+ * orbsvcs/tests/Security/BiDirectional/test.idl:
+ Converted documentation to doxygen style
+
+Tue May 17 15:55:35 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ * orbsvcs/Naming_Service/NT_Naming_Service.{h,cpp}:
+
+ For Windows platforms, changed how the handle_control() stops
+ the ORB. Instead of having to explicitly stop the reactor loop
+ it only needs to call ORB::shutdown(). This also avoids a
+ potential race condition that may occur as the ORB gets
+ destroy()-ed between the two calls. Added an AutoFinalizer
+ class, whose destructor notifies the Windows SCM by calling
+ ACE_NT_Service::report_status() when an instance goes out of
+ scope. This is helpful in the presence of unexpected
+ exceptions. This patch was forward-ported from 1.3a_p9, based
+ upon RT4982.
+
+ * orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp:
+
+ Added ACE_TEXT_ALWAYS_CHAR ()
+
+Tue May 17 15:14:55 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
+
+ This change allows bi-directional policy to work with SSLIOP
+ endpoints. When a server accepts a client-initiated
+ connection or a listen point list, there is no data available
+ about the IIOP endpoints, underlying the SSLIOP endpoints.
+ There is also no data for most of the attributes of the secure
+ connection. Therefore the "server" must synthesize those,
+ however this can not be done correctly. The problem becomes
+ evident when bi-directional policy is in effect for both
+ peers: a "server" during callback, needs to use the same
+ connection the "client" has initiated, but the secure endpoint
+ obtained from an IOR can not yield the same hash value as the
+ synthesized endpoint (from an LPL), used to cache the
+ connection. Also, such endpoints can not be equivalent, in
+ terms of the is_equivalent () method. The IOR from the client
+ contains the real (non-synthetic) port number for the IIOP
+ endpoint underlying the SSL endpoint. This causes the server
+ to decide that it deals with a different endpoint and try to
+ open a new connection. When the ORBs are using bi-directional
+ policies and are behind a firewall, this will fail
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
+
+ Creates an instance of the new SSLIOP_Synthetic_Endpoint,
+ which it then uses to re-cache the transport.
+ TAO_SSLIOP_Connection_Handler::add_transport_to_cache()
+ ultimately uses the is_equivalent () method to compare
+ endpoints. That method must not compare the underlying IIOP
+ port numbers, because in some cases SSLIOP endpoints are
+ instantiated with limited amount of information available. For
+ example, when accepting a connections in server role, the
+ underlying IIOP endpoint's port is unknown an is merely
+ assigned to be the same as the secure port, effectively
+ precludes the ability of the server to find a connection
+ cached with these parameters later.
+
+ * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.{h,cpp):
+
+ Introduced a new SSLIOP_Synthetic_Endpoint, which relaxes the
+ equivalence comparison with another SSLIOP_Endpoint to limit
+ it to only hostname, SSL port and QoP.
+ Changed the hash() implementation in SSLIOP_Endpoint to
+ eliminate any influence the embedded IIOP endpoint has on the
+ hash value. This allows the SSLIOP_Synthetic_Endpoint to hash
+ just like an SSLIOP_Endpoint and makes possible that synthetic
+ endpoints to be used to find previously cached transports.
+
+ * orbsvcs/tests/Security/BiDirectional/BiDirectional.mpc:
+ * orbsvcs/tests/Security/BiDirectional/README:
+ * orbsvcs/tests/Security/BiDirectional/client.conf:
+ * orbsvcs/tests/Security/BiDirectional/client.cpp:
+ * orbsvcs/tests/Security/BiDirectional/run_test.pl:
+ * orbsvcs/tests/Security/BiDirectional/server.conf:
+ * orbsvcs/tests/Security/BiDirectional/server.cpp:
+ * orbsvcs/tests/Security/BiDirectional/test.idl:
+ * orbsvcs/tests/Security/BiDirectional/test_i.h:
+ * orbsvcs/tests/Security/BiDirectional/test_i.i:
+ * orbsvcs/tests/Security/BiDirectional/test_i.cpp:
+
+ A test that demonstrates the problem. Uses TAO-specific
+ interfaces to the ORB core to obtain the number of currently
+ open connections before and after an invocation. This is done
+ both in the servant and in the client.
+
+ * orbsvcs/tests/Security/BiDirectional/ssl/ca.pem:
+ * orbsvcs/tests/Security/BiDirectional/ssl/client-cert.pem:
+ * orbsvcs/tests/Security/BiDirectional/ssl/client-key.pem:
+ * orbsvcs/tests/Security/BiDirectional/ssl/make-client-keys:
+ * orbsvcs/tests/Security/BiDirectional/ssl/server-cert.pem:
+ * orbsvcs/tests/Security/BiDirectional/ssl/server-key.pem:
+
+ Client and server certificates and keys. Also, a script to
+ regenerate them all.
+
+
+ * tao/Transport_Cache_Manager.cpp:
+
+ Added more informative logging.
+
+Tue May 17 09:18:15 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * utils/NamingViewer/NamingViewer.mpc:
+
+ Removed unnecessary Resource_Files section.
+
+ * utils/utils.mwc:
+
+ Added the NamingViewer directory.
+
+Tue May 17 05:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp:
+ Use ACE_SIZE_T_FORMAT_SPECIFIER to print out an size_t variable
+ with ACE_OS::sprintf
+
+Tue May 17 05:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/tests/Event/Basic/Atomic_Reconnect.h:
+ * orbsvcs/tests/Event/Basic/Control.h:
+ Removed not needed include of Channel_Clients.h. This file has
+ been removed and the include was not needed.
+
+Mon May 16 19:22:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
+
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp:
+
+ #include "orbsvcs/PortableGroup/PG_Operators.h" and remove the
+ "bool operator==(const FTRT::Location&, const FTRT::Location&)"
+ implementation. FTRT::Location is typedef for CosNaming::Name,
+ and the operator== implementation for that in the PortableGroup
+ library conflict on MacOSX.
+
+Mon May 16 12:15:11 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
+
+ * TAO_IDL/include/ast_component.h
+ (AST_Component::port_descriptor):
+
+ Added an inlined constructor to this structure to make sure all
+ fields are initialized prior to use. Fixes a g++ 4.0 "variable
+ is used initialized" warning.
+
+Mon May 16 14:08:35 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/fe/idl.ll (idl_store_pragma):
+ * TAO_IDL/fe/lex.yy.cpp (idl_store_pragma):
+
+ Added code to eat extra whitespace in a #pragma directive,
+ need when using preprocessors that don't do it automatically.
+ Thanks to Johnny Willemsen <jwillemsen@remedy.nl> for
+ discovering this quirk about the preprocessor used with the
+ Intel C++ compiler. This fixes bugzilla bug [2110]
+
+Mon May 16 18:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/CDR.h:
+ * tao/Codeset_Manager.h:
+ * tao/Codeset_Translator_Factory_T.h:
+ * tao/Reply_Dispatcher.h:
+ * tao/Sequence.h:
+ * tao/Transport_Acceptor.h:
+ * tao/SmartProxies/Smart_Proxies.h:
+ Doxygen improvements
+
+Mon May 16 10:09:45 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * TAO_IDL/be/be_visitor_arg_traits.cpp (visit_operation):
+
+ Added check for imported node, skipping code generation if the
+ node is imported. For all other node types in this visitor, arg
+ traits specializations must be generated, since an IDL type
+ declared in an included file could be used as a parameter in
+ an operation in the main file. But when visiting an operation
+ itself, the only thing that triggers an arg traits specialization
+ is an anonymous bounded string parameter (deprecated but still
+ legal). Since this type of declaration is not visible outside
+ the operation's scope, it should not trigger code generation
+ if the node is imported. Thanks to Johnny Willemsen
+ <jwillemsen@remedy.nl> for pointing out that this code generation
+ for an imported operation causes a C++ compilation failure, due
+ to the lack of a proper #include of tao/BD_String_Arg_Traits.h.
+
+Mon May 16 15:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * tao/DynamicInterface/Context.h:
+ * tao/DynamicInterface/DII_Arguments.h:
+ * tao/DynamicInterface/DII_Invocation.h:
+ * tao/DynamicInterface/DII_Invocation_Adapter.h:
+ * tao/DynamicInterface/DII_Reply_Dispatcher.h:
+ * tao/DynamicInterface/Dynamic_Adapter_Impl.h:
+ * tao/DynamicInterface/Dynamic_Implementation.h:
+ * tao/DynamicInterface/ExceptionList.h:
+ * tao/DynamicInterface/Server_Request.h:
+ Doxygen improvements
+
+Mon May 16 14:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/Channel_Clients.{h,cpp}:
+ Removed, not needed anymore
+
+ * orbsvcs/orbsvcs/Channel_Clients_T.h:
+ * orbsvcs/orbsvcs/Scheduler_Utilities.h:
+ Doxygen fixes
+
+ * orbsvcs/orbsvcs/Makefile.am:
+ Removed Channel_Clients files
+
+ * orbsvcs/orbsvcs/Scheduler_Utilities.cpp:
+ Removed not needed include of OS.h
+
+ * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h:
+ * orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h:
+ Doxygen improvement
+
+ * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h:
+ * orbsvcs/tests/Event/lib/Counting_Supplier.h:
+ Include Channel_Clients_T.h instead of Channel_Clients.h
+
+Mon May 16 14:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * orbsvcs/orbsvcs/RTEvent.mpc:
+ Added Channel_Clients_T.cpp, it belongs to this project
+
+ * orbsvcs/orbsvcs/AV.mpc:
+ Removed Channel_Clients_T files, they don't belong to the AV service
+
+Mon May 16 14:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * examples/RTScheduling/Job_i.cpp:
+ * examples/RTScheduling/Thread_Task.cpp:
+ * examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp:
+ Use ACE_SIZE_T_FORMAT_SPECIFIER to print out an size_t variable
+ with ACE_OS::sprintf
+
+ * orbsvcs/orbsvcs/CosNaming.mpc:
+ * orbsvcs/orbsvcs/CosNaming_Serv.mpc:
+ * orbsvcs/orbsvcs/CosNaming_Skel.mpc:
+ Moved the Serv and Skel projects to their own file. This makes it
+ possible to create a workspace with just one of the projects
+
+Mon May 16 09:18:26 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/examples/CosEC/RtEC_Based/lib/CosEC_RtEC_Based_lib.mpc:
+ * orbsvcs/performance-tests/RTEvent/lib/RTEC_Perf.mpc:
+ * orbsvcs/tests/Event/Mcast/Common/ECMcastTests_lib.mpc:
+ * orbsvcs/tests/Event/lib/Event_lib.mpc:
+ * orbsvcs/tests/Trading/Trading.mpc:
+
+ Removed redundant base projects.
+
+ * orbsvcs/examples/ImR/Combined_Service/test.cpp:
+
+ Modified the assertTrue macro so that it would build on LynxOS.
+
+ * orbsvcs/tests/EC_MT_Mcast/run_test.pl:
+
+ Generate a unique multicast address and port to avoid collisions
+ on the same network.
+
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/run_test.pl:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/windows.conf:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/windows.conf.xml:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/run_test.pl:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/windows.conf:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/windows.conf.xml:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/run_test.pl:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/windows.conf:
+ * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/windows.conf.xml:
+
+ On Windows, we use a configurator file to switch from the default
+ reactor (TP) to Select MT. The LoadManager, on Windows only,
+ requires a reactor that supports registering signal handlers and
+ the TP Reactor no longer supports that sort of thing.
+
+ * orbsvcs/tests/Notify/MT_Dispatching/run_test.pl:
+
+ Committing a change from Dale Wilson <wilson_d@ociweb.com>.
+
+ Change shut down timeout from hard coded 1 to symbolic 10
+ to eliminate intermittent timeouts on various platforms.
+
+ * orbsvcs/tests/Notify/Structured_Multi_Filter/run_test.pl:
+
+ Committing a change from Trevor Fields <fields_t@ociweb.com>.
+
+ Added delay between iterations of the test to allow
+ complete shutdown of Naming service. The problem showed
+ up on dual processor machines.
+
+ * orbsvcs/tests/Notify/XML_Persistence/main.cpp:
+
+ Added an include of the CosNotification library initializer header
+ to work around static construction issues on SunOS and MacOS X.
+
+ * orbsvcs/tests/Redundant_Naming/run_test.pl:
+ * orbsvcs/tests/Simple_Naming/run_test.pl:
+
+ Allow the user to determine the location of the persistence file
+ by the TMPDIR, TEMP and TMP environment variables. This will work
+ around NFS locking issues.
+
+ * orbsvcs/tests/Simple_Naming/process-m-output.pl:
+
+ Committing a change from Yan Dai <dai_y@ociweb.com>.
+
+ Modified the test scripts to accept the empty line, the
+ "CommandLine" line and the "WARNING" lines from
+ orbsvcs/orbsvcs/Shutdown_Utilities.cpp.
+
+Mon May 16 08:25:53 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * orbsvcs/Dump_Schedule/Dump_Schedule.cpp:
+
+ Set the default name to "ScheduleService".
+
+ * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp:
+
+ Allocate an RtecScheduler::Dependency_Set into the out parameter
+ if it doesn't contain one yet.
+
+ * orbsvcs/orbsvcs/Scheduler_Factory.cpp:
+
+ Switched the types for the generated code to match up with actual
+ types for the POD_Dependency_Info and POD_Config_Info structures.
+
+Mon May 16 08:21:34 2005 Chad Elliott <elliott_c@ociweb.com>
+
+ * tao/ORB_Core.cpp:
+
+ Warn the user if the parameter to -ORBCollocation is not
+ recognized.
+
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h:
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp:
+ * orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h:
+ * tao/Strategies/SCIOP_Connector.cpp:
+ * tao/Strategies/SCIOP_Endpoint.h:
+ * tao/Strategies/SCIOP_Endpoint.cpp:
+
+ Corrected many build issues dealing with SCTP.
+
+Sat May 14 06:09:23 2005 Johnny Willemsen <jwillemsen@remedy.nl>
+
+ * TAO version 1.4.5 released.
+
Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
+add-log-time-format: current-time-string
End:
diff --git a/TAO/ChangeLogs/ChangeLog-05b b/TAO/ChangeLogs/ChangeLog-05b
deleted file mode 100644
index eb190783bb7..00000000000
--- a/TAO/ChangeLogs/ChangeLog-05b
+++ /dev/null
@@ -1,8407 +0,0 @@
-Tue Aug 2 21:18:02 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/idl.yy:
- * TAO_IDL/fe/y.tab.cpp:
-
- Fixed some mismatched allocate/deallocate errors. Thanks to
- Johnny Willemsen <jwillemsen@rememdy.nl> for pointing them
- out.
-
-Tue Aug 2 13:01:58 2005 Steve Totten <totten_s@ociweb.com>
-
- Applied the following change from the OCI TAO 1.4a repository on
- behalf of Abdel Rigumye:
-
- Fri Jul 29 14:30 2005 Abdel Rigumye <rigumyea@ociweb.com>
-
- * orbsvc/Naming_Service/README:
-
- Added and documented the existence of the -u and -r persistence
- options
-
-Tue Aug 2 09:53:23 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/Bug_1630_Regression/test.mpc:
-
- Use imr_client base project.
-
-Mon Aug 1 07:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_1395_Regression/Makefile.am:
- Added ImR_Client
-
-Sat Jul 30 10:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_1395_Regression/Test_i.cpp:
- Fixed casing of include
-
-Fri Jul 29 17:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/LifespanStrategyPersistent.cpp:
- Added missing ACE_CHECK
-
-Fri Jul 29 18:41:50 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/ImR_Client/ImR_Client.cpp:
-
- Fixed typo.
-
- * orbsvcs/tests/Bug_1395_Regression/Bug_1395_Regression.mpc:
- * orbsvcs/tests/Bug_1395_Regression/Test_i.cpp:
-
- Forced link of ImR_Client to fix error on static builds.
-
-Fri Jul 29 17:55:23 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/ORB_Core.h:
- * tao/ORB_Core.i:
-
- Add accessor for use_implrepo_ value.
-
- * tao/ImR_Client/ImR_Client.cpp:
-
- Make calling imr_notify_startup when the ImR ref cannot be
- found or narrowed into an error condition.
-
- * tao/PortableServer/LifespanStrategyPersistent.h:
- * tao/PortableServer/LifespanStrategyPersistent.cpp:
-
- Read the use_imr_ value from the ORB core. Only try and load
- the ImR_Client and call imr_notify_startup if use_imr_ set.
-
-Fri Jul 29 14:15:11 2005 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
-
- Added ACE_NOTREACHED to unreachable code to fix warning on
- HP non stop build.
-
-Thu Jul 28 12:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Bug_1630_Regression/testclient.cpp:
- Added include of IFR_Client_Adapter_Impl, this should make sure
- the IFR_Client is linked into the exe and the static initializers
- are called. This should fix this test in the Windows static
- builds
-
-Thu Jul 28 10:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OctetSeq/client.cpp:
- Don't test _repository_id in a minimum corba build
-
-Thu Jul 28 00:43:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/CORBA_String.h:
- * tao/CORBA_String.inl:
-
- Removed operator==({W}String_var,{W}String_var) from the CORBA
- namespace. It was TAO-specific, only existed so that
- {W}String_var could be used as map key, and polluted the CORBA
- namespace. Replaced with TAO::String_Var_Equal_To equality
- functor.
-
- * tao/ORB.cpp (_downcast):
-
- Removed redundant/unnecessary repository ID string comparison
- from ORB::InvalidName::_downcast() method. A simple
- dynamic_cast<>-based check is sufficient.
-
- (ORB_init):
-
- Removed ORB shutdown check. The goal of the check was to cause
- the CORBA::BAD_INV_ORDER system exception to be thrown if the
- ORB was shutdown. However, that only applies to ORB methods,
- not CORBA::ORB_init(). Just return the ORB. ORB methods
- already check for ORB shutdown.
-
- * tao/ORB_Table.cpp (bind):
-
- Moved pair creation before the lock acquisition. Pair creation
- in this case need not be synchronized across threads.
-
- (unbind):
-
- Pass the iterator returned from the underlaying map's find()
- call to erase(). Saves us a duplicate element search found in
- the erase() overload that accepts a key_type instead of an
- iterator.
-
- Removed work around described here in ChangeLog entry "Fri Jul
- 22 10:07:12 UTC 2005 Johnny Willemsen
- <jwillemsen@remedy.nl>". It is no longer necessary due to
- changes in the ACE_Array_Map implementation. Also addresses
- missing key object destruction in the workaround.
-
- * tao/ORB_Table.h:
- * tao/ORB_Table.inl:
-
- Removed the ORB_Core_Ref_Counter equality operator. It is a
- vestige of a transitional ORB_Table and ORB_Core_Ref_Counter
- implementation, and is no longer needed.
-
- Set the ACE_Array_Map equality functor template parameter to
- TAO::String_Var_Equal_To. See changes to CORBA_String.h above
- for details.
-
- * tao/Object_Ref_Table.h:
-
- Set the ACE_Array_Map equality functor template parameter to
- TAO::String_Var_Equal_To. See changes to CORBA_String.h above
- for details.
-
- * tao/Object_Ref_Table.cpp (bind):
-
- Moved pair creation before the lock acquisition. Pair creation
- in this case need not be synchronized across threads.
-
- * tao/PortableServer/Servant_Base.cpp:
- * tao/PortableServer/Servant_Base.h:
- * tao/PortableServer/Servant_Base.i:
-
- Inlined one-liners. Reduces footprint.
-
- Use the ACE_Atomic_Op<long> specialization as the underlying
- synchronized reference counting mechanism instead of
- ACE_Atomic_Op<CORBA::ULong>. Improves performance and reduces
- footprint.
-
-Wed Jul 27 21:35:20 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/lib/Makefile.am:
-
- Regenerated.
-
-Wed Jul 27 15:59:54 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
-
- When generating Any insertion and extraction operators
- conditionally put them in a namespace that corresponds to their
- enclosing module (if any). Addresses problem reported in
- Bugzilla report #2071. Since some compilers do not implement
- symbol lookup correctly the changed code is controlled by the
- ACE_ANY_OPS_USE_NAMESPACE macro. Use this macro in config*.h if
- your compiler implements symbol lookup correctly. Without the
- macro the IDL generated code is as it was.
-
-Wed Jul 27 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Wait_On_Leader_Follower.h:
- Fixed typo in documentation
-
-Wed Jul 27 09:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
- Fixed compile error in minimum build
-
-Wed Jul 27 07:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- Fixed conversion warning
-
-Wed Jul 27 07:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/tutorials/Quoter/Event_Service/index.html:
- Updated documentation how to run this tutorial. Thanks to
- Frederick Heckel <fwph at cse dot wustl dot edu> for
- reporting that things didn't work.
-
-Tue Jul 26 12:11:36 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp:
-
- Plugged some memory leaks.
-
-Tue Jul 26 14:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/Options.html:
- Small link improvements
-
-Tue Jul 26 12:13:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.cpp (destroy_interceptors):
- Fixed memory leak of client/server request interceptor lists
-
-Tue Jul 26 12:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp:
- * tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl:
- * tests/Portable_Interceptors/Request_Interceptor_Flow/test_i.{h,cpp}:
- Added a CORBA::ULongSeq as out argument to the server_test
- method to test for bug 2158. It seems this problem doesn't
- exists anymore
-
-Tue Jul 26 11:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_interface.cpp:
- Fixed problem in dynamic hash lookup table generation
-
-Tue Jul 26 10:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
- Added return 0
-
-Tue Jul 26 10:10:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Remote_Object_Proxy_Broker.cpp:
- Fixed compile error in minimum build
-
-Tue Jul 26 09:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PICurrent.{h,cpp}:
- * tao/PICurrent_Loader.cpp:
- Overruled _get_orb and store an ORB_Core reference instead of
- a pointer
-
-Tue Jul 26 09:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/params.h:
- Removed some old comment
-
-Tue Jul 26 08:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- Added some missing CORBA::string_dup calls which caused this tet
- to fail in a static build
-
-Tue Jul 26 08:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp:
- No need to check for a nill pointer, the dynamic_cast handles that
-
-Tue Jul 26 08:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1020_Regression/client.cpp:
- Initialise pointer with 0
-
-Tue Jul 26 07:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/IdAssignmentStrategy.h:
- * tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp:
- * tao/PortableServer/IdAssignmentStrategySystem.cpp:
- * tao/PortableServer/IdAssignmentStrategySystem.h:
- * tao/PortableServer/IdAssignmentStrategyUser.cpp:
- * tao/PortableServer/IdAssignmentStrategyUser.h:
- * tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp:
- * tao/PortableServer/IdUniquenessStrategyFactoryImpl.h:
- * tao/PortableServer/IdUniquenessStrategyMultiple.cpp:
- * tao/PortableServer/IdUniquenessStrategyUnique.cpp:
- * tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp:
- * tao/PortableServer/ImplicitActivationStrategy.h:
- * tao/PortableServer/ImplicitActivationStrategyExplicit.cpp:
- * tao/PortableServer/ImplicitActivationStrategyExplicit.h:
- * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp:
- * tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h:
- * tao/PortableServer/ImplicitActivationStrategyImplicit.cpp:
- * tao/PortableServer/LifespanStrategy.h:
- * tao/PortableServer/LifespanStrategyFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyPersistent.h:
- * tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp:
- * tao/PortableServer/LifespanStrategyTransient.h:
- * tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp:
- * tao/PortableServer/Policy_Strategy.h:
- * tao/PortableServer/RequestProcessingStrategy.h:
- * tao/PortableServer/RequestProcessingStrategyAOMOnly.h:
- * tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyDefaultServant.h:
- * tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantActivator.h:
- * tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantLocator.h:
- * tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp:
- * tao/PortableServer/RequestProcessingStrategyServantManager.h:
- * tao/PortableServer/ServantRetentionStrategy.h:
- * tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyNonRetain.h:
- * tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp:
- * tao/PortableServer/ServantRetentionStrategyRetain.h:
- * tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp:
- * tao/PortableServer/StrategyFactory.h:
- * tao/PortableServer/ThreadStrategy.h:
- * tao/PortableServer/ThreadStrategyFactory.h:
- * tao/PortableServer/ThreadStrategyFactoryImpl.cpp:
- * tao/PortableServer/ThreadStrategySingle.cpp:
- * tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp:
- * tao/PortableServer/ThreadStrategySingleFactoryImpl.h:
- Reduced the number of exports. This will reduce footprint in
- Windows and GCC 4 builds.
-
-Tue Jul 26 06:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/ImplRepo/airplane_server_i.cpp:
- Added missing include
-
-Tue Jul 26 06:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Notify/lib/Task_Callback.{h,cpp}:
- Added virtual destructor
-
-Mon Jul 25 15:48:05 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp:
-
- Plugged some memory leaks.
-
-Mon Jul 25 12:49:44 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Array_VarOut_T.h:
- * tao/Array_VarOut_T.inl:
- * tao/Fixed_Array_Argument_T.inl:
- * tao/PortableServer/Fixed_Array_SArgument_T.inl:
-
- Removed "out" method from class TAO_Array_Var_Base_T and added
- the method to classes TAO_FixedArray_Var_T and
- TAO_VarArray_Var_T. For fixed arrays the "out" method now
- returns T_slice * for fixed arrays. For variable arrays the
- "out" method returns T_slice *& (same as previously).
-
-Mon Jul 25 12:37:34 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp:
-
- Fixed platform-specific compilation warnings.
-
-Mon Jul 25 13:34:03 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/ImplRepo/airplane_server.cpp:
- * orbsvcs/tests/ImplRepo/airplane_server_i.cpp:
-
- Add suicide capability to the server. This won't help any tests
- pass, but should prevent airplane server processes from hanging.
-
- * orbsvcs/tests/ImplRepo/run_test.pl:
-
- Change the both_ir test to work as documented. The test should run
- once with the servers running, and then once with the servers launched
- by the activator. This works around some weird startup problems on
- Windows.
-
-Mon Jul 25 18:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/ThreadStrategyORBControl.{h,cpp}:
- Don't export this, this is only used internally in the
- portableserver library.
-
-Mon Jul 25 18:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_interface.cpp:
- * TAO_IDL/be/be_visitor_component/component_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/amh_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/interface_ss.cpp:
- * tao/Abstract_Servant_Base.h:
- * tao/LocalObject.{h,cpp}:
- * tao/Object.{h,cpp}:
- * tao/Object_Proxy_Broker.h:
- * tao/Remote_Object_Proxy_Broker.{h,cpp}:
- * tao/PortableServer/Collocated_Object_Proxy_Broker.{h,cpp}:
- * tao/PortableServer/Servant_Base.{h,cpp}:
- Added CORBA::Object::_repository_id, this fixes bugzilla 2180
-
- * tests/OctetSeq/client.cpp:
- Call _repository_id
-
- * tao/PortableServer/Active_Object_Map.h:
- No need to export this class
-
-Mon Jul 25 15:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp:
- * orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp:
- Initialise pointers to 0 and fixed some typos in comments
-
- * tao/PortableServer/Root_POA.{h,cpp}:
- * tao/PortableServer/POAManager.{h,cpp}:
- Overruled _get_orb as required by the CORBA spec
-
-Mon Jul 25 13:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp:
- Ensured access to codeset manager is guarded by a nil check.
-
-Mon Jul 25 07:38:47 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Strategies/DIOP_Acceptor.cpp:
- * tao/Strategies/SCIOP_Acceptor.cpp:
- * tao/Strategies/SHMIOP_Acceptor.cpp:
- * tao/Strategies/UIOP_Acceptor.cpp:
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp:
-
- Ensured access to codeset manager is guarded by a nil check.
-
-Sat Jul 23 19:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/ServantRetentionStrategyRetain.cpp:
- * tao/PortableServer/Active_Object_Map.{h,i}:
- Fixed a bug when we tried to deactivate a reference created with
- a user id using a POA that uses servant activator.
-
-Sat Jul 23 12:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/POA/Etherealization/Etherealization.cpp:
- Extended this test with two test cases where we create a
- reference with user created id using a POA that has a
- servant activator but don't do any calls and just deactivate
- the object again. This is the same problem as we are seeing
- in CIAO and this needs to be resolved as P1 bug
-
-Sat Jul 23 10:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
- Fixed warning in MinGW build
-
-Fri Jul 22 15:39:18 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp:
-
- Guard against null pointers returned from _downcast()
-
-Fri Jul 22 18:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORBInitializer_Registry.cpp:
- Fixed compile error on AIX. Thanks to Ventimiglia Chere
- <Ventimiglia_Chere at emc dot com> for reporting this.
-
-Fri Jul 22 12:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp:
- Updated for obj_ref_table interface change
-
-Fri Jul 22 12:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitInfo.cpp:
- Fixed emulated excepton
-
- * tao/Object_Ref_Table.{h,inl}:
- * tao/ORB.cpp:
- * tao/ORB_Core.i:
- * tao/RTCORBA/RT_Protocols_Hooks.cpp:
- * tao/RTScheduling/Current.cpp:
- Changed resolve_initial_references to resolve_initial_reference
- on the object ref table, this way the fuzz build doesn't trigger.
-
-Fri Jul 22 11:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/RT_Protocols_Hooks.cpp:
- * tao/RTPortableServer/RT_Policy_Validator.cpp:
- * tao/RTScheduling/RTScheduler_Manager.i:
- * tao/RTScheduling/Current.cpp:
- Fixed problems with emulated exceptions
-
-Fri Jul 22 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.{h,i}:
- Removed exception macros from resolve_rt_orb and removed the
- resolve_rt_current method because it is not used at all
-
-Fri Jul 22 11:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.i:
- Removed environment macro to resolve_initial_references on
- objreftable
-
-Fri Jul 22 11:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitInfo.cpp:
- * tao/ORB.cpp:
- * tao/Object_Ref_Table.{h,inl}:
- Corrected exceptions that should be thrown when a duplicate or
- invalid name is passed with register_initial_reference. Also
- removed some not needed exception argument macros. Fixes bug
- 2087 and the associated regression test now works fine
-
-Fri Jul 22 10:26:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Object_Ref_Table.inl (register_initial_reference):
- When passed a nil object reference, throw a BAD_PARAM exception with
- minor code 27
-
-Fri Jul 22 10:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Table.cpp:
- In the unbind, assign a default constructed refcount so that we
- drop the refcount on the orb at this moment. The array_map uses
- lazy destruction and only destructs then the ORB at process exit
- and this causes then crashes with RTCorba.
-
-Fri Jul 22 09:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- Fixed invalid remove_ref call
-
-Fri Jul 22 09:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- Fixed implicit conversion warning
-
-Fri Jul 22 09:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- When assigning a hardcoded string, use CORBA::string_dup else
- we get a crash when trying to free the string with some
- runtimes.
-
-Fri Jul 22 09:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/ValueBox/client.cpp:
- Fixed compile errors with Borland
-
- * tao/Valuetype/ValueBase.{h,cpp}:
- Use Atomic_Op for the refcount, initialize the refcount to 1 in
- the copy constructor.
-
-Thu Jul 21 15:07:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am:
- * orbsvcs/FT_ReplicationManager/Makefile.am:
- * orbsvcs/Fault_Detector/Makefile.am:
- * orbsvcs/Fault_Notifier/Makefile.am:
- * orbsvcs/LifeCycle_Service/Makefile.am:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Makefile.am:
- * orbsvcs/Naming_Service/Makefile.am:
- * orbsvcs/Notify_Service/Makefile.am:
-
- Regenerated.
-
-Thu Jul 21 08:29:13 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/LogMgr_i.cpp:
-
- Fix typo in last change.
-
-Thu Jul 21 07:42:40 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/LogMgr_i.cpp:
-
- Don't set the servant retention policy when creating the log POA
- in minimum CORBA builds.
-
-Thu Jul 21 07:26:27 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbscvs/orbsvcs/Hash_LogStore.cpp:
- * orbsvcs/orbsvcs/Hash_LogRecordStore.cpp:
-
- Use ACE_SYNCH_RW_MUTEX instead of ACE_RW_Thread_Mutex to fix
- single threaded builds.
-
-Thu Jul 21 14:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/OBV/Valuebox/client.cpp:
- Fixed problem with emulated exceptions
-
-Thu Jul 21 13:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- Fixed compile error with Borland
-
-Thu Jul 21 07:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Notify/Event_Manager.h:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.{h,cpp}:
- Fixed problem with emulated exceptions
-
-Thu Jul 21 06:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/tutorials/Quoter/Simple/Client/index.html:
- * docs/tutorials/Quoter/Simple/Impl-Repo/index.html:
- * docs/tutorials/Quoter/Simple/ImprovedServer/index.html:
- * docs/tutorials/Quoter/Simple/Server/index.html:
- Updated GNU makefile names with the MPC generated files.
- Thanks to <gomezt at saic dot com> for reporting this.
-
-Wed Jul 20 13:48:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
-Wed Jul 20 11:06:57 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp
- * tests/OBV/ValueBox/valuebox.idl
- * tests/OBV/ValueBox/Test_impl.cpp
- * tests/OBV/ValueBox/Test_impl.h
-
- Resolved some test problems.
-
-Wed Jul 20 11:16:07 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/Default_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Manager.h:
- * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request.h:
- * orbsvcs/orbsvcs/Notify/Method_Request.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h:
- * orbsvcs/orbsvcs/Notify/Peer.h:
- * orbsvcs/orbsvcs/Notify/Peer.cpp:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.h:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
-
- More cleanup to eliminate compile errors related to template
- instantiation and #includes. The primary change consisted of
- moving some ESF Worker classes to Event_Manager.cpp from
- Event_Manager.h.
-
- * orbsvcs/orbsvcs/Notify/Event_Manager.inl:
- * orbsvcs/orbsvcs/Notify/Method_Request.inl:
- * orbsvcs/orbsvcs/Notify/Peer.inl:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.inl:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.inl:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.inl:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.inl:
-
- Removed these files.
-
-Wed Jul 20 07:06:10 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/BasicLog_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp:
-
- Update callers.
-
- * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.h:
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
- * orbsvcs/orbsvcs/Log/LogMgr_i.h:
- * orbsvcs/orbsvcs/Log/LogStore.h:
-
- Added emulated exception goo to ::exists() and ::remove()
- methods.
-
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
-
- Work around MSV6 not supporting scoping of variables declared in
- for loops.
-
-Wed Jul 20 13:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Connection_Timeout/client.cpp:
- Changed this test to test the timeout in a separate method so that
- also in case of failure we cleanly destroy the ORB.
-
-Wed Jul 20 12:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/default_resource.cpp:
- Delete the codeset_manager_, fixes a memory leak
-
- * tao/Codeset/Codeset_Descriptor.cpp:
- Use ACE_OS::free to delete the name, it is allocated with
- ACE_OS::strdup, fixes an invalid read error with valgrind
-
-Wed Jul 20 12:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Recursive_ORBInitializer/Client_ORBInitializer.cpp:
- Emulated exception fix
-
-Wed Jul 20 12:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp:
- Removed %P|%t from the print exception, this is already done
- by the print exception itself
-
-Wed Jul 20 11:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- Fixed compile problem with emulated exceptions
-
-Wed Jul 20 11:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- Fixed compile problem with emulated exceptions
-
-Wed Jul 20 10:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/Messaging_Loader.cpp:
- Small layout improvement. Last change in my workspace for the
- upcoming beta
-
-Wed Jul 20 10:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Object_Proxy_Impl.{h,cpp}:
- Removed these files, class is not used anymore, we will do soon
- some cleanup in the TAO_IDL compiler related to this
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Removed file above
-
-Wed Jul 20 07:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/BiDir_Adapter.h:
- Removed activate call, we are using the init() call to register
- the ORBInitializer
-
- * tao/ORB_Core.{h,cpp}:
- Removed bidirectional_giop_init, this is not needed anymore, get
- the BiDIR adapter just in load_policy_validators
-
- * tao/TAO_Internal:
- Init BiDIR GIOP library as the other libs
-
- * tao/BiDIR_GIOP/BiDirGIOP.{h,cpp}:
- Use init() instead of activate() to register the ORBInitializer.
-
- All these changes make sure that the BiDIR ORBInitializer is
- registered before the ORBInitializer::pre_init() call, previously
- if was registered after pre_init which resulted in the problem that
- after fixing a bug now it doesn't get called anymore in post_init()
-
-Tue Jul 19 18:45:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
- * orbsvcs/orbsvcs/Log/Hash_LogStore.h
-
- Use ACE_SYNCH_RW_MUTEX instead of ACE_RW_Thread_Mutex to fix
- single threaded builds.
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.h
- * orbsvcs/orbsvcs/Log/LogStore.h
-
- Made constructor protected.
- Made destructor virtual.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Fixed typo introduced in:
- Tue Jul 19 14:14:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
-Tue Jul 19 16:40:37 2005 Gary Maxey <gary.maxey@hp.com>
-
- * orbsvcs/orbsvcs/IFRService/Container_i.cpp:
-
- Exclude unsigned long long case in store_label() if platform
- does not allow this type.
-
-Tue Jul 19 14:14:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
- * orbsvcs/orbsvcs/Log/LogMgr_i.h:
- * orbsvcs/orbsvcs/Log/LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/LogStore.h:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
-
- Fix assorted build errors, mostly related to emulated
- exceptions. Thanks to Simon Massey and Don Sharp for
- pointing out these problems.
-
-Tue Jul 19 16:02:32 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
-
- Free process_map_ entries in handle_exit(). Thanks to
- Yevgen Galchenko <yevgeng at softcomputer dot com> for finding
- this memory leak.
-
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Consumer.inl:
- * orbsvcs/orbsvcs/Notify/Consumer.cpp:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.inl:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.cpp:
- * orbsvcs/orbsvcs/Notify/Event.h:
- * orbsvcs/orbsvcs/Notify/Event_Manager.inl:
- * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request.inl:
- * orbsvcs/orbsvcs/Notify/Method_Request.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
- * orbsvcs/orbsvcs/Notify/Object.h:
- * orbsvcs/orbsvcs/Notify/Peer.inl:
- * orbsvcs/orbsvcs/Notify/Peer.cpp:
- * orbsvcs/orbsvcs/Notify/Property.h:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.h:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.inl:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.h:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.inl:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
- * orbsvcs/orbsvcs/Notify/Timer_Queue.h:
- * orbsvcs/orbsvcs/Notify/Timer_Reactor.h:
- * orbsvcs/orbsvcs/Notify/Topology_Loader.h:
- * orbsvcs/orbsvcs/Notify/Topology_Object.h:
-
- My previous checkin caused problems depending on the compiler
- and the setting for __ACE_INLINE__. I took the opportunity to
- clean up the #includes a little, and hopefully this fixes the
- compile errors on all platforms.
-
-Tue Jul 19 19:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitializer_Registry_Impl.cpp:
- Fixed emulated exception error
-
-Tue Jul 19 10:26:03 2005 Gary Maxey <gary.maxey@hp.com>
-
- * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
-
- When parse error occurs flush input buffer so a subsequent parse
- does not see tokens from the current one.
-
-Tue Jul 19 10:21:05 2005 Gary Maxey <gary.maxey@hp.com>
-
- * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp:
- * orbsvcs/orbsvcs/ETCL/ETCL_l.cpp:
- * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp.diff:
- * orbsvcs/orbsvcs/ETCL/ETCL_y.cpp.diff:
-
- When parse error occurs flush input buffer so a subsequent parse
- does not see tokens from the current one.
-
-Tue Jul 19 10:21:17 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
- * orbsvcs/orbsvcs/Notify/Builder.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
- * orbsvcs/orbsvcs/Notify/Object.h:
- * orbsvcs/orbsvcs/Notify/Object.cpp:
-
- Fix some problems with compilers that use early template
- instantiation.
-
- * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp:
-
- Fix a warning about signed/unsigned comparison.
-
-Tue Jul 19 15:52:19 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/Union_TypeCode.cpp:
-
- Put unreachable code back with ACE_NOTREACHED macro to fix
- warning on Redhat implicit templates build.
-
-Tue Jul 19 14:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Register_Initial_References/*
- Added a new regression for register_initial_references on the ORB
- and the ORBInitInfo. It seems we have some bugs to resolve. This is
- to test for bugzilla bug 2087
-
-Tue Jul 19 13:14:51 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_interface/interface_ih.cpp:
-
- Fixed error in generation of inheritance list for impl
- class declaration. Thanks to Steven Hattons
- <hattons@globalsymmetry.com> for reporting the bug.
-
-Tue Jul 19 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be/be_visitor_interface/interface_ih.cpp:
- Fixed bug when generating the implementation class, I removed
- the base RefCountServantBase generation, but then also public
- virtual shouldn't be generated. Thanks to Steven T. Hatton
- <hattons at globalsymmetry dot com> for bringing this to my
- attention.
-
-Tue Jul 19 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitializer_Registry_Impl.{h,cpp}:
- Use a recursive mutex instead of a normal mutex to allow an
- ORBInitializer to register another ORBInitializer during
- pre/post init. Also use the mutex in the fini method to
- prevent race conditions there. This fixes bugzilla bug
- 2089.
-
-Tue Jul 19 12:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ObjectKey_Table.cpp:
- Removed explicit templates
-
- * tao/ORB.cpp:
- * tao/ORBInitializer_Registry_Adapter.h:
- * tao/PI/ORBInitializer_Registry_Impl.{h,cpp}:
- Change the interface to the ORBInitializer_Registry related to
- bugzilla bug 2089. An ORBInitializer can register another
- ORBInitializer during pre_init/post_init. I found that when
- during pre_init a new ORBInitializer is registered, this is called
- during post_init directly, but that shouldn't happen, the new
- one should only be called when another ORB is initialized.
- Changed the interface to the registry in such a way the pre_init
- returns the number of initializers called, this is then passed
- to post_init so that we only invoke the number of initializers
- that where called during pre_init.
-
- * tao/tests/Portable_Interceptors/Recursive_ORBInitializer/*:
- New regression to test an ORBInitializer that registers
- itself another ORBInitializer
-
-Tue Jul 19 11:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Bug_2088/client.cpp:
- Rewrote this test to test the draft 3.1 spec behaviour which
- matches the current implementation. The 3.0.3 behaviour about
- which I made this report doesn't seem usable for end users.
- Fixes bugzilla bug 2088
-
-Tue Jul 19 11:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/examples/ORT/Gateway_i.cpp:
- Initialise pointer with 0
-
- * tao/Object_Loader.cpp:
- * tao/NVList.cpp:
- Removed explicit templates
-
-Tue Jul 19 10:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IORInterceptor_Adapter_Factory.{h,cpp}:
- Added virtual destructor to fix gcc4 runtime error
-
-Tue Jul 19 10:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Reliable_Oneways/Reliable_Oneways.mpc:
- Simplified this MPC file
-
-Tue Jul 19 10:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/DynamicInterface/Server_Request.h:
- * tao/DynamicInterface/Request.h:
- Fixed documentation typo
-
- * tao/DynamicInterface/Server_Request.cpp:
- Use prefix operators for the refcount
-
- * tao/DynamicInterface/Context.{h,cpp}:
- * tao/True_RefCount_Policy.{h,inl}:
- * tao/Principal.{h,cpp,i}:
- * tao/NVList.{h,cpp}:
- Use ACE_Atomic_Op for the refcount
-
- * tao/Synch_Refcountable.{h,cpp,inl}:
- * tao/Utils/Synch_Refcountable.{h,cpp,inl}:
- Moved TAO_Synch_Refcountable to the Utils lib, it is a utility
- class and not used anywhere in the complete TAO distribution
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Updated for change above
-
-Tue Jul 19 09:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Object.cpp:
- Fixed the _non_existent to catch a OBJECT_NOT_EXIST and then return
- true.
-
- * tao/PortableServer/Servant_Base.cpp (_non_existent) :
- Return false instead of 0
-
- * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
- Removed try/catch. This is done in CORBA::Object.
-
- This fixes bugzills 2174. Thanks to Torsten Kuepper
- <torsten dot kuepper at nokia dot com> for reporting this
-
-Mon Jul 18 14:53:19 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
-
- Changed to compute size of log record only once.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
-
- Update for below change.
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.h:
-
- Changed TAO_LogRecordStore::log()'s log record parameter to a
- const reference.
-
- Prior to this change, TAO_Log_i::write_recordlist() copied the
- indexed record (from the list) to a temporary before invoking
- TAO_LogRecordStore::log(), since that updated the id and time-
- stamp fields. Since this is not always true with dynamically
- loaded strategies, we make the concrete LogRecordStore class
- do the copy.
-
-Mon Jul 18 13:12:15 2005 Ciju John <john_c@ociweb.com>
-
- * orbsvcs/Notify_Service/Notify_Service.mpc:
-
- Linked in the ValueType library to the NamingService. This is
- required in case the event embedds a valuetype. The event body
- consists of several CORBA anys. The current implementation
- demarshalls an any before touching app code. Thus if the any
- were to contain a valuetype, the valuetype library will be
- called upon to demarshall the data.
-
-Mon Jul 18 15:34:01 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/DynamicInterface/DII_Invocation.cpp:
- * tao/PI_Server/PI_Server_Loader.cpp:
- * tao/Union_TypeCode.cpp:
- * tao/Union_TypeCode_Static.cpp:
- * tests/Bug_1020_Basic_Regression/Server_Task.cpp:
-
- Removed unreachable statements identified by HP non stop
- MIPS build warnings.
-
-Mon Jul 18 14:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2174_Regression/client.cpp:
- Don't print the transient exception, this is expected
-
- * tests/Bug_2174_Regression/server.cpp:
- Removed commented out code
-
-Mon Jul 18 09:20:46 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * NEWS:
- Added notes about codeset refactoring.
-
-Mon Jul 18 14:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Any_Impl.cpp:
- Fixed crash in Any cleanup
-
-Mon Jul 18 15:05:03 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
-
- Fixed a bunch of warnings.
-
-Mon Jul 18 08:13:14 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
-
- Attempt to fix compile errors on Irix resulting from partially
- defined types.
-
-Mon Jul 18 05:15:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
-
- #include "ace/OS_NS_sys_time.h" to bring ACE_OS::gettimeofday()
- definition into scope for noinline builds.
-
- * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
-
- #include "ace/Auto_Ptr.h" to bring auto_ptr<> template into
- scope for noinline builds.
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
-
- #include "ace/OS_NS_stdio.h" to bring ACE_OS::sprintf()
- definition into scope for noinline builds.
-
-Mon Jul 18 06:53:00 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
-
- Fixed a bug where using reference_to_servant() with the
- DefaultServant strategy incremented the reference count by two
- instead of one.
-
- * tests/POA/Default_Servant/Default_Servant.cpp:
-
- Added tests to check that the reference count is correctly
- maintained when using reference_to_servant() with the Root POA
- and the Default Servant POA.
-
-Mon Jul 18 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Any_Impl.{h,cpp}:
- * tao/LocalObject.{h,cpp,i}:
- * tao/Messaging/AMH_Response_Handler.cpp:
- * tao/Valuetype/ValueFactory.{h,cpp}:
- Use ACE_Atomic_Op for the refcount
-
-Mon Jul 18 08:43:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Codeset_Descriptor_Base.h:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
- Fixed fuzz errors
-
-Sun Jul 17 18:57:26 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp (operator):
-
- Fixed a typo resulting from an earlier edit.
-
-Sun Jul 17 16:39:01 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Codeset_Descriptor_Base.h:
- * tao/Codeset_Manager.cpp:
- * tao/Codeset_Manager.h:
- * tao/Codeset_Manager_Factory_Base.cpp:
- * tao/Codeset_Manager_Factory_Base.h:
- * tao/Makefile.am:
- * tao/ORB_Core.cpp:
- * tao/ORB_Core.h:
- * tao/ORB_Core.i:
- * tao/Resource_Factory.cpp:
- * tao/Resource_Factory.h:
- * tao/default_resource.cpp:
- * tao/default_resource.h:
- * tao/tao.mpc:
- * tao/Codeset/Codeset_Manager_Factory.cpp:
- * tao/Codeset/Codeset_Manager_Factory.h:
- * tao/Codeset/Codeset_Manager_i.cpp:
- * tao/Codeset/Codeset_Manager_i.h:
- * tao/Codeset/Codeset_Translator_Factory.cpp:
- * tao/Codeset/UTF16_BOM_Translator.cpp:
- * tao/Codeset/Codeset_Descriptor.cpp:
- * tao/Codeset/Codeset_Descriptor.h:
-
- Moved the remaining codeset-specific details out of the ORB core
- and into TAO_Codeset. This is accomplished by moving the codeset
- descriptor interface out of the Resource_Factory.h and making it
- accessible only through the Codeset_Manager interface. This
- means that the codeset manager must be created earlier in
- the start-up if the library is available. If one assumes that
- specifying a native [w]char codeset, or translators in the
- svc.conf file, one expects to use codeset negotiation, then this
- earlier loading is not a problem. If no codeset configuration is
- supplied and -ORBNegotiateCodesets 0 is supplied to ORB_init,
- then the TAO_Codeset library will not be loaded.
-
- With static linked applications, if TAO_Codeset is not linked in
- and tao/Codeset/Codeset.h is not included, then any codeset
- specific configuration is ignored by the resource factory.
-
- This change requires regenerating makefiles for TAO and
- TAO_Codeset. If rebuilding in an existing workspace, rebuilding
- dependencies for these libraries is recommended.
-
-
-Sat Jul 16 18:01:26 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Changed init() method to not set the administrative and
- forwarding states, since those may be from a persistent
- data store.
-
-Sat Jul 16 17:48:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
- * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp
-
- Remove stray ACE_DEBUGs.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Fix inverted conditional in set_administative_state().
-
-Sat Jul 16 17:17:30 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
-
- Changed log record to use log_record_size() instead of sizeof()
- when checking whether log is full.
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
-
- Use the thread-safe interface pattern for remove() method.
- Change all callers who already have the write lock to call
- new remove_i() method. Avoids deadlock found by unit test.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Changed flush method to invoke flush on log record store.
-
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
- * orbsvcs/orbsvcs/Log/LogRecordStore.h
-
- Added flush method to ensure log records have been written
- to persistent media.
-
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Make remove_old_records public so it can be called by log
- compaction timer.
-
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp:
-
- Changed to invoke remove_old_records() on log now that
- Hash_LogRecordStore is protected by read/write locks.
-
-Sat Jul 16 15:46:21 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
- * orbsvcs/orbsvcs/Log/LogMgr_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
-
- Refactor identical code to create the factory and log channel
- POAs out of *LogFactory_i and into base class TAO_LogMgr_i.
-
-Sat Jul 16 14:46:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Hash_LogRecordStore.cpp:
-
- Add missing read/write guards.
-
- * orbsvcs/orbsvcs/LogRecordStore.h:
- * orbsvcs/orbsvcs/Hash_LogRecordStore.h:
- * orbsvcs/orbsvcs/Hash_LogRecordStore.cpp:
-
- Suppored emulated exceptions on all LogRecordStore methods.
-
- * orbsvcs/orbsvcs/Log_Persistence_Strategy.h:
- * orbsvcs/orbsvcs/LogStore.h:
-
- New files that should have been committed as part of:
- Fri Jul 15 17:01:34 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
-Sat Jul 16 16:12:04 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp (dispatch):
- Don't put the ACE_GUARDs in the TAO_GroupId*::operator() methods.
- Thanks to J.T. for noticing this.
-
-Sat Jul 16 18:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/DynamicInterface/Request.inl:
- Added include of NVList.h to fix compile errors in builds with
- inlining enabled
-
-Sat Jul 16 10:24:36 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.{cpp,h}: Added
- a lock to prevent race conditions. Thanks to Frank Hunleth
- <frank@hunleth.com> and Felix Perez Alamillo
- <fpalamillo@indra.es> for helping with this.
-
-Sat Jul 16 02:18:12 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
-
- Changed code generation of the _boxed_out() method for
- boxed array types to return the type of the valuebox
- member's .out() method. The _boxed_out() method previously
- returned the member's .inout() method, which could
- potentially cause a memory leak if the member _var's
- contained pointer is non-zero when _boxed_out() is
- called.
-
-Fri Jul 15 17:01:34 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/DsLogAdmin.mpc:
-
- Added Hash_Persistence_Strategy.*, Hash_LogStore.*, and
- Hash_LogRecordStore.* to DsLogAdmin_Serv project.
-
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
- * orbsvcs/orbsvcs/Log/LogMgr_i.h:
-
- Use dynamically loaded persistence strategy to create
- LogStore.
-
- * orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h:
- * orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp:
- * orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h:
-
- New TAO_Log_Persistence_Strategy abstract base class which
- strategizes the log parameter and log record storage, with
- concrete TAO_Hash_Persistence_Strategy.h implementation.
-
- * orbsvcs/orbsvcs/Log/LogMgr_i.cpp:
- * orbsvcs/orbsvcs/Log/LogMgr_i.h:
- * orbsvcs/orbsvcs/Log/LogStore.h:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogStore.h:
-
- Refactor LogMgr_i class so it bridges to new LogStore abstract
- base class, with concrete TAO_Hash_LogStore implementation.
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.h:
- * orbsvcs/orbsvcs/Log/LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp:
- * orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h:
-
- Refactor TAO_LogRecordStore class into an abstract base class
- with a concrete TAO_Hash_LogRecordStore implementartion.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (write_recordlist):
-
- Throw DsLogAdmin::LogOffDuty if log is off duty.
-
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
-
- Use poa_ instead of _default_POA for collocated event channel.
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
-
- Update callers.
-
- * orbsvcs/orbsvcs/Log/BasicLog_i.cpp:
- * orbsvcs/orbsvcs/Log/BasicLog_i.h:
- * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLog_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
-
- Added poa_ member variable.
-
- Changed constructor to take poa parameter.
-
- Changed destroy to use poa_ member variable instead of using
- _default_POA(), since there are now multiple POAs in play.
-
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
-
- Update callers.
-
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp (object_creation):
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
-
- Removed unused Log argument.
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h:
-
- Create persistent POAs for the log factory and log channels.
-
- Activate factory and log channel objects explicitly instead
- of using _this().
-
- Fix assorted resource leaks, unchecked emulated exceptions.
-
-Fri Jul 15 16:17:34 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * docs/Options.html:
- * tao/Codeset_Manager.cpp:
- * tao/Codeset_Manager.h:
- * tao/Makefile.am:
- * tao/ORB_Core.cpp:
- * tao/orbconf.h:
- * tao/tao.mpc:
- * tao/Codeset/Codeset.cpp:
- * tao/Codeset/Codeset_Manager_Factory.cpp:
- * tao/Codeset/Codeset_Manager_Factory.h:
- * tao/Codeset/UTF16_BOM_Factory.cpp:
- * tao/Codeset/UTF8_Latin1_Factory.cpp:
-
- Another round of changes to reconcile the differences between
- static and dynamic libraries. Static applications must
- explicitly link libTAO_Codeset and include "tao/Codeset/Codeset"
- to enable codeset support. Failing to do the include will cause
- none of the TAO_Codeset code to actually link. Thus merely
- adding -lTAO_Codeset to the link line is benign if no codeset
- support is desired. The link line is modified automatically for
- MPC projects depending on taoexe if the negotiate_codesets
- feature is enabled in default.features.
-
-Fri Jul 15 11:00:03 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
-
- Fixed platform-specific errors.
-
-Fri Jul 15 08:48:55 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp:
-
- Fixed platform-specific errors.
-
-Fri Jul 15 17:18:44 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
-
- Fixed a number of warnings.
-
-Fri Jul 15 13:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.h:
- Added forward declaration NVList
-
- * tao/tao.mpc:
- * tao/extra_core.mpb:
- Moved ClientRequestInterceptor_Adapter and ServerRequestInterceptor_
- Adapter to extra_core, don't need them in a minimum build. Removed
- tao.mpc from tao.mpv, it is already in extra_core.mpb
-
-Fri Jul 15 13:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/DynamicInterface/Context.cpp:
- * tao/DynamicInterface/DII_Invocation.cpp:
- * tao/DynamicInterface/Request.{h,cpp}:
- * tao/DynamicInterface/Server_Request.{h,cpp,inl}:
- Use more forward declarations and reduced the includes done, doxygen
- improvement and removed explicit templates
-
-Fri Jul 15 11:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/NVList.cpp:
- Initialise pointers with 0
-
-Fri Jul 15 10:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Any.h:
- Removed not needed forward declaration of CORBA_NVList
-
-Thu Jul 14 22:15:02 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Codeset/Codeset.cpp:
- * tao/Codeset/Codeset.h:
- * tao/Codeset/Codeset_Manager_Factory.cpp:
- * tao/Codeset/Codeset_Manager_Factory.h:
- * tao/Codeset/Codeset_Manager_i.cpp:
- * tao/Codeset/Codeset_Manager_i.h:
-
- Separated the classes responsible for initailizing the codeset
- library from the codeset manager implementation. This is an
- effort to improve the integration with either static or shared
- libraries.
-
- * tao/Makefile.am:
-
- Added the new files mentioned above.
-
- * tao/orbconf.h:
-
- Changed the default for codeset negotiation to be 0 for static
- builds.
-
-Thu Jul 14 22:52:09 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tao/PortableServer/Fixed_Array_SArgument_T.h:
- * tao/PortableServer/Fixed_Array_SArgument_T.inl:
-
- Changed the Fixed_Array_SArg_Traits_T typedef
- 'out_arg_type' for fixed arrays to
- be <array>_slice* instead of <array>_slice*&, and
- changed the Out_Fixed_Array_SArgument_T::arg() method
- to return a slice pointer instead of a slice pointer
- reference. Since the array is of fixed size, the slice
- pointer can be declared on the stack, and no heap
- allocation is necessary, for an OUT arg of this type on
- the skeleton side. Thanks to Chad Elliott
- <elliott_c@ociweb.com> for pointing this out.
-
-Thu Jul 14 15:04:41 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
-Thu Jul 14 21:42:43 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * docs/performance.html:
-
- Updated section on ways to reduce compile-time footprint.
-
-Thu Jul 14 12:20:59 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Codeset.mpc:
-
- Added PIDL_Files and Resource_Files definitions so that bogus
- definitions aren't added to the project.
-
-Thu Jul 14 10:51:38 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Thu Jul 14 08:38:48 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
- * tests/OBV/ValueBox/Test_impl.cpp
- * tests/OBV/ValueBox/client.cpp
- * tests/OBV/ValueBox/server.cpp:
-
- Fixed platform-specific errors.
-
-Thu Jul 14 09:06:53 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Codeset/codeset_export.h:
-
- Another round of fixes.
-
-Thu Jul 14 08:11:27 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Codeset/codeset_export.h:
- * tao/Codeset/Codeset_Manager_i.cpp:
- * tao/Codeset/UTF16_BOM_Factory.cpp:
- * tao/Codeset/UTF8_Latin1_Factory.cpp:
- * tao/Codeset/UTF8_Latin1_Translator.cpp:
-
- Fixed more platform-specific errors.
-
-Thu Jul 14 08:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.i:
- Removed not needed ;
-
-Thu Jul 14 09:37:54 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
-
- Fixed a number of fuzz errors.
-
-Wed Jul 13 21:51:15 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/ORB_Core.h:
-
- I forgot to take out the unneeded CORBA::Environment arg from
- load_codeset_manager. This was caught by a No Exceptions build.
-
-Wed Jul 13 16:46:09 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/ETCL.mpc:
-
- Added Header_Files, Inline_Files, and Template_Files sections
- so headers and inlines are installed for the automake build.
-
-Wed Jul 13 16:37:41 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/Codeset.mpc
- * tao/Codeset_Manager.cpp
- * tao/Codeset_Manager.h
- * tao/Codeset_Translator_Base.cpp
- * tao/Codeset_Translator_Base.h
- * tao/Codeset_Translator_Factory.h
- * tao/GIOP_Message_Base.cpp
- * tao/GIOP_Message_Lite.cpp
- * tao/IIOP_Acceptor.cpp
- * tao/ORB_Core.cpp
- * tao/ORB_Core.h
- * tao/ORB_Core.i
- * tao/Profile_Transport_Resolver.cpp
- * tao/Resource_Factory.cpp
- * tao/Resource_Factory.h
- * tao/Transport.cpp
- * tao/Transport.h
- * tao/Transport.inl
- * tao/default_resource.cpp
- * tao/default_resource.h
- * tao/orbconf.h
- * tao/params.cpp
- * tao/params.h
- * tao/params.i
- * tao/tao.mpc
- * tao/Codeset/Codeset_Manager_i.cpp
- * tao/Codeset/Codeset_Manager_i.h
- * tao/Codeset/Codeset_Translator_Factory.cpp
- * tao/Codeset/Codeset_Translator_Factory.h
- * tao/Codeset/Codeset_Translator_Factory_T.cpp
- * tao/Codeset/Codeset_Translator_Factory_T.h
- * tao/Codeset/UTF16_BOM_Factory.cpp
- * tao/Codeset/UTF16_BOM_Factory.h
- * tao/Codeset/UTF16_BOM_Translator.cpp
- * tao/Codeset/UTF16_BOM_Translator.h
- * tao/Codeset/UTF8_Latin1_Factory.cpp
- * tao/Codeset/UTF8_Latin1_Factory.h
- * tao/Codeset/UTF8_Latin1_Translator.cpp
- * tao/Codeset/UTF8_Latin1_Translator.h
- * tao/Codeset/codeset_export.h
-
- Refactored the support for codeset negotiation. All logic is now
- maintained in a separate library, TAO_Codeset. The class
- TAO_Codeset_Manager is now an abstract base class, providing the
- interface, when needed, to the traditional codeset assignment
- and translator selection functions. Since the instance of the
- codeset manager is now optional, all places that reference it
- must test for a non-null pointer. The initialization of the
- codeset manager is now deferred. The resource factory now
- populates a collection of codeset descriptors based on the
- supplied configuration options. The ORB Core loads an instance
- of the codeset manager on demand if the negotiate_codesets
- option is set. The tao/Codeset_Translator_Factory.h file remains
- as a shell to support backwards compatibility at the code level,
- but the base class for the translators is now in the Codeset
- library.
-
- * tests/CodeSets/libs/IBM1047_ISO8859/CodeSets_libs_IMB1047_ISO8859.mpc
- * tests/CodeSets/libs/UCS4_UTF16/CodeSets_libs_UCS4_UTF16.mpc
-
- Added a reference to the new MPC base project, codeset.
-
- * tests/CodeSets/simple/CodeSets_simple.mpc
- * tests/CodeSets/simple/wcs_test.conf
-
- Fixed misc. typos and odd dependancies.
-
- * docs/Options.html:
- * NEWS:
-
- Added description of Codeset changes.
-
-Wed Jul 13 13:26:45 2005 Gary Maxey <gary.maxey@hp.com>
-
- * NEWS:
-
- Added information about availability of the Boxed Value Type.
-
-Wed Jul 13 13:17:56 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tests/OBV/ValueBox/client.cpp:
- * tests/OBV/ValueBox/run_test.pl:
- * tests/OBV/ValueBox/server.cpp:
- * tests/OBV/ValueBox/Test_impl.cpp:
- * tests/OBV/ValueBox/Test_impl.h:
- * tests/OBV/ValueBox/valuebox.idl:
- * tests/OBV/ValueBox/valuebox.mpc:
- * tests/OBV/ValueBox/vb_basic.idl:
- * tests/OBV/ValueBox/vb_struct.idl:
- * tests/OBV/ValueBox/vb_union.idl:
-
- New test for valuebox feature
-
-Wed Jul 13 15:14:46 2005 Justin Michel <michel_j@ociweb.com>
-
- * NEWS:
-
- Added information about recent Notification Service changes.
-
-Wed Jul 13 18:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ServerRequestInterceptor_Adapter_Factory.{h,cpp}:
- * tao/ClientRequestInterceptor_Adapter_Factory.{h,cpp}:
- Added virtual destructor to resolve gcc4 runtime errors, the cpp
- file is new
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Added new files
-
- * tao/Thread_Lane_Resources_Manager.cpp:
- Removed explicit templates
-
-Wed Jul 13 18:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Pollable.pidl:
- * tao/PollableC.{h,cpp}:
- * tao/PollableS.h:
- Moved these files to the Messaging library
-
- * tao/Messaging/*C.{h,cpp}:
- Regenerated
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Updated because of file move above
-
-Wed Jul 13 12:53:34 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp:
-
- Added a missing ACE_CHECK_RETURN.
-
-Wed Jul 13 16:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTPortableServer/RT_Servant_Dispatcher.cpp:
- Updated some debug statements to get the same layout as in other places
-
-Wed Jul 13 11:18:44 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp:
-
- Update the test to be more tolerant of differing thread behavior
- on the various platforms.
-
-Wed Jul 13 10:24:39 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
-
- Print an error if the registry option is used on a non-Windows OS.
-
- * orbsvcs/examples/ImR/Advanced/run_test.pl:
-
- When "using" Getopts::Long, take everything to be compatible with
- Perl 5.6.1.
-
- * orbsvcs/orbsvcs/CosNotification.mpc:
-
- Simplify the persistence project by using a wildcard.
-
- * tao/ImR_Client/ImR_Client.h:
- * tao/ImR_Client/ImR_Client.cpp:
-
- Added a constructor to initialize the server_object_ pointer.
-
- * tao/PortableServer/Root_POA.cpp:
-
- Do not put the passed in POAManager in the safe_poa_manager as we
- do not want it to be destroyed in case an exception is thrown
- during the create_POA_i() method.
-
-Wed Jul 13 08:01:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/LoadBalancing.mpc:
-
- Fixed typo introduced in:
- Tue Jul 12 17:12:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
-Wed Jul 13 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Encodable.{h,cpp}:
- * tao/Utils/Encodable.{h,cpp}:
- Moved Encodable from the TAO lib to the Utils lib. It is a utility
- class that is not used in TAO and its tests. This way anyone using
- it can keep using it.
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Updated for change above
-
-Wed Jul 13 12:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/RT_ORB_Loader.cpp:
- Create the _var later on the stack
-
- * tao/RTCORBA/RT_ORBInitializer.cpp:
- Initialise pointer
-
- * tao/RTCORBA/RTCORBAC.h:
- No need to derive ProtocolProperties from TAO_Encodable
-
- * tao/RTCORBA/diffs/RTCORBA.diff:
- Updated
-
-Wed Jul 13 10:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IIOP_Acceptor.cpp:
- Updated some debug statements so that they have the same formatting
- as the other statements
-
-Wed Jul 13 10:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/performance.html:
- Started with documenting the defines that have impact on runtime
- footprint
-
-Tue Jul 12 17:43:55 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerated.
-
-Tue Jul 12 17:12:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/LoadBalancing.mpc:
- * orbsvcs/tests/Bug_1395_Regression/Bug_1395_Regression.mpc:
-
- Add *_IDL projects for compiling *.idl files. This eliminates
- duplicate rules that would otherwise result when Makefile.am's
- are aggregated in the automake build.
-
-Tue Jul 12 13:39:21 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/CosNaming.mpc:
- * orbsvcs/orbsvcs/CosNotification.mpc:
- * orbsvcs/orbsvcs/CosTrading.mpc:
- * orbsvcs/orbsvcs/DsEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc:
-
- Make _IDL projects unconditional now that Chad has enhanced
- MPC to support custom_only builds for VC++ projects.
-
-Tue Jul 12 18:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Upcall_Wrapper.cpp:
- Fixed compile errors with msvc6
-
-Tue Jul 12 18:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp:
- Added missing include
-
-Tue Jul 12 17:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.{h,cpp}:
- Fixed compile errors
-
-Tue Jul 12 08:56:03 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/ImplRepo/run_test.pl:
-
- Ensure that old exe files are deleted before new ones are copied in
- the nt_service_ir test.
- Make the nt_service_ir test fail more quickly when an error occurs.
-
-Tue Jul 12 08:33:05 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/RTCORBA/Banded_Connections/bands.irix:
- * tests/RTCORBA/Banded_Connections/run_test.pl:
- * tests/RTCORBA/MT_Client_Protocol_Priority/run_test.pl:
-
- Added support for IRIX.
-
- * tests/RTCORBA/Collocation/continuous.conf:
- * tests/RTCORBA/Collocation/continuous.conf.xml:
- * tests/RTCORBA/Collocation/run_test.pl:
- * tests/RTCORBA/Destroy_Thread_Pool/continuous.conf:
- * tests/RTCORBA/Destroy_Thread_Pool/continuous.conf.xml:
- * tests/RTCORBA/Destroy_Thread_Pool/run_test.pl:
- * tests/RTCORBA/Persistent_IOR/continuous.conf:
- * tests/RTCORBA/Persistent_IOR/continuous.conf.xml:
- * tests/RTCORBA/Persistent_IOR/run_test.pl:
- * tests/RTCORBA/Persistent_IOR/server.cpp:
- * tests/RTCORBA/Priority_Inversion_With_Bands/continuous.conf:
- * tests/RTCORBA/Priority_Inversion_With_Bands/continuous.conf.xml:
- * tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl:
- * tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp:
- * tests/RTCORBA/Server_Declared/continuous.conf:
- * tests/RTCORBA/Server_Declared/continuous.conf.xml:
- * tests/RTCORBA/Server_Declared/run_test.pl:
- * tests/RTCORBA/Thread_Pool/continuous.conf:
- * tests/RTCORBA/Thread_Pool/continuous.conf.xml:
- * tests/RTCORBA/Thread_Pool/run_test.pl:
-
- For HP-UX, the only priority mapping that makes sense is
- continuous. For each of these tests, I added a configurator file
- to set the priority mapping and only use it on HP-UX.
-
- * tests/RTCORBA/common_args.cpp:
-
- sscanf wasn't working properly (at least with aCC 3.60) so I
- switched to strtoul.
-
-Tue Jul 12 13:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/Persistent_IOR/client.cpp:
- Added check for nil reference
-
- * tao/Thread_Lane_Resources.cpp (cleanup_rw_transports):
- If we are already finalized (transport_cache pointer is zero)
- directly return.
-
-Tue Jul 12 13:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/Persistent_IOR/test.idl:
- Made the shutdown call a oneway
-
-Tue Jul 12 12:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Thread_Lane_Resources.cpp:
- Set pointers to zero after deleting them
-
-Tue Jul 12 12:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ClientRequestInfo.h:
- Removed invalid export macro
-
-Tue Jul 12 11:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTCORBA/RT_ORB.cpp:
- Initialise pointers with 0
-
-Tue Jul 12 11:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1639_Regression/test.mpc:
- Simplified this mpc file
-
-Tue Jul 12 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2174_Regression/Bug_2174_Regression.mpc:
- Don't build the client when minimum_corba is set
-
- * tao/CONV_FRAME.pidl:
- * tao/GIOP.pidl
- Updated regeneration instructions
-
- * tao/CONV_FRAMES_T.h:
- * tao/GIOPS_T.h
- Removed this file
-
- * tao/ClientRequestInfo.{h,cpp}
- * tao/ClientRequestInfo.pidl:
- * tao/ClientRequestInfoA.cpp
- * tao/ClientRequestInfoC.{h,cpp}:
- * tao/ClientRequestInfoS.h:
- * tao/PIForwardRequest.pidl
- * tao/PIForwardRequestA.cpp
- * tao/PIForwardRequestC.{h,cpp}:
- * tao/PIForwardRequestS.h
- * tao/RequestInfo.pidl
- * tao/RequestInfoA.cpp:
- * tao/RequestInfoC.{h,cpp}:
- * tao/RequestInfoS.h:
- These files are moved to the PI library
-
- * tao/ClientRequestInterceptor_Adapter.h:
- Don't pass TAO_ClientRequestInfo with each invocation,
- an instance is allocated within the adapter implementation.
- Also added a method to get the PortableInterceptor::ReplyStatus
- from a TAO::Invocation_Base
-
- * tao/Collocation_Resolver.cpp:
- * tao/Protocol_Factory.cpp:
- * tao/Protocols_Hooks.cpp:
- * tao/Tagged_Components.cpp:
- Removed explicit template instantiations
-
- * tao/IIOP_Profile.h:
- * tao/Profile.h:
- Moved destructor to protected part to make sure an instance
- is only removed by the _decr_refcnt
-
- * tao/Invocation_Base.{h,cpp,inl}:
- Reworked the invocation path to invoke the client request
- interceptor when it is set and don't create a TAO_ClientRequestInfo
- on the stack, this is done in the PI adapter. Store the invoke_status
- and caught_exception as members in this class, this was done
- previously in the TAO_ClientRequestInfo, but this is now not
- used anymore in the TAO lib
-
- * tao/MProfile.h:
- Doxygen improvement
-
- * tao/Makefile.am:
- Updated because of moving of files
-
- * tao/ORB_Core.h:
- No need to forward declare TAO_ServerRequest
-
- * tao/PortableInterceptor.pidl:
- * tao/PortableInterceptorC.h:
- Removed the files we moved to PI/PI_Server
-
- * tao/ServerRequestInfo.pidl:
- * tao/ServerRequestInfoA.cpp:
- * tao/ServerRequestInfoC.{h,cpp}:
- * tao/ServerRequestInfoS.h:
- Moved to the PI_Server lib
-
- * tao/ServerRequestInterceptor_Adapter.h:
- Updated to not pass TAO_ServerRequestInfo with each call, pass
- the difference exception info
-
- * tao/Stub.{h,cpp}:
- Removed service_profile_selection(), this was marked deprecated for
- a long time.
-
- * tao/Synch_Invocation.cpp:
- Fixed incorrect emulated exception usage
-
- * tao/TAO_Server_Request.{h,cpp,i}:
- Added data members which where previous in TAO_ServerRequestInfo
-
- * tao/Transport.{h,cpp,inl}:
- Removed TAO_Transport_Refcount_Guard, not used
-
- * tao/tao.mpc:
- Updated
-
- * tao/PI/ClientRequestInfo.{cpp,h}:
- * tao/PI/ClientRequestInfo.pidl:
- * tao/PI/ClientRequestInfoA.cpp"
- * tao/PI/ClientRequestInfoC.{h,cpp}:
- * tao/PI/ClientRequestInfoS.h:
- These files moved here from the TAO core library
-
- * tao/PI/ClientRequestInterceptor.pidl:
- Updated includes because of moved files
-
- * tao/PI/ClientRequestInterceptorA.cpp:
- * tao/PI/ClientRequestInterceptorC.{h,cpp}:
- * tao/PI/ClientRequestInterceptorS.h:
- Regenerated
-
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.{h,cpp}:
- Allocate a TAO_ClientRequestInfo on the stack for each
- interception point and updated for base interface
-
- * tao/PI/InterceptorA.cpp
- * tao/PI/InterceptorC.{h,cpp}:
- * tao/PI/InterceptorS.h:
- * tao/PI/ORBInitInfoA.cpp:
- * tao/PI/ORBInitInfoC.{h,cpp}:
- * tao/PI/ORBInitInfoS.h:
- * tao/PI/ORBInitializerA.cpp:
- * tao/PI/ORBInitializerC.{h,cpp}:
- * tao/PI/ORBInitializerS.h:
- Regenerated
-
- * tao/PI/PI.h:
- Include new *C.h files
-
- * tao/PI/PIForwardRequest.pidl
- * tao/PI/PIForwardRequestA.cpp
- * tao/PI/PIForwardRequestC.{h,cpp}:
- * tao/PI/PIForwardRequestS.h:
- * tao/PI/RequestInfo.pidl:
- * tao/PI/RequestInfoA.cpp:
- * tao/PI/RequestInfoC.{h,cpp}:
- * tao/PI/RequestInfoS.h:
- Moved from the TAO lib
-
- * tao/PI_Server/PI_Server.h:
- Added new *C.h files
-
- * tao/PI_Server/ServerInterceptorAdapter.{h,cpp}:
- Allocate a TAO_ServerRequestInfo for each interception point
-
- * tao/PI_Server/ServerRequestInfo.{h,cpp,inl}:
- * tao/PI_Server/ServerRequestInfo.pidl:
- * tao/PI_Server/ServerRequestInfoA.cpp:
- * tao/PI_Server/ServerRequestInfoC.{h,cpp}:
- * tao/PI_Server/ServerRequestInfoS.h:
- Moved from the PortableServer lib
-
- * tao/PI_Server/ServerRequestInterceptor.pidl:
- Updated includes
-
- * tao/PI_Server/ServerRequestInterceptorC.h:
- Regenerated
-
- * tao/PortableServer/Basic_SArguments.cpp:
- * tao/PortableServer/Special_Basic_SArguments.cpp:
- * tao/PortableServer/UB_String_SArguments.cpp
- Removed, not needed
-
- * tao/PortableServer/ServerRequestInfo.{h,cpp,inl}:
- Moved to the PI_Server lib
-
- * tao/PortableServer/Local_Servant_Base.inl:
- Removed commented out code
-
- * tao/PortableServer/ORT_Adapter.cpp:
- * tao/PortableServer/ORT_Adapter_Factory.cpp:
- * tao/PortableServer/StrategyFactory.cpp:
- Removed explicit templates
-
- * tao/PortableServer/Object_Adapter.cpp:
- * tao/PortableServer/Upcall_Wrapper.cpp:
- Updated code because of changes ServerRequestInterceptor
- adapter change
-
- * tao/RTCORBA/RT_ORBInitializer.cpp:
- Initialise pointer with 0
-
- * tao/RTScheduling/RTScheduler.pidl:
- Updated include
-
- * tao/RTScheduling/RTSchedulerC.h:
- Regenerated
-
- * tests/Big_Twoways/Peer.cpp:
- Initialise pointer with 0
-
- * tests/Portable_Interceptors/ForwardRequest/Server_Request_Interceptor.h:
- Added needed include
-
-Mon Jul 11 13:39:34 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp:
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp:
-
- Updated to solve cross platform compilation problems.
-
-Mon Jul 11 21:08:17 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Gate/Export.h:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.h:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.mpc:
-
- Added export macro.
-
-Mon Jul 11 09:07:26 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
-
- Add missing include of Event_Manager.h
-
-Mon Jul 11 07:23:49 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
-
- Set the stack size for windows based project types to 16Mb to
- allow this test to complete on Windows.
-
-Mon Jul 11 11:12:42 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
-
- Add explicit return statements to main (which is renamed
- to ace_main_i and, as a result, doesn't have proper main
- semantics).
-
-Mon Jul 11 08:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
- Removed not needed base projects
-
-Mon Jul 11 08:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2183_Regression/Bug_2183_Regression.mpc:
- Simplified this mpc file
-
- * tests/Bug_2174_Regression/*:
- New regression for bug 2174. _non_existent should return
- true/false, not raise OBJECT_NOT_EXIST. Thanks to
- Torsten Kuepper <torsten dot kuepper at nokia dot com>
- for making this regression. The bugfix for this will follow
- later this week.
-
-Fri Jul 8 12:59:38 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/GIOP_Fragments/PMB_With_Fragments/dribble.pl:
-
- Added a sleep(1) at the end of this script to allow the socket to
- get flushed before the process exits. On windows, the socket data
- is lost if the socket isn't flushed by the OS before the process
- completes.
-
-Fri Jul 8 11:15:00 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Discarding/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/lib/PushConsumer.cpp:
- * orbsvcs/tests/Notify/lib/PushSupplier.cpp:
- * orbsvcs/tests/Notify/lib/SequencePushConsumer.cpp:
- * orbsvcs/tests/Notify/lib/SequencePushSupplier.cpp:
- * orbsvcs/tests/Notify/lib/StructuredPushConsumer.cpp:
- * orbsvcs/tests/Notify/lib/StructuredPushSupplier.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp:
-
- Add NOT_USED where appropriate to exception macros.
-
-Fri Jul 8 16:03:46 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.h:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
-
- Made the code compile on platforms with emulated exceptions.
-
-Fri Jul 8 14:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Transport_Cache_Manager.h:
- Removed virtual from destructor, no need for this.
-
-Fri Jul 8 15:32:36 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
-
- Changed all references to TAO_Notify_Service:init to read
- init_service because somebody decided for some reason to
- rename this function. Also made the code compilable by VC6.
-
-Fri Jul 8 12:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/LocalObject.cpp:
- Removed some remarks about possible corba spec mismatch. Checked
- the latest corba spec and we throw the correct error
-
-Fri Jul 8 12:20:47 2005 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2183_Regression/server.conf:
-
- Used the wrong comment character in this file.
-
-Thu Jul 7 16:29:47 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
-
- Cleanup the output when enqueueing fails.
-
-Thu Jul 7 15:39:54 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf.xml:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/lookup.conf:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/lookup.conf.xml:
-
- Fix test failure due to premature orb->shutdown().
- Update conf files to reflect changes in Notify options.
-
-Thu Jul 07 12:46:22 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/fe/idl.ll
- * TAO_IDL/fe/lex.yy.cpp
- * TAO_IDL/fe/lex.yy.cpp.diff
-
- Added to regular expression for IDL_STRING_LITERAL and
- IDL_WSTRING_LITERAL to allow additional escape sequences
- specified by OMG.
-
-Thu Jul 7 19:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/performance.html:
- Added some info about how to reduce compilation footprint
-
-Thu Jul 7 19:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTScheduling/Current.cpp:
- Fixed conversion warning
-
-Thu Jul 7 11:33:09 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/ORB_Table.inl (operator==):
-
- Improved slightly by adding a TAO_ORB_Core pointer equality
- check.
-
-Thu Jul 7 11:23:12 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/ORB_Table.inl (ORB_Core_Ref_Counter):
-
- Fixed seg faults caused by calling methods through a nil
- TAO_ORB_Core pointer by verifying that the pointer is non-nil
- before doing so. Thanks to Johnny for pointing out the
- corresponding crash.
-
-Thu Jul 7 18:13:24 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/include/utl_err.h:
- * TAO_IDL/util/utl_err.cpp:
- * TAO_IDL/util/utl_global.cpp (string_to_scoped_name):
-
- Minor fix to the logic of string_to_scoped_name(), and
- removed the "malformed scoped name string" error since
- the lookup now catches it if it's incorrect.
-
-Thu Jul 7 16:56:55 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/ORB_Core.cpp:
- * tao/params.cpp:
- * tao/params.h:
- * tao/params.i:
- * tao/IIOP_Connection_Handler.cpp:
-
- Add configuration property '-ORBNoServerSideNameLookups' so
- that server side client name lookups can still be prevented
- when '-ORBDottedDecimalAddresses 1' is not used.
-
- * docs/Options.html:
-
- Document the above.
-
-Thu Jul 7 10:01:26 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Builder.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp:
- * orbsvcs/tests/Notify/Basic/ConnectDisconnect.h:
- * orbsvcs/tests/Notify/Basic/Events.h:
- * orbsvcs/tests/Notify/Basic/Filter.h:
- * orbsvcs/tests/Notify/Basic/MultiTypes.h:
- * orbsvcs/tests/Notify/Basic/Sequence.h:
- * orbsvcs/tests/Notify/Basic/Simple.h:
- * orbsvcs/tests/Notify/Basic/Updates.h:
- * orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Reconnecting/Consumer.h:
- * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.h:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.h:
- * orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h:
- * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h:
- * tests/Bug_2183_Regression/Hello.h:
-
- Fix problems with ACE exception macros and fuzz errors.
-
-Thu Jul 7 15:18:01 2005 Boris Kolpackov <boris@kolpackov.net>
-
- * orbsvcs/examples/Notify/Federation/federation.mwc:
- * orbsvcs/examples/Notify/Federation/Agent/Agent.cpp:
- * orbsvcs/examples/Notify/Federation/Agent/Agent.mpc:
- * orbsvcs/examples/Notify/Federation/Agent/README:
- * orbsvcs/examples/Notify/Federation/Agent/agent.dia:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.cpp:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.h:
- * orbsvcs/examples/Notify/Federation/Gate/Gate.mpc:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/README:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp:
- * orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc:
-
- Added a set of examples and support code that show how to set
- up a multicast-based federation of Notification Services.
-
- * NEWS:
-
- Announce new examples.
-
-Thu Jul 7 11:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core_TSS_Resources.cpp:
- Removed not needed include
-
-Thu Jul 7 08:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Basic_Arguments.cpp:
- * tao/Special_Basic_Arguments.cpp:
- * tao/UB_String_Arguments.cpp:
- Removed these files
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Updated for changes above
-
- * tao/Object.cpp (_get_orb):
- Updated to comply with coding guidelines. Thanks to Ossama to
- point out a few minor items
-
-Wed Jul 6 23:10:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Object_Ref_Table.cpp (bind):
-
- "Transfer" ownership of the object reference being inserted to the
- object reference table by increasing the reference count.
- Addresses seg faults in code that accesses object references
- from the this table.
-
-Wed Jul 6 15:06:17 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
- * orbsvcs/tests/Notify/Blocking/common.cpp:
- * orbsvcs/tests/Notify/Discarding/common.cpp:
- * orbsvcs/tests/Notify/Ordering/common.cpp:
- * orbsvcs/tests/Notify/Reconnecting/Consumer.cpp:
- * orbsvcs/tests/Notify/Reconnecting/Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp:
- * orbsvcs/tests/Notify/lib/Task_Stats.inl:
- * orbsvcs/tests/Notify/performance-tests/Filter/common.cpp:
-
- Some ACE_*_cast macros were inadvertently reintroduced when porting notification
- service fixes from 1.4a.
-
-Wed Jul 6 12:15:49 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Object_Ref_Table.h (TAO_Object_Ref_Table):
-
- Re-exported this class until code that accesses it directly is
- updated to use the standard interface.
-
- * tao/RTCORBA/RT_Protocols_Hooks.cpp:
- * tao/RTScheduling/Current.cpp:
- * tao/RTScheduling/RTScheduler_Manager.i:
-
- Reverted changes below due to potential order of initialization
- problems.
-
-Wed Jul 6 11:06:22 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/RTCORBA/RT_Protocols_Hooks.cpp:
- * tao/RTScheduling/Current.cpp:
- * tao/RTScheduling/RTScheduler_Manager.i:
-
- Register and retrieve initial references through the standard
- ORB interface, not directly through the underlying table. The
- table is no longer exported.
-
-Wed Jul 06 10:48:04 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/ast/ast_expression.cpp:
- * TAO_IDL/include/ast_expression.h:
-
- Fix for broken mod (%) operator in constant expressions.
-
-Wed Jul 6 08:11:07 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp (create_with_id):
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp (create_with_id):
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp (create_with_id):
-
- Fix cut-n-pasto introduced in:
- Tue Jul 5 18:01:04 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
-Wed Jul 6 15:44:16 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/IIOP_Connection_Handler.cpp (open):
-
- Set server side sockets to be non-blocking even if the
- client connection policy is blocking. This fixes bugzilla
- #2183.
-
- * tests/Bug_2183_Regression/Bug_2183_Regression.mpc:
- * tests/Bug_2183_Regression/Hello.cpp:
- * tests/Bug_2183_Regression/Hello.h:
- * tests/Bug_2183_Regression/README:
- * tests/Bug_2183_Regression/Test.idl:
- * tests/Bug_2183_Regression/client.cpp:
- * tests/Bug_2183_Regression/hang_client.pl:
- * tests/Bug_2183_Regression/run_test.pl:
- * tests/Bug_2183_Regression/server.conf:
- * tests/Bug_2183_Regression/server.cpp:
-
- Added regression test for the above.
-
-Wed Jul 6 09:47:47 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
- * orbsvcs/orbsvcs/Notify/Event.inl:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.h:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.cpp:
- * orbsvcs/tests/Notify/lib/Notify_Test_Client.h:
-
- Fix misc problems with exception macros.
- Fix problem with renamed init() method.
- Fix problem with use of ACE_Thread_Mutex instead of TAO_SYNCH_MUTEX.
-
-Tue Jul 5 18:01:04 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp (create_with_id):
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp (create_with_id):
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp (create_with_id):
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp (create_with_id):
-
- Throw DsLogAdmin::InvalidLogFullAction when passed an
- unknown/unsupported log full action.
-
-Tue Jul 5 17:22:12 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp (create_with_id):
-
- Uncomment ACE_CHECK_RETURN(...) after call to object_creation()
- to align behavior between native and emulated exceptions and to
- match cooresponding checks in NotifyLogFactory_i.cpp and
- RTEventLogFactory_i.cpp.
-
-Tue Jul 5 17:06:09 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (set_log_full_action):
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Throw DsLogAdmin::InvalidLogFullAction when passed an
- unknown/unsupported log full action.
-
-Tue Jul 5 23:03:27 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/idl.ll:
- * TAO_IDL/fe/lex.yy.cpp:
- * TAO_IDL/include/utl_err.h:
- * TAO_IDL/util/utl_err.cpp:
- * TAO_IDL/util/utl_global.cpp:
-
- - Added a check to code that converts a string to a
- ScopedName class in the IDL compiler. The check
- detects certain kinds (not all) of malformed strings.
-
- - Fixed a bug in the string handling code that processes
- a #pragma ID directive. There was confusion if the
- target node name was not scoped (contained no double
- colon) but the ID string did.
-
- Thanks to Gar Maxey <gary.maxey@hp.com> for sending in
- the example IDL file that uncovered these problems.
-
-Tue Jul 5 14:12:07 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/ImplRepo/run_test.pl:
-
- Cleanup generated files such as IORs and the copy of the server
- executable.
-
-Tue Jul 05 11:49:13 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Valuetype/StringValueC.inl:
-
- Avoid error when compiling with HPUX compiler.
-
-Tue Jul 5 10:15:29 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp:
-
- Ensure that OS_NS_unistd.h is included where we use ACE_OS::unlink().
-
-Tue Jul 5 07:48:44 2005 Justin Michel <michel_j@ociweb.com>
-
- * examples/Kokyu_dsrt_schedulers/EDF_SchedulingC.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
-
- Fix case of include for tao/TypeCode.h
-
-Tue Jul 5 07:41:12 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/Notify/Basic/AdminProperties.cpp:
- * orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp:
- * orbsvcs/tests/Notify/Basic/Events.cpp:
- * orbsvcs/tests/Notify/Basic/MultiTypes.cpp:
- * orbsvcs/tests/Notify/Basic/Sequence.cpp:
- * orbsvcs/tests/Notify/Basic/Simple.cpp:
- * orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/go.idl:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/go.idl:
- * orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp:
- * orbsvcs/tests/Notify/lib/Peer_T.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Structured_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
-
- Fix misc problems with use of ACE_ENV macros.
- Add missing go.idl files
-
-Tue Jul 5 03:07:52 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/CORBA_String.h:
- * tao/CORBA_String.inl:
-
- Added TAO-specific equality operators. Allows
- CORBA::{W}String_var to be used as map key.
-
- * tao/ORB.cpp (resolve_initial_references):
-
- The initial reference map is now an ACE_Array_Map, which
- implements an STL-like map interface. Updated map iteration
- accordingly.
-
- * tao/ORB_Core.cpp:
- * tao/ORB_Core.h:
- * tao/ORB_Core.i:
- * tao/ORB_Table.cpp:
- * tao/ORB_Table.h:
- * tao/ORB_Table.inl:
- * tao/Object_Ref_Table.cpp:
- * tao/Object_Ref_Table.h:
- * tao/Object_Ref_Table.inl:
- * tao/params.cpp:
- * tao/params.h:
- * tao/params.i:
-
- Replaced ACE_Hash_Map_Manager_Ex usage with light weight
- ACE_Array_Map. Hash map benefits were not worth the larger
- footprint.
-
- Inlined a number very small functions. Reduces footprint.
-
- * tao/Object_Ref_Table.h (TAO_Object_Ref_Table):
-
- Do not export this class from the TAO shared library. It is
- meant for internal use alone.
-
- * tao/ORB_Core_Auto_Ptr.h (TAO_ORB_Core_Auto_Ptr):
-
- Uncommented "explicit" constructor keyword. Support for it has
- been required in ACE and TAO for a while now.
-
- * tao/Makefile.am (nobase_include_HEADERS):
-
- Added new Object_Ref_Table.inl inline soure file.
-
-Mon Jul 4 18:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/PortableGroup/MIOP.h:
- Added closing } that was removed by accident earlier today
-
-Mon Jul 4 14:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Collocation_Opportunities/Collocation_Opportunities.cpp:
- Fixed compile error
-
-Mon Jul 4 14:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.h:
- * tao/params.h:
- * tao/Server_Strategy_Factory.h:
- Removed not needed forward declarations
-
-Mon Jul 4 13:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Stub.h:
- Removed not needed forward declarations
-
-Mon Jul 4 13:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/orb_types.pidl:
- Don't use -GA with regeneration, we then get an A.cpp with contents
- but the C.cpp file is empty, so just generate everything in C.cpp
-
- * tao/orb_typesC.{h,cpp}:
- * tao/orb_typesS.h:
- Regenerated
-
- * tao/orb_typesA.cpp:
- Removed
-
- * tao/Makefile.am:
- * tao/tao.mpc:
- Removed file above
-
-Mon Jul 4 13:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Makefile.am:
- Added missing Messaging_PolicyValueA.cpp
-
- * tao/tao.mpc:
- Added missing Messaging_PolicyValueA.cpp and
- Messaging_PolicyValueC.cpp
-
-Mon Jul 4 13:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Protocols_Hooks.h:
- Removed several not needed forward declarations
-
-Mon Jul 4 13:07:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Visibility.pidl:
- Don't use -GA with regeneration, we then get an A.cpp with contents
- but the C.cpp file is empty, so just generate everything in C.cpp
-
- * tao/VisibilityC.{h,cpp}:
- * tao/VisibilityS.h:
- Regenerated
-
- * tao/VisibilityA.cpp:
- Removed
-
- * tao/Makefile.am:
- * tao/tao.mpc:
- Removed file above
-
-Mon Jul 4 12:59:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PredefinedType_Seq_Tmplinst.cpp:
- Removed this file, explicit templates are not working with TAO
- and will not work anymore in the future
-
- * tao/Makefile.am:
- * tao/tao.mpc:
- Removed file above
-
-Mon Jul 4 12:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h:
- * orbsvcs/orbsvcs/PortableGroup/MIOP.h:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h:
- * tao/PICurrent_Loader.h:
- * tao/BiDir_GIOP/BiDirGIOP.h:
- * tao/CodecFactory/CodecFactory.h:
- * tao/DynamicAny/DynamicAny.h:
- * tao/DynamicInterface/Dynamic_Adapter_Impl.h:
- * tao/IFR_Client/IFR_Client_Adapter_Impl.h:
- * tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h:
- * tao/IORManipulation/IORManip_Loader.h:
- * tao/IORTable/IORTable.h:
- * tao/ImR_Client/ImR_Client.h:
- * tao/Messaging/Messaging.h:
- * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h:
- * tao/PI/PI.h:
- * tao/PI/PolicyFactory_Loader.h:
- * tao/PI_Server/PI_Server.h:
- * tao/PortableServer/PortableServer.h:
- * tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h:
- * tao/TypeCodeFactory/TypeCodeFactory_Loader.h:
- * tao/Valuetype/Valuetype_Adapter_Impl.h:
- Removed usage of ACE_HAS_BROKEN_STATIC_CONSTRUCTORS. This seems
- to be used for older broken VxWorks versions but we don't need
- this anymore. Zapped the usage of this and the workaround we
- had in TAO. This fixes bugzilla bug 2177
-
-Mon Jul 4 11:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORBInitializer_Registry_Adapter.{h,cpp}:
- Added virtual destructor in new cpp file, hopefully this fixes the
- gcc 4 runtime errors
-
- * tao/tao.mpc
- * tao/Makefile.am:
- Added new file
-
-Mon Jul 4 10:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI_Server/PI_Server.cpp:
- * tao/PI_Server/ServerRequestInterceptor_Factory_Impl.{h,cpp}:
- * tao/PI/PI.cpp:
- * tao/PI/ClientRequestInterceptor_Factory_Impl.{h,cpp}:
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.{h,cpp}:
- Added guards for when interceptors are disabled. The complete
- PI/PI_Server lib shouldn't get build when interceptors are
- disabled but that is not yet possible because the
- ORBInitializers are used internally by some core libs.
-
-Mon Jul 4 09:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/AMH/Sink_Server/AMH_Servant.h:
- * examples/Content_Server/AMI_Iterator/Content_Iterator_i.h:
- * examples/Content_Server/AMI_Iterator/Iterator_Handler.h:
- * examples/Content_Server/AMI_Observer/Callback_Handler.h:
- * examples/Content_Server/AMI_Observer/Callback_i.h:
- * examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h:
- * examples/Content_Server/SMI_Iterator/Content_Iterator_i.h:
- * examples/Load_Balancing/Identity_i.h:
- * examples/Load_Balancing/Load_Balancer_i.h:
- * examples/Load_Balancing_persistent/Identity_i.h:
- * examples/Load_Balancing_persistent/Load_Balancer_i.h:
- * examples/POA/Forwarding/test_i.h:
- * examples/RTCORBA/Activity/Job_i.h:
- * examples/RTScheduling/Job_i.h:
- * examples/Simple/time-date/Time_Date_i.h:
- * orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h:
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h:
- * orbsvcs/ImplRepo_Service/Iterator.h:
- * orbsvcs/examples/CosEC/Factory/CosEventChannelFactory_i.h:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/ConsumerAdmin_i.h:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/CosEvent_Utilities.h:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/EventChannel_i.h:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushConsumer_i.h:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushSupplier_i.h:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/SupplierAdmin_i.h:
- * orbsvcs/examples/ImR/Advanced/Manager_i.h:
- * orbsvcs/examples/ImR/Advanced/Messenger_i.h:
- * orbsvcs/examples/ImR/Combined_Service/dynserver.h:
- * orbsvcs/examples/LoadBalancing/RPS_Monitor.h:
- * orbsvcs/examples/LoadBalancing/StockFactory.h:
- * orbsvcs/examples/Log/Notify/Notify_Consumer.h:
- * orbsvcs/examples/Log/Notify/Notify_Supplier.h:
- * orbsvcs/examples/Notify/Filter/Filter.h:
- * orbsvcs/examples/Notify/Lanes/Consumer.h:
- * orbsvcs/examples/Notify/Lanes/Supplier.h:
- * orbsvcs/examples/Notify/Subscribe/Subscribe.h:
- * orbsvcs/examples/Notify/ThreadPool/Consumer.h:
- * orbsvcs/examples/Notify/ThreadPool/Supplier.h:
- * orbsvcs/examples/ORT/Gateway_i.h:
- * orbsvcs/orbsvcs/AV/AVStreams_i.h:
- * orbsvcs/orbsvcs/AV/Flows_T.h:
- * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h:
- * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_Random.h:
- * orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h:
- * orbsvcs/orbsvcs/Log/BasicLog_i.h:
- * orbsvcs/orbsvcs/Log/EventLog_i.h:
- * orbsvcs/orbsvcs/Log/Iterator_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.h:
- * orbsvcs/orbsvcs/Log/NotifyLogNotification.h:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
- * orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h:
- * orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h:
- * orbsvcs/orbsvcs/Notify/ETCL_Filter.h:
- * orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h:
- * orbsvcs/orbsvcs/Property/CosPropertyService_i.h:
- * orbsvcs/orbsvcs/Trader/Offer_Iterators.h:
- * orbsvcs/orbsvcs/Trader/Trader_T.h:
- * orbsvcs/orbsvcs/Trader/Trader_Utils.h:
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/Roundtrip.h:
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/RPS_Monitor.h:
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Roundtrip.h:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Roundtrip.h:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Session.h:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Session_Factory.h:
- * orbsvcs/performance-tests/RTEvent/lib/Consumer.h:
- * orbsvcs/performance-tests/RTEvent/lib/Control.h:
- * orbsvcs/performance-tests/RTEvent/lib/Loopback.h:
- * orbsvcs/performance-tests/RTEvent/lib/Loopback_Consumer.h:
- * orbsvcs/performance-tests/RTEvent/lib/Loopback_Supplier.h:
- * orbsvcs/performance-tests/RTEvent/lib/Peer_Base.h:
- * orbsvcs/performance-tests/RTEvent/lib/Supplier.h:
- * orbsvcs/tests/CosEvent/Basic/Random.h:
- * orbsvcs/tests/Event/Basic/Random.h:
- * orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h:
- * orbsvcs/tests/HTIOP/Hello/Hello.h:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Basic.h:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Simple.h:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Basic.h:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Simple.h:
- * orbsvcs/tests/Miop/McastHello/McastHello.h:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.h:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.h:
- * orbsvcs/tests/Notify/lib/Peer_T.h:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h:
- * orbsvcs/tests/RTCosScheduling/Object1_i.h:
- * orbsvcs/tests/Security/Callback/client_i.h:
- * orbsvcs/tests/Security/Callback/server_i.h:
- * orbsvcs/tests/Security/Secure_Invocation/Foo_i.h:
- * performance-tests/Protocols/Protocols.mpc
- * tests/AMI_Buffering/AMI_Buffering.h:
- * tests/AMI_Buffering/AMI_Buffering_Admin.h:
- * tests/AMI_Buffering/Reply_Handler.h:
- * tests/Any/Recursive/Hello.h:
- * tests/BiDirectional_NestedUpcall/test_i.h:
- * tests/Big_Reply/Big_Reply_i.h:
- * tests/Big_Request_Muxing/Payload_Receiver.h:
- * tests/Big_Twoways/Peer.h:
- * tests/Blocking_Sync_None/Blocking_Sync_None.h:
- * tests/Bug_1476_Regression/Sender_i.h:
- * tests/Bug_1482_Regression/Hello.h:
- * tests/Bug_1495_Regression/test_i.h:
- * tests/Bug_1551_Regression/Hello.h:
- * tests/Bug_1551_Regression/Reply_Handler.h:
- * tests/Cache_Growth_Test/Hello.h:
- * tests/Client_Leaks/Process.h:
- * tests/Client_Leaks/Process_Factory.h:
- * tests/Client_Leaks/Startup_Callback.h:
- * tests/Collocation_Tests/Hello.h:
- * tests/Connect_Strategy_Test/Hello.h:
- * tests/Connection_Purging/test_i.h:
- * tests/Crash_On_Write/Oneway_Receiver.h:
- * tests/Crashed_Callback/Crashed_Callback.h:
- * tests/Crashed_Callback/Service.h:
- * tests/Faults/ping_i.h:
- * tests/Faults/test_i.h:
- * tests/GIOP_Fragments/Java_Big_Request/Payload_Receiver.h:
- * tests/GIOP_Fragments/PMB_With_Fragments/Payload_Receiver.h:
- * tests/Hang_Shutdown/test_i.h:
- * tests/Hello/Hello.h:
- * tests/ICMG_Any_Bug/Hello.h:
- * tests/ICMG_Any_Bug/HelloWorld.h:
- * tests/IOR_Endpoint_Hostnames/bogus_i.h:
- * tests/LongUpcalls/AMI_Manager.h:
- * tests/LongUpcalls/Controller.h:
- * tests/LongUpcalls/Manager.h:
- * tests/LongUpcalls/Manager_Handler.h:
- * tests/MT_BiDir/Receiver_i.h:
- * tests/MT_BiDir/Sender_i.h:
- * tests/MT_Timeout/Sleep_Service.h:
- * tests/Nested_Upcall_Crash/Client_Peer.h:
- * tests/Nested_Upcall_Crash/Server_Peer.h:
- * tests/OBV/Supports/Supports_Test_impl.h:
- * tests/ORB_shutdown/Foo_Bar.h:
- * tests/Object_Loader/Test_i.h:
- * tests/Oneway_Buffering/Oneway_Buffering.h:
- * tests/Oneway_Buffering/Oneway_Buffering_Admin.h:
- * tests/Oneways_Invoking_Twoways/Receiver_i.h:
- * tests/Oneways_Invoking_Twoways/Sender_i.h:
- * tests/POA/Deactivate_Object/Hello.h:
- * tests/Portable_Interceptors/AMI/Echo.h:
- * tests/Portable_Interceptors/AMI/Echo_Handler.h:
- * tests/Portable_Interceptors/Collocated/Dynamic/test_i.h:
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.h:
- * tests/RTCORBA/Priority_Inversion_With_Bands/test_i.h:
- * tests/RTCORBA/Thread_Pool/test_i.h:
- * tests/Reliable_Oneways/Oneway_Receiver.h:
- * tests/Reliable_Oneways/Shutdown_Helper.h:
- * tests/Servant_To_Reference_Test/Test_i.h:
- * tests/Server_Connection_Purging/Test_i.h:
- * tests/Server_Leaks/Ping_Service.h:
- * tests/Server_Port_Zero/Hello.h:
- * tests/Stack_Recursion/Sender.h:
- * TAO_IDL/be/be_visitor_interface/interface_ih.cpp:
- * docs/tutorials/Quoter/Event_Service/Stock_i.h:
- * docs/tutorials/Quoter/RT_Event_Service/Stock_i.h:
- * docs/tutorials/Quoter/Simple/ImprovedServer/Stock_i.h:
- * examples/POA/Adapter_Activator/server.cpp:
- * examples/POA/Reference_Counted_Servant/server.cpp:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushConsumer_i.cpp:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/ProxyPushSupplier_i.cpp:
- * orbsvcs/examples/ImR/Combined_Service/combined.cpp:
- * orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp:
- * orbsvcs/tests/Event/Mcast/Complex/consumer.cpp:
- * orbsvcs/tests/Event/Mcast/Simple/consumer.cpp:
- * orbsvcs/tests/Event/Mcast/Two_Way/application.cpp:
- * orbsvcs/tests/ImplRepo/scale/server_i.cpp:
- * orbsvcs/tests/Redundant_Naming/client.cpp:
- * orbsvcs/tests/Security/ssliop_corbaloc/client.cpp:
- * orbsvcs/tests/Simple_Naming/client.cpp:
- * performance-tests/Latency/AMH_Single_Threaded/Roundtrip.h:
- * performance-tests/Latency/AMI/Roundtrip.h:
- * performance-tests/Latency/AMI/Roundtrip_Handler.h:
- * performance-tests/Latency/Collocation/Roundtrip.h:
- * performance-tests/Latency/DII/Roundtrip.h:
- * performance-tests/Latency/DSI/Roundtrip.h:
- * performance-tests/Latency/Deferred/Roundtrip.h:
- * performance-tests/Latency/Single_Threaded/Roundtrip.h:
- * performance-tests/Latency/Thread_Per_Connection/Roundtrip.h:
- * performance-tests/Latency/Thread_Pool/Roundtrip.h:
- * performance-tests/Memory/IORsize/Foo_i.h:
- * performance-tests/Memory/IORsize/Memory_Growth.h:
- * performance-tests/Memory/Single_Threaded/Memory_Growth.h:
- * performance-tests/POA/Implicit_Activation/Factory.h:
- * performance-tests/POA/Implicit_Activation/Simple.h:
- * performance-tests/Protocols/Protocols.mpc
- * performance-tests/Protocols/distributor.cpp:
- * performance-tests/Protocols/receiver.cpp:
- * performance-tests/RTCorba/Thread_Pool/server.cpp:
- * performance-tests/Sequence_Latency/AMH_Single_Threaded/Roundtrip.h:
- * performance-tests/Sequence_Latency/AMI/Roundtrip.h:
- * performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h:
- * performance-tests/Sequence_Latency/DII/Roundtrip.h:
- * performance-tests/Sequence_Latency/DSI/Roundtrip.h:
- * performance-tests/Sequence_Latency/Deferred/Roundtrip.h:
- * performance-tests/Sequence_Latency/Single_Threaded/Roundtrip.h:
- * performance-tests/Sequence_Latency/Thread_Per_Connection/Roundtrip.h:
- * performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.h:
- * performance-tests/Throughput/Receiver.h:
- * performance-tests/Throughput/Receiver_Factory.h:
- * tao/ImR_Client/ServerObject_i.h:
- * tests/AMH_Exceptions/server.cpp:
- * tests/AMH_Oneway/server.cpp:
- * tests/Bug_1568_Regression/server.cpp:
- * tests/Bug_1670_Regression/server.cpp:
- * tests/Collocation_Opportunities/Collocation_Opportunities.cpp:
- * tests/Faults/test_i.h:
- * tests/Objref_Sequence_Test/server.cpp:
- * tests/POA/Etherealization/Etherealization.cpp:
- * tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp:
- * tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp:
- * tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp:
- * tests/POA/Persistent_ID/server.cpp:
- * tests/RTCORBA/Collocation/Collocation.cpp:
- * tests/RTCORBA/Linear_Priority/server.cpp:
- * tests/RTCORBA/Persistent_IOR/server.cpp:
- * tests/RTCORBA/Policy_Combinations/server.cpp:
- * tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp:
- * tests/UNKNOWN_Exception/server.cpp:
- All servants are reference counted by default, no need anymore to
- derive the servant from RefCountServantBase. Also removed the msvc
- pragma push/pop when it was not needed anymore
-
- * tao/Object.{h,cpp}:
- Corrected implementation _get_orb()
-
- * tao/SystemException.cpp:
- Initailize pointers with 0
-
-Mon Jul 4 07:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Big_Twoways/Coordinator.h:
- * tests/Big_Twoways/Session.h:
- * tests/Big_Twoways/Session_Control.h:
- * tests/Big_Oneways/Coordinator.h:
- * tests/Big_Oneways/Peer.h:
- * tests/Big_Oneways/Session.h:
- * tests/Big_Oneways/Session_Control.h:
- No need to derive from RefCountServantBase, Servants are
- reference counted now by defailt.
-
- * tests/Big_Twoways/run_test.pl:
- * tests/Big_Oneways/run_test.pl:
- Use WaitKill for the server, if the server is still running, it
- is an error
-
- * tests/Big_Twoways/server.cpp:
- * tests/Big_Oneways/server.cpp:
- No need to do a _remove_ref, the _var handle this
-
-Sun Jul 3 15:09:06 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
-
- Fix typo in ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA case.
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
-
- Change create() method parameter name from max_rec_size to
- max_size, as it specifies the size of the whole log, not a
- single log record.
-
-Sun Jul 3 15:00:29 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * tao/tao.mpc:
-
- Removed Interceptor_List.h from Header_Files and
- Interceptor_List.cpp from Template_Files sections.
-
-Fri Jul 01 15:14:06 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Valuetype/StringValueC.inl:
-
- Avoid error when compiling with MSVC6 compiler.
-
-Fri Jul 1 16:14:16 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp:
- * orbsvcs/tests/Notify/lib/Options_Parser.cpp:
-
- Fix some typos with the previous checkin.
-
-Fri Jul 1 14:43:27 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/Notify_Service/Notify_Service.cpp:
- * orbsvcs/Notify_Service/README:
- * orbsvcs/Notify_Service/svc.conf:
- * orbsvcs/Notify_Service/svc.conf.xml:
- * orbsvcs/orbsvcs/CosNotification.mpc:
- * orbsvcs/orbsvcs/CosNotifyComm.idl:
- * orbsvcs/orbsvcs/Notify/Admin.h:
- * orbsvcs/orbsvcs/Notify/Admin.inl:
- * orbsvcs/orbsvcs/Notify/Admin.cpp:
- * orbsvcs/orbsvcs/Notify/AdminProperties.h:
- * orbsvcs/orbsvcs/Notify/AdminProperties.inl:
- * orbsvcs/orbsvcs/Notify/AdminProperties.cpp:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.h:
- * orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.h:
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp:
- * orbsvcs/orbsvcs/Notify/Builder.cpp:
- * orbsvcs/orbsvcs/Notify/Consumer.h:
- * orbsvcs/orbsvcs/Notify/Consumer.inl:
- * orbsvcs/orbsvcs/Notify/Consumer.cpp:
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.h:
- * orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.h:
- * orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp:
- * orbsvcs/orbsvcs/Notify/Default_Factory.cpp:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.h:
- * orbsvcs/orbsvcs/Notify/Delivery_Request.cpp:
- * orbsvcs/orbsvcs/Notify/ETCL_Filter.h:
- * orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp:
- * orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h:
- * orbsvcs/orbsvcs/Notify/Event.h:
- * orbsvcs/orbsvcs/Notify/Event.inl:
- * orbsvcs/orbsvcs/Notify/Event.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannel.h:
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.h:
- * orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp:
- * orbsvcs/orbsvcs/Notify/EventTypeSeq.h:
- * orbsvcs/orbsvcs/Notify/Event_Manager.h:
- * orbsvcs/orbsvcs/Notify/Event_Manager.inl:
- * orbsvcs/orbsvcs/Notify/Event_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h:
- * orbsvcs/orbsvcs/Notify/FilterAdmin.h:
- * orbsvcs/orbsvcs/Notify/FilterAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request.h:
- * orbsvcs/orbsvcs/Notify/Method_Request.inl:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Event.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp:
- * orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates.h:
- * orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp:
- * orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h:
- * orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp:
- * orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp:
- * orbsvcs/orbsvcs/Notify/Object.h:
- * orbsvcs/orbsvcs/Notify/Object.inl:
- * orbsvcs/orbsvcs/Notify/Object.cpp:
- * orbsvcs/orbsvcs/Notify/Peer.h:
- * orbsvcs/orbsvcs/Notify/Peer.cpp:
- * orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h:
- * orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp:
- * orbsvcs/orbsvcs/Notify/Properties.cpp:
- * orbsvcs/orbsvcs/Notify/Proxy.h:
- * orbsvcs/orbsvcs/Notify/Proxy.cpp:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.h:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.inl:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.h:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.inl:
- * orbsvcs/orbsvcs/Notify/ProxySupplier.cpp:
- * orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp:
- * orbsvcs/orbsvcs/Notify/Proxy_T.cpp:
- * orbsvcs/orbsvcs/Notify/QoSProperties.h:
- * orbsvcs/orbsvcs/Notify/QoSProperties.inl:
- * orbsvcs/orbsvcs/Notify/QoSProperties.cpp:
- * orbsvcs/orbsvcs/Notify/README:
- * orbsvcs/orbsvcs/Notify/RT_Builder.cpp:
- * orbsvcs/orbsvcs/Notify/RT_Notify_Service.h:
- * orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp:
- * orbsvcs/orbsvcs/Notify/Random_File.h:
- * orbsvcs/orbsvcs/Notify/Random_File.cpp:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.h:
- * orbsvcs/orbsvcs/Notify/Reactive_Task.cpp:
- * orbsvcs/orbsvcs/Notify/Reconnection_Registry.h:
- * orbsvcs/orbsvcs/Notify/Refcountable.h:
- * orbsvcs/orbsvcs/Notify/Refcountable.cpp:
- * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h:
- * orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.h:
- * orbsvcs/orbsvcs/Notify/Routing_Slip.cpp:
- * orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Service.h:
- * orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h:
- * orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h:
- * orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp:
- * orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h:
- * orbsvcs/orbsvcs/Notify/Supplier.h:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.h:
- * orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.h:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.inl:
- * orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp:
- * orbsvcs/orbsvcs/Notify/Timer.h:
- * orbsvcs/orbsvcs/Notify/Timer_Queue.h:
- * orbsvcs/orbsvcs/Notify/Timer_Reactor.h:
- * orbsvcs/orbsvcs/Notify/Topology_Object.h:
- * orbsvcs/orbsvcs/Notify/Topology_Object.cpp:
- * orbsvcs/orbsvcs/Notify/Worker_Task.h:
- * orbsvcs/orbsvcs/Notify/Buffering_Strategy.inl:
- * orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.h:
- * orbsvcs/orbsvcs/Notify/Sequence/Batch_Buffering_Strategy.cpp:
-
- Ported over the refactoring of the Notify Service by Dave Giovannini
- <giovannini_d at ociweb dot com>. These changes primarily fix memory leaks
- and crashes.
- Ported over my own changes that reimplement the OrderPolicy, BlockingPolicy, and
- DiscardPolicy features.
-
- * orbsvcs/tests/Notify/Basic/AdminProperties.h:
- * orbsvcs/tests/Notify/Basic/AdminProperties.cpp:
- * orbsvcs/tests/Notify/Basic/ConnectDisconnect.h:
- * orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp:
- * orbsvcs/tests/Notify/Basic/Events.h:
- * orbsvcs/tests/Notify/Basic/Events.cpp:
- * orbsvcs/tests/Notify/Basic/Filter.h:
- * orbsvcs/tests/Notify/Basic/Filter.cpp:
- * orbsvcs/tests/Notify/Basic/IdAssignment.cpp:
- * orbsvcs/tests/Notify/Basic/LifeCycle.cpp:
- * orbsvcs/tests/Notify/Basic/MultiTypes.h:
- * orbsvcs/tests/Notify/Basic/MultiTypes.cpp:
- * orbsvcs/tests/Notify/Basic/Sequence.h:
- * orbsvcs/tests/Notify/Basic/Sequence.cpp:
- * orbsvcs/tests/Notify/Basic/Simple.h:
- * orbsvcs/tests/Notify/Basic/Simple.cpp:
- * orbsvcs/tests/Notify/Basic/Updates.h:
- * orbsvcs/tests/Notify/Basic/Updates.cpp:
- * orbsvcs/tests/Notify/Basic/adminproperties.conf:
- * orbsvcs/tests/Notify/Basic/notify.mt.conf:
- * orbsvcs/tests/Notify/Basic/notify.reactive.conf:
- * orbsvcs/tests/Notify/Basic/notify.rt.conf:
- * orbsvcs/tests/Notify/Basic/run_test.pl:
- * orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.h:
- * orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Blocking/common.cpp:
- * orbsvcs/tests/Notify/Blocking/go.idl:
- * orbsvcs/tests/Notify/Blocking/notify.conf:
- * orbsvcs/tests/Notify/Blocking/notify.conf.xml:
- * orbsvcs/tests/Notify/Blocking/run_test.pl:
- * orbsvcs/tests/Notify/Destroy/main.cpp:
- * orbsvcs/tests/Notify/Discarding/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/Discarding/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.h:
- * orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Discarding/common.cpp:
- * orbsvcs/tests/Notify/Discarding/go.idl:
- * orbsvcs/tests/Notify/Discarding/notify.conf:
- * orbsvcs/tests/Notify/Discarding/notify.conf.xml:
- * orbsvcs/tests/Notify/Discarding/run_test.pl:
- * orbsvcs/tests/Notify/Driver/main.cpp:
- * orbsvcs/tests/Notify/Lanes/consumer.conf:
- * orbsvcs/tests/Notify/Lanes/notify.conf:
- * orbsvcs/tests/Notify/Lanes/run_test.pl:
- * orbsvcs/tests/Notify/Lanes/run_test_consumer.pl:
- * orbsvcs/tests/Notify/Lanes/run_test_notify.pl:
- * orbsvcs/tests/Notify/Lanes/run_test_supplier.pl:
- * orbsvcs/tests/Notify/Lanes/supplier.conf:
- * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.h:
- * orbsvcs/tests/Notify/MT_Dispatching/Notify_Structured_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/MT_Dispatching/go.idl:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_mtdispatching.conf:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_mtdispatching.conf.xml:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_mtsource.conf:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_mtsource.conf.xml:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_nothreads.conf:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_nothreads.conf.xml:
- * orbsvcs/tests/Notify/MT_Dispatching/run_test.pl:
- * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/Ordering/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.h:
- * orbsvcs/tests/Notify/Ordering/Notify_Structured_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Ordering/common.cpp:
- * orbsvcs/tests/Notify/Ordering/go.idl:
- * orbsvcs/tests/Notify/Ordering/notify.conf:
- * orbsvcs/tests/Notify/Ordering/notify.conf.xml:
- * orbsvcs/tests/Notify/Ordering/run_test.pl:
- * orbsvcs/tests/Notify/PluggableTopology/Test_Topology_Factory.h:
- * orbsvcs/tests/Notify/PluggableTopology/main.cpp:
- * orbsvcs/tests/Notify/PluggableTopology/plugtop_ns.conf:
- * orbsvcs/tests/Notify/Reconnecting/Consumer.h:
- * orbsvcs/tests/Notify/Reconnecting/Consumer.cpp:
- * orbsvcs/tests/Notify/Reconnecting/README:
- * orbsvcs/tests/Notify/Reconnecting/Supplier.cpp:
- * orbsvcs/tests/Notify/Reconnecting/event.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_mt.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_st.conf:
- * orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf:
- * orbsvcs/tests/Notify/Reconnecting/run_test.pl:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/go.idl:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/notify.conf:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/notify.conf.xml:
- * orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/run_test.pl:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/go.idl:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/notify.conf:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/notify.conf.xml:
- * orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl:
- * orbsvcs/tests/Notify/Structured_Filter/Notify_Push_Consumer.h:
- * orbsvcs/tests/Notify/Structured_Filter/Notify_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/Struct_Filter.mpc:
- * orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Filter/notify.conf:
- * orbsvcs/tests/Notify/Structured_Filter/run_test.pl:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.h:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Supplier.h:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Notify_Push_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Struct_Multi_Filter.mpc:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/notify.conf:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/run_test.pl:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.h:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp:
- * orbsvcs/tests/Notify/Test_Filter/RT_Test_FilterFactory.h:
- * orbsvcs/tests/Notify/ThreadPool/consumer.conf:
- * orbsvcs/tests/Notify/ThreadPool/notify.conf:
- * orbsvcs/tests/Notify/ThreadPool/run_test.pl:
- * orbsvcs/tests/Notify/ThreadPool/supplier.conf:
- * orbsvcs/tests/Notify/XML_Persistence/main.cpp:
- * orbsvcs/tests/Notify/XML_Persistence/run_test.pl:
- * orbsvcs/tests/Notify/XML_Persistence/svc.conf:
- * orbsvcs/tests/Notify/lib/Command.cpp:
- * orbsvcs/tests/Notify/lib/Consumer_T.h:
- * orbsvcs/tests/Notify/lib/Consumer_T.cpp:
- * orbsvcs/tests/Notify/lib/Driver.h:
- * orbsvcs/tests/Notify/lib/Driver.cpp:
- * orbsvcs/tests/Notify/lib/EventChannel_Command.cpp:
- * orbsvcs/tests/Notify/lib/Notify_Test_Client.h:
- * orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp:
- * orbsvcs/tests/Notify/lib/Options_Parser.cpp:
- * orbsvcs/tests/Notify/lib/Peer_T.h:
- * orbsvcs/tests/Notify/lib/Peer_T.cpp:
- * orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp:
- * orbsvcs/tests/Notify/lib/PushConsumer.cpp:
- * orbsvcs/tests/Notify/lib/PushSupplier.cpp:
- * orbsvcs/tests/Notify/lib/README:
- * orbsvcs/tests/Notify/lib/SequencePushConsumer.cpp:
- * orbsvcs/tests/Notify/lib/SequencePushSupplier.cpp:
- * orbsvcs/tests/Notify/lib/StructuredPushConsumer.cpp:
- * orbsvcs/tests/Notify/lib/StructuredPushSupplier.cpp:
- * orbsvcs/tests/Notify/lib/Supplier_T.h:
- * orbsvcs/tests/Notify/lib/Supplier_T.cpp:
- * orbsvcs/tests/Notify/lib/Task_Callback.h:
- * orbsvcs/tests/Notify/lib/Task_Stats.inl:
- * orbsvcs/tests/Notify/lib/Task_Stats.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Sequence_Push_Consumer.h:
- * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Sequence_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Structured_Push_Consumer.h:
- * orbsvcs/tests/Notify/performance-tests/Filter/Notify_Structured_Push_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/common.cpp:
- * orbsvcs/tests/Notify/performance-tests/Filter/go.idl:
- * orbsvcs/tests/Notify/performance-tests/Filter/notify.conf:
- * orbsvcs/tests/Notify/performance-tests/Filter/notify.conf.xml:
- * orbsvcs/tests/Notify/performance-tests/Filter/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/listener.conf.xml:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/lookup.conf:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/reactive.conf:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/RedGreen/svc.conf:
- * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h:
- * orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_0/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_10/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_15/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_20/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_25/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_30/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_35/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_40/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_45/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_5/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/Load_50/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/README:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/run_all.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/1_Path_Period_0_Lanes/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_0/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_10/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_15/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_20/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_25/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_30/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_35/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_40/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_45/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_5/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/Load_50/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/README:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/run_all.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/3_Path_Period_10ms_Lanes/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops_RTCORBA/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops_RTCORBA/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/2_Hops_RTCORBA/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/relay.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/relay.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/3_Hops_RTCORBA/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated/colocated.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated_RTCORBA/colocated.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Colocated_RTCORBA/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify_RTCORBA/consumer.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify_RTCORBA/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/Notify_RTCORBA/supplier.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/README:
- * orbsvcs/tests/Notify/performance-tests/scripts/Max_Throughput/run_all.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_1/other_paths.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_10/other_paths.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_20/other_paths.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_3/other_paths.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/Paths_5/other_paths.conf:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/README:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_all.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_high_path.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_notify.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_other_paths.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/Paths_vs_Throughput/run_test.pl:
- * orbsvcs/tests/Notify/performance-tests/scripts/run_all.pl:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_mtlistener.conf:
- * orbsvcs/tests/Notify/MT_Dispatching/notify_mtlistener.conf.xml:
- * orbsvcs/tests/Notify/Structured_Filter/control.idl:
- * orbsvcs/tests/Notify/Structured_Multi_Filter/control.idl:
-
- Dave G also refactored the tests somewhat to resolve various problems.
- Many tests were rewritten to more fully test the broken QoS features.
-
-
-Fri Jul 1 17:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AMI/PI_AMI.mpc:
- By accident ami was removed as base project of server
-
-Fri Jul 1 17:04:50 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp:
-
- When generating the base class name in the constructor of
- a sequence, changed the call to be_sequence::gen_base_class_name
- to pass the current scope (as is already done for the same call
- in the stub header visitor) instead of the global scope. This
- change fixes a problem with nested anonymous sequences, for
- example, 'sequence<sequence<short> >, in the generated
- constructor initialization list.
-
-Fri Jul 1 11:33:12 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * TAO_IDL/be/be_helper.cpp:
- * TAO_IDL/be/be_visitor_arg_traits.cpp:
- * TAO_IDL/be/be_visitor_traits.cpp:
- * TAO_IDL/be_include/be_helper.h:
-
- When generating template specializations, do not add the stream
- type suffix. This allows users to combine the idl generated .cpp
- files into one which with some compilers decreases build times.
-
-Fri Jul 1 15:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/AVStreams/Full_Profile/run_test.pl:
- * orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl:
- * orbsvcs/tests/AVStreams/Component_Switching/run_test.pl:
- * orbsvcs/tests/AVStreams/Multicast/run_test.pl:
- * orbsvcs/tests/AVStreams/Pluggable/run_test.pl:
- * orbsvcs/tests/AVStreams/Simple_Three_Stage/run_test.pl:
- Cleanup generated test files at the start, there can be an old file
- when things failed in the previous run
-
-Fri Jul 1 15:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * performance-tests/Callback/Callback.mpc:
- * performance-tests/Latency/AMH_Single_Threaded/Single_Threaded.mpc:
- * performance-tests/Latency/AMI/AMI.mpc:
- * performance-tests/Latency/Collocation/Collocation.mpc:
- * performance-tests/Latency/DII/DII.mpc:
- * performance-tests/Latency/DSI/DSI.mpc:
- * performance-tests/Latency/Deferred/Deferred.mpc:
- * performance-tests/Latency/Single_Threaded/Single_Threaded.mpc:
- * performance-tests/Latency/Thread_Per_Connection/Thread_Per_Connection.mpc:
- * performance-tests/Latency/Thread_Pool/Thread_Pool.mpc:
- * performance-tests/Memory/IORsize/Memory_IORsize.mpc:
- * performance-tests/Memory/Single_Threaded/Memory_Growth.mpc:
- * performance-tests/POA/Create_Reference/Create_Reference.mpc:
- * performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc:
- Use better base projects to simplify things
-
-Fri Jul 1 14:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
- Added pi_server to the client project also
-
-Fri Jul 1 14:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Invocation_Base.cpp:
- Fixed compilation error when interceptors are disabled
-
-Fri Jul 1 07:18:44 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/IFR_Service/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/IFR_Service/IFR_Service.mpc:
-
- Changed so-called "convenience libraries" projects to inherit
- from conv_lib.mpb.
-
-Fri Jul 1 13:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.h:
- Corrected export macro
-
-Fri Jul 1 13:16:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_produce.cpp:
-
- Moved the conditional initialization of the *A.cpp file stream
- from before the stub header visitor executes to after the
- stub header visitor and before the stub source visitor. This
- move allows the checks for recursive types that happen in
- the stub header visitor to complete, giving correct results
- when the presence of recursive types is checked in the
- generation of includes for the *A.cpp file, if it is generated.
- The *A.cpp includes must also be generated before the *C.cpp
- file since the *A.cpp file, if generated, will steal some
- includes that would go in the *C.cpp file if the -GA option
- was not used.
-
-Fri Jul 1 12:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h:
- Added include of PI_Server.h
-
- * orbsvcs/orbsvcs/SSLIOP.mpc:
- Added PI_Server as base project
-
-Fri Jul 1 11:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ClientRequestInfo.{h,cpp,inl}:
- Doxygen fix and moved check_validity to the cpp file and removed
- the inline file
-
- * tao/ClientRequestInterceptor.pidl:
- * tao/ClientRequestInterceptorA.cpp:
- * tao/ClientRequestInterceptorC.{h,cpp}:
- * tao/ClientRequestInterceptorS.h:
- Moved to the PI library
-
- * tao/ClientRequestInterceptor_Adapter.{h,cpp,inl}:
- Made this a base class, real functionality is in the PI lib.
- Remove the .inl file
-
- * tao/ClientRequestInterceptor_Adapter_Factory.h:
- New factory base for creating a ClientRequestInterceptor_Adapter
-
- * tao/Interceptor.pidl:
- * tao/InterceptorA.cpp:
- * tao/InterceptorC.{h,cpp}:
- * tao/InterceptorS.h:
- * tao/Interceptor_List.{cpp,h}:
- Moved to the PI lib
-
- * tao/Invocation_Base.{h,cpp,inl}:
- Store the PI stack size in the invocation base and handle that
- the ClientRequestInterceptor pointer can be 0.
-
- * tao/IORInterceptor_Adapter.h:
- Removed several not needed forward declarations
-
- * tao/ORB_Core.{h,cpp,i}:
- Added methods to get the Client/Server Request interceptor adapters.
- Added the moment an interceptor is registered an adapter will be
- created on demand. Later on we just retrieve the pointer
-
- * tao/PortableInterceptor.pidl:
- * tao/PortableInterceptorC.h:
- Updated for the moved files
-
- * tao/RTScheduler.mpc:
- Needs PI_Server
-
- * tao/ServerRequestInterceptor.pidl:
- * tao/ServerRequestInterceptorA.cpp:
- * tao/ServerRequestInterceptorC.{h,cpp}:
- * tao/ServerRequestInterceptorS.h:
- Moved to the PI_Server library
-
- * tao/ServerRequestInterceptor_Adapter.{h,cpp}:
- New adapter
-
- * tao/ServerRequestInterceptor_Adapter_Factory.h:
- New factory
-
- * tao/tao.mpc:
- Updated for all moved files.
-
- * tao/IORInterceptor/IORInterceptor.pidl
- * tao/IORInterceptor/IORInterceptorC.h
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.{h,cpp}:
- Updated for Interceptor_List changes
-
- * tao/Messaging/Asynch_Reply_Dispatcher.cpp:
- Improved debug statement
-
- * tao/PI/ClientRequestInterceptor.pidl:
- * tao/PI/ClientRequestInterceptorA.cpp:
- * tao/PI/ClientRequestInterceptorC.{h,cpp}:
- * tao/PI/ClientRequestInterceptorS.h:
- Moved from TAO lib
-
- * tao/PI/ClientRequestInterceptor_Adapter_Impl.{h,cpp,inl}:
- Implemented ClientRequestInterceptor Adapter which calls the
- interceptors
- * tao/PI/ClientRequestInterceptor_Factory_Impl.{h,cpp}:
- Implemented factory interface.
-
- * tao/PI/Interceptor.pidl:
- * tao/PI/InterceptorA.cpp:
- * tao/PI/InterceptorC.{h,cpp}:
- * tao/PI/InterceptorS.h:
- Moved from TAO lib
-
- * tao/PI/Interceptor_List_T.{h,cpp}:
- Moved from TAO lib and updated interfaces to not expose any
- internal knowledge
-
- * tao/PI/PI.{h,cpp}:
- Add some process directives
-
- * tao/PI/diff/ORBInitializer.diff
- New diff
-
- * tao/PI_Server/PI_Server.{h,cpp}:
- Add some process directives
-
- * tao/PI_Server/PS_CurrentA.cpp
- * tao/PI_Server/PS_CurrentC.{h,cpp}:
- Regenerated
-
- * tao/PI_Server/ServerInterceptorAdapter.{h,cpp}:
- From portableserver library, adapter that invokes server
- request interceptors
-
- * tao/PI_Server/ServerRequestInterceptor.pidl
- * tao/PI_Server/ServerRequestInterceptorA.cpp
- * tao/PI_Server/ServerRequestInterceptorC.cpp
- * tao/PI_Server/ServerRequestInterceptorC.h
- * tao/PI_Server/ServerRequestInterceptorS.h
- Moved from TAO lib
-
- * tao/PI_Server/ServerRequestInterceptor_Factory_Impl.{h,cpp}:
- New factory to create an instance of the adapter
-
- * tao/PortableServer/Object_Adapter.cpp:
- * tao/PortableServer/Upcall_Wrapper.cpp:
- Be aware the Server Request Interceptor adapter is a pointer and
- can be zero
-
- * tao/PortableServer/ServerInterceptorAdapter.{h,cpp,inl}:
- Removed, moved to the PI_Server lib
-
- * tao/PortableServer/ServerRequestInfo.{h,inl}:
- Export this classes, need it from the PI_Server lib
-
- * tao/RTCORBA/RTCORBAA.cpp
- * tao/RTCORBA/RTCORBAC.h
- Regenerated
-
- * tao/RTScheduling/RTScheduler.pidl
- * tao/RTScheduling/RTSchedulerA.cpp
- * tao/RTScheduling/RTSchedulerC.h
- * tao/RTScheduling/Request_Interceptor.h
- Updated for PI changes
-
- * tests/Bug_1495_Regression/interceptors.cpp
- * tests/Bug_1495_Regression/interceptors.h
- * tests/Portable_Interceptors/Benchmark/interceptors.cpp
- * tests/Portable_Interceptors/Benchmark/interceptors.h
- * tests/Portable_Interceptors/Dynamic/interceptors.cpp
- * tests/Portable_Interceptors/Dynamic/interceptors.h
- * tests/Portable_Interceptors/Service_Context_Manipulation/interceptors.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/interceptors.h
- * tests/Portable_Interceptors/Bug_1559/interceptors.cpp
- * tests/Portable_Interceptors/Bug_1559/interceptors.h
- Removed these files, replaced by seperate client/server files below
-
- * tests/Bug_1495_Regression/client_interceptor.cpp
- * tests/Bug_1495_Regression/client_interceptor.h
- * tests/Bug_1495_Regression/server_interceptor.cpp
- * tests/Bug_1495_Regression/server_interceptor.h
- * tests/Portable_Interceptors/Benchmark/client_interceptors.cpp
- * tests/Portable_Interceptors/Benchmark/client_interceptors.h
- * tests/Portable_Interceptors/Benchmark/server_interceptors.cpp
- * tests/Portable_Interceptors/Benchmark/server_interceptors.h
- * tests/Portable_Interceptors/Bug_1559/client_interceptor.cpp
- * tests/Portable_Interceptors/Bug_1559/client_interceptor.h
- * tests/Portable_Interceptors/Bug_1559/server_interceptor.cpp
- * tests/Portable_Interceptors/Bug_1559/server_interceptor.h
- * tests/Portable_Interceptors/Dynamic/client_interceptor.cpp
- * tests/Portable_Interceptors/Dynamic/client_interceptor.h
- * tests/Portable_Interceptors/Dynamic/server_interceptor.cpp
- * tests/Portable_Interceptors/Dynamic/server_interceptor.h
- * tests/Portable_Interceptors/Service_Context_Manipulation/client_interceptor.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/client_interceptor.h
- * tests/Portable_Interceptors/Service_Context_Manipulation/server_interceptor.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/server_interceptor.h
- New files
-
- * tests/Bug_1495_Regression/Bug_1495.mpc
- * tests/Bug_1495_Regression/Server_ORBInitializer.cpp
- * tests/Bug_1495_Regression/Server_ORBInitializer.h
- * tests/Bug_1495_Regression/Threaded_Server.cpp
- * tests/Portable_Interceptors/AMI/Client_Interceptor.h
- * tests/Portable_Interceptors/AMI/PI_AMI.mpc
- * tests/Portable_Interceptors/AMI/Server_Interceptor.h
- * tests/Portable_Interceptors/Benchmark/Client_ORBInitializer.cpp
- * tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc
- * tests/Portable_Interceptors/Benchmark/Server_ORBInitializer.cpp
- * tests/Portable_Interceptors/Benchmark/client.cpp
- * tests/Portable_Interceptors/Benchmark/server.cpp
- * tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc
- * tests/Portable_Interceptors/Bug_1559/Client_ORBInitializer.cpp
- * tests/Portable_Interceptors/Bug_1559/Server_ORBInitializer.cpp
- * tests/Portable_Interceptors/Bug_1559/Server_ORBInitializer.h
- * tests/Portable_Interceptors/Bug_1559/client.cpp
- * tests/Portable_Interceptors/Bug_1559/server.cpp
- * tests/Portable_Interceptors/Bug_2088/Bug_2088.mpc
- * tests/Portable_Interceptors/Collocated/Dynamic/PI_Dynamic.mpc
- * tests/Portable_Interceptors/Collocated/Dynamic/interceptors.h
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/interceptors.h
- * tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.cpp
- * tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.cpp
- * tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc
- * tests/Portable_Interceptors/Dynamic/client.cpp
- * tests/Portable_Interceptors/Dynamic/server.cpp
- * tests/Portable_Interceptors/ForwardRequest/Client_Request_Interceptor.h
- * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc
- * tests/Portable_Interceptors/ForwardRequest/Server_Request_Interceptor.h
- * tests/Portable_Interceptors/ForwardRequest/test.idl
- * tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc
- * tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc
- * tests/Portable_Interceptors/ORB_Shutdown/Server_Request_Interceptor.h
- * tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor.h
- * tests/Portable_Interceptors/PICurrent/ClientRequestInterceptor2.h
- * tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc
- * tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.h
- * tests/Portable_Interceptors/Request_Interceptor_Flow/Client_Request_Interceptor.h
- * tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc
- * tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.h
- * tests/Portable_Interceptors/Request_Interceptor_Flow/Server_Request_Interceptor.h
- * tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/Client_ORBInitializer.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
- * tests/Portable_Interceptors/Service_Context_Manipulation/Server_ORBInitializer.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp
- * tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp
- * tests/RTCORBA/Client_Propagated/interceptors.h
- * orbsvcs/examples/FaultTolerance/RolyPoly/ReplicaController.h
- * orbsvcs/examples/FaultTolerance/RolyPoly/RolyPoly.mpc
- * orbsvcs/examples/LoadBalancing/LoadBalancing.mpc
- * orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
- * orbsvcs/orbsvcs/CosLoadBalancing.mpc
- * orbsvcs/orbsvcs/FTORB.mpc
- * orbsvcs/orbsvcs/FaultTolerance.mpc
- * orbsvcs/orbsvcs/FtRtEvent.mpc
- * orbsvcs/orbsvcs/Security.mpc
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h
- * orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/LoadBalancing.mpc
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/GroupRef_Manipulation.mpc
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl
- Update for PI change
-
-Fri Jul 1 000:27:47 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_exception.cpp:
- * TAO_IDL/ast/ast_sequence.cpp:
- * TAO_IDL/ast/ast_structure.cpp:
- * TAO_IDL/ast/ast_union.cpp:
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_valuetype.cpp:
- * TAO_IDL/be/be_visitor_structure/structure_ch.cpp:
- * TAO_IDL/be/be_visitor_union/union_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp:
-
- Moved evaluation of the in_recursion_ member of structs unions
- and valuetypes to happen soon enough to make the generation of
- the file include of Recursive_Type_TypeCode.h conditional on
- whether a recursive type has been seen or not. Thanks to
- Ossama Othman <ossama@dre.vanderbilt.edu> for suggesting
- the conditional include.
-
-Thu Jun 30 18:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1551_Regression/client.cpp:
- When we get a timeout on the client threads output an error but
- first nicely destroy the POA and ORB before shutting down
-
-Thu Jun 30 10:21:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (get_current_size, get_n_records,
- flush):
-
- Changed argument list to use ACE_ENV_SINGLE_ARG_DECL_NOT_USED
- instead of ACE_ENV_SINGLE_ARG_DECL, since these methods do not
- throw exceptions.
-
-Thu Jun 30 09:50:46 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/IIOP_Profile.cpp:
- * tao/IIOP_Profile.h:
- * tao/Profile.cpp:
- * tao/Profile.h:
- * tao/PortableServer/Default_Acceptor_Filter.cpp:
- This restores the behavior of IIOP_Profile::encode_endpoints so
- that it always creates only TAO_TAG_ENDPOINT component.
- Initially, the new TAG_ALTERNATE_IIOP_ADDRESS support was added
- to this method, with an internal test if the endpoint priority
- was TAO_INVALID_PRIORITY or not. If it was not, both kinds of
- tagged components were created, if the priority was invalid,
- only the new tagged component was created. But this causes
- trouble for RT_CORBA with multiple nics. It also generates
- redundant components.
-
- A new method, encode_alternate_endpoints is added to support the
- generation of combined endpoints in non-RT ORBs. This new method
- is called from Default_Acceptor_Filter.cpp. The base TAO_Profile
- supplies a null implementation of encode_alternate_endpoints so
- that existing, non-IIOP profiles don't have to be altered.
-
- * tao/params.cpp:
- To address the issue raised by bugzilla #2173, I've set the
- default for using shared profiles (non-RT) to 0. This avoids a
- side-effect of making shared profiles with endpoints that do not
- have a priority set in an RT environment.
-
- * tests/AlternateIIOP/run_test.pl:
- Add an explicit -ORBUseSharedProfile 1 to the server.
-
-Thu Jun 30 09:29:56 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Valuetype/StringValueC.inl
-
- Latest attempt at getting rid of warning from gcc compiler
-
-Thu Jun 30 14:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTScheduling/RTSchedulerC.cpp:
- Regenerated with the latest version of the idl compiler
-
-Thu Jun 30 13:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp:
- Added missing .in()
-
-Thu Jun 30 13:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IORInterceptor/IORInfoC.cpp:
- * tao/IORInterceptor/IORInterceptorC.cpp:
- * tao/RTCORBA/RTCORBAC.cpp:
- Regenerated with the latest version of the idl compiler
-
-Thu Jun 30 12:32:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Any/Recursive/client.cpp:
- Added include of TypeCodeFactory_Loader.h so that the
- TypeCodeFactory is loaded. Fixes crashing of the test on
- windows
-
-Thu Jun 30 11:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * utils/catior/catior.cpp:
- Fixed retrieval and printing of port number in
- cat_tag_alternate_endpoints.
-
-Wed Jun 29 20:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Naming/Naming_Client.h:
- Added include of naming_client.h
-
-Wed Jun 29 20:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IOR_Parser.h:
- Emulated exception macro fix
-
-Wed Jun 29 12:02:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Invocation_Base.cpp:
-
- Moved "PortableInterceptor.h" include directive out of
- TAO_HAS_INTERCEPTORS preprocessor block. It should always be
- visible. Fixes errors in builds with interceptors disabled.
-
-Wed Jun 29 18:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * utils/catior/catior.cpp:
- Added an extra identation for priority and priority model so that it
- is clear they belong to a certain priority and added
- PRIORITY_BANDED_CONNECTION_POLICY_TYPE as one of the types we
- recognize.
-
-Wed Jun 29 10:13:54 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h:
-
- Change type of orb_ member variable from _ptr to _var.
-
-Wed Jun 29 10:00:31 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO/tao/Valuetype/StringValueC.inl
-
- Change to avoid compiler warnings from some compilers.
-
-Wed Jun 29 07:22:38 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/Makefile.am:
- * orbsvcs/FT_ReplicationManager/Makefile.am:
- * orbsvcs/ImplRepo_Service/Makefile.am:
-
- Regenerated.
-
- * TAO_IDL/tao_idl.mpc:
- * orbsvcs/FT_ReplicationManager/FT_ReplicationManager.mpc:
- * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc:
-
- Changed so-called "convenience libraries" projects to inherit
- from conv_lib.mpb.
-
-Tue Jun 28 22:21:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Invocation_Base.inl (reply_received):
- * tao/Invocation_Base.cpp (reply_received):
-
- Moved this method out-of-line. It calls a method on its
- TAO_ClientRequestInfo field. Inlining this method exposes the
- unexported TAO_ClientRequestInfo class to code outside of the
- TAO shared library, which results in "unresolved_symbol"
- link-time errors when attempting to call
- Invocation_Base::reply_received() directly or indirectly
- (e.g. via TAO::Reply_Guard::~Reply_Guard()). Fixes g++ 4.0
- link-time errors.
-
- * tao/Synch_Invocation.h (Reply_Guard):
-
- Improved const-correctness by making an immutable pointer member
- "const".
-
-Tue Jun 28 20:52:22 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Concurrency_Service/Makefile.am:
- * orbsvcs/CosEvent_Service/Makefile.am:
- * orbsvcs/Dump_Schedule/Makefile.am:
- * orbsvcs/Event_Service/Makefile.am:
- * orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am:
- * orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am:
- * orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am:
- * orbsvcs/FT_ReplicationManager/Makefile.am:
- * orbsvcs/Fault_Detector/Makefile.am:
- * orbsvcs/Fault_Notifier/Makefile.am:
- * orbsvcs/IFR_Service/Makefile.am:
- * orbsvcs/ImplRepo_Service/Makefile.am:
- * orbsvcs/LifeCycle_Service/Makefile.am:
- * orbsvcs/LoadBalancer/Makefile.am:
- * orbsvcs/Naming_Service/Makefile.am:
- * orbsvcs/Notify_Service/Makefile.am:
- * orbsvcs/Scheduling_Service/Makefile.am:
- * orbsvcs/TAO_Service/Makefile.am:
- * orbsvcs/Time_Service/Makefile.am:
- * orbsvcs/Trading_Service/Makefile.am:
-
- Regenerated.
-
-Tue Jun 28 19:51:49 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/Makefile.am:
- * orbsvcs/Logging_Service/Basic_Logging_Service/Makefile.am:
- * orbsvcs/Logging_Service/Event_Logging_Service/Makefile.am:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Makefile.am:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
- * orbsvcs/orbsvcs/CosNaming.mpc:
- * orbsvcs/orbsvcs/CosNotification.mpc:
- * orbsvcs/orbsvcs/CosTrading.mpc:
- * orbsvcs/orbsvcs/DsEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsLogAdmin.mpc:
- * orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc:
-
- Added a *_IDL project, currently only for automake builds, that
- only compiles the *.idl files. This ensures that all generated
- files will be included in the lists of sources, headers,
- inlines, templates, etc. instead of only those used in the stub
- libraries. Other build types continue to compile *.idl files as
- part of the stub library projects. When this is prefected, most
- build methods can use the automake build mechanism.
-
- * orbsvcs/orbsvcs/CosProperty.mpc:
-
- Added missing *.h, *.inl, and *S_T.* files to Header_Files,
- Inline_Files, and Template_Files so that they're installed.
-
- * orbsvcs/orbsvcs/SSLIOP.mpc:
-
- Added explicit Header_Files and Inline_Files sections so all
- files are installed.
-
-Tue Jun 28 16:11:50 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
-
- Backing out namespace code generation change of Mon Jun 27
- for now due to problems getting it to work across multiple
- compilers.
-
-Tue Jun 28 13:31:01 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO/tao/Valuetype/StringValueC.cpp
- Change to allow operation in non-exception environments
-
-Tue Jun 28 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Dynamic_ParameterC.h:
- Remove generated include of TypeCode.h. This seems to cause problems
- in some builds.
-
-Tue Jun 28 07:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Object.cpp (_get_orb):
- Return the orb related to the TAO_Stub, the orb_core_ member
- could sometimes be zero. Thanks to Bala for giving feedback
- on this.
-
-Mon Jun 27 14:54:53 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
-Mon Jun 27 13:54:27 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_util.cpp
- * TAO_IDL/be_include/be_util.h
- * TAO_IDL/be/be_visitor_interface.cpp
- * TAO_IDL/be/be_visitor_interface_fwd.cpp
- * TAO_IDL/be/be_visitor_valuebox.cpp
- * TAO_IDL/be/be_visitor_valuetype.cpp
- * TAO_IDL/be/be_visitor_valuetype_fwd.cpp
- * TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
-
- When generating Any insertion and extraction operators put them
- in a namespace that corresponds to their enclosing module (if
- any). Addresses problem reported in Bugzilla report #2071.
-
-Mon Jun 27 13:08:01 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Valuetype/ValueBase.cpp:
- Added missing copy constructor implementation
-
- * TAO/tao/Valuetype/StringValueC.inl
- Change to avoid warnings by some compilers
-
-Mon Jun 27 12:19:01 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp
- (TAO): Changed the comment to "Using default value of 1.5
- seconds". Thanks to Simon Massey and Bala for resolving this.
-
-Mon Jun 27 11:09:34 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tests/Exposed_Policies/Policy_Verifier.h:
- * tests/Exposed_Policies/Policy_Verifier.cpp:
- * tests/Exposed_Policies/client.cpp:
-
- Modified this test to not run if the initialization failed. This
- avoids a core dump.
-
- * tests/Exposed_Policies/run_test.pl:
-
- Remove the ior files before running the server and cut the wait
- times in half.
-
-Mon Jun 27 09:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/RTCosScheduling.mpc:
- Added requires dummy_label. The RTCosScheduling library uses
- a non compliant way to register its interceptors. This is
- causing problems with the PI refactory so disable the building
- of this lib until that has been fixed. See also bugzilla 2163.
-
-Mon Jun 27 09:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO_IDL/be_include/be_visitor_operation/ami_cs.h:
- * TAO_IDL/be/be_visitor_operation/ami_cs.cpp:
- Removed gen_marshal_and_invoke method. It wasn't used and contained
- a lot of generation of old code that we don't use anymore
-
-Mon Jun 27 09:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Policy_Validator.h:
- Fixed small typo in comment
-
-Mon Jun 27 08:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Valuetype/ValueBase.cpp:
- Fixed implicit conversion warning and use ACE_OS::strcmp instead of
- strcmp directly
-
-Mon Jun 27 07:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO/tao/*C.{h,cpp,inl}:
- * TAO/tao/*A.cpp:
- * TAO/tao/PortableServer/*C.{h,cpp,inl}:
- * TAO/tao/PortableServer/*A.cpp:
- * TAO/tao/Messaging/*C.{h,cpp,inl}:
- * TAO/tao/Messaging*A.cpp:
- Regenerated
-
-Sat Jun 25 06:39:03 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO/tao/Valuetype/StringValueC.inl
- Change to avoid warnings by some compilers
-
-Sat Jun 25 06:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/AdapterActivatorC.cpp:
- * tao/PortableServer/ForwardRequestC.cpp:
- * tao/PortableServer/IdAssignmentPolicyC.cpp:
- Regenerated to see what the footprint results are from the latest idl
- compiler change
-
-Fri Jun 24 23:11:45 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Messaging/TAO_Messaging.pc.in:
- * tao/RTPortableServer/TAO_RTPortableServer.pc.in:
-
- Update with current list of dependencies based on values from
- MPC base project files.
-
- * tao/PI_Server.mpc:
-
- Added Pkgconfig_Files definition.
-
- * tao/PI_Server/TAO_PI_Server.pc.in:
-
- New file, pkg-config *.pc template for TAO_PI_Server library.
-
-Fri Jun 24 22:50:07 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
-Fri Jun 24 13:15:03 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_codegen.cpp
- Generated additional include files in stub header for Value Box
-
- * TAO/tao/Valuetype/StringValue.pidl
- * TAO/tao/Valuetype/StringValueC.cpp
- * TAO/tao/Valuetype/StringValueC.h
- * TAO/tao/Valuetype/StringValueC.inl
- Standard OMG Value Box Definitions
-
-Fri Jun 24 19:42:03 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_interface/interface_cs.cpp:
-
- For local interfaces, changed generated code for _narrow()
- and _unchecked_narrow() methods. For local interfaces, all
- that needs to be done is return a duplicate of a
- dynamic_cast<>, for both methods. Thanks to Johnny Willemsen
- <jwillemsen@remedy.nl> for pointing out the opportunity to
- shrink generated code, and to Ossama Othman
- <ossama@dre.vanderbilt.edu> for an informative discussion on
- the possible benefits of inlining these methods.
-
-Fri Jun 24 13:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ClientRequestInfo.{cpp,inl}:
- Moved a few methods out of the inline file to the cpp file
-
-Fri Jun 24 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/TAO_Server_Request.h:
- Corrected ifdef guards in this file to match the real filename
-
- * tao/Dynamic_Adapter.h:
- Removed forward declaration of TAO_GIOP_Twoway_Invocation
-
- * tao/DynamicInterface/DII_Invocation.{h,cpp,inl}:
- The inl file has some constructors that are ifdef'd with #if 0.
- These used a base class that is not there, so zapped them and
- because the inl file is now empty, removed that from the archive
-
-Fri Jun 24 06:56:11 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
-
- Avoid ambiguity error from Visual C++ 6.0.
-
-Fri Jun 24 11:12:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ClientRequestInfo.{h,cpp,inl}:
- * tao/ClientRequestInfo_i.{h,cpp,inl}:
- Moved the implementation from ClientRequestInfo_i to
- ClientRequestInfo. The ClientRequestInfo was split into
- two parts, this is causing problems with the PI refactoring
- and after checking with Ossama we decided to merge these
- two again. This maybe has a small performance impact
- at the moment no interceptors are registered but that
- will be resolved soon with the PI refactoring itself.
-
- * tao/ClientRequestInterceptor_Adapter.{h,cpp}:
- Updated to use TAO_ClientRequestInfo
-
- * tao/Invocation_Base.{h,cpp}:
- Updated to use TAO_ClientRequestInfo
-
- * tao/ORB_Core_TSS_Resources.{h,cpp}:
- No need anymore to store TAO_ClientRequestInfo in TSS.
- This decouples the ClientRequestInfo from the ORB TSS which was the
- main reason to do this.
-
- * tao/tao.mpc:
- Removed the ClientRequestInfo_i.{h,cpp,inl} files
-
-Fri Jun 24 10:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/AMI/client.cpp:
- Added some more checks to see if things are gone fine.
-
-Fri Jun 24 09:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ClientRequestInfo_i.{h,cpp}:
- No need to have virtual methods, this is not a base and removed
- the destructor using an Abstract base, it is not used
-
-Fri Jun 24 08:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h
- * orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h
- * tao/ClientRequestInfo.cpp
- * tao/ClientRequestInfo.h
- * tao/ClientRequestInfo_i.cpp
- * tao/ClientRequestInfo_i.h
- * tao/ClientRequestInfo_i.inl
- * tao/Codeset_Manager.h
- * tao/Protocols_Hooks.h
- * tao/Stub.h
- * tao/PortableServer/ServerRequestInfo.cpp
- * tao/RTCORBA/RT_Endpoint_Utils.h
- Removed TAO_GIOP_Invocation forward declaration and remarks
- about this. This class doesn't exist anymore already for a long
- time
-
-Fri Jun 24 07:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Leader_Follower.h:
- Added missing include for single threaded builds
-
-Thu Jun 23 11:02:11 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.h:
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
-
- Use an IORTable::Locator_var instead of an INS_Locator to avoid a
- deletion of a stack variable.
-
-Thu Jun 23 08:21:29 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp (handle_timeout):
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp (handle_timeout):
-
- Catch and squelch any exceptions that might be thrown. Also
- fixes emulated exception builds. Thanks to Simon Massey for
- pointing out this issue.
-
-Thu Jun 23 14:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/operation_details.{h,cpp}:
- The exception_list method should only be build when interceptors
- are enabled
-
-Thu Jun 23 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.{h,cpp}:
- * tao/ORB_Core_TSS_Resources.{h,cpp}:
- Moved ORB_Core_TSS_Resources back to its own file. Problem was
- easier then on first sight, orbconf.h was not includes so the
- TSS file was build without interceptor support
-
-Thu Jun 23 12:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.{h,cpp}:
- * tao/ORB_Core_TSS_Resources.{h,cpp}:
- Moved ORB_Core_TSS_Resources to the ORB_Core file again. The
- PI tests now break and I have not an idea why but moving it
- back fixes it now. Will sort this out soon.
-
-Thu Jun 23 09:52:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
-
- * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp:
- * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp:
-
- Replaced ACE_UNUSED_ARG() with native C++ unnamed parameters
- in responce to Ossama's request that the macro is only used
- in places where normal practices are not available.
-
- * orbsvcs/IFR_Service/ifr_adding_visitor.cpp:
-
- Removed unused arg.
-
-Wed Jun 22 18:49:03 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * tao/ORB_Core.h:
-
- Added include of ORB_Core_TSS_Resources.h, so when the
- ACE_TSS_TYPE tss_resources_ member is declared, there
- will be knowledge of a default constructor.
-
-Wed Jun 22 11:34:12 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/fe/y.tab.cpp
- * TAO_IDL/fe/idl.yy
-
- Added valuebox support
-
-Wed Jun 22 08:23:16 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp (handle_timeout):
-
- Catch and squelch any exceptions that might be thrown by
- destroy(). Thanks to Don Sharp for pointing out this
- issue.
-
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h:
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.h:
-
- #include "ace/Time_Value.h", needed by no-inline builds. Thanks
- to Simon Massey for pointing out this issue.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (set_records_attribute):
-
- Changed method to process any excess records returned by the
- query iterator.
-
- * orbsvcs/orbsvcs/Log/EventLog_i.cpp:
- * orbsvcs/orbsvcs/Log/EventLog_i.h:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLog_i.h:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLog_i.h:
-
- Removed write_recordlist() method, as it just called
- write_recordlist() on the base class.
-
-Wed Jun 22 14:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.{h,cpp,i}:
- * tao/ORB_Core_TSS_Resources.{h,cpp}:
- Moved TAO_ORB_Core_TSS_Resources to its own file. Makes it much easier
- to just see where things are used.
-
- * tao/tao.mpc:
- Added new files
-
- * tao/Leader_Follower.{h,cpp,i}:
- * tao/Leader_Follower_Flushing_Strategy.cpp:
- * tao/LF_Connect_Strategy.cpp:
- * tao/LF_Event.cpp LF_Strategy_Complete.cpp:
- * tao/ORB.cpp:
- * tao/PICurrent.cpp:
- * tao/Thread_Lane_Resources.cpp:
- * tao/Transport.cpp:
- * tao/Wait_On_Leader_Follower.cpp:
- * tao/Wait_On_LF_No_Upcall.cpp:
- * tao/ClientRequestInterceptor_Adapter.cpp:
- * tao/RTCORBA/Thread_Pool.cpp:
- * tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp:
- * tao/RTPortableServer/RT_Collocation_Resolver.cpp:
- * tao/RTPortableServer/RT_Servant_Dispatcher.cpp:
- Added missing includes now we get less for free from ORB_Core
-
-Wed Jun 22 12:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ClientRequestInfo_i.{h,cpp,inl}:
- Removed reply_status and response_expected methods, they had a
- comment that they need to go and they are not used in the TAO
- libs so it is now time to zap them
-
-Wed Jun 22 12:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Request_Interceptor_Flow/Request_Interceptor.cpp:
- Added checks in the destroy that start and end interception
- point calls must not be zero. If they are zero there is a bug
- in TAO
-
- * tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp:
- * tests/Portable_Interceptors/PICurrent/client.cpp:
- Explicitly destroy the ORB. When this is not done explicitly the
- destroy operation of the registered interceptors is not called and
- then our checks are not triggered in the destoy operation of the
- registered interceptors
-
-Wed Jun 22 10:27:00 UTC 2005 Simon Massey <simon.massey@prismtech.com>
-
- * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp:
- * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp:
-
- Added ACE_UNUSED_ARG() to the above files.
-
-Tue Jun 21 17:50:26 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Interceptor_List.cpp:
-
- Include "tao/debug.h" to pull in TAO_debug_level global variable
- declaration.
-
-Tue Jun 21 14:41:01 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp:
- * TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp:
-
- Add missing "int" return type to method definitions.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Added flush and compaction handlers to class. The flush handler
- is scheduled when the QoS is set to QoSFlush. The compaction
- handler is scheduled when the max record life is set.
-
- Removed explicit calls to remove_old_records(), that is now done
- via the compaction handler.
-
- * orbvcs/orbsvcs/DsLogAdmin.mpc:
-
- Added Log_Flush_Handler.cpp and Log_Compaction_Handler.cpp to
- the DsLogAdmin_Serv project's list of Source Files.
-
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp:
- * orbsvcs/orbsvcs/Log/Log_Flush_Handler.h:
-
- New files. Added TAO_Log_Flush_Handler class that manages an
- interval timer that calls flush() on the log when it fires. The
- interval is currently set to 300 seconds. This should probably
- be a parameter that is specified when the service is started.
-
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp:
- * orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h:
-
- New files. Added TAO_Log_Compaction_Handler class that manages
- an interval timer that calls remove_old_records() on the log
- when it fires. The interval is currently set to 60 seconds.
- This should probably be a parameter that is specified when the
- service is started.
-
-Tue Jun 21 14:27:12 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Valuetype/ValueBase.h
- * tao/Valuetype/ValueBase.cpp
- Added support method for valuebox demarshalling.
-
-Tue Jun 21 13:38:23 2005 Gary Maxey <gary.maxey@hp.com>
-
- * tao/Valuetype/Value_VarOut_T.cpp
- Added missing add_ref in TAO_Value_Var_T assignment operator
-
-Tue Jun 21 13:35:00 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be_include/be_visitor_arg_traits.h
- * TAO_IDL/be_include/be_visitor_argument/arglist.h
- * TAO_IDL/be_include/be_visitor_argument/invoke_cs.h
- * TAO_IDL/be_include/be_visitor_argument/marshal_ss.h
- * TAO_IDL/be_include/be_visitor_argument/upcall_ss.h
- * TAO_IDL/be_include/be_visitor_argument/vardecl_ss.h
- * TAO_IDL/be_include/be_visitor_array/array.h
- * TAO_IDL/be_include/be_visitor_array/cdr_op_cs.h
- * TAO_IDL/be_include/be_visitor_exception/ctor.h
- * TAO_IDL/be_include/be_visitor_exception/ctor_assign.h
- * TAO_IDL/be_include/be_visitor_field/cdr_op_cs.h
- * TAO_IDL/be_include/be_visitor_field/field_ch.h
- * TAO_IDL/be_include/be_visitor_operation/rettype.h
- * TAO_IDL/be_include/be_visitor_operation/rettype_return_cs.h
- * TAO_IDL/be_include/be_visitor_sequence/buffer_type.h
- * TAO_IDL/be_include/be_visitor_sequence/cdr_op_cs.h
- * TAO_IDL/be_include/be_visitor_sequence/sequence_base.h
- * TAO_IDL/be_include/be_visitor_tmplinst/arg_tmplinst.h
- * TAO_IDL/be_include/be_visitor_tmplinst/tmplinst_cs.h
- * TAO_IDL/be_include/be_visitor_tmplinst/tmplinst_ss.h
- * TAO_IDL/be_include/be_visitor_typecode/alias_typecode.h
- * TAO_IDL/be_include/be_visitor_typecode/typecode_decl.h
- * TAO_IDL/be_include/be_visitor_typedef/typedef_ch.h
- * TAO_IDL/be_include/be_visitor_union_branch/cdr_op_cs.h
- * TAO_IDL/be_include/be_visitor_union_branch/private_ch.h
- * TAO_IDL/be_include/be_visitor_union_branch/public_assign_cs.h
- * TAO_IDL/be_include/be_visitor_union_branch/public_ch.h
- * TAO_IDL/be_include/be_visitor_union_branch/public_ci.h
- * TAO_IDL/be_include/be_visitor_union_branch/public_reset_cs.h
- * TAO_IDL/be_include/be_visitor_valuetype/field_cdr_cs.h
- * TAO_IDL/be_include/be_visitor_valuetype/field_ch.h
- * TAO_IDL/be_include/be_visitor_valuetype/field_cs.h
- * TAO_IDL/be/be_sequence.cpp
- * TAO_IDL/be/be_visitor_arg_traits.cpp
- * TAO_IDL/be/be_visitor_argument.cpp
- * TAO_IDL/be/be_visitor_argument/arglist.cpp
- * TAO_IDL/be/be_visitor_argument/invoke_cs.cpp
- * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp
- * TAO_IDL/be/be_visitor_argument/upcall_ss.cpp
- * TAO_IDL/be/be_visitor_argument/vardecl_ss.cpp
- * TAO_IDL/be/be_visitor_array.cpp
- * TAO_IDL/be/be_visitor_array/array.cpp
- * TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
- * TAO_IDL/be/be_visitor_exception.cpp
- * TAO_IDL/be/be_visitor_exception/ctor_assign.cpp
- * TAO_IDL/be/be_visitor_exception/exception_ctor.cpp
- * TAO_IDL/be/be_visitor_field.cpp
- * TAO_IDL/be/be_visitor_field/field_ch.cpp
- * TAO_IDL/be/be_visitor_field/cdr_op_cs.cpp
- * TAO_IDL/be/be_visitor_operation.cpp
- * TAO_IDL/be/be_visitor_operation/rettype.cpp
- * TAO_IDL/be/be_visitor_operation/rettype_return_cs.cpp
- * TAO_IDL/be/be_visitor_sequence.cpp
- * TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
- * TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp
- * TAO_IDL/be/be_visitor_sequence/sequence_base.cpp
- * TAO_IDL/be/be_visitor_tmplinst.cpp
- * TAO_IDL/be/be_visitor_tmplinst/arg_tmplinst.cpp
- * TAO_IDL/be/be_visitor_tmplinst/tmplinst_cs.cpp
- * TAO_IDL/be/be_visitor_tmplinst/tmplinst_ss.cpp
- * TAO_IDL/be/be_visitor_typecode.cpp
- * TAO_IDL/be/be_visitor_typecode/typecode_decl.cpp
- * TAO_IDL/be/be_visitor_typecode/alias_typecode.cpp
- * TAO_IDL/be/be_visitor_typedef.cpp
- * TAO_IDL/be/be_visitor_typedef/typedef_ch.cpp
- * TAO_IDL/be/be_visitor_union_branch.cpp
- * TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
- * TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
- * TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
- * TAO_IDL/be/be_visitor_union_branch/public_ch.cpp
- * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
- * TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype.cpp
- * TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
- * TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
- * TAO_IDL/be/be_visitor_valuetype/field_cs.cpp
-
- Changes and additions to IDL compiler back-end for
- valuebox support.
-
-Tue Jun 21 16:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/releasenotes/rtc10_sched.html:
- Removed remark about generated include of PortableServerS.h,
- that is not valid anymore.
-
-Tue Jun 21 08:06:00 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
- * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
- Minor changes to deal with warnings on some compilers.
-
-Tue Jun 21 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTScheduling/Current/Thread_Task.cpp:
- Layout fixes
-
-Tue Jun 21 11:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.h:
- Added a todo for client_request_interceptors and
- server_request_interceptors methods that these should be removed
- when RTCosScheduling doesn't use them anymore
-
-Tue Jun 21 10:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Interceptor_List.{h,cpp}:
- Added destroy_interceptors method that goes through the list of
- interceptors and calls destroy on each interceptor
-
- * tao/IORInterceptor_Adapter.h:
- Removed empty throw spec from destroy_interceptors and removed the
- interceptor_list method which returns the list build up, this is
- internal data which the outside doesn't need to have.
-
- * tao/ORB_Core.{h,cpp} (destroy_interceptors):
- Use the new destoy_interceptors of the Interceptor_List template
-
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.{h,cpp}:
- Use the new destoy_interceptors of the Interceptor_List template
- and removed interceptor_list method
-
-Tue Jun 21 08:22:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORBInitializer_Registry_Adapter.h:
- Added export macro.
-
-Mon Jun 20 23:17:42 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
-
- Fixed fuzz build errors related to missing ACE_ENV_ARG_PARAMETER
- in call to resolve_initial_references().
-
-Mon Jun 20 21:49:02 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
- * orbsvcs/orbsvcs/Log/Iterator_i.h:
-
- Added iterator inactivity timer that causes the iterator to self
- destruct after 1 hour of inactivity. This should probably be a
- parameter that is specified when the service is started.
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
- * orbsvcs/orbsvcs/Log/Iterator_i.h:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Pass reactor to Iterator constructor.
-
- * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
-
- Removed the debug messages that indicated the log service was
- starting, and the name the ior was registered with the naming
- service. TAO's other ORBservice implementations don't output
- this sort of mundane information.
-
-Mon Jun 20 12:21:00 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/be_include/be_generator.h
- * TAO_IDL/be_include/be_valuebox.h
- * TAO_IDL/be_include/be_visitor.h
- * TAO_IDL/be_include/be_visitor_valuebox.h
- * TAO_IDL/be_include/be_visitor_module/module.h
- * TAO_IDL/be_include/be_visitor_root/root.h
- * TAO_IDL/be_include/be_visitor_valuebox/any_op_ch.h
- * TAO_IDL/be_include/be_visitor_valuebox/any_op_cs.h
- * TAO_IDL/be_include/be_visitor_valuebox/cdr_op_ch.h
- * TAO_IDL/be_include/be_visitor_valuebox/cdr_op_cs.h
- * TAO_IDL/be_include/be_visitor_valuebox/field_ch.h
- * TAO_IDL/be_include/be_visitor_valuebox/field_ci.h
- * TAO_IDL/be_include/be_visitor_valuebox/union_member_ci.h
- * TAO_IDL/be_include/be_visitor_valuebox/valuebox.h
- * TAO_IDL/be_include/be_visitor_valuebox/valuebox_ch.h
- * TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h
- * TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h
- * TAO_IDL/be/be_generator.cpp
- * TAO_IDL/be/be_valuebox.cpp
- * TAO_IDL/be/be_visitor.cpp
- * TAO_IDL/be/be_visitor_root.cpp
- * TAO_IDL/be/be_visitor_module.cpp
- * TAO_IDL/be/be_visitor_valuebox.cpp
- * TAO_IDL/be/be_visitor_module/module.cpp
- * TAO_IDL/be/be_visitor_root/root.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
- * TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
- * TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
- * TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
- Changes and additions to IDL compiler back-end for
- valuebox support.
-
-Mon Jun 20 09:18:00 2005 Gary Maxey <gary.maxey@hp.com>
- * orbsvcs/IFR_Service/ifr_visitor.cpp
- * orbsvcs/IFR_Service/ifr_visitor.h
- * orbsvcs/IFR_Service/ifr_adding_visitor.cpp
- * orbsvcs/IFR_Service/ifr_adding_visitor.h
- Add visitors for valuebox support.
-
-Mon Jun 20 08:51:17 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
-
- Added missing semi-colon; bug was hidden by use of emulated
- exception macros.
-
-Mon Jun 20 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FtRtEvent.mpc:
- Reverted change to add ami as base project and added -GC again to
- one set of IDL files.
-
- * orbsvcs/ImplRepo_Service/Forwarder.{h,cpp}:
- * orbsvcs/examples/ORT/Gateway_i.h:
- Corrected includes
-
- * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc:
- * orbsvcs/examples/ORT/ORT.mpc:
- Added pi_server as base project
-
-Mon Jun 20 12:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/DynamicInterface/Dynamic_Implementation.cpp:
- Fixed emulated exception errors related to the fact that
- POA_Current_Impl doesn't use them anymore
-
-Mon Jun 20 11:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
- Fixed emulated exception errors related to the fact that
- POA_Current_Impl doesn't use them anymore
-
-Mon Jun 20 10:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI_Server.mpc:
- New MPC file to build the new PI_Server library
-
- * examples/POA/DSI/Database_i.h:
- * examples/POA/Default_Servant/File_i.cpp:
- * orbsvcs/ImplRepo_Service/Forwarder.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp:
- * orbsvcs/orbsvcs/IFRService/Repository_i.h:
- * orbsvcs/tests/FtRtEvent/PushConsumer.cpp:
- * orbsvcs/tests/FtRtEvent/PushSupplier.cpp:
- * orbsvcs/tests/ImplRepo/scale/server_i.cpp:
- * tests/Collocation_Opportunities/Collocation_Opportunities.cpp:
- * tests/File_IO/File_i.cpp:
- * tests/ORT/ServerRequestInterceptor.h:
- * tests/POA/Current/Current.cpp:
- * tests/POA/Persistent_ID/server.cpp:
- * tests/POA/Policies/Policies.cpp:
- Added include of tao/PI_Server/PI_Server.h because of the
- pi_server refactoring. This is needed because these files
- use functionality that is now in the pi_server lib
-
- * tests/File_IO/File_IO.mpc:
- * tests/ORT/ORT.mpc:
- * tests/POA/Current/Current.mpc:
- * tests/POA/Persistent_ID/Persistent_ID.mpc:
- * tests/POA/Policies/Policies.mpc:
- * tests/Portable_Interceptors/AMI/PI_AMI.mpc:
- * tests/Collocation_Opportunities/Collocation_Opportunities.mpc:
- * examples/POA/DSI/POA_DSI.mpc:
- * examples/POA/Default_Servant/POA_Default_Servant.mpc:
- * orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc:
- * orbsvcs/orbsvcs/FtRtEvent.mpc:
- * orbsvcs/orbsvcs/IFRService.mpc:
- * orbsvcs/tests/ImplRepo/scale/scaletest.mpc:
- Added pi_server as base project
-
- * tao/Messaging.mpc:
- Added pi as base project, messaging needs pi stuff
-
- * tao/PortableServer.mpc:
- PortableServer is not dependent on pi anymore
-
- * tao/TAO_Internal.cpp:
- If the PI_Server_Loader is available, initialize it, this way
- we get the needed services available
-
- * tao/PortableServer/Object_Adapter_Factory.{cpp,h}:
- No need to register the ORBInitializer, this is now in the pi_server
- library
-
- * tao/PortableServer/POA_Current_Impl.{h,cpp}:
- Removed exception throw spec and environment macros. These are
- coming from POA::Curent but are not used here and just make
- things dependent on IDL generated code which it doesn't need
- to be.
-
- * tao/RTPortableServer/RT_Object_Adapter_Factory.{h,cpp}:
- No need to register POA::Current, this is in the pi_server lib.
- Also the adapter can be derived from TAO_Adapter_Factory
-
- * tao/PortableServer/POA_Current.cpp
- * tao/PortableServer/POA_Current.h
- * tao/PortableServer/POA_Current.inl
- * tao/PortableServer/PS_Current.pidl
- * tao/PortableServer/PS_CurrentA.cpp
- * tao/PortableServer/PS_CurrentC.cpp
- * tao/PortableServer/PS_CurrentC.h
- * tao/PortableServer/Policy_Creator_T.h
- * tao/PortableServer/PortableServer_ORBInitializer.cpp
- * tao/PortableServer/PortableServer_ORBInitializer.h
- * tao/PortableServer/PortableServer_PolicyFactory.cpp
- * tao/PortableServer/PortableServer_PolicyFactory.h
- Removed these files, they are now in the pi_server library.
- If you included one of these files or used the functionality
- of the classes in one of these files, include
- tao/PI_Server/PI_Server.h and link the new pi_server library.
-
-Sat Jun 18 18:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/CORBA_String.{h,inl}:
- Added missing operator = (const WChar*) to WString_out. Thanks to
- Jean-Marc Prud'Homme <jprudhomme at interstarinc dot com> for
- reporting this and deliver the patch. This fixes bugzilla bug
- 2159
-
-Sat Jun 18 15:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Notify/EventChannel.cpp:
- Fixed crashing of notication service in mt configuration
-
-Fri Jun 17 19:54:46 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.h (LOG_DEFAULT_MAX_REC_LIST_LEN):
- * orbsvcs/orbsvcs/Log/LogRecordStore_persist.h (LOG_DEFAULT_MAX_REC_LIST_LEN):
-
- Changed the maximum number of records that can be returned by
- query() without using an iterator from 30 to 100. This should
- probably be a parameter that is specified when the service is
- started, but until it is, 100 is a more reasonable default.
-
- From documentation available on line, the Orbix log service
- implementation defaults to 100 records, the VisiBroker
- implementation defaults to 1000.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i):
-
- The ACE_LACKS_LONGLONG_T case cast the 64 bit log record fields
- "id" and "time" to 32 bits, but the format directive still used
- %Q. Changed to "%d".
-
-Fri Jun 17 19:02:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
-
- Moved code for the IOR file and pid file output. It had been
- mistakenly added inside a commented out section of the code.
-
- * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
-
- From documentation available on-line, VisiBroker's and Orbix's
- log service implementations support using corbaloc IORs and
- resolve_initial_references() to obtain the log factory object
- reference. Changed TAO's implementation to support the same by
- registering the factory IORs in the IORTable:
-
- * "BasicLogService" for the Basic_Logging_Service
- * "EventLogService" for the Event_Logging_Service
- * "NotifyLogService" for the Notify_Logging_Service
- * "RTEventLogService" for the RTEvent_Logging_Service
-
- * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.mpc:
- * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.mpc:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.mpc:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
-
- Changed to inherit from iortable.
-
-Fri Jun 17 23:45:00 UTC 2005 Gary Maxey <gary.maxey@hp.com>
-
- * TAO_IDL/include/ast_decl.h
- * TAO_IDL/include/ast_generator.h
- * TAO_IDL/include/ast_module.h
- * TAO_IDL/include/ast_valuebox.h
- * TAO_IDL/include/ast_visitor.h
- * TAO_IDL/include/idl_global.h
- * TAO_IDL/include/utl_err.h
- * TAO_IDL/include/utl_scope.h
- * TAO_IDL/util/utl_err.cpp
- * TAO_IDL/util/utl_scope.cpp
- * TAO_IDL/ast/ast_generator.cpp
- * TAO_IDL/ast/ast_module.cpp
- * TAO_IDL/ast/ast_redef.cpp
- * TAO_IDL/ast/ast_valuebox.cpp
- Changes and additions to IDL compiler front-end for
- valuebox support.
-
-Fri Jun 17 15:40:51 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/orbsvcs.rc:
- * orbsvcs/orbsvcs/orbsvcs_export.h:
-
- Remove stray bits left over from when orbsvcs was a single
- library.
-
-Fri Jun 17 19:09:56 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_codegen.cpp:
-
- Reverted the change of
-
- Thu Jun 16 18:54:01 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- It seems this problem is appearing in other places besides
- generated code, and that making lots of modifications to
- TAO code to work around what is essentially an HP compiler
- bug is not the right approach. Thanks to Johnny Willemsen
- <jwillemsen@remedy.nl> for advice on this matter.
-
-Fri Jun 17 17:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.cpp:
- Fixed resolve_initial_references of the CodecFactory
-
-Fri Jun 17 12:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI_Server/*:
- First commit of the PI_Server library. Will contain the parts
- of the PortableServer that are dependent on PortableInterceptors.
- These files will be used soon when the MPC files are updated
-
-Fri Jun 17 11:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/DLL_ORB/client.cpp:
- Fixed process_directive call
-
-Fri Jun 17 09:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.cpp:
- Corrected wrong compare in resolve_initial_references
-
-Fri Jun 17 09:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Param_Test/Param_Test.mpc:
- Added explicit after so that we don't compile the same idl file
- at the same time multiple times
-
-Fri Jun 17 09:24:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.{h,cpp}:
- Removed some unneeded emulated exeption macros
-
-Fri Jun 17 09:20:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
- Fixed typo in exename, wanted to commit this yesterday but couldn't
- reach cvs
-
-Fri Jun 17 09:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/DLL_ORB/client.cpp:
- * tests/DLL_ORB/server.cpp:
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp:
- Use the new macro ACE_DYNAMIC_SERVICE_DIRECTIVE to load the
- libraries
-
-Fri Jun 17 09:09:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1551_Regression/test.mpc:
- Simplified this mpc file
-
-Fri Jun 17 09:56:44 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/Valuetype/ValueBase.cpp:
-
- Add support for stream encoded repository ID indirection as per
- "15.3.4.3 Scope of the Indirections" in 02-06-33.
- This fixes bug #2156.
-
-Fri Jun 17 08:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORBInitializer_Registry.cpp:
- * tao/PI/ORBInitInfo.cpp:
- * tao/PortableServer/LifespanStrategyPersistent.cpp:
- * tao/RTCORBA/RT_ORBInitializer.cpp:
- * tao/ORB_Core.cpp:
- Use the new macro ACE_DYNAMIC_SERVICE_DIRECTIVE to load the
- libraries
-
- * tao/Messaging/Messaging.cpp:
- Return the value of the process_directive call
-
- * tao/Messaging/Messaging_ORBInitializer.{h,cpp}:
- Don't keep a PolicyFactory as member, just create an instance for
- each ORB. Keeping an instance can cause crashes when the unloading
- of the DLL already has happened before the PolicyFactory registry
- is destructed.
-
- * tao/PortableServer/Servant_Upcall.h:
- Added forward declaration of CORBA::Object. Need it soon because
- of even more subsetting
-
- * tao/ORB_Core.cpp:
- * tao/ORB.{h,cpp}:
- Changed the way we throw an InvalidName exception from
- resolve_initial_references. Instead of throwing it from each
- resolve_x_method, just let those methods return a nil object
- and then throw the exception at the end of
- resolve_initial_references when then the object reference is nil.
- This reduces some needs for exception emulation macros but more
- important it guarantees that we always throw the exception instad
- of returning a nil reference. During testing I found that a rir
- of POACurrent returned a nil reference when the PortableServer
- library was not loaded instead of throwing an exception.
-
-Fri Jun 17 08:49:09 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/PortableServer/Collocated_Object_Proxy_Broker.cpp:
-
- Use _retn () instead of out () for the return value from
- _get_component ().
- This fixes bug #2155.
-
-Thu Jun 16 14:23:08 MST 2005 Trevor Fields <fields_t@ociweb.com>
-
- * TAO_IDL/be/be_visitor_array/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_field/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_union_branch/serializer_op_cs.cpp:
-
- Fix warning about unsigned long arg.
-
-Thu Jun 16 18:54:01 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_codegen.cpp:
-
- Added conditional (for HPUX compiler only) code generation of
- include of ace/SString.h in the stub source file, apparently
- necessary when the HP compiler has optimize=1. Thanks to
- Kris Dekeyser <Kris.Dekeyser@lms.be> for reporting the problem.
-
-Thu Jun 16 17:37:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/TAO_Internal.cpp:
- Do the initialisation of the messaging loader earlier
-
-Thu Jun 16 16:47:42 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/IFR_Service/be_produce.cpp:
-
- Check repository ptr is not null before use in BE_cleanup.
- This fixes bug #2154.
-
-Thu Jun 16 07:45:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitializer_Registry_Impl.{h,cpp}:
- Implemented fini call, at the moment the ORBInitializer Registry
- is removed by service config we release all registered
- ORBInitializers
-
- * tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc:
- Simplified this MPC file
-
-Thu Jun 16 06:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Param_Test/Param_Test.mpc:
- Set exename for anyop
-
-Wed Jun 15 13:46:48 MST 2005 Trevor Fields <fields_t@ociweb.com>
-
- * TAO_IDL/be/be_visitor_array/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_array/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_enum/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_field/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_field/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_module/serializer_op.cpp:
- * TAO_IDL/be/be_visitor_root/serializer_op.cpp:
- * TAO_IDL/be/be_visitor_sequence/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_structure/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_typedef/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_typedef/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_union/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_union/serializer_op_cs.cpp:
- * TAO_IDL/be/be_visitor_union_branch/serializer_op_ch.cpp:
- * TAO_IDL/be/be_visitor_union_branch/serializer_op_cs.cpp:
- * TAO_IDL/be_include/be_visitor_array/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_array/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_enum/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_enum/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_field/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_field/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_module/serializer_op.h:
- * TAO_IDL/be_include/be_visitor_root/serializer_op.h:
- * TAO_IDL/be_include/be_visitor_sequence/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_sequence/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_structure/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_structure/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_typedef/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_typedef/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_union/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_union/serializer_op_cs.h:
- * TAO_IDL/be_include/be_visitor_union_branch/serializer_op_ch.h:
- * TAO_IDL/be_include/be_visitor_union_branch/serializer_op_cs.h:
-
- Addin additional files for providing serialization for sending
- in DDS.
-
-Wed Jun 15 12:36:04 MST 2005 Trevor Fields <fields_t@ociweb.com>
-
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_decl.cpp:
- * TAO_IDL/be/be_global.cpp:
- * TAO_IDL/be/be_visitor_array.cpp:
- * TAO_IDL/be/be_visitor_enum.cpp:
- * TAO_IDL/be/be_visitor_field.cpp:
- * TAO_IDL/be/be_visitor_module.cpp:
- * TAO_IDL/be/be_visitor_root.cpp:
- * TAO_IDL/be/be_visitor_sequence.cpp:
- * TAO_IDL/be/be_visitor_structure.cpp:
- * TAO_IDL/be/be_visitor_typedef.cpp:
- * TAO_IDL/be/be_visitor_union.cpp:
- * TAO_IDL/be/be_visitor_union_branch.cpp:
- * TAO_IDL/be/be_visitor_module/module.cpp:
- * TAO_IDL/be/be_visitor_root/root.cpp:
- * TAO_IDL/be/be_visitor_structure/structure.cpp:
- * TAO_IDL/be/be_visitor_typedef/typedef.cpp:
- * TAO_IDL/be/be_visitor_union/union.cpp:
- * TAO_IDL/be_include/be_codegen.h:
- * TAO_IDL/be_include/be_decl.h:
- * TAO_IDL/be_include/be_global.h:
- * TAO_IDL/be_include/be_visitor_array.h:
- * TAO_IDL/be_include/be_visitor_enum.h:
- * TAO_IDL/be_include/be_visitor_field.h:
- * TAO_IDL/be_include/be_visitor_module.h:
- * TAO_IDL/be_include/be_visitor_root.h:
- * TAO_IDL/be_include/be_visitor_sequence.h:
- * TAO_IDL/be_include/be_visitor_structure.h:
- * TAO_IDL/be_include/be_visitor_typedef.h:
- * TAO_IDL/be_include/be_visitor_union.h:
- * TAO_IDL/be_include/be_visitor_union_branch.h:
- * TAO_IDL/fe/idl.ll:
- * TAO_IDL/fe/lex.yy.cpp:
- * TAO_IDL/include/idl_global.h:
- * TAO_IDL/util/utl_global.cpp:
-
- Adding idl support for the new DDS DCPS implementation over TAO.
-
-Wed Jun 15 17:55:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Collocation_Proxy_Broker.h:
- Added include to get size_t. This should fix the LynxOS build
-
-Wed Jun 15 10:46:12 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/PortableServer/TAO_PortableServer.pc.in:
-
- Added TAO_PI to list of required libraries.
-
- * tao/PI.mpc:
-
- Added Pkgconfig_Files definition.
-
- * tao/PI/TAO_PI.pc.in:
-
- New file, pkg-config *.pc template for TAO_PI library.
-
-Wed Jun 15 13:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Object_Adapter.cpp:
- * tao/PortableServer/POA_Current_Impl.cpp:
- * tao/PortableServer/Root_POA.cpp:
- Removed several not needed includes
-
-Wed Jun 15 11:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Param_Test/Param_Test.mpc:
- Simplified this MPC file, server anyop are not using messaging
-
- * tao/RTScheduling/RTScheduler_Loader.h:
- Removed not needed forward declaration
-
- * tao/Messaging/Messaging_ORBInitializer.h:
- Removed not needed forward declaration
-
- * tao/Messaging/Messaging_Loader.{h,cpp}:
- * tao/Messaging/Messaging.cpp:
- We have an initialisation problem in the Messaging library, it
- registers it ORBInitializer in a static object but the
- ORBInitializer_Registry then doesn't need to be loaded yet.
- Added a Messaging_Loader, this loader is just add to the
- service config registry in the static object, from TAO_Internal
- we then intialize the Message_Loader when it is available,
- which then will register the ORBInitializer. Maybe this problem
- exists with more libs, the regression tests will show it.
-
- * tao/TAO_Internal.cpp:
- Initialise the Messaging Loader when available
-
- * tao/PI/ORBInitializer_Registry_Impl.h:
- Removed old documentation
-
- * tao/RTCORBA/RT_ORBInitializer.cpp:
- Initialise pointer with 0
-
-Wed Jun 15 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/RTScheduling/Distributable_Thread.cpp:
- * tao/RTScheduling/Request_Interceptor.h:
- * tao/RTScheduling/RTScheduler_Initializer.cpp:
- * tao/RTScheduling/RTScheduler_Loader.cpp:
- Fixed some potential memory leaks when things go wrong and some
- minor formatting changes
-
-Wed Jun 15 09:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORBInitializer_Registry.cpp:
- Don't try to load the ORBInitializer registry in a static
- build
-
-Wed Jun 15 08:03:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
- Fixed conversion warning
-
-Tue Jun 14 21:35:35 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/PolicyFactory_Registry_Adapter.cpp:
-
- Removed stray semi-colon.
-
-Tue Jun 14 20:57:00 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- From Lothar Werzinger <lothar@xcerla.com>
- * orbsvcs/orbsvcs/Naming/Naming_Server.cpp (init_new_naming):
-
- Register with the ORB's resolve_initial_references() mechanism.
- Primarily useful for dynamically loaded Name Services.
- [Bug 2150]
-
-Tue Jun 14 14:48:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/TAO_Server_Request.h:
- Just include Object.h to get CORBA::Object instead of a forward
- declaration, we get else problems in an inline build.
-
-Tue Jun 14 14:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Strategies/SCIOP_Profile.cpp:
- Include tao/StringSeqC.h to get StringSeq. It seems the refactoring
- of some PI reveales a lot of includes which are previously
- gotten for free.
-
-Tue Jun 14 14:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Upcall_Wrapper.cpp:
- Added include of tao/Argument.h, this is not pulled in when
- interceptors are disabled
-
-Tue Jun 14 14:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/TAO_Server_Request.h:
- Added forward declaration of CORBA::Object. This is not pulled in
- when interceptors are disabled
-
-Tue Jun 14 14:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/check_supported_priorities.cpp
- * tests/RTCORBA/common_args.cpp
- * tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
- * tests/RTCORBA/Banded_Connections/client.cpp
- * tests/RTCORBA/Banded_Connections/server.cpp
- * tests/RTCORBA/Client_Propagated/Client_ORBInitializer.h
- * tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
- * tests/RTCORBA/Client_Propagated/client.cpp
- * tests/RTCORBA/Client_Propagated/server.cpp
- * tests/RTCORBA/Collocation/Collocation.cpp
- * tests/RTCORBA/Linear_Priority/client.cpp
- * tests/RTCORBA/Linear_Priority/server.cpp
- * tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
- * tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
- * tests/RTCORBA/Policy_Combinations/client.cpp
- * tests/RTCORBA/Policy_Combinations/server.cpp
- * tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
- * tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
- * tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
- * tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
- * tests/RTCORBA/Server_Declared/server.cpp
- * tests/RTCORBA/Thread_Pool/client.cpp
- * tests/RTCORBA/Thread_Pool/server.cpp
- Return 2 instead of -1 when the check_support_priorities fail.
- The test scripts expect then a return value of 2
-
-Tue Jun 14 14:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO-INSTALL.html:
- Updated Borland build instructions
-
-Tue Jun 14 13:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitializer_Registry_Impl.cpp:
- Corrected include
-
-Tue Jun 14 13:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.{h,cpp}:
- Updated includes
-
-Tue Jun 14 12:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/examples/ORT/Server_IORInterceptor_ORBInitializer.h:
- Updated include, missed in a previous checkin
-
-Tue Jun 14 12:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/ORBInitializer_Registry.{h,cpp}:
- Renamed to ORBInitializer_Registry_Impl.{h,cpp} This prevents
- confusion if we have the file in the tao or tao/PI directory
-
- * tao/PI/PI.cpp:
- Updated include
-
-Tue Jun 14 11:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Kokyu_dsrt_schedulers/FP_Scheduler.h:
- * examples/Kokyu_dsrt_schedulers/MIF_Scheduler.h:
- * examples/Kokyu_dsrt_schedulers/MUF_Scheduler.h:
- Added missing include of CodecFactory.h
-
-Tue Jun 14 11:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB_Core.cpp:
- Fixed problem with emulated exceptions
-
-Tue Jun 14 10:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/IOPS_T.h:
- Removed, not included by IOPS.h anymore
-
- * tao/tao.mpc:
- Removed tao/tao.mpc
-
-Tue Jun 14 10:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp:
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp:
- Added missing includes
-
-Tue Jun 14 10:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h:
- Added missing includes
-
-Tue Jun 14 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/AV/SCTP_SEQ.h:
- Added missing include
-
-Tue Jun 14 09:58:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_1693_Test/client.cpp:
- * tests/RTCORBA/Thread_Pool/client.cpp:
- * tests/Codec/client.cpp:
- Fixed compile errors
-
- * tao/ORB.cpp:
- * tao/ORB_Core.{h,cpp}:
- Changed the way we use the ORBInitializer registry. When it is
- requested from the ORB_Core, get it from the service config
- registry but in a static build don't try to load it on demand
-
-Tue Jun 14 08:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PI/*:
- New PI library. Contains ORBInitializer registry, ORBInitInfo and
- PolicyFactory. This will be extended in the future with more classes
- but this is the first step. If you use any of these classes in
- your app, add the include of tao/PI/PI.h to your application code.
- This will make sure the service config registry is filled with
- the loadable modules.
-
- * tao/BiDir_GIOP.mpc:
- The BiDir library uses a PolicyFactory so it must link with the PI
- library
-
- * tao/Interceptor_List.{h,cpp}:
- Changed the list to return a value indicating whether it was possible
- to add the interceptor or not. The caller in the PI or IORInterceptor
- library will then throw the correct exception. This way the list
- template can stay in the TAO lib because the exception DuplicateName
- is now in the PI library
-
- * tao/IORInterceptor.mpc:
- Added PI as base project
-
- * tao/IORInterceptor_Adapter.{h,cpp}:
- Removed throw clause from add_interceptor method. The clause was
- not correct also, it could throw a DuplicateName exception also.
- This way we are not dependent on the PI library. Also the adapter
- doesn't need to be derived from ACE_Service_Object, this class
- is not loaded, the factory that creates it is.
-
- * tao/IORInterceptor_Adapter_Factory.{h,cpp}:
- Removed destructor, it is not needed
-
- * tao/ORB.cpp:
- Updated to use the new ORBInitializer Factory adapter and Policy
- Factory adapter
-
- * tao/ORB_Core.{h,cpp,i}:
- Updated for new adapters and interceptor list changes. Also added
- a get_orbinitializer_registry which returns the current pointer
- without trying to load the PI library. This is used by the ORB
- to call alls orbinitializers. When the library is not loaded yet,
- no user code caused this so we don't have to do this also
-
- * tao/ORBInitializer.pidl:
- * tao/ORBInitializerA.cpp:
- * tao/ORBInitializerC.{h,cpp,inl}:
- * tao/ORBInitializerS.h:
- * tao/ORBInitInfo.pidl:
- * tao/ORBInitInfoA.cpp:
- * tao/ORBInitInfoC.{h,cpp,inl}:
- * tao/ORBInitInfoS.h:
- * tao/ORBInitInfo.{h,cpp,inl}:
- * tao/PolicyFactory.pidl:
- * tao/PolicyFactory_Registry.{h,cpp}:
- * tao/PolicyFactoryA.cpp:
- * tao/PolicyFactoryC.{h,cpp,inl}:
- Moved to the PI library
-
- * tao/IOP_Codec.pidl:
- * tao/IOP_CodecA.cpp:
- * tao/IOP_CodecC.{h,cpp,inl}:
- Moved to the CodecFactory library
-
- * tao/IOP.pidl:
- Removed include of IOP_Codec.pidl
-
- * tao/ORBInitializer_Registry.{h,cpp}:
- Removed all code except register_orb_initializer, which now tries
- to load the ORBInitializer Registry on demand. The code is moved to
- the PI library
-
- * tao/PI.mpc:
- New file
-
- * tao/PolicyFactory_Registry_Adapter.{h,cpp}:
- New adapter for PolicyFactory_Registry
-
- * tao/PolicyFactory_Registry_Factory.h:
- New factory for creating a PolicyFactory for each ORB
-
- * tao/PortableInterceptor.pidl:
- Removed files that moved to the PI library
-
- * tao/PortableInterceptorA.cpp:
- Removed, empty
-
- * tao/PortableInterceptorC.{cpp,h}:
- Regenerated
-
- * tao/PortableServer.mpc:
- * tao/RTCORBA.mpc:
- * tao/Utils.mpc
- Based on the new PI. These all use something of the PI library.
- Because of this only a client gets benefits from this, but the
- server will be handled in the next iteration
-
- * tao/tao.mpc:
- Updated for all changes
-
- * tao/BiDir_GIOP/BiDirGIOP.cpp:
- Added include of ORBInitializer_Registry.h
-
- * tao/BiDir_GIOP/BiDir_ORBInitializer.{h,cpp}:
- * tao/BiDir_GIOP/BiDir_PolicyFactory.h:
- Include tao/PI/PI.h
-
- * tao/CodecFactory/CodecFactory.h:
- Include IOP_CodecC.h
-
- * tao/CodecFactory/IOP_CodecC.{h,cpp}:
- * tao/CodecFactory/IOP_CodecA.cpp:
- * tao/CodecFactory/IOP_CodecS.h:
- Files moved from the tao lib
-
- * tao/CodecFactory/IOP_Codec_include.pidl:
- * tao/CodecFactory/IOP_Codec_includeC.h:
- * tao/CodecFactory/IOP_Codec_includeS.h:
- New files for apps that include IOP_Codec.pidl in the past, they
- should now use this pidl file
-
- * tao/CodecFactory/CDR_Encaps_Codec.h:
- * tao/CodecFactory/CodecFactory.h:
- * tao/CodecFactory/CodecFactory_imp.h:
- Updated for moving of IOP_Codec.pidl
-
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.{h,cpp}:
- Updated for interceptor list change
-
- * tao/Messaging/Messaging_ORBInitializer.h:
- * tao/Messaging/Messaging_PolicyFactory.h:
- * tao/PortableServer/PortableServer_ORBInitializer.{h,cpp}:
- * tao/PortableServer/PortableServer_PolicyFactory.h:
- * tao/RTCORBA/RT_ORBInitializer.cpp:
- * tao/RTCORBA/RT_PolicyFactory.h
- * tao/RTScheduling/RTScheduling_Initializer.{h,cpp}:
- * tao/Utils/RIR_Narrow.h:
- Changed includes to include tao/PI/PI.h
-
- * tao/docs/libraries.html:
- Added PI
-
- * orbsvcs/examples/FaultTolerance/RolyPoly/RolyPoly.mpc
- * orbsvcs/examples/LoadBalancing/ORBInitializer.h
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h
- * orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
- * orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h
- * orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h
- * orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp
- * orbsvcs/orbsvcs/Security/Security_ORBInitializer.h
- * orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp
- * orbsvcs/orbsvcs/Security/Security_PolicyFactory.h
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/ORBInitializer.cpp
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/ORBInitializer.h
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ORBInitializer.h
- * orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_ORBInitializer.h
- * orbsvcs/tests/RTCosScheduling/RTCosScheduling.mpc
- * tests/Bug_1495_Regression/Bug_1495.mpc
- * tests/Bug_1495_Regression/Client_ORBInitializer.h
- * tests/Bug_1495_Regression/Server_ORBInitializer.h
- * tests/ORT/ORT.mpc
- * tests/ORT/ServerORBInitializer.h
- * tests/Portable_Interceptors/AMI/Client_ORBInitializer.h
- * tests/Portable_Interceptors/AMI/Server_ORBInitializer.h
- * tests/Portable_Interceptors/Benchmark/Client_ORBInitializer.h
- * tests/Portable_Interceptors/Benchmark/Server_ORBInitializer.h
- * tests/Portable_Interceptors/Bug_1559/Client_ORBInitializer.h
- * tests/Portable_Interceptors/Bug_1559/Server_ORBInitializer.h
- * tests/Portable_Interceptors/Bug_2088/Client_ORBInitializer.h
- * tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp
- * tests/Portable_Interceptors/Collocated/Dynamic/Echo_Collocated_ORBInitializer.cpp
- * tests/Portable_Interceptors/Collocated/Dynamic/Echo_Collocated_ORBInitializer.h
- * tests/Portable_Interceptors/Collocated/Dynamic/PI_Dynamic.mpc
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_ORBInitializer.h
- * tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
- * tests/Portable_Interceptors/Dynamic/Echo_Client_ORBInitializer.h
- * tests/Portable_Interceptors/Dynamic/Echo_Server_ORBInitializer.h
- * tests/Portable_Interceptors/ForwardRequest/Client_ORBInitializer.h
- * tests/Portable_Interceptors/ForwardRequest/Server_ORBInitializer.h
- * tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.h
- * tests/Portable_Interceptors/IORInterceptor/FOO_Client_ORBInitializer.h
- * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h
- * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor_ORBInitializer.h
- * tests/Portable_Interceptors/ORB_Shutdown/Server_ORBInitializer.h
- * tests/Portable_Interceptors/PICurrent/ClientORBInitializer.h
- * tests/Portable_Interceptors/PICurrent/ServerORBInitializer.cpp
- * tests/Portable_Interceptors/PICurrent/ServerORBInitializer.h
- * tests/Portable_Interceptors/PICurrent/client.cpp
- * tests/Portable_Interceptors/PolicyFactory/PolicyFactory.h
- * tests/Portable_Interceptors/PolicyFactory/Server_ORBInitializer.h
- * tests/Portable_Interceptors/Request_Interceptor_Flow/Client_ORBInitializer.h
- * tests/Portable_Interceptors/Request_Interceptor_Flow/Server_ORBInitializer.h
- * tests/Portable_Interceptors/Service_Context_Manipulation/Client_ORBInitializer.h
- * tests/Portable_Interceptors/Service_Context_Manipulation/Server_ORBInitializer.h
- Updated for the new PI library
-
- * tests/RTCORBA/check_supported_priorities.cpp
- * tests/RTCORBA/common_args.cpp
- * tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
- * tests/RTCORBA/Banded_Connections/client.cpp
- * tests/RTCORBA/Banded_Connections/server.cpp
- * tests/RTCORBA/Client_Propagated/Client_ORBInitializer.h
- * tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
- * tests/RTCORBA/Client_Propagated/client.cpp
- * tests/RTCORBA/Client_Propagated/server.cpp
- * tests/RTCORBA/Collocation/Collocation.cpp
- * tests/RTCORBA/Linear_Priority/client.cpp
- * tests/RTCORBA/Linear_Priority/server.cpp
- * tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
- * tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
- * tests/RTCORBA/Policy_Combinations/client.cpp
- * tests/RTCORBA/Policy_Combinations/server.cpp
- * tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
- * tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
- * tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
- * tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
- * tests/RTCORBA/Server_Declared/server.cpp
- * tests/RTCORBA/Thread_Pool/client.cpp
- * tests/RTCORBA/Thread_Pool/server.cpp
- Instead of doing an ACE_OS::exit() when the needed priorities
- are not available, return from the main with a -1. Will reduce
- the number of memory leaks reported by valgrind a lot.
-
-Tue Jun 14 07:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp:
- Added missing include
-
-Mon Jun 13 17:27:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp (get):
-
- Change to return a zero-length sequence before destroying
- iterator as required by the spec.
-
-Mon Jun 13 17:18:44 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Iterator_i.h:
-
- Change type of constraint member variable to CORBA::String_var
- so we don't dereference a dangling char * in get().
-
-Mon Jun 13 12:10:06 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp:
- * orbsvcs/orbsvcs/Log/Iterator_i.h:
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
-
- Changed to interpret "position" as the index in the complete
- sequence of records that match the constraint instead of the
- index in the sequence of all records.
-
- Changed TAO_Iterator_i constructor to take new "current" and
- "end" iterator parameters. This allows us to avoid scanning
- and skipping records returned as part of the initial query().
-
- Simplify iterating over record store by using ACE_Hash_Map's
- STL-like API.
-
-Mon Jun 13 18:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h:
- Converted comments to doxygen style
-
-Mon Jun 13 18:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp:
- Include ORBInitializer_Registry.h, needed for the upcoming PI library
-
-Mon Jun 13 05:07:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/orbsvcs/AV/AVStreams_i.cpp:
- * orbsvcs/orbsvcs/AV/AVStreams_i.h:
-
- Made public destructors protected since the objects in question
- are reference counted, i.e. memory management should be
- performed through the reference counting mechanism, not operator
- delete();
-
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp:
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.h (TAO_FlowSpec_Entry):
- * orbsvcs/orbsvcs/AV/FlowSpec_Entry.i:
-
- Fixed a memory leak.
-
-Mon Jun 13 09:32:38 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * tao/IIOP_Profile.cpp:
- * tao/Tagged_Component.cpp:
- * tao/Tagged_Component.h:
-
- Reverted the change to TAO_Tagged_Component::get_component.
-
-Mon Jun 13 12:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/Client_Propagated/client.cpp:
- Added include of ORBInitializer_Registry.h
-
-Mon Jun 13 11:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc:
- * tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc:
- * tests/Portable_Interceptors/Bug_2088/Bug_2088.mpc:
- * tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc:
- * tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc:
- * tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc:
- * tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc:
- * tests/Portable_Interceptors/PolicyFactory/PI_PolicyFactory.mpc:
- * tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc:
- * tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc:
- Use interceptors as base project instead of the requires
- interceptors
-
-Mon Jun 13 08:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Strategies/SCIOP_Endpoint.cpp:
- Fixed compile error
-
-Mon Jun 13 08:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Messaging/Asynch_Invocation_Adapter.{h,cpp}:
- Fixed ambiguity warnings with Borland.
-
-Sun Jun 12 23:09:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp (TAO_Log_Constraint_Visitor):
-
- Add property list bindings for each item in the log record's
- attribute list.
-
-Sun Jun 12 23:38:02 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
-
- * tao/GIOP_Message_Base.h (process_request, process_locate_request):
-
- Made the above calls virtual since it makes it easier to do
- implementation inheritance, and override behaviours.
-
-Sun Jun 12 14:24:05 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i, match_i, remove_old_records):
-
- Simplify iterating over record store by using ACE_Hash_Map's
- STL-like API.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i):
-
- Changed from LOG_HASH_MAP_ITER to LOG_RECORD_STORE_ITER.
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.h (TAO_LogRecordStore):
-
- Added LOG_RECORD_STORE_ENTRY typedef.
-
- * orbsvcs/orbsvcs/Log/Iterator_i.cpp: (TAO_Iterator_i):
- * orbsvcs/orbsvcs/Log/Iterator_i.h (TAO_Iterator_i):
- * orbsvcs/orbsvcs/Log/Log_i.cpp (query_i):
-
- Removed max_store_size argument from constructor.
- Removed (unused) max_store_size member variable.
-
- * orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp:
-
- Changed constructor to directly assign log record's .info field
- to property list value binding instead of stashing it in an the
- Any. This allows the value to be queried via ETCL constraints.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (remove_old_records):
-
- Changed conditional in constraint as it was casing new, not old,
- records to be deleted.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (validate_capacity_alarm_thresholds):
- * orbsvcs/orbsvcs/Log/Log_i.h (validate_capacity_alarm_thresholds):
-
- Move validate_capacity_alarm_thresholds method from public to
- protected visibility.
-
- * tao/Makefile.am:
-
- Updated to remove Queued_Message.inl.
-
-Sun Jun 12 13:39:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Collocation_Proxy_Broker.h:
- Added forward declaration of environment
-
-Sun Jun 12 13:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Security/Security_ORBInitializer.{h,cpp}:
- * tao/RTCORBA/RT_ORBInitializer.{h,cpp}:
- Updated the way the policyfactory is registered in a way that things
- are not dependent on the destruction order and we only have one
- instance of the factory in runtime
-
-Sun Jun 12 12:37:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
-
- * rules.tao.GNU:
- Fixed problem with TAO version detection when default Make
- shell is CMD.EXE.
-
-Sat Jun 11 23:45:07 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_operation.cpp:
- * TAO_IDL/be/be_visitor_sequence.cpp:
- * TAO_IDL/be_include/be_visitor_operation.h:
- * TAO_IDL/be_include/be_visitor_sequence.h:
-
- Removed includes of unused files.
-
- * TAO_IDL/be/be_visitor_argument/invoke_cs.cpp:
- * TAO_IDL/be/be_visitor_argument/marshal_ss.cpp:
-
- Fixed incorrect visitor names in error messages.
-
- * TAO_IDL/be/be_visitor_argument/post_invoke_cs.cpp:
- * TAO_IDL/be/be_visitor_argument/post_marshal_ss.cpp:
- * TAO_IDL/be/be_visitor_argument/pre_invoke_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_assign_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_is.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_marshal_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_post_invoke_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_post_upcall_ss.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_pre_invoke_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_vardecl_cs.cpp:
- * TAO_IDL/be/be_visitor_operation/rettype_vardecl_ss.cpp:
- * TAO_IDL/be/be_visitor_sequence/elemtype.cpp:
- * TAO_IDL/be_include/be_visitor_argument/post_invoke_cs.h:
- * TAO_IDL/be_include/be_visitor_argument/post_marshal_ss.h:
- * TAO_IDL/be_include/be_visitor_argument/pre_invoke_cs.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_assign_ss.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_is.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_marshal_ss.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_post_invoke_cs.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_post_upcall_ss.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_pre_invoke_cs.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_cs.h:
- * TAO_IDL/be_include/be_visitor_operation/rettype_vardecl_ss.h:
- * TAO_IDL/be_include/be_visitor_sequence/elemtype.h:
-
- Removed from the repository visitors that are no longer used.
- Thanks to Gary Maxey <gary.maxey@hp.com> for pointing out
- most of them.
-
-Sat Jun 11 14:43:18 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/EventLogConsumer.cpp (push):
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp (push):
-
- Add ACE_TRY_CATCH after call to write_recordlist() for emulated
- exception builds.
-
-Sat Jun 11 13:18:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PolicyFactory_Registry.cpp:
- Fixed memory leak at the moment the registering of a policy
- factory fails
-
-Sat Jun 11 12:46:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/RTCORBA/Linear_Priority/run_test.pl:
- When the server can't be started end this test directly
-
- * tao/RTCORBA/RT_ORBInitializer.{h,cpp}:
- Changed the way we register the PolicyFactory. Don't store it as
- member in the ORBInitializer, this gives problems now we start
- loading the PI stuff on demand. The order of destruction seems to
- be changed causing crashes in the RTCorba tests. This fixes these
- crashes
-
-Sat Jun 11 11:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Queued_Message.{h,inl,cpp}:
- Removed the .inl file, it is empty
-
-Fri Jun 10 14:58:23 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
-Fri Jun 10 13:07:04 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Collocation_Proxy_Broker.cpp:
- * tao/Collocation_Proxy_Broker.h:
- * tao/Connection_Handler.cpp:
- * tao/Connection_Handler.inl:
- * tao/GIOP_Message_Generator_Parser.cpp:
- * tao/GIOP_Message_Generator_Parser.h:
- * tao/Invocation_Adapter.cpp:
- * tao/Invocation_Adapter.inl:
- * tao/New_Leader_Generator.cpp:
- * tao/New_Leader_Generator.h:
- * tao/Object.cpp:
- * tao/Object.i:
- * tao/Policy_Manager.cpp:
- * tao/Policy_Manager.i:
- * tao/Queued_Message.cpp:
- * tao/Queued_Message.inl:
- * tao/SystemException.cpp:
- * tao/SystemException.h:
- * tao/UTF16_BOM_Translator.cpp:
- * tao/UTF16_BOM_Translator.h:
- * tao/Messaging/MessagingS.cpp:
- * tao/Messaging/MessagingS.h:
- * tao/PortableServer/PolicyS.cpp:
- * tao/PortableServer/PolicyS.h:
- * tao/PortableServer/Upcall_Command.cpp:
- * tao/PortableServer/Upcall_Command.h:
-
- Moved inlined virtual methods out of line. Inlinging them
- causes RTTI issues when using g++ 4.0's hidden symbol
- visibility.
-
- * tao/Messaging/Asynch_Invocation_Adapter.cpp:
- * tao/Messaging/Asynch_Invocation_Adapter.h (invoke):
- * tao/Messaging/Asynch_Invocation_Adapter.inl:
-
- Removed unnecessary virtual function override. All it was
- forward the call to the base class implementation.
-
- Removed empty inline source file.
-
- * tao/Makefile.am:
- * tao/tao.mpc:
-
- Updated source file lists.
-
-Fri Jun 10 13:00:49 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/PICurrent_Loader.h:
-
- Include "tao/orbconf.h" to pull in default TAO_HAS_INTERCEPTORS
- preprocessor symbol definition. Fixes link-time errors related
- to missing static constructor definition.
-
- * tao/PICurrent_Loader.cpp:
-
- Reorganized include directives so that interceptor related
- headers are not included when compile-time interceptor support
- is not enabled.
-
-Fri Jun 10 12:51:44 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp:
- * TAO_IDL/be/be_visitor_interface/direct_proxy_impl_ss.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
-
- Generate out of line virtual methods. Inlined ones prevent RTTI
- from working when enabling hidden symbols with g++ 4.0's
- visibility support.
-
- * tao/GIOP_Message_Generator_Parser_Impl.inl (check_revision):
-
- Made "max_allowable_version" variable a static constant instead
- of a non-const variable. Reduces run-time overhead since this
- value may be computed at compile-time.
-
-Fri Jun 10 18:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.cpp:
- * tao/ORB_Core.{h,i}:
- * tao/PICurrent_Loader.{h,cpp}:
- Fixed compile errors when interceptors are disabled
-
-Fri Jun 10 17:21:28 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/Bug_2137_Regression/run_test.pl:
-
- Fix wrong 'use lib'.
-
-Fri Jun 10 09:59:17 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/default_client.cpp:
-
- Ensure that all TAO related options are consistently case
- insensitive.
-
-Fri Jun 10 13:16:27 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/fe_extern (FE_generate_UUID):
-
- Added arguments (which were passed by default value before) to
- the generateUUID() call on the ACE UUID_GENERATOR singleton.
- These arguments trigger the inclusion of the thread id in the
- formation of the uuid, along with the process id and timestamp
- that were already being used. In some experiments we have done
- with the Visual Studio 2005 beta (which can take advantage of
- multiple processors to do parallel builds), the process id
- and timestamp alone were apparently not enough to ensure a
- unique id when creating one for use in the temporary file name,
- and multiple threads corresponding to multiple builds in the
- same directory were trying to open temporary files with the
- same name.
-
-Fri Jun 10 08:21:47 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.cpp:
- * examples/RTScheduling/Thread_Task.cpp:
-
- Addressed data initialization and memcpy issues which mainly
- showed up in a 64-bit Solaris build.
-
- * performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp:
-
- Use ACE_SCOPE_THREAD on AIX and MacOS X instead of
- ACE_SCOPE_PROCESS since it's not supported.
-
-Fri Jun 10 07:51:36 2005 Phil Mesnier <mesnier_p@ociweb.com>
-
- * docs/Options.html:
- * tao/IIOP_Acceptor.cpp:
- * tao/IIOP_Profile.cpp:
- * tao/IIOP_Profile.h:
- * tao/ORB_Core.cpp:
- * tao/Tagged_Components.cpp:
- * tao/Tagged_Components.h:
- * tao/params.cpp:
- * tao/params.h:
- * tao/params.i:
- * tao/PortableServer/Default_Acceptor_Filter.cpp:
- * tests/AlternateIIOP:
- * utils/catior/catior.cpp:
-
- Added support for TAG_ALTERNATE_IIOP_ADDRESS to combine many
- endpoints into a single profile when not using RTCORBA. This may
- be overridden by using the ORB_init argument
- -ORBUseSharedProfiles 0. It is enabled by default. Unlike the
- TAO-specific TAO_TAG_ENDPOINTS, the TAG_ALTERNATE_IIOP_ADDRESS
- component contains a single host:port pair, but many such
- components may be added to a profile to carry as many endpoints
- as required.
-
-Fri Jun 10 10:40:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/CodecFactory/*:
- New CodecFactory library. When users want to use the CodecFactory
- they have to include tao/CodecFactory/CodecFactory.h
-
- * tao/Bind_Dispatcher_Guard.h:
- Doxygen improvement
-
- * tao/IOP_IOR.pidl:
- Updated numbers for reliable multicast as mentioned in omg document
- 03-01-11
-
- * tao/CDR_Encaps_Codec.{h,cpp}:
- * tao/CodecFactory.{h,cpp}:
- These files are moved to the CodecFactory library
-
- * tao/CodecFactory.mpc:
- New MPC file for the CodecFactory library
-
- * tao/ClientRequestInfo_i.h:
- * tao/ClientRequestInterceptor_Adapter.{h,cpp}:
- * tao/Collocated_Invocation.cpp:
- * tao/Invocation_Base.cpp:
- * tao/PICurrent_Copy_Callback.cpp:
- * tao/Synch_Invocation.cpp:
- * tao/TAO_Server_Request.h:
- * tao/TSS_Resources.h:
- * tao/Messaging/Asynch_Invocation.cpp:
- * tao/PortableServer/ServerRequestInfo.h:
- Changed includes and added some more forward declarations because
- of reduced header dependencies
-
- * tao/Tagged_Components.h:
- Removed commented out code
-
- * tao/tao.mpc:
- Updated for all these changes
-
- * tao/ClientRequestInfo_i.i:
- Added needed include
-
- * tao/CodecFactory_ORBInitializer.{h,cpp}:
- Removed, we don't use an ORBInitializer anymore for the CodecFactory
-
- * tao/ORB.cpp:
- * tao/ORB_Core.{h,cpp,i}:
- Changed the way we retrieve the CodecFactory and PICurrent. Instead
- of an ORBInitializer we try to load them using svc.conf
-
- * tao/ORBInitInfo.cpp:
- Use svc.conf to get the CodecFactory instead of allocating a new
- instance here
-
- * tao/Parser_Registry.cpp:
- Removed empty explicit template instantiation block
-
- * tao/PICurrent.{h,cpp,inl}:
- * tao/PICurrent_Impl.{h,cpp,inl}:
- Moved TAO::PICurrent_Impl to its own file
-
- * tao/PICurrent.pidl:
- * tao/PICurrentA.cpp:
- * tao/PICurrentC.{h,cpp}:
- * tao/PICurrentS.h:
- Moved PICurrent to its own file
-
- * tao/PICurrent_Loader.{h,cpp}:
- Use svc.conf to get PICurrent
-
- * tao/PICurrent_ORBInitializer.{h,cpp}:
- Removed these files
-
- * tao/Policy_Manager.{h,cpp,i}:
- * tao/Policy_Current.{h,cpp,inl}:
- * tao/Policy_Current_Impl.{h,cpp,inl}:
- Moved Policy_Current and Policy_Current_Impl to their own files
-
- * tao/PortableInterceptor.pidl:
- * tao/PortableInterceptorA.cpp:
- * tao/PortableInterceptorC.{h,cpp}:
- * tao/PortableInterceptorS.h:
- Moved PICurrent out of this file and regenerated
-
- * tao/Services_Activate.cpp:
- Removed explicit templates
-
- * tao/ServicesS_T.h:
- Removed
-
- * tao/orbconf.h:
- Added deablfine for RootPOAManager name, will be used later
-
- * tao/objectid.h:
- Added define for POAManagerFactory
-
- * tao/LocalObject.{h,cpp}:
- Override _get_orb to throw a no implement with minor code 8
-
- * tao/Object.{h,cpp}:
- Added _get_orb()
-
- * docs/libraries.html:
- Added codecfactory
-
- * tests/Bug_1693_Test/Bug_1693_Test.mpc:
- * tests/Bug_1693_Test/client.cpp:
- * tests/Codec/client.cpp:
- * tests/Codec/Codec.mpc:
- * tests/Portable_Interceptors/IORInterceptor/FOO_Client_ORBInitializer.cpp:
- * tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor_ORBInitializer.cpp:
- * tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc:
- * examples/Kokyu_dsrt_schedulers/EDF_Scheduler.cpp:
- * examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp:
- * examples/Kokyu_dsrt_schedulers/Kokyu_DSRT_Schedulers.mpc:
- * examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp:
- * examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp:
- * orbsvcs/PSS/PSDL_Code_Gen.cpp:
- * orbsvcs/orbsvcs/RTCosScheduling.mpc:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp:
- Updated because of new CodecFactory library
-
-Fri Jun 10 10:15:17 2005 Simon McQueen <sm@prismtech.com>
-
- * tests/Bug_2144_Regression/Bug_2144_Regression.mpc:
-
- Add valuetype to dependencies to (hopefully) fix Linux error.
-
- * tao/Profile.cpp:
-
- Fix warning on Linux.
-
-Thu Jun 10 08:40:00 UTC 2005 Simon Massey <sma@prismtech.com>
-
- * tao/orbsvcs/tests/Bug_2137_Regression/client.cpp:
- Corrected const char * problem.
-
-Thu Jun 9 18:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Tagged_Components.h:
- Removed commented out code
-
-Thu Jun 9 18:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ServicesS_T.h:
- Removed this file, was not included at all
-
-Thu Jun 9 18:41:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/FaultTolerance/ChangeLog:
- Removed this file, we have a main changelog
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp:
- Minor formatting issues. Fixes bugzilla bug 2139. Thanks to
- <jmegq at radiance dot com>
-
-Thu Jun 9 18:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/POA/Reference_Counting/*
- New reference counting test, regression for bug 2142.
- Thanks to Frank Pilhofer <fp@mc.com>
-
-Thu Jun 9 15:33:52 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_visitor_union_branch/public_ci.cpp:
-
- Change valuetype acessor declaration to return a pointer
- rather than a _ptr.
-
- This fixes bugzilla #2144.
-
- * tests/Bug_2144_Regression/Bug_2144_Regression.mpc:
- * tests/Bug_2144_Regression/README:
- * tests/Bug_2144_Regression/test.cpp:
- * tests/Bug_2144_Regression/test.idl:
-
- Regression test for the above.
-
-Thu Jun 9 07:24:15 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/EventLogConsumer.cpp (push):
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp (push):
-
- Catch log service exceptions and rethrow the corresponding
- system exception.
-
-Thu Jun 9 07:11:33 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (write_records, write_recordlist):
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Add DsLogAdmin::LogOffDuty to exception specification.
-
-Thu Jun 9 07:05:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerate.
-
- * orbsvcs/orbsvcs/Security.mpc:
-
- Add security_export.h to Header File section.
-
-Thu Jun 9 12:54:41 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp:
- * orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h:
- * tao/ORB_Core.h:
- * tao/ORB_Core.i:
- * tao/Profile.cpp:
- * tao/Profile.h:
- * tao/Service_Callbacks.cpp:
- * tao/Service_Callbacks.h:
-
- Changed the signature of the service callbacks is_equivalent
- hook so that a service can completely override the default
- profile comparison mechanism as required by the FT spec.
-
- This fixes bugzilla # 2137.
-
- * orbsvcs/tests/Bug_2137_Regression/Bug_2137_Regression.mpc:
- * orbsvcs/tests/Bug_2137_Regression/client.cpp:
- * orbsvcs/tests/Bug_2137_Regression/ep1.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep1_d1_g1_v1.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep1_d1_g1_v2.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep1_d1_g2_v1.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep1_d2_g1_v1.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep2.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep2_d1_g1_v1.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep2_d1_g1_v2.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep2_d1_g2_v1.ior:
- * orbsvcs/tests/Bug_2137_Regression/ep2_d2_g1_v1.ior:
- * orbsvcs/tests/Bug_2137_Regression/README:
- * orbsvcs/tests/Bug_2137_Regression/run_test.pl:
-
- Committed regression test for the above.
-
-Thu Jun 9 09:31:28 2005 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Updated with late release note submissions.
-
-Wed Jun 08 08:46:48 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO version 1.4.6 released.
-
-Wed Jun 8 11:21:50 2005 Simon McQueen <sm@prismtech.com>
-
- * NEWS:
-
- Updated with release note entries.
-
-Mon Jun 6 18:05:52 2005 unknown <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
-
- Escape more strings written to the xml file. This should fix bug 2129.
-
-Mon Jun 6 16:48:21 2005 <cleeland_c@ociweb.com>
-
- * tao/IIOP_Acceptor.cpp (create_new_profile): Reverse the order of
- comparisons so that port numbers get compared first. This
- should make comparisons marginally faster when hostnames are
- ridiculously long if the ports don't match.
-
- * tao/IIOP_Acceptor.cpp (create_shared_profile): Make port numbers
- a part of the comparison so that RTCORBA connections work
- properly.
-
-Mon Jun 6 02:10:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/TypeCode.cpp (equivalent):
-
- Pass the unaliased TypeCode to the subclass equivalent_i()
- template method instead of the potentially aliased one. Fixes
- equivalence failures between an aliased TypeCode and unaliased
- TypeCode. Thanks to Jiang Wei <jiangwei_1976 at yahoo dot com
- dot cn> for reporting the problem and providing a simple test
- case. [Bug 2140]
-
-Fri Jun 3 10:21:50 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/Any/Recursive/client.cpp:
-
- Fixed unused argument warnings in emulated exception builds.
-
- Fixed syntax errors in minimum CORBA builds.
-
-Fri Jun 3 09:17:13 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp (main):
-
- Since this code was copied from
- TAO_IIOP_Acceptor::probe_interfaces(), update this code to look
- like the code there. This was also in response to seemingly
- nonsense complaints on one platform in the line containing
- ACE_static_cast(), so hopefully the change to static_cast<>
- remedies that as well.
-
-Fri Jun 3 14:49:14 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp:
-
- This test was trying to use the old (and superior :-) ) form
- of the FT service context and was subsequently failing to
- extract the group version correctly. Fixed.
-
-Thu Jun 2 14:04:23 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
-
- Fix exception macros.
-
-Thu Jun 2 11:06:05 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
-
- Add an explicit constructor to work around BCB6 compiler
- warnings about implicit char* to string conversion.
-
-Thu Jun 2 09:10:38 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * tests/IOR_Endpoint_Hostnames/generate_ior.cpp (main): Added
- explicit OrbId to ORB_init() call to fix errors on emulated
- exception builds.
-
-Thu Jun 2 07:04:11 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerate.
-
- * orbsvcs/orbsvcs/Svc_Utils.mpc:
-
- Add svc_utils_export.h to Header File section.
-
-Thu Jun 2 09:19:50 2005 Simon McQueen <sm@prismtech.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
-
- Exception macro fix. Thanks to jmegq@radiance.com for the
- report and fix. This fixes bug #2135.
-
-Wed Jun 1 14:05:31 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/tests/ImplRepo/run_test.pl:
-
- Fix the persistent_ir test for unix platforms.
-
-Wed Jun 1 09:26:14 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
-
- More fixes for exception macros.
-
-Wed Jun 1 08:19:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Root_POA.cpp:
- Increment refcount on the servant in the id_to_servant method.
-
- * tests/POA/Identity/Identity.cpp:
- Use ServantBase_var to store the servant pointer
-
-Wed Jun 1 02:50:28 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
-
- * tests/Muxing/Receiver.h:
-
- Removed inheritance from PortableServer::RefcountServantBase
- since reference is on by default. Please see "Thu May 26
- 10:17:12 UTC 2005 Johnny Willemsen
- <jwillemsen@remedy.nl>". Many tests need to be changed
- similarly.
-
- * tests/Muxing/svc.conf:
-
- Added -ORBConnectionCacheMax option to the test.
-
-Tue May 31 22:43:10 2005 <cleeland_c@ociweb.com>
-
- * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp (main):
- * tests/IOR_Endpoint_Hostnames/generate_ior.cpp (main):
-
- Fixed warnings related to unused args or variables.
-
-Tue May 31 19:28:48 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_codegen.cpp:
- * TAO_IDL/be/be_visitor_exception/exception_ch.cpp:
- * TAO_IDL/be/be_visitor_exception/exception_cs.cpp:
- * TAO_IDL/include/utl_err.h:
- * TAO_IDL/util/utl_err.cpp:
-
- Since the typecode of a user-defined IDL exception is required
- by any IDL operation that raises it, changed the logic of the
- -St option to be ignored for user exceptions. An informative
- message is also output for each user exception encountered if
- the -St option is used. Formerly, the simultaneous appearance
- of -St and user exceptions would be made apparent only by a
- C++ compile failure.
-
- * docs/compiler.html:
-
- Updated IDL compiler documentation to reflect the above change.
-
-Tue May 31 10:08:27 2005 Justin Michel <michel_j@ociweb.com>
-
- * tao/IIOP_Endpoint.cpp:
-
- Add ACE_UNUSED_ARG for variable only used in assert.
-
-Tue May 31 09:19:10 2005 Chris Cleeland <cleeland@ociweb.com>
-
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp (dotted_decimal_address):
-
- Removed '#if 0' bracketing around this method. I don't know why
- this method was removed in the first place, but the originator
- of that change is unavailable for consultation for the next
- week, so I will err on the side of making things compile.
-
- * tests/IOR_Endpoint_Hostnames/IOR_Endpoint_Hostnames.mpc:
- * tests/IOR_Endpoint_Hostnames/bogus_i.h:
-
- Fixed fuzz build errors related to RCS Id strings and MSC
- version checks, etc.
-
-Tue May 31 09:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORBInitializer_Registry.cpp:
- Reverted my change of Mon May 30 13:14:12 UTC 2005. With my change
- we are 3.0.3 corba compliant but this is not usable for our users.
- The draft 3.1 seems to describe the wanted behaviour better. I keep
- the regression test in the archive, the bugzilla entry is reopened.
- We will look at bug 2088 again
-
-Mon May 30 22:19:54 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu>
-
- * tao/Transport.h (post_connect_hook):
- * tao/Transport.cpp:
-
- Added post_connect_hook () method which is invoked just after
- connection establishment (or after a connection is fetched from
- cache). The return value signifies whether the invoker should
- proceed with post connection establishment
- activities or not. There are a wide range of use cases, for
- example protocols like SSLIOP need this to verify whether
- connections already established have valid
- certificates. Validation of certificates/credentials can be done
- inside this method. Implementations of this method can even
- tear down the connection, and return a false to the
- invoker. There are no pre_connect_hooks () since the transport
- doesn't exist before a connection establishment. :-). A default
- noop implementation has been provided.
-
- * tao/Transport_Connector.cpp:
-
- Invoke post_connect_hook () after grabbing a connection from
- cache.
-
-Mon May 30 22:11:35 2005 Chris Cleeland <cleeland@ociweb.com>
-
- * tests/IOR_Endpoint_Hostnames/bogus_i.cpp:
- * tests/IOR_Endpoint_Hostnames/generate_ior.cpp:
-
- Fix ACE_RCSID macro usage that prevented compilation.
-
-Mon May 30 18:27:22 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/include/ast_module.h:
- * TAO_IDL/include/utl_scope.h:
- * TAO_IDL/util/utl_scope.cpp:
-
- Fixed discrepancies in the signature of look_in_previous()
- between the no-op UTL_Scope version and the AST_Module
- version. These discrepancies were causing warnings with
- the Borland compiler.
-
-Mon May 30 10:23:27 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (get_log_qos, set_log_qos):
-
- Fixed compilation on systems where new() does not throw an
- exception on failure (i.e. ACE_NEW_THROWS_EXCEPTIONS is not
- set).
-
-Mon May 30 13:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Bug_2088/*:
- Added a regression for bugzilla bug 2088. When an ORBInitializer
- throws an exception, this should be ignored and the next
- ORBInitializer should be called. Previously an exception was
- propagated back to the caller of ORB::init(). See also 21.7.3.1
- of the corba spec.
-
- * tao/ORBInitializer_Registry.cpp:
- Fixed bug 2088, catch exceptions locally.
-
-Mon May 30 12:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Cleanup_Func_Registry.h:
- Removed not needed friend classes
-
-Sat May 28 08:59:32 2005 Emre Turkay <turkaye@dre.vanderbilt.edu>
-
- * tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc:
-
- Now there is an mpb file in ACE_MPC for the boost related
- settings. Changed the mpc base project accordingly.
-
-Fri May 27 20:14:56 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (check_grammar):
-
- Changed to accept TCL, ETCL, and EXTENDED_TCL like the
- Notification Service.
-
-Fri May 27 15:19:57 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp:
- * orbsvcs/orbsvcs/Log/Log_i.h:
-
- Changed class to store a single QoS property instead of list, as
- the currently specified properties are mutually exclusive. This
- greatly simplifies the get_log_qos and set_log_qos methods.
-
- Changed set_log_qos to return all of the unknown/unsupported QoS
- properties when throwing the UnsupportedQoS exception.
-
-Fri May 27 17:01:24 2005 Chris Cleeland <cleeland_c@ociweb.com>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
- * tao/IIOP_Connection_Handler.cpp:
-
- Corrected a problem whereby, when listen points received in a
- bidirectional context get processed, the key for the entry made
- in the transport cache was created using the receiver's notion
- of whether dotted decimal addresses (-ORBDottedDecimalAddresses)
- should be used, rather than how the listen points were sent by
- the sender. In doing so, when, for example, a CORBA server was
- using -ORBDottedDecimalAddresses and the client was not, the
- client's listen point got cached using its IP address rather
- than its hostname. However, all the IORs distributed by the
- client would use the hostname, and, thus, the server would not
- be able to find a match for the client's endpoint in its cache,
- and subsequently try to create a new one.
-
- The change now creates an entry in the cache using, for the
- hostname portion of the key, the host name however the client
- sent the hostname. This should insure that a receiver of a
- bidirectional context will have the ability to find a match in
- the transport cache.
-
- This change supercedes the following changelog entry:
-
- Thu Sep 13 11:05:13 2001 Balachandran Natarajan <bala@cs.wustl.edu>
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
- * tao/IIOP_Connection_Handler.cpp (process_listen_point_list):
-
- When creating an IIOP Endpoint, passed in the value of the
- ORBDottedDecimal address value from the ORB_Core. This is a real
- stupid mistake :(. Added a debug statement. Thanks to Werner
- Buchert <w.buchert@medat.de> for reporting this problem.
-
- * tao/IIOP_Connection_Handler.cpp:
- * orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp:
- * tao/IIOP_Acceptor.h:
- * tao/IIOP_Acceptor.cpp:
- * tao/IIOP_Transport.cpp:
-
- Modified the IIOP Acceptor so that the behavior for the host
- identifier (hostname or IP address) that appears in IIOP
- profiles is consistent with the following:
-
- 1. value from "hostname_in_ior", if specified;
- 2. setting of -ORBDottedDecimalAddresses option
- 3. value for <hostname> used in -ORBEndpoint iiop://<hostname>
- 4. whatever TAO magically comes up with
-
- The significant change here is that previous to this change,
- numbers 1 and 2 were reversed, i.e., -ORBDottedDecimalAddresses
- took precedence over hostname_in_ior.
-
- * tests/IOR_Endpoint_Hostnames/IOR_Endpoint_Hostnames.mpc:
- * tests/IOR_Endpoint_Hostnames/bogus.idl:
- * tests/IOR_Endpoint_Hostnames/bogus_i.cpp:
- * tests/IOR_Endpoint_Hostnames/bogus_i.h:
- * tests/IOR_Endpoint_Hostnames/generate_ior.cpp:
- * tests/IOR_Endpoint_Hostnames/list_interfaces.cpp:
- * tests/IOR_Endpoint_Hostnames/run_test.pl:
-
- Added a new functionality/regression test for the change listed
- above. The run_test.pl prints out a matrix for permutations and
- expected results, and indicates whether each permutation
- succeeds or fails. It also depends upon a new option to catior,
- found in the next entry.
-
- * orbsvcs/tests/Security/BiDirectional/server.conf:
-
- Removed some hardcoded paths to OCI personal home directories.
-
- * utils/catior/catior.cpp:
-
- Added a "-x" option that works like "-f" except that it reads
- the IOR from standard input (stdin or cin) rather than from a
- file. This makes catior much more like the unix "cat" command,
- and enables it to be used in a pipeline.
-
-Fri May 27 15:54:44 2005 Justin Michel <michel_j@ociweb.com>
-
- * docs/Options.html:
- * tao/IIOP_Connector.cpp:
- * tao/IIOP_Endpoint.h:
- * tao/IIOP_Endpoint.cpp:
- * tao/IIOP_Profile.cpp:
- * tao/params.cpp:
-
- Reimplemented the -ORBPreferredInterfaces option to support
- wildcards.
-
-Fri May 27 15:30:21 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/Activator_NT_Service.h:
- * orbsvcs/ImplRepo_Service/Locator_NT_Service.h:
- * tao/TypeCode_Base_Attributes.h:
- * tao/TypeCode_Case.h:
- * tao/TypeCode_Case_T.h:
- * tao/TypeCode_Struct_Field.h:
- * tao/TypeCode_Value_Field.h:
- * utils/wxNamingViewer/pch.h:
-
- These files #included config.h which isn't safe, because it
- won't necessarilly pick up the correct symbols. For example, I
- caught this by trying to build ACE on Windows with
- __ACE_INLINE__ = 0. The files that #included config.h directly
- saw that it was defined as 0, but changing them to #include
- config-all.h instead, correctly saw that the symbol was
- undefined.
-
-Fri May 27 13:12:10 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/Any/Recursive/Test.idl:
-
- Added new user exception to be used when reporting Any
- demarshaling errors.
-
- * tests/Any/Recursive/client.cpp:
-
- Fixed unused argument warnings.
-
- Use the new user exception when report Any demarshaling
- failures, instead of CORBA::INV_OBJREF.
-
-Fri May 27 08:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/POA/Default_Servant/Default_Servant.cpp:
- Slightly modified this test to test reference_to_servant with
- reference counting
-
- * tests/POA/Deactivate_Object/server.cpp:
- Added a call to reference_to_servant. This as a regression for
- a bug where we didn't increment the reference count on the
- servant before returning it.
-
- * tao/PortableServer/Root_POA.cpp (reference_to_servant_i):
- Increment the reference count on the servant before returning it.
- Thanks to Konstantinos Lykiardopoulos <klyk at intracom dot gr>
- and Lothar Werzinger <lothar at xcerla dot com> for reporting
- this problem.
-
- * tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp:
- In system_id_to_servant() don't increment the refcount on the
- servant, this is done by the POA.
-
-Fri May 27 08:36:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/Servant_Base.cpp:
- Fixed typo in comment
-
-Fri May 27 08:25:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- Fixed conversion warnings
-
-Fri May 27 00:36:32 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tests/Any/Recursive/Hello.cpp:
- * tests/Any/Recursive/Hello.h:
- * tests/Any/Recursive/README:
- * tests/Any/Recursive/RecursiveHello.mpc:
- * tests/Any/Recursive/Test.idl:
- * tests/Any/Recursive/client.cpp:
- * tests/Any/Recursive/run_test.pl:
- * tests/Any/Recursive/server.cpp:
-
- New test that verifies properly functioning recursive type Any
- insertion and extraction support. It also indirectly verifies
- that recursive TypeCode support is working.
-
-Thu May 26 16:09:50 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
-
- Functions with two or more try blocks must use ACE_TRY_EX.
-
- * orbsvcs/examples/ImR/Advanced/TestClient.cpp:
-
- Use getline() instead of operator>> to read in lines of
- text from a file into a std::string. Use string::c_str() with
- operator<< instead of relying on existence of ostream extraction
- operators for strings. A more useful solution might be to
- provide insertion/extraction operators for platforms that are
- missing them.
-
-Thu May 26 16:02:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp:
- * orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp:
- Updated for interceptor_list changes
-
-Thu May 26 14:33:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Interceptor_List.cpp:
- Fixed gnu warning
-
-Thu May 26 10:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- Made the Interceptor_List a template which is now used instead of a
- base class with derived specific list classes. This is now in the TAO
- namespace instead of using a TAO_ prefix.
-
- * tao/Interceptor_List.{h,cpp}:
- The Interceptor_List is now a template
-
- * tao/ClientRequestInterceptor_List.{h,cpp,inl}:
- * tao/ServerRequestInterceptor_List.{h,cpp,inl}:
- * tao/IORInterceptor/IORInterceptor_List.{h,cpp,inl}:
- Removed these files, we have now template instantiations instead
- of specific classes
-
- * tao/ORB_Core.{h,cpp,i}:
- Update for changes above.
-
- * tao/IORInterceptor_Adapter.h:
- Updated for interceptor list change
-
- * tao/IORInterceptor/IORInterceptor_Adapter_Impl.h:
- Updated for interceptor_list change and also implemented
- adapter_state_changed in this class because we don't have
- a specific IORInterceptor list anymore where this was
- implemented.
-
- * tao/ClientRequestInterceptor_Adapter.{h,cpp,inl}:
- Updated because of ClientInterceptorList change
-
- * PortableServer/ServerInterceptorAdapter.h:
- Updated because of ServerRequestInterceptor List change
-
- * tao/tao.mpc:
- * tao/Makefile.am:
- Updated for changes above
-
-Thu May 26 10:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- According to the latest C++ mapping, reference counting is mandatory;
- the RefCountServantBase class is now a legacy artifact. Thanks to
- Frank Pilhofer <fpilhofe at mc dot com> for reporting this.
- This fixes bugzilla [1952].
-
- * tao/Abstract_Servant_Base.{h,cpp}:
- Made the add_ref/remove_ref methods pure virtual and added
- _refcount_value
-
- * tao/PortableServer/Servant_Base.{h,cpp}:
- Added reference counting to TAO_ServantBase and removed
- TAO_RefCountServantBase
-
- * tao/PortableServer/PS_ForwardC.h:
- Make RefCountServantBase a noop struct
-
- * tao/PortableServer/diffs/PS_Forward.diff:
- Updated
-
-Thu May 26 09:23:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Profile.h:
- Removed commented out code
-
- * tao/QtResource_Factory.h:
- Doxygen improvement
-
-Thu May 26 08:53:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Portable_Interceptors/Collocated/Dynamic/interceptors.cpp:
- Retrieve the object_id in the receive_request. According to
- Konstantinos Lykiardopoulos <klyk at intracom dot gr> this failed
- with the 1.4.5 release of TAO but it works now again. Added this
- as regression so that we don't have a problem in the future again
-
-Thu May 26 07:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ImR_Client/ImplRepo.pidl:
- * tao/ImR_Client/ServerObject.pidl:
- Updated regeneration instructions
-
-Thu May 26 07:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableServer/LifespanStrategyPersistent.cpp:
- Also add a process directive that uses the xml svc.conf way of
- specifying this. This fixes bugzilla 2127. Thanks to Lothar
- Werzinger <lothar at xcerla dot com> for reporting this.
-
-Wed May 25 23:42:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp:
- * orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp:
-
- Changed to pass the ORB pointer to the factories' activate()
- method.
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp:
- Changed to pass the ORB pointer to the factory's init() method.
-
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
- * orbsvcs/orbsvcs/Log/BasicLogFactory_i.h
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp
- * orbsvcs/orbsvcs/Log/EventLogFactory_i.h
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp
- * orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h
-
- Changed to stash away ORB pointer in the activate() method, and
- to pass it to the Log servant constructors.
-
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h
-
- Changed to stash away ORB pointer in the init() method, and to
- pass it to the RTEventLog servant constructor.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp
- * orbsvcs/orbsvcs/Log/Log_i.h
- * orbsvcs/orbsvcs/Log/BasicLog_i.cpp
- * orbsvcs/orbsvcs/Log/BasicLog_i.h
- * orbsvcs/orbsvcs/Log/EventLog_i.cpp
- * orbsvcs/orbsvcs/Log/EventLog_i.h
- * orbsvcs/orbsvcs/Log/NotifyLog_i.cpp
- * orbsvcs/orbsvcs/Log/NotifyLog_i.h
- * orbsvcs/orbsvcs/Log/RTEventLog_i.cpp
- * orbsvcs/orbsvcs/Log/RTEventLog_i.h
-
- Changed constructor to take an ORB pointer instead of a Reactor
- pointer. The latter had defaulted to use the Reactor Singleton
- instance, but using the servant ORB's reactor ensures the event
- loop will be active. Curiously, the old reactor pointer wasn't
- being used. That will change soon, as we'll be adding timer
- handlers for database flush and compaction.
-
-Wed May 25 20:21:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc:
- Use rtevent_serv as base project
-
-Wed May 25 20:17:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
- Changed order of the projects.
-
-Wed May 25 12:24:36 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/DynamicInterface/Unknown_User_Exception.h (_type):
- * tao/DynamicInterface/Unknown_User_Exception.h (_type):
-
- Renamed this method to "_tao_type" since it is meant to be an
- override for the CORBA::Exception::_tao_type() base class
- method. Addresses CORBA::UnknownUserException Any insertion
- problems.
-
-Tue May 24 21:13:46 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Invocation_Adapter.cpp (invoke_collocated_i):
-
- Updated ACE_ASSERT condition to reflect new thru POA case.
- Thanks to Lothar Werzinger for reporting the assertion.
-
-Tue May 24 19:57:43 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/Event_Service/Makefile.am:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am:
- * orbsvcs/performance-tests/RTEvent/lib/Makefile.am:
- * orbsvcs/tests/EC_Custom_Marshal/Makefile.am:
- * orbsvcs/tests/EC_MT_Mcast/Makefile.am:
- * orbsvcs/tests/EC_Mcast/Makefile.am:
- * orbsvcs/tests/EC_Multiple/Makefile.am:
- * orbsvcs/tests/EC_Throughput/Makefile.am:
- * orbsvcs/tests/Event/Basic/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Common/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Complex/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Simple/Makefile.am:
- * orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am:
- * orbsvcs/tests/Event/Performance/Makefile.am:
- * orbsvcs/tests/Event/lib/Makefile.am:
- * orbsvcs/tests/FtRtEvent/Makefile.am:
-
- Regenerate for removal of RTOLDEvent and split of RTEvent
- libraries.
-
- * orbsvcs/Time_Service/Makefile.am:
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerate for change below.
-
- * orbsvcs/orbsvcs/CosTime.mpc:
-
- Inherit from svc_utils.
-
- * orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp:
-
- Use new ORBSVCS_Time::Time_Value_to_TimeT() method from the
- Svc_Utils library to convert timestamp to a TimeBase::TimeT.
-
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp:
- * orbsvcs/orbsvcs/Log/NotifyLogConsumer.h:
-
- The specification requires that a structured or typed event
- should be stored as an Any as specified by the Notification
- Service, so connect to the channel as an Any consumer.
-
-Tue May 24 14:29:14 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
-Tue May 24 14:15:36 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/RTEvent.mpc:
- * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
- * orbsvcs/orbsvcs/RTEvent_Skel.mpc:
-
- Removed RTEvent MPC group. This causes problems when project
- Makefile.am's are aggregated.
-
-Tue May 24 11:59:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Time_Utilities.cpp:
- * orbsvcs/orbsvcs/Time_Utilities.h:
- * orbsvcs/orbsvcs/Time_Utilities.i:
-
- Updated comments to Doxygen format.
-
- Added new methods for converting absolute timestamps between
- ACE_Time_Value and TimeBase::TimeT.
-
-Tue May 24 10:32:31 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
-
- Regenerated.
-
-Tue May 24 10:58:53 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
-
- Add missing include.
-
-Tue May 24 09:47:52 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
-
- Disable fuzz check, because it can't detect the try/catch
- in the calling function.
-
-Tue May 24 09:14:57 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/examples/ImR/Advanced/TestServer.h:
- * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
-
- This example was simply copied from 1.4a, and I forgot to make
- the adjustments required by the POA refactoring.
-
- * tao/ImR_Client/ImplRepoC.h:
-
- The ImplRepo.pidl had #include ServerObject.pidl, but didn't include
- ServerObjectC.h. For now, I manually added the include, but this isn't
- a final solution.
-
-Mon May 23 14:50:27 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/examples/ImR/Advanced/Advanced.mpc:
-
- Changed from requires += exceptions to inheriting from exceptions. Hopefully
- this will eliminate fuzz errors.
-
-Mon May 23 18:47:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * docs/tutorials/Quoter/RT_Event_Service/Quoter_RT_Event_Service.mpc:
- Updated for RTEvent library split
-
-Mon May 23 18:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Simulator/Event_Supplier/Event_Supplier.mpc:
- Updated for RTEvent library split
-
-Mon May 23 13:24:41 2005 Justin Michel <michel_j@ociweb.com>
-
- * tao/ImR_Client/ImplRepo.pidl:
- * tao/ImR_Client/ImplRepoA.cpp:
- * tao/ImR_Client/ImplRepoC.h:
- * tao/ImR_Client/ImplRepoC.inl:
- * tao/ImR_Client/ImplRepoC.cpp:
- * tao/ImR_Client/ImplRepoS.h:
- * tao/ImR_Client/ImplRepoS.cpp:
-
- Re-added the -GA option and updated the command in the pidl to save
- footprint for static builds.
-
-Mon May 23 18:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.{h,cpp}:
- Fixed service config macros
-
-Mon May 23 12:38:31 2005 Justin Michel <michel_j@ociweb.com>
-
- * orbsvcs/ImplRepo_Service/Activator_Options.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Activator.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Activator.idl:
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.h:
- * orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Locator.cpp:
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.h:
- * orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp:
- * orbsvcs/ImplRepo_Service/Locator_Options.h:
- * orbsvcs/ImplRepo_Service/Locator_Options.cpp:
- * orbsvcs/ImplRepo_Service/Locator_Repository.h:
- * orbsvcs/ImplRepo_Service/Locator_Repository.cpp:
- * orbsvcs/ImplRepo_Service/README.txt:
- * orbsvcs/ImplRepo_Service/tao_imr_i.h:
- * orbsvcs/ImplRepo_Service/tao_imr_i.cpp:
- * tao/ImR_Client/ImR_Client.cpp:
- * tao/ImR_Client/ImplRepo.pidl:
- * tao/ImR_Client/ImplRepoC.h:
- * tao/ImR_Client/ImplRepoC.inl:
- * tao/ImR_Client/ImplRepoC.cpp:
- * tao/ImR_Client/ImplRepoS.h:
- * tao/ImR_Client/ImplRepoS.cpp:
-
- Several bug fixes and enhancments to the ImR.
- Cleaned up the perl to use strict and compile without warnings.
- Displayed a message that the poa was being registered with the
- ImR even when -orbuseimr 0 was specified.
- Stop printing the exception details for unexpected exceptions
- that happen during a call to server->shutdown(). At least on
- windows, we often get COMM_FAILURE or TRANSIENT, because the
- socket is not shutdown gracefully by the server.
- Don't print the exception when a TRANSIENT is received while
- pinging the server. This is not an error. Not sure why we were
- getting 'No usable profile in IOR' messages though, when we
- expect a 'POA in holding state'.
- Merge in changes to support ImplRepo_Service -e, which
- will clear the repository on startup. This makes it easier to write
- persistence tests, and might be useful in general.
- Updated to automatically set the ImplRepoServiceIOR and
- TAO_USE_IMR environment variables, obviating the need to pass
- -orbuseimr or -orbinitref ImplRepoService=... when using an
- Activator to start a server.
- Add -orbuseimr 0 to the cmd line args, so that the TAO_USE_IMR=1
- environment variable can be used safely.
- Fix incorrect exception specifications in activator.
- Fix command line help descriptions.
- Combine add/update operations in the imr and imr util.
- Support clean shutdown using ctrl-c as well as the
- imr util shutdown-repo command.
- Add detection of server process death, and an option to
- notify the ImR when this happens, to the activator.
- Fix some problems with exception macros and unused vars.
- Fix bug with case-insensitive activator name and binary persistence.
-
-
- * orbsvcs/examples/ImR/Advanced/Advanced.mpc:
- * orbsvcs/examples/ImR/Advanced/Manager.idl:
- * orbsvcs/examples/ImR/Advanced/Manager_i.h:
- * orbsvcs/examples/ImR/Advanced/Manager_i.cpp:
- * orbsvcs/examples/ImR/Advanced/Messenger.idl:
- * orbsvcs/examples/ImR/Advanced/Messenger_i.h:
- * orbsvcs/examples/ImR/Advanced/Messenger_i.cpp:
- * orbsvcs/examples/ImR/Advanced/README:
- * orbsvcs/examples/ImR/Advanced/TestClient.h:
- * orbsvcs/examples/ImR/Advanced/TestClient.cpp:
- * orbsvcs/examples/ImR/Advanced/TestServer.h:
- * orbsvcs/examples/ImR/Advanced/TestServer.cpp:
- * orbsvcs/examples/ImR/Advanced/client_main.cpp:
- * orbsvcs/examples/ImR/Advanced/drivers/all:
- * orbsvcs/examples/ImR/Advanced/drivers/defaults:
- * orbsvcs/examples/ImR/Advanced/drivers/environment:
- * orbsvcs/examples/ImR/Advanced/drivers/invocation:
- * orbsvcs/examples/ImR/Advanced/drivers/persistence:
- * orbsvcs/examples/ImR/Advanced/drivers/retry:
- * orbsvcs/examples/ImR/Advanced/drivers/use_environment:
- * orbsvcs/examples/ImR/Advanced/drivers/use_invocation:
- * orbsvcs/examples/ImR/Advanced/drivers/use_persistence:
- * orbsvcs/examples/ImR/Advanced/manager_main.cpp:
- * orbsvcs/examples/ImR/Advanced/run_test.pl:
- * orbsvcs/examples/ImR/Advanced/server_main.cpp:
-
- Dave Giovannini's new test which provides greater
- coverage of ImR features. Some tests are still failing, so
- this is not ready to be enabled for nightly builds.
-
- * orbsvcs/orbsvcs/IOR_Multicast.cpp:
-
- Fixed bug in unregistration, and updated log messages
- to show the name of the class and method being logged.
-
- * orbsvcs/orbsvcs/Notify/XML_Saver.h:
- * orbsvcs/orbsvcs/Notify/XML_Saver.cpp:
-
- Updated to use the new ACEXML_escape_string() function.
-
- * orbsvcs/orbsvcs/Shutdown_Utilities.h:
- * orbsvcs/orbsvcs/Shutdown_Utilities.cpp:
-
- Updated to work on Windows.
-
- * orbsvcs/tests/ImplRepo/airplane_server_i.h:
- * orbsvcs/tests/ImplRepo/airplane_server_i.cpp:
- * orbsvcs/tests/ImplRepo/locked/run_test.pl:
- * orbsvcs/tests/ImplRepo/nestea_server_i.h:
- * orbsvcs/tests/ImplRepo/nestea_server_i.cpp:
- * orbsvcs/tests/ImplRepo/run_test.pl:
- * orbsvcs/tests/ImplRepo/scale/server_i.cpp:
-
- Basic code cleanup to match latest 1.4a.
- Some tests were not shutting down correctly, and were
- activating the poa manager too soon.
- Nestea test prints the contents of ImplRepoServiceIOR and TAO_USE_IMR.
- Stop passing -orbuseimr 1 and imr_init_ref in the command lines
- registered with the ImR.
-
-
- * orbsvcs/tests/Notify/Reconnecting/run_test.pl:
-
- Use -ORBObjRefStyle URL so that the XML file has consistent
- contents, and can be compared for equality. This should let this
- test pass on more (all?) platforms.
-
- * tao/ORB_Core.cpp:
-
- Add missing support for -ORBObjRefStyle IOR.
-
- * tao/ImR_Client/ImplRepoA.cpp:
-
- Removed this file, because the idl command line wasn't set to generate it.
-
-
-Mon May 23 06:12:01 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::remove_old_records):
-
- Fixed typo introduced in last change.
-
-Mon May 23 12:27:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2119_Regression/test.mpc:
- Simplified this mpc file
-
-Mon May 23 11:08:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Event/ECG_Adapters.h:
- * orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h:
- * orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h:
- * orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h:
- * orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_EH.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h:
- * orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h:
- * orbsvcs/orbsvcs/Event/EC_And_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Basic_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h:
- * orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h:
- * orbsvcs/orbsvcs/Event/EC_ConsumerControl.h:
- * orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp
- * orbsvcs/orbsvcs/Event/EC_Default_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h:
- * orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h:
- * orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel.h:
- * orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h:
- * orbsvcs/orbsvcs/Event/EC_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h:
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h:
- * orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Negation_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Null_Factory.h:
- * orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h:
- * orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h:
- * orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h:
- * orbsvcs/orbsvcs/Event/EC_ProxySupplier.h:
- * orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h:
- * orbsvcs/orbsvcs/Event/EC_QOS_Info.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h:
- * orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h:
- * orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h:
- * orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h:
- * orbsvcs/orbsvcs/Event/EC_SupplierControl.h:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h:
- * orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_Type_Filter.h:
- * orbsvcs/orbsvcs/Event/EC_UDP_Admin.h:
- * orbsvcs/orbsvcs/Event/event_export.h:
- Include the RTEvent_Serv file and updated export macro
-
- * orbsvcs/orbsvcs/RTEvent_Serv.mpc:
- * orbsvcs/orbsvcs/RTEvent_Serv.rc:
- * orbsvcs/orbsvcs/RTEvent_Skel.mpc:
- * orbsvcs/orbsvcs/RTEvent_Skel.rc:
- * orbsvcs/orbsvcs/Event/event_serv_export.h:
- * orbsvcs/orbsvcs/Event/event_skel_export.h:
- New files for the new RTEvent Serv and Skel libraries
-
- * orbsvcs/Event_Service/Event_Service.mpc:
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
- * orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc:
- * orbsvcs/examples/CosEC/RtEC_Based/lib/CosEC_RtEC_Based_lib.mpc:
- * orbsvcs/examples/Log/RTEvent/Log_RTEvent.mpc:
- * orbsvcs/examples/RtEC/IIOPGateway/RtEC_IIOPGateway.mpc:
- * orbsvcs/examples/RtEC/Kokyu/RtECKokyu.mpc:
- * orbsvcs/examples/RtEC/MCast/RtEC_MCast.mpc:
- * orbsvcs/examples/RtEC/Schedule/RtEC_Schedule.mpc:
- * orbsvcs/examples/RtEC/Simple/RtEC_Simple.mpc:
- * orbsvcs/orbsvcs/FtRtEvent.mpc:
- * orbsvcs/orbsvcs/RTCORBAEvent.mpc:
- * orbsvcs/orbsvcs/RTEvent.mpc:
- * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
- * orbsvcs/orbsvcs/RTKokyuEvent.mpc:
- * orbsvcs/orbsvcs/RTSchedEvent.mpc:
- * orbsvcs/performance-tests/RTEvent/lib/RTEC_Perf.mpc:
- * orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc:
- * orbsvcs/tests/EC_Mcast/EC_Mcast.mpc:
- * orbsvcs/tests/EC_Multiple/EC_Multiple.mpc:
- * orbsvcs/tests/EC_Throughput/EC_Throughput.mpc:
- * orbsvcs/tests/Event/Basic/rteventtestexe.mpb
- * orbsvcs/tests/Event/Mcast/Common/ECMcastTests_lib.mpc:
- * orbsvcs/tests/Event/Mcast/Complex/Complex.mpc:
- * orbsvcs/tests/Event/Mcast/Simple/Simple.mpc:
- * orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc:
- * orbsvcs/tests/Event/Performance/Event_Performance.mpc:
- * orbsvcs/tests/Event/lib/Event_lib.mpc:
- Updated because of splitted RTEvent library
-
-Mon May 23 09:14:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/EC_Custom_Marshal/run_test.pl:
- No need to specify the type of the event service anymore
-
-Mon May 23 05:44:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Event/BCU.cpp BCU.h:
- * orbsvcs/orbsvcs/Event/Debug_Macros.h:
- * orbsvcs/orbsvcs/Event/Dispatching_Modules.{h,cpp,i}:
- * orbsvcs/orbsvcs/Event/Event_Channel.{h,cpp,i}:
- * orbsvcs/orbsvcs/Event/Event_Manip.{h,cpp,i}:
- * orbsvcs/orbsvcs/Event/Fast_Reactor.h
- * orbsvcs/orbsvcs/Event/GPlot_File.{h,cpp,i}:
- * orbsvcs/orbsvcs/Event/Local_ESTypes.{h,cpp}:
- * orbsvcs/orbsvcs/Event/Memory_Pools.{h,cpp,i}:
- * orbsvcs/orbsvcs/Event/Module_Factory.{h,cpp}:
- * orbsvcs/orbsvcs/Event/old_event_export.h:
- * orbsvcs/orbsvcs/Event/ReactorTask.{h,cpp}:
- * orbsvcs/orbsvcs/Event/RT_Task.{cpp,h,i}:
- * orbsvcs/orbsvcs/Event/Timer_Module.{h,cpp,i}:
- Removed the old RTEvent implementation. This is already deprecated
- for years. This fixes bugzilla bug 2047
-
- * orbsvcs/orbsvcs/Event_Service_Constants.h:
- Removed the constants that are for the old ec
-
-Mon May 23 05:35:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/Event_Service/Event_Service.{h,cpp}:
- Removed module_factory_, it was for the old ec
-
-Mon May 23 05:31:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/Simulator/Event_Supplier/DualEC_Sup.cpp:
- Fixed casing of include
-
-Sun May 22 22:10:00 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp (display_records)
- (delete_records):
-
- Changed query language parameter from "TCL" to "EXTENDED_TCL".
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (QUERY_LANG_SUPPORTED_BY_LOG):
-
- Changed from "TCL" to "EXTENDED_TCL".
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::delete_records_by_id)
- (TAO_Log_i::delete_records, TAO_Log_i::remove_old_records):
-
- Don't bother checking whether current_size is less than max_size
- if not log_full. Avoids potentially costly calls into log store
- (if/when we support strategized stores).
-
-Sun May 22 18:02:07 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::delete_records)
- (TAO_Log_i::remove_old_records):
-
- Like delete_records_by_id(), reset "log_full" if "current_size"
- is less than "max_size".
-
-Sun May 22 17:01:56 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::scheduled):
-
- Removed duplicate fetch of current time.
-
- * orbsvcs/orbsvcs/Log/Log_i.cpp (TAO_Log_i::remove_old_records):
-
- Corrected calculation of purge time. Arithmetic was being done on
- time values without normalizing units first.
-
-Sun May 22 16:37:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerated.
-
-Sun May 22 20:16:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.{cpp,h}:
- * orbsvcs/Event_Service/Event_Service.{h,cpp}:
- * orbsvcs/tests/EC_Throughput/ECT_Throughput.{h,cpp}:
- * examples/Simulator/Event_Supplier/DualEC_Sup.{h,cpp}:
- * orbsvcs/tests/Event/lib/Driver.{h,cpp}:
- * orbsvcs/examples/RtEC/Kokyu/Service.cpp:
- * orbsvcs/examples/RtEC/Schedule/Service.cpp:
- Removed support for the old rt event service, this will be removed
- soon.
-
- * orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc:
- Removed not needed includes
-
- * orbsvcs/Event_Service/Event_Service.mpc:
- * orbsvcs/tests/EC_Throughput/EC_Throughput.mpc:
- * orbsvcs/examples/RtEC/Schedule/RtEC_Schedule.mpc:
- * examples/Simulator/Event_Supplier/Event_Supplier.mpc:
- * orbsvcs/orbsvcs/RTEventLogAdmin.mpc:
- Removed rtoldevent as base project
-
- * orbsvcs/tests/EC_Throughput/run_test.pl:
- Updated because we just only have one RTEvent implementation
-
- * orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp:
- * orbsvcs/tests/Sched_Conf/Sched_Conf.cpp:
- * orbsvcs/Dump_Schedule/Dump_Schedule.cpp:
- Removed workaround for very old Sun compiler
-
- * orbsvcs/examples/RtEC/Schedule/Consumer.cpp:
- * orbsvcs/examples/RtEC/Schedule/Supplier.cpp:
- Removed empty explicit instantiation block
-
- * orbsvcs/examples/RtEC/Schedule/Service.cpp:
- * orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp:
- Removed not needed includes of old rtevent files
-
-Sun May 22 10:33:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/PortableServer/Root_POA.cpp (create_POA_i):
-
- Increment the reference count immediately after binding the
- child POA to children map. Addresses a seg fault introduced by
- the leak fix described in ChangeLog entry "Sun May 22 00:00:31
- 2005 Ossama Othman <ossama@dre.vanderbilt.edu>".
-
- * tao/PortableServer/Root_POA.h (create_POA_i):
-
- No need to return a pointer to TAO_Root_POA. Return a
- PortableServer::POA_ptr instead. Allows implementation to be
- slightly simplified.
-
-Sun May 22 14:49:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/EC_Multiple/EC_Multiple.mpc:
- * orbsvcs/tests/EC_Multiple/EC_Multiple.cpp:
- Converted this test to use the new RTEC instead of the old one
- which will be removed soon. Also removed a workaround for the Sun 4.2
- compiler which we don't support already for a long time
-
-Sun May 22 14:01:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PICurrent.h:
- Fixed warning
-
-Sun May 22 11:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ClientRequestInfo_i.h:
- * tao/ClientRequestInterceptor_Adapter.h:
- * tao/ClientRequestInterceptor_List.cpp:
- * tao/ClientRequestInterceptor_List.h:
- * tao/ClientRequestInterceptor_List.inl:
- * tao/Interceptor_List.cpp:
- * tao/Interceptor_List.h:
- * tao/Interceptor_List.inl:
- * tao/ORB_Core.h:
- * tao/PICurrent.h:
- * tao/PICurrent_Copy_Callback.h:
- * tao/PICurrent_ORBInitializer.h:
- * tao/ServerRequestInterceptor_List.cpp:
- * tao/ServerRequestInterceptor_List.h:
- * tao/ServerRequestInterceptor_List.inl:
- * tao/tao.mpc:
- * tao/PortableServer/ServerInterceptorAdapter.h:
- Moved ClientRequestInterceptor_List and
- ServerRequestInterceptor_List to their own files and updated
- includes.
-
-Sun May 22 11:54:16 2005 Olli Savia <ops@iki.fi>
-
- * tao/Collocated_Invocation.cpp:
-
- Fixed a typo in comment.
-
-Sun May 22 00:00:31 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
-
- * tao/Any.h (to_object, to_abstract_base, to_value):
-
- Made these constructors explicit, in keeping with the CORBA spec
- since it requires that the other "to_" helper structs have
- explicit single argument constructors if supported by the C++
- compiler.
-
- * tao/PortableServer/Root_POA.cpp (create_POA_i):
-
- Do not duplicate POA returned from the other create_POA_i()
- override called in this method since we are returning it
- directly to the caller and do not need to retain ownership.
- Fixes a number of memory leaks.
-
- * tests/ORT/ObjectReferenceFactory.h:
-
- CORBA::DefaultValueRefCountBase mix-in class should be the last
- in the inheritance chain. Addresses potential memory leaks.
-
- * tests/Param_Test/options.cpp:
- * tests/Param_Test/options.h:
-
- Store the test IOR in a CORBA::String_var and drop the explicit
- calls to CORBA::string_free(). Simplifies memory management and
- fixes a memory leak.
-
-Sat May 21 18:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Profile.cpp:
- Fixed unused argument warning when messaging is disabled.
-
-Sat May 21 18:34:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tests/Bug_2124_Regression/Bug_2124_Regression.mpc:
- Use taoserver as base project to fix unresolved link errors
-
-Fri May 20 20:47:00 2005 Huang-Ming Huang <hh1@cse.wustl.edu>
-
- * tao/MProfile.cpp:
- * tao/Profile.h:
- * tao/Profile.cpp
- * tao/Stub.cpp:
-
- Removed the association of TAO_Profile to TAO_Stub. This allows an
- instance of TAO_Profile to be shared between different TAO_MProfile
- objects.
-
-Fri May 20 16:51:35 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.cpp (TAO_LogRecoreStore::log):
- * orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp:
-
- Use "%d" instead of "%Q" log format directive for ACE_UINT64_TO_U32
- parameter.
-
- * orbsvcs/orbsvcs/Log/LogRecordStore.cpp (TAO_LogRecordStore::update):
- * orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp:
-
- Subtract size of existing record and Add size of new record to
- current size.
-
-Fri May 20 16:44:54 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * tao/Makefile.am:
-
- Regenerated.
-
-Fri May 20 17:10:00 2005 Huang-Ming Huang <hh1@cse.wustl.edu>
-
- * tao/IIOP_Endpoint:
-
- Fixed problem in TAO_IIOP_Endpoint::is_preferred_network()
- which should check for empty string rather than null pointer.
-
-Fri May 20 17:00:00 2005 Huang-Ming Huang <hh1@cse.wustl.edu>
-
- * tao/PortableServer/ServantRetentionStrategyRetain.cpp:
-
- Fixed problem in ServantRetentionStrategyRetain::find_servant()
- where servant_upcall.user_id is assigned to a local variable which
- causes memory access violation when ServerReqeustInfo::object_id()
- is accessed inside interceptors.
-
-Fri May 20 18:30:23 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_operation/operation.cpp:
- * TAO_IDL/be/be_visitor_tmplinst/tmplinst_cs.cpp:
- * TAO_IDL/be/be_visitor_tmplinst/tmplinst_ss.cpp:
-
- Added global '::' qualifier to several instances of code
- generation of a scoped name used as a template argument,
- to avoid ambiguity if there are two modules with the same
- name at different levels of nesting. This fix closes
- [BUGID:2125].
-
- * tests/IDL_Test/array.idl:
- * tests/IDL_Test/nested_scope.idl:
- * tests/IDL_Test/typedef.idl:
-
- Added various IDL snips provided by Simon McQueen
- <sm@prismtech.com> in various (now closed) Bugzilla entries.
-
-Fri May 20 12:13:13 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/Naming_Service/NT_Naming_Service.h:
- * orbsvcs/Naming_Service/NT_Naming_Service.cpp:
-
- Fixed build problems with Visual C++ 6 on Windows
-
-Fri May 20 15:22:42 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_sh.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_ss.cpp:
-
- Changed the copy constructor for generated skeleton-side
- valuetype classes private and unimplemented. Skeleton
- code is generated for valuetypes only if they support a
- concrete interface. However, these valuetypes also inherit
- from the stub-side valuetype class, which has a private
- unimplemented copy constructor. This fact makes it
- problematic to generate a valid copy constructor for the
- skeleton-side class, since C++ (and many compilers) require each
- base class copy constructor to be called in the
- initialization list.
-
-Fri May 20 15:40:17 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/ORB_Core.i:
-
- Further to Fri May 20 11:27:02 2005 Simon McQueen:
- I forgot to commit the accessor implementation. Not
- my finest hour.
-
-Fri May 20 14:19:08 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/ast/ast_array.cpp:
-
- Arrays need to take on the "constructed ?" status of the
- type they are an array of as they do with the size type.
-
- This fixes bug #2126.
-
- * tests/Bug_2126_Regression/Bug_2126_Regression.mpc:
- * tests/Bug_2126_Regression/README:
- * tests/Bug_2126_Regression/test.cpp:
- * tests/Bug_2126_Regression/Test.idl:
-
- A regression test for the above fix.
-
-Fri May 20 12:38:34 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_visitor_arg_traits.cpp:
-
- Check for alias before bailing out of ::visit_string.
-
- This fixes bug #2124.
-
- * tests/Bug_2124_Regression/Bug_2124_Regression.mpc:
- * tests/Bug_2124_Regression/README:
- * tests/Bug_2124_Regression/test.cpp:
- * tests/Bug_2124_Regression/Test.idl:
-
- A regression test for the above fix.
-
-Fri May 20 10:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/Current.pidl:
- Updated header to doxygen style and removed remark about patching
- generated files, this is not needed anymore
-
-Fri May 20 11:27:02 2005 Simon McQueen <sm@prismtech.com>
-
- * tao/ORB_Core.cpp:
- * tao/ORB_Core.h:
-
- Add orb init option -ORBIMREndpointsInIMR to allow control over
- whether the ImR enpoint is encoded into persistent policy object
- refs whhen the POA has been registered with the ImR. Default is true.
-
- * tao/PortableServer/Root_POA.cpp:
-
- Check whether the above property is set before encoding ImR location
- in preference to the local listener address into object references.
-
- * docs/Options.html:
-
- Document the above new option.
-
- This fixes bug #2123.
-
-Fri May 20 08:55:03 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_visitor_arg_traits.cpp:
-
- Generate a guard macro definition based upon the bound length
- and local name of bound strings to prevent duplicate definitions
- when a string of the same length is defined with the same name
- in two different scopes.
-
- This fixes bug #2122.
-
- * tests/Bug_2122_Regression/Bug_2122_Regression.mpc:
- * tests/Bug_2122_Regression/README:
- * tests/Bug_2122_Regression/test.cpp:
- * tests/Bug_2122_Regression/Test.idl:
-
- A regression test for the above.
-
-Thu May 19 11:52:39 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * orbsvcs/examples/CosEC/TypedSimple/Country_i.cpp:
-
- Fixed emulated exception usage.
-
-Thu May 19 15:03:45 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/ast/ast_module.cpp:
- * TAO_IDL/include/ast_module.h:
-
- Modified look_in_previous() by adding a boolean parameter to
- optionally ignore forward declared types when iterating
- over the declarations in previous openings of a module. This
- new parameter is false by default, so that ordinary lookups
- will behave as always. In AST_Module::referenced() however,
- the argument is passed as true explicitly, to avoid
- redefinition errors for forward delcared types that appear
- in an opening of a module previous to the one in which they
- are fully defined, and also referenced before the full
- definition appears. Thanks to Aaron <crackajaxx@gmail.com>
- for reporting the problem and sending example IDL files>.
-
- * tests/IDL_Test/full.idl:
-
- Cosmetic changes.
-
-Thu May 19 09:42:22 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/tests/Trading/Trading.mpc:
-
- I accidentally removed the utils base project from 3 of the
- projects in this mpc file.
-
-Thu May 19 08:55:36 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/tests/Security/BiDirectional/server.cpp:
-
- Added an include file for ACE_OS::fopen() to fix VC6 build
- errors.
-
- * orbsvcs/tests/Security/BiDirectional/test_i.cpp:
-
- Changed reference to a non-existent test_i.i file to fix
- problems with builds that do not have inline.
-
-Thu May 19 00:55:20 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/Valuetype/ValueFactory_Map.cpp (instance):
- * tao/Valuetype/ValueFactory_Map.h (instance):
-
- Avoid multiple singleton instances by hiding singleton
- template instance behind this new static method. See
- TSS_Resources.* changes below for additional details.
-
-Thu May 19 00:29:35 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * tao/TSS_Resources.cpp (instance):
- * tao/TSS_Resources.h (instance):
-
- Hide TAO_TSS_Singleton behind new TAO_TSS_Resources::instance()
- method. Addresses multiple TAO_TSS_Singleton instances on
- platforms/compilers that support symbol hiding, but for which we
- do not yet have an appropriate *_SINGLETON_DECLARATION() macro,
- such as g++ 4.0. Fixes problems where an incorrect singleton
- instance is returned to the caller.
-
- Removed unnecessary zero pointer check before operator delete()
- call. Calling operator delete() on a zero pointer is perfectly
- valid.
-
-Wed May 18 16:23:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_valuetype/valuetype_ci.cpp:
- * TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp:
-
- Moved generated virtual methods out of line. Inlining them
- causes RTTI problems when the stubs are compiled with g++ 4.0's
- "-fvisibility-inlines-hidden" command line option, and the
- classes in the stubs are exported from a DSO/DLL.
-
- * tao/Messaging/MessagingC.cpp:
- * tao/Messaging/MessagingC.inl:
- * tao/ObjRefTemplate/Default_ORTC.cpp:
- * tao/ObjRefTemplate/Default_ORTC.inl:
- * tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp:
- * tao/ObjRefTemplate/ObjectReferenceTemplateC.inl:
- * tao/Valuetype/AbstractBase.cpp:
- * tao/Valuetype/AbstractBase.inl:
- * tao/Valuetype/Sequence_T.cpp:
- * tao/Valuetype/Sequence_T.inl:
-
- Moved virtual methods out of line. See above for the motivation
- behind these changes.
-
- * tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h:
-
- Moved preprocessor "#else" to the first column for portability
- reasons.
-
- * tao/PortableServer/ORT_Adapter_Factory.cpp:
- * tao/PortableServer/ORT_Adapter_Factory.h (ORT_Adapter_Factory):
-
- Added a virtual destructor. Even though this class only defines
- an interface, an out-of-line virtual destructor is necessary to
- avoid dynamic_cast<> failures when using g++ 4.0's
- -fvisibility-inlines-hidden command line option. Apparently the
- compiler generated destructor is inlined.
-
-Wed May 18 14:56:37 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/Makefile.am:
- * tao/Makefile.am:
-
- Regenerated.
-
-Wed May 18 15:03:15 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/tests/Security/BiDirectional/Secure_BiDir.mpc:
-
- Renamed the BiDirectional.mpc to avoid build problems on Windows
- platforms, caused by duplicate (case-insensitive) project names.
- It conflicts with tests/BiDirectional/BiDirectional.mpc
-
- * orbsvcs/tests/Security/BiDirectional/BiDirectional.mpc:
-
- Removed this file.
-
-Wed May 18 14:38:15 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/Naming_Service/NT_Naming_Service.h:
-
- Fixing a build problem with Borland on Windows.
-
-Wed May 18 13:05:48 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * tao/Transport_Cache_Manager.cpp:
-
- Reverted changes that added printing of the stringified
- endpoint address, because it is not possible to pre-determine
- the lenght of the character representation for all protocols'
- endpoints. Thanks Johny and Ossama.
-
-Wed May 18 17:13:53 2005 Simon McQueen <sm@prismtech.com>
-
- * TAO_IDL/be/be_visitor_valuetype/field_ch.cpp:
- * TAO_IDL/be_include/be_visitor_valuetype/field_ch.h:
-
- Make valuetype anonymous private sequence member definitions
- public rather than private.
-
- This fixes Bugzilla #2119.
-
- * tests/Bug_2119_Regression/README:
- * tests/Bug_2119_Regression/test.idl:
- * tests/Bug_2119_Regression/test.mpc:
-
- Regression test for the above.
-
- * tao/Synch_Invocation.cpp:
-
- Add COMM_FAILURE to the list of SystemExceptions that can be
- retried in a fault tolerant configuration.
-
- This fixes Bugzilla #2118.
-
-Wed May 18 10:29:33 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * tao/Transport_Cache_Manager.cpp:
- Fixed Borland build problems and some stylistic improvements
- to logging.
-
-Wed May 18 15:28:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PIForwardRequest.pidl:
- Fixed fuzz error
-
-Wed May 18 13:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/ORB.h:
- Doxygen improvement
-
-Wed May 18 12:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/corba.h:
- Removed duplicate includes
-
-Wed May 18 12:00:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/PortableInterceptor.pidl:
- Moved several interfaces to their own file
-
- * tao/ClientRequestInterceptor.pidl:
- * tao/Interceptor.pidl:
- * tao/PIForwardRequest.pidl:
- * tao/ServerRequestInterceptor.pidl:
- New files, contains parts of the original PortableInterceptor.pidl
-
- * tao/ClientRequestInterceptorA.cpp:
- * tao/ClientRequestInterceptorC.cpp:
- * tao/ClientRequestInterceptorC.h:
- * tao/ClientRequestInterceptorS.h:
- * tao/InterceptorA.cpp:
- * tao/InterceptorC.cpp:
- * tao/InterceptorC.h:
- * tao/InterceptorS.h:
- * tao/PIForwardRequestA.cpp:
- * tao/PIForwardRequestC.cpp:
- * tao/PIForwardRequestC.h:
- * tao/PIForwardRequestS.h:
- * tao/PortableInterceptorA.cpp:
- * tao/PortableInterceptorC.cpp:
- * tao/PortableInterceptorC.h:
- * tao/PortableInterceptorS.h:
- * tao/ServerRequestInterceptorA.cpp:
- * tao/ServerRequestInterceptorC.cpp:
- * tao/ServerRequestInterceptorC.h:
- * tao/ServerRequestInterceptorS.h:
- Mew generated files
-
- * tao/tao.mpc:
- Added new files
-
- * tao/diffs/PortableInterceptor.diff:
- Removed, not needed anymore
-
- * tao/diffs/ServerRequestInterceptor.diff:
- New diff file
-
-Wed May 18 06:56:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Security/BiDirectional/BiDirectional.mpc:
- Give this project an unique name so that MPC doesn't complain about
- duplicate names
-
- * orbsvcs/tests/Security/BiDirectional/test.idl:
- Converted documentation to doxygen style
-
-Tue May 17 15:55:35 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- * orbsvcs/Naming_Service/NT_Naming_Service.{h,cpp}:
-
- For Windows platforms, changed how the handle_control() stops
- the ORB. Instead of having to explicitly stop the reactor loop
- it only needs to call ORB::shutdown(). This also avoids a
- potential race condition that may occur as the ORB gets
- destroy()-ed between the two calls. Added an AutoFinalizer
- class, whose destructor notifies the Windows SCM by calling
- ACE_NT_Service::report_status() when an instance goes out of
- scope. This is helpful in the presence of unexpected
- exceptions. This patch was forward-ported from 1.3a_p9, based
- upon RT4982.
-
- * orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp:
-
- Added ACE_TEXT_ALWAYS_CHAR ()
-
-Tue May 17 15:14:55 2005 Iliyan Jeliazkov <jeliazkov_i@ociweb.com>
-
- This change allows bi-directional policy to work with SSLIOP
- endpoints. When a server accepts a client-initiated
- connection or a listen point list, there is no data available
- about the IIOP endpoints, underlying the SSLIOP endpoints.
- There is also no data for most of the attributes of the secure
- connection. Therefore the "server" must synthesize those,
- however this can not be done correctly. The problem becomes
- evident when bi-directional policy is in effect for both
- peers: a "server" during callback, needs to use the same
- connection the "client" has initiated, but the secure endpoint
- obtained from an IOR can not yield the same hash value as the
- synthesized endpoint (from an LPL), used to cache the
- connection. Also, such endpoints can not be equivalent, in
- terms of the is_equivalent () method. The IOR from the client
- contains the real (non-synthetic) port number for the IIOP
- endpoint underlying the SSL endpoint. This causes the server
- to decide that it deals with a different endpoint and try to
- open a new connection. When the ORBs are using bi-directional
- policies and are behind a firewall, this will fail
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp:
-
- Creates an instance of the new SSLIOP_Synthetic_Endpoint,
- which it then uses to re-cache the transport.
- TAO_SSLIOP_Connection_Handler::add_transport_to_cache()
- ultimately uses the is_equivalent () method to compare
- endpoints. That method must not compare the underlying IIOP
- port numbers, because in some cases SSLIOP endpoints are
- instantiated with limited amount of information available. For
- example, when accepting a connections in server role, the
- underlying IIOP endpoint's port is unknown an is merely
- assigned to be the same as the secure port, effectively
- precludes the ability of the server to find a connection
- cached with these parameters later.
-
- * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.{h,cpp):
-
- Introduced a new SSLIOP_Synthetic_Endpoint, which relaxes the
- equivalence comparison with another SSLIOP_Endpoint to limit
- it to only hostname, SSL port and QoP.
- Changed the hash() implementation in SSLIOP_Endpoint to
- eliminate any influence the embedded IIOP endpoint has on the
- hash value. This allows the SSLIOP_Synthetic_Endpoint to hash
- just like an SSLIOP_Endpoint and makes possible that synthetic
- endpoints to be used to find previously cached transports.
-
- * orbsvcs/tests/Security/BiDirectional/BiDirectional.mpc:
- * orbsvcs/tests/Security/BiDirectional/README:
- * orbsvcs/tests/Security/BiDirectional/client.conf:
- * orbsvcs/tests/Security/BiDirectional/client.cpp:
- * orbsvcs/tests/Security/BiDirectional/run_test.pl:
- * orbsvcs/tests/Security/BiDirectional/server.conf:
- * orbsvcs/tests/Security/BiDirectional/server.cpp:
- * orbsvcs/tests/Security/BiDirectional/test.idl:
- * orbsvcs/tests/Security/BiDirectional/test_i.h:
- * orbsvcs/tests/Security/BiDirectional/test_i.i:
- * orbsvcs/tests/Security/BiDirectional/test_i.cpp:
-
- A test that demonstrates the problem. Uses TAO-specific
- interfaces to the ORB core to obtain the number of currently
- open connections before and after an invocation. This is done
- both in the servant and in the client.
-
- * orbsvcs/tests/Security/BiDirectional/ssl/ca.pem:
- * orbsvcs/tests/Security/BiDirectional/ssl/client-cert.pem:
- * orbsvcs/tests/Security/BiDirectional/ssl/client-key.pem:
- * orbsvcs/tests/Security/BiDirectional/ssl/make-client-keys:
- * orbsvcs/tests/Security/BiDirectional/ssl/server-cert.pem:
- * orbsvcs/tests/Security/BiDirectional/ssl/server-key.pem:
-
- Client and server certificates and keys. Also, a script to
- regenerate them all.
-
-
- * tao/Transport_Cache_Manager.cpp:
-
- Added more informative logging.
-
-Tue May 17 09:18:15 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * utils/NamingViewer/NamingViewer.mpc:
-
- Removed unnecessary Resource_Files section.
-
- * utils/utils.mwc:
-
- Added the NamingViewer directory.
-
-Tue May 17 05:54:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp:
- Use ACE_SIZE_T_FORMAT_SPECIFIER to print out an size_t variable
- with ACE_OS::sprintf
-
-Tue May 17 05:50:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/tests/Event/Basic/Atomic_Reconnect.h:
- * orbsvcs/tests/Event/Basic/Control.h:
- Removed not needed include of Channel_Clients.h. This file has
- been removed and the include was not needed.
-
-Mon May 16 19:22:39 2005 J.T. Conklin <jtc@acorntoolworks.com>
-
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp:
-
- #include "orbsvcs/PortableGroup/PG_Operators.h" and remove the
- "bool operator==(const FTRT::Location&, const FTRT::Location&)"
- implementation. FTRT::Location is typedef for CosNaming::Name,
- and the operator== implementation for that in the PortableGroup
- library conflict on MacOSX.
-
-Mon May 16 12:15:11 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * TAO_IDL/include/ast_component.h
- (AST_Component::port_descriptor):
-
- Added an inlined constructor to this structure to make sure all
- fields are initialized prior to use. Fixes a g++ 4.0 "variable
- is used initialized" warning.
-
-Mon May 16 14:08:35 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/fe/idl.ll (idl_store_pragma):
- * TAO_IDL/fe/lex.yy.cpp (idl_store_pragma):
-
- Added code to eat extra whitespace in a #pragma directive,
- need when using preprocessors that don't do it automatically.
- Thanks to Johnny Willemsen <jwillemsen@remedy.nl> for
- discovering this quirk about the preprocessor used with the
- Intel C++ compiler. This fixes bugzilla bug [2110]
-
-Mon May 16 18:15:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/CDR.h:
- * tao/Codeset_Manager.h:
- * tao/Codeset_Translator_Factory_T.h:
- * tao/Reply_Dispatcher.h:
- * tao/Sequence.h:
- * tao/Transport_Acceptor.h:
- * tao/SmartProxies/Smart_Proxies.h:
- Doxygen improvements
-
-Mon May 16 10:09:45 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
-
- * TAO_IDL/be/be_visitor_arg_traits.cpp (visit_operation):
-
- Added check for imported node, skipping code generation if the
- node is imported. For all other node types in this visitor, arg
- traits specializations must be generated, since an IDL type
- declared in an included file could be used as a parameter in
- an operation in the main file. But when visiting an operation
- itself, the only thing that triggers an arg traits specialization
- is an anonymous bounded string parameter (deprecated but still
- legal). Since this type of declaration is not visible outside
- the operation's scope, it should not trigger code generation
- if the node is imported. Thanks to Johnny Willemsen
- <jwillemsen@remedy.nl> for pointing out that this code generation
- for an imported operation causes a C++ compilation failure, due
- to the lack of a proper #include of tao/BD_String_Arg_Traits.h.
-
-Mon May 16 15:06:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * tao/DynamicInterface/Context.h:
- * tao/DynamicInterface/DII_Arguments.h:
- * tao/DynamicInterface/DII_Invocation.h:
- * tao/DynamicInterface/DII_Invocation_Adapter.h:
- * tao/DynamicInterface/DII_Reply_Dispatcher.h:
- * tao/DynamicInterface/Dynamic_Adapter_Impl.h:
- * tao/DynamicInterface/Dynamic_Implementation.h:
- * tao/DynamicInterface/ExceptionList.h:
- * tao/DynamicInterface/Server_Request.h:
- Doxygen improvements
-
-Mon May 16 14:51:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/Channel_Clients.{h,cpp}:
- Removed, not needed anymore
-
- * orbsvcs/orbsvcs/Channel_Clients_T.h:
- * orbsvcs/orbsvcs/Scheduler_Utilities.h:
- Doxygen fixes
-
- * orbsvcs/orbsvcs/Makefile.am:
- Removed Channel_Clients files
-
- * orbsvcs/orbsvcs/Scheduler_Utilities.cpp:
- Removed not needed include of OS.h
-
- * orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h:
- * orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h:
- Doxygen improvement
-
- * orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h:
- * orbsvcs/tests/Event/lib/Counting_Supplier.h:
- Include Channel_Clients_T.h instead of Channel_Clients.h
-
-Mon May 16 14:38:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * orbsvcs/orbsvcs/RTEvent.mpc:
- Added Channel_Clients_T.cpp, it belongs to this project
-
- * orbsvcs/orbsvcs/AV.mpc:
- Removed Channel_Clients_T files, they don't belong to the AV service
-
-Mon May 16 14:29:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * examples/RTScheduling/Job_i.cpp:
- * examples/RTScheduling/Thread_Task.cpp:
- * examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp:
- Use ACE_SIZE_T_FORMAT_SPECIFIER to print out an size_t variable
- with ACE_OS::sprintf
-
- * orbsvcs/orbsvcs/CosNaming.mpc:
- * orbsvcs/orbsvcs/CosNaming_Serv.mpc:
- * orbsvcs/orbsvcs/CosNaming_Skel.mpc:
- Moved the Serv and Skel projects to their own file. This makes it
- possible to create a workspace with just one of the projects
-
-Mon May 16 09:18:26 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/examples/CosEC/RtEC_Based/lib/CosEC_RtEC_Based_lib.mpc:
- * orbsvcs/performance-tests/RTEvent/lib/RTEC_Perf.mpc:
- * orbsvcs/tests/Event/Mcast/Common/ECMcastTests_lib.mpc:
- * orbsvcs/tests/Event/lib/Event_lib.mpc:
- * orbsvcs/tests/Trading/Trading.mpc:
-
- Removed redundant base projects.
-
- * orbsvcs/examples/ImR/Combined_Service/test.cpp:
-
- Modified the assertTrue macro so that it would build on LynxOS.
-
- * orbsvcs/tests/EC_MT_Mcast/run_test.pl:
-
- Generate a unique multicast address and port to avoid collisions
- on the same network.
-
- * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/run_test.pl:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/windows.conf:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/windows.conf.xml:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/run_test.pl:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/windows.conf:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/windows.conf.xml:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/run_test.pl:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/windows.conf:
- * orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/windows.conf.xml:
-
- On Windows, we use a configurator file to switch from the default
- reactor (TP) to Select MT. The LoadManager, on Windows only,
- requires a reactor that supports registering signal handlers and
- the TP Reactor no longer supports that sort of thing.
-
- * orbsvcs/tests/Notify/MT_Dispatching/run_test.pl:
-
- Committing a change from Dale Wilson <wilson_d@ociweb.com>.
-
- Change shut down timeout from hard coded 1 to symbolic 10
- to eliminate intermittent timeouts on various platforms.
-
- * orbsvcs/tests/Notify/Structured_Multi_Filter/run_test.pl:
-
- Committing a change from Trevor Fields <fields_t@ociweb.com>.
-
- Added delay between iterations of the test to allow
- complete shutdown of Naming service. The problem showed
- up on dual processor machines.
-
- * orbsvcs/tests/Notify/XML_Persistence/main.cpp:
-
- Added an include of the CosNotification library initializer header
- to work around static construction issues on SunOS and MacOS X.
-
- * orbsvcs/tests/Redundant_Naming/run_test.pl:
- * orbsvcs/tests/Simple_Naming/run_test.pl:
-
- Allow the user to determine the location of the persistence file
- by the TMPDIR, TEMP and TMP environment variables. This will work
- around NFS locking issues.
-
- * orbsvcs/tests/Simple_Naming/process-m-output.pl:
-
- Committing a change from Yan Dai <dai_y@ociweb.com>.
-
- Modified the test scripts to accept the empty line, the
- "CommandLine" line and the "WARNING" lines from
- orbsvcs/orbsvcs/Shutdown_Utilities.cpp.
-
-Mon May 16 08:25:53 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * orbsvcs/Dump_Schedule/Dump_Schedule.cpp:
-
- Set the default name to "ScheduleService".
-
- * orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp:
-
- Allocate an RtecScheduler::Dependency_Set into the out parameter
- if it doesn't contain one yet.
-
- * orbsvcs/orbsvcs/Scheduler_Factory.cpp:
-
- Switched the types for the generated code to match up with actual
- types for the POD_Dependency_Info and POD_Config_Info structures.
-
-Mon May 16 08:21:34 2005 Chad Elliott <elliott_c@ociweb.com>
-
- * tao/ORB_Core.cpp:
-
- Warn the user if the parameter to -ORBCollocation is not
- recognized.
-
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp:
- * orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h:
- * tao/Strategies/SCIOP_Connector.cpp:
- * tao/Strategies/SCIOP_Endpoint.h:
- * tao/Strategies/SCIOP_Endpoint.cpp:
-
- Corrected many build issues dealing with SCTP.
-
-Sat May 14 06:09:23 2005 Johnny Willemsen <jwillemsen@remedy.nl>
-
- * TAO version 1.4.5 released.
-
-Local Variables:
-add-log-time-format: current-time-string
-End:
diff --git a/TAO/Makefile.am b/TAO/Makefile.am
index 534cb5db6d1..08e8f96a5ff 100644
--- a/TAO/Makefile.am
+++ b/TAO/Makefile.am
@@ -12,26 +12,14 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL = @ACLOCAL@
-ACLOCAL_AMFLAGS = -I m4 -I ../m4
+ACLOCAL_AMFLAGS = -I ../m4
SUBDIRS = \
TAO_IDL \
tao \
orbsvcs \
- docs
-
-if BUILD_EXAMPLES
-SUBDIRS += \
- examples
-endif
-
-if BUILD_TESTS
-SUBDIRS += \
+ docs \
performance-tests \
- interop-tests
-endif
-
-SUBDIRS += \
utils
## For some reason, automake doesn't include acconfig.h in the distribution
@@ -42,6 +30,8 @@ EXTRA_DIST = \
LICENSE.sun \
README.sun
+DISTCLEANFILES = tao-config tao-config.1
+
## release:
## $(MAKE) dist distdir=$(PACKAGE)$(VERSION)
release:
diff --git a/TAO/NEWS b/TAO/NEWS
index 54997f76636..05f4bd3acbc 100644
--- a/TAO/NEWS
+++ b/TAO/NEWS
@@ -1,180 +1,29 @@
PLANNED MAJOR CHANGES "SOMETIME IN THE FUTURE" (i.e., exact beta not known)
===========================================================================
-. (JTC) provide example Telecom Log Service Persistance Strategies that
- use BerkeleyDB, ODBC, etc. Refine Strategy interface as required.
+. (JTC/Ossama) autoconf support for TAO tests and examples
-. (JTC) autoconf support for tests and examples subdirectories.
+. (Ossama) Remainder of CSIv2 code that didn't make it into TAO 1.4.2
-. (OCI) Reenable support in the Notification service for BlockingPolicy,
+. Reenable support in the Notification service for BlockingPolicy,
DiscardPolicy, and OrderPolicy. (Note: BlockingPolicy requires -ORBWaitStrategy rw)
-. (OCI) Fix various memory and thread leaks in the Notification Service.
+. Fix various memory and thread leaks in the Notification Service.
-. (OCI) Fix Notification Service use of PacingInterval and MaximumBatchSize.
+. Fix Notification Service use of PacingInterval and MaximumBatchSize.
-. (OCI) Fix Notification Service detection of dead consumers.
+. Fix Notification Service detection of dead consumers.
-PLANNED MAJOR CHANGES TARGETED FOR TAO-1.5.2
+PLANNED MAJOR CHANGES TARGETED FOR TAO-1.4.9
====================================================
-. (Remedy) Finish and integrate new sequence implementation made by
- Carlos O'Ryan. This also includes a rework of the TAO_String_Managers
- and CORBA::(W)String implementations. This is ready in the sequenceupdate3
- branch but can't be merged until 1.5.2 because it breaks with vc6.
+. (Remedy) Add possibility to set customer allocators to be used by the ORB for
+ marshaling and demarshaling
-. (Remedy/Ossama) Add the ability to use the sendfile API to send out data
- on the transport
+. (Remedy) Improve CORBA compliance by fixing bugzilla bugs 1917 and 1271.
-. (Remedy/Ossama) Add on demand write functionality that writes out
- GIOP fragments to reduce the memory usage
-
-. (OCI) Make TAO compilable when ACE_USES_WCHAR is set
-
-USER VISIBLE CHANGES BETWEEN TAO-1.5.0 and TAO-1.5.1
-====================================================
-
-. Fixed LOCATION_FORWARD_PERM handling. See bugzilla #1777 for full details.
-
-. Fixed bug in detecting name clashes between existing identifiers and
- extra code generated for AMI and AMH.
-
-. Fixed bug in connection closure. See bugzilla # 2391
-
-. Added support for the --enable-fl-reactor configure option to the
- autoconf build infrastructure to build the TAO_FlResource library.
-
-. Added support for the --enable-qt-reactor configure option to the
- autoconf build infrastructure to build the TAO_QtResource library.
-
-. Added support for the --enable-xt-reactor configure option to the
- autoconf build infrastructure to build the TAO_XtResource library.
-
-. Fixed a race condition involving two threads active in the same
- connection handler at the same time. See bug# 1647 for details.
-
-USER VISIBLE CHANGES BETWEEN TAO-1.4.10 and TAO-1.5.0
-====================================================
-
-. Fixed Transport to handle incoming fragmented messages propperly, abstract
- interfaces TAO_Pluggable_Messaging and TAO_Transport have been
- modified. Custom transport/messaging implementations require
- interface modification.
-
-. Fix collocation optimisation when a location forward is received directing a
- client to a collocated object.
-
-. Prevent an OBJ_ADAPTER exception when using an object reference containing
- an ObjectID that corresponds to a collocated IORTable entry.
-
-. Reverted solution that allowed POA-level control over access to
- security-enabled objects due to conflicts with the specification,
- i.e. the Security::SecQoP* are not server-side policies.
-
-. When suppressing any and typecodes during IDL compilation this will not
- trigger compile errors due to missing any insert operations
-
-. Bug fix in IFR when creating typecodes for nested structs and unions.
-
-. Added support for the --enable-tk-reactor configure option to the
- autoconf build infrastructure to build the TAO_TkResource library.
-
-IDL COMPILER
-------------
-
-. Fix problem with missing includes in the skeleton files for imported arg
- trait declarations.
-
-USER VISIBLE CHANGES BETWEEN TAO-1.4.9 and TAO-1.4.10
-====================================================
-
-. Fixed a bug, which allowed security unaware clients to make
- invocations on secure objects, when the ORB was configured with
- support for Security::SecQoPNoProtection.
-
-. Fixed Bugzilla #2145, which was preventing the building of
- the IDL compiler on HPUX.
-
-. Added boxed valuetype support to the Interface Repository
- loader.
-
-. Fixed several bugs in the PICurrent implementation
-
-. Fixed GOA factory name
-
-. Fixed -ORBConnectionHandlerCleanup arguments to accept 0 and 1.
-
-. Improved Portable Interceptor implementation.
-
-. Autoconfig improvements.
-
-. Improved Real-time CORBA support for dynamic threads.
-
-IDL COMPILER:
--------------
-
-. Some bug fixes. See bug #2375 and #2390.
-
-USER VISIBLE CHANGES BETWEEN TAO-1.4.8 and TAO-1.4.9
-====================================================
-
-. Added new endpoint selector implementation - Optimized
- Connection Endpoint Selector. A member of the tao/Strategies library,
- use svc.conf file to load the OC_Endpoint_Factory object. See
- tests/AlternateIIOP/svc.conf for an example.
-
-. Continued splitting ORB Services into stub, skeleton, and
- implementation libraries. Changes to the Concurrency Service,
- Property Service, and RTEventLog Admin Service (TAO's RTEvent
- varient of the OMG Telecom Log Service) have been committed.
-
-. Added a new ORB run-time option "-ORBUseLocalMemoryPool [0|1]" which
- controls an individual application's use of TAO's Local Memory Pool.
- TAO can use a local memory pool to satisfy some of its needs for
- heap storage, as it is often more efficient than using the
- platform's default memory allocator. The pool will always grow as
- large as necessary to satisfy memory allocations, but it will never
- shrink. This means that sometimes a process can retain memory that
- it no longer needs. If the default allocator is used then TAO gives
- memory back as soon as it is not needed.
- The UseLocalMemoryPool option selects between using the local memory
- pool or using the default allocator, where 0 means don't use the pool,
- 1 means use the pool. The default is still controlled by the original
- compile-time option controlled by the #define TAO_USE_LOCAL_MEMORY_POOL
- which defaults to 1 if not specified.
-
-. Add a property -ORBKeepalive to allow a user to specify that
- SO_KEEPALIVE is set on IIOP connections. See docs/Options.html
- and Bugzilla #2374.
-
-. Add support for RTCORBA::TCPPrototocolProperties::keep_alive, when
- RTCORBA is used, and the application is using a Server or Client
- ProtocolPolicy.
-
-. Refined the Telecom Log Service Strategy Interface. Added methods
- to fetch/store capacity alarm thresholds, log QoS, and "week mask".
- Rework locking to avoid race conditions and to improve performance.
-
-IDL COMPILER:
--------------
-
-. Fixed bug in computation of repository ids for predefined types.
-
-. Fixed bug in the handling of TAO_IDL_INCLUDE_DIR.
-
-Interface Repository:
----------------------
-
-. Fixed bug in the lookup of a valuetype member's type using its
- repository id.
-
-. Fixed bug in IFR loader in checking for pre-existence before
- creating an entry corresponding to an IDL typedef.
-
-. Fixed bug in lookup when checking for a local name clash.
-
-. Fixed bug in the describe_interface() operation when the IDL
- interface being described has multiple parents.
+. (Remedy) Support the latest AMI mapping, the old mapping will be kept working
+ until 1.5.1 has been released.
USER VISIBLE CHANGES BETWEEN TAO-1.4.7 and TAO-1.4.8
====================================================
@@ -204,84 +53,6 @@ USER VISIBLE CHANGES BETWEEN TAO-1.4.7 and TAO-1.4.8
maintenance at that moment the macros will be removed from TAO.
See also http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2256
-. Support the latest AMI mapping, the old mapping will be kept working
- until 1.5.1 has been released. If you need the old mapping add
- the define TAO_HAS_DEPRECATED_EXCEPTION_HOLDER to your config.h
- file before you build TAO and the TAO_IDL compiler
-
-. Added CodecFactory::create_codec_with_codesets to create a codec with
- a specific codeset. See OMG issue 6050 for the background.
-
-. PortableInterceptor::IORInterceptor has been splitted in IORInterceptor
- and IORInterceptor_3_0. If you use IORInterceptors read the ChangeLog for
- the details, maybe you have to update your code!
-
-. Added the new Custom Servant Dispatching (CSD) feature to provide user
- applications with the ability to implement and "plug-in" custom strategies
- to handle the dispatching of requests to servants. This new feature is not
- currently tested for VxWorks. See TAO release notes for more information.
-
-. Added support for an TAO "versioned" namespace. When enabled, TAO
- library sources will be placed within a namespace of the user's
- choice or a namespace of the form TAO_1_4_7 by default, where
- "1_4_7" is the TAO major, minor and beta versions. The default may
- be overridden by defining the TAO_VERSIONED_NAMESPACE_NAME
- preprocessor symbol. Enable overall versioned namespace support by
- adding "versioned_namespace=1" to your MPC default.features file.
-
-. Changed generated signatures of some valuetype member
- accessor/mutator pairs to be consistent with IN
- parameter semantics.
-
-. Added spec-required generation of member-initializing
- constructor for valuetypes. See C++ mapping (03-06-03)
- section 1.17.2. Closes Bugzilla #2270.
-
-. Added default include paths $TAO_ROOT, $TAO_ROOT/tao,
- $TAO_ROOT/orbsvcs, and $CIAO_ROOT/ciao to IDL compiler
- execution, eliminating the need to add them explicitly
- to the command line.
-
-. Added immediate exits to IDL compiler when some name clash
- errors are encountered, avoiding a crash if parsing is
- continued. Closes Bugzilla #2281.
-
-. Changed the behavior of the _default() method (generated
- for IDL unions that have an explicit or implicit default
- case label) to clean up memory used by the freed member,
- if necessary.
-
-. Fixed bug in IDL compiler when handling a native exception
- in an operation declared in Messaging::ExceptionHolder.
-
-. Although not presently supported by CIAO, added error
- checking to the IDL compiler's parsing of IDL home
- primary keys, which constrain the basic valuetype
- syntax in several ways.
-
-. Fixed order of generated base class stub constructor calls
- when the IDL interface has both concrete and abstract parents.
-
-. Fixed a bug in the handling of forward declared interfaces
- that have both concrete and abstract parents.
-
-. Fixed the command line parsing to preserve the literal
- quotes if they are used in an include path that has a space.
- Closes Bugzilla #2219.
-
-. Many changes related to refactoring of Anys and Typecodes
- into a separate library (POC is Johnny Willemsen
- <jwillemsen@remedy.nl>).
-
-. Merging of many Notification Service changes/fixes from OCITAO to
- the DOC version. These generally addressed stability issues such as
- memory leaks, thread leaks, etc.
-
-. Introduction of the versioned namespaces changed the name of the
- factory function used for dynamically loading the Notification
- Service persistence mechanisms. See the service configurator file
- in orbsvcs/tests/Notify/XML_Persistence for an example.
-
USER VISIBLE CHANGES BETWEEN TAO-1.4.6 and TAO-1.4.7
====================================================
@@ -658,7 +429,8 @@ USER VISIBLE CHANGES BETWEEN TAO-1.4.1 and TAO-1.4.2
. Added CPU utilization load monitor to TAO's Cygnus load balancer.
. Added basic CSIv2 support, which is the latest CORBA Security
- architecture specification.
+ architecture specification. Advanced CSIv2 features will be
+ available in the next beta.
USER VISIBLE CHANGES BETWEEN TAO-1.4 and TAO-1.4.1
==================================================
diff --git a/TAO/PROBLEM-REPORT-FORM b/TAO/PROBLEM-REPORT-FORM
index d7d5ffefbad..786e42ebb4b 100644
--- a/TAO/PROBLEM-REPORT-FORM
+++ b/TAO/PROBLEM-REPORT-FORM
@@ -43,8 +43,8 @@
To: tao-bugs@cs.wustl.edu
Subject: [area]: [synopsis]
- TAO VERSION: 1.5
- ACE VERSION: 5.5
+ TAO VERSION: 1.4.7
+ ACE VERSION: 5.4.7
HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
@@ -91,4 +91,3 @@ transcript if at all possible. ]
SAMPLE FIX/WORKAROUND:
[If available ]
-
diff --git a/TAO/Release b/TAO/Release
index 9e124881936..db52ff5985b 100644
--- a/TAO/Release
+++ b/TAO/Release
@@ -14,37 +14,36 @@ CONTROLLED_FILES = \
TAO/COPYING* \
TAO/ChangeLog* \
TAO/LICENSE.sun \
- TAO/Makefile.am \
- TAO/NEWS \
TAO/PROBLEM-REPORT-FORM \
- TAO/README* \
TAO/Release \
+ TAO/README* \
TAO/TAO-INSTALL.html \
+ TAO/TAOACE* \
TAO/TAO.mwc \
- TAO/TAO_ACE* \
TAO/TAO_IDL \
TAO/VERSION \
- TAO/configure.ac \
TAO/docs \
+ TAO/NEWS \
TAO/examples \
TAO/interop-tests \
- TAO/m4 \
TAO/orbsvcs \
TAO/performance-tests \
TAO/rules.tao.GNU \
TAO/tao \
+ TAO/Makefile.am \
+ TAO/configure.ac \
TAO/tests \
TAO/utils
+
RELEASE_FILES = $(addprefix ACE_wrappers/,$(CONTROLLED_FILES)) \
- ACE_wrappers/TAO/TAO-INSTALL \
ACE_wrappers/TAO/GNUmake* \
ACE_wrappers/TAO/*.dsw \
ACE_wrappers/TAO/*.sln \
ACE_wrappers/TAO/*.bor \
- ACE_wrappers/TAO/Makefile.in \
ACE_wrappers/TAO/configure \
- ACE_wrappers/TAO/aclocal.m4
+ ACE_wrappers/TAO/Makefile.in \
+ ACE_wrappers/TAO/TAO-INSTALL
.PHONY: INSTALL
diff --git a/TAO/TAO-INSTALL.html b/TAO/TAO-INSTALL.html
index 29d2b6385d5..ac86d804dbb 100644
--- a/TAO/TAO-INSTALL.html
+++ b/TAO/TAO-INSTALL.html
@@ -23,22 +23,19 @@
<H4><A NAME="build">Building and Installing TAO from a distribution</H4>
-<p>The following table summarizes platforms on which TAO runs, see the
-<a href="../ACE-INSTALL.html#platforms">ACE installation notes</A> for an
-overview of all the platforms ACE runs on, these are all candidates
-to run TAO on:<P>
+<p>The following table summarizes platforms on which TAO runs:<P>
<table width="100%" border=1>
<tr valign=top>
<td><b>Fully supported, i.e., continually tested and used daily</b></td>
<td>Solaris 7, 8 and 9, Windows 2000/XP (6.x, and 7.1 and
- Borland C++ Builder 6/2006), and Linux/Intel (Redhat,
- Debian and SuSe), Linux/Alpha (SuSe), VxWorks 5.5.1
+ Borland C++ Builder 6), and Linux/Intel (Redhat,
+ Debian and SuSe), Linux/Alpha (SuSe).
</td>
</tr>
<tr valign=top bgcolor="#AFAFAF">
<td><b>Nearly fully supported, i.e., periodically tested</b></td>
- <td>Windows 9x/ME, HP/UX 11.x, LynxOS, and AIX 4.x
+ <td>Windows 9x/ME, HP/UX 11.x, VxWorks 5.5.1, LynxOS, and AIX 4.x
</td>
</tr>
<tr valign=top>
@@ -140,7 +137,7 @@ bundle as a single piece instead of trying to mix and match things up.<P>
the right places (4) Delete all the GNUmakefiles (or dsp and
dsw file as the case may be) from the TAO distrbution using
the 'find' command. (5) Change directory to $TAO_ROOT. (6)
- Run MPC like this, $ACE_ROOT/bin/mwc.pl TAO_ACE.mwc. (7) Run
+ Run MPC like this, $ACE_ROOT/bin/mwc.pl TAOACE.mwc. (7) Run
'make'. This will create all the required libraries for TAO
and TAO orbsvcs. In step 6, use -type vc6 if you want to
generate VC6 project and workspace files for Win32. Please
@@ -207,22 +204,27 @@ href="../ACE-INSTALL.html#vxworks">$ACE_ROOT/ACE-INSTALL.html</a>.<p>
<H4>Modifying the default location for the IDL compiler</H4>
<P>By default TAO assumes that the IDL compiler is located in:
- <CODE>$TAO_ROOT/bin/tao_idl</CODE> and that the GPERF tool
+ <CODE>$TAO_ROOT/TAO_IDL/tao_idl</CODE> and that the GPERF tool
is located in <CODE>$ACE_ROOT/bin/gperf</CODE>, this is fine for
hosted builds, but not for cross-compilation.
Unfortunately there is no good default for cross-compilation
builds because different sites choose a different location for
their tools.
</P>
- <P>You can override the default values by adding several new lines in your
- platform_macros.GNU file assuming $(HOST_ROOT) is set to the location
- of your host build where you have build gperf and tao_idl, as follows:
+ <P>You can override the default values by adding two lines in your
+ platform_macros.GNU file, as follows:
<PRE>
-$ echo 'TAO_IDL := $(HOST_ROOT)/bin/tao_idl' \
-$ echo 'TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/gperf' \
-$ echo 'TAO_IDL_DEP := $(HOST_ROOT)/bin/tao_idl$(EXEEXT)' \
+$ echo 'TAO_IDL := /your/path/tao_idl' \
>> platform_macros.GNU
+$ echo 'TAO_IDLFLAGS := -g /your/path/gperf' \
</PRE>
+ <P>You could even use:
+<PRE>
+$ echo 'TAO_IDL := tao_idl' \
+ >> platform_macros.GNU
+$ echo 'TAO_IDLFLAGS := -g gperf' \
+</PRE>
+ if the tools are in your path.
<P>Obviously you must first build the tools for the host platform,
typically you would do this as follows:
@@ -288,9 +290,9 @@ $ echo 'include $(ACE_ROOT)/include/makeinclude/platform_TARGET.GNU' \
<li><code>cd ACE_wrappers</code>
<li><code>bin/create_ace_build SunOS5_g++</code>
<li><code>bin/create_ace_build vxworks</code>
- <li><code>cd build/vxworks/bin</code>
- <li><code>/bin/rm -r tao_idl</code>
- <li><code>ln -s ../../SunOS5_g++/bin/tao_idl</code>
+ <li><code>cd build/vxworks/TAO</code>
+ <li><code>/bin/rm -r TAO_IDL</code>
+ <li><code>ln -s ../../SunOS5_g++/TAO/TAO_IDL</code>
</ol>
<P>To build on the host:
@@ -412,7 +414,7 @@ make -f Makefile.bor
For more detailed information on building and using TAO with Borland's
C++ Builder environment, please see the <A
-HREF="http://www.tenermerx.com/programming/corba/tao_bcb/index.html">online</A> help
+HREF="http://www.tenermerx.com/tao_bcb/index.html">online</A> help
provided by <A HREF="mailto:chris@kohlhoff.com">Christopher
Kohlhoff</A>. <P>
@@ -531,12 +533,12 @@ quickly.
VC71 project and solution files.<p>
<LI> Build ACE+TAO together in one shot. To do that please issue
the following commands: <p>
- <CODE> $ACE_ROOT/bin/mwc.pl TAO_ACE.mwc </CODE> <p>
+ <CODE> $ACE_ROOT/bin/mwc.pl TAOACE.mwc </CODE> <p>
from <CODE>$TAO_ROOT</CODE>. This will generate GNUmakefiles for
ACE, gperf, and core ACE+TAO libraries. Issuing a
<CODE>'make'</CODE> from <CODE>$TAO_ROOT </CODE> will build all of
the above in one shot. You can use <CODE> -type vc6 </CODE> to
- generate VC6 project and workspace files. <CODE>TAO_ACE.dsw</CODE>
+ generate VC6 project and workspace files. <CODE>TAOACE.dsw</CODE>
can be used by users to build ACE+TAO from a single workspace
file. Users can use <CODE> -type vc71 </CODE> to generate the VC71
solutions files. <p>
diff --git a/TAO/TAO_ACE.mwc b/TAO/TAOACE.mwc
index 38830f933d9..38830f933d9 100644
--- a/TAO/TAO_ACE.mwc
+++ b/TAO/TAOACE.mwc
diff --git a/TAO/TAO_IDL/Makefile.am b/TAO/TAO_IDL/Makefile.am
index 4e43e520d95..84267807b07 100644
--- a/TAO/TAO_IDL/Makefile.am
+++ b/TAO/TAO_IDL/Makefile.am
@@ -141,6 +141,7 @@ noinst_HEADERS = \
include/fe_interface_header.h \
include/fe_private.h \
include/global_extern.h \
+ include/idl_bool.h \
include/idl_defines.h \
include/idl_global.h \
include/idl_narrow.h \
diff --git a/TAO/TAO_IDL/ast/ast_array.cpp b/TAO/TAO_IDL/ast/ast_array.cpp
index a34026cedee..cb42418defe 100644
--- a/TAO/TAO_IDL/ast/ast_array.cpp
+++ b/TAO/TAO_IDL/ast/ast_array.cpp
@@ -78,8 +78,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/Log_Msg.h"
#include "ace/OS_Memory.h"
-ACE_RCSID (ast,
- ast_array,
+ACE_RCSID (ast,
+ ast_array,
"$Id$")
// Constructor(s) and destructor.
@@ -98,13 +98,13 @@ AST_Array::AST_Array (void)
AST_Array::AST_Array (UTL_ScopedName *n,
unsigned long nd,
UTL_ExprList *ds,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_array,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_array,
n),
AST_ConcreteType (AST_Decl::NT_array,
@@ -188,7 +188,7 @@ AST_Array::compute_size_type (void)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_array::compute_size_type - "
- "bad base type\n"),
+ "bad base type\n"),
-1);
}
diff --git a/TAO/TAO_IDL/ast/ast_attribute.cpp b/TAO/TAO_IDL/ast/ast_attribute.cpp
index bbc7f6deec5..7f19a28e6be 100644
--- a/TAO/TAO_IDL/ast/ast_attribute.cpp
+++ b/TAO/TAO_IDL/ast/ast_attribute.cpp
@@ -79,8 +79,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_err.h"
#include "global_extern.h"
-ACE_RCSID (ast,
- ast_attribute,
+ACE_RCSID (ast,
+ ast_attribute,
"$Id$")
// Constructor(s) and destructor.
@@ -88,17 +88,17 @@ AST_Attribute::AST_Attribute (void)
: COMMON_Base (),
AST_Decl (),
AST_Field (),
- pd_readonly (true),
+ pd_readonly (I_TRUE),
pd_get_exceptions (0),
pd_set_exceptions (0)
{
}
-AST_Attribute::AST_Attribute (bool ro,
+AST_Attribute::AST_Attribute (idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_attr,
@@ -122,7 +122,7 @@ AST_Attribute::~AST_Attribute (void)
void
AST_Attribute::dump (ACE_OSTREAM_TYPE &o)
{
- this->dump_i (o, (this->pd_readonly == true ?
+ this->dump_i (o, (this->pd_readonly == I_TRUE ?
"readonly attribute " : "attribute "));
AST_Field::dump (o);
}
@@ -167,7 +167,7 @@ AST_Attribute::be_add_set_exceptions (UTL_ExceptList *t)
// Data accessors.
-bool
+idl_bool
AST_Attribute::readonly (void) const
{
return this->pd_readonly;
@@ -201,7 +201,7 @@ AST_Attribute::fe_add_get_exceptions (UTL_NameList *t)
nl_n = nl_i.item ();
d = this->defined_in ()->lookup_by_name (nl_n,
- true);
+ I_TRUE);
if (d == 0 || d->node_type() != AST_Decl::NT_except)
{
@@ -256,7 +256,7 @@ AST_Attribute::fe_add_set_exceptions (UTL_NameList *t)
nl_n = nl_i.item ();
d = this->defined_in ()->lookup_by_name (nl_n,
- true);
+ I_TRUE);
if (d == 0 || d->node_type() != AST_Decl::NT_except)
{
diff --git a/TAO/TAO_IDL/ast/ast_component.cpp b/TAO/TAO_IDL/ast/ast_component.cpp
index 6c9e2054984..b83509eff93 100644
--- a/TAO/TAO_IDL/ast/ast_component.cpp
+++ b/TAO/TAO_IDL/ast/ast_component.cpp
@@ -8,8 +8,8 @@
#include "utl_err.h"
#include "global_extern.h"
-ACE_RCSID (ast,
- ast_component,
+ACE_RCSID (ast,
+ ast_component,
"$Id$")
AST_Component::AST_Component (void)
@@ -28,8 +28,8 @@ AST_Component::AST_Component (UTL_ScopedName *n,
long n_supports,
AST_Interface **supports_flat,
long n_supports_flat)
- : COMMON_Base (false,
- false),
+ : COMMON_Base (I_FALSE,
+ I_FALSE),
AST_Decl (AST_Decl::NT_component,
n),
AST_Type (AST_Decl::NT_component,
@@ -40,8 +40,8 @@ AST_Component::AST_Component (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat,
- false,
- false),
+ I_FALSE,
+ I_FALSE),
pd_base_component (base_component)
{
}
@@ -75,22 +75,22 @@ AST_Component::redefine (AST_Interface *from)
AST_Decl *
AST_Component::look_in_inherited (UTL_ScopedName *e,
- bool treat_as_ref)
+ idl_bool treat_as_ref)
{
AST_Decl *d = 0;
-
+
if (this->pd_base_component != 0)
{
d = this->pd_base_component->lookup_by_name (e, treat_as_ref);
}
-
+
return d;
}
// Look through supported interface list.
AST_Decl *
AST_Component::look_in_supported (UTL_ScopedName *e,
- bool treat_as_ref)
+ idl_bool treat_as_ref)
{
AST_Decl *d = 0;
AST_Interface **is = 0;
@@ -121,7 +121,7 @@ AST_Component::look_in_supported (UTL_ScopedName *e,
break;
}
}
-
+
return d;
}
@@ -137,7 +137,7 @@ AST_Component::supports (void) const
return this->inherits ();
}
-long
+long
AST_Component::n_supports (void) const
{
return this->n_inherits ();
@@ -223,7 +223,7 @@ AST_Component::ast_accept (ast_visitor *visitor)
return visitor->visit_component (this);
}
-bool
+idl_bool
AST_Component::redef_clash (void)
{
if (this->AST_Interface::redef_clash ())
diff --git a/TAO/TAO_IDL/ast/ast_component_fwd.cpp b/TAO/TAO_IDL/ast/ast_component_fwd.cpp
index 3f4a10f8a93..ad7a9a93d56 100644
--- a/TAO/TAO_IDL/ast/ast_component_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_component_fwd.cpp
@@ -4,8 +4,8 @@
#include "ast_visitor.h"
#include "utl_identifier.h"
-ACE_RCSID( ast,
- ast_component_fwd,
+ACE_RCSID( ast,
+ ast_component_fwd,
"$Id$")
AST_ComponentFwd::AST_ComponentFwd (void)
@@ -18,8 +18,8 @@ AST_ComponentFwd::AST_ComponentFwd (void)
AST_ComponentFwd::AST_ComponentFwd (AST_Interface *dummy,
UTL_ScopedName *n)
- : COMMON_Base (true,
- false),
+ : COMMON_Base (I_TRUE,
+ I_FALSE),
AST_Decl (AST_Decl::NT_component_fwd,
n),
AST_Type (AST_Decl::NT_component_fwd,
diff --git a/TAO/TAO_IDL/ast/ast_constant.cpp b/TAO/TAO_IDL/ast/ast_constant.cpp
index 6a73e6d8e9a..9b82fd3fc8f 100644
--- a/TAO/TAO_IDL/ast/ast_constant.cpp
+++ b/TAO/TAO_IDL/ast/ast_constant.cpp
@@ -77,8 +77,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ast_generator.h"
#include "nr_extern.h"
-ACE_RCSID (ast,
- ast_constant,
+ACE_RCSID (ast,
+ ast_constant,
"$Id$")
// Static functions.
@@ -140,27 +140,27 @@ AST_Constant::AST_Constant (void)
// Used in constructing AST_EnumVal nodes.
AST_Constant::AST_Constant (AST_Expression::ExprType t,
- AST_Decl::NodeType nt,
- AST_Expression *v,
- UTL_ScopedName *n)
+ AST_Decl::NodeType nt,
+ AST_Expression *v,
+ UTL_ScopedName *n)
: COMMON_Base (),
AST_Decl (nt,
n),
- pd_constant_value (v),
- pd_et (t),
+ pd_constant_value (v),
+ pd_et (t),
ifr_added_ (0)
{
}
// Used when constructing AST_Constant nodes.
AST_Constant::AST_Constant (AST_Expression::ExprType t,
- AST_Expression *v,
- UTL_ScopedName *n)
+ AST_Expression *v,
+ UTL_ScopedName *n)
: COMMON_Base (),
AST_Decl (AST_Decl::NT_const,
n),
- pd_constant_value (v),
- pd_et (t),
+ pd_constant_value (v),
+ pd_et (t),
ifr_added_ (0)
{
// Avoids a truncation warning on MSVC when assigning a decimal
@@ -171,7 +171,7 @@ AST_Constant::AST_Constant (AST_Expression::ExprType t,
// of truncation would not apply.
if (t == AST_Expression::EV_float && v->ev ()->et == AST_Expression::EV_double)
{
- AST_Expression::AST_ExprValue *ev =
+ AST_Expression::AST_ExprValue *ev =
this->pd_constant_value->ev ();
ev->et = t;
ev->u.fval = (float) ev->u.dval;
@@ -236,14 +236,14 @@ AST_Constant::et (void)
return this->pd_et;
}
-bool
+idl_bool
AST_Constant::ifr_added (void)
{
return this->ifr_added_;
}
void
-AST_Constant::ifr_added (bool val)
+AST_Constant::ifr_added (idl_bool val)
{
this->ifr_added_ = val;
}
diff --git a/TAO/TAO_IDL/ast/ast_decl.cpp b/TAO/TAO_IDL/ast/ast_decl.cpp
index 7283af70e0b..f877e5ef2c9 100644
--- a/TAO/TAO_IDL/ast/ast_decl.cpp
+++ b/TAO/TAO_IDL/ast/ast_decl.cpp
@@ -86,7 +86,6 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "global_extern.h"
#include "nr_extern.h"
#include "utl_identifier.h"
-#include "utl_string.h"
#include "utl_scope.h"
#include "utl_err.h"
#include "ace/OS_NS_stdio.h"
@@ -98,20 +97,20 @@ ACE_RCSID (ast,
ast_decl,
"$Id$")
-COMMON_Base::COMMON_Base (bool local,
- bool abstract)
+COMMON_Base::COMMON_Base (idl_bool local,
+ idl_bool abstract)
: is_local_ (local),
is_abstract_ (abstract)
{
}
-bool
+idl_bool
COMMON_Base::is_local (void)
{
return this->is_local_;
}
-bool
+idl_bool
COMMON_Base::is_abstract (void)
{
return this->is_abstract_;
@@ -129,19 +128,20 @@ AST_Decl::AST_Decl (void)
repoID_ (0),
flat_name_ (0),
contains_wstring_ (-1),
- pd_imported (false),
- pd_in_main_file (false),
+ pd_imported (I_FALSE),
+ pd_in_main_file (I_FALSE),
pd_defined_in (0),
pd_node_type (NT_module),
pd_line (-1),
+ pd_file_name (0),
pd_local_name (0),
pd_original_local_name (0),
- pd_added (false),
+ pd_added (I_FALSE),
full_name_ (0),
prefix_ (0),
version_ (0),
- anonymous_ (false),
- typeid_set_ (false),
+ anonymous_ (I_FALSE),
+ typeid_set_ (I_FALSE),
last_referenced_as_ (0),
prefix_scope_ (0)
{
@@ -149,7 +149,7 @@ AST_Decl::AST_Decl (void)
AST_Decl::AST_Decl (NodeType nt,
UTL_ScopedName *n,
- bool anonymous)
+ idl_bool anonymous)
: COMMON_Base (),
repoID_ (0),
flat_name_ (0),
@@ -161,22 +161,19 @@ AST_Decl::AST_Decl (NodeType nt,
: 0),
pd_node_type (nt),
pd_line (idl_global->lineno ()),
+ pd_file_name (idl_global->filename ()),
pd_name (0),
pd_local_name (n == 0 ? 0 : n->last_component ()->copy ()),
pd_original_local_name (0),
- pd_added (false),
+ pd_added (I_FALSE),
full_name_ (0),
prefix_ (0),
version_ (0),
anonymous_ (anonymous),
- typeid_set_ (false),
+ typeid_set_ (I_FALSE),
last_referenced_as_ (0),
prefix_scope_ (0)
{
- // If this is the root node, the filename won't have been set yet.
- UTL_String *fn = idl_global->filename ();
- this->pd_file_name = (fn != 0 ? fn->get_string () : "");
-
this->compute_full_name (n);
char *prefix = 0;
@@ -278,7 +275,7 @@ AST_Decl::set_prefix_with_typeprefix_r (const char *value,
{
AST_Decl *decl = ScopeAsDecl (this->prefix_scope_);
- bool overridden =
+ idl_bool overridden =
decl->has_ancestor (ScopeAsDecl (appeared_in));
if (overridden)
@@ -354,8 +351,8 @@ AST_Decl::compute_full_name (void)
else
{
size_t namelen = 0;
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
char *name = 0;
for (UTL_IdListActiveIterator i (this->name ());
@@ -368,7 +365,7 @@ AST_Decl::compute_full_name (void)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -380,11 +377,11 @@ AST_Decl::compute_full_name (void)
if (ACE_OS::strcmp (name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -393,8 +390,8 @@ AST_Decl::compute_full_name (void)
char[namelen + 1]);
this->full_name_[0] = '\0';
- first = true;
- second = false;
+ first = I_TRUE;
+ second = I_FALSE;
for (UTL_IdListActiveIterator j (this->name ());
!j.is_done ();
@@ -406,7 +403,7 @@ AST_Decl::compute_full_name (void)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -418,11 +415,11 @@ AST_Decl::compute_full_name (void)
if (ACE_OS::strcmp (name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -439,8 +436,8 @@ AST_Decl::compute_repoID (void)
}
size_t namelen = 4; // for the prefix "IDL:"
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
char *name = 0;
const char *prefix = (this->prefix_ ? this->prefix_ : "");
UTL_Scope *scope = this->defined_in ();
@@ -497,7 +494,7 @@ AST_Decl::compute_repoID (void)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -518,11 +515,11 @@ AST_Decl::compute_repoID (void)
if (ACE_OS::strcmp (name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -544,8 +541,8 @@ AST_Decl::compute_repoID (void)
ACE_OS::strcat (this->repoID_, "/");
}
- first = true;
- second = false;
+ first = I_TRUE;
+ second = I_FALSE;
for (UTL_IdListActiveIterator j (this->name ());
!j.is_done ();
@@ -557,7 +554,7 @@ AST_Decl::compute_repoID (void)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -579,11 +576,11 @@ AST_Decl::compute_repoID (void)
if (ACE_OS::strcmp (name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -626,8 +623,8 @@ AST_Decl::compute_flat_name (void)
else
{
size_t namelen = 0;
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
char *item_name = 0;
// In the first loop, compute the total length.
@@ -641,7 +638,7 @@ AST_Decl::compute_flat_name (void)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -653,11 +650,11 @@ AST_Decl::compute_flat_name (void)
if (ACE_OS::strcmp (item_name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -666,8 +663,8 @@ AST_Decl::compute_flat_name (void)
char[namelen + 1]);
this->flat_name_[0] = '\0';
- first = true;
- second = false;
+ first = I_TRUE;
+ second = I_FALSE;
for (UTL_IdListActiveIterator j (this->name ());
!j.is_done ();
@@ -679,7 +676,7 @@ AST_Decl::compute_flat_name (void)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -691,11 +688,11 @@ AST_Decl::compute_flat_name (void)
if (ACE_OS::strcmp (item_name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -704,12 +701,12 @@ AST_Decl::compute_flat_name (void)
// Return TRUE if one of my ancestor scopes is "s"
// and FALSE otherwise.
-bool
+idl_bool
AST_Decl::has_ancestor (AST_Decl *s)
{
if (this == s)
{
- return true;
+ return I_TRUE;
}
if (s->node_type () == AST_Decl::NT_module)
@@ -721,7 +718,7 @@ AST_Decl::has_ancestor (AST_Decl *s)
{
if (this == other_opening)
{
- return true;
+ return I_TRUE;
}
other_opening = enclosing->lookup_by_name_local (s->local_name (),
@@ -731,13 +728,13 @@ AST_Decl::has_ancestor (AST_Decl *s)
if (this->pd_defined_in == 0)
{
- return false;
+ return I_FALSE;
}
return ScopeAsDecl (this->pd_defined_in)->has_ancestor (s);
}
-bool
+idl_bool
AST_Decl::is_child (AST_Decl *s)
{
if (this->defined_in ())
@@ -758,7 +755,7 @@ AST_Decl::is_child (AST_Decl *s)
return 0; // Not a child.
}
-bool
+idl_bool
AST_Decl::is_nested (void)
{
AST_Decl *d = ScopeAsDecl (this->defined_in ());
@@ -767,10 +764,10 @@ AST_Decl::is_nested (void)
// then we are defined at some nesting level.
if (d != 0 && d->node_type () != AST_Decl::NT_root)
{
- return true;
+ return I_TRUE;
}
- return false;
+ return I_FALSE;
}
// Dump this AST_Decl to the ostream o.
@@ -958,26 +955,26 @@ AST_Decl::version (char *value)
}
}
-bool
+idl_bool
AST_Decl::anonymous (void) const
{
return this->anonymous_;
}
void
-AST_Decl::anonymous (bool val)
+AST_Decl::anonymous (idl_bool val)
{
this->anonymous_ = val;
}
-bool
+idl_bool
AST_Decl::typeid_set (void) const
{
return this->typeid_set_;
}
void
-AST_Decl::typeid_set (bool val)
+AST_Decl::typeid_set (idl_bool val)
{
this->typeid_set_ = val;
}
@@ -1033,7 +1030,7 @@ AST_Decl::set_id_with_typeid (char *value)
delete [] this->repoID_;
this->repoID_ = 0;
this->repoID (value);
- this->typeid_set_ = true;
+ this->typeid_set_ = I_TRUE;
}
void
@@ -1062,38 +1059,38 @@ AST_Decl::set_prefix_with_typeprefix (const char *value)
DeclAsScope (this));
}
-bool
+idl_bool
AST_Decl::imported (void)
{
return this->pd_imported;
}
void
-AST_Decl::set_imported (bool is_it)
+AST_Decl::set_imported (idl_bool is_it)
{
this->pd_imported = is_it;
}
-bool
+idl_bool
AST_Decl::in_main_file (void)
{
return this->pd_in_main_file;
}
void
-AST_Decl::set_in_main_file (bool is_it)
+AST_Decl::set_in_main_file (idl_bool is_it)
{
this->pd_in_main_file = is_it;
}
-bool
+idl_bool
AST_Decl::added (void)
{
return this->pd_added;
}
void
-AST_Decl::set_added (bool is_it)
+AST_Decl::set_added (idl_bool is_it)
{
this->pd_added = is_it;
}
@@ -1128,14 +1125,14 @@ AST_Decl::set_line (long l)
this->pd_line = l;
}
-ACE_CString
+UTL_String *
AST_Decl::file_name (void)
{
return this->pd_file_name;
}
void
-AST_Decl::set_file_name (ACE_CString s)
+AST_Decl::set_file_name (UTL_String *s)
{
this->pd_file_name = s;
}
diff --git a/TAO/TAO_IDL/ast/ast_enum.cpp b/TAO/TAO_IDL/ast/ast_enum.cpp
index cb18dc00c99..23bde0b68b7 100644
--- a/TAO/TAO_IDL/ast/ast_enum.cpp
+++ b/TAO/TAO_IDL/ast/ast_enum.cpp
@@ -72,8 +72,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_err.h"
#include "utl_indenter.h"
-ACE_RCSID (ast,
- ast_enum,
+ACE_RCSID (ast,
+ ast_enum,
"$Id$")
AST_Enum::AST_Enum (void)
@@ -82,24 +82,24 @@ AST_Enum::AST_Enum (void)
AST_Type (),
AST_ConcreteType (),
UTL_Scope (),
- pd_enum_counter (0),
+ pd_enum_counter (0),
member_count_ (-1)
{
this->size_type (AST_Type::FIXED);
}
AST_Enum::AST_Enum (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_enum,
n),
- AST_Type (AST_Decl::NT_enum,
+ AST_Type (AST_Decl::NT_enum,
n),
- AST_ConcreteType (AST_Decl::NT_enum,
+ AST_ConcreteType (AST_Decl::NT_enum,
n),
- UTL_Scope (AST_Decl::NT_enum),
+ UTL_Scope (AST_Decl::NT_enum),
pd_enum_counter (0),
member_count_ (-1)
{
@@ -150,7 +150,7 @@ AST_Enum::lookup_by_value (const AST_Expression *v)
AST_EnumVal *item = 0;
AST_Decl *d = 0;
- for (UTL_ScopeActiveIterator i (this, IK_decls);
+ for (UTL_ScopeActiveIterator i (this, IK_decls);
!i.is_done ();
i.next ())
{
@@ -220,8 +220,8 @@ AST_Enum::compute_member_count (void)
// If there are elements in this scope
if (this->nmembers () > 0)
{
- for (UTL_ScopeActiveIterator i (this, IK_decls);
- !i.is_done ();
+ for (UTL_ScopeActiveIterator i (this, IK_decls);
+ !i.is_done ();
i.next ())
{
// Get the next AST decl node.
@@ -247,7 +247,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
t1 = idl_global->gen ()->create_enum_val (tmp,
t->name ());
- UTL_ScopedName *sn =
+ UTL_ScopedName *sn =
munge_name_for_enumval ((UTL_IdList *) t->name ()->copy (),
t->local_name ());
@@ -260,7 +260,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -293,7 +293,7 @@ AST_Enum::fe_add_enum_val (AST_EnumVal *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
// Add it to enclosing scope.
diff --git a/TAO/TAO_IDL/ast/ast_eventtype.cpp b/TAO/TAO_IDL/ast/ast_eventtype.cpp
index 7338bf6ef3d..41b5d656a06 100644
--- a/TAO/TAO_IDL/ast/ast_eventtype.cpp
+++ b/TAO/TAO_IDL/ast/ast_eventtype.cpp
@@ -7,8 +7,8 @@
#include "utl_indenter.h"
#include "global_extern.h"
-ACE_RCSID (ast,
- ast_eventtype,
+ACE_RCSID (ast,
+ ast_eventtype,
"$Id$")
AST_EventType::AST_EventType (void)
@@ -30,10 +30,10 @@ AST_EventType::AST_EventType (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
- : COMMON_Base (false,
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
+ : COMMON_Base (I_FALSE,
abstract),
AST_Decl (AST_Decl::NT_eventtype,
n),
@@ -45,7 +45,7 @@ AST_EventType::AST_EventType (UTL_ScopedName *n,
n_inherits,
inherits_flat,
n_inherits_flat,
- false,
+ I_FALSE,
abstract),
AST_ValueType (n,
inherits,
diff --git a/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp b/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp
index 6bff9695525..8699d274f9f 100644
--- a/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_eventtype_fwd.cpp
@@ -5,8 +5,8 @@
#include "ast_visitor.h"
#include "utl_identifier.h"
-ACE_RCSID( ast,
- ast_eventtype_fwd,
+ACE_RCSID( ast,
+ ast_eventtype_fwd,
"$Id$")
AST_EventTypeFwd::AST_EventTypeFwd (void)
@@ -20,7 +20,7 @@ AST_EventTypeFwd::AST_EventTypeFwd (void)
AST_EventTypeFwd::AST_EventTypeFwd (AST_Interface *dummy,
UTL_ScopedName *n)
- : COMMON_Base (false,
+ : COMMON_Base (I_FALSE,
dummy->is_abstract ()),
AST_Decl (AST_Decl::NT_eventtype_fwd,
n),
diff --git a/TAO/TAO_IDL/ast/ast_exception.cpp b/TAO/TAO_IDL/ast/ast_exception.cpp
index 62a91cd53e4..e0cc7761758 100644
--- a/TAO/TAO_IDL/ast/ast_exception.cpp
+++ b/TAO/TAO_IDL/ast/ast_exception.cpp
@@ -78,8 +78,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_identifier.h"
#include "utl_indenter.h"
-ACE_RCSID (ast,
- ast_exception,
+ACE_RCSID (ast,
+ ast_exception,
"$Id$")
AST_Exception::AST_Exception (void)
@@ -93,8 +93,8 @@ AST_Exception::AST_Exception (void)
}
AST_Exception::AST_Exception (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_except,
@@ -118,14 +118,14 @@ AST_Exception::~AST_Exception (void)
// Public operations.
// Are we or the parameter node involved in any recursion?
-bool
+idl_bool
AST_Exception::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
// Proceed if the number of members in our scope is greater than 0.
if (this->nmembers () > 0)
{
list.enqueue_tail (this);
-
+
// Continue until each element is visited.
for (UTL_ScopeActiveIterator i (this, IK_decls);!i.is_done ();i.next ())
{
@@ -178,7 +178,7 @@ AST_Exception::fe_add_field (AST_Field *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -211,7 +211,7 @@ AST_Exception::fe_add_field (AST_Field *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
AST_Type *ft = t->field_type ();
@@ -220,7 +220,7 @@ AST_Exception::fe_add_field (AST_Field *t)
if (mru != 0)
{
this->add_to_referenced (ft,
- false,
+ I_FALSE,
mru->first_component ());
}
@@ -236,7 +236,7 @@ AST_Exception::fe_add_union (AST_Union *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -269,7 +269,7 @@ AST_Exception::fe_add_union (AST_Union *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -283,7 +283,7 @@ AST_Exception::fe_add_structure (AST_Structure *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -315,7 +315,7 @@ AST_Exception::fe_add_structure (AST_Structure *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -328,7 +328,7 @@ AST_Exception::fe_add_enum (AST_Enum *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -361,7 +361,7 @@ AST_Exception::fe_add_enum (AST_Enum *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -377,7 +377,7 @@ AST_Exception::fe_add_enum_val (AST_EnumVal *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -410,7 +410,7 @@ AST_Exception::fe_add_enum_val (AST_EnumVal *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
diff --git a/TAO/TAO_IDL/ast/ast_expression.cpp b/TAO/TAO_IDL/ast/ast_expression.cpp
index 285f4cfca7f..b321283717c 100644
--- a/TAO/TAO_IDL/ast/ast_expression.cpp
+++ b/TAO/TAO_IDL/ast/ast_expression.cpp
@@ -198,8 +198,9 @@ AST_Expression::AST_Expression (long lv)
this->pd_ev->u.lval = lv;
}
-// An AST_Expression denoting a boolean.
-AST_Expression::AST_Expression (bool b)
+// An AST_Expression denoting a long integer being used as a boolean.
+AST_Expression::AST_Expression (long lv,
+ ExprType t)
: pd_ec (EC_none),
pd_ev (0),
pd_v1 (0),
@@ -212,8 +213,9 @@ AST_Expression::AST_Expression (bool b)
ACE_NEW (this->pd_ev,
AST_ExprValue);
- this->pd_ev->et = EV_bool;
- this->pd_ev->u.bval = b;
+ this->pd_ev->et = EV_long;
+ this->pd_ev->et = t;
+ this->pd_ev->u.lval = lv;
}
// An AST_Expression denoting an unsigned long integer.
@@ -1027,24 +1029,24 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
switch (ev->et)
{
case AST_Expression::EV_short:
- ev->u.bval = (ev->u.sval == 0) ? false : true;
+ ev->u.bval = (ev->u.sval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_ushort:
- ev->u.bval = (ev->u.usval == 0) ? false : true;
+ ev->u.bval = (ev->u.usval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_long:
- ev->u.bval = (ev->u.lval == 0) ? false : true;
+ ev->u.bval = (ev->u.lval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_ulong:
- ev->u.bval = (ev->u.ulval == 0) ? false : true;
+ ev->u.bval = (ev->u.ulval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_longlong:
#if ! defined (ACE_LACKS_LONGLONG_T)
- ev->u.bval = (ev->u.llval == 0) ? false : true;
+ ev->u.bval = (ev->u.llval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
#else /* ! defined (ACE_LACKS_LONGLONG_T) */
@@ -1052,7 +1054,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
case AST_Expression::EV_ulonglong:
#if ! defined (ACE_LACKS_LONGLONG_T)
- ev->u.bval = (ev->u.ullval == 0) ? false : true;
+ ev->u.bval = (ev->u.ullval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
#else /* ! defined (ACE_LACKS_LONGLONG_T) */
@@ -1061,23 +1063,23 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
case AST_Expression::EV_bool:
return ev;
case AST_Expression::EV_float:
- ev->u.bval = (ev->u.fval == 0.0) ? false : true;
+ ev->u.bval = (ev->u.fval == 0.0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_double:
- ev->u.bval = (ev->u.dval == 0.0) ? false : true;
+ ev->u.bval = (ev->u.dval == 0.0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_char:
- ev->u.bval = (ev->u.cval == 0) ? false : true;
+ ev->u.bval = (ev->u.cval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_wchar:
- ev->u.bval = (ev->u.wcval == 0) ? false : true;
+ ev->u.bval = (ev->u.wcval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_octet:
- ev->u.bval = (ev->u.oval == 0) ? false : true;
+ ev->u.bval = (ev->u.oval == 0) ? I_FALSE : I_TRUE;
ev->et = AST_Expression::EV_bool;
return ev;
case AST_Expression::EV_longdouble:
@@ -1131,7 +1133,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
return 0;
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
case AST_Expression::EV_bool:
- ev->u.fval = (float) ((ev->u.bval == true) ? 1.0 : 0.0);
+ ev->u.fval = (float) ((ev->u.bval == I_TRUE) ? 1.0 : 0.0);
ev->et = AST_Expression::EV_float;
return ev;
case AST_Expression::EV_float:
@@ -1211,7 +1213,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
return NULL;
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
case AST_Expression::EV_bool:
- ev->u.dval = (ev->u.bval == true) ? 1.0 : 0.0;
+ ev->u.dval = (ev->u.bval == I_TRUE) ? 1.0 : 0.0;
ev->et = AST_Expression::EV_double;
return ev;
case AST_Expression::EV_float:
@@ -1544,7 +1546,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
return 0;
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
case AST_Expression::EV_bool:
- ev->u.oval = (unsigned char) ((ev->u.bval == false) ? 1 : 0);
+ ev->u.oval = (unsigned char) ((ev->u.bval == I_FALSE) ? 1 : 0);
ev->et = AST_Expression::EV_octet;
return ev;
case AST_Expression::EV_float:
@@ -1636,7 +1638,7 @@ coerce_value (AST_Expression::AST_ExprValue *ev,
// Integer literals may not be assigned to floating point constants,
// and vice versa.
-static bool
+static idl_bool
incompatible_types (AST_Expression::ExprType t1,
AST_Expression::ExprType t2)
{
@@ -1744,7 +1746,7 @@ eval_kind(AST_Expression::AST_ExprValue *ev, AST_Expression::EvalKind ek)
// its sub-expressions.
// Operations supported: '+', '-', '*', '/'
AST_Expression::AST_ExprValue *
-AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
+AST_Expression::eval_bin_op (void)
{
AST_ExprValue *retval = 0;
@@ -1753,118 +1755,60 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
return 0;
}
- this->pd_v1->set_ev (this->pd_v1->eval_internal (ek));
- this->pd_v2->set_ev (this->pd_v2->eval_internal (ek));
+ this->pd_v1->set_ev (this->pd_v1->coerce (EV_double));
- if (this->pd_v1->ev () == 0 || this->pd_v2->ev () == 0)
+ if (this->pd_v1->ev () == 0)
{
return 0;
}
- ACE_NEW_RETURN (retval,
- AST_ExprValue,
- 0);
+ this->pd_v2->set_ev (this->pd_v2->coerce (EV_double));
-#if !defined (ACE_LACKS_LONGLONG_T)
- if (ek == EK_ulonglong)
+ if (pd_v2->ev () == 0)
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_ulonglong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_ulonglong));
- retval->et = EV_ulonglong;
-
- switch (this->pd_ec)
- {
- case EC_add:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval + this->pd_v2->ev ()->u.ullval;
- break;
- case EC_minus:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval - this->pd_v2->ev ()->u.ullval;
- break;
- case EC_mul:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval * this->pd_v2->ev ()->u.ullval;
- break;
- case EC_div:
- if (this->pd_v2->ev ()->u.ullval == 0)
- {
- return 0;
- }
-
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval / this->pd_v2->ev ()->u.ullval;
- break;
- default:
- return 0;
- }
+ return 0;
}
- else if (ek == EK_longlong)
- {
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_longlong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_longlong));
- retval->et = EV_longlong;
- switch (this->pd_ec)
- {
- case EC_add:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval + this->pd_v2->ev ()->u.llval;
- break;
- case EC_minus:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval - this->pd_v2->ev ()->u.llval;
- break;
- case EC_mul:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval * this->pd_v2->ev ()->u.llval;
- break;
- case EC_div:
- if (this->pd_v2->ev ()->u.llval == 0)
- {
- return 0;
- }
+ ACE_NEW_RETURN (retval,
+ AST_ExprValue,
+ 0);
- retval->u.llval =
- this->pd_v1->ev ()->u.llval / this->pd_v2->ev ()->u.llval;
- break;
- default:
- return 0;
- }
- }
- else
-#endif
+ retval->et = EV_double;
+
+ switch (this->pd_ec)
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_double));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_double));
- retval->et = EV_double;
+ case EC_mod:
+ if (this->pd_v2->ev ()->u.lval == 0)
+ {
+ return 0;
+ }
- switch (this->pd_ec)
- {
- case EC_add:
- retval->u.dval =
- this->pd_v1->ev ()->u.dval + this->pd_v2->ev ()->u.dval;
- break;
- case EC_minus:
- retval->u.dval =
- this->pd_v1->ev ()->u.dval - this->pd_v2->ev ()->u.dval;
- break;
- case EC_mul:
- retval->u.dval =
- this->pd_v1->ev ()->u.dval * this->pd_v2->ev ()->u.dval;
- break;
- case EC_div:
- if (this->pd_v2->ev ()->u.dval == 0.0)
- {
- return 0;
- }
+ retval->u.lval =
+ this->pd_v1->ev ()->u.lval % this->pd_v2->ev ()->u.lval;
+ break;
+ case EC_add:
+ retval->u.dval =
+ this->pd_v1->ev ()->u.dval + this->pd_v2->ev ()->u.dval;
+ break;
+ case EC_minus:
+ retval->u.dval =
+ this->pd_v1->ev ()->u.dval - this->pd_v2->ev ()->u.dval;
+ break;
+ case EC_mul:
+ retval->u.dval =
+ this->pd_v1->ev ()->u.dval * this->pd_v2->ev ()->u.dval;
+ break;
+ case EC_div:
+ if (this->pd_v2->ev ()->u.dval == 0.0)
+ {
+ return 0;
+ }
- retval->u.dval =
- this->pd_v1->ev ()->u.dval / this->pd_v2->ev ()->u.dval;
- break;
- default:
- return 0;
- }
+ retval->u.dval =
+ this->pd_v1->ev ()->u.dval / this->pd_v2->ev ()->u.dval;
+ break;
+ default:
+ return 0;
}
return retval;
@@ -1873,7 +1817,7 @@ AST_Expression::eval_bin_op (AST_Expression::EvalKind ek)
// its sub-expressions.
// Operations supported: '%'
AST_Expression::AST_ExprValue *
-AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
+AST_Expression::eval_mod_op (void)
{
AST_ExprValue *retval = 0;
@@ -1882,82 +1826,34 @@ AST_Expression::eval_mod_op (AST_Expression::EvalKind ek)
return 0;
}
- this->pd_v1->set_ev (this->pd_v1->eval_internal (ek));
- this->pd_v2->set_ev (this->pd_v2->eval_internal (ek));
+ this->pd_v1->set_ev (this->pd_v1->coerce (EV_long));
- if (this->pd_v1->ev () == 0 || this->pd_v2->ev () == 0)
+ if (this->pd_v1->ev () == 0)
{
return 0;
}
- ACE_NEW_RETURN (retval,
- AST_ExprValue,
- 0);
-
-#if !defined (ACE_LACKS_LONGLONG_T)
- if (ek == EK_ulonglong)
- {
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_ulonglong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_ulonglong));
- retval->et = EV_ulonglong;
-
- if (this->pd_v2->ev ()->u.ullval == 0)
- {
- return 0;
- }
+ this->pd_v2->set_ev (this->pd_v2->coerce (EV_long));
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval % this->pd_v2->ev ()->u.ullval;
- }
- else if (ek == EK_longlong)
+ if (pd_v2->ev () == 0)
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_longlong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_longlong));
- retval->et = EV_longlong;
-
- if (this->pd_v2->ev ()->u.llval == 0)
- {
- return 0;
- }
-
- retval->u.llval =
- this->pd_v1->ev ()->u.llval % this->pd_v2->ev ()->u.llval;
+ return 0;
}
- else
-#endif
- if (ek == EK_ulong)
- {
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_ulong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_ulong));
- retval->et = EV_ulong;
- if (this->pd_v2->ev ()->u.ulval == 0)
- {
- return 0;
- }
-
- retval->u.ulval =
- this->pd_v1->ev ()->u.ulval % this->pd_v2->ev ()->u.ulval;
- }
- else if (ek == EK_long)
- {
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_long));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_long));
- retval->et = EV_long;
+ ACE_NEW_RETURN (retval,
+ AST_ExprValue,
+ 0);
- if (this->pd_v2->ev ()->u.lval == 0)
- {
- return 0;
- }
+ retval->et = EV_long;
- retval->u.lval =
- this->pd_v1->ev ()->u.lval % this->pd_v2->ev ()->u.lval;
- }
- else
+ if (this->pd_v2->ev ()->u.lval == 0)
{
return 0;
}
+ retval->u.lval =
+ this->pd_v1->ev ()->u.lval % this->pd_v2->ev ()->u.lval;
+
return retval;
}
@@ -1986,81 +1882,35 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
AST_ExprValue,
0);
-#if !defined (ACE_LACKS_LONGLONG_T)
- if (ek == EK_ulonglong)
+ // @@(JP) The rest will have to be expanded to handle 64-bit ints.
+ if (ek == EK_ulong)
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_ulonglong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_ulonglong));
- retval->et = EV_ulonglong;
-
- switch (this->pd_ec)
- {
- case EC_or:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval | this->pd_v2->ev ()->u.ullval;
- break;
- case EC_xor:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval ^ this->pd_v2->ev ()->u.ullval;
- break;
- case EC_and:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval & this->pd_v2->ev ()->u.ullval;
- break;
- case EC_left:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval << this->pd_v2->ev ()->u.ullval;
- break;
- case EC_right:
- retval->u.ullval =
- this->pd_v1->ev ()->u.ullval >> this->pd_v2->ev ()->u.ullval;
- break;
- default:
- return 0;
- }
+ this->pd_v1->set_ev (this->pd_v1->coerce (EV_ulong));
+ this->pd_v2->set_ev (this->pd_v2->coerce (EV_ulong));
+ retval->et = EV_ulong;
}
- else if (ek == EK_longlong)
+ else if (ek == EK_bool)
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_longlong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_longlong));
- retval->et = EV_longlong;
-
- switch (this->pd_ec)
- {
- case EC_or:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval | this->pd_v2->ev ()->u.llval;
- break;
- case EC_xor:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval ^ this->pd_v2->ev ()->u.llval;
- break;
- case EC_and:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval & this->pd_v2->ev ()->u.llval;
- break;
- case EC_left:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval << this->pd_v2->ev ()->u.llval;
- break;
- case EC_right:
- retval->u.llval =
- this->pd_v1->ev ()->u.llval >> this->pd_v2->ev ()->u.llval;
- break;
- default:
- return 0;
- }
+ this->pd_v1->set_ev (this->pd_v1->coerce (EV_bool));
+ this->pd_v2->set_ev (this->pd_v2->coerce (EV_bool));
+ retval->et = EV_bool;
}
else
-#endif
- if (ek == EK_ulong)
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_ulong));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_ulong));
- retval->et = EV_ulong;
+ this->pd_v1->set_ev (this->pd_v1->coerce (EV_long));
+ this->pd_v2->set_ev (this->pd_v2->coerce (EV_long));
+ retval->et = EV_long;
+ }
+
+ if (this->pd_v1->ev () == 0 || this->pd_v2->ev () == 0)
+ {
+ return 0;
+ }
+ if (ek == EK_ulong)
+ {
switch (this->pd_ec)
- {
+ {
case EC_or:
retval->u.ulval =
this->pd_v1->ev ()->u.ulval | this->pd_v2->ev ()->u.ulval;
@@ -2083,16 +1933,12 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
return 0;
- }
+ }
}
- else if (ek == EK_long)
+ else
{
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_long));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_long));
- retval->et = EV_long;
-
switch (this->pd_ec)
- {
+ {
case EC_or:
retval->u.lval =
this->pd_v1->ev ()->u.lval | this->pd_v2->ev ()->u.lval;
@@ -2115,44 +1961,8 @@ AST_Expression::eval_bit_op (AST_Expression::EvalKind ek)
break;
default:
return 0;
- }
- }
- else if (ek == EK_bool)
- {
- this->pd_v1->set_ev (this->pd_v1->coerce (EV_bool));
- this->pd_v2->set_ev (this->pd_v2->coerce (EV_bool));
- retval->et = EV_bool;
-
- switch (this->pd_ec)
- {
- case EC_or:
- retval->u.bval =
- this->pd_v1->ev ()->u.bval | this->pd_v2->ev ()->u.bval;
- break;
- case EC_xor:
- retval->u.bval =
- this->pd_v1->ev ()->u.bval ^ this->pd_v2->ev ()->u.bval;
- break;
- case EC_and:
- retval->u.bval =
- this->pd_v1->ev ()->u.bval & this->pd_v2->ev ()->u.bval;
- break;
- case EC_left:
- retval->u.bval =
- this->pd_v1->ev ()->u.ulval << this->pd_v2->ev ()->u.ulval;
- break;
- case EC_right:
- retval->u.bval =
- this->pd_v1->ev ()->u.ulval >> this->pd_v2->ev ()->u.ulval;
- break;
- default:
- return 0;
}
}
- else
- {
- return 0;
- }
return retval;
}
@@ -2290,7 +2100,7 @@ AST_Expression::eval_symbol (AST_Expression::EvalKind ek)
// Do lookup.
d = s->lookup_by_name (this->pd_n,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -2318,7 +2128,7 @@ AST_Expression::eval_symbol (AST_Expression::EvalKind ek)
return c->constant_value ()->eval_internal (ek);
}
-bool
+idl_bool
AST_Expression::type_mismatch (AST_Expression::ExprType t)
{
if (this->pd_ev != 0)
@@ -2326,8 +2136,8 @@ AST_Expression::type_mismatch (AST_Expression::ExprType t)
return incompatible_types (this->pd_ev->et, t);
}
- bool v1_mismatch = 0;
- bool v2_mismatch = 0;
+ idl_bool v1_mismatch = 0;
+ idl_bool v2_mismatch = 0;
if (this->pd_v1 != 0)
{
@@ -2538,11 +2348,11 @@ AST_Expression::eval_internal (AST_Expression::EvalKind ek)
case EC_minus:
case EC_mul:
case EC_div:
- this->pd_ev = this->eval_bin_op (ek);
+ this->pd_ev = this->eval_bin_op ();
return eval_kind (this->pd_ev,
ek);
case EC_mod:
- this->pd_ev = this->eval_mod_op (ek);
+ this->pd_ev = this->eval_mod_op ();
return eval_kind (this->pd_ev,
ek);
case EC_or:
@@ -2691,7 +2501,7 @@ AST_Expression::compare (AST_Expression *vc)
{
if (this->pd_ec != vc->ec ())
{
- return false;
+ return I_FALSE;
}
this->evaluate (EK_const);
@@ -2699,68 +2509,68 @@ AST_Expression::compare (AST_Expression *vc)
if (this->pd_ev == 0 || vc->ev () == 0)
{
- return false;
+ return I_FALSE;
}
if (this->pd_ev->et != vc->ev ()->et)
{
- return false;
+ return I_FALSE;
}
switch (this->pd_ev->et)
{
case EV_short:
- return this->pd_ev->u.sval == vc->ev ()->u.sval ? true : false;
+ return this->pd_ev->u.sval == vc->ev ()->u.sval ? I_TRUE : I_FALSE;
case EV_ushort:
- return this->pd_ev->u.usval == vc->ev ()->u.usval ? true : false;
+ return this->pd_ev->u.usval == vc->ev ()->u.usval ? I_TRUE : I_FALSE;
case EV_long:
- return this->pd_ev->u.lval == vc->ev ()->u.lval ? true : false;
+ return this->pd_ev->u.lval == vc->ev ()->u.lval ? I_TRUE : I_FALSE;
case EV_ulong:
- return this->pd_ev->u.ulval == vc->ev ()->u.ulval ? true : false;
+ return this->pd_ev->u.ulval == vc->ev ()->u.ulval ? I_TRUE : I_FALSE;
case EV_float:
- return this->pd_ev->u.fval == vc->ev ()->u.fval ? true : false;
+ return this->pd_ev->u.fval == vc->ev ()->u.fval ? I_TRUE : I_FALSE;
case EV_double:
- return this->pd_ev->u.dval == vc->ev ()->u.dval ? true : false;
+ return this->pd_ev->u.dval == vc->ev ()->u.dval ? I_TRUE : I_FALSE;
case EV_char:
- return this->pd_ev->u.cval == vc->ev ()->u.cval ? true : false;
+ return this->pd_ev->u.cval == vc->ev ()->u.cval ? I_TRUE : I_FALSE;
case EV_wchar:
- return this->pd_ev->u.wcval == vc->ev ()->u.wcval ? true : false;
+ return this->pd_ev->u.wcval == vc->ev ()->u.wcval ? I_TRUE : I_FALSE;
case EV_octet:
- return this->pd_ev->u.oval == vc->ev ()->u.oval ? true : false;
+ return this->pd_ev->u.oval == vc->ev ()->u.oval ? I_TRUE : I_FALSE;
case EV_bool:
- return this->pd_ev->u.lval == vc->ev ()->u.lval ? true : false;
+ return this->pd_ev->u.lval == vc->ev ()->u.lval ? I_TRUE : I_FALSE;
case EV_string:
if (this->pd_ev->u.strval == 0)
{
if (vc->ev ()->u.strval == 0)
{
- return true;
+ return I_TRUE;
}
else
{
- return false;
+ return I_FALSE;
}
}
else if (vc->ev ()->u.strval == 0)
{
- return false;
+ return I_FALSE;
}
else
{
- return this->pd_ev->u.strval == vc->ev ()->u.strval ? true : false;
+ return this->pd_ev->u.strval == vc->ev ()->u.strval ? I_TRUE : I_FALSE;
}
case EV_longlong:
#if ! defined (ACE_LACKS_LONGLONG_T)
- return this->pd_ev->u.llval == vc->ev ()->u.llval ? true : false;
+ return this->pd_ev->u.llval == vc->ev ()->u.llval ? I_TRUE : I_FALSE;
#else /* ! defined (ACE_LACKS_LONGLONG_T) */
- return false;
+ return I_FALSE;
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
case EV_ulonglong:
#if ! defined (ACE_LACKS_LONGLONG_T)
- return this->pd_ev->u.ullval == vc->ev ()->u.ullval ? true : false;
+ return this->pd_ev->u.ullval == vc->ev ()->u.ullval ? I_TRUE : I_FALSE;
#else /* ! defined (ACE_LACKS_LONGLONG_T) */
- return false;
+ return I_FALSE;
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
case EV_longdouble:
case EV_wstring:
@@ -2769,10 +2579,10 @@ AST_Expression::compare (AST_Expression *vc)
case EV_none:
case EV_any:
case EV_object:
- return false;
+ return I_FALSE;
}
- return false;
+ return I_FALSE;
}
AST_Decl *
@@ -2848,7 +2658,7 @@ dump_expr_val (ACE_OSTREAM_TYPE &o,
o << ev->u.oval;
break;
case AST_Expression::EV_bool:
- o << (ev->u.bval == true ? "TRUE" : "FALSE");
+ o << (ev->u.bval == I_TRUE ? "TRUE" : "FALSE");
break;
case AST_Expression::EV_string:
if (ev->u.strval != 0)
diff --git a/TAO/TAO_IDL/ast/ast_factory.cpp b/TAO/TAO_IDL/ast/ast_factory.cpp
index f168d1d7738..f78d0a09027 100644
--- a/TAO/TAO_IDL/ast/ast_factory.cpp
+++ b/TAO/TAO_IDL/ast/ast_factory.cpp
@@ -83,7 +83,7 @@ ACE_RCSID (ast,
"$Id$")
AST_Factory::AST_Factory (void)
- : COMMON_Base (),
+ : COMMON_Base (),
AST_Decl (),
UTL_Scope (),
pd_exceptions (0),
@@ -234,7 +234,7 @@ AST_Factory::fe_add_argument (AST_Argument *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -254,7 +254,7 @@ AST_Factory::fe_add_exceptions (UTL_NameList *t)
nl_n = nl_i.item ();
d = this->lookup_by_name (nl_n,
- true);
+ I_TRUE);
if (d == 0 || d->node_type() != AST_Decl::NT_except)
{
diff --git a/TAO/TAO_IDL/ast/ast_generator.cpp b/TAO/TAO_IDL/ast/ast_generator.cpp
index d1ee63b8357..2d66450d03c 100644
--- a/TAO/TAO_IDL/ast/ast_generator.cpp
+++ b/TAO/TAO_IDL/ast/ast_generator.cpp
@@ -98,8 +98,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ast_generator.h"
-ACE_RCSID (ast,
- ast_generator,
+ACE_RCSID (ast,
+ ast_generator,
"$Id$")
AST_PredefinedType *
@@ -202,8 +202,8 @@ AST_Generator::create_interface (UTL_ScopedName *n,
long n_inherits,
AST_Interface **inherits_flat,
long n_inherits_flat,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Interface *retval = 0;
ACE_NEW_RETURN (retval,
@@ -221,8 +221,8 @@ AST_Generator::create_interface (UTL_ScopedName *n,
AST_InterfaceFwd *
AST_Generator::create_interface_fwd (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_InterfaceFwd *retval = 0;
ACE_NEW_RETURN (retval,
@@ -249,9 +249,9 @@ AST_Generator::create_valuetype (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
{
AST_ValueType *retval = 0;
ACE_NEW_RETURN (retval,
@@ -282,7 +282,7 @@ AST_Generator::create_valuetype (UTL_ScopedName *n,
AST_ValueTypeFwd *
AST_Generator::create_valuetype_fwd (UTL_ScopedName *n,
- bool abstract)
+ idl_bool abstract)
{
AST_ValueType *dummy = this->create_valuetype (n,
0,
@@ -294,8 +294,8 @@ AST_Generator::create_valuetype_fwd (UTL_ScopedName *n,
0,
0,
abstract,
- false,
- false);
+ I_FALSE,
+ I_FALSE);
AST_ValueTypeFwd *retval = 0;
ACE_NEW_RETURN (retval,
@@ -316,9 +316,9 @@ AST_Generator::create_eventtype (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
{
AST_EventType *retval = 0;
ACE_NEW_RETURN (retval,
@@ -349,7 +349,7 @@ AST_Generator::create_eventtype (UTL_ScopedName *n,
AST_EventTypeFwd *
AST_Generator::create_eventtype_fwd (UTL_ScopedName *n,
- bool abstract)
+ idl_bool abstract)
{
AST_EventType *dummy = this->create_eventtype (n,
0,
@@ -361,8 +361,8 @@ AST_Generator::create_eventtype_fwd (UTL_ScopedName *n,
0,
0,
abstract,
- false,
- false);
+ I_FALSE,
+ I_FALSE);
AST_EventTypeFwd *retval = 0;
ACE_NEW_RETURN (retval,
@@ -440,8 +440,8 @@ AST_Generator::create_home (UTL_ScopedName *n,
AST_Exception *
AST_Generator::create_exception (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Exception *retval = 0;
ACE_NEW_RETURN (retval,
@@ -455,8 +455,8 @@ AST_Generator::create_exception (UTL_ScopedName *n,
AST_Structure *
AST_Generator::create_structure (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Structure *retval = 0;
ACE_NEW_RETURN (retval,
@@ -485,8 +485,8 @@ AST_Generator::create_structure_fwd (UTL_ScopedName *n)
AST_Enum *
AST_Generator::create_enum (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Enum *retval = 0;
ACE_NEW_RETURN (retval,
@@ -502,8 +502,8 @@ AST_Operation *
AST_Generator::create_operation (AST_Type *rt,
AST_Operation::Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Operation *retval = 0;
ACE_NEW_RETURN (retval,
@@ -548,11 +548,11 @@ AST_Generator::create_argument (AST_Argument::Direction d,
}
AST_Attribute *
-AST_Generator::create_attribute (bool ro,
+AST_Generator::create_attribute (idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Attribute *retval = 0;
ACE_NEW_RETURN (retval,
@@ -569,8 +569,8 @@ AST_Generator::create_attribute (bool ro,
AST_Union *
AST_Generator::create_union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Union *retval = 0;
ACE_NEW_RETURN (retval,
@@ -693,11 +693,13 @@ AST_Generator::create_expr (long v)
}
AST_Expression *
-AST_Generator::create_expr (bool b)
+AST_Generator::create_expr (long v,
+ AST_Expression::ExprType t)
{
AST_Expression *retval = 0;
ACE_NEW_RETURN (retval,
- AST_Expression (b),
+ AST_Expression (v,
+ t),
0);
return retval;
@@ -709,7 +711,7 @@ AST_Generator::create_expr (idl_uns_long v,
{
AST_Expression *retval = 0;
ACE_NEW_RETURN (retval,
- AST_Expression (v,
+ AST_Expression (v,
t),
0);
@@ -788,8 +790,8 @@ AST_Array *
AST_Generator::create_array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Array *retval = 0;
ACE_NEW_RETURN (retval,
@@ -807,8 +809,8 @@ AST_Sequence *
AST_Generator::create_sequence (AST_Expression *ms,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Sequence *retval = 0;
ACE_NEW_RETURN (retval,
@@ -856,7 +858,7 @@ AST_Generator::create_wstring (AST_Expression *ms)
AST_String (nt,
&n,
ms,
- sizeof (ACE_OS::WChar)),
+ sizeof (wchar_t)),
0);
return retval;
@@ -865,8 +867,8 @@ AST_Generator::create_wstring (AST_Expression *ms)
AST_Typedef *
AST_Generator::create_typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Typedef *retval = 0;
ACE_NEW_RETURN (retval,
diff --git a/TAO/TAO_IDL/ast/ast_home.cpp b/TAO/TAO_IDL/ast/ast_home.cpp
index 1b927cbcbdf..865a6d122d9 100644
--- a/TAO/TAO_IDL/ast/ast_home.cpp
+++ b/TAO/TAO_IDL/ast/ast_home.cpp
@@ -10,8 +10,8 @@
#include "utl_err.h"
#include "global_extern.h"
-ACE_RCSID (ast,
- ast_home,
+ACE_RCSID (ast,
+ ast_home,
"$Id$")
AST_Home::AST_Home (void)
@@ -34,8 +34,8 @@ AST_Home::AST_Home (UTL_ScopedName *n,
long n_supports,
AST_Interface **supports_flat,
long n_supports_flat)
- : COMMON_Base (false,
- false),
+ : COMMON_Base (I_FALSE,
+ I_FALSE),
AST_Decl (AST_Decl::NT_home,
n),
AST_Type (AST_Decl::NT_home,
@@ -46,8 +46,8 @@ AST_Home::AST_Home (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat,
- false,
- false),
+ I_FALSE,
+ I_FALSE),
pd_base_home (base_home),
pd_managed_component (managed_component),
pd_primary_key (primary_key)
@@ -64,22 +64,22 @@ AST_Home::~AST_Home (void)
AST_Decl *
AST_Home::look_in_inherited (UTL_ScopedName *e,
- bool treat_as_ref)
+ idl_bool treat_as_ref)
{
AST_Decl *d = 0;
-
+
if (this->pd_base_home != 0)
{
d = this->pd_base_home->lookup_by_name (e, treat_as_ref);
}
-
+
return d;
}
// Look through supported interface list.
AST_Decl *
AST_Home::look_in_supported (UTL_ScopedName *e,
- bool treat_as_ref)
+ idl_bool treat_as_ref)
{
AST_Decl *d = 0;
AST_Interface **is = 0;
@@ -110,7 +110,7 @@ AST_Home::look_in_supported (UTL_ScopedName *e,
break;
}
}
-
+
return d;
}
@@ -129,7 +129,7 @@ AST_Home::supports (void) const
return this->pd_base_home ? this->inherits () + 1 : this->inherits ();
}
-long
+long
AST_Home::n_supports (void) const
{
return this->n_inherits ();
diff --git a/TAO/TAO_IDL/ast/ast_interface.cpp b/TAO/TAO_IDL/ast/ast_interface.cpp
index b6fa8f38f18..791e335f79e 100644
--- a/TAO/TAO_IDL/ast/ast_interface.cpp
+++ b/TAO/TAO_IDL/ast/ast_interface.cpp
@@ -110,10 +110,10 @@ AST_Interface::AST_Interface (void)
pd_n_inherits (0),
pd_inherits_flat (0),
pd_n_inherits_flat (0),
- home_equiv_ (false)
+ home_equiv_ (I_FALSE)
{
this->size_type (AST_Type::VARIABLE); // Always the case.
- this->has_constructor (true); // Always the case.
+ this->has_constructor (I_TRUE); // Always the case.
}
AST_Interface::AST_Interface (UTL_ScopedName *n,
@@ -121,8 +121,8 @@ AST_Interface::AST_Interface (UTL_ScopedName *n,
long nih,
AST_Interface **ih_flat,
long nih_flat,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_interface,
@@ -134,10 +134,10 @@ AST_Interface::AST_Interface (UTL_ScopedName *n,
pd_n_inherits (nih),
pd_inherits_flat (ih_flat),
pd_n_inherits_flat (nih_flat),
- home_equiv_ (false)
+ home_equiv_ (I_FALSE)
{
this->size_type (AST_Type::VARIABLE); // always the case
- this->has_constructor (true); // always the case
+ this->has_constructor (I_TRUE); // always the case
}
AST_Interface::~AST_Interface (void)
@@ -155,10 +155,10 @@ AST_Interface::be_replace_operation (AST_Decl *old_op,
new_op);
}
-AST_Operation *
+void
AST_Interface::be_add_operation (AST_Operation *op)
{
- return this->fe_add_operation (op);
+ (void) this->fe_add_operation (op);
}
// Add an AST_Constant node (a constant declaration) to this scope.
@@ -177,7 +177,7 @@ AST_Interface::fe_add_constant (AST_Constant *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -210,7 +210,7 @@ AST_Interface::fe_add_constant (AST_Constant *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -232,7 +232,7 @@ AST_Interface::fe_add_exception (AST_Exception *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -265,7 +265,7 @@ AST_Interface::fe_add_exception (AST_Exception *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -288,7 +288,7 @@ AST_Interface::fe_add_attribute (AST_Attribute *t)
/*
* Already defined and cannot be redefined? Or already used?
*/
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -321,7 +321,7 @@ AST_Interface::fe_add_attribute (AST_Attribute *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -335,7 +335,7 @@ AST_Interface::fe_add_field (AST_Field *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -368,7 +368,7 @@ AST_Interface::fe_add_field (AST_Field *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
AST_Type *ft = t->field_type ();
@@ -377,7 +377,7 @@ AST_Interface::fe_add_field (AST_Field *t)
if (mru != 0)
{
this->add_to_referenced (ft,
- false,
+ I_FALSE,
mru->first_component ());
}
@@ -400,7 +400,7 @@ AST_Interface::fe_add_operation (AST_Operation *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -427,7 +427,7 @@ AST_Interface::fe_add_operation (AST_Operation *t)
return 0;
}
}
- else if ((d = this->look_in_inherited (t->name (), false)) != 0)
+ else if ((d = this->look_in_inherited (t->name (), I_FALSE)) != 0)
{
if (d->node_type () == AST_Decl::NT_op)
{
@@ -444,7 +444,7 @@ AST_Interface::fe_add_operation (AST_Operation *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -457,7 +457,7 @@ AST_Interface::fe_add_structure (AST_Structure *t)
AST_Decl *predef = 0;
AST_StructureFwd *fwd = 0;
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_struct_fwd)
@@ -523,7 +523,7 @@ AST_Interface::fe_add_structure (AST_Structure *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -537,7 +537,7 @@ AST_Interface::fe_add_structure_fwd (AST_StructureFwd *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -598,7 +598,7 @@ AST_Interface::fe_add_structure_fwd (AST_StructureFwd *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
// Must check later that all struct and union forward declarations
@@ -623,7 +623,7 @@ AST_Interface::fe_add_enum (AST_Enum *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -656,7 +656,7 @@ AST_Interface::fe_add_enum (AST_Enum *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -669,7 +669,7 @@ AST_Interface::fe_add_union (AST_Union *t)
AST_Decl *predef = 0;
AST_UnionFwd *fwd = 0;
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_union_fwd)
@@ -735,7 +735,7 @@ AST_Interface::fe_add_union (AST_Union *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -749,7 +749,7 @@ AST_Interface::fe_add_union_fwd (AST_UnionFwd *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -810,7 +810,7 @@ AST_Interface::fe_add_union_fwd (AST_UnionFwd *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
// Must check later that all struct and union forward declarations
@@ -838,7 +838,7 @@ AST_Interface::fe_add_enum_val (AST_EnumVal *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -871,7 +871,7 @@ AST_Interface::fe_add_enum_val (AST_EnumVal *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -893,7 +893,7 @@ AST_Interface::fe_add_typedef (AST_Typedef *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -926,7 +926,7 @@ AST_Interface::fe_add_typedef (AST_Typedef *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
AST_Type *bt = t->base_type ();
@@ -936,7 +936,7 @@ AST_Interface::fe_add_typedef (AST_Typedef *t)
{
this->add_to_referenced (
bt,
- false,
+ I_FALSE,
mru->first_component ()
);
}
@@ -960,7 +960,7 @@ AST_Interface::fe_add_native (AST_Native *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -993,7 +993,7 @@ AST_Interface::fe_add_native (AST_Native *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1219,21 +1219,21 @@ AST_Interface::redef_clash_populate_r (AST_Interface *t)
}
}
-bool
+idl_bool
AST_Interface::home_equiv (void) const
{
return this->home_equiv_;
}
void
-AST_Interface::home_equiv (bool val)
+AST_Interface::home_equiv (idl_bool val)
{
this->home_equiv_ = val;
}
int
AST_Interface::insert_non_dup (AST_Interface *t,
- bool abstract_paths_only)
+ idl_bool abstract_paths_only)
{
// Now check if the dequeued element has any ancestors. If yes, insert
// them inside the queue making sure that there are no duplicates.
@@ -1328,7 +1328,7 @@ AST_Interface::redefine (AST_Interface *from)
this->set_imported (idl_global->imported ());
this->set_in_main_file (idl_global->in_main_file ());
this->set_line (idl_global->lineno ());
- this->set_file_name (idl_global->filename ()->get_string ());
+ this->set_file_name (idl_global->filename ());
this->ifr_added_ = from->ifr_added_;
this->ifr_fwd_added_ = from->ifr_fwd_added_;
}
@@ -1371,7 +1371,7 @@ AST_Interface::get_del_queue (void)
return this->del_queue;
}
-bool
+idl_bool
AST_Interface::redef_clash (void)
{
this->insert_queue.reset ();
@@ -1454,7 +1454,7 @@ AST_Interface::redef_clash (void)
Identifier *pid2 = group2_member_item->local_name ();
- if (pid1->compare (pid2) == true)
+ if (pid1->compare (pid2) == I_TRUE)
{
idl_global->err ()->error3 (
UTL_Error::EIDL_REDEF,
@@ -1464,7 +1464,7 @@ AST_Interface::redef_clash (void)
);
return 1;
}
- else if (pid1->case_compare_quiet (pid2) == true)
+ else if (pid1->case_compare_quiet (pid2) == I_TRUE)
{
if (idl_global->case_diff_error ())
{
@@ -1498,7 +1498,7 @@ AST_Interface::redef_clash (void)
// Look through inherited interfaces.
AST_Decl *
AST_Interface::look_in_inherited (UTL_ScopedName *e,
- bool treat_as_ref)
+ idl_bool treat_as_ref)
{
AST_Decl *d = 0;
AST_Decl *d_before = 0;
@@ -1567,7 +1567,7 @@ AST_Interface::look_in_inherited (UTL_ScopedName *e,
AST_Decl *
AST_Interface::lookup_for_add (AST_Decl *d,
- bool /* treat_as_ref */)
+ idl_bool /* treat_as_ref */)
{
if (d == 0)
{
diff --git a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp b/TAO/TAO_IDL/ast/ast_interface_fwd.cpp
index ad57956a211..9f1dd7028d9 100644
--- a/TAO/TAO_IDL/ast/ast_interface_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_interface_fwd.cpp
@@ -74,8 +74,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ast_visitor.h"
#include "utl_identifier.h"
-ACE_RCSID( ast,
- ast_interface_fwd,
+ACE_RCSID( ast,
+ ast_interface_fwd,
"$Id$")
AST_InterfaceFwd::AST_InterfaceFwd (void)
@@ -107,18 +107,18 @@ AST_InterfaceFwd::~AST_InterfaceFwd (void)
// Private operations.
-bool
+idl_bool
AST_InterfaceFwd::is_local (void)
{
return this->full_definition ()->is_local ();
}
-bool AST_InterfaceFwd::is_valuetype (void)
+idl_bool AST_InterfaceFwd::is_valuetype (void)
{
return this->full_definition ()->node_type () == AST_Decl::NT_valuetype;
}
-bool
+idl_bool
AST_InterfaceFwd::is_abstract_valuetype (void)
{
return (this->full_definition ()->is_abstract ()
@@ -167,7 +167,7 @@ AST_InterfaceFwd::set_full_definition (AST_Interface *nfd)
this->pd_full_definition = nfd;
}
-bool
+idl_bool
AST_InterfaceFwd::is_defined (void)
{
return this->pd_full_definition->is_defined ();
diff --git a/TAO/TAO_IDL/ast/ast_module.cpp b/TAO/TAO_IDL/ast/ast_module.cpp
index f3c43f66947..eb7aff2a1bc 100644
--- a/TAO/TAO_IDL/ast/ast_module.cpp
+++ b/TAO/TAO_IDL/ast/ast_module.cpp
@@ -127,7 +127,7 @@ AST_Module::fe_add_predefined_type (AST_PredefinedType *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -160,7 +160,7 @@ AST_Module::fe_add_predefined_type (AST_PredefinedType *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -193,7 +193,7 @@ AST_Module::fe_add_module (AST_Module *t)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -252,7 +252,7 @@ AST_Module::fe_add_module (AST_Module *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
}
@@ -272,7 +272,7 @@ AST_Module::fe_add_interface (AST_Interface *t)
AST_Interface *fwd = 0;
// Already defined?
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_interface)
@@ -342,7 +342,7 @@ AST_Module::fe_add_interface (AST_Interface *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
}
@@ -355,7 +355,7 @@ AST_Module::fe_add_valuebox (AST_ValueBox *t)
AST_Decl *predef = 0;
// Already defined and cannot be redefined? Or already used?
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (predef))
{
@@ -389,7 +389,7 @@ AST_Module::fe_add_valuebox (AST_ValueBox *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
}
@@ -408,7 +408,7 @@ AST_Module::fe_add_valuetype (AST_ValueType *t)
AST_ValueType *fwd = 0;
// Already defined?
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_valuetype)
@@ -477,7 +477,7 @@ AST_Module::fe_add_valuetype (AST_ValueType *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
}
@@ -495,7 +495,7 @@ AST_Module::fe_add_eventtype (AST_EventType *t)
AST_EventType *fwd = 0;
// Already defined?
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_eventtype)
@@ -564,7 +564,7 @@ AST_Module::fe_add_eventtype (AST_EventType *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
}
@@ -582,7 +582,7 @@ AST_Module::fe_add_component (AST_Component *t)
AST_Component *fwd = 0;
// Already defined?
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_component)
@@ -651,7 +651,7 @@ AST_Module::fe_add_component (AST_Component *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
}
@@ -663,7 +663,7 @@ AST_Module::fe_add_home (AST_Home *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -709,7 +709,7 @@ AST_Module::fe_add_interface_fwd (AST_InterfaceFwd *i)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (i, false)) != 0)
+ if ((d = this->lookup_for_add (i, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -770,7 +770,7 @@ AST_Module::fe_add_interface_fwd (AST_InterfaceFwd *i)
// Add it to set of locally referenced symbols
this->add_to_referenced (i,
- false,
+ I_FALSE,
i->local_name ());
return i;
@@ -784,7 +784,7 @@ AST_Module::fe_add_valuetype_fwd (AST_ValueTypeFwd *v)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (v, false)) != 0)
+ if ((d = this->lookup_for_add (v, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -851,7 +851,7 @@ AST_Module::fe_add_valuetype_fwd (AST_ValueTypeFwd *v)
// Add it to set of locally referenced symbols
this->add_to_referenced (v,
- false,
+ I_FALSE,
v->local_name ());
return v;
@@ -865,7 +865,7 @@ AST_Module::fe_add_eventtype_fwd (AST_EventTypeFwd *v)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (v, false)) != 0)
+ if ((d = this->lookup_for_add (v, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -932,7 +932,7 @@ AST_Module::fe_add_eventtype_fwd (AST_EventTypeFwd *v)
// Add it to set of locally referenced symbols
this->add_to_referenced (v,
- false,
+ I_FALSE,
v->local_name ());
return v;
@@ -946,7 +946,7 @@ AST_Module::fe_add_component_fwd (AST_ComponentFwd *c)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (c, false)) != 0)
+ if ((d = this->lookup_for_add (c, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -1013,7 +1013,7 @@ AST_Module::fe_add_component_fwd (AST_ComponentFwd *c)
// Add it to set of locally referenced symbols
this->add_to_referenced (c,
- false,
+ I_FALSE,
c->local_name ());
return c;
@@ -1026,7 +1026,7 @@ AST_Module::fe_add_constant (AST_Constant *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1059,7 +1059,7 @@ AST_Module::fe_add_constant (AST_Constant *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1072,7 +1072,7 @@ AST_Module::fe_add_exception (AST_Exception *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1105,7 +1105,7 @@ AST_Module::fe_add_exception (AST_Exception *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1116,7 +1116,7 @@ AST_Union *
AST_Module::fe_add_union (AST_Union *t)
{
AST_UnionFwd *fwd = 0;
- AST_Decl *predef = this->lookup_for_add (t, false);
+ AST_Decl *predef = this->lookup_for_add (t, I_FALSE);
if (predef != 0)
{
@@ -1188,7 +1188,7 @@ AST_Module::fe_add_union (AST_Union *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1202,7 +1202,7 @@ AST_Module::fe_add_union_fwd (AST_UnionFwd *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -1262,7 +1262,7 @@ AST_Module::fe_add_union_fwd (AST_UnionFwd *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
// Must check later that all struct and union forward declarations
@@ -1278,7 +1278,7 @@ AST_Module::fe_add_structure (AST_Structure *t)
AST_Decl *predef = 0;
AST_StructureFwd *fwd = 0;
- if ((predef = this->lookup_for_add (t, false)) != 0)
+ if ((predef = this->lookup_for_add (t, I_FALSE)) != 0)
{
// Treat fwd declared interfaces specially
if (predef->node_type () == AST_Decl::NT_struct_fwd)
@@ -1348,7 +1348,7 @@ AST_Module::fe_add_structure (AST_Structure *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1362,7 +1362,7 @@ AST_Module::fe_add_structure_fwd (AST_StructureFwd *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
AST_Decl::NodeType nt = d->node_type ();
@@ -1422,7 +1422,7 @@ AST_Module::fe_add_structure_fwd (AST_StructureFwd *t)
// Add it to set of locally referenced symbols
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
// Must check later that all struct and union forward declarations
@@ -1438,7 +1438,7 @@ AST_Module::fe_add_enum (AST_Enum *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1471,7 +1471,7 @@ AST_Module::fe_add_enum (AST_Enum *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1487,7 +1487,7 @@ AST_Module::fe_add_enum_val (AST_EnumVal *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add(t, false)) != 0)
+ if ((d = this->lookup_for_add(t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1520,7 +1520,7 @@ AST_Module::fe_add_enum_val (AST_EnumVal *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1533,7 +1533,7 @@ AST_Module::fe_add_typedef (AST_Typedef *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add(t, false)) != 0)
+ if ((d = this->lookup_for_add(t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1566,7 +1566,7 @@ AST_Module::fe_add_typedef (AST_Typedef *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
AST_Type *bt = t->base_type ();
@@ -1575,7 +1575,7 @@ AST_Module::fe_add_typedef (AST_Typedef *t)
if (mru != 0)
{
this->add_to_referenced (bt,
- false,
+ I_FALSE,
mru->first_component ());
}
@@ -1589,7 +1589,7 @@ AST_Module::fe_add_native (AST_Native *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1622,7 +1622,7 @@ AST_Module::fe_add_native (AST_Native *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1660,7 +1660,7 @@ AST_Module::set_has_nested_valuetype (void)
this->pd_has_nested_valuetype = 1;
}
-bool
+idl_bool
AST_Module::has_nested_valuetype (void)
{
return this->pd_has_nested_valuetype;
@@ -1676,7 +1676,7 @@ AST_Module::be_add_interface (AST_Interface *i,
// Add it to set of locally referenced symbols.
this->add_to_referenced (i,
- false,
+ I_FALSE,
i->local_name (),
ix);
@@ -1684,17 +1684,17 @@ AST_Module::be_add_interface (AST_Interface *i,
}
// Has this node been referenced here before?
-bool
+idl_bool
AST_Module::referenced (AST_Decl *e,
Identifier *id)
{
- bool refd = this->UTL_Scope::referenced (e, id);
-
+ idl_bool refd = this->UTL_Scope::referenced (e, id);
+
if (refd)
{
- return true;
+ return I_TRUE;
}
-
+
return this->look_in_previous (e->local_name (), true) != 0;
}
@@ -1763,11 +1763,11 @@ AST_Module::look_in_previous (Identifier *e, bool ignore_fwd)
iter.advance ())
{
iter.next (d);
-
+
if (ignore_fwd)
{
AST_Decl::NodeType nt = (*d)->node_type ();
-
+
if (nt == AST_Decl::NT_interface_fwd
|| nt == AST_Decl::NT_eventtype_fwd
|| nt == AST_Decl::NT_component_fwd
diff --git a/TAO/TAO_IDL/ast/ast_native.cpp b/TAO/TAO_IDL/ast/ast_native.cpp
index baf2ff321be..c9bf8bd59d2 100644
--- a/TAO/TAO_IDL/ast/ast_native.cpp
+++ b/TAO/TAO_IDL/ast/ast_native.cpp
@@ -3,8 +3,8 @@
#include "ast_native.h"
#include "ast_visitor.h"
-ACE_RCSID (ast,
- ast_native,
+ACE_RCSID (ast,
+ ast_native,
"$Id$")
AST_Native::AST_Native (void)
@@ -29,11 +29,11 @@ AST_Native::AST_Native (UTL_ScopedName *n)
UTL_Scope (AST_Decl::NT_native),
AST_Structure (AST_Decl::NT_native,
n,
- true,
- false),
+ I_TRUE,
+ I_FALSE),
AST_Exception (n,
- true,
- false)
+ I_TRUE,
+ I_FALSE)
{
}
diff --git a/TAO/TAO_IDL/ast/ast_operation.cpp b/TAO/TAO_IDL/ast/ast_operation.cpp
index fd4abf11824..5a98f6298cd 100644
--- a/TAO/TAO_IDL/ast/ast_operation.cpp
+++ b/TAO/TAO_IDL/ast/ast_operation.cpp
@@ -87,8 +87,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_strlist.h"
#include "global_extern.h"
-ACE_RCSID (ast,
- ast_operation,
+ACE_RCSID (ast,
+ ast_operation,
"$Id$")
AST_Operation::AST_Operation (void)
@@ -107,8 +107,8 @@ AST_Operation::AST_Operation (void)
AST_Operation::AST_Operation (AST_Type *rt,
Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl(AST_Decl::NT_op,
@@ -332,7 +332,7 @@ AST_Operation::fe_add_exceptions (UTL_NameList *t)
for (UTL_NamelistActiveIterator nl_i (t); !nl_i.is_done (); nl_i.next ())
{
nl_n = nl_i.item ();
- d = this->lookup_by_name (nl_n, true);
+ d = this->lookup_by_name (nl_n, I_TRUE);
if (d == 0)
{
@@ -429,7 +429,7 @@ AST_Operation::fe_add_argument (AST_Argument *t)
// This error is not caught in y.tab.cpp so we check for it here.
if (arg_type->node_type () == AST_Decl::NT_array
- && arg_type->anonymous () == true)
+ && arg_type->anonymous () == I_TRUE)
{
idl_global->err ()->syntax_error (idl_global->parse_state ());
}
@@ -439,7 +439,7 @@ AST_Operation::fe_add_argument (AST_Argument *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
UTL_ScopedName *mru = arg_type->last_referenced_as ();
@@ -447,7 +447,7 @@ AST_Operation::fe_add_argument (AST_Argument *t)
if (mru != 0)
{
this->add_to_referenced (arg_type,
- false,
+ I_FALSE,
mru->first_component ());
}
diff --git a/TAO/TAO_IDL/ast/ast_predefined_type.cpp b/TAO/TAO_IDL/ast/ast_predefined_type.cpp
index 0f45b9b9a34..ae9fb0a9493 100644
--- a/TAO/TAO_IDL/ast/ast_predefined_type.cpp
+++ b/TAO/TAO_IDL/ast/ast_predefined_type.cpp
@@ -76,10 +76,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_identifier.h"
#include "global_extern.h"
#include "ace/Log_Msg.h"
-#include "ace/OS_NS_stdio.h"
-ACE_RCSID (ast,
- ast_predefined_type,
+ACE_RCSID (ast,
+ ast_predefined_type,
"$Id$")
AST_PredefinedType::AST_PredefinedType (void)
@@ -96,7 +95,7 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
: COMMON_Base (),
AST_Decl (AST_Decl::NT_pre_defined,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_pre_defined,
n),
AST_ConcreteType (AST_Decl::NT_pre_defined,
@@ -210,22 +209,6 @@ AST_PredefinedType::AST_PredefinedType (PredefinedType t,
new_name->nconc (conc_name);
}
- // The repo id computation in the AST_Decl constructor can't
- // be easily modified to work for predefined types.
- ACE_CString repo_id = ACE_CString ("IDL:omg.org/CORBA/")
- + id->get_string ()
- + ":"
- + this->version ();
- delete [] this->repoID_;
- size_t len = repo_id.length ();
- ACE_NEW (this->repoID_,
- char[len + 1]);
- this->repoID_[0] = '\0';
- ACE_OS::sprintf (this->repoID_,
- "%s",
- repo_id.c_str ());
- this->repoID_[len] = '\0';
-
this->set_name (new_name);
}
diff --git a/TAO/TAO_IDL/ast/ast_recursive.cpp b/TAO/TAO_IDL/ast/ast_recursive.cpp
index 1603b184a0b..d95c3cc6cd4 100644
--- a/TAO/TAO_IDL/ast/ast_recursive.cpp
+++ b/TAO/TAO_IDL/ast/ast_recursive.cpp
@@ -84,11 +84,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "global_extern.h"
#include "nr_extern.h"
-ACE_RCSID (ast,
- ast_recursive,
+ACE_RCSID (ast,
+ ast_recursive,
"$Id$")
-bool
+idl_bool
AST_illegal_interface_recursion (AST_Decl *t)
{
// Can't be 0 since we know we have an interface or valuetype.
@@ -100,34 +100,34 @@ AST_illegal_interface_recursion (AST_Decl *t)
i.next ())
{
d = ScopeAsDecl (i.item ());
-
+
// Exceptions cannot be recursive, but may contain a reference
// to the interface they are defined in.
if (d->node_type () == AST_Decl::NT_except)
{
- return false;
+ return I_FALSE;
}
-
+
if (d == t)
{
- return true;
+ return I_TRUE;
}
}
- return false;
+ return I_FALSE;
}
-bool
+idl_bool
AST_illegal_recursive_type (AST_Decl *t)
{
if (t == 0)
{
- return false;
+ return I_FALSE;
}
-
+
AST_Decl::NodeType nt;
AST_Type *ut = AST_Type::narrow_from_decl (t);
-
+
if (ut != 0)
{
ut = ut->unaliased_type ();
@@ -137,7 +137,7 @@ AST_illegal_recursive_type (AST_Decl *t)
{
nt = t->node_type ();
}
-
+
if (nt == AST_Decl::NT_interface)
{
// Check for interface->struct/union->....->interface nesting.
@@ -146,37 +146,37 @@ AST_illegal_recursive_type (AST_Decl *t)
else if (nt != AST_Decl::NT_struct && nt != AST_Decl::NT_union)
{
// Structs and unions fall through to the check below.
- return false; // NOT ILLEGAL.
+ return I_FALSE; // NOT ILLEGAL.
}
- bool check_for_struct = false;
- bool check_for_union = false;
- AST_Structure *st1 = 0;
- AST_Union *un1 = 0;
+ idl_bool check_for_struct = I_FALSE;
+ idl_bool check_for_union = I_FALSE;
+ AST_Structure *st1 = 0;
+ AST_Union *un1 = 0;
// Narrow the type appropriately so comparison will work.
if (t->node_type () == AST_Decl::NT_struct)
{
- check_for_struct = true;
+ check_for_struct = I_TRUE;
st1 = AST_Structure::narrow_from_decl (t);
if (st1 == 0)
{
- return false; // NOT ILLEGAL.
+ return I_FALSE; // NOT ILLEGAL.
}
}
else if (t->node_type () == AST_Decl::NT_union)
{
- check_for_union = true;
+ check_for_union = I_TRUE;
un1 = AST_Union::narrow_from_decl (t);
if (un1 == 0)
{
- return false; // NOT ILLEGAL.
+ return I_FALSE; // NOT ILLEGAL.
}
}
- UTL_Scope *s = 0;
+ UTL_Scope *s = 0;
AST_Structure *st2 = 0;
AST_Union *un2 = 0;
@@ -191,33 +191,33 @@ AST_illegal_recursive_type (AST_Decl *t)
// a sequence, where recursive types may be used.
if (s == 0)
{
- return false; // NOT ILLEGAL.
+ return I_FALSE; // NOT ILLEGAL.
}
// OK, must check this scope.
if (s->scope_node_type () == AST_Decl::NT_struct
- && check_for_struct == true)
+ && check_for_struct == I_TRUE)
{
st2 = AST_Structure::narrow_from_scope (s);
if (st2 != 0 && st2 == st1)
{
- return true; // ILLEGAL RECURSIVE TYPE USE.
+ return I_TRUE; // ILLEGAL RECURSIVE TYPE USE.
}
}
else if (s->scope_node_type () == AST_Decl::NT_union
- && check_for_union == true)
+ && check_for_union == I_TRUE)
{
un2 = AST_Union::narrow_from_scope (s);
if (un2 != 0 && un2 == un1)
{
- return true; // ILLEGAL RECURSIVE TYPE USE.
+ return I_TRUE; // ILLEGAL RECURSIVE TYPE USE.
}
}
}
// No more scopes to check. This type was used legally.
- return false; // NOT ILLEGAL.
+ return I_FALSE; // NOT ILLEGAL.
}
diff --git a/TAO/TAO_IDL/ast/ast_redef.cpp b/TAO/TAO_IDL/ast/ast_redef.cpp
index 92043ccba80..d729fe93466 100644
--- a/TAO/TAO_IDL/ast/ast_redef.cpp
+++ b/TAO/TAO_IDL/ast/ast_redef.cpp
@@ -66,13 +66,13 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ast_decl.h"
-ACE_RCSID (ast,
- ast_redef,
+ACE_RCSID (ast,
+ ast_redef,
"$Id$")
// Return TRUE if the node d represents an IDL construct whose name
// can be redefined.
-bool
+idl_bool
can_be_redefined (AST_Decl *d)
{
switch (d->node_type ())
@@ -102,7 +102,7 @@ can_be_redefined (AST_Decl *d)
case AST_Decl::NT_enum:
case AST_Decl::NT_typedef:
case AST_Decl::NT_valuebox:
- return true;
+ return I_TRUE;
case AST_Decl::NT_union_branch:
case AST_Decl::NT_field:
@@ -111,7 +111,7 @@ can_be_redefined (AST_Decl *d)
case AST_Decl::NT_pre_defined:
case AST_Decl::NT_factory:
default:
- return false;
+ return I_FALSE;
}
}
diff --git a/TAO/TAO_IDL/ast/ast_sequence.cpp b/TAO/TAO_IDL/ast/ast_sequence.cpp
index f580f1ab215..bf57edf78eb 100644
--- a/TAO/TAO_IDL/ast/ast_sequence.cpp
+++ b/TAO/TAO_IDL/ast/ast_sequence.cpp
@@ -80,8 +80,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/OS_Memory.h"
#include "ace/OS_NS_string.h"
-ACE_RCSID (ast,
- ast_sequence,
+ACE_RCSID (ast,
+ ast_sequence,
"$Id$")
AST_Sequence::AST_Sequence (void)
@@ -99,13 +99,13 @@ AST_Sequence::AST_Sequence (void)
AST_Sequence::AST_Sequence (AST_Expression *ms,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (bt->is_local () || local,
abstract),
AST_Decl (AST_Decl::NT_sequence,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_sequence,
n),
AST_ConcreteType (AST_Decl::NT_sequence,
@@ -117,11 +117,11 @@ AST_Sequence::AST_Sequence (AST_Expression *ms,
// unbounded.
if (ms->ev ()->u.ulval == 0)
{
- this->unbounded_ = true;
+ this->unbounded_ = I_TRUE;
}
else
{
- this->unbounded_ = false;
+ this->unbounded_ = I_FALSE;
}
// A sequence data type is always VARIABLE.
@@ -134,7 +134,7 @@ AST_Sequence::~AST_Sequence (void)
// Public operations.
-bool
+idl_bool
AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
// We should calculate this only once. If it has already been
@@ -154,16 +154,16 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
ACE_TEXT ("bad base type\n")),
0);
}
-
+
if (type->node_type () == AST_Decl::NT_typedef)
{
AST_Typedef *td = AST_Typedef::narrow_from_decl (type);
type = td->primitive_base_type ();
AST_Decl::NodeType nt = type->node_type ();
-
+
if (nt != AST_Decl::NT_struct && nt != AST_Decl::NT_union)
{
- return false;
+ return I_FALSE;
}
}
@@ -180,12 +180,12 @@ AST_Sequence::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
ACE_Unbounded_Queue<AST_Type *> scope_list = list;
scope_list.enqueue_tail (this);
this->in_recursion_ = type->in_recursion (scope_list);
-
+
if (this->in_recursion_ == 1)
{
idl_global->recursive_type_seen_ = true;
}
-
+
return this->in_recursion_;
}
}
@@ -223,7 +223,7 @@ AST_Sequence::base_type (void) const
return this->pd_base_type;
}
-bool
+idl_bool
AST_Sequence::unbounded (void) const
{
return this->unbounded_;
diff --git a/TAO/TAO_IDL/ast/ast_string.cpp b/TAO/TAO_IDL/ast/ast_string.cpp
index cb24793fa37..bb40ae6a7bf 100644
--- a/TAO/TAO_IDL/ast/ast_string.cpp
+++ b/TAO/TAO_IDL/ast/ast_string.cpp
@@ -101,7 +101,7 @@ AST_String::AST_String (AST_Decl::NodeType nt,
: COMMON_Base (),
AST_Decl (nt,
n,
- true),
+ I_TRUE),
AST_Type (nt,
n),
AST_ConcreteType (nt,
diff --git a/TAO/TAO_IDL/ast/ast_structure.cpp b/TAO/TAO_IDL/ast/ast_structure.cpp
index dbcc25a7beb..c632a6e89ac 100644
--- a/TAO/TAO_IDL/ast/ast_structure.cpp
+++ b/TAO/TAO_IDL/ast/ast_structure.cpp
@@ -74,12 +74,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ast_enum.h"
#include "ast_enum_val.h"
#include "ast_visitor.h"
-#include "utl_string.h"
#include "utl_err.h"
#include "utl_indenter.h"
-ACE_RCSID (ast,
- ast_structure,
+ACE_RCSID (ast,
+ ast_structure,
"$Id$")
AST_Structure::AST_Structure (void)
@@ -94,8 +93,8 @@ AST_Structure::AST_Structure (void)
}
AST_Structure::AST_Structure (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_struct,
@@ -112,8 +111,8 @@ AST_Structure::AST_Structure (UTL_ScopedName *n,
AST_Structure::AST_Structure (AST_Decl::NodeType nt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (nt,
@@ -133,7 +132,7 @@ AST_Structure::~AST_Structure (void)
}
// Are we or the parameter node involved in any recursion?
-bool
+idl_bool
AST_Structure::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
// We should calculate this only once. If it has already been
@@ -148,11 +147,11 @@ AST_Structure::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
ACE_Unbounded_Queue<AST_Type *> scope_list = list;
scope_list.enqueue_tail (this);
-
+
// Initialize an iterator to iterate over our scope.
// Continue until each element is visited.
- for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
- !si.is_done ();
+ for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
+ !si.is_done ();
si.next ())
{
AST_Field *field = AST_Field::narrow_from_decl (si.item ());
@@ -180,7 +179,7 @@ AST_Structure::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
ACE_TEXT ("bad field type\n")),
0);
}
-
+
if (type->in_recursion (scope_list))
{
this->in_recursion_ = 1;
@@ -221,7 +220,7 @@ AST_Structure::field (AST_Field **&result,
slot);
}
-bool
+idl_bool
AST_Structure::is_local (void)
{
if (this->local_struct_ == -1)
@@ -243,7 +242,7 @@ AST_Structure::is_local (void)
{
if (si.item ()->is_local ())
{
- this->local_struct_ = true;
+ this->local_struct_ = I_TRUE;
break;
}
}
@@ -291,17 +290,17 @@ AST_Structure::legal_for_primary_key (void) const
si.next ())
{
AST_Field *f = AST_Field::narrow_from_decl (si.item ());
-
+
if (f != 0 && !f->field_type ()->legal_for_primary_key ())
{
retval = false;
break;
}
}
-
+
this->recursing_in_legal_pk_ = false;
}
-
+
return retval;
}
@@ -314,7 +313,7 @@ AST_Structure::fe_add_field (AST_Field *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -347,7 +346,7 @@ AST_Structure::fe_add_field (AST_Field *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
AST_Type *ft = t->field_type ();
@@ -356,7 +355,7 @@ AST_Structure::fe_add_field (AST_Field *t)
if (mru != 0)
{
this->add_to_referenced (ft,
- false,
+ I_FALSE,
mru->first_component ());
}
@@ -372,7 +371,7 @@ AST_Structure::fe_add_structure (AST_Structure *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -405,7 +404,7 @@ AST_Structure::fe_add_structure (AST_Structure *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -418,7 +417,7 @@ AST_Structure::fe_add_union (AST_Union *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -451,7 +450,7 @@ AST_Structure::fe_add_union (AST_Union *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -464,7 +463,7 @@ AST_Structure::fe_add_enum (AST_Enum *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -497,7 +496,7 @@ AST_Structure::fe_add_enum (AST_Enum *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -513,7 +512,7 @@ AST_Structure::fe_add_enum_val (AST_EnumVal *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -546,7 +545,7 @@ AST_Structure::fe_add_enum_val (AST_EnumVal *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -693,7 +692,7 @@ AST_Structure::redefine (AST_Structure *from)
this->set_imported (idl_global->imported ());
this->set_in_main_file (idl_global->in_main_file ());
this->set_line (idl_global->lineno ());
- this->set_file_name (idl_global->filename ()->get_string ());
+ this->set_file_name (idl_global->filename ());
this->ifr_added_ = from->ifr_added_;
this->ifr_fwd_added_ = from->ifr_fwd_added_;
this->fields_ = from->fields_;
diff --git a/TAO/TAO_IDL/ast/ast_structure_fwd.cpp b/TAO/TAO_IDL/ast/ast_structure_fwd.cpp
index 9faabb96eb7..60906a704bf 100644
--- a/TAO/TAO_IDL/ast/ast_structure_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_structure_fwd.cpp
@@ -10,8 +10,8 @@
#include "ast_visitor.h"
#include "utl_identifier.h"
-ACE_RCSID( ast,
- ast_structure_fwd,
+ACE_RCSID( ast,
+ ast_structure_fwd,
"$Id$")
AST_StructureFwd::AST_StructureFwd (void)
@@ -69,7 +69,7 @@ AST_StructureFwd::set_full_definition (AST_Structure *nfd)
this->pd_full_definition = nfd;
}
-bool
+idl_bool
AST_StructureFwd::is_defined (void)
{
return (this->pd_full_definition != 0);
diff --git a/TAO/TAO_IDL/ast/ast_type.cpp b/TAO/TAO_IDL/ast/ast_type.cpp
index ffbdb1f81ed..06115de836d 100644
--- a/TAO/TAO_IDL/ast/ast_type.cpp
+++ b/TAO/TAO_IDL/ast/ast_type.cpp
@@ -157,14 +157,14 @@ AST_Type::compute_size_type (void)
return 0;
}
-bool
+idl_bool
AST_Type::in_recursion (ACE_Unbounded_Queue<AST_Type *> &)
{
// By default we are not involved in recursion.
return 0;
}
-bool
+idl_bool
AST_Type::is_defined (void)
{
// AST_Interface, AST_Structure, and AST_Union will
@@ -172,41 +172,41 @@ AST_Type::is_defined (void)
return 1;
}
-bool
+idl_bool
AST_Type::ifr_added (void)
{
return this->ifr_added_;
}
void
-AST_Type::ifr_added (bool val)
+AST_Type::ifr_added (idl_bool val)
{
this->ifr_added_ = val;
}
-bool
+idl_bool
AST_Type::ifr_fwd_added (void)
{
return this->ifr_fwd_added_;
}
void
-AST_Type::ifr_fwd_added (bool val)
+AST_Type::ifr_fwd_added (idl_bool val)
{
this->ifr_fwd_added_ = val;
}
-bool
+idl_bool
AST_Type::has_constructor (void)
{
return this->has_constructor_;
}
void
-AST_Type::has_constructor (bool value)
+AST_Type::has_constructor (idl_bool value)
{
// Similarly to be_decl::size_type_, once this
- // gets set to true, we don't want it to
+ // gets set to I_TRUE, we don't want it to
// change back.
if (this->has_constructor_ == 0)
{
@@ -345,7 +345,9 @@ AST_Type::nested_name (const char* local_name,
use_next = ACE_OS::strstr (use_curr, "::");
// If the scopes are identical, don't supply them.
- if (ACE_OS::strcmp (def_name, use_name) == 0)
+ if (ACE_OS::strcmp (def_name,
+ use_name)
+ == 0)
{
if (prefix != 0)
{
@@ -531,7 +533,7 @@ AST_Type::nested_name (const char* local_name,
return this->nested_type_name_;
}
-bool
+idl_bool
AST_Type::match_names (AST_Type *t, ACE_Unbounded_Queue<AST_Type *> &list)
{
for (ACE_Unbounded_Queue_Iterator<AST_Type *> iter (list);
@@ -546,11 +548,11 @@ AST_Type::match_names (AST_Type *t, ACE_Unbounded_Queue<AST_Type *> &list)
if (!ACE_OS::strcmp (t->full_name (),
(*temp)->full_name ()))
{
- return true;
+ return I_TRUE;
}
}
- return false;
+ return I_FALSE;
}
int
diff --git a/TAO/TAO_IDL/ast/ast_typedef.cpp b/TAO/TAO_IDL/ast/ast_typedef.cpp
index e96bdcc802c..25986ef56cc 100644
--- a/TAO/TAO_IDL/ast/ast_typedef.cpp
+++ b/TAO/TAO_IDL/ast/ast_typedef.cpp
@@ -76,8 +76,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/Log_Msg.h"
-ACE_RCSID (ast,
- ast_typedef,
+ACE_RCSID (ast,
+ ast_typedef,
"$Id$")
AST_Typedef::AST_Typedef (void)
@@ -90,8 +90,8 @@ AST_Typedef::AST_Typedef (void)
AST_Typedef::AST_Typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (bt->is_local () || local,
abstract),
AST_Decl (AST_Decl::NT_typedef,
diff --git a/TAO/TAO_IDL/ast/ast_union.cpp b/TAO/TAO_IDL/ast/ast_union.cpp
index 498fa278ac7..d350900e71f 100644
--- a/TAO/TAO_IDL/ast/ast_union.cpp
+++ b/TAO/TAO_IDL/ast/ast_union.cpp
@@ -89,8 +89,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
-ACE_RCSID (ast,
- ast_union,
+ACE_RCSID (ast,
+ ast_union,
"$Id$")
AST_Union::AST_Union (void)
@@ -106,8 +106,8 @@ AST_Union::AST_Union (void)
AST_Union::AST_Union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_union,
@@ -240,7 +240,7 @@ AST_Union::default_index (void)
}
// Are we or the parameter node involved in any recursion?
-bool
+idl_bool
AST_Union::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
// Proceed if the number of members in our scope is greater than 0.
@@ -248,14 +248,14 @@ AST_Union::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
ACE_Unbounded_Queue<AST_Type *> scope_list = list;
scope_list.enqueue_tail (this);
-
+
// Initialize an iterator to iterate thru our scope.
// Continue until each element is visited.
for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
!si.is_done ();
si.next ())
{
- AST_UnionBranch *field =
+ AST_UnionBranch *field =
AST_UnionBranch::narrow_from_decl (si.item ());
if (field == 0)
@@ -418,7 +418,7 @@ AST_Union::lookup_enum (AST_UnionBranch *b)
// See if the symbol defines a constant in the discriminator enum.
UTL_ScopedName *sn = lv->n ();
d = e->lookup_by_name (sn,
- true);
+ I_TRUE);
if (d == 0 || d->defined_in () != e)
{
@@ -816,7 +816,7 @@ AST_Union::compute_default_value (void)
if (this->default_value_.u.bool_val
== expr->ev ()->u.bval)
{
- this->default_value_.u.bool_val ^= true;
+ this->default_value_.u.bool_val++;
break_loop = 1;
}
@@ -939,7 +939,7 @@ AST_Union::fe_add_union_branch (AST_UnionBranch *t)
}
// If branch with same field name exists, complain.
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -980,7 +980,7 @@ AST_Union::fe_add_union_branch (AST_UnionBranch *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
AST_Type *ft = t->field_type ();
@@ -989,10 +989,10 @@ AST_Union::fe_add_union_branch (AST_UnionBranch *t)
if (mru != 0)
{
this->add_to_referenced (ft,
- false,
+ I_FALSE,
mru->first_component ());
}
-
+
this->fields_.enqueue_tail (t);
return t;
@@ -1005,7 +1005,7 @@ AST_Union::fe_add_union (AST_Union *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1038,7 +1038,7 @@ AST_Union::fe_add_union (AST_Union *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1051,7 +1051,7 @@ AST_Union::fe_add_structure (AST_Structure *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1084,7 +1084,7 @@ AST_Union::fe_add_structure (AST_Structure *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1097,7 +1097,7 @@ AST_Union::fe_add_enum (AST_Enum *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1130,7 +1130,7 @@ AST_Union::fe_add_enum (AST_Enum *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
@@ -1146,7 +1146,7 @@ AST_Union::fe_add_enum_val (AST_EnumVal *t)
AST_Decl *d = 0;
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (t, false)) != 0)
+ if ((d = this->lookup_for_add (t, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -1179,7 +1179,7 @@ AST_Union::fe_add_enum_val (AST_EnumVal *t)
// Add it to set of locally referenced symbols.
this->add_to_referenced (t,
- false,
+ I_FALSE,
t->local_name ());
return t;
diff --git a/TAO/TAO_IDL/ast/ast_valuebox.cpp b/TAO/TAO_IDL/ast/ast_valuebox.cpp
index ebe7e2a2be1..7ffda49ed57 100644
--- a/TAO/TAO_IDL/ast/ast_valuebox.cpp
+++ b/TAO/TAO_IDL/ast/ast_valuebox.cpp
@@ -20,7 +20,7 @@ AST_ValueBox::AST_ValueBox (UTL_ScopedName *n,
AST_Type *boxed_type)
: COMMON_Base (),
AST_Decl (AST_Decl::NT_valuebox,
- n, true),
+ n, I_TRUE),
AST_Type (AST_Decl::NT_valuebox,
n),
AST_ConcreteType (AST_Decl::NT_valuebox, n),
diff --git a/TAO/TAO_IDL/ast/ast_valuetype.cpp b/TAO/TAO_IDL/ast/ast_valuetype.cpp
index d4ecbddf35b..966040bc31b 100644
--- a/TAO/TAO_IDL/ast/ast_valuetype.cpp
+++ b/TAO/TAO_IDL/ast/ast_valuetype.cpp
@@ -15,8 +15,8 @@
#include "ace/streams.h"
-ACE_RCSID (ast,
- ast_valuetype,
+ACE_RCSID (ast,
+ ast_valuetype,
"$Id$")
AST_ValueType::AST_ValueType (void)
@@ -29,8 +29,8 @@ AST_ValueType::AST_ValueType (void)
pd_n_supports (0),
pd_inherits_concrete (0),
pd_supports_concrete (0),
- pd_truncatable (false),
- pd_custom (false)
+ pd_truncatable (I_FALSE),
+ pd_custom (I_FALSE)
{
}
@@ -43,10 +43,10 @@ AST_ValueType::AST_ValueType (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
- : COMMON_Base (false,
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
+ : COMMON_Base (I_FALSE,
abstract),
AST_Decl (AST_Decl::NT_valuetype,
n),
@@ -58,7 +58,7 @@ AST_ValueType::AST_ValueType (UTL_ScopedName *n,
n_inherits,
inherits_flat,
n_inherits_flat,
- false,
+ I_FALSE,
abstract),
pd_supports (supports),
pd_n_supports (n_supports),
@@ -117,28 +117,28 @@ AST_ValueType::supports_concrete (void) const
return this->pd_supports_concrete;
}
-bool
+idl_bool
AST_ValueType::truncatable (void) const
{
return this->pd_truncatable;
}
-bool
+idl_bool
AST_ValueType::custom (void) const
{
return this->pd_custom;
}
-bool
+idl_bool
AST_ValueType::will_have_factory (void)
{
- return false;
+ return I_FALSE;
}
// Look through supported interface list.
AST_Decl *
AST_ValueType::look_in_supported (UTL_ScopedName *e,
- bool treat_as_ref)
+ idl_bool treat_as_ref)
{
AST_Decl *d = 0;
AST_Decl *d_before = 0;
@@ -214,10 +214,10 @@ AST_ValueType::legal_for_primary_key (void) const
{
return false;
}
-
+
bool has_public_member = false;
bool retval = true;
-
+
if (!this->recursing_in_legal_pk_)
{
this->recursing_in_legal_pk_ = true;
@@ -228,14 +228,14 @@ AST_ValueType::legal_for_primary_key (void) const
i.next ())
{
AST_Field *f = AST_Field::narrow_from_decl (i.item ());
-
+
// We're not interested in any valuetype decls that aren't fields.
if (f == 0)
{
continue;
}
-
- // Private members are not allowed in primary keys.
+
+ // Private members are not allowed in primary keys.
if (f->visibility () == AST_Field::vis_PRIVATE)
{
retval = false;
@@ -256,7 +256,7 @@ AST_ValueType::legal_for_primary_key (void) const
has_public_member = true;
}
}
-
+
this->recursing_in_legal_pk_ = false;
}
@@ -349,7 +349,7 @@ AST_ValueType::fe_add_factory (AST_Factory *f)
}
// Already defined and cannot be redefined? Or already used?
- if ((d = this->lookup_for_add (f, false)) != 0)
+ if ((d = this->lookup_for_add (f, I_FALSE)) != 0)
{
if (!can_be_redefined (d))
{
@@ -382,7 +382,7 @@ AST_ValueType::fe_add_factory (AST_Factory *f)
// Add it to set of locally referenced symbols.
this->add_to_referenced (f,
- false,
+ I_FALSE,
f->local_name ());
return f;
@@ -401,20 +401,20 @@ AST_ValueType::derived_from_primary_key_base (const AST_ValueType *node,
{
return true;
}
-
+
AST_ValueType *concrete_parent = node->inherits_concrete ();
-
+
if (this->derived_from_primary_key_base (concrete_parent, pk_base))
{
return true;
}
-
+
AST_Interface **v = node->pd_inherits;
-
+
for (long i = 0; i < node->pd_n_inherits; ++i)
{
AST_ValueType *tmp = AST_ValueType::narrow_from_decl (v[i]);
-
+
if (this->derived_from_primary_key_base (tmp, pk_base))
{
return true;
@@ -428,17 +428,17 @@ AST_ValueType *
AST_ValueType::lookup_primary_key_base (void) const
{
AST_ValueType *retval = idl_global->primary_key_base ();
-
+
if (retval == 0)
{
Identifier local_id ("PrimaryKeyBase");
UTL_ScopedName local_name (&local_id, 0);
-
+
Identifier scope_name ("Components");
UTL_ScopedName pk_name (&scope_name, &local_name);
AST_Decl *d =
- const_cast<AST_ValueType *> (this)->lookup_by_name (&pk_name, true);
-
+ const_cast<AST_ValueType *> (this)->lookup_by_name (&pk_name, I_TRUE);
+
local_id.destroy ();
scope_name.destroy ();
@@ -455,7 +455,7 @@ AST_ValueType::lookup_primary_key_base (void) const
idl_global->err ()->valuetype_expected (d);
return 0;
}
-
+
idl_global->primary_key_base (retval);
}
diff --git a/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp b/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp
index 8f436fbcd21..4ddccedeeee 100644
--- a/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp
+++ b/TAO/TAO_IDL/ast/ast_valuetype_fwd.cpp
@@ -5,8 +5,8 @@
#include "ast_visitor.h"
#include "utl_identifier.h"
-ACE_RCSID( ast,
- ast_valuetype_fwd,
+ACE_RCSID( ast,
+ ast_valuetype_fwd,
"$Id$")
AST_ValueTypeFwd::AST_ValueTypeFwd (void)
@@ -19,7 +19,7 @@ AST_ValueTypeFwd::AST_ValueTypeFwd (void)
AST_ValueTypeFwd::AST_ValueTypeFwd (AST_Interface *dummy,
UTL_ScopedName *n)
- : COMMON_Base (false,
+ : COMMON_Base (I_FALSE,
dummy->is_abstract ()),
AST_Decl (AST_Decl::NT_valuetype_fwd,
n),
diff --git a/TAO/TAO_IDL/be/be_argument.cpp b/TAO/TAO_IDL/be/be_argument.cpp
index e5cbeadc83a..1aafd25caa1 100644
--- a/TAO/TAO_IDL/be/be_argument.cpp
+++ b/TAO/TAO_IDL/be/be_argument.cpp
@@ -58,7 +58,7 @@ be_argument::be_argument (AST_Argument::Direction d,
// If there have been previous errors, dcl may be 0,
// and we don't want to crash, so we check for non-zero.
// Also, we don't want to set the bit if the operation is
- // declared in an included file UNLESS the enclosing
+ // declared in an included file UNLESS the enclosing
// interface is abstract, in which case we regenerate the
// operation.
if (dcl != 0
@@ -66,9 +66,8 @@ be_argument::be_argument (AST_Argument::Direction d,
&& (idl_global->in_main_file () || dcl->is_abstract ()))
{
be_type *bt = be_type::narrow_from_decl (ft);
- bt->seen_in_operation (true);
+ bt->seen_in_operation (I_TRUE);
this->set_arg_seen_bit (bt);
- idl_global->need_skeleton_includes_ = true;
}
}
diff --git a/TAO/TAO_IDL/be/be_array.cpp b/TAO/TAO_IDL/be/be_array.cpp
index 3c13a4589b2..179208e68c4 100644
--- a/TAO/TAO_IDL/be/be_array.cpp
+++ b/TAO/TAO_IDL/be/be_array.cpp
@@ -48,13 +48,13 @@ be_array::be_array (void)
be_array::be_array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_array,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_array,
n),
AST_ConcreteType (AST_Decl::NT_array,
diff --git a/TAO/TAO_IDL/be/be_attribute.cpp b/TAO/TAO_IDL/be/be_attribute.cpp
index ad9b0daf940..2f62f94e7cc 100644
--- a/TAO/TAO_IDL/be/be_attribute.cpp
+++ b/TAO/TAO_IDL/be/be_attribute.cpp
@@ -47,11 +47,11 @@ be_attribute::be_attribute (void)
this->set_strategy_ = bods;
}
-be_attribute::be_attribute (bool ro,
+be_attribute::be_attribute (idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_attr,
diff --git a/TAO/TAO_IDL/be/be_codegen.cpp b/TAO/TAO_IDL/be/be_codegen.cpp
index 8d3efb98a50..fa375c5e5c3 100644
--- a/TAO/TAO_IDL/be/be_codegen.cpp
+++ b/TAO/TAO_IDL/be/be_codegen.cpp
@@ -30,8 +30,7 @@ ACE_RCSID (be,
be_codegen,
"$Id$")
-
-TAO_CodeGen * tao_cg = 0;
+TAO_IDL_BE_Export TAO_CodeGen *tao_cg = 0;
TAO_CodeGen::TAO_CodeGen (void)
: client_header_ (0),
@@ -69,7 +68,7 @@ TAO_CodeGen::~TAO_CodeGen (void)
delete this->server_inline_;
delete this->server_template_inline_;
delete this->anyop_source_;
-#if !defined (linux) && !defined (__QNX__) && !defined(__GLIBC__)
+#if !defined (linux) && !defined (__QNX__)
// This causes a seg fault on Linux RH 5.1. Let it leak . . .
delete this->gperf_input_stream_;
#endif /* ! linux */
@@ -107,9 +106,9 @@ TAO_CodeGen::upcase (const char *str)
// Convert letters in str to upper case.
for (unsigned int i = 0; i < ACE_OS::strlen (str); ++i)
{
- if (isalpha (str[i]))
+ if (isalpha (str [i]))
{
- upcase_str[i] = static_cast<char> (toupper (str[i]));
+ upcase_str[i] = (char) toupper (str[i]);
}
else
{
@@ -244,11 +243,6 @@ TAO_CodeGen::start_client_header (const char *fname)
*this->client_header_ << "#define TAO_EXPORT_MACRO "
<< be_global->stub_export_macro ();
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->client_header_ << be_global->versioning_begin ();
-
return 0;
}
@@ -300,10 +294,6 @@ TAO_CodeGen::start_client_stubs (const char *fname)
*this->client_stubs_ << "\n#endif /* !defined INLINE */";
}
- // Begin versioned namespace support after all headers have been
- // included, but before any code is generated.
- *this->client_stubs_ << be_global->versioning_begin ();
-
return 0;
}
@@ -337,10 +327,6 @@ TAO_CodeGen::start_client_inline (const char *fname)
// Generate the ident string, if any.
this->gen_ident_string (this->client_inline_);
- // Begin versioned namespace support after initial headers, if any,
- // have been included.
- *this->client_inline_ << be_global->versioning_begin ();
-
return 0;
}
@@ -443,7 +429,7 @@ TAO_CodeGen::start_server_header (const char *fname)
if (idl_global->non_local_iface_seen_)
{
// Include the Messaging files if AMI is enabled.
- if (be_global->ami_call_back () == true)
+ if (be_global->ami_call_back () == I_TRUE)
{
// Include Messaging skeleton file.
this->gen_standard_include (this->server_header_,
@@ -478,11 +464,6 @@ TAO_CodeGen::start_server_header (const char *fname)
<< be_global->skel_export_macro ();
}
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->server_header_ << be_global->versioning_begin ();
-
return 0;
}
@@ -536,11 +517,6 @@ TAO_CodeGen::start_server_template_header (const char *fname)
<< "\"";
}
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->server_template_header_ << be_global->versioning_begin ();
-
return 0;
}
@@ -614,11 +590,6 @@ TAO_CodeGen::start_server_skeletons (const char *fname)
*this->server_skeletons_ << "#endif /* !defined INLINE */";
}
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->server_skeletons_ << be_global->versioning_begin ();
-
return 0;
}
@@ -680,11 +651,6 @@ TAO_CodeGen::start_server_template_skeletons (const char *fname)
<< "\"";
*this->server_template_skeletons_ << "\n#endif /* !defined INLINE */\n\n";
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->server_template_skeletons_ << be_global->versioning_begin ();
-
return 0;
}
@@ -718,10 +684,6 @@ TAO_CodeGen::start_server_inline (const char *fname)
// Generate the ident string, if any.
this->gen_ident_string (this->server_inline_);
- // Begin versioned namespace support after initial headers, if any, have been
- // included.
- *this->server_inline_ << be_global->versioning_begin ();
-
return 0;
}
@@ -757,11 +719,6 @@ TAO_CodeGen::start_server_template_inline (const char *fname)
// Generate the ident string, if any.
this->gen_ident_string (this->server_template_inline_);
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->server_template_inline_ << be_global->versioning_begin ();
-
return 0;
}
@@ -872,7 +829,7 @@ TAO_CodeGen::start_anyop_header (const char *fname)
// AnyTypeCode prefix.
ACE_CString work_hdr (anyop_hdr);
ACE_CString final_hdr = "tao/AnyTypeCode/";
- ssize_t pos = work_hdr.rfind ('/');
+ int pos = work_hdr.rfind ('/');
if (pos != ACE_SString::npos)
{
@@ -909,11 +866,6 @@ TAO_CodeGen::start_anyop_header (const char *fname)
}
*this->anyop_header_ << "\n";
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->anyop_header_ << be_global->versioning_begin ();
-
return 0;
}
@@ -954,11 +906,6 @@ TAO_CodeGen::start_anyop_source (const char *fname)
this->gen_typecode_includes (this->anyop_source_);
- // Begin versioned namespace support after initial headers have been
- // included, but before the inline file and post include
- // directives.
- *this->anyop_source_ << be_global->versioning_begin ();
-
return 0;
}
@@ -1075,6 +1022,7 @@ TAO_CodeGen::start_implementation_skeleton (const char *fname)
return 0;
}
+
// Get the implementation header stream.
TAO_OutStream *
TAO_CodeGen::implementation_skeleton (void)
@@ -1089,25 +1037,21 @@ TAO_CodeGen::end_client_header (void)
// Generate the <<= and >>= operators here.
*this->client_header_ << be_nl << be_nl << "// TAO_IDL - Generated from"
- << be_nl << "// " << __FILE__ << ":" <<
- __LINE__ << be_nl;
-
- // End versioned namespace support before remaining include
- // directives at end of file.
- *this->client_header_ << be_global->versioning_end ();
+ << be_nl << "// " << __FILE__ << ":" << __LINE__;
// Only when we generate a client inline file generate the include
if (be_global->gen_client_inline ())
{
// Insert the code to include the inline file.
- *this->client_header_ << "#if defined (__ACE_INLINE__)\n";
+ *this->client_header_ << "\n\n#if defined (__ACE_INLINE__)\n";
*this->client_header_ << "#include \""
<< be_global->be_get_client_inline_fname (1)
<< "\"\n";
- *this->client_header_ << "#endif /* defined INLINE */\n\n";
+ *this->client_header_ << "#endif /* defined INLINE */";
}
// Code to put the last #endif.
+ *this->client_header_ << "\n\n";
if (be_global->post_include () != 0)
{
@@ -1121,26 +1065,6 @@ TAO_CodeGen::end_client_header (void)
return 0;
}
-void
-TAO_CodeGen::end_client_inline (void)
-{
- *this->client_inline_ << "\n";
-
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->client_inline_ << be_global->versioning_end ();
-}
-
-void
-TAO_CodeGen::end_client_stubs (void)
-{
- *this->client_stubs_ << "\n";
-
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->client_stubs_ << be_global->versioning_end ();
-}
-
int
TAO_CodeGen::end_server_header (void)
{
@@ -1148,10 +1072,6 @@ TAO_CodeGen::end_server_header (void)
<< be_nl << "// " << __FILE__ << ":" << __LINE__
<< be_nl << be_nl;
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_header_ << be_global->versioning_end ();
-
// Insert the template header.
if (be_global->gen_tie_classes ())
{
@@ -1185,20 +1105,14 @@ TAO_CodeGen::end_server_header (void)
return 0;
}
-void
-TAO_CodeGen::end_server_inline (void)
-{
- *this->server_inline_ << "\n";
-
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_inline_ << be_global->versioning_end ();
-}
-
int
TAO_CodeGen::end_implementation_header (const char *fname)
{
- char macro_name [NAMEBUFSIZE] = { 0 };
+ static char macro_name [NAMEBUFSIZE];
+
+ ACE_OS::memset (macro_name,
+ '\0',
+ NAMEBUFSIZE);
const char *suffix = ACE_OS::strrchr (fname, '.');
@@ -1222,7 +1136,7 @@ TAO_CodeGen::end_implementation_header (const char *fname)
{
if (isalpha (fname [i]))
{
- macro_name[i] = static_cast<char> (toupper (fname [i]));
+ macro_name[i] = (char) toupper (fname [i]);
}
else if (isdigit (fname [i]))
{
@@ -1248,14 +1162,10 @@ TAO_CodeGen::end_server_template_header (void)
{
*this->server_template_header_ << be_nl << be_nl << "// TAO_IDL - Generated from "
<< be_nl << "// "
- << __FILE__ << ":" << __LINE__ << "\n";
-
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_template_header_ << be_global->versioning_end ();
+ << __FILE__ << ":" << __LINE__;
// Insert the code to include the inline file.
- *this->server_template_header_ << "#if defined (__ACE_INLINE__)";
+ *this->server_template_header_ << "\n\n#if defined (__ACE_INLINE__)";
*this->server_template_header_
<< "\n#include \""
<< be_global->be_get_server_template_inline_fname (1)
@@ -1297,11 +1207,7 @@ TAO_CodeGen::end_server_template_header (void)
int
TAO_CodeGen::end_server_template_inline (void)
{
- *this->server_template_inline_ << "\n";
-
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_template_inline_ << be_global->versioning_end ();
+ *this->server_template_inline_ << "\n\n";
return 0;
}
@@ -1309,10 +1215,6 @@ TAO_CodeGen::end_server_template_inline (void)
int
TAO_CodeGen::end_server_template_skeletons (void)
{
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_template_skeletons_ << be_global->versioning_end ();
-
// Code to put the last #endif.
*this->server_template_skeletons_ << "\n#endif /* ifndef */\n";
@@ -1322,10 +1224,6 @@ TAO_CodeGen::end_server_template_skeletons (void)
int
TAO_CodeGen::end_server_skeletons (void)
{
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->server_skeletons_ << be_global->versioning_end ();
-
// Code to put the last #endif.
*this->server_skeletons_ << "\n\n#endif /* ifndef */\n";
@@ -1335,11 +1233,6 @@ TAO_CodeGen::end_server_skeletons (void)
int
TAO_CodeGen::end_anyop_header (void)
{
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->anyop_header_ << be_global->versioning_end ();
-
-
if (be_global->post_include () != 0)
{
*this->anyop_header_ << "\n\n#include /**/ \""
@@ -1356,10 +1249,6 @@ TAO_CodeGen::end_anyop_header (void)
int
TAO_CodeGen::end_anyop_source (void)
{
- // End versioned namespace support. Do not place include directives
- // before this.
- *this->anyop_source_ << be_global->versioning_end ();
-
*this->anyop_source_ << "\n";
return 0;
@@ -1373,7 +1262,7 @@ TAO_CodeGen::end_anyop_source (void)
void
TAO_CodeGen::gperf_input_stream (TAO_OutStream *os)
{
-#if !defined (linux) && !defined (__QNX__) && !defined (__GLIBC__)
+#if !defined (linux) && !defined (__QNX__)
// This causes a seg fault on Linux RH 5.1. Let it leak . . .
delete this->gperf_input_stream_;
#endif /* ! linux */
@@ -1446,7 +1335,11 @@ TAO_CodeGen::gen_ifndef_string (const char *fname,
const char *prefix,
const char *suffix)
{
- char macro_name [NAMEBUFSIZE] = { 0 };
+ static char macro_name [NAMEBUFSIZE];
+
+ ACE_OS::memset (macro_name,
+ '\0',
+ NAMEBUFSIZE);
const char *extension = ACE_OS::strrchr (fname, '.');
@@ -1466,7 +1359,7 @@ TAO_CodeGen::gen_ifndef_string (const char *fname,
{
if (isalpha (fname [i]))
{
- macro_name[i + offset] = static_cast<char> (toupper (fname [i]));
+ macro_name[i + offset] = (char) toupper (fname [i]);
}
else if (isdigit (fname [i]))
{
@@ -1531,7 +1424,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
"tao/Valuetype/AbstractBase.h");
// Turn on generation of the rest of the Valuetype library includes.
- idl_global->valuetype_seen_ = true;
+ idl_global->valuetype_seen_ = I_TRUE;
}
if (idl_global->valuebase_seen_)
@@ -1635,14 +1528,8 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
this->client_header_
);
- // Generated if (w)string member of struct/union/exception/array/valuetype
- // has been seen.
- this->gen_cond_file_include (idl_global->string_member_seen_,
- "tao/Managed_Types.h",
- this->client_header_);
-
// Include the Messaging library entry point, if AMI is enabled.
- if (be_global->ami_call_back () == true)
+ if (be_global->ami_call_back () == I_TRUE)
{
// Include Messaging skeleton file.
this->gen_standard_include (this->client_header_,
@@ -1650,7 +1537,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
}
// Include the smart proxy base class if smart proxies are enabled.
- if (be_global->gen_smart_proxies () == true)
+ if (be_global->gen_smart_proxies () == I_TRUE)
{
this->gen_standard_include (this->client_header_,
"tao/SmartProxies/Smart_Proxies.h");
@@ -1683,7 +1570,7 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
// AnyTypeCode prefix.
ACE_CString work_hdr (anyop_hdr);
ACE_CString final_hdr = "tao/AnyTypeCode/";
- ssize_t pos = work_hdr.rfind ('/');
+ int pos = work_hdr.rfind ('/');
if (pos != ACE_SString::npos)
{
@@ -1720,10 +1607,6 @@ TAO_CodeGen::gen_stub_hdr_includes (void)
// _vars and _outs are typedefs of template class instantiations.
this->gen_var_file_includes ();
-
- // Versioned namespace support.
- this->gen_standard_include (this->client_header_,
- "tao/Versioned_Namespace.h");
}
void
@@ -1782,17 +1665,11 @@ TAO_CodeGen::gen_stub_src_includes (void)
);
}
- if (be_global->ami_call_back () == true)
+ if (be_global->ami_call_back () == I_TRUE)
{
this->gen_standard_include (this->client_stubs_,
"tao/Messaging/Asynch_Invocation_Adapter.h");
-#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
- this->gen_standard_include (this->client_stubs_,
- "tao/Messaging/ExceptionHolder_i.h");
-#endif
-
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
// If a valuetype has been seen, this will already be in the header file.
if (!idl_global->valuetype_seen_)
{
@@ -1807,7 +1684,6 @@ TAO_CodeGen::gen_stub_src_includes (void)
this->gen_standard_include (this->client_stubs_,
"tao/Valuetype/Valuetype_Adapter_Impl.h");
}
-#endif
}
// If valuefactory_seen_ was set, this was generated in the stub header file,
@@ -1868,7 +1744,7 @@ TAO_CodeGen::gen_stub_src_includes (void)
"ace/OS_NS_string.h");
}
- if (be_global->gen_amh_classes () == true)
+ if (be_global->gen_amh_classes () == I_TRUE)
{
// Necessary for the AIX compiler.
this->gen_standard_include (this->client_stubs_,
@@ -1880,8 +1756,7 @@ void
TAO_CodeGen::gen_skel_src_includes (void)
{
// Only non-local interfaces generate anything in the skeleton.
- if (!(idl_global->non_local_iface_seen_
- || idl_global->need_skeleton_includes_))
+ if (!idl_global->non_local_iface_seen_)
{
return;
}
diff --git a/TAO/TAO_IDL/be/be_component.cpp b/TAO/TAO_IDL/be/be_component.cpp
index a19d6a27eb1..291bd1079fc 100644
--- a/TAO/TAO_IDL/be/be_component.cpp
+++ b/TAO/TAO_IDL/be/be_component.cpp
@@ -23,8 +23,8 @@
#include "global_extern.h"
#include "utl_err.h"
-ACE_RCSID (be,
- be_component,
+ACE_RCSID (be,
+ be_component,
"$Id$")
be_component::be_component (void)
@@ -39,7 +39,7 @@ be_component::be_component (void)
be_interface ()
{
this->size_type (AST_Type::VARIABLE);
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
}
be_component::be_component (UTL_ScopedName *n,
@@ -48,8 +48,8 @@ be_component::be_component (UTL_ScopedName *n,
long n_supports,
AST_Interface **supports_flat,
long n_supports_flat)
- : COMMON_Base (false,
- false),
+ : COMMON_Base (I_FALSE,
+ I_FALSE),
AST_Decl (AST_Decl::NT_component,
n),
AST_Type (AST_Decl::NT_component,
@@ -60,8 +60,8 @@ be_component::be_component (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat,
- false,
- false),
+ I_FALSE,
+ I_FALSE),
AST_Component (n,
base_component,
supports,
@@ -76,11 +76,11 @@ be_component::be_component (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat,
- false,
- false)
+ I_FALSE,
+ I_FALSE)
{
this->size_type (AST_Type::VARIABLE);
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
}
be_component::~be_component (void)
@@ -110,7 +110,7 @@ be_component::accept (be_visitor *visitor)
idl_global->err ()->ignore_idl3_error (this);
return -1;
}
-
+
return visitor->visit_component (this);
}
diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp
index a492b119e8d..75afab4cbcb 100644
--- a/TAO/TAO_IDL/be/be_decl.cpp
+++ b/TAO/TAO_IDL/be/be_decl.cpp
@@ -52,49 +52,49 @@ ACE_RCSID (be,
be_decl::be_decl (void)
: COMMON_Base (),
AST_Decl (),
- cli_hdr_gen_ (false),
- cli_stub_gen_ (false),
- cli_inline_gen_ (false),
- srv_hdr_gen_ (false),
- impl_hdr_gen_ (false),
- srv_skel_gen_ (false),
- impl_skel_gen_ (false),
- srv_inline_gen_ (false),
- cli_hdr_any_op_gen_ (false),
- cli_stub_any_op_gen_ (false),
- cli_hdr_cdr_op_gen_ (false),
- cli_stub_cdr_op_gen_ (false),
- cli_inline_cdr_op_gen_ (false),
- cli_inline_cdr_decl_gen_ (false),
- cli_hdr_serializer_op_gen_ (false),
- cli_stub_serializer_op_gen_ (false),
- cli_inline_serializer_op_gen_ (false),
- cli_inline_serializer_decl_gen_ (false),
- cli_traits_gen_ (false),
- cli_arg_traits_gen_ (false),
- srv_arg_traits_gen_ (false),
- srv_sarg_traits_gen_ (false),
- cli_tmpl_class_gen_ (false),
- cli_pragma_inst_gen_ (false),
- cli_inarg_tmpl_class_gen_ (false),
- cli_inarg_pragma_inst_gen_ (false),
- cli_inoutarg_tmpl_class_gen_ (false),
- cli_inoutarg_pragma_inst_gen_ (false),
- cli_outarg_tmpl_class_gen_ (false),
- cli_outarg_pragma_inst_gen_ (false),
- cli_retarg_tmpl_class_gen_ (false),
- cli_retarg_pragma_inst_gen_ (false),
- srv_tmpl_class_gen_ (false),
- srv_pragma_inst_gen_ (false),
- srv_inarg_tmpl_class_gen_ (false),
- srv_inarg_pragma_inst_gen_ (false),
- srv_inoutarg_tmpl_class_gen_ (false),
- srv_inoutarg_pragma_inst_gen_ (false),
- srv_outarg_tmpl_class_gen_ (false),
- srv_outarg_pragma_inst_gen_ (false),
- srv_retarg_tmpl_class_gen_ (false),
- srv_retarg_pragma_inst_gen_ (false),
- ccm_pre_proc_gen_ (false)
+ cli_hdr_gen_ (I_FALSE),
+ cli_stub_gen_ (I_FALSE),
+ cli_inline_gen_ (I_FALSE),
+ srv_hdr_gen_ (I_FALSE),
+ impl_hdr_gen_ (I_FALSE),
+ srv_skel_gen_ (I_FALSE),
+ impl_skel_gen_ (I_FALSE),
+ srv_inline_gen_ (I_FALSE),
+ cli_hdr_any_op_gen_ (I_FALSE),
+ cli_stub_any_op_gen_ (I_FALSE),
+ cli_hdr_cdr_op_gen_ (I_FALSE),
+ cli_stub_cdr_op_gen_ (I_FALSE),
+ cli_inline_cdr_op_gen_ (I_FALSE),
+ cli_inline_cdr_decl_gen_ (I_FALSE),
+ cli_hdr_serializer_op_gen_ (I_FALSE),
+ cli_stub_serializer_op_gen_ (I_FALSE),
+ cli_inline_serializer_op_gen_ (I_FALSE),
+ cli_inline_serializer_decl_gen_ (I_FALSE),
+ cli_traits_gen_ (I_FALSE),
+ cli_arg_traits_gen_ (I_FALSE),
+ srv_arg_traits_gen_ (I_FALSE),
+ srv_sarg_traits_gen_ (I_FALSE),
+ cli_tmpl_class_gen_ (I_FALSE),
+ cli_pragma_inst_gen_ (I_FALSE),
+ cli_inarg_tmpl_class_gen_ (I_FALSE),
+ cli_inarg_pragma_inst_gen_ (I_FALSE),
+ cli_inoutarg_tmpl_class_gen_ (I_FALSE),
+ cli_inoutarg_pragma_inst_gen_ (I_FALSE),
+ cli_outarg_tmpl_class_gen_ (I_FALSE),
+ cli_outarg_pragma_inst_gen_ (I_FALSE),
+ cli_retarg_tmpl_class_gen_ (I_FALSE),
+ cli_retarg_pragma_inst_gen_ (I_FALSE),
+ srv_tmpl_class_gen_ (I_FALSE),
+ srv_pragma_inst_gen_ (I_FALSE),
+ srv_inarg_tmpl_class_gen_ (I_FALSE),
+ srv_inarg_pragma_inst_gen_ (I_FALSE),
+ srv_inoutarg_tmpl_class_gen_ (I_FALSE),
+ srv_inoutarg_pragma_inst_gen_ (I_FALSE),
+ srv_outarg_tmpl_class_gen_ (I_FALSE),
+ srv_outarg_pragma_inst_gen_ (I_FALSE),
+ srv_retarg_tmpl_class_gen_ (I_FALSE),
+ srv_retarg_pragma_inst_gen_ (I_FALSE),
+ ccm_pre_proc_gen_ (I_FALSE)
{
}
@@ -104,49 +104,49 @@ be_decl::be_decl (AST_Decl::NodeType type,
: COMMON_Base (),
AST_Decl (type,
n),
- cli_hdr_gen_ (false),
- cli_stub_gen_ (false),
- cli_inline_gen_ (false),
- srv_hdr_gen_ (false),
- impl_hdr_gen_ (false),
- srv_skel_gen_ (false),
- impl_skel_gen_ (false),
- srv_inline_gen_ (false),
- cli_hdr_any_op_gen_ (false),
- cli_stub_any_op_gen_ (false),
- cli_hdr_cdr_op_gen_ (false),
- cli_stub_cdr_op_gen_ (false),
- cli_inline_cdr_op_gen_ (false),
- cli_inline_cdr_decl_gen_ (false),
- cli_hdr_serializer_op_gen_ (false),
- cli_stub_serializer_op_gen_ (false),
- cli_inline_serializer_op_gen_ (false),
- cli_inline_serializer_decl_gen_ (false),
- cli_traits_gen_ (false),
- cli_arg_traits_gen_ (false),
- srv_arg_traits_gen_ (false),
- srv_sarg_traits_gen_ (false),
- cli_tmpl_class_gen_ (false),
- cli_pragma_inst_gen_ (false),
- cli_inarg_tmpl_class_gen_ (false),
- cli_inarg_pragma_inst_gen_ (false),
- cli_inoutarg_tmpl_class_gen_ (false),
- cli_inoutarg_pragma_inst_gen_ (false),
- cli_outarg_tmpl_class_gen_ (false),
- cli_outarg_pragma_inst_gen_ (false),
- cli_retarg_tmpl_class_gen_ (false),
- cli_retarg_pragma_inst_gen_ (false),
- srv_tmpl_class_gen_ (false),
- srv_pragma_inst_gen_ (false),
- srv_inarg_tmpl_class_gen_ (false),
- srv_inarg_pragma_inst_gen_ (false),
- srv_inoutarg_tmpl_class_gen_ (false),
- srv_inoutarg_pragma_inst_gen_ (false),
- srv_outarg_tmpl_class_gen_ (false),
- srv_outarg_pragma_inst_gen_ (false),
- srv_retarg_tmpl_class_gen_ (false),
- srv_retarg_pragma_inst_gen_ (false),
- ccm_pre_proc_gen_ (false)
+ cli_hdr_gen_ (I_FALSE),
+ cli_stub_gen_ (I_FALSE),
+ cli_inline_gen_ (I_FALSE),
+ srv_hdr_gen_ (I_FALSE),
+ impl_hdr_gen_ (I_FALSE),
+ srv_skel_gen_ (I_FALSE),
+ impl_skel_gen_ (I_FALSE),
+ srv_inline_gen_ (I_FALSE),
+ cli_hdr_any_op_gen_ (I_FALSE),
+ cli_stub_any_op_gen_ (I_FALSE),
+ cli_hdr_cdr_op_gen_ (I_FALSE),
+ cli_stub_cdr_op_gen_ (I_FALSE),
+ cli_inline_cdr_op_gen_ (I_FALSE),
+ cli_inline_cdr_decl_gen_ (I_FALSE),
+ cli_hdr_serializer_op_gen_ (I_FALSE),
+ cli_stub_serializer_op_gen_ (I_FALSE),
+ cli_inline_serializer_op_gen_ (I_FALSE),
+ cli_inline_serializer_decl_gen_ (I_FALSE),
+ cli_traits_gen_ (I_FALSE),
+ cli_arg_traits_gen_ (I_FALSE),
+ srv_arg_traits_gen_ (I_FALSE),
+ srv_sarg_traits_gen_ (I_FALSE),
+ cli_tmpl_class_gen_ (I_FALSE),
+ cli_pragma_inst_gen_ (I_FALSE),
+ cli_inarg_tmpl_class_gen_ (I_FALSE),
+ cli_inarg_pragma_inst_gen_ (I_FALSE),
+ cli_inoutarg_tmpl_class_gen_ (I_FALSE),
+ cli_inoutarg_pragma_inst_gen_ (I_FALSE),
+ cli_outarg_tmpl_class_gen_ (I_FALSE),
+ cli_outarg_pragma_inst_gen_ (I_FALSE),
+ cli_retarg_tmpl_class_gen_ (I_FALSE),
+ cli_retarg_pragma_inst_gen_ (I_FALSE),
+ srv_tmpl_class_gen_ (I_FALSE),
+ srv_pragma_inst_gen_ (I_FALSE),
+ srv_inarg_tmpl_class_gen_ (I_FALSE),
+ srv_inarg_pragma_inst_gen_ (I_FALSE),
+ srv_inoutarg_tmpl_class_gen_ (I_FALSE),
+ srv_inoutarg_pragma_inst_gen_ (I_FALSE),
+ srv_outarg_tmpl_class_gen_ (I_FALSE),
+ srv_outarg_pragma_inst_gen_ (I_FALSE),
+ srv_retarg_tmpl_class_gen_ (I_FALSE),
+ srv_retarg_pragma_inst_gen_ (I_FALSE),
+ ccm_pre_proc_gen_ (I_FALSE)
{
}
@@ -186,7 +186,7 @@ be_decl::compute_full_name (const char *prefix,
else
{
// Get scope name.
- be_decl *parent =
+ be_decl *parent =
be_scope::narrow_from_scope (this->defined_in ())->decl ();
if (parent == 0)
@@ -288,7 +288,7 @@ be_decl::destroy (void)
}
void
-be_decl::set_local (bool val)
+be_decl::set_local (idl_bool val)
{
this->is_local_ = val;
}
@@ -343,259 +343,259 @@ be_decl::scope (void)
}
// Boolean methods to test if code was already generated.
-bool
+idl_bool
be_decl::cli_hdr_gen (void)
{
return this->cli_hdr_gen_;
}
-bool
+idl_bool
be_decl::cli_stub_gen (void)
{
return this->cli_stub_gen_;
}
-bool
+idl_bool
be_decl::cli_hdr_any_op_gen (void)
{
return this->cli_hdr_any_op_gen_;
}
-bool
+idl_bool
be_decl::cli_stub_any_op_gen (void)
{
return this->cli_stub_any_op_gen_;
}
-bool
+idl_bool
be_decl::cli_hdr_cdr_op_gen (void)
{
return this->cli_hdr_cdr_op_gen_;
}
-bool
+idl_bool
be_decl::cli_stub_cdr_op_gen (void)
{
return this->cli_stub_cdr_op_gen_;
}
-bool
+idl_bool
be_decl::cli_inline_cdr_op_gen (void)
{
return this->cli_inline_cdr_op_gen_;
}
-bool
+idl_bool
be_decl::cli_inline_cdr_decl_gen (void)
{
return this->cli_inline_cdr_decl_gen_;
}
-bool
+idl_bool
be_decl::cli_hdr_serializer_op_gen (void)
{
return this->cli_hdr_serializer_op_gen_;
}
-bool
+idl_bool
be_decl::cli_stub_serializer_op_gen (void)
{
return this->cli_stub_serializer_op_gen_;
}
-bool
+idl_bool
be_decl::cli_inline_serializer_op_gen (void)
{
return this->cli_inline_serializer_op_gen_;
}
-bool
+idl_bool
be_decl::cli_inline_serializer_decl_gen (void)
{
return this->cli_inline_cdr_decl_gen_;
}
-bool
+idl_bool
be_decl::cli_traits_gen (void)
{
return this->cli_traits_gen_;
}
-bool
+idl_bool
be_decl::cli_arg_traits_gen (void)
{
return this->cli_arg_traits_gen_;
}
-bool
+idl_bool
be_decl::srv_arg_traits_gen (void)
{
return this->srv_arg_traits_gen_;
}
-bool
+idl_bool
be_decl::srv_sarg_traits_gen (void)
{
return this->srv_sarg_traits_gen_;
}
-bool
+idl_bool
be_decl::cli_tmpl_class_gen (void)
{
return this->cli_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::cli_pragma_inst_gen (void)
{
return this->cli_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::cli_inarg_tmpl_class_gen (void)
{
return this->cli_inarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::cli_inarg_pragma_inst_gen (void)
{
return this->cli_inarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::cli_inoutarg_tmpl_class_gen (void)
{
return this->cli_inoutarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::cli_inoutarg_pragma_inst_gen (void)
{
return this->cli_inoutarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::cli_outarg_tmpl_class_gen (void)
{
return this->cli_outarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::cli_outarg_pragma_inst_gen (void)
{
return this->cli_outarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::cli_retarg_tmpl_class_gen (void)
{
return this->cli_retarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::cli_retarg_pragma_inst_gen (void)
{
return this->cli_retarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::srv_tmpl_class_gen (void)
{
return this->srv_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::srv_pragma_inst_gen (void)
{
return this->srv_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::srv_inarg_tmpl_class_gen (void)
{
return this->srv_inarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::srv_inarg_pragma_inst_gen (void)
{
return this->srv_inarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::srv_inoutarg_tmpl_class_gen (void)
{
return this->srv_inoutarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::srv_inoutarg_pragma_inst_gen (void)
{
return this->srv_inoutarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::srv_outarg_tmpl_class_gen (void)
{
return this->srv_outarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::srv_outarg_pragma_inst_gen (void)
{
return this->srv_outarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::srv_retarg_tmpl_class_gen (void)
{
return this->srv_retarg_tmpl_class_gen_;
}
-bool
+idl_bool
be_decl::srv_retarg_pragma_inst_gen (void)
{
return this->cli_retarg_pragma_inst_gen_;
}
-bool
+idl_bool
be_decl::cli_inline_gen (void)
{
return this->cli_inline_gen_;
}
-bool
+idl_bool
be_decl::srv_hdr_gen (void)
{
return this->srv_hdr_gen_;
}
-bool
+idl_bool
be_decl::impl_hdr_gen (void)
{
return this->impl_hdr_gen_;
}
-bool
+idl_bool
be_decl::srv_skel_gen (void)
{
return this->srv_skel_gen_;
}
-bool
+idl_bool
be_decl::impl_skel_gen (void)
{
return this->impl_skel_gen_;
}
-bool
+idl_bool
be_decl::srv_inline_gen (void)
{
return this->srv_inline_gen_;
}
-bool
+idl_bool
be_decl::ccm_pre_proc_gen (void)
{
return this->ccm_pre_proc_gen_;
@@ -603,254 +603,254 @@ be_decl::ccm_pre_proc_gen (void)
// Set the flag indicating that code generation is done.
void
-be_decl::cli_hdr_gen (bool val)
+be_decl::cli_hdr_gen (idl_bool val)
{
this->cli_hdr_gen_ = val;
}
void
-be_decl::cli_stub_gen (bool val)
+be_decl::cli_stub_gen (idl_bool val)
{
this->cli_stub_gen_ = val;
}
void
-be_decl::cli_hdr_any_op_gen (bool val)
+be_decl::cli_hdr_any_op_gen (idl_bool val)
{
this->cli_hdr_any_op_gen_ = val;
}
void
-be_decl::cli_stub_any_op_gen (bool val)
+be_decl::cli_stub_any_op_gen (idl_bool val)
{
this->cli_stub_any_op_gen_ = val;
}
void
-be_decl::cli_hdr_cdr_op_gen (bool val)
+be_decl::cli_hdr_cdr_op_gen (idl_bool val)
{
this->cli_hdr_cdr_op_gen_ = val;
}
void
-be_decl::cli_stub_cdr_op_gen (bool val)
+be_decl::cli_stub_cdr_op_gen (idl_bool val)
{
this->cli_stub_cdr_op_gen_ = val;
}
void
-be_decl::cli_inline_cdr_op_gen (bool val)
+be_decl::cli_inline_cdr_op_gen (idl_bool val)
{
this->cli_inline_cdr_op_gen_ = val;
}
void
-be_decl::cli_inline_cdr_decl_gen (bool val)
+be_decl::cli_inline_cdr_decl_gen (idl_bool val)
{
this->cli_inline_cdr_decl_gen_ = val;
}
void
-be_decl::cli_hdr_serializer_op_gen (bool val)
+be_decl::cli_hdr_serializer_op_gen (idl_bool val)
{
this->cli_hdr_serializer_op_gen_ = val;
}
void
-be_decl::cli_stub_serializer_op_gen (bool val)
+be_decl::cli_stub_serializer_op_gen (idl_bool val)
{
this->cli_stub_serializer_op_gen_ = val;
}
void
-be_decl::cli_inline_serializer_op_gen (bool val)
+be_decl::cli_inline_serializer_op_gen (idl_bool val)
{
this->cli_inline_serializer_op_gen_ = val;
}
void
-be_decl::cli_inline_serializer_decl_gen (bool val)
+be_decl::cli_inline_serializer_decl_gen (idl_bool val)
{
this->cli_inline_serializer_decl_gen_ = val;
}
void
-be_decl::cli_inline_gen (bool val)
+be_decl::cli_inline_gen (idl_bool val)
{
this->cli_inline_gen_ = val;
}
void
-be_decl::cli_traits_gen (bool val)
+be_decl::cli_traits_gen (idl_bool val)
{
this->cli_traits_gen_ = val;
}
void
-be_decl::cli_arg_traits_gen (bool val)
+be_decl::cli_arg_traits_gen (idl_bool val)
{
this->cli_arg_traits_gen_ = val;
}
void
-be_decl::srv_arg_traits_gen (bool val)
+be_decl::srv_arg_traits_gen (idl_bool val)
{
this->srv_arg_traits_gen_ = val;
}
void
-be_decl::srv_sarg_traits_gen (bool val)
+be_decl::srv_sarg_traits_gen (idl_bool val)
{
this->srv_sarg_traits_gen_ = val;
}
void
-be_decl::cli_tmpl_class_gen (bool val)
+be_decl::cli_tmpl_class_gen (idl_bool val)
{
this->cli_tmpl_class_gen_ = val;
}
void
-be_decl::cli_pragma_inst_gen (bool val)
+be_decl::cli_pragma_inst_gen (idl_bool val)
{
this->cli_pragma_inst_gen_ = val;
}
void
-be_decl::cli_inarg_tmpl_class_gen (bool val)
+be_decl::cli_inarg_tmpl_class_gen (idl_bool val)
{
this->cli_inarg_tmpl_class_gen_ = val;
}
void
-be_decl::cli_inarg_pragma_inst_gen (bool val)
+be_decl::cli_inarg_pragma_inst_gen (idl_bool val)
{
this->cli_inarg_pragma_inst_gen_ = val;
}
void
-be_decl::cli_inoutarg_tmpl_class_gen (bool val)
+be_decl::cli_inoutarg_tmpl_class_gen (idl_bool val)
{
this->cli_inoutarg_tmpl_class_gen_ = val;
}
void
-be_decl::cli_inoutarg_pragma_inst_gen (bool val)
+be_decl::cli_inoutarg_pragma_inst_gen (idl_bool val)
{
this->cli_inoutarg_pragma_inst_gen_ = val;
}
void
-be_decl::cli_outarg_tmpl_class_gen (bool val)
+be_decl::cli_outarg_tmpl_class_gen (idl_bool val)
{
this->cli_outarg_tmpl_class_gen_ = val;
}
void
-be_decl::cli_outarg_pragma_inst_gen (bool val)
+be_decl::cli_outarg_pragma_inst_gen (idl_bool val)
{
this->cli_outarg_pragma_inst_gen_ = val;
}
void
-be_decl::cli_retarg_tmpl_class_gen (bool val)
+be_decl::cli_retarg_tmpl_class_gen (idl_bool val)
{
this->cli_retarg_tmpl_class_gen_ = val;
}
void
-be_decl::cli_retarg_pragma_inst_gen (bool val)
+be_decl::cli_retarg_pragma_inst_gen (idl_bool val)
{
this->cli_retarg_pragma_inst_gen_ = val;
}
void
-be_decl::srv_tmpl_class_gen (bool val)
+be_decl::srv_tmpl_class_gen (idl_bool val)
{
this->srv_tmpl_class_gen_ = val;
}
void
-be_decl::srv_pragma_inst_gen (bool val)
+be_decl::srv_pragma_inst_gen (idl_bool val)
{
this->srv_pragma_inst_gen_ = val;
}
void
-be_decl::srv_inarg_tmpl_class_gen (bool val)
+be_decl::srv_inarg_tmpl_class_gen (idl_bool val)
{
this->srv_inarg_tmpl_class_gen_ = val;
}
void
-be_decl::srv_inarg_pragma_inst_gen (bool val)
+be_decl::srv_inarg_pragma_inst_gen (idl_bool val)
{
this->srv_inarg_pragma_inst_gen_ = val;
}
void
-be_decl::srv_inoutarg_tmpl_class_gen (bool val)
+be_decl::srv_inoutarg_tmpl_class_gen (idl_bool val)
{
this->srv_inoutarg_tmpl_class_gen_ = val;
}
void
-be_decl::srv_inoutarg_pragma_inst_gen (bool val)
+be_decl::srv_inoutarg_pragma_inst_gen (idl_bool val)
{
this->srv_inoutarg_pragma_inst_gen_ = val;
}
void
-be_decl::srv_outarg_tmpl_class_gen (bool val)
+be_decl::srv_outarg_tmpl_class_gen (idl_bool val)
{
this->srv_outarg_tmpl_class_gen_ = val;
}
void
-be_decl::srv_outarg_pragma_inst_gen (bool val)
+be_decl::srv_outarg_pragma_inst_gen (idl_bool val)
{
this->srv_outarg_pragma_inst_gen_ = val;
}
void
-be_decl::srv_retarg_tmpl_class_gen (bool val)
+be_decl::srv_retarg_tmpl_class_gen (idl_bool val)
{
this->srv_retarg_tmpl_class_gen_ = val;
}
void
-be_decl::srv_retarg_pragma_inst_gen (bool val)
+be_decl::srv_retarg_pragma_inst_gen (idl_bool val)
{
this->srv_retarg_pragma_inst_gen_ = val;
}
void
-be_decl::srv_hdr_gen (bool val)
+be_decl::srv_hdr_gen (idl_bool val)
{
this->srv_hdr_gen_ = val;
}
void
-be_decl::impl_hdr_gen (bool val)
+be_decl::impl_hdr_gen (idl_bool val)
{
this->impl_hdr_gen_ = val;
}
void
-be_decl::srv_skel_gen (bool val)
+be_decl::srv_skel_gen (idl_bool val)
{
this->srv_skel_gen_ = val;
}
void
-be_decl::srv_inline_gen (bool val)
+be_decl::srv_inline_gen (idl_bool val)
{
this->srv_inline_gen_ = val;
}
void
-be_decl::ccm_pre_proc_gen (bool val)
+be_decl::ccm_pre_proc_gen (idl_bool val)
{
this->ccm_pre_proc_gen_ = val;
}
diff --git a/TAO/TAO_IDL/be/be_enum.cpp b/TAO/TAO_IDL/be/be_enum.cpp
index 35256b01780..8890a95eff9 100644
--- a/TAO/TAO_IDL/be/be_enum.cpp
+++ b/TAO/TAO_IDL/be/be_enum.cpp
@@ -24,8 +24,8 @@
#include "global_extern.h"
-ACE_RCSID (be,
- be_enum,
+ACE_RCSID (be,
+ be_enum,
"$Id$")
be_enum::be_enum (void)
@@ -42,8 +42,8 @@ be_enum::be_enum (void)
}
be_enum::be_enum (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_enum,
diff --git a/TAO/TAO_IDL/be/be_eventtype.cpp b/TAO/TAO_IDL/be/be_eventtype.cpp
index 75c484d39c3..6f770a3158d 100644
--- a/TAO/TAO_IDL/be/be_eventtype.cpp
+++ b/TAO/TAO_IDL/be/be_eventtype.cpp
@@ -51,9 +51,9 @@ be_eventtype::be_eventtype (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
: COMMON_Base (0,
abstract),
AST_Decl (AST_Decl::NT_eventtype,
diff --git a/TAO/TAO_IDL/be/be_exception.cpp b/TAO/TAO_IDL/be/be_exception.cpp
index 9982658aa41..ffc5e2b1129 100644
--- a/TAO/TAO_IDL/be/be_exception.cpp
+++ b/TAO/TAO_IDL/be/be_exception.cpp
@@ -25,8 +25,8 @@
#include "global_extern.h"
-ACE_RCSID (be,
- be_exception,
+ACE_RCSID (be,
+ be_exception,
"$Id$")
be_exception::be_exception (void)
@@ -45,8 +45,8 @@ be_exception::be_exception (void)
}
be_exception::be_exception (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_except,
diff --git a/TAO/TAO_IDL/be/be_expression.cpp b/TAO/TAO_IDL/be/be_expression.cpp
index 40da1b84eea..3c940b81abd 100644
--- a/TAO/TAO_IDL/be/be_expression.cpp
+++ b/TAO/TAO_IDL/be/be_expression.cpp
@@ -22,8 +22,8 @@
#include "be_expression.h"
#include "be_visitor.h"
-ACE_RCSID (be,
- be_expression,
+ACE_RCSID (be,
+ be_expression,
"$Id$")
be_expression::be_expression (UTL_ScopedName *n)
@@ -51,14 +51,16 @@ be_expression::be_expression (long l)
{
}
-be_expression::be_expression (bool b)
- : AST_Expression (b)
+be_expression::be_expression (long l,
+ AST_Expression::ExprType t)
+ : AST_Expression (l,
+ t)
{
}
be_expression::be_expression (idl_uns_long l,
AST_Expression::ExprType t)
- : AST_Expression (l,
+ : AST_Expression (l,
t)
{
}
diff --git a/TAO/TAO_IDL/be/be_field.cpp b/TAO/TAO_IDL/be/be_field.cpp
index 567c8799ab2..8e638ba6acc 100644
--- a/TAO/TAO_IDL/be/be_field.cpp
+++ b/TAO/TAO_IDL/be/be_field.cpp
@@ -22,7 +22,6 @@
#include "be_field.h"
#include "be_visitor.h"
#include "be_type.h"
-#include "global_extern.h"
#include "ace/Log_Msg.h"
ACE_RCSID (be,
@@ -50,14 +49,6 @@ be_field::be_field (AST_Type *ft,
be_decl (AST_Decl::NT_field,
n)
{
- // This covers valuetype fields as well, which is what we want.
- AST_Decl::NodeType nt =
- ft->unaliased_type ()->node_type ();
-
- if (nt == AST_Decl::NT_string || nt == AST_Decl::NT_wstring)
- {
- idl_global->string_member_seen_ = true;
- }
}
int
diff --git a/TAO/TAO_IDL/be/be_generator.cpp b/TAO/TAO_IDL/be/be_generator.cpp
index da42383c03c..a0f32ba09d1 100644
--- a/TAO/TAO_IDL/be/be_generator.cpp
+++ b/TAO/TAO_IDL/be/be_generator.cpp
@@ -206,8 +206,8 @@ be_generator::create_interface (UTL_ScopedName *n,
long nih,
AST_Interface **ih_flat,
long nih_flat,
- bool l,
- bool a)
+ idl_bool l,
+ idl_bool a)
{
be_interface *retval = 0;
ACE_NEW_RETURN (retval,
@@ -225,11 +225,11 @@ be_generator::create_interface (UTL_ScopedName *n,
AST_InterfaceFwd *
be_generator::create_interface_fwd (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
AST_Decl *d =
- idl_global->scopes ().top_non_null ()->lookup_by_name (n, true);
+ idl_global->scopes ().top_non_null ()->lookup_by_name (n, I_TRUE);
AST_Interface *dummy = this->create_interface (n,
0,
@@ -276,9 +276,9 @@ be_generator::create_valuetype (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
{
be_valuetype *retval = 0;
ACE_NEW_RETURN (retval,
@@ -301,7 +301,7 @@ be_generator::create_valuetype (UTL_ScopedName *n,
AST_ValueTypeFwd *
be_generator::create_valuetype_fwd (UTL_ScopedName *n,
- bool abstract)
+ idl_bool abstract)
{
AST_ValueType *dummy = this->create_valuetype (n,
0,
@@ -335,9 +335,9 @@ be_generator::create_eventtype (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
{
be_eventtype *retval = 0;
ACE_NEW_RETURN (retval,
@@ -360,7 +360,7 @@ be_generator::create_eventtype (UTL_ScopedName *n,
AST_EventTypeFwd *
be_generator::create_eventtype_fwd (UTL_ScopedName *n,
- bool abstract)
+ idl_bool abstract)
{
AST_EventType *dummy = this->create_eventtype (n,
0,
@@ -451,8 +451,8 @@ be_generator::create_home (UTL_ScopedName *n,
AST_Exception *
be_generator::create_exception (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_exception *retval = 0;
ACE_NEW_RETURN (retval,
@@ -466,8 +466,8 @@ be_generator::create_exception (UTL_ScopedName *n,
AST_Structure *
be_generator::create_structure (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_structure *retval = 0;
ACE_NEW_RETURN (retval,
@@ -497,8 +497,8 @@ be_generator::create_structure_fwd (UTL_ScopedName *n)
AST_Enum *
be_generator::create_enum (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_enum *retval = 0;
ACE_NEW_RETURN (retval,
@@ -514,8 +514,8 @@ AST_Operation *
be_generator::create_operation (AST_Type *rt,
AST_Operation::Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_operation *retval = 0;
ACE_NEW_RETURN (retval,
@@ -560,11 +560,11 @@ be_generator::create_argument (AST_Argument::Direction d,
}
AST_Attribute *
-be_generator::create_attribute (bool ro,
+be_generator::create_attribute (idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_attribute *retval = 0;
ACE_NEW_RETURN (retval,
@@ -581,8 +581,8 @@ be_generator::create_attribute (bool ro,
AST_Union *
be_generator::create_union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_union *retval = 0;
ACE_NEW_RETURN (retval,
@@ -705,11 +705,13 @@ be_generator::create_expr (long l)
}
AST_Expression *
-be_generator::create_expr (bool b)
+be_generator::create_expr (long l,
+ AST_Expression::ExprType t)
{
be_expression *retval = 0;
ACE_NEW_RETURN (retval,
- be_expression (b),
+ be_expression (l,
+ t),
0);
return retval;
@@ -800,8 +802,8 @@ AST_Array *
be_generator::create_array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_array *retval = 0;
ACE_NEW_RETURN (retval,
@@ -819,8 +821,8 @@ AST_Sequence *
be_generator::create_sequence (AST_Expression *v,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_sequence *retval = 0;
ACE_NEW_RETURN (retval,
@@ -878,8 +880,8 @@ be_generator::create_wstring (AST_Expression *v)
AST_Typedef *
be_generator::create_typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
{
be_typedef *retval = 0;
ACE_NEW_RETURN (retval,
diff --git a/TAO/TAO_IDL/be/be_global.cpp b/TAO/TAO_IDL/be/be_global.cpp
index 0385f93b7fc..0bfa528a933 100644
--- a/TAO/TAO_IDL/be/be_global.cpp
+++ b/TAO/TAO_IDL/be/be_global.cpp
@@ -45,10 +45,6 @@ BE_GlobalData::BE_GlobalData (void)
pch_include_ (0),
pre_include_ (0),
post_include_ (0),
- core_versioning_begin_ ("\nTAO_BEGIN_VERSIONED_NAMESPACE_DECL\n"),
- core_versioning_end_ ("\nTAO_END_VERSIONED_NAMESPACE_DECL\n"),
- versioning_begin_ (),
- versioning_end_ (),
client_hdr_ending_ (ACE::strnew ("C.h")),
client_stub_ending_ (ACE::strnew ("C.cpp")),
client_inline_ending_ (ACE::strnew ("C.inl")),
@@ -66,36 +62,35 @@ BE_GlobalData::BE_GlobalData (void)
anyop_src_ending_ (ACE::strnew ("A.cpp")),
output_dir_ (0),
anyop_output_dir_ (0),
- any_support_ (true),
- tc_support_ (true),
+ any_support_ (I_TRUE),
+ tc_support_ (I_TRUE),
obv_opt_accessor_ (0),
- gen_impl_files_ (false),
- gen_impl_debug_info_ (false),
- gen_copy_ctor_ (false),
- gen_assign_op_ (false),
- gen_thru_poa_collocation_ (true), // Default is thru_poa.
- gen_direct_collocation_ (false),
+ gen_impl_files_ (I_FALSE),
+ gen_impl_debug_info_ (I_FALSE),
+ gen_copy_ctor_ (I_FALSE),
+ gen_assign_op_ (I_FALSE),
+ gen_thru_poa_collocation_ (I_TRUE), // Default is thru_poa.
+ gen_direct_collocation_ (I_FALSE),
#ifdef ACE_HAS_EXCEPTIONS
- exception_support_ (true),
+ exception_support_ (I_TRUE),
#else
- exception_support_ (false),
+ exception_support_ (I_FALSE),
#endif /* ACE_HAS_EXCEPTIONS */
- use_raw_throw_ (false),
- opt_tc_ (false),
- ami_call_back_ (false),
- gen_amh_classes_ (false),
- gen_tie_classes_ (true),
- gen_smart_proxies_ (false),
- gen_inline_constants_ (true),
- gen_dcps_type_support_ (false),
+ use_raw_throw_ (I_FALSE),
+ opt_tc_ (I_FALSE),
+ ami_call_back_ (I_FALSE),
+ gen_amh_classes_ (I_FALSE),
+ gen_tie_classes_ (I_TRUE),
+ gen_smart_proxies_ (I_FALSE),
+ gen_inline_constants_ (I_TRUE),
+ gen_dcps_type_support_ (I_FALSE),
lookup_strategy_ (TAO_PERFECT_HASH),
void_type_ (0),
ccmobject_ (0),
- exceptionholder_ (0),
- gen_anyop_files_ (false),
- gen_skel_files_ (true),
- gen_client_inline_ (true),
- gen_server_inline_ (true)
+ gen_anyop_files_ (I_FALSE),
+ gen_skel_files_ (I_TRUE),
+ gen_client_inline_ (I_TRUE),
+ gen_server_inline_ (I_TRUE)
{
}
@@ -223,15 +218,8 @@ const char *
BE_GlobalData::be_get_client_hdr (UTL_String *idl_file_name,
int base_name_only)
{
- // User-defined file extensions don't apply to .pidl files.
- ACE_CString fn (idl_file_name->get_string ());
- ACE_CString fn_ext = fn.substr (fn.length () - 5);
- bool orb_file = (fn_ext == ".pidl" || fn_ext == ".PIDL");
-
return be_change_idl_file_extension (idl_file_name,
- orb_file
- ? "C.h"
- : be_global->client_hdr_ending (),
+ be_global->client_hdr_ending (),
base_name_only);
}
@@ -255,15 +243,8 @@ const char *
BE_GlobalData::be_get_server_hdr (UTL_String *idl_file_name,
int base_name_only)
{
- // User-defined file extensions don't apply to .pidl files.
- ACE_CString fn (idl_file_name->get_string ());
- ACE_CString fn_ext = fn.substr (fn.length () - 5);
- bool orb_file = (fn_ext == ".pidl" || fn_ext == ".PIDL");
-
return be_change_idl_file_extension (idl_file_name,
- orb_file
- ? "S.h"
- : be_global->server_hdr_ending (),
+ be_global->server_hdr_ending (),
base_name_only);
}
@@ -566,54 +547,6 @@ BE_GlobalData::post_include (const char *s)
this->post_include_ = ACE_OS::strdup (s);
}
-void
-BE_GlobalData::versioning_begin (const char * s)
-{
- this->versioning_begin_ =
- ACE_CString ("\n\n")
- + ACE_CString (s)
- + ACE_CString ("\n\n");
-
- this->core_versioning_end_ += this->versioning_begin_; // Yes, "begin".
-}
-
-const char *
-BE_GlobalData::versioning_begin (void) const
-{
- return this->versioning_begin_.c_str ();
-}
-
-const char *
-BE_GlobalData::core_versioning_begin (void) const
-{
- return this->core_versioning_begin_.c_str ();
-}
-
-void
-BE_GlobalData::versioning_end (const char * s)
-{
- this->versioning_end_ =
- ACE_CString ("\n\n")
- + ACE_CString (s)
- + ACE_CString ("\n\n");
-
- this->core_versioning_begin_ =
- this->versioning_end_ // Yes, "end".
- + this->core_versioning_begin_; // Initialized in constructor.
-}
-
-const char *
-BE_GlobalData::versioning_end (void) const
-{
- return this->versioning_end_.c_str ();
-}
-
-const char *
-BE_GlobalData::core_versioning_end (void) const
-{
- return this->core_versioning_end_.c_str ();
-}
-
// Set the client_hdr_ending.
void
BE_GlobalData::client_hdr_ending (const char* s)
@@ -839,215 +772,215 @@ BE_GlobalData::anyop_output_dir (void) const
}
void
-BE_GlobalData::any_support (bool val)
+BE_GlobalData::any_support (idl_bool val)
{
this->any_support_ = val;
}
-bool
+idl_bool
BE_GlobalData::any_support (void) const
{
return this->any_support_;
}
void
-BE_GlobalData::tc_support (bool val)
+BE_GlobalData::tc_support (idl_bool val)
{
this->tc_support_ = val;
}
-bool
+idl_bool
BE_GlobalData::tc_support (void) const
{
return this->tc_support_;
}
void
-BE_GlobalData::obv_opt_accessor (bool val)
+BE_GlobalData::obv_opt_accessor (idl_bool val)
{
this->obv_opt_accessor_ = val;
}
-bool
+idl_bool
BE_GlobalData::obv_opt_accessor (void) const
{
return this->obv_opt_accessor_;
}
void
-BE_GlobalData::gen_impl_files (bool val)
+BE_GlobalData::gen_impl_files (idl_bool val)
{
this->gen_impl_files_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_impl_files (void) const
{
return this->gen_impl_files_;
}
void
-BE_GlobalData::gen_impl_debug_info (bool val)
+BE_GlobalData::gen_impl_debug_info (idl_bool val)
{
this->gen_impl_debug_info_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_impl_debug_info (void) const
{
return this->gen_impl_debug_info_;
}
void
-BE_GlobalData::gen_copy_ctor (bool val)
+BE_GlobalData::gen_copy_ctor (idl_bool val)
{
this->gen_copy_ctor_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_copy_ctor (void) const
{
return this->gen_copy_ctor_;
}
void
-BE_GlobalData::gen_assign_op (bool val)
+BE_GlobalData::gen_assign_op (idl_bool val)
{
this->gen_assign_op_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_assign_op (void) const
{
return this->gen_assign_op_;
}
void
-BE_GlobalData::gen_thru_poa_collocation (bool val)
+BE_GlobalData::gen_thru_poa_collocation (idl_bool val)
{
this->gen_thru_poa_collocation_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_thru_poa_collocation (void) const
{
return this->gen_thru_poa_collocation_;
}
void
-BE_GlobalData::gen_direct_collocation (bool val)
+BE_GlobalData::gen_direct_collocation (idl_bool val)
{
this->gen_direct_collocation_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_direct_collocation (void) const
{
return this->gen_direct_collocation_;
}
void
-BE_GlobalData::exception_support (bool val)
+BE_GlobalData::exception_support (idl_bool val)
{
this->exception_support_ = val;
}
-bool
+idl_bool
BE_GlobalData::exception_support (void) const
{
return this->exception_support_;
}
void
-BE_GlobalData::use_raw_throw (bool val)
+BE_GlobalData::use_raw_throw (idl_bool val)
{
this->use_raw_throw_ = val;
}
-bool
+idl_bool
BE_GlobalData::use_raw_throw (void) const
{
return this->use_raw_throw_;
}
void
-BE_GlobalData::opt_tc (bool val)
+BE_GlobalData::opt_tc (idl_bool val)
{
this->opt_tc_ = val;
}
-bool
+idl_bool
BE_GlobalData::opt_tc (void) const
{
return this->opt_tc_;
}
void
-BE_GlobalData::ami_call_back (bool val)
+BE_GlobalData::ami_call_back (idl_bool val)
{
this->ami_call_back_ = val;
}
-bool
+idl_bool
BE_GlobalData::ami_call_back (void) const
{
return this->ami_call_back_;
}
void
-BE_GlobalData::gen_amh_classes (bool val)
+BE_GlobalData::gen_amh_classes (idl_bool val)
{
this->gen_amh_classes_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_amh_classes (void) const
{
return this->gen_amh_classes_;
}
void
-BE_GlobalData::gen_tie_classes (bool val)
+BE_GlobalData::gen_tie_classes (idl_bool val)
{
this->gen_tie_classes_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_tie_classes (void) const
{
return this->gen_tie_classes_;
}
void
-BE_GlobalData::gen_smart_proxies (bool val)
+BE_GlobalData::gen_smart_proxies (idl_bool val)
{
this->gen_smart_proxies_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_smart_proxies (void) const
{
return this->gen_smart_proxies_;
}
void
-BE_GlobalData::gen_inline_constants (bool val)
+BE_GlobalData::gen_inline_constants (idl_bool val)
{
this->gen_inline_constants_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_inline_constants (void) const
{
return this->gen_inline_constants_;
}
void
-BE_GlobalData::gen_dcps_type_support (bool val)
+BE_GlobalData::gen_dcps_type_support (idl_bool val)
{
this->gen_dcps_type_support_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_dcps_type_support (void) const
{
return this->gen_dcps_type_support_;
@@ -1153,62 +1086,50 @@ BE_GlobalData::ccmobject (be_interface *val)
this->ccmobject_ = val;
}
-be_valuetype *
-BE_GlobalData::exceptionholder (void) const
-{
- return this->exceptionholder_;
-}
-
-void
-BE_GlobalData::exceptionholder (be_valuetype *val)
-{
- this->exceptionholder_ = val;
-}
-
-bool
+idl_bool
BE_GlobalData::gen_anyop_files (void) const
{
return this->gen_anyop_files_;
}
void
-BE_GlobalData::gen_anyop_files (bool val)
+BE_GlobalData::gen_anyop_files (idl_bool val)
{
this->gen_anyop_files_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_skel_files (void) const
{
return this->gen_skel_files_;
}
void
-BE_GlobalData::gen_skel_files (bool val)
+BE_GlobalData::gen_skel_files (idl_bool val)
{
this->gen_skel_files_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_client_inline (void) const
{
return this->gen_client_inline_;
}
void
-BE_GlobalData::gen_client_inline (bool val)
+BE_GlobalData::gen_client_inline (idl_bool val)
{
this->gen_client_inline_ = val;
}
-bool
+idl_bool
BE_GlobalData::gen_server_inline (void) const
{
return this->gen_server_inline_;
}
void
-BE_GlobalData::gen_server_inline (bool val)
+BE_GlobalData::gen_server_inline (idl_bool val)
{
this->gen_server_inline_ = val;
}
@@ -1555,18 +1476,18 @@ BE_GlobalData::parse_args (long &i, char **av)
if (av[i][2] == 'C')
{
// AMI with Call back.
- be_global->ami_call_back (true);
+ be_global->ami_call_back (I_TRUE);
}
else if (av[i][2] == 'H')
{
// AMH classes.
- be_global->gen_amh_classes (true);
+ be_global->gen_amh_classes (I_TRUE);
}
else if (av[i][2] == 'A')
{
// TAO-team-only, undocumented option to generate
// Any operators into a separate set of files.
- be_global->gen_anyop_files (true);
+ be_global->gen_anyop_files (I_TRUE);
}
else if (av[i][2] == 'e')
{
@@ -1587,7 +1508,7 @@ BE_GlobalData::parse_args (long &i, char **av)
if (av[i][3] == 'p')
{
// smart proxies
- be_global->gen_smart_proxies (true);
+ be_global->gen_smart_proxies (I_TRUE);
}
else
{
@@ -1608,7 +1529,7 @@ BE_GlobalData::parse_args (long &i, char **av)
if (av[i][3] == 'c')
{
// inline constants
- be_global->gen_inline_constants (false);
+ be_global->gen_inline_constants (I_FALSE);
}
else
{
@@ -1641,7 +1562,7 @@ BE_GlobalData::parse_args (long &i, char **av)
if (av[i][4] == 'p' && av[i][5] =='s' && '\0' == av[i][6])
{
// DDS DCSP type support
- be_global->gen_dcps_type_support (true);
+ be_global->gen_dcps_type_support (I_TRUE);
}
else
{
@@ -1750,31 +1671,31 @@ BE_GlobalData::parse_args (long &i, char **av)
if (av[i][2] == 'a')
{
// suppress Any support
- be_global->any_support (false);
+ be_global->any_support (I_FALSE);
}
else if (av[i][2] == 't')
{
// suppress typecode support
// Anys must be suppressed as well
- be_global->tc_support (false);
- be_global->any_support (false);
+ be_global->tc_support (I_FALSE);
+ be_global->any_support (I_FALSE);
}
else if (av[i][2] == 'p')
{
// suppress generating Thru_POA collocated stubs
- be_global->gen_thru_poa_collocation (false);
+ be_global->gen_thru_poa_collocation (I_FALSE);
}
else if (av[i][2] == 'd')
{
// suppress generating Direct collocated stubs
- be_global->gen_direct_collocation (false);
+ be_global->gen_direct_collocation (I_FALSE);
}
else if (av[i][2] == 'c')
{
if (av[i][3] == 'i')
{
// no client inline
- be_global->gen_client_inline (false);
+ be_global->gen_client_inline (I_FALSE);
}
else
{
@@ -1790,14 +1711,14 @@ BE_GlobalData::parse_args (long &i, char **av)
else if (av[i][2] == 'S')
{
// disable skeleton file generation.
- be_global->gen_skel_files (false);
+ be_global->gen_skel_files (I_FALSE);
}
else if (av[i][2] == 's')
{
if (av[i][3] == 'i')
{
// no client inline
- be_global->gen_server_inline (false);
+ be_global->gen_server_inline (I_FALSE);
}
else
{
@@ -1836,21 +1757,18 @@ BE_GlobalData::parse_args (long &i, char **av)
void
BE_GlobalData::prep_be_arg (char *s)
{
- static const char arg_macro[] = "export_macro=";
- static const char arg_include[] = "export_include=";
- static const char skel_arg_macro[] = "skel_export_macro=";
- static const char skel_arg_include[] = "skel_export_include=";
- static const char stub_arg_macro[] = "stub_export_macro=";
- static const char stub_arg_include[] = "stub_export_include=";
- static const char anyop_arg_macro[] = "anyop_export_macro=";
- static const char anyop_arg_include[] = "anyop_export_include=";
- static const char arg_pch_include[] = "pch_include=";
- static const char arg_pre_include[] = "pre_include=";
- static const char arg_post_include[] = "post_include=";
- static const char arg_versioning_begin[] = "versioning_begin=";
- static const char arg_versioning_end[] = "versioning_end=";
- static const char obv_opt_accessor[] = "obv_opt_accessor";
-
+ const char arg_macro[] = "export_macro=";
+ const char arg_include[] = "export_include=";
+ const char skel_arg_macro[] = "skel_export_macro=";
+ const char skel_arg_include[] = "skel_export_include=";
+ const char stub_arg_macro[] = "stub_export_macro=";
+ const char stub_arg_include[] = "stub_export_include=";
+ const char anyop_arg_macro[] = "anyop_export_macro=";
+ const char anyop_arg_include[] = "anyop_export_include=";
+ const char arg_pch_include[] = "pch_include=";
+ const char arg_pre_include[] = "pre_include=";
+ const char arg_post_include[] = "post_include=";
+ const char obv_opt_accessor[] = "obv_opt_accessor";
char* last = 0;
@@ -1919,16 +1837,6 @@ BE_GlobalData::prep_be_arg (char *s)
{
be_global->obv_opt_accessor (1);
}
- else if (ACE_OS::strstr (arg, arg_versioning_begin) == arg)
- {
- char const * const val = arg + sizeof (arg_versioning_begin) - 1;
- be_global->versioning_begin (val);
- }
- else if (ACE_OS::strstr (arg, arg_versioning_end) == arg)
- {
- char const * const val = arg + sizeof (arg_versioning_end) - 1;
- be_global->versioning_end (val);
- }
else
{
ACE_ERROR ((LM_ERROR,
@@ -2007,83 +1915,6 @@ BE_GlobalData::usage (void) const
{
ACE_DEBUG ((
LM_DEBUG,
- ACE_TEXT (" -Wb,export_macro=<macro name>\t\t\tsets export macro ")
- ACE_TEXT ("for all files\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,export_include=<include path>\t\tsets export include ")
- ACE_TEXT ("file for all files\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,stub_export_macro=<macro name>\t\tsets export ")
- ACE_TEXT ("macro for client files only\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,stub_export_include=<include path>\t\tsets export ")
- ACE_TEXT ("include file for client only\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,skel_export_macro=<macro name>\t\tsets export ")
- ACE_TEXT ("macro for server files only\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,skel_export_include=<include path>\t\tsets export ")
- ACE_TEXT ("include file for server only\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,anyop_export_macro=<macro name>\t\tsets export macro ")
- ACE_TEXT ("for typecode/Any operator files only, when -GA option ")
- ACE_TEXT ("is used\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,anyop_export_include=<include path>\tsets export ")
- ACE_TEXT ("include file typecode/Any operator files only, when -GA ")
- ACE_TEXT ("option is used\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,pch_include=<include path>\t\t\tsets include ")
- ACE_TEXT ("file for precompiled header mechanism\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,pre_include=<include path>\t\t\tsets include ")
- ACE_TEXT ("file generate before any other includes\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,post_include=<include path>\t\tsets include ")
- ACE_TEXT ("file generated at the end of the file\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,obv_opt_accessor\t\t\t\toptimizes access to base class ")
- ACE_TEXT ("data in valuetypes\n")
- ));
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- || (defined (TAO_HAS_VERSIONED_NAMESPACE) \
- && TAO_HAS_VERSIONED_NAMESPACE == 1)
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,versioning_begin\t\t\tSet text that opens a ")
- ACE_TEXT ("a \"versioned\" namespace\n")
- ));
- ACE_DEBUG ((
- LM_DEBUG,
- ACE_TEXT (" -Wb,versioning_end\t\t\tSet text that closes a ")
- ACE_TEXT ("a \"versioned\" namespace\n")
- ));
-#endif /* ACE_HAS_VERSIONED_NAMESPACE || TAO_HAS_VERSIONED_NAMESPACE */
- ACE_DEBUG ((
- LM_DEBUG,
ACE_TEXT (" -ci\t\t\tClient inline file name ending. Default is C.inl\n")
));
ACE_DEBUG ((
diff --git a/TAO/TAO_IDL/be/be_helper.cpp b/TAO/TAO_IDL/be/be_helper.cpp
index c8ba868ba4b..5e86db063a8 100644
--- a/TAO/TAO_IDL/be/be_helper.cpp
+++ b/TAO/TAO_IDL/be/be_helper.cpp
@@ -21,7 +21,6 @@
#include "be_helper.h"
#include "be_codegen.h"
-#include "be_extern.h"
#include "idl_defines.h"
#include "ace/OS_NS_string.h"
@@ -58,7 +57,6 @@ static const char copyright[] =
TAO_NL::TAO_NL (void)
{
- ACE_UNUSED_ARG (copyright);
}
TAO_INDENT::TAO_INDENT (int do_now)
@@ -77,44 +75,6 @@ const TAO_INDENT be_idt_nl (1);
const TAO_UNINDENT be_uidt;
const TAO_UNINDENT be_uidt_nl (1);
-TAO_ENV_ARG::TAO_ENV_ARG (bool with_defaults,
- bool single,
- bool arg,
- bool not_used)
- : with_defaults_ (with_defaults),
- single_ (single),
- arg_ (arg),
- not_used_ (not_used)
-{
-}
-
-const TAO_ENV_ARG env_decl;
-const TAO_ENV_ARG env_dflts (true);
-const TAO_ENV_ARG env_sngl (false, true);
-const TAO_ENV_ARG env_sngl_dflts (true, true);
-const TAO_ENV_ARG env_not (false, false, false, true);
-const TAO_ENV_ARG env_sngl_not (false, true, false, true);
-const TAO_ENV_ARG env_arg (false, false, true);
-const TAO_ENV_ARG env_sngl_arg (false, true, true);
-
-TAO_ACE_CHECK::TAO_ACE_CHECK (const char *retval,
- bool do_return)
- : retval_ (retval),
- do_return_ (retval != 0 || do_return)
-{
-}
-
-TAO_ACE_TRY_CHECK::TAO_ACE_TRY_CHECK (void)
-{
-}
-
-TAO_ACE_ENDTRY::TAO_ACE_ENDTRY (void)
-{
-}
-
-const TAO_ACE_TRY_CHECK ace_try_check;
-const TAO_ACE_ENDTRY ace_endtry;
-
// Methods of the TAO_OutStream class.
TAO_OutStream::TAO_OutStream (void)
@@ -499,63 +459,6 @@ TAO_OutStream::operator<< (const TAO_UNINDENT& i)
}
TAO_OutStream &
-TAO_OutStream::operator<< (const TAO_ENV_ARG& i)
-{
- if (!be_global->use_raw_throw ())
- {
- (*this) << be_nl
- << "ACE_ENV_"
- << (i.single_ ? "SINGLE_" : "")
- << "ARG_"
- << (i.arg_ ? "PARAMETER" : "DECL")
- << (i.with_defaults_ ? "_WITH_DEFAULTS" : "")
- << (i.not_used_ ? "_NOT_USED" : "");
- }
-
- return *this;
-}
-
-TAO_OutStream &
-TAO_OutStream::operator<< (const TAO_ACE_CHECK& i)
-{
- if (!be_global->use_raw_throw ())
- {
- (*this) << be_nl
- << "ACE_CHECK"
- << (i.do_return_ ? "_RETURN (" : "")
- << (i.retval_ ? i.retval_ : "")
- << (i.do_return_ ? ")" : "")
- << ";";
- }
-
- return *this;
-}
-
-TAO_OutStream &
-TAO_OutStream::operator<< (const TAO_ACE_TRY_CHECK&)
-{
- if (!be_global->use_raw_throw ())
- {
- (*this) << be_nl
- << "ACE_TRY_CHECK;";
- }
-
- return *this;
-}
-
-TAO_OutStream &
-TAO_OutStream::operator<< (const TAO_ACE_ENDTRY&)
-{
- if (!be_global->use_raw_throw ())
- {
- (*this) << be_nl
- << "ACE_ENDTRY;";
- }
-
- return *this;
-}
-
-TAO_OutStream &
TAO_OutStream::operator<< (Identifier *id)
{
return this->print (id);
diff --git a/TAO/TAO_IDL/be/be_home.cpp b/TAO/TAO_IDL/be/be_home.cpp
index 4ebcd57d557..1d1bfb89860 100644
--- a/TAO/TAO_IDL/be/be_home.cpp
+++ b/TAO/TAO_IDL/be/be_home.cpp
@@ -49,8 +49,8 @@ be_home::be_home (UTL_ScopedName *n,
long n_supports,
AST_Interface **supports_flat,
long n_supports_flat)
- : COMMON_Base (false,
- false),
+ : COMMON_Base (I_FALSE,
+ I_FALSE),
AST_Decl (AST_Decl::NT_home,
n),
AST_Type (AST_Decl::NT_home,
@@ -61,8 +61,8 @@ be_home::be_home (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat,
- false,
- false),
+ I_FALSE,
+ I_FALSE),
AST_Home (n,
base_home,
managed_component,
@@ -79,11 +79,11 @@ be_home::be_home (UTL_ScopedName *n,
n_supports,
supports_flat,
n_supports_flat,
- false,
- false)
+ I_FALSE,
+ I_FALSE)
{
this->size_type (AST_Type::VARIABLE);
-
+
// Some previous error may have caused a lookup failure, in which
// case we'll crash if we do the narrow below.
if (managed_component == 0)
@@ -95,7 +95,7 @@ be_home::be_home (UTL_ScopedName *n,
be_component *bt =
be_component::narrow_from_decl (managed_component);
- bt->seen_in_operation (true);
+ bt->seen_in_operation (I_TRUE);
idl_global->object_arg_seen_ = true;
}
@@ -120,7 +120,7 @@ be_home::accept (be_visitor *visitor)
idl_global->err ()->ignore_idl3_error (this);
return -1;
}
-
+
return visitor->visit_home (this);
}
diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp
index 01ea43affcf..996a705dd41 100644
--- a/TAO/TAO_IDL/be/be_interface.cpp
+++ b/TAO/TAO_IDL/be/be_interface.cpp
@@ -73,8 +73,8 @@ be_interface::be_interface (UTL_ScopedName *n,
long nih,
AST_Interface **ih_flat,
long nih_flat,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_interface,
@@ -228,8 +228,8 @@ be_interface::compute_full_skel_name (const char *prefix,
else
{
size_t namelen = ACE_OS::strlen (prefix);
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
char *item_name = 0;
// In the first loop compute the total length.
@@ -243,7 +243,7 @@ be_interface::compute_full_skel_name (const char *prefix,
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -256,11 +256,11 @@ be_interface::compute_full_skel_name (const char *prefix,
if (ACE_OS::strcmp (item_name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -268,8 +268,8 @@ be_interface::compute_full_skel_name (const char *prefix,
ACE_NEW (skelname,
char [namelen+1]);
skelname[0] = '\0';
- first = true;
- second = false;
+ first = I_TRUE;
+ second = I_FALSE;
ACE_OS::strcat (skelname, prefix);
for (UTL_IdListActiveIterator j (this->name ());
@@ -282,7 +282,7 @@ be_interface::compute_full_skel_name (const char *prefix,
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -294,11 +294,11 @@ be_interface::compute_full_skel_name (const char *prefix,
if (ACE_OS::strcmp (item_name, "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -541,7 +541,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
<< "TAO_ORB_Core *oc" << be_uidt_nl
<< ")" << be_nl
<< ": ";
-
+
bool the_check =
(this->has_mixed_parentage_
&& !this->is_abstract_
@@ -560,7 +560,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
<< "servant"
<< (the_check ? "" : ", oc") << be_uidt_nl
<< ")" << be_uidt;
-
+
if (!the_check)
{
*os << "," << be_nl
@@ -577,7 +577,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
this->traverse_inheritance_graph (
be_interface::gen_abstract_init_helper,
os,
- true
+ I_TRUE
);
if (status == -1)
@@ -591,7 +591,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
{
*os << be_idt;
}
-
+
if (the_check && !this->is_abstract_)
{
*os << "," << be_uidt_nl;
@@ -771,7 +771,7 @@ Pure_Virtual_Regenerator::emit (be_interface *derived_interface,
{
// Hack to force the generation of the pure virtual ' = 0'
// at the end of the operation declaration.
- d->set_local (true);
+ d->set_local (I_TRUE);
if (d->accept (this->visitor_) == -1)
{
@@ -781,7 +781,7 @@ Pure_Virtual_Regenerator::emit (be_interface *derived_interface,
-1);
}
- d->set_local (false);
+ d->set_local (I_FALSE);
}
}
@@ -1294,7 +1294,7 @@ be_interface::gen_collocated_skel_body (be_interface *derived,
be_interface *ancestor,
AST_Decl *d,
const char *prefix,
- bool /* direct */,
+ idl_bool /* direct */,
UTL_ExceptList *list,
TAO_OutStream *os)
{
@@ -1308,7 +1308,8 @@ be_interface::gen_collocated_skel_body (be_interface *derived,
<< "::" << prefix << d->local_name () << " (" << be_idt << be_idt_nl
<< "TAO_Abstract_ServantBase *servant," << be_nl
<< "TAO::Argument ** args," << be_nl
- << "int num_args" << env_decl << be_uidt_nl
+ << "int num_args" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")";
be_interface::gen_throw_spec (list, os);
@@ -1319,7 +1320,8 @@ be_interface::gen_collocated_skel_body (be_interface *derived,
<< "::" << prefix << d->local_name () << " (" << be_idt << be_idt_nl
<< "servant," << be_nl
<< "args," << be_nl
- << "num_args" << env_arg << be_uidt_nl
+ << "num_args" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}"<< be_nl;
@@ -1349,7 +1351,7 @@ be_interface::analyze_parentage (void)
}
AST_Decl::NodeType nt = this->node_type ();
- bool can_be_mixed = nt == AST_Decl::NT_interface
+ idl_bool can_be_mixed = nt == AST_Decl::NT_interface
|| nt == AST_Decl::NT_component
|| nt == AST_Decl::NT_home;
@@ -1383,7 +1385,7 @@ be_code_emitter_wrapper::emit (be_interface *derived_interface,
int
be_interface::traverse_inheritance_graph (be_interface::tao_code_emitter gen,
TAO_OutStream *os,
- bool abstract_paths_only)
+ idl_bool abstract_paths_only)
{
// Make sure the queues are empty.
this->insert_queue.reset ();
@@ -1410,7 +1412,7 @@ int
be_interface::traverse_inheritance_graph (
TAO_IDL_Inheritance_Hierarchy_Worker &worker,
TAO_OutStream *os,
- bool abstract_paths_only
+ idl_bool abstract_paths_only
)
{
AST_Interface *intf = 0; // element inside the queue
@@ -1924,7 +1926,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request, " << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_dflts << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
}
else
@@ -1937,7 +1940,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -1951,7 +1955,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "server_request," << be_nl
<< "servant_upcall," << be_nl
- << "impl" << env_arg << be_uidt_nl
+ << "impl" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
}
@@ -1975,7 +1980,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_dflts << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
}
else
@@ -1988,7 +1994,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -2002,7 +2009,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "server_request," << be_nl
<< "servant_upcall," << be_nl
- << "impl" << env_arg << be_uidt_nl
+ << "impl" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
}
@@ -2020,7 +2028,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_dflts << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
}
else
@@ -2034,7 +2043,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -2048,7 +2058,8 @@ be_interface::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "server_request," << be_nl
<< "servant_upcall," << be_nl
- << "impl" << env_arg << be_uidt_nl
+ << "impl" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
}
@@ -2101,7 +2112,8 @@ be_interface::gen_colloc_op_decl_helper (be_interface *derived,
<< d->local_name () << " (" << be_idt << be_idt_nl
<< "TAO_Abstract_ServantBase *servant, " << be_nl
<< "TAO::Argument ** args," << be_nl
- << "int num_args" << env_dflts << be_uidt_nl
+ << "int num_args" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ")";
list = be_operation::narrow_from_decl (d)->exceptions ();
@@ -2123,7 +2135,8 @@ be_interface::gen_colloc_op_decl_helper (be_interface *derived,
<< "_get_" << d->local_name () << " (" << be_idt << be_idt_nl
<< "TAO_Abstract_ServantBase *servant, " << be_nl
<< "TAO::Argument ** args," << be_nl
- << "int num_args" << env_dflts << be_uidt_nl
+ << "int num_args" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ")";
list = attr->get_get_exceptions ();
@@ -2141,7 +2154,8 @@ be_interface::gen_colloc_op_decl_helper (be_interface *derived,
<< "_set_" << d->local_name () << " (" << be_idt << be_idt_nl
<< "TAO_Abstract_ServantBase *servant, " << be_nl
<< "TAO::Argument ** args," << be_nl
- << "int num_args" << env_dflts << be_uidt_nl
+ << "int num_args" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ")";
list = attr->get_set_exceptions ();
@@ -2197,7 +2211,7 @@ be_interface::gen_colloc_op_defn_helper (be_interface *derived,
ancestor,
d,
"",
- true,
+ I_TRUE,
op->exceptions (),
os);
}
@@ -2218,7 +2232,7 @@ be_interface::gen_colloc_op_defn_helper (be_interface *derived,
ancestor,
d,
"_get_",
- true,
+ I_TRUE,
attr->get_get_exceptions (),
os
);
@@ -2233,7 +2247,7 @@ be_interface::gen_colloc_op_defn_helper (be_interface *derived,
ancestor,
d,
"_set_",
- true,
+ I_TRUE,
attr->get_set_exceptions (),
os
);
@@ -2259,7 +2273,7 @@ be_interface::copy_ctor_helper (be_interface *derived,
*os << "," << be_idt_nl;
- bool is_rh_base =
+ idl_bool is_rh_base =
(ACE_OS::strcmp (base->flat_name (), "Messaging_ReplyHandler") == 0);
if (is_rh_base)
@@ -2463,7 +2477,7 @@ be_interface::session_component_child (void)
AST_Decl *session_component =
const_cast<be_interface*> (this)->scope ()->lookup_by_name (&sn,
- true);
+ I_TRUE);
tail_id.destroy ();
head_id.destroy ();
@@ -2493,7 +2507,7 @@ be_interface::session_component_child (void)
return this->session_component_child_;
}
-bool
+idl_bool
be_interface::is_event_consumer (void)
{
return
diff --git a/TAO/TAO_IDL/be/be_interface_fwd.cpp b/TAO/TAO_IDL/be/be_interface_fwd.cpp
index 6577daeeabf..a74eeceded9 100644
--- a/TAO/TAO_IDL/be/be_interface_fwd.cpp
+++ b/TAO/TAO_IDL/be/be_interface_fwd.cpp
@@ -64,7 +64,7 @@ be_interface_fwd::~be_interface_fwd (void)
}
void
-be_interface_fwd::seq_elem_tmplinst (bool val)
+be_interface_fwd::seq_elem_tmplinst (idl_bool val)
{
this->be_type::seq_elem_tmplinst (val);
be_interface *fd =
@@ -73,7 +73,7 @@ be_interface_fwd::seq_elem_tmplinst (bool val)
}
void
-be_interface_fwd::seen_in_sequence (bool val)
+be_interface_fwd::seen_in_sequence (idl_bool val)
{
this->be_type::seen_in_sequence (val);
be_interface *fd =
@@ -82,7 +82,7 @@ be_interface_fwd::seen_in_sequence (bool val)
}
void
-be_interface_fwd::seen_in_operation (bool val)
+be_interface_fwd::seen_in_operation (idl_bool val)
{
this->be_type::seen_in_operation (val);
be_interface *fd =
diff --git a/TAO/TAO_IDL/be/be_native.cpp b/TAO/TAO_IDL/be/be_native.cpp
index be5d28e0091..d4f10163cd0 100644
--- a/TAO/TAO_IDL/be/be_native.cpp
+++ b/TAO/TAO_IDL/be/be_native.cpp
@@ -19,8 +19,8 @@
#include "be_native.h"
#include "be_visitor.h"
-ACE_RCSID (be,
- be_native,
+ACE_RCSID (be,
+ be_native,
"$Id$")
@@ -50,19 +50,19 @@ be_native::be_native (UTL_ScopedName *n)
UTL_Scope (AST_Decl::NT_native),
AST_Structure (AST_Decl::NT_native,
n,
- true,
- false),
+ I_TRUE,
+ I_FALSE),
AST_Exception (n,
- true,
- false),
+ I_TRUE,
+ I_FALSE),
AST_Native (n),
be_decl (AST_Decl::NT_native,
n),
be_type (AST_Decl::NT_native,
n),
be_exception (n,
- true,
- false)
+ I_TRUE,
+ I_FALSE)
{
}
diff --git a/TAO/TAO_IDL/be/be_operation.cpp b/TAO/TAO_IDL/be/be_operation.cpp
index 7fc7ba0f21b..ad495310970 100644
--- a/TAO/TAO_IDL/be/be_operation.cpp
+++ b/TAO/TAO_IDL/be/be_operation.cpp
@@ -45,8 +45,8 @@ be_operation::be_operation (void)
be_operation::be_operation (AST_Type *rt,
AST_Operation::Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_op,
@@ -68,13 +68,13 @@ be_operation::be_operation (AST_Type *rt,
{
return;
}
-
+
idl_global->operation_seen_ = true;
if (!this->is_local ())
{
be_type *bt = be_type::narrow_from_decl (rt);
- bt->seen_in_operation (true);
+ bt->seen_in_operation (I_TRUE);
this->set_arg_seen_bit (bt);
idl_global->non_local_op_seen_ = true;
}
diff --git a/TAO/TAO_IDL/be/be_predefined_type.cpp b/TAO/TAO_IDL/be/be_predefined_type.cpp
index 613be8a7c7c..657e90f8c03 100644
--- a/TAO/TAO_IDL/be/be_predefined_type.cpp
+++ b/TAO/TAO_IDL/be/be_predefined_type.cpp
@@ -48,7 +48,7 @@ be_predefined_type::be_predefined_type (AST_PredefinedType::PredefinedType t,
: COMMON_Base (),
AST_Decl (AST_Decl::NT_pre_defined,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_pre_defined,
n),
AST_ConcreteType (AST_Decl::NT_pre_defined,
diff --git a/TAO/TAO_IDL/be/be_sequence.cpp b/TAO/TAO_IDL/be/be_sequence.cpp
index 4e37e686a1c..268c0316121 100644
--- a/TAO/TAO_IDL/be/be_sequence.cpp
+++ b/TAO/TAO_IDL/be/be_sequence.cpp
@@ -54,19 +54,19 @@ be_sequence::be_sequence (void)
field_node_ (0)
{
// Always the case.
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
}
be_sequence::be_sequence (AST_Expression *v,
AST_Type *t,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (t->is_local () || local,
abstract),
AST_Decl (AST_Decl::NT_sequence,
n,
- true),
+ I_TRUE),
AST_Type (AST_Decl::NT_sequence,
n),
AST_ConcreteType (AST_Decl::NT_sequence,
@@ -86,7 +86,7 @@ be_sequence::be_sequence (AST_Expression *v,
field_node_ (0)
{
// Always the case.
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
// Don't want to set any bits below for imported nodes.
if (this->imported ())
@@ -216,7 +216,7 @@ be_sequence::gen_name (void)
}
// Append the size (if any).
- if (this->unbounded () == false)
+ if (this->unbounded () == I_FALSE)
{
char ulval_str [NAMEBUFSIZE];
ACE_OS::sprintf (ulval_str,
diff --git a/TAO/TAO_IDL/be/be_string.cpp b/TAO/TAO_IDL/be/be_string.cpp
index 2b1bdf520b4..497dcec1d39 100644
--- a/TAO/TAO_IDL/be/be_string.cpp
+++ b/TAO/TAO_IDL/be/be_string.cpp
@@ -48,7 +48,7 @@ be_string::be_string (AST_Decl::NodeType nt,
: COMMON_Base (),
AST_Decl (nt,
n,
- true),
+ I_TRUE),
AST_Type (nt,
n),
AST_String (nt,
diff --git a/TAO/TAO_IDL/be/be_structure.cpp b/TAO/TAO_IDL/be/be_structure.cpp
index dae08f4df58..438c8fa4668 100644
--- a/TAO/TAO_IDL/be/be_structure.cpp
+++ b/TAO/TAO_IDL/be/be_structure.cpp
@@ -30,8 +30,8 @@
#include "idl_defines.h"
#include "global_extern.h"
-ACE_RCSID (be,
- be_structure,
+ACE_RCSID (be,
+ be_structure,
"$Id$")
be_structure::be_structure (void)
@@ -48,8 +48,8 @@ be_structure::be_structure (void)
}
be_structure::be_structure (UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_struct,
diff --git a/TAO/TAO_IDL/be/be_sunsoft.cpp b/TAO/TAO_IDL/be/be_sunsoft.cpp
index 06be8962802..0dec1f2b844 100644
--- a/TAO/TAO_IDL/be/be_sunsoft.cpp
+++ b/TAO/TAO_IDL/be/be_sunsoft.cpp
@@ -9,8 +9,8 @@
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_ctype.h"
-ACE_RCSID (be,
- be_sunsoft,
+ACE_RCSID (be,
+ be_sunsoft,
"$Id$")
TAO_SunSoft_OutStream::TAO_SunSoft_OutStream (void)
@@ -34,8 +34,8 @@ TAO_SunSoft_OutStream::print (Identifier *id)
TAO_OutStream &
TAO_SunSoft_OutStream::print (UTL_IdList *idl)
{
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
Identifier *id = 0;
for (UTL_IdListActiveIterator i (idl); !i.is_done (); i.next ())
@@ -46,7 +46,7 @@ TAO_SunSoft_OutStream::print (UTL_IdList *idl)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
// Print the identifier.
@@ -58,11 +58,11 @@ TAO_SunSoft_OutStream::print (UTL_IdList *idl)
if (ACE_OS::strcmp (id->get_string (), "") != 0)
{
// Does not start with a "".
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
@@ -126,8 +126,8 @@ TAO_SunSoft_OutStream::print (AST_Expression *expr)
else if ((unsigned char) ev->u.cval > ACE_CHAR_MAX)
this->TAO_OutStream::print ("%hd", ev->u.cval);
else if (isprint (ev->u.cval))
- this->TAO_OutStream::print ("'%c'", ev->u.cval);
- else if (iscntrl (ev->u.cval))
+ this->TAO_OutStream::print ("'%c'", ev->u.cval);
+ else if (iscntrl (ev->u.cval))
switch (ev->u.cval)
{
case '\n':
@@ -157,8 +157,8 @@ TAO_SunSoft_OutStream::print (AST_Expression *expr)
default:
this->TAO_OutStream::print ("'\\x%x'", ev->u.cval);
}
- else
- this->TAO_OutStream::print ("'\\x%x'", ev->u.cval);
+ else
+ this->TAO_OutStream::print ("'\\x%x'", ev->u.cval);
break;
case AST_Expression::EV_wchar:
this->TAO_OutStream::print ("L'%lc'", ev->u.wcval);
diff --git a/TAO/TAO_IDL/be/be_type.cpp b/TAO/TAO_IDL/be/be_type.cpp
index 599e9018584..802d23f47b1 100644
--- a/TAO/TAO_IDL/be/be_type.cpp
+++ b/TAO/TAO_IDL/be/be_type.cpp
@@ -38,10 +38,10 @@ be_type::be_type (void)
AST_Type (),
be_decl (),
tc_name_ (0),
- common_varout_gen_ (false),
- seq_elem_tmplinst_ (false),
- seen_in_sequence_ (false),
- seen_in_operation_ (false)
+ common_varout_gen_ (I_FALSE),
+ seq_elem_tmplinst_ (I_FALSE),
+ seen_in_sequence_ (I_FALSE),
+ seen_in_operation_ (I_FALSE)
{
}
@@ -55,10 +55,10 @@ be_type::be_type (AST_Decl::NodeType nt,
be_decl (nt,
n),
tc_name_ (0),
- common_varout_gen_ (false),
- seq_elem_tmplinst_ (false),
- seen_in_sequence_ (false),
- seen_in_operation_ (false)
+ common_varout_gen_ (I_FALSE),
+ seq_elem_tmplinst_ (I_FALSE),
+ seen_in_sequence_ (I_FALSE),
+ seen_in_operation_ (I_FALSE)
{
if (n != 0)
{
@@ -292,38 +292,38 @@ be_type::gen_common_varout (TAO_OutStream *os)
this->common_varout_gen_ = 1;
}
-bool
+idl_bool
be_type::seq_elem_tmplinst (void) const
{
return this->seq_elem_tmplinst_;
}
void
-be_type::seq_elem_tmplinst (bool val)
+be_type::seq_elem_tmplinst (idl_bool val)
{
this->seq_elem_tmplinst_ = val;
}
-bool
+idl_bool
be_type::seen_in_sequence (void) const
{
return this->seen_in_sequence_;
}
void
-be_type::seen_in_sequence (bool val)
+be_type::seen_in_sequence (idl_bool val)
{
this->seen_in_sequence_ = val;
}
-bool
+idl_bool
be_type::seen_in_operation (void) const
{
return this->seen_in_operation_;
}
void
-be_type::seen_in_operation (bool val)
+be_type::seen_in_operation (idl_bool val)
{
this->seen_in_operation_ = val;
}
diff --git a/TAO/TAO_IDL/be/be_typedef.cpp b/TAO/TAO_IDL/be/be_typedef.cpp
index 0c0274172b2..453ecaab484 100644
--- a/TAO/TAO_IDL/be/be_typedef.cpp
+++ b/TAO/TAO_IDL/be/be_typedef.cpp
@@ -39,8 +39,8 @@ be_typedef::be_typedef (void)
be_typedef::be_typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (bt->is_local () || local,
abstract),
AST_Decl (AST_Decl::NT_typedef,
@@ -61,26 +61,26 @@ be_typedef::be_typedef (AST_Type *bt,
if (nt == AST_Decl::NT_sequence)
{
- pbt->anonymous (false);
+ pbt->anonymous (I_FALSE);
}
}
void
-be_typedef::seq_elem_tmplinst (bool val)
+be_typedef::seq_elem_tmplinst (idl_bool val)
{
this->be_type::seq_elem_tmplinst (val);
this->primitive_base_type ()->seq_elem_tmplinst (val);
}
void
-be_typedef::seen_in_sequence (bool val)
+be_typedef::seen_in_sequence (idl_bool val)
{
this->be_type::seen_in_sequence (val);
this->primitive_base_type ()->seen_in_sequence (val);
}
void
-be_typedef::seen_in_operation (bool val)
+be_typedef::seen_in_operation (idl_bool val)
{
this->be_type::seen_in_operation (val);
this->primitive_base_type ()->seen_in_operation (val);
diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp
index b5ce7cbd7d5..c483a315565 100644
--- a/TAO/TAO_IDL/be/be_union.cpp
+++ b/TAO/TAO_IDL/be/be_union.cpp
@@ -48,13 +48,13 @@ be_union::be_union (void)
be_type ()
{
// Always the case.
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
}
be_union::be_union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract)
+ idl_bool local,
+ idl_bool abstract)
: COMMON_Base (local,
abstract),
AST_Decl (AST_Decl::NT_union,
@@ -79,7 +79,7 @@ be_union::be_union (AST_ConcreteType *dt,
n)
{
// Always the case.
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
if (!this->imported ())
{
@@ -97,7 +97,7 @@ be_union::redefine (AST_Structure *from)
AST_Union::redefine (from);
}
-bool
+idl_bool
be_union::has_duplicate_case_labels (void)
{
for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
@@ -110,11 +110,11 @@ be_union::has_duplicate_case_labels (void)
if (ub->label_list_length () > 1)
{
- return true;
+ return I_TRUE;
}
}
- return false;
+ return I_FALSE;
}
void
@@ -132,38 +132,38 @@ be_union::accept (be_visitor *visitor)
return visitor->visit_union (this);
}
-bool
+idl_bool
be_union::gen_empty_default_label (void)
{
// A non-empty explicit default label will be generated.
if (this->default_index () != -1)
{
- return false;
+ return I_FALSE;
}
-
+
AST_ConcreteType *disc = this->disc_type ();
AST_Decl::NodeType nt = disc->node_type ();
-
+
if (nt == AST_Decl::NT_enum)
{
- return true;
+ return I_TRUE;
}
-
+
AST_PredefinedType *pdt = AST_PredefinedType::narrow_from_decl (disc);
-
+
if (pdt == 0)
{
- return true;
+ return I_TRUE;
}
-
+
unsigned long n_labels = this->nlabels ();
-
+
if (pdt->pt () == AST_PredefinedType::PT_boolean && n_labels == 2)
{
- return false;
+ return I_FALSE;
}
-
- return true;
+
+ return I_TRUE;
}
unsigned long
@@ -180,11 +180,11 @@ be_union::nlabels (void)
AST_UnionBranch::narrow_from_decl (d);
if (ub != 0)
- {
+ {
retval += ub->label_list_length ();
}
}
-
+
return retval;
}
diff --git a/TAO/TAO_IDL/be/be_valuetype.cpp b/TAO/TAO_IDL/be/be_valuetype.cpp
index dc168c5d8bc..9fb566a5fdf 100644
--- a/TAO/TAO_IDL/be/be_valuetype.cpp
+++ b/TAO/TAO_IDL/be/be_valuetype.cpp
@@ -58,7 +58,7 @@ be_valuetype::be_valuetype (void)
}
// Always the case.
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
}
// Constructor used to build the AST.
@@ -71,9 +71,9 @@ be_valuetype::be_valuetype (UTL_ScopedName *n,
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom)
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom)
: COMMON_Base (0,
abstract),
AST_Decl (AST_Decl::NT_valuetype,
@@ -129,13 +129,13 @@ be_valuetype::be_valuetype (UTL_ScopedName *n,
}
// Always the case.
- this->has_constructor (true);
+ this->has_constructor (I_TRUE);
for (long i = 0; i < this->pd_n_supports; ++i)
{
if (this->pd_supports[i]->is_abstract ())
{
- this->supports_abstract_ = true;
+ this->supports_abstract_ = I_TRUE;
break;
}
}
@@ -170,7 +170,7 @@ be_valuetype::redefine (AST_Interface *from)
// Is true if non-virtual accessor and modifier should be generated
// If #pragma TAO OBV opt_accessor (todo) is used or -Wb,obv_opt_accessor.
-bool
+idl_bool
be_valuetype::opt_accessor (void)
{
return be_global->obv_opt_accessor ();
@@ -214,8 +214,8 @@ be_valuetype::determine_factory_style (void)
}
// Check whether we have at least one operation or not.
- bool have_operation = this->have_operation ();
- bool have_factory = 0;
+ idl_bool have_operation = this->have_operation ();
+ idl_bool have_factory = 0;
// Try only our own scope.
if (this->nmembers () > 0)
@@ -266,12 +266,12 @@ be_valuetype::determine_factory_style (void)
return factory_style;
}
-bool
+idl_bool
be_valuetype::have_operation (void)
{
// Check whatever scope we get for operations/attributes.
- bool have_operation = false;
+ idl_bool have_operation = I_FALSE;
// Operations are either operations or attributes of:
// -its own
@@ -304,7 +304,7 @@ be_valuetype::have_operation (void)
if (nt == AST_Decl::NT_op || nt == AST_Decl::NT_attr)
{
- have_operation = true;
+ have_operation = I_TRUE;
break;
}
} // end of for loop
@@ -323,7 +323,7 @@ be_valuetype::have_operation (void)
if (vt != 0 && vt->have_operation ())
{
- have_operation = true;
+ have_operation = I_TRUE;
break;
}
}
@@ -348,15 +348,15 @@ be_valuetype::have_operation (void)
return have_operation;
}
-bool
+idl_bool
be_valuetype::have_supported_op (be_interface * node)
{
- bool have_supported_op = 0;
+ idl_bool have_supported_op = 0;
if (node->nmembers () == 0)
{
- return false;
+ return I_FALSE;
}
// Initialize an iterator for supported interface elements
@@ -410,7 +410,7 @@ be_valuetype::have_supported_op (be_interface * node)
return have_supported_op;
}
-bool
+idl_bool
be_valuetype::will_have_factory (void)
{
FactoryStyle fs = this->determine_factory_style ();
@@ -418,47 +418,18 @@ be_valuetype::will_have_factory (void)
return (fs == FS_ABSTRACT_FACTORY || fs == FS_CONCRETE_FACTORY);
}
-bool
-be_valuetype::has_member (void)
-{
- AST_ValueType *parent = this->pd_inherits_concrete;
-
- // We're looking for inherited members too.
- if (parent != 0)
- {
- be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
-
- if (be_parent->has_member ())
- {
- return true;
- }
- }
-
- for (UTL_ScopeActiveIterator si (this, UTL_Scope::IK_decls);
- !si.is_done ();
- si.next())
- {
- if (si.item ()->node_type () == AST_Decl::NT_field)
- {
- return true;
- }
- }
-
- return false;
-}
-
int
-be_valuetype::gen_helper_header (char *, char *)
+be_valuetype::gen_helper_header (char*,
+ char*)
{
- TAO_OutStream *os = tao_cg->client_header ();
+ TAO_OutStream *os = 0;
+
+ os = tao_cg->client_header ();
*os << be_nl << be_nl
<< "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << "namespace CORBA" << be_nl
<< "{"
<< be_idt_nl
@@ -470,15 +441,16 @@ be_valuetype::gen_helper_header (char *, char *)
*os << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
return 0;
}
int
-be_valuetype::gen_helper_inline (char *, char *)
+be_valuetype::gen_helper_inline (char*,
+ char*)
{
- TAO_OutStream *os = tao_cg->client_inline ();
+ TAO_OutStream *os = 0;
+
+ os = tao_cg->client_inline ();
// There is a problem, here. Looks like the if defined __ACE_INLINE
// is not getting generated... Actually this is a much bigger
@@ -488,7 +460,6 @@ be_valuetype::gen_helper_inline (char *, char *)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
*os << "#if defined (__ACE_INLINE__)" << be_nl << be_nl
- << be_global->core_versioning_begin () << be_nl
<< "namespace CORBA" << be_nl
<< "{"
<< be_idt_nl
@@ -498,7 +469,6 @@ be_valuetype::gen_helper_inline (char *, char *)
<< this->full_name () << " *);"
<< be_uidt_nl
<< "}" << be_nl << be_nl
- << be_global->core_versioning_end () << be_nl
<< "#endif /*__ACE_INLINE__*/";
return 0;
@@ -506,9 +476,12 @@ be_valuetype::gen_helper_inline (char *, char *)
int
-be_valuetype::gen_helper_stubs (char *, char *)
+be_valuetype::gen_helper_stubs (char* ,
+ char* )
{
- TAO_OutStream *os = tao_cg->client_stubs ();
+ TAO_OutStream *os = 0;
+
+ os = tao_cg->client_stubs ();
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
@@ -650,7 +623,7 @@ be_valuetype::data_members_count (AST_Field::Visibility vis)
return count;
}
-bool
+idl_bool
be_valuetype::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
{
list.enqueue_tail (this);
@@ -728,7 +701,7 @@ be_valuetype::in_recursion (ACE_Unbounded_Queue<AST_Type *> &list)
return this->in_recursion_;
}
-bool
+idl_bool
be_valuetype::supports_abstract (void) const
{
return this->supports_abstract_;
@@ -741,11 +714,11 @@ int
be_valuetype::traverse_supports_list_graphs (
be_interface::tao_code_emitter gen,
TAO_OutStream *os,
- bool use_abstract_paths,
- bool use_concrete_paths
+ idl_bool use_abstract_paths,
+ idl_bool use_concrete_paths
)
{
- bool abstract_paths_only = use_abstract_paths && !use_concrete_paths;
+ idl_bool abstract_paths_only = use_abstract_paths && !use_concrete_paths;
long n_supports = this->n_supports ();
@@ -893,7 +866,8 @@ be_valuetype::gen_skel_helper (be_interface *concrete,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req, " << be_nl
<< "void *obj," << be_nl
- << "void *context" << env_dflts << be_uidt_nl
+ << "void *context" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt << "\n\n";
}
else
@@ -905,7 +879,8 @@ be_valuetype::gen_skel_helper (be_interface *concrete,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *context" << env_decl << be_uidt_nl
+ << "void *context" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
*os << ancestor->full_skel_name ()
@@ -918,7 +893,8 @@ be_valuetype::gen_skel_helper (be_interface *concrete,
<< "req," << be_nl
<< "(" << ancestor->full_skel_name ()
<< "_ptr) impl," << be_nl
- << "context" << env_arg << be_uidt_nl
+ << "context" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}\n";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp
index 138ed412013..a0ddcb7bb2a 100644
--- a/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_amh_pre_proc.cpp
@@ -83,10 +83,10 @@ be_visitor_amh_pre_proc::visit_interface (be_interface *node)
// interfaces, not because we want to generate code for them, but
// because the (imported-AMH-) node could be needed to generate a
// non-imported, AMH node, for example, for a derived interface.
-
+
// (JP) Havinq AMH_* nodes inherit directly from AMH_* base classes
// is also a problem if the base interface is abstract, since at
- // the moment, no AMH code is generated for such interfaces. It
+ // the moment, no AMH code is generated for such interfaces. It
// would be desirable to mimic the AMI design, where all AMI-related
// classes inherit from a single base class, no matter what the
// parentage of the IDL interface. Until we solve the problem of
@@ -107,7 +107,7 @@ be_visitor_amh_pre_proc::visit_interface (be_interface *node)
this->create_exception_holder (node);
excep_holder->set_defined_in (node->defined_in ());
excep_holder->original_interface (node);
-
+
AST_Module *module =
AST_Module::narrow_from_scope (node->defined_in ());
module->set_has_nested_valuetype ();
@@ -155,7 +155,7 @@ be_visitor_amh_pre_proc::create_response_handler (
dynamic_cast<UTL_ScopedName*> (node->name ()->copy ());
Identifier *local_name = amh_name->last_component ();
local_name->replace_string (class_name.c_str ());
-
+
UTL_Scope *s = node->defined_in ();
idl_global->scopes ().push (s);
@@ -175,7 +175,7 @@ be_visitor_amh_pre_proc::create_response_handler (
1, // local
0), // non-abstract
0);
-
+
idl_global->scopes ().pop ();
response_handler->set_name (amh_name);
@@ -229,7 +229,7 @@ be_visitor_amh_pre_proc::add_rh_node_members ( be_interface *node,
this->create_response_handler_attribute (attr,
response_handler,
exception_holder);
-
+
if (status == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -250,7 +250,7 @@ be_visitor_amh_pre_proc::add_rh_node_members ( be_interface *node,
this->create_response_handler_operation (operation,
response_handler,
exception_holder);
-
+
if (status == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -319,12 +319,12 @@ be_visitor_amh_pre_proc::create_response_handler_attribute (
delete gos;
gos = 0;
}
-
+
int status =
this->create_response_handler_operation (get_operation,
response_handler,
exception_holder);
-
+
if (status == -1)
{
return -1;
@@ -334,7 +334,7 @@ be_visitor_amh_pre_proc::create_response_handler_attribute (
{
return 0;
}
-
+
// Temporarily generate the set operation.
be_operation *set_operation = this->generate_set_operation (node);
@@ -361,7 +361,7 @@ be_visitor_amh_pre_proc::create_response_handler_attribute (
this->create_response_handler_operation (set_operation,
response_handler,
exception_holder);
-
+
if (status == -1)
{
return -1;
@@ -427,11 +427,7 @@ be_visitor_amh_pre_proc::add_exception_reply (be_operation *node,
node_excep->be_add_argument (argument);
node_excep->set_defined_in (response_handler);
-
- if (0 == response_handler->be_add_operation (node_excep))
- {
- return -1;
- }
+ response_handler->be_add_operation (node_excep);
return 0;
}
@@ -556,10 +552,7 @@ be_visitor_amh_pre_proc::add_normal_reply (be_operation *node,
// After having generated the operation we insert it into the
// response handler interface.
- if (0 == response_handler->be_add_operation (operation))
- {
- return -1;
- }
+ response_handler->be_add_operation (operation);
return 0;
}
@@ -607,7 +600,7 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
UTL_ScopedName *excep_holder_name =
node->compute_name ("AMH_",
"ExceptionHolder");
-
+
UTL_Scope *s = node->defined_in ();
idl_global->scopes ().push (s);
@@ -626,7 +619,7 @@ be_visitor_amh_pre_proc::create_exception_holder (be_interface *node)
0,
0),
0);
-
+
idl_global->scopes ().pop ();
excep_holder->set_name (excep_holder_name);
@@ -795,10 +788,7 @@ be_visitor_amh_pre_proc::create_raise_operation (
// After having generated the operation we insert it into the
// exceptionholder valuetype.
- if (0 == excep_holder->be_add_operation (operation))
- {
- return -1;
- }
+ excep_holder->be_add_operation (operation);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
index 49acedd3dab..61eedb3a7cd 100644
--- a/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
@@ -34,8 +34,6 @@
#include "be_attribute.h"
#include "be_predefined_type.h"
#include "be_argument.h"
-#include "be_global.h"
-#include "be_extern.h"
#include "utl_identifier.h"
#include "nr_extern.h"
#include "global_extern.h"
@@ -109,9 +107,11 @@ be_visitor_ami_pre_proc::visit_interface (be_interface *node)
}
be_valuetype *excep_holder = 0;
- be_valuetype *global_excep_holder = be_global->exceptionholder ();
- excep_holder = this->create_exception_holder (node);
+ if (! node->imported ())
+ {
+ excep_holder = this->create_exception_holder (node);
+ }
be_interface *reply_handler = this->create_reply_handler (node,
excep_holder);
@@ -139,6 +139,14 @@ be_visitor_ami_pre_proc::visit_interface (be_interface *node)
-1);
}
+ // After generating the reply handler for imported nodes, so they
+ // can be looked up as possible parents of a reply handler from
+ // a non-imported node, we can skip the rest of the function.
+ if (node->imported ())
+ {
+ return 0;
+ }
+
// Set the proper strategy.
be_interface_ami_strategy *bias = 0;
ACE_NEW_RETURN (bias,
@@ -153,10 +161,7 @@ be_visitor_ami_pre_proc::visit_interface (be_interface *node)
old_strategy = 0;
}
- // Only do this when we have created a new exceptionholder. In the old
- // AMI setup the global_excep_holder is always 0, in the new setup it
- // is only 0 in the first case.
- if (excep_holder && !global_excep_holder)
+ if (excep_holder)
{
excep_holder->set_defined_in (node->defined_in ());
// Insert the exception holder after the original node,
@@ -186,16 +191,14 @@ be_visitor_ami_pre_proc::visit_interface (be_interface *node)
}
else
{
- if (!excep_holder)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_ami_pre_proc::"
- "visit_interface - "
- "creating the exception holder failed\n"),
- -1);
- }
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_ami_pre_proc::"
+ "visit_interface - "
+ "creating the exception holder failed\n"),
+ -1);
}
+
if (this->visit_scope (node) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -306,8 +309,6 @@ be_visitor_ami_pre_proc::visit_attribute (be_attribute *node)
return 0;
}
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-
be_valuetype *
be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
{
@@ -327,7 +328,7 @@ be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
ACE_NEW_RETURN (msg,
be_module (sn),
0);
-
+
idl_global->scopes ().push (msg);
ACE_NEW_RETURN (id,
@@ -368,7 +369,7 @@ be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
0,
0),
0);
-
+
idl_global->scopes ().pop ();
inherit_vt->set_name (inherit_name);
@@ -397,7 +398,7 @@ be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
0);
p_intf[0] = inherit_vt;
-
+
UTL_Scope *s = node->defined_in ();
idl_global->scopes ().push (s);
@@ -416,12 +417,12 @@ be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
0,
0),
0);
-
+
idl_global->scopes ().pop ();
excep_holder->set_defined_in (s);
excep_holder->set_name (excep_holder_name);
- excep_holder->seen_in_operation (true);
+ excep_holder->seen_in_operation (I_TRUE);
// Now our customized valuetype is created, we have to
// add now the operations and attributes to the scope.
@@ -484,129 +485,6 @@ be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
return excep_holder;
}
-#else /* !TAO_HAS_DEPRECATED_EXCEPTION_HOLDER */
-
-be_valuetype *
-be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
-{
- be_valuetype *global = be_global->exceptionholder ();
- if (global != 0)
- {
- return global;
- }
-
- Identifier *id = 0;
- UTL_ScopedName *sn = 0;
-
- ACE_NEW_RETURN (id,
- Identifier ("Messaging"),
- 0);
-
- ACE_NEW_RETURN (sn,
- UTL_ScopedName (id,
- 0),
- 0);
-
- be_module *msg = 0;
- ACE_NEW_RETURN (msg,
- be_module (sn),
- 0);
-
- idl_global->scopes ().push (msg);
-
- ACE_NEW_RETURN (id,
- Identifier ("Messaging"),
- 0);
-
- // Create a virtual module named "Messaging" and an valuetype "ExceptionHolder"
- // from which we inherit.
- UTL_ScopedName *inherit_name = 0;
- ACE_NEW_RETURN (inherit_name,
- UTL_ScopedName (id,
- 0),
- 0);
-
- ACE_NEW_RETURN (id,
- Identifier ("ExceptionHolder"),
- 0);
-
- ACE_NEW_RETURN (sn,
- UTL_ScopedName (id,
- 0),
- 0);
-
- inherit_name->nconc (sn);
-
- be_valuetype *inherit_vt = 0;
- ACE_NEW_RETURN (inherit_vt,
- be_valuetype (inherit_name,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0),
- 0);
-
- inherit_vt->set_name (inherit_name);
- inherit_vt->seen_in_operation (true);
-
- // Notice the valuetype "ExceptionHolder" that it is defined in the
- // "Messaging" module
- inherit_vt->set_defined_in (msg);
- inherit_vt->set_prefix_with_typeprefix ("omg.org");
-
- // Create the exception holder name
- ACE_CString excep_holder_local_name;
- excep_holder_local_name = "ExceptionHolder";
-
- UTL_ScopedName *excep_holder_name = 0;
- excep_holder_name =
- static_cast<UTL_ScopedName *> (node->name ()->copy ());
- excep_holder_name->last_component ()->replace_string (
- excep_holder_local_name.rep ()
- );
-
- AST_Interface_ptr *p_intf = 0;
- ACE_NEW_RETURN (p_intf,
- AST_Interface_ptr[1],
- 0);
-
- p_intf[0] = inherit_vt;
-
- be_valuetype *excep_holder = 0;
- ACE_NEW_RETURN (excep_holder,
- be_valuetype (excep_holder_name,
- p_intf,
- 1,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0),
- 0);
-
- idl_global->scopes ().pop ();
- excep_holder->seen_in_operation (true);
- excep_holder->cli_hdr_gen (true);
- excep_holder->set_imported (true);
-
- be_global->exceptionholder (excep_holder);
-
- return excep_holder;
-}
-
-#endif
-
be_interface *
be_visitor_ami_pre_proc::create_reply_handler (be_interface *node,
be_valuetype *excep_holder)
@@ -692,9 +570,12 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node,
this->create_reply_handler_operation (get_operation,
reply_handler);
- this->create_excep_operation (get_operation,
- reply_handler,
- excep_holder);
+ if (!node->imported ())
+ {
+ this->create_excep_operation (get_operation,
+ reply_handler,
+ excep_holder);
+ }
if (!attribute->readonly ())
{
@@ -703,9 +584,12 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node,
this->create_reply_handler_operation (set_operation,
reply_handler);
- this->create_excep_operation (set_operation,
- reply_handler,
- excep_holder);
+ if (!node->imported ())
+ {
+ this->create_excep_operation (set_operation,
+ reply_handler,
+ excep_holder);
+ }
}
}
else
@@ -717,9 +601,12 @@ be_visitor_ami_pre_proc::create_reply_handler (be_interface *node,
this->create_reply_handler_operation (operation,
reply_handler);
- this->create_excep_operation (operation,
- reply_handler,
- excep_holder);
+ if (!node->imported ())
+ {
+ this->create_excep_operation (operation,
+ reply_handler,
+ excep_holder);
+ }
}
}
} // end of while loop
@@ -810,7 +697,6 @@ be_visitor_ami_pre_proc::create_raise_operation (
operation->set_name (op_name);
operation->set_defined_in (excep_holder);
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
if (operation_kind == NORMAL)
{
if (orig_op)
@@ -823,7 +709,6 @@ be_visitor_ami_pre_proc::create_raise_operation (
}
}
}
-#endif
// Set the proper strategy.
be_operation_ami_exception_holder_raise_strategy *boaehrs = 0;
@@ -841,10 +726,7 @@ be_visitor_ami_pre_proc::create_raise_operation (
// After having generated the operation we insert it into the
// exceptionholder valuetype.
- if (0 == excep_holder->be_add_operation (operation))
- {
- return -1;
- }
+ excep_holder->be_add_operation (operation);
return 0;
}
@@ -1166,21 +1048,12 @@ be_visitor_ami_pre_proc::create_reply_handler_operation (
operation->set_defined_in (reply_handler);
-#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
- // Copy the exceptions.
- if (node->exceptions ())
- {
- UTL_ExceptList *exceptions = node->exceptions ();
- operation->be_add_exceptions (exceptions);
- }
-#endif
+ // We do not copy the exceptions because the exceptions
+ // are delivered by the excep methods.
// After having generated the operation we insert it into the
// reply handler interface.
- if (0 == reply_handler->be_add_operation (operation))
- {
- return -1;
- }
+ reply_handler->be_add_operation (operation);
return 0;
}
@@ -1284,10 +1157,7 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
// After having generated the operation we insert it into the
// reply handler interface.
- if (0 == reply_handler->be_add_operation (operation))
- {
- return -1;
- }
+ reply_handler->be_add_operation (operation);
return 0;
}
@@ -1515,7 +1385,7 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
ACE_NEW_RETURN (msg,
be_module (sn),
0);
-
+
idl_global->scopes ().push (msg);
// Create a virtual module named "Messaging" and an interface "ReplyHandler"
@@ -1554,7 +1424,7 @@ be_visitor_ami_pre_proc::create_inheritance_list (be_interface *node,
inherit_intf->set_name (inherit_name);
inherit_intf->set_prefix_with_typeprefix ("omg.org");
-
+
idl_global->scopes ().pop ();
// Notice the interface "ReplyHandler" that it is defined in the
diff --git a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp
index d7936cbd2ed..f7a77246c3f 100644
--- a/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_arg_traits.cpp
@@ -41,7 +41,6 @@
#include "be_extern.h"
#include "utl_identifier.h"
#include "idl_defines.h"
-#include "ace/Log_Msg.h"
#include <string>
@@ -70,8 +69,6 @@ be_visitor_arg_traits::visit_root (be_root *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< "// Arg traits specializations." << be_nl
<< "namespace TAO" << be_nl
@@ -88,8 +85,6 @@ be_visitor_arg_traits::visit_root (be_root *node)
*os << be_uidt_nl
<< "}" << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
-
return 0;
}
@@ -163,7 +158,7 @@ be_visitor_arg_traits::visit_interface (be_interface *node)
-1);
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -188,7 +183,7 @@ be_visitor_arg_traits::visit_interface_fwd (be_interface_fwd *node)
-1);
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -238,7 +233,7 @@ be_visitor_arg_traits::visit_valuebox (be_valuebox *node)
os.gen_endif ();
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -296,7 +291,7 @@ be_visitor_arg_traits::visit_valuetype (be_valuetype *node)
-1);
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -323,7 +318,7 @@ be_visitor_arg_traits::visit_valuetype_fwd (be_valuetype_fwd *node)
-1);
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -369,11 +364,11 @@ be_visitor_arg_traits::visit_operation (be_operation *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- bool wide = (str->width () != 1);
+ idl_bool wide = (str->width () != 1);
*os << be_nl << be_nl;
- bool const skel =
+ idl_bool const skel =
(this->ctx_->state () == TAO_CodeGen::TAO_ROOT_SS);
// Avoid generating a duplicate structure in the skeleton
@@ -420,7 +415,7 @@ be_visitor_arg_traits::visit_operation (be_operation *node)
-1);
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -451,7 +446,7 @@ be_visitor_arg_traits::visit_attribute (be_attribute *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- bool wide = (st->width () != 1);
+ idl_bool wide = (st->width () != 1);
// It is legal IDL to declare a bounded (w)string as an operation
// parameter type. There could be any number of identical
@@ -462,7 +457,7 @@ be_visitor_arg_traits::visit_attribute (be_attribute *node)
*os << be_nl;
- bool const skel =
+ idl_bool const skel =
(this->ctx_->state () == TAO_CodeGen::TAO_ROOT_SS);
// Avoid generating a duplicate structure in the skeleton when
@@ -496,7 +491,7 @@ be_visitor_arg_traits::visit_attribute (be_attribute *node)
<< "{" << be_nl
<< "};";
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -532,7 +527,7 @@ be_visitor_arg_traits::visit_argument (be_argument *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- bool wide = (st->width () != 1);
+ idl_bool wide = (st->width () != 1);
// It is legal IDL to declare a bounded (w)string as an operation
// parameter type. There could be any number of identical
@@ -542,7 +537,7 @@ be_visitor_arg_traits::visit_argument (be_argument *node)
// parameter for Arg_Traits<>.
*os << be_nl << be_nl;
- bool const skel =
+ idl_bool const skel =
(this->ctx_->state () == TAO_CodeGen::TAO_ROOT_SS);
// Avoid generating a duplicate structure in the skeleton when
@@ -576,7 +571,7 @@ be_visitor_arg_traits::visit_argument (be_argument *node)
<< "{" << be_nl
<< "};";
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -618,7 +613,7 @@ be_visitor_arg_traits::visit_sequence (be_sequence *node)
os->gen_endif ();
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -642,7 +637,7 @@ be_visitor_arg_traits::visit_string (be_string *node)
return 0;
}
- bool wide = (node->width () != 1);
+ idl_bool wide = (node->width () != 1);
TAO_OutStream *os = this->ctx_->stream ();
@@ -685,7 +680,7 @@ be_visitor_arg_traits::visit_string (be_string *node)
delete [] bound_string;
}
- bool const skel =
+ idl_bool const skel =
(this->ctx_->state () == TAO_CodeGen::TAO_ROOT_SS);
// Avoid generating a duplicate structure in the skeleton when
@@ -744,7 +739,7 @@ be_visitor_arg_traits::visit_string (be_string *node)
os->gen_endif ();
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -833,7 +828,7 @@ be_visitor_arg_traits::visit_array (be_array *node)
os->gen_endif ();
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -873,7 +868,7 @@ be_visitor_arg_traits::visit_enum (be_enum *node)
os->gen_endif ();
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -941,7 +936,7 @@ be_visitor_arg_traits::visit_structure (be_structure *node)
will not cause infinite recursion in this visitor.
*/
- this->generated (node, true);
+ this->generated (node, I_TRUE);
if (this->visit_scope (node) != 0)
{
@@ -974,7 +969,7 @@ be_visitor_arg_traits::visit_field (be_field *node)
// field *type* may not have been reached yet) and return.
if (bt->base_node_type () == AST_Decl::NT_valuetype)
{
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
@@ -987,8 +982,8 @@ be_visitor_arg_traits::visit_field (be_field *node)
-1);
}
- this->generated (node, true);
- this->generated (bt, true);
+ this->generated (node, I_TRUE);
+ this->generated (bt, I_TRUE);
return 0;
}
@@ -1058,7 +1053,7 @@ be_visitor_arg_traits::visit_union (be_union *node)
will not cause infinite recursion in this visitor.
*/
- this->generated (node, true);
+ this->generated (node, I_TRUE);
int status = this->visit_scope (node);
@@ -1096,7 +1091,7 @@ be_visitor_arg_traits::visit_union_branch (be_union_branch *node)
-1);
}
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
@@ -1118,11 +1113,11 @@ be_visitor_arg_traits::visit_typedef (be_typedef *node)
}
this->ctx_->alias (0);
- this->generated (node, true);
+ this->generated (node, I_TRUE);
return 0;
}
-bool
+idl_bool
be_visitor_arg_traits::generated (be_decl *node) const
{
if (ACE_OS::strcmp (this->S_, "") == 0)
@@ -1143,24 +1138,24 @@ be_visitor_arg_traits::generated (be_decl *node) const
void
be_visitor_arg_traits::generated (be_decl *node,
- bool )
+ idl_bool )
{
if (ACE_OS::strcmp (this->S_, "") == 0)
{
switch (this->ctx_->state ())
{
case TAO_CodeGen::TAO_ROOT_CS:
- node->cli_arg_traits_gen (true);
+ node->cli_arg_traits_gen (I_TRUE);
return;
case TAO_CodeGen::TAO_ROOT_SS:
- node->srv_arg_traits_gen (true);
+ node->srv_arg_traits_gen (I_TRUE);
return;
default:
return;
}
}
- node->srv_sarg_traits_gen (true);
+ node->srv_sarg_traits_gen (I_TRUE);
}
int
diff --git a/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp
index 97293ddf2a3..edac236eaa3 100644
--- a/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_argument/arglist.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_argument,
- arglist,
+ACE_RCSID (be_visitor_argument,
+ arglist,
"$Id$")
@@ -218,9 +218,9 @@ int be_visitor_args_arglist::visit_predefined_type (be_predefined_type *node)
|| pt == AST_PredefinedType::PT_object)
{
// The only PT_pseudo that doesn't take a _ptr suffix.
- bool is_tckind =
+ idl_bool is_tckind =
(ACE_OS::strcmp (node->local_name ()->get_string (), "TCKind") == 0);
-
+
switch (this->direction ())
{
case AST_Argument::dir_IN:
diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp
index b3ec2642578..950690a142f 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_ch.cpp
@@ -52,15 +52,11 @@ be_visitor_array_any_op_ch::visit_array (be_array *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
<< "_forany &);" << be_nl;
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << "_forany &);";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_any_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp
index facda38a048..06073cb6f91 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/any_op_cs.cpp
@@ -54,8 +54,6 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Since we don't generate CDR stream operators for types that
// explicitly contain a local interface (at some level), we
// must override these Any template class methods to avoid
@@ -127,8 +125,6 @@ be_visitor_array_any_op_cs::visit_array (be_array *node)
<< ");" << be_uidt << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_any_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp
index d560cd87fda..f863ede4891 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/array_ci.cpp
@@ -248,6 +248,6 @@ int be_visitor_array_ci::visit_array (be_array *node)
*os << be_nl;
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp
index 5328b16cd5f..d99afdcc692 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/array_cs.cpp
@@ -352,7 +352,7 @@ int be_visitor_array_cs::visit_array (be_array *node)
}
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp
index 5cc70fe22a7..00d3ecc3ff0 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_ch.cpp
@@ -115,8 +115,6 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Generate the CDR << and >> operator declarations.
*os << be_global->stub_export_macro () << " CORBA::Boolean"
<< " operator<< (TAO_OutputCDR &, const ";
@@ -152,8 +150,6 @@ be_visitor_array_cdr_op_ch::visit_array (be_array *node)
*os << node->name () << "_forany &);";
}
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
index 20a3092c9aa..a3725dc31d4 100644
--- a/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_array/cdr_op_cs.cpp
@@ -176,8 +176,6 @@ be_visitor_array_cdr_op_cs::visit_array (be_array *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_OUTPUT);
*os << "::CORBA::Boolean operator<< (" << be_idt << be_idt_nl
@@ -215,8 +213,6 @@ be_visitor_array_cdr_op_cs::visit_array (be_array *node)
*os << "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp
index 2df3027db28..bb8acd5e5fc 100644
--- a/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_ccm_pre_proc.cpp
@@ -255,7 +255,7 @@ be_visitor_ccm_pre_proc::visit_eventtype (be_eventtype *node)
{
return 0;
}
-
+
if (this->create_event_consumer (node) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -265,16 +265,16 @@ be_visitor_ccm_pre_proc::visit_eventtype (be_eventtype *node)
-1);
}
- node->ccm_pre_proc_gen (true);
+ node->ccm_pre_proc_gen (I_TRUE);
return 0;
}
int
be_visitor_ccm_pre_proc::visit_eventtype_fwd (be_eventtype_fwd *node)
{
- be_eventtype *fd =
+ be_eventtype *fd =
be_eventtype::narrow_from_decl (node->full_definition ());
-
+
return this->visit_eventtype (fd);
}
@@ -307,11 +307,7 @@ be_visitor_ccm_pre_proc::gen_provides (be_component *node)
provides_op->set_defined_in (node);
provides_op->set_imported (node->imported ());
provides_op->set_name (op_name);
-
- if (0 == node->be_add_operation (provides_op))
- {
- return -1;
- }
+ node->be_add_operation (provides_op);
}
return 0;
@@ -329,7 +325,7 @@ be_visitor_ccm_pre_proc::gen_uses (be_component *node)
{
iter.next (pd);
- if (pd->is_multiple == false)
+ if (pd->is_multiple == I_FALSE)
{
if (this->gen_connect_single (node, pd) == -1)
{
@@ -513,10 +509,7 @@ be_visitor_ccm_pre_proc::gen_factories (be_home *node,
-1);
}
- if (0 == xplicit->be_add_operation (*item))
- {
- return -1;
- }
+ xplicit->be_add_operation (*item);
}
return 0;
@@ -550,10 +543,7 @@ be_visitor_ccm_pre_proc::gen_finders (be_home *node,
-1);
}
- if (0 == xplicit->be_add_operation (*item))
- {
- return -1;
- }
+ xplicit->be_add_operation (*item);
}
return 0;
@@ -661,12 +651,7 @@ be_visitor_ccm_pre_proc::gen_connect_single (
tail),
-1);
op->be_add_exceptions (connect_single);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -703,12 +688,7 @@ be_visitor_ccm_pre_proc::gen_disconnect_single (
0),
-1);
op->be_add_exceptions (disconnect_single);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -738,12 +718,7 @@ be_visitor_ccm_pre_proc::gen_get_connection_single (
-1);
op->set_name (op_full_name);
op->set_defined_in (node);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -797,12 +772,7 @@ be_visitor_ccm_pre_proc::gen_connect_multiple (
tail),
-1);
op->be_add_exceptions (connect_multiple);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -850,12 +820,7 @@ be_visitor_ccm_pre_proc::gen_disconnect_multiple (
0),
-1);
op->be_add_exceptions (disconnect_multiple);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -884,7 +849,7 @@ be_visitor_ccm_pre_proc::gen_get_connection_multiple (
UTL_ScopedName connections_name (&connections_id,
0);
AST_Decl *d = node->lookup_by_name (&connections_name,
- true);
+ I_TRUE);
be_typedef *td = be_typedef::narrow_from_decl (d);
connections_id.destroy ();
@@ -899,12 +864,7 @@ be_visitor_ccm_pre_proc::gen_get_connection_multiple (
op->set_name (op_full_name);
op->set_defined_in (node);
op->set_imported (node->imported ());
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -922,8 +882,8 @@ be_visitor_ccm_pre_proc::gen_push_op (be_eventtype *node,
be_operation (be_global->void_type (),
AST_Operation::OP_noflags,
0,
- false,
- false),
+ I_FALSE,
+ I_FALSE),
-1);
push_op->set_defined_in (consumer);
push_op->set_imported (node->imported ());
@@ -943,12 +903,7 @@ be_visitor_ccm_pre_proc::gen_push_op (be_eventtype *node,
-1);
arg_id.destroy ();
push_op->be_add_argument (arg);
-
- if (0 == consumer->be_add_operation (push_op))
- {
- return -1;
- }
-
+ consumer->be_add_operation (push_op);
return 0;
}
@@ -1000,12 +955,7 @@ be_visitor_ccm_pre_proc::gen_subscribe (be_component *node,
0),
-1);
op->be_add_exceptions (subscribe);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -1056,12 +1006,7 @@ be_visitor_ccm_pre_proc::gen_unsubscribe (be_component *node,
0),
-1);
op->be_add_exceptions (unsubscribe);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -1114,12 +1059,7 @@ be_visitor_ccm_pre_proc::gen_emits_connect (
0),
-1);
op->be_add_exceptions (emits_connect);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -1162,12 +1102,7 @@ be_visitor_ccm_pre_proc::gen_emits_disconnect (
0),
-1);
op->be_add_exceptions (emits_disconnect);
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -1204,12 +1139,7 @@ be_visitor_ccm_pre_proc::gen_get_consumer (
op->set_name (op_name);
op->set_defined_in (node);
op->set_imported (node->imported ());
-
- if (0 == node->be_add_operation (op))
- {
- return -1;
- }
-
+ node->be_add_operation (op);
return 0;
}
@@ -1266,12 +1196,7 @@ be_visitor_ccm_pre_proc::gen_create (be_home *node,
op->be_add_exceptions (exceps);
op->set_defined_in (implicit);
op->set_imported (node->imported ());
-
- if (0 == implicit->be_add_operation (op))
- {
- return -1;
- }
-
+ implicit->be_add_operation (op);
return 0;
}
@@ -1322,12 +1247,7 @@ be_visitor_ccm_pre_proc::gen_find_by_primary_key (be_home *node,
op->be_add_exceptions (exceps);
op->set_defined_in (implicit);
op->set_imported (node->imported ());
-
- if (0 == implicit->be_add_operation (op))
- {
- return -1;
- }
-
+ implicit->be_add_operation (op);
return 0;
}
@@ -1378,12 +1298,7 @@ be_visitor_ccm_pre_proc::gen_remove (be_home *node,
op->be_add_exceptions (exceps);
op->set_defined_in (implicit);
op->set_imported (node->imported ());
-
- if (0 == implicit->be_add_operation (op))
- {
- return -1;
- }
-
+ implicit->be_add_operation (op);
return 0;
}
@@ -1417,12 +1332,7 @@ be_visitor_ccm_pre_proc::gen_get_primary_key (be_home *node,
op->be_add_argument (arg);
op->set_defined_in (implicit);
op->set_imported (node->imported ());
-
- if (0 == implicit->be_add_operation (op))
- {
- return -1;
- }
-
+ implicit->be_add_operation (op);
return 0;
}
@@ -1443,7 +1353,7 @@ be_visitor_ccm_pre_proc::lookup_ccmobject (void)
&local_name);
AST_Decl *d =
idl_global->scopes ().top_non_null ()->lookup_by_name (&sn,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -1465,7 +1375,7 @@ be_visitor_ccm_pre_proc::lookup_cookie (be_component *node)
UTL_ScopedName cookie_name (&this->module_id_,
&local_name);
AST_Decl *d = node->lookup_by_name (&cookie_name,
- true);
+ I_TRUE);
local_id.destroy ();
if (d == 0)
@@ -1528,7 +1438,7 @@ be_visitor_ccm_pre_proc::lookup_one_exception (be_component *node,
UTL_ScopedName scoped_name (&this->module_id_,
&local_name);
AST_Decl *d = node->lookup_by_name (&scoped_name,
- true);
+ I_TRUE);
id.destroy ();
if (d == 0)
@@ -1574,17 +1484,17 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
0);
FE_InterfaceHeader header (consumer_name,
&parent_list,
- false,
- false,
- true);
+ I_FALSE,
+ I_FALSE,
+ I_TRUE);
ACE_NEW_RETURN (event_consumer,
be_interface (header.name (),
header.inherits (),
header.n_inherits (),
header.inherits_flat (),
header.n_inherits_flat (),
- false,
- false),
+ I_FALSE,
+ I_FALSE),
-1);
parent_id.destroy ();
@@ -1594,7 +1504,7 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
event_consumer->set_defined_in (s);
event_consumer->set_imported (node->imported ());
event_consumer->set_name (consumer_name);
-
+
// Set repo id to 0, so it will be recomputed on the next access,
// and set the prefix to the eventtype's prefix. All this is
// necessary in case the eventtype's prefix was modified after
@@ -1602,7 +1512,7 @@ be_visitor_ccm_pre_proc::create_event_consumer (be_eventtype *node)
// derived event consumer interface should have the same prefix.
event_consumer->repoID (0);
event_consumer->prefix (const_cast<char*> (node->prefix ()));
-
+
be_type::narrow_from_decl (event_consumer)->gen_fwd_helper_name ();
m->be_add_interface (event_consumer);
return this->gen_push_op (node,
@@ -1641,9 +1551,9 @@ be_visitor_ccm_pre_proc::create_explicit (be_home *node)
UTL_NameList *parent_list = this->compute_inheritance (node);
FE_InterfaceHeader header (0,
parent_list,
- false,
- false,
- true);
+ I_FALSE,
+ I_FALSE,
+ I_TRUE);
parent_list->destroy ();
UTL_ScopedName *explicit_name =
this->create_scoped_name (0,
@@ -1663,8 +1573,8 @@ be_visitor_ccm_pre_proc::create_explicit (be_home *node)
header.n_inherits (),
header.inherits_flat (),
header.n_inherits_flat (),
- false,
- false),
+ I_FALSE,
+ I_FALSE),
0);
// Back to reality.
@@ -1725,9 +1635,9 @@ be_visitor_ccm_pre_proc::create_implicit (be_home *node)
FE_InterfaceHeader header (0,
parent_list_ptr,
- false,
- false,
- true);
+ I_FALSE,
+ I_FALSE,
+ I_TRUE);
parent_id.destroy ();
// We're at global scope here so we need to fool the scope stack
@@ -1742,8 +1652,8 @@ be_visitor_ccm_pre_proc::create_implicit (be_home *node)
header.n_inherits (),
header.inherits_flat (),
header.n_inherits_flat (),
- false,
- false),
+ I_FALSE,
+ I_FALSE),
0);
// Back to reality.
@@ -1775,9 +1685,9 @@ be_visitor_ccm_pre_proc::create_equivalent (be_home *node,
&tail);
FE_InterfaceHeader header (0,
&parent_list,
- false,
- false,
- true);
+ I_FALSE,
+ I_FALSE,
+ I_TRUE);
// We're at global scope here so we need to fool the scope stack
// for a minute so the correct repo id can be calculated at
@@ -1791,15 +1701,15 @@ be_visitor_ccm_pre_proc::create_equivalent (be_home *node,
header.n_inherits (),
header.inherits_flat (),
header.n_inherits_flat (),
- false,
- false),
+ I_FALSE,
+ I_FALSE),
0);
// Back to reality.
idl_global->scopes ().pop ();
-
+
// So we can skip typecode generation.
- retval->home_equiv (true);
+ retval->home_equiv (I_TRUE);
retval->set_name (equiv_name);
retval->set_defined_in (s);
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ch.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ch.cpp
index 6841108b42b..d73a9054403 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_ch.cpp
@@ -116,7 +116,8 @@ be_visitor_component_ch::visit_component (be_component *node)
<< node->local_name () << "_ptr obj);" << be_nl << be_nl
<< "static " << node->local_name () << "_ptr "
<< "_narrow (" << be_idt << be_idt_nl
- << "::CORBA::Object_ptr obj" << env_dflts << be_uidt_nl
+ << "::CORBA::Object_ptr obj" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// This method is defined in the header file to workaround old
@@ -165,7 +166,8 @@ be_visitor_component_ch::visit_component (be_component *node)
*os << be_nl << be_nl
<< "virtual ::CORBA::Boolean _is_a (" << be_idt << be_idt_nl
- << "const char *type_id" << env_dflts << be_uidt_nl
+ << "const char *type_id" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
// The _interface_repository_id method.
@@ -272,6 +274,6 @@ be_visitor_component_ch::visit_component (be_component *node)
}
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ci.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ci.cpp
index 3f943723081..4458f9f847a 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_ci.cpp
@@ -66,6 +66,6 @@ be_visitor_component_ci::visit_component (be_component *node)
<< "}" ;
os->gen_endif ();
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_cs.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_cs.cpp
index c6b06d36e47..0dddeb5100a 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_cs.cpp
@@ -97,7 +97,7 @@ be_visitor_component_cs::visit_component (be_component *node)
<< "::CORBA::Boolean" << be_nl
<< "TAO::Objref_Traits<" << node->name () << ">::marshal ("
<< be_idt << be_idt_nl
- << "const " << node->name () << "_ptr p," << be_nl
+ << node->name () << "_ptr p," << be_nl
<< "TAO_OutputCDR & cdr" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
@@ -205,7 +205,8 @@ be_visitor_component_cs::visit_component (be_component *node)
*os << node->full_name () << "_ptr" << be_nl << node->full_name ()
<< "::_narrow (" << be_idt << be_idt_nl
<< "::CORBA::Object_ptr"
- << " _tao_objref" << env_decl << be_uidt_nl
+ << " _tao_objref" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -218,7 +219,8 @@ be_visitor_component_cs::visit_component (be_component *node)
<< "\"" << node->repoID () << "\"," << be_nl
<< node->flat_client_enclosing_scope ()
<< node->base_proxy_broker_name ()
- << "_Factory_function_pointer" << env_arg << be_uidt_nl
+ << "_Factory_function_pointer" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl << be_nl;
@@ -238,7 +240,8 @@ be_visitor_component_cs::visit_component (be_component *node)
// The is_a method.
*os << "::CORBA::Boolean" << be_nl
<< node->full_name () << "::_is_a (" << be_idt << be_idt_nl
- << "const char *value" << env_decl << be_uidt_nl
+ << "const char *value" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
<< "if (" << be_idt << be_idt_nl;
@@ -267,7 +270,8 @@ be_visitor_component_cs::visit_component (be_component *node)
<< "{" << be_idt_nl
<< "return this->ACE_NESTED_CLASS ( ::CORBA, Object)::_is_a ("
<< be_idt << be_idt_nl
- << "value" << env_arg << be_uidt_nl
+ << "value" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}" << be_uidt << be_uidt_nl
<< "}" << be_nl << be_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_sh.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_sh.cpp
index f08209f25a7..5a26b0e29f5 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_sh.cpp
@@ -161,53 +161,60 @@ be_visitor_component_sh::visit_component (be_component *node)
// _is_a
*os << "virtual ::CORBA::Boolean _is_a (" << be_idt << be_idt_nl
- << "const char* logical_type_id" << env_dflts << be_uidt_nl
+ << "const char* logical_type_id" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _is_a method.
*os << "static void _is_a_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *servant," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _non_existent method.
*os << "static void _non_existent_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *servant," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _interface method.
*os << "static void _interface_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *servant," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _component method.
*os << "static void _component_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _repository_id method.
*os << "static void _repository_id_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *servant," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add the dispatch method.
*os << "virtual void _dispatch (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
- << "void *_servant_upcall" << env_decl << be_uidt_nl
+ << "void *_servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// _this
- *os << "::" << node->full_name () << " *_this (" << be_idt << be_idt
- << env_dflts << be_uidt_nl
+ *os << "::" << node->full_name () << " *_this (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// _interface_repository_id
diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
index b030c2ed4bf..62fd3026576 100644
--- a/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_constant/constant_ch.cpp
@@ -151,6 +151,6 @@ be_visitor_constant_ch::visit_constant (be_constant *node)
*os << ";";
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
index d643647e864..77cf1e95d81 100644
--- a/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_constant/constant_cs.cpp
@@ -103,7 +103,7 @@ be_visitor_constant_cs::visit_constant (be_constant *node)
<< ";";
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_context.cpp b/TAO/TAO_IDL/be/be_visitor_context.cpp
index 287f3853b9c..ce5bc752dbe 100644
--- a/TAO/TAO_IDL/be/be_visitor_context.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_context.cpp
@@ -42,8 +42,8 @@
#include "be_visitor_context.h"
-ACE_RCSID (be,
- be_visitor_context,
+ACE_RCSID (be,
+ be_visitor_context,
"$Id$")
@@ -216,24 +216,24 @@ be_visitor_context::attribute (void)
}
void
-be_visitor_context::exception (bool ib)
+be_visitor_context::exception (idl_bool ib)
{
this->exception_ = ib;
}
-bool
+idl_bool
be_visitor_context::exception (void)
{
return this->exception_;
}
void
-be_visitor_context::comma (bool ib)
+be_visitor_context::comma (idl_bool ib)
{
this->comma_ = ib;
}
-bool
+idl_bool
be_visitor_context::comma (void)
{
return this->comma_;
@@ -648,7 +648,7 @@ const char *
be_visitor_context::non_null_export_macro (void) const
{
const char *anyop_export = be_global->anyop_export_macro ();
-
+
return (ACE_OS::strcmp (anyop_export, "") == 0
? be_global->stub_export_macro ()
: anyop_export);
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp
index 4b815165473..91c1fde0c47 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_ch.cpp
@@ -51,8 +51,6 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Generate the Any <<= and >>= operators.
*os << be_nl << be_nl
<< macro << " void operator<<= (::CORBA::Any &, " << node->name ()
@@ -60,8 +58,6 @@ be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << " &);";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_any_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp
index 71f18bac4f5..f35cc47839a 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/any_op_cs.cpp
@@ -51,8 +51,6 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Since we don't generate CDR stream operators for types that
// explicitly contain a local interface (at some level), we
// must override these Any template class methods to avoid
@@ -111,8 +109,6 @@ be_visitor_enum_any_op_cs::visit_enum (be_enum *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_any_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp
index 395390ba4fd..0315d8d709b 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_ch.cpp
@@ -49,16 +49,12 @@ be_visitor_enum_cdr_op_ch::visit_enum (be_enum *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// generate the CDR << and >> operators
*os << be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator<< (TAO_OutputCDR &, " << node->name () << ");" << be_nl;
*os << be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator>> (TAO_InputCDR &, " << node->name () << " &);";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp
index 71bf537308b..03fe27f85e6 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/cdr_op_cs.cpp
@@ -50,8 +50,6 @@ be_visitor_enum_cdr_op_cs::visit_enum (be_enum *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << "::CORBA::Boolean operator<< (TAO_OutputCDR & strm, "
<< node->name () << " _tao_enumerator)" << be_nl
<< "{" << be_idt_nl
@@ -73,8 +71,6 @@ be_visitor_enum_cdr_op_cs::visit_enum (be_enum *node)
<< "return _tao_success;" << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
- node->cli_stub_cdr_op_gen (true);
+ node->cli_stub_cdr_op_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
index 583b177c659..0ed02f95883 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_ch.cpp
@@ -92,7 +92,7 @@ be_visitor_enum_ch::visit_enum (be_enum *node)
}
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp
index 452cfeb3a7a..3bd120f3687 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/enum_cs.cpp
@@ -65,6 +65,6 @@ be_visitor_enum_cs::visit_enum (be_enum *node)
}
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp
index 8ee3eab7b30..6410c05b30a 100644
--- a/TAO/TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_enum/serializer_op_cs.cpp
@@ -71,6 +71,6 @@ be_visitor_enum_serializer_op_cs::visit_enum (be_enum *node)
<< "return _tao_result;" << be_uidt_nl
<< "}";
- node->cli_stub_serializer_op_gen (true);
+ node->cli_stub_serializer_op_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp
index 3682ee0670d..4be883ec90b 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_ch.cpp
@@ -52,8 +52,6 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
<< " &); // copying version" << be_nl;
@@ -64,8 +62,7 @@ be_visitor_exception_any_op_ch::visit_exception (be_exception *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
+
// All we have to do is to visit the scope and generate code.
if (this->visit_scope (node) == -1)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp
index f432f30d54a..9dbed0d7913 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/any_op_cs.cpp
@@ -49,8 +49,6 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
if (!node->is_local ())
{
*os << be_nl << be_nl
@@ -68,21 +66,16 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
<< "{" << be_idt_nl
<< "return false;" << be_uidt_nl
<< "}" << be_uidt_nl << be_nl
- << (be_global->use_raw_throw () ? "try" :"ACE_TRY_NEW_ENV")
- << be_idt_nl
+ << "ACE_TRY_NEW_ENV" << be_idt_nl
<< "{" << be_idt_nl
- << "this->value_->_tao_decode (cdr"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");" << ace_try_check << be_uidt_nl
+ << "this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);" << be_nl
+ << "ACE_TRY_CHECK;" << be_uidt_nl
<< "}" << be_uidt_nl
- << (be_global->use_raw_throw ()
- ? "catch ( ::CORBA::Exception &)"
- : "ACE_CATCHANY")
- << be_idt_nl
+ << "ACE_CATCHANY" << be_idt_nl
<< "{" << be_idt_nl
<< "return false;" << be_uidt_nl
- << "}" << be_uidt
- << ace_endtry << be_nl << be_nl
+ << "}" << be_uidt_nl
+ << "ACE_ENDTRY;" << be_nl << be_nl
<< "return true;" << be_uidt_nl
<< "}" << be_uidt_nl
<< "}";
@@ -181,8 +174,6 @@ be_visitor_exception_any_op_cs::visit_exception (be_exception *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
// all we have to do is to visit the scope and generate code
if (this->visit_scope (node) == -1)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp
index 920e14412e7..bea4c76931f 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_ch.cpp
@@ -51,8 +51,6 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator<< (TAO_OutputCDR &, const " << node->name ()
@@ -61,7 +59,6 @@ be_visitor_exception_cdr_op_ch::visit_exception (be_exception *node)
<< " operator>> (TAO_InputCDR &, "
<< node->name () << " &);";
- *os << be_global->core_versioning_end () << be_nl;
// Set the substate as generating code for the types defined in our scope.
this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE);
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp
index ce9d86f8d83..66756dd7705 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/cdr_op_cs.cpp
@@ -59,8 +59,6 @@ be_visitor_exception_cdr_op_cs::visit_exception (be_exception *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -166,8 +164,6 @@ be_visitor_exception_cdr_op_cs::visit_exception (be_exception *node)
*os << "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
index 7741845e7b4..dea21701546 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
@@ -99,10 +99,12 @@ int be_visitor_exception_ch::visit_exception (be_exception *node)
<< "_tao_duplicate (void) const;\n" << be_nl
<< "virtual void _raise (void) const;\n" << be_nl
<< "virtual void _tao_encode (" << be_idt << be_idt_nl
- << "TAO_OutputCDR &" << env_decl << be_uidt_nl
+ << "TAO_OutputCDR &" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ") const;" << be_uidt_nl << be_nl
<< "virtual void _tao_decode (" << be_idt << be_idt_nl
- << "TAO_InputCDR &" << env_decl << be_uidt_nl
+ << "TAO_InputCDR &" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt;
// Generate constructor that takes each member as a parameter. We need a
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp
index 25edecd0bac..676c51401bc 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ci.cpp
@@ -54,6 +54,6 @@ int be_visitor_exception_ci::visit_exception (be_exception *node)
-1);
}
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
index fd6c6b08773..69014b8c6d5 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
@@ -196,7 +196,8 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
if (!node->is_local ())
{
- *os << "TAO_OutputCDR &cdr" << env_decl << be_uidt_nl
+ *os << "TAO_OutputCDR &cdr" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ") const" << be_uidt_nl
<< "{" << be_idt_nl
<< "if (cdr << *this)" << be_idt_nl
@@ -217,7 +218,8 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
}
else
{
- *os << "TAO_OutputCDR &" << env_decl << be_uidt_nl
+ *os << "TAO_OutputCDR &" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ") const" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -238,7 +240,8 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
if (!node->is_local ())
{
- *os << "TAO_InputCDR &cdr" << env_decl << be_uidt_nl
+ *os << "TAO_InputCDR &cdr" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
<< "if (cdr >> *this)" << be_idt_nl
@@ -259,7 +262,8 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
}
else
{
- *os << "TAO_InputCDR &" << env_decl << be_uidt_nl
+ *os << "TAO_InputCDR &" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -356,6 +360,6 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
}
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_home.cpp b/TAO/TAO_IDL/be/be_visitor_home.cpp
index b3c720138a7..3ef51b8fe8e 100644
--- a/TAO/TAO_IDL/be/be_visitor_home.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home.cpp
@@ -26,7 +26,6 @@
#include "be_visitor_context.h"
#include "be_helper.h"
#include "be_extern.h"
-#include "ace/Log_Msg.h"
#include "be_visitor_home/home_ch.cpp"
#include "be_visitor_home/home_cs.cpp"
diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_ch.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_ch.cpp
index cbe0a71da1e..4b5a5d8d1ac 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_ch.cpp
@@ -75,6 +75,6 @@ be_visitor_home_ch::visit_home (be_home *node)
}
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_home/home_cs.cpp b/TAO/TAO_IDL/be/be_visitor_home/home_cs.cpp
index d57f034cc09..61552720cba 100644
--- a/TAO/TAO_IDL/be/be_visitor_home/home_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_home/home_cs.cpp
@@ -59,6 +59,6 @@ be_visitor_home_cs::visit_home (be_home *node)
}
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface.cpp
index 2e7e3ff277f..94e476b2a82 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface.cpp
@@ -51,7 +51,6 @@
#include "be_visitor_operation.h"
#include "be_visitor_typecode.h"
#include "be_visitor_context.h"
-#include "ace/Auto_Ptr.h"
#include "be_visitor_interface/interface.cpp"
#include "be_visitor_interface/interface_ch.cpp"
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
index 560bb8e72ef..94b5bb12b7d 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
@@ -98,6 +98,6 @@ be_visitor_amh_interface_ch::visit_interface (be_interface *node)
"codegen for scope failed\n"), -1);
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp
index 19e7340f37c..f62b5150a47 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_sh.cpp
@@ -121,7 +121,8 @@ be_visitor_amh_interface_sh::visit_interface (be_interface *node)
<< "virtual ~" << class_name.c_str () << " (void);\n\n"
<< be_nl
<< "virtual ::CORBA::Boolean _is_a (" << be_idt << be_idt_nl
- << "const char* logical_type_id" << env_dflts << be_uidt_nl
+ << "const char* logical_type_id" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// *os << "virtual void* _downcast (" << be_idt << be_idt_nl
@@ -132,41 +133,47 @@ be_visitor_amh_interface_sh::visit_interface (be_interface *node)
*os << "static void _is_a_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _non_existent method.
*os << "static void _non_existent_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _interface method.
*os << "static void _interface_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _component method.
*os << "static void _component_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _repository_id method.
*os << "static void _repository_id_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
<< "void *obj," << be_nl
- << "void *servant_upcall" << env_decl << be_uidt_nl
+ << "void *servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add the dispatch method.
*os << "virtual void _dispatch (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &req," << be_nl
- << "void *_servant_upcall" << env_decl << be_uidt_nl
+ << "void *_servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
this->this_method (node);
@@ -377,10 +384,7 @@ be_visitor_amh_interface_sh::add_amh_operation (be_operation *node,
// After having generated the operation we insert it into the
// AMH node interface.
- if (0 == amh_node->be_add_operation (operation))
- {
- return -1;
- }
+ amh_node->be_add_operation (operation);
return 0;
}
@@ -427,7 +431,7 @@ be_visitor_amh_interface_sh::this_method (be_interface *node)
// interfaces is "special", because the returned type is not exactly
// the type of the class, but the original class that "implied" the
// AMH one.
- *os << non_amh_name.c_str () << " *_this (" << be_idt << be_idt
- << env_dflts << be_uidt_nl
+ *os << non_amh_name.c_str () << " *_this (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");\n" << be_uidt;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_si.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_si.cpp
index 10118851bcf..5bbea728b19 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_si.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_si.cpp
@@ -135,7 +135,8 @@ be_visitor_amh_interface_si::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * context," << be_nl
- << "void * obj" << env_decl << be_uidt_nl
+ << "void * obj" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
*os << ancestor_amh_name
@@ -147,7 +148,8 @@ be_visitor_amh_interface_si::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "req," << be_nl
<< "context," << be_nl
- << "impl" << env_arg << be_uidt_nl
+ << "impl" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
}
@@ -171,7 +173,8 @@ be_visitor_amh_interface_si::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * context," << be_nl
- << "void * obj" << env_decl << be_uidt_nl
+ << "void * obj" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -185,7 +188,8 @@ be_visitor_amh_interface_si::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "req," << be_nl
<< "context," << be_nl
- << "impl" << env_arg << be_uidt_nl
+ << "impl" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
@@ -203,7 +207,8 @@ be_visitor_amh_interface_si::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * context," << be_nl
- << "void * obj" << env_decl << be_uidt_nl
+ << "void * obj" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -217,7 +222,8 @@ be_visitor_amh_interface_si::gen_skel_helper (be_interface *derived,
<< "_skel (" << be_idt << be_idt_nl
<< "req," << be_nl
<< "context," << be_nl
- << "impl" << env_arg << be_uidt_nl
+ << "impl" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
index 05fee0ef3d6..d7b6ef96b1d 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
@@ -71,13 +71,11 @@ be_visitor_amh_interface_ss::this_method (be_interface *node)
*os << non_amh_name.c_str () << "*" << be_nl
<< full_skel_name
- << "::_this ("
- << (be_global->use_raw_throw () ? "void" : "ACE_ENV_SINGLE_ARG_DECL")
- << ")" << be_nl
+ << "::_this (ACE_ENV_SINGLE_ARG_DECL)" << be_nl
<< "{" << be_idt_nl
- << "TAO_Stub *stub = this->_create_stub ("
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK ("0") << be_nl << be_nl;
+ << "TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_nl
+ << "ACE_CHECK_RETURN (0);" << be_nl << be_nl;
*os << "TAO_Stub_Auto_Ptr safe_stub (stub);" << be_nl
<< "::CORBA::Object_ptr tmp = CORBA::Object::_nil ();" << be_nl
@@ -130,13 +128,15 @@ be_visitor_amh_interface_ss::dispatch_method (be_interface *node)
*os << "void" << be_nl
<< full_skel_name << "::_dispatch (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
- << "void * context" << env_decl << be_uidt_nl
+ << "void * context" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
<< "this->asynchronous_upcall_dispatch (" << be_idt << be_idt_nl
<< "req," << be_nl
<< "context," << be_nl
- << "this" << env_arg << be_uidt_nl
+ << "this" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}";
}
@@ -148,6 +148,7 @@ be_visitor_amh_interface_ss::generate_send_reply (TAO_OutStream * os)
<< "server_request.tao_send_reply ();";
}
+
int
be_visitor_amh_interface_ss::generate_amh_classes (be_interface *)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
index e87982b4447..21681f94492 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_ch.cpp
@@ -92,8 +92,6 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
*os << "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
<< "_ptr); // copying" << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
@@ -101,8 +99,6 @@ be_visitor_interface_any_op_ch::visit_interface (be_interface *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << "_ptr &);";
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
index 87e0899c0b2..9bcbcba0496 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/any_op_cs.cpp
@@ -53,8 +53,6 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
// All template specializations must be generated before the instantiations
// in the operators.
- *os << be_global->core_versioning_begin () << be_nl;
-
if (! node->is_abstract ())
{
*os << be_nl << be_nl
@@ -123,7 +121,6 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
<< "}";
}
- *os << be_global->core_versioning_end () << be_nl;
be_module *module = 0;
@@ -199,8 +196,6 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
*os << "#else\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< "// Copying insertion." << be_nl
<< "void" << be_nl
@@ -246,8 +241,6 @@ be_visitor_interface_any_op_cs::visit_interface (be_interface *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/base_proxy_broker_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/base_proxy_broker_ch.cpp
index 916f4cb041d..f006fb845da 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/base_proxy_broker_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/base_proxy_broker_ch.cpp
@@ -1,7 +1,7 @@
//$Id$
-ACE_RCSID (be_visitor_interface,
- base_proxy_broker_ch,
+ACE_RCSID (be_visitor_interface,
+ base_proxy_broker_ch,
"$Id$")
be_visitor_interface_base_proxy_broker_ch::
@@ -26,7 +26,7 @@ be_visitor_interface_base_proxy_broker_ch::visit_interface (
TAO_OutStream *os = this->ctx_->stream ();
*os << be_nl
- << "///////////////////////////////////////////////////////////////////////"
+ << "///////////////////////////////////////////////////////////////////////"
<< be_nl
<< "// Base Proxy Broker Declaration " << be_nl
<< "//" << be_nl << be_nl;
@@ -50,7 +50,8 @@ be_visitor_interface_base_proxy_broker_ch::visit_interface (
<< "select_proxy ("
<< be_idt << be_idt_nl;
- *os << node->local_name () << " *object" << env_dflts << be_uidt_nl
+ *os << node->local_name () << " *object" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ") = 0;"
<< be_uidt_nl // idt = 1
<< be_uidt_nl; // idt = 0
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp
index c09ed666805..845866a7568 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_ch.cpp
@@ -54,8 +54,6 @@ be_visitor_interface_cdr_op_ch::visit_interface (be_interface *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Generate the CDR << and >> operator declarations.
*os << be_global->stub_export_macro () << " ::CORBA::Boolean "
<< "operator<< (TAO_OutputCDR &, const " << node->full_name ()
@@ -64,8 +62,6 @@ be_visitor_interface_cdr_op_ch::visit_interface (be_interface *node)
<< "operator>> (TAO_InputCDR &, "
<< node->full_name () << "_ptr &);";
- *os << be_global->core_versioning_end () << be_nl;
-
// Set the substate as generating code for the types defined in our scope.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_SCOPE);
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp
index 369273c817e..d115c4671c6 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/cdr_op_cs.cpp
@@ -62,8 +62,6 @@ be_visitor_interface_cdr_op_cs::visit_interface (be_interface *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -142,8 +140,6 @@ be_visitor_interface_cdr_op_cs::visit_interface (be_interface *node)
*os << "return 1;" << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp
index eb7c5cda9d4..b5cb1aa8d6b 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/direct_proxy_impl_sh.cpp
@@ -40,7 +40,7 @@ be_visitor_interface_direct_proxy_impl_sh::visit_interface (
*os << "class " << be_global->skel_export_macro ()
<< " " << node->direct_proxy_impl_name ();
- bool first_concrete = true;
+ idl_bool first_concrete = I_TRUE;
if (node->n_inherits () > 0)
{
@@ -60,17 +60,17 @@ be_visitor_interface_direct_proxy_impl_sh::visit_interface (
if (first_concrete)
{
- *os << be_nl
+ *os << be_nl
<< " : " << be_idt << be_idt;
}
else
{
- *os << "," << be_nl;
+ *os << "," << be_nl;
}
- first_concrete = false;
+ first_concrete = I_FALSE;
- *os << "public virtual ::"
+ *os << "public virtual ::"
<< inherited->full_direct_proxy_impl_name ();
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
index dc72c8a0ead..b1148857606 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface.cpp
@@ -110,7 +110,7 @@ be_visitor_interface::visit_scope (be_scope *node)
int status =
intf->traverse_inheritance_graph (helper,
this->ctx_->stream (),
- false);
+ I_FALSE);
if (status == -1)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
index 6c26766524a..959a01e914c 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
@@ -213,15 +213,15 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
{
*os << "// These two are inherited from SessionComponent."
<< be_nl << be_nl
- << "virtual void ciao_preactivate (" << be_idt << be_idt
- << env_sngl_dflts << be_uidt_nl
+ << "virtual void ciao_preactivate (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC ((" << be_idt_nl
<< "::CORBA::SystemException," << be_nl
<< "::Components::CCMException" << be_uidt_nl
<< "));" << be_uidt_nl << be_nl
- << "virtual void ciao_postactivate (" << be_idt << be_idt
- << env_sngl_dflts << be_uidt_nl
+ << "virtual void ciao_postactivate (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC ((" << be_idt_nl
<< "::CORBA::SystemException," << be_nl
@@ -238,7 +238,8 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
// The _is_a method
*os << "virtual ::CORBA::Boolean _is_a (" << be_idt << be_idt_nl
- << "const char *type_id" << env_dflts << be_uidt_nl
+ << "const char *type_id" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// The _interface_repository_id method.
@@ -385,7 +386,7 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
}
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
@@ -451,14 +452,14 @@ be_visitor_interface_ch::gen_xxx_narrow (const char *nar,
if (node->is_abstract ())
{
- *os << "::CORBA::AbstractBase_ptr obj";
+ *os << "::CORBA::AbstractBase_ptr obj" << be_nl;
}
else
{
- *os << "::CORBA::Object_ptr obj";
+ *os << "::CORBA::Object_ptr obj" << be_nl;
}
- *os << env_dflts << be_uidt_nl
+ *os << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
return true;
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
index e78a52a7528..4f95cccade4 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
@@ -54,7 +54,7 @@ be_visitor_interface_ci::visit_interface (be_interface *node)
// Nothing to generate for a local interface except from it scope.
if (node->is_local ())
{
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
@@ -107,6 +107,6 @@ be_visitor_interface_ci::visit_interface (be_interface *node)
}
os->gen_endif ();
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
index 49eed2b20ce..1609e409b05 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
@@ -96,7 +96,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
<< "::CORBA::Boolean" << be_nl
<< "TAO::Objref_Traits<" << node->name () << ">::marshal ("
<< be_idt << be_idt_nl
- << "const " << node->name () << "_ptr p," << be_nl
+ << node->name () << "_ptr p," << be_nl
<< "TAO_OutputCDR & cdr" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
@@ -339,8 +339,8 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
<< be_nl << be_nl
<< "void" << be_nl
<< node->full_name () << "::ciao_preactivate ("
- << be_idt << be_idt
- << env_sngl_not << be_uidt_nl
+ << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_uidt_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException," << be_nl
<< " ::Components::CCMException))" << be_uidt_nl
@@ -348,8 +348,8 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
<< "}" << be_nl << be_nl
<< "void" << be_nl
<< node->full_name () << "::ciao_postactivate ("
- << be_idt << be_idt
- << env_sngl_not << be_uidt_nl
+ << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_uidt_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException," << be_nl
<< " ::Components::CCMException))" << be_uidt_nl
@@ -359,16 +359,12 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
*os << "::CORBA::Boolean" << be_nl
<< node->full_name () << "::_is_a (" << be_idt << be_idt_nl
- << "const char *value";
+ << "const char *value" << be_nl;
if (node->is_local () || node->is_abstract ())
- {
- *os << env_not;
- }
+ *os << "ACE_ENV_ARG_DECL_NOT_USED";
else
- {
- *os << env_decl;
- }
+ *os << "ACE_ENV_ARG_DECL";
*os << be_uidt_nl << ")" << be_uidt_nl
<< "{" << be_idt_nl
@@ -434,7 +430,8 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
{
*os << "return this->ACE_NESTED_CLASS ( ::CORBA, Object)::_is_a ("
<< be_idt << be_idt_nl
- << "value" << env_arg << be_uidt_nl
+ << "value" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl;
}
@@ -527,8 +524,9 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre,
*os << "::CORBA::Object_ptr";
}
- *os << " _tao_objref"
- << (node->is_local () ? env_not : env_decl)
+ *os << " _tao_objref" << be_nl
+ << "ACE_ENV_ARG_DECL"
+ << (node->is_local () ? "_NOT_USED" : "")
<< be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
@@ -556,7 +554,8 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre,
<< "\"" << node->repoID () << "\"," << be_nl
<< node->flat_client_enclosing_scope ()
<< node->base_proxy_broker_name ()
- << "_Factory_function_pointer" << env_arg << be_uidt_nl
+ << "_Factory_function_pointer" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_nl
<< "return TAO_" << node->flat_name ()
<< "_PROXY_FACTORY_ADAPTER::instance ()->create_proxy (proxy);"
@@ -583,7 +582,8 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre,
<< "\"" << node->repoID () << "\"," << be_nl
<< node->flat_client_enclosing_scope ()
<< node->base_proxy_broker_name ()
- << "_Factory_function_pointer" << env_arg << be_uidt_nl
+ << "_Factory_function_pointer" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl << be_nl;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp
index 1e5817b65ce..8af48e1e422 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_sh.cpp
@@ -84,27 +84,31 @@ be_visitor_interface_sh::visit_interface (be_interface *node)
*os << be_nl << be_nl
<< "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__;
+ << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
// Generate the skeleton class name.
- *os << be_nl << be_nl
- << "class " << class_name.c_str () << ";" << be_nl;
+ *os << "class " << class_name.c_str () << ";" << be_nl;
// Generate the _ptr declaration.
*os << "typedef " << class_name.c_str () << " *" << class_name.c_str ()
- << "_ptr;";
+ << "_ptr;" << be_nl << be_nl;
if (be_global->gen_direct_collocation ())
{
- *os << be_nl << be_nl
- << "class " << node->direct_proxy_impl_name () << ";" << be_nl
- << "class " << node->strategized_proxy_broker_name () << ";";
+ *os << "class " << node->direct_proxy_impl_name () << ";" << be_nl;
}
+ if (be_global->gen_direct_collocation ())
+ {
+ *os << "class " << node->strategized_proxy_broker_name ()
+ << ";" << be_nl;
+ }
+
+ *os << be_nl;
+
// Now generate the class definition.
- *os << be_nl << be_nl
- << "class " << be_global->skel_export_macro ()
+ *os << "class " << be_global->skel_export_macro ()
<< " " << class_name.c_str () << be_idt_nl << ": " << be_idt;
long n_parents = node->n_inherits ();
@@ -165,7 +169,8 @@ be_visitor_interface_sh::visit_interface (be_interface *node)
<< be_nl
<< "virtual ::CORBA::Boolean ciao_is_substitutable ("
<< be_idt << be_idt_nl
- << "const char *event_repo_id" << env_dflts << be_uidt_nl
+ << "const char *event_repo_id" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException));"
<< be_uidt_nl << be_nl;
@@ -173,49 +178,56 @@ be_visitor_interface_sh::visit_interface (be_interface *node)
// _is_a
*os << "virtual ::CORBA::Boolean _is_a (" << be_idt << be_idt_nl
- << "const char* logical_type_id" << env_dflts << be_uidt_nl
+ << "const char* logical_type_id" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _is_a method.
*os << "static void _is_a_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _non_existent method.
*os << "static void _non_existent_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _interface method.
*os << "static void _interface_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _component method.
*os << "static void _component_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add a skeleton for our _repository_id method.
*os << "static void _repository_id_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// Add the dispatch method.
*os << "virtual void _dispatch (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
- << "void * servant_upcall" << env_decl << be_uidt_nl
+ << "void * servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
this->this_method (node);
@@ -380,7 +392,7 @@ be_visitor_interface_sh::this_method (be_interface *node)
// Print out the _this() method.
*os << "::" << node->full_name () << " *_this (" << be_idt << be_idt_nl
- << env_dflts << be_uidt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt << be_nl;
}
@@ -388,7 +400,7 @@ int
be_visitor_interface_sh::generate_amh_classes (be_interface *node)
{
// We have to check for any abstract ancestor until AMH is integrated
- // with abstract interfaces. If the node itself is abstract, this
+ // with abstract interfaces. If the node itself is abstract, this
// visitor would not be created.
if (be_global->gen_amh_classes () && !node->has_mixed_parentage ())
{
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
index 1a4cecb0056..8c9c767d55c 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
@@ -204,14 +204,14 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
full_skel_name,
is_a_upcall_command_name.c_str ());
- *os << be_nl << be_nl
- << "void " << full_skel_name
+ *os << "void " << full_skel_name
<< "::_is_a_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request, " << be_nl
<< "void * TAO_INTERCEPTOR (servant_upcall)," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
- *os << "{" << be_idt;
+ *os << "{" << be_idt_nl;
// Generate exception list.
be_visitor_operation_exceptlist_ss exception_list (this->ctx_);
@@ -276,14 +276,13 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
<< " , exceptions" << be_nl
<< " , nexceptions"
<< "\n#endif /* TAO_HAS_INTERCEPTORS == 1 */" << be_nl
- << " "
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK ();
+ << " ACE_ENV_ARG_PARAMETER);" << be_nl
+ << "ACE_CHECK;" << be_nl;
this->generate_send_reply (os);
*os << be_uidt_nl
- << "}";
+ << "}" << be_nl << be_nl;
}
// Generate code for the _non_existent skeleton.
@@ -309,14 +308,14 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
full_skel_name,
non_exist_upcall_command_name.c_str ());
- *os << be_nl << be_nl
- << "void " << full_skel_name
+ *os << "void " << full_skel_name
<< "::_non_existent_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request, " << be_nl
<< "void * TAO_INTERCEPTOR (servant_upcall)," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
- *os << "{" << be_idt;
+ *os << "{" << be_idt_nl;
// Generate exception list.
be_visitor_operation_exceptlist_ss exception_list (this->ctx_);
@@ -380,14 +379,14 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
<< " , exceptions" << be_nl
<< " , nexceptions"
<< "\n#endif /* TAO_HAS_INTERCEPTORS == 1 */" << be_nl
- << " "
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK ();
+ << " ACE_ENV_ARG_PARAMETER);" << be_nl
+ << "ACE_CHECK;" << be_nl;
this->generate_send_reply (os);
*os << be_uidt_nl
- << "}";
+ << "}" << be_nl << be_nl;
+
}
// Generate code for the _repository_id skeleton.
@@ -417,14 +416,14 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
full_skel_name,
repository_id_upcall_command_name.c_str ());
- *os << be_nl << be_nl
- << "void " << full_skel_name
+ *os << "void " << full_skel_name
<< "::_repository_id_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request, " << be_nl
<< "void * TAO_INTERCEPTOR (servant_upcall)," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
- *os << "{" << be_idt;
+ *os << "{" << be_idt_nl;
// Generate exception list.
be_visitor_operation_exceptlist_ss exception_list (this->ctx_);
@@ -488,25 +487,26 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
<< " , exceptions" << be_nl
<< " , nexceptions"
<< "\n#endif /* TAO_HAS_INTERCEPTORS == 1 */" << be_nl
- << " "
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK ();
+ << " ACE_ENV_ARG_PARAMETER);" << be_nl
+ << "ACE_CHECK;" << be_nl;
this->generate_send_reply (os);
*os << be_uidt_nl
- << "}";
+ << "}" << be_nl << be_nl;
+
}
*os << be_nl << be_nl << "// TAO_IDL - Generated from " << be_nl
- << "// " << __FILE__ << ":" << __LINE__;
+ << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
*os << be_nl << be_nl
<< "void " << full_skel_name
<< "::_interface_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request, " << be_nl
<< "void * /* servant_upcall */," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
*os << "{" << be_idt_nl;
*os << "TAO_IFR_Client_Adapter *_tao_adapter =" << be_idt_nl
@@ -516,10 +516,8 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
<< ");" << be_uidt_nl << be_uidt_nl;
*os << "if (_tao_adapter == 0)" << be_idt_nl
<< "{" << be_idt_nl
- << "ACE_THROW ( ::CORBA::INTF_REPOS ( ::CORBA::OMGVMCID | 1,"
- << be_nl
- << " ::CORBA::COMPLETED_NO));"
- << be_uidt_nl
+ << "ACE_THROW ( ::CORBA::INTF_REPOS ( ::CORBA::OMGVMCID | 1," << be_nl
+ << " ::CORBA::COMPLETED_NO));" << be_uidt_nl
<< "}" << be_uidt_nl << be_nl;
// Get the right object implementation.
@@ -529,12 +527,9 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
<< be_uidt_nl;
*os << "::CORBA::InterfaceDef_ptr _tao_retval = " << be_idt_nl
- << "impl->_get_interface ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << be_uidt
- << TAO_ACE_CHECK () << be_nl << be_nl
+ << "impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_uidt_nl
+ << "ACE_CHECK;" << be_nl << be_nl
<< "server_request.init_reply ();" << be_nl
<< "TAO_OutputCDR &_tao_out = *server_request.outgoing ();"
<< be_nl << be_nl
@@ -553,7 +548,7 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
this->generate_send_reply (os);
*os << be_uidt_nl
- << "}";
+ << "}" << be_nl << be_nl;
// Generate code for the _component skeleton.
@@ -581,14 +576,15 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
full_skel_name,
get_component_upcall_command_name.c_str());
- *os << be_nl << be_nl
- << "void " << full_skel_name
+ *os << "void " << full_skel_name
<< "::_component_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request, " << be_nl
<< "void * TAO_INTERCEPTOR (servant_upcall)," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
- *os << "{" << be_idt;
+ *os << "{" << be_idt_nl;
+
// Generate exception list.
be_visitor_operation_exceptlist_ss exception_list (this->ctx_);
@@ -651,18 +647,19 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
<< " , exceptions" << be_nl
<< " , nexceptions"
<< "\n#endif /* TAO_HAS_INTERCEPTORS == 1 */" << be_nl
- << " "
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_uidt_nl
- << "}";
+ << " ACE_ENV_ARG_PARAMETER);" << be_nl
+ << "ACE_CHECK;" << be_nl;
+
+ *os << be_uidt_nl
+ << "}" << be_nl << be_nl;
}
// Generate code for the _is_a override.
- *os << be_nl << be_nl
- << "::CORBA::Boolean " << full_skel_name
+ *os << "::CORBA::Boolean " << full_skel_name
<< "::_is_a (" << be_idt << be_idt_nl
- << "const char* value" << env_not << be_uidt_nl
+ << "const char* value" << be_nl
+ << "ACE_ENV_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
<< "return" << be_idt_nl
@@ -707,7 +704,8 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
*os << be_nl << be_nl
<< "::CORBA::Boolean " << full_skel_name
<< "::ciao_is_substitutable (" << be_idt << be_idt_nl
- << "const char * /* event_repo_id */" << env_not << be_uidt_nl
+ << "const char * /* event_repo_id */" << be_nl
+ << "ACE_ENV_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException))" << be_uidt_nl
<< "{" << be_idt_nl
@@ -817,14 +815,11 @@ be_visitor_interface_ss::this_method (be_interface *node)
// the _this () operation.
*os << node->full_name () << " *" << be_nl
<< node->full_skel_name ()
- << "::_this ("
- << (be_global->use_raw_throw () ? "void" : "ACE_ENV_SINGLE_ARG_DECL")
- << ")" << be_nl
+ << "::_this (ACE_ENV_SINGLE_ARG_DECL)" << be_nl
<< "{" << be_idt_nl
- << "TAO_Stub *stub = this->_create_stub ("
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");"
- << TAO_ACE_CHECK ("0") << be_nl << be_nl
+ << "TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_nl
+ << "ACE_CHECK_RETURN (0);" << be_nl << be_nl
<< "TAO_Stub_Auto_Ptr safe_stub (stub);" << be_nl;
*os << "::CORBA::Object_ptr tmp = CORBA::Object::_nil ();"
@@ -869,15 +864,14 @@ be_visitor_interface_ss::dispatch_method (be_interface *node)
*os << "void " << node->full_skel_name ()
<< "::_dispatch (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & req," << be_nl
- << "void * servant_upcall" << env_decl << be_uidt_nl
+ << "void * servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
*os << "{" << be_idt_nl;
*os << "this->synchronous_upcall_dispatch (req," << be_nl
<< " servant_upcall," << be_nl
<< " this" << be_nl
- << " "
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_ARG_PARAMETER")
- << ");"
+ << " ACE_ENV_ARG_PARAMETER);"
<< be_uidt_nl;
*os << "}";
}
@@ -886,7 +880,7 @@ int
be_visitor_interface_ss::generate_amh_classes (be_interface *node)
{
// We have to check for any abstract ancestor until AMH is integrated
- // with abstract interfaces. If the node itself is abstract, this
+ // with abstract interfaces. If the node itself is abstract, this
// visitor would not be created.
if (be_global->gen_amh_classes () && !node->has_mixed_parentage ())
{
@@ -994,7 +988,7 @@ be_visitor_interface_ss::generate_proxy_classes (be_interface *node)
<< node->flat_client_enclosing_scope ()
<< node->base_proxy_broker_name ()
<< "_Factory_Initializer)" << be_uidt_nl
- << ");" << be_uidt << be_uidt;
+ << ");" << be_uidt << be_uidt_nl << be_nl;
}
if (be_global->gen_direct_collocation ())
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_ch.cpp
index 12c8f672665..f0f00ab4c50 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_ch.cpp
@@ -31,7 +31,7 @@ be_visitor_interface_remote_proxy_broker_ch::visit_interface (
os->indent ();
*os << be_nl
- << "///////////////////////////////////////////////////////////////////////"
+ << "///////////////////////////////////////////////////////////////////////"
<< be_nl
<< "// Remote Proxy Broker Declaration " << be_nl
<< "//" << be_nl << be_nl;
@@ -54,11 +54,12 @@ be_visitor_interface_remote_proxy_broker_ch::visit_interface (
<< be_nl << be_nl;
// Accessor Method
- *os << "virtual " << node->base_proxy_impl_name () << " &"
+ *os << "virtual " << node->base_proxy_impl_name () << " &"
<< "select_proxy ("
<< be_idt << be_idt_nl;
- *os << node->local_name () << " *object" << env_decl << be_uidt_nl
+ *os << node->local_name () << " *object" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_uidt_nl;
*os << "private:" << be_idt_nl
@@ -70,7 +71,7 @@ be_visitor_interface_remote_proxy_broker_ch::visit_interface (
// Factory Member Function declaration.
*os << "// This member function is used to get an handle to the "
<< "unique instance" << be_nl
- << "// of the Remote Proxy Broker that is available for a given"
+ << "// of the Remote Proxy Broker that is available for a given"
<< be_nl
<< "// interface." << be_nl
<< "static " << node->remote_proxy_broker_name ()
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_cs.cpp
index 30d5a00dd13..4399b3509d1 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/remote_proxy_broker_cs.cpp
@@ -2,8 +2,8 @@
// $Id$
//
-ACE_RCSID (be_visitor_interface,
- remote_proxy_broker_cs,
+ACE_RCSID (be_visitor_interface,
+ remote_proxy_broker_cs,
"$Id$")
be_visitor_interface_remote_proxy_broker_cs::
@@ -34,7 +34,7 @@ be_visitor_interface_remote_proxy_broker_cs::visit_interface (
os->indent ();
*os << be_nl
- << "///////////////////////////////////////////////////////////////////////"
+ << "///////////////////////////////////////////////////////////////////////"
<< be_nl
<< "// Remote & Base Proxy Broker Implementation" << be_nl
<< "//" << be_nl << be_nl;
@@ -84,9 +84,9 @@ be_visitor_interface_remote_proxy_broker_cs::visit_interface (
*os << node->full_base_proxy_impl_name () << "&" << be_nl
<<node->full_remote_proxy_broker_name () << "::"
<< "select_proxy (" << be_idt << be_idt_nl
- << "::" << node->full_name () << " *" << env_not << be_uidt_nl
- << ")" << be_uidt_nl
- << "{" << be_idt_nl // idt = 1
+ << "::" << node->full_name () << " *" << be_nl
+ << "ACE_ENV_ARG_DECL_NOT_USED" << be_uidt_nl << ")"
+ << be_uidt_nl << "{" << be_idt_nl // idt = 1
<< "return this->remote_proxy_impl_;"
<< be_uidt_nl << "}";
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
index c55d08b839e..8d4031086ae 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_ch.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_interface,
- smart_proxy_ch,
+ACE_RCSID (be_visitor_interface,
+ smart_proxy_ch,
"$Id$")
@@ -75,7 +75,8 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
<< "virtual "<< node->local_name ()
<< "_ptr create_proxy (" << be_idt << be_idt_nl
<< node->local_name ()
- << "_ptr proxy" << env_dflts << be_uidt_nl
+ << "_ptr proxy" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "};\n\n";
@@ -88,14 +89,16 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
<< "_Proxy_Factory_Adapter, TAO_SYNCH_RECURSIVE_MUTEX>;" << be_nl << be_nl
<< "void register_proxy_factory (" << be_idt << be_idt_nl
<< "TAO_" << node->flat_name () << "_Default_Proxy_Factory *df,"<< be_nl
- << "int one_shot_factory = 1" << env_dflts << be_uidt_nl
+ << "int one_shot_factory = 1" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl
- << "void unregister_proxy_factory (" << be_idt << be_idt
- << env_dflts << be_uidt_nl
+ << "void unregister_proxy_factory (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl
<< node->local_name ()
<< "_ptr create_proxy (" << be_idt << be_idt_nl
- << node->local_name () << "_ptr proxy" << env_dflts << be_uidt_nl
+ << node->local_name () << "_ptr proxy" << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl << be_nl
<< "protected:" << be_idt_nl
<< "TAO_" << node->flat_name ()
@@ -157,11 +160,11 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
*os << "{" << be_nl
<< "public:" << be_idt_nl
- << "TAO_"<< node->flat_name () << "_Smart_Proxy_Base (void);"
+ << "TAO_"<< node->flat_name () << "_Smart_Proxy_Base (void);"
<< be_nl
// Just to keep Old g++ complier (version: 2.7.2.3) happy it's
// necesssary to declare and define the destructor explicitly.
- << "~TAO_"<< node->flat_name () << "_Smart_Proxy_Base (void);"
+ << "~TAO_"<< node->flat_name () << "_Smart_Proxy_Base (void);"
<< be_nl
// This method will delegate this method to the <base_proxy_>
// member of the smart proxy and so the smart proxy's (nil)
@@ -182,7 +185,7 @@ int be_visitor_interface_smart_proxy_ch::visit_interface (be_interface *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_interface_ch::"
"visit_interface - "
- "codegen for scope failed\n"),
+ "codegen for scope failed\n"),
-1);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp
index 4c4c41b8013..f2b65b7f3d3 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/smart_proxy_cs.cpp
@@ -97,7 +97,8 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node)
*os << "TAO_" << node->flat_name ()
<< "_Default_Proxy_Factory::create_proxy (" << be_idt << be_idt_nl
<< "::" << node->full_name ()
- << "_ptr proxy" << env_not << be_uidt_nl
+ << "_ptr proxy" << be_nl
+ << "ACE_ENV_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_uidt << be_uidt_nl
<< "{" << be_idt_nl
<< "return proxy;" << be_uidt_nl
@@ -157,7 +158,8 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node)
<< "_Proxy_Factory_Adapter::register_proxy_factory (" << be_idt << be_idt_nl
<< "TAO_" << node->flat_name ()
<< "_Default_Proxy_Factory *df," << be_nl
- << "int one_shot_factory" << env_decl << be_uidt_nl
+ << "int one_shot_factory" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt << be_uidt_nl
<< "{" << be_idt_nl
<< "ACE_MT (" << be_idt << be_idt_nl
@@ -167,13 +169,9 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node)
<< "this->lock_" << be_uidt_nl
<< ")" << be_uidt << be_uidt_nl
<< ");" <<be_uidt_nl << be_nl
- << "// Remove any existing <proxy_factory_> and "
- << "replace with the new one." << be_nl
- << "this->unregister_proxy_factory ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_nl
+ << "// Remove any existing <proxy_factory_> and replace with the new one." << be_nl
+ << "this->unregister_proxy_factory (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_nl
+ << "ACE_CHECK;" << be_nl
<< "this->proxy_factory_ = df;" << be_nl
<< "this->one_shot_factory_ = one_shot_factory;" << be_uidt_nl
<< "}\n\n";
@@ -188,8 +186,8 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node)
*os << "TAO_"<< node->flat_name ()
<< "_Proxy_Factory_Adapter::unregister_proxy_factory ("
- << be_idt << be_idt
- << env_sngl_not << be_uidt_nl
+ << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
<< "ACE_MT (" << be_idt << be_idt_nl
@@ -224,7 +222,8 @@ int be_visitor_interface_smart_proxy_cs::visit_interface (be_interface *node)
*os << "TAO_"<< node->flat_name ()
<< "_Proxy_Factory_Adapter::create_proxy (" << be_idt << be_idt_nl
<< "::" << node->full_name ()
- << "_ptr proxy" << env_not << be_uidt_nl
+ << "_ptr proxy" << be_nl
+ << "ACE_ENV_ARG_DECL_NOT_USED" << be_uidt_nl
<< ")" << be_uidt << be_uidt_nl
<< "{" << be_idt_nl
<< "ACE_MT (ACE_GUARD_RETURN ("
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_sh.cpp
index baf3709e1b7..8a446d8eda1 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_sh.cpp
@@ -53,7 +53,8 @@ be_visitor_interface_strategized_proxy_broker_sh::visit_interface (
*os << be_nl << be_nl
<< "TAO::Collocation_Strategy" << be_nl
<< "get_strategy (" << be_idt << be_idt_nl
- << "::CORBA::Object_ptr obj" << env_decl << be_uidt_nl
+ << "::CORBA::Object_ptr obj" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException));" << be_uidt;
@@ -66,12 +67,13 @@ be_visitor_interface_strategized_proxy_broker_sh::visit_interface (
<< "int num_args," << be_nl
<< "const char * op," << be_nl
<< "size_t op_len," << be_nl
- << "TAO::Collocation_Strategy strategy" << env_decl << be_uidt_nl
+ << "TAO::Collocation_Strategy strategy" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC (( ::CORBA::Exception));";
*os << be_uidt_nl << be_nl
- << "static " << node->strategized_proxy_broker_name ()
+ << "static " << node->strategized_proxy_broker_name ()
<< " *" << be_nl
<< "the" << node->strategized_proxy_broker_name ()
<< " (void);" << be_uidt_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_ss.cpp
index 80ce04b3f3f..4a2479fa48d 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/strategized_proxy_broker_ss.cpp
@@ -65,18 +65,17 @@ be_visitor_interface_strategized_proxy_broker_ss::visit_interface (
// get_strategy() impementation.
*os << "TAO::Collocation_Strategy" << be_nl
- << node->full_strategized_proxy_broker_name () << "::"
+ <<node->full_strategized_proxy_broker_name () << "::"
<< "get_strategy (" << be_idt << be_idt_nl
- << "::CORBA::Object_ptr obj" << env_decl << be_uidt_nl
+ << "::CORBA::Object_ptr obj" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException))" << be_uidt_nl
<< "{" << be_idt_nl
<< "TAO::Collocation_Strategy strategy =" << be_idt_nl
- << "TAO_ORB_Core::collocation_strategy (obj"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");" << be_uidt
- << TAO_ACE_CHECK ("TAO::TAO_CS_REMOTE_STRATEGY")
- << be_nl << be_nl
+ << "TAO_ORB_Core::collocation_strategy (obj ACE_ENV_ARG_PARAMETER);"
+ << be_uidt_nl
+ << "ACE_CHECK_RETURN (TAO::TAO_CS_REMOTE_STRATEGY);" << be_nl << be_nl
<< "return strategy;" << be_uidt_nl
<< "}" << be_nl << be_nl;
@@ -90,20 +89,21 @@ be_visitor_interface_strategized_proxy_broker_ss::visit_interface (
<< "int num_args," << be_nl
<< "const char * op," << be_nl
<< "size_t op_len," << be_nl
- << "TAO::Collocation_Strategy strategy" << env_decl << be_uidt_nl
+ << "TAO::Collocation_Strategy strategy" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC (( ::CORBA::Exception))" << be_uidt_nl
<< "{" << be_idt_nl
<< "TAO::Direct_Collocation_Upcall_Wrapper collocation_upcall_wrapper;" << be_nl
<< "collocation_upcall_wrapper.upcall (" << be_idt_nl
- << "obj," << be_nl
- << "forward_obj," << be_nl
- << "args," << be_nl
- << "num_args," << be_nl
- << "op," << be_nl
- << "op_len," << be_nl
- << "strategy" << env_arg
- << ");" << be_uidt << be_uidt_nl
+ << "obj, " << be_nl
+ << "forward_obj, " << be_nl
+ << "args, " << be_nl
+ << "num_args, " << be_nl
+ << "op, " << be_nl
+ << "op_len, " << be_nl
+ << "strategy " << be_nl
+ << "ACE_ENV_ARG_PARAMETER);" << be_uidt << be_uidt_nl
<< "}";
*os << be_nl << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp b/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp
index d6ce5c3e516..aecd1107492 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/tie_sh.cpp
@@ -19,8 +19,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_interface,
- tie_sh,
+ACE_RCSID (be_visitor_interface,
+ tie_sh,
"$Id$")
// ************************************************************
@@ -117,11 +117,11 @@ be_visitor_interface_tie_sh::visit_interface (be_interface *node)
<< "void _is_owner ( ::CORBA::Boolean b);" << be_nl
<< "// set the ownership" << be_nl << be_nl
<< "// overridden ServantBase operations" << be_nl
- << "PortableServer::POA_ptr _default_POA (" << be_idt << be_idt
- << env_sngl_dflts << be_uidt_nl
+ << "PortableServer::POA_ptr _default_POA (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
- int status =
+ int status =
node->traverse_inheritance_graph (
be_visitor_interface_tie_sh::method_helper,
os
@@ -161,7 +161,7 @@ be_visitor_interface_tie_sh::method_helper (be_interface *,
TAO_OutStream *os)
{
// Any methods from abstract parents have already been
- // "added" to the derived interface scope by the overridden
+ // "added" to the derived interface scope by the overridden
// visit_scope() method in be_visitor_interface, so we can skip
// this base interface, if it is abstract.
if (node->is_abstract ())
@@ -178,7 +178,7 @@ be_visitor_interface_tie_sh::method_helper (be_interface *,
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_tie_sh::"
- "method_helper\n"),
+ "method_helper\n"),
-1);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp b/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp
index 0bbf5bb2d1e..46e93a19938 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/tie_si.cpp
@@ -19,8 +19,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_interface,
- tie_si,
+ACE_RCSID (be_visitor_interface,
+ tie_si,
"$Id$")
@@ -42,8 +42,8 @@ be_visitor_interface_tie_si::~be_visitor_interface_tie_si (void)
int
be_visitor_interface_tie_si::visit_interface (be_interface *node)
{
- if (node->srv_inline_gen ()
- || node->imported ()
+ if (node->srv_inline_gen ()
+ || node->imported ()
|| node->is_abstract ())
{
return 0;
@@ -53,13 +53,13 @@ be_visitor_interface_tie_si::visit_interface (be_interface *node)
static char localtiename [NAMEBUFSIZE];
static char localskelname [NAMEBUFSIZE];
- ACE_OS::memset (fulltiename,
- '\0',
+ ACE_OS::memset (fulltiename,
+ '\0',
NAMEBUFSIZE);
- ACE_OS::memset (localtiename,
- '\0',
+ ACE_OS::memset (localtiename,
+ '\0',
NAMEBUFSIZE);
- ACE_OS::memset (localskelname,
+ ACE_OS::memset (localskelname,
'\0',
NAMEBUFSIZE);
@@ -67,25 +67,25 @@ be_visitor_interface_tie_si::visit_interface (be_interface *node)
// class name.
// We are outermost.
- ACE_OS::sprintf (fulltiename,
- "%s_tie",
+ ACE_OS::sprintf (fulltiename,
+ "%s_tie",
node->full_skel_name ());
if (!node->is_nested ())
{
- ACE_OS::sprintf (localskelname,
+ ACE_OS::sprintf (localskelname,
"POA_%s",
node->local_name ());
- ACE_OS::sprintf (localtiename,
+ ACE_OS::sprintf (localtiename,
"POA_%s_tie",
node->local_name ());
}
else
{
- ACE_OS::sprintf (localskelname,
+ ACE_OS::sprintf (localskelname,
"%s",
node->local_name ());
- ACE_OS::sprintf (localtiename,
+ ACE_OS::sprintf (localtiename,
"%s_tie",
node->local_name ());
}
@@ -180,24 +180,19 @@ be_visitor_interface_tie_si::visit_interface (be_interface *node)
*os << "template <class T> ACE_INLINE "
<< "PortableServer::POA_ptr" << be_nl
<< fulltiename
- << "<T>::_default_POA ("
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_SINGLE_ARG_DECL")
- << ")" << be_nl
+ << "<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL)" << be_nl
<< "{" << be_idt_nl
<< "if (! CORBA::is_nil (this->poa_.in ()))" << be_idt_nl
<< "{" << be_idt_nl
- << "return PortableServer::POA::_duplicate (this->poa_.in ());"
- << be_uidt_nl
+ << "return PortableServer::POA::_duplicate (this->poa_.in ());" << be_uidt_nl
<< "}" << be_uidt_nl << be_nl
<< "return this->" << localskelname
- << "::_default_POA ("
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << be_uidt_nl
+ << "::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_uidt_nl
<< "}";
int status =
node->traverse_inheritance_graph (
- be_visitor_interface_tie_si::method_helper,
+ be_visitor_interface_tie_si::method_helper,
os
);
@@ -225,7 +220,7 @@ be_visitor_interface_tie_si::method_helper (be_interface *derived,
TAO_OutStream *os)
{
// Any methods from abstract parents have already been
- // "added" to the derived interface scope by the overridden
+ // "added" to the derived interface scope by the overridden
// visit_scope() method in be_visitor_interface, so we can skip
// this base interface, if it is abstract.
if (node->is_abstract ())
@@ -244,7 +239,7 @@ be_visitor_interface_tie_si::method_helper (be_interface *derived,
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_tie_si::"
- "method_helper\n"),
+ "method_helper\n"),
-1);
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
index 75cf81f5be5..471b498584b 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/any_op_ch.cpp
@@ -101,8 +101,6 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd (be_interface_fwd *node)
*os << "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void"
<< " operator<<= (::CORBA::Any &, " << node->name ()
<< "_ptr); // copying" << be_nl;
@@ -113,8 +111,6 @@ be_visitor_interface_fwd_any_op_ch::visit_interface_fwd (be_interface_fwd *node)
<< " operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp
index 325ba44622c..cbf5ebac938 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/cdr_op_ch.cpp
@@ -65,8 +65,6 @@ be_visitor_interface_fwd_cdr_op_ch::visit_interface_fwd (be_interface_fwd *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_global->stub_export_macro () << " ::CORBA::Boolean "
<< "operator<< (TAO_OutputCDR &, const " << node->full_name ()
<< "_ptr );" << be_nl;
@@ -74,8 +72,6 @@ be_visitor_interface_fwd_cdr_op_ch::visit_interface_fwd (be_interface_fwd *node)
<< "operator>> (TAO_InputCDR &, "
<< node->full_name () << "_ptr &);\n";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp
index 5985b56e260..8be0d364095 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface_fwd/interface_fwd_ch.cpp
@@ -56,6 +56,6 @@ be_visitor_interface_fwd_ch::visit_interface_fwd (be_interface_fwd *node)
// Copy the fwd helper name back to the forward declared interface node.
node->fwd_helper_name (bfd->fwd_helper_name ());
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
index 63ebeb95fa8..1a858a5f1b6 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_rh_ss.cpp
@@ -66,7 +66,7 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
buf = 0;
// Step 1 : Generate return type: always void
- *os << be_nl << be_nl << "// TAO_IDL - Generated from " << be_nl
+ *os << be_nl << be_nl << "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
*os << "void" << be_nl
@@ -158,44 +158,34 @@ be_visitor_amh_rh_operation_ss::visit_operation (be_operation *node)
operation_name[idx] = '\0';
*os << be_nl << "{" << be_idt_nl
- << (be_global->use_raw_throw () ? "try" : "ACE_TRY") << be_nl
+ << "ACE_TRY" << be_nl
<< "{" << be_idt_nl
<< "holder->raise_" << operation_name.c_str ()
- << " ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << ace_try_check << be_uidt_nl
+ << " (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_nl
+ << "ACE_TRY_CHECK;" << be_uidt_nl
<< "}" << be_nl
- << (be_global->use_raw_throw ()
- ? "catch ( ::CORBA::Exception& ex)"
- : "ACE_CATCH ( ::CORBA::Exception, ex)")
+ << "ACE_CATCH ( ::CORBA::Exception, ex)" << be_nl
+ << "{" << be_nl
+ << " this->_tao_rh_send_exception (ex ACE_ENV_ARG_PARAMETER);"
<< be_nl
- << "{" << be_idt_nl
- << "this->_tao_rh_send_exception (ex"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_uidt_nl
- << "}" << ace_endtry << be_uidt_nl
+ << " ACE_CHECK;" << be_nl
+ << "}" << be_nl
+ << "ACE_ENDTRY;" << be_uidt_nl
<< "}";
}
else
{
// Step 3: Generate actual code for the method
*os << be_nl << "{" << be_idt_nl
- << "this->_tao_rh_init_reply ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_nl << be_nl;
+ << "this->_tao_rh_init_reply (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_nl
+ << "ACE_CHECK;" << be_nl << be_nl;
this->marshal_params (node);
*os << be_nl
- << "this->_tao_rh_send_reply ("
- << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_PARAMETER")
- << ");" << be_uidt_nl
+ << "this->_tao_rh_send_reply (ACE_ENV_SINGLE_ARG_PARAMETER);"
+ << be_uidt_nl
<< "}";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp
index c1071830315..6a01601d05e 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_sh.cpp
@@ -19,8 +19,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_operation,
- amh_sh,
+ACE_RCSID (be_visitor_operation,
+ amh_sh,
"$Id$")
// ******************************************************
@@ -83,8 +83,9 @@ be_visitor_amh_operation_sh::visit_operation (be_operation *node)
}
}
- *os << env_decl << be_uidt_nl
- << ")" << be_uidt_nl;
+ *os << be_nl
+ << "ACE_ENV_ARG_DECL"
+ << be_uidt_nl << ")" << be_uidt_nl;
if (be_global->use_raw_throw ())
{
@@ -107,7 +108,7 @@ be_visitor_amh_operation_sh::visit_operation (be_operation *node)
}
*os << " = 0;";
-
+
return 0;
}
@@ -119,10 +120,11 @@ be_visitor_amh_operation_sh::visit_attribute (be_attribute *node)
if (!be_global->exception_support ())
{
- *os << env_decl;
+ *os << be_nl
+ << "ACE_ENV_ARG_DECL";
}
- *os << be_uidt_nl
+ *os << be_uidt_nl
<< ")" << be_uidt_nl
<< "ACE_THROW_SPEC (( ::CORBA::SystemException)) = 0;" << be_nl;
@@ -148,7 +150,7 @@ be_visitor_amh_operation_sh::visit_attribute (be_attribute *node)
if (!be_global->exception_support ())
{
- *os << env_decl;
+ *os << be_nl << "ACE_ENV_ARG_DECL";
}
*os << be_uidt_nl << ")" << be_uidt_nl
@@ -172,7 +174,8 @@ be_visitor_amh_operation_sh::generate_shared_prologue (
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest &_tao_req," << be_nl
<< "void *_tao_obj," << be_nl
- << "void *_tao_servant_upcall" << env_decl << be_uidt_nl
+ << "void *_tao_servant_upcall" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl << be_nl;
// We need the interface node in which this operation was defined. However,
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp
index bdb5192bb28..373bc2f88a2 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/amh_ss.cpp
@@ -174,7 +174,7 @@ be_visitor_amh_operation_ss::visit_operation (be_operation *node)
}
}
- *os << env_arg;
+ *os << be_nl << "ACE_ENV_ARG_PARAMETER";
}
if (this->generate_shared_epilogue (os) == -1)
@@ -202,7 +202,8 @@ be_visitor_amh_operation_ss::visit_attribute (be_attribute *node)
return -1;
}
- *os << env_arg;
+ *os << be_nl
+ << "ACE_ENV_ARG_PARAMETER";
if (this->generate_shared_epilogue (os) == -1)
{
@@ -281,7 +282,7 @@ be_visitor_amh_operation_ss::visit_attribute (be_attribute *node)
}
}
- *os << env_arg;
+ *os << be_nl << "ACE_ENV_ARG_PARAMETER";
if (this->generate_shared_epilogue (os) == -1)
{
@@ -331,7 +332,8 @@ be_visitor_amh_operation_ss::generate_shared_prologue (be_decl *node,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & _tao_server_request," << be_nl
<< "void * /* context */," << be_nl
- << "void * _tao_servant" << env_decl << be_uidt_nl
+ << "void * _tao_servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
// Generate the actual code for the skeleton.
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
index b2a7ba8f0f6..3b315ed6045 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
@@ -176,7 +176,7 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
<< "TAO::Arg_Traits<void>::ret_val _tao_retval;";
// Declare the argument helper classes.
- this->gen_stub_body_arglist (ami_op, os, true);
+ this->gen_stub_body_arglist (ami_op, os, I_TRUE);
// Assemble the arg helper class pointer array.
*os << be_nl << be_nl
@@ -255,9 +255,10 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
*os << "AMI_" << parent->local_name () << "Handler::"
<< opname.fast_rep () + (this->ctx_->attribute () != 0)
- << "_reply_stub" << env_arg << be_uidt_nl
- << ");" << be_uidt
- << TAO_ACE_CHECK ();
+ << "_reply_stub" << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
+ << ");" << be_uidt_nl
+ << "ACE_CHECK;";
*os << be_uidt_nl
<< "}";
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp
index dc3271b3a40..6a9cf40648b 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_cs.cpp
@@ -44,7 +44,6 @@ be_visitor_operation_ami_exception_holder_operation_cs::visit_operation (
be_operation *node
)
{
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
TAO_OutStream *os = this->ctx_->stream ();
this->ctx_->node (node);
@@ -205,12 +204,9 @@ be_visitor_operation_ami_exception_holder_operation_cs::visit_operation (
<< "this->marshaled_exception ().get_buffer ()," << be_nl
<< "this->marshaled_exception ().length ()," << be_nl
<< "this->byte_order ()," << be_nl
- << "this->is_system_exception ()" << env_arg
- << ");" << be_uidt << be_uidt_nl;
+ << "this->is_system_exception ()" << be_nl
+ << "ACE_ENV_ARG_PARAMETER);" << be_uidt << be_uidt_nl;
*os << "}\n\n";
-#else
- ACE_UNUSED_ARG (node);
-#endif
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp
index 75921685b61..0b6e0b99818 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_ch.cpp
@@ -20,8 +20,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_operation,
- ami_handler_reply_stub_operation_ch,
+ACE_RCSID (be_visitor_operation,
+ ami_handler_reply_stub_operation_ch,
"$Id$")
// ************************************************************
@@ -52,7 +52,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_ch::visit_operation (
if (!node->has_native ())
{
// Next line.
- *os << be_nl << be_nl
+ *os << be_nl << be_nl
<< "static void ";
// Check if we are an attribute node in disguise
@@ -73,10 +73,11 @@ be_visitor_operation_ami_handler_reply_stub_operation_ch::visit_operation (
<< "_reply_stub (" << be_idt << be_idt_nl;
*os << "TAO_InputCDR &_tao_reply_cdr," << be_nl
- << "::Messaging::ReplyHandler_ptr _tao_reply_handler," << be_nl
+ << "Messaging::ReplyHandler_ptr _tao_reply_handler," << be_nl
<< "::CORBA::ULong reply_status";
- *os << env_dflts << be_uidt_nl
+ *os << be_nl
+ << "ACE_ENV_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp
index e8a7aefc44e..be325370a40 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp
@@ -56,8 +56,6 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::post_process (
return 0;
}
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-
int
be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
be_operation *node
@@ -130,14 +128,18 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
// Generate the argument list.
*os << "TAO_InputCDR &_tao_in, " << be_nl
- << "::Messaging::ReplyHandler_ptr _tao_reply_handler," << be_nl
+ << "Messaging::ReplyHandler_ptr _tao_reply_handler," << be_nl
<< "::CORBA::ULong reply_status";
- << env_decl << ")" << be_uidt << be_uidt_nl;
+
+ *os << be_nl
+ << "ACE_ENV_ARG_DECL";
+
+ *os << ")" << be_uidt << be_uidt_nl;
// Generate the actual code for the stub. However, if any of the argument
// types is "native", we flag a MARSHAL exception.
// last argument - is always ACE_ENV_ARG_PARAMETER
- *os << "{" << be_idt_nl;
+ *os << "{\n" << be_idt;
// Generate any pre stub info if and only if none of our parameters is of the
// native type.
@@ -165,10 +167,9 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
<< "_tao_reply_handler_object =" << be_idt_nl;
*os << parent->full_name ();
- *os << "::_narrow (_tao_reply_handler"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");" << be_uidt
- << TAO_ACE_CHECK () << be_nl << be_nl
+ *os << "::_narrow (_tao_reply_handler ACE_ENV_ARG_PARAMETER);" << be_uidt_nl;
+
+ *os << "ACE_CHECK;" << be_nl << be_nl
<< "// Exception handling" << be_nl
<< "switch (reply_status)" << be_nl
<< "{" << be_idt_nl
@@ -288,254 +289,6 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
return 0;
}
-#else
-
-int
-be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
- be_operation *node
- )
-{
- be_type *bt;
- be_visitor_context ctx;
-
- TAO_OutStream *os = this->ctx_->stream ();
- this->ctx_->node (node);
-
- // Initialize the return type variable.
- bt = be_type::narrow_from_decl (node->return_type ());
-
- if (!bt)
- {
- ACE_ERROR_RETURN ((
- LM_ERROR,
- "(%N:%l) be_visitor_ami_handler_reply_stub_operation_cs::"
- "visit_operation - "
- "Bad return type\n"
- ),
- -1
- );
- }
-
- // Start with the current indentation level.
- os->indent ();
-
- // Generate the return type. Return type is simply void.
- *os << be_nl << "void" << be_nl;
-
- // Get the scope name.
- be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
-
- if (!parent)
- {
- ACE_ERROR_RETURN ((
- LM_ERROR,
- "(%N:%l) be_visitor_operation_ami_handler_reply_stub_operation_cs::"
- "visit_operation - "
- "node information not sufficient :-<\n"
- ),
- -1
- );
- }
-
- // Genereate scope name.
- *os << parent->full_name ();
-
- // Generate the operation name.
- *os << "::";
-
- // Check if we are an attribute node in disguise
- if (this->ctx_->attribute ())
- {
- // Now check if we are a "get" or "set" operation
- if (node->nmembers () == 1)
- {
- *os << "_set_";
- }
- else
- {
- *os << "_get_";
- }
- }
-
- *os << node->local_name () << "_reply_stub (" << be_idt_nl;
-
- // Generate the argument list.
- *os << "TAO_InputCDR &_tao_in, " << be_nl
- << "::Messaging::ReplyHandler_ptr _tao_reply_handler," << be_nl
- << "::CORBA::ULong reply_status"
- << env_decl << ")" << be_uidt << be_uidt_nl
- << "{" << be_idt_nl;
-
- *os << "// Retrieve Reply Handler object." << be_nl;
- *os << parent->full_name () << "_var "
- << "_tao_reply_handler_object =" << be_idt_nl;
-
- *os << parent->full_name ();
- *os << "::_narrow (_tao_reply_handler"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");" << be_uidt
- << TAO_ACE_CHECK () << be_nl << be_nl
- << "// Exception handling" << be_nl
- << "switch (reply_status)" << be_nl
- << "{" << be_idt_nl
- << "case TAO_AMI_REPLY_OK:" << be_nl
- << "{" << be_idt << "\n";
-
- // declare variables for arguments
- ctx = *this->ctx_;
- ctx.state (TAO_CodeGen::TAO_OPERATION_ARG_DECL_SS);
- be_visitor_operation_argument oad_visitor (&ctx);
-
- if (node->accept (&oad_visitor) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) ami_handler_reply_stub_operation_cs::"
- "visit_operation - "
- "codegen for return var decl failed\n"),
- -1);
- }
-
- // Demarshal parameters
- if (this->gen_marshal_and_invoke (node, bt) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%1) ami_handler_reply_stub_operation_cs::"
- "visit_operation - "
- "gen_demarshal_params failed\n"),
- -1);
- }
-
- *os << "break;" << be_uidt_nl
- << "}" << be_nl
- << "case TAO_AMI_REPLY_USER_EXCEPTION:" << be_nl
- << "case TAO_AMI_REPLY_SYSTEM_EXCEPTION:" << be_nl
- << "{" << be_idt_nl
- << "const ACE_Message_Block* cdr = _tao_in.start ();" << be_nl ;
-
- be_interface *original =
- (be_interface::narrow_from_decl (parent))->original_interface ();
-
- if (!original)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%1) ami_handler_reply_stub_operation_cs::"
- "visit_operation - "
- "original interface is not set\n"),
- -1);
- }
-
- const char *exception_data_arg = "0";
- const char *exception_count_arg = "0";
-
- // Don't do anything if the exception list is empty.
- if (node->exceptions ())
- {
- *os << be_nl << "static TAO::Exception_Data " << "exceptions_data [] = " << be_nl;
- *os << "{" << be_idt_nl;
-
- int excep_count = 0;
-
- be_exception *ex = 0;
-
- // Initialize an iterator to iterate thru the exception list.
- // Continue until each element is visited.
- // Iterator must be explicitly advanced inside the loop.
- for (UTL_ExceptlistActiveIterator ei (node->exceptions ());
- !ei.is_done ();)
- {
- ex = be_exception::narrow_from_decl (ei.item ());
-
- *os << "{" << be_idt_nl
- << "\"" << ex->repoID () << "\"," << be_nl;
- // Allocator method.
- *os << ex->name () << "::_alloc"
- << "\n#if TAO_HAS_INTERCEPTORS == 1" << be_nl;
-
- if (be_global->tc_support ())
- {
- *os << ", " << ex->tc_name ();
- }
- else
- {
- *os << ", 0";
- }
-
- *os << "\n#endif /* TAO_HAS_INTERCEPTORS */" << be_uidt_nl
- << "}";
-
- ++excep_count;
- ei.next ();
-
- if (!ei.is_done ())
- {
- *os << "," << be_nl;
- }
-
- }
-
- *os << be_uidt_nl << "};" << be_nl << be_nl;
-
- *os << "::CORBA::ULong exceptions_count = "
- << excep_count << ";\n" << be_nl;
-
- exception_data_arg = "exceptions_data";
- exception_count_arg = "exceptions_count";
- }
-
- *os << "::CORBA::OctetSeq "
- << "_tao_marshaled_exception (" << be_idt << be_idt_nl
- << "static_cast <CORBA::ULong> (cdr->length ())," << be_nl
- << "static_cast <CORBA::ULong> (cdr->length ())," << be_nl
- << "reinterpret_cast <unsigned char*> (cdr->rd_ptr ())," << be_nl
- << "0" << be_uidt_nl
- << ");" << be_uidt_nl;
-
- *os << "::Messaging::ExceptionHolder* exception_holder_ptr = 0;" << be_nl
- << "ACE_NEW (" << be_idt << be_idt_nl
- << "exception_holder_ptr," << be_nl
- << "::TAO::ExceptionHolder (" << be_idt_nl
- << "(reply_status == TAO_AMI_REPLY_SYSTEM_EXCEPTION)," << be_nl
- << "_tao_in.byte_order ()," << be_nl
- << "_tao_marshaled_exception," << be_nl
- << exception_data_arg << "," << be_nl
- << exception_count_arg << ")" << be_uidt_nl
- << ");" << be_uidt_nl << be_uidt_nl;
-
- *os << "::Messaging::ExceptionHolder_var exception_holder_var = "
- << "exception_holder_ptr;" << be_nl;
-
- *os << "_tao_reply_handler_object->"
- << node->local_name () << "_excep (" << be_idt << be_idt_nl
- << "exception_holder_var";
-
- if (!be_global->exception_support ())
- {
- *os << " ACE_ENV_ARG_PARAMETER";
- }
-
- *os << be_uidt_nl << ");" << be_uidt_nl;
-
- if (!be_global->exception_support ())
- {
- *os << "ACE_CHECK;" << be_nl;
- }
-
- *os << "break;" << be_uidt_nl
- << "}" << be_nl;
-
- *os << "case TAO_AMI_REPLY_NOT_OK:" << be_idt_nl
- << "// @@ Michael: Not even the spec mentions this case." << be_nl
- << "// We have to think about this case." << be_nl
- << "break;" << be_uidt << be_uidt_nl
- << "}" << be_uidt << be_uidt_nl;
- *os << "}" << be_nl << be_nl;
-
- return 0;
-}
-
-#endif
-
// This method is used to generate the ParamData table entry.
int
be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_argument (
@@ -690,8 +443,8 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::gen_marshal_and_invoke
-1);
}
- *os << be_uidt_nl << ");" << be_uidt
- << TAO_ACE_CHECK () << be_nl;
+ *os << be_uidt_nl << ");" << be_uidt_nl;
+ *os << "ACE_CHECK;" << be_nl;
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
index fcd2fa84244..527d3d27916 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_operation,
- argument,
+ACE_RCSID (be_visitor_operation,
+ argument,
"$Id$")
// ************************************************************
@@ -100,11 +100,11 @@ be_visitor_operation_argument::visit_operation (be_operation *node)
// whether the operation node has parameters.
if (node->argument_count () > 0)
{
- *os << env_arg;
+ *os << be_nl << "ACE_ENV_ARG_PARAMETER";
}
else
{
- *os << env_sngl_arg;
+ *os << be_nl << "ACE_ENV_SINGLE_ARG_PARAMETER";
}
break;
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp
index 76b2b20752a..35266a34b06 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/direct_proxy_impl_ss.cpp
@@ -68,7 +68,8 @@ be_visitor_operation_direct_proxy_impl_ss::visit_operation (
}
*os << "," << be_nl
- << "int" << env_decl << be_uidt_nl
+ << "int " << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")";
if (this->gen_throw_spec (node) != 0)
@@ -145,7 +146,8 @@ be_visitor_operation_direct_proxy_impl_ss::gen_invoke (
if (si.is_done ())
{
- *os << env_sngl_arg << be_uidt_nl
+ *os << be_nl
+ << "ACE_ENV_SINGLE_ARG_PARAMETER" << be_uidt_nl
<< ");";
return 0;
@@ -185,7 +187,8 @@ be_visitor_operation_direct_proxy_impl_ss::gen_invoke (
}
// End the upcall
- *os << env_arg << be_uidt_nl
+ *os << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");";
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp
index 1dcdda82daa..d8d4d18784d 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/exceptlist_ss.cpp
@@ -41,7 +41,8 @@ be_visitor_operation_exceptlist_ss::visit_operation (be_operation * node)
{
TAO_OutStream * const os = this->ctx_->stream ();
- *os << "\n#if TAO_HAS_INTERCEPTORS == 1" << be_nl;
+ *os << be_nl
+ << "\n#if TAO_HAS_INTERCEPTORS == 1" << be_nl;
// When there are exceptions and typecode support is enabled, then generate
// the typecodes of the user exceptions this operation can throw.
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
index 068ec07b360..a76bcfc4f49 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
@@ -315,6 +315,64 @@ be_visitor_operation::gen_raise_exception (be_type *return_type,
}
int
+be_visitor_operation::gen_check_exception (be_type *return_type)
+{
+ TAO_OutStream *os = this->ctx_->stream ();
+
+ if (return_type == 0 || this->void_return_type (return_type))
+ {
+ *os << "ACE_CHECK;" << be_nl;
+ return 0;
+ }
+
+ // Non-void return type....
+ *os << "ACE_CHECK_RETURN (";
+ be_visitor_context ctx (*this->ctx_);
+ be_visitor_operation_rettype_return_cs visitor (&ctx);
+
+ if (return_type->accept (&visitor) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_operation::"
+ "gen_check_exception - "
+ "codegen for return var failed\n"),
+ -1);
+ }
+
+ *os << ");" << be_nl;
+ return 0;
+}
+
+int
+be_visitor_operation::gen_check_interceptor_exception (be_type *return_type)
+{
+ TAO_OutStream *os = this->ctx_->stream ();
+
+ if (return_type == 0 || this->void_return_type (return_type))
+ {
+ *os << "TAO_INTERCEPTOR_CHECK;\n";
+ return 0;
+ }
+
+ // Non-void return type.
+ *os << "TAO_INTERCEPTOR_CHECK_RETURN (";
+ be_visitor_context ctx (*this->ctx_);
+ be_visitor_operation_rettype_return_cs visitor (&ctx);
+
+ if (return_type->accept (&visitor) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_operation::"
+ "gen_check_exception - "
+ "codegen for return var failed\n"),
+ -1);
+ }
+
+ *os << ");\n";
+ return 0;
+}
+
+int
be_visitor_operation::gen_stub_operation_body (
be_operation *node,
be_type *return_type
@@ -470,23 +528,24 @@ be_visitor_operation::gen_stub_operation_body (
*os << "_tao_call.invoke (" << be_idt << be_idt_nl
<< "_tao_" << node->flat_name ()
<< "_exceptiondata," << be_nl
- << node->exceptions ()->length () << env_arg << be_uidt_nl
+ << node->exceptions ()->length () << be_nl
+ << "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt;
}
else
{
- *os << "_tao_call.invoke (0, 0"
- << (be_global->use_raw_throw () ? "" : " ACE_ENV_ARG_PARAMETER")
- << ");";
+ *os << "_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);";
}
+ *os << be_nl;
+
if (this->void_return_type (return_type))
{
- *os << TAO_ACE_CHECK ();
+ *os << "ACE_CHECK;";
}
else
{
- *os << TAO_ACE_CHECK ("_tao_retval.excp ()");
+ *os << "ACE_CHECK_RETURN (_tao_retval.excp ());";
}
if (!this->void_return_type (return_type))
@@ -574,7 +633,7 @@ be_visitor_operation::gen_raise_interceptor_exception (
void
be_visitor_operation::gen_stub_body_arglist (be_operation *node,
TAO_OutStream *os,
- bool ami)
+ idl_bool ami)
{
AST_Argument *arg = 0;
UTL_ScopeActiveIterator arg_decl_iter (node, UTL_Scope::IK_decls);
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp
index 7bba7f41d3b..32530788656 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_sh.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_operation,
- operation_sh,
+ACE_RCSID (be_visitor_operation,
+ operation_sh,
"$Id$")
// ************************************************************
@@ -113,7 +113,8 @@ be_visitor_operation_sh::visit_operation (be_operation *node)
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * servant_upcall," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant"<< be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
index 34adf67cb75..df29bd7302a 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
@@ -161,6 +161,8 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
-1);
}
+ *os << be_nl;
+
ACE_CString upcall_command_name =
ACE_CString (node->local_name ()->get_string()) + "_" +
ACE_CString (intf->local_name());
@@ -209,13 +211,14 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
<< "_skel (" << be_idt << be_idt_nl
<< "TAO_ServerRequest & server_request," << be_nl
<< "void * TAO_INTERCEPTOR (servant_upcall)," << be_nl
- << "void * servant" << env_decl << be_uidt_nl
+ << "void * servant" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_uidt_nl;
// Generate the actual code for the skeleton. However, if any of the
// argument types is "native", we do not generate any skeleton
// last argument - is always CORBA::Environment.
- *os << "{" << be_idt;
+ *os << "{" << be_idt_nl;
// Generate all the tables and other pre-skel info.
if (this->gen_pre_skel_info (node) == -1)
@@ -298,9 +301,11 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
<< " , exceptions" << be_nl
<< " , nexceptions"
<< "\n#endif /* TAO_HAS_INTERCEPTORS == 1 */" << be_nl
- << " "
- << (be_global->use_raw_throw () ? "" : "ACE_ENV_ARG_PARAMETER")
- << ");" << TAO_ACE_CHECK () << be_uidt_nl
+ << " ACE_ENV_ARG_PARAMETER);" << be_nl
+ << "ACE_CHECK;" << be_nl;
+
+
+ *os << be_uidt_nl
<< "}";
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp b/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp
index 2990b9fde70..7287ac5668d 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/proxy_impl_xh.cpp
@@ -42,7 +42,8 @@ int be_visitor_operation_proxy_impl_xh::visit_operation (be_operation *node)
*os << node->local_name () << " (" << be_idt << be_idt_nl
<< "TAO_Abstract_ServantBase *servant," << be_nl
<< "TAO::Argument ** args," << be_nl
- << "int num_args" << env_decl << be_uidt_nl
+ << "int num_args" << be_nl
+ << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")";
if (this->gen_throw_spec (node) != 0)
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp b/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp
index ffa3758d8c8..8bfc9f75869 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/tie_si.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_operation,
- tie_si,
+ACE_RCSID (be_visitor_operation,
+ tie_si,
"$Id$")
// ************************************************************
@@ -64,43 +64,10 @@ int be_visitor_operation_tie_si::visit_operation (be_operation *node)
-1);
}
- // Although unlikely it is possible that the 'T' in 'template class<T>' will
- // conflict with an argument name...
- ACE_CString template_name ("T");
- bool template_name_ok = false;
-
- while (!template_name_ok)
- {
- template_name_ok = true;
-
- for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
- ! si.is_done () && template_name_ok;
- si.next ())
- {
- // Check for conflicts between the arg name and the proposed template
- // class identifier
- AST_Argument *arg =
- AST_Argument::narrow_from_decl (si.item ());
-
- if (! ACE_OS::strcmp (arg->local_name ()->get_string (),
- template_name.c_str ()))
- {
- // clash !
- template_name_ok = false;
- }
- }
-
- if (! template_name_ok)
- {
- // We had a clash - postfix an underscore and try again
- template_name += "_";
- }
- }
-
*os << be_nl << be_nl << "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << "template <class " << template_name.c_str () << "> ACE_INLINE\n";
+ *os << "template <class T> ACE_INLINE\n";
// Generate the return type mapping (same as in the header file).
be_visitor_context ctx (*this->ctx_);
@@ -115,7 +82,7 @@ int be_visitor_operation_tie_si::visit_operation (be_operation *node)
-1);
}
- *os << " " << intf->full_skel_name () << "_tie<" << template_name.c_str () << ">::"
+ *os << " " << intf->full_skel_name () << "_tie<T>::"
<< node->local_name () << " ";
// STEP 4: generate the argument list with the appropriate mapping (same as
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp
index b1bbcb64a7e..3f81493bdb5 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/upcall_command_ss.cpp
@@ -173,14 +173,12 @@ be_visitor_operation_upcall_command_ss::visit (be_operation * node,
// initializer for the class argument array member/attribute.
if (!node->void_return_type () || node->argument_count () > 0)
{
- os << be_idt_nl;
+ os << be_nl;
if (be_global->gen_thru_poa_collocation ())
- {
- os << ", operation_details_ (operation_details)" << be_nl;
- }
+ os << ", operation_details_ (operation_details)" << be_nl;
- os << ", args_ (args)" << be_uidt;
+ os << ", args_ (args)";
}
os << be_uidt_nl;
@@ -189,9 +187,7 @@ be_visitor_operation_upcall_command_ss::visit (be_operation * node,
<< "}" << be_nl << be_nl;
// Generate execute() method.
- os << "virtual void execute ("
- << (be_global->use_raw_throw () ? "void" : "ACE_ENV_SINGLE_ARG_DECL")
- << ")" << be_nl
+ os << "virtual void execute (ACE_ENV_SINGLE_ARG_DECL)" << be_nl
<< "{" << be_idt_nl;
if (!node->void_return_type ())
@@ -271,7 +267,7 @@ be_visitor_operation_upcall_command_ss::visit (be_operation * node,
}
os << be_uidt_nl
- << "};";
+ << "};" << be_nl;
if (module != 0)
{
@@ -425,34 +421,24 @@ be_visitor_operation_upcall_command_ss::gen_upcall (be_operation * node)
}
os << "this->servant_->" << node->local_name () << " ("
- << be_idt;
+ << be_idt_nl;
size_t const count = node->argument_count ();
for (unsigned int i = 0; i < count; ++i)
- {
- os << be_nl
- << (i == 0 ? "" : ", ") << "arg_" << i + 1;
- }
+ os << (i == 0 ? "" : ", ") << "arg_" << i + 1 << be_nl;
if (count > 0)
- {
- os << env_arg;
- }
+ os << "ACE_ENV_ARG_PARAMETER);";
else
- {
- os << env_sngl_arg;
- }
-
- os << ");";
+ os << "ACE_ENV_SINGLE_ARG_PARAMETER);";
if (!node->void_return_type ())
{
os << be_uidt;
}
- os << be_uidt
- << TAO_ACE_CHECK () << be_uidt_nl;
+ os << be_uidt_nl << "ACE_CHECK;" << be_uidt_nl;
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root.cpp b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
index 9c3ce0b4462..dffe0c0f3e5 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
@@ -197,8 +197,6 @@ int be_visitor_root::visit_root (be_root *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << "// Overrides of CORBA::release and CORBA::is_nil for"
<< be_nl
<< "// interfaces that inherit from both CORBA::Object" << be_nl
@@ -222,15 +220,13 @@ int be_visitor_root::visit_root (be_root *node)
{
*os << be_uidt_nl
<< "}";
-
- *os << be_global->core_versioning_end () << be_nl;
}
}
// Make one more pass over the entire tree and generate the OBV_ namespaces
// and OBV_ classes.
- bool obv = 1;
+ idl_bool obv = 1;
status = 0;
switch (this->ctx_->state ())
@@ -459,12 +455,6 @@ int be_visitor_root::visit_root (be_root *node)
case TAO_CodeGen::TAO_ROOT_CH:
(void) tao_cg->end_client_header ();
break;
- case TAO_CodeGen::TAO_ROOT_CI:
- tao_cg->end_client_inline ();
- break;
- case TAO_CodeGen::TAO_ROOT_CS:
- tao_cg->end_client_stubs ();
- break;
case TAO_CodeGen::TAO_ROOT_SH:
(void) tao_cg->end_server_header ();
break;
@@ -481,7 +471,6 @@ int be_visitor_root::visit_root (be_root *node)
(void) tao_cg->end_server_template_inline ();
}
- tao_cg->end_server_inline ();
break;
case TAO_CodeGen::TAO_ROOT_SS:
if (be_global->gen_tie_classes ())
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp
index 26ab72be1cc..095d73b3fc8 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ch.cpp
@@ -61,8 +61,6 @@ be_visitor_root_ch::init (void)
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< "namespace TAO" << be_nl
<< "{" << be_idt_nl;
@@ -74,10 +72,7 @@ be_visitor_root_ch::init (void)
*os << "template<typename T> class AbstractBase_Narrow_Utils;" << be_nl;
}
- *os << "template<typename T> class Narrow_Utils;" << be_uidt_nl
- << "}" ;
-
- *os << be_global->core_versioning_end () << be_nl;
+ *os << "template<typename T> class Narrow_Utils;" << be_uidt_nl << "}" ;
}
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_scope.cpp b/TAO/TAO_IDL/be/be_visitor_scope.cpp
index 52504b81847..b00aaced949 100644
--- a/TAO/TAO_IDL/be/be_visitor_scope.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_scope.cpp
@@ -25,8 +25,8 @@
#include "be_visitor_context.h"
#include "ace/Log_Msg.h"
-ACE_RCSID (be,
- be_visitor_scope,
+ACE_RCSID (be,
+ be_visitor_scope,
"$Id$")
// ******************************************************
@@ -196,7 +196,7 @@ be_visitor_scope::next_elem (be_decl *elem,
return 0;
}
-bool
+idl_bool
be_visitor_scope::last_node (be_decl *bd)
{
be_decl *next = 0;
@@ -213,7 +213,7 @@ be_visitor_scope::last_node (be_decl *bd)
return 1;
}
-bool
+idl_bool
be_visitor_scope::last_inout_or_out_node (be_decl *)
{
// Return true if we are the last inout or out argument.
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
index 9195f4c7d3e..772e2435db0 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
@@ -52,8 +52,6 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Generate the Any <<= and >>= operators.
*os << macro;
*os << " void"
@@ -76,8 +74,6 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
*os << node->name ();
*os << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_any_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
index a4699901a26..a614ac55509 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/any_op_cs.cpp
@@ -53,8 +53,6 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Since we don't generate CDR stream operators for types that
// explicitly contain a local interface (at some level), we
// must override these Any template class methods to avoid
@@ -151,8 +149,6 @@ be_visitor_sequence_any_op_cs::visit_sequence (be_sequence *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_any_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp
index c4a48dd236e..6b0e1e24d2b 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_ch.cpp
@@ -79,8 +79,6 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node)
<< "\n#define _TAO_CDR_OP_" << node->flat_name () << "_H_";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator<< (" << be_idt << be_idt_nl
@@ -93,8 +91,6 @@ be_visitor_sequence_cdr_op_ch::visit_sequence (be_sequence *node)
<< node->name () << " &" << be_uidt_nl
<< ");" << be_uidt;
- *os << be_global->core_versioning_end () << be_nl;
-
if (!tdef)
{
*os << "\n\n#endif /* _TAO_CDR_OP_"
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp
index d0013d76194..fdb63147f1b 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/cdr_op_cs.cpp
@@ -100,8 +100,6 @@ be_visitor_sequence_cdr_op_cs::visit_sequence (be_sequence *node)
<< "#define _TAO_CDR_OP_" << node->flat_name () << "_CPP_"
<< be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -254,8 +252,6 @@ be_visitor_sequence_cdr_op_cs::visit_sequence (be_sequence *node)
*os << "return false;" << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
*os << be_nl << be_nl
<< "#endif /* _TAO_CDR_OP_"
<< node->flat_name () << "_CPP_ */";
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp
index f0efb4868c6..cc10b86b3bb 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_ch.cpp
@@ -71,7 +71,7 @@ int be_visitor_sequence_ch::visit_sequence (be_sequence *node)
-1);
}
- bt->seen_in_sequence (true);
+ bt->seen_in_sequence (I_TRUE);
AST_Decl::NodeType nt = bt->node_type ();
// If our base type is an anonymouse sequence, we must create a name
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp
index c96fb72bab1..63782abb8d7 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/sequence_cs.cpp
@@ -193,6 +193,6 @@ int be_visitor_sequence_cs::visit_sequence (be_sequence *node)
os->gen_endif ();
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp
index f4388c13f80..1736ea2ea14 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/serializer_op_cs.cpp
@@ -779,6 +779,7 @@ be_visitor_sequence_serializer_op_cs::visit_node (be_type *bt)
nt = td->base_node_type ();
}
+
switch (this->ctx_->sub_state ())
{
case TAO_CodeGen::TAO_IS_BOUNDED_SIZE:
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
index 3d30576a792..c1a351406d4 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_ch.cpp
@@ -52,8 +52,6 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
<< " &); // copying version" << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
@@ -63,7 +61,6 @@ be_visitor_structure_any_op_ch::visit_structure (be_structure *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
// All we have to do is to visit the scope and generate code.
if (this->visit_scope (node) == -1)
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp
index ec9ee323817..bbb3250ab5f 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/any_op_cs.cpp
@@ -53,8 +53,6 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Since we don't generate CDR stream operators for types that
// explicitly contain a local interface (at some level), we
// must override these Any template class methods to avoid
@@ -152,8 +150,6 @@ be_visitor_structure_any_op_cs::visit_structure (be_structure *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
// all we have to do is to visit the scope and generate code
if (this->visit_scope (node) == -1)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp
index 8986fd0f56b..f29f1e5a5fd 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_ch.cpp
@@ -53,8 +53,6 @@ be_visitor_structure_cdr_op_ch::visit_structure (be_structure *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator<< (TAO_OutputCDR &, const " << node->name ()
<< " &);" << be_nl;
@@ -62,7 +60,6 @@ be_visitor_structure_cdr_op_ch::visit_structure (be_structure *node)
<< " operator>> (TAO_InputCDR &, "
<< node->name () << " &);";
- *os << be_global->core_versioning_end () << be_nl;
// Set the substate as generating code for the types defined in our scope.
this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_SCOPE);
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
index 2463764b749..73841a9b18e 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
@@ -60,8 +60,6 @@ be_visitor_structure_cdr_op_cs::visit_structure (be_structure *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -137,9 +135,7 @@ be_visitor_structure_cdr_op_cs::visit_structure (be_structure *node)
*os << be_uidt_nl << "}";
- *os << be_global->core_versioning_end () << be_nl;
-
- node->cli_stub_cdr_op_gen (true);
+ node->cli_stub_cdr_op_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp
index f99dbf45b27..4083ce2c89c 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/serializer_op_cs.cpp
@@ -244,7 +244,7 @@ be_visitor_structure_serializer_op_cs::visit_structure (be_structure *node)
*os << be_uidt_nl << "}";
- node->cli_stub_serializer_op_gen (true);
+ node->cli_stub_serializer_op_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp
index f7e7d2751a6..27bcd6acaf7 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure_ch.cpp
@@ -98,6 +98,6 @@ int be_visitor_structure_ch::visit_structure (be_structure *node)
}
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp
index 8feffbd15ea..f3a7520ba70 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure_ci.cpp
@@ -53,6 +53,6 @@ int be_visitor_structure_ci::visit_structure (be_structure *node)
-1);
}
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp b/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp
index 98c015f982e..fe7103074a5 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure/structure_cs.cpp
@@ -91,6 +91,6 @@ be_visitor_structure_cs::visit_structure (be_structure *node)
-1);
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp
index 0df96e7e10a..1e8b3b26b0a 100644
--- a/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp
@@ -50,6 +50,6 @@ be_visitor_structure_fwd_ch::visit_structure_fwd (be_structure_fwd *node)
// This will be a no-op if it has already been done for this node.
fd->gen_common_varout (os);
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_traits.cpp b/TAO/TAO_IDL/be/be_visitor_traits.cpp
index 40c94c16bc8..2b36f4e51b5 100644
--- a/TAO/TAO_IDL/be/be_visitor_traits.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_traits.cpp
@@ -17,7 +17,6 @@
#include "be_root.h"
#include "be_module.h"
#include "be_interface.h"
-#include "be_valuebox.h"
#include "be_valuetype.h"
#include "be_interface_fwd.h"
#include "be_valuetype_fwd.h"
@@ -61,8 +60,6 @@ be_visitor_traits::visit_root (be_root *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_nl << be_nl
<< "// Traits specializations." << be_nl
<< "namespace TAO" << be_nl
@@ -79,8 +76,6 @@ be_visitor_traits::visit_root (be_root *node)
*os << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
return 0;
}
@@ -130,7 +125,7 @@ be_visitor_traits::visit_interface (be_interface *node)
<< ");" << be_uidt_nl
<< "static ::" << node->name () << "_ptr nil (void);" << be_nl
<< "static ::CORBA::Boolean marshal (" << be_idt << be_idt_nl
- << "const ::" << node->name () << "_ptr p," << be_nl
+ << "::" << node->name () << "_ptr p," << be_nl
<< "TAO_OutputCDR & cdr" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "};";
@@ -146,7 +141,7 @@ be_visitor_traits::visit_interface (be_interface *node)
-1);
}
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
@@ -171,42 +166,7 @@ be_visitor_traits::visit_interface_fwd (be_interface_fwd *node)
-1);
}
- node->cli_traits_gen (true);
- return 0;
-}
-
-int
-be_visitor_traits::visit_valuebox (be_valuebox *node)
-{
- if (node->cli_traits_gen ())
- {
- return 0;
- }
-
- TAO_OutStream *os = this->ctx_->stream ();
-
- // I think we need to generate this only for non-defined forward
- // declarations.
- if (!node->imported ())
- {
- os->gen_ifdef_macro (node->flat_name (), "traits", false);
-
- *os << be_nl << be_nl
- << "template<>" << be_nl
- << "struct " << be_global->stub_export_macro () << " Value_Traits<"
- << node->name () << ">" << be_nl
- << "{" << be_idt_nl
- << "static void add_ref (" << node->name () << " *);" << be_nl
- << "static void remove_ref (" << node->name () << " *);"
- << be_nl
- << "static void release (" << node->name () << " *);"
- << be_uidt_nl
- << "};";
-
- os->gen_endif ();
- }
-
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
@@ -251,7 +211,7 @@ be_visitor_traits::visit_valuetype (be_valuetype *node)
-1);
}
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
@@ -278,7 +238,7 @@ be_visitor_traits::visit_valuetype_fwd (be_valuetype_fwd *node)
-1);
}
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
@@ -456,7 +416,7 @@ be_visitor_traits::visit_array (be_array *node)
// os->gen_endif ();
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
@@ -478,6 +438,6 @@ be_visitor_traits::visit_typedef (be_typedef *node)
}
this->ctx_->alias (0);
- node->cli_traits_gen (true);
+ node->cli_traits_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
index ee9a79df3e8..9a5328f90a7 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/typecode_defn.cpp
@@ -645,10 +645,7 @@ be_visitor_typecode_defn::visit_array (be_array *node)
// @todo Can we automate duplicate detection within the IDL compiler
// itself?
os << "\n#ifndef _TAO_TYPECODE_" << node->flat_name () << "_GUARD"
- << "\n#define _TAO_TYPECODE_" << node->flat_name () << "_GUARD"
- << be_nl;
-
- os << be_global->core_versioning_begin () << be_nl;
+ << "\n#define _TAO_TYPECODE_" << node->flat_name () << "_GUARD" << be_nl;
// namespace begin
os << "namespace TAO" << be_nl
@@ -731,8 +728,6 @@ be_visitor_typecode_defn::visit_array (be_array *node)
<< "}" << be_uidt_nl
<< "}" << be_nl << be_nl;
- os << be_global->core_versioning_end () << be_nl;
-
os << "\n#endif /* _TAO_TYPECODE_" << node->flat_name () << "_GUARD */"
<< be_nl;
@@ -967,9 +962,6 @@ be_visitor_typecode_defn::visit_sequence (be_sequence * node)
<< "\n#define _TAO_TYPECODE_" << node->flat_name () << "_GUARD" << be_nl;
// namespace begin
-
- os << be_global->core_versioning_begin () << be_nl;
-
os << "namespace TAO" << be_nl
<< "{" << be_idt_nl
<< "namespace TypeCode" << be_nl
@@ -1006,8 +998,6 @@ be_visitor_typecode_defn::visit_sequence (be_sequence * node)
<< "}" << be_uidt_nl
<< "}" << be_nl << be_nl;
- os << be_global->core_versioning_end () << be_nl;
-
os << "\n#endif /* _TAO_TYPECODE_" << node->flat_name () << "_GUARD */"
<< be_nl << be_nl;
@@ -1040,9 +1030,6 @@ be_visitor_typecode_defn::visit_string (be_string * node)
<< "\n#define _TAO_TYPECODE_" << node->flat_name () << "_GUARD" << be_nl;
// namespace begin
-
- os << be_global->core_versioning_begin () << be_nl;
-
os << "namespace TAO" << be_nl
<< "{" << be_idt_nl
<< "namespace TypeCode" << be_nl
@@ -1068,8 +1055,6 @@ be_visitor_typecode_defn::visit_string (be_string * node)
<< "}" << be_uidt_nl
<< "}" << be_nl << be_nl;
- os << be_global->core_versioning_end () << be_nl;
-
os << "\n#endif /* _TAO_TYPECODE_" << node->flat_name () << "_GUARD */"
<< be_nl << be_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp
index 2dff033c741..f178ba8ba6c 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/value_typecode.cpp
@@ -12,6 +12,10 @@
*/
//=============================================================================
+
+#include <string>
+
+
TAO::be_visitor_value_typecode::be_visitor_value_typecode (
be_visitor_context * ctx)
: be_visitor_typecode_defn (ctx)
@@ -24,9 +28,7 @@ int
TAO::be_visitor_value_typecode::visit_valuetype (be_valuetype * node)
{
if (!node->is_defined ())
- {
- return this->gen_forward_declared_typecode (node);
- }
+ return this->gen_forward_declared_typecode (node);
// Check if we are repeated.
be_visitor_typecode_defn::QNode const * const qnode =
@@ -50,9 +52,7 @@ TAO::be_visitor_value_typecode::visit_valuetype (be_valuetype * node)
}
if (this->recursion_detect_ || this->is_nested_)
- {
return 0;
- }
this->is_nested_ = true;
@@ -63,110 +63,141 @@ TAO::be_visitor_value_typecode::visit_valuetype (be_valuetype * node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
if (this->gen_member_typecodes (node) != 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "TAO::be_visitor_value_typecode::visit_valuetype - "
- "Unable to generate valuetype/eventtype field "
- "TypeCodes.\n"),
- -1);
- }
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "TAO::be_visitor_value_typecode::visit_valuetype - "
+ "Unable to generate valuetype/eventtype field "
+ "TypeCodes.\n"),
+ -1);
size_t const count =
node->data_members_count (AST_Field::vis_PUBLIC)
+ node->data_members_count (AST_Field::vis_PRIVATE);
- ACE_CString const fields_name (ACE_CString ("_tao_fields_")
- + node->flat_name ());
+ /*
+ if (count == 1 &&
+ count == node->nmembers () // Verify no operations.
+ && node->n_inherits () == 0)
+ {
+ // Generate a value box TypeCode. It is more compact than a
+ // valuetype TypeCode.
- // Generate array containing value field characteristics.
- os << "static TAO::TypeCode::Value_Field<char const *, "
- << "::CORBA::TypeCode_ptr const *> const ";
+ UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
- if (count == 0)
- {
- os << "* const " << fields_name.c_str () << " = 0;" << be_nl;
+ AST_Decl * const d = si.item ();
+
+ ACE_ASSERT (d);
+
+ AST_Field * const field = AST_Field::narrow_from_decl (d);
+
+ ACE_ASSERT (field);
+
+ be_type * const member_type =
+ be_type::narrow_from_decl (field->field_type ());
+
+ // Generate the TypeCode instantiation.
+ os
+ << "static TAO::TypeCode::Value_Box<char const *," << be_nl
+ << " TAO::Null_RefCount_Policy>"
+ << be_idt_nl
+ << "_tao_tc_" << node->flat_name () << " (" << be_idt_nl
+ << "\"" << node->repoID () << "\"," << be_nl
+ << "\"" << node->original_local_name () << "\"," << be_nl
+ << "&" << member_type->tc_name () << ");" << be_uidt_nl
+ << be_uidt_nl;
}
else
+ */
{
- os << fields_name.c_str () << "[] =" << be_idt_nl
- << "{" << be_idt_nl;
+ std::string const fields_name (std::string ("_tao_fields_")
+ + node->flat_name ());
+
+ // Generate array containing value field characteristics.
+ os << "static TAO::TypeCode::Value_Field<char const *, ::CORBA::TypeCode_ptr const *> const ";
- if (this->visit_members (node) != 0)
+ if (count == 0)
{
- return -1;
+ os << "* const " << fields_name.c_str () << " = 0;" << be_nl;
}
+ else
+ {
+ os << fields_name.c_str () << "[] =" << be_idt_nl
+ << "{" << be_idt_nl;
- os << be_uidt_nl
- << "};" << be_uidt_nl;
- }
+ if (this->visit_members (node) != 0)
+ return -1;
- // Generate the TypeCode instantiation.
+ os << be_uidt_nl
+ << "};" << be_uidt_nl;
+ }
- static char const StringType[] = "char const *";
- static char const TypeCodeType[] = "::CORBA::TypeCode_ptr const *";
- static char const MemberArrayType[] =
- "TAO::TypeCode::Value_Field<char const *, "
- "::CORBA::TypeCode_ptr const *> const *";
+ // Generate the TypeCode instantiation.
- os << "static ";
+ static char const StringType[] = "char const *";
+ static char const TypeCodeType[] = "::CORBA::TypeCode_ptr const *";
+ static char const MemberArrayType[] =
+ "TAO::TypeCode::Value_Field<char const *, "
+ "::CORBA::TypeCode_ptr const *> const *";
- if (this->is_recursive_)
- {
- os << "TAO::TypeCode::Recursive_Type<" << be_idt_nl;
- }
+ os << "static ";
- // -- TypeCodeBase --
- os
- << "TAO::TypeCode::Value<" << StringType << "," << be_nl
- << " " << TypeCodeType << "," << be_nl
- << " " << MemberArrayType << "," << be_nl
- << " TAO::Null_RefCount_Policy>";
+ if (this->is_recursive_)
+ {
+ os << "TAO::TypeCode::Recursive_Type<" << be_idt_nl;
+ }
- if (this->is_recursive_)
- {
- os << "," << be_nl
- << TypeCodeType << "," << be_nl
- << MemberArrayType << " >" << be_uidt_nl;
- }
+ // -- TypeCodeBase --
+ os
+ << "TAO::TypeCode::Value<" << StringType << "," << be_nl
+ << " " << TypeCodeType << "," << be_nl
+ << " " << MemberArrayType << "," << be_nl
+ << " TAO::Null_RefCount_Policy>";
- os << be_idt_nl
- << "_tao_tc_" << node->flat_name () << " (" << be_idt_nl
- << "::CORBA::tk_"
- << (dynamic_cast<be_eventtype *> (node) ? "event" : "value")
- << "," << be_nl
- << "\"" << node->repoID () << "\"," << be_nl
- << "\"" << node->original_local_name () << "\"," << be_nl;
-
- // ValueModifier
- //
- // TAO doesn't support CUSTOM or TRUNCATABLE valuetypes. Go
- // with VM_NONE or VM_ABSTRACT.
- os << "::CORBA::"
- << (node->is_abstract () ? "VM_ABSTRACT" : "VM_NONE") << "," << be_nl;
-
- // Concrete base type.
- AST_ValueType * const concrete_base =
- node->inherits_concrete ();
-
- if (concrete_base)
- {
- be_type * const base_type =
- be_type::narrow_from_decl (concrete_base);
+ if (this->is_recursive_)
+ {
+ os << "," << be_nl
+ << TypeCodeType << "," << be_nl
+ << MemberArrayType << " >" << be_uidt_nl;
+ }
- ACE_ASSERT (base_type);
+ os << be_idt_nl
+ << "_tao_tc_" << node->flat_name () << " (" << be_idt_nl
+ << "::CORBA::tk_"
+ << (dynamic_cast<be_eventtype *> (node) ? "event" : "value")
+ << "," << be_nl
+ << "\"" << node->repoID () << "\"," << be_nl
+ << "\"" << node->original_local_name () << "\"," << be_nl;
+
+ // ValueModifier
+ //
+ // TAO doesn't support CUSTOM or TRUNCATABLE valuetypes. Go
+ // with VM_NONE or VM_ABSTRACT.
+ os << "::CORBA::"
+ << (node->is_abstract () ? "VM_ABSTRACT" : "VM_NONE") << "," << be_nl;
+
+ // Concrete base type.
+ AST_ValueType * const concrete_base =
+ node->inherits_concrete ();
+
+ if (concrete_base)
+ {
+ be_type * const base_type =
+ be_type::narrow_from_decl (concrete_base);
- os << "&" << base_type->tc_name () << "," << be_nl;
- }
- else
- {
- // No concrete base.
- os << "&::CORBA::_tc_null," << be_nl;
- }
+ ACE_ASSERT (base_type);
- // Fields
- os << "_tao_fields_" << node->flat_name () << "," << be_nl
- << count << ");" << be_uidt_nl
- << be_uidt_nl;
+ os << "&" << base_type->tc_name () << "," << be_nl;
+ }
+ else
+ {
+ // No concrete base.
+ os << "&::CORBA::_tc_null," << be_nl;
+ }
+
+ // Fields
+ os << "_tao_fields_" << node->flat_name () << "," << be_nl
+ << count << ");" << be_uidt_nl
+ << be_uidt_nl;
+ }
return
this->gen_typecode_ptr (be_type::narrow_from_decl (node));
@@ -202,13 +233,9 @@ TAO::be_visitor_value_typecode::gen_member_typecodes (be_valuetype * node)
be_type::narrow_from_decl (field->field_type ());
if (this->is_typecode_generation_required (member_type))
- {
- member_type->accept (this);
- }
+ member_type->accept (this);
else if (member_type == static_cast<be_type *> (node))
- {
- this->is_recursive_ = true;
- }
+ this->is_recursive_ = true;
}
return 0;
@@ -249,9 +276,7 @@ TAO::be_visitor_value_typecode::visit_members (be_valuetype * node)
AST_Field::Visibility const vis = field->visibility ();
if (vis == AST_Field::vis_NA)
- {
- continue;
- }
+ continue;
be_decl * const member_decl =
be_decl::narrow_from_decl (field);
@@ -285,9 +310,7 @@ TAO::be_visitor_value_typecode::visit_members (be_valuetype * node)
os << " }";
if (i < count - 1)
- {
- os << ",";
- }
+ os << ",";
os << be_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp
index 15bffced400..24a47afb53f 100644
--- a/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typedef/typedef_ci.cpp
@@ -220,7 +220,7 @@ be_visitor_typedef_ci::visit_array (be_array *node)
*os << "}" << be_nl << be_nl;
}
- bt->cli_inline_gen (true);
+ bt->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp
index 897acca7ad6..fe951a47060 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_ch.cpp
@@ -52,8 +52,6 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void operator<<= (::CORBA::Any &, const " << node->name ()
<< " &); // copying version" << be_nl;
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
@@ -63,8 +61,6 @@ be_visitor_union_any_op_ch::visit_union (be_union *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
if (this->visit_scope (node) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
index b84932013c1..62532ab116b 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/any_op_cs.cpp
@@ -53,8 +53,6 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Since we don't generate CDR stream operators for types that
// explicitly contain a local interface (at some level), we
// must override these Any template class methods to avoid
@@ -152,8 +150,6 @@ be_visitor_union_any_op_cs::visit_union (be_union *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
// All we have to do is to visit the scope and generate code.
if (this->visit_scope (node) == -1)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
index f55a5c83d83..c65afad6779 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_ch.cpp
@@ -53,8 +53,6 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_global->stub_export_macro () << " ::CORBA::Boolean"
<< " operator<< (TAO_OutputCDR &, const " << node->name ()
<< " &);" << be_nl;
@@ -62,7 +60,6 @@ be_visitor_union_cdr_op_ch::visit_union (be_union *node)
<< " operator>> (TAO_InputCDR &, "
<< node->name () << " &);";
- *os << be_global->core_versioning_end () << be_nl;
// Set the substate as generating code for the types defined in our scope.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_SCOPE);
diff --git a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp
index 59a621cf4b2..6c12a1dd7b1 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/cdr_op_cs.cpp
@@ -66,8 +66,6 @@ be_visitor_union_cdr_op_cs::visit_union (be_union *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -205,8 +203,6 @@ be_visitor_union_cdr_op_cs::visit_union (be_union *node)
<< "return result;" << be_uidt_nl
<< "}";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_stub_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp
index 1a6a3965983..331ef16974f 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union_ch.cpp
@@ -203,6 +203,6 @@ int be_visitor_union_ch::visit_union (be_union *node)
os->gen_endif ();
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp
index e0d5784c355..6333a8f4945 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union_ci.cpp
@@ -91,6 +91,6 @@ int be_visitor_union_ci::visit_union (be_union *node)
-1);
}
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp
index c4690fff6d4..83721c478b6 100644
--- a/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union/union_cs.cpp
@@ -298,6 +298,6 @@ int be_visitor_union_cs::visit_union (be_union *node)
}
}
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
index 844b60007f3..c4644d2e2a4 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_assign_cs.cpp
@@ -235,7 +235,7 @@ be_visitor_union_branch_public_assign_cs::visit_interface (be_interface *node)
TAO_OutStream *os = this->ctx_->stream ();
- bool bt_is_defined = node->is_defined ();
+ idl_bool bt_is_defined = node->is_defined ();
*os << "if (u.u_." << ub->local_name () << "_ == 0)" << be_idt_nl
<< "{" << be_idt_nl
@@ -332,7 +332,7 @@ be_visitor_union_branch_public_assign_cs::visit_interface_fwd (
TAO_OutStream *os = this->ctx_->stream ();
- bool bt_is_defined = node->full_definition ()->is_defined ();
+ idl_bool bt_is_defined = node->full_definition ()->is_defined ();
*os << "if (u.u_." << ub->local_name () << "_ == 0)" << be_idt_nl
<< "{" << be_idt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
index fec6a0f135b..ab48fae03db 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ci.cpp
@@ -351,7 +351,7 @@ be_visitor_union_branch_public_ci::visit_interface (be_interface *node)
ub->gen_default_label_value (os, bu);
}
- bool bt_is_defined = node->is_defined ();
+ idl_bool bt_is_defined = node->is_defined ();
*os << ";" << be_nl
<< "typedef "
@@ -448,7 +448,7 @@ be_visitor_union_branch_public_ci::visit_interface_fwd (be_interface_fwd *node)
ub->gen_default_label_value (os, bu);
}
- bool bt_is_defined = node->full_definition ()->is_defined ();
+ idl_bool bt_is_defined = node->full_definition ()->is_defined ();
*os << ";" << be_nl
<< "typedef "
diff --git a/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp
index a589e8eb0c4..474c49e7075 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_fwd/union_fwd_ch.cpp
@@ -48,6 +48,6 @@ be_visitor_union_fwd_ch::visit_union_fwd (be_union_fwd *node)
// This will be a no-op if it has already been done for this node.
fd->gen_common_varout (os);
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox.cpp
index c6d4bb2eaed..394ec3fe36f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox.cpp
@@ -42,7 +42,6 @@
#include "be_visitor_typecode.h"
#include "be_visitor_union.h"
#include "be_visitor_valuebox.h"
-#include "ace/Log_Msg.h"
#include "be_visitor_valuebox/valuebox.cpp"
#include "be_visitor_valuebox/valuebox_ch.cpp"
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
index e763f9917c9..91ab4bab216 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_ch.cpp
@@ -69,7 +69,7 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
-1);
}
- // Some compilers handle "any" operatorrs in a namespace
+ // Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
*os << "\n\n#if defined (ACE_ANY_OPS_USE_NAMESPACE)\n";
@@ -94,8 +94,6 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
*os << "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
<< " *); // copying" << be_nl;
@@ -105,8 +103,6 @@ be_visitor_valuebox_any_op_ch::visit_valuebox (be_valuebox *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
index cde4eff0f7c..b4945e33bf9 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/any_op_cs.cpp
@@ -55,8 +55,6 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
// All template specializations must be generated before the instantiations
// in the operators.
*os << be_nl << be_nl
@@ -75,7 +73,6 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
<< "}" << be_uidt_nl
<< "}" << be_nl << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
be_module *module = 0;
@@ -149,8 +146,6 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
*os << "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << "// Copying insertion." << be_nl
<< "void" << be_nl
<< "operator<<= (" << be_idt << be_idt_nl
@@ -194,8 +189,6 @@ be_visitor_valuebox_any_op_cs::visit_valuebox (be_valuebox *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp
index 29e474db40b..e6984d70a1f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_ch.cpp
@@ -49,8 +49,6 @@ be_visitor_valuebox_cdr_op_ch::visit_valuebox (be_valuebox *node)
<< "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_global->stub_export_macro () << " "
<< "::CORBA::Boolean operator<< (TAO_OutputCDR &, const "
<< node->full_name () << " *);" << be_nl;
@@ -59,8 +57,6 @@ be_visitor_valuebox_cdr_op_ch::visit_valuebox (be_valuebox *node)
<< "::CORBA::Boolean operator>> (TAO_InputCDR &, "
<< node->full_name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
node->cli_hdr_cdr_op_gen (1);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
index 3b4856930e5..44534680d0e 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/cdr_op_cs.cpp
@@ -46,13 +46,11 @@ be_visitor_valuebox_cdr_op_cs::visit_valuebox (be_valuebox *node)
}
TAO_OutStream *os = this->ctx_->stream ();
- node->cli_stub_cdr_op_gen (true);
+ node->cli_stub_cdr_op_gen (I_TRUE);
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-*os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -85,7 +83,6 @@ be_visitor_valuebox_cdr_op_cs::visit_valuebox (be_valuebox *node)
<< be_uidt_nl
<< "}" << be_nl << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
index 2dbe085fb1e..ec713d6758e 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ch.cpp
@@ -153,7 +153,7 @@ be_visitor_valuebox_ch::visit_valuebox (be_valuebox *node)
}
// Indicate that code is already generated for this node.
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
@@ -276,7 +276,7 @@ be_visitor_valuebox_ch::visit_sequence (be_sequence *node)
}
// Indicate that this type has been used as a sequence element.
- bt->seen_in_sequence (true);
+ bt->seen_in_sequence (I_TRUE);
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
index f670205b533..6dd4b94aa4d 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_ci.cpp
@@ -65,8 +65,18 @@ be_visitor_valuebox_ci::visit_valuebox (be_valuebox *node)
<< "return \"" << node->repoID () << "\";" << be_uidt_nl
<< "}" << be_nl << be_nl;
+ // _tao_unmarshal_v method. Generated because ValueBase interface
+ // requires it. But there is nothing for it to do in the valuebox
+ // case.
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << node->name ()
+ << "::_tao_unmarshal_v (TAO_InputCDR &)" << be_nl
+ << "{" << be_idt_nl
+ << "return true;" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
// Indicate that code is already generated for this node.
- node->cli_inline_gen (true);
+ node->cli_inline_gen (I_TRUE);
return 0;
}
@@ -74,6 +84,7 @@ be_visitor_valuebox_ci::visit_valuebox (be_valuebox *node)
int
be_visitor_valuebox_ci::visit_array (be_array *node)
{
+
TAO_OutStream *os = this->ctx_->stream ();
// Retrieve the node being visited by this be_visitor_valuebox_ch.
@@ -180,19 +191,30 @@ be_visitor_valuebox_ci::visit_array (be_array *node)
<< "return this->_pd_value.out ();" << be_uidt_nl
<< "}" << be_nl << be_nl;
+ // _tao_marshal_v method
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << vb_node->name ()
+ << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
+ << "{" << be_idt_nl
+ << node->name () << "_forany temp (this->_pd_value.ptr ());" << be_nl
+ << "return (strm << temp);" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
return 0;
}
int
be_visitor_valuebox_ci::visit_enum (be_enum *node)
{
- return this->emit_for_predef_enum (node, "", false);
+ return this->emit_for_predef_enum (node, "", false,
+ "this->_pd_value");
}
int
be_visitor_valuebox_ci::visit_interface (be_interface *node)
{
- return this->emit_for_predef_enum (node, "_ptr", false);
+ return this->emit_for_predef_enum (node, "_ptr", false,
+ "this->_pd_value");
}
int
@@ -226,10 +248,8 @@ be_visitor_valuebox_ci::visit_predefined_type (be_predefined_type *node)
default:
marshal_arg = "this->_pd_value";
- break;
}
-
- return this->emit_for_predef_enum (node, "", is_any);
+ return this->emit_for_predef_enum (node, "", is_any, marshal_arg);
}
int
@@ -244,6 +264,7 @@ be_visitor_valuebox_ci::visit_sequence (be_sequence *node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
this->emit_default_constructor_alloc (node);
+ this->emit_destructor ();
this->emit_constructor_one_arg_alloc (node);
this->emit_copy_constructor_alloc (node);
this->emit_assignment_alloc (node);
@@ -271,6 +292,14 @@ be_visitor_valuebox_ci::visit_sequence (be_sequence *node)
<< "this->_pd_value->length (length);" << be_uidt_nl
<< "}" << be_nl << be_nl;
+ // _tao_marshal_v method
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << vb_node->name ()
+ << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
+ << "{" << be_idt_nl
+ << "return (strm << this->_pd_value.in ());" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
return 0;
}
@@ -306,6 +335,7 @@ be_visitor_valuebox_ci::visit_string (be_string *node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
this->emit_default_constructor ();
+ this->emit_destructor ();
this->emit_constructor_one_arg (node, "");
this->emit_copy_constructor ();
this->emit_assignment (node, "");
@@ -410,6 +440,15 @@ be_visitor_valuebox_ci::visit_string (be_string *node)
<< "return this->_pd_value[slot];" << be_uidt_nl
<< "}" << be_nl << be_nl;
+
+ // _tao_marshal_v method
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << vb_node->name ()
+ << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
+ << "{" << be_idt_nl
+ << "return (strm << this->_pd_value);" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
return 0;
}
@@ -425,6 +464,7 @@ be_visitor_valuebox_ci::visit_structure (be_structure *node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
this->emit_default_constructor_alloc (node);
+ this->emit_destructor ();
this->emit_constructor_one_arg_alloc (node);
this->emit_copy_constructor_alloc (node);
this->emit_assignment_alloc (node);
@@ -473,6 +513,14 @@ be_visitor_valuebox_ci::visit_structure (be_structure *node)
}
}
+ // _tao_marshal_v method
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << vb_node->name ()
+ << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
+ << "{" << be_idt_nl
+ << "return (strm << this->_pd_value.in ());" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
return 0;
}
@@ -506,6 +554,7 @@ be_visitor_valuebox_ci::visit_union (be_union *node)
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
this->emit_default_constructor_alloc (node);
+ this->emit_destructor ();
this->emit_constructor_one_arg_alloc (node);
this->emit_copy_constructor_alloc (node);
this->emit_assignment_alloc (node);
@@ -580,6 +629,15 @@ be_visitor_valuebox_ci::visit_union (be_union *node)
<< "return this->_pd_value->_d ();" << be_uidt_nl
<< "}" << be_nl << be_nl;
+
+ // _tao_marshal_v method
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << vb_node->name ()
+ << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
+ << "{" << be_idt_nl
+ << "return (strm << this->_pd_value.in ());" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
return 0;
}
@@ -588,7 +646,8 @@ be_visitor_valuebox_ci::visit_union (be_union *node)
int
be_visitor_valuebox_ci::emit_for_predef_enum (be_type *node,
const char * type_suffix,
- bool is_any)
+ bool is_any,
+ const char * marshal_arg)
{
TAO_OutStream *os = this->ctx_->stream ();
@@ -598,6 +657,8 @@ be_visitor_valuebox_ci::emit_for_predef_enum (be_type *node,
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ this->emit_destructor ();
+
if (is_any)
{
this->emit_default_constructor_alloc (node);
@@ -651,6 +712,14 @@ be_visitor_valuebox_ci::emit_for_predef_enum (be_type *node,
}
+ // _tao_marshal_v method
+ *os << "ACE_INLINE ::CORBA::Boolean " << be_nl
+ << vb_node->name ()
+ << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
+ << "{" << be_idt_nl
+ << "return (strm << " << marshal_arg << ");" << be_uidt_nl
+ << "}" << be_nl << be_nl;
+
return 0;
}
@@ -681,7 +750,7 @@ be_visitor_valuebox_ci::emit_default_constructor_alloc (be_decl *node)
*os << "ACE_INLINE " << be_nl
<< vb_node->name () << "::" << vb_node->local_name () << " (void)"
<< be_nl << "{" << be_idt_nl
- << node->full_name () << "* p = 0;" << be_nl
+ << node->full_name () << "* p;" << be_nl
<< "ACE_NEW (" << be_idt_nl
<< "p," << be_nl
<< node->full_name () << " ());" << be_uidt_nl
@@ -689,6 +758,22 @@ be_visitor_valuebox_ci::emit_default_constructor_alloc (be_decl *node)
<< "}" << be_nl << be_nl;
}
+
+void
+be_visitor_valuebox_ci::emit_destructor (void)
+{
+ TAO_OutStream *os = this->ctx_->stream ();
+
+ // Retrieve the node being visited by this be_visitor_valuebox_ci.
+ be_decl * vb_node = this->ctx_->node ();
+
+ // Protected destructor
+ *os << "ACE_INLINE " << be_nl
+ << vb_node->name () << "::~" << vb_node->local_name () << " (void)"
+ << be_nl << "{}" << be_nl << be_nl;
+}
+
+
void
be_visitor_valuebox_ci::emit_constructor_one_arg (be_decl *node,
const char * type_suffix)
@@ -720,7 +805,7 @@ be_visitor_valuebox_ci::emit_constructor_one_arg_alloc (be_decl *node)
<< vb_node->name () << "::" << vb_node->local_name ()
<< " (const " << node->full_name () << "& value)" << be_nl
<< "{" << be_idt_nl
- << node->full_name () << "* p = 0;" << be_nl
+ << node->full_name () << "* p;" << be_nl
<< "ACE_NEW (" << be_idt_nl
<< "p," << be_nl
<< node->full_name () << " (value));" << be_uidt_nl
@@ -764,7 +849,7 @@ be_visitor_valuebox_ci::emit_copy_constructor_alloc (be_decl *node)
<< " ACE_NESTED_CLASS ( ::CORBA, DefaultValueRefCountBase) (val)"
<< be_uidt_nl
<< "{" << be_idt_nl
- << node->full_name () << "* p = 0;" << be_nl
+ << node->full_name () << "* p;" << be_nl
<< "ACE_NEW (" << be_idt_nl
<< "p," << be_nl
<< node->full_name () << " (val._pd_value.in ()));" << be_uidt_nl
@@ -805,7 +890,7 @@ be_visitor_valuebox_ci::emit_assignment_alloc (be_decl *node)
<< vb_node->name () << "::operator= (const "
<< node->full_name () << "& value)" << be_nl
<< "{" << be_idt_nl
- << node->full_name () << "* p = 0;" << be_nl
+ << node->full_name () << "* p;" << be_nl
<< "ACE_NEW_RETURN (" << be_idt_nl
<< "p," << be_nl
<< node->full_name () << " (value)," << be_nl
@@ -843,7 +928,7 @@ be_visitor_valuebox_ci::emit_accessor_modifier (be_decl *node)
<< vb_node->name () << "::_value (const "
<< node->full_name () << "& value)" << be_nl
<< "{" << be_idt_nl
- << node->full_name () << "* p = 0;" << be_nl
+ << node->full_name () << "* p;" << be_nl
<< "ACE_NEW (" << be_idt_nl
<< "p," << be_nl
<< node->full_name () << " (value));" << be_uidt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
index 45de64c965b..4c04dd07508 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/valuebox_cs.cpp
@@ -62,46 +62,15 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_nl << be_nl
- << "void" << be_nl
- << "TAO::Value_Traits<" << node->name () << ">::add_ref ("
- << be_idt << be_idt_nl
- << node->name () << " * p" << be_uidt_nl
- << ")" << be_uidt_nl
- << "{" << be_idt_nl
- << "::CORBA::add_ref (p);" << be_uidt_nl
- << "}";
-
- *os << be_nl << be_nl
- << "void" << be_nl
- << "TAO::Value_Traits<" << node->name () << ">::remove_ref ("
- << be_idt << be_idt_nl
- << node->name () << " * p" << be_uidt_nl
- << ")" << be_uidt_nl
- << "{" << be_idt_nl
- << "::CORBA::remove_ref (p);" << be_uidt_nl
- << "}";
-
- *os << be_nl << be_nl
- << "void" << be_nl
- << "TAO::Value_Traits<" << node->name () << ">::release ("
- << be_idt << be_idt_nl
- << node->name () << " * p" << be_uidt_nl
- << ")" << be_uidt_nl
- << "{" << be_idt_nl
- << "::CORBA::remove_ref (p);" << be_uidt_nl
- << "}";
-
// The _downcast method.
- *os << be_nl << be_nl
- << node->name () << " *" << be_nl
+ *os << be_nl << node->name () << " *" << be_nl
<< node->name () << "::_downcast ( ::CORBA::ValueBase *v)" << be_nl
<< "{" << be_idt_nl
<< "return dynamic_cast< ::" << node->name () << " * > (v);"
<< be_uidt_nl << "}" << be_nl << be_nl;
// _copy_value method
- *os << "::CORBA::ValueBase *" << be_nl
+ *os << be_nl << "::CORBA::ValueBase *" << be_nl
<< node->name () << "::_copy_value (void)" << be_nl
<< "{" << be_idt_nl
<< "::CORBA::ValueBase *result = 0;" << be_nl
@@ -192,7 +161,6 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
<< "vb_object," << be_nl
<< node->local_name () << "," << be_nl
<< "false);" << be_nl << be_uidt_nl;
-
if (is_array)
{
*os << at->full_name() << "_forany temp (vb_object->_boxed_inout ());"
@@ -201,15 +169,7 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
*os << "return (strm >> " << unmarshal_arg << ");" << be_uidt_nl
<< "}" << be_nl << be_nl;
- // _tao_unmarshal_v method. Generated because ValueBase interface
- // requires it. But there is nothing for it to do in the valuebox
- // case.
- *os << "::CORBA::Boolean " << be_nl
- << node->name ()
- << "::_tao_unmarshal_v (TAO_InputCDR &)" << be_nl
- << "{" << be_idt_nl
- << "return true;" << be_uidt_nl
- << "}" << be_nl << be_nl;
+
// Emit the type specific elements. The visit_* methods in this
// module do that work.
@@ -222,57 +182,20 @@ be_visitor_valuebox_cs::visit_valuebox (be_valuebox *node)
}
// Indicate that code is already generated for this node.
- node->cli_stub_gen (true);
+ node->cli_stub_gen (I_TRUE);
return 0;
}
int
-be_visitor_valuebox_cs::visit_array (be_array * node)
+be_visitor_valuebox_cs::visit_array (be_array *)
{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-
- // _tao_marshal_v method
- os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << node->name () << "_forany temp (this->_pd_value.ptr ());" << be_nl
- << "return (strm << temp);" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
return 0;
}
int
be_visitor_valuebox_cs::visit_enum (be_enum *)
{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-
- this->emit_destructor ();
-
- static char const marshal_arg[] = "this->_pd_value";
-
- // _tao_marshal_v method
- os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << "return (strm << " << marshal_arg << ");" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
return 0;
}
@@ -280,42 +203,13 @@ be_visitor_valuebox_cs::visit_enum (be_enum *)
int
be_visitor_valuebox_cs::visit_interface (be_interface *)
{
- return this->emit_for_predef_enum ("this->_pd_value");
+ return 0;
}
int
-be_visitor_valuebox_cs::visit_predefined_type (be_predefined_type * node)
+be_visitor_valuebox_cs::visit_predefined_type (be_predefined_type *)
{
- char const * marshal_arg;
-
- switch (node->pt ())
- {
- case AST_PredefinedType::PT_boolean:
- marshal_arg = "::ACE_OutputCDR::from_boolean (this->_pd_value)";
- break;
-
- case AST_PredefinedType::PT_char:
- marshal_arg = "::ACE_OutputCDR::from_char (this->_pd_value)";
- break;
-
- case AST_PredefinedType::PT_wchar:
- marshal_arg = "::ACE_OutputCDR::from_wchar (this->_pd_value)";
- break;
-
- case AST_PredefinedType::PT_octet:
- marshal_arg = "::ACE_OutputCDR::from_octet (this->_pd_value)";
- break;
-
- case AST_PredefinedType::PT_any:
- marshal_arg = "this->_pd_value.in ()";
- break;
-
- default:
- marshal_arg = "this->_pd_value";
- break;
- }
-
- return this->emit_for_predef_enum (marshal_arg);
+ return 0;
}
int
@@ -417,8 +311,6 @@ be_visitor_valuebox_cs::visit_sequence (be_sequence *node)
// end: Public constructor for sequence with supplied buffer
- this->emit_destructor ();
-
// Accessor: non const
if (bt->accept (&bt_visitor) == -1)
{
@@ -493,62 +385,18 @@ be_visitor_valuebox_cs::visit_sequence (be_sequence *node)
*os << "}" << be_nl << be_nl;
- // _tao_marshal_v method
- *os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << "return (strm << this->_pd_value.in ());" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
return 0;
}
int
be_visitor_valuebox_cs::visit_string (be_string *)
{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-
- this->emit_destructor ();
-
- // _tao_marshal_v method
- os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << "return (strm << this->_pd_value);" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
return 0;
}
int
be_visitor_valuebox_cs::visit_structure (be_structure *)
{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-
- this->emit_destructor ();
-
- // _tao_marshal_v method
- os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << "return (strm << this->_pd_value.in ());" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
return 0;
}
@@ -573,60 +421,5 @@ be_visitor_valuebox_cs::visit_typedef (be_typedef *node)
int
be_visitor_valuebox_cs::visit_union (be_union *)
{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-
- this->emit_destructor ();
-
- // _tao_marshal_v method
- os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << "return (strm << this->_pd_value.in ());" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
- return 0;
-}
-
-void
-be_visitor_valuebox_cs::emit_destructor (void)
-{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- // Protected destructor
- os << vb_node->name () << "::~" << vb_node->local_name () << " (void)"
- << be_nl << "{" << be_nl << "}" << be_nl << be_nl;
-}
-
-int
-be_visitor_valuebox_cs::emit_for_predef_enum (char const * marshal_arg)
-{
- TAO_OutStream & os = *this->ctx_->stream ();
-
- // Retrieve the node being visited by this be_visitor_valuebox_cs.
- be_decl * const vb_node = this->ctx_->node ();
-
- os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
-
- this->emit_destructor ();
-
- // _tao_marshal_v method
- os << "::CORBA::Boolean " << be_nl
- << vb_node->name ()
- << "::_tao_marshal_v (TAO_OutputCDR & strm) const" << be_nl
- << "{" << be_idt_nl
- << "return (strm << " << marshal_arg << ");" << be_uidt_nl
- << "}" << be_nl << be_nl;
-
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
index 0237b6408f4..32ebe90e547 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_valuetype,
- ami_exception_holder_ch,
+ACE_RCSID (be_visitor_valuetype,
+ ami_exception_holder_ch,
"$Id$")
// ******************************************************
@@ -42,7 +42,6 @@ be_visitor_valuetype_ami_exception_holder_ch::visit_valuetype (
be_valuetype *node
)
{
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
TAO_OutStream *os = this->ctx_->stream ();
// Generate the implemenation of the Messaging aware ORB.
@@ -75,9 +74,7 @@ be_visitor_valuetype_ami_exception_holder_ch::visit_valuetype (
*os << be_uidt_nl
<< "};";
-#else
- ACE_UNUSED_ARG (node);
-#endif
+
return 0;
}
@@ -87,12 +84,12 @@ be_visitor_valuetype_ami_exception_holder_ch::visit_operation (
)
{
be_visitor_context ctx (*this->ctx_);
-
+
// Using the implementation class visitor is strange, but we
// do it here because it's the only one that generates the
// environment variable in the operation signature without
// the trailing _WITH_DEFAULTS, which is what we want.
- // For performance reasons, we would rather there be a
+ // For performance reasons, we would rather there be a
// compile error if the user does not pass an environment
// variable, than create a default one, which causes extra
// TSS activity.
@@ -109,7 +106,7 @@ be_visitor_valuetype_ami_exception_holder_ch::visit_operation (
}
TAO_OutStream *os = this->ctx_->stream ();
-
+
*os << be_uidt;
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_cs.cpp
index f43230e0343..924091b2ace 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_cs.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_valuetype,
- ami_exception_holder_cs,
+ACE_RCSID (be_visitor_valuetype,
+ ami_exception_holder_cs,
"$Id$")
// ************************************************************
@@ -42,10 +42,9 @@ be_visitor_valuetype_ami_exception_holder_cs::visit_valuetype (
be_valuetype *node
)
{
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
TAO_OutStream *os = this->ctx_->stream ();
- if (node->is_nested ()
+ if (node->is_nested ()
&& node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
*os << "OBV_";
@@ -54,7 +53,7 @@ be_visitor_valuetype_ami_exception_holder_cs::visit_valuetype (
*os << node->compute_name ("_tao_", "") << "::"
<< node->compute_local_name ("_tao_", "") << " () { }" << be_nl << be_nl;
- if (node->is_nested ()
+ if (node->is_nested ()
&& node->defined_in ()->scope_node_type () == AST_Decl::NT_module)
{
*os << "OBV_";
@@ -69,12 +68,10 @@ be_visitor_valuetype_ami_exception_holder_cs::visit_valuetype (
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype_ami_exception_holder_cs::"
"visit_valuetype - "
- "codegen for scope failed\n"),
+ "codegen for scope failed\n"),
-1);
}
-#else
- ACE_UNUSED_ARG (node);
-#endif
+
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
index 4d3b75db1e8..85a3231b538 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_ch.cpp
@@ -95,8 +95,6 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node)
*os << "#else\n\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << macro << " void operator<<= (::CORBA::Any &, " << node->name ()
<< " *); // copying" << be_nl;
@@ -106,8 +104,6 @@ be_visitor_valuetype_any_op_ch::visit_valuetype (be_valuetype *node)
*os << macro << " ::CORBA::Boolean operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
index 3bd1e867447..53d1bc7234d 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/any_op_cs.cpp
@@ -56,8 +56,6 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
- *os << be_global->core_versioning_begin () << be_nl;
-
// All template specializations must be generated before the instantiations
// in the operators.
*os << be_nl << be_nl
@@ -76,7 +74,6 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
<< "}" << be_uidt_nl
<< "}" << be_nl << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
be_module *module = 0;
@@ -150,8 +147,6 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
*os << "#else\n";
}
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << "// Copying insertion." << be_nl
<< "void" << be_nl
<< "operator<<= (" << be_idt << be_idt_nl
@@ -195,8 +190,6 @@ be_visitor_valuetype_any_op_cs::visit_valuetype (be_valuetype *node)
<< ");" << be_uidt << be_uidt << be_uidt_nl
<< "}" << be_nl << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
-
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
index 87186a23ea3..7daff5dc7c3 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
@@ -41,7 +41,7 @@ be_visitor_obv_operation_arglist::~be_visitor_obv_operation_arglist (void)
{
}
-bool
+idl_bool
be_visitor_obv_operation_arglist::is_amh_exception_holder (be_operation *node)
{
UTL_Scope *scope = node->defined_in ();
@@ -56,18 +56,18 @@ be_visitor_obv_operation_arglist::is_amh_exception_holder (be_operation *node)
if (last_E != 0
&& ACE_OS::strcmp (last_E, "ExceptionHolder") == 0)
{
- return true;
+ return I_TRUE;
}
}
}
- return false;
+ return I_FALSE;
}
int
be_visitor_obv_operation_arglist::visit_operation (be_operation *node)
{
- bool amh_valuetype = this->is_amh_exception_holder (node);
+ idl_bool amh_valuetype = this->is_amh_exception_holder (node);
TAO_OutStream *os = this->ctx_->stream ();
*os << " (";
@@ -99,9 +99,7 @@ be_visitor_obv_operation_arglist::visit_operation (be_operation *node)
/***********************************************************/
if (amh_valuetype)
{
- *os << (be_global->use_raw_throw ()
- ? ""
- : "ACE_ENV_SINGLE_ARG_DECL");
+ *os << "ACE_ENV_SINGLE_ARG_DECL";
}
/***********************************************************/
else
@@ -111,15 +109,11 @@ be_visitor_obv_operation_arglist::visit_operation (be_operation *node)
if (node->argument_count () == 0)
{
- *os << (be_global->use_raw_throw ()
- ? ""
- : " ACE_ENV_SINGLE_ARG_DECL");
+ *os << " ACE_ENV_SINGLE_ARG_DECL";
}
else
{
- *os << (be_global->use_raw_throw ()
- ? ""
- : " ACE_ENV_ARG_DECL");
+ *os << " ACE_ENV_ARG_DECL";
}
}
@@ -129,9 +123,7 @@ be_visitor_obv_operation_arglist::visit_operation (be_operation *node)
{
case TAO_CodeGen::TAO_OBV_OPERATION_ARGLIST_CH:
// Last argument - is always ACE_ENV_ARG_DECL.
- *os << (be_global->use_raw_throw ()
- ? ""
- : "_WITH_DEFAULTS");
+ *os << "_WITH_DEFAULTS";
break;
default:
break;
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp
index df4f4fa224f..2ee76042dcb 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_ch.cpp
@@ -60,8 +60,6 @@ be_visitor_valuetype_cdr_op_ch::visit_valuetype (be_valuetype *node)
<< "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_global->stub_export_macro () << " "
<< "::CORBA::Boolean operator<< (TAO_OutputCDR &, const "
<< node->full_name () << " *);" << be_nl;
@@ -70,8 +68,6 @@ be_visitor_valuetype_cdr_op_ch::visit_valuetype (be_valuetype *node)
<< "::CORBA::Boolean operator>> (TAO_InputCDR &, "
<< node->full_name () << " *&);";
- *os << be_global->core_versioning_end () << be_nl;
-
// Set the substate as generating code for the types defined in our scope.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_SCOPE);
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
index 8e41015613f..35084bec6c4 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
@@ -58,7 +58,7 @@ be_visitor_valuetype_cdr_op_cs::visit_valuetype (be_valuetype *node)
}
TAO_OutStream *os = this->ctx_->stream ();
- node->cli_stub_cdr_op_gen (true);
+ node->cli_stub_cdr_op_gen (I_TRUE);
if (this->visit_scope (node) == -1)
{
@@ -72,8 +72,6 @@ be_visitor_valuetype_cdr_op_cs::visit_valuetype (be_valuetype *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT);
@@ -106,8 +104,6 @@ be_visitor_valuetype_cdr_op_cs::visit_valuetype (be_valuetype *node)
<< be_uidt_nl
<< "}" << be_nl << be_nl;
- *os << be_global->core_versioning_end () << be_nl;
-
if (!node->is_abstract ())
{
// Functions that marshal state.
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
index c89015e7bcd..60a7ea8026c 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cdr_cs.cpp
@@ -952,6 +952,8 @@ be_visitor_valuetype_field_cdr_decl::visit_array (be_array *node)
"visit_array - "),
-1);
}
+
+ ACE_NOTREACHED (return 0);
}
int
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
index a57f897db41..9ba043d54a0 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_ch.cpp
@@ -136,10 +136,10 @@ be_visitor_valuetype_field_ch::visit_array (be_array *node)
{
// Now use this array as a "type" for the subsequent declarator.
// The set method.
- *os << pre_op () << "void " << ub->local_name () << " (const "
+ *os << pre_op () << "void " << ub->local_name () << " ("
<< bt->name () << ")" << post_op () << be_nl;
// The get method.
- *os << pre_op ()
+ *os << pre_op()
<< bt->name () << "_slice *" << ub->local_name ()
<< " (void)" << post_op () << be_nl;
// The get (read/write) method.
@@ -483,8 +483,8 @@ be_visitor_valuetype_field_ch::visit_predefined_type (be_predefined_type *node)
break;
case AST_PredefinedType::PT_any:
// Set method.
- *os << pre_op () << "void " << ub->local_name ()
- << " (const ::" << bt->name () << " &)"
+ *os << pre_op () << "void " << ub->local_name () << " ( ::"
+ << bt->name () << " &)"
<< post_op () << be_nl;
// Get method (read-only).
*os << pre_op () << "const ::" << bt->name () << " &"
@@ -499,12 +499,11 @@ be_visitor_valuetype_field_ch::visit_predefined_type (be_predefined_type *node)
break;
default:
// Set method.
- *os << pre_op () << "void " << ub->local_name ()
- << " (const ::" << bt->name () << ")"
+ *os << pre_op () << "void " << ub->local_name () << " (::"
+ << bt->name () << ")"
<< post_op () << be_nl;
// Get method.
- *os << pre_op () << "::" << bt->name ()
- << " " << ub->local_name ()
+ *os << pre_op () << "::" << bt->name () << " " << ub->local_name ()
<< " (void) const" << post_op ();
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp
index f7d6c991506..5c896c1888f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/field_cs.cpp
@@ -158,7 +158,7 @@ be_visitor_valuetype_field_cs::visit_array (be_array *node)
this->op_name (bu,
os);
- *os << "::" << ub->local_name () << " (const " << fname
+ *os << "::" << ub->local_name () << " (" << fname
<< " val)" << be_nl
<< "{" << be_idt_nl;
*os << fname << "_copy ("
@@ -595,17 +595,14 @@ be_visitor_valuetype_field_cs::visit_predefined_type (be_predefined_type *node)
<< this->pre_op () << "void" << be_nl;
this->op_name (bu, os);
-
- AST_PredefinedType::PredefinedType pt = node->pt ();
- bool is_object = (pt == AST_PredefinedType::PT_object
- || pt == AST_PredefinedType::PT_pseudo);
- // IN parameter semantics call for 'const' qualifier except
- // for interface types, which here are Object and TypeCode.
*os << "::" << ub->local_name ()
- << " (" << (is_object ? "" : "const ") << bt->name ();
+ << " (" << bt->name ();
+
+ AST_PredefinedType::PredefinedType pt = node->pt ();
- if (is_object)
+ if (pt == AST_PredefinedType::PT_pseudo
+ || pt == AST_PredefinedType::PT_object)
{
*os << "_ptr";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
index 58f53155d48..f1748719882 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
@@ -19,8 +19,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_valuetype,
- valuetype,
+ACE_RCSID (be_visitor_valuetype,
+ valuetype,
"$Id$")
be_visitor_valuetype::be_visitor_valuetype (be_visitor_context *ctx)
@@ -35,6 +35,7 @@ be_visitor_valuetype::~be_visitor_valuetype (void)
int
be_visitor_valuetype::visit_valuetype_scope (be_valuetype *node)
{
+ int n_processed = 0;
this->elem_number_ = 0;
for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
@@ -47,10 +48,20 @@ be_visitor_valuetype::visit_valuetype_scope (be_valuetype *node)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
- "bad node in this scope\n"),
+ "bad node in this scope\n"),
-1);
}
+ AST_Field *field = AST_Field::narrow_from_decl (d);
+
+ if (field && field->visibility () == AST_Field::vis_PRIVATE)
+ {
+ continue;
+ // Ignore private fields in this run
+ // AST_Attribute derives from AST_Field, so test for
+ // vis_PRIVATE is ok (the attribute has it set to vis_NA)
+ }
+
be_decl *bd = be_decl::narrow_from_decl (d);
// Set the scope node as "node" in which the code is being
// generated so that elements in the node's scope can use it
@@ -60,24 +71,63 @@ be_visitor_valuetype::visit_valuetype_scope (be_valuetype *node)
this->ctx_->node (bd);
this->elem_number_++;
+ if (bd == 0 || bd->accept (this) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_scope::visit_scope - "
+ "codegen for scope failed\n"),
+ -1);
+
+ }
+ }
+
+ this->elem_number_ = 0;
+
+ for (UTL_ScopeActiveIterator sj (node, UTL_Scope::IK_decls);
+ !sj.is_done ();
+ sj.next())
+ {
+ AST_Decl *d = sj.item ();
+
+ if (!d)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_scope::visit_scope - "
+ "bad node in this scope\n"),
+ -1);
+ }
+
AST_Field *field = AST_Field::narrow_from_decl (d);
- if (field != 0 && field->visibility () == AST_Field::vis_PRIVATE)
+ if (!field
+ || (field && field->visibility () != AST_Field::vis_PRIVATE))
{
- this->begin_private ();
+ // Only private fields.
+ continue;
}
- else
+
+ ++ n_processed;
+
+ if (n_processed == 1)
{
- this->begin_public ();
+ this->begin_private ();
}
+ be_decl *bd = be_decl::narrow_from_decl (d);
+ // Set the scope node as "node" in which the code is being
+ // generated so that elements in the node's scope can use it
+ // for code generation.
+
+ this->ctx_->scope (node->decl ());
+ this->ctx_->node (bd);
+ this->elem_number_++;
+
if (bd == 0 || bd->accept (this) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
"codegen for scope failed\n"),
-1);
-
}
}
@@ -206,7 +256,7 @@ be_visitor_valuetype::visit_constant (be_constant *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_constant - "
- "Bad context state\n"),
+ "Bad context state\n"),
-1);
}
}
@@ -283,7 +333,7 @@ be_visitor_valuetype::visit_enum (be_enum *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_enum - "
- "Bad context state\n"),
+ "Bad context state\n"),
-1);
}
}
@@ -293,7 +343,7 @@ be_visitor_valuetype::visit_enum (be_enum *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_enum - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -316,7 +366,7 @@ be_visitor_valuetype::visit_exception (be_exception *node)
break;
}
case TAO_CodeGen::TAO_ROOT_CI:
- {
+ {
be_visitor_exception_ci visitor (&ctx);
status = node->accept (&visitor);
break;
@@ -360,7 +410,7 @@ be_visitor_valuetype::visit_exception (be_exception *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_interface::"
"visit_exception - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -427,7 +477,7 @@ be_visitor_valuetype::visit_structure (be_structure *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_structure - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -460,7 +510,7 @@ be_visitor_valuetype::visit_structure_fwd (be_structure_fwd *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_structure_fwd - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -532,7 +582,7 @@ be_visitor_valuetype::visit_union (be_union *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_union - "
- "Bad context state\n"),
+ "Bad context state\n"),
-1);
}
}
@@ -542,7 +592,7 @@ be_visitor_valuetype::visit_union (be_union *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_union - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -575,7 +625,7 @@ be_visitor_valuetype::visit_union_fwd (be_union_fwd *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_union_fwd - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -647,7 +697,7 @@ be_visitor_valuetype::visit_typedef (be_typedef *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_typedef - "
- "Bad context state\n"),
+ "Bad context state\n"),
-1);
}
}
@@ -657,7 +707,7 @@ be_visitor_valuetype::visit_typedef (be_typedef *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_valuetype::"
"visit_typedef - "
- "failed to accept visitor\n"),
+ "failed to accept visitor\n"),
-1);
}
@@ -689,7 +739,7 @@ be_visitor_valuetype::gen_pd (be_valuetype *node)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
- "bad node in this scope\n"),
+ "bad node in this scope\n"),
-1);
}
@@ -715,7 +765,7 @@ be_visitor_valuetype::gen_pd (be_valuetype *node)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_scope::visit_scope - "
- "codegen for scope failed\n"),
+ "codegen for scope failed\n"),
-1);
}
}
@@ -738,7 +788,7 @@ be_visitor_valuetype::gen_field_pd (be_field *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_ch::"
"visit_field - "
- "Bad field type\n"),
+ "Bad field type\n"),
-1);
}
@@ -755,11 +805,11 @@ be_visitor_valuetype::gen_field_pd (be_field *node)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_field_ch::"
"visit_field - "
- "codegen for field type failed\n"),
+ "codegen for field type failed\n"),
-1);
}
- // Now output the field name.
+ // Now output the field name.
*os << " " << vt->field_pd_prefix ()
<< node->local_name ()
<< vt->field_pd_postfix () << ";";
@@ -767,54 +817,6 @@ be_visitor_valuetype::gen_field_pd (be_field *node)
return 0;
}
-void
-be_visitor_valuetype::gen_obv_init_constructor_args (be_valuetype *node,
- unsigned long &index)
-{
- TAO_OutStream *os = this->ctx_->stream ();
- AST_ValueType *parent = node->inherits_concrete ();
-
- // Generate for inherited members first.
- if (parent != 0)
- {
- be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
- this->gen_obv_init_constructor_args (be_parent, index);
- }
-
- be_visitor_context ctx (*this->ctx_);
- be_visitor_args_arglist visitor (&ctx);
-
- for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
- !si.is_done ();
- si.next())
- {
- be_field *f = be_field::narrow_from_decl (si.item ());
-
- if (f == 0)
- {
- continue;
- }
-
- *os << (index++ != 0 ? "," : "") << be_nl;
-
- ACE_CString arg_name ("_tao_init_");
- arg_name += f->local_name ()->get_string ();
- Identifier id (arg_name.c_str ());
- UTL_ScopedName sn (&id, 0);
- be_type *ft = be_type::narrow_from_decl (f->field_type ());
- bool seen = ft->seen_in_operation ();
-
- // This sets ft->seen_in_operation (true), so we have to
- // restore the original value below.
- be_argument arg (AST_Argument::dir_IN,
- ft,
- &sn);
- ft->seen_in_operation (seen);
- visitor.visit_argument (&arg);
- id.destroy ();
- }
-}
// Generate the _init definition.
int
@@ -860,18 +862,18 @@ be_visitor_valuetype::gen_init_impl (be_valuetype *node)
char fname [NAMEBUFSIZE]; // to hold the full and
char lname [NAMEBUFSIZE]; // local _out names
- ACE_OS::memset (fname,
- '\0',
+ ACE_OS::memset (fname,
+ '\0',
NAMEBUFSIZE);
- ACE_OS::sprintf (fname,
- "%s_init",
+ ACE_OS::sprintf (fname,
+ "%s_init",
node->full_name ());
- ACE_OS::memset (lname,
- '\0',
+ ACE_OS::memset (lname,
+ '\0',
NAMEBUFSIZE);
- ACE_OS::sprintf (lname,
- "%s_init",
+ ACE_OS::sprintf (lname,
+ "%s_init",
node->local_name ());
// Destructor.
@@ -888,7 +890,7 @@ be_visitor_valuetype::gen_init_impl (be_valuetype *node)
return 0;
}
-bool
+idl_bool
be_visitor_valuetype::obv_need_ref_counter (be_valuetype* node)
{
// VT needs RefCounter if it has concrete factory or supports an
@@ -903,7 +905,7 @@ be_visitor_valuetype::obv_need_ref_counter (be_valuetype* node)
// Now go thru our base VTs and see if one has already.
for (int i = 0; i < node->n_inherits (); ++i)
{
- be_valuetype *vt =
+ be_valuetype *vt =
be_valuetype::narrow_from_decl (node->inherits ()[i]);
if (vt != 0)
@@ -918,7 +920,7 @@ be_visitor_valuetype::obv_need_ref_counter (be_valuetype* node)
return 1;
}
-bool
+idl_bool
be_visitor_valuetype::obv_have_ref_counter (be_valuetype* node)
{
@@ -950,20 +952,20 @@ be_visitor_valuetype::obv_have_ref_counter (be_valuetype* node)
return 0;
}
-bool
+idl_bool
be_visitor_valuetype::is_amh_exception_holder (be_valuetype *node)
{
if (ACE_OS::strncmp (node->local_name (), "AMH_", 4) == 0)
{
- const char *last_E =
+ const char *last_E =
ACE_OS::strrchr (node->full_name (), 'E');
if (last_E != 0
&& ACE_OS::strcmp (last_E, "ExceptionHolder") == 0)
{
- return true;
+ return I_TRUE;
}
}
- return false;
+ return I_FALSE;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
index 22746d2ae4a..5760338f9b8 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
@@ -78,7 +78,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
// Node valuetype inherits from other valuetypes (OMG 20.17.9)
// (ordinary (not abstract) interfaces ignored).
- *os << be_idt_nl << ": " << be_idt;
+ *os << be_idt_nl <<": " << be_idt;
long i; // loop index
be_valuetype *inherited = 0;
@@ -134,13 +134,13 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
** 2.3) Make the destructor public (instead of protected)
** 2.4) Generate a private CORBA::Exception* field.
** 2.5) Generate the tao_marshal and tao_unmarshal methods as
- ** non-abstract.
+ ** non-abstarct.
** 2.6) Generate the right throw spec for the AMH ExceptionHolders
************************************************************************/
/****************************************************************/
// 1) Find out if the ValueType is an AMH_*ExceptionHolder
- bool is_an_amh_exception_holder = this->is_amh_exception_holder (node);
+ idl_bool is_an_amh_exception_holder = this->is_amh_exception_holder (node);
if (is_an_amh_exception_holder)
{
@@ -151,7 +151,8 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
*os << "public virtual ::CORBA::DefaultValueRefCountBase";
}
- else if (node->node_type () == AST_Decl::NT_eventtype)
+
+ if (node->node_type () == AST_Decl::NT_eventtype)
{
if (inherits_eventtype == 0)
{
@@ -165,6 +166,11 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
}
else if (n_inherits == 0)
{
+ if (is_an_amh_exception_holder)
+ {
+ *os << "," << be_nl;
+ }
+
*os << "public virtual ::CORBA::ValueBase";
}
@@ -228,8 +234,8 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
node->traverse_supports_list_graphs (
be_visitor_valuetype_ch::gen_supported_ops,
os,
- false,
- true
+ I_FALSE,
+ I_TRUE
);
if (status == -1)
@@ -259,7 +265,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
// instantiate us.
*os << be_uidt_nl << be_nl << "protected:" << be_idt_nl
<< node->local_name ()
- << " (void);" << be_nl;
+ << " (void);" << be_nl << be_nl;
if (!is_an_amh_exception_holder)
{
@@ -373,7 +379,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
}
}
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
@@ -476,8 +482,7 @@ be_visitor_valuetype_ch::begin_public (void)
{
TAO_OutStream *os = this->ctx_->stream ();
- *os << be_uidt_nl << be_nl << "public:"
- << be_idt;
+ *os << "public:" << be_idt_nl;
}
void
@@ -485,8 +490,7 @@ be_visitor_valuetype_ch::begin_private (void)
{
TAO_OutStream *os = this->ctx_->stream ();
- *os << be_uidt_nl << be_nl << "protected:"
- << be_idt;
+ *os << be_uidt_nl << be_nl << "protected:" << be_idt;
}
int
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
index ad92ec14966..8e9a6f25b3f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
@@ -47,6 +47,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node)
if (be_global->tc_support ())
{
be_visitor_context ctx (*this->ctx_);
+ // ctx.sub_state (TAO_CodeGen::TAO_TC_DEFN_TYPECODE);
TAO::be_visitor_value_typecode tc_visitor (&ctx);
if (tc_visitor.visit_valuetype (node) == -1)
@@ -136,7 +137,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node)
*os << node->name () << "::~" << node->local_name () << " (void)" << be_nl;
*os << "{}\n" << be_nl;
- bool is_an_amh_exception_holder =
+ idl_bool is_an_amh_exception_holder =
this->is_amh_exception_holder (node);
// Nothing to marshal if abstract valuetype.
@@ -253,19 +254,19 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node)
<< ");" << be_uidt << be_uidt_nl << be_nl
<< "if (retval == 0)" << be_idt_nl
<< "{" << be_idt_nl
- << "return false;" << be_uidt_nl
+ << "return 0;" << be_uidt_nl
<< "}" << be_uidt_nl << be_nl
<< "if (factory.in () != 0)" << be_idt_nl
<< "{" << be_idt_nl
<< "base = factory->create_for_unmarshal ();" << be_nl << be_nl
<< "if (base == 0)" << be_idt_nl
<< "{" << be_idt_nl
- << "return false; // %! except.?" << be_uidt_nl
+ << "return 0; // %! except.?" << be_uidt_nl
<< "}" << be_uidt_nl << be_nl
<< "retval = base->_tao_unmarshal_v (strm);" << be_nl << be_nl
<< "if (retval == 0)" << be_idt_nl
<< "{" << be_idt_nl
- << "return false;" << be_uidt_nl
+ << "return 0;" << be_uidt_nl
<< "}" << be_uidt << be_uidt_nl
<< "}" << be_uidt_nl << be_nl
<< "// Now base must be null or point to the unmarshaled object." << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp
index ba41ba1371a..c0c9e8e97f6 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp
@@ -19,8 +19,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_valuetype_init,
- arglist_ch,
+ACE_RCSID (be_visitor_valuetype_init,
+ arglist_ch,
"$Id$")
be_visitor_valuetype_init_arglist_ch::be_visitor_valuetype_init_arglist_ch (
@@ -42,9 +42,9 @@ be_visitor_valuetype_init_arglist_ch::visit_factory (be_factory *node)
TAO_OutStream& os = *(this->ctx_->stream ());
os << " (";
-
+
if (node->nmembers () > 0)
- {
+ {
os << be_idt << be_idt_nl;
// All we do is hand over code generation to our scope.
@@ -121,21 +121,20 @@ be_visitor_valuetype_init_arglist_ch::gen_throw_spec (be_factory *node)
{
TAO_OutStream *os = this->ctx_->stream ();
- if (node->exceptions ())
- {
- const char *throw_spec_open = "throw (";
- const char *throw_spec_close = ")";
+ const char *throw_spec_open = "throw (";
+ const char *throw_spec_close = ")";
- if (!be_global->use_raw_throw ())
- {
- throw_spec_open = "ACE_THROW_SPEC ((";
- throw_spec_close = "))";
- }
+ if (!be_global->use_raw_throw ())
+ {
+ throw_spec_open = "ACE_THROW_SPEC ((";
+ throw_spec_close = "))";
+ }
- *os << be_nl << throw_spec_open << be_idt;
-
- bool first = true;
+ *os << be_nl << throw_spec_open;
+ *os << be_idt_nl << "::CORBA::SystemException";
+ if (node->exceptions ())
+ {
// Initialize an iterator to iterate thru the exception list.
for (UTL_ExceptlistActiveIterator ei (node->exceptions ());
!ei.is_done ();
@@ -154,15 +153,13 @@ be_visitor_valuetype_init_arglist_ch::gen_throw_spec (be_factory *node)
}
- *os << (first ? "" : ",") << be_nl
- << excp->name ();
-
- first = false;
+ *os << "," << be_nl;
+ *os << excp->name ();
}
-
- *os << be_uidt_nl << throw_spec_close << be_uidt;
}
+ *os << be_uidt_nl << throw_spec_close << be_uidt;
+
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp
index c68a18b7670..704fd460b48 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp
@@ -108,16 +108,16 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node)
os << be_nl << be_nl
<< "virtual ::CORBA::ValueBase *" << be_nl
<< "create_for_unmarshal ("
- << be_idt << be_idt
- << env_sngl_dflts << be_uidt_nl
+ << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
if (node->supports_abstract ())
{
os << be_nl << be_nl
<< "virtual ::CORBA::AbstractBase_ptr" << be_nl
- << "create_for_unmarshal_abstract (" << be_idt << be_idt
- << env_sngl_dflts << be_uidt_nl
+ << "create_for_unmarshal_abstract (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
<< ");" << be_uidt;
}
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp
index 07d27795d03..37c2eb0a2da 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp
@@ -99,7 +99,7 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node)
<< node->name () << "_init *" << be_nl << node->name ()
<< "_init::_downcast ( ::CORBA::ValueFactoryBase *v)" << be_nl
<< "{" << be_idt_nl
- << "return dynamic_cast< ::" << node->name ()
+ << "return dynamic_cast< ::" << node->name ()
<< "_init * > (v);" << be_uidt_nl
<< "}";
@@ -118,11 +118,8 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node)
// generate create_for_unmarshal()
*os << be_nl << be_nl
<< "::CORBA::ValueBase *" << be_nl
- << fname << "::create_for_unmarshal" << " ("
- << (be_global->use_raw_throw ()
- ? "void"
- : "ACE_ENV_SINGLE_ARG_DECL")
- << ")" << be_nl
+ << fname << "::create_for_unmarshal" << " "
+ << "(ACE_ENV_SINGLE_ARG_DECL)" << be_nl
<< "{" << be_idt_nl
<< "::CORBA::ValueBase *ret_val = 0;" << be_nl
<< "ACE_NEW_THROW_EX (" << be_idt << be_idt_nl
@@ -137,11 +134,7 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node)
{
*os << be_nl << be_nl
<< "::CORBA::AbstractBase_ptr" << be_nl
- << fname << "::create_for_unmarshal_abstract ("
- << (be_global->use_raw_throw ()
- ? "void"
- : "ACE_ENV_SINGLE_ARG_DECL")
- << ")" << be_nl
+ << fname << "::create_for_unmarshal_abstract (ACE_ENV_SINGLE_ARG_DECL)" << be_nl
<< "{" << be_idt_nl
<< "::CORBA::AbstractBase *ret_val = 0;" << be_nl
<< "ACE_NEW_THROW_EX (" << be_idt << be_idt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
index 843711ebdb3..e0d5cb52626 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
@@ -142,7 +142,33 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
// STEP 2: Generate the body ==
- *os << "{";
+ *os << "{" << be_nl;
+
+ this->begin_public ();
+
+ // Default constructor and destructor are public if OBV class is concrete
+ if (!node->have_operation ())
+ {
+
+ *os << be_nl;
+
+ if (! node->is_nested ())
+ {
+ *os << "OBV_";
+ }
+
+ *os << node->local_name () << " (void);";
+
+ *os << be_nl << "virtual ~";
+
+ if (! node->is_nested ())
+ {
+ *os << "OBV_";
+ }
+
+ *os << node->local_name () << " (void);";
+ }
+
// Generate code for the OBV_ class definition.
if (this->visit_valuetype_scope (node) == -1)
@@ -168,51 +194,26 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
if (node->have_operation ())
{
- this->begin_private ();
- }
- else
- {
- this->begin_public ();
- }
-
- *os << be_nl;
-
- // Default constructor.
- if (! node->is_nested ())
- {
- *os << "OBV_";
- }
+ // Default constructor and destructor are protected if OBV class is abstract
+ *os << be_nl << be_uidt_nl << "protected:" << be_idt;
- *os << node->local_name () << " (void);";
-
- // Initializing constructor.
- if (node->has_member ())
- {
*os << be_nl;
-
if (! node->is_nested ())
{
*os << "OBV_";
}
-
- *os << node->local_name () << " (" << be_idt << be_idt;
-
- unsigned long index = 0;
- this->gen_obv_init_constructor_args (node, index);
-
- *os << be_uidt_nl
- << ");" << be_uidt;
- }
- // Virtual destructor.
- *os << be_nl << "virtual ~";
+ *os << node->local_name () << " (void);";
- if (! node->is_nested ())
- {
- *os << "OBV_";
- }
+ *os << be_nl << "virtual ~";
- *os << node->local_name () << " (void);";
+ if (! node->is_nested ())
+ {
+ *os << "OBV_";
+ }
+
+ *os << node->local_name () << " (void);";
+ }
// Map fields to private data.
if (!node->opt_accessor ())
@@ -286,23 +287,14 @@ be_visitor_valuetype_obv_ch::visit_field (be_field *node)
void
be_visitor_valuetype_obv_ch::begin_public (void)
{
- AST_Decl::NodeType nt = this->ctx_->node ()->node_type ();
-
- // These types are skipped in the OBV class.
- if (nt == AST_Decl::NT_attr || nt == AST_Decl::NT_op)
- {
- return;
- }
-
TAO_OutStream *os = this->ctx_->stream ();
- *os << be_uidt_nl << be_nl
- << "public:" << be_idt;
+ *os << "public:" << be_idt;
}
void
be_visitor_valuetype_obv_ch::begin_private (void)
{
TAO_OutStream *os = this->ctx_->stream ();
- *os << be_uidt_nl << be_nl
- << "protected:" << be_idt;
+ *os << be_uidt_nl << be_nl;
+ *os << "protected:" << be_idt;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
index a80620b57f3..34dd41725df 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
@@ -33,7 +33,7 @@ ACE_RCSID (be_visitor_valuetype,
be_visitor_valuetype_obv_cs::be_visitor_valuetype_obv_cs (
be_visitor_context *ctx
)
- : be_visitor_valuetype (ctx)
+ : be_visitor_scope (ctx)
{
}
@@ -57,7 +57,6 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- // Default constructor.
*os << node->full_obv_skel_name () << "::";
if (! node->is_nested ())
@@ -67,33 +66,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
*os << node->local_name () << " (void)" << be_nl
<< "{}" << be_nl << be_nl;
-
- // Initializing constructor.
- if (node->has_member ())
- {
- *os << node->full_obv_skel_name () << "::";
-
- if (! node->is_nested ())
- {
- *os << "OBV_";
- }
-
- *os << node->local_name () << " (" << be_idt << be_idt;
-
- unsigned long index = 0;
- this->gen_obv_init_constructor_args (node, index);
- *os << be_uidt_nl
- << ")" << be_uidt << be_uidt_nl
- << "{" << be_idt;
-
- this->gen_obv_init_constructor_inits (node);
-
- *os << be_uidt_nl
- << "}" << be_nl << be_nl;
- }
-
- // Destructor.
*os << node->full_obv_skel_name () << "::~";
if (! node->is_nested ())
@@ -184,74 +157,3 @@ be_visitor_valuetype_obv_cs::visit_field (be_field *node)
return 0;
}
-
-void
-be_visitor_valuetype_obv_cs::gen_obv_init_base_constructor_args (
- be_valuetype *node,
- unsigned long &index
- )
-{
- TAO_OutStream *os = this->ctx_->stream ();
- AST_ValueType *parent = node->inherits_concrete ();
-
- // Generate for inherited members first.
- if (parent != 0)
- {
- be_valuetype *be_parent =
- be_valuetype::narrow_from_decl (parent);
- this->gen_obv_init_base_constructor_args (be_parent, index);
- }
-
- for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
- !si.is_done ();
- si.next())
- {
- // be_attribute doesn't inherit from be_field (unlike the
- // AST_* counterparts, so this screens attributes and operations.
- be_field *f = be_field::narrow_from_decl (si.item ());
-
- if (f == 0)
- {
- continue;
- }
-
- *os << (index++ != 0 ? "," : "") << be_nl
- << "_tao_init_" << f->local_name ();
- }
-}
-
-void
-be_visitor_valuetype_obv_cs::gen_obv_init_constructor_inits (
- be_valuetype *node
- )
-{
- TAO_OutStream *os = this->ctx_->stream ();
- AST_ValueType *parent = node->inherits_concrete ();
-
- // Generate for inherited members first.
- if (parent != 0)
- {
- be_valuetype *be_parent = be_valuetype::narrow_from_decl (parent);
- this->gen_obv_init_constructor_inits (be_parent);
- }
-
- for (UTL_ScopeActiveIterator si (node, UTL_Scope::IK_decls);
- !si.is_done ();
- si.next())
- {
- be_field *f = be_field::narrow_from_decl (si.item ());
-
- // be_attribute doesn't inherit from be_field (unlike the
- // AST_* counterparts, so this screens attributes and operations.
- if (f == 0)
- {
- continue;
- }
-
- *os << be_nl
- << f->local_name () << " (_tao_init_" << f->local_name ()
- << ");";
- }
-}
-
-
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
index ff1c24cacc4..899854c0915 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/any_op_ch.cpp
@@ -85,7 +85,6 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
// corresponding to their module, others do not.
*os << "\n\n#if defined (ACE_ANY_OPS_USE_NAMESPACE)\n";
- *os << be_global->core_versioning_begin () << be_nl;
be_util::gen_nested_namespace_begin (os, module);
// emit nested variation of any operators
@@ -100,12 +99,10 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
<< node->local_name () << " *&);";
be_util::gen_nested_namespace_end (os, module);
- *os << be_global->core_versioning_end () << be_nl;
+
// emit #else
*os << "#else\n\n";
}
-
- *os << be_global->core_versioning_begin () << be_nl;
*os << macro << " void"
<< " operator<<= ( ::CORBA::Any &, " << node->name ()
@@ -116,8 +113,7 @@ be_visitor_valuetype_fwd_any_op_ch::visit_valuetype_fwd (
*os << macro << " ::CORBA::Boolean"
<< " operator>>= (const ::CORBA::Any &, "
<< node->name () << " *&);";
-
- *os << be_global->core_versioning_end () << be_nl;
+
if (module != 0)
{
*os << "\n\n#endif";
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
index cb45192558c..2280f0d5444 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ch.cpp
@@ -78,8 +78,6 @@ be_visitor_valuetype_fwd_cdr_op_ch::visit_valuetype_fwd (
*os << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
- *os << be_global->core_versioning_begin () << be_nl;
-
*os << be_global->stub_export_macro ()
<< " ::CORBA::Boolean operator<< (TAO_OutputCDR &, const "
<< node->full_name () << " *);" << be_nl;
@@ -87,11 +85,9 @@ be_visitor_valuetype_fwd_cdr_op_ch::visit_valuetype_fwd (
*os << be_global->stub_export_macro ()
<< " ::CORBA::Boolean operator>> (TAO_InputCDR &, "
<< node->full_name () << " *&);" << be_nl;
-
- *os << be_global->core_versioning_end () << be_nl;
- node->cli_hdr_cdr_op_gen (true);
- bfd->cli_hdr_cdr_op_gen (true);
+ node->cli_hdr_cdr_op_gen (I_TRUE);
+ bfd->cli_hdr_cdr_op_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ci.cpp
index 2b1638de626..307fd0c236d 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/cdr_op_ci.cpp
@@ -92,6 +92,6 @@ be_visitor_valuetype_fwd_cdr_op_ci::visit_valuetype_fwd (
<< node->full_name () << " *&);";
// Done with this.
- node->cli_inline_cdr_op_gen (true);
+ node->cli_inline_cdr_op_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp
index d5c8ecd8e5c..10c14850898 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype_fwd/valuetype_fwd_ch.cpp
@@ -53,7 +53,7 @@ be_visitor_valuetype_fwd_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
// Copy the fwd helper name back to the forward declared interface node.
node->fwd_helper_name (bfd->fwd_helper_name ());
- node->cli_hdr_gen (true);
+ node->cli_hdr_gen (I_TRUE);
return 0;
}
diff --git a/TAO/TAO_IDL/be_include/be_array.h b/TAO/TAO_IDL/be_include/be_array.h
index 70f5f309ac0..b9ed9ab1979 100644
--- a/TAO/TAO_IDL/be_include/be_array.h
+++ b/TAO/TAO_IDL/be_include/be_array.h
@@ -39,8 +39,8 @@ public:
be_array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
~be_array (void);
diff --git a/TAO/TAO_IDL/be_include/be_attribute.h b/TAO/TAO_IDL/be_include/be_attribute.h
index 74f245a48e6..882ee417deb 100644
--- a/TAO/TAO_IDL/be_include/be_attribute.h
+++ b/TAO/TAO_IDL/be_include/be_attribute.h
@@ -36,11 +36,11 @@ public:
be_attribute (void);
// Default constructor.
- be_attribute (bool ro,
+ be_attribute (idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
// Visiting.
diff --git a/TAO/TAO_IDL/be_include/be_codegen.h b/TAO/TAO_IDL/be_include/be_codegen.h
index 356ed54b3c6..20836ad4468 100644
--- a/TAO/TAO_IDL/be_include/be_codegen.h
+++ b/TAO/TAO_IDL/be_include/be_codegen.h
@@ -264,7 +264,7 @@ public:
int start_server_template_skeletons (const char *fname);
// Set the server template skeletons stream.
-
+
int start_anyop_header (const char *fname);
// Set the anyop header stream.
@@ -272,21 +272,12 @@ public:
// Set the anyop source stream.
int end_client_header (void);
- // Generate code at the end such as the <<= and >>= operators along
- // with the ending #endif statement.
-
- /// Generate necessary code at end of client inline file.
- void end_client_inline (void);
-
- /// Generate necessary code at end of client stub file.
- void end_client_stubs (void);
+ // Generate code at the end such as the <<= and >>= operators alongwith the
+ // ending #endif statement.
int end_server_header (void);
// Put a last #endif in the server header.
- /// Generate necessary code at end of server inline file.
- void end_server_inline (void);
-
int end_implementation_header (const char *fname);
// Put a last #endif in the server header.
@@ -304,7 +295,7 @@ public:
int end_server_skeletons (void);
// Put a last #endif in the server skeletons.
-
+
int end_anyop_header (void);
// Put a last #endif in the anyop header.
@@ -346,7 +337,7 @@ public:
TAO_OutStream *anyop_header (void);
// Get the anyop header stream.
-
+
TAO_OutStream *anyop_source (void);
// Get the anyop source stream.
@@ -444,7 +435,7 @@ private:
TAO_OutStream *server_template_inline_;
// Server side template inline file.
-
+
TAO_OutStream *anyop_header_;
// Anyop header file.
diff --git a/TAO/TAO_IDL/be_include/be_decl.h b/TAO/TAO_IDL/be_include/be_decl.h
index 0b49ae63732..e3af070c35a 100644
--- a/TAO/TAO_IDL/be_include/be_decl.h
+++ b/TAO/TAO_IDL/be_include/be_decl.h
@@ -70,101 +70,101 @@ public:
virtual void destroy (void);
// Cleanup function.
-
- void set_local (bool val);
+
+ void set_local (idl_bool val);
// Temporarily set this node's is_local_ flag.
// Boolean methods to test if code was already generated.
- bool cli_hdr_gen (void);
- bool cli_stub_gen (void);
- bool cli_inline_gen (void);
- bool srv_hdr_gen (void);
- bool impl_hdr_gen (void);
- bool srv_skel_gen (void);
- bool impl_skel_gen (void);
- bool srv_inline_gen (void);
- bool cli_hdr_any_op_gen (void);
- bool cli_stub_any_op_gen (void);
- bool cli_hdr_cdr_op_gen (void);
- bool cli_stub_cdr_op_gen (void);
- bool cli_inline_cdr_op_gen (void);
- bool cli_inline_cdr_decl_gen (void);
- bool cli_hdr_serializer_op_gen (void);
- bool cli_stub_serializer_op_gen (void);
- bool cli_inline_serializer_op_gen (void);
- bool cli_inline_serializer_decl_gen (void);
-
- bool cli_traits_gen (void);
- bool cli_arg_traits_gen (void);
- bool srv_arg_traits_gen (void);
- bool srv_sarg_traits_gen (void);
- bool cli_tmpl_class_gen (void);
- bool cli_pragma_inst_gen (void);
- bool cli_inarg_tmpl_class_gen (void);
- bool cli_inarg_pragma_inst_gen (void);
- bool cli_inoutarg_tmpl_class_gen (void);
- bool cli_inoutarg_pragma_inst_gen (void);
- bool cli_outarg_tmpl_class_gen (void);
- bool cli_outarg_pragma_inst_gen (void);
- bool cli_retarg_tmpl_class_gen (void);
- bool cli_retarg_pragma_inst_gen (void);
- bool srv_tmpl_class_gen (void);
- bool srv_pragma_inst_gen (void);
- bool srv_inarg_tmpl_class_gen (void);
- bool srv_inarg_pragma_inst_gen (void);
- bool srv_inoutarg_tmpl_class_gen (void);
- bool srv_inoutarg_pragma_inst_gen (void);
- bool srv_outarg_tmpl_class_gen (void);
- bool srv_outarg_pragma_inst_gen (void);
- bool srv_retarg_tmpl_class_gen (void);
- bool srv_retarg_pragma_inst_gen (void);
- bool ccm_pre_proc_gen (void);
+ idl_bool cli_hdr_gen (void);
+ idl_bool cli_stub_gen (void);
+ idl_bool cli_inline_gen (void);
+ idl_bool srv_hdr_gen (void);
+ idl_bool impl_hdr_gen (void);
+ idl_bool srv_skel_gen (void);
+ idl_bool impl_skel_gen (void);
+ idl_bool srv_inline_gen (void);
+ idl_bool cli_hdr_any_op_gen (void);
+ idl_bool cli_stub_any_op_gen (void);
+ idl_bool cli_hdr_cdr_op_gen (void);
+ idl_bool cli_stub_cdr_op_gen (void);
+ idl_bool cli_inline_cdr_op_gen (void);
+ idl_bool cli_inline_cdr_decl_gen (void);
+ idl_bool cli_hdr_serializer_op_gen (void);
+ idl_bool cli_stub_serializer_op_gen (void);
+ idl_bool cli_inline_serializer_op_gen (void);
+ idl_bool cli_inline_serializer_decl_gen (void);
+
+ idl_bool cli_traits_gen (void);
+ idl_bool cli_arg_traits_gen (void);
+ idl_bool srv_arg_traits_gen (void);
+ idl_bool srv_sarg_traits_gen (void);
+ idl_bool cli_tmpl_class_gen (void);
+ idl_bool cli_pragma_inst_gen (void);
+ idl_bool cli_inarg_tmpl_class_gen (void);
+ idl_bool cli_inarg_pragma_inst_gen (void);
+ idl_bool cli_inoutarg_tmpl_class_gen (void);
+ idl_bool cli_inoutarg_pragma_inst_gen (void);
+ idl_bool cli_outarg_tmpl_class_gen (void);
+ idl_bool cli_outarg_pragma_inst_gen (void);
+ idl_bool cli_retarg_tmpl_class_gen (void);
+ idl_bool cli_retarg_pragma_inst_gen (void);
+ idl_bool srv_tmpl_class_gen (void);
+ idl_bool srv_pragma_inst_gen (void);
+ idl_bool srv_inarg_tmpl_class_gen (void);
+ idl_bool srv_inarg_pragma_inst_gen (void);
+ idl_bool srv_inoutarg_tmpl_class_gen (void);
+ idl_bool srv_inoutarg_pragma_inst_gen (void);
+ idl_bool srv_outarg_tmpl_class_gen (void);
+ idl_bool srv_outarg_pragma_inst_gen (void);
+ idl_bool srv_retarg_tmpl_class_gen (void);
+ idl_bool srv_retarg_pragma_inst_gen (void);
+ idl_bool ccm_pre_proc_gen (void);
// Set the flag indicating that code generation is done.
- void cli_hdr_gen (bool);
- void cli_stub_gen (bool);
- void cli_inline_gen (bool);
- void srv_hdr_gen (bool);
- void impl_hdr_gen (bool);
- void srv_skel_gen (bool);
- void impl_skel_gen (bool);
- void srv_inline_gen (bool);
- void cli_hdr_any_op_gen (bool);
- void cli_stub_any_op_gen (bool);
- void cli_hdr_cdr_op_gen (bool);
- void cli_stub_cdr_op_gen (bool);
- void cli_inline_cdr_op_gen (bool);
- void cli_inline_cdr_decl_gen (bool);
- void cli_hdr_serializer_op_gen (bool);
- void cli_stub_serializer_op_gen (bool);
- void cli_inline_serializer_op_gen (bool);
- void cli_inline_serializer_decl_gen (bool);
-
- void cli_traits_gen (bool);
- void cli_arg_traits_gen (bool);
- void srv_arg_traits_gen (bool);
- void srv_sarg_traits_gen (bool);
- void cli_tmpl_class_gen (bool);
- void cli_pragma_inst_gen (bool);
- void cli_inarg_tmpl_class_gen (bool);
- void cli_inarg_pragma_inst_gen (bool);
- void cli_inoutarg_tmpl_class_gen (bool);
- void cli_inoutarg_pragma_inst_gen (bool);
- void cli_outarg_tmpl_class_gen (bool);
- void cli_outarg_pragma_inst_gen (bool);
- void cli_retarg_tmpl_class_gen (bool);
- void cli_retarg_pragma_inst_gen (bool);
- void srv_tmpl_class_gen (bool);
- void srv_pragma_inst_gen (bool);
- void srv_inarg_tmpl_class_gen (bool);
- void srv_inarg_pragma_inst_gen (bool);
- void srv_inoutarg_tmpl_class_gen (bool);
- void srv_inoutarg_pragma_inst_gen (bool);
- void srv_outarg_tmpl_class_gen (bool);
- void srv_outarg_pragma_inst_gen (bool);
- void srv_retarg_tmpl_class_gen (bool);
- void srv_retarg_pragma_inst_gen (bool);
- void ccm_pre_proc_gen (bool);
+ void cli_hdr_gen (idl_bool);
+ void cli_stub_gen (idl_bool);
+ void cli_inline_gen (idl_bool);
+ void srv_hdr_gen (idl_bool);
+ void impl_hdr_gen (idl_bool);
+ void srv_skel_gen (idl_bool);
+ void impl_skel_gen (idl_bool);
+ void srv_inline_gen (idl_bool);
+ void cli_hdr_any_op_gen (idl_bool);
+ void cli_stub_any_op_gen (idl_bool);
+ void cli_hdr_cdr_op_gen (idl_bool);
+ void cli_stub_cdr_op_gen (idl_bool);
+ void cli_inline_cdr_op_gen (idl_bool);
+ void cli_inline_cdr_decl_gen (idl_bool);
+ void cli_hdr_serializer_op_gen (idl_bool);
+ void cli_stub_serializer_op_gen (idl_bool);
+ void cli_inline_serializer_op_gen (idl_bool);
+ void cli_inline_serializer_decl_gen (idl_bool);
+
+ void cli_traits_gen (idl_bool);
+ void cli_arg_traits_gen (idl_bool);
+ void srv_arg_traits_gen (idl_bool);
+ void srv_sarg_traits_gen (idl_bool);
+ void cli_tmpl_class_gen (idl_bool);
+ void cli_pragma_inst_gen (idl_bool);
+ void cli_inarg_tmpl_class_gen (idl_bool);
+ void cli_inarg_pragma_inst_gen (idl_bool);
+ void cli_inoutarg_tmpl_class_gen (idl_bool);
+ void cli_inoutarg_pragma_inst_gen (idl_bool);
+ void cli_outarg_tmpl_class_gen (idl_bool);
+ void cli_outarg_pragma_inst_gen (idl_bool);
+ void cli_retarg_tmpl_class_gen (idl_bool);
+ void cli_retarg_pragma_inst_gen (idl_bool);
+ void srv_tmpl_class_gen (idl_bool);
+ void srv_pragma_inst_gen (idl_bool);
+ void srv_inarg_tmpl_class_gen (idl_bool);
+ void srv_inarg_pragma_inst_gen (idl_bool);
+ void srv_inoutarg_tmpl_class_gen (idl_bool);
+ void srv_inoutarg_pragma_inst_gen (idl_bool);
+ void srv_outarg_tmpl_class_gen (idl_bool);
+ void srv_outarg_pragma_inst_gen (idl_bool);
+ void srv_retarg_tmpl_class_gen (idl_bool);
+ void srv_retarg_pragma_inst_gen (idl_bool);
+ void ccm_pre_proc_gen (idl_bool);
// Narrowing
DEF_NARROW_METHODS1 (be_decl, AST_Decl);
@@ -177,50 +177,50 @@ protected:
private:
// Variables that indicate if the code generation for that node is already
// been done. This way we avoid regenerating same code.
- bool cli_hdr_gen_;
- bool cli_stub_gen_;
- bool cli_inline_gen_;
- bool srv_hdr_gen_;
- bool impl_hdr_gen_;
- bool srv_skel_gen_;
- bool impl_skel_gen_;
- bool srv_inline_gen_;
- bool cli_hdr_any_op_gen_;
- bool cli_stub_any_op_gen_;
- bool cli_hdr_cdr_op_gen_;
- bool cli_stub_cdr_op_gen_;
- bool cli_inline_cdr_op_gen_;
- bool cli_inline_cdr_decl_gen_;
- bool cli_hdr_serializer_op_gen_;
- bool cli_stub_serializer_op_gen_;
- bool cli_inline_serializer_op_gen_;
- bool cli_inline_serializer_decl_gen_;
-
- bool cli_traits_gen_;
- bool cli_arg_traits_gen_;
- bool srv_arg_traits_gen_;
- bool srv_sarg_traits_gen_;
- bool cli_tmpl_class_gen_;
- bool cli_pragma_inst_gen_;
- bool cli_inarg_tmpl_class_gen_;
- bool cli_inarg_pragma_inst_gen_;
- bool cli_inoutarg_tmpl_class_gen_;
- bool cli_inoutarg_pragma_inst_gen_;
- bool cli_outarg_tmpl_class_gen_;
- bool cli_outarg_pragma_inst_gen_;
- bool cli_retarg_tmpl_class_gen_;
- bool cli_retarg_pragma_inst_gen_;
- bool srv_tmpl_class_gen_;
- bool srv_pragma_inst_gen_;
- bool srv_inarg_tmpl_class_gen_;
- bool srv_inarg_pragma_inst_gen_;
- bool srv_inoutarg_tmpl_class_gen_;
- bool srv_inoutarg_pragma_inst_gen_;
- bool srv_outarg_tmpl_class_gen_;
- bool srv_outarg_pragma_inst_gen_;
- bool srv_retarg_tmpl_class_gen_;
- bool srv_retarg_pragma_inst_gen_;
- bool ccm_pre_proc_gen_;
+ idl_bool cli_hdr_gen_;
+ idl_bool cli_stub_gen_;
+ idl_bool cli_inline_gen_;
+ idl_bool srv_hdr_gen_;
+ idl_bool impl_hdr_gen_;
+ idl_bool srv_skel_gen_;
+ idl_bool impl_skel_gen_;
+ idl_bool srv_inline_gen_;
+ idl_bool cli_hdr_any_op_gen_;
+ idl_bool cli_stub_any_op_gen_;
+ idl_bool cli_hdr_cdr_op_gen_;
+ idl_bool cli_stub_cdr_op_gen_;
+ idl_bool cli_inline_cdr_op_gen_;
+ idl_bool cli_inline_cdr_decl_gen_;
+ idl_bool cli_hdr_serializer_op_gen_;
+ idl_bool cli_stub_serializer_op_gen_;
+ idl_bool cli_inline_serializer_op_gen_;
+ idl_bool cli_inline_serializer_decl_gen_;
+
+ idl_bool cli_traits_gen_;
+ idl_bool cli_arg_traits_gen_;
+ idl_bool srv_arg_traits_gen_;
+ idl_bool srv_sarg_traits_gen_;
+ idl_bool cli_tmpl_class_gen_;
+ idl_bool cli_pragma_inst_gen_;
+ idl_bool cli_inarg_tmpl_class_gen_;
+ idl_bool cli_inarg_pragma_inst_gen_;
+ idl_bool cli_inoutarg_tmpl_class_gen_;
+ idl_bool cli_inoutarg_pragma_inst_gen_;
+ idl_bool cli_outarg_tmpl_class_gen_;
+ idl_bool cli_outarg_pragma_inst_gen_;
+ idl_bool cli_retarg_tmpl_class_gen_;
+ idl_bool cli_retarg_pragma_inst_gen_;
+ idl_bool srv_tmpl_class_gen_;
+ idl_bool srv_pragma_inst_gen_;
+ idl_bool srv_inarg_tmpl_class_gen_;
+ idl_bool srv_inarg_pragma_inst_gen_;
+ idl_bool srv_inoutarg_tmpl_class_gen_;
+ idl_bool srv_inoutarg_pragma_inst_gen_;
+ idl_bool srv_outarg_tmpl_class_gen_;
+ idl_bool srv_outarg_pragma_inst_gen_;
+ idl_bool srv_retarg_tmpl_class_gen_;
+ idl_bool srv_retarg_pragma_inst_gen_;
+ idl_bool ccm_pre_proc_gen_;
};
#endif // if !defined
diff --git a/TAO/TAO_IDL/be_include/be_enum.h b/TAO/TAO_IDL/be_include/be_enum.h
index 97994833b64..99f8893dde7 100644
--- a/TAO/TAO_IDL/be_include/be_enum.h
+++ b/TAO/TAO_IDL/be_include/be_enum.h
@@ -38,8 +38,8 @@ public:
// Default constructor.
be_enum (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
virtual void destroy (void);
diff --git a/TAO/TAO_IDL/be_include/be_eventtype.h b/TAO/TAO_IDL/be_include/be_eventtype.h
index 65455fa64ba..2f68e756ad3 100644
--- a/TAO/TAO_IDL/be_include/be_eventtype.h
+++ b/TAO/TAO_IDL/be_include/be_eventtype.h
@@ -43,9 +43,9 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom);
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom);
// Constructor that sets its scoped name <n>, a list of inherited valuetypes
// and supported interfaces <ih>, and the number of inherited interfaces <nih>
diff --git a/TAO/TAO_IDL/be_include/be_exception.h b/TAO/TAO_IDL/be_include/be_exception.h
index 67657b1e54b..1221d3be876 100644
--- a/TAO/TAO_IDL/be_include/be_exception.h
+++ b/TAO/TAO_IDL/be_include/be_exception.h
@@ -19,8 +19,8 @@ public:
// Default constructor.
be_exception (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
virtual void destroy (void);
diff --git a/TAO/TAO_IDL/be_include/be_expression.h b/TAO/TAO_IDL/be_include/be_expression.h
index 405000f5649..b5954dc8135 100644
--- a/TAO/TAO_IDL/be_include/be_expression.h
+++ b/TAO/TAO_IDL/be_include/be_expression.h
@@ -42,7 +42,8 @@ public:
be_expression (long l);
- be_expression (bool b);
+ be_expression (long l,
+ AST_Expression::ExprType t);
be_expression (idl_uns_long l,
AST_Expression::ExprType t);
diff --git a/TAO/TAO_IDL/be_include/be_generator.h b/TAO/TAO_IDL/be_include/be_generator.h
index ddbed2d438b..44e39df7e0f 100644
--- a/TAO/TAO_IDL/be_include/be_generator.h
+++ b/TAO/TAO_IDL/be_include/be_generator.h
@@ -95,12 +95,12 @@ public:
long nih,
AST_Interface **ih_flat,
long nih_flat,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_InterfaceFwd *create_interface_fwd (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing a boxed value type
virtual AST_ValueBox *create_valuebox (UTL_ScopedName *n,
@@ -115,12 +115,12 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom);
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom);
virtual AST_ValueTypeFwd *create_valuetype_fwd (UTL_ScopedName *n,
- bool abstract);
+ idl_bool abstract);
virtual AST_EventType *create_eventtype (UTL_ScopedName *n,
AST_Interface **inherits,
@@ -131,12 +131,12 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom);
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom);
virtual AST_EventTypeFwd *create_eventtype_fwd (UTL_ScopedName *n,
- bool abstract);
+ idl_bool abstract);
virtual AST_Component *create_component (UTL_ScopedName *n,
AST_Component *base_component,
@@ -157,24 +157,24 @@ public:
long n_supports_flat);
virtual AST_Exception *create_exception (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_Structure *create_structure (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_StructureFwd *create_structure_fwd (UTL_ScopedName *n);
virtual AST_Enum *create_enum (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_Operation *create_operation (AST_Type *rt,
AST_Operation::Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_Field *create_field (AST_Type *ft, UTL_ScopedName *n,
AST_Field::Visibility vis =
@@ -184,16 +184,16 @@ public:
AST_Type *ft,
UTL_ScopedName *n);
- virtual AST_Attribute *create_attribute (bool ro,
+ virtual AST_Attribute *create_attribute (idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_Union *create_union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_UnionFwd *create_union_fwd (UTL_ScopedName *n);
@@ -217,14 +217,15 @@ public:
AST_Expression *v1,
AST_Expression *v2);
- virtual AST_Expression *create_expr (long v);
+ virtual AST_Expression *create_expr(long v);
- virtual AST_Expression *create_expr (bool b);
+ virtual AST_Expression *create_expr (long v,
+ AST_Expression::ExprType t);
virtual AST_Expression *create_expr (idl_uns_long v,
AST_Expression::ExprType t);
- virtual AST_Expression *create_expr( UTL_String *s);
+ virtual AST_Expression *create_expr(UTL_String *s);
virtual AST_Expression *create_expr (char *s);
@@ -240,14 +241,14 @@ public:
virtual AST_Array *create_array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_Sequence *create_sequence (AST_Expression *v,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual AST_String *create_string (AST_Expression *v);
@@ -255,8 +256,8 @@ public:
virtual AST_Typedef *create_typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing a native
virtual AST_Native *create_native (UTL_ScopedName *n);
diff --git a/TAO/TAO_IDL/be_include/be_global.h b/TAO/TAO_IDL/be_include/be_global.h
index cc20432939c..21c5e016cf7 100644
--- a/TAO/TAO_IDL/be_include/be_global.h
+++ b/TAO/TAO_IDL/be_include/be_global.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- c++ -*- */
// $Id$
// ============================================================================
@@ -22,12 +21,11 @@
#define _BE_GLOBAL_H
#include "TAO_IDL_BE_Export.h"
-
+#include "idl_bool.h"
#include "ace/Unbounded_Queue.h"
#include "ace/SString.h"
class be_interface;
-class be_valuetype;
class be_interface_fwd;
class UTL_String;
class AST_PredefinedType;
@@ -207,26 +205,6 @@ public:
// set the name of the include file to be put at the bottom of every
// header file.
- /// Set text that opens a "versioned" namespace.
- void versioning_begin (const char* s);
-
- /// Get text that opens a "versioned" namespace.
- const char * versioning_begin (void) const;
-
- /// Get text that opens a "versioned" namespace for core TAO/orbsvcs
- /// related code.
- const char * core_versioning_begin (void) const;
-
- /// Set text that closes a "versioned" namespace.
- void versioning_end (const char* s);
-
- /// Get text that closes a "versioned" namespace.
- const char * versioning_end (void) const;
-
- /// Get text that closes a "versioned" namespace for core TAO/orbsvcs
- /// related code.
- const char * core_versioning_end (void) const;
-
// = Set and get methods for different file name endings.
void client_hdr_ending (const char* s);
@@ -309,13 +287,13 @@ public:
void anyop_header_ending (const char* s);
// Set the anyop_header_ending.
-
+
const char* anyop_header_ending (void) const;
// Get the anyop_header_ending.
-
+
void anyop_source_ending (const char* s);
// Set the anyop_source_ending.
-
+
const char* anyop_source_ending (void) const;
// Get the anyop_source_ending.
@@ -339,117 +317,117 @@ public:
// to be kept. Default is current directory from which the
// <tao_idl> is called.
- void any_support (bool);
+ void any_support (idl_bool);
// Set any support.
- bool any_support (void) const;
+ idl_bool any_support (void) const;
// Check Any support.
- void tc_support (bool);
+ void tc_support (idl_bool);
// Set TypeCode support.
- bool tc_support (void) const;
+ idl_bool tc_support (void) const;
// Check TypeCode support
- void obv_opt_accessor (bool);
+ void obv_opt_accessor (idl_bool);
// Set optimized valuetype member accessor generation.
- bool obv_opt_accessor (void) const;
+ idl_bool obv_opt_accessor (void) const;
// Check optimized valuetype member accessor generation.
- void gen_impl_files (bool);
+ void gen_impl_files (idl_bool);
// Set generation of implementation files.
- bool gen_impl_files (void) const;
+ idl_bool gen_impl_files (void) const;
// Check if we want to generate implementation files.
- void gen_impl_debug_info (bool);
+ void gen_impl_debug_info (idl_bool);
// Set generation of source file and line number for implementation files.
- bool gen_impl_debug_info (void) const;
+ idl_bool gen_impl_debug_info (void) const;
// Check generation of source file and line number implementation files.
- void gen_copy_ctor (bool);
+ void gen_copy_ctor (idl_bool);
// Set generation of copy constructor.
- bool gen_copy_ctor (void) const;
+ idl_bool gen_copy_ctor (void) const;
// Check if we want to generate the copy constructor.
- void gen_assign_op (bool);
+ void gen_assign_op (idl_bool);
// Set the generation of the assignment operator.
- bool gen_assign_op (void) const;
+ idl_bool gen_assign_op (void) const;
// Check if we want to generate the assignment operator.
- void gen_thru_poa_collocation (bool);
+ void gen_thru_poa_collocation (idl_bool);
// Set whether we want to generate Thru_POA collocation stubs.
- bool gen_thru_poa_collocation (void) const;
+ idl_bool gen_thru_poa_collocation (void) const;
// Check if we want to generate Thru_POA collocation stubs.
- void gen_direct_collocation (bool);
+ void gen_direct_collocation (idl_bool);
// Set whether we want to generate Direct collocation stubs.
- bool gen_direct_collocation (void) const;
+ idl_bool gen_direct_collocation (void) const;
// Check if we want to generate Direct collocation stubs.
- void exception_support (bool);
+ void exception_support (idl_bool);
// Set real C++ exception support.
- bool exception_support (void) const;
+ idl_bool exception_support (void) const;
// Check if real C++ exception support is enabled.
- void use_raw_throw (bool);
+ void use_raw_throw (idl_bool);
// Set replacement of 'ACE_THROW_SPEC' with 'throw'.
- bool use_raw_throw (void) const;
+ idl_bool use_raw_throw (void) const;
// Check if raw 'throw' generation option is set.
- void opt_tc (bool);
+ void opt_tc (idl_bool);
// Set optimized typecodes.
- bool opt_tc (void) const;
+ idl_bool opt_tc (void) const;
// Check if TypeCodes are optimized.
- void ami_call_back (bool value);
+ void ami_call_back (idl_bool value);
// To enable or disable AMI call back feature of the Messaging
// specification in the generated code.
- bool ami_call_back (void) const;
+ idl_bool ami_call_back (void) const;
// Return the flag.
- void gen_amh_classes (bool value);
+ void gen_amh_classes (idl_bool value);
// To enable or disable AMH in the generated code.
- bool gen_amh_classes (void) const;
+ idl_bool gen_amh_classes (void) const;
// Return the flag.
- void gen_tie_classes (bool value);
+ void gen_tie_classes (idl_bool value);
// Set the generation of tie classes and files.
- bool gen_tie_classes (void) const;
+ idl_bool gen_tie_classes (void) const;
// Return the flag.
- void gen_smart_proxies (bool value);
+ void gen_smart_proxies (idl_bool value);
// To enable or disable AMI call back feature of the Messaging
// specification in the generated code.
- bool gen_smart_proxies (void) const;
+ idl_bool gen_smart_proxies (void) const;
// Return the flag.
- void gen_inline_constants (bool value);
+ void gen_inline_constants (idl_bool value);
// Set the flag.
- bool gen_inline_constants (void) const;
+ idl_bool gen_inline_constants (void) const;
// Return the flag.
- void gen_dcps_type_support (bool value);
+ void gen_dcps_type_support (idl_bool value);
// Set the flag.
- bool gen_dcps_type_support (void) const;
+ idl_bool gen_dcps_type_support (void) const;
// Return the flag.
- bool gen_tmplinst (void) const;
+ idl_bool gen_tmplinst (void) const;
// Return the flag.
void lookup_strategy (LOOKUP_STRATEGY s);
@@ -483,24 +461,20 @@ public:
void ccmobject (be_interface *val);
// Accessors for the member.
- be_valuetype *exceptionholder (void) const;
- void exceptionholder (be_valuetype *val);
- // Accessors for the member.
-
- bool gen_anyop_files (void) const;
- void gen_anyop_files (bool val);
+ idl_bool gen_anyop_files (void) const;
+ void gen_anyop_files (idl_bool val);
// Accessors for the member.
- bool gen_skel_files (void) const;
- void gen_skel_files (bool val);
+ idl_bool gen_skel_files (void) const;
+ void gen_skel_files (idl_bool val);
// Accessors for the member gen_skel_files_.
- bool gen_client_inline (void) const;
- void gen_client_inline (bool val);
+ idl_bool gen_client_inline (void) const;
+ void gen_client_inline (idl_bool val);
// Accessors for the member gen_client_inline_.
- bool gen_server_inline (void) const;
- void gen_server_inline (bool val);
+ idl_bool gen_server_inline (void) const;
+ void gen_server_inline (idl_bool val);
// Accessors for the member gen_server_inline_.
ACE_CString spawn_options (void);
@@ -533,7 +507,7 @@ private:
char* skel_export_include_;
char* stub_export_macro_;
char* stub_export_include_;
-
+
// Macro and include used on ORB .pidl files generating to the
// AnyTypeCode library.
char* anyop_export_macro_;
@@ -543,20 +517,6 @@ private:
char* pre_include_;
char* post_include_;
- /// Text that opens a "versioned" namespace for core TAO and orbsvcs
- /// related code.
- ACE_CString core_versioning_begin_;
-
- /// Text that closes a "versioned" namespace for core TAO and
- /// orbsvcs related code.
- ACE_CString core_versioning_end_;
-
- /// Text that opens a "versioned" namepace.
- ACE_CString versioning_begin_;
-
- /// Text that closes a "versioned" namepace.
- ACE_CString versioning_end_;
-
// Client's header file name ending. Default is "C.h".
char* client_hdr_ending_;
@@ -599,7 +559,7 @@ private:
// Anyop header file name ending. Default is "A.h".
char* anyop_hdr_ending_;
-
+
// Anyop source file name ending. Default is "A.cpp".
char* anyop_src_ending_;
@@ -613,63 +573,63 @@ private:
// kept. Default value is 0 for this string which means the current
// directory from which the <tao_idl> is called.
- bool any_support_;
+ idl_bool any_support_;
// do we support Any operators?
- bool tc_support_;
+ idl_bool tc_support_;
// do we support typecodes?
- bool obv_opt_accessor_;
+ idl_bool obv_opt_accessor_;
// do we optimize valuetype accessors?
- bool gen_impl_files_;
+ idl_bool gen_impl_files_;
// are we generating implementation files?
- bool gen_impl_debug_info_;
+ idl_bool gen_impl_debug_info_;
// are we generating source file and line numbers for implementation files?
- bool gen_copy_ctor_;
+ idl_bool gen_copy_ctor_;
// are we generating the copy constructor?
- bool gen_assign_op_;
+ idl_bool gen_assign_op_;
// are we generating the assignment operator?
- bool gen_thru_poa_collocation_;
+ idl_bool gen_thru_poa_collocation_;
// are we generating Thru_POA collocated stubs?
- bool gen_direct_collocation_;
+ idl_bool gen_direct_collocation_;
// are we generating Direct collocated stubs?
- bool exception_support_;
+ idl_bool exception_support_;
// do we support real C++ exceptions (strict mapping) for stubs/skeletons?
- bool use_raw_throw_;
+ idl_bool use_raw_throw_;
// Another possible option if the above is TRUE.
- bool opt_tc_;
+ idl_bool opt_tc_;
// do we generate optimized typecodes?
- bool ami_call_back_;
+ idl_bool ami_call_back_;
// Flag to indicate whether the AMI Call back feature of the
// Messaging specification should be enabled for the generated files
// or not.
- bool gen_amh_classes_;
+ idl_bool gen_amh_classes_;
// Flag for generating AMH classes.
- bool gen_tie_classes_;
+ idl_bool gen_tie_classes_;
// Flag to indicate whether we generate the tie classes and
// files or not.
- bool gen_smart_proxies_;
+ idl_bool gen_smart_proxies_;
// Flag to indicate whether smart proxies classes will be generated
// or not.
- bool gen_inline_constants_;
+ idl_bool gen_inline_constants_;
// Flag to indicate whether we are using an inline form of constant
// generation that pleases the C++ compiler better on some platforms.
- bool gen_dcps_type_support_;
+ idl_bool gen_dcps_type_support_;
// Flag to indicate whether we are supporting DDS DCPS type definitions.
// Includes Serializer operators (like TAO_Input/OutuptCDR).
@@ -682,21 +642,18 @@ private:
be_interface *ccmobject_;
// Reference holder for component skeleton visitors.
- be_valuetype *exceptionholder_;
- // Reference holder for the exceptionholder.
-
- bool gen_anyop_files_;
+ idl_bool gen_anyop_files_;
// Separate files for generated Any operators?
- bool gen_skel_files_;
+ idl_bool gen_skel_files_;
// True by default, but a command line option can turn this off so
// we generate only an empty *S.h file on the skeleton side.
- bool gen_client_inline_;
+ idl_bool gen_client_inline_;
// True by default, but a command line option can turn this off so
// that we don't generate a client inline file
- bool gen_server_inline_;
+ idl_bool gen_server_inline_;
// True by default, but a command line option can turn this off so
// that we don't generate a server inline file
};
diff --git a/TAO/TAO_IDL/be_include/be_helper.h b/TAO/TAO_IDL/be_include/be_helper.h
index 450d1c1a970..9823766e2a1 100644
--- a/TAO/TAO_IDL/be_include/be_helper.h
+++ b/TAO/TAO_IDL/be_include/be_helper.h
@@ -29,10 +29,11 @@ class Identifier;
class UTL_IdList;
class AST_Expression;
-// A dummy structure to inform TAO_OutStream's << operator to put a newline
+// a dummy structure to inform TAO_OutStream's << operator to put a newline
// and use the current indentation for the succeeding line
struct TAO_NL
{
+public:
TAO_NL (void);
};
@@ -70,58 +71,6 @@ extern const TAO_INDENT be_idt_nl;
extern const TAO_UNINDENT be_uidt;
extern const TAO_UNINDENT be_uidt_nl;
-// A structure to inform TAO_OutStream's << operator to
-// conditionally output a newline and some form of "ACE_ENV_*".
-struct TAO_ENV_ARG
-{
- TAO_ENV_ARG (bool with_defaults = false,
- bool single = false,
- bool arg = false,
- bool not_used = false);
-
- bool with_defaults_;
- bool single_;
- bool arg_;
- bool not_used_;
-};
-
-extern const TAO_ENV_ARG env_decl;
-extern const TAO_ENV_ARG env_dflts;
-extern const TAO_ENV_ARG env_sngl;
-extern const TAO_ENV_ARG env_sngl_dflts;
-extern const TAO_ENV_ARG env_not;
-extern const TAO_ENV_ARG env_sngl_not;
-extern const TAO_ENV_ARG env_arg;
-extern const TAO_ENV_ARG env_sngl_arg;
-
-// A structure to inform TAO_OutStream's << operator to
-// conditionally output a newline and some form of "ACE_CHECK".
-struct TAO_ACE_CHECK
-{
- TAO_ACE_CHECK (const char *retval = 0,
- bool do_return = false);
-
- const char *retval_;
- bool do_return_;
-};
-
-// A dummy structure to inform TAO_OutStream's << operator to
-// conditionally output a newline and "ACE_TRY_CHECK".
-struct TAO_ACE_TRY_CHECK
-{
- TAO_ACE_TRY_CHECK (void);
-};
-
-// A structure to inform TAO_OutStream's << operator to
-// conditionally output a newline and "ACE_ENDTRY.
-struct TAO_ACE_ENDTRY
-{
- TAO_ACE_ENDTRY (void);
-};
-
-extern const TAO_ACE_TRY_CHECK ace_try_check;
-extern const TAO_ACE_ENDTRY ace_endtry;
-
class TAO_OutStream
{
// =TITLE
@@ -236,18 +185,6 @@ public:
TAO_OutStream &operator<< (const TAO_INDENT& i);
TAO_OutStream &operator<< (const TAO_UNINDENT& i);
- TAO_OutStream &operator<< (const TAO_ENV_ARG& i);
- // Conditional and generic output for all forms of "ACE_ENV_*".
-
- TAO_OutStream &operator<< (const TAO_ACE_CHECK& i);
- // Conditional and generic output for all forms of "ACE_CHECK".
-
- TAO_OutStream &operator<< (const TAO_ACE_TRY_CHECK& i);
- // Conditional and generic output for all forms of "ACE_ENV_*".
-
- TAO_OutStream &operator<< (const TAO_ACE_ENDTRY& i);
- // Conditional and generic output for all forms of "ACE_CHECK".
-
// The following will be provided by specialized classes
TAO_OutStream &operator<< (Identifier *id);
diff --git a/TAO/TAO_IDL/be_include/be_interface.h b/TAO/TAO_IDL/be_include/be_interface.h
index c4af6c6d1c4..90bebac52b2 100644
--- a/TAO/TAO_IDL/be_include/be_interface.h
+++ b/TAO/TAO_IDL/be_include/be_interface.h
@@ -66,8 +66,8 @@ public:
long nih,
AST_Interface **ih_flat,
long nih_flat,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor that sets its scoped name <n>, a list of inherited interfaces
// <ih>, the number of inherited interfaces <nih>, and any prgmas <p>.
@@ -188,7 +188,7 @@ public:
int traverse_inheritance_graph (
TAO_IDL_Inheritance_Hierarchy_Worker &worker,
TAO_OutStream *os,
- bool abstract_paths_only = false
+ idl_bool abstract_paths_only = I_FALSE
);
/// Wrap the @c gen parameter and call the generic version of
@@ -196,7 +196,7 @@ public:
int traverse_inheritance_graph (
tao_code_emitter gen,
TAO_OutStream *os,
- bool abstract_paths_only = false
+ idl_bool abstract_paths_only = I_FALSE
);
int in_mult_inheritance (void);
@@ -294,7 +294,7 @@ public:
be_interface *ancestor,
AST_Decl *d,
const char *prefix,
- bool direct,
+ idl_bool direct,
UTL_ExceptList *list,
TAO_OutStream *os);
// Common code called from gen_colloc_op_defn_helper().
@@ -329,8 +329,8 @@ public:
int session_component_child (void);
// Is Components::SessionComponent an immediate parent?
-
- bool is_event_consumer (void);
+
+ idl_bool is_event_consumer (void);
// Is EventConsumerBase our parent?
private:
diff --git a/TAO/TAO_IDL/be_include/be_interface_fwd.h b/TAO/TAO_IDL/be_include/be_interface_fwd.h
index 1c15e862428..6c2d84f7614 100644
--- a/TAO/TAO_IDL/be_include/be_interface_fwd.h
+++ b/TAO/TAO_IDL/be_include/be_interface_fwd.h
@@ -48,9 +48,9 @@ public:
virtual ~be_interface_fwd (void);
// Destructor.
- virtual void seq_elem_tmplinst (bool val);
- virtual void seen_in_sequence (bool val);
- virtual void seen_in_operation (bool val);
+ virtual void seq_elem_tmplinst (idl_bool val);
+ virtual void seen_in_sequence (idl_bool val);
+ virtual void seen_in_operation (idl_bool val);
// Mutator overrides for be_type members. If we have been
// defined, we want the full definition to be set as well.
diff --git a/TAO/TAO_IDL/be_include/be_operation.h b/TAO/TAO_IDL/be_include/be_operation.h
index 49b837e3467..0e004b3b682 100644
--- a/TAO/TAO_IDL/be_include/be_operation.h
+++ b/TAO/TAO_IDL/be_include/be_operation.h
@@ -43,8 +43,8 @@ public:
be_operation (AST_Type *rt,
AST_Operation::Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor
~be_operation (void);
diff --git a/TAO/TAO_IDL/be_include/be_sequence.h b/TAO/TAO_IDL/be_include/be_sequence.h
index 8a4f21fb3d9..f6ae364d559 100644
--- a/TAO/TAO_IDL/be_include/be_sequence.h
+++ b/TAO/TAO_IDL/be_include/be_sequence.h
@@ -61,8 +61,8 @@ public:
be_sequence (AST_Expression *v,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
virtual int create_name (be_typedef *node);
diff --git a/TAO/TAO_IDL/be_include/be_structure.h b/TAO/TAO_IDL/be_include/be_structure.h
index 61e5646d95a..6a48bd892f7 100644
--- a/TAO/TAO_IDL/be_include/be_structure.h
+++ b/TAO/TAO_IDL/be_include/be_structure.h
@@ -38,8 +38,8 @@ public:
// Default constructor.
be_structure (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
virtual void redefine (AST_Structure *from);
diff --git a/TAO/TAO_IDL/be_include/be_type.h b/TAO/TAO_IDL/be_include/be_type.h
index 4f4faf15d71..17dd1ee6984 100644
--- a/TAO/TAO_IDL/be_include/be_type.h
+++ b/TAO/TAO_IDL/be_include/be_type.h
@@ -63,16 +63,16 @@ public:
void gen_common_varout (TAO_OutStream *os);
// Generate _var and _out typedefs for structs and unions.
- bool seq_elem_tmplinst (void) const;
- virtual void seq_elem_tmplinst (bool val);
+ idl_bool seq_elem_tmplinst (void) const;
+ virtual void seq_elem_tmplinst (idl_bool val);
// Accessors for the member.
- bool seen_in_sequence (void) const;
- virtual void seen_in_sequence (bool val);
+ idl_bool seen_in_sequence (void) const;
+ virtual void seen_in_sequence (idl_bool val);
// Accessors for the member.
- bool seen_in_operation (void) const;
- virtual void seen_in_operation (bool val);
+ idl_bool seen_in_operation (void) const;
+ virtual void seen_in_operation (idl_bool val);
// Accessors for the member.
virtual AST_Decl::NodeType base_node_type (void) const;
@@ -101,17 +101,17 @@ protected:
ACE_CString fwd_helper_name_;
// Used by interfaces, valuetypes and arrays to name helper structs.
- bool common_varout_gen_;
+ idl_bool common_varout_gen_;
// Have we generated our _var and _out class typedefs yet?
- bool seq_elem_tmplinst_;
+ idl_bool seq_elem_tmplinst_;
// Have we generated an explicit template instantiation for a sequence
// with this element?
- bool seen_in_sequence_;
+ idl_bool seen_in_sequence_;
// Has this declaration been used as a sequence element?
- bool seen_in_operation_;
+ idl_bool seen_in_operation_;
// Has this declaration been used as a return type or parameter?
};
diff --git a/TAO/TAO_IDL/be_include/be_typedef.h b/TAO/TAO_IDL/be_include/be_typedef.h
index 4f5f1b69591..94af3381b5f 100644
--- a/TAO/TAO_IDL/be_include/be_typedef.h
+++ b/TAO/TAO_IDL/be_include/be_typedef.h
@@ -36,13 +36,13 @@ public:
be_typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool l,
- bool a);
+ idl_bool l,
+ idl_bool a);
// Constructor.
- virtual void seq_elem_tmplinst (bool val);
- virtual void seen_in_sequence (bool val);
- virtual void seen_in_operation (bool val);
+ virtual void seq_elem_tmplinst (idl_bool val);
+ virtual void seen_in_sequence (idl_bool val);
+ virtual void seen_in_operation (idl_bool val);
// Mutator overrides for be_type members. If we have been
// defined, we want the underlying type to be set as well.
diff --git a/TAO/TAO_IDL/be_include/be_union.h b/TAO/TAO_IDL/be_include/be_union.h
index 7ebe974875a..e5564f38d7a 100644
--- a/TAO/TAO_IDL/be_include/be_union.h
+++ b/TAO/TAO_IDL/be_include/be_union.h
@@ -39,14 +39,14 @@ public:
be_union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Constructor.
virtual void redefine (AST_Structure *from);
// Catch BE-specific member values before delegating to the base class.
- virtual bool has_duplicate_case_labels (void);
+ virtual idl_bool has_duplicate_case_labels (void);
// Do we have at least one member with multiple case labels?
virtual void destroy (void);
@@ -55,10 +55,10 @@ public:
virtual int accept (be_visitor *visitor);
// Visiting.
- bool gen_empty_default_label (void);
+ idl_bool gen_empty_default_label (void);
// Decides whether a default switch case label in the generated copy
// constructor, assignment operator, etc. is needed.
-
+
unsigned long nlabels (void);
// Returns total number of labels, useful when the union has
// multiple case labels.
diff --git a/TAO/TAO_IDL/be_include/be_valuetype.h b/TAO/TAO_IDL/be_include/be_valuetype.h
index 9acbfe5ebb7..b3c81fa052f 100644
--- a/TAO/TAO_IDL/be_include/be_valuetype.h
+++ b/TAO/TAO_IDL/be_include/be_valuetype.h
@@ -47,9 +47,9 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom);
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom);
// Constructor that sets its scoped name <n>, a list of inherited valuetypes
// and supported interfaces <ih>, and the number of inherited interfaces <nih>
@@ -58,7 +58,7 @@ public:
virtual void redefine (AST_Interface *from);
- bool opt_accessor (void);
+ idl_bool opt_accessor (void);
// Should generate optimized form?
virtual int gen_helper_header (char *local_name = 0,
@@ -92,8 +92,8 @@ public:
int traverse_supports_list_graphs (
tao_code_emitter gen,
TAO_OutStream *os,
- bool use_abstract_paths = true,
- bool use_concrete_paths = true
+ idl_bool use_abstract_paths = I_TRUE,
+ idl_bool use_concrete_paths = I_TRUE
);
/// Load the insert queue with the concrete interface we support, and
@@ -103,7 +103,7 @@ public:
TAO_OutStream *os
);
- bool supports_abstract (void) const;
+ idl_bool supports_abstract (void) const;
// Do we support at least one abstract interface?
// Visiting.
@@ -125,7 +125,7 @@ public:
);
// Compute the count of private/public/all data members.
- virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
+ virtual idl_bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
// Check if we are in recursion.
static int abstract_supports_helper (be_interface *node,
@@ -166,24 +166,21 @@ public:
FactoryStyle determine_factory_style (void);
// Determine what kind of factory needed.
- bool have_operation (void);
+ idl_bool have_operation (void);
// Recurse down the inheritance tree to determine
// if valuetype has at least one operation/attribute.
- static bool have_supported_op (be_interface *node);
+ static idl_bool have_supported_op (be_interface *node);
// Check if VT supports an interface with at least 1 operation.
- virtual bool will_have_factory (void);
+ virtual idl_bool will_have_factory (void);
// Use the above enum and methods to determine this after the
// node's scope is visited but before code generation.
- bool has_member (void);
- // Decides whether to generate the initializing contstructor or not.
-
private:
char *full_obv_skel_name_;
- bool supports_abstract_;
+ idl_bool supports_abstract_;
// Do we support at least one abstract interface?
int var_out_seq_decls_gen_;
diff --git a/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h b/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h
index 8246fc5d7c4..9a5ef1055fc 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_arg_traits.h
@@ -77,9 +77,9 @@ public:
private:
- bool generated (be_decl *node) const;
+ idl_bool generated (be_decl *node) const;
void generated (be_decl *node,
- bool val);
+ idl_bool val);
const char *insert_policy (void);
diff --git a/TAO/TAO_IDL/be_include/be_visitor_context.h b/TAO/TAO_IDL/be_include/be_visitor_context.h
index c2837eaec91..292f18a3bbc 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_context.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_context.h
@@ -27,7 +27,7 @@
#define TAO_BE_VISITOR_CONTEXT_H
#include "be_codegen.h"
-
+#include "idl_bool.h"
class TAO_OutStream;
class be_decl;
@@ -128,16 +128,16 @@ public:
be_attribute *attribute (void);
// get the attribute node
- void exception (bool);
+ void exception (idl_bool);
// is it the special ctor for exceptions?
- bool exception (void);
+ idl_bool exception (void);
// is it the special ctor for exceptions?
- void comma (bool);
+ void comma (idl_bool);
// scope supoorts generation of comma after each element
- bool comma (void);
+ idl_bool comma (void);
// are we supposed to generate a comma?
be_interface *interface (void) const;
@@ -243,10 +243,10 @@ public:
be_union *be_scope_as_union (void);
// return the scope as union if possible
-
+
const char *export_macro (void) const;
// return the export macro currently in force
-
+
const char *non_null_export_macro (void) const;
// if anyop export macro is empty, check stub.
@@ -275,10 +275,10 @@ private:
be_attribute *attr_;
// attribute node stored here while generating its code
- bool exception_;
+ idl_bool exception_;
// is it the special ctor for exceptions?
- bool comma_;
+ idl_bool comma_;
// whether scope should generate a comma after every element
be_interface* interface_;
@@ -288,5 +288,5 @@ private:
#if defined (interface)
# define interface aceinterface
#endif /* interface */
-
+
#endif /* BE_VISITOR_CONTEXT_H */
diff --git a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h
index 062923f54cd..6142a9c9ab9 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_operation/operation.h
@@ -74,6 +74,13 @@ public:
const char *exception_arguments);
// helper that generates code for raising an exception
+ virtual int gen_check_exception (be_type *return_type);
+ // helper that generates code for checking for an exception
+
+ virtual int gen_check_interceptor_exception (be_type *);
+ // helper that generates code for checking for an exception within
+ // an interceptor try block.
+
virtual int gen_stub_operation_body (be_operation *node,
be_type *return_type);
// Generates the code from opening brace to closing brace for
@@ -95,7 +102,7 @@ public:
void gen_stub_body_arglist (be_operation *node,
TAO_OutStream *os,
- bool ami = false);
+ idl_bool ami = I_FALSE);
void gen_arg_template_param_name (AST_Decl *scope,
AST_Type *bt,
diff --git a/TAO/TAO_IDL/be_include/be_visitor_scope.h b/TAO/TAO_IDL/be_include/be_visitor_scope.h
index 061aa2c158f..6aa0a2be7b6 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_scope.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_scope.h
@@ -22,7 +22,7 @@
#define TAO_BE_VISITOR_SCOPE_H
#include "be_visitor_decl.h"
-
+#include "idl_bool.h"
class be_visitor_scope : public be_visitor_decl
{
@@ -57,10 +57,10 @@ public:
virtual int next_elem (be_decl *elem, be_decl *&);
// get the successor to elem
- virtual bool last_node (be_decl *bd);
+ virtual idl_bool last_node (be_decl *bd);
// Is bd the last node in the scope
- bool last_inout_or_out_node (be_decl *bd);
+ idl_bool last_inout_or_out_node (be_decl *bd);
// Is bd the last inout or out in the scope
protected:
diff --git a/TAO/TAO_IDL/be_include/be_visitor_traits.h b/TAO/TAO_IDL/be_include/be_visitor_traits.h
index 441959072de..0268a2e5f26 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_traits.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_traits.h
@@ -61,8 +61,6 @@ public:
virtual int visit_array (be_array *node);
virtual int visit_typedef (be_typedef *node);
-
- virtual int visit_valuebox (be_valuebox *node);
};
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h
index f51b7934c0b..46c7f80f895 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_ci.h
@@ -71,14 +71,17 @@ public:
// visit union.
private:
- int emit_for_predef_enum (be_type *node,
- const char * type_suffix,
- bool is_any);
+ int emit_for_predef_enum(be_type *node,
+ const char * type_suffix,
+ bool is_any,
+ const char * marshal_arg);
void emit_default_constructor (void);
void emit_default_constructor_alloc (be_decl *node);
+ void emit_destructor (void);
+
void emit_constructor_one_arg (be_decl *node,
const char * type_suffix);
@@ -88,8 +91,8 @@ private:
void emit_copy_constructor_alloc (be_decl *node);
- void emit_assignment (be_decl *node,
- const char * type_suffix);
+ void emit_assignment( be_decl *node,
+ const char * type_suffix);
void emit_assignment_alloc (be_decl *node);
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h
index cfc363a37ca..4b92f3c3aa6 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuebox/valuebox_cs.h
@@ -70,13 +70,6 @@ public:
virtual int visit_union (be_union *node);
// visit union.
-private:
-
- /// Generate virtual destructor.
- void emit_destructor (void);
-
- int emit_for_predef_enum (char const * marshal_arg);
-
};
#endif /* _BE_VISITOR_VALUEBOX_CS_H_ */
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h
index d407c637573..229f6a2252c 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/arglist.h
@@ -41,7 +41,7 @@ public:
~be_visitor_obv_operation_arglist (void);
// destructor
- bool is_amh_exception_holder (be_operation *node);
+ idl_bool is_amh_exception_holder (be_operation *node);
// special arglist generation for amh_exceptionholders
int visit_operation (be_operation *node);
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h
index 4803e64cfee..fe0e43b1909 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_ci.h
@@ -62,8 +62,8 @@ public:
void op_name (be_valuetype *node, TAO_OutStream *os);
// if (in_obv_space_) print OBV_name else print name
- bool in_obv_space_;
-
+ idl_bool in_obv_space_;
+
private:
const char *pre_op_;
};
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h
index b8ce769a27b..1699deef3d9 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/field_cs.h
@@ -93,7 +93,7 @@ public:
void op_name (be_valuetype *node, TAO_OutStream *os);
// if (in_obv_space_) print OBV_name else print name
- bool in_obv_space_;
+ idl_bool in_obv_space_;
private:
const char *pre_op_;
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
index e88c4509dfb..1789d83b667 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype.h
@@ -97,20 +97,16 @@ public:
virtual int gen_init_impl (be_valuetype *node);
// generate the _init implementation
- void gen_obv_init_constructor_args (be_valuetype *node,
- unsigned long &index);
- // Recursively generate args for the initializing constuctor.
-
protected:
- static bool obv_need_ref_counter (be_valuetype *node);
+ static idl_bool obv_need_ref_counter (be_valuetype *node);
// check is VT needs a RefCounter mix-in in OBV_ class
// suppose that we are deciding for this node
- static bool obv_have_ref_counter (be_valuetype *node);
+ static idl_bool obv_have_ref_counter (be_valuetype *node);
// recurse down the inheritance tree to see
// if node or one of its OBV_ base class already has RefCounter
- bool is_amh_exception_holder (be_valuetype *node);
+ idl_bool is_amh_exception_holder (be_valuetype *node);
// Predicate common to _ch and _cs visitors.
};
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h
index 08d463d53f7..d3960113f7e 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_ci.h
@@ -45,7 +45,7 @@ public:
virtual int visit_field (be_field *node);
private:
- bool opt_accessor_;
+ idl_bool opt_accessor_;
};
#endif /* _BE_VALUETYPE_VALUETYPE_CI_H_ */
diff --git a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h
index 05d584190ef..b6a05417462 100644
--- a/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h
+++ b/TAO/TAO_IDL/be_include/be_visitor_valuetype/valuetype_obv_cs.h
@@ -24,7 +24,7 @@
#ifndef _BE_VALUETYPE_VALUETYPE_OBV_CS_H_
#define _BE_VALUETYPE_VALUETYPE_OBV_CS_H_
-class be_visitor_valuetype_obv_cs : public be_visitor_valuetype
+class be_visitor_valuetype_obv_cs : public be_visitor_scope
{
//
// = TITLE
@@ -43,15 +43,8 @@ public:
virtual int visit_valuetype (be_valuetype *node);
virtual int visit_eventtype (be_eventtype *node);
+
virtual int visit_field (be_field *node);
-
-private:
- void gen_obv_init_constructor_inits (be_valuetype *node);
- // Generate member assignments for the initializing constructor.
-
- void gen_obv_init_base_constructor_args (be_valuetype *node,
- unsigned long &index);
- // Called by method above to generate base class constructor call.
};
#endif /* _BE_VALUETYPE_VALUETYPE_OBV_CS_H_ */
diff --git a/TAO/TAO_IDL/driver/drv_args.cpp b/TAO/TAO_IDL/driver/drv_args.cpp
index aef8a8394f0..1d94b68f1c3 100644
--- a/TAO/TAO_IDL/driver/drv_args.cpp
+++ b/TAO/TAO_IDL/driver/drv_args.cpp
@@ -84,15 +84,10 @@ extern long DRV_nfiles;
extern const char *DRV_files[];
// Push a file into the list of files to be processed
-void
+static void
DRV_push_file (const char *s)
{
- // If filenames come from the command line, there is no
- // need to duplicate the string, but some backends have
- // an option to recurse over a directory and add all
- // IDL files found. In this latter case we have to
- // duplicate the file name string.
- DRV_files[DRV_nfiles++] = ACE::strnew (s);
+ DRV_files[DRV_nfiles++] = s;
}
// Prepare a CPP argument
@@ -191,9 +186,71 @@ DRV_usage (void)
));
ACE_DEBUG ((
LM_DEBUG,
+ ACE_TEXT (" -Wb,export_macro=<macro name>\t\t\tsets export macro ")
+ ACE_TEXT ("for all files\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,export_include=<include path>\t\tsets export include ")
+ ACE_TEXT ("file for all files\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,stub_export_macro=<macro name>\t\tsets export ")
+ ACE_TEXT ("macro for client files only\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,stub_export_include=<include path>\t\tsets export ")
+ ACE_TEXT ("include file for client only\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,skel_export_macro=<macro name>\t\tsets export ")
+ ACE_TEXT ("macro for server files only\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,skel_export_include=<include path>\t\tsets export ")
+ ACE_TEXT ("include file for server only\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,anyop_export_macro=<macro name>\t\tsets export macro ")
+ ACE_TEXT ("for typecode/Any operator files only, when -GA option ")
+ ACE_TEXT ("is used\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,anyop_export_include=<include path>\tsets export ")
+ ACE_TEXT ("include file typecode/Any operator files only, when -GA ")
+ ACE_TEXT ("option is used\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,pch_include=<include path>\t\t\tsets include ")
+ ACE_TEXT ("file for precompiled header mechanism\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,pre_include=<include path>\t\t\tsets include ")
+ ACE_TEXT ("file generate before any other includes\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,post_include=<include path>\t\tsets include ")
+ ACE_TEXT ("file generated at the end of the file\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
+ ACE_TEXT (" -Wb,obv_opt_accessor\t\t\t\toptimizes access to base class ")
+ ACE_TEXT ("data in valuetypes\n")
+ ));
+ ACE_DEBUG ((
+ LM_DEBUG,
ACE_TEXT (" -Yp,path\t\tdefines location of preprocessor\n")
));
-
+
be_global->usage ();
}
@@ -276,16 +333,16 @@ DRV_parse_args (long ac, char **av)
if (i < ac - 1)
{
idl_global->append_idl_flag (av[i + 1]);
-
+
has_space = idl_global->hasspace (av[i + 1]);
-
+
// If the include path has a space, we need to
// add literal "s.
ACE_CString arg = av[i];
arg += (has_space ? "\"" : "");
arg += av[i + 1];
arg += (has_space ? "\"" : "");
-
+
DRV_cpp_putarg (arg.c_str ());
idl_global->add_include_path (arg.substr (2).c_str ());
i++;
@@ -305,14 +362,14 @@ DRV_parse_args (long ac, char **av)
else
{
has_space = idl_global->hasspace (av[i]);
-
+
// If the include path has a space, we need to
// add literal "s.
ACE_CString arg (av[i], 2);
arg += (has_space ? "\"" : "");
arg += av[i] + 2;
arg += (has_space? "\"" : "");
-
+
idl_global->add_include_path (arg.substr (2).c_str ());
DRV_cpp_putarg (arg.c_str ());
}
@@ -431,12 +488,12 @@ DRV_parse_args (long ac, char **av)
if (av[i][2] == 'e')
{
// ...report an error.
- idl_global->case_diff_error (true);
+ idl_global->case_diff_error (I_TRUE);
}
else if (av[i][2] == 'w')
{
// ...report a warning (default for now)
- idl_global->case_diff_error (false);
+ idl_global->case_diff_error (I_FALSE);
}
else
{
@@ -513,6 +570,6 @@ DRV_parse_args (long ac, char **av)
idl_global->temp_dir (tmpdir);
}
-
+
DRV_cpp_post_init ();
}
diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp
index eb363f4e257..75110ff21f0 100644
--- a/TAO/TAO_IDL/driver/drv_preproc.cpp
+++ b/TAO/TAO_IDL/driver/drv_preproc.cpp
@@ -66,7 +66,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// Pass an IDL file through the C preprocessor
-
+#include "idl_bool.h"
#include "idl_defines.h"
#include "global_extern.h"
#include "fe_extern.h"
@@ -78,8 +78,6 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/Env_Value_T.h"
#include "ace/ARGV.h"
#include "ace/UUID.h"
-#include "ace/Dirent.h"
-#include "ace/OS_NS_sys_stat.h"
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
@@ -98,18 +96,6 @@ static const char *arglist[128];
static const char *output_arg_format = 0;
static long output_arg_index = 0;
-const char *DIR_DOT = ".";
-const char *DIR_DOT_DOT = "..";
-
-// File names.
-static char tmp_file [MAXPATHLEN + 1] = { 0 };
-static char tmp_ifile[MAXPATHLEN + 1] = { 0 };
-
-// Lines can be 1024 chars long intially - it will expand as required.
-#define LINEBUF_SIZE 1024
-static char* drv_line = 0;
-static size_t drv_line_size = LINEBUF_SIZE + 1;
-
// Push the new CPP location if we got a -Yp argument.
void
DRV_cpp_new_location (const char *new_loc)
@@ -159,72 +145,48 @@ DRV_cpp_expand_output_arg (const char *filename)
}
}
+// Lines can be 1024 chars long.
+#define LINEBUF_SIZE 1024
+static char drv_line[LINEBUF_SIZE + 1];
+
// Get a line from stdin.
static long
DRV_get_line (FILE *f)
{
char *l = fgets (drv_line,
- drv_line_size,
+ LINEBUF_SIZE,
f);
+ size_t i = 0;
if (l == 0)
{
- return false;
+ return I_FALSE;
}
if (*l == '\0' && feof (f))
{
- return false;
+ return I_FALSE;
}
if (*l == '\0')
{
- return true;
+ return I_TRUE;
}
- while (strchr(drv_line, '\n') == NULL)
- {
- // Haven't got to a newline yet
- // Create a bigger buffer and keep reading
- size_t temp_size;
- temp_size = drv_line_size * 2;
- char *temp = 0;
- ACE_NEW_RETURN (temp,
- char[temp_size],
- false);
- strcpy (temp, drv_line);
- delete [] drv_line;
- drv_line = temp;
- drv_line_size = temp_size;
-
- l = fgets (drv_line + strlen (drv_line),
- drv_line_size - strlen(drv_line),
- f);
-
- if (l == 0 || *l == '\0')
- {
- break;
- }
- }
-
- size_t i = strlen (drv_line) - 1;
+ i = strlen(l) - 1;
- if (drv_line[i] == '\n')
+ if (l[i] == '\n')
{
- drv_line[i] = '\0';
+ l[i] = '\0';
}
- return true;
+ return I_TRUE;
}
// Initialize the cpp argument list.
void
DRV_cpp_init (void)
{
- // Create the line buffer
- ACE_NEW (drv_line,
- char [drv_line_size]);
-
const char *cpp_loc = FE_get_cpp_loc_from_env ();
DRV_cpp_putarg (cpp_loc);
@@ -237,7 +199,7 @@ DRV_cpp_init (void)
ACE_MAJOR_VERSION,
ACE_MINOR_VERSION,
ACE_BETA_VERSION);
-
+
DRV_cpp_putarg (version_option);
DRV_cpp_putarg ("-I.");
const char *cpp_args = FE_get_cpp_args_from_env ();
@@ -258,12 +220,12 @@ DRV_cpp_init (void)
#endif /* TAO_IDL_PREPROCESSOR_ARGS */
// So we can find OMG IDL files, such as `orb.idl'.
-
+
ACE_OS::strcpy (option1, "-I");
ACE_OS::strcpy (option2, "-I");
char* TAO_ROOT = ACE_OS::getenv ("TAO_ROOT");
size_t len = 0;
-
+
if (TAO_ROOT != 0)
{
len = ACE_OS::strlen (TAO_ROOT);
@@ -299,10 +261,8 @@ DRV_cpp_init (void)
ACE_OS::strcat (option1, ACE_ROOT);
ACE_OS::strcat (option2, ACE_ROOT);
#if defined (ACE_WIN32)
- ACE_OS::strcat (option1, "\\TAO");
ACE_OS::strcat (option2, "\\TAO\\tao");
#else
- ACE_OS::strcat (option1, "/TAO");
ACE_OS::strcat (option2, "/TAO/tao");
#endif
}
@@ -311,8 +271,8 @@ DRV_cpp_init (void)
#if defined (TAO_IDL_INCLUDE_DIR)
// TAO_IDL_INCLUDE_DIR should be in quotes,
// e.g. "/usr/local/include/tao"
- ACE_OS::strcat (option1, TAO_IDL_INCLUDE_DIR);
- ACE_OS::strcat (option2, ".");
+ ACE_OS::strcat (option1,
+ TAO_IDL_INCLUDE_DIR);
#else
ACE_ERROR ((LM_WARNING,
"NOTE: The environment variables "
@@ -321,13 +281,14 @@ DRV_cpp_init (void)
"locate orb.idl\n"));
ACE_OS::strcat (option1, ".");
+ ACE_OS::strcat (option2, ".");
#endif /* TAO_IDL_INCLUDE_DIR */
}
}
DRV_cpp_putarg (option1);
- idl_global->add_include_path (ACE_CString (option1 + 2).c_str ());
DRV_cpp_putarg (option2);
+ idl_global->add_include_path (ACE_CString (option1 + 2).c_str ());
idl_global->add_include_path (ACE_CString (option2 + 2).c_str ());
idl_global->tao_root (option1 + 2);
}
@@ -352,96 +313,6 @@ DRV_cpp_init (void)
}
}
-int
-DRV_sweep_dirs (const char *rel_path,
- const char *base_path)
-{
- // Zero rel_path means we're not using this option, and
- // so we become a no-op.
- if (rel_path == 0)
- {
- return 0;
- }
-
- if (ACE_OS::chdir (rel_path) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "DRV_sweep_dirs: chdir %s failed\n",
- rel_path),
- -1);
- }
-
- ACE_Dirent dir (DIR_DOT);
- ACE_CString bname (base_path);
- bname += (bname.length () > 0 ? "/" : "");
- bname += rel_path;
- bool include_added = false;
-
- for (dirent *dir_entry; (dir_entry = dir.read ()) != 0;)
- {
- // Skip the ".." and "." files in each directory.
- if (ACE_OS::strcmp (dir_entry->d_name, DIR_DOT) == 0
- || ACE_OS::strcmp (dir_entry->d_name, DIR_DOT_DOT) == 0)
- {
- continue;
- }
-
- ACE_CString lname (dir_entry->d_name);
- ACE_stat stat_buf;
-
- if (ACE_OS::lstat (lname.c_str (), &stat_buf) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "DRV_sweep_dirs: ACE_OS::lstat (%s) failed\n",
- lname.c_str ()),
- -1);
- }
-
- size_t len = 0;
-
- switch (stat_buf.st_mode & S_IFMT)
- {
- case S_IFREG: // Either a regular file or an executable.
- len = lname.length ();
-
- if (len > 4 && lname.substr (len - 4) == ".idl")
- {
- if (!include_added)
- {
- ACE_CString incl_arg ("-I");
- incl_arg += bname;
- DRV_cpp_putarg (incl_arg.c_str ());
- include_added = true;
- }
-
- ACE_CString fname (bname);
- fname += "/";
- fname += lname;
- DRV_push_file (fname.c_str ());
- }
-
- break;
- case S_IFDIR: // Subdirectory.
- DRV_sweep_dirs (lname.c_str (), bname.c_str ());
- break;
- case S_IFLNK: // Either a file link or directory link.
- default: // Some other type of file (PIPE/FIFO/device).
- break;
- }
- }
-
- // Move back up a level.
- if (ACE_OS::chdir (DIR_DOT_DOT) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "DRV_sweep_dirs: chdir .. (from %s) failed\n",
- rel_path),
- -1);
- }
-
- return 0;
-}
-
// Adds additional include paths, but after parse_args() has
// added user-defined include paths.
void
@@ -450,14 +321,14 @@ DRV_cpp_post_init (void)
char option3[BUFSIZ];
char option4[BUFSIZ];
char option5[BUFSIZ];
-
+
ACE_OS::strcpy (option3, "-I");
ACE_OS::strcpy (option4, "-I");
ACE_OS::strcpy (option5, "-I");
char* TAO_ROOT = ACE_OS::getenv ("TAO_ROOT");
size_t len = 0;
-
+
if (TAO_ROOT != 0)
{
len = ACE_OS::strlen (TAO_ROOT);
@@ -510,51 +381,21 @@ DRV_cpp_post_init (void)
}
else
{
+#if !defined (TAO_IDL_INCLUDE_DIR)
ACE_OS::strcat (option3, ".");
ACE_OS::strcat (option4, ".");
ACE_OS::strcat (option5, ".");
+#endif
}
}
DRV_cpp_putarg (option3);
DRV_cpp_putarg (option4);
DRV_cpp_putarg (option5);
-
+
idl_global->add_include_path (ACE_CString (option3 + 2).c_str ());
idl_global->add_include_path (ACE_CString (option4 + 2).c_str ());
idl_global->add_include_path (ACE_CString (option5 + 2).c_str ());
-
- // Save path of current directory, in case the call to DRV_sweep_dirs()
- // below is not a no-op - then the current working directory will
- // have to be restored.
- char cwd_path[MAXPATHLEN];
- if (ACE_OS::getcwd (cwd_path, sizeof (cwd_path)) == 0)
- {
- ACE_ERROR ((LM_ERROR,
- "DRV_cpp_post_init: ACE_OS::getcwd failed\n"));
- return;
- }
-
- // If first arg is non-zero, adds an include path and filename
- // for every IDL file found in all subdirectories. This is a
- // no-op for most backends.
- if (DRV_sweep_dirs (idl_global->recursion_start (), "") == -1)
- {
- ACE_ERROR ((LM_ERROR,
- "DRV_cpp_post_init: DRV_sweep_dirs (%s) failed\n",
- idl_global->recursion_start ()));
-
- return;
- }
-
- // This is redundant for most backends, but not if the call to
- // DRV_sweep_dirs() above is more than a no-op.
- if (ACE_OS::chdir (cwd_path) == -1)
- {
- ACE_ERROR ((LM_ERROR,
- "DRV_cpp_post_init: ACE_OS::chdir (%s) failed\n",
- cwd_path));
- }
}
// We really need to know whether this line is a "#include ...". If
@@ -637,7 +478,7 @@ DRV_check_for_include (const char* buf)
if (*h == '\0')
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("IDL: No friggin' input files\n")));
+ ACE_TEXT ("IDL: No input files\n")));
ACE_OS::exit (99);
}
@@ -679,7 +520,7 @@ DRV_check_for_include (const char* buf)
// Terminate this string.
file_name [i] = '\0';
-
+
size_t len = ACE_OS::strlen (file_name);
ACE_CString name_str (file_name);
ACE_CString simple ("orb.idl");
@@ -716,93 +557,6 @@ DRV_check_for_include (const char* buf)
}
}
-// This method turns a line like '#include "a.idl"' into the
-// line '#include <a.idl>'
-void
-DRV_convert_includes (const char* buf)
-{
- // Remove constness
- char* r = const_cast<char*> (buf);
-
- // Skip the tabs and spaces.
- while (*r == ' ' || *r == '\t')
- {
- ++r;
- }
-
- // Skip initial '#'.
- if (*r != '#')
- {
- return;
- }
- else
- {
- r++;
- }
-
- // Skip the tabs and spaces.
- while (*r == ' ' || *r == '\t')
- {
- ++r;
- }
-
- // Probably we are at the word `include`. If not return.
- if (*r != 'i')
- {
- return;
- }
-
- // Check whether this word is `include` or no.
- const char* include_str = "include";
-
- for (size_t ii = 0;
- ii < strlen ("include") && *r != '\0' && *r != ' ' && *r != '\t';
- ++r, ++ii)
- {
- // Return if it doesn't match.
- if (include_str [ii] != *r)
- {
- return;
- }
- }
-
- // Next thing is finding the file that has been `#include'd. Skip
- // all the blanks and tabs and reach the startng " character.
- for (; (*r != '"'); ++r)
- {
- if (*r == '\n' || *r == '\0')
- {
- return;
- }
- }
-
- // Replace the opening quote with an angle bracket.
- *r = '<';
-
- // We're not handling redirection from stdin.
- // n.b. I neither know nor care what all this is about.
- // It came free with the cut-and-paste of DRV_check_for_include. sm.
- if (*r == '\0')
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("IDL: No friggin' input files\n")));
-
- ACE_OS::exit (99);
- }
-
- // Find the closing '"' character.
- for (; *r != '"'; ++r)
- {
- continue;
- }
-
- // Swap it for a '>'
- if (*r == '"')
- {
- *r = '>';
- }
-}
-
void
DRV_get_orb_idl_includes (void)
{
@@ -886,8 +640,6 @@ DRV_copy_input (FILE *fin,
while (DRV_get_line (fin))
{
- DRV_convert_includes (drv_line);
-
// Print the line to the temporary file.
ACE_OS::fprintf (f,
"%s\n",
@@ -935,6 +687,10 @@ DRV_stripped_name (char *fn)
return n;
}
+// File names.
+static char tmp_file [MAXPATHLEN + 1] = { 0 };
+static char tmp_ifile[MAXPATHLEN + 1] = { 0 };
+
// Pass input through preprocessor.
void
DRV_pre_proc (const char *myfile)
diff --git a/TAO/TAO_IDL/fe/fe_declarator.cpp b/TAO/TAO_IDL/fe/fe_declarator.cpp
index 2492fe8d451..b1e16bcc6fd 100644
--- a/TAO/TAO_IDL/fe/fe_declarator.cpp
+++ b/TAO/TAO_IDL/fe/fe_declarator.cpp
@@ -162,17 +162,7 @@ FE_Declarator::compose (AST_Decl *d)
if (this->pd_complex_part->node_type () == AST_Decl::NT_array)
{
arr = AST_Array::narrow_from_decl (this->pd_complex_part);
-
- // The base type of an array isn't set until after the array
- // has been created, so the check below gets done at this point.
- arr->set_base_type (ct);
- AST_Decl::NodeType nt = ct->unaliased_type ()->node_type ();
-
- if (nt == AST_Decl::NT_string || nt == AST_Decl::NT_wstring)
- {
- idl_global->string_member_seen_ = true;
- }
-
+ arr->set_base_type (ct);
return arr;
}
diff --git a/TAO/TAO_IDL/fe/fe_init.cpp b/TAO/TAO_IDL/fe/fe_init.cpp
index 3dff54991bd..80fa9bc722f 100644
--- a/TAO/TAO_IDL/fe/fe_init.cpp
+++ b/TAO/TAO_IDL/fe/fe_init.cpp
@@ -613,8 +613,8 @@ FE_init (void)
idl_global->set_main_filename (0);
idl_global->set_real_filename (0);
idl_global->set_stripped_filename (0);
- idl_global->set_import (true);
- idl_global->set_in_main_file (false);
+ idl_global->set_import (I_TRUE);
+ idl_global->set_in_main_file (I_FALSE);
idl_global->set_lineno (-1);
idl_global->set_prog_name (0);
@@ -628,7 +628,7 @@ FE_init (void)
idl_global->set_include_file_names (0);
idl_global->set_n_include_file_names (0);
idl_global->set_parse_state (IDL_GlobalData::PS_NoState);
- idl_global->preserve_cpp_keywords (false);
+ idl_global->preserve_cpp_keywords (I_FALSE);
// Put an empty prefix on the stack for the global scope.
idl_global->pragma_prefixes ().push (ACE::strnew (""));
@@ -673,7 +673,7 @@ FE_populate (void)
fe_populate_global_scope (idl_global->root ());
// Set flag to indicate we are processing the main file now.
- idl_global->set_in_main_file (true);
+ idl_global->set_in_main_file (I_TRUE);
// Populate the IDL keyword container, for checking local identifiers.
fe_populate_idl_keywords ();
@@ -683,7 +683,7 @@ FE_populate (void)
void
FE_store_env_include_paths (void)
{
- ACE_Env_Value<char*> incl_paths ("INCLUDE",
+ ACE_Env_Value<char*> incl_paths (ACE_TEXT("INCLUDE"),
(char *) 0);
const char *aggr_str = incl_paths;
@@ -713,7 +713,7 @@ FE_get_cpp_loc_from_env (void)
const char *cpp_loc = 0;
// See if TAO_IDL_PREPROCESSOR is defined.
- ACE_Env_Value<char*> preprocessor ("TAO_IDL_PREPROCESSOR",
+ ACE_Env_Value<char*> preprocessor (ACE_TEXT("TAO_IDL_PREPROCESSOR"),
(char *) 0);
// Set cpp_loc to the built in location, unless it has been overriden by
@@ -725,7 +725,7 @@ FE_get_cpp_loc_from_env (void)
else
{
// Check for the deprecated CPP_LOCATION environment variable
- ACE_Env_Value<char*> cpp_path ("CPP_LOCATION",
+ ACE_Env_Value<char*> cpp_path (ACE_TEXT("CPP_LOCATION"),
(char *) 0);
if (cpp_path != 0)
@@ -753,7 +753,7 @@ FE_get_cpp_args_from_env (void)
const char *cpp_args = 0;
// Added some customizable preprocessor options
- ACE_Env_Value<char*> args1 ("TAO_IDL_PREPROCESSOR_ARGS",
+ ACE_Env_Value<char*> args1 (ACE_TEXT("TAO_IDL_PREPROCESSOR_ARGS"),
(char *) 0);
if (args1 != 0)
@@ -764,7 +764,7 @@ FE_get_cpp_args_from_env (void)
{
// Check for the deprecated TAO_IDL_DEFAULT_CPP_FLAGS environment
// variable.
- ACE_Env_Value<char*> args2 ("TAO_IDL_DEFAULT_CPP_FLAGS",
+ ACE_Env_Value<char*> args2 (ACE_TEXT("TAO_IDL_DEFAULT_CPP_FLAGS"),
(char *) 0);
if (args2 != 0)
diff --git a/TAO/TAO_IDL/fe/fe_interface_header.cpp b/TAO/TAO_IDL/fe/fe_interface_header.cpp
index 5113d78c566..33ab6af6ba6 100644
--- a/TAO/TAO_IDL/fe/fe_interface_header.cpp
+++ b/TAO/TAO_IDL/fe/fe_interface_header.cpp
@@ -78,8 +78,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "global_extern.h"
#include "nr_extern.h"
-ACE_RCSID (fe,
- fe_interface_header,
+ACE_RCSID (fe,
+ fe_interface_header,
"$Id$")
#undef INCREMENT
@@ -179,11 +179,11 @@ already_seen (AST_Interface *ip)
{
if (iseen[i] == ip)
{
- return true;
+ return I_TRUE;
}
}
- return false;
+ return I_FALSE;
}
// Have we already seen this interface in the flat list?
@@ -194,11 +194,11 @@ already_seen_flat (AST_Interface *ip)
{
if (iseen_flat[i] == ip)
{
- return true;
+ return I_TRUE;
}
}
- return false;
+ return I_FALSE;
}
// @@@ (JP) Here are the rules for interface inheritance and
@@ -231,14 +231,14 @@ interface, a derived valuetype may also be declared to support an
interface, as long as it is derived from all interfaces that are
supported by any base valuetypes. Here is an example:
-interface I1 { };
-interface I2 { };
-interface I3: I1, I2 { };
+interface I1 { };
+interface I2 { };
+interface I3: I1, I2 { };
-abstract valuetype V1 supports I1 { };
-abstract valuetype V2 supports I2 { };
-valuetype V3: V1, V2 supports I3 { }; // legal
-valuetype V4: V1 supports I2 { }; // illegal
+abstract valuetype V1 supports I1 { };
+abstract valuetype V2 supports I2 { };
+valuetype V3: V1, V2 supports I3 { }; // legal
+valuetype V4: V1 supports I2 { }; // illegal
This last rule was made to guarantee that any given valuetype supported
at most one most-derived interface. We didn't want valuetypes to extend
@@ -248,9 +248,9 @@ interfaces.
FE_InterfaceHeader::FE_InterfaceHeader (UTL_ScopedName *n,
UTL_NameList *inherits,
- bool is_local,
- bool is_abstract,
- bool compile_now)
+ idl_bool is_local,
+ idl_bool is_abstract,
+ idl_bool compile_now)
: pd_interface_name (n),
pd_inherits (0),
pd_n_inherits (0),
@@ -262,7 +262,7 @@ FE_InterfaceHeader::FE_InterfaceHeader (UTL_ScopedName *n,
if (compile_now)
{
this->compile_inheritance (inherits,
- false);
+ I_FALSE);
}
}
@@ -270,31 +270,18 @@ FE_InterfaceHeader::~FE_InterfaceHeader (void)
{
}
-bool
+idl_bool
FE_InterfaceHeader::is_local (void) const
{
return this->pd_is_local;
}
-bool
+idl_bool
FE_InterfaceHeader::is_abstract (void) const
{
return this->pd_is_abstract;
}
-void
-FE_InterfaceHeader::destroy (void)
-{
- if (this->pd_interface_name == 0)
- {
- return;
- }
-
- this->pd_interface_name->destroy ();
- delete this->pd_interface_name;
- this->pd_interface_name = 0;
-}
-
// Add this interface to the list of inherited if not already there.
void
FE_InterfaceHeader::compile_one_inheritance (AST_Interface *i)
@@ -321,8 +308,8 @@ FE_InterfaceHeader::compile_one_inheritance (AST_Interface *i)
}
// Add i's parents to the flat list.
- AST_Interface **parents = i->inherits_flat ();
- long num_parents = i->n_inherits_flat ();
+ AST_Interface **parents = i->inherits ();
+ long num_parents = i->n_inherits ();
for (long j = 0; j < num_parents; ++j)
{
@@ -340,7 +327,7 @@ FE_InterfaceHeader::compile_one_inheritance (AST_Interface *i)
// Compute the list of top-level interfaces this one inherits from.
void
FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
- bool for_valuetype)
+ idl_bool for_valuetype)
{
if (ifaces == 0)
{
@@ -368,7 +355,7 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
if (idl_global->scopes ().top () == 0)
{
idl_global->err ()->lookup_error (item);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -378,7 +365,7 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
UTL_Scope *s = idl_global->scopes ().top ();
d = s->lookup_by_name (item,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -396,7 +383,7 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
if (d == 0)
{
idl_global->err ()->lookup_error (item);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -477,11 +464,11 @@ FE_InterfaceHeader::compile_inheritance (UTL_NameList *ifaces,
int
FE_InterfaceHeader::check_inherit (AST_Interface *i,
- bool for_valuetype)
+ idl_bool for_valuetype)
{
// We use the narrow instead of node_type() here so we can get a
// match with both valuetypes and eventtypes.
- bool is_valuetype = (AST_ValueType::narrow_from_decl (i) != 0);
+ idl_bool is_valuetype = (AST_ValueType::narrow_from_decl (i) != 0);
if (
// Non-local interfaces may not inherit from local ones.
@@ -535,15 +522,14 @@ FE_InterfaceHeader::n_inherits_flat (void) const
FE_OBVHeader::FE_OBVHeader (UTL_ScopedName *n,
UTL_NameList *inherits,
UTL_NameList *supports,
- bool truncatable,
- bool is_eventtype)
+ idl_bool truncatable,
+ idl_bool is_eventtype)
: FE_InterfaceHeader (n,
inherits,
- false,
- false,
- false),
+ I_FALSE,
+ I_FALSE,
+ I_FALSE),
pd_supports (0),
- pd_n_supports (0),
pd_inherits_concrete (0),
pd_supports_concrete (0),
pd_truncatable (truncatable)
@@ -585,7 +571,7 @@ FE_OBVHeader::supports_concrete (void) const
return this->pd_supports_concrete;
}
-bool
+idl_bool
FE_OBVHeader::truncatable (void) const
{
return this->pd_truncatable;
@@ -593,10 +579,10 @@ FE_OBVHeader::truncatable (void) const
void
FE_OBVHeader::compile_inheritance (UTL_NameList *vtypes,
- bool is_eventtype)
+ idl_bool is_eventtype)
{
this->FE_InterfaceHeader::compile_inheritance (vtypes,
- true);
+ I_TRUE);
if (this->pd_n_inherits > 0)
{
@@ -604,7 +590,7 @@ FE_OBVHeader::compile_inheritance (UTL_NameList *vtypes,
AST_ValueType *vt = AST_ValueType::narrow_from_decl (iface);
if (vt != 0
- && vt->is_abstract () == false)
+ && vt->is_abstract () == I_FALSE)
{
this->pd_inherits_concrete = vt;
}
@@ -661,7 +647,7 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
if (idl_global->scopes ().top () == 0)
{
idl_global->err ()->lookup_error (item);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -671,7 +657,7 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
UTL_Scope *s = idl_global->scopes ().top ();
d = s->lookup_by_name (item,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -689,7 +675,7 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
if (d == 0)
{
idl_global->err ()->lookup_error (item);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -745,7 +731,7 @@ FE_OBVHeader::compile_supports (UTL_NameList *supports)
}
}
-bool
+idl_bool
FE_OBVHeader::check_concrete_supported_inheritance (AST_Interface *d)
{
AST_ValueType *vt = 0;
@@ -784,12 +770,12 @@ FE_OBVHeader::check_concrete_supported_inheritance (AST_Interface *d)
FE_EventHeader::FE_EventHeader (UTL_ScopedName *n,
UTL_NameList *inherits,
UTL_NameList *supports,
- bool truncatable)
+ idl_bool truncatable)
: FE_OBVHeader (n,
inherits,
supports,
truncatable,
- true)
+ I_TRUE)
{
}
@@ -799,15 +785,15 @@ FE_EventHeader::~FE_EventHeader (void)
//************************************************************************
-FE_ComponentHeader::FE_ComponentHeader (UTL_ScopedName *n,
- UTL_ScopedName *base_component,
+FE_ComponentHeader::FE_ComponentHeader (UTL_ScopedName *n,
+ UTL_ScopedName *base_component,
UTL_NameList *supports,
- bool /* compile_now */)
+ idl_bool /* compile_now */)
: FE_InterfaceHeader (n,
supports,
- false,
- false,
- false),
+ I_FALSE,
+ I_FALSE,
+ I_FALSE),
pd_base_component (0)
{
if (base_component != 0 && supports != 0)
@@ -837,7 +823,7 @@ FE_ComponentHeader::supports (void) const
return this->pd_inherits;
}
-long
+long
FE_ComponentHeader::n_supports (void) const
{
return this->pd_n_inherits;
@@ -864,20 +850,20 @@ FE_ComponentHeader::compile_inheritance (UTL_ScopedName *base_component)
{
return;
}
-
+
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (base_component,
- true);
+ I_TRUE);
if (d == 0)
{
idl_global->err ()->lookup_error (base_component);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
}
-
+
if (d->node_type () == AST_Decl::NT_typedef)
{
d = AST_Typedef::narrow_from_decl (d)->primitive_base_type ();
@@ -928,7 +914,7 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
if (idl_global->scopes ().top () == 0)
{
idl_global->err ()->lookup_error (item);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -938,7 +924,7 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
UTL_Scope *s = idl_global->scopes ().top ();
d = s->lookup_by_name (item,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -956,7 +942,7 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
if (d == 0)
{
idl_global->err ()->lookup_error (item);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -976,7 +962,7 @@ FE_ComponentHeader::compile_supports (UTL_NameList *supports)
idl_global->err ()->interface_expected (d);
continue;
}
-
+
// Undefined interface?
if (!i->is_defined ())
{
@@ -1038,7 +1024,7 @@ FE_HomeHeader::FE_HomeHeader (UTL_ScopedName *n,
: FE_ComponentHeader (n,
0,
supports,
- false),
+ I_FALSE),
pd_base_home (0),
pd_primary_key (0)
{
@@ -1087,12 +1073,12 @@ FE_HomeHeader::compile_inheritance (UTL_ScopedName *base_home)
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (base_home,
- true);
+ I_TRUE);
if (d == 0)
{
idl_global->err ()->lookup_error (base_home);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -1122,12 +1108,12 @@ FE_HomeHeader::compile_managed_component (UTL_ScopedName *managed_component)
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (managed_component,
- true);
+ I_TRUE);
if (d == 0)
{
idl_global->err ()->lookup_error (managed_component);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
@@ -1154,20 +1140,20 @@ FE_HomeHeader::compile_primary_key (UTL_ScopedName *primary_key)
{
return;
}
-
+
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (primary_key,
- true);
+ I_TRUE);
if (d == 0)
{
idl_global->err ()->lookup_error (primary_key);
-
+
// This is probably the result of bad IDL.
// We will crash if we continue from here.
exit (99);
}
-
+
AST_Decl::NodeType nt = d->node_type ();
if (nt == AST_Decl::NT_typedef)
diff --git a/TAO/TAO_IDL/fe/idl.ll b/TAO/TAO_IDL/fe/idl.ll
index 060223d558f..4fc8898cb4a 100644
--- a/TAO/TAO_IDL/fe/idl.ll
+++ b/TAO/TAO_IDL/fe/idl.ll
@@ -254,7 +254,7 @@ oneway return IDL_ONEWAY;
(\"([^\\\"]*|\\[ntvbrfax\\\?\'\"]|\\[0-7]{1,3})*\"[ \t]*)+ {
/* Skip the quotes */
char *tmp = ace_yytext;
- for(int i = ACE_OS::strlen(tmp) - 1; i >= 0; --i) {
+ for(int i = strlen(tmp) - 1; i >= 0; --i) {
if (isspace(tmp[i])) {
tmp[i] = '\0';
}
@@ -262,7 +262,7 @@ oneway return IDL_ONEWAY;
break;
}
}
- tmp[ACE_OS::strlen (tmp) - 1] = '\0';
+ tmp[strlen (tmp) - 1] = '\0';
ACE_NEW_RETURN (yylval.sval,
UTL_String (tmp + 1),
IDL_STRING_LITERAL);
@@ -271,15 +271,7 @@ oneway return IDL_ONEWAY;
(L\"([^\\\"]*|\\[ntvbrfax\\\?\'\"]|\\[0-7]{1,3}|\\u([0-9a-fA-F]{1,4}))*\"[ \t]*)+ {
/* Skip the bookends */
char *tmp = ACE_OS::strdup (ace_yytext);
- for(int i = ACE_OS::strlen(tmp) - 1; i >= 0; --i) {
- if (isspace(tmp[i])) {
- tmp[i] = '\0';
- }
- else {
- break;
- }
- }
- tmp[ACE_OS::strlen (tmp) - 1] = '\0';
+ tmp[strlen (tmp) - 1] = '\0';
yylval.wsval = idl_wstring_escape_reader(tmp + 2);
return IDL_WSTRING_LITERAL;
}
@@ -320,7 +312,7 @@ L"'"\\u([0-9a-fA-F]{1,4})"'" {
^\?\?=[ \t]*file[ \t].*{NL} {/* ignore file */
idl_global->set_lineno(idl_global->lineno() + 1);
}
-^[ \t]*#[ \t]*[0-9]*" ""\""[^\"]*"\""" "[0-9]*([ \t]*[0-9]*)*{NL} |
+^[ \t]*#[ \t]*[0-9]*" ""\""[^\"]*"\""" "[0-9]*([ \t]*[0-9]*)?{NL} |
^\?\?=[ \t]*[0-9]*" ""\""[^\"]*"\""" "[0-9]*([ \t]*[0-9]*)?{NL} {
idl_parse_line_and_file(ace_yytext);
}
diff --git a/TAO/TAO_IDL/fe/idl.yy b/TAO/TAO_IDL/fe/idl.yy
index 46eb5e1ac98..826830b48fb 100644
--- a/TAO/TAO_IDL/fe/idl.yy
+++ b/TAO/TAO_IDL/fe/idl.yy
@@ -533,7 +533,7 @@ interface :
(void) s->fe_add_interface (i);
// This FE_InterfaceHeader class isn't destroyed with the AST.
- $1->destroy ();
+ $1->name ()->destroy ();
delete $1;
$1 = 0;
}
@@ -598,12 +598,10 @@ interface_header :
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName ($1, 0),
- 1);
+ UTL_ScopedName n ($1,
+ 0);
ACE_NEW_RETURN ($$,
- FE_InterfaceHeader (n,
+ FE_InterfaceHeader (&n,
$2,
I_FALSE,
I_FALSE,
@@ -622,12 +620,10 @@ interface_header :
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName ($2, 0),
- 1);
+ UTL_ScopedName n ($2,
+ 0);
ACE_NEW_RETURN ($$,
- FE_InterfaceHeader (n,
+ FE_InterfaceHeader (&n,
$3,
I_TRUE,
I_FALSE,
@@ -646,12 +642,10 @@ interface_header :
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName ($2, 0),
- 1);
+ UTL_ScopedName n ($2,
+ 0);
ACE_NEW_RETURN ($$,
- FE_InterfaceHeader (n,
+ FE_InterfaceHeader (&n,
$3,
I_FALSE,
I_TRUE,
@@ -734,11 +728,6 @@ value_concrete_decl :
*/
v = AST_ValueType::narrow_from_decl (i);
(void) s->fe_add_valuetype (v);
-
- // FE_OBVHeader is not automatically destroyed in the AST
- $1->destroy ();
- delete $1;
- $1 = 0;
}
/*
@@ -866,7 +855,8 @@ value_header :
UTL_ScopedName *sn = 0;
ACE_NEW_RETURN (sn,
- UTL_ScopedName ($1, 0),
+ UTL_ScopedName ($1,
+ 0),
1);
ACE_NEW_RETURN ($$,
FE_OBVHeader (sn,
@@ -936,7 +926,7 @@ value_forward_decl :
if (s != 0)
{
f = idl_global->gen ()->create_valuetype_fwd (&n,
- I_TRUE);
+ I_TRUE);
(void) s->fe_add_valuetype_fwd (f);
}
}
@@ -968,7 +958,7 @@ value_box_decl
{
// value_box_decl : value_decl type_spec
idl_global->set_parse_state (IDL_GlobalData::PS_ValueBoxDeclSeen);
-
+
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n ($1,
0);
@@ -977,7 +967,7 @@ value_box_decl
{
/*
* Get the type_spec associated with the valuebox
- */
+ */
AST_Type *tp = 0;
AST_Typedef *td
= AST_Typedef::narrow_from_decl ($2);
@@ -1740,12 +1730,14 @@ literal
| IDL_TRUETOK
{
// | IDL_TRUETOK
- $$ = idl_global->gen ()->create_expr (true);
+ $$ = idl_global->gen ()->create_expr ((idl_bool) I_TRUE,
+ AST_Expression::EV_bool);
}
| IDL_FALSETOK
{
// | IDL_FALSETOK
- $$ = idl_global->gen ()->create_expr (false);
+ $$ = idl_global->gen ()->create_expr ((idl_bool) I_FALSE,
+ AST_Expression::EV_bool);
}
;
@@ -2658,9 +2650,6 @@ switch_type_spec :
if ($$ == 0)
{
idl_global->err ()->lookup_error ($1);
-
- /* If we don't return here, we'll crash later.*/
- return 1;
}
}
;
@@ -4293,7 +4282,7 @@ component_decl :
(void) s->fe_add_component (c);
// This FE_ComponentHeader class isn't destroyed with the AST.
- $1->destroy ();
+ $1->name ()->destroy ();
delete $1;
$1 = 0;
}
@@ -4346,12 +4335,10 @@ component_header :
* Create an AST representation of the information in the header
* part of a component.
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName ($2, 0),
- 1);
+ UTL_ScopedName n ($2,
+ 0);
ACE_NEW_RETURN ($$,
- FE_ComponentHeader (n,
+ FE_ComponentHeader (&n,
$4,
$6,
I_FALSE),
@@ -4724,7 +4711,7 @@ home_decl :
(void) s->fe_add_home (h);
// This FE_HomeHeader class isn't destroyed with the AST.
- $1->destroy ();
+ $1->name ()->destroy ();
delete $1;
$1 = 0;
}
@@ -4784,12 +4771,10 @@ home_header :
* Create an AST representation of the information in the header
* part of a component home.
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName ($3, 0),
- 1);
+ UTL_ScopedName n ($3,
+ 0);
ACE_NEW_RETURN ($$,
- FE_HomeHeader (n,
+ FE_HomeHeader (&n,
$5,
$7,
$11,
@@ -5247,11 +5232,6 @@ event_decl :
*/
e = AST_EventType::narrow_from_decl (i);
(void) s->fe_add_eventtype (e);
-
- // FE_EventHeader is not automatically destroyed in the AST
- $2->destroy ();
- delete $2;
- $2 = 0;
}
/*
diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp b/TAO/TAO_IDL/fe/lex.yy.cpp
index 09ff7d3add0..50fad64a1ca 100644
--- a/TAO/TAO_IDL/fe/lex.yy.cpp
+++ b/TAO/TAO_IDL/fe/lex.yy.cpp
@@ -9,7 +9,6 @@
#define TAO_YY_FLEX_MINOR_VERSION 5
#include "ace/os_include/os_stdio.h"
-#include "ace/os_include/os_ctype.h"
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -22,6 +21,7 @@
#ifdef __cplusplus
+#include "ace/os_include/os_ctype.h"
/* Use prototypes in function declarations. */
#define TAO_YY_USE_PROTOS
@@ -393,70 +393,70 @@ static tao_yyconst int tao_yy_meta[60] =
static tao_yyconst short int tao_yy_base[586] =
{ 0,
- 0, 58, 1094, 1095, 59, 1095, 1095, 56, 1059, 54,
- 57, 65, 68, 73, 1075, 1073, 1070, 0, 1067, 69,
- 1052, 1058, 45, 1037, 56, 37, 48, 67, 1046, 1035,
- 61, 1034, 65, 1047, 79, 63, 82, 83, 71, 71,
- 93, 92, 134, 144, 1060, 130, 97, 148, 129, 1072,
- 147, 152, 158, 184, 210, 1095, 148, 161, 197, 203,
- 229, 0, 239, 1095, 1095, 1095, 0, 1052, 151, 1044,
- 1033, 1044, 1022, 1015, 1019, 1023, 1018, 1035, 116, 1016,
- 1028, 1012, 1023, 1010, 1025, 1026, 1025, 123, 1012, 1006,
- 1012, 1008, 129, 155, 1009, 1018, 1009, 1000, 999, 1013,
-
- 997, 146, 1014, 1006, 1013, 150, 998, 994, 995, 1001,
- 988, 992, 167, 1002, 994, 996, 996, 983, 226, 0,
- 192, 1095, 1030, 243, 992, 996, 990, 980, 1012, 260,
- 173, 180, 246, 1095, 1022, 1021, 259, 1020, 267, 0,
- 272, 261, 1095, 286, 1095, 289, 0, 254, 287, 0,
- 997, 196, 292, 284, 1018, 277, 986, 1000, 969, 0,
- 970, 975, 981, 967, 968, 251, 963, 981, 979, 960,
- 966, 964, 972, 956, 971, 969, 972, 954, 966, 955,
- 948, 963, 966, 959, 964, 943, 943, 953, 956, 937,
- 0, 253, 937, 946, 938, 952, 934, 936, 935, 186,
-
- 936, 931, 936, 944, 933, 938, 927, 924, 940, 942,
- 924, 969, 968, 927, 933, 923, 935, 338, 302, 1095,
- 1095, 307, 961, 0, 309, 330, 1095, 944, 324, 961,
- 314, 352, 0, 1095, 0, 929, 0, 913, 921, 924,
- 0, 0, 913, 276, 922, 911, 904, 912, 904, 0,
- 902, 905, 905, 914, 914, 897, 915, 0, 897, 894,
- 895, 900, 0, 904, 898, 900, 886, 887, 905, 904,
- 903, 894, 893, 896, 885, 894, 897, 877, 882, 892,
- 879, 890, 889, 318, 877, 883, 0, 884, 0, 870,
- 878, 914, 359, 880, 870, 878, 875, 869, 1095, 289,
-
- 386, 871, 875, 869, 859, 331, 1095, 902, 1095, 901,
- 0, 379, 408, 900, 853, 871, 869, 869, 855, 0,
- 855, 843, 853, 853, 859, 0, 843, 842, 843, 842,
- 0, 0, 850, 838, 0, 851, 0, 851, 850, 838,
- 848, 0, 827, 833, 830, 845, 169, 829, 833, 832,
- 836, 0, 837, 823, 824, 833, 839, 834, 834, 819,
- 0, 822, 815, 0, 820, 1095, 394, 345, 813, 390,
- 819, 859, 858, 817, 823, 813, 825, 343, 435, 1095,
- 851, 0, 821, 802, 808, 816, 815, 799, 0, 798,
- 0, 792, 807, 790, 0, 687, 0, 704, 670, 0,
-
- 648, 0, 0, 632, 651, 635, 0, 620, 0, 614,
- 621, 603, 0, 0, 601, 0, 600, 613, 0, 613,
- 611, 589, 606, 462, 1095, 477, 408, 367, 423, 497,
- 602, 629, 413, 590, 579, 575, 553, 505, 581, 534,
- 521, 0, 526, 520, 0, 0, 509, 509, 0, 493,
- 494, 0, 485, 477, 0, 464, 465, 436, 455, 451,
- 436, 450, 0, 444, 425, 412, 0, 532, 432, 1095,
- 465, 484, 504, 1095, 455, 369, 1095, 547, 377, 402,
- 555, 407, 369, 433, 0, 401, 373, 0, 387, 373,
+ 0, 58, 1092, 1093, 59, 1093, 1093, 56, 1057, 54,
+ 57, 65, 68, 73, 1073, 1071, 1068, 0, 1065, 69,
+ 1050, 1056, 45, 1035, 56, 37, 48, 67, 1044, 1033,
+ 61, 1032, 65, 1045, 79, 63, 82, 83, 71, 71,
+ 93, 92, 134, 144, 1058, 130, 97, 148, 129, 1070,
+ 147, 152, 158, 184, 210, 1093, 148, 161, 197, 203,
+ 229, 0, 239, 1093, 1093, 1093, 0, 1050, 151, 1042,
+ 1031, 1042, 1020, 1013, 1017, 1021, 1016, 1033, 116, 1014,
+ 1026, 1010, 1021, 1008, 1023, 1024, 1023, 123, 1010, 1004,
+ 1010, 1006, 129, 155, 1007, 1016, 1007, 998, 997, 1011,
+
+ 995, 146, 1012, 1004, 1011, 150, 996, 992, 993, 999,
+ 986, 990, 167, 1000, 992, 994, 994, 981, 226, 0,
+ 192, 1093, 1028, 243, 990, 994, 988, 978, 1010, 260,
+ 173, 180, 246, 1093, 1020, 1019, 259, 1018, 267, 0,
+ 272, 261, 1093, 286, 1093, 289, 0, 254, 287, 0,
+ 995, 196, 292, 284, 1016, 277, 984, 998, 967, 0,
+ 968, 973, 979, 965, 966, 251, 961, 979, 977, 958,
+ 964, 962, 970, 954, 969, 967, 970, 952, 964, 953,
+ 946, 961, 964, 957, 962, 941, 941, 951, 954, 935,
+ 0, 253, 935, 944, 936, 950, 932, 934, 933, 186,
+
+ 934, 929, 934, 942, 931, 936, 925, 922, 938, 940,
+ 922, 967, 966, 925, 931, 921, 933, 338, 302, 1093,
+ 1093, 307, 959, 0, 309, 330, 1093, 942, 324, 959,
+ 314, 352, 0, 1093, 0, 927, 0, 911, 919, 922,
+ 0, 0, 911, 276, 920, 909, 902, 910, 902, 0,
+ 900, 903, 903, 912, 912, 895, 913, 0, 895, 892,
+ 893, 898, 0, 902, 896, 898, 884, 885, 903, 902,
+ 901, 892, 891, 894, 883, 892, 895, 875, 880, 890,
+ 877, 888, 887, 318, 875, 881, 0, 882, 0, 868,
+ 876, 912, 359, 878, 868, 876, 873, 867, 1093, 289,
+
+ 386, 869, 873, 867, 857, 331, 1093, 900, 1093, 899,
+ 0, 379, 408, 898, 851, 869, 867, 867, 853, 0,
+ 853, 841, 851, 851, 857, 0, 841, 840, 841, 840,
+ 0, 0, 848, 836, 0, 849, 0, 849, 848, 836,
+ 846, 0, 825, 831, 828, 843, 169, 827, 831, 830,
+ 834, 0, 835, 821, 822, 831, 837, 832, 832, 817,
+ 0, 820, 813, 0, 818, 1093, 394, 345, 811, 390,
+ 817, 857, 856, 815, 821, 811, 823, 343, 435, 1093,
+ 849, 0, 819, 800, 806, 814, 813, 797, 0, 796,
+ 0, 790, 805, 788, 0, 793, 0, 702, 683, 0,
+
+ 674, 0, 0, 632, 649, 648, 0, 629, 0, 613,
+ 620, 603, 0, 0, 601, 0, 599, 612, 0, 611,
+ 610, 589, 606, 462, 1093, 477, 408, 367, 423, 497,
+ 610, 632, 413, 592, 571, 568, 555, 505, 586, 531,
+ 526, 0, 530, 503, 0, 0, 503, 490, 0, 497,
+ 489, 0, 485, 478, 0, 457, 465, 436, 455, 451,
+ 436, 450, 0, 444, 425, 412, 0, 493, 432, 1093,
+ 465, 484, 529, 1093, 455, 369, 1093, 544, 377, 402,
+ 552, 407, 369, 433, 0, 401, 373, 0, 387, 373,
367, 380, 0, 348, 0, 330, 0, 0, 320, 0,
- 324, 295, 0, 295, 493, 1095, 512, 322, 535, 551,
- 562, 1095, 577, 581, 450, 585, 601, 581, 283, 0,
+ 324, 295, 0, 295, 534, 1093, 548, 322, 558, 560,
+ 568, 1093, 572, 587, 450, 590, 595, 501, 283, 0,
0, 0, 0, 0, 0, 254, 0, 0, 147, 130,
- 0, 601, 1095, 605, 609, 607, 1095, 615, 617, 150,
- 127, 521, 0, 55, 0, 628, 1095, 630, 61, 636,
- 638, 0, 1095, 640, 1095, 642, 1095, 663, 672, 677,
- 684, 692, 701, 706, 712, 721, 727, 729, 733, 742,
- 748, 750, 752, 755, 761, 767, 773, 779, 785, 794,
- 803, 812, 821, 830, 839
+ 0, 595, 1093, 599, 609, 611, 1093, 614, 618, 150,
+ 127, 520, 0, 55, 0, 623, 1093, 625, 61, 630,
+ 633, 0, 1093, 637, 1093, 639, 1093, 660, 669, 674,
+ 681, 689, 698, 703, 709, 718, 724, 726, 730, 739,
+ 745, 747, 749, 752, 758, 764, 770, 776, 782, 791,
+ 800, 809, 818, 827, 836
} ;
static tao_yyconst short int tao_yy_def[586] =
@@ -527,7 +527,7 @@ static tao_yyconst short int tao_yy_def[586] =
557, 557, 557, 557, 557
} ;
-static tao_yyconst short int tao_yy_nxt[1155] =
+static tao_yyconst short int tao_yy_nxt[1153] =
{ 0,
4, 5, 6, 7, 5, 8, 4, 9, 4, 4,
10, 11, 12, 13, 14, 14, 15, 16, 4, 17,
@@ -582,83 +582,83 @@ static tao_yyconst short int tao_yy_nxt[1155] =
509, 504, 503, 424, 425, 425, 424, 470, 471, 438,
438, 438, 438, 438, 438, 468, 468, 468, 424, 425,
425, 424, 425, 502, 501, 471, 506, 507, 500, 499,
- 426, 426, 426, 498, 497, 506, 507, 425, 473, 474,
-
- 474, 473, 475, 496, 507, 473, 474, 474, 473, 475,
- 430, 430, 430, 507, 506, 507, 495, 474, 483, 483,
- 483, 494, 551, 493, 474, 551, 483, 483, 483, 483,
- 492, 491, 507, 424, 425, 425, 424, 474, 474, 483,
- 483, 483, 483, 483, 483, 468, 468, 468, 511, 512,
- 512, 511, 425, 533, 534, 474, 516, 490, 489, 517,
- 513, 513, 513, 511, 512, 512, 511, 512, 518, 518,
- 518, 534, 488, 487, 486, 535, 535, 535, 511, 512,
- 512, 511, 512, 537, 538, 541, 516, 485, 380, 517,
- 513, 513, 513, 482, 518, 518, 518, 512, 518, 518,
-
- 518, 538, 516, 533, 534, 517, 540, 533, 534, 537,
- 538, 512, 512, 481, 518, 518, 518, 537, 538, 547,
- 548, 534, 535, 535, 535, 534, 480, 538, 479, 512,
- 547, 548, 547, 548, 433, 538, 476, 548, 553, 553,
- 555, 556, 555, 556, 555, 556, 467, 466, 548, 465,
- 548, 464, 463, 462, 461, 460, 553, 459, 556, 458,
- 556, 457, 556, 47, 47, 47, 47, 47, 47, 47,
- 47, 47, 50, 456, 50, 50, 50, 50, 50, 50,
- 50, 67, 67, 67, 67, 67, 132, 132, 132, 455,
- 454, 132, 135, 453, 135, 135, 135, 135, 135, 135,
-
- 135, 144, 144, 144, 144, 144, 144, 144, 144, 144,
- 150, 150, 152, 152, 152, 152, 152, 152, 152, 152,
- 152, 155, 452, 155, 155, 155, 155, 155, 155, 155,
- 223, 223, 223, 224, 224, 231, 231, 231, 451, 450,
- 231, 231, 292, 292, 292, 292, 292, 292, 292, 292,
- 292, 310, 310, 310, 313, 313, 314, 314, 381, 381,
- 381, 432, 432, 432, 432, 432, 432, 432, 432, 432,
- 439, 439, 439, 469, 469, 469, 469, 469, 469, 469,
- 469, 469, 484, 484, 484, 505, 505, 505, 505, 505,
- 505, 505, 505, 505, 508, 508, 508, 508, 508, 508,
-
- 508, 508, 508, 532, 532, 532, 532, 532, 532, 532,
- 532, 532, 536, 536, 536, 536, 536, 536, 536, 536,
- 536, 546, 546, 546, 546, 546, 546, 546, 546, 546,
- 549, 549, 549, 549, 549, 549, 549, 549, 549, 554,
- 554, 554, 554, 554, 554, 554, 554, 554, 449, 448,
- 447, 446, 445, 444, 443, 442, 441, 440, 380, 437,
- 436, 435, 434, 372, 433, 431, 428, 423, 422, 421,
- 420, 419, 418, 417, 416, 415, 414, 413, 412, 411,
- 410, 409, 406, 405, 404, 403, 402, 401, 400, 399,
- 398, 397, 396, 395, 394, 393, 392, 391, 390, 389,
-
- 388, 387, 386, 385, 384, 383, 382, 380, 309, 307,
- 377, 376, 375, 374, 557, 371, 370, 369, 368, 293,
- 365, 364, 363, 362, 361, 357, 356, 355, 354, 353,
- 352, 351, 350, 349, 348, 347, 346, 345, 344, 343,
- 342, 341, 340, 339, 338, 337, 336, 335, 334, 333,
- 332, 331, 330, 329, 328, 327, 326, 325, 324, 323,
- 322, 319, 318, 317, 316, 315, 69, 311, 309, 297,
- 296, 295, 294, 212, 293, 291, 290, 289, 288, 287,
- 286, 285, 284, 283, 282, 281, 278, 277, 276, 275,
- 274, 273, 272, 269, 268, 267, 266, 265, 264, 263,
-
- 262, 261, 260, 259, 258, 257, 256, 255, 254, 253,
- 252, 251, 250, 249, 248, 247, 246, 243, 242, 241,
- 240, 239, 238, 237, 236, 234, 228, 220, 220, 220,
- 218, 217, 216, 215, 214, 212, 211, 210, 209, 208,
- 207, 204, 203, 202, 201, 200, 199, 196, 195, 194,
- 191, 190, 189, 188, 187, 186, 185, 180, 179, 178,
- 177, 174, 173, 172, 171, 170, 169, 168, 167, 164,
- 163, 162, 161, 160, 159, 158, 157, 156, 151, 134,
- 129, 98, 94, 91, 90, 76, 72, 71, 68, 66,
- 65, 64, 51, 557, 3, 557, 557, 557, 557, 557,
+ 426, 426, 426, 498, 497, 425, 425, 425, 473, 474,
+
+ 474, 473, 475, 496, 507, 541, 468, 468, 468, 495,
+ 430, 430, 430, 425, 518, 518, 518, 474, 483, 483,
+ 483, 551, 494, 493, 551, 492, 483, 483, 483, 483,
+ 473, 474, 474, 473, 475, 491, 506, 507, 490, 483,
+ 483, 483, 483, 483, 483, 511, 512, 512, 511, 474,
+ 506, 507, 489, 516, 507, 488, 517, 513, 513, 513,
+ 474, 474, 533, 534, 512, 518, 518, 518, 507, 511,
+ 512, 512, 511, 511, 512, 512, 511, 487, 474, 486,
+ 534, 535, 535, 535, 485, 513, 513, 513, 512, 537,
+ 538, 516, 512, 380, 517, 482, 516, 533, 534, 517,
+
+ 540, 533, 534, 518, 518, 518, 481, 538, 518, 518,
+ 518, 512, 512, 537, 538, 534, 537, 538, 480, 534,
+ 547, 548, 535, 535, 535, 547, 548, 547, 548, 512,
+ 479, 538, 553, 553, 538, 555, 556, 433, 548, 555,
+ 556, 555, 556, 548, 476, 548, 467, 466, 465, 464,
+ 553, 463, 462, 556, 461, 460, 459, 556, 458, 556,
+ 47, 47, 47, 47, 47, 47, 47, 47, 47, 50,
+ 457, 50, 50, 50, 50, 50, 50, 50, 67, 67,
+ 67, 67, 67, 132, 132, 132, 456, 455, 132, 135,
+ 454, 135, 135, 135, 135, 135, 135, 135, 144, 144,
+
+ 144, 144, 144, 144, 144, 144, 144, 150, 150, 152,
+ 152, 152, 152, 152, 152, 152, 152, 152, 155, 453,
+ 155, 155, 155, 155, 155, 155, 155, 223, 223, 223,
+ 224, 224, 231, 231, 231, 452, 451, 231, 231, 292,
+ 292, 292, 292, 292, 292, 292, 292, 292, 310, 310,
+ 310, 313, 313, 314, 314, 381, 381, 381, 432, 432,
+ 432, 432, 432, 432, 432, 432, 432, 439, 439, 439,
+ 469, 469, 469, 469, 469, 469, 469, 469, 469, 484,
+ 484, 484, 505, 505, 505, 505, 505, 505, 505, 505,
+ 505, 508, 508, 508, 508, 508, 508, 508, 508, 508,
+
+ 532, 532, 532, 532, 532, 532, 532, 532, 532, 536,
+ 536, 536, 536, 536, 536, 536, 536, 536, 546, 546,
+ 546, 546, 546, 546, 546, 546, 546, 549, 549, 549,
+ 549, 549, 549, 549, 549, 549, 554, 554, 554, 554,
+ 554, 554, 554, 554, 554, 450, 449, 448, 447, 446,
+ 445, 444, 443, 442, 441, 440, 380, 437, 436, 435,
+ 434, 372, 433, 431, 428, 423, 422, 421, 420, 419,
+ 418, 417, 416, 415, 414, 413, 412, 411, 410, 409,
+ 406, 405, 404, 403, 402, 401, 400, 399, 398, 397,
+ 396, 395, 394, 393, 392, 391, 390, 389, 388, 387,
+
+ 386, 385, 384, 383, 382, 380, 309, 307, 377, 376,
+ 375, 374, 557, 371, 370, 369, 368, 293, 365, 364,
+ 363, 362, 361, 357, 356, 355, 354, 353, 352, 351,
+ 350, 349, 348, 347, 346, 345, 344, 343, 342, 341,
+ 340, 339, 338, 337, 336, 335, 334, 333, 332, 331,
+ 330, 329, 328, 327, 326, 325, 324, 323, 322, 319,
+ 318, 317, 316, 315, 69, 311, 309, 297, 296, 295,
+ 294, 212, 293, 291, 290, 289, 288, 287, 286, 285,
+ 284, 283, 282, 281, 278, 277, 276, 275, 274, 273,
+ 272, 269, 268, 267, 266, 265, 264, 263, 262, 261,
+
+ 260, 259, 258, 257, 256, 255, 254, 253, 252, 251,
+ 250, 249, 248, 247, 246, 243, 242, 241, 240, 239,
+ 238, 237, 236, 234, 228, 220, 220, 220, 218, 217,
+ 216, 215, 214, 212, 211, 210, 209, 208, 207, 204,
+ 203, 202, 201, 200, 199, 196, 195, 194, 191, 190,
+ 189, 188, 187, 186, 185, 180, 179, 178, 177, 174,
+ 173, 172, 171, 170, 169, 168, 167, 164, 163, 162,
+ 161, 160, 159, 158, 157, 156, 151, 134, 129, 98,
+ 94, 91, 90, 76, 72, 71, 68, 66, 65, 64,
+ 51, 557, 3, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
- 557, 557, 557, 557
+ 557, 557
} ;
-static tao_yyconst short int tao_yy_chk[1155] =
+static tao_yyconst short int tao_yy_chk[1153] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -713,80 +713,80 @@ static tao_yyconst short int tao_yy_chk[1155] =
475, 466, 465, 424, 424, 424, 424, 471, 471, 379,
379, 379, 379, 379, 379, 424, 424, 424, 426, 426,
426, 426, 424, 464, 462, 471, 472, 472, 461, 460,
- 426, 426, 426, 459, 458, 505, 505, 426, 430, 430,
-
- 430, 430, 430, 457, 472, 473, 473, 473, 473, 473,
- 430, 430, 430, 505, 507, 507, 456, 430, 438, 438,
- 438, 454, 542, 453, 473, 542, 438, 438, 438, 438,
- 451, 450, 507, 468, 468, 468, 468, 509, 509, 438,
- 438, 438, 438, 438, 438, 468, 468, 468, 478, 478,
- 478, 478, 468, 510, 510, 509, 481, 448, 447, 481,
- 478, 478, 478, 511, 511, 511, 511, 478, 481, 481,
- 481, 510, 444, 443, 441, 511, 511, 511, 513, 513,
- 513, 513, 511, 514, 514, 518, 516, 440, 439, 516,
- 513, 513, 513, 437, 518, 518, 518, 513, 516, 516,
-
- 516, 514, 517, 532, 532, 517, 517, 534, 534, 536,
- 536, 535, 535, 436, 517, 517, 517, 538, 538, 539,
- 539, 532, 535, 535, 535, 534, 435, 536, 434, 535,
- 546, 546, 548, 548, 432, 538, 431, 539, 550, 550,
- 551, 551, 554, 554, 556, 556, 423, 422, 546, 421,
- 548, 420, 418, 417, 415, 412, 550, 411, 551, 410,
- 554, 408, 556, 558, 558, 558, 558, 558, 558, 558,
- 558, 558, 559, 406, 559, 559, 559, 559, 559, 559,
- 559, 560, 560, 560, 560, 560, 561, 561, 561, 405,
- 404, 561, 562, 401, 562, 562, 562, 562, 562, 562,
-
- 562, 563, 563, 563, 563, 563, 563, 563, 563, 563,
- 564, 564, 565, 565, 565, 565, 565, 565, 565, 565,
- 565, 566, 399, 566, 566, 566, 566, 566, 566, 566,
- 567, 567, 567, 568, 568, 569, 569, 569, 398, 396,
- 569, 569, 570, 570, 570, 570, 570, 570, 570, 570,
- 570, 571, 571, 571, 572, 572, 573, 573, 574, 574,
- 574, 575, 575, 575, 575, 575, 575, 575, 575, 575,
- 576, 576, 576, 577, 577, 577, 577, 577, 577, 577,
- 577, 577, 578, 578, 578, 579, 579, 579, 579, 579,
- 579, 579, 579, 579, 580, 580, 580, 580, 580, 580,
-
- 580, 580, 580, 581, 581, 581, 581, 581, 581, 581,
- 581, 581, 582, 582, 582, 582, 582, 582, 582, 582,
- 582, 583, 583, 583, 583, 583, 583, 583, 583, 583,
- 584, 584, 584, 584, 584, 584, 584, 584, 584, 585,
- 585, 585, 585, 585, 585, 585, 585, 585, 394, 393,
- 392, 390, 388, 387, 386, 385, 384, 383, 381, 377,
- 376, 375, 374, 373, 372, 371, 369, 365, 363, 362,
- 360, 359, 358, 357, 356, 355, 354, 353, 351, 350,
- 349, 348, 346, 345, 344, 343, 341, 340, 339, 338,
- 336, 334, 333, 330, 329, 328, 327, 325, 324, 323,
-
- 322, 321, 319, 318, 317, 316, 315, 314, 310, 308,
- 305, 304, 303, 302, 298, 297, 296, 295, 294, 292,
- 291, 290, 288, 286, 285, 283, 282, 281, 280, 279,
- 278, 277, 276, 275, 274, 273, 272, 271, 270, 269,
- 268, 267, 266, 265, 264, 262, 261, 260, 259, 257,
- 256, 255, 254, 253, 252, 251, 249, 248, 247, 246,
- 245, 243, 240, 239, 238, 236, 230, 228, 223, 217,
- 216, 215, 214, 213, 212, 211, 210, 209, 208, 207,
- 206, 205, 204, 203, 202, 201, 199, 198, 197, 196,
- 195, 194, 193, 190, 189, 188, 187, 186, 185, 184,
-
- 183, 182, 181, 180, 179, 178, 177, 176, 175, 174,
- 173, 172, 171, 170, 169, 168, 167, 165, 164, 163,
- 162, 161, 159, 158, 157, 155, 151, 138, 136, 135,
- 129, 128, 127, 126, 125, 123, 118, 117, 116, 115,
- 114, 112, 111, 110, 109, 108, 107, 105, 104, 103,
- 101, 100, 99, 98, 97, 96, 95, 92, 91, 90,
- 89, 87, 86, 85, 84, 83, 82, 81, 80, 78,
- 77, 76, 75, 74, 73, 72, 71, 70, 68, 50,
- 45, 34, 32, 30, 29, 24, 22, 21, 19, 17,
- 16, 15, 9, 3, 557, 557, 557, 557, 557, 557,
+ 426, 426, 426, 459, 458, 468, 468, 426, 430, 430,
+
+ 430, 430, 430, 457, 472, 518, 468, 468, 468, 456,
+ 430, 430, 430, 468, 518, 518, 518, 430, 438, 438,
+ 438, 542, 454, 453, 542, 451, 438, 438, 438, 438,
+ 473, 473, 473, 473, 473, 450, 505, 505, 448, 438,
+ 438, 438, 438, 438, 438, 478, 478, 478, 478, 473,
+ 507, 507, 447, 481, 505, 444, 481, 478, 478, 478,
+ 509, 509, 510, 510, 478, 481, 481, 481, 507, 511,
+ 511, 511, 511, 513, 513, 513, 513, 443, 509, 441,
+ 510, 511, 511, 511, 440, 513, 513, 513, 511, 514,
+ 514, 516, 513, 439, 516, 437, 517, 532, 532, 517,
+
+ 517, 534, 534, 516, 516, 516, 436, 514, 517, 517,
+ 517, 535, 535, 536, 536, 532, 538, 538, 435, 534,
+ 539, 539, 535, 535, 535, 546, 546, 548, 548, 535,
+ 434, 536, 550, 550, 538, 551, 551, 432, 539, 554,
+ 554, 556, 556, 546, 431, 548, 423, 422, 421, 420,
+ 550, 418, 417, 551, 415, 412, 411, 554, 410, 556,
+ 558, 558, 558, 558, 558, 558, 558, 558, 558, 559,
+ 408, 559, 559, 559, 559, 559, 559, 559, 560, 560,
+ 560, 560, 560, 561, 561, 561, 406, 405, 561, 562,
+ 404, 562, 562, 562, 562, 562, 562, 562, 563, 563,
+
+ 563, 563, 563, 563, 563, 563, 563, 564, 564, 565,
+ 565, 565, 565, 565, 565, 565, 565, 565, 566, 401,
+ 566, 566, 566, 566, 566, 566, 566, 567, 567, 567,
+ 568, 568, 569, 569, 569, 399, 398, 569, 569, 570,
+ 570, 570, 570, 570, 570, 570, 570, 570, 571, 571,
+ 571, 572, 572, 573, 573, 574, 574, 574, 575, 575,
+ 575, 575, 575, 575, 575, 575, 575, 576, 576, 576,
+ 577, 577, 577, 577, 577, 577, 577, 577, 577, 578,
+ 578, 578, 579, 579, 579, 579, 579, 579, 579, 579,
+ 579, 580, 580, 580, 580, 580, 580, 580, 580, 580,
+
+ 581, 581, 581, 581, 581, 581, 581, 581, 581, 582,
+ 582, 582, 582, 582, 582, 582, 582, 582, 583, 583,
+ 583, 583, 583, 583, 583, 583, 583, 584, 584, 584,
+ 584, 584, 584, 584, 584, 584, 585, 585, 585, 585,
+ 585, 585, 585, 585, 585, 396, 394, 393, 392, 390,
+ 388, 387, 386, 385, 384, 383, 381, 377, 376, 375,
+ 374, 373, 372, 371, 369, 365, 363, 362, 360, 359,
+ 358, 357, 356, 355, 354, 353, 351, 350, 349, 348,
+ 346, 345, 344, 343, 341, 340, 339, 338, 336, 334,
+ 333, 330, 329, 328, 327, 325, 324, 323, 322, 321,
+
+ 319, 318, 317, 316, 315, 314, 310, 308, 305, 304,
+ 303, 302, 298, 297, 296, 295, 294, 292, 291, 290,
+ 288, 286, 285, 283, 282, 281, 280, 279, 278, 277,
+ 276, 275, 274, 273, 272, 271, 270, 269, 268, 267,
+ 266, 265, 264, 262, 261, 260, 259, 257, 256, 255,
+ 254, 253, 252, 251, 249, 248, 247, 246, 245, 243,
+ 240, 239, 238, 236, 230, 228, 223, 217, 216, 215,
+ 214, 213, 212, 211, 210, 209, 208, 207, 206, 205,
+ 204, 203, 202, 201, 199, 198, 197, 196, 195, 194,
+ 193, 190, 189, 188, 187, 186, 185, 184, 183, 182,
+
+ 181, 180, 179, 178, 177, 176, 175, 174, 173, 172,
+ 171, 170, 169, 168, 167, 165, 164, 163, 162, 161,
+ 159, 158, 157, 155, 151, 138, 136, 135, 129, 128,
+ 127, 126, 125, 123, 118, 117, 116, 115, 114, 112,
+ 111, 110, 109, 108, 107, 105, 104, 103, 101, 100,
+ 99, 98, 97, 96, 95, 92, 91, 90, 89, 87,
+ 86, 85, 84, 83, 82, 81, 80, 78, 77, 76,
+ 75, 74, 73, 72, 71, 70, 68, 50, 45, 34,
+ 32, 30, 29, 24, 22, 21, 19, 17, 16, 15,
+ 9, 3, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
- 557, 557, 557, 557
+ 557, 557
} ;
static tao_yy_state_type tao_yy_last_accepting_state;
@@ -806,7 +806,7 @@ static char *tao_yy_last_accepting_cpos;
char tao_yytext[TAO_YYLMAX];
char *tao_yytext_ptr;
#define INITIAL 0
-/* idl.ll,v 1.98 2005/07/07 19:55:08 gmaxey Exp
+/* $Id: idl.ll,v 1.97 2005/07/05 23:09:58 parsons Exp
COPYRIGHT
@@ -902,7 +902,7 @@ static idl_uns_long idl_atoui (char *, long);
static void idl_parse_line_and_file (char *);
static void idl_store_pragma (char *);
static char * idl_get_pragma_string (char *);
-static bool idl_valid_version (char *);
+static idl_bool idl_valid_version (char *);
static AST_Decl * idl_find_node (char *);
#define ace_tao_yytext tao_yytext
@@ -1120,7 +1120,7 @@ tao_yy_match:
tao_yy_current_state = tao_yy_nxt[tao_yy_base[tao_yy_current_state] + (unsigned int) tao_yy_c];
++tao_yy_cp;
}
- while ( tao_yy_base[tao_yy_current_state] != 1095 );
+ while ( tao_yy_base[tao_yy_current_state] != 1093 );
tao_yy_find_action:
tao_yy_act = tao_yy_accept[tao_yy_current_state];
@@ -1513,7 +1513,7 @@ TAO_YY_RULE_SETUP
{
/* Skip the quotes */
char *tmp = ace_tao_yytext;
- for(int i = ACE_OS::strlen(tmp) - 1; i >= 0; --i) {
+ for(int i = strlen(tmp) - 1; i >= 0; --i) {
if (isspace(tmp[i])) {
tmp[i] = '\0';
}
@@ -1521,7 +1521,7 @@ TAO_YY_RULE_SETUP
break;
}
}
- tmp[ACE_OS::strlen (tmp) - 1] = '\0';
+ tmp[strlen (tmp) - 1] = '\0';
ACE_NEW_RETURN (tao_yylval.sval,
UTL_String (tmp + 1),
IDL_STRING_LITERAL);
@@ -1533,15 +1533,7 @@ TAO_YY_RULE_SETUP
{
/* Skip the bookends */
char *tmp = ACE_OS::strdup (ace_tao_yytext);
- for(int i = ACE_OS::strlen(tmp) - 1; i >= 0; --i) {
- if (isspace(tmp[i])) {
- tmp[i] = '\0';
- }
- else {
- break;
- }
- }
- tmp[ACE_OS::strlen (tmp) - 1] = '\0';
+ tmp[strlen (tmp) - 1] = '\0';
tao_yylval.wsval = idl_wstring_escape_reader(tmp + 2);
return IDL_WSTRING_LITERAL;
}
@@ -2663,9 +2655,9 @@ idl_parse_line_and_file (char *buf)
}
UTL_String *fname = idl_global->filename ();
- bool in_main_file = false;
- bool is_real_filename = fname->compare (idl_global->real_filename ());
- bool is_main_filename = false;
+ idl_bool in_main_file = I_FALSE;
+ idl_bool is_real_filename = fname->compare (idl_global->real_filename ());
+ idl_bool is_main_filename = I_FALSE;
if (!is_real_filename)
{
@@ -2674,7 +2666,7 @@ idl_parse_line_and_file (char *buf)
if (is_real_filename || is_main_filename)
{
- in_main_file = true;
+ in_main_file = I_TRUE;
}
idl_global->set_in_main_file (in_main_file);
@@ -2746,13 +2738,13 @@ idl_store_pragma (char *buf)
if (ACE_OS::strstr (buf + 8, "import") != 0)
{
- idl_global->set_import (true);
+ idl_global->set_import (I_TRUE);
return;
}
if (ACE_OS::strstr (buf + 8, "include") != 0)
{
- idl_global->set_import (false);
+ idl_global->set_import (I_FALSE);
return;
}
@@ -2778,7 +2770,7 @@ idl_store_pragma (char *buf)
if (depth > 1)
{
- top_scope->has_prefix (true);
+ top_scope->has_prefix (I_TRUE);
ScopeAsDecl (top_scope)->prefix_scope (top_scope);
}
@@ -2787,8 +2779,8 @@ idl_store_pragma (char *buf)
if (idl_global->in_main_file ())
{
idl_global->root ()->prefix (new_prefix);
- idl_global->root ()->set_imported (false);
- top_scope->has_prefix (true);
+ idl_global->root ()->set_imported (I_FALSE);
+ top_scope->has_prefix (I_TRUE);
}
ACE_CString ext_id;
@@ -2879,7 +2871,7 @@ idl_store_pragma (char *buf)
}
d->repoID (new_id);
- d->typeid_set (true);
+ d->typeid_set (I_TRUE);
}
}
else if (ACE_OS::strncmp (buf + 8, "DCPS_DATA_TYPE", 14) == 0)
@@ -2895,14 +2887,14 @@ idl_store_pragma (char *buf)
char *foo_type = tmp;
while (*tmp && !isspace(*tmp))
tmp++;
- while (isspace(*tmp))
+ while (isspace(*tmp))
{
*tmp = '\0';
tmp++;
}
char *key = tmp;
- if (!idl_global->add_dcps_data_key(foo_type, key))
+ if (!idl_global->add_dcps_data_key(foo_type, key))
{
ACE_ERROR((LM_ERROR, "DCPS_DATA_TYPE \"%s\" not found for key \"%s\"\n",
foo_type, key));
@@ -3213,7 +3205,7 @@ idl_get_pragma_string (char *pragma)
return retval;
}
-static bool
+static idl_bool
idl_valid_version (char *s)
{
// Nothing preceding decimal point.
@@ -3276,7 +3268,7 @@ idl_find_node (char *s)
if (node != 0)
{
d = idl_global->scopes ().top_non_null ()->lookup_by_name (node,
- true);
+ I_TRUE);
}
if (d == 0)
diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp.diff b/TAO/TAO_IDL/fe/lex.yy.cpp.diff
index 82b0b590534..16ba056ee02 100644
--- a/TAO/TAO_IDL/fe/lex.yy.cpp.diff
+++ b/TAO/TAO_IDL/fe/lex.yy.cpp.diff
@@ -1,6 +1,6 @@
--- lex.yy.cpp.orig 2005-07-07 11:05:08.066403000 -0700
+++ lex.yy.cpp 2005-07-07 10:51:41.804932200 -0700
-@@ -1134,7 +1134,7 @@
+@@ -1058,7 +1058,7 @@
TAO_YY_DECL
{
register tao_yy_state_type tao_yy_current_state;
@@ -9,16 +9,14 @@
register int tao_yy_act;
-@@ -1664,42 +1664,42 @@
+@@ -1591,42 +1591,42 @@
idl_global->set_lineno(idl_global->lineno() + 1);
idl_store_pragma(ace_tao_yytext);
}
- TAO_YY_BREAK
+ break;
case 87:
- /* rule 87 can match eol */
case 88:
- /* rule 88 can match eol */
TAO_YY_RULE_SETUP
{/* ignore file */
idl_global->set_lineno(idl_global->lineno() + 1);
@@ -26,9 +24,7 @@
- TAO_YY_BREAK
+ break;
case 89:
- /* rule 89 can match eol */
case 90:
- /* rule 90 can match eol */
TAO_YY_RULE_SETUP
{
idl_parse_line_and_file(ace_tao_yytext);
@@ -36,9 +32,7 @@
- TAO_YY_BREAK
+ break;
case 91:
- /* rule 91 can match eol */
case 92:
- /* rule 92 can match eol */
TAO_YY_RULE_SETUP
{
idl_parse_line_and_file(ace_tao_yytext);
@@ -46,9 +40,7 @@
- TAO_YY_BREAK
+ break;
case 93:
- /* rule 93 can match eol */
case 94:
- /* rule 94 can match eol */
TAO_YY_RULE_SETUP
{
idl_parse_line_and_file(ace_tao_yytext);
@@ -56,9 +48,7 @@
- TAO_YY_BREAK
+ break;
case 95:
- /* rule 95 can match eol */
case 96:
- /* rule 96 can match eol */
TAO_YY_RULE_SETUP
{
idl_parse_line_and_file(ace_tao_yytext);
@@ -66,18 +56,15 @@
- TAO_YY_BREAK
+ break;
case 97:
- /* rule 97 can match eol */
case 98:
- /* rule 98 can match eol */
TAO_YY_RULE_SETUP
- {
+@@ -1634,14 +1634,14 @@
/* ignore cpp ident */
idl_global->set_lineno(idl_global->lineno() + 1);
}
- TAO_YY_BREAK
+ break;
case 99:
- /* rule 99 can match eol */
TAO_YY_RULE_SETUP
{
/* ignore comments */
@@ -88,16 +75,7 @@
case 100:
TAO_YY_RULE_SETUP
{
- for(;;) {
- char c = tao_yyinput();
- if (c == '*') {
- char next = tao_yyinput();
- if (next == '/')
- break;
- else
- tao_yyunput(c, 0);
- if (c == '\n')
- idl_global->set_lineno(idl_global->lineno() + 1);
+@@ -1658,17 +1658,17 @@
}
}
}
@@ -109,7 +87,6 @@
- TAO_YY_BREAK
+ break;
case 102:
- /* rule 102 can match eol */
TAO_YY_RULE_SETUP
{
idl_global->set_lineno(idl_global->lineno() + 1);
@@ -119,3 +96,41 @@
case 103:
TAO_YY_RULE_SETUP
return ace_tao_yytext [0];
+@@ -1676,7 +1676,7 @@
+ case 104:
+ TAO_YY_RULE_SETUP
+ TAO_YY_ECHO;
+- TAO_YY_BREAK
++ break;
+ case TAO_YY_STATE_EOF(INITIAL):
+ tao_yyterminate();
+
+@@ -2059,6 +2059,7 @@
+ #endif /* ifndef TAO_YY_NO_UNPUT */
+
+
++#ifndef TAO_YY_NO_INPUT
+ #ifdef __cplusplus
+ static int tao_yyinput()
+ #else
+@@ -2131,7 +2132,7 @@
+
+ return c;
+ }
+-
++#endif /* TAO_YY_NO_INPUT */
+
+ #ifdef TAO_YY_USE_PROTOS
+ void tao_yyrestart( FILE *input_file )
+@@ -2242,11 +2243,6 @@
+ }
+
+
+-#ifndef TAO_YY_ALWAYS_INTERACTIVE
+-#ifndef TAO_YY_NEVER_INTERACTIVE
+-extern int isatty TAO_YY_PROTO(( int ));
+-#endif
+-#endif
+
+ #ifdef TAO_YY_USE_PROTOS
+ void tao_yy_init_buffer( TAO_YY_BUFFER_STATE b, FILE *file )
diff --git a/TAO/TAO_IDL/fe/y.tab.cpp b/TAO/TAO_IDL/fe/y.tab.cpp
index d39fc8c66e0..77cacf52da5 100644
--- a/TAO/TAO_IDL/fe/y.tab.cpp
+++ b/TAO/TAO_IDL/fe/y.tab.cpp
@@ -1,8 +1,8 @@
// $Id$
-/* A Bison parser, made by GNU Bison 1.875d. */
+/* A Bison parser, made by GNU Bison 1.875c. */
/* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -306,7 +306,7 @@ typedef union TAO_YYSTYPE {
AST_Argument::Direction dival; /* Argument direction */
AST_Operation::Flags ofval; /* Operation flags */
FE_Declarator *deval; /* Declarator value */
- bool bval; /* Boolean value */
+ idl_bool bval; /* Boolean value */
long ival; /* Long value */
idl_uns_long uival; /* Unsigned long value */
double dval; /* Double value */
@@ -380,7 +380,7 @@ typedef union TAO_YYSTYPE {
/* A type that is properly aligned for any stack member. */
union tao_yyalloc
{
- short int tao_yyss;
+ short tao_yyss;
TAO_YYSTYPE tao_yyvs;
};
@@ -390,7 +390,7 @@ union tao_yyalloc
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define TAO_YYSTACK_BYTES(N) \
- ((N) * (sizeof (short int) + sizeof (TAO_YYSTYPE)) \
+ ((N) * (sizeof (short) + sizeof (TAO_YYSTYPE)) \
+ TAO_YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
@@ -432,7 +432,7 @@ union tao_yyalloc
#if defined (__STDC__) || defined (__cplusplus)
typedef signed char tao_yysigned_char;
#else
- typedef short int tao_yysigned_char;
+ typedef short tao_yysigned_char;
#endif
/* TAO_YYFINAL -- State number of the termination state. */
@@ -498,7 +498,7 @@ static const unsigned char tao_yytranslate[] =
#if TAO_YYDEBUG
/* TAO_YYPRHS[TAO_YYN] -- Index of the first RHS symbol of rule number TAO_YYN in
TAO_YYRHS. */
-static const unsigned short int tao_yyprhs[] =
+static const unsigned short tao_yyprhs[] =
{
0, 0, 3, 5, 8, 9, 10, 14, 15, 19,
20, 24, 25, 29, 30, 34, 35, 39, 40, 44,
@@ -551,7 +551,7 @@ static const unsigned short int tao_yyprhs[] =
};
/* TAO_YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const short int tao_yyrhs[] =
+static const short tao_yyrhs[] =
{
101, 0, -1, 102, -1, 102, 103, -1, -1, -1,
190, 104, 79, -1, -1, 351, 105, 79, -1, -1,
@@ -677,56 +677,56 @@ static const short int tao_yyrhs[] =
};
/* TAO_YYRLINE[TAO_YYN] -- source line where rule number TAO_YYN was defined. */
-static const unsigned short int tao_yyrline[] =
+static const unsigned short tao_yyrline[] =
{
- 0, 320, 320, 323, 324, 329, 328, 339, 338, 349,
- 348, 359, 358, 369, 368, 379, 378, 389, 388, 399,
- 398, 409, 408, 419, 418, 429, 428, 439, 438, 452,
- 457, 481, 486, 451, 502, 503, 508, 547, 552, 507,
- 570, 569, 583, 614, 638, 665, 664, 676, 683, 684,
- 685, 686, 690, 701, 706, 750, 755, 705, 784, 823,
- 828, 782, 847, 845, 882, 881, 895, 901, 908, 915,
- 922, 944, 967, 1020, 1021, 1025, 1026, 1027, 1033, 1032,
- 1040, 1039, 1049, 1050, 1055, 1054, 1065, 1064, 1075, 1074,
- 1085, 1084, 1095, 1094, 1105, 1104, 1115, 1114, 1125, 1124,
- 1138, 1151, 1149, 1179, 1186, 1197, 1196, 1222, 1220, 1241,
- 1252, 1289, 1313, 1340, 1345, 1350, 1355, 1339, 1404, 1405,
- 1406, 1407, 1408, 1409, 1410, 1422, 1427, 1498, 1500, 1502,
- 1503, 1517, 1518, 1532, 1533, 1546, 1547, 1557, 1570, 1571,
- 1581, 1594, 1595, 1605, 1615, 1628, 1629, 1639, 1649, 1662,
- 1692, 1693, 1702, 1707, 1714, 1719, 1724, 1729, 1735, 1740,
- 1746, 1755, 1829, 1828, 1838, 1843, 1848, 1853, 1876, 1885,
- 1884, 1937, 1938, 1942, 1950, 1951, 1979, 1980, 1981, 1982,
- 1983, 1984, 1985, 1986, 1990, 1991, 1992, 1996, 1997, 1998,
- 2002, 2003, 2007, 2020, 2018, 2048, 2055, 2056, 2060, 2073,
- 2071, 2101, 2108, 2125, 2144, 2145, 2149, 2154, 2159, 2167,
- 2172, 2177, 2185, 2190, 2195, 2203, 2217, 2222, 2230, 2238,
- 2246, 2254, 2263, 2262, 2278, 2308, 2313, 2277, 2332, 2335,
- 2336, 2340, 2340, 2350, 2355, 2349, 2414, 2413, 2428, 2427,
- 2442, 2447, 2452, 2457, 2500, 2505, 2441, 2529, 2537, 2551,
- 2561, 2569, 2570, 2667, 2670, 2671, 2676, 2681, 2675, 2711,
- 2710, 2724, 2735, 2757, 2765, 2764, 2780, 2785, 2779, 2802,
- 2801, 2850, 2870, 2891, 2896, 2925, 2930, 2890, 2956, 2961,
- 2959, 2966, 2970, 3005, 3010, 3003, 3067, 3122, 3132, 3121,
- 3147, 3152, 3145, 3184, 3208, 3218, 3223, 3216, 3253, 3276,
- 3285, 3284, 3314, 3325, 3347, 3355, 3360, 3354, 3388, 3389,
- 3394, 3399, 3404, 3409, 3393, 3470, 3475, 3480, 3485, 3469,
- 3551, 3556, 3582, 3587, 3550, 3605, 3610, 3663, 3668, 3603,
- 3705, 3711, 3718, 3725, 3726, 3738, 3744, 3781, 3737, 3803,
- 3802, 3813, 3812, 3825, 3830, 3828, 3835, 3840, 3845, 3839,
- 3882, 3881, 3892, 3891, 3904, 3909, 3907, 3914, 3919, 3924,
- 3918, 3967, 3975, 3976, 3977, 4020, 4025, 4030, 4039, 4044,
- 4038, 4056, 4064, 4069, 4063, 4081, 4089, 4094, 4088, 4106,
- 4114, 4119, 4113, 4131, 4138, 4151, 4149, 4177, 4184, 4205,
- 4235, 4236, 4240, 4266, 4306, 4311, 4265, 4330, 4335, 4328,
- 4363, 4362, 4373, 4380, 4381, 4386, 4385, 4396, 4395, 4406,
- 4405, 4416, 4415, 4426, 4425, 4436, 4435, 4448, 4489, 4507,
- 4532, 4583, 4589, 4596, 4630, 4664, 4699, 4698, 4748, 4753,
- 4758, 4763, 4768, 4773, 4747, 4802, 4801, 4812, 4819, 4826,
- 4834, 4839, 4833, 4851, 4852, 4856, 4858, 4857, 4868, 4867,
- 4882, 4917, 4880, 4951, 4986, 4949, 5018, 5019, 5020, 5024,
- 5025, 5029, 5053, 5080, 5121, 5126, 5078, 5143, 5153, 5172,
- 5184, 5183, 5216, 5262, 5267, 5214, 5284, 5289
+ 0, 319, 319, 322, 323, 328, 327, 338, 337, 348,
+ 347, 358, 357, 368, 367, 378, 377, 388, 387, 398,
+ 397, 408, 407, 418, 417, 428, 427, 438, 437, 451,
+ 456, 480, 485, 450, 501, 502, 507, 546, 551, 506,
+ 569, 568, 582, 611, 633, 658, 657, 669, 676, 677,
+ 678, 679, 683, 694, 699, 738, 743, 698, 772, 811,
+ 816, 770, 835, 833, 871, 870, 884, 890, 897, 904,
+ 911, 933, 956, 970, 971, 975, 976, 977, 983, 982,
+ 990, 989, 999, 1000, 1005, 1004, 1015, 1014, 1025, 1024,
+ 1035, 1034, 1045, 1044, 1055, 1054, 1065, 1064, 1075, 1074,
+ 1088, 1101, 1099, 1129, 1136, 1147, 1146, 1172, 1170, 1191,
+ 1202, 1239, 1263, 1290, 1295, 1300, 1305, 1289, 1354, 1355,
+ 1356, 1357, 1358, 1359, 1360, 1372, 1377, 1448, 1450, 1452,
+ 1453, 1467, 1468, 1482, 1483, 1496, 1497, 1507, 1520, 1521,
+ 1531, 1544, 1545, 1555, 1565, 1578, 1579, 1589, 1599, 1612,
+ 1642, 1643, 1652, 1657, 1664, 1669, 1674, 1679, 1685, 1690,
+ 1696, 1705, 1779, 1778, 1788, 1793, 1798, 1803, 1826, 1835,
+ 1834, 1887, 1888, 1892, 1900, 1901, 1929, 1930, 1931, 1932,
+ 1933, 1934, 1935, 1936, 1940, 1941, 1942, 1946, 1947, 1948,
+ 1952, 1953, 1957, 1970, 1968, 1998, 2005, 2006, 2010, 2023,
+ 2021, 2051, 2058, 2075, 2094, 2095, 2099, 2104, 2109, 2117,
+ 2122, 2127, 2135, 2140, 2145, 2153, 2167, 2172, 2180, 2188,
+ 2196, 2204, 2213, 2212, 2228, 2258, 2263, 2227, 2282, 2285,
+ 2286, 2290, 2290, 2300, 2305, 2299, 2364, 2363, 2378, 2377,
+ 2392, 2397, 2402, 2407, 2450, 2455, 2391, 2479, 2487, 2501,
+ 2511, 2519, 2520, 2617, 2620, 2621, 2626, 2631, 2625, 2661,
+ 2660, 2674, 2685, 2707, 2715, 2714, 2730, 2735, 2729, 2752,
+ 2751, 2800, 2820, 2841, 2846, 2875, 2880, 2840, 2906, 2911,
+ 2909, 2916, 2920, 2955, 2960, 2953, 3017, 3072, 3082, 3071,
+ 3097, 3102, 3095, 3134, 3158, 3168, 3173, 3166, 3203, 3226,
+ 3235, 3234, 3264, 3275, 3297, 3305, 3310, 3304, 3338, 3339,
+ 3344, 3349, 3354, 3359, 3343, 3420, 3425, 3430, 3435, 3419,
+ 3501, 3506, 3532, 3537, 3500, 3555, 3560, 3613, 3618, 3553,
+ 3655, 3661, 3668, 3675, 3676, 3688, 3694, 3731, 3687, 3753,
+ 3752, 3763, 3762, 3775, 3780, 3778, 3785, 3790, 3795, 3789,
+ 3832, 3831, 3842, 3841, 3854, 3859, 3857, 3864, 3869, 3874,
+ 3868, 3917, 3925, 3926, 3927, 3970, 3975, 3980, 3989, 3994,
+ 3988, 4006, 4014, 4019, 4013, 4031, 4039, 4044, 4038, 4056,
+ 4064, 4069, 4063, 4081, 4088, 4101, 4099, 4127, 4134, 4155,
+ 4185, 4186, 4190, 4216, 4256, 4261, 4215, 4280, 4285, 4278,
+ 4311, 4310, 4321, 4328, 4329, 4334, 4333, 4344, 4343, 4354,
+ 4353, 4364, 4363, 4374, 4373, 4384, 4383, 4396, 4437, 4455,
+ 4480, 4530, 4536, 4543, 4577, 4611, 4646, 4645, 4695, 4700,
+ 4705, 4710, 4715, 4720, 4694, 4747, 4746, 4757, 4764, 4771,
+ 4779, 4784, 4778, 4796, 4797, 4801, 4803, 4802, 4813, 4812,
+ 4827, 4862, 4825, 4896, 4931, 4894, 4963, 4964, 4965, 4969,
+ 4970, 4974, 4998, 5025, 5066, 5071, 5023, 5088, 5098, 5117,
+ 5129, 5128, 5161, 5202, 5207, 5159, 5224, 5229
};
#endif
@@ -822,7 +822,7 @@ static const char *const tao_yytname[] =
# ifdef TAO_YYPRINT
/* TAO_YYTOKNUM[TAO_YYLEX-NUM] -- Internal token number corresponding to
token TAO_YYLEX-NUM. */
-static const unsigned short int tao_yytoknum[] =
+static const unsigned short tao_yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
@@ -838,7 +838,7 @@ static const unsigned short int tao_yytoknum[] =
# endif
/* TAO_YYR1[TAO_YYN] -- Symbol number of symbol that rule TAO_YYN derives. */
-static const unsigned short int tao_yyr1[] =
+static const unsigned short tao_yyr1[] =
{
0, 100, 101, 102, 102, 104, 103, 105, 103, 106,
103, 107, 103, 108, 103, 109, 103, 110, 103, 111,
@@ -946,7 +946,7 @@ static const unsigned char tao_yyr2[] =
/* TAO_YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
STATE-NUM when TAO_YYTABLE doesn't specify something else to do. Zero
means the default is an error. */
-static const unsigned short int tao_yydefact[] =
+static const unsigned short tao_yydefact[] =
{
4, 0, 0, 1, 27, 113, 29, 40, 162, 222,
238, 273, 320, 0, 0, 0, 0, 64, 0, 0,
@@ -1019,7 +1019,7 @@ static const unsigned short int tao_yydefact[] =
};
/* TAO_YYDEFGOTO[NTERM-NUM]. */
-static const short int tao_yydefgoto[] =
+static const short tao_yydefgoto[] =
{
-1, 1, 2, 23, 146, 150, 151, 145, 149, 96,
95, 100, 152, 154, 156, 67, 24, 69, 225, 310,
@@ -1059,7 +1059,7 @@ static const short int tao_yydefgoto[] =
/* TAO_YYPACT[STATE-NUM] -- Index in TAO_YYTABLE of the portion describing
STATE-NUM. */
#define TAO_YYPACT_NINF -483
-static const short int tao_yypact[] =
+static const short tao_yypact[] =
{
-483, 49, 1047, -483, -483, -483, -483, -483, -483, -483,
-483, -483, -483, 61, 60, 66, 68, -483, 61, 61,
@@ -1132,7 +1132,7 @@ static const short int tao_yypact[] =
};
/* TAO_YYPGOTO[NTERM-NUM]. */
-static const short int tao_yypgoto[] =
+static const short tao_yypgoto[] =
{
-483, -483, 189, -483, -483, -483, -483, -483, -483, -483,
-483, -483, -483, -483, -483, -483, -483, -483, -483, -483,
@@ -1174,7 +1174,7 @@ static const short int tao_yypgoto[] =
number is the opposite. If zero, do what TAO_YYDEFACT says.
If TAO_YYTABLE_NINF, syntax error. */
#define TAO_YYTABLE_NINF -475
-static const short int tao_yytable[] =
+static const short tao_yytable[] =
{
77, 78, 138, 92, 94, 88, 89, 169, 170, 134,
119, 135, 350, 38, 136, 163, 118, 166, 137, 167,
@@ -1290,7 +1290,7 @@ static const short int tao_yytable[] =
21, 22
};
-static const short int tao_yycheck[] =
+static const short tao_yycheck[] =
{
13, 13, 34, 21, 22, 18, 19, 68, 68, 34,
34, 34, 286, 2, 34, 68, 34, 68, 34, 68,
@@ -1408,7 +1408,7 @@ static const short int tao_yycheck[] =
/* TAO_YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
-static const unsigned short int tao_yystos[] =
+static const unsigned short tao_yystos[] =
{
0, 101, 102, 0, 1, 4, 5, 6, 7, 20,
21, 23, 27, 40, 41, 42, 43, 49, 50, 53,
@@ -1591,12 +1591,12 @@ do { \
#if defined (__STDC__) || defined (__cplusplus)
static void
-tao_yy_stack_print (short int *bottom, short int *top)
+tao_yy_stack_print (short *bottom, short *top)
#else
static void
tao_yy_stack_print (bottom, top)
- short int *bottom;
- short int *top;
+ short *bottom;
+ short *top;
#endif
{
TAO_YYFPRINTF (stderr, "Stack now");
@@ -1853,9 +1853,9 @@ tao_yyparse ()
to reallocate them elsewhere. */
/* The state stack. */
- short int tao_yyssa[TAO_YYINITDEPTH];
- short int *tao_yyss = tao_yyssa;
- register short int *tao_yyssp;
+ short tao_yyssa[TAO_YYINITDEPTH];
+ short *tao_yyss = tao_yyssa;
+ register short *tao_yyssp;
/* The semantic value stack. */
TAO_YYSTYPE tao_yyvsa[TAO_YYINITDEPTH];
@@ -1892,7 +1892,6 @@ tao_yyparse ()
tao_yyssp = tao_yyss;
tao_yyvsp = tao_yyvs;
-
goto tao_yysetstate;
/*------------------------------------------------------------.
@@ -1918,7 +1917,7 @@ tao_yyparse ()
these so that the &'s don't force the real ones into
memory. */
TAO_YYSTYPE *tao_yyvs1 = tao_yyvs;
- short int *tao_yyss1 = tao_yyss;
+ short *tao_yyss1 = tao_yyss;
/* Each stack pointer address is followed by the size of the
@@ -1946,7 +1945,7 @@ tao_yyparse ()
tao_yystacksize = TAO_YYMAXDEPTH;
{
- short int *tao_yyss1 = tao_yyss;
+ short *tao_yyss1 = tao_yyss;
union tao_yyalloc *tao_yyptr =
(union tao_yyalloc *) TAO_YYSTACK_ALLOC (TAO_YYSTACK_BYTES (tao_yystacksize));
if (! tao_yyptr)
@@ -2364,7 +2363,7 @@ tao_yyreduce:
(void) s->fe_add_interface (i);
// This FE_InterfaceHeader class isn't destroyed with the AST.
- tao_yyvsp[0].ihval->destroy ();
+ tao_yyvsp[0].ihval->name ()->destroy ();
delete tao_yyvsp[0].ihval;
tao_yyvsp[0].ihval = 0;
}
@@ -2441,16 +2440,14 @@ tao_yyreduce:
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName (tao_yyvsp[-1].idval, 0),
- 1);
+ UTL_ScopedName n (tao_yyvsp[-1].idval,
+ 0);
ACE_NEW_RETURN (tao_yyval.ihval,
- FE_InterfaceHeader (n,
+ FE_InterfaceHeader (&n,
tao_yyvsp[0].nlval,
- false,
- false,
- true),
+ I_FALSE,
+ I_FALSE,
+ I_TRUE),
1);
}
break;
@@ -2467,16 +2464,14 @@ tao_yyreduce:
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName (tao_yyvsp[-1].idval, 0),
- 1);
+ UTL_ScopedName n (tao_yyvsp[-1].idval,
+ 0);
ACE_NEW_RETURN (tao_yyval.ihval,
- FE_InterfaceHeader (n,
+ FE_InterfaceHeader (&n,
tao_yyvsp[0].nlval,
- true,
- false,
- true),
+ I_TRUE,
+ I_FALSE,
+ I_TRUE),
1);
}
break;
@@ -2493,16 +2488,14 @@ tao_yyreduce:
* list of all interfaces which this interface inherits from,
* recursively
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName (tao_yyvsp[-1].idval, 0),
- 1);
+ UTL_ScopedName n (tao_yyvsp[-1].idval,
+ 0);
ACE_NEW_RETURN (tao_yyval.ihval,
- FE_InterfaceHeader (n,
+ FE_InterfaceHeader (&n,
tao_yyvsp[0].nlval,
- false,
- true,
- true),
+ I_FALSE,
+ I_TRUE,
+ I_TRUE),
1);
}
break;
@@ -2567,9 +2560,9 @@ tao_yyreduce:
tao_yyvsp[0].vhval->supports (),
tao_yyvsp[0].vhval->n_supports (),
tao_yyvsp[0].vhval->supports_concrete (),
- false,
+ I_FALSE,
tao_yyvsp[0].vhval->truncatable (),
- false
+ I_FALSE
);
i = AST_Interface::narrow_from_decl (v);
AST_Interface::fwd_redefinition_helper (i,
@@ -2579,11 +2572,6 @@ tao_yyreduce:
*/
v = AST_ValueType::narrow_from_decl (i);
(void) s->fe_add_valuetype (v);
-
- // FE_OBVHeader is not automatically destroyed in the AST
- tao_yyvsp[0].vhval->destroy ();
- delete tao_yyvsp[0].vhval;
- tao_yyvsp[0].vhval = 0;
}
/*
@@ -2653,9 +2641,9 @@ tao_yyreduce:
tao_yyvsp[0].vhval->supports (),
tao_yyvsp[0].vhval->n_supports (),
tao_yyvsp[0].vhval->supports_concrete (),
- true,
- false,
- false
+ I_TRUE,
+ I_FALSE,
+ I_FALSE
);
i = AST_Interface::narrow_from_decl (v);
AST_Interface::fwd_redefinition_helper (i,
@@ -2730,13 +2718,14 @@ tao_yyreduce:
UTL_ScopedName *sn = 0;
ACE_NEW_RETURN (sn,
- UTL_ScopedName (tao_yyvsp[-3].idval, 0),
+ UTL_ScopedName (tao_yyvsp[-3].idval,
+ 0),
1);
ACE_NEW_RETURN (tao_yyval.vhval,
FE_OBVHeader (sn,
tao_yyvsp[-2].nlval,
tao_yyvsp[0].nlval,
- tao_yyvsp[-2].nlval ? tao_yyvsp[-2].nlval->truncatable () : false),
+ tao_yyvsp[-2].nlval ? tao_yyvsp[-2].nlval->truncatable () : I_FALSE),
1);
}
break;
@@ -2762,7 +2751,7 @@ tao_yyreduce:
{
// opt_truncatable : IDL_TRUNCATABLE
- tao_yyval.bval = true;
+ tao_yyval.bval = I_TRUE;
}
break;
@@ -2770,7 +2759,7 @@ tao_yyreduce:
{
/* | EMPTY */
- tao_yyval.bval = false;
+ tao_yyval.bval = I_FALSE;
}
break;
@@ -2807,7 +2796,7 @@ tao_yyreduce:
if (s != 0)
{
f = idl_global->gen ()->create_valuetype_fwd (&n,
- true);
+ I_TRUE);
(void) s->fe_add_valuetype_fwd (f);
}
}
@@ -2830,7 +2819,7 @@ tao_yyreduce:
if (s != 0)
{
f = idl_global->gen ()->create_valuetype_fwd (&n,
- false);
+ I_FALSE);
(void) s->fe_add_valuetype_fwd (f);
}
}
@@ -2841,7 +2830,7 @@ tao_yyreduce:
{
// value_box_decl : value_decl type_spec
idl_global->set_parse_state (IDL_GlobalData::PS_ValueBoxDeclSeen);
-
+
UTL_Scope *s = idl_global->scopes ().top_non_null ();
UTL_ScopedName n (tao_yyvsp[-1].idval,
0);
@@ -2850,7 +2839,7 @@ tao_yyreduce:
{
/*
* Get the type_spec associated with the valuebox
- */
+ */
AST_Type *tp = 0;
AST_Typedef *td
= AST_Typedef::narrow_from_decl (tao_yyvsp[0].dcval);
@@ -2886,7 +2875,7 @@ tao_yyreduce:
(void) s->fe_add_valuebox (vb);
}
}
- }
+ }
break;
case 78:
@@ -3372,7 +3361,7 @@ tao_yyreduce:
*/
AST_Decl *d =
s->lookup_by_name (tao_yyvsp[0].idlist,
- true);
+ I_TRUE);
if (s != 0 && d != 0)
{
@@ -3612,7 +3601,7 @@ tao_yyreduce:
*/
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[0].idlist,
- true);
+ I_TRUE);
/*
* If the scoped name is an IDL constant, it may be used in an
@@ -3706,7 +3695,8 @@ tao_yyreduce:
{
// | IDL_TRUETOK
- tao_yyval.exval = idl_global->gen ()->create_expr (true);
+ tao_yyval.exval = idl_global->gen ()->create_expr ((idl_bool) I_TRUE,
+ AST_Expression::EV_bool);
}
break;
@@ -3714,7 +3704,8 @@ tao_yyreduce:
{
// | IDL_FALSETOK
- tao_yyval.exval = idl_global->gen ()->create_expr (false);
+ tao_yyval.exval = idl_global->gen ()->create_expr ((idl_bool) I_FALSE,
+ AST_Expression::EV_bool);
}
break;
@@ -3943,7 +3934,7 @@ tao_yyreduce:
if (s != 0)
{
d = s->lookup_by_name (tao_yyvsp[0].idlist,
- true);
+ I_TRUE);
}
if (d == 0)
@@ -4601,7 +4592,7 @@ tao_yyreduce:
AST_Decl *d = 0;
AST_PredefinedType *p = 0;
AST_Typedef *t = 0;
- bool found = false;
+ idl_bool found = I_FALSE;
/*
* The discriminator is a scoped name. Try to resolve to
@@ -4610,7 +4601,7 @@ tao_yyreduce:
* chain.
*/
d = s->lookup_by_name (tao_yyvsp[0].idlist,
- true);
+ I_TRUE);
if (s != 0 && d != 0)
{
@@ -4620,7 +4611,7 @@ tao_yyreduce:
{
case AST_Decl::NT_enum:
tao_yyval.dcval = d;
- found = true;
+ found = I_TRUE;
break;
case AST_Decl::NT_pre_defined:
p = AST_PredefinedType::narrow_from_decl (d);
@@ -4638,7 +4629,7 @@ tao_yyreduce:
case AST_PredefinedType::PT_char:
case AST_PredefinedType::PT_boolean:
tao_yyval.dcval = p;
- found = true;
+ found = I_TRUE;
break;
case AST_PredefinedType::PT_wchar:
case AST_PredefinedType::PT_octet:
@@ -4647,18 +4638,18 @@ tao_yyreduce:
UTL_Error::EIDL_DISC_TYPE
);
tao_yyval.dcval = 0;
- found = true;
+ found = I_TRUE;
break;
default:
tao_yyval.dcval = 0;
- found = true;
+ found = I_TRUE;
break;
}
}
else
{
tao_yyval.dcval = 0;
- found = true;
+ found = I_TRUE;
}
break;
@@ -4673,7 +4664,7 @@ tao_yyreduce:
break;
default:
tao_yyval.dcval = 0;
- found = true;
+ found = I_TRUE;
break;
}
}
@@ -4686,9 +4677,6 @@ tao_yyreduce:
if (tao_yyval.dcval == 0)
{
idl_global->err ()->lookup_error (tao_yyvsp[0].idlist);
-
- /* If we don't return here, we'll crash later.*/
- return 1;
}
}
break;
@@ -5554,7 +5542,7 @@ tao_yyreduce:
a =
idl_global->gen ()->create_attribute (
- true,
+ I_TRUE,
tp,
(UTL_IdList *) d->name ()->copy (),
s->is_local (),
@@ -5642,7 +5630,7 @@ tao_yyreduce:
a =
idl_global->gen ()->create_attribute (
- false,
+ I_FALSE,
tp,
(UTL_IdList *) d->name ()->copy (),
s->is_local (),
@@ -5770,7 +5758,7 @@ tao_yyreduce:
{
AST_Decl *d = ScopeAsDecl (s);
AST_Decl::NodeType nt = d->node_type ();
- bool local =
+ idl_bool local =
s->is_local ()
|| nt == AST_Decl::NT_valuetype
|| nt == AST_Decl::NT_eventtype;
@@ -6160,7 +6148,7 @@ tao_yyreduce:
if (s != 0)
{
d = s->lookup_by_name (tao_yyvsp[0].idlist,
- true);
+ I_TRUE);
}
if (d == 0)
@@ -6404,7 +6392,7 @@ tao_yyreduce:
// typeid_dcl : IDL_TYPEID scoped_name IDL_STRING_LITERAL
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -6433,7 +6421,7 @@ tao_yyreduce:
if (d->name ()->compare (tao_yyvsp[-1].idlist) != 0)
{
d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
}
if (d == 0)
@@ -6504,7 +6492,7 @@ tao_yyreduce:
(void) s->fe_add_component (c);
// This FE_ComponentHeader class isn't destroyed with the AST.
- tao_yyvsp[0].chval->destroy ();
+ tao_yyvsp[0].chval->name ()->destroy ();
delete tao_yyvsp[0].chval;
tao_yyvsp[0].chval = 0;
}
@@ -6571,15 +6559,13 @@ tao_yyreduce:
* Create an AST representation of the information in the header
* part of a component.
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName (tao_yyvsp[-4].idval, 0),
- 1);
+ UTL_ScopedName n (tao_yyvsp[-4].idval,
+ 0);
ACE_NEW_RETURN (tao_yyval.chval,
- FE_ComponentHeader (n,
+ FE_ComponentHeader (&n,
tao_yyvsp[-2].idlist,
tao_yyvsp[0].nlval,
- false),
+ I_FALSE),
1);
}
break;
@@ -6714,7 +6700,7 @@ tao_yyreduce:
if (c != 0)
{
AST_Decl *d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
idl_global->err ()->lookup_error (tao_yyvsp[-1].idlist);
@@ -6749,7 +6735,7 @@ tao_yyreduce:
// interface_type : scoped_name
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[0].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -6795,7 +6781,7 @@ tao_yyreduce:
// uses_decl : IDL_USES opt_multiple interface_type id
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -6824,7 +6810,7 @@ tao_yyreduce:
ud.is_multiple = tao_yyvsp[-2].bval;
c->uses ().enqueue_tail (ud);
- if (ud.is_multiple == true
+ if (ud.is_multiple == I_TRUE
&& !idl_global->using_ifr_backend ()
&& !idl_global->ignore_idl3 ())
{
@@ -6841,7 +6827,7 @@ tao_yyreduce:
{
// opt_multiple : IDL_MULTIPLE
- tao_yyval.bval = true;
+ tao_yyval.bval = I_TRUE;
}
break;
@@ -6849,7 +6835,7 @@ tao_yyreduce:
{
/* | EMPTY */
- tao_yyval.bval = false;
+ tao_yyval.bval = I_FALSE;
}
break;
@@ -6859,7 +6845,7 @@ tao_yyreduce:
// emits_decl : IDL_EMITS scoped_name id
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -6891,7 +6877,7 @@ tao_yyreduce:
// publishes_decl : IDL_PUBLISHES scoped_name id
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -6923,7 +6909,7 @@ tao_yyreduce:
// consumes_decl : IDL_CONSUMES scoped_name id
UTL_Scope *s = idl_global->scopes ().top_non_null ();
AST_Decl *d = s->lookup_by_name (tao_yyvsp[-1].idlist,
- true);
+ I_TRUE);
if (d == 0)
{
@@ -6978,7 +6964,7 @@ tao_yyreduce:
(void) s->fe_add_home (h);
// This FE_HomeHeader class isn't destroyed with the AST.
- tao_yyvsp[0].hhval->destroy ();
+ tao_yyvsp[0].hhval->name ()->destroy ();
delete tao_yyvsp[0].hhval;
tao_yyvsp[0].hhval = 0;
}
@@ -7059,12 +7045,10 @@ tao_yyreduce:
* Create an AST representation of the information in the header
* part of a component home.
*/
- UTL_ScopedName *n = 0;
- ACE_NEW_RETURN (n,
- UTL_ScopedName (tao_yyvsp[-10].idval, 0),
- 1);
+ UTL_ScopedName n (tao_yyvsp[-10].idval,
+ 0);
ACE_NEW_RETURN (tao_yyval.hhval,
- FE_HomeHeader (n,
+ FE_HomeHeader (&n,
tao_yyvsp[-8].idlist,
tao_yyvsp[-6].nlval,
tao_yyvsp[-2].idlist,
@@ -7191,8 +7175,8 @@ tao_yyreduce:
home->managed_component (),
AST_Operation::OP_noflags,
&n,
- false,
- false
+ I_FALSE,
+ I_FALSE
);
home->factories ().enqueue_tail (o);
}
@@ -7265,8 +7249,8 @@ tao_yyreduce:
home->managed_component (),
AST_Operation::OP_noflags,
&n,
- false,
- false
+ I_FALSE,
+ I_FALSE
);
home->finders ().enqueue_tail (o);
}
@@ -7334,7 +7318,7 @@ tao_yyreduce:
if (s != 0)
{
f = idl_global->gen ()->create_eventtype_fwd (&n,
- false);
+ I_FALSE);
(void) s->fe_add_valuetype_fwd (f);
}
}
@@ -7357,7 +7341,7 @@ tao_yyreduce:
if (s != 0)
{
f = idl_global->gen ()->create_eventtype_fwd (&n,
- true);
+ I_TRUE);
(void) s->fe_add_valuetype_fwd (f);
}
}
@@ -7386,9 +7370,9 @@ tao_yyreduce:
tao_yyvsp[0].ehval->supports (),
tao_yyvsp[0].ehval->n_supports (),
tao_yyvsp[0].ehval->supports_concrete (),
- true,
- false,
- false
+ I_TRUE,
+ I_FALSE,
+ I_FALSE
);
i = AST_Interface::narrow_from_decl (e);
AST_Interface::fwd_redefinition_helper (i,
@@ -7500,7 +7484,7 @@ tao_yyreduce:
FE_EventHeader (0,
tao_yyvsp[-2].nlval,
tao_yyvsp[0].nlval,
- tao_yyvsp[-2].nlval ? tao_yyvsp[-2].nlval->truncatable () : false),
+ tao_yyvsp[-2].nlval ? tao_yyvsp[-2].nlval->truncatable () : I_FALSE),
1);
}
break;
@@ -7528,9 +7512,9 @@ tao_yyreduce:
tao_yyvsp[0].ehval->supports (),
tao_yyvsp[0].ehval->n_supports (),
tao_yyvsp[0].ehval->supports_concrete (),
- false,
+ I_FALSE,
tao_yyvsp[0].ehval->truncatable (),
- false
+ I_FALSE
);
i = AST_Interface::narrow_from_decl (e);
AST_Interface::fwd_redefinition_helper (i,
@@ -7540,11 +7524,6 @@ tao_yyreduce:
*/
e = AST_EventType::narrow_from_decl (i);
(void) s->fe_add_eventtype (e);
-
- // FE_EventHeader is not automatically destroyed in the AST
- tao_yyvsp[0].ehval->destroy ();
- delete tao_yyvsp[0].ehval;
- tao_yyvsp[0].ehval = 0;
}
/*
@@ -7602,7 +7581,7 @@ tao_yyreduce:
}
-/* Line 1010 of yacc.c. */
+/* Line 1000 of yacc.c. */
tao_yyvsp -= tao_yylen;
diff --git a/TAO/TAO_IDL/fe/y.tab.cpp.diff b/TAO/TAO_IDL/fe/y.tab.cpp.diff
index 6dceda2e081..0357abf4ae1 100644
--- a/TAO/TAO_IDL/fe/y.tab.cpp.diff
+++ b/TAO/TAO_IDL/fe/y.tab.cpp.diff
@@ -1,6 +1,6 @@
--- y.tab.cpp.orig 2005-01-28 10:00:07.000000000 -0600
+++ y.tab.cpp 2005-01-28 10:07:56.000000000 -0600
-@@ -1759,11 +1759,6 @@
+@@ -1758,11 +1758,6 @@
else
TAO_YYFPRINTF (tao_yyoutput, "nterm %s (", tao_yytname[tao_yytype]);
@@ -12,7 +12,7 @@
TAO_YYFPRINTF (tao_yyoutput, ")");
}
-@@ -1778,14 +1778,9 @@
+@@ -1782,14 +1777,9 @@
#endif
{
/* Pacify ``unused variable'' warnings. */
@@ -26,8 +26,9 @@
- break;
- }
}
+
-@@ -7741,7 +7741,7 @@
+@@ -7687,7 +7677,7 @@
`---------------------------------------------------*/
tao_yyerrorlab:
diff --git a/TAO/TAO_IDL/fe/y.tab.h b/TAO/TAO_IDL/fe/y.tab.h
index ffd1faa3772..3667943b930 100644
--- a/TAO/TAO_IDL/fe/y.tab.h
+++ b/TAO/TAO_IDL/fe/y.tab.h
@@ -210,7 +210,7 @@ typedef union TAO_YYSTYPE {
AST_Argument::Direction dival; /* Argument direction */
AST_Operation::Flags ofval; /* Operation flags */
FE_Declarator *deval; /* Declarator value */
- bool bval; /* Boolean value */
+ idl_bool bval; /* Boolean value */
long ival; /* Long value */
idl_uns_long uival; /* Unsigned long value */
double dval; /* Double value */
diff --git a/TAO/TAO_IDL/include/ast_array.h b/TAO/TAO_IDL/include/ast_array.h
index 19b1cfa3f13..f202333fd4d 100644
--- a/TAO/TAO_IDL/include/ast_array.h
+++ b/TAO/TAO_IDL/include/ast_array.h
@@ -88,8 +88,8 @@ public:
AST_Array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Destructor.
virtual ~AST_Array (void);
diff --git a/TAO/TAO_IDL/include/ast_attribute.h b/TAO/TAO_IDL/include/ast_attribute.h
index 14610600371..faecd45b815 100644
--- a/TAO/TAO_IDL/include/ast_attribute.h
+++ b/TAO/TAO_IDL/include/ast_attribute.h
@@ -73,6 +73,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
class UTL_ExceptList;
class UTL_NameList;
+// Representation of attribute declaration:
+// An attribute is a field with a readonly property.
+
class TAO_IDL_FE_Export AST_Attribute : public virtual AST_Field
{
public:
@@ -81,18 +84,18 @@ public:
// Constructor(s).
AST_Attribute (void);
- AST_Attribute (bool readonly,
+ AST_Attribute (idl_bool readonly,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Destructor.
virtual ~AST_Attribute (void);
// Data Accessors.
- bool readonly (void) const;
+ idl_bool readonly (void) const;
UTL_ExceptList *get_get_exceptions (void) const;
UTL_ExceptList *get_set_exceptions (void) const;
@@ -113,7 +116,7 @@ public:
private:
// Data.
- const bool pd_readonly;
+ const idl_bool pd_readonly;
// Is attribute read-only?
UTL_ExceptList *pd_get_exceptions;
diff --git a/TAO/TAO_IDL/include/ast_component.h b/TAO/TAO_IDL/include/ast_component.h
index b3369adf483..6e41a2d41ec 100644
--- a/TAO/TAO_IDL/include/ast_component.h
+++ b/TAO/TAO_IDL/include/ast_component.h
@@ -26,11 +26,11 @@ public:
// Extend lookup to the base component.
virtual AST_Decl *look_in_inherited (UTL_ScopedName *e,
- bool treat_as_ref);
+ idl_bool treat_as_ref);
// Extend lookup to the supported interfaces.
virtual AST_Decl *look_in_supported (UTL_ScopedName *e,
- bool treat_as_ref);
+ idl_bool treat_as_ref);
// Utility data structure for port declarations.
struct port_description
@@ -41,7 +41,7 @@ public:
// Fields.
Identifier *id;
AST_Type *impl;
- bool is_multiple;
+ idl_bool is_multiple;
};
// Accessors.
@@ -74,7 +74,7 @@ public:
// Check if we have redefined any of our parents' operations or attributes,
// and check if there is such a clash among the parents
- virtual bool redef_clash (void);
+ virtual idl_bool redef_clash (void);
private:
AST_Component *pd_base_component;
diff --git a/TAO/TAO_IDL/include/ast_constant.h b/TAO/TAO_IDL/include/ast_constant.h
index 9ce723c00d8..c94aae1ff6a 100644
--- a/TAO/TAO_IDL/include/ast_constant.h
+++ b/TAO/TAO_IDL/include/ast_constant.h
@@ -102,8 +102,8 @@ public:
AST_Expression::ExprType et (void);
// Accessors for the private member.
- bool ifr_added (void);
- void ifr_added (bool val);
+ idl_bool ifr_added (void);
+ void ifr_added (idl_bool val);
const char *exprtype_to_string (void);
// Returns the appropriate type.
@@ -134,7 +134,7 @@ protected:
AST_Expression::ExprType pd_et;
// Its expression type.
- bool ifr_added_;
+ idl_bool ifr_added_;
// Has this node been added to the IFR?
};
diff --git a/TAO/TAO_IDL/include/ast_decl.h b/TAO/TAO_IDL/include/ast_decl.h
index ae56c2b8201..ce6cedc495b 100644
--- a/TAO/TAO_IDL/include/ast_decl.h
+++ b/TAO/TAO_IDL/include/ast_decl.h
@@ -77,7 +77,6 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_scoped_name.h"
#include "idl_narrow.h"
#include "ace/os_include/sys/os_types.h"
-#include "ace/SString.h"
// This is for AIX w/IBM C++
class Identifier;
@@ -96,13 +95,13 @@ class TAO_IDL_FE_Export COMMON_Base
{
public:
- COMMON_Base (bool local = false,
- bool abstract = false);
+ COMMON_Base (idl_bool local = I_FALSE,
+ idl_bool abstract = I_FALSE);
virtual ~COMMON_Base (void) {}
- virtual bool is_local (void);
- virtual bool is_abstract (void);
+ virtual idl_bool is_local (void);
+ virtual idl_bool is_abstract (void);
// A no-op, overridden in the child classes.
virtual void destroy (void);
@@ -111,8 +110,8 @@ public:
DEF_NARROW_METHODS0(COMMON_Base);
protected:
- bool is_local_;
- bool is_abstract_;
+ idl_bool is_local_;
+ idl_bool is_abstract_;
};
class TAO_IDL_FE_Export AST_Decl : public virtual COMMON_Base
@@ -164,17 +163,17 @@ public:
AST_Decl (NodeType type,
UTL_ScopedName *n,
- bool anonymous = false);
+ idl_bool anonymous = I_FALSE);
virtual ~AST_Decl (void);
// Data Accessors.
- bool imported (void);
- void set_imported (bool is_it);
+ idl_bool imported (void);
+ void set_imported (idl_bool is_it);
- bool in_main_file (void);
- void set_in_main_file (bool is_it);
+ idl_bool in_main_file (void);
+ void set_in_main_file (idl_bool is_it);
UTL_Scope *defined_in (void);
void set_defined_in (UTL_Scope *);
@@ -184,8 +183,8 @@ public:
long line (void);
void set_line (long l);
- ACE_CString file_name (void);
- void set_file_name (ACE_CString s);
+ UTL_String *file_name (void);
+ void set_file_name (UTL_String *s);
UTL_ScopedName *name (void);
@@ -221,12 +220,12 @@ public:
void version (char *value);
// Accessors for the version_ member.
- bool anonymous (void) const;
- void anonymous (bool val);
+ idl_bool anonymous (void) const;
+ void anonymous (idl_bool val);
// Accessors for the anonymous_ member.
- bool typeid_set (void) const;
- void typeid_set (bool val);
+ idl_bool typeid_set (void) const;
+ void typeid_set (idl_bool val);
// Accessors for the typeid_set_ member.
void set_id_with_typeid (char *value);
@@ -245,8 +244,8 @@ public:
Identifier *original_local_name (void);
void original_local_name (Identifier *);
- bool added (void);
- void set_added (bool is_it);
+ idl_bool added (void);
+ void set_added (idl_bool is_it);
// Narrowing.
DEF_NARROW_METHODS0(AST_Decl);
@@ -264,12 +263,12 @@ public:
// Other operations
// Return TRUE if "this" has "s" as an ancestor.
- bool has_ancestor (AST_Decl *s);
+ idl_bool has_ancestor (AST_Decl *s);
// Return TRUE if "this" is a child of "s".
- bool is_child (AST_Decl *s);
+ idl_bool is_child (AST_Decl *s);
- bool is_nested (void);
+ idl_bool is_nested (void);
// Determines if we are inside of a nested scope or not.
UTL_ScopedName *last_referenced_as (void) const;
@@ -311,10 +310,10 @@ protected:
private:
// Data
- bool pd_imported;
+ idl_bool pd_imported;
// Imported?
- bool pd_in_main_file;
+ idl_bool pd_in_main_file;
// Defined in main file?
UTL_Scope *pd_defined_in;
@@ -326,7 +325,7 @@ private:
long pd_line;
// Line defined in.
- ACE_CString pd_file_name;
+ UTL_String *pd_file_name;
// What file defined in.
UTL_ScopedName *pd_name;
@@ -337,7 +336,7 @@ private:
Identifier *pd_original_local_name;
// _cxx_ removed if any.
- bool pd_added;
+ idl_bool pd_added;
// Already added.
char *full_name_;
@@ -349,10 +348,10 @@ private:
char *version_;
// Set by #pragma version.
- bool anonymous_;
+ idl_bool anonymous_;
// Are we an anonymous (no repo ID) type?
- bool typeid_set_;
+ idl_bool typeid_set_;
// Has our repo id been set by a typeId declaration?
UTL_ScopedName *last_referenced_as_;
diff --git a/TAO/TAO_IDL/include/ast_enum.h b/TAO/TAO_IDL/include/ast_enum.h
index 9add0c75bc7..e563f48c217 100644
--- a/TAO/TAO_IDL/include/ast_enum.h
+++ b/TAO/TAO_IDL/include/ast_enum.h
@@ -78,8 +78,8 @@ class TAO_IDL_FE_Export AST_Enum : public virtual AST_ConcreteType,
public:
AST_Enum (void);
AST_Enum (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual ~AST_Enum (void);
diff --git a/TAO/TAO_IDL/include/ast_eventtype.h b/TAO/TAO_IDL/include/ast_eventtype.h
index d1fe9509207..97c9bc35169 100644
--- a/TAO/TAO_IDL/include/ast_eventtype.h
+++ b/TAO/TAO_IDL/include/ast_eventtype.h
@@ -20,9 +20,9 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom);
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom);
virtual ~AST_EventType (void);
diff --git a/TAO/TAO_IDL/include/ast_exception.h b/TAO/TAO_IDL/include/ast_exception.h
index e6c5e52c77a..16b7f2d16a7 100644
--- a/TAO/TAO_IDL/include/ast_exception.h
+++ b/TAO/TAO_IDL/include/ast_exception.h
@@ -83,12 +83,12 @@ public:
AST_Exception (void);
AST_Exception (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual ~AST_Exception (void);
- virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
+ virtual idl_bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
// Check if we or the parameter node is in recursion.
// Narrowing
diff --git a/TAO/TAO_IDL/include/ast_expression.h b/TAO/TAO_IDL/include/ast_expression.h
index f379f6cd1d6..390454145b9 100644
--- a/TAO/TAO_IDL/include/ast_expression.h
+++ b/TAO/TAO_IDL/include/ast_expression.h
@@ -167,7 +167,7 @@ public:
unsigned short usval; // Contains unsigned short expr value.
long lval; // Contains long expression value.
unsigned long ulval; // Contains unsigned long expr value.
- bool bval; // Contains boolean expression value.
+ unsigned long bval; // Contains boolean expression value.
#if ! defined (ACE_LACKS_LONGLONG_T)
ACE_CDR::LongLong llval; // Contains long long expr value.
#endif /* ! defined (ACE_LACKS_LONGLONG_T) */
@@ -205,7 +205,8 @@ public:
AST_Expression (long l);
- AST_Expression (bool b);
+ AST_Expression (long l,
+ ExprType t);
AST_Expression (unsigned long ul);
@@ -290,9 +291,9 @@ public:
protected:
// Evaluate different sets of operators.
- AST_ExprValue *eval_bin_op (EvalKind ek);
+ AST_ExprValue *eval_bin_op (void);
- AST_ExprValue *eval_mod_op (EvalKind ek);
+ AST_ExprValue *eval_mod_op (void);
AST_ExprValue *eval_bit_op (EvalKind ek);
@@ -300,7 +301,7 @@ protected:
AST_ExprValue *eval_symbol (EvalKind ek);
- bool type_mismatch (ExprType et);
+ idl_bool type_mismatch (ExprType et);
private:
UTL_Scope *pd_defined_in;
diff --git a/TAO/TAO_IDL/include/ast_extern.h b/TAO/TAO_IDL/include/ast_extern.h
index b58e8ed493f..e585686937b 100644
--- a/TAO/TAO_IDL/include/ast_extern.h
+++ b/TAO/TAO_IDL/include/ast_extern.h
@@ -67,7 +67,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#ifndef _AST_EXTERN_AST_EXTERN_HH
#define _AST_EXTERN_AST_EXTERN_HH
-
+#include "idl_bool.h"
class AST_Type;
class AST_Decl;
@@ -81,8 +81,8 @@ class AST_Decl;
extern void AST_record_fwd_decl (AST_Type *i);
extern TAO_IDL_FE_Export void AST_check_fwd_decls (void);
-extern bool AST_illegal_recursive_type (AST_Decl *t);
-extern bool AST_illegal_interface_recursion (AST_Decl *t);
+extern idl_bool AST_illegal_recursive_type (AST_Decl *t);
+extern idl_bool AST_illegal_interface_recursion (AST_Decl *t);
#endif // _AST_EXTERN_AST_EXTERN_HH
diff --git a/TAO/TAO_IDL/include/ast_generator.h b/TAO/TAO_IDL/include/ast_generator.h
index 6d71b7be83b..b3604e4a00f 100644
--- a/TAO/TAO_IDL/include/ast_generator.h
+++ b/TAO/TAO_IDL/include/ast_generator.h
@@ -109,15 +109,15 @@ public:
long n_inherits,
AST_Interface **inherits_flat,
long n_inherits_flat,
- bool local,
- bool abstract
+ idl_bool local,
+ idl_bool abstract
);
// Create a node representing a forward declaration of an interface.
virtual AST_InterfaceFwd *create_interface_fwd (
UTL_ScopedName *n,
- bool local,
- bool abstract
+ idl_bool local,
+ idl_bool abstract
);
// Create a node representing a valuetype.
@@ -131,15 +131,15 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom
);
// Create a node representing a forward declaration of a valuetype.
virtual AST_ValueTypeFwd *create_valuetype_fwd (
UTL_ScopedName *n,
- bool abstract
+ idl_bool abstract
);
// Create a node representing an eventtype.
@@ -153,15 +153,15 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom
);
// Create a node representing a forward declaration of an eventtype.
virtual AST_EventTypeFwd *create_eventtype_fwd (
UTL_ScopedName *n,
- bool abstract
+ idl_bool abstract
);
// Create a node representing a component.
@@ -194,15 +194,15 @@ public:
// Create a node representing an exception.
virtual AST_Exception *create_exception (
UTL_ScopedName *n,
- bool local,
- bool abstract
+ idl_bool local,
+ idl_bool abstract
);
// Create a node representing a structure.
virtual AST_Structure *create_structure (
UTL_ScopedName *n,
- bool local,
- bool abstract
+ idl_bool local,
+ idl_bool abstract
);
// Create a node representing a forward declaration of a structure.
@@ -210,16 +210,16 @@ public:
// Create a node representing an enum.
virtual AST_Enum *create_enum (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing an operation on an interface.
virtual AST_Operation *create_operation (
AST_Type *rt,
AST_Operation::Flags fl,
UTL_ScopedName *n,
- bool local,
- bool abstract
+ idl_bool local,
+ idl_bool abstract
);
// Create a node representing a field in a structure, exception or
@@ -238,18 +238,18 @@ public:
// Create a node representing an attribute.
virtual AST_Attribute *create_attribute (
- bool ro,
+ idl_bool ro,
AST_Type *ft,
UTL_ScopedName *n,
- bool local,
- bool abstract
+ idl_bool local,
+ idl_bool abstract
);
// Create a node representing a union.
virtual AST_Union *create_union (AST_ConcreteType *dt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing a forward declaration of a union.
virtual AST_UnionFwd *create_union_fwd (UTL_ScopedName *n);
@@ -284,7 +284,8 @@ public:
virtual AST_Expression *create_expr (long v);
- virtual AST_Expression *create_expr (bool b);
+ virtual AST_Expression *create_expr (long v,
+ AST_Expression::ExprType t);
virtual AST_Expression *create_expr (idl_uns_long v,
AST_Expression::ExprType t);
@@ -307,15 +308,15 @@ public:
virtual AST_Array *create_array (UTL_ScopedName *n,
unsigned long ndims,
UTL_ExprList *dims,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing a sequence type.
virtual AST_Sequence *create_sequence (AST_Expression *v,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing a string type.
virtual AST_String *create_string (AST_Expression *v);
@@ -326,8 +327,8 @@ public:
// Create a node representing a type renaming (typedef).
virtual AST_Typedef*create_typedef (AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Create a node representing a native.
virtual AST_Native *create_native (UTL_ScopedName *n);
diff --git a/TAO/TAO_IDL/include/ast_home.h b/TAO/TAO_IDL/include/ast_home.h
index 02456b18065..1bf5818b68c 100644
--- a/TAO/TAO_IDL/include/ast_home.h
+++ b/TAO/TAO_IDL/include/ast_home.h
@@ -29,18 +29,18 @@ public:
// Extend lookup to the base home.
virtual AST_Decl *look_in_inherited (UTL_ScopedName *e,
- bool treat_as_ref);
+ idl_bool treat_as_ref);
// Extend lookup to the supported interfaces.
virtual AST_Decl *look_in_supported (UTL_ScopedName *e,
- bool treat_as_ref);
-
+ idl_bool treat_as_ref);
+
// Accessors.
AST_Home *base_home (void) const;
AST_Interface **supports (void) const;
-
+
long n_supports (void) const;
AST_Component *managed_component (void) const;
diff --git a/TAO/TAO_IDL/include/ast_interface.h b/TAO/TAO_IDL/include/ast_interface.h
index a173d6d05d6..913743ba7f9 100644
--- a/TAO/TAO_IDL/include/ast_interface.h
+++ b/TAO/TAO_IDL/include/ast_interface.h
@@ -86,8 +86,8 @@ public:
long nih,
AST_Interface **ih_flat,
long nih_flat,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual ~AST_Interface (void);
@@ -109,7 +109,7 @@ public:
ACE_Unbounded_Queue<AST_Interface *> &get_insert_queue (void);
ACE_Unbounded_Queue<AST_Interface *> &get_del_queue (void);
- AST_Operation *be_add_operation (AST_Operation *);
+ void be_add_operation (AST_Operation *);
void be_replace_operation (AST_Decl *old_op,
AST_Decl *new_op);
@@ -117,23 +117,23 @@ public:
// Is this interface defined? This predicate returns FALSE when an
// interface was forward declared but not defined yet, and TRUE in
// all other cases.
- bool is_defined (void)
+ idl_bool is_defined (void)
{
- return (pd_n_inherits < 0) ? false : true;
+ return (pd_n_inherits < 0) ? I_FALSE : I_TRUE;
}
// Check if we have redefined any of our parents' operations or attributes,
// and check if there is such a clash among the parents
- virtual bool redef_clash (void);
-
+ virtual idl_bool redef_clash (void);
+
// Accessors for the member.
- bool home_equiv (void) const;
- void home_equiv (bool val);
+ idl_bool home_equiv (void) const;
+ void home_equiv (idl_bool val);
// Look through inherited interfaces.
virtual AST_Decl *look_in_inherited (UTL_ScopedName *e,
- bool treat_as_ref);
-
+ idl_bool treat_as_ref);
+
// Recursively called on valuetype to check for legal use as
// a primary key. Overridden for valuetype, struct, sequence,
// union, array, typedef, and interface.
@@ -178,9 +178,9 @@ protected:
// Queue of dequeued nodes to be searched for the above case.
ACE_Unbounded_Queue<AST_Interface *> del_queue;
-
+
// Are we the equivalent interface of a home?
- bool home_equiv_;
+ idl_bool home_equiv_;
protected:
// Scope Management Protocol.
@@ -216,7 +216,7 @@ protected:
// Lookup based on the local name, override of UTL_Scope definition.
// This version checks for redefinitions of attributes or operations.
AST_Decl *lookup_for_add (AST_Decl *d,
- bool treat_as_ref);
+ idl_bool treat_as_ref);
void redef_clash_populate_r (AST_Interface *t);
// Populate the insert queue with our parents, and, if we are a
@@ -224,7 +224,7 @@ protected:
// supported interfaces.
int insert_non_dup (AST_Interface *t,
- bool abstract_paths_only = false);
+ idl_bool abstract_paths_only = I_FALSE);
// Do non-duplicating insert of bi, by searching both the
// insert queue and the delete queue.
};
diff --git a/TAO/TAO_IDL/include/ast_interface_fwd.h b/TAO/TAO_IDL/include/ast_interface_fwd.h
index 10490254d1d..dd7db4a8060 100644
--- a/TAO/TAO_IDL/include/ast_interface_fwd.h
+++ b/TAO/TAO_IDL/include/ast_interface_fwd.h
@@ -86,11 +86,11 @@ public:
AST_Interface *full_definition (void);
void set_full_definition (AST_Interface *nfd);
- virtual bool is_defined (void);
+ virtual idl_bool is_defined (void);
- virtual bool is_local (void);
- virtual bool is_valuetype (void);
- virtual bool is_abstract_valuetype (void);
+ virtual idl_bool is_local (void);
+ virtual idl_bool is_valuetype (void);
+ virtual idl_bool is_abstract_valuetype (void);
// Cleanup function.
virtual void destroy (void);
diff --git a/TAO/TAO_IDL/include/ast_module.h b/TAO/TAO_IDL/include/ast_module.h
index 62afe2b1ff1..e220bb8579f 100644
--- a/TAO/TAO_IDL/include/ast_module.h
+++ b/TAO/TAO_IDL/include/ast_module.h
@@ -100,7 +100,7 @@ public:
// Involved in OBV_ namespace generation.
void set_has_nested_valuetype (void);
- bool has_nested_valuetype (void);
+ idl_bool has_nested_valuetype (void);
// Allows adding an interface to a later point
// The interface i is inserted after interface ix, if
@@ -110,7 +110,7 @@ public:
// Has this node been referenced here already?
// Override of method in UTL_Scope.
- virtual bool referenced (AST_Decl *e,
+ virtual idl_bool referenced (AST_Decl *e,
Identifier *id = 0);
// Add decls from previous opening of this module to the
@@ -181,7 +181,7 @@ private:
virtual AST_ValueBox *fe_add_valuebox (AST_ValueBox *vb);
- bool pd_has_nested_valuetype;
+ idl_bool pd_has_nested_valuetype;
ACE_Unbounded_Set<AST_Decl *> previous_;
// Container for declaration from previous openings of this module.
diff --git a/TAO/TAO_IDL/include/ast_operation.h b/TAO/TAO_IDL/include/ast_operation.h
index 95f38818309..e3716c3947c 100644
--- a/TAO/TAO_IDL/include/ast_operation.h
+++ b/TAO/TAO_IDL/include/ast_operation.h
@@ -90,8 +90,8 @@ public:
AST_Operation (AST_Type *return_type,
Flags flags,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Destructor.
virtual ~AST_Operation (void);
diff --git a/TAO/TAO_IDL/include/ast_sequence.h b/TAO/TAO_IDL/include/ast_sequence.h
index 2bdcfb4c264..0da4d06d455 100644
--- a/TAO/TAO_IDL/include/ast_sequence.h
+++ b/TAO/TAO_IDL/include/ast_sequence.h
@@ -68,7 +68,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#define _AST_SEQUENCE_AST_SEQUENCE_HH
#include "ast_concrete_type.h"
-
+#include "idl_bool.h"
class AST_Expression;
class AST_Type;
@@ -83,12 +83,12 @@ public:
AST_Sequence (AST_Expression *max_size,
AST_Type *bt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual ~AST_Sequence (void);
- virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
+ virtual idl_bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
// Are we or the node represented by node involved in recursion.
// Data Accessors.
@@ -96,7 +96,7 @@ public:
AST_Type *base_type (void) const;
- virtual bool unbounded (void) const;
+ virtual idl_bool unbounded (void) const;
// Is this sequence bounded or not.
// Recursively called on valuetype to check for legal use as
@@ -122,7 +122,7 @@ private:
AST_Type *pd_base_type;
// Sequence base type.
- bool unbounded_;
+ idl_bool unbounded_;
// Whether we are bounded or unbounded.
};
diff --git a/TAO/TAO_IDL/include/ast_structure.h b/TAO/TAO_IDL/include/ast_structure.h
index 98d228d833c..1ff0d431aed 100644
--- a/TAO/TAO_IDL/include/ast_structure.h
+++ b/TAO/TAO_IDL/include/ast_structure.h
@@ -88,13 +88,13 @@ public:
AST_Structure (void);
AST_Structure (UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
AST_Structure (AST_Decl::NodeType nt,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual ~AST_Structure (void);
@@ -120,10 +120,10 @@ public:
size_t slot) const;
// Get an individual field node.
- virtual bool is_local (void);
+ virtual idl_bool is_local (void);
// Overwrite the is_local method.
- virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
+ virtual idl_bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
// Are we or the node represented by node involved in recursion.
virtual int contains_wstring (void);
@@ -132,7 +132,7 @@ public:
// Is this struct or union defined? This predicate returns FALSE when a
// forward declaration is not defined yet, and TRUE in
// all other cases.
- bool is_defined (void)
+ idl_bool is_defined (void)
{
return this->size_type () != AST_Type::SIZE_UNKNOWN;
}
@@ -181,7 +181,7 @@ private:
int member_count_;
// Number of members.
- int local_struct_;
+ idl_bool local_struct_;
// We also need to determine whether we contain any local type.
};
diff --git a/TAO/TAO_IDL/include/ast_structure_fwd.h b/TAO/TAO_IDL/include/ast_structure_fwd.h
index 031b46ab61b..c447182c240 100644
--- a/TAO/TAO_IDL/include/ast_structure_fwd.h
+++ b/TAO/TAO_IDL/include/ast_structure_fwd.h
@@ -23,7 +23,7 @@ public:
AST_Structure *full_definition (void);
void set_full_definition (AST_Structure *nfd);
- virtual bool is_defined (void);
+ virtual idl_bool is_defined (void);
// Cleanup function.
virtual void destroy (void);
diff --git a/TAO/TAO_IDL/include/ast_type.h b/TAO/TAO_IDL/include/ast_type.h
index e7c5967b92b..97c275bcbe6 100644
--- a/TAO/TAO_IDL/include/ast_type.h
+++ b/TAO/TAO_IDL/include/ast_type.h
@@ -97,14 +97,14 @@ public:
virtual ~AST_Type (void);
- virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
+ virtual idl_bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
// Determine if we are involved in some kind of limited recursion.
// Most types cannot be involved except structs and unions.
// If the parameter is 0, we are trying to determine this for ourselves.
// To be overridden by the subclasses interface, struct, union, and
// the corresponding forward declaration classes.
- virtual bool is_defined (void);
+ virtual idl_bool is_defined (void);
virtual void size_type (SIZE_TYPE);
// Set the size type.
@@ -114,26 +114,26 @@ public:
// Accessors/mutators for the private members.
- bool has_constructor (void);
+ idl_bool has_constructor (void);
// Accessor for protected member.
- void has_constructor (bool value);
+ void has_constructor (idl_bool value);
// Mutator for protected member.
- bool ifr_added (void);
- void ifr_added (bool val);
+ idl_bool ifr_added (void);
+ void ifr_added (idl_bool val);
- bool ifr_fwd_added (void);
- void ifr_fwd_added (bool val);
+ idl_bool ifr_fwd_added (void);
+ void ifr_fwd_added (idl_bool val);
const char *nested_type_name (AST_Decl *d,
const char *suffix = 0,
const char *prefix = 0);
// Type name of a node used when generating declarations.
-
+
AST_Type *unaliased_type (void);
// Utility function to make sure we are using the unaliased type.
-
+
virtual bool legal_for_primary_key (void) const;
// Recursively called on valuetype to check for legal use as
// a primary key. Overridden for valuetype, struct, sequence,
@@ -159,30 +159,30 @@ protected:
const char *suffix,
const char *prefix);
// Type name of a node used when generating declarations.
-
- bool match_names (AST_Type *t, ACE_Unbounded_Queue<AST_Type *> &list);
-
+
+ idl_bool match_names (AST_Type *t, ACE_Unbounded_Queue<AST_Type *> &list);
+
protected:
// Has the full definition been added to the Interface Repository?
// Used for types which can have members and can be forward declared.
- bool ifr_added_;
+ idl_bool ifr_added_;
// Has this node been forward declared in this IDL file?
- bool ifr_fwd_added_;
+ idl_bool ifr_fwd_added_;
SIZE_TYPE size_type_;
// Whether we are fixed or variable size (by default fixed).
- bool has_constructor_;
+ idl_bool has_constructor_;
// Attribute that helps a union determine whether a member
// should be included by value or by reference.
char *nested_type_name_;
// For the corresponding method.
-
+
long in_recursion_;
// Storage once the value has been computed.
-
+
mutable bool recursing_in_legal_pk_;
// Node-specific flag to abort recursion in legal_for_primary_key().
};
diff --git a/TAO/TAO_IDL/include/ast_typedef.h b/TAO/TAO_IDL/include/ast_typedef.h
index e1fddbea1e5..073715168c5 100644
--- a/TAO/TAO_IDL/include/ast_typedef.h
+++ b/TAO/TAO_IDL/include/ast_typedef.h
@@ -82,8 +82,8 @@ public:
AST_Typedef (AST_Type *base_type,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
virtual ~AST_Typedef (void);
@@ -93,7 +93,7 @@ public:
// Data Accessors.
AST_Type *base_type (void) const;
-
+
virtual bool legal_for_primary_key (void) const;
// Recursively called on valuetype to check for legal use as
// a primary key. Overridden for valuetype, struct, sequence,
diff --git a/TAO/TAO_IDL/include/ast_union.h b/TAO/TAO_IDL/include/ast_union.h
index e412e49ea60..fdc784341fc 100644
--- a/TAO/TAO_IDL/include/ast_union.h
+++ b/TAO/TAO_IDL/include/ast_union.h
@@ -87,8 +87,8 @@ public:
AST_Union (AST_ConcreteType *disc_type,
UTL_ScopedName *n,
- bool local,
- bool abstract);
+ idl_bool local,
+ idl_bool abstract);
// Destructor.
virtual ~AST_Union (void);
@@ -96,7 +96,7 @@ public:
// This also calls the base class version.
virtual void redefine (AST_Structure *from);
- virtual bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
+ virtual idl_bool in_recursion (ACE_Unbounded_Queue<AST_Type *> &list);
// Are we or the parameter node involved in some kind of recursion?
// Data Accessors.
@@ -116,7 +116,7 @@ public:
{
char char_val;
ACE_CDR::WChar wchar_val;
- bool bool_val;
+ unsigned long bool_val;
ACE_INT16 short_val;
ACE_UINT16 ushort_val;
ACE_INT32 long_val;
@@ -185,7 +185,7 @@ private:
virtual AST_Enum *fe_add_enum (AST_Enum *e);
virtual AST_EnumVal *fe_add_enum_val (AST_EnumVal *v);
-
+
virtual int compute_default_value (void);
// Compute the default value (if any).
diff --git a/TAO/TAO_IDL/include/ast_valuetype.h b/TAO/TAO_IDL/include/ast_valuetype.h
index 8283d388664..8e787eed3f6 100644
--- a/TAO/TAO_IDL/include/ast_valuetype.h
+++ b/TAO/TAO_IDL/include/ast_valuetype.h
@@ -20,9 +20,9 @@ public:
AST_Interface **supports,
long n_supports,
AST_Interface *supports_concrete,
- bool abstract,
- bool truncatable,
- bool custom);
+ idl_bool abstract,
+ idl_bool truncatable,
+ idl_bool custom);
virtual ~AST_ValueType (void);
@@ -37,16 +37,16 @@ public:
AST_Interface *supports_concrete (void) const;
- bool truncatable (void) const;
- bool custom (void) const;
+ idl_bool truncatable (void) const;
+ idl_bool custom (void) const;
- virtual bool will_have_factory (void);
+ virtual idl_bool will_have_factory (void);
// Called from y.tab.cpp to set the factory decl seen bit.
// Look up a scoped name in the supported interface list.
virtual AST_Decl *look_in_supported (UTL_ScopedName *,
- bool treat_as_ref);
-
+ idl_bool treat_as_ref);
+
// Recursively called on valuetype to check for legal use as
// a primary key. Overridden for valuetype, struct, sequence,
// union, array, typedef, and interface.
@@ -72,8 +72,8 @@ protected:
AST_ValueType *pd_inherits_concrete;
AST_Interface *pd_supports_concrete;
- bool pd_truncatable;
- bool pd_custom;
+ idl_bool pd_truncatable;
+ idl_bool pd_custom;
protected:
virtual AST_Factory *fe_add_factory (AST_Factory *f);
diff --git a/TAO/TAO_IDL/include/drv_extern.h b/TAO/TAO_IDL/include/drv_extern.h
index 181d9fd5604..7467e0d282f 100644
--- a/TAO/TAO_IDL/include/drv_extern.h
+++ b/TAO/TAO_IDL/include/drv_extern.h
@@ -81,7 +81,4 @@ extern void DRV_cpp_putarg (const char *str);
extern void DRV_cpp_new_location (const char *new_loc);
extern void DRV_get_orb_idl_includes (void);
-// Not used by all backends.
-extern void DRV_push_file (const char *s);
-
#endif // _DRV_EXTERN_DRV_EXTERN_HH
diff --git a/TAO/TAO_IDL/include/fe_interface_header.h b/TAO/TAO_IDL/include/fe_interface_header.h
index a3ecb1d9e9c..2784321974b 100644
--- a/TAO/TAO_IDL/include/fe_interface_header.h
+++ b/TAO/TAO_IDL/include/fe_interface_header.h
@@ -89,9 +89,9 @@ class TAO_IDL_FE_Export FE_InterfaceHeader
public:
FE_InterfaceHeader (UTL_ScopedName *n,
UTL_NameList *inherits,
- bool is_local,
- bool is_abstract,
- bool compile_now);
+ idl_bool is_local,
+ idl_bool is_abstract,
+ idl_bool compile_now);
virtual ~FE_InterfaceHeader (void);
@@ -102,15 +102,12 @@ public:
AST_Interface **inherits_flat (void) const;
long n_inherits_flat (void) const;
- bool is_local (void) const;
+ idl_bool is_local (void) const;
// See if we are a local interface.
- bool is_abstract (void) const;
+ idl_bool is_abstract (void) const;
// See if we are an abstract interface.
- void destroy (void);
- // Destroy anything allocated for this class.
-
// Data.
protected:
UTL_ScopedName *pd_interface_name;
@@ -123,8 +120,8 @@ protected:
AST_Interface **pd_inherits_flat;
long pd_n_inherits_flat;
- bool pd_is_local;
- bool pd_is_abstract;
+ idl_bool pd_is_local;
+ idl_bool pd_is_abstract;
// Operations.
@@ -132,24 +129,24 @@ protected:
// interface inherits from.
protected:
void compile_inheritance (UTL_NameList *ifaces,
- bool for_valuetype);
+ idl_bool for_valuetype);
void compile_one_inheritance (AST_Interface *i);
// Called from compile_inheritance().
int check_inherit (AST_Interface *i,
- bool for_valuetype);
+ idl_bool for_valuetype);
};
class TAO_IDL_FE_Export FE_OBVHeader : public FE_InterfaceHeader
{
public:
- FE_OBVHeader (UTL_ScopedName *n,
- UTL_NameList *inherits,
+ FE_OBVHeader (UTL_ScopedName *n,
+ UTL_NameList *inherits,
UTL_NameList *supports,
- bool truncatable,
- bool is_eventtype = false);
+ idl_bool truncatable,
+ idl_bool is_eventtype = I_FALSE);
virtual ~FE_OBVHeader (void);
// Data Accessors.
@@ -157,7 +154,7 @@ public:
long n_supports (void) const;
AST_ValueType *inherits_concrete (void) const;
AST_Interface *supports_concrete (void) const;
- bool truncatable (void) const;
+ idl_bool truncatable (void) const;
protected:
// Supported interfaces.
@@ -168,38 +165,38 @@ protected:
AST_Interface *pd_supports_concrete;
// Currently ignored.
- bool pd_truncatable;
+ idl_bool pd_truncatable;
protected:
void compile_inheritance (UTL_NameList *vtypes,
- bool is_eventtype);
+ idl_bool is_eventtype);
void compile_supports (UTL_NameList *supports);
- bool check_concrete_supported_inheritance (AST_Interface *d);
+ idl_bool check_concrete_supported_inheritance (AST_Interface *d);
};
class TAO_IDL_FE_Export FE_EventHeader : public FE_OBVHeader
{
public:
- FE_EventHeader (UTL_ScopedName *n,
- UTL_NameList *inherits,
+ FE_EventHeader (UTL_ScopedName *n,
+ UTL_NameList *inherits,
UTL_NameList *supports,
- bool truncatable);
+ idl_bool truncatable);
virtual ~FE_EventHeader (void);
};
// Unlike value types, a component's supported interfaces are simply
// added to the inheritance list in generated code, so we use the
-// existing base class mechanism for managing the inheritance list
+// existing base class mechanism for managing the inheritance list
// to manage the derived class's supported interface list.
class TAO_IDL_FE_Export FE_ComponentHeader : public FE_InterfaceHeader
{
public:
- FE_ComponentHeader (UTL_ScopedName *n,
- UTL_ScopedName *base_component,
+ FE_ComponentHeader (UTL_ScopedName *n,
+ UTL_ScopedName *base_component,
UTL_NameList *supports,
- bool compile_now);
+ idl_bool compile_now);
virtual ~FE_ComponentHeader (void);
// Data Accessors.
@@ -208,7 +205,7 @@ public:
long n_supports (void) const;
AST_Interface **supports_flat (void) const;
long n_supports_flat (void) const;
-
+
protected:
void compile_inheritance (UTL_ScopedName *base_component);
void compile_supports (UTL_NameList *supports);
@@ -226,8 +223,8 @@ class TAO_IDL_FE_Export FE_HomeHeader : public FE_ComponentHeader
{
public:
- FE_HomeHeader (UTL_ScopedName *n,
- UTL_ScopedName *base_home,
+ FE_HomeHeader (UTL_ScopedName *n,
+ UTL_ScopedName *base_home,
UTL_NameList *supports,
UTL_ScopedName *managed_component,
UTL_ScopedName *primary_key);
diff --git a/TAO/TAO_IDL/include/global_extern.h b/TAO/TAO_IDL/include/global_extern.h
index 1f10dabf63e..dce69d00c37 100644
--- a/TAO/TAO_IDL/include/global_extern.h
+++ b/TAO/TAO_IDL/include/global_extern.h
@@ -69,7 +69,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "TAO_IDL_FE_Export.h"
#include "idl_global.h"
-
+#include "idl_bool.h"
class AST_Decl;
@@ -82,6 +82,6 @@ extern TAO_IDL_FE_Export IDL_GlobalData *idl_global;
// Return TRUE when the name of this AST_Decl can be reused in
// a definition in this scope
-extern bool can_be_redefined (AST_Decl *);
+extern idl_bool can_be_redefined (AST_Decl *);
#endif // _GLOBAL_EXTERN_GLOBAL_EXTERN_HH
diff --git a/TAO/TAO_IDL/include/idl_bool.h b/TAO/TAO_IDL/include/idl_bool.h
new file mode 100644
index 00000000000..b7356d80247
--- /dev/null
+++ b/TAO/TAO_IDL/include/idl_bool.h
@@ -0,0 +1,86 @@
+// $Id$
+
+/*
+
+COPYRIGHT
+
+Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United
+States of America. All Rights Reserved.
+
+This product is protected by copyright and distributed under the following
+license restricting its use.
+
+The Interface Definition Language Compiler Front End (CFE) is made
+available for your use provided that you include this license and copyright
+notice on all media and documentation and the software program in which
+this product is incorporated in whole or part. You may copy and extend
+functionality (but may not remove functionality) of the Interface
+Definition Language CFE without charge, but you are not authorized to
+license or distribute it to anyone else except as part of a product or
+program developed by you or with the express written consent of Sun
+Microsystems, Inc. ("Sun").
+
+The names of Sun Microsystems, Inc. and any of its subsidiaries or
+affiliates may not be used in advertising or publicity pertaining to
+distribution of Interface Definition Language CFE as permitted herein.
+
+This license is effective until terminated by Sun for failure to comply
+with this license. Upon termination, you shall destroy or return all code
+and documentation for the Interface Definition Language CFE.
+
+INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED AS IS WITH NO WARRANTIES OF
+ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS
+FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR ARISING FROM A COURSE OF
+DEALING, USAGE OR TRADE PRACTICE.
+
+INTERFACE DEFINITION LANGUAGE CFE IS PROVIDED WITH NO SUPPORT AND WITHOUT
+ANY OBLIGATION ON THE PART OF Sun OR ANY OF ITS SUBSIDIARIES OR AFFILIATES
+TO ASSIST IN ITS USE, CORRECTION, MODIFICATION OR ENHANCEMENT.
+
+SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES SHALL HAVE NO LIABILITY WITH
+RESPECT TO THE INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY
+INTERFACE DEFINITION LANGUAGE CFE OR ANY PART THEREOF.
+
+IN NO EVENT WILL SUN OR ANY OF ITS SUBSIDIARIES OR AFFILIATES BE LIABLE FOR
+ANY LOST REVENUE OR PROFITS OR OTHER SPECIAL, INDIRECT AND CONSEQUENTIAL
+DAMAGES, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+Use, duplication, or disclosure by the government is subject to
+restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
+Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR
+52.227-19.
+
+Sun, Sun Microsystems and the Sun logo are trademarks or registered
+trademarks of Sun Microsystems, Inc.
+
+SunSoft, Inc.
+2550 Garcia Avenue
+Mountain View, California 94043
+
+NOTE:
+
+SunOS, SunSoft, Sun, Solaris, Sun Microsystems or the Sun logo are
+trademarks or registered trademarks of Sun Microsystems, Inc.
+
+*/
+
+#ifndef _IDL_BOOL_IDL_BOOL_HH
+#define _IDL_BOOL_IDL_BOOL_HH
+
+/*
+ * This is interim. When porting to a new platform, this file will be
+ * modified to incorporate definitions for the boolean type suitable
+ * for the new platform.
+ */
+
+#ifndef I_TRUE
+#define I_TRUE 1
+#endif
+
+#ifndef I_FALSE
+#define I_FALSE 0
+#endif
+
+typedef long idl_bool;
+
+#endif // _IDL_BOOL_IDL_BOOL_HH
diff --git a/TAO/TAO_IDL/include/idl_global.h b/TAO/TAO_IDL/include/idl_global.h
index a1914105d42..405c0dd0b35 100644
--- a/TAO/TAO_IDL/include/idl_global.h
+++ b/TAO/TAO_IDL/include/idl_global.h
@@ -73,7 +73,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/Containers_T.h"
#include "ace/Synch_Traits.h"
#include "ace/Null_Mutex.h"
-
+#include "idl_bool.h"
#include "ast_expression.h"
#include "ast_predefined_type.h"
#include "ast_component.h"
@@ -306,7 +306,6 @@ public:
bool short_seq_seen_;
bool special_basic_arg_seen_;
bool string_seen_;
- bool string_member_seen_;
bool string_seq_seen_;
bool typecode_seen_;
bool ub_string_arg_seen_;
@@ -323,9 +322,6 @@ public:
bool wchar_seq_seen_;
bool wstring_seq_seen_;
- // flag to force generation of skeleton includes (see bug #2419).
- bool need_skeleton_includes_;
-
// Constructor
IDL_GlobalData (void);
// Destructor
@@ -368,12 +364,12 @@ public:
virtual UTL_String *stripped_filename (void); // Stripped filename
virtual void set_stripped_filename (UTL_String *); // Set it
- virtual bool imported (void); // Are we imported?
- virtual bool import (void); // Is import on?
- virtual void set_import (bool); // Set it
+ virtual idl_bool imported (void); // Are we imported?
+ virtual idl_bool import (void); // Is import on?
+ virtual void set_import (idl_bool); // Set it
- virtual bool in_main_file (void); // Are we?
- virtual void set_in_main_file (bool); // Set it
+ virtual idl_bool in_main_file (void); // Are we?
+ virtual void set_in_main_file (idl_bool); // Set it
virtual const char *prog_name (void); // Invoked as..
virtual void set_prog_name (const char *); // Set it
@@ -417,7 +413,7 @@ public:
// FE calls when #pragma DCPS_DATA_TYPE is processed
virtual void add_dcps_data_type(const char* id);
// FE calls when #pragma DCPS_DATA_KEY is processed
- virtual bool add_dcps_data_key(const char* id, const char* key);
+ virtual idl_bool add_dcps_data_key(const char* id, const char* key);
// returns null if not matching; otherwise pointer to the info
virtual DCPS_Data_Type_Info* is_dcps_type(UTL_ScopedName* target);
@@ -485,17 +481,17 @@ public:
virtual const char *ident_string (void) const;
// Get the value of the #ident string.
- virtual void case_diff_error (bool);
+ virtual void case_diff_error (idl_bool);
// report an error (1) for indentifiers in the same scope
// that differ only by case, or report a warning (0).
- virtual bool case_diff_error (void);
+ virtual idl_bool case_diff_error (void);
// are we strict about case-only differences or not?
- virtual void nest_orb (bool);
+ virtual void nest_orb (idl_bool);
// Set on or off whether we are using the NEST ORB.
- virtual bool nest_orb (void);
+ virtual idl_bool nest_orb (void);
// are we beIng used with the NEST ORB?
virtual void destroy (void);
@@ -527,8 +523,8 @@ public:
void last_seen_index (long val);
// Accessors for last_seen_index_ member.
- bool repeat_include (void) const;
- void repeat_include (bool val);
+ idl_bool repeat_include (void) const;
+ void repeat_include (idl_bool val);
// Accessors for repeat_include_ member.
const char *stripped_preproc_include (const char *name);
@@ -536,12 +532,12 @@ public:
// strips off any command line -I prefix that may have been
// prepended.
- virtual bool preserve_cpp_keywords (void);
+ virtual idl_bool preserve_cpp_keywords (void);
// Whether we should not mung idl element names that are
// C++ keywords e.g. delete, operator etc. with _cxx_ prefix.
// Should be true when being used by the IFR Service
- virtual void preserve_cpp_keywords (bool);
+ virtual void preserve_cpp_keywords (idl_bool);
// Set whether we should not mung idl element names that are C++
// keywords e.g. delete, operator etc. with _cxx_ prefix.
// Is set by the IFR Service.
@@ -553,8 +549,8 @@ public:
file_prefixes (void);
// Accessor for the IDL file prefix container.
- bool pass_orb_idl (void) const;
- void pass_orb_idl (bool val);
+ idl_bool pass_orb_idl (void) const;
+ void pass_orb_idl (idl_bool val);
// Accessor for the pass_orb_idl_ member.
bool using_ifr_backend (void) const;
@@ -578,23 +574,19 @@ public:
int path_cmp (const char *s, const char *t);
// Case insensitive for Windows, otherwise not.
-
+
bool hasspace (const char *s);
// To tell if we have to handle a Windows path with spaces.
-
+
ACE_Unbounded_Queue<AST_ValueType *> &primary_keys (void);
// Accessor for the member.
-
+
void check_primary_keys (void);
// Called affer yy_parse() returns - iterates over our list
// of primary keys. Must be called this late so that we can
// be sure that all forward declared stucts or unions that
// might be used in such a valuetype are fully defined.
- const char *recursion_start (void) const;
- void recursion_start (const char *val);
- // Accessors for the member.
-
private:
// Data
UTL_ScopeStack pd_scopes; // Store scopes stack
@@ -608,8 +600,8 @@ private:
UTL_String *pd_main_filename; // What main filename
UTL_String *pd_real_filename; // What real filename
UTL_String *pd_stripped_filename; // Stripped filename
- bool pd_import; // Is import on?
- bool pd_in_main_file; // Are we in it?
+ idl_bool pd_import; // Is import on?
+ idl_bool pd_in_main_file; // Are we in it?
const char *pd_prog_name; // Argv[0]
const char *pd_cpp_location; // Where to find CPP
long pd_compile_flags; // Compile flags
@@ -648,11 +640,11 @@ private:
// Holds a string that begins with #ident, to be passed from the IDL
// file to the generated files.
- bool case_diff_error_;
+ idl_bool case_diff_error_;
// Do we report an error for indentifiers in the same scope that differ
// only by case? or just a warning?
- bool nest_orb_;
+ idl_bool nest_orb_;
// Is this front end being used for the NEST ORB?
ACE_CString idl_flags_;
@@ -664,10 +656,10 @@ private:
ACE_Unbounded_Stack<char *> pragma_prefixes_;
// Container for all the #pragma prefix declarations.
- bool repeat_include_;
+ idl_bool repeat_include_;
// Has this IDL file been included before?
- bool preserve_cpp_keywords_;
+ idl_bool preserve_cpp_keywords_;
// Do we allow C++ keywords as identifiers in the idl to stay as they are ?
ACE_Unbounded_Queue<char *> include_paths_;
@@ -676,7 +668,7 @@ private:
ACE_Hash_Map_Manager<ACE_CString, char *, ACE_Null_Mutex> file_prefixes_;
// Associates a prefix with a file.
- bool pass_orb_idl_;
+ idl_bool pass_orb_idl_;
// Treat orb.idl like any other included IDL file.
bool using_ifr_backend_;
@@ -687,13 +679,9 @@ private:
// we don't want to try to generate another event consumer.
DCPS_Type_Info_Map dcps_type_info_map_ ;
// Map of #pragma DCPS_DATA_TYPE and DCPS_DATA_KEY infomation.
-
+
ACE_Unbounded_Queue<AST_ValueType *>primary_keys_;
// List of valuetypes used as a primary key.
-
- char *recursion_start_;
- // Path to directory subtree we are iterating/recursing over.
- // Not used by all backends.
};
diff --git a/TAO/TAO_IDL/include/utl_identifier.h b/TAO/TAO_IDL/include/utl_identifier.h
index 57742738473..769256dde2d 100644
--- a/TAO/TAO_IDL/include/utl_identifier.h
+++ b/TAO/TAO_IDL/include/utl_identifier.h
@@ -68,7 +68,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#define _UTL_IDENTIFIER_UTL_IDENTIFIER_HH
#include "TAO_IDL_FE_Export.h"
-
+#include "idl_bool.h"
#include "ace/iosfwd.h"
class TAO_IDL_FE_Export Identifier
@@ -91,19 +91,19 @@ public:
void replace_string (const char * s);
// Replace the underlying string and free the old one.
- bool compare (Identifier *other);
+ long compare (Identifier *other);
// Compare with other Identifier.
- bool case_compare (Identifier *other);
+ long case_compare (Identifier *other);
// Also check for case-only difference.
- bool case_compare_quiet (Identifier *other);
+ long case_compare_quiet (Identifier *other);
// Like the above but suppressing error or warning I/O
Identifier *copy (void);
// Create a deep copy.
- bool escaped (void) const;
+ idl_bool escaped (void) const;
// Accessor for the member.
virtual void dump (ACE_OSTREAM_TYPE &o);
@@ -117,7 +117,7 @@ private:
char *pv_string;
// Did the IDL string have a leading underscore?
- bool escaped_;
+ idl_bool escaped_;
};
#endif // _UTL_IDENTIFIER_UTL_IDENTIFIER_HH
diff --git a/TAO/TAO_IDL/include/utl_list.h b/TAO/TAO_IDL/include/utl_list.h
index 3e88833bc7b..ac4f9c34f72 100644
--- a/TAO/TAO_IDL/include/utl_list.h
+++ b/TAO/TAO_IDL/include/utl_list.h
@@ -76,7 +76,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// public virtual inheritance.
#include "TAO_IDL_FE_Export.h"
-
+#include "idl_bool.h"
// Forward declare active iterator for UTL_List.
class UTL_ListActiveIterator;
@@ -130,7 +130,7 @@ public:
virtual void next (void);
// Are we at the end of this list?
- virtual bool is_done (void);
+ virtual idl_bool is_done (void);
protected:
// On what to iterate?
diff --git a/TAO/TAO_IDL/include/utl_namelist.h b/TAO/TAO_IDL/include/utl_namelist.h
index 5ab4995f3e0..db5c5ed465d 100644
--- a/TAO/TAO_IDL/include/utl_namelist.h
+++ b/TAO/TAO_IDL/include/utl_namelist.h
@@ -80,22 +80,22 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
class TAO_IDL_FE_Export UTL_NameList : public UTL_List
{
public:
- UTL_NameList (UTL_ScopedName *s,
+ UTL_NameList (UTL_ScopedName *s,
UTL_NameList *cdr);
// Get list item.
UTL_ScopedName *head (void);
// Accessors.
- bool truncatable (void) const;
- void truncatable (bool val);
+ idl_bool truncatable (void) const;
+ void truncatable (idl_bool val);
private:
// List item.
UTL_ScopedName *pd_car_data;
// Used only with valuetye inheritance list. Defualts to 0.
- bool pd_truncatable;
+ idl_bool pd_truncatable;
};
// Active iterator for UTL_NameList.
diff --git a/TAO/TAO_IDL/include/utl_scope.h b/TAO/TAO_IDL/include/utl_scope.h
index 6e22b9a986c..81e53e1265e 100644
--- a/TAO/TAO_IDL/include/utl_scope.h
+++ b/TAO/TAO_IDL/include/utl_scope.h
@@ -229,8 +229,8 @@ public:
// Name Lookup Mechanism
AST_Decl *lookup_by_name (UTL_ScopedName *,
- bool treat_as_ref,
- bool in_parent = 1);
+ idl_bool treat_as_ref,
+ idl_bool in_parent = 1);
// Look up the Identifier * specified only in the local scope.
AST_Decl *lookup_by_name_local (Identifier *,
@@ -261,8 +261,8 @@ public:
void add_to_name_referenced (Identifier *id);
// Accessors for the has_prefix_ member.
- bool has_prefix (void);
- void has_prefix (bool val);
+ idl_bool has_prefix (void);
+ void has_prefix (idl_bool val);
// Cleanup function.
virtual void destroy (void);
@@ -289,37 +289,37 @@ protected:
// If ex is not 0 'e' will be inserted at the position
// after ex, which is already in the list.
void add_to_referenced (AST_Decl *e,
- bool recursive,
+ idl_bool recursive,
Identifier *id,
AST_Decl *ex = 0);
-
+
// Add to local types. Node represents a local manifest type.
void add_to_local_types (AST_Decl *e);
// Has this node been referenced here already?
- virtual bool referenced (AST_Decl *e,
+ virtual idl_bool referenced (AST_Decl *e,
Identifier *id = 0);
// Look up a scoped name in the inherited list.
virtual AST_Decl *look_in_inherited (UTL_ScopedName *,
- bool treat_as_ref);
-
+ idl_bool treat_as_ref);
+
// Look up a scoped name in the supported interface list.
virtual AST_Decl *look_in_supported (UTL_ScopedName *,
- bool treat_as_ref);
-
+ idl_bool treat_as_ref);
+
// Lookup based on the local name.
AST_Decl *lookup_for_add (AST_Decl *d,
- bool treat_as_ref);
+ idl_bool treat_as_ref);
// Is there a (case-insensitive) clash between a local name
// and an IDL keyword?
int idl_keyword_clash (Identifier *e);
// Checks for modules, or defns of forward declared struct or unions.
- bool redef_clash (AST_Decl::NodeType new_nt,
+ idl_bool redef_clash (AST_Decl::NodeType new_nt,
AST_Decl::NodeType scope_elem_nt);
-
+
void check_for_predef_seq (AST_Decl *d);
// Set the appropriate *_seen_ flag if we are seeing a spec-defined
// sequence of a basic type.
@@ -354,7 +354,7 @@ protected:
long pd_name_referenced_used; // How many used?
// Have we seen a #pragma prefix declaration in this scope?
- bool has_prefix_;
+ idl_bool has_prefix_;
// Friend class UTL_ScopeActiveIterator defines active iterator for
// UTL_Scope. Definition follows below.
@@ -450,7 +450,7 @@ public:
AST_Decl *item (void);
// Have we iterated over entire scope?
- bool is_done (void);
+ idl_bool is_done (void);
// What kind of iterator is this?
UTL_Scope::ScopeIterationKind iteration_kind (void);
diff --git a/TAO/TAO_IDL/include/utl_string.h b/TAO/TAO_IDL/include/utl_string.h
index ff470c900ae..2b98d823525 100644
--- a/TAO/TAO_IDL/include/utl_string.h
+++ b/TAO/TAO_IDL/include/utl_string.h
@@ -68,7 +68,7 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#define _STRING_STRING_HH
#include "TAO_IDL_FE_Export.h"
-
+#include "idl_bool.h"
#include "ace/iosfwd.h"
/* Basic_Types.h are needed in QNX for size_t type. */
#include "ace/Basic_Types.h"
@@ -98,7 +98,7 @@ public:
// Get canonical representation. This is (implemented as) the all upper
// case corresponding string.
- bool compare (UTL_String *s);
+ idl_bool compare (UTL_String *s);
// Compare two UTL_String *
long compare_quiet (UTL_String *s);
diff --git a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h b/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h
index ea4f418a276..8fee4504360 100644
--- a/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h
+++ b/TAO/TAO_IDL/include/utl_tmpl/utl_exceptlist.h
@@ -79,7 +79,7 @@
#include "utl_identifier.h"
#include "utl_string.h"
#include "ast_expression.h"
-#include "bool.h"
+#include "idl_bool.h"
#include "utl_scope.h"
#include "ast_decl.h"
#include "ast_type.h"
diff --git a/TAO/TAO_IDL/tao_idl.cpp b/TAO/TAO_IDL/tao_idl.cpp
index 54ea445086e..d91c83fbbfd 100644
--- a/TAO/TAO_IDL/tao_idl.cpp
+++ b/TAO/TAO_IDL/tao_idl.cpp
@@ -108,11 +108,11 @@ DRV_init (int &argc, char *argv[])
{
// Initialize BE.
FE_init ();
-
+
// Initialize driver private data
DRV_nfiles = 0;
DRV_file_index = 0;
-
+
#if defined (TAO_IDL_PREPROCESSOR)
idl_global->set_cpp_location (TAO_IDL_PREPROCESSOR);
#elif defined (ACE_CC_PREPROCESSOR)
@@ -140,8 +140,8 @@ DRV_refresh (void)
idl_global->set_main_filename (0);
idl_global->set_real_filename (0);
idl_global->set_stripped_filename (0);
-// idl_global->set_import (true);
-// idl_global->set_in_main_file (false);
+// idl_global->set_import (I_TRUE);
+// idl_global->set_in_main_file (I_FALSE);
idl_global->set_lineno (-1);
idl_global->reset_flag_seen ();
}
@@ -195,7 +195,7 @@ DRV_drive (const char *s)
}
FE_yyparse ();
-
+
// We must do this as late as possible to make sure any
// forward declared structs or unions contained in a
// primary key at some level have been fully defined.
@@ -264,7 +264,7 @@ DRV_drive (const char *s)
{
ACE_OS::exit (static_cast<int> (error_count));
}
-
+
DRV_refresh ();
}
@@ -278,7 +278,7 @@ DRV_drive (const char *s)
*/
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Initialize driver and global variables.
int init_status = DRV_init (argc, argv);
@@ -305,9 +305,8 @@ main (int argc, char *argv[])
ACE_OS::exit (0);
}
- // If there are no input files, and we are not using the
- // directory recursion option, there's no sense going any further.
- if (DRV_nfiles == 0 && idl_global->recursion_start () == 0)
+ // If there are no input files, no sense going any further.
+ if (DRV_nfiles == 0)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("IDL: No input files\n")));
@@ -330,7 +329,7 @@ main (int argc, char *argv[])
else
{
idl_global->set_gen (gen);
- }
+ }
// Initialize AST and load predefined types.
FE_populate ();
@@ -344,22 +343,15 @@ main (int argc, char *argv[])
{
DRV_drive (DRV_files[DRV_file_index]);
}
-
- be_global->destroy ();
+
+ be_global->destroy ();
delete be_global;
be_global = 0;
-
- idl_global->fini ();
+
+ idl_global->fini ();
delete idl_global;
idl_global = 0;
- for (DRV_file_index = 0;
- DRV_file_index < DRV_nfiles;
- ++DRV_file_index)
- {
- ACE::strdelete (const_cast<char *> (DRV_files[DRV_file_index]));
- }
-
ACE_OS::exit (0);
// NOT REACHED
diff --git a/TAO/TAO_IDL/tao_idl.mpc b/TAO/TAO_IDL/tao_idl.mpc
index 2fb895074f4..51ee324c4b9 100644
--- a/TAO/TAO_IDL/tao_idl.mpc
+++ b/TAO/TAO_IDL/tao_idl.mpc
@@ -1,17 +1,13 @@
// -*- MPC -*-
// $Id$
-project(TAO_IDL_EXE) : aceexe, core, tao_output, crosscompile {
+project(TAO_IDL_EXE) : aceexe, acethreadslib_for_tao, core, tao_output, crosscompile {
exename = tao_idl
libs += TAO_IDL_BE TAO_IDL_FE
+ includes += include be_include fe
install = $(ACE_ROOT)/bin
after += TAO_IDL_BE TAO_IDL_FE gperf
-
- specific (automake) {
- includes += $(srcdir)/include $(srcdir)/be_include $(srcdir)/fe
- } else {
- includes += include be_include fe
- }
+ avoids += uses_wchar
specific {
// Override the template value for optimize. Building the exe
@@ -27,11 +23,7 @@ project(TAO_IDL_EXE) : aceexe, core, tao_output, crosscompile {
verbatim(gnuace, local) {
ifeq ($(TAO_IDL_PREPROCESSOR),)
- ifeq ($(ACE_CC_PREPROCESSOR),)
- CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\\\"$(strip $(CXX))\\\"
- else
- CPPFLAGS += -DACE_CC_PREPROCESSOR=\\\"$(subst \\,\\,$(ACE_CC_PREPROCESSOR))\\\"
- endif
+ CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\\\"$(strip $(CXX))\\\"
else
CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\\\"$(subst \\,\\,$(TAO_IDL_PREPROCESSOR))\\\"
endif
@@ -49,18 +41,13 @@ project(TAO_IDL_EXE) : aceexe, core, tao_output, crosscompile {
}
-project(TAO_IDL_BE) : acelib, conv_lib, tao_output, crosscompile {
+project(TAO_IDL_BE) : acelib, acethreadslib_for_tao, conv_lib, tao_output, crosscompile {
sharedname = TAO_IDL_BE
libs += TAO_IDL_FE
+ includes += include be_include fe
dynamicflags = TAO_IDL_BE_BUILD_DLL
after += TAO_IDL_FE
- specific (automake) {
- includes += $(srcdir)/include $(srcdir)/be_include $(srcdir)/fe
- } else {
- includes += include be_include fe
- }
-
specific {
// Override the template value for optimize. Building the backend
// with optimization turned on doesn't seem to work (at least not with
@@ -79,16 +66,11 @@ project(TAO_IDL_BE) : acelib, conv_lib, tao_output, crosscompile {
}
-project(TAO_IDL_FE) : acelib, conv_lib, tao_output, crosscompile {
+project(TAO_IDL_FE) : acelib, acethreadslib_for_tao, conv_lib, tao_output, crosscompile {
sharedname = TAO_IDL_FE
+ includes += include fe
dynamicflags = TAO_IDL_FE_BUILD_DLL
- specific (automake) {
- includes += $(srcdir)/include $(srcdir)/fe
- } else {
- includes += include fe
- }
-
specific {
// Override the template value for optimize. Building the frontend
// with optimization turned on doesn't seem to work (at least not with
diff --git a/TAO/TAO_IDL/util/utl_err.cpp b/TAO/TAO_IDL/util/utl_err.cpp
index f412e4c0d09..db47cd9df03 100644
--- a/TAO/TAO_IDL/util/utl_err.cpp
+++ b/TAO/TAO_IDL/util/utl_err.cpp
@@ -81,8 +81,6 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
-#include "ace/Log_Msg.h"
-
ACE_RCSID (util,
utl_err,
"$Id$")
@@ -223,12 +221,12 @@ error_string (UTL_Error::ErrorCode c)
static void
idl_error_header (UTL_Error::ErrorCode c,
long lineno,
- ACE_CString s)
+ UTL_String *s)
{
ACE_ERROR ((LM_ERROR,
"%s: \"%s\", line %d: %s",
idl_global->prog_name (),
- s.c_str (),
+ s->get_string (),
lineno == -1 ? idl_global->lineno () : lineno,
error_string (c)));
}
@@ -626,7 +624,7 @@ UTL_Error::syntax_error (IDL_GlobalData::ParseState ps)
{
idl_error_header (EIDL_SYNTAX_ERROR,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"%s\n",
parse_state_to_error_message (ps)));
@@ -638,7 +636,7 @@ UTL_Error::error0 (UTL_Error::ErrorCode c)
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\n"));
idl_global->set_err_count (idl_global->err_count () + 1);
@@ -650,7 +648,7 @@ UTL_Error::error1 (UTL_Error::ErrorCode c,
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);;
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -664,7 +662,7 @@ UTL_Error::error2 (UTL_Error::ErrorCode c,
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d1->name ()->dump (*ACE_DEFAULT_LOG_STREAM);;
ACE_ERROR ((LM_ERROR,
", "));
@@ -682,7 +680,7 @@ UTL_Error::error3 (UTL_Error::ErrorCode c,
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d1->name ()->dump (*ACE_DEFAULT_LOG_STREAM);;
ACE_ERROR ((LM_ERROR,
", "));
@@ -702,7 +700,7 @@ UTL_Error::warning0 (UTL_Error::ErrorCode c)
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\n"));
}
@@ -716,7 +714,7 @@ UTL_Error::warning1 (UTL_Error::ErrorCode c,
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -732,7 +730,7 @@ UTL_Error::warning2 (UTL_Error::ErrorCode c,
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d1->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
", "));
@@ -752,7 +750,7 @@ UTL_Error::warning3 (UTL_Error::ErrorCode c,
{
idl_error_header (c,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d1->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
", "));
@@ -772,7 +770,7 @@ UTL_Error::coercion_error (AST_Expression *v,
{
idl_error_header (EIDL_COERCION_FAILURE,
v->line (),
- v->file_name ()->get_string ());
+ v->file_name ());
v->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
" to %s\n",
@@ -786,7 +784,7 @@ UTL_Error::lookup_error (UTL_ScopedName *n)
{
idl_error_header (EIDL_LOOKUP_ERROR,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
n->dump (*ACE_DEFAULT_LOG_STREAM);;
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -799,7 +797,7 @@ UTL_Error::version_number_error (char *n)
{
idl_error_header (EIDL_ILLEGAL_VERSION,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"%s\n",
n));
@@ -812,7 +810,7 @@ UTL_Error::version_reset_error (void)
{
idl_error_header (EIDL_VERSION_RESET,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\n"));
idl_global->set_err_count (idl_global->err_count () + 1);
@@ -825,7 +823,7 @@ UTL_Error::id_reset_error (const char *o,
{
idl_error_header (EIDL_ID_RESET,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"%s, %s\n",
o,
@@ -860,7 +858,7 @@ UTL_Error::inheritance_error (UTL_ScopedName *n,
{
idl_error_header (EIDL_CANT_INHERIT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
n->dump (*ACE_DEFAULT_LOG_STREAM);;
ACE_ERROR ((LM_ERROR,
" attempts to inherit from "));
@@ -897,7 +895,7 @@ UTL_Error::supports_error (UTL_ScopedName *n,
{
idl_error_header (EIDL_CANT_SUPPORT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
n->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
" attempts to support "));
@@ -913,7 +911,7 @@ UTL_Error::derived_supports_error (UTL_ScopedName *n)
{
idl_error_header (EIDL_CANT_SUPPORT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"derived component or home "));
n->dump (*ACE_DEFAULT_LOG_STREAM);
@@ -929,7 +927,7 @@ UTL_Error::abstract_inheritance_error (UTL_ScopedName *v,
{
idl_error_header (EIDL_CANT_INHERIT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
" abstract valuetype "));
v->dump (*ACE_DEFAULT_LOG_STREAM);
@@ -948,7 +946,7 @@ UTL_Error::abstract_support_error (UTL_ScopedName *v,
{
idl_error_header (EIDL_CANT_SUPPORT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
" valuetype "));
v->dump (*ACE_DEFAULT_LOG_STREAM);
@@ -967,7 +965,7 @@ UTL_Error::unconstrained_interface_expected (UTL_ScopedName *c,
{
idl_error_header (EIDL_CANT_SUPPORT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
" component or home "));
c->dump (*ACE_DEFAULT_LOG_STREAM);
@@ -985,7 +983,7 @@ UTL_Error::concrete_supported_inheritance_error (UTL_ScopedName *v,
{
idl_error_header (EIDL_CANT_SUPPORT,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
" valuetype "));
v->dump (*ACE_DEFAULT_LOG_STREAM);
@@ -1005,7 +1003,7 @@ UTL_Error::eval_error (AST_Expression *v)
{
idl_error_header (EIDL_EVAL_ERROR,
v->line (),
- v->file_name ()->get_string ());
+ v->file_name ());
v->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1018,7 +1016,7 @@ UTL_Error::incompatible_type_error (AST_Expression *v)
{
idl_error_header (EIDL_INCOMPATIBLE_TYPE,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
v->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1052,7 +1050,7 @@ UTL_Error::interface_expected (AST_Decl *d)
{
idl_error_header (EIDL_INTERFACE_EXPECTED,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1067,7 +1065,7 @@ UTL_Error::valuetype_expected (AST_Decl *d)
{
idl_error_header (EIDL_VALUETYPE_EXPECTED,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1082,7 +1080,7 @@ UTL_Error::concrete_valuetype_expected (AST_Decl *d)
{
idl_error_header (EIDL_CONCRETE_VT_EXPECTED,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1098,7 +1096,7 @@ UTL_Error::abstract_expected (AST_Decl *d)
{
idl_error_header (EIDL_ABSTRACT_EXPECTED,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1114,7 +1112,7 @@ UTL_Error::eventtype_expected (AST_Decl *d)
{
idl_error_header (EIDL_EVENTTYPE_EXPECTED,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
ACE_ERROR ((LM_ERROR,
"\n"));
@@ -1129,7 +1127,7 @@ UTL_Error::primary_key_error (AST_Decl *d)
{
idl_error_header (EIDL_PRIMARY_KEY_ERROR,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"primary key "));
d->name ()->dump (*ACE_DEFAULT_LOG_STREAM);
@@ -1188,7 +1186,7 @@ UTL_Error::redef_error (char *b,
{
idl_error_header (EIDL_REDEF,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\"%s\" and \"%s\"\n",
b,
@@ -1203,7 +1201,7 @@ UTL_Error::name_case_error (char *b,
{
idl_error_header (EIDL_NAME_CASE_ERROR,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\"%s\" and \"%s\"\n",
b,
@@ -1219,7 +1217,7 @@ UTL_Error::name_case_warning (char *b,
{
idl_error_header (EIDL_NAME_CASE_WARNING,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\"%s\" and \"%s\"\n",
b,
@@ -1232,7 +1230,7 @@ UTL_Error::idl_keyword_error (char *n)
{
idl_error_header (EIDL_KEYWORD_ERROR,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\"%s\"\n",
n));
@@ -1246,7 +1244,7 @@ UTL_Error::idl_keyword_warning (char *n)
{
idl_error_header (EIDL_KEYWORD_WARNING,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\"%s\"\n",
n));
@@ -1296,7 +1294,7 @@ UTL_Error::fwd_decl_lookup (AST_Interface *d,
{
idl_error_header (EIDL_FWD_DECL_LOOKUP,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"trying to look up "));
n->dump (*ACE_DEFAULT_LOG_STREAM);;
@@ -1331,7 +1329,7 @@ UTL_Error::not_a_type (AST_Decl *d)
{
idl_error_header (EIDL_NOT_A_TYPE,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
if (d == 0 || d->name () == 0)
{
ACE_ERROR ((LM_ERROR,
@@ -1353,7 +1351,7 @@ UTL_Error::back_end (long lineno,
{
idl_error_header (EIDL_BACK_END,
lineno,
- s->get_string ());
+ s);
ACE_ERROR ((LM_ERROR,
"\n"));
idl_global->set_err_count (idl_global->err_count () + 1);
@@ -1364,7 +1362,7 @@ UTL_Error::illegal_infix (void)
{
idl_error_header (EIDL_ILLEGAL_INFIX,
idl_global->lineno (),
- idl_global->filename ()->get_string ());
+ idl_global->filename ());
ACE_ERROR ((LM_ERROR,
"\n"));
idl_global->set_err_count (idl_global->err_count () + 1);
diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp
index 4fa1996aa22..4081da3cdb0 100644
--- a/TAO/TAO_IDL/util/utl_global.cpp
+++ b/TAO/TAO_IDL/util/utl_global.cpp
@@ -104,8 +104,8 @@ IDL_GlobalData::IDL_GlobalData (void)
pd_main_filename (0),
pd_real_filename (0),
pd_stripped_filename (0),
- pd_import (false),
- pd_in_main_file (false),
+ pd_import (I_FALSE),
+ pd_in_main_file (I_FALSE),
pd_prog_name (0),
pd_cpp_location (0),
pd_compile_flags (0),
@@ -123,14 +123,13 @@ IDL_GlobalData::IDL_GlobalData (void)
gperf_path_ (0),
temp_dir_ (0),
ident_string_ (0),
- case_diff_error_ (true),
- nest_orb_ (false),
+ case_diff_error_ (I_TRUE),
+ nest_orb_ (I_FALSE),
idl_flags_ (""),
- preserve_cpp_keywords_ (true),
- pass_orb_idl_ (false),
+ preserve_cpp_keywords_ (I_TRUE),
+ pass_orb_idl_ (I_FALSE),
using_ifr_backend_ (false),
- ignore_idl3_ (false),
- recursion_start_ (0) // Not used by all backends.
+ ignore_idl3_ (false)
{
// Path for the perfect hash generator(gperf) program.
// Default is $ACE_ROOT/bin/gperf unless ACE_GPERF is defined.
@@ -238,7 +237,6 @@ IDL_GlobalData::reset_flag_seen (void)
short_seq_seen_ = false;
special_basic_arg_seen_ = false;
string_seen_ = false;
- string_member_seen_ = false;
string_seq_seen_ = false;
typecode_seen_ = false;
ub_string_arg_seen_ = false;
@@ -254,8 +252,6 @@ IDL_GlobalData::reset_flag_seen (void)
vt_seq_seen_ = false;
wchar_seq_seen_ = false;
wstring_seq_seen_ = false;
-
- need_skeleton_includes_ = false;
}
// Get or set scopes stack
@@ -404,33 +400,33 @@ IDL_GlobalData::set_real_filename (UTL_String *n)
}
// Get or set indicator whether import is on
-bool
+idl_bool
IDL_GlobalData::imported (void)
{
- return this->pd_in_main_file ? false : pd_import;
+ return this->pd_in_main_file ? I_FALSE : pd_import;
}
-bool
+idl_bool
IDL_GlobalData::import (void)
{
return this->pd_import;
}
void
-IDL_GlobalData::set_import (bool is_in)
+IDL_GlobalData::set_import (idl_bool is_in)
{
this->pd_import = is_in;
}
// Get or set indicator whether we're reading the main file now
-bool
+idl_bool
IDL_GlobalData::in_main_file (void)
{
return this->pd_in_main_file;
}
void
-IDL_GlobalData::set_in_main_file (bool is_in)
+IDL_GlobalData::set_in_main_file (idl_bool is_in)
{
this->pd_in_main_file = is_in;
}
@@ -976,24 +972,24 @@ IDL_GlobalData::ident_string (void) const
}
void
-IDL_GlobalData::case_diff_error (bool val)
+IDL_GlobalData::case_diff_error (idl_bool val)
{
this->case_diff_error_ = val;
}
-bool
+idl_bool
IDL_GlobalData::case_diff_error (void)
{
return this->case_diff_error_;
}
void
-IDL_GlobalData::nest_orb (bool val)
+IDL_GlobalData::nest_orb (idl_bool val)
{
this->nest_orb_ = val;
}
-bool
+idl_bool
IDL_GlobalData::nest_orb (void)
{
return this->nest_orb_;
@@ -1066,9 +1062,6 @@ IDL_GlobalData::destroy (void)
this->n_included_idl_files_ = 0;
this->pd_root->destroy ();
-
- ACE::strdelete (this->recursion_start_);
- this->recursion_start_ = 0;
}
void
@@ -1292,7 +1285,7 @@ IDL_GlobalData::stripped_preproc_include (const char *name)
C++ keywords e.g. delete, operator etc. with _cxx_ prefix.
Should be true when being used by the IFR Service
*/
-bool
+idl_bool
IDL_GlobalData::preserve_cpp_keywords (void)
{
return preserve_cpp_keywords_;
@@ -1304,7 +1297,7 @@ IDL_GlobalData::preserve_cpp_keywords (void)
Is unset by the tao_idl compiler.
*/
void
-IDL_GlobalData::preserve_cpp_keywords (bool val)
+IDL_GlobalData::preserve_cpp_keywords (idl_bool val)
{
preserve_cpp_keywords_ = val;
}
@@ -1321,14 +1314,14 @@ IDL_GlobalData::file_prefixes (void)
return this->file_prefixes_;
}
-bool
+idl_bool
IDL_GlobalData::pass_orb_idl (void) const
{
return this->pass_orb_idl_;
}
void
-IDL_GlobalData::pass_orb_idl (bool val)
+IDL_GlobalData::pass_orb_idl (idl_bool val)
{
this->pass_orb_idl_ = val;
}
@@ -1424,7 +1417,8 @@ IDL_GlobalData::check_gperf (void)
#if defined (ACE_WIN32)
// No wait or anything in Win32.
return 0;
-#else
+#endif /* ACE_WIN32 */
+
// Wait for gperf to complete.
ACE_exitcode wait_status = 0;
if (process.wait (&wait_status) == -1)
@@ -1462,7 +1456,6 @@ IDL_GlobalData::check_gperf (void)
return -1;
}
}
-#endif /* ACE_WIN32 */
}
void
@@ -1521,7 +1514,7 @@ IDL_GlobalData::create_uses_multiple_stuff (
UTL_ScopedName scoped_name (&module_id,
&local_name);
AST_Decl *d = c->lookup_by_name (&scoped_name,
- true);
+ I_TRUE);
local_id.destroy ();
module_id.destroy ();
@@ -1619,9 +1612,9 @@ void
IDL_GlobalData::check_primary_keys (void)
{
AST_ValueType *holder = 0;
-
+
while (!this->primary_keys_.is_empty ())
- {
+ {
// Dequeue the element at the head of the queue.
if (this->primary_keys_.dequeue_head (holder))
{
@@ -1637,19 +1630,6 @@ IDL_GlobalData::check_primary_keys (void)
}
}
-const char *
-IDL_GlobalData::recursion_start (void) const
-{
- return this->recursion_start_;
-}
-
-void
-IDL_GlobalData::recursion_start (const char *val)
-{
- ACE::strdelete (this->recursion_start_);
- this->recursion_start_ = ACE::strnew (val);
-}
-
void
IDL_GlobalData::add_dcps_data_type(const char* id)
{
@@ -1688,7 +1668,7 @@ IDL_GlobalData::add_dcps_data_type(const char* id)
}
-bool
+idl_bool
IDL_GlobalData::add_dcps_data_key(const char* id, const char* key)
{
// Search the map for the type.
diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp
index f993627e94e..c12115c8e1b 100644
--- a/TAO/TAO_IDL/util/utl_identifier.cpp
+++ b/TAO/TAO_IDL/util/utl_identifier.cpp
@@ -72,8 +72,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
-ACE_RCSID (util,
- utl_identifier,
+ACE_RCSID (util,
+ utl_identifier,
"$Id$")
Identifier::Identifier (void)
@@ -84,7 +84,7 @@ Identifier::Identifier (void)
Identifier::Identifier (const char *s)
{
- bool shift = 0;
+ idl_bool shift = 0;
this->escaped_ = 0;
if (*s == '_')
@@ -149,35 +149,35 @@ Identifier::replace_string (const char * s)
}
// Compare two Identifier *
-bool
+long
Identifier::compare (Identifier *o)
{
if (o == 0)
{
- return false;
+ return I_FALSE;
};
if (this->pv_string == 0 || o->get_string () == 0)
{
- return false;
+ return I_FALSE;
}
if (this->escaped_ ^ o->escaped_)
{
- return false;
+ return I_FALSE;
}
return (ACE_OS::strcmp (this->pv_string, o->get_string ()) == 0);
}
// Report the appropriate error if the two identifiers differ only in case.
-bool
+long
Identifier::case_compare (Identifier *o)
{
UTL_String member (this->pv_string);
UTL_String other (o->get_string ());
- bool result = member.compare (&other);
+ long result = member.compare (&other);
member.destroy ();
other.destroy ();
@@ -186,13 +186,13 @@ Identifier::case_compare (Identifier *o)
}
// Report no error if the two identifiers differ only in case.
-bool
+long
Identifier::case_compare_quiet (Identifier *o)
{
UTL_String member (this->pv_string);
UTL_String other (o->pv_string);
- bool result = member.compare_quiet (&other);
+ long result = member.compare_quiet (&other);
member.destroy ();
other.destroy ();
@@ -213,7 +213,7 @@ Identifier::copy (void)
return retval;
}
-bool
+idl_bool
Identifier::escaped (void) const
{
return this->escaped_;
diff --git a/TAO/TAO_IDL/util/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_idlist.cpp
index 26985395686..194c57a7f1c 100644
--- a/TAO/TAO_IDL/util/utl_idlist.cpp
+++ b/TAO/TAO_IDL/util/utl_idlist.cpp
@@ -68,9 +68,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// NOTE: This list class only works correctly because we use single public
// inheritance, as opposed to multiple inheritance or public virtual.
-// It relies on a type-unsafe cast from UTL_List to subclasses, which
-// will cease to operate correctly if you use either multiple or
-// public virtual inheritance.
+// It relies on a type-unsafe cast from UTL_List to subclasses, which
+// will cease to operate correctly if you use either multiple or
+// public virtual inheritance.
#include "utl_idlist.h"
#include "utl_identifier.h"
@@ -80,8 +80,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
-ACE_RCSID (util,
- utl_idlist,
+ACE_RCSID (util,
+ utl_idlist,
"$Id$")
// Constructor
@@ -164,7 +164,7 @@ UTL_IdList::compare (UTL_IdList *other)
{
return 1;
}
-
+
return ((UTL_IdList *) this_tail)->compare (other);
}
@@ -210,8 +210,8 @@ UTL_IdList::compare (UTL_IdList *other)
void
UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
{
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
for (UTL_IdListActiveIterator i (this);
!i.is_done ();
@@ -223,7 +223,7 @@ UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
i.item ()->dump (o);
@@ -232,11 +232,11 @@ UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
{
if (ACE_OS::strcmp (i.item ()->get_string (), "::") != 0)
{
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
diff --git a/TAO/TAO_IDL/util/utl_list.cpp b/TAO/TAO_IDL/util/utl_list.cpp
index 1e1f23a0657..9cdc10ea09b 100644
--- a/TAO/TAO_IDL/util/utl_list.cpp
+++ b/TAO/TAO_IDL/util/utl_list.cpp
@@ -68,19 +68,19 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// NOTE: This list class only works correctly because we use single public
// inheritance, as opposed to multiple inheritance or public virtual.
-// It relies on a type-unsafe cast from UTL_List to subclasses, which
-// will cease to operate correctly if you use either multiple or
-// public virtual inheritance.
+// It relies on a type-unsafe cast from UTL_List to subclasses, which
+// will cease to operate correctly if you use either multiple or
+// public virtual inheritance.
#include "utl_list.h"
#include "ace/OS_Memory.h"
-ACE_RCSID (util,
- utl_list,
+ACE_RCSID (util,
+ utl_list,
"$Id$")
UTL_List::UTL_List (UTL_List *c)
- : pd_cdr_data (c)
+ : pd_cdr_data (c)
{
}
@@ -179,10 +179,10 @@ UTL_ListActiveIterator::UTL_ListActiveIterator (UTL_List *s)
}
// Is iterator done?
-bool
+idl_bool
UTL_ListActiveIterator::is_done (void)
{
- return (this->source == 0) ? true : false;
+ return (this->source == 0) ? I_TRUE : I_FALSE;
}
// Advance to next item.
diff --git a/TAO/TAO_IDL/util/utl_namelist.cpp b/TAO/TAO_IDL/util/utl_namelist.cpp
index e88da13f0f0..a15ebd3f200 100644
--- a/TAO/TAO_IDL/util/utl_namelist.cpp
+++ b/TAO/TAO_IDL/util/utl_namelist.cpp
@@ -68,21 +68,21 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// NOTE: This list class only works correctly because we use single public
// inheritance, as opposed to multiple inheritance or public virtual.
-// It relies on a type-unsafe cast from UTL_List to subclasses, which
-// will cease to operate correctly if you use either multiple or
-// public virtual inheritance.
+// It relies on a type-unsafe cast from UTL_List to subclasses, which
+// will cease to operate correctly if you use either multiple or
+// public virtual inheritance.
#include "utl_namelist.h"
-ACE_RCSID (util,
- utl_namelist,
+ACE_RCSID (util,
+ utl_namelist,
"$Id$")
-UTL_NameList::UTL_NameList (UTL_ScopedName *s,
+UTL_NameList::UTL_NameList (UTL_ScopedName *s,
UTL_NameList *cdr)
- : UTL_List (cdr),
- pd_car_data (s),
- pd_truncatable (false)
+ : UTL_List (cdr),
+ pd_car_data (s),
+ pd_truncatable (I_FALSE)
{
}
@@ -93,20 +93,20 @@ UTL_NameList::head (void)
return this->pd_car_data;
}
-bool
+idl_bool
UTL_NameList::truncatable (void) const
{
return this->pd_truncatable;
}
void
-UTL_NameList::truncatable (bool val)
+UTL_NameList::truncatable (idl_bool val)
{
this->pd_truncatable = val;
}
UTL_NamelistActiveIterator::UTL_NamelistActiveIterator (UTL_NameList *s)
- : UTL_ListActiveIterator(s)
+ : UTL_ListActiveIterator(s)
{
}
diff --git a/TAO/TAO_IDL/util/utl_scope.cpp b/TAO/TAO_IDL/util/utl_scope.cpp
index ac011b7d84f..10d65e8bf0d 100644
--- a/TAO/TAO_IDL/util/utl_scope.cpp
+++ b/TAO/TAO_IDL/util/utl_scope.cpp
@@ -347,7 +347,7 @@ add_type (AST_Type *type)
// be used only by the CFE add_xxx functions.
AST_Decl *
UTL_Scope::lookup_for_add (AST_Decl *d,
- bool)
+ idl_bool)
{
if (d == 0)
{
@@ -402,7 +402,7 @@ UTL_Scope::idl_keyword_clash (Identifier *e)
return 0;
}
-bool
+idl_bool
UTL_Scope::redef_clash (AST_Decl::NodeType new_nt,
AST_Decl::NodeType scope_elem_nt)
{
@@ -437,7 +437,7 @@ UTL_Scope::redef_clash (AST_Decl::NodeType new_nt,
return (scope_elem_nt != AST_Decl::NT_eventtype_fwd
&& scope_elem_nt != AST_Decl::NT_eventtype);
default:
- return true;
+ return I_TRUE;
}
}
@@ -455,7 +455,7 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
AST_Type *bt = 0;
AST_Decl::NodeType nt = d->node_type ();
-
+
// We are interested only in members, arguments and typedefs.
switch (nt)
{
@@ -471,33 +471,33 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
default:
return;
}
-
+
// Check to eliminate more candidates.
if (!bt->imported () || bt->node_type () != AST_Decl::NT_typedef)
{
return;
}
-
- bt = AST_Typedef::narrow_from_decl (bt)->base_type ();
+
+ bt = AST_Typedef::narrow_from_decl (bt)->base_type ();
nt = bt->node_type ();
-
+
// Must be a sequence with only one level of typedef.
if (nt != AST_Decl::NT_sequence)
{
return;
}
-
- // Must be defined in the CORBA module.
+
+ // Must be defined in the CORBA module.
AST_Decl *p = ScopeAsDecl (bt->defined_in ());
if (ACE_OS::strcmp (p->local_name ()->get_string (), "CORBA") != 0)
{
return;
}
-
- // We know this narrowing will be successful.
+
+ // We know this narrowing will be successful.
bt = AST_Sequence::narrow_from_decl (bt)->base_type ();
nt = bt->node_type ();
-
+
// First check for string or wstring base type.
if (nt == AST_Decl::NT_string)
{
@@ -509,14 +509,14 @@ UTL_Scope::check_for_predef_seq (AST_Decl *d)
idl_global->wstring_seq_seen_ = true;
return;
}
-
+
// Now check for predefined base type.
AST_PredefinedType *pdt = AST_PredefinedType::narrow_from_decl (bt);
if (pdt == 0)
{
return;
}
-
+
switch (pdt->pt ())
{
case AST_PredefinedType::PT_long:
@@ -582,7 +582,7 @@ UTL_Scope::add_predefined_type (AST_PredefinedType *p)
return 0;
}
- p->set_added (true);
+ p->set_added (I_TRUE);
return p;
}
@@ -594,7 +594,7 @@ UTL_Scope::add_module (AST_Module *m)
return 0;
}
- m->set_added (true);
+ m->set_added (I_TRUE);
return m;
}
@@ -606,7 +606,7 @@ UTL_Scope::add_interface (AST_Interface *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -618,7 +618,7 @@ UTL_Scope::add_interface_fwd (AST_InterfaceFwd *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -630,7 +630,7 @@ UTL_Scope::add_valuetype (AST_ValueType *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -642,7 +642,7 @@ UTL_Scope::add_valuetype_fwd (AST_ValueTypeFwd *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -654,7 +654,7 @@ UTL_Scope::add_eventtype (AST_EventType *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -666,7 +666,7 @@ UTL_Scope::add_eventtype_fwd (AST_EventTypeFwd *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -678,7 +678,7 @@ UTL_Scope::add_component (AST_Component *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -690,7 +690,7 @@ UTL_Scope::add_component_fwd (AST_ComponentFwd *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -702,7 +702,7 @@ UTL_Scope::add_home (AST_Home *i)
return 0;
}
- i->set_added (true);
+ i->set_added (I_TRUE);
return i;
}
@@ -714,7 +714,7 @@ UTL_Scope::add_exception (AST_Exception *e)
return 0;
}
- e->set_added (true);
+ e->set_added (I_TRUE);
return e;
}
@@ -726,7 +726,7 @@ UTL_Scope::add_constant (AST_Constant *c)
return 0;
}
- c->set_added (true);
+ c->set_added (I_TRUE);
return c;
}
@@ -750,7 +750,7 @@ UTL_Scope::add_attribute (AST_Attribute *a)
return 0;
}
- a->set_added (true);
+ a->set_added (I_TRUE);
if (!a->field_type ()->added ())
{
@@ -770,7 +770,7 @@ UTL_Scope::add_operation (AST_Operation *o)
return 0;
}
- o->set_added (true);
+ o->set_added (I_TRUE);
if (!o->return_type ()->added ())
{
@@ -790,7 +790,7 @@ UTL_Scope::add_argument (AST_Argument *a)
return 0;
}
- a->set_added (true);
+ a->set_added (I_TRUE);
if (!a->field_type ()->added ())
{
@@ -810,7 +810,7 @@ UTL_Scope::add_union (AST_Union *u)
return 0;
}
- u->set_added (true);
+ u->set_added (I_TRUE);
return u;
}
@@ -822,7 +822,7 @@ UTL_Scope::add_union_fwd (AST_UnionFwd *u)
return 0;
}
- u->set_added (true);
+ u->set_added (I_TRUE);
return u;
}
@@ -834,7 +834,7 @@ UTL_Scope::add_union_branch (AST_UnionBranch *u)
return 0;
}
- u->set_added (true);
+ u->set_added (I_TRUE);
if (!u->field_type ()->added ())
{
@@ -854,7 +854,7 @@ UTL_Scope::add_structure (AST_Structure *s)
return 0;
}
- s->set_added (true);
+ s->set_added (I_TRUE);
return s;
}
@@ -866,7 +866,7 @@ UTL_Scope::add_structure_fwd (AST_StructureFwd *s)
return 0;
}
- s->set_added (true);
+ s->set_added (I_TRUE);
return s;
}
@@ -878,7 +878,7 @@ UTL_Scope::add_field (AST_Field *f)
return 0;
}
- f->set_added (true);
+ f->set_added (I_TRUE);
if (!f->field_type ()->added ())
{
@@ -898,7 +898,7 @@ UTL_Scope::add_enum (AST_Enum *e)
return 0;
}
- e->set_added (true);
+ e->set_added (I_TRUE);
return e;
}
@@ -910,7 +910,7 @@ UTL_Scope::add_enum_val (AST_EnumVal *e)
return 0;
}
- e->set_added (true);
+ e->set_added (I_TRUE);
return e;
}
@@ -922,7 +922,7 @@ UTL_Scope::add_typedef (AST_Typedef *t)
return 0;
}
- t->set_added (true);
+ t->set_added (I_TRUE);
if (!t->base_type ()->added ())
{
return add_type (t->base_type ()) ? t : 0;
@@ -941,7 +941,7 @@ UTL_Scope::add_sequence (AST_Sequence *s)
return 0;
}
- s->set_added (true);
+ s->set_added (I_TRUE);
if (!s->base_type ()->added ())
{
@@ -961,7 +961,7 @@ UTL_Scope::add_string (AST_String *s)
return 0;
}
- s->set_added (true);
+ s->set_added (I_TRUE);
return s;
}
@@ -973,7 +973,7 @@ UTL_Scope::add_array (AST_Array *a)
return 0;
}
- a->set_added (true);
+ a->set_added (I_TRUE);
if (!a->base_type ()->added ())
{
@@ -993,7 +993,7 @@ UTL_Scope::add_native (AST_Native *n)
return 0;
}
- n->set_added (true);
+ n->set_added (I_TRUE);
return n;
}
@@ -1006,7 +1006,7 @@ UTL_Scope::add_factory (AST_Factory *f)
return 0;
}
- f->set_added (true);
+ f->set_added (I_TRUE);
return f;
}
@@ -1341,17 +1341,17 @@ UTL_Scope::lookup_pseudo (Identifier *e)
AST_Decl *d = 0;
UTL_ScopeActiveIterator *i = 0;
char *name_string = e->get_string ();
- bool tc_lookup = false;
- bool obj_lookup = false;
- bool vb_lookup = false;
+ idl_bool tc_lookup = I_FALSE;
+ idl_bool obj_lookup = I_FALSE;
+ idl_bool vb_lookup = I_FALSE;
if (ACE_OS::strcasecmp (name_string, "Object") == 0)
{
- obj_lookup = true;
+ obj_lookup = I_TRUE;
}
else if (ACE_OS::strcasecmp (name_string, "ValueBase") == 0)
{
- vb_lookup = true;
+ vb_lookup = I_TRUE;
}
if (obj_lookup || vb_lookup)
@@ -1374,7 +1374,7 @@ UTL_Scope::lookup_pseudo (Identifier *e)
UTL_ScopeActiveIterator (this,
UTL_Scope::IK_decls),
0);
- tc_lookup = true;
+ tc_lookup = I_TRUE;
}
else
{
@@ -1562,7 +1562,7 @@ UTL_Scope::lookup_primitive_type (AST_Expression::ExprType et)
// Look through inherited list. Overridden in AST_Interface.
AST_Decl *
UTL_Scope::look_in_inherited (UTL_ScopedName *,
- bool )
+ idl_bool )
{
return 0;
}
@@ -1570,7 +1570,7 @@ UTL_Scope::look_in_inherited (UTL_ScopedName *,
// Look through supported interface list. Overridden where necessary.
AST_Decl *
UTL_Scope::look_in_supported (UTL_ScopedName *,
- bool)
+ idl_bool)
{
return 0;
}
@@ -1600,7 +1600,7 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
Identifier *item_name = 0;
- bool in_corba =
+ idl_bool in_corba =
ACE_OS::strcmp (e->get_string (), "CORBA") == 0;
// Iterate over this scope. We need IK_both here for the legacy
@@ -1687,8 +1687,8 @@ UTL_Scope::lookup_by_name_local (Identifier *e,
// Implements lookup by name for scoped names.
AST_Decl *
UTL_Scope::lookup_by_name (UTL_ScopedName *e,
- bool treat_as_ref,
- bool in_parent)
+ idl_bool treat_as_ref,
+ idl_bool in_parent)
{
AST_Decl *d = 0;
UTL_Scope *t = 0;
@@ -1734,7 +1734,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
if (treat_as_ref && d != 0)
{
add_to_referenced (d,
- false,
+ I_FALSE,
0);
}
@@ -1755,7 +1755,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
{
// A no-op unless d can inherit.
d = look_in_inherited (e, treat_as_ref);
-
+
if (d == 0)
{
// A no-op unless d can support interfaces.
@@ -1813,7 +1813,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
&& nt != AST_Decl::NT_root)
{
s->add_to_referenced (d,
- false,
+ I_FALSE,
d->local_name ());
s = parent->defined_in ();
@@ -1858,7 +1858,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
if (treat_as_ref && d != 0)
{
add_to_referenced (d,
- false,
+ I_FALSE,
0);
}
@@ -1877,7 +1877,7 @@ UTL_Scope::lookup_by_name (UTL_ScopedName *e,
// Add a node to set of nodes referenced in this scope.
void
UTL_Scope::add_to_referenced (AST_Decl *e,
- bool recursive,
+ idl_bool recursive,
Identifier *id,
AST_Decl *ex)
{
@@ -1914,8 +1914,8 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
{
return;
}
-
- // Sets the appropriate *_seen_ flag for future use.
+
+ // Sets the appropriate *_seen_ flag for future use.
this->check_for_predef_seq (e);
// Make sure there's space for one more decl.
@@ -1954,7 +1954,7 @@ UTL_Scope::add_to_referenced (AST_Decl *e,
break;
}
}
-
+
if (this->pd_referenced_used > 0)
{
++this->pd_referenced_used;
@@ -2077,18 +2077,17 @@ UTL_Scope::add_to_scope (AST_Decl *e,
AST_Decl::NodeType new_nt = e->node_type ();
AST_Decl::NodeType scope_elem_nt = (*tmp)->node_type ();
- if (decl_name->compare (ref_name) == true
- && this->redef_clash (new_nt, scope_elem_nt) == true)
+ if (decl_name->compare (ref_name) == I_TRUE
+ && this->redef_clash (new_nt, scope_elem_nt) == I_TRUE)
{
idl_global->err ()->redef_error (decl_string,
ref_string);
- // if we try to continue from here, we risk a crash.
- ACE_OS::exit (99);
+ return;
}
// If the spellings differ only by case, it's also an error,
// unless one, but not both of the identifiers were escaped.
- else if (decl_name->case_compare_quiet (ref_name) == true
+ else if (decl_name->case_compare_quiet (ref_name) == I_TRUE
&& !(decl_name->escaped () ^ ref_name->escaped ()))
{
if (idl_global->case_diff_error ())
@@ -2096,9 +2095,7 @@ UTL_Scope::add_to_scope (AST_Decl *e,
idl_global->err ()->name_case_error (decl_string,
ref_string);
-
- // if we try to continue from here, we risk a crash.
- ACE_OS::exit (99);
+ return;
}
else
{
@@ -2120,17 +2117,14 @@ UTL_Scope::add_to_scope (AST_Decl *e,
{
Identifier *parent_name = d->local_name ();
- if (decl_name->compare (parent_name) == true)
+ if (decl_name->compare (parent_name) == I_TRUE)
{
idl_global->err ()->redef_error (
decl_name->get_string (),
parent_name->get_string ()
);
-
- // if we try to continue from here, we risk a crash.
- ACE_OS::exit (99);
}
- else if (decl_name->case_compare_quiet (parent_name) == true)
+ else if (decl_name->case_compare_quiet (parent_name) == I_TRUE)
{
if (idl_global->case_diff_error ())
{
@@ -2138,10 +2132,7 @@ UTL_Scope::add_to_scope (AST_Decl *e,
decl_name->get_string (),
parent_name->get_string ()
);
-
- // if we try to continue from here, we risk a crash.
- ACE_OS::exit (99);
- }
+ }
else
{
idl_global->err ()->name_case_warning (
@@ -2229,7 +2220,7 @@ UTL_Scope::add_to_local_types (AST_Decl *e)
}
// Has this node been referenced here before?
-bool
+idl_bool
UTL_Scope::referenced (AST_Decl *e,
Identifier *id)
{
@@ -2243,22 +2234,22 @@ UTL_Scope::referenced (AST_Decl *e,
// Same node?
if (*tmp == e)
{
- return true;
+ return I_TRUE;
}
// Are we definging a forward declared struct, union, or interface,
// or reopening a module?
- bool forward_redef = this->redef_clash (e->node_type (),
+ idl_bool forward_redef = this->redef_clash (e->node_type (),
(*tmp)->node_type ());
- if (forward_redef == false)
+ if (forward_redef == I_FALSE)
{
member = (*tmp)->local_name ();
test = e->local_name ();
- if (member->compare (test) == true)
+ if (member->compare (test) == I_TRUE)
{
- return false;
+ return I_FALSE;
}
}
}
@@ -2282,17 +2273,17 @@ UTL_Scope::referenced (AST_Decl *e,
// scope, then it's a type name for something else
// that was, and it can appear any number of times
// in this scope without a clash.
- if (id->compare (*name_tmp) == true
+ if (id->compare (*name_tmp) == I_TRUE
&& e->node_type () != AST_Decl::NT_module
&& e->defined_in () == this)
{
idl_global->err ()->redef_error (id->get_string (),
(*name_tmp)->get_string ());
- return true;
+ return I_TRUE;
}
// No clash if one or the other of the identifiers was escaped.
- else if (id->case_compare_quiet (*name_tmp) == true
+ else if (id->case_compare_quiet (*name_tmp) == I_TRUE
&& !(id->escaped () ^ (*name_tmp)->escaped ()))
{
if (idl_global->case_diff_error ())
@@ -2310,23 +2301,23 @@ UTL_Scope::referenced (AST_Decl *e,
);
}
- return true;
+ return I_TRUE;
}
}
}
// Not found
- return false;
+ return I_FALSE;
}
-bool
+idl_bool
UTL_Scope::has_prefix (void)
{
return this->has_prefix_;
}
void
-UTL_Scope::has_prefix (bool val)
+UTL_Scope::has_prefix (idl_bool val)
{
this->has_prefix_ = val;
}
@@ -2480,7 +2471,7 @@ UTL_ScopeActiveIterator::item (void)
}
// Is this iteration done?
-bool
+idl_bool
UTL_ScopeActiveIterator::is_done (void)
{
long limit =
@@ -2493,19 +2484,19 @@ UTL_ScopeActiveIterator::is_done (void)
// Last element?
if (this->il < limit)
{
- return false;
+ return I_FALSE;
}
// Only want decls?
if (this->stage == UTL_Scope::IK_decls)
{
- return true;
+ return I_TRUE;
}
// Already done local types?
if (this->ik == UTL_Scope::IK_localtypes)
{
- return true;
+ return I_TRUE;
}
// Switch to next stage.
diff --git a/TAO/TAO_IDL/util/utl_stack.cpp b/TAO/TAO_IDL/util/utl_stack.cpp
index a5b1b944b12..31a3393b7c7 100644
--- a/TAO/TAO_IDL/util/utl_stack.cpp
+++ b/TAO/TAO_IDL/util/utl_stack.cpp
@@ -68,19 +68,19 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_scope.h"
#include "global_extern.h"
-ACE_RCSID (util,
- utl_stack,
+ACE_RCSID (util,
+ utl_stack,
"$Id$")
-#undef INCREMENT
-#define INCREMENT 64
+#undef INCREMENT
+#define INCREMENT 64
UTL_ScopeStack::UTL_ScopeStack (void)
: pd_stack_data_nalloced (INCREMENT),
pd_stack_top (0)
{
ACE_NEW (this->pd_stack_data,
- UTL_Scope *[INCREMENT]);
+ UTL_Scope *[INCREMENT]);
}
UTL_ScopeStack::~UTL_ScopeStack (void)
@@ -95,7 +95,7 @@ UTL_ScopeStack::~UTL_ScopeStack (void)
UTL_ScopeStack *
UTL_ScopeStack::push (UTL_Scope *el)
{
- UTL_Scope **tmp;
+ UTL_Scope **tmp;
long ostack_data_nalloced;
long i;
@@ -187,18 +187,18 @@ UTL_ScopeStack::depth (void)
UTL_Scope *
UTL_ScopeStack::next_to_top (void)
{
- UTL_Scope *tmp, *retval;
+ UTL_Scope *tmp, *retval;
if (this->depth () < 2)
{
return 0;
}
- tmp = top (); // Save top
- (void) pop (); // Pop it
- retval = top (); // Get next one down
- (void) push (tmp); // Push top back
- return retval; // Return next one down
+ tmp = top (); // Save top
+ (void) pop (); // Pop it
+ retval = top (); // Get next one down
+ (void) push (tmp); // Push top back
+ return retval; // Return next one down
}
// Return topmost non-NULL element.
@@ -217,8 +217,8 @@ UTL_ScopeStack::top_non_null (void)
}
UTL_ScopeStackActiveIterator::UTL_ScopeStackActiveIterator (UTL_ScopeStack &s)
- : source (s),
- il (s.pd_stack_top - 1)
+ : source (s),
+ il (s.pd_stack_top - 1)
{
}
@@ -247,9 +247,9 @@ UTL_ScopeStackActiveIterator::is_done (void)
{
if (this->il >= 0)
{
- return false;
+ return I_FALSE;
}
- return true;
+ return I_TRUE;
}
diff --git a/TAO/TAO_IDL/util/utl_string.cpp b/TAO/TAO_IDL/util/utl_string.cpp
index 067f26d0820..b75a160224e 100644
--- a/TAO/TAO_IDL/util/utl_string.cpp
+++ b/TAO/TAO_IDL/util/utl_string.cpp
@@ -155,38 +155,35 @@ UTL_String::canonicalize (void)
}
// Compare two UTL_String *.
-bool
+idl_bool
UTL_String::compare (UTL_String *s)
{
char *s_c_str;
- bool result;
+ long result;
if (this->c_str == 0
|| s == 0
|| (s_c_str = s->get_canonical_rep ()) == 0)
{
- result = false;
+ result = I_FALSE;
}
else
{
result =
- (ACE_OS::strcmp (this->c_str, s_c_str) == 0) ? true : false;
+ (ACE_OS::strcmp (this->c_str, s_c_str) == 0) ? I_TRUE : I_FALSE;
}
// Check that the names are typed consistently.
- if (result == true
+ if (result == I_TRUE
&& ACE_OS::strcmp (this->p_str, s->get_string ()) != 0)
{
// Prevents redundant error reporting if we're in this branch.
- result = false;
+ result = I_FALSE;
if (idl_global->case_diff_error ())
{
idl_global->err ()->name_case_error (this->p_str,
s->get_string ());
-
- // if we try to continue from here, we risk a crash.
- ACE_OS::exit (99);
}
else
{
@@ -208,19 +205,19 @@ UTL_String::compare_quiet (UTL_String *s)
|| s == 0
|| (s_c_str = s->get_canonical_rep ()) == 0)
{
- result = false;
+ result = I_FALSE;
}
else if (ACE_OS::strcmp (this->c_str, s_c_str) != 0)
{
- result = false;
+ result = I_FALSE;
}
else if (ACE_OS::strcmp (this->p_str, s->get_string ()) != 0)
{
- result = true;
+ result = I_TRUE;
}
else
{
- result = false;
+ result = I_FALSE;
}
return result;
diff --git a/TAO/TAO_IDL/util/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_strlist.cpp
index 004c415fd5f..511dd08d277 100644
--- a/TAO/TAO_IDL/util/utl_strlist.cpp
+++ b/TAO/TAO_IDL/util/utl_strlist.cpp
@@ -68,9 +68,9 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
// NOTE: This list class only works correctly because we use single public
// inheritance, as opposed to multiple inheritance or public virtual.
-// It relies on a type-unsafe cast from UTL_List to subclasses, which
-// will cease to operate correctly if you use either multiple or
-// public virtual inheritance.
+// It relies on a type-unsafe cast from UTL_List to subclasses, which
+// will cease to operate correctly if you use either multiple or
+// public virtual inheritance.
#include "utl_strlist.h"
#include "utl_string.h"
@@ -81,11 +81,11 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "ace/OS_Memory.h"
#include "ace/OS_NS_string.h"
-ACE_RCSID (util,
- utl_strlist,
+ACE_RCSID (util,
+ utl_strlist,
"$Id$")
-UTL_StrList::UTL_StrList (UTL_String *s,
+UTL_StrList::UTL_StrList (UTL_String *s,
UTL_StrList *cdr)
: UTL_List(cdr),
pd_car_data(s)
@@ -131,14 +131,14 @@ UTL_StrList::copy (void)
if (this->tail () == 0)
{
ACE_NEW_RETURN (retval,
- UTL_StrList (head (),
+ UTL_StrList (head (),
0),
0);
}
else
{
ACE_NEW_RETURN (retval,
- UTL_StrList (head (),
+ UTL_StrList (head (),
(UTL_StrList *) this->tail ()->copy ()),
0);
}
@@ -165,10 +165,10 @@ void
UTL_StrList::dump (ACE_OSTREAM_TYPE &o)
{
char *s = 0;
- bool first = true;
- bool second = false;
+ idl_bool first = I_TRUE;
+ idl_bool second = I_FALSE;
- for (UTL_StrlistActiveIterator i (this); !i.is_done(); i.next ())
+ for (UTL_StrlistActiveIterator i (this); !i.is_done(); i.next ())
{
if (!first)
{
@@ -176,21 +176,21 @@ UTL_StrList::dump (ACE_OSTREAM_TYPE &o)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
s = i.item ()->get_string ();
o << s;
- if (first)
+ if (first)
{
if (ACE_OS::strcmp (s, "::") != 0)
{
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp
index 3f4780aa82e..becb6e8d3d1 100644
--- a/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp
+++ b/TAO/TAO_IDL/util/utl_tmpl/utl_idlist.cpp
@@ -94,10 +94,10 @@ UTL_IdList::last_component (void)
void
UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
{
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
- for (UTL_IdListActiveIterator (this); !i.is_done (); i.next ())
+ for (UTL_IdListActiveIterator (this); !i.is_done (); i.next ())
{
if (!first)
{
@@ -105,20 +105,20 @@ UTL_IdList::dump (ACE_OSTREAM_TYPE &o)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
i.item ()->dump (o);
- if (first)
+ if (first)
{
if (ACE_OS::strcmp (i.item ()->get_string (), "::") != 0)
{
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp
index 15b3abb62c6..4bdee8e19cb 100644
--- a/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp
+++ b/TAO/TAO_IDL/util/utl_tmpl/utl_list.cpp
@@ -56,9 +56,9 @@
//
// Implementation of generic single-linked lists
-#include <stddef.h>
-#include <utl_list.hh>
-#include <bool.hh>
+#include <stddef.h>
+#include <utl_list.hh>
+#include <idl_bool.hh>
ACE_RCSID(utl_tmpl, utl_list, "$Id$")
@@ -68,8 +68,8 @@ ACE_RCSID(utl_tmpl, utl_list, "$Id$")
template<class L, class T>
UTL_List<L, T>::UTL_List(T *c, L *l)
- : pd_car_data(c),
- pd_cdr_data(l)
+ : pd_car_data(c),
+ pd_cdr_data(l)
{
}
@@ -168,7 +168,7 @@ UTL_List<L, T>::length()
template<class L, class T>
UTL_ListActiveIterator<L, T>::UTL_ListActiveIterator(UTL_List<L, T> *s)
- : source(s)
+ : source(s)
{
}
@@ -185,7 +185,7 @@ template<class L, class T>
long
UTL_ListActiveIterator<L, T>::is_done()
{
- return (source == NULL) ? true : false;
+ return (source == NULL) ? I_TRUE : I_FALSE;
}
// Get current item
diff --git a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp b/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp
index 3ee0b417f08..baeeb6b0f77 100644
--- a/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp
+++ b/TAO/TAO_IDL/util/utl_tmpl/utl_strlist.cpp
@@ -93,10 +93,10 @@ UTL_StrList::dump (ACE_OSTREAM_TYPE &o)
{
char *s = 0;;
UTL_StrlistActiveIterator *i = new UTL_StrlistActiveIterator (this);
- long first = true;
- long second = false;
+ long first = I_TRUE;
+ long second = I_FALSE;
- for (UTL_StrlistActiveIterator (this); !i.is_done(); i.next ())
+ for (UTL_StrlistActiveIterator (this); !i.is_done(); i.next ())
{
if (!first)
{
@@ -104,21 +104,21 @@ UTL_StrList::dump (ACE_OSTREAM_TYPE &o)
}
else if (second)
{
- first = second = false;
+ first = second = I_FALSE;
}
s = i.item ()->get_string ();
o << s;
- if (first)
+ if (first)
{
if (ACE_OS::strcmp (s, "::") != 0)
{
- first = false;
+ first = I_FALSE;
}
else
{
- second = true;
+ second = I_TRUE;
}
}
}
diff --git a/TAO/VERSION b/TAO/VERSION
index 38ee0653141..c5420605352 100644
--- a/TAO/VERSION
+++ b/TAO/VERSION
@@ -1,4 +1,4 @@
-This is TAO version 1.5, released Sun Mar 05 11:13:13 2006.
+This is TAO version 1.4.7, released Fri Aug 05 07:49:26 2005.
If you have any problems with or questions about TAO, please send
e-mail to the TAO mailing list (tao-users@cs.wustl.edu), using the
@@ -9,4 +9,3 @@ see responses, please do one of the following:
contents "subscribe tao-users" to majordomo@cs.wustl.edu.
2) Or, monitor the comp.soft-sys.ace newsgroup for responses.
-
diff --git a/TAO/WTAOACE.mwc b/TAO/WTAOACE.mwc
new file mode 100644
index 00000000000..cbd32e17d16
--- /dev/null
+++ b/TAO/WTAOACE.mwc
@@ -0,0 +1,25 @@
+// -*- MPC -*-
+// $Id$
+
+workspace {
+ ../ace
+ ../ACEXML/common
+ ../ACEXML/parser/parser
+ ../ACEXML/apps/svcconf
+ ../Kokyu/Kokyu.mpc
+ ../protocols/ace/HTBP
+ tao
+ utils
+ orbsvcs
+ exclude {
+ ../apps/gperf/src
+ TAO_IDL
+ orbsvcs/PSS
+ orbsvcs/tests
+ orbsvcs/performance-tests
+ orbsvcs/examples
+ orbsvcs/IFR_Service
+ tao/IFR_Client.mpc
+ orbsvcs/orbsvcs/IFRService.mpc
+ }
+}
diff --git a/TAO/configure.ac b/TAO/configure.ac
index 5815139263c..57635d79f29 100644
--- a/TAO/configure.ac
+++ b/TAO/configure.ac
@@ -44,7 +44,6 @@ AC_PREREQ([2.58])
AC_CONFIG_SRCDIR([tao/TAO_Internal.cpp])
AC_CONFIG_AUX_DIR([../aux_config])
-AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_MACRO_DIR([../m4])
dnl Check what platform we are running on.
@@ -156,18 +155,16 @@ AC_SUBST([TAO_BETA])
dnl We should have --with/--enable flags for these options.
dnl Until we do, set them to reasonable defaults.
-TAO_ENABLE_MINIMUM_CORBA
AM_CONDITIONAL(TEMPLATES_REQUIRE_SOURCE, false)
-AM_CONDITIONAL(BUILD_ACE_FOR_TAO, false)
AM_CONDITIONAL(BUILD_RT_CORBA, true)
AM_CONDITIONAL(BUILD_CORBA_MESSAGING, true)
+AM_CONDITIONAL(BUILD_MINIMUM_CORBA, false)
AM_CONDITIONAL(BUILD_INTERCEPTORS, true)
AM_CONDITIONAL(BUILD_ACE_UUID, true)
AM_CONDITIONAL(BUILD_AMI, true)
AM_CONDITIONAL(BUILD_REPO, false)
AM_CONDITIONAL(BUILD_THREADS, true)
AM_CONDITIONAL(BUILD_EC_TYPED_EVENTS, true)
-AM_CONDITIONAL(BUILD_WFMO, false)
ACE_ENABLE_ACEXML
ACE_ENABLE_SSL
@@ -176,9 +173,6 @@ ACE_ENABLE_QT_REACTOR
ACE_ENABLE_TK_REACTOR
ACE_ENABLE_XT_REACTOR
-TAO_ENABLE_EXAMPLES
-TAO_ENABLE_TESTS
-
dnl
dnl SECTION 16: AC_CONFIG_FILES([FILE...])
@@ -206,6 +200,73 @@ AC_CONFIG_FILES([
docs/tutorials/Quoter/Simple/Persistent/Makefile
docs/tutorials/Quoter/Simple/Server/Makefile
docs/tutorials/Quoter/idl/Makefile
+ examples/AMH/Makefile
+ examples/AMH/Sink_Server/Makefile
+ examples/AMI/FL_Callback/Makefile
+ examples/AMI/Makefile
+ examples/Advanced/Makefile
+ examples/Advanced/ch_3/Makefile
+ examples/Buffered_AMI/Makefile
+ examples/Buffered_Oneways/Makefile
+ examples/Callback_Quoter/Makefile
+ examples/Content_Server/AMI_Iterator/Makefile
+ examples/Content_Server/AMI_Observer/Makefile
+ examples/Content_Server/Makefile
+ examples/Content_Server/SMI_Iterator/Makefile
+ examples/Event_Comm/Makefile
+ examples/Kokyu_dsrt_schedulers/Makefile
+ examples/Kokyu_dsrt_schedulers/fp_example/Makefile
+ examples/Kokyu_dsrt_schedulers/mif_example/Makefile
+ examples/Kokyu_dsrt_schedulers/muf_example/Makefile
+ examples/Load_Balancing/Makefile
+ examples/Load_Balancing_persistent/Makefile
+ examples/Logging/Makefile
+ examples/Makefile
+ examples/OBV/Makefile
+ examples/OBV/Typed_Events/Makefile
+ examples/POA/Adapter_Activator/Makefile
+ examples/POA/DSI/Makefile
+ examples/POA/Default_Servant/Makefile
+ examples/POA/Explicit_Activation/Alt_Resources/Makefile
+ examples/POA/Explicit_Activation/Makefile
+ examples/POA/FindPOA/Makefile
+ examples/POA/Forwarding/Makefile
+ examples/POA/Generic_Servant/Makefile
+ examples/POA/Loader/Makefile
+ examples/POA/Makefile
+ examples/POA/NewPOA/Makefile
+ examples/POA/On_Demand_Activation/Makefile
+ examples/POA/On_Demand_Loading/Makefile
+ examples/POA/POA_BiDir/Makefile
+ examples/POA/Reference_Counted_Servant/Makefile
+ examples/POA/RootPOA/Makefile
+ examples/POA/TIE/Makefile
+ examples/Persistent_Grid/Makefile
+ examples/PluggableUDP/Makefile
+ examples/PluggableUDP/tests/Basic/Makefile
+ examples/PluggableUDP/tests/Makefile
+ examples/PluggableUDP/tests/Performance/Makefile
+ examples/PluggableUDP/tests/SimplePerformance/Makefile
+ examples/Quoter/Makefile
+ examples/RTCORBA/Activity/Makefile
+ examples/RTCORBA/Makefile
+ examples/RTScheduling/Fixed_Priority_Scheduler/Makefile
+ examples/RTScheduling/MIF_Scheduler/Makefile
+ examples/RTScheduling/Makefile
+ examples/Simple/Makefile
+ examples/Simple/bank/Makefile
+ examples/Simple/chat/Makefile
+ examples/Simple/echo/Makefile
+ examples/Simple/grid/Makefile
+ examples/Simple/time-date/Makefile
+ examples/Simple/time/Makefile
+ examples/Simulator/Event_Supplier/Makefile
+ examples/Simulator/Makefile
+ examples/TypeCode_Creation/Makefile
+ examples/ior_corbaloc/Makefile
+ examples/mfc/Makefile
+ interop-tests/Makefile
+ interop-tests/wchar/Makefile
orbsvcs/Concurrency_Service/Makefile
orbsvcs/CosEvent_Service/Makefile
orbsvcs/Dump_Schedule/Makefile
@@ -233,311 +294,225 @@ AC_CONFIG_FILES([
orbsvcs/TAO_Service/Makefile
orbsvcs/Time_Service/Makefile
orbsvcs/Trading_Service/Makefile
+ orbsvcs/examples/CosEC/Factory/Makefile
+ orbsvcs/examples/CosEC/Makefile
+ orbsvcs/examples/CosEC/RtEC_Based/Makefile
+ orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile
+ orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile
+ orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile
+ orbsvcs/examples/CosEC/RtEC_Based/tests/Makefile
+ orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile
+ orbsvcs/examples/CosEC/Simple/Makefile
+ orbsvcs/examples/CosEC/TypedSimple/Makefile
+ orbsvcs/examples/FaultTolerance/Makefile
+ orbsvcs/examples/FaultTolerance/RolyPoly/Makefile
+ orbsvcs/examples/ImR/Advanced/Makefile
+ orbsvcs/examples/ImR/Combined_Service/Makefile
+ orbsvcs/examples/ImR/Makefile
+ orbsvcs/examples/LoadBalancing/Makefile
+ orbsvcs/examples/Log/Basic/Makefile
+ orbsvcs/examples/Log/Event/Makefile
+ orbsvcs/examples/Log/Makefile
+ orbsvcs/examples/Log/Notify/Makefile
+ orbsvcs/examples/Log/RTEvent/Makefile
+ orbsvcs/examples/Makefile
+ orbsvcs/examples/Notify/Federation/Agent/Makefile
+ orbsvcs/examples/Notify/Federation/Gate/Makefile
+ orbsvcs/examples/Notify/Federation/Makefile
+ orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile
+ orbsvcs/examples/Notify/Filter/Makefile
+ orbsvcs/examples/Notify/Lanes/Makefile
+ orbsvcs/examples/Notify/Makefile
+ orbsvcs/examples/Notify/Subscribe/Makefile
+ orbsvcs/examples/Notify/ThreadPool/Makefile
+ orbsvcs/examples/ORT/Makefile
+ orbsvcs/examples/RtEC/IIOPGateway/Makefile
+ orbsvcs/examples/RtEC/Kokyu/Makefile
+ orbsvcs/examples/RtEC/MCast/Makefile
+ orbsvcs/examples/RtEC/Makefile
+ orbsvcs/examples/RtEC/Schedule/Makefile
+ orbsvcs/examples/RtEC/Simple/Makefile
+ orbsvcs/examples/Security/Makefile
+ orbsvcs/examples/Security/Send_File/Makefile
orbsvcs/orbsvcs/Makefile
+ orbsvcs/performance-tests/LoadBalancing/LBPerf/Makefile
+ orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile
+ orbsvcs/performance-tests/LoadBalancing/Makefile
+ orbsvcs/performance-tests/Makefile
+ orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile
+ orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile
+ orbsvcs/performance-tests/RTEvent/Makefile
+ orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile
+ orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile
+ orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile
+ orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile
+ orbsvcs/performance-tests/RTEvent/lib/Makefile
+ orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile
+ orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile
+ orbsvcs/tests/AVStreams/Component_Switching/Makefile
+ orbsvcs/tests/AVStreams/Full_Profile/Makefile
+ orbsvcs/tests/AVStreams/Latency/Makefile
+ orbsvcs/tests/AVStreams/Makefile
+ orbsvcs/tests/AVStreams/Modify_QoS/Makefile
+ orbsvcs/tests/AVStreams/Multicast/Makefile
+ orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile
+ orbsvcs/tests/AVStreams/Multiple_Flows/Makefile
+ orbsvcs/tests/AVStreams/Pluggable/Makefile
+ orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile
+ orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile
+ orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile
+ orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile
+ orbsvcs/tests/BiDir_CORBALOC/Makefile
+ orbsvcs/tests/Bug_1334_Regression/Makefile
+ orbsvcs/tests/Bug_1393_Regression/Makefile
+ orbsvcs/tests/Bug_1395_Regression/Makefile
+ orbsvcs/tests/Bug_1630_Regression/Makefile
+ orbsvcs/tests/Bug_2137_Regression/Makefile
+ orbsvcs/tests/Bug_2247_Regression/Makefile
+ orbsvcs/tests/Bug_2248_Regression/Makefile
+ orbsvcs/tests/Concurrency/Makefile
+ orbsvcs/tests/CosEvent/Basic/Makefile
+ orbsvcs/tests/CosEvent/Makefile
+ orbsvcs/tests/CosEvent/lib/Makefile
+ orbsvcs/tests/EC_Custom_Marshal/Makefile
+ orbsvcs/tests/EC_MT_Mcast/Makefile
+ orbsvcs/tests/EC_Mcast/Makefile
+ orbsvcs/tests/EC_Multiple/Makefile
+ orbsvcs/tests/EC_Throughput/Makefile
+ orbsvcs/tests/Event/Basic/Makefile
+ orbsvcs/tests/Event/Makefile
+ orbsvcs/tests/Event/Mcast/Common/Makefile
+ orbsvcs/tests/Event/Mcast/Complex/Makefile
+ orbsvcs/tests/Event/Mcast/Makefile
+ orbsvcs/tests/Event/Mcast/Simple/Makefile
+ orbsvcs/tests/Event/Mcast/Two_Way/Makefile
+ orbsvcs/tests/Event/Performance/Makefile
+ orbsvcs/tests/Event/lib/Makefile
+ orbsvcs/tests/FT_App/Makefile
+ orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile
+ orbsvcs/tests/FaultTolerance/IOGR/Makefile
+ orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile
+ orbsvcs/tests/FaultTolerance/Makefile
+ orbsvcs/tests/FtRtEvent/Makefile
+ orbsvcs/tests/HTIOP/AMI/Makefile
+ orbsvcs/tests/HTIOP/BiDirectional/Makefile
+ orbsvcs/tests/HTIOP/Hello/Makefile
+ orbsvcs/tests/HTIOP/Makefile
+ orbsvcs/tests/IOR_MCast/Makefile
+ orbsvcs/tests/ImplRepo/Makefile
+ orbsvcs/tests/ImplRepo/NameService/Makefile
+ orbsvcs/tests/ImplRepo/scale/Makefile
+ orbsvcs/tests/InterfaceRepo/Application_Test/Makefile
+ orbsvcs/tests/InterfaceRepo/IDL3_Test/Makefile
+ orbsvcs/tests/InterfaceRepo/IFR_Test/Makefile
+ orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile
+ orbsvcs/tests/InterfaceRepo/Makefile
+ orbsvcs/tests/InterfaceRepo/Persistence_Test/Makefile
+ orbsvcs/tests/Interoperable_Naming/Makefile
+ orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile
+ orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile
+ orbsvcs/tests/LoadBalancing/GenericFactory/Makefile
+ orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Makefile
+ orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/Makefile
+ orbsvcs/tests/LoadBalancing/LoadMonitor/Makefile
+ orbsvcs/tests/LoadBalancing/Makefile
+ orbsvcs/tests/Log/Basic_Log_Test/Makefile
+ orbsvcs/tests/Log/Makefile
+ orbsvcs/tests/Makefile
+ orbsvcs/tests/Miop/Makefile
+ orbsvcs/tests/Miop/McastHello/Makefile
+ orbsvcs/tests/Notify/Basic/Makefile
+ orbsvcs/tests/Notify/Blocking/Makefile
+ orbsvcs/tests/Notify/Destroy/Makefile
+ orbsvcs/tests/Notify/Discarding/Makefile
+ orbsvcs/tests/Notify/Driver/Makefile
+ orbsvcs/tests/Notify/MT_Dispatching/Makefile
+ orbsvcs/tests/Notify/Makefile
+ orbsvcs/tests/Notify/Ordering/Makefile
+ orbsvcs/tests/Notify/PluggableTopology/Makefile
+ orbsvcs/tests/Notify/RT_lib/Makefile
+ orbsvcs/tests/Notify/Reconnecting/Makefile
+ orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile
+ orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile
+ orbsvcs/tests/Notify/Structured_Filter/Makefile
+ orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile
+ orbsvcs/tests/Notify/Test_Filter/Makefile
+ orbsvcs/tests/Notify/XML_Persistence/Makefile
+ orbsvcs/tests/Notify/lib/Makefile
+ orbsvcs/tests/Notify/performance-tests/Filter/Makefile
+ orbsvcs/tests/Notify/performance-tests/Makefile
+ orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile
+ orbsvcs/tests/Notify/performance-tests/Throughput/Makefile
+ orbsvcs/tests/Property/Makefile
+ orbsvcs/tests/Redundant_Naming/Makefile
+ orbsvcs/tests/Sched/Makefile
+ orbsvcs/tests/Sched_Conf/Makefile
+ orbsvcs/tests/Security/BiDirectional/Makefile
+ orbsvcs/tests/Security/Big_Request/Makefile
+ orbsvcs/tests/Security/Callback/Makefile
+ orbsvcs/tests/Security/Crash_Test/Makefile
+ orbsvcs/tests/Security/MT_IIOP_SSL/Makefile
+ orbsvcs/tests/Security/MT_SSLIOP/Makefile
+ orbsvcs/tests/Security/Makefile
+ orbsvcs/tests/Security/Secure_Invocation/Makefile
+ orbsvcs/tests/Security/ssliop_corbaloc/Makefile
+ orbsvcs/tests/Simple_Naming/Makefile
+ orbsvcs/tests/Time/Makefile
+ orbsvcs/tests/Trading/Makefile
+ orbsvcs/tests/ior_corbaname/Makefile
+ orbsvcs/tests/tests_svc_loader/Makefile
+ performance-tests/Makefile
+ performance-tests/Anyop/Makefile
+ performance-tests/Callback/Makefile
+ performance-tests/Cubit/Makefile
+ performance-tests/Cubit/TAO/Makefile
+ performance-tests/Cubit/TAO/IDL_Cubit/Makefile
+ performance-tests/Cubit/TAO/DII_Cubit/Makefile
+ performance-tests/Cubit/TAO/MT_Cubit/Makefile
+ performance-tests/Latency/Makefile
+ performance-tests/Latency/AMH_Single_Threaded/Makefile
+ performance-tests/Latency/AMI/Makefile
+ performance-tests/Latency/Collocation/Makefile
+ performance-tests/Latency/DII/Makefile
+ performance-tests/Latency/DSI/Makefile
+ performance-tests/Latency/Deferred/Makefile
+ performance-tests/Latency/Single_Threaded/Makefile
+ performance-tests/Latency/Thread_Per_Connection/Makefile
+ performance-tests/Latency/Thread_Pool/Makefile
+ performance-tests/Memory/Makefile
+ performance-tests/Memory/IORsize/Makefile
+ performance-tests/Memory/Single_Threaded/Makefile
+ performance-tests/POA/Makefile
+ performance-tests/POA/Create_Reference/Makefile
+ performance-tests/POA/Demux/Makefile
+ performance-tests/POA/Implicit_Activation/Makefile
+ performance-tests/POA/Object_Creation_And_Registration/Makefile
+ performance-tests/Pluggable/Makefile
+ performance-tests/Protocols/Makefile
+ performance-tests/RTCorba/Makefile
+ performance-tests/RTCorba/Multiple_Endpoints/Makefile
+ performance-tests/RTCorba/Multiple_Endpoints/Common/Makefile
+ performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile
+ performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile
+ performance-tests/RTCorba/Oneways/Makefile
+ performance-tests/RTCorba/Oneways/Reliable/Makefile
+ performance-tests/RTCorba/Thread_Pool/Makefile
+ performance-tests/Sequence_Latency/Makefile
+ performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile
+ performance-tests/Sequence_Latency/AMI/Makefile
+ performance-tests/Sequence_Latency/DII/Makefile
+ performance-tests/Sequence_Latency/DSI/Makefile
+ performance-tests/Sequence_Latency/Deferred/Makefile
+ performance-tests/Sequence_Latency/Single_Threaded/Makefile
+ performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile
+ performance-tests/Sequence_Latency/Thread_Pool/Makefile
+ performance-tests/Throughput/Makefile
tao/Makefile
utils/Makefile
utils/catior/Makefile
utils/nslist/Makefile
])
-if test $tao_build_examples = yes; then
- AC_CONFIG_FILES([
- examples/AMH/Makefile
- examples/AMH/Sink_Server/Makefile
- examples/AMI/FL_Callback/Makefile
- examples/AMI/Makefile
- examples/Advanced/Makefile
- examples/Advanced/ch_3/Makefile
- examples/Buffered_AMI/Makefile
- examples/Buffered_Oneways/Makefile
- examples/Callback_Quoter/Makefile
- examples/Content_Server/AMI_Iterator/Makefile
- examples/Content_Server/AMI_Observer/Makefile
- examples/Content_Server/Makefile
- examples/Content_Server/SMI_Iterator/Makefile
- examples/Event_Comm/Makefile
- examples/Kokyu_dsrt_schedulers/Makefile
- examples/Kokyu_dsrt_schedulers/fp_example/Makefile
- examples/Kokyu_dsrt_schedulers/mif_example/Makefile
- examples/Kokyu_dsrt_schedulers/muf_example/Makefile
- examples/Load_Balancing/Makefile
- examples/Load_Balancing_persistent/Makefile
- examples/Logging/Makefile
- examples/Makefile
- examples/OBV/Makefile
- examples/OBV/Typed_Events/Makefile
- examples/POA/Adapter_Activator/Makefile
- examples/POA/DSI/Makefile
- examples/POA/Default_Servant/Makefile
- examples/POA/Explicit_Activation/Alt_Resources/Makefile
- examples/POA/Explicit_Activation/Makefile
- examples/POA/FindPOA/Makefile
- examples/POA/Forwarding/Makefile
- examples/POA/Generic_Servant/Makefile
- examples/POA/Loader/Makefile
- examples/POA/Makefile
- examples/POA/NewPOA/Makefile
- examples/POA/On_Demand_Activation/Makefile
- examples/POA/On_Demand_Loading/Makefile
- examples/POA/POA_BiDir/Makefile
- examples/POA/Reference_Counted_Servant/Makefile
- examples/POA/RootPOA/Makefile
- examples/POA/TIE/Makefile
- examples/Persistent_Grid/Makefile
- examples/PluggableUDP/Makefile
- examples/PluggableUDP/tests/Basic/Makefile
- examples/PluggableUDP/tests/Makefile
- examples/PluggableUDP/tests/Performance/Makefile
- examples/PluggableUDP/tests/SimplePerformance/Makefile
- examples/Quoter/Makefile
- examples/RTCORBA/Activity/Makefile
- examples/RTCORBA/Makefile
- examples/RTScheduling/Fixed_Priority_Scheduler/Makefile
- examples/RTScheduling/MIF_Scheduler/Makefile
- examples/RTScheduling/Makefile
- examples/Simple/Makefile
- examples/Simple/bank/Makefile
- examples/Simple/chat/Makefile
- examples/Simple/echo/Makefile
- examples/Simple/grid/Makefile
- examples/Simple/time-date/Makefile
- examples/Simple/time/Makefile
- examples/Simulator/Event_Supplier/Makefile
- examples/Simulator/Makefile
- examples/TypeCode_Creation/Makefile
- examples/ior_corbaloc/Makefile
- examples/mfc/Makefile
- orbsvcs/examples/CosEC/Factory/Makefile
- orbsvcs/examples/CosEC/Makefile
- orbsvcs/examples/CosEC/RtEC_Based/Makefile
- orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile
- orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile
- orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile
- orbsvcs/examples/CosEC/RtEC_Based/tests/Makefile
- orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile
- orbsvcs/examples/CosEC/Simple/Makefile
- orbsvcs/examples/CosEC/TypedSimple/Makefile
- orbsvcs/examples/FaultTolerance/Makefile
- orbsvcs/examples/FaultTolerance/RolyPoly/Makefile
- orbsvcs/examples/ImR/Advanced/Makefile
- orbsvcs/examples/ImR/Combined_Service/Makefile
- orbsvcs/examples/ImR/Makefile
- orbsvcs/examples/LoadBalancing/Makefile
- orbsvcs/examples/Log/Basic/Makefile
- orbsvcs/examples/Log/Event/Makefile
- orbsvcs/examples/Log/Makefile
- orbsvcs/examples/Log/Notify/Makefile
- orbsvcs/examples/Log/RTEvent/Makefile
- orbsvcs/examples/Makefile
- orbsvcs/examples/Notify/Federation/Agent/Makefile
- orbsvcs/examples/Notify/Federation/Gate/Makefile
- orbsvcs/examples/Notify/Federation/Makefile
- orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile
- orbsvcs/examples/Notify/Filter/Makefile
- orbsvcs/examples/Notify/Lanes/Makefile
- orbsvcs/examples/Notify/Makefile
- orbsvcs/examples/Notify/Subscribe/Makefile
- orbsvcs/examples/Notify/ThreadPool/Makefile
- orbsvcs/examples/ORT/Makefile
- orbsvcs/examples/RtEC/IIOPGateway/Makefile
- orbsvcs/examples/RtEC/Kokyu/Makefile
- orbsvcs/examples/RtEC/MCast/Makefile
- orbsvcs/examples/RtEC/Makefile
- orbsvcs/examples/RtEC/Schedule/Makefile
- orbsvcs/examples/RtEC/Simple/Makefile
- orbsvcs/examples/Security/Makefile
- orbsvcs/examples/Security/Send_File/Makefile
- ])
-fi
-
-if test $tao_build_tests = yes; then
- AC_CONFIG_FILES([
- interop-tests/Makefile
- interop-tests/wchar/Makefile
- performance-tests/Anyop/Makefile
- performance-tests/CSD_Strategy/Makefile
- performance-tests/CSD_Strategy/TestApps/Makefile
- performance-tests/CSD_Strategy/TestInf/Makefile
- performance-tests/CSD_Strategy/TestServant/Makefile
- performance-tests/Callback/Makefile
- performance-tests/Cubit/Makefile
- performance-tests/Cubit/TAO/DII_Cubit/Makefile
- performance-tests/Cubit/TAO/IDL_Cubit/Makefile
- performance-tests/Cubit/TAO/MT_Cubit/Makefile
- performance-tests/Cubit/TAO/Makefile
- performance-tests/Latency/AMH_Single_Threaded/Makefile
- performance-tests/Latency/AMI/Makefile
- performance-tests/Latency/Collocation/Makefile
- performance-tests/Latency/DII/Makefile
- performance-tests/Latency/DSI/Makefile
- performance-tests/Latency/Deferred/Makefile
- performance-tests/Latency/Makefile
- performance-tests/Latency/Single_Threaded/Makefile
- performance-tests/Latency/Thread_Per_Connection/Makefile
- performance-tests/Latency/Thread_Pool/Makefile
- performance-tests/Makefile
- performance-tests/Memory/IORsize/Makefile
- performance-tests/Memory/Makefile
- performance-tests/Memory/Single_Threaded/Makefile
- performance-tests/POA/Create_Reference/Makefile
- performance-tests/POA/Demux/Makefile
- performance-tests/POA/Implicit_Activation/Makefile
- performance-tests/POA/Makefile
- performance-tests/POA/Object_Creation_And_Registration/Makefile
- performance-tests/Pluggable/Makefile
- performance-tests/Protocols/Makefile
- performance-tests/RTCorba/Makefile
- performance-tests/RTCorba/Multiple_Endpoints/Common/Makefile
- performance-tests/RTCorba/Multiple_Endpoints/Makefile
- performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile
- performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile
- performance-tests/RTCorba/Oneways/Makefile
- performance-tests/RTCorba/Oneways/Reliable/Makefile
- performance-tests/RTCorba/Thread_Pool/Makefile
- performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile
- performance-tests/Sequence_Latency/AMI/Makefile
- performance-tests/Sequence_Latency/DII/Makefile
- performance-tests/Sequence_Latency/DSI/Makefile
- performance-tests/Sequence_Latency/Deferred/Makefile
- performance-tests/Sequence_Latency/Makefile
- performance-tests/Sequence_Latency/Single_Threaded/Makefile
- performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile
- performance-tests/Sequence_Latency/Thread_Pool/Makefile
- performance-tests/Throughput/Makefile
- orbsvcs/performance-tests/LoadBalancing/LBPerf/Makefile
- orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile
- orbsvcs/performance-tests/LoadBalancing/Makefile
- orbsvcs/performance-tests/Makefile
- orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile
- orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile
- orbsvcs/performance-tests/RTEvent/Makefile
- orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile
- orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile
- orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile
- orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile
- orbsvcs/performance-tests/RTEvent/lib/Makefile
- orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile
- orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile
- orbsvcs/tests/AVStreams/Component_Switching/Makefile
- orbsvcs/tests/AVStreams/Full_Profile/Makefile
- orbsvcs/tests/AVStreams/Latency/Makefile
- orbsvcs/tests/AVStreams/Makefile
- orbsvcs/tests/AVStreams/Modify_QoS/Makefile
- orbsvcs/tests/AVStreams/Multicast/Makefile
- orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile
- orbsvcs/tests/AVStreams/Multiple_Flows/Makefile
- orbsvcs/tests/AVStreams/Pluggable/Makefile
- orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile
- orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile
- orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile
- orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile
- orbsvcs/tests/BiDir_CORBALOC/Makefile
- orbsvcs/tests/Bug_1334_Regression/Makefile
- orbsvcs/tests/Bug_1393_Regression/Makefile
- orbsvcs/tests/Bug_1395_Regression/Makefile
- orbsvcs/tests/Bug_1630_Regression/Makefile
- orbsvcs/tests/Bug_2074_Regression/Makefile
- orbsvcs/tests/Bug_2137_Regression/Makefile
- orbsvcs/tests/Bug_2247_Regression/Makefile
- orbsvcs/tests/Bug_2248_Regression/Makefile
- orbsvcs/tests/Bug_2285_Regression/Makefile
- orbsvcs/tests/Bug_2287_Regression/Makefile
- orbsvcs/tests/Bug_2316_Regression/Makefile
- orbsvcs/tests/Concurrency/Makefile
- orbsvcs/tests/CosEvent/Basic/Makefile
- orbsvcs/tests/CosEvent/Makefile
- orbsvcs/tests/CosEvent/lib/Makefile
- orbsvcs/tests/EC_Custom_Marshal/Makefile
- orbsvcs/tests/EC_MT_Mcast/Makefile
- orbsvcs/tests/EC_Mcast/Makefile
- orbsvcs/tests/EC_Multiple/Makefile
- orbsvcs/tests/EC_Throughput/Makefile
- orbsvcs/tests/Event/Basic/Makefile
- orbsvcs/tests/Event/Makefile
- orbsvcs/tests/Event/Mcast/Common/Makefile
- orbsvcs/tests/Event/Mcast/Complex/Makefile
- orbsvcs/tests/Event/Mcast/Makefile
- orbsvcs/tests/Event/Mcast/Simple/Makefile
- orbsvcs/tests/Event/Mcast/Two_Way/Makefile
- orbsvcs/tests/Event/Performance/Makefile
- orbsvcs/tests/Event/lib/Makefile
- orbsvcs/tests/FT_App/Makefile
- orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile
- orbsvcs/tests/FaultTolerance/IOGR/Makefile
- orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile
- orbsvcs/tests/FaultTolerance/Makefile
- orbsvcs/tests/FtRtEvent/Makefile
- orbsvcs/tests/HTIOP/AMI/Makefile
- orbsvcs/tests/HTIOP/BiDirectional/Makefile
- orbsvcs/tests/HTIOP/Hello/Makefile
- orbsvcs/tests/HTIOP/Makefile
- orbsvcs/tests/IOR_MCast/Makefile
- orbsvcs/tests/ImplRepo/Makefile
- orbsvcs/tests/ImplRepo/NameService/Makefile
- orbsvcs/tests/ImplRepo/scale/Makefile
- orbsvcs/tests/InterfaceRepo/Application_Test/Makefile
- orbsvcs/tests/InterfaceRepo/IDL3_Test/Makefile
- orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/Makefile
- orbsvcs/tests/InterfaceRepo/IFR_Test/Makefile
- orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile
- orbsvcs/tests/InterfaceRepo/Makefile
- orbsvcs/tests/InterfaceRepo/Persistence_Test/Makefile
- orbsvcs/tests/Interoperable_Naming/Makefile
- orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile
- orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile
- orbsvcs/tests/LoadBalancing/GenericFactory/Makefile
- orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/Makefile
- orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/Makefile
- orbsvcs/tests/LoadBalancing/LoadMonitor/Makefile
- orbsvcs/tests/LoadBalancing/Makefile
- orbsvcs/tests/Log/Basic_Log_Test/Makefile
- orbsvcs/tests/Log/Makefile
- orbsvcs/tests/Makefile
- orbsvcs/tests/Miop/Makefile
- orbsvcs/tests/Miop/McastHello/Makefile
- orbsvcs/tests/Notify/Basic/Makefile
- orbsvcs/tests/Notify/Blocking/Makefile
- orbsvcs/tests/Notify/Destroy/Makefile
- orbsvcs/tests/Notify/Discarding/Makefile
- orbsvcs/tests/Notify/Driver/Makefile
- orbsvcs/tests/Notify/MT_Dispatching/Makefile
- orbsvcs/tests/Notify/Makefile
- orbsvcs/tests/Notify/Ordering/Makefile
- orbsvcs/tests/Notify/PluggableTopology/Makefile
- orbsvcs/tests/Notify/RT_lib/Makefile
- orbsvcs/tests/Notify/Reconnecting/Makefile
- orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile
- orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile
- orbsvcs/tests/Notify/Structured_Filter/Makefile
- orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile
- orbsvcs/tests/Notify/Test_Filter/Makefile
- orbsvcs/tests/Notify/XML_Persistence/Makefile
- orbsvcs/tests/Notify/lib/Makefile
- orbsvcs/tests/Notify/performance-tests/Filter/Makefile
- orbsvcs/tests/Notify/performance-tests/Makefile
- orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile
- orbsvcs/tests/Notify/performance-tests/Throughput/Makefile
- orbsvcs/tests/Property/Makefile
- orbsvcs/tests/Redundant_Naming/Makefile
- orbsvcs/tests/Sched/Makefile
- orbsvcs/tests/Sched_Conf/Makefile
- orbsvcs/tests/Security/BiDirectional/Makefile
- orbsvcs/tests/Security/Big_Request/Makefile
- orbsvcs/tests/Security/Callback/Makefile
- orbsvcs/tests/Security/Crash_Test/Makefile
- orbsvcs/tests/Security/MT_IIOP_SSL/Makefile
- orbsvcs/tests/Security/MT_SSLIOP/Makefile
- orbsvcs/tests/Security/Makefile
- orbsvcs/tests/Security/Secure_Invocation/Makefile
- orbsvcs/tests/Security/ssliop_corbaloc/Makefile
- orbsvcs/tests/Simple_Naming/Makefile
- orbsvcs/tests/Time/Makefile
- orbsvcs/tests/Trading/Makefile
- orbsvcs/tests/ior_corbaname/Makefile
- orbsvcs/tests/tests_svc_loader/Makefile
- ])
-fi
-
dnl Note that the "TAO_VERSION" in the message below is an M4 macro
dnl that expands to the version of TAO being configured.
AC_CONFIG_COMMANDS([default],[
diff --git a/TAO/docs/INS.html b/TAO/docs/INS.html
index 38d924cb9de..62533e9fce7 100644
--- a/TAO/docs/INS.html
+++ b/TAO/docs/INS.html
@@ -47,7 +47,7 @@ multicast to resolve the service. <P>
The Naming Service process acts as an IIOP Agent to respond with the
IOR for the given service name. If the service being resolved is the
Naming Service or the Trading Service, TAO checks the appropriate <A
-HREF="Options.html#EV">environment variables</A> prior to using
+HREF="Options.html#ev">environment variables</A> prior to using
multicast to obtain the appropriate port number or IOR.<p>
The following diagram illustrates the order in which these various
diff --git a/TAO/docs/ORBEndpoint.html b/TAO/docs/ORBEndpoint.html
index 894192e0a1e..9879190f110 100644
--- a/TAO/docs/ORBEndpoint.html
+++ b/TAO/docs/ORBEndpoint.html
@@ -401,7 +401,7 @@
<BLOCKQUOTE>
<P>
<CODE>
- -ORBInitRef MyService=corbaloc:shmiop:1.1@hostname:port/service_name
+ -ORBInitRef MyService=shmiop://1.1@hostname:port/service_name
</CODE>
</BLOCKQUOTE>
diff --git a/TAO/docs/Options.html b/TAO/docs/Options.html
index 57af57ec155..a957abe042f 100644
--- a/TAO/docs/Options.html
+++ b/TAO/docs/Options.html
@@ -201,7 +201,7 @@ same host:
% NameService.exe -ORBEndpoint iiop://localhost:12345
</code></p>
<p><code>
-% client.exe -ORBInitRef NameService=corbaloc:iiop:localhost:12345/NameService
+% client.exe -ORBInitRef NameService=iiop://localhost:12345
</code></p>
<p>An explanation of these command-line options appears below. </p>
<p></p>
@@ -409,7 +409,8 @@ preferences over normal I/O, thereby causing priority inversion.</p>
</td>
</tr>
<tr>
- <td><code>-ORBDisableRTCollocation</code> <em>boolean (0|1)</em></td> <td><a name="-ORBDisableRTCollocation"></a>This
+ <td><code>-ORBDisableRTCollocation</code> <em>boolean
+ (0|1)</em></td> <td><a name="-ORBDisableRTCollocation"></a>This
option controls whether the application wants to use or discard
RT collocation decisions made by the RT ORB. A value of
<CODE>1</CODE> (true) disables RT collocation decisions and falls back on the default
@@ -419,24 +420,6 @@ preferences over normal I/O, thereby causing priority inversion.</p>
decisions for better performance. The default value is
<code>0</code> (false). </td>
</tr>
- <tr>
- <td><code>-ORBUseLocalMemoryPool</code> <em>boolean (0|1)</em></td>
- <td><a name="-ORBUseLocalMemoryPool"></a>TAO can use a local memory pool
- to satisfy some of its needs for heap storage, as it is often more
- efficient than using the platform's default memory allocator. The local
- pool will always grow as large as necessary to satisfy memory allocations,
- but it will never shrink. This means that sometimes a process can retain
- memory that it no longer needs. If the default allocator is used then
- TAO gives memory back as soon as it is not needed which allows for better
- resource sharing at the expense of memory deallocation time.
- <p>If this option is disabled (<code>0</code>), the ORB will use the
- default allocator for the platform.</p>
- <p>If this option is enabled (<code>1</code>), the orb will use the
- local memory pool.</p>
- <p> This option defaults to the compile-time option specified by
- <code>TAO_USES_LOCAL_MEMORY_POOL</code>.</p>
- </td>
- </tr>
</tbody>
</table>
</p>
@@ -515,25 +498,16 @@ is <code>0</code>. This option is disabled (<code>0</code>) by default.</td>
</tr>
<tr>
<td><code>-ORBEnforcePreferredInterfaces</code>
- <em>boolean (0|1)</em></td>
- <td><a name="-ORBEnforcePreferredInterfaces"></a> If this
- option is set to <CODE>1</CODE> (true), then TAO will only try to use the
- interfaces specified by the <CODE>-ORBPreferredInterfaces</CODE> option.
- The default is <CODE>0</CODE> (false), in which case if a connection
- cannot be made using a preferred interface, TAO will
- attempt to use the default interface (<CODE>INADDR_ANY</CODE>).
- Note: If none of the preferred interfaces apply to an outgoing connection
- then they will not be enforced. For this option to have
- any effect, therefore, the connection through a legal preferred interface must fail.
+ <em>Yes/No</em></td>
+ <td><a name="-ORBEnforcePreferredInterfaces"></a> If this option is specified, then TAO will only try to use the interfaces
+ specified by the -ORBPreferredInterfaces option. By default, if a connection
+ cannot be made using a preferred interface, then TAO will attempt to use
+ the default interface. (INADDR_ANY)
+ Note : If none of the preferred interfaces apply to an outgoing connection
+ then they will not be enforced. Therefore, for this option to have any effect,
+ the connection through a legal preferred interface must fail.
</tr>
<tr>
- <td><code>-ORBKeepalive</code> <em>boolean (0|1)</em></td>
- <td><a name="-ORBKeepalive"></a>This option allows users to
- specify that the SO_KEEPALIVE option is set on TCP sockets.
- The default is <code>0</code> (false).
- </td>
- </tr>
- <tr>
<td><code>-ORBLingerTimeout</code> <em>timeout</em></td>
<td><a name="-ORBLingerTimeout"></a> This option allows users to
set the linger timeout on a TCP socket before closing it. Hence,
@@ -701,21 +675,21 @@ is set. The default is true. </td>
</td>
</tr>
<tr>
- <td><code>-ORBPreferIPV6Interfaces</code> <em>boolean (0|1)</em></td>
+ <td><code>-ORBPreferIPV6Interfaces</code> <em>Yes/No</em></td>
<td><a name="-ORBPreferIPV6Interfaces"></a>
- If option is <CODE>1</CODE> (true) it directs the default
- endpoint selector for client connections to first attempt to
- connect any IIOP endpoints from a provided IOR specifying
- IPv6 interfaces. Only when none of these can be found or sucessfully connected IPv4
- interfaces will be tried. The default is <CODE>0</CODE> (false).
+ This option directs the default endpoint selector for client connections
+ to first attempt to connect any IIOP endpoints from a provided IOR specifying
+ IPv6 interfaces.
+ Only when none of these can be found or sucessfully connected IPv4
+ interfaces will be tried.
<p>
- This option is only available for IPv6 enabled builds of TAO (<CODE>ACE_HAS_IPV6</CODE>).
+ This option is only available for IPv6 enabled builds of TAO (ACE_HAS_IPV6).
</td>
</tr>
<tr>
- <td><code>-ORBConnectIPV6Only</code> <em>boolean (0|1)</em></td>
+ <td><code>-ORBConnectIPV6Only</code> <em>Yes/No</em></td>
<td><a name="-ORBConnectIPV6Only"></a>
- If this option is <CODE>1</CODE> (true) it directs a server ORB to:<br><p>
+ This option directs a server ORB to:<br><p>
<li>allow only IPv6 interfaces as listening endpoints</li>
<li>encode only IPv6 interfaces in the IOR profile</li>
<li>prevent (depending on availability of IPV6_V6ONLY socket option)
@@ -723,8 +697,8 @@ is set. The default is true. </td>
<p>
This option directs the default endpoint selector for client connections
to only attempt to connect any IIOP endpoints from a provided IOR specifying
- IPv6 interfaces. Any available IPv4 interfaces will be
- ignored. The default setting is <CODE>0</CODE> (false).
+ IPv6 interfaces.
+ Any available IPv4 interfaces will be ignored.
<p>
This option is only available for IPv6 enabled builds of TAO (ACE_HAS_IPV6).
</td>
@@ -920,7 +894,7 @@ can improve performance by reducing the number of kernel level locks. </td>
<td><code>-ORBProtocolFactory</code> <em>factory</em></td>
<td><a name="-ORBProtocolFactory"></a>Specify which pluggable
protocol factory to load. By default, only the factory for the IIOP
-protocol (<code>IIOP_Factory</code>) is loaded.
+protocol (<code>IIOP_Factory</code> is loaded.
<p>For example, if some protocol called <em><code>Foo</code></em>
whose factory was called <em><code>Foo_Factory</code></em> was
available, then it could be loaded into TAO by specifying <code>-ORBProtocolFactory
@@ -1025,7 +999,7 @@ until all the data is sent.
</td>
</tr>
<tr>
- <td><code>-ORBDropRepliesDuringShutdown</code> <em>boolean (0|1)</em></td>
+ <td><code>-ORBDropRepliesDuringShutdown</code> <em>0|1</em></td>
<td><a name="-ORBDropRepliesDuringShutdown"></a> Strategy to
make the ORB wait for replies to show up even if the ORB is
shutdown. The default is to drop replies. For example, clients
@@ -1387,8 +1361,7 @@ instead of waiting in the Reactor using the Leader/Followers
pattern. The <em>RW</em> strategy only works when the application
does not have to worry about new request showing up when waiting for a
response. Further, this strategy cannot be used with Asynchronous
-Method Invocation (AMI) calls and when using BiDIR GIOP.
-Therefore, this strategy is appropriate
+Method Invocation (AMI) calls. Therefore, this strategy is appropriate
only for "pure" synchronous clients. Note that applications that
require nested upcalls are not "pure" synchronous clients. Also note that this
strategy will only affect two way calls, since there is no waiting for
@@ -1409,32 +1382,6 @@ I'm not sure what the affect of AMI on this option is.
<p>Default for this option is <em>MT</em>. </p>
</td>
</tr>
-
- <tr>
- <td><code>-ORBConnectionHandlerCleanup</code> <em>0 | 1</em><br>
- </td>
- <td><a name="-ORBConnectionHandlerCleanup"></a>Setting this
- option to <em>1</em> lets the ORB know that connection
- handlers setup for sending messages need to be cleaned up
- when errors occur. This option has an effect only for
- <em> -ORBClientConnectionHandler RW </em>. Rest of the
- options for <em> -ORBCleintConnectionHandler </em> have been
- automatically set up for cleaning the connection
- handlers. Setting the option to <em> 1 </em> has a side
- effect of registering and unregistering the connection
- handlers with the Reactor for every invocation, which has a
- negative impact on performance. Setting the option to <em> 0
- </em> prevents this performance impact but leads to problems
- outlined
- <A
- href="http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2186">
- here</A> and <a
- href="http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2224">
- here</A>
- <p>Default for this option is <em>0</em>. </p>
- </td>
- </tr>
-
<tr>
<td><code>-ORBTransportMuxStrategy</code> <em>EXCLUSIVE | MUXED</em></td>
<td><a name="ORBTransportMuxStrategy"></a><em>EXCLUSIVE</em>
diff --git a/TAO/docs/Security/SSLIOP-INSTALL.html b/TAO/docs/Security/SSLIOP-INSTALL.html
index b2e5dae3dd4..04868995bcf 100644
--- a/TAO/docs/Security/SSLIOP-INSTALL.html
+++ b/TAO/docs/Security/SSLIOP-INSTALL.html
@@ -17,10 +17,7 @@
<p>The first step for all platforms is to build and install the <A HREF="http://www.openssl.org/">OpenSSL</A>
distribution. Then the TAO SSLIOP pluggable protocol library must be built according
to the instructions below. Refer to the <a href="SSLIOP.html">TAO SSLIOP usage
- instructions</a> for details about how to use the SSLIOP pluggable protocol.
- See the <a href="../../../ACE-INSTALL.html#sslinstall">ACE
- installation notes</A> for how to build ACE_SSL after you have build OpenSSL.
-</p>
+ instructions</a> for details about how to use the SSLIOP pluggable protocol.</p>
<h3>UNIX</h3>
<OL>
<LI>Make sure the OpenSSL header file directory is in your compiler's include
@@ -46,8 +43,8 @@
</table>
<br>
- <LI>Build ACE and TAO as described in the <A HREF="../../../ACE-INSTALL.html">ACE
- installation</A> instructions and the <A HREF="../../../TAO/TAO-INSTALL.html">TAO
+ <LI>Build ACE and TAO as described in the <A HREF="http://cvs.doc.wustl.edu/viewcvs.cgi/*checkout*//ACE-INSTALL.html?rev=HEAD&content-type=text/html">ACE
+ installation</A> instructions and the <A HREF="http://cvs.doc.wustl.edu/viewcvs.cgi/*checkout*/TAO/TAO-INSTALL.html?rev=HEAD&content-type=text/html">TAO
installation</A> instructions, respectively. When building ACE and TAO, add
&quot;<font face="Courier New, Courier, mono">ssl=1</font>&quot; to your <font face="Courier New, Courier, mono">make</font>
command line invocation, or add it to your <font face="Courier New, Courier, mono">platform_macros.GNU</font>
@@ -65,8 +62,8 @@
<li>Set the OpenSSL library directory path under the <b><i>Directories</i></b>
tab - <i><b>Library Files</b></i> setting in the <i><b>Tools-&gt;Options</b></i>
dialog. A typical value would be something like: <code>openssl-0.9.6\out32dll</code></li>
- <li>Open the <code>TAOACE.dsw</code> workspace, and refer to the <a href="../../../ACE-INSTALL.html">ACE
- installation</a> and the <a href="../../../TAO/TAO-INSTALL.html">TAO
+ <li>Open the <code>TAOACE.dsw</code> workspace, and refer to the <a href="http://cvs.doc.wustl.edu/viewcvs.cgi/*checkout*//ACE-INSTALL.html?rev=HEAD&content-type=text/html">ACE
+ installation</a> and the <a href="http://cvs.doc.wustl.edu/viewcvs.cgi/*checkout*/TAO/TAO-INSTALL.html?rev=HEAD&content-type=text/html">TAO
installation</a> instructions for details on creating a <code>config.h</code>
configuration header for this platform. Once the config.h file has been created,
build <code>SSLIOP</code> project. All project dependencies are already set,
@@ -94,6 +91,7 @@
<code>SSL_ROOT</code> environment variable to point to the
location of OpenSSL. For example:
<p><code>set SSL_ROOT=c:\openssl-0.9.6h</code>
+ <p>Now build ACE+TAO as normal.
</ol>
<p>&nbsp;</p>
diff --git a/TAO/docs/Smart_Proxies.html b/TAO/docs/Smart_Proxies.html
index c29a03ac88f..a2106a2af45 100644
--- a/TAO/docs/Smart_Proxies.html
+++ b/TAO/docs/Smart_Proxies.html
@@ -274,7 +274,7 @@ protected:
};
-// ----------------- User Implementation Begins here----------------
+// ----------------- User Implemenatation Begins here----------------
// Note: This has to be implemented by the user
class SmartFactory : public TAO_Default_Proxy_Factory
diff --git a/TAO/docs/TAO-metrics.html b/TAO/docs/TAO-metrics.html
index d35912ae7f9..ad4d79f904a 100644
--- a/TAO/docs/TAO-metrics.html
+++ b/TAO/docs/TAO-metrics.html
@@ -12,7 +12,7 @@ bgcolor="#ffffff">
<HR>
<H3> TAO (ACE ORB) Performance Metrics</H3>
-<A HREf="http://www.dre.vanderbilt.edu/TAO">TAO</A>'s
+<A HREf="http://www.dre/vanderbilt.edu/TAO">TAO</A>'s
efficiency, scalability, and predictability have been measured on many
different real-time operating systems with different features. Here
are some pointers to obtain more information on the evaluation and
diff --git a/TAO/docs/TAO-tutorials.html b/TAO/docs/TAO-tutorials.html
index 2b680c10fba..f63bb7b0e2f 100644
--- a/TAO/docs/TAO-tutorials.html
+++ b/TAO/docs/TAO-tutorials.html
@@ -18,12 +18,15 @@
HREF="tutorials/Quoter/">Quoter
tutorial</A> <P>
-<DT> <img alt="o" src="http://www.cs.wustl.edu/~schmidt/gifs/misc/redball.gif"> There
-are several <A HREF="http://www.theaceorb.com/downloads/1.4a/index.html">documents</A> from <A
+<DT> <img alt="o" src="http://www.cs.wustl.edu/~schmidt/gifs/misc/redball.gif"> This
+ document is a PDF version of <A
+HREF="http://download.ociweb.com/tao_dev_guide_getting_started.pdf">chapter 3</A> from <A
HREF="http://www.theaceorb.com/">OCI</A>'s <A
HREF="http://www.theaceorb.com/product/">TAO
-Developer's Guide</A> that describe the process of building and running a simple client and
- server using TAO and MPC. <P>
+Developer's Guide</A>. It
+ details the process of building and running a simple client and
+ server using TAO.
+</A> <P>
<DT> <img alt="o" src="http://www.cs.wustl.edu/~schmidt/gifs/misc/redball.gif">
Additional tutorials are available in the <A
diff --git a/TAO/docs/compiler.html b/TAO/docs/compiler.html
index 48444ea81c5..e30da68326f 100644
--- a/TAO/docs/compiler.html
+++ b/TAO/docs/compiler.html
@@ -17,14 +17,14 @@ TAO IDL Compiler User's Guide</h3>
<h3> Scope</h3> This document describes the options and features of
TAO IDL compiler. It is not a reference manual or tutorial on OMG
IDL. For more information on OMG IDL see the <A
-HREF="http://www.omg.org/technology/documents/corba_spec_catalog.htm">
-online CORBA specification</A> and the <A
+HREF="http://cgi.omg.org/library/c2indx.html">online CORBA
+specification</A> and the <A
HREF="http://www.triodia.com/staff/michi-henning.html">Advanced CORBA
Programming with C++</A> book. More information on the design of
TAO's IDL compiler is also available <A
HREF="http://www.cs.wustl.edu/~schmidt/PDF/ami1.pdf">online</A>.
Finally, comprehensive documentation on TAO's IDL compiler is
-available in the OCI <A HREF="http://www.theaceorb.com/product/index.html">TAO
+available in the OCI <A HREF="http://www.theaceorb.com/product/">TAO
Developer's Guide</A>.<P>
<HR><P>
@@ -165,17 +165,6 @@ Note that if you can't use perfect hashing for some reason the next
best operation demuxing strategy is binary search, which can be
configured using TAO's IDL compiler <A HREF="#options">options</A>.<P>
-<HR><P>
-<h3>AMI support</h3>
-
-By default the TAO_IDL compiler generates AMI stubs and skeletons as
-described in the CORBA 3.0.3 specification. If you want to use the
-old deprecated AMI support, add the following line to your
-<code>config.h</code> file and rebuild the core TAO libs and
-the TAO_IDL compiler.</p>
-<p>
-<code>#define TAO_HAS_DEPRECATED_EXCEPTION_HOLDER</code>
-
<hr><p>
<h3><a name="collocation-stubs">Collocation Strategies</a></h3>
@@ -283,7 +272,7 @@ also receives other options that are specific to it.<p>
<td><tt>anyop_export_macro=</tt><i>macro_name</i></td>
<td>The compiler will emit <i>macro_name</i> before each Any operator
- or <tt>extern</tt> typecode declaration in the generated stub code,
+ or <tt>extern</tt> typecode declaration in the generated stub code,
this is needed for Windows, which requires special directives to
export symbols from DLLs, usually the definition is just a
space on unix platforms. This option works only in conjuction with
@@ -298,7 +287,7 @@ also receives other options that are specific to it.<p>
<td>The compiler will generate code to include <i>include_path</i> at the
top of the anyop file header, this is usually a good place to define the export
- macro. This option works in conjuction with the -GA option, which generates Any
+ macro. This option works in conjuction with the -GA option, which generates Any
operators and typecodes into a separate set of files.</td>
</tr>
@@ -323,7 +312,7 @@ also receives other options that are specific to it.<p>
<td>This option has the same effect as specifying<br>
<tt>-Wb,stub_export_include=</tt><i>include_path</i><br>
<tt>-Wb,skel_export_include=</tt><i>include_path</i><br>
- <tt>-Wb,anyop_export_include=</tt><i>include_path</i>.<br>
+ <tt>-Wb,anyop_export_include=</tt><i>include_path</i>.<br>
This option goes with the previous option to build DLL containing
both stubs and skeletons.</td>
</tr>
@@ -620,20 +609,17 @@ also receives other options that are specific to it.<p>
<tr><a name="Ge flag">
<td><tt>-Ge </tt><i>flag</i></td>
- <td>If the value of the flag is 0, operations generated from application IDL will
- use native C++ exceptions. If the value of the flag is 1, such operations will
- use the <CODE>CORBA::Environment</CODE> variable for passing exceptions. If the
- value of the flag is 2, the C++ 'throw' keyword will be used in place of
- ACE_THROW_SPEC, ACE_THROW, and ACE_RETHROW (ACE_THROW_RETURN and
- TAO_INTERCEPTOR_THROW will still be used). This flag value will also disable
- the generation of environment variables in argument lists for all generated
- operations, including base class overrides not defined in application IDL.</td>
- <td>As of TAO 1.5, support for emulated exceptions is in the process of being
- dropped. The environment variable macros are still present in ORB code and in
- generated code, but they now expand to nothing and are no longer maintained.
- Soon they will be removed altogether, and at that point, no throw, throw spec,
- or environment macros will be generated by the IDL compiler, regardless of the
- value of the -Ge flag.</td>
+
+ <td>If the value of the flag is 0, tao_idl will generate code that
+ will use native C++ exceptions. If the value of the flag is 1,
+ tao_idl will generate code that will use the <CODE>CORBA::Environment</CODE> variable for
+ passing exceptions. If the value of the flag is 2, the C++ 'throw' keyword will be used
+ in place of ACE_THROW_SPEC, ACE_THROW, and ACE_RETHROW (ACE_THROW_RETURN and
+ TAO_INTERCEPTOR_THROW will still be used). The default depends on how TAO_IDL
+ has been built. If TAO_IDL is built with native exceptions enabled, the IDL
+ compiler will not generate the emulated exception macros. If IDL compiler is
+ built with native exceptions disabled, macros would be generated by default. </td>
+ <td>&nbsp;</td>
</tr>
<tr><a name="Gp">
@@ -678,9 +664,9 @@ also receives other options that are specific to it.<p>
<td>Generate uninlined constant if defined in a module</td>
<td>Inlined (assigned a value in the C++ header file) by default, but this causes a
- problem with some compilers when using pre-compiled headers. Constants declared
- at global scope are always generated inline, while those declared in an interface
- or a valuetype never are - neither case is affected by this option.</td>
+ problem with some compilers when using pre-compiled headers. Constants declared
+ at global scope are always generated inline, while those declared in an interface
+ or a valuetype never are - neither case is affected by this option.</td>
</tr>
<tr>
diff --git a/TAO/docs/configurations.html b/TAO/docs/configurations.html
index 1938d361c18..735643e1fb5 100644
--- a/TAO/docs/configurations.html
+++ b/TAO/docs/configurations.html
@@ -262,7 +262,7 @@ Roadmap</h3>
</ol><p>
Please see the <code><a
- href="../orbsvcs/orbsvcs/GNUMakefile">ORBSVCS
+ href="../orbsvcs/orbsvcs/Makefile">ORBSVCS
Makefile</a></code> for the default setting of
<code>TAO_ORBSVCS</code>.<p>
diff --git a/TAO/docs/libraries.html b/TAO/docs/libraries.html
index 26ddf36c89e..c172809bc82 100644
--- a/TAO/docs/libraries.html
+++ b/TAO/docs/libraries.html
@@ -246,21 +246,6 @@ and the dependencies outlined below are the same. <P>
this library </td>
<td>valuetype.mpb</td>
</tr>
- <tr align=left>
- <th>libTAO_CSD_Framework.so</th>
- <td>Support framework for Custom Servant Dispatching (CSD) feature. The CSD_ThreadPool
- depends on this library</td>
- <td>csd_framework.mpb</td>
- </tr>
- <tr align=left>
- <th>libTAO_CSD_ThreadPool.so</th>
- <td>Support for ThreadPool Custom Servant Dispatching (CSD) Strategy. This library can
- be loaded statically or dynamically. Applications are required to
- <code> #include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
- </code> for static loading and provide service configuration file for dynamic loading.
- </td>
- <td>csd_threadpool.mpb</td>
- </tr>
</tr>
</table>
diff --git a/TAO/docs/pluggable_messaging.html b/TAO/docs/pluggable_messaging.html
index dd3d37b184a..e1d222fd2c1 100644
--- a/TAO/docs/pluggable_messaging.html
+++ b/TAO/docs/pluggable_messaging.html
@@ -59,14 +59,8 @@
mapped on to TCP/IP he would load IIOP_Lite using the
svc.conf file. The format is given below </P>
- <P><code>dynamic IIOP_Lite_Factory Service_Object * TAO:_make_TAO_IIOP_Lite_Protocol_Factory() ""</code></P>
- <P><code>static Resource_Factory "-ORBProtocolFactory IIOP_Lite_Factory". </code></P>
-
- <P>At the moment the TAO Strategies library is used the
- svc.conf file should contain: </P>
-
- <P><code>dynamic IIOP_Lite_Factory Service_Object * TAO:_make_TAO_IIOP_Lite_Protocol_Factory() ""</code></P>
- <P><code>static Advanced_Resource_Factory "-ORBProtocolFactory IIOP_Lite_Factory". </code></P>
+ <P>dynamic IIOP_Lite_Factory Service_Object * TAO:_make_TAO_IIOP_Lite_Protocol_Factory() ""</P>
+ <P>static Resource_Factory "-ORBProtocolFactory IIOP_Lite_Factory". </P>
<P>Please see the documentation of the pluggable protocol
framework for exact meaning of the above syntax. The same
diff --git a/TAO/docs/pluggable_protocols/index.html b/TAO/docs/pluggable_protocols/index.html
index 21fc5208a62..9eedd2329d7 100644
--- a/TAO/docs/pluggable_protocols/index.html
+++ b/TAO/docs/pluggable_protocols/index.html
@@ -374,7 +374,7 @@ object, hiding the transport- and strategy-specific details of the acceptor.
<P>
TAO's <TT>Acceptor</TT> interface, shown below, is declared in the file
-<TT>&lt;<A HREF="../../tao/Transport_Acceptor.h">tao/Transport_Acceptor.h</A>&gt;</TT>.
+<TT>&lt;<A HREF="../../tao/Pluggable.h">tao/Pluggable.h</A>&gt;</TT>.
All <TT>Acceptor</TT> implementations must inherit from the <TT>TAO_Acceptor</TT>
abstract base class.
@@ -969,8 +969,7 @@ object and to the <TT>Transport</TT> objects that were created.
</H3>
<P>
-TAO's <TT>Connector</TT> interface, shown below, is declared in the file <TT>&lt;
-<A HREF="../../tao/Transport_Connector.h">tao/Transport_Connector.h</A>&gt;</TT>.
+TAO's <TT>Connector</TT> interface, shown below, is declared in the file <TT>&lt;<A HREF="../../tao/Pluggable.h">tao/Pluggable.h</A>&gt;</TT>.
All <TT>Connector</TT> implementations must inherit from the <TT>TAO_Connector</TT>
abstract base class.
@@ -2200,7 +2199,7 @@ class.
<P>
All TAO pluggable protocol <TT>Transport</TT> classes must inherit from the
-<TT>TAO_Transport</TT> abstract base class defined in <TT>&lt;<A HREF="../../tao/Transport.h">tao/Transport.h</A>&gt;</TT>.
+<TT>TAO_Transport</TT> abstract base class defined in <TT>&lt;<A HREF="../../tao/Pluggable.h">tao/Pluggable.h</A>&gt;</TT>.
The <TT>TAO_Transport</TT> interface is shown below. Again, only the methods
that should be implemented for a given pluggable protocol are shown:
diff --git a/TAO/docs/poa_migration.html b/TAO/docs/poa_migration.html
index 7cb99ccd7e3..fc52188f985 100644
--- a/TAO/docs/poa_migration.html
+++ b/TAO/docs/poa_migration.html
@@ -193,8 +193,8 @@ the following to your header file:
To see the above example in detail, checkout <A
HREF="../examples/POA/Reference_Counted_Servant">TAO/examples/POA/Reference_Counted_Servant</A>
-and/or <A HREF="../tao/PortableServer/Root_POA.cpp">Root_POA.cpp</A> and <A
-HREF="../tao/PortableServer/Root_POA.h">Root_POA.h</A>. </li> <p>
+and/or <A HREF="../tao/PortableServer/POA.cpp">POA.cpp</A> and <A
+HREF="../tao/PortableServer/POA.h">POA.h</A>. </li> <p>
</ul>
diff --git a/TAO/docs/releasenotes/index.html b/TAO/docs/releasenotes/index.html
index 30cb40e3a61..9fb8f7a3fbb 100644
--- a/TAO/docs/releasenotes/index.html
+++ b/TAO/docs/releasenotes/index.html
@@ -60,9 +60,6 @@ release</a> of <a href="http://www.dre.vanderbilt.edu/TAO">TAO</a>:
<a href="#ami">Asynchronous Method Invocation (AMI)</a></li>
<li>
-<a href="#csd">Custom Servant Dispatching (CSD)</a></li>
-
-<li>
<a href="../dynany/index.html">Dynamic Any</a></li>
<li>
@@ -111,7 +108,7 @@ release</a> of <a href="http://www.dre.vanderbilt.edu/TAO">TAO</a>:
<li>
-<a href="../rtcorba/index.html">Real-Time CORBA</a></li>
+<a href="../rtcorba/">Real-Time CORBA</a></li>
<li>
<a href="#sciop">SCIOP Support in TAO</a></li>
@@ -1058,14 +1055,12 @@ POA. This also allows multiple threads to dispatch requests on the same
POA simultaneous.</li>
<li>
-Before 1.4.6 TAO supports reference counting between POA and servants, including
+TAO now supports reference counting between POA and servants, including
the new RefCountServantBase and ServantBase_var classes. RefCountServantBase
is a reference counted base class that was added to the CORBA specification
to avoid race conditions for servant deletion in threaded servers. <a href="ftp://ftp.omg.org/pub/docs/orbos/98-07-12.pdf">ftp://ftp.omg.org/pub/docs/orbos/98-07-12.pdf</a>
contains the relevant text. Check <a href="../poa_migration.html#Reference counting Servants">here</a>
-on some hints to avoid trouble. From TAO 1.4.6 reference counting is always
-enabled for servants and RefCountServantBase is a noop struct you don't
-need anymore.</li>
+on some hints to avoid trouble.</li>
<li>
The POA now supports active demultiplexing of servants in the SYSTEM_ID
@@ -2286,7 +2281,7 @@ and
<ul>We've implemented the callback model of the
<a href="http://www.omg.org/cgi-bin/doc?formal/01-12-60">CORBA
Messaging specification</a>. To activate the AMI for TAO and the TAO IDL
-compiler define <tt>TAO_HAS_CORBA_MESSAGING</tt>,
+compiler define <tt>TAO_HAS_CORBA_MESSAGING</tt>>,
<tt>TAO_HAS_AMI_CALLBACK</tt>
in your config.h file. The TAO IDL compiler can generate the AMI "callback"
stubs, ReplyHandler und reply stubs using the <tt>-GC</tt> switch.
@@ -2316,70 +2311,13 @@ Parsons</a></li>
<li>
Support for timeouts in combination with AMI calls, response handler gets
CORBA::TIMEOUT exception on timeout</li>
-<li>
-The AMI support in TAO 1.4.7 is as described in the 2.6 spec, from 1.4.8 we support
-by default the 3.0.3 described mapping.</li>
</ul>
Future Work:
<ul>
<li>
Implementation of the poller model.</li>
</ul>
-<hr>
-<h3>
-<a NAME="csd"></a>Custom Servant Dispatching</h3>
-Points of contact: <a href="mailto:bradley_t@ociweb.com">Tim Bradley</a>
-<h4>
-Current Status:</h4>
-<ul>This Custom Servant Dispatching (CSD) feature provides user applications with the ability to implement and "plug-in" custom strategies to handle the dispatching of requests to servants.
-<p>A concrete CSD Strategy implementation has also been added to serve as a "reference implementation". This is being called the CSD Thread Pool Strategy (TP_Strategy). The TP_Strategy provides a means to decouple the threads (ORB threads) that receive requests from the underlying transport from the thread that will ultimately dispatch the request to the target servant object. The TP_Strategy implements a "request queue" as the integral part of the mechanism that allows an ORB thread to "hand-off" a request to one of the TP_Strategy object's worker threads. The TP_Strategy reference implementation is provided as an example of how concrete CSD Strategy could be implemented.
-<p>Two approaches are supported for applying CSD strategy to an application.
-<ol>
-<li>Explicitly calling CSD interfaces.
-<p>Here is an example application code showing how a TP_Strategy object can be created and applied to a POA:
-
-<pre>
-
- PortableServer::POA_var poa = ...; // create the poa.
-
- // Create a new TP_Strategy object and save it into a "smart pointer" variable.
- TAO::CSD::TP_Strategy_Handle csd_strategy = new TAO::CSD::TP_Strategy();
-
- // Set the number of threads before calling apply_to().
- csd_strategy->set_num_threads(2);
-
- // Set the servant serialization flag before calling apply_to().
- csd_strategy->set_servant_serialization (false);
- // Tell the strategy to apply itself to the poa.
- if (csd_strategy->apply_to(poa.in()) == false)
- {
- ACE_ERROR((LM_ERROR, "Failed to apply CSD strategy to the poa.\n"));
- return -1;
- }
-</pre>
-<li>Service Configurator
-
- <p>The format of the CSD specific parameters for creating the TP_Strategy service object is:
- <pre>-CSDtp &lt;poa_name&gt;:&lt;csd_thread_number&gt;:[OFF]</pre>
-
- <p>The last portion of the parameter is the servant serialization flag. It's only needed when the servant serialization needs be turned off, otherwise the servant serialization is always on. When servant serialization is on (the default), the TP_Strategy will serialize requests to any particular servant. Requests to different servant objects can occur in parallel, but requests to any particular servant will be dispatched serially (ie, one at a time).
-
- <p>Here is an example of the svc.conf file.
-
- <pre>
- dynamic TAO_CSD_TP_Strategy_Factory Service_Object *
- TAO_CSD_ThreadPool:_make_TAO_CSD_TP_Strategy_Factory() "-CSDtp RootPOA:2"
- </pre>
-</ol>
-</ul>
-<h4>
-Known Issues:</h4>
-<ul>
-<li>
-This feature is not currently tested for VxWorks.
-</li>
-</ul>
<hr>
<h3>
<a NAME="interceptor"></a>Portable Interceptors</h3>
diff --git a/TAO/docs/releasenotes/orbcore.html b/TAO/docs/releasenotes/orbcore.html
index 78ee249f584..580ea7fc92b 100644
--- a/TAO/docs/releasenotes/orbcore.html
+++ b/TAO/docs/releasenotes/orbcore.html
@@ -51,7 +51,7 @@ Point of contact: <a href="mailto: bala@cs.wustl.edu">Balchandran Natarajan</a>
<li><p> The multi-profile parsing code in TAO hasnt been tested well
and we have been able to identify some issues with it. The
details are documented in our <A
- HREF="http://deuce.doc.wustl.edu/bugzilla/index.cgi">bug tracking
+ HREF="http://deuce.doc.wustl.edu/bugzilla/">bug tracking
system</A> under id's <A
HREF="http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1237">1237</A>, <A
HREF="http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=1238">
diff --git a/TAO/docs/rtcorba/features.html b/TAO/docs/rtcorba/features.html
index d360ee31c2d..794cfe8d795 100644
--- a/TAO/docs/rtcorba/features.html
+++ b/TAO/docs/rtcorba/features.html
@@ -206,13 +206,6 @@ See <a href="#mappings">Priority Mappings</a> section for more details.</td>
<li>
ThreadPools are now fully supported. Endpoint priorities are no longer
supported.</li>
-<li>
-By default dynamic RTCorba threads live forever after they are created.
-When using the <code>RTORBDynamicThreadIdleTimeout</code> from the
-<code>RT_ORB_Loader</code> it
-can be specified that the dynamic threads should end after a given
-idle time. Timeout must be specified in microseconds, 0 means the threads
-will stay alive forever.
</ul>
<h3>
diff --git a/TAO/docs/rtcorba/issues.html b/TAO/docs/rtcorba/issues.html
index 43c3e1979b0..9a8584da8c3 100644
--- a/TAO/docs/rtcorba/issues.html
+++ b/TAO/docs/rtcorba/issues.html
@@ -12,7 +12,7 @@
<h3><a name="top">Known Issues and TO-DO Items</a></h3>
<p>This page contains a list of known RTCORBA-related issues and to-do
items. The list does not include any of the reports from the bug tracking
-system, so be sureto <a href="http://deuce.doc.wustl.edu/bugzilla/index.cgi">query
+system, so be sureto <a href="http://ace.cs.wustl.edu/bugzilla/query.cgi">query
Bugzilla</a> for RTCORBA entries. </p>
<ol>
<li><a href="#7">Integrating protocol policies with the Pluggable Protocols framework</a></li>
@@ -54,7 +54,7 @@ each protocol.<br>
this is done, remove (or deprecate) <i>-ORBSndSock</i>, <i>-ORBRcvSock</i>,
and <i>-ORBNodelay</i> ORB options.<br>
</li>
- <li>Add support for <i>TCPProtocolProperties::dont_route</i>
+ <li>Add support for <i>TCPProtocolProperties::keep_alive</i> and <i>TCPProtocolProperties::dont_route</i>
in IIOP.<br> </li>
<li>Add support for protocol properties configuration in SHMIOP. (SHMIOP
properties are defined in <i>RTCORBA::SharedMemoryProtocolProperties</i>, but
diff --git a/TAO/docs/tutorials/Quoter/AMI/Handler_i.cpp b/TAO/docs/tutorials/Quoter/AMI/Handler_i.cpp
index 1167c78c3e0..178a4767bab 100644
--- a/TAO/docs/tutorials/Quoter/AMI/Handler_i.cpp
+++ b/TAO/docs/tutorials/Quoter/AMI/Handler_i.cpp
@@ -25,7 +25,7 @@ Single_Query_Stock_Handler_i::get_price_and_names (CORBA::Double ami_return_val,
void
Single_Query_Stock_Handler_i::
- get_price_and_names_excep (::Messaging::ExceptionHolder *)
+ get_price_and_names_excep (Quoter::AMI_Single_Query_StockExceptionHolder *)
throw (CORBA::SystemException)
{
// We ignore the exception, but this counts as a reponse, otherwise
@@ -45,7 +45,7 @@ Single_Query_Stock_Handler_i::get_symbol (const char *)
void
Single_Query_Stock_Handler_i::
- get_symbol_excep (::Messaging::ExceptionHolder *)
+ get_symbol_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException)
{
throw CORBA::NO_IMPLEMENT ();
@@ -60,7 +60,7 @@ Single_Query_Stock_Handler_i::get_full_name (const char *)
void
Single_Query_Stock_Handler_i::
- get_full_name_excep (::Messaging::ExceptionHolder *)
+ get_full_name_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException)
{
throw CORBA::NO_IMPLEMENT ();
@@ -75,7 +75,7 @@ Single_Query_Stock_Handler_i::price (double)
void
Single_Query_Stock_Handler_i::
- price_excep (::Messaging::ExceptionHolder *)
+ price_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException)
{
throw CORBA::NO_IMPLEMENT ();
diff --git a/TAO/docs/tutorials/Quoter/AMI/Handler_i.h b/TAO/docs/tutorials/Quoter/AMI/Handler_i.h
index fd3e78ec36e..60848fb3aec 100644
--- a/TAO/docs/tutorials/Quoter/AMI/Handler_i.h
+++ b/TAO/docs/tutorials/Quoter/AMI/Handler_i.h
@@ -17,22 +17,22 @@ public:
const char *full_name)
throw (CORBA::SystemException);
- void get_price_and_names_excep (::Messaging::ExceptionHolder *)
+ void get_price_and_names_excep (Quoter::AMI_Single_Query_StockExceptionHolder *)
throw (CORBA::SystemException);
void get_symbol(const char *)
throw (CORBA::SystemException);
- void get_symbol_excep (::Messaging::ExceptionHolder *)
+ void get_symbol_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException);
void get_full_name (const char *)
throw (CORBA::SystemException);
- void get_full_name_excep (::Messaging::ExceptionHolder *)
+ void get_full_name_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException);
void price (double)
throw (CORBA::SystemException);
- void price_excep (::Messaging::ExceptionHolder *)
+ void price_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException);
private:
diff --git a/TAO/docs/tutorials/Quoter/AMI/Makefile.am b/TAO/docs/tutorials/Quoter/AMI/Makefile.am
index 79e6b252ca1..bfd314dc850 100644
--- a/TAO/docs/tutorials/Quoter/AMI/Makefile.am
+++ b/TAO/docs/tutorials/Quoter/AMI/Makefile.am
@@ -53,9 +53,6 @@ Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Quoter.idl
-
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/docs/tutorials/Quoter/AMI/client.cpp b/TAO/docs/tutorials/Quoter/AMI/client.cpp
index fcb8a8f26da..c9b07e860d5 100644
--- a/TAO/docs/tutorials/Quoter/AMI/client.cpp
+++ b/TAO/docs/tutorials/Quoter/AMI/client.cpp
@@ -5,7 +5,7 @@
#include "Handler_i.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/AMI/server.cpp b/TAO/docs/tutorials/Quoter/AMI/server.cpp
index 9d4c01d9a74..fa59ad6bccb 100644
--- a/TAO/docs/tutorials/Quoter/AMI/server.cpp
+++ b/TAO/docs/tutorials/Quoter/AMI/server.cpp
@@ -5,7 +5,7 @@
#include "Stock_Factory_i.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Event_Service/Makefile.am b/TAO/docs/tutorials/Quoter/Event_Service/Makefile.am
index 22642fdf2df..c6b2c646f98 100644
--- a/TAO/docs/tutorials/Quoter/Event_Service/Makefile.am
+++ b/TAO/docs/tutorials/Quoter/Event_Service/Makefile.am
@@ -50,9 +50,6 @@ Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Quoter.idl
-
## Makefile.Quoter_Event_Service_Client.am
if BUILD_EXCEPTIONS
diff --git a/TAO/docs/tutorials/Quoter/Event_Service/client.cpp b/TAO/docs/tutorials/Quoter/Event_Service/client.cpp
index 43abc2992c9..9a238223729 100644
--- a/TAO/docs/tutorials/Quoter/Event_Service/client.cpp
+++ b/TAO/docs/tutorials/Quoter/Event_Service/client.cpp
@@ -6,7 +6,7 @@
#include <orbsvcs/CosNamingC.h>
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Event_Service/server.cpp b/TAO/docs/tutorials/Quoter/Event_Service/server.cpp
index 56b0532a42c..6d3bcb46833 100644
--- a/TAO/docs/tutorials/Quoter/Event_Service/server.cpp
+++ b/TAO/docs/tutorials/Quoter/Event_Service/server.cpp
@@ -7,7 +7,7 @@
#include "ace/streams.h"
#include "ace/OS_NS_unistd.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Naming_Service/Quoter_Naming_Service.mpc b/TAO/docs/tutorials/Quoter/Naming_Service/Quoter_Naming_Service.mpc
index 797e2569292..b2c40ecdac1 100644
--- a/TAO/docs/tutorials/Quoter/Naming_Service/Quoter_Naming_Service.mpc
+++ b/TAO/docs/tutorials/Quoter/Naming_Service/Quoter_Naming_Service.mpc
@@ -4,12 +4,7 @@
project(*client) : orbsvcsexe, portableserver, naming, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../idl
- }
includes += ../idl
-
source_files {
client.cpp
}
@@ -18,12 +13,7 @@ project(*client) : orbsvcsexe, portableserver, naming, exceptions {
project(*server) : orbsvcsexe, portableserver, naming, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../idl
- }
includes += ../idl
-
source_files {
server.cpp
Stock_Factory_i.cpp
diff --git a/TAO/docs/tutorials/Quoter/Naming_Service/client.cpp b/TAO/docs/tutorials/Quoter/Naming_Service/client.cpp
index c26cf41b26c..979a2804ede 100644
--- a/TAO/docs/tutorials/Quoter/Naming_Service/client.cpp
+++ b/TAO/docs/tutorials/Quoter/Naming_Service/client.cpp
@@ -6,7 +6,7 @@
#include <orbsvcs/CosNamingC.h>
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Naming_Service/server.cpp b/TAO/docs/tutorials/Quoter/Naming_Service/server.cpp
index 86d293611bc..56f3f056f9c 100644
--- a/TAO/docs/tutorials/Quoter/Naming_Service/server.cpp
+++ b/TAO/docs/tutorials/Quoter/Naming_Service/server.cpp
@@ -6,7 +6,7 @@
#include "orbsvcs/CosNamingC.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.cpp b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.cpp
index 1167c78c3e0..178a4767bab 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.cpp
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.cpp
@@ -25,7 +25,7 @@ Single_Query_Stock_Handler_i::get_price_and_names (CORBA::Double ami_return_val,
void
Single_Query_Stock_Handler_i::
- get_price_and_names_excep (::Messaging::ExceptionHolder *)
+ get_price_and_names_excep (Quoter::AMI_Single_Query_StockExceptionHolder *)
throw (CORBA::SystemException)
{
// We ignore the exception, but this counts as a reponse, otherwise
@@ -45,7 +45,7 @@ Single_Query_Stock_Handler_i::get_symbol (const char *)
void
Single_Query_Stock_Handler_i::
- get_symbol_excep (::Messaging::ExceptionHolder *)
+ get_symbol_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException)
{
throw CORBA::NO_IMPLEMENT ();
@@ -60,7 +60,7 @@ Single_Query_Stock_Handler_i::get_full_name (const char *)
void
Single_Query_Stock_Handler_i::
- get_full_name_excep (::Messaging::ExceptionHolder *)
+ get_full_name_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException)
{
throw CORBA::NO_IMPLEMENT ();
@@ -75,7 +75,7 @@ Single_Query_Stock_Handler_i::price (double)
void
Single_Query_Stock_Handler_i::
- price_excep (::Messaging::ExceptionHolder *)
+ price_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException)
{
throw CORBA::NO_IMPLEMENT ();
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.h b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.h
index b595d53be86..d6a66153074 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.h
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Handler_i.h
@@ -17,22 +17,22 @@ public:
const char *full_name)
throw (CORBA::SystemException);
- void get_price_and_names_excep (::Messaging::ExceptionHolder *)
+ void get_price_and_names_excep (Quoter::AMI_Single_Query_StockExceptionHolder *)
throw (CORBA::SystemException);
void get_symbol(const char *)
throw (CORBA::SystemException);
- void get_symbol_excep (::Messaging::ExceptionHolder *)
+ void get_symbol_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException);
void get_full_name (const char *)
throw (CORBA::SystemException);
- void get_full_name_excep (::Messaging::ExceptionHolder *)
+ void get_full_name_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException);
void price (double)
throw (CORBA::SystemException);
- void price_excep (::Messaging::ExceptionHolder *)
+ void price_excep (Quoter::AMI_StockExceptionHolder *)
throw (CORBA::SystemException);
private:
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Makefile.am b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Makefile.am
index 7064c27f2d5..66d9661afcd 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/Makefile.am
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/Makefile.am
@@ -53,9 +53,6 @@ Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Quoter.idl
-
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/client.cpp b/TAO/docs/tutorials/Quoter/On_Demand_Activation/client.cpp
index fcb8a8f26da..c9b07e860d5 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/client.cpp
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/client.cpp
@@ -5,7 +5,7 @@
#include "Handler_i.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp b/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp
index bf880a31793..dfdeca56f8a 100644
--- a/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp
+++ b/TAO/docs/tutorials/Quoter/On_Demand_Activation/server.cpp
@@ -5,7 +5,7 @@
#include "Stock_Factory_Locator_i.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/RT_Event_Service/Makefile.am b/TAO/docs/tutorials/Quoter/RT_Event_Service/Makefile.am
index 3f396693380..5ebb6457432 100644
--- a/TAO/docs/tutorials/Quoter/RT_Event_Service/Makefile.am
+++ b/TAO/docs/tutorials/Quoter/RT_Event_Service/Makefile.am
@@ -50,14 +50,10 @@ Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Quoter.idl
-
## Makefile.Quoter_RT_Event_Service_Client.am
if BUILD_CORBA_MESSAGING
if BUILD_EXCEPTIONS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -92,7 +88,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_EXCEPTIONS
endif BUILD_CORBA_MESSAGING
@@ -100,7 +95,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_EXCEPTIONS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -138,7 +132,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_EXCEPTIONS
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/docs/tutorials/Quoter/RT_Event_Service/client.cpp b/TAO/docs/tutorials/Quoter/RT_Event_Service/client.cpp
index 8bdaab076a8..47ed3316ba1 100644
--- a/TAO/docs/tutorials/Quoter/RT_Event_Service/client.cpp
+++ b/TAO/docs/tutorials/Quoter/RT_Event_Service/client.cpp
@@ -9,7 +9,7 @@
#include "ace/OS_NS_string.h"
#include "tao/Exception.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/RT_Event_Service/server.cpp b/TAO/docs/tutorials/Quoter/RT_Event_Service/server.cpp
index 3660fc9b82d..60b48e8826b 100644
--- a/TAO/docs/tutorials/Quoter/RT_Event_Service/server.cpp
+++ b/TAO/docs/tutorials/Quoter/RT_Event_Service/server.cpp
@@ -7,7 +7,7 @@
#include "ace/streams.h"
#include "ace/OS_NS_unistd.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Simple/Client/Quoter_Simple_Client.mpc b/TAO/docs/tutorials/Quoter/Simple/Client/Quoter_Simple_Client.mpc
index d1f999594f1..a77542f12ee 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Client/Quoter_Simple_Client.mpc
+++ b/TAO/docs/tutorials/Quoter/Simple/Client/Quoter_Simple_Client.mpc
@@ -4,9 +4,5 @@
project : taoexe, portableserver, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific(automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
}
diff --git a/TAO/docs/tutorials/Quoter/Simple/Client/client.cpp b/TAO/docs/tutorials/Quoter/Simple/Client/client.cpp
index 0715a3539fe..32df7968a94 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Client/client.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/Client/client.cpp
@@ -6,7 +6,7 @@
#include "QuoterC.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/Quoter_Simple_Impl_Repo.mpc b/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/Quoter_Simple_Impl_Repo.mpc
index e15b2b37572..fb71f91e9f1 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/Quoter_Simple_Impl_Repo.mpc
+++ b/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/Quoter_Simple_Impl_Repo.mpc
@@ -4,12 +4,7 @@
project(*client) : taoexe, portableserver, rtevent, naming, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
-
source_files {
client.cpp
}
@@ -18,12 +13,7 @@ project(*client) : taoexe, portableserver, rtevent, naming, exceptions {
project(*server) : taoserver, rtevent, naming, iortable, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
-
source_files {
server.cpp
Stock_Factory_i.cpp
diff --git a/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/client.cpp b/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/client.cpp
index 0715a3539fe..32df7968a94 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/client.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/client.cpp
@@ -6,7 +6,7 @@
#include "QuoterC.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/server.cpp b/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/server.cpp
index 096cdc27d7c..3fcffffda6c 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/server.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/Impl-Repo/server.cpp
@@ -18,7 +18,7 @@
#include "tao/IORTable/IORTable.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
diff --git a/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/Quoter_Simple_ImprovedServer.mpc b/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/Quoter_Simple_ImprovedServer.mpc
index fda3b450dd6..984a4c86db8 100644
--- a/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/Quoter_Simple_ImprovedServer.mpc
+++ b/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/Quoter_Simple_ImprovedServer.mpc
@@ -2,9 +2,5 @@
project : taoserver, minimum_corba, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
}
diff --git a/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/server.cpp b/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/server.cpp
index 06692da309e..5b2f841ce9d 100644
--- a/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/server.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/ImprovedServer/server.cpp
@@ -6,7 +6,7 @@
#include "Stock_i.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Simple/Persistent/Quoter_Simple_Persistent.mpc b/TAO/docs/tutorials/Quoter/Simple/Persistent/Quoter_Simple_Persistent.mpc
index c8c3a2ad4ae..28e9ac91d0f 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Persistent/Quoter_Simple_Persistent.mpc
+++ b/TAO/docs/tutorials/Quoter/Simple/Persistent/Quoter_Simple_Persistent.mpc
@@ -4,12 +4,7 @@
project(*client) : taoexe, portableserver, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
-
source_files {
client.cpp
}
@@ -18,12 +13,7 @@ project(*client) : taoexe, portableserver, exceptions {
project(*server) : taoserver, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
-
source_files {
server.cpp
Stock_Factory_i.cpp
diff --git a/TAO/docs/tutorials/Quoter/Simple/Persistent/client.cpp b/TAO/docs/tutorials/Quoter/Simple/Persistent/client.cpp
index 0715a3539fe..32df7968a94 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Persistent/client.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/Persistent/client.cpp
@@ -6,7 +6,7 @@
#include "QuoterC.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/docs/tutorials/Quoter/Simple/Persistent/server.cpp b/TAO/docs/tutorials/Quoter/Simple/Persistent/server.cpp
index 06f5d6282cb..95cc2869e69 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Persistent/server.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/Persistent/server.cpp
@@ -18,7 +18,7 @@
#include "Stock_Factory_i.h"
#include "ace/streams.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
try {
diff --git a/TAO/docs/tutorials/Quoter/Simple/Server/Quoter_Simple_Server.mpc b/TAO/docs/tutorials/Quoter/Simple/Server/Quoter_Simple_Server.mpc
index dc8789b784c..82e81030a07 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Server/Quoter_Simple_Server.mpc
+++ b/TAO/docs/tutorials/Quoter/Simple/Server/Quoter_Simple_Server.mpc
@@ -4,9 +4,5 @@
project : taoserver, exceptions {
libs += Quoter_Idl_Lib
after += Quoter_Idl_Lib
-
- specific (automake) {
- includes += $(srcdir)/../../idl
- }
includes += ../../idl
}
diff --git a/TAO/docs/tutorials/Quoter/Simple/Server/server.cpp b/TAO/docs/tutorials/Quoter/Simple/Server/server.cpp
index 150b59789bc..1cbcf6cae70 100644
--- a/TAO/docs/tutorials/Quoter/Simple/Server/server.cpp
+++ b/TAO/docs/tutorials/Quoter/Simple/Server/server.cpp
@@ -5,7 +5,7 @@
#include "Stock_Factory_i.h"
#include "ace/streams.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
try {
// First initialize the ORB, that will remove some arguments...
diff --git a/TAO/examples/AMH/Sink_Server/AMH_Servant.cpp b/TAO/examples/AMH/Sink_Server/AMH_Servant.cpp
index 1bb6f2cbc19..fa1ef36c477 100644
--- a/TAO/examples/AMH/Sink_Server/AMH_Servant.cpp
+++ b/TAO/examples/AMH/Sink_Server/AMH_Servant.cpp
@@ -31,7 +31,7 @@ AMH_Servant::parse_args (int &argc, char **argv)
{
// *** To get correct behaviour, SET POSIXLY_CORECT=1 on Linux
// systems!!! ***
- ACE_Get_Opt get_opts (argc, argv, "s:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "s:");
int c;
int count_argv = 0;
diff --git a/TAO/examples/AMH/Sink_Server/Base_Server.cpp b/TAO/examples/AMH/Sink_Server/Base_Server.cpp
index b1a722b18d8..33cb662f799 100644
--- a/TAO/examples/AMH/Sink_Server/Base_Server.cpp
+++ b/TAO/examples/AMH/Sink_Server/Base_Server.cpp
@@ -43,7 +43,7 @@ Base_Server::parse_args (void)
{
// *** To get correct behaviour, set ** POSIXLY_CORECT=1 ** on Linux
// systems!!! ***
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "o:");
int c;
int count_argv = 0;
@@ -210,7 +210,7 @@ Base_Server::write_ior_to_file (const char * ior)
{
// If the ior_output_file exists, output the ior to it
FILE *output_file =
- ACE_OS::fopen (this->ior_output_file_, "w");
+ ACE_OS::fopen (this->ior_output_file_, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/examples/AMH/Sink_Server/Client_Task.cpp b/TAO/examples/AMH/Sink_Server/Client_Task.cpp
index 9b31627ae37..59fd9c58e81 100644
--- a/TAO/examples/AMH/Sink_Server/Client_Task.cpp
+++ b/TAO/examples/AMH/Sink_Server/Client_Task.cpp
@@ -21,7 +21,7 @@ Client_Task::Client_Task (int &argc, char **argv)
int
Client_Task::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "k:n:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "k:n:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/AMH/Sink_Server/MT_AMH_Server.cpp b/TAO/examples/AMH/Sink_Server/MT_AMH_Server.cpp
index 43ef2b385cc..2b949f5c373 100644
--- a/TAO/examples/AMH/Sink_Server/MT_AMH_Server.cpp
+++ b/TAO/examples/AMH/Sink_Server/MT_AMH_Server.cpp
@@ -45,7 +45,7 @@ MT_AMH_Server::parse_args (void)
ACE_OS::exit (1);
}
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "n:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "n:");
int c;
int count_argv = 0;
diff --git a/TAO/examples/AMH/Sink_Server/Makefile.am b/TAO/examples/AMH/Sink_Server/Makefile.am
index d7c6dca9fee..6df470c1810 100644
--- a/TAO/examples/AMH/Sink_Server/Makefile.am
+++ b/TAO/examples/AMH/Sink_Server/Makefile.am
@@ -16,52 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Sink_Server_IDL.am
+## Makefile.Sink_Server_Client.am
if BUILD_CORBA_MESSAGING
-BUILT_SOURCES = \
+BUILT_SOURCES += \
TestC.cpp \
TestC.h \
TestC.inl \
- TestS.cpp \
TestS.h \
TestS.inl \
TestS_T.cpp \
TestS_T.h \
TestS_T.inl
-CLEANFILES = \
+CLEANFILES += \
Test-stamp \
TestC.cpp \
TestC.h \
TestC.inl \
- TestS.cpp \
TestS.h \
TestS.inl \
TestS_T.cpp \
TestS_T.h \
TestS_T.inl
-TestC.cpp TestC.h TestC.inl TestS.cpp TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
+TestC.cpp TestC.h TestC.inl TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
$(TAO_IDL) $(TAO_IDLFLAGS) -GH $(srcdir)/Test.idl
@touch $@
-
-noinst_HEADERS = \
- Test.idl
-
-endif BUILD_CORBA_MESSAGING
-
-## Makefile.Sink_Server_Client.am
-
-if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -74,8 +63,12 @@ client_SOURCES = \
Client_Task.cpp \
TestC.cpp \
client.cpp \
- Base_Server.inl \
- Client_Task.h
+ Client_Task.h \
+ TestC.h \
+ TestC.inl \
+ TestS.h \
+ TestS_T.h \
+ TestS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
@@ -88,13 +81,40 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Sink_Server_Mt_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
+
+BUILT_SOURCES += \
+ TestC.cpp \
+ TestC.h \
+ TestC.inl \
+ TestS.cpp \
+ TestS.h \
+ TestS.inl \
+ TestS_T.cpp \
+ TestS_T.h \
+ TestS_T.inl
+
+CLEANFILES += \
+ Test-stamp \
+ TestC.cpp \
+ TestC.h \
+ TestC.inl \
+ TestS.cpp \
+ TestS.h \
+ TestS.inl \
+ TestS_T.cpp \
+ TestS_T.h \
+ TestS_T.inl
+
+TestC.cpp TestC.h TestC.inl TestS.cpp TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
+
+Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GH $(srcdir)/Test.idl
+ @touch $@
noinst_PROGRAMS += mt_server
@@ -116,6 +136,11 @@ mt_server_SOURCES = \
Base_Server.h \
Base_Server.inl \
MT_AMH_Server.h \
+ TestC.h \
+ TestC.inl \
+ TestS.h \
+ TestS_T.h \
+ TestS_T.inl \
Timer_Handler.h
mt_server_LDADD = \
@@ -129,13 +154,40 @@ mt_server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Sink_Server_St_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
+
+BUILT_SOURCES += \
+ TestC.cpp \
+ TestC.h \
+ TestC.inl \
+ TestS.cpp \
+ TestS.h \
+ TestS.inl \
+ TestS_T.cpp \
+ TestS_T.h \
+ TestS_T.inl
+
+CLEANFILES += \
+ Test-stamp \
+ TestC.cpp \
+ TestC.h \
+ TestC.inl \
+ TestS.cpp \
+ TestS.h \
+ TestS.inl \
+ TestS_T.cpp \
+ TestS_T.h \
+ TestS_T.inl
+
+TestC.cpp TestC.h TestC.inl TestS.cpp TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
+
+Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GH $(srcdir)/Test.idl
+ @touch $@
noinst_PROGRAMS += st_server
@@ -155,6 +207,11 @@ st_server_SOURCES = \
AMH_Servant.h \
Base_Server.h \
Base_Server.inl \
+ TestC.h \
+ TestC.inl \
+ TestS.h \
+ TestS_T.h \
+ TestS_T.inl \
Timer_Handler.h
st_server_LDADD = \
@@ -168,7 +225,6 @@ st_server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/examples/AMH/Sink_Server/Sink_Server.mpc b/TAO/examples/AMH/Sink_Server/Sink_Server.mpc
index 873085457c1..17f57558bd0 100644
--- a/TAO/examples/AMH/Sink_Server/Sink_Server.mpc
+++ b/TAO/examples/AMH/Sink_Server/Sink_Server.mpc
@@ -1,49 +1,30 @@
// -*- MPC -*-
// $Id$
-project(*IDL) : taoidldefaults, amh {
- IDL_Files {
- Test.idl
- }
- custom_only =1
-}
-
project(*st_server): taoexe, strategies, valuetype, amh, portableserver {
- after += *IDL
Source_Files {
st_server.cpp
Base_Server.cpp
AMH_Servant.cpp
Timer_Handler.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
}
}
project(*mt_server): taoexe, strategies, valuetype, amh, portableserver {
- after += *IDL
Source_Files {
mt_server.cpp
MT_AMH_Server.cpp
Base_Server.cpp
AMH_Servant.cpp
Timer_Handler.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
}
}
project(*client): taoexe, strategies, valuetype, amh, portableserver {
- after += *IDL
Source_Files {
Client_Task.cpp
TestC.cpp
client.cpp
}
- IDL_Files {
- }
}
+
diff --git a/TAO/examples/AMH/Sink_Server/client.cpp b/TAO/examples/AMH/Sink_Server/client.cpp
index 8ac228e10f5..f0cdbabc08c 100644
--- a/TAO/examples/AMH/Sink_Server/client.cpp
+++ b/TAO/examples/AMH/Sink_Server/client.cpp
@@ -3,11 +3,13 @@
//
#include "Client_Task.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- Client_Task task (argc, argv);
+ ACE_Argv_Type_Converter convert (argc, argv);
+ Client_Task task (convert.get_argc(), convert.get_ASCII_argv());
if (task.parse_args () != 1)
{
diff --git a/TAO/examples/AMH/Sink_Server/mt_server.cpp b/TAO/examples/AMH/Sink_Server/mt_server.cpp
index be36239007c..8176e904a16 100644
--- a/TAO/examples/AMH/Sink_Server/mt_server.cpp
+++ b/TAO/examples/AMH/Sink_Server/mt_server.cpp
@@ -2,11 +2,13 @@
#include "MT_AMH_Server.h"
#include "AMH_Servant.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- MT_AMH_Server amh_server (argc, argv);
+ ACE_Argv_Type_Converter convert (argc, argv);
+ MT_AMH_Server amh_server (convert.get_argc(), convert.get_ASCII_argv());
amh_server.try_RT_scheduling();
amh_server.start_orb_and_poa ();
@@ -18,7 +20,7 @@ main (int argc, char *argv[])
AMH_Servant servant (amh_server.orb ());
- if (servant.parse_args (argc, argv) != 1)
+ if (servant.parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 1)
{
amh_server.usage ("sleep time unspecified");
ACE_OS::exit (1);
diff --git a/TAO/examples/AMH/Sink_Server/st_server.cpp b/TAO/examples/AMH/Sink_Server/st_server.cpp
index 5983c3cd99f..1986d33f38f 100644
--- a/TAO/examples/AMH/Sink_Server/st_server.cpp
+++ b/TAO/examples/AMH/Sink_Server/st_server.cpp
@@ -2,6 +2,7 @@
#include "AMH_Servant.h"
#include "Base_Server.h"
+#include "ace/Argv_Type_Converter.h"
void
usage (const char *message)
@@ -19,9 +20,10 @@ usage (const char *message)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- Base_Server amh_server (argc, argv);
+ ACE_Argv_Type_Converter convert (argc, argv);
+ Base_Server amh_server (convert.get_argc(), convert.get_ASCII_argv());
amh_server.try_RT_scheduling();
amh_server.start_orb_and_poa ();
@@ -33,7 +35,7 @@ main (int argc, char *argv[])
AMH_Servant servant (amh_server.orb ());
- if (servant.parse_args (argc, argv) != 1)
+ if (servant.parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 1)
{
usage ("Sleep time unspecified \n");
ACE_OS::exit (1);
diff --git a/TAO/examples/AMI/FL_Callback/Makefile.am b/TAO/examples/AMI/FL_Callback/Makefile.am
index 57e21b3a71f..2aa510507e6 100644
--- a/TAO/examples/AMI/FL_Callback/Makefile.am
+++ b/TAO/examples/AMI/FL_Callback/Makefile.am
@@ -6,7 +6,7 @@
## this file will be lost the next time it is generated.
##
## MPC Command:
-## ../bin/mwc.pl -type automake -noreldefs TAO.mwc
+## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
ACE_BUILDDIR = $(top_builddir)/..
ACE_ROOT = $(top_srcdir)/..
@@ -53,9 +53,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -63,7 +60,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += peer
@@ -91,7 +87,6 @@ peer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -111,8 +106,7 @@ progress_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- @ACE_FLTK_CPPFLAGS@
+ -I$(TAO_BUILDDIR)
progress_SOURCES = \
Progress_i.cpp \
@@ -131,8 +125,7 @@ progress_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- @ACE_FLTK_LIBS@
+ $(ACE_BUILDDIR)/ace/libACE.la
endif BUILD_X11
endif BUILD_TAO_FLRESOURCE
diff --git a/TAO/examples/AMI/FL_Callback/Peer_i.cpp b/TAO/examples/AMI/FL_Callback/Peer_i.cpp
index f4e81a5b099..6d04cad3f50 100644
--- a/TAO/examples/AMI/FL_Callback/Peer_i.cpp
+++ b/TAO/examples/AMI/FL_Callback/Peer_i.cpp
@@ -25,12 +25,15 @@ Peer_Handler_i::request (CORBA::Long retval
void
Peer_Handler_i::request_excep (
- ::Messaging::ExceptionHolder *
- ACE_ENV_ARG_DECL_NOT_USED)
+ AMI_PeerExceptionHolder * excep_holder
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG (excep_holder);
+ ACE_ENV_ARG_NOT_USED;
}
+
void
Peer_Handler_i::start (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
diff --git a/TAO/examples/AMI/FL_Callback/Peer_i.h b/TAO/examples/AMI/FL_Callback/Peer_i.h
index 251ca6e57c6..b5593adc52a 100644
--- a/TAO/examples/AMI/FL_Callback/Peer_i.h
+++ b/TAO/examples/AMI/FL_Callback/Peer_i.h
@@ -31,7 +31,7 @@ public:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void request_excep (::Messaging::ExceptionHolder * excep_holder
+ virtual void request_excep (AMI_PeerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/examples/AMI/FL_Callback/peer.cpp b/TAO/examples/AMI/FL_Callback/peer.cpp
index 529143d03f2..8c9b334590c 100644
--- a/TAO/examples/AMI/FL_Callback/peer.cpp
+++ b/TAO/examples/AMI/FL_Callback/peer.cpp
@@ -5,6 +5,7 @@
#include "ace/Task.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (FL_Callback,
peer,
@@ -17,7 +18,7 @@ int interval = 0; // microseconds
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -71,8 +72,9 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
+ ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
@@ -102,7 +104,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -125,7 +127,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var progress_object =
diff --git a/TAO/examples/AMI/FL_Callback/progress.cpp b/TAO/examples/AMI/FL_Callback/progress.cpp
index d5d9556a839..5b267306226 100644
--- a/TAO/examples/AMI/FL_Callback/progress.cpp
+++ b/TAO/examples/AMI/FL_Callback/progress.cpp
@@ -19,7 +19,7 @@ int n_peers = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:p:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:p:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -53,7 +53,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
TAO::FlResource_Loader fl_loader;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Advanced/ch_12/client.cpp b/TAO/examples/Advanced/ch_12/client.cpp
index d02bccc4c52..271bb80d8b6 100644
--- a/TAO/examples/Advanced/ch_12/client.cpp
+++ b/TAO/examples/Advanced/ch_12/client.cpp
@@ -136,7 +136,7 @@ set_temp (CCS::Thermostat_ptr tmstat, CCS::TempType new_temp)
}
int
-main (int argc, char * argv[])
+ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
CORBA::ULong i = 0;
try
diff --git a/TAO/examples/Advanced/ch_12/server.cpp b/TAO/examples/Advanced/ch_12/server.cpp
index 4b745c72953..d3df38508c6 100644
--- a/TAO/examples/Advanced/ch_12/server.cpp
+++ b/TAO/examples/Advanced/ch_12/server.cpp
@@ -641,7 +641,7 @@ preinvoke (const PortableServer::ObjectId & oid,
}
int
-main (int argc, char * argv[])
+ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
CORBA::ORB_var orb;
diff --git a/TAO/examples/Advanced/ch_18/client.cpp b/TAO/examples/Advanced/ch_18/client.cpp
index 57631ddbb19..314c21f1258 100644
--- a/TAO/examples/Advanced/ch_18/client.cpp
+++ b/TAO/examples/Advanced/ch_18/client.cpp
@@ -223,7 +223,7 @@ set_temp(CCS::Thermostat_ptr tmstat, CCS::TempType new_temp)
//----------------------------------------------------------------
int
-main(int argc, char * argv[])
+ACE_TMAIN(int argc, ACE_TCHAR * argv[])
{
CORBA::ULong i = 0;
diff --git a/TAO/examples/Advanced/ch_18/server.cpp b/TAO/examples/Advanced/ch_18/server.cpp
index 17b74ff11fa..848d6877461 100644
--- a/TAO/examples/Advanced/ch_18/server.cpp
+++ b/TAO/examples/Advanced/ch_18/server.cpp
@@ -687,7 +687,7 @@ preinvoke (
//----------------------------------------------------------------
int
-main (int argc, char * argv[])
+ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
CORBA::ORB_var orb;
diff --git a/TAO/examples/Advanced/ch_21/client.cpp b/TAO/examples/Advanced/ch_21/client.cpp
index 8db73588d82..b85caad10fd 100644
--- a/TAO/examples/Advanced/ch_21/client.cpp
+++ b/TAO/examples/Advanced/ch_21/client.cpp
@@ -139,7 +139,7 @@ set_temp(CCS::Thermostat_ptr tmstat, CCS::TempType new_temp)
//----------------------------------------------------------------
int
-main(int argc, char * argv[])
+ACE_TMAIN(int argc, ACE_TCHAR * argv[])
{
CORBA::ULong i = 0;
try {
diff --git a/TAO/examples/Advanced/ch_21/server.cpp b/TAO/examples/Advanced/ch_21/server.cpp
index 02631e1f536..f2d057d40c2 100644
--- a/TAO/examples/Advanced/ch_21/server.cpp
+++ b/TAO/examples/Advanced/ch_21/server.cpp
@@ -687,7 +687,7 @@ preinvoke (
//----------------------------------------------------------------
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
try {
// Initialize orb
diff --git a/TAO/examples/Advanced/ch_3/Makefile.am b/TAO/examples/Advanced/ch_3/Makefile.am
index 252b1ec64d0..8702a5e12bf 100644
--- a/TAO/examples/Advanced/ch_3/Makefile.am
+++ b/TAO/examples/Advanced/ch_3/Makefile.am
@@ -52,9 +52,6 @@ time-stamp: $(srcdir)/time.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- time.idl
-
endif BUILD_EXCEPTIONS
## Makefile.Advanced_Ch_3_Client.am
diff --git a/TAO/examples/Advanced/ch_3/client.cpp b/TAO/examples/Advanced/ch_3/client.cpp
index b8e0b3db2e5..8a934637a70 100644
--- a/TAO/examples/Advanced/ch_3/client.cpp
+++ b/TAO/examples/Advanced/ch_3/client.cpp
@@ -21,14 +21,16 @@
#include "timeC.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
// The following header is #included automatically by ACE+TAO.
// Therefore, they don't need to be included explicitly.
//#include <iostream.h>
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
try
{
// Check arguments
@@ -39,10 +41,10 @@ main (int argc, char *argv[])
}
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
// Destringify argv[1]
- CORBA::Object_var obj = orb->string_to_object (argv[1]);
+ CORBA::Object_var obj = orb->string_to_object (convert.get_ASCII_argv()[1]);
if (CORBA::is_nil (obj.in ()))
{
cerr << "Nil Time reference" << endl;
diff --git a/TAO/examples/Advanced/ch_3/server.cpp b/TAO/examples/Advanced/ch_3/server.cpp
index fb8fbd74601..be27a730d67 100644
--- a/TAO/examples/Advanced/ch_3/server.cpp
+++ b/TAO/examples/Advanced/ch_3/server.cpp
@@ -21,6 +21,7 @@
#include "server.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
// The following headers are #included automatically by ACE+TAO.
// Therefore, they don't need to be included explicitly.
@@ -47,12 +48,13 @@ get_gmt (void) throw (CORBA::SystemException)
// ______________________________________________________
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
try
{
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
// Get reference to Root POA.
CORBA::Object_var obj
diff --git a/TAO/examples/Advanced/ch_8_and_10/client.cpp b/TAO/examples/Advanced/ch_8_and_10/client.cpp
index 593d3bd28b3..2395847f348 100644
--- a/TAO/examples/Advanced/ch_8_and_10/client.cpp
+++ b/TAO/examples/Advanced/ch_8_and_10/client.cpp
@@ -135,7 +135,7 @@ set_temp(CCS::Thermostat_ptr tmstat, CCS::TempType new_temp)
//----------------------------------------------------------------
int
-main(int argc, char * argv[])
+ACE_TMAIN(int argc, ACE_TCHAR * argv[])
{
try {
// Initialize the ORB
diff --git a/TAO/examples/Advanced/ch_8_and_10/server.cpp b/TAO/examples/Advanced/ch_8_and_10/server.cpp
index e2f6b3093a2..4e2346a12fe 100644
--- a/TAO/examples/Advanced/ch_8_and_10/server.cpp
+++ b/TAO/examples/Advanced/ch_8_and_10/server.cpp
@@ -413,7 +413,7 @@ throw(CORBA::SystemException)
//----------------------------------------------------------------
int
-main(int argc, char * argv[])
+ACE_TMAIN(int argc, ACE_TCHAR * argv[])
{
try {
// Initialize orb
diff --git a/TAO/examples/Borland/ChatClient.bpr b/TAO/examples/Borland/ChatClient.bpr
index 36bab973fd7..14c585eb2cc 100644
--- a/TAO/examples/Borland/ChatClient.bpr
+++ b/TAO/examples/Borland/ChatClient.bpr
@@ -2,10 +2,10 @@
<!-- C++Builder XML Project -->
<PROJECT>
<MACROS>
- <VERSION value="BCB.06.00"/>
+ <VERSION value="BCB.05.03"/>
<PROJECT value="ChatClient.exe"/>
- <OBJFILES value="obj\ChatClient.obj obj\ChatClientWnd.obj obj\BroadcasterC.obj
- obj\BroadcasterS.obj obj\ReceiverC.obj obj\ReceiverS.obj
+ <OBJFILES value="obj\ChatClient.obj obj\ChatClientWnd.obj obj\BroadcasterC.obj
+ obj\BroadcasterS.obj obj\ReceiverC.obj obj\ReceiverS.obj
obj\ReceiverImpl.obj obj\ORBThread.obj"/>
<RESFILES value="ChatClient.res"/>
<IDLFILES value=""/>
@@ -13,11 +13,11 @@
<DEFFILE value=""/>
<RESDEPEN value="$(RESFILES) ChatClientWnd.dfm"/>
<LIBFILES value=""/>
- <LIBRARIES value="ACE_bd.lib TAO_bd.lib TAO_PortableServer_bd.lib TAO_AnyTypeCode_bd.lib"/>
- <SPARELIBS value="rtl.lib vcl.lib TAO_AnyTypeCode_bd.lib TAO_PortableServer_bd.lib TAO_bd.lib ACE_bd.lib"/>
- <PACKAGES value="rtl.bpi vcl.bpi vclx.bpi vcljpg.bpi bcbsmp.bpi qrpt.bpi dbrtl.bpi
- vcldb.bpi bdertl.bpi ibsmp.bpi vcldbx.bpi teeui.bpi teedb.bpi tee.bpi
- nmfast.bpi dclocx.bpi"/>
+ <LIBRARIES value="ACE_bd.lib TAO_bd.lib TAO_PortableServer_bd.lib"/>
+ <SPARELIBS value="vcl50.lib TAO_PortableServer_bd.lib TAO_bd.lib ACE_bd.lib"/>
+ <PACKAGES value="vcl50.bpi vclx50.bpi vcljpg50.bpi bcbsmp50.bpi qrpt50.bpi vcldb50.bpi
+ vclbde50.bpi ibsmp50.bpi vcldbx50.bpi teeui50.bpi teedb50.bpi tee50.bpi
+ nmfast50.bpi dclocx50.bpi"/>
<PATHCPP value=".;"/>
<PATHPAS value=".;"/>
<PATHRC value=".;"/>
@@ -29,42 +29,25 @@
<SYSDEFINES value="_RTLDLL;NO_STRICT;USEPACKAGES"/>
<MAINSOURCE value="ChatClient.cpp"/>
<INCLUDEPATH value="$(BCB)\include;$(BCB)\include\vcl;..\..\..;..\.."/>
- <LIBPATH value="$(BCB)\lib\debug;$(BCB)\lib\obj;$(BCB)\lib;..\..\..\lib"/>
+ <LIBPATH value="$(BCB)\lib\obj;$(BCB)\lib;..\..\..\bin\Dynamic\Debug"/>
<WARNINGS value="-w-rvl -w-rch -w-par -w-obs -w-8027 -w-8026 -w-aus"/>
<WARNOPTSTR value=""/>
- <OTHERFILES value=""/>
</MACROS>
<OPTIONS>
- <IDLCFLAGS value="-I$(BCB)\include -I$(BCB)\include\vcl -I..\..\.. -I..\.. -src_suffix cpp
+ <IDLCFLAGS value="-I$(BCB)\include -I$(BCB)\include\vcl -I..\..\.. -I..\.. -src_suffix cpp
-DACE_HAS_VCL=1 -boa"/>
- <CFLAG1 value="-Og -Ov -OS -H=obj\ChatClient.csm -Hh=pch.h -Hc -Vx -Ve -X- -a8 -b- -k-
+ <CFLAG1 value="-Og -Ov -OS -H=obj\ChatClient.csm -Hh=pch.h -Hc -Vx -Ve -X- -a8 -b- -k-
-vi -c -tW -tWM"/>
- <PFLAGS value="-N2obj -N0obj -$Y- -$L- -$D- -$A8 -v -JPHNE -M"/>
+ <PFLAGS value="-N2obj -N0obj -$Y- -$L- -$D- -v -JPHNE -M"/>
<RFLAGS value=""/>
<AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="-Iobj -D&quot;&quot; -aa -Tpe -x -Gn"/>
- <OTHERFILES value=""/>
</OPTIONS>
<LINKER>
<ALLOBJ value="c0w32.obj $(PACKAGES) Memmgr.Lib sysinit.obj $(OBJFILES)"/>
<ALLRES value="$(RESFILES)"/>
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cp32mti.lib"/>
- <OTHERFILES value=""/>
</LINKER>
- <FILELIST>
- <FILE FILENAME="ChatClient.cpp" FORMNAME="" UNITNAME="ChatClient" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="ChatClient.res" FORMNAME="" UNITNAME="ChatClient" CONTAINERID="ResTool" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="ChatClientWnd.cpp" FORMNAME="ChatClientWindow" UNITNAME="ChatClientWnd" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="BroadcasterC.cpp" FORMNAME="" UNITNAME="BroadcasterC" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="BroadcasterS.cpp" FORMNAME="" UNITNAME="BroadcasterS" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="ReceiverC.cpp" FORMNAME="" UNITNAME="ReceiverC" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="ReceiverS.cpp" FORMNAME="" UNITNAME="ReceiverS" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="ReceiverImpl.cpp" FORMNAME="" UNITNAME="ReceiverImpl" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- <FILE FILENAME="ORBThread.cpp" FORMNAME="" UNITNAME="ORBThread" CONTAINERID="CCompiler" DESIGNCLASS="" LOCALCOMMAND=""/>
- </FILELIST>
- <BUILDTOOLS>
- </BUILDTOOLS>
-
<IDEOPTIONS>
[Version Info]
IncludeVerInfo=0
@@ -99,8 +82,8 @@ Item0=$(BCB)\include;$(BCB)\include\vcl;..\..\..;..\..
[HistoryLists\hlLibraryPath]
Count=2
-Item0=$(BCB)\lib\debug;$(BCB)\lib\obj;$(BCB)\lib;..\..\..\lib
-Item1=$(BCB)\lib\obj;$(BCB)\lib;..\..\..\lib
+Item0=$(BCB)\lib\obj;$(BCB)\lib;..\..\..\bin\Dynamic\Debug
+Item1=$(BCB)\lib\obj;$(BCB)\lib;..\..\..\bin\Dynamic\Release\Pascal
[HistoryLists\hlConditionals]
Count=2
@@ -120,14 +103,9 @@ DebugSourceDirs=
[Parameters]
RunParams=
-Launcher=
-UseLauncher=0
-DebugCWD=
HostApplication=
RemoteHost=
RemotePath=
-RemoteLauncher=
-RemoteCWD=
RemoteDebug=0
[Compiler]
@@ -135,9 +113,14 @@ ShowInfoMsgs=0
LinkDebugVcl=0
LinkCGLIB=0
+[CORBA]
+AddServerUnit=1
+AddClientUnit=1
+PrecompiledHeaders=1
+
[Language]
ActiveLang=
ProjectLang=
RootDir=
</IDEOPTIONS>
-</PROJECT>
+</PROJECT> \ No newline at end of file
diff --git a/TAO/examples/Borland/ChatClient.cpp b/TAO/examples/Borland/ChatClient.cpp
index 581ba38a9aa..d3090a82aa1 100644
--- a/TAO/examples/Borland/ChatClient.cpp
+++ b/TAO/examples/Borland/ChatClient.cpp
@@ -5,7 +5,14 @@
#include "ace/ace.h"
#include "tao/corba.h"
#include "ChatClientWnd.h"
+USERES("ChatClient.res");
USEFORM("ChatClientWnd.cpp", ChatClientWindow);
+USEUNIT("BroadcasterC.cpp");
+USEUNIT("BroadcasterS.cpp");
+USEUNIT("ReceiverC.cpp");
+USEUNIT("ReceiverS.cpp");
+USEUNIT("ReceiverImpl.cpp");
+USEUNIT("ORBThread.cpp");
//---------------------------------------------------------------------------
#pragma package(smart_init)
@@ -28,7 +35,7 @@ WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
Application->Initialize ();
Application->Title = "CORBA Chat Client";
Application->CreateForm(__classid(TChatClientWindow), &ChatClientWindow);
- Application->Run ();
+ Application->Run ();
}
catch (Exception &exception)
{
diff --git a/TAO/examples/Borland/ChatClient.mpc b/TAO/examples/Borland/ChatClient.mpc
deleted file mode 100644
index cb44c0bd968..00000000000
--- a/TAO/examples/Borland/ChatClient.mpc
+++ /dev/null
@@ -1,17 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Client) : taoserver, utils, iortable, vcl {
- exename = chatclient
- IDL_Files {
- Broadcaster.idl
- Receiver.idl
- }
- Source_Files {
- ReceiverImpl.cpp
- ChatClient.cpp
- ORBThread.cpp
- ChatClientWnd.cpp
- }
-}
-
diff --git a/TAO/examples/Borland/ChatClient.res b/TAO/examples/Borland/ChatClient.res
index f9a73d9bd42..39b9f668653 100644
--- a/TAO/examples/Borland/ChatClient.res
+++ b/TAO/examples/Borland/ChatClient.res
Binary files differ
diff --git a/TAO/examples/Borland/ChatClientWnd.cpp b/TAO/examples/Borland/ChatClientWnd.cpp
index c77a5f43e1e..10b653ce555 100644
--- a/TAO/examples/Borland/ChatClientWnd.cpp
+++ b/TAO/examples/Borland/ChatClientWnd.cpp
@@ -81,8 +81,8 @@ void __fastcall TChatClientWindow::WMMessageReceived (TMessage& Message)
delete str;
}
//---------------------------------------------------------------------------
-void __fastcall TChatClientWindow::FormClose (TObject *,
- TCloseAction &)
+void __fastcall TChatClientWindow::FormClose (TObject *Sender,
+ TCloseAction &Action)
{
try
{
@@ -96,7 +96,7 @@ void __fastcall TChatClientWindow::FormClose (TObject *,
}
}
//---------------------------------------------------------------------------
-void __fastcall TChatClientWindow::InputMemoKeyPress (TObject *, char &Key)
+void __fastcall TChatClientWindow::InputMemoKeyPress (TObject *Sender, char &Key)
{
if (Key == '\n' || Key == '\r')
{
diff --git a/TAO/examples/Borland/README b/TAO/examples/Borland/README
index ff39370bbd1..5e81dd95a76 100644
--- a/TAO/examples/Borland/README
+++ b/TAO/examples/Borland/README
@@ -3,14 +3,14 @@ $Id$
Before compiling the example in The Borland C++ Builder IDE
you must generate the client and server stubs using build_idl.bat.
Please update the location of the tao_idl dependent on your build
-configuration. The default location is for a BCB6 Dynamic Debug
-configuration.
+configuration. The default location is for a BCB4 Dynamic Debug
+Pascal configuration.
In the project file you must also update the names of the ACE and
-TAO libraries that you use. The configured names are for the BCB6
-Dynamic Debug configuration.
+TAO libraries that you use. The configured names are for the BCB4
+Dynamic Debug Pascal configuration.
This directory illustrates how to write a Borland C++ Builder
-application using ACE+TAO. Please contact Johnny Willemsen
-<jwillemsen@remedy.nl> if you have any questions.
+application using ACE+TAO. Please contact Jody Hagins
+<jody@atdesk.com> if you have any questions.
diff --git a/TAO/examples/Buffered_AMI/Buffered_AMI.mpc b/TAO/examples/Buffered_AMI/Buffered_AMI.mpc
index 5194742ca10..5f43c5681ad 100644
--- a/TAO/examples/Buffered_AMI/Buffered_AMI.mpc
+++ b/TAO/examples/Buffered_AMI/Buffered_AMI.mpc
@@ -1,34 +1,15 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults, ami {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
project(*Server): messaging, taoserver, ami {
- exename = server
- after += *IDL
Source_Files {
test_i.cpp
server.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
-project(*Client): messaging, taoserver, ami {
- exename = client
- after += *IDL
+project(*Client): messaging, taoexe, portableserver, ami {
Source_Files {
client.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Buffered_AMI/Makefile.am b/TAO/examples/Buffered_AMI/Makefile.am
index 06d1977ec94..f0cab01d2ea 100644
--- a/TAO/examples/Buffered_AMI/Makefile.am
+++ b/TAO/examples/Buffered_AMI/Makefile.am
@@ -16,14 +16,16 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Buffered_AMI_IDL.am
+## Makefile.Buffered_AMI_Client.am
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-BUILT_SOURCES = \
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
@@ -34,7 +36,7 @@ BUILT_SOURCES = \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
@@ -52,18 +54,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
$(TAO_IDL) $(TAO_IDLFLAGS) -GC $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-endif BUILD_CORBA_MESSAGING
-endif BUILD_AMI
-
-## Makefile.Buffered_AMI_Client.am
-
-if BUILD_AMI
-if BUILD_CORBA_MESSAGING
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -76,7 +66,11 @@ client_SOURCES = \
client.cpp \
testC.cpp \
testS.cpp \
- test_i.h
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
@@ -96,6 +90,35 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GC $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -109,6 +132,11 @@ server_SOURCES = \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h
server_LDADD = \
diff --git a/TAO/examples/Buffered_AMI/client.cpp b/TAO/examples/Buffered_AMI/client.cpp
index f74694e7d6e..bdccbf35b74 100644
--- a/TAO/examples/Buffered_AMI/client.cpp
+++ b/TAO/examples/Buffered_AMI/client.cpp
@@ -19,6 +19,7 @@
#include "tao/AnyTypeCode/TAOA.h"
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Buffered_AMI,
client,
@@ -65,13 +66,13 @@ public:
received_all_replies = 1;
}
- void method_excep (::Messaging::ExceptionHolder *holder
+ void method_excep (AMI_testExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCH(CORBA::SystemException, ex)
@@ -86,13 +87,13 @@ public:
{
}
- void shutdown_excep (::Messaging::ExceptionHolder *holder
+ void shutdown_excep (AMI_testExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCH(CORBA::SystemException, ex)
@@ -106,7 +107,7 @@ public:
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "a:b:k:m:i:t:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:b:k:m:i:t:x");
int c;
while ((c = get_opts ()) != -1)
@@ -258,22 +259,22 @@ setup_buffering_constraints (CORBA::ORB_ptr orb
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/examples/Buffered_AMI/server.cpp b/TAO/examples/Buffered_AMI/server.cpp
index 4049f81222e..72443e37bb9 100644
--- a/TAO/examples/Buffered_AMI/server.cpp
+++ b/TAO/examples/Buffered_AMI/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
#include "test_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Buffered_AMI,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,13 +38,13 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -62,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -78,7 +79,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/Buffered_Oneways/Buffered_Oneways.mpc b/TAO/examples/Buffered_Oneways/Buffered_Oneways.mpc
index 15d4771a09c..4377ad161f0 100644
--- a/TAO/examples/Buffered_Oneways/Buffered_Oneways.mpc
+++ b/TAO/examples/Buffered_Oneways/Buffered_Oneways.mpc
@@ -1,31 +1,15 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
project(*Server): taoserver, messaging {
- after += *IDL
Source_Files {
test_i.cpp
server.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
project(*Client): taoclient, messaging {
- after += *IDL
Source_Files {
client.cpp
- testC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Buffered_Oneways/Makefile.am b/TAO/examples/Buffered_Oneways/Makefile.am
index ab48864b8b6..596a38dd0b8 100644
--- a/TAO/examples/Buffered_Oneways/Makefile.am
+++ b/TAO/examples/Buffered_Oneways/Makefile.am
@@ -16,11 +16,15 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Buffered_Oneways_IDL.am
+## Makefile.Buffered_Oneways_Client.am
+
+if BUILD_CORBA_MESSAGING
-BUILT_SOURCES = \
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
@@ -31,7 +35,7 @@ BUILT_SOURCES = \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
@@ -46,17 +50,9 @@ CLEANFILES = \
testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/test.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.Buffered_Oneways_Client.am
-
-if BUILD_CORBA_MESSAGING
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -68,7 +64,12 @@ client_CPPFLAGS = \
client_SOURCES = \
client.cpp \
testC.cpp \
- test_i.h
+ testS.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
@@ -86,6 +87,35 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -99,6 +129,11 @@ server_SOURCES = \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h
server_LDADD = \
diff --git a/TAO/examples/Buffered_Oneways/client.cpp b/TAO/examples/Buffered_Oneways/client.cpp
index 7851ec8638e..d4af0615cd1 100644
--- a/TAO/examples/Buffered_Oneways/client.cpp
+++ b/TAO/examples/Buffered_Oneways/client.cpp
@@ -19,6 +19,7 @@
#include "tao/AnyTypeCode/TAOA.h"
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Buffered_Oneways, client, "$Id$")
@@ -50,7 +51,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:f:c:b:i:z:t:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:f:c:b:i:z:t:x");
int c;
while ((c = get_opts ()) != -1)
@@ -114,22 +115,22 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/examples/Buffered_Oneways/server.cpp b/TAO/examples/Buffered_Oneways/server.cpp
index 3b900d8f8a3..f286936ffee 100644
--- a/TAO/examples/Buffered_Oneways/server.cpp
+++ b/TAO/examples/Buffered_Oneways/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Buffered_Oneways, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,13 +36,13 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -60,7 +61,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -76,7 +77,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/CSD_Strategy/Makefile.am b/TAO/examples/CSD_Strategy/Makefile.am
deleted file mode 100644
index 3684f39d2e2..00000000000
--- a/TAO/examples/CSD_Strategy/Makefile.am
+++ /dev/null
@@ -1,18 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-SUBDIRS = \
- ThreadPool \
- ThreadPool2 \
- ThreadPool3 \
- ThreadPool4 \
- ThreadPool5 \
- ThreadPool6
-
diff --git a/TAO/examples/CSD_Strategy/README b/TAO/examples/CSD_Strategy/README
deleted file mode 100644
index 05a14e7af7e..00000000000
--- a/TAO/examples/CSD_Strategy/README
+++ /dev/null
@@ -1,20 +0,0 @@
-The example ThreadPool, ThreadPool2 and ThreadPool3 use the same idl file which
-defines some twoway calls and a simple oneway call and they are different just
-because of their configurations such as the number of servants, the number of
-ORB threads and the number of csd threads.
-
-ThreadPool - 1 servant, 1 ORB theread (main thread), 1 csd thread.
-ThreadPool2 - multiple servants, 1 ORB theread (main thread), multiple
-csd threads.
-ThreadPool3 - 1 servant, multiple ORB thereads (main thread), multiple
-csd threads.
-
-The example 6 is simply a copy of the threadpool example, the only difference
-is it uses the TIE approach.
-
-The example ThreadPool4 and ThreadPool5 use the same idl file which includes
-the operations defined in example ThreadPool, ThreadPool2 and ThreadPool3 in
-addition of callbacks and the oneway "IN" argument test. The ThreadPool4 is
-a collocated test. The ThreadPool5 combines all other test cases together except
-the ThreadPool6 example.
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc b/TAO/examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc
deleted file mode 100644
index ee5b527e7c6..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/CSD_Test_ThreadPool.mpc
+++ /dev/null
@@ -1,25 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server) : csd_threadpool, taoserver, pi {
- exename = server_main
-
- Source_Files {
- Foo_i.cpp
- ServerApp.cpp
- server_main.cpp
- OrbShutdownTask.cpp
- }
-}
-
-project(*Client): taoexe, anytypecode {
- exename = client_main
- after += *Server
-
- Source_Files {
- FooC.cpp
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/ClientApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool/ClientApp.cpp
deleted file mode 100644
index a81a617566c..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/ClientApp.cpp
+++ /dev/null
@@ -1,143 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "FooC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-
-
-ClientApp::ClientApp()
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb
- = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- CORBA::Object_var obj
- = orb->string_to_object(this->ior_.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- Foo_var foo = Foo::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(foo.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to Foo interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- for (CORBA::Long i = 1; i <= 100; i++)
- {
- foo->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- foo->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- CORBA::Long value = foo->op3(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Value retrieved from op3() == %d\n",
- value));
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- foo->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
- ACE_TRY_NEW_ENV
- {
- foo->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Caught FooException - as expected.\n"));
-
- }
- ACE_ENDTRY;
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Tell server that we are done().\n"));
-
- foo->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Back from done().\n"));
-
- return 0;
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/ClientApp.h b/TAO/examples/CSD_Strategy/ThreadPool/ClientApp.h
deleted file mode 100644
index 1c706005563..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/ClientApp.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-class ClientApp
-{
- public:
-
- ClientApp();
- ~ClientApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString ior_;
-
- ACE_CString exe_name_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/Foo.idl b/TAO/examples/CSD_Strategy/ThreadPool/Foo.idl
deleted file mode 100644
index f4a756a31b1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/Foo.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-exception FooException {};
-exception TestException {};
-
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, no arguments
- long op3();
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. It will shutdown the server.
- void done();
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/Foo_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool/Foo_i.cpp
deleted file mode 100644
index 66e424d8781..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/Foo_i.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "OrbShutdownTask.h"
-#include "ace/OS.h"
-
-Foo_i::Foo_i(unsigned num_clients)
- : value_(0),
- num_clients_(num_clients),
- count_op1_(0),
- count_op2_(0),
- count_op3_(0),
- count_op4_(0),
- count_op5_(0)
-{
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) Number of clients for Foo_i servant: %d\n",
- num_clients));
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op1_;
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op2_;
- this->value_ = value;
-}
-
-
-CORBA::Long
-Foo_i::op3(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op3_;
- return this->value_;
-}
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op4_;
- this->value_ = value;
-
- if (this->count_op4_ % 500 == 0)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) op4() has been called %d times now. value == %d\n",
- this->count_op4_, this->value_));
- }
-
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ++this->count_op5_;
- ACE_THROW_SPEC (FooException());
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- unsigned num_left = --this->num_clients_;
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) A client has reported that it is done(). "
- "There are %d clients left.\n", num_left));
-
- if (num_left == 0)
- {
- ACE_DEBUG((LM_DEBUG, "(%P|%t) Stats:\n"
- "op1() count: %d\n"
- "op2() count: %d\n"
- "op3() count: %d\n"
- "op4() count: %d\n"
- "op5() count: %d\n",
- this->count_op1_,
- this->count_op2_,
- this->count_op3_,
- this->count_op4_,
- this->count_op5_));
-
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_i::done: failed to create orb "\
- "shutdown thread.\n"));
- }
- }
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool/Foo_i.h
deleted file mode 100644
index c1da2d5811b..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/Foo_i.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "FooS.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class Foo_i : public virtual POA_Foo
-{
- public:
-
- Foo_i(unsigned num_clients);
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
-
- private:
-
- CORBA::Long value_;
- unsigned num_clients_;
-
- unsigned count_op1_;
- unsigned count_op2_;
- unsigned count_op3_;
- unsigned count_op4_;
- unsigned count_op5_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/Makefile.am b/TAO/examples/CSD_Strategy/ThreadPool/Makefile.am
deleted file mode 100644
index 1c051f39f86..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/Makefile.am
+++ /dev/null
@@ -1,143 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.CSD_Test_ThreadPool_Server.am
-
-BUILT_SOURCES = \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES = \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS = server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-server_main_SOURCES = \
- FooC.cpp \
- FooS.cpp \
- Foo_i.cpp \
- OrbShutdownTask.cpp \
- ServerApp.cpp \
- server_main.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl \
- Foo_i.h \
- OrbShutdownTask.h \
- ServerApp.h
-
-server_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Makefile.CSD_Test_ThreadPool_Client.am
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS += client_main
-
-client_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-client_main_SOURCES = \
- ClientApp.cpp \
- FooC.cpp \
- client_main.cpp \
- ClientApp.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl
-
-client_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.cpp
deleted file mode 100644
index f9d551e8aee..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate (orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_OS::sleep (2);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t)OrbShutdownTask::svc shutdown orb \n"));
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.h b/TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.h
deleted file mode 100644
index 3795d12c3c9..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/OrbShutdownTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-typedef ACE_Singleton<OrbShutdownTask, ACE_Thread_Mutex> TheOrbShutdownTask;
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/README b/TAO/examples/CSD_Strategy/ThreadPool/README
deleted file mode 100644
index 76a46ba103f..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/README
+++ /dev/null
@@ -1,57 +0,0 @@
-# $Id$
-
-Description:
-
-This is the simplest example shows the use of a Custom Servant Dispatching (CSD)
-Strategy. This test uses the reference implementation, known as the Thread Pool
-CSD Strategy. This tests some simple remote two-way CORBA requests and a simple
-remote one-way request.
-
-The server application creates one servant object, runs the ORB event
-loop using the main thread, and uses one worker thread for the
-Thread Pool CSD Strategy.
-
-The client application invokes simple two-way calls on the object
-reference. There is also a simple one-way call that is also made on
-the object reference.
-
-The run_test.pl script will launch 1 sever process, and 40 client processes.
-Each client process will make invocations on the single object reference
-provided by the (single) server process.
-
-Executables:
-
- * client_main
-
- This is the client test executable.
-
- Command-line arguments:
-
- -? : Prints the executable's available command-line options, and
- then exits.
-
- -i <ior string> : Provide the IOR to the client (ie, file://some.ior).
-
- * server_main
-
- This is the server test executable.
-
- Command-line arguments:
-
- -? : Prints the executable's available command-line options, and
- then exits.
-
- -o <ior filename> : Name of file to which the IOR will be written.
-
- -n <num_clients> : The number of clients that will use the server.
-
- * run_test.pl
-
- This perl script will run an automated test using 40 client processes
- and 1 server process. The script returns 0 if the test was successful.
-
- No command-line options are supported. Simply execute the perl script
- as follows:
-
- $ ./run_test.pl
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool/ServerApp.cpp
deleted file mode 100644
index 8a107eff964..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/ServerApp.cpp
+++ /dev/null
@@ -1,240 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "Foo_i.h"
-#include "OrbShutdownTask.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
-: num_clients_ (1)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheOrbShutdownTask::instance()->orb (orb.in ());
-
- CORBA::Object_var obj
- = orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager( ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- PortableServer::POA_var child_poa
- = root_poa->create_POA("ChildPoa",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
- ACE_CHECK_RETURN (-1);
-
- // Create the servant object.
- Foo_i* servant = new Foo_i(this->num_clients_);
-
- // local smart pointer variable to deal with releasing the reference
- // to the servant object when the smart pointer object falls out of scope.
- PortableServer::ServantBase_var owner_transfer(servant);
-
- // Activate the servant using the Child POA.
- PortableServer::ObjectId_var oid
- = child_poa->activate_object(servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Obtain the object reference.
- obj = child_poa->servant_to_reference(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (Foo_i).\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Stringify the object reference
- CORBA::String_var ior
- = orb->object_to_string(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Write the stringified object reference to the ior file.
- FILE* ior_file = ACE_OS::fopen(this->ior_filename_.c_str(), "w");
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file for writing IOR: %s",
- this->ior_filename_.c_str()));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- ACE_OS::fprintf(ior_file, "%s", ior.in ());
- ACE_OS::fclose(ior_file);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- // Run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB has stopped running. "
- "Stop the CSD strategy.\n"));
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is waiting for OrbShutdownTask.\n"));
- TheOrbShutdownTask::instance()->wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- // Sleep for 2 second to let the done() two-way call complete
- // before cleanup.
- ACE_OS::sleep (2);
-
- // Tear-down the root poa and orb.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb->destroy( ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "o:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'o':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 'n':
- {
- int tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- this->usage_statement();
- return -1;
- }
-
- this->num_clients_ = tmp;
- }
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-o <ior_filename>]\n"
- "\t[-n <num_clients>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool/ServerApp.h
deleted file mode 100644
index ad89b43c972..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/ServerApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class ServerApp
-{
- public:
-
- ServerApp();
- ~ServerApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString exe_name_;
- ACE_CString ior_filename_;
- unsigned num_clients_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/client_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool/client_main.cpp
deleted file mode 100644
index 1f9c337ae54..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/client_main.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
-
- ClientApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ClientApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/run_test.pl b/TAO/examples/CSD_Strategy/ThreadPool/run_test.pl
deleted file mode 100755
index 7e34ffa58ba..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/run_test.pl
+++ /dev/null
@@ -1,61 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-$status = 0;
-
-$num_clients=40;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "-o $iorfile -n $num_clients");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "-o $iorfile -n $num_clients");
-}
-
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- @CLS[$i] = new PerlACE::Process ("client_main", " -i file://$iorfile");
-
- @CLS[$i]->Spawn ();
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- $client = @CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/examples/CSD_Strategy/ThreadPool/server_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool/server_main.cpp
deleted file mode 100644
index 8c3c4b192a0..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool/server_main.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "ace/Log_Msg.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
- ServerApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception in main() for ServerApp");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ServerApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc b/TAO/examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc
deleted file mode 100644
index d21cced480b..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/CSD_Test_ThreadPool2.mpc
+++ /dev/null
@@ -1,26 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_threadpool, taoserver, pi {
- exename = server_main
-
- Source_Files {
- Foo_i.cpp
- FooServantList.cpp
- ServerApp.cpp
- server_main.cpp
- OrbShutdownTask.cpp
- }
-}
-
-project(*Client): taoexe, anytypecode {
- exename = client_main
- after += *Server
-
- Source_Files {
- FooC.cpp
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.cpp
deleted file mode 100644
index 14e52e52804..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.cpp
+++ /dev/null
@@ -1,143 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "FooC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-
-
-ClientApp::ClientApp()
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb
- = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- CORBA::Object_var obj
- = orb->string_to_object(this->ior_.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- Foo_var foo = Foo::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(foo.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to Foo interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- for (CORBA::Long i = 1; i <= 100; i++)
- {
- foo->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- foo->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- CORBA::Long value = foo->op3(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Value retrieved from op3() == %d\n",
- value));
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- foo->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
- ACE_TRY_NEW_ENV
- {
- foo->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Caught FooException - as expected.\n"));
-
- }
- ACE_ENDTRY;
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Tell server that we are done().\n"));
-
- foo->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Back from done().\n"));
-
- return 0;
-}
-
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- this->usage_statement();
- return 1;
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.h b/TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.h
deleted file mode 100644
index 7dc57bb78dc..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/ClientApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class ClientApp
-{
- public:
-
- ClientApp();
- ~ClientApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString ior_;
-
- ACE_CString exe_name_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/Foo.idl b/TAO/examples/CSD_Strategy/ThreadPool2/Foo.idl
deleted file mode 100644
index f4a756a31b1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/Foo.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-exception FooException {};
-exception TestException {};
-
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, no arguments
- long op3();
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. It will shutdown the server.
- void done();
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.cpp
deleted file mode 100644
index 1c1fc13eaf6..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-// $Id$
-#include "FooServantList.h"
-#include "Foo_i.h"
-#include "OrbShutdownTask.h"
-#include "ace/OS.h"
-
-
-FooServantList::FooServantList(const char* prefix,
- unsigned num_servants,
- unsigned num_clients,
- CORBA::ORB_ptr orb)
- : prefix_(prefix),
- num_servants_(num_servants),
- num_clients_(num_clients),
- orb_ (CORBA::ORB::_duplicate(orb))
-{
- this->servants_ = new PortableServer::ServantBase_var[num_servants];
-}
-
-
-FooServantList::~FooServantList()
-{
- delete [] this->servants_;
-}
-
-
-void
-FooServantList::create_and_activate(PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
-{
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- char buf[32];
- ACE_OS::sprintf(buf, "%02d", i + 1);
- ACE_CString servant_name = this->prefix_ + "_" + buf;
-
- this->servants_[i] = new Foo_i(servant_name.c_str(),this);
-
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId(servant_name.c_str());
-
- poa->activate_object_with_id(id.in(),
- this->servants_[i].in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Object_var obj = poa->id_to_reference(id.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (%s).\n",
- servant_name.c_str()));
- ACE_THROW (TestException());
- }
-
- CORBA::String_var ior
- = this->orb_->object_to_string(obj.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_CString filename = servant_name + ".ior";
- FILE* ior_file = ACE_OS::fopen(filename.c_str(), "w");
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file (%s) for writing IOR.",
- filename.c_str()));
- ACE_THROW (TestException());
- }
-
- ACE_OS::fprintf(ior_file, "%s", ior.in());
- ACE_OS::fclose(ior_file);
- }
-}
-
-
-void
-FooServantList::client_done(ACE_ENV_SINGLE_ARG_DECL)
-{
- unsigned num_left;
-
- {
- GuardType guard(this->num_clients_lock_);
- num_left = --this->num_clients_;
- }
-
- if (num_left == 0)
- {
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)FooServantList::client_done: "
- "failed to create orb shutdown thread.\n"));
- }
- }
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h b/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h
deleted file mode 100644
index d6e35ff894a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/FooServantList.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-#ifndef FOOSERVANTLIST_H
-#define FOOSERVANTLIST_H
-
-#include "tao/ORB.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "ace/SString.h"
-
-
-class FooServantList
-{
- public:
-
- FooServantList(const char* prefix,
- unsigned num_servants,
- unsigned num_clients,
- CORBA::ORB_ptr orb);
- ~FooServantList();
-
- void create_and_activate(PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL);
-
- void client_done(ACE_ENV_SINGLE_ARG_DECL);
-
-
- private:
-
- typedef ACE_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
-
- PortableServer::ServantBase_var* servants_;
- ACE_CString prefix_;
- unsigned num_servants_;
-
- LockType num_clients_lock_;
- unsigned num_clients_;
-
- CORBA::ORB_var orb_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.cpp
deleted file mode 100644
index 5923bb5b022..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "FooServantList.h"
-#include "ace/OS.h"
-
-Foo_i::Foo_i(const char* servant_name,FooServantList* mgr)
- : value_(0),
- count_op1_(0),
- count_op2_(0),
- count_op3_(0),
- count_op4_(0),
- count_op5_(0),
- servant_name_(servant_name),
- mgr_(mgr)
-{
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op1_;
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op2_;
- this->value_ = value;
-}
-
-
-CORBA::Long
-Foo_i::op3(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op3_;
- return this->value_;
-}
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op4_;
- this->value_ = value;
-
- if (this->count_op4_ % 100 == 0)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) op4() has been called %d times now. value == %d\n",
- this->count_op4_, this->value_));
- }
-
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ++this->count_op5_;
- ACE_THROW_SPEC (FooException());
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->mgr_->client_done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.h
deleted file mode 100644
index d68b2bc84c1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/Foo_i.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "FooS.h"
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-class FooServantList;
-
-class Foo_i : public virtual POA_Foo
-{
- public:
-
- Foo_i(const char* servant_name, FooServantList* mgr);
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
-
- private:
-
- CORBA::Long value_;
-
- unsigned count_op1_;
- unsigned count_op2_;
- unsigned count_op3_;
- unsigned count_op4_;
- unsigned count_op5_;
-
- ACE_CString servant_name_;
- FooServantList* mgr_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/Makefile.am b/TAO/examples/CSD_Strategy/ThreadPool2/Makefile.am
deleted file mode 100644
index b389ead8c05..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/Makefile.am
+++ /dev/null
@@ -1,145 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.CSD_Test_ThreadPool2_Server.am
-
-BUILT_SOURCES = \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES = \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS = server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-server_main_SOURCES = \
- FooC.cpp \
- FooS.cpp \
- FooServantList.cpp \
- Foo_i.cpp \
- OrbShutdownTask.cpp \
- ServerApp.cpp \
- server_main.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl \
- FooServantList.h \
- Foo_i.h \
- OrbShutdownTask.h \
- ServerApp.h
-
-server_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Makefile.CSD_Test_ThreadPool2_Client.am
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS += client_main
-
-client_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-client_main_SOURCES = \
- ClientApp.cpp \
- FooC.cpp \
- client_main.cpp \
- ClientApp.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl
-
-client_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.cpp
deleted file mode 100644
index f9d551e8aee..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate (orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_OS::sleep (2);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t)OrbShutdownTask::svc shutdown orb \n"));
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.h b/TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.h
deleted file mode 100644
index 3795d12c3c9..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/OrbShutdownTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-typedef ACE_Singleton<OrbShutdownTask, ACE_Thread_Mutex> TheOrbShutdownTask;
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/README b/TAO/examples/CSD_Strategy/ThreadPool2/README
deleted file mode 100644
index 4c770475642..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/README
+++ /dev/null
@@ -1,61 +0,0 @@
-# $Id$
-
-Description:
-
-This is another test showing the use of a Custom Servant Dispatching
-(CSD) Strategy. This test uses the reference implementation, known as the
-Thread Pool CSD Strategy. This tests some simple remote two-way CORBA
-requests and a simple remote one-way request.
-
-The server application creates 10 servant object, runs the ORB event
-loop using the main thread, and uses 10 worker thread for the
-Thread Pool CSD Strategy.
-
-The client application invokes simple two-way calls on the object
-reference. There is also a simple one-way call that is also made on
-the object reference.
-
-The run_test.pl script will launch 1 sever process, and 40 client processes.
-Since the server process contains 10 distinct servants, the clients are
-evenly divided such that each servant "serves" 4 distinct clients.
-
-
-Executables:
-
- * client_main
-
- This is the client test executable.
-
- Command-line arguments:
-
- -? : Prints the executable's available command-line options, and
- then exits.
-
- -i <ior string> : Provide the IOR to the client (ie, file://some.ior).
-
- * server_main
-
- This is the server test executable.
-
- Command-line arguments:
-
- -? : Prints the executable's available command-line options, and
- then exits.
-
- -p <ior filename prefix> : Common prefix used in all ior filenames
- that are output.
-
- -s <num servants> : The number of servant objects in the server.
-
- -c <num clients> : The number of clients that will use the server.
-
- * run_test.pl
-
- This perl script will run an automated test using 40 client processes
- and 1 server process. The script returns 0 if the test was successful.
-
- No command-line options are supported. Simply execute the perl script
- as follows:
-
- $ ./run_test.pl
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.cpp
deleted file mode 100644
index 30670fa4ee3..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.cpp
+++ /dev/null
@@ -1,232 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "FooServantList.h"
-#include "FooC.h"
-#include "OrbShutdownTask.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
- : ior_filename_("foo"),
- num_servants_(1),
- num_clients_(1)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheOrbShutdownTask::instance()->orb (orb.in ());
-
- CORBA::Object_var obj
- = orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(1);
- policies.length(1);
-
- policies[0] = root_poa->create_id_assignment_policy(PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- PortableServer::POA_var child_poa
- = root_poa->create_POA("ChildPoa",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- csd_tp_strategy->set_num_threads(this->num_servants_);
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
- ACE_CHECK_RETURN (-1);
-
- FooServantList servants(this->ior_filename_.c_str(),
- this->num_servants_,
- this->num_clients_,
- orb.in());
-
- servants.create_and_activate(child_poa.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- // Run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB has stopped running. "
- "Stop the CSD strategy.\n"));
-
- // Sleep for 2 second to let the done() two-way call complete
- // before cleanup.
- ACE_OS::sleep (2);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is waiting for OrbShutdownTask.\n"));
- TheOrbShutdownTask::instance()->wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- // Tear-down the root poa and orb.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:c:");
-
- int c;
- int tmp;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'p':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 's':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- this->usage_statement();
- return -1;
- }
-
- this->num_servants_ = tmp;
- break;
-
- case 'c':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- this->usage_statement();
- return -1;
- }
-
- this->num_clients_ = tmp;
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-p <ior_filename_prefix>]\n"
- "\t[-s <num_servants>]\n"
- "\t[-c <num_clients>]\n"
- "\t[-?]\n",
- "Default ior_filename_prefix is 'foo'.\n"
- "Default num_servants is 1.\n"
- "Default num_clients is 1.\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.h
deleted file mode 100644
index 7556826f1e2..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/ServerApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-class ServerApp
-{
- public:
-
- ServerApp();
- ~ServerApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString exe_name_;
- ACE_CString ior_filename_;
- unsigned num_servants_;
- unsigned num_clients_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/client_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/client_main.cpp
deleted file mode 100644
index 545d6b52a9a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/client_main.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
-
- ClientApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ClientApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/run_test.pl b/TAO/examples/CSD_Strategy/ThreadPool2/run_test.pl
deleted file mode 100755
index 0ca2caca046..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/run_test.pl
+++ /dev/null
@@ -1,82 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$iorfname_prefix = "server";
-$num_servants=10;
-$num_clients_per_servant=4;
-$num_clients=$num_servants * $num_clients_per_servant;
-
-#Delete old ior files.
-for (my $i = 0; $i < $num_servants; $i++) {
- $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
-
- unlink $iorfile[$i];
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "-p $iorfname_prefix -s $num_servants -c $num_clients");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "-p $iorfname_prefix -s $num_servants -c $num_clients");
-}
-
-$SV->Spawn ();
-
-# Wait for the servant ior files created by server.
-for (my $i = 0; $i < $num_servants; $i++) {
- $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
-
- if (PerlACE::waitforfile_timed ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
- }
-}
-
-$count = 0;
-
-for (my $i = 0; $i < $num_servants; $i++) {
- for ($j = 0; $j < $num_clients_per_servant; $j++) {
- $CLS[$count] = new PerlACE::Process ("client_main", " -i file://$iorfile[$i]");
- $CLS[$count]->Spawn ();
- $count ++;
- }
-}
-
-for (my $i = 0; $i < $num_clients; $i++) {
- $client = $CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for (my $i = 0; $i < $num_servants; $i++) {
- $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
-
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/examples/CSD_Strategy/ThreadPool2/server_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool2/server_main.cpp
deleted file mode 100644
index bb14220d3c7..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool2/server_main.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "ace/Log_Msg.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
- ServerApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ServerApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc b/TAO/examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc
deleted file mode 100644
index bf1561ed050..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/CSD_Test_ThreadPool3.mpc
+++ /dev/null
@@ -1,26 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_threadpool, taoserver, pi {
- exename = server_main
-
- Source_Files {
- Foo_i.cpp
- OrbTask.cpp
- ServerApp.cpp
- server_main.cpp
- OrbShutdownTask.cpp
- }
-}
-
-project(*Client): taoexe, anytypecode {
- exename = client_main
- after += *Server
-
- Source_Files {
- FooC.cpp
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.cpp
deleted file mode 100644
index b55bdff6842..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.cpp
+++ /dev/null
@@ -1,142 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "FooC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-
-
-ClientApp::ClientApp()
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb
- = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- CORBA::Object_var obj
- = orb->string_to_object(this->ior_.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- Foo_var foo = Foo::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(foo.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to Foo interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- for (CORBA::Long i = 1; i <= 100; i++)
- {
- foo->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- foo->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- CORBA::Long value = foo->op3(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Value retrieved from op3() == %d\n",
- value));
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- foo->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
- ACE_TRY_NEW_ENV
- {
- foo->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Caught FooException - as expected.\n"));
-
- }
- ACE_ENDTRY;
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Tell server that we are done().\n"));
-
- foo->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Back from done().\n"));
-
- return 0;
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- this->usage_statement();
- return 1;
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.h b/TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.h
deleted file mode 100644
index 7dc57bb78dc..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/ClientApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class ClientApp
-{
- public:
-
- ClientApp();
- ~ClientApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString ior_;
-
- ACE_CString exe_name_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/Foo.idl b/TAO/examples/CSD_Strategy/ThreadPool3/Foo.idl
deleted file mode 100644
index f4a756a31b1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/Foo.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-exception FooException {};
-exception TestException {};
-
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, no arguments
- long op3();
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. It will shutdown the server.
- void done();
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.cpp
deleted file mode 100644
index 39a83de2507..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "OrbShutdownTask.h"
-
-
-Foo_i::Foo_i(unsigned num_clients)
- : value_(0),
- num_clients_(num_clients)
-{
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->value_ = value;
-}
-
-
-CORBA::Long
-Foo_i::op3(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- return this->value_;
-}
-
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->value_ = value;
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ACE_THROW (FooException());
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- unsigned num_left = --this->num_clients_;
-
- if (num_left == 0)
- {
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_i::done: "
- "failed to create orb shutdown thread.\n"));
- }
- }
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.h
deleted file mode 100644
index 3e000a7954a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/Foo_i.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "FooS.h"
-
-
-class Foo_i : public virtual POA_Foo
-{
- public:
-
- Foo_i(unsigned num_clients);
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- private:
-
- CORBA::Long value_;
- unsigned num_clients_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/Makefile.am b/TAO/examples/CSD_Strategy/ThreadPool3/Makefile.am
deleted file mode 100644
index d4dd209e8dd..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/Makefile.am
+++ /dev/null
@@ -1,145 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.CSD_Test_ThreadPool3_Server.am
-
-BUILT_SOURCES = \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES = \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS = server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-server_main_SOURCES = \
- FooC.cpp \
- FooS.cpp \
- Foo_i.cpp \
- OrbShutdownTask.cpp \
- OrbTask.cpp \
- ServerApp.cpp \
- server_main.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl \
- Foo_i.h \
- OrbShutdownTask.h \
- OrbTask.h \
- ServerApp.h
-
-server_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Makefile.CSD_Test_ThreadPool3_Client.am
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS += client_main
-
-client_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-client_main_SOURCES = \
- ClientApp.cpp \
- FooC.cpp \
- client_main.cpp \
- ClientApp.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl
-
-client_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.cpp
deleted file mode 100644
index f9d551e8aee..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate (orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_OS::sleep (2);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t)OrbShutdownTask::svc shutdown orb \n"));
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.h b/TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.h
deleted file mode 100644
index 3795d12c3c9..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/OrbShutdownTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-typedef ACE_Singleton<OrbShutdownTask, ACE_Thread_Mutex> TheOrbShutdownTask;
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.cpp
deleted file mode 100644
index 390bbe8a317..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbTask.h"
-
-namespace { enum { MAX_ORB_TASK_WORKER_THREADS = 20 }; }
-
-
-OrbTask::OrbTask(CORBA::ORB_ptr orb, unsigned num_threads)
- : orb_ (CORBA::ORB::_duplicate(orb)),
- num_threads_(num_threads)
-{
-}
-
-
-OrbTask::~OrbTask()
-{
-}
-
-
-int
-OrbTask::open(void*)
-{
- if (this->num_threads_ < 1)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is less-than 1.\n",
- this->num_threads_),
- -1);
- }
-
- if (this->num_threads_ > MAX_ORB_TASK_WORKER_THREADS)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is too large. Max is %d.\n",
- this->num_threads_, MAX_ORB_TASK_WORKER_THREADS),
- -1);
- }
-
- if (CORBA::is_nil(this->orb_.in()))
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "ORB object reference is nil.\n"),
- -1);
- }
-
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, this->num_threads_) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to activate "
- "(%d) worker threads.\n",
- this->num_threads_),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbTask::svc()
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::run() method. "
- "OrbTask is stopping.\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.h b/TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.h
deleted file mode 100644
index dde50d15f66..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/OrbTask.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_TASK_H
-#define ORB_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-class OrbTask : public ACE_Task_Base
-{
- public:
-
- OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
- virtual ~OrbTask();
-
- virtual int open(void* x = 0);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
- unsigned num_threads_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/README b/TAO/examples/CSD_Strategy/ThreadPool3/README
deleted file mode 100644
index ebad7aba505..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/README
+++ /dev/null
@@ -1,58 +0,0 @@
-# $Id$
-
-Description:
-
-This is another test showing the use of a Custom Servant Dispatching
-(CSD) Strategy. This test uses the reference implementation, known as the
-Thread Pool CSD Strategy. This tests some simple remote two-way CORBA
-requests and a simple remote one-way request.
-
-The server application creates 1 servant object, runs the ORB event
-loop using 4 threads (one being the main thread), and uses 10 worker
-threads for the Thread Pool CSD Strategy.
-
-The client application invokes simple two-way calls on the object
-reference. There is also a simple one-way call that is also made on
-the object reference.
-
-The run_test.pl script will launch 1 sever process, and 40 client processes.
-
-
-Executables:
-
- * client_main
-
- This is the client test executable.
-
- Command-line arguments:
-
- -? : Prints the executable's available command-line options, and
- then exits.
-
- -i <ior string> : Provide the IOR to the client (ie, file://some.ior).
-
- * server_main
-
- This is the server test executable.
-
- Command-line arguments:
-
- -? : Prints the executable's available command-line options, and
- then exits.
-
- -o <ior filename> : Name of file to which IOR will be written.
-
- -n <num clients> : The number of clients that will use the server.
-
- -t <num ORB threads> : Number of threads running the ORB event loop.
-
- * run_test.pl
-
- This perl script will run an automated test using 40 client processes
- and 1 server process. The script returns 0 if the test was successful.
-
- No command-line options are supported. Simply execute the perl script
- as follows:
-
- $ ./run_test.pl
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.cpp
deleted file mode 100644
index 0c7aecbc33d..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.cpp
+++ /dev/null
@@ -1,272 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "Foo_i.h"
-#include "OrbTask.h"
-#include "OrbShutdownTask.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
- : ior_filename_("ServerApp.default.ior"),
- num_clients_(1),
- num_orb_threads_(1)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheOrbShutdownTask::instance()->orb (orb.in ());
-
- CORBA::Object_var obj
- = orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- PortableServer::POA_var child_poa
- = root_poa->create_POA("ChildPoa",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
- ACE_CHECK_RETURN (-1);
-
- // Create the servant object.
- Foo_i* servant = new Foo_i(this->num_clients_);
-
- // local smart pointer variable to deal with releasing the reference
- // to the servant object when the smart pointer object falls out of scope.
- PortableServer::ServantBase_var owner_transfer(servant);
-
- // Activate the servant using the Child POA.
- PortableServer::ObjectId_var oid
- = child_poa->activate_object(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Obtain the object reference.
- obj = child_poa->servant_to_reference(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (Foo_i).\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Stringify the object reference
- CORBA::String_var ior
- = orb->object_to_string(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Write the stringified object reference to the ior file.
- FILE* ior_file = ACE_OS::fopen(this->ior_filename_.c_str(), "w");
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file for writing IOR: %s",
- this->ior_filename_.c_str()));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- ACE_OS::fprintf(ior_file, "%s", ior.in ());
- ACE_OS::fclose(ior_file);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready.\n"));
-
- // If the num_orb_threads_ is exactly one, then just use the current
- // (mainline) thread to run the ORB event loop.
- if (this->num_orb_threads_ == 1)
- {
- // Since the num_orb_threads_ is exactly one, we just use the current
- // (mainline) thread to run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
- else
- {
- // The num_orb_threads_ is greater than 1, so we will use an OrbTask
- // (active object) to run the ORB event loop in (num_orb_threads_ - 1)
- // threads. We use the current (mainline) thread as the other thread
- // running the ORB event loop.
- OrbTask orb_task(orb.in(), this->num_orb_threads_ - 1);
-
- // Activate the OrbTask worker threads
- if (orb_task.open() != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the OrbTask.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // This will use the current (mainline) thread to run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Now that the current thread has unblocked from running the orb,
- // make sure to wait for all of the worker threads to complete.
- orb_task.wait();
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is waiting for OrbShutdownTask.\n"));
- TheOrbShutdownTask::instance()->wait ();
-
- // Sleep for 2 second to let the done() two-way call complete
- // before cleanup.
- ACE_OS::sleep (2);
-
- // Tear-down the root poa and orb.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "o:n:t:");
-
- int c;
- int tmp;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'o':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 'n':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- this->usage_statement();
- return -1;
- }
-
- this->num_clients_ = tmp;
- break;
-
- case 't':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- this->usage_statement();
- return -1;
- }
-
- this->num_orb_threads_ = tmp;
- break;
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-o <ior_filename>]\n"
- "\t[-n <num_clients>]\n"
- "\t[-t <num_orb_threads>]\n"
- "\t[-?]\n",
- "Default ior_filename_prefix is 'foo'.\n"
- "Default num_servants is 1.\n"
- "Default num_clients is 1.\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.h
deleted file mode 100644
index 9ffd10f0507..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/ServerApp.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class ServerApp
-{
- public:
-
- ServerApp();
- ~ServerApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString exe_name_;
- ACE_CString ior_filename_;
- unsigned num_clients_;
- unsigned num_orb_threads_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/client_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/client_main.cpp
deleted file mode 100644
index f1b0c4cb08a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/client_main.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "ace/Log_Msg.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
-
- ClientApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ClientApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/run_test.pl b/TAO/examples/CSD_Strategy/ThreadPool3/run_test.pl
deleted file mode 100755
index 658bdcc5326..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/run_test.pl
+++ /dev/null
@@ -1,61 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-$status = 0;
-
-$num_clients=40;
-$num_orb_threads=4;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "-o $iorfile -n $num_clients -t $num_orb_threads");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "-o $iorfile -n $num_clients -t $num_orb_threads");
-}
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- @CLS[$i] = new PerlACE::Process ("client_main", " -i file://$iorfile");
-
- @CLS[$i]->Spawn ();
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- $client = @CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/examples/CSD_Strategy/ThreadPool3/server_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool3/server_main.cpp
deleted file mode 100644
index cad2b8e119d..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool3/server_main.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "ace/Log_Msg.h"
-#include "tao/Exception.h"
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
- ServerApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ServerApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc b/TAO/examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc
deleted file mode 100644
index f0c15486469..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/CSD_Test_ThreadPool4.mpc
+++ /dev/null
@@ -1,15 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_threadpool, messaging, taoserver, pi {
- exename = server_main
-
- Source_Files {
- Foo_i.cpp
- Callback_i.cpp
- ServerApp.cpp
- server_main.cpp
- ClientTask.cpp
- OrbShutdownTask.cpp
- }
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Callback.idl b/TAO/examples/CSD_Strategy/ThreadPool4/Callback.idl
deleted file mode 100644
index 49be42260cb..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Callback.idl
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-#ifndef CALLBACK_IDL
-#define CALLBACK_IDL
-
-interface Callback
-{
- void test_method();
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.cpp
deleted file mode 100644
index c243461dcaa..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// $Id$
-#include "Callback_i.h"
-
-
-Callback_i::Callback_i()
-{
-}
-
-
-Callback_i::~Callback_i ()
-{
-}
-
-
-void
-Callback_i::test_method (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, "(%P|%t)Callback_i::test_method called \n"));
-
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.h b/TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.h
deleted file mode 100644
index dae67d71eb0..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Callback_i.h
+++ /dev/null
@@ -1,26 +0,0 @@
-// $Id$
-#ifndef CALLBACK_I_H
-#define CALLBACK_I_H
-
-#include "CallbackS.h"
-
-
-class Callback_i : public virtual POA_Callback
-{
- public:
-
- Callback_i();
-
- virtual ~Callback_i();
-
- virtual void test_method (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.cpp
deleted file mode 100644
index 93aadcf0e78..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.cpp
+++ /dev/null
@@ -1,213 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "ClientTask.h"
-#include "ace/SString.h"
-#include "ace/OS.h"
-
-
-ClientTask::ClientTask(Foo_ptr foo,
- Callback_ptr callback)
-: foo_(Foo::_duplicate(foo)),
- callback_(Callback::_duplicate(callback))
-{
-}
-
-
-ClientTask::~ClientTask()
-{
-}
-
-
-int
-ClientTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) ClientTask failed to activate "
- "the client thread.\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-ClientTask::svc()
-{
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc start\n"));
-
- ACE_TRY_NEW_ENV
- {
- for (CORBA::Long i = 1; i <= 100; i++)
- {
- // Simple Two-way calls.
- this->foo_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- CORBA::Long value = this->foo_->op3(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Value retrieved from op3() == %d\n",
- value));
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- this->foo_->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_TRY_EX (op5)
- {
- ACE_DEBUG((LM_DEBUG, "(%P|%t) ===> Invoke op5()\n"));
- this->foo_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (op5);
- ACE_DEBUG((LM_DEBUG, "(%P|%t) ===> No exception raised from op5(). :-(\n"));
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Caught FooException - as expected.\n"));
-
- }
- ACE_ENDTRY;
-
- // Two-Way calls with inout parameters.
- CORBA::String_var message = CORBA::string_dup( "Hello! " );
- CORBA::Boolean result
- = this->foo_->op6( "TAO User", message.inout() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (result)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Message from op6() == %s\n",
- message.in ()));
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> op6() returned false.\n"));
- }
-
- // Callback test.
- this->foo_->callback_object (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->test_callback (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // One-Way calls with various arguments.
- CORBA::String_var ub_string = CORBA::string_dup( "UNBOUNDED STRING" );
- this->foo_->test_unbounded_string_arg (ub_string.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var bd_string = CORBA::string_dup( "BOUNDED STRING" );
- this->foo_->test_bounded_string_arg (bd_string.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Fixed_Array fixed_array;
-
- for (CORBA::ULong m = 0; m < 20; m ++)
- {
- fixed_array[m] = i + m;
- }
-
- this->foo_->test_fixed_array_arg (fixed_array ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Var_Array var_array;
- var_array[0] = CORBA::string_dup( "STRING 1" );
- var_array[1] = CORBA::string_dup( "STRING 2" );
- var_array[2] = CORBA::string_dup( "STRING 3" );
- this->foo_->test_var_array_arg (var_array ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Bounded_Var_Size_var bd_var_size_string = new Bounded_Var_Size();
- const char* buffer1 = "BOUNDED VAR SIZE CHAR";
- bd_var_size_string->replace (bd_var_size_string->maximum (),
- ACE_OS::strlen (buffer1) + 1,
- (CORBA::Char*)buffer1);
- this->foo_->test_bounded_var_size_arg (bd_var_size_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- const char* buffer2 = "UNBOUNDED VAR SIZE CHAR";
- Unbounded_Var_Size_var ub_var_size_string = new Unbounded_Var_Size(100);
- ub_var_size_string->replace (ub_var_size_string->maximum (),
- ACE_OS::strlen (buffer2) + 1,
- (CORBA::Char*)buffer2);
- this->foo_->test_unbounded_var_size_arg (ub_var_size_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TimeOfDay t;
- t.hour = 12;
- t.minute = 30;
- t.second = 10;
- this->foo_->test_fixed_size_arg (t ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->test_fixed_size_arg_two_way (t ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Boolean special_value = 1;
- this->foo_->test_special_basic_arg (special_value ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->test_objref_arg (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc - Invoke foo->done()\n"));
-
- this->foo_->done (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc - Back from foo->done()\n"));
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception in ClientTask::svc():");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in ClientTask::svc()\n"));
- }
- ACE_ENDTRY;
-
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc end\n"));
-
- return 0;
-}
-
-
-int
-ClientTask::close(u_long)
-{
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::close() - enter/exit\n"));
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.h b/TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.h
deleted file mode 100644
index 2f0aa572f8a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/ClientTask.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef CLIENT_TASK_H
-#define CLIENT_TASK_H
-
-#include "FooC.h"
-#include "CallbackC.h"
-#include "ace/Task.h"
-
-class ClientTask : public ACE_Task_Base
-{
- public:
-
- ClientTask(Foo_ptr foo,
- Callback_ptr callback);
-
- virtual ~ClientTask();
-
- virtual int open(void* x = 0);
- virtual int svc();
- virtual int close(u_long);
-
- private:
- Foo_var foo_;
- Callback_var callback_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Foo.idl b/TAO/examples/CSD_Strategy/ThreadPool4/Foo.idl
deleted file mode 100644
index ac276067408..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Foo.idl
+++ /dev/null
@@ -1,73 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-#include "Callback.idl"
-
-exception FooException {};
-exception TestException {};
-
-typedef sequence<char, 32> Bounded_Var_Size;
-typedef sequence<char> Unbounded_Var_Size;
-typedef long Fixed_Array[20];
-typedef string Var_Array [3];
-
-struct TimeOfDay {
- short hour; // 0 - 23
- short minute; // 0 - 59
- short second; // 0 - 59
-};
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, no arguments
- long op3();
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Operation with the inout parameter.
- boolean op6(in string user_name,
- inout string message);
-
- oneway void test_unbounded_string_arg(in string message);
-
- oneway void test_bounded_string_arg(in string<20> message);
-
- oneway void test_fixed_array_arg(in Fixed_Array message);
-
- oneway void test_var_array_arg(in Var_Array messages);
-
- oneway void test_bounded_var_size_arg(in Bounded_Var_Size message);
-
- oneway void test_unbounded_var_size_arg(in Unbounded_Var_Size message);
-
- oneway void test_fixed_size_arg (in TimeOfDay t);
-
- oneway void test_special_basic_arg(in boolean value);
-
- oneway void test_objref_arg (in Callback cb);
-
- void test_fixed_size_arg_two_way (in TimeOfDay t);
-
- /// Operation with the object reference parameter.
- void callback_object (in Callback cb);
-
- /// Operation that invoke remote operation on
- // callback object.
- void test_callback () raises (FooException);
-
- /// Client calls this last. It will shutdown the server.
- void done();
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.cpp
deleted file mode 100644
index ad128eb15d6..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.cpp
+++ /dev/null
@@ -1,302 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "OrbShutdownTask.h"
-#include "ace/OS.h"
-
-Foo_i::Foo_i(const char* servant_name)
-: value_(0),
- count_op1_(0),
- count_op2_(0),
- count_op3_(0),
- count_op4_(0),
- count_op5_(0),
- servant_name_(servant_name)
-{
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op1_;
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op2_;
- this->value_ = value;
-}
-
-
-CORBA::Long
-Foo_i::op3(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op3_;
- return this->value_;
-}
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op4_;
- this->value_ = value;
-
- if (this->count_op4_ % 1 == 0)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) op4() has been called %d times now. value == %d\n",
- this->count_op4_, this->value_));
- }
-
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ACE_DEBUG((LM_DEBUG, "(%P|%t) Foo_i::op5() - ENTER\n"));
- ACE_DEBUG((LM_DEBUG, "(%P|%t) Foo_i::op5() - Increment counter.\n"));
- unsigned newcount = ++this->count_op5_;
- ACE_DEBUG((LM_DEBUG, "(%P|%t) Foo_i::op5() - Counter is now %d.\n", newcount));
- ACE_DEBUG((LM_DEBUG, "(%P|%t) Foo_i::op5() - EXIT - Raise a FooException.\n"));
- ACE_THROW_SPEC (FooException());
-}
-
-
-CORBA::Boolean
-Foo_i::op6 (
- const char * user_name,
- char *& message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_CString str(message);
- str += user_name;
- CORBA::string_free (message);
- message = CORBA::string_dup (str.c_str ());
- return 1;
-}
-
-
-void
-Foo_i::test_unbounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
-CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_unbounded_string_arg ")
- ACE_TEXT("got unbounded string %s\n"),
- message));
-}
-
-
-void
-Foo_i::test_bounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
-CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_bounded_string_arg ")
- ACE_TEXT("got bounded string %s\n"),
- message));
-}
-
-
-void
-Foo_i::test_fixed_array_arg (
- const ::Fixed_Array message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- for (CORBA::ULong i = 0; i < 20; i++)
- {
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_fixed_array_arg ")
- ACE_TEXT("got fixed_array[i] = %d\n"),
- i, message[i]));
- }
-}
-
-
-void
-Foo_i::test_bounded_var_size_arg (
- const ::Bounded_Var_Size & message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_bounded_var_size_arg ")
- ACE_TEXT("got var array chars %s\n"),
- message.get_buffer ()));
-}
-
-
-void
-Foo_i::test_unbounded_var_size_arg (
- const ::Unbounded_Var_Size & message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_unbounded_var_size_arg ")
- ACE_TEXT("got var array chars %s\n"),
- message.get_buffer ()));
-}
-
-
-void
-Foo_i::test_fixed_size_arg (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_fixed_size_arg ")
- ACE_TEXT("got timeofday %d:%d:%d\n"),
- t.hour, t.minute, t.second));
-}
-
-void
-Foo_i::test_fixed_size_arg_two_way (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_fixed_size_arg_two_way ")
- ACE_TEXT("got timeofday %d:%d:%d\n"),
- t.hour, t.minute, t.second));
-}
-
-void
-Foo_i::test_var_array_arg (
- const ::Var_Array messages
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_var_array_arg ")
- ACE_TEXT(" %s \n"), messages[0].in ()));
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_var_array_arg ")
- ACE_TEXT(" %s \n"), messages[1].in ()));
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_var_array_arg ")
- ACE_TEXT(" %s \n"), messages[2].in ()));
-}
-
-
-void
-Foo_i::test_special_basic_arg (
- ::CORBA::Boolean value
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_special_basic_arg ")
- ACE_TEXT(" got special basic arg: %d \n"), value));
-}
-
-
-void
-Foo_i::test_objref_arg (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- this->callback_ = Callback::_duplicate (cb);
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_objref_arg ")
- ACE_TEXT(" got callback object. \n")));
-}
-
-
-void
-Foo_i::callback_object (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- this->callback_ = Callback::_duplicate (cb);
-}
-
-void
-Foo_i::test_callback (
- ACE_ENV_SINGLE_ARG_DECL
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException, FooException
-))
-{
- if (CORBA::is_nil (this->callback_.in ()))
- {
- ACE_THROW (FooException ());
- }
- else
- {
- this->callback_->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- static ACE_Atomic_Op <ACE_SYNCH_MUTEX, unsigned> num_clients = 2;
-
- num_clients --;
-
- if (num_clients == 0)
- {
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_i::done: "
- "failed to create orb shutdown thread.\n"));
- }
- }
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.h
deleted file mode 100644
index e5b465d24c6..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Foo_i.h
+++ /dev/null
@@ -1,157 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "FooS.h"
-#include "CallbackC.h"
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-class FooServantList;
-
-class Foo_i : public virtual POA_Foo
-{
- public:
-
- Foo_i(const char* servant_name);
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual CORBA::Boolean op6 (
- const char * user_name,
- char *& message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_unbounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_bounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_fixed_array_arg (
- const ::Fixed_Array message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_var_array_arg (
- const ::Var_Array messages
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_bounded_var_size_arg (
- const ::Bounded_Var_Size & message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_unbounded_var_size_arg (
- const ::Unbounded_Var_Size & message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_fixed_size_arg (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_fixed_size_arg_two_way (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_special_basic_arg (
- ::CORBA::Boolean value
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_objref_arg (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void callback_object (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_callback (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException, FooException
- ));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
-
- private:
-
- CORBA::Long value_;
-
- unsigned count_op1_;
- unsigned count_op2_;
- unsigned count_op3_;
- unsigned count_op4_;
- unsigned count_op5_;
-
- ACE_CString servant_name_;
- Callback_var callback_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/Makefile.am b/TAO/examples/CSD_Strategy/ThreadPool4/Makefile.am
deleted file mode 100644
index a5eafcb3867..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/Makefile.am
+++ /dev/null
@@ -1,139 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-CLEANFILES =
-BUILT_SOURCES =
-
-## Makefile.CSD_Test_ThreadPool4_Server.am
-
-if BUILD_CORBA_MESSAGING
-
-BUILT_SOURCES += \
- CallbackC.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.cpp \
- CallbackS.h \
- CallbackS.inl \
- CallbackS_T.cpp \
- CallbackS_T.h \
- CallbackS_T.inl
-
-CLEANFILES += \
- Callback-stamp \
- CallbackC.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.cpp \
- CallbackS.h \
- CallbackS.inl \
- CallbackS_T.cpp \
- CallbackS_T.h \
- CallbackS_T.inl
-
-CallbackC.cpp CallbackC.h CallbackC.inl CallbackS.cpp CallbackS.h CallbackS.inl CallbackS_T.cpp CallbackS_T.h CallbackS_T.inl: Callback-stamp
-
-Callback-stamp: $(srcdir)/Callback.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Callback.idl
- @touch $@
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS = server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-server_main_SOURCES = \
- CallbackC.cpp \
- CallbackS.cpp \
- Callback_i.cpp \
- ClientTask.cpp \
- FooC.cpp \
- FooS.cpp \
- Foo_i.cpp \
- OrbShutdownTask.cpp \
- ServerApp.cpp \
- server_main.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.h \
- CallbackS_T.h \
- CallbackS_T.inl \
- Callback_i.h \
- ClientTask.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl \
- Foo_i.h \
- OrbShutdownTask.h \
- ServerApp.h
-
-server_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif BUILD_CORBA_MESSAGING
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.cpp
deleted file mode 100644
index f9d551e8aee..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate (orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_OS::sleep (2);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t)OrbShutdownTask::svc shutdown orb \n"));
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.h b/TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.h
deleted file mode 100644
index 3795d12c3c9..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/OrbShutdownTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-typedef ACE_Singleton<OrbShutdownTask, ACE_Thread_Mutex> TheOrbShutdownTask;
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/README b/TAO/examples/CSD_Strategy/ThreadPool4/README
deleted file mode 100644
index 923174c8d78..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/README
+++ /dev/null
@@ -1,23 +0,0 @@
-# $Id$
-
-Description:
-
-This is another test showing the use of a Custom Servant Dispatching
-(CSD) Strategy. This test uses the reference implementation, known as the
-Thread Pool CSD Strategy. This tests collocated requests.
-
-The server application creates two servants, each with a different child
-POA. One of the POAs has a CSD Strategy applied to it, and the other does
-not. Also created are two collocated callback servants to test the
-passing of object references as arguments in collocated requests.
-
-The server activates a new thread for each of the two collocated "clients".
-
-To run the test use the run_test.pl script:
-
-$ ./run_test.pl
-
- The script returns 0 if the test was successful.
-
-
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.cpp
deleted file mode 100644
index f5e5a1006d8..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.cpp
+++ /dev/null
@@ -1,360 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "Foo_i.h"
-#include "Callback_i.h"
-#include "ClientTask.h"
-#include "OrbShutdownTask.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-#include "tao/Messaging/Messaging.h"
-#include "tao/AnyTypeCode/Any.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
-: synch_with_server_ (0)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheOrbShutdownTask::instance()->orb (this->orb_.in ());
-
- if (synch_with_server_)
- {
- CORBA::Object_var manager_object =
- orb_->resolve_initial_references("ORBPolicyManager"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- CORBA::PolicyManager_var policy_manager
- = CORBA::PolicyManager::_narrow(manager_object.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil (policy_manager.in ()))
- {
- ACE_ERROR ((LM_ERROR,
- " (%P|%t) Panic: nil PolicyManager\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- CORBA::Any policy_value;
- policy_value <<= Messaging::SYNC_WITH_SERVER;
- CORBA::PolicyList policies(1);
- policies.length(1);
-
- policies[0] =
- orb_->create_policy (Messaging::SYNC_SCOPE_POLICY_TYPE,
- policy_value
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- policy_manager->set_policy_overrides (policies,
- CORBA::ADD_OVERRIDE
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
- CORBA::Object_var obj
- = orb_->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(1);
- policies.length(1);
-
- policies[0] = root_poa->create_id_assignment_policy(PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- PortableServer::POA_var child_poa_1 = root_poa->create_POA("ChildPoa_1",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa_1.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the ChildPoa_1.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var child_poa_2 = root_poa->create_POA("ChildPoa_2",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa_2.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the ChildPoa_2.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- // We need create multiple working threads otherwise it would deadlock
- // with the callback test.
- csd_tp_strategy->set_num_threads(2);
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa_1.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa 1.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
- ACE_CHECK_RETURN (-1);
-
- Foo_var foo1 = this->create_foo(child_poa_1.in(),
- "foo_applied_strategy"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- Foo_var foo2 = this->create_foo(child_poa_2.in(),
- "foo_not_applied_strategy"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- Callback_var callback1
- = this->create_callback(child_poa_1.in(),
- "callback_applied_strategy"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- Callback_var callback2
- = this->create_callback(child_poa_2.in(),
- "callback_not_applied_strategy"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- // Wait for the custom stretegy launch the dispatching threads.
- ACE_OS::sleep (2);
-
- ClientTask client1 (foo1.in (), callback1.in ());
- if (client1.open() != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the collocated client1.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- ClientTask client2 (foo2.in (), callback2.in ());
- if (client2.open() != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the collocated client2.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Run the ORB event loop.
- orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB has stopped running.\n"));
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) Wait for the OrbShutdownTask.\n"));
-
- TheOrbShutdownTask::instance()->wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) Wait for the collocated client task.\n"));
-
- client1.wait ();
- client2.wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) Stop the CSD strategy.\n"));
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- // Tear-down the root poa and orb_.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb_->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "s");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 's':
- this->synch_with_server_ = 1;
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-Foo_ptr
-ServerApp::create_foo (
- PortableServer::POA_ptr poa,
- const char* servant_name
- ACE_ENV_ARG_DECL)
-{
- PortableServer::ServantBase_var servant
- = new Foo_i(servant_name);
-
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId(servant_name);
-
- poa->activate_object_with_id(id.in(), servant.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Foo::_nil ());
-
- CORBA::Object_var obj = poa->id_to_reference(id.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Foo::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (%s).\n",
- servant_name));
- ACE_THROW_RETURN (TestException(), Foo::_nil ());
- }
-
- Foo_var foo = Foo::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Foo::_nil ());
-
- return foo._retn ();
-}
-
-Callback_ptr
-ServerApp::create_callback(
- PortableServer::POA_ptr poa,
- const char* servant_name
- ACE_ENV_ARG_DECL)
-{
- PortableServer::ServantBase_var servant
- = new Callback_i();
-
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId("callback");
-
- poa->activate_object_with_id(id.in(), servant.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Callback::_nil ());
-
- CORBA::Object_var obj = poa->id_to_reference(id.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Callback::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (%s).\n",
- servant_name));
- ACE_THROW_RETURN (TestException(), Callback::_nil ());
- }
-
- Callback_var callback = Callback::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (Callback::_nil ());
-
- return callback._retn ();
-}
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-s <synch_with_server>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h
deleted file mode 100644
index 0c10f8341d0..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/ServerApp.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "FooC.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "ace/SString.h"
-
-class ServerApp
-{
- public:
-
- ServerApp();
- ~ServerApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- Foo_ptr
- create_foo(
- PortableServer::POA_ptr poa,
- const char* servant_name
- ACE_ENV_ARG_DECL);
-
- Callback_ptr
- create_callback(
- PortableServer::POA_ptr poa,
- const char* servant_name
- ACE_ENV_ARG_DECL);
-
-
- ACE_CString exe_name_;
-
- CORBA::ORB_var orb_;
-
- int synch_with_server_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/run_test.pl b/TAO/examples/CSD_Strategy/ThreadPool4/run_test.pl
deleted file mode 100755
index f3b960e5088..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/run_test.pl
+++ /dev/null
@@ -1,45 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$synch_with_server_option = "";
-
-if ($ARGV[0] eq 'synch_with_server') {
- $synch_with_server_option = "-s";
-}
-elsif ($ARGV[0] eq '') {
- #synch with transport
-}
-else {
- print STDERR "ERROR: invalid parameter $ARGV[0] \n";
- exit 1;
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "$synch_with_server_option");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "$synch_with_server_option");
-}
-
-
-$SV->Spawn ();
-
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-
-exit $status;
diff --git a/TAO/examples/CSD_Strategy/ThreadPool4/server_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool4/server_main.cpp
deleted file mode 100644
index d0884b4aeb4..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool4/server_main.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "ace/Log_Msg.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
- ServerApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ServerApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/CSD_Test_ThreadPool5.mpc b/TAO/examples/CSD_Strategy/ThreadPool5/CSD_Test_ThreadPool5.mpc
deleted file mode 100644
index 983089c4247..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/CSD_Test_ThreadPool5.mpc
+++ /dev/null
@@ -1,37 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_threadpool, taoserver, pi {
- exename = server_main
-
- Source_Files {
- server_main.cpp
- Foo_i.cpp
- FooC.cpp
- FooS.cpp
- Callback_i.cpp
- CallbackC.cpp
- CallbackS.cpp
- ServerApp.cpp
- ClientTask.cpp
- FooServantList.cpp
- OrbTask.cpp
- OrbShutdownTask.cpp
- }
-}
-
-project(*Client): csd_threadpool, taoserver, pi {
- exename = client_main
- after += *Server
-
- Source_Files {
- client_main.cpp
- Callback_i.cpp
- CallbackC.cpp
- CallbackS.cpp
- FooC.cpp
- ClientTask.cpp
- ClientApp.cpp
- }
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Callback.idl b/TAO/examples/CSD_Strategy/ThreadPool5/Callback.idl
deleted file mode 100644
index 49be42260cb..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Callback.idl
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-#ifndef CALLBACK_IDL
-#define CALLBACK_IDL
-
-interface Callback
-{
- void test_method();
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.cpp
deleted file mode 100644
index c243461dcaa..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-// $Id$
-#include "Callback_i.h"
-
-
-Callback_i::Callback_i()
-{
-}
-
-
-Callback_i::~Callback_i ()
-{
-}
-
-
-void
-Callback_i::test_method (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, "(%P|%t)Callback_i::test_method called \n"));
-
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.h b/TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.h
deleted file mode 100644
index fe35e4d2e74..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Callback_i.h
+++ /dev/null
@@ -1,25 +0,0 @@
-// $Id$
-#ifndef CALLBACK_I_H
-#define CALLBACK_I_H
-
-#include "CallbackS.h"
-
-
-class Callback_i : public virtual POA_Callback
-{
- public:
-
- Callback_i();
-
- virtual ~Callback_i();
-
- virtual void test_method (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp
deleted file mode 100644
index 36adb94e0d8..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.cpp
+++ /dev/null
@@ -1,229 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "Callback_i.h"
-#include "ClientTask.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ClientApp::ClientApp()
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb
- = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- CORBA::Object_var obj
- = orb->string_to_object(this->ior_.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- Foo_var foo = Foo::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(foo.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to Foo interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Create the callback object using the child poa with the custom
- // strategy.
- obj = orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- PortableServer::POA_var child_poa
- = root_poa->create_POA("ChildPoa",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- csd_tp_strategy->set_num_threads(1);
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
- ACE_CHECK_RETURN (-1);
-
- // Create the servant object.
- Callback_i* servant = new Callback_i ();
-
- // local smart pointer variable to deal with releasing the reference
- // to the servant object when the smart pointer object falls out of scope.
- PortableServer::ServantBase_var owner_transfer(servant);
-
- // Activate the servant using the Child POA.
- PortableServer::ObjectId_var oid
- = child_poa->activate_object(servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Obtain the object reference.
- obj = child_poa->servant_to_reference(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (Callback_i).\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- Callback_var callback = Callback::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ClientTask client_task(orb.in (), foo.in (), callback.in ());
-
- if (client_task.open () != 0)
- {
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientApp is ready.\n"));
-
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- client_task.wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientApp is destroying the Root POA.\n"));
-
- // Tear-down the root poa and orb.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientApp is destroying the ORB.\n"));
-
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- this->usage_statement();
- return 1;
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.h b/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.h
deleted file mode 100644
index 4bb06ef0cac..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/ClientApp.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-class ClientTask;
-
-class ClientApp
-{
- public:
-
- ClientApp();
- ~ClientApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString ior_;
-
- ACE_CString exe_name_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp
deleted file mode 100644
index db9ed7c43f1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp
+++ /dev/null
@@ -1,263 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "ClientTask.h"
-#include "ace/SString.h"
-#include "ace/OS.h"
-
-
-ClientTask::ClientTask(CORBA::ORB_ptr orb,
- Foo_ptr foo,
- Callback_ptr callback,
- bool collocated)
-: orb_ (CORBA::ORB::_duplicate (orb)),
- foo_(Foo::_duplicate(foo)),
- callback_(Callback::_duplicate(callback)),
- collocated_ (collocated)
-{
-}
-
-
-ClientTask::~ClientTask()
-{
-}
-
-
-int
-ClientTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) ClientTask failed to activate "
- "the client thread.\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-ClientTask::svc()
-{
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc start\n"));
-
- ACE_TRY_NEW_ENV
- {
- // Make sure the connection is established before making
- // remote invocations.
- if (this->validate_connection () == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)ClientTask::svc " \
- "client connect failed.\n"));
- return -1;
- }
-
- for (CORBA::Long i = 1; i <= 100; i++)
- {
- // Simple Two-way calls.
- this->foo_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Long value = this->foo_->op3(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Value retrieved from op3() == %d\n",
- value));
-
- for (CORBA::ULong j = 1; j <= 5; j++)
- {
- this->foo_->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_TRY_EX (op5)
- {
- ACE_DEBUG((LM_DEBUG, "(%P|%t) ===> Invoke op5()\n"));
- this->foo_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (op5);
- ACE_DEBUG((LM_DEBUG, "(%P|%t) ===> No exception raised from op5(). :-(\n"));
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Caught FooException - as expected.\n"));
-
- }
- ACE_ENDTRY;
-
- // Two-Way calls with inout parameters.
- CORBA::String_var message = CORBA::string_dup( "Hello! " );
- CORBA::Boolean result
- = this->foo_->op6( "TAO User", message.inout() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (result)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Message from op6() == %s\n",
- message.in ()));
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> op6() returned false.\n"));
- }
-
- // Callback test.
- this->foo_->callback_object (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->test_callback (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // One-Way calls with various arguments.
- CORBA::String_var ub_string = CORBA::string_dup( "UNBOUNDED STRING" );
- this->foo_->test_unbounded_string_arg (ub_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var bd_string = CORBA::string_dup( "BOUNDED STRING" );
- this->foo_->test_bounded_string_arg (bd_string.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Fixed_Array fixed_array;
-
- for (CORBA::ULong m = 0; m < 20; m ++)
- {
- fixed_array[m] = i + m;
- }
-
- this->foo_->test_fixed_array_arg (fixed_array ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Var_Array var_array;
- var_array[0] = CORBA::string_dup( "STRING 1" );
- var_array[1] = CORBA::string_dup( "STRING 2" );
- var_array[2] = CORBA::string_dup( "STRING 3" );
- this->foo_->test_var_array_arg (var_array ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Bounded_Var_Size_var bd_var_size_string = new Bounded_Var_Size();
- const char* buffer1 = "BOUNDED VAR SIZE CHAR";
- bd_var_size_string->replace (bd_var_size_string->maximum (),
- ACE_OS::strlen (buffer1) + 1,
- (CORBA::Char*)buffer1);
- this->foo_->test_bounded_var_size_arg (bd_var_size_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- const char* buffer2 = "UNBOUNDED VAR SIZE CHAR";
- Unbounded_Var_Size_var ub_var_size_string = new Unbounded_Var_Size(100);
- ub_var_size_string->replace (ub_var_size_string->maximum (),
- ACE_OS::strlen (buffer2) + 1,
- (CORBA::Char*)buffer2);
- this->foo_->test_unbounded_var_size_arg (ub_var_size_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TimeOfDay t;
- t.hour = 12;
- t.minute = 30;
- t.second = 10;
- this->foo_->test_fixed_size_arg (t ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->test_fixed_size_arg_two_way (t ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Boolean special_value = 1;
- this->foo_->test_special_basic_arg (special_value ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->foo_->test_objref_arg (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc - Invoke foo->done()\n"));
-
- this->foo_->done (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc - Back from foo->done()\n"));
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception in ClientTask::svc:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in ClientTask::svc()\n"));
- }
- ACE_ENDTRY;
-
- if (! collocated_)
- {
- ACE_OS::sleep (2);
- this->orb_->shutdown(0);
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::svc end\n"));
-
- return 0;
-}
-
-
-int
-ClientTask::close(u_long)
-{
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ClientTask::close() - enter/exit\n"));
- return 0;
-}
-
-
-bool
-ClientTask::validate_connection ()
-{
- for (CORBA::ULong j = 0; j != 1000; ++j)
- {
- ACE_TRY_NEW_ENV
- {
-#if (TAO_HAS_CORBA_MESSAGING == 1)
- CORBA::PolicyList_var unused;
- this->foo_->_validate_connection (unused
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#else
- this->foo_->_is_a ("Not_An_IDL_Type"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#endif /* TAO_HAS_MESSAGING == 1 */
- return true;
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- }
-
- return false;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h b/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h
deleted file mode 100644
index aec109d9ed6..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef CLIENT_TASK_H
-#define CLIENT_TASK_H
-
-#include "FooC.h"
-#include "CallbackC.h"
-#include "ace/Task.h"
-
-class ClientTask : public ACE_Task_Base
-{
- public:
-
- ClientTask(CORBA::ORB_ptr orb,
- Foo_ptr foo,
- Callback_ptr callback,
- bool collocated = false);
-
- virtual ~ClientTask();
-
- virtual int open(void* x = 0);
- virtual int svc();
- virtual int close(u_long);
-
- private:
- bool validate_connection ();
-
- CORBA::ORB_var orb_;
- Foo_var foo_;
- Callback_var callback_;
- bool collocated_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Foo.idl b/TAO/examples/CSD_Strategy/ThreadPool5/Foo.idl
deleted file mode 100644
index 7fd7e4d15f3..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Foo.idl
+++ /dev/null
@@ -1,73 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-#include "Callback.idl"
-
-exception FooException {};
-exception TestException {};
-
-typedef sequence<char, 32> Bounded_Var_Size;
-typedef sequence<char> Unbounded_Var_Size;
-typedef long Fixed_Array[20];
-typedef string Var_Array [3];
-
-struct TimeOfDay {
- short hour; // 0 - 23
- short minute; // 0 - 59
- short second; // 0 - 59
-};
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, no arguments
- long op3();
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Operation with the inout parameter.
- boolean op6(in string user_name,
- inout string message);
-
- oneway void test_unbounded_string_arg(in string message);
-
- oneway void test_bounded_string_arg(in string<20> message);
-
- oneway void test_fixed_array_arg(in Fixed_Array message);
-
- oneway void test_var_array_arg(in Var_Array messages);
-
- oneway void test_bounded_var_size_arg(in Bounded_Var_Size message);
-
- oneway void test_unbounded_var_size_arg(in Unbounded_Var_Size message);
-
- oneway void test_fixed_size_arg (in TimeOfDay t);
-
- oneway void test_special_basic_arg(in boolean value);
-
- oneway void test_objref_arg (in Callback cb);
-
- void test_fixed_size_arg_two_way (in TimeOfDay t);
-
- /// Operation with the object reference parameter.
- void callback_object (in Callback cb);
-
- /// Operation that invoke remote operation on
- // callback object.
- void test_callback () raises (FooException);
-
- /// Client calls this last. It will shutdown the server.
- void done();
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.cpp
deleted file mode 100644
index 4f2bddc3ab8..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.cpp
+++ /dev/null
@@ -1,226 +0,0 @@
-// $Id$
-#include "FooServantList.h"
-#include "Foo_i.h"
-#include "Callback_i.h"
-#include "ClientTask.h"
-#include "OrbShutdownTask.h"
-#include "ace/OS.h"
-
-
-FooServantList::FooServantList(const char* prefix,
- unsigned num_servants,
- unsigned num_clients,
- int collocated_test,
- int servant_to_deactivate,
- CORBA::ORB_ptr orb)
- : prefix_(prefix),
- num_servants_(num_servants),
- num_clients_(num_clients),
- init_num_clients_ (num_clients_),
- collocated_test_(collocated_test),
- servant_to_deactivate_ (servant_to_deactivate),
- collocated_client_ (0),
- orb_ (CORBA::ORB::_duplicate(orb))
-{
- this->servants_ = new Foo_i* [num_servants];
- this->safe_servants_ = new PortableServer::ServantBase_var[num_servants];
-}
-
-
-FooServantList::~FooServantList()
-{
- delete [] this->safe_servants_;
- delete [] this->servants_;
- delete collocated_client_;
-}
-
-
-void
-FooServantList::create_and_activate(CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
-{
- poa_ = PortableServer::POA::_duplicate (poa);
-
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- char buf[32];
- ACE_OS::sprintf(buf, "%02d", i + 1);
- ACE_CString servant_name = this->prefix_ + "_" + buf;
-
- this->servants_[i] = new Foo_i(servant_name.c_str(),this);
- this->safe_servants_[i] = this->servants_[i];
-
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId(servant_name.c_str());
-
- poa->activate_object_with_id(id.in(),
- this->safe_servants_[i].in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Object_var obj = poa->id_to_reference(id.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (%s).\n",
- servant_name.c_str()));
- ACE_THROW (TestException());
- }
-
- // create the collocated object reference.
- if (this->collocated_test_ && i == 0)
- {
- Foo_var collocated = Foo::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Create the servant object.
- Callback_i* servant = new Callback_i ();
-
- // local smart pointer variable to deal with releasing the reference
- // to the servant object when the smart pointer object falls out of scope.
- PortableServer::ServantBase_var safe_servant(servant);
-
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId("callback");
-
- poa->activate_object_with_id(id.in(), safe_servant.in());
-
- CORBA::Object_var obj = poa->id_to_reference(id.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant (%s).\n",
- servant_name.c_str()));
- ACE_THROW (TestException());
- }
-
- Callback_var callback
- = Callback::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- collocated_client_
- = new ClientTask(orb, collocated.in (), callback.in (), true);
- if (collocated_client_->open() != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the collocated client.\n"));
- ACE_THROW (TestException());
- }
- }
-
- CORBA::String_var ior
- = this->orb_->object_to_string(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_CString filename = servant_name + ".ior";
- FILE* ior_file = ACE_OS::fopen(filename.c_str(), "w");
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file (%s) for writing IOR.",
- filename.c_str()));
- ACE_THROW (TestException());
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) writing IOR to file %s\n",
- filename.c_str()));
- }
- ACE_OS::fprintf(ior_file, "%s", ior.in());
- ACE_OS::fclose(ior_file);
- }
-}
-
-
-void
-FooServantList::client_done(ACE_ENV_SINGLE_ARG_DECL)
-{
- unsigned num_left;
-
- {
- GuardType guard(this->num_clients_lock_);
- num_left = --this->num_clients_;
- }
-
- if (num_left == 0)
- {
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)FooServantList::client_done: "
- "failed to create orb shutdown thread.\n"));
- }
- }
-}
-
-
-ClientTask*
-FooServantList::collocated_client () const
-{
- return collocated_client_;
-}
-
-
-void
-FooServantList::deactivate_servant (ACE_ENV_SINGLE_ARG_DECL)
-{
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- // To eliminate compiler warning about comparison of signed vs unsigned.
- int signed_i = i;
-
- if ((servant_to_deactivate_ == 0 ) ||
- ((servant_to_deactivate_ > 0) &&
- (signed_i == servant_to_deactivate_ - 1)))
- {
- if (servants_[i]->active())
- {
- servants_[i]->active(false);
- ACE_DEBUG((LM_DEBUG, "(%P|%t)FooServantList::deactivate_servant "
- "deactivate %dth servant \n", i+1));
-
- PortableServer::ObjectId_var id =
- poa_->servant_to_id (safe_servants_[i].in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- poa_->deactivate_object (id.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->num_servants_ == 1)
- {
- // If there is only one servant and we deactivate it then
- // all clients will catch exception and we need a way to
- // shutdown the orb.
- // Wait for 5 seconds so we can see the requests queued
- // will be cancelled by deactivate servant.
- ACE_OS::sleep (5);
- ACE_DEBUG((LM_DEBUG, "(%P|%t)shutdown ORB\n"));
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)FooServantList::deactivate_servant: "
- "failed to create orb shutdown thread.\n"));
- }
- }
- else
- {
- GuardType guard(this->num_clients_lock_);
- // The clients that requests this deactivated servant
- // will catch exception due to the deactivated servant.
- // We need descrease the num_clients so the alived
- // servant can be called to shutdown the orb.
- this->num_clients_ -= this->init_num_clients_/num_servants_;
- }
- }
- }
- }
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.h b/TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.h
deleted file mode 100644
index fb40809e62e..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/FooServantList.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// $Id$
-#ifndef FOOSERVANTLIST_H
-#define FOOSERVANTLIST_H
-
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "ace/SString.h"
-
-
-class ClientTask;
-class Foo_i;
-
-class FooServantList
-{
- public:
-
- FooServantList(const char* prefix,
- unsigned num_servants,
- unsigned num_clients,
- int collocated_test,
- int servant_to_deactivate,
- CORBA::ORB_ptr orb);
- ~FooServantList();
-
- void create_and_activate(CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL);
-
- void client_done(ACE_ENV_SINGLE_ARG_DECL);
-
- ClientTask* collocated_client () const;
-
- void deactivate_servant (ACE_ENV_SINGLE_ARG_DECL);
-
- private:
-
- typedef ACE_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
-
- Foo_i** servants_;
- PortableServer::ServantBase_var* safe_servants_;
- ACE_CString prefix_;
- unsigned num_servants_;
-
- LockType num_clients_lock_;
- unsigned num_clients_;
- unsigned init_num_clients_;
- int collocated_test_;
- // The servant_to_be_deactivate_ should be an integer greater than -2.
- // -1 => defatult value, DONT deactivate servant.
- // 0 => deactivate all servants.
- // > 0 => the index of the servant to be deactivated.
- int servant_to_deactivate_;
-
- ClientTask* collocated_client_;
-
- /// The poa to activate and deactivate servant.
- PortableServer::POA_var poa_;
-
- CORBA::ORB_var orb_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.cpp
deleted file mode 100644
index dd4f1c9821a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.cpp
+++ /dev/null
@@ -1,313 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "FooServantList.h"
-#include "ace/OS.h"
-
-Foo_i::Foo_i(const char* servant_name,FooServantList* mgr)
- : value_(0),
- count_op1_(0),
- count_op2_(0),
- count_op3_(0),
- count_op4_(0),
- count_op5_(0),
- servant_name_(servant_name),
- mgr_(mgr),
- active_ (true)
-{
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op1_;
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op2_;
- this->value_ = value;
-}
-
-
-CORBA::Long
-Foo_i::op3(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op3_;
-
- if (this->count_op3_ == 30)
- {
- this->mgr_->deactivate_servant (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return this->value_.value ();
-}
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op4_;
- this->value_ = value;
-
- if (this->count_op4_.value () % 1 == 0)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) op4() has been called %d times now. value == %d\n",
- this->count_op4_.value (), this->value_.value ()));
- }
-
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ++this->count_op5_;
- ACE_THROW (FooException());
-}
-
-
-CORBA::Boolean
-Foo_i::op6 (
- const char * user_name,
- char *& message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_CString str(message);
- str += user_name;
- CORBA::string_free (message);
- message = CORBA::string_dup (str.c_str ());
- return 1;
-}
-
-
-void
-Foo_i::test_unbounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
-CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_unbounded_string_arg ")
- ACE_TEXT("got unbounded string %s\n"),
- message));
-}
-
-
-void
-Foo_i::test_bounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
-CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_bounded_string_arg ")
- ACE_TEXT("got bounded string %s\n"),
- message));
-}
-
-
-void
-Foo_i::test_fixed_array_arg (
- const ::Fixed_Array message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- for (CORBA::ULong i = 0; i < 20; i++)
- {
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_fixed_array_arg ")
- ACE_TEXT("got fixed_array[i] = %d\n"),
- i, message[i]));
- }
-}
-
-
-void
-Foo_i::test_bounded_var_size_arg (
- const ::Bounded_Var_Size & message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_bounded_var_size_arg ")
- ACE_TEXT("got var array chars %s\n"),
- message.get_buffer ()));
-}
-
-
-void
-Foo_i::test_unbounded_var_size_arg (
- const ::Unbounded_Var_Size & message
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_unbounded_var_size_arg ")
- ACE_TEXT("got var array chars %s\n"),
- message.get_buffer ()));
-}
-
-
-void
-Foo_i::test_fixed_size_arg (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_fixed_size_arg ")
- ACE_TEXT("got timeofday %d:%d:%d\n"),
- t.hour, t.minute, t.second));
-}
-
-void
-Foo_i::test_fixed_size_arg_two_way (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_fixed_size_arg_two_way ")
- ACE_TEXT("got timeofday %d:%d:%d\n"),
- t.hour, t.minute, t.second));
-}
-
-void
-Foo_i::test_var_array_arg (
- const ::Var_Array messages
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_var_array_arg ")
- ACE_TEXT(" %s \n"), messages[0].in ()));
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_var_array_arg ")
- ACE_TEXT(" %s \n"), messages[1].in ()));
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_var_array_arg ")
- ACE_TEXT(" %s \n"), messages[2].in ()));
-}
-
-
-void
-Foo_i::test_special_basic_arg (
- ::CORBA::Boolean value
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_special_basic_arg ")
- ACE_TEXT(" got special basic arg: %d \n"), value));
-}
-
-
-void
-Foo_i::test_objref_arg (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- this->callback_ = Callback::_duplicate (cb);
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_i::test_objref_arg ")
- ACE_TEXT(" got callback object. \n")));
-}
-
-
-void
-Foo_i::callback_object (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_NOT_USED
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException
-))
-{
- this->callback_ = Callback::_duplicate (cb);
-}
-
-void
-Foo_i::test_callback (
- ACE_ENV_SINGLE_ARG_DECL
-)
-ACE_THROW_SPEC ((
- CORBA::SystemException, FooException
-))
-{
- if (CORBA::is_nil (this->callback_.in ()))
- {
- ACE_THROW (FooException ());
- }
- else
- {
- this->callback_->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->mgr_->client_done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_i::active (bool flag)
-{
- active_ = flag;
-}
-
-
-bool
-Foo_i::active ()
-{
- return active_.value ();
-}
-
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h
deleted file mode 100644
index 48f99ee7e23..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Foo_i.h
+++ /dev/null
@@ -1,165 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "FooS.h"
-#include "CallbackC.h"
-#include "ace/SString.h"
-
-class FooServantList;
-
-
-class Foo_i : public virtual POA_Foo
-{
- public:
-
- Foo_i(const char* servant_name, FooServantList* mgr);
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual CORBA::Boolean op6 (
- const char * user_name,
- char *& message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_unbounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_bounded_string_arg (
- const char * message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_fixed_array_arg (
- const ::Fixed_Array message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_var_array_arg (
- const ::Var_Array messages
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_bounded_var_size_arg (
- const ::Bounded_Var_Size & message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_unbounded_var_size_arg (
- const ::Unbounded_Var_Size & message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_fixed_size_arg (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_fixed_size_arg_two_way (
- const ::TimeOfDay & t
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_special_basic_arg (
- ::CORBA::Boolean value
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_objref_arg (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void callback_object (
- ::Callback_ptr cb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- virtual void test_callback (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException, FooException
- ));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- void active (bool flag);
-
- bool active ();
-
- private:
-
- typedef ACE_Atomic_Op <ACE_SYNCH_MUTEX, CORBA::Long> AtomicLong;
- typedef ACE_Atomic_Op <ACE_SYNCH_MUTEX, unsigned> AtomicUnsigned;
- typedef ACE_Atomic_Op <ACE_SYNCH_MUTEX, bool> AtomicBool;
-
- AtomicLong value_;
- AtomicUnsigned count_op1_;
- AtomicUnsigned count_op2_;
- AtomicUnsigned count_op3_;
- AtomicUnsigned count_op4_;
- AtomicUnsigned count_op5_;
-
- ACE_CString servant_name_;
- FooServantList* mgr_;
- AtomicBool active_;
- Callback_var callback_;
-};
-
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/Makefile.am b/TAO/examples/CSD_Strategy/ThreadPool5/Makefile.am
deleted file mode 100644
index cd7f41e97b3..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/Makefile.am
+++ /dev/null
@@ -1,232 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.CSD_Test_ThreadPool5_Server.am
-
-BUILT_SOURCES = \
- CallbackC.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.cpp \
- CallbackS.h \
- CallbackS.inl \
- CallbackS_T.cpp \
- CallbackS_T.h \
- CallbackS_T.inl
-
-CLEANFILES = \
- Callback-stamp \
- CallbackC.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.cpp \
- CallbackS.h \
- CallbackS.inl \
- CallbackS_T.cpp \
- CallbackS_T.h \
- CallbackS_T.inl
-
-CallbackC.cpp CallbackC.h CallbackC.inl CallbackS.cpp CallbackS.h CallbackS.inl CallbackS_T.cpp CallbackS_T.h CallbackS_T.inl: Callback-stamp
-
-Callback-stamp: $(srcdir)/Callback.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Callback.idl
- @touch $@
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS = server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-server_main_SOURCES = \
- CallbackC.cpp \
- CallbackS.cpp \
- Callback_i.cpp \
- ClientTask.cpp \
- FooC.cpp \
- FooS.cpp \
- FooServantList.cpp \
- Foo_i.cpp \
- OrbShutdownTask.cpp \
- OrbTask.cpp \
- ServerApp.cpp \
- server_main.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.h \
- CallbackS_T.h \
- CallbackS_T.inl \
- Callback_i.h \
- ClientTask.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl \
- FooServantList.h \
- Foo_i.h \
- OrbShutdownTask.h \
- OrbTask.h \
- ServerApp.h
-
-server_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Makefile.CSD_Test_ThreadPool5_Client.am
-
-BUILT_SOURCES += \
- CallbackC.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.cpp \
- CallbackS.h \
- CallbackS.inl \
- CallbackS_T.cpp \
- CallbackS_T.h \
- CallbackS_T.inl
-
-CLEANFILES += \
- Callback-stamp \
- CallbackC.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.cpp \
- CallbackS.h \
- CallbackS.inl \
- CallbackS_T.cpp \
- CallbackS_T.h \
- CallbackS_T.inl
-
-CallbackC.cpp CallbackC.h CallbackC.inl CallbackS.cpp CallbackS.h CallbackS.inl CallbackS_T.cpp CallbackS_T.h CallbackS_T.inl: Callback-stamp
-
-Callback-stamp: $(srcdir)/Callback.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Callback.idl
- @touch $@
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS += client_main
-
-client_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-client_main_SOURCES = \
- CallbackC.cpp \
- CallbackS.cpp \
- Callback_i.cpp \
- ClientApp.cpp \
- ClientTask.cpp \
- FooC.cpp \
- client_main.cpp \
- CallbackC.h \
- CallbackC.inl \
- CallbackS.h \
- CallbackS_T.h \
- CallbackS_T.inl \
- Callback_i.h \
- ClientApp.h \
- ClientTask.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl
-
-client_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.cpp
deleted file mode 100644
index f9d551e8aee..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate (orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_OS::sleep (2);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t)OrbShutdownTask::svc shutdown orb \n"));
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.h b/TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.h
deleted file mode 100644
index 3795d12c3c9..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/OrbShutdownTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-typedef ACE_Singleton<OrbShutdownTask, ACE_Thread_Mutex> TheOrbShutdownTask;
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.cpp
deleted file mode 100644
index fcfb7c919ac..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbTask.h"
-
-namespace { enum { MAX_ORB_TASK_WORKER_THREADS = 20 }; }
-
-
-OrbTask::OrbTask(CORBA::ORB_ptr orb, unsigned num_threads)
- : num_threads_(num_threads)
-{
- this->orb_ = CORBA::ORB::_duplicate(orb);
-}
-
-
-OrbTask::~OrbTask()
-{
-}
-
-
-int
-OrbTask::open(void*)
-{
- if (this->num_threads_ < 1)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is less-than 1.\n",
- this->num_threads_),
- -1);
- }
-
- if (this->num_threads_ > MAX_ORB_TASK_WORKER_THREADS)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is too large. Max is %d.\n",
- this->num_threads_, MAX_ORB_TASK_WORKER_THREADS),
- -1);
- }
-
- if (CORBA::is_nil(this->orb_.in()))
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "ORB object reference is nil.\n"),
- -1);
- }
-
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, this->num_threads_) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to activate "
- "(%d) worker threads.\n",
- this->num_threads_),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbTask::svc()
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::run() method. "
- "OrbTask is stopping.\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.h b/TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.h
deleted file mode 100644
index dde50d15f66..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/OrbTask.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_TASK_H
-#define ORB_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-class OrbTask : public ACE_Task_Base
-{
- public:
-
- OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
- virtual ~OrbTask();
-
- virtual int open(void* x = 0);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
- unsigned num_threads_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/README b/TAO/examples/CSD_Strategy/ThreadPool5/README
deleted file mode 100644
index 29b72f8a861..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/README
+++ /dev/null
@@ -1,47 +0,0 @@
-# $Id$
-
-Description:
-
-This test is a combination of other tests and has also added some
-other test cases such as cancel_servant. It uses the command
-line options for the number of orb threads, number of servants,
-collocated test options, etc.
-
-The client application acts as a server too because of the callback
-test. The client application also uses a custom dispatching strategy.
-
-To run the test use the run_test.pl script:
-
-$ ./run_test.pl
-
- This test is similar to the "ThreadPool" test.
-
-$ ./run_test.pl collocated
-
- This runs the collocated test.
-
- The server application creates one servant, runs one orb
- thread, runs two custom dispatching threads and one client
- thread to invoke the operations.
-
- Running two custom dispatching threads instead of one is
- required to avoid deadlock.
-
-$ ./run_test.pl multiple_servants
-
- This test is similar to the "ThreadPool2" test.
-
-$ ./run_test.pl multiple_orb_threads
-
- This test is similar to the "ThreadPool3" test.
-
-$ ./run_test.pl cancel_servant
-
- This test shows that requests stuck in the request queue are
- cancelled when a servant is deactivated.
-
- The client invokes multiple two-way operations and catches the
- OBJECT_NOT_EXIST or NO_IMPLEMENTATION exception after the servant
- is deactivated - this is what it is supposed to do - the exceptions
- are expected.
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.cpp
deleted file mode 100644
index b8cd5ed04a1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.cpp
+++ /dev/null
@@ -1,357 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "OrbTask.h"
-#include "FooServantList.h"
-#include "ClientTask.h"
-#include "OrbShutdownTask.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
- : ior_filename_("foo"),
- num_servants_(1),
- num_csd_threads_ (1),
- num_clients_(1),
- num_orb_threads_ (1),
- collocated_test_ (0),
- servant_to_deactivate_ (-1)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheOrbShutdownTask::instance()->orb (orb.in ());
-
- CORBA::Object_var obj
- = orb->resolve_initial_references("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(1);
- policies.length(1);
-
- policies[0]
- = root_poa->create_id_assignment_policy(PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- PortableServer::POA_var child_poa
- = root_poa->create_POA("ChildPoa",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- csd_tp_strategy->set_num_threads(this->num_csd_threads_);
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
- ACE_CHECK_RETURN (-1);
-
- FooServantList servants(this->ior_filename_.c_str(),
- this->num_servants_,
- this->num_clients_,
- this->collocated_test_,
- this->servant_to_deactivate_,
- orb.in());
-
- // Activate the POA Manager before start the ClientTask thread so that
- // we do not need coordinate the ClientTask and main thread for the
- // collocated test.
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- servants.create_and_activate(orb.in (),
- child_poa.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready.\n"));
-
- // If the num_orb_threads_ is exactly one, then just use the current
- // (mainline) thread to run the ORB event loop.
- if (this->num_orb_threads_ == 1)
- {
- // Since the num_orb_threads_ is exactly one, we just use the current
- // (mainline) thread to run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
- else
- {
- // The num_orb_threads_ is greater than 1, so we will use an OrbTask
- // (active object) to run the ORB event loop in (num_orb_threads_ - 1)
- // threads. We use the current (mainline) thread as the other thread
- // running the ORB event loop.
- OrbTask orb_task(orb.in(), this->num_orb_threads_ - 1);
-
- // Activate the OrbTask worker threads
- if (orb_task.open() != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the OrbTask.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- // This will use the current (mainline) thread to run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Now that the current thread has unblocked from running the orb,
- // make sure to wait for all of the worker threads to complete.
- orb_task.wait();
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is waiting for OrbShutdownTask.\n"));
- TheOrbShutdownTask::instance()->wait ();
-
- // Sleep for 2 second to let the done() two-way call complete
- // before cleanup.
- ACE_OS::sleep (2);
-
- if (collocated_test_)
- {
- servants.collocated_client ()->wait ();
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- // Tear-down the root poa and orb.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:c:t:l:d:n:");
-
- int c;
- int tmp;
-
- while ((c = get_opts()) != -1)
- {
- int parse_error = 0;
-
- switch (c)
- {
- case 'p':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 's':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -s must be followed by an integer "
- "value greater than 0.\n"));
- parse_error = 1;
- }
-
- this->num_servants_ = tmp;
- break;
-
- case 'c':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -c must be followed by an integer "
- "value greater than 0.\n"));
- parse_error = 1;
- }
-
- this->num_clients_ = tmp;
- break;
-
- case 't':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -t must be followed by an integer "
- "value greater than 0.\n"));
- parse_error = 1;
- }
-
- this->num_orb_threads_ = tmp;
- break;
-
- case 'n':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -n must be followed by an integer "
- "value greater than 0.\n"));
- parse_error = 1;
- }
-
- this->num_csd_threads_ = tmp;
- break;
-
- case 'l':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -l must be followed by an integer "
- "value greater than -1.\n"));
- parse_error = 1;
- }
-
- this->collocated_test_ = tmp;
- break;
-
- case 'd':
- tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -d must be followed by an integer "
- "value >= 0.\n"));
- parse_error = 1;
- }
-
- this->servant_to_deactivate_ = tmp;
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (parse_error != 0)
- {
- this->usage_statement();
- return parse_error;
- }
- }
-
- // The deadlock will happen with the collocated callback test
- // when we have one working thread, so create at least one more
- // working thread would resolve the deadlock.
- if (this->collocated_test_ == 1 && this->num_csd_threads_ == 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. The num_csd_threads_ should be "
- ">= 1.\n"));
- return -1;
- }
-
- return 0;
-}
-
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s \n"
- "\t[-p <ior_filename_prefix>] \n"
- "\t[-s <num_servants>] \n"
- "\t[-c <num_clients>] \n"
- "\t[-n <num_csd_threads>] \n"
- "\t[-t <num_orb_threads>] \n"
- "\t[-l <collocation_test>] \n"
- "\t[-d <servant_to_deactivate>] \n"
- "Default ior_filename_prefix is 'foo'.\n"
- "Default num_servants is 1.\n"
- "Default num_clients is 1.\n"
- "Default num_orb_threads is 1.\n"
- "Default collocation_test flag is 0.\n"
- "Default servant_to_deactivate is -1 means not deactivate servant.\n"
- " 0 means deactivate all servant. \n"
- " >0 means the index (servant_to_deactivate-1) of the servant in the servant list.\n",
- this->exe_name_.c_str ()));
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.h
deleted file mode 100644
index 8b461a3e299..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/ServerApp.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-class ServerApp
-{
- public:
-
- ServerApp();
- ~ServerApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString exe_name_;
- ACE_CString ior_filename_;
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_clients_;
- unsigned num_orb_threads_;
- int collocated_test_;
- int servant_to_deactivate_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/client_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/client_main.cpp
deleted file mode 100644
index 1f9c337ae54..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/client_main.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
-
- ClientApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ClientApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/run_test.pl b/TAO/examples/CSD_Strategy/ThreadPool5/run_test.pl
deleted file mode 100755
index 8778e2861e6..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/run_test.pl
+++ /dev/null
@@ -1,135 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-
-$iorfname_prefix = "server";
-$num_servants=1;
-$num_clients_per_servant=40;
-$num_orb_threads=1;
-$num_csd_threads=1;
-$collocated_test=0;
-$servant_cancellation_option="";
-
-if ($ARGV[0] eq 'collocated') {
- # 1 servant, 1 collocated client, 1 orb thread, 2 strategy working threads
- $num_clients_per_servant=1;
- $collocated_test=1;
- $num_csd_threads=2;
-}
-elsif ($ARGV[0] eq 'multiple_servants') {
- # multiple servants and single orb thread.
- # 10 servant, 40 client, 1 orb thread, 10 strategy working threads
- $num_servants=10;
- $num_csd_threads=10;
- $num_clients_per_servant=4;
-}
-elsif ($ARGV[0] eq 'multiple_orb_threads') {
- # multiple servants and multiple orb threads.
- # 10 servant, 40 client, 4 orb thread, 10 strategy working threads
- $num_servants=10;
- $num_csd_threads=10;
- $num_clients_per_servant=4;
- $num_orb_threads=4;
-}
-elsif ($ARGV[0] eq 'cancel_servant') {
- # Cancel one servant and leave the other alive.
- # 2 servant, 10 client, 5 orb thread, 1 strategy working threads
- $num_clients_per_servant=5;
- $num_servants=2;
- $num_csd_threads=2;
- $num_orb_threads=5;
- $servant_cancellation_option = " -d 1 ";
-}
-elsif ($ARGV[0] eq '') {
- # default test - 1 servant, 40 clients , 1 orb thread, 1 csd thread
-}
-else {
- print STDERR "ERROR: invalid parameter $ARGV[0] \n";
- exit 1;
-}
-
-$num_clients=$num_servants * $num_clients_per_servant;
-
-#Delete old ior files.
-for (my $i = 0; $i < $num_servants; $i++) {
- $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
-
- unlink $iorfile[$i];
-}
-
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main",
- "-p $iorfname_prefix -s $num_servants "
- . "-c $num_clients -t $num_orb_threads -n $num_csd_threads "
- . "-l $collocated_test $servant_cancellation_option");
-}
-else {
- $SV = new PerlACE::Process ("server_main",
- "-p $iorfname_prefix -s $num_servants "
- . "-c $num_clients -t $num_orb_threads -n $num_csd_threads "
- . "-l $collocated_test $servant_cancellation_option");
-}
-
-$SV->Spawn ();
-
-# Wait for the servant ior files created by server.
-for (my $i = 0; $i < $num_servants; $i++) {
- $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
-
- if (PerlACE::waitforfile_timed ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
- }
-}
-
-$count = 0;
-
-if ($collocated_test == 0) {
- for (my $i = 0; $i < $num_servants; $i++) {
- for ($j = 0; $j < $num_clients_per_servant; $j++) {
- $CLS[$count] = new PerlACE::Process ("client_main", " -i file://$iorfile[$i]");
- $CLS[$count]->Spawn ();
- $count ++;
- }
- }
-
- for (my $i = 0; $i < $num_clients; $i++) {
- $client = $CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
- }
-}
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for (my $i = 0; $i < $num_servants; $i++) {
- $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
-
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/server_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/server_main.cpp
deleted file mode 100644
index ba16e928f63..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool5/server_main.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "ace/Log_Msg.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
- ServerApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ServerApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/CSD_Test_ThreadPool6.mpc b/TAO/examples/CSD_Strategy/ThreadPool6/CSD_Test_ThreadPool6.mpc
deleted file mode 100644
index be0e18a3cca..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/CSD_Test_ThreadPool6.mpc
+++ /dev/null
@@ -1,26 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_threadpool, taoserver, minimum_corba, pi {
- exename = server_main
- idlflags -= -Sc
-
- Source_Files {
- Foo_i.cpp
- ServerApp.cpp
- server_main.cpp
- OrbShutdownTask.cpp
- }
-}
-
-project(*Client): taoexe, anytypecode {
- exename = client_main
- after += *Server
-
- Source_Files {
- FooC.cpp
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.cpp
deleted file mode 100644
index 74e97209295..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.cpp
+++ /dev/null
@@ -1,143 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "FooC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-
-
-ClientApp::ClientApp()
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb
- = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- CORBA::Object_var obj
- = orb->string_to_object(this->ior_.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
- Foo_var foo = Foo::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(foo.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to Foo interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);
- }
-
-
- for (CORBA::Long i = 1; i <= 100; i++)
- {
- foo->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- foo->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- CORBA::Long value = foo->op3(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Value retrieved from op3() == %d\n",
- value));
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- foo->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
- ACE_TRY_NEW_ENV
- {
- foo->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Caught FooException - as expected.\n"));
-
- }
- ACE_ENDTRY;
- }
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Tell server that we are done().\n"));
-
- foo->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ===> Back from done().\n"));
-
- return 0;
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- this->usage_statement();
- return 1;
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.h b/TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.h
deleted file mode 100644
index 7dc57bb78dc..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/ClientApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class ClientApp
-{
- public:
-
- ClientApp();
- ~ClientApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString ior_;
-
- ACE_CString exe_name_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/Foo.idl b/TAO/examples/CSD_Strategy/ThreadPool6/Foo.idl
deleted file mode 100644
index f4a756a31b1..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/Foo.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-exception FooException {};
-exception TestException {};
-
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, no arguments
- long op3();
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. It will shutdown the server.
- void done();
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.cpp
deleted file mode 100644
index 8201c889f88..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.cpp
+++ /dev/null
@@ -1,113 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "OrbShutdownTask.h"
-#include "ace/OS.h"
-
-Foo_i::Foo_i(unsigned num_clients)
- : value_(0),
- num_clients_(num_clients),
- count_op1_(0),
- count_op2_(0),
- count_op3_(0),
- count_op4_(0),
- count_op5_(0)
-
-{
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) Number of clients for Foo_i servant: %d\n",
- num_clients));
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op1_;
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op2_;
- this->value_ = value;
-}
-
-
-CORBA::Long
-Foo_i::op3(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op3_;
- return this->value_;
-}
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_op4_;
- this->value_ = value;
-
- if (this->count_op4_ % 500 == 0)
- {
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) op4() has been called %d times now. value == %d\n",
- this->count_op4_, this->value_));
- }
-
- // Sleep for 10 milliseconds (10,000 microseconds)
- //ACE_OS::sleep(ACE_Time_Value(0,10000));
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ++this->count_op5_;
- ACE_THROW (FooException());
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- unsigned num_left = --this->num_clients_;
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) A client has reported that it is done(). "
- "There are %d clients left.\n", num_left));
-
- if (num_left == 0)
- {
- ACE_DEBUG((LM_DEBUG, "(%P|%t) Stats:\n"
- "op1() count: %d\n"
- "op2() count: %d\n"
- "op3() count: %d\n"
- "op4() count: %d\n"
- "op5() count: %d\n",
- this->count_op1_,
- this->count_op2_,
- this->count_op3_,
- this->count_op4_,
- this->count_op5_));
-
- if (TheOrbShutdownTask::instance()->open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_i::done: "
- "failed to create orb shutdown thread.\n"));
- }
- }
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.h b/TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.h
deleted file mode 100644
index ab50cc5589a..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/Foo_i.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "FooS.h"
-
-
-class Foo_i
-{
- public:
-
- Foo_i(unsigned num_clients);
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
-
- private:
-
- CORBA::Long value_;
- unsigned num_clients_;
-
- CORBA::ORB_var orb_;
-
- unsigned count_op1_;
- unsigned count_op2_;
- unsigned count_op3_;
- unsigned count_op4_;
- unsigned count_op5_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/Makefile.am b/TAO/examples/CSD_Strategy/ThreadPool6/Makefile.am
deleted file mode 100644
index 8f254b0093c..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/Makefile.am
+++ /dev/null
@@ -1,151 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-CLEANFILES =
-noinst_PROGRAMS =
-BUILT_SOURCES =
-
-## Makefile.CSD_Test_ThreadPool6_Server.am
-
-if !BUILD_MINIMUM_CORBA
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS += server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-server_main_SOURCES = \
- FooC.cpp \
- FooS.cpp \
- Foo_i.cpp \
- OrbShutdownTask.cpp \
- ServerApp.cpp \
- server_main.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl \
- Foo_i.h \
- OrbShutdownTask.h \
- ServerApp.h
-
-server_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-
-## Makefile.CSD_Test_ThreadPool6_Client.am
-
-BUILT_SOURCES += \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES += \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Foo.idl
- @touch $@
-
-noinst_PROGRAMS += client_main
-
-client_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-client_main_SOURCES = \
- ClientApp.cpp \
- FooC.cpp \
- client_main.cpp \
- ClientApp.h \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.h \
- FooS_T.inl
-
-client_main_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.cpp
deleted file mode 100644
index f9d551e8aee..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate (orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_OS::sleep (2);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t)OrbShutdownTask::svc shutdown orb \n"));
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.h b/TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.h
deleted file mode 100644
index 3795d12c3c9..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/OrbShutdownTask.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-typedef ACE_Singleton<OrbShutdownTask, ACE_Thread_Mutex> TheOrbShutdownTask;
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/README b/TAO/examples/CSD_Strategy/ThreadPool6/README
deleted file mode 100644
index 5c90da80c6b..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/README
+++ /dev/null
@@ -1,14 +0,0 @@
-# $Id$
-
-Description:
-
-This is the simple "ThreadPool" test modified to use the TIE approach.
-
-
-To run the test use the run_test.pl script:
-
-$ ./run_test.pl
-
- The script returns 0 if the test was successful.
-
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp
deleted file mode 100644
index 62de607a4fb..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.cpp
+++ /dev/null
@@ -1,243 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "Foo_i.h"
-#include "FooS_T.h"
-#include "OrbShutdownTask.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
-: ior_filename_ ("server.ior")
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheOrbShutdownTask::instance()->orb (orb.in ());
-
- CORBA::Object_var obj
- = orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for 'RootPOA'.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
- }
-
- PortableServer::POA_var root_poa
- = PortableServer::POA::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(root_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to POA interface.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
- }
-
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA.
- CORBA::PolicyList policies(1);
- policies.length(1);
-
- policies[0] =
- root_poa->create_implicit_activation_policy (PortableServer::IMPLICIT_ACTIVATION
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- PortableServer::POA_var child_poa
- = root_poa->create_POA("ChildPoa",
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to create the child POA.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
- }
-
- policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_tp_strategy =
- new TAO::CSD::TP_Strategy();
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_tp_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) ERROR [ServerApp::run()]: "
- "Failed to apply custom dispatching strategy to child poa.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
- }
- ACE_CHECK_RETURN (-1);
-
- // Create the Foo_i object.
- Foo_i foo_i (this->num_clients_);
-
- // Create tie object with the Foo_i object.
- POA_Foo_tie<Foo_i> foo_tie_i (foo_i, child_poa.in ());
-
- // Get Object Reference for the foo_tie_i object.
- Foo_var foo = foo_tie_i._this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- if (CORBA::is_nil(foo.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to activate servant foo_tie_i.\n"));
- ACE_THROW_RETURN (TestException(), -1);;
- }
-
- // Stringify the object reference
- CORBA::String_var ior
- = orb->object_to_string(foo.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Write the stringified object reference to the ior file.
- FILE* ior_file = ACE_OS::fopen(this->ior_filename_.c_str(), "w");
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file for writing IOR: %s",
- this->ior_filename_.c_str()));
- ACE_THROW_RETURN (TestException(), -1);;
- }
-
- ACE_OS::fprintf(ior_file, "%s", ior.in ());
- ACE_OS::fclose(ior_file);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- // Run the ORB event loop.
- orb->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB has stopped running. "
- "Stop the CSD strategy.\n"));
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is waiting for OrbShutdownTask.\n"));
- TheOrbShutdownTask::instance()->wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- // Sleep for 2 second to let the done() two-way call complete
- // before cleanup.
- ACE_OS::sleep (2);
-
- // Tear-down the root poa and orb.
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "o:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'o':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 'n':
- {
- int tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- this->usage_statement ();
- return -1;
- }
-
- this->num_clients_ = tmp;
- }
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
- }
-
- return 0;
-}
-
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-o <ior_filename>]\n"
- "\t[-n <num_clients>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.h b/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.h
deleted file mode 100644
index ad89b43c972..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/ServerApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "ace/SString.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-
-
-class ServerApp
-{
- public:
-
- ServerApp();
- ~ServerApp();
-
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
- void usage_statement();
-
- ACE_CString exe_name_;
- ACE_CString ior_filename_;
- unsigned num_clients_;
-};
-
-#endif
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/client_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/client_main.cpp
deleted file mode 100644
index 1f9c337ae54..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/client_main.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
-
- ClientApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ClientApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/run_test.pl b/TAO/examples/CSD_Strategy/ThreadPool6/run_test.pl
deleted file mode 100755
index 13f3fafd013..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/run_test.pl
+++ /dev/null
@@ -1,60 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-$status = 0;
-
-$num_clients=1;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "-o $iorfile -n $num_clients");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "-o $iorfile -n $num_clients");
-}
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- @CLS[$i] = new PerlACE::Process ("client_main", " -i file://$iorfile");
-
- @CLS[$i]->Spawn ();
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- $client = @CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/examples/CSD_Strategy/ThreadPool6/server_main.cpp b/TAO/examples/CSD_Strategy/ThreadPool6/server_main.cpp
deleted file mode 100644
index ba16e928f63..00000000000
--- a/TAO/examples/CSD_Strategy/ThreadPool6/server_main.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "ace/Log_Msg.h"
-#include "ace/CORBA_macros.h"
-#include "tao/Environment.h"
-#include "tao/Exception.h"
-
-
-int
-main(int argc, char* argv[])
-{
- ACE_LOG_MSG->priority_mask(LM_TRACE |
- LM_DEBUG |
- LM_INFO |
- LM_NOTICE |
- LM_WARNING |
- LM_ERROR |
- LM_CRITICAL |
- LM_ALERT |
- LM_EMERGENCY,
- ACE_Log_Msg::PROCESS);
-
- ServerApp app;
-
- ACE_TRY_NEW_ENV
- {
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- return ret == 1 ? 0 : ret;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Unknown (...) exception caught in main() "
- "for ServerApp\n"));
- }
- ACE_ENDTRY;
-
- return 1;
-}
diff --git a/TAO/examples/Callback_Quoter/Callback_Quoter.mpc b/TAO/examples/Callback_Quoter/Callback_Quoter.mpc
index 6f8864086d4..8cef65ef65d 100644
--- a/TAO/examples/Callback_Quoter/Callback_Quoter.mpc
+++ b/TAO/examples/Callback_Quoter/Callback_Quoter.mpc
@@ -1,55 +1,29 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Consumer.idl
- Notifier.idl
- }
- custom_only = 1
-}
-
project(Callback_Quoter notifier): namingexe, utils {
- after += *IDL
Source_Files {
Notifier_i.cpp
Notifier_Input_Handler.cpp
notifier.cpp
- NotifierS.cpp
- NotifierC.cpp
- ConsumerC.cpp
- }
- IDL_Files {
}
}
project(Callback_Quoter consumer): namingexe, portableserver {
- after += *IDL
Source_Files {
Consumer_Input_Handler.cpp
Consumer_Signal_Handler.cpp
Consumer_Handler.cpp
consumer.cpp
Consumer_i.cpp
- ConsumerS.cpp
- ConsumerC.cpp
- NotifierC.cpp
- }
- IDL_Files {
}
}
project(Callback_Quoter supplier): namingexe, portableserver {
- after += *IDL
Source_Files {
Supplier_i.cpp
Supplier_Timer_Handler.cpp
supplier.cpp
Consumer_i.cpp
- ConsumerS.cpp
- ConsumerC.cpp
- NotifierC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Callback_Quoter/Consumer_Handler.cpp b/TAO/examples/Callback_Quoter/Consumer_Handler.cpp
index 4aeab0b4941..8fd1086855f 100644
--- a/TAO/examples/Callback_Quoter/Consumer_Handler.cpp
+++ b/TAO/examples/Callback_Quoter/Consumer_Handler.cpp
@@ -94,7 +94,7 @@ Consumer_Handler::read_ior (char *filename)
int
Consumer_Handler::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "a:t:d:f:xk:xs");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "a:t:d:f:xk:xs");
int c;
int result;
diff --git a/TAO/examples/Callback_Quoter/Makefile.am b/TAO/examples/Callback_Quoter/Makefile.am
index 60471ac8477..b973cd3ca47 100644
--- a/TAO/examples/Callback_Quoter/Makefile.am
+++ b/TAO/examples/Callback_Quoter/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.Callback_Quoter_IDL.am
+## Makefile.Callback_Quoter_consumer.am
BUILT_SOURCES = \
ConsumerC.cpp \
@@ -44,7 +44,7 @@ CLEANFILES = \
ConsumerC.cpp ConsumerC.h ConsumerC.inl ConsumerS.cpp ConsumerS.h ConsumerS.inl ConsumerS_T.cpp ConsumerS_T.h ConsumerS_T.inl: Consumer-stamp
Consumer-stamp: $(srcdir)/Consumer.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Consumer.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Consumer.idl
@touch $@
BUILT_SOURCES += \
@@ -73,16 +73,9 @@ CLEANFILES += \
NotifierC.cpp NotifierC.h NotifierC.inl NotifierS.cpp NotifierS.h NotifierS.inl NotifierS_T.cpp NotifierS_T.h NotifierS_T.inl: Notifier-stamp
Notifier-stamp: $(srcdir)/Notifier.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Notifier.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Notifier.idl
@touch $@
-
-noinst_HEADERS = \
- Consumer.idl \
- Notifier.idl
-
-## Makefile.Callback_Quoter_consumer.am
-
noinst_PROGRAMS = consumer
consumer_CPPFLAGS = \
@@ -101,11 +94,22 @@ consumer_SOURCES = \
Consumer_Signal_Handler.cpp \
Consumer_i.cpp \
NotifierC.cpp \
+ NotifierS.cpp \
consumer.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.h \
+ ConsumerS_T.h \
+ ConsumerS_T.inl \
Consumer_Handler.h \
Consumer_Input_Handler.h \
Consumer_Signal_Handler.h \
- Consumer_i.h
+ Consumer_i.h \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.h \
+ NotifierS_T.h \
+ NotifierS_T.inl
consumer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
@@ -116,6 +120,64 @@ consumer_LDADD = \
## Makefile.Callback_Quoter_notifier.am
+BUILT_SOURCES += \
+ ConsumerC.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.cpp \
+ ConsumerS.h \
+ ConsumerS.inl \
+ ConsumerS_T.cpp \
+ ConsumerS_T.h \
+ ConsumerS_T.inl
+
+CLEANFILES += \
+ Consumer-stamp \
+ ConsumerC.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.cpp \
+ ConsumerS.h \
+ ConsumerS.inl \
+ ConsumerS_T.cpp \
+ ConsumerS_T.h \
+ ConsumerS_T.inl
+
+ConsumerC.cpp ConsumerC.h ConsumerC.inl ConsumerS.cpp ConsumerS.h ConsumerS.inl ConsumerS_T.cpp ConsumerS_T.h ConsumerS_T.inl: Consumer-stamp
+
+Consumer-stamp: $(srcdir)/Consumer.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Consumer.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ NotifierC.cpp \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.cpp \
+ NotifierS.h \
+ NotifierS.inl \
+ NotifierS_T.cpp \
+ NotifierS_T.h \
+ NotifierS_T.inl
+
+CLEANFILES += \
+ Notifier-stamp \
+ NotifierC.cpp \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.cpp \
+ NotifierS.h \
+ NotifierS.inl \
+ NotifierS_T.cpp \
+ NotifierS_T.h \
+ NotifierS_T.inl
+
+NotifierC.cpp NotifierC.h NotifierC.inl NotifierS.cpp NotifierS.h NotifierS.inl NotifierS_T.cpp NotifierS_T.h NotifierS_T.inl: Notifier-stamp
+
+Notifier-stamp: $(srcdir)/Notifier.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Notifier.idl
+ @touch $@
+
noinst_PROGRAMS += notifier
notifier_CPPFLAGS = \
@@ -128,11 +190,22 @@ notifier_CPPFLAGS = \
notifier_SOURCES = \
ConsumerC.cpp \
+ ConsumerS.cpp \
NotifierC.cpp \
NotifierS.cpp \
Notifier_Input_Handler.cpp \
Notifier_i.cpp \
notifier.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.h \
+ ConsumerS_T.h \
+ ConsumerS_T.inl \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.h \
+ NotifierS_T.h \
+ NotifierS_T.inl \
Notifier_Input_Handler.h \
Notifier_i.h
@@ -148,6 +221,64 @@ notifier_LDADD = \
## Makefile.Callback_Quoter_supplier.am
+BUILT_SOURCES += \
+ ConsumerC.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.cpp \
+ ConsumerS.h \
+ ConsumerS.inl \
+ ConsumerS_T.cpp \
+ ConsumerS_T.h \
+ ConsumerS_T.inl
+
+CLEANFILES += \
+ Consumer-stamp \
+ ConsumerC.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.cpp \
+ ConsumerS.h \
+ ConsumerS.inl \
+ ConsumerS_T.cpp \
+ ConsumerS_T.h \
+ ConsumerS_T.inl
+
+ConsumerC.cpp ConsumerC.h ConsumerC.inl ConsumerS.cpp ConsumerS.h ConsumerS.inl ConsumerS_T.cpp ConsumerS_T.h ConsumerS_T.inl: Consumer-stamp
+
+Consumer-stamp: $(srcdir)/Consumer.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Consumer.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ NotifierC.cpp \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.cpp \
+ NotifierS.h \
+ NotifierS.inl \
+ NotifierS_T.cpp \
+ NotifierS_T.h \
+ NotifierS_T.inl
+
+CLEANFILES += \
+ Notifier-stamp \
+ NotifierC.cpp \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.cpp \
+ NotifierS.h \
+ NotifierS.inl \
+ NotifierS_T.cpp \
+ NotifierS_T.h \
+ NotifierS_T.inl
+
+NotifierC.cpp NotifierC.h NotifierC.inl NotifierS.cpp NotifierS.h NotifierS.inl NotifierS_T.cpp NotifierS_T.h NotifierS_T.inl: Notifier-stamp
+
+Notifier-stamp: $(srcdir)/Notifier.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Notifier.idl
+ @touch $@
+
noinst_PROGRAMS += supplier
supplier_CPPFLAGS = \
@@ -163,10 +294,21 @@ supplier_SOURCES = \
ConsumerS.cpp \
Consumer_i.cpp \
NotifierC.cpp \
+ NotifierS.cpp \
Supplier_Timer_Handler.cpp \
Supplier_i.cpp \
supplier.cpp \
+ ConsumerC.h \
+ ConsumerC.inl \
+ ConsumerS.h \
+ ConsumerS_T.h \
+ ConsumerS_T.inl \
Consumer_i.h \
+ NotifierC.h \
+ NotifierC.inl \
+ NotifierS.h \
+ NotifierS_T.h \
+ NotifierS_T.inl \
Supplier_Timer_Handler.h \
Supplier_i.h
diff --git a/TAO/examples/Callback_Quoter/Notifier_Input_Handler.cpp b/TAO/examples/Callback_Quoter/Notifier_Input_Handler.cpp
index 7874c0ef56b..1bbbb931c30 100644
--- a/TAO/examples/Callback_Quoter/Notifier_Input_Handler.cpp
+++ b/TAO/examples/Callback_Quoter/Notifier_Input_Handler.cpp
@@ -99,7 +99,7 @@ Notifier_Input_Handler::init_naming_service (ACE_ENV_SINGLE_ARG_DECL)
int
Notifier_Input_Handler::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "df:s ");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "df:s ");
int c;
while ((c = get_opts ()) != -1)
@@ -110,7 +110,7 @@ Notifier_Input_Handler::parse_args (void)
break;
case 'f': // output the IOR toi a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
diff --git a/TAO/examples/Callback_Quoter/Supplier_i.cpp b/TAO/examples/Callback_Quoter/Supplier_i.cpp
index 35bcc26633a..ecce3a44f2e 100644
--- a/TAO/examples/Callback_Quoter/Supplier_i.cpp
+++ b/TAO/examples/Callback_Quoter/Supplier_i.cpp
@@ -86,7 +86,7 @@ Supplier::read_ior (char *filename)
int
Supplier::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dn:f:i:xk:xs");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dn:f:i:xk:xs");
int c;
int result;
@@ -335,7 +335,7 @@ Supplier::reactor_used (void) const
int
Supplier::read_file (char *filename)
{
- f_ptr_ = ACE_OS::fopen (filename, "r");
+ f_ptr_ = ACE_OS::fopen (filename, ACE_TEXT("r"));
ACE_DEBUG ((LM_DEBUG,
"filename = %s\n",filename));
diff --git a/TAO/examples/Callback_Quoter/consumer.cpp b/TAO/examples/Callback_Quoter/consumer.cpp
index 9060eb9ec1d..c56708c331f 100644
--- a/TAO/examples/Callback_Quoter/consumer.cpp
+++ b/TAO/examples/Callback_Quoter/consumer.cpp
@@ -1,18 +1,20 @@
// $Id$
#include "Consumer_Handler.h"
+#include "ace/Argv_Type_Converter.h"
// This function runs the Callback Quoter Consumer application.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Consumer_Handler consumer;
ACE_DEBUG ((LM_DEBUG,
"\n\t***Consumer***\n\n"));
- if (consumer.init (argc, argv) == -1)
+ if (consumer.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return consumer.run ();
diff --git a/TAO/examples/Callback_Quoter/notifier.cpp b/TAO/examples/Callback_Quoter/notifier.cpp
index 44f07d70cd1..fcd8ce876bd 100644
--- a/TAO/examples/Callback_Quoter/notifier.cpp
+++ b/TAO/examples/Callback_Quoter/notifier.cpp
@@ -1,14 +1,16 @@
// $Id$
#include "Notifier_Input_Handler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(notifier, Callback_Quoter, "$Id$")
// This is the main driver program for the Callback Quoter Notifier.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Notifier_Input_Handler notifier;
ACE_DEBUG ((LM_DEBUG,
@@ -17,7 +19,7 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int rc = notifier.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int rc = notifier.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (rc == -1)
diff --git a/TAO/examples/Callback_Quoter/supplier.cpp b/TAO/examples/Callback_Quoter/supplier.cpp
index 5d746eb0bc9..befb3418fd0 100644
--- a/TAO/examples/Callback_Quoter/supplier.cpp
+++ b/TAO/examples/Callback_Quoter/supplier.cpp
@@ -1,18 +1,20 @@
// $Id$
#include "Supplier_i.h"
+#include "ace/Argv_Type_Converter.h"
// This function runs the Callback Quoter Supplier daemon.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
- Supplier supplier;
+ ACE_Argv_Type_Converter convert (argc, argv);
+ Supplier supplier;
ACE_DEBUG ((LM_DEBUG,
"\n\tMarket Status Supplier Daemon\n\n"));
- if (supplier.init (argc, argv) == -1)
+ if (supplier.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return supplier.run ();
diff --git a/TAO/examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc b/TAO/examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc
index 3172a2ddd7f..04081ddaae5 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc
+++ b/TAO/examples/Content_Server/AMI_Iterator/AMI_Iterator.mpc
@@ -1,38 +1,17 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults, ami {
- IDL_Files {
- Web_Server.idl
- }
- custom_only = 1
-}
-
-project(*Server): messaging, taoserver, ami, namingexe {
- exename = server
- after += *IDL
- avoids += ace_for_tao
+project(*Server): messaging, taoexe, portableserver, ami, namingexe {
Source_Files {
Content_Iterator_i.cpp
Iterator_Factory_i.cpp
server.cpp
- Web_ServerS.cpp
- Web_ServerC.cpp
- }
- IDL_Files {
- }
+ }
}
-
-project(*Client): messaging, taoserver, ami, namingexe {
- exename = client
- after += *IDL
- avoids += ace_for_tao
+
+project(*Client): messaging, taoexe, portableserver, ami, namingexe {
Source_Files {
client.cpp
Iterator_Handler.cpp
- Web_ServerS.cpp
- Web_ServerC.cpp
- }
- IDL_Files {
- }
+ }
}
diff --git a/TAO/examples/Content_Server/AMI_Iterator/Content_Iterator_i.cpp b/TAO/examples/Content_Server/AMI_Iterator/Content_Iterator_i.cpp
index c5ae00a4544..313893dd39a 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/Content_Iterator_i.cpp
+++ b/TAO/examples/Content_Server/AMI_Iterator/Content_Iterator_i.cpp
@@ -11,7 +11,7 @@ ACE_RCSID (AMI_Iterator, Content_Iterator_i, "$Id$")
Content_Iterator_i::Content_Iterator_i (const char *pathname,
CORBA::ULong file_size)
- : file_ (pathname),
+ : file_ (ACE_TEXT_TO_TCHAR_IN(pathname)),
file_io_ (),
file_size_ (file_size),
chunk_index_ (1)
diff --git a/TAO/examples/Content_Server/AMI_Iterator/Iterator_Handler.h b/TAO/examples/Content_Server/AMI_Iterator/Iterator_Handler.h
index 2f65d26faab..c4f9b8d6dad 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/Iterator_Handler.h
+++ b/TAO/examples/Content_Server/AMI_Iterator/Iterator_Handler.h
@@ -58,7 +58,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void next_chunk_excep (
- ::Messaging::ExceptionHolder *
+ Web_Server::AMI_Content_IteratorExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException)) {}
@@ -66,7 +66,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void destroy_excep (
- ::Messaging::ExceptionHolder *
+ Web_Server::AMI_Content_IteratorExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException)) {}
diff --git a/TAO/examples/Content_Server/AMI_Iterator/Makefile.am b/TAO/examples/Content_Server/AMI_Iterator/Makefile.am
index 03a7c3fb5ab..af1a6daf815 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/Makefile.am
+++ b/TAO/examples/Content_Server/AMI_Iterator/Makefile.am
@@ -16,14 +16,16 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.AMI_Iterator_IDL.am
+## Makefile.AMI_Iterator_Client.am
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-BUILT_SOURCES = \
+BUILT_SOURCES += \
Web_ServerC.cpp \
Web_ServerC.h \
Web_ServerC.inl \
@@ -34,7 +36,7 @@ BUILT_SOURCES = \
Web_ServerS_T.h \
Web_ServerS_T.inl
-CLEANFILES = \
+CLEANFILES += \
Web_Server-stamp \
Web_ServerC.cpp \
Web_ServerC.h \
@@ -49,22 +51,9 @@ CLEANFILES = \
Web_ServerC.cpp Web_ServerC.h Web_ServerC.inl Web_ServerS.cpp Web_ServerS.h Web_ServerS.inl Web_ServerS_T.cpp Web_ServerS_T.h Web_ServerS_T.inl: Web_Server-stamp
Web_Server-stamp: $(srcdir)/Web_Server.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -GC $(srcdir)/Web_Server.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GC -I$(TAO_ROOT)/orbsvcs $(srcdir)/Web_Server.idl
@touch $@
-
-noinst_HEADERS = \
- Web_Server.idl
-
-endif BUILD_CORBA_MESSAGING
-endif BUILD_AMI
-
-## Makefile.AMI_Iterator_Client.am
-
-if BUILD_AMI
-if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -80,7 +69,12 @@ client_SOURCES = \
Web_ServerC.cpp \
Web_ServerS.cpp \
client.cpp \
- Iterator_Handler.h
+ Iterator_Handler.h \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.h \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
@@ -93,7 +87,6 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -101,7 +94,35 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
+
+BUILT_SOURCES += \
+ Web_ServerC.cpp \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.cpp \
+ Web_ServerS.h \
+ Web_ServerS.inl \
+ Web_ServerS_T.cpp \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
+
+CLEANFILES += \
+ Web_Server-stamp \
+ Web_ServerC.cpp \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.cpp \
+ Web_ServerS.h \
+ Web_ServerS.inl \
+ Web_ServerS_T.cpp \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
+
+Web_ServerC.cpp Web_ServerC.h Web_ServerC.inl Web_ServerS.cpp Web_ServerS.h Web_ServerS.inl Web_ServerS_T.cpp Web_ServerS_T.h Web_ServerS_T.inl: Web_Server-stamp
+
+Web_Server-stamp: $(srcdir)/Web_Server.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GC -I$(TAO_ROOT)/orbsvcs $(srcdir)/Web_Server.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -120,7 +141,12 @@ server_SOURCES = \
Web_ServerS.cpp \
server.cpp \
Content_Iterator_i.h \
- Iterator_Factory_i.h
+ Iterator_Factory_i.h \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.h \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
@@ -133,7 +159,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/examples/Content_Server/AMI_Iterator/client.cpp b/TAO/examples/Content_Server/AMI_Iterator/client.cpp
index 4f4368cca67..6699b86e461 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/client.cpp
+++ b/TAO/examples/Content_Server/AMI_Iterator/client.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/CosNamingC.h"
#include "Web_ServerC.h"
#include "Iterator_Handler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI_Iterator,
client,
@@ -26,8 +27,9 @@ void invoke_requests (int argc,
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -37,8 +39,7 @@ main (int argc, char *argv[])
ACE_TEXT ("[filename ...]\n")),
-1);
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -79,8 +80,7 @@ main (int argc, char *argv[])
// completed.
int request_count = 0;
- ::invoke_requests (argc,
- argv,
+ ::invoke_requests (convert.get_argc(), convert.get_ASCII_argv(),
&request_count,
factory.in ()
ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/examples/Content_Server/AMI_Iterator/server.cpp b/TAO/examples/Content_Server/AMI_Iterator/server.cpp
index a1c2d6de7e5..73d9548f64e 100644
--- a/TAO/examples/Content_Server/AMI_Iterator/server.cpp
+++ b/TAO/examples/Content_Server/AMI_Iterator/server.cpp
@@ -7,20 +7,21 @@
#include "Web_ServerS.h"
#include "Iterator_Factory_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI_Iterator,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/Content_Server/AMI_Observer/AMI_Observer.mpc b/TAO/examples/Content_Server/AMI_Observer/AMI_Observer.mpc
index 9ebc2e75c6c..1a370ff20ec 100644
--- a/TAO/examples/Content_Server/AMI_Observer/AMI_Observer.mpc
+++ b/TAO/examples/Content_Server/AMI_Observer/AMI_Observer.mpc
@@ -1,39 +1,18 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults, ami {
- IDL_Files {
- Push_Web_Server.idl
- }
- custom_only = 1
-}
-
-project(*Server): messaging, taoserver, ami, namingexe {
- exename = server
- after += *IDL
- avoids += ace_for_tao
+project(*Server): messaging, taoexe, portableserver, ami, namingexe {
Source_Files {
Callback_Handler.cpp
Push_Iterator_Factory_i.cpp
server.cpp
- Push_Web_ServerS.cpp
- Push_Web_ServerC.cpp
- }
- IDL_Files {
- }
+ }
}
-
-project(*Client): messaging, taoserver, ami, namingexe {
- exename = client
- after += *IDL
- avoids += ace_for_tao
+
+project(*Client): messaging, taoexe, portableserver, ami, namingexe {
Source_Files {
client.cpp
Callback_i.cpp
Push_Iterator_Handler.cpp
- Push_Web_ServerS.cpp
- Push_Web_ServerC.cpp
- }
- IDL_Files {
- }
+ }
}
diff --git a/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.cpp b/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.cpp
index 832e96b6732..1ff4769adec 100644
--- a/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.cpp
+++ b/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.cpp
@@ -11,7 +11,7 @@ ACE_RCSID (AMI_Observer, Callback_Handler, "$Id$")
Callback_Handler::Callback_Handler (const char *pathname,
Web_Server::Callback_ptr client_callback)
- : file_ (pathname),
+ : file_ (ACE_TEXT_TO_TCHAR_IN(pathname)),
file_io_ (),
callback_ (Web_Server::Callback::_duplicate (client_callback)),
ami_handler_ (),
@@ -86,7 +86,7 @@ Callback_Handler::next_chunk (ACE_ENV_SINGLE_ARG_DECL)
void
Callback_Handler::next_chunk_excep
- (::Messaging::ExceptionHolder *excep_holder
+ (Web_Server::AMI_CallbackExceptionHolder *excep_holder
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -98,7 +98,7 @@ Callback_Handler::next_chunk_excep
this->deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_next_chunk (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.h b/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.h
index db3f8bb2656..96a560fc5ec 100644
--- a/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.h
+++ b/TAO/examples/Content_Server/AMI_Observer/Callback_Handler.h
@@ -81,7 +81,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
// The callback for this reply handler.
- virtual void next_chunk_excep (::Messaging::ExceptionHolder *
+ virtual void next_chunk_excep (Web_Server::AMI_CallbackExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/examples/Content_Server/AMI_Observer/Makefile.am b/TAO/examples/Content_Server/AMI_Observer/Makefile.am
index 251cf4e6068..01da83b3ce9 100644
--- a/TAO/examples/Content_Server/AMI_Observer/Makefile.am
+++ b/TAO/examples/Content_Server/AMI_Observer/Makefile.am
@@ -16,14 +16,16 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.AMI_Observer_IDL.am
+## Makefile.AMI_Observer_Client.am
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-BUILT_SOURCES = \
+BUILT_SOURCES += \
Push_Web_ServerC.cpp \
Push_Web_ServerC.h \
Push_Web_ServerC.inl \
@@ -34,7 +36,7 @@ BUILT_SOURCES = \
Push_Web_ServerS_T.h \
Push_Web_ServerS_T.inl
-CLEANFILES = \
+CLEANFILES += \
Push_Web_Server-stamp \
Push_Web_ServerC.cpp \
Push_Web_ServerC.h \
@@ -49,22 +51,9 @@ CLEANFILES = \
Push_Web_ServerC.cpp Push_Web_ServerC.h Push_Web_ServerC.inl Push_Web_ServerS.cpp Push_Web_ServerS.h Push_Web_ServerS.inl Push_Web_ServerS_T.cpp Push_Web_ServerS_T.h Push_Web_ServerS_T.inl: Push_Web_Server-stamp
Push_Web_Server-stamp: $(srcdir)/Push_Web_Server.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -GC $(srcdir)/Push_Web_Server.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GC -I$(TAO_ROOT)/orbsvcs $(srcdir)/Push_Web_Server.idl
@touch $@
-
-noinst_HEADERS = \
- Push_Web_Server.idl
-
-endif BUILD_CORBA_MESSAGING
-endif BUILD_AMI
-
-## Makefile.AMI_Observer_Client.am
-
-if BUILD_AMI
-if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -82,7 +71,12 @@ client_SOURCES = \
Push_Web_ServerS.cpp \
client.cpp \
Callback_i.h \
- Push_Iterator_Handler.h
+ Push_Iterator_Handler.h \
+ Push_Web_ServerC.h \
+ Push_Web_ServerC.inl \
+ Push_Web_ServerS.h \
+ Push_Web_ServerS_T.h \
+ Push_Web_ServerS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
@@ -95,7 +89,6 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -103,7 +96,35 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
+
+BUILT_SOURCES += \
+ Push_Web_ServerC.cpp \
+ Push_Web_ServerC.h \
+ Push_Web_ServerC.inl \
+ Push_Web_ServerS.cpp \
+ Push_Web_ServerS.h \
+ Push_Web_ServerS.inl \
+ Push_Web_ServerS_T.cpp \
+ Push_Web_ServerS_T.h \
+ Push_Web_ServerS_T.inl
+
+CLEANFILES += \
+ Push_Web_Server-stamp \
+ Push_Web_ServerC.cpp \
+ Push_Web_ServerC.h \
+ Push_Web_ServerC.inl \
+ Push_Web_ServerS.cpp \
+ Push_Web_ServerS.h \
+ Push_Web_ServerS.inl \
+ Push_Web_ServerS_T.cpp \
+ Push_Web_ServerS_T.h \
+ Push_Web_ServerS_T.inl
+
+Push_Web_ServerC.cpp Push_Web_ServerC.h Push_Web_ServerC.inl Push_Web_ServerS.cpp Push_Web_ServerS.h Push_Web_ServerS.inl Push_Web_ServerS_T.cpp Push_Web_ServerS_T.h Push_Web_ServerS_T.inl: Push_Web_Server-stamp
+
+Push_Web_Server-stamp: $(srcdir)/Push_Web_Server.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -GC -I$(TAO_ROOT)/orbsvcs $(srcdir)/Push_Web_Server.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -122,7 +143,12 @@ server_SOURCES = \
Push_Web_ServerS.cpp \
server.cpp \
Callback_Handler.h \
- Push_Iterator_Factory_i.h
+ Push_Iterator_Factory_i.h \
+ Push_Web_ServerC.h \
+ Push_Web_ServerC.inl \
+ Push_Web_ServerS.h \
+ Push_Web_ServerS_T.h \
+ Push_Web_ServerS_T.inl
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
@@ -135,7 +161,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h b/TAO/examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h
index 8b8254550da..26093e6ccf0 100644
--- a/TAO/examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h
+++ b/TAO/examples/Content_Server/AMI_Observer/Push_Iterator_Handler.h
@@ -85,7 +85,7 @@ private:
// corresponding server method is received.
virtual void register_callback_excep
- (::Messaging::ExceptionHolder *
+ (Web_Server::AMI_Iterator_FactoryExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException)) {}
diff --git a/TAO/examples/Content_Server/AMI_Observer/client.cpp b/TAO/examples/Content_Server/AMI_Observer/client.cpp
index 986c828875a..a8d56209ce8 100644
--- a/TAO/examples/Content_Server/AMI_Observer/client.cpp
+++ b/TAO/examples/Content_Server/AMI_Observer/client.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/CosNamingC.h"
#include "Push_Web_ServerC.h"
#include "Push_Iterator_Handler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI_Observer,
client,
@@ -26,8 +27,9 @@ void invoke_requests (int argc,
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -38,8 +40,7 @@ main (int argc, char *argv[])
-1);
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -80,8 +81,7 @@ main (int argc, char *argv[])
int request_count = 0;
// Activate and run the reply handlers.
- ::invoke_requests (argc,
- argv,
+ ::invoke_requests (convert.get_argc(), convert.get_ASCII_argv(),
&request_count,
factory.in ()
ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/examples/Content_Server/AMI_Observer/server.cpp b/TAO/examples/Content_Server/AMI_Observer/server.cpp
index 83388bc3fb9..39d6de39ef2 100644
--- a/TAO/examples/Content_Server/AMI_Observer/server.cpp
+++ b/TAO/examples/Content_Server/AMI_Observer/server.cpp
@@ -6,20 +6,21 @@
#include "orbsvcs/CosNamingC.h"
#include "Push_Web_ServerS.h"
#include "Push_Iterator_Factory_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI_Observer,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp b/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp
index 669ead91a3b..a31b5962d28 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp
+++ b/TAO/examples/Content_Server/SMI_Iterator/Content_Iterator_i.cpp
@@ -12,7 +12,7 @@ ACE_RCSID(SMI_Iterator, Content_Iterator_i, "$Id$")
Content_Iterator_i::Content_Iterator_i (const char *pathname,
CORBA::ULong file_size)
- : file_ (pathname),
+ : file_ (ACE_TEXT_TO_TCHAR_IN(pathname)),
file_io_ (),
file_size_ (file_size),
chunk_index_ (1)
diff --git a/TAO/examples/Content_Server/SMI_Iterator/Makefile.am b/TAO/examples/Content_Server/SMI_Iterator/Makefile.am
index 4cf322bab24..ebf508db7e1 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/Makefile.am
+++ b/TAO/examples/Content_Server/SMI_Iterator/Makefile.am
@@ -16,15 +16,12 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
-## Makefile.SMI_Iterator_IDL.am
+## Makefile.SMI_Iterator_Client.am
BUILT_SOURCES = \
Web_ServerC.cpp \
Web_ServerC.h \
Web_ServerC.inl \
- Web_ServerS.cpp \
Web_ServerS.h \
Web_ServerS.inl \
Web_ServerS_T.cpp \
@@ -36,28 +33,19 @@ CLEANFILES = \
Web_ServerC.cpp \
Web_ServerC.h \
Web_ServerC.inl \
- Web_ServerS.cpp \
Web_ServerS.h \
Web_ServerS.inl \
Web_ServerS_T.cpp \
Web_ServerS_T.h \
Web_ServerS_T.inl
-Web_ServerC.cpp Web_ServerC.h Web_ServerC.inl Web_ServerS.cpp Web_ServerS.h Web_ServerS.inl Web_ServerS_T.cpp Web_ServerS_T.h Web_ServerS_T.inl: Web_Server-stamp
+Web_ServerC.cpp Web_ServerC.h Web_ServerC.inl Web_ServerS.h Web_ServerS.inl Web_ServerS_T.cpp Web_ServerS_T.h Web_ServerS_T.inl: Web_Server-stamp
Web_Server-stamp: $(srcdir)/Web_Server.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Web_Server.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Web_Server.idl
@touch $@
-
-noinst_HEADERS = \
- Web_Server.idl
-
-## Makefile.SMI_Iterator_Client.am
-
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -70,8 +58,11 @@ client_CPPFLAGS = \
client_SOURCES = \
Web_ServerC.cpp \
client.cpp \
- Content_Iterator_i.h \
- Iterator_Factory_i.h
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.h \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
@@ -79,11 +70,36 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.SMI_Iterator_Server.am
-if !BUILD_ACE_FOR_TAO
+BUILT_SOURCES += \
+ Web_ServerC.cpp \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.cpp \
+ Web_ServerS.h \
+ Web_ServerS.inl \
+ Web_ServerS_T.cpp \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
+
+CLEANFILES += \
+ Web_Server-stamp \
+ Web_ServerC.cpp \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.cpp \
+ Web_ServerS.h \
+ Web_ServerS.inl \
+ Web_ServerS_T.cpp \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
+
+Web_ServerC.cpp Web_ServerC.h Web_ServerC.inl Web_ServerS.cpp Web_ServerS.h Web_ServerS.inl Web_ServerS_T.cpp Web_ServerS_T.h Web_ServerS_T.inl: Web_Server-stamp
+
+Web_Server-stamp: $(srcdir)/Web_Server.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Web_Server.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -102,7 +118,12 @@ server_SOURCES = \
Web_ServerS.cpp \
server.cpp \
Content_Iterator_i.h \
- Iterator_Factory_i.h
+ Iterator_Factory_i.h \
+ Web_ServerC.h \
+ Web_ServerC.inl \
+ Web_ServerS.h \
+ Web_ServerS_T.h \
+ Web_ServerS_T.inl
server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
@@ -111,8 +132,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc b/TAO/examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc
index 4675543c102..02d4eecf462 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc
+++ b/TAO/examples/Content_Server/SMI_Iterator/SMI_Iterator.mpc
@@ -1,36 +1,18 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Web_Server.idl
- }
- custom_only = 1
-}
-
project(*Server): namingexe, portableserver {
- exename = server
- after += *IDL
- avoids += ace_for_tao
Source_Files {
Content_Iterator_i.cpp
Iterator_Factory_i.cpp
server.cpp
- Web_ServerS.cpp
- Web_ServerC.cpp
- }
- IDL_Files {
}
}
project(*Client): namingexe {
- exename = client
- after += *IDL
- avoids += ace_for_tao
Source_Files {
Web_ServerC.cpp
client.cpp
}
- IDL_Files {
- }
}
+
diff --git a/TAO/examples/Content_Server/SMI_Iterator/client.cpp b/TAO/examples/Content_Server/SMI_Iterator/client.cpp
index dcec6b9a578..7a1e2504d21 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/client.cpp
+++ b/TAO/examples/Content_Server/SMI_Iterator/client.cpp
@@ -9,7 +9,7 @@
#include "Web_ServerC.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_string.h"
-
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (SMI_Iterator,
client,
@@ -32,8 +32,9 @@ int spawn_viewer (const char *content_type,
const char *filename);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -43,8 +44,7 @@ main (int argc, char *argv[])
-1);
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -92,7 +92,7 @@ main (int argc, char *argv[])
}
// Get a Content_Iterator
- const char *pathname = argv[1];
+ const char *pathname = convert.get_ASCII_argv()[1];
Web_Server::Content_Iterator_var contents;
Web_Server::Metadata_Type_var metadata;
factory->get_iterator (pathname,
@@ -211,7 +211,7 @@ int retrieve_data (const char *content_type,
// Now spawn a view to display the retrieved data.
if (::spawn_viewer (content_type,
- file_addr.get_path_name ()) != 0)
+ ACE_TEXT_TO_CHAR_IN(file_addr.get_path_name ())) != 0)
return -1;
return 0;
diff --git a/TAO/examples/Content_Server/SMI_Iterator/server.cpp b/TAO/examples/Content_Server/SMI_Iterator/server.cpp
index 701dccbeac0..e140cac77f8 100644
--- a/TAO/examples/Content_Server/SMI_Iterator/server.cpp
+++ b/TAO/examples/Content_Server/SMI_Iterator/server.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/CosNamingC.h"
#include "Web_ServerS.h"
+#include "ace/Argv_Type_Converter.h"
#include "Iterator_Factory_i.h"
@@ -13,14 +14,14 @@ ACE_RCSID (SMI_Iterator,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Mighty ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/Event_Comm/Event_Comm.mpc b/TAO/examples/Event_Comm/Event_Comm.mpc
index 43cb7b7ec2f..9426da76b79 100644
--- a/TAO/examples/Event_Comm/Event_Comm.mpc
+++ b/TAO/examples/Event_Comm/Event_Comm.mpc
@@ -1,50 +1,28 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Event_Comm.idl
- }
- custom_only = 1
-}
-
project(*notifier): namingexe, utils {
- after += *IDL
Source_Files {
Event_Comm_i.cpp
Notifier_Server.cpp
notifier.cpp
- Event_CommS.cpp
- Event_CommC.cpp
- }
- IDL_Files {
}
}
project(*consumer): namingexe, portableserver {
- after += *IDL
Source_Files {
Consumer_Input_Handler.cpp
Consumer_Handler.cpp
consumer.cpp
Event_Comm_i.cpp
- Event_CommS.cpp
- Event_CommC.cpp
- }
- IDL_Files {
}
}
project(*supplier): namingexe, portableserver {
- after += *IDL
Source_Files {
Event_Comm_i.cpp
Supplier_Input_Handler.cpp
supplier.cpp
Notifier_Handler.cpp
- Event_CommS.cpp
- Event_CommC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Event_Comm/Makefile.am b/TAO/examples/Event_Comm/Makefile.am
index 4aeaf8ae4e3..8dc7b42f0fd 100644
--- a/TAO/examples/Event_Comm/Makefile.am
+++ b/TAO/examples/Event_Comm/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.Event_Comm_IDL.am
+## Makefile.Event_Comm_Consumer.am
BUILT_SOURCES = \
Event_CommC.cpp \
@@ -44,15 +44,9 @@ CLEANFILES = \
Event_CommC.cpp Event_CommC.h Event_CommC.inl Event_CommS.cpp Event_CommS.h Event_CommS.inl Event_CommS_T.cpp Event_CommS_T.h Event_CommS_T.inl: Event_Comm-stamp
Event_Comm-stamp: $(srcdir)/Event_Comm.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Event_Comm.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Event_Comm.idl
@touch $@
-
-noinst_HEADERS = \
- Event_Comm.idl
-
-## Makefile.Event_Comm_Consumer.am
-
noinst_PROGRAMS = consumer
consumer_CPPFLAGS = \
@@ -72,6 +66,11 @@ consumer_SOURCES = \
consumer.cpp \
Consumer_Handler.h \
Consumer_Input_Handler.h \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.h \
+ Event_CommS_T.h \
+ Event_CommS_T.inl \
Event_Comm_i.h
consumer_LDADD = \
@@ -83,6 +82,35 @@ consumer_LDADD = \
## Makefile.Event_Comm_Notifier.am
+BUILT_SOURCES += \
+ Event_CommC.cpp \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.cpp \
+ Event_CommS.h \
+ Event_CommS.inl \
+ Event_CommS_T.cpp \
+ Event_CommS_T.h \
+ Event_CommS_T.inl
+
+CLEANFILES += \
+ Event_Comm-stamp \
+ Event_CommC.cpp \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.cpp \
+ Event_CommS.h \
+ Event_CommS.inl \
+ Event_CommS_T.cpp \
+ Event_CommS_T.h \
+ Event_CommS_T.inl
+
+Event_CommC.cpp Event_CommC.h Event_CommC.inl Event_CommS.cpp Event_CommS.h Event_CommS.inl Event_CommS_T.cpp Event_CommS_T.h Event_CommS_T.inl: Event_Comm-stamp
+
+Event_Comm-stamp: $(srcdir)/Event_Comm.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Event_Comm.idl
+ @touch $@
+
noinst_PROGRAMS += notifier
notifier_CPPFLAGS = \
@@ -99,6 +127,11 @@ notifier_SOURCES = \
Event_Comm_i.cpp \
Notifier_Server.cpp \
notifier.cpp \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.h \
+ Event_CommS_T.h \
+ Event_CommS_T.inl \
Event_Comm_i.h \
Notifier_Server.h \
notifier.h
@@ -115,6 +148,35 @@ notifier_LDADD = \
## Makefile.Event_Comm_Supplier.am
+BUILT_SOURCES += \
+ Event_CommC.cpp \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.cpp \
+ Event_CommS.h \
+ Event_CommS.inl \
+ Event_CommS_T.cpp \
+ Event_CommS_T.h \
+ Event_CommS_T.inl
+
+CLEANFILES += \
+ Event_Comm-stamp \
+ Event_CommC.cpp \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.cpp \
+ Event_CommS.h \
+ Event_CommS.inl \
+ Event_CommS_T.cpp \
+ Event_CommS_T.h \
+ Event_CommS_T.inl
+
+Event_CommC.cpp Event_CommC.h Event_CommC.inl Event_CommS.cpp Event_CommS.h Event_CommS.inl Event_CommS_T.cpp Event_CommS_T.h Event_CommS_T.inl: Event_Comm-stamp
+
+Event_Comm-stamp: $(srcdir)/Event_Comm.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Event_Comm.idl
+ @touch $@
+
noinst_PROGRAMS += supplier
supplier_CPPFLAGS = \
@@ -132,6 +194,11 @@ supplier_SOURCES = \
Notifier_Handler.cpp \
Supplier_Input_Handler.cpp \
supplier.cpp \
+ Event_CommC.h \
+ Event_CommC.inl \
+ Event_CommS.h \
+ Event_CommS_T.h \
+ Event_CommS_T.inl \
Event_Comm_i.h \
Notifier_Handler.h \
Supplier_Input_Handler.h \
diff --git a/TAO/examples/Event_Comm/consumer.cpp b/TAO/examples/Event_Comm/consumer.cpp
index 55b157feaf0..52af5c5c731 100644
--- a/TAO/examples/Event_Comm/consumer.cpp
+++ b/TAO/examples/Event_Comm/consumer.cpp
@@ -2,6 +2,7 @@
#include "Consumer_Handler.h"
#include "Consumer_Input_Handler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Consumer, consumer, "$Id$")
@@ -110,12 +111,13 @@ Consumer::initialize (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Initialize the supplier and consumer object references.
Consumer consumer;
- if (consumer.initialize (argc, argv) == -1)
+ if (consumer.initialize (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
"Consumer init failed\n"),
diff --git a/TAO/examples/Event_Comm/notifier.cpp b/TAO/examples/Event_Comm/notifier.cpp
index 8e348b1df5b..d9d365d8d97 100644
--- a/TAO/examples/Event_Comm/notifier.cpp
+++ b/TAO/examples/Event_Comm/notifier.cpp
@@ -2,6 +2,7 @@
#include "Notifier_Server.h"
#include "notifier.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Notifier, notifier, "$Id$")
@@ -61,10 +62,11 @@ Notifier::~Notifier (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Initialize server daemon.
- Notifier notifier (argc, argv);
+ Notifier notifier (convert.get_argc(), convert.get_ASCII_argv());
// Loop forever handling events.
notifier.run ();
diff --git a/TAO/examples/Event_Comm/supplier.cpp b/TAO/examples/Event_Comm/supplier.cpp
index c44b6123b8d..3e665ee8bc8 100644
--- a/TAO/examples/Event_Comm/supplier.cpp
+++ b/TAO/examples/Event_Comm/supplier.cpp
@@ -3,6 +3,7 @@
#include "Notifier_Handler.h"
#include "Supplier_Input_Handler.h"
#include "supplier.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Supplier, supplier, "$Id$")
Supplier::Supplier (void)
@@ -67,12 +68,13 @@ Supplier::init (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Initialize server daemon.
Supplier supplier;
- if (supplier.init (argc, argv) == -1)
+ if (supplier.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
"supplier init failed"),
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.cpp b/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.cpp
index d7d06da76fd..0db393b8ce1 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.cpp
@@ -57,10 +57,10 @@ Task_Stats::end_time (ACE_hrtime_t time)
}
void
-Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
+Task_Stats::dump_samples (const char *file_name, const char *msg,
ACE_UINT32)
{
- FILE* output_file = ACE_OS::fopen (file_name, "w");
+ FILE* output_file = ACE_OS::fopen (file_name, ACE_TEXT("w"));
if (output_file == 0)
{
@@ -70,7 +70,7 @@ Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
}
// first dump what the caller has to say.
- ACE_OS::fprintf (output_file, "%s\n",msg);
+ ACE_OS::fprintf (output_file, ACE_TEXT("%s\n"),msg);
// next, compose and dump what we want to say.
ACE_UINT32 val_1;
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.h b/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.h
index f3d7d4a300f..6519e30c942 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.h
+++ b/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.h
@@ -61,10 +61,10 @@ class Kokyu_DSRT_Schedulers_Export Task_Stats
/// Record a sample
int sample (ACE_UINT32 thr_run_time, int thr_count);
- void dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
+ void dump_samples (const char *file_name, const char *msg,
ACE_UINT32 scale_factor);
protected:
- void dump_latency_stats (ACE_TCHAR *out_msg, ACE_UINT32 sf);
+ void dump_latency_stats (char *out_msg, ACE_UINT32 sf);
/// Base and end times
ACE_hrtime_t base_time_;
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.inl b/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.inl
index 0971502bcc0..3b50f8c52a4 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.inl
+++ b/TAO/examples/Kokyu_dsrt_schedulers/Task_Stats.inl
@@ -1,7 +1,5 @@
//$Id$
-#include "ace/Log_Msg.h"
-
ACE_INLINE int
Task_Stats::sample (ACE_UINT32 thr_run_time, int thr_count)
{
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am
index 84b80fd2250..386c0449d09 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am
+++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/Makefile.am
@@ -16,47 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.fp_example_IDL.am
+## Makefile.fp_client.am
+
+if BUILD_RT_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+testC.cpp testC.h testC.inl testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/test.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.fp_client.am
-
-if BUILD_RT_CORBA
-
noinst_PROGRAMS += fp_client
fp_client_CPPFLAGS = \
@@ -65,14 +59,16 @@ fp_client_CPPFLAGS = \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
-I$(ACE_ROOT)/Kokyu \
- -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers \
- -I$(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
+ -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
fp_client_SOURCES = \
client.cpp \
testC.cpp \
- test_i.h \
- test_i.i
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
fp_client_LDADD = \
$(top_builddir)/examples/Kokyu_dsrt_schedulers/libKokyu_DSRT_Schedulers.la \
@@ -93,6 +89,35 @@ endif BUILD_RT_CORBA
if BUILD_RT_CORBA
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += fp_server
fp_server_CPPFLAGS = \
@@ -101,14 +126,18 @@ fp_server_CPPFLAGS = \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
-I$(ACE_ROOT)/Kokyu \
- -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers \
- -I$(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
+ -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
fp_server_SOURCES = \
server.cpp \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h \
test_i.i
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/client.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/client.cpp
index 6d3ab90a29b..b9318e79331 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/client.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/client.cpp
@@ -7,6 +7,7 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "testC.h"
#include "FP_Scheduler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, client, "$Id$")
@@ -52,7 +53,7 @@ private:
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:ds");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:ds");
int c;
while ((c = get_opts ()) != -1)
@@ -95,8 +96,9 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Fixed_Priority_Scheduler* scheduler=0;
RTScheduling::Current_var current;
int prio;
@@ -141,10 +143,10 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/fp_example.mpc b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/fp_example.mpc
index a9d12fa4794..e55eb8fc152 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/fp_example.mpc
+++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/fp_example.mpc
@@ -1,33 +1,19 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
project(fp_server): kokyu_dsrt_scheduler_server {
exename = fp_server
- after += *IDL
Source_Files {
test_i.cpp
server.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
project(fp_client): kokyu_dsrt_scheduler_client {
exename = fp_client
- after += *IDL
Source_Files {
testC.cpp
client.cpp
}
- IDL_Files {
- }
}
+
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp
index 839dcd2c9cf..7b134f49a8b 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp
@@ -7,6 +7,7 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "FP_Scheduler.h"
#include "Task_Stats.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, server, "$Id$")
@@ -20,7 +21,7 @@ int enable_yield = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:ds");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:ds");
int c;
while ((c = get_opts ()) != -1)
@@ -80,8 +81,9 @@ private:
Task_Stats task_stats;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Fixed_Priority_Scheduler* scheduler=0;
RTScheduling::Current_var current;
long flags;
@@ -98,7 +100,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -118,7 +120,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
if (enable_dynamic_scheduling)
@@ -179,7 +181,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am
index fc8a40e661c..ec056f1b1dd 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am
+++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/Makefile.am
@@ -16,47 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.mif_example_IDL.am
+## Makefile.mif_client.am
-BUILT_SOURCES = \
+if BUILD_RT_CORBA
+
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+testC.cpp testC.h testC.inl testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/test.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.mif_example_client.am
-
-if BUILD_RT_CORBA
-
noinst_PROGRAMS += mif_client
mif_client_CPPFLAGS = \
@@ -65,14 +59,16 @@ mif_client_CPPFLAGS = \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
-I$(ACE_ROOT)/Kokyu \
- -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers \
- -I$(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
+ -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
mif_client_SOURCES = \
client.cpp \
testC.cpp \
- test_i.h \
- test_i.i
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
mif_client_LDADD = \
$(top_builddir)/examples/Kokyu_dsrt_schedulers/libKokyu_DSRT_Schedulers.la \
@@ -89,10 +85,39 @@ mif_client_LDADD = \
endif BUILD_RT_CORBA
-## Makefile.mif_example_server.am
+## Makefile.mif_server.am
if BUILD_RT_CORBA
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += mif_server
mif_server_CPPFLAGS = \
@@ -101,14 +126,18 @@ mif_server_CPPFLAGS = \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
-I$(ACE_ROOT)/Kokyu \
- -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers \
- -I$(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
+ -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
mif_server_SOURCES = \
server.cpp \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h \
test_i.i
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/client.cpp b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/client.cpp
index 122e2b06881..2640256aff1 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/client.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/client.cpp
@@ -7,6 +7,7 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "testC.h"
#include "MIF_Scheduler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, client, "$Id$")
@@ -52,7 +53,7 @@ private:
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:ds");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:ds");
int c;
while ((c = get_opts ()) != -1)
@@ -95,8 +96,9 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
MIF_Scheduler* scheduler=0;
RTScheduling::Current_var current;
int prio;
@@ -141,10 +143,10 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc
index 9b222313347..cda0301f0bc 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc
+++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/mif_example.mpc
@@ -1,34 +1,19 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
-project(*server): kokyu_dsrt_scheduler_server {
+project(mif_server): kokyu_dsrt_scheduler_server {
exename = mif_server
- after += *IDL
Source_Files {
test_i.cpp
server.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
-project(*client): kokyu_dsrt_scheduler_client {
+project(mif_client): kokyu_dsrt_scheduler_client {
exename = mif_client
- after += *IDL
Source_Files {
testC.cpp
client.cpp
}
- IDL_Files {
- }
}
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp
index a137b5d45f8..e3e2ac239cd 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp
@@ -7,6 +7,7 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "MIF_Scheduler.h"
#include "Task_Stats.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, server, "$Id$")
@@ -20,7 +21,7 @@ int enable_yield = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:ds");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:ds");
int c;
while ((c = get_opts ()) != -1)
@@ -80,8 +81,9 @@ private:
Task_Stats task_stats;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
MIF_Scheduler* scheduler=0;
RTScheduling::Current_var current;
long flags;
@@ -98,7 +100,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -118,7 +120,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
if (enable_dynamic_scheduling)
@@ -179,7 +181,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am
index c525d4db79e..e805aefff64 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am
+++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/Makefile.am
@@ -16,47 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.muf_example_IDL.am
+## Makefile.muf_client.am
+
+if BUILD_RT_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+testC.cpp testC.h testC.inl testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/test.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.muf_client.am
-
-if BUILD_RT_CORBA
-
noinst_PROGRAMS += muf_client
muf_client_CPPFLAGS = \
@@ -67,14 +61,16 @@ muf_client_CPPFLAGS = \
-I$(TAO_ROOT)/orbsvcs \
-I$(TAO_BUILDDIR)/orbsvcs \
-I$(ACE_ROOT)/Kokyu \
- -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers \
- -I$(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
+ -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
muf_client_SOURCES = \
client.cpp \
testC.cpp \
- test_i.h \
- test_i.i
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
muf_client_LDADD = \
$(top_builddir)/examples/Kokyu_dsrt_schedulers/libKokyu_DSRT_Schedulers.la \
@@ -96,6 +92,35 @@ endif BUILD_RT_CORBA
if BUILD_RT_CORBA
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += muf_server
muf_server_CPPFLAGS = \
@@ -104,14 +129,18 @@ muf_server_CPPFLAGS = \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
-I$(ACE_ROOT)/Kokyu \
- -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers \
- -I$(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
+ -I$(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
muf_server_SOURCES = \
server.cpp \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h \
test_i.i
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/client.cpp b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/client.cpp
index 81e8d8b0d83..2f1d212ae32 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/client.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/client.cpp
@@ -8,6 +8,7 @@
#include "testC.h"
#include "MUF_Scheduler.h"
#include "orbsvcs/Time_Utilities.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, client, "$Id$")
@@ -57,7 +58,7 @@ private:
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:ds");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:ds");
int c;
while ((c = get_opts ()) != -1)
@@ -100,8 +101,9 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
MUF_Scheduler* scheduler=0;
RTScheduling::Current_var current;
int prio;
@@ -146,10 +148,10 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/muf_example.mpc b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/muf_example.mpc
index ed79bd08918..3fa7f6dcd1e 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/muf_example.mpc
+++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/muf_example.mpc
@@ -1,33 +1,19 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
project(muf_server): kokyu_dsrt_scheduler_server {
exename = muf_server
- after += *IDL
Source_Files {
test_i.cpp
server.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
project(muf_client): orbsvcsexe, svc_utils, kokyu_dsrt_scheduler_client {
exename = muf_client
- after += *IDL
Source_Files {
testC.cpp
client.cpp
}
- IDL_Files {
- }
}
+
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp
index f22355074e1..625df80826e 100644
--- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp
+++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp
@@ -7,6 +7,7 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "MUF_Scheduler.h"
#include "Task_Stats.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, server, "$Id$")
@@ -20,7 +21,7 @@ int enable_yield = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:ds");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:ds");
int c;
while ((c = get_opts ()) != -1)
@@ -80,8 +81,9 @@ private:
Task_Stats task_stats;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
MUF_Scheduler* scheduler = 0;
RTScheduling::Current_var current;
long flags;
@@ -98,7 +100,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -118,7 +120,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
if (enable_dynamic_scheduling)
@@ -179,7 +181,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/Load_Balancing/Identity_Client.cpp b/TAO/examples/Load_Balancing/Identity_Client.cpp
index c69b8ecd184..4ac1ff98374 100644
--- a/TAO/examples/Load_Balancing/Identity_Client.cpp
+++ b/TAO/examples/Load_Balancing/Identity_Client.cpp
@@ -20,6 +20,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
Identity_Client::Identity_Client (void)
: group_factory_ior_ (0),
@@ -31,7 +32,7 @@ Identity_Client::Identity_Client (void)
int
Identity_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "di:n:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "di:n:r");
int c;
while ((c = get_opts ()) != -1)
@@ -205,12 +206,13 @@ Identity_Client::~Identity_Client (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Identity_Client client;
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Load_Balancing/Identity_Server.cpp b/TAO/examples/Load_Balancing/Identity_Server.cpp
index 638dd1e245b..ef03f6c6357 100644
--- a/TAO/examples/Load_Balancing/Identity_Server.cpp
+++ b/TAO/examples/Load_Balancing/Identity_Server.cpp
@@ -17,6 +17,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
Identity_Server::Identity_Server (void)
: group_factory_ior_ (0),
@@ -28,7 +29,7 @@ Identity_Server::Identity_Server (void)
int
Identity_Server::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "di:a:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "di:a:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -166,7 +167,7 @@ Identity_Server::create_objects (size_t number_of_objects,
// Create an id for this servant.
char id[BUFSIZ];
ACE_OS::sprintf (id,
- "Identity object " ACE_SIZE_T_FORMAT_SPECIFIER,
+ "Identity object " ACE_SIZE_T_FORMAT_SPECIFIER_A,
i);
// Create and activate a servant.
@@ -210,12 +211,13 @@ Identity_Server::~Identity_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Identity_Server server;
- if (server.init (argc, argv) == -1)
+ if (server.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Load_Balancing/Load_Balancing.mpc b/TAO/examples/Load_Balancing/Load_Balancing.mpc
index e636694850c..736a82ad8ed 100644
--- a/TAO/examples/Load_Balancing/Load_Balancing.mpc
+++ b/TAO/examples/Load_Balancing/Load_Balancing.mpc
@@ -1,19 +1,12 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Identity.idl
- Load_Balancer.idl
- }
- custom_only = 1
-}
-
-project(*Server): taoserver, utils {
+project(*server): taoserver, utils {
avoids += repo
- after += *IDL
IDL_Files {
+ Identity.idl
+ Load_Balancer.idl
}
Source_Files {
@@ -27,12 +20,10 @@ project(*Server): taoserver, utils {
project(*Client): taoclient, utils, portableserver {
avoids += repo
- after += *IDL
-
- // XXX is this dependency necessary?
- after += *Server
IDL_Files {
+ Identity.idl
+ Load_Balancer.idl
}
Source_Files {
@@ -42,12 +33,12 @@ project(*Client): taoclient, utils, portableserver {
}
}
-project(*Balancer): taoserver, utils {
+project(*Balancer): taoexe, utils, portableserver {
exename = load_balancer
- avoids += repo ace_for_tao
- after += *IDL
+ avoids += repo
IDL_Files {
+ Load_Balancer.idl
}
Source_Files {
diff --git a/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp b/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp
index b2369ebe8b4..3a4dc4c5871 100644
--- a/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp
+++ b/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp
@@ -17,6 +17,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
Load_Balancing_Service::Load_Balancing_Service (void)
: ior_output_file_ (0)
@@ -26,7 +27,7 @@ Load_Balancing_Service::Load_Balancing_Service (void)
int
Load_Balancing_Service::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,7 +38,7 @@ Load_Balancing_Service::parse_args (int argc, char *argv[])
break;
case 'o': // outputs object ior to the specified file.
this->ior_output_file_ =
- ACE_OS::fopen (get_opts.opt_arg (), "w");
+ ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -137,12 +138,13 @@ Load_Balancing_Service::~Load_Balancing_Service (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Load_Balancing_Service factory;
- if (factory.init (argc, argv) == -1)
+ if (factory.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Load_Balancing/Makefile.am b/TAO/examples/Load_Balancing/Makefile.am
index f9c9ffbbf75..cafe82d3d47 100644
--- a/TAO/examples/Load_Balancing/Makefile.am
+++ b/TAO/examples/Load_Balancing/Makefile.am
@@ -16,38 +16,13 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Load_Balancing_IDL.am
-
-BUILT_SOURCES = \
- IdentityC.cpp \
- IdentityC.h \
- IdentityC.inl \
- IdentityS.cpp \
- IdentityS.h \
- IdentityS.inl \
- IdentityS_T.cpp \
- IdentityS_T.h \
- IdentityS_T.inl
-
-CLEANFILES = \
- Identity-stamp \
- IdentityC.cpp \
- IdentityC.h \
- IdentityC.inl \
- IdentityS.cpp \
- IdentityS.h \
- IdentityS.inl \
- IdentityS_T.cpp \
- IdentityS_T.h \
- IdentityS_T.inl
-
-IdentityC.cpp IdentityC.h IdentityC.inl IdentityS.cpp IdentityS.h IdentityS.inl IdentityS_T.cpp IdentityS_T.h IdentityS_T.inl: Identity-stamp
+## Makefile.Load_Balancing_Balancer.am
-Identity-stamp: $(srcdir)/Identity.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Identity.idl
- @touch $@
+if !BUILD_REPO
BUILT_SOURCES += \
Load_BalancerC.cpp \
@@ -75,19 +50,9 @@ CLEANFILES += \
Load_BalancerC.cpp Load_BalancerC.h Load_BalancerC.inl Load_BalancerS.cpp Load_BalancerS.h Load_BalancerS.inl Load_BalancerS_T.cpp Load_BalancerS_T.h Load_BalancerS_T.inl: Load_Balancer-stamp
Load_Balancer-stamp: $(srcdir)/Load_Balancer.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Load_Balancer.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Load_Balancer.idl
@touch $@
-
-noinst_HEADERS = \
- Identity.idl \
- Load_Balancer.idl
-
-## Makefile.Load_Balancing_Balancer.am
-
-if !BUILD_ACE_FOR_TAO
-if !BUILD_REPO
-
noinst_PROGRAMS += load_balancer
load_balancer_CPPFLAGS = \
@@ -101,6 +66,11 @@ load_balancer_SOURCES = \
Load_BalancerS.cpp \
Load_Balancer_i.cpp \
Load_Balancing_Service.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl \
Load_Balancer_i.h \
Load_Balancing_Service.h
@@ -114,30 +84,90 @@ load_balancer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_REPO
-endif !BUILD_ACE_FOR_TAO
-## Makefile.Load_Balancing_Server.am
+## Makefile.Load_Balancing_Client.am
if !BUILD_REPO
-noinst_PROGRAMS += server
+BUILT_SOURCES += \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
-server_CPPFLAGS = \
+CLEANFILES += \
+ Identity-stamp \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
+
+IdentityC.cpp IdentityC.h IdentityC.inl IdentityS.h IdentityS.inl IdentityS_T.cpp IdentityS_T.h IdentityS_T.inl: Identity-stamp
+
+Identity-stamp: $(srcdir)/Identity.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Identity.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+CLEANFILES += \
+ Load_Balancer-stamp \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+Load_BalancerC.cpp Load_BalancerC.h Load_BalancerC.inl Load_BalancerS.h Load_BalancerS.inl Load_BalancerS_T.cpp Load_BalancerS_T.h Load_BalancerS_T.inl: Load_Balancer-stamp
+
+Load_Balancer-stamp: $(srcdir)/Load_Balancer.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Load_Balancer.idl
+ @touch $@
+
+noinst_PROGRAMS += client
+
+client_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR)
-server_SOURCES = \
+client_SOURCES = \
IdentityC.cpp \
- IdentityS.cpp \
- Identity_Server.cpp \
- Identity_i.cpp \
+ Identity_Client.cpp \
Load_BalancerC.cpp \
- Identity_Server.h \
- Identity_i.h
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS_T.h \
+ IdentityS_T.inl \
+ Identity_Client.h \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
-server_LDADD = \
+client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
@@ -148,25 +178,94 @@ server_LDADD = \
endif !BUILD_REPO
-## Makefile.Load_Balancing_Client.am
+## Makefile.Load_Balancing_Server.am
if !BUILD_REPO
-noinst_PROGRAMS += client
+BUILT_SOURCES += \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.cpp \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
-client_CPPFLAGS = \
+CLEANFILES += \
+ Identity-stamp \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.cpp \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
+
+IdentityC.cpp IdentityC.h IdentityC.inl IdentityS.cpp IdentityS.h IdentityS.inl IdentityS_T.cpp IdentityS_T.h IdentityS_T.inl: Identity-stamp
+
+Identity-stamp: $(srcdir)/Identity.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Identity.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+CLEANFILES += \
+ Load_Balancer-stamp \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+Load_BalancerC.cpp Load_BalancerC.h Load_BalancerC.inl Load_BalancerS.h Load_BalancerS.inl Load_BalancerS_T.cpp Load_BalancerS_T.h Load_BalancerS_T.inl: Load_Balancer-stamp
+
+Load_Balancer-stamp: $(srcdir)/Load_Balancer.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Load_Balancer.idl
+ @touch $@
+
+noinst_PROGRAMS += server
+
+server_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR)
-client_SOURCES = \
+server_SOURCES = \
IdentityC.cpp \
- Identity_Client.cpp \
+ IdentityS.cpp \
+ Identity_Server.cpp \
+ Identity_i.cpp \
Load_BalancerC.cpp \
- Identity_Client.h
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS_T.h \
+ IdentityS_T.inl \
+ Identity_Server.h \
+ Identity_i.h \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
-client_LDADD = \
+server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
diff --git a/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp b/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
index eeecdfa03ae..0dae720f4ca 100755
--- a/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
+++ b/TAO/examples/Load_Balancing_persistent/Identity_Client.cpp
@@ -19,6 +19,7 @@
#include "ace/Get_Opt.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
+#include "ace/Argv_Type_Converter.h"
Identity_Client::Identity_Client (void)
: group_factory_ior_ (0),
@@ -31,7 +32,7 @@ Identity_Client::Identity_Client (void)
int
Identity_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "di:n:k:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "di:n:k:r");
int c;
while ((c = get_opts ()) != -1)
@@ -245,12 +246,13 @@ Identity_Client::~Identity_Client (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Identity_Client client;
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp b/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp
index 772a2092ada..f07a86b7a2b 100755
--- a/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp
+++ b/TAO/examples/Load_Balancing_persistent/Identity_Server.cpp
@@ -5,6 +5,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
Identity_Server::Identity_Server (void)
: group_factory_ior_ (0),
@@ -16,7 +17,7 @@ Identity_Server::Identity_Server (void)
int
Identity_Server::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "di:a:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "di:a:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -208,7 +209,7 @@ Identity_Server::create_objects (size_t number_of_objects,
// Create an id for this servant.
char id[BUFSIZ];
ACE_OS::sprintf (id,
- "Identity object " ACE_SIZE_T_FORMAT_SPECIFIER,
+ "Identity object " ACE_SIZE_T_FORMAT_SPECIFIER_A,
i);
// Create and activate a servant.
@@ -268,16 +269,17 @@ Identity_Server::~Identity_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Identity_Server server;
- if (server.init (argc, argv) == -1)
+ if (server.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
// Check the non-ORB arguments.
- if (server.parse_args (argc, argv) == -1)
+ if (server.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.cpp b/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.cpp
index f5d171a3b4f..62afdc4ba28 100755
--- a/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.cpp
+++ b/TAO/examples/Load_Balancing_persistent/Load_Balancer_i.cpp
@@ -635,8 +635,8 @@ Object_Group_i::bind (const Load_Balancer::Member & member
this->allocator_) == 0)
ACE_THROW (Load_Balancer::duplicate_member ());
- size_t id_len = ACE_OS::strlen (member.id) + 1;
- size_t ref_len = ACE_OS::strlen (member.obj) + 1;
+ size_t id_len = ACE_OS::strlen (member.id.in()) + 1;
+ size_t ref_len = ACE_OS::strlen (member.obj.in()) + 1;
char *mem_alloc = (char *)this->allocator_->malloc (id_len + ref_len);
@@ -1000,7 +1000,7 @@ RR_Object_Group::unbind (const char *id
this->allocator_->free (iter.next ());
iter.remove ();
- size_t curr_size = this->members_->current_size ();
+ int curr_size = this->members_->current_size ();
// Update <next_> if necessary to reflect the deletion.
if (position < next_)
diff --git a/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp b/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp
index ec94198bcc1..62374de6938 100755
--- a/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp
+++ b/TAO/examples/Load_Balancing_persistent/Load_Balancing_Service.cpp
@@ -17,6 +17,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
Load_Balancing_Service::Load_Balancing_Service (void)
: ior_output_file_ (0)
@@ -26,7 +27,7 @@ Load_Balancing_Service::Load_Balancing_Service (void)
int
Load_Balancing_Service::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,7 +38,7 @@ Load_Balancing_Service::parse_args (int argc, char *argv[])
break;
case 'o': // outputs object ior to the specified file.
this->ior_output_file_ =
- ACE_OS::fopen (get_opts.opt_arg (), "w");
+ ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -174,12 +175,13 @@ Load_Balancing_Service::~Load_Balancing_Service (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
int result = 0;
Load_Balancing_Service factory;
- if (factory.init (argc, argv) == -1)
+ if (factory.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc b/TAO/examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc
index 746dfa9c23a..f93b076aa74 100644
--- a/TAO/examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc
+++ b/TAO/examples/Load_Balancing_persistent/Load_Balancing_persistent.mpc
@@ -1,20 +1,12 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Identity.idl
- Load_Balancer.idl
- }
- custom_only = 1
-}
-
project(*balancer): taoexe, utils, portableserver, minimum_corba {
- avoids += repo ace_for_tao
+ avoids += repo
exename = load_balancer
- after += *IDL
IDL_Files {
+ Load_Balancer.idl
}
Source_Files {
@@ -27,11 +19,6 @@ project(*balancer): taoexe, utils, portableserver, minimum_corba {
project(*server): taoserver, utils, minimum_corba {
avoids += repo
- exename = server
- after += *IDL
-
- IDL_Files {
- }
Source_Files {
IdentityC.cpp
@@ -45,10 +32,6 @@ project(*server): taoserver, utils, minimum_corba {
project(*client): taoclient, utils, portableserver, minimum_corba {
avoids += repo
exename = client
- after += *IDL
-
- IDL_Files {
- }
Source_Files {
IdentityC.cpp
@@ -56,3 +39,4 @@ project(*client): taoclient, utils, portableserver, minimum_corba {
Identity_Client.cpp
}
}
+
diff --git a/TAO/examples/Load_Balancing_persistent/Makefile.am b/TAO/examples/Load_Balancing_persistent/Makefile.am
index 27ee8c692ca..933762f77cf 100644
--- a/TAO/examples/Load_Balancing_persistent/Makefile.am
+++ b/TAO/examples/Load_Balancing_persistent/Makefile.am
@@ -16,38 +16,14 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Load_Balancing_Persistent_IDL.am
-
-BUILT_SOURCES = \
- IdentityC.cpp \
- IdentityC.h \
- IdentityC.inl \
- IdentityS.cpp \
- IdentityS.h \
- IdentityS.inl \
- IdentityS_T.cpp \
- IdentityS_T.h \
- IdentityS_T.inl
-
-CLEANFILES = \
- Identity-stamp \
- IdentityC.cpp \
- IdentityC.h \
- IdentityC.inl \
- IdentityS.cpp \
- IdentityS.h \
- IdentityS.inl \
- IdentityS_T.cpp \
- IdentityS_T.h \
- IdentityS_T.inl
-
-IdentityC.cpp IdentityC.h IdentityC.inl IdentityS.cpp IdentityS.h IdentityS.inl IdentityS_T.cpp IdentityS_T.h IdentityS_T.inl: Identity-stamp
+## Makefile.Load_Balancing_Persistent_Balancer.am
-Identity-stamp: $(srcdir)/Identity.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Identity.idl
- @touch $@
+if !BUILD_MINIMUM_CORBA
+if !BUILD_REPO
BUILT_SOURCES += \
Load_BalancerC.cpp \
@@ -75,20 +51,9 @@ CLEANFILES += \
Load_BalancerC.cpp Load_BalancerC.h Load_BalancerC.inl Load_BalancerS.cpp Load_BalancerS.h Load_BalancerS.inl Load_BalancerS_T.cpp Load_BalancerS_T.h Load_BalancerS_T.inl: Load_Balancer-stamp
Load_Balancer-stamp: $(srcdir)/Load_Balancer.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Load_Balancer.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Load_Balancer.idl
@touch $@
-
-noinst_HEADERS = \
- Identity.idl \
- Load_Balancer.idl
-
-## Makefile.Load_Balancing_Persistent_Balancer.am
-
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-if !BUILD_REPO
-
noinst_PROGRAMS += load_balancer
load_balancer_CPPFLAGS = \
@@ -102,6 +67,11 @@ load_balancer_SOURCES = \
Load_BalancerS.cpp \
Load_Balancer_i.cpp \
Load_Balancing_Service.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl \
Load_Balancer_i.h \
Load_Balancing_Service.h
@@ -116,13 +86,66 @@ load_balancer_LDADD = \
endif !BUILD_REPO
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.Load_Balancing_Persistent_Client.am
if !BUILD_MINIMUM_CORBA
if !BUILD_REPO
+BUILT_SOURCES += \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
+
+CLEANFILES += \
+ Identity-stamp \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
+
+IdentityC.cpp IdentityC.h IdentityC.inl IdentityS.h IdentityS.inl IdentityS_T.cpp IdentityS_T.h IdentityS_T.inl: Identity-stamp
+
+Identity-stamp: $(srcdir)/Identity.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Identity.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+CLEANFILES += \
+ Load_Balancer-stamp \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+Load_BalancerC.cpp Load_BalancerC.h Load_BalancerC.inl Load_BalancerS.h Load_BalancerS.inl Load_BalancerS_T.cpp Load_BalancerS_T.h Load_BalancerS_T.inl: Load_Balancer-stamp
+
+Load_Balancer-stamp: $(srcdir)/Load_Balancer.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Load_Balancer.idl
+ @touch $@
+
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -135,7 +158,17 @@ client_SOURCES = \
IdentityC.cpp \
Identity_Client.cpp \
Load_BalancerC.cpp \
- Identity_Client.h
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS_T.h \
+ IdentityS_T.inl \
+ Identity_Client.h \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
@@ -154,6 +187,62 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
if !BUILD_REPO
+BUILT_SOURCES += \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.cpp \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
+
+CLEANFILES += \
+ Identity-stamp \
+ IdentityC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.cpp \
+ IdentityS.h \
+ IdentityS.inl \
+ IdentityS_T.cpp \
+ IdentityS_T.h \
+ IdentityS_T.inl
+
+IdentityC.cpp IdentityC.h IdentityC.inl IdentityS.cpp IdentityS.h IdentityS.inl IdentityS_T.cpp IdentityS_T.h IdentityS_T.inl: Identity-stamp
+
+Identity-stamp: $(srcdir)/Identity.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Identity.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+CLEANFILES += \
+ Load_Balancer-stamp \
+ Load_BalancerC.cpp \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS.inl \
+ Load_BalancerS_T.cpp \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
+
+Load_BalancerC.cpp Load_BalancerC.h Load_BalancerC.inl Load_BalancerS.h Load_BalancerS.inl Load_BalancerS_T.cpp Load_BalancerS_T.h Load_BalancerS_T.inl: Load_Balancer-stamp
+
+Load_Balancer-stamp: $(srcdir)/Load_Balancer.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Load_Balancer.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -168,8 +257,18 @@ server_SOURCES = \
Identity_Server.cpp \
Identity_i.cpp \
Load_BalancerC.cpp \
+ IdentityC.h \
+ IdentityC.inl \
+ IdentityS.h \
+ IdentityS_T.h \
+ IdentityS_T.inl \
Identity_Server.h \
- Identity_i.h
+ Identity_i.h \
+ Load_BalancerC.h \
+ Load_BalancerC.inl \
+ Load_BalancerS.h \
+ Load_BalancerS_T.h \
+ Load_BalancerS_T.inl
server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
diff --git a/TAO/examples/Logging/Logger_i.cpp b/TAO/examples/Logging/Logger_i.cpp
index 1e425fbd119..4499989e881 100644
--- a/TAO/examples/Logging/Logger_i.cpp
+++ b/TAO/examples/Logging/Logger_i.cpp
@@ -151,7 +151,7 @@ Logger_i::logv (const Logger::Log_Record &log_rec,
// Create a temporary buffer for manipulating the logging message,
// adding additional space for formatting characters..
- ACE_TCHAR msgbuf [ACE_MAXLOGMSGLEN + 4];
+ char msgbuf [ACE_MAXLOGMSGLEN + 4];
// Format the message for proper display.
ACE_OS::strcpy (msgbuf, "::");
@@ -162,7 +162,7 @@ Logger_i::logv (const Logger::Log_Record &log_rec,
ACE_MAXLOGMSGLEN);
// Set <ACE_Log_Record.msg_data> to the value stored in <msgbuf>.
- rec.msg_data (msgbuf);
+ rec.msg_data (ACE_TEXT_TO_TCHAR_IN(msgbuf));
CORBA::Long addr = log_rec.host_addr;
@@ -172,13 +172,13 @@ Logger_i::logv (const Logger::Log_Record &log_rec,
static_cast<ACE_UINT32> (addr));
// Create a buffer and fill it with the host name of the logger
- ACE_TCHAR namebuf[MAXHOSTNAMELEN + 1];
+ char namebuf[MAXHOSTNAMELEN + 1];
ACE_OS::strncpy (namebuf, addy.get_host_addr (), MAXHOSTNAMELEN);
u_long verb_level = this->verbosity_conversion (verbosity);
- rec.print (namebuf,
+ rec.print (ACE_TEXT_TO_TCHAR_IN(namebuf),
verb_level,
stderr);
// Print out the logging message to stderr with the given level of
diff --git a/TAO/examples/Logging/Logging.mpc b/TAO/examples/Logging/Logging.mpc
index afd58b15f05..06360a5bb93 100644
--- a/TAO/examples/Logging/Logging.mpc
+++ b/TAO/examples/Logging/Logging.mpc
@@ -1,34 +1,17 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Logger.idl
- }
- custom_only = 1
-}
-
project(*Service): namingexe, utils {
- after += *IDL
Source_Files {
Logger_i.cpp
Logging_Service.cpp
Logging_Service_i.cpp
- LoggerS.cpp
- LoggerC.cpp
- }
- IDL_Files {
}
}
project(*Test): namingexe, utils {
- after += *IDL
Source_Files {
Logging_Test.cpp
Logging_Test_i.cpp
- LoggerS.cpp
- LoggerC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Logging/Logging_Service.cpp b/TAO/examples/Logging/Logging_Service.cpp
index 51f5062e56e..e338b9524f7 100644
--- a/TAO/examples/Logging/Logging_Service.cpp
+++ b/TAO/examples/Logging/Logging_Service.cpp
@@ -2,12 +2,14 @@
#include "Logging_Service_i.h"
#include "tao/debug.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Logging_Service, Logging_Service, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Set TAO_debug_level to 0 to ensure silent running unless
// debugging is explicitly invoked
TAO_debug_level = 0;
@@ -17,7 +19,7 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int ret = log_server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int ret = log_server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (ret == -1)
return 1;
diff --git a/TAO/examples/Logging/Logging_Service_i.cpp b/TAO/examples/Logging/Logging_Service_i.cpp
index 3b65ab4da94..7332a301d1d 100644
--- a/TAO/examples/Logging/Logging_Service_i.cpp
+++ b/TAO/examples/Logging/Logging_Service_i.cpp
@@ -14,7 +14,7 @@ Logger_Server::Logger_Server (void)
int
Logger_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dn:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dn:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/Logging/Logging_Test.cpp b/TAO/examples/Logging/Logging_Test.cpp
index f309e54d9e6..3a876c2fc14 100644
--- a/TAO/examples/Logging/Logging_Test.cpp
+++ b/TAO/examples/Logging/Logging_Test.cpp
@@ -1,20 +1,22 @@
// $Id$
#include "Logging_Test_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Logger, Logging_Test, "$Id$")
// This function runs the Logging service test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Logger_Client logger_client;
ACE_DEBUG ((LM_DEBUG,
"\n \t IDL_Logger: client \n\n"));
- if (logger_client.init (argc, argv) == -1)
+ if (logger_client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return logger_client.run ();
diff --git a/TAO/examples/Logging/Logging_Test_i.cpp b/TAO/examples/Logging/Logging_Test_i.cpp
index f82bba200c4..8b9b8780683 100644
--- a/TAO/examples/Logging/Logging_Test_i.cpp
+++ b/TAO/examples/Logging/Logging_Test_i.cpp
@@ -297,7 +297,7 @@ Logger_Client::run (void)
int
Logger_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "d");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "d");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/Logging/Makefile.am b/TAO/examples/Logging/Makefile.am
index 428952e676a..b421072f5b7 100644
--- a/TAO/examples/Logging/Makefile.am
+++ b/TAO/examples/Logging/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.Logging_IDL.am
+## Makefile.Logging_Service.am
BUILT_SOURCES = \
LoggerC.cpp \
@@ -44,15 +44,9 @@ CLEANFILES = \
LoggerC.cpp LoggerC.h LoggerC.inl LoggerS.cpp LoggerS.h LoggerS.inl LoggerS_T.cpp LoggerS_T.h LoggerS_T.inl: Logger-stamp
Logger-stamp: $(srcdir)/Logger.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Logger.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Logger.idl
@touch $@
-
-noinst_HEADERS = \
- Logger.idl
-
-## Makefile.Logging_Service.am
-
noinst_PROGRAMS = Logging_Service
Logging_Service_CPPFLAGS = \
@@ -69,6 +63,11 @@ Logging_Service_SOURCES = \
Logger_i.cpp \
Logging_Service.cpp \
Logging_Service_i.cpp \
+ LoggerC.h \
+ LoggerC.inl \
+ LoggerS.h \
+ LoggerS_T.h \
+ LoggerS_T.inl \
Logger_i.h \
Logging_Service_i.h
@@ -84,6 +83,35 @@ Logging_Service_LDADD = \
## Makefile.Logging_Test.am
+BUILT_SOURCES += \
+ LoggerC.cpp \
+ LoggerC.h \
+ LoggerC.inl \
+ LoggerS.cpp \
+ LoggerS.h \
+ LoggerS.inl \
+ LoggerS_T.cpp \
+ LoggerS_T.h \
+ LoggerS_T.inl
+
+CLEANFILES += \
+ Logger-stamp \
+ LoggerC.cpp \
+ LoggerC.h \
+ LoggerC.inl \
+ LoggerS.cpp \
+ LoggerS.h \
+ LoggerS.inl \
+ LoggerS_T.cpp \
+ LoggerS_T.h \
+ LoggerS_T.inl
+
+LoggerC.cpp LoggerC.h LoggerC.inl LoggerS.cpp LoggerS.h LoggerS.inl LoggerS_T.cpp LoggerS_T.h LoggerS_T.inl: Logger-stamp
+
+Logger-stamp: $(srcdir)/Logger.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Logger.idl
+ @touch $@
+
noinst_PROGRAMS += Logging_Test
Logging_Test_CPPFLAGS = \
@@ -99,6 +127,11 @@ Logging_Test_SOURCES = \
LoggerS.cpp \
Logging_Test.cpp \
Logging_Test_i.cpp \
+ LoggerC.h \
+ LoggerC.inl \
+ LoggerS.h \
+ LoggerS_T.h \
+ LoggerS_T.inl \
Logging_Test_i.h
Logging_Test_LDADD = \
diff --git a/TAO/examples/Makefile.am b/TAO/examples/Makefile.am
index 5f8618523ee..9bfcbcbd5be 100644
--- a/TAO/examples/Makefile.am
+++ b/TAO/examples/Makefile.am
@@ -27,6 +27,7 @@ SUBDIRS = \
PluggableUDP \
Quoter \
RTCORBA \
+ RTScheduling \
Simple \
Simulator \
TypeCode_Creation \
diff --git a/TAO/examples/OBV/Simple_util.cpp b/TAO/examples/OBV/Simple_util.cpp
index 979bc54cc79..8e6fc0219ea 100644
--- a/TAO/examples/OBV/Simple_util.cpp
+++ b/TAO/examples/OBV/Simple_util.cpp
@@ -33,7 +33,7 @@ Server<Servant>::~Server (void)
template <class Servant> int
Server<Servant>::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:ni:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:ni:");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -43,7 +43,7 @@ Server<Servant>::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
@@ -196,7 +196,7 @@ Client<InterfaceObj, Var>::read_ior (char *filename)
template <class InterfaceObj, class Var> int
Client<InterfaceObj, Var>::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "df:nk:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:nk:x");
int c = 0;
int result = 0;
diff --git a/TAO/examples/OBV/Typed_Events/Client_i.cpp b/TAO/examples/OBV/Typed_Events/Client_i.cpp
index bbadaefee44..ff2038a0c89 100644
--- a/TAO/examples/OBV/Typed_Events/Client_i.cpp
+++ b/TAO/examples/OBV/Typed_Events/Client_i.cpp
@@ -14,7 +14,7 @@ Checkpoint_Client_i::run (const char *name,
char *argv[])
{
// Initialize the client (read ior...).
- if (checkpoint.init (name,argc, argv) == -1)
+ if (checkpoint.init (name, argc, argv) == -1)
return -1;
// Set random seed
diff --git a/TAO/examples/OBV/Typed_Events/Makefile.am b/TAO/examples/OBV/Typed_Events/Makefile.am
index f28a93f6dd6..28dfec76787 100644
--- a/TAO/examples/OBV/Typed_Events/Makefile.am
+++ b/TAO/examples/OBV/Typed_Events/Makefile.am
@@ -16,11 +16,15 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Typed_Events_IDL.am
+## Makefile.Typed_Events_Client.am
+
+if !BUILD_MINIMUM_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
Event_TypesC.cpp \
Event_TypesC.h \
Event_TypesC.inl \
@@ -31,7 +35,7 @@ BUILT_SOURCES = \
Event_TypesS_T.h \
Event_TypesS_T.inl
-CLEANFILES = \
+CLEANFILES += \
Event_Types-stamp \
Event_TypesC.cpp \
Event_TypesC.h \
@@ -46,17 +50,9 @@ CLEANFILES = \
Event_TypesC.cpp Event_TypesC.h Event_TypesC.inl Event_TypesS.cpp Event_TypesS.h Event_TypesS.inl Event_TypesS_T.cpp Event_TypesS_T.h Event_TypesS_T.inl: Event_Types-stamp
Event_Types-stamp: $(srcdir)/Event_Types.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Event_Types.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Event_Types.idl
@touch $@
-
-noinst_HEADERS = \
- Event_Types.idl
-
-## Makefile.Typed_Events_Client.am
-
-if !BUILD_MINIMUM_CORBA
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -74,6 +70,11 @@ client_SOURCES = \
client.cpp \
../Simple_util.h \
Client_i.h \
+ Event_TypesC.h \
+ Event_TypesC.inl \
+ Event_TypesS.h \
+ Event_TypesS_T.h \
+ Event_TypesS_T.inl \
Event_Types_impl.h
client_LDADD = \
@@ -92,6 +93,35 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ Event_TypesC.cpp \
+ Event_TypesC.h \
+ Event_TypesC.inl \
+ Event_TypesS.cpp \
+ Event_TypesS.h \
+ Event_TypesS.inl \
+ Event_TypesS_T.cpp \
+ Event_TypesS_T.h \
+ Event_TypesS_T.inl
+
+CLEANFILES += \
+ Event_Types-stamp \
+ Event_TypesC.cpp \
+ Event_TypesC.h \
+ Event_TypesC.inl \
+ Event_TypesS.cpp \
+ Event_TypesS.h \
+ Event_TypesS.inl \
+ Event_TypesS_T.cpp \
+ Event_TypesS_T.h \
+ Event_TypesS_T.inl
+
+Event_TypesC.cpp Event_TypesC.h Event_TypesC.inl Event_TypesS.cpp Event_TypesS.h Event_TypesS.inl Event_TypesS_T.cpp Event_TypesS_T.h Event_TypesS_T.inl: Event_Types-stamp
+
+Event_Types-stamp: $(srcdir)/Event_Types.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Event_Types.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -108,6 +138,11 @@ server_SOURCES = \
Server_i.cpp \
server.cpp \
../Simple_util.h \
+ Event_TypesC.h \
+ Event_TypesC.inl \
+ Event_TypesS.h \
+ Event_TypesS_T.h \
+ Event_TypesS_T.inl \
Event_Types_impl.h \
Server_i.h
diff --git a/TAO/examples/OBV/Typed_Events/Typed_Events.mpc b/TAO/examples/OBV/Typed_Events/Typed_Events.mpc
index 82cd71b5df0..9431556642e 100644
--- a/TAO/examples/OBV/Typed_Events/Typed_Events.mpc
+++ b/TAO/examples/OBV/Typed_Events/Typed_Events.mpc
@@ -1,39 +1,20 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Event_Types.idl
- }
- custom_only = 1
-}
-
-project(*server): taoserver, utils, valuetype, minimum_corba {
- exename = server
- after += *IDL
+project(*server): taoexe, utils, portableserver, valuetype, minimum_corba {
Source_Files {
Server_i.cpp
Event_Types_impl.cpp
../Simple_util.cpp
server.cpp
- Event_TypesS.cpp
- Event_TypesC.cpp
- }
- IDL_Files {
}
}
-project(*client): taoserver, utils, valuetype, minimum_corba {
- exename = client
- after += *IDL
+project(*client): taoexe, utils, portableserver, valuetype, minimum_corba {
Source_Files {
Client_i.cpp
Event_Types_impl.cpp
../Simple_util.cpp
client.cpp
- Event_TypesS.cpp
- Event_TypesC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/OBV/Typed_Events/client.cpp b/TAO/examples/OBV/Typed_Events/client.cpp
index d4e502a26bd..5e18b4bbaf2 100644
--- a/TAO/examples/OBV/Typed_Events/client.cpp
+++ b/TAO/examples/OBV/Typed_Events/client.cpp
@@ -1,12 +1,14 @@
//$Id$
# include "Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Checkpoint_Client_i client;
@@ -14,8 +16,8 @@ main (int argc, char **argv)
"\nEvent_Types client\n\n"));
if (client.run ("Event_Types_Checkpoint",
- argc,
- argv) == -1)
+ convert.get_argc(),
+ convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/OBV/Typed_Events/server.cpp b/TAO/examples/OBV/Typed_Events/server.cpp
index 2a8bb4802ba..00c2f07f345 100644
--- a/TAO/examples/OBV/Typed_Events/server.cpp
+++ b/TAO/examples/OBV/Typed_Events/server.cpp
@@ -1,12 +1,14 @@
// $Id$
#include "../Simple_util.h"
#include "Server_i.h"
+#include "ace/Argv_Type_Converter.h"
// This is the main driver program for the time and date server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server<Checkpoint_i> server;
ACE_DEBUG ((LM_DEBUG,
@@ -17,8 +19,8 @@ main (int argc, char *argv[])
ACE_TRY
{
if (server.init ("Event_Types_Checkpoint",
- argc,
- argv
+ convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/POA/Adapter_Activator/Makefile.am b/TAO/examples/POA/Adapter_Activator/Makefile.am
index 35ec8bd0e7c..5528f3f1fb5 100644
--- a/TAO/examples/POA/Adapter_Activator/Makefile.am
+++ b/TAO/examples/POA/Adapter_Activator/Makefile.am
@@ -25,8 +25,7 @@ server_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- -I$(srcdir)/../Generic_Servant \
- -I../Generic_Servant
+ -I$(srcdir)/../Generic_Servant
server_SOURCES = \
server.cpp
diff --git a/TAO/examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc b/TAO/examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc
index 7b4048912d9..89d427ced0e 100644
--- a/TAO/examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc
+++ b/TAO/examples/POA/Adapter_Activator/POA_Adapter_Activator.mpc
@@ -2,14 +2,9 @@
// $Id$
project(*Server): taoserver, minimum_corba {
+ includes += ../Generic_Servant
libs += Generic_Servant
after += POA_Generic_Servant_Lib
-
- specific(automake) {
- includes += $(srcdir)/../Generic_Servant
- }
- includes += ../Generic_Servant
-
Source_Files {
server.cpp
}
diff --git a/TAO/examples/POA/Adapter_Activator/run_test.pl b/TAO/examples/POA/Adapter_Activator/run_test.pl
index 33b45a6a390..016b1663ab0 100755
--- a/TAO/examples/POA/Adapter_Activator/run_test.pl
+++ b/TAO/examples/POA/Adapter_Activator/run_test.pl
@@ -54,12 +54,7 @@ unlink $iorfile_3;
$SV = new PerlACE::Process ("server", "-f $iorfile $extra_args");
$CL = new PerlACE::Process ("../Generic_Servant/client");
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile_1, 15) == -1) {
print STDERR "ERROR: cannot find file <$iorfile_1>\n";
diff --git a/TAO/examples/POA/Adapter_Activator/server.cpp b/TAO/examples/POA/Adapter_Activator/server.cpp
index 550f5082ff8..cfb17546d95 100644
--- a/TAO/examples/POA/Adapter_Activator/server.cpp
+++ b/TAO/examples/POA/Adapter_Activator/server.cpp
@@ -27,6 +27,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_string.h"
#include "tao/PortableServer/AdapterActivatorC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Adapter_Activator, server, "$Id$")
@@ -172,7 +173,7 @@ const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -209,9 +210,9 @@ write_iors_to_file (const char *first_ior,
ACE_OS::sprintf (ior_output_file_2, "%s_2", ior_output_file);
ACE_OS::sprintf (ior_output_file_3, "%s_3", ior_output_file);
- FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, "w");
- FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, "w");
- FILE *output_file_3 = ACE_OS::fopen (ior_output_file_3, "w");
+ FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, ACE_TEXT("w"));
+ FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, ACE_TEXT("w"));
+ FILE *output_file_3 = ACE_OS::fopen (ior_output_file_3, ACE_TEXT("w"));
if (output_file_1 == 0 ||
output_file_2 == 0 ||
@@ -262,20 +263,20 @@ write_iors_to_file (const char *first_ior,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/examples/POA/DSI/Makefile.am b/TAO/examples/POA/DSI/Makefile.am
index b07c62eb17b..b5e40f2c807 100644
--- a/TAO/examples/POA/DSI/Makefile.am
+++ b/TAO/examples/POA/DSI/Makefile.am
@@ -16,48 +16,42 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.POA_DSI_IDL.am
+## Makefile.POA_DSI_Client.am
+
+if BUILD_CORBA_MESSAGING
+if !BUILD_MINIMUM_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
DatabaseC.cpp \
DatabaseC.h \
DatabaseC.inl \
- DatabaseS.cpp \
DatabaseS.h \
DatabaseS.inl \
DatabaseS_T.cpp \
DatabaseS_T.h \
DatabaseS_T.inl
-CLEANFILES = \
+CLEANFILES += \
Database-stamp \
DatabaseC.cpp \
DatabaseC.h \
DatabaseC.inl \
- DatabaseS.cpp \
DatabaseS.h \
DatabaseS.inl \
DatabaseS_T.cpp \
DatabaseS_T.h \
DatabaseS_T.inl
-DatabaseC.cpp DatabaseC.h DatabaseC.inl DatabaseS.cpp DatabaseS.h DatabaseS.inl DatabaseS_T.cpp DatabaseS_T.h DatabaseS_T.inl: Database-stamp
+DatabaseC.cpp DatabaseC.h DatabaseC.inl DatabaseS.h DatabaseS.inl DatabaseS_T.cpp DatabaseS_T.h DatabaseS_T.inl: Database-stamp
Database-stamp: $(srcdir)/Database.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Database.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Database.idl
@touch $@
-
-noinst_HEADERS = \
- Database.idl
-
-## Makefile.POA_DSI_Client.am
-
-if BUILD_CORBA_MESSAGING
-if !BUILD_MINIMUM_CORBA
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -69,7 +63,11 @@ client_CPPFLAGS = \
client_SOURCES = \
DatabaseC.cpp \
client.cpp \
- Database_i.h
+ DatabaseC.h \
+ DatabaseC.inl \
+ DatabaseS.h \
+ DatabaseS_T.h \
+ DatabaseS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
@@ -89,6 +87,35 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ DatabaseC.cpp \
+ DatabaseC.h \
+ DatabaseC.inl \
+ DatabaseS.cpp \
+ DatabaseS.h \
+ DatabaseS.inl \
+ DatabaseS_T.cpp \
+ DatabaseS_T.h \
+ DatabaseS_T.inl
+
+CLEANFILES += \
+ Database-stamp \
+ DatabaseC.cpp \
+ DatabaseC.h \
+ DatabaseC.inl \
+ DatabaseS.cpp \
+ DatabaseS.h \
+ DatabaseS.inl \
+ DatabaseS_T.cpp \
+ DatabaseS_T.h \
+ DatabaseS_T.inl
+
+DatabaseC.cpp DatabaseC.h DatabaseC.inl DatabaseS.cpp DatabaseS.h DatabaseS.inl DatabaseS_T.cpp DatabaseS_T.h DatabaseS_T.inl: Database-stamp
+
+Database-stamp: $(srcdir)/Database.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Database.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -102,6 +129,11 @@ server_SOURCES = \
DatabaseS.cpp \
Database_i.cpp \
server.cpp \
+ DatabaseC.h \
+ DatabaseC.inl \
+ DatabaseS.h \
+ DatabaseS_T.h \
+ DatabaseS_T.inl \
Database_i.h
server_LDADD = \
diff --git a/TAO/examples/POA/DSI/POA_DSI.mpc b/TAO/examples/POA/DSI/POA_DSI.mpc
index 508a5b3f898..62a433a23c3 100644
--- a/TAO/examples/POA/DSI/POA_DSI.mpc
+++ b/TAO/examples/POA/DSI/POA_DSI.mpc
@@ -1,29 +1,14 @@
//$Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Database.idl
- }
- custom_only = 1
-}
-
project(*Client) : taoclient, messaging, minimum_corba {
- after += *IDL
source_files {
DatabaseC.cpp
client.cpp
}
- IDL_Files {
- }
}
project(*Server) : taoserver, messaging, dynamicinterface, minimum_corba {
- after += *IDL
source_files {
Database_i.cpp
server.cpp
- DatabaseS.cpp
- DatabaseC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/POA/DSI/client.cpp b/TAO/examples/POA/DSI/client.cpp
index f3361796b0b..f6262d78466 100644
--- a/TAO/examples/POA/DSI/client.cpp
+++ b/TAO/examples/POA/DSI/client.cpp
@@ -21,6 +21,7 @@
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(DSI, client, "$Id$")
@@ -31,7 +32,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "xk:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:f:");
int c;
while ((c = get_opts ()) != -1)
@@ -100,8 +101,9 @@ read_IOR_from_file (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
char str [255];
@@ -110,15 +112,13 @@ main (int argc, char **argv)
{
ACE_OS::strcpy (str,
"CORBA::ORB_init");
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
-
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the command-line arguments to get the location of the
// IOR
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
if (IOR == 0)
diff --git a/TAO/examples/POA/DSI/server.cpp b/TAO/examples/POA/DSI/server.cpp
index 2e7bc06fe6e..27d9d8a846f 100644
--- a/TAO/examples/POA/DSI/server.cpp
+++ b/TAO/examples/POA/DSI/server.cpp
@@ -18,6 +18,7 @@
#include "Database_i.h"
#include "ace/Get_Opt.h"
#include "ace/SString.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(DSI, server, "$Id$")
@@ -26,7 +27,7 @@ static const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -52,7 +53,7 @@ parse_args (int argc, char **argv)
static int
write_iors_to_file (const char *first_ior)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output files for writing IOR: %s\n",
@@ -78,17 +79,18 @@ write_iors_to_file (const char *first_ior)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/examples/POA/Default_Servant/Makefile.am b/TAO/examples/POA/Default_Servant/Makefile.am
index 90541d8e5bc..9a72843cfc9 100644
--- a/TAO/examples/POA/Default_Servant/Makefile.am
+++ b/TAO/examples/POA/Default_Servant/Makefile.am
@@ -16,47 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.POA_Default_Servant_IDL.am
+## Makefile.POA_Default_Servant_Client.am
+
+if !BUILD_MINIMUM_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
FileC.cpp \
FileC.h \
FileC.inl \
- FileS.cpp \
FileS.h \
FileS.inl \
FileS_T.cpp \
FileS_T.h \
FileS_T.inl
-CLEANFILES = \
+CLEANFILES += \
File-stamp \
FileC.cpp \
FileC.h \
FileC.inl \
- FileS.cpp \
FileS.h \
FileS.inl \
FileS_T.cpp \
FileS_T.h \
FileS_T.inl
-FileC.cpp FileC.h FileC.inl FileS.cpp FileS.h FileS.inl FileS_T.cpp FileS_T.h FileS_T.inl: File-stamp
+FileC.cpp FileC.h FileC.inl FileS.h FileS.inl FileS_T.cpp FileS_T.h FileS_T.inl: File-stamp
File-stamp: $(srcdir)/File.idl $(TAO_IDL_DEP)
$(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/File.idl
@touch $@
-
-noinst_HEADERS = \
- File.idl
-
-## Makefile.POA_Default_Servant_Client.am
-
-if !BUILD_MINIMUM_CORBA
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -68,7 +62,11 @@ client_CPPFLAGS = \
client_SOURCES = \
FileC.cpp \
client.cpp \
- File_i.h
+ FileC.h \
+ FileC.inl \
+ FileS.h \
+ FileS_T.h \
+ FileS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -81,6 +79,35 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ FileC.cpp \
+ FileC.h \
+ FileC.inl \
+ FileS.cpp \
+ FileS.h \
+ FileS.inl \
+ FileS_T.cpp \
+ FileS_T.h \
+ FileS_T.inl
+
+CLEANFILES += \
+ File-stamp \
+ FileC.cpp \
+ FileC.h \
+ FileC.inl \
+ FileS.cpp \
+ FileS.h \
+ FileS.inl \
+ FileS_T.cpp \
+ FileS_T.h \
+ FileS_T.inl
+
+FileC.cpp FileC.h FileC.inl FileS.cpp FileS.h FileS.inl FileS_T.cpp FileS_T.h FileS_T.inl: File-stamp
+
+File-stamp: $(srcdir)/File.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/File.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -94,6 +121,11 @@ server_SOURCES = \
FileS.cpp \
File_i.cpp \
server.cpp \
+ FileC.h \
+ FileC.inl \
+ FileS.h \
+ FileS_T.h \
+ FileS_T.inl \
File_i.h
server_LDADD = \
diff --git a/TAO/examples/POA/Default_Servant/POA_Default_Servant.mpc b/TAO/examples/POA/Default_Servant/POA_Default_Servant.mpc
index 55d3216ddfb..897515a3602 100644
--- a/TAO/examples/POA/Default_Servant/POA_Default_Servant.mpc
+++ b/TAO/examples/POA/Default_Servant/POA_Default_Servant.mpc
@@ -1,31 +1,16 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults, anytypecode {
- IDL_Files {
- File.idl
- }
- custom_only = 1
-}
-
project(*Client) : taoclient, anytypecode, minimum_corba {
- after += *IDL
source_files {
FileC.cpp
client.cpp
}
- IDL_Files {
- }
}
project(*Server) : taoserver, minimum_corba {
- after += *IDL
source_files {
File_i.cpp
server.cpp
- FileS.cpp
- FileC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/POA/Default_Servant/client.cpp b/TAO/examples/POA/Default_Servant/client.cpp
index a1a99766578..2f62f81c7aa 100644
--- a/TAO/examples/POA/Default_Servant/client.cpp
+++ b/TAO/examples/POA/Default_Servant/client.cpp
@@ -22,6 +22,7 @@
#include "ace/Read_Buffer.h"
#include "ace/OS.h"
#include "ace/SString.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Default_Servant, client, "$Id$")
@@ -32,7 +33,7 @@ static const char *message = "POA rules!!";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "dk:f:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dk:f:m:");
int c;
while ((c = get_opts ()) != -1)
@@ -71,18 +72,19 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the command-line arguments to get the IOR
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
// parse args should catch this, but just in case...
if (iorfile == 0)
diff --git a/TAO/examples/POA/Default_Servant/run_test.pl b/TAO/examples/POA/Default_Servant/run_test.pl
index babb006e009..c232bbd92b8 100755
--- a/TAO/examples/POA/Default_Servant/run_test.pl
+++ b/TAO/examples/POA/Default_Servant/run_test.pl
@@ -16,12 +16,7 @@ unlink $iorfile;
$SV = new PerlACE::Process ("server", "-o $iorfile");
$CL = new PerlACE::Process ("client", "-k $iorfile");
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
diff --git a/TAO/examples/POA/Default_Servant/server.cpp b/TAO/examples/POA/Default_Servant/server.cpp
index be45c3a1297..18ffb067100 100644
--- a/TAO/examples/POA/Default_Servant/server.cpp
+++ b/TAO/examples/POA/Default_Servant/server.cpp
@@ -21,6 +21,7 @@
#include "ace/Get_Opt.h"
#include "ace/SString.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Default_Servant, server, "$Id$")
@@ -29,7 +30,7 @@ static const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -58,17 +59,18 @@ parse_args (int argc, char **argv)
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
@@ -152,7 +154,7 @@ main (int argc, char **argv)
ACE_DEBUG ((LM_DEBUG,"%s\n",
file_system_ior.in ()));
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource.mpc b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource.mpc
index 3c97f87aade..577eb5f2de0 100644
--- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource.mpc
+++ b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Alt_Resource.mpc
@@ -1,7 +1,19 @@
// -*- MPC -*-
// $Id$
-project: taolib, wfmo {
+project: taolib {
sharedname = Alt_Resource_Factory
dynamicflags = Alt_Resource_Factory_BUILD_DLL
+
+ verbatim(gnuace, top) {
+ ifneq ($(MAKE),)
+ include $(ACE_ROOT)/include/makeinclude/macros.GNU
+ TARGETS_NESTED := $(TARGETS_NESTED:.nested=)
+ $(TARGETS_NESTED):
+ " @echo alt_resource will only build on Windows"
+ else
+ }
+ verbatim(gnuace, bottom) {
+ endif
+ }
}
diff --git a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Makefile.am b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Makefile.am
index 938e129bc66..d5937ed3027 100644
--- a/TAO/examples/POA/Explicit_Activation/Alt_Resources/Makefile.am
+++ b/TAO/examples/POA/Explicit_Activation/Alt_Resources/Makefile.am
@@ -13,11 +13,8 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-
## Makefile.Alt_Resource.am
-if BUILD_WFMO
-
noinst_LTLIBRARIES = libAlt_Resource_Factory.la
libAlt_Resource_Factory_la_CPPFLAGS = \
@@ -34,8 +31,6 @@ noinst_HEADERS = \
Alt_Resource_Factory.h \
Resource_Factory.h
-endif BUILD_WFMO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/examples/POA/Explicit_Activation/Makefile.am b/TAO/examples/POA/Explicit_Activation/Makefile.am
index edcd6f89a04..f5b4e5ade81 100644
--- a/TAO/examples/POA/Explicit_Activation/Makefile.am
+++ b/TAO/examples/POA/Explicit_Activation/Makefile.am
@@ -14,8 +14,8 @@ TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
SUBDIRS = \
- . \
- Alt_Resources
+ Alt_Resources \
+ .
## Makefile.POA_Explicit_Activation_Server.am
@@ -29,8 +29,7 @@ server_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- -I$(srcdir)/../Generic_Servant \
- -I../Generic_Servant
+ -I$(srcdir)/../Generic_Servant
server_SOURCES = \
server.cpp
diff --git a/TAO/examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc b/TAO/examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc
index 60b77c13641..7f01d95962a 100644
--- a/TAO/examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc
+++ b/TAO/examples/POA/Explicit_Activation/POA_Explicit_Activation.mpc
@@ -2,14 +2,9 @@
// $Id$
project(*Server): taoexe, portableserver, minimum_corba {
+ includes += ../Generic_Servant
libs += Generic_Servant
after += POA_Generic_Servant_Lib
-
- specific (automake) {
- includes += $(srcdir)/../Generic_Servant
- }
- includes += ../Generic_Servant
-
Source_Files {
server.cpp
}
diff --git a/TAO/examples/POA/Explicit_Activation/run_test.pl b/TAO/examples/POA/Explicit_Activation/run_test.pl
index 9c695ee3141..3d4ad7d4afb 100755
--- a/TAO/examples/POA/Explicit_Activation/run_test.pl
+++ b/TAO/examples/POA/Explicit_Activation/run_test.pl
@@ -55,12 +55,7 @@ $status = 0;
$SV = new PerlACE::Process ("server", "-f $iorfile $extra_args");
$CL = new PerlACE::Process ("../Generic_Servant/client");
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile_1, 10) == -1) {
print STDERR "ERROR: cannot find file <$iorfile_1>\n";
diff --git a/TAO/examples/POA/Explicit_Activation/server.cpp b/TAO/examples/POA/Explicit_Activation/server.cpp
index 924ce3bd0f1..255b27c4e2b 100644
--- a/TAO/examples/POA/Explicit_Activation/server.cpp
+++ b/TAO/examples/POA/Explicit_Activation/server.cpp
@@ -20,6 +20,7 @@
#include "ace/SString.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Explicit_Activation, server, "$Id$")
@@ -28,7 +29,7 @@ const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -65,9 +66,9 @@ write_iors_to_file (const char *first_ior,
ACE_OS::sprintf (ior_output_file_2, "%s_2", ior_output_file);
ACE_OS::sprintf (ior_output_file_3, "%s_3", ior_output_file);
- FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, "w");
- FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, "w");
- FILE *output_file_3 = ACE_OS::fopen (ior_output_file_3, "w");
+ FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, ACE_TEXT("w"));
+ FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, ACE_TEXT("w"));
+ FILE *output_file_3 = ACE_OS::fopen (ior_output_file_3, ACE_TEXT("w"));
if (output_file_1 == 0 ||
output_file_2 == 0 ||
@@ -118,21 +119,21 @@ write_iors_to_file (const char *first_ior,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/examples/POA/FindPOA/FindPOA.cpp b/TAO/examples/POA/FindPOA/FindPOA.cpp
index 8d96c04e54c..1b84668cb10 100644
--- a/TAO/examples/POA/FindPOA/FindPOA.cpp
+++ b/TAO/examples/POA/FindPOA/FindPOA.cpp
@@ -22,6 +22,7 @@
#include "tao/ORB.h"
#include "ace/Log_Msg.h"
#include "ace/SString.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (FindPOA,
FindPOA,
@@ -57,14 +58,15 @@ find_non_existant_POA (PortableServer::POA_ptr parent,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
// Initialize the ORB
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Obtain the RootPOA.
diff --git a/TAO/examples/POA/Forwarding/Makefile.am b/TAO/examples/POA/Forwarding/Makefile.am
index 0d44155ca84..1c92b99e274 100644
--- a/TAO/examples/POA/Forwarding/Makefile.am
+++ b/TAO/examples/POA/Forwarding/Makefile.am
@@ -16,47 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.POA_Forwarding_IDL.am
+## Makefile.POA_Forwarding_Client.am
+
+if !BUILD_MINIMUM_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+testC.cpp testC.h testC.inl testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
$(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.POA_Forwarding_Client.am
-
-if !BUILD_MINIMUM_CORBA
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -68,8 +62,11 @@ client_CPPFLAGS = \
client_SOURCES = \
client.cpp \
testC.cpp \
- Servant_Activator.h \
- test_i.h
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -82,6 +79,35 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -97,6 +123,11 @@ server_SOURCES = \
testS.cpp \
test_i.cpp \
Servant_Activator.h \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h
server_LDADD = \
diff --git a/TAO/examples/POA/Forwarding/POA_Forwarding.mpc b/TAO/examples/POA/Forwarding/POA_Forwarding.mpc
index 758ca27605f..8f35adb7f26 100644
--- a/TAO/examples/POA/Forwarding/POA_Forwarding.mpc
+++ b/TAO/examples/POA/Forwarding/POA_Forwarding.mpc
@@ -1,32 +1,17 @@
// -*- MPC -*-
// $Id$
-project(*IDL) : taoidldefaults, anytypecode {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
project(*Client) : taoclient, anytypecode, minimum_corba {
- after += *IDL
source_files {
client.cpp
testC.cpp
}
- IDL_Files {
- }
}
project(*Server) : taoserver, minimum_corba {
- after += *IDL
source_files {
test_i.cpp
server.cpp
Servant_Activator.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/POA/Forwarding/client.cpp b/TAO/examples/POA/Forwarding/client.cpp
index a47f480a36d..de04867761d 100644
--- a/TAO/examples/POA/Forwarding/client.cpp
+++ b/TAO/examples/POA/Forwarding/client.cpp
@@ -20,6 +20,7 @@
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
#include "testC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Forwarding, client, "$Id$")
@@ -30,7 +31,7 @@ static int iterations = 3;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "s:i:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "s:i:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -96,19 +97,20 @@ do_calls (test_ptr test
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
int parse_args_result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/examples/POA/Forwarding/server.cpp b/TAO/examples/POA/Forwarding/server.cpp
index b4a4e26b918..d10cdd520d3 100644
--- a/TAO/examples/POA/Forwarding/server.cpp
+++ b/TAO/examples/POA/Forwarding/server.cpp
@@ -21,6 +21,7 @@
#include "test_i.h"
#include "Servant_Activator.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Forwarding, server, "$Id$")
@@ -30,7 +31,7 @@ static const char *forward_to_ior = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -161,7 +162,7 @@ create_servant_manager (CORBA::ORB_ptr orb,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR ((LM_ERROR,
"Cannot open output file for writing IOR: %s\n",
@@ -175,22 +176,22 @@ create_servant_manager (CORBA::ORB_ptr orb,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
diff --git a/TAO/examples/POA/Generic_Servant/Makefile.am b/TAO/examples/POA/Generic_Servant/Makefile.am
index 40dc603aadb..1d60d8b179a 100644
--- a/TAO/examples/POA/Generic_Servant/Makefile.am
+++ b/TAO/examples/POA/Generic_Servant/Makefile.am
@@ -78,7 +78,6 @@ endif !BUILD_MINIMUM_CORBA
## Makefile.POA_Generic_Servant_Client.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = client
@@ -102,7 +101,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/examples/POA/Generic_Servant/POA_Generic_Servant.mpc b/TAO/examples/POA/Generic_Servant/POA_Generic_Servant.mpc
index 3c249a12a2e..0cc793eef25 100644
--- a/TAO/examples/POA/Generic_Servant/POA_Generic_Servant.mpc
+++ b/TAO/examples/POA/Generic_Servant/POA_Generic_Servant.mpc
@@ -9,9 +9,8 @@ project(*lib): taolib_with_idl, portableserver, minimum_corba {
}
project(*client): taoexe, portableserver, minimum_corba {
- avoids += ace_for_tao
- after += *lib
- libs += Generic_Servant
+ after += *lib
+ libs += Generic_Servant
idl_files {
}
Source_Files {
diff --git a/TAO/examples/POA/Generic_Servant/client.cpp b/TAO/examples/POA/Generic_Servant/client.cpp
index 901c06ce028..e45bee28678 100644
--- a/TAO/examples/POA/Generic_Servant/client.cpp
+++ b/TAO/examples/POA/Generic_Servant/client.cpp
@@ -4,6 +4,7 @@
#include "ace/Profile_Timer.h"
#include "ace/Read_Buffer.h"
#include "testC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Generic_Servant, client, "$Id$")
@@ -17,7 +18,7 @@ static int timed_method = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:k:i:T:otx");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:k:i:T:otx");
int c;
while ((c = get_opts ()) != -1)
@@ -104,23 +105,23 @@ print_stats (ACE_Profile_Timer::ACE_Elapsed_Time &elapsed_time,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
int parse_args_result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/examples/POA/Loader/Servant_Activator.cpp b/TAO/examples/POA/Loader/Servant_Activator.cpp
index 72bf969c798..077b016cab6 100644
--- a/TAO/examples/POA/Loader/Servant_Activator.cpp
+++ b/TAO/examples/POA/Loader/Servant_Activator.cpp
@@ -36,7 +36,7 @@ ServantActivator::ServantActivator (CORBA::ORB_ptr orb,
: orb_ (CORBA::ORB::_duplicate (orb))
{
// The dll is opened using the dllname passed.
- if (this->dll_.open (dllname) == -1)
+ if (this->dll_.open (ACE_TEXT_TO_TCHAR_IN(dllname)) == -1)
ACE_ERROR ((LM_ERROR,
"%p\n",
this->dll_.error ()));
@@ -46,7 +46,7 @@ ServantActivator::ServantActivator (CORBA::ORB_ptr orb,
// Cannot go from void* to function pointer directly. Cast the void*
// to long first.
- void *symbol = this->dll_.symbol (factory_function);
+ void *symbol = this->dll_.symbol (ACE_TEXT_TO_TCHAR_IN(factory_function));
long function = reinterpret_cast<long> (symbol);
servant_supplier_ =
@@ -54,7 +54,7 @@ ServantActivator::ServantActivator (CORBA::ORB_ptr orb,
// Obtain the symbol for the function which will destroy the
// servant.
- symbol = this->dll_.symbol (garbage_collection_function);
+ symbol = this->dll_.symbol (ACE_TEXT_TO_TCHAR_IN(garbage_collection_function));
function = reinterpret_cast<long> (symbol);
servant_garbage_collector_ =
reinterpret_cast<SERVANT_GARBAGE_COLLECTOR> (function);
diff --git a/TAO/examples/POA/Loader/Servant_Locator.cpp b/TAO/examples/POA/Loader/Servant_Locator.cpp
index 3850c8743ce..d2e154105b1 100644
--- a/TAO/examples/POA/Loader/Servant_Locator.cpp
+++ b/TAO/examples/POA/Loader/Servant_Locator.cpp
@@ -36,7 +36,7 @@ ServantLocator::ServantLocator (CORBA::ORB_ptr orb,
: orb_ (CORBA::ORB::_duplicate (orb))
{
// The dll is opened using the dllname passed.
- if (this->dll_.open (dllname) == -1)
+ if (this->dll_.open (ACE_TEXT_TO_TCHAR_IN(dllname)) == -1)
ACE_ERROR ((LM_ERROR,
"%p",
this->dll_.error ()));
@@ -48,7 +48,7 @@ ServantLocator::ServantLocator (CORBA::ORB_ptr orb,
// Cannot go from void* to function pointer directly. Cast the void*
// to long first.
//
- void *symbol = this->dll_.symbol (factory_function);
+ void *symbol = this->dll_.symbol (ACE_TEXT_TO_TCHAR_IN(factory_function));
long function = reinterpret_cast<long> (symbol);
servant_supplier_ =
@@ -56,7 +56,7 @@ ServantLocator::ServantLocator (CORBA::ORB_ptr orb,
// Obtain the symbol for the function which will destroy the
// servant.
- symbol = this->dll_.symbol (garbage_collection_function);
+ symbol = this->dll_.symbol (ACE_TEXT_TO_TCHAR_IN(garbage_collection_function));
function = reinterpret_cast<long> (symbol);
servant_garbage_collector_ =
diff --git a/TAO/examples/POA/Loader/Server_Manager.cpp b/TAO/examples/POA/Loader/Server_Manager.cpp
index 287be59afe8..6a205694424 100644
--- a/TAO/examples/POA/Loader/Server_Manager.cpp
+++ b/TAO/examples/POA/Loader/Server_Manager.cpp
@@ -22,7 +22,7 @@ int
Server_i::parse_args (int argc,
char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -67,9 +67,9 @@ Server_i::write_iors_to_file (const char *first_ior,
ior_output_file_);
FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1,
- "w");
+ ACE_TEXT("w"));
FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2,
- "w");
+ ACE_TEXT("w"));
if (output_file_1 == 0
|| output_file_2 == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -113,8 +113,7 @@ Server_i::init (int argc, char **argv)
ACE_TRY
{
// Initialize the ORB.
- orb_ = CORBA::ORB_init (argc,
- argv,
+ orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/POA/Loader/run_test.pl b/TAO/examples/POA/Loader/run_test.pl
index 7d723f1796d..24b69e01972 100755
--- a/TAO/examples/POA/Loader/run_test.pl
+++ b/TAO/examples/POA/Loader/run_test.pl
@@ -52,12 +52,7 @@ unlink $iorfile_2;
$SV = new PerlACE::Process ("server", "-f $iorfile $extra_args");
$CL = new PerlACE::Process ("../Generic_Servant/client");
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile_1, 5) == -1) {
print STDERR "ERROR: cannot find file <$iorfile_1>\n";
diff --git a/TAO/examples/POA/Loader/server.cpp b/TAO/examples/POA/Loader/server.cpp
index e705b1ddf93..2d69b4826f1 100644
--- a/TAO/examples/POA/Loader/server.cpp
+++ b/TAO/examples/POA/Loader/server.cpp
@@ -14,15 +14,17 @@
//=============================================================================
#include "Server_Manager.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Loader, server, "$Id$")
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server_i server;
- if (server.init (argc, argv) != 0)
+ if (server.init (convert.get_argc(), convert.get_ASCII_argv()) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Failure during Initialisation: init ()\n"),
-1);
diff --git a/TAO/examples/POA/NewPOA/NewPOA.cpp b/TAO/examples/POA/NewPOA/NewPOA.cpp
index 89529e6bcf8..30e1426c7a3 100644
--- a/TAO/examples/POA/NewPOA/NewPOA.cpp
+++ b/TAO/examples/POA/NewPOA/NewPOA.cpp
@@ -27,6 +27,7 @@
#include "ace/SString.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (NewPOA,
NewPOA,
@@ -78,15 +79,15 @@ print_poa (PortableServer::POA_ptr poa
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// The first step Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/POA/On_Demand_Activation/Makefile.am b/TAO/examples/POA/On_Demand_Activation/Makefile.am
index 51168ecf5f1..a2ac2c2ca91 100644
--- a/TAO/examples/POA/On_Demand_Activation/Makefile.am
+++ b/TAO/examples/POA/On_Demand_Activation/Makefile.am
@@ -25,8 +25,7 @@ server_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- -I$(srcdir)/../Generic_Servant \
- -I../Generic_Servant
+ -I$(srcdir)/../Generic_Servant
server_SOURCES = \
Servant_Activator.cpp \
diff --git a/TAO/examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc b/TAO/examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc
index 7b2742cdd86..57a09f749b8 100644
--- a/TAO/examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc
+++ b/TAO/examples/POA/On_Demand_Activation/POA_On_Demand_Activation.mpc
@@ -2,14 +2,9 @@
// $Id$
project(*Server): taoexe, portableserver, minimum_corba {
+ includes += ../Generic_Servant
libs += Generic_Servant
after += POA_Generic_Servant_Lib
-
- specific (automake) {
- includes += $(srcdir)/../Generic_Servant
- }
- includes += ../Generic_Servant
-
Source_Files {
server.cpp
Servant_Activator.cpp
diff --git a/TAO/examples/POA/On_Demand_Activation/run_test.pl b/TAO/examples/POA/On_Demand_Activation/run_test.pl
index 84d6e385867..b61752d6930 100755
--- a/TAO/examples/POA/On_Demand_Activation/run_test.pl
+++ b/TAO/examples/POA/On_Demand_Activation/run_test.pl
@@ -53,12 +53,7 @@ $CL = new PerlACE::Process ("../Generic_Servant/client");
$status = 0;
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile_1, 15) == -1) {
print STDERR "ERROR: cannot find file <$iorfile_1>\n";
diff --git a/TAO/examples/POA/On_Demand_Activation/server.cpp b/TAO/examples/POA/On_Demand_Activation/server.cpp
index c5aa44a172f..b10183877a0 100644
--- a/TAO/examples/POA/On_Demand_Activation/server.cpp
+++ b/TAO/examples/POA/On_Demand_Activation/server.cpp
@@ -19,6 +19,7 @@
#include "Servant_Activator.h"
#include "Servant_Locator.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(On_Demand_Activation, server, "$Id$")
@@ -27,7 +28,7 @@ static const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -61,8 +62,8 @@ write_iors_to_file (const char *first_ior,
ACE_OS::sprintf (ior_output_file_1, "%s_1", ior_output_file);
ACE_OS::sprintf (ior_output_file_2, "%s_2", ior_output_file);
- FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, "w");
- FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, "w");
+ FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1, ACE_TEXT("w"));
+ FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2, ACE_TEXT("w"));
if (output_file_1 == 0 ||
output_file_2 == 0)
@@ -100,17 +101,19 @@ write_iors_to_file (const char *first_ior,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
+ 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp b/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
index 8564219f925..50321c85844 100644
--- a/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
+++ b/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
@@ -69,7 +69,7 @@ ServantManager_i::obtain_servant (const char *str,
"Bind failed"),
0);
// Now that the dll name is available we open the dll.
- if (dll->open (dllname_.c_str ()) == -1)
+ if (dll->open (ACE_TEXT_TO_TCHAR_IN(dllname_.c_str ())) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p",
dll->error ()),
@@ -80,7 +80,7 @@ ServantManager_i::obtain_servant (const char *str,
// Cannot go from void* to function pointer directly. Cast the void*
// to long first.
- void *symbol = dll->symbol (create_symbol_.c_str ());
+ void *symbol = dll->symbol (ACE_TEXT_TO_TCHAR_IN(create_symbol_.c_str ()));
long function = reinterpret_cast<long> (symbol);
SERVANT_FACTORY servant_creator =
@@ -111,7 +111,7 @@ ServantManager_i::parse_string (const char *s)
ACE_CString str (s);
- ssize_t index = str.find (':');
+ int index = str.find (':');
// On error, npos is returned.
if (index == ACE_CString::npos)
ACE_ERROR ((LM_ERROR,
diff --git a/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp b/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp
index c1d6f600d34..8e4724ef153 100644
--- a/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp
+++ b/TAO/examples/POA/On_Demand_Loading/Server_Manager.cpp
@@ -26,7 +26,7 @@ int
Server_i::parse_args (int argc,
char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -71,9 +71,9 @@ Server_i::write_iors_to_file (const char *first_ior,
ior_output_file_);
FILE *output_file_1 = ACE_OS::fopen (ior_output_file_1,
- "w");
+ ACE_TEXT("w"));
FILE *output_file_2 = ACE_OS::fopen (ior_output_file_2,
- "w");
+ ACE_TEXT("w"));
if (output_file_1 == 0
|| output_file_2 == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -118,8 +118,7 @@ Server_i::init (int argc, char **argv)
ACE_TRY
{
// Initialize the ORB.
- orb_ = CORBA::ORB_init (argc,
- argv,
+ orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/POA/On_Demand_Loading/run_test.pl b/TAO/examples/POA/On_Demand_Loading/run_test.pl
index 2b8e2439321..4b87c9f280b 100755
--- a/TAO/examples/POA/On_Demand_Loading/run_test.pl
+++ b/TAO/examples/POA/On_Demand_Loading/run_test.pl
@@ -55,12 +55,7 @@ $CL1 = new PerlACE::Process ("../Generic_Servant/client",
$CL2 = new PerlACE::Process ("../Generic_Servant/client",
"$extra_args $oneway -i $iterations -k file://$iorfile2 -x");
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile1, 15) == -1) {
print STDERR "ERROR: cannot find file <$iorfile1>\n";
diff --git a/TAO/examples/POA/On_Demand_Loading/server.cpp b/TAO/examples/POA/On_Demand_Loading/server.cpp
index 04ff3faf909..4cadc9b1ee4 100644
--- a/TAO/examples/POA/On_Demand_Loading/server.cpp
+++ b/TAO/examples/POA/On_Demand_Loading/server.cpp
@@ -14,15 +14,17 @@
//=============================================================================
#include "Server_Manager.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(On_Demand_Loading, server, "$Id$")
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server_i server;
- if (server.init (argc, argv) != 0)
+ if (server.init (convert.get_argc(), convert.get_ASCII_argv()) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Failure during Initialisation: init ()\n"),
-1);
diff --git a/TAO/examples/POA/POA_BiDir/POA_BiDir.cpp b/TAO/examples/POA/POA_BiDir/POA_BiDir.cpp
index 7deb1f68cbe..32ed0e1b3f0 100644
--- a/TAO/examples/POA/POA_BiDir/POA_BiDir.cpp
+++ b/TAO/examples/POA/POA_BiDir/POA_BiDir.cpp
@@ -24,7 +24,7 @@
#include "tao/ORB.h"
#include "ace/SString.h"
-
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (POA_BiDir,
POA_BiDir,
@@ -76,15 +76,15 @@ print_poa (PortableServer::POA_ptr poa
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// The first step Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/POA/Reference_Counted_Servant/Makefile.am b/TAO/examples/POA/Reference_Counted_Servant/Makefile.am
index 0d2f44aa5d9..b5515bc32b4 100644
--- a/TAO/examples/POA/Reference_Counted_Servant/Makefile.am
+++ b/TAO/examples/POA/Reference_Counted_Servant/Makefile.am
@@ -25,8 +25,7 @@ server_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- -I$(srcdir)/../Generic_Servant \
- -I../Generic_Servant
+ -I$(srcdir)/../Generic_Servant
server_SOURCES = \
server.cpp
diff --git a/TAO/examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc b/TAO/examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc
index 71264867f12..0b54971c2cb 100644
--- a/TAO/examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc
+++ b/TAO/examples/POA/Reference_Counted_Servant/Reference_Counted_Servant.mpc
@@ -2,15 +2,11 @@
// $Id$
project(*Server): taoexe, portableserver, minimum_corba {
+ includes += ../Generic_Servant
libs += Generic_Servant
after += POA_Generic_Servant_Lib
-
- specific (automake) {
- includes += $(srcdir)/../Generic_Servant
- }
- includes += ../Generic_Servant
-
Source_Files {
server.cpp
}
}
+
diff --git a/TAO/examples/POA/Reference_Counted_Servant/run_test.pl b/TAO/examples/POA/Reference_Counted_Servant/run_test.pl
index 4df2b4a645d..b8a67aa7ed4 100755
--- a/TAO/examples/POA/Reference_Counted_Servant/run_test.pl
+++ b/TAO/examples/POA/Reference_Counted_Servant/run_test.pl
@@ -49,12 +49,7 @@ $CL = new PerlACE::Process ("../Generic_Servant/client", "$extra_args $oneway -i
$status = 0;
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
diff --git a/TAO/examples/POA/Reference_Counted_Servant/server.cpp b/TAO/examples/POA/Reference_Counted_Servant/server.cpp
index 5c3bcb3b2b0..6c5aea2407a 100644
--- a/TAO/examples/POA/Reference_Counted_Servant/server.cpp
+++ b/TAO/examples/POA/Reference_Counted_Servant/server.cpp
@@ -23,6 +23,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Reference_Counted_Servant, server, "$Id$")
@@ -53,7 +54,7 @@ static const char *ior_output_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -80,7 +81,7 @@ parse_args (int argc, char **argv)
static int
write_iors_to_file (const char *ior)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output files for writing IORs: %s, %s %s\n",
@@ -105,20 +106,20 @@ write_iors_to_file (const char *ior)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/examples/POA/RootPOA/RootPOA.cpp b/TAO/examples/POA/RootPOA/RootPOA.cpp
index 687f400c6bb..eb51a43f26b 100644
--- a/TAO/examples/POA/RootPOA/RootPOA.cpp
+++ b/TAO/examples/POA/RootPOA/RootPOA.cpp
@@ -23,20 +23,22 @@
#include "tao/ORB.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (RootPOA,
RootPOA,
"$Id$")
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initilize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Resolve the initial references for the name RootPOA thus getting
diff --git a/TAO/examples/POA/TIE/Makefile.am b/TAO/examples/POA/TIE/Makefile.am
index a8eee00155e..84100c426b3 100644
--- a/TAO/examples/POA/TIE/Makefile.am
+++ b/TAO/examples/POA/TIE/Makefile.am
@@ -16,48 +16,41 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.POA_TIE_IDL.am
+## Makefile.POA_TIE_Client.am
+
+if !BUILD_MINIMUM_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-CLEANFILES = \
+CLEANFILES += \
test-stamp \
testC.cpp \
testC.h \
testC.inl \
- testS.cpp \
testS.h \
testS.inl \
testS_T.cpp \
testS_T.h \
testS_T.inl
-testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+testC.cpp testC.h testC.inl testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/test.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.POA_TIE_Client.am
-
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -69,7 +62,11 @@ client_CPPFLAGS = \
client_SOURCES = \
client.cpp \
testC.cpp \
- test_i.h
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -77,12 +74,40 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.POA_TIE_Server.am
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/test.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -96,6 +121,11 @@ server_SOURCES = \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h
server_LDADD = \
diff --git a/TAO/examples/POA/TIE/POA_TIE.mpc b/TAO/examples/POA/TIE/POA_TIE.mpc
index bb4d3be3634..585af3c0dfc 100644
--- a/TAO/examples/POA/TIE/POA_TIE.mpc
+++ b/TAO/examples/POA/TIE/POA_TIE.mpc
@@ -1,32 +1,16 @@
// -*- MPC -*-
// $Id$
-project(*IDL) : taoidldefaults {
- IDL_Files {
- test.idl
- }
- custom_only = 1
-}
-
project(*Client) : taoclient, anytypecode, minimum_corba {
- after += *IDL
- avoids += ace_for_tao
source_files {
client.cpp
testC.cpp
}
- IDL_Files {
- }
}
project(*Server) : taoserver, minimum_corba {
- after += *IDL
source_files {
test_i.cpp
server.cpp
- testS.cpp
- testC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/POA/TIE/client.cpp b/TAO/examples/POA/TIE/client.cpp
index 9f29271ff6d..9844c3c8490 100644
--- a/TAO/examples/POA/TIE/client.cpp
+++ b/TAO/examples/POA/TIE/client.cpp
@@ -19,6 +19,7 @@
#include "ace/Profile_Timer.h"
#include "testC.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(TIE, client, "$Id$")
@@ -28,7 +29,7 @@ static int iterations = 1;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "a:b:c:d:e:f:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:b:c:d:e:f:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -172,17 +173,18 @@ public:
};
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/examples/POA/TIE/server.cpp b/TAO/examples/POA/TIE/server.cpp
index 1c53b7ebb97..884e170f738 100644
--- a/TAO/examples/POA/TIE/server.cpp
+++ b/TAO/examples/POA/TIE/server.cpp
@@ -18,12 +18,14 @@
#include "ace/SString.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(TIE, server, "$Id$")
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
char str[256];
@@ -33,7 +35,7 @@ main (int argc, char **argv)
ACE_OS::strcpy (str, "CORBA::ORB_init");
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Obtain the RootPOA.
@@ -175,10 +177,10 @@ main (int argc, char **argv)
orb->object_to_string (a_tie.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file_1 = ACE_OS::fopen ("ior_1", "w");
- FILE *output_file_2 = ACE_OS::fopen ("ior_2", "w");
- FILE *output_file_3 = ACE_OS::fopen ("ior_3", "w");
- FILE *output_file_4 = ACE_OS::fopen ("ior_4", "w");
+ FILE *output_file_1 = ACE_OS::fopen ("ior_1", ACE_TEXT("w"));
+ FILE *output_file_2 = ACE_OS::fopen ("ior_2", ACE_TEXT("w"));
+ FILE *output_file_3 = ACE_OS::fopen ("ior_3", ACE_TEXT("w"));
+ FILE *output_file_4 = ACE_OS::fopen ("ior_4", ACE_TEXT("w"));
if (output_file_1)
ACE_OS::fprintf (output_file_1,
@@ -214,8 +216,8 @@ main (int argc, char **argv)
orb->object_to_string (c_tie.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file_5 = ACE_OS::fopen ("ior_5", "w");
- FILE *output_file_6 = ACE_OS::fopen ("ior_6", "w");
+ FILE *output_file_5 = ACE_OS::fopen ("ior_5", ACE_TEXT("w"));
+ FILE *output_file_6 = ACE_OS::fopen ("ior_6", ACE_TEXT("w"));
if (output_file_5)
ACE_OS::fprintf (output_file_5,
diff --git a/TAO/examples/Persistent_Grid/Grid_Client_i.cpp b/TAO/examples/Persistent_Grid/Grid_Client_i.cpp
index ab94a8760c1..58aefca32f3 100644
--- a/TAO/examples/Persistent_Grid/Grid_Client_i.cpp
+++ b/TAO/examples/Persistent_Grid/Grid_Client_i.cpp
@@ -29,7 +29,7 @@ Grid_Client_i::parse_args (int argc,
char *argv[])
{
// Parses some of the options that are specific to this example
- ACE_Get_Opt get_opts (argc, argv, "df:nk:xw:h:v:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "df:nk:xw:h:v:");
int c = 0;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/Persistent_Grid/Grid_i.cpp b/TAO/examples/Persistent_Grid/Grid_i.cpp
index fcec899cc6e..7e3951da107 100644
--- a/TAO/examples/Persistent_Grid/Grid_i.cpp
+++ b/TAO/examples/Persistent_Grid/Grid_i.cpp
@@ -185,7 +185,7 @@ Grid_Factory_i::make_grid (CORBA::Short width,
// Get a memory pool
ACE_NEW_THROW_EX (pool_t_,
- pool_t (pool_name_),
+ pool_t (ACE_TEXT_TO_TCHAR_IN(pool_name_)),
CORBA::NO_MEMORY ());
// pool_t_ = new pool_t (pool_name_);
diff --git a/TAO/examples/Persistent_Grid/Makefile.am b/TAO/examples/Persistent_Grid/Makefile.am
index 8ec425f9cc9..c1536d162a7 100644
--- a/TAO/examples/Persistent_Grid/Makefile.am
+++ b/TAO/examples/Persistent_Grid/Makefile.am
@@ -16,14 +16,12 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-
-## Makefile.Persistent_Grid_IDL.am
+## Makefile.Persistent_Grid_Client.am
BUILT_SOURCES = \
GridC.cpp \
GridC.h \
GridC.inl \
- GridS.cpp \
GridS.h \
GridS.inl \
GridS_T.cpp \
@@ -35,25 +33,18 @@ CLEANFILES = \
GridC.cpp \
GridC.h \
GridC.inl \
- GridS.cpp \
GridS.h \
GridS.inl \
GridS_T.cpp \
GridS_T.h \
GridS_T.inl
-GridC.cpp GridC.h GridC.inl GridS.cpp GridS.h GridS.inl GridS_T.cpp GridS_T.h GridS_T.inl: Grid-stamp
+GridC.cpp GridC.h GridC.inl GridS.h GridS.inl GridS_T.cpp GridS_T.h GridS_T.inl: Grid-stamp
Grid-stamp: $(srcdir)/Grid.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Grid.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Grid.idl
@touch $@
-
-noinst_HEADERS = \
- Grid.idl
-
-## Makefile.Persistent_Grid_Client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -67,6 +58,11 @@ client_SOURCES = \
Grid_Client_i.cpp \
Simple_util.cpp \
client.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS_T.h \
+ GridS_T.inl \
Grid_Client_i.h \
Simple_util.h
@@ -81,6 +77,33 @@ client_LDADD = \
## Makefile.Persistent_Grid_Persistent_Client.am
+BUILT_SOURCES += \
+ GridC.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS.inl \
+ GridS_T.cpp \
+ GridS_T.h \
+ GridS_T.inl
+
+CLEANFILES += \
+ Grid-stamp \
+ GridC.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS.inl \
+ GridS_T.cpp \
+ GridS_T.h \
+ GridS_T.inl
+
+GridC.cpp GridC.h GridC.inl GridS.h GridS.inl GridS_T.cpp GridS_T.h GridS_T.inl: Grid-stamp
+
+Grid-stamp: $(srcdir)/Grid.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Grid.idl
+ @touch $@
+
noinst_PROGRAMS += persistent_client
persistent_client_CPPFLAGS = \
@@ -94,6 +117,11 @@ persistent_client_SOURCES = \
Persistent_Client_i.cpp \
Simple_util.cpp \
persistent_client.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS_T.h \
+ GridS_T.inl \
Simple_util.h
persistent_client_LDADD = \
@@ -107,7 +135,34 @@ persistent_client_LDADD = \
## Makefile.Persistent_Grid_Server.am
-if !BUILD_ACE_FOR_TAO
+BUILT_SOURCES += \
+ GridC.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.cpp \
+ GridS.h \
+ GridS.inl \
+ GridS_T.cpp \
+ GridS_T.h \
+ GridS_T.inl
+
+CLEANFILES += \
+ Grid-stamp \
+ GridC.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.cpp \
+ GridS.h \
+ GridS.inl \
+ GridS_T.cpp \
+ GridS_T.h \
+ GridS_T.inl
+
+GridC.cpp GridC.h GridC.inl GridS.cpp GridS.h GridS.inl GridS_T.cpp GridS_T.h GridS_T.inl: Grid-stamp
+
+Grid-stamp: $(srcdir)/Grid.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Grid.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -123,6 +178,11 @@ server_SOURCES = \
Grid_i.cpp \
Simple_util.cpp \
server.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS_T.h \
+ GridS_T.inl \
Grid_i.h \
Simple_util.h
@@ -135,8 +195,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/examples/Persistent_Grid/Persistent_Client_i.cpp b/TAO/examples/Persistent_Grid/Persistent_Client_i.cpp
index b3b5b0dfd7e..f1ede7ccb23 100644
--- a/TAO/examples/Persistent_Grid/Persistent_Client_i.cpp
+++ b/TAO/examples/Persistent_Grid/Persistent_Client_i.cpp
@@ -24,7 +24,7 @@ Persistent_Client_i::parse_args (int argc,
char *argv[])
{
// Parses some of the options that are specific to this example
- ACE_Get_Opt get_opts (argc, argv, "dk:f:xw:h:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dk:f:xw:h:r");
int c = 0;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/Persistent_Grid/Persistent_Grid.mpc b/TAO/examples/Persistent_Grid/Persistent_Grid.mpc
index ee446f09b4c..d4d326d3fc1 100644
--- a/TAO/examples/Persistent_Grid/Persistent_Grid.mpc
+++ b/TAO/examples/Persistent_Grid/Persistent_Grid.mpc
@@ -1,47 +1,28 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Grid.idl
- }
- custom_only = 1
-}
-
project(*server): taoserver, utils {
- after += *IDL
- avoids += ace_for_tao
Source_Files {
Grid_i.cpp
Simple_util.cpp
server.cpp
- GridS.cpp
- GridC.cpp
- }
- IDL_Files {
}
}
project(*client): taoexe, utils, portableserver {
- after += *IDL
Source_Files {
GridC.cpp
Simple_util.cpp
Grid_Client_i.cpp
client.cpp
}
- IDL_Files {
- }
}
project(*persistent client): taoexe, utils, portableserver {
- after += *IDL
Source_Files {
GridC.cpp
Simple_util.cpp
Persistent_Client_i.cpp
persistent_client.cpp
}
- IDL_Files {
- }
}
diff --git a/TAO/examples/Persistent_Grid/Simple_util.cpp b/TAO/examples/Persistent_Grid/Simple_util.cpp
index b69f2e4f6f8..acb255facee 100644
--- a/TAO/examples/Persistent_Grid/Simple_util.cpp
+++ b/TAO/examples/Persistent_Grid/Simple_util.cpp
@@ -32,7 +32,7 @@ Server<Servant>::~Server (void)
template <class Servant> int
Server<Servant>::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:m:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:m:");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -42,7 +42,7 @@ Server<Servant>::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
@@ -205,7 +205,7 @@ Client<InterfaceObj, Var>::read_ior (char *filename)
template <class InterfaceObj, class Var> int
Client<InterfaceObj, Var>::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "df:k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:k:x");
int c = 0;
int result = 0;
diff --git a/TAO/examples/Persistent_Grid/client.cpp b/TAO/examples/Persistent_Grid/client.cpp
index c67b7b80261..d550dfc97db 100644
--- a/TAO/examples/Persistent_Grid/client.cpp
+++ b/TAO/examples/Persistent_Grid/client.cpp
@@ -1,18 +1,20 @@
// $Id$
# include "Grid_Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Grid_Client_i client;
ACE_DEBUG ((LM_DEBUG,
"\nGrid client\n\n"));
- if (client.run ("Grid", argc, argv) == -1)
+ if (client.run ("Grid", convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Persistent_Grid/persistent_client.cpp b/TAO/examples/Persistent_Grid/persistent_client.cpp
index 3bd9a3137e6..40d09ce1ea4 100644
--- a/TAO/examples/Persistent_Grid/persistent_client.cpp
+++ b/TAO/examples/Persistent_Grid/persistent_client.cpp
@@ -1,19 +1,20 @@
// $Id$
# include "Persistent_Client.h"
+#include "ace/Argv_Type_Converter.h"
// The "persistent client" program for the application.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Persistent_Client_i client;
-
ACE_DEBUG ((LM_DEBUG,
"\nGrid client\n\n"));
- if (client.run ("grid", argc, argv) == -1)
+ if (client.run ("grid", convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Persistent_Grid/server.cpp b/TAO/examples/Persistent_Grid/server.cpp
index 99f007eae7f..1debd6b942a 100644
--- a/TAO/examples/Persistent_Grid/server.cpp
+++ b/TAO/examples/Persistent_Grid/server.cpp
@@ -2,12 +2,14 @@
#include "Simple_util.h"
#include "Grid_i.h"
+#include "ace/Argv_Type_Converter.h"
// This is the main driver program for the time and date server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server<Grid_Factory_i> server;
ACE_DEBUG ((LM_DEBUG,
@@ -18,8 +20,8 @@ main (int argc, char *argv[])
ACE_TRY
{
if (server.init ("Grid",
- argc,
- argv
+ convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/PluggableUDP/tests/Basic/Basic.mpc b/TAO/examples/PluggableUDP/tests/Basic/Basic.mpc
index 4c296c2067d..c3a57d77905 100644
--- a/TAO/examples/PluggableUDP/tests/Basic/Basic.mpc
+++ b/TAO/examples/PluggableUDP/tests/Basic/Basic.mpc
@@ -1,43 +1,23 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
+project(*server): taoexe, portableserver, strategies {
idlflags += -Sp -Sd
- IDL_Files {
- UDP.idl
- }
-
- custom_only = 1
-}
-
-project(*server): taoserver, strategies {
- exename = server
- after += *IDL
-
Source_Files {
- server.cpp
UDP_Client_i.cpp
+ server.cpp
UDP_i.cpp
- UDPS.cpp
- UDPC.cpp
- }
- IDL_Files {
}
}
-project(*client): taoserver, strategies {
- exename = client
- after += *IDL
+project(*client): taoexe, portableserver, strategies {
+ idlflags += -Sp -Sd
Source_Files {
client.cpp
UDP_Client_i.cpp
UDP_i.cpp
- UDPS.cpp
- UDPC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/PluggableUDP/tests/Basic/Makefile.am b/TAO/examples/PluggableUDP/tests/Basic/Makefile.am
index edb34f4f305..b94ec10dfd3 100644
--- a/TAO/examples/PluggableUDP/tests/Basic/Makefile.am
+++ b/TAO/examples/PluggableUDP/tests/Basic/Makefile.am
@@ -16,9 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
-## Makefile.Basic_IDL.am
+## Makefile.Basic_Client.am
BUILT_SOURCES = \
UDPC.cpp \
@@ -46,18 +44,10 @@ CLEANFILES = \
UDPC.cpp UDPC.h UDPC.inl UDPS.cpp UDPS.h UDPS.inl UDPS_T.cpp UDPS_T.h UDPS_T.inl: UDP-stamp
UDP-stamp: $(srcdir)/UDP.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St -Sp -Sd $(srcdir)/UDP.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -Sp -Sd $(srcdir)/UDP.idl
@touch $@
-
-noinst_HEADERS = \
- UDP.idl
-
-## Makefile.Basic_Client.am
-
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -71,6 +61,11 @@ client_SOURCES = \
UDP_Client_i.cpp \
UDP_i.cpp \
client.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.h \
+ UDPS_T.h \
+ UDPS_T.inl \
UDP_Client_i.h \
UDP_i.h
@@ -81,11 +76,36 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Basic_Server.am
-if !BUILD_ACE_FOR_TAO
+BUILT_SOURCES += \
+ UDPC.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.cpp \
+ UDPS.h \
+ UDPS.inl \
+ UDPS_T.cpp \
+ UDPS_T.h \
+ UDPS_T.inl
+
+CLEANFILES += \
+ UDP-stamp \
+ UDPC.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.cpp \
+ UDPS.h \
+ UDPS.inl \
+ UDPS_T.cpp \
+ UDPS_T.h \
+ UDPS_T.inl
+
+UDPC.cpp UDPC.h UDPC.inl UDPS.cpp UDPS.h UDPS.inl UDPS_T.cpp UDPS_T.h UDPS_T.inl: UDP-stamp
+
+UDP-stamp: $(srcdir)/UDP.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -Sp -Sd $(srcdir)/UDP.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -101,6 +121,11 @@ server_SOURCES = \
UDP_Client_i.cpp \
UDP_i.cpp \
server.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.h \
+ UDPS_T.h \
+ UDPS_T.inl \
UDP_Client_i.h \
UDP_i.h
@@ -111,8 +136,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/examples/PluggableUDP/tests/Basic/UDP_Client_i.cpp b/TAO/examples/PluggableUDP/tests/Basic/UDP_Client_i.cpp
index 882b5078c5d..1b0da8ea299 100644
--- a/TAO/examples/PluggableUDP/tests/Basic/UDP_Client_i.cpp
+++ b/TAO/examples/PluggableUDP/tests/Basic/UDP_Client_i.cpp
@@ -32,7 +32,7 @@ UDP_Client_i::svc (void)
{
ACE_CString client_name ("UDP");
- ACE_TCHAR pid[256];
+ char pid[256];
ACE_OS::sprintf (pid,
"%u",
static_cast<u_int> (ACE_OS::getpid ()));
diff --git a/TAO/examples/PluggableUDP/tests/Basic/client.cpp b/TAO/examples/PluggableUDP/tests/Basic/client.cpp
index f7db9081cbd..0cc01c831e8 100644
--- a/TAO/examples/PluggableUDP/tests/Basic/client.cpp
+++ b/TAO/examples/PluggableUDP/tests/Basic/client.cpp
@@ -25,6 +25,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
// The following include file forces DIOP to be linked into the
// executable and initialized for static builds.
@@ -39,7 +40,7 @@ unsigned int iterations = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:t:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dk:t:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -74,15 +75,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/examples/PluggableUDP/tests/Basic/server.cpp b/TAO/examples/PluggableUDP/tests/Basic/server.cpp
index ba54736c4d4..bd7f21ffee2 100644
--- a/TAO/examples/PluggableUDP/tests/Basic/server.cpp
+++ b/TAO/examples/PluggableUDP/tests/Basic/server.cpp
@@ -22,6 +22,7 @@
#include "tao/debug.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
// The following include file forces DIOP to be linked into the
// executable and initialized for static builds.
@@ -34,7 +35,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -60,12 +61,13 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -112,7 +114,7 @@ main (int argc, char *argv[])
policies[1]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
UDP_i udp_i;
@@ -150,7 +152,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/PluggableUDP/tests/Performance/Makefile.am b/TAO/examples/PluggableUDP/tests/Performance/Makefile.am
index c27ac4b9168..7ed7c655c77 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/Makefile.am
+++ b/TAO/examples/PluggableUDP/tests/Performance/Makefile.am
@@ -16,9 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
-## Makefile.Performance_IDL.am
+## Makefile.Performance_Client.am
BUILT_SOURCES = \
UDPC.cpp \
@@ -46,18 +44,10 @@ CLEANFILES = \
UDPC.cpp UDPC.h UDPC.inl UDPS.cpp UDPS.h UDPS.inl UDPS_T.cpp UDPS_T.h UDPS_T.inl: UDP-stamp
UDP-stamp: $(srcdir)/UDP.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St -Sd -Sp $(srcdir)/UDP.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -Sd -Sp $(srcdir)/UDP.idl
@touch $@
-
-noinst_HEADERS = \
- UDP.idl
-
-## Makefile.Performance_Client.am
-
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -71,6 +61,11 @@ client_SOURCES = \
UDP_PerformanceClient.cpp \
UDP_i.cpp \
client.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.h \
+ UDPS_T.h \
+ UDPS_T.inl \
UDP_PerformanceClient.h \
UDP_i.h
@@ -81,11 +76,36 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Performance_Server.am
-if !BUILD_ACE_FOR_TAO
+BUILT_SOURCES += \
+ UDPC.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.cpp \
+ UDPS.h \
+ UDPS.inl \
+ UDPS_T.cpp \
+ UDPS_T.h \
+ UDPS_T.inl
+
+CLEANFILES += \
+ UDP-stamp \
+ UDPC.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.cpp \
+ UDPS.h \
+ UDPS.inl \
+ UDPS_T.cpp \
+ UDPS_T.h \
+ UDPS_T.inl
+
+UDPC.cpp UDPC.h UDPC.inl UDPS.cpp UDPS.h UDPS.inl UDPS_T.cpp UDPS_T.h UDPS_T.inl: UDP-stamp
+
+UDP-stamp: $(srcdir)/UDP.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -Sd -Sp $(srcdir)/UDP.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -100,6 +120,11 @@ server_SOURCES = \
UDPS.cpp \
UDP_i.cpp \
server.cpp \
+ UDPC.h \
+ UDPC.inl \
+ UDPS.h \
+ UDPS_T.h \
+ UDPS_T.inl \
UDP_i.h
server_LDADD = \
@@ -109,8 +134,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/examples/PluggableUDP/tests/Performance/Performance.mpc b/TAO/examples/PluggableUDP/tests/Performance/Performance.mpc
index 1ecc26f0279..bd68605887a 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/Performance.mpc
+++ b/TAO/examples/PluggableUDP/tests/Performance/Performance.mpc
@@ -1,40 +1,22 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
+project(*server): taoexe, portableserver, strategies {
idlflags += -Sd -Sp
- IDL_Files {
- UDP.idl
- }
-
- custom_only = 1
-}
-
-project(*server): taoserver, strategies {
- exename = server
- after += *IDL
Source_Files {
UDP_i.cpp
server.cpp
- UDPS.cpp
- UDPC.cpp
- }
- IDL_Files {
}
}
-project(*client): taoserver, strategies {
- exename = client
- after += *IDL
+project(*client): taoexe, portableserver, strategies {
+ idlflags += -Sd -Sp
+
Source_Files {
client.cpp
UDP_i.cpp
UDP_PerformanceClient.cpp
- UDPS.cpp
- UDPC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp b/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp
index 77db4ccca0e..dfce99289c6 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp
+++ b/TAO/examples/PluggableUDP/tests/Performance/UDP_PerformanceClient.cpp
@@ -35,7 +35,7 @@ UDP_PerformanceClient::svc ()
{
ACE_CString client_name ("UDP");
- ACE_TCHAR pid[256];
+ char pid[256];
ACE_OS::sprintf (pid,
"%u",
static_cast<u_int> (ACE_OS::getpid ()));
diff --git a/TAO/examples/PluggableUDP/tests/Performance/client.cpp b/TAO/examples/PluggableUDP/tests/Performance/client.cpp
index 07bb98914ee..b641317ef94 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/client.cpp
+++ b/TAO/examples/PluggableUDP/tests/Performance/client.cpp
@@ -19,6 +19,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "UDPC.h"
@@ -41,7 +42,7 @@ unsigned char performance_test = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:t:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:t:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -73,15 +74,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "PerformanceClient" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "PerformanceClient" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/examples/PluggableUDP/tests/Performance/server.cpp b/TAO/examples/PluggableUDP/tests/Performance/server.cpp
index 0a003a08589..b015d29ba63 100644
--- a/TAO/examples/PluggableUDP/tests/Performance/server.cpp
+++ b/TAO/examples/PluggableUDP/tests/Performance/server.cpp
@@ -18,6 +18,7 @@
#include "ace/Get_Opt.h"
#include "ace/Thread_Manager.h"
+#include "ace/Argv_Type_Converter.h"
#include "UDP_i.h"
@@ -34,7 +35,7 @@ int orb_threads = 1; // Number of threads running inside the ORB.
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -79,12 +80,13 @@ static ACE_THR_FUNC_RETURN svc (void *arg)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "PerformanceServer" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "PerformanceServer" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -132,7 +134,7 @@ main (int argc, char *argv[])
policies[1]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
UDP_i udp_i;
@@ -169,7 +171,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/Makefile.am b/TAO/examples/PluggableUDP/tests/SimplePerformance/Makefile.am
index 557ce955c3a..398ba1b6b8c 100644
--- a/TAO/examples/PluggableUDP/tests/SimplePerformance/Makefile.am
+++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/Makefile.am
@@ -16,9 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
-## Makefile.SimplePerformance_IDL.am
+## Makefile.SimplePerformance_Client.am
BUILT_SOURCES = \
testC.cpp \
@@ -46,18 +44,10 @@ CLEANFILES = \
testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St -Sp -Sd $(srcdir)/test.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -Sp -Sd $(srcdir)/test.idl
@touch $@
-
-noinst_HEADERS = \
- test.idl
-
-## Makefile.SimplePerformance_Client.am
-
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -68,7 +58,12 @@ client_CPPFLAGS = \
client_SOURCES = \
client.cpp \
testC.cpp \
- test_i.h
+ testS.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl
client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
@@ -77,11 +72,36 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.SimplePerformance_Server.am
-if !BUILD_ACE_FOR_TAO
+BUILT_SOURCES += \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+CLEANFILES += \
+ test-stamp \
+ testC.cpp \
+ testC.h \
+ testC.inl \
+ testS.cpp \
+ testS.h \
+ testS.inl \
+ testS_T.cpp \
+ testS_T.h \
+ testS_T.inl
+
+testC.cpp testC.h testC.inl testS.cpp testS.h testS.inl testS_T.cpp testS_T.h testS_T.inl: test-stamp
+
+test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -Sp -Sd $(srcdir)/test.idl
+ @touch $@
noinst_PROGRAMS += server
@@ -96,6 +116,11 @@ server_SOURCES = \
testC.cpp \
testS.cpp \
test_i.cpp \
+ testC.h \
+ testC.inl \
+ testS.h \
+ testS_T.h \
+ testS_T.inl \
test_i.h
server_LDADD = \
@@ -105,8 +130,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc b/TAO/examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc
index ed5ce859b74..45de340b324 100644
--- a/TAO/examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc
+++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/SimplePerformance.mpc
@@ -1,41 +1,20 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
+project(*server): taoexe, portableserver, strategies {
idlflags += -Sp -Sd
- IDL_Files {
- test.idl
- }
-
- custom_only = 1
-}
-
-project(*server): taoserver, strategies {
- exename = server
- after += *IDL
-
Source_Files {
server.cpp
test_i.cpp
- testS.cpp
- testC.cpp
- }
-
- IDL_Files {
}
}
-project(*client): taoserver, strategies {
- exename = client
- after += *IDL
+project(*client): taoexe, portableserver, strategies {
+ idlflags += -Sp -Sd
Source_Files {
client.cpp
- testC.cpp
- }
-
- IDL_Files {
}
}
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp b/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp
index 8c5b4c7bd21..6161db6281d 100644
--- a/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp
+++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/client.cpp
@@ -19,13 +19,14 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ace/High_Res_Timer.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
// The following include file forces DIOP to be linked into the
// executable and initialized for static builds.
#include "tao/Strategies/advanced_resource.h"
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# undef ACE_MAIN
# define ACE_MAIN testClient
#endif
@@ -61,13 +62,13 @@ private:
//int testClient (char* orbName, char* iorFile)
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"ORB_Test_Client"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp b/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp
index acc84689614..688660a679e 100644
--- a/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp
+++ b/TAO/examples/PluggableUDP/tests/SimplePerformance/server.cpp
@@ -18,6 +18,7 @@
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
@@ -25,21 +26,20 @@
// executable and initialized for static builds.
#include "tao/Strategies/advanced_resource.h"
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# undef ACE_MAIN
# define ACE_MAIN testServer
#endif
-
const char *ior_output_file = "test.ior";
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"ORB_Test_Server" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -80,7 +80,7 @@ int main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/examples/Quoter/Factory_Finder.cpp b/TAO/examples/Quoter/Factory_Finder.cpp
index b72bed11b55..de53842ce82 100644
--- a/TAO/examples/Quoter/Factory_Finder.cpp
+++ b/TAO/examples/Quoter/Factory_Finder.cpp
@@ -15,6 +15,7 @@
// ============================================================================
#include "Factory_Finder.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Quoter,
@@ -189,7 +190,7 @@ Quoter_Factory_Finder_Server::run (ACE_ENV_SINGLE_ARG_DECL)
u_int
Quoter_Factory_Finder_Server::parse_args (void)
{
- ACE_Get_Opt get_opt (this->argc_, this->argv_, "?d:");
+ ACE_Get_Arg_Opt<char> get_opt (this->argc_, this->argv_, "?d:");
int opt;
int exit_code = 0;
@@ -220,13 +221,14 @@ Quoter_Factory_Finder_Server::parse_args (void)
// function main
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Quoter_Factory_Finder_Server quoter_Factory_Finder_Server;
ACE_TRY_NEW_ENV
{
- int result = quoter_Factory_Finder_Server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int result = quoter_Factory_Finder_Server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result == -1)
diff --git a/TAO/examples/Quoter/Generic_Factory.cpp b/TAO/examples/Quoter/Generic_Factory.cpp
index 12516fcb83a..0c68c46d822 100644
--- a/TAO/examples/Quoter/Generic_Factory.cpp
+++ b/TAO/examples/Quoter/Generic_Factory.cpp
@@ -16,6 +16,7 @@
#include "Generic_Factory.h"
#include "orbsvcs/LifeCycleServiceC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Quoter,
Generic_Factory,
@@ -243,7 +244,7 @@ Quoter_Generic_Factory_Server::run (ACE_ENV_SINGLE_ARG_DECL)
u_int
Quoter_Generic_Factory_Server::parse_args (void)
{
- ACE_Get_Opt get_opt (this->argc_, this->argv_, "l?d:");
+ ACE_Get_Arg_Opt<char> get_opt (this->argc_, this->argv_, "l?d:");
int opt;
int exit_code = 0;
@@ -278,14 +279,15 @@ Quoter_Generic_Factory_Server::parse_args (void)
// function main
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Quoter_Generic_Factory_Server quoter_Generic_Factory_Server;
ACE_TRY_NEW_ENV
{
- if (quoter_Generic_Factory_Server.init (argc,
- argv
+ if (quoter_Generic_Factory_Server.init (convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/Quoter/Makefile.am b/TAO/examples/Quoter/Makefile.am
index 38f86a3ae0c..36ca9402333 100644
--- a/TAO/examples/Quoter/Makefile.am
+++ b/TAO/examples/Quoter/Makefile.am
@@ -16,11 +16,15 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Quoter_IDL.am
+## Makefile.Quoter_Client.am
+
+if !BUILD_MINIMUM_CORBA
-BUILT_SOURCES = \
+BUILT_SOURCES += \
QuoterC.cpp \
QuoterC.h \
QuoterC.inl \
@@ -31,7 +35,7 @@ BUILT_SOURCES = \
QuoterS_T.h \
QuoterS_T.inl
-CLEANFILES = \
+CLEANFILES += \
Quoter-stamp \
QuoterC.cpp \
QuoterC.h \
@@ -46,17 +50,9 @@ CLEANFILES = \
QuoterC.cpp QuoterC.h QuoterC.inl QuoterS.cpp QuoterS.h QuoterS.inl QuoterS_T.cpp QuoterS_T.h QuoterS_T.inl: Quoter-stamp
Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Quoter.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Quoter.idl
@touch $@
-
-noinst_HEADERS = \
- Quoter.idl
-
-## Makefile.Quoter_Client.am
-
-if !BUILD_MINIMUM_CORBA
-
noinst_PROGRAMS += client
client_CPPFLAGS = \
@@ -69,7 +65,13 @@ client_CPPFLAGS = \
client_SOURCES = \
QuoterC.cpp \
+ QuoterS.cpp \
client.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.h \
+ QuoterS_T.h \
+ QuoterS_T.inl \
client.h
client_LDADD = \
@@ -86,6 +88,35 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ QuoterC.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.cpp \
+ QuoterS.h \
+ QuoterS.inl \
+ QuoterS_T.cpp \
+ QuoterS_T.h \
+ QuoterS_T.inl
+
+CLEANFILES += \
+ Quoter-stamp \
+ QuoterC.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.cpp \
+ QuoterS.h \
+ QuoterS.inl \
+ QuoterS_T.cpp \
+ QuoterS_T.h \
+ QuoterS_T.inl
+
+QuoterC.cpp QuoterC.h QuoterC.inl QuoterS.cpp QuoterS.h QuoterS.inl QuoterS_T.cpp QuoterS_T.h QuoterS_T.inl: Quoter-stamp
+
+Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Quoter.idl
+ @touch $@
+
noinst_PROGRAMS += Factory_Finder
Factory_Finder_CPPFLAGS = \
@@ -102,7 +133,12 @@ Factory_Finder_SOURCES = \
QuoterC.cpp \
QuoterS.cpp \
Factory_Finder.h \
- Factory_Finder_i.h
+ Factory_Finder_i.h \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.h \
+ QuoterS_T.h \
+ QuoterS_T.inl
Factory_Finder_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
@@ -121,6 +157,35 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ QuoterC.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.cpp \
+ QuoterS.h \
+ QuoterS.inl \
+ QuoterS_T.cpp \
+ QuoterS_T.h \
+ QuoterS_T.inl
+
+CLEANFILES += \
+ Quoter-stamp \
+ QuoterC.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.cpp \
+ QuoterS.h \
+ QuoterS.inl \
+ QuoterS_T.cpp \
+ QuoterS_T.h \
+ QuoterS_T.inl
+
+QuoterC.cpp QuoterC.h QuoterC.inl QuoterS.cpp QuoterS.h QuoterS.inl QuoterS_T.cpp QuoterS_T.h QuoterS_T.inl: Quoter-stamp
+
+Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Quoter.idl
+ @touch $@
+
noinst_PROGRAMS += Generic_Factory
Generic_Factory_CPPFLAGS = \
@@ -137,7 +202,12 @@ Generic_Factory_SOURCES = \
QuoterC.cpp \
QuoterS.cpp \
Generic_Factory.h \
- Generic_Factory_i.h
+ Generic_Factory_i.h \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.h \
+ QuoterS_T.h \
+ QuoterS_T.inl
Generic_Factory_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
@@ -156,6 +226,35 @@ endif !BUILD_MINIMUM_CORBA
if !BUILD_MINIMUM_CORBA
+BUILT_SOURCES += \
+ QuoterC.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.cpp \
+ QuoterS.h \
+ QuoterS.inl \
+ QuoterS_T.cpp \
+ QuoterS_T.h \
+ QuoterS_T.inl
+
+CLEANFILES += \
+ Quoter-stamp \
+ QuoterC.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.cpp \
+ QuoterS.h \
+ QuoterS.inl \
+ QuoterS_T.cpp \
+ QuoterS_T.h \
+ QuoterS_T.inl
+
+QuoterC.cpp QuoterC.h QuoterC.inl QuoterS.cpp QuoterS.h QuoterS.inl QuoterS_T.cpp QuoterS_T.h QuoterS_T.inl: Quoter-stamp
+
+Quoter-stamp: $(srcdir)/Quoter.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Quoter.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -171,6 +270,11 @@ server_SOURCES = \
QuoterS.cpp \
Quoter_i.cpp \
server.cpp \
+ QuoterC.h \
+ QuoterC.inl \
+ QuoterS.h \
+ QuoterS_T.h \
+ QuoterS_T.inl \
Quoter_i.h \
server.h
diff --git a/TAO/examples/Quoter/Quoter.mpc b/TAO/examples/Quoter/Quoter.mpc
index a5ed3d19def..e4ac4c10b0d 100644
--- a/TAO/examples/Quoter/Quoter.mpc
+++ b/TAO/examples/Quoter/Quoter.mpc
@@ -1,55 +1,30 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Quoter.idl
- }
- custom_only = 1
-}
-
project(*server): namingexe, lifecycle, minimum_corba, utils {
- after += *IDL
Source_Files {
server.cpp
Quoter_i.cpp
- QuoterS.cpp
- QuoterC.cpp
- }
- IDL_Files {
}
}
project(*client): namingexe, lifecycle, minimum_corba {
- after += *IDL
Source_Files {
client.cpp
- QuoterC.cpp
- }
- IDL_Files {
}
}
project(*Factory Finder): namingexe, lifecycle, minimum_corba, utils {
- after += *IDL
Source_Files {
Factory_Finder.cpp
Factory_Finder_i.cpp
- QuoterS.cpp
- QuoterC.cpp
- }
- IDL_Files {
}
}
project(*Generic Factory): namingexe, lifecycle, minimum_corba, utils {
- after += *IDL
Source_Files {
Generic_Factory.cpp
Generic_Factory_i.cpp
- QuoterS.cpp
- QuoterC.cpp
- }
- IDL_Files {
}
}
+
diff --git a/TAO/examples/Quoter/client.cpp b/TAO/examples/Quoter/client.cpp
index 7dec1d90a22..1d3482cacd6 100644
--- a/TAO/examples/Quoter/client.cpp
+++ b/TAO/examples/Quoter/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosNamingC.h"
@@ -42,7 +43,7 @@ Quoter_Client::Quoter_Client (void)
int
Quoter_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "n:d:lx");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "n:d:lx");
int opt;
int exit_code = 0;
@@ -372,21 +373,22 @@ Quoter_Client::init (int argc, char **argv)
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_Thread_Manager thr_mgr;
int i;
int threads = 1;
for (i = 0; i < argc; i++)
- if (ACE_OS::strcmp (argv[i], "-n") == 0)
- threads = ACE_OS::atoi(argv[i + 1]);
+ if (ACE_OS::strcmp (convert.get_ASCII_argv()[i], "-n") == 0)
+ threads = ACE_OS::atoi(convert.get_ASCII_argv()[i + 1]);
Quoter_Task **clients = new Quoter_Task*[threads];
for (i = 0; i < threads; i++)
- clients[i] = new Quoter_Task (argc, argv);
+ clients[i] = new Quoter_Task (convert.get_argc(), convert.get_ASCII_argv());
for (i = 0; i < threads; i++)
diff --git a/TAO/examples/Quoter/server.cpp b/TAO/examples/Quoter/server.cpp
index d2dfcd160bd..582af47ef1c 100644
--- a/TAO/examples/Quoter/server.cpp
+++ b/TAO/examples/Quoter/server.cpp
@@ -15,6 +15,7 @@
#include "server.h"
#include "tao/ORB_Core.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Quoter, server, "$Id$")
@@ -28,7 +29,7 @@ Quoter_Server::Quoter_Server (void)
int
Quoter_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "d:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "d:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -259,13 +260,14 @@ Quoter_Server::~Quoter_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Quoter_Server quoter_server;
ACE_TRY_NEW_ENV
{
- int result = quoter_server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int result = quoter_server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result == -1)
diff --git a/TAO/examples/RTCORBA/Activity/Activity.cpp b/TAO/examples/RTCORBA/Activity/Activity.cpp
index 4207926db61..8720611ff4e 100644
--- a/TAO/examples/RTCORBA/Activity/Activity.cpp
+++ b/TAO/examples/RTCORBA/Activity/Activity.cpp
@@ -65,10 +65,9 @@ Activity::init (int& argc, char *argv []
ACE_ENV_ARG_DECL)
{
// Copy command line parameter.
- ACE_Argv_Type_Converter command_line(argc, argv);
+ ACE_Argv_Type_Converter convert(argc, argv);
- this->orb_ = CORBA::ORB_init (command_line.get_argc(),
- command_line.get_ASCII_argv(),
+ this->orb_ = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -402,13 +401,13 @@ Activity::run (int argc, char *argv[] ACE_ENV_ARG_DECL)
void
Activity::create_started_flag_file (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Started_Flag"))))
+ if ((current_arg = arg_shifter.get_the_parameter ("-Started_Flag")))
{
FILE *file = ACE_OS::fopen (current_arg, ACE_TEXT("w"));
@@ -431,8 +430,9 @@ Activity::create_started_flag_file (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_Builder);
ACE_Sig_Action sa ((ACE_SignalHandler) handler, SIGHUP);
@@ -442,7 +442,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
- ACTIVITY::instance()->run (argc, argv ACE_ENV_ARG_PARAMETER);
+ ACTIVITY::instance()->run (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/examples/RTCORBA/Activity/Activity.h b/TAO/examples/RTCORBA/Activity/Activity.h
index 346b2c6a414..ea5cef35093 100644
--- a/TAO/examples/RTCORBA/Activity/Activity.h
+++ b/TAO/examples/RTCORBA/Activity/Activity.h
@@ -24,10 +24,7 @@
#include "activity_export.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
class Job_i;
class Periodic_Task;
class Builder;
diff --git a/TAO/examples/RTCORBA/Activity/Activity.mpc b/TAO/examples/RTCORBA/Activity/Activity.mpc
index 0d7054ff5b0..ef8cc8a0296 100644
--- a/TAO/examples/RTCORBA/Activity/Activity.mpc
+++ b/TAO/examples/RTCORBA/Activity/Activity.mpc
@@ -5,7 +5,7 @@ project : orbsvcslib, namingexe, rt_server {
exename = activity
// We use macros instead of dynamicflags so that
// the symbols will be exported from an exe.
- macros += ACTIVITY_BUILD_DLL
+ macros = ACTIVITY_BUILD_DLL
Source_Files {
Activity.cpp
Builder.cpp
diff --git a/TAO/examples/RTCORBA/Activity/Builder.cpp b/TAO/examples/RTCORBA/Activity/Builder.cpp
index 7ef5a89da40..37a99e01305 100644
--- a/TAO/examples/RTCORBA/Activity/Builder.cpp
+++ b/TAO/examples/RTCORBA/Activity/Builder.cpp
@@ -29,9 +29,9 @@ Builder::~Builder(void)
int
Builder::init (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
int task_count = 0;
int poa_count = 0;
diff --git a/TAO/examples/RTCORBA/Activity/Builder.h b/TAO/examples/RTCORBA/Activity/Builder.h
index 20c001a4989..8e5d263de0b 100644
--- a/TAO/examples/RTCORBA/Activity/Builder.h
+++ b/TAO/examples/RTCORBA/Activity/Builder.h
@@ -16,19 +16,16 @@
#include "orbsvcs/CosNamingC.h"
#include "tao/RTPortableServer/RTPortableServer.h"
+class Periodic_Task;
+class Job_i;
+class POA_Holder;
+
#include "ace/Service_Config.h"
#include "ace/Service_Object.h"
#include "activity_export.h"
-
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
class Activity;
-class Periodic_Task;
-class Job_i;
-class POA_Holder;
typedef POA_Holder** POA_LIST;
typedef Periodic_Task** TASK_LIST;
diff --git a/TAO/examples/RTCORBA/Activity/Job_i.cpp b/TAO/examples/RTCORBA/Activity/Job_i.cpp
index 69320dc5323..f20cad63015 100644
--- a/TAO/examples/RTCORBA/Activity/Job_i.cpp
+++ b/TAO/examples/RTCORBA/Activity/Job_i.cpp
@@ -23,7 +23,7 @@ Job_i::poa (void)
}
int
-Job_i::init (ACE_Arg_Shifter& arg_shifter)
+Job_i::init (ACE_TArg_Shifter<char>& arg_shifter)
{
job_name_ = arg_shifter.get_current (); // Read the name of the Job
arg_shifter.consume_arg ();
diff --git a/TAO/examples/RTCORBA/Activity/Job_i.h b/TAO/examples/RTCORBA/Activity/Job_i.h
index 8ca42bb86b5..c4df011e570 100644
--- a/TAO/examples/RTCORBA/Activity/Job_i.h
+++ b/TAO/examples/RTCORBA/Activity/Job_i.h
@@ -16,10 +16,7 @@
#include "JobS.h"
#include "activity_export.h"
#include "ace/SString.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
/**
* @class Job_i
@@ -34,7 +31,7 @@ class activity_Export Job_i : public POA_Job
Job_i (void);
/// Init the state of this object.
- int init (ACE_Arg_Shifter& arg_shifter);
+ int init (ACE_TArg_Shifter<char>& arg_shifter);
/// = Accessors
const ACE_CString& name (void);
diff --git a/TAO/examples/RTCORBA/Activity/POA_Holder.cpp b/TAO/examples/RTCORBA/Activity/POA_Holder.cpp
index 07e3f1e97b8..5c9c4755533 100644
--- a/TAO/examples/RTCORBA/Activity/POA_Holder.cpp
+++ b/TAO/examples/RTCORBA/Activity/POA_Holder.cpp
@@ -11,9 +11,9 @@ POA_Holder::POA_Holder (void)
}
int
-POA_Holder::init (ACE_Arg_Shifter& arg_shifter)
+POA_Holder::init (ACE_TArg_Shifter<char>& arg_shifter)
{
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
POA_name_ = arg_shifter.get_current (); // Read the name of the POA
arg_shifter.consume_arg ();
diff --git a/TAO/examples/RTCORBA/Activity/POA_Holder.h b/TAO/examples/RTCORBA/Activity/POA_Holder.h
index 3c056a88fba..8591c1df86a 100644
--- a/TAO/examples/RTCORBA/Activity/POA_Holder.h
+++ b/TAO/examples/RTCORBA/Activity/POA_Holder.h
@@ -17,10 +17,7 @@
#include "tao/PortableServer/PortableServer.h"
#include "activity_export.h"
#include "ace/SString.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
/**
* @class POA_Holder
@@ -35,7 +32,7 @@ class activity_Export POA_Holder
POA_Holder (void);
/// The arg_shifter options are read in the following manner: -POA <name> -PriorityModel <CLIENT|SERVER> <priority> -Lanes <count> (-Lane <priority> ,<static_threads> <dynamic_threads>)* -Bands <count> (-Band <low> <high>)*
- int init (ACE_Arg_Shifter& arg_shifter);
+ int init (ACE_TArg_Shifter<char>& arg_shifter);
/// Activate the new POA using the parameters initialized before.
void activate (RTCORBA::RTORB_ptr rt_orb, PortableServer::POA_ptr parent_poa
diff --git a/TAO/examples/RTCORBA/Activity/Periodic_Task.cpp b/TAO/examples/RTCORBA/Activity/Periodic_Task.cpp
index 03a87bb3a6c..870fac04ecc 100644
--- a/TAO/examples/RTCORBA/Activity/Periodic_Task.cpp
+++ b/TAO/examples/RTCORBA/Activity/Periodic_Task.cpp
@@ -26,9 +26,9 @@ Periodic_Task::~Periodic_Task ()
}
int
-Periodic_Task::init_task (ACE_Arg_Shifter& arg_shifter)
+Periodic_Task::init_task (ACE_TArg_Shifter<char>& arg_shifter)
{
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -101,7 +101,7 @@ Periodic_Task::job (Job_ptr job)
}
void
-Periodic_Task::dump_stats (ACE_TCHAR* msg)
+Periodic_Task::dump_stats (char* msg)
{
char buf[BUFSIZ];
ACE_OS::sprintf (buf, "%s%s", name_.c_str (),".dat");
diff --git a/TAO/examples/RTCORBA/Activity/Periodic_Task.h b/TAO/examples/RTCORBA/Activity/Periodic_Task.h
index ca4c822eeff..a82180a1adf 100644
--- a/TAO/examples/RTCORBA/Activity/Periodic_Task.h
+++ b/TAO/examples/RTCORBA/Activity/Periodic_Task.h
@@ -19,12 +19,9 @@
#include "ace/SString.h"
#include "JobC.h"
#include "activity_export.h"
+#include "ace/Arg_Shifter.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
class Task_Stats;
/**
@@ -41,13 +38,13 @@ class activity_Export Periodic_Task : public ACE_Task <ACE_SYNCH>
~Periodic_Task ();
/// Init the state of this object.
- int init_task (ACE_Arg_Shifter& arg_shifter);
+ int init_task (ACE_TArg_Shifter<char>& arg_shifter);
/// Activate this task, synch on the given barrier.
virtual int activate_task (ACE_Barrier* barrier, RTCORBA::PriorityMapping *priority_mapping) = 0;
/// Dump the stats collected.
- void dump_stats (ACE_TCHAR* msg);
+ void dump_stats (char* msg);
/// = Job get/set
/// Returns the name of the Job exec'ed by this Task.
diff --git a/TAO/examples/RTCORBA/Activity/Task_Stats.cpp b/TAO/examples/RTCORBA/Activity/Task_Stats.cpp
index bcd6ae53d88..1ef20b42e0b 100644
--- a/TAO/examples/RTCORBA/Activity/Task_Stats.cpp
+++ b/TAO/examples/RTCORBA/Activity/Task_Stats.cpp
@@ -55,10 +55,10 @@ Task_Stats::end_time (ACE_hrtime_t time)
}
void
-Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
+Task_Stats::dump_samples (const char *file_name, const char *msg,
ACE_UINT32 scale_factor)
{
- FILE* output_file = ACE_OS::fopen (file_name, "w");
+ FILE* output_file = ACE_OS::fopen (file_name, ACE_TEXT("w"));
// first dump what the caller has to say.
ACE_OS::fprintf (output_file, "%s\n",msg);
@@ -67,7 +67,7 @@ Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
// calc throughput.
- ACE_TCHAR out_msg[BUFSIZ];
+ char out_msg[BUFSIZ];
ACE_hrtime_t elapsed_microseconds = (end_time_ - base_time_) / scale_factor;
double elapsed_seconds =
@@ -99,12 +99,12 @@ Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
}
void
-Task_Stats::dump_latency_stats (ACE_TCHAR *out_msg, ACE_UINT32 sf)
+Task_Stats::dump_latency_stats (char *out_msg, ACE_UINT32 sf)
{
if (this->samples_count_ == 0u)
{
ACE_OS::sprintf (out_msg,
- ACE_TEXT ("# no data collected\n"));
+ "# no data collected\n");
return;
}
@@ -141,7 +141,7 @@ Task_Stats::dump_latency_stats (ACE_TCHAR *out_msg, ACE_UINT32 sf)
ACE_UINT32 tmax = ACE_CU64_TO_CU32 (tmax_);
ACE_OS::sprintf(out_msg,
- ACE_TEXT ("#latency : %u[%d]/%.2f/%u[%d]/%.2f (min/avg/max/var^2)\n #first invocation time = %u, last invocation time = %u\n"),
+ "#latency : %u[%d]/%.2f/%u[%d]/%.2f (min/avg/max/var^2)\n #first invocation time = %u, last invocation time = %u\n",
l_min, this->exec_time_min_at_,
l_avg,
l_max, this->exec_time_max_at_,
diff --git a/TAO/examples/RTCORBA/Activity/Task_Stats.h b/TAO/examples/RTCORBA/Activity/Task_Stats.h
index 8252c071c89..dcfb00a145b 100644
--- a/TAO/examples/RTCORBA/Activity/Task_Stats.h
+++ b/TAO/examples/RTCORBA/Activity/Task_Stats.h
@@ -61,10 +61,10 @@ class activity_Export Task_Stats
/// Record a sample
int sample (ACE_UINT64 inv_start_time, ACE_UINT64 inv_end_time);
- void dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
+ void dump_samples (const char *file_name, const char *msg,
ACE_UINT32 scale_factor);
protected:
- void dump_latency_stats (ACE_TCHAR *out_msg, ACE_UINT32 sf);
+ void dump_latency_stats (char *out_msg, ACE_UINT32 sf);
/// Base and end times
ACE_hrtime_t base_time_;
diff --git a/TAO/examples/RTCORBA/Activity/Task_Stats.inl b/TAO/examples/RTCORBA/Activity/Task_Stats.inl
index 78ce13d05bc..0e9aa2b2bb7 100644
--- a/TAO/examples/RTCORBA/Activity/Task_Stats.inl
+++ b/TAO/examples/RTCORBA/Activity/Task_Stats.inl
@@ -1,7 +1,5 @@
//$Id$
-#include "ace/Log_Msg.h"
-
ACE_INLINE int
Task_Stats::sample (ACE_UINT64 inv_start_time, ACE_UINT64 inv_end_time)
{
diff --git a/TAO/examples/RTScheduling/DT_Creator.cpp b/TAO/examples/RTScheduling/DT_Creator.cpp
index 4a7db7dd4ab..94170a05b78 100644
--- a/TAO/examples/RTScheduling/DT_Creator.cpp
+++ b/TAO/examples/RTScheduling/DT_Creator.cpp
@@ -11,7 +11,7 @@
ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> guid_counter;
int
-DT_Creator::dt_task_init (ACE_Arg_Shifter& arg_shifter)
+DT_Creator::dt_task_init (ACE_TArg_Shifter<char>& arg_shifter)
{
static int dt_index = 0;
int start_time = 0;
@@ -20,7 +20,7 @@ DT_Creator::dt_task_init (ACE_Arg_Shifter& arg_shifter)
int importance = 0;
char *job_name = 0;
int dist = 0;
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
if (arg_shifter.cur_arg_strncasecmp ("-Importance") == 0)
{
arg_shifter.consume_arg ();
@@ -70,9 +70,9 @@ DT_Creator::init (int argc, char *argv [])
active_job_count_ = 0;
ACE_NEW_RETURN (log, char*[BUFSIZ * 100],-1);
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
dt_count_ = 0;
poa_count_ = 0;
@@ -587,7 +587,7 @@ DT_Creator::check_ifexit (void)
shutdown = 1;
- FILE* log_file = ACE_OS::fopen (log_file_name_, "w");
+ FILE* log_file = ACE_OS::fopen (log_file_name_, ACE_TEXT("w"));
if (log_file != NULL)
{
diff --git a/TAO/examples/RTScheduling/DT_Creator.h b/TAO/examples/RTScheduling/DT_Creator.h
index b461ab298b2..da03d5b5f3f 100644
--- a/TAO/examples/RTScheduling/DT_Creator.h
+++ b/TAO/examples/RTScheduling/DT_Creator.h
@@ -28,7 +28,7 @@ class DT_Creator : public ACE_Service_Object
int init (int argc, char *argv []);
- int dt_task_init (ACE_Arg_Shifter& arg_shifter);
+ int dt_task_init (ACE_TArg_Shifter<char>& arg_shifter);
virtual void create_distributable_threads (RTScheduling::Current_ptr current
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
diff --git a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp
index 5019ee6ae5d..9b874cefd04 100644
--- a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp
+++ b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/FP_Scheduler.cpp
@@ -213,7 +213,7 @@ Fixed_Priority_Scheduler::receive_request (PortableInterceptor::ServerRequestInf
char msg [BUFSIZ];
ACE_OS::sprintf (msg,
"The Guid is "
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
"\n", gu_id);
DT_TEST::instance ()->dt_creator ()->log_msg (msg);
diff --git a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/Fixed_Priority_Scheduler.mpc b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/Fixed_Priority_Scheduler.mpc
index b1d1bb1b2eb..b29a76501c9 100644
--- a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/Fixed_Priority_Scheduler.mpc
+++ b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/Fixed_Priority_Scheduler.mpc
@@ -18,8 +18,6 @@ project(*Starter): namingexe, rtscheduling_server {
}
project(*test) : namingexe, rtscheduling_server {
- after += (*Starter)
-
idlflags += -o ..
IDL_Files {
diff --git a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/test.cpp b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/test.cpp
index 2d328877266..e88c41a27eb 100644
--- a/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/test.cpp
+++ b/TAO/examples/RTScheduling/Fixed_Priority_Scheduler/test.cpp
@@ -8,6 +8,7 @@
#include "../Task_Stats.h"
#include "../Synch_i.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
DT_Test::DT_Test (void)
{
@@ -259,13 +260,14 @@ DT_Test::orb (void)
}
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_FP_DT_Creator);
- DT_TEST::instance ()->run (argc, argv
+ DT_TEST::instance ()->run (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/RTScheduling/Job_i.cpp b/TAO/examples/RTScheduling/Job_i.cpp
index 6179d1dac37..3fa80cbb8ae 100644
--- a/TAO/examples/RTScheduling/Job_i.cpp
+++ b/TAO/examples/RTScheduling/Job_i.cpp
@@ -37,7 +37,7 @@ Job_i::poa (void)
}
int
-Job_i::init (ACE_Arg_Shifter& arg_shifter)
+Job_i::init (ACE_TArg_Shifter<char>& arg_shifter)
{
job_name_ = arg_shifter.get_current (); // Read the name of the Job
arg_shifter.consume_arg ();
@@ -66,6 +66,8 @@ Job_i::work (CORBA::ULong work,
dt_creator_->current ()->id (ACE_ENV_SINGLE_ARG_PARAMETER)->get_buffer (),
sizeof (dt_creator_->current ()->id (ACE_ENV_SINGLE_ARG_PARAMETER)->length ()));
+
+
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"%t Guid is %d, Importance is %d\n",
@@ -75,7 +77,7 @@ Job_i::work (CORBA::ULong work,
char msg [BUFSIZ];
ACE_OS::sprintf (msg,
"Guid is "
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
"\n", guid_);
dt_creator_->log_msg (msg);
@@ -137,7 +139,7 @@ Job_i::dump_stats (void)
char fname [BUFSIZ];
ACE_OS::sprintf (fname,
"Job_"
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
".dat",
guid_);
@@ -150,7 +152,7 @@ Job_i::dump_stats (void)
char msg [BUFSIZ];
ACE_OS::sprintf (msg,
"#Schedule Output for DT "
- ACE_SIZE_T_FORMAT_SPECIFIER,
+ ACE_SIZE_T_FORMAT_SPECIFIER_A,
guid_);
task_stats_->dump_samples (fname,
diff --git a/TAO/examples/RTScheduling/Job_i.h b/TAO/examples/RTScheduling/Job_i.h
index 3aaf9bf3e1b..149120fa698 100644
--- a/TAO/examples/RTScheduling/Job_i.h
+++ b/TAO/examples/RTScheduling/Job_i.h
@@ -16,10 +16,7 @@
#include "JobS.h"
#include "Task_Stats.h"
#include "ace/SString.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
class DT_Creator;
@@ -38,7 +35,7 @@ class Job_i : public POA_Job
~Job_i (void);
/// Init the state of this object.
- int init (ACE_Arg_Shifter& arg_shifter);
+ int init (ACE_TArg_Shifter<char>& arg_shifter);
/// = Accessors
const ACE_CString& name (void);
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp
index 6c02c305435..bab97a4c297 100644
--- a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp
+++ b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_DT_Creator.cpp
@@ -42,11 +42,10 @@ MIF_DT_Creator::yield (int suspend_time,
{
ACE_TRY_NEW_ENV
{
- ACE_Time_Value const sus_time_value (suspend_time);
ACE_Time_Value now (ACE_OS::gettimeofday ());
- while (((now - *base_time_) < sus_time_value) || (suspend_time == 1))
+ while (((now - *base_time_) < suspend_time) || (suspend_time == 1))
{
-
+
ACE_OS::sleep (1);
CORBA::Policy_var sched_param;
sched_param = CORBA::Policy::_duplicate (this->sched_param (100));
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.mpc b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.mpc
index fc78bd61279..1f77c6cc45e 100644
--- a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.mpc
+++ b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Scheduler.mpc
@@ -19,7 +19,6 @@ project(*Starter): namingexe, rtscheduling_server {
}
project(*test) : namingexe, rtscheduling_server {
- after += (*Starter)
idlflags += -o ..
IDL_Files {
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp
index bfb170e19b2..7aca93a7626 100644
--- a/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp
+++ b/TAO/examples/RTScheduling/MIF_Scheduler/MIF_Task.cpp
@@ -92,7 +92,7 @@ MIF_Task::perform_task (void)
char msg [BUFSIZ];
ACE_OS::sprintf (msg,
"MIF_Task::perform_task "
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
"\n",
count_);
dt_creator_->log_msg (msg);
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.client b/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.client
index 90735c209d1..8ecfba1b6ac 100644
--- a/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.client
+++ b/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.client
@@ -2,7 +2,7 @@
# Note! priority values are for Linux
-static RT_ORB_Loader "-ORBSchedPolicy SCHED_FIFO -ORBScopePolicy PROCESS -ORBPriorityMapping continuous"
+static RT_ORB_Loader "-ORBSchedPolicy SCHED_FIFO -ORBScopePolicy PROCESS -ORBPriorityMapping direct"
static RTScheduler_Loader ""
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.server b/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.server
index 97bcc0114a0..0c5429ea100 100644
--- a/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.server
+++ b/TAO/examples/RTScheduling/MIF_Scheduler/svc.conf.server
@@ -2,7 +2,7 @@
# Note! priority values are for Linux
-static RT_ORB_Loader "-ORBSchedPolicy SCHED_OTHER -ORBScopePolicy PROCESS -ORBPriorityMapping continuous"
+static RT_ORB_Loader "-ORBSchedPolicy SCHED_OTHER -ORBScopePolicy PROCESS -ORBPriorityMapping direct"
#static MIF_DT_Creator "-DT_Count 4 -DT_Task -Importance 4 -Start_Time 0 -Load 1000 -DT_Task -Importance 5 -Start_Time 20 -Load 100 -DT_Task -Importance 8 -Start_Time 60 -Load 1000 -DT_Task -Importance 10 -Start_Time 100 -Load 100"
diff --git a/TAO/examples/RTScheduling/MIF_Scheduler/test.cpp b/TAO/examples/RTScheduling/MIF_Scheduler/test.cpp
index 8ef6d268b8d..ebf9c28cd9d 100644
--- a/TAO/examples/RTScheduling/MIF_Scheduler/test.cpp
+++ b/TAO/examples/RTScheduling/MIF_Scheduler/test.cpp
@@ -8,6 +8,7 @@
#include "../Thread_Task.h"
#include "../Task_Stats.h"
#include "../Synch_i.h"
+#include "ace/Argv_Type_Converter.h"
DT_Test::DT_Test (void)
{
@@ -155,15 +156,16 @@ DT_Test::current (void)
}
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_MIF_DT_Creator);
ACE_DEBUG ((LM_DEBUG,
"%t\n"));
- DT_TEST::instance ()->run (argc, argv
+ DT_TEST::instance ()->run (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/RTScheduling/POA_Holder.cpp b/TAO/examples/RTScheduling/POA_Holder.cpp
index 3013a8769f7..61a51a7ff8c 100644
--- a/TAO/examples/RTScheduling/POA_Holder.cpp
+++ b/TAO/examples/RTScheduling/POA_Holder.cpp
@@ -12,12 +12,12 @@ POA_Holder::POA_Holder (void)
}
int
-POA_Holder::init (ACE_Arg_Shifter& arg_shifter)
+POA_Holder::init (ACE_TArg_Shifter<char>& arg_shifter)
{
ACE_DEBUG ((LM_DEBUG,
"Init POA\n"));
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
POA_name_ = arg_shifter.get_current (); // Read the name of the POA
arg_shifter.consume_arg ();
diff --git a/TAO/examples/RTScheduling/POA_Holder.h b/TAO/examples/RTScheduling/POA_Holder.h
index 28adbd31a18..8319c86ef1a 100644
--- a/TAO/examples/RTScheduling/POA_Holder.h
+++ b/TAO/examples/RTScheduling/POA_Holder.h
@@ -19,10 +19,7 @@
#include "tao/PortableServer/PortableServer.h"
//#include "activity_export.h"
#include "ace/SString.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
/**
* @class POA_Holder
@@ -38,7 +35,7 @@ public:
/// The arg_shifter options are read in the following manner:
///-POA <name> -PriorityModel <CLIENT|SERVER> <priority> -Lanes <count> (-Lane <priority> ,<static_threads> <dynamic_threads>)* -Bands <count> (-Band <low> <high>)*
- int init (ACE_Arg_Shifter& arg_shifter);
+ int init (ACE_TArg_Shifter<char>& arg_shifter);
/// Activate the new POA using the parameters initialized before.
void activate (RTCORBA::RTORB_ptr rt_orb, PortableServer::POA_ptr parent_poa
diff --git a/TAO/examples/RTScheduling/Starter.cpp b/TAO/examples/RTScheduling/Starter.cpp
index 3e0b46bca7d..8abff46a9f0 100644
--- a/TAO/examples/RTScheduling/Starter.cpp
+++ b/TAO/examples/RTScheduling/Starter.cpp
@@ -2,6 +2,7 @@
#include "Starter.h"
#include "ace/OS_NS_sys_time.h"
+#include "ace/Argv_Type_Converter.h"
Starter::Starter (CORBA::ORB_ptr orb)
@@ -132,12 +133,13 @@ Starter::add_to_synchs (CosNaming::BindingList &binding_list
int
-main (int argc, char** argv)
+ACE_TMAIN (int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/RTScheduling/Synch_i.cpp b/TAO/examples/RTScheduling/Synch_i.cpp
index 339c225e7bb..a9b20909662 100644
--- a/TAO/examples/RTScheduling/Synch_i.cpp
+++ b/TAO/examples/RTScheduling/Synch_i.cpp
@@ -15,7 +15,7 @@ Synch_i::go (CORBA::Long base_time
ACE_DEBUG ((LM_DEBUG,
"GO\n"));
this->synched_ = 1;
- this->base_time_.set (static_cast<time_t>(base_time), 0);
+ this->base_time_.set (base_time, 0);
}
int
diff --git a/TAO/examples/RTScheduling/Task_Stats.cpp b/TAO/examples/RTScheduling/Task_Stats.cpp
index 77d364d710d..c3078316775 100644
--- a/TAO/examples/RTScheduling/Task_Stats.cpp
+++ b/TAO/examples/RTScheduling/Task_Stats.cpp
@@ -57,11 +57,11 @@ Task_Stats::end_time (ACE_hrtime_t time)
}
void
-Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
+Task_Stats::dump_samples (const char *file_name, const char *msg,
ACE_UINT32)
{
- FILE* output_file = ACE_OS::fopen (file_name, "w");
+ FILE* output_file = ACE_OS::fopen (file_name, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/examples/RTScheduling/Task_Stats.h b/TAO/examples/RTScheduling/Task_Stats.h
index b32f1041bfc..e76f669562f 100644
--- a/TAO/examples/RTScheduling/Task_Stats.h
+++ b/TAO/examples/RTScheduling/Task_Stats.h
@@ -60,10 +60,10 @@ class Task_Stats
/// Record a sample
int sample (ACE_UINT32 thr_run_time, int thr_count);
- void dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg,
+ void dump_samples (const char *file_name, const char *msg,
ACE_UINT32 scale_factor);
protected:
- void dump_latency_stats (ACE_TCHAR *out_msg, ACE_UINT32 sf);
+ void dump_latency_stats (char *out_msg, ACE_UINT32 sf);
/// Base and end times
ACE_hrtime_t base_time_;
diff --git a/TAO/examples/RTScheduling/Thread_Task.cpp b/TAO/examples/RTScheduling/Thread_Task.cpp
index e7c3997f565..217f34ed25e 100644
--- a/TAO/examples/RTScheduling/Thread_Task.cpp
+++ b/TAO/examples/RTScheduling/Thread_Task.cpp
@@ -45,7 +45,7 @@ Thread_Task::svc (void)
char msg [BUFSIZ];
ACE_OS::sprintf (msg,
"Thread_Task::svc Imp=%d Guid="
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
"\n",
importance_,
count_);
@@ -112,7 +112,7 @@ Thread_Task::dump_stats (void)
char fname [BUFSIZ];
ACE_OS::sprintf (fname,
"DT_"
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
".dat",count_);
if (TAO_debug_level > 0)
@@ -123,7 +123,7 @@ Thread_Task::dump_stats (void)
char msg [BUFSIZ];
ACE_OS::sprintf (msg,
"#Schedule Output for DT "
- ACE_SIZE_T_FORMAT_SPECIFIER,
+ ACE_SIZE_T_FORMAT_SPECIFIER_A,
count_);
task_stats_->dump_samples (fname,
diff --git a/TAO/examples/Simple/Simple_util.cpp b/TAO/examples/Simple/Simple_util.cpp
index 6a1e517f271..afc6751b284 100644
--- a/TAO/examples/Simple/Simple_util.cpp
+++ b/TAO/examples/Simple/Simple_util.cpp
@@ -34,7 +34,7 @@ Server<Servant>::~Server (void)
template <class Servant> int
Server<Servant>::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:ni:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:ni:");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -44,7 +44,7 @@ Server<Servant>::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
@@ -317,7 +317,7 @@ Client<INTERFACE_OBJECT, Var>::read_ior (char *filename)
template <class INTERFACE_OBJECT, class Var> int
Client<INTERFACE_OBJECT, Var>::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "df:nk:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:nk:x");
int c = 0;
int result = 0;
diff --git a/TAO/examples/Simple/bank/AccountManager_i.h b/TAO/examples/Simple/bank/AccountManager_i.h
index ebae834858d..21321e449c3 100644
--- a/TAO/examples/Simple/bank/AccountManager_i.h
+++ b/TAO/examples/Simple/bank/AccountManager_i.h
@@ -34,9 +34,7 @@
#include "ace/SString.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Manager;
-TAO_END_VERSIONED_NAMESPACE_DECL
class AccountManager_i : public POA_Bank::AccountManager
{
diff --git a/TAO/examples/Simple/bank/Makefile.am b/TAO/examples/Simple/bank/Makefile.am
index 49e90ae833c..7ce89d77efd 100644
--- a/TAO/examples/Simple/bank/Makefile.am
+++ b/TAO/examples/Simple/bank/Makefile.am
@@ -16,13 +16,12 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.bank_IDL.am
+## Makefile.bank_client.am
BUILT_SOURCES = \
BankC.cpp \
BankC.h \
BankC.inl \
- BankS.cpp \
BankS.h \
BankS.inl \
BankS_T.cpp \
@@ -34,25 +33,18 @@ CLEANFILES = \
BankC.cpp \
BankC.h \
BankC.inl \
- BankS.cpp \
BankS.h \
BankS.inl \
BankS_T.cpp \
BankS_T.h \
BankS_T.inl
-BankC.cpp BankC.h BankC.inl BankS.cpp BankS.h BankS.inl BankS_T.cpp BankS_T.h BankS_T.inl: Bank-stamp
+BankC.cpp BankC.h BankC.inl BankS.h BankS.inl BankS_T.cpp BankS_T.h BankS_T.inl: Bank-stamp
Bank-stamp: $(srcdir)/Bank.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Bank.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Bank.idl
@touch $@
-
-noinst_HEADERS = \
- Bank.idl
-
-## Makefile.bank_client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -69,6 +61,11 @@ client_SOURCES = \
Bank_Client_i.cpp \
client.cpp \
../Simple_util.h \
+ BankC.h \
+ BankC.inl \
+ BankS.h \
+ BankS_T.h \
+ BankS_T.inl \
Bank_Client_i.h
client_LDADD = \
@@ -84,6 +81,35 @@ client_LDADD = \
## Makefile.bank_server.am
+BUILT_SOURCES += \
+ BankC.cpp \
+ BankC.h \
+ BankC.inl \
+ BankS.cpp \
+ BankS.h \
+ BankS.inl \
+ BankS_T.cpp \
+ BankS_T.h \
+ BankS_T.inl
+
+CLEANFILES += \
+ Bank-stamp \
+ BankC.cpp \
+ BankC.h \
+ BankC.inl \
+ BankS.cpp \
+ BankS.h \
+ BankS.inl \
+ BankS_T.cpp \
+ BankS_T.h \
+ BankS_T.inl
+
+BankC.cpp BankC.h BankC.inl BankS.cpp BankS.h BankS.inl BankS_T.cpp BankS_T.h BankS_T.inl: Bank-stamp
+
+Bank-stamp: $(srcdir)/Bank.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Bank.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -103,7 +129,12 @@ server_SOURCES = \
server.cpp \
../Simple_util.h \
AccountManager_i.h \
- Account_i.h
+ Account_i.h \
+ BankC.h \
+ BankC.inl \
+ BankS.h \
+ BankS_T.h \
+ BankS_T.inl
server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
diff --git a/TAO/examples/Simple/bank/bank.mpc b/TAO/examples/Simple/bank/bank.mpc
index df8debec262..237fef618dd 100644
--- a/TAO/examples/Simple/bank/bank.mpc
+++ b/TAO/examples/Simple/bank/bank.mpc
@@ -1,37 +1,22 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults, anytypecode {
- IDL_Files {
- Bank.idl
- }
- custom_only = 1
-}
-
project(*server): namingexe, iortable, utils {
- exename = server
- after += *IDL
Source_Files {
Account_i.cpp
AccountManager_i.cpp
../Simple_util.cpp
server.cpp
- BankS.cpp
- BankC.cpp
- }
- IDL_Files {
}
}
project(*client): namingexe, iortable, utils {
exename = client
- after += *IDL
+
Source_Files {
BankC.cpp
client.cpp
../Simple_util.cpp
Bank_Client_i.cpp
}
- IDL_Files {
- }
}
diff --git a/TAO/examples/Simple/bank/client.cpp b/TAO/examples/Simple/bank/client.cpp
index 0f426992f06..0368a2a9a6b 100644
--- a/TAO/examples/Simple/bank/client.cpp
+++ b/TAO/examples/Simple/bank/client.cpp
@@ -1,19 +1,20 @@
// $Id$
# include "Bank_Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Bank_Client_i client;
-
ACE_DEBUG ((LM_DEBUG,
"\nBank client\n\n"));
- if (client.run ("Bank",argc, argv) == -1)
+ if (client.run ("Bank",convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Simple/bank/server.cpp b/TAO/examples/Simple/bank/server.cpp
index 57ded2b1063..e3742560466 100644
--- a/TAO/examples/Simple/bank/server.cpp
+++ b/TAO/examples/Simple/bank/server.cpp
@@ -1,12 +1,14 @@
// $Id$
#include "../Simple_util.h"
#include "AccountManager_i.h"
+#include "ace/Argv_Type_Converter.h"
// This is the main driver program for the time and date server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server<AccountManager_i> server;
ACE_DEBUG ((LM_DEBUG,
@@ -15,8 +17,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
if (server.init ("Bank",
- argc,
- argv
+ convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/Simple/chat/Client_i.cpp b/TAO/examples/Simple/chat/Client_i.cpp
index 268da16eaeb..a89acd1f4d7 100644
--- a/TAO/examples/Simple/chat/Client_i.cpp
+++ b/TAO/examples/Simple/chat/Client_i.cpp
@@ -45,7 +45,7 @@ Client_i::~Client_i (void)
int
Client_i::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "n:f:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/Simple/chat/Makefile.am b/TAO/examples/Simple/chat/Makefile.am
index 255b84aae55..e8dc4f71719 100644
--- a/TAO/examples/Simple/chat/Makefile.am
+++ b/TAO/examples/Simple/chat/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.chat_IDL.am
+## Makefile.chat_client.am
BUILT_SOURCES = \
ReceiverC.cpp \
@@ -44,7 +44,7 @@ CLEANFILES = \
ReceiverC.cpp ReceiverC.h ReceiverC.inl ReceiverS.cpp ReceiverS.h ReceiverS.inl ReceiverS_T.cpp ReceiverS_T.h ReceiverS_T.inl: Receiver-stamp
Receiver-stamp: $(srcdir)/Receiver.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Receiver.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Receiver.idl
@touch $@
BUILT_SOURCES += \
@@ -73,16 +73,9 @@ CLEANFILES += \
BroadcasterC.cpp BroadcasterC.h BroadcasterC.inl BroadcasterS.cpp BroadcasterS.h BroadcasterS.inl BroadcasterS_T.cpp BroadcasterS_T.h BroadcasterS_T.inl: Broadcaster-stamp
Broadcaster-stamp: $(srcdir)/Broadcaster.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Broadcaster.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Broadcaster.idl
@touch $@
-
-noinst_HEADERS = \
- Broadcaster.idl \
- Receiver.idl
-
-## Makefile.chat_client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -93,12 +86,23 @@ client_CPPFLAGS = \
client_SOURCES = \
BroadcasterC.cpp \
+ BroadcasterS.cpp \
Client_i.cpp \
ReceiverC.cpp \
ReceiverS.cpp \
Receiver_i.cpp \
client.cpp \
+ BroadcasterC.h \
+ BroadcasterC.inl \
+ BroadcasterS.h \
+ BroadcasterS_T.h \
+ BroadcasterS_T.inl \
Client_i.h \
+ ReceiverC.h \
+ ReceiverC.inl \
+ ReceiverS.h \
+ ReceiverS_T.h \
+ ReceiverS_T.inl \
Receiver_i.h
client_LDADD = \
@@ -112,6 +116,64 @@ client_LDADD = \
## Makefile.chat_server.am
+BUILT_SOURCES += \
+ ReceiverC.cpp \
+ ReceiverC.h \
+ ReceiverC.inl \
+ ReceiverS.cpp \
+ ReceiverS.h \
+ ReceiverS.inl \
+ ReceiverS_T.cpp \
+ ReceiverS_T.h \
+ ReceiverS_T.inl
+
+CLEANFILES += \
+ Receiver-stamp \
+ ReceiverC.cpp \
+ ReceiverC.h \
+ ReceiverC.inl \
+ ReceiverS.cpp \
+ ReceiverS.h \
+ ReceiverS.inl \
+ ReceiverS_T.cpp \
+ ReceiverS_T.h \
+ ReceiverS_T.inl
+
+ReceiverC.cpp ReceiverC.h ReceiverC.inl ReceiverS.cpp ReceiverS.h ReceiverS.inl ReceiverS_T.cpp ReceiverS_T.h ReceiverS_T.inl: Receiver-stamp
+
+Receiver-stamp: $(srcdir)/Receiver.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Receiver.idl
+ @touch $@
+
+BUILT_SOURCES += \
+ BroadcasterC.cpp \
+ BroadcasterC.h \
+ BroadcasterC.inl \
+ BroadcasterS.cpp \
+ BroadcasterS.h \
+ BroadcasterS.inl \
+ BroadcasterS_T.cpp \
+ BroadcasterS_T.h \
+ BroadcasterS_T.inl
+
+CLEANFILES += \
+ Broadcaster-stamp \
+ BroadcasterC.cpp \
+ BroadcasterC.h \
+ BroadcasterC.inl \
+ BroadcasterS.cpp \
+ BroadcasterS.h \
+ BroadcasterS.inl \
+ BroadcasterS_T.cpp \
+ BroadcasterS_T.h \
+ BroadcasterS_T.inl
+
+BroadcasterC.cpp BroadcasterC.h BroadcasterC.inl BroadcasterS.cpp BroadcasterS.h BroadcasterS.inl BroadcasterS_T.cpp BroadcasterS_T.h BroadcasterS_T.inl: Broadcaster-stamp
+
+Broadcaster-stamp: $(srcdir)/Broadcaster.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/Broadcaster.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -125,9 +187,20 @@ server_SOURCES = \
BroadcasterS.cpp \
Broadcaster_i.cpp \
ReceiverC.cpp \
+ ReceiverS.cpp \
Server_i.cpp \
server.cpp \
+ BroadcasterC.h \
+ BroadcasterC.inl \
+ BroadcasterS.h \
+ BroadcasterS_T.h \
+ BroadcasterS_T.inl \
Broadcaster_i.h \
+ ReceiverC.h \
+ ReceiverC.inl \
+ ReceiverS.h \
+ ReceiverS_T.h \
+ ReceiverS_T.inl \
Server_i.h
server_LDADD = \
diff --git a/TAO/examples/Simple/chat/Server_i.cpp b/TAO/examples/Simple/chat/Server_i.cpp
index 208a440ad86..bfffd972074 100644
--- a/TAO/examples/Simple/chat/Server_i.cpp
+++ b/TAO/examples/Simple/chat/Server_i.cpp
@@ -35,7 +35,7 @@ Server_i::~Server_i (void)
int
Server_i::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -109,7 +109,7 @@ int
Server_i::write_IOR(const char* ior)
{
FILE* ior_output_file_ =
- ACE_OS::fopen (this->ior_file_name_, "w");
+ ACE_OS::fopen (this->ior_file_name_, ACE_TEXT("w"));
if (ior_output_file_)
{
diff --git a/TAO/examples/Simple/chat/chat.mpc b/TAO/examples/Simple/chat/chat.mpc
index 5b3a353ea50..d5a6f5699f6 100644
--- a/TAO/examples/Simple/chat/chat.mpc
+++ b/TAO/examples/Simple/chat/chat.mpc
@@ -1,38 +1,26 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
+project(*server) : taoserver, utils, iortable {
IDL_Files {
Receiver.idl
Broadcaster.idl
}
- custom_only = 1
-}
-
-project(*server) : taoserver, utils, iortable {
- after += *IDL
- IDL_Files {
- }
Source_Files {
Broadcaster_i.cpp
Server_i.cpp
server.cpp
- BroadcasterS.cpp
- BroadcasterC.cpp
- ReceiverC.cpp
}
}
project(*client): taoexe, portableserver, utils {
- after += *IDL
IDL_Files {
+ Receiver.idl
+ Broadcaster.idl
}
Source_Files {
Receiver_i.cpp
Client_i.cpp
client.cpp
- ReceiverS.cpp
- ReceiverC.cpp
- BroadcasterC.cpp
}
}
diff --git a/TAO/examples/Simple/chat/client.cpp b/TAO/examples/Simple/chat/client.cpp
index 7caf6e595a0..310388c23b3 100644
--- a/TAO/examples/Simple/chat/client.cpp
+++ b/TAO/examples/Simple/chat/client.cpp
@@ -17,15 +17,17 @@
// ===========================================================
#include "Client_i.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
Client_i client_i;
- if (client_i.init (argc, argv) == -1
+ if (client_i.init (convert.get_argc(), convert.get_ASCII_argv()) == -1
|| client_i.run () == -1)
return -1;
diff --git a/TAO/examples/Simple/chat/server.cpp b/TAO/examples/Simple/chat/server.cpp
index 66937b85a2e..6f418bb94bc 100644
--- a/TAO/examples/Simple/chat/server.cpp
+++ b/TAO/examples/Simple/chat/server.cpp
@@ -18,16 +18,17 @@
// ===========================================================
#include "Server_i.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
-
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
Server_i server_i;
- int ret = server_i.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int ret = server_i.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (ret != 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/examples/Simple/echo/Echo_i.cpp b/TAO/examples/Simple/echo/Echo_i.cpp
index aeef101e78d..4e0c5f95808 100644
--- a/TAO/examples/Simple/echo/Echo_i.cpp
+++ b/TAO/examples/Simple/echo/Echo_i.cpp
@@ -34,7 +34,7 @@ Echo_i::echo_list (const char *
Echo::List_var list;
{
- Echo::List *tmp = 0;
+ Echo::List *tmp;
ACE_NEW_RETURN (tmp,
Echo::List (3),
0);
diff --git a/TAO/examples/Simple/echo/Makefile.am b/TAO/examples/Simple/echo/Makefile.am
index 6aaf119067a..371ddaa2e2a 100644
--- a/TAO/examples/Simple/echo/Makefile.am
+++ b/TAO/examples/Simple/echo/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.echo_IDL.am
+## Makefile.echo_client.am
BUILT_SOURCES = \
EchoC.cpp \
@@ -44,15 +44,9 @@ CLEANFILES = \
EchoC.cpp EchoC.h EchoC.inl EchoS.cpp EchoS.h EchoS.inl EchoS_T.cpp EchoS_T.h EchoS_T.inl: Echo-stamp
Echo-stamp: $(srcdir)/Echo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Echo.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Echo.idl
@touch $@
-
-noinst_HEADERS = \
- Echo.idl
-
-## Makefile.echo_client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -66,9 +60,15 @@ client_CPPFLAGS = \
client_SOURCES = \
../Simple_util.cpp \
EchoC.cpp \
+ EchoS.cpp \
Echo_Client_i.cpp \
client.cpp \
../Simple_util.h \
+ EchoC.h \
+ EchoC.inl \
+ EchoS.h \
+ EchoS_T.h \
+ EchoS_T.inl \
Echo_Client_i.h
client_LDADD = \
@@ -84,6 +84,35 @@ client_LDADD = \
## Makefile.echo_server.am
+BUILT_SOURCES += \
+ EchoC.cpp \
+ EchoC.h \
+ EchoC.inl \
+ EchoS.cpp \
+ EchoS.h \
+ EchoS.inl \
+ EchoS_T.cpp \
+ EchoS_T.h \
+ EchoS_T.inl
+
+CLEANFILES += \
+ Echo-stamp \
+ EchoC.cpp \
+ EchoC.h \
+ EchoC.inl \
+ EchoS.cpp \
+ EchoS.h \
+ EchoS.inl \
+ EchoS_T.cpp \
+ EchoS_T.h \
+ EchoS_T.inl
+
+EchoC.cpp EchoC.h EchoC.inl EchoS.cpp EchoS.h EchoS.inl EchoS_T.cpp EchoS_T.h EchoS_T.inl: Echo-stamp
+
+Echo-stamp: $(srcdir)/Echo.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Echo.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -101,6 +130,11 @@ server_SOURCES = \
Echo_i.cpp \
server.cpp \
../Simple_util.h \
+ EchoC.h \
+ EchoC.inl \
+ EchoS.h \
+ EchoS_T.h \
+ EchoS_T.inl \
Echo_i.h
server_LDADD = \
diff --git a/TAO/examples/Simple/echo/client.cpp b/TAO/examples/Simple/echo/client.cpp
index f2aa863069b..e684030e64e 100644
--- a/TAO/examples/Simple/echo/client.cpp
+++ b/TAO/examples/Simple/echo/client.cpp
@@ -1,21 +1,22 @@
//$Id$
# include "Echo_Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Echo_Client_i client;
-
ACE_DEBUG ((LM_DEBUG,
"\nEcho client\n\n"));
if (client.run ("Echo",
- argc,
- argv) == -1)
+ convert.get_argc(),
+ convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Simple/echo/echo.mpc b/TAO/examples/Simple/echo/echo.mpc
index bf60819c91b..dea68094fe2 100644
--- a/TAO/examples/Simple/echo/echo.mpc
+++ b/TAO/examples/Simple/echo/echo.mpc
@@ -1,36 +1,20 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Echo.idl
- }
- custom_only = 1
-}
-
project(*server): namingexe, iortable, utils {
- exename = server
- after += *IDL
Source_Files {
Echo_i.cpp
../Simple_util.cpp
server.cpp
- EchoS.cpp
- EchoC.cpp
- }
- IDL_Files {
}
}
project(*client): namingexe, iortable, utils {
exename = client
- after += *IDL
+
Source_Files {
Echo_Client_i.cpp
../Simple_util.cpp
client.cpp
- EchoC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Simple/echo/server.cpp b/TAO/examples/Simple/echo/server.cpp
index b74d5bc7af6..1d10849bf82 100644
--- a/TAO/examples/Simple/echo/server.cpp
+++ b/TAO/examples/Simple/echo/server.cpp
@@ -1,12 +1,14 @@
// $Id$
#include "../Simple_util.h"
#include "Echo_i.h"
+#include "ace/Argv_Type_Converter.h"
// This is the main driver program for the time and date server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server<Echo_i> server;
ACE_DEBUG ((LM_DEBUG,
@@ -17,8 +19,8 @@ main (int argc, char *argv[])
ACE_TRY
{
if (server.init ("Echo",
- argc,
- argv
+ convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/Simple/grid/Grid_Client_i.cpp b/TAO/examples/Simple/grid/Grid_Client_i.cpp
index d333682c8dd..0d5abe3d825 100644
--- a/TAO/examples/Simple/grid/Grid_Client_i.cpp
+++ b/TAO/examples/Simple/grid/Grid_Client_i.cpp
@@ -32,7 +32,7 @@ Grid_Client_i::parse_args (int argc,
char *argv[])
{
// Parses some of the options that are specific to this example
- ACE_Get_Opt get_opts (argc, argv, "df:nk:xw:h:p:q:v:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "df:nk:xw:h:p:q:v:");
int c = 0;
while ((c = get_opts ()) != -1)
diff --git a/TAO/examples/Simple/grid/Makefile.am b/TAO/examples/Simple/grid/Makefile.am
index 4cec15d7622..d319d1ef7ce 100644
--- a/TAO/examples/Simple/grid/Makefile.am
+++ b/TAO/examples/Simple/grid/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.grid_IDL.am
+## Makefile.grid_client.am
BUILT_SOURCES = \
GridC.cpp \
@@ -44,15 +44,9 @@ CLEANFILES = \
GridC.cpp GridC.h GridC.inl GridS.cpp GridS.h GridS.inl GridS_T.cpp GridS_T.h GridS_T.inl: Grid-stamp
Grid-stamp: $(srcdir)/Grid.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Grid.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Grid.idl
@touch $@
-
-noinst_HEADERS = \
- Grid.idl
-
-## Makefile.grid_client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -66,9 +60,15 @@ client_CPPFLAGS = \
client_SOURCES = \
../Simple_util.cpp \
GridC.cpp \
+ GridS.cpp \
Grid_Client_i.cpp \
client.cpp \
../Simple_util.h \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS_T.h \
+ GridS_T.inl \
Grid_Client_i.h
client_LDADD = \
@@ -84,6 +84,35 @@ client_LDADD = \
## Makefile.grid_server.am
+BUILT_SOURCES += \
+ GridC.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.cpp \
+ GridS.h \
+ GridS.inl \
+ GridS_T.cpp \
+ GridS_T.h \
+ GridS_T.inl
+
+CLEANFILES += \
+ Grid-stamp \
+ GridC.cpp \
+ GridC.h \
+ GridC.inl \
+ GridS.cpp \
+ GridS.h \
+ GridS.inl \
+ GridS_T.cpp \
+ GridS_T.h \
+ GridS_T.inl
+
+GridC.cpp GridC.h GridC.inl GridS.cpp GridS.h GridS.inl GridS_T.cpp GridS_T.h GridS_T.inl: Grid-stamp
+
+Grid-stamp: $(srcdir)/Grid.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Grid.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -101,6 +130,11 @@ server_SOURCES = \
Grid_i.cpp \
server.cpp \
../Simple_util.h \
+ GridC.h \
+ GridC.inl \
+ GridS.h \
+ GridS_T.h \
+ GridS_T.inl \
Grid_i.h
server_LDADD = \
diff --git a/TAO/examples/Simple/grid/client.cpp b/TAO/examples/Simple/grid/client.cpp
index 4bec0e49dad..e3bfee639d3 100644
--- a/TAO/examples/Simple/grid/client.cpp
+++ b/TAO/examples/Simple/grid/client.cpp
@@ -1,19 +1,20 @@
// $Id$
# include "Grid_Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Grid_Client_i client;
-
ACE_DEBUG ((LM_DEBUG,
"\nGrid client\n\n"));
- if (client.run ("Grid", argc, argv) == -1)
+ if (client.run ("Grid", convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Simple/grid/grid.mpc b/TAO/examples/Simple/grid/grid.mpc
index 2bdacb54e58..fcc341dc775 100644
--- a/TAO/examples/Simple/grid/grid.mpc
+++ b/TAO/examples/Simple/grid/grid.mpc
@@ -1,36 +1,20 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Grid.idl
- }
- custom_only = 1
-}
-
project(*server): namingexe, iortable, utils {
- exename = server
- after += *IDL
Source_Files {
Grid_i.cpp
server.cpp
../Simple_util.cpp
- GridS.cpp
- GridC.cpp
- }
- IDL_Files {
}
}
project(*client): namingexe, iortable, utils {
exename = client
- after += *IDL
+
Source_Files {
client.cpp
../Simple_util.cpp
Grid_Client_i.cpp
- GridC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Simple/grid/server.cpp b/TAO/examples/Simple/grid/server.cpp
index 6e95c17f2b5..4f871176f8c 100644
--- a/TAO/examples/Simple/grid/server.cpp
+++ b/TAO/examples/Simple/grid/server.cpp
@@ -1,12 +1,14 @@
// $Id$
#include "../Simple_util.h"
#include "Grid_i.h"
+#include "ace/Argv_Type_Converter.h"
// This is the main driver program for the time and date server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server<Grid_Factory_i> server;
ACE_DEBUG ((LM_DEBUG,
@@ -17,8 +19,8 @@ main (int argc, char *argv[])
ACE_TRY
{
if (server.init ("Grid",
- argc,
- argv
+ convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/Simple/time-date/Makefile.am b/TAO/examples/Simple/time-date/Makefile.am
index 5d6d47baaf9..a48bed07ad1 100644
--- a/TAO/examples/Simple/time-date/Makefile.am
+++ b/TAO/examples/Simple/time-date/Makefile.am
@@ -65,6 +65,7 @@ libTime_Date_la_SOURCES = \
noinst_HEADERS = \
Alt_Resource_Factory.h \
+ Time_Date.h \
Time_Date.idl \
Time_DateC.h \
Time_DateC.inl \
diff --git a/TAO/examples/Simple/time-date/Time_Date.cpp b/TAO/examples/Simple/time-date/Time_Date.cpp
index 05e6ceb7159..e4122801d77 100644
--- a/TAO/examples/Simple/time-date/Time_Date.cpp
+++ b/TAO/examples/Simple/time-date/Time_Date.cpp
@@ -135,7 +135,7 @@ DLL_ORB::fini (void)
int
Time_Date_Servant::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dn:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dn:o:");
int c = 0;
this->orb_ = "ORB";
@@ -147,7 +147,7 @@ Time_Date_Servant::parse_args (int argc, char *argv[])
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
diff --git a/TAO/examples/Simple/time-date/client.cpp b/TAO/examples/Simple/time-date/client.cpp
index 452afbec7fa..2f1f52367c6 100644
--- a/TAO/examples/Simple/time-date/client.cpp
+++ b/TAO/examples/Simple/time-date/client.cpp
@@ -1,18 +1,20 @@
// $Id$
# include "Time_Date_Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Time_Date_Client_i client;
ACE_DEBUG ((LM_DEBUG,
"\nTime_Date client\n\n"));
- if (client.run ("Time_Date", argc, argv) == -1)
+ if (client.run ("Time_Date", convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Simple/time-date/server.cpp b/TAO/examples/Simple/time-date/server.cpp
index f9ddbadc4bb..11282eacc7a 100644
--- a/TAO/examples/Simple/time-date/server.cpp
+++ b/TAO/examples/Simple/time-date/server.cpp
@@ -21,15 +21,18 @@
#include "ace/Service_Config.h"
#include "ace/Reactor.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (time_date,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (ACE_Service_Config::open (argc, argv) == -1
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (ACE_Service_Config::open (convert.get_argc(), convert.get_TCHAR_argv()) == -1
&& errno != ENOENT)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"),
diff --git a/TAO/examples/Simple/time/Makefile.am b/TAO/examples/Simple/time/Makefile.am
index 517aa3ca9c3..8320e0598b6 100644
--- a/TAO/examples/Simple/time/Makefile.am
+++ b/TAO/examples/Simple/time/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.time_IDL.am
+## Makefile.time_client.am
BUILT_SOURCES = \
TimeC.cpp \
@@ -44,15 +44,9 @@ CLEANFILES = \
TimeC.cpp TimeC.h TimeC.inl TimeS.cpp TimeS.h TimeS.inl TimeS_T.cpp TimeS_T.h TimeS_T.inl: Time-stamp
Time-stamp: $(srcdir)/Time.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Time.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Time.idl
@touch $@
-
-noinst_HEADERS = \
- Time.idl
-
-## Makefile.time_client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -66,9 +60,15 @@ client_CPPFLAGS = \
client_SOURCES = \
../Simple_util.cpp \
TimeC.cpp \
+ TimeS.cpp \
Time_Client_i.cpp \
client.cpp \
../Simple_util.h \
+ TimeC.h \
+ TimeC.inl \
+ TimeS.h \
+ TimeS_T.h \
+ TimeS_T.inl \
Time_Client_i.h
client_LDADD = \
@@ -84,6 +84,35 @@ client_LDADD = \
## Makefile.time_server.am
+BUILT_SOURCES += \
+ TimeC.cpp \
+ TimeC.h \
+ TimeC.inl \
+ TimeS.cpp \
+ TimeS.h \
+ TimeS.inl \
+ TimeS_T.cpp \
+ TimeS_T.h \
+ TimeS_T.inl
+
+CLEANFILES += \
+ Time-stamp \
+ TimeC.cpp \
+ TimeC.h \
+ TimeC.inl \
+ TimeS.cpp \
+ TimeS.h \
+ TimeS.inl \
+ TimeS_T.cpp \
+ TimeS_T.h \
+ TimeS_T.inl
+
+TimeC.cpp TimeC.h TimeC.inl TimeS.cpp TimeS.h TimeS.inl TimeS_T.cpp TimeS_T.h TimeS_T.inl: Time-stamp
+
+Time-stamp: $(srcdir)/Time.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/Time.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -101,6 +130,11 @@ server_SOURCES = \
Time_i.cpp \
server.cpp \
../Simple_util.h \
+ TimeC.h \
+ TimeC.inl \
+ TimeS.h \
+ TimeS_T.h \
+ TimeS_T.inl \
Time_i.h
server_LDADD = \
diff --git a/TAO/examples/Simple/time/Time_Client_i.cpp b/TAO/examples/Simple/time/Time_Client_i.cpp
index ace24d63d6e..c21f21625ef 100644
--- a/TAO/examples/Simple/time/Time_Client_i.cpp
+++ b/TAO/examples/Simple/time/Time_Client_i.cpp
@@ -49,7 +49,7 @@ Time_Client_i::run (const char *name,
// Print out value
// Use ACE_OS::ctime_r(), ctime() doesn't seem to work properly
// under 64-bit solaris.
- ACE_TCHAR ascii_timedate[64] = "";
+ ACE_TCHAR ascii_timedate[64] = ACE_TEXT("");
ACE_OS::ctime_r (reinterpret_cast<const time_t *> (&timedate),
ascii_timedate, 64);
diff --git a/TAO/examples/Simple/time/client.cpp b/TAO/examples/Simple/time/client.cpp
index 28eab3cb977..fe1bfe44049 100644
--- a/TAO/examples/Simple/time/client.cpp
+++ b/TAO/examples/Simple/time/client.cpp
@@ -1,19 +1,20 @@
//$Id$
# include "Time_Client_i.h"
+#include "ace/Argv_Type_Converter.h"
// The client program for the application.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Time_Client_i client;
-
ACE_DEBUG ((LM_DEBUG,
"\n\tTime and date client\n\n"));
- if (client.run ("Time",argc, argv) == -1)
+ if (client.run ("Time",convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return 0;
diff --git a/TAO/examples/Simple/time/server.cpp b/TAO/examples/Simple/time/server.cpp
index 8c3792e16b5..22587e72d04 100644
--- a/TAO/examples/Simple/time/server.cpp
+++ b/TAO/examples/Simple/time/server.cpp
@@ -1,12 +1,14 @@
// $Id$
#include "../Simple_util.h"
#include "Time_i.h"
+#include "ace/Argv_Type_Converter.h"
// This is the main driver program for the time and date server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server<Time_i> server;
ACE_DEBUG ((LM_DEBUG,
@@ -17,8 +19,8 @@ main (int argc, char *argv[])
ACE_TRY
{
if (server.init ("Time",
- argc,
- argv
+ convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/examples/Simple/time/time.mpc b/TAO/examples/Simple/time/time.mpc
index 91288d3e8b4..5f35f32332a 100644
--- a/TAO/examples/Simple/time/time.mpc
+++ b/TAO/examples/Simple/time/time.mpc
@@ -1,36 +1,20 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- Time.idl
- }
- custom_only = 1
-}
-
project(*server): namingexe, iortable, utils {
- exename = server
- after += *IDL
Source_Files {
Time_i.cpp
server.cpp
../Simple_util.cpp
- TimeS.cpp
- TimeC.cpp
- }
- IDL_Files {
}
}
project(*client): namingexe, iortable, utils {
exename = client
- after += *IDL
+
Source_Files {
client.cpp
../Simple_util.cpp
Time_Client_i.cpp
- TimeC.cpp
- }
- IDL_Files {
}
}
diff --git a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp
index 66548bcc92c..008c19f07ba 100644
--- a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp
+++ b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp
@@ -37,6 +37,7 @@
#include "ace/Get_Opt.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Event_Supplier,
DualEC_Sup,
@@ -824,7 +825,7 @@ DualEC_Supplier::load_schedule_data ()
FILE *input_file;
int scan_count = 0;
- input_file = ACE_OS::fopen(this->input_file_name_, "r");
+ input_file = ACE_OS::fopen(this->input_file_name_, ACE_TEXT("r"));
if (input_file)
{
@@ -952,7 +953,7 @@ DualEC_Supplier::load_schedule_data ()
unsigned int
DualEC_Supplier::get_options (int argc, char *argv [])
{
- ACE_Get_Opt get_opt (argc, argv, "f:m:b:n:w:dsrp");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "f:m:b:n:w:dsrp");
int opt;
int temp;
@@ -1084,8 +1085,10 @@ DualEC_Supplier::get_options (int argc, char *argv [])
// function main
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
int min_priority =
ACE_Sched_Params::priority_min (ACE_SCHED_FIFO);
@@ -1111,8 +1114,8 @@ main (int argc, char *argv [])
// Initialize ORB.
TAO_ORB_Manager orb_Manager;
- orb_Manager.init (argc,
- argv
+ orb_Manager.init (convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -1121,7 +1124,7 @@ main (int argc, char *argv [])
DualEC_Supplier *event_Supplier_ptr;
ACE_NEW_RETURN (event_Supplier_ptr,
- DualEC_Supplier(argc, argv),
+ DualEC_Supplier(convert.get_argc(), convert.get_ASCII_argv()),
-1);
// Initialize everthing
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
index dafdaefc101..1004129d82c 100644
--- a/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
+++ b/TAO/examples/Simulator/Event_Supplier/Event_Con.cpp
@@ -37,6 +37,7 @@
#include "ace/streams.h"
#include "ace/os_include/os_limits.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Event_Supplier, Event_Con, "$Id$")
@@ -253,7 +254,7 @@ Demo_Consumer::shutdown (void)
static unsigned int
get_options (int argc, char *argv [])
{
- ACE_Get_Opt get_opt (argc, argv, "Oc:djm:s:t:?");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "Oc:djm:s:t:?");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -289,14 +290,16 @@ get_options (int argc, char *argv [])
// function main.
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "internet" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -334,7 +337,7 @@ main (int argc, char *argv [])
ACE_Scheduler_Factory::use_config (naming_context.in ());
- if (get_options (argc, argv))
+ if (get_options (convert.get_argc(), convert.get_ASCII_argv()))
ACE_OS::exit (-1);
// Get the Event Channel.
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp
index 748cc06b360..31a5d91e55c 100644
--- a/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp
+++ b/TAO/examples/Simulator/Event_Supplier/Event_Sup.cpp
@@ -34,6 +34,7 @@
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_ctype.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Event_Supplier,
Event_Sup,
@@ -129,7 +130,7 @@ Event_Supplier::load_schedule_data
FILE *input_file;
int scan_count = 0;
- input_file = ACE_OS::fopen(this->input_file_name_, "r");
+ input_file = ACE_OS::fopen(this->input_file_name_, ACE_TEXT("r"));
if (input_file)
{
@@ -381,7 +382,7 @@ Event_Supplier::insert_event_data (CORBA::Any &data,
unsigned int
Event_Supplier::get_options (int argc, char *argv [])
{
- ACE_Get_Opt get_opt (argc, argv, "f:m:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "f:m:");
int opt;
int temp;
@@ -443,15 +444,17 @@ Event_Supplier::get_options (int argc, char *argv [])
// function main
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB.
TAO_ORB_Manager orb_Manager;
- orb_Manager.init (argc,
- argv
+ orb_Manager.init (convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -460,7 +463,7 @@ main (int argc, char *argv [])
Event_Supplier *event_Supplier_ptr;
ACE_NEW_RETURN (event_Supplier_ptr,
- Event_Supplier(argc, argv),
+ Event_Supplier(convert.get_argc(), convert.get_ASCII_argv()),
-1);
// Initialize everthing
diff --git a/TAO/examples/Simulator/Event_Supplier/Event_Supplier.mpc b/TAO/examples/Simulator/Event_Supplier/Event_Supplier.mpc
index dd3b916adb2..256cd9840a2 100644
--- a/TAO/examples/Simulator/Event_Supplier/Event_Supplier.mpc
+++ b/TAO/examples/Simulator/Event_Supplier/Event_Supplier.mpc
@@ -1,65 +1,51 @@
// $Id$
-
-project(*IDL): taoidldefaults, anytypecode {
- IDL_Files {
- gendir = .
- ../NavWeap.idl
- }
- custom_only = 1
-}
-
project(*Event_Sup): rtevent_skel, rtsched, namingexe, utils {
exename = Event_Sup
- after += *IDL
IDL_Files {
+ gendir = .
+ ../NavWeap.idl
}
-
Source_Files {
Event_Sup.cpp
DOVE_Supplier.cpp
- NavWeapC.cpp
}
}
project(*Event_Con): rtevent_skel, rtsched, namingexe {
exename = Event_Con
- after += *IDL
IDL_Files {
+ gendir = .
+ ../NavWeap.idl
}
-
Source_Files {
Event_Con.cpp
- NavWeapC.cpp
}
}
project(*Logging_Sup): rtevent_skel, rtsched, namingexe, utils {
exename = Logging_Sup
- after += *IDL
IDL_Files {
+ gendir = .
+ ../NavWeap.idl
}
-
Source_Files {
Logging_Sup.cpp
DOVE_Supplier.cpp
- NavWeapC.cpp
}
}
project(*DualEC_Sup): rtevent_serv, rtsched, namingexe, utils {
exename = DualEC_Sup
- after += *IDL
IDL_Files {
+ gendir = .
+ ../NavWeap.idl
}
-
Source_Files {
DualEC_Sup.cpp
DOVE_Supplier.cpp
- NavWeapS.cpp
- NavWeapC.cpp
}
}
diff --git a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp
index f0d96b78e60..7a5845427cd 100644
--- a/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp
+++ b/TAO/examples/Simulator/Event_Supplier/Logging_Sup.cpp
@@ -36,6 +36,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/os_include/os_ctype.h"
@@ -137,7 +138,7 @@ Logging_Supplier::load_schedule_data
FILE *input_file;
int scan_count = 0;
- input_file = ACE_OS::fopen(this->input_file_name_, "r");
+ input_file = ACE_OS::fopen(this->input_file_name_, ACE_TEXT("r"));
if (input_file)
{
@@ -410,7 +411,7 @@ Logging_Supplier::insert_event_data (CORBA::Any &data,
unsigned int
Logging_Supplier::get_options (int argc, char *argv [])
{
- ACE_Get_Opt get_opt (argc, argv, "f:m:d:s");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "f:m:d:s");
int opt;
int temp;
@@ -489,15 +490,17 @@ Logging_Supplier::get_options (int argc, char *argv [])
// function main
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB.
TAO_ORB_Manager orb_Manager;
- orb_Manager.init (argc,
- argv
+ orb_Manager.init (convert.get_argc(),
+ convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -506,7 +509,7 @@ main (int argc, char *argv [])
Logging_Supplier *event_Supplier_ptr;
ACE_NEW_RETURN (event_Supplier_ptr,
- Logging_Supplier(argc, argv),
+ Logging_Supplier(convert.get_argc(), convert.get_ASCII_argv()),
-1);
// Initialize everthing
diff --git a/TAO/examples/Simulator/Event_Supplier/Makefile.am b/TAO/examples/Simulator/Event_Supplier/Makefile.am
index 8c2f45c1e0c..0c3736b6fc9 100644
--- a/TAO/examples/Simulator/Event_Supplier/Makefile.am
+++ b/TAO/examples/Simulator/Event_Supplier/Makefile.am
@@ -16,11 +16,15 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
+CLEANFILES =
noinst_PROGRAMS =
+BUILT_SOURCES =
-## Makefile.Event_Supplier_IDL.am
+## Makefile.Event_Supplier_DualEC_Sup.am
+
+if BUILD_CORBA_MESSAGING
-BUILT_SOURCES = \
+BUILT_SOURCES += \
./NavWeapC.cpp \
./NavWeapC.h \
./NavWeapC.inl \
@@ -31,7 +35,7 @@ BUILT_SOURCES = \
./NavWeapS_T.h \
./NavWeapS_T.inl
-CLEANFILES = \
+CLEANFILES += \
./NavWeap-stamp \
./NavWeapC.cpp \
./NavWeapC.h \
@@ -47,18 +51,9 @@ CLEANFILES = \
./NavWeap-stamp: $(srcdir)/../NavWeap.idl $(TAO_IDL_DEP)
mkdir -p .
- $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/../NavWeap.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/../NavWeap.idl
@touch $@
-
-noinst_HEADERS = \
- ../NavWeap.idl
-
-## Makefile.Event_Supplier_DualEC_Sup.am
-
-if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += DualEC_Sup
DualEC_Sup_CPPFLAGS = \
@@ -70,10 +65,15 @@ DualEC_Sup_CPPFLAGS = \
-I$(TAO_BUILDDIR)/orbsvcs
DualEC_Sup_SOURCES = \
+ ./NavWeapC.cpp \
+ ./NavWeapS.cpp \
DOVE_Supplier.cpp \
DualEC_Sup.cpp \
- NavWeapC.cpp \
- NavWeapS.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.h \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl \
DOVE_Supplier.h \
DualEC_Sup.h
@@ -94,13 +94,42 @@ DualEC_Sup_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Supplier_Event_Con.am
if BUILD_CORBA_MESSAGING
+BUILT_SOURCES += \
+ ./NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.cpp \
+ ./NavWeapS.h \
+ ./NavWeapS.inl \
+ ./NavWeapS_T.cpp \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl
+
+CLEANFILES += \
+ ./NavWeap-stamp \
+ ./NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.cpp \
+ ./NavWeapS.h \
+ ./NavWeapS.inl \
+ ./NavWeapS_T.cpp \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl
+
+./NavWeapC.cpp ./NavWeapC.h ./NavWeapC.inl ./NavWeapS.cpp ./NavWeapS.h ./NavWeapS.inl ./NavWeapS_T.cpp ./NavWeapS_T.h ./NavWeapS_T.inl: ./NavWeap-stamp
+
+./NavWeap-stamp: $(srcdir)/../NavWeap.idl $(TAO_IDL_DEP)
+ mkdir -p .
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/../NavWeap.idl
+ @touch $@
+
noinst_PROGRAMS += Event_Con
Event_Con_CPPFLAGS = \
@@ -112,8 +141,14 @@ Event_Con_CPPFLAGS = \
-I$(TAO_BUILDDIR)/orbsvcs
Event_Con_SOURCES = \
+ ./NavWeapC.cpp \
+ ./NavWeapS.cpp \
Event_Con.cpp \
- NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.h \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl \
Event_Con.h
Event_Con_LDADD = \
@@ -137,6 +172,36 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
+BUILT_SOURCES += \
+ ./NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.cpp \
+ ./NavWeapS.h \
+ ./NavWeapS.inl \
+ ./NavWeapS_T.cpp \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl
+
+CLEANFILES += \
+ ./NavWeap-stamp \
+ ./NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.cpp \
+ ./NavWeapS.h \
+ ./NavWeapS.inl \
+ ./NavWeapS_T.cpp \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl
+
+./NavWeapC.cpp ./NavWeapC.h ./NavWeapC.inl ./NavWeapS.cpp ./NavWeapS.h ./NavWeapS.inl ./NavWeapS_T.cpp ./NavWeapS_T.h ./NavWeapS_T.inl: ./NavWeap-stamp
+
+./NavWeap-stamp: $(srcdir)/../NavWeap.idl $(TAO_IDL_DEP)
+ mkdir -p .
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/../NavWeap.idl
+ @touch $@
+
noinst_PROGRAMS += Event_Sup
Event_Sup_CPPFLAGS = \
@@ -148,9 +213,15 @@ Event_Sup_CPPFLAGS = \
-I$(TAO_BUILDDIR)/orbsvcs
Event_Sup_SOURCES = \
+ ./NavWeapC.cpp \
+ ./NavWeapS.cpp \
DOVE_Supplier.cpp \
Event_Sup.cpp \
- NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.h \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl \
DOVE_Supplier.h \
Event_Sup.h
@@ -176,6 +247,36 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
+BUILT_SOURCES += \
+ ./NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.cpp \
+ ./NavWeapS.h \
+ ./NavWeapS.inl \
+ ./NavWeapS_T.cpp \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl
+
+CLEANFILES += \
+ ./NavWeap-stamp \
+ ./NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.cpp \
+ ./NavWeapS.h \
+ ./NavWeapS.inl \
+ ./NavWeapS_T.cpp \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl
+
+./NavWeapC.cpp ./NavWeapC.h ./NavWeapC.inl ./NavWeapS.cpp ./NavWeapS.h ./NavWeapS.inl ./NavWeapS_T.cpp ./NavWeapS_T.h ./NavWeapS_T.inl: ./NavWeap-stamp
+
+./NavWeap-stamp: $(srcdir)/../NavWeap.idl $(TAO_IDL_DEP)
+ mkdir -p .
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/../NavWeap.idl
+ @touch $@
+
noinst_PROGRAMS += Logging_Sup
Logging_Sup_CPPFLAGS = \
@@ -187,9 +288,15 @@ Logging_Sup_CPPFLAGS = \
-I$(TAO_BUILDDIR)/orbsvcs
Logging_Sup_SOURCES = \
+ ./NavWeapC.cpp \
+ ./NavWeapS.cpp \
DOVE_Supplier.cpp \
Logging_Sup.cpp \
- NavWeapC.cpp \
+ ./NavWeapC.h \
+ ./NavWeapC.inl \
+ ./NavWeapS.h \
+ ./NavWeapS_T.h \
+ ./NavWeapS_T.inl \
DOVE_Supplier.h \
Logging_Sup.h
diff --git a/TAO/examples/TypeCode_Creation/main.cpp b/TAO/examples/TypeCode_Creation/main.cpp
index b811e0b9aca..37cde53d55f 100644
--- a/TAO/examples/TypeCode_Creation/main.cpp
+++ b/TAO/examples/TypeCode_Creation/main.cpp
@@ -3,15 +3,18 @@
#include "testC.h"
#include "tao/IFR_Client/IFR_BasicC.h"
#include "tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(TypeCode_Creation, main, "$Id$")
-int main(int argc, char *argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/ior_corbaloc/Makefile.am b/TAO/examples/ior_corbaloc/Makefile.am
index ab821b51df0..45f9cfb65a5 100644
--- a/TAO/examples/ior_corbaloc/Makefile.am
+++ b/TAO/examples/ior_corbaloc/Makefile.am
@@ -16,7 +16,7 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.ior_corbaloc_IDL.am
+## Makefile.ior_corbaloc_client.am
BUILT_SOURCES = \
corbalocC.cpp \
@@ -44,15 +44,9 @@ CLEANFILES = \
corbalocC.cpp corbalocC.h corbalocC.inl corbalocS.cpp corbalocS.h corbalocS.inl corbalocS_T.cpp corbalocS_T.h corbalocS_T.inl: corbaloc-stamp
corbaloc-stamp: $(srcdir)/corbaloc.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/corbaloc.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/corbaloc.idl
@touch $@
-
-noinst_HEADERS = \
- corbaloc.idl
-
-## Makefile.ior_corbaloc_client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -66,10 +60,17 @@ client_CPPFLAGS = \
client_SOURCES = \
client.cpp \
corbalocC.cpp \
+ corbalocS.cpp \
ior_corbaloc_client_i.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.h \
+ corbalocS_T.h \
+ corbalocS_T.inl \
ior_corbaloc_client_i.h
client_LDADD = \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
@@ -77,26 +78,95 @@ client_LDADD = \
## Makefile.ior_corbaloc_corbaname_client.am
+BUILT_SOURCES += \
+ corbalocC.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.cpp \
+ corbalocS.h \
+ corbalocS.inl \
+ corbalocS_T.cpp \
+ corbalocS_T.h \
+ corbalocS_T.inl
+
+CLEANFILES += \
+ corbaloc-stamp \
+ corbalocC.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.cpp \
+ corbalocS.h \
+ corbalocS.inl \
+ corbalocS_T.cpp \
+ corbalocS_T.h \
+ corbalocS_T.inl
+
+corbalocC.cpp corbalocC.h corbalocC.inl corbalocS.cpp corbalocS.h corbalocS.inl corbalocS_T.cpp corbalocS_T.h corbalocS_T.inl: corbaloc-stamp
+
+corbaloc-stamp: $(srcdir)/corbaloc.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/corbaloc.idl
+ @touch $@
+
noinst_PROGRAMS += corbaname_client
corbaname_client_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
+ -I$(TAO_BUILDDIR) \
+ -I$(TAO_ROOT)/orbsvcs \
+ -I$(TAO_BUILDDIR)/orbsvcs
corbaname_client_SOURCES = \
corbalocC.cpp \
+ corbalocS.cpp \
corbaname_client.cpp \
- ior_corbaloc_client_i.h \
+ status_i.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.h \
+ corbalocS_T.h \
+ corbalocS_T.inl \
status_i.h
corbaname_client_LDADD = \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
+ $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.ior_corbaloc_server.am
+BUILT_SOURCES += \
+ corbalocC.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.cpp \
+ corbalocS.h \
+ corbalocS.inl \
+ corbalocS_T.cpp \
+ corbalocS_T.h \
+ corbalocS_T.inl
+
+CLEANFILES += \
+ corbaloc-stamp \
+ corbalocC.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.cpp \
+ corbalocS.h \
+ corbalocS.inl \
+ corbalocS_T.cpp \
+ corbalocS_T.h \
+ corbalocS_T.inl
+
+corbalocC.cpp corbalocC.h corbalocC.inl corbalocS.cpp corbalocS.h corbalocS.inl corbalocS_T.cpp corbalocS_T.h corbalocS_T.inl: corbaloc-stamp
+
+corbaloc-stamp: $(srcdir)/corbaloc.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs $(srcdir)/corbaloc.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -112,6 +182,11 @@ server_SOURCES = \
corbalocS.cpp \
server.cpp \
status_i.cpp \
+ corbalocC.h \
+ corbalocC.inl \
+ corbalocS.h \
+ corbalocS_T.h \
+ corbalocS_T.inl \
status_i.h
server_LDADD = \
diff --git a/TAO/examples/ior_corbaloc/client.cpp b/TAO/examples/ior_corbaloc/client.cpp
index 1cbae2ff35e..6c0c946cc87 100644
--- a/TAO/examples/ior_corbaloc/client.cpp
+++ b/TAO/examples/ior_corbaloc/client.cpp
@@ -18,9 +18,12 @@
// ============================================================================
#include "ior_corbaloc_client_i.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -29,7 +32,7 @@ int main (int argc, char *argv [])
IOR_corbaloc_Client_i client;
int init_result;
- init_result = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ init_result = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (init_result == 0)
diff --git a/TAO/examples/ior_corbaloc/corbaname_client.cpp b/TAO/examples/ior_corbaloc/corbaname_client.cpp
index 80c352cb9fa..0ad26d5ee23 100644
--- a/TAO/examples/ior_corbaloc/corbaname_client.cpp
+++ b/TAO/examples/ior_corbaloc/corbaname_client.cpp
@@ -12,19 +12,21 @@
*/
//=============================================================================
-#include "corbalocC.h"
+#include "ior_corbaloc_client_i.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// First initialize the ORB, that will remove some arguments...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"" /* the ORB name, it can be anything! */
ACE_ENV_ARG_PARAMETER);
@@ -38,7 +40,7 @@ int main (int argc, char *argv [])
// Get an object reference using a corbaname: style URL
CORBA::Object_var obj =
- orb->string_to_object (argv[1]
+ orb->string_to_object (convert.get_ASCII_argv()[1]
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/examples/ior_corbaloc/ior_corbaloc.mpc b/TAO/examples/ior_corbaloc/ior_corbaloc.mpc
index 84647e7b5a1..e461065f445 100644
--- a/TAO/examples/ior_corbaloc/ior_corbaloc.mpc
+++ b/TAO/examples/ior_corbaloc/ior_corbaloc.mpc
@@ -1,48 +1,24 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults {
- IDL_Files {
- corbaloc.idl
- }
- custom_only = 1
-}
-
project(*server): namingexe, portableserver {
- exename = server
-
- after += *IDL
Source_Files {
status_i.cpp
server.cpp
- corbalocS.cpp
- corbalocC.cpp
- }
- IDL_Files {
}
}
-project(*client): namingexe {
- exename = client
-
- after += *IDL
+project(*client): namingexe, portableserver {
Source_Files {
ior_corbaloc_client_i.cpp
client.cpp
- corbalocC.cpp
- }
- IDL_Files {
}
}
-project(*corbaname client): taoclient {
- exename = corbaname_client
-
- after += *IDL
+project(*corbaname client): namingexe, portableserver {
Source_Files {
+ status_i.cpp
corbaname_client.cpp
- corbalocC.cpp
- }
- IDL_Files {
}
}
+
diff --git a/TAO/examples/ior_corbaloc/server.cpp b/TAO/examples/ior_corbaloc/server.cpp
index b5351d69be2..fcf73639625 100644
--- a/TAO/examples/ior_corbaloc/server.cpp
+++ b/TAO/examples/ior_corbaloc/server.cpp
@@ -4,15 +4,18 @@
#include "status_i.h"
#include "tao/PortableServer/PortableServer.h"
#include "orbsvcs/CosNamingC.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// First initialize the ORB, that will remove some arguments...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"" /* the ORB name, it can be anything! */
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -43,7 +46,7 @@ int main (int argc, char* argv[])
// Create the servant
corbaloc_Status_i status_i;
- status_i.set_name (argv[1]);
+ status_i.set_name (convert.get_ASCII_argv()[1]);
// Activate it to obtain the reference
corbaloc::Status_var status =
status_i._this ();
diff --git a/TAO/examples/mfc/client.cpp b/TAO/examples/mfc/client.cpp
index bc4b918404d..a25399ef526 100644
--- a/TAO/examples/mfc/client.cpp
+++ b/TAO/examples/mfc/client.cpp
@@ -2,19 +2,20 @@
#include "w32_testS.h"
#include "ace/streams.h"
-
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
const char *orb_name = "";
ACE_DEBUG ((LM_DEBUG,
"Initializing the ORB!\n"));
- CORBA::ORB_var the_orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var the_orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
orb_name
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/interop-tests/wchar/Makefile.am b/TAO/interop-tests/wchar/Makefile.am
index a999bd8b72f..0a382f2f055 100644
--- a/TAO/interop-tests/wchar/Makefile.am
+++ b/TAO/interop-tests/wchar/Makefile.am
@@ -16,13 +16,12 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-## Makefile.interop_wchar_IDL.am
+## Makefile.Interop_Wchar_Client.am
BUILT_SOURCES = \
interop_wcharC.cpp \
interop_wcharC.h \
interop_wcharC.inl \
- interop_wcharS.cpp \
interop_wcharS.h \
interop_wcharS.inl \
interop_wcharS_T.cpp \
@@ -34,25 +33,18 @@ CLEANFILES = \
interop_wcharC.cpp \
interop_wcharC.h \
interop_wcharC.inl \
- interop_wcharS.cpp \
interop_wcharS.h \
interop_wcharS.inl \
interop_wcharS_T.cpp \
interop_wcharS_T.h \
interop_wcharS_T.inl
-interop_wcharC.cpp interop_wcharC.h interop_wcharC.inl interop_wcharS.cpp interop_wcharS.h interop_wcharS.inl interop_wcharS_T.cpp interop_wcharS_T.h interop_wcharS_T.inl: interop_wchar-stamp
+interop_wcharC.cpp interop_wcharC.h interop_wcharC.inl interop_wcharS.h interop_wcharS.inl interop_wcharS_T.cpp interop_wcharS_T.h interop_wcharS_T.inl: interop_wchar-stamp
interop_wchar-stamp: $(srcdir)/interop_wchar.idl $(TAO_IDL_DEP)
$(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/interop_wchar.idl
@touch $@
-
-noinst_HEADERS = \
- interop_wchar.idl
-
-## Makefile.Interop_Wchar_Client.am
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -65,6 +57,11 @@ client_SOURCES = \
client.cpp \
interop_wcharC.cpp \
wchar_reference.cpp \
+ interop_wcharC.h \
+ interop_wcharC.inl \
+ interop_wcharS.h \
+ interop_wcharS_T.h \
+ interop_wcharS_T.inl \
wchar_reference.h
client_LDADD = \
@@ -74,6 +71,35 @@ client_LDADD = \
## Makefile.Interop_Wchar_Server.am
+BUILT_SOURCES += \
+ interop_wcharC.cpp \
+ interop_wcharC.h \
+ interop_wcharC.inl \
+ interop_wcharS.cpp \
+ interop_wcharS.h \
+ interop_wcharS.inl \
+ interop_wcharS_T.cpp \
+ interop_wcharS_T.h \
+ interop_wcharS_T.inl
+
+CLEANFILES += \
+ interop_wchar-stamp \
+ interop_wcharC.cpp \
+ interop_wcharC.h \
+ interop_wcharC.inl \
+ interop_wcharS.cpp \
+ interop_wcharS.h \
+ interop_wcharS.inl \
+ interop_wcharS_T.cpp \
+ interop_wcharS_T.h \
+ interop_wcharS_T.inl
+
+interop_wcharC.cpp interop_wcharC.h interop_wcharC.inl interop_wcharS.cpp interop_wcharS.h interop_wcharS.inl interop_wcharS_T.cpp interop_wcharS_T.h interop_wcharS_T.inl: interop_wchar-stamp
+
+interop_wchar-stamp: $(srcdir)/interop_wchar.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) $(srcdir)/interop_wchar.idl
+ @touch $@
+
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -88,6 +114,11 @@ server_SOURCES = \
interop_wchar_i.cpp \
server.cpp \
wchar_reference.cpp \
+ interop_wcharC.h \
+ interop_wcharC.inl \
+ interop_wcharS.h \
+ interop_wcharS_T.h \
+ interop_wcharS_T.inl \
interop_wchar_i.h \
wchar_reference.h
diff --git a/TAO/interop-tests/wchar/client.cpp b/TAO/interop-tests/wchar/client.cpp
index c7ebabb7368..4eef48b2227 100644
--- a/TAO/interop-tests/wchar/client.cpp
+++ b/TAO/interop-tests/wchar/client.cpp
@@ -269,7 +269,7 @@ run_tests (interop::WChar_Passer_ptr server ACE_ENV_ARG_DECL)
int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("k:t:vx"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("k:t:vx"));
int c;
while ((c = get_opts ()) != -1)
switch (c)
@@ -329,11 +329,11 @@ ACE_TMAIN( int argc, ACE_TCHAR *argv[] )
ACE_Argv_Type_Converter command_line(argc, argv);
// Initialize orb
CORBA::ORB_var orb = CORBA::ORB_init( command_line.get_argc(), command_line.get_ASCII_argv() );
- if (parse_args(argc, argv) == -1)
+ if (parse_args(command_line.get_argc(), command_line.get_TCHAR_argv()) == -1)
return 0;
// Destringify ior
- CORBA::Object_var obj = orb->string_to_object( ACE_TEXT_ALWAYS_CHAR(ior) ACE_ENV_ARG_PARAMETER);
+ CORBA::Object_var obj = orb->string_to_object( ACE_TEXT_TO_CHAR_IN(ior) ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if( CORBA::is_nil( obj.in() ) )
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/interop-tests/wchar/interop_wchar.mpc b/TAO/interop-tests/wchar/interop_wchar.mpc
index 1e82e0edc94..a6175869bf6 100644
--- a/TAO/interop-tests/wchar/interop_wchar.mpc
+++ b/TAO/interop-tests/wchar/interop_wchar.mpc
@@ -1,33 +1,18 @@
// -*- MPC -*-
// $Id$
-project(*IDL): taoidldefaults, anytypecode {
- IDL_Files {
- interop_wchar.idl
- }
- custom_only = 1
-}
-
project(*Server): taoserver {
- after += *IDL
Source_Files {
interop_wchar_i.cpp
wchar_reference.cpp
server.cpp
- interop_wcharS.cpp
- interop_wcharC.cpp
- }
- IDL_Files {
}
}
project(*Client): taoclient, anytypecode {
- after += *IDL
Source_Files {
interop_wcharC.cpp
wchar_reference.cpp
client.cpp
}
- IDL_Files {
- }
}
diff --git a/TAO/interop-tests/wchar/server.cpp b/TAO/interop-tests/wchar/server.cpp
index 8b464c4cbd5..2d1df52feda 100644
--- a/TAO/interop-tests/wchar/server.cpp
+++ b/TAO/interop-tests/wchar/server.cpp
@@ -27,7 +27,7 @@ int
parse_args (int argc, ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("o:v"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("o:v"));
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/interop-tests/wchar/wchar_reference.cpp b/TAO/interop-tests/wchar/wchar_reference.cpp
index 0ca0384c81b..431517673a2 100644
--- a/TAO/interop-tests/wchar/wchar_reference.cpp
+++ b/TAO/interop-tests/wchar/wchar_reference.cpp
@@ -23,19 +23,19 @@
#if defined (ACE_HAS_WCHAR) || defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
-ACE_OS::WChar
+wchar_t
wchar_reference::ref_wchar[NUM_KEYS] =
{1234};
-const ACE_OS::WChar *
+const wchar_t *
wchar_reference::ref_wstring[NUM_KEYS] =
{L"have a nice day"};
-ACE_OS::WChar
+wchar_t
wchar_reference::ref_warray[NUM_KEYS][10] =
{ {L'a',L'A',L'!',L'1',L'4',L'[',L'?',L'%',L'X',L'E'} };
-const ACE_OS::WChar *
+const wchar_t *
wchar_reference::ref_except[NUM_KEYS] =
{L"TEST EXCEPTION"};
@@ -50,19 +50,19 @@ wchar_reference::set_verbose(int v)
this->verbose_ = v;
}
-ACE_OS::WChar
+wchar_t
wchar_reference::get_wchar (short key)
{
return wchar_reference::ref_wchar[key];
}
-const ACE_OS::WChar *
+const wchar_t *
wchar_reference::get_wstring (short key)
{
return wchar_reference::ref_wstring[key];
}
-ACE_OS::WChar *
+wchar_t *
wchar_reference::get_warray (short key)
{
return wchar_reference::ref_warray[key];
@@ -70,22 +70,22 @@ wchar_reference::get_warray (short key)
void
wchar_reference::assign_warray (short key,
- ACE_OS::WChar *warray)
+ wchar_t *warray)
{
ACE_OS::memcpy(warray,
wchar_reference::ref_warray[key],
- 10*(sizeof(ACE_OS::WChar))
+ 10*(sizeof(wchar_t))
);
}
-const ACE_OS::WChar *
+const wchar_t *
wchar_reference::get_except (short key)
{
return wchar_reference::ref_except[key];
}
int
-wchar_reference::match_wchar (short key, ACE_OS::WChar test)
+wchar_reference::match_wchar (short key, wchar_t test)
{
if (verbose_)
ACE_DEBUG ((LM_DEBUG,
@@ -95,7 +95,7 @@ wchar_reference::match_wchar (short key, ACE_OS::WChar test)
}
int
-wchar_reference::match_wstring (short key, const ACE_OS::WChar *test)
+wchar_reference::match_wstring (short key, const wchar_t *test)
{
if (key == -1)
{
@@ -114,7 +114,7 @@ wchar_reference::match_wstring (short key, const ACE_OS::WChar *test)
}
int
-wchar_reference::match_warray (short key, const ACE_OS::WChar *test)
+wchar_reference::match_warray (short key, const wchar_t *test)
{
if (verbose_)
ACE_DEBUG ((LM_DEBUG,
@@ -133,7 +133,7 @@ wchar_reference::match_warray (short key, const ACE_OS::WChar *test)
}
int
-wchar_reference::match_except(short key, const ACE_OS::WChar *test)
+wchar_reference::match_except(short key, const wchar_t *test)
{
if (verbose_)
ACE_DEBUG ((LM_DEBUG,
@@ -153,19 +153,19 @@ wchar_reference::set_verbose(int v)
this->verbose_ = v;
}
-ACE_OS::WChar
+wchar_t
wchar_reference::get_wchar (short )
{
return 0;
}
-const ACE_OS::WChar *
+const wchar_t *
wchar_reference::get_wstring (short )
{
return 0;
}
-ACE_OS::WChar *
+wchar_t *
wchar_reference::get_warray (short )
{
return 0;
@@ -173,30 +173,30 @@ wchar_reference::get_warray (short )
void
wchar_reference::assign_warray (short ,
- ACE_OS::WChar *)
+ wchar_t *)
{
}
-const ACE_OS::WChar *
+const wchar_t *
wchar_reference::get_except (short )
{
return 0;
}
int
-wchar_reference::match_wchar (short , ACE_OS::WChar )
+wchar_reference::match_wchar (short , wchar_t )
{
return 0;
}
int
-wchar_reference::match_wstring (short , const ACE_OS::WChar *)
+wchar_reference::match_wstring (short , const wchar_t *)
{
return 0;
}
int
-wchar_reference::match_warray (short , const ACE_OS::WChar *)
+wchar_reference::match_warray (short , const wchar_t *)
{
return 0;
}
diff --git a/TAO/interop-tests/wchar/wchar_reference.h b/TAO/interop-tests/wchar/wchar_reference.h
index 735eb81563f..d731d60bda1 100644
--- a/TAO/interop-tests/wchar/wchar_reference.h
+++ b/TAO/interop-tests/wchar/wchar_reference.h
@@ -30,24 +30,24 @@ class wchar_reference
public:
wchar_reference (int v = 0);
void set_verbose (int v);
- ACE_OS::WChar get_wchar (short key);
- const ACE_OS::WChar *get_wstring (short key);
- ACE_OS::WChar *get_warray (short key);
- void assign_warray (short key, ACE_OS::WChar *warray);
+ wchar_t get_wchar (short key);
+ const wchar_t *get_wstring (short key);
+ wchar_t *get_warray (short key);
+ void assign_warray (short key, wchar_t *warray);
- const ACE_OS::WChar *get_except (short key);
+ const wchar_t *get_except (short key);
- int match_wchar (short key, ACE_OS::WChar test);
- int match_wstring (short key, const ACE_OS::WChar* test);
- int match_warray (short key, const ACE_OS::WChar *test);
- int match_except (short key, const ACE_OS::WChar *test);
+ int match_wchar (short key, wchar_t test);
+ int match_wstring (short key, const wchar_t* test);
+ int match_warray (short key, const wchar_t *test);
+ int match_except (short key, const wchar_t *test);
private:
#if defined (ACE_HAS_WCHAR) || defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
- static ACE_OS::WChar ref_wchar[NUM_KEYS];
- static const ACE_OS::WChar *ref_wstring[NUM_KEYS];
- static ACE_OS::WChar ref_warray[NUM_KEYS][10];
- static const ACE_OS::WChar *ref_except[NUM_KEYS];
+ static wchar_t ref_wchar[NUM_KEYS];
+ static const wchar_t *ref_wstring[NUM_KEYS];
+ static wchar_t ref_warray[NUM_KEYS][10];
+ static const wchar_t *ref_except[NUM_KEYS];
#endif // ACE_HAS_WCHAR
int verbose_;
};
diff --git a/TAO/m4/tao.m4 b/TAO/m4/tao.m4
deleted file mode 100644
index 1441e8b5316..00000000000
--- a/TAO/m4/tao.m4
+++ /dev/null
@@ -1,88 +0,0 @@
-dnl -------------------------------------------------------------------------
-dnl $Id$
-dnl
-dnl tao.m4
-dnl
-dnl ACE M4 include file which contains TAO specific M4 macros
-dnl for enabling/disabling certain TAO features.
-dnl
-dnl -------------------------------------------------------------------------
-
-dnl Copyright (C) 1998, 1999, 2000, 2002 Ossama Othman
-dnl
-dnl All Rights Reserved
-dnl
-dnl This library is free software; you can redistribute it and/or
-dnl modify it under the current ACE distribution terms.
-dnl
-dnl This library is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-
-AC_DEFUN([TAO_ENABLE_MINIMUM_CORBA],
-[AC_ARG_ENABLE([minimum-corba],
- AS_HELP_STRING([--enable-minimum-corba],
- [build TAO with minimum corba support [[[no]]]]),
-[
-case "${enableval}" in
- yes)
- tao_user_enable_minimum_corba=yes
- ;;
- no)
- tao_user_enable_minimum_corba=no
- ;;
- *)
- AC_MSG_ERROR([bad value ${enableval} for --enable-minimum-corba])
- ;;
-esac
-],[
-tao_user_enable_minimum_corba=no
-])
-AM_CONDITIONAL([BUILD_MINIMUM_CORBA],
- [test X$tao_user_enable_minimum_corba = Xyes])
-])
-
-AC_DEFUN([TAO_ENABLE_EXAMPLES],
-[AC_ARG_ENABLE([tao-examples],
- AS_HELP_STRING([--enable-tao-examples],
- [build TAO examples [[[yes]]]]),
-[
-case "${enableval}" in
- yes)
- tao_build_examples=yes
- ;;
- no)
- tao_build_examples=no
- ;;
- *)
- AC_MSG_ERROR([bad value ${enableval} for --enable-tao-examples])
- ;;
-esac
-],[
-tao_build_examples=yes
-])
-AM_CONDITIONAL([BUILD_EXAMPLES], [test X$tao_build_examples = Xyes])
-])
-
-AC_DEFUN([TAO_ENABLE_TESTS],
-[AC_ARG_ENABLE([tao-tests],
- AS_HELP_STRING([--enable-tao-tests],
- [build TAO tests [[[yes]]]]),
-[
-case "${enableval}" in
- yes)
- tao_build_tests=yes
- ;;
- no)
- tao_build_tests=no
- ;;
- *)
- AC_MSG_ERROR([bad value ${enableval} for --enable-tao-tests])
- ;;
-esac
-],[
-tao_build_tests=yes
-])
-AM_CONDITIONAL([BUILD_TESTS], [test X$tao_build_tests = Xyes])
-])
diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp
index a3245dae921..e6021aa0f2b 100644
--- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp
+++ b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.cpp
@@ -31,9 +31,7 @@ ACE_RCSID(Concurrency_Service,
// Default Constructor.
Concurrency_Service::Concurrency_Service (void)
- : use_naming_service_ (1),
- ior_file_name_ (0),
- pid_file_name_ (0)
+ : use_naming_service_ (1)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Concurrency_Service::Concurrency_Service (void)\n")));
@@ -56,7 +54,7 @@ Concurrency_Service::parse_args (int argc, ACE_TCHAR** argv)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Concurrency_Service::parse_args\n")));
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("do:p:s"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("do:p:s"));
int c;
while ((c = get_opts ()) != -1)
@@ -66,10 +64,10 @@ Concurrency_Service::parse_args (int argc, ACE_TCHAR** argv)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file
- this->ior_file_name_ = get_opts.opt_arg();
+ this->ior_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg()));
break;
case 'p':
- this->pid_file_name_ = get_opts.opt_arg();
+ this->pid_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg()));
break;
case 's':
this->use_naming_service_ = 0;
@@ -119,16 +117,16 @@ Concurrency_Service::init (int argc,
ACE_ENV_ARG_PARAMETER);
ACE_DEBUG ((LM_DEBUG,
"The IOR is: <%s>\n",
- ACE_TEXT_CHAR_TO_TCHAR(str.in ())));
+ ACE_TEXT_TO_TCHAR_IN(str.in ())));
- if (this->ior_file_name_ != 0)
+ if (this->ior_file_name_.length() != 0)
{
- FILE* iorf = ACE_OS::fopen (ior_file_name_, ACE_TEXT("w"));
+ FILE* iorf = ACE_OS::fopen (ior_file_name_.fast_rep(), ACE_TEXT("w"));
if (iorf == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
- ior_file_name_),
+ ior_file_name_.c_str()),
-1);
}
@@ -136,9 +134,9 @@ Concurrency_Service::init (int argc,
ACE_OS::fclose (iorf);
}
- if (this->pid_file_name_ != 0)
+ if (this->pid_file_name_.length() != 0)
{
- FILE* pidf = ACE_OS::fopen (pid_file_name_, ACE_TEXT("w"));
+ FILE* pidf = ACE_OS::fopen (pid_file_name_.fast_rep(), ACE_TEXT("w"));
if (pidf != 0)
{
ACE_OS::fprintf (pidf,
diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h
index ccd0fe73930..570c6f1fa2c 100644
--- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h
+++ b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.h
@@ -74,10 +74,10 @@ private:
int use_naming_service_;
// Flag to tell wheter the naming service will be used.
- const char *ior_file_name_;
+ ACE_CString ior_file_name_;
// The name of the file where we output the IOR.
- const char *pid_file_name_;
+ ACE_CString pid_file_name_;
// The name of a file where the process stores its pid.
TAO_ORB_Manager orb_manager_;
diff --git a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.mpc b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.mpc
index f18e0fc5ba6..32c594fa4db 100644
--- a/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.mpc
+++ b/TAO/orbsvcs/Concurrency_Service/Concurrency_Service.mpc
@@ -1,6 +1,6 @@
// -*- MPC -*-
// $Id$
-project : orbsvcsexe, core, concurrency_serv, naming, utils {
+project : orbsvcsexe, core, concurrency, naming, utils {
exename = Concurrency_Service
}
diff --git a/TAO/orbsvcs/Concurrency_Service/Makefile.am b/TAO/orbsvcs/Concurrency_Service/Makefile.am
index 44759e6e961..b1fbdf6f104 100644
--- a/TAO/orbsvcs/Concurrency_Service/Makefile.am
+++ b/TAO/orbsvcs/Concurrency_Service/Makefile.am
@@ -34,10 +34,8 @@ Concurrency_Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosConcurrency_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosConcurrency_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosConcurrency.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
diff --git a/TAO/orbsvcs/CosEvent_Service/CosEvent_Service.mpc b/TAO/orbsvcs/CosEvent_Service/CosEvent_Service.mpc
index 90263aae047..2bdb8761528 100644
--- a/TAO/orbsvcs/CosEvent_Service/CosEvent_Service.mpc
+++ b/TAO/orbsvcs/CosEvent_Service/CosEvent_Service.mpc
@@ -1,6 +1,6 @@
// -*- MPC -*-
// $Id$
-project : orbsvcsexe, core, naming, event_serv, svc_utils, iortable, messaging_optional, portableserver {
+project : orbsvcsexe, core, naming, event_serv, svc_utils, iortable, messaging, portableserver {
exename = CosEvent_Service
}
diff --git a/TAO/orbsvcs/Event_Service/Event_Service.cpp b/TAO/orbsvcs/Event_Service/Event_Service.cpp
index 0ef63352dd9..884745a7b8a 100644
--- a/TAO/orbsvcs/Event_Service/Event_Service.cpp
+++ b/TAO/orbsvcs/Event_Service/Event_Service.cpp
@@ -265,7 +265,7 @@ Event_Service::run (int argc, ACE_TCHAR* argv[])
if (ACE_OS::strcmp(this->ior_file_name_.c_str(), "") != 0)
{
FILE *output_file=
- ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(this->ior_file_name_.c_str()),
+ ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(this->ior_file_name_.c_str()),
ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -279,7 +279,7 @@ Event_Service::run (int argc, ACE_TCHAR* argv[])
if (ACE_OS::strcmp(this->pid_file_name_.c_str(), "") != 0)
{
FILE *pidf =
- ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(this->pid_file_name_.c_str()),
+ ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(this->pid_file_name_.c_str()),
ACE_TEXT("w"));
if (pidf != 0)
{
@@ -292,7 +292,7 @@ Event_Service::run (int argc, ACE_TCHAR* argv[])
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("The EC IOR is <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(str.in ())));
+ ACE_TEXT_TO_TCHAR_IN(str.in ())));
if (bind_to_naming_service_ && !CORBA::is_nil (naming_context.in ()))
{
@@ -305,7 +305,7 @@ Event_Service::run (int argc, ACE_TCHAR* argv[])
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("%s; running event service\n"),
- ACE_TEXT_CHAR_TO_TCHAR(__FILE__)));
+ ACE_TEXT_TO_TCHAR_IN(__FILE__)));
this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -343,7 +343,7 @@ Event_Service::parse_args (int argc, ACE_TCHAR* argv [])
// default values...
this->service_name_ = "EventService";
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:o:p:s:q:bx"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:o:p:s:q:bx"));
int opt;
while ((opt = get_opt ()) != EOF)
@@ -351,18 +351,18 @@ Event_Service::parse_args (int argc, ACE_TCHAR* argv [])
switch (opt)
{
case 'n':
- this->service_name_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->service_name_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
case 'o':
- this->ior_file_name_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->ior_file_name_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
break;
case 'p':
- this->pid_file_name_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->pid_file_name_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
break;
case 'q':
- this->object_id_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->object_id_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
break;
case 'b':
diff --git a/TAO/orbsvcs/Event_Service/Makefile.am b/TAO/orbsvcs/Event_Service/Makefile.am
index 164badc3b27..493b761ff98 100644
--- a/TAO/orbsvcs/Event_Service/Makefile.am
+++ b/TAO/orbsvcs/Event_Service/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Event_Service.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
bin_PROGRAMS = Event_Service
@@ -51,7 +50,6 @@ Event_Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.cpp b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.cpp
index add3c0f5153..bf2db753fd0 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.cpp
+++ b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.cpp
@@ -143,7 +143,7 @@ FT_EventService::parse_args (int argc, ACE_TCHAR* argv [])
if (n_threads)
this->num_threads_ = ACE_OS::atoi(n_threads);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("d:jn:ps:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("d:jn:ps:"));
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.h b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.h
index 9238edf51b0..64fd3722ff6 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.h
+++ b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/FT_EventService.h
@@ -18,12 +18,10 @@
#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h"
#include "TP_Task.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace POA_RtecScheduler
{
class Scheduler;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
class FT_EventService : private TAO_FTEC_Become_Primary_Listener
{
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am
index 0b8b0ad326b..9445c3fe356 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am
+++ b/TAO/orbsvcs/FTRT_Event_Service/Event_Service/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.FTRT_Event_Service.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = ftrt_eventservice
@@ -62,7 +61,6 @@ ftrt_eventservice_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/EventChannelFactory_i.cpp b/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/EventChannelFactory_i.cpp
index b4febf2f835..9a2ae93019f 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/EventChannelFactory_i.cpp
+++ b/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/EventChannelFactory_i.cpp
@@ -122,9 +122,9 @@ CORBA::Object_ptr EventChannelFactory_i::create_process (
str = process_str;
const int ENV_BUF_LEN = 512;
- char buf[ENV_BUF_LEN];
+ ACE_TCHAR buf[ENV_BUF_LEN];
server_addr.addr_to_string(buf,ENV_BUF_LEN,0);
- options.setenv("EventChannelFactoryAddr", buf);
+ options.setenv(ACE_TEXT("EventChannelFactoryAddr"), buf);
// extract the object ID from the criteria
for (size_t i = 0; i < the_criteria.length(); ++i)
@@ -135,10 +135,10 @@ CORBA::Object_ptr EventChannelFactory_i::create_process (
const char* id_str = name[0].id.in();
the_criteria[i].val >>= val;
if (id_str[0] != '-') // environment variable
- options.setenv(id_str, "%s", val);
+ options.setenv(ACE_TEXT_TO_TCHAR_IN(id_str), "%s", val);
else {// command line option
- ACE_OS::sprintf(buf, " %s %s", id_str, val);
- str += buf;
+ ACE_OS::sprintf(buf, ACE_TEXT(" %s %s"), id_str, val);
+ str += ACE_TEXT_TO_CHAR_IN(buf);
}
}
}
@@ -178,7 +178,7 @@ CORBA::Object_ptr EventChannelFactory_i::create_process (
char ior[5000] = {'0'};
int n = 0;
int byteRead=0;
- while (0 != (n = stream.recv(ior+byteRead, 5000-byteRead))) {
+ while ((n = stream.recv(ior+byteRead, 5000-byteRead))) {
byteRead += n;
}
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/FTRTEC_Factory_Service.cpp b/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/FTRTEC_Factory_Service.cpp
index e2189bb34db..5762af36ef1 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/FTRTEC_Factory_Service.cpp
+++ b/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/FTRTEC_Factory_Service.cpp
@@ -4,6 +4,7 @@
#include "ace/Task.h"
#include "ace/SString.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Factory_Service,
FTRTEC_Factory_Service,
@@ -13,9 +14,9 @@ namespace {
ACE_CString id, kind, output;
}
-int parse_args(int argc, char* argv[])
+int parse_args(int argc, ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("i:k:o:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:k:o:"));
int opt;
int result = 0;
@@ -24,13 +25,13 @@ int parse_args(int argc, char* argv[])
switch (opt)
{
case 'i':
- id = get_opt.opt_arg ();
+ id.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg ()));
break;
case 'k':
- kind = get_opt.opt_arg ();
+ kind.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg ()));
break;
case 'o':
- output = get_opt.opt_arg ();
+ output.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg ()));
break;
default:
result = -1;
@@ -52,16 +53,17 @@ int parse_args(int argc, char* argv[])
return 0;
}
-int main(int argc, ACE_TCHAR* argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY {
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, ""
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args(argc, argv) == -1)
+ if (parse_args(convert.get_argc(), convert.get_TCHAR_argv()) == -1)
return -1;
CORBA::Object_var obj =
@@ -125,7 +127,7 @@ int main(int argc, ACE_TCHAR* argv[])
if (ACE_OS::strcmp(output.c_str(), "") != 0)
{
FILE *output_file=
- ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(output.c_str()),
+ ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(output.c_str()),
ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am b/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am
index 288cb2ba9f0..520e6d6aec8 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am
+++ b/TAO/orbsvcs/FTRT_Event_Service/Factory_Service/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = ftrtec_factory_service
@@ -60,7 +59,6 @@ ftrtec_factory_service_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/FTRTEC_Gateway_Service.cpp b/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/FTRTEC_Gateway_Service.cpp
index e431da580ae..2cd95f6e30a 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/FTRTEC_Gateway_Service.cpp
+++ b/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/FTRTEC_Gateway_Service.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "ace/SString.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h"
#include "orbsvcs/FtRtEvent/Utils/resolve_init.h"
/// include this file to statically linked with FT ORB
@@ -18,13 +19,13 @@ ACE_RCSID (Gateway_Service,
namespace {
CORBA::ORB_var orb;
FtRtecEventChannelAdmin::EventChannel_var ftec;
- ACE_CString ior_file_name;
+ ACE_TString ior_file_name;
}
int parse_args(int argc, ACE_TCHAR** argv)
{
ACE_TRY_NEW_ENV {
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("i:n:o:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:n:o:"));
int opt;
CosNaming::Name name(1);
name.length(1);
@@ -36,7 +37,7 @@ int parse_args(int argc, ACE_TCHAR** argv)
{
case 'i':
{
- CORBA::Object_var obj = orb->string_to_object(get_opt.opt_arg ()
+ CORBA::Object_var obj = orb->string_to_object(ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ())
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ftec = FtRtecEventChannelAdmin::EventChannel::_narrow(obj.in()
@@ -48,7 +49,7 @@ int parse_args(int argc, ACE_TCHAR** argv)
name[0].id = CORBA::string_dup(get_opt.opt_arg ());
break;
case 'o':
- ior_file_name = get_opt.opt_arg ();
+ ior_file_name.set (get_opt.opt_arg ());
break;
}
}
@@ -79,13 +80,15 @@ int parse_args(int argc, ACE_TCHAR** argv)
int main(int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- orb = CORBA::ORB_init (argc, argv, ""
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args(argc, argv)==-1)
+ if (parse_args(convert.get_argc(), convert.get_TCHAR_argv())==-1)
return 1;
PortableServer::POA_var
@@ -115,7 +118,7 @@ int main(int argc, ACE_TCHAR** argv)
ACE_TRY_CHECK;
FILE *output_file=
- ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(ior_file_name.c_str()),
+ ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(ior_file_name.c_str()),
ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am b/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am
index 39ac299ed97..b31a1b82f0a 100644
--- a/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am
+++ b/TAO/orbsvcs/FTRT_Event_Service/Gateway_Service/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = ftrtec_gateway_service
@@ -59,7 +58,6 @@ ftrtec_gateway_service_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.cpp
index 03fc838db47..0691e8174f8 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.cpp
@@ -24,9 +24,6 @@ ACE_RCSID (FT_DefaultFaultAnalyzer,
FT_DefaultFaultAnalyzer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Default constructor.
TAO::FT_DefaultFaultAnalyzer::FT_DefaultFaultAnalyzer ()
{
@@ -70,12 +67,11 @@ int TAO::FT_DefaultFaultAnalyzer::validate_event_type (
if (TAO_debug_level > 6)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_DefaultFaultAnalyzer::validate_event_type: "
- "Received invalid event type.\n"
- "EventType domain: <%s>\n"
- "EventType type: <%s>\n"
- "EventName: <%s>\n"),
+ ACE_TEXT ("TAO::FT_DefaultFaultAnalyzer::validate_event_type: ")
+ ACE_TEXT ("Received invalid event type.\n")
+ ACE_TEXT ("EventType domain: <%s>\n")
+ ACE_TEXT ("EventType type: <%s>\n")
+ ACE_TEXT ("EventName: <%s>\n"),
domain_name.in(),
type_name.in(),
event_name.in()
@@ -110,10 +106,9 @@ int TAO::FT_DefaultFaultAnalyzer::validate_event_type (
if (TAO_debug_level > 6)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_DefaultFaultAnalyzer::validate_event_type: "
- "Received invalid structured event.\n"
- "filterable_data[0] must be \"FTDomainId\", not \"%s\"\n"),
+ ACE_TEXT ("TAO::FT_DefaultFaultAnalyzer::validate_event_type: ")
+ ACE_TEXT ("Received invalid structured event.\n")
+ ACE_TEXT ("filterable_data[0] must be \"FTDomainId\", not \"%s\"\n"),
event.filterable_data[0].name.in()
));
}
@@ -125,10 +120,9 @@ int TAO::FT_DefaultFaultAnalyzer::validate_event_type (
if (TAO_debug_level > 6)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_DefaultFaultAnalyzer::validate_event_type: "
- "Received invalid structured event.\n"
- "filterable_data[1] must be \"Location\", not \"%s\"\n"),
+ ACE_TEXT ("TAO::FT_DefaultFaultAnalyzer::validate_event_type: ")
+ ACE_TEXT ("Received invalid structured event.\n")
+ ACE_TEXT ("filterable_data[1] must be \"Location\", not \"%s\"\n"),
event.filterable_data[1].name.in()
));
}
@@ -140,11 +134,10 @@ int TAO::FT_DefaultFaultAnalyzer::validate_event_type (
if (TAO_debug_level > 6)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_DefaultFaultAnalyzer::validate_event_type: "
- "Received invalid structured event.\n"
- "There must be at least two name/value pairs in "
- "the filterable_data field, for \"FTDomainId\" and \"Location\".\n")
+ ACE_TEXT ("TAO::FT_DefaultFaultAnalyzer::validate_event_type: ")
+ ACE_TEXT ("Received invalid structured event.\n")
+ ACE_TEXT ("There must be at least two name/value pairs in ")
+ ACE_TEXT ("the filterable_data field, for \"FTDomainId\" and \"Location\".\n")
));
}
result = -1;
@@ -170,5 +163,3 @@ int TAO::FT_DefaultFaultAnalyzer::analyze_fault_event (
// no-op
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h b/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h
index 0901c34e63b..e5b1b0b8292 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h
@@ -28,8 +28,6 @@
#include "FT_ReplicationManagerLib_export.h"
#include "FT_FaultAnalyzer.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -82,8 +80,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_DEFAULT_FAULT_ANALYZER_H_ */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.cpp
index bd2d2d8d059..97f0af6e56c 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.cpp
@@ -17,8 +17,6 @@ ACE_RCSID (FT_FaultAnalyzer,
FT_FaultAnalyzer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Default constructor.
TAO::FT_FaultAnalyzer::FT_FaultAnalyzer ()
{
@@ -29,4 +27,3 @@ TAO::FT_FaultAnalyzer::~FT_FaultAnalyzer ()
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.h b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.h
index 253421fe577..814162e6662 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultAnalyzer.h
@@ -25,8 +25,6 @@
#include "FT_ReplicationManagerLib_export.h"
#include "orbsvcs/CosNotifyCommC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -81,8 +79,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_FAULT_ANALYZER_H_ */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp
index 5a08f15d6d9..88fe7abdc4d 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.cpp
@@ -25,9 +25,6 @@ ACE_RCSID (FT_FaultConsumer,
FT_FaultConsumer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Default constructor.
TAO::FT_FaultConsumer::FT_FaultConsumer ()
: poa_ (PortableServer::POA::_nil ())
@@ -145,9 +142,8 @@ int TAO::FT_FaultConsumer::fini (ACE_ENV_SINGLE_ARG_DECL)
if (TAO_debug_level > 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::fini: "
- "Disconnecting consumer from FaultNotifier.\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::fini: ")
+ ACE_TEXT ("Disconnecting consumer from FaultNotifier.\n")
));
}
@@ -158,9 +154,8 @@ int TAO::FT_FaultConsumer::fini (ACE_ENV_SINGLE_ARG_DECL)
if (TAO_debug_level > 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::fini: "
- "Deactivating from POA.\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::fini: ")
+ ACE_TEXT ("Deactivating from POA.\n")
));
}
@@ -173,9 +168,8 @@ int TAO::FT_FaultConsumer::fini (ACE_ENV_SINGLE_ARG_DECL)
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::fini: "
- "Error disconnecting from notifier (ignored).\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::fini: ")
+ ACE_TEXT ("Error disconnecting from notifier (ignored).\n")
);
}
ACE_ENDTRY;
@@ -184,9 +178,8 @@ int TAO::FT_FaultConsumer::fini (ACE_ENV_SINGLE_ARG_DECL)
if (TAO_debug_level > 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::fini: "
- "Setting our object reference to nil.\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::fini: ")
+ ACE_TEXT ("Setting our object reference to nil.\n")
));
}
@@ -234,9 +227,8 @@ void TAO::FT_FaultConsumer::push_structured_event (
if (TAO_debug_level > 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::push_structured_event: "
- "Received Fault notification(%d):\n"),
+ ACE_TEXT ("TAO::FT_FaultConsumer::push_structured_event: ")
+ ACE_TEXT ("Received Fault notification(%d):\n"),
static_cast<unsigned int> (this->notifications_)
));
}
@@ -250,9 +242,8 @@ void TAO::FT_FaultConsumer::push_structured_event (
if (result != 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::push_structured_event: "
- "Received invalid fault event type.\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::push_structured_event: ")
+ ACE_TEXT ("Received invalid fault event type.\n")
));
}
}
@@ -264,9 +255,8 @@ void TAO::FT_FaultConsumer::push_structured_event (
if (result != 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_FaultConsumer::push_structured_event: "
- "Could not analyze fault event.\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::push_structured_event: ")
+ ACE_TEXT ("Could not analyze fault event.\n")
));
}
}
@@ -295,9 +285,8 @@ void TAO::FT_FaultConsumer::disconnect_structured_push_consumer (
{
//TODO: For now, we are just ignoring the disconnect callback.
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("TAO::FT_FaultConsumer::disconnect_structured_push_consumer() "
- "call ignored.\n")
+ ACE_TEXT ("TAO::FT_FaultConsumer::disconnect_structured_push_consumer() ")
+ ACE_TEXT ("call ignored.\n")
));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h
index 4ba96cdee31..a8d0b7f1477 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h
@@ -26,8 +26,6 @@
#include "orbsvcs/FT_NotifierC.h"
#include "FT_ReplicationManagerLib_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -162,8 +160,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_FAULT_CONSUMER_H_ */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.cpp
index 3f101f27dea..f571d022324 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.cpp
@@ -23,8 +23,6 @@ ACE_RCSID (FT_FaultEventDescriptor,
FT_FaultEventDescriptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructor.
TAO::FT_FaultEventDescriptor::FT_FaultEventDescriptor ()
: all_at_location_failed (0)
@@ -51,9 +49,8 @@ void TAO::FT_FaultEventDescriptor::dump ()
if (this->all_at_location_failed == 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultEventDescriptor::dump: "
- "All objects at location <%s> failed.\n"),
+ ACE_TEXT ("TAO::FT_FaultEventDescriptor::dump: ")
+ ACE_TEXT ("All objects at location <%s> failed.\n"),
loc_as_string.c_str()
));
}
@@ -61,9 +58,8 @@ void TAO::FT_FaultEventDescriptor::dump ()
if (this->all_of_type_at_location_failed == 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultEventDescriptor::dump: "
- "All objects of type <%s> at location <%s> failed.\n"),
+ ACE_TEXT ("TAO::FT_FaultEventDescriptor::dump: ")
+ ACE_TEXT ("All objects of type <%s> at location <%s> failed.\n"),
this->type_id.in(),
loc_as_string.c_str()
));
@@ -72,10 +68,9 @@ void TAO::FT_FaultEventDescriptor::dump ()
if (this->object_at_location_failed == 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultEventDescriptor::dump: "
- "Replica of type <%s> with ObjectGroupId <%Q> "
- "at location <%s> failed.\n"),
+ ACE_TEXT ("TAO::FT_FaultEventDescriptor::dump: ")
+ ACE_TEXT ("Replica of type <%s> with ObjectGroupId <%Q> ")
+ ACE_TEXT ("at location <%s> failed.\n"),
this->type_id.in(),
this->object_group_id,
loc_as_string.c_str()
@@ -85,12 +80,9 @@ void TAO::FT_FaultEventDescriptor::dump ()
if (this->object_is_primary == 1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_FaultEventDescriptor::dump: "
- "Primary replica of ObjectGroupId <%Q> failed.\n"),
+ ACE_TEXT ("TAO::FT_FaultEventDescriptor::dump: ")
+ ACE_TEXT ("Primary replica of ObjectGroupId <%Q> failed.\n"),
this->object_group_id
));
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.h b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.h
index fe174448fb2..d0b64b49e4f 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_FaultEventDescriptor.h
@@ -26,8 +26,6 @@
#include "orbsvcs/PortableGroupC.h"
#include "FT_ReplicationManagerLib_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/// Helper class for describing the properties in a fault event.
@@ -72,8 +70,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_FAULT_EVENT_DESCRIPTOR_H_ */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.cpp
index 0268c527fbb..205f9f96d63 100644
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.cpp
@@ -8,8 +8,6 @@ ACE_RCSID (PortableGroup,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::FT_Property_Validator::FT_Property_Validator (void)
: replication_style_ (1),
membership_style_ (1),
@@ -242,5 +240,3 @@ TAO::FT_Property_Validator::validate_criteria (
ACE_THROW (PortableGroup::InvalidCriteria (invalid_criteria));
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.h b/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.h
index 954d7f29ded..cc5912f9b36 100644
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_Property_Validator.h
@@ -22,8 +22,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -90,8 +88,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_PROPERTY_VALIDATOR_H */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp
index bfc77eb5a46..b82d8cb9c2d 100644
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.cpp
@@ -69,8 +69,6 @@ ACE_RCSID (FT_ReplicationManager,
#define TODO
//#define TODO int todo; // warn on todos
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::FT_ReplicationManager::FT_ReplicationManager ()
: orb_ (CORBA::ORB::_nil ())
, poa_ (PortableServer::POA::_nil ())
@@ -95,7 +93,7 @@ TAO::FT_ReplicationManager::~FT_ReplicationManager (void)
//public
int TAO::FT_ReplicationManager::parse_args (int argc, char * argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:o:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "n:o:f:");
int c;
while ( (c = get_opts ()) != -1)
@@ -208,9 +206,8 @@ int TAO::FT_ReplicationManager::init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
else
{
ACE_ERROR_RETURN ( (LM_ERROR,
- ACE_TEXT (
- "%T %n (%P|%t) - "
- "Could not resolve notifier IOR.\n")),
+ ACE_TEXT ("%T %n (%P|%t) - ")
+ ACE_TEXT ("Could not resolve notifier IOR.\n")),
-1);
}
}
@@ -403,9 +400,8 @@ TAO::FT_ReplicationManager::register_fault_notifier_i (
if (CORBA::is_nil (fault_notifier))
{
ACE_ERROR ( (LM_ERROR,
- ACE_TEXT (
- "%T %n (%P|%t) - "
- "Bad Fault Notifier object reference provided.\n")
+ ACE_TEXT ("%T %n (%P|%t) - ")
+ ACE_TEXT ("Bad Fault Notifier object reference provided.\n")
));
ACE_THROW (CORBA::BAD_PARAM (
CORBA::SystemException::_tao_minor_code (
@@ -437,10 +433,8 @@ TAO::FT_ReplicationManager::register_fault_notifier_i (
if (analyzer == 0)
{
ACE_ERROR ( (LM_ERROR,
- ACE_TEXT (
- "%T %n (%P|%t) - "
- "Error creating FaultAnalyzer.\n"
- )
+ ACE_TEXT ("%T %n (%P|%t) - ")
+ ACE_TEXT ("Error creating FaultAnalyzer.\n")
));
result = -1;
}
@@ -457,9 +451,8 @@ TAO::FT_ReplicationManager::register_fault_notifier_i (
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT (
- "TAO::FT_ReplicationManager::register_fault_notifier_i: "
- "Error reinitializing FT_FaultConsumer.\n")
+ ACE_TEXT ("TAO::FT_ReplicationManager::register_fault_notifier_i: ")
+ ACE_TEXT ("Error reinitializing FT_FaultConsumer.\n")
);
result = -1;
}
@@ -468,9 +461,8 @@ TAO::FT_ReplicationManager::register_fault_notifier_i (
if (result != 0)
{
ACE_ERROR ( (LM_ERROR,
- ACE_TEXT (
- "%T %n (%P|%t) - "
- "Could not re-initialize FT_FaultConsumer.\n")
+ ACE_TEXT ("%T %n (%P|%t) - ")
+ ACE_TEXT ("Could not re-initialize FT_FaultConsumer.\n")
));
ACE_THROW (CORBA::INTERNAL (
@@ -1032,8 +1024,8 @@ TAO::FT_ReplicationManager::create_object (
// that knows about the factory, too.
// Allocate a new FactoryCreationId for use as an "out" parameter.
- PortableGroup::GenericFactory::FactoryCreationId_ptr factory_id_ptr = 0;
- ACE_NEW_THROW_EX (factory_id_ptr,
+ PortableGroup::GenericFactory::FactoryCreationId_var factory_id = 0;
+ ACE_NEW_THROW_EX (factory_id,
PortableGroup::GenericFactory::FactoryCreationId,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
@@ -1041,7 +1033,6 @@ TAO::FT_ReplicationManager::create_object (
ENOMEM),
CORBA::COMPLETED_NO));
ACE_CHECK_RETURN (CORBA::Object::_nil ());
- PortableGroup::GenericFactory::FactoryCreationId_var factory_id = factory_id_ptr;
PortableGroup::ObjectGroupId group_id = group->get_object_group_id ();
factory_id <<= group_id;
factory_creation_id = factory_id._retn();
@@ -1076,7 +1067,7 @@ TAO::FT_ReplicationManager::delete_object (
int TAO::FT_ReplicationManager::write_ior ()
{
int result = -1;
- FILE* out = ACE_OS::fopen (this->ior_output_file_, "w");
+ FILE* out = ACE_OS::fopen (this->ior_output_file_, ACE_TEXT("w"));
if (out)
{
CORBA::String_var ior_str = this->orb_->object_to_string (
@@ -1094,4 +1085,69 @@ int TAO::FT_ReplicationManager::write_ior ()
return result;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h
index a38ed1ec911..7914745a0e5 100644
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager.h
@@ -34,7 +34,6 @@
#include <orbsvcs/PortableGroup/PG_FactoryRegistry.h>
#include <orbsvcs/FT_ReplicationManager/FT_FaultConsumer.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -520,8 +519,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_REPLICATION_MANAGER_H_ */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.cpp b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.cpp
index 4606008727c..85c25861333 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.cpp
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.cpp
@@ -26,8 +26,6 @@ ACE_RCSID (FT_ReplicationManagerFaultAnalyzer,
FT_ReplicationManagerFaultAnalyzer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Constructor.
TAO::FT_ReplicationManagerFaultAnalyzer::FT_ReplicationManagerFaultAnalyzer (
const TAO::FT_ReplicationManager * replication_manager)
@@ -68,9 +66,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::analyze_fault_event (
for (CORBA::ULong n_prop = 0; n_prop < item_count; ++n_prop)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT(
- "TAO::FT_ReplicationManagerFaultAnalyzer::analyze_fault_event: "
- "Property Name: <%s>\n"),
+ ACE_TEXT( "TAO::FT_ReplicationManagerFaultAnalyzer::analyze_fault_event: " )
+ ACE_TEXT( "Property Name: <%s>\n"),
filterable[n_prop].name.in()
));
}
@@ -160,9 +157,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_type_id (
if ((val >>= type_id_value) == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_type_id: "
- "Could not extract TypeId value from any.\n")),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_type_id: " )
+ ACE_TEXT( "Could not extract TypeId value from any.\n")),
-1);
}
@@ -179,9 +175,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_object_group_id (
if ((val >>= temp_id) == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_object_group_id: "
- "Could not extract ObjectGroupId value from any.\n")),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_object_group_id: ")
+ ACE_TEXT ("Could not extract ObjectGroupId value from any.\n")),
-1);
}
id = temp_id;
@@ -195,9 +190,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_location (
if ((val >>= temp_loc) == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_location: "
- "Could not extract Location value from fault event.\n")),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_location: ")
+ ACE_TEXT ("Could not extract Location value from fault event.\n")),
-1);
}
// Make a deep copy of the Location.
@@ -227,9 +221,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_membership_style (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_membership_style: "
- "MembershipStyle is <%d>:\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_membership_style: ")
+ ACE_TEXT ("MembershipStyle is <%d>:\n"),
membership_style
));
}
@@ -258,9 +251,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_replication_style (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_replication_style: "
- "ReplicationStyle is <%d>:\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_replication_style: ")
+ ACE_TEXT ("ReplicationStyle is <%d>:\n"),
replication_style
));
}
@@ -289,9 +281,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_minimum_number_members (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_minimum_number_members: "
- "MinimumNumberMembers is <%d>:\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_minimum_number_members: ")
+ ACE_TEXT ("MinimumNumberMembers is <%d>:\n"),
minimum_number_members
));
}
@@ -320,9 +311,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_initial_number_members (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_initial_number_members: "
- "InitialNumberMembers is <%d>:\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_initial_number_members: ")
+ ACE_TEXT ("InitialNumberMembers is <%d>:\n"),
initial_number_members
));
}
@@ -351,9 +341,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_factories (
if ((value >>= temp_factories) == 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_factories: "
- "Could not extract Factories from properties.\n")
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_factories: ")
+ ACE_TEXT ("Could not extract Factories from properties.\n")
));
result = -1;
}
@@ -367,9 +356,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::get_factories (
else
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::get_factories: "
- "Could not find Factories property.\n")
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::get_factories: ")
+ ACE_TEXT ("Could not find Factories property.\n")
));
result = -1;
}
@@ -420,9 +408,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member (
if (CORBA::is_nil (primary_obj.in()))
{
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: "
- "Could not get primary IOR from IOGR.\n")),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: ")
+ ACE_TEXT ("Could not get primary IOR from IOGR.\n")),
-1);
}
@@ -434,9 +421,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member (
if (CORBA::is_nil (failed_obj.in()))
{
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: "
- "Could not get IOR of failed member from IOGR.\n")),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: ")
+ ACE_TEXT ("Could not get IOR of failed member from IOGR.\n")),
-1);
}
@@ -453,9 +439,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member (
else // primary is not set
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: "
- "Primary is not set on IOGR.\n")
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: ")
+ ACE_TEXT ("Primary is not set on IOGR.\n")
));
result = -1;
}
@@ -463,9 +448,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member (
else // could not get tagged component
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: "
- "Could not get tagged component from IOGR.\n")
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::is_primary_member: ")
+ ACE_TEXT ("Could not get tagged component from IOGR.\n")
));
result = -1;
}
@@ -505,9 +489,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (CORBA::is_nil (the_object_group.in()))
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Could not get ObjectGroup reference from ObjectGroupId: <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Could not get ObjectGroup reference from ObjectGroupId: <%Q>.\n"),
fault_event_desc.object_group_id
));
ACE_TRY_THROW (PortableGroup::ObjectGroupNotFound ());
@@ -539,10 +522,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
{
//@@ it seems a shame to fail here. We should at least remove the failed replica from the group.
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Could not extract MembershipStyle from properties on "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Could not extract MembershipStyle from properties on ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id),
-1);
}
@@ -552,9 +534,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "MembershipStyleValue = <%d>"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("MembershipStyleValue = <%d>"),
fault_event_desc.membership_style
));
}
@@ -567,10 +548,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
{
//@@ it seems a shame to fail here. We should at least remove the failed replica from the group.
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Could not extract ReplicationStyle from properties on "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Could not extract ReplicationStyle from properties on ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id),
-1);
}
@@ -580,9 +560,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "ReplicationStyleValue = <%d>"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("ReplicationStyleValue = <%d>"),
fault_event_desc.replication_style
));
}
@@ -599,10 +578,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 3)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Could not extract MinimumNumberMembers from properties on "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Could not extract MinimumNumberMembers from properties on ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id));
}
}
@@ -612,9 +590,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "MinimumNumberMembers = <%d>"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("MinimumNumberMembers = <%d>"),
fault_event_desc.minimum_number_members
));
}
@@ -631,10 +608,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 3)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Could not extract InitialNumberMembers from properties on "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Could not extract InitialNumberMembers from properties on ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id));
}
}
@@ -644,9 +620,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "InitialNumberMembers = <%d>"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("InitialNumberMembers = <%d>"),
fault_event_desc.initial_number_members
));
}
@@ -663,10 +638,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 3)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Could not extract Factories from properties on "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Could not extract Factories from properties on ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id));
}
}
@@ -675,10 +649,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Got Factories from properties on "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Got Factories from properties on ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id
));
}
@@ -697,10 +670,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Checking to see if failed replica was the primary for "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Checking to see if failed replica was the primary for ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id
));
}
@@ -732,10 +704,9 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure (
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: "
- "Setting new primary for "
- "ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::single_replica_failure: ")
+ ACE_TEXT ("Setting new primary for ")
+ ACE_TEXT ("ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id
));
}
@@ -841,9 +812,8 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::set_new_primary (
else
{
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT (
- "TAO::FT_ReplicationManagerFaultAnalyzer::set_new_primary: "
- "No locations remaining in ObjectGroup with id <%Q>.\n"),
+ ACE_TEXT ("TAO::FT_ReplicationManagerFaultAnalyzer::set_new_primary: ")
+ ACE_TEXT ("No locations remaining in ObjectGroup with id <%Q>.\n"),
fault_event_desc.object_group_id),
-1);
}
@@ -1114,5 +1084,3 @@ int TAO::FT_ReplicationManagerFaultAnalyzer::type_failure (
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.h b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.h
index 6b2e263ee85..f15238af5bf 100755
--- a/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.h
+++ b/TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManagerFaultAnalyzer.h
@@ -27,12 +27,8 @@
#include "orbsvcs/FT_CORBAC.h"
// Forward declarations.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class T> class ACE_Unbounded_Set;
template <class T> class ACE_Unbounded_Set_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -192,8 +188,6 @@ namespace TAO
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_REPLICATION_MANAGER_FAULT_ANALYZER_H_ */
diff --git a/TAO/orbsvcs/FT_ReplicationManager/Makefile.am b/TAO/orbsvcs/FT_ReplicationManager/Makefile.am
index fd64ec0a535..f8d2336a8b5 100644
--- a/TAO/orbsvcs/FT_ReplicationManager/Makefile.am
+++ b/TAO/orbsvcs/FT_ReplicationManager/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_LTLIBRARIES = libTAO_ReplicationManagerLib.la
@@ -47,7 +46,6 @@ noinst_HEADERS = \
FT_FaultEventDescriptor.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -57,7 +55,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS = FT_ReplicationManager
@@ -105,7 +102,6 @@ FT_ReplicationManager_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
index 0efefef03cd..626a9d7b3fb 100644
--- a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
+++ b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.cpp
@@ -14,7 +14,6 @@
#include "Fault_Detector_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/Auto_Ptr.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/PortableGroup/PG_Property_Set.h"
@@ -43,8 +42,6 @@
return /* value goes here */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////////////////////////////////////
// FT_FaultDetectorFactory_i Construction/destruction
@@ -107,7 +104,7 @@ void TAO::FT_FaultDetectorFactory_i::shutdown_i()
int TAO::FT_FaultDetectorFactory_i::write_ior()
{
int result = -1;
- FILE* out = ACE_OS::fopen (this->ior_output_file_, "w");
+ FILE* out = ACE_OS::fopen (this->ior_output_file_, ACE_TEXT("w"));
if (out)
{
ACE_OS::fprintf (out, "%s", this->ior_.in ());
@@ -128,7 +125,7 @@ int TAO::FT_FaultDetectorFactory_i::write_ior()
int TAO::FT_FaultDetectorFactory_i::parse_args (int argc, char * argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "d:l:o:qr");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "d:l:o:qr");
int c;
while ((c = get_opts ()) != -1)
@@ -711,4 +708,3 @@ CORBA::Boolean TAO::FT_FaultDetectorFactory_i::is_alive (ACE_ENV_SINGLE_ARG_DECL
1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.h b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.h
index a28eebffe56..7333ffb7a87 100644
--- a/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.h
+++ b/TAO/orbsvcs/Fault_Detector/FT_FaultDetectorFactory_i.h
@@ -23,6 +23,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+//////////////////////////////////
+// Classes declared in this header
+namespace TAO
+{
+ class FT_FaultDetectorFactory_i;
+}
+
/////////////////////////////////
// Includes needed by this header
#include <ace/Vector_T.h>
@@ -30,9 +37,6 @@
#include <orbsvcs/FT_ReplicationManagerC.h>
#include <ace/Thread_Manager.h>
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/////////////////////
// Forward references
@@ -340,7 +344,5 @@ namespace TAO
};
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_FAULTDETECTORFACTORY_I_H_ */
diff --git a/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.cpp b/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.cpp
index 51b7b9cc432..bba77092823 100644
--- a/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.cpp
+++ b/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.cpp
@@ -15,8 +15,6 @@
#include "FT_FaultDetectorFactory_i.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
///////////////////////////////
// Fault_Detector_i static data
@@ -203,4 +201,3 @@ ACE_THR_FUNC_RETURN TAO::Fault_Detector_i::thr_func (void * arg)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.h b/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.h
index 03642de4b48..d5882ad1a15 100644
--- a/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.h
+++ b/TAO/orbsvcs/Fault_Detector/Fault_Detector_i.h
@@ -28,13 +28,18 @@
#include <ace/Manual_Event.h>
+//////////////////////////////////
+// Classes declared in this header
+namespace TAO
+{
+ class Fault_Detector_i;
+}
+
#include "orbsvcs/FT_NotifierC.h"
#include "orbsvcs/FT_ReplicaC.h"
#include "ace/Time_Value.h"
-// Classes declared in this header
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -176,8 +181,5 @@ namespace TAO
int quit_requested_;
};
} // namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ <ace/post.h>
#endif // FAULT_DETECTOR_I_H_
diff --git a/TAO/orbsvcs/Fault_Detector/Makefile.am b/TAO/orbsvcs/Fault_Detector/Makefile.am
index f7ec6812494..12d58097bbc 100644
--- a/TAO/orbsvcs/Fault_Detector/Makefile.am
+++ b/TAO/orbsvcs/Fault_Detector/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS = Fault_Detector
@@ -61,7 +60,6 @@ Fault_Detector_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp b/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp
index e120b9a2cc7..f71b484a819 100644
--- a/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp
+++ b/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.cpp
@@ -49,8 +49,6 @@
return /* value goes here */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementation skeleton constructor
TAO::FT_FaultNotifier_i::FT_FaultNotifier_i ()
: orb_ (0)
@@ -128,7 +126,7 @@ int TAO::FT_FaultNotifier_i::idle(int &result ACE_ENV_ARG_DECL_NOT_USED)
int TAO::FT_FaultNotifier_i::write_ior()
{
int result = -1;
- FILE* out = ACE_OS::fopen (this->ior_output_file_, "w");
+ FILE* out = ACE_OS::fopen (this->ior_output_file_, ACE_TEXT("w"));
if (out)
{
ACE_OS::fprintf (out, "%s", this->ior_.in ());
@@ -149,7 +147,7 @@ int TAO::FT_FaultNotifier_i::write_ior()
int TAO::FT_FaultNotifier_i::parse_args (int argc, char * argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:rq");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:rq");
int c;
while ((c = get_opts ()) != -1)
@@ -770,5 +768,3 @@ TAO::FT_FaultNotifier_i::ProxyInfo::ProxyInfo (const ProxyInfo & rhs)
, proxyVar_ (rhs.proxyVar_)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.h b/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.h
index 1f5e672eaed..dd1d000722d 100644
--- a/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.h
+++ b/TAO/orbsvcs/Fault_Notifier/FT_Notifier_i.h
@@ -27,6 +27,14 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+//////////////////////////////////
+// Classes declared in this header
+namespace TAO
+{
+ class FT_FaultNotifier_i;
+}
+
+
#include <orbsvcs/FT_NotifierS.h>
#include <orbsvcs/FT_ReplicationManagerC.h>
#include <orbsvcs/Notify/Notify_EventChannelFactory_i.h>
@@ -35,7 +43,6 @@
/////////////////////
// Forward references
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
class FT_FaultNotifier_i : public virtual POA_FT::FaultNotifier
@@ -265,8 +272,6 @@ namespace TAO
};
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_FT_NOTIFIER_I_H_ */
diff --git a/TAO/orbsvcs/Fault_Notifier/Makefile.am b/TAO/orbsvcs/Fault_Notifier/Makefile.am
index 4e5f20085f9..155f96c821d 100644
--- a/TAO/orbsvcs/Fault_Notifier/Makefile.am
+++ b/TAO/orbsvcs/Fault_Notifier/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS = Fault_Notifier
@@ -65,7 +64,6 @@ Fault_Notifier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/IFR_Service/IFR_Server.cpp b/TAO/orbsvcs/IFR_Service/IFR_Server.cpp
index 505afb05051..5253e99b3ae 100644
--- a/TAO/orbsvcs/IFR_Service/IFR_Server.cpp
+++ b/TAO/orbsvcs/IFR_Service/IFR_Server.cpp
@@ -9,7 +9,7 @@ ACE_RCSID (IFR_Service,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
IFR_Service server;
diff --git a/TAO/orbsvcs/IFR_Service/IFR_Service.mpc b/TAO/orbsvcs/IFR_Service/IFR_Service.mpc
index bb051cebea2..8e4d7c726f8 100644
--- a/TAO/orbsvcs/IFR_Service/IFR_Service.mpc
+++ b/TAO/orbsvcs/IFR_Service/IFR_Service.mpc
@@ -5,6 +5,7 @@
// necessary to add minimum_corba to 'avoids' here.
project(IFR_Service) : orbsvcsexe, core, ifrservice, ifr_client, imr_client, crosscompile {
exename = IFR_Service
+ avoids += uses_wchar
IDL_Files {
}
@@ -22,6 +23,7 @@ project(TAO_IFR_BE) : taolib, conv_lib, ifr_client, crosscompile, minimum_corba
libs += TAO_IDL_FE
dynamicflags = TAO_IFR_BE_BUILD_DLL
includes += $(TAO_ROOT)/TAO_IDL/include $(TAO_ROOT)/TAO_IDL/fe
+ avoids += uses_wchar
Source_Files {
be_global.cpp
@@ -48,6 +50,7 @@ project(TAO_IFR_EXE) : aceexe, core, ifr_client, crosscompile, minimum_corba {
libs += TAO_IFR_BE TAO TAO_IDL_FE
includes += $(TAO_ROOT)/orbsvcs/IFR_Service $(TAO_ROOT)/TAO_IDL/include $(TAO_ROOT)/TAO_IDL/fe
install = $(ACE_ROOT)/bin
+ avoids += uses_wchar
specific(automake) {
macros += TAO_IDL_INCLUDE_DIR=\"\\"$(includedir)/tao\\"\"
diff --git a/TAO/orbsvcs/IFR_Service/Makefile.am b/TAO/orbsvcs/IFR_Service/Makefile.am
index cc2dcaf30a9..b9aa1d58dcf 100644
--- a/TAO/orbsvcs/IFR_Service/Makefile.am
+++ b/TAO/orbsvcs/IFR_Service/Makefile.am
@@ -17,7 +17,6 @@ bin_PROGRAMS =
## Makefile.IFR_Service.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS += IFR_Service
@@ -51,7 +50,6 @@ IFR_Service_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.TAO_IFR_BE.am
@@ -104,7 +102,6 @@ tao_ifr_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs/IFR_Service \
-I$(TAO_ROOT)/TAO_IDL/include \
-I$(TAO_ROOT)/TAO_IDL/fe \
-DTAO_IDL_INCLUDE_DIR="\"$(includedir)/tao\""
diff --git a/TAO/orbsvcs/IFR_Service/be_global.cpp b/TAO/orbsvcs/IFR_Service/be_global.cpp
index 023d4cb3c96..f7283b8d3d0 100644
--- a/TAO/orbsvcs/IFR_Service/be_global.cpp
+++ b/TAO/orbsvcs/IFR_Service/be_global.cpp
@@ -29,29 +29,29 @@ ACE_RCSID (IFR_Service,
TAO_IFR_BE_Export BE_GlobalData *be_global = 0;
BE_GlobalData::BE_GlobalData (void)
- : removing_ (false),
+ : removing_ (I_FALSE),
holding_scope_name_ (CORBA::string_dup ("TAO_IFR_holding_scope_module")),
filename_ (0),
- enable_locking_ (false),
- do_included_files_ (true)
+ enable_locking_ (I_FALSE),
+ do_included_files_ (I_TRUE)
{
// At this point, the FE has been initialized. We can
// now instruct it that we want to preserve c++ keywords.
- idl_global->preserve_cpp_keywords (true);
+ idl_global->preserve_cpp_keywords (I_TRUE);
}
BE_GlobalData::~BE_GlobalData (void)
{
}
-bool
+idl_bool
BE_GlobalData::removing (void) const
{
return this->removing_;
}
void
-BE_GlobalData::removing (bool value)
+BE_GlobalData::removing (idl_bool value)
{
this->removing_ = value;
}
@@ -121,26 +121,26 @@ BE_GlobalData::filename (char *fname)
this->filename_ = fname;
}
-bool
+idl_bool
BE_GlobalData::enable_locking (void) const
{
return this->enable_locking_;
}
void
-BE_GlobalData::enable_locking (bool value)
+BE_GlobalData::enable_locking (idl_bool value)
{
this->enable_locking_ = value;
}
-bool
+idl_bool
BE_GlobalData::do_included_files (void) const
{
return this->do_included_files_;
}
void
-BE_GlobalData::do_included_files (bool val)
+BE_GlobalData::do_included_files (idl_bool val)
{
this->do_included_files_ = val;
}
@@ -169,10 +169,10 @@ BE_GlobalData::parse_args (long &i, char **av)
switch (av[i][1])
{
case 'L':
- be_global->enable_locking (true);
+ be_global->enable_locking (I_TRUE);
break;
case 'r':
- be_global->removing (true);
+ be_global->removing (I_TRUE);
break;
case 'S':
// Suppress ...
diff --git a/TAO/orbsvcs/IFR_Service/be_global.h b/TAO/orbsvcs/IFR_Service/be_global.h
index 6a0c17fccca..ad2b2bb5d21 100644
--- a/TAO/orbsvcs/IFR_Service/be_global.h
+++ b/TAO/orbsvcs/IFR_Service/be_global.h
@@ -22,6 +22,7 @@
#include "TAO_IFR_BE_Export.h"
#include "tao/IFR_Client/IFR_BasicC.h"
+#include "idl_bool.h"
#include "tao/ORB.h"
#include "ace/Containers.h"
#include "ace/SString.h"
@@ -51,8 +52,8 @@ public:
// Data accessors.
- bool removing (void) const;
- void removing (bool value);
+ idl_bool removing (void) const;
+ void removing (idl_bool value);
CORBA::ORB_ptr orb (void) const;
void orb (CORBA::ORB_ptr orb);
@@ -73,11 +74,11 @@ public:
const char *filename (void) const;
void filename (char *fname);
- bool enable_locking (void) const;
- void enable_locking (bool value);
+ idl_bool enable_locking (void) const;
+ void enable_locking (idl_bool value);
- bool do_included_files (void) const;
- void do_included_files (bool val);
+ idl_bool do_included_files (void) const;
+ void do_included_files (idl_bool val);
ACE_CString orb_args (void) const;
void orb_args (const ACE_CString& args);
@@ -102,7 +103,7 @@ public:
// Create an AST node generator.
private:
- bool removing_;
+ idl_bool removing_;
// Are we removing IR objects from the repository?
CORBA::ORB_var orb_;
@@ -124,10 +125,10 @@ private:
char *filename_;
// Name of the IDL file we are processing.
- bool enable_locking_;
+ idl_bool enable_locking_;
// Option to lock at the IDL file level.
- bool do_included_files_;
+ idl_bool do_included_files_;
// Option to process included IDL files.
ACE_CString orb_args_;
diff --git a/TAO/orbsvcs/IFR_Service/be_init.cpp b/TAO/orbsvcs/IFR_Service/be_init.cpp
index e6827113322..017c1402ec3 100644
--- a/TAO/orbsvcs/IFR_Service/be_init.cpp
+++ b/TAO/orbsvcs/IFR_Service/be_init.cpp
@@ -31,8 +31,8 @@ BE_save_orb_args (int &argc, char *argv[])
// If the arg ends with either .idl or .pidl, we're done.
- size_t len = tmp.length ();
- ssize_t pos = tmp.find (".idl");
+ int len = static_cast<int> (tmp.length ());
+ int pos = tmp.find (".idl");
if (len - pos == 4)
{
@@ -56,7 +56,7 @@ BE_save_orb_args (int &argc, char *argv[])
++i;
}
}
-
+
be_global->orb_args (holder);
return 0;
@@ -103,14 +103,14 @@ TAO_IFR_BE_Export int
BE_init (int &argc, char *argv[])
{
int status = BE_save_orb_args (argc, argv);
-
+
if (status != 0)
{
return status;
}
-
+
idl_global->using_ifr_backend (true);
-
+
return BE_ifr_orb_init (argc, argv);
}
diff --git a/TAO/orbsvcs/IFR_Service/be_produce.cpp b/TAO/orbsvcs/IFR_Service/be_produce.cpp
index a678f6729fb..302c6ca84b6 100644
--- a/TAO/orbsvcs/IFR_Service/be_produce.cpp
+++ b/TAO/orbsvcs/IFR_Service/be_produce.cpp
@@ -85,6 +85,36 @@ void
BE_cleanup (void)
{
idl_global->destroy ();
+
+ // Remove the holding scope entry from the repository.
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
+ {
+ if (be_global->repository ())
+ {
+ CORBA::Contained_var result =
+ be_global->repository ()->lookup_id (be_global->holding_scope_name ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (!CORBA::is_nil (result.in ()))
+ {
+ CORBA::ModuleDef_var scope =
+ CORBA::ModuleDef::_narrow (result.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ scope->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ }
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ ACE_TEXT ("BE_cleanup"));
+ }
+ ACE_ENDTRY;
}
// Abort this run of the BE.
@@ -110,7 +140,6 @@ BE_create_holding_scope (ACE_ENV_SINGLE_ARG_DECL)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- // Will live until the repository goes away for good.
if (CORBA::is_nil (result.in ()))
{
scope =
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp
index 7e004427229..c418fe74a16 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor.cpp
@@ -190,14 +190,25 @@ ifr_adding_visitor::visit_module (AST_Module *node)
prev_def->def_kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (kind == CORBA::dk_Module)
+ // If the line below is true, we are clobbering a previous
+ // entry from another IDL file. In that
+ // case we do what other ORB vendors do, and destroy the
+ // original entry, create the new one, and let the user beware.
+ if (kind != CORBA::dk_Module)
+ {
+ prev_def->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // This call will take the brach where prev_def.in() is 0.
+ return this->visit_module (node);
+ }
+ else
{
// We are either in a reopened module, are processing an IDL
// IDL file for the second time, or are in a module whose
// name already exists by coincidence - there is no way to
// tell the difference. So any members whose repository ID
- // already exists in this case will throw BAD_PARAM
- // when we attempt to add them to the repository.
+ // already exists in this case will be skipped.
this->in_reopened_ = 1;
new_def =
@@ -577,60 +588,12 @@ ifr_adding_visitor::visit_interface_fwd (AST_InterfaceFwd *node)
}
int
-ifr_adding_visitor::visit_valuebox (AST_ValueBox *node)
+ifr_adding_visitor::visit_valuebox (AST_ValueBox *)
{
- if (node->imported () && !be_global->do_included_files ())
- {
- return 0;
- }
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->element_type (node->boxed_type ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Container_ptr current_scope =
- CORBA::Container::_nil ();
-
- if (be_global->ifr_scopes ().top (current_scope) == 0)
- {
- this->ir_current_ =
- current_scope->create_value_box (
- node->repoID (),
- node->local_name ()->get_string (),
- node->version (),
- this->ir_current_.in ()
- ACE_ENV_ARG_PARAMETER
- );
- ACE_TRY_CHECK;
- }
- else
- {
- ACE_ERROR_RETURN ((
- LM_ERROR,
- ACE_TEXT ("(%N:%l) ifr_adding_visitor::visit_valuebox -")
- ACE_TEXT (" scope stack is empty\n")
- ),
- -1
- );
- }
-
- node->ifr_added (1);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("visit_valuebox"));
-
- return -1;
- }
- ACE_ENDTRY;
-
return 0;
}
+
int
ifr_adding_visitor::visit_valuetype (AST_ValueType *node)
{
@@ -2429,37 +2392,70 @@ ifr_adding_visitor::visit_typedef (AST_Typedef *node)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- this->element_type (node->base_type ()
- ACE_ENV_ARG_PARAMETER);
+ // Is this typedef already in the respository?
+ CORBA::Contained_var prev_def =
+ be_global->repository ()->lookup_id (node->repoID ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::Container_ptr current_scope =
- CORBA::Container::_nil ();
-
- if (be_global->ifr_scopes ().top (current_scope) == 0)
+ // If not, create a new entry.
+ if (CORBA::is_nil (prev_def.in ()))
{
- this->ir_current_ =
- current_scope->create_alias (
- node->repoID (),
- node->local_name ()->get_string (),
- node->version (),
- this->ir_current_.in ()
- ACE_ENV_ARG_PARAMETER
- );
+ this->element_type (node->base_type ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+
+ CORBA::Container_ptr current_scope =
+ CORBA::Container::_nil ();
+
+ if (be_global->ifr_scopes ().top (current_scope) == 0)
+ {
+ this->ir_current_ =
+ current_scope->create_alias (
+ node->repoID (),
+ node->local_name ()->get_string (),
+ node->version (),
+ this->ir_current_.in ()
+ ACE_ENV_ARG_PARAMETER
+ );
+ ACE_TRY_CHECK;
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((
+ LM_ERROR,
+ ACE_TEXT ("(%N:%l) ifr_adding_visitor::visit_typedef -")
+ ACE_TEXT (" scope stack is empty\n")
+ ),
+ -1
+ );
+ }
+
+ node->ifr_added (1);
}
else
{
- ACE_ERROR_RETURN ((
- LM_ERROR,
- ACE_TEXT ("(%N:%l) ifr_adding_visitor::visit_typedef -")
- ACE_TEXT (" scope stack is empty\n")
- ),
- -1
- );
- }
+ // If the line below is true, we are clobbering a previous
+ // entry (from another IDL file) of another type. In that
+ // case we do what other ORB vendors do, and destroy the
+ // original entry, create the new one, and let the user beware.
+ // Unless we are in a module that has been seen before, in
+ // which case we might be just processing and IDL file a
+ // second time and we want to just update ir_current_.
+ if (node->ifr_added () == 0 && this->in_reopened_ == 0)
+ {
+ prev_def->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- node->ifr_added (1);
+ // This call will take the other branch.
+ return this->visit_typedef (node);
+ }
+
+ this->ir_current_ =
+ CORBA::TypedefDef::_narrow (prev_def.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
}
ACE_CATCHANY
{
@@ -3558,41 +3554,18 @@ ifr_adding_visitor::create_value_member (AST_Field *node)
ACE_TRY_NEW_ENV
{
AST_Type *bt = node->field_type ();
- AST_Decl::NodeType nt = bt->node_type ();
-
- // We can't use lookup_id() on these, because
- // they don't inherit from Contained.
- if (nt == AST_Decl::NT_pre_defined
- || nt == AST_Decl::NT_string
- || nt == AST_Decl::NT_wstring
- || nt == AST_Decl::NT_array
- || nt == AST_Decl::NT_sequence)
- {
- /// This will put the repo entry into ir_current_.
- if (bt->ast_accept (this) != 0)
- {
- ACE_ERROR_RETURN ((
- LM_ERROR,
- ACE_TEXT ("(%N:%l) ifr_adding_visitor::")
- ACE_TEXT ("create_value_member -")
- ACE_TEXT (" visit base type failed\n")
- ),
- -1
- );
- }
- }
- else
- {
- // If the IDL is legal, this will succeed.
- CORBA::Contained_var holder =
- be_global->repository ()->lookup_id (bt->repoID ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->ir_current_ =
- CORBA::IDLType::_narrow (holder.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
+ /// This will put the repo entry into ir_current_ whether it exists
+ /// already or not.
+ if (bt->ast_accept (this) != 0)
+ {
+ ACE_ERROR_RETURN ((
+ LM_ERROR,
+ ACE_TEXT ("(%N:%l) ifr_adding_visitor::create_value_member -")
+ ACE_TEXT (" visit base type failed\n")
+ ),
+ -1
+ );
}
CORBA::Visibility vis = CORBA::PUBLIC_MEMBER;
@@ -3880,7 +3853,7 @@ ifr_adding_visitor::fill_abstract_base_values (CORBA::ValueDefSeq &result,
{
AST_Interface **list = node->inherits ();
CORBA::ULong u_length = static_cast<CORBA::ULong> (s_length);
- bool first_abs = list[0]->is_abstract ();
+ idl_bool first_abs = list[0]->is_abstract ();
result.length (first_abs ? u_length : u_length - 1);
for (CORBA::ULong i = 0; i < u_length; ++i)
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp
index d22c22c825b..069b9886882 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_exception.cpp
@@ -68,7 +68,7 @@ ifr_adding_visitor_exception::visit_scope (UTL_Scope *node)
AST_Type *ft = (*f)->field_type ();
- bool defined_here = ft->is_child (this->scope_);
+ idl_bool defined_here = ft->is_child (this->scope_);
// If the struct member is defined in the struct, we have to
// do some visiting - otherwise we can just look up the entry.
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp
index 6e3f4a4bbe5..b65ad0a9442 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_structure.cpp
@@ -62,7 +62,7 @@ ifr_adding_visitor_structure::visit_scope (UTL_Scope *node)
}
AST_Type *ft = (*f)->field_type ();
- bool defined_here = ft->is_child (this->scope_);
+ idl_bool defined_here = ft->is_child (this->scope_);
// If the struct member is defined in the struct, we have to
// do some visiting - otherwise we can just look up the entry.
diff --git a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp
index 57e82d66ddb..6052f26afff 100644
--- a/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp
+++ b/TAO/orbsvcs/IFR_Service/ifr_adding_visitor_union.cpp
@@ -73,7 +73,7 @@ ifr_adding_visitor_union::visit_scope (UTL_Scope *node)
AST_Type *ft = (*f)->field_type ();
- bool defined_here = ft->is_child (this->scope_);
+ idl_bool defined_here = ft->is_child (this->scope_);
// If the union member is defined in the union, we have to
// do some visiting - otherwise we can just look up the entry.
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.cpp b/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.cpp
index 9f222a54739..4429f6eba49 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.cpp
@@ -4,27 +4,27 @@
#include "ace/Dynamic_Service.h"
#include "ace/Task.h"
-class ImR_Activator_ORB_Runner : public ACE_Task_Base
+class ImR_Activator_ORB_Runner : public ACE_Task_Base
{
ImR_Activator_Loader& service_;
public:
- ImR_Activator_ORB_Runner (ImR_Activator_Loader& service)
- : service_ (service)
+ ImR_Activator_ORB_Runner(ImR_Activator_Loader& service)
+ : service_(service)
{
}
- virtual int svc ()
+ virtual int svc()
{
// Block until service_.fini() calls orb->destroy()
- this->service_.run ();
+ this->service_.run();
return 0;
}
};
-ImR_Activator_Loader::ImR_Activator_Loader (void)
+ImR_Activator_Loader::ImR_Activator_Loader(void)
{
}
-// For now, we will assume that it's sufficient to start
+// For now, we will assume that it's sufficient to start
// the service in its own thread. Later, if necessary, we
// can add a command line option to allow the imr to use
// the same orb as other tao services, however the imr
@@ -35,20 +35,20 @@ ImR_Activator_Loader::init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL)
{
ACE_TRY
{
- int err = this->opts_.init (argc, argv);
- if (err != 0)
+ int err = this->opts_.init(argc, argv);
+ if (err != 0)
return -1;
// Creates it's own internal orb, which we must run later
- err = this->service_.init (this->opts_ ACE_ENV_ARG_PARAMETER);
+ err = this->service_.init(this->opts_ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (err != 0)
return -1;
// Create a thread in which to run the service
- ACE_ASSERT (this->runner_.get () == 0);
- this->runner_.reset (new ImR_Activator_ORB_Runner (*this));
- this->runner_->activate ();
+ ACE_ASSERT(this->runner_.get() == 0);
+ this->runner_.reset(new ImR_Activator_ORB_Runner(*this));
+ this->runner_->activate();
}
ACE_CATCHANY
{
@@ -61,22 +61,23 @@ ImR_Activator_Loader::init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL)
int
ImR_Activator_Loader::fini (void)
{
- ACE_ASSERT (this->runner_.get() != 0);
+ ACE_ASSERT(this->runner_.get() != 0);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- int ret = this->service_.fini (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ int ret = this->service_.fini(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->runner_->wait ();
- this->runner_.reset (0);
- return ret;
- }
+ this->runner_->wait();
+ this->runner_.reset(0);
+ return ret;
+ }
ACE_CATCHANY
- {
- return -1;
- }
+ {
+ return -1;
+ }
ACE_ENDTRY;
+ return -1;
}
CORBA::Object_ptr
@@ -86,24 +87,26 @@ ImR_Activator_Loader::create_object (CORBA::ORB_ptr,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_THROW_RETURN(CORBA::NO_IMPLEMENT (), CORBA::Object::_nil ());
+ ACE_THROW_RETURN(CORBA::NO_IMPLEMENT(), CORBA::Object::_nil());
}
int
-ImR_Activator_Loader::run (void)
+ImR_Activator_Loader::run(void)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- return this->service_.run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ return this->service_.run(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHALL
- {
- ACE_ERROR ((LM_ERROR, "Exception in ImR_Locator_ORB_Runner()\n"));
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "Exception in ImR_Locator_ORB_Runner()\n"));
+ return -1;
+ }
ACE_ENDTRY;
+ return 0;
}
ACE_FACTORY_DEFINE (Activator, ImR_Activator_Loader)
+
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h b/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h
index 2871c38e56b..db401dd8cfe 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_Loader.h
@@ -1,7 +1,4 @@
-// -*- C++ -*-
-//
// $Id$
-
#ifndef TAO_IMR_ACTIVATOR_LOADER_H
#define TAO_IMR_ACTIVATOR_LOADER_H
@@ -42,9 +39,8 @@ private:
ACE_Auto_Ptr<ImR_Activator_ORB_Runner> runner_;
private:
- // Disallow copying and assignment.
- ImR_Activator_Loader (const ImR_Activator_Loader &);
- ImR_Activator_Loader &operator = (const ImR_Activator_Loader &);
+ ACE_UNIMPLEMENTED_FUNC (ImR_Activator_Loader (const ImR_Activator_Loader &))
+ ACE_UNIMPLEMENTED_FUNC (ImR_Activator_Loader &operator = (const ImR_Activator_Loader &))
};
ACE_FACTORY_DECLARE (Activator, ImR_Activator_Loader)
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.cpp b/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.cpp
index eac94f086bb..4f672896791 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.cpp
@@ -63,10 +63,10 @@ Activator_NT_Service::svc (void)
Activator_Options opts;
if (opts.init_from_registry() != 0)
- {
- report_status (SERVICE_STOPPED);
- return -1;
- }
+ {
+ report_status (SERVICE_STOPPED);
+ return -1;
+ }
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.h b/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.h
index bde40cf1cd9..35995ac8cc9 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_NT_Service.h
@@ -28,9 +28,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-static const char * IMR_ACTIVATOR_SERVICE_NAME = "TAOImRActivator";
-static const char * IMR_ACTIVATOR_DISPLAY_NAME = "TAO Implementation Repository Activator";
-static const char * IMR_ACTIVATOR_DESCRIPTION = "Implementation Repository Activator service for TAO";
+static const ACE_TCHAR * IMR_ACTIVATOR_SERVICE_NAME = ACE_TEXT("TAOImRActivator");
+static const ACE_TCHAR * IMR_ACTIVATOR_DISPLAY_NAME = ACE_TEXT("TAO Implementation Repository Activator");
+static const ACE_TCHAR * IMR_ACTIVATOR_DESCRIPTION = ACE_TEXT("Implementation Repository Activator service for TAO");
/**
* @class Activator_NT_Service
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp b/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp
index 072ca61ba38..71ee1a8baf2 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp
@@ -33,10 +33,10 @@ Activator_Options::Activator_Options ()
}
int
-Activator_Options::parse_args (int &argc, char *argv[])
+Activator_Options::parse_args (int &argc, ACE_TCHAR *argv[])
{
ACE_Arg_Shifter shifter (argc, argv);
-
+
while (shifter.is_anything_left ())
{
if (ACE_OS::strcasecmp (shifter.get_current (),
@@ -53,25 +53,25 @@ Activator_Options::parse_args (int &argc, char *argv[])
if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("install")) == 0)
- {
- this->service_command_ = SC_INSTALL;
- }
+ {
+ this->service_command_ = SC_INSTALL;
+ }
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("remove")) == 0)
- {
- this->service_command_ = SC_REMOVE;
- }
+ {
+ this->service_command_ = SC_REMOVE;
+ }
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("install_no_imr")) == 0)
- {
- this->service_command_ = SC_INSTALL_NO_LOCATOR;
- }
+ {
+ this->service_command_ = SC_INSTALL_NO_LOCATOR;
+ }
else
- {
- ACE_ERROR((LM_ERROR, "Error: Unknown service command : %s\n", shifter.get_current()));
- this->print_usage ();
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "Error: Unknown service command : %s\n", shifter.get_current()));
+ this->print_usage ();
+ return -1;
+ }
}
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("-d")) == 0)
@@ -98,7 +98,7 @@ Activator_Options::parse_args (int &argc, char *argv[])
this->print_usage ();
return -1;
}
- this->ior_output_file_ = shifter.get_current ();
+ this->ior_output_file_.set (ACE_TEXT_TO_CHAR_IN (shifter.get_current()));
}
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("-s")) == 0)
@@ -124,7 +124,7 @@ Activator_Options::parse_args (int &argc, char *argv[])
this->print_usage ();
return -1;
}
- this->name_ = shifter.get_current ();
+ this->name_.set (ACE_TEXT_TO_CHAR_IN (shifter.get_current()));
}
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("-l")) == 0)
@@ -143,20 +143,20 @@ Activator_Options::parse_args (int &argc, char *argv[])
}
int
-Activator_Options::init (int argc, char *argv[])
+Activator_Options::init (int argc, ACE_TCHAR *argv[])
{
// Make an initial pass through and grab the arguments that we recognize.
// This may also run the commands to install or remove the nt service.
int result = this->parse_args (argc, argv);
if (result != 0)
- {
- return result;
- }
+ {
+ return result;
+ }
for (int i = 0; i < argc; ++i)
- {
- this->cmdline_ += ACE_CString (argv[i]) + ACE_CString (" ");
- }
+ {
+ this->cmdline_ += ACE_TString(argv[i]) + ACE_TEXT(" ");
+ }
return 0;
}
@@ -194,40 +194,39 @@ Activator_Options::save_registry_options()
LONG err = ACE_TEXT_RegCreateKeyEx (SERVICE_REG_ROOT,
SERVICE_REG_PATH,
0,
- "", // class
+ ACE_TEXT(""), // class
REG_OPTION_NON_VOLATILE,
KEY_ALL_ACCESS,
NULL,
&key,
NULL
);
- if (err != ERROR_SUCCESS)
- {
- return -1;
- }
- err = ACE_TEXT_RegSetValueEx (key, "ORBInitOptions", 0, REG_SZ,
- (LPBYTE) this->cmdline_.c_str (), this->cmdline_.length () + 1);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ if (err != ERROR_SUCCESS) {
+ return -1;
+ }
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("ORBInitOptions"), 0, REG_SZ,
+ (LPBYTE) this->cmdline_.c_str(), this->cmdline_.length() + 1);
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ACE_TEXT_RegSetValueEx (key, "IORFile", 0, REG_SZ,
- (LPBYTE) this->ior_output_file_.c_str (), this->ior_output_file_.length () + 1);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("IORFile"), 0, REG_SZ,
+ (LPBYTE) this->ior_output_file_.c_str(), this->ior_output_file_.length() + 1);
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ACE_TEXT_RegSetValueEx (key, "DebugLevel", 0, REG_DWORD,
- (LPBYTE) &this->debug_ , sizeof (this->debug_));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("DebugLevel"), 0, REG_DWORD,
+ (LPBYTE) &this->debug_ , sizeof(this->debug_));
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ACE_TEXT_RegSetValueEx( key, "Name", 0, REG_SZ,
- (LPBYTE) this->name_.c_str (), this->name_.length () + 1);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("Name"), 0, REG_SZ,
+ (LPBYTE) this->name_.c_str(), this->name_.length() + 1);
+ ACE_ASSERT(err == ERROR_SUCCESS);
DWORD tmpint = this->notify_imr_;
- err = ACE_TEXT_RegSetValueEx (key, "NotifyImR", 0, REG_DWORD,
- (LPBYTE) &tmpint , sizeof (tmpint));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("NotifyImR"), 0, REG_DWORD,
+ (LPBYTE) &tmpint , sizeof(tmpint));
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ::RegCloseKey (key);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ::RegCloseKey(key);
+ ACE_ASSERT(err == ERROR_SUCCESS);
#endif
return 0;
}
@@ -244,62 +243,56 @@ Activator_Options::load_registry_options ()
KEY_READ,
&key
);
- if (err != ERROR_SUCCESS)
- {
- // If there aren't any saved parameters, then that's ok.
- return 0;
- }
- char tmpstr[4096];
- DWORD sz = sizeof (tmpstr);
+ if (err != ERROR_SUCCESS) {
+ // If there aren't any saved parameters, then that's ok.
+ return 0;
+ }
+ ACE_TCHAR tmpstr[4096];
+ DWORD sz = sizeof(tmpstr);
DWORD type = 0;
- err = ACE_TEXT_RegQueryValueEx (key, "ORBInitOptions", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("ORBInitOptions"), 0, &type,
(LPBYTE) tmpstr, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_SZ);
- tmpstr[sz - 1] = '\0';
- this->cmdline_ = tmpstr;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_SZ);
+ tmpstr[sz - 1] = '\0';
+ this->cmdline_ = tmpstr;
+ }
sz = sizeof(tmpstr);
- err = ACE_TEXT_RegQueryValueEx (key, "IORFile", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("IORFile"), 0, &type,
(LPBYTE) tmpstr, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_SZ);
- tmpstr[sz - 1] = '\0';
- this->ior_output_file_ = tmpstr;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_SZ);
+ tmpstr[sz - 1] = '\0';
+ this->ior_output_file_.set (ACE_TEXT_TO_CHAR_IN (tmpstr));
+ }
sz = sizeof(debug_);
- err = ACE_TEXT_RegQueryValueEx (key, "DebugLevel", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("DebugLevel"), 0, &type,
(LPBYTE) &this->debug_ , &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ }
sz = sizeof(tmpstr);
- err = ACE_TEXT_RegQueryValueEx (key, "Name", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("Name"), 0, &type,
(LPBYTE) tmpstr, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_SZ);
- tmpstr[sz - 1] = '\0';
- this->name_ = tmpstr;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_SZ);
+ tmpstr[sz - 1] = '\0';
+ this->name_.set (ACE_TEXT_TO_CHAR_IN (tmpstr));
+ }
DWORD tmpint = 0;
sz = sizeof(tmpint);
- err = ACE_TEXT_RegQueryValueEx (key, "NotifyImR", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("NotifyImR"), 0, &type,
(LPBYTE) &tmpint , &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ }
this->notify_imr_ = tmpint != 0;
- err = ::RegCloseKey (key);
+ err = ::RegCloseKey(key);
ACE_ASSERT(err == ERROR_SUCCESS);
#endif /* ACE_WIN32 */
return 0;
@@ -330,19 +323,17 @@ Activator_Options::ior_filename (void) const
}
Activator_Options::SERVICE_COMMAND
-Activator_Options::service_command (void) const
+Activator_Options::service_command(void) const
{
return this->service_command_;
}
-const char*
-Activator_Options::cmdline (void) const
-{
+const ACE_TCHAR*
+Activator_Options::cmdline(void) const {
return this->cmdline_.c_str ();
}
const ACE_CString&
-Activator_Options::name (void) const
-{
+Activator_Options::name(void) const {
return this->name_;
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_Options.h b/TAO/orbsvcs/ImplRepo_Service/Activator_Options.h
index 45f351a0f44..a6e486da09e 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_Options.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_Options.h
@@ -32,7 +32,7 @@
class Activator_Export Activator_Options
{
public:
-
+
enum SERVICE_COMMAND {
SC_NONE,
SC_INSTALL,
@@ -43,14 +43,14 @@ public:
Activator_Options ();
/// Parse the command-line arguments and initialize the options.
- int init (int argc, char *argv[]);
+ int init (int argc, ACE_TCHAR *argv[]);
/// This version should only be used when run as an nt service.
int init_from_registry();
/// Service Mode
bool service (void) const;
- /// Notify the ImR when server processes die.
+ /// Notify the ImR when server processes die.
/// Note : Currently this only works on Unix.
bool notify_imr (void) const;
@@ -66,13 +66,13 @@ public:
/// Save the command line arguments as registry settings. (Windows only)
int save_registry_options ();
- const char* cmdline(void) const;
+ const ACE_TCHAR* cmdline(void) const;
const ACE_CString& name(void) const;
private:
/// Parses and pulls out arguments for the ImR
- int parse_args (int &argc, char *argv[]);
+ int parse_args (int &argc, ACE_TCHAR *argv[]);
/// Print the usage information.
void print_usage (void) const;
@@ -83,7 +83,7 @@ private:
private:
/// Our extra command line arguments
- ACE_CString cmdline_;
+ ACE_TString cmdline_;
/// Debug level.
unsigned int debug_;
diff --git a/TAO/orbsvcs/ImplRepo_Service/Adapter_Activator.cpp b/TAO/orbsvcs/ImplRepo_Service/Adapter_Activator.cpp
index e68bdbcf4f9..04cf4f5e647 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Adapter_Activator.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Adapter_Activator.cpp
@@ -13,13 +13,13 @@
#include "ace/Log_Msg.h"
-ImR_Adapter::ImR_Adapter (void)
-: servant_locator_ (0)
+ImR_Adapter::ImR_Adapter(void)
+: servant_locator_(0)
{
}
void
-ImR_Adapter::init (PortableServer::ServantLocator_ptr servant)
+ImR_Adapter::init(PortableServer::ServantLocator_ptr servant)
{
servant_locator_ = servant;
}
@@ -30,8 +30,8 @@ ImR_Adapter::unknown_adapter (PortableServer::POA_ptr parent,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_ASSERT (! CORBA::is_nil(parent));
- ACE_ASSERT (name != 0);
+ ACE_ASSERT(! CORBA::is_nil(parent));
+ ACE_ASSERT(name != 0);
CORBA::PolicyList policies (2);
policies.length (2);
@@ -76,7 +76,7 @@ ImR_Adapter::unknown_adapter (PortableServer::POA_ptr parent,
ACE_TRY_CHECK;
exception_message = "While unknown_adapter, set_servant_manager";
- child->set_servant_manager (this->servant_locator_ ACE_ENV_ARG_PARAMETER);
+ child->set_servant_manager(this->servant_locator_ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.cpp b/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.cpp
index 2cebbc590bd..dded9d60d2b 100644
--- a/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.cpp
@@ -7,19 +7,18 @@
using namespace ImplementationRepository;
-AsyncStartupWaiter_i::PendingData::PendingData (const char* p, const char* i)
-: partial_ior (p)
-, ior( i)
+AsyncStartupWaiter_i::PendingData::PendingData(const char* p, const char* i)
+: partial_ior(p)
+, ior(i)
{
}
-AsyncStartupWaiter_i::PendingData::PendingData ()
+AsyncStartupWaiter_i::PendingData::PendingData()
{
}
-void AsyncStartupWaiter_i::debug (bool dbg)
-{
+void AsyncStartupWaiter_i::debug(bool dbg) {
debug_ = dbg;
}
@@ -28,35 +27,32 @@ void AsyncStartupWaiter_i::wait_for_startup (AMH_AsyncStartupWaiterResponseHandl
{
PendingListPtr plst;
pending_.find(name, plst);
- if (! plst.null () && plst->size () > 0)
- {
- PendingList& tmp = *plst;
- PendingData& pd = tmp[tmp.size () - 1];
- tmp.pop_back ();
-
- if (debug_)
- ACE_DEBUG ((LM_DEBUG, "ImR: Skipping wait due to queued startup info for <%s>.\n", name));
-
- send_response (*rh, name, pd.partial_ior.c_str(), pd.ior.c_str());
-
- }
- else
+ if (! plst.null() && plst->size() > 0) {
+ PendingList& tmp = *plst;
+ PendingData& pd = tmp[tmp.size() - 1];
+ tmp.pop_back();
+
+ if (debug_)
+ ACE_DEBUG((LM_DEBUG, "ImR: Skipping wait due to queued startup info for <%s>.\n", name));
+
+ send_response(*rh, name, pd.partial_ior.c_str(), pd.ior.c_str());
+
+ } else {
+ RHListPtr lst;
+ waiting_.find(name, lst);
+ if (lst.null())
{
- RHListPtr lst;
- waiting_.find (name, lst);
- if (lst.null ())
- {
- lst = RHListPtr (new RHList);
- int err = waiting_.bind (name, lst);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
- }
- lst->push_back (AMH_AsyncStartupWaiterResponseHandler::_duplicate (rh));
+ lst = RHListPtr(new RHList);
+ int err = waiting_.bind(name, lst);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
}
+ lst->push_back(AMH_AsyncStartupWaiterResponseHandler::_duplicate(rh));
+ }
}
void
-AsyncStartupWaiter_i::send_response (ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler& rh,
+AsyncStartupWaiter_i::send_response(ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler& rh,
const char* name, const char* partial_ior, const char* ior)
{
StartupInfo_var si = new StartupInfo();
@@ -66,52 +62,51 @@ AsyncStartupWaiter_i::send_response (ImplementationRepository::AMH_AsyncStartupW
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- rh.wait_for_startup (si.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ rh.wait_for_startup(si.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHANY
- {
- if (debug_)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "AsyncStartupWaiter_i::send_response ()");
- }
+ {
+ if (debug_)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "AsyncStartupWaiter_i::send_response()");
+ }
ACE_ENDTRY;
}
void
-AsyncStartupWaiter_i::unblock_one (const char* name, const char* partial_ior, const char* ior, bool queue) {
+AsyncStartupWaiter_i::unblock_one(const char* name, const char* partial_ior, const char* ior, bool queue) {
ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_var rh = get_one_waiter(name);
- if (! CORBA::is_nil(rh.in ()))
- {
- send_response (*rh.in (), name, partial_ior, ior);
- }
- else if (queue)
- {
- if (debug_)
- ACE_DEBUG((LM_DEBUG, "ImR: Queuing startup info.\n"));
-
- PendingListPtr lst;
- pending_.find (name, lst);
- if (lst.null ())
- {
- lst = PendingListPtr (new PendingList);
- int err = pending_.bind (name, lst);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
- }
- lst->push_back (PendingData (partial_ior, ior));
+ if (! CORBA::is_nil(rh.in())) {
+
+ send_response(*rh.in (), name, partial_ior, ior);
+
+ } else if (queue) {
+
+ if (debug_)
+ ACE_DEBUG((LM_DEBUG, "ImR: Queuing startup info.\n"));
+
+ PendingListPtr lst;
+ pending_.find(name, lst);
+ if (lst.null()) {
+ lst = PendingListPtr(new PendingList);
+ int err = pending_.bind(name, lst);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
}
+ lst->push_back(PendingData(partial_ior, ior));
+ }
}
void
-AsyncStartupWaiter_i::unblock_all (const char* name) {
+AsyncStartupWaiter_i::unblock_all(const char* name) {
RHList tmp;
- get_all_waiters (name, tmp);
+ get_all_waiters(name, tmp);
// This startup info should be ignored when unblocking all, because we
// don't know the ior or partial_ior at this point.
- StartupInfo_var si = new StartupInfo ();
+ StartupInfo_var si = new StartupInfo();
si->name = name;
// Note : This method may be called when there are no waiters.
@@ -120,52 +115,48 @@ AsyncStartupWaiter_i::unblock_all (const char* name) {
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_var& rh = tmp[i];
-
- rh->wait_for_startup (si.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_var& rh = tmp[i];
+
+ rh->wait_for_startup(si.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHANY
- {
- if (debug_)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "AsyncStartupWaiter_i::unblock_all ()");
- }
+ {
+ if (debug_)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "AsyncStartupWaiter_i::unblock_all()");
+ }
ACE_ENDTRY;
}
}
ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_ptr
-AsyncStartupWaiter_i::get_one_waiter (const char* name)
-{
+AsyncStartupWaiter_i::get_one_waiter(const char* name) {
RHListPtr lst;
- waiting_.find (name, lst);
- if (! lst.null() && lst->size () > 0)
- {
- RHList& rhlst = *lst;
- ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_var& tmp = rhlst[rhlst.size () - 1];
- ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_ptr ret = tmp._retn ();
- rhlst.pop_back ();
- return ret;
- }
- return ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler::_nil ();
+ waiting_.find(name, lst);
+ if (! lst.null() && lst->size() > 0) {
+ RHList& rhlst = *lst;
+ ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_var& tmp = rhlst[rhlst.size() - 1];
+ ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_ptr ret = tmp._retn();
+ rhlst.pop_back();
+ return ret;
+ }
+ return ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler::_nil();
}
void
-AsyncStartupWaiter_i::get_all_waiters (const char* name, RHList& ret)
-{
+AsyncStartupWaiter_i::get_all_waiters(const char* name, RHList& ret) {
RHListPtr lst;
- waiting_.find (name, lst);
- if (! lst.null ()) {
- for (size_t i = 0; i < lst->size (); ++i)
- {
- RHList& tmp = *lst;
- ret.push_back (tmp[i]);
- // The ACE_Vector will not destruct the elements when cleared, so we must
- // make sure to do so here.
- tmp[i] = ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler::_nil ();
- }
- lst->clear ();
+ waiting_.find(name, lst);
+ if (! lst.null()) {
+ for (size_t i = 0; i < lst->size(); ++i) {
+ RHList& tmp = *lst;
+ ret.push_back(tmp[i]);
+ // The ACE_Vector will not destruct the elements when cleared, so we must
+ // make sure to do so here.
+ tmp[i] = ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler::_nil();
+ }
+ lst->clear();
}
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.h b/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.h
index b4b527e1d40..ba65d51b561 100644
--- a/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.h
+++ b/TAO/orbsvcs/ImplRepo_Service/AsyncStartupWaiter_i.h
@@ -45,7 +45,7 @@ class Locator_Export AsyncStartupWaiter_i : public virtual POA_ImplementationRep
ACE_Null_Mutex> WaitingMap;
public:
-
+
void wait_for_startup (
ImplementationRepository::AMH_AsyncStartupWaiterResponseHandler_ptr rh,
const char* name ACE_ENV_ARG_DECL)
diff --git a/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp b/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp
index 7337af511e9..991e1012870 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Forwarder.cpp
@@ -33,24 +33,24 @@ ImR_Forwarder::ImR_Forwarder (ImR_Locator_i& imr_impl)
}
void
-ImR_Forwarder::init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
+ImR_Forwarder::init(CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
{
- ACE_ASSERT (! CORBA::is_nil(orb));
+ ACE_ASSERT(! CORBA::is_nil(orb));
this->orb_ = orb;
ACE_TRY_NEW_ENV
- {
- CORBA::Object_var tmp =
- orb->resolve_initial_references ("POACurrent" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->poa_current_var_ =
- PortableServer::Current::_narrow (tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ CORBA::Object_var tmp =
+ orb->resolve_initial_references ("POACurrent" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ this->poa_current_var_ =
+ PortableServer::Current::_narrow (tmp.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHANY
- {
- ACE_DEBUG ((LM_DEBUG, "ImR_Forwarder::init() Exception ignored.\n"));
- }
+ {
+ ACE_DEBUG((LM_DEBUG, "ImR_Forwarder::init() Exception ignored.\n"));
+ }
ACE_ENDTRY;
ACE_CHECK;
ACE_ASSERT (!CORBA::is_nil (this->poa_current_var_.in ()));
@@ -72,71 +72,71 @@ ImR_Forwarder::preinvoke (const PortableServer::ObjectId &,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException, PortableServer::ForwardRequest))
{
- ACE_ASSERT (! CORBA::is_nil(poa));
+ ACE_ASSERT(! CORBA::is_nil(poa));
CORBA::Object_var forward_obj;
ACE_TRY
+ {
+ CORBA::String_var server_name = poa->the_name();
+
+ if (locator_.debug() > 1)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Activating server <%s>.\n", server_name.in()));
+
+ // The activator stores a partial ior with each server. We can
+ // just tack on the current ObjectKey to get a valid ior for
+ // the desired server.
+ CORBA::String_var pior = locator_.activate_server_by_name(server_name.in(), false ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ ACE_CString ior = pior.in();
+
+ // Check that the returned ior is the expected partial ior with
+ // missing ObjectKey.
+ if (ior.find("corbaloc:") != 0 || ior[ior.length() - 1] != '/')
{
- CORBA::String_var server_name = poa->the_name();
-
- if (locator_.debug() > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Activating server <%s>.\n", server_name.in()));
-
- // The activator stores a partial ior with each server. We can
- // just tack on the current ObjectKey to get a valid ior for
- // the desired server.
- CORBA::String_var pior = locator_.activate_server_by_name (server_name.in (), false ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_CString ior = pior.in ();
-
- // Check that the returned ior is the expected partial ior with
- // missing ObjectKey.
- if (ior.find ("corbaloc:") != 0 || ior[ior.length () - 1] != '/')
- {
- ACE_ERROR ((LM_ERROR, "ImR_Forwarder::preinvoke () Invalid corbaloc ior.\n\t<%s>\n", ior.c_str()));
- ACE_TRY_THROW (CORBA::OBJECT_NOT_EXIST (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
-
- CORBA::String_var key_str;
- // Unlike POA Current, this implementation cannot be cached.
- TAO::Portable_Server::POA_Current* tao_current =
- dynamic_cast <TAO::Portable_Server::POA_Current*> (this->poa_current_var_.in ());
-
- ACE_ASSERT(tao_current != 0);
- TAO::Portable_Server::POA_Current_Impl* impl = tao_current->implementation ();
- TAO::ObjectKey::encode_sequence_to_string (key_str.out (), impl->object_key ());
-
- ior += key_str.in();
-
- if (locator_.debug() > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Forwarding invocation on <%s> to <%s>\n", server_name.in(), ior.c_str()));
-
- forward_obj =
- this->orb_->string_to_object (ior.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (ImplementationRepository::CannotActivate, ex)
- {
- ACE_TRY_THROW (CORBA::TRANSIENT (
+ ACE_ERROR((LM_ERROR, "ImR_Forwarder::preinvoke() Invalid corbaloc ior.\n\t<%s>\n", ior.c_str()));
+ ACE_TRY_THROW (CORBA::OBJECT_NOT_EXIST (
CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
CORBA::COMPLETED_NO));
}
+
+ CORBA::String_var key_str;
+ // Unlike POA Current, this implementation cannot be cached.
+ TAO::Portable_Server::POA_Current* tao_current =
+ dynamic_cast <TAO::Portable_Server::POA_Current*> (this->poa_current_var_.in ());
+
+ ACE_ASSERT(tao_current != 0);
+ TAO::Portable_Server::POA_Current_Impl* impl = tao_current->implementation ();
+ TAO::ObjectKey::encode_sequence_to_string (key_str.out(), impl->object_key ());
+
+ ior += key_str.in();
+
+ if (locator_.debug() > 0)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Forwarding invocation on <%s> to <%s>\n", server_name.in(), ior.c_str()));
+
+ forward_obj =
+ this->orb_->string_to_object (ior.c_str () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCH (ImplementationRepository::CannotActivate, ex)
+ {
+ ACE_TRY_THROW (CORBA::TRANSIENT (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
ACE_CATCH (ImplementationRepository::NotFound, ex)
- {
- ACE_TRY_THROW (CORBA::TRANSIENT (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
+ {
+ ACE_TRY_THROW (CORBA::TRANSIENT (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Forwarder");
- ACE_TRY_THROW (CORBA::TRANSIENT (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Forwarder");
+ ACE_TRY_THROW (CORBA::TRANSIENT (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
ACE_ENDTRY;
ACE_CHECK_RETURN (0);
@@ -150,7 +150,8 @@ ImR_Forwarder::preinvoke (const PortableServer::ObjectId &,
}
void
-ImR_Forwarder::postinvoke (const PortableServer::ObjectId &,
+ImR_Forwarder::postinvoke (
+ const PortableServer::ObjectId &,
PortableServer::POA_ptr,
const char *,
PortableServer::ServantLocator::Cookie,
diff --git a/TAO/orbsvcs/ImplRepo_Service/INS_Locator.cpp b/TAO/orbsvcs/ImplRepo_Service/INS_Locator.cpp
index 3057a8d6622..600024e1c80 100644
--- a/TAO/orbsvcs/ImplRepo_Service/INS_Locator.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/INS_Locator.cpp
@@ -23,42 +23,43 @@ char *
INS_Locator::locate (const char* object_key ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException, IORTable::NotFound))
{
- ACE_ASSERT (object_key != 0);
+ ACE_ASSERT(object_key != 0);
ACE_TRY
+ {
+ ACE_CString key(object_key);
+ ssize_t poaidx = key.find('/');
+ if (poaidx >= 0)
{
- ACE_CString key (object_key);
- ssize_t poaidx = key.find ('/');
- if (poaidx >= 0)
- {
- key = key.substring (0, poaidx);
- }
+ key = key.substring(0, poaidx);
+ }
- if (imr_locator_.debug () > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Activating server <%s>.\n", key.c_str ()));
+ if (imr_locator_.debug() > 1)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Activating server <%s>.\n", key.c_str()));
- CORBA::String_var located =
- this->imr_locator_.activate_server_by_object (key.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::String_var located =
+ this->imr_locator_.activate_server_by_object(key.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- ACE_CString tmp = located.in ();
- tmp += object_key;
+ ACE_CString tmp = located.in();
+ tmp += object_key;
- if (imr_locator_.debug () > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Forwarding invocation on <%s> to <%s>\n", key.c_str (), tmp.c_str()));
+ if (imr_locator_.debug() > 0)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Forwarding invocation on <%s> to <%s>\n", key.c_str(), tmp.c_str()));
- return CORBA::string_dup (tmp.c_str ());
- }
- ACE_CATCH (ImplementationRepository::CannotActivate, ex)
- {
- ACE_TRY_THROW (CORBA::TRANSIENT (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
- ACE_CATCH (ImplementationRepository::NotFound, ex)
- {
- ACE_TRY_THROW (CORBA::TRANSIENT (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
+ return CORBA::string_dup(tmp.c_str());
+ }
+ ACE_CATCH(ImplementationRepository::CannotActivate, ex)
+ {
+ ACE_TRY_THROW (CORBA::TRANSIENT (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
+ ACE_CATCH(ImplementationRepository::NotFound, ex)
+ {
+ ACE_TRY_THROW (CORBA::TRANSIENT (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
ACE_ENDTRY;
+ return 0;
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Activator.cpp b/TAO/orbsvcs/ImplRepo_Service/ImR_Activator.cpp
index 34da1320caf..ecaf693dde9 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Activator.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Activator.cpp
@@ -10,7 +10,7 @@
class ImR_Activator_Shutdown : public Shutdown_Functor
{
public:
- ImR_Activator_Shutdown (ImR_Activator_i& act);
+ ImR_Activator_Shutdown(ImR_Activator_i& act);
void operator() (int which_signal);
private:
@@ -28,7 +28,7 @@ ImR_Activator_Shutdown::operator() (int /*which_signal*/)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- this->act_.shutdown (true ACE_ENV_ARG_PARAMETER);
+ this->act_.shutdown(true ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -44,7 +44,7 @@ run_standalone (Activator_Options& opts)
ImR_Activator_i server;
ImR_Activator_Shutdown killer (server);
- Service_Shutdown kill_contractor (killer);
+ Service_Shutdown kill_contractor(killer);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -117,59 +117,56 @@ run_service (void)
static int
run_service_command (Activator_Options& opts)
{
- if (opts.service_command () == Activator_Options::SC_NONE)
+ if (opts.service_command() == Activator_Options::SC_NONE)
return 0;
#if defined (ACE_WIN32)
SERVICE::instance()->name (IMR_ACTIVATOR_SERVICE_NAME, IMR_ACTIVATOR_DISPLAY_NAME);
- if (opts.service_command () == Activator_Options::SC_INSTALL ||
- opts.service_command () == Activator_Options::SC_INSTALL_NO_LOCATOR)
- {
- const DWORD MAX_PATH_LENGTH = 4096;
- char pathname[MAX_PATH_LENGTH];
-
- DWORD length = ACE_TEXT_GetModuleFileName(NULL, pathname, MAX_PATH_LENGTH);
- if (length == 0 || length >= MAX_PATH_LENGTH - sizeof(" -s"))
- {
- ACE_ERROR ((LM_ERROR, "Error: Could not get module file name\n"));
- return -1;
- }
-
- // Append the command used for running the implrepo as a service
- ACE_OS::strcat (pathname, ACE_TEXT (" -s"));
- int ret = -1;
- if (opts.service_command () == Activator_Options::SC_INSTALL)
- {
- const char* DEPENDS_ON = "TAOImR"; // Must match Locator_NT_Service.h
-
- ret = SERVICE::instance ()->insert (SERVICE_DEMAND_START,
- SERVICE_ERROR_NORMAL,
- pathname,
- 0, // group
- 0, // tag
- DEPENDS_ON
- );
- }
- else
- {
- ret = SERVICE::instance ()->insert (SERVICE_DEMAND_START,
- SERVICE_ERROR_NORMAL,
- pathname);
- }
- if (ret != -1)
+ if (opts.service_command() == Activator_Options::SC_INSTALL ||
+ opts.service_command() == Activator_Options::SC_INSTALL_NO_LOCATOR)
+ {
+ const DWORD MAX_PATH_LENGTH = 4096;
+ ACE_TCHAR pathname[MAX_PATH_LENGTH];
+
+ DWORD length = ACE_TEXT_GetModuleFileName(NULL, pathname, MAX_PATH_LENGTH);
+ if (length == 0 || length >= MAX_PATH_LENGTH - sizeof(" -s"))
{
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Service installed.\n"));
- opts.save_registry_options ();
+ ACE_ERROR ((LM_ERROR, "Error: Could not get module file name\n"));
+ return -1;
}
+
+ // Append the command used for running the implrepo as a service
+ ACE_OS::strcat (pathname, ACE_TEXT (" -s"));
+ int ret = -1;
+ if (opts.service_command() == Activator_Options::SC_INSTALL)
+ {
+ const ACE_TCHAR* DEPENDS_ON = ACE_TEXT("TAOImR"); // Must match Locator_NT_Service.h
+
+ ret = SERVICE::instance ()->insert (SERVICE_DEMAND_START,
+ SERVICE_ERROR_NORMAL,
+ pathname,
+ 0, // group
+ 0, // tag
+ DEPENDS_ON
+ );
+ }
else
- {
- ACE_ERROR ((LM_ERROR, "Error: Failed to install service.\n"));
- }
+ {
+ ret = SERVICE::instance ()->insert (SERVICE_DEMAND_START,
+ SERVICE_ERROR_NORMAL,
+ pathname);
+ }
+ if (ret != -1) {
+ ACE_DEBUG ((LM_DEBUG, "ImR Activator: Service installed.\n"));
+ opts.save_registry_options();
+ } else {
+ ACE_ERROR((LM_ERROR, "Error: Failed to install service.\n"));
+ }
if (ret == 0)
return 1;
}
- else if (opts.service_command () == Activator_Options::SC_REMOVE)
+ else if (opts.service_command() == Activator_Options::SC_REMOVE)
{
int ret = SERVICE::instance ()->remove ();
ACE_DEBUG ((LM_DEBUG, "ImR Activator: Service removed.\n"));
@@ -177,11 +174,11 @@ run_service_command (Activator_Options& opts)
return 1; // If successfull, then we don't want to continue.
}
else
- {
- ACE_ERROR ((LM_ERROR, "Error: Unknown service command :%d \n",
- opts.service_command ()));
- return -1;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "Error: Unknown service command :%d \n",
+ opts.service_command()));
+ return -1;
+ }
return -1;
@@ -192,7 +189,7 @@ run_service_command (Activator_Options& opts)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
Activator_Options opts;
@@ -202,14 +199,14 @@ main (int argc, char *argv[])
else if (result > 0)
return 0; // No error, but we should exit anyway.
- result = run_service_command (opts);
+ result = run_service_command(opts);
if (result < 0)
return 1; // Error
else if (result > 0)
return 0; // No error, but we should exit anyway.
- if (opts.service ())
- return run_service ();
+ if (opts.service())
+ return run_service();
return run_standalone (opts);
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp b/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp
index 7017ec1827d..ec784f19c86 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Activator_i.cpp
@@ -11,8 +11,9 @@
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdio.h"
#include "ace/os_include/os_netdb.h"
+#include "ace/Argv_Type_Converter.h"
-static ACE_CString getHostName ()
+static ACE_CString getHostName()
{
char host_name[MAXHOSTNAMELEN];
ACE_OS::hostname (host_name, MAXHOSTNAMELEN);
@@ -23,175 +24,172 @@ ImR_Activator_i::ImR_Activator_i (void)
: registration_token_(0)
, debug_(0)
, notify_imr_ (false)
-, name_ (getHostName ())
+, name_(getHostName())
{
}
static PortableServer::POA_ptr
-createPersistentPOA (PortableServer::POA_ptr root_poa, const char* poa_name ACE_ENV_ARG_DECL)
-{
+createPersistentPOA(PortableServer::POA_ptr root_poa, const char* poa_name ACE_ENV_ARG_DECL) {
+
PortableServer::LifespanPolicy_var life =
- root_poa->create_lifespan_policy (PortableServer::PERSISTENT ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ root_poa->create_lifespan_policy(PortableServer::PERSISTENT ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
PortableServer::IdAssignmentPolicy_var assign =
- root_poa->create_id_assignment_policy (PortableServer::USER_ID ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ root_poa->create_id_assignment_policy(PortableServer::USER_ID ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
CORBA::PolicyList pols;
- pols.length (2);
- pols[0] = PortableServer::LifespanPolicy::_duplicate (life.in ());
- pols[1] = PortableServer::IdAssignmentPolicy::_duplicate (assign.in ());
+ pols.length(2);
+ pols[0] = PortableServer::LifespanPolicy::_duplicate(life.in());
+ pols[1] = PortableServer::IdAssignmentPolicy::_duplicate(assign.in());
- PortableServer::POAManager_var mgr = root_poa->the_POAManager ();
+ PortableServer::POAManager_var mgr = root_poa->the_POAManager();
PortableServer::POA_var poa =
- root_poa->create_POA(poa_name, mgr.in (), pols ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(PortableServer::POA::_nil ());
+ root_poa->create_POA(poa_name, mgr.in(), pols ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
- life->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
- assign->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ life->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
+ assign->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
- return poa._retn ();
+ return poa._retn();
}
// It's ok if we can't register with the ImR. It just
// means we won't be able to notify it of any events
// (Currently, just that we're shutting down.)
void
-ImR_Activator_i::register_with_imr (ImplementationRepository::Activator_ptr activator)
+ImR_Activator_i::register_with_imr(ImplementationRepository::Activator_ptr activator)
{
ACE_TRY_NEW_ENV
- {
- if (this->debug_ > 1)
- ACE_DEBUG( (LM_DEBUG, "ImR Activator: Contacting ImplRepoService...\n"));
+ {
+ if (this->debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Contacting ImplRepoService...\n"));
- // First, resolve the ImR, without this we can go no further
- CORBA::Object_var obj =
- orb_->resolve_initial_references ("ImplRepoService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // First, resolve the ImR, without this we can go no further
+ CORBA::Object_var obj =
+ orb_->resolve_initial_references ("ImplRepoService" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->process_mgr_.open (ACE_Process_Manager::DEFAULT_SIZE,
- this->orb_->orb_core ()->reactor ());
+ this->process_mgr_.open (ACE_Process_Manager::DEFAULT_SIZE,
+ this->orb_->orb_core ()->reactor ());
- locator_ = ImplementationRepository::Locator::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ locator_ = ImplementationRepository::Locator::_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (!CORBA::is_nil (locator_.in ()))
- {
- this->registration_token_ =
- locator_->register_activator (name_.c_str (), activator ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->registration_token_ =
+ locator_->register_activator (name_.c_str(), activator ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (debug_ > 0)
- ACE_DEBUG((LM_DEBUG, "ImR Activator: Registered with ImR.\n"));
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Registered with ImR.\n"));
- return;
- }
- }
+ return;
+ }
ACE_CATCHANY
- {
- if (debug_ > 1)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR Activator: Can't register with ImR.");
- }
+ {
+ if (debug_ > 1)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR Activator: Can't register with ImR.");
+ }
ACE_ENDTRY;
if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Not registered with ImR.\n"));
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Not registered with ImR.\n"));
}
int
-ImR_Activator_i::init_with_orb (CORBA::ORB_ptr orb, const Activator_Options& opts ACE_ENV_ARG_DECL)
+ImR_Activator_i::init_with_orb(CORBA::ORB_ptr orb, const Activator_Options& opts ACE_ENV_ARG_DECL)
{
- ACE_ASSERT(! CORBA::is_nil (orb));
- orb_ = CORBA::ORB::_duplicate (orb);
- debug_ = opts.debug ();
- notify_imr_ = opts.notify_imr ();
- if (opts.name ().length () > 0)
+ ACE_ASSERT(! CORBA::is_nil(orb));
+ orb_ = CORBA::ORB::_duplicate(orb);
+ debug_ = opts.debug();
+ notify_imr_ = opts.notify_imr();
+ if (opts.name().length() > 0)
+ {
+ name_ = opts.name();
+ }
+
+ ACE_TRY
+ {
+ CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ ACE_ASSERT(! CORBA::is_nil(obj.in()));
+ this->root_poa_ = PortableServer::POA::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ ACE_ASSERT(! CORBA::is_nil(this->root_poa_.in()));
+
+ // The activator must use a persistent POA so that it can be started before the
+ // locator in some scenarios, such as when the locator persists its database, and
+ // wants to reconnect to running activators to auto_start some servers.
+ this->imr_poa_ = createPersistentPOA(this->root_poa_.in(),
+ "ImR_Activator" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ ACE_ASSERT(! CORBA::is_nil(this->imr_poa_.in()));
+
+ // Activate ourself
+ PortableServer::ObjectId_var id = PortableServer::string_to_ObjectId ("ImR_Activator");
+ this->imr_poa_->activate_object_with_id(id.in(), this ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ obj = this->imr_poa_->id_to_reference (id.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ ImplementationRepository::Activator_var activator =
+ ImplementationRepository::Activator::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ ACE_ASSERT(! CORBA::is_nil(activator.in()));
+
+ CORBA::String_var ior = this->orb_->object_to_string(activator.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (this->debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Starting %s\n", name_.c_str()));
+
+ // initialize our process manager.
+ // This requires a reactor that has signal handling.
+ ACE_Reactor *reactor = ACE_Reactor::instance ();
+ if (reactor != 0)
{
- name_ = opts.name();
+ if (this->process_mgr_.open (ACE_Process_Manager::DEFAULT_SIZE, reactor) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "The ACE_Process_Manager didnt get initialized\n"), -1);
+ }
}
- ACE_TRY
+ this->register_with_imr(activator.in()); // no throw
+
+ PortableServer::POAManager_var poaman =
+ this->root_poa_->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ poaman->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (this->debug_ > 1)
{
- CORBA::Object_var obj = orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_ASSERT (! CORBA::is_nil (obj.in ()));
- this->root_poa_ = PortableServer::POA::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_ASSERT (! CORBA::is_nil(this->root_poa_.in ()));
-
- // The activator must use a persistent POA so that it can be started before the
- // locator in some scenarios, such as when the locator persists its database, and
- // wants to reconnect to running activators to auto_start some servers.
- this->imr_poa_ = createPersistentPOA (this->root_poa_.in (),
- "ImR_Activator" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_ASSERT (! CORBA::is_nil(this->imr_poa_.in ()));
-
- // Activate ourself
- PortableServer::ObjectId_var id = PortableServer::string_to_ObjectId ("ImR_Activator");
- this->imr_poa_->activate_object_with_id (id.in (), this ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- obj = this->imr_poa_->id_to_reference (id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ImplementationRepository::Activator_var activator =
- ImplementationRepository::Activator::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_ASSERT(! CORBA::is_nil (activator.in ()));
-
- CORBA::String_var ior = this->orb_->object_to_string (activator.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (this->debug_ > 0)
- ACE_DEBUG((LM_DEBUG, "ImR Activator: Starting %s\n", name_.c_str ()));
-
- // initialize our process manager.
- // This requires a reactor that has signal handling.
- ACE_Reactor *reactor = ACE_Reactor::instance ();
- if (reactor != 0)
- {
- if (this->process_mgr_.open (ACE_Process_Manager::DEFAULT_SIZE, reactor) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "The ACE_Process_Manager didnt get initialized\n"), -1);
- }
- }
-
- this->register_with_imr (activator.in ()); // no throw
-
- PortableServer::POAManager_var poaman =
- this->root_poa_->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- poaman->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (this->debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR Activator: The Activator IOR is: <%s>\n", ior.in ()));
- }
-
- // The last thing we do is write out the ior so that a test program can assume
- // that the activator is ready to go as soon as the ior is written.
- if (opts.ior_filename ().length () > 0)
- {
- FILE* fp = ACE_OS::fopen (opts.ior_filename ().c_str (), "w");
- if (fp == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "ImR Activator: Could not open file: %s\n", opts.ior_filename ().c_str ()), -1);
- }
- ACE_OS::fprintf (fp, "%s", ior.in ());
- ACE_OS::fclose (fp);
- }
+ ACE_DEBUG ((LM_DEBUG,
+ "ImR Activator: The Activator IOR is: <%s>\n", ior.in ()));
}
- ACE_CATCHANY
+
+ // The last thing we do is write out the ior so that a test program can assume
+ // that the activator is ready to go as soon as the ior is written.
+ if (opts.ior_filename().length() > 0)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR_Activator_i::init_with_orb");
- ACE_RE_THROW;
+ FILE* fp = ACE_OS::fopen(opts.ior_filename().c_str(), ACE_TEXT("w"));
+ if (fp == 0)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ImR Activator: Could not open file: %s\n", opts.ior_filename().c_str()), -1);
+ }
+ ACE_OS::fprintf(fp, "%s", ior.in());
+ ACE_OS::fclose(fp);
}
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR_Activator_i::init_with_orb");
+ ACE_RE_THROW;
+ }
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
return 0;
@@ -200,18 +198,20 @@ ImR_Activator_i::init_with_orb (CORBA::ORB_ptr orb, const Activator_Options& opt
int
ImR_Activator_i::init (Activator_Options& opts ACE_ENV_ARG_DECL)
{
- ACE_CString cmdline = opts.cmdline();
+ ACE_TString cmdline = opts.cmdline();
// Must use IOR style objrefs, because URLs sometimes get mangled when passed
// to ACE_Process::spawn().
- cmdline += "-ORBUseImR 0 -ORBObjRefStyle IOR ";
- ACE_ARGV av (cmdline.c_str ());
- int argc = av.argc ();
+ cmdline += ACE_TEXT("-ORBUseImR 0 -ORBObjRefStyle IOR ");
+ ACE_ARGV av(cmdline.c_str());
+ int argc = av.argc();
+
+ ACE_Argv_Type_Converter convert (argc, av.argv());
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, av.argv (), "TAO_ImR_Activator" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), "TAO_ImR_Activator" ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN(-1);
- int ret = this->init_with_orb(orb.in (), opts ACE_ENV_ARG_PARAMETER);
+ int ret = this->init_with_orb(orb.in(), opts ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN(-1);
return ret;
@@ -220,54 +220,54 @@ ImR_Activator_i::init (Activator_Options& opts ACE_ENV_ARG_DECL)
int
ImR_Activator_i::fini (ACE_ENV_SINGLE_ARG_DECL)
{
- ACE_TRY_EX (try_block_1)
- {
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Shutting down...\n"));
+ ACE_TRY_EX(try_block_1)
+ {
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Shutting down...\n"));
- this->process_mgr_.close ();
+ this->process_mgr_.close();
- this->root_poa_->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (try_block_1);
+ this->root_poa_->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK_EX(try_block_1);
- if (! CORBA::is_nil (this->locator_.in ()) && this->registration_token_ != 0)
- {
- this->locator_->unregister_activator (name_.c_str(),
- this->registration_token_ ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (try_block_1);
- }
- }
- ACE_CATCH(CORBA::COMM_FAILURE, ex)
+ if (! CORBA::is_nil(this->locator_.in()) && this->registration_token_ != 0)
{
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Unable to unregister from ImR.\n"));
+ this->locator_->unregister_activator (name_.c_str(),
+ this->registration_token_ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK_EX(try_block_1);
}
+ }
+ ACE_CATCH(CORBA::COMM_FAILURE, ex)
+ {
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Unable to unregister from ImR.\n"));
+ }
ACE_CATCH(CORBA::TRANSIENT, ex)
- {
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Unable to unregister from ImR.\n"));
- }
+ {
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Unable to unregister from ImR.\n"));
+ }
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR Activator: fini");
- ACE_RE_THROW_EX (try_block_1);
+ ACE_RE_THROW_EX(try_block_1);
}
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
- ACE_TRY_EX (try_block_2)
- {
- this->orb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (try_block_2);
+ ACE_TRY_EX(try_block_2)
+ {
+ this->orb_->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK_EX(try_block_2);
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Shut down successfully.\n"));
- }
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Shut down successfully.\n"));
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR Activator: fini 2");
- ACE_RE_THROW_EX (try_block_2);
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR Activator: fini 2");
+ ACE_RE_THROW_EX(try_block_2);
+ }
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
return 0;
@@ -276,7 +276,7 @@ ImR_Activator_i::fini (ACE_ENV_SINGLE_ARG_DECL)
int
ImR_Activator_i::run (ACE_ENV_SINGLE_ARG_DECL)
{
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
return 0;
}
@@ -285,13 +285,13 @@ void
ImR_Activator_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- shutdown (false ACE_ENV_ARG_PARAMETER);
+ shutdown(false ACE_ENV_ARG_PARAMETER);
}
void
ImR_Activator_i::shutdown (bool wait_for_completion ACE_ENV_ARG_DECL)
{
- this->orb_->shutdown (wait_for_completion ACE_ENV_ARG_PARAMETER);
+ this->orb_->shutdown(wait_for_completion ACE_ENV_ARG_PARAMETER);
}
void
@@ -315,48 +315,48 @@ ImR_Activator_i::start_server(const char* name,
// handles. This includes stdin, stdout, logs, etc.
proc_opts.handle_inheritence (0);
- proc_opts.setenv ("TAO_USE_IMR", "1");
+ proc_opts.setenv(ACE_TEXT("TAO_USE_IMR"), ACE_TEXT("1"));
if (!CORBA::is_nil (this->locator_.in ()))
- {
- CORBA::String_var ior = orb_->object_to_string (locator_.in ());
- proc_opts.setenv ("ImplRepoServiceIOR", ior.in());
- }
+ {
+ CORBA::String_var ior = orb_->object_to_string(locator_.in());
+ proc_opts.setenv(ACE_TEXT("ImplRepoServiceIOR"), ior.in());
+ }
- for (CORBA::ULong i = 0; i < env.length (); ++i)
- {
- proc_opts.setenv (env[i].name.in (), env[i].value.in ());
- }
+ for (CORBA::ULong i = 0; i < env.length(); ++i) {
+ proc_opts.setenv (ACE_TEXT_TO_TCHAR_IN(env[i].name.in()),
+ ACE_TEXT_TO_TCHAR_IN(env[i].value.in()));
+ }
int pid = this->process_mgr_.spawn (proc_opts);
if (pid == ACE_INVALID_PID)
- {
- ACE_ERROR ((LM_ERROR,
- "ImR Activator: Cannot start server <%s> using <%s>\n", name, cmdline));
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ImR Activator: Cannot start server <%s> using <%s>\n", name, cmdline));
- ACE_THROW(ImplementationRepository::CannotActivate(CORBA::string_dup ("Process Creation Failed")));
- return;
- }
+ ACE_THROW(ImplementationRepository::CannotActivate(CORBA::string_dup ("Process Creation Failed")));
+ return;
+ }
else
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG((LM_DEBUG,
- "ImR Activator: register death handler for process %d\n", pid));
- }
- this->process_mgr_.register_handler (this, pid);
-
- // We only bind to the process_map_ if we want to notify
- // the locator of a process' death.
- if (notify_imr_)
- {
- this->process_map_.rebind (pid, name);
- }
+ ACE_DEBUG((LM_DEBUG,
+ "ImR Activator: register death handler for process %d\n", pid));
}
+ this->process_mgr_.register_handler (this, pid);
- if (debug_ > 0)
+ // We only bind to the process_map_ if we want to notify
+ // the locator of a process' death.
+ if (notify_imr_)
{
- ACE_DEBUG ((LM_DEBUG, "ImR Activator: Successfully started <%s>. \n", name));
+ this->process_map_.rebind (pid, name);
}
+ }
+
+ if (debug_ > 0)
+ {
+ ACE_DEBUG((LM_DEBUG, "ImR Activator: Successfully started <%s>. \n", name));
+ }
}
int
@@ -367,29 +367,29 @@ ImR_Activator_i::handle_exit (ACE_Process * process)
// when this happens.
if (debug_ > 0)
- {
- ACE_DEBUG
- ((LM_DEBUG,
- ACE_TEXT ("Process %d exited with exit code %d\n"),
- process->getpid (), process->return_value ()));
- }
+ {
+ ACE_DEBUG
+ ((LM_DEBUG,
+ ACE_TEXT ("Process %d exited with exit code %d\n"),
+ process->getpid (), process->return_value ()));
+ }
ACE_CString name;
if (this->process_map_.find (process->getpid (), name) == 0)
+ {
+ this->process_map_.unbind (process->getpid ());
+
+ if (!CORBA::is_nil (this->locator_.in ()))
{
- this->process_map_.unbind (process->getpid ());
-
- if (!CORBA::is_nil (this->locator_.in ()))
- {
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("ImR Activator: Notifying ImR that %s has exited.\n"),
- name.c_str()));
- }
- this->locator_->notify_child_death (name.c_str());
- }
+ if (debug_ > 1)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("ImR Activator: Notifying ImR that %s has exited.\n"),
+ name.c_str()));
+ }
+ this->locator_->notify_child_death(name.c_str());
}
+ }
return 0;
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.cpp b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.cpp
index 12be58dd8cd..91c69c9b312 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.cpp
@@ -8,7 +8,7 @@
class ImR_Locator_Shutdown : public Shutdown_Functor
{
public:
- ImR_Locator_Shutdown (ImR_Locator_i& imr);
+ ImR_Locator_Shutdown(ImR_Locator_i& imr);
void operator() (int which_signal);
private:
@@ -21,18 +21,18 @@ ImR_Locator_Shutdown::ImR_Locator_Shutdown (ImR_Locator_i &imr)
}
void
-ImR_Locator_Shutdown::operator () (int /*which_signal*/)
+ImR_Locator_Shutdown::operator() (int /*which_signal*/)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- this->imr_.shutdown (true ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ this->imr_.shutdown(true ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR: ");
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR: ");
+ }
ACE_ENDTRY;
}
@@ -116,18 +116,18 @@ run_service (void)
static int
run_service_command (Options& opts)
{
- if (opts.service_command () == Options::SC_NONE)
+ if (opts.service_command() == Options::SC_NONE)
return 0;
#if defined (ACE_WIN32)
SERVICE::instance()->name (IMR_LOCATOR_SERVICE_NAME, IMR_LOCATOR_DISPLAY_NAME);
- if (opts.service_command () == Options::SC_INSTALL)
+ if (opts.service_command() == Options::SC_INSTALL)
{
const DWORD MAX_PATH_LENGTH = 4096;
- char pathname[MAX_PATH_LENGTH];
+ ACE_TCHAR pathname[MAX_PATH_LENGTH];
- DWORD length = ACE_TEXT_GetModuleFileName (NULL, pathname, MAX_PATH_LENGTH);
+ DWORD length = ACE_TEXT_GetModuleFileName(NULL, pathname, MAX_PATH_LENGTH);
if (length == 0 || length >= MAX_PATH_LENGTH - sizeof(" -s"))
{
ACE_ERROR ((LM_ERROR, "Error: Could not get module file name\n"));
@@ -140,19 +140,16 @@ run_service_command (Options& opts)
int ret = SERVICE::instance ()->insert (SERVICE_DEMAND_START,
SERVICE_ERROR_NORMAL,
pathname);
- if (ret != -1)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Service installed.\n"));
- opts.save_registry_options ();
- }
- else
- {
- ACE_ERROR ((LM_ERROR, "Error: Failed to install service. error:%d\n", errno));
- }
+ if (ret != -1) {
+ ACE_DEBUG ((LM_DEBUG, "ImR: Service installed.\n"));
+ opts.save_registry_options();
+ } else {
+ ACE_ERROR((LM_ERROR, "Error: Failed to install service. error:%d\n", errno));
+ }
if (ret == 0)
return 1;
}
- else if (opts.service_command () == Options::SC_REMOVE)
+ else if (opts.service_command() == Options::SC_REMOVE)
{
int ret = SERVICE::instance ()->remove ();
ACE_DEBUG ((LM_DEBUG, "ImR: Service removed.\n"));
@@ -160,11 +157,11 @@ run_service_command (Options& opts)
return 1; // If successfull, then we don't want to continue.
}
else
- {
- ACE_ERROR ((LM_ERROR, "Error: Unknown service command :%d \n",
- opts.service_command ()));
- return -1;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "Error: Unknown service command :%d \n",
+ opts.service_command()));
+ return -1;
+ }
return -1;
@@ -175,7 +172,7 @@ run_service_command (Options& opts)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
Options opts;
@@ -191,7 +188,7 @@ main (int argc, char *argv[])
else if (result > 0)
return 0; // No error, but we should exit anyway.
- if (opts.service ())
+ if (opts.service())
{
return run_service ();
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.idl b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.idl
index acae98bb07f..3fced0b1150 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.idl
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator.idl
@@ -10,7 +10,7 @@ module ImplementationRepository
{
// returns a token that can be used (along with activator name) to unregister the activator.
long register_activator (in string name, in Activator act);
-
+
// You must pass in the token returned from register_activator.
void unregister_activator (in string name, in long token);
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
index 7884c6c36c7..b4374928d61 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.cpp
@@ -17,59 +17,60 @@
#include "ace/ARGV.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/Vector_T.h"
+#include "ace/Argv_Type_Converter.h"
static const int DEFAULT_START_LIMIT = 1;
static const int PING_RETRY_SCHEDULE[] = {0, 10, 100, 500, 1000, 1000, 1000, 1000, 5000, 5000};
-static const ACE_Time_Value DEFAULT_SERVER_TIMEOUT (0, 10 * 1000); // 10ms
+static const ACE_Time_Value DEFAULT_SERVER_TIMEOUT(0, 10 * 1000); // 10ms
// We want to give shutdown a little more time to work, so that we
// can guarantee to the tao_imr utility that it has shutdown. The tao_imr
// utility prints a different message depending on whether shutdown succeeds
// or times out.
-static const ACE_Time_Value DEFAULT_SHUTDOWN_TIMEOUT (0, 5000 * 1000);
+static const ACE_Time_Value DEFAULT_SHUTDOWN_TIMEOUT(0, 5000 * 1000);
static PortableServer::POA_ptr
-createPersistentPOA (PortableServer::POA_ptr root_poa, const char* poa_name ACE_ENV_ARG_DECL) {
+createPersistentPOA(PortableServer::POA_ptr root_poa, const char* poa_name ACE_ENV_ARG_DECL) {
PortableServer::LifespanPolicy_var life =
- root_poa->create_lifespan_policy (PortableServer::PERSISTENT ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ root_poa->create_lifespan_policy(PortableServer::PERSISTENT ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
PortableServer::IdAssignmentPolicy_var assign =
- root_poa->create_id_assignment_policy (PortableServer::USER_ID ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ root_poa->create_id_assignment_policy(PortableServer::USER_ID ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
CORBA::PolicyList pols;
- pols.length (2);
- pols[0] = PortableServer::LifespanPolicy::_duplicate (life.in ());
- pols[1] = PortableServer::IdAssignmentPolicy::_duplicate (assign.in ());
+ pols.length(2);
+ pols[0] = PortableServer::LifespanPolicy::_duplicate(life.in());
+ pols[1] = PortableServer::IdAssignmentPolicy::_duplicate(assign.in());
- PortableServer::POAManager_var mgr = root_poa->the_POAManager ();
+ PortableServer::POAManager_var mgr = root_poa->the_POAManager();
PortableServer::POA_var poa =
- root_poa->create_POA (poa_name, mgr.in (), pols ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ root_poa->create_POA(poa_name, mgr.in(), pols ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
- life->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
- assign->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
+ life->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
+ assign->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN(PortableServer::POA::_nil());
- return poa._retn ();
+ return poa._retn();
}
ImR_Locator_i::ImR_Locator_i (void)
- : forwarder_ (*this)
- , ins_locator_ (0)
- , debug_ (0)
- , read_only_ (false)
+ : forwarder_(*this)
+ , ins_locator_(0)
+ , debug_(0)
+ , read_only_(false)
{
// Visual C++ 6.0 is not smart enough to do a direct assignment
// while allocating the INS_Locator. So, we have to do it in
// two steps.
INS_Locator* locator;
- ACE_NEW (locator,
- INS_Locator (*this));
+ ACE_NEW(locator,
+ INS_Locator(*this));
ins_locator_ = locator;
}
@@ -85,21 +86,21 @@ ImR_Locator_i::~ImR_Locator_i (void)
int
ImR_Locator_i::init_with_orb (CORBA::ORB_ptr orb, Options& opts ACE_ENV_ARG_DECL)
{
- orb_ = CORBA::ORB::_duplicate (orb);
- debug_ = opts.debug ();
- read_only_ = opts.readonly ();
- startup_timeout_ = opts.startup_timeout ();
- ping_interval_ = opts.ping_interval ();
+ orb_ = CORBA::ORB::_duplicate(orb);
+ debug_ = opts.debug();
+ read_only_ = opts.readonly();
+ startup_timeout_ = opts.startup_timeout();
+ ping_interval_ = opts.ping_interval();
CORBA::Object_var obj =
this->orb_->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
this->root_poa_ = PortableServer::POA::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- ACE_ASSERT (! CORBA::is_nil (this->root_poa_.in ()));
+ ACE_ASSERT(! CORBA::is_nil(this->root_poa_.in()));
- this->forwarder_.init (orb ACE_ENV_ARG_PARAMETER);
- this->adapter_.init (& this->forwarder_);
+ this->forwarder_.init(orb ACE_ENV_ARG_PARAMETER);
+ this->adapter_.init(& this->forwarder_);
// Register the Adapter_Activator reference to be the RootPOA's
// Adapter Activator.
@@ -107,31 +108,31 @@ ImR_Locator_i::init_with_orb (CORBA::ORB_ptr orb, Options& opts ACE_ENV_ARG_DECL
ACE_CHECK_RETURN (-1);
// Use a persistent POA so that any IOR
- this->imr_poa_ = createPersistentPOA (this->root_poa_.in (),
- "ImplRepo_Service" ACE_ENV_ARG_PARAMETER);
+ this->imr_poa_ = createPersistentPOA(this->root_poa_.in(),
+ "ImplRepo_Service" ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- ACE_ASSERT (! CORBA::is_nil (this->imr_poa_.in ()));
+ ACE_ASSERT(! CORBA::is_nil(this->imr_poa_.in()));
- waiter_svt_.debug (debug_ > 1);
+ waiter_svt_.debug(debug_ > 1);
PortableServer::ObjectId_var id = PortableServer::string_to_ObjectId ("ImR_AsyncStartupWaiter");
- this->imr_poa_->activate_object_with_id (id.in (), &waiter_svt_ ACE_ENV_ARG_PARAMETER);
+ this->imr_poa_->activate_object_with_id(id.in(), &waiter_svt_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- obj = this->imr_poa_->id_to_reference (id.in () ACE_ENV_ARG_PARAMETER);
+ obj = this->imr_poa_->id_to_reference (id.in() ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
if (startup_timeout_ > ACE_Time_Value::zero)
- {
- obj = set_timeout_policy (obj.in (), startup_timeout_);
- }
- waiter_ = ImplementationRepository::AsyncStartupWaiter::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
+ {
+ obj = set_timeout_policy(obj.in(), startup_timeout_);
+ }
+ waiter_ = ImplementationRepository::AsyncStartupWaiter::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
id = PortableServer::string_to_ObjectId ("ImplRepo_Service");
- this->imr_poa_->activate_object_with_id (id.in (), this ACE_ENV_ARG_PARAMETER);
+ this->imr_poa_->activate_object_with_id(id.in(), this ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- obj = this->imr_poa_->id_to_reference (id.in () ACE_ENV_ARG_PARAMETER);
+ obj = this->imr_poa_->id_to_reference (id.in() ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- CORBA::String_var ior = this->orb_->object_to_string (obj.in () ACE_ENV_ARG_PARAMETER);
+ CORBA::String_var ior = this->orb_->object_to_string(obj.in() ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
// Register the ImR for use with INS
@@ -139,7 +140,7 @@ ImR_Locator_i::init_with_orb (CORBA::ORB_ptr orb, Options& opts ACE_ENV_ARG_DECL
ACE_CHECK_RETURN (-1);
IORTable::Table_var ior_table = IORTable::Table::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- ACE_ASSERT (! CORBA::is_nil (ior_table.in ()));
+ ACE_ASSERT(! CORBA::is_nil(ior_table.in()));
ior_table->bind ("ImplRepoService", ior.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
ior_table->bind ("ImR", ior.in () ACE_ENV_ARG_PARAMETER);
@@ -148,12 +149,12 @@ ImR_Locator_i::init_with_orb (CORBA::ORB_ptr orb, Options& opts ACE_ENV_ARG_DECL
ACE_CHECK_RETURN (-1);
// Set up multicast support (if enabled)
- if (opts.multicast ())
- {
- ACE_Reactor* reactor = orb->orb_core ()->reactor ();
- if (this->setup_multicast (reactor, ior.in ()) != 0)
- return -1;
- }
+ if (opts.multicast())
+ {
+ ACE_Reactor* reactor = orb->orb_core()->reactor();
+ if (this->setup_multicast (reactor, ior.in()) != 0)
+ return -1;
+ }
// Initialize the persistent storage. This will load any values that
// may have been persisted before.
@@ -162,9 +163,9 @@ ImR_Locator_i::init_with_orb (CORBA::ORB_ptr orb, Options& opts ACE_ENV_ARG_DECL
int init_result =
this->repository_.init (opts);
if (init_result == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR, "Repository failed to initialize\n"), -1);
- }
+ {
+ ACE_ERROR_RETURN ((LM_ERROR, "Repository failed to initialize\n"), -1);
+ }
// Activate the two poa managers
PortableServer::POAManager_var poaman =
@@ -178,160 +179,163 @@ ImR_Locator_i::init_with_orb (CORBA::ORB_ptr orb, Options& opts ACE_ENV_ARG_DECL
ACE_CHECK_RETURN (-1);
// We write the ior file last so that the tests can know we are ready.
- if (opts.ior_filename ().length () > 0)
+ if (opts.ior_filename().length() > 0)
+ {
+ FILE* fp = ACE_OS::fopen(opts.ior_filename().c_str(), ACE_TEXT("w"));
+ if (fp == 0)
{
- FILE* fp = ACE_OS::fopen (opts.ior_filename ().c_str (), "w");
- if (fp == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "ImR: Could not open file: %s\n", opts.ior_filename ().c_str ()), -1);
- }
- ACE_OS::fprintf (fp, "%s", ior.in ());
- ACE_OS::fclose (fp);
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ImR: Could not open file: %s\n", opts.ior_filename().c_str()), -1);
}
+ ACE_OS::fprintf(fp, "%s", ior.in());
+ ACE_OS::fclose(fp);
+ }
return 0;
}
int
-ImR_Locator_i::init (Options& opts ACE_ENV_ARG_DECL)
+ImR_Locator_i::init(Options& opts ACE_ENV_ARG_DECL)
{
- ACE_CString cmdline = opts.cmdline ();
- cmdline += " -orbcollocation no -orbuseimr 0";
- ACE_ARGV av (cmdline.c_str ());
- int argc = av.argc ();
- char** argv = av.argv ();
-
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "TAO_ImR_Locator" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- int err = this->init_with_orb (orb.in (), opts ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
+ ACE_TString cmdline = opts.cmdline();
+ cmdline += ACE_TEXT(" -orbcollocation no -orbuseimr 0");
+ ACE_ARGV av(cmdline.c_str());
+ int argc = av.argc();
+ ACE_TCHAR** argv = av.argv();
+
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(),
+ "TAO_ImR_Locator" ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(-1);
+ int err = this->init_with_orb(orb.in(), opts ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(-1);
return err;
}
int
-ImR_Locator_i::run (ACE_ENV_SINGLE_ARG_DECL)
+ImR_Locator_i::run(ACE_ENV_SINGLE_ARG_DECL)
{
if (debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Implementation Repository: Running\n"
- "\tPing Interval : %dms\n"
- "\tStartup Timeout : %ds\n"
- "\tPersistence : %s\n"
- "\tMulticast : %s\n"
- "\tDebug : %d\n"
- "\tLocked : %s\n\n",
- ping_interval_.msec (),
- startup_timeout_.sec (),
- repository_.repo_mode (),
- ior_multicast_.reactor () != 0 ? "Enabled" : "Disabled",
- debug (),
- read_only_ ? "True" : "False"));
- }
- this->auto_start_servers (ACE_ENV_SINGLE_ARG_PARAMETER);
+ {
+ ACE_DEBUG((LM_DEBUG, "Implementation Repository: Running\n"
+ "\tPing Interval : %dms\n"
+ "\tStartup Timeout : %ds\n"
+ "\tPersistence : %s\n"
+ "\tMulticast : %s\n"
+ "\tDebug : %d\n"
+ "\tLocked : %s\n\n",
+ ping_interval_.msec(),
+ startup_timeout_.sec(),
+ ACE_TEXT_TO_CHAR_IN(repository_.repo_mode()),
+ ior_multicast_.reactor() != 0 ? "Enabled" : "Disabled",
+ debug(),
+ read_only_ ? "True" : "False"));
+ }
+ this->auto_start_servers(ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
return 0;
}
void
-ImR_Locator_i::shutdown (CORBA::Boolean activators, CORBA::Boolean servers ACE_ENV_ARG_DECL)
+ImR_Locator_i::shutdown(CORBA::Boolean activators, CORBA::Boolean servers ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- if (servers != 0 && this->repository_.servers ().current_size () > 0)
+ if (servers != 0 && this->repository_.servers().current_size() > 0)
+ {
+ // Note : shutdown is oneway, so we can't throw
+ ACE_ERROR((LM_ERROR, "ImR: Shutdown of all servers not implemented.\n"));
+ }
+ if (activators != 0 && this->repository_.activators().current_size() > 0)
+ {
+ ACE_Vector<ImplementationRepository::Activator_var> acts;
+ Locator_Repository::AIMap::ENTRY* entry = 0;
+ Locator_Repository::AIMap::ITERATOR it(this->repository_.activators());
+ for (;it.next(entry) != 0; it.advance())
{
- // Note : shutdown is oneway, so we can't throw
- ACE_ERROR ((LM_ERROR, "ImR: Shutdown of all servers not implemented.\n"));
+ Activator_Info_Ptr info = entry->int_id_;
+ ACE_ASSERT(! info.null());
+ connect_activator(*info);
+ if (! CORBA::is_nil(info->activator.in()))
+ acts.push_back(info->activator);
}
- if (activators != 0 && this->repository_.activators ().current_size () > 0)
- {
- ACE_Vector<ImplementationRepository::Activator_var> acts;
- Locator_Repository::AIMap::ENTRY* entry = 0;
- Locator_Repository::AIMap::ITERATOR it (this->repository_.activators ());
- for (;it.next (entry) != 0; it.advance ())
- {
- Activator_Info_Ptr info = entry->int_id_;
- ACE_ASSERT (! info.null ());
- connect_activator (*info);
- if (! CORBA::is_nil (info->activator.in ()))
- acts.push_back (info->activator);
- }
- int shutdown_errs = 0;
+ int shutdown_errs = 0;
- for (size_t i = 0; i < acts.size (); ++i)
- {
- ACE_TRY
- {
- acts[i]->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- acts[i] = ImplementationRepository::Activator::_nil ();
- }
- ACE_CATCHANY
- {
- ++shutdown_errs;
- if (debug_ > 1)
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR: shutdown activator");
- }
- }
- ACE_ENDTRY;
- ACE_CHECK;
- }
- if (debug_ > 0 && shutdown_errs > 0)
+ for (size_t i = 0; i < acts.size(); ++i)
+ {
+ ACE_TRY
+ {
+ acts[i]->shutdown(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ acts[i] = ImplementationRepository::Activator::_nil();
+ }
+ ACE_CATCHANY
+ {
+ ++shutdown_errs;
+ if (debug_ > 1)
{
- ACE_DEBUG ((LM_DEBUG, "ImR: Some activators could not be shut down.\n"));
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR: shutdown activator");
}
+ }
+ ACE_ENDTRY;
+ ACE_CHECK;
}
+ if (debug_ > 0 && shutdown_errs > 0)
+ {
+ ACE_DEBUG((LM_DEBUG, "ImR: Some activators could not be shut down.\n"));
+ }
+ }
// Technically, we should wait for all the activators to unregister, but
// ,for now at least, it doesn't seem worth it.
- shutdown (false ACE_ENV_ARG_PARAMETER);
+ shutdown(false ACE_ENV_ARG_PARAMETER);
}
void
ImR_Locator_i::shutdown (bool wait_for_completion ACE_ENV_ARG_DECL)
{
- this->orb_->shutdown (wait_for_completion ACE_ENV_ARG_PARAMETER);
+ this->orb_->shutdown(wait_for_completion ACE_ENV_ARG_PARAMETER);
}
int
ImR_Locator_i::fini (ACE_ENV_SINGLE_ARG_DECL)
{
ACE_TRY
- {
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Shutting down...\n"));
+ {
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR: Shutting down...\n"));
- teardown_multicast ();
+ teardown_multicast();
- this->root_poa_->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->root_poa_->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->orb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->orb_->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Shut down successfully.\n"));
- }
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Shut down successfully.\n"));
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR_Locator_i::fini");
- ACE_RE_THROW;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR_Locator_i::fini");
+ ACE_RE_THROW;
+ }
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
return 0;
}
void
-ImR_Locator_i::teardown_multicast ()
+ImR_Locator_i::teardown_multicast()
{
- ACE_Reactor* r = ior_multicast_.reactor ();
+ ACE_Reactor* r = ior_multicast_.reactor();
if (r != 0) {
- r->remove_handler (&ior_multicast_, ACE_Event_Handler::READ_MASK);
- ior_multicast_.reactor (0);
+ r->remove_handler(&ior_multicast_, ACE_Event_Handler::READ_MASK);
+ ior_multicast_.reactor(0);
}
}
@@ -342,49 +346,49 @@ ImR_Locator_i::setup_multicast (ACE_Reactor* reactor, const char* ior)
ACE_ASSERT (ior != 0);
#if defined (ACE_HAS_IP_MULTICAST)
- TAO_ORB_Core* core = TAO_ORB_Core_instance ();
+ TAO_ORB_Core* core = TAO_ORB_Core_instance();
// See if the -ORBMulticastDiscoveryEndpoint option was specified.
- ACE_CString mde (core->orb_params ()->mcast_discovery_endpoint ());
+ ACE_CString mde (core->orb_params()->mcast_discovery_endpoint());
if (mde.length () != 0)
+ {
+ if (this->ior_multicast_.init(ior,
+ mde.c_str(), TAO_SERVICEID_IMPLREPOSERVICE) == -1)
{
- if (this->ior_multicast_.init (ior,
- mde.c_str (), TAO_SERVICEID_IMPLREPOSERVICE) == -1)
- {
- return -1;
- }
+ return -1;
}
+ }
else
+ {
+ // Port can be specified as param, env var, or default
+ CORBA::UShort port =
+ core->orb_params()->service_port (TAO::MCAST_IMPLREPOSERVICE);
+ if (port == 0)
{
- // Port can be specified as param, env var, or default
- CORBA::UShort port =
- core->orb_params ()->service_port (TAO::MCAST_IMPLREPOSERVICE);
- if (port == 0)
- {
- // Check environment var. for multicast port.
- const char* port_number = ACE_OS::getenv ("ImplRepoServicePort");
+ // Check environment var. for multicast port.
+ const char* port_number = ACE_OS::getenv ("ImplRepoServicePort");
- if (port_number != 0)
- port = static_cast<CORBA::UShort> (ACE_OS::atoi (port_number));
- }
- if (port == 0)
- port = TAO_DEFAULT_IMPLREPO_SERVER_REQUEST_PORT;
-
- if (this->ior_multicast_.init (ior, port,
- ACE_DEFAULT_MULTICAST_ADDR, TAO_SERVICEID_IMPLREPOSERVICE) == -1)
- {
- return -1;
- }
+ if (port_number != 0)
+ port = ACE_OS::atoi (port_number);
}
+ if (port == 0)
+ port = TAO_DEFAULT_IMPLREPO_SERVER_REQUEST_PORT;
- // Register event handler for the ior multicast.
- if (reactor->register_handler (&this->ior_multicast_,
- ACE_Event_Handler::READ_MASK) == -1)
+ if (this->ior_multicast_.init(ior, port,
+ ACE_DEFAULT_MULTICAST_ADDR, TAO_SERVICEID_IMPLREPOSERVICE) == -1)
{
- if (debug_ >= 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: cannot register Event handler\n"));
return -1;
}
+ }
+
+ // Register event handler for the ior multicast.
+ if (reactor->register_handler (&this->ior_multicast_,
+ ACE_Event_Handler::READ_MASK) == -1)
+ {
+ if (debug_ >= 1)
+ ACE_DEBUG ((LM_DEBUG, "ImR: cannot register Event handler\n"));
+ return -1;
+ }
#else /* ACE_HAS_IP_MULTICAST*/
ACE_UNUSED_ARG (reactor);
ACE_UNUSED_ARG (ior);
@@ -398,23 +402,23 @@ ImR_Locator_i::register_activator (const char* aname,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_ASSERT (aname != 0);
- ACE_ASSERT (! CORBA::is_nil (activator));
+ ACE_ASSERT(aname != 0);
+ ACE_ASSERT(! CORBA::is_nil(activator));
// Before we can register the activator, we need to ensure that any existing
// registration is purged.
- this->unregister_activator_i (aname);
- ACE_CHECK_RETURN (0);
+ this->unregister_activator_i(aname);
+ ACE_CHECK_RETURN(0);
CORBA::String_var ior =
this->orb_->object_to_string (activator ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- CORBA::Long token = ACE_OS::gettimeofday ().msec ();
+ CORBA::Long token = ACE_OS::gettimeofday().msec();
- int err = this->repository_.add_activator (aname, token, ior.in (), activator);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
+ int err = this->repository_.add_activator (aname, token, ior.in(), activator);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
if (this->debug_ > 0)
ACE_DEBUG ((LM_DEBUG, "ImR: Activator registered for %s.\n", aname));
@@ -428,63 +432,64 @@ ImR_Locator_i::unregister_activator (const char* aname,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_ASSERT (aname != 0);
+ ACE_ASSERT(aname != 0);
Activator_Info_Ptr info = this->get_activator (aname);
- if (! info.null ())
+ if (! info.null())
+ {
+ if (info->token != token && this->debug_ > 0)
{
- if (info->token != token && this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Ignoring unregister activator:%s. Wrong token.\n", aname));
- return;
- }
+ ACE_DEBUG((LM_DEBUG, "ImR: Ignoring unregister activator:%s. Wrong token.\n", aname));
+ return;
+ }
- this->unregister_activator_i (aname);
- ACE_CHECK;
+ this->unregister_activator_i(aname);
+ ACE_CHECK;
- if (this->debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Activator %s unregistered.\n", aname));
- }
+ if (this->debug_ > 0)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Activator %s unregistered.\n", aname));
+ }
else
- {
- if (this->debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Ignoring unregister activator:%s. Unknown activator.\n", aname));
- }
+ {
+ if (this->debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Ignoring unregister activator:%s. Unknown activator.\n", aname));
+ }
}
void
-ImR_Locator_i::unregister_activator_i (const char* aname)
+ImR_Locator_i::unregister_activator_i(const char* aname)
{
- ACE_ASSERT (aname != 0);
+ ACE_ASSERT(aname != 0);
int err = this->repository_.remove_activator (aname);
- ACE_UNUSED_ARG (err);
+ ACE_UNUSED_ARG(err);
}
+
void
ImR_Locator_i::notify_child_death (const char* name ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_ASSERT (name != 0);
+ ACE_ASSERT(name != 0);
if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Server has died <%s>.\n", name));
+ ACE_DEBUG((LM_DEBUG, "ImR: Server has died <%s>.\n", name));
- Server_Info_Ptr info = this->repository_.get_server (name);
- if (! info.null ())
- {
- info->ior = "";
- info->partial_ior = "";
+ Server_Info_Ptr info = this->repository_.get_server(name);
+ if (! info.null())
+ {
+ info->ior = "";
+ info->partial_ior = "";
- int err = this->repository_.update_server (*info);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
- }
+ int err = this->repository_.update_server(*info);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
+ }
else
- {
- if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG,
- "ImR: Failed to find server in repository.\n"));
- }
+ {
+ if (this->debug_ > 1)
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: Failed to find server in repository.\n"));
+ }
}
void
@@ -498,7 +503,7 @@ ACE_THROW_SPEC ((CORBA::SystemException,
// This is the version called by tao_imr to activate the server, manually
// starting it if necessary.
- activate_server_by_name (server, true ACE_ENV_ARG_PARAMETER);
+ activate_server_by_name(server, true ACE_ENV_ARG_PARAMETER);
}
char*
@@ -509,16 +514,16 @@ ACE_THROW_SPEC ((CORBA::SystemException,
{
// Activate the server, starting it if necessary. Don't start MANUAL
// servers unless manual_start=true
- ACE_ASSERT (name != 0);
+ ACE_ASSERT(name != 0);
- Server_Info_Ptr info = this->repository_.get_server (name);
- if (info.null ())
- {
- ACE_ERROR ((LM_ERROR, "ImR: Cannot find info for server <%s>\n", name));
- ACE_THROW_RETURN (ImplementationRepository::NotFound (), 0);
- }
+ Server_Info_Ptr info = this->repository_.get_server(name);
+ if (info.null())
+ {
+ ACE_ERROR ((LM_ERROR, "ImR: Cannot find info for server <%s>\n", name));
+ ACE_THROW_RETURN(ImplementationRepository::NotFound (), 0);
+ }
- return activate_server_i (*info, manual_start ACE_ENV_ARG_PARAMETER);
+ return activate_server_i(*info, manual_start ACE_ENV_ARG_PARAMETER);
}
char*
@@ -527,16 +532,16 @@ ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::NotFound,
ImplementationRepository::CannotActivate))
{
- ACE_ASSERT (object_name != 0);
+ ACE_ASSERT(object_name != 0);
// We assume that the first part of the object name is the server name.
// So a name of foo/bar means that the server name is foo.
- ACE_CString server_name (object_name);
+ ACE_CString server_name(object_name);
ssize_t pos = server_name.find ('/');
if (pos != ACE_CString::npos)
- server_name = server_name.substr (pos + 1);
+ server_name = server_name.substr(pos + 1);
- return activate_server_by_name (server_name.c_str (), false ACE_ENV_ARG_PARAMETER);
+ return activate_server_by_name(server_name.c_str(), false ACE_ENV_ARG_PARAMETER);
}
char*
@@ -546,47 +551,47 @@ ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::CannotActivate))
{
if (info.activation_mode == ImplementationRepository::PER_CLIENT)
- {
- return activate_perclient_server_i (info, manual_start ACE_ENV_ARG_PARAMETER);
- }
+ {
+ return activate_perclient_server_i(info, manual_start ACE_ENV_ARG_PARAMETER);
+ }
- while (true)
+ while(true)
+ {
+ if (is_alive(info))
{
- if (is_alive (info))
- {
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Successfully activated <%s> at \n\t%s\n",
- info.name.c_str (), info.partial_ior.c_str ()));
- }
- info.start_count = 0;
-
- waiter_svt_.unblock_all (info.name.c_str ());
+ if (debug_ > 1)
+ {
+ ACE_DEBUG((LM_DEBUG, "ImR: Successfully activated <%s> at \n\t%s\n",
+ info.name.c_str(), info.partial_ior.c_str()));
+ }
+ info.start_count = 0;
- return CORBA::string_dup (info.partial_ior.c_str ());
- }
+ waiter_svt_.unblock_all(info.name.c_str());
- info.reset ();
+ return CORBA::string_dup(info.partial_ior.c_str());
+ }
- if (! info.starting && info.start_count >= info.start_limit)
- {
- if (this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: Cannot Activate <%s>.\n", info.name.c_str ()));
- }
+ info.reset();
- waiter_svt_.unblock_all (info.name.c_str ());
+ if (! info.starting && info.start_count >= info.start_limit)
+ {
+ if (this->debug_ > 0)
+ {
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: Cannot Activate <%s>.\n", info.name.c_str()));
+ }
- ACE_THROW_RETURN (ImplementationRepository::CannotActivate
- (CORBA::string_dup ("Cannot start server.")), 0);
- }
+ waiter_svt_.unblock_all(info.name.c_str());
- // Note : We already updated info with StartupInfo in server_is_running ()
- ImplementationRepository::StartupInfo_var si =
- start_server (info, manual_start ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
+ ACE_THROW_RETURN (ImplementationRepository::CannotActivate
+ (CORBA::string_dup ("Cannot start server.")), 0);
}
+
+ // Note : We already updated info with StartupInfo in server_is_running()
+ ImplementationRepository::StartupInfo_var si =
+ start_server(info, manual_start ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(0);
+ }
}
char*
@@ -596,198 +601,198 @@ ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::CannotActivate))
{
do
+ {
+ ImplementationRepository::StartupInfo* psi =
+ start_server(info, manual_start ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN(0);
+
+ if (psi != 0)
{
- ImplementationRepository::StartupInfo* psi =
- start_server (info, manual_start ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
+ ImplementationRepository::StartupInfo_var si = psi;
+ ACE_ASSERT(info.name == si->name.in());
+ info.partial_ior = si->partial_ior.in();
+ info.ior = si->ior.in();
- if (psi != 0)
+ if (is_alive(info))
+ {
+ if (debug_ > 1)
{
- ImplementationRepository::StartupInfo_var si = psi;
- ACE_ASSERT (info.name == si->name.in ());
- info.partial_ior = si->partial_ior.in ();
- info.ior = si->ior.in ();
-
- if (is_alive (info))
- {
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Successfully activated <%s> at \n\t%s\n",
- info.name.c_str (), info.partial_ior.c_str ()));
- }
- return CORBA::string_dup (info.partial_ior.c_str ());
- }
- info.reset ();
+ ACE_DEBUG((LM_DEBUG, "ImR: Successfully activated <%s> at \n\t%s\n",
+ info.name.c_str(), info.partial_ior.c_str()));
}
- } while (info.start_count < info.start_limit);
+ return CORBA::string_dup(info.partial_ior.c_str());
+ }
+ info.reset();
+ }
+ } while (info.start_count < info.start_limit);
if (this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: Cannot Activate <%s>.\n", info.name.c_str ()));
- }
+ {
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: Cannot Activate <%s>.\n", info.name.c_str()));
+ }
ACE_THROW_RETURN (ImplementationRepository::CannotActivate
- (CORBA::string_dup ("Cannot start server.")), 0);
+ (CORBA::string_dup ("Cannot start server.")), 0);
}
ImplementationRepository::StartupInfo*
-ImR_Locator_i::start_server (Server_Info& info, bool manual_start ACE_ENV_ARG_DECL)
+ImR_Locator_i::start_server(Server_Info& info, bool manual_start ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::NotFound,
ImplementationRepository::CannotActivate))
{
if (info.activation_mode == ImplementationRepository::MANUAL && ! manual_start)
- {
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Cannot start server <%s>. ActivationMode=MANUAL\n", info.name.c_str ()));
- ACE_THROW_RETURN (ImplementationRepository::CannotActivate
- (CORBA::string_dup ("Cannot implicitly activate MANUAL server.")), 0);
- }
- if (info.cmdline.length () == 0)
- {
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Cannot start server <%s>."
- " No command line.\n", info.name.c_str ()));
- ACE_THROW_RETURN (ImplementationRepository::CannotActivate
- (CORBA::string_dup ("No command line registered for server.")), 0);
- }
+ {
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Cannot start server <%s>. ActivationMode=MANUAL\n", info.name.c_str()));
+ ACE_THROW_RETURN(ImplementationRepository::CannotActivate
+ (CORBA::string_dup ("Cannot implicitly activate MANUAL server.")), 0);
+ }
+ if (info.cmdline.length() == 0)
+ {
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Cannot start server <%s>."
+ " No command line.\n", info.name.c_str()));
+ ACE_THROW_RETURN(ImplementationRepository::CannotActivate
+ (CORBA::string_dup ("No command line registered for server.")), 0);
+ }
- Activator_Info_Ptr ainfo = get_activator (info.activator);
+ Activator_Info_Ptr ainfo = get_activator(info.activator);
- if (ainfo.null () || CORBA::is_nil (ainfo->activator.in ()))
- {
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Cannot start server <%s>. "
- "Activator <%s> not found.\n", info.name.c_str (), info.activator.c_str ()));
- ACE_THROW_RETURN (ImplementationRepository::CannotActivate
- (CORBA::string_dup ("No activator registered for server.")), 0);
- }
+ if (ainfo.null() || CORBA::is_nil(ainfo->activator.in()))
+ {
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Cannot start server <%s>. "
+ "Activator <%s> not found.\n", info.name.c_str(), info.activator.c_str()));
+ ACE_THROW_RETURN(ImplementationRepository::CannotActivate
+ (CORBA::string_dup ("No activator registered for server.")), 0);
+ }
ACE_TRY
- {
- ++ info.waiting_clients;
-
- if (info.waiting_clients <= 1 || info.activation_mode == ImplementationRepository::PER_CLIENT)
- {
- info.starting = true;
- ++info.start_count;
- ACE_ASSERT (info.start_count <= info.start_limit);
- if (this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Starting server <%s>. Attempt %d/%d.\n",
- info.name.c_str (), info.start_count, info.start_limit));
- }
- ainfo->activator->start_server (
- info.name.c_str (),
- info.cmdline.c_str (),
- info.dir.c_str (),
- info.env_vars
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ ++ info.waiting_clients;
- if (info.partial_ior.length () == 0)
- {
- if (this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Waiting for <%s> to start...\n", info.name.c_str ()));
- }
+ if (info.waiting_clients <= 1 || info.activation_mode == ImplementationRepository::PER_CLIENT)
+ {
+ info.starting = true;
+ ++info.start_count;
+ ACE_ASSERT(info.start_count <= info.start_limit);
+ if (this->debug_ > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "ImR: Starting server <%s>. Attempt %d/%d.\n",
+ info.name.c_str(), info.start_count, info.start_limit));
+ }
+ ainfo->activator->start_server(
+ info.name.c_str(),
+ info.cmdline.c_str(),
+ info.dir.c_str(),
+ info.env_vars
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
- ImplementationRepository::StartupInfo_var si =
- waiter_->wait_for_startup (info.name.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ if (info.partial_ior.length() == 0)
+ {
+ if (this->debug_ > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "ImR: Waiting for <%s> to start...\n", info.name.c_str()));
+ }
- -- info.waiting_clients;
- info.starting = false;
+ ImplementationRepository::StartupInfo_var si =
+ waiter_->wait_for_startup(info.name.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- return si._retn ();
- }
- else // The server_is_running () came in before the wait_for_startup ()
- {
- if (this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: <%s> Skipping wait. Already started.\n", info.name.c_str ()));
- }
- -- info.waiting_clients;
- info.starting = false;
- }
- }
- ACE_CATCH (CORBA::TIMEOUT, ex)
- {
-- info.waiting_clients;
info.starting = false;
- // We may have connected successfully, because the timeout could occur before
- // the AsyncStartupWaiter manages to return. In fact, when the ImR is very busy
- // this is the most likely code path.
- if (info.partial_ior.length () == 0)
- {
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR : Timeout waiting for <%s> to start.\n", info.name.c_str ()));
- info.reset ();
- }
+
+ return si._retn();
}
- ACE_CATCH (ImplementationRepository::CannotActivate, ex)
+ else // The server_is_running() came in before the wait_for_startup()
{
+ if (this->debug_ > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "ImR: <%s> Skipping wait. Already started.\n", info.name.c_str()));
+ }
-- info.waiting_clients;
info.starting = false;
- info.reset ();
- if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Activator cannot start <%s>.\n", info.name.c_str ()));
}
- ACE_CATCHANY
+ }
+ ACE_CATCH(CORBA::TIMEOUT, ex)
+ {
+ -- info.waiting_clients;
+ info.starting = false;
+ // We may have connected successfully, because the timeout could occur before
+ // the AsyncStartupWaiter manages to return. In fact, when the ImR is very busy
+ // this is the most likely code path.
+ if (info.partial_ior.length() == 0)
{
- -- info.waiting_clients;
- info.starting = false;
if (debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Unexpected exception while starting <%s>.\n", info.name.c_str ()));
- if (debug_ > 1)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "");
- ainfo->reset ();
- info.reset ();
+ ACE_DEBUG((LM_DEBUG, "ImR : Timeout waiting for <%s> to start.\n", info.name.c_str()));
+ info.reset();
}
+ }
+ ACE_CATCH(ImplementationRepository::CannotActivate, ex)
+ {
+ -- info.waiting_clients;
+ info.starting = false;
+ info.reset();
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Activator cannot start <%s>.\n", info.name.c_str()));
+ }
+ ACE_CATCHANY
+ {
+ -- info.waiting_clients;
+ info.starting = false;
+ if (debug_ > 0)
+ ACE_DEBUG((LM_DEBUG, "ImR: Unexpected exception while starting <%s>.\n", info.name.c_str()));
+ if (debug_ > 1)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "");
+ ainfo->reset();
+ info.reset();
+ }
ACE_ENDTRY;
return 0; // This is not a corba call, so a zero should be ok
}
CORBA::Object_ptr
-ImR_Locator_i::set_timeout_policy (CORBA::Object_ptr obj, const ACE_Time_Value& to)
+ImR_Locator_i::set_timeout_policy(CORBA::Object_ptr obj, const ACE_Time_Value& to)
{
- CORBA::Object_var ret (CORBA::Object::_duplicate (obj));
+ CORBA::Object_var ret(CORBA::Object::_duplicate(obj));
ACE_TRY_NEW_ENV
- {
- TimeBase::TimeT timeout;
- ORBSVCS_Time::Time_Value_to_TimeT (timeout, to);
- CORBA::Any tmp;
- tmp <<= timeout;
-
- CORBA::PolicyList policies (1);
- policies.length (1);
- policies[0] = orb_->create_policy (Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE, tmp ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ TimeBase::TimeT timeout;
+ ORBSVCS_Time::Time_Value_to_TimeT (timeout, to);
+ CORBA::Any tmp;
+ tmp <<= timeout;
- ret = obj->_set_policy_overrides (policies, CORBA::ADD_OVERRIDE ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::PolicyList policies(1);
+ policies.length(1);
+ policies[0] = orb_->create_policy(Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE, tmp ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ret = obj->_set_policy_overrides (policies, CORBA::ADD_OVERRIDE ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (CORBA::is_nil (ret.in ()))
- {
- if (this->debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Unable to set timeout policy.\n"));
- }
- ret = CORBA::Object::_duplicate (obj);
- }
- }
- ACE_CATCHANY
+ policies[0]->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil(ret.in()))
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR_Locator_i::set_timeout_policy ()");
+ if (this->debug_ > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG, "ImR: Unable to set timeout policy.\n"));
+ }
+ ret = CORBA::Object::_duplicate(obj);
}
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ImR_Locator_i::set_timeout_policy()");
+ }
ACE_ENDTRY;
- return ret._retn ();
+ return ret._retn();
}
void
@@ -797,213 +802,213 @@ ImR_Locator_i::add_or_update_server (const char* server,
ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::NotFound))
{
- ACE_ASSERT (server != 0);
+ ACE_ASSERT(server != 0);
if (this->read_only_)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Cannot add/update server <%s> due to locked database.\n", server));
- ACE_THROW (CORBA::NO_PERMISSION (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
+ {
+ ACE_DEBUG((LM_DEBUG, "ImR: Cannot add/update server <%s> due to locked database.\n", server));
+ ACE_THROW (CORBA::NO_PERMISSION (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
if (debug_ > 0)
ACE_DEBUG ((LM_DEBUG, "ImR: Add/Update server <%s>.\n", server));
int limit = options.start_limit;
if (limit < 0)
- {
- limit = -limit;
- }
+ {
+ limit = -limit;
+ }
else if (limit == 0)
- {
- limit = 1;
- }
+ {
+ limit = 1;
+ }
- Server_Info_Ptr info = this->repository_.get_server (server);
- if (info.null ())
- {
- if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Adding server <%s>.\n", server));
-
- this->repository_.add_server (server,
- options.activator.in (),
- options.command_line.in (),
- options.environment,
- options.working_directory.in (),
- options.activation,
- limit);
- }
+ Server_Info_Ptr info = this->repository_.get_server(server);
+ if (info.null())
+ {
+ if (this->debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR: Adding server <%s>.\n", server));
+
+ this->repository_.add_server (server,
+ options.activator.in(),
+ options.command_line.in (),
+ options.environment,
+ options.working_directory.in (),
+ options.activation,
+ limit);
+ }
else
- {
- if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Updating server <%s>.\n", server));
-
- info->activator = options.activator.in ();
- info->cmdline = options.command_line.in ();
- info->env_vars = options.environment;
- info->dir = options.working_directory.in ();
- info->activation_mode = options.activation;
- info->start_limit = limit;
- info->start_count = 0;
- int err = this->repository_.update_server (*info);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
- }
+ {
+ if (this->debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR: Updating server <%s>.\n", server));
+
+ info->activator = options.activator.in();
+ info->cmdline = options.command_line.in();
+ info->env_vars = options.environment;
+ info->dir = options.working_directory.in();
+ info->activation_mode = options.activation;
+ info->start_limit = limit;
+ info->start_count = 0;
+ int err = this->repository_.update_server(*info);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
+ }
if (this->debug_ > 1)
- {
- // Note : The info var may be null, so we use options.
- ACE_DEBUG ((LM_DEBUG, "ImR: Server: %s\n"
- "\tActivator: %s\n"
- "\tCommand Line: %s\n"
- "\tWorking Directory: %s\n"
- "\tActivation: %s\n"
- "\tStart Limit: %d\n"
- "\n",
- server,
- options.activator.in (),
- options.command_line.in (),
- options.working_directory.in (),
- ImR_Utils::activationModeToString (options.activation).c_str (),
- limit
- ));
-
- for (CORBA::ULong i = 0; i < options.environment.length (); ++i)
- ACE_DEBUG ((LM_DEBUG, "Environment variable %s=%s\n",
- options.environment[i].name.in (),
- options.environment[i].value.in ()));
- }
+ {
+ // Note : The info var may be null, so we use options.
+ ACE_DEBUG ((LM_DEBUG, "ImR: Server: %s\n"
+ "\tActivator: %s\n"
+ "\tCommand Line: %s\n"
+ "\tWorking Directory: %s\n"
+ "\tActivation: %s\n"
+ "\tStart Limit: %d\n"
+ "\n",
+ server,
+ options.activator.in(),
+ options.command_line.in (),
+ options.working_directory.in (),
+ ImR_Utils::activationModeToString(options.activation).c_str(),
+ limit
+ ));
+
+ for (CORBA::ULong i = 0; i < options.environment.length(); ++i)
+ ACE_DEBUG ((LM_DEBUG, "Environment variable %s=%s\n",
+ options.environment[i].name.in(),
+ options.environment[i].value.in()));
+ }
}
void
ImR_Locator_i::remove_server (const char* name ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException, ImplementationRepository::NotFound))
{
- ACE_ASSERT (name != 0);
+ ACE_ASSERT(name != 0);
if (this->read_only_)
- {
- ACE_ERROR ((LM_ERROR,
- "ImR: Can't remove server <%s> due to locked database.\n", name));
- ACE_THROW (CORBA::NO_PERMISSION (
- CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
- CORBA::COMPLETED_NO));
- }
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ImR: Can't remove server <%s> due to locked database.\n", name));
+ ACE_THROW (CORBA::NO_PERMISSION (
+ CORBA::SystemException::_tao_minor_code (TAO_IMPLREPO_MINOR_CODE, 0),
+ CORBA::COMPLETED_NO));
+ }
// Note : This will be safe, because any Server_Info_Ptr objects will still
// be valid, and the actual Server_Info will be destroyed when the last
// one goes out of scope.
- Server_Info_Ptr info = this->repository_.get_server (name);
- if (! info.null ())
+ Server_Info_Ptr info = this->repository_.get_server(name);
+ if (! info.null())
+ {
+ if (this->repository_.remove_server (name) == 0)
{
- if (this->repository_.remove_server (name) == 0)
- {
- if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Removing Server <%s>...\n", name));
-
- PortableServer::POA_var poa = findPOA (name);
- ACE_CHECK;
- if (! CORBA::is_nil (poa.in ()))
- {
- bool etherealize = true;
- bool wait = false;
- poa->destroy (etherealize, wait ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- if (this->debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Removed Server <%s>.\n", name));
- }
+ if (this->debug_ > 1)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Removing Server <%s>...\n", name));
+
+ PortableServer::POA_var poa = findPOA(name);
+ ACE_CHECK;
+ if (! CORBA::is_nil(poa.in()))
+ {
+ bool etherealize = true;
+ bool wait = false;
+ poa->destroy(etherealize, wait ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+ if (this->debug_ > 0)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Removed Server <%s>.\n", name));
}
+ }
else
- {
- ACE_ERROR ((LM_ERROR,
- "ImR: Can't remove unknown server <%s>.\n", name));
- ACE_THROW (ImplementationRepository::NotFound ());
- }
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ImR: Can't remove unknown server <%s>.\n", name));
+ ACE_THROW (ImplementationRepository::NotFound ());
+ }
}
PortableServer::POA_ptr
-ImR_Locator_i::findPOA (const char* name)
+ImR_Locator_i::findPOA(const char* name)
{
ACE_TRY_NEW_ENV
- {
- bool activate_it = false;
- return root_poa_->find_POA (name, activate_it ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ bool activate_it = false;
+ return root_poa_->find_POA(name, activate_it ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHANY
- {// Ignore
- }
+ {// Ignore
+ }
ACE_ENDTRY;
- return PortableServer::POA::_nil ();
+ return PortableServer::POA::_nil();
}
void
ImR_Locator_i::shutdown_server (const char* server ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException, ImplementationRepository::NotFound))
{
- ACE_ASSERT (server != 0);
+ ACE_ASSERT(server != 0);
if (this->debug_ > 0)
ACE_DEBUG ((LM_DEBUG, "ImR: Shutting down server <%s>.\n", server));
- Server_Info_Ptr info = this->repository_.get_server (server);
- if (info.null ())
- {
- ACE_ERROR ((LM_ERROR,
- "ImR: shutdown_server () Cannot find info for server <%s>\n", server));
- ACE_THROW (ImplementationRepository::NotFound ());
- }
+ Server_Info_Ptr info = this->repository_.get_server(server);
+ if (info.null())
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ImR: shutdown_server() Cannot find info for server <%s>\n", server));
+ ACE_THROW(ImplementationRepository::NotFound());
+ }
- connect_server (*info);
+ connect_server(*info);
- if (CORBA::is_nil (info->server.in ()))
- {
- ACE_ERROR ((LM_ERROR,
- "ImR: shutdown_server () Cannot connect to server <%s>\n", server));
- ACE_THROW (ImplementationRepository::NotFound ());
- }
+ if (CORBA::is_nil(info->server.in()))
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ImR: shutdown_server() Cannot connect to server <%s>\n", server));
+ ACE_THROW(ImplementationRepository::NotFound());
+ }
ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj = set_timeout_policy (info->server.in (), DEFAULT_SHUTDOWN_TIMEOUT);
- ImplementationRepository::ServerObject_var server =
- ImplementationRepository::ServerObject::_unchecked_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::TIMEOUT, ex)
- {
- info->reset ();
- int err = this->repository_.update_server (*info);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
- // Note : This is a good thing. It means we didn't waste our time waiting for
- // the server to finish shutting down.
- if (this->debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Timeout while waiting for <%s> shutdown.\n", server));
- }
- ACE_RE_THROW;
- }
+ {
+ CORBA::Object_var obj = set_timeout_policy(info->server.in(), DEFAULT_SHUTDOWN_TIMEOUT);
+ ImplementationRepository::ServerObject_var server =
+ ImplementationRepository::ServerObject::_unchecked_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCH(CORBA::TIMEOUT, ex)
+ {
+ info->reset();
+ int err = this->repository_.update_server(*info);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
+ // Note : This is a good thing. It means we didn't waste our time waiting for
+ // the server to finish shutting down.
+ if (this->debug_ > 1)
+ {
+ ACE_DEBUG((LM_DEBUG, "ImR: Timeout while waiting for <%s> shutdown.\n", server));
+ }
+ ACE_RE_THROW;
+ }
ACE_CATCHANY
+ {
+ if (this->debug_ > 1)
{
- if (this->debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: Exception ignored while shutting down <%s>\n", server));
- }
+ ACE_DEBUG((LM_DEBUG, "ImR: Exception ignored while shutting down <%s>\n", server));
}
+ }
ACE_ENDTRY;
- // Note : In most cases this has already been done in the server_is_shutting_down ()
+ // Note : In most cases this has already been done in the server_is_shutting_down()
// operation, but it doesn't hurt to update it again.
- info->reset ();
+ info->reset();
- int err = this->repository_.update_server (*info);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
+ int err = this->repository_.update_server(*info);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
}
void
@@ -1014,9 +1019,9 @@ ImR_Locator_i::server_is_running (const char* name,
ACE_THROW_SPEC ((CORBA::SystemException,
ImplementationRepository::NotFound))
{
- ACE_ASSERT (name != 0);
- ACE_ASSERT (partial_ior != 0);
- ACE_ASSERT (! CORBA::is_nil (server));
+ ACE_ASSERT(name != 0);
+ ACE_ASSERT(partial_ior != 0);
+ ACE_ASSERT(! CORBA::is_nil(server));
if (this->debug_ > 0)
ACE_DEBUG ((LM_DEBUG, "ImR: Server %s is running at %s.\n", name, partial_ior));
@@ -1025,71 +1030,71 @@ ImR_Locator_i::server_is_running (const char* name,
ACE_CHECK;
if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Server %s callback at %s.\n", name, ior.in ()));
-
- Server_Info_Ptr info = this->repository_.get_server (name);
- if (info.null ())
- {
- if (this->debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Auto adding NORMAL server <%s>.\n", name));
-
- ImplementationRepository::EnvironmentList env (0);
- this->repository_.add_server (name,
- "", // no activator
- "", // no cmdline
- ImplementationRepository::EnvironmentList (),
- "", // no working dir
- ImplementationRepository::NORMAL,
- DEFAULT_START_LIMIT,
- partial_ior,
- ior.in (),
- ImplementationRepository::ServerObject::_nil () // Will connect at first access
- );
- }
+ ACE_DEBUG ((LM_DEBUG, "ImR: Server %s callback at %s.\n", name, ior.in()));
+
+ Server_Info_Ptr info = this->repository_.get_server(name);
+ if (info.null())
+ {
+ if (this->debug_ > 0)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Auto adding NORMAL server <%s>.\n", name));
+
+ ImplementationRepository::EnvironmentList env(0);
+ this->repository_.add_server (name,
+ "", // no activator
+ "", // no cmdline
+ ImplementationRepository::EnvironmentList(),
+ "", // no working dir
+ ImplementationRepository::NORMAL,
+ DEFAULT_START_LIMIT,
+ partial_ior,
+ ior.in(),
+ ImplementationRepository::ServerObject::_nil() // Will connect at first access
+ );
+ }
else
- {
- if (info->activation_mode != ImplementationRepository::PER_CLIENT) {
- info->ior = ior.in ();
- info->partial_ior = partial_ior;
- info->server = ImplementationRepository::ServerObject::_nil (); // Will connect at first access
-
- int err = this->repository_.update_server (*info);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
-
- waiter_svt_.unblock_one (name, partial_ior, ior.in (), false);
- } else {
- // Note : There's no need to unblock all the waiting request until
- // we know the final status of the server.
- waiter_svt_.unblock_one (name, partial_ior, ior.in (), true);
- }
+ {
+ if (info->activation_mode != ImplementationRepository::PER_CLIENT) {
+ info->ior = ior.in();
+ info->partial_ior = partial_ior;
+ info->server = ImplementationRepository::ServerObject::_nil(); // Will connect at first access
+
+ int err = this->repository_.update_server(*info);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
+
+ waiter_svt_.unblock_one(name, partial_ior, ior.in(), false);
+ } else {
+ // Note : There's no need to unblock all the waiting request until
+ // we know the final status of the server.
+ waiter_svt_.unblock_one(name, partial_ior, ior.in(), true);
}
+ }
}
void
ImR_Locator_i::server_is_shutting_down (const char* server ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException, ImplementationRepository::NotFound))
{
- ACE_ASSERT (server != 0);
- Server_Info_Ptr info = this->repository_.get_server (server);
- if (info.null ())
+ ACE_ASSERT(server != 0);
+ Server_Info_Ptr info = this->repository_.get_server(server);
+ if (info.null())
+ {
+ if (this->debug_ > 1)
{
- if (this->debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR_Locator_i::server_is_shutting_down: Unknown server:%s\n", server));
- }
- return;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR_Locator_i::server_is_shutting_down: Unknown server:%s\n", server));
}
+ return;
+ }
if (this->debug_ > 0)
- ACE_DEBUG ((LM_DEBUG, "ImR: Server <%s> is shutting down.\n", server));
+ ACE_DEBUG((LM_DEBUG, "ImR: Server <%s> is shutting down.\n", server));
- info->reset ();
+ info->reset();
- int err = this->repository_.update_server (*info);
- ACE_ASSERT (err == 0);
- ACE_UNUSED_ARG (err);
+ int err = this->repository_.update_server(*info);
+ ACE_ASSERT(err == 0);
+ ACE_UNUSED_ARG(err);
}
void
@@ -1098,22 +1103,22 @@ ImR_Locator_i::find (const char* server,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_ASSERT (server != 0);
+ ACE_ASSERT(server != 0);
ACE_NEW_THROW_EX (imr_info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY ());
- Server_Info_Ptr info = this->repository_.get_server (server);
- if (! info.null ())
- {
- imr_info = info->createImRServerInfo (ACE_ENV_SINGLE_ARG_PARAMETER);
+ Server_Info_Ptr info = this->repository_.get_server(server);
+ if (! info.null())
+ {
+ imr_info = info->createImRServerInfo(ACE_ENV_SINGLE_ARG_PARAMETER);
- if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Found server %s.\n", server));
- }
+ if (this->debug_ > 1)
+ ACE_DEBUG ((LM_DEBUG, "ImR: Found server %s.\n", server));
+}
else
- {
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Cannot find server <%s>\n", server));
- }
+ {
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR: Cannot find server <%s>\n", server));
+ }
}
void
@@ -1128,405 +1133,400 @@ ImR_Locator_i::list (CORBA::ULong how_many,
// Initialize the out variables, so if we return early, they will
// not be dangling.
- server_iterator = ImplementationRepository::ServerInformationIterator::_nil ();
+ server_iterator = ImplementationRepository::ServerInformationIterator::_nil();
ACE_NEW_THROW_EX (server_list,
- ImplementationRepository::ServerInformationList (0), CORBA::NO_MEMORY ());
+ ImplementationRepository::ServerInformationList(0), CORBA::NO_MEMORY());
Locator_Repository::SIMap::ENTRY* entry = 0;
- Locator_Repository::SIMap::ITERATOR it (this->repository_.servers ());
+ Locator_Repository::SIMap::ITERATOR it(this->repository_.servers());
// Number of servers that will go into the server_list.
- CORBA::ULong n = this->repository_.servers ().current_size ();
+ CORBA::ULong n = this->repository_.servers().current_size();
if (how_many > 0 && n > how_many)
- {
- n = how_many;
- }
+ {
+ n = how_many;
+ }
- server_list->length (n);
+ server_list->length(n);
if (this->debug_ > 1)
ACE_DEBUG ((LM_DEBUG, "ImR_Locator_i::list: Filling ServerList with %d servers\n", n));
for (CORBA::ULong i = 0; i < n; i++)
- {
- it.next (entry);
- it.advance ();
- ACE_ASSERT (entry != 0);
+ {
+ it.next(entry);
+ it.advance();
+ ACE_ASSERT(entry != 0);
- Server_Info_Ptr info = entry->int_id_;
+ Server_Info_Ptr info = entry->int_id_;
- ImplementationRepository::ServerInformation_var imr_info = info->createImRServerInfo (ACE_ENV_SINGLE_ARG_PARAMETER);
- server_list[i] = *imr_info;
- }
+ ImplementationRepository::ServerInformation_var imr_info = info->createImRServerInfo(ACE_ENV_SINGLE_ARG_PARAMETER);
+ server_list[i] = *imr_info;
+ }
- if (this->repository_.servers ().current_size () > n)
- {
- if (this->debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR_Locator_i::list: Creating ServerInformation Iterator\n"));
+ if (this->repository_.servers().current_size() > n)
+ {
+ if (this->debug_ > 1)
+ ACE_DEBUG ((LM_DEBUG, "ImR_Locator_i::list: Creating ServerInformation Iterator\n"));
- ImR_Iterator* imr_iter;
+ ImR_Iterator* imr_iter;
- ACE_NEW_THROW_EX (imr_iter,
- ImR_Iterator (n, this->repository_, this->imr_poa_.in ()),
- CORBA::NO_MEMORY ());
+ ACE_NEW_THROW_EX (imr_iter,
+ ImR_Iterator (n, this->repository_, this->imr_poa_.in()),
+ CORBA::NO_MEMORY ());
- PortableServer::ServantBase_var tmp (imr_iter);
+ PortableServer::ServantBase_var tmp(imr_iter);
- ACE_TRY
- {
- PortableServer::ObjectId_var id =
- this->imr_poa_->activate_object (imr_iter ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- CORBA::Object_var obj = this->imr_poa_->id_to_reference (id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- server_iterator = ImplementationRepository::
- ServerInformationIterator::_unchecked_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK;
+ ACE_TRY
+ {
+ PortableServer::ObjectId_var id =
+ this->imr_poa_->activate_object (imr_iter ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CORBA::Object_var obj = this->imr_poa_->id_to_reference(id.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ server_iterator = ImplementationRepository::
+ ServerInformationIterator::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ ACE_RE_THROW;
}
+ ACE_ENDTRY;
+ ACE_CHECK;
+ }
}
Activator_Info_Ptr
ImR_Locator_i::get_activator (const ACE_CString& aname)
{
Activator_Info_Ptr info = this->repository_.get_activator (aname);
- if (! info.null ())
- {
- this->connect_activator (*info);
- }
+ if (! info.null())
+ {
+ this->connect_activator (*info);
+ }
return info;
}
void
ImR_Locator_i::connect_activator (Activator_Info& info)
{
- if (! CORBA::is_nil (info.activator.in ()) || info.ior.length () == 0)
+ if (! CORBA::is_nil(info.activator.in()) || info.ior.length() == 0)
return;
ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj =
- this->orb_->string_to_object (info.ior.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ CORBA::Object_var obj =
+ this->orb_->string_to_object (info.ior.c_str()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (CORBA::is_nil (obj.in ()))
- {
- info.reset ();
- return;
- }
-
- if (startup_timeout_ > ACE_Time_Value::zero)
- {
- obj = set_timeout_policy (obj.in (), startup_timeout_);
- }
+ if (CORBA::is_nil(obj.in()))
+ {
+ info.reset();
+ return;
+ }
- info.activator =
- ImplementationRepository::Activator::_unchecked_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ if (startup_timeout_ > ACE_Time_Value::zero)
+ {
+ obj = set_timeout_policy(obj.in(), startup_timeout_);
+ }
- if (CORBA::is_nil (info.activator.in ()))
- {
- info.reset ();
- return;
- }
+ info.activator =
+ ImplementationRepository::Activator::_unchecked_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Connected to activator <%s>\n", info.name.c_str ()));
- }
- ACE_CATCHANY
+ if (CORBA::is_nil(info.activator.in()))
{
- info.reset ();
+ info.reset();
+ return;
}
+
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR: Connected to activator <%s>\n", info.name.c_str()));
+ }
+ ACE_CATCHANY
+ {
+ info.reset();
+ }
ACE_ENDTRY;
}
void
-ImR_Locator_i::auto_start_servers (ACE_ENV_SINGLE_ARG_DECL)
+ImR_Locator_i::auto_start_servers(ACE_ENV_SINGLE_ARG_DECL)
{
- if (this->repository_.servers ().current_size () == 0)
+ if (this->repository_.servers().current_size() == 0)
return;
Locator_Repository::SIMap::ENTRY* server_entry;
- Locator_Repository::SIMap::ITERATOR server_iter (this->repository_.servers ());
+ Locator_Repository::SIMap::ITERATOR server_iter(this->repository_.servers());
// For each of the entries in the Locator_Repository, get the startup
// information and activate the servers, if they are not already
// running.
- for (;server_iter.next (server_entry) != 0; server_iter.advance ())
+ for (;server_iter.next(server_entry) != 0; server_iter.advance())
+ {
+ Server_Info_Ptr info = server_entry->int_id_;
+ ACE_ASSERT(! info.null());
+
+ ACE_TRY
+ {
+ if (info->activation_mode == ImplementationRepository::AUTO_START
+ && info->cmdline.length() > 0)
+ {
+ this->activate_server_i (*info, true ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ }
+ ACE_CATCHANY
{
- Server_Info_Ptr info = server_entry->int_id_;
- ACE_ASSERT (! info.null ());
-
- ACE_TRY
- {
- if (info->activation_mode == ImplementationRepository::AUTO_START
- && info->cmdline.length () > 0)
- {
- this->activate_server_i (*info, true ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- if (this->debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: AUTO_START Could not activate <%s>\n",
- server_entry->ext_id_.c_str ()));
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "AUTO_START");
- }
- // Ignore exceptions
- }
- ACE_ENDTRY;
- ACE_CHECK;
+ if (this->debug_ > 1)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "ImR: AUTO_START Could not activate <%s>\n",
+ server_entry->ext_id_.c_str ()));
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "AUTO_START");
+ }
+ // Ignore exceptions
}
+ ACE_ENDTRY;
+ ACE_CHECK;
+ }
}
void
-ImR_Locator_i::connect_server (Server_Info& info)
+ImR_Locator_i::connect_server(Server_Info& info)
{
- if (! CORBA::is_nil (info.server.in ()))
- {
- return; // already connected
- }
+ if (! CORBA::is_nil(info.server.in()))
+ {
+ return; // already connected
+ }
- if (info.ior.length () == 0)
- {
- info.reset ();
- return; // can't connect
- }
+ if (info.ior.length() == 0)
+ {
+ info.reset();
+ return; // can't connect
+ }
ACE_TRY_NEW_ENV
- {
- CORBA::Object_var obj = orb_->string_to_object (info.ior.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ CORBA::Object_var obj = orb_->string_to_object (info.ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (CORBA::is_nil (obj.in ()))
- {
- info.reset ();
- return;
- }
+ if (CORBA::is_nil(obj.in()))
+ {
+ info.reset();
+ return;
+ }
- obj = set_timeout_policy (obj.in (), DEFAULT_SERVER_TIMEOUT);
+ obj = set_timeout_policy(obj.in(), DEFAULT_SERVER_TIMEOUT);
- info.server =
- ImplementationRepository::ServerObject::_unchecked_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (info.server.in ()))
- {
- info.reset ();
- return;
- }
+ info.server =
+ ImplementationRepository::ServerObject::_unchecked_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (debug_ > 1)
- ACE_DEBUG ((LM_DEBUG, "ImR: Connected to server <%s>\n", info.name.c_str ()));
- }
- ACE_CATCHANY
+ if (CORBA::is_nil(info.server.in()))
{
- info.reset ();
+ info.reset();
+ return;
}
+
+ if (debug_ > 1)
+ ACE_DEBUG((LM_DEBUG, "ImR: Connected to server <%s>\n", info.name.c_str()));
+ }
+ ACE_CATCHANY
+ {
+ info.reset();
+ }
ACE_ENDTRY;
}
bool
-ImR_Locator_i::is_alive (Server_Info& info)
+ImR_Locator_i::is_alive(Server_Info& info)
{
- const size_t table_size = sizeof (PING_RETRY_SCHEDULE) /
- sizeof (*PING_RETRY_SCHEDULE);
-
- for (size_t i = 0; i < table_size; ++i)
- {
- int status = this->is_alive_i (info);
- if (status == 0)
- return false;
- if (status == 1)
- return true;
-
- // This is evil, but there's not much else we can do for now. We
- // should never reach this code once the ImR Servers are fixed
- // so that they don't lie about server_is_running. Currently,
- // they send this notification during poa creation. We have to
- // run the orb, because the very thing that may be slowing the
- // aliveness of the servers is the fact that they're trying to
- // register more objects with us. In practical testing, we
- // never retried the ping more than once, because the second
- // ping always timed out, even if the servers poa manager had
- // not been activated. The only way we saw multiple retries was
- // if we ran the orb on the server before the poa manager was
- // activated. For this reason, the first retry is immediate,
- // and the orb->run () call is not required. The call will
- // likely timeout, and is_alive will return true.
- if (PING_RETRY_SCHEDULE[i] > 0)
- {
- ACE_Time_Value tv (0, PING_RETRY_SCHEDULE[i] * 1000);
- this->orb_->run (tv);
- }
+ for (size_t i = 0; i < sizeof(PING_RETRY_SCHEDULE) + 1; ++i)
+ {
+ int status = this->is_alive_i(info);
+ if (status == 0)
+ return false;
+ if (status == 1)
+ return true;
+
+ // This is evil, but there's not much else we can do for now. We should never
+ // reach this code once the ImR Servers are fixed so that they don't lie about
+ // server_is_running. Currently, they send this notification during poa creation.
+ // We have to run the orb, because the very thing that may be slowing the
+ // aliveness of the servers is the fact that they're trying to register more
+ // objects with us.
+ // In practical testing, we never retried the ping more than once, because
+ // the second ping always timed out, even if the servers poa manager had
+ // not been activated. The only way we saw multiple retries was if we ran
+ // the orb on the server before the poa manager was activated.
+ // For this reason, the first retry is immediate, and the orb->run() call
+ // is not required. The call will likely timeout, and is_alive will return true.
+ if (PING_RETRY_SCHEDULE[i] > 0)
+ {
+ ACE_Time_Value tv(0, PING_RETRY_SCHEDULE[i] * 1000);
+ this->orb_->run(tv);
}
+ }
if (debug_ > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Ping retry count exceeded. alive=maybe.\n", info.name.c_str ()));
- }
+ {
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Ping retry count exceeded. alive=maybe.\n", info.name.c_str()));
+ }
// We return true here, because the server *might* be alive, it's just not starting in a timely
// manner. We can't return false, because then we'll just try to start another instance, and the
// same thing will likely happen.
- info.last_ping = ACE_OS::gettimeofday ();
+ info.last_ping = ACE_OS::gettimeofday();
return true;
}
int
-ImR_Locator_i::is_alive_i (Server_Info& info)
+ImR_Locator_i::is_alive_i(Server_Info& info)
{
// This is used by the ACE_TRY below when exceptions are turned off.
ACE_DECLARE_NEW_CORBA_ENV;
- if (info.ior.length () == 0 || info.partial_ior.length () == 0)
+ if (info.ior.length() == 0 || info.partial_ior.length() == 0)
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> not running. alive=false.\n", info.name.c_str ()));
- }
- info.last_ping = ACE_Time_Value::zero;
- return 0;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> not running. alive=false.\n", info.name.c_str()));
}
+ info.last_ping = ACE_Time_Value::zero;
+ return 0;
+ }
if (ping_interval_ == ACE_Time_Value::zero)
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Ping verification disabled. alive=true.\n", info.name.c_str ()));
- }
- return 1;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Ping verification disabled. alive=true.\n", info.name.c_str()));
}
+ return 1;
+ }
- if ((ACE_OS::gettimeofday () - info.last_ping) < ping_interval_)
+ if ((ACE_OS::gettimeofday() - info.last_ping) < ping_interval_)
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> within ping interval. alive=true.\n", info.name.c_str ()));
- }
- return 1;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> within ping interval. alive=true.\n", info.name.c_str()));
}
+ return 1;
+ }
// If we don't have enough information to start the server if it isn't already
// then we might as well assume it is running. That way the client can get the
// status directly from the server.
- if (info.cmdline.length () == 0 || ! repository_.has_activator (info.activator))
+ if (info.cmdline.length() == 0 || ! repository_.has_activator(info.activator))
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: Ping verification skipped. <%s> not startable.\n", info.name.c_str ()));
- }
- return 1;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: Ping verification skipped. <%s> not startable.\n", info.name.c_str()));
}
+ return 1;
+ }
- connect_server (info);
+ connect_server(info);
- if (CORBA::is_nil (info.server.in ()))
+ if (CORBA::is_nil (info.server.in()))
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Could not connect. alive=false.\n", info.name.c_str ()));
- }
- return 0;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Could not connect. alive=false.\n", info.name.c_str()));
}
+ return 0;
+ }
ACE_TRY
- {
- // Make a copy, in case the info is updated during the ping.
- ImplementationRepository::ServerObject_var server = info.server;
+ {
+ // Make a copy, in case the info is updated during the ping.
+ ImplementationRepository::ServerObject_var server = info.server;
- // This will timeout if it takes too long
- server->ping (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // This will timeout if it takes too long
+ server->ping (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (debug_ > 1)
+ if (debug_ > 1)
+ {
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Ping successful. alive=true\n", info.name.c_str()));
+ }
+ info.last_ping = ACE_OS::gettimeofday();
+ }
+ ACE_CATCH(CORBA::TRANSIENT, ex)
+ {
+ const CORBA::ULong BITS_5_THRU_12_MASK = 0x00000f80;
+ switch (ex.minor() & BITS_5_THRU_12_MASK)
+ {
+ case TAO_INVOCATION_SEND_REQUEST_MINOR_CODE:
+ {
+ if (debug_ > 1)
{
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Ping successful. alive=true\n", info.name.c_str ()));
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Local TRANSIENT. alive=false.\n", info.name.c_str()));
}
- info.last_ping = ACE_OS::gettimeofday ();
- }
- ACE_CATCH (CORBA::TRANSIENT, ex)
- {
- const CORBA::ULong BITS_5_THRU_12_MASK = 0x00000f80;
- switch (ex.minor () & BITS_5_THRU_12_MASK)
+ }
+ info.last_ping = ACE_Time_Value::zero;
+ return 0;
+ case TAO_POA_DISCARDING:
+ case TAO_POA_HOLDING:
+ {
+ if (debug_ > 1)
{
- case TAO_INVOCATION_SEND_REQUEST_MINOR_CODE:
- {
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Local TRANSIENT. alive=false.\n", info.name.c_str ()));
- }
- }
- info.last_ping = ACE_Time_Value::zero;
- return 0;
- case TAO_POA_DISCARDING:
- case TAO_POA_HOLDING:
- {
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Remote TRANSIENT. alive=maybe.\n", info.name.c_str ()));
- }
- }
- return -1; // We keep trying to ping, because returning 1 now, would just lead
- // to clients getting the same exception. If we can't ping after several
- // attempts, then we'll give up and return 1, letting the client worry about it.
- default:
- {
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> TRANSIENT exception. alive=false.\n", info.name.c_str ()));
- }
- info.last_ping = ACE_Time_Value::zero;
- }
- return 0;
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Remote TRANSIENT. alive=maybe.\n", info.name.c_str()));
}
- }
- ACE_CATCH (CORBA::TIMEOUT, ex)
- {
- if (debug_ > 1)
+ }
+ return -1; // We keep trying to ping, because returning 1 now, would just lead
+ // to clients getting the same exception. If we can't ping after several
+ // attempts, then we'll give up and return 1, letting the client worry about it.
+ default:
+ {
+ if (debug_ > 1)
{
- ACE_DEBUG ((LM_DEBUG,
- "ImR: <%s> Ping timed out. alive=true.\n", info.name.c_str ()));
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> TRANSIENT exception. alive=false.\n", info.name.c_str()));
}
- return 1; // This is "alive" as far as we're concerned. Presumably the client
- // will have a less stringent timeout policy, or will want to know
- // about the timeout. In any case, we're only guaranteeing that the
- // server is alive, not that it's responsive.
+ info.last_ping = ACE_Time_Value::zero;
+ }
+ return 0;
+ }
+ }
+ ACE_CATCH(CORBA::TIMEOUT, ex)
+ {
+ if (debug_ > 1)
+ {
+ ACE_DEBUG((LM_DEBUG,
+ "ImR: <%s> Ping timed out. alive=true.\n", info.name.c_str()));
}
+ return 1; // This is "alive" as far as we're concerned. Presumably the client
+ // will have a less stringent timeout policy, or will want to know
+ // about the timeout. In any case, we're only guaranteeing that the
+ // server is alive, not that it's responsive.
+ }
ACE_CATCHANY
+ {
+ if (debug_ > 1)
{
- if (debug_ > 1)
- {
- ACE_DEBUG ((LM_DEBUG, "ImR: <%s> Unexpected Ping exception. alive=false\n", info.name.c_str ()));
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "\n");
- }
- info.last_ping = ACE_Time_Value::zero;
- return false;
+ ACE_DEBUG((LM_DEBUG, "ImR: <%s> Unexpected Ping exception. alive=false\n", info.name.c_str()));
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "\n");
}
+ info.last_ping = ACE_Time_Value::zero;
+ return false;
+ }
ACE_ENDTRY;
return 1;
}
int
-ImR_Locator_i::debug () const
+ImR_Locator_i::debug() const
{
return debug_;
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.h b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.h
index 7dd3033bcbc..0953931eca8 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.h
+++ b/TAO/orbsvcs/ImplRepo_Service/ImR_Locator_i.h
@@ -22,10 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
class INS_Locator;
// Gets a request from a client and depending on the POA name,
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc
index 7246a1dcd86..3649e86daad 100644
--- a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc
+++ b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_Service.mpc
@@ -1,6 +1,6 @@
// $Id$
-project(ImR_Activator_IDL) : orbsvcslib, conv_lib, portableserver, imr_client, tao_versioning_idl_defaults {
+project(ImR_Activator_IDL) : orbsvcslib, conv_lib, portableserver, imr_client {
sharedname = TAO_ImR_Activator_IDL
dynamicflags = ACTIVATOR_IDL_BUILD_DLL
idlflags += -Wb,export_macro=ActivatorIDL_Export -Wb,export_include=activator_idl_export.h
@@ -16,7 +16,7 @@ project(ImR_Activator_IDL) : orbsvcslib, conv_lib, portableserver, imr_client, t
}
}
-project(ImR_Locator_IDL) : orbsvcslib, conv_lib, valuetype, portableserver, imr_client, messaging, tao_versioning_idl_defaults {
+project(ImR_Locator_IDL) : orbsvcslib, conv_lib, valuetype, portableserver, imr_client, messaging {
sharedname = TAO_ImR_Locator_IDL
after += ImR_Activator_IDL
libs += TAO_ImR_Activator_IDL
@@ -45,7 +45,7 @@ project(ImR_Locator_IDL) : orbsvcslib, conv_lib, valuetype, portableserver, imr_
}
}
-project(ImR_Activator) : orbsvcslib, conv_lib, acexml, minimum_corba, valuetype, portableserver, imr_client, messaging, pi, codecfactory {
+project(ImR_Activator) : orbsvcslib, conv_lib, acexml, minimum_corba, valuetype, portableserver, imr_client {
sharedname = TAO_ImR_Activator
dynamicflags = ACTIVATOR_BUILD_DLL
after += ImR_Activator_IDL ImR_Locator_IDL
diff --git a/TAO/orbsvcs/ImplRepo_Service/Iterator.cpp b/TAO/orbsvcs/ImplRepo_Service/Iterator.cpp
index 1ed369991c2..4afae0cfc76 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Iterator.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Iterator.cpp
@@ -30,49 +30,49 @@ ImR_Iterator::next_n (CORBA::ULong how_many,
ImplementationRepository::ServerInformationList(0), CORBA::NO_MEMORY());
Locator_Repository::SIMap::ENTRY* entry = 0;
- Locator_Repository::SIMap::ITERATOR it (this->repo_.servers ());
+ Locator_Repository::SIMap::ITERATOR it(this->repo_.servers());
// Number of servers that will go into the server_list.
CORBA::ULong n = this->repo_.servers().current_size();
if (n <= this->count_)
- {
- return 0; // We already finished.
- }
+ {
+ return 0; // We already finished.
+ }
else
- {
- n -= this->count_;
- }
+ {
+ n -= this->count_;
+ }
if (how_many > 0 && n > how_many)
- {
- n = how_many;
+ {
+ n = how_many;
}
- server_list->length (n);
+ server_list->length(n);
CORBA::ULong i = 0;
for (; i < this->count_; ++i)
- {
- it.advance ();
- }
+ {
+ it.advance();
+ }
for (i = 0; i < n; ++i)
- {
- it.next (entry);
- it.advance ();
- ACE_ASSERT(entry != 0);
-
- Server_Info_Ptr info = entry->int_id_;
-
- server_list[i].server = info->name.c_str ();
- server_list[i].startup.command_line = info->cmdline.c_str ();
- server_list[i].startup.environment = info->env_vars;
- server_list[i].startup.working_directory = info->dir.c_str ();
- server_list[i].startup.activation = info->activation_mode;
- server_list[i].startup.activator = info->activator.c_str ();
- server_list[i].startup.start_limit = info->start_limit;
- server_list[i].partial_ior = info->partial_ior.c_str ();
- }
+ {
+ it.next(entry);
+ it.advance();
+ ACE_ASSERT(entry != 0);
+
+ Server_Info_Ptr info = entry->int_id_;
+
+ server_list[i].server = info->name.c_str();
+ server_list[i].startup.command_line = info->cmdline.c_str();
+ server_list[i].startup.environment = info->env_vars;
+ server_list[i].startup.working_directory = info->dir.c_str();
+ server_list[i].startup.activation = info->activation_mode;
+ server_list[i].startup.activator = info->activator.c_str();
+ server_list[i].startup.start_limit = info->start_limit;
+ server_list[i].partial_ior = info->partial_ior.c_str();
+ }
this->count_ += n;
@@ -84,7 +84,7 @@ void
ImR_Iterator::destroy (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- PortableServer::ObjectId_var oid = poa_->servant_to_id (this ACE_ENV_ARG_PARAMETER);
+ PortableServer::ObjectId_var oid = poa_->servant_to_id(this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
poa_->deactivate_object (oid.in() ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp
index be8dd5e0e1f..9811c2be488 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.cpp
@@ -4,24 +4,23 @@
#include "ace/Dynamic_Service.h"
#include "ace/Task.h"
-class ImR_Locator_ORB_Runner : public ACE_Task_Base
+class ImR_Locator_ORB_Runner : public ACE_Task_Base
{
+ ImR_Locator_Loader& service_;
public:
- ImR_Locator_ORB_Runner (ImR_Locator_Loader& service)
- : service_ (service)
+ ImR_Locator_ORB_Runner(ImR_Locator_Loader& service)
+ : service_(service)
{
}
- virtual int svc ()
+ virtual int svc()
{
- // Block until service_.fini () calls orb->destroy ()
- this->service_.run ();
+ // Block until service_.fini() calls orb->destroy()
+ this->service_.run();
return 0;
}
-private:
- ImR_Locator_Loader& service_;
};
-ImR_Locator_Loader::ImR_Locator_Loader()
+ImR_Locator_Loader::ImR_Locator_Loader()
{
}
@@ -31,19 +30,19 @@ ImR_Locator_Loader::init (int argc, ACE_TCHAR *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int err = this->opts_.init (argc, argv);
- if (err != 0)
+ int err = this->opts_.init(argc, argv);
+ if (err != 0)
return -1;
- err = this->service_.init (this->opts_ ACE_ENV_ARG_PARAMETER);
+ err = this->service_.init(this->opts_ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (err != 0)
return -1;
// Create a thread in which to run the service
- ACE_ASSERT(this->runner_.get () == 0);
- this->runner_.reset(new ImR_Locator_ORB_Runner (*this));
- this->runner_->activate ();
+ ACE_ASSERT(this->runner_.get() == 0);
+ this->runner_.reset(new ImR_Locator_ORB_Runner(*this));
+ this->runner_->activate();
}
ACE_CATCHANY
{
@@ -56,20 +55,20 @@ ImR_Locator_Loader::init (int argc, ACE_TCHAR *argv[])
int
ImR_Locator_Loader::fini (void)
{
- ACE_ASSERT(this->runner_.get () != 0);
+ ACE_ASSERT(this->runner_.get() != 0);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- int ret = this->service_.fini (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ int ret = this->service_.fini(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->runner_->wait ();
- this->runner_.reset (0);
- return ret;
- }
+ this->runner_->wait();
+ this->runner_.reset(0);
+ return ret;
+ }
ACE_CATCHANY
- {
- }
+ {
+ }
ACE_ENDTRY;
return -1;
}
@@ -81,7 +80,7 @@ ImR_Locator_Loader::create_object (CORBA::ORB_ptr,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_THROW_RETURN (CORBA::NO_IMPLEMENT(), CORBA::Object::_nil ());
+ ACE_THROW_RETURN(CORBA::NO_IMPLEMENT(), CORBA::Object::_nil());
}
int
@@ -89,16 +88,17 @@ ImR_Locator_Loader::run(void)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- return this->service_.run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ {
+ return this->service_.run(ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR, "Exception in ImR_Locator_ORB_Runner ()\n"));
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "Exception in ImR_Locator_ORB_Runner()\n"));
+ return -1;
+ }
ACE_ENDTRY;
+ return 0;
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h b/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h
index ca90c61c6fb..dc44718b2ba 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Loader.h
@@ -1,7 +1,4 @@
-// -*- C++ -*-
-//
// $Id$
-
#ifndef TAO_IMR_LOCATOR_LOADER_H
#define TAO_IMR_LOCATOR_LOADER_H
@@ -32,7 +29,7 @@ public:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- // Unlike other service objects, we have our own orb.
+ // Unlike other service objects, we have our own orb.
int run(void);
private:
@@ -40,9 +37,8 @@ private:
Options opts_;
ACE_Auto_Ptr<ImR_Locator_ORB_Runner> runner_;
private:
- // Disallow copying and assignment.
- ImR_Locator_Loader (const ImR_Locator_Loader &);
- ImR_Locator_Loader &operator = (const ImR_Locator_Loader &);
+ ACE_UNIMPLEMENTED_FUNC (ImR_Locator_Loader (const ImR_Locator_Loader &))
+ ACE_UNIMPLEMENTED_FUNC (ImR_Locator_Loader &operator = (const ImR_Locator_Loader &))
};
ACE_FACTORY_DECLARE (Locator, ImR_Locator_Loader)
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.cpp
index e13a4f8080f..8cc1728b610 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.cpp
@@ -62,11 +62,11 @@ Locator_NT_Service::svc (void)
ImR_Locator_i server;
Options opts;
- if (opts.init_from_registry () != 0)
- {
- report_status (SERVICE_STOPPED);
- return -1;
- }
+ if (opts.init_from_registry() != 0)
+ {
+ report_status (SERVICE_STOPPED);
+ return -1;
+ }
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.h b/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.h
index c2199926f63..d710a82c091 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_NT_Service.h
@@ -24,9 +24,9 @@
#include "ace/Synch.h"
#include "tao/orbconf.h"
-static const char * IMR_LOCATOR_SERVICE_NAME = "TAOImR";
-static const char * IMR_LOCATOR_DISPLAY_NAME = "TAO Implementation Repository";
-static const char * IMR_LOCATOR_DESCRIPTION = "Implementation Repository Locator service for TAO";
+static const ACE_TCHAR * IMR_LOCATOR_SERVICE_NAME = ACE_TEXT("TAOImR");
+static const ACE_TCHAR * IMR_LOCATOR_DISPLAY_NAME = ACE_TEXT("TAO Implementation Repository");
+static const ACE_TCHAR * IMR_LOCATOR_DESCRIPTION = ACE_TEXT("Implementation Repository Locator service for TAO");
/**
* @class Locator_NT_Service
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
index 810649d2bb5..b99f1e3477e 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.cpp
@@ -42,7 +42,7 @@ Options::Options ()
}
int
-Options::parse_args (int &argc, char *argv[])
+Options::parse_args (int &argc, ACE_TCHAR *argv[])
{
ACE_Arg_Shifter shifter (argc, argv);
@@ -62,20 +62,20 @@ Options::parse_args (int &argc, char *argv[])
if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("install")) == 0)
- {
- this->service_command_ = SC_INSTALL;
- }
+ {
+ this->service_command_ = SC_INSTALL;
+ }
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("remove")) == 0)
- {
- this->service_command_ = SC_REMOVE;
- }
+ {
+ this->service_command_ = SC_REMOVE;
+ }
else
- {
- ACE_ERROR((LM_ERROR, "Error: Unknown service command : %s\n", shifter.get_current()));
- this->print_usage ();
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "Error: Unknown service command : %s\n", shifter.get_current()));
+ this->print_usage ();
+ return -1;
+ }
}
else if (ACE_OS::strcasecmp (shifter.get_current (),
ACE_TEXT ("-d")) == 0)
@@ -209,27 +209,27 @@ Options::parse_args (int &argc, char *argv[])
}
int
-Options::init (int argc, char *argv[])
+Options::init (int argc, ACE_TCHAR *argv[])
{
// Make an initial pass through and grab the arguments that we recognize.
// This may also run the commands to install or remove the nt service.
int result = this->parse_args (argc, argv);
if (result != 0)
- {
- return result;
- }
+ {
+ return result;
+ }
for (int i = 0; i < argc; ++i)
- {
- this->cmdline_ += ACE_CString (argv[i]) + ACE_CString (" ");
- }
+ {
+ this->cmdline_ += ACE_TString(argv[i]) + ACE_TEXT(" ");
+ }
return 0;
}
int
Options::init_from_registry (void)
{
- this->load_registry_options ();
+ this->load_registry_options();
return 0;
}
@@ -256,7 +256,7 @@ Options::print_usage (void) const
}
int
-Options::save_registry_options ()
+Options::save_registry_options()
{
#if defined (ACE_WIN32)
HKEY key = 0;
@@ -264,60 +264,59 @@ Options::save_registry_options ()
LONG err = ACE_TEXT_RegCreateKeyEx (SERVICE_REG_ROOT,
SERVICE_REG_PATH,
0,
- "", // class
+ ACE_TEXT(""), // class
REG_OPTION_NON_VOLATILE,
KEY_ALL_ACCESS,
NULL,
&key,
NULL
);
- if (err != ERROR_SUCCESS)
- {
- return -1;
- }
- err = ACE_TEXT_RegSetValueEx (key, "ORBInitOptions", 0, REG_SZ,
- (LPBYTE) this->cmdline_.c_str (), this->cmdline_.length () + 1);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ if (err != ERROR_SUCCESS) {
+ return -1;
+ }
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("ORBInitOptions"), 0, REG_SZ,
+ (LPBYTE) this->cmdline_.c_str(), this->cmdline_.length() + 1);
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ACE_TEXT_RegSetValueEx (key, "IORFile", 0, REG_SZ,
- (LPBYTE) ior_output_file_.c_str (), ior_output_file_.length () + 1);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("IORFile"), 0, REG_SZ,
+ (LPBYTE) ior_output_file_.c_str(), ior_output_file_.length() + 1);
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ACE_TEXT_RegSetValueEx (key, "DebugLevel", 0, REG_DWORD,
- (LPBYTE) &debug_ , sizeof (debug_));
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("DebugLevel"), 0, REG_DWORD,
+ (LPBYTE) &debug_ , sizeof(debug_));
ACE_ASSERT(err == ERROR_SUCCESS);
- err = ACE_TEXT_RegSetValueEx (key, "PersistFile", 0, REG_SZ,
- (LPBYTE) this->persist_file_name_.c_str (), this->persist_file_name_.length () + 1);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("PersistFile"), 0, REG_SZ,
+ (LPBYTE) this->persist_file_name_.c_str(), this->persist_file_name_.length() + 1);
+ ACE_ASSERT(err == ERROR_SUCCESS);
- DWORD tmp = this->ping_interval_.msec ();
- err = ACE_TEXT_RegSetValueEx (key, "PingInterval", 0, REG_DWORD,
- (LPBYTE) &tmp, sizeof (DWORD));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ DWORD tmp = this->ping_interval_.msec();
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("PingInterval"), 0, REG_DWORD,
+ (LPBYTE) &tmp, sizeof(DWORD));
+ ACE_ASSERT(err == ERROR_SUCCESS);
tmp = this->readonly_ ? 1 : 0;
- err = ACE_TEXT_RegSetValueEx (key, "Lock", 0, REG_DWORD,
- (LPBYTE) &tmp, sizeof (DWORD));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("Lock"), 0, REG_DWORD,
+ (LPBYTE) &tmp, sizeof(DWORD));
+ ACE_ASSERT(err == ERROR_SUCCESS);
tmp = this->repo_mode_;
- err = ACE_TEXT_RegSetValueEx (key, "PersistType", 0, REG_DWORD,
- (LPBYTE) &tmp, sizeof (DWORD));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("PersistType"), 0, REG_DWORD,
+ (LPBYTE) &tmp, sizeof(DWORD));
+ ACE_ASSERT(err == ERROR_SUCCESS);
tmp = this->startup_timeout_.sec();
- err = ACE_TEXT_RegSetValueEx (key, "Timeout", 0, REG_DWORD,
- (LPBYTE) &tmp, sizeof (DWORD));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("Timeout"), 0, REG_DWORD,
+ (LPBYTE) &tmp, sizeof(DWORD));
+ ACE_ASSERT(err == ERROR_SUCCESS);
tmp = multicast_ ? 1 : 0;
- err = ACE_TEXT_RegSetValueEx (key, "Multicast", 0, REG_DWORD,
- (LPBYTE) &tmp, sizeof (DWORD));
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ACE_TEXT_RegSetValueEx(key, ACE_TEXT("Multicast"), 0, REG_DWORD,
+ (LPBYTE) &tmp, sizeof(DWORD));
+ ACE_ASSERT(err == ERROR_SUCCESS);
- err = ::RegCloseKey (key);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ::RegCloseKey(key);
+ ACE_ASSERT(err == ERROR_SUCCESS);
#endif
return 0;
}
@@ -334,101 +333,91 @@ Options::load_registry_options ()
KEY_READ,
&key
);
- if (err != ERROR_SUCCESS)
- {
- // If there aren't any saved parameters, then that's ok.
- return 0;
- }
+ if (err != ERROR_SUCCESS) {
+ // If there aren't any saved parameters, then that's ok.
+ return 0;
+ }
ACE_TCHAR tmpstr[4096];
- DWORD sz = sizeof (tmpstr);
+ DWORD sz = sizeof(tmpstr);
DWORD type = 0;
- err = ACE_TEXT_RegQueryValueEx (key, "ORBInitOptions", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("ORBInitOptions"), 0, &type,
(LPBYTE) tmpstr, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_SZ);
- tmpstr[sz - 1] = '\0';
- this->cmdline_ = tmpstr;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_SZ);
+ tmpstr[sz - 1] = '\0';
+ this->cmdline_ = tmpstr;
+ }
sz = sizeof(tmpstr);
- err = ACE_TEXT_RegQueryValueEx (key, "IORFile", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("IORFile"), 0, &type,
(LPBYTE) tmpstr, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_SZ);
- tmpstr[sz - 1] = '\0';
- this->ior_output_file_ = tmpstr;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_SZ);
+ tmpstr[sz - 1] = '\0';
+ this->ior_output_file_ = tmpstr;
+ }
sz = sizeof(debug_);
- err = ACE_TEXT_RegQueryValueEx (key, "DebugLevel", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("DebugLevel"), 0, &type,
(LPBYTE) &this->debug_ , &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ }
DWORD tmp = 0;
sz = sizeof(tmp);
- err = ACE_TEXT_RegQueryValueEx (key, "PingInterval", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("PingInterval"), 0, &type,
(LPBYTE) &tmp, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- ping_interval_.msec (tmp);
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ ping_interval_.msec(tmp);
+ }
tmp = 0;
sz = sizeof(tmp);
- err = ACE_TEXT_RegQueryValueEx (key, "Lock", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("Lock"), 0, &type,
(LPBYTE) &tmp, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- readonly_ = tmp != 0;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ readonly_ = tmp != 0;
+ }
sz = sizeof(this->repo_mode_);
- err = ACE_TEXT_RegQueryValueEx (key, "PersistType", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("PersistType"), 0, &type,
(LPBYTE) &this->repo_mode_, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ }
tmp = 0;
sz = sizeof(tmp);
- err = ACE_TEXT_RegQueryValueEx (key, "Timeout", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("Timeout"), 0, &type,
(LPBYTE) &tmp, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- this->startup_timeout_.sec (tmp);
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ this->startup_timeout_.sec(tmp);
+ }
tmp = 0;
sz = sizeof(tmp);
- err = ACE_TEXT_RegQueryValueEx (key, "Multicast", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("Multicast"), 0, &type,
(LPBYTE) &tmp, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_DWORD);
- this->multicast_ = tmp != 0;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_DWORD);
+ this->multicast_ = tmp != 0;
+ }
sz = sizeof(tmpstr);
- err = ACE_TEXT_RegQueryValueEx (key, "PersistFile", 0, &type,
+ err = ACE_TEXT_RegQueryValueEx(key, ACE_TEXT("PersistFile"), 0, &type,
(LPBYTE) tmpstr, &sz);
- if (err == ERROR_SUCCESS)
- {
- ACE_ASSERT (type == REG_SZ);
- tmpstr[sz - 1] = '\0';
- this->persist_file_name_ = tmpstr;
- }
+ if (err == ERROR_SUCCESS) {
+ ACE_ASSERT(type == REG_SZ);
+ tmpstr[sz - 1] = '\0';
+ this->persist_file_name_ = tmpstr;
+ }
- err = ::RegCloseKey (key);
- ACE_ASSERT (err == ERROR_SUCCESS);
+ err = ::RegCloseKey(key);
+ ACE_ASSERT(err == ERROR_SUCCESS);
#endif
return 0;
}
@@ -445,7 +434,7 @@ Options::debug (void) const
return this->debug_;
}
-const ACE_CString&
+const ACE_TString&
Options::ior_filename (void) const
{
return this->ior_output_file_;
@@ -463,12 +452,12 @@ Options::service_command(void) const
return this->service_command_;
}
-const char*
+const ACE_TCHAR*
Options::cmdline(void) const {
return this->cmdline_.c_str ();
}
-const ACE_CString&
+const ACE_TString&
Options::persist_file_name(void) const {
return this->persist_file_name_;
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h
index 4d7019bccf3..9fb3b25183f 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Options.h
@@ -51,7 +51,7 @@ public:
Options ();
/// Parse the command-line arguments and initialize the options.
- int init (int argc, char *argv[]);
+ int init (int argc, ACE_TCHAR *argv[]);
/// This version should only be used when run as an nt service.
int init_from_registry();
@@ -72,7 +72,7 @@ public:
int save_registry_options();
- const char* cmdline(void) const;
+ const ACE_TCHAR* cmdline(void) const;
/// File that contains the activator related information
/// that the persistent locator has to save.
@@ -96,7 +96,7 @@ public:
private:
/// Parses and pulls out arguments for the ImR
- int parse_args (int &argc, char *argv[]);
+ int parse_args (int &argc, ACE_TCHAR *argv[]);
/// Print the usage information.
void print_usage (void) const;
@@ -127,7 +127,7 @@ private:
/// The amount of time between successive "are you started yet?" pings.
ACE_Time_Value ping_interval_;
-
+
/// The amount of time to wait for a server to response after starting it.
ACE_Time_Value startup_timeout_;
@@ -138,7 +138,7 @@ private:
SERVICE_COMMAND service_command_;
/// Our extra command line arguments
- ACE_CString cmdline_;
+ ACE_TString cmdline_;
/// The persistent XML file name.
ACE_TString persist_file_name_;
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp
index ed44f22f9ad..31cb10005ae 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.cpp
@@ -11,179 +11,187 @@
ACE_RCSID (ImplRepo_Service, Locator_Repository, "$Id$")
-static const char* STARTUP_COMMAND = "StartupCommand";
-static const char* WORKING_DIR = "WorkingDir";
-static const char* ENVIRONMENT = "Environment";
-static const char* ACTIVATION = "Activation";
-static const char* PARTIAL_IOR = "Location";
-static const char* IOR = "IOR";
-static const char* START_LIMIT = "StartLimit";
-static const char* ACTIVATOR = "Activator";
-static const char* SERVERS_ROOT_KEY = "Servers";
-static const char* ACTIVATORS_ROOT_KEY = "Activators";
-static const char* TOKEN = "Token";
+static const ACE_TCHAR* STARTUP_COMMAND = ACE_TEXT("StartupCommand");
+static const ACE_TCHAR* WORKING_DIR = ACE_TEXT("WorkingDir");
+static const ACE_TCHAR* ENVIRONMENT = ACE_TEXT("Environment");
+static const ACE_TCHAR* ACTIVATION = ACE_TEXT("Activation");
+static const ACE_TCHAR* PARTIAL_IOR = ACE_TEXT("Location");
+static const ACE_TCHAR* IOR = ACE_TEXT("IOR");
+static const ACE_TCHAR* START_LIMIT = ACE_TEXT("StartLimit");
+static const ACE_TCHAR* ACTIVATOR = ACE_TEXT("Activator");
+static const ACE_TCHAR* SERVERS_ROOT_KEY = ACE_TEXT("Servers");
+static const ACE_TCHAR* ACTIVATORS_ROOT_KEY = ACE_TEXT("Activators");
+static const ACE_TCHAR* TOKEN = ACE_TEXT("Token");
#if defined (ACE_WIN32)
-static const char* WIN32_REG_KEY = "Software\\TAO\\ImplementationRepository";
+static const ACE_TCHAR* WIN32_REG_KEY = ACE_TEXT("Software\\TAO\\ImplementationRepository");
#endif
-static ACE_CString lcase (const ACE_CString& s)
-{
+static ACE_CString lcase(const ACE_CString& s) {
ACE_CString ret(s);
- for (size_t i = 0; i < ret.length (); ++i)
- {
- ret[i] = static_cast<char>(ACE_OS::ace_tolower (s[i]));
- }
+ for (size_t i = 0; i < ret.length(); ++i) {
+ ret[i] = static_cast<char>(ACE_OS::ace_tolower(s[i]));
+ }
return ret;
}
-static void loadActivatorsAsBinary (ACE_Configuration& config, Locator_Repository::AIMap& map)
+static void loadActivatorsAsBinary(ACE_Configuration& config, Locator_Repository::AIMap& map)
{
ACE_Configuration_Section_Key root;
- int err = config.open_section (config.root_section (), ACTIVATORS_ROOT_KEY, 0, root);
+ int err = config.open_section(config.root_section(), ACTIVATORS_ROOT_KEY, 0, root);
if (err == 0)
+ {
+ int index = 0;
+ ACE_TString name;
+ while (config.enumerate_sections (root, index, name) == 0)
{
- int index = 0;
- ACE_CString name;
- while (config.enumerate_sections (root, index, name) == 0)
- {
- ACE_CString ior;
- u_int token;
+ ACE_TString ior;
+ u_int token;
- ACE_Configuration_Section_Key key;
+ ACE_Configuration_Section_Key key;
- // Can't fail, because we're enumerating
- config.open_section (root, name.c_str(), 0, key);
+ // Can't fail, because we're enumerating
+ config.open_section(root, name.c_str(), 0, key);
- config.get_string_value (key, IOR, ior);
- config.get_integer_value (key, TOKEN, token);
+ config.get_string_value (key, IOR, ior);
+ config.get_integer_value(key, TOKEN, token);
- Activator_Info_Ptr info (new Activator_Info (name, token, ior));
- map.bind (lcase (name), info);
- index++;
- }
+ ACE_CString name2(ACE_TEXT_TO_CHAR_IN(name.fast_rep()));
+ Activator_Info_Ptr info(new Activator_Info(
+ name2,
+ token,
+ ACE_TEXT_TO_CHAR_IN(ior.fast_rep())));
+ map.bind (lcase(name2), info);
+ index++;
}
+ }
}
static void loadServersAsBinary(ACE_Configuration& config, Locator_Repository::SIMap& map)
{
ACE_Configuration_Section_Key root;
- int err = config.open_section (config.root_section (), SERVERS_ROOT_KEY, 0, root);
+ int err = config.open_section(config.root_section(), SERVERS_ROOT_KEY, 0, root);
if (err == 0)
+ {
+ int index = 0;
+ ACE_TString name;
+ while (config.enumerate_sections (root, index, name) == 0)
{
- int index = 0;
- ACE_CString name;
- while (config.enumerate_sections (root, index, name) == 0)
- {
- ACE_CString cmdline, dir, envstr, partial_ior, ior, aname;
- u_int amodeint = ImplementationRepository::MANUAL;
- u_int start_limit;
-
- ACE_Configuration_Section_Key key;
-
- // Can't fail, because we're enumerating
- config.open_section (root, name.c_str (), 0, key);
-
- // Ignore any missing values. Server name is enough on its own.
- config.get_string_value (key, ACTIVATOR, aname);
- config.get_string_value (key, STARTUP_COMMAND, cmdline);
- config.get_string_value (key, WORKING_DIR, dir);
- config.get_string_value (key, ENVIRONMENT, envstr);
- config.get_integer_value(key, ACTIVATION, amodeint);
- config.get_string_value (key, PARTIAL_IOR, partial_ior);
- config.get_string_value (key, IOR, ior);
- config.get_integer_value(key, START_LIMIT, start_limit);
-
- ImplementationRepository::ActivationMode amode =
- static_cast <ImplementationRepository::ActivationMode> (amodeint);
-
- ImplementationRepository::EnvironmentList env_vars =
- ImR_Utils::parseEnvList (envstr);
-
- Server_Info_Ptr info (new Server_Info(name, aname, cmdline,
- env_vars, dir, amode, start_limit, partial_ior, ior));
- map.bind (name, info);
- index++;
- }
+ ACE_TString cmdline, dir, envstr, partial_ior, ior, aname;
+ u_int amodeint = ImplementationRepository::MANUAL;
+ u_int start_limit;
+
+ ACE_Configuration_Section_Key key;
+
+ // Can't fail, because we're enumerating
+ config.open_section(root, name.c_str(), 0, key);
+
+ // Ignore any missing values. Server name is enough on its own.
+ config.get_string_value (key, ACTIVATOR, aname);
+ config.get_string_value (key, STARTUP_COMMAND, cmdline);
+ config.get_string_value (key, WORKING_DIR, dir);
+ config.get_string_value (key, ENVIRONMENT, envstr);
+ config.get_integer_value(key, ACTIVATION, amodeint);
+ config.get_string_value (key, PARTIAL_IOR, partial_ior);
+ config.get_string_value (key, IOR, ior);
+ config.get_integer_value(key, START_LIMIT, start_limit);
+
+ ImplementationRepository::ActivationMode amode =
+ static_cast <ImplementationRepository::ActivationMode> (amodeint);
+
+ ImplementationRepository::EnvironmentList env_vars =
+ ImR_Utils::parseEnvList(ACE_TEXT_TO_CHAR_IN(envstr.fast_rep()));
+
+ ACE_CString name2(ACE_TEXT_TO_CHAR_IN(name.fast_rep()));
+ Server_Info_Ptr info(new Server_Info(
+ name2,
+ ACE_TEXT_TO_CHAR_IN(aname.fast_rep()),
+ ACE_TEXT_TO_CHAR_IN(cmdline.fast_rep()),
+ env_vars,
+ ACE_TEXT_TO_CHAR_IN(dir.fast_rep()),
+ amode, start_limit,
+ ACE_TEXT_TO_CHAR_IN(partial_ior.fast_rep()),
+ ACE_TEXT_TO_CHAR_IN(ior.fast_rep())));
+ map.bind (name2, info);
+ index++;
}
+ }
}
-static void loadAsBinary (ACE_Configuration& config, Locator_Repository& repo)
+static void loadAsBinary(ACE_Configuration& config, Locator_Repository& repo)
{
- loadServersAsBinary (config, repo.servers ());
- loadActivatorsAsBinary (config, repo.activators ());
+ loadServersAsBinary(config, repo.servers());
+ loadActivatorsAsBinary(config, repo.activators());
}
// Note : There is no saveAsBinary(), because the ACE_Configuration class
// supports saving of individual entries.
-static void convertEnvList (const Locator_XMLHandler::EnvList& in, ImplementationRepository::EnvironmentList& out)
+static void convertEnvList(const Locator_XMLHandler::EnvList& in, ImplementationRepository::EnvironmentList& out)
{
- CORBA::ULong sz = in.size ();
- out.length (sz);
+ CORBA::ULong sz = in.size();
+ out.length(sz);
for (CORBA::ULong i = 0; i < sz; ++i)
- {
- out[i].name = in[i].name.c_str ();
- out[i].value = in[i].value.c_str ();
- }
+ {
+ out[i].name = in[i].name.c_str();
+ out[i].value = in[i].value.c_str();
+ }
}
-class Server_Repo_XML_Callback : public Locator_XMLHandler::Callback
-{
+class Server_Repo_XML_Callback : public Locator_XMLHandler::Callback {
+ Locator_Repository& repo_;
public:
Server_Repo_XML_Callback(Locator_Repository& repo)
- : repo_ (repo)
+ : repo_(repo)
{
}
- virtual void next_server (const ACE_CString& name,
+ virtual void next_server(const ACE_CString& name,
const ACE_CString& aname, const ACE_CString& cmdline,
const Locator_XMLHandler::EnvList& envlst, const ACE_CString& dir,
const ACE_CString& amodestr, int start_limit,
const ACE_CString& partial_ior, const ACE_CString& ior)
{
ImplementationRepository::ActivationMode amode =
- ImR_Utils::parseActivationMode (amodestr);
+ ImR_Utils::parseActivationMode(amodestr);
ImplementationRepository::EnvironmentList env_vars;
- convertEnvList (envlst, env_vars);
+ convertEnvList(envlst, env_vars);
int limit = start_limit < 1 ? 1 : start_limit;
- Server_Info_Ptr si (new Server_Info (name, aname, cmdline,
+ Server_Info_Ptr si(new Server_Info(name, aname, cmdline,
env_vars, dir, amode, limit, partial_ior, ior));
- this->repo_.servers ().bind (name, si);
+ this->repo_.servers().bind(name, si);
}
virtual void next_activator (const ACE_CString& aname,
long token,
const ACE_CString& ior)
{
- Activator_Info_Ptr si (new Activator_Info (aname, token, ior));
- this->repo_.activators ().bind (lcase (aname), si);
+ Activator_Info_Ptr si(new Activator_Info(aname, token, ior));
+ this->repo_.activators().bind(lcase(aname), si);
}
-private:
- Locator_Repository& repo_;
};
-static int loadAsXML (const ACE_CString& fname, Locator_Repository& repo)
-{
+static int loadAsXML(const ACE_TString& fname, Locator_Repository& repo) {
+
ACEXML_FileCharStream* fstm = new ACEXML_FileCharStream; // xml input source will take ownership
- if (fstm->open (fname.c_str()) != 0)
- {
- // This is not a real error. The xml file may not exist yet.
- delete fstm;
- return 0;
- }
+ if (fstm->open(ACE_TEXT_TO_TCHAR_IN(fname.c_str())) != 0)
+ {
+ // This is not a real error. The xml file may not exist yet.
+ delete fstm;
+ return 0;
+ }
- Server_Repo_XML_Callback cb (repo);
+ Server_Repo_XML_Callback cb(repo);
- Locator_XMLHandler handler (cb);
+ Locator_XMLHandler handler(cb);
ACEXML_Parser parser;
// InputSource takes ownership
- ACEXML_InputSource input (fstm);
+ ACEXML_InputSource input(fstm);
parser.setContentHandler (&handler);
parser.setDTDHandler (&handler);
@@ -191,160 +199,156 @@ static int loadAsXML (const ACE_CString& fname, Locator_Repository& repo)
parser.setEntityResolver (&handler);
ACEXML_TRY_NEW_ENV
- {
- parser.parse (&input ACEXML_ENV_ARG_PARAMETER);
- ACEXML_TRY_CHECK;
- }
+ {
+ parser.parse (&input ACEXML_ENV_ARG_PARAMETER);
+ ACEXML_TRY_CHECK;
+ }
ACEXML_CATCH (ACEXML_Exception, ex)
- {
- ACE_ERROR ((LM_ERROR, "Error during load of ImR persistence xml file."));
- ex.print ();
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "Error during load of ImR persistence xml file."));
+ ex.print();
+ return -1;
+ }
ACEXML_ENDTRY;
return 0;
}
// Note : Would pass servers by const&, but ACE hash map const_iterator is broken.
-static void saveAsXML (const ACE_CString& fname, Locator_Repository& repo)
-{
- FILE* fp = ACE_OS::fopen (fname.c_str (), "w");
+static void saveAsXML(const ACE_TString& fname, Locator_Repository& repo) {
+ FILE* fp = ACE_OS::fopen (fname.c_str(), ACE_TEXT("w"));
if (fp == 0)
- {
- ACE_ERROR ((LM_ERROR, "Couldn't write to file %s\n", fname.c_str()));
- return;
- }
- ACE_OS::fprintf (fp,"<?xml version=\"1.0\"?>\n");
- ACE_OS::fprintf (fp,"<%s>\n", Locator_XMLHandler::ROOT_TAG);
+ {
+ ACE_ERROR((LM_ERROR, "Couldn't write to file %s\n", fname.c_str()));
+ return;
+ }
+ ACE_OS::fprintf(fp,"<?xml version=\"1.0\"?>\n");
+ ACE_OS::fprintf(fp,"<%s>\n", Locator_XMLHandler::ROOT_TAG);
// Save servers
Locator_Repository::SIMap::ENTRY* sientry = 0;
- Locator_Repository::SIMap::ITERATOR siit (repo.servers ());
- for (; siit.next (sientry); siit.advance() )
+ Locator_Repository::SIMap::ITERATOR siit(repo.servers());
+ for (; siit.next(sientry); siit.advance()) {
+ Server_Info_Ptr& info = sientry->int_id_;
+
+ ACE_TString name = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->name.fast_rep()));
+ ACE_TString activator = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->activator.fast_rep()));
+ ACE_TString cmdline = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->cmdline.fast_rep()));
+ ACE_TString wdir = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->dir.fast_rep()));
+ ACE_TString partial_ior = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->partial_ior.fast_rep()));
+ ACE_TString ior = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->ior.fast_rep()));
+
+ ACE_OS::fprintf(fp,"\t<%s", Locator_XMLHandler::SERVER_INFO_TAG);
+ ACE_OS::fprintf(fp," name=\"%s\"", name.c_str());
+ ACE_OS::fprintf(fp," activator=\"%s\"", activator.c_str());
+ ACE_OS::fprintf(fp," command_line=\"%s\"", cmdline.c_str());
+ ACE_OS::fprintf(fp," working_dir=\"%s\"", wdir.c_str());
+ ACE_CString amodestr = ImR_Utils::activationModeToString(info->activation_mode);
+ ACE_OS::fprintf(fp," activation_mode=\"%s\"", amodestr.c_str());
+ ACE_OS::fprintf(fp," start_limit=\"%d\"", info->start_limit);
+ ACE_OS::fprintf(fp," partial_ior=\"%s\"", partial_ior.c_str());
+ ACE_OS::fprintf(fp," ior=\"%s\"", ior.c_str());
+ ACE_OS::fprintf(fp,">\n");
+
+ for (CORBA::ULong i = 0; i < info->env_vars.length(); ++i)
{
- Server_Info_Ptr& info = sientry->int_id_;
-
- ACE_CString name = ACEXML_escape_string (info->name);
- ACE_CString activator = ACEXML_escape_string (info->activator);
- ACE_CString cmdline = ACEXML_escape_string (info->cmdline);
- ACE_CString wdir = ACEXML_escape_string (info->dir);
- ACE_CString partial_ior = ACEXML_escape_string (info->partial_ior);
- ACE_CString ior = ACEXML_escape_string (info->ior);
-
- ACE_OS::fprintf (fp,"\t<%s", Locator_XMLHandler::SERVER_INFO_TAG);
- ACE_OS::fprintf (fp," name=\"%s\"", name.c_str ());
- ACE_OS::fprintf (fp," activator=\"%s\"", activator.c_str ());
- ACE_OS::fprintf (fp," command_line=\"%s\"", cmdline.c_str ());
- ACE_OS::fprintf (fp," working_dir=\"%s\"", wdir.c_str ());
- ACE_CString amodestr = ImR_Utils::activationModeToString (info->activation_mode);
- ACE_OS::fprintf (fp," activation_mode=\"%s\"", amodestr.c_str ());
- ACE_OS::fprintf (fp," start_limit=\"%d\"", info->start_limit);
- ACE_OS::fprintf (fp," partial_ior=\"%s\"", partial_ior.c_str ());
- ACE_OS::fprintf (fp," ior=\"%s\"", ior.c_str ());
- ACE_OS::fprintf (fp,">\n");
-
- for (CORBA::ULong i = 0; i < info->env_vars.length (); ++i)
- {
- ACE_OS::fprintf (fp,"\t\t<%s", Locator_XMLHandler::ENVIRONMENT_TAG);
- ACE_OS::fprintf (fp," name=\"%s\"", info->env_vars[i].name.in ());
- ACE_CString val = ACEXML_escape_string (info->env_vars[i].value.in ());
- ACE_OS::fprintf (fp," value=\"%s\"", val.c_str ());
- ACE_OS::fprintf (fp,"/>\n");
- }
-
- ACE_OS::fprintf (fp,"\t</%s>\n", Locator_XMLHandler::SERVER_INFO_TAG);
+ ACE_OS::fprintf(fp,"\t\t<%s", Locator_XMLHandler::ENVIRONMENT_TAG);
+ ACE_OS::fprintf(fp," name=\"%s\"", info->env_vars[i].name.in());
+ ACE_TString val = ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(info->env_vars[i].value.in()));
+ ACE_OS::fprintf(fp," value=\"%s\"", val.c_str());
+ ACE_OS::fprintf(fp,"/>\n");
}
+ ACE_OS::fprintf(fp,"\t</%s>\n", Locator_XMLHandler::SERVER_INFO_TAG);
+ }
+
// Save Activators
Locator_Repository::AIMap::ENTRY* aientry = 0;
- Locator_Repository::AIMap::ITERATOR aiit (repo.activators ());
- for (; aiit.next (aientry); aiit.advance ())
- {
- ACE_CString aname = aientry->ext_id_;
- Activator_Info_Ptr& info = aientry->int_id_;
- ACE_OS::fprintf (fp,"\t<%s", Locator_XMLHandler::ACTIVATOR_INFO_TAG);
- ACE_OS::fprintf( fp," name=\"%s\"", aname.c_str ());
- ACE_OS::fprintf (fp," token=\"%d\"", info->token);
- ACE_OS::fprintf (fp," ior=\"%s\"", info->ior.c_str ());
- ACE_OS::fprintf (fp,"/>\n");
- }
+ Locator_Repository::AIMap::ITERATOR aiit(repo.activators());
+ for (; aiit.next(aientry); aiit.advance()) {
+ ACE_CString aname = aientry->ext_id_;
+ Activator_Info_Ptr& info = aientry->int_id_;
+ ACE_OS::fprintf(fp,"\t<%s", Locator_XMLHandler::ACTIVATOR_INFO_TAG);
+ ACE_OS::fprintf(fp," name=\"%s\"", aname.c_str());
+ ACE_OS::fprintf(fp," token=\"%d\"", info->token);
+ ACE_OS::fprintf(fp," ior=\"%s\"", info->ior.c_str ());
+ ACE_OS::fprintf(fp,"/>\n");
+ }
- ACE_OS::fprintf (fp,"</%s>\n", Locator_XMLHandler::ROOT_TAG);
- ACE_OS::fclose (fp);
+ ACE_OS::fprintf(fp,"</%s>\n", Locator_XMLHandler::ROOT_TAG);
+ ACE_OS::fclose(fp);
}
-Locator_Repository::Locator_Repository ()
-: rmode_ (Options::REPO_NONE)
-, config_ (0)
+Locator_Repository::Locator_Repository()
+: rmode_(Options::REPO_NONE)
+, config_(0)
{
}
int
Locator_Repository::init(const Options& opts)
{
- this->rmode_ = opts.repository_mode ();
- this->fname_ = opts.persist_file_name ();
+ this->rmode_ = opts.repository_mode();
+ this->fname_ = opts.persist_file_name();
int err = 0;
- switch (this->rmode_)
+ switch (this->rmode_) {
+ case Options::REPO_NONE:
{
- case Options::REPO_NONE:
+ break;
+ }
+ case Options::REPO_HEAP_FILE:
+ {
+ if (opts.repository_erase())
{
- break;
+ ACE_OS::unlink( this->fname_.c_str() );
}
- case Options::REPO_HEAP_FILE:
+ ACE_Configuration_Heap* heap = new ACE_Configuration_Heap();
+ this->config_.reset(heap);
+ err = heap->open(this->fname_.c_str());
+ if (err == 0)
{
- if (opts.repository_erase ())
- {
- ACE_OS::unlink ( this->fname_.c_str () );
- }
- ACE_Configuration_Heap* heap = new ACE_Configuration_Heap ();
- this->config_.reset (heap);
- err = heap->open (this->fname_.c_str ());
- if (err == 0)
- {
- loadAsBinary (*this->config_, *this);
- }
- break;
+ loadAsBinary(*this->config_, *this);
}
- case Options::REPO_REGISTRY:
- {
+ break;
+ }
+ case Options::REPO_REGISTRY:
+ {
#if defined (ACE_WIN32)
- if (opts.repository_erase ())
- {
- ACE_Configuration_Win32Registry config ( HKEY_LOCAL_MACHINE );
- ACE_Configuration_Section_Key root;
- config.open_section (config.root_section(), "Software\\TAO", 0, root);
- config.remove_section (root, "ImplementationRepository", 1);
- }
- HKEY root = ACE_Configuration_Win32Registry::
- resolve_key (HKEY_LOCAL_MACHINE, WIN32_REG_KEY);
- this->config_.reset (new ACE_Configuration_Win32Registry( root));
- loadAsBinary (*this->config_, *this);
-#else
- ACE_ERROR ((LM_ERROR, "Registry persistence is only "
- "supported on Windows\n"));
- err = -1;
-#endif
- break;
- }
- case Options::REPO_XML_FILE:
+ if (opts.repository_erase())
{
- if (opts.repository_erase ())
- {
- ACE_OS::unlink ( this->fname_.c_str() );
- }
- err = loadAsXML (this->fname_, *this);
- break;
+ ACE_Configuration_Win32Registry config( HKEY_LOCAL_MACHINE );
+ ACE_Configuration_Section_Key root;
+ config.open_section( config.root_section(), ACE_TEXT("Software\\TAO"), 0, root );
+ config.remove_section( root, ACE_TEXT("ImplementationRepository"), 1 );
}
- default:
+ HKEY root = ACE_Configuration_Win32Registry::
+ resolve_key(HKEY_LOCAL_MACHINE, WIN32_REG_KEY);
+ this->config_.reset(new ACE_Configuration_Win32Registry(root));
+ loadAsBinary(*this->config_, *this);
+#else
+ ACE_ERROR ((LM_ERROR, "Registry persistence is only "
+ "supported on Windows\n"));
+ err = -1;
+#endif
+ break;
+ }
+ case Options::REPO_XML_FILE:
+ {
+ if (opts.repository_erase())
{
- bool invalid_rmode_specified = false;
- ACE_ASSERT (invalid_rmode_specified);
- ACE_UNUSED_ARG (invalid_rmode_specified);
- err = -1;
+ ACE_OS::unlink( this->fname_.c_str() );
}
+ err = loadAsXML(this->fname_, *this);
+ break;
+ }
+ default:
+ {
+ bool invalid_rmode_specified = false;
+ ACE_ASSERT(invalid_rmode_specified);
+ ACE_UNUSED_ARG(invalid_rmode_specified);
+ err = -1;
}
+ }
return err;
}
@@ -361,15 +365,15 @@ Locator_Repository::add_server (const ACE_CString& name,
ImplementationRepository::ServerObject_ptr svrobj)
{
int limit = start_limit < 1 ? 1 : start_limit;
- Server_Info_Ptr info(new Server_Info (name, aname, startup_command,
+ Server_Info_Ptr info(new Server_Info(name, aname, startup_command,
env_vars, working_dir, activation, limit, partial_ior, ior, svrobj));
- int err = servers ().bind (name, info);
+ int err = servers().bind (name, info);
if (err != 0)
- {
- return err;
- }
- this->update_server (*info);
+ {
+ return err;
+ }
+ this->update_server(*info);
return 0;
}
@@ -379,14 +383,14 @@ Locator_Repository::add_activator (const ACE_CString& name,
const ACE_CString& ior,
ImplementationRepository::Activator_ptr act)
{
- Activator_Info_Ptr info (new Activator_Info (name, token, ior, act));
+ Activator_Info_Ptr info(new Activator_Info(name, token, ior, act));
- int err = activators ().bind (lcase (name), info);
+ int err = activators().bind (lcase(name), info);
if (err != 0)
- {
- return err;
- }
- this->update_activator (*info);
+ {
+ return err;
+ }
+ this->update_activator(*info);
return 0;
}
@@ -394,41 +398,41 @@ int
Locator_Repository::update_server (const Server_Info& info)
{
if (rmode_ == Options::REPO_HEAP_FILE || rmode_ == Options::REPO_REGISTRY)
- {
- ACE_ASSERT (this->config_.get () != 0);
+ {
+ ACE_ASSERT(this->config_.get() != 0);
- ACE_Configuration& cfg = *this->config_;
+ ACE_Configuration& cfg = *this->config_;
- ACE_Configuration_Section_Key root;
- ACE_Configuration_Section_Key key;
- int err = cfg.open_section (cfg.root_section(), SERVERS_ROOT_KEY, 1, root);
- if (err != 0)
- {
- ACE_ERROR ((LM_ERROR, "Unable to open config section:%s\n", SERVERS_ROOT_KEY));
- return err;
- }
- err = cfg.open_section (root, info.name.c_str (), 1, key);
- if (err != 0)
- {
- ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", info.name.c_str()));
- return err;
- }
-
- ACE_CString envstr = ImR_Utils::envListToString(info.env_vars);
-
- cfg.set_string_value (key, ACTIVATOR, info.activator.c_str ());
- cfg.set_string_value (key, STARTUP_COMMAND, info.cmdline.c_str ());
- cfg.set_string_value (key, WORKING_DIR, info.dir.c_str ());
- cfg.set_string_value (key, ENVIRONMENT, envstr);
- cfg.set_integer_value (key, ACTIVATION, info.activation_mode);
- cfg.set_integer_value (key, START_LIMIT, info.start_limit);
- cfg.set_string_value (key, PARTIAL_IOR, info.partial_ior.c_str ());
- cfg.set_string_value (key, IOR, info.ior.c_str());
+ ACE_Configuration_Section_Key root;
+ ACE_Configuration_Section_Key key;
+ int err = cfg.open_section (cfg.root_section(), SERVERS_ROOT_KEY, 1, root);
+ if (err != 0)
+ {
+ ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", SERVERS_ROOT_KEY));
+ return err;
}
- else if (rmode_ == Options::REPO_XML_FILE)
+ err = cfg.open_section (root, ACE_TEXT_TO_TCHAR_IN(info.name.c_str()), 1, key);
+ if (err != 0)
{
- saveAsXML (this->fname_, *this);
+ ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", info.name.c_str()));
+ return err;
}
+
+ ACE_CString envstr = ImR_Utils::envListToString(info.env_vars);
+
+ cfg.set_string_value (key, ACTIVATOR, ACE_TEXT_TO_TCHAR_IN(info.activator.c_str()));
+ cfg.set_string_value (key, STARTUP_COMMAND, ACE_TEXT_TO_TCHAR_IN(info.cmdline.c_str()));
+ cfg.set_string_value (key, WORKING_DIR, ACE_TEXT_TO_TCHAR_IN(info.dir.c_str()));
+ cfg.set_string_value (key, ENVIRONMENT, ACE_TEXT_TO_TCHAR_IN(envstr.c_str()));
+ cfg.set_integer_value (key, ACTIVATION, info.activation_mode);
+ cfg.set_integer_value (key, START_LIMIT, info.start_limit);
+ cfg.set_string_value (key, PARTIAL_IOR, ACE_TEXT_TO_TCHAR_IN(info.partial_ior.c_str()));
+ cfg.set_string_value (key, IOR, ACE_TEXT_TO_TCHAR_IN(info.ior.c_str()));
+ }
+ else if (rmode_ == Options::REPO_XML_FILE)
+ {
+ saveAsXML(this->fname_, *this);
+ }
return 0;
}
@@ -436,57 +440,57 @@ int
Locator_Repository::update_activator (const Activator_Info& info)
{
if (rmode_ == Options::REPO_HEAP_FILE || rmode_ == Options::REPO_REGISTRY)
- {
- ACE_ASSERT(this->config_.get () != 0);
+ {
+ ACE_ASSERT(this->config_.get() != 0);
- ACE_Configuration& cfg = *this->config_;
+ ACE_Configuration& cfg = *this->config_;
- ACE_Configuration_Section_Key root;
- ACE_Configuration_Section_Key key;
- int err = cfg.open_section (cfg.root_section(), ACTIVATORS_ROOT_KEY, 1, root);
- if (err != 0)
- {
- ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", ACTIVATORS_ROOT_KEY));
- return err;
- }
- err = cfg.open_section (root, info.name.c_str (), 1, key);
- if (err != 0)
- {
- ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", info.name.c_str()));
- return err;
- }
-
- cfg.set_integer_value (key, TOKEN, info.token);
- cfg.set_string_value (key, IOR, info.ior.c_str ());
+ ACE_Configuration_Section_Key root;
+ ACE_Configuration_Section_Key key;
+ int err = cfg.open_section (cfg.root_section(), ACTIVATORS_ROOT_KEY, 1, root);
+ if (err != 0)
+ {
+ ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", ACTIVATORS_ROOT_KEY));
+ return err;
}
- else if (rmode_ == Options::REPO_XML_FILE)
+ err = cfg.open_section (root, ACE_TEXT_TO_TCHAR_IN(info.name.c_str()), 1, key);
+ if (err != 0)
{
- saveAsXML( this->fname_, *this);
+ ACE_ERROR((LM_ERROR, "Unable to open config section:%s\n", info.name.c_str()));
+ return err;
}
+
+ cfg.set_integer_value (key, TOKEN, info.token);
+ cfg.set_string_value (key, IOR, ACE_TEXT_TO_TCHAR_IN(info.ior.c_str()));
+ }
+ else if (rmode_ == Options::REPO_XML_FILE)
+ {
+ saveAsXML(this->fname_, *this);
+ }
return 0;
}
Server_Info_Ptr
Locator_Repository::get_server (const ACE_CString& name)
{
- Server_Info_Ptr server (0);
- servers ().find (name, server);
+ Server_Info_Ptr server(0);
+ servers().find (name, server);
return server;
}
Activator_Info_Ptr
Locator_Repository::get_activator (const ACE_CString& name)
{
- Activator_Info_Ptr activator (0);
- activators ().find (lcase (name), activator);
+ Activator_Info_Ptr activator(0);
+ activators().find (lcase(name), activator);
return activator;
}
bool
Locator_Repository::has_activator (const ACE_CString& name)
{
- Activator_Info_Ptr activator (0);
- return activators().find (lcase (name), activator) == 0;
+ Activator_Info_Ptr activator(0);
+ return activators().find (lcase(name), activator) == 0;
}
int
@@ -494,26 +498,26 @@ Locator_Repository::remove_server (const ACE_CString& name)
{
int ret = this->servers().unbind (name);
if (ret != 0)
- {
- return ret;
- }
+ {
+ return ret;
+ }
if (rmode_ == Options::REPO_HEAP_FILE || rmode_ == Options::REPO_REGISTRY)
+ {
+ ACE_ASSERT(this->config_.get() != 0);
+ ACE_Configuration& cfg = *this->config_;
+ ACE_Configuration_Section_Key root;
+ int err = cfg.open_section (cfg.root_section(), SERVERS_ROOT_KEY, 0, root);
+ if (err != 0)
{
- ACE_ASSERT (this->config_.get() != 0);
- ACE_Configuration& cfg = *this->config_;
- ACE_Configuration_Section_Key root;
- int err = cfg.open_section (cfg.root_section (), SERVERS_ROOT_KEY, 0, root);
- if (err != 0)
- {
- return 0; // Already gone.
- }
- ret = cfg.remove_section (root, name.c_str (), 1);
+ return 0; // Already gone.
}
+ ret = cfg.remove_section (root, ACE_TEXT_TO_TCHAR_IN(name.c_str()), 1);
+ }
else if (rmode_ == Options::REPO_XML_FILE)
- {
- saveAsXML (this->fname_, *this);
- }
+ {
+ saveAsXML(this->fname_, *this);
+ }
return ret;
}
@@ -522,53 +526,53 @@ Locator_Repository::remove_activator (const ACE_CString& name)
{
int ret = activators().unbind (lcase(name));
if (ret != 0)
- {
- return ret;
- }
+ {
+ return ret;
+ }
if (rmode_ == Options::REPO_HEAP_FILE || rmode_ == Options::REPO_REGISTRY)
+ {
+ ACE_ASSERT(this->config_.get() != 0);
+ ACE_Configuration& cfg = *this->config_;
+ ACE_Configuration_Section_Key root;
+ int err = cfg.open_section (cfg.root_section(), ACTIVATORS_ROOT_KEY, 0, root);
+ if (err != 0)
{
- ACE_ASSERT (this->config_.get () != 0);
- ACE_Configuration& cfg = *this->config_;
- ACE_Configuration_Section_Key root;
- int err = cfg.open_section (cfg.root_section (), ACTIVATORS_ROOT_KEY, 0, root);
- if (err != 0)
- {
- return 0; // Already gone.
- }
- ret = cfg.remove_section (root, name.c_str (), 1);
+ return 0; // Already gone.
}
+ ret = cfg.remove_section (root, ACE_TEXT_TO_TCHAR_IN(name.c_str()), 1);
+ }
else if (rmode_ == Options::REPO_XML_FILE)
{
- saveAsXML (this->fname_, *this);
+ saveAsXML(this->fname_, *this);
}
return ret;
}
Locator_Repository::SIMap&
-Locator_Repository::servers (void)
+Locator_Repository::servers(void)
{
return server_infos_;
}
Locator_Repository::AIMap&
-Locator_Repository::activators (void)
+Locator_Repository::activators(void)
{
return activator_infos_;
}
-const char*
-Locator_Repository::repo_mode ()
+const ACE_TCHAR*
+Locator_Repository::repo_mode()
{
switch (rmode_)
{
case Options::REPO_XML_FILE:
case Options::REPO_HEAP_FILE:
- return fname_.c_str ();
+ return fname_.c_str();
case Options::REPO_REGISTRY:
- return "Registry";
+ return ACE_TEXT("Registry");
case Options::REPO_NONE:
- return "Disabled";
+ return ACE_TEXT("Disabled");
}
- return "Disabled";
+ return ACE_TEXT("Disabled");
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.h b/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.h
index 2ef50b5753a..6818638fefe 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_Repository.h
@@ -95,7 +95,7 @@ public:
/// Returns the internal hash map containing the activator information.
AIMap& activators(void);
- const char* repo_mode();
+ const ACE_TCHAR* repo_mode();
private:
// Type mechanism to use for persistence.
@@ -107,7 +107,7 @@ private:
// Several rmode_ values require this.
ACE_Auto_Ptr<ACE_Configuration> config_;
// XML requires the file name
- ACE_CString fname_;
+ ACE_TString fname_;
};
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.cpp b/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.cpp
index a1ddcf0b3d9..59035e49b9b 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.cpp
@@ -5,13 +5,13 @@
ACE_RCSID (ImplRepo_Service,Locator_XMLHandler,"$Id$")
-const char* Locator_XMLHandler::ROOT_TAG = "ImplementationRepository";
-const char* Locator_XMLHandler::SERVER_INFO_TAG = "Servers";
-const char* Locator_XMLHandler::ACTIVATOR_INFO_TAG = "Activators";
-const char* Locator_XMLHandler::ENVIRONMENT_TAG = "EnvironmentVariables";
+const ACE_TCHAR* Locator_XMLHandler::ROOT_TAG = ACE_TEXT("ImplementationRepository");
+const ACE_TCHAR* Locator_XMLHandler::SERVER_INFO_TAG = ACE_TEXT("Servers");
+const ACE_TCHAR* Locator_XMLHandler::ACTIVATOR_INFO_TAG = ACE_TEXT("Activators");
+const ACE_TCHAR* Locator_XMLHandler::ENVIRONMENT_TAG = ACE_TEXT("EnvironmentVariables");
-Locator_XMLHandler::Locator_XMLHandler (Callback& cb)
-: callback_ (cb)
+Locator_XMLHandler::Locator_XMLHandler(Callback& cb)
+: callback_(cb)
{
}
@@ -22,48 +22,48 @@ Locator_XMLHandler::startElement (const ACEXML_Char*,
ACEXML_Attributes* attrs ACEXML_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((ACEXML_SAXException))
{
- ACE_ASSERT (qName != 0);
+ ACE_ASSERT(qName != 0);
if (ACE_OS::strcasecmp (qName, SERVER_INFO_TAG) == 0)
+ {
+ // We'll use this as a key to determine if we've got a valid record
+ this->server_name_ = "";
+ this->env_vars_.clear();
+
+ if (attrs != 0 && attrs->getLength () == 8)
{
- // We'll use this as a key to determine if we've got a valid record
- this->server_name_ = "";
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)0)));
+ this->activator_name_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)1)));
+ this->command_line_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)2)));
+ this->working_dir_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)3)));
+ this->activation_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)4)));
this->env_vars_.clear();
-
- if (attrs != 0 && attrs->getLength () == 8)
- {
- this->server_name_ = attrs->getValue ((size_t)0);
- this->activator_name_ = attrs->getValue ((size_t)1);
- this->command_line_ = attrs->getValue ((size_t)2);
- this->working_dir_ = attrs->getValue ((size_t)3);
- this->activation_ = attrs->getValue ((size_t)4);
- this->env_vars_.clear ();
- int limit = ACE_OS::atoi (attrs->getValue ((size_t)5));
- this->start_limit_ = limit;
- this->partial_ior_ = attrs->getValue ((size_t)6);
- this->server_object_ior_ = attrs->getValue ((size_t)7);
- }
+ int limit = ACE_OS::atoi (attrs->getValue((size_t)5));
+ this->start_limit_ = limit;
+ this->partial_ior_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)6)));
+ this->server_object_ior_.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)7)));
}
+ }
else if (ACE_OS::strcasecmp (qName, ACTIVATOR_INFO_TAG) == 0)
{
if (attrs != 0 && attrs->getLength () == 3)
- {
- ACE_CString aname = attrs->getValue ((size_t)0);
- ACE_CString token_str = attrs->getValue ((size_t)1);
- long token = ACE_OS::atoi (token_str.c_str ());
- ACE_CString ior = attrs->getValue ((size_t)2);
- this->callback_.next_activator (aname, token, ior);
- }
+ {
+ ACE_CString aname (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)0)));
+ ACE_CString token_str (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)1)));
+ long token = ACE_OS::atoi (token_str.c_str());
+ ACE_CString ior (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)2)));
+ this->callback_.next_activator(aname, token, ior);
+ }
}
else if (ACE_OS::strcasecmp (qName, ENVIRONMENT_TAG) == 0)
+ {
+ if (attrs != 0 && attrs->getLength() == 2)
{
- if (attrs != 0 && attrs->getLength () == 2)
- {
- EnvVar ev;
- ev.name = attrs->getValue ((size_t)0);
- ev.value = attrs->getValue ((size_t)1);
- this->env_vars_.push_back (ev);
- }
+ EnvVar ev;
+ ev.name.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)0)));
+ ev.value.set (ACE_TEXT_TO_CHAR_IN (attrs->getValue((size_t)1)));
+ this->env_vars_.push_back(ev);
}
+ }
}
void
@@ -74,9 +74,9 @@ Locator_XMLHandler::endElement (const ACEXML_Char*,
{
ACE_ASSERT(qName != 0);
if (ACE_OS::strcasecmp (qName, SERVER_INFO_TAG) == 0
- && this->server_name_.length () > 0)
+ && this->server_name_.length() > 0)
{
- this->callback_.next_server (this->server_name_,
+ this->callback_.next_server(this->server_name_,
this->activator_name_, this->command_line_,
this->env_vars_, this->working_dir_, this->activation_,
this->start_limit_, this->partial_ior_, this->server_object_ior_);
@@ -85,12 +85,12 @@ Locator_XMLHandler::endElement (const ACEXML_Char*,
}
bool
-Locator_XMLHandler::EnvVar::operator== (const EnvVar& rhs) const
+Locator_XMLHandler::EnvVar::operator==(const EnvVar& rhs) const
{
return name == rhs.name && value == rhs.value;
}
bool
-Locator_XMLHandler::EnvVar::operator!= (const EnvVar& rhs) const
+Locator_XMLHandler::EnvVar::operator!=(const EnvVar& rhs) const
{
return ! (rhs == *this);
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.h b/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.h
index ff8691d0a78..8431371c8d3 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.h
+++ b/TAO/orbsvcs/ImplRepo_Service/Locator_XMLHandler.h
@@ -28,10 +28,10 @@ class Locator_XMLHandler : public ACEXML_DefaultHandler
public:
// XML ELEMENT names
- static const char* ROOT_TAG;
- static const char* SERVER_INFO_TAG;
- static const char* ENVIRONMENT_TAG;
- static const char* ACTIVATOR_INFO_TAG;
+ static const ACE_TCHAR* ROOT_TAG;
+ static const ACE_TCHAR* SERVER_INFO_TAG;
+ static const ACE_TCHAR* ENVIRONMENT_TAG;
+ static const ACE_TCHAR* ACTIVATOR_INFO_TAG;
struct EnvVar {
ACE_CString name;
@@ -44,7 +44,7 @@ public:
struct Callback {
virtual ~Callback() {}
-
+
virtual void next_server (const ACE_CString& server_name,
const ACE_CString& aname, const ACE_CString& startup_cmd,
const EnvList& env_vars, const ACE_CString& working_dir,
diff --git a/TAO/orbsvcs/ImplRepo_Service/Makefile.am b/TAO/orbsvcs/ImplRepo_Service/Makefile.am
index 6552b90b0e0..fdcda8567ac 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Makefile.am
+++ b/TAO/orbsvcs/ImplRepo_Service/Makefile.am
@@ -46,7 +46,7 @@ CLEANFILES = \
ImR_ActivatorC.cpp ImR_ActivatorC.h ImR_ActivatorC.inl ImR_ActivatorS.cpp ImR_ActivatorS.h ImR_ActivatorS.inl ImR_ActivatorS_T.cpp ImR_ActivatorS_T.h ImR_ActivatorS_T.inl: ImR_Activator-stamp
ImR_Activator-stamp: $(srcdir)/ImR_Activator.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=ActivatorIDL_Export -Wb,export_include=activator_idl_export.h $(srcdir)/ImR_Activator.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=ActivatorIDL_Export -Wb,export_include=activator_idl_export.h $(srcdir)/ImR_Activator.idl
@touch $@
noinst_LTLIBRARIES = libTAO_ImR_Activator_IDL.la
@@ -104,7 +104,7 @@ CLEANFILES += \
ImR_LocatorC.cpp ImR_LocatorC.h ImR_LocatorC.inl ImR_LocatorS.cpp ImR_LocatorS.h ImR_LocatorS.inl ImR_LocatorS_T.cpp ImR_LocatorS_T.h ImR_LocatorS_T.inl: ImR_Locator-stamp
ImR_Locator-stamp: $(srcdir)/ImR_Locator.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=LocatorIDL_Export -Wb,export_include=locator_idl_export.h $(srcdir)/ImR_Locator.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=LocatorIDL_Export -Wb,export_include=locator_idl_export.h $(srcdir)/ImR_Locator.idl
@touch $@
BUILT_SOURCES += \
@@ -133,7 +133,7 @@ CLEANFILES += \
AsyncStartupWaiterC.cpp AsyncStartupWaiterC.h AsyncStartupWaiterC.inl AsyncStartupWaiterS.cpp AsyncStartupWaiterS.h AsyncStartupWaiterS.inl AsyncStartupWaiterS_T.cpp AsyncStartupWaiterS_T.h AsyncStartupWaiterS_T.inl: AsyncStartupWaiter-stamp
AsyncStartupWaiter-stamp: $(srcdir)/AsyncStartupWaiter.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=LocatorIDL_Export -Wb,export_include=locator_idl_export.h -GH $(srcdir)/AsyncStartupWaiter.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=LocatorIDL_Export -Wb,export_include=locator_idl_export.h -GH $(srcdir)/AsyncStartupWaiter.idl
@touch $@
noinst_LTLIBRARIES += libTAO_ImR_Locator_IDL.la
@@ -176,7 +176,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_ACEXML
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_LTLIBRARIES += libTAO_ImR_Activator.la
@@ -203,7 +202,6 @@ noinst_HEADERS += \
activator_export.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_ACEXML
@@ -211,7 +209,6 @@ endif BUILD_ACEXML
if BUILD_ACEXML
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS += ImR_Activator
@@ -248,7 +245,6 @@ ImR_Activator_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_ACEXML
@@ -256,7 +252,6 @@ endif BUILD_ACEXML
if BUILD_ACEXML
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_LTLIBRARIES += libTAO_ImR_Locator.la
@@ -302,7 +297,6 @@ noinst_HEADERS += \
utils.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_ACEXML
@@ -310,7 +304,6 @@ endif BUILD_ACEXML
if BUILD_ACEXML
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS += ImplRepo_Service
@@ -349,7 +342,6 @@ ImplRepo_Service_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_ACEXML
diff --git a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
index 91f8d7fa1be..70ed15854f9 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Server_Info.cpp
@@ -14,53 +14,52 @@ Server_Info::Server_Info
const ACE_CString& server_ior,
ImplementationRepository::ServerObject_ptr svrobj
)
- : name (server_name)
- , activator (aname)
- , cmdline( cmdline)
- , env_vars (env)
- , dir (working_dir)
- , activation_mode (amode)
+ : name(server_name)
+ , activator(aname)
+ , cmdline(cmdline)
+ , env_vars(env)
+ , dir(working_dir)
+ , activation_mode(amode)
, start_limit (limit)
- , partial_ior (partial_ior)
- , ior (server_ior)
- , server(ImplementationRepository::ServerObject::_duplicate (svrobj))
- , start_count (0)
- , waiting_clients (0)
- , starting (false)
+ , partial_ior(partial_ior)
+ , ior(server_ior)
+ , server(ImplementationRepository::ServerObject::_duplicate(svrobj))
+ , start_count(0)
+ , waiting_clients(0)
+ , starting(false)
{
}
ImplementationRepository::ServerInformation*
-Server_Info::createImRServerInfo (ACE_ENV_SINGLE_ARG_DECL)
+Server_Info::createImRServerInfo(ACE_ENV_SINGLE_ARG_DECL)
{
ImplementationRepository::ServerInformation* info;
- ACE_NEW_THROW_EX (info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY ());
+ ACE_NEW_THROW_EX (info, ImplementationRepository::ServerInformation, CORBA::NO_MEMORY());
- info->server = name.c_str ();
- info->startup.command_line = cmdline.c_str ();
+ info->server = name.c_str();
+ info->startup.command_line = cmdline.c_str();
info->startup.environment = env_vars;
- info->startup.working_directory = dir.c_str ();
+ info->startup.working_directory = dir.c_str();
info->startup.activation = activation_mode;
- info->startup.activator = activator.c_str ();
- if (start_count >= start_limit)
- {
- info->startup.start_limit = -start_limit;
- }
+ info->startup.activator = activator.c_str();
+ if (start_count >= start_limit) {
+ info->startup.start_limit = -start_limit;
+ }
else
- {
- info->startup.start_limit = start_limit;
- }
+ {
+ info->startup.start_limit = start_limit;
+ }
info->partial_ior = partial_ior.c_str();
return info;
}
void
-Server_Info::reset (void)
+Server_Info::reset(void)
{
ior = "";
partial_ior = "";
last_ping = ACE_Time_Value::zero;
- server = ImplementationRepository::ServerObject::_nil ();
+ server = ImplementationRepository::ServerObject::_nil();
// start_count = 0; Note : We can't do this, because it would be reset during startup.
}
diff --git a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
index 9febb1ae406..7f454c63773 100644
--- a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.cpp
@@ -12,6 +12,7 @@
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS.h"
+#include "ace/Argv_Type_Converter.h"
TAO_IMR_i::TAO_IMR_i (void)
: imr_ (ImplementationRepository::Administration::_nil ())
@@ -26,65 +27,65 @@ TAO_IMR_i::~TAO_IMR_i (void)
int
TAO_IMR_i::run ()
{
- if (this->op_.get () == 0)
- {
- ACE_ERROR ((LM_ERROR, "Unknown operation"));
- return TAO_IMR_Op::UNKNOWN;
- }
+ if (this->op_.get() == 0)
+ {
+ ACE_ERROR ((LM_ERROR, "Unknown operation"));
+ return TAO_IMR_Op::UNKNOWN;
+ }
return this->op_->run ();
}
int
-TAO_IMR_i::init (int argc, char **argv)
+TAO_IMR_i::init (int argc, ACE_TCHAR **argv)
{
- this->argc_ = argc;
- this->argv_ = argv;
-
const char *exception_message = "Null Message";
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- // Retrieve the ORB.
- this->orb_ = CORBA::ORB_init (this->argc_, this->argv_, "tao_imr_i" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Parse command line and verify parameters.
- if (this->parse_args () == -1)
- return -1;
+ {
+ // Retrieve the ORB.
+ this->orb_ = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
+ "tao_imr_i" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // Get the ImplRepo object
- CORBA::Object_var obj =
- orb_->resolve_initial_references ("ImplRepoService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // Parse command line and verify parameters.
+ if (this->parse_args (convert.get_argc(), convert.get_TCHAR_argv()) == -1)
+ return -1;
- if (CORBA::is_nil (obj.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Unable to resolve the ImR.\n"));
- return -1;
- }
+ // Get the ImplRepo object
+ CORBA::Object_var obj =
+ orb_->resolve_initial_references ("ImplRepoService" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- exception_message = "While narrowing ImR";
+ if (CORBA::is_nil (obj.in ()))
+ {
+ ACE_ERROR ((LM_ERROR, "Unable to resolve the ImR.\n"));
+ return -1;
+ }
- this->imr_ =
- ImplementationRepository::Administration::_narrow (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ exception_message = "While narrowing ImR";
- if (CORBA::is_nil (imr_.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Unable to narrow the ImR.\n"));
- return -1;
- }
+ this->imr_ =
+ ImplementationRepository::Administration::_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->op_->set_imr (this->imr_.in ());
- }
- ACE_CATCHANY
+ if (CORBA::is_nil (imr_.in ()))
{
- ACE_ERROR ((LM_ERROR, "TAO_IMR_i::init - %s\n", exception_message));
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception");
+ ACE_ERROR ((LM_ERROR, "Unable to narrow the ImR.\n"));
return -1;
}
+
+ this->op_->set_imr(this->imr_.in ());
+ }
+ ACE_CATCHANY
+ {
+ ACE_ERROR ((LM_ERROR, "TAO_IMR_i::init - %s\n", exception_message));
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception");
+ return -1;
+ }
ACE_ENDTRY;
return 0;
@@ -94,29 +95,29 @@ TAO_IMR_i::init (int argc, char **argv)
// Go through and figure out which operation we should do.
int
-TAO_IMR_i::parse_args (void)
+TAO_IMR_i::parse_args (int argc, ACE_TCHAR **argv)
{
// Make sure one command was given
- if (this->argc_ < 2)
- {
- ACE_ERROR((LM_ERROR, "Error: No operation specified.\n"));
- this->print_usage ();
- return -1;
- }
+ if (argc < 2)
+ {
+ ACE_ERROR((LM_ERROR, "Error: No operation specified.\n"));
+ this->print_usage ();
+ return -1;
+ }
- this->op_.reset (TAO_IMR_Op::make_op (this->argv_[1]));
+ this->op_.reset(TAO_IMR_Op::make_op (argv[1]));
// Check for unrecognized operation
- if (this->op_.get () == 0)
- {
- ACE_ERROR((LM_ERROR, "Error: Unknown operation '%s'.\n", this->argv_[1]));
- this->print_usage ();
- return -1;
- }
+ if (this->op_.get() == 0)
+ {
+ ACE_ERROR((LM_ERROR, "Error: Unknown operation '%s'.\n", argv[1]));
+ this->print_usage ();
+ return -1;
+ }
// Adjust argc and argv so only the command specific args are passed
- return this->op_->parse (this->argc_ - 1, this->argv_ + 1);
+ return this->op_->parse (argc - 1, argv + 1);
}
@@ -147,10 +148,10 @@ TAO_IMR_Op *
TAO_IMR_Op::make_op (const ACE_TCHAR *op_name)
{
if (ACE_OS::strcasecmp (op_name, ACE_TEXT ("activate")) == 0)
- {
- ACE_ERROR((LM_ERROR, "Warning: The activate option has been renamed to start.\n"));
- return new TAO_IMR_Op_Activate ();
- }
+ {
+ ACE_ERROR((LM_ERROR, "Warning: The activate option has been renamed to start.\n"));
+ return new TAO_IMR_Op_Activate ();
+ }
else if (ACE_OS::strcasecmp (op_name, ACE_TEXT ("start")) == 0)
return new TAO_IMR_Op_Activate ();
else if (ACE_OS::strcasecmp (op_name, ACE_TEXT ("add")) == 0)
@@ -206,10 +207,10 @@ TAO_IMR_Op::display_server_information (const ImplementationRepository::ServerIn
int limit = info.startup.start_limit;
if (info.startup.start_limit < 0)
- {
- limit = -limit;
- locked_out = " Locked Out\n";
- }
+ {
+ limit = -limit;
+ locked_out = " Locked Out\n";
+ }
ACE_DEBUG ((LM_DEBUG,
" Activator: %s\n"
@@ -230,15 +231,14 @@ TAO_IMR_Op::display_server_information (const ImplementationRepository::ServerIn
info.startup.environment[i].value.in ()));
if (info.startup.activation == ImplementationRepository::PER_CLIENT)
+ ACE_DEBUG ((LM_DEBUG, " No running info available for PER_CLIENT mode\n"));
+ else if (ACE_OS::strlen (info.partial_ior.in()) > 0)
ACE_DEBUG ((LM_DEBUG,
- " No running info available for PER_CLIENT mode\n"));
- else if (ACE_OS::strlen (info.partial_ior.in ()) > 0)
- ACE_DEBUG ((LM_DEBUG,
- " Running at endpoint: %s\n",
- info.partial_ior.in ()));
+ " Running at endpoint: %s\n",
+ info.partial_ior.in ()));
else // I am assuming that a blank partial_ior means currently not running.
ACE_DEBUG ((LM_DEBUG,
- " Not currently running\n"));
+ " Not currently running\n"));
ACE_DEBUG ((LM_DEBUG, "\n"));
}
@@ -279,30 +279,29 @@ TAO_IMR_Op_Activate::parse (int argc, ACE_TCHAR **argv)
{
// Check for enough arguments (we need at least one for the server name)
if (argc < 2)
- {
- this->print_usage ();
- return -1;
- }
+ {
+ this->print_usage ();
+ return -1;
+ }
// Skip both the program name and the "activate" command
- ACE_Get_Opt get_opts (argc, argv, "h");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("h"));
- this->server_name_ = argv[1];
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (argv[1]));
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'h':
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
+ switch (c)
+ {
+ case 'h':
+ this->print_usage ();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
}
+
return 0;
}
@@ -318,23 +317,22 @@ int
TAO_IMR_Op_Autostart::parse (int argc, ACE_TCHAR **argv)
{
// Skip the "autostart" command
- ACE_Get_Opt get_opts (argc, argv, "h");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("h"));
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'h': // display help
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
- }
+ switch (c)
+ {
+ case 'h': // display help
+ this->print_usage ();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
+ }
+
return 0;
}
@@ -358,40 +356,39 @@ TAO_IMR_Op_IOR::parse (int argc, ACE_TCHAR **argv)
{
// Check for enough arguments (we need at least one for the server name)
if (argc < 2)
- {
- this->print_usage ();
- return -1;
- }
+ {
+ this->print_usage ();
+ return -1;
+ }
// Skip both the program name and the "ior" command
- ACE_Get_Opt get_opts (argc, argv, "hf:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("hf:"));
- this->server_name_ = argv[1];
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (argv[1]));
if (this->server_name_.length() == 0 || this->server_name_[0] == '-')
- {
- ACE_ERROR((LM_ERROR, "ERROR : name is required.\n"));
- this->print_usage ();
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "ERROR : name is required.\n"));
+ this->print_usage ();
+ return -1;
+ }
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'f': // File name
- this->filename_ = get_opts.opt_arg ();
- break;
- case 'h': // display help
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
- }
+ switch (c)
+ {
+ case 'f': // File name
+ this->filename_.set (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg ()));
+ break;
+ case 'h': // display help
+ this->print_usage();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
+ }
+
return 0;
}
@@ -416,31 +413,30 @@ TAO_IMR_Op_List::parse (int argc, ACE_TCHAR **argv)
if (argc > 1 && argv[1][0] != '-')
{
- this->server_name_ = argv[1];
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (argv[1]));
server_flag = 2;
}
// Skip both the program name and the "list" command
- ACE_Get_Opt get_opts (argc, argv, "vh", server_flag);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("vh"), server_flag);
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'v': // verbose server display
- this->verbose_server_information_ = 1;
- break;
- case 'h': // display help
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
- }
+ switch (c)
+ {
+ case 'v': // verbose server display
+ this->verbose_server_information_ = 1;
+ break;
+ case 'h': // display help
+ this->print_usage ();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
+ }
+
return 0;
}
@@ -460,30 +456,29 @@ TAO_IMR_Op_Remove::parse (int argc, ACE_TCHAR **argv)
{
// Check for enough arguments (we need at least one for the server name)
if (argc < 2)
- {
- this->print_usage ();
- return -1;
- }
+ {
+ this->print_usage ();
+ return -1;
+ }
// Skip both the program name and the "remove" command
- ACE_Get_Opt get_opts (argc, argv, "h");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("h"));
- this->server_name_ = argv[1];
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (argv[1]));
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'h':
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
- }
+ switch (c)
+ {
+ case 'h':
+ this->print_usage ();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
+ }
+
return 0;
}
@@ -503,30 +498,29 @@ TAO_IMR_Op_Shutdown::parse (int argc, ACE_TCHAR **argv)
{
// Check for enough arguments (we need at least one for the server name)
if (argc < 2)
- {
- this->print_usage ();
- return -1;
- }
+ {
+ this->print_usage ();
+ return -1;
+ }
// Skip both the program name and the "shutdown" command
- ACE_Get_Opt get_opts (argc, argv, "h");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("h"));
- this->server_name_ = argv[1];
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (argv[1]));
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'h':
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
- }
+ switch (c)
+ {
+ case 'h':
+ this->print_usage ();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
+ }
+
return 0;
}
@@ -551,32 +545,32 @@ TAO_IMR_Op_ShutdownRepo::parse (int argc, ACE_TCHAR **argv)
{
// Check for enough arguments (we need at least one for the server name)
if (argc < 1)
- {
- this->print_usage ();
- return -1;
- }
+ {
+ this->print_usage ();
+ return -1;
+ }
// Skip both the program name and the "shutdown-repo" command
- ACE_Get_Opt get_opts (argc, argv, "ha");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("ha"));
int c;
while ((c = get_opts ()) != -1)
+ {
+ switch (c)
{
- switch (c)
- {
- case 'h':
- this->print_usage ();
- return -1;
- case 'a':
- activators_ = true;
- break;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
- }
+ case 'h':
+ this->print_usage ();
+ return -1;
+ case 'a':
+ activators_ = true;
+ break;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
}
+ }
return 0;
}
@@ -587,8 +581,8 @@ TAO_IMR_Op_Register::addenv (ACE_TCHAR *opt)
CORBA::ULong length = this->environment_vars_.length ();
// Increase the length of the sequence
this->environment_vars_.length (length + 1);
- ACE_CString tokens (opt);
- int index = tokens.find ("=");
+ ACE_TString tokens (opt);
+ int index = tokens.find (ACE_TEXT("="));
// Insert at position length since that is our new element
this->environment_vars_ [length].name =
CORBA::string_dup (tokens.substr (0, index).c_str ());
@@ -620,72 +614,71 @@ TAO_IMR_Op_Register::parse (int argc, ACE_TCHAR **argv)
{
// Check for enough arguments (we need at least one for the server name)
if (argc < 2)
- {
- ACE_ERROR((LM_ERROR, "Error: Must supply at least a server name.\n"));
- this->print_usage ();
- return -1;
- }
+ {
+ ACE_ERROR((LM_ERROR, "Error: Must supply at least a server name.\n"));
+ this->print_usage ();
+ return -1;
+ }
// Skip both the program name and the "update" command
- ACE_Get_Opt get_opts (argc, argv, "hc:w:a:e:r:R:l:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("hc:w:a:e:r:R:l:"));
- this->server_name_ = argv[1];
+ this->server_name_.set (ACE_TEXT_TO_CHAR_IN (argv[1]));
int c;
while ((c = get_opts ()) != -1)
- {
- switch (c)
+ switch (c)
+ {
+ case 'c': // Command line arguments
+ this->set_command_line_ = true;
+ this->command_line_.set (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg ()));
+ break;
+ case 'e': // set environment variables
+ this->set_environment_vars_ = true;
+ this->addenv( get_opts.opt_arg () );
+ break;
+ case 'w': // Working Directory
+ this->set_working_dir_ = true;
+ this->working_dir_.set (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg ()));
+ break;
+ case 'a': // Activation Mode
+ this->set_activation_ = true;
+ if (ACE_OS::strcasecmp (get_opts.opt_arg (), ACE_TEXT("NORMAL")) == 0)
+ this->activation_ = ImplementationRepository::NORMAL;
+ else if (ACE_OS::strcasecmp (get_opts.opt_arg (), ACE_TEXT("MANUAL")) == 0)
+ this->activation_ = ImplementationRepository::MANUAL;
+ else if (ACE_OS::strcasecmp (get_opts.opt_arg (), ACE_TEXT("PER_CLIENT")) == 0)
+ this->activation_ = ImplementationRepository::PER_CLIENT;
+ else if (ACE_OS::strcasecmp (get_opts.opt_arg (), ACE_TEXT("AUTO_START")) == 0)
+ this->activation_ = ImplementationRepository::AUTO_START;
+ else
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Unknown Activation Mode <%s>.\n",
+ get_opts.opt_arg ()),
+ -1);
+ break;
+ case 'r':
+ case 'R': // startup/ping Retry Count
{
- case 'c': // Command line arguments
- this->set_command_line_ = true;
- this->command_line_ = get_opts.opt_arg ();
- break;
- case 'e': // set environment variables
- this->set_environment_vars_ = true;
- this->addenv( get_opts.opt_arg () );
- break;
- case 'w': // Working Directory
- this->set_working_dir_ = true;
- this->working_dir_ = get_opts.opt_arg ();
- break;
- case 'a': // Activation Mode
- this->set_activation_ = true;
- if (ACE_OS::strcasecmp (get_opts.opt_arg (), "NORMAL") == 0)
- this->activation_ = ImplementationRepository::NORMAL;
- else if (ACE_OS::strcasecmp (get_opts.opt_arg (), "MANUAL") == 0)
- this->activation_ = ImplementationRepository::MANUAL;
- else if (ACE_OS::strcasecmp (get_opts.opt_arg (), "PER_CLIENT") == 0)
- this->activation_ = ImplementationRepository::PER_CLIENT;
- else if (ACE_OS::strcasecmp (get_opts.opt_arg (), "AUTO_START") == 0)
- this->activation_ = ImplementationRepository::AUTO_START;
- else
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unknown Activation Mode <%s>.\n",
- get_opts.opt_arg ()),
- -1);
- break;
- case 'r':
- case 'R': // startup/ping Retry Count
- {
- this->set_retry_count_ = true;
- int rc = ACE_OS::atoi(get_opts.optarg);
- if (rc > 0)
- this->retry_count_ = rc;
- }
- break;
- case 'l': /// hostname of the activator
- this->activator_ = get_opts.optarg;
- this->set_activator_ = true;
- break;
- case 'h': // display help
- this->print_usage ();
- return -1;
- default:
- ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
- this->print_usage ();
- return -1;
+ this->set_retry_count_ = true;
+ int rc = ACE_OS::atoi(get_opts.optarg);
+ if (rc > 0)
+ this->retry_count_ = rc;
}
- }
+ break;
+ case 'l': /// hostname of the activator
+ this->activator_.set (ACE_TEXT_TO_CHAR_IN (get_opts.optarg));
+ this->set_activator_ = true;
+ break;
+ case 'h': // display help
+ this->print_usage ();
+ return -1;
+ default:
+ ACE_ERROR((LM_ERROR, "ERROR : Unknown option '%c'\n", (char) c));
+ this->print_usage ();
+ return -1;
+ }
+
return 0;
}
@@ -700,34 +693,34 @@ TAO_IMR_Op_Activate::run (void)
ACE_ASSERT(! CORBA::is_nil(imr_));
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- this->imr_->activate_server (this->server_name_.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_DEBUG ((LM_DEBUG,
- "Successfully Activated server <%s>\n",
- this->server_name_.c_str ()));
- }
+ {
+ this->imr_->activate_server (this->server_name_.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ ACE_DEBUG ((LM_DEBUG,
+ "Successfully Activated server <%s>\n",
+ this->server_name_.c_str ()));
+ }
ACE_CATCH (ImplementationRepository::CannotActivate, ex)
- {
- ACE_ERROR ((LM_ERROR, "Cannot activate server <%s>, reason: <%s>\n",
- this->server_name_.c_str (),
- ex.reason.in ()));
- return TAO_IMR_Op::CANNOT_ACTIVATE;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "Cannot activate server <%s>, reason: <%s>\n",
+ this->server_name_.c_str (),
+ ex.reason.in ()));
+ return TAO_IMR_Op::CANNOT_ACTIVATE;
+ }
ACE_CATCH (ImplementationRepository::NotFound, ex)
- {
- ACE_ERROR ((LM_ERROR, "Could not find server <%s>.\n", this->server_name_.c_str ()));
- return TAO_IMR_Op::NOT_FOUND;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "Could not find server <%s>.\n", this->server_name_.c_str ()));
+ return TAO_IMR_Op::NOT_FOUND;
+ }
ACE_CATCH (PortableServer::ForwardRequest, ex)
- {
- ACE_RE_THROW;
- }
+ {
+ ACE_RE_THROW;
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Activating Server");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Activating Server");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -736,43 +729,43 @@ TAO_IMR_Op_Activate::run (void)
int
TAO_IMR_Op_Autostart::run (void)
{
- ACE_ASSERT(! CORBA::is_nil (imr_));
+ ACE_ASSERT(! CORBA::is_nil(imr_));
ImplementationRepository::ServerInformationList_var server_list;
ImplementationRepository::ServerInformationIterator_var server_iter;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- this->imr_->list (0,
- server_list,
- server_iter
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ this->imr_->list (0,
+ server_list,
+ server_iter
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- ACE_ASSERT(CORBA::is_nil (server_iter.in ()));
-
- CORBA::ULong len = server_list->length ();
- for (CORBA::ULong i = 0; i < len; ++i)
- {
- ACE_TRY_EX (inside)
- {
- this->imr_->activate_server (server_list[i].server.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (inside);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, server_list[i].server.in ());
- // Ignore exception
- }
- ACE_ENDTRY;
- }
- }
- ACE_CATCHANY
+ ACE_ASSERT(CORBA::is_nil(server_iter.in()));
+
+ CORBA::ULong len = server_list->length ();
+ for (CORBA::ULong i = 0; i < len; ++i)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "autostart");
- return TAO_IMR_Op::UNKNOWN;
+ ACE_TRY_EX (inside)
+ {
+ this->imr_->activate_server(server_list[i].server.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK_EX (inside);
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, server_list[i].server.in ());
+ // Ignore exception
+ }
+ ACE_ENDTRY;
}
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "autostart");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -781,79 +774,79 @@ TAO_IMR_Op_Autostart::run (void)
int
TAO_IMR_Op_IOR::run (void)
{
- ACE_ASSERT (! CORBA::is_nil(imr_));
+ ACE_ASSERT(! CORBA::is_nil(imr_));
// Create a corbaloc string
// Todo : Most of this logic duplicates that in the POA.cpp
ACE_TRY_NEW_ENV
+ {
+ if (CORBA::is_nil (this->imr_)
+ || !this->imr_->_stubobj ()
+ || !this->imr_->_stubobj ()->profile_in_use ())
{
- if (CORBA::is_nil (this->imr_)
- || !this->imr_->_stubobj ()
- || !this->imr_->_stubobj ()->profile_in_use ())
- {
- ACE_ERROR_RETURN ((
- LM_ERROR,
- ACE_TEXT ("Invalid ImR IOR.\n")
- ), -1);
- }
+ ACE_ERROR_RETURN ((
+ LM_ERROR,
+ ACE_TEXT ("Invalid ImR IOR.\n")
+ ), -1);
+ }
- CORBA::String_var imr_str =
- this->imr_->_stubobj ()->
- profile_in_use ()->to_string (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::String_var imr_str =
+ this->imr_->_stubobj ()->
+ profile_in_use ()->to_string (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // Search for "corbaloc:" alone, without the protocol. This code
- // should be protocol neutral.
- const char corbaloc[] = "corbaloc:";
- char *pos = ACE_OS::strstr (imr_str.inout (), corbaloc);
+ // Search for "corbaloc:" alone, without the protocol. This code
+ // should be protocol neutral.
+ const char corbaloc[] = "corbaloc:";
+ char *pos = ACE_OS::strstr (imr_str.inout (), corbaloc);
- if (pos == 0)
+ if (pos == 0)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR, "Could not parse IMR IOR.\n"), -1);
+ }
+ else
+ {
+ pos = ACE_OS::strchr (pos + sizeof (corbaloc), ':');
+ pos = ACE_OS::strchr (pos + 1,
+ this->imr_->_stubobj ()->profile_in_use ()->object_key_delimiter ());
+
+ if (pos)
{
- ACE_ERROR_RETURN ((LM_ERROR, "Could not parse IMR IOR.\n"), -1);
+ *(pos + 1) = 0; // Crop the string
}
else
{
- pos = ACE_OS::strchr (pos + sizeof (corbaloc), ':');
- pos = ACE_OS::strchr (pos + 1,
- this->imr_->_stubobj ()->profile_in_use ()->object_key_delimiter ());
-
- if (pos)
- {
- *(pos + 1) = 0; // Crop the string
- }
- else
- {
- ACE_ERROR_RETURN ((LM_ERROR, "Could not parse IMR IOR.\n"), -1);
- }
+ ACE_ERROR_RETURN ((LM_ERROR, "Could not parse IMR IOR.\n"), -1);
}
- ACE_CString ior (imr_str.in ());
+ }
+ ACE_CString ior (imr_str.in ());
- // Add the key
- ior += this->server_name_;
+ // Add the key
+ ior += this->server_name_;
- ACE_DEBUG ((LM_DEBUG, "%s\n", ior.c_str ()));
+ ACE_DEBUG ((LM_DEBUG, "%s\n", ior.c_str ()));
- if (this->filename_.length () > 0)
+ if (this->filename_.length () > 0)
+ {
+ FILE *file = ACE_OS::fopen (this->filename_.c_str (), ACE_TEXT("w"));
+
+ if (file == 0)
{
- FILE *file = ACE_OS::fopen (this->filename_.c_str (), "w");
-
- if (file == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Error: Unable to open %s for writing: %p\n",
- this->filename_.c_str ()),
- -1);
- }
-
- ACE_OS::fprintf (file, "%s", ior.c_str ());
- ACE_OS::fclose (file);
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Error: Unable to open %s for writing: %p\n",
+ this->filename_.c_str ()),
+ -1);
}
+
+ ACE_OS::fprintf (file, "%s", ior.c_str ());
+ ACE_OS::fclose (file);
}
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "IOR");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "IOR");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -862,57 +855,57 @@ TAO_IMR_Op_IOR::run (void)
int
TAO_IMR_Op_List::run (void)
{
- ACE_ASSERT (! CORBA::is_nil(imr_));
+ ACE_ASSERT(! CORBA::is_nil(imr_));
ImplementationRepository::ServerInformationList_var server_list;
ImplementationRepository::ServerInformationIterator_var server_iter;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
+ {
+ // If there is a server name, list only that server. Otherwise, look
+ // at all of them.
+ if (this->server_name_.length () == 0)
{
- // If there is a server name, list only that server. Otherwise, look
- // at all of them.
- if (this->server_name_.length () == 0)
- {
- this->imr_->list (0,
- server_list.out(),
- server_iter.out()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (server_list->length() == 0)
- {
- ACE_DEBUG((LM_DEBUG, "No servers found.\n"));
- return TAO_IMR_Op::NORMAL;
- }
-
- for (CORBA::ULong i = 0; i < server_list->length (); i++)
- this->display_server_information (server_list[i]);
-
- ACE_ASSERT (CORBA::is_nil (server_iter.in ()));
- }
- else
- {
- ImplementationRepository::ServerInformation_var si;
+ this->imr_->list (0,
+ server_list.out(),
+ server_iter.out()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->imr_->find (this->server_name_.c_str (), si ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ if (server_list->length() == 0)
+ {
+ ACE_DEBUG((LM_DEBUG, "No servers found.\n"));
+ return TAO_IMR_Op::NORMAL;
+ }
- this->verbose_server_information_ = 1;
+ for (CORBA::ULong i = 0; i < server_list->length (); i++)
+ this->display_server_information (server_list[i]);
- this->display_server_information (si.in ());
- }
+ ACE_ASSERT (CORBA::is_nil (server_iter.in ()));
}
- ACE_CATCH (ImplementationRepository::NotFound, ex)
+ else
{
- ACE_ERROR ((LM_ERROR, "Could not find server <%s>.\n", this->server_name_.c_str ()));
- return TAO_IMR_Op::NOT_FOUND;
+ ImplementationRepository::ServerInformation_var si;
+
+ this->imr_->find (this->server_name_.c_str (), si ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ this->verbose_server_information_ = 1;
+
+ this->display_server_information (si.in ());
}
+ }
+ ACE_CATCH (ImplementationRepository::NotFound, ex)
+ {
+ ACE_ERROR ((LM_ERROR, "Could not find server <%s>.\n", this->server_name_.c_str ()));
+ return TAO_IMR_Op::NOT_FOUND;
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "List");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "List");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -921,33 +914,33 @@ TAO_IMR_Op_List::run (void)
int
TAO_IMR_Op_Remove::run (void)
{
- ACE_ASSERT (! CORBA::is_nil(imr_));
+ ACE_ASSERT(! CORBA::is_nil(imr_));
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- this->imr_->remove_server (this->server_name_.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ this->imr_->remove_server (this->server_name_.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- ACE_DEBUG ((LM_DEBUG, "Successfully removed server <%s>\n",
- this->server_name_.c_str ()));
- }
+ ACE_DEBUG ((LM_DEBUG, "Successfully removed server <%s>\n",
+ this->server_name_.c_str ()));
+ }
ACE_CATCH (ImplementationRepository::NotFound, ex)
- {
- ACE_ERROR ((LM_ERROR, "Could not find server <%s>.\n",
- this->server_name_.c_str ()));
- return TAO_IMR_Op::NOT_FOUND;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "Could not find server <%s>.\n",
+ this->server_name_.c_str ()));
+ return TAO_IMR_Op::NOT_FOUND;
+ }
ACE_CATCH (CORBA::NO_PERMISSION, ex)
- {
- ACE_ERROR ((LM_ERROR, "No Permission: ImplRepo is in Locked mode\n"));
- return TAO_IMR_Op::NO_PERMISSION;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "No Permission: ImplRepo is in Locked mode\n"));
+ return TAO_IMR_Op::NO_PERMISSION;
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Removing Server");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Removing Server");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -956,32 +949,32 @@ TAO_IMR_Op_Remove::run (void)
int
TAO_IMR_Op_Shutdown::run (void)
{
- ACE_ASSERT (! CORBA::is_nil(imr_));
+ ACE_ASSERT(! CORBA::is_nil(imr_));
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- this->imr_->shutdown_server (this->server_name_.c_str () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ this->imr_->shutdown_server (this->server_name_.c_str () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- ACE_DEBUG ((LM_DEBUG, "Successfully shut down server <%s>\n",
- this->server_name_.c_str ()));
- }
+ ACE_DEBUG ((LM_DEBUG, "Successfully shut down server <%s>\n",
+ this->server_name_.c_str ()));
+ }
ACE_CATCH (ImplementationRepository::NotFound, ex)
- {
- ACE_ERROR ((LM_ERROR, "Server <%s> already shut down.\n", this->server_name_.c_str ()));
- return TAO_IMR_Op::NOT_FOUND;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "Server <%s> already shut down.\n", this->server_name_.c_str ()));
+ return TAO_IMR_Op::NOT_FOUND;
+ }
ACE_CATCH(CORBA::TIMEOUT, ex)
- {
- ACE_DEBUG ((LM_DEBUG, "Timeout waiting for <%s> to shutdown.\n",
- this->server_name_.c_str ()));
- }
+ {
+ ACE_DEBUG ((LM_DEBUG, "Timeout waiting for <%s> to shutdown.\n",
+ this->server_name_.c_str ()));
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Shutting Down Server");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Shutting Down Server");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -994,22 +987,22 @@ TAO_IMR_Op_ShutdownRepo::run (void)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- bool servers = false; // not implemented yet, if ever
- this->imr_->shutdown (activators_, servers ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ bool servers = false; // not implemented yet, if ever
+ this->imr_->shutdown(activators_, servers ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- ACE_DEBUG ((LM_DEBUG, "ImR shutdown initiated.\n"));
- }
+ ACE_DEBUG ((LM_DEBUG, "ImR shutdown initiated.\n"));
+ }
ACE_CATCH(CORBA::TIMEOUT, ex)
- {
- ACE_DEBUG ((LM_DEBUG, "Timeout waiting for ImR shutdown.\n"));
- }
+ {
+ ACE_DEBUG ((LM_DEBUG, "Timeout waiting for ImR shutdown.\n"));
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Shutting Down ImR");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Shutting Down ImR");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
@@ -1018,7 +1011,7 @@ TAO_IMR_Op_ShutdownRepo::run (void)
int
TAO_IMR_Op_Register::run (void)
{
- ACE_ASSERT (! CORBA::is_nil(imr_));
+ ACE_ASSERT(! CORBA::is_nil(imr_));
ImplementationRepository::ServerInformation_var server_information;
ImplementationRepository::StartupOptions local;
@@ -1026,73 +1019,67 @@ TAO_IMR_Op_Register::run (void)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
+ {
+ this->imr_->find(this->server_name_.c_str (),
+ server_information.out() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (server_name_ == server_information->server.in())
{
- this->imr_->find(this->server_name_.c_str (),
- server_information.out() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ if (is_add_)
+ {
+ ACE_DEBUG((LM_DEBUG, "Server <%s> already registered.\n", this->server_name_.c_str()));
+ return ALREADY_REGISTERED;
+ }
+ options = &server_information->startup;
+ }
+ else
+ {
+ is_add_ = true;
+ options = &local;
+ }
- if (server_name_ == server_information->server.in())
- {
- if (is_add_)
- {
- ACE_DEBUG((LM_DEBUG, "Server <%s> already registered.\n", this->server_name_.c_str ()));
- return ALREADY_REGISTERED;
- }
- options = &server_information->startup;
- }
- else // not found
- {
- if (!is_add_)
- {
- ACE_DEBUG((LM_DEBUG, "Adding Server <%s> on update command.\n", this->server_name_.c_str ()));
- is_add_ = true;
- }
- options = &local;
- }
-
- if (this->set_command_line_)
- options->command_line = CORBA::string_dup (this->command_line_.c_str ());
-
- if (this->set_environment_vars_)
- options->environment = this->environment_vars_;
-
- if (this->set_working_dir_)
- options->working_directory = CORBA::string_dup (this->working_dir_.c_str ());
-
- if (this->set_activation_ || is_add_)
- options->activation = this->activation_;
-
- if (this->set_retry_count_ || is_add_)
- options->start_limit = this->retry_count_ + 1;
-
- if (this->set_activator_)
- options->activator = CORBA::string_dup(this->activator_.c_str ());
- // If the command line is set, we must have an activator
- else if (this->set_command_line_ &&
- (options->activator.in () == 0 || *options->activator.in () == 0))
- {
- char host_name[MAXHOSTNAMELEN + 1];
- ACE_OS::hostname (host_name, MAXHOSTNAMELEN);
- options->activator = CORBA::string_dup (host_name);
- ACE_DEBUG ((LM_DEBUG, "Updating Server <%s> with default activator of <%s>.\n",
- this->server_name_.c_str (), options->activator.in ()));
- }
-
- this->imr_->add_or_update_server (this->server_name_.c_str (), *options ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ if (this->set_command_line_)
+ options->command_line = CORBA::string_dup (this->command_line_.c_str ());
+
+ if (this->set_environment_vars_)
+ options->environment = this->environment_vars_;
+
+ if (this->set_working_dir_)
+ options->working_directory = CORBA::string_dup (this->working_dir_.c_str ());
+
+ if (this->set_activation_ || is_add_)
+ options->activation = this->activation_;
- ACE_DEBUG((LM_DEBUG, "Successfully registered <%s>.\n", this->server_name_.c_str ()));
+ if (this->set_retry_count_ || is_add_)
+ options->start_limit = this->retry_count_ + 1;
+
+ if (this->set_activator_)
+ {
+ options->activator = CORBA::string_dup(this->activator_.c_str());
+ }
+ else if (is_add_)
+ {
+ char host_name[MAXHOSTNAMELEN + 1];
+ ACE_OS::hostname (host_name, MAXHOSTNAMELEN);
+ options->activator = CORBA::string_dup (host_name);
}
+
+ this->imr_->add_or_update_server (this->server_name_.c_str (), *options ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ ACE_DEBUG((LM_DEBUG, "Successfully registered <%s>.\n", this->server_name_.c_str ()));
+ }
ACE_CATCH (CORBA::NO_PERMISSION, ex)
- {
- ACE_ERROR ((LM_ERROR, "No Permission: ImplRepo is in Locked mode\n"));
- return TAO_IMR_Op::NO_PERMISSION;
- }
+ {
+ ACE_ERROR ((LM_ERROR, "No Permission: ImplRepo is in Locked mode\n"));
+ return TAO_IMR_Op::NO_PERMISSION;
+ }
ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Updating server");
- return TAO_IMR_Op::UNKNOWN;
- }
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Updating server");
+ return TAO_IMR_Op::UNKNOWN;
+ }
ACE_ENDTRY;
return TAO_IMR_Op::NORMAL;
diff --git a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.h b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.h
index df728e7002e..ede2567bc5c 100644
--- a/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.h
+++ b/TAO/orbsvcs/ImplRepo_Service/tao_imr_i.h
@@ -42,20 +42,14 @@ public:
int run (void);
/// Initialize the client communication endpoint with server.
- int init (int argc, char **argv);
+ int init (int argc, ACE_TCHAR **argv);
private:
/// Print out information about all operations.
void print_usage (void);
/// Parses the arguments passed on the command line.
- int parse_args (void);
-
- /// # of arguments on the command line.
- int argc_;
-
- /// Arguments from command line.
- ACE_TCHAR **argv_;
+ int parse_args (int argc, ACE_TCHAR **argv);
/// Remember our orb.
CORBA::ORB_var orb_;
diff --git a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp b/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp
index 3e2270c5442..4e095a93a6c 100644
--- a/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp
+++ b/TAO/orbsvcs/LifeCycle_Service/Criteria_Evaluator.cpp
@@ -73,7 +73,7 @@ Criteria_Evaluator::getCriteriaMember (const char *member_name)
i < criteria_.length();
i++)
if (ACE_OS::strcmp (member_name,
- criteria_[i].name) == 0)
+ criteria_[i].name.in()) == 0)
{
CORBA::Any_ptr value_ptr;
diff --git a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.cpp b/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.cpp
index 0a3c9a68cf8..0ce00f92d5e 100644
--- a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.cpp
+++ b/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.cpp
@@ -88,7 +88,7 @@ Life_Cycle_Service_Server::init (int argc,
ACE_CHECK_RETURN (-1);
if (this->debug_level_ >= 2)
- ACE_DEBUG ((LM_DEBUG, "LifeCycle_Service: IOR is: <%s>\n", ACE_TEXT_CHAR_TO_TCHAR(str.in ())));
+ ACE_DEBUG ((LM_DEBUG, "LifeCycle_Service: IOR is: <%s>\n", ACE_TEXT_TO_TCHAR_IN(str.in ())));
// Register the LifeCycle Service with the Naming Service.
ACE_TRY
@@ -166,7 +166,7 @@ u_int
Life_Cycle_Service_Server::parse_args (int argc,
ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("?d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("?d:"));
int opt;
int exit_code = 0;
diff --git a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.mpc b/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.mpc
index 6c8727c5070..06eccfc1104 100644
--- a/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.mpc
+++ b/TAO/orbsvcs/LifeCycle_Service/LifeCycle_Service.mpc
@@ -1,6 +1,6 @@
// -*- MPC -*-
// $Id$
-project : orbsvcsexe, lifecycle, naming, trading_serv, minimum_corba, utils {
+project : orbsvcsexe, core, lifecycle, naming, trading_serv, minimum_corba, utils {
exename = LifeCycle_Service
}
diff --git a/TAO/orbsvcs/LifeCycle_Service/Makefile.am b/TAO/orbsvcs/LifeCycle_Service/Makefile.am
index 1a997b187d7..8d7c3fa3c49 100644
--- a/TAO/orbsvcs/LifeCycle_Service/Makefile.am
+++ b/TAO/orbsvcs/LifeCycle_Service/Makefile.am
@@ -6,7 +6,7 @@
## this file will be lost the next time it is generated.
##
## MPC Command:
-## ../bin/mwc.pl -type automake -noreldefs TAO.mwc
+## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
ACE_BUILDDIR = $(top_builddir)/..
ACE_ROOT = $(top_srcdir)/..
@@ -18,7 +18,7 @@ TAO_ROOT = $(top_srcdir)
if !BUILD_MINIMUM_CORBA
-noinst_PROGRAMS = LifeCycle_Service
+bin_PROGRAMS = LifeCycle_Service
LifeCycle_Service_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -43,7 +43,6 @@ LifeCycle_Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Skel.la \
diff --git a/TAO/orbsvcs/LoadBalancer/LoadManager.cpp b/TAO/orbsvcs/LoadBalancer/LoadManager.cpp
index fb4ab4209cb..7b6b3ebe613 100644
--- a/TAO/orbsvcs/LoadBalancer/LoadManager.cpp
+++ b/TAO/orbsvcs/LoadBalancer/LoadManager.cpp
@@ -10,6 +10,8 @@
#include "tao/IORTable/IORTable.h"
+#include "ace/Argv_Type_Converter.h"
+
#if defined (linux) && defined (ACE_HAS_THREADS)
# include "ace/Signal.h"
#endif /* linux && ACE_HAS_THREADS */
@@ -20,7 +22,7 @@ ACE_RCSID (LoadBalancer,
"$Id$")
-static const char * lm_ior_file = "lm.ior";
+static ACE_CString lm_ior_file ("lm.ior");
void
usage (const ACE_TCHAR * cmd)
@@ -43,7 +45,7 @@ parse_args (int argc,
int & default_strategy
ACE_ENV_ARG_DECL)
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT ("o:s:h"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT ("o:s:h"));
int c = 0;
@@ -52,18 +54,18 @@ parse_args (int argc,
switch (c)
{
case 'o':
- ::lm_ior_file = get_opts.opt_arg ();
+ ::lm_ior_file.set (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg ()));
break;
case 's':
if (ACE_OS::strcasecmp (get_opts.opt_arg (),
- "RoundRobin") == 0)
+ ACE_TEXT("RoundRobin")) == 0)
default_strategy = 0;
else if (ACE_OS::strcasecmp (get_opts.opt_arg (),
- "Random") == 0)
+ ACE_TEXT("Random")) == 0)
default_strategy = 1;
else if (ACE_OS::strcasecmp (get_opts.opt_arg (),
- "LeastLoaded") == 0)
+ ACE_TEXT("LeastLoaded")) == 0)
default_strategy = 2;
else
ACE_DEBUG ((LM_DEBUG,
@@ -120,13 +122,15 @@ TAO_LB_run_load_manager (void * orb_arg)
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// The usual server side boilerplate code.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -155,8 +159,8 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
int default_strategy = 1;
// Check the non-ORB arguments.
- ::parse_args (argc,
- argv,
+ ::parse_args (convert.get_argc(),
+ convert.get_TCHAR_argv(),
default_strategy
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -235,7 +239,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
table->bind ("LoadManager", str.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE * lm_ior = ACE_OS::fopen (lm_ior_file, "w");
+ FILE * lm_ior = ACE_OS::fopen (lm_ior_file.fast_rep(), ACE_TEXT("w"));
ACE_OS::fprintf (lm_ior, "%s", str.in ());
ACE_OS::fclose (lm_ior);
diff --git a/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp b/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp
index b0bb0a36701..9b159184cc4 100644
--- a/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp
+++ b/TAO/orbsvcs/LoadBalancer/LoadMonitor.cpp
@@ -10,6 +10,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_main.h"
#include "ace/OS_NS_strings.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (LoadBalancer,
@@ -17,11 +18,11 @@ ACE_RCSID (LoadBalancer,
"$Id$")
-static const char * location_id = 0;
-static const char * location_kind = 0;
-static const char * mtype = "CPU";
-static const char * mstyle = "PUSH";
-static const char * custom_monitor_ior = 0;
+static const ACE_TCHAR * location_id = 0;
+static const ACE_TCHAR * location_kind = 0;
+static const ACE_TCHAR * mtype = ACE_TEXT("CPU");
+static const ACE_TCHAR * mstyle = ACE_TEXT("PUSH");
+static const ACE_TCHAR * custom_monitor_ior = 0;
// For the sake of consistency, make default push monitoring interval
// the same as the pull monitoring interval.
@@ -51,10 +52,10 @@ parse_args (int argc,
ACE_TCHAR *argv[]
ACE_ENV_ARG_DECL)
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT ("l:k:t:s:i:m:h"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT ("l:k:t:s:i:m:h"));
int c = 0;
- const char * s;
+ const ACE_TCHAR * s;
while ((c = get_opts ()) != -1)
{
@@ -149,7 +150,7 @@ get_load_monitor (CORBA::ORB_ptr orb,
if (::custom_monitor_ior != 0)
{
CORBA::Object_var obj =
- orb->string_to_object (::custom_monitor_ior
+ orb->string_to_object (ACE_TEXT_TO_CHAR_IN(::custom_monitor_ior)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (CosLoadBalancing::LoadMonitor::_nil ());
@@ -167,12 +168,13 @@ get_load_monitor (CORBA::ORB_ptr orb,
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (CosLoadBalancing::LoadMonitor::_nil ());
- if (ACE_OS::strcasecmp (::mtype, "CPU") == 0)
+ if (ACE_OS::strcasecmp (::mtype, ACE_TEXT("CPU")) == 0)
{
TAO_LB_CPU_Load_Average_Monitor * monitor = 0;
ACE_NEW_THROW_EX (monitor,
- TAO_LB_CPU_Load_Average_Monitor (::location_id,
- ::location_kind),
+ TAO_LB_CPU_Load_Average_Monitor (
+ ACE_TEXT_TO_CHAR_IN(::location_id),
+ ACE_TEXT_TO_CHAR_IN(::location_kind)),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CosLoadBalancing::LoadMonitor::_nil ());
@@ -181,9 +183,9 @@ get_load_monitor (CORBA::ORB_ptr orb,
return monitor->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
}
- else if (ACE_OS::strcasecmp (::mtype, "Disk") == 0
- || ACE_OS::strcasecmp (::mtype, "Memory") == 0
- || ACE_OS::strcasecmp (::mtype, "Network") == 0)
+ else if (ACE_OS::strcasecmp (::mtype, ACE_TEXT("Disk")) == 0
+ || ACE_OS::strcasecmp (::mtype, ACE_TEXT("Memory")) == 0
+ || ACE_OS::strcasecmp (::mtype, ACE_TEXT("Network")) == 0)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("ERROR: \"%s\" load monitor currently ")
@@ -214,7 +216,7 @@ register_load_monitor (CosLoadBalancing::LoadManager_ptr manager,
long & timer_id
ACE_ENV_ARG_DECL)
{
- if (ACE_OS::strcasecmp (::mstyle, "PULL") == 0)
+ if (ACE_OS::strcasecmp (::mstyle, ACE_TEXT("PULL")) == 0)
{
PortableGroup::Location_var location =
monitor->the_location (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -225,7 +227,7 @@ register_load_monitor (CosLoadBalancing::LoadManager_ptr manager,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- else if (ACE_OS::strcasecmp (::mstyle, "PUSH") == 0)
+ else if (ACE_OS::strcasecmp (::mstyle, ACE_TEXT("PUSH")) == 0)
{
ACE_Time_Value interval (::push_interval, 0);
ACE_Time_Value restart (::push_interval, 0);
@@ -257,20 +259,22 @@ register_load_monitor (CosLoadBalancing::LoadManager_ptr manager,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// The usual server side boilerplate code.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Check the non-ORB arguments.
- ::parse_args (argc,
- argv
+ ::parse_args (convert.get_argc(),
+ convert.get_TCHAR_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp
index e782bb204f7..3445e36c823 100644
--- a/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp
+++ b/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.cpp
@@ -4,6 +4,7 @@
#include "tao/IORTable/IORTable.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Basic_Logging_Service,
Basic_Logging_Service,
@@ -12,8 +13,6 @@ ACE_RCSID (Basic_Logging_Service,
Basic_Logging_Service::Basic_Logging_Service (void)
: service_name_ ("BasicLogFactory"),
- ior_file_name_ (0),
- pid_file_name_ (0),
bind_to_naming_service_ (1),
nthreads_ (0)
{
@@ -26,7 +25,7 @@ Basic_Logging_Service::~Basic_Logging_Service (void)
}
void
-Basic_Logging_Service::init_ORB (int& argc, char *argv []
+Basic_Logging_Service::init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
@@ -54,9 +53,9 @@ Basic_Logging_Service::init_ORB (int& argc, char *argv []
}
int
-Basic_Logging_Service::parse_args (int argc, char *argv[])
+Basic_Logging_Service::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:o:p:t:x"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:o:p:t:x"));
int opt;
while ((opt = get_opt ()) != EOF)
@@ -64,15 +63,15 @@ Basic_Logging_Service::parse_args (int argc, char *argv[])
switch (opt)
{
case 'n':
- service_name_ = get_opt.opt_arg();
+ service_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 'o':
- ior_file_name_ = get_opt.opt_arg();
+ ior_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 'p':
- pid_file_name_ = get_opt.opt_arg();
+ pid_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 't':
@@ -102,14 +101,16 @@ Basic_Logging_Service::parse_args (int argc, char *argv[])
}
int
-Basic_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
+Basic_Logging_Service::init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// initalize the ORB.
- this->init_ORB (argc, argv
+ this->init_ORB (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- if (this->parse_args (argc, argv) == -1)
+ if (this->parse_args (convert.get_argc(), convert.get_TCHAR_argv()) == -1)
return -1;
// Activate the basic log factory
@@ -140,13 +141,13 @@ Basic_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_CHECK_RETURN (-1);
}
- if (ior_file_name_ != 0)
+ if (ior_file_name_.length() != 0)
{
- FILE* iorf = ACE_OS::fopen (ior_file_name_, ACE_TEXT("w"));
+ FILE* iorf = ACE_OS::fopen (ior_file_name_.fast_rep(), ACE_TEXT("w"));
if (iorf == 0) {
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
- ior_file_name_),
+ ior_file_name_.c_str()),
-1);
}
@@ -154,9 +155,9 @@ Basic_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_OS::fclose (iorf);
}
- if (pid_file_name_ != 0)
+ if (pid_file_name_.length() != 0)
{
- FILE* pidf = ACE_OS::fopen (pid_file_name_, ACE_TEXT("w"));
+ FILE* pidf = ACE_OS::fopen (pid_file_name_.fast_rep(), ACE_TEXT("w"));
if (pidf != 0)
{
ACE_OS::fprintf (pidf,
@@ -177,7 +178,7 @@ Basic_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
CosNaming::Name name (1);
name.length (1);
- name[0].id = CORBA::string_dup (this->service_name_);
+ name[0].id = CORBA::string_dup (this->service_name_.fast_rep());
this->naming_->rebind (name,
obj.in ()
@@ -264,7 +265,7 @@ Basic_Logging_Service::shutdown (ACE_ENV_SINGLE_ARG_DECL)
// Unbind from the naming service.
CosNaming::Name name (1);
name.length (1);
- name[0].id = CORBA::string_dup (this->service_name_);
+ name[0].id = CORBA::string_dup (this->service_name_.fast_rep());
this->naming_->unbind (name
ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.h b/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.h
index 57066ebf020..077f18aa6ce 100644
--- a/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.h
+++ b/TAO/orbsvcs/Logging_Service/Basic_Logging_Service/Basic_Logging_Service.h
@@ -18,6 +18,7 @@
#define BASIC_LOGGING_SERVICE_H
#include "ace/Task.h"
+#include "ace/SString.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/DsLogAdminC.h"
#include "orbsvcs/Log/BasicLogFactory_i.h"
@@ -39,7 +40,7 @@ class Basic_Logging_Service
virtual ~Basic_Logging_Service (void);
// Destructor.
- int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
+ int init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL);
// Initializes the Telecom Log Service.
// Returns 0 on success, -1 on error.
@@ -52,11 +53,11 @@ class Basic_Logging_Service
// Returns 0 on success, -1 on error.
protected:
- void init_ORB (int& argc, char *argv []
+ void init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL);
// initialize the ORB.
- int parse_args (int argc, char *argv []);
+ int parse_args (int argc, ACE_TCHAR *argv[]);
// Parses the command line arguments.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
@@ -78,13 +79,13 @@ protected:
CosNaming::NamingContext_var naming_;
// A naming context.
- const char* service_name_;
+ ACE_CString service_name_;
// The name we use to bind with the NameService
- const char* ior_file_name_;
+ ACE_CString ior_file_name_;
// The name of the file where we output the factory IOR.
- const char* pid_file_name_;
+ ACE_CString pid_file_name_;
// The name of the file where we output the process id.
int bind_to_naming_service_;
diff --git a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
index be47a102d7c..649fc2e7085 100644
--- a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
+++ b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.cpp
@@ -5,6 +5,7 @@
#include "tao/IORTable/IORTable.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Event_Logging_Service,
Event_Logging_Service,
@@ -13,8 +14,6 @@ ACE_RCSID (Event_Logging_Service,
Event_Logging_Service::Event_Logging_Service (void)
: service_name_ ("EventLogFactory"),
- ior_file_name_ (0),
- pid_file_name_ (0),
bind_to_naming_service_ (1),
nthreads_ (0)
{
@@ -27,7 +26,7 @@ Event_Logging_Service::~Event_Logging_Service (void)
}
void
-Event_Logging_Service::init_ORB (int& argc, char *argv []
+Event_Logging_Service::init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
@@ -55,9 +54,9 @@ Event_Logging_Service::init_ORB (int& argc, char *argv []
}
int
-Event_Logging_Service::parse_args (int argc, char *argv[])
+Event_Logging_Service::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:o:p:t:x"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:o:p:t:x"));
int opt;
while ((opt = get_opt ()) != EOF)
@@ -65,15 +64,15 @@ Event_Logging_Service::parse_args (int argc, char *argv[])
switch (opt)
{
case 'n':
- service_name_ = get_opt.opt_arg();
+ service_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 'o':
- ior_file_name_ = get_opt.opt_arg();
+ ior_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 'p':
- pid_file_name_ = get_opt.opt_arg();
+ pid_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 't':
@@ -103,14 +102,16 @@ Event_Logging_Service::parse_args (int argc, char *argv[])
}
int
-Event_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
+Event_Logging_Service::init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// initalize the ORB.
- this->init_ORB (argc, argv
+ this->init_ORB (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- if (this->parse_args (argc, argv) == -1)
+ if (this->parse_args (convert.get_argc(), convert.get_TCHAR_argv()) == -1)
return -1;
// Activate the event log factory
@@ -145,13 +146,13 @@ Event_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_CHECK_RETURN (-1);
}
- if (ior_file_name_ != 0)
+ if (ior_file_name_.length() != 0)
{
- FILE* iorf = ACE_OS::fopen (ior_file_name_, ACE_TEXT("w"));
+ FILE* iorf = ACE_OS::fopen (ior_file_name_.fast_rep(), ACE_TEXT("w"));
if (iorf == 0) {
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
- ior_file_name_),
+ ior_file_name_.c_str()),
-1);
}
@@ -159,9 +160,9 @@ Event_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_OS::fclose (iorf);
}
- if (pid_file_name_ != 0)
+ if (pid_file_name_.length() != 0)
{
- FILE* pidf = ACE_OS::fopen (pid_file_name_, ACE_TEXT("w"));
+ FILE* pidf = ACE_OS::fopen (pid_file_name_.fast_rep(), ACE_TEXT("w"));
if (pidf != 0)
{
ACE_OS::fprintf (pidf,
@@ -182,7 +183,7 @@ Event_Logging_Service::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
CosNaming::Name name (1);
name.length (1);
- name[0].id = CORBA::string_dup (this->service_name_);
+ name[0].id = CORBA::string_dup (this->service_name_.fast_rep());
this->naming_->rebind (name,
obj.in ()
@@ -269,7 +270,7 @@ Event_Logging_Service::shutdown (ACE_ENV_SINGLE_ARG_DECL)
// Unbind from the naming service.
CosNaming::Name name (1);
name.length (1);
- name[0].id = CORBA::string_dup (this->service_name_);
+ name[0].id = CORBA::string_dup (this->service_name_.fast_rep());
this->naming_->unbind (name
ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h
index de98deb20f9..17c335f7077 100644
--- a/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h
+++ b/TAO/orbsvcs/Logging_Service/Event_Logging_Service/Event_Logging_Service.h
@@ -40,7 +40,7 @@ class Event_Logging_Service
virtual ~Event_Logging_Service (void);
// Destructor.
- int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
+ int init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL);
// Initializes the Telecom Log Service.
// Returns 0 on success, -1 on error.
@@ -53,11 +53,11 @@ class Event_Logging_Service
// Returns 0 on success, -1 on error.
protected:
- void init_ORB (int& argc, char *argv []
+ void init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL);
// initialize the ORB.
- int parse_args (int argc, char *argv []);
+ int parse_args (int argc, ACE_TCHAR *argv[]);
// Parses the command line arguments.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
@@ -79,13 +79,13 @@ protected:
CosNaming::NamingContext_var naming_;
// A naming context.
- const char* service_name_;
+ ACE_CString service_name_;
// The name we use to bind with the NameService
- const char* ior_file_name_;
+ ACE_CString ior_file_name_;
// The name of the file where we output the factory IOR.
- const char* pid_file_name_;
+ ACE_CString pid_file_name_;
// The name of the file where we output the process id.
int bind_to_naming_service_;
diff --git a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp
index fd898bddc31..287201307d5 100644
--- a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp
+++ b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp
@@ -6,6 +6,7 @@
#include "orbsvcs/Notify/Service.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify_Logging_Service,
Notify_Logging_Service,
@@ -14,8 +15,6 @@ ACE_RCSID (Notify_Logging_Service,
Notify_Logging_Service::Notify_Logging_Service (void)
: service_name_ (NOTIFY_KEY),
- ior_file_name_ (0),
- pid_file_name_ (0),
bind_to_naming_service_ (1),
nthreads_ (0)
{
@@ -28,7 +27,7 @@ Notify_Logging_Service::~Notify_Logging_Service (void)
}
int
-Notify_Logging_Service::init_ORB (int& argc, char *argv []
+Notify_Logging_Service::init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
@@ -71,9 +70,9 @@ Notify_Logging_Service::init_ORB (int& argc, char *argv []
}
int
-Notify_Logging_Service::parse_args (int argc, char *argv[])
+Notify_Logging_Service::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:o:p:t::x"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:o:p:t::x"));
int opt;
while ((opt = get_opt ()) != EOF)
@@ -81,15 +80,15 @@ Notify_Logging_Service::parse_args (int argc, char *argv[])
switch (opt)
{
case 'n':
- service_name_ = get_opt.opt_arg();
+ service_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 'o':
- ior_file_name_ = get_opt.opt_arg();
+ ior_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 'p':
- pid_file_name_ = get_opt.opt_arg();
+ pid_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg()));
break;
case 't':
@@ -118,15 +117,17 @@ Notify_Logging_Service::parse_args (int argc, char *argv[])
}
int
-Notify_Logging_Service::init (int argc, char *argv[]
+Notify_Logging_Service::init (int argc, ACE_TCHAR *argv[]
ACE_ENV_ARG_DECL)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// initalize the ORB.
- if (this->init_ORB (argc, argv
+ if (this->init_ORB (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) != 0)
return -1;
- if (this->parse_args (argc, argv) == -1)
+ if (this->parse_args (convert.get_argc(), convert.get_TCHAR_argv()) == -1)
return -1;
this->notify_service_->init_service (this->orb_.in () ACE_ENV_ARG_PARAMETER);
@@ -167,14 +168,14 @@ Notify_Logging_Service::init (int argc, char *argv[]
ACE_CHECK_RETURN (-1);
}
- if (ior_file_name_ != 0)
+ if (ior_file_name_.length() != 0)
{
- FILE* iorf = ACE_OS::fopen (ior_file_name_, ACE_TEXT("w"));
+ FILE* iorf = ACE_OS::fopen (ior_file_name_.fast_rep(), ACE_TEXT("w"));
if (iorf == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
- ior_file_name_),
+ ior_file_name_.c_str()),
-1);
}
@@ -182,9 +183,9 @@ Notify_Logging_Service::init (int argc, char *argv[]
ACE_OS::fclose (iorf);
}
- if (pid_file_name_ != 0)
+ if (pid_file_name_.length() != 0)
{
- FILE* pidf = ACE_OS::fopen (pid_file_name_, ACE_TEXT("w"));
+ FILE* pidf = ACE_OS::fopen (pid_file_name_.fast_rep(), ACE_TEXT("w"));
if (pidf != 0)
{
ACE_OS::fprintf (pidf,
@@ -205,7 +206,7 @@ Notify_Logging_Service::init (int argc, char *argv[]
CosNaming::Name name (1);
name.length (1);
- name[0].id = CORBA::string_dup (this->service_name_);
+ name[0].id = CORBA::string_dup (this->service_name_.fast_rep());
ACE_CHECK_RETURN (-1);
this->naming_->rebind (name,
@@ -292,7 +293,7 @@ Notify_Logging_Service::shutdown (ACE_ENV_SINGLE_ARG_DECL)
{
CosNaming::Name name (1);
name.length (1);
- name[0].id = CORBA::string_dup (this->service_name_);
+ name[0].id = CORBA::string_dup (this->service_name_.fast_rep());
ACE_CHECK;
this->naming_->unbind (name
diff --git a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.h b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.h
index c6d5f3a459b..59e1631b5ce 100644
--- a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.h
+++ b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.h
@@ -44,7 +44,7 @@ class Notify_Logging_Service
virtual ~Notify_Logging_Service (void);
// Destructor.
- int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
+ int init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL);
// Initializes the Telecom Log Service.
// Returns 0 on success, -1 on error.
@@ -57,11 +57,11 @@ class Notify_Logging_Service
// Returns 0 on success, -1 on error.
protected:
- int init_ORB (int& argc, char *argv []
+ int init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL);
// initialize the ORB.
- int parse_args (int argc, char *argv[]);
+ int parse_args (int argc, ACE_TCHAR *argv[]);
// Parses the command line arguments.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
@@ -89,13 +89,13 @@ protected:
CosNaming::NamingContext_var naming_;
// A naming context.
- const char* service_name_;
+ ACE_CString service_name_;
// The name we use to bind with the NameService
- const char* ior_file_name_;
+ ACE_CString ior_file_name_;
// The name of the file where we output the factory IOR.
- const char* pid_file_name_;
+ ACE_CString pid_file_name_;
// The name of the file where we output the process id.
int bind_to_naming_service_;
diff --git a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am
index 767c0739d69..1e6258a1cff 100644
--- a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am
+++ b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.RTEvent_Logging_Service.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
bin_PROGRAMS = RTEvent_Logging_Service
@@ -34,17 +33,16 @@ RTEvent_Logging_Service_SOURCES = \
RTEvent_Logging_Service.h
RTEvent_Logging_Service_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEventLogAdmin_Serv.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEventLogAdmin.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTSched.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Serv.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_ETCL.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEventLogAdmin_Skel.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin_Skel.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEventLogAdmin.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Serv.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
@@ -52,14 +50,12 @@ RTEvent_Logging_Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin.la \
$(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp
index 02dce835e2e..3eac4191082 100644
--- a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp
+++ b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.cpp
@@ -9,6 +9,7 @@
#include "tao/IORTable/IORTable.h"
#include "ace/OS_main.h"
#include "ace/OS_NS_strings.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (RTEvent_Logging_Service,
RTEvent_Logging_Service,
@@ -28,9 +29,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
RTEvent_Logging_Service::RTEvent_Logging_Service (void)
: sched_impl_ (0),
// ec_impl_ (0),
- service_name_ (0),
- ior_file_name_ (0),
- pid_file_name_ (0),
global_scheduler_ (0),
rtevent_log_factory_name_ ("RTEventLogFactory"),
child_poa_name_ ("RTEventLog_ChildPOA"),
@@ -47,16 +45,18 @@ RTEvent_Logging_Service::~RTEvent_Logging_Service (void)
}
int
-RTEvent_Logging_Service::run (int argc, char* argv[])
+RTEvent_Logging_Service::run (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB.
this->orb_ =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (this->parse_args (argc, argv) == -1)
+ if (this->parse_args (convert.get_argc(), convert.get_TCHAR_argv()) == -1)
return 1;
ACE_NEW_RETURN (factory_servant_,
@@ -220,21 +220,21 @@ RTEvent_Logging_Service::run (int argc, char* argv[])
ACE_CHECK_RETURN (-1);
}
- if (this->ior_file_name_ != 0)
+ if (this->ior_file_name_.length() != 0)
{
- FILE *output_file= ACE_OS::fopen (this->ior_file_name_, "w");
+ FILE *output_file= ACE_OS::fopen (this->ior_file_name_.fast_rep(), ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
- this->ior_file_name_),
+ this->ior_file_name_.c_str()),
1);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
}
- if (this->pid_file_name_ != 0)
+ if (this->pid_file_name_.length() != 0)
{
- FILE *pidf = fopen (this->pid_file_name_, "w");
+ FILE *pidf = fopen (this->pid_file_name_.fast_rep(), "w");
if (pidf != 0)
{
ACE_OS::fprintf (pidf,
@@ -276,12 +276,12 @@ RTEvent_Logging_Service::run (int argc, char* argv[])
}
int
-RTEvent_Logging_Service::parse_args (int argc, char *argv [])
+RTEvent_Logging_Service::parse_args (int argc, ACE_TCHAR *argv[])
{
// default values...
this->service_name_ = "EventService";
- ACE_Get_Opt get_opt (argc, argv, "n:o:p:s:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:o:p:s:"));
int opt;
while ((opt = get_opt ()) != EOF)
@@ -289,15 +289,15 @@ RTEvent_Logging_Service::parse_args (int argc, char *argv [])
switch (opt)
{
case 'n':
- this->service_name_ = get_opt.opt_arg ();
+ this->service_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg ()));
break;
case 'o':
- this->ior_file_name_ = get_opt.opt_arg ();
+ this->ior_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg ()));
break;
case 'p':
- this->pid_file_name_ = get_opt.opt_arg ();
+ this->pid_file_name_.set (ACE_TEXT_TO_CHAR_IN (get_opt.opt_arg ()));
break;
case 's':
@@ -305,11 +305,11 @@ RTEvent_Logging_Service::parse_args (int argc, char *argv [])
// argument, but this is consistent with the EC_Multiple
// test and also allows for a runtime scheduling service.
- if (ACE_OS::strcasecmp (get_opt.opt_arg (), "global") == 0)
+ if (ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("global")) == 0)
{
this->global_scheduler_ = 1;
}
- else if (ACE_OS::strcasecmp (get_opt.opt_arg (), "local") == 0)
+ else if (ACE_OS::strcasecmp (get_opt.opt_arg (), ACE_TEXT("local")) == 0)
{
this->global_scheduler_ = 0;
}
diff --git a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.h b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.h
index 629155423b4..baba42815d3 100644
--- a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.h
+++ b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.h
@@ -17,6 +17,8 @@
#ifndef RTEVENT_LOGGING_SERVICE_H
#define RTEVENT_LOGGING_SERVICE_H
+#include "ace/SString.h"
+
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/RtecSchedulerS.h"
@@ -37,24 +39,24 @@ public:
RTEvent_Logging_Service (void);
virtual ~RTEvent_Logging_Service (void);
- int run (int argc, char* argv[]);
+ int run (int argc, ACE_TCHAR* argv[]);
// Run the event service.
private:
- int parse_args (int argc, char* argv[]);
+ int parse_args (int argc, ACE_TCHAR* argv[]);
// parse the command line args
private:
POA_RtecScheduler::Scheduler *sched_impl_;
// The Scheduler implementation.
- const char* service_name_;
+ ACE_CString service_name_;
// The name we use to bind with the NameService
- const char* ior_file_name_;
+ ACE_CString ior_file_name_;
// The name of the file were we output the Event_Service IOR.
- const char* pid_file_name_;
+ ACE_CString pid_file_name_;
// The name of a file where the process stores its pid
int global_scheduler_;
diff --git a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc
index 1cc973fa4e7..0eea7744c42 100644
--- a/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc
+++ b/TAO/orbsvcs/Logging_Service/RTEvent_Logging_Service/RTEvent_Logging_Service.mpc
@@ -1,5 +1,5 @@
// $Id$
-project: namingexe, iortable, core, rteventlogadmin_serv {
+project: namingexe, iortable, core, rtevent_serv, rteventlogadmin {
exename = RTEvent_Logging_Service
}
diff --git a/TAO/orbsvcs/Mobility_Service/GTP.idl b/TAO/orbsvcs/Mobility_Service/GTP.idl
deleted file mode 100644
index 4f592550a5f..00000000000
--- a/TAO/orbsvcs/Mobility_Service/GTP.idl
+++ /dev/null
@@ -1,2 +0,0 @@
-// $Id$
-//Hello
diff --git a/TAO/orbsvcs/Naming_Service/Makefile.am b/TAO/orbsvcs/Naming_Service/Makefile.am
index 015dd52bd3b..dcc66b40f3c 100644
--- a/TAO/orbsvcs/Naming_Service/Makefile.am
+++ b/TAO/orbsvcs/Naming_Service/Makefile.am
@@ -17,7 +17,7 @@ bin_PROGRAMS =
## Makefile.NT_Naming_Service.am
-if !BUILD_ACE_FOR_TAO
+if BUILD_CORBA_MESSAGING
bin_PROGRAMS += NT_Naming_Service
@@ -51,11 +51,11 @@ NT_Naming_Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
+endif BUILD_CORBA_MESSAGING
## Makefile.Naming_Service.am
-if !BUILD_ACE_FOR_TAO
+if BUILD_CORBA_MESSAGING
bin_PROGRAMS += Naming_Service
@@ -82,13 +82,12 @@ Naming_Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming_Skel.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_ImR_Client.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
+endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/Naming_Service/NT_Naming_Server.cpp b/TAO/orbsvcs/Naming_Service/NT_Naming_Server.cpp
index dc1288420cb..9b117727a8c 100644
--- a/TAO/orbsvcs/Naming_Service/NT_Naming_Server.cpp
+++ b/TAO/orbsvcs/Naming_Service/NT_Naming_Server.cpp
@@ -27,7 +27,7 @@
#include "ace/Log_Msg.h"
int
-main (int, char*[])
+ACE_TMAIN (int, ACE_TCHAR*[])
{
ACE_ERROR ((LM_INFO,
"This program is only supported "
@@ -53,11 +53,11 @@ public:
Options (void);
~Options (void);
- int run (int argc, char *argv[]);
+ int run (int argc, ACE_TCHAR *argv[]);
private:
void parse_args (int argc,
- char *argv[]);
+ ACE_TCHAR *argv[]);
void print_usage_and_die (void);
private:
@@ -112,9 +112,9 @@ Options::print_usage_and_die (void)
}
void
-Options::parse_args (int argc, char *argv[])
+Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "i:rskt:d");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:rskt:d"));
int c;
while ((c = get_opt ()) != -1)
@@ -147,7 +147,7 @@ Options::parse_args (int argc, char *argv[])
default:
// -i can also be given without a value - if so, it defaults
// to defined value.
- if (ACE_OS::strcmp (get_opt.argv ()[get_opt.opt_ind () - 1], "-i") == 0)
+ if (ACE_OS::strcmp (get_opt.argv ()[get_opt.opt_ind () - 1], ACE_TEXT("-i")) == 0)
{
opt_install = 1;
opt_startup = DEFAULT_SERVICE_INIT_STARTUP;
@@ -169,13 +169,13 @@ ConsoleHandler (DWORD /* ctrlType */)
ACE_NT_SERVICE_DEFINE (service,
TAO_NT_Naming_Service,
- "TAO NT Naming Service");
+ ACE_TEXT("TAO NT Naming Service"));
int
-Options::run (int argc, char* argv[])
+Options::run (int argc, ACE_TCHAR* argv[])
{
- SERVICE::instance ()->name ("TAO_NT_Naming_Service",
- "TAO NT Naming Service");
+ SERVICE::instance ()->name (ACE_TEXT("TAO_NT_Naming_Service"),
+ ACE_TEXT("TAO NT Naming Service"));
this->parse_args (argc, argv);
@@ -220,7 +220,7 @@ Options::run (int argc, char* argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
return OPTIONS::instance ()->run (argc, argv);
}
diff --git a/TAO/orbsvcs/Naming_Service/NT_Naming_Service.cpp b/TAO/orbsvcs/Naming_Service/NT_Naming_Service.cpp
index 506d38edb32..1a6a3a83d56 100644
--- a/TAO/orbsvcs/Naming_Service/NT_Naming_Service.cpp
+++ b/TAO/orbsvcs/Naming_Service/NT_Naming_Service.cpp
@@ -11,9 +11,9 @@
#include "ace/ARGV.h"
#define REGISTRY_KEY_ROOT HKEY_LOCAL_MACHINE
-#define TAO_REGISTRY_SUBKEY "SOFTWARE\\ACE\\TAO"
-#define TAO_NAMING_SERVICE_OPTS_NAME "TaoNamingServiceOptions"
-#define TAO_SERVICE_PARAM_COUNT "TaoServiceParameterCount"
+#define TAO_REGISTRY_SUBKEY ACE_TEXT("SOFTWARE\\ACE\\TAO")
+#define TAO_NAMING_SERVICE_OPTS_NAME ACE_TEXT("TaoNamingServiceOptions")
+#define TAO_SERVICE_PARAM_COUNT ACE_TEXT("TaoServiceParameterCount")
AutoFinalizer::AutoFinalizer (TAO_NT_Naming_Service &service)
: service_ (service)
@@ -95,7 +95,7 @@ TAO_NT_Naming_Service::init (int argc,
ACE_TCHAR *argv[])
{
HKEY hkey = 0;
- BYTE buf[ACE_DEFAULT_ARGV_BUFSIZ];
+ ACE_TCHAR buf[ACE_DEFAULT_ARGV_BUFSIZ];
*buf = '\0';
@@ -119,22 +119,22 @@ TAO_NT_Naming_Service::init (int argc,
TAO_NAMING_SERVICE_OPTS_NAME,
NULL,
&type,
- buf,
+ (LPBYTE)buf,
&bufSize);
RegCloseKey (hkey);
// Add options to the args list (if any).
- if (ACE_OS::strlen ((char *) buf) > 0)
+ if (ACE_OS::strlen (buf) > 0)
{
- ACE_ARGV args ((const char*) buf);
+ ACE_ARGV args (buf);
// Allocate the internal args list to be one bigger than the
// args list passed into the function. We use a 'save' list in
// case we use a 'destructive' args list processor - this way we
// maintain the correct argv and argc for memory freeing
// operations in the destructor.
- argv_save_ = (char **) ACE_OS::malloc (sizeof (char *) * (argc + args.argc ()));
+ argv_save_ = (ACE_TCHAR **) ACE_OS::malloc (sizeof (ACE_TCHAR *) * (argc + args.argc ()));
// Copy the values into the internal args buffer.
int i;
diff --git a/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h b/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h
index 7d0ced9acf7..d6275761bdc 100644
--- a/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h
+++ b/TAO/orbsvcs/Naming_Service/NT_Naming_Service.h
@@ -64,8 +64,8 @@ private:
int argc_save_;
// Argument count.
- char **argv_;
- char **argv_save_;
+ ACE_TCHAR **argv_;
+ ACE_TCHAR **argv_save_;
// Argument list.
friend class ACE_Singleton<TAO_NT_Naming_Service, MUTEX>;
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Server.cpp b/TAO/orbsvcs/Naming_Service/Naming_Server.cpp
index 65631eb726e..8b86409fafe 100644
--- a/TAO/orbsvcs/Naming_Service/Naming_Server.cpp
+++ b/TAO/orbsvcs/Naming_Service/Naming_Server.cpp
@@ -6,8 +6,6 @@
#include "orbsvcs/Shutdown_Utilities.h"
#include "tao/debug.h"
-#include "tao/ImR_Client/ImR_Client.h"
-
class Naming_Svc_Shutdown : public Shutdown_Functor
{
public:
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
index 22e055649e3..830063d7b59 100644
--- a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
+++ b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
@@ -70,7 +70,7 @@ int
TAO_Naming_Service::parse_args (int &argc,
ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("-t:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("-t:"));
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.mpc b/TAO/orbsvcs/Naming_Service/Naming_Service.mpc
index ecf246cc003..7a96a9e6d25 100644
--- a/TAO/orbsvcs/Naming_Service/Naming_Service.mpc
+++ b/TAO/orbsvcs/Naming_Service/Naming_Service.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : orbsvcsexe, core, naming_serv, imr_client {
+project : orbsvcsexe, core, naming_serv {
exename = Naming_Service
Source_Files {
Naming_Server.cpp
diff --git a/TAO/orbsvcs/Notify_Service/Makefile.am b/TAO/orbsvcs/Notify_Service/Makefile.am
index cc56fc6e069..2739ad56e5e 100644
--- a/TAO/orbsvcs/Notify_Service/Makefile.am
+++ b/TAO/orbsvcs/Notify_Service/Makefile.am
@@ -17,7 +17,6 @@ bin_PROGRAMS =
## Makefile.NT_Notify_Service.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
bin_PROGRAMS += NT_Notify_Service
@@ -56,7 +55,6 @@ NT_Notify_Service_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.Notify_Service.am
diff --git a/TAO/orbsvcs/Notify_Service/NT_Notify_Server.cpp b/TAO/orbsvcs/Notify_Service/NT_Notify_Server.cpp
index 0b8dfac859c..d7e28eeab37 100644
--- a/TAO/orbsvcs/Notify_Service/NT_Notify_Server.cpp
+++ b/TAO/orbsvcs/Notify_Service/NT_Notify_Server.cpp
@@ -28,7 +28,7 @@
#include "ace/Log_Msg.h"
int
-main (int, char*[])
+ACE_TMAIN (int, ACE_TCHAR*[])
{
ACE_ERROR ((LM_INFO,
"This program is only supported "
@@ -57,10 +57,10 @@ public:
Options (void);
~Options (void);
- int run (int argc, char *argv[]);
+ int run (int argc, ACE_TCHAR *argv[]);
private:
- void parse_args (int argc, char *argv[]);
+ void parse_args (int argc, ACE_TCHAR *argv[]);
void print_usage_and_die (void);
private:
@@ -115,9 +115,9 @@ Options::print_usage_and_die (void)
}
void
-Options::parse_args (int argc, char *argv[])
+Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "i:rskt:d");
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:rskt:d"));
int c;
while ((c = get_opt ()) != -1)
@@ -150,7 +150,7 @@ Options::parse_args (int argc, char *argv[])
default:
// -i can also be given without a value - if so, it defaults
// to defined value.
- if (ACE_OS::strcmp (get_opt.argv_[get_opt.optind-1], "-i") == 0)
+ if (ACE_OS::strcmp (get_opt.argv_[get_opt.optind-1], ACE_TEXT("-i")) == 0)
{
opt_install = 1;
opt_startup = DEFAULT_SERVICE_INIT_STARTUP;
@@ -172,13 +172,13 @@ ConsoleHandler (DWORD /* ctrlType */)
ACE_NT_SERVICE_DEFINE (service,
TAO_NT_Notify_Service,
- "TAO NT Notify Service");
+ ACE_TEXT("TAO NT Notify Service"));
int
-Options::run (int argc, char* argv[])
+Options::run (int argc, ACE_TCHAR* argv[])
{
- SERVICE::instance ()->name ("TAO_NT_Notify_Service",
- "TAO NT Notify Service");
+ SERVICE::instance ()->name (ACE_TEXT("TAO_NT_Notify_Service"),
+ ACE_TEXT("TAO NT Notify Service"));
this->parse_args (argc, argv);
@@ -223,7 +223,7 @@ Options::run (int argc, char* argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
return OPTIONS::instance ()->run (argc, argv);
}
diff --git a/TAO/orbsvcs/Notify_Service/NT_Notify_Service.cpp b/TAO/orbsvcs/Notify_Service/NT_Notify_Service.cpp
index 57cee4c14ed..48ad22436b7 100644
--- a/TAO/orbsvcs/Notify_Service/NT_Notify_Service.cpp
+++ b/TAO/orbsvcs/Notify_Service/NT_Notify_Service.cpp
@@ -11,9 +11,9 @@
#include "ace/Reactor.h"
#define REGISTRY_KEY_ROOT HKEY_LOCAL_MACHINE
-#define TAO_REGISTRY_SUBKEY "SOFTWARE\\ACE\\TAO"
-#define TAO_NOTIFY_SERVICE_OPTS_NAME "TaoNotifyServiceOptions"
-#define TAO_SERVICE_PARAM_COUNT "TaoServiceParameterCount"
+#define TAO_REGISTRY_SUBKEY ACE_TEXT("SOFTWARE\\ACE\\TAO")
+#define TAO_NOTIFY_SERVICE_OPTS_NAME ACE_TEXT("TaoNotifyServiceOptions")
+#define TAO_SERVICE_PARAM_COUNT ACE_TEXT("TaoServiceParameterCount")
TAO_NT_Notify_Service::TAO_NT_Notify_Service (void)
: argc_ (0),
@@ -60,7 +60,7 @@ TAO_NT_Notify_Service::init (int argc,
ACE_TCHAR *argv[])
{
HKEY hkey = 0;
- BYTE buf[ACE_DEFAULT_ARGV_BUFSIZ];
+ ACE_TCHAR buf[ACE_DEFAULT_ARGV_BUFSIZ];
*buf = '\0';
@@ -84,22 +84,22 @@ TAO_NT_Notify_Service::init (int argc,
TAO_NOTIFY_SERVICE_OPTS_NAME,
NULL,
&type,
- buf,
+ (LPBYTE)buf,
&bufSize);
RegCloseKey (hkey);
// Add options to the args list (if any).
- if (ACE_OS::strlen ((char *) buf) > 0)
+ if (ACE_OS::strlen (buf) > 0)
{
- ACE_ARGV args ((const char*) buf);
+ ACE_ARGV args (buf);
// Allocate the internal args list to be one bigger than the
// args list passed into the function. We use a 'save' list in
// case we use a 'destructive' args list processor - this way we
// maintain the correct argv and argc for memory freeing
// operations in the destructor.
- argv_save_ = (char **) ACE_OS::malloc (sizeof (char *) * (argc + args.argc ()));
+ argv_save_ = (ACE_TCHAR **) ACE_OS::malloc (sizeof (ACE_TCHAR *) * (argc + args.argc ()));
// Copy the values into the internal args buffer.
int i;
diff --git a/TAO/orbsvcs/Notify_Service/NT_Notify_Service.h b/TAO/orbsvcs/Notify_Service/NT_Notify_Service.h
index 9ec67e151c0..784e8199bdf 100644
--- a/TAO/orbsvcs/Notify_Service/NT_Notify_Service.h
+++ b/TAO/orbsvcs/Notify_Service/NT_Notify_Service.h
@@ -64,8 +64,8 @@ private:
int argc_save_;
// Argument count.
- char **argv_;
- char **argv_save_;
+ ACE_TCHAR **argv_;
+ ACE_TCHAR **argv_save_;
// Argument list.
friend class ACE_Singleton<TAO_NT_Notify_Service, MUTEX>;
diff --git a/TAO/orbsvcs/Notify_Service/Notify_Server.cpp b/TAO/orbsvcs/Notify_Service/Notify_Server.cpp
index 2e74141b15d..5e355715826 100644
--- a/TAO/orbsvcs/Notify_Service/Notify_Server.cpp
+++ b/TAO/orbsvcs/Notify_Service/Notify_Server.cpp
@@ -1,10 +1,6 @@
// $Id$
#include "Notify_Service.h"
-
-// Must include this file to get a static initializer
-#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
-
#include "ace/OS_main.h"
#include "orbsvcs/Shutdown_Utilities.h"
diff --git a/TAO/orbsvcs/Notify_Service/Notify_Service.cpp b/TAO/orbsvcs/Notify_Service/Notify_Service.cpp
index e7d95c4dd99..f3626d462e4 100644
--- a/TAO/orbsvcs/Notify_Service/Notify_Service.cpp
+++ b/TAO/orbsvcs/Notify_Service/Notify_Service.cpp
@@ -1,29 +1,26 @@
// $Id$
#include "Notify_Service.h"
-
-#include "orbsvcs/Notify/Service.h"
-
#include "tao/debug.h"
#include "tao/IORTable/IORTable.h"
-#include "tao/ORB_Core.h"
-
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
#include "ace/Sched_Params.h"
#include "ace/Synch.h"
#include "ace/Argv_Type_Converter.h"
+#include "tao/ORB_Core.h"
#include "ace/Dynamic_Service.h"
+#include "orbsvcs/Notify/Service.h"
TAO_Notify_Service_Driver::TAO_Notify_Service_Driver (void)
-: notify_service_ (0)
-, bootstrap_ (0)
-, use_name_svc_ (1)
-, ior_output_file_ (0)
-, notify_factory_name_ (NOTIFY_KEY)
-, notify_channel_name_ (NOTIFY_CHANNEL_NAME)
-, register_event_channel_ (0)
-, nthreads_ (1)
+ : notify_service_ (0),
+ bootstrap_ (0),
+ use_name_svc_ (1),
+ ior_output_file_ (0),
+ notify_factory_name_ (NOTIFY_KEY),
+ notify_channel_name_ (NOTIFY_CHANNEL_NAME),
+ register_event_channel_ (0),
+ nthreads_ (1)
{
// No-Op.
}
@@ -35,8 +32,8 @@ TAO_Notify_Service_Driver::~TAO_Notify_Service_Driver (void)
}
int
-TAO_Notify_Service_Driver::init_ORB (int& argc, ACE_TCHAR *argv []
- ACE_ENV_ARG_DECL)
+TAO_Notify_Service_Driver::init_ORB (int& argc, char *argv []
+ ACE_ENV_ARG_DECL)
{
// Copy command line parameter.
ACE_Argv_Type_Converter command_line(argc, argv);
@@ -74,15 +71,17 @@ TAO_Notify_Service_Driver::init_ORB (int& argc, ACE_TCHAR *argv []
int
TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
if (this->parse_args(argc, argv) != 0)
return -1;
// initalize the ORB.
- if (this->init_ORB (argc, argv
+ if (this->init_ORB (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) != 0)
- return -1;
+ return -1;
this->notify_service_ = ACE_Dynamic_Service<TAO_Notify_Service>::instance (TAO_NOTIFICATION_SERVICE_NAME);
@@ -92,17 +91,17 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
}
if (this->notify_service_ == 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Service not found. Check service configurator file.\n"));
+ {
+ ACE_DEBUG ((LM_DEBUG, "Service not found! check conf.file\n"));
return -1;
- }
+ }
this->notify_service_->init_service (this->orb_.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
if (this->nthreads_ > 0) // we have chosen to run in a thread pool.
{
- ACE_DEBUG ((LM_DEBUG, "Running %d ORB threads\n", this->nthreads_));
+ ACE_DEBUG ((LM_DEBUG, "Running %d server threads\n", this->nthreads_));
worker_.orb (this->orb_.in ());
// Task activation flags.
@@ -111,9 +110,8 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
THR_JOINABLE |
this->orb_->orb_core ()->orb_params ()->thread_creation_flags ();
- int priority =
- ACE_Sched_Params::priority_min (this->orb_->orb_core ()->orb_params ()->sched_policy (),
- this->orb_->orb_core ()->orb_params ()->scope_policy ());
+ int priority = ACE_Sched_Params::priority_min (this->orb_->orb_core ()->orb_params ()->sched_policy (),
+ this->orb_->orb_core ()->orb_params ()->scope_policy ());
if (worker_.activate (flags,
this->nthreads_, 0, priority) != 0)
@@ -137,12 +135,14 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
// Activate the factory
this->notify_factory_ =
- notify_service_->create (this->poa_.in () ACE_ENV_ARG_PARAMETER);
+ notify_service_->create (this->poa_.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
ACE_ASSERT (!CORBA::is_nil (this->notify_factory_.in ()));
- if (this->bootstrap_) // Enable corbaloc usage
+ // Make it bootstrappable, if asked.
+ if (this->bootstrap_)
{
CORBA::Object_var table_object =
this->orb_->resolve_initial_references ("IORTable"
@@ -154,7 +154,7 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
ACE_CHECK_RETURN (-1);
if (CORBA::is_nil (adapter.in ()))
{
- ACE_ERROR ((LM_ERROR, "Nil IORTable. corbaloc support not enabled.\n"));
+ ACE_ERROR ((LM_ERROR, "Nil IORTable\n"));
}
else
{
@@ -172,8 +172,10 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
// Register with the Name service, if asked
if (this->use_name_svc_)
{
+ // Register the Factory
ACE_ASSERT (!CORBA::is_nil (this->naming_.in ()));
+
CosNaming::Name_var name =
this->naming_->to_name (this->notify_factory_name_.c_str ()
ACE_ENV_ARG_PARAMETER);
@@ -181,8 +183,8 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
this->naming_->rebind (name.in (),
- this->notify_factory_.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->notify_factory_.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
ACE_DEBUG ((LM_DEBUG,
@@ -199,18 +201,19 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
CosNotifyChannelAdmin::EventChannel_var ec =
this->notify_factory_->create_channel (initial_qos,
- initial_admin,
- id
- ACE_ENV_ARG_PARAMETER);
+ initial_admin,
+ id
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- name = this->naming_->to_name (this->notify_channel_name_.c_str ()
- ACE_ENV_ARG_PARAMETER);
+ name = this->naming_->to_name (
+ this->notify_channel_name_.c_str ()
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
this->naming_->rebind (name.in (),
- ec.in ()
- ACE_ENV_ARG_PARAMETER);
+ ec.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
ACE_DEBUG ((LM_DEBUG,
@@ -223,22 +226,21 @@ TAO_Notify_Service_Driver::init (int argc, ACE_TCHAR *argv[]
// Write IOR to a file, if asked.
// Note: do this last to ensure that we're up and running before the file is written
CORBA::String_var str =
- this->orb_->object_to_string (this->notify_factory_.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->orb_->object_to_string (this->notify_factory_.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
if (this->ior_output_file_)
{
- ACE_OS::fprintf (this->ior_output_file_, "%s", str.in ());
+ ACE_OS::fprintf (this->ior_output_file_,
+ "%s",
+ str.in ());
ACE_OS::fclose (this->ior_output_file_);
this->ior_output_file_ = 0;
- }
+ }
else if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "The Notification Event Channel Factory IOR is <%s>\n",
- str.in ()));
- }
+ ACE_DEBUG ((LM_DEBUG,
+ "The Notification Event Channel Factory IOR is <%s>\n",
+ str.in ()));
return 0;
}
@@ -258,7 +260,8 @@ TAO_Notify_Service_Driver::resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL)
-1);
this->naming_ =
- CosNaming::NamingContextExt::_narrow (naming_obj.in () ACE_ENV_ARG_PARAMETER);
+ CosNaming::NamingContextExt::_narrow (naming_obj.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
return 0;
@@ -287,18 +290,18 @@ void
TAO_Notify_Service_Driver::shutdown (ACE_ENV_SINGLE_ARG_DECL)
{
// Deactivate.
- if (this->use_name_svc_ && !CORBA::is_nil (this->naming_.in ()))
- {
- // Unbind from the naming service.
- CosNaming::Name_var name =
- this->naming_->to_name (this->notify_factory_name_.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- this->naming_->unbind (name.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ if (this->use_name_svc_)
+ {
+ // Unbind from the naming service.
+ CosNaming::Name_var name =
+ this->naming_->to_name (this->notify_factory_name_.c_str ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+
+ this->naming_->unbind (name.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+ }
// shutdown the ORB.
if (!CORBA::is_nil (this->orb_.in ()))
@@ -308,14 +311,14 @@ TAO_Notify_Service_Driver::shutdown (ACE_ENV_SINGLE_ARG_DECL)
int
TAO_Notify_Service_Driver::parse_args (int &argc, ACE_TCHAR *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_Arg_Shifter arg_shifter (argc, argv);
- const ACE_TCHAR* current_arg = 0;
- while (arg_shifter.is_anything_left ())
+ const ACE_TCHAR* current_arg = 0;
+ while (arg_shifter.is_anything_left ())
{
- if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Factory"))))
+ if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Factory"))))
{
- this->notify_factory_name_.set (ACE_TEXT_ALWAYS_CHAR(current_arg));
+ this->notify_factory_name_.set (ACE_TEXT_TO_CHAR_IN(current_arg));
arg_shifter.consume_arg ();
}
else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Boot")) == 0)
@@ -339,7 +342,7 @@ TAO_Notify_Service_Driver::parse_args (int &argc, ACE_TCHAR *argv[])
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput"))))
{
this->ior_output_file_ = ACE_OS::fopen (current_arg, ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
@@ -348,9 +351,9 @@ TAO_Notify_Service_Driver::parse_args (int &argc, ACE_TCHAR *argv[])
current_arg), -1);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-ChannelName"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-ChannelName"))))
{
- this->notify_channel_name_.set(ACE_TEXT_ALWAYS_CHAR(current_arg));
+ this->notify_channel_name_.set(ACE_TEXT_TO_CHAR_IN(current_arg));
arg_shifter.consume_arg ();
}
else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-Channel")) == 0)
@@ -360,14 +363,14 @@ TAO_Notify_Service_Driver::parse_args (int &argc, ACE_TCHAR *argv[])
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Notify_TPReactor"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Notify_TPReactor"))))
{
ACE_DEBUG((LM_DEBUG, "-Notify_TPReactor option is deprecated, use -ORBRunThreads option\n"));
this->nthreads_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-ORBRunThreads"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-ORBRunThreads"))))
{
this->nthreads_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
@@ -378,10 +381,10 @@ TAO_Notify_Service_Driver::parse_args (int &argc, ACE_TCHAR *argv[])
"usage: %s -Factory factory_name "
"-Boot -[No]NameSvc "
"-IORoutput file_name "
- "-Channel -ChannelName channel_name "
- "-ORBRunThreads threads\n"
+ "-Channel -ChannelName channel_name\n"
"default: %s -Factory NotifyEventChannelFactory "
- "-NameSvc -Channel NotifyEventChannel -ORBRunThreads 1\n",
+ "-NameSvc -Channel NotifyEventChannel\n",
+ "-ORBRunThreads [threads]\n",
argv[0], argv[0]));
arg_shifter.consume_arg ();
@@ -390,10 +393,12 @@ TAO_Notify_Service_Driver::parse_args (int &argc, ACE_TCHAR *argv[])
}
else
{
- arg_shifter.ignore_arg ();
+ /*ACE_DEBUG((LM_DEBUG, "Unrecognized command %s",
+ arg_shifter.get_current ()));*/
+ arg_shifter.ignore_arg ();
}
}
- return 0;
+ return 0;
}
/*****************************************************************/
@@ -411,13 +416,6 @@ Worker::orb (CORBA::ORB_ptr orb)
int
Worker::svc (void)
{
-#if 0
- // ACE_Thread::getprio() fails on systems that do not support thread
- // priorities. While we could just treat the failure as benign, I'm
- // just disabling it altogether. It doesn't provide much value, and
- // makes service startup needlessly more verbose. See bugzilla 2477
- // for details.
-
ACE_hthread_t current;
ACE_Thread::self (current);
@@ -429,7 +427,6 @@ Worker::svc (void)
}
ACE_DEBUG ((LM_DEBUG, "Activated Worker Thread to run the ORB @ priority:%d \n", priority));
-#endif
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/Notify_Service/Notify_Service.h b/TAO/orbsvcs/Notify_Service/Notify_Service.h
index a32e6747b2a..835941e860a 100644
--- a/TAO/orbsvcs/Notify_Service/Notify_Service.h
+++ b/TAO/orbsvcs/Notify_Service/Notify_Service.h
@@ -25,9 +25,7 @@
#include "../orbsvcs/Notify/CosNotify_Initializer.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_Service;
-TAO_END_VERSIONED_NAMESPACE_DECL
#define NOTIFY_KEY "NotifyEventChannelFactory"
#define NOTIFY_CHANNEL_NAME "NotifyEventChannel"
@@ -87,7 +85,7 @@ class TAO_Notify_Service_Driver
// CosNotifyChannelAdmin::EventChannelFactory_var obj;
//
protected:
- int init_ORB (int& argc, ACE_TCHAR *argv []
+ int init_ORB (int& argc, char *argv []
ACE_ENV_ARG_DECL);
// initialize the ORB.
diff --git a/TAO/orbsvcs/Notify_Service/Notify_Service.mpc b/TAO/orbsvcs/Notify_Service/Notify_Service.mpc
index 251a4660756..5b13cba568e 100644
--- a/TAO/orbsvcs/Notify_Service/Notify_Service.mpc
+++ b/TAO/orbsvcs/Notify_Service/Notify_Service.mpc
@@ -13,7 +13,6 @@ project : valuetype, orbsvcsexe, core, notification_serv, naming, iortable {
}
project(NT_Notify_Service) : valuetype, orbsvcsexe, core, notification_serv, naming, iortable {
- avoids += ace_for_tao
exename = NT_Notify_Service
Source_Files {
Notify_Service.cpp
diff --git a/TAO/orbsvcs/PSS/psdl_tao.cpp b/TAO/orbsvcs/PSS/psdl_tao.cpp
index 48491264b97..b0847e4f5b8 100644
--- a/TAO/orbsvcs/PSS/psdl_tao.cpp
+++ b/TAO/orbsvcs/PSS/psdl_tao.cpp
@@ -4,7 +4,7 @@
#include "PSDL_Extern.h"
#include "Dump_Visitor.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
void *result_ptr = 0;
diff --git a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp
index 83e325bcde7..4cdfde4a14a 100644
--- a/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp
+++ b/TAO/orbsvcs/Scheduling_Service/Scheduling_Service.cpp
@@ -129,7 +129,7 @@ TAO_Scheduling_Service::init (int argc, ACE_TCHAR* argv[])
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG, ACE_TEXT("The scheduler IOR is <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(scheduler_ior_string.in ())));
+ ACE_TEXT_TO_TCHAR_IN(scheduler_ior_string.in ())));
// Register the servant with the Naming Context....
CosNaming::Name schedule_name (1);
@@ -145,7 +145,7 @@ TAO_Scheduling_Service::init (int argc, ACE_TCHAR* argv[])
{
ACE_OS::fprintf (iorf,
ACE_TEXT("%s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(scheduler_ior_string.in ()));
+ ACE_TEXT_TO_TCHAR_IN(scheduler_ior_string.in ()));
ACE_OS::fclose (iorf);
}
}
@@ -188,7 +188,7 @@ TAO_Scheduling_Service::run (ACE_ENV_SINGLE_ARG_DECL)
int
TAO_Scheduling_Service::parse_args (int argc, ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:p:o:s:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:p:o:s:"));
int opt;
while ((opt = get_opt ()) != EOF)
@@ -196,15 +196,15 @@ TAO_Scheduling_Service::parse_args (int argc, ACE_TCHAR* argv[])
switch (opt)
{
case 'n':
- this->service_name_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->service_name_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
break;
case 'p':
- this->pid_file_name_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->pid_file_name_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
break;
case 'o':
- this->ior_file_name_ = ACE_TEXT_ALWAYS_CHAR(get_opt.opt_arg ());
+ this->ior_file_name_ = ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ());
break;
// The templatized method parameters needed by the reconfig scheduler
diff --git a/TAO/orbsvcs/Time_Service/Clerk_i.cpp b/TAO/orbsvcs/Time_Service/Clerk_i.cpp
index ab42e2787f7..8a5da97ccaa 100644
--- a/TAO/orbsvcs/Time_Service/Clerk_i.cpp
+++ b/TAO/orbsvcs/Time_Service/Clerk_i.cpp
@@ -68,7 +68,7 @@ Clerk_i::read_ior (const ACE_TCHAR* filename)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("iors -> |%s|\n"),
- ACE_TEXT_CHAR_TO_TCHAR(str)));
+ ACE_TEXT_TO_TCHAR_IN(str)));
CORBA::Object_var objref =
this->orb_->string_to_object (str
@@ -110,7 +110,7 @@ int
Clerk_i::parse_args (int argc,
ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("dt:u:f:o:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("dt:u:f:o:"));
int c, result;
@@ -278,7 +278,7 @@ Clerk_i::next_n_IORs (CosNaming::BindingIterator_var iter,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Getting IOR of the server: %s\n\n"),
- ACE_TEXT_CHAR_TO_TCHAR(binding->binding_name[0].id.in ())));
+ ACE_TEXT_TO_TCHAR_IN(binding->binding_name[0].id.in ())));
CosNaming::Name server_name;
server_name.length (1);
@@ -352,7 +352,7 @@ Clerk_i::create_clerk (void)
// Print the clerk IOR on the console.
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("[SERVER] Process/Thread Id : (%P/%t) The Time Service CLERK IOR is: <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(objref_clerk.in ())));
+ ACE_TEXT_TO_TCHAR_IN(objref_clerk.in ())));
// Print the Time Service clerk IOR to a file.
if (this->ior_output_file_)
diff --git a/TAO/orbsvcs/Time_Service/Server_i.cpp b/TAO/orbsvcs/Time_Service/Server_i.cpp
index b1c846e398f..9fc1acb43e3 100644
--- a/TAO/orbsvcs/Time_Service/Server_i.cpp
+++ b/TAO/orbsvcs/Time_Service/Server_i.cpp
@@ -31,7 +31,7 @@ int
Server_i::parse_args (int argc,
ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("do:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("do:"));
int c;
while ((c = get_opts ()) != -1)
@@ -123,7 +123,7 @@ Server_i::create_server (void)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("[SERVER] Process/Thread Id : (%P/%t) The Time Service ")
ACE_TEXT("SERVER IOR: <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(objref_server.in ())));
+ ACE_TEXT_TO_TCHAR_IN(objref_server.in ())));
// Print the IOR to a file.
@@ -194,7 +194,7 @@ Server_i::register_server (void)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("Binding ServerContext -> %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(server_name[1].id.in ())));
+ ACE_TEXT_TO_TCHAR_IN(server_name[1].id.in ())));
}
ACE_CATCHANY
{
diff --git a/TAO/orbsvcs/Trading_Service/Makefile.am b/TAO/orbsvcs/Trading_Service/Makefile.am
index a3ea4c7af73..96e60ad6770 100644
--- a/TAO/orbsvcs/Trading_Service/Makefile.am
+++ b/TAO/orbsvcs/Trading_Service/Makefile.am
@@ -32,7 +32,6 @@ Trading_Service_SOURCES = \
Trading_Service_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Skel.la \
diff --git a/TAO/orbsvcs/examples/CosEC/Factory/FactoryClient.cpp b/TAO/orbsvcs/examples/CosEC/Factory/FactoryClient.cpp
index 72c9ebc763b..be9ebfc1a76 100644
--- a/TAO/orbsvcs/examples/CosEC/Factory/FactoryClient.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Factory/FactoryClient.cpp
@@ -4,6 +4,7 @@
#include "CosEventChannelFactoryC.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
class FactoryClient
{
@@ -21,7 +22,7 @@ public:
virtual ~FactoryClient (void);
// destructor.
- void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init_ORB (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
@@ -87,7 +88,7 @@ FactoryClient::~FactoryClient (void)
void
FactoryClient::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
@@ -364,16 +365,17 @@ FactoryClient::run_test (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DEBUG ((LM_DEBUG,
"The FactoryClient will test the Cos Event Channel Factory\n"));
ACE_TRY_NEW_ENV
{
FactoryClient ft;
- ft.init_ORB (argc,
- argv
+ ft.init_ORB (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp b/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp
index 845ee110d77..50a842d3f74 100644
--- a/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp
@@ -19,9 +19,9 @@ FactoryDriver::~FactoryDriver (void)
}
int
-FactoryDriver::parse_args (int argc, char *argv [])
+FactoryDriver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dr:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dr:");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -50,7 +50,7 @@ FactoryDriver::parse_args (int argc, char *argv [])
}
int
-FactoryDriver::start (int argc, char *argv [])
+FactoryDriver::start (int argc, char *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.h b/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.h
index 97d837a7c2e..adec5218b49 100644
--- a/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.h
+++ b/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.h
@@ -45,14 +45,14 @@ class FactoryDriver
~FactoryDriver (void);
// Destructor.
- int start (int argc, char *argv []);
+ int start (int argc, char *argv[]);
// Start the driver.
int stop (void);
//Stop the driver.
protected:
- int parse_args (int argc, char *argv []);
+ int parse_args (int argc, char *argv[]);
// Parse the command-line arguments and set options.
const char* factoryName_;
diff --git a/TAO/orbsvcs/examples/CosEC/Factory/Makefile.am b/TAO/orbsvcs/examples/CosEC/Factory/Makefile.am
index 0e66ef1782f..662a48bf280 100644
--- a/TAO/orbsvcs/examples/CosEC/Factory/Makefile.am
+++ b/TAO/orbsvcs/examples/CosEC/Factory/Makefile.am
@@ -50,9 +50,6 @@ CosEventChannelFactory-stamp: $(srcdir)/CosEventChannelFactory.idl $(TAO_IDL_DEP
@touch $@
-noinst_HEADERS = \
- CosEventChannelFactory.idl
-
## Makefile.CosEC_Factory_Client.am
if !BUILD_MINIMUM_CORBA
diff --git a/TAO/orbsvcs/examples/CosEC/Factory/main.cpp b/TAO/orbsvcs/examples/CosEC/Factory/main.cpp
index 2ca49905292..c2b9a007fbc 100644
--- a/TAO/orbsvcs/examples/CosEC/Factory/main.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Factory/main.cpp
@@ -3,12 +3,15 @@
#include "FactoryDriver.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
FactoryDriver driver;
- driver.start (argc, argv);
+ driver.start (convert.get_argc(), convert.get_ASCII_argv());
return 0;
}
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc
index d74001a0687..be02495ba03 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/CosEC_RtEC_Based_bin.mpc
@@ -3,13 +3,7 @@
project : orbsvcsexe, rtevent_serv, event_skel, naming {
after += CosEC_RtEC_Based_lib
+ includes += ../lib
libs += CosEC_RtEC_Based
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
-
libpaths += ../lib
}
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile.am b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile.am
index c131f699b10..bd084639c8c 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile.am
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.CosEC_RtEC_Based_bin.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = RtEC_Based_CosEC
@@ -55,7 +54,6 @@ RtEC_Based_CosEC_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.cpp b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.cpp
index 68f393240e7..cba856ea3b0 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.cpp
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.cpp
@@ -3,6 +3,7 @@
#include "RtEC_Based_CosEC.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
RtEC_Based_CosEC::RtEC_Based_CosEC (void)
: service_name ("CosEventService"),
@@ -18,7 +19,7 @@ RtEC_Based_CosEC::~RtEC_Based_CosEC (void)
}
void
-RtEC_Based_CosEC::init_ORB (int& argc, char *argv []
+RtEC_Based_CosEC::init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
@@ -46,9 +47,9 @@ RtEC_Based_CosEC::init_ORB (int& argc, char *argv []
}
int
-RtEC_Based_CosEC::parse_args (int argc, char *argv [])
+RtEC_Based_CosEC::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "t:n:e:o:p:r");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "t:n:e:o:p:r");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -276,16 +277,17 @@ RtEC_Based_CosEC::shutdown (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
RtEC_Based_CosEC service;
ACE_TRY_NEW_ENV
{
- service.startup (argc,
- argv
+ service.startup (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.h b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.h
index 72f1bd8224f..eb9333093c4 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.h
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/bin/RtEC_Based_CosEC.h
@@ -40,7 +40,7 @@ class RtEC_Based_CosEC : public CosEC_ServantBase
virtual ~RtEC_Based_CosEC (void);
// Destructor.
- int parse_args (int argc, char *argv []);
+ int parse_args (int argc, char *argv[]);
// Parses the command line arguments.
void startup (int argc, char *argv[]
@@ -68,7 +68,7 @@ protected:
virtual void deactivate_rtec (ACE_ENV_SINGLE_ARG_DECL);
// Deactivates the rtec.
- void init_ORB (int& argc, char *argv []
+ void init_ORB (int& argc, char *argv[]
ACE_ENV_ARG_DECL);
// initialize the ORB.
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile.am b/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile.am
index 88bd3349b2f..aec74e8c7f4 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile.am
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.CosEC_RtEC_Based_lib.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_LTLIBRARIES = libCosEC_RtEC_Based.la
@@ -50,7 +49,6 @@ noinst_HEADERS = \
rtec_cosec_export.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Basic.cpp b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Basic.cpp
index bd0b2585f86..976da8ab3b3 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Basic.cpp
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Basic.cpp
@@ -3,16 +3,19 @@
#include "Basic.h"
#include "CosEvent_Utilities.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Basic basic;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- basic.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ basic.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
basic.run (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -61,7 +64,7 @@ Basic::init (int argc, char *argv[]
}
void
-Basic::init_ORB (int argc, char *argv []
+Basic::init_ORB (int argc, char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc
index d3d306ab424..9bc366679f7 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/CosEC_RtEC_Based_tests_Basic.mpc
@@ -3,13 +3,7 @@
project(*Client) : orbsvcsexe, event, event_skel, rtevent_serv, rtsched {
after += CosEC_RtEC_Based_lib
+ includes += ../../lib
libs += CosEC_RtEC_Based
-
- specific (automake) {
- includes += $(srcdir)/../../lib
- } else {
- includes += ../../lib
- }
-
libpaths += ../../lib
}
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile.am b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile.am
index f31f3cdd964..03514fff03a 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile.am
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Basic/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.CosEC_RtEC_Based_Tests_Basic_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = Basic
@@ -60,7 +59,6 @@ Basic_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.cpp b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.cpp
index 9cdb697eff1..1f6d6b73702 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.cpp
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.cpp
@@ -3,6 +3,7 @@
#include "Consumer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
Consumer::Consumer ()
:event_count_ (1)
@@ -11,9 +12,9 @@ Consumer::Consumer ()
}
int
-Consumer::parse_args (int argc, char *argv [])
+Consumer::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "n:c:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "n:c:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -176,11 +177,13 @@ Consumer::init_Consumer (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer cons;
- if (cons.init (argc, argv) == -1)
+ if (cons.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
if (cons.init_Consumer () == -1)
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.h b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.h
index ce523fed960..651d825a153 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.h
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Consumer.h
@@ -69,7 +69,7 @@ public:
// disconnect the consumer from the EC.
// = CosEC_Multiple methods.
- virtual int parse_args (int argc, char *argv []);
+ virtual int parse_args (int argc, char *argv[]);
// Parse the command line options.
private:
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc
index 8b13ff7e584..3018aa6b8df 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/CosEC_RtEC_Based_Mult.mpc
@@ -1,34 +1,22 @@
// -*- MPC -*-
// $Id$
-project(*Cons) : orbsvcsexe, event, event_skel, rtevent, rtsched, rtevent_serv {
+project(*Cons) : orbsvcsexe, event, event_skel, rtevent, rtsched {
after += CosEC_RtEC_Based_lib
+ includes += ../../lib
libs += CosEC_RtEC_Based
libpaths += ../../lib
-
- specific (automake) {
- includes += $(srcdir)/../../lib
- } else {
- includes += ../../lib
- }
-
source_files {
Consumer.cpp
Multiple.cpp
}
}
-project(*Supp) : orbsvcsexe, event, event_skel, rtevent, rtsched, rtevent_serv {
+project(*Supp) : orbsvcsexe, event, event_skel, rtevent, rtsched {
after += CosEC_RtEC_Based_lib
+ includes += ../../lib
libs += CosEC_RtEC_Based
libpaths += ../../lib
-
- specific (automake) {
- includes += $(srcdir)/../../lib
- } else {
- includes += ../../lib
- }
-
source_files {
Supplier.cpp
Multiple.cpp
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am
index cf3dfbc4304..b001df4e92d 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.CosEC_RtEC_Based_Mult_Cons.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Consumer
@@ -41,8 +40,6 @@ Consumer_SOURCES = \
Consumer_LDADD = \
$(top_builddir)/orbsvcs/examples/CosEC/RtEC_Based/lib/libCosEC_RtEC_Based.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTSched.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent.la \
@@ -59,13 +56,11 @@ Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.CosEC_RtEC_Based_Mult_Supp.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Supplier
@@ -88,8 +83,6 @@ Supplier_SOURCES = \
Supplier_LDADD = \
$(top_builddir)/orbsvcs/examples/CosEC/RtEC_Based/lib/libCosEC_RtEC_Based.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTSched.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent.la \
@@ -106,7 +99,6 @@ Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.cpp b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.cpp
index 4af0b93b9aa..a67007ededc 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.cpp
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.cpp
@@ -37,7 +37,7 @@ Multiple::init (int argc, char *argv[])
}
int
-Multiple::init_ORB (int argc, char *argv [])
+Multiple::init_ORB (int argc, char *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.h b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.h
index 3248946ce78..e0bca0efa5c 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.h
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Multiple.h
@@ -50,7 +50,7 @@ class Multiple
// Closes down the ORB and exits.
protected:
- virtual int parse_args (int argc, char *argv []) = 0;
+ virtual int parse_args (int argc, char *argv[]) = 0;
// Parse the command line arguments.
CosEventChannelAdmin::EventChannel_ptr cos_ec_;
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.cpp b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.cpp
index 7d9a03c9261..0b232a783d4 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.cpp
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.cpp
@@ -3,6 +3,7 @@
#include "Supplier.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
Supplier::Supplier ()
: event_count_ (1)
@@ -11,9 +12,9 @@ Supplier::Supplier ()
}
int
-Supplier::parse_args (int argc, char *argv [])
+Supplier::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "n:c:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "n:c:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -170,11 +171,13 @@ Supplier::run (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supp;
- if (supp.init (argc, argv) == -1)
+ if (supp.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
supp.run ();
diff --git a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.h b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.h
index 29b213cd31f..9ef552599ce 100644
--- a/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.h
+++ b/TAO/orbsvcs/examples/CosEC/RtEC_Based/tests/Multiple/Supplier.h
@@ -63,7 +63,7 @@ public:
// Sends the events to the EC.
// = Multiple methods.
- virtual int parse_args (int argc, char *argv []);
+ virtual int parse_args (int argc, char *argv[]);
// Parses the command line arguments.
private:
CosEventChannelAdmin::ProxyPushConsumer_var consumer_proxy_;
diff --git a/TAO/orbsvcs/examples/CosEC/Simple/Consumer.cpp b/TAO/orbsvcs/examples/CosEC/Simple/Consumer.cpp
index bcf4fcfc551..359f25fddcb 100644
--- a/TAO/orbsvcs/examples/CosEC/Simple/Consumer.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Simple/Consumer.cpp
@@ -2,17 +2,20 @@
#include "Consumer.h"
#include "orbsvcs/CosEventChannelAdminS.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CosEC_Examples,
Consumer,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer consumer;
- return consumer.run (argc, argv);
+ return consumer.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/CosEC/Simple/Service.cpp b/TAO/orbsvcs/examples/CosEC/Simple/Service.cpp
index 07a78aea874..cf07d735aea 100644
--- a/TAO/orbsvcs/examples/CosEC/Simple/Service.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Simple/Service.cpp
@@ -4,6 +4,7 @@
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CosEC_Simple,
Service,
@@ -14,8 +15,10 @@ const char *ior_output_file = "ec.ior";
int parse_args (int argc, char *argv[]);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -23,10 +26,10 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_ERROR ((LM_ERROR,
"Usage: Service [-o IOR_file_name]\n"));
@@ -65,7 +68,7 @@ main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -99,7 +102,7 @@ main (int argc, char* argv[])
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/examples/CosEC/Simple/Supplier.cpp b/TAO/orbsvcs/examples/CosEC/Simple/Supplier.cpp
index 3886f6d085a..490ab33bf75 100644
--- a/TAO/orbsvcs/examples/CosEC/Simple/Supplier.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Simple/Supplier.cpp
@@ -3,17 +3,20 @@
#include "Supplier.h"
#include "orbsvcs/CosEventChannelAdminS.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CosEC_Examples,
Supplier,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supplier;
- return supplier.run (argc, argv);
+ return supplier.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/CosEC/TypedSimple/Consumer.cpp b/TAO/orbsvcs/examples/CosEC/TypedSimple/Consumer.cpp
index db6437a39bd..1143417a9f0 100644
--- a/TAO/orbsvcs/examples/CosEC/TypedSimple/Consumer.cpp
+++ b/TAO/orbsvcs/examples/CosEC/TypedSimple/Consumer.cpp
@@ -4,21 +4,23 @@
#include "orbsvcs/CosTypedEventChannelAdminC.h"
#include "Country_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CosEC_Examples,
Consumer,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// ORB initialization...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_obj =
@@ -79,8 +81,7 @@ main (int argc, char* argv[])
const char* ior_file_name = "Consumer.ior";
FILE *output_file=
- ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(ior_file_name),
- ACE_LIB_TEXT("w"));
+ ACE_OS::fopen (ior_file_name, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/examples/CosEC/TypedSimple/Supplier.cpp b/TAO/orbsvcs/examples/CosEC/TypedSimple/Supplier.cpp
index d384fad33cf..c61ee91be55 100644
--- a/TAO/orbsvcs/examples/CosEC/TypedSimple/Supplier.cpp
+++ b/TAO/orbsvcs/examples/CosEC/TypedSimple/Supplier.cpp
@@ -3,19 +3,21 @@
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/CosTypedEventChannelAdminC.h"
#include "CountryC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(CosEC_Examples, Supplier, "$Id:")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Obtain the event channel using the Naming Service.
diff --git a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am
index e2d3ebfef90..802a5a425c0 100644
--- a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am
+++ b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/Makefile.am
@@ -50,16 +50,12 @@ RolyPoly-stamp: $(srcdir)/RolyPoly.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- RolyPoly.idl
-
## Makefile.RolyPoly_Client.am
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_EXCEPTIONS
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -106,7 +102,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_EXCEPTIONS
endif BUILD_CORBA_MESSAGING
@@ -119,7 +114,6 @@ if BUILD_CORBA_MESSAGING
if BUILD_EXCEPTIONS
if BUILD_INTERCEPTORS
if BUILD_THREADS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -169,7 +163,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_THREADS
endif BUILD_INTERCEPTORS
endif BUILD_EXCEPTIONS
diff --git a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.cpp b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.cpp
index ed3b767e2f4..ee990f2230b 100644
--- a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.cpp
+++ b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/ORB_Initializer.cpp
@@ -2,7 +2,6 @@
// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id : $Id$
-#include "ace/Auto_Ptr.h"
#include "tao/corba.h"
#include "tao/PI/ORBInitInfo.h"
#include "tao/ORB_Core.h"
diff --git a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/client.cpp b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/client.cpp
index 7aff9a4a1bd..5e9e7766033 100644
--- a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/client.cpp
+++ b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/client.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
// IOR manipulation.
#include "tao/IORManipulation/IORManip_Loader.h"
@@ -19,7 +20,7 @@ const char *ior2 = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,20 +42,21 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Client ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0) return -1;
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0) return -1;
// Start out with the first IOR. Interaction with the second
// IOR occurs during the various interceptions executed during
diff --git a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/server.cpp b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/server.cpp
index 65c0587a9b7..359851764ec 100644
--- a/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/server.cpp
+++ b/TAO/orbsvcs/examples/FaultTolerance/RolyPoly/server.cpp
@@ -9,13 +9,14 @@
#include "CrashPoint.h"
#include "ORB_Initializer.h"
#include "tao/ORBInitializer_Registry.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,12 +41,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- if (::parse_args (argc, argv) != 0) return -1;
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0) return -1;
ORB_Initializer *temp_initializer = 0;
ACE_NEW_RETURN (temp_initializer,
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "Server ORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "Server ORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -101,7 +104,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/Makefile.am b/TAO/orbsvcs/examples/ImR/Advanced/Makefile.am
index d467ce7e8eb..86ef79f0ee1 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/Makefile.am
+++ b/TAO/orbsvcs/examples/ImR/Advanced/Makefile.am
@@ -79,10 +79,6 @@ Messenger-stamp: $(srcdir)/Messenger.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Manager.idl \
- Messenger.idl
-
## Makefile.Advanced_Client.am
if BUILD_EXCEPTIONS
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/TestClient.cpp b/TAO/orbsvcs/examples/ImR/Advanced/TestClient.cpp
index 9b2da4d88c8..4b0ec533a33 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/TestClient.cpp
+++ b/TAO/orbsvcs/examples/ImR/Advanced/TestClient.cpp
@@ -8,6 +8,9 @@
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/Get_Opt.h"
+#include "ace/streams.h"
+
+using std::string;
TestClient::TestClient(CORBA::ORB_ptr orb, int argc, char* argv[])
: orb_(CORBA::ORB::_duplicate(orb))
@@ -31,7 +34,7 @@ TestClient::~TestClient()
int TestClient::parseCommands(int argc, char* argv[])
{
- ACE_Get_Opt get_opts(argc, argv, "s:t:i:r:x:e:z:");
+ ACE_Get_Arg_Opt<char> get_opts(argc, argv, "s:t:i:r:x:e:z:");
int c;
while ((c = get_opts()) != -1)
{
@@ -116,9 +119,9 @@ void TestClient::pause(int milliseconds)
void TestClient::run()
{
- ACE_DEBUG((LM_DEBUG, "Starting Client.\n"));
+ cout << "Starting Client." << endl;
pause(startupPause_);
- ACE_DEBUG((LM_DEBUG, "* Client started.\n"));
+ cout << "* Client started." << endl;
buildIORList();
@@ -128,21 +131,19 @@ void TestClient::run()
}
wait();
- ACE_DEBUG((LM_DEBUG, "* Client ended.\n"));
-
+ cout << "* Client ended." << endl;
}
// Read in the stringified object references into an array
// Warning: The file may contain many separate IORs separated by linefeeds.
void TestClient::buildIORList()
{
- FILE* iorFile = ACE_OS::fopen ("imr_test.ior", "r");
- if ( iorFile == NULL )
- ACE_ERROR ((LM_ERROR, "Fail to open imr_test.ior\n"));
-
- ACE_TString ior;
- while (getline(iorFile, ior) != EOF )
+ ifstream iorFile("imr_test.ior");
+ while (! iorFile.fail())
{
+ string ior;
+ std::getline(iorFile, ior, '\n');
+
if (ior.length() > 0)
iors_.push_back(ior);
else
@@ -155,16 +156,14 @@ int TestClient::svc()
// Every invocation of svc increates the thread count
instance_++;
int threadNum = instance_;
- size_t vec_size = iors_.size();
-
- ACE_DEBUG((LM_DEBUG, "* Client Thread started (%d.%d.%d.%d)\n",
- threadNum, iterations_, vec_size, requestCount_));
+ cout << "* Client Thread started (" << threadNum << "." << iterations_
+ << "." << iors_.size() << "." << requestCount_ << ")" << endl;
int i = 0;
size_t objIter = 0;
int requestIter = 0;
- ACE_TString currentIOR;
+ string currentIOR;
ACE_OS::srand(ACE_OS::time());
@@ -177,7 +176,7 @@ int TestClient::svc()
for (i = 1; i <= iterations_; i++)
{
// For each object reference read from file
- for (objIter = 1; objIter <= vec_size; objIter++)
+ for (objIter = 1; objIter <= iors_.size(); objIter++)
{
requestIter = -1;
// Get a imr_test_var
@@ -206,8 +205,8 @@ int TestClient::svc()
// If these exceptions are expected record the number of instances, otherwise rethrow
if (expectHolding_ == true && ex.minor() == TAO_POA_HOLDING)
{
- ACE_ERROR((LM_ERROR, "Caught expected holding exception with (%d.%d.%d)\n",
- threadNum, objIter, requestIter));
+ cout << "Caught expected holding exception with ("
+ << threadNum << "." << objIter << "." << requestIter << ") " << endl;
holdingCount++;
}
else
@@ -217,8 +216,8 @@ int TestClient::svc()
if (expectNoProfile_ == true
&& ex.minor() == TAO_INVOCATION_SEND_REQUEST_MINOR_CODE)
{
- ACE_ERROR((LM_ERROR, "Caught expected holding exception with (%d.%d.%d)\n",
- threadNum, objIter, requestIter));
+ cout << "Caught expected no profile exception with ("
+ << threadNum << "." << objIter << "." << requestIter << ") " << endl;
noProfileCount++;
}
else
@@ -236,22 +235,22 @@ int TestClient::svc()
// Report expected exceptions
if (holdingCount > 0)
{
- ACE_DEBUG((LM_DEBUG,"Client thread %d received %d holding error(s).\n",
- threadNum, holdingCount));
+ cout << "Client thread " << threadNum << " received "
+ << holdingCount << " holding error(s)." << endl;
}
if (noProfileCount > 0)
{
- ACE_DEBUG((LM_DEBUG,"Client thread %d received %d no profile error(s).\n",
- threadNum, noProfileCount));
+ cout << "Client thread " << threadNum << " received "
+ << noProfileCount << " no profile error(s)." << endl;
}
return 0;
} // try
catch (CORBA::Exception& ex)
{
- ACE_ERROR((LM_ERROR,"CORBA client error with (%d.%d.%d.%d):%s\n",
- threadNum, i, objIter, requestIter, currentIOR.c_str()));
+ cerr << "CORBA client error with (" << threadNum << "." << i
+ << "." << objIter << "." << requestIter << "):" << currentIOR.c_str() << endl;
ACE_PRINT_EXCEPTION(ex, "");
}
return 1;
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/TestClient.h b/TAO/orbsvcs/examples/ImR/Advanced/TestClient.h
index 237437daa5c..d2f989111cc 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/TestClient.h
+++ b/TAO/orbsvcs/examples/ImR/Advanced/TestClient.h
@@ -5,9 +5,8 @@
#include <vector>
#include <string>
-#include "ace/Capabilities.h"
-class TestClient : public ACE_Task_Base, public ACE_Capabilities
+class TestClient : public ACE_Task_Base
{
public:
TestClient(CORBA::ORB_ptr orb, int argc, char* argv[]);
@@ -23,7 +22,7 @@ private:
virtual int svc();
CORBA::ORB_var orb_;
- std::vector<ACE_TString> iors_;
+ std::vector<std::string> iors_;
char pauseType_;
int startupPause_;
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/TestServer.cpp b/TAO/orbsvcs/examples/ImR/Advanced/TestServer.cpp
index 0b01378ccf8..cb83d318cb1 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/TestServer.cpp
+++ b/TAO/orbsvcs/examples/ImR/Advanced/TestServer.cpp
@@ -164,7 +164,7 @@ TestServer::~TestServer()
//
int TestServer::parseCommands(int argc, char* argv[])
{
- ACE_Get_Opt get_opts(argc, argv, "w:e:d:t:o:s:c:a:r:p:n:x:z:q:b:");
+ ACE_Get_Arg_Opt<char> get_opts(argc, argv, "w:e:d:t:o:s:c:a:r:p:n:x:z:q:b:");
int c;
while ((c = get_opts()) != -1)
{
@@ -279,8 +279,9 @@ bool TestServer::verifyEnvironment() const
string currentDir = getWorkingPath();
if (expectedDir_.empty() == false && currentDir != expectedDir_)
{
- ACE_DEBUG((LM_DEBUG, "Error: directory paths (%s,%s) do not match.\n",
- currentDir.c_str(), expectedDir_.c_str()));
+ cout << "Error: directory paths ("
+ << currentDir << ", " << expectedDir_
+ << ") do not match." << endl;
err |= true;
}
@@ -290,14 +291,16 @@ bool TestServer::verifyEnvironment() const
const char* realValue = ACE_OS::getenv(expectedEnv_[i].first.c_str()) ;
if (realValue == NULL)
{
- ACE_DEBUG((LM_DEBUG, "Error, env variable '%s' not found\n",
- expectedEnv_[i].first.c_str()));
+ cout << "Error: env variable '"
+ << expectedEnv_[i].first
+ << "' not found." << endl;
err |= true;
}
else if (expectedEnv_[i].second != realValue)
{
- ACE_DEBUG((LM_DEBUG, "Error, env variable '%s' values (%s,%s) do not match.\n",
- expectedEnv_[i].first.c_str(), realValue, expectedEnv_[i].second.c_str()));
+ cout << "Error: env variable '" << expectedEnv_[i].first << "' values ("
+ << realValue << ", " << expectedEnv_[i].second
+ << ") do not match." << endl;
err |= true;
}
}
@@ -340,8 +343,7 @@ void TestServer::run()
if (registerWithManager() == false)
return;
- ACE_DEBUG((LM_DEBUG, "* Server (%d.%d) started.\n",
- serverID_, serverInstanceID_));
+ cout << "* Server (" << serverID_ << "." << serverInstanceID_ << ") started." << endl;
if (useIORTable_ == true)
{
@@ -370,13 +372,13 @@ void TestServer::run()
if (orb_->orb_core()->has_shutdown() != 0)
{
- ACE_DEBUG((LM_DEBUG, "* Server (%d.%d) ended.\n",
- serverID_, serverInstanceID_));
+ cout << "* Server (" << serverID_ << "."
+ << serverInstanceID_ << ") ended." << endl;
}
else
{
- ACE_DEBUG((LM_DEBUG, "* Server (%d.%d) self terminated.\n",
- serverID_, serverInstanceID_));
+ cout << "* Server (" << serverID_ << "."
+ << serverInstanceID_ << ") self terminated." << endl;
}
}
@@ -408,7 +410,7 @@ bool TestServer::registerWithManager()
int diff = manager->endRetry();
if (diff != 0)
{
- ACE_DEBUG((LM_DEBUG, "* Server Error: Not all retry attempts were made.\n"));
+ cout << "* Server Error: Not all retry attempts were made." << endl;
}
return false;
}
@@ -417,8 +419,8 @@ bool TestServer::registerWithManager()
serverInstanceID_ = manager->registerServer();
if (serverInstanceID_ == -1)
{
- ACE_DEBUG((LM_DEBUG, "* Server (%d,%d) could not register.\n",
- serverID_, serverInstanceID_));
+ cout << "* Server (" << serverID_ << "."
+ << serverInstanceID_ << ") could not register." << endl;
return false;
}
}
@@ -452,7 +454,7 @@ void TestServer::buildObjects()
poaName = poaStream.str();
}
- ACE_DEBUG((LM_DEBUG, "* Creating POA: %s\n", poaName.c_str()));
+ cout << "* Creating POA: " << poaName << endl;
PortableServer::POA_var sub_poa = root_->create_POA(poaName.c_str(), mgr_.in(), policies);
@@ -467,7 +469,7 @@ void TestServer::buildObjects()
objStream << "OBJ_" << serverID_ << "_" << (i + 1) << "_" << (j + 1);
objName = objStream.str();
}
- ACE_DEBUG((LM_DEBUG, "* Activating Obj: %s\n", objName.c_str()));
+ cout << "* Activating Obj: " << objName << endl;
PortableServer::ObjectId_var oid = PortableServer::string_to_ObjectId(objName.c_str());
sub_poa->activate_object_with_id(oid.in(), servant_.get());
@@ -506,7 +508,7 @@ void TestServer::buildObjects()
corbaloc += key;
// Write out corbaloc
- iorFile << corbaloc.c_str() << endl;
+ iorFile << corbaloc << endl;
}
}
}
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/client_main.cpp b/TAO/orbsvcs/examples/ImR/Advanced/client_main.cpp
index bcebff9a94f..3714c16935c 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/client_main.cpp
+++ b/TAO/orbsvcs/examples/ImR/Advanced/client_main.cpp
@@ -2,15 +2,18 @@
#include "TestClient.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
-int main(int argc, char* argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv());
{
- TestClient client(orb.in(), argc, argv);
+ TestClient client(orb.in(), convert.get_argc(), convert.get_ASCII_argv());
client.run();
}
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/manager_main.cpp b/TAO/orbsvcs/examples/ImR/Advanced/manager_main.cpp
index 6be76baf992..71611cb17b9 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/manager_main.cpp
+++ b/TAO/orbsvcs/examples/ImR/Advanced/manager_main.cpp
@@ -3,15 +3,18 @@
#include <ace/Get_Opt.h>
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
-int main(int argc, char* argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
long retryCount = 0;
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv());
- ACE_Get_Opt get_opts(argc, argv, "r:");
+ ACE_Get_Arg_Opt<char> get_opts(convert.get_argc(), convert.get_ASCII_argv(), "r:");
int c;
while ((c = get_opts()) != -1)
{
diff --git a/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp b/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
index ccf813d0e9c..8ebf26df60d 100644
--- a/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
+++ b/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp
@@ -2,16 +2,19 @@
#include "TestServer.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
-int main(int argc, char* argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
CORBA::ORB_var orb;
- orb = CORBA::ORB_init(argc, argv);
+ orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv());
{
- TestServer server(orb.in(), argc, argv);
+ TestServer server(orb.in(), convert.get_argc(), convert.get_ASCII_argv());
server.run();
}
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/Makefile.am b/TAO/orbsvcs/examples/ImR/Combined_Service/Makefile.am
index 47e9fbf75a4..163e1365165 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/Makefile.am
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/Makefile.am
@@ -79,10 +79,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- service_config.idl \
- test.idl
-
## Makefile.ImR_Combined_Service.am
if BUILD_EXCEPTIONS
@@ -153,7 +149,7 @@ libDynServer_la_SOURCES = \
testC.cpp \
testS.cpp
-noinst_HEADERS += \
+noinst_HEADERS = \
dynserver.h \
dynserver_export.h
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/combined.cpp b/TAO/orbsvcs/examples/ImR/Combined_Service/combined.cpp
index 5864e974d00..618fb276e2f 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/combined.cpp
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/combined.cpp
@@ -8,7 +8,7 @@
#include "ace/Service_Config.h"
#include "ace/streams.h"
#include "ace/OS_NS_string.h"
-
+#include "ace/Argv_Type_Converter.h"
using namespace CORBA;
using namespace PortableServer;
@@ -27,7 +27,7 @@ public:
{
ACE_ASSERT(s != 0);
ACE_ASSERT(ACE_OS::strlen(s) > 0);
- return asc_.process_directive(s);
+ return asc_.process_directive(ACE_TEXT_TO_TCHAR_IN(s));
}
virtual void reconfigure() ACE_THROW_SPEC ((CORBA::SystemException))
@@ -36,14 +36,16 @@ public:
}
};
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try {
ACE_Service_Config config;
config.open(argc, argv);
- ORB_var orb = ORB_init(argc, argv);
+ ORB_var orb = ORB_init(convert.get_argc(), convert.get_ASCII_argv());
Object_var obj = orb->resolve_initial_references("RootPOA");
POA_var poa = POA::_narrow(obj.in());
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/controller.cpp b/TAO/orbsvcs/examples/ImR/Combined_Service/controller.cpp
index 0bab1bfd6aa..8e2558f12c3 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/controller.cpp
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/controller.cpp
@@ -6,6 +6,7 @@
#include <ace/streams.h>
#include <ace/SString.h>
#include <ace/Log_Msg.h>
+#include "ace/Argv_Type_Converter.h"
using namespace CORBA;
@@ -39,13 +40,15 @@ namespace {
}
}
-int main(int argc, char* argv[]) {
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
+{
+ ACE_Argv_Type_Converter convert (argc, argv);
try {
- ORB_var orb = ORB_init(argc, argv);
+ ORB_var orb = ORB_init(convert.get_argc(), convert.get_ASCII_argv());
- if (! parse_args(argc, argv)) {
+ if (! parse_args(convert.get_argc(), convert.get_ASCII_argv())) {
showusage();
return 1;
}
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.cpp b/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.cpp
index 8566023c945..36e08acfd2a 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.cpp
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.cpp
@@ -63,7 +63,7 @@ DynServer_Loader::DynServer_Loader(void)
}
int
-DynServer_Loader::init (int argc, ACE_TCHAR* argv[] ACE_ENV_ARG_DECL)
+DynServer_Loader::init (int argc, char* argv[] ACE_ENV_ARG_DECL)
{
try {
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h b/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h
index c222ebe531e..9bc066ca4f8 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h
@@ -31,7 +31,7 @@ public:
// spawns a thread to run an internal orb which has activated
// a single DynServer servant.
- virtual int init (int argc, ACE_TCHAR *argv[]);
+ virtual int init (int argc, char *argv[]);
// Allows the service configurator to shutdown the orb
virtual int fini (void);
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp b/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp
index 0976425f762..83ba21920a8 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp
@@ -3,45 +3,43 @@
#include "testC.h"
+#include <stdexcept>
#include "ace/SString.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_stdio.h"
-#include <stdexcept>
-#include <string>
+#include "ace/Argv_Type_Converter.h"
#define assertTrue(CONDITION) \
if (CONDITION == false) { \
- ACE_CString str ("Error : "#CONDITION" "__FILE__":"); \
+ ACE_CString str("Error : "#CONDITION" "__FILE__":"); \
char line[32]; \
- ACE_OS::sprintf (line, "%d", __LINE__); \
- throw std::runtime_error (str.c_str ()); \
+ ACE_OS::sprintf(line, "%d", __LINE__); \
+ throw std::runtime_error(str.c_str()); \
}
using namespace CORBA;
-int
-main (int argc, char* argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
- try
- {
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ try {
- ORB_var orb = ORB_init (argc, argv);
+ ORB_var orb = ORB_init(convert.get_argc(), convert.get_ASCII_argv());
- Object_var obj = orb->resolve_initial_references ("Test");
- test_var test = test::_narrow (obj.in ());
- assertTrue (!is_nil (test.in ()));
+ Object_var obj = orb->resolve_initial_references("Test");
+ test_var test = test::_narrow(obj.in());
+ assertTrue(! is_nil(test.in()));
- Long n = test->get ();
- Long m = test->get ();
- assertTrue (m == n + 1);
+ Long n = test->get();
+ Long m = test->get();
+ assertTrue(m == n + 1);
- ACE_DEBUG ((LM_DEBUG, "All tests ran successfully.\n"));
+ ACE_DEBUG((LM_DEBUG, "All tests ran successfully.\n"));
- return 0;
- }
- catch (CORBA::Exception& e)
- {
- ACE_PRINT_EXCEPTION (e, "test:");
- }
+ return 0;
+ } catch (CORBA::Exception& e) {
+ ACE_PRINT_EXCEPTION(e, "test:");
+ }
return 1;
}
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/test_server.cpp b/TAO/orbsvcs/examples/ImR/Combined_Service/test_server.cpp
index a3d821fde70..d9a7fd6804f 100644
--- a/TAO/orbsvcs/examples/ImR/Combined_Service/test_server.cpp
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/test_server.cpp
@@ -9,6 +9,7 @@
#include "ace/streams.h"
#include "ace/ARGV.h"
+#include "ace/Argv_Type_Converter.h"
using namespace CORBA;
using namespace PortableServer;
@@ -38,11 +39,13 @@ POA_ptr createPersistPOA(const char* name, POA_ptr root_poa, POAManager_ptr poam
return poa._retn();
}
-int main(int argc, char* argv[]) {
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
+{
+ ACE_Argv_Type_Converter convert (argc, argv);
try {
- ORB_var orb = ORB_init(argc, argv);
+ ORB_var orb = ORB_init(convert.get_argc(), convert.get_ASCII_argv());
Object_var obj = orb->resolve_initial_references("RootPOA");
POA_var root_poa = POA::_narrow(obj.in());
diff --git a/TAO/orbsvcs/examples/LoadBalancing/LoadBalancing.mpc b/TAO/orbsvcs/examples/LoadBalancing/LoadBalancing.mpc
index 3797e1cd0af..7901322f062 100644
--- a/TAO/orbsvcs/examples/LoadBalancing/LoadBalancing.mpc
+++ b/TAO/orbsvcs/examples/LoadBalancing/LoadBalancing.mpc
@@ -7,8 +7,7 @@ project(*idl) : taoidldefaults, anytypecode {
}
project(*Server): taoexe, loadbalancing, pi_server, exceptions {
- avoids += ace_for_tao
- after += *idl
+ after += *idl
Source_Files {
ServerRequestInterceptor.cpp
ORBInitializer.cpp
diff --git a/TAO/orbsvcs/examples/LoadBalancing/Makefile.am b/TAO/orbsvcs/examples/LoadBalancing/Makefile.am
index 1333dc66d63..be112a74267 100644
--- a/TAO/orbsvcs/examples/LoadBalancing/Makefile.am
+++ b/TAO/orbsvcs/examples/LoadBalancing/Makefile.am
@@ -16,7 +16,6 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
## Makefile.LoadBalancing_Idl.am
@@ -50,14 +49,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.LoadBalancing_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -80,14 +74,11 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.LoadBalancing_Server.am
if BUILD_AMI
if BUILD_CORBA_MESSAGING
if BUILD_EXCEPTIONS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -133,7 +124,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_EXCEPTIONS
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h b/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
index 7768134b610..189a1cad016 100644
--- a/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
+++ b/TAO/orbsvcs/examples/LoadBalancing/ServerRequestInterceptor.h
@@ -31,9 +31,7 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_LB_LoadAlert;
-TAO_END_VERSIONED_NAMESPACE_DECL
/**
* @class ServerRequestInterceptor
diff --git a/TAO/orbsvcs/examples/LoadBalancing/client.cpp b/TAO/orbsvcs/examples/LoadBalancing/client.cpp
index 47508dba78e..d2f13bc1206 100644
--- a/TAO/orbsvcs/examples/LoadBalancing/client.cpp
+++ b/TAO/orbsvcs/examples/LoadBalancing/client.cpp
@@ -1,7 +1,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
#include "ace/streams.h"
-
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (LoadBalancing,
client,
@@ -16,7 +16,7 @@ int number;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -49,15 +49,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/orbsvcs/examples/LoadBalancing/server.cpp b/TAO/orbsvcs/examples/LoadBalancing/server.cpp
index 66d41596ce8..591da3c57c0 100644
--- a/TAO/orbsvcs/examples/LoadBalancing/server.cpp
+++ b/TAO/orbsvcs/examples/LoadBalancing/server.cpp
@@ -3,6 +3,7 @@
#include "ORBInitializer.h"
#include "RPS_Monitor.h"
#include "ace/OS.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Get_Opt.h"
@@ -21,7 +22,7 @@ int number;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:s:r:c:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:s:r:c:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -238,8 +239,10 @@ join_object_group (CORBA::ORB_ptr orb,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
ORBInitializer *initializer = 0;
@@ -254,7 +257,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -277,7 +280,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -328,7 +331,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp
index 6c4fd3a47b3..288e3c695af 100644
--- a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp
+++ b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.cpp
@@ -25,7 +25,7 @@ TLS_Client::~TLS_Client ()
}
void
-TLS_Client::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
+TLS_Client::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
init_ORB (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -37,7 +37,7 @@ TLS_Client::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
void
TLS_Client::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
diff --git a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
index b06ffc65f92..1e9c617cb97 100644
--- a/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
+++ b/TAO/orbsvcs/examples/Log/Basic/TLS_Client.h
@@ -31,14 +31,14 @@ class TLS_Client
TLS_Client (void);
~TLS_Client ();
- void init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Init the Client.
void run_tests (ACE_ENV_SINGLE_ARG_DECL);
// Run the tests..
protected:
- void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init_ORB (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/examples/Log/Basic/main.cpp b/TAO/orbsvcs/examples/Log/Basic/main.cpp
index 3b5098b43ad..33ac63e3a3c 100644
--- a/TAO/orbsvcs/examples/Log/Basic/main.cpp
+++ b/TAO/orbsvcs/examples/Log/Basic/main.cpp
@@ -1,5 +1,6 @@
#include "TLS_Client.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Basic,
main,
@@ -9,11 +10,13 @@ ACE_RCSID (Basic,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TLS_Client client; // Telecom Log Service Client
ACE_TRY_NEW_ENV
{
- client.init (argc, argv
+ client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER); //Init the Client
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/examples/Log/Event/Event_Consumer.cpp b/TAO/orbsvcs/examples/Log/Event/Event_Consumer.cpp
index 1b102beac2f..b95683ef2a4 100644
--- a/TAO/orbsvcs/examples/Log/Event/Event_Consumer.cpp
+++ b/TAO/orbsvcs/examples/Log/Event/Event_Consumer.cpp
@@ -1,6 +1,7 @@
#include "Event_Consumer.h"
#include "orbsvcs/CosEventChannelAdminS.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Event,
Event_Consumer,
@@ -12,9 +13,11 @@ ACE_RCSID (Event,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer consumer;
- return consumer.run (argc, argv);
+ return consumer.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/Log/Event/Event_Supplier.cpp b/TAO/orbsvcs/examples/Log/Event/Event_Supplier.cpp
index f65f4a420e9..390fd1eea30 100644
--- a/TAO/orbsvcs/examples/Log/Event/Event_Supplier.cpp
+++ b/TAO/orbsvcs/examples/Log/Event/Event_Supplier.cpp
@@ -1,6 +1,7 @@
#include "Event_Supplier.h"
#include "orbsvcs/CosEventChannelAdminS.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Event,
Event_Supplier,
@@ -16,9 +17,11 @@ ACE_RCSID (Event,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supplier;
- return supplier.run (argc, argv);
+ return supplier.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp b/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp
index 0d27c8860d3..23db295bd76 100644
--- a/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp
+++ b/TAO/orbsvcs/examples/Log/Notify/Notify_Consumer.cpp
@@ -2,6 +2,7 @@
#include "orbsvcs/CosEventChannelAdminS.h"
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify,
Notify_Consumer,
@@ -20,9 +21,11 @@ ACE_RCSID (Notify,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer consumer;
- return consumer.run (argc, argv);
+ return consumer.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/Log/Notify/Notify_Supplier.cpp b/TAO/orbsvcs/examples/Log/Notify/Notify_Supplier.cpp
index 86fbfd2be3c..03ffa87f327 100644
--- a/TAO/orbsvcs/examples/Log/Notify/Notify_Supplier.cpp
+++ b/TAO/orbsvcs/examples/Log/Notify/Notify_Supplier.cpp
@@ -1,6 +1,7 @@
#include "Notify_Supplier.h"
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify,
Notify_Supplier,
@@ -20,9 +21,11 @@ ACE_RCSID (Notify,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supplier;
- return supplier.run (argc, argv);
+ return supplier.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/Log/RTEvent/Makefile.am b/TAO/orbsvcs/examples/Log/RTEvent/Makefile.am
index 52484ae6b74..15f071cbc2a 100644
--- a/TAO/orbsvcs/examples/Log/RTEvent/Makefile.am
+++ b/TAO/orbsvcs/examples/Log/RTEvent/Makefile.am
@@ -35,6 +35,12 @@ RTEvent_Consumer_SOURCES = \
RTEvent_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEventLogAdmin.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTSched.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin_Serv.la \
+ $(TAO_BUILDDIR)/tao/libTAO_Utils.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_ETCL.la \
+ $(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
@@ -71,6 +77,12 @@ RTEvent_Supplier_SOURCES = \
RTEvent_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEventLogAdmin.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTSched.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin_Serv.la \
+ $(TAO_BUILDDIR)/tao/libTAO_Utils.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_ETCL.la \
+ $(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
+ $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_DsLogAdmin.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
diff --git a/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Consumer.cpp b/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Consumer.cpp
index a9ce5387a62..6dff34ef7b7 100644
--- a/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Consumer.cpp
+++ b/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Consumer.cpp
@@ -2,6 +2,7 @@
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (RTEvent,
RTEvent_Consumer,
@@ -13,9 +14,11 @@ ACE_RCSID (RTEvent,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer consumer;
- return consumer.run (argc, argv);
+ return consumer.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.cpp b/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.cpp
index 1a2de3ca9b9..7f2286132ff 100644
--- a/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.cpp
+++ b/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.cpp
@@ -3,6 +3,7 @@
#include "orbsvcs/Event_Service_Constants.h"
#include "ace/OS_main.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (RTEvent,
RTEvent_Supplier,
@@ -18,9 +19,11 @@ ACE_RCSID (RTEvent,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supplier;
- return supplier.run (argc, argv);
+ return supplier.run (convert.get_argc(), convert.get_ASCII_argv());
}
diff --git a/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.cpp b/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.cpp
index 3e6109e1ee1..b48d70383aa 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.cpp
+++ b/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.cpp
@@ -25,6 +25,7 @@
// For in-process Notification Service.
//
#include "ace/Dynamic_Service.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Notify/Service.h"
#include "orbsvcs/Notify/CosNotify_Initializer.h" // NS static link helper.
@@ -204,11 +205,13 @@ private:
};
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- ORB_var orb (ORB_init (argc, argv));
+ ORB_var orb (ORB_init (convert.get_argc(), convert.get_ASCII_argv()));
if (argc < 2)
{
@@ -287,7 +290,7 @@ main (int argc, char* argv[])
if (argc < 3)
space_craft_name = "a"; // Default to spacecraft "a".
else
- space_craft_name = argv[2];
+ space_craft_name = convert.get_ASCII_argv()[2];
// Do a quick mapping to mcast addresses.
//
@@ -322,7 +325,7 @@ main (int argc, char* argv[])
// Start the agent.
//
- Agent agent (space_craft_name, argv[1], channel.in ());
+ Agent agent (space_craft_name, convert.get_ASCII_argv()[1], channel.in ());
orb->run ();
diff --git a/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.mpc b/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.mpc
index 1083905d845..897298573c4 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.mpc
+++ b/TAO/orbsvcs/examples/Notify/Federation/Agent/Agent.mpc
@@ -5,10 +5,5 @@ project : rmcast, orbsvcsexe, notification, notification_skel, notification_serv
exename = agent
after += Gate
libs += Gate
-
- specific (automake) {
- includes += $(srcdir)/..
- } else {
- includes += ..
- }
+ includes += ..
}
diff --git a/TAO/orbsvcs/examples/Notify/Federation/Agent/Makefile.am b/TAO/orbsvcs/examples/Notify/Federation/Agent/Makefile.am
index af43cc3b1fe..d501c88ddad 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/Agent/Makefile.am
+++ b/TAO/orbsvcs/examples/Notify/Federation/Agent/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Agent.am
if BUILD_THREADS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = agent
@@ -55,7 +54,6 @@ agent_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_THREADS
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/Notify/Federation/Gate/Makefile.am b/TAO/orbsvcs/examples/Notify/Federation/Gate/Makefile.am
index 739b4c3cb87..e08d005cca6 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/Gate/Makefile.am
+++ b/TAO/orbsvcs/examples/Notify/Federation/Gate/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Gate.am
if BUILD_THREADS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_LTLIBRARIES = libGate.la
@@ -41,7 +40,6 @@ noinst_HEADERS = \
Gate.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_THREADS
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile.am b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile.am
index 5e4b9de5b61..0b95a973522 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile.am
+++ b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.SpaceCraft.am
if BUILD_THREADS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = craft
@@ -55,7 +54,6 @@ craft_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_THREADS
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
index 2751694dcd7..e858f379b04 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
+++ b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.cpp
@@ -17,6 +17,7 @@
// For in-process Notification Service.
//
#include "ace/Dynamic_Service.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Notify/Service.h"
#include "orbsvcs/Notify/CosNotify_Initializer.h" // NS static link helper.
@@ -33,11 +34,13 @@ using namespace CosNotification;
using namespace CosNotifyChannelAdmin;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- ORB_var orb (ORB_init (argc, argv));
+ ORB_var orb (ORB_init (convert.get_argc(), convert.get_ASCII_argv()));
if (argc < 2)
{
@@ -134,7 +137,7 @@ main (int argc, char* argv[])
ACE_INET_Addr space_craft_addr;
char const* space_craft_name = 0;
- space_craft_name = argv[1];
+ space_craft_name = convert.get_ASCII_argv()[1];
// Do a quick mapping to mcast addresses.
//
diff --git a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc
index 8c44304de30..e5d56c9be40 100644
--- a/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc
+++ b/TAO/orbsvcs/examples/Notify/Federation/SpaceCraft/SpaceCraft.mpc
@@ -5,10 +5,5 @@ project : rmcast, orbsvcsexe, notification, notification_skel, notification_serv
exename = craft
after += Gate
libs += Gate
-
- specific (automake) {
- includes += $(srcdir)/..
- } else {
- includes += ..
- }
+ includes += ..
}
diff --git a/TAO/orbsvcs/examples/Notify/Federation/federation.mwc b/TAO/orbsvcs/examples/Notify/Federation/federation.mwc
new file mode 100644
index 00000000000..5be03124c71
--- /dev/null
+++ b/TAO/orbsvcs/examples/Notify/Federation/federation.mwc
@@ -0,0 +1,5 @@
+// -*- MPC -*-
+// $Id$
+
+workspace {
+}
diff --git a/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp b/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp
index a2aa9dbf434..b65a677e0b8 100644
--- a/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp
+++ b/TAO/orbsvcs/examples/Notify/Filter/Filter.cpp
@@ -28,7 +28,7 @@ FilterClient::~FilterClient ()
}
void
-FilterClient::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
+FilterClient::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
init_ORB (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -77,7 +77,7 @@ FilterClient::done (void)
void
FilterClient::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
this->orb_ = CORBA::ORB_init (argc,
diff --git a/TAO/orbsvcs/examples/Notify/Filter/Filter.h b/TAO/orbsvcs/examples/Notify/Filter/Filter.h
index e7f9cd236a4..5d767320a86 100644
--- a/TAO/orbsvcs/examples/Notify/Filter/Filter.h
+++ b/TAO/orbsvcs/examples/Notify/Filter/Filter.h
@@ -40,7 +40,7 @@ class FilterClient
~FilterClient ();
// Destructor
- void init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Init the Client.
void run (ACE_ENV_SINGLE_ARG_DECL);
@@ -50,7 +50,7 @@ class FilterClient
// Consumer calls done, We're done.
protected:
- void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init_ORB (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/examples/Notify/Filter/main.cpp b/TAO/orbsvcs/examples/Notify/Filter/main.cpp
index 845f7ab68f7..0e3641cd299 100644
--- a/TAO/orbsvcs/examples/Notify/Filter/main.cpp
+++ b/TAO/orbsvcs/examples/Notify/Filter/main.cpp
@@ -2,15 +2,18 @@
// $Id$
#include "Filter.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
FilterClient client;
ACE_TRY_NEW_ENV
{
- client.init (argc, argv
+ client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER); //Init the Client
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/examples/Notify/Lanes/Consumer_Client.cpp b/TAO/orbsvcs/examples/Notify/Lanes/Consumer_Client.cpp
index 942d444d0cf..fed61e55a87 100644
--- a/TAO/orbsvcs/examples/Notify/Lanes/Consumer_Client.cpp
+++ b/TAO/orbsvcs/examples/Notify/Lanes/Consumer_Client.cpp
@@ -9,6 +9,7 @@
#include "tao/ORB_Core.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify, TAO_Notify_Lanes_Consumer_Client, "$Id$")
@@ -26,13 +27,13 @@ TAO_Notify_Lanes_Consumer_Client::~TAO_Notify_Lanes_Consumer_Client ()
int
TAO_Notify_Lanes_Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-LanePriority")))) // LanePriority
+ if ((current_arg = arg_shifter.get_the_parameter ("-LanePriority"))) // LanePriority
{
if (current_arg != 0)
{
@@ -212,13 +213,14 @@ TAO_Notify_Lanes_Consumer_Client::svc (void)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize an ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -232,7 +234,7 @@ main (int argc, char *argv [])
TAO_Notify_Lanes_Consumer_Client client (orb_objects);
- if (client.parse_args (argc, argv) != 0)
+ if (client.parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
ACE_DEBUG ((LM_DEBUG, "Consumer_Client::Error parsing options\n"));
return -1;
diff --git a/TAO/orbsvcs/examples/Notify/Lanes/Makefile.am b/TAO/orbsvcs/examples/Notify/Lanes/Makefile.am
index 4abd3f8af6e..1797a1486f7 100644
--- a/TAO/orbsvcs/examples/Notify/Lanes/Makefile.am
+++ b/TAO/orbsvcs/examples/Notify/Lanes/Makefile.am
@@ -17,7 +17,6 @@ noinst_PROGRAMS =
## Makefile.Notify_Lanes_Consumer.am
-if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
if !BUILD_MINIMUM_CORBA
@@ -46,14 +45,9 @@ Consumer_SOURCES = \
Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RT_Notification.la \
$(TAO_BUILDDIR)/tao/libTAO_RTCORBA.la \
- $(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
+ $(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -70,7 +64,6 @@ Consumer_LDADD = \
endif !BUILD_MINIMUM_CORBA
endif BUILD_RT_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Notify_Lanes_Supplier.am
diff --git a/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.cpp b/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.cpp
index 2acb6bcc18b..12dec500064 100644
--- a/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.cpp
+++ b/TAO/orbsvcs/examples/Notify/Lanes/Supplier_Client.cpp
@@ -10,6 +10,7 @@
#include "orbsvcs/NotifyExtC.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify, TAO_Notify_Lanes_Supplier_Client, "$Id$")
@@ -27,13 +28,13 @@ TAO_Notify_Lanes_Supplier_Client::~TAO_Notify_Lanes_Supplier_Client ()
int
TAO_Notify_Lanes_Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Consumers")))) // Number of consumers that we need to send an event to.
+ if ((current_arg = arg_shifter.get_the_parameter ("-Consumers"))) // Number of consumers that we need to send an event to.
{
if (current_arg != 0)
{
@@ -42,7 +43,7 @@ TAO_Notify_Lanes_Supplier_Client::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput")))) // The file to output the supplier ior to.
+ else if ((current_arg = arg_shifter.get_the_parameter ("-IORoutput"))) // The file to output the supplier ior to.
{
if (current_arg != 0)
{
@@ -212,13 +213,14 @@ TAO_Notify_Lanes_Supplier_Client::svc (void)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize an ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -235,7 +237,7 @@ main (int argc, char *argv [])
/* Create a Client */
TAO_Notify_Lanes_Supplier_Client client (orb_objects);
- if (client.parse_args (argc, argv) != 0)
+ if (client.parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
ACE_DEBUG ((LM_DEBUG, "Supplier_Client::Error parsing options\n"));
return -1;
diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/Makefile.am b/TAO/orbsvcs/examples/Notify/Subscribe/Makefile.am
index fe52343d29b..3064ac4889d 100644
--- a/TAO/orbsvcs/examples/Notify/Subscribe/Makefile.am
+++ b/TAO/orbsvcs/examples/Notify/Subscribe/Makefile.am
@@ -18,9 +18,9 @@ TAO_ROOT = $(top_srcdir)
if !BUILD_MINIMUM_CORBA
-noinst_PROGRAMS = Subscribe
+noinst_PROGRAMS = main
-Subscribe_CPPFLAGS = \
+main_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
@@ -29,12 +29,12 @@ Subscribe_CPPFLAGS = \
-I$(TAO_BUILDDIR)/orbsvcs \
-DTAO_HAS_TYPED_EVENT_CHANNEL
-Subscribe_SOURCES = \
+main_SOURCES = \
Subscribe.cpp \
main.cpp \
Subscribe.h
-Subscribe_LDADD = \
+main_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Skel.la \
diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/Notify_Subscribe.mpc b/TAO/orbsvcs/examples/Notify/Subscribe/Notify_Subscribe.mpc
index 39521d11a30..6684e2215b1 100644
--- a/TAO/orbsvcs/examples/Notify/Subscribe/Notify_Subscribe.mpc
+++ b/TAO/orbsvcs/examples/Notify/Subscribe/Notify_Subscribe.mpc
@@ -2,5 +2,4 @@
// $Id$
project : orbsvcsexe, notification, notification_skel, naming, minimum_corba {
- exename = Subscribe
}
diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp b/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp
index a7a0e96183f..a410ae315e7 100644
--- a/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp
+++ b/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.cpp
@@ -31,7 +31,7 @@ Subscribe::~Subscribe ()
}
void
-Subscribe::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
+Subscribe::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
init_ORB (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -73,11 +73,10 @@ Subscribe::done (void)
void
Subscribe::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.h b/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.h
index 126b842a4ca..0c06932cf8f 100644
--- a/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.h
+++ b/TAO/orbsvcs/examples/Notify/Subscribe/Subscribe.h
@@ -35,7 +35,7 @@ class Subscribe
Subscribe (void);
~Subscribe ();
- void init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Init the Client.
void run (ACE_ENV_SINGLE_ARG_DECL);
@@ -45,7 +45,7 @@ class Subscribe
// Called when all events we are waiting for have occured.
protected:
- void init_ORB (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ void init_ORB (int argc, char *argv[] ACE_ENV_ARG_DECL);
// Initializes the ORB.
void resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp b/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp
index b817728c231..392669fbb4e 100644
--- a/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp
+++ b/TAO/orbsvcs/examples/Notify/Subscribe/main.cpp
@@ -2,15 +2,18 @@
// $Id$
#include "Subscribe.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Subscribe client;
ACE_TRY_NEW_ENV
{
- client.init (argc, argv
+ client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER); //Init the Client
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/examples/Notify/ThreadPool/Consumer_Client.cpp b/TAO/orbsvcs/examples/Notify/ThreadPool/Consumer_Client.cpp
index 480dbb5005c..cfed55e07b4 100644
--- a/TAO/orbsvcs/examples/Notify/ThreadPool/Consumer_Client.cpp
+++ b/TAO/orbsvcs/examples/Notify/ThreadPool/Consumer_Client.cpp
@@ -9,6 +9,7 @@
#include "tao/ORB_Core.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify, TAO_Notify_ThreadPool_Consumer_Client, "$Id$")
@@ -28,25 +29,25 @@ TAO_Notify_ThreadPool_Consumer_Client::~TAO_Notify_ThreadPool_Consumer_Client ()
int
TAO_Notify_ThreadPool_Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter(ACE_TEXT("-ProxySupplier_ThreadPool")))) // Specify a threadpool.
+ if ((current_arg = arg_shifter.get_the_parameter("-ProxySupplier_ThreadPool"))) // Specify a threadpool.
{
this->proxy_supplier_thread_count_ = ACE_OS::atoi (arg_shifter.get_current ());
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter(ACE_TEXT("-MaxEvents")))) // Max Events
+ else if ((current_arg = arg_shifter.get_the_parameter("-MaxEvents"))) // Max Events
{
this->max_events_ = ACE_OS::atoi (arg_shifter.get_current ());
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter(ACE_TEXT("-Delay")))) // seconds wait in consumer per push.
+ else if ((current_arg = arg_shifter.get_the_parameter("-Delay"))) // seconds wait in consumer per push.
{
this->delay_ = ACE_OS::atoi (current_arg);
@@ -215,13 +216,14 @@ TAO_Notify_ThreadPool_Consumer_Client::svc (void)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize an ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -235,7 +237,7 @@ main (int argc, char *argv [])
TAO_Notify_ThreadPool_Consumer_Client client (orb_objects);
- if (client.parse_args (argc, argv) != 0)
+ if (client.parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
ACE_DEBUG ((LM_DEBUG, "Consumer_Client::Error parsing options\n"));
return -1;
diff --git a/TAO/orbsvcs/examples/Notify/ThreadPool/Makefile.am b/TAO/orbsvcs/examples/Notify/ThreadPool/Makefile.am
index 7cc148162fc..a1ebe89bc56 100644
--- a/TAO/orbsvcs/examples/Notify/ThreadPool/Makefile.am
+++ b/TAO/orbsvcs/examples/Notify/ThreadPool/Makefile.am
@@ -17,7 +17,6 @@ noinst_PROGRAMS =
## Makefile.Notify_ThreadPool_Consumer.am
-if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
if !BUILD_MINIMUM_CORBA
@@ -46,11 +45,6 @@ Consumer_SOURCES = \
Consumer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_RTPortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RT_Notification.la \
$(TAO_BUILDDIR)/tao/libTAO_RTCORBA.la \
@@ -71,11 +65,9 @@ Consumer_LDADD = \
endif !BUILD_MINIMUM_CORBA
endif BUILD_RT_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Notify_ThreadPool_Supplier.am
-if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
if !BUILD_MINIMUM_CORBA
@@ -104,11 +96,6 @@ Supplier_SOURCES = \
Supplier_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_RTPortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RT_Notification.la \
$(TAO_BUILDDIR)/tao/libTAO_RTCORBA.la \
@@ -129,7 +116,6 @@ Supplier_LDADD = \
endif !BUILD_MINIMUM_CORBA
endif BUILD_RT_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/examples/Notify/ThreadPool/Supplier_Client.cpp b/TAO/orbsvcs/examples/Notify/ThreadPool/Supplier_Client.cpp
index fb8dcf0c8ad..9ff3ca8bd3e 100644
--- a/TAO/orbsvcs/examples/Notify/ThreadPool/Supplier_Client.cpp
+++ b/TAO/orbsvcs/examples/Notify/ThreadPool/Supplier_Client.cpp
@@ -10,6 +10,7 @@
#include "orbsvcs/NotifyExtC.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify, TAO_Notify_ThreadPool_Supplier_Client, "$Id$")
@@ -30,13 +31,13 @@ TAO_Notify_ThreadPool_Supplier_Client::~TAO_Notify_ThreadPool_Supplier_Client ()
int
TAO_Notify_ThreadPool_Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Consumers")))) // Number of consumers that we need to send an event to.
+ if ((current_arg = arg_shifter.get_the_parameter ("-Consumers"))) // Number of consumers that we need to send an event to.
{
if (current_arg != 0)
{
@@ -45,17 +46,17 @@ TAO_Notify_ThreadPool_Supplier_Client::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter(ACE_TEXT("-EventChannel_ThreadPool")))) // Specify a threadpool.
+ else if ((current_arg = arg_shifter.get_the_parameter("-EventChannel_ThreadPool"))) // Specify a threadpool.
{
this->ec_thread_count_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter(ACE_TEXT("-ProxyConsumer_ThreadPool")))) // Specify a threadpool.
+ else if ((current_arg = arg_shifter.get_the_parameter("-ProxyConsumer_ThreadPool"))) // Specify a threadpool.
{
this->proxy_consumer_thread_count_= ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput")))) // The file to output the supplier ior to.
+ else if ((current_arg = arg_shifter.get_the_parameter ("-IORoutput"))) // The file to output the supplier ior to.
{
if (current_arg != 0)
{
@@ -64,7 +65,7 @@ TAO_Notify_ThreadPool_Supplier_Client::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter(ACE_TEXT("-MaxEvents")))) // Max Events
+ else if ((current_arg = arg_shifter.get_the_parameter("-MaxEvents"))) // Max Events
{
this->max_events_ = ACE_OS::atoi (arg_shifter.get_current ());
@@ -210,13 +211,14 @@ TAO_Notify_ThreadPool_Supplier_Client::svc (void)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize an ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -233,7 +235,7 @@ main (int argc, char *argv [])
/* Create a Client */
TAO_Notify_ThreadPool_Supplier_Client client (orb_objects);
- if (client.parse_args (argc, argv) != 0)
+ if (client.parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
ACE_DEBUG ((LM_DEBUG, "Supplier_Client::Error parsing options\n"));
return -1;
diff --git a/TAO/orbsvcs/examples/ORT/Makefile.am b/TAO/orbsvcs/examples/ORT/Makefile.am
index b2b574f4943..bbc3ee76c13 100644
--- a/TAO/orbsvcs/examples/ORT/Makefile.am
+++ b/TAO/orbsvcs/examples/ORT/Makefile.am
@@ -112,11 +112,6 @@ sum_server-stamp: $(srcdir)/sum_server.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Gateway.idl \
- ObjectReferenceFactory.idl \
- sum_server.idl
-
endif !BUILD_MINIMUM_CORBA
## Makefile.ORT_Gateway.am
diff --git a/TAO/orbsvcs/examples/ORT/ORT.mpc b/TAO/orbsvcs/examples/ORT/ORT.mpc
index 82fc927aab8..ebe74844f8d 100644
--- a/TAO/orbsvcs/examples/ORT/ORT.mpc
+++ b/TAO/orbsvcs/examples/ORT/ORT.mpc
@@ -42,7 +42,7 @@ project(*Server) : orbsvcsexe, dynamicinterface, ifr_client, minimum_corba, iori
}
project(*Client) : orbsvcsexe, event, minimum_corba {
- after += *Idl *Server
+ after += *Server
source_files {
client.cpp
sum_serverC.cpp
diff --git a/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.cpp b/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.cpp
index 4fc119dfc39..f81c30f78ae 100644
--- a/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.cpp
+++ b/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.cpp
@@ -49,7 +49,7 @@ Server_IORInterceptor::components_established (
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- Gateway_ObjRef_Factory *my_factory = 0;
+ Gateway_ObjRef_Factory *my_factory;
PortableInterceptor::ObjectReferenceFactory_var current_factory =
ior_info->current_factory (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.h b/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.h
index a77551ad136..372f50ec150 100644
--- a/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.h
+++ b/TAO/orbsvcs/examples/ORT/Server_IORInterceptor.h
@@ -20,7 +20,7 @@
#endif /* _MSC_VER */
class Server_IORInterceptor
- : public virtual PortableInterceptor::IORInterceptor_3_0,
+ : public virtual PortableInterceptor::IORInterceptor,
public virtual TAO_Local_RefCounted_Object
{
public:
diff --git a/TAO/orbsvcs/examples/ORT/client.cpp b/TAO/orbsvcs/examples/ORT/client.cpp
index 2ab7caa0a2b..a14758fcaf0 100644
--- a/TAO/orbsvcs/examples/ORT/client.cpp
+++ b/TAO/orbsvcs/examples/ORT/client.cpp
@@ -2,6 +2,7 @@
#include "sum_serverC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ORT,
client,
@@ -12,7 +13,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,16 +34,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "client_sum_orb", ACE_TRY_ENV);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
+ "client_sum_orb", ACE_TRY_ENV);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var obj =
diff --git a/TAO/orbsvcs/examples/ORT/gateway_server.cpp b/TAO/orbsvcs/examples/ORT/gateway_server.cpp
index d52bc63f0f2..bc8e494a2c9 100644
--- a/TAO/orbsvcs/examples/ORT/gateway_server.cpp
+++ b/TAO/orbsvcs/examples/ORT/gateway_server.cpp
@@ -5,13 +5,14 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,19 +35,20 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
/// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"gateway_server_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
/// Resolve reference to RootPOA
@@ -162,7 +164,7 @@ main (int argc, char *argv[])
/// If the ior_output_file exists, output the IOR to it.
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing "
diff --git a/TAO/orbsvcs/examples/ORT/server.cpp b/TAO/orbsvcs/examples/ORT/server.cpp
index 1b76cecb393..f26e69452d6 100644
--- a/TAO/orbsvcs/examples/ORT/server.cpp
+++ b/TAO/orbsvcs/examples/ORT/server.cpp
@@ -6,13 +6,14 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,8 +36,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -61,13 +64,12 @@ main (int argc, char *argv[])
// The usual initialization stuff
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"server_sum_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Resolve reference to RootPOA
@@ -124,7 +126,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the IOR to it.
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing "
diff --git a/TAO/orbsvcs/examples/PSS/Simple_Naming.cpp b/TAO/orbsvcs/examples/PSS/Simple_Naming.cpp
index 91add5d9900..2f54ef7820e 100644
--- a/TAO/orbsvcs/examples/PSS/Simple_Naming.cpp
+++ b/TAO/orbsvcs/examples/PSS/Simple_Naming.cpp
@@ -28,7 +28,7 @@ const char *ior_output_file = "simple_naming.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -52,7 +52,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/examples/PSS/client.cpp b/TAO/orbsvcs/examples/PSS/client.cpp
index a634a736993..63299c53c57 100644
--- a/TAO/orbsvcs/examples/PSS/client.cpp
+++ b/TAO/orbsvcs/examples/PSS/client.cpp
@@ -23,7 +23,7 @@
#include "ServerC.h"
#include "Simple_Naming_i.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/orbsvcs/examples/PSS/server.cpp b/TAO/orbsvcs/examples/PSS/server.cpp
index 0f305dfae1d..03162c04a51 100644
--- a/TAO/orbsvcs/examples/PSS/server.cpp
+++ b/TAO/orbsvcs/examples/PSS/server.cpp
@@ -25,7 +25,7 @@
ACE_RCSID (PSS, client, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Consumer.cpp b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Consumer.cpp
index 05b214aabbc..b4c3bf4efd2 100644
--- a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Consumer.cpp
+++ b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Consumer.cpp
@@ -7,6 +7,7 @@
#include "orbsvcs/CosNamingC.h"
#include "ace/Arg_Shifter.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Consumer,
@@ -18,11 +19,13 @@ const RtecEventComm::EventType MY_EVENT_TYPE = ACE_ES_EVENT_UNDEFINED + 1;
static const char* ecname = 0;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer consumer;
- return consumer.run (argc, argv);
+ return consumer.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -179,7 +182,7 @@ Consumer::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL)
int
Consumer::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/examples/RtEC/IIOPGateway/EC.cpp b/TAO/orbsvcs/examples/RtEC/IIOPGateway/EC.cpp
index a25e9f67569..8415251c710 100644
--- a/TAO/orbsvcs/examples/RtEC/IIOPGateway/EC.cpp
+++ b/TAO/orbsvcs/examples/RtEC/IIOPGateway/EC.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/Event/EC_Gateway.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Supplier,
@@ -16,11 +17,13 @@ ACE_RCSID (EC_Examples,
static const char* ecname = 0;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC channel;
- return channel.run (argc, argv);
+ return channel.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -138,7 +141,7 @@ EC::run (int argc, char* argv[])
int
EC::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Gateway.cpp b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Gateway.cpp
index c1be767ffd8..f7a3bf17e16 100644
--- a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Gateway.cpp
+++ b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Gateway.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/Event/EC_Gateway_IIOP_Factory.h"
#include "ace/Arg_Shifter.h"
#include "ace/Dynamic_Service.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Supplier,
@@ -17,11 +18,13 @@ static const char* supplierec = 0;
static const char* consumerec = 0;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Gateway gateway;
- return gateway.run (argc, argv);
+ return gateway.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -160,7 +163,7 @@ Gateway::run (int argc, char* argv[])
int
Gateway::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Makefile.am b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Makefile.am
index 2feefe5c4d5..011e6455fee 100644
--- a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Makefile.am
+++ b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.RtEC_IIOPGateway.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Gateway
@@ -49,7 +48,6 @@ Gateway_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.RtEC_IIOPGateway_Consumer.am
@@ -89,7 +87,6 @@ endif BUILD_CORBA_MESSAGING
## Makefile.RtEC_IIOPGateway_EC.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += EC
@@ -120,7 +117,6 @@ EC_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.RtEC_IIOPGateway_Supplier.am
diff --git a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Supplier.cpp b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Supplier.cpp
index aad09c037e8..3fa33011289 100644
--- a/TAO/orbsvcs/examples/RtEC/IIOPGateway/Supplier.cpp
+++ b/TAO/orbsvcs/examples/RtEC/IIOPGateway/Supplier.cpp
@@ -8,6 +8,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Supplier,
@@ -19,11 +20,13 @@ const RtecEventComm::EventType MY_EVENT_TYPE = ACE_ES_EVENT_UNDEFINED + 1;
static const char* ecname = 0;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supplier;
- return supplier.run (argc, argv);
+ return supplier.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -174,7 +177,7 @@ Supplier::disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
int
Supplier::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/examples/RtEC/Kokyu/Makefile.am b/TAO/orbsvcs/examples/RtEC/Kokyu/Makefile.am
index a3eaf65c59f..bfc7bc5aa08 100644
--- a/TAO/orbsvcs/examples/RtEC/Kokyu/Makefile.am
+++ b/TAO/orbsvcs/examples/RtEC/Kokyu/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.RtECKokyu.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS = Service
@@ -55,7 +54,6 @@ Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/RtEC/Kokyu/Service.cpp b/TAO/orbsvcs/examples/RtEC/Kokyu/Service.cpp
index 3a01a04e9c0..21baca54cea 100644
--- a/TAO/orbsvcs/examples/RtEC/Kokyu/Service.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Kokyu/Service.cpp
@@ -1,5 +1,6 @@
// $Id$
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Sched/Reconfig_Scheduler.h"
#include "orbsvcs/Runtime_Scheduler.h"
//#include "orbsvcs/Event/Module_Factory.h"
@@ -42,8 +43,10 @@ typedef TAO_Reconfig_Scheduler<TAO_RMS_FAIR_Reconfig_Sched_Strategy, TAO_SYNCH_M
typedef TAO_Reconfig_Scheduler<TAO_MUF_FAIR_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> RECONFIG_MUF_SCHED_TYPE;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
//TAO_EC_Default_Factory::init_svcs ();
TAO_EC_Kokyu_Factory::init_svcs ();
@@ -54,10 +57,10 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_ERROR ((LM_ERROR,
"Usage: Service [-o IOR_file_name]\n"));
@@ -497,14 +500,14 @@ main (int argc, char* argv[])
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "cs:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "cs:");
int c;
while ((c = get_opts ()) != -1)
switch (c)
{
case 's':
- sched_type = ACE_TEXT_ALWAYS_CHAR(get_opts.opt_arg ());
+ sched_type = ACE_TEXT_TO_CHAR_IN(get_opts.opt_arg ());
break;
case '?':
diff --git a/TAO/orbsvcs/examples/RtEC/MCast/MCast.cpp b/TAO/orbsvcs/examples/RtEC/MCast/MCast.cpp
index f61cb958eeb..81bd9b3ab9e 100644
--- a/TAO/orbsvcs/examples/RtEC/MCast/MCast.cpp
+++ b/TAO/orbsvcs/examples/RtEC/MCast/MCast.cpp
@@ -14,6 +14,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
MCast,
@@ -25,8 +26,10 @@ const char *udp_mcast_address =
int parse_args (int argc, char *argv[]);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// Register the default factory in the Service Configurator.
// If your platform supports static constructors then you can
// simply using the ACE_STATIC_SVC_DEFINE() macro, unfortunately TAO
@@ -49,13 +52,13 @@ main (int argc, char* argv[])
// Create the ORB, pass the argv list for parsing.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the arguments, you usually want to do this after
// invoking ORB_init() because ORB_init() will remove all the
// -ORB options from the command line.
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_ERROR ((LM_ERROR,
"Usage: Service [-m udp_mcast_addr]\n"));
@@ -354,7 +357,7 @@ main (int argc, char* argv[])
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "m:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/examples/RtEC/MCast/Makefile.am b/TAO/orbsvcs/examples/RtEC/MCast/Makefile.am
index 704f948f145..1f85d98f452 100644
--- a/TAO/orbsvcs/examples/RtEC/MCast/Makefile.am
+++ b/TAO/orbsvcs/examples/RtEC/MCast/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.RtEC_MCast.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS = MCast
@@ -54,7 +53,6 @@ MCast_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/RtEC/Schedule/Makefile.am b/TAO/orbsvcs/examples/RtEC/Schedule/Makefile.am
index c44dc095367..d4b3c2e8f48 100644
--- a/TAO/orbsvcs/examples/RtEC/Schedule/Makefile.am
+++ b/TAO/orbsvcs/examples/RtEC/Schedule/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.RtEC_Schedule.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS = Service
@@ -53,7 +52,6 @@ Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp b/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp
index bb27f0bad68..05e5720ca3e 100644
--- a/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Schedule/Service.cpp
@@ -15,6 +15,7 @@
#include "ace/Sched_Params.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(EC_Examples, Service, "$Id$")
@@ -25,8 +26,10 @@ int parse_args (int argc, char *argv[]);
typedef TAO_Reconfig_Scheduler<TAO_MUF_FAIR_Reconfig_Sched_Strategy, TAO_SYNCH_MUTEX> RECONFIG_SCHED_TYPE;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -34,10 +37,10 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_ERROR ((LM_ERROR,
"Usage: Service [-o IOR_file_name]\n"));
@@ -383,7 +386,7 @@ main (int argc, char* argv[])
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "c");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "c");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/examples/RtEC/Simple/Consumer.cpp b/TAO/orbsvcs/examples/RtEC/Simple/Consumer.cpp
index e8af9a77ed8..a2cb57cbef6 100644
--- a/TAO/orbsvcs/examples/RtEC/Simple/Consumer.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Simple/Consumer.cpp
@@ -4,17 +4,20 @@
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "orbsvcs/CosNamingC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Consumer,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Consumer consumer;
- return consumer.run (argc, argv);
+ return consumer.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/RtEC/Simple/Makefile.am b/TAO/orbsvcs/examples/RtEC/Simple/Makefile.am
index 50a8207d38d..904b8f97d78 100644
--- a/TAO/orbsvcs/examples/RtEC/Simple/Makefile.am
+++ b/TAO/orbsvcs/examples/RtEC/Simple/Makefile.am
@@ -52,7 +52,6 @@ endif BUILD_CORBA_MESSAGING
## Makefile.RtEC_Simple_Service.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Service
@@ -84,7 +83,6 @@ Service_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.RtEC_Simple_Supplier.am
diff --git a/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp b/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
index a3bd5e5740d..5085c1cc50e 100644
--- a/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Simple/Service.cpp
@@ -5,6 +5,7 @@
#include "ace/Get_Opt.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Service,
@@ -15,8 +16,10 @@ const char *ior_output_file = "ec.ior";
int parse_args (int argc, char *argv[]);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -24,7 +27,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
@@ -82,7 +85,7 @@ main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -116,7 +119,7 @@ main (int argc, char* argv[])
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/examples/RtEC/Simple/Supplier.cpp b/TAO/orbsvcs/examples/RtEC/Simple/Supplier.cpp
index 21ced08639e..af29866c0ec 100644
--- a/TAO/orbsvcs/examples/RtEC/Simple/Supplier.cpp
+++ b/TAO/orbsvcs/examples/RtEC/Simple/Supplier.cpp
@@ -5,17 +5,20 @@
#include "orbsvcs/Event_Service_Constants.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Examples,
Supplier,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Supplier supplier;
- return supplier.run (argc, argv);
+ return supplier.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/examples/Security/SecurityLevel1/client.cpp b/TAO/orbsvcs/examples/Security/SecurityLevel1/client.cpp
index b7779c65615..4e82a15ffa4 100644
--- a/TAO/orbsvcs/examples/Security/SecurityLevel1/client.cpp
+++ b/TAO/orbsvcs/examples/Security/SecurityLevel1/client.cpp
@@ -9,7 +9,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -32,7 +32,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp b/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
index 2b39bda82e3..e2550d85d06 100644
--- a/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
+++ b/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
@@ -9,7 +9,7 @@ ACE_RCSID (SecurityLevel1,
const char *ior_output_file = 0;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/orbsvcs/examples/Security/Send_File/Makefile.am b/TAO/orbsvcs/examples/Security/Send_File/Makefile.am
index 22d47b21b84..4d148a8f862 100644
--- a/TAO/orbsvcs/examples/Security/Send_File/Makefile.am
+++ b/TAO/orbsvcs/examples/Security/Send_File/Makefile.am
@@ -48,9 +48,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Security_Send_File_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/orbsvcs/examples/Security/Send_File/client.cpp b/TAO/orbsvcs/examples/Security/Send_File/client.cpp
index 507bdde5847..1c930262112 100644
--- a/TAO/orbsvcs/examples/Security/Send_File/client.cpp
+++ b/TAO/orbsvcs/examples/Security/Send_File/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
ACE_RCSID(Send_File, client, "$Id$")
@@ -11,7 +12,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,15 +35,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/examples/Security/Send_File/server.cpp b/TAO/orbsvcs/examples/Security/Send_File/server.cpp
index 97a4beace1c..c71c738e8bd 100644
--- a/TAO/orbsvcs/examples/Security/Send_File/server.cpp
+++ b/TAO/orbsvcs/examples/Security/Send_File/server.cpp
@@ -4,6 +4,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Send_File, server, "$Id$")
@@ -12,7 +13,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/orbsvcs/AV.mpc b/TAO/orbsvcs/orbsvcs/AV.mpc
index 1a2b0bdadab..77e99306a29 100644
--- a/TAO/orbsvcs/orbsvcs/AV.mpc
+++ b/TAO/orbsvcs/orbsvcs/AV.mpc
@@ -1,8 +1,7 @@
// -*- MPC -*-
// $Id$
-project(AV) : orbsvcslib, core, property_serv, naming, qos, tao_versioning_idl_defaults {
- avoids += ace_for_tao
+project(AV) : orbsvcslib, core, property, naming, qos {
sharedname = TAO_AV
idlflags += -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h
dynamicflags = TAO_AV_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp
index 2b362905c3b..ab7e90ef875 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.cpp
@@ -14,10 +14,10 @@
//
// ============================================================================
-#include "orbsvcs/AV/AVStreams_i.h"
-#include "orbsvcs/AV/sfp.h"
-#include "orbsvcs/AV/MCast.h"
-#include "orbsvcs/AV/RTCP.h"
+#include "AVStreams_i.h"
+#include "sfp.h"
+#include "MCast.h"
+#include "RTCP.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -25,15 +25,13 @@
#include "ace/OS_NS_arpa_inet.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/AV/AVStreams_i.i"
+#include "AVStreams_i.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (AV,
AVStreams_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_Qos
//------------------------------------------------------------
@@ -1853,8 +1851,8 @@ TAO_StreamEndPoint::connect (AVStreams::StreamEndPoint_ptr responder,
for (u_int i=0;i<peer_protocols.length ();i++)
{
for (u_int j=0;j<this->protocols_.length ();j++)
- if (ACE_OS::strcmp (peer_protocols [i],
- this->protocols_[j]) == 0)
+ if (ACE_OS::strcmp (peer_protocols [i].in(),
+ this->protocols_[j].in()) == 0)
{
// we'll agree upon the first protocol that matches.
this->protocol_ = CORBA::string_dup (peer_protocols [i]);
@@ -2069,7 +2067,7 @@ TAO_StreamEndPoint::start (const AVStreams::flowSpec &flow_spec
forward_begin != end; ++forward_begin)
{
TAO_FlowSpec_Entry *entry = *forward_begin;
- if (ACE_OS::strcmp (entry->flowname (), flow_spec [i]) == 0)
+ if (ACE_OS::strcmp (entry->flowname (), flow_spec [i].in()) == 0)
{
// entry->protocol_object ()->start ();
if (entry->handler () != 0)
@@ -2088,7 +2086,7 @@ TAO_StreamEndPoint::start (const AVStreams::flowSpec &flow_spec
reverse_begin != end; ++reverse_begin)
{
TAO_FlowSpec_Entry *entry = *reverse_begin;
- if (ACE_OS::strcmp (entry->flowname (), flow_spec [i]) == 0)
+ if (ACE_OS::strcmp (entry->flowname (), flow_spec [i].in()) == 0)
{
// entry->protocol_object ()->start ();
if (entry->handler () != 0)
@@ -2620,7 +2618,7 @@ TAO_StreamEndPoint::remove_fep (const char *flow_name
// redefine the "Flows" property
AVStreams::flowSpec new_flows (this->flows_.length ());
for (u_int i=0, j=0 ; i <this->flows_.length (); i++)
- if (ACE_OS::strcmp (flow_name, this->flows_[i]) != 0)
+ if (ACE_OS::strcmp (flow_name, this->flows_[i].in()) != 0)
new_flows[j++] = this->flows_[i];
CORBA::Any flows;
@@ -2873,7 +2871,7 @@ TAO_StreamEndPoint_A::multiconnect (AVStreams::streamQoS &stream_qos,
if (result == 0)
{
mcast_addr = dynamic_cast<ACE_INET_Addr *> (entry->address ());
- char str_addr [BUFSIZ];
+ ACE_TCHAR str_addr [BUFSIZ];
result = mcast_addr->addr_to_string (str_addr, BUFSIZ);
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR, "TAO_StreamEndPointA::multiconnect ::addr_to_string failed\n"), 0);
@@ -2898,7 +2896,7 @@ TAO_StreamEndPoint_A::multiconnect (AVStreams::streamQoS &stream_qos,
0);
mcast_addr->set (this->mcast_port_, this->mcast_addr_.c_str ());
this->mcast_port_++;
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
mcast_addr->addr_to_string (buf, BUFSIZ);
if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG, "%s\n", buf));
TAO_Forward_FlowSpec_Entry *new_entry;
@@ -3844,7 +3842,7 @@ TAO_MMDevice::remove_fdev (const char *flow_name
AVStreams::flowSpec new_flows (this->flows_.length ());
for (u_int i=0, j=0 ; i <this->flows_.length (); i++)
- if (ACE_OS::strcmp (flow_name, this->flows_[i]) != 0)
+ if (ACE_OS::strcmp (flow_name, this->flows_[i].in()) != 0)
new_flows[j++] = this->flows_[i];
CORBA::Any flows;
@@ -4244,7 +4242,7 @@ TAO_FlowConnection::add_producer (AVStreams::FlowProducer_ptr producer,
this->mcast_addr_.c_str ()
);
- char buf [BUFSIZ];
+ ACE_TCHAR buf [BUFSIZ];
mcast_addr.addr_to_string (buf, BUFSIZ);
ACE_OS::sprintf (mcast_address, "%s=%s", this->protocol_.in (), buf);
}
@@ -5298,5 +5296,3 @@ TAO_Tokenizer::operator [] (size_t index) const
return this->token_array_[index];
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h
index 8e23294c9bc..c40d26c3e1e 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h
+++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.h
@@ -15,18 +15,6 @@
#define AVSTREAMS_I_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/AV_Core.h"
-
-#include "orbsvcs/AV/AV_export.h"
-#include "orbsvcs/CosPropertyS.h"
-#include "orbsvcs/AVStreamsS.h"
-#include "orbsvcs/Property/CosPropertyService_i.h"
-#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/AV/AV_Core.h"
-#include "orbsvcs/AV/Endpoint_Strategy.h"
-#include "orbsvcs/Null_MediaCtrlS.h"
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-
#include "ace/OS.h"
#include "ace/SOCK_Dgram_Mcast.h"
#include "ace/ATM_Addr.h"
@@ -40,11 +28,19 @@
#include "ace/Svc_Handler.h"
#include "ace/SOCK_Acceptor.h"
+#include "orbsvcs/AV/AV_export.h"
+#include "orbsvcs/CosPropertyS.h"
+#include "orbsvcs/AVStreamsS.h"
+#include "orbsvcs/Property/CosPropertyService_i.h"
+#include "orbsvcs/CosNamingC.h"
+#include "orbsvcs/AV/AV_Core.h"
+#include "orbsvcs/AV/Endpoint_Strategy.h"
+#include "orbsvcs/Null_MediaCtrlS.h"
+#include "orbsvcs/AV/FlowSpec_Entry.h"
+
#define FLOWSPEC_MAX 5
// for the Hash_Map helper classes.
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Hash_Map_Manager <ACE_CString,AVStreams::FlowEndPoint_var,ACE_Null_Mutex> FlowEndPoint_Map;
typedef ACE_Hash_Map_Entry <ACE_CString,AVStreams::FlowEndPoint_var> FlowEndPoint_Map_Entry;
typedef ACE_Hash_Map_Iterator <ACE_CString,AVStreams::FlowEndPoint_var,ACE_Null_Mutex> FlowEndPoint_Map_Iterator;
@@ -54,6 +50,7 @@ typedef ACE_Hash_Map_Entry <ACE_CString,TAO_AV_Flow_Handler*> Flow_Handler_Map_E
typedef ACE_Hash_Map_Iterator <ACE_CString,TAO_AV_Flow_Handler*,ACE_Null_Mutex> Flow_Handler_Map_Iterator;
+#include "AV_Core.h"
class TAO_AV_Export AV_Null_MediaCtrl
: public virtual POA_Null_MediaCtrl
@@ -1521,16 +1518,15 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-#include "orbsvcs/AV/Transport.h"
+#include "Transport.h"
#if defined (__ACE_INLINE__)
#include "tao/debug.h"
-#include "orbsvcs/AV/AVStreams_i.i"
+#include "AVStreams_i.i"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/AV/Flows_T.h"
+#include "Flows_T.h"
#include /**/ "ace/post.h"
#endif /* AVSTREAMS_I_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.i b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.i
index 81731c09f05..e192b5f05a0 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.i
+++ b/TAO/orbsvcs/orbsvcs/AV/AVStreams_i.i
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// AVStreams_i.i
ACE_INLINE
TAO_AV_QoS &
@@ -59,4 +58,4 @@ TAO_AV_QoS::get_flow_qos (const char *flowname,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp
index 1525b981483..de9876a3e7b 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/AV_Core.cpp
@@ -24,8 +24,6 @@
#include "ace/Dynamic_Service.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_Core
//------------------------------------------------------------
@@ -1169,6 +1167,7 @@ TAO_AV_Core::get_flowname (const char *flow_spec_entry_str)
return CORBA::string_dup (flow_name.c_str ());
}
+
ACE_CString
TAO_AV_Core::get_control_flowname(const char *flowname)
{
@@ -1182,5 +1181,3 @@ TAO_AV_Core::get_control_flowname(const char *flowname)
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template ACE_Singleton<TAO_AV_Core, ACE_Null_Mutex> *ACE_Singleton<TAO_AV_Core, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/AV_Core.h b/TAO/orbsvcs/orbsvcs/AV/AV_Core.h
index 4a8f29aa137..75cb061cf05 100644
--- a/TAO/orbsvcs/orbsvcs/AV/AV_Core.h
+++ b/TAO/orbsvcs/orbsvcs/AV/AV_Core.h
@@ -23,12 +23,6 @@
#include "ace/Unbounded_Set.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Base_StreamEndPoint;
class TAO_AV_Connector_Registry;
class TAO_AV_Acceptor_Registry;
@@ -39,6 +33,7 @@ class TAO_AV_Transport_Item;
class TAO_AV_Transport_Factory;
class TAO_AV_Flow_Protocol_Item;
class TAO_AV_Flow_Protocol_Factory;
+class ACE_Reactor;
typedef ACE_Unbounded_Set <TAO_FlowSpec_Entry*> TAO_AV_FlowSpecSet;
typedef ACE_Unbounded_Set_Iterator <TAO_FlowSpec_Entry*> TAO_AV_FlowSpecSetItor;
@@ -175,7 +170,5 @@ TAO_AV_SINGLETON_DECLARE (ACE_Singleton, TAO_AV_Core, ACE_Null_Mutex)
typedef ACE_Singleton<TAO_AV_Core, ACE_Null_Mutex> TAO_AV_CORE;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_AV_CORE_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp
index 4d15bdd853a..e3650819d12 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.cpp
@@ -14,7 +14,7 @@
//
// ============================================================================
-#include "orbsvcs/AV/Endpoint_Strategy.h"
+#include "Endpoint_Strategy.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -23,8 +23,6 @@
ACE_RCSID(AV, Endpoint_Strategy, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ----------------------------------------------------------------------
// TAO_AV_Endpoint_Strategy
// ----------------------------------------------------------------------
@@ -107,11 +105,11 @@ TAO_AV_Endpoint_Process_Strategy::activate (void)
-1);
// Create a unique semaphore name, using my hostname, and pid.
- char sem_str [BUFSIZ];
+ ACE_TCHAR sem_str [BUFSIZ];
// create a unique semaphore name
ACE_OS::sprintf (sem_str,
- "%s:%s:%ld",
+ ACE_TEXT("%s:%s:%ld"),
"TAO_AV_Process_Semaphore",
this->host_,
static_cast<long int> (this->pid_));
@@ -431,5 +429,3 @@ TAO_AV_Endpoint_Process_Strategy_B::get_stream_endpoint (ACE_ENV_SINGLE_ARG_DECL
ACE_CHECK_RETURN (-1);
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h
index 2cc9158853b..61a55dd05d5 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -15,8 +16,7 @@
#define TAO_AV_ENDPOINT_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/AVStreams_i.h"
-#include "ace/os_include/os_netdb.h"
+#include "AVStreams_i.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -25,12 +25,6 @@
# pragma warning (disable : 4250)
#endif /* _MSC_VER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Process_Options;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_AV_Endpoint_Strategy
*
@@ -177,10 +171,8 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// Include the templates here.
-#include "orbsvcs/AV/Endpoint_Strategy_T.h"
+#include "Endpoint_Strategy_T.h"
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp
index b52287ef621..afc93eb5ddc 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.cpp
@@ -1,22 +1,19 @@
// $Id$
-#ifndef TAO_AV_ENDPOINT_STRATEGY_T_CPP
-#define TAO_AV_ENDPOINT_STRATEGY_T_CPP
+#ifndef TAO_AV_ENDPOINT_STRATEGY_T_C
+#define TAO_AV_ENDPOINT_STRATEGY_T_C
-#include "orbsvcs/AV/Endpoint_Strategy_T.h"
+#include "Endpoint_Strategy_T.h"
#include "tao/debug.h"
#include "ace/Process_Semaphore.h"
-#include "ace/OS_NS_unistd.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// ----------------------------------------------------------------------
// TAO_AV_Endpoint_Reactive_Strategy
// ----------------------------------------------------------------------
+
template <class T_StreamEndpoint, class T_VDev , class T_MediaCtrl>
TAO_AV_Endpoint_Reactive_Strategy <T_StreamEndpoint, T_VDev, T_MediaCtrl>::TAO_AV_Endpoint_Reactive_Strategy (void)
: stream_endpoint_a_servant_(0), stream_endpoint_b_servant_(0), vdev_servant_(0),
@@ -832,6 +829,4 @@ TAO_AV_Child_Process_B<T_StreamEndpoint, T_VDev, T_MediaCtrl>::~TAO_AV_Child_Pro
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_AV_ENDPOINT_STRATEGY_T_CPP */
+#endif /* TAO_AV_ENDPOINT_STRATEGY_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h
index 45210da5406..7f4c6de12f4 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Endpoint_Strategy_T.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -11,13 +12,13 @@
*/
//=============================================================================
+
+
#ifndef TAO_AV_ENDPOINT_STRATEGY_T_H
#define TAO_AV_ENDPOINT_STRATEGY_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/Endpoint_Strategy.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Endpoint_Strategy.h"
/**
* @class TAO_AV_Endpoint_Reactive_Strategy
@@ -279,10 +280,8 @@ public:
virtual ~TAO_AV_Child_Process_B (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/AV/Endpoint_Strategy_T.cpp"
+#include "Endpoint_Strategy_T.cpp"
#endif /*ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.cpp b/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.cpp
index e7cca074af3..6aa86653c46 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.cpp
@@ -1,13 +1,12 @@
+// Fill_ACE_QoS.cpp
// $Id$
-#include "orbsvcs/AV/Fill_ACE_QoS.h"
+#include "Fill_ACE_QoS.h"
#if defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS)
ACE_RCSID(QOS, Fill_ACE_QoS,"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const iovec Fill_ACE_QoS::iov_ = {0,0};
Fill_ACE_QoS::Fill_ACE_QoS (void)
@@ -70,6 +69,4 @@ Fill_ACE_QoS::map (void)
return this->flow_spec_map_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_RAPI || ACE_HAS_WINSOCK2_GQOS */
diff --git a/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.h b/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.h
index ede10e0e1ec..edec3a1b093 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Fill_ACE_QoS.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -18,16 +18,12 @@
#if defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS)
-#include "tao/Versioned_Namespace.h"
-
#include "ace/SString.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Synch.h"
#include "ace/ACE.h"
#include "ace/OS_QoS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class Fill_ACE_QoS
*
@@ -80,7 +76,5 @@ private:
FLOW_SPEC_HASH_MAP flow_spec_map_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_RAPI || ACE_HAS_WINSOCK2_GQOS */
#endif /* FILL_ACE_QOS_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp
index 18ebfe4e49d..8e9913ab68f 100644
--- a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.cpp
@@ -4,19 +4,17 @@
// TAO_FlowSpec_Entry
//------------------------------------------------------------
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-#include "orbsvcs/AV/Protocol_Factory.h"
+#include "FlowSpec_Entry.h"
+#include "Protocol_Factory.h"
#include "tao/debug.h"
#include "ace/OS_NS_strings.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/AV/FlowSpec_Entry.i"
+#include "FlowSpec_Entry.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// constructor.
TAO_FlowSpec_Entry::TAO_FlowSpec_Entry (void)
:address_ (0),
@@ -206,7 +204,7 @@ TAO_FlowSpec_Entry::set_protocol (void)
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG, "TAO_FlowSpec_Entry::set_protocol address is not 0\n"));
ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr*> (this->address_);
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
inet_addr->addr_to_string (buf,BUFSIZ);
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,"TAO_FlowSpec_Entry::set_protocol:%s %x\n",buf, inet_addr->get_ip_address ()));
@@ -381,7 +379,7 @@ TAO_FlowSpec_Entry::parse_address (const char *address,
}
}
- short control_port = static_cast<short> (ACE_OS::atoi(port_tokenizer[0])) + 1;
+ short control_port = ACE_OS::atoi(port_tokenizer[0]) + 1;
char control_port_str[6];
sprintf (control_port_str, "%d", control_port);
@@ -470,16 +468,19 @@ TAO_FlowSpec_Entry::get_local_addr_str (void)
{
case AF_INET:
{
- char *buf;
+ ACE_TCHAR *buf;
ACE_NEW_RETURN (buf,
- char [BUFSIZ],
+ ACE_TCHAR [BUFSIZ],
0);
ACE_INET_Addr *inet_addr = dynamic_cast<ACE_INET_Addr *> (this->local_addr_);
inet_addr->addr_to_string (buf,BUFSIZ);
+#if defined(ACE_USES_WCHAR)
+ return ACE_TEXT_TO_CHAR_OUT(buf);
+#else
ACE_CString cstring (buf, 0, 0);
-
return cstring.rep ();
+#endif
}
default:
ACE_ERROR_RETURN ((LM_ERROR,"Address family not supported"),0);
@@ -597,7 +598,7 @@ TAO_Forward_FlowSpec_Entry::parse (const char *flowSpec_entry)
this->delete_peer_addr_ = true;
this->peer_addr_ = addr;
- char buf [BUFSIZ];
+ ACE_TCHAR buf [BUFSIZ];
addr->addr_to_string (buf, BUFSIZ);
ACE_DEBUG ((LM_DEBUG,
"Peer Address %s \n",
@@ -637,7 +638,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void)
if (this->flowname_.length() == 0)
return "";
- char address [BUFSIZ];
+ ACE_TCHAR address [BUFSIZ];
ACE_CString address_str;
ACE_CString peer_address_str;
@@ -664,7 +665,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void)
default:
break;
}
- ACE_CString cstring (address);
+ ACE_CString cstring (ACE_TEXT_TO_CHAR_IN(address));
address_str = this->carrier_protocol_;
address_str += "=";
@@ -749,7 +750,7 @@ TAO_Forward_FlowSpec_Entry::entry_to_string (void)
break;
}
- ACE_CString cstring (address);
+ ACE_CString cstring (ACE_TEXT_TO_CHAR_IN(address));
//peer_address_str = this->carrier_protocol_;
//peer_address_str += "=";
@@ -924,7 +925,7 @@ TAO_Reverse_FlowSpec_Entry::entry_to_string (void)
if (this->flowname_.length() == 0)
return "";
- char address [BUFSIZ];
+ ACE_TCHAR address [BUFSIZ];
ACE_CString address_str;
if (this->address_ != 0)
{
@@ -946,7 +947,7 @@ TAO_Reverse_FlowSpec_Entry::entry_to_string (void)
default:
break;
}
- ACE_CString cstring (address);
+ ACE_CString cstring (ACE_TEXT_TO_CHAR_IN(address));
address_str = this->carrier_protocol_;
address_str += "=";
@@ -1014,5 +1015,3 @@ TAO_Reverse_FlowSpec_Entry::entry_to_string (void)
if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"Reverse entry_to_string: entry = %s\n",this->entry_.c_str() ));
return this->entry_.c_str();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.h b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.h
index 61ed7f1b03d..f55250dbbb3 100644
--- a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.h
+++ b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
// ============================================================================
/**
@@ -16,14 +17,11 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/AV/AV_export.h"
-#include "orbsvcs/AV/AV_Core.h"
+#include "AV_Core.h"
#include "ace/Addr.h"
#include "ace/Containers.h"
#include "ace/SString.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Tokenizer
* @brief
@@ -348,12 +346,10 @@ public:
virtual int parse (const char* flowSpec_entry);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/AV/Transport.h"
+#include "Transport.h"
#if defined (__ACE_INLINE__)
-#include "orbsvcs/AV/FlowSpec_Entry.i"
+#include "FlowSpec_Entry.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.i b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.i
index 3af4438dd98..7d02df695ea 100644
--- a/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.i
+++ b/TAO/orbsvcs/orbsvcs/AV/FlowSpec_Entry.i
@@ -1,10 +1,10 @@
// -*- C++ -*-
-//
+
// $Id$
-#include "ace/OS_NS_strings.h"
+// FlowSpec_Entry.i
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_strings.h"
ACE_INLINE
int
@@ -343,5 +343,3 @@ TAO_FlowSpec_Entry::role (TAO_FlowSpec_Entry::Role role)
{
this->role_ = role;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/Flows_T.cpp b/TAO/orbsvcs/orbsvcs/AV/Flows_T.cpp
index c2e6683d223..86cef7e0568 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Flows_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Flows_T.cpp
@@ -1,12 +1,11 @@
//$Id$
-#ifndef TAO_AV_FLOWS_T_CPP
-#define TAO_AV_FLOWS_T_CPP
+#ifndef TAO_AV_FLOWS_T_C
+#define TAO_AV_FLOWS_T_C
-#include "orbsvcs/AV/Flows_T.h"
+#include "Flows_T.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// ------------------------------------------------------------
// TAO_FDev
@@ -247,6 +246,4 @@ TAO_FDev<T_Producer, T_Consumer>::destroy (AVStreams::FlowEndPoint_ptr /* the_ep
if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_StreamEndPoint::destroy failed\n"));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_AV_FLOWS_T_CPP */
+#endif /* TAO_AV_FLOWS_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/AV/Flows_T.h b/TAO/orbsvcs/orbsvcs/AV/Flows_T.h
index d0810ab65e1..087fce312fb 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Flows_T.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Flows_T.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -15,9 +16,7 @@
#define TAO_AV_FLOWS_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/AVStreams_i.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "AVStreams_i.h"
/**
* @class TAO_FDev
@@ -116,10 +115,9 @@ protected:
CORBA::String_var flowname_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/AV/Flows_T.cpp"
+#include "Flows_T.cpp"
#endif /*ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp
index 5ccb9148c4f..02d46a85566 100644
--- a/TAO/orbsvcs/orbsvcs/AV/MCast.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/MCast.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/AV/MCast.h"
-#include "orbsvcs/AV/AVStreams_i.h"
+#include "MCast.h"
+#include "AVStreams_i.h"
#include "tao/debug.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/AV/MCast.i"
+#include "MCast.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
//TAO_AV_UDP_MCast_Flow_Handler
//------------------------------------------------------------
@@ -209,6 +207,7 @@ TAO_AV_UDP_MCast_Transport::recv (char *buf,
timeout);
}
+
ssize_t
TAO_AV_UDP_MCast_Transport::recv (iovec *iov,
int /*iovcnt*/,
@@ -216,5 +215,3 @@ TAO_AV_UDP_MCast_Transport::recv (iovec *iov,
{
return handler_->get_mcast_socket ()->recv (iov,this->peer_addr_,0,timeout);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/MCast.h b/TAO/orbsvcs/orbsvcs/AV/MCast.h
index fde288896ed..710be13f63c 100644
--- a/TAO/orbsvcs/orbsvcs/AV/MCast.h
+++ b/TAO/orbsvcs/orbsvcs/AV/MCast.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,13 +15,11 @@
#define TAO_AV_MCAST_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-#include "orbsvcs/AV/Protocol_Factory.h"
+#include "FlowSpec_Entry.h"
+#include "Protocol_Factory.h"
#include "ace/INET_Addr.h"
#include "ace/SOCK_Dgram_Mcast.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_AV_UDP_MCast_Flow_Handler;
/**
@@ -107,10 +105,8 @@ protected:
ACE_SOCK_Dgram_Mcast *dgram_mcast_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/AV/MCast.i"
+#include "MCast.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/AV/MCast.i b/TAO/orbsvcs/orbsvcs/AV/MCast.i
index 08d994f23ed..e77e9b4cd79 100644
--- a/TAO/orbsvcs/orbsvcs/AV/MCast.i
+++ b/TAO/orbsvcs/orbsvcs/AV/MCast.i
@@ -1,9 +1,4 @@
-// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_UDP_MCast_Flow_Handler
//-----------------------------------------------------------
@@ -14,4 +9,6 @@ TAO_AV_UDP_MCast_Flow_Handler::get_mcast_socket (void) const
return this->dgram_mcast_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/AV/Policy.cpp b/TAO/orbsvcs/orbsvcs/AV/Policy.cpp
index 0fa94820c07..6701affedc8 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Policy.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Policy.cpp
@@ -1,26 +1,26 @@
// $Id$
-#include "orbsvcs/AV/FlowSpec_Entry.h"
+#include "FlowSpec_Entry.h"
#include "tao/debug.h"
-#include "orbsvcs/AV/Policy.h"
+#include "Policy.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/AV/Policy.i"
+#include "Policy.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_AV_Policy::TAO_AV_Policy (CORBA::ULong type)
:type_ (type)
{
}
+
TAO_AV_SSRC_Policy::TAO_AV_SSRC_Policy (CORBA::ULong ssrc)
:TAO_AV_Policy (TAO_AV_SSRC_POLICY),
ssrc_ (ssrc)
{
}
+
TAO_AV_Payload_Type_Policy::TAO_AV_Payload_Type_Policy (int payload_type)
:TAO_AV_Policy (TAO_AV_PAYLOAD_TYPE_POLICY),
payload_type_ (payload_type)
@@ -146,5 +146,3 @@ TAO_AV_Callback::schedule_timer (void)
{
return this->handler_->schedule_timer ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/Policy.h b/TAO/orbsvcs/orbsvcs/AV/Policy.h
index 8380ed2a51f..222e50afd51 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Policy.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Policy.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -13,7 +14,6 @@
#ifndef TAO_AV_POLICY_H
#define TAO_AV_POLICY_H
-
#include /**/ "ace/pre.h"
#include "ace/Addr.h"
@@ -23,13 +23,6 @@
#include "ace/Time_Value.h"
#include "orbsvcs/AV/AV_export.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
struct TAO_AV_frame_info
{
CORBA::Boolean boundary_marker;
@@ -103,6 +96,7 @@ protected:
typedef TAO_Unbounded_Sequence<TAO_AV_Policy*> TAO_AV_PolicyList;
+class ACE_Message_Block;
class TAO_AV_Protocol_Object;
class TAO_AV_Transport;
class TAO_AV_Flow_Handler;
@@ -165,12 +159,8 @@ protected:
TAO_AV_Flow_Handler *handler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/AV/Policy.i"
+#include "Policy.i"
#endif /* __ACE_INLINE__ */
-
#include /**/ "ace/post.h"
-
#endif /* TAO_AV_POLICY_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/Policy.i b/TAO/orbsvcs/orbsvcs/AV/Policy.i
index 3ff570e0e6f..0994186e6ed 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Policy.i
+++ b/TAO/orbsvcs/orbsvcs/AV/Policy.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//--------------------------------------------------
// TAO_AV_Policy
//--------------------------------------------------
@@ -77,5 +73,3 @@ TAO_AV_SFP_Credit_Policy::value (void)
{
return this->value_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp b/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp
index 55f5767c9ca..1f00f0573e4 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.cpp
@@ -1,13 +1,10 @@
// $Id$
-#include "orbsvcs/AV/Protocol_Factory.h"
+#include "Protocol_Factory.h"
#include "tao/debug.h"
#include "ace/Dynamic_Service.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_AV_Flow_Protocol_Factory
TAO_AV_Flow_Protocol_Factory::TAO_AV_Flow_Protocol_Factory (void)
{
@@ -127,5 +124,3 @@ TAO_AV_Protocol_Object::handle_control_input (ACE_Message_Block *,
ACE_DEBUG ((LM_DEBUG,"TAO_AV_Protocol_Object::handle_control_input\n"));
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.h b/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.h
index f18774d3006..b5b93170f82 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Protocol_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,12 +15,11 @@
#define TAO_AV_PROTOCOL_FACTORY_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-#include "orbsvcs/AV/Policy.h"
+#include "FlowSpec_Entry.h"
+#include "Policy.h"
#include "ace/Service_Object.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_AV_Protocol_Object
@@ -97,7 +96,5 @@ public:
int ref_count;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_AV_PROTOCOL_FACTORY_T_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp
index 19aba484619..837733689de 100644
--- a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/AV/QoS_UDP.h"
+#include "QoS_UDP.h"
#if defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS)
-#include "orbsvcs/AV/UDP.h"
+#include "UDP.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "orbsvcs/AV/MCast.h"
#include "orbsvcs/AV/Fill_ACE_QoS.h"
@@ -21,8 +21,6 @@
static int resv_error = 0;
static int resv_confirm = 0;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
FillQoSParams (ACE_QoS_Params &qos_params,
iovec* iov,
@@ -215,61 +213,61 @@ TAO_AV_UDP_QoS_Flow_Handler::translate (CosPropertyService::Properties &qos_para
i < qos_params.length ();
i++)
{
- if (ACE_OS::strcmp (qos_params [i].property_name, "Service_Type") == 0)
+ if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Service_Type") == 0)
{
CORBA::Short type;
qos_params [i].property_value >>= type;
ace_flow_spec->service_type (type);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Token_Rate") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Token_Rate") == 0)
{
CORBA::ULong tok_rate;
qos_params [i].property_value >>= tok_rate;
ace_flow_spec->token_rate (tok_rate);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Token_Bucket_Size") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Token_Bucket_Size") == 0)
{
CORBA::ULong tok_buck_size;
qos_params [i].property_value >>= tok_buck_size;
ace_flow_spec->token_bucket_size (tok_buck_size);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Peak_Bandwidth") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Peak_Bandwidth") == 0)
{
CORBA::ULong peak_bw;
qos_params [i].property_value >>= peak_bw;
ace_flow_spec->peak_bandwidth (peak_bw);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Latency") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Latency") == 0)
{
CORBA::ULong lat;
qos_params [i].property_value >>= lat;
ace_flow_spec->latency (lat);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Delay_Variation") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Delay_Variation") == 0)
{
CORBA::ULong delay_var;
qos_params [i].property_value >>= delay_var;
ace_flow_spec->delay_variation (delay_var);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Max_SDU_Size") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Max_SDU_Size") == 0)
{
CORBA::ULong max_sdu;
qos_params [i].property_value >>= max_sdu;
ace_flow_spec->max_sdu_size (max_sdu);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Minimum_Policed_Size") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Minimum_Policed_Size") == 0)
{
CORBA::ULong min_pol_size;
qos_params [i].property_value >>= min_pol_size;
ace_flow_spec->minimum_policed_size (min_pol_size);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "TTL") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "TTL") == 0)
{
CORBA::ULong ttl;
qos_params [i].property_value >>= ttl;
ace_flow_spec->ttl (ttl);
}
- else if (ACE_OS::strcmp (qos_params [i].property_name, "Priority") == 0)
+ else if (ACE_OS::strcmp (qos_params [i].property_name.in(), "Priority") == 0)
{
CORBA::ULong priority;
qos_params [i].property_value >>= priority;
@@ -492,14 +490,14 @@ TAO_AV_UDP_QoS_Flow_Handler::set_remote_address (ACE_Addr *address)
if (TAO_debug_level > 0)
{
- char buf [BUFSIZ];
- ACE_INET_Addr *remote_addr = dynamic_cast<ACE_INET_Addr*> (address);
- remote_addr->addr_to_string (buf,
- BUFSIZ);
-
- ACE_DEBUG ((LM_DEBUG,
- "(%N,%l) TAO_AV_UDP_QoS_Flow_Handler::set_remote_address %s\n",
- buf));
+ ACE_TCHAR buf [BUFSIZ];
+ ACE_INET_Addr *remote_addr = dynamic_cast<ACE_INET_Addr*> (address);
+ remote_addr->addr_to_string (buf,
+ BUFSIZ);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "(%N,%l) TAO_AV_UDP_QoS_Flow_Handler::set_remote_address %s\n",
+ buf));
}
@@ -704,7 +702,7 @@ TAO_AV_UDP_QoS_Transport::send (const char *buf,
ACE_DEBUG ((LM_DEBUG,
"(%N,%l) TAO_AV_UDP_QoS_Transport::send "));
- char addr [BUFSIZ];
+ ACE_TCHAR addr [BUFSIZ];
this->peer_addr_.addr_to_string (addr,BUFSIZ);
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
@@ -833,7 +831,7 @@ TAO_AV_UDP_QoS_Acceptor::open (TAO_Base_StreamEndPoint *endpoint,
ACE_INET_Addr *inet_addr = (ACE_INET_Addr *) entry->address ();
// inet_addr->set (inet_addr->get_port_number (),
// inet_addr->get_host_name ());
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
inet_addr->addr_to_string (buf,
BUFSIZ);
if (TAO_debug_level > 0)
@@ -957,7 +955,7 @@ TAO_AV_UDP_QoS_Acceptor::open_i (ACE_INET_Addr *inet_addr)
dest_addr.set (local_addr->get_port_number (),
local_addr->get_host_name ());
- char dest_buf [BUFSIZ];
+ ACE_TCHAR dest_buf [BUFSIZ];
dest_addr.addr_to_string (dest_buf,
BUFSIZ);
@@ -1061,7 +1059,7 @@ TAO_AV_UDP_QoS_Acceptor::open_i (ACE_INET_Addr *inet_addr)
if (TAO_debug_level > 0)
{
- char buf [BUFSIZ];
+ ACE_TCHAR buf [BUFSIZ];
local_addr->addr_to_string (buf,
BUFSIZ);
ACE_DEBUG ((LM_DEBUG,
@@ -1241,7 +1239,7 @@ TAO_AV_UDP_QoS_Connector::connect (TAO_FlowSpec_Entry *entry,
session_addr = inet_addr;
}
- char sess_buf [BUFSIZ];
+ ACE_TCHAR sess_buf [BUFSIZ];
session_addr->addr_to_string (sess_buf,
BUFSIZ);
@@ -1357,7 +1355,7 @@ TAO_AV_UDP_QoS_Connector::connect (TAO_FlowSpec_Entry *entry,
if (TAO_debug_level > 0)
{
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
local_addr->addr_to_string (buf,
BUFSIZ);
@@ -1513,8 +1511,6 @@ TAO_AV_UDP_QoS_Flow_Factory::make_protocol_object (TAO_FlowSpec_Entry *entry,
return object;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_UDP_QoS_Flow_Factory)
ACE_STATIC_SVC_DEFINE (TAO_AV_UDP_QoS_Flow_Factory,
ACE_TEXT ("UDP_QoS_Flow_Factory"),
diff --git a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.h b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.h
index 7100217f263..8e99c0ad7da 100644
--- a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.h
+++ b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -12,6 +12,7 @@
// = AUTHOR
// Yamuna Krishnamurthy <yamuna@cs.wustl.edu>
//
+//
// ============================================================================
#ifndef TAO_AV_QOS_UDP_H
@@ -23,15 +24,14 @@
#if defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS)
-#include "orbsvcs/AV/Protocol_Factory.h"
-
#include "ace/OS.h"
#include "ace/Service_Config.h"
#include "ace/QoS/QoS_Session_Factory.h"
#include "ace/QoS/QoS_Decorator.h"
#include "ace/QoS/SOCK_Dgram_Mcast_QoS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "orbsvcs/AV/Protocol_Factory.h"
+
class TAO_AV_Export TAO_AV_UDP_QoS_Factory : public TAO_AV_Transport_Factory
{
@@ -287,8 +287,6 @@ public:
TAO_AV_UDP_QoS_Flow_Handler *handler);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AV_UDP_QoS_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_UDP_QoS_Flow_Factory)
@@ -297,7 +295,7 @@ ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_UDP_QoS_Factory)
#if defined(__ACE_INLINE__)
-#include "orbsvcs/AV/QoS_UDP.i"
+#include "QoS_UDP.i"
#endif /* __ACE_INLINE__ */
#endif /* ACE_HAS_RAPI || ACE_HAS_WINSOCK2_GQOS */
diff --git a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.i b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.i
index 9ae1b828b0f..8a98bafa896 100644
--- a/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.i
+++ b/TAO/orbsvcs/orbsvcs/AV/QoS_UDP.i
@@ -1,13 +1,10 @@
-// -*- C++ -*-
-//
-// $Id$
+/* -*- C++ -*- */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// $Id$
//----------------------------------------------------------------------
// TAO_AV_UDP_Flow_Handler
//----------------------------------------------------------------------
-
ACE_INLINE
ACE_SOCK_Dgram_Mcast_QoS *
TAO_AV_UDP_QoS_Flow_Handler::get_socket (void)
@@ -77,5 +74,3 @@ TAO_AV_UDP_QoS_Flow_Handler::av_core (void)
{
return this->av_core_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
index e0466db3a3c..0d7124705fe 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP.cpp
@@ -1,4 +1,4 @@
-/**
+/*
* Copyright (c) 1994-1995 Regents of the University of California.
* All rights reserved.
*
@@ -33,19 +33,17 @@
*/
// $Id$
-#include "orbsvcs/AV/ntp-time.h"
-#include "orbsvcs/AV/RTCP.h"
-#include "orbsvcs/AV/media_timer.h"
+#include "ntp-time.h"
+#include "RTCP.h"
+#include "media_timer.h"
#include "tao/debug.h"
-#include "orbsvcs/AV/global.h"
-#include "orbsvcs/AV/md5.h"
+#include "global.h"
+#include "md5.h"
-#include "orbsvcs/AV/RTCP_Packet.h"
+#include "RTCP_Packet.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_strings.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_AV_RTCP_Callback::receive_control_frame (ACE_Message_Block *data,
const ACE_Addr &peer_address)
@@ -813,7 +811,6 @@ TAO_AV_RTCP_Callback::ts_offset (ACE_UINT32 offset)
this->timestamp_offset_ = offset;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_RTCP_Flow_Factory)
ACE_STATIC_SVC_DEFINE (TAO_AV_RTCP_Flow_Factory,
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP.h b/TAO/orbsvcs/orbsvcs/AV/RTCP.h
index 58688376837..38555b63efd 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP.h
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP.h
@@ -1,6 +1,5 @@
-// -*- C++ -*-
-
-/**
+/* -*- C++ -*- */
+/*-
* Copyright (c) 1993-1994 The Regents of the University of California.
* All rights reserved.
*
@@ -49,18 +48,16 @@
#define TAO_AV_RTCP_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/RTCP_Channel.h"
-
// FUZZ: disable check_for_math_include
-
+#include "ace/OS.h"
+#include "ace/Hash_Map_Manager.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "orbsvcs/AV/UDP.h"
-#include "orbsvcs/AV/RTP.h"
-#include "ace/Hash_Map_Manager_T.h"
#include <math.h>
#include <stdlib.h>
+#include "orbsvcs/AV/RTP.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "RTCP_Channel.h"
class TAO_AV_RTCP_Callback;
@@ -247,7 +244,7 @@ private:
ACE_UINT32 ssrc_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+
ACE_STATIC_SVC_DECLARE (TAO_AV_RTCP_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_RTCP_Flow_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp
index 7011dab5371..45f1012972e 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.cpp
@@ -1,10 +1,10 @@
// $Id$
+#include "ace/OS.h"
-#include "orbsvcs/AV/RTCP_Channel.h"
-#include "orbsvcs/AV/RTP.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "RTCP_Channel.h"
+#include "RTP.h"
RTCP_Channel_In::RTCP_Channel_In (ACE_UINT32 ssrc,
const ACE_Addr *peer_addr)
@@ -361,4 +361,3 @@ RTCP_Channel_Out::active (void)
return this->active_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.h b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.h
index a9d717a33b0..7e9d4d44857 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.h
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Channel.h
@@ -5,13 +5,12 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/RTP.h"
-#include "orbsvcs/AV/RTCP_Packet.h"
-
+#include "ace/OS.h"
#include "ace/Message_Block.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "RTP.h"
+#include "RTCP_Packet.h"
/**
* @class RTCP_Channel_In
@@ -217,7 +216,5 @@ private:
unsigned int octets_sent_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* RTCP_CHANNEL_INCLUDE */
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp
index 8ef82e30bb3..04037b0791f 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.cpp
@@ -1,8 +1,6 @@
// $Id$
-#include "orbsvcs/AV/RTCP_Packet.h"
-#include "orbsvcs/AV/RTP.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "RTCP_Packet.h"
+#include "RTP.h"
RTCP_Packet::RTCP_Packet(void)
{
@@ -36,7 +34,7 @@ RTCP_Packet::~RTCP_Packet(void)
void
RTCP_Packet::get_packet_data(char **buffer, ACE_UINT16 &length)
{
- length = static_cast<ACE_UINT16> (this->packet_size());
+ length = this->packet_size();
// buiidPacket is defined for each child of RTCP_Packet
// buildPacket creates a snapshot of the RTCP packet in the buffer pktData
@@ -105,7 +103,7 @@ RTCP_BYE_Packet::RTCP_BYE_Packet(ACE_UINT32 *ssrc_list,
this->reason_length_ = 0;
// Set the packet length
- this->chd_.length_ = static_cast<ACE_UINT16> (this->chd_.count_ + (this->reason_length_+1)/4);
+ this->chd_.length_ = this->chd_.count_ + (this->reason_length_+1)/4;
if ((this->reason_length_+1)%4)
this->chd_.length_++;
@@ -171,7 +169,7 @@ RTCP_BYE_Packet::~RTCP_BYE_Packet(void)
unsigned int
RTCP_BYE_Packet::packet_size(void)
{
- ACE_UINT16 size = static_cast<ACE_UINT16> ((1+chd_.count_) * 4);
+ ACE_UINT16 size = (1+chd_.count_) * 4;
if (this->reason_length_ > 0)
{
@@ -217,9 +215,9 @@ RTCP_BYE_Packet::build_packet(void)
char[this->packet_size()]);
index = 0;
- this->packet_data_[index] = static_cast<char> ((this->chd_.ver_ << 6) |
- (this->chd_.pad_ << 5) |
- this->chd_.count_);
+ this->packet_data_[index] = (this->chd_.ver_ << 6) |
+ (this->chd_.pad_ << 5) |
+ this->chd_.count_;
index++;
this->packet_data_[index] = this->chd_.pt_;
index++;
@@ -284,7 +282,7 @@ RTCP_RR_Packet::RTCP_RR_Packet(ACE_UINT32 ssrc, RR_Block *blocks)
block_ptr = block_ptr->next_;
}
- this->chd_.length_ = static_cast<ACE_UINT16> (1+6*(this->chd_.count_)); // + profile specific extensions ??
+ this->chd_.length_ = 1+6*this->chd_.count_; // + profile specific extensions ??
this->packet_data_ = 0;
}
@@ -366,7 +364,7 @@ RTCP_RR_Packet::~RTCP_RR_Packet(void)
unsigned int
RTCP_RR_Packet::packet_size(void)
{
- ACE_UINT16 size = static_cast<ACE_UINT16> ((2+this->chd_.count_*6) * 4);
+ ACE_UINT16 size = (2+this->chd_.count_*6) * 4;
return size;
}
@@ -385,9 +383,9 @@ RTCP_RR_Packet::build_packet(void)
char [this->packet_size ()]);
index = 0;
- this->packet_data_[index] = static_cast<char> ((this->chd_.ver_ << 6) |
- (this->chd_.pad_ << 5) |
- this->chd_.count_);
+ this->packet_data_[index] = (this->chd_.ver_ << 6) |
+ (this->chd_.pad_ << 5) |
+ this->chd_.count_;
index++;
this->packet_data_[index] = chd_.pt_;
index++;
@@ -808,7 +806,7 @@ RTCP_SDES_Packet::packet_size(void)
cp = cp->next_;
}
- chd_.length_ = static_cast<ACE_UINT16> (size/4 - 1);
+ chd_.length_ = size/4 - 1;
return size;
}
@@ -829,9 +827,7 @@ RTCP_SDES_Packet::build_packet(void)
char[this->packet_size()]);
index = 0;
- this->packet_data_[index] = static_cast<char> ((chd_.ver_ << 6) |
- (chd_.pad_ << 5) |
- chd_.count_);
+ this->packet_data_[index] = (chd_.ver_ << 6) | (chd_.pad_ << 5) | chd_.count_;
index++;
this->packet_data_[index] = chd_.pt_;
index++;
@@ -1017,7 +1013,7 @@ RTCP_SR_Packet::RTCP_SR_Packet(ACE_UINT32 ssrc,
block_ptr = block_ptr->next_;
}
- this->chd_.length_ = static_cast<ACE_UINT16> (6 + 6*(chd_.count_)); //+profile specific extensions ??
+ this->chd_.length_ = 6 + 6*chd_.count_; //+profile specific extensions ??
this->packet_data_ = 0;
}
@@ -1108,7 +1104,7 @@ RTCP_SR_Packet::~RTCP_SR_Packet(void)
unsigned int RTCP_SR_Packet::packet_size (void)
{
- ACE_UINT16 size = static_cast<ACE_UINT16> ((2+chd_.count_*6) * 4); // + profile specific extensions ?
+ ACE_UINT16 size = (2+chd_.count_*6) * 4; // + profile specific extensions ?
size += 20; // the first line is the same as RR; 20 more bytes for SR
return size;
@@ -1127,9 +1123,7 @@ void RTCP_SR_Packet::build_packet(void)
ACE_NEW (this->packet_data_,
char[this->packet_size()]);
- this->packet_data_[index] = static_cast<char> ((this->chd_.ver_ << 6) |
- (this->chd_.pad_ << 5) |
- this->chd_.count_);
+ this->packet_data_[index] = (this->chd_.ver_ << 6) | (this->chd_.pad_ << 5) | this->chd_.count_;
index++;
this->packet_data_[index] = this->chd_.pt_;
index++;
@@ -1208,5 +1202,3 @@ RTCP_SR_Packet::dump (void)
++count;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.h b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.h
index 696378258af..e2fd18dcc64 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.h
+++ b/TAO/orbsvcs/orbsvcs/AV/RTCP_Packet.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef RTCP_PACKET_INCLUDE
@@ -7,11 +5,7 @@
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
-#include "tao/Versioned_Namespace.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/Basic_Types.h"
/**
* @struct RTCP_Common_Header
@@ -51,7 +45,7 @@ public:
RTCP_Packet(char *buffer);
/// Destructor
- virtual ~RTCP_Packet();
+ virtual ~RTCP_Packet() = 0;
/// Returns a pointer to a local buffer containing the packet.
void get_packet_data(char **buffer, ACE_UINT16 &length);
@@ -399,7 +393,5 @@ private:
RR_Block *rr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* RTCP_PACKET_INCLUDE */
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTP.cpp b/TAO/orbsvcs/orbsvcs/AV/RTP.cpp
index 7118a24c14c..b29f5bfb890 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTP.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/RTP.cpp
@@ -34,15 +34,13 @@
// $Id$
-#include "orbsvcs/AV/RTP.h"
-#include "orbsvcs/AV/RTCP.h"
+#include "RTP.h"
+#include "RTCP.h"
#include "tao/debug.h"
#include "ace/OS_NS_arpa_inet.h"
#include "ace/OS_NS_strings.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// RTP_Packet
// Constructor for RTP packets received
@@ -72,8 +70,8 @@ RTP_Packet::RTP_Packet(char* buffer, int length)
else
this->extension_bytes_ = 0;
- this->packet_size_ = static_cast<ACE_UINT16> (length);
- this->payload_size_ = static_cast<ACE_UINT16> (length-index);
+ this->packet_size_ = length;
+ this->payload_size_ = length-index;
// This is necessary only for payload types that have 16 bit values to correct
// the network byte ordering.
@@ -139,7 +137,7 @@ RTP_Packet::RTP_Packet(unsigned char padding,
this->packet_[index] = ((marker & 0x1) << 7 ) |
((payload_type & 0x7f));
index++;
- *((ACE_UINT16*)&this->packet_[index]) = (ACE_UINT16)htons(static_cast<u_short> (seq_num));
+ *((ACE_UINT16*)&this->packet_[index]) = (ACE_UINT16)htons(seq_num);
index+=2;
*((ACE_UINT32*)&this->packet_[index]) = (ACE_UINT32)htonl(timestamp);
index+=4;
@@ -258,7 +256,7 @@ RTP_Packet::get_frame_info (TAO_AV_frame_info *frame_info)
frame_info->timestamp = this->ts();
frame_info->ssrc = this->ssrc();
frame_info->sequence_num = this->sn();
- frame_info->format = static_cast<CORBA::Octet> (this->pt());
+ frame_info->format = this->pt();
}
int
@@ -294,7 +292,7 @@ void
RTP_Packet::get_csrc_list (ACE_UINT32 **csrc_list, ACE_UINT16 &length)
{
*csrc_list = this->host_byte_order_csrc_list_;
- length = static_cast<ACE_UINT16> (this->cc ());
+ length = this->cc ();
}
void
@@ -398,11 +396,11 @@ TAO_AV_RTP_Object::send_frame (ACE_Message_Block *frame,
ACE_NEW_RETURN (rtp_packet,
RTP_Packet (0, // padding
frame_info->boundary_marker, // marker
- static_cast<unsigned char> (this->format_), // payload type
+ this->format_, // payload type
frame_info->sequence_num, // sequence num
frame_info->timestamp, // time stamp
this->ssrc_, // ssrc
- static_cast<unsigned char> (csrc_count), // csrc count
+ csrc_count, // csrc count
csrc_list, // csrc list
frame->rd_ptr (), // data
(ACE_UINT16)frame->length ()),// data size
@@ -454,11 +452,11 @@ TAO_AV_RTP_Object::send_frame (ACE_Message_Block *frame,
ACE_NEW_RETURN (rtp_packet,
RTP_Packet (0, // padding
0, // marker
- static_cast<unsigned char> (this->format_), // payload type
+ this->format_, // payload type
this->sequence_num_, // sequence num
ts, // time stamp
this->ssrc_, // ssrc
- static_cast<unsigned char> (csrc_count), // csrc count
+ csrc_count, // csrc count
csrc_list, // csrc list
frame->rd_ptr (), // data
(ACE_UINT16)frame->length ()),// data size
@@ -508,7 +506,7 @@ TAO_AV_RTP_Object::send_frame (const iovec *iov,
if (frame_info->format != this->format_)
ACE_DEBUG ((LM_DEBUG,
"TAO_AV_RTP_Object::send_frame - error: format type mismatch"));
- this->sequence_num_ = static_cast<ACE_UINT16> (frame_info->sequence_num);
+ this->sequence_num_ = frame_info->sequence_num;
if (frame_info->ssrc != 0)
this->ssrc_ = frame_info->ssrc;
@@ -521,11 +519,11 @@ TAO_AV_RTP_Object::send_frame (const iovec *iov,
ACE_NEW_RETURN (rtp_packet,
RTP_Packet (0, // padding
frame_info->boundary_marker, // marker
- static_cast<unsigned char> (this->format_), // payload type
+ this->format_, // payload type
frame_info->sequence_num, // sequence num
frame_info->timestamp, // time stamp
this->ssrc_, // ssrc
- static_cast<unsigned char> (csrc_count), // csrc count
+ csrc_count, // csrc count
csrc_list, // csrc list
(char *)iov[0].iov_base, // data
data_size), // data size
@@ -579,11 +577,11 @@ TAO_AV_RTP_Object::send_frame (const iovec *iov,
ACE_NEW_RETURN (rtp_packet,
RTP_Packet (0, // padding
0, // marker
- static_cast<unsigned char> (this->format_), // payload type
+ this->format_, // payload type
this->sequence_num_, // sequence num
ts, // time stamp
this->ssrc_, // ssrc
- static_cast<unsigned char> (csrc_count), // csrc count
+ csrc_count, // csrc count
csrc_list, // csrc list
(char *)iov[0].iov_base, // data
data_size), // data size
@@ -625,7 +623,7 @@ TAO_AV_RTP_Object::TAO_AV_RTP_Object (TAO_AV_Callback *callback,
control_object_ (0),
connection_gone_ (0)
{
- this->sequence_num_ = static_cast<ACE_UINT16> (ACE_OS::rand ());
+ this->sequence_num_ = ACE_OS::rand ();
this->timestamp_offset_ = ACE_OS::rand ();
char buf [BUFSIZ];
@@ -773,8 +771,6 @@ TAO_AV_RTP_Flow_Factory::control_flow_factory (void)
return "RTCP";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_RTP_Flow_Factory)
ACE_STATIC_SVC_DEFINE (TAO_AV_RTP_Flow_Factory,
ACE_TEXT ("RTP_Flow_Factory"),
diff --git a/TAO/orbsvcs/orbsvcs/AV/RTP.h b/TAO/orbsvcs/orbsvcs/AV/RTP.h
index 8cc883386a4..14e17886ab0 100644
--- a/TAO/orbsvcs/orbsvcs/AV/RTP.h
+++ b/TAO/orbsvcs/orbsvcs/AV/RTP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/*-
* Copyright (c) 1993-1994 The Regents of the University of California.
@@ -137,11 +137,9 @@
#define MAXHDR 24
-#include "orbsvcs/AV/Policy.h"
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-#include "orbsvcs/AV/MCast.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Policy.h"
+#include "FlowSpec_Entry.h"
+#include "MCast.h"
//------------------------------------------------------------
// TAO_AV_RTP
@@ -414,8 +412,6 @@ public:
virtual const char*control_flow_factory (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AV_RTP_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_RTP_Flow_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/AV/Resource_Factory.h b/TAO/orbsvcs/orbsvcs/AV/Resource_Factory.h
index a14a9087531..aa50d43203d 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Resource_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Resource_Factory.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Resource_Factory.h
@@ -22,8 +20,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_AV_Resource_Factory
*
@@ -34,6 +30,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
*
*
*/
+
class TAO_AV_Export TAO_AV_Resource_Factory
: public ACE_Service_Object
{
@@ -48,7 +45,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_AV_DEFAULT_RESOURCE_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp b/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp
index 1197d709257..59a3ea87259 100644
--- a/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/AV/SCTP_SEQ.h"
+#include "SCTP_SEQ.h"
#if defined (ACE_HAS_SCTP)
-#include "orbsvcs/AV/AVStreams_i.h"
+#include "AVStreams_i.h"
#include "ace/Multihomed_INET_Addr.h"
#include "tao/debug.h"
#include "ace/Arg_Shifter.h"
@@ -13,8 +13,6 @@ ACE_RCSID (AV,
SCTP_SEQ,
"SCTP_SEQ.cpp,v 1.3 2003/11/05 21:06:53 yamuna Exp")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_SCTP_SEQ_Transport
//------------------------------------------------------------
@@ -909,8 +907,6 @@ TAO_AV_SCTP_SEQ_Flow_Factory::make_protocol_object (TAO_FlowSpec_Entry *entry,
return object;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_SCTP_SEQ_Flow_Factory)
ACE_STATIC_SVC_DEFINE (TAO_AV_SCTP_SEQ_Flow_Factory,
ACE_TEXT ("SCTP_SEQ_Flow_Factory"),
diff --git a/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.h b/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.h
index 4e3ec871b71..3c6d297dd94 100644
--- a/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.h
+++ b/TAO/orbsvcs/orbsvcs/AV/SCTP_SEQ.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,13 +14,13 @@
#define TAO_AV_SCTP_SEQ_H
#include /**/ "ace/pre.h"
-#include "ace/config-all.h"
+#include "ace/OS.h"
#if defined (ACE_HAS_SCTP)
#include "ace/Auto_Ptr.h"
#include "ace/Service_Config.h"
-#include "orbsvcs/AV/Protocol_Factory.h"
+#include "Protocol_Factory.h"
#include "ace/SOCK_SEQPACK_Association.h"
#include "ace/SOCK_SEQPACK_Acceptor.h"
#include "ace/SOCK_SEQPACK_Connector.h"
@@ -29,7 +29,6 @@ extern "C" {
#include <netinet/sctp.h>
};
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_Unbounded_Set <ACE_CString> Interface_Seq;
typedef ACE_Unbounded_Set_Iterator <ACE_CString> Interface_Seq_Itor;
@@ -292,8 +291,6 @@ public:
TAO_AV_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AV_SCTP_SEQ_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_SCTP_SEQ_Flow_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp
index 24eeb1f0930..2170d7dc6b8 100644
--- a/TAO/orbsvcs/orbsvcs/AV/TCP.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/TCP.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/AV/TCP.h"
-#include "orbsvcs/AV/AVStreams_i.h"
+#include "TCP.h"
+#include "AVStreams_i.h"
#include "tao/debug.h"
#include "ace/OS_NS_strings.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_TCP_Transport
//------------------------------------------------------------
@@ -535,7 +533,7 @@ TAO_AV_TCP_Acceptor::open (TAO_Base_StreamEndPoint *endpoint,
inet_addr->set (inet_addr->get_port_number (),
inet_addr->get_host_name ());
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
inet_addr->addr_to_string (buf,
BUFSIZ);
@@ -596,7 +594,7 @@ TAO_AV_TCP_Acceptor::open_default (TAO_Base_StreamEndPoint *endpoint,
address->set (address->get_port_number (),
address->get_host_name ());
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
address->addr_to_string (buf,BUFSIZ);
if (TAO_debug_level > 0)
@@ -661,7 +659,7 @@ TAO_AV_TCP_Flow_Handler::open (void * /*arg*/)
if (this->peer ().get_remote_addr (addr) == -1)
return -1;
- char server[MAXHOSTNAMELEN + 16];
+ ACE_TCHAR server[MAXHOSTNAMELEN + 16];
(void) addr.addr_to_string (server, sizeof (server));
@@ -696,8 +694,6 @@ TAO_AV_TCP_Flow_Handler::handle_timeout (const ACE_Time_Value &tv,
return TAO_AV_Flow_Handler::handle_timeout (tv,arg);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_AV_TCP_Flow_Factory,
ACE_TEXT ("TCP_Flow_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/orbsvcs/orbsvcs/AV/TCP.h b/TAO/orbsvcs/orbsvcs/AV/TCP.h
index 1f51a7329be..51bb5235fd6 100644
--- a/TAO/orbsvcs/orbsvcs/AV/TCP.h
+++ b/TAO/orbsvcs/orbsvcs/AV/TCP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,13 +15,10 @@
#define TAO_AV_TCP_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/Protocol_Factory.h"
-#include "orbsvcs/AV/FlowSpec_Entry.h"
+#include "Protocol_Factory.h"
+#include "FlowSpec_Entry.h"
#include "ace/Service_Config.h"
-#include "ace/Svc_Handler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_AV_TCP_Factory
@@ -271,8 +268,6 @@ public:
TAO_AV_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AV_TCP_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_TCP_Flow_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/AV/Transport.cpp b/TAO/orbsvcs/orbsvcs/AV/Transport.cpp
index 03047ef23e6..4cce7ccdd8c 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Transport.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/Transport.cpp
@@ -1,17 +1,17 @@
// $Id$
-#include "orbsvcs/AV/AVStreams_i.h"
-#include "orbsvcs/AV/sfp.h"
-#include "orbsvcs/AV/MCast.h"
-#include "orbsvcs/AV/RTCP.h"
-#include "orbsvcs/AV/RTP.h"
-#include "orbsvcs/AV/UDP.h"
-#include "orbsvcs/AV/TCP.h"
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-#include "orbsvcs/AV/AV_Core.h"
+#include "AVStreams_i.h"
+#include "sfp.h"
+#include "MCast.h"
+#include "RTCP.h"
+#include "RTP.h"
+#include "UDP.h"
+#include "TCP.h"
+#include "FlowSpec_Entry.h"
+#include "AV_Core.h"
#if defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS)
-#include "orbsvcs/AV/QoS_UDP.h"
+#include "QoS_UDP.h"
#endif /* defined (ACE_HAS_RAPI) || defined (ACE_HAS_WINSOCK2_GQOS) */
#include "tao/debug.h"
@@ -19,12 +19,9 @@
#include "ace/Dynamic_Service.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/AV/Transport.i"
+#include "Transport.i"
#endif /* __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_Transport_Item
//------------------------------------------------------------
@@ -678,5 +675,3 @@ TAO_AV_Transport_Factory::make_connector (void)
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/Transport.h b/TAO/orbsvcs/orbsvcs/AV/Transport.h
index e494a20b9d4..8de06427317 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Transport.h
+++ b/TAO/orbsvcs/orbsvcs/AV/Transport.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,12 +15,6 @@
#define TAO_AV_TRANSPORT_H
#include /**/ "ace/pre.h"
-
-#include "orbsvcs/AV/FlowSpec_Entry.h"
-#include "orbsvcs/AV/AV_Core.h"
-
-#include "orbsvcs/AV/AV_export.h"
-
#include "ace/Service_Object.h"
#include "ace/Acceptor.h"
#include "ace/SOCK_Acceptor.h"
@@ -28,9 +22,9 @@
#include "ace/Connector.h"
#include "ace/Addr.h"
#include "ace/SOCK_Dgram.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "orbsvcs/AV/AV_export.h"
+#include "FlowSpec_Entry.h"
+#include "AV_Core.h"
// Forward declarations.
class TAO_AV_Core;
@@ -335,10 +329,9 @@ public:
int ref_count;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/AV/Transport.i"
+#include "Transport.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/AV/Transport.i b/TAO/orbsvcs/orbsvcs/AV/Transport.i
index c05c2474e2b..851a27a8b95 100644
--- a/TAO/orbsvcs/orbsvcs/AV/Transport.i
+++ b/TAO/orbsvcs/orbsvcs/AV/Transport.i
@@ -1,8 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// Transport.i
+
+
//------------------------------------------------------------
// TAO_AV_Transport_Item
@@ -107,5 +108,3 @@ TAO_AV_Connector::flowname (void)
{
return this->flowname_.c_str ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/UDP.cpp b/TAO/orbsvcs/orbsvcs/AV/UDP.cpp
index 827079c3c90..7d0484593b1 100644
--- a/TAO/orbsvcs/orbsvcs/AV/UDP.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/UDP.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/AV/UDP.h"
-#include "orbsvcs/AV/AVStreams_i.h"
-#include "orbsvcs/AV/MCast.h"
+#include "UDP.h"
+#include "AVStreams_i.h"
+#include "MCast.h"
#include "tao/debug.h"
#include "ace/OS_NS_strings.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/AV/UDP.i"
+#include "UDP.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (AV,
UDP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------
// TAO_AV_UDP_Flow_Handler
//------------------------------------------------------------
@@ -270,7 +268,7 @@ TAO_AV_UDP_Transport::send (const char *buf,
ACE_Time_Value *)
{
if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"TAO_AV_UDP_Transport::send "));
- char addr [BUFSIZ];
+ ACE_TCHAR addr [BUFSIZ];
this->peer_addr_.addr_to_string (addr,BUFSIZ);
if (TAO_debug_level > 0) ACE_DEBUG ((LM_DEBUG,"to %s\n",addr));
@@ -377,7 +375,7 @@ TAO_AV_UDP_Acceptor::open (TAO_Base_StreamEndPoint *endpoint,
if (inet_addr != 0)
{
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
inet_addr->addr_to_string (buf,
BUFSIZ);
@@ -544,7 +542,7 @@ TAO_AV_UDP_Acceptor::open_i (ACE_INET_Addr *inet_addr,
this->entry_->control_handler (flow_handler);
}
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
local_addr->addr_to_string (buf,BUFSIZ);
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
@@ -646,7 +644,7 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry,
if ((addr = entry->get_peer_addr ()) != 0)
{
local_addr = dynamic_cast<ACE_INET_Addr*> (addr);
- char buf [BUFSIZ];
+ ACE_TCHAR buf [BUFSIZ];
local_addr->addr_to_string (buf, BUFSIZ);
}
@@ -679,9 +677,10 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry,
if (local_addr != 0)
{
- char buf [BUFSIZ];
- ACE_CString addr_str (local_addr->get_host_name ());
- addr_str += ":";
+ ACE_TCHAR buf [BUFSIZ];
+ local_addr->get_host_name (buf, BUFSIZ);
+ ACE_TString addr_str (buf);
+ addr_str += ACE_TEXT(":");
addr_str += ACE_OS::itoa (local_addr->get_port_number () + 1, buf, 10);
ACE_NEW_RETURN (local_control_addr,
ACE_INET_Addr (addr_str.c_str ()),
@@ -750,7 +749,7 @@ TAO_AV_UDP_Connector::connect (TAO_FlowSpec_Entry *entry,
transport = flow_handler->transport ();
}
- char buf[BUFSIZ];
+ ACE_TCHAR buf[BUFSIZ];
local_addr->addr_to_string (buf,BUFSIZ);
if (TAO_debug_level > 0)
@@ -889,7 +888,7 @@ TAO_AV_UDP_Connection_Setup::setup (TAO_AV_Flow_Handler *&flow_handler,
local_addr->set (local_addr->get_port_number (),
local_addr->get_host_name ());
- char buf [BUFSIZ];
+ ACE_TCHAR buf [BUFSIZ];
local_addr->addr_to_string (buf, BUFSIZ);
if (result < 0)
@@ -1073,8 +1072,6 @@ TAO_AV_UDP_Flow_Factory::make_protocol_object (TAO_FlowSpec_Entry *entry,
return object;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_UDP_Flow_Factory)
ACE_STATIC_SVC_DEFINE (TAO_AV_UDP_Flow_Factory,
ACE_TEXT ("UDP_Flow_Factory"),
diff --git a/TAO/orbsvcs/orbsvcs/AV/UDP.h b/TAO/orbsvcs/orbsvcs/AV/UDP.h
index f582af25ec7..1c228004bcf 100644
--- a/TAO/orbsvcs/orbsvcs/AV/UDP.h
+++ b/TAO/orbsvcs/orbsvcs/AV/UDP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -13,15 +13,12 @@
#ifndef TAO_AV_UDP_H
#define TAO_AV_UDP_H
-
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/Protocol_Factory.h"
+#include "Protocol_Factory.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_AV_UDP_Factory
* @brief
@@ -278,8 +275,6 @@ public:
TAO_AV_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AV_UDP_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_UDP_Flow_Factory)
@@ -288,9 +283,8 @@ ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_UDP_Factory)
#if defined(__ACE_INLINE__)
-#include "orbsvcs/AV/UDP.i"
+#include "UDP.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
-
#endif /* TAO_AV_UDP_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/UDP.i b/TAO/orbsvcs/orbsvcs/AV/UDP.i
index 72025b94dd5..4ea0abde89a 100644
--- a/TAO/orbsvcs/orbsvcs/AV/UDP.i
+++ b/TAO/orbsvcs/orbsvcs/AV/UDP.i
@@ -1,13 +1,10 @@
-// -*- C++ -*-
-//
-// $Id$
+/* -*- C++ -*- */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// $Id$
//----------------------------------------------------------------------
// TAO_AV_UDP_Flow_Handler
//----------------------------------------------------------------------
-
ACE_INLINE
const ACE_SOCK_Dgram *
TAO_AV_UDP_Flow_Handler::get_socket (void) const
@@ -28,5 +25,3 @@ TAO_AV_UDP_Flow_Handler::close (void)
{
return this->sock_dgram_.close ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp b/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp
index 708bfd80308..e29c8e154ce 100644
--- a/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/default_resource.cpp
@@ -6,8 +6,6 @@
#include "tao/debug.h"
#include "ace/OS_NS_strings.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_AV_Default_Resource_Factory::TAO_AV_Default_Resource_Factory (void)
{
if (TAO_debug_level > 0)
@@ -90,8 +88,6 @@ TAO_AV_Default_Resource_Factory::init (int argc, char *argv[])
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
@@ -105,3 +101,11 @@ ACE_STATIC_SVC_DEFINE (TAO_AV_Default_Resource_Factory,
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_Default_Resource_Factory)
// ****************************************************************
+
+
+
+
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/AV/default_resource.h b/TAO/orbsvcs/orbsvcs/AV/default_resource.h
index 0bf2a7b930f..01420bb907f 100644
--- a/TAO/orbsvcs/orbsvcs/AV/default_resource.h
+++ b/TAO/orbsvcs/orbsvcs/AV/default_resource.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file default_resource.h
@@ -24,8 +22,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_AV_Default_Resource_Factory
*
@@ -38,7 +34,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
*/
class TAO_AV_Export TAO_AV_Default_Resource_Factory
- : public TAO_AV_Resource_Factory
+: public TAO_AV_Resource_Factory
{
public:
@@ -57,8 +53,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_AV, TAO_AV_Default_Resource_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_Default_Resource_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/AV/md5c.cpp b/TAO/orbsvcs/orbsvcs/AV/md5c.cpp
index aa4a99f8fb3..ad1865f947e 100644
--- a/TAO/orbsvcs/orbsvcs/AV/md5c.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/md5c.cpp
@@ -25,8 +25,8 @@ documentation and/or software.
/* $Id$ */
-#include "orbsvcs/AV/global.h"
-#include "orbsvcs/AV/md5.h"
+#include "global.h"
+#include "md5.h"
/* Constants for MD5Transform routine.
*/
diff --git a/TAO/orbsvcs/orbsvcs/AV/media_timer.cpp b/TAO/orbsvcs/orbsvcs/AV/media_timer.cpp
index 1a5b9cd1e42..098515b27d5 100644
--- a/TAO/orbsvcs/orbsvcs/AV/media_timer.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/media_timer.cpp
@@ -37,13 +37,11 @@ static const char rcsid[] =
"@(#) $Header$";
*/
-#include "orbsvcs/AV/media_timer.h"
+#include "media_timer.h"
#include "ace/Time_Value.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/OS_NS_stdlib.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
MediaTimer* MediaTimer::instance_;
MediaTimer::MediaTimer()
@@ -91,5 +89,3 @@ ACE_UINT32 MediaTimer::ref_ts()
{
return (media_ts());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/AV/media_timer.h b/TAO/orbsvcs/orbsvcs/AV/media_timer.h
index e7e060d5cb4..408ecb7136b 100644
--- a/TAO/orbsvcs/orbsvcs/AV/media_timer.h
+++ b/TAO/orbsvcs/orbsvcs/AV/media_timer.h
@@ -1,7 +1,5 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
-
/*
* Copyright (c) 1995 Regents of the University of California.
* All rights reserved.
@@ -41,13 +39,9 @@
#define TAO_AV_MEDIA_TIMER_H
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
-#include "tao/Versioned_Namespace.h"
-
+#include "ace/Basic_Types.h"
//long random (void);
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class MediaTimer
{
public:
@@ -63,7 +57,5 @@ class MediaTimer
ACE_UINT32 offset_; /* random offset */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_AV_MEDIA_TIMER_H */
diff --git a/TAO/orbsvcs/orbsvcs/AV/ntp-time.h b/TAO/orbsvcs/orbsvcs/AV/ntp-time.h
index 11dcd720911..d2e4b5da547 100644
--- a/TAO/orbsvcs/orbsvcs/AV/ntp-time.h
+++ b/TAO/orbsvcs/orbsvcs/AV/ntp-time.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
/*
* Copyright (c) 1995 The Regents of the University of California.
@@ -32,13 +31,15 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * @(#) $Header$
*/
-
#ifndef TAO_AV_NTP_TIME_H
#define TAO_AV_NTP_TIME_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/AV/RTCP.h"
+#include "ace/OS.h"
+#include "RTCP.h"
/*
* convert microseconds to fraction of second * 2^32 (i.e., the lsw of
@@ -48,8 +49,8 @@
*/
ACE_INLINE u_int usec2ntp(u_int usec)
{
- u_int const t = (usec * 1825) >> 5;
- return ((usec << 12) + (usec << 8) - t);
+ u_int t = (usec * 1825) >> 5;
+ return ((usec << 12) + (usec << 8) - t);
}
/*
diff --git a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp
index 0046ce08f85..9c9cccf126a 100644
--- a/TAO/orbsvcs/orbsvcs/AV/sfp.cpp
+++ b/TAO/orbsvcs/orbsvcs/AV/sfp.cpp
@@ -1,21 +1,20 @@
// $Id$
-#include "orbsvcs/AV/sfp.h"
-#include "tao/debug.h"
+#include "sfp.h"
#include "ace/ARGV.h"
-#include "ace/OS_NS_strings.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/debug.h"
+#include "ace/OS_NS_strings.h"
// default arguments to pass to use for the ORB
-const char TAO_SFP_Base::TAO_SFP_ORB_ARGUMENTS[] = "-ORBObjRefStyle URL";
+const char *TAO_SFP_Base::TAO_SFP_ORB_ARGUMENTS = "-ORBObjRefStyle URL";
// SFP magic numbers
-const char TAO_SFP_Base::TAO_SFP_MAGIC_NUMBER[] = "=SFP";
-const char TAO_SFP_Base::TAO_SFP_FRAGMENT_MAGIC_NUMBER[] = "FRAG";
-const char TAO_SFP_Base::TAO_SFP_START_MAGIC_NUMBER[] = "=STA";
-const char TAO_SFP_Base::TAO_SFP_CREDIT_MAGIC_NUMBER[] = "=CRE";
-const char TAO_SFP_Base::TAO_SFP_STARTREPLY_MAGIC_NUMBER[] = "=STR";
+const char *TAO_SFP_Base::TAO_SFP_MAGIC_NUMBER = "=SFP";
+const char *TAO_SFP_Base::TAO_SFP_FRAGMENT_MAGIC_NUMBER = "FRAG";
+const char *TAO_SFP_Base::TAO_SFP_START_MAGIC_NUMBER = "=STA";
+const char *TAO_SFP_Base::TAO_SFP_CREDIT_MAGIC_NUMBER = "=CRE";
+const char *TAO_SFP_Base::TAO_SFP_STARTREPLY_MAGIC_NUMBER = "=STR";
// SFP version 1.0
const unsigned char TAO_SFP_Base::TAO_SFP_MAJOR_VERSION = 1;
@@ -496,7 +495,7 @@ TAO_SFP_Base::start_frame (CORBA::Octet flags,
frame_header.magic_number [2] = 'F';
frame_header.magic_number [3] = 'P';
frame_header.flags = flags;
- frame_header.message_type = static_cast<CORBA::Octet> (type);
+ frame_header.message_type = type;
frame_header.message_size = 0;
if (!(msg << frame_header))
return 0;
@@ -1324,8 +1323,6 @@ TAO_SFP_Frame_State::reset (void)
template ACE_Singleton<TAO_SFP_Base, ACE_Thread_Mutex> *ACE_Singleton<TAO_SFP_Base, ACE_Thread_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_AV, TAO_AV_SFP_Factory)
ACE_STATIC_SVC_DEFINE (TAO_AV_SFP_Factory,
ACE_TEXT ("SFP_Factory"),
diff --git a/TAO/orbsvcs/orbsvcs/AV/sfp.h b/TAO/orbsvcs/orbsvcs/AV/sfp.h
index 35ab492f34f..1885a633231 100644
--- a/TAO/orbsvcs/orbsvcs/AV/sfp.h
+++ b/TAO/orbsvcs/orbsvcs/AV/sfp.h
@@ -15,19 +15,15 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/AV/AV_export.h"
-
-#include "orbsvcs/AV/Policy.h"
-#include "orbsvcs/AV/MCast.h"
-#include "orbsvcs/AV/AVStreams_i.h"
-#include "orbsvcs/AV/UDP.h"
-
#include "orbsvcs/sfpC.h"
-
-#include "tao/CDR.h"
-
#include "ace/SOCK_Dgram.h"
#include "ace/INET_Addr.h"
+#include "tao/CDR.h"
+#include "Policy.h"
+#include "MCast.h"
+#include "AVStreams_i.h"
+#include "UDP.h"
#define TAO_SFP_MAGIC_NUMBER_LEN 4
#define TAO_SFP_MESSAGE_TYPE_OFFSET 5
@@ -35,8 +31,6 @@
#define TAO_SFP_MAX_PACKET_SIZE ACE_MAX_DGRAM_SIZE
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_SFP_Fragment_Node
* @brief
@@ -44,7 +38,9 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_SFP_Fragment_Node
{
public:
- TAO_SFP_Fragment_Node (void) : data_ (0) {}
+ TAO_SFP_Fragment_Node (void)
+ :data_ (0)
+ {}
flowProtocol::fragment fragment_info_;
ACE_Message_Block *data_;
friend bool operator< (const TAO_SFP_Fragment_Node& left,
@@ -107,14 +103,14 @@ class TAO_AV_Export TAO_SFP_Base
{
public:
// default arguments to pass to use for the ORB
- static const char TAO_SFP_ORB_ARGUMENTS[];
+ static const char *TAO_SFP_ORB_ARGUMENTS;
// SFP magic numbers
- static const char TAO_SFP_MAGIC_NUMBER[];
- static const char TAO_SFP_FRAGMENT_MAGIC_NUMBER[];
- static const char TAO_SFP_START_MAGIC_NUMBER[];
- static const char TAO_SFP_CREDIT_MAGIC_NUMBER[];
- static const char TAO_SFP_STARTREPLY_MAGIC_NUMBER[];
+ static const char *TAO_SFP_MAGIC_NUMBER;
+ static const char *TAO_SFP_FRAGMENT_MAGIC_NUMBER;
+ static const char *TAO_SFP_START_MAGIC_NUMBER;
+ static const char *TAO_SFP_CREDIT_MAGIC_NUMBER;
+ static const char *TAO_SFP_STARTREPLY_MAGIC_NUMBER;
// SFP version 1.0
static const unsigned char TAO_SFP_MAJOR_VERSION;
@@ -297,8 +293,6 @@ public:
TAO_AV_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AV_SFP_Flow_Factory)
ACE_FACTORY_DECLARE (TAO_AV, TAO_AV_SFP_Flow_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/CSIIOP.idl b/TAO/orbsvcs/orbsvcs/CSIIOP.idl
index 548ddb0f76d..1807ab38d40 100644
--- a/TAO/orbsvcs/orbsvcs/CSIIOP.idl
+++ b/TAO/orbsvcs/orbsvcs/CSIIOP.idl
@@ -13,7 +13,7 @@
#ifndef _CSIIOP_IDL_
#define _CSIIOP_IDL_
-//#include <tao/IOP.pidl>
+//#include <IOP.pidl>
#include "tao/IOP_IOR.pidl"
#include "CSI.idl"
//import ::IOP
diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp
index 80eeaf1d7ac..a8a79821a67 100644
--- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.cpp
@@ -1,16 +1,18 @@
// $Id$
-#ifndef ACE_CHANNEL_CLIENTS_T_CPP
-#define ACE_CHANNEL_CLIENTS_T_CPP
+#ifndef ACE_CHANNEL_CLIENTS_T_C
+#define ACE_CHANNEL_CLIENTS_T_C
#include "orbsvcs/Channel_Clients_T.h"
+ACE_RCSID (orbsvcs,
+ Channel_Clients_T,
+ "$Id$")
+
#if !defined (__ACE_INLINE__)
#include "orbsvcs/Channel_Clients_T.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class TARGET> void
ACE_PushConsumer_Adapter<TARGET>::push (const RtecEventComm::EventSet& events
ACE_ENV_ARG_DECL)
@@ -36,6 +38,4 @@ ACE_PushSupplier_Adapter<TARGET>::disconnect_push_supplier (
target_->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_CHANNEL_CLIENTS_T_CPP */
+#endif /* ACE_CHANNEL_CLIENTS_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h
index 10071d978ea..de0933ec05c 100644
--- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h
+++ b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -28,8 +27,6 @@
#include "orbsvcs/RtecEventCommS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_PushConsumer_Adapter
*
@@ -81,8 +78,6 @@ private:
TARGET *target_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "orbsvcs/Channel_Clients_T.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i
index 3c21f6c9bb2..620b6fd04a8 100644
--- a/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i
+++ b/TAO/orbsvcs/orbsvcs/Channel_Clients_T.i
@@ -1,8 +1,6 @@
-// -*- C++ -*-
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+//
template<class TARGET> ACE_INLINE
ACE_PushConsumer_Adapter<TARGET>::ACE_PushConsumer_Adapter (TARGET *t)
@@ -16,4 +14,4 @@ ACE_PushSupplier_Adapter<TARGET>::ACE_PushSupplier_Adapter (TARGET *t)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp
index 3e62837cfdb..5ab30c57eb0 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.cpp
@@ -17,15 +17,13 @@
//
// ============================================================================
-#include "orbsvcs/Concurrency/CC_Lock.h"
+#include "CC_Lock.h"
#include "ace/Log_Msg.h"
ACE_RCSID (Concurrency,
CC_Lock,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CC_Lock::CC_Lock (void)
: mode_ (CosConcurrencyControl::intention_read),
lock_held_ (0)
@@ -231,7 +229,7 @@ void CC_LockModeIterator::Next (ACE_ENV_SINGLE_ARG_DECL)
CORBA::Boolean
CC_LockModeIterator::IsDone (void)
{
- if (current_ == CosConcurrencyControl::write)
+ if (current_==CosConcurrencyControl::write)
return 1;
else
return 0;
@@ -242,5 +240,3 @@ CC_LockModeIterator::GetLockMode (void)
{
return current_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h
index 622f973a9df..668ee73708b 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_Lock.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,15 +26,13 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosConcurrencyControlC.h"
-#include "orbsvcs/Concurrency/concurrency_serv_export.h"
+#include "concurrency_export.h"
/// This constant defines the number of lock modes. There is really no
/// way to set this constant dynamically because the nuber of lock
/// modes are not stated as part of the IDL.
#define NUMBER_OF_LOCK_MODES 5
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class CC_Lock
*
@@ -47,7 +45,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* which is essentially a write lock since it is not allowed to
* have more than one lock pr. servant in this implementation.
*/
-class TAO_Concurrency_Serv_Export CC_Lock
+class TAO_Concurrency_Export CC_Lock
{
public:
/// Creates the lock with mode = intention_read (weakest)
@@ -116,7 +114,7 @@ private:
* weakest (intention read) to the strongest (write).
* Ordering: IR -> R -> U -> IW -> W
*/
-class TAO_Concurrency_Serv_Export CC_LockModeIterator
+class TAO_Concurrency_Export CC_LockModeIterator
{
public:
/// Default constructor
@@ -142,7 +140,5 @@ private:
CosConcurrencyControl::lock_mode current_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* !defined (_CC_LOCK_H) */
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp
index 91ef3d63be5..bfbfb34f812 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.cpp
@@ -13,15 +13,12 @@
//
// ============================================================================
-#include "orbsvcs/Concurrency/CC_LockSet.h"
+#include "CC_LockSet.h"
ACE_RCSID (Concurrency,
CC_LockSet,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructor.
CC_LockSet::CC_LockSet (void)
@@ -317,14 +314,9 @@ CC_LockSet::dump (void)
lock_[CC_W]));
}
-CORBA::Boolean const
-CC_LockSet::compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES] =
- {
- {1, 1, 1, 1, 0},
- {1, 1, 1, 0, 0},
- {1, 1, 0, 0, 0},
- {1, 0, 0, 1, 0},
- {0, 0, 0, 0, 0}
- };
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+CORBA::Boolean CC_LockSet::compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES] ={
+ {1, 1, 1, 1, 0},
+ {1, 1, 1, 0, 0},
+ {1, 1, 0, 0, 0},
+ {1, 0, 0, 1, 0},
+ {0, 0, 0, 0, 0}};
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h
index 1d01ebeef27..75bb4e1a88f 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSet.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -45,7 +45,7 @@
#include "ace/Unbounded_Queue.h"
#include "orbsvcs/CosConcurrencyControlS.h"
-#include "orbsvcs/Concurrency/concurrency_serv_export.h"
+#include "concurrency_export.h"
#if defined (lock_held)
#undef lock_held
@@ -56,8 +56,6 @@
/// modes are not stated as part of the IDL.
#define NUMBER_OF_LOCK_MODES 5
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Enummeration representing the lock modes. The incoming request is
/// always converted to this representation. There are two reasons for
/// this: Firstly the lock modes are ordered from weakest to strongest
@@ -75,7 +73,7 @@ typedef enum {CC_EM=-1, CC_IR=0, CC_R, CC_U, CC_IW, CC_W} CC_LockModeEnum;
* detailed descriptions apart from the comments in this file At
* present the lock set is not really a set, but only one lock.
*/
-class TAO_Concurrency_Serv_Export CC_LockSet : public POA_CosConcurrencyControl::LockSet
+class TAO_Concurrency_Export CC_LockSet : public POA_CosConcurrencyControl::LockSet
{
public:
@@ -183,7 +181,7 @@ private:
/// Mapping between requested and held lock modes. Used by compatible
/// (...). Uses the internal enumeration as indices.
- static CORBA::Boolean const compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES];
+ static CORBA::Boolean compatible_[NUMBER_OF_LOCK_MODES][NUMBER_OF_LOCK_MODES];
/// Lock to ensure that race conditions does not occur.
TAO_SYNCH_MUTEX mlock_;
@@ -192,8 +190,6 @@ private:
ACE_Unbounded_Queue <CC_LockModeEnum> lock_queue_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* _CC_LOCKSET_H */
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp
index dfe17f3913a..48a66786043 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.cpp
@@ -1,3 +1,4 @@
+
//=============================================================================
/**
* @file CC_LockSetFactory.cpp
@@ -9,13 +10,11 @@
//=============================================================================
-#include "orbsvcs/Concurrency/CC_LockSetFactory.h"
-#include "orbsvcs/Concurrency/CC_LockSet.h"
+#include "CC_LockSetFactory.h"
+#include "CC_LockSet.h"
ACE_RCSID(Concurrency, CC_LockSetFactory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructor
CC_LockSetFactory::CC_LockSetFactory (void)
{
@@ -58,5 +57,3 @@ CC_LockSetFactory::create_related (CosConcurrencyControl::LockSet_ptr which
return ls->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h
index 6a02b8ed68d..b49944528d8 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/CC_LockSetFactory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,9 +21,7 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/CosConcurrencyControlS.h"
-#include "orbsvcs/Concurrency/concurrency_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "concurrency_export.h"
/**
* @class CC_LockSetFactory
@@ -35,7 +33,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* file for detailed descriptions apart from the comments in
* this file.
*/
-class TAO_Concurrency_Serv_Export CC_LockSetFactory
+class TAO_Concurrency_Export CC_LockSetFactory
: public POA_CosConcurrencyControl::LockSetFactory
{
public:
@@ -61,8 +59,6 @@ private:
TAO_SYNCH_MUTEX lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* _CC_LOCKSETFACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp
index b12a3a41e57..0fc686a1bc3 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.cpp
@@ -13,30 +13,33 @@
// Jaiganesh Balasubramanian <jai@doc.ece.uci.edu>
// ================================================================
-#include "orbsvcs/Concurrency/Concurrency_Loader.h"
+#include "Concurrency_Loader.h"
#include "ace/Dynamic_Service.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Concurrency, Concurrency_Loader, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Concurrency_Loader::TAO_Concurrency_Loader (void)
{
+ // Constructor
}
TAO_Concurrency_Loader::~TAO_Concurrency_Loader (void)
{
+ // Destructor
}
int
-TAO_Concurrency_Loader::init (int argc, char *argv[])
+TAO_Concurrency_Loader::init (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// This function call initializes the Concurrency Service
@@ -64,7 +67,7 @@ TAO_Concurrency_Loader::fini (void)
CORBA::Object_ptr
TAO_Concurrency_Loader::create_object (CORBA::ORB_ptr orb,
int /* argc */,
- char * /* argv */ []
+ ACE_TCHAR * /* argv */ []
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -83,6 +86,4 @@ TAO_Concurrency_Loader::create_object (CORBA::ORB_ptr orb,
return this->concurrency_server_.init (orb, poa.in ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_DEFINE (TAO_Concurrency_Serv, TAO_Concurrency_Loader)
+ACE_FACTORY_DEFINE (TAO_Concurrency, TAO_Concurrency_Loader)
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h
index b49ae60f6f8..92b0575271c 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Loader.h
@@ -1,8 +1,6 @@
-// -*- C++ -*-
-
// $Id$
-// ===========================================================================
+// ===========================================================================================
// FILENAME
// Concurrency_Loader.h
//
@@ -14,7 +12,7 @@
// Jaiganesh Balasubramanian <jai@doc.ece.uci.edu>
// Priyanka Gontla <pgontla<ece.uci.edu>
//
-// ===========================================================================
+// ==========================================================================================
#ifndef TAO_CONCURRENCY_LOADER_H
#define TAO_CONCURRENCY_LOADER_H
@@ -27,9 +25,7 @@
#include "orbsvcs/Concurrency/Concurrency_Utils.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Concurrency_Serv_Export TAO_Concurrency_Loader : public TAO_Object_Loader
+class TAO_Concurrency_Export TAO_Concurrency_Loader : public TAO_Object_Loader
{
public:
@@ -41,7 +37,7 @@ public:
/// Called by the Service Configurator framework to initialize the
/// Event Service. Defined in <ace/Service_Config.h>
- virtual int init (int argc, char *argv[]);
+ virtual int init (int argc, ACE_TCHAR *argv[]);
/// Called by the Service Configurator framework to remove the
/// Event Service. Defined in <ace/Service_Config.h>
@@ -50,10 +46,10 @@ public:
/// This function call initializes the Concurrency Service given a
/// reference to the ORB and the command line parameters.
CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
- int argc, char *argv[]
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
+ int argc,
+ ACE_TCHAR* argv []
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException));
protected:
/// Instance of the TAO_Concurrency_Server
@@ -61,14 +57,10 @@ public:
private:
- // Disallow copying and assignment.
- TAO_Concurrency_Loader (const TAO_Concurrency_Loader &);
- TAO_Concurrency_Loader &operator = (const TAO_Concurrency_Loader &);
-
+ACE_UNIMPLEMENTED_FUNC (TAO_Concurrency_Loader (const TAO_Concurrency_Loader &))
+ACE_UNIMPLEMENTED_FUNC (TAO_Concurrency_Loader &operator = (const TAO_Concurrency_Loader &))
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_DECLARE (TAO_Concurrency_Serv, TAO_Concurrency_Loader)
+ACE_FACTORY_DECLARE (TAO_Concurrency, TAO_Concurrency_Loader)
#endif /* TAO_CONCURRENCY_LOADER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp
index 570cef2f20f..5aaa4d8d70b 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.cpp
@@ -1,3 +1,4 @@
+
//=============================================================================
/**
* @file Concurrency_Utils.cpp
@@ -12,14 +13,12 @@
#include "ace/streams.h"
#include "orbsvcs/CosConcurrencyControlC.h"
#include "tao/debug.h"
-#include "orbsvcs/Concurrency/Concurrency_Utils.h"
+#include "Concurrency_Utils.h"
ACE_RCSID (Concurrency,
Concurrency_Utils,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructor
TAO_Concurrency_Server::TAO_Concurrency_Server (void)
{
@@ -122,5 +121,3 @@ TAO_Concurrency_Server::GetLockSetFactory(void)
TAO_Concurrency_Server::~TAO_Concurrency_Server (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h
index bd2b7173f37..ac92e019ecb 100644
--- a/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Concurrency/Concurrency_Utils.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,11 +23,8 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/CosConcurrencyControlC.h"
-#include "orbsvcs/Concurrency/CC_LockSetFactory.h"
-#include "orbsvcs/Concurrency/concurrency_serv_export.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CC_LockSetFactory.h"
+#include "concurrency_export.h"
/**
* @class TAO_Concurrency_Server
@@ -38,7 +35,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* This class takes an orb and Poa reference and activates the
* concurrency service lock set factory object under them.
*/
-class TAO_Concurrency_Serv_Export TAO_Concurrency_Server
+class TAO_Concurrency_Export TAO_Concurrency_Server
{
public:
// = Initialization and termination methods.
@@ -71,7 +68,5 @@ private:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* _CONCURRENCY_SERVER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/concurrency_serv_export.h b/TAO/orbsvcs/orbsvcs/Concurrency/concurrency_serv_export.h
deleted file mode 100644
index fe99ece77aa..00000000000
--- a/TAO/orbsvcs/orbsvcs/Concurrency/concurrency_serv_export.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl
-// ------------------------------
-#ifndef TAO_CONCURRENCY_SERV_EXPORT_H
-#define TAO_CONCURRENCY_SERV_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (TAO_AS_STATIC_LIBS)
-# if !defined (TAO_CONCURRENCY_SERV_HAS_DLL)
-# define TAO_CONCURRENCY_SERV_HAS_DLL 0
-# endif /* ! TAO_CONCURRENCY_SERV_HAS_DLL */
-#else
-# if !defined (TAO_CONCURRENCY_SERV_HAS_DLL)
-# define TAO_CONCURRENCY_SERV_HAS_DLL 1
-# endif /* ! TAO_CONCURRENCY_SERV_HAS_DLL */
-#endif
-
-#if defined (TAO_CONCURRENCY_SERV_HAS_DLL) && (TAO_CONCURRENCY_SERV_HAS_DLL == 1)
-# if defined (TAO_CONCURRENCY_SERV_BUILD_DLL)
-# define TAO_Concurrency_Serv_Export ACE_Proper_Export_Flag
-# define TAO_CONCURRENCY_SERV_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_CONCURRENCY_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_CONCURRENCY_SERV_BUILD_DLL */
-# define TAO_Concurrency_Serv_Export ACE_Proper_Import_Flag
-# define TAO_CONCURRENCY_SERV_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_CONCURRENCY_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_CONCURRENCY_SERV_BUILD_DLL */
-#else /* TAO_CONCURRENCY_SERV_HAS_DLL == 1 */
-# define TAO_Concurrency_Serv_Export
-# define TAO_CONCURRENCY_SERV_SINGLETON_DECLARATION(T)
-# define TAO_CONCURRENCY_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_CONCURRENCY_SERV_HAS_DLL == 1 */
-
-#endif /* TAO_CONCURRENCY_SERV_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/orbsvcs/orbsvcs/Concurrency/concurrency_skel_export.h b/TAO/orbsvcs/orbsvcs/Concurrency/concurrency_skel_export.h
deleted file mode 100644
index 5894da8e9de..00000000000
--- a/TAO/orbsvcs/orbsvcs/Concurrency/concurrency_skel_export.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl
-// ------------------------------
-#ifndef TAO_CONCURRENCY_SKEL_EXPORT_H
-#define TAO_CONCURRENCY_SKEL_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (TAO_AS_STATIC_LIBS)
-# if !defined (TAO_CONCURRENCY_SKEL_HAS_DLL)
-# define TAO_CONCURRENCY_SKEL_HAS_DLL 0
-# endif /* ! TAO_CONCURRENCY_SKEL_HAS_DLL */
-#else
-# if !defined (TAO_CONCURRENCY_SKEL_HAS_DLL)
-# define TAO_CONCURRENCY_SKEL_HAS_DLL 1
-# endif /* ! TAO_CONCURRENCY_SKEL_HAS_DLL */
-#endif
-
-#if defined (TAO_CONCURRENCY_SKEL_HAS_DLL) && (TAO_CONCURRENCY_SKEL_HAS_DLL == 1)
-# if defined (TAO_CONCURRENCY_SKEL_BUILD_DLL)
-# define TAO_Concurrency_Skel_Export ACE_Proper_Export_Flag
-# define TAO_CONCURRENCY_SKEL_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_CONCURRENCY_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_CONCURRENCY_SKEL_BUILD_DLL */
-# define TAO_Concurrency_Skel_Export ACE_Proper_Import_Flag
-# define TAO_CONCURRENCY_SKEL_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_CONCURRENCY_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_CONCURRENCY_SKEL_BUILD_DLL */
-#else /* TAO_CONCURRENCY_SKEL_HAS_DLL == 1 */
-# define TAO_Concurrency_Skel_Export
-# define TAO_CONCURRENCY_SKEL_SINGLETON_DECLARATION(T)
-# define TAO_CONCURRENCY_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_CONCURRENCY_SKEL_HAS_DLL == 1 */
-
-#endif /* TAO_CONCURRENCY_SKEL_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/orbsvcs/orbsvcs/CosConcurrency.mpc b/TAO/orbsvcs/orbsvcs/CosConcurrency.mpc
index 99fab62e680..3f313dae277 100644
--- a/TAO/orbsvcs/orbsvcs/CosConcurrency.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosConcurrency.mpc
@@ -1,106 +1,30 @@
// -*- MPC -*-
// $Id$
-project(CosConcurrency_IDL): orbsvcslib, core, tao_versioning_idl_defaults {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Concurrency_Export -Wb,stub_export_include=orbsvcs/Concurrency/concurrency_export.h -Wb,skel_export_macro=TAO_Concurrency_Skel_Export -Wb,skel_export_include=orbsvcs/Concurrency/concurrency_skel_export.h
-
- IDL_Files {
- CosConcurrencyControl.idl
- }
-}
-
-project(CosConcurrency) : orbsvcslib, core {
+project(CosConcurrency) : orbsvcslib, core, portableserver {
sharedname = TAO_CosConcurrency
+ idlflags += -Wb,export_macro=TAO_Concurrency_Export -Wb,export_include=orbsvcs/Concurrency/concurrency_export.h
dynamicflags = TAO_CONCURRENCY_BUILD_DLL
tagchecks += Concurrency
- after += CosConcurrency_IDL
+ pch_header =
+ pch_source =
IDL_Files {
+ CosConcurrencyControl.idl
}
- Source_Files {
- CosConcurrencyControlC.cpp
- }
-
- Header_Files {
- CosConcurrencyControlC.h
- Concurrency/concurrency_export.h
- }
-
- Inline_Files {
- CosConcurrencyControlC.inl
+ Source_Files(ORBSVCS_COMPONENTS) {
+ Concurrency {
+ CosConcurrencyControlC.cpp
+ CosConcurrencyControlS.cpp
+ Concurrency
+ }
}
Template_Files {
}
- // explicit Resource_Files to avoid including _Skel & _Serv rc files.
- Resource_Files {
- }
-
Pkgconfig_Files {
TAO_CosConcurrency.pc.in
}
}
-
-project(CosConcurrency_Skel): orbsvcslib, core, concurrency, portableserver {
- sharedname = TAO_CosConcurrency_Skel
- dynamicflags = TAO_CONCURRENCY_SKEL_BUILD_DLL
- tagchecks += Concurrency
- after += CosConcurrency_IDL
-
- IDL_Files {
- }
-
- Source_Files {
- CosConcurrencyControlS.cpp
- }
-
- Header_Files {
- CosConcurrencyControlS.h
- Concurrency/concurrency_skel_export.h
- }
-
- Inline_Files {
- CosConcurrencyControlS.inl
- }
-
- Template_Files {
- }
-
- Pkgconfig_Files {
- TAO_CosConcurrency_Skel.pc.in
- }
-}
-
-project(CosConcurrency_Serv) : orbsvcslib, core, concurrency_skel {
- sharedname = TAO_CosConcurrency_Serv
- dynamicflags = TAO_CONCURRENCY_SERV_BUILD_DLL
- tagchecks += Concurrency
-
- IDL_Files {
- }
-
- Source_Files {
- Concurrency
- }
-
- Header_Files {
- Concurrency
- ^Concurrency/concurrency_export.h
- ^Concurrency/concurrency_skel_export.h
- }
-
- Inline_Files {
- Concurrency
- }
-
- Template_Files {
- Concurrency
- }
-
- Pkgconfig_Files {
- TAO_CosConcurrency_Serv.pc.in
- }
-}
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent.mpc b/TAO/orbsvcs/orbsvcs/CosEvent.mpc
index c3666a5ddfe..3fbee5cf0b8 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosEvent.mpc
@@ -1,20 +1,22 @@
// $Id$
-project (CosEvent_IDL) : orbsvcslib, core, minimum_corba, ec_typed_events_idl, tao_versioning_idl_defaults {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Event_Export -Wb,stub_export_include=orbsvcs/CosEvent/event_export.h -Wb,skel_export_macro=TAO_Event_Skel_Export -Wb,skel_export_include=orbsvcs/CosEvent/event_skel_export.h
+project (CosEvent_IDL) : orbsvcslib, core, minimum_corba, ec_typed_events_idl {
+
+ idlflags += -Wb,stub_export_macro=TAO_Event_Export -Wb,stub_export_include=orbsvcs/CosEvent/event_export.h -Wb,skel_export_macro=TAO_Event_Skel_Export -Wb,skel_export_include=orbsvcs/CosEvent/event_skel_export.h
IDL_Files {
CosEventComm.idl
CosEventChannelAdmin.idl
}
+
+ custom_only = 1
}
project (CosEvent) : orbsvcslib, core, minimum_corba, ec_typed_events {
sharedname = TAO_CosEvent
dynamicflags = TAO_EVENT_BUILD_DLL
- tagchecks += CosEvent
- after += CosEvent_IDL
+
+ after += CosEvent_IDL
IDL_Files {
}
@@ -52,7 +54,6 @@ project (CosEvent) : orbsvcslib, core, minimum_corba, ec_typed_events {
project (CosEvent_Skel) : orbsvcslib, core, minimum_corba, event, portableserver, ec_typed_events_skel {
sharedname = TAO_CosEvent_Skel
dynamicflags = TAO_EVENT_SKEL_BUILD_DLL
- tagchecks += CosEvent
IDL_Files {
}
@@ -88,7 +89,7 @@ project (CosEvent_Skel) : orbsvcslib, core, minimum_corba, event, portableserver
}
-project (CosEvent_Serv) : orbsvcslib, core, minimum_corba, event_skel, ec_typed_events_serv, messaging_optional, naming, svc_utils {
+project (CosEvent_Serv) : orbsvcslib, core, minimum_corba, event_skel, ec_typed_events_serv, messaging, naming, svc_utils {
sharedname = TAO_CosEvent_Serv
dynamicflags = TAO_EVENT_SERV_BUILD_DLL
tagchecks += CosEvent
@@ -96,34 +97,28 @@ project (CosEvent_Serv) : orbsvcslib, core, minimum_corba, event_skel, ec_typed_
IDL_Files {
}
- Source_Files {
- CosEvent/CEC_ConsumerAdmin.cpp
- CosEvent/CEC_ConsumerControl.cpp
- CosEvent/CEC_Default_Factory.cpp
- CosEvent/CEC_Dispatching.cpp
- CosEvent/CEC_Dispatching_Task.cpp
- CosEvent/CEC_EventChannel.cpp
- CosEvent/CEC_Event_Loader.cpp
- CosEvent/CEC_Factory.cpp
- CosEvent/CEC_MT_Dispatching.cpp
- CosEvent/CEC_ProxyPullConsumer.cpp
- CosEvent/CEC_ProxyPullSupplier.cpp
- CosEvent/CEC_ProxyPushConsumer.cpp
- CosEvent/CEC_ProxyPushSupplier.cpp
- CosEvent/CEC_Pulling_Strategy.cpp
- CosEvent/CEC_Reactive_ConsumerControl.cpp
- CosEvent/CEC_Reactive_Pulling_Strategy.cpp
- CosEvent/CEC_Reactive_SupplierControl.cpp
- CosEvent/CEC_SupplierAdmin.cpp
- CosEvent/CEC_SupplierControl.cpp
- }
-
- Header_Files {
- CosEvent/CEC_Defaults.h
- CosEvent/event_serv_export.h
- }
-
- Inline_Files {
+ Source_Files(ORBSVCS_COMPONENTS) {
+ CosEvent {
+ CosEvent/CEC_ConsumerAdmin.cpp
+ CosEvent/CEC_ConsumerControl.cpp
+ CosEvent/CEC_Default_Factory.cpp
+ CosEvent/CEC_Dispatching.cpp
+ CosEvent/CEC_Dispatching_Task.cpp
+ CosEvent/CEC_EventChannel.cpp
+ CosEvent/CEC_Event_Loader.cpp
+ CosEvent/CEC_Factory.cpp
+ CosEvent/CEC_MT_Dispatching.cpp
+ CosEvent/CEC_ProxyPullConsumer.cpp
+ CosEvent/CEC_ProxyPullSupplier.cpp
+ CosEvent/CEC_ProxyPushConsumer.cpp
+ CosEvent/CEC_ProxyPushSupplier.cpp
+ CosEvent/CEC_Pulling_Strategy.cpp
+ CosEvent/CEC_Reactive_ConsumerControl.cpp
+ CosEvent/CEC_Reactive_Pulling_Strategy.cpp
+ CosEvent/CEC_Reactive_SupplierControl.cpp
+ CosEvent/CEC_SupplierAdmin.cpp
+ CosEvent/CEC_SupplierControl.cpp
+ }
}
Template_Files {
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp
index 298c8981d9d..01b587f9343 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.cpp
@@ -1,23 +1,21 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_ProxyPushSupplier.h"
+#include "CEC_ProxyPullSupplier.h"
+#include "CEC_ProxyPushConsumer.h"
+#include "CEC_EventChannel.h"
#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.i"
+#include "CEC_ConsumerAdmin.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_ConsumerAdmin,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_ConsumerAdmin::TAO_CEC_ConsumerAdmin (TAO_CEC_EventChannel *ec)
: event_channel_ (ec),
push_admin_ (ec),
@@ -137,5 +135,3 @@ TAO_CEC_Propagate_Event_Pull::work (TAO_CEC_ProxyPullSupplier *supplier
{
supplier->push (this->event_ ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h
index 529e6a28197..980431bedbb 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_ConsumerAdmin.h
@@ -23,11 +23,9 @@
#include "orbsvcs/ESF/ESF_Proxy_Admin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CEC_ProxyPushSupplier.h"
+#include "CEC_ProxyPullSupplier.h"
+#include "event_serv_export.h"
class TAO_CEC_EventChannel;
@@ -146,10 +144,8 @@ private:
CORBA::Any event_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.i"
+#include "CEC_ConsumerAdmin.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.i
index d7761a1f51d..254a5bdd1fa 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerAdmin.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_CEC_ConsumerAdmin::
for_each (TAO_ESF_Worker<TAO_CEC_ProxyPushSupplier> *worker
@@ -35,5 +31,3 @@ TAO_CEC_Propagate_Event_Pull::TAO_CEC_Propagate_Event_Pull (const CORBA::Any& ev
: event_ (event)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp
index 5c0068aa874..c069c20808b 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.cpp
@@ -1,14 +1,11 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_ConsumerControl.h"
+#include "CEC_ConsumerControl.h"
ACE_RCSID (CosEvent,
CEC_ConsumerControl,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_ConsumerControl::TAO_CEC_ConsumerControl (void)
{
}
@@ -58,5 +55,3 @@ void
TAO_CEC_ConsumerControl::successful_transmission (PortableServer::ServantBase*)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.h
index b0c0f22ceaa..d25785b24aa 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ConsumerControl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_ConsumerControl.h
@@ -24,8 +23,6 @@
#include "tao/PortableServer/PortableServer.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_EventChannel;
class TAO_CEC_ProxyPushSupplier;
class TAO_CEC_ProxyPullSupplier;
@@ -93,7 +90,5 @@ public:
virtual void successful_transmission (PortableServer::ServantBase* proxy);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CEC_CONSUMERCONTROL_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp
index dfd6db30524..de4862d67f0 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.cpp
@@ -1,17 +1,17 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
-#include "orbsvcs/CosEvent/CEC_MT_Dispatching.h"
-#include "orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h"
-#include "orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h"
+#include "CEC_Default_Factory.h"
+#include "CEC_MT_Dispatching.h"
+#include "CEC_Reactive_Pulling_Strategy.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_SupplierAdmin.h"
+#include "CEC_ProxyPushConsumer.h"
+#include "CEC_ProxyPullConsumer.h"
+#include "CEC_ProxyPushSupplier.h"
+#include "CEC_ProxyPullSupplier.h"
+#include "CEC_EventChannel.h"
+#include "CEC_Reactive_ConsumerControl.h"
+#include "CEC_Reactive_SupplierControl.h"
#include "orbsvcs/ESF/ESF_Immediate_Changes.h"
#include "orbsvcs/ESF/ESF_Delayed_Changes.h"
@@ -23,27 +23,21 @@
#include "ace/Arg_Shifter.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_strings.h"
-#include "ace/Null_Mutex.h"
-#include "ace/Null_Condition.h"
-#include "ace/Recursive_Thread_Mutex.h"
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
+#include "CEC_TypedConsumerAdmin.h"
+#include "CEC_TypedSupplierAdmin.h"
+#include "CEC_TypedEventChannel.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Default_Factory.i"
+#include "CEC_Default_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_Default_Factory,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_Default_Factory::~TAO_CEC_Default_Factory (void)
{
if (orbid_dupped_ != 0)
@@ -258,7 +252,7 @@ TAO_CEC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
if (arg_shifter.is_parameter_next ())
{
// Copy argument for later use
- this->orbid_ = ACE_OS::strdup(ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ()));
+ this->orbid_ = ACE_OS::strdup(ACE_TEXT_TO_CHAR_IN(arg_shifter.get_current ()));
orbid_dupped_ = 1;
arg_shifter.consume_arg ();
}
@@ -1322,8 +1316,6 @@ TAO_CEC_Default_Factory::destroy_supplier_control (TAO_CEC_SupplierControl* x)
delete x;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_CEC_Default_Factory,
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.h
index 2704a7ca92c..80572e0054f 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Default_Factory.h
@@ -16,19 +15,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/CEC_Factory.h"
+#include "CEC_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/CosEvent/CEC_Defaults.h"
+#include "CEC_Defaults.h"
#include "ace/Service_Config.h"
#include "ace/Time_Value.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CEC_Default_Factory
*
@@ -207,10 +204,8 @@ private:
unsigned int proxy_disconnect_retries_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Default_Factory.i"
+#include "CEC_Default_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE (TAO_CEC_Default_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.i
index 0dd3d37f8cb..b039316d2cb 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Default_Factory.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_Default_Factory::TAO_CEC_Default_Factory (void)
: dispatching_ (TAO_CEC_DEFAULT_DISPATCHING),
@@ -28,5 +24,3 @@ TAO_CEC_Default_Factory::TAO_CEC_Default_Factory (void)
proxy_disconnect_retries_ (TAO_CEC_DEFAULT_PROXY_DISCONNECT_RETRIES)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Defaults.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Defaults.h
index f7fabae1b16..5a97e4bd902 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Defaults.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Defaults.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Defaults.h
@@ -9,6 +8,7 @@
* In this file we set the compile time defaults for the event
* channel.
*
+ *
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*/
//=============================================================================
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp
index 14c6d6c21ca..ef98d25450d 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_Dispatching.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
+#include "CEC_Dispatching.h"
+#include "CEC_ProxyPushSupplier.h"
ACE_RCSID(CosEvent, CEC_Dispatching, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_Dispatching::~TAO_CEC_Dispatching (void)
{
}
@@ -60,5 +58,3 @@ TAO_CEC_Reactive_Dispatching::invoke_nocopy (TAO_CEC_ProxyPushSupplier* proxy,
proxy->reactive_invoke_to_consumer (typed_event ACE_ENV_ARG_PARAMETER);
}
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h
index 48806cdafba..e6aff0650d3 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching.h
@@ -1,5 +1,5 @@
-// -*- C++ -*-
-
+// $Id$
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Dispatching.h
@@ -18,14 +18,12 @@
#include "orbsvcs/CosEventCommC.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_ProxyPushSupplier;
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
class TAO_CEC_TypedEvent;
@@ -112,8 +110,6 @@ public:
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CEC_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp
index 363d2600717..49849ae3f89 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.cpp
@@ -1,13 +1,13 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_Dispatching_Task.h"
+#include "CEC_Dispatching_Task.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_errno.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Dispatching_Task.i"
+#include "CEC_Dispatching_Task.i"
#endif /* __ACE_INLINE__ */
#include "ace/OS_NS_errno.h"
@@ -16,8 +16,6 @@ ACE_RCSID (CosEvent,
CEC_Dispatching,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_CEC_Dispatching_Task::svc (void)
{
@@ -152,5 +150,3 @@ TAO_CEC_Invoke_Command::execute (ACE_ENV_SINGLE_ARG_DECL)
return 0;
}
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h
index fcdcb8a564a..b9c15af22fd 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.h
@@ -23,7 +23,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
+#include "CEC_ProxyPushSupplier.h"
#include "tao/Basic_Types.h"
@@ -32,11 +32,9 @@
#include "ace/Task.h"
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
-#include "orbsvcs/CosEvent/CEC_TypedEvent.h"
+#include "CEC_TypedEvent.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CEC_Dispatching_Task
*
@@ -154,10 +152,8 @@ private:
};
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Dispatching_Task.i"
+#include "CEC_Dispatching_Task.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.i
index 1432528492a..0bf5b92e030 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Dispatching_Task.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_Dispatching_Task::
TAO_CEC_Dispatching_Task (ACE_Thread_Manager* thr_manager)
@@ -81,5 +77,3 @@ TAO_CEC_Invoke_Command::TAO_CEC_Invoke_Command (TAO_CEC_ProxyPushSupplier* proxy
this->proxy_->_incr_refcnt ();
}
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp
index 75813fad39b..ee2fc24cb05 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.cpp
@@ -2,18 +2,16 @@
//
// $Id$
-#include "orbsvcs/CosEvent/CEC_DynamicImplementation.h"
+#include "CEC_DynamicImplementation.h"
#include "tao/DynamicInterface/Request.h"
#include "tao/DynamicInterface/Unknown_User_Exception.h"
#include "tao/debug.h"
-#include "orbsvcs/CosEvent/CEC_TypedEvent.h"
+#include "CEC_TypedEvent.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_DynamicImplementation.i"
+#include "CEC_DynamicImplementation.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Destructor
TAO_CEC_DynamicImplementationServer::~TAO_CEC_DynamicImplementationServer (void)
{
@@ -175,5 +173,3 @@ TAO_CEC_DynamicImplementationServer::is_a (CORBA::ServerRequest_ptr request
request->set_result (result_any ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.h
index 98c4b91c1cd..aa3d1bb7800 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_DynamicImplementation.h
@@ -14,15 +13,12 @@
#ifndef TAO_CEC_DYNAMICIMPLEMENTATION_H
#define TAO_CEC_DYNAMICIMPLEMENTATION_H
-#include "orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
+#include "CEC_TypedProxyPushConsumer.h"
+#include "CEC_TypedEventChannel.h"
#include "tao/DynamicInterface/Server_Request.h"
#include "tao/DynamicInterface/Dynamic_Implementation.h"
#include "tao/ORB.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_DynamicImplementationServer : public TAO_DynamicImplementation
{
// = TITLE
@@ -75,10 +71,8 @@ private:
CORBA::RepositoryId repository_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_DynamicImplementation.i"
+#include "CEC_DynamicImplementation.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_CEC_DYNAMICIMPLEMENTATION_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.i
index 2f1bff715f7..5058927e3c9 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_DynamicImplementation.i
@@ -1,11 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
-TAO_CEC_DynamicImplementationServer::TAO_CEC_DynamicImplementationServer
+TAO_CEC_DynamicImplementationServer::TAO_CEC_DynamicImplementationServer
(PortableServer::POA_ptr poa,
TAO_CEC_TypedProxyPushConsumer *typed_pp_consumer,
TAO_CEC_TypedEventChannel *typed_event_channel)
@@ -16,4 +12,3 @@ TAO_CEC_DynamicImplementationServer::TAO_CEC_DynamicImplementationServer
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp
index c24469dae73..65bbebb51cf 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_Dispatching.h"
-#include "orbsvcs/CosEvent/CEC_Pulling_Strategy.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerControl.h"
-#include "orbsvcs/CosEvent/CEC_SupplierControl.h"
+#include "CEC_EventChannel.h"
+#include "CEC_Dispatching.h"
+#include "CEC_Pulling_Strategy.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_SupplierAdmin.h"
+#include "CEC_ConsumerControl.h"
+#include "CEC_SupplierControl.h"
#include "ace/Dynamic_Service.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_EventChannel.i"
+#include "CEC_EventChannel.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(CosEvent, CEC_EventChannel, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_EventChannel::
TAO_CEC_EventChannel (const TAO_CEC_EventChannel_Attributes& attr,
TAO_CEC_Factory* factory,
@@ -231,5 +229,3 @@ TAO_CEC_EventChannel::destroy (ACE_ENV_SINGLE_ARG_DECL)
{
this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
index 5be1829ce43..62f4884fe88 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_EventChannel.h
@@ -21,7 +20,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/CEC_Factory.h"
+#include "CEC_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,12 +28,10 @@
#include "orbsvcs/CosEventChannelAdminS.h"
-#include "orbsvcs/CosEvent/CEC_Defaults.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "CEC_Defaults.h"
+#include "event_serv_export.h"
#include "ace/Hash_Map_Manager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CEC_EventChannel_Attributes
*
@@ -301,10 +298,8 @@ private:
ServantRetryMap retry_map_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_EventChannel.i"
+#include "CEC_EventChannel.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.i
index 23f8e906f7c..256d518b72a 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_EventChannel.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_EventChannel_Attributes::
TAO_CEC_EventChannel_Attributes (PortableServer::POA_ptr s_poa,
@@ -201,5 +197,3 @@ TAO_CEC_EventChannel::get_servant_retry_map (void)
{
return this->retry_map_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp
index a627d07245e..0563ba518bb 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.cpp
@@ -15,7 +15,7 @@
//
//===========================================================================
-#include "orbsvcs/CosEvent/CEC_Event_Loader.h"
+#include "CEC_Event_Loader.h"
#include "ace/Dynamic_Service.h"
#include "orbsvcs/CosNamingC.h"
@@ -32,16 +32,7 @@ ACE_RCSID (CosEvent,
CEC_Event_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CEC_Event_Loader::TAO_CEC_Event_Loader (void) :
- attributes_ (0)
- , factory_ (0)
- , ec_impl_ (0)
-#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
- , typed_attributes_ (0)
- , typed_ec_impl_ (0)
-#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
+TAO_CEC_Event_Loader::TAO_CEC_Event_Loader (void)
{
// Constructor
}
@@ -103,7 +94,7 @@ TAO_CEC_Event_Loader::create_object (CORBA::ORB_ptr orb,
// Parse the options, check if we should bind with the naming
// service and under what name...
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:o:p:xrtd"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:o:p:xrtd"));
int opt;
const ACE_TCHAR *service_name = ACE_TEXT("CosEventService");
const ACE_TCHAR *ior_file = 0;
@@ -160,21 +151,21 @@ TAO_CEC_Event_Loader::create_object (CORBA::ORB_ptr orb,
ACE_TEXT ("-n service_name ")
ACE_TEXT ("-o ior_file_name ")
ACE_TEXT ("-p pid_file_name ")
- ACE_TEXT ("-x [disable naming service bind]")
+ ACE_TEXT ("-x [disable naming service bind] ")
ACE_TEXT ("-r [rebind, no AlreadyBound failures] ")
- ACE_TEXT ("-t [enable typed event channel]")
- ACE_TEXT ("-d [destroy typed event channelon shutdown] ")
+ ACE_TEXT ("-t [enable typed event channel] ")
+ ACE_TEXT ("-d [destroy typed event channel on shutdown] ")
ACE_TEXT ("\n"),
argv[0]));
#else
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Usage: %s ")
- ACE_TEXT ("-n service_name ")
- ACE_TEXT ("-o ior_file_name ")
- ACE_TEXT ("-p pid_file_name ")
- ACE_TEXT ("-x [disable naming service bind] ")
- ACE_TEXT ("-r [rebind, no AlreadyBound failures] ")
- ACE_TEXT ("\n"),
+ ACE_TEXT ("Usage: %s "
+ "-n service_name "
+ "-o ior_file_name "
+ "-p pid_file_name "
+ "-x [disable naming service bind] "
+ "-r [rebind, no AlreadyBound failures] "
+ "\n"),
argv[0]));
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
return CORBA::Object::_nil ();
@@ -266,7 +257,7 @@ TAO_CEC_Event_Loader::create_object (CORBA::ORB_ptr orb,
ACE_TRY_CHECK;
this->channel_name_.length (1);
- this->channel_name_[0].id = CORBA::string_dup (ACE_TEXT_ALWAYS_CHAR(service_name));
+ this->channel_name_[0].id = CORBA::string_dup (service_name);
if (use_rebind)
{
@@ -405,7 +396,7 @@ TAO_CEC_Event_Loader::create_object (CORBA::ORB_ptr orb,
ACE_TRY_CHECK;
this->channel_name_.length (1);
- this->channel_name_[0].id = CORBA::string_dup (ACE_TEXT_ALWAYS_CHAR(service_name));
+ this->channel_name_[0].id = CORBA::string_dup (service_name);
if (use_rebind)
{
@@ -434,6 +425,8 @@ TAO_CEC_Event_Loader::create_object (CORBA::ORB_ptr orb,
return CORBA::Object::_nil ();
}
ACE_ENDTRY;
+
+ return 0;
}
int
@@ -446,25 +439,22 @@ TAO_CEC_Event_Loader::fini (void)
ACE_TRY
{
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
- if(this->typed_ec_impl_)
- {
- // Release the resources of the Typed Event Channel
- this->typed_ec_impl_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // Release the resources of the Typed Event Channel
+ this->typed_ec_impl_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // Deactivate the Typed EC
- // This will raise an exception if destroy == 1
- PortableServer::POA_var t_poa =
- this->typed_ec_impl_->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // Deactivate the Typed EC
+ // This will raise an exception if destroy == 1
+ PortableServer::POA_var t_poa =
+ this->typed_ec_impl_->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- PortableServer::ObjectId_var t_id =
- t_poa->servant_to_id (this->typed_ec_impl_ ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ PortableServer::ObjectId_var t_id =
+ t_poa->servant_to_id (this->typed_ec_impl_ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- t_poa->deactivate_object (t_id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ t_poa->deactivate_object (t_id.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
#else
// Release the resources of the Event Channel
this->ec_impl_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -500,13 +490,14 @@ TAO_CEC_Event_Loader::fini (void)
ACE_TRY_CHECK_EX (foo);
}
-#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
// Since we created them, we also have to delete them.
+#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
delete this->typed_attributes_;
delete this->typed_ec_impl_;
-#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
+#else
delete this->attributes_;
delete this->ec_impl_;
+#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
}
ACE_CATCHANY
{
@@ -519,6 +510,4 @@ TAO_CEC_Event_Loader::fini (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_Event_Serv, TAO_CEC_Event_Loader)
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h
index 28bfe57bad7..d48c98c3705 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Event_Loader.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
/**
* @file CEC_Event_Loader.h
*
@@ -19,18 +17,16 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
+#include "CEC_EventChannel.h"
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
+#include "CEC_TypedEventChannel.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
#include "orbsvcs/CosNamingC.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CEC_Event_Loader
*
@@ -98,13 +94,10 @@ protected:
CosNaming::Name channel_name_;
private:
- // Disallow copying and assignment.
- TAO_CEC_Event_Loader (const TAO_CEC_Event_Loader &);
- TAO_CEC_Event_Loader &operator= (const TAO_CEC_Event_Loader &);
+ ACE_UNIMPLEMENTED_FUNC (TAO_CEC_Event_Loader (const TAO_CEC_Event_Loader &))
+ ACE_UNIMPLEMENTED_FUNC (TAO_CEC_Event_Loader &operator= (const TAO_CEC_Event_Loader &))
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (TAO_Event_Serv, TAO_CEC_Event_Loader)
#endif /* TAO_CEC_EVENT_LOADER_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp
index e2ffe759211..4a746e0b71c 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.cpp
@@ -1,14 +1,10 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_Factory.h"
+#include "CEC_Factory.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID(CosEvent, CEC_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_Factory::~TAO_CEC_Factory (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.h
index f7c6950815f..5c1272ab1a5 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Factory.h
@@ -16,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,13 +23,7 @@
#include "ace/Service_Object.h"
-#include "tao/Versioned_Namespace.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_CEC_EventChannel;
@@ -221,7 +214,5 @@ public:
destroy_supplier_control (TAO_CEC_SupplierControl*) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CEC_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp
index 41f29d8a59e..ddeddeb2ece 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.cpp
@@ -1,14 +1,9 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_MT_Dispatching.h"
+#include "CEC_MT_Dispatching.h"
ACE_RCSID(CosEvent, CEC_MT_Dispatching, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-
-
-
TAO_CEC_MT_Dispatching::TAO_CEC_MT_Dispatching (int nthreads,
int thread_creation_flags,
int thread_priority,
@@ -104,5 +99,3 @@ TAO_CEC_MT_Dispatching::invoke_nocopy (TAO_CEC_ProxyPushSupplier* proxy,
this->task_.invoke (proxy, typed_event ACE_ENV_ARG_PARAMETER);
}
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h
index 458110cad9a..c19647c53d1 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_MT_Dispatching.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_MT_Dispatching.h
@@ -16,15 +15,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/CEC_Dispatching.h"
+#include "CEC_Dispatching.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/CosEvent/CEC_Dispatching_Task.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CEC_Dispatching_Task.h"
class TAO_CEC_EventChannel;
@@ -93,8 +90,6 @@ private:
int active_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CEC_MT_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp
index 039ccb5f5f8..fd172f89e1d 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.cpp
@@ -1,23 +1,21 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_SupplierControl.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.h"
+#include "CEC_ProxyPullConsumer.h"
+#include "CEC_EventChannel.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_SupplierControl.h"
+#include "CEC_ProxyPullSupplier.h"
#include "ace/Reverse_Lock_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.i"
+#include "CEC_ProxyPullConsumer.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_ProxyPullConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_CEC_Unlock;
TAO_CEC_ProxyPullConsumer::
@@ -391,5 +389,3 @@ TAO_CEC_ProxyPullConsumer::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
this->_decr_refcnt ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h
index f47959a2933..35fae60d38e 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_ProxyPullConsumer.h
@@ -10,6 +9,7 @@
*/
//=============================================================================
+
#ifndef TAO_CEC_PROXYPULLCONSUMER_H
#define TAO_CEC_PROXYPULLCONSUMER_H
@@ -22,9 +22,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "event_serv_export.h"
class TAO_CEC_EventChannel;
class TAO_CEC_Dispatching;
@@ -135,10 +133,8 @@ private:
PortableServer::POA_var default_POA_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.i"
+#include "CEC_ProxyPullConsumer.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.i
index 3c22bfb9af4..86003baa1c4 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullConsumer.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_CEC_ProxyPullConsumer::is_connected_i (void) const
{
@@ -38,5 +34,3 @@ TAO_CEC_ProxyPullConsumer::supplier (CosEventComm::PullSupplier_ptr supplier)
this->supplier_i (supplier);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp
index fb3f757e79c..7bbc442b000 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.cpp
@@ -1,21 +1,19 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.h"
-#include "orbsvcs/CosEvent/CEC_Dispatching.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
+#include "CEC_ProxyPullSupplier.h"
+#include "CEC_Dispatching.h"
+#include "CEC_EventChannel.h"
#include "ace/Reverse_Lock_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.i"
+#include "CEC_ProxyPullSupplier.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_ProxyPullSupplier,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_CEC_Unlock;
TAO_CEC_ProxyPullSupplier::TAO_CEC_ProxyPullSupplier (TAO_CEC_EventChannel* ec)
@@ -357,5 +355,3 @@ TAO_CEC_ProxyPullSupplier::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
this->_decr_refcnt ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h
index 8fe65754426..1f7a0a603d4 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.h
@@ -26,9 +26,7 @@
#include "ace/Condition_Thread_Mutex.h"
#include "ace/Unbounded_Queue.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "event_serv_export.h"
class TAO_CEC_EventChannel;
class TAO_CEC_ProxyPullConsumer;
@@ -159,10 +157,8 @@ private:
ACE_Unbounded_Queue<CORBA::Any> queue_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.i"
+#include "CEC_ProxyPullSupplier.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.i
index 8519794c295..e4c07d62a81 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPullSupplier.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_CEC_ProxyPullSupplier::is_connected_i (void) const
{
@@ -39,5 +35,3 @@ TAO_CEC_ProxyPullSupplier::consumer (CosEventComm::PullConsumer_ptr consumer)
this->consumer_i (consumer);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
index decf2fb4302..e6b54a8e24a 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
+#include "CEC_ProxyPushConsumer.h"
+#include "CEC_EventChannel.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_ProxyPushSupplier.h"
#include "ace/Reverse_Lock_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.i"
+#include "CEC_ProxyPushConsumer.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_ProxyPushConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_CEC_Unlock;
TAO_CEC_ProxyPushConsumer::
@@ -365,4 +363,3 @@ TAO_CEC_ProxyPushConsumer_Guard::
this->event_channel_->destroy_proxy (this->proxy_);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h
index 3522459d4aa..d16697cb4bd 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_ProxyPushConsumer.h
@@ -17,7 +16,7 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/CosEventChannelAdminS.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +24,6 @@
#include "orbsvcs/ESF/ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_EventChannel;
class TAO_CEC_Dispatching;
class TAO_CEC_ProxyPushSupplier;
@@ -187,10 +184,8 @@ private:
int locked_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.i"
+#include "CEC_ProxyPushConsumer.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.i
index d30cb94f45c..a9eca16ca37 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_CEC_ProxyPushConsumer::is_connected_i (void) const
{
@@ -46,5 +42,3 @@ TAO_CEC_ProxyPushConsumer_Guard::locked (void) const
{
return this->locked_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp
index e1fced258d9..4dac60736bf 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.cpp
@@ -6,16 +6,16 @@
// question when using compilers like g++ 3.4.x.
#include "tao/DynamicInterface/DII_CORBA_methods.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
-#include "orbsvcs/CosEvent/CEC_Dispatching.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerControl.h"
+#include "CEC_ProxyPushSupplier.h"
+#include "CEC_Dispatching.h"
+#include "CEC_EventChannel.h"
+#include "CEC_ConsumerControl.h"
#include "orbsvcs/ESF/ESF_RefCount_Guard.h"
#include "orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h"
#include "tao/debug.h"
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
-#include "orbsvcs/CosEvent/CEC_TypedEvent.h"
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
+#include "CEC_TypedEvent.h"
+#include "CEC_TypedEventChannel.h"
#include "tao/DynamicInterface/Request.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
@@ -23,15 +23,13 @@
#include "ace/Reverse_Lock_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.i"
+#include "CEC_ProxyPushSupplier.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_ProxyPushSupplier,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_CEC_Unlock;
// TAO_CEC_ProxyPushSupplier Constructure (Un-typed EC)
@@ -922,5 +920,3 @@ TAO_CEC_ProxyPushSupplier::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
this->_decr_refcnt ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h
index 5ebed2713c7..820a1b705ea 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_ProxyPushSupplier.h
@@ -23,14 +22,12 @@
#include "orbsvcs/CosTypedEventChannelAdminS.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_EventChannel;
class TAO_CEC_ProxyPushConsumer;
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
@@ -196,10 +193,8 @@ private:
PortableServer::POA_var default_POA_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.i"
+#include "CEC_ProxyPushSupplier.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.i
index 918d4116e35..e7453b533dc 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushSupplier.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_CEC_ProxyPushSupplier::is_connected_i (void) const
{
@@ -94,5 +90,3 @@ TAO_CEC_ProxyPushSupplier::is_typed_ec (void) const
}
}
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp
index eeb8c998046..5367a8c4eda 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.cpp
@@ -1,13 +1,9 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_Pulling_Strategy.h"
+#include "CEC_Pulling_Strategy.h"
ACE_RCSID(CosEvent, CEC_Pulling_Strategy, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_Pulling_Strategy::~TAO_CEC_Pulling_Strategy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.h
index 791dda5c1d2..c63ef0f1cdc 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Pulling_Strategy.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Pulling_Strategy.h
@@ -24,7 +23,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_CEC_Pulling_Strategy
@@ -65,7 +63,5 @@ public:
#endif /* 0 */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CEC_PULLING_STRATEGY_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp
index 934fc6e4c82..3ac9f33ba07 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.cpp
@@ -4,38 +4,33 @@
// the Typed and Un-typed Event Channels. A check must be made in the code
// to ensure the correct EC is referenced.
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h"
+#include "CEC_EventChannel.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_Reactive_ConsumerControl.h"
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h"
+#include "CEC_TypedEventChannel.h"
+#include "CEC_TypedConsumerAdmin.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullSupplier.h"
+#include "CEC_ProxyPushSupplier.h"
+#include "CEC_ProxyPullSupplier.h"
#include "orbsvcs/Time_Utilities.h"
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#include "tao/Messaging/Messaging.h"
-#endif
-
#include "tao/ORB_Core.h"
#include "tao/debug.h"
#include "ace/Reactor.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i"
+#include "CEC_Reactive_ConsumerControl.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_Reactive_ConsumerControl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_CEC_Reactive_ConsumerControl constructor for the Un-typed EC
TAO_CEC_Reactive_ConsumerControl::
TAO_CEC_Reactive_ConsumerControl (const ACE_Time_Value &rate,
@@ -48,9 +43,7 @@ TAO_CEC_Reactive_ConsumerControl::
retries_ (retries),
adapter_ (this),
event_channel_ (ec),
-#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
typed_event_channel_ (0),
-#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
orb_ (CORBA::ORB::_duplicate (orb))
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
// Initialise timer_id_ to an invalid timer id, so that in case we don't
@@ -489,4 +482,3 @@ TAO_CEC_Ping_Pull_Consumer::work (TAO_CEC_ProxyPullSupplier *supplier
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h
index f1cc2e40767..6599729cb7f 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Reactive_ConsumerControl.h
@@ -20,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerControl.h"
+#include "CEC_ConsumerControl.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,7 +32,6 @@
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_CEC_EventChannel;
@@ -202,10 +200,8 @@ private:
TAO_CEC_ConsumerControl *control_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i"
+#include "CEC_Reactive_ConsumerControl.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i
index cd61d83efce..ce73a433eba 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_ConsumerControl.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_Ping_Push_Consumer::
TAO_CEC_Ping_Push_Consumer (TAO_CEC_ConsumerControl *control)
@@ -19,5 +15,3 @@ TAO_CEC_Ping_Pull_Consumer::
: control_ (control)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp
index 55063132e47..bd6bd46f9d7 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.cpp
@@ -1,30 +1,24 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h"
+#include "CEC_ProxyPullConsumer.h"
+#include "CEC_EventChannel.h"
+#include "CEC_SupplierAdmin.h"
+#include "CEC_ConsumerAdmin.h"
+#include "CEC_Reactive_Pulling_Strategy.h"
#include "orbsvcs/Time_Utilities.h"
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#include "tao/Messaging/Messaging.h"
-#endif
-
#include "tao/ORB_Core.h"
#include "ace/Reactor.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i"
+#include "CEC_Reactive_Pulling_Strategy.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(CosEvent, CEC_Reactive_Pulling_Strategy, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_Reactive_Pulling_Strategy::
TAO_CEC_Reactive_Pulling_Strategy (const ACE_Time_Value &rate,
const ACE_Time_Value &relative_timeout,
@@ -201,4 +195,3 @@ TAO_CEC_Pull_Event::work (TAO_CEC_ProxyPullConsumer *consumer
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h
index a43c423f3a3..e4fe8452768 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_Reactive_Pulling_Strategy.h
@@ -16,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/CEC_Pulling_Strategy.h"
+#include "CEC_Pulling_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,9 +28,6 @@
#include "ace/Event_Handler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_ProxyPullConsumer;
class TAO_CEC_EventChannel;
class TAO_CEC_ConsumerAdmin;
@@ -140,10 +136,8 @@ private:
TAO_CEC_SupplierControl *supplier_control_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i"
+#include "CEC_Reactive_Pulling_Strategy.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i
index 319de5688f5..729db4ab9f8 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_Pulling_Strategy.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_Pull_Event::TAO_CEC_Pull_Event (TAO_CEC_ConsumerAdmin *consumer_admin,
TAO_CEC_SupplierControl *control)
@@ -11,5 +7,3 @@ TAO_CEC_Pull_Event::TAO_CEC_Pull_Event (TAO_CEC_ConsumerAdmin *consumer_admin,
supplier_control_ (control)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp
index b7a49603b36..1c4c713d48e 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.cpp
@@ -4,39 +4,34 @@
// the Typed and Un-typed Event Channels. A check must be made in the code
// to ensure the correct EC is referenced.
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h"
+#include "CEC_EventChannel.h"
+#include "CEC_SupplierAdmin.h"
+#include "CEC_ProxyPushConsumer.h"
+#include "CEC_Reactive_SupplierControl.h"
#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
-#include "orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h"
+#include "CEC_TypedEventChannel.h"
+#include "CEC_TypedSupplierAdmin.h"
+#include "CEC_TypedProxyPushConsumer.h"
#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.h"
+#include "CEC_ProxyPullConsumer.h"
#include "orbsvcs/Time_Utilities.h"
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#include "tao/Messaging/Messaging.h"
-#endif
-
#include "tao/ORB_Core.h"
#include "ace/Reactor.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i"
+#include "CEC_Reactive_SupplierControl.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_Reactive_SupplierControl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_CEC_Reactive_SupplierControl constructor for the Un-typed EC
TAO_CEC_Reactive_SupplierControl::
TAO_CEC_Reactive_SupplierControl (const ACE_Time_Value &rate,
@@ -49,9 +44,6 @@ TAO_CEC_Reactive_SupplierControl::
retries_ (retries),
adapter_ (this),
event_channel_ (ec),
-#if defined (TAO_HAS_TYPED_EVENT_CHANNEL)
- typed_event_channel_ (0),
-#endif /* TAO_HAS_TYPED_EVENT_CHANNEL */
orb_ (CORBA::ORB::_duplicate (orb))
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
// Initialise timer_id_ to an invalid timer id, so that in case we don't
@@ -75,7 +67,6 @@ TAO_CEC_Reactive_SupplierControl::
timeout_ (timeout),
retries_ (retries),
adapter_ (this),
- event_channel_ (0),
typed_event_channel_ (ec),
orb_ (CORBA::ORB::_duplicate (orb))
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -534,4 +525,3 @@ TAO_CEC_Ping_Pull_Supplier::work (TAO_CEC_ProxyPullConsumer *consumer
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h
index bd7cbe1fd94..27d9ae5c2bd 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/CEC_SupplierControl.h"
+#include "CEC_SupplierControl.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,8 +31,6 @@
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_EventChannel;
class TAO_CEC_Reactive_SupplierControl;
@@ -218,10 +216,8 @@ private:
TAO_CEC_SupplierControl *control_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i"
+#include "CEC_Reactive_SupplierControl.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i
index e166f46ecf6..2f242bef904 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_Reactive_SupplierControl.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_Ping_Push_Supplier::
TAO_CEC_Ping_Push_Supplier (TAO_CEC_SupplierControl *control)
@@ -30,5 +26,3 @@ TAO_CEC_Ping_Pull_Supplier::
: control_ (control)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp
index e667fe96e0d..e73a071e546 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.cpp
@@ -1,22 +1,19 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.h"
-#include "orbsvcs/CosEvent/CEC_EventChannel.h"
+#include "CEC_SupplierAdmin.h"
+#include "CEC_ProxyPushConsumer.h"
+#include "CEC_ProxyPullConsumer.h"
+#include "CEC_EventChannel.h"
#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.i"
+#include "CEC_SupplierAdmin.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (CosEvent,
CEC_SupplierAdmin,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_SupplierAdmin::TAO_CEC_SupplierAdmin (TAO_CEC_EventChannel *ec)
: event_channel_ (ec),
push_admin_ (ec),
@@ -101,5 +98,3 @@ TAO_CEC_SupplierAdmin::obtain_pull_consumer (ACE_ENV_SINGLE_ARG_DECL)
{
return this->pull_admin_.obtain (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h
index a1e67f65c71..38f312bdc53 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_SupplierAdmin.h
@@ -14,6 +13,7 @@
*/
//=============================================================================
+
#ifndef TAO_CEC_SUPPLIERADMIN_H
#define TAO_CEC_SUPPLIERADMIN_H
@@ -27,11 +27,9 @@
#include "orbsvcs/ESF/ESF_Proxy_Admin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPullConsumer.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CEC_ProxyPushConsumer.h"
+#include "CEC_ProxyPullConsumer.h"
+#include "event_serv_export.h"
class TAO_CEC_EventChannel;
@@ -116,10 +114,8 @@ private:
PortableServer::POA_var default_POA_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_SupplierAdmin.i"
+#include "CEC_SupplierAdmin.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.i
index ec420d2c576..dc20a41a684 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierAdmin.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_CEC_SupplierAdmin::
for_each (TAO_ESF_Worker<TAO_CEC_ProxyPushConsumer> *worker
@@ -19,5 +15,3 @@ TAO_CEC_SupplierAdmin::
{
this->pull_admin_.for_each (worker ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp
index e9b79b992cd..f8f3edccd29 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/CosEvent/CEC_SupplierControl.h"
+#include "CEC_SupplierControl.h"
ACE_RCSID(CosEvent, CEC_SupplierControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CEC_SupplierControl::TAO_CEC_SupplierControl (void)
{
}
@@ -64,4 +62,3 @@ TAO_CEC_SupplierControl::successful_transmission (PortableServer::ServantBase*)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.h
index 4de8fc0c3f6..8282081586d 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_SupplierControl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_SupplierControl.h
@@ -11,6 +10,7 @@
* More details can be found in:
*
* http://doc.ece.uci.edu/~coryan/EC/
+ *
*/
//=============================================================================
@@ -29,8 +29,6 @@
#include "tao/PortableServer/PortableServer.h"
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CEC_EventChannel;
class TAO_CEC_ProxyPushConsumer;
class TAO_CEC_ProxyPullConsumer;
@@ -106,7 +104,5 @@ public:
virtual void successful_transmission (PortableServer::ServantBase* proxy);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CEC_SUPPLIERCONTROL_H */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp
index 69c08a7b739..223438df8ed 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.cpp
@@ -2,17 +2,14 @@
//
// $Id$
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h"
+#include "CEC_TypedConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
+#include "CEC_TypedEventChannel.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i"
+#include "CEC_TypedConsumerAdmin.i"
#endif /* __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementation skeleton constructor
TAO_CEC_TypedConsumerAdmin::TAO_CEC_TypedConsumerAdmin (TAO_CEC_TypedEventChannel *ec)
: typed_event_channel_ (ec),
@@ -131,5 +128,3 @@ TAO_CEC_Propagate_Typed_Event::work (TAO_CEC_ProxyPushSupplier *supplier
{
supplier->invoke (this->typed_event_ ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h
index 72925fb2c00..1e08da77de5 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h
@@ -1,11 +1,9 @@
-// -*- C++ -*-
-
+// $Id$
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_TypedConsumerAdmin.h
*
- * $Id$
- *
* @author Jon Astle (jon@astle45.fsnet.co.uk)
*
* Based on the untyped version by Carlos O'Ryan (coryan@cs.wustl.edu)
@@ -26,10 +24,8 @@
#include "orbsvcs/ESF/ESF_Proxy_Admin.h"
-#include "orbsvcs/CosEvent/CEC_ProxyPushSupplier.h"
-#include "orbsvcs/CosEvent/CEC_TypedEvent.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CEC_ProxyPushSupplier.h"
+#include "CEC_TypedEvent.h"
class TAO_CEC_TypedEventChannel;
@@ -119,10 +115,8 @@ private:
TAO_CEC_TypedEventChannel* typed_event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i"
+#include "CEC_TypedConsumerAdmin.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i
index 37a0dd30d28..b534a67483b 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedConsumerAdmin.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_CEC_TypedConsumerAdmin::
for_each (TAO_ESF_Worker<TAO_CEC_ProxyPushSupplier> *worker
@@ -13,12 +9,9 @@ TAO_CEC_TypedConsumerAdmin::
}
ACE_INLINE
-TAO_CEC_Propagate_Typed_Event::TAO_CEC_Propagate_Typed_Event (
- const TAO_CEC_TypedEvent& typed_event,
- TAO_CEC_TypedEventChannel* typed_event_channel)
+TAO_CEC_Propagate_Typed_Event::TAO_CEC_Propagate_Typed_Event (const TAO_CEC_TypedEvent& typed_event,
+ TAO_CEC_TypedEventChannel* typed_event_channel)
: typed_event_ (typed_event),
typed_event_channel_ (typed_event_channel)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.cpp
index 9142e04e6bb..feb1e04e569 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.cpp
@@ -2,8 +2,8 @@
//
// $Id$
-#include "orbsvcs/CosEvent/CEC_TypedEvent.h"
+#include "CEC_TypedEvent.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedEvent.i"
+#include "CEC_TypedEvent.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h
index 8dff16f8bf1..8a7157b0e0a 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.h
@@ -1,11 +1,9 @@
-// -*- C++ -*-
-
+// $Id$
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_TypedEvent.h
*
- * $Id$
- *
* @author Jon Astle (jon@astle45.fsnet.co.uk)
*/
//=============================================================================
@@ -14,7 +12,7 @@
#define TAO_CEC_TYPEDEVENT_H_
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -25,9 +23,6 @@
#include "tao/CORBA_methods.h"
// ****************************************************************
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CEC_TypedEvent
*
@@ -58,10 +53,8 @@ private:
CORBA::String_var operation_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedEvent.i"
+#include "CEC_TypedEvent.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.i
index 4c8f0aab997..6b7203639b1 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEvent.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_TypedEvent::TAO_CEC_TypedEvent (void)
{
@@ -26,5 +22,3 @@ TAO_CEC_TypedEvent::operator= (const TAO_CEC_TypedEvent& other)
return *this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp
index 9bb41874175..8f6fa6f6021 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.cpp
@@ -2,22 +2,20 @@
//
// $Id$
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
-#include "orbsvcs/CosEvent/CEC_Dispatching.h"
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_ConsumerControl.h"
-#include "orbsvcs/CosEvent/CEC_SupplierControl.h"
+#include "CEC_TypedEventChannel.h"
+#include "CEC_Dispatching.h"
+#include "CEC_TypedConsumerAdmin.h"
+#include "CEC_TypedSupplierAdmin.h"
+#include "CEC_ConsumerControl.h"
+#include "CEC_SupplierControl.h"
#include "tao/debug.h"
#include "ace/Dynamic_Service.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.i"
+#include "CEC_TypedEventChannel.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementation skeleton constructor
TAO_CEC_TypedEventChannel::
TAO_CEC_TypedEventChannel (const TAO_CEC_TypedEventChannel_Attributes& attr,
@@ -439,6 +437,8 @@ TAO_CEC_TypedEventChannel::consumer_register_uses_interace (const char *uses_int
}
return result;
}
+ // Should not get here!
+ return -1;
}
// A supplier is attempting to register its supported_interface.
@@ -503,6 +503,8 @@ TAO_CEC_TypedEventChannel::supplier_register_supported_interface (const char *su
}
return result;
}
+ // Should not get here!
+ return -1;
}
// Function creates a NVList and populates it from the parameter information.
@@ -565,4 +567,3 @@ TAO_CEC_TypedEventChannel::destroy (ACE_ENV_SINGLE_ARG_DECL)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
index e98f9b28375..e055adfb7eb 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.h
@@ -1,13 +1,11 @@
-// -*- C++ -*-
-
+// $Id$
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_TypedEventChannel.h
*
* @author Jon Astle (jon@astle45.fsnet.co.uk)
*
- * $Id$
- *
* A new implementation of the COS Typed Event Channel, based on
* the untyped version by Carlos O'Ryan (coryan@cs.wustl.edu)
*
@@ -18,17 +16,17 @@
#define TAO_CEC_TYPEDEVENTCHANNEL_H_
#include /**/ "ace/pre.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
+#include "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/CosEvent/CEC_Defaults.h"
+#include "CEC_Defaults.h"
#include "orbsvcs/CosTypedEventChannelAdminS.h"
-#include "orbsvcs/CosEvent/CEC_Factory.h"
+#include "CEC_Factory.h"
#include "tao/IFR_Client/IFR_BasicC.h"
#include "tao/AnyTypeCode/NVList.h"
@@ -37,8 +35,6 @@
#include "ace/Null_Mutex.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CEC_TypedEventChannel_Attributes
*
@@ -378,10 +374,9 @@ private:
TAO_CEC_Param * parameters_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.i"
+#include "CEC_TypedEventChannel.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i
index f5325253840..c4821662fa2 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedEventChannel.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CEC_TypedEventChannel_Attributes::
TAO_CEC_TypedEventChannel_Attributes (PortableServer::POA_ptr s_poa,
@@ -201,5 +197,3 @@ TAO_CEC_Operation_Params::~TAO_CEC_Operation_Params (void)
{
delete [] parameters_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp
index f745c5a942c..444bc9444b3 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.cpp
@@ -2,20 +2,18 @@
//
// $Id$
-#include "orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h"
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
-#include "orbsvcs/CosEvent/CEC_TypedConsumerAdmin.h"
-#include "orbsvcs/CosEvent/CEC_DynamicImplementation.h"
+#include "CEC_TypedProxyPushConsumer.h"
+#include "CEC_TypedEventChannel.h"
+#include "CEC_TypedConsumerAdmin.h"
+#include "CEC_DynamicImplementation.h"
#include "tao/debug.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i"
+#include "CEC_TypedProxyPushConsumer.i"
#endif /* __ACE_INLINE__ */
#include "ace/Reverse_Lock_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_CEC_Unlock;
// Implementation skeleton constructor
@@ -419,4 +417,3 @@ TAO_CEC_TypedProxyPushConsumer_Guard::
this->typed_event_channel_->destroy_proxy (this->proxy_);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h
index fa9e936dd78..de3210df73b 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-
+// $Id$
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_TypedProxyPushConsumer.h
*
- * $Id$
*
* @author Jon Astle (jon@astle45.fsnet.co.uk)
*
@@ -24,9 +23,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/CosEvent/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "event_serv_export.h"
class TAO_CEC_TypedEvent;
class TAO_CEC_TypedEventChannel;
@@ -186,10 +183,8 @@ private:
int locked_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i"
+#include "CEC_TypedProxyPushConsumer.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i
index 86eee941060..6a1312c7e3e 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_CEC_TypedProxyPushConsumer::is_connected_i (void) const
{
@@ -17,5 +13,3 @@ TAO_CEC_TypedProxyPushConsumer_Guard::locked (void) const
{
return this->locked_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp
index a156440cc16..00421b15a46 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.cpp
@@ -1,15 +1,15 @@
+// -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h"
+#include "CEC_TypedSupplierAdmin.h"
-#include "orbsvcs/CosEvent/CEC_TypedEventChannel.h"
+#include "CEC_TypedEventChannel.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i"
+#include "CEC_TypedSupplierAdmin.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementation skeleton constructor
TAO_CEC_TypedSupplierAdmin::TAO_CEC_TypedSupplierAdmin (TAO_CEC_TypedEventChannel *ec)
: typed_event_channel_ (ec),
@@ -107,5 +107,3 @@ TAO_CEC_TypedSupplierAdmin::obtain_pull_consumer (ACE_ENV_SINGLE_ARG_DECL)
{
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h
index eaa3747387f..ac42bd0ca8b 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.h
@@ -1,10 +1,11 @@
-// -*- C++ -*-
+// $Id$
+/* -*- C++ -*- */
//=============================================================================
/**
* @file CEC_TypedSupplierAdmin.h
*
- * $Id$
+ * $Id:
*
* @author Jon Astle (jon@astle45.fsnet.co.uk)
*
@@ -26,9 +27,7 @@
#include "orbsvcs/ESF/ESF_Proxy_Admin.h"
-#include "orbsvcs/CosEvent/CEC_TypedProxyPushConsumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CEC_TypedProxyPushConsumer.h"
class TAO_CEC_TypedEventChannel;
@@ -98,10 +97,8 @@ private:
typed_push_admin_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i"
+#include "CEC_TypedSupplierAdmin.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i
index 4a3111bc176..2d6dd17e750 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_TypedSupplierAdmin.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_CEC_TypedSupplierAdmin::
for_each (TAO_ESF_Worker<TAO_CEC_TypedProxyPushConsumer> *worker
@@ -11,5 +7,3 @@ TAO_CEC_TypedSupplierAdmin::
{
this->typed_push_admin_.for_each (worker ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/CosLifeCycle.mpc b/TAO/orbsvcs/orbsvcs/CosLifeCycle.mpc
index e6ceedced03..5aabc0ad101 100644
--- a/TAO/orbsvcs/orbsvcs/CosLifeCycle.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosLifeCycle.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(CosLifeCycle) : orbsvcslib, core, naming, portableserver, tao_versioning_idl_defaults {
+project(CosLifeCycle) : orbsvcslib, core, naming, portableserver {
sharedname = TAO_CosLifeCycle
idlflags += -Wb,export_macro=TAO_LifeCycle_Export -Wb,export_include=orbsvcs/LifeCycle/lifecycle_export.h
dynamicflags = TAO_LIFECYCLE_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/CosLoadBalancing.mpc b/TAO/orbsvcs/orbsvcs/CosLoadBalancing.mpc
index 7ea375e45af..88c5793a5a5 100644
--- a/TAO/orbsvcs/orbsvcs/CosLoadBalancing.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosLoadBalancing.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib, core, naming, iormanip, portablegroup, ami, minimum_corba, pi, pi_server, iorinterceptor, tao_versioning_idl_defaults {
+project : orbsvcslib, core, naming, iormanip, portablegroup, ami, minimum_corba, pi, pi_server, iorinterceptor {
sharedname = TAO_CosLoadBalancing
idlflags += -Wb,export_macro=TAO_LoadBalancing_Export -Wb,export_include=orbsvcs/LoadBalancing/LoadBalancing_export.h
dynamicflags = TAO_LOADBALANCING_BUILD_DLL
@@ -22,9 +22,14 @@ project : orbsvcslib, core, naming, iormanip, portablegroup, ami, minimum_corba,
LoadBalancing/LB_LoadAverage.cpp
LoadBalancing/LB_LoadAlert.cpp
LoadBalancing/LB_LoadAlertInfo.cpp
+ LoadBalancing/LB_LoadAlertMap.cpp
LoadBalancing/LB_LoadAlert_Handler.cpp
+ LoadBalancing/LB_LoadListMap.cpp
LoadBalancing/LB_LoadManager.cpp
+ LoadBalancing/LB_LoadMap.cpp
+ LoadBalancing/LB_Location_Index_Map.cpp
LoadBalancing/LB_MemberLocator.cpp
+ LoadBalancing/LB_MonitorMap.cpp
LoadBalancing/LB_Pull_Handler.cpp
LoadBalancing/LB_Random.cpp
LoadBalancing/LB_RoundRobin.cpp
diff --git a/TAO/orbsvcs/orbsvcs/CosNaming.mpc b/TAO/orbsvcs/orbsvcs/CosNaming.mpc
index 991012a2a9f..e73440e773b 100644
--- a/TAO/orbsvcs/orbsvcs/CosNaming.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosNaming.mpc
@@ -1,9 +1,11 @@
// -*- MPC -*-
// $Id$
-project(CosNaming_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
+project(CosNaming_IDL) : orbsvcslib, core {
+
custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Naming_Export -Wb,stub_export_include=orbsvcs/Naming/naming_export.h -Wb,skel_export_macro=TAO_Naming_Skel_Export -Wb,skel_export_include=orbsvcs/Naming/naming_skel_export.h
+
+ idlflags += -Wb,stub_export_macro=TAO_Naming_Export -Wb,stub_export_include=orbsvcs/Naming/naming_export.h -Wb,skel_export_macro=TAO_Naming_Skel_Export -Wb,skel_export_include=orbsvcs/Naming/naming_skel_export.h
IDL_Files {
CosNaming.idl
@@ -13,8 +15,8 @@ project(CosNaming_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
project(CosNaming) : orbsvcslib, core {
sharedname = TAO_CosNaming
dynamicflags = TAO_NAMING_BUILD_DLL
- tagchecks += Naming
- after += CosNaming_IDL
+
+ after += CosNaming_IDL
IDL_Files {
}
diff --git a/TAO/orbsvcs/orbsvcs/CosNaming_Serv.mpc b/TAO/orbsvcs/orbsvcs/CosNaming_Serv.mpc
index 02f81cd7b59..02066295e7f 100644
--- a/TAO/orbsvcs/orbsvcs/CosNaming_Serv.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosNaming_Serv.mpc
@@ -1,9 +1,7 @@
// -*- MPC -*-
-//
// $Id$
-project(CosNaming_Serv) : orbsvcslib, core, naming_skel, messaging_optional, svc_utils, iortable {
- avoids += ace_for_tao // Requires MMAP_Memory_Pool
+project(CosNaming_Serv) : orbsvcslib, acememorylib_for_tao, core, naming_skel, messaging, svc_utils, iortable {
sharedname = TAO_CosNaming_Serv
dynamicflags = TAO_NAMING_SERV_BUILD_DLL
tagchecks += Naming
diff --git a/TAO/orbsvcs/orbsvcs/CosNaming_Skel.mpc b/TAO/orbsvcs/orbsvcs/CosNaming_Skel.mpc
index c5859a1c573..3055bf526ee 100644
--- a/TAO/orbsvcs/orbsvcs/CosNaming_Skel.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosNaming_Skel.mpc
@@ -4,7 +4,6 @@
project(CosNaming_Skel) : orbsvcslib, core, naming, portableserver {
sharedname = TAO_CosNaming_Skel
dynamicflags = TAO_NAMING_SKEL_BUILD_DLL
- tagchecks += Naming
IDL_Files {
}
diff --git a/TAO/orbsvcs/orbsvcs/CosNotification.mpc b/TAO/orbsvcs/orbsvcs/CosNotification.mpc
index 87fab05f21c..5c7c8eadebc 100644
--- a/TAO/orbsvcs/orbsvcs/CosNotification.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosNotification.mpc
@@ -1,9 +1,11 @@
// -*- MPC -*-
// $Id$
-project(CosNotification_IDL) : orbsvcslib, core, event, tao_versioning_idl_defaults {
+project(CosNotification_IDL) : orbsvcslib, core, event {
+
custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h
+
+ idlflags += -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h
IDL_Files {
CosNotification.idl
@@ -18,8 +20,8 @@ project(CosNotification_IDL) : orbsvcslib, core, event, tao_versioning_idl_defau
project(CosNotification) : orbsvcslib, core, event {
sharedname = TAO_CosNotification
dynamicflags = TAO_NOTIFY_BUILD_DLL
- tagchecks += Notify
- after += CosNotification_IDL
+
+ after += CosNotification_IDL
IDL_Files {
}
@@ -70,7 +72,6 @@ project(CosNotification) : orbsvcslib, core, event {
project(CosNotification_Skel) : orbsvcslib, core, notification, event_skel, portableserver {
sharedname = TAO_CosNotification_Skel
dynamicflags = TAO_NOTIFY_SKEL_BUILD_DLL
- tagchecks += Notify
IDL_Files {
}
@@ -143,96 +144,91 @@ project(CosNotification_Serv) : orbsvcslib, svc_utils, core, notification_skel,
// The following could be simplified if RT stuff was
// put into another subdirectory.
- Source_Files {
- Notify/Admin.cpp
- Notify/AdminProperties.cpp
- Notify/Bit_Vector.cpp
- Notify/Buffering_Strategy.cpp
- Notify/Builder.cpp
- Notify/Consumer.cpp
- Notify/ConsumerAdmin.cpp
- Notify/CosNotify_Initializer.cpp
- Notify/CosNotify_Service.cpp
- Notify/Default_Factory.cpp
- Notify/Delivery_Request.cpp
- Notify/ETCL_Filter.cpp
- Notify/ETCL_FilterFactory.cpp
- Notify/Event.cpp
- Notify/EventChannel.cpp
- Notify/EventChannelFactory.cpp
- Notify/EventType.cpp
- Notify/EventTypeSeq.cpp
- Notify/Event_Manager.cpp
- Notify/Event_Persistence_Factory.cpp
- Notify/FilterAdmin.cpp
- Notify/ID_Factory.cpp
- Notify/Method_Request.cpp
- Notify/Method_Request_Dispatch.cpp
- Notify/Method_Request_Event.cpp
- Notify/Method_Request_Lookup.cpp
- Notify/Method_Request_Shutdown.cpp
- Notify/Method_Request_Updates.cpp
- Notify/Name_Value_Pair.cpp
- Notify/Notify_Constraint_Interpreter.cpp
- Notify/Notify_Constraint_Visitors.cpp
- Notify/Notify_Default_Collection_Factory.cpp
- Notify/Notify_Default_CO_Factory.cpp
- Notify/Notify_Default_EMO_Factory.cpp
- Notify/Notify_Default_POA_Factory.cpp
- Notify/Notify_EventChannelFactory_i.cpp
- Notify/Object.cpp
- Notify/Peer.cpp
- Notify/Persistent_File_Allocator.cpp
- Notify/POA_Helper.cpp
- Notify/Properties.cpp
- Notify/PropertySeq.cpp
- Notify/Property_Boolean.cpp
- Notify/Proxy.cpp
- Notify/ProxyConsumer.cpp
- Notify/ProxySupplier.cpp
- Notify/QoSProperties.cpp
- Notify/Random_File.cpp
- Notify/Reactive_Task.cpp
- Notify/Refcountable.cpp
- Notify/Reconnection_Registry.cpp
- Notify/Routing_Slip.cpp
- Notify/Routing_Slip_Persistence_Manager.cpp
- Notify/Routing_Slip_Queue.cpp
- Notify/Service.cpp
- Notify/Subscription_Change_Worker.cpp
- Notify/Supplier.cpp
- Notify/SupplierAdmin.cpp
- Notify/Standard_Event_Persistence.cpp
- Notify/ThreadPool_Task.cpp
- Notify/Timer_Queue.cpp
- Notify/Timer_Reactor.cpp
- Notify/Topology_Loader.cpp
- Notify/Topology_Object.cpp
- Notify/Topology_Saver.cpp
- Notify/Worker_Task.cpp
- Notify/Any/AnyEvent.cpp
- Notify/Any/CosEC_ProxyPushConsumer.cpp
- Notify/Any/CosEC_ProxyPushSupplier.cpp
- Notify/Any/ProxyPushConsumer.cpp
- Notify/Any/ProxyPushSupplier.cpp
- Notify/Any/PushConsumer.cpp
- Notify/Any/PushSupplier.cpp
- Notify/Sequence/SequenceProxyPushConsumer.cpp
- Notify/Sequence/SequenceProxyPushSupplier.cpp
- Notify/Sequence/SequencePushConsumer.cpp
- Notify/Sequence/SequencePushSupplier.cpp
- Notify/Structured/StructuredEvent.cpp
- Notify/Structured/StructuredProxyPushConsumer.cpp
- Notify/Structured/StructuredProxyPushSupplier.cpp
- Notify/Structured/StructuredPushConsumer.cpp
- Notify/Structured/StructuredPushSupplier.cpp
- }
-
- Header_Files {
- Notify/notify_serv_export.h
- }
-
- Inline_Files {
+ Source_Files(ORBSVCS_COMPONENTS) {
+ Notify {
+ Notify/Admin.cpp
+ Notify/AdminProperties.cpp
+ Notify/Bit_Vector.cpp
+ Notify/Buffering_Strategy.cpp
+ Notify/Builder.cpp
+ Notify/Consumer.cpp
+ Notify/ConsumerAdmin.cpp
+ Notify/CosNotify_Initializer.cpp
+ Notify/CosNotify_Service.cpp
+ Notify/Default_Factory.cpp
+ Notify/Delivery_Request.cpp
+ Notify/ETCL_Filter.cpp
+ Notify/ETCL_FilterFactory.cpp
+ Notify/Event.cpp
+ Notify/EventChannel.cpp
+ Notify/EventChannelFactory.cpp
+ Notify/EventType.cpp
+ Notify/EventTypeSeq.cpp
+ Notify/Event_Manager.cpp
+ Notify/Event_Persistence_Factory.cpp
+ Notify/FilterAdmin.cpp
+ Notify/ID_Factory.cpp
+ Notify/Method_Request.cpp
+ Notify/Method_Request_Dispatch.cpp
+ Notify/Method_Request_Event.cpp
+ Notify/Method_Request_Lookup.cpp
+ Notify/Method_Request_Shutdown.cpp
+ Notify/Method_Request_Updates.cpp
+ Notify/Name_Value_Pair.cpp
+ Notify/Notify_Constraint_Interpreter.cpp
+ Notify/Notify_Constraint_Visitors.cpp
+ Notify/Notify_Default_Collection_Factory.cpp
+ Notify/Notify_Default_CO_Factory.cpp
+ Notify/Notify_Default_EMO_Factory.cpp
+ Notify/Notify_Default_POA_Factory.cpp
+ Notify/Notify_EventChannelFactory_i.cpp
+ Notify/Object.cpp
+ Notify/Peer.cpp
+ Notify/Persistent_File_Allocator.cpp
+ Notify/POA_Helper.cpp
+ Notify/Properties.cpp
+ Notify/PropertySeq.cpp
+ Notify/Property_Boolean.cpp
+ Notify/Proxy.cpp
+ Notify/ProxyConsumer.cpp
+ Notify/ProxySupplier.cpp
+ Notify/QoSProperties.cpp
+ Notify/Random_File.cpp
+ Notify/Reactive_Task.cpp
+ Notify/Refcountable.cpp
+ Notify/Reconnection_Registry.cpp
+ Notify/Routing_Slip.cpp
+ Notify/Routing_Slip_Persistence_Manager.cpp
+ Notify/Routing_Slip_Queue.cpp
+ Notify/Service.cpp
+ Notify/Subscription_Change_Worker.cpp
+ Notify/Supplier.cpp
+ Notify/SupplierAdmin.cpp
+ Notify/Standard_Event_Persistence.cpp
+ Notify/ThreadPool_Task.cpp
+ Notify/Timer_Queue.cpp
+ Notify/Timer_Reactor.cpp
+ Notify/Topology_Loader.cpp
+ Notify/Topology_Object.cpp
+ Notify/Topology_Saver.cpp
+ Notify/Worker_Task.cpp
+ Notify/Any/AnyEvent.cpp
+ Notify/Any/CosEC_ProxyPushConsumer.cpp
+ Notify/Any/CosEC_ProxyPushSupplier.cpp
+ Notify/Any/ProxyPushConsumer.cpp
+ Notify/Any/ProxyPushSupplier.cpp
+ Notify/Any/PushConsumer.cpp
+ Notify/Any/PushSupplier.cpp
+ Notify/Sequence/SequenceProxyPushConsumer.cpp
+ Notify/Sequence/SequenceProxyPushSupplier.cpp
+ Notify/Sequence/SequencePushConsumer.cpp
+ Notify/Sequence/SequencePushSupplier.cpp
+ Notify/Structured/StructuredEvent.cpp
+ Notify/Structured/StructuredProxyPushConsumer.cpp
+ Notify/Structured/StructuredProxyPushSupplier.cpp
+ Notify/Structured/StructuredPushConsumer.cpp
+ Notify/Structured/StructuredPushSupplier.cpp
+ }
}
Template_Files {
@@ -256,7 +252,6 @@ project(CosNotification_Persist) : notification_serv, core, acexml {
}
Header_Files {
- Notify/notify_persist_export.h
}
Inline_Files {
diff --git a/TAO/orbsvcs/orbsvcs/CosProperty.mpc b/TAO/orbsvcs/orbsvcs/CosProperty.mpc
index cc73a0a5fc8..e4aa9fbbfde 100644
--- a/TAO/orbsvcs/orbsvcs/CosProperty.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosProperty.mpc
@@ -1,9 +1,13 @@
// -*- MPC -*-
// $Id$
-project(CosProperty_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Property_Export -Wb,stub_export_include=orbsvcs/Property/property_export.h -Wb,skel_export_macro=TAO_Property_Skel_Export -Wb,skel_export_include=orbsvcs/Property/property_skel_export.h
+project(CosProperty) : orbsvcslib, core, portableserver {
+ sharedname = TAO_CosProperty
+ idlflags += -Wb,export_macro=TAO_Property_Export -Wb,export_include=orbsvcs/Property/property_export.h
+ dynamicflags = TAO_PROPERTY_BUILD_DLL
+ tagchecks += Property
+ pch_header =
+ pch_source =
IDL_Files {
CosProperty.idl
@@ -11,71 +15,29 @@ project(CosProperty_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
// This is a wrappper for backwards compatibility
CosPropertyService.idl
}
-}
-
-project(CosProperty) : orbsvcslib, core {
- sharedname = TAO_CosProperty
- dynamicflags = TAO_PROPERTY_BUILD_DLL
- tagchecks += Property
- after += CosProperty_IDL
-
- IDL_Files {
- }
Source_Files {
CosPropertyC.cpp
- CosPropertyServiceC.cpp
- }
-
- Header_Files {
- CosPropertyC.h
- CosPropertyServiceC.h
- Property/property_export.h
- }
-
- Inline_Files {
- CosPropertyC.inl
- CosPropertyServiceC.inl
- }
-
- Template_Files {
- }
-
- // explicit Resource_Files to avoid including _Skel and _Serv rc files.
- Resource_Files {
- }
-
- Pkgconfig_Files {
- TAO_CosProperty.pc.in
- }
-}
-
-project(CosProperty_Skel) : orbsvcslib, core, property, portableserver {
- sharedname = TAO_CosProperty_Skel
- dynamicflags = TAO_PROPERTY_SKEL_BUILD_DLL
- tagchecks += Property
-
- IDL_Files {
- }
-
- Source_Files {
CosPropertyS.cpp
+ CosPropertyServiceC.cpp
CosPropertyServiceS.cpp
+ Property
}
Header_Files {
+ CosPropertyC.h
CosPropertyS.h
- CosPropertyS_T.h
+ CosPropertyServiceC.h
CosPropertyServiceS.h
- CosPropertyServiceS_T.h
- Property/property_skel_export.h
+ Property
}
Inline_Files {
+ CosPropertyC.inl
CosPropertyS.inl
- CosPropertyS_T.inl
+ CosPropertyServiceC.inl
CosPropertyServiceS.inl
- CosPropertyServiceS_T.inl
+ Property
}
Template_Files {
@@ -84,37 +46,6 @@ project(CosProperty_Skel) : orbsvcslib, core, property, portableserver {
}
Pkgconfig_Files {
- TAO_CosProperty_Skel.pc.in
- }
-}
-
-project(CosProperty_Serv) : orbsvcslib, core, property_skel {
- sharedname = TAO_CosProperty_Serv
- dynamicflags = TAO_PROPERTY_SERV_BUILD_DLL
- tagchecks += Property
-
- IDL_Files {
- }
-
- Source_Files {
- Property
- }
-
- Header_Files {
- Property
- ^Property/property_export.h
- ^Property/property_skel_export.h
- }
-
- Inline_Files {
- Property
- }
-
- Template_Files {
- Property
- }
-
- Pkgconfig_Files {
- TAO_CosProperty_Serv.pc.in
+ TAO_CosProperty.pc.in
}
}
diff --git a/TAO/orbsvcs/orbsvcs/CosTime.mpc b/TAO/orbsvcs/orbsvcs/CosTime.mpc
index 417a1c0d6ff..a20d078718e 100644
--- a/TAO/orbsvcs/orbsvcs/CosTime.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosTime.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(CosTime) : orbsvcslib, svc_utils, core, portableserver, tao_versioning_idl_defaults {
+project(CosTime) : orbsvcslib, svc_utils, core, portableserver {
sharedname = TAO_CosTime
idlflags += -Wb,export_macro=TAO_Time_Export -Wb,export_include=orbsvcs/Time/time_export.h
dynamicflags = TAO_TIME_BUILD_DLL
@@ -11,17 +11,12 @@ project(CosTime) : orbsvcslib, svc_utils, core, portableserver, tao_versioning_i
TimeService.idl
}
- Source_Files {
- TimeServiceC.cpp
- TimeServiceS.cpp
- Time
- }
-
- Header_Files {
- Time/time_export.h
- }
-
- Inline_Files {
+ Source_Files(ORBSVCS_COMPONENTS) {
+ Time {
+ TimeServiceC.cpp
+ TimeServiceS.cpp
+ Time
+ }
}
Template_Files {
diff --git a/TAO/orbsvcs/orbsvcs/CosTrading.mpc b/TAO/orbsvcs/orbsvcs/CosTrading.mpc
index ef436ac2479..e42e484b382 100644
--- a/TAO/orbsvcs/orbsvcs/CosTrading.mpc
+++ b/TAO/orbsvcs/orbsvcs/CosTrading.mpc
@@ -1,9 +1,11 @@
// -*- MPC -*-
// $Id$
-project(CosTrading_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
+project(CosTrading_IDL) : orbsvcslib, core {
+
custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h
+
+ idlflags += -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h
IDL_Files {
CosTrading.idl
@@ -16,8 +18,8 @@ project(CosTrading_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
project(CosTrading) : orbsvcslib, core {
sharedname = TAO_CosTrading
dynamicflags = TAO_TRADING_BUILD_DLL
- tagchecks += Trader
- after += CosTrading_IDL
+
+ after += CosTrading_IDL
IDL_Files {
}
@@ -58,7 +60,6 @@ project(CosTrading) : orbsvcslib, core {
project(CosTrading_Skel) : orbsvcslib, core, trading, portableserver {
sharedname = TAO_CosTrading_Skel
dynamicflags = TAO_TRADING_SKEL_BUILD_DLL
- tagchecks += Trader
IDL_Files {
}
@@ -103,7 +104,7 @@ project(CosTrading_Skel) : orbsvcslib, core, trading, portableserver {
}
-project(CosTrading_Serv) : orbsvcslib, core, trading_skel, dynamicany, svc_utils, utils, iortable {
+project(CosTrading_Serv) : orbsvcslib, core, trading_skel, dynamicany, svc_utils, utils {
sharedname = TAO_CosTrading_Serv
dynamicflags = TAO_TRADING_SERV_BUILD_DLL
tagchecks += Trader
@@ -113,12 +114,10 @@ project(CosTrading_Serv) : orbsvcslib, core, trading_skel, dynamicany, svc_utils
IDL_Files {
}
- Source_Files {
- Trader
- }
-
- Header_Files {
- Trader/trading_serv_export.h
+ Source_Files(ORBSVCS_COMPONENTS) {
+ Trader {
+ Trader
+ }
}
Inline_Files {
diff --git a/TAO/orbsvcs/orbsvcs/DsEventLogAdmin.mpc b/TAO/orbsvcs/orbsvcs/DsEventLogAdmin.mpc
index 4322406dedc..246397fd193 100644
--- a/TAO/orbsvcs/orbsvcs/DsEventLogAdmin.mpc
+++ b/TAO/orbsvcs/orbsvcs/DsEventLogAdmin.mpc
@@ -1,9 +1,11 @@
// -*- MPC -*-
// $Id$
-project(DsEventLogAdmin_IDL) : orbsvcslib, core, dslogadmin, event, tao_versioning_idl_defaults {
+project(DsEventLogAdmin_IDL) : orbsvcslib, core, dslogadmin, event {
+
custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_EventLog_Export -Wb,stub_export_include=orbsvcs/Log/eventlog_export.h -Wb,skel_export_macro=TAO_EventLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/eventlog_skel_export.h
+
+ idlflags += -Wb,stub_export_macro=TAO_EventLog_Export -Wb,stub_export_include=orbsvcs/Log/eventlog_export.h -Wb,skel_export_macro=TAO_EventLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/eventlog_skel_export.h
IDL_Files {
DsEventLogAdmin.idl
@@ -13,8 +15,8 @@ project(DsEventLogAdmin_IDL) : orbsvcslib, core, dslogadmin, event, tao_versioni
project(DsEventLogAdmin) : orbsvcslib, core, dslogadmin, event {
sharedname = TAO_DsEventLogAdmin
dynamicflags = TAO_EVENTLOG_BUILD_DLL
- tagchecks += EventLog
- after += DsEventLogAdmin_IDL
+
+ after += DsEventLogAdmin_IDL
IDL_Files {
}
@@ -48,7 +50,6 @@ project(DsEventLogAdmin) : orbsvcslib, core, dslogadmin, event {
project(DsEventLogAdmin_Skel) : orbsvcslib, core, dseventlogadmin, dslogadmin_skel, event_skel, portableserver {
sharedname = TAO_DsEventLogAdmin_Skel
dynamicflags = TAO_EVENTLOG_SKEL_BUILD_DLL
- tagchecks += EventLog
IDL_Files {
}
diff --git a/TAO/orbsvcs/orbsvcs/DsLogAdmin.mpc b/TAO/orbsvcs/orbsvcs/DsLogAdmin.mpc
index d0d9a4dea5e..469f7720e3a 100644
--- a/TAO/orbsvcs/orbsvcs/DsLogAdmin.mpc
+++ b/TAO/orbsvcs/orbsvcs/DsLogAdmin.mpc
@@ -1,9 +1,11 @@
// -*- MPC -*-
// $Id$
-project(DsLogAdmin_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
+project(DsLogAdmin_IDL) : orbsvcslib, core {
+
custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_Log_Export -Wb,stub_export_include=orbsvcs/Log/log_export.h -Wb,skel_export_macro=TAO_Log_Skel_Export -Wb,skel_export_include=orbsvcs/Log/log_skel_export.h
+
+ idlflags += -Wb,stub_export_macro=TAO_Log_Export -Wb,stub_export_include=orbsvcs/Log/log_export.h -Wb,skel_export_macro=TAO_Log_Skel_Export -Wb,skel_export_include=orbsvcs/Log/log_skel_export.h
IDL_Files {
DsLogAdmin.idl
@@ -14,8 +16,8 @@ project(DsLogAdmin_IDL) : orbsvcslib, core, tao_versioning_idl_defaults {
project(DsLogAdmin) : orbsvcslib, core {
sharedname = TAO_DsLogAdmin
dynamicflags = TAO_LOG_BUILD_DLL
- tagchecks += Log
- after += DsLogAdmin_IDL
+
+ after += DsLogAdmin_IDL
IDL_Files {
}
@@ -53,7 +55,6 @@ project(DsLogAdmin) : orbsvcslib, core {
project(DsLogAdmin_Skel) : orbsvcslib, core, dslogadmin, portableserver {
sharedname = TAO_DsLogAdmin_Skel
dynamicflags = TAO_LOG_SKEL_BUILD_DLL
- tagchecks += Log
IDL_Files {
}
diff --git a/TAO/orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc b/TAO/orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc
index bf66701ee09..ddfb9af7cc6 100644
--- a/TAO/orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc
+++ b/TAO/orbsvcs/orbsvcs/DsNotifyLogAdmin.mpc
@@ -1,9 +1,11 @@
// -*- MPC -*-
// $Id$
-project(DsNotifyLogAdmin_IDL) : orbsvcslib, core, dslogadmin, dseventlogadmin, event, notification, tao_versioning_idl_defaults {
+project(DsNotifyLogAdmin_IDL) : orbsvcslib, core, dslogadmin, dseventlogadmin, event, notification {
+
custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_NotifyLog_Export -Wb,stub_export_include=orbsvcs/Log/notifylog_export.h -Wb,skel_export_macro=TAO_NotifyLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/notifylog_skel_export.h
+
+ idlflags += -Wb,stub_export_macro=TAO_NotifyLog_Export -Wb,stub_export_include=orbsvcs/Log/notifylog_export.h -Wb,skel_export_macro=TAO_NotifyLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/notifylog_skel_export.h
IDL_Files {
DsNotifyLogAdmin.idl
@@ -13,8 +15,8 @@ project(DsNotifyLogAdmin_IDL) : orbsvcslib, core, dslogadmin, dseventlogadmin, e
project(DsNotifyLogAdmin) : orbsvcslib, core, dslogadmin, dseventlogadmin, event, notification {
sharedname = TAO_DsNotifyLogAdmin
dynamicflags = TAO_NOTIFYLOG_BUILD_DLL
- tagchecks += Log
- after += DsNotifyLogAdmin_IDL
+
+ after += DsNotifyLogAdmin_IDL
IDL_Files {
}
@@ -49,7 +51,6 @@ project(DsNotifyLogAdmin) : orbsvcslib, core, dslogadmin, dseventlogadmin, event
project(DsNotifyLogAdmin_Skel) : orbsvcslib, core, dsnotifylogadmin, dseventlogadmin_skel, dslogadmin_skel, event_skel, notification_skel, portableserver {
sharedname = TAO_DsNotifyLogAdmin_Skel
dynamicflags = TAO_NOTIFYLOG_SKEL_BUILD_DLL
- tagchecks += Log
IDL_Files {
}
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.cpp
index 0cca17fb185..a4e11e8837a 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_ESF_BUSY_LOCK_CPP
#define TAO_ESF_BUSY_LOCK_CPP
-#include "orbsvcs/ESF/ESF_Busy_Lock.h"
+#include "ESF_Busy_Lock.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Busy_Lock.i"
+#include "ESF_Busy_Lock.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Busy_Lock, "$Id$")
template<class T>
int TAO_ESF_Busy_Lock_Adapter<T>::remove (void)
@@ -59,6 +59,4 @@ int TAO_ESF_Busy_Lock_Adapter<T>::tryacquire_write (void)
return this->adaptee_->busy ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_BUSY_LOCK_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h
index 2c112e4f25e..bb2ea3d2a4a 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.h
@@ -18,8 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Adapt classes that implement the "busy lock" protocol, to conform
/// to the ACE Lock interface.
/**
@@ -63,14 +61,12 @@ private:
Adaptee* adaptee_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Busy_Lock.i"
+#include "ESF_Busy_Lock.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Busy_Lock.cpp"
+#include "ESF_Busy_Lock.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.i
index 8c39a00c2e9..6723e66b926 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Busy_Lock.i
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T> ACE_INLINE
TAO_ESF_Busy_Lock_Adapter<T>::TAO_ESF_Busy_Lock_Adapter (T* adaptee)
: adaptee_ (adaptee)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.cpp
index ea15a0e703e..55055171241 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.cpp
@@ -3,10 +3,10 @@
#ifndef TAO_ESF_COPY_ON_READ_CPP
#define TAO_ESF_COPY_ON_READ_CPP
-#include "orbsvcs/ESF/ESF_Copy_On_Read.h"
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Copy_On_Read.h"
+#include "ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Copy_On_Read, "$Id$")
template<class PROXY, class COLLECTION, class ITERATOR, class ACE_LOCK>
TAO_ESF_Copy_On_Read<PROXY,COLLECTION,ITERATOR,ACE_LOCK>::
@@ -115,6 +115,4 @@ TAO_ESF_Copy_On_Read<PROXY,COLLECTION,ITERATOR,ACE_LOCK>::
this->collection_.shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_COPY_ON_READ_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h
index d5c7c22fcd8..f0b704632f6 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Read.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Copy_On_Read.h
*
@@ -13,14 +12,12 @@
#ifndef TAO_ESF_COPY_ON_READ_H
#define TAO_ESF_COPY_ON_READ_H
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
+#include "ESF_Proxy_Collection.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class Target> class TAO_ESF_Worker;
// ****************************************************************
@@ -61,10 +58,8 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Copy_On_Read.cpp"
+#include "ESF_Copy_On_Read.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.cpp
index 169f5eac972..58c09ac03ed 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.cpp
@@ -3,15 +3,15 @@
#ifndef TAO_ESF_COPY_ON_WRITE_CPP
#define TAO_ESF_COPY_ON_WRITE_CPP
-#include "orbsvcs/ESF/ESF_Copy_On_Write.h"
+#include "ESF_Copy_On_Write.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Copy_On_Write.i"
+#include "ESF_Copy_On_Write.i"
#endif /* __ACE_INLINE__ */
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Copy_On_Write, "$Id$")
template<class COLLECTION, class ITERATOR> CORBA::ULong
TAO_ESF_Copy_On_Write_Collection<COLLECTION,ITERATOR>::_incr_refcnt (void)
@@ -203,6 +203,4 @@ TAO_ESF_Copy_On_Write_Write_Guard<COLLECTION,ITERATOR,ACE_SYNCH_USE>::
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_COPY_ON_WRITE_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h
index a34659b6e57..972c3f33b11 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Copy_On_Write.h
*
@@ -13,7 +12,7 @@
#ifndef TAO_ESF_COPY_ON_WRITE_H
#define TAO_ESF_COPY_ON_WRITE_H
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
+#include "ESF_Proxy_Collection.h"
#include "tao/Basic_Types.h"
@@ -21,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class COLLECTION, class ITERATOR>
class TAO_ESF_Copy_On_Write_Collection
{
@@ -167,14 +164,12 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Copy_On_Write.i"
+#include "ESF_Copy_On_Write.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Copy_On_Write.cpp"
+#include "ESF_Copy_On_Write.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.i
index d3ad3d108c7..e4aff9e9491 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Copy_On_Write.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class COLLECTION, class ITERATOR> ACE_INLINE
TAO_ESF_Copy_On_Write_Collection<COLLECTION,ITERATOR>::
TAO_ESF_Copy_On_Write_Collection (void)
@@ -38,4 +34,3 @@ TAO_ESF_Copy_On_Write_Read_Guard<COLLECTION,ITERATOR,ACE_LOCK>::
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Defaults.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Defaults.h
index 7eaa3a6d306..9d391cccf2b 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Defaults.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Defaults.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file ESF_Defaults.h
*
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp
index 5398387800c..b51648f5f68 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.cpp
@@ -3,19 +3,22 @@
#ifndef TAO_ESF_DELAYED_CHANGES_CPP
#define TAO_ESF_DELAYED_CHANGES_CPP
-#include "orbsvcs/ESF/ESF_Delayed_Changes.h"
+#include "ESF_Delayed_Changes.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Delayed_Changes.i"
+#include "ESF_Delayed_Changes.i"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/ESF/ESF_Defaults.h"
-#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/ESF/ESF_Delayed_Command.h"
+#include "ESF_Defaults.h"
+#include "ESF_Worker.h"
+#include "ESF_Delayed_Command.h"
#include "ace/Functor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF,
+ ESF_Delayed_Changes,
+ "$Id$")
+
// ****************************************************************
@@ -211,6 +214,4 @@ TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>::
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_DELAYED_CHANGES_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h
index 2bf47dd49b4..5428426f924 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file ESF_Delayed_Changes.h
*
@@ -12,27 +12,25 @@
#ifndef TAO_ESF_DELAYED_CHANGES_H
#define TAO_ESF_DELAYED_CHANGES_H
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
+#include "ESF_Proxy_Collection.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/ESF/ESF_Busy_Lock.h"
+#include "ESF_Busy_Lock.h"
#include "ace/Containers.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Command_Base;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<class Target,class Object> class TAO_ESF_Connected_Command;
template<class Target,class Object> class TAO_ESF_Disconnected_Command;
template<class Target,class Object> class TAO_ESF_Reconnected_Command;
template<class Target> class TAO_ESF_Shutdown_Command;
+class ACE_Command_Base;
+
/**
* @class TAO_ESF_Delayed_Changes
*
@@ -143,14 +141,12 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Delayed_Changes.i"
+#include "ESF_Delayed_Changes.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Delayed_Changes.cpp"
+#include "ESF_Delayed_Changes.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.i
index 4a2192e5a18..7ba390a202f 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Changes.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class PROXY, class C, class I,ACE_SYNCH_DECL> void
TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>::
connected_i (PROXY *proxy
@@ -34,5 +30,3 @@ TAO_ESF_Delayed_Changes<PROXY,C,I,ACE_SYNCH_USE>::
{
this->collection_.shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp
index fe0a7812db0..96f57baac44 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.cpp
@@ -3,13 +3,15 @@
#ifndef TAO_ESF_DELAYED_COMMAND_CPP
#define TAO_ESF_DELAYED_COMMAND_CPP
-#include "orbsvcs/ESF/ESF_Delayed_Command.h"
+#include "ESF_Delayed_Command.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Delayed_Command.i"
+#include "ESF_Delayed_Command.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ESF,
+ ESF_Delayed_Command,
+ "$Id$")
template<class Target, class Object> int
TAO_ESF_Connected_Command<Target,Object>::execute (void* arg)
@@ -92,6 +94,4 @@ TAO_ESF_Shutdown_Command<Target>::execute (void* arg)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_DELAYED_COMMAND_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h
index a827c4e6415..ee0ab0f3ada 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Delayed_Command.h
*
@@ -19,8 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_Connected_Command
*
@@ -170,14 +167,12 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Delayed_Command.i"
+#include "ESF_Delayed_Command.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Delayed_Command.cpp"
+#include "ESF_Delayed_Command.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.i
index 3ffe5697959..5465f38c4bd 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Delayed_Command.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class Target, class Object>
TAO_ESF_Connected_Command<Target,Object>::
TAO_ESF_Connected_Command (Target *target,
@@ -43,5 +39,3 @@ TAO_ESF_Shutdown_Command<Target>::
: target_ (target)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp
index c1bbac9dad0..302ab13da41 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.cpp
@@ -3,15 +3,15 @@
#ifndef TAO_ESF_IMMEDIATE_CHANGES_CPP
#define TAO_ESF_IMMEDIATE_CHANGES_CPP
-#include "orbsvcs/ESF/ESF_Immediate_Changes.h"
+#include "ESF_Immediate_Changes.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Immediate_Changes.i"
+#include "ESF_Immediate_Changes.i"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Immediate_Changes, "$Id$")
// ****************************************************************
@@ -44,6 +44,4 @@ TAO_ESF_Immediate_Changes<PROXY,C,ITERATOR,ACE_LOCK>::
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_IMMEDIATE_CHANGES_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h
index bcd9b19edd4..8d08c77b968 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file ESF_Immediate_Changes.h
*
@@ -12,14 +12,12 @@
#ifndef TAO_ESF_IMMEDIATE_CHANGES_H
#define TAO_ESF_IMMEDIATE_CHANGES_H
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
+#include "ESF_Proxy_Collection.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_Immediate_Changes
*
@@ -52,14 +50,12 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Immediate_Changes.i"
+#include "ESF_Immediate_Changes.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Immediate_Changes.cpp"
+#include "ESF_Immediate_Changes.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.i
index ac26e4d5800..d90394ed395 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Immediate_Changes.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class PROXY, class COLLECTION, class ITERATOR, class ACE_LOCK> void
TAO_ESF_Immediate_Changes<PROXY,COLLECTION,ITERATOR,ACE_LOCK>::
connected (PROXY *proxy
@@ -44,5 +40,3 @@ TAO_ESF_Immediate_Changes<PROXY,COLLECTION,ITERATOR,ACE_LOCK>::
this->collection_.shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.cpp
index 40afd8d452f..b2b99d61a83 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.cpp
@@ -3,9 +3,9 @@
#ifndef TAO_ESF_PEER_ADMIN_CPP
#define TAO_ESF_PEER_ADMIN_CPP
-#include "orbsvcs/ESF/ESF_Peer_Workers.h"
+#include "ESF_Peer_Workers.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Peer_Admin, "$Id$")
template<class EVENT_CHANNEL, class PROXY, class INTERFACE, class PEER>
TAO_ESF_Peer_Admin<EVENT_CHANNEL,PROXY,INTERFACE,PEER>::
@@ -53,6 +53,4 @@ TAO_ESF_Peer_Admin<EVENT_CHANNEL,PROXY,INTERFACE,PEER>::
this->for_each (&worker ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PEER_ADMIN_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h
index 95a188cf661..8cb50b3d57c 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Admin.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Peer_Admin.h
*
@@ -13,14 +12,12 @@
#ifndef TAO_ESF_PEER_ADMIN_H
#define TAO_ESF_PEER_ADMIN_H
-#include "orbsvcs/ESF/ESF_Proxy_Admin.h"
+#include "ESF_Proxy_Admin.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_Peer_Admin
*
@@ -95,10 +92,8 @@ public:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Peer_Admin.cpp"
+#include "ESF_Peer_Admin.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.cpp
index 354daec8bed..ad0678ae0a7 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_ESF_PEER_WORKERS_CPP
#define TAO_ESF_PEER_WORKERS_CPP
-#include "orbsvcs/ESF/ESF_Peer_Workers.h"
+#include "ESF_Peer_Workers.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Peer_Workers.i"
+#include "ESF_Peer_Workers.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Peer_Workers, "$Id$")
template<class P, class R> void
TAO_ESF_Peer_Connected<P,R>::work (P *proxy
@@ -48,6 +48,4 @@ TAO_ESF_Peer_Disconnected<P,R>::work (P *proxy
ACE_CHECK; // Shouldn't happen, just following the discipline
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PEER_WORKERS_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h
index 793e41f422e..9998a29d19f 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Peer_Workers.h
*
@@ -13,14 +12,12 @@
#ifndef TAO_ESF_PEER_WORKERS_H
#define TAO_ESF_PEER_WORKERS_H
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Worker.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_Peer_Connected
*
@@ -90,14 +87,12 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Peer_Workers.i"
+#include "ESF_Peer_Workers.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Peer_Workers.cpp"
+#include "ESF_Peer_Workers.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.i
index 02201bde5d5..0ff67b7692e 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class P, class R>
TAO_ESF_Peer_Connected<P,R>::TAO_ESF_Peer_Connected (R *peer)
: peer_ (peer)
@@ -27,5 +23,3 @@ TAO_ESF_Peer_Disconnected<P,R>::TAO_ESF_Peer_Disconnected (R *peer)
}
// ****************************************************************
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.cpp
index 8449b48d0b2..b74bb231759 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.cpp
@@ -3,13 +3,15 @@
#ifndef TAO_ESF_PROXY_ADMIN_CPP
#define TAO_ESF_PROXY_ADMIN_CPP
+
+
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_Admin.i"
+#include "ESF_Proxy_Admin.i"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
+#include "ESF_Shutdown_Proxy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Proxy_Admin, "$Id$")
template<class EVENT_CHANNEL, class PROXY, class INTERFACE>
TAO_ESF_Proxy_Admin<EVENT_CHANNEL,PROXY,INTERFACE>::
@@ -105,6 +107,4 @@ TAO_ESF_Proxy_Admin<EVENT_CHANNEL,PROXY,INTERFACE>::
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PROXY_ADMIN_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h
index 5c56884654e..babfd4a4fcc 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Proxy_Admin.h
*
@@ -13,15 +12,13 @@
#ifndef TAO_ESF_PROXY_ADMIN_H
#define TAO_ESF_PROXY_ADMIN_H
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Proxy_Collection.h"
+#include "ESF_Worker.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_Proxy_Admin
*
@@ -76,7 +73,7 @@ public:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- // @todo We should use INTERFACE::_ptr_type or PROXY::_ptr_type, but
+ // @TODO We should use INTERFACE::_ptr_type or PROXY::_ptr_type, but
// the MSVC compiler (v6.0) gets confused when we do so. So we have
// to choose for the lesser evil. The code works because TAO uses
// pointers to implement the _ptr types, and that is OK because this
@@ -150,14 +147,12 @@ private:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_Admin.i"
+#include "ESF_Proxy_Admin.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Proxy_Admin.cpp"
+#include "ESF_Proxy_Admin.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.i
index 882e6c9c056..f6b4d29bc6f 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Admin.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class EC,class P,class I> ACE_INLINE void
TAO_ESF_Proxy_Admin<EC,P,I>::
for_each (TAO_ESF_Worker<P> *worker
@@ -29,4 +25,3 @@ TAO_ESF_RefCountedRef<C>::~TAO_ESF_RefCountedRef ()
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.cpp
index 1691a2dcc02..798a34d0cb9 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.cpp
@@ -3,10 +3,12 @@
#ifndef TAO_ESF_PROXY_COLLECTION_CPP
#define TAO_ESF_PROXY_COLLECTION_CPP
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Proxy_Collection.h"
+#include "ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ESF,
+ ESF_Proxy_Collection,
+ "$Id$")
// ****************************************************************
@@ -15,6 +17,4 @@ TAO_ESF_Proxy_Collection<PROXY>::~TAO_ESF_Proxy_Collection (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PROXY_COLLECTION_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h
index ceaeda03db0..7777d37e830 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_Collection.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Proxy_Collection.h
*
@@ -20,8 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class Target> class TAO_ESF_Worker;
/**
@@ -160,10 +157,8 @@ public:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Proxy_Collection.cpp"
+#include "ESF_Proxy_Collection.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.cpp
index ebe73ce7996..04702e9feed 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.cpp
@@ -3,16 +3,17 @@
#ifndef TAO_ESF_PROXY_LIST_CPP
#define TAO_ESF_PROXY_LIST_CPP
-#include "orbsvcs/ESF/ESF_Proxy_List.h"
+#include "ESF_Proxy_List.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_List.i"
+#include "ESF_Proxy_List.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Proxy_List, "$Id$")
template<class PROXY>
-TAO_ESF_Proxy_List<PROXY>::TAO_ESF_Proxy_List (void)
+TAO_ESF_Proxy_List<PROXY>::
+ TAO_ESF_Proxy_List (void)
{
}
@@ -88,6 +89,4 @@ TAO_ESF_Proxy_List<PROXY>::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
this->impl_.reset ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PROXY_LIST_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h
index f2697bd7dbf..52f1a14c014 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Proxy_List.h
*
@@ -20,8 +19,6 @@
#include "ace/Unbounded_Set.h"
#include "ace/Containers.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// A concrete proxy collection.
/**
* Based on the ACE_Unbounded_Set<> collection, used a double
@@ -71,14 +68,12 @@ private:
ACE_Unbounded_Set<PROXY*> impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_List.i"
+#include "ESF_Proxy_List.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Proxy_List.cpp"
+#include "ESF_Proxy_List.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i
index 67d752fdc6c..881283569ba 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_List.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class PROXY> ACE_INLINE ACE_Unbounded_Set_Iterator<PROXY*>
TAO_ESF_Proxy_List<PROXY>::begin (void)
{
@@ -21,5 +17,3 @@ TAO_ESF_Proxy_List<PROXY>::size (void) const
{
return this->impl_.size ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp
index 000b91f27d9..9e6993882d8 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp
@@ -3,16 +3,17 @@
#ifndef TAO_ESF_PROXY_RB_TREE_CPP
#define TAO_ESF_PROXY_RB_TREE_CPP
-#include "orbsvcs/ESF/ESF_Proxy_RB_Tree.h"
+#include "ESF_Proxy_RB_Tree.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_RB_Tree.i"
+#include "ESF_Proxy_RB_Tree.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Proxy_RB_Tree, "$Id$")
template<class PROXY>
-TAO_ESF_Proxy_RB_Tree<PROXY>::TAO_ESF_Proxy_RB_Tree (void)
+TAO_ESF_Proxy_RB_Tree<PROXY>::
+ TAO_ESF_Proxy_RB_Tree (void)
{
}
@@ -86,6 +87,4 @@ TAO_ESF_Proxy_RB_Tree<PROXY>::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
this->impl_.clear ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PROXY_RB_TREE_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h
index e4c6ce6f9a0..1c824f3ad54 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Proxy_RB_Tree.h
*
@@ -19,8 +18,6 @@
#include "ace/RB_Tree.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Iterator class for a ACE_ESF_RB_Tree
template<class PROXY>
class TAO_ESF_Proxy_RB_Tree_Iterator
@@ -97,14 +94,12 @@ private:
Implementation impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_RB_Tree.i"
+#include "ESF_Proxy_RB_Tree.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Proxy_RB_Tree.cpp"
+#include "ESF_Proxy_RB_Tree.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.i
index b67178bf7b5..0ba0e20e129 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RB_Tree.i
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<class PROXY> ACE_INLINE
TAO_ESF_Proxy_RB_Tree_Iterator<PROXY>::
@@ -65,5 +64,3 @@ TAO_ESF_Proxy_RB_Tree<PROXY>::size (void) const
{
return this->impl_.current_size ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp
index 5e236899e02..83a1490530f 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_ESF_PROXY_REFCOUNT_GUARD_CPP
#define TAO_ESF_PROXY_REFCOUNT_GUARD_CPP
-#include "orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h"
+#include "ESF_Proxy_RefCount_Guard.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i"
+#include "ESF_Proxy_RefCount_Guard.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Proxy_RefCount_Guard, "$Id$")
template<class EC, class P>
TAO_ESF_Proxy_RefCount_Guard<EC,P>::~TAO_ESF_Proxy_RefCount_Guard (void)
@@ -24,6 +24,4 @@ TAO_ESF_Proxy_RefCount_Guard<EC,P>::~TAO_ESF_Proxy_RefCount_Guard (void)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_PROXY_REFCOUNT_GUARD_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h
index 7e2f9e4c160..bf1206ade34 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Proxy_RefCount_Guard.h
*
@@ -19,8 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_Proxy_RefCount_Guard
*
@@ -62,14 +59,12 @@ protected:
PROXY *proxy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i"
+#include "ESF_Proxy_RefCount_Guard.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Proxy_RefCount_Guard.cpp"
+#include "ESF_Proxy_RefCount_Guard.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i
index d0d4fc80ac1..7639a89ee12 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Proxy_RefCount_Guard.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class EC, class P> ACE_INLINE
TAO_ESF_Proxy_RefCount_Guard<EC,P>::
TAO_ESF_Proxy_RefCount_Guard (CORBA::ULong &refcount,
@@ -14,5 +10,3 @@ TAO_ESF_Proxy_RefCount_Guard<EC,P>::
proxy_ (proxy)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.cpp
index ae87b7f97f1..432189332bb 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.cpp
@@ -3,10 +3,10 @@
#ifndef TAO_ESF_REFCOUNT_GUARD_CPP
#define TAO_ESF_REFCOUNT_GUARD_CPP
-#include "orbsvcs/ESF/ESF_RefCount_Guard.h"
+#include "ESF_RefCount_Guard.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_RefCount_Guard.i"
+#include "ESF_RefCount_Guard.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(ESF, ESF_RefCount_Guard, "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h
index 84569c79bb6..1489d6fcce1 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_RefCount_Guard.h
*
@@ -19,10 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ESF_RefCount_Guard
*
@@ -50,14 +45,12 @@ protected:
T &refcount_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_RefCount_Guard.i"
+#include "ESF_RefCount_Guard.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_RefCount_Guard.cpp"
+#include "ESF_RefCount_Guard.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.i
index de454aaefe0..b69511a8382 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_RefCount_Guard.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T> ACE_INLINE
TAO_ESF_RefCount_Guard<T>::
TAO_ESF_RefCount_Guard (T &refcount)
@@ -18,5 +14,3 @@ TAO_ESF_RefCount_Guard<T>::
{
this->refcount_--;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.cpp
index a0db9862e3f..3775862b315 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.cpp
@@ -3,14 +3,14 @@
#ifndef TAO_ESF_SHUTDOWN_PROXY_CPP
#define TAO_ESF_SHUTDOWN_PROXY_CPP
-#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
+#include "ESF_Shutdown_Proxy.h"
#include "ace/CORBA_macros.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Shutdown_Proxy.i"
+#include "ESF_Shutdown_Proxy.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Shutdown_Proxy, "$Id$")
template<class PROXY> void
TAO_ESF_Shutdown_Proxy<PROXY>::work (PROXY *proxy
@@ -28,6 +28,4 @@ TAO_ESF_Shutdown_Proxy<PROXY>::work (PROXY *proxy
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_SHUTDOWN_PROXY_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h
index 7263e4b2445..feffd2ccb3a 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Shutdown_Proxy.h
*
@@ -14,14 +13,12 @@
#ifndef TAO_ESF_SHUTDOWN_PROXY_H
#define TAO_ESF_SHUTDOWN_PROXY_H
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Worker.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// A worker to invoke the shutdown method of each proxy.
template<class PROXY>
class TAO_ESF_Shutdown_Proxy : public TAO_ESF_Worker<PROXY>
@@ -35,14 +32,12 @@ public:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ESF/ESF_Shutdown_Proxy.i"
+#include "ESF_Shutdown_Proxy.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Shutdown_Proxy.cpp"
+#include "ESF_Shutdown_Proxy.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.i b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.i
index 51955993b3d..5266f0aa225 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.i
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Shutdown_Proxy.i
@@ -1,12 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class PROXY> ACE_INLINE
TAO_ESF_Shutdown_Proxy<PROXY>::TAO_ESF_Shutdown_Proxy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.cpp b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.cpp
index ef8c4ad0f37..6ffea97b026 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.cpp
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.cpp
@@ -3,9 +3,9 @@
#ifndef TAO_ESF_WORKER_CPP
#define TAO_ESF_WORKER_CPP
-#include "orbsvcs/ESF/ESF_Worker.h"
+#include "ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ESF, ESF_Worker, "$Id$")
template<class Object>
TAO_ESF_Worker<Object>::~TAO_ESF_Worker (void)
@@ -17,6 +17,4 @@ void TAO_ESF_Worker<Object>::set_size (size_t)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ESF_WORKER_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h
index 94041cc6555..0acfb7b660d 100644
--- a/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h
+++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Worker.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ESF_Worker.h
*
@@ -20,10 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class Object;
namespace CORBA
@@ -54,10 +49,8 @@ public:
ACE_ENV_ARG_DECL) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/ESF/ESF_Worker.cpp"
+#include "ESF_Worker.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL.ll b/TAO/orbsvcs/orbsvcs/ETCL/ETCL.ll
index bfbe15ddd2a..06f67230fdc 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL.ll
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL.ll
@@ -1,7 +1,7 @@
%option noyywrap
%{
-// ETCL.ll,v 1.5 2005/11/16 07:53:24 ossama Exp
+// ETCL.ll,v 1.3 2002/01/14 19:52:28 parsons Exp
// ========================================================================
//
// = LIBRARY
@@ -21,8 +21,6 @@
#include "ETCL_Constraint.h"
#include "ETCL_y.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
static const char * extract_string(char*);
#define TAO_YY_LEX_DEBUG
@@ -157,5 +155,3 @@ yywrap (void)
{
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL \ No newline at end of file
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL.yy b/TAO/orbsvcs/orbsvcs/ETCL/ETCL.yy
index 14c9eaad182..ae9fd433bc7 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL.yy
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL.yy
@@ -18,8 +18,6 @@
#include "ETCL_Constraint.h"
#include "ETCL_Interpreter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
extern int yylex (void);
static void yyerror (const char *)
@@ -258,4 +256,3 @@ union_val: /* empty */
%%
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.cpp b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.cpp
index 56769b5c112..86c6fdd4fa2 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.cpp
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.cpp
@@ -1,9 +1,9 @@
// -*- C++ -*-
// $Id$
-#include "orbsvcs/ETCL/ETCL_Constraint.h"
-#include "orbsvcs/ETCL/ETCL_Constraint_Visitor.h"
-#include "orbsvcs/ETCL/ETCL_y.h"
+#include "ETCL_Constraint.h"
+#include "ETCL_Constraint_Visitor.h"
+#include "ETCL_y.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/AnyTypeCode/TypeCode.h"
@@ -13,15 +13,13 @@
#include "tao/CDR.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/ETCL/ETCL_Constraint.inl"
+#include "ETCL_Constraint.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (ETCL,
ETCL_Constraint,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ETCL_Constraint::TAO_ETCL_Constraint (void)
{
}
@@ -953,5 +951,3 @@ TAO_ETCL_Preference::accept (TAO_ETCL_Constraint_Visitor *visitor)
TAO_ETCL_Constraint_Visitor::~TAO_ETCL_Constraint_Visitor (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.h b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.h
index 01d786fc54f..3427dc9774d 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.h
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//
// ============================================================================
@@ -19,7 +18,7 @@
#ifndef TAO_ETCL_CONSTRAINT_H
#define TAO_ETCL_CONSTRAINT_H
-#include "orbsvcs/ETCL/etcl_export.h"
+#include "etcl_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,8 +28,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef unsigned short TAO_Literal_Type;
#define TAO_UNKNOWN 999
@@ -422,10 +419,8 @@ private:
TAO_ETCL_Constraint *subexpr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/ETCL/ETCL_Constraint.inl"
+#include "ETCL_Constraint.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_ETCL_CONSTRAINT_H */
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i
new file mode 100644
index 00000000000..93f2187496c
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint.i
@@ -0,0 +1,373 @@
+// $Id$
+
+ACE_INLINE
+TAO_ETCL_Boolean_Literal::TAO_ETCL_Boolean_Literal (int value)
+ : value_ (value)
+{
+}
+
+ACE_INLINE int
+TAO_ETCL_Boolean_Literal::value (void) const
+{
+ return this->value_;
+}
+
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Integer_Literal::TAO_ETCL_Integer_Literal (long value)
+ : value_ (value)
+{
+}
+
+ACE_INLINE long
+TAO_ETCL_Integer_Literal::value (void) const
+{
+ return this->value_;
+}
+
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Float_Literal::TAO_ETCL_Float_Literal (double value)
+ : value_ (value)
+{
+}
+
+ACE_INLINE double
+TAO_ETCL_Float_Literal::value (void) const
+{
+ return this->value_;
+}
+
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_String_Literal::TAO_ETCL_String_Literal (const char *value)
+ : string_ (value)
+{
+}
+
+ACE_INLINE const char *
+TAO_ETCL_String_Literal::value (void) const
+{
+ return this->string_.c_str ();
+}
+
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Identifier::TAO_ETCL_Identifier (const char *value)
+ : string_ (value)
+{
+}
+
+ACE_INLINE const char *
+TAO_ETCL_Identifier::value (void) const
+{
+ return this->string_.c_str ();
+}
+
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (int sign,
+ TAO_ETCL_Constraint *integer)
+ : sign_ (sign),
+ string_ (0)
+{
+ this->integer_ =
+ dynamic_cast<TAO_ETCL_Integer_Literal*> (integer);
+}
+
+ACE_INLINE
+TAO_ETCL_Union_Value::TAO_ETCL_Union_Value (TAO_ETCL_Constraint *string)
+ : sign_ (0),
+ integer_ (0)
+{
+ this->string_ =
+ dynamic_cast<TAO_ETCL_String_Literal*> (string);
+}
+
+ACE_INLINE int
+TAO_ETCL_Union_Value::sign (void) const
+{
+ return this->sign_;
+}
+
+ACE_INLINE TAO_ETCL_Integer_Literal *
+TAO_ETCL_Union_Value::integer (void) const
+{
+ return this->integer_;
+}
+
+ACE_INLINE TAO_ETCL_String_Literal *
+TAO_ETCL_Union_Value::string (void) const
+{
+ return this->string_;
+}
+
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Union_Pos::TAO_ETCL_Union_Pos (TAO_ETCL_Constraint *union_value,
+ TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+ this->union_value_ =
+ dynamic_cast<TAO_ETCL_Union_Value*> (union_value);
+}
+
+ACE_INLINE TAO_ETCL_Union_Value *
+TAO_ETCL_Union_Pos::union_value (void) const
+{
+ return this->union_value_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Union_Pos::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Component_Pos::TAO_ETCL_Component_Pos (TAO_ETCL_Constraint *integer,
+ TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+ this->integer_ =
+ dynamic_cast<TAO_ETCL_Integer_Literal*> (integer);
+}
+
+ACE_INLINE TAO_ETCL_Integer_Literal *
+TAO_ETCL_Component_Pos::integer (void) const
+{
+ return this->integer_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Component_Pos::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Component_Assoc::TAO_ETCL_Component_Assoc (TAO_ETCL_Constraint *identifier,
+ TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+ this->identifier_ =
+ dynamic_cast<TAO_ETCL_Identifier*> (identifier);
+}
+
+ACE_INLINE TAO_ETCL_Identifier *
+TAO_ETCL_Component_Assoc::identifier (void) const
+{
+ return this->identifier_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Component_Assoc::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Component_Array::TAO_ETCL_Component_Array (TAO_ETCL_Constraint *integer,
+ TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+ this->integer_ =
+ dynamic_cast<TAO_ETCL_Integer_Literal*> (integer);
+}
+
+ACE_INLINE TAO_ETCL_Integer_Literal *
+TAO_ETCL_Component_Array::integer (void) const
+{
+ return this->integer_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Component_Array::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Special::TAO_ETCL_Special (int type)
+ : type_ (type)
+{
+}
+
+ACE_INLINE int
+TAO_ETCL_Special::type (void) const
+{
+ return this->type_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Component::TAO_ETCL_Component (TAO_ETCL_Constraint *identifier,
+ TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+ this->identifier_ =
+ dynamic_cast<TAO_ETCL_Identifier*> (identifier);
+}
+
+ACE_INLINE TAO_ETCL_Identifier *
+TAO_ETCL_Component::identifier (void) const
+{
+ return this->identifier_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Component::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Dot::TAO_ETCL_Dot (TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Dot::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Eval::TAO_ETCL_Eval (TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Eval::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Default::TAO_ETCL_Default (TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Default::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Exist::TAO_ETCL_Exist (TAO_ETCL_Constraint *component)
+ : component_ (component)
+{
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Exist::component (void) const
+{
+ return this->component_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Unary_Expr::TAO_ETCL_Unary_Expr (int type,
+ TAO_ETCL_Constraint *subexpr)
+ : type_ (type),
+ subexpr_ (subexpr)
+{
+}
+
+ACE_INLINE int
+TAO_ETCL_Unary_Expr::type (void) const
+{
+ return this->type_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Unary_Expr::subexpr (void) const
+{
+ return this->subexpr_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Binary_Expr::TAO_ETCL_Binary_Expr (int type,
+ TAO_ETCL_Constraint *lhs,
+ TAO_ETCL_Constraint *rhs)
+ : type_ (type),
+ lhs_ (lhs),
+ rhs_ (rhs)
+{
+}
+
+ACE_INLINE int
+TAO_ETCL_Binary_Expr::type (void) const
+{
+ return this->type_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Binary_Expr::rhs (void) const
+{
+ return this->rhs_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Binary_Expr::lhs (void) const
+{
+ return this->lhs_;
+}
+
+// ****************************************************************
+
+ACE_INLINE
+TAO_ETCL_Preference::TAO_ETCL_Preference (int type,
+ TAO_ETCL_Constraint *subexpr)
+ : type_ (type),
+ subexpr_ (subexpr)
+{
+}
+
+ACE_INLINE int
+TAO_ETCL_Preference::type (void) const
+{
+ return this->type_;
+}
+
+ACE_INLINE TAO_ETCL_Constraint *
+TAO_ETCL_Preference::subexpr (void) const
+{
+ return this->subexpr_;
+}
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint_Visitor.h b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint_Visitor.h
index 0f23f7a02c0..3cf751e3229 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint_Visitor.h
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Constraint_Visitor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file ETCL_Constraint_Visitor.h
@@ -14,16 +14,12 @@
#ifndef TAO_ETCL_CONSTRAINT_VISITOR_H
#define TAO_ETCL_CONSTRAINT_VISITOR_H
-#include "orbsvcs/ETCL/etcl_export.h"
+#include "etcl_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ETCL_Literal_Constraint;
class TAO_ETCL_Identifier;
class TAO_ETCL_Union_Value;
@@ -65,6 +61,4 @@ public:
virtual int visit_preference (TAO_ETCL_Preference *) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ETCL_CONSTRAINT_VISITOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.cpp
index 2f083900155..5446ebe6eca 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.cpp
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.cpp
@@ -1,16 +1,13 @@
// -*- C++ -*-
// $Id$
-#include "orbsvcs/ETCL/ETCL_Interpreter.h"
-#include "orbsvcs/ETCL/ETCL_Constraint.h"
+#include "ETCL_Interpreter.h"
+#include "ETCL_Constraint.h"
#include "ace/Guard_T.h"
#include "ace/Thread_Mutex.h"
ACE_RCSID(ETCL, ETCL_Interpreter, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SYNCH_MUTEX TAO_ETCL_Interpreter::parserMutex__;
TAO_ETCL_Interpreter::TAO_ETCL_Interpreter (void)
@@ -108,5 +105,3 @@ TAO_Lex_String_Input::reset (char* input_string)
TAO_Lex_String_Input::end_ =
input_string + ACE_OS::strlen (TAO_Lex_String_Input::string_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h
index 81210143c38..964e32736e5 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_Interpreter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,7 +16,7 @@
#define TAO_ETCL_INTERPRETER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/ETCL/etcl_export.h"
+#include "etcl_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#include "tao/orbconf.h"
#include "ace/Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ETCL_Constraint;
/**
@@ -104,7 +102,5 @@ typedef union
extern YYSTYPE yylval;
extern YYSTYPE yyval;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ETCL_INTERPRETER_H */
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp
index 1d5fbb80ccb..e7fab71275c 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_l.cpp
@@ -20,7 +20,6 @@
#ifdef __cplusplus
-#include "tao/orbconf.h"
#include "ace/OS.h"
/* Use prototypes in function declarations. */
@@ -95,8 +94,6 @@
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
@@ -447,9 +444,6 @@ static char *yy_last_accepting_cpos;
char *yytext;
//#line 1 "ETCL/ETCL.ll"
#define INITIAL 0
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
//#line 4 "ETCL/ETCL.ll"
// $Id$
// ========================================================================
@@ -466,11 +460,9 @@ TAO_END_VERSIONED_NAMESPACE_DECL
//
// ========================================================================
-#include "orbsvcs/ETCL/ETCL_Interpreter.h"
-#include "orbsvcs/ETCL/ETCL_Constraint.h"
-#include "orbsvcs/ETCL/ETCL_y.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ETCL_Interpreter.h"
+#include "ETCL_Constraint.h"
+#include "ETCL_y.h"
static const char* extract_string(char*);
//static const char * extract_string(char*);
@@ -478,7 +470,7 @@ static const char* extract_string(char*);
#define TAO_YY_LEX_DEBUG
#ifdef TAO_CONSTRAINT_DEBUG
-#define TAO_YY_LEX_DEBUG ACE_OS::fprintf(stderr, "%s\n", yytext)
+#define TAO_YY_LEX_DEBUG TAO_OS::fprintf(stderr, "%s\n", yytext)
#endif /* TAO_CONSTRAINT_DEBUG */
//#define YY_DECL int TAO_ETCL_yylex (TAO_ETCL_YYSTYPE *lvalp, void* state)
@@ -535,8 +527,6 @@ static int yy_top_state YY_PROTO(( void ));
#define YY_NO_TOP_STATE 1
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
@@ -628,8 +618,6 @@ YY_MALLOC_DECL
#define YY_RULE_SETUP \
YY_USER_ACTION
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
YY_DECL
{
register yy_state_type yy_current_state;
@@ -1880,5 +1868,3 @@ yywrap (void)
{
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_y.cpp b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_y.cpp
index 1c07ea5d3a7..97d5b128d8d 100644
--- a/TAO/orbsvcs/orbsvcs/ETCL/ETCL_y.cpp
+++ b/TAO/orbsvcs/orbsvcs/ETCL/ETCL_y.cpp
@@ -66,11 +66,9 @@
//
// ========================================================================
-#include "orbsvcs/ETCL/ETCL_y.h"
-#include "orbsvcs/ETCL/ETCL_Constraint.h"
-#include "orbsvcs/ETCL/ETCL_Interpreter.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ETCL_y.h"
+#include "ETCL_Constraint.h"
+#include "ETCL_Interpreter.h"
extern int yylex (void);
extern void yyflush_current_buffer (void);
@@ -81,12 +79,8 @@ static void yyerror (const char *)
// Ignore error messages
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include <stdio.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#ifndef __cplusplus
#ifndef __STDC__
#define const
@@ -330,8 +324,6 @@ static const short yycheck[] = { 17,
It was written by Richard Stallman by simplifying the hairy parser
used when %semantic_parser is specified. */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifndef YYSTACK_USE_ALLOCA
#ifdef alloca
#define YYSTACK_USE_ALLOCA
@@ -432,8 +424,6 @@ while (0)
#endif /* not YYLSP_NEEDED */
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/* If nonreentrant, generate the variables here */
#ifndef YYPURE
@@ -1292,4 +1282,3 @@ yyerrhandle:
//#line 257 "ETCL/ETCL.yy"
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp
index 8813fee591c..412bff4ee3d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.cpp
@@ -1,12 +1,11 @@
// $Id$
-#include "orbsvcs/Event/ECG_Adapters.h"
+#include "ECG_Adapters.h"
ACE_RCSID (Event,
ECG_Adapters,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ECG_Handler_Shutdown::~TAO_ECG_Handler_Shutdown (void)
{
@@ -15,5 +14,3 @@ TAO_ECG_Handler_Shutdown::~TAO_ECG_Handler_Shutdown (void)
TAO_ECG_Dgram_Handler::~TAO_ECG_Dgram_Handler (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h
index 8c79e6415f6..85ef35fe098 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Adapters.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Adapters.h
*
@@ -17,7 +16,7 @@
#define TAO_ECG_ADAPTERS_H
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecUDPAdminC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -26,11 +25,7 @@
#include "ace/Refcounted_Auto_Ptr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_SOCK_Dgram;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_ECG_Handler_Shutdown
@@ -73,7 +68,6 @@ public:
typedef ACE_Refcounted_Auto_Ptr<TAO_ECG_Handler_Shutdown,
ACE_Null_Mutex> TAO_ECG_Refcounted_Handler;
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_ECG_ADAPTERS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.cpp
new file mode 100644
index 00000000000..86b0590e956
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.cpp
@@ -0,0 +1,4 @@
+// $Id$
+
+#include "ECG_Address_Server_Base.h"
+
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h
index 2490b33d051..847b38a7208 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Address_Server_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file ECG_Address_Server_Base.h
*
@@ -12,13 +12,11 @@
#define TAO_ECG_ADDRESS_SERVER_BASE_H
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecUDPAdminS.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils.h"
+#include "EC_Lifetime_Utils.h"
#include "ace/Auto_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ECG_Address_Server_Base
*
@@ -28,15 +26,13 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* Adds init () virtual method so that all AddrServer implementations can be
* initialized in the same fasion.
*/
-class TAO_RTEvent_Serv_Export TAO_ECG_Address_Server_Base
- : public virtual POA_RtecUDPAdmin::AddrServer
+class TAO_RTEvent_Serv_Export TAO_ECG_Address_Server_Base :
+ public virtual POA_RtecUDPAdmin::AddrServer
{
public:
virtual int init (const char *arg) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ECG_ADDRESS_SERVER_BASE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp
index faf377fd386..0116054cb7d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Event/ECG_CDR_Message_Receiver.h"
-#include "orbsvcs/Event/ECG_CDR_Message_Sender.h"
+#include "ECG_CDR_Message_Receiver.h"
+#include "ECG_CDR_Message_Sender.h"
#include "tao/Exception.h"
@@ -10,14 +10,13 @@
#include "ace/OS_NS_string.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_CDR_Message_Receiver.i"
+#include "ECG_CDR_Message_Receiver.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
ECG_CDR_Message_Receiver,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ECG_CDR_Processor::~TAO_ECG_CDR_Processor (void)
{
@@ -604,5 +603,3 @@ TAO_ECG_CDR_Message_Receiver::Mcast_Header::read (char *header,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h
index 8159a4e2f15..e63c40c571f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file ECG_CDR_Message_Receiver.h
*
@@ -13,7 +13,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.h"
+#include "ECG_UDP_Out_Endpoint.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "ace/INET_Addr.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ECG_CDR_Processor
*
@@ -307,10 +305,8 @@ private:
size_t min_purge_count_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_CDR_Message_Receiver.i"
+#include "ECG_CDR_Message_Receiver.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.i b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.i
index 078166a6088..95530584ccd 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Receiver.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_ECG_CDR_Message_Receiver::Requests::Requests (void)
: fragmented_requests_ (0)
@@ -48,4 +44,3 @@ TAO_ECG_CDR_Message_Receiver::init (TAO_ECG_Refcounted_Endpoint ignore_from
// }
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp
index be2af5fe269..98a17c5dc68 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Event/ECG_CDR_Message_Sender.h"
+#include "ECG_CDR_Message_Sender.h"
#include "tao/CDR.h"
#include "ace/SOCK_Dgram.h"
#include "ace/INET_Addr.h"
#include "ace/ACE.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_CDR_Message_Sender.i"
+#include "ECG_CDR_Message_Sender.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, ECG_CDR_Message_Sender, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_ECG_CDR_Message_Sender::init (
TAO_ECG_Refcounted_Endpoint endpoint_rptr
@@ -81,7 +79,7 @@ TAO_ECG_CDR_Message_Sender::send_message (const TAO_OutputCDR &cdr,
iov[iovcnt].iov_base = rd_ptr;
iov[iovcnt].iov_len = l;
fragment_size += l;
- ++iovcnt;
+ iovcnt++;
while (fragment_size > max_fragment_payload)
{
// This fragment is full, we have to send it...
@@ -102,7 +100,7 @@ TAO_ECG_CDR_Message_Sender::send_message (const TAO_OutputCDR &cdr,
iovcnt
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- ++fragment_id;
+ fragment_id++;
fragment_offset += max_fragment_payload;
// Reset, but don't forget that the last Message_Block
@@ -130,7 +128,7 @@ TAO_ECG_CDR_Message_Sender::send_message (const TAO_OutputCDR &cdr,
iovcnt
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- ++fragment_id;
+ fragment_id++;
fragment_offset += max_fragment_payload;
iovcnt = 1;
@@ -151,7 +149,7 @@ TAO_ECG_CDR_Message_Sender::send_message (const TAO_OutputCDR &cdr,
iovcnt
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- ++fragment_id;
+ fragment_id++;
fragment_offset += fragment_size;
iovcnt = 1;
@@ -175,7 +173,7 @@ TAO_ECG_CDR_Message_Sender::send_message (const TAO_OutputCDR &cdr,
iovcnt
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- ++fragment_id;
+ fragment_id++;
fragment_offset += fragment_size;
// reset, not needed here...
@@ -303,11 +301,11 @@ TAO_ECG_CDR_Message_Sender::compute_fragment_count (const ACE_Message_Block* beg
CORBA::ULong l = b->length ();
total_length += l;
fragment_size += l;
- ++iovcnt;
+ iovcnt++;
while (fragment_size > max_fragment_payload)
{
// Ran out of space, must create a fragment...
- ++fragment_count;
+ fragment_count++;
// The next iovector will contain what remains of this
// buffer, but also consider
@@ -317,14 +315,14 @@ TAO_ECG_CDR_Message_Sender::compute_fragment_count (const ACE_Message_Block* beg
}
if (fragment_size == max_fragment_payload)
{
- ++fragment_count;
+ fragment_count++;
iovcnt = 1;
fragment_size = 0;
}
if (iovcnt >= iov_size)
{
// Ran out of space in the iovector....
- ++fragment_count;
+ fragment_count++;
iovcnt = 1;
fragment_size = 0;
}
@@ -332,9 +330,7 @@ TAO_ECG_CDR_Message_Sender::compute_fragment_count (const ACE_Message_Block* beg
if (iovcnt != 1)
{
// Send the remaining data in another fragment
- ++fragment_count;
+ fragment_count++;
}
return fragment_count;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h
index 0f7d8b723ba..9b4d1e55c42 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_CDR_Message_Sender.h
*
@@ -14,21 +13,19 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.h"
+#include "ECG_UDP_Out_Endpoint.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "ace/INET_Addr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ECG_CDR_Message_Sender
*
@@ -179,10 +176,8 @@ private:
CORBA::Boolean checksum_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_CDR_Message_Sender.i"
+#include "ECG_CDR_Message_Sender.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.i b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.i
index aa1242d07fe..59eeae30034 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_CDR_Message_Sender.i
@@ -1,11 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_ECG_CDR_Message_Sender::TAO_ECG_CDR_Message_Sender (CORBA::Boolean crc)
: endpoint_rptr_ ()
@@ -52,5 +48,3 @@ TAO_ECG_CDR_Message_Sender::mtu (CORBA::ULong new_mtu)
this->mtu_ = new_mtu;
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp
index 3091fb79acf..446b8a5dc40 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Event/ECG_Complex_Address_Server.h"
+#include "ECG_Complex_Address_Server.h"
#include "ace/SString.h"
#include "ace/streams.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Complex_Address_Server.i"
+#include "ECG_Complex_Address_Server.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_Complex_Address_Server::TAO_ECG_Complex_Address_Server (
int is_source_mapping)
: is_source_mapping_ (is_source_mapping)
@@ -166,5 +164,3 @@ TAO_ECG_Complex_Address_Server::dump_content (void)
this->default_addr_.get_port_number ()));
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h
index bbe55390465..f74b4a8c969 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.h
@@ -14,16 +14,14 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecUDPAdminS.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/INET_Addr.h"
#include "ace/Null_Mutex.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Lifetime_Utils_T.h"
/**
* @class TAO_ECG_Complex_Address_Server
@@ -107,10 +105,8 @@ private:
ACE_INET_Addr default_addr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Complex_Address_Server.i"
+#include "ECG_Complex_Address_Server.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.i b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.i
index b47e2db3e68..a04e3966aa2 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Complex_Address_Server.i
@@ -1,8 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE TAO_EC_Servant_Var<TAO_ECG_Complex_Address_Server>
TAO_ECG_Complex_Address_Server::create (int is_source_mapping)
@@ -13,5 +10,3 @@ TAO_ECG_Complex_Address_Server::create (int is_source_mapping)
s);
return s;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp
index b5b65cc294b..c08698cff1e 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/ECG_ConsumerEC_Control.h"
+#include "ECG_ConsumerEC_Control.h"
ACE_RCSID(Event, ECG_ConsumerEventChannelControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_ConsumerEC_Control::TAO_ECG_ConsumerEC_Control (void)
{
}
@@ -39,4 +37,3 @@ TAO_ECG_ConsumerEC_Control::system_exception (TAO_EC_Gateway_IIOP *,
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h
index a8141829787..ccb9430a14a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_ConsumerEC_Control.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_ConsumerEC_Control.h
*
@@ -21,9 +20,7 @@
#include "tao/Basic_Types.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
class TAO_EC_Gateway_IIOP;
class TAO_EC_ProxyPushSupplier;
@@ -76,8 +73,6 @@ public:
ACE_ENV_ARG_DECL_NOT_USED);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ECG_ConsumerEC_Control_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Defaults.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Defaults.h
index 77dd5a28dae..a3b6d0c7358 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Defaults.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Defaults.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Defaults.h
*
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp
index 359db71579f..557ef8d5771 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.cpp
@@ -10,24 +10,22 @@
#include "ace/os_include/os_fcntl.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Mcast_EH.i"
+#include "ECG_Mcast_EH.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, ECG_Mcast_EH, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_Mcast_EH::TAO_ECG_Mcast_EH (TAO_ECG_Dgram_Handler *recv,
const ACE_TCHAR *net_if,
CORBA::ULong sz)
- : net_if_ (net_if ? ACE_OS::strdup (net_if) : 0)
- , subscriptions_ ()
- , receiver_ (recv)
- , recvbuf_size_ (sz)
- , observer_ ()
- , auto_observer_disconnect_ ()
+ : net_if_ (net_if?ACE_OS::strdup (net_if):0)
+ , subscriptions_ ()
+ , receiver_ (recv)
+ , recvbuf_size_ (sz)
+ , observer_ ()
+ , auto_observer_disconnect_ ()
{
- ACE_ASSERT (this->receiver_);
+ ACE_ASSERT (this->receiver_);
}
TAO_ECG_Mcast_EH::~TAO_ECG_Mcast_EH (void)
@@ -287,5 +285,3 @@ TAO_ECG_Mcast_EH::Observer::shutdown (void)
this->eh_ = 0;
this->deactivator_.deactivate ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h
index 6808a8bbd0d..19bebc66dc6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Mcast_EH.h
*
@@ -29,12 +28,10 @@
#include "orbsvcs/RtecEventChannelAdminS.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-#include "orbsvcs/Event/ECG_Adapters.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
+#include "ECG_Adapters.h"
+#include "EC_Lifetime_Utils.h"
+#include "EC_Lifetime_Utils_T.h"
/**
* @class TAO_ECG_Mcast_EH
@@ -283,10 +280,8 @@ private:
TAO_EC_Auto_Command<Observer_Disconnect_Command> auto_observer_disconnect_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Mcast_EH.i"
+#include "ECG_Mcast_EH.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.i b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.i
index 587c2721944..611a8486570 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_EH.i
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_ECG_Mcast_EH::
Observer_Disconnect_Command::Observer_Disconnect_Command (void)
@@ -59,5 +56,3 @@ Observer_Disconnect_Command::execute (ACE_ENV_SINGLE_ARG_DECL)
}
//***************************************************************************
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp
index 723466ea888..b57326600f7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.cpp
@@ -1,13 +1,13 @@
// $Id$
-#include "orbsvcs/Event/ECG_Mcast_Gateway.h"
+#include "ECG_Mcast_Gateway.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
-#include "orbsvcs/Event/ECG_Simple_Address_Server.h"
-#include "orbsvcs/Event/ECG_Complex_Address_Server.h"
-#include "orbsvcs/Event/ECG_Simple_Mcast_EH.h"
-#include "orbsvcs/Event/ECG_Mcast_EH.h"
-#include "orbsvcs/Event/ECG_UDP_EH.h"
+#include "EC_Lifetime_Utils_T.h"
+#include "ECG_Simple_Address_Server.h"
+#include "ECG_Complex_Address_Server.h"
+#include "ECG_Simple_Mcast_EH.h"
+#include "ECG_Mcast_EH.h"
+#include "ECG_UDP_EH.h"
#include "orbsvcs/Event_Utilities.h"
@@ -17,14 +17,11 @@
#include "ace/OS_NS_strings.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Mcast_Gateway.i"
+#include "ECG_Mcast_Gateway.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, ECG_Mcast_Gateway, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef TAO_EC_Shutdown_Command<TAO_EC_Servant_Var<TAO_ECG_UDP_Sender> >
UDP_Sender_Shutdown;
@@ -115,7 +112,7 @@ TAO_ECG_Mcast_Gateway::init (int argc, ACE_TCHAR* argv[])
if (arg_shifter.is_parameter_next ())
{
- this->address_server_arg_.set (arg_shifter.get_current ());
+ this->address_server_arg_.set (ACE_TEXT_TO_CHAR_IN (arg_shifter.get_current ()));
arg_shifter.consume_arg ();
}
}
@@ -166,7 +163,7 @@ TAO_ECG_Mcast_Gateway::init (int argc, ACE_TCHAR* argv[])
if (arg_shifter.is_parameter_next ())
{
- this->nic_.set (arg_shifter.get_current ());
+ this->nic_.set (ACE_TEXT_TO_CHAR_IN (arg_shifter.get_current ()));
arg_shifter.consume_arg ();
}
}
@@ -315,7 +312,7 @@ TAO_ECG_Mcast_Gateway::init_endpoint (void)
if (this->nic_.length () != 0)
{
- dgram.set_nic (this->nic_.c_str ());
+ dgram.set_nic (ACE_TEXT_TO_TCHAR_IN(this->nic_.c_str ()));
}
if (this->ttl_value_ > 0)
@@ -436,7 +433,7 @@ TAO_ECG_Mcast_Gateway::init_handler (TAO_ECG_Dgram_Handler *receiver,
handler.reset (h);
h->reactor (reactor);
- if (h->open (address_server_arg, nic) != 0)
+ if (h->open (address_server_arg, ACE_TEXT_TO_TCHAR_IN(nic)) != 0)
return TAO_ECG_Refcounted_Handler ();
}
@@ -444,7 +441,7 @@ TAO_ECG_Mcast_Gateway::init_handler (TAO_ECG_Dgram_Handler *receiver,
{
TAO_ECG_Mcast_EH * h = 0;
ACE_NEW_RETURN (h,
- TAO_ECG_Mcast_EH (receiver, nic),
+ TAO_ECG_Mcast_EH (receiver, ACE_TEXT_TO_TCHAR_IN(nic)),
handler);
handler.reset (h);
@@ -692,8 +689,6 @@ TAO_ECG_Mcast_Gateway::run (CORBA::ORB_ptr orb,
sender_shutdown.disallow_command ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_ECG_Mcast_Gateway,
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h
index 827d6ae20ac..cdfdf2b060f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Mcast_Gateway.h
*
@@ -12,26 +11,22 @@
#define TAO_ECG_MCAST_GATEWAY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/ECG_UDP_Sender.h"
+#include "ECG_UDP_Sender.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/ECG_Defaults.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-#include "orbsvcs/Event/ECG_UDP_Receiver.h"
-#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.h"
+#include "ECG_Defaults.h"
+#include /**/ "event_serv_export.h"
+#include "ECG_UDP_Receiver.h"
+#include "ECG_UDP_Out_Endpoint.h"
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
#include "ace/SString.h"
#include "ace/os_include/os_stdint.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Event_Handler;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_ECG_Mcast_Gateway
@@ -277,10 +272,8 @@ private:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Mcast_Gateway.i"
+#include "ECG_Mcast_Gateway.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE (TAO_ECG_Mcast_Gateway)
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i
index 8e126abb9b6..f4c39d5f7b2 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Mcast_Gateway.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_ECG_Mcast_Gateway::TAO_ECG_Mcast_Gateway (void)
: service_type_ (TAO_ECG_DEFAULT_SERVICE)
@@ -30,5 +26,3 @@ TAO_ECG_Mcast_Gateway::Attributes::Attributes (void)
, non_blocking (TAO_ECG_DEFAULT_NON_BLOCKING)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp
index 0906d59820f..40d40bcbf51 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Event/EC_Gateway_IIOP.h"
-#include "orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h"
+#include "EC_Gateway_IIOP.h"
+#include "ECG_Reactive_ConsumerEC_Control.h"
#include "tao/Messaging/Messaging.h"
#include "tao/ORB_Core.h"
@@ -9,8 +9,6 @@
ACE_RCSID(Event, ECG_Reactive_ConsumerEventChannelControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_Reactive_ConsumerEC_Control::
TAO_ECG_Reactive_ConsumerEC_Control (const ACE_Time_Value &rate,
const ACE_Time_Value &timeout,
@@ -250,4 +248,3 @@ TAO_ECG_Reactive_ConsumerEC_Control_Adapter::handle_timeout (
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h
index e7ccad73c2a..6c745ac5655 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Reactive_ConsumerEC_Control.h
*
@@ -14,7 +13,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/ECG_ConsumerEC_Control.h"
+#include "ECG_ConsumerEC_Control.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,9 +22,8 @@
#include "tao/ORB.h"
#include "tao/PolicyC.h"
-#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/Event_Handler.h"
class TAO_ECG_Reactive_ConsumerEC_Control;
class TAO_EC_Gateway_IIOP;
@@ -126,8 +124,6 @@ private:
#endif /* TAO_HAS_CORBA_MESSAGING */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ECG_REACTIVE_CONSUMEREC_CONTROL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp
index 2e14b4da681..7b547c02424 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Event/EC_Gateway_IIOP.h"
-#include "orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h"
+#include "EC_Gateway_IIOP.h"
+#include "ECG_Reconnect_ConsumerEC_Control.h"
#include "tao/Messaging/Messaging.h"
#include "tao/ORB_Core.h"
#include "ace/Reactor.h"
ACE_RCSID(Event, ECG_Reconnect_ConsumerEventChannelControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_Reconnect_ConsumerEC_Control::
TAO_ECG_Reconnect_ConsumerEC_Control (const ACE_Time_Value &rate,
const ACE_Time_Value &timeout,
@@ -315,5 +313,3 @@ TAO_ECG_Reconnect_ConsumerEC_Control_Adapter::handle_timeout (
this->adaptee_->handle_timeout (tv, arg);
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h
index b1f4a6c2987..1b9733b2989 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Reconnect_ConsumerEC_Control.h
*
@@ -14,7 +13,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/ECG_ConsumerEC_Control.h"
+#include "ECG_ConsumerEC_Control.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +24,6 @@
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ECG_Reconnect_ConsumerEC_Control;
class TAO_EC_Gateway_IIOP;
@@ -140,8 +137,6 @@ private:
#endif /* TAO_HAS_CORBA_MESSAGING */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ECG_RECONNECT_CONSUMEREC_CONTROL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp
index 064d5c35183..42533aa07b0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/Event/ECG_Simple_Address_Server.h"
+#include "ECG_Simple_Address_Server.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Simple_Address_Server.i"
+#include "ECG_Simple_Address_Server.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_Simple_Address_Server::TAO_ECG_Simple_Address_Server (void)
{
}
@@ -23,16 +21,13 @@ TAO_ECG_Simple_Address_Server::init (const char *mcast_addr)
}
void
-TAO_ECG_Simple_Address_Server::get_addr (
- const RtecEventComm::EventHeader& /*header*/,
- RtecUDPAdmin::UDP_Addr_out addr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
+TAO_ECG_Simple_Address_Server::get_addr (const RtecEventComm::EventHeader& /*header*/,
+ RtecUDPAdmin::UDP_Addr_out addr
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
{
// unsigned long
addr.ipaddr = this->addr_.get_ip_address ();
// unsigned short
addr.port = this->addr_.get_port_number ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h
index 4c0cb219ccc..fa9c83fcbf7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Simple_Address_Server.h
*
@@ -14,11 +13,9 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecUDPAdminS.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
+#include "EC_Lifetime_Utils_T.h"
#include "ace/INET_Addr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ECG_Simple_Address_Server
*
@@ -59,10 +56,8 @@ private:
ACE_INET_Addr addr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_Simple_Address_Server.i"
+#include "ECG_Simple_Address_Server.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.i b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.i
index 0aa18cada97..6ff6f63b977 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Address_Server.i
@@ -1,8 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
ACE_INLINE TAO_EC_Servant_Var<TAO_ECG_Simple_Address_Server>
TAO_ECG_Simple_Address_Server::create (void)
@@ -13,5 +11,3 @@ TAO_ECG_Simple_Address_Server::create (void)
s);
return s;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp
index fa40043a50f..ae4c0aa8e57 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Event/ECG_Simple_Mcast_EH.h"
+#include "ECG_Simple_Mcast_EH.h"
#include "ace/Log_Msg.h"
#include "ace/Reactor.h"
#include "ace/os_include/os_fcntl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_Simple_Mcast_EH::TAO_ECG_Simple_Mcast_EH (TAO_ECG_Dgram_Handler *recv)
: receiver_ (recv)
{
@@ -94,5 +92,3 @@ TAO_ECG_Simple_Mcast_EH::handle_input (ACE_HANDLE /* fd */)
{
return this->receiver_->handle_input (this->dgram_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h
index d15ff0c82c6..e1b4bdfd13c 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_Simple_Mcast_EH.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_Simple_Mcast_EH.h
*
@@ -18,13 +17,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-#include "orbsvcs/Event/ECG_Adapters.h"
+#include /**/ "event_serv_export.h"
+#include "ECG_Adapters.h"
#include "ace/SOCK_Dgram_Mcast.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ECG_Simple_Mcast_EH
*
@@ -90,7 +86,5 @@ private:
TAO_ECG_Dgram_Handler* receiver_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ECG_SIMPLE_Mcast_EH_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp
index 257a8ff2c3b..d57d733eefc 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.cpp
@@ -1,17 +1,15 @@
// $Id$
-#include "orbsvcs/Event/ECG_UDP_EH.h"
+#include "ECG_UDP_EH.h"
#include "ace/Reactor.h"
#include "ace/INET_Addr.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_EH.i"
+#include "ECG_UDP_EH.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, ECG_UDP_EH, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_UDP_EH::TAO_ECG_UDP_EH (TAO_ECG_Dgram_Handler *recv)
: receiver_ (recv)
{
@@ -84,6 +82,4 @@ TAO_ECG_UDP_EH::handle_input (ACE_HANDLE)
return this->receiver_->handle_input (this->dgram_);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h
index b87d4d9c745..c5fbe539767 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_UDP_EH.h
*
@@ -21,14 +20,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-#include "orbsvcs/Event/ECG_Adapters.h"
+#include /**/ "event_serv_export.h"
+#include "ECG_Adapters.h"
#include "ace/SOCK_Dgram.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ECG_UDP_Receiver;
+
/**
* @class TAO_ECG_UDP_EH
*
@@ -100,10 +98,8 @@ private:
TAO_ECG_Dgram_Handler* receiver_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_EH.i"
+#include "ECG_UDP_EH.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.i b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.i
index d84f70937b8..08757211897 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_EH.i
@@ -1,13 +1,9 @@
-// -*- C++ -*-
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+//
ACE_INLINE ACE_SOCK_Dgram&
TAO_ECG_UDP_EH::dgram (void)
{
return this->dgram_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp
index 5d5366ab294..9b3cd513e9d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.cpp
@@ -1,22 +1,21 @@
// $Id$
-#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.h"
+#include "ECG_UDP_Out_Endpoint.h"
#include "ace/INET_Addr.h"
#include "ace/Sock_Connect.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.i"
+#include "ECG_UDP_Out_Endpoint.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, ECG_UDP_Out_Endpoint, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_UDP_Out_Endpoint::~TAO_ECG_UDP_Out_Endpoint (void)
{
this->dgram_.close ();
- delete [] this->ifs_;
+ delete[] this->ifs_;
+ this->ifs_ = 0;
}
CORBA::Boolean
@@ -52,6 +51,7 @@ TAO_ECG_UDP_Out_Endpoint::is_loopback (const ACE_INET_Addr& from)
return 0;
}
+
TAO_ECG_UDP_Out_Endpoint&
TAO_ECG_UDP_Out_Endpoint::operator= (const TAO_ECG_UDP_Out_Endpoint& rhs)
{
@@ -79,5 +79,3 @@ TAO_ECG_UDP_Out_Endpoint::operator= (const TAO_ECG_UDP_Out_Endpoint& rhs)
return *this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h
index a967401e6e6..1dd40b093d9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_UDP_Out_Endpoint.h
*
@@ -14,7 +13,7 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,11 +26,7 @@
#include "ace/SOCK_Dgram.h"
#include "ace/Atomic_Op.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_INET_Addr;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_ECG_UDP_Out_Endpoint
@@ -97,10 +92,8 @@ private:
*/
typedef ACE_Refcounted_Auto_Ptr<TAO_ECG_UDP_Out_Endpoint,ACE_Null_Mutex> TAO_ECG_Refcounted_Endpoint;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.i"
+#include "ECG_UDP_Out_Endpoint.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.i b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.i
index 9f8fd0df5f3..7b625aa93cb 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Out_Endpoint.i
@@ -1,8 +1,6 @@
-// -*- C++ -*-
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+//
ACE_INLINE
TAO_ECG_UDP_Out_Endpoint::TAO_ECG_UDP_Out_Endpoint (void)
@@ -34,4 +32,3 @@ TAO_ECG_UDP_Out_Endpoint::next_request_id (void)
return this->request_id_generator_++;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h
new file mode 100644
index 00000000000..6cbbad89ff0
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Protocol.h
@@ -0,0 +1,71 @@
+/* -*- C++ -*- */
+/**
+ * @file ECG_UDP_Protocol.h
+ *
+ * @brief Document the protocol to federate multiple Real-time Event
+ * Channels via UDP.
+ *
+ * $Id$
+ *
+ * @author Carlos O'Ryan <coryan@uci.edu>
+ *
+ * http://doc.ece.uci.edu/~coryan/EC/index.html
+ *
+ */
+#ifndef TAO_ECG_UDP_PROTOCOL_H
+#define TAO_ECG_UDP_PROTOCOL_H
+#include /**/ "ace/pre.h"
+
+#include "ace/config-all.h"
+
+/**
+ * @class TAO_ECG_UDP_Protocol
+ *
+ * @brief Define the protocol parameters to federate TAO's Real-time
+ * Event Service via UDP.
+ *
+ * <H2>MESSAGE FORMAT</H2>
+ * The messages header are encapsulated using CDR, with the
+ * following format:
+ *
+ * <CODE>
+ * struct Header {
+ * octet byte_order_flags;<BR>
+ * // bit 0 represents the byte order as in GIOP 1.1<BR>
+ * // bit 1 is set if this is the last fragment<BR>
+ * unsigned long request_id;<BR>
+ * // The request ID, protocols must not send two requests with<BR>
+ * // the same ID, protocols can be distinguished using recvfrom..<BR>
+ * unsigned long request_size;<BR>
+ * // The size of this request, this can be used to pre-allocate<BR>
+ * // the request buffer.<BR>
+ * unsgined long fragment_size;<BR>
+ * // The size of this fragment, excluding the header...<BR>
+ * unsigned long fragment_offset;<BR>
+ * // Where does this fragment fit in the complete message...<BR>
+ * unsigned long fragment_id;<BR>
+ * // The ID of this fragment...<BR>
+ * unsigned long fragment_count;<BR>
+ * // The total number of fragments to expect in this request<BR>
+ *<BR>
+ * // @todo This could be eliminated if efficient reassembly<BR>
+ * // could be implemented without it.<BR>
+ * octet padding[4];<BR>
+ *<BR>
+ * // Ensures the header ends at an 8-byte boundary.<BR>
+ * }; // size (in CDR stream) = 32<BR>
+ *
+ */
+class TAO_RTEvent_Serv_Export TAO_ECG_UDP_Protocol
+{
+public:
+ enum {
+ ECG_HEADER_SIZE = 32,
+ ECG_MIN_MTU = 32 + 8,
+ ECG_MAX_MTU = 65536, // Really optimistic...
+ ECG_DEFAULT_MTU = 1024
+ };
+};
+
+#include /**/ "ace/post.h"
+#endif /* TAO_ECG_UDP_PROTOCOL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp
index 1a492f72d66..5a26c45edef 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.cpp
@@ -5,7 +5,7 @@
#include "ace/SString.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_Receiver.i"
+#include "ECG_UDP_Receiver.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
@@ -15,8 +15,6 @@ ACE_RCSID (Event,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_UDP_Receiver::~TAO_ECG_UDP_Receiver (void)
{
this->consumer_proxy_ =
@@ -246,5 +244,3 @@ TAO_ECG_UDP_Receiver::handle_input (ACE_SOCK_Dgram& dgram)
ACE_ENDTRY;
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h
index 3b5a4f686dc..e5de7f78b19 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_UDP_Receiver.h
*
@@ -45,20 +44,15 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecEventChannelAdminS.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-#include "orbsvcs/Event/ECG_Adapters.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
-#include "orbsvcs/Event/ECG_CDR_Message_Receiver.h"
+#include /**/ "event_serv_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ECG_Adapters.h"
+#include "EC_Lifetime_Utils.h"
+#include "EC_Lifetime_Utils_T.h"
+#include "ECG_CDR_Message_Receiver.h"
class TAO_ECG_UDP_Out_Endpoint;
+class ACE_Reactor;
/**
* @class TAO_ECG_UDP_Receiver_Disconnect_Command
@@ -229,10 +223,9 @@ private:
ECG_Receiver_Auto_Proxy_Disconnect auto_proxy_disconnect_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_Receiver.i"
+#include "ECG_UDP_Receiver.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.i b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.i
index 47eb3d83958..39ff8265264 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.i
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Receiver.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_ECG_UDP_Receiver_Disconnect_Command::
TAO_ECG_UDP_Receiver_Disconnect_Command (void)
@@ -102,5 +98,3 @@ TAO_ECG_UDP_Receiver::get_addr (const RtecEventComm::EventHeader& header,
this->addr_server_->get_addr (header, addr
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp
index 2cfc4b5f35f..ed7b42c08ce 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.cpp
@@ -14,7 +14,7 @@
#include "tao/CDR.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_Sender.inl"
+#include "ECG_UDP_Sender.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
@@ -23,8 +23,6 @@ ACE_RCSID (Event,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ECG_UDP_Sender::~TAO_ECG_UDP_Sender (void)
{
}
@@ -232,5 +230,3 @@ TAO_ECG_UDP_Sender::push (const RtecEventComm::EventSet &events
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h
index 6210db74d1d..0f631502117 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ECG_UDP_Sender.h
*
@@ -45,19 +44,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils.h"
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
-#include "orbsvcs/Event/ECG_CDR_Message_Sender.h"
+#include "EC_Lifetime_Utils.h"
+#include "EC_Lifetime_Utils_T.h"
+#include "ECG_CDR_Message_Sender.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_SOCK_Dgram;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ECG_UDP_Out_Endpoint;
/**
@@ -220,10 +214,8 @@ private:
ECG_Sender_Auto_Proxy_Disconnect auto_proxy_disconnect_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/Event/ECG_UDP_Sender.inl"
+#include "ECG_UDP_Sender.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl
index c58a7a81ca8..bc7e81f477a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl
+++ b/TAO/orbsvcs/orbsvcs/Event/ECG_UDP_Sender.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_EC_Servant_Var<TAO_ECG_UDP_Sender>
TAO_ECG_UDP_Sender::create (CORBA::Boolean crc)
{
@@ -92,5 +89,3 @@ TAO_ECG_UDP_Sender_Disconnect_Command::execute (ACE_ENV_SINGLE_ARG_DECL)
release_proxy->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp
index 715979d31a9..ff3a295b1cc 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.cpp
@@ -1,13 +1,12 @@
// $Id$
-#include "orbsvcs/Event/EC_And_Filter.h"
+#include "EC_And_Filter.h"
ACE_RCSID(Event, EC_And_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_EC_And_Filter::TAO_EC_And_Filter (TAO_EC_Filter* children[],
- size_t n)
+TAO_EC_And_Filter::
+ TAO_EC_And_Filter (TAO_EC_Filter* children[],
+ size_t n)
: children_ (children),
n_ (n)
{
@@ -166,5 +165,3 @@ TAO_EC_And_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h
index 67c9614af70..96d3d536d54 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_And_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_And_Filter.h
*
@@ -17,14 +16,12 @@
#define TAO_EC_AND_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_And_Filter
*
@@ -72,8 +69,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_And_Filter (const TAO_EC_And_Filter&);
- TAO_EC_And_Filter& operator= (const TAO_EC_And_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_And_Filter
+ (const TAO_EC_And_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_And_Filter& operator=
+ (const TAO_EC_And_Filter&))
private:
/// The children
@@ -83,7 +82,5 @@ private:
size_t n_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_AND_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp
index e9bc5dcb730..78e8387fb41 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.cpp
@@ -1,19 +1,19 @@
// $Id$
-#include "orbsvcs/Event/EC_Basic_Factory.h"
-#include "orbsvcs/Event/EC_Reactive_Dispatching.h"
-#include "orbsvcs/Event/EC_Basic_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Trivial_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
-#include "orbsvcs/Event/EC_Default_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Default_ProxySupplier.h"
-#include "orbsvcs/Event/EC_ObserverStrategy.h"
-#include "orbsvcs/Event/EC_Null_Scheduling.h"
-#include "orbsvcs/Event/EC_Reactive_Timeout_Generator.h"
-#include "orbsvcs/Event/EC_Reactive_ConsumerControl.h"
-#include "orbsvcs/Event/EC_Reactive_SupplierControl.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h" // @@ MSVC 6 bug
+#include "EC_Basic_Factory.h"
+#include "EC_Reactive_Dispatching.h"
+#include "EC_Basic_Filter_Builder.h"
+#include "EC_Trivial_Supplier_Filter.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_SupplierAdmin.h"
+#include "EC_Default_ProxyConsumer.h"
+#include "EC_Default_ProxySupplier.h"
+#include "EC_ObserverStrategy.h"
+#include "EC_Null_Scheduling.h"
+#include "EC_Reactive_Timeout_Generator.h"
+#include "EC_Reactive_ConsumerControl.h"
+#include "EC_Reactive_SupplierControl.h"
+#include "EC_Event_Channel_Base.h" // @@ MSVC 6 bug
#include "orbsvcs/ESF/ESF_Proxy_List.h"
#include "orbsvcs/ESF/ESF_Delayed_Changes.h"
@@ -24,8 +24,6 @@ ACE_RCSID (Event,
EC_Basic_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Basic_Factory::TAO_EC_Basic_Factory (void)
{
}
@@ -259,4 +257,3 @@ TAO_EC_Basic_Factory::destroy_supplier_control (TAO_EC_SupplierControl* x)
delete x;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h
index aa942b26492..9a886ff0c04 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Basic_Factory.h
*
@@ -18,14 +17,12 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Factory.h"
+#include "EC_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Basic_Factory
*
@@ -113,8 +110,6 @@ public:
destroy_supplier_control (TAO_EC_SupplierControl*);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_BASIC_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp
index e8149330316..b1b7b1ca222 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.cpp
@@ -1,25 +1,22 @@
// $Id$
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Event/EC_Basic_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Type_Filter.h"
-#include "orbsvcs/Event/EC_Conjunction_Filter.h"
-#include "orbsvcs/Event/EC_Disjunction_Filter.h"
-#include "orbsvcs/Event/EC_And_Filter.h"
-#include "orbsvcs/Event/EC_Negation_Filter.h"
-#include "orbsvcs/Event/EC_Bitmask_Filter.h"
-#include "orbsvcs/Event/EC_Masked_Type_Filter.h"
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
+#include "EC_Basic_Filter_Builder.h"
+#include "EC_Type_Filter.h"
+#include "EC_Conjunction_Filter.h"
+#include "EC_Disjunction_Filter.h"
+#include "EC_And_Filter.h"
+#include "EC_Negation_Filter.h"
+#include "EC_Bitmask_Filter.h"
+#include "EC_Masked_Type_Filter.h"
+#include "EC_Timeout_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Basic_Filter_Builder.i"
+#include "EC_Basic_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Basic_Filter_Builder, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Basic_Filter_Builder::~TAO_EC_Basic_Filter_Builder (void)
{
}
@@ -199,5 +196,3 @@ TAO_EC_Basic_Filter_Builder::
}
return count;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h
index f6627fc35c5..98288fd5a2f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Basic_Filter_Builder.h
*
@@ -18,16 +17,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
+#include "EC_Filter_Builder.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Filter;
class TAO_EC_Event_Channel_Base;
@@ -70,10 +67,8 @@ private:
TAO_EC_Event_Channel_Base* event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Basic_Filter_Builder.i"
+#include "EC_Basic_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.i b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.i
index ebf53c20045..c4cffeb9f08 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Basic_Filter_Builder.i
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Basic_Filter_Builder::
TAO_EC_Basic_Filter_Builder (TAO_EC_Event_Channel_Base *ec)
: event_channel_ (ec)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp
index 7701ba4d1d1..30605712f32 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.cpp
@@ -1,14 +1,13 @@
// $Id$
-#include "orbsvcs/Event/EC_Bitmask_Filter.h"
+#include "EC_Bitmask_Filter.h"
ACE_RCSID(Event, EC_Bitmask_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_EC_Bitmask_Filter::TAO_EC_Bitmask_Filter (CORBA::ULong source_mask,
- CORBA::ULong type_mask,
- TAO_EC_Filter* child)
+TAO_EC_Bitmask_Filter::
+ TAO_EC_Bitmask_Filter (CORBA::ULong source_mask,
+ CORBA::ULong type_mask,
+ TAO_EC_Filter* child)
: source_mask_ (source_mask),
type_mask_ (type_mask),
child_ (child)
@@ -118,5 +117,3 @@ TAO_EC_Bitmask_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h
index bc2a3469d00..6403738045f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Bitmask_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Bitmask_Filter.h
*
@@ -17,15 +16,13 @@
#define TAO_EC_BITMASK_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include "EC_Filter.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Bitmask_Filter
*
@@ -89,8 +86,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Bitmask_Filter (const TAO_EC_Bitmask_Filter&);
- TAO_EC_Bitmask_Filter& operator= (const TAO_EC_Bitmask_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Bitmask_Filter
+ (const TAO_EC_Bitmask_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Bitmask_Filter& operator=
+ (const TAO_EC_Bitmask_Filter&))
private:
/// The bitmasks
@@ -101,7 +100,5 @@ private:
TAO_EC_Filter* child_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_BITMASK_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.cpp
index f2cce60ee21..e85b8a15dab 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_EC_BUSY_LOCK_CPP
#define TAO_EC_BUSY_LOCK_CPP
-#include "orbsvcs/Event/EC_Busy_Lock.h"
+#include "EC_Busy_Lock.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Busy_Lock.i"
+#include "EC_Busy_Lock.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Event, EC_Busy_Lock, "$Id$")
template<class T>
int TAO_EC_Busy_Lock_Adapter<T>::remove (void)
@@ -59,6 +59,4 @@ int TAO_EC_Busy_Lock_Adapter<T>::tryacquire_write (void)
return this->adaptee_->busy ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_EC_BUSY_LOCK_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.h b/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.h
index 1640d5b8bf2..099c708e3c1 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Busy_Lock.h
*
@@ -23,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class Adaptee>
class TAO_EC_Busy_Lock_Adapter
{
@@ -48,14 +45,12 @@ private:
Adaptee* adaptee_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Busy_Lock.i"
+#include "EC_Busy_Lock.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Event/EC_Busy_Lock.cpp"
+#include "EC_Busy_Lock.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.i b/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.i
index 670ad09dd63..dd4c3e7a956 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Busy_Lock.i
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T> ACE_INLINE
TAO_EC_Busy_Lock_Adapter<T>::TAO_EC_Busy_Lock_Adapter (T* adaptee)
: adaptee_ (adaptee)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp
index 3759342a5e9..1f7e055cde8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.cpp
@@ -6,9 +6,7 @@
* @author Marina Spivak <marina@atdesk.com>
*/
-#include "orbsvcs/Event/EC_Channel_Destroyer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Channel_Destroyer.h"
void
TAO_EC_Channel_Destroyer_Functor::operator() (
@@ -26,5 +24,3 @@ TAO_EC_Channel_Destroyer_Functor::operator() (
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h
index 4b18ad808fd..90ae3a9b1ea 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Channel_Destroyer.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
/**
* @file EC_Channel_Destroyer.h
*
@@ -10,12 +8,10 @@
#ifndef EC_CHANNEL_DESTROYER__H_
#define EC_CHANNEL_DESTROYER__H_
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include /**/ "event_serv_export.h"
+#include "EC_Event_Channel_Base.h"
#include "ace/Auto_Functor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @struct TAO_EC_Channel_Destroyer_Functor
*
@@ -41,6 +37,5 @@ typedef ACE_Utils::Auto_Functor<
TAO_EC_Channel_Destroyer_Functor>
TAO_EC_Channel_Destroyer;
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // EC_CHANNEL_DESTROYER__H_
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp
index e8fae3ae659..696320fde99 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Conjunction_Filter.h"
+#include "EC_Conjunction_Filter.h"
ACE_RCSID(Event, EC_Conjunction_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const int bits_per_word = sizeof(TAO_EC_Conjunction_Filter::Word) * CHAR_BIT;
TAO_EC_Conjunction_Filter::
@@ -205,5 +203,3 @@ TAO_EC_Conjunction_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h
index e50d6b37867..80493b3838d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Conjunction_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Conjunction_Filter.h
*
@@ -17,15 +16,13 @@
#define TAO_EC_CONJUNCTION_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include "EC_Filter.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Conjunction_Filter
*
@@ -79,8 +76,10 @@ private:
/// Determine if all the children have received their events.
int all_received (void) const;
- TAO_EC_Conjunction_Filter (const TAO_EC_Conjunction_Filter&);
- TAO_EC_Conjunction_Filter& operator= (const TAO_EC_Conjunction_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Conjunction_Filter
+ (const TAO_EC_Conjunction_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Conjunction_Filter& operator=
+ (const TAO_EC_Conjunction_Filter&))
private:
/// The children
@@ -107,7 +106,5 @@ private:
ChildrenIterator current_child_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_CONJUNCTION_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp
index 73bf25fff47..3ba08f2c8fb 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_ProxySupplier.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_Event_Channel_Base.h"
#include "orbsvcs/ESF/ESF_Peer_Workers.h"
#include "orbsvcs/ESF/ESF_Peer_Admin.h"
#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
@@ -12,8 +12,6 @@ ACE_RCSID (Event,
EC_ConsumerAdmin,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_ConsumerAdmin::TAO_EC_ConsumerAdmin (TAO_EC_Event_Channel_Base *ec)
: TAO_ESF_Peer_Admin<TAO_EC_Event_Channel_Base,TAO_EC_ProxyPushSupplier,RtecEventChannelAdmin::ProxyPushSupplier,TAO_EC_ProxyPushConsumer> (ec)
{
@@ -37,5 +35,3 @@ TAO_EC_ConsumerAdmin::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return PortableServer::POA::_duplicate (this->default_POA_.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h
index 60e45de355a..e6d2ee2f90f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_ConsumerAdmin.h
*
@@ -18,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
+#include "EC_ProxySupplier.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,13 +25,12 @@
#include "orbsvcs/ESF/ESF_Peer_Admin.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushConsumer;
+
/**
* @class TAO_EC_ConsumerAdmin
*
@@ -74,8 +72,6 @@ private:
PortableServer::POA_var default_POA_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_CONSUMERADMIN_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp
index 007d90bd404..e393fdea4b6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_ConsumerControl.h"
+#include "EC_ConsumerControl.h"
ACE_RCSID(Event, EC_ConsumerControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_ConsumerControl::TAO_EC_ConsumerControl (void)
{
}
@@ -39,4 +37,3 @@ TAO_EC_ConsumerControl::system_exception (TAO_EC_ProxyPushSupplier *,
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h
index 281fe09f0d3..4ad494b96fe 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerControl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_ConsumerControl.h
*
@@ -19,16 +18,12 @@
#include /**/ "ace/pre.h"
#include "ace/CORBA_macros.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushSupplier;
@@ -67,17 +62,15 @@ public:
* reclaim all the resources attached to that object.
*/
virtual void consumer_not_exist (TAO_EC_ProxyPushSupplier *proxy
- ACE_ENV_ARG_DECL);
+ ACE_ENV_ARG_DECL_NOT_USED);
/// Some system exception was raised while trying to contact the
/// consumer
virtual void system_exception (TAO_EC_ProxyPushSupplier *proxy,
CORBA::SystemException &
- ACE_ENV_ARG_DECL);
+ ACE_ENV_ARG_DECL_NOT_USED);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_CONSUMERCONTROL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp
index c10cfbbb4cd..71b5d6d4c8d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.cpp
@@ -1,23 +1,23 @@
// $Id$
-#include "orbsvcs/Event/EC_Default_Factory.h"
-#include "orbsvcs/Event/EC_Reactive_Dispatching.h"
-#include "orbsvcs/Event/EC_MT_Dispatching.h"
-#include "orbsvcs/Event/EC_Basic_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Prefix_Filter_Builder.h"
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
-#include "orbsvcs/Event/EC_Default_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Default_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Trivial_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_Per_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_ObserverStrategy.h"
-#include "orbsvcs/Event/EC_Null_Scheduling.h"
-#include "orbsvcs/Event/EC_Group_Scheduling.h"
-#include "orbsvcs/Event/EC_Reactive_Timeout_Generator.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_Reactive_ConsumerControl.h"
-#include "orbsvcs/Event/EC_Reactive_SupplierControl.h"
+#include "EC_Default_Factory.h"
+#include "EC_Reactive_Dispatching.h"
+#include "EC_MT_Dispatching.h"
+#include "EC_Basic_Filter_Builder.h"
+#include "EC_Prefix_Filter_Builder.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_SupplierAdmin.h"
+#include "EC_Default_ProxyConsumer.h"
+#include "EC_Default_ProxySupplier.h"
+#include "EC_Trivial_Supplier_Filter.h"
+#include "EC_Per_Supplier_Filter.h"
+#include "EC_ObserverStrategy.h"
+#include "EC_Null_Scheduling.h"
+#include "EC_Group_Scheduling.h"
+#include "EC_Reactive_Timeout_Generator.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_Reactive_ConsumerControl.h"
+#include "EC_Reactive_SupplierControl.h"
#include "orbsvcs/ESF/ESF_Proxy_List.h"
#include "orbsvcs/ESF/ESF_Proxy_RB_Tree.h"
@@ -35,13 +35,11 @@
#include "ace/Dynamic_Service.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Default_Factory.i"
+#include "EC_Default_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Default_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Default_Factory::~TAO_EC_Default_Factory (void)
{
}
@@ -93,7 +91,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("mt")) == 0)
this->dispatching_ = 1;
else
- this->unsupported_option_value ("-ECDispatching", opt);
+ this->unsupported_option_value ("-ECDispatching", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -124,7 +122,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("prefix")) == 0)
this->filtering_ = 2;
else
- this->unsupported_option_value ("-ECFiltering", opt);
+ this->unsupported_option_value ("-ECFiltering", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -143,7 +141,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("per-supplier")) == 0)
this->supplier_filtering_ = 1;
else
- this->unsupported_option_value ("-ECSupplierFilter", opt);
+ this->unsupported_option_value ("-ECSupplierFilter", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -158,7 +156,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
if (ACE_OS::strcasecmp (opt, ACE_TEXT("reactive")) == 0)
this->timeout_ = 0;
else
- this->unsupported_option_value ("-ECTimeout", opt);
+ this->unsupported_option_value ("-ECTimeout", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -177,7 +175,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("reactive")) == 0)
this->observer_ = 2;
else
- this->unsupported_option_value ("-ECObserver", opt);
+ this->unsupported_option_value ("-ECObserver", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -194,7 +192,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("group")) == 0)
this->scheduling_ = 1;
else
- this->unsupported_option_value ("-ECScheduling", opt);
+ this->unsupported_option_value ("-ECScheduling", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -303,7 +301,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("recursive")) == 0)
this->consumer_lock_ = 2;
else
- this->unsupported_option_value ("-ECProxyConsumerLock", opt);
+ this->unsupported_option_value ("-ECProxyConsumerLock", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -322,7 +320,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("recursive")) == 0)
this->supplier_lock_ = 2;
else
- this->unsupported_option_value ("-ECProxySupplierLock", opt);
+ this->unsupported_option_value ("-ECProxySupplierLock", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -334,7 +332,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
if (arg_shifter.is_parameter_next ())
{
// Save argument for later use
- this->orbid_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ());
+ this->orbid_ = ACE_TEXT_TO_CHAR_IN(arg_shifter.get_current ());
arg_shifter.consume_arg ();
}
}
@@ -351,7 +349,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("reactive")) == 0)
this->consumer_control_ = 1;
else
- this->unsupported_option_value ("-ECConsumerControl", opt);
+ this->unsupported_option_value ("-ECConsumerControl", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -368,7 +366,7 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("reactive")) == 0)
this->supplier_control_ = 1;
else
- this->unsupported_option_value ("-ECSupplierControl", opt);
+ this->unsupported_option_value ("-ECSupplierControl", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -448,8 +446,8 @@ TAO_EC_Default_Factory::init (int argc, ACE_TCHAR* argv[])
arg_shifter.consume_arg ();
if (arg_shifter.is_parameter_next ())
{
- const char* opt = arg_shifter.get_current ();
- this->queue_full_service_object_name_.set(opt);
+ const ACE_TCHAR* opt = arg_shifter.get_current ();
+ this->queue_full_service_object_name_.set (ACE_TEXT_TO_CHAR_IN (opt));
arg_shifter.consume_arg ();
}
}
@@ -990,8 +988,6 @@ TAO_EC_Default_Factory::destroy_supplier_control (TAO_EC_SupplierControl* x)
delete x;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_EC_Default_Factory,
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h
index a5bce5d5df3..406739f25b8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.h
@@ -17,20 +17,18 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Factory.h"
+#include "EC_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_Defaults.h"
+#include "EC_Defaults.h"
#include "ace/Service_Config.h"
#include "ace/SString.h"
#include "ace/Time_Value.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Queue_Full_Service_Object;
/**
@@ -187,10 +185,8 @@ protected:
int consumer_validate_connection_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Default_Factory.i"
+#include "EC_Default_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE (TAO_EC_Default_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.i b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.i
index 2564cd3b0c5..3ff451b166a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_Factory.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Default_Factory::TAO_EC_Default_Factory (void)
: dispatching_ (TAO_EC_DEFAULT_DISPATCHING),
@@ -55,5 +51,3 @@ TAO_EC_Default_Factory::orb_id (void) const
{
return this->orbid_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp
index e3bca47a2d0..ab836a8dcbf 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Event/EC_Default_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_Supplier_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
+#include "EC_Default_ProxyConsumer.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_Supplier_Filter_Builder.h"
+#include "EC_Supplier_Filter.h"
#include "ace/Synch_T.h"
ACE_RCSID(Event, EC_Default_ProxyConsumer, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_EC_Unlock;
TAO_EC_Default_ProxyPushConsumer::
@@ -188,5 +186,3 @@ TAO_EC_Default_ProxyPushConsumer::object_id (ACE_ENV_SINGLE_ARG_DECL)
this->default_POA_->servant_to_id (this ACE_ENV_ARG_PARAMETER);
return result.in ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h
index e08d7d4c092..7b0f7648cef 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxyConsumer.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Default_ProxyConsumer.h
*
@@ -22,9 +21,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_ProxyConsumer.h"
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushSupplier;
@@ -78,8 +75,6 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_DEFAULT_PROXYCONSUMER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp
index a431afb219f..1265d53d656 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/Event/EC_Default_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
+#include "EC_Default_ProxySupplier.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_Filter_Builder.h"
#include "ace/Reverse_Lock_T.h"
@@ -10,8 +10,6 @@ ACE_RCSID (Event,
EC_ProxySupplier,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_EC_Unlock;
TAO_EC_Default_ProxyPushSupplier::TAO_EC_Default_ProxyPushSupplier (
@@ -224,5 +222,3 @@ TAO_EC_Default_ProxyPushSupplier::object_id (ACE_ENV_SINGLE_ARG_DECL)
return result.in ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h
index ae59254ea93..2284340aad3 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Default_ProxySupplier.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Default_ProxySupplier.h
*
@@ -21,9 +20,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_ProxySupplier.h"
/**
* @class TAO_EC_Default_ProxyPushSupplier
@@ -31,9 +28,9 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* @brief Implement the ReliableEventChannelAdmin::ProxyPushSupplier
* interface
*/
-class TAO_RTEvent_Serv_Export TAO_EC_Default_ProxyPushSupplier
- : public POA_RtecEventChannelAdmin::ProxyPushSupplier,
- public TAO_EC_ProxyPushSupplier
+class TAO_RTEvent_Serv_Export TAO_EC_Default_ProxyPushSupplier :
+ public POA_RtecEventChannelAdmin::ProxyPushSupplier,
+ public TAO_EC_ProxyPushSupplier
{
public:
@@ -75,8 +72,6 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_DEFAULT_PROXYSUPPLIER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp
index 9016401e2f4..ffd6030faa8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Disjunction_Filter.h"
+#include "EC_Disjunction_Filter.h"
ACE_RCSID(Event, EC_Disjunction_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Disjunction_Filter::
TAO_EC_Disjunction_Filter (TAO_EC_Filter* children[],
size_t n)
@@ -159,5 +157,3 @@ TAO_EC_Disjunction_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h
index 06585acb46d..c8886235d9a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Disjunction_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Disjunction_Filter.h
*
@@ -17,14 +16,12 @@
#define TAO_EC_DISJUNCTION_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Disjunction_Filter
*
@@ -73,8 +70,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Disjunction_Filter (const TAO_EC_Disjunction_Filter&);
- TAO_EC_Disjunction_Filter& operator= (const TAO_EC_Disjunction_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Disjunction_Filter
+ (const TAO_EC_Disjunction_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Disjunction_Filter& operator=
+ (const TAO_EC_Disjunction_Filter&))
private:
/// The children
@@ -84,7 +83,5 @@ private:
size_t n_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_DISJUNCTION_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp
index 4e2ead6d6e1..a38dcbbdce7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.cpp
@@ -1,14 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_Dispatching.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
+#include "EC_Dispatching.h"
+#include "EC_ProxySupplier.h"
ACE_RCSID(Event, EC_Dispatching, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Dispatching::~TAO_EC_Dispatching (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h
index 14fc0cc7860..8d125229aa1 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Dispatching.h
*
@@ -20,14 +19,12 @@
#include "orbsvcs/RtecEventCommC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_QOS_Info;
class TAO_EC_ProxyPushSupplier;
@@ -77,8 +74,6 @@ public:
ACE_ENV_ARG_DECL_WITH_DEFAULTS) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp
index 93b6952aa8d..b45fcc7d5f5 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.cpp
@@ -1,24 +1,21 @@
// $Id$
-#include "orbsvcs/Event/EC_Dispatching_Task.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Defaults.h"
+#include "EC_Dispatching_Task.h"
+#include "EC_ProxySupplier.h"
+#include "EC_Defaults.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_strings.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Dispatching_Task.i"
+#include "EC_Dispatching_Task.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Dispatching,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Simple_Queue_Full_Action::TAO_EC_Simple_Queue_Full_Action (void)
: queue_full_action_return_value_ (WAIT_TO_EMPTY)
{
@@ -29,12 +26,13 @@ TAO_EC_Simple_Queue_Full_Action::TAO_EC_Simple_Queue_Full_Action (void)
int
TAO_EC_Simple_Queue_Full_Action::init_svcs (void)
{
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) Simple_Queue_Full_Action::init_svcs()\n"));
return ACE_Service_Config::static_svcs ()->
insert (&ace_svc_desc_TAO_EC_Simple_Queue_Full_Action);
}
int
-TAO_EC_Simple_Queue_Full_Action::init (int argc, char* argv[])
+TAO_EC_Simple_Queue_Full_Action::init (int argc, ACE_TCHAR* argv[])
{
// Here we look at the args and set an internal flag indicating whether
// the default action should be to wait for the queue to not be full
@@ -47,9 +45,9 @@ TAO_EC_Simple_Queue_Full_Action::init (int argc, char* argv[])
if (argc == 0)
break;
- if (ACE_OS::strcasecmp ("wait", argv[0]) == 0)
+ if (ACE_OS::strcasecmp (ACE_TEXT("wait"), argv[0]) == 0)
this->queue_full_action_return_value_ = WAIT_TO_EMPTY;
- else if (ACE_OS::strcasecmp ("discard", argv[0]) == 0)
+ else if (ACE_OS::strcasecmp (ACE_TEXT("discard"), argv[0]) == 0)
this->queue_full_action_return_value_ = SILENTLY_DISCARD;
#if 0
else
@@ -77,8 +75,6 @@ TAO_EC_Simple_Queue_Full_Action::queue_full_action (TAO_EC_Dispatching_Task * /*
return this->queue_full_action_return_value_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_EC_Simple_Queue_Full_Action,
ACE_TEXT (TAO_EC_DEFAULT_QUEUE_FULL_SERVICE_OBJECT_NAME),
ACE_SVC_OBJ_T,
@@ -88,7 +84,7 @@ ACE_STATIC_SVC_DEFINE (TAO_EC_Simple_Queue_Full_Action,
ACE_FACTORY_DEFINE (TAO_RTEvent_Serv, TAO_EC_Simple_Queue_Full_Action)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
int
TAO_EC_Queue::is_full_i (void)
{
@@ -105,7 +101,7 @@ TAO_EC_Dispatching_Task::svc (void)
{
ACE_TRY_NEW_ENV
{
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
if (this->getq (mb) == -1)
if (ACE_OS::last_error () == ESHUTDOWN)
return 0;
@@ -174,7 +170,11 @@ TAO_EC_Dispatching_Task::push (TAO_EC_ProxyPushSupplier *proxy,
event,
this->data_block_.duplicate (),
this->allocator_);
+ ACE_DEBUG ((LM_DEBUG, "EC (%P|%t): task %@ queue size before putq: %d\n",
+ this, this->the_queue_.message_count ()));
this->putq (mb);
+ ACE_DEBUG ((LM_DEBUG, "EC (%P|%t): task %@ queue size after putq: %d\n",
+ this, this->the_queue_.message_count ()));
}
// ****************************************************************
@@ -207,4 +207,3 @@ TAO_EC_Push_Command::execute (ACE_ENV_SINGLE_ARG_DECL)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h
index 7aaedd68071..81eb4d05e47 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.h
@@ -18,22 +18,20 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
+#include "EC_ProxySupplier.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecEventCommC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "ace/Task.h"
#include "ace/Message_Block.h"
#include "ace/Lock_Adapter_T.h"
#include "ace/Service_Config.h"
#include "ace/Global_Macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl
class TAO_EC_Dispatching_Task;
@@ -65,7 +63,7 @@ public:
static int init_svcs (void);
// = The Service_Object entry points
- virtual int init (int argc, char* argv[]);
+ virtual int init (int argc, ACE_TCHAR* argv[]);
virtual int fini (void);
virtual int queue_full_action (TAO_EC_Dispatching_Task *task,
@@ -185,10 +183,8 @@ private:
RtecEventComm::EventSet event_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Dispatching_Task.i"
+#include "EC_Dispatching_Task.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE (TAO_EC_Simple_Queue_Full_Action)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.i b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.i
index 37930e408fe..12694120844 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Dispatching_Task.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Queue::
TAO_EC_Queue (size_t high_water_mark,
@@ -91,5 +87,3 @@ TAO_EC_Push_Command::TAO_EC_Push_Command (
this->proxy_->_incr_refcnt ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp
index b35602065d0..fa498a4d514 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_Event_Channel.h"
-#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "EC_Event_Channel.h"
+#include "EC_Default_Factory.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID(Event, EC_Event_Channel, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Event_Channel::
TAO_EC_Event_Channel (const TAO_EC_Event_Channel_Attributes& attr,
TAO_EC_Factory* factory,
@@ -33,5 +31,3 @@ TAO_EC_Event_Channel (const TAO_EC_Event_Channel_Attributes& attr,
this->create_strategies ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.h b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.h
index a2aa9b95643..04b1ce0cfb9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Event_Channel.h
*
@@ -20,14 +19,12 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_Event_Channel_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Event_Channel
*
@@ -55,8 +52,6 @@ public:
int own_factory = 0);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_EVENT_CHANNEL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp
index cdb208fbb4a..4a9d5cd7f34 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.cpp
@@ -1,23 +1,21 @@
// $Id$
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
-#include "orbsvcs/Event/EC_Timeout_Generator.h"
-#include "orbsvcs/Event/EC_ObserverStrategy.h"
-#include "orbsvcs/Event/EC_ConsumerControl.h"
-#include "orbsvcs/Event/EC_SupplierControl.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_Dispatching.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_SupplierAdmin.h"
+#include "EC_Timeout_Generator.h"
+#include "EC_ObserverStrategy.h"
+#include "EC_ConsumerControl.h"
+#include "EC_SupplierControl.h"
#include "ace/Dynamic_Service.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Event_Channel_Base.i"
+#include "EC_Event_Channel_Base.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Event_Channel_Base, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Event_Channel_Base::
TAO_EC_Event_Channel_Base (const TAO_EC_Event_Channel_Attributes& attr,
TAO_EC_Factory* factory,
@@ -349,5 +347,3 @@ TAO_EC_Event_Channel_Base::for_each_supplier (
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h
index b42632c4c43..39b168a4c85 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Event_Channel_Base.h
*
@@ -20,18 +19,16 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Factory.h"
+#include "EC_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_Defaults.h"
+#include "EC_Defaults.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class> class TAO_ESF_Worker;
/**
@@ -366,10 +363,8 @@ protected:
int status_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Event_Channel_Base.i"
+#include "EC_Event_Channel_Base.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.i b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.i
index 1883f84ef11..f3a4d6a784d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Event_Channel_Base.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Event_Channel_Attributes::
TAO_EC_Event_Channel_Attributes (PortableServer::POA_ptr s_poa,
@@ -202,5 +198,3 @@ TAO_EC_Event_Channel_Base::destroyed (void)
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
return (this->status_ == EC_S_DESTROYED);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp
index 0612521f408..6ce94287fd6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.cpp
@@ -1,14 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_Factory.h"
+#include "EC_Factory.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID(Event, EC_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Factory::~TAO_EC_Factory (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h
index a3cd903d4f4..71c1a0ebfa3 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Factory.h
*
@@ -17,21 +17,15 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Service_Object.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_EC_Event_Channel_Base;
@@ -162,8 +156,6 @@ public:
destroy_supplier_control (TAO_EC_SupplierControl*) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp
index 55f0de96038..220a8403b96 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.cpp
@@ -1,20 +1,18 @@
// $Id$
-#include "orbsvcs/Event/EC_Filter.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Filter.h"
+#include "EC_QOS_Info.h"
#include "tao/ORB_Constants.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Filter.i"
+#include "EC_Filter.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Filter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Filter::~TAO_EC_Filter (void)
{
}
@@ -126,5 +124,3 @@ TAO_EC_Null_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h
index d092917ab4e..63ec4618f78 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Filter.h
*
@@ -19,14 +19,12 @@
#include "orbsvcs/RtecEventCommC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_QOS_Info;
/**
@@ -214,10 +212,8 @@ public:
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Filter.i"
+#include "EC_Filter.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i
index a5b9e121522..3820754ed5a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Filter::TAO_EC_Filter (void)
: parent_ (0)
@@ -41,5 +37,3 @@ TAO_EC_Null_Filter::TAO_EC_Null_Filter (void)
}
// ****************************************************************
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp
index 07934456276..8b8cc5ddbe7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/Event/EC_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter_Builder.h"
+#include "EC_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Filter_Builder.i"
+#include "EC_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Filter_Builder, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Filter_Builder::~TAO_EC_Filter_Builder (void)
{
}
@@ -29,5 +27,3 @@ TAO_EC_Null_Filter_Builder::build (
{
return new TAO_EC_Null_Filter;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h
index 5d639e8d7e0..92a5a6353a8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Filter_Builder.h
*
@@ -19,14 +19,12 @@
#include "orbsvcs/RtecEventChannelAdminC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Filter;
class TAO_EC_ProxyPushSupplier;
@@ -79,12 +77,10 @@ public:
ACE_ENV_ARG_DECL) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Filter_Builder.i"
+#include "EC_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.i b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.i
index 89d32fe656e..2592a19f93b 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter_Builder.i
@@ -1,12 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Null_Filter_Builder::TAO_EC_Null_Filter_Builder (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp
index 8addbb46165..8ef8d8c7ef0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.cpp
@@ -6,8 +6,6 @@ ACE_RCSID (Event,
EC_Gateway,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Gateway::TAO_EC_Gateway (void)
: handle_ (0)
{
@@ -29,4 +27,3 @@ TAO_EC_Gateway::observer_handle (void) const
return this->handle_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h
index 965e6a9daf6..c5a4253e0ca 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Gateway.h
*
@@ -18,14 +17,11 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/RtecEventCommS.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Gateway
*
@@ -64,8 +60,6 @@ private:
RtecEventChannelAdmin::Observer_Handle handle_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_EC_GATEWAY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp
index cf58d8cbd06..5ae4f0d558c 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.cpp
@@ -5,8 +5,8 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Time_Utilities.h"
-#include "orbsvcs/Event/EC_Gateway_IIOP_Factory.h"
-#include "orbsvcs/Event/ECG_ConsumerEC_Control.h"
+#include "EC_Gateway_IIOP_Factory.h"
+#include "ECG_ConsumerEC_Control.h"
#include "ace/Dynamic_Service.h"
@@ -14,8 +14,6 @@ ACE_RCSID (Event,
EC_Gateway_IIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Gateway_IIOP::TAO_EC_Gateway_IIOP (void)
: busy_count_ (0),
update_posted_ (0),
@@ -711,5 +709,3 @@ TAO_EC_Gateway_IIOP::resume_supplier_ec (ACE_ENV_SINGLE_ARG_DECL)
supplier_ec_suspended_ = 0;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h
index 6f957042c3a..178b73e93f7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP.h
@@ -19,8 +19,8 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-#include "orbsvcs/Event/EC_Gateway.h"
+#include /**/ "event_serv_export.h"
+#include "EC_Gateway.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/RtecEventCommS.h"
@@ -29,8 +29,6 @@
#include "ace/Map_Manager.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ECG_ConsumerEC_Control;
class TAO_EC_Gateway_IIOP_Factory;
@@ -248,8 +246,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_EC_GATEWAY_IIOP_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp
index ec6b0f935ca..4cc2098d2b8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.cpp
@@ -8,22 +8,20 @@
#include "ace/Dynamic_Service.h"
#include "ace/Arg_Shifter.h"
-#include "orbsvcs/Event/ECG_ConsumerEC_Control.h"
-#include "orbsvcs/Event/ECG_Reactive_ConsumerEC_Control.h"
-#include "orbsvcs/Event/ECG_Reconnect_ConsumerEC_Control.h"
-#include "orbsvcs/Event/EC_Gateway_IIOP.h"
+#include "ECG_ConsumerEC_Control.h"
+#include "ECG_Reactive_ConsumerEC_Control.h"
+#include "ECG_Reconnect_ConsumerEC_Control.h"
+#include "EC_Gateway_IIOP.h"
#include "ace/OS_NS_strings.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Gateway_IIOP_Factory.i"
+#include "EC_Gateway_IIOP_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Gateway_IIOP_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_EC_Gateway_IIOP_Factory::init_svcs (void)
{
@@ -52,7 +50,7 @@ TAO_EC_Gateway_IIOP_Factory::fini (void)
}
int
-TAO_EC_Gateway_IIOP_Factory::init (int argc, char* argv[])
+TAO_EC_Gateway_IIOP_Factory::init (int argc, ACE_TCHAR* argv[])
{
int result = 0;
@@ -60,7 +58,7 @@ TAO_EC_Gateway_IIOP_Factory::init (int argc, char* argv[])
while (arg_shifter.is_anything_left ())
{
- const char *arg = arg_shifter.get_current ();
+ const ACE_TCHAR *arg = arg_shifter.get_current ();
if (ACE_OS::strcasecmp (arg, ACE_TEXT("-ECGIIOPConsumerECControl")) == 0)
{
@@ -76,7 +74,7 @@ TAO_EC_Gateway_IIOP_Factory::init (int argc, char* argv[])
else if (ACE_OS::strcasecmp (opt, ACE_TEXT("reconnect")) == 0)
this->consumer_ec_control_ = 2;
else
- this->unsupported_option_value ("-ECGIIOPConsumerECControl", opt);
+ this->unsupported_option_value ("-ECGIIOPConsumerECControl", ACE_TEXT_TO_CHAR_IN(opt));
arg_shifter.consume_arg ();
}
}
@@ -113,7 +111,7 @@ TAO_EC_Gateway_IIOP_Factory::init (int argc, char* argv[])
if (arg_shifter.is_parameter_next ())
{
// Save argument for later use
- this->orbid_ = ACE_TEXT_ALWAYS_CHAR(arg_shifter.get_current ());
+ this->orbid_ = ACE_TEXT_TO_CHAR_IN(arg_shifter.get_current ());
arg_shifter.consume_arg ();
}
}
@@ -201,8 +199,6 @@ TAO_EC_Gateway_IIOP_Factory::destroy_consumerec_control (
delete x;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_EC_Gateway_IIOP_Factory,
ACE_TEXT ("EC_Gateway_IIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h
index 2a1c30a10a0..58746f928d9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Gateway_IIOP_Factory.h
*
@@ -23,11 +22,7 @@
#include "ace/Service_Object.h"
#include "ace/SString.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
class TAO_ECG_ConsumerEC_Control;
class TAO_EC_Gateway_IIOP;
@@ -48,7 +43,7 @@ public:
/// The Service_Object entry points.
//@{
- virtual int init (int argc, char* argv[]);
+ virtual int init (int argc, ACE_TCHAR* argv[]);
virtual int fini (void);
//@}
@@ -101,13 +96,11 @@ protected:
int use_consumer_proxy_map_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_EC_Gateway_IIOP_Factory)
ACE_FACTORY_DECLARE (TAO_RTEvent_Serv, TAO_EC_Gateway_IIOP_Factory)
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Gateway_IIOP_Factory.i"
+#include "EC_Gateway_IIOP_Factory.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.i b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.i
index 45dbd3f9d3f..85ac825fd2f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_IIOP_Factory.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
TAO_EC_Gateway_IIOP_Factory::use_ttl (void) const
{
@@ -16,4 +12,3 @@ TAO_EC_Gateway_IIOP_Factory::use_consumer_proxy_map (void) const
return this->use_consumer_proxy_map_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp
index 1b1a0d4479e..cb8453bdef8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Event/EC_Gateway_Sched.h"
+#include "EC_Gateway_Sched.h"
#include "orbsvcs/Time_Utilities.h"
ACE_RCSID (Event,
EC_Gateway_sched,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Gateway_Sched::TAO_EC_Gateway_Sched (void)
: TAO_EC_Gateway_IIOP ()
{
@@ -78,5 +76,3 @@ TAO_EC_Gateway_Sched::init (RtecEventChannelAdmin::EventChannel_ptr supplier_ec,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.h b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.h
index 5267546de17..3ab5e935271 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Gateway_Sched.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Gateway_Sched.h
*
@@ -18,14 +18,12 @@
#define TAO_EC_GATEWAY_SCHED_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Gateway_IIOP.h"
+#include "EC_Gateway_IIOP.h"
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/sched_event_export.h"
+#include "sched_event_export.h"
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Gateway_Sched
*
@@ -50,10 +48,8 @@ public:
RtecScheduler::Scheduler_ptr consumer_sched,
const char* consumer_name,
const char* supplier_name
- ACE_ENV_ARG_DECL);
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_EC_GATEWAY_SCHED_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp
index 9e39ef1f631..4634f940e41 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_Group_Scheduling.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
+#include "EC_Group_Scheduling.h"
+#include "EC_QOS_Info.h"
+#include "EC_Supplier_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Group_Scheduling.inl"
+#include "EC_Group_Scheduling.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Group_Scheduling, "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h
index 1a9b35f07e2..7e6510b065c 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Group_Scheduling.h
@@ -16,7 +16,7 @@
#define TAO_EC_GROUP_SCHEDULING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
+#include "EC_Scheduling_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -44,12 +44,14 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Group_Scheduling (const TAO_EC_Group_Scheduling&);
- TAO_EC_Group_Scheduling& operator= (const TAO_EC_Group_Scheduling&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Group_Scheduling
+ (const TAO_EC_Group_Scheduling&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Group_Scheduling& operator=
+ (const TAO_EC_Group_Scheduling&))
};
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Group_Scheduling.inl"
+#include "EC_Group_Scheduling.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp
index 206d87f18a2..aecf424ef41 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Kokyu_Dispatching.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Kokyu_Dispatching.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ProxySupplier.h"
+#include "EC_QOS_Info.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "orbsvcs/RtecSchedulerC.h"
@@ -15,15 +15,13 @@
#include "Kokyu/Kokyu.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Dispatching.i"
+#include "EC_Kokyu_Dispatching.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Kokyu_Dispatching,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Kokyu_Dispatching::TAO_EC_Kokyu_Dispatching (TAO_EC_Event_Channel_Base *ec, int sched_policy, int sched_scope)
:allocator_ (0),
dispatcher_ (0),
@@ -206,5 +204,3 @@ TAO_EC_Kokyu_Push_Command::execute ()
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.h
index d9079a271ac..ec54bc03226 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.h
@@ -18,22 +18,20 @@
#define TAO_EC_KOKYU_DISPATCHING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
+#include "EC_Dispatching.h"
+#include "EC_ProxySupplier.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/rtkokyu_event_export.h"
+#include "rtkokyu_event_export.h"
#include "ace/Thread_Manager.h"
#include "Kokyu/Kokyu.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
/**
@@ -137,10 +135,8 @@ private:
RtecEventComm::EventSet event_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Dispatching.i"
+#include "EC_Kokyu_Dispatching.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.i b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.i
index 0c116874fad..b7645af1170 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Dispatching.i
@@ -1,16 +1,12 @@
-// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_INLINE
TAO_EC_Kokyu_Shutdown_Command::
-TAO_EC_Kokyu_Shutdown_Command (ACE_Allocator*)
+TAO_EC_Kokyu_Shutdown_Command (ACE_Allocator* allocator)
: Kokyu::Dispatch_Command ()
{
+ ACE_UNUSED_ARG (allocator);
}
// ****************************************************************
@@ -38,5 +34,3 @@ TAO_EC_Kokyu_Push_Command::TAO_EC_Kokyu_Push_Command (
this->proxy_->_incr_refcnt ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp
index 2df728b8920..0e5448fdafd 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_Kokyu_Factory.h"
-#include "orbsvcs/Event/EC_Kokyu_Dispatching.h"
-#include "orbsvcs/Event/EC_Kokyu_Scheduling.h"
-#include "orbsvcs/Event/EC_Kokyu_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_Kokyu_Factory.h"
+#include "EC_Kokyu_Dispatching.h"
+#include "EC_Kokyu_Scheduling.h"
+#include "EC_Kokyu_Filter_Builder.h"
+#include "EC_Event_Channel_Base.h"
#include "orbsvcs/RtecSchedulerC.h"
#include "ace/Arg_Shifter.h"
@@ -12,15 +12,13 @@
#include "ace/OS_NS_strings.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Factory.i"
+#include "EC_Kokyu_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Kokyu_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Kokyu_Factory::~TAO_EC_Kokyu_Factory (void)
{
}
@@ -259,8 +257,6 @@ TAO_EC_Kokyu_Factory::create_scheduling_strategy (TAO_EC_Event_Channel_Base* ec)
return this->TAO_EC_Default_Factory::create_scheduling_strategy (ec);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_EC_Kokyu_Factory,
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.h
index 4e2f413ca42..9a1f9ddd4d2 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Kokyu_Factory.h
*
@@ -17,15 +17,13 @@
#define TAO_EC_KOKYU_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "EC_Default_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/rtkokyu_event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "rtkokyu_event_export.h"
/**
* @class TAO_EC_Kokyu_Factory
@@ -65,10 +63,8 @@ private:
int disp_sched_scope_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Factory.i"
+#include "EC_Kokyu_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE (TAO_EC_Kokyu_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.i b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.i
index 7119373733f..cc78b5b83c8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Factory.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Kokyu_Factory::TAO_EC_Kokyu_Factory (void)
: TAO_EC_Default_Factory (),
@@ -11,5 +7,3 @@ TAO_EC_Kokyu_Factory::TAO_EC_Kokyu_Factory (void)
disp_sched_scope_ (ACE_SCOPE_THREAD)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp
index ab2015ea52d..03e5d7011dd 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Event/EC_Kokyu_Filter.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Kokyu_Filter.h"
+#include "EC_QOS_Info.h"
#include "ace/Log_Msg.h"
ACE_RCSID(Event, EC_Kokyu_Filter, "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.h
index 09f521997d4..a737b93cb55 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter.h
@@ -16,14 +16,14 @@
#define TAO_EC_KOKYU_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/rtkokyu_event_export.h"
+#include "rtkokyu_event_export.h"
#include "ace/SString.h"
//#define EC_KOKYU_LOGGING
@@ -87,8 +87,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Kokyu_Filter (const TAO_EC_Kokyu_Filter&);
- TAO_EC_Kokyu_Filter& operator= (const TAO_EC_Kokyu_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Kokyu_Filter
+ (const TAO_EC_Kokyu_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Kokyu_Filter& operator=
+ (const TAO_EC_Kokyu_Filter&))
/// Initialize our RT_Info handle and dependencies
void init_rt_info (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp
index a522ce4d5ac..0f2eee83b7a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.cpp
@@ -1,17 +1,17 @@
// $Id$
-#include "orbsvcs/Event/EC_Kokyu_Filter.h"
+#include "EC_Kokyu_Filter.h"
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Event/EC_Kokyu_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Type_Filter.h"
-#include "orbsvcs/Event/EC_Conjunction_Filter.h"
-#include "orbsvcs/Event/EC_Disjunction_Filter.h"
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_Kokyu_Filter_Builder.h"
+#include "EC_Type_Filter.h"
+#include "EC_Conjunction_Filter.h"
+#include "EC_Disjunction_Filter.h"
+#include "EC_Timeout_Filter.h"
+#include "EC_Event_Channel_Base.h"
#include "ace/OS_NS_stdio.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Filter_Builder.i"
+#include "EC_Kokyu_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
@@ -35,8 +35,6 @@ const char* designator (long dsgn)
return "---";
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Kokyu_Filter_Builder::~TAO_EC_Kokyu_Filter_Builder (void)
{
}
@@ -509,5 +507,3 @@ TAO_EC_Kokyu_Filter_Builder::
}
return i - 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.h
index 83ac33a6456..b36d1e80350 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Kokyu_Filter_Builder.h
*
@@ -17,15 +17,13 @@
#define TAO_EC_KOKYU_FILTER_BUILDER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
+#include "EC_Filter_Builder.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/rtkokyu_event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "rtkokyu_event_export.h"
class TAO_EC_Filter;
class TAO_EC_Event_Channel_Base;
@@ -79,10 +77,8 @@ private:
TAO_EC_Event_Channel_Base* event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Filter_Builder.i"
+#include "EC_Kokyu_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.i b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.i
index 8e0cd624a7e..db27e8da5db 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Filter_Builder.i
@@ -1,15 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Kokyu_Filter_Builder::
- TAO_EC_Kokyu_Filter_Builder (TAO_EC_Event_Channel_Base *ec)
- : event_channel_ (ec)
+ TAO_EC_Kokyu_Filter_Builder (TAO_EC_Event_Channel_Base *ec)
+ : event_channel_ (ec)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp
index 979cd0913fa..48453663f23 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Event/EC_Kokyu_Scheduling.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
+#include "EC_Kokyu_Scheduling.h"
+#include "EC_QOS_Info.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_ProxySupplier.h"
+#include "EC_Supplier_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Scheduling.i"
+#include "EC_Kokyu_Scheduling.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Kokyu_Scheduling, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Kokyu_Scheduling::~TAO_EC_Kokyu_Scheduling (void)
{
}
@@ -95,5 +93,3 @@ TAO_EC_Kokyu_Scheduling::schedule_event (const RtecEventComm::EventSet &event,
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h
index 105241d217a..5eb6ef5dc35 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Kokyu_Scheduling.h
*
@@ -18,16 +17,14 @@
#define TAO_EC_KOKYU_SCHEDULING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
+#include "EC_Scheduling_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/rtkokyu_event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "rtkokyu_event_export.h"
/**
* @class TAO_EC_Kokyu_Scheduling
@@ -56,8 +53,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Kokyu_Scheduling (const TAO_EC_Kokyu_Scheduling&);
- TAO_EC_Kokyu_Scheduling& operator= (const TAO_EC_Kokyu_Scheduling&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Kokyu_Scheduling
+ (const TAO_EC_Kokyu_Scheduling&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Kokyu_Scheduling& operator=
+ (const TAO_EC_Kokyu_Scheduling&))
/// Initialize our RT_Info handle and dependencies
void init_rt_info (ACE_ENV_SINGLE_ARG_DECL);
@@ -67,10 +66,8 @@ private:
RtecScheduler::Scheduler_var scheduler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Kokyu_Scheduling.i"
+#include "EC_Kokyu_Scheduling.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.i b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.i
index 1afeb35fa05..b9dbd7d9dfc 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Kokyu_Scheduling.i
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Kokyu_Scheduling::TAO_EC_Kokyu_Scheduling (
RtecScheduler::Scheduler_ptr scheduler)
: scheduler_ (RtecScheduler::Scheduler::_duplicate (scheduler))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.cpp
index 9750da7a5d7..8bb0dcc711c 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Event/EC_Lifetime_Utils.h"
+#include "EC_Lifetime_Utils.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Lifetime_Utils.i"
+#include "EC_Lifetime_Utils.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h
index d34ce3ab484..9c180506dd6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Lifetime_Utils.h
*
@@ -18,7 +17,7 @@
#define TAO_EC_LIFETIME_UTILS_H
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/ORB.h"
@@ -27,8 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Object_Deactivator
*
@@ -207,10 +204,9 @@ private:
RtecEventChannelAdmin::EventChannel_var ec_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Lifetime_Utils.i"
+#include "EC_Lifetime_Utils.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.i b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.i
index 2884f04108d..535eda1f85d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Object_Deactivator::TAO_EC_Object_Deactivator (void)
: poa_ ()
@@ -175,5 +171,3 @@ TAO_EC_Event_Channel_Holder::init (
{
this->ec_ = ec_var;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.cpp
index 8a8d4934d40..a66ff2d6412 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.cpp
@@ -3,14 +3,12 @@
#ifndef TAO_EC_LIFETIME_UTILS_T_CPP
#define TAO_EC_LIFETIME_UTILS_T_CPP
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
+#include "EC_Lifetime_Utils_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.i"
+#include "EC_Lifetime_Utils_T.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <typename T>
void
activate (T & obj_ref,
@@ -46,6 +44,5 @@ activate (T & obj_ref,
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_EC_LIFETIME_UTILS_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h
index 85b98439126..0aeff3e86d7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Lifetime_Utils_T.h
*
@@ -17,14 +16,12 @@
#ifndef TAO_EC_LIFETIME_UTILS_T_H
#define TAO_EC_LIFETIME_UTILS_T_H
-#include "orbsvcs/Event/EC_Lifetime_Utils.h"
+#include "EC_Lifetime_Utils.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @brief Helper for activating objects.
* Activates @a servant with @a poa and returns the object reference via
@@ -186,14 +183,12 @@ bool operator!=(TAO_EC_Servant_Var<X> const & x,
TAO_EC_Servant_Var<Y> const & y);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.i"
+#include "EC_Lifetime_Utils_T.i"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Event/EC_Lifetime_Utils_T.cpp"
+#include "EC_Lifetime_Utils_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i
index e93998fee0f..fb527b3fe5e 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Lifetime_Utils_T.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T>
ACE_INLINE
TAO_EC_Auto_Command<T>::TAO_EC_Auto_Command (void)
@@ -113,15 +109,11 @@ TAO_EC_Shutdown_Command<T>::execute (ACE_ENV_SINGLE_ARG_DECL)
//***************************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// Life would be much easier if _add_ref() and _remove_ref()
// had throw specs of "throw ()"
#include <algorithm>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T>
ACE_INLINE TAO_EC_Servant_Var<T>::
TAO_EC_Servant_Var(T * p)
@@ -336,5 +328,3 @@ operator!=(TAO_EC_Servant_Var<X> const & x,
{
return x.in() != y.in();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp
index 096ae4c3ba0..d243e05c7ab 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.cpp
@@ -1,12 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_MT_Dispatching.h"
+#include "EC_MT_Dispatching.h"
ACE_RCSID(Event, EC_MT_Dispatching, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_MT_Dispatching::TAO_EC_MT_Dispatching (int nthreads,
int thread_creation_flags,
int thread_priority,
@@ -89,4 +86,3 @@ TAO_EC_MT_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
this->task_.push (proxy, consumer, event ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h
index b38b5a160fd..293fce9464b 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_MT_Dispatching.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_MT_Dispatching.h
*
@@ -17,15 +16,13 @@
#define TAO_EC_MT_DISPATCHING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
+#include "EC_Dispatching.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_Dispatching_Task.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Dispatching_Task.h"
/**
* @class TAO_EC_MT_Dispatching
@@ -92,7 +89,5 @@ private:
TAO_EC_Queue_Full_Service_Object* queue_full_service_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_MT_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp
index 0ab3197ef29..6e6e6a0fde6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Masked_Type_Filter.h"
+#include "EC_Masked_Type_Filter.h"
ACE_RCSID(Event, EC_Masked_Type_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Masked_Type_Filter::
TAO_EC_Masked_Type_Filter (CORBA::ULong source_mask,
CORBA::ULong type_mask,
@@ -124,5 +122,3 @@ TAO_EC_Masked_Type_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h
index 97a83d622ea..09027897e7f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Masked_Type_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Masked_Type_Filter.h
*
@@ -17,14 +16,12 @@
#define TAO_EC_MASKED_TYPE_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Masked_Type_Filter
*
@@ -74,8 +71,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Masked_Type_Filter (const TAO_EC_Masked_Type_Filter&);
- TAO_EC_Masked_Type_Filter& operator= (const TAO_EC_Masked_Type_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Masked_Type_Filter
+ (const TAO_EC_Masked_Type_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Masked_Type_Filter& operator=
+ (const TAO_EC_Masked_Type_Filter&))
private:
/// The bitmasks
@@ -87,7 +86,5 @@ private:
CORBA::ULong type_value_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_MASKED_TYPE_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp
index 204685379ac..de13c0f59a2 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.cpp
@@ -1,12 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_Negation_Filter.h"
+#include "EC_Negation_Filter.h"
ACE_RCSID(Event, EC_Negation_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_EC_Negation_Filter::TAO_EC_Negation_Filter (TAO_EC_Filter* child)
+TAO_EC_Negation_Filter::
+ TAO_EC_Negation_Filter (TAO_EC_Filter* child)
: child_ (child)
{
this->adopt_child (this->child_);
@@ -110,5 +109,3 @@ TAO_EC_Negation_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h
index f4f141f0e27..3dadaa50f5a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Negation_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Negation_Filter.h
*
@@ -17,15 +16,13 @@
#define TAO_EC_NEGATION_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include "EC_Filter.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Negation_Filter
*
@@ -72,15 +69,15 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Negation_Filter (const TAO_EC_Negation_Filter&);
- TAO_EC_Negation_Filter& operator= (const TAO_EC_Negation_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Negation_Filter
+ (const TAO_EC_Negation_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Negation_Filter& operator=
+ (const TAO_EC_Negation_Filter&))
private:
/// The child
TAO_EC_Filter* child_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_NEGATION_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp
index 5b829d361c6..9414cb975d9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp
@@ -1,19 +1,19 @@
// $Id$
-#include "orbsvcs/Event/EC_Null_Factory.h"
-#include "orbsvcs/Event/EC_Reactive_Dispatching.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Trivial_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
-#include "orbsvcs/Event/EC_Default_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Default_ProxySupplier.h"
-#include "orbsvcs/Event/EC_ObserverStrategy.h"
-#include "orbsvcs/Event/EC_Null_Scheduling.h"
-#include "orbsvcs/Event/EC_Reactive_Timeout_Generator.h"
-#include "orbsvcs/Event/EC_ConsumerControl.h"
-#include "orbsvcs/Event/EC_SupplierControl.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h" // @@ MSVC 6 bug
+#include "EC_Null_Factory.h"
+#include "EC_Reactive_Dispatching.h"
+#include "EC_Filter_Builder.h"
+#include "EC_Trivial_Supplier_Filter.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_SupplierAdmin.h"
+#include "EC_Default_ProxyConsumer.h"
+#include "EC_Default_ProxySupplier.h"
+#include "EC_ObserverStrategy.h"
+#include "EC_Null_Scheduling.h"
+#include "EC_Reactive_Timeout_Generator.h"
+#include "EC_ConsumerControl.h"
+#include "EC_SupplierControl.h"
+#include "EC_Event_Channel_Base.h" // @@ MSVC 6 bug
#include "orbsvcs/ESF/ESF_Proxy_List.h"
#include "orbsvcs/ESF/ESF_Immediate_Changes.h"
@@ -21,8 +21,6 @@
ACE_RCSID(Event, EC_Null_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Null_Factory::TAO_EC_Null_Factory (void)
{
}
@@ -238,4 +236,3 @@ TAO_EC_Null_Factory::destroy_supplier_control (TAO_EC_SupplierControl* x)
delete x;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h
index ca583ca5d13..9a93caef484 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Null_Factory.h
*
@@ -17,14 +16,12 @@
#define TAO_EC_NULL_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Factory.h"
+#include "EC_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Null_Factory
*
@@ -110,7 +107,5 @@ public:
destroy_supplier_control (TAO_EC_SupplierControl*);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_NULL_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp
index e17a6de3910..5b032866004 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_Null_Scheduling.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
+#include "EC_Null_Scheduling.h"
+#include "EC_QOS_Info.h"
+#include "EC_Supplier_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Null_Scheduling.i"
+#include "EC_Null_Scheduling.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Null_Scheduling, "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h
index 90857214aeb..26d8cbd0cbe 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
+#include "EC_Scheduling_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -47,12 +47,14 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Null_Scheduling (const TAO_EC_Null_Scheduling&);
- TAO_EC_Null_Scheduling& operator= (const TAO_EC_Null_Scheduling&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Null_Scheduling
+ (const TAO_EC_Null_Scheduling&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Null_Scheduling& operator=
+ (const TAO_EC_Null_Scheduling&))
};
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Null_Scheduling.i"
+#include "EC_Null_Scheduling.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp
index e5c5a9bc11d..0263f42c989 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/Event/EC_ObserverStrategy.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
+#include "EC_ObserverStrategy.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ProxySupplier.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_SupplierAdmin.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "ace/Auto_Ptr.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_ObserverStrategy.i"
+#include "EC_ObserverStrategy.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_ObserverStrategy, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_ObserverStrategy::~TAO_EC_ObserverStrategy (void)
{
}
@@ -512,5 +510,3 @@ TAO_EC_Accumulate_Consumer_Headers::work (TAO_EC_ProxyPushConsumer *consumer
this->headers_.insert (event.header, 1);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h
index 55b8874db7c..ca86257c99c 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.h
@@ -32,14 +32,9 @@
#include "orbsvcs/RtecEventChannelAdminC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushConsumer;
class TAO_EC_ProxyPushSupplier;
@@ -351,10 +346,8 @@ private:
TAO_EC_Basic_ObserverStrategy::Headers &headers_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_ObserverStrategy.i"
+#include "EC_ObserverStrategy.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.i b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.i
index 231db3f9417..07fa7ae19d0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ObserverStrategy.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Null_ObserverStrategy::TAO_EC_Null_ObserverStrategy (void)
{
@@ -77,5 +73,3 @@ TAO_EC_Accumulate_Consumer_Headers::
: headers_ (h)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp
index fe0ed5c6cc8..1eb2794a909 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.cpp
@@ -1,24 +1,22 @@
// $Id$
-#include "orbsvcs/Event/EC_Per_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Per_Supplier_Filter.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ProxySupplier.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_Scheduling_Strategy.h"
+#include "EC_QOS_Info.h"
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
#include "orbsvcs/Event_Service_Constants.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Per_Supplier_Filter.i"
+#include "EC_Per_Supplier_Filter.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Per_Supplier_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Per_Supplier_Filter::
TAO_EC_Per_Supplier_Filter (TAO_EC_Event_Channel_Base* ec)
: event_channel_ (ec),
@@ -209,5 +207,3 @@ TAO_EC_Per_Supplier_Filter_Builder::destroy (
{
delete x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h
index 868c15d4e00..ea5f674daf6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Per_Supplier_Filter.h
*
@@ -16,16 +16,14 @@
#define TAO_EC_PER_SUPPLIER_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_Supplier_Filter_Builder.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include "EC_Supplier_Filter.h"
+#include "EC_Supplier_Filter_Builder.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class PROXY> class TAO_ESF_Proxy_Collection;
class TAO_EC_Event_Channel_Base;
@@ -112,10 +110,8 @@ private:
TAO_EC_Event_Channel_Base* event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Per_Supplier_Filter.i"
+#include "EC_Per_Supplier_Filter.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.i b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.i
index 4c950811fcc..416f6b68726 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Per_Supplier_Filter.i
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Per_Supplier_Filter_Builder::
TAO_EC_Per_Supplier_Filter_Builder (TAO_EC_Event_Channel_Base* ec)
: event_channel_ (ec)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp
index 61b79c68726..ed97744f809 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.cpp
@@ -1,24 +1,22 @@
// $Id$
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Event/EC_Prefix_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Type_Filter.h"
-#include "orbsvcs/Event/EC_Conjunction_Filter.h"
-#include "orbsvcs/Event/EC_Disjunction_Filter.h"
-#include "orbsvcs/Event/EC_And_Filter.h"
-#include "orbsvcs/Event/EC_Negation_Filter.h"
-#include "orbsvcs/Event/EC_Bitmask_Filter.h"
-#include "orbsvcs/Event/EC_Masked_Type_Filter.h"
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
+#include "EC_Prefix_Filter_Builder.h"
+#include "EC_Type_Filter.h"
+#include "EC_Conjunction_Filter.h"
+#include "EC_Disjunction_Filter.h"
+#include "EC_And_Filter.h"
+#include "EC_Negation_Filter.h"
+#include "EC_Bitmask_Filter.h"
+#include "EC_Masked_Type_Filter.h"
+#include "EC_Timeout_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Prefix_Filter_Builder.i"
+#include "EC_Prefix_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Prefix_Filter_Builder, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Prefix_Filter_Builder::~TAO_EC_Prefix_Filter_Builder (void)
{
}
@@ -154,5 +152,3 @@ TAO_EC_Prefix_Filter_Builder:: recursive_build (
pos++; // Consume the event
return new TAO_EC_Type_Filter (e.header);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h
index 7938278e895..5a3cfafd7ad 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.h
@@ -16,15 +16,12 @@
#define TAO_EC_PREFIX_FILTER_BUILDER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
+#include "EC_Filter_Builder.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Filter;
class TAO_EC_Event_Channel_Base;
@@ -62,10 +59,8 @@ private:
TAO_EC_Event_Channel_Base* event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Prefix_Filter_Builder.i"
+#include "EC_Prefix_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.i b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.i
index c4ddf4074b0..c078591f226 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Prefix_Filter_Builder.i
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Prefix_Filter_Builder::
TAO_EC_Prefix_Filter_Builder (TAO_EC_Event_Channel_Base *ec)
: event_channel_ (ec)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp
index 1e41905c0ca..2942b19527f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Priority_Dispatching.h"
-#include "orbsvcs/Event/EC_Dispatching_Task.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Priority_Dispatching.h"
+#include "EC_Dispatching_Task.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_QOS_Info.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "orbsvcs/RtecSchedulerC.h"
@@ -12,8 +12,6 @@
ACE_RCSID(Event, EC_Priority_Dispatching, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Priority_Dispatching::TAO_EC_Priority_Dispatching (TAO_EC_Event_Channel_Base *ec)
: ntasks_ (0),
tasks_ (0)
@@ -137,5 +135,3 @@ TAO_EC_Priority_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
this->tasks_[i]->push (proxy, consumer, event ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.h
index ebbb6cd6085..68e7f4b927b 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Dispatching.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Priority_Dispatching.h
*
@@ -17,19 +16,17 @@
#define TAO_EC_PRIORITY_DISPATCHING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
+#include "EC_Dispatching.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/sched_event_export.h"
+#include "sched_event_export.h"
#include "ace/Thread_Manager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Dispatching_Task;
class TAO_EC_Event_Channel_Base;
@@ -84,7 +81,5 @@ private:
RtecScheduler::Scheduler_var scheduler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_PRIORITY_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp
index 0bf92510d54..ce5fd2843e5 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Event/EC_Priority_Scheduling.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
+#include "EC_Priority_Scheduling.h"
+#include "EC_QOS_Info.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_ProxySupplier.h"
+#include "EC_Supplier_Filter.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Priority_Scheduling.i"
+#include "EC_Priority_Scheduling.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Priority_Scheduling, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Priority_Scheduling::~TAO_EC_Priority_Scheduling (void)
{
}
@@ -96,5 +94,3 @@ TAO_EC_Priority_Scheduling::schedule_event (const RtecEventComm::EventSet &event
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h
index ef5be319f06..a8a1fee8960 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Priority_Scheduling.h
*
@@ -17,16 +16,14 @@
#define TAO_EC_PRIORITY_SCHEDULING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
+#include "EC_Scheduling_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/sched_event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "sched_event_export.h"
/**
* @class TAO_EC_Priority_Scheduling
@@ -55,8 +52,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Priority_Scheduling (const TAO_EC_Priority_Scheduling&);
- TAO_EC_Priority_Scheduling& operator= (const TAO_EC_Priority_Scheduling&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Priority_Scheduling
+ (const TAO_EC_Priority_Scheduling&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Priority_Scheduling& operator=
+ (const TAO_EC_Priority_Scheduling&))
/// Initialize our RT_Info handle and dependencies
void init_rt_info (ACE_ENV_SINGLE_ARG_DECL);
@@ -66,10 +65,8 @@ private:
RtecScheduler::Scheduler_var scheduler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Priority_Scheduling.i"
+#include "EC_Priority_Scheduling.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.i b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.i
index 2de353d965e..af004f6fcde 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.i
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Priority_Scheduling::TAO_EC_Priority_Scheduling (
RtecScheduler::Scheduler_ptr scheduler)
: scheduler_ (RtecScheduler::Scheduler::_duplicate (scheduler))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp
index f16960141c1..dde5347cec6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_Supplier_Filter_Builder.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_Supplier_Filter.h"
+#include "EC_Supplier_Filter_Builder.h"
#include "ace/Reverse_Lock_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_ProxyConsumer.i"
+#include "EC_ProxyConsumer.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_ProxyConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_EC_Unlock;
TAO_EC_ProxyPushConsumer::
@@ -306,5 +304,3 @@ TAO_EC_ProxyPushConsumer_Guard::
this->proxy_->refcount_zero_hook ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h
index e70e0ee6ca2..b61ee0885c7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_ProxyConsumer.h
*
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
@@ -25,8 +25,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushSupplier;
class TAO_EC_Supplier_Filter;
@@ -227,10 +225,8 @@ private:
int locked_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_ProxyConsumer.i"
+#include "EC_ProxyConsumer.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.i b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.i
index 44ef91ef2e7..c6890fff743 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxyConsumer.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_EC_ProxyPushConsumer::is_connected_i (void) const
{
@@ -67,5 +63,3 @@ TAO_EC_ProxyPushConsumer_Guard::locked (void) const
{
return this->locked_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp
index 37204dcf67b..1fb8ea7bbfe 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.cpp
@@ -1,28 +1,26 @@
// $Id$
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
-#include "orbsvcs/Event/EC_ConsumerControl.h"
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
+#include "EC_ProxySupplier.h"
+#include "EC_Dispatching.h"
+#include "EC_Filter_Builder.h"
+#include "EC_QOS_Info.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_Scheduling_Strategy.h"
+#include "EC_ConsumerControl.h"
+#include "EC_SupplierAdmin.h"
#include "orbsvcs/ESF/ESF_RefCount_Guard.h"
#include "orbsvcs/ESF/ESF_Proxy_RefCount_Guard.h"
#include "ace/Reverse_Lock_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_ProxySupplier.i"
+#include "EC_ProxySupplier.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_ProxySupplier,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Reverse_Lock<ACE_Lock> TAO_EC_Unlock;
TAO_EC_ProxyPushSupplier::TAO_EC_ProxyPushSupplier (TAO_EC_Event_Channel_Base* ec, int validate_connection)
@@ -531,5 +529,3 @@ TAO_EC_ProxyPushSupplier::add_dependencies (
qos_info
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h
index bb14e56895b..769dc42ef80 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_ProxySupplier.h
*
@@ -19,14 +19,12 @@
#include "orbsvcs/RtecEventChannelAdminS.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushConsumer;
@@ -220,10 +218,8 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_ProxySupplier.i"
+#include "EC_ProxySupplier.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.i b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.i
index c64085ea2e1..d0e06a7b0a6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_ProxySupplier.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_EC_ProxyPushSupplier::suspend_connection_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -95,5 +91,3 @@ TAO_EC_ProxyPushSupplier::subscriptions (void) const
return this->qos_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp
index 557a2b4f708..c53100ca0c6 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.cpp
@@ -6,9 +6,7 @@
* @author Carlos O'Ryan <coryan@atdesk.com>
*/
-#include "orbsvcs/Event/EC_Proxy_Disconnector.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Proxy_Disconnector.h"
void
TAO_EC_Supplier_Proxy_Disconnect_Functor::operator() (
@@ -43,5 +41,3 @@ TAO_EC_Consumer_Proxy_Disconnect_Functor::operator() (
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h
index 8aeda423586..da6b6a2972e 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Proxy_Disconnector.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
/**
* @file EC_Proxy_Disconnector.h
*
@@ -10,12 +8,10 @@
#ifndef EC_PROXY_DISCONNECTOR__H_
#define EC_PROXY_DISCONNECTOR__H_
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecEventCommC.h"
#include "ace/Auto_Functor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @struct TAO_EC_Supplier_Proxy_Disconnect_Functor
*
@@ -71,6 +67,4 @@ typedef ACE_Utils::Auto_Functor<
TAO_EC_Consumer_Proxy_Disconnector;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // EC_PROXY_DISCONNECTOR__H_
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.cpp
index 4680bda962f..a2c8154ff76 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_QOS_Info.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_QOS_Info.i"
+#include "EC_QOS_Info.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_QOS_Info, "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h
index 88c9387e382..966ebb90667 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_QOS_Info.h
*
@@ -20,14 +19,12 @@
#include "orbsvcs/RtecBaseC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_QOS_Info
*
@@ -59,10 +56,8 @@ public:
long timer_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_QOS_Info.i"
+#include "EC_QOS_Info.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.i b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.i
index eab42f031bc..40a0f0facd8 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_QOS_Info.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_QOS_Info::TAO_EC_QOS_Info (void)
: rt_info (-1),
@@ -19,5 +15,3 @@ TAO_EC_QOS_Info::TAO_EC_QOS_Info (const TAO_EC_QOS_Info &rhs)
timer_id_ (rhs.timer_id_)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp
index f57b86ae813..3de61363002 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_RTCORBA_Dispatching.h"
+#include "EC_RTCORBA_Dispatching.h"
#include "tao/RTCORBA/Priority_Mapping.h"
ACE_RCSID(Event, EC_RTCORBA_Dispatching, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_RTCORBA_Dispatching::
TAO_EC_RTCORBA_Dispatching (const RTCORBA::ThreadpoolLanes &lanes,
RTCORBA::PriorityMapping *mapping,
@@ -102,5 +100,3 @@ TAO_EC_RTCORBA_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
break;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.h
index cb6e87fdad2..a4f80a3beb0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Dispatching.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_RTCORBA_Dispatching.h
*
@@ -16,17 +16,16 @@
#define TAO_EC_RTCORBA_DISPATCHING_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/rtcorba_event_export.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
+#include "rtcorba_event_export.h"
+#include "EC_Dispatching.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_Dispatching_Task.h"
+#include "EC_Dispatching_Task.h"
#include "tao/RTCORBA/RTCORBA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_EC_RTCORBA_Dispatching
@@ -76,7 +75,5 @@ private:
TAO_EC_Dispatching_Task *tasks_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_RTCORBA_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp
index 087ffc53b03..3473a34d4db 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Event/EC_RTCORBA_Dispatching.h"
-#include "orbsvcs/Event/EC_RTCORBA_Factory.h"
+#include "EC_RTCORBA_Dispatching.h"
+#include "EC_RTCORBA_Factory.h"
#include "tao/RTCORBA/Priority_Mapping_Manager.h"
ACE_RCSID(Event, EC_RTCORBA_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_RTCORBA_Factory::
TAO_EC_RTCORBA_Factory (TAO_EC_Factory *body,
const RTCORBA::ThreadpoolLanes &lanes)
@@ -23,7 +21,7 @@ TAO_EC_RTCORBA_Factory::~TAO_EC_RTCORBA_Factory (void)
int
-TAO_EC_RTCORBA_Factory::init (int argc, char* argv[])
+TAO_EC_RTCORBA_Factory::init (int argc, ACE_TCHAR* argv[])
{
return this->body_->init (argc, argv);
}
@@ -273,4 +271,3 @@ TAO_EC_RTCORBA_Factory::destroy_supplier_control (TAO_EC_SupplierControl* x)
this->body_->destroy_supplier_control (x);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.h
index a76bc59f73d..ae5a45dc710 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_RTCORBA_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_RTCORBA_Factory.h
*
@@ -16,16 +16,14 @@
#define TAO_EC_RTCORBA_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/rtcorba_event_export.h"
-#include "orbsvcs/Event/EC_Factory.h"
+#include "rtcorba_event_export.h"
+#include "EC_Factory.h"
#include "tao/RTCORBA/RTCORBA.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_RTCORBA_Factory
*
@@ -46,7 +44,7 @@ public:
virtual ~TAO_EC_RTCORBA_Factory (void);
// Decorated methods...
- virtual int init (int argc, char* argv[]);
+ virtual int init (int argc, ACE_TCHAR* argv[]);
virtual int fini (void);
virtual TAO_EC_Dispatching*
create_dispatching (TAO_EC_Event_Channel_Base*);
@@ -117,7 +115,5 @@ protected:
RTCORBA::ThreadpoolLanes lanes_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_RTCORBA_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp
index a8aafe81f0b..8fe8f6cbcff 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_Reactive_ConsumerControl.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h" // @@ MSVC 6 bug
+#include "EC_ConsumerAdmin.h"
+#include "EC_Reactive_ConsumerControl.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ProxySupplier.h"
+#include "EC_ProxyConsumer.h" // @@ MSVC 6 bug
#include "tao/Messaging/Messaging.h"
#include "tao/ORB_Core.h"
@@ -12,13 +12,11 @@
#include "ace/Reactor.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Reactive_ConsumerControl.i"
+#include "EC_Reactive_ConsumerControl.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Reactive_ConsumerControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Reactive_ConsumerControl::
TAO_EC_Reactive_ConsumerControl (const ACE_Time_Value &rate,
const ACE_Time_Value &timeout,
@@ -272,5 +270,3 @@ TAO_EC_Ping_Consumer::work (TAO_EC_ProxyPushSupplier *supplier
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h
index d6e8cf176d5..1a3728d790f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Reactive_ConsumerControl.h
*
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_ConsumerControl.h"
+#include "EC_ConsumerControl.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,8 +30,6 @@
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_Reactive_ConsumerControl;
@@ -144,10 +142,8 @@ private:
TAO_EC_ConsumerControl *control_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Reactive_ConsumerControl.i"
+#include "EC_Reactive_ConsumerControl.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.i b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.i
index d365ca2ae4d..08e2174e57d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_ConsumerControl.i
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Ping_Consumer::TAO_EC_Ping_Consumer (TAO_EC_ConsumerControl *control)
: control_ (control)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp
index eb7b1bd5b7d..ee376503697 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_Reactive_Dispatching.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
+#include "EC_Reactive_Dispatching.h"
+#include "EC_ProxySupplier.h"
ACE_RCSID(Event, EC_Reactive_Dispatching, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Reactive_Dispatching::TAO_EC_Reactive_Dispatching (void)
: TAO_EC_Dispatching ()
{
@@ -41,5 +39,3 @@ TAO_EC_Reactive_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
{
proxy->reactive_push_to_consumer (consumer, event ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h
index 0ef3be3bedb..d5c3f56873d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Dispatching.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Reactive_Dispatching.h
*
@@ -18,16 +17,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
+#include "EC_Dispatching.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Reactive_Dispatching
*
@@ -58,8 +55,6 @@ public:
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_REACTIVE_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp
index 10cdcd05bdb..cdb3dc88a4d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
-#include "orbsvcs/Event/EC_Reactive_SupplierControl.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h" // @@ MSVC 6 bug
+#include "EC_SupplierAdmin.h"
+#include "EC_Reactive_SupplierControl.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_ProxySupplier.h" // @@ MSVC 6 bug
#include "tao/Messaging/Messaging.h"
#include "tao/ORB_Core.h"
@@ -12,13 +12,11 @@
#include "ace/Reactor.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Reactive_SupplierControl.i"
+#include "EC_Reactive_SupplierControl.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Reactive_SupplierControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Reactive_SupplierControl::
TAO_EC_Reactive_SupplierControl (const ACE_Time_Value &rate,
const ACE_Time_Value &timeout,
@@ -262,5 +260,3 @@ TAO_EC_Ping_Supplier::work (TAO_EC_ProxyPushConsumer *consumer
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h
index 141ddf9668c..cf0fdbc0a88 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Reactive_SupplierControl.h
*
@@ -18,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_SupplierControl.h"
+#include "EC_SupplierControl.h"
#include "orbsvcs/ESF/ESF_Worker.h"
@@ -31,8 +30,6 @@
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_Reactive_SupplierControl;
@@ -155,10 +152,8 @@ private:
TAO_EC_SupplierControl *control_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Reactive_SupplierControl.i"
+#include "EC_Reactive_SupplierControl.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.i b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.i
index 3ffaf226464..0bd62d884aa 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_SupplierControl.i
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Ping_Supplier::TAO_EC_Ping_Supplier (TAO_EC_SupplierControl *control)
: control_ (control)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp
index fbdfb022768..984ca0f7a7d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Event/EC_Reactive_Timeout_Generator.h"
+#include "EC_Reactive_Timeout_Generator.h"
#include "ace/Reactor.h"
ACE_RCSID (Event,
EC_Reactive_Timeout_Generator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Reactive_Timeout_Generator::
TAO_EC_Reactive_Timeout_Generator (ACE_Reactor *reactor)
: reactor_ (reactor)
@@ -52,5 +50,3 @@ TAO_EC_Reactive_Timeout_Generator::cancel_timer (
return this->reactor_->cancel_timer (id, &vp);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h
index 8ab4d18da31..454596f6ef7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Reactive_Timeout_Generator.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Reactive_Timeout_Generator.h
*
@@ -18,14 +17,12 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Timeout_Generator.h"
+#include "EC_Timeout_Generator.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Reactive_Timeout_Generator
*
@@ -63,8 +60,6 @@ private:
TAO_EC_Timeout_Adapter event_handler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_REACTIVE_TIMEOUT_GENERATOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp
index 66c4afcc9ac..47abbb9b9ed 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_Sched_Factory.h"
-#include "orbsvcs/Event/EC_Priority_Dispatching.h"
-#include "orbsvcs/Event/EC_Priority_Scheduling.h"
-#include "orbsvcs/Event/EC_Sched_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_Sched_Factory.h"
+#include "EC_Priority_Dispatching.h"
+#include "EC_Priority_Scheduling.h"
+#include "EC_Sched_Filter_Builder.h"
+#include "EC_Event_Channel_Base.h"
#include "orbsvcs/RtecSchedulerC.h"
#include "ace/Arg_Shifter.h"
@@ -12,13 +12,11 @@
#include "ace/OS_NS_strings.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Sched_Factory.i"
+#include "EC_Sched_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Sched_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Sched_Factory::~TAO_EC_Sched_Factory (void)
{
}
@@ -212,8 +210,6 @@ TAO_EC_Sched_Factory::create_scheduling_strategy (TAO_EC_Event_Channel_Base* ec)
return this->TAO_EC_Sched_Factory::create_scheduling_strategy (ec);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_EC_Sched_Factory,
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.h
index b7b82d791fc..14901aba015 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Sched_Factory.h
*
@@ -16,15 +16,13 @@
#define TAO_EC_SCHED_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "EC_Default_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/sched_event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "sched_event_export.h"
/**
* @class TAO_EC_Sched_Factory
@@ -58,10 +56,8 @@ public:
private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Sched_Factory.i"
+#include "EC_Sched_Factory.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE (TAO_EC_Sched_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.i b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.i
index 84cbe2d4a4d..f3b79f082a5 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Factory.i
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Sched_Factory::TAO_EC_Sched_Factory (void)
: TAO_EC_Default_Factory ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp
index 3eb8e03e214..514d483c9ce 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_Sched_Filter.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Sched_Filter.h"
+#include "EC_QOS_Info.h"
#include "ace/Log_Msg.h"
ACE_RCSID(Event, EC_Sched_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Sched_Filter::
TAO_EC_Sched_Filter (const char* name,
RtecScheduler::handle_t rt_info,
@@ -279,5 +277,3 @@ TAO_EC_Sched_Filter::init_rt_info (ACE_ENV_SINGLE_ARG_DECL)
this->rt_info_computed_ = 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.h
index 5645a6eac92..af1d172d130 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_Sched_Filter.h
*
@@ -16,18 +16,16 @@
#define TAO_EC_SCHED_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Event/sched_event_export.h"
+#include "sched_event_export.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Sched_Filter
*
@@ -87,8 +85,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Sched_Filter (const TAO_EC_Sched_Filter&);
- TAO_EC_Sched_Filter& operator= (const TAO_EC_Sched_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Sched_Filter
+ (const TAO_EC_Sched_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Sched_Filter& operator=
+ (const TAO_EC_Sched_Filter&))
/// Initialize our RT_Info handle and dependencies
void init_rt_info (ACE_ENV_SINGLE_ARG_DECL);
@@ -123,7 +123,5 @@ private:
RtecScheduler::Info_Type_t info_type_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_SCHED_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp
index 95ef9e1886e..2070df1c0d0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.cpp
@@ -1,24 +1,21 @@
// $Id$
-#include "orbsvcs/Event/EC_Sched_Filter.h"
+#include "EC_Sched_Filter.h"
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Event/EC_Sched_Filter_Builder.h"
-#include "orbsvcs/Event/EC_Type_Filter.h"
-#include "orbsvcs/Event/EC_Conjunction_Filter.h"
-#include "orbsvcs/Event/EC_Disjunction_Filter.h"
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_Sched_Filter_Builder.h"
+#include "EC_Type_Filter.h"
+#include "EC_Conjunction_Filter.h"
+#include "EC_Disjunction_Filter.h"
+#include "EC_Timeout_Filter.h"
+#include "EC_Event_Channel_Base.h"
#include "ace/OS_NS_stdio.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Sched_Filter_Builder.i"
+#include "EC_Sched_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Sched_Filter_Builder, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Sched_Filter_Builder::~TAO_EC_Sched_Filter_Builder (void)
{
}
@@ -331,5 +328,3 @@ TAO_EC_Sched_Filter_Builder::
}
return i - 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.h
index c649518ecbe..229ee5a8ea5 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Sched_Filter_Builder.h
*
@@ -17,15 +16,13 @@
#define TAO_EC_SCHED_FILTER_BUILDER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter_Builder.h"
+#include "EC_Filter_Builder.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/sched_event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "sched_event_export.h"
class TAO_EC_Filter;
class TAO_EC_Event_Channel_Base;
@@ -79,10 +76,8 @@ private:
TAO_EC_Event_Channel_Base* event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Sched_Filter_Builder.i"
+#include "EC_Sched_Filter_Builder.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.i b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.i
index a00dfd725c5..06ca9c32485 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Sched_Filter_Builder.i
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Sched_Filter_Builder::
TAO_EC_Sched_Filter_Builder (TAO_EC_Event_Channel_Base *ec)
: event_channel_ (ec)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp
index 76be60d02ec..311f0a86447 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.cpp
@@ -1,14 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Scheduling_Strategy.h"
+#include "EC_QOS_Info.h"
ACE_RCSID(Event, EC_Scheduling_Strategy, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Scheduling_Strategy::~TAO_EC_Scheduling_Strategy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h
index 08d3a6bf5c2..adc320a3167 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Scheduling_Strategy.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Scheduling_Strategy.h
*
@@ -18,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#include "orbsvcs/RtecBaseC.h"
#include "orbsvcs/RtecEventCommC.h"
@@ -27,8 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_ProxyPushConsumer;
class TAO_EC_ProxyPushSupplier;
class TAO_EC_Supplier_Filter;
@@ -66,8 +63,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_SCHEDULING_STRATEGY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp
index fb555cf3e95..f980f81485e 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.cpp
@@ -1,17 +1,15 @@
// $Id$
-#include "orbsvcs/Event/EC_SupplierAdmin.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
+#include "EC_SupplierAdmin.h"
+#include "EC_ProxyConsumer.h"
+#include "EC_ProxySupplier.h"
+#include "EC_Event_Channel_Base.h"
#include "orbsvcs/ESF/ESF_Peer_Workers.h"
#include "orbsvcs/ESF/ESF_Peer_Admin.h"
#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
ACE_RCSID(Event, EC_SupplierAdmin, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_SupplierAdmin::TAO_EC_SupplierAdmin (TAO_EC_Event_Channel_Base *ec)
: TAO_ESF_Peer_Admin<TAO_EC_Event_Channel_Base,TAO_EC_ProxyPushConsumer,RtecEventChannelAdmin::ProxyPushConsumer,TAO_EC_ProxyPushSupplier> (ec)
{
@@ -35,5 +33,3 @@ TAO_EC_SupplierAdmin::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return PortableServer::POA::_duplicate (this->default_POA_.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h
index 44e9edb8dc9..4b55624fcd7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierAdmin.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_SupplierAdmin.h
*
@@ -18,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h"
+#include "EC_ProxyConsumer.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,9 +25,7 @@
#include "orbsvcs/ESF/ESF_Peer_Admin.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushSupplier;
@@ -66,8 +63,6 @@ private:
PortableServer::POA_var default_POA_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_SUPPLIERADMIN_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp
index 7d73bfbaf53..94c7a2f58b0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_SupplierControl.h"
+#include "EC_SupplierControl.h"
ACE_RCSID(Event, EC_SupplierControl, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_SupplierControl::TAO_EC_SupplierControl (void)
{
}
@@ -39,4 +37,3 @@ TAO_EC_SupplierControl::system_exception (TAO_EC_ProxyPushConsumer *,
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h
index e4247d13b5b..364a782928f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_SupplierControl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_SupplierControl.h
*
@@ -23,11 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
class TAO_EC_ProxyPushConsumer;
@@ -74,8 +69,6 @@ public:
ACE_ENV_ARG_DECL_NOT_USED);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_SUPPLIERCONTROL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp
index 1f424fd0575..9267b8c4bbd 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.cpp
@@ -1,17 +1,15 @@
// $Id$
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
+#include "EC_Supplier_Filter.h"
+#include "EC_ProxySupplier.h"
+#include "EC_QOS_Info.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Supplier_Filter.i"
+#include "EC_Supplier_Filter.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_Supplier_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Supplier_Filter::~TAO_EC_Supplier_Filter (void)
{
}
@@ -25,5 +23,3 @@ TAO_EC_Filter_Worker::work (TAO_EC_ProxyPushSupplier *supplier
TAO_EC_QOS_Info qos_info = this->event_info_;
supplier->filter (this->event_, qos_info ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h
index 898fdc45e02..081348d3a3a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Supplier_Filter.h
*
@@ -21,14 +20,12 @@
#include "orbsvcs/RtecEventCommC.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_ProxyPushSupplier;
class TAO_EC_ProxyPushConsumer;
class TAO_EC_QOS_Info;
@@ -140,10 +137,8 @@ private:
const TAO_EC_QOS_Info &event_info_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Supplier_Filter.i"
+#include "EC_Supplier_Filter.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.i b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.i
index 9b09afb3d74..4e4eae7779b 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Filter_Worker::TAO_EC_Filter_Worker (RtecEventComm::EventSet &event,
const TAO_EC_QOS_Info &event_info)
@@ -11,5 +7,3 @@ TAO_EC_Filter_Worker::TAO_EC_Filter_Worker (RtecEventComm::EventSet &event,
event_info_ (event_info)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp
index 63203a004fa..a090b438772 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.cpp
@@ -1,13 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Supplier_Filter_Builder.h"
+#include "EC_Supplier_Filter_Builder.h"
ACE_RCSID(Event, EC_Supplier_Filter_Builder, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Supplier_Filter_Builder::~TAO_EC_Supplier_Filter_Builder (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h
index d81cab67d94..627c07825c7 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Supplier_Filter_Builder.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Supplier_Filter_Builder.h
*
@@ -20,14 +19,12 @@
#include "orbsvcs/RtecEventChannelAdminC.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Supplier_Filter;
class TAO_EC_ProxyPushConsumer;
@@ -58,8 +55,6 @@ public:
destroy (TAO_EC_Supplier_Filter *filter) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp
index 1b06a04dca7..d90ca8c4678 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.cpp
@@ -1,7 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_TPC_Dispatching.h"
-#include "orbsvcs/Event/EC_Defaults.h"
+extern unsigned long EC_TPC_debug_level;
+
+#include "EC_TPC_Dispatching.h"
+#include "EC_Defaults.h"
#include <ace/Dynamic_Service.h>
@@ -11,10 +13,6 @@ ACE_RCSID(Event, EC_TPC_Dispatching, "$Id$")
#define TAO_EC_TPC_DISPATCHING_DEFAULT_MAP_SIZE 32
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-extern unsigned long EC_TPC_debug_level;
-
TAO_EC_TPC_Dispatching::TAO_EC_TPC_Dispatching (TAO_EC_Queue_Full_Service_Object* so)
: consumer_task_map_(TAO_EC_TPC_DISPATCHING_DEFAULT_MAP_SIZE)
, queue_full_service_object_(so)
@@ -132,7 +130,7 @@ TAO_EC_TPC_Dispatching::shutdown (void)
MAPTYPE::ITERATOR iter = this->consumer_task_map_.begin ();
while (! iter.done())
{
- MAPTYPE::ENTRY* entry = 0;
+ MAPTYPE::ENTRY* entry;
if (! iter.next(entry))
continue;
@@ -147,7 +145,7 @@ TAO_EC_TPC_Dispatching::shutdown (void)
iter = this->consumer_task_map_.begin ();
while (! iter.done())
{
- MAPTYPE::ENTRY* entry = 0;
+ MAPTYPE::ENTRY* entry;
if (! iter.next(entry))
continue;
@@ -194,5 +192,3 @@ TAO_EC_TPC_Dispatching::push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h
index b8c7ea49cd3..ca00b72aa90 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_TPC_Dispatching.h
*
@@ -14,17 +13,14 @@
#include /**/ "ace/pre.h"
#include "ace/Hash_Map_Manager_T.h"
-#include "ace/Null_Mutex.h"
-#include "orbsvcs/Event/EC_Dispatching.h"
+#include "EC_Dispatching.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_TPC_Dispatching_Task.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_TPC_Dispatching_Task.h"
class TAO_EC_Event_Channel_Base;
@@ -79,7 +75,5 @@ private:
// @@ check to see how the factory gets released...
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_TPC_DISPATCHING_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.cpp
index f70fb6aeac9..5de281b24cd 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.cpp
@@ -1,9 +1,8 @@
// $Id$
-#include "orbsvcs/Event/EC_TPC_Dispatching_Task.h"
+#include "EC_TPC_Dispatching_Task.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+//ACE_RCS_ID(RTEvent, EC_TPC_Dispatching_Task, "$Id$")
TAO_EC_TPC_Dispatching_Task::TAO_EC_TPC_Dispatching_Task
(ACE_Thread_Manager* thr_mgr,
@@ -13,10 +12,9 @@ TAO_EC_TPC_Dispatching_Task::TAO_EC_TPC_Dispatching_Task
}
int
-TAO_EC_TPC_Dispatching_Task::close (u_long /* flags */)
+TAO_EC_TPC_Dispatching_Task::close (u_long flags)
{
+ ACE_UNUSED_ARG (flags);
delete this;
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.h
index ff92abce00b..a952937da1f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Dispatching_Task.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_TPC_Dispatching_Task.h
*
@@ -12,14 +11,12 @@
#define TAO_EC_TPC_DISPATCHING_TASK_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Dispatching_Task.h"
+#include "EC_Dispatching_Task.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTEvent_Serv_Export TAO_EC_TPC_Dispatching_Task : public TAO_EC_Dispatching_Task
{
public:
@@ -28,7 +25,5 @@ public:
virtual int close (u_long flags = 0);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_TPC_DISPATCHING_TASK_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp
index c8e822ed5b9..5d5120c3898 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/Event/EC_TPC_Factory.h"
+#include "EC_TPC_Factory.h"
-#include "orbsvcs/Event/EC_TPC_Dispatching.h"
-#include "orbsvcs/Event/EC_TPC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_TPC_ProxyConsumer.h"
+#include "EC_TPC_Dispatching.h"
+#include "EC_TPC_ProxySupplier.h"
+#include "EC_TPC_ProxyConsumer.h"
#include "tao/ORB_Core.h"
@@ -14,8 +14,6 @@
ACE_RCSID(Event, EC_TPC_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
unsigned long EC_TPC_debug_level;
TAO_EC_TPC_Factory::TAO_EC_TPC_Factory (void)
@@ -36,15 +34,15 @@ TAO_EC_TPC_Factory::init_svcs (void)
}
int
-TAO_EC_TPC_Factory::init (int argc, char* argv[])
+TAO_EC_TPC_Factory::init (int argc, ACE_TCHAR* argv[])
{
ACE_Arg_Shifter arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
- const char *arg = arg_shifter.get_current ();
+ const ACE_TCHAR *arg = arg_shifter.get_current ();
- if (ACE_OS::strcasecmp (arg, "-ECDispatching") == 0)
+ if (ACE_OS::strcasecmp (arg, ACE_TEXT("-ECDispatching")) == 0)
{
arg_shifter.consume_arg ();
@@ -60,7 +58,7 @@ TAO_EC_TPC_Factory::init (int argc, char* argv[])
arg_shifter.consume_arg ();
}
}
- if (ACE_OS::strcasecmp (arg, "-ECTPCDebug") == 0)
+ if (ACE_OS::strcasecmp (arg, ACE_TEXT("-ECTPCDebug")) == 0)
{
arg_shifter.consume_arg ();
++EC_TPC_debug_level;
@@ -108,7 +106,6 @@ TAO_EC_TPC_Factory::create_proxy_push_consumer (TAO_EC_Event_Channel_Base *ec)
return new TAO_EC_TPC_ProxyPushConsumer (ec);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
// ****************************************************************
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h
index c65e5be61cc..414c44d20e9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_TPC_Factory.h
*
@@ -10,14 +10,12 @@
#define TAO_EC_TPC_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "EC_Default_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_TPC_Factory
*
@@ -43,7 +41,7 @@ public:
static int init_svcs (void);
// = The Service_Object entry points
- virtual int init (int argc, char* argv[]);
+ virtual int init (int argc, ACE_TCHAR* argv[]);
// = The EC_Factory methods
virtual TAO_EC_Dispatching*
@@ -58,8 +56,6 @@ public:
extern unsigned long EC_TPC_debug_level;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_EC_TPC_Factory)
ACE_FACTORY_DECLARE (TAO_RTEvent_Serv, TAO_EC_TPC_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp
index 6a7cc347cb1..c3abe25b30a 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/Event/EC_TPC_ProxyConsumer.h"
+#include "EC_TPC_ProxyConsumer.h"
ACE_RCSID(Event, EC_TPC_ProxyConsumer, "$Id$")
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_TPC_Dispatching.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Event_Channel_Base.h"
+#include "EC_TPC_Dispatching.h"
extern unsigned long EC_TPC_debug_level;
@@ -51,5 +49,3 @@ TAO_EC_TPC_ProxyPushConsumer::disconnect_push_consumer (
BASECLASS::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h
index 9fb7ff1dc0c..a098c3f8c4e 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxyConsumer.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_TPC_ProxyConsumer.h
*
@@ -13,14 +12,12 @@
#define TAO_EC_TPC_PROXYCONSUMER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Default_ProxyConsumer.h"
+#include "EC_Default_ProxyConsumer.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Dispatching;
class TAO_EC_TPC_Dispatching;
@@ -43,8 +40,6 @@ private:
TAO_EC_TPC_Dispatching* tpc_dispatching ();
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp
index 6ead39a342e..b431002f2bb 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.cpp
@@ -1,17 +1,15 @@
// $Id$
-#include "orbsvcs/Event/EC_TPC_ProxySupplier.h"
+#include "EC_TPC_ProxySupplier.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_TPC_ProxySupplier.i"
+#include "EC_TPC_ProxySupplier.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Event, EC_TPC_ProxySupplier, "$Id$")
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_TPC_Dispatching.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Event_Channel_Base.h"
+#include "EC_TPC_Dispatching.h"
extern unsigned long EC_TPC_debug_level;
@@ -73,4 +71,3 @@ TAO_EC_TPC_ProxyPushSupplier::connect_push_consumer (
tpcdispatcher->add_consumer (push_consumer ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h
index 345b17c0619..0bb31a1698f 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
/**
* @file EC_TPC_ProxySupplier.h
*
@@ -12,14 +12,12 @@
#define TAO_EC_TPC_PROXYSUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Default_ProxySupplier.h"
+#include "EC_Default_ProxySupplier.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Dispatching;
class TAO_EC_TPC_Dispatching;
@@ -53,10 +51,8 @@ private:
TAO_EC_TPC_Dispatching* tpc_dispatching ();
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_TPC_ProxySupplier.i"
+#include "EC_TPC_ProxySupplier.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.i b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.i
index 6a31a5fc0d1..7120a4017f2 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_TPC_ProxySupplier.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
extern unsigned long EC_TPC_debug_level;
ACE_INLINE
@@ -14,4 +10,3 @@ TAO_EC_TPC_ProxyPushSupplier::TAO_EC_TPC_ProxyPushSupplier (TAO_EC_Event_Channel
ACE_DEBUG ((LM_DEBUG, "(%P|%t) EC_TPC_ProxyPushSupplier::CTOR (%@)\n", this));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp
index 3b479983a13..e4e812f95b9 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
-#include "orbsvcs/Event/EC_Timeout_Generator.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
+#include "EC_Timeout_Filter.h"
+#include "EC_Timeout_Generator.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ProxySupplier.h"
#include "orbsvcs/Time_Utilities.h"
#include "orbsvcs/Event_Service_Constants.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Timeout_Filter.i"
+#include "EC_Timeout_Filter.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Timeout_Filter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Timeout_Filter::TAO_EC_Timeout_Filter (
TAO_EC_Event_Channel_Base *event_channel,
TAO_EC_ProxyPushSupplier *supplier,
@@ -167,5 +165,3 @@ TAO_EC_Timeout_Filter::add_dependencies (
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h
index 0658f0b0b46..8e1bf7b45ac 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Timeout_Filter.h
*
@@ -18,15 +17,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
+#include "EC_Filter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Event/EC_QOS_Info.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_QOS_Info.h"
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushSupplier;
@@ -85,8 +82,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Timeout_Filter (const TAO_EC_Timeout_Filter&);
- TAO_EC_Timeout_Filter& operator= (const TAO_EC_Timeout_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Timeout_Filter
+ (const TAO_EC_Timeout_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Timeout_Filter& operator=
+ (const TAO_EC_Timeout_Filter&))
private:
/// The event channel.
@@ -109,10 +108,8 @@ private:
long id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Timeout_Filter.i"
+#include "EC_Timeout_Filter.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.i b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.i
index a6e30773801..f47bb605f57 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Filter.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const TAO_EC_QOS_Info&
TAO_EC_Timeout_Filter::qos_info (void) const
{
@@ -15,5 +11,3 @@ TAO_EC_Timeout_Filter::type (void) const
{
return this->type_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp
index 23d098ceba6..caa5d55a189 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Event/EC_Timeout_Generator.h"
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
+#include "EC_Timeout_Generator.h"
+#include "EC_Timeout_Filter.h"
#include "orbsvcs/Event_Service_Constants.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Timeout_Generator.i"
+#include "EC_Timeout_Generator.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Event,
EC_Timeout_Generator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Timeout_Generator::~TAO_EC_Timeout_Generator (void)
{
}
@@ -57,5 +55,3 @@ TAO_EC_Timeout_Adapter::handle_timeout (const ACE_Time_Value & /* tv */,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h
index 44a6642de69..52eb6031054 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Timeout_Generator.h
*
@@ -23,11 +22,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-#include "orbsvcs/Event/EC_Timeout_Filter.h"
+#include /**/ "event_serv_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EC_Timeout_Filter.h"
class TAO_EC_QOS_Info;
@@ -90,10 +87,8 @@ private:
const void *act);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Event/EC_Timeout_Generator.i"
+#include "EC_Timeout_Generator.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.i b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.i
index aba1263d609..e5024c3fb1d 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.i
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Timeout_Generator.i
@@ -1,12 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_EC_Timeout_Adapter::TAO_EC_Timeout_Adapter (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp
index c5d3dc1b72c..3cf2b87baf0 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Event/EC_Trivial_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/Event/EC_ProxySupplier.h"
-#include "orbsvcs/Event/EC_QOS_Info.h"
-#include "orbsvcs/Event/EC_Scheduling_Strategy.h"
-#include "orbsvcs/Event/EC_ProxyConsumer.h" // @@ MSVC 6 bug
+#include "EC_Trivial_Supplier_Filter.h"
+#include "EC_Event_Channel_Base.h"
+#include "EC_ConsumerAdmin.h"
+#include "EC_ProxySupplier.h"
+#include "EC_QOS_Info.h"
+#include "EC_Scheduling_Strategy.h"
+#include "EC_ProxyConsumer.h" // @@ MSVC 6 bug
ACE_RCSID(Event, EC_Trivial_Supplier_Filter, "$Id$")
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Trivial_Supplier_Filter::
TAO_EC_Trivial_Supplier_Filter (TAO_EC_Event_Channel_Base* ec)
: event_channel_ (ec)
@@ -108,5 +106,3 @@ TAO_EC_Trivial_Supplier_Filter_Builder::destroy (
TAO_EC_Supplier_Filter*)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h
index 617bd87f6d7..054905e1a49 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Trivial_Supplier_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Trivial_Supplier_Filter.h
*
@@ -18,17 +17,15 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Supplier_Filter.h"
-#include "orbsvcs/Event/EC_Supplier_Filter_Builder.h"
+#include "EC_Supplier_Filter.h"
+#include "EC_Supplier_Filter_Builder.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EC_Event_Channel_Base;
class TAO_EC_ProxyPushSupplier_Set;
@@ -102,8 +99,6 @@ private:
TAO_EC_Trivial_Supplier_Filter filter_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_TRIVIAL_SUPPLIER_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp
index d52f1d869aa..ef39e461f86 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Event/EC_Type_Filter.h"
+#include "EC_Type_Filter.h"
ACE_RCSID(Event, EC_Type_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Type_Filter::TAO_EC_Type_Filter (const RtecEventComm::EventHeader& header)
: header_ (header)
{
@@ -147,4 +145,3 @@ TAO_EC_Type_Filter::filter_set (const RtecEventComm::EventSet& event,
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h
index 12a0660bf72..ca52d200834 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_Type_Filter.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_Type_Filter.h
*
@@ -17,15 +16,13 @@
#define TAO_EC_TYPE_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Event/EC_Filter.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
+#include "EC_Filter.h"
+#include /**/ "event_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EC_Type_Filter
*
@@ -62,8 +59,10 @@ public:
ACE_ENV_ARG_DECL);
private:
- TAO_EC_Type_Filter (const TAO_EC_Type_Filter&);
- TAO_EC_Type_Filter& operator= (const TAO_EC_Type_Filter&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Type_Filter
+ (const TAO_EC_Type_Filter&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_EC_Type_Filter& operator=
+ (const TAO_EC_Type_Filter&))
/// Filter an EventSet that contains more than one event.
int filter_set (const RtecEventComm::EventSet& event,
@@ -75,7 +74,5 @@ private:
RtecEventComm::EventHeader header_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_TYPE_FILTER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp
index eba83581c8d..37374a6f760 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.cpp
@@ -6,8 +6,6 @@ ACE_RCSID (Event,
EC_UDP_Admin,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EC_Simple_AddrServer::TAO_EC_Simple_AddrServer (CORBA::UShort port)
: port_ (port)
{
@@ -21,10 +19,8 @@ void
TAO_EC_Simple_AddrServer::get_addr (const RtecEventComm::EventHeader& header,
RtecUDPAdmin::UDP_Addr_out addr
ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
+ ACE_THROW_SPEC ((CORBA::SystemException))
{
addr.ipaddr = header.type;
addr.port = this->port_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h
index 7e5ccff9920..0ce13cc24ad 100644
--- a/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h
+++ b/TAO/orbsvcs/orbsvcs/Event/EC_UDP_Admin.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file EC_UDP_Admin.h
*
@@ -18,9 +17,7 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/RtecUDPAdminS.h"
-#include /**/ "orbsvcs/Event/event_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include /**/ "event_serv_export.h"
/**
* @class TAO_EC_Simple_AddrServer
@@ -54,7 +51,5 @@ private:
CORBA::UShort port_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_UDP_ADMIN_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h b/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h
index 6a5e6836feb..d430e70b5f7 100644
--- a/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h
+++ b/TAO/orbsvcs/orbsvcs/Event_Service_Constants.h
@@ -25,8 +25,6 @@
#include "orbsvcs/Time_Utilities.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Predefined event types. All application defined types should be
// relative to ACE_ES_EVENT_UNDEFINED.
const long ACE_ES_EVENT_ANY = 0;
@@ -77,8 +75,6 @@ const u_long ACE_Scheduler_MAX_SUB_PRIORITY =
const u_long ACE_Scheduler_MIN_SUB_PRIORITY =
ACE_Message_Block::MB_NORMAL;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_ES_CONSTANTS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp b/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp
index 4c66ec5087d..3d45c411eaf 100644
--- a/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp
+++ b/TAO/orbsvcs/orbsvcs/Event_Utilities.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (orbsvcs,
Event_Utilities,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ConsumerQOS_Factory::
ACE_ConsumerQOS_Factory (TAO_EC_Event_Initializer initializer)
: designator_set_ (0),
@@ -205,7 +203,7 @@ void ACE_SupplierQOS_Factory::debug (const RtecEventChannelAdmin::SupplierQOS& q
for (u_int i = 0; i < qos.publications.length (); ++i)
{
- char buf[128] = { 0 };
+ char buf[128];
ACE_OS::sprintf (buf, " publications[%d]", i);
event_debug (buf, qos.publications[i].event);
ACE_DEBUG ((LM_DEBUG,
@@ -217,5 +215,3 @@ void ACE_SupplierQOS_Factory::debug (const RtecEventChannelAdmin::SupplierQOS& q
ACE_DEBUG ((LM_DEBUG, "}\n"));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Event_Utilities.h b/TAO/orbsvcs/orbsvcs/Event_Utilities.h
index 01be03b7517..9bc493d5ea3 100644
--- a/TAO/orbsvcs/orbsvcs/Event_Utilities.h
+++ b/TAO/orbsvcs/orbsvcs/Event_Utilities.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -19,10 +19,7 @@
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Event/event_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+#include "Event/event_export.h"
typedef void (*TAO_EC_Event_Initializer) (RtecEventComm::Event&);
@@ -245,7 +242,6 @@ private:
TAO_EC_Event_Initializer event_initializer_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "orbsvcs/Event_Utilities.i"
diff --git a/TAO/orbsvcs/orbsvcs/Event_Utilities.i b/TAO/orbsvcs/orbsvcs/Event_Utilities.i
index 20c09b0a0fe..0c2bcc74875 100644
--- a/TAO/orbsvcs/orbsvcs/Event_Utilities.i
+++ b/TAO/orbsvcs/orbsvcs/Event_Utilities.i
@@ -1,8 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE int
ACE_ConsumerQOS_Factory::insert (RtecEventComm::EventSourceID source,
@@ -148,5 +146,3 @@ ACE_SupplierQOS_Factory::operator const RtecEventChannelAdmin::SupplierQOS& (voi
{
return qos_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FTORB.mpc b/TAO/orbsvcs/orbsvcs/FTORB.mpc
index 8254fb8f2de..226721c3de6 100644
--- a/TAO/orbsvcs/orbsvcs/FTORB.mpc
+++ b/TAO/orbsvcs/orbsvcs/FTORB.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(FTORB_Utils) : orbsvcslib, core, iormanip, portableserver, portablegroup, minimum_corba, tao_versioning_idl_defaults {
+project(FTORB_Utils) : orbsvcslib, core, iormanip, portableserver, portablegroup, minimum_corba {
sharedname = TAO_FTORB_Utils
idlflags += -Wb,skel_export_include=tao/PortableServer/PolicyS.h
dynamicflags = TAO_FT_ORB_UTILS_BUILD_DLL
@@ -30,7 +30,6 @@ project(FTORB_Utils) : orbsvcslib, core, iormanip, portableserver, portablegroup
}
project(FT_ClientORB) : orbsvcslib, ftorbutils, core, messaging, portablegroup, interceptors {
- avoids += ace_for_tao // Requires ace/UUID
sharedname = TAO_FT_ClientORB
dynamicflags = TAO_FT_CLIENTORB_BUILD_DLL
tagchecks += FT_ClientORB
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance.mpc b/TAO/orbsvcs/orbsvcs/FaultTolerance.mpc
index 0b6911d2473..7ea57b8282e 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance.mpc
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(FaultTolerance): orbsvcslib, core, pi, pi_server, notification, ftorb, portablegroup, minimum_corba, tao_versioning_idl_defaults {
+project(FaultTolerance): orbsvcslib, core, pi, pi_server, notification, ftorb, portablegroup, minimum_corba {
sharedname = TAO_FaultTolerance
idlflags += -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h
dynamicflags = TAO_FT_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp
index 03d6f4a56b6..11daa44e90d 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.cpp
@@ -1,8 +1,10 @@
+// -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/FaultTolerance/FT_ClientORBInitializer.h"
-#include "orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h"
-#include "orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h"
+#include "FT_ClientORBInitializer.h"
+#include "FT_ClientPolicyFactory.h"
+#include "FT_ClientRequest_Interceptor.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/Exception.h"
#include "tao/ORB_Constants.h"
@@ -11,14 +13,13 @@ ACE_RCSID (FaultTolerance,
FT_ClientORBInitializer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_FT_ClientORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+
}
void
@@ -111,5 +112,3 @@ TAO_FT_ClientORBInitializer::register_client_request_interceptors (
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h
index c0383c99cbc..d5fd561e3ad 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientORBInitializer.h
@@ -21,7 +21,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/LocalObject.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
+#include "FT_ClientORB_export.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -30,12 +30,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// FT ORB initializer.
-class TAO_FT_ClientORBInitializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
+class TAO_FT_ClientORB_Export TAO_FT_ClientORBInitializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
@@ -62,8 +60,6 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp
index 852e1c2c97b..5a1b5dd4e2d 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.cpp
@@ -1,7 +1,9 @@
+// -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h"
-#include "orbsvcs/FaultTolerance/FT_ClientPolicy_i.h"
+#include "FT_ClientPolicyFactory.h"
+#include "FT_ClientPolicy_i.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/PolicyC.h"
@@ -9,7 +11,6 @@ ACE_RCSID (FaultTolerance,
FT_ClientPolicyFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::Policy_ptr
TAO_FT_ClientPolicyFactory::create_policy (
@@ -30,5 +31,3 @@ TAO_FT_ClientPolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h
index 7ee620338b9..6d05145d5fc 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicyFactory.h
@@ -31,14 +31,12 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "FT_ClientORB_export.h"
/// Policy factory for all FTCORBA related policies.
-class TAO_FT_ClientPolicyFactory
- : public PortableInterceptor::PolicyFactory
- , public TAO_Local_RefCounted_Object
+class TAO_FT_ClientORB_Export TAO_FT_ClientPolicyFactory :
+ public PortableInterceptor::PolicyFactory,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -49,8 +47,6 @@ public:
CORBA::PolicyError));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp
index b53265cbfa5..2acb4be7939 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.cpp
@@ -1,5 +1,5 @@
//$Id$
-#include "orbsvcs/FaultTolerance/FT_ClientPolicy_i.h"
+#include "FT_ClientPolicy_i.h"
#include "tao/debug.h"
#include "ace/Log_Msg.h"
@@ -7,13 +7,11 @@
#include "tao/AnyTypeCode/Any.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl"
+#include "FT_ClientPolicy_i.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(FaultTolerance, FT_ClientPolicy_i, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TimeBase::TimeT
TAO_FT_Request_Duration_Policy::request_duration_policy_value (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -190,4 +188,3 @@ TAO_FT_Heart_Beat_Policy::set_time_value (ACE_Time_Value &time_value,
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.h
index a1bbf81174e..02e9ac09308 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file FT_ClientPolicy_i.h
@@ -23,9 +22,7 @@
#endif /* _MSC_VER */
#include "tao/LocalObject.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "FT_ClientORB_export.h"
/**
* @class TAO_FT_Request_Duration_Policy
@@ -42,7 +39,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* to keep trying to connect to server object groups under certain
* conditions.
*/
-class TAO_FT_Request_Duration_Policy
+class TAO_FT_ClientORB_Export TAO_FT_Request_Duration_Policy
: public FT::RequestDurationPolicy,
public TAO_Local_RefCounted_Object
{
@@ -95,7 +92,7 @@ private:
* If this policy is set, it enables the client ORB to send
* heartbeats to the server ORB over the open connections.
*/
-class TAO_FT_Heart_Beat_Policy
+class TAO_FT_ClientORB_Export TAO_FT_Heart_Beat_Policy
: public FT::HeartbeatPolicy,
public TAO_Local_RefCounted_Object
{
@@ -150,14 +147,12 @@ private:
TimeBase::TimeT heartbeat_timeout_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-#include "orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl"
+#include "FT_ClientPolicy_i.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl
index 7644c34c231..7b63b76de72 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientPolicy_i.inl
@@ -1,9 +1,4 @@
-// -*- C++ -*-
-//
//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_FT_Request_Duration_Policy::TAO_FT_Request_Duration_Policy (
const TimeBase::TimeT &duration
@@ -52,4 +47,4 @@ TAO_FT_Heart_Beat_Policy::TAO_FT_Heart_Beat_Policy (
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp
index ad331580af6..a1a47f277b6 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.cpp
@@ -1,27 +1,23 @@
// $Id$
-#include "orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h"
-#include "orbsvcs/FaultTolerance/FT_Service_Callbacks.h"
+#include "FT_ClientRequest_Interceptor.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/CORBA_String.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
#include "tao/CDR.h"
-#include "tao/PI/ClientRequestInfo.h"
#include "ace/UUID.h"
#include "ace/Lock_Adapter_T.h"
#include "ace/Lock.h"
#include "ace/Synch_Traits.h"
+#include "ace/OS_NS_sys_time.h"
ACE_RCSID (FaultTolerance,
FT_ORBInitializer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
FT_ClientRequest_Interceptor::FT_ClientRequest_Interceptor (void)
@@ -47,6 +43,11 @@ namespace TAO
delete this->lock_;
}
+ FT_TSS *
+ FT_ClientRequest_Interceptor::tss_resources (void)
+ {
+ return ACE_TSS_GET (&this->tss_,FT_TSS);
+ }
char *
FT_ClientRequest_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -103,66 +104,17 @@ namespace TAO
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ this->tss_resources ()->clean_flag_ = true;
}
void
FT_ClientRequest_Interceptor::receive_other (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
+ PortableInterceptor::ClientRequestInfo_ptr
+ ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
{
- TAO_ClientRequestInfo* tao_ri = dynamic_cast<TAO_ClientRequestInfo*> (ri);
-
- if (!tao_ri)
- {
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- TimeBase::TimeT expires = tao_ri->tao_ft_expiration_time ();
- if (!expires)
- {
- // Not an FT request
- return;
- }
-
- PortableInterceptor::ReplyStatus status = -1;
-
- ACE_TRY
- {
- status = ri->reply_status(ACE_ENV_SINGLE_ARG_PARAMETER);
- }
- ACE_CATCHANY
- {
- // No reply status => Not a location forward.
- return;
- }
- ACE_ENDTRY;
-
- if (status == PortableInterceptor::LOCATION_FORWARD)
- {
- // We are in an FT request and a location forward has been received.
-
- if (expires < TAO_FT_Service_Callbacks::now ())
- {
- // The request has already expired...
-
- if (TAO_debug_level > 3)
- {
- ACE_DEBUG ((LM_DEBUG,
- "TAO_FT (%P|%t): FT_ClientRequest_Interceptor::receive_other - LOCATION_FORWARD received after request expiration.\n"));
- }
-
- // The spec says throw a SYSTEM_EXCEPTION, but doesn't specify which one.
- // I think a TRANSIENT is the most suitable.
- ACE_THROW (CORBA::TRANSIENT (
- CORBA::SystemException::_tao_minor_code (
- TAO_INVOCATION_LOCATION_FORWARD_MINOR_CODE,
- errno),
- CORBA::COMPLETED_NO));
- }
- }
}
void
@@ -322,6 +274,7 @@ namespace TAO
IOP::ServiceContext sc;
sc.context_id = IOP::FT_REQUEST;
+
CORBA::Policy_var policy =
ri->get_request_policy (FT::REQUEST_DURATION_POLICY
ACE_ENV_ARG_PARAMETER);
@@ -330,34 +283,33 @@ namespace TAO
FT::FTRequestServiceContext ftrsc;
ftrsc.client_id =
CORBA::string_dup (this->uuid_->to_string ()->c_str ());
+ ftrsc.expiration_time =
+ this->request_expiration_time (policy.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- TAO_ClientRequestInfo* tao_ri = dynamic_cast<TAO_ClientRequestInfo*> (ri);
-
- if (!tao_ri)
- {
- ACE_THROW (CORBA::INTERNAL ());
- }
+ FT_TSS *tss =
+ this->tss_resources ();
- if (tao_ri->tao_ft_expiration_time ())
- {
- ftrsc.retention_id = tao_ri->tao_ft_retention_id ();
- ftrsc.expiration_time = tao_ri->tao_ft_expiration_time ();
- }
- else
- {
- ACE_GUARD (ACE_Lock,
- guard,
- *this->lock_);
+ if (tss->clean_flag_)
+ {
+ ACE_GUARD (ACE_Lock,
+ guard,
+ *this->lock_);
- ftrsc.retention_id = ++this->retention_id_;
- ftrsc.expiration_time =
- this->request_expiration_time (policy.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ftrsc.retention_id = ++this->retention_id_;
- tao_ri->tao_ft_retention_id (ftrsc.retention_id);
- tao_ri->tao_ft_expiration_time (ftrsc.expiration_time);
- }
+ // ACE_DEBUG ((LM_DEBUG,
+ // ACE_TEXT ("TAO_FT (%P|%t) - Retention id [%d]\n"),
+ // ftrsc.retention_id));
+ tss->retention_id_ = ftrsc.retention_id;
+ tss->clean_flag_ = false;
+ }
+ else
+ {
+ ftrsc.retention_id =
+ tss->retention_id_;
+ }
TAO_OutputCDR ocdr;
if (!(ocdr << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER)))
@@ -409,7 +361,7 @@ namespace TAO
{
p = FT::RequestDurationPolicy::_narrow (policy
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
+ ACE_CHECK_RETURN (0);
}
TimeBase::TimeT t = 0;
@@ -432,10 +384,16 @@ namespace TAO
}
// Calculaton of the expiration time
- t += TAO_FT_Service_Callbacks::now ();
+
+ // Grab the localtime on the machine where this is running
+ ACE_Time_Value time_val = ACE_OS::gettimeofday ();
+
+ TimeBase::TimeT sec_part = time_val.sec () * 10000000;
+ TimeBase::TimeT usec_part = time_val.usec ()* 10;
+
+ // Now we have the total time
+ t += (sec_part + usec_part);
return t;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h
index c4115555085..8f82b1f8089 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file FT_ClientRequest_Interceptor.h
@@ -13,7 +12,7 @@
#define TAO_FT_CLIENT_REQUEST_INTERCEPTOR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
+#include "FT_ClientORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,14 +31,11 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
namespace ACE_Utils
{
class UUID;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -67,7 +63,7 @@ namespace TAO
*
* @@TODO
*/
- class FT_ClientRequest_Interceptor
+ class TAO_FT_ClientORB_Export FT_ClientRequest_Interceptor
: public virtual PortableInterceptor::ClientRequestInterceptor,
public virtual TAO_Local_RefCounted_Object
{
@@ -75,6 +71,8 @@ namespace TAO
FT_ClientRequest_Interceptor (void);
+ ~FT_ClientRequest_Interceptor (void);
+
/// Canonical name of the interceptor.
virtual char * name (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -106,10 +104,6 @@ namespace TAO
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest));
- protected:
-
- ~FT_ClientRequest_Interceptor (void);
-
private:
void group_version_context (PortableInterceptor::ClientRequestInfo_ptr ri
@@ -124,6 +118,8 @@ namespace TAO
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
+ FT_TSS *tss_resources (void);
+
private:
/// Name of the interceptor
@@ -132,16 +128,16 @@ namespace TAO
/// UUID for this client
ACE_Utils::UUID *uuid_;
- /// @@ Need a resource factory for this too
+ /// TSS data
+ ACE_TSS_TYPE (FT_TSS) tss_;
+
+ /// @@ Need a resource factory for this too
ACE_Lock *lock_;
/// Retention id generated by the client
CORBA::Long retention_id_;
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp
index 7adfd628330..4dc19d2f66a 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h"
-#include "orbsvcs/FaultTolerance/FT_Service_Callbacks.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORBInitializer.h"
-#include "orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h"
+#include "FT_ClientService_Activate.h"
+#include "FT_Service_Callbacks.h"
+#include "FT_ClientORBInitializer.h"
+#include "FT_Endpoint_Selector_Factory.h"
#include "tao/ORB_Core.h"
#include "tao/Service_Callbacks.h"
#include "tao/ORBInitializer_Registry.h"
@@ -11,8 +11,6 @@ ACE_RCSID(FaultTolerance, FT_ClientService_Activate, "$Id$")
static bool initialized = false;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FT_ClientService_Activate::TAO_FT_ClientService_Activate (void)
{
}
@@ -69,8 +67,6 @@ TAO_FT_ClientService_Activate::Initializer (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_FT_ClientORB,TAO_FT_ClientService_Activate)
ACE_STATIC_SVC_DEFINE (TAO_FT_ClientService_Activate,
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h
index c6b8c863e6f..feb04749ae6 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file FT_ClientService_Activate.h
@@ -16,7 +14,7 @@
#define TAO_FT_CLIENTACTIVATE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
+#include "FT_ClientORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +23,6 @@
#include "tao/Services_Activate.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Service_Callbacks;
// Forward declarations
@@ -59,15 +55,14 @@ public:
/// Used to force the initialization.
static int Initializer (void);
-};
-
-static int
-TAO_FT_Requires_ClientService_Activate = TAO_FT_ClientService_Activate::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
+};
ACE_STATIC_SVC_DECLARE (TAO_FT_ClientService_Activate)
ACE_FACTORY_DECLARE (TAO_FT_ClientORB, TAO_FT_ClientService_Activate)
+static int
+TAO_FT_Requires_ClientService_Activate = TAO_FT_ClientService_Activate::Initializer ();
+
#include /**/ "ace/post.h"
#endif /*TAO_FT_CLIENTACTIVATE_H*/
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp
index 280b95cab98..bd37bc897c2 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h"
-#include "orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h"
+#include "FT_Endpoint_Selector_Factory.h"
+#include "FT_Invocation_Endpoint_Selectors.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -10,16 +10,16 @@ ACE_RCSID (FaultTolerance,
FT_Endpoint_Selector_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_FT_Endpoint_Selector_Factory::TAO_FT_Endpoint_Selector_Factory (void)
- : ft_endpoint_selector_ (0)
+ :ft_endpoint_selector_ (0)
{
}
TAO_FT_Endpoint_Selector_Factory::~TAO_FT_Endpoint_Selector_Factory (void)
{
- delete this->ft_endpoint_selector_;
+ if (this->ft_endpoint_selector_)
+ delete this->ft_endpoint_selector_;
}
@@ -47,8 +47,6 @@ TAO_FT_Endpoint_Selector_Factory::get_selector (
return this->ft_endpoint_selector_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_FT_Endpoint_Selector_Factory,
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h
index d2a6462b4e0..dd7e9c57751 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -7,6 +7,7 @@
* $Id$
*
* @author Balachandran Natarajan <bala@cs.wustl.edu>
+ *
*/
//=============================================================================
#ifndef TAO_FT_ENDPOINT_SELECTOR_FACTORY_H
@@ -14,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
+#include "FT_ClientORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +27,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FT_Invocation_Endpoint_Selector;
/**
* @class TAO_FT_Endpoint_Selector_Factory
@@ -65,8 +64,6 @@ private:
TAO_SYNCH_MUTEX mutex_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
//extern TAO_FT_ClientORB_Export ACE_Static_Svc_Descriptor ace_svc_desc_TAO_FT_Endpoint_Selector_Factory;
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FT_ClientORB, TAO_FT_Endpoint_Selector_Factory)
ACE_FACTORY_DECLARE (TAO_FT_ClientORB, TAO_FT_Endpoint_Selector_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp
index 413bce96aaf..ddadd6e6cca 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
+#include "FT_IOGR_Property.h"
#include "tao/MProfile.h"
#include "tao/Profile.h"
@@ -16,10 +16,9 @@ ACE_RCSID (FaultTolerance,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/FaultTolerance/FT_IOGR_Property.inl"
+# include "FT_IOGR_Property.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::Boolean
TAO_FT_IOGR_Property::set_property (
@@ -424,5 +423,3 @@ TAO_FT_IOGR_Property::remove_primary_tag (
}
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h
index cc888e28e31..b98dc52a200 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h
@@ -26,15 +26,13 @@
#include "tao/IORManipulation/IORManip_Loader.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/IOPC.h"
-#include "orbsvcs/FaultTolerance/FT_ORB_Utils_export.h"
+#include "FT_ORB_Utils_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Profile;
/**
@@ -133,14 +131,13 @@ private:
FT::TagFTGroupTaggedComponent *ft_group_tagged_component_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-# include "orbsvcs/FaultTolerance/FT_IOGR_Property.inl"
+# include "FT_IOGR_Property.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.i b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.i
new file mode 100644
index 00000000000..43e3c57df8d
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.i
@@ -0,0 +1,31 @@
+// -*- C++ -*-
+//
+//$Id$
+
+ACE_INLINE
+TAO_FT_IOGR_Property::TAO_FT_IOGR_Property (
+ FT::TagFTGroupTaggedComponent &ft_group)
+ :ft_group_tagged_component_ (&ft_group)
+{
+}
+
+ACE_INLINE
+TAO_FT_IOGR_Property::TAO_FT_IOGR_Property (void)
+ :ft_group_tagged_component_ (0)
+{
+}
+
+ACE_INLINE
+TAO_FT_IOGR_Property::~TAO_FT_IOGR_Property (void)
+{
+}
+
+ACE_INLINE CORBA::Boolean
+TAO_FT_IOGR_Property::reset_tagged_components (
+ FT::TagFTGroupTaggedComponent &ft_group)
+{
+ this->ft_group_tagged_component_ =
+ &ft_group;
+
+ return 1;
+}
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.inl b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.inl
index 5e3a8417714..43e3c57df8d 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.inl
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.inl
@@ -2,8 +2,6 @@
//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_FT_IOGR_Property::TAO_FT_IOGR_Property (
FT::TagFTGroupTaggedComponent &ft_group)
@@ -31,5 +29,3 @@ TAO_FT_IOGR_Property::reset_tagged_components (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp
index 3243d7ea5fd..4545579404e 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h"
+#include "FT_Invocation_Endpoint_Selectors.h"
#include "tao/Profile_Transport_Resolver.h"
#include "tao/Stub.h"
@@ -15,8 +15,6 @@ ACE_RCSID (FaultTolerance,
FT_Invocation_Endpoint_Selectors,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FT_Invocation_Endpoint_Selector::TAO_FT_Invocation_Endpoint_Selector (void)
: TAO_Default_Endpoint_Selector ()
{
@@ -231,5 +229,3 @@ TAO_FT_Invocation_Endpoint_Selector::check_profile_for_primary (
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h
index ae3a473ea34..0b737f36a92 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
+#include "FT_ClientORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,8 +29,6 @@
#include "tao/Basic_Types.h"
#include "tao/ORB_Constants.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Profile;
/**
@@ -89,8 +87,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FT_TAO_INVOCATION_ENDPOINT_SELECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp
index 3e2a732dd62..1060bbacfba 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.cpp
@@ -2,10 +2,10 @@
//
// $Id$
-#include "orbsvcs/FaultTolerance/FT_ORBInitializer.h"
-#include "orbsvcs/FaultTolerance/FT_PolicyFactory.h"
-#include "orbsvcs/FaultTolerance/FT_ClientRequest_Interceptor.h"
-#include "orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h"
+#include "FT_ORBInitializer.h"
+#include "FT_PolicyFactory.h"
+#include "FT_ClientRequest_Interceptor.h"
+#include "FT_ServerRequest_Interceptor.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/Exception.h"
@@ -13,15 +13,13 @@
ACE_RCSID (FaultTolerance,
FT_ORBInitializer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_FT_ORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+
}
void
@@ -41,6 +39,9 @@ TAO_FT_ORBInitializer::post_init (
this->register_client_request_interceptors (info
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
+
+
+
}
void
@@ -136,5 +137,3 @@ TAO_FT_ORBInitializer::register_client_request_interceptors (
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.h
index 8493a77ddac..e6ca50c065c 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ORBInitializer.h
@@ -22,7 +22,7 @@
#include "tao/PortableInterceptorC.h"
#include "tao/LocalObject.h"
-#include "orbsvcs/FaultTolerance/fault_tol_export.h"
+#include "fault_tol_export.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -31,12 +31,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// RTCORBA ORB initializer.
-class TAO_FT_ORBInitializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
+class TAO_FT_Export TAO_FT_ORBInitializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
@@ -68,8 +66,6 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.cpp
index 74758912067..2072fe7bbd1 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.cpp
@@ -2,15 +2,16 @@
//
// $Id$
-#include "orbsvcs/FaultTolerance/FT_PolicyFactory.h"
-#include "orbsvcs/FaultTolerance/FT_Policy_i.h"
+#include "FT_PolicyFactory.h"
+#include "FT_Policy_i.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/PolicyC.h"
ACE_RCSID (FaultTolerance, FT_PolicyFactory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
CORBA::Policy_ptr
TAO_FT_PolicyFactory::create_policy (
@@ -34,5 +35,3 @@ TAO_FT_PolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h
index bb71603c077..486581ad26a 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_PolicyFactory.h
@@ -33,14 +33,12 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-#include "orbsvcs/FaultTolerance/fault_tol_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "fault_tol_export.h"
/// Policy factory for all FTCORBA related policies.
-class TAO_FT_PolicyFactory
- : public PortableInterceptor::PolicyFactory
- , public TAO_Local_RefCounted_Object
+class TAO_FT_Export TAO_FT_PolicyFactory :
+ public PortableInterceptor::PolicyFactory,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -51,8 +49,6 @@ public:
CORBA::PolicyError));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp
index c24aa921d17..09f2735fd09 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.cpp
@@ -1,16 +1,14 @@
//$Id$
-#include "orbsvcs/FaultTolerance/FT_Policy_i.h"
+#include "FT_Policy_i.h"
#include "tao/debug.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/FaultTolerance/FT_Policy_i.inl"
+#include "FT_Policy_i.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(FaultTolerance, FT_Policy_i, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TimeBase::TimeT
TAO_FT_Request_Duration_Policy::request_duration_policy_value (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -255,5 +253,3 @@ TAO_FT_Heart_Beat_Enabled_Policy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h
index 8fd5f3a1fc8..36458e3e3bf 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file FT_Policy_i.h
@@ -22,9 +21,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_FT_Request_Duration_Policy
*
@@ -40,7 +36,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* to keep trying to connect to server object groups under certain
* conditions.
*/
-class TAO_FT_Request_Duration_Policy
+class TAO_FT_Export TAO_FT_Request_Duration_Policy
: public FT::RequestDurationPolicy,
public TAO_Local_RefCounted_Object
{
@@ -202,14 +198,12 @@ private:
CORBA::Boolean heartbeat_enabled_value_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-#include "orbsvcs/FaultTolerance/FT_Policy_i.inl"
+#include "FT_Policy_i.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.i b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.i
new file mode 100644
index 00000000000..4caf44a0faf
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.i
@@ -0,0 +1,70 @@
+//$Id$
+ACE_INLINE
+TAO_FT_Request_Duration_Policy::TAO_FT_Request_Duration_Policy (
+ const TimeBase::TimeT &duration
+ )
+ : request_duration_ (duration)
+{
+}
+
+ACE_INLINE
+TAO_FT_Request_Duration_Policy::TAO_FT_Request_Duration_Policy (
+ const TAO_FT_Request_Duration_Policy &rhs
+ )
+ : ACE_NESTED_CLASS (CORBA, Object) (),
+ ACE_NESTED_CLASS (CORBA, Policy) (),
+ ACE_NESTED_CLASS (CORBA, LocalObject) (),
+ FT::RequestDurationPolicy (),
+ TAO_Local_RefCounted_Object (),
+ request_duration_ (rhs.request_duration_)
+{
+}
+
+ACE_INLINE
+TAO_FT_Heart_Beat_Policy::TAO_FT_Heart_Beat_Policy (
+ const CORBA::Boolean heartbeat,
+ const TimeBase::TimeT &interval,
+ const TimeBase::TimeT &timeout
+ )
+ : heartbeat_ (heartbeat),
+ heartbeat_interval_ (interval),
+ heartbeat_timeout_ (timeout)
+{
+}
+
+ACE_INLINE
+TAO_FT_Heart_Beat_Policy::TAO_FT_Heart_Beat_Policy (
+ const TAO_FT_Heart_Beat_Policy &rhs
+ )
+ : ACE_NESTED_CLASS (CORBA, Object) (),
+ ACE_NESTED_CLASS (CORBA, Policy) (),
+ ACE_NESTED_CLASS (CORBA, LocalObject) (),
+ FT::HeartbeatPolicy (),
+ TAO_Local_RefCounted_Object (),
+ heartbeat_ (rhs.heartbeat_),
+ heartbeat_interval_ (rhs.heartbeat_interval_),
+ heartbeat_timeout_ (rhs.heartbeat_timeout_)
+{
+}
+
+
+ACE_INLINE
+TAO_FT_Heart_Beat_Enabled_Policy::TAO_FT_Heart_Beat_Enabled_Policy (
+ const CORBA::Boolean heartbeat
+ )
+ : heartbeat_enabled_value_ (heartbeat)
+{
+}
+
+ACE_INLINE
+TAO_FT_Heart_Beat_Enabled_Policy::TAO_FT_Heart_Beat_Enabled_Policy (
+ const TAO_FT_Heart_Beat_Enabled_Policy &rhs
+ )
+ : ACE_NESTED_CLASS (CORBA, Object) (),
+ ACE_NESTED_CLASS (CORBA, Policy) (),
+ ACE_NESTED_CLASS (CORBA, LocalObject) (),
+ FT::HeartbeatEnabledPolicy (),
+ TAO_Local_RefCounted_Object (),
+ heartbeat_enabled_value_ (rhs.heartbeat_enabled_value_)
+{
+}
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.inl b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.inl
index 3aa80e1b0a1..579d6c3467b 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.inl
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Policy_i.inl
@@ -1,9 +1,4 @@
-// -*- C++ -*-
-//
//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_FT_Request_Duration_Policy::TAO_FT_Request_Duration_Policy (const TimeBase::TimeT &duration)
:ACE_NESTED_CLASS (CORBA, Object) ()
@@ -76,5 +71,3 @@ TAO_FT_Heart_Beat_Enabled_Policy::TAO_FT_Heart_Beat_Enabled_Policy (
, heartbeat_enabled_value_ (rhs.heartbeat_enabled_value_)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp
index 77b99f3035a..117b2e95280 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.cpp
@@ -1,8 +1,10 @@
+// -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/FaultTolerance/FT_ServerORBInitializer.h"
-#include "orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h"
-#include "orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h"
+#include "FT_ServerORBInitializer.h"
+#include "FT_ServerPolicyFactory.h"
+#include "FT_ServerRequest_Interceptor.h"
#include "tao/ORB_Constants.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/Exception.h"
@@ -11,15 +13,13 @@
ACE_RCSID (FaultTolerance,
FT_ServerORBInitializer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_FT_ServerORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+
}
void
@@ -35,6 +35,7 @@ TAO_FT_ServerORBInitializer::post_init (
this->register_server_request_interceptors (info
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
+
}
void
@@ -97,4 +98,3 @@ TAO_FT_ServerORBInitializer::register_server_request_interceptors (
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h
index 0e2711ed429..6f88080afd2 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerORBInitializer.h
@@ -21,7 +21,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/LocalObject.h"
-#include "orbsvcs/FaultTolerance/FT_ServerORB_export.h"
+#include "FT_ServerORB_export.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -30,12 +30,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// RTCORBA ORB initializer.
-class TAO_FT_ServerORBInitializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
+class TAO_FT_ServerORB_Export TAO_FT_ServerORBInitializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
@@ -63,8 +61,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp
index e1c8fcea33b..e6269801482 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.cpp
@@ -2,8 +2,8 @@
//
// $Id$
-#include "orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h"
-#include "orbsvcs/FaultTolerance/FT_ServerPolicy_i.h"
+#include "FT_ServerPolicyFactory.h"
+#include "FT_ServerPolicy_i.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/PolicyC.h"
@@ -12,8 +12,6 @@ ACE_RCSID (FaultTolerance,
FT_ServerPolicyFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy_ptr
TAO_FT_ServerPolicyFactory::create_policy (
CORBA::PolicyType type,
@@ -30,5 +28,3 @@ TAO_FT_ServerPolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h
index 2ae22af9f48..fc1cb12b093 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicyFactory.h
@@ -31,14 +31,12 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-#include "orbsvcs/FaultTolerance/FT_ServerORB_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "FT_ServerORB_export.h"
/// Policy factory for all FTCORBA related policies.
-class TAO_FT_ServerPolicyFactory
- : public PortableInterceptor::PolicyFactory
- , public TAO_Local_RefCounted_Object
+class TAO_FT_ServerORB_Export TAO_FT_ServerPolicyFactory :
+ public PortableInterceptor::PolicyFactory,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -49,12 +47,11 @@ public:
CORBA::PolicyError));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
+
#include /**/ "ace/post.h"
#endif /* TAO_FT_POLICY_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp
index 25e079b7692..9a12142d0e0 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.cpp
@@ -1,18 +1,16 @@
//$Id$
-#include "orbsvcs/FaultTolerance/FT_ServerPolicy_i.h"
+#include "FT_ServerPolicy_i.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
#include "tao/AnyTypeCode/Any.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl"
+#include "FT_ServerPolicy_i.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(FaultTolerance, FT_ServerPolicy_i, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Boolean
TAO_FT_Heart_Beat_Enabled_Policy::heartbeat_enabled_policy_value (
ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
@@ -73,10 +71,9 @@ TAO_FT_Heart_Beat_Enabled_Policy::clone (void) const
return copy;
}
+
void
TAO_FT_Heart_Beat_Enabled_Policy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.h
index 6019cdc8f70..4a69e2db662 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file FT_ServerPolicy_i.h
@@ -22,10 +21,9 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-#include "orbsvcs/FaultTolerance/FT_ServerORB_export.h"
+#include "FT_ServerORB_export.h"
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_FT_Heart_Beat_Enabled_Policy
@@ -36,9 +34,9 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* the TAG_FT_HEARTBEAT_ENABLED component in the IOP profile of
* the IOR that it exposes
*/
-class TAO_FT_Heart_Beat_Enabled_Policy
- : public FT::HeartbeatEnabledPolicy
- , public TAO_Local_RefCounted_Object
+class TAO_FT_ServerORB_Export TAO_FT_Heart_Beat_Enabled_Policy
+ : public FT::HeartbeatEnabledPolicy,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -81,14 +79,12 @@ private:
CORBA::Boolean heartbeat_enabled_value_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-#include "orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl"
+#include "FT_ServerPolicy_i.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl
index 8f4f0b93709..d8dd25b8384 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerPolicy_i.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_FT_Heart_Beat_Enabled_Policy::TAO_FT_Heart_Beat_Enabled_Policy (
const CORBA::Boolean heartbeat
@@ -24,5 +20,3 @@ TAO_FT_Heart_Beat_Enabled_Policy::TAO_FT_Heart_Beat_Enabled_Policy (
heartbeat_enabled_value_ (rhs.heartbeat_enabled_value_)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp
index 64866cc36ed..f082c613dd9 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.cpp
@@ -1,4 +1,6 @@
-#include "orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h"
+// -*- C++ -*-
+
+#include "FT_ServerRequest_Interceptor.h"
#include "tao/IOP_IORC.h"
#include "tao/ORB_Constants.h"
#include "tao/AnyTypeCode/DynamicC.h"
@@ -12,8 +14,6 @@ ACE_RCSID (FaultTolerance,
FT_ServerRequest_Interceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
FT_ServerRequest_Interceptor::FT_ServerRequest_Interceptor (void)
@@ -28,6 +28,7 @@ namespace TAO
{
}
+
char *
FT_ServerRequest_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -206,17 +207,16 @@ namespace TAO
ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // this is only for checking the tao_update_object_group operation
- // which accepts three parameters, i.e.,an iogr as a string,
- // a version object and a boolean.
- if (param->length () != 3 )
+ if (param->length () > 2 ||
+ param->length () == 0)
ACE_THROW (CORBA::TRANSIENT ());
+
const char *str = 0;
+
(*param)[0].argument >>= str;
(*param)[1].argument >>= this->object_group_ref_version_;
- (*param)[2].argument >>= CORBA::Any::to_boolean(this->is_primary_);
CORBA::String_var obj (str);
@@ -233,5 +233,3 @@ namespace TAO
ACE_THROW (CORBA::TRANSACTION_ROLLEDBACK ());
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h
index 78c188d597d..230267e209a 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerRequest_Interceptor.h
@@ -15,7 +15,7 @@
#ifndef TAO_FT_SERVER_REQUEST_INTERCEPTOR_H
#define TAO_FT_SERVER_REQUEST_INTERCEPTOR_H
-#include "orbsvcs/FaultTolerance/FT_ServerORB_export.h"
+#include "FT_ServerORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace IOP
{
struct ServiceContext;
@@ -47,9 +45,9 @@ namespace TAO
*
*
*/
- class FT_ServerRequest_Interceptor
- : public virtual PortableInterceptor::ServerRequestInterceptor
- , public virtual TAO_Local_RefCounted_Object
+ class TAO_FT_ServerORB_Export FT_ServerRequest_Interceptor
+ : public virtual PortableInterceptor::ServerRequestInterceptor,
+ public virtual TAO_Local_RefCounted_Object
{
public:
@@ -111,6 +109,8 @@ namespace TAO
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest));
+ bool is_primary (void);
+
void update_iogr (
PortableInterceptor::ServerRequestInfo_ptr ri
ACE_ENV_ARG_DECL)
@@ -120,7 +120,7 @@ namespace TAO
CORBA::ULong object_group_ref_version_;
- CORBA::Boolean is_primary_;
+ bool is_primary_;
CORBA::Object_var iogr_;
@@ -128,9 +128,6 @@ namespace TAO
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp
index be4448486c8..3047cec219d 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/FaultTolerance/FT_ServerService_Activate.h"
-#include "orbsvcs/FaultTolerance/FT_ServerORBInitializer.h"
+#include "FT_ServerService_Activate.h"
+#include "FT_ServerORBInitializer.h"
#include "tao/ORB_Core.h"
#include "tao/Service_Callbacks.h"
#include "tao/ORBInitializer_Registry.h"
@@ -9,8 +9,6 @@ ACE_RCSID(FaultTolerance, FT_ServerService_Activate, "$Id$")
static bool initialized = false;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FT_ServerService_Activate::TAO_FT_ServerService_Activate (void)
{
}
@@ -19,6 +17,8 @@ TAO_FT_ServerService_Activate::~TAO_FT_ServerService_Activate (void)
{
}
+
+
int
TAO_FT_ServerService_Activate::Initializer (void)
{
@@ -43,8 +43,6 @@ TAO_FT_ServerService_Activate::Initializer (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_FT_ServerORB,TAO_FT_ServerService_Activate)
ACE_STATIC_SVC_DEFINE (TAO_FT_ServerService_Activate,
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h
index 7c57a64a2c2..3f85518f093 100755
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ServerService_Activate.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file FT_ServerService_Activate.h
@@ -16,7 +14,7 @@
#define TAO_FT_SERVERACTIVATE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FaultTolerance/FT_ServerORB_export.h"
+#include "FT_ServerORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +23,6 @@
#include "tao/Services_Activate.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Service_Callbacks;
// Forward declarations
@@ -37,8 +33,7 @@ class TAO_Service_Callbacks;
* to the ORB.
*
*/
-class TAO_FT_ServerORB_Export TAO_FT_ServerService_Activate
-: public ACE_Service_Object
+class TAO_FT_ServerORB_Export TAO_FT_ServerService_Activate : public ACE_Service_Object
{
public:
@@ -53,13 +48,11 @@ public:
};
-static int
-TAO_FT_Requires_ServerService_Activate = TAO_FT_ServerService_Activate::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_FT_ServerService_Activate)
ACE_FACTORY_DECLARE (TAO_FT_ServerORB, TAO_FT_ServerService_Activate)
+static int
+TAO_FT_Requires_ServerService_Activate = TAO_FT_ServerService_Activate::Initializer ();
+
#include /**/ "ace/post.h"
#endif /*TAO_FT_ACTIVATE_H*/
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.cpp
index 9c0e8ed16a2..fea264b08f1 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/FaultTolerance/FT_Service_Activate.h"
-#include "orbsvcs/FaultTolerance/FT_Service_Callbacks.h"
-#include "orbsvcs/FaultTolerance/FT_ORBInitializer.h"
-#include "orbsvcs/FaultTolerance/FT_Endpoint_Selector_Factory.h"
+#include "FT_Service_Activate.h"
+#include "FT_Service_Callbacks.h"
+#include "FT_ORBInitializer.h"
+#include "FT_Endpoint_Selector_Factory.h"
#include "tao/ORB_Core.h"
#include "tao/Service_Callbacks.h"
#include "ace/Dynamic_Service.h"
@@ -10,8 +10,6 @@ ACE_RCSID(FaultTolerance, FT_Service_Activate, "$Id$")
static bool initialized = false;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FT_Service_Activate::TAO_FT_Service_Activate (void)
{
}
@@ -20,6 +18,7 @@ TAO_FT_Service_Activate::~TAO_FT_Service_Activate (void)
{
}
+
TAO_Service_Callbacks *
TAO_FT_Service_Activate::activate_services (TAO_ORB_Core *orb_core)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -67,8 +66,6 @@ TAO_FT_Service_Activate::Initializer (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_FT,TAO_FT_Service_Activate)
ACE_STATIC_SVC_DEFINE (TAO_FT_Service_Activate,
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h
index f6d261f2246..6ddf858f628 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h
@@ -13,7 +13,7 @@
#ifndef TAO_FT_ACTIVATE_H
#define TAO_FT_ACTIVATE_H
-#include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h"
-#include "orbsvcs/FaultTolerance/FT_ServerService_Activate.h"
+#include "FT_ClientService_Activate.h"
+#include "FT_ServerService_Activate.h"
#endif /*TAO_FT_ACTIVATE_H*/
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp
index 88dedebea60..6ec1eaafe2a 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.cpp
@@ -1,9 +1,7 @@
// $Id$
-#include "orbsvcs/FaultTolerance/FT_Service_Callbacks.h"
-#include "orbsvcs/FaultTolerance/FT_ClientPolicy_i.h"
-
-#include "ace/OS_NS_sys_time.h"
+#include "FT_Service_Callbacks.h"
+#include "FT_ClientPolicy_i.h"
#include "tao/MProfile.h"
#include "tao/Profile.h"
@@ -18,14 +16,15 @@ ACE_RCSID (FaultTolerance,
FT_Service_Callbacks,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FT_Service_Callbacks::TAO_FT_Service_Callbacks (
TAO_ORB_Core *orb_core)
: orb_core_ (orb_core),
- profile_lock_ (0)
+ profile_lock_ (0),
+ primary_failed_ (0),
+ secondary_set_ (0),
+ group_component_ (),
+ group_component_flag_ (0)
{
this->profile_lock_ =
this->orb_core_->client_factory ()->create_profile_lock ();
@@ -111,8 +110,8 @@ TAO_FT_Service_Callbacks::is_profile_equivalent (const TAO_Profile *this_p,
that_cdr >> that_group_component;
// check if domain id and group id are the same
- if ((ACE_OS::strcmp (this_group_component.group_domain_id,
- that_group_component.group_domain_id) == 0) &&
+ if ((ACE_OS::strcmp (this_group_component.group_domain_id.in(),
+ that_group_component.group_domain_id.in()) == 0) &&
(this_group_component.object_group_id ==
that_group_component.object_group_id))
{
@@ -168,71 +167,6 @@ TAO_FT_Service_Callbacks::hash_ft (TAO_Profile *p,
return (CORBA::ULong) group_component.object_group_id % max;
}
-CORBA::Boolean
-TAO_FT_Service_Callbacks::is_permanent_forward_condition (const CORBA::Object_ptr obj,
- const TAO_Service_Context &service_context) const
-{
- // do as much as possible outside of lock
- IOP::ServiceContext sc;
- sc.context_id = IOP::FT_GROUP_VERSION;
-
- if (service_context.get_context (sc) == 0)
- return false; /* false */
-
- IOP::TaggedComponent tc;
- tc.tag = IOP::TAG_FT_GROUP;
-
- const TAO_Stub * stub = obj->_stubobj ();
- // check for forward_profiles, branching to speed up operation on base_profiles
- if (stub->forward_profiles ())
- {
- // set lock, as forward_profiles might be deleted concurrently
- ACE_MT (ACE_GUARD_RETURN (ACE_Lock,
- guard,
- *stub->profile_lock (),
- 0));
-
- // even now, the forward profiles might have been deleted in the meanwhile
- const TAO_MProfile &mprofile = stub->forward_profiles()
- ? *(stub->forward_profiles())
- : stub->base_profiles();
-
- if (mprofile.profile_count() == 0)
- // releasing lock
- return false;
-
- // assuming group-attributes are set for all profiles, check
- // only the first profile
- const TAO_Tagged_Components &tagged_components =
- mprofile.get_profile (0)->tagged_components ();
-
- if (tagged_components.get_component (tc) == 0)
- // releasing lock
- return false; /* false */
-
- return true; /* true */
-
- // releasing lock
- }
- else /* operate on constant basic_profiles */
- {
- const TAO_MProfile &mprofile = stub->base_profiles();
-
- if (mprofile.profile_count() == 0)
- return false;
-
- // assuming group-attributes are set for all profiles, check only the first profile
- const TAO_Tagged_Components &tagged_components =
- mprofile.get_profile (0)->tagged_components ();
-
- if (tagged_components.get_component (tc) == 0)
- return false; /* false */
-
- return true; /* true */
- }
-}
-
-
TAO::Invocation_Status
TAO_FT_Service_Callbacks::raise_comm_failure (
IOP::ServiceContextList &context_list,
@@ -289,19 +223,8 @@ TAO_FT_Service_Callbacks::restart_policy_check (
{
if (service_list[i].context_id == IOP::FT_REQUEST)
{
- // This would be a heck of a lot easier if we had the invocation
- // here rather than just the contexts, but lemons -> lemonade I guess.
- TAO_InputCDR cdr (reinterpret_cast <const char*> (service_list[i].context_data.get_buffer ()),
- service_list[i].context_data.length ());
- CORBA::Boolean byte_order;
- if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0)
- return 0;
- cdr.reset_byte_order (static_cast <int> (byte_order));
- FT::FTRequestServiceContext ftsrc;
- if ((cdr >> ftsrc) == 0)
- return 0;
-
- return (ftsrc.expiration_time > now ());
+ // Success
+ return 1;
}
}
}
@@ -309,17 +232,3 @@ TAO_FT_Service_Callbacks::restart_policy_check (
// Failure
return 0;
}
-
-TimeBase::TimeT
-TAO_FT_Service_Callbacks::now (void)
-{
- // Grab the localtime on the machine where this is running
- ACE_Time_Value time_val = ACE_OS::gettimeofday ();
- TimeBase::TimeT sec_part = ((TimeBase::TimeT)time_val.sec ()) * 10000000;
- TimeBase::TimeT usec_part = ((TimeBase::TimeT)time_val.usec ()) * 10;
-
- // Add the offset to convert from posix time.
- return (sec_part + usec_part + ACE_UINT64_LITERAL (0x1B21DD213814000));
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h
index b8f0b2a4d1f..c3a83efba4c 100644
--- a/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h
+++ b/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Service_Callbacks.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file FT_Service_Callbacks.h
@@ -16,7 +14,7 @@
#define TAO_FT_CALLBACKS_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FaultTolerance/FT_ClientORB_export.h"
+#include "FT_ClientORB_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +23,6 @@
#include "tao/Service_Callbacks.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Profile;
class TAO_MProfile;
class TAO_ORB_Core;
@@ -61,13 +57,6 @@ public:
virtual CORBA::ULong hash_ft (TAO_Profile *p,
CORBA::ULong m);
-
- /// Verify condition for permanent forward is given,
- /// both parameters must provide group attributes.
- virtual CORBA::Boolean is_permanent_forward_condition
- (const CORBA::Object_ptr obj,
- const TAO_Service_Context &service_context) const;
-
/// Check whether we need to raise an exception or go for a
/// reinvocaton.
virtual TAO::Invocation_Status raise_comm_failure (
@@ -82,8 +71,6 @@ public:
TAO_Profile *profile
ACE_ENV_ARG_DECL);
- static TimeBase::TimeT now (void);
-
private:
/// Check whether the right flags are available so that we can issue a
@@ -98,10 +85,28 @@ private:
/// Mutex to protect access to the profile that gets passed along
/// @@ Lock needs to be removed...
ACE_Lock* profile_lock_;
-};
-TAO_END_VERSIONED_NAMESPACE_DECL
+ /**
+ * A flag that indicates that the primary has already failed. So any
+ * more calls to select_profile () should not reset the profile
+ * pointer to the primary.
+ */
+ CORBA::Boolean primary_failed_;
+
+ /**
+ * A flag to indicate that a secondary has been selected for
+ * invocation. We do this only once in the cycle. When we get there
+ * again we dont select a primary again and again.
+ */
+ CORBA::Boolean secondary_set_;
+
+ /// FT group component in the IOGR
+ FT::TagFTGroupTaggedComponent group_component_;
+
+ /// A flag to indicate whether we have extracted the
+ /// <group_component> before.
+ CORBA::Boolean group_component_flag_;
+};
#include /**/ "ace/post.h"
-
#endif /*TAO_FT_CALLBACKS_H*/
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent.mpc b/TAO/orbsvcs/orbsvcs/FtRtEvent.mpc
index b510974a944..027eb1dd61c 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent.mpc
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent.mpc
@@ -1,11 +1,12 @@
// -*- MPC -*-
// $Id$
-project (FtRtEvent) : orbsvcslib, core, ftorbutils, rtevent_serv, naming, minimum_corba, pi_server, tao_versioning_idl_defaults {
+project (FtRtEvent) : orbsvcslib, core, ftorbutils, rtevent_serv, naming, minimum_corba, pi_server {
sharedname = TAO_FtRtEvent
- idlflags += -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h
+
+ idlflags += -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h
dynamicflags = TAO_FTRTEVENT_BUILD_DLL
- tagchecks += FtRtEvent
+ tagchecks = FtRtEvent
IDL_Files {
idlflags += -GC
@@ -39,7 +40,7 @@ project (FtRtEvent) : orbsvcslib, core, ftorbutils, rtevent_serv, naming, minimu
project (FTRT_ClientORB) : messaging, orbsvcslib, pi, core {
sharedname = TAO_FTRT_ClientORB
dynamicflags = TAO_FTRT_BUILD_DLL
- tagchecks += FTRT_ClientORB
+ tagchecks = FTRT_ClientORB
IDL_Files {
}
@@ -60,7 +61,7 @@ project (FTRT_ClientORB) : messaging, orbsvcslib, pi, core {
project (FTRT_EventChannel) : orbsvcslib, core, ftrtevent, rtevent_serv, utils, pi_server, corba_messaging {
sharedname = TAO_FTRT_EventChannel
dynamicflags = TAO_FTRTEC_BUILD_DLL
- tagchecks += FTRT_EventChannel
+ tagchecks = FTRT_EventChannel
after += FTORB_Utils
IDL_Files {
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.cpp
index e4ee1d43f28..8f207a5b953 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.cpp
@@ -1,16 +1,17 @@
// $Id$
-#include "orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h"
-#include "orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h"
+#include "FTRT_ClientORB_Initializer.h"
+#include "FTRT_ClientORB_Interceptor.h"
ACE_RCSID (ClientORB,
FTRT_ClientORB_Initializer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/debug.h"
+
FTRT_ClientORB_Initializer::FTRT_ClientORB_Initializer (int transaction_depth)
- : client_interceptor_ ( new FTRT_ClientORB_Interceptor(transaction_depth) )
+: client_interceptor_ ( new FTRT_ClientORB_Interceptor(transaction_depth) )
{
}
@@ -32,4 +33,4 @@ FTRT_ClientORB_Initializer::post_init (
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h
index 7bfd0791eb1..3667ea1db7b 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h
@@ -31,12 +31,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// RTCORBA ORB initializer.
-class FTRT_ClientORB_Initializer
- : public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
+class FTRT_ClientORB_Initializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
/// Priority mapping types
@@ -53,8 +51,6 @@ private:
PortableInterceptor::ClientRequestInterceptor_var client_interceptor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp
index 1cc5d2fd2de..14cd1f6dbec 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h"
+#include "FTRT_ClientORB_Interceptor.h"
#include "tao/MProfile.h"
#include "tao/Stub.h"
#include "tao/CDR.h"
@@ -10,8 +10,6 @@ ACE_RCSID (ClientORB,
FTRT_ClientORB_Interceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace FTRT {
const unsigned FT_TRANSACTION_DEPTH = 30;
const unsigned FT_FORWARD = 32;
@@ -47,6 +45,7 @@ FTRT_ClientORB_Interceptor::send_poll (
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ // Do Nothing
}
void
@@ -151,11 +150,10 @@ FTRT_ClientORB_Interceptor::receive_other (
void
FTRT_ClientORB_Interceptor::receive_exception (
- PortableInterceptor::ClientRequestInfo_ptr /* ri */
+ PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
{
+ ACE_UNUSED_ARG(ri);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h
index 81512859796..98cbc108bbe 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Interceptor.h
@@ -33,7 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class FTRT_ClientORB_Interceptor
: public virtual PortableInterceptor::ClientRequestInterceptor,
@@ -80,8 +79,6 @@ private:
CORBA::Long transaction_depth_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp
index adac1b323a4..62b1e5828ea 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h"
+#include "FTRT_ClientORB_Loader.h"
-#include "orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Initializer.h"
+#include "FTRT_ClientORB_Initializer.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
@@ -14,8 +14,6 @@ ACE_RCSID (ClientORB,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_FTRT {
FTRT_ClientORB_Loader::FTRT_ClientORB_Loader (void)
{
@@ -47,7 +45,7 @@ namespace TAO_FTRT {
{
curarg++;
if (curarg < argc)
- transaction_depth = atoi(argv[curarg]);
+ transaction_depth = ACE_OS::atoi(argv[curarg]);
}
@@ -84,24 +82,16 @@ namespace TAO_FTRT {
return 0;
}
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
/////////////////////////////////////////////////////////////////////
-ACE_FACTORY_NAMESPACE_DEFINE (
- TAO_FTRT,
- FTRT_ClientORB_Loader,
- TAO_FTRT::FTRT_ClientORB_Loader)
-
-ACE_STATIC_SVC_DEFINE (
- FTRT_ClientORB_Loader,
- ACE_TEXT ("FTRT_ClientORB_Service"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (FTRT_ClientORB_Loader),
- ACE_Service_Type::DELETE_THIS
- | ACE_Service_Type::DELETE_OBJ,
- 0)
-
+ ACE_FACTORY_DEFINE (TAO_FTRT, FTRT_ClientORB_Loader)
+ ACE_STATIC_SVC_DEFINE (FTRT_ClientORB_Loader,
+ ACE_TEXT ("FTRT_ClientORB_Service"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (FTRT_ClientORB_Loader),
+ ACE_Service_Type::DELETE_THIS
+ | ACE_Service_Type::DELETE_OBJ,
+ 0)
+}
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h
index e66f632a2e8..9e64f2d288c 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/ClientORB/FTRT_ClientORB_Loader.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/FtRtEvent/ClientORB/ftrt_clientorb_export.h"
+#include "ftrt_clientorb_export.h"
#include "tao/orbconf.h"
@@ -26,8 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
namespace TAO_FTRT {
@@ -45,13 +43,12 @@ namespace TAO_FTRT {
virtual int init (int argc,
ACE_TCHAR* []);
};
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRT, FTRT_ClientORB_Loader)
-ACE_STATIC_SVC_REQUIRE(FTRT_ClientORB_Loader)
-ACE_FACTORY_DECLARE (TAO_FTRT, FTRT_ClientORB_Loader)
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRT, FTRT_ClientORB_Loader)
+ ACE_STATIC_SVC_REQUIRE(FTRT_ClientORB_Loader)
+ ACE_FACTORY_DECLARE (TAO_FTRT, FTRT_ClientORB_Loader)
+}
#include /**/ "ace/post.h"
#endif //FTRT_CLIENTORB_LOADER_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp
index 7a8965f5c46..9e6b48d3f06 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.cpp
@@ -1,13 +1,13 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h"
+#include "AMI_Primary_Replication_Strategy.h"
#include "ace/Synch_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
-#include "orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Update_Manager.h"
+#include "GroupInfoPublisher.h"
+#include "Request_Context_Repository.h"
+#include "create_persistent_poa.h"
+#include "Update_Manager.h"
#include "tao/Utils/PolicyList_Destroyer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h"
+#include "ObjectGroupManagerHandler.h"
#include "tao/Utils/Implicit_Deactivator.h"
#include "../Utils/resolve_init.h"
#include "../Utils/ScopeGuard.h"
@@ -17,11 +17,8 @@ ACE_RCSID (EventChannel,
AMI_Primary_Replication_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
AMI_Primary_Replication_Strategy::AMI_Primary_Replication_Strategy(bool mt)
- : handler_(this),
- mutex_ (mt ? new ACE_SYNCH_RW_MUTEX : 0)
+: handler_(this), mutex_(mt ? new ACE_SYNCH_RW_MUTEX : 0)
{
}
@@ -107,8 +104,8 @@ AMI_Primary_Replication_Strategy::replicate_request(
ACE_ENV_ARG_DECL)
{
ACE_Auto_Event event;
- Update_Manager* manager = 0;
- bool success = false;
+ Update_Manager* manager;
+ bool success;
FTRT::TransactionDepth transaction_depth =
Request_Context_Repository().get_transaction_depth(ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -120,7 +117,7 @@ AMI_Primary_Replication_Strategy::replicate_request(
size_t num_backups = backups.length();
if ((size_t)transaction_depth > num_backups) {
- TAO_FTRTEC::Log(3, "Throwing FTRT::TransactionDepthTooHigh\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("Throwing FTRT::TransactionDepthTooHigh\n"));
ACE_THROW(FTRT::TransactionDepthTooHigh());
}
@@ -167,7 +164,7 @@ AMI_Primary_Replication_Strategy::replicate_request(
}
ACE_ENDTRY;
}
- TAO_FTRTEC::Log(3, "Throwing FTRT::TransactionDepthTooHigh\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("Throwing FTRT::TransactionDepthTooHigh\n"));
ACE_THROW(FTRT::TransactionDepthTooHigh());
}
@@ -218,5 +215,3 @@ AMI_Primary_Replication_Strategy::add_member(const FTRT::ManagerInfo & info,
event.wait();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h
index 24d44799505..07caec84c43 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h
@@ -13,8 +13,8 @@
#ifndef AMI_PRIMARY_REPLICATION_STRATEGY_H
#define AMI_PRIMARY_REPLICATION_STRATEGY_H
-#include "orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h"
+#include "UpdateableHandler.h"
+#include "Replication_Strategy.h"
#include "orbsvcs/FtRtecEventChannelAdminC.h"
#include "ace/Task.h"
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class AMI_Primary_Replication_Strategy.
*
@@ -62,6 +60,4 @@ private:
ACE_SYNCH_RW_MUTEX* mutex_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // AMI_PRIMARY_REPLICATION_STRATEGY_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp
index b4073479419..c9dee536cf3 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h"
-#include "orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h"
+#include "AMI_Replication_Strategy.h"
+#include "AMI_Primary_Replication_Strategy.h"
#include "ace/Auto_Ptr.h"
@@ -10,10 +10,9 @@ ACE_RCSID (EventChannel,
AMI_Replication_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
AMI_Replication_Strategy::AMI_Replication_Strategy(bool mt)
- : mt_(mt)
+: mt_(mt)
{
}
@@ -67,5 +66,3 @@ int AMI_Replication_Strategy::release (void)
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h
index 8c25f96305d..28e38c23db7 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h
@@ -13,7 +13,7 @@
#ifndef AMI_REPLICATION_STRATEGY_H
#define AMI_REPLICATION_STRATEGY_H
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h"
+#include "Replication_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,14 +23,14 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/Task.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class AMI_Replication_Strategy.
*
* @brief Used by backup replicas when AMI calls are used for replicating requests.
*/
-class AMI_Replication_Strategy : public Replication_Strategy
+
+class AMI_Replication_Strategy: public Replication_Strategy
{
public:
/**
@@ -54,6 +54,5 @@ private:
bool mt_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp
index 50a4a5f4dff..4068101a592 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.cpp
@@ -1,23 +1,21 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h"
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "Basic_Replication_Strategy.h"
+#include "GroupInfoPublisher.h"
+#include "FTEC_Event_Channel.h"
+#include "Request_Context_Repository.h"
#include "../Utils/Log.h"
ACE_RCSID (EventChannel,
Basic_Replication_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// The mutex has to be recursive; otherwise, if the second replicate_request() is
/// called while the first replicate_request() is waiting for reply, we will get
/// a deadlock.
Basic_Replication_Strategy::Basic_Replication_Strategy(bool mt)
- : sequence_num_(0)
- , mutex_(mt ? new ACE_SYNCH_RECURSIVE_MUTEX : 0)
+: sequence_num_(0)
+, mutex_(mt ? new ACE_SYNCH_RECURSIVE_MUTEX : 0)
{
}
@@ -32,7 +30,7 @@ Basic_Replication_Strategy::check_validity(ACE_ENV_SINGLE_ARG_DECL)
FTRT::SequenceNumber seq_no = Request_Context_Repository().get_sequence_number(ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- TAO_FTRTEC::Log(1 , "check_validity : sequence no = %d\n", sequence_num_);
+ TAO_FTRTEC::Log(1 , ACE_TEXT("check_validity : sequence no = %d\n"), sequence_num_);
if (this->sequence_num_ == 0) {
// this is the first set_update received from the primary
@@ -45,7 +43,7 @@ Basic_Replication_Strategy::check_validity(ACE_ENV_SINGLE_ARG_DECL)
// client_interceptor_->sequence_num_--;
FTRT::OutOfSequence exception;
exception.current = this->sequence_num_;
- TAO_FTRTEC::Log(3, "Throwing FTRT::OutOfSequence (old sequence_num_ = %d)\n", this->sequence_num_);
+ TAO_FTRTEC::Log(3, ACE_TEXT("Throwing FTRT::OutOfSequence (old sequence_num_ = %d)\n"), this->sequence_num_);
ACE_THROW(FTRT::OutOfSequence(exception));
}
else
@@ -92,7 +90,7 @@ Basic_Replication_Strategy::replicate_request(
if (info_publisher->is_primary())
this->sequence_num_++;
- TAO_FTRTEC::Log(1, "replicate_request : sequence no = %d\n", sequence_num_);
+ TAO_FTRTEC::Log(1, ACE_TEXT("replicate_request : sequence no = %d\n"), sequence_num_);
Request_Context_Repository().set_sequence_number(sequence_num_
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -114,7 +112,7 @@ Basic_Replication_Strategy::replicate_request(
}
}
else if (transaction_depth > 1) {
- TAO_FTRTEC::Log(3, "Throwing FTRT::TransactionDepthTooHigh\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("Throwing FTRT::TransactionDepthTooHigh\n"));
ACE_THROW(FTRT::TransactionDepthTooHigh());
}
}
@@ -154,5 +152,3 @@ int Basic_Replication_Strategy::release (void)
{
return mutex_ ? mutex_->release() : 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h
index 50b18dd95ee..d75089fbaf0 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h
@@ -11,15 +11,13 @@
//=============================================================================
#ifndef BASIC_REPLICATION_STRATEGY_H
#define BASIC_REPLICATION_STRATEGY_H
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h"
+#include "Replication_Strategy.h"
#include "ace/Synch.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class Basic_Replication_Strategy
*
@@ -54,6 +52,4 @@ private:
ACE_SYNCH_RECURSIVE_MUTEX* mutex_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp
index a14d2c327eb..1ac36e19653 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp
@@ -1,7 +1,5 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <ACE_PEER_STREAM_1>
int ConnectionAcceptHandler<ACE_PEER_STREAM_2>::open (void * acceptor)
{
@@ -93,4 +91,3 @@ int ConnectionDetectHandler<ACE_PEER_STREAM_2>::close (u_long )
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h
index 37a7597914d..27e5bd379ee 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h
@@ -19,10 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <ACE_PEER_STREAM_1>
class ConnectionAcceptHandler : public ACE_Svc_Handler <ACE_PEER_STREAM_2, ACE_NULL_SYNCH>
{
@@ -40,11 +36,7 @@ private:
ACE_Reactor* reactor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "FTEC_Group_Manager.h"
template <ACE_PEER_STREAM_1>
class ConnectionDetectHandler : public ACE_Svc_Handler <ACE_PEER_STREAM_2, ACE_NULL_SYNCH>
@@ -61,10 +53,8 @@ private:
TAO_FTEC_Fault_Listener* listener_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.cpp"
+#include "ConnectionHandler_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp
index 264de9de473..ae9cc29a74f 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h"
+#include "Dynamic_Bitset.h"
#include <assert.h>
#include <algorithm>
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl"
+#include "Dynamic_Bitset.inl"
#endif /* __ACE_INLINE__ */
inline unsigned ceil(unsigned numerator, unsigned denominator)
@@ -13,8 +13,6 @@ inline unsigned ceil(unsigned numerator, unsigned denominator)
return numerator/denominator+ (numerator%denominator ? 1 : 0);
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
Dynamic_Bitset::Dynamic_Bitset(Dynamic_Bitset::size_type size)
: buffer_size_(ceil(size,BITS_PER_BLOCK))
, bit_size_(size)
@@ -121,5 +119,3 @@ bool operator == (const Dynamic_Bitset& lhs, const Dynamic_Bitset& rhs)
mask >>= (Dynamic_Bitset::BITS_PER_BLOCK-bit_pos);
return ((lhs.buffer_[i] ^ rhs.buffer_[i]) & mask ) == 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h
index c4da90b00af..980edb46fce 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h
@@ -13,15 +13,12 @@
#define DYNAMIC_BITSET_H
#include "ace/config-all.h"
-
-#include "tao/Versioned_Namespace.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
*
*/
+
class Dynamic_Bitset
{
typedef unsigned block;
@@ -67,10 +64,8 @@ private:
bool operator == (const Dynamic_Bitset& lhs, const Dynamic_Bitset& rhs);
Dynamic_Bitset operator & (const Dynamic_Bitset& lhs, const Dynamic_Bitset& rhs);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl"
+#include "Dynamic_Bitset.inl"
#endif /* __ACE_INLINE__ */
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl
index d9a1168d994..19bc921fb7d 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.inl
@@ -10,8 +10,6 @@
*/
//=============================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
Dynamic_Bitset::~Dynamic_Bitset()
{
@@ -66,4 +64,3 @@ Dynamic_Bitset::reference Dynamic_Bitset::operator[](Dynamic_Bitset::size_type b
return Dynamic_Bitset::reference(this, bit);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.cpp
index 7f567ab80bb..b378fb7d71c 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.cpp
@@ -1,11 +1,8 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h"
+#include "FTEC_Become_Primary_Listener.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_FTEC_Become_Primary_Listener::~TAO_FTEC_Become_Primary_Listener()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h
index c2a056e29dc..87f4f8cb889 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h
@@ -13,11 +13,7 @@
#ifndef TAO_FTEC_BECOME_PRIMARY_LISTENER_H
#define TAO_FTEC_BECOME_PRIMARY_LISTENER_H
-#include "orbsvcs/FtRtEvent/EventChannel/ftrtec_export.h"
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ftrtec_export.h"
class TAO_FTRTEC_Export TAO_FTEC_Become_Primary_Listener
{
@@ -26,6 +22,4 @@ public:
virtual void become_primary()=0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // TAO_FTEC_BECOME_PRIMARY_LISTENER_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp
index 14ec7a5c533..fa2c3cf0dbd 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.cpp
@@ -2,16 +2,14 @@
#include "orbsvcs/Event/EC_ProxyConsumer.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h"
+#include "FTEC_ConsumerAdmin.h"
+#include "FTEC_ProxySupplier.h"
+#include "ProxySupplierStateWorker.h"
ACE_RCSID (EventChannel,
TAO_FTEC_ConsumerAdmin,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const FtRtecEventChannelAdmin::OperationType
TAO_FTEC_ConsumerAdmin::OBTAIN_ID = FtRtecEventChannelAdmin::OBTAIN_PUSH_SUPPLIER;
@@ -48,4 +46,3 @@ TAO_FTEC_ConsumerAdmin::disconnect(RtecEventChannelAdmin::ProxyPushSupplier_ptr
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h
index 042172fc555..267162a8b4b 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h
@@ -18,10 +18,8 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/Event/EC_ConsumerAdmin.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "FT_ProxyAdmin_T.h"
+#include "ProxySupplierStateWorker.h"
namespace FtRtecEventChannelAdmin {
struct ConsumerAdminState;
@@ -67,7 +65,5 @@ public:
void disconnect(RtecEventChannelAdmin::ProxyPushSupplier_ptr obj);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_EC_CONSUMERADMIN_H */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp
index a2e2b7a29cd..aef9a1f62e5 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.cpp
@@ -1,31 +1,29 @@
// $Id$
#include "ace/Dynamic_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h"
+#include "FTEC_Event_Channel.h"
+#include "FTEC_Event_Channel_Impl.h"
#include "../Utils/activate_with_id.h"
#include "../Utils/resolve_init.h"
#include "../Utils/UUID.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Identification_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h"
+#include "Fault_Detector_Loader.h"
+#include "Fault_Detector.h"
+#include "Request_Context_Repository.h"
+#include "Replication_Service.h"
+#include "Identification_Service.h"
+#include "create_persistent_poa.h"
#include "tao/Utils/PolicyList_Destroyer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
+#include "GroupInfoPublisher.h"
ACE_RCSID (EventChannel,
TAO_FTEC_Event_Channel,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FTEC_Event_Channel::TAO_FTEC_Event_Channel(CORBA::ORB_var orb,
PortableServer::POA_var poa)
- : orb_(orb)
- , poa_(poa)
- , ec_impl_(NULL)
+: orb_(orb)
+, poa_(poa)
+, ec_impl_(NULL)
{
}
@@ -212,7 +210,7 @@ TAO_FTEC_Event_Channel::destroy (ACE_ENV_SINGLE_ARG_DECL)
}
RtecEventChannelAdmin::Observer_Handle
-TAO_FTEC_Event_Channel::append_observer (RtecEventChannelAdmin::Observer_ptr
+TAO_FTEC_Event_Channel::append_observer (RtecEventChannelAdmin::Observer_ptr observer
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException,
@@ -223,11 +221,11 @@ TAO_FTEC_Event_Channel::append_observer (RtecEventChannelAdmin::Observer_ptr
/// throw an exception for the moment
ACE_THROW_RETURN(RtecEventChannelAdmin::EventChannel::CANT_APPEND_OBSERVER(), 0);
- //return this->ec_impl_->append_observer (observer ACE_ENV_ARG_PARAMETER);
+ return this->ec_impl_->append_observer (observer ACE_ENV_ARG_PARAMETER);
}
void
-TAO_FTEC_Event_Channel::remove_observer (RtecEventChannelAdmin::Observer_Handle
+TAO_FTEC_Event_Channel::remove_observer (RtecEventChannelAdmin::Observer_Handle handle
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException,
@@ -238,7 +236,7 @@ TAO_FTEC_Event_Channel::remove_observer (RtecEventChannelAdmin::Observer_Handle
/// throw an exception for the moment
ACE_THROW(RtecEventChannelAdmin::EventChannel::CANT_REMOVE_OBSERVER());
- //ec_impl_->remove_observer (handle ACE_ENV_ARG_PARAMETER);
+ ec_impl_->remove_observer (handle ACE_ENV_ARG_PARAMETER);
}
@@ -406,7 +404,7 @@ TAO_FTEC_Event_Channel::resume_push_supplier (
))
{
ec_impl_->resume_push_supplier(oid
- ACE_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
}
void
@@ -420,9 +418,7 @@ TAO_FTEC_Event_Channel::push (
, FtRtecEventComm::InvalidObjectID
))
{
- ec_impl_->push(oid,
- data
- ACE_ENV_ARG_PARAMETER);
+ ec_impl_->push(oid, data
+ ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h
index 397aa0af43e..ff7d20f47ff 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h
@@ -12,15 +12,13 @@
#ifndef FTEC_EVENT_CHANNEL_H
#define FTEC_EVENT_CHANNEL_H
-#include "orbsvcs/FtRtEvent/EventChannel/ftrtec_export.h"
+#include "ftrtec_export.h"
#include "orbsvcs/FtRtecEventChannelAdminS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Event_Channel_Impl;
class TAO_FTEC_Become_Primary_Listener;
@@ -179,6 +177,4 @@ private:
TAO_FTEC_Event_Channel_Impl* ec_impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp
index 0d85bbe8155..73c5ff4fce7 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.cpp
@@ -1,15 +1,15 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h"
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
+#include "FTEC_Event_Channel_Impl.h"
+#include "FTEC_Factory.h"
+#include "FTEC_SupplierAdmin.h"
+#include "FTEC_ConsumerAdmin.h"
+#include "FTEC_ProxyConsumer.h"
+#include "FTEC_ProxySupplier.h"
+#include "FtEventServiceInterceptor.h"
+#include "FT_ProxyAdmin_Base.h"
+#include "IOGR_Maker.h"
+#include "Replication_Service.h"
#include "../Utils/Safe_InputCDR.h"
#include "orbsvcs/FtRtecEventCommC.h"
@@ -18,8 +18,6 @@ ACE_RCSID (EventChannel,
FTEC_Event_Channel_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void obtain_push_supplier(TAO_FTEC_Event_Channel_Impl* ec,
FtRtecEventChannelAdmin::Operation& op
ACE_ENV_ARG_DECL)
@@ -217,7 +215,7 @@ typedef void (*Set_update_fun)(TAO_FTEC_Event_Channel_Impl* ec,
FtRtecEventChannelAdmin::Operation& op
ACE_ENV_ARG_DECL);
-Set_update_fun const update_table[] = {
+Set_update_fun update_table[] = {
&obtain_push_supplier,
&obtain_push_consumer,
&disconnect_push_supplier,
@@ -578,5 +576,3 @@ TAO_FTEC_Event_Channel_Impl::find_proxy_push_consumer(const FtRtecEventChannelAd
ACE_ENDTRY;
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h
index ba6c2e1bc0d..4ddb93d6450 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel_Impl.h
@@ -15,16 +15,14 @@
#include "ace/Synch_T.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
#include "orbsvcs/FtRtecEventChannelAdminC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h"
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
+#include "FTEC_Factory.h"
+#include "FTEC_Group_Manager.h"
+#include "IOGR_Maker.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_ProxyPushSupplier;
class TAO_FTEC_ProxyPushConsumer;
class TAO_FTEC_SupplierAdmin;
@@ -130,6 +128,4 @@ private:
IOGR_Maker iogr_maker_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp
index c0bb7566afa..b46188a9458 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.cpp
@@ -1,18 +1,16 @@
// $Id$
#include "orbsvcs/Event/EC_Event_Channel.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ConsumerAdmin.h"
+#include "FTEC_Event_Channel.h"
+#include "FTEC_Factory.h"
+#include "FTEC_ProxySupplier.h"
+#include "FTEC_ProxyConsumer.h"
+#include "FTEC_SupplierAdmin.h"
+#include "FTEC_ConsumerAdmin.h"
ACE_RCSID (EventChannel,
FTEC_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FTEC_Basic_Factory::TAO_FTEC_Basic_Factory (void)
{
}
@@ -53,4 +51,3 @@ TAO_FTEC_Basic_Factory::destroy_proxy_push_consumer (TAO_EC_ProxyPushConsumer* p
delete proxy;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h
index 5fd7cb8e131..d253716dba1 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Factory.h
@@ -18,9 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Basic_Factory : public TAO_EC_Default_Factory
{
public:
@@ -43,7 +40,5 @@ public:
destroy_proxy_push_consumer (TAO_EC_ProxyPushConsumer*);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h
index c2eb737544e..a2106a68aa3 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h
@@ -13,9 +13,6 @@
#ifndef TAO_FTEC_FAULT_LISTENER_H
#define TAO_FTEC_FAULT_LISTENER_H
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_FTEC_Fault_Listener
{
@@ -24,6 +21,4 @@ public:
virtual void connection_closed()=0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp
index 80c7ba30a06..2057cf72ad7 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h"
+#include "FTEC_Group_Manager.h"
#include "ace/Synch_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h"
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
+#include "Replication_Service.h"
+#include "Fault_Detector.h"
+#include "IOGR_Maker.h"
+#include "GroupInfoPublisher.h"
+#include "Replication_Service.h"
#include "../Utils/Log.h"
#include "tao/CDR.h"
#include "orbsvcs/PortableGroup/PG_Operators.h"
@@ -15,7 +15,6 @@ ACE_RCSID (EventChannel,
TAO_FTEC_Group_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
int find_by_location(const FTRT::ManagerInfoList& list,
const FTRT::Location & location)
@@ -77,7 +76,7 @@ void TAO_FTEC_Group_Manager::create_group (
CORBA::ULong object_group_ref_version
ACE_ENV_ARG_DECL)
{
- TAO_FTRTEC::Log(1, "create_group\n");
+ TAO_FTRTEC::Log(1, ACE_TEXT("create_group\n"));
impl_->info_list = info_list;
impl_->my_position = find_by_location(info_list,
@@ -117,7 +116,7 @@ void TAO_FTEC_Group_Manager::join_group (
const FTRT::ManagerInfo & info
ACE_ENV_ARG_DECL)
{
- TAO_FTRTEC::Log(1, "join group\n");
+ TAO_FTRTEC::Log(1, ACE_TEXT("join group\n"));
if (impl_->my_position == 0) {
FTRTEC::Replication_Service* svc = FTRTEC::Replication_Service::instance();
ACE_Write_Guard<FTRTEC::Replication_Service> lock(*svc);
@@ -131,7 +130,7 @@ void TAO_FTEC_Group_Manager::add_member (
CORBA::ULong object_group_ref_version
ACE_ENV_ARG_DECL)
{
- TAO_FTRTEC::Log(1, "add_member location = <%s>\n",
+ TAO_FTRTEC::Log(1, ACE_TEXT("add_member location = <%s>\n"),
(const char*)info.the_location[0].id);
auto_ptr<TAO_FTEC_Group_Manager_Impl> new_impl(new TAO_FTEC_Group_Manager_Impl);
@@ -238,14 +237,14 @@ void TAO_FTEC_Group_Manager::add_member (
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */
}
- TAO_FTRTEC::Log(2, "Setting state\n");
+ TAO_FTRTEC::Log(2, ACE_TEXT("Setting state\n"));
info.ior->set_state(s ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
info.ior->create_group(new_impl->info_list,
object_group_ref_version
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- TAO_FTRTEC::Log(2, "After create_group\n");
+ TAO_FTRTEC::Log(2, ACE_TEXT("After create_group\n"));
}
// commit the changes
@@ -269,7 +268,7 @@ void TAO_FTEC_Group_Manager::replica_crashed (
const FTRT::Location & location
ACE_ENV_ARG_DECL)
{
- TAO_FTRTEC::Log(1, "TAO_FTEC_Group_Manager::replica_crashed\n");
+ TAO_FTRTEC::Log(1, ACE_TEXT("TAO_FTEC_Group_Manager::replica_crashed\n"));
FTRTEC::Replication_Service* svc = FTRTEC::Replication_Service::instance();
ACE_Write_Guard<FTRTEC::Replication_Service> lock(*svc);
remove_member(location, IOGR_Maker::instance()->get_ref_version()+1
@@ -319,14 +318,14 @@ void TAO_FTEC_Group_Manager::remove_member (
ACE_ENDTRY;
}
- TAO_FTRTEC::Log(3, "my_position = %d, crashed_pos = %d\n", impl_->my_position, crashed_pos);
+ TAO_FTRTEC::Log(3, ACE_TEXT("my_position = %d, crashed_pos = %d\n"), impl_->my_position, crashed_pos);
if (impl_->my_position == crashed_pos && impl_->my_position > 0)
Fault_Detector::instance()->connect(impl_->info_list[impl_->my_position-1].the_location);
}
void TAO_FTEC_Group_Manager::connection_closed()
{
- TAO_FTRTEC::Log(1, "TAO_FTEC_Group_Manager::connection_closed\n");
+ TAO_FTRTEC::Log(1, ACE_TEXT("TAO_FTEC_Group_Manager::connection_closed\n"));
ACE_ASSERT(impl_->my_position > 0);
// do not use referere here, because the the value pointed by the pointer to
@@ -375,4 +374,4 @@ void TAO_FTEC_Group_Manager::connection_closed()
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h
index 0d06c156bf5..f2720fa1393 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_Group_Manager.h
@@ -14,15 +14,12 @@
#define TAO_FTEC_GROUP_MANAGER_H
#include "orbsvcs/FtRtecEventChannelAdminC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h"
+#include "FTEC_Fault_Listener.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
struct TAO_FTEC_Group_Manager_Impl;
class TAO_FTEC_Group_Manager : private TAO_FTEC_Fault_Listener
@@ -75,6 +72,4 @@ protected:
TAO_FTEC_Group_Manager_Impl* impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // TAO_FTEC_GROUP_MANAGER_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp
index 410377e8a80..884b769ffa0 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.cpp
@@ -1,18 +1,16 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "FTEC_ORBInitializer.h"
+#include "Set_Update_Interceptor.h"
+#include "ForwardCtrlServerInterceptor.h"
+#include "FtEventServiceInterceptor.h"
+#include "Request_Context_Repository.h"
ACE_RCSID (EventChannel,
FTEC_ORBInitializer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
FTEC_ORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
@@ -35,9 +33,8 @@ FTEC_ORBInitializer::post_init (
PortableInterceptor::ClientRequestInterceptor_ptr ctmp;
ACE_NEW_THROW_EX(ctmp,
- TAO_Set_Update_Interceptor,
- CORBA::NO_MEMORY());
- ACE_CHECK;
+ TAO_Set_Update_Interceptor,
+ CORBA::NO_MEMORY());
client_interceptor = ctmp;
@@ -64,5 +61,3 @@ FTEC_ORBInitializer::post_init (
info->add_server_request_interceptor (server_interceptor.in()
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h
index 07377cd40e1..947ea61cafa 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class FTEC_ORBInitializer
: public virtual PortableInterceptor::ORBInitializer
, public virtual TAO_Local_RefCounted_Object
@@ -36,7 +34,5 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* FTEC_ORBINITIALIZER__H_ */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp
index 3f489f9540f..90f14052e48 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
+#include "FTEC_ProxyConsumer.h"
+#include "Request_Context_Repository.h"
+#include "Replication_Service.h"
#include "../Utils/activate_with_id.h"
ACE_RCSID (EventChannel,
TAO_FTEC_ProxyPushConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const TAO_FTEC_ProxyPushConsumer::RollbackOperation
TAO_FTEC_ProxyPushConsumer::rollback_obtain =
&FtRtecEventChannelAdmin::EventChannelFacade::disconnect_push_consumer;
@@ -130,5 +128,3 @@ void TAO_FTEC_ProxyPushConsumer::set_state(const FtRtecEventChannelAdmin::ProxyP
ACE_ENV_ARG_PARAMETER);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h
index 518e4f73eb0..15bba1e940e 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h
@@ -15,14 +15,12 @@
#include "orbsvcs/Event/EC_Default_ProxyConsumer.h"
#include "ace/SString.h"
#include "orbsvcs/FtRtecEventChannelAdminC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "Request_Context_Repository.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_ProxyPushConsumer : public TAO_EC_Default_ProxyPushConsumer
{
typedef TAO_EC_Default_ProxyPushConsumer Inherited;
@@ -62,6 +60,4 @@ private:
FtRtecEventChannelAdmin::ObjectId_var object_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp
index 62fad4ef9d7..e400cc7e2eb 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h"
+#include "FTEC_ProxySupplier.h"
#include "../Utils/activate_with_id.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
+#include "Request_Context_Repository.h"
+#include "Replication_Service.h"
ACE_RCSID (EventChannel,
TAO_FTEC_ProxyPushSupplier,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const TAO_FTEC_ProxyPushSupplier::RollbackOperation
TAO_FTEC_ProxyPushSupplier::rollback_obtain =
&FtRtecEventChannelAdmin::EventChannelFacade::disconnect_push_supplier;
@@ -198,5 +196,3 @@ void TAO_FTEC_ProxyPushSupplier::set_state(const FtRtecEventChannelAdmin::ProxyP
Inherited::suspend_connection(ACE_ENV_SINGLE_ARG_PARAMETER);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h
index 34c38f96400..a1ca15aeaff 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h
@@ -15,14 +15,12 @@
#include "orbsvcs/Event/EC_Default_ProxySupplier.h"
#include "ace/SString.h"
#include "orbsvcs/FtRtecEventChannelAdminC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "Request_Context_Repository.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_ProxyPushSupplier : public TAO_EC_Default_ProxyPushSupplier
{
typedef TAO_EC_Default_ProxyPushSupplier Inherited;
@@ -67,6 +65,4 @@ private:
FtRtecEventChannelAdmin::ObjectId_var object_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp
index 74a666746cc..b67a0fe6a3a 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.cpp
@@ -2,15 +2,14 @@
#include "orbsvcs/Event/EC_ProxySupplier.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h"
+#include "FTEC_SupplierAdmin.h"
+#include "FTEC_ProxyConsumer.h"
#include "tao/Stub.h"
ACE_RCSID (EventChannel,
TAO_FTEC_SupplierAdmin,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const FtRtecEventChannelAdmin::OperationType
TAO_FTEC_SupplierAdmin::OBTAIN_ID = FtRtecEventChannelAdmin::OBTAIN_PUSH_CONSUMER;
@@ -46,4 +45,7 @@ TAO_FTEC_SupplierAdmin::disconnect(RtecEventChannelAdmin::ProxyPushConsumer_ptr
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h
index 814061c0263..9bbdca262ed 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTEC_SupplierAdmin.h
@@ -14,9 +14,9 @@
#define TAO_FTEC_SUPPLIERADMIN_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h"
+#include "FTEC_ProxyConsumer.h"
+#include "FT_ProxyAdmin_T.h"
+#include "ProxyConsumerStateWorker.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -25,8 +25,6 @@
#include "orbsvcs/Event/EC_SupplierAdmin.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Event_Channel_Impl;
namespace FtRtecEventChannelAdmin {
@@ -73,7 +71,5 @@ public:
void disconnect(RtecEventChannelAdmin::ProxyPushConsumer_ptr obj);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_FTEC_SUPPLIERADMIN_H */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTRTEC_ServiceActivate.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTRTEC_ServiceActivate.h
index 9666d6e5480..d0988b09021 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTRTEC_ServiceActivate.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FTRTEC_ServiceActivate.h
@@ -3,9 +3,9 @@
#ifndef FTRTEC_SERVICE_ACTIVATE_H
#define FTRTEC_SERVICE_ACTIVATE_H
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Identification_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
+#include "Fault_Detector_Loader.h"
+#include "Identification_Service.h"
+#include "Replication_Service.h"
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp
index 5fb7d08ad06..f833b81b70c 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h"
+#include "FT_ProxyAdmin_Base.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/PortableServer/Servant_Base.h"
#include "tao/PortableServer/PortableServer.h"
@@ -10,11 +10,9 @@ ACE_RCSID (EventChannel,
FT_ProxyAdmin_Base,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
FT_ProxyAdmin_Base::FT_ProxyAdmin_Base(PortableServer::ServantBase* servant,
PortableServer::POA_var poa)
- : servant_(servant), poa_(poa)
+: servant_(servant), poa_(poa)
{
}
@@ -22,9 +20,8 @@ FT_ProxyAdmin_Base::~FT_ProxyAdmin_Base()
{
}
-void
-FT_ProxyAdmin_Base::activate(const FtRtecEventComm::ObjectId& oid
- ACE_ENV_ARG_DECL)
+void FT_ProxyAdmin_Base::activate(const FtRtecEventComm::ObjectId& oid
+ ACE_ENV_ARG_DECL)
{
poa_->activate_object_with_id(
reinterpret_cast<const PortableServer::ObjectId&> (oid),
@@ -35,18 +32,17 @@ FT_ProxyAdmin_Base::activate(const FtRtecEventComm::ObjectId& oid
}
-const FtRtecEventComm::ObjectId&
-FT_ProxyAdmin_Base::object_id(ACE_ENV_SINGLE_ARG_DECL_NOT_USED) const
+const FtRtecEventComm::ObjectId& FT_ProxyAdmin_Base::object_id(ACE_ENV_SINGLE_ARG_DECL_NOT_USED) const
{
return object_id_;
}
-CORBA::Object_var
-FT_ProxyAdmin_Base::reference(ACE_ENV_SINGLE_ARG_DECL) const
+CORBA::Object_var FT_ProxyAdmin_Base::reference(ACE_ENV_SINGLE_ARG_DECL) const
{
- return poa_->servant_to_reference(servant_
- ACE_ENV_ARG_PARAMETER);
+ return poa_->servant_to_reference(servant_
+ ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h
index 2c639c0ce6f..21bf1a7b9ca 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h
@@ -22,7 +22,6 @@
#include "tao/PortableServer/Servant_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class FT_ProxyAdmin_Base
{
@@ -47,7 +46,7 @@ protected:
FtRtecEventComm::ObjectId object_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#include /**/ "ace/post.h"
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp
index 00c658cef95..99d1749fa62 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
+#include "IOGR_Maker.h"
+#include "Replication_Service.h"
#include "ace/Synch_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class EC_PROXY_ADMIN, class Proxy,
class ProxyInterface, class State>
FT_ProxyAdmin<EC_PROXY_ADMIN, Proxy, ProxyInterface, State>::FT_ProxyAdmin(
@@ -141,5 +139,3 @@ void FT_ProxyAdmin<EC_PROXY_ADMIN, Proxy, ProxyInterface, State>::set_state(
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h
index 92e2bf0ad6d..a0bff3fb0c8 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.h
@@ -12,16 +12,14 @@
#ifndef FT_PROXYADMIN_H
#define FT_PROXYADMIN_H
-#include "orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_Base.h"
+#include "FT_ProxyAdmin_Base.h"
#include "../Utils/ScopeGuard.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "Request_Context_Repository.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class EC_PROXY_ADMIN, class Proxy,
class ProxyInterface, class State>
class FT_ProxyAdmin : public FT_ProxyAdmin_Base
@@ -33,7 +31,8 @@ public:
FT_ProxyAdmin(EC_PROXY_ADMIN* admin,
PortableServer::POA_var poa);
- ProxyInterface_ptr obtain_proxy (ACE_ENV_SINGLE_ARG_DECL);
+ ProxyInterface_ptr
+ obtain_proxy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED);
/// this is used for updating the state
void obtain_proxy (const FtRtecEventChannelAdmin::Operation& op
@@ -45,10 +44,8 @@ private:
EC_PROXY_ADMIN* admin_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/FtRtEvent/EventChannel/FT_ProxyAdmin_T.cpp"
+#include "FT_ProxyAdmin_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp
index a7cc3c7a391..d141db9a2f5 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.cpp
@@ -1,17 +1,15 @@
// $Id$
#include "ace/Reactor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h"
+#include "Fault_Detector.h"
#include "ace/Select_Reactor.h"
ACE_RCSID (EventChannel,
Fault_Detector,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
Fault_Detector::ReactorTask::ReactorTask()
- : reactor_(new ACE_Select_Reactor, 1)
+: reactor_(new ACE_Select_Reactor, 1)
{
}
@@ -42,7 +40,7 @@ Fault_Detector* Fault_Detector::instance()
return detector;
}
-int Fault_Detector::init(int argc, char** argv)
+int Fault_Detector::init(int argc, ACE_TCHAR** argv)
{
detector = this;
if (this->parse_conf(argc, argv)==0 &&
@@ -67,9 +65,7 @@ void Fault_Detector::set_listener(TAO_FTEC_Fault_Listener* listener)
listener_ = listener;
}
-int Fault_Detector::parse_conf(int , char** )
+int Fault_Detector::parse_conf(int , ACE_TCHAR** )
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h
index a10fdf62f8f..10d93e3705d 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Fault_Listener;
class Fault_Detector
@@ -59,6 +57,4 @@ protected:
TAO_FTEC_Fault_Listener* listener_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif //FAULT_DETECTOR_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp
index 56d8c25b846..59af4a913d7 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h"
-#include "orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h"
+#include "Fault_Detector_Loader.h"
+#include "Fault_Detector_T.h"
+#include "FTEC_Fault_Listener.h"
+#include "SCTP_Fault_Detector.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/SOCK_Connector.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h"
+#include "ConnectionHandler_T.h"
#include "ace/Acceptor.h"
#include "ace/OS_NS_strings.h"
@@ -15,8 +15,6 @@ ACE_RCSID (EventChannel,
Fault_Detector_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace FTRTEC {
typedef Fault_Detector_T<
ACE_Acceptor<ConnectionAcceptHandler<ACE_SOCK_STREAM> , ACE_SOCK_ACCEPTOR>,
@@ -69,22 +67,16 @@ namespace FTRTEC {
{
return detector_.get();
}
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
/////////////////////////////////////////////////////////////////////
-ACE_FACTORY_NAMESPACE_DEFINE (
- TAO_FTRTEC,
- Fault_Detector_Loader,
- FTRTEC::Fault_Detector_Loader)
+ ACE_FACTORY_DEFINE (TAO_FTRTEC, Fault_Detector_Loader)
-ACE_STATIC_SVC_DEFINE (
- Fault_Detector_Loader,
- ACE_TEXT ("FTRTEC_Fault_Detector"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (Fault_Detector_Loader),
- ACE_Service_Type::DELETE_THIS
- | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_STATIC_SVC_DEFINE (Fault_Detector_Loader,
+ ACE_TEXT ("FTRTEC_Fault_Detector"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (Fault_Detector_Loader),
+ ACE_Service_Type::DELETE_THIS
+ | ACE_Service_Type::DELETE_OBJ,
+ 0)
+}
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h
index dbe29fe82da..777cb73de7b 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_Loader.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ftrtec_export.h"
+#include "ftrtec_export.h"
#include "tao/orbconf.h"
@@ -27,7 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class Fault_Detector;
@@ -47,13 +46,12 @@ namespace FTRTEC {
private:
auto_ptr<Fault_Detector> detector_;
};
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRTEC, Fault_Detector_Loader)
-ACE_STATIC_SVC_REQUIRE(Fault_Detector_Loader)
-ACE_FACTORY_DECLARE (TAO_FTRTEC, Fault_Detector_Loader)
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRTEC, Fault_Detector_Loader)
+ ACE_STATIC_SVC_REQUIRE(Fault_Detector_Loader)
+ ACE_FACTORY_DECLARE (TAO_FTRTEC, Fault_Detector_Loader)
+}
#include /**/ "ace/post.h"
#endif //FAULT_DETECTOR_LOADER_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp
index bcf68ca9e98..168e0ed8006 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp
@@ -4,8 +4,6 @@
#include "ace/INET_Addr.h"
#include "ace/os_include/os_netdb.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACCEPTOR, class CONNECTOR, class DETECTION_HANDLER>
Fault_Detector_T<ACCEPTOR, CONNECTOR, DETECTION_HANDLER>::Fault_Detector_T()
{
@@ -30,10 +28,16 @@ Fault_Detector_T<ACCEPTOR, CONNECTOR, DETECTION_HANDLER>::init_acceptor()
ACE_DEBUG((LM_DEBUG, "listening at %s:%d\n", listen_addr.get_host_name(),
listen_addr.get_port_number()));
- char* buf = CORBA::string_alloc(MAXHOSTNAMELEN);
+
+ ACE_TCHAR* buf = new ACE_TCHAR[ MAXHOSTNAMELEN + 1 ];
listen_addr.addr_to_string(buf, MAXHOSTNAMELEN, 0);
location_.length(1);
+#if defined (ACE_USES_WCHAR)
+ location_[0].id = ACE::String_Conversion::Convert_Out<char>( buf ).c_str();
+ delete buf;
+#else
location_[0].id = buf;
+#endif
return 0;
}
@@ -61,5 +65,3 @@ Fault_Detector_T<ACCEPTOR, CONNECTOR, DETECTION_HANDLER>::connect(const FTRT::Lo
return result ;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h
index 45be158a522..6c9ed952bce 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h
@@ -13,14 +13,12 @@
#ifndef FAULT_DETECTOR_T_H
#define FAULT_DETECTOR_T_H
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector.h"
+#include "Fault_Detector.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACCEPTOR, class CONNECTOR, class DETECTION_HANDLER>
class Fault_Detector_T : public Fault_Detector
{
@@ -35,10 +33,8 @@ private:
virtual int init_acceptor();
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.cpp"
+#include "Fault_Detector_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Listener.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Listener.h
index e66914b0c29..a8bcb0bb35d 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Listener.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Fault_Listener.h
@@ -17,10 +17,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Fault_Listener
{
public:
@@ -28,6 +24,4 @@ public:
virtual void connection_closed()=0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp
index ee750df8f22..dd523803cd6 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
+#include "ForwardCtrlServerInterceptor.h"
+#include "GroupInfoPublisher.h"
+#include "IOGR_Maker.h"
#include "tao/PortableServer/PortableServer.h"
#include "../Utils/resolve_init.h"
#include "../Utils/Safe_InputCDR.h"
@@ -17,8 +17,6 @@ ACE_RCSID (EventChannel,
ForwardCtrlServerInterceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Object_ptr get_target(PortableInterceptor::ServerRequestInfo_ptr ri
ACE_ENV_ARG_DECL)
{
@@ -192,7 +190,7 @@ void ForwardCtrlServerInterceptor::send_reply (PortableInterceptor::ServerReques
// pass a new IOGR if the client use an outdated version
IOGR_Maker* maker = IOGR_Maker::instance();
- TAO_FTRTEC::Log(3, "Current GROUP Version = %d, received version = %d\n",
+ TAO_FTRTEC::Log(3, ACE_TEXT("Current GROUP Version = %d, received version = %d\n"),
maker->get_ref_version(), version);
if (version < maker->get_ref_version()) {
@@ -256,5 +254,3 @@ void ForwardCtrlServerInterceptor::send_other (PortableInterceptor::ServerReques
PortableInterceptor::ForwardRequest))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h
index d53dc682b0e..de0c52f7b14 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ForwardCtrlServerInterceptor.h
@@ -19,10 +19,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ForwardCtrlServerInterceptor
- : public PortableInterceptor::ServerRequestInterceptor
+class ForwardCtrlServerInterceptor :
+ public PortableInterceptor::ServerRequestInterceptor
{
public:
ForwardCtrlServerInterceptor();
@@ -59,7 +57,4 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest));
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp
index 779396ce1ee..eed535d3292 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.cpp
@@ -2,8 +2,8 @@
#include "ace/OS_NS_string.h"
#include "ace/SString.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "FtEventServiceInterceptor.h"
+#include "Request_Context_Repository.h"
#include "../Utils/Safe_InputCDR.h"
#include "../Utils/Log.h"
@@ -11,8 +11,6 @@ ACE_RCSID (EventChannel,
FtEventServiceInterceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
bool
CachedRequestTable::is_new_request(const ACE_CString& client_id, CORBA::Long retention_id)
{
@@ -224,7 +222,7 @@ FtEventServiceInterceptor::receive_request (PortableInterceptor::ServerRequestIn
CORBA::String_var operation = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (ACE_OS::strcmp(operation.in(), "push") == 0) {
- TAO_FTRTEC::Log(3, "Received push command\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("Received push command\n"));
return;
}
@@ -336,5 +334,3 @@ FtEventServiceInterceptor::set_state(const FtRtecEventChannelAdmin::CachedOption
{
request_table_.set_state(state);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h
index 09a28a81257..eb0e60fa1ea 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/FtEventServiceInterceptor.h
@@ -25,8 +25,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Event_Channel_Impl;
typedef FtRtecEventChannelAdmin::CachedResult CachedRequestInfo;
@@ -95,6 +93,6 @@ private:
CachedRequestTable request_table_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.cpp
index 63d7801689e..ed7ad362aeb 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
+#include "GroupInfoPublisher.h"
#include "../Utils/resolve_init.h"
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Identification_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h"
+#include "IOGR_Maker.h"
+#include "Identification_Service.h"
+#include "FTEC_Become_Primary_Listener.h"
#include "../Utils/Log.h"
//#include "../Utils/log_obj_endpoints.h"
@@ -14,10 +14,9 @@ ACE_RCSID (EventChannel,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
GroupInfoPublisherBase::GroupInfoPublisherBase()
- : info_(new Info)
+: info_(new Info)
{
info_->primary = false;
}
@@ -153,7 +152,7 @@ GroupInfoPublisherBase::update_info(GroupInfoPublisherBase::Info_ptr& info)
}
if (!CORBA::is_nil(naming_context_.in())) {
- TAO_FTRTEC::Log(1, "Registering to the Name Service\n");
+ TAO_FTRTEC::Log(1, ACE_TEXT("Registering to the Name Service\n"));
ACE_TRY_NEW_ENV {
naming_context_->rebind(FTRTEC::Identification_Service::instance()->name(),
info->iogr.in() ACE_ENV_ARG_PARAMETER);
@@ -171,5 +170,3 @@ GroupInfoPublisherBase::update_info(GroupInfoPublisherBase::Info_ptr& info)
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template ACE_Singleton<GroupInfoPublisherBase, ACE_Thread_Mutex> *ACE_Singleton<GroupInfoPublisherBase, ACE_Thread_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h
index 8268bb2dd89..1e010ee35df 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h
@@ -24,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Become_Primary_Listener;
class GroupInfoPublisherBase
@@ -77,7 +75,4 @@ private:
};
typedef ACE_Singleton<GroupInfoPublisherBase, ACE_SYNCH_MUTEX> GroupInfoPublisher;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp
index 7f72a686a8f..e5390fc7e05 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h"
+#include "IOGR_Maker.h"
#include "tao/MProfile.h"
#include "tao/Profile.h"
#include "tao/Stub.h"
@@ -10,15 +10,14 @@
#include "../Utils/resolve_init.h"
#include "../Utils/Safe_InputCDR.h"
#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
-#include "orbsvcs/FtRtEvent/EventChannel/GroupInfoPublisher.h"
+#include "GroupInfoPublisher.h"
ACE_RCSID (EventChannel,
IOGR_Maker,
"$Id$")
-static IOGR_Maker* maker;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static IOGR_Maker* maker;
IOGR_Maker::IOGR_Maker()
{
@@ -266,4 +265,3 @@ IOGR_Maker::set_tag_components(
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h
index cbc933a61c8..29b0e512316 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/IOGR_Maker.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class IOGR_Maker
{
public:
@@ -70,6 +68,4 @@ private:
FT::TagFTGroupTaggedComponent ft_tag_component_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp
index 7b356e36f4d..26536108070 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Identification_Service.h"
+#include "Identification_Service.h"
#include "../Utils/UUID.h"
ACE_RCSID (EventChannel,
@@ -8,8 +8,6 @@ ACE_RCSID (EventChannel,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace FTRTEC {
namespace {
@@ -43,7 +41,7 @@ namespace FTRTEC {
--argc; ++argv;
if (argv[0][0] == '-') continue;
else if (argv[0][0] != '$') {
- UUID uuid(argv[0]);
+ UUID uuid(ACE_TEXT_TO_CHAR_IN (argv[0]));
if (!uuid.is_valid())
ACE_ERROR_RETURN((LM_ERROR, "Invalid Object_ID\n"), -1);
object_id_.length(16);
@@ -81,20 +79,14 @@ namespace FTRTEC {
{
return name_;
}
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- TAO_FTRTEC,
- Identification_Service,
- FTRTEC::Identification_Service)
-
-ACE_STATIC_SVC_DEFINE (
- Identification_Service,
- ACE_TEXT ("FTRTEC_Identification"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (Identification_Service),
- ACE_Service_Type::DELETE_THIS
- | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (TAO_FTRTEC, Identification_Service)
+
+ ACE_STATIC_SVC_DEFINE (Identification_Service,
+ ACE_TEXT ("FTRTEC_Identification"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (Identification_Service),
+ ACE_Service_Type::DELETE_THIS
+ | ACE_Service_Type::DELETE_OBJ,
+ 0)
+}
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h
index a932c92b789..0fb06766859 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Identification_Service.h
@@ -17,14 +17,12 @@
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/FTRTC.h"
#include "orbsvcs/FtRtecEventCommC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ftrtec_export.h"
+#include "ftrtec_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace FTRTEC
{
class Identification_Service : public ACE_Service_Object
@@ -46,12 +44,11 @@ namespace FTRTEC
FtRtecEventComm::ObjectId object_id_;
CosNaming::Name name_;
};
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRTEC, Identification_Service)
-ACE_STATIC_SVC_REQUIRE(Identification_Service)
-ACE_FACTORY_DECLARE (TAO_FTRTEC, Identification_Service)
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRTEC, Identification_Service)
+ ACE_STATIC_SVC_REQUIRE(Identification_Service)
+ ACE_FACTORY_DECLARE (TAO_FTRTEC, Identification_Service)
+}
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp
index fbb8c4166a4..e6ce13f51ce 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.cpp
@@ -1,7 +1,5 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ObjectGroupManagerHandler.h"
ObjectGroupManagerHandler::ObjectGroupManagerHandler(
ACE_Auto_Event& evt, int num_backups)
@@ -9,7 +7,7 @@ ObjectGroupManagerHandler::ObjectGroupManagerHandler(
{
}
-void
+void
ObjectGroupManagerHandler::start (CORBA::Boolean ami_return_val,
const FTRT::Location & the_location
ACE_ENV_ARG_DECL_NOT_USED)
@@ -19,11 +17,12 @@ ObjectGroupManagerHandler::start (CORBA::Boolean ami_return_val,
ACE_UNUSED_ARG(the_location);
}
-void
-ObjectGroupManagerHandler::start_excep (::Messaging::ExceptionHolder *
+void
+ObjectGroupManagerHandler::start_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG(excep_holder);
}
void ObjectGroupManagerHandler::create_group (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
@@ -32,14 +31,15 @@ void ObjectGroupManagerHandler::create_group (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
-void
-ObjectGroupManagerHandler::create_group_excep (::Messaging::ExceptionHolder *
+void
+ObjectGroupManagerHandler::create_group_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG(excep_holder);
}
-void
+void
ObjectGroupManagerHandler::add_member (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -47,25 +47,25 @@ ObjectGroupManagerHandler::add_member (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
evt_.signal();
}
-void
-ObjectGroupManagerHandler::add_member_excep (::Messaging::ExceptionHolder *
+void
+ObjectGroupManagerHandler::add_member_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG(excep_holder);
this->add_member(ACE_ENV_SINGLE_ARG_PARAMETER);
}
-void
+void
ObjectGroupManagerHandler::set_state (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
-void
-ObjectGroupManagerHandler::set_state_excep (::Messaging::ExceptionHolder *
+void
+ObjectGroupManagerHandler::set_state_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG(excep_holder);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h
index 8a3938a6c65..8b5b14f8acd 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ObjectGroupManagerHandler.h
@@ -15,10 +15,7 @@
#include "orbsvcs/FTRT_GroupManagerS.h"
#include "ace/Auto_Event.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ObjectGroupManagerHandler
- : public POA_FTRT::AMI_ObjectGroupManagerHandler
+class ObjectGroupManagerHandler : public POA_FTRT::AMI_ObjectGroupManagerHandler
{
public:
ObjectGroupManagerHandler(ACE_Auto_Event& evt, int num_backups);
@@ -27,28 +24,28 @@ public:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void start_excep (::Messaging::ExceptionHolder * excep_holder
+ virtual void start_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void create_group (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void create_group_excep (::Messaging::ExceptionHolder * excep_holder
+ virtual void create_group_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void add_member (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void add_member_excep (::Messaging::ExceptionHolder * excep_holder
+ virtual void add_member_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void set_state (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void set_state_excep (::Messaging::ExceptionHolder * excep_holder
+ virtual void set_state_excep (FTRT::AMI_ObjectGroupManagerExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
@@ -56,6 +53,4 @@ private:
ACE_Atomic_Op< ACE_SYNCH_MUTEX, int > num_backups_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp
index 8708b6a33d7..5b2f764197e 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h"
+#include "ProxyConsumerStateWorker.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
#include "orbsvcs/Event/EC_ProxySupplier.h"
@@ -8,11 +8,9 @@ ACE_RCSID (EventChannel,
ProxyConsumerStateWorker,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ProxyConsumerStateWorker::ProxyConsumerStateWorker (
- FtRtecEventChannelAdmin::ProxyConsumerStates& states)
- : consumerStates_(states)
+ProxyConsumerStateWorker::ProxyConsumerStateWorker
+ (FtRtecEventChannelAdmin::ProxyConsumerStates& states)
+: consumerStates_(states)
{
}
@@ -27,10 +25,9 @@ void ProxyConsumerStateWorker::set_size(size_t size)
}
void ProxyConsumerStateWorker::work(TAO_EC_ProxyPushConsumer* object
- ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_ENV_ARG_DECL_NOT_USED)
{
TAO_FTEC_ProxyPushConsumer* proxy =
static_cast<TAO_FTEC_ProxyPushConsumer*> (object);
proxy->get_state(consumerStates_[index_++]);
-
-TAO_END_VERSIONED_NAMESPACE_DECL}
+}
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h
index 1610cd90ef1..772fd16538e 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxyConsumerStateWorker.h
@@ -15,16 +15,13 @@
#include "orbsvcs/Event/EC_SupplierAdmin.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxyConsumer.h"
+#include "FTEC_ProxyConsumer.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ProxyConsumerStateWorker
- : public TAO_ESF_Worker<TAO_EC_ProxyPushConsumer>
+class ProxyConsumerStateWorker : public TAO_ESF_Worker<TAO_EC_ProxyPushConsumer>
{
public:
ProxyConsumerStateWorker(FtRtecEventChannelAdmin::ProxyConsumerStates& states);
@@ -32,12 +29,10 @@ public:
virtual void set_size(size_t size);
virtual void work(TAO_EC_ProxyPushConsumer* object
- ACE_ENV_ARG_DECL);
+ ACE_ENV_ARG_DECL);
private:
int index_;
FtRtecEventChannelAdmin::ProxyConsumerStates& consumerStates_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp
index 5618c2d373f..45b6c1f47d9 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.cpp
@@ -1,7 +1,7 @@
// $Id$
#include "orbsvcs/FtRtecEventChannelAdminC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h"
+#include "ProxySupplierStateWorker.h"
#include "orbsvcs/Event/EC_Event_Channel_Base.h"
#include "orbsvcs/Event/EC_ProxyConsumer.h"
@@ -9,11 +9,10 @@ ACE_RCSID (EventChannel,
ProxySupplierStateWorker,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-ProxySupplierStateWorker::ProxySupplierStateWorker (
- FtRtecEventChannelAdmin::ProxySupplierStates& states)
- : supplierStates_(states)
+ProxySupplierStateWorker::ProxySupplierStateWorker
+ (FtRtecEventChannelAdmin::ProxySupplierStates& states)
+: supplierStates_(states)
{
}
@@ -34,5 +33,3 @@ void ProxySupplierStateWorker::work(TAO_EC_ProxyPushSupplier* object
static_cast<TAO_FTEC_ProxyPushSupplier*> (object);
proxy->get_state(supplierStates_[index_++]);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h
index cf9516d100d..aa6681719de 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/ProxySupplierStateWorker.h
@@ -15,16 +15,13 @@
#include "orbsvcs/Event/EC_ConsumerAdmin.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ProxySupplier.h"
+#include "FTEC_ProxySupplier.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ProxySupplierStateWorker
- : public TAO_ESF_Worker<TAO_EC_ProxyPushSupplier>
+class ProxySupplierStateWorker : public TAO_ESF_Worker<TAO_EC_ProxyPushSupplier>
{
public:
ProxySupplierStateWorker(FtRtecEventChannelAdmin::ProxySupplierStates& states);
@@ -38,6 +35,4 @@ private:
FtRtecEventChannelAdmin::ProxySupplierStates& supplierStates_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp
index 753cd359248..12ced50ab33 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Service.h"
-#include "orbsvcs/FtRtEvent/EventChannel/AMI_Replication_Strategy.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Basic_Replication_Strategy.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_ORBInitializer.h"
+#include "Replication_Service.h"
+#include "AMI_Replication_Strategy.h"
+#include "Basic_Replication_Strategy.h"
+#include "FTEC_ORBInitializer.h"
#include "../Utils/Log.h"
#include "tao/ORBInitializer_Registry.h"
@@ -17,7 +17,6 @@ ACE_RCSID (EventChannel,
Replication_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace FTRTEC
{
@@ -68,11 +67,11 @@ namespace FTRTEC
Replication_Strategy* strategy;
if (ami) {
ACE_NEW_RETURN (strategy, AMI_Replication_Strategy(threads() > 1), -1);
- TAO_FTRTEC::Log(3, "AMI replication strategy\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("AMI replication strategy\n"));
}
else {
ACE_NEW_RETURN (strategy, Basic_Replication_Strategy(threads() > 1), -1);
- TAO_FTRTEC::Log(3, "Basic replication strategy\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("Basic replication strategy\n"));
}
ACE_AUTO_PTR_RESET (replication_strategy, strategy, Replication_Strategy);
@@ -108,7 +107,7 @@ namespace FTRTEC
void Replication_Service::become_primary()
{
- TAO_FTRTEC::Log(3, "become_primary\n");
+ TAO_FTRTEC::Log(3, ACE_TEXT("become_primary\n"));
Replication_Strategy* strategy =
replication_strategy->make_primary_strategy();
@@ -170,41 +169,35 @@ namespace FTRTEC
int Replication_Service::acquire_read (void)
{
int r = replication_strategy->acquire_read();
- TAO_FTRTEC::Log(3, "Read Lock acquired %d\n", r);
+ TAO_FTRTEC::Log(3, ACE_TEXT("Read Lock acquired %d\n"), r);
return r;
}
int Replication_Service::acquire_write (void)
{
int r= replication_strategy->acquire_write();
- TAO_FTRTEC::Log(3, "Write Lock acqured %d\n", r);
+ TAO_FTRTEC::Log(3, ACE_TEXT("Write Lock acqured %d\n"), r);
return r;
}
int Replication_Service::release (void)
{
int r= replication_strategy->release();
- TAO_FTRTEC::Log(3, "Lock Released %d\n", r);
+ TAO_FTRTEC::Log(3, ACE_TEXT("Lock Released %d\n"), r);
return r;
}
int Replication_Service::threads() const {
return FTRTEC::threads;
}
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- TAO_FTRTEC,
- Replication_Service,
- FTRTEC::Replication_Service)
-
-ACE_STATIC_SVC_DEFINE (
- Replication_Service,
- ACE_TEXT ("FTRTEC_Replication"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (Replication_Service),
- ACE_Service_Type::DELETE_THIS
- | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (TAO_FTRTEC, Replication_Service)
+
+ ACE_STATIC_SVC_DEFINE (Replication_Service,
+ ACE_TEXT ("FTRTEC_Replication"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (Replication_Service),
+ ACE_Service_Type::DELETE_THIS
+ | ACE_Service_Type::DELETE_OBJ,
+ 0)
+}
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h
index e1deca2f103..f01503ef6ae 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Service.h
@@ -14,17 +14,15 @@
#define REPLCATION_SERVICE_H
#include "orbsvcs/FtRtecEventChannelAdminC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Become_Primary_Listener.h"
+#include "FTEC_Become_Primary_Listener.h"
#include "tao/PortableInterceptorC.h"
#include "ace/Service_Object.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ftrtec_export.h"
+#include "ftrtec_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace FTRTEC
{
class TAO_FTRTEC_Export Replication_Service
@@ -74,12 +72,11 @@ namespace FTRTEC
int threads() const;
};
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRTEC, Replication_Service)
-ACE_STATIC_SVC_REQUIRE(Replication_Service)
-ACE_FACTORY_DECLARE (TAO_FTRTEC, Replication_Service)
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_FTRTEC, Replication_Service)
+ ACE_STATIC_SVC_REQUIRE(Replication_Service)
+ ACE_FACTORY_DECLARE (TAO_FTRTEC, Replication_Service)
+}
#endif //REPLCATION_SERVICE_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp
index f7cc5f524f7..0501abb2557 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h"
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Event_Channel.h"
+#include "Replication_Strategy.h"
+#include "FTEC_Event_Channel.h"
ACE_RCSID (EventChannel,
Replication_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
Replication_Strategy::Replication_Strategy()
{
}
@@ -31,5 +29,3 @@ Replication_Strategy::make_primary_strategy()
{
return this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h
index 8c661ee0ee8..3e44f33ff41 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Replication_Strategy.h
@@ -19,7 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace FTEC {
struct ManagerInfo;
@@ -62,7 +61,7 @@ public:
CORBA::ULong object_group_ref_version
ACE_ENV_ARG_DECL)=0;
- virtual Replication_Strategy* make_primary_strategy();
+ virtual Replication_Strategy* make_primary_strategy();
virtual int acquire_read (void)=0;
virtual int acquire_write (void)=0;
@@ -70,7 +69,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp
index f04af729152..e9c77862e25 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "Request_Context_Repository.h"
#include "../Utils/resolve_init.h"
#include "../Utils/UUID.h"
@@ -24,7 +24,6 @@ CORBA::ORB_ptr orb;
ACE_TSS<FtRtecEventChannelAdmin::ObjectId> oid;
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
Request_Context_Repository::allocate_slots(PortableInterceptor::ORBInitInfo_ptr info
@@ -312,5 +311,3 @@ Request_Context_Repository::get_transaction_depth(
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h
index 542f58937ea..7267d1346f7 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// -pe*- C++ -*-
//=============================================================================
/**
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FTEC_Event_Channel_Impl;
namespace PortableInterceptor
@@ -111,6 +109,4 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /// REQUEST_CONTEXT_REPOSITORY_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp
index 222d5daa3fb..a54588c9423 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h"
+#include "SCTP_Fault_Detector.h"
#if (TAO_HAS_SCIOP == 1)
-#include "orbsvcs/FtRtEvent/EventChannel/FTEC_Fault_Listener.h"
+#include "FTEC_Fault_Listener.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_sys_socket.h"
@@ -20,7 +20,6 @@ ACE_RCSID (EventChannel,
#define SOL_SCTP 132
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
SCTP_Connector::SCTP_Connector()
: heart_beat_(0)
@@ -91,6 +90,4 @@ int SCTP_Fault_Detector::parse_conf(int argc, char** argv)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_SCTP == 1 */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h
index 4e9978afa7f..9411df45f4c 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/SCTP_Fault_Detector.h
@@ -26,8 +26,8 @@
#include "ace/SOCK_SEQPACK_Acceptor.h"
#include "ace/SOCK_SEQPACK_Connector.h"
#include "ace/Multihomed_INET_Addr.h"
-#include "orbsvcs/FtRtEvent/EventChannel/ConnectionHandler_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Fault_Detector_T.h"
+#include "ConnectionHandler_T.h"
+#include "Fault_Detector_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -45,7 +45,6 @@ extern "C" {
#define SCTP_NODELAY 1
#endif // SCTP_NODELAY
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_Acceptor<ConnectionAcceptHandler<ACE_SOCK_SEQPACK_ASSOCIATION>, ACE_SOCK_SEQPACK_ACCEPTOR>
SCTP_ConnectionAcceptHandler;
@@ -79,8 +78,6 @@ private:
virtual int parse_conf(int argc, char** argv);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP */
#endif /* SCTP_FAULT_DETECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp
index 58e96befd06..f94e75c0152 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.cpp
@@ -1,17 +1,16 @@
// $Id$
#include "tao/CDR.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h"
+#include "Set_Update_Interceptor.h"
#include "orbsvcs/FTRTC.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Request_Context_Repository.h"
+#include "Request_Context_Repository.h"
ACE_RCSID (EventChannel,
Set_Update_Intercetpor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Set_Update_Interceptor::TAO_Set_Update_Interceptor ()
+TAO_Set_Update_Interceptor::
+TAO_Set_Update_Interceptor ()
: myname_ ("TAO_Set_Update_Interceptor")
{
}
@@ -141,28 +140,28 @@ TAO_Set_Update_Interceptor::send_request (
void
TAO_Set_Update_Interceptor::receive_reply (
- PortableInterceptor::ClientRequestInfo_ptr
+ PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG(ri);
}
void
TAO_Set_Update_Interceptor::receive_other (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
+ PortableInterceptor::ClientRequestInfo_ptr
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ PortableInterceptor::ForwardRequest))
{
}
void
TAO_Set_Update_Interceptor::receive_exception (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
+ PortableInterceptor::ClientRequestInfo_ptr ri
+ ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
+ PortableInterceptor::ForwardRequest))
{
+ ACE_UNUSED_ARG(ri);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h
index c164c238281..835ecab637c 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Set_Update_Interceptor.h
@@ -27,8 +27,6 @@
# pragma warning (disable : 4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Set_Update_Interceptor
*
@@ -81,6 +79,4 @@ private:
const char *myname_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // TAO_SET_UPDATE_INTERCEPTOR_H
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.cpp
index c207baefd16..033b41ec2b5 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.cpp
@@ -1,23 +1,22 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/Update_Manager.h"
+#include "Update_Manager.h"
ACE_RCSID (EventChannel,
Update_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
Update_Manager::Update_Manager(ACE_Auto_Event& evt,
int num_backups,
int transaction_depth,
bool& success)
- : evt_(evt)
- , replied_(num_backups)
- , suicide_condition_(num_backups)
- , num_backups_(num_backups)
- , transaction_level_(transaction_depth)
- , success_(success)
+: evt_(evt)
+, replied_(num_backups)
+, suicide_condition_(num_backups)
+, num_backups_(num_backups)
+, transaction_level_(transaction_depth)
+, success_(success)
{
suicide_condition_.flip();
signal_condition_.resize(transaction_depth, true);
@@ -57,5 +56,3 @@ void Update_Manager::handle_exception(int id)
if (replied_ == suicide_condition_)
delete this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.h
index caacd63fffe..fa64b9e9f10 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Update_Manager.h
@@ -14,16 +14,15 @@
#define UPDATE_MANAGER_H
#include "ace/Synch_T.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h"
+#include "Dynamic_Bitset.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef Dynamic_Bitset bit_vector;
+
class Update_Manager
{
public:
@@ -47,6 +46,4 @@ private:
ACE_SYNCH_MUTEX mutex_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp
index fadeb16f0e0..77d43f4d398 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h"
-#include "orbsvcs/FtRtEvent/EventChannel/Update_Manager.h"
-#include "orbsvcs/FtRtEvent/EventChannel/AMI_Primary_Replication_Strategy.h"
+#include "UpdateableHandler.h"
+#include "Update_Manager.h"
+#include "AMI_Primary_Replication_Strategy.h"
#include "../Utils/resolve_init.h"
ACE_RCSID (EventChannel,
@@ -10,10 +10,8 @@ ACE_RCSID (EventChannel,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
UpdateableHandler::UpdateableHandler(AMI_Primary_Replication_Strategy* strategy)
- : strategy_(strategy)
+: strategy_(strategy)
{
}
@@ -77,7 +75,7 @@ void UpdateableHandler::set_update (
dispatch(&Update_Manager::handle_reply ACE_ENV_ARG_PARAMETER);
}
void UpdateableHandler::set_update_excep (
- ::Messaging::ExceptionHolder * excep_holder
+ FTRT::AMI_UpdateableExceptionHolder * excep_holder
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
@@ -86,7 +84,7 @@ void UpdateableHandler::set_update_excep (
{
ACE_DEBUG((LM_DEBUG, "Received Exception from"));
ACE_TRY {
- excep_holder->raise_exception();
+ excep_holder->raise_set_update();
ACE_TRY_CHECK;
}
ACE_CATCHANY {
@@ -96,5 +94,3 @@ void UpdateableHandler::set_update_excep (
dispatch(&Update_Manager::handle_exception ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h
index 48f621bc1ef..a1ba493264f 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/UpdateableHandler.h
@@ -18,8 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class AMI_Primary_Replication_Strategy;
class Update_Manager;
@@ -44,7 +42,7 @@ public:
CORBA::SystemException
));
virtual void set_update_excep (
- ::Messaging::ExceptionHolder * excep_holder
+ FTRT::AMI_UpdateableExceptionHolder * excep_holder
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
@@ -54,7 +52,4 @@ public:
private:
AMI_Primary_Replication_Strategy* strategy_;
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
index fe5cd5dbe41..da10c2f1a7f 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h"
+#include "create_persistent_poa.h"
ACE_RCSID (EventChannel,
create_persistent_poa,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
PortableServer::POA_var create_persistent_poa(PortableServer::POA_var root_poa,
PortableServer::POAManager_var mgr,
const char* name,
@@ -45,5 +43,3 @@ PortableServer::POA_var create_persistent_poa(PortableServer::POA_var root_poa,
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h
index cd41683ea61..875ac649b29 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/create_persistent_poa.h
@@ -17,14 +17,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
PortableServer::POA_var create_persistent_poa(PortableServer::POA_var root_poa,
PortableServer::POAManager_var mgr,
const char* name,
CORBA::PolicyList& policy_list
ACE_ENV_ARG_DECL);
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/replace_key.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/replace_key.cpp
index 8b902ac91bc..d190e31c099 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/replace_key.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/replace_key.cpp
@@ -13,11 +13,10 @@ ACE_RCSID (EventChannel,
/// file conflicts with the use of auto_ptr in the
/// VxWorks5.5.1_PPC85XX_DIAB platform.
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void replace_key(char* ior, char* end_ior,
- const TAO::ObjectKey& oldkey,
- const TAO::ObjectKey& newkey)
+ const TAO::ObjectKey& oldkey,
+ const TAO::ObjectKey& newkey)
{
size_t keylen = oldkey.length();
ACE_ASSERT(keylen == newkey.length());
@@ -31,5 +30,3 @@ void replace_key(char* ior, char* end_ior,
pos+= keylen;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp
index afbbaf3d051..85c5b6174b3 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h"
-#include "orbsvcs/FtRtEvent/Utils/activate_with_id.h"
-#include "orbsvcs/FtRtEvent/Utils/UUID.h"
-#include "orbsvcs/FtRtEvent/Utils/resolve_init.h"
+#include "FTEC_Gateway.h"
+#include "activate_with_id.h"
+#include "UUID.h"
+#include "resolve_init.h"
#include "orbsvcs/FtRtecEventCommS.h"
#include "tao/ORB_Core.h"
@@ -10,10 +10,9 @@ ACE_RCSID (Utils,
"$Id$")
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl"
+#include "FTEC_Gateway.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO_FTRTEC {
class FTEC_Gateway_ConsumerAdmin
@@ -96,7 +95,7 @@ public:
virtual void push (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void push_excep (::Messaging::ExceptionHolder * excep_holder ACE_ENV_ARG_DECL)
+ virtual void push_excep (FtRtecEventComm::AMI_PushConsumerExceptionHolder * excep_holder ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
};
@@ -512,12 +511,9 @@ void PushConsumerHandler::push (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
}
-void PushConsumerHandler::push_excep (::Messaging::ExceptionHolder *
- ACE_ENV_ARG_DECL_NOT_USED)
+void PushConsumerHandler::push_excep (FtRtecEventComm::AMI_PushConsumerExceptionHolder * excep_holder ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_UNUSED_ARG(excep_holder);
+}
}
-
-} // TAO_FTRTEC
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h
index 3db7660c7ad..9cafa79f8f8 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file FTEC_Gateway.h
@@ -17,8 +16,6 @@
#include "orbsvcs/FtRtecEventChannelAdminC.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_FTRTEC
{
struct FTEC_Gateway_Impl;
@@ -72,10 +69,8 @@ namespace TAO_FTRTEC
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl"
+#include "FTEC_Gateway.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl
index 4a4869aece4..e8175e14573 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/FTEC_Gateway.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_FTRTEC {
ACE_INLINE RtecEventChannelAdmin::EventChannel_ptr
FTEC_Gateway::_this(ACE_ENV_SINGLE_ARG_DECL)
@@ -12,5 +8,3 @@ namespace TAO_FTRTEC {
return activate(poa.in() ACE_ENV_ARG_PARAMETER);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp
index 6319f696946..603e18fab4e 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp
@@ -1,12 +1,10 @@
//$Id$
-#include "orbsvcs/FtRtEvent/Utils/Log.h"
+#include "Log.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/Log.inl"
+#include "Log.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_FTRTEC {
unsigned int Log::log_level_;
@@ -17,7 +15,7 @@ unsigned int Log::log_level_;
if (log_level_ >= log_level) {
va_list p;
va_start(p, format);
- char str[1024];
+ ACE_TCHAR str[1024];
ACE_OS::vsprintf(str, format, p);
ACE_DEBUG((LM_DEBUG, str));
va_end(p);
@@ -25,5 +23,3 @@ unsigned int Log::log_level_;
}
#endif
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h
index 71b95a8a28e..5ca4cfade59 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Log.h
@@ -13,13 +12,10 @@
#define FTRTEC_LOG_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FtRtEvent/Utils/ftrtevent_export.h"
-#include "tao/Versioned_Namespace.h"
+#include "ftrtevent_export.h"
#include "ace/OS.h"
#include "ace/Log_Msg.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_FTRTEC {
/**
@@ -38,10 +34,8 @@ namespace TAO_FTRTEC {
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/Log.inl"
+#include "Log.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl
index 120a88f6557..a4875315803 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_FTRTEC {
#ifndef NDEBUG
ACE_INLINE
@@ -22,7 +18,7 @@ namespace TAO_FTRTEC {
void Log::hexdump(unsigned int level, const char* buf, size_t len, const char* msg)
{
if (Log::log_level_ >= level)
- ACE_HEX_DUMP((LM_DEBUG, buf, len, msg));
+ ACE_HEX_DUMP((LM_DEBUG, buf, len, ACE_TEXT_TO_TCHAR_IN(msg)));
}
#else // NDEBUG
ACE_INLINE
@@ -47,5 +43,3 @@ namespace TAO_FTRTEC {
}
#endif
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.cpp
index 96f0abfbad5..b15359f97be 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.cpp
@@ -1,9 +1,9 @@
-#include "orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h"
+#include "Safe_InputCDR.h"
ACE_RCSID (Utils,
Safe_InputCDR,
"$Id$")
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl"
+#include "Safe_InputCDR.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h
index b4aede7f570..ec59ca1b758 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.h
@@ -12,11 +12,9 @@
#define SAFE_INPUTCDR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FtRtEvent/Utils/ftrtevent_export.h"
+#include "ftrtevent_export.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_FtRtEvent_Export Safe_InputCDR : public TAO_InputCDR
{
public:
@@ -30,10 +28,8 @@ public:
Safe_InputCDR(const char* buf, int size);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl"
+#include "Safe_InputCDR.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl
index a4712c153f5..a83166e8987 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Safe_InputCDR.inl
@@ -1,11 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-
#include "ace/OS_Memory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
Safe_InputCDR::Safe_InputCDR(const char* buf, int size)
: TAO_InputCDR((ACE_Message_Block*)0)
@@ -19,5 +14,3 @@ Safe_InputCDR::Safe_InputCDR(const char* buf, int size)
this->start_.wr_ptr(size);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h
index 1b0dc0bc02d..47a187bc3b4 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/ScopeGuard.h
@@ -13,8 +13,6 @@
#ifndef SCOPEGUARD_H_
#define SCOPEGUARD_H_
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T>
class RefHolder
{
@@ -288,8 +286,6 @@ inline ObjScopeGuardImpl2<Obj, MemFun, P1, P2> MakeObjGuard(Obj& obj, MemFun mem
return ObjScopeGuardImpl2<Obj, MemFun, P1, P2>::MakeObjGuard(obj, memFun, p1, p2);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define CONCATENATE_DIRECT(s1, s2) s1##s2
#define CONCATENATE(s1, s2) CONCATENATE_DIRECT(s1, s2)
#define ANONYMOUS_VARIABLE(str) CONCATENATE(str, __LINE__)
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp
index 6a34e95164b..217f701283e 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.cpp
@@ -1,15 +1,13 @@
//$Id$
-#include "orbsvcs/FtRtEvent/Utils/UUID.h"
+#include "UUID.h"
ACE_RCSID (Utils,
UUID,
"$Id$")
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/UUID.inl"
+#include "UUID.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
static union
{
struct
@@ -163,5 +161,3 @@ UUID::create (unsigned char *buffer)
memcpy(buffer + 10, &node, 6);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h
index 19b81c44354..ffdef9e1738 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.h
@@ -12,8 +12,7 @@
#define UUID_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/FtRtEvent/Utils/ftrtevent_export.h"
-#include "tao/Versioned_Namespace.h"
+#include "ftrtevent_export.h"
#include "ace/OS.h"
#include "ace/SString.h"
@@ -29,8 +28,6 @@
#define TAO_EXPORT_NESTED_MACRO FtRtEvent_Export
#endif /* TAO_EXPORT_NESTED_CLASSES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* This is an implementation of Global Unique Identifier
* which follows the document draft-leach-uuids-guids-01.txt. The
@@ -113,10 +110,8 @@ class TAO_FtRtEvent_Export UUID
} rep_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/FtRtEvent/Utils/UUID.inl"
+#include "UUID.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.inl b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.inl
index e1238a12ff1..3093cf873dd 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.inl
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/UUID.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
UUID::UUID()
{
@@ -54,5 +50,3 @@ void UUID::to_string(ACE_CString& string) const
string.resize(STRING_LENGTH-1);
this->to_string(&string[0]);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h
index 9913cc8c8c9..be09a2870a5 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/activate_with_id.h
@@ -11,33 +11,24 @@
#ifndef ACTIVATE_WITH_ID_H
#define ACTIVATE_WITH_ID_H
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T>
void
activate_object_with_id (T * &result,
PortableServer::POA_ptr poa,
PortableServer::ServantBase *servant,
const FtRtecEventComm::ObjectId &oid
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
{
- const PortableServer::ObjectId& id =
- reinterpret_cast<const PortableServer::ObjectId&> (oid);
+ const PortableServer::ObjectId& id = reinterpret_cast<const PortableServer::ObjectId&> (oid);
poa->activate_object_with_id(id,
- servant
- ACE_ENV_ARG_PARAMETER);
+ servant ACE_ENV_ARG_PARAMETER);
+
ACE_CHECK;
- CORBA::Object_var object =
- poa->id_to_reference(id
- ACE_ENV_ARG_PARAMETER);
+ CORBA::Object_var object = poa->
+ id_to_reference(id ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
result = T::_narrow(object.in() ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/resolve_init.h b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/resolve_init.h
index c489912d527..0cefc3da7e9 100644
--- a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/resolve_init.h
+++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/resolve_init.h
@@ -11,10 +11,6 @@
#ifndef RESOVLE_INIT_H
#define RESOVLE_INIT_H
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T>
typename T::_ptr_type
resolve_init (CORBA::ORB_ptr orb,
@@ -67,7 +63,4 @@ resolve (CosNaming::NamingContext_ptr context,
return ref._retn();
}
#endif
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP.mpc b/TAO/orbsvcs/orbsvcs/HTIOP.mpc
index ca871c00ff7..7db3241bbed 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP.mpc
+++ b/TAO/orbsvcs/orbsvcs/HTIOP.mpc
@@ -2,7 +2,7 @@
//
// $Id$
-project : htbp, orbsvcslib, core, tao_versioning_idl_defaults {
+project : htbp, orbsvcslib, core {
sharedname = TAO_HTIOP
idlflags += -Wb,export_macro=HTIOP_Export -Wb,export_include=orbsvcs/HTIOP/HTIOP_Export.h
dynamicflags = HTIOP_BUILD_DLL
@@ -20,8 +20,4 @@ project : htbp, orbsvcslib, core, tao_versioning_idl_defaults {
HTIOP
}
}
-
- Pidl_Files {
- HTIOP
- }
}
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
index 8d8cddc96f8..a0415542e35 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.cpp
@@ -1,8 +1,8 @@
// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Acceptor.h"
-#include "orbsvcs/HTIOP/HTIOP_Profile.h"
+#include "HTIOP_Acceptor.h"
+#include "HTIOP_Profile.h"
#include "ace/HTBP/HTBP_Environment.h"
#include "ace/HTBP/HTBP_ID_Requestor.h"
@@ -16,15 +16,13 @@
#include "ace/Auto_Ptr.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/HTIOP/HTIOP_Acceptor.i"
+#include "HTIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(HTIOP,
TAO_HTIOP_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::HTIOP::Acceptor::Acceptor (ACE::HTBP::Environment *ht_env,
int is_inside)
: TAO_Acceptor (OCI_TAG_HTIOP_PROFILE),
@@ -452,7 +450,7 @@ TAO::HTIOP::Acceptor::open_default (TAO_ORB_Core *orb_core,
sizeof (char*) * this->endpoint_count_);
ACE::HTBP::ID_Requestor req(ht_env_);
- this->addrs_[0] = req.get_HTID();
+ this->addrs_[0] = ACE::HTBP::Addr(ACE_TEXT_TO_CHAR_IN(req.get_HTID()));
return 0;
}
@@ -542,7 +540,7 @@ TAO::HTIOP::Acceptor::open_i (const ACE::HTBP::Addr& addr,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) TAO::HTIOP::Acceptor::open_i - ")
ACE_TEXT ("listening on: <%s:%u>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(this->hosts_[i]),
+ ACE_TEXT_TO_TCHAR_IN(this->hosts_[i]),
this->addrs_[i].get_port_number ()));
}
}
@@ -755,8 +753,7 @@ TAO::HTIOP::Acceptor::object_key (IOP::TaggedProfile &profile,
profile.profile_data.length ());
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */
- CORBA::Octet major;
- CORBA::Octet minor = CORBA::Octet();
+ CORBA::Octet major, minor;
// Read the version. We just read it here. We don't*do any*
// processing.
@@ -884,5 +881,3 @@ TAO::HTIOP::Acceptor::parse_options (const char *str)
}
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h
index 6abbb6f23e9..bff5b395142 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -18,8 +18,8 @@
#define HTIOP_ACCEPTOR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/HTIOP/HTIOP_Completion_Handler.h"
-#include "orbsvcs/HTIOP/HTIOP_Connection_Handler.h"
+#include "HTIOP_Completion_Handler.h"
+#include "HTIOP_Connection_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,7 +34,6 @@
#include "ace/SOCK_Acceptor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace HTBP
@@ -42,9 +41,6 @@ namespace ACE
class Environment;
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -229,10 +225,8 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/HTIOP/HTIOP_Acceptor.i"
+#include "HTIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.i b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.i
index 6b3279c0c04..d843a900f46 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.i
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE::HTBP::Addr&
TAO::HTIOP::Acceptor::address (void) const
{
@@ -24,5 +21,3 @@ TAO::HTIOP::Acceptor::endpoints (void)
return this->addrs_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp
index f990f16ce1b..dbc2c7afb7c 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp
@@ -1,10 +1,11 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
#ifndef HTIOP_ACCEPTOR_IMPL_CPP
#define HTIOP_ACCEPTOR_IMPL_CPP
-#include "orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h"
-#include "orbsvcs/HTIOP/HTIOP_Completion_Handler.h"
+#include "HTIOP_Acceptor_Impl.h"
+#include "HTIOP_Completion_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,7 +23,9 @@
#include "ace/Object_Manager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(HTIOP,
+ TAO_HTIOP_Acceptor_Impl,
+ "$Id$")
////////////////////////////////////////////////////////////////////////////////
@@ -317,6 +320,4 @@ TAO::HTIOP::Strategy_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::make_svc_handle
return this->creation_strategy_->make_svc_handler (sh);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* HTIOP_ACCEPTOR_IMPL_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h
index 9bfc69280c4..842d65a7e0d 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Acceptor_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "tao/corbafwd.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_ORB_Core;
@@ -142,10 +140,8 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/HTIOP/HTIOP_Acceptor_Impl.cpp"
+#include "HTIOP_Acceptor_Impl.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp
index de9b6a14cd2..81e2b1b6d16 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Completion_Handler.h"
+#include "HTIOP_Completion_Handler.h"
-#include "orbsvcs/HTIOP/HTIOP_Transport.h"
-#include "orbsvcs/HTIOP/HTIOP_Endpoint.h"
+#include "HTIOP_Transport.h"
+#include "HTIOP_Endpoint.h"
#include "ace/HTBP/HTBP_Stream.h"
#include "ace/HTBP/HTBP_Session.h"
@@ -21,8 +21,6 @@ ACE_RCSID (HTIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::HTIOP::Completion_Handler::Completion_Handler (ACE_Thread_Manager *t)
: COMPLETION_BASE(t,0,0),
orb_core_ (0),
@@ -177,5 +175,3 @@ TAO::HTIOP::Completion_Handler::handle_close (ACE_HANDLE,
delete this;
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.h
index 63ba0a96b34..4fce97d6a85 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Completion_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -24,10 +24,8 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/HTIOP/HTIOP_Export.h"
-#include "orbsvcs/HTIOP/HTIOP_Connection_Handler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "HTIOP_Export.h"
+#include "HTIOP_Connection_Handler.h"
class TAO_ORB_Core;
// ****************************************************************
@@ -93,7 +91,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* HTIOP_COMPLETION_HANDLER_H */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp
index 00a99a84351..504c114f8ba 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Connection_Handler.h"
+#include "HTIOP_Connection_Handler.h"
-#include "orbsvcs/HTIOP/HTIOP_Transport.h"
-#include "orbsvcs/HTIOP/HTIOP_Endpoint.h"
+#include "HTIOP_Transport.h"
+#include "HTIOP_Endpoint.h"
#include "ace/HTBP/HTBP_Stream.h"
#include "ace/HTBP/HTBP_Session.h"
@@ -25,9 +25,6 @@ ACE_RCSID (HTIOP,
TAO_HTIOP_Connection_Handler,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::HTIOP::Connection_Handler::Connection_Handler (ACE_Thread_Manager *t)
: SVC_HANDLER (t,0,0),
TAO_Connection_Handler (0)
@@ -252,8 +249,8 @@ TAO::HTIOP::Connection_Handler::process_listen_point_list
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("(%P|%t) Listening port [%d] on [%s],[%s]\n"),
listen_point.port,
- ACE_TEXT_CHAR_TO_TCHAR(listen_point.host.in ()),
- ACE_TEXT_CHAR_TO_TCHAR(listen_point.htid.in())));
+ ACE_TEXT_TO_TCHAR_IN(listen_point.host.in ()),
+ ACE_TEXT_TO_TCHAR_IN(listen_point.htid.in())));
}
// Construct an TAO::HTIOP::Endpoint object
@@ -280,10 +277,7 @@ TAO::HTIOP::Connection_Handler::process_listen_point_list
}
int
-TAO::HTIOP::Connection_Handler::set_dscp_codepoint (
- CORBA::Boolean /*enable_network_priority*/)
+TAO::HTIOP::Connection_Handler::set_dscp_codepoint (CORBA::Boolean /*enable_network_priority*/)
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.h
index 2651dafebd0..76ca95eb810 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connection_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -14,7 +14,7 @@
#define HTIOP_CONNECTION_HANDLER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/HTIOP/HTIOP_Transport.h"
+#include "HTIOP_Transport.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -29,7 +29,6 @@
#include "ace/Reactor.h"
#include "ace/Svc_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward Decls
class TAO_Pluggable_Messaging;
@@ -128,8 +127,5 @@ namespace TAO
};
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* HTIOP_CONNECTION_HANDLER_H */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp
index c2a2dde9735..c0e5007c2f5 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Connector.h"
-#include "orbsvcs/HTIOP/HTIOP_Profile.h"
+#include "HTIOP_Connector.h"
+#include "HTIOP_Profile.h"
#include "ace/HTBP/HTBP_Session.h"
#include "ace/HTBP/HTBP_ID_Requestor.h"
@@ -23,8 +23,6 @@ ACE_RCSID (HTIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::HTIOP::Connector::Connector (ACE::HTBP::Environment *ht_env)
: TAO_Connector (OCI_TAG_HTIOP_PROFILE),
connect_creation_strategy_ (),
@@ -147,7 +145,7 @@ TAO::HTIOP::Connector::make_connection (TAO::Profile_Transport_Resolver *r,
ACE::HTBP::Session_Id_t session_id;
ACE_INET_Addr *proxy;
- ACE_CString proxy_host;
+ ACE_TString proxy_host;
unsigned proxy_port;
int port_set = this->ht_env_->get_proxy_port(proxy_port);
@@ -156,19 +154,19 @@ TAO::HTIOP::Connector::make_connection (TAO::Profile_Transport_Resolver *r,
host_set != 0)
{
proxy_port = htiop_endpoint->port();
- proxy_host = htiop_endpoint->host();
+ proxy_host.set (ACE_TEXT_TO_TCHAR_IN (htiop_endpoint->host()));
}
else
{
ACE::HTBP::ID_Requestor req(ht_env_);
- session_id.local_ = req.get_HTID();
+ session_id.local_ = ACE::HTBP::Addr(ACE_TEXT_TO_CHAR_IN(req.get_HTID()));
}
if (proxy_port == 0)
return 0;
ACE_NEW_RETURN (proxy,
- ACE_INET_Addr(static_cast<u_short> (proxy_port),proxy_host.c_str()),
+ ACE_INET_Addr(proxy_port,proxy_host.c_str()),
0);
session_id.peer_ = htiop_endpoint->object_addr ();
@@ -416,5 +414,3 @@ TAO::HTIOP::Connector::remote_endpoint (TAO_Endpoint *endpoint)
return htiop_endpoint;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h
index 62e06d6a988..97e94cab63e 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,7 +24,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/HTIOP/HTIOP_Connection_Handler.h"
+#include "HTIOP_Connection_Handler.h"
#include "tao/Transport_Connector.h"
@@ -32,7 +32,7 @@
#include "ace/Connector.h"
#include "ace/OS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
namespace ACE
{
namespace HTBP
@@ -40,12 +40,9 @@ namespace ACE
class Environment;
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace HTIOP
@@ -130,8 +127,5 @@ namespace TAO
};
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* HTIOP_CONNECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp
index 8c891ddaf38..8cf576af02b 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp
@@ -3,9 +3,11 @@
#ifndef HTIOP_CONNECTOR_IMPL_CPP
#define HTIOP_CONNECTOR_IMPL_CPP
-#include "orbsvcs/HTIOP/HTIOP_Connector_Impl.h"
+#include "HTIOP_Connector_Impl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(HTIOP,
+ TAO_HTIOP_Connector_Impl,
+ "$Id$")
template <class SVC_HANDLER>
TAO::HTIOP::Connect_Creation_Strategy<SVC_HANDLER>::
@@ -57,6 +59,5 @@ activate_svc_handler (SVC_HANDLER *sh,
arg);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* HTIOP_CONNECTOR_IMPL_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h
index 5658b346919..39d8aa62734 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Connector_Impl.h
@@ -1,5 +1,5 @@
-// -*- C++ -*-
+// -*- C++ -*-
// ===================================================================
/**
* @file HTIOP_Connector_Impl.h
@@ -14,7 +14,7 @@
#define HTIOP_CONNECTOR_IMPL_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/HTIOP/HTIOP_Export.h"
+#include "HTIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,13 +23,8 @@
#include "tao/corbafwd.h"
#include "ace/Strategies_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Thread_Manager;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
+class ACE_Thread_Manager;
namespace TAO
{
@@ -114,10 +109,8 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/HTIOP/HTIOP_Connector_Impl.cpp"
+#include "HTIOP_Connector_Impl.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp
index 2d3e6da6299..48b08e11eae 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.cpp
@@ -1,10 +1,9 @@
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Endpoint.h"
-#include "orbsvcs/HTIOP/HTIOP_Profile.h"
+#include "HTIOP_Endpoint.h"
+#include "HTIOP_Profile.h"
#include "ace/os_include/os_netdb.h"
-#include "ace/Log_Msg.h"
#include "tao/IOPC.h"
#include "tao/debug.h"
@@ -15,11 +14,9 @@ ACE_RCSID (HTIOP,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/HTIOP/HTIOP_Endpoint.i"
+# include "HTIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::HTIOP::Endpoint::Endpoint (const ACE::HTBP::Addr &addr,
int use_dotted_decimal_addresses)
: TAO_Endpoint (OCI_TAG_HTIOP_PROFILE),
@@ -221,5 +218,3 @@ TAO::HTIOP::Endpoint::hash (void)
return ACE::hash_pjw(this->htid_.in());
return this->object_addr ().get_ip_address () + this->port ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.h
index 2fa800fd7a4..435328da5c5 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
+
//=============================================================================
/**
@@ -8,6 +9,7 @@
*
* HTIOP implementation of PP Framework Endpoint interface.
*
+ *
* @author Marina Spivak <marina@cs.wustl.edu>
*/
//=============================================================================
@@ -17,7 +19,7 @@
#define HTIOP_ENDPOINT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/HTIOP/HTIOP_Export.h"
+#include "HTIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,8 +30,6 @@
#include "tao/Endpoint.h"
#include "tao/ORB.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace HTIOP
@@ -152,10 +152,8 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "orbsvcs/HTIOP/HTIOP_Endpoint.i"
+# include "HTIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.i b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.i
index dffd4f6705b..b7de055271c 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.i
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Endpoint.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE::HTBP::Addr &
TAO::HTIOP::Endpoint::object_addr (void) const
{
@@ -75,5 +72,3 @@ TAO::HTIOP::Endpoint::port (CORBA::UShort p)
{
return this->port_ = p;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp
index 8542907269b..5f9b7d26c5c 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Factory.h"
-#include "orbsvcs/HTIOP/HTIOP_Acceptor.h"
-#include "orbsvcs/HTIOP/HTIOP_Connector.h"
-#include "orbsvcs/HTIOP/HTIOP_Profile.h"
+#include "HTIOP_Factory.h"
+#include "HTIOP_Acceptor.h"
+#include "HTIOP_Connector.h"
+#include "HTIOP_Profile.h"
#include "ace/HTBP/HTBP_Environment.h"
#include "tao/IOPC.h"
@@ -12,9 +12,7 @@ ACE_RCSID (HTIOP,
TAOHTIOP_Factory,
"$Id$")
-static const char the_prefix[] = "htiop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ static const char prefix_[] = "htiop";
TAO::HTIOP::Protocol_Factory::Protocol_Factory (void)
: TAO_Protocol_Factory (OCI_TAG_HTIOP_PROFILE),
@@ -34,13 +32,13 @@ int
TAO::HTIOP::Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
// Check for the proper prefix for this protocol.
- return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
+ return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0);
}
const char *
TAO::HTIOP::Protocol_Factory::prefix (void) const
{
- return ::the_prefix;
+ return ::prefix_;
}
char
@@ -80,7 +78,7 @@ TAO::HTIOP::Protocol_Factory::init (int argc,
else if (ACE_OS::strcasecmp(argv[i], ACE_TEXT("-inside")) == 0)
{
if (++i < argc)
- this->inside_ = ::atoi (ACE_TEXT_ALWAYS_CHAR(argv[i]));
+ this->inside_ = ::atoi (ACE_TEXT_TO_CHAR_IN(argv[i]));
}
}
@@ -125,8 +123,6 @@ TAO::HTIOP::Protocol_Factory::requires_explicit_endpoint (void) const
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_HTIOP_Protocol_Factory,
ACE_TEXT ("HTIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h
index 276d0f1199e..746b8a83707 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Factory.h
@@ -15,7 +15,7 @@
#define HTIOP_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/HTIOP/HTIOP_Export.h"
+#include "HTIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,7 +24,6 @@
#include "tao/Protocol_Factory.h"
#include "ace/Service_Config.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
namespace HTBP
@@ -32,9 +31,6 @@ namespace ACE
class Environment;
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -85,8 +81,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// Note that these declarations are placed outside of the scope of the
// namespace. The generated functions use a C style signature which does
// not accomodate namespaces, so assuming namespace concatination is an
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp
index 63d4a82db22..6cc0c041d50 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.cpp
@@ -1,8 +1,8 @@
// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Profile.h"
-#include "orbsvcs/HTIOP/htiop_endpointsC.h"
+#include "HTIOP_Profile.h"
+#include "htiop_endpointsC.h"
#include "ace/os_include/os_netdb.h"
@@ -16,9 +16,7 @@ ACE_RCSID(HTIOP,
TAO_HTIOP_Profile,
"$Id$")
-static const char the_prefix[] = "htiop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "htiop";
const char TAO::HTIOP::Profile::object_key_delimiter_ = '/';
@@ -293,7 +291,7 @@ TAO::HTIOP::Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
size_t buflen = (8 /* "corbaloc" */ +
1 /* colon separator */ +
- ACE_OS::strlen (::the_prefix) +
+ ACE_OS::strlen (::prefix_) +
1 /* colon separator */ +
1 /* major version */ +
1 /* decimal point */ +
@@ -311,7 +309,7 @@ TAO::HTIOP::Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_OS::sprintf (buf,
"corbaloc:%s:%c.%c@%s:%d%c%s",
- ::the_prefix,
+ ::prefix_,
digits [this->version_.major],
digits [this->version_.minor],
this->endpoint_.host (),
@@ -327,7 +325,7 @@ TAO::HTIOP::Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
const char *
TAO::HTIOP::Profile::prefix (void)
{
- return ::the_prefix;
+ return ::prefix_;
}
void
@@ -469,5 +467,3 @@ TAO::HTIOP::Profile::decode_endpoints (void)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.h
index 938666a6bfc..e8556b345d2 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Profile.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,7 +24,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Object_KeyC.h"
-#include "orbsvcs/HTIOP/HTIOP_Endpoint.h"
+#include "HTIOP_Endpoint.h"
#include "ace/Synch.h"
@@ -32,8 +32,6 @@
# define OCI_TAG_HTIOP_PROFILE 0x4f434902U
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace HTIOP
@@ -145,7 +143,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* HTIOP_PROFILE_H */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp
index 69d44dbb9e4..bc6475d58bb 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/HTIOP/HTIOP_Transport.h"
+#include "HTIOP_Transport.h"
-#include "orbsvcs/HTIOP/HTIOP_Connection_Handler.h"
-#include "orbsvcs/HTIOP/HTIOP_Acceptor.h"
-#include "orbsvcs/HTIOP/HTIOP_Profile.h"
+#include "HTIOP_Connection_Handler.h"
+#include "HTIOP_Acceptor.h"
+#include "HTIOP_Profile.h"
#include "ace/HTBP/HTBP_Session.h"
#include "tao/Acceptor_Registry.h"
@@ -26,8 +26,6 @@ ACE_RCSID (HTIOP,
TAO_HTIOP_Transport,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::HTIOP::Transport::Transport (TAO::HTIOP::Connection_Handler *h,
TAO_ORB_Core *orb_core,
CORBA::Boolean flag)
@@ -452,5 +450,3 @@ TAO::HTIOP::Transport::invalidate_event_handler_i (void)
this->connection_handler_ = 0;
return eh;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h
index 6db9ca8dcfc..209622ac41a 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/HTIOP_Transport.h
@@ -1,5 +1,6 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
+// -*- C++ -*-
// ===================================================================
/**
* @file HTIOP_Transport.h
@@ -15,7 +16,7 @@
#define TAO_HTIOP_TRANSPORT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/HTIOP/HTIOP_Export.h"
+#include "HTIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,14 +32,6 @@
#include "ace/Svc_Handler.h"
//#include "HTIOP/HTIOPC.h"
-# if defined (ACE_HAS_TEMPLATE_TYPEDEFS)
-# define ACE_HTBP_STREAM ACE::HTBP::Stream
-# else /* If TEMPLATES are broken in some form or another */
-# define ACE_HTBP_STREAM ACE::HTBP::Stream, ACE::HTBP::Addr
-#endif /* ACE_HAS_TEMPLATE_TYPEDEFS */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class TAO_ORB_Core;
class TAO_Operation_Details;
@@ -46,6 +39,12 @@ class TAO_Pluggable_Messaging;
class TAO_Acceptor;
class TAO_Adapter;
+# if defined (ACE_HAS_TEMPLATE_TYPEDEFS)
+# define ACE_HTBP_STREAM ACE::HTBP::Stream
+# else /* If TEMPLATES are broken in some form or another */
+# define ACE_HTBP_STREAM ACE::HTBP::Stream, ACE::HTBP::Addr
+#endif /* ACE_HAS_TEMPLATE_TYPEDEFS */
+
namespace TAO
{
namespace HTIOP
@@ -162,7 +161,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TRANSPORT_H */
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.cpp b/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.cpp
index e55949ffb19..5bb8026bb9f 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.cpp
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.cpp
@@ -36,7 +36,7 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "orbsvcs/HTIOP/htiop_endpointsC.h"
+#include "htiop_endpointsC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -46,8 +46,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -266,5 +264,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_HTIOPEndpointSequence_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.h b/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.h
index b1345d3a161..095a5e35674 100644
--- a/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.h
+++ b/TAO/orbsvcs/orbsvcs/HTIOP/htiop_endpointsC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/HTIOP/HTIOP_Export.h"
+#include "HTIOP_Export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Sequence_T.h"
@@ -62,8 +62,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_type.cpp:258
@@ -182,8 +180,6 @@ HTIOP_Export CORBA::Boolean operator>> (
#endif /* _TAO_CDR_OP_HTIOPEndpointSequence_H_ */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
diff --git a/TAO/orbsvcs/orbsvcs/IFRService.mpc b/TAO/orbsvcs/orbsvcs/IFRService.mpc
index e0c158052da..2cd7439e464 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService.mpc
+++ b/TAO/orbsvcs/orbsvcs/IFRService.mpc
@@ -2,7 +2,6 @@
// $Id$
project(IFRService) : orbsvcslib, core, typecodefactory, svc_utils, iortable, minimum_corba {
- avoids += ace_for_tao // Requires ace/Configuration
sharedname = TAO_IFRService
dynamicflags = TAO_IFRSERVICE_BUILD_DLL
tagchecks += IFRService
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp
index 9c7831e7387..32aa79e1770 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/AbstractInterfaceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "AbstractInterfaceDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
AbstractInterfaceDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_AbstractInterfaceDef_i::TAO_AbstractInterfaceDef_i (
TAO_Repository_i *repo
)
@@ -58,5 +57,3 @@ TAO_AbstractInterfaceDef_i::is_a_i (const char *interface_id
return this->TAO_InterfaceDef_i::is_a_i (interface_id
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.h
index b753a1afa16..7a5ca4c9e44 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/AbstractInterfaceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_ABSTRACTINTERFACEDEF_I_H
#define TAO_ABSTRACTINTERFACEDEF_I_H
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "InterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_AbstractInterfaceDef_i
: public virtual TAO_InterfaceDef_i
{
@@ -70,8 +67,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp
index 308a637d9ac..1bcc20308ff 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/AliasDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "AliasDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -11,7 +11,6 @@ ACE_RCSID (IFRService,
AliasDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_AliasDef_i::TAO_AliasDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -137,5 +136,3 @@ TAO_AliasDef_i::original_type_def_i (CORBA::IDLType_ptr original_type_def
"original_type",
original_type);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.h
index 7cc9c8826ca..621ecf462de 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/AliasDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_ALIASDEF_I_H
#define TAO_ALIASDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "TypedefDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_AliasDef_i : public virtual TAO_TypedefDef_i
{
public:
@@ -92,8 +89,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp
index 70022598977..d3a5a59a641 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/ArrayDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "ArrayDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -11,7 +11,6 @@ ACE_RCSID (IFRService,
ArrayDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ArrayDef_i::TAO_ArrayDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -275,5 +274,3 @@ TAO_ArrayDef_i::destroy_element_type (
break;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.h
index ec0d6966f8d..e0f4acf028f 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ArrayDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_ARRAYDEF_I_H
#define TAO_ARRAYDEF_I_H
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ArrayDef_i : public virtual TAO_IDLType_i
{
// = TITLE
@@ -139,8 +136,6 @@ private:
// Destroys an anonymous non-primitive element type.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp
index 0d9ce3b6a42..c8322e6823b 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "AttributeDef_i.h"
+#include "Repository_i.h"
+#include "IDLType_i.h"
+#include "ExceptionDef_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -13,7 +13,6 @@ ACE_RCSID (IFRService,
AttributeDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_AttributeDef_i::TAO_AttributeDef_i (
TAO_Repository_i *repo
@@ -393,5 +392,3 @@ TAO_AttributeDef_i::put_exceptions (ACE_ENV_SINGLE_ARG_DECL)
return retval._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.h
index d08b3dfa119..86cd2f55589 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/AttributeDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_ATTRIBUTEDEF_I_H
#define TAO_ATTRIBUTEDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_AttributeDef_i : public virtual TAO_Contained_i
{
// = TITLE
@@ -143,10 +140,10 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_ATTRIBUTEDEF_I_H */
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp
index b61cc8542a9..374a2ee2f02 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.cpp
@@ -1,18 +1,17 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/ComponentContainer_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/ComponentDef_i.h"
-#include "orbsvcs/IFRService/ValueDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "ComponentContainer_i.h"
+#include "Repository_i.h"
+#include "InterfaceDef_i.h"
+#include "ComponentDef_i.h"
+#include "ValueDef_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/SString.h"
ACE_RCSID (IFRService,
ComponentContainer_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const char *TAO_ComponentContainer_i::tmp_name_holder_ = 0;
@@ -564,5 +563,3 @@ TAO_ComponentContainer_i::same_as_tmp_name (const char *name)
return
ACE_OS::strcmp (TAO_ComponentContainer_i::tmp_name_holder_, name) == 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.h
index bc1c9e9fec6..e72459b8a84 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentContainer_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,22 +20,20 @@
#ifndef TAO_COMPONENTCONTAINER_I_H
#define TAO_COMPONENTCONTAINER_I_H
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Container_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/IFR_ComponentsS.h"
+#include "IFR_ComponentsS.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ComponentContainer_i
: public virtual TAO_Container_i
{
@@ -134,9 +131,6 @@ protected:
static const char *tmp_name_holder_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp
index 52d3fcd60fd..b6a6810f039 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.cpp
@@ -1,14 +1,14 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ComponentDef_i.h"
-#include "orbsvcs/IFRService/ProvidesDef_i.h"
-#include "orbsvcs/IFRService/UsesDef_i.h"
-#include "orbsvcs/IFRService/EmitsDef_i.h"
-#include "orbsvcs/IFRService/PublishesDef_i.h"
-#include "orbsvcs/IFRService/ConsumesDef_i.h"
-#include "orbsvcs/IFRService/ExtAttributeDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "Repository_i.h"
+#include "ComponentDef_i.h"
+#include "ProvidesDef_i.h"
+#include "UsesDef_i.h"
+#include "EmitsDef_i.h"
+#include "PublishesDef_i.h"
+#include "ConsumesDef_i.h"
+#include "ExtAttributeDef_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/SString.h"
@@ -17,7 +17,6 @@ ACE_RCSID (IFRService,
ComponentDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Specialization.
template<>
@@ -790,5 +789,3 @@ TAO_ComponentDef_i::name_clash (const char *name)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.h
index 0c05918d563..772128114d5 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,23 +20,21 @@
#ifndef TAO_COMPONENTDEF_I_H
#define TAO_COMPONENTDEF_I_H
-#include "orbsvcs/IFRService/ExtInterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ExtInterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/IFR_ComponentsS.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
+#include "IFR_ComponentsS.h"
+#include "IFR_Service_Utils_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ComponentDef_i
: public virtual TAO_ExtInterfaceDef_i
{
@@ -237,8 +234,6 @@ public:
// are a base component.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp
index 474f85baf57..16a5f34a9a7 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.cpp
@@ -1,14 +1,12 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/ComponentModuleDef_i.h"
+#include "ComponentModuleDef_i.h"
ACE_RCSID (IFRService,
ComponentModuleDef_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ComponentModuleDef_i::TAO_ComponentModuleDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Container_i (repo),
@@ -19,5 +17,3 @@ TAO_ComponentModuleDef_i::TAO_ComponentModuleDef_i (TAO_Repository_i *repo)
TAO_ComponentModuleDef_i::~TAO_ComponentModuleDef_i (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.h
index 6556910861c..cd04c6ee327 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentModuleDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_COMPONENTMODULEDEF_I_H
#define TAO_COMPONENTMODULEDEF_I_H
-#include "orbsvcs/IFRService/ComponentContainer_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ComponentContainer_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ComponentModuleDef_i
: public virtual TAO_ComponentContainer_i
{
@@ -53,8 +50,6 @@ public:
// Destructor
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp
index f0efb71adb1..f2e1f1dee39 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.cpp
@@ -1,26 +1,23 @@
/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/ComponentRepository_i.h"
-#include "orbsvcs/IFRService/ModuleDef_i.h"
-#include "orbsvcs/IFRService/ComponentDef_i.h"
-#include "orbsvcs/IFRService/HomeDef_i.h"
-#include "orbsvcs/IFRService/EventDef_i.h"
-#include "orbsvcs/IFRService/FinderDef_i.h"
-#include "orbsvcs/IFRService/FactoryDef_i.h"
-#include "orbsvcs/IFRService/EmitsDef_i.h"
-#include "orbsvcs/IFRService/PublishesDef_i.h"
-#include "orbsvcs/IFRService/ConsumesDef_i.h"
-#include "orbsvcs/IFRService/ProvidesDef_i.h"
-#include "orbsvcs/IFRService/UsesDef_i.h"
+#include "ComponentRepository_i.h"
+#include "ModuleDef_i.h"
+#include "ComponentDef_i.h"
+#include "HomeDef_i.h"
+#include "EventDef_i.h"
+#include "FinderDef_i.h"
+#include "FactoryDef_i.h"
+#include "EmitsDef_i.h"
+#include "PublishesDef_i.h"
+#include "ConsumesDef_i.h"
+#include "ProvidesDef_i.h"
+#include "UsesDef_i.h"
ACE_RCSID (IFRService,
ComponentRepository_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ComponentRepository_i::TAO_ComponentRepository_i (
CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
@@ -242,4 +239,4 @@ TAO_ComponentRepository_i::select_poa (
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.h
index 7690ee20edc..a59740f7284 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ComponentRepository_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,17 +20,14 @@
#ifndef TAO_COMPONENTREPOSITORY_I_H
#define TAO_COMPONENTREPOSITORY_I_H
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Repository_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/ComponentContainer_i.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ComponentContainer_i.h"
class TAO_ModuleDef_i;
class TAO_ComponentDef_i;
@@ -120,8 +116,6 @@ protected:
// Servants for each IR Object type, created at startup.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp
index 3ca04650d04..4ef6a3dd900 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/ConstantDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
+#include "ConstantDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
+#include "IDLType_i.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
@@ -16,8 +16,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ConstantDef_i::TAO_ConstantDef_i (
TAO_Repository_i *repo
)
@@ -309,5 +307,3 @@ TAO_ConstantDef_i::value_i (const CORBA::Any &value
mb->base (),
mb->length ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.h
index f9243f6d58c..05ef7b30c2f 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ConstantDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_CONSTANTDEF_I_H
#define TAO_CONSTANTDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ConstantDef_i : public virtual TAO_Contained_i
{
// = TITLE
@@ -123,8 +120,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp
index 0b6b8311b7e..e730f4203cc 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.cpp
@@ -1,16 +1,13 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ConsumesDef_i.h"
+#include "Repository_i.h"
+#include "ConsumesDef_i.h"
ACE_RCSID (IFRService,
ConsumesDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ConsumesDef_i::TAO_ConsumesDef_i (
TAO_Repository_i *repo
)
@@ -31,4 +28,3 @@ TAO_ConsumesDef_i::def_kind (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return CORBA::dk_Consumes;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.h
index 2bbbef43916..4cb2a0bbe0d 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ConsumesDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_CONSUMESDEF_I_H
#define TAO_CONSUMESDEF_I_H
-#include "orbsvcs/IFRService/EventPortDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "EventPortDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ConsumesDef_i
: public virtual TAO_EventPortDef_i
{
@@ -59,8 +56,6 @@ public:
// Return our definition kind.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp
index b61b34ea4a1..2204768af19 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/concrete_classes.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "concrete_classes.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -12,8 +12,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const char *TAO_Contained_i::tmp_name_holder_ = 0;
TAO_Contained_i::TAO_Contained_i (
@@ -1255,5 +1253,3 @@ TAO_Contained_i::move_contents (CORBA::Container_ptr new_container
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.h b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.h
index 5729837ce3b..3ed5648427a 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Contained_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_CONTAINED_I_H
#define TAO_CONTAINED_I_H
-#include "orbsvcs/IFRService/IRObject_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IRObject_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_Contained_i : public virtual TAO_IRObject_i
{
// = TITLE
@@ -226,9 +223,6 @@ private:
static const char *tmp_name_holder_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp
index a4c5a74089d..6c9c5cb3498 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/ValueDef_i.h"
-#include "orbsvcs/IFRService/ExtValueDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
+#include "Repository_i.h"
+#include "InterfaceDef_i.h"
+#include "ValueDef_i.h"
+#include "ExtValueDef_i.h"
+#include "IFR_Service_Utils.h"
+#include "IFR_Service_Utils_T.h"
#include "tao/IFR_Client/IFR_ComponentsC.h"
@@ -19,7 +19,6 @@ ACE_RCSID (IFRService,
Container_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const char *TAO_Container_i::tmp_name_holder_ = 0;
@@ -201,7 +200,7 @@ TAO_Container_i::lookup_i (const char *search_name
ACE_TString section_name;
int status = 0;
int index = 0;
- ssize_t pos = 0;
+ int pos = 0;
int so_far_so_good = 0;
u_int kind = 0;
CORBA::DefinitionKind def_kind = CORBA::dk_none;
@@ -1487,7 +1486,7 @@ TAO_Container_i::create_value_box_i (const char *id,
ACE_CHECK_RETURN (CORBA::ValueBoxDef::_nil ());
return CORBA::ValueBoxDef::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
+ ACE_ENV_ARG_PARAMETER);
}
CORBA::ExceptionDef_ptr
@@ -2425,7 +2424,7 @@ TAO_Container_i::update_refs (const char *path,
"name",
ref_name);
- ssize_t pos = ref_name.find (this->repo_->extension ());
+ int pos = ref_name.find (this->repo_->extension ());
// If one of the names has been mangled by move(), fix it.
if (pos != ACE_TString::npos)
@@ -2680,5 +2679,3 @@ TAO_Container_i::create_value_common (
return path;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.h b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.h
index ab8e833579b..a5c85dfb59a 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Container_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Container_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_CONTAINER_I_H
#define TAO_CONTAINER_I_H
-#include "orbsvcs/IFRService/IRObject_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IRObject_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Repository_i;
class TAO_IFRService_Export TAO_Container_i : public virtual TAO_IRObject_i
@@ -470,8 +467,6 @@ protected:
static const char *tmp_name_holder_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp
index 0cbe4a4093d..66b5c985cd6 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.cpp
@@ -1,15 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/EmitsDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "EmitsDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
EmitsDef_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EmitsDef_i::TAO_EmitsDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Contained_i (repo),
@@ -28,5 +26,3 @@ TAO_EmitsDef_i::def_kind (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return CORBA::dk_Emits;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.h
index 5d8e93fdeba..184415fc1ae 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EmitsDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_EMITSDEF_I_H
#define TAO_EMITSDEF_I_H
-#include "orbsvcs/IFRService/EventPortDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "EventPortDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_EmitsDef_i
: public virtual TAO_EventPortDef_i
{
@@ -59,8 +56,6 @@ public:
// Return our definition kind.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp
index 4ab27a971b8..a97939c8184 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/EnumDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "EnumDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/SString.h"
@@ -11,7 +11,6 @@ ACE_RCSID (IFRService,
EnumDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_EnumDef_i::TAO_EnumDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -159,5 +158,3 @@ TAO_EnumDef_i::members_i (const CORBA::EnumMemberSeq &members
member_name);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.h
index 0bd5b265451..5842bc5ebef 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EnumDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_ENUMDEF_I_H
#define TAO_ENUMDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "TypedefDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_EnumDef_i : public virtual TAO_TypedefDef_i
{
public:
@@ -92,8 +89,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp
index cd62666f25d..2a697660c7f 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.cpp
@@ -1,15 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/EventDef_i.h"
+#include "Repository_i.h"
+#include "EventDef_i.h"
ACE_RCSID (IFRService,
EventDef_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EventDef_i::TAO_EventDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Container_i (repo),
@@ -98,4 +96,3 @@ TAO_EventDef_i::is_a_i (const char *event_id
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.h
index a1e280a2882..dcd60a7ac1e 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EventDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_EVENTDEF_I_H
#define TAO_EVENTDEF_I_H
-#include "orbsvcs/IFRService/ExtValueDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ExtValueDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_EventDef_i : public virtual TAO_ExtValueDef_i
{
// = TITLE
@@ -93,10 +90,11 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_EVENTDEF_I_H */
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp
index f3d1a44a8f4..b81e87ba6d8 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.cpp
@@ -1,10 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/EventPortDef_i.h"
-#include "orbsvcs/IFRService/EventDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "Repository_i.h"
+#include "EventPortDef_i.h"
+#include "EventDef_i.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -13,7 +12,6 @@ ACE_RCSID (IFRService,
EventPortDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_EventPortDef_i::TAO_EventPortDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -196,5 +194,3 @@ TAO_EventPortDef_i::def_kind (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return CORBA::dk_none;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.h
index dc84527d41f..2ca1f2b0ce5 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/EventPortDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,22 +20,20 @@
#ifndef TAO_EVENTPORTDEF_I_H
#define TAO_EVENTPORTDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/IFR_ComponentsS.h"
+#include "IFR_ComponentsS.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_EventPortDef_i
: public virtual TAO_Contained_i
{
@@ -112,8 +109,6 @@ private:
// in this 'abstract' base class.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp
index 33b7c9eee99..1c6fa2b4fd7 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "ExceptionDef_i.h"
+#include "Repository_i.h"
+#include "IDLType_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -11,7 +11,6 @@ ACE_RCSID (IFRService,
ExceptionDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ExceptionDef_i::TAO_ExceptionDef_i (
TAO_Repository_i *repo
@@ -347,5 +346,3 @@ TAO_ExceptionDef_i::members_i (const CORBA::StructMemberSeq &members
count);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.h
index 88dd3e8bbd5..bf00881ff37 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExceptionDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,9 +20,9 @@
#ifndef TAO_EXCEPTIONDEF_I_H
#define TAO_EXCEPTIONDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "Container_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ExceptionDef_i : public virtual TAO_Contained_i,
public virtual TAO_Container_i
{
@@ -115,8 +112,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp
index 82ffce83d05..16b2c30b1b9 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "ExtAbstractInterfaceDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
ExtAbstractInterfaceDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ExtAbstractInterfaceDef_i::TAO_ExtAbstractInterfaceDef_i (
TAO_Repository_i *repo
)
@@ -40,4 +39,3 @@ TAO_ExtAbstractInterfaceDef_i::destroy (ACE_ENV_SINGLE_ARG_DECL)
TAO_AbstractInterfaceDef_i::destroy_i (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h
index e79471d8e11..12e4ec7f016 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,23 +20,20 @@
#ifndef TAO_EXTABSTRACTINTERFACEDEF_I_H
#define TAO_EXTABSTRACTINTERFACEDEF_I_H
-#include "orbsvcs/IFRService/AbstractInterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "AbstractInterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/InterfaceAttrExtension_i.h"
+#include "InterfaceAttrExtension_i.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ExtAbstractInterfaceDef_i
: public virtual TAO_AbstractInterfaceDef_i,
public virtual TAO_InterfaceAttrExtension_i
@@ -61,10 +57,10 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_EXTABSTRACTINTERFACEDEF_I_H */
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp
index 62405fe8393..020ae781324 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/ExtAttributeDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "ExtAttributeDef_i.h"
+#include "Repository_i.h"
+#include "ExceptionDef_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/SString.h"
@@ -13,8 +13,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ExtAttributeDef_i::TAO_ExtAttributeDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Contained_i (repo),
@@ -311,5 +309,3 @@ TAO_ExtAttributeDef_i::exceptions (const char *sub_section,
path);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.h
index f4d9e54b665..687a5c90e35 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtAttributeDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_EXTATTRIBUTEDEF_I_H
#define TAO_EXTATTRIBUTEDEF_I_H
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "AttributeDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ExtAttributeDef_i
: public virtual TAO_AttributeDef_i
{
@@ -124,10 +121,9 @@ private:
const CORBA::ExcDescriptionSeq &exceptions);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_EXTATTRIBUTEDEF_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp
index 30f003136b2..8bac0da9e13 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.cpp
@@ -1,15 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/ExtInterfaceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "ExtInterfaceDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
ExtInterfaceDef_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ExtInterfaceDef_i::TAO_ExtInterfaceDef_i (
TAO_Repository_i *repo
)
@@ -26,4 +24,3 @@ TAO_ExtInterfaceDef_i::~TAO_ExtInterfaceDef_i (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.h
index 11fecc1e6a5..e28f2377505 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtInterfaceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,23 +20,20 @@
#ifndef TAO_EXTINTERFACEDEF_I_H
#define TAO_EXTINTERFACEDEF_I_H
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "InterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/InterfaceAttrExtension_i.h"
+#include "InterfaceAttrExtension_i.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ExtInterfaceDef_i
: public virtual TAO_InterfaceDef_i,
public virtual TAO_InterfaceAttrExtension_i
@@ -56,10 +52,9 @@ public:
// Destructor
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_EXTINTERFACEDEF_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp
index 3b802bcb762..ea0ea0e3c41 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/ExtLocalInterfaceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "ExtLocalInterfaceDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
ExtLocalInterfaceDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ExtLocalInterfaceDef_i::TAO_ExtLocalInterfaceDef_i (
TAO_Repository_i *repo
)
@@ -40,4 +39,3 @@ TAO_ExtLocalInterfaceDef_i::destroy (ACE_ENV_SINGLE_ARG_DECL)
TAO_LocalInterfaceDef_i::destroy_i (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.h
index 1e5eec3bcf2..69ce82a4b8c 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtLocalInterfaceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,22 +20,20 @@
#ifndef TAO_EXTLOCALINTERFACEDEF_I_H
#define TAO_EXTLOCALINTERFACEDEF_I_H
-#include "orbsvcs/IFRService/LocalInterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "LocalInterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/InterfaceAttrExtension_i.h"
+#include "InterfaceAttrExtension_i.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ExtLocalInterfaceDef_i
: public virtual TAO_LocalInterfaceDef_i,
public virtual TAO_InterfaceAttrExtension_i
@@ -60,8 +57,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp
index c70696ecf52..25da09c1ec8 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ExtValueDef_i.h"
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
+#include "Repository_i.h"
+#include "ExtValueDef_i.h"
+#include "ExceptionDef_i.h"
+#include "IFR_Service_Utils.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -13,7 +13,6 @@ ACE_RCSID (IFRService,
ExtValueDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ExtValueDef_i::TAO_ExtValueDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -971,5 +970,3 @@ TAO_ExtValueDef_i::exceptions (ACE_Configuration_Section_Key &key,
type_path);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.h
index d2390a47c4a..28be501b651 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ExtValueDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_EXTVALUEDEF_I_H
#define TAO_EXTVALUEDEF_I_H
-#include "orbsvcs/IFRService/ValueDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ValueDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ExtValueDef_i : public virtual TAO_ValueDef_i
{
// = TITLE
@@ -126,10 +123,10 @@ private:
const CORBA::ExceptionDefSeq &exceptions);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_EXTVALUEDEF_I_H */
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp
index f1fd5ae8157..111e0c74c85 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/FactoryDef_i.h"
+#include "Repository_i.h"
+#include "FactoryDef_i.h"
ACE_RCSID (IFRService,
FactoryDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FactoryDef_i::TAO_FactoryDef_i (
TAO_Repository_i *repo
)
@@ -29,4 +28,3 @@ TAO_FactoryDef_i::def_kind (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return CORBA::dk_Factory;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.h
index 38a366914ec..b43598a81d5 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/FactoryDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_FACTORYDEF_I_H
#define TAO_FACTORYDEF_I_H
-#include "orbsvcs/IFRService/OperationDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "OperationDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_FactoryDef_i : public virtual TAO_OperationDef_i
{
// = TITLE
@@ -57,10 +54,12 @@ public:
// Return our definition kind.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_FACTORYDEF_I_H */
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp
index 6fffd784ad3..ce796fdf494 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.cpp
@@ -1,15 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/FinderDef_i.h"
+#include "Repository_i.h"
+#include "FinderDef_i.h"
ACE_RCSID (IFRService,
FinderDef_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FinderDef_i::TAO_FinderDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Contained_i (repo),
@@ -28,4 +26,3 @@ TAO_FinderDef_i::def_kind (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return CORBA::dk_Finder;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.h
index e8ad0a283d7..c3b5f9364f1 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/FinderDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_FINDERDEF_I_H
#define TAO_FINDERDEF_I_H
-#include "orbsvcs/IFRService/OperationDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "OperationDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,9 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_FinderDef_i : public virtual TAO_OperationDef_i
{
// = TITLE
@@ -58,10 +54,12 @@ public:
// Return our definition kind.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_FINDERDEF_I_H */
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp
index f8fdc472f04..f25e95d10ca 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/FixedDef_i.h"
+#include "Repository_i.h"
+#include "FixedDef_i.h"
ACE_RCSID (IFRService,
FixedDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FixedDef_i::TAO_FixedDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_IDLType_i (repo)
@@ -149,4 +148,3 @@ TAO_FixedDef_i::scale_i (CORBA::Short /* scale */
// TODO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.h
index 326bc90185b..6a9b432ba6b 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/FixedDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_FIXEDDEF_I_H
#define TAO_FIXEDDEF_I_H
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_FixedDef_i : public virtual TAO_IDLType_i
{
// = TITLE
@@ -124,10 +121,9 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_FIXEDDEF_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp
index f70745a001e..d427ebe6dc2 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.cpp
@@ -1,14 +1,13 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/HomeDef_i.h"
-#include "orbsvcs/IFRService/FactoryDef_i.h"
-#include "orbsvcs/IFRService/FinderDef_i.h"
-#include "orbsvcs/IFRService/ValueDef_i.h"
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "Repository_i.h"
+#include "HomeDef_i.h"
+#include "FactoryDef_i.h"
+#include "FinderDef_i.h"
+#include "ValueDef_i.h"
+#include "ExceptionDef_i.h"
+#include "AttributeDef_i.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -18,8 +17,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_HomeDef_i::TAO_HomeDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Container_i (repo),
@@ -1054,5 +1051,3 @@ TAO_HomeDef_i::fill_attr_desc (ACE_Configuration_Section_Key &key,
ead.mode = impl.mode_i (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.h
index 7436829cb68..81489528a24 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/HomeDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,23 +20,20 @@
#ifndef TAO_HOMEDEF_I_H
#define TAO_HOMEDEF_I_H
-#include "orbsvcs/IFRService/ExtInterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ExtInterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/IFR_ComponentsS.h"
+#include "IFR_ComponentsS.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_HomeDef_i
: public virtual TAO_ExtInterfaceDef_i
{
@@ -277,10 +273,12 @@ private:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_HOMEDEF_I_H */
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp
index 83c64aff90e..7a011af0830 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.cpp
@@ -1,14 +1,12 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/IDLType_i.h"
+#include "IDLType_i.h"
ACE_RCSID (IFRService,
IDLType_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IDLType_i::TAO_IDLType_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo)
{
@@ -18,4 +16,3 @@ TAO_IDLType_i::~TAO_IDLType_i (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.h b/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.h
index 8935d63aae6..1d50ed0348c 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IDLType_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -20,8 +20,8 @@
#ifndef TAO_IDLTYPE_I_H
#define TAO_IDLTYPE_I_H
-#include "orbsvcs/IFRService/IRObject_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IRObject_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Repository_i;
class TAO_IFRService_Export TAO_IDLType_i : public virtual TAO_IRObject_i
@@ -66,10 +64,9 @@ public:
// Defined in concrete classes.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_IDLTYPE_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.cpp
index 1da0c338611..ecbccbdaf1a 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_IFR_BASES_CPP_
-#include "orbsvcs/IFRService/IFR_BaseS.h"
+#include "IFR_BaseS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Upcall_Command.h"
#include "tao/PortableServer/Upcall_Wrapper.h"
@@ -69,14 +69,12 @@
#include "ace/Malloc_Allocator.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BaseS.inl"
+#include "IFR_BaseS.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -8255,4 +8253,3 @@ POA_CORBA::TypedefDef::_this (ACE_ENV_SINGLE_ARG_DECL)
#endif /* ifndef */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.h
index 02963091e2a..ef308b15c7f 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.h
@@ -48,8 +48,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -1244,12 +1242,10 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/IFRService/IFR_BaseS_T.h"
+#include "IFR_BaseS_T.h"
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BaseS.inl"
+#include "IFR_BaseS.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.inl
index 1ec728b1667..1b61891e2f7 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
void
@@ -404,5 +403,3 @@ POA_CORBA::TypedefDef::_get_type_skel (
ACE_ENV_ARG_PARAMETER
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.cpp
index 4dff6ffb090..c2d66dc74a8 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_ORIG_IFR_BASES_T_CPP_
#define _TAO_IDL_ORIG_IFR_BASES_T_CPP_
-#include "orbsvcs/IFRService/IFR_BaseS_T.h"
+#include "IFR_BaseS_T.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BaseS_T.inl"
+#include "IFR_BaseS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.h
index 1313c456c1d..3d6746ad09f 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.h
@@ -33,8 +33,6 @@
#include /**/ "ace/pre.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -905,14 +903,12 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1165
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BaseS_T.inl"
+#include "IFR_BaseS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/IFRService/IFR_BaseS_T.cpp"
+#include "IFR_BaseS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.inl
index 4514816a147..0a48000f77e 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BaseS_T.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -1504,4 +1503,3 @@ template <class T> ACE_INLINE
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.cpp
index 62e82e0ad6e..0b600368c9b 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_IFR_BASICS_CPP_
-#include "orbsvcs/IFRService/IFR_BasicS.h"
+#include "IFR_BasicS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Upcall_Command.h"
#include "tao/PortableServer/Upcall_Wrapper.h"
@@ -69,14 +69,12 @@
#include "ace/Malloc_Allocator.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BasicS.inl"
+#include "IFR_BasicS.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -24771,4 +24769,3 @@ POA_CORBA::ExtLocalInterfaceDef::_this (ACE_ENV_SINGLE_ARG_DECL)
#endif /* ifndef */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.h
index f1a3050b67c..83ceea96c6a 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.h
@@ -34,7 +34,7 @@
#include /**/ "ace/pre.h"
#include "tao/IFR_Client/IFR_BasicC.h"
-#include "orbsvcs/IFRService/IFR_BaseS.h"
+#include "IFR_BaseS.h"
#include "tao/ParameterModeS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -48,8 +48,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -7881,12 +7879,10 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/IFRService/IFR_BasicS_T.h"
+#include "IFR_BasicS_T.h"
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BasicS.inl"
+#include "IFR_BasicS.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.inl
index 145677a50a0..ce9eeacd9e4 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
void
@@ -9653,5 +9652,3 @@ POA_CORBA::ExtLocalInterfaceDef::create_ext_attribute_skel (
ACE_ENV_ARG_PARAMETER
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.cpp
index 03d51e6bba8..1b3eeebb76a 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_ORIG_IFR_BASICS_T_CPP_
#define _TAO_IDL_ORIG_IFR_BASICS_T_CPP_
-#include "orbsvcs/IFRService/IFR_BasicS_T.h"
+#include "IFR_BasicS_T.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BasicS_T.inl"
+#include "IFR_BasicS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.h
index ebca0c6b9fe..e51d59c3efa 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.h
@@ -33,8 +33,6 @@
#include /**/ "ace/pre.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -7949,14 +7947,12 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1165
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_BasicS_T.inl"
+#include "IFR_BasicS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/IFRService/IFR_BasicS_T.cpp"
+#include "IFR_BasicS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.inl
index 3db89111ce8..dc17374df92 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_BasicS_T.inl
@@ -26,8 +26,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -13432,4 +13430,3 @@ template <class T> ACE_INLINE
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.cpp
index ff99bba5658..31dcee3fd14 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_IFR_COMPONENTSS_CPP_
-#include "orbsvcs/IFRService/IFR_ComponentsS.h"
+#include "IFR_ComponentsS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Upcall_Command.h"
#include "tao/PortableServer/Upcall_Wrapper.h"
@@ -67,14 +67,12 @@
#include "ace/Malloc_Allocator.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ComponentsS.inl"
+#include "IFR_ComponentsS.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -14691,4 +14689,3 @@ POA_CORBA::ComponentIR::HomeDef::_this (ACE_ENV_SINGLE_ARG_DECL)
#endif /* ifndef */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.h
index 91a17a070cc..1bc5fc2a6e4 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.h
@@ -34,7 +34,7 @@
#include /**/ "ace/pre.h"
#include "tao/IFR_Client/IFR_ComponentsC.h"
-#include "orbsvcs/IFRService/IFR_ExtendedS.h"
+#include "IFR_ExtendedS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -47,8 +47,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -5102,12 +5100,10 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/IFRService/IFR_ComponentsS_T.h"
+#include "IFR_ComponentsS_T.h"
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ComponentsS.inl"
+#include "IFR_ComponentsS.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.inl
index 75931686c79..7027d026daa 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
void
@@ -6962,5 +6961,3 @@ POA_CORBA::ComponentIR::HomeDef::create_ext_attribute_skel (
ACE_ENV_ARG_PARAMETER
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.cpp
index 9ea48d226df..b2d75f94608 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_ORIG_IFR_COMPONENTSS_T_CPP_
#define _TAO_IDL_ORIG_IFR_COMPONENTSS_T_CPP_
-#include "orbsvcs/IFRService/IFR_ComponentsS_T.h"
+#include "IFR_ComponentsS_T.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ComponentsS_T.inl"
+#include "IFR_ComponentsS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.h
index cad66ac774e..7d1ccb307aa 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.h
@@ -33,8 +33,6 @@
#include /**/ "ace/pre.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -5365,14 +5363,12 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1165
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ComponentsS_T.inl"
+#include "IFR_ComponentsS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/IFRService/IFR_ComponentsS_T.cpp"
+#include "IFR_ComponentsS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.inl
index 547d5af6150..1ab68c0aadd 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ComponentsS_T.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -9011,4 +9010,3 @@ template <class T> ACE_INLINE
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.cpp
index cfd97366bc6..989fae38f6c 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_IFR_EXTENDEDS_CPP_
-#include "orbsvcs/IFRService/IFR_ExtendedS.h"
+#include "IFR_ExtendedS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Upcall_Command.h"
#include "tao/PortableServer/Upcall_Wrapper.h"
@@ -67,14 +67,12 @@
#include "ace/Malloc_Allocator.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ExtendedS.inl"
+#include "IFR_ExtendedS.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -7771,4 +7769,3 @@ POA_CORBA::ValueBoxDef::_this (ACE_ENV_SINGLE_ARG_DECL)
#endif /* ifndef */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.h
index a1385081787..96b05e5d1ae 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.h
@@ -34,7 +34,7 @@
#include /**/ "ace/pre.h"
#include "tao/IFR_Client/IFR_ExtendedC.h"
-#include "orbsvcs/IFRService/IFR_BasicS.h"
+#include "IFR_BasicS.h"
#include "tao/AnyTypeCode/VisibilityS.h"
#include "tao/AnyTypeCode/ValueModifierS.h"
@@ -49,8 +49,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -2123,12 +2121,10 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/IFRService/IFR_ExtendedS_T.h"
+#include "IFR_ExtendedS_T.h"
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ExtendedS.inl"
+#include "IFR_ExtendedS.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.inl
index 52ed37c258a..a1780252eee 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS.inl
@@ -26,8 +26,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
POA_CORBA::FixedDef::_get_def_kind_skel (
@@ -2223,5 +2221,3 @@ POA_CORBA::ValueBoxDef::_get_type_skel (
ACE_ENV_ARG_PARAMETER
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.cpp
index 0c4b6e67e52..7821ed96169 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_ORIG_IFR_EXTENDEDS_T_CPP_
#define _TAO_IDL_ORIG_IFR_EXTENDEDS_T_CPP_
-#include "orbsvcs/IFRService/IFR_ExtendedS_T.h"
+#include "IFR_ExtendedS_T.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ExtendedS_T.inl"
+#include "IFR_ExtendedS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.h
index 9f6d959523c..c6f26a31235 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.h
@@ -33,8 +33,6 @@
#include /**/ "ace/pre.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -2010,14 +2008,12 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1165
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/IFRService/IFR_ExtendedS_T.inl"
+#include "IFR_ExtendedS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/IFRService/IFR_ExtendedS_T.cpp"
+#include "IFR_ExtendedS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.inl b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.inl
index 6a35508b490..8c2b0803d8d 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.inl
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_ExtendedS_T.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -3334,4 +3333,3 @@ void POA_CORBA::ValueBoxDef_tie<T>::original_type_def (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
index a5e914dcf87..0e861af9cd7 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
@@ -10,7 +10,7 @@
// Priyanka Gontla <pgontla@ece.uci.edu>
// ================================================================
-#include "orbsvcs/IFRService/IFR_Service_Loader.h"
+#include "IFR_Service_Loader.h"
#include "ace/Dynamic_Service.h"
#include "ace/Argv_Type_Converter.h"
@@ -18,8 +18,6 @@ ACE_RCSID (IFR_Service,
IFR_Service_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IFR_Service_Loader::TAO_IFR_Service_Loader (void)
{
// Constructor
@@ -95,6 +93,4 @@ TAO_IFR_Service_Loader::create_object (CORBA::ORB_ptr orb,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_IFRService, TAO_IFR_Service_Loader)
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h
index 4ed289fb58b..b695b99908e 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.h
@@ -1,8 +1,6 @@
-// -*- C++ -*-
-
// $Id$
-// ===========================================================================
+// ===========================================================================================
// FILENAME
// IFR_Service_Loader.h
//
@@ -14,7 +12,7 @@
// Jaiganesh Balasubramanian <jai@doc.ece.uci.edu>
// Priyanka Gontla <pgontla@ece.uci.edu>
//
-// ===========================================================================
+// ==========================================================================================
#ifndef TAO_IFR_SERVICE_LOADER_H
#define TAO_IFR_SERVICE_LOADER_H
@@ -25,9 +23,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "IFR_Service_Utils.h"
class TAO_IFRService_Export TAO_IFR_Service_Loader : public TAO_Object_Loader
{
@@ -56,21 +52,16 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
-protected:
+ protected:
TAO_IFR_Server ifr_server_;
// Instance of the TAO_IFR_Server
private:
- // Disallowing copying/assignment.
- TAO_IFR_Service_Loader (const TAO_IFR_Service_Loader &);
- TAO_IFR_Service_Loader & operator= (const TAO_IFR_Service_Loader &);
-
+ACE_UNIMPLEMENTED_FUNC (TAO_IFR_Service_Loader (const TAO_IFR_Service_Loader &))
+ACE_UNIMPLEMENTED_FUNC (TAO_IFR_Service_Loader &operator = (const TAO_IFR_Service_Loader &))
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (TAO_IFRService, TAO_IFR_Service_Loader)
#endif /* TAO_IFR_SERVICE_LOADER_H */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp
index 3d893a39732..3b9b184b3cf 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/Contained_i.h"
+#include "IFR_Service_Utils.h"
+#include "IDLType_i.h"
+#include "Container_i.h"
+#include "Contained_i.h"
#include "orbsvcs/IFRService/ComponentRepository_i.h"
#include "orbsvcs/IFRService/Options.h"
#include "orbsvcs/IFRService/IFR_ComponentsS.h"
@@ -21,8 +21,6 @@ ACE_RCSID (IFR_Service,
IFR_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Repository_i *TAO_IFR_Service_Utils::repo_ = 0;
TAO_IFR_Server::TAO_IFR_Server (void)
@@ -425,7 +423,7 @@ TAO_IFR_Server::init_multicast_server (ACE_ENV_SINGLE_ARG_DECL)
ACE_OS::getenv ("InterfaceRepoServicePort");
if (port_number != 0)
- port = static_cast<u_short> (ACE_OS::atoi (port_number));
+ port = ACE_OS::atoi (port_number);
}
// Port wasn't specified on the command-line or in environment -
@@ -589,7 +587,7 @@ TAO_IFR_Service_Utils::valid_container (
void
TAO_IFR_Service_Utils::pre_exist (
const char *id,
- name_clash_checker checker,
+ TAO_IFR_Service_Utils::name_clash_checker checker,
ACE_Configuration_Section_Key &key,
TAO_Repository_i *repo,
CORBA::DefinitionKind kind
@@ -628,7 +626,7 @@ TAO_IFR_Service_Utils::id_exists (const char *id,
void
TAO_IFR_Service_Utils::name_exists (
- name_clash_checker checker,
+ TAO_IFR_Service_Utils::name_clash_checker checker,
ACE_Configuration_Section_Key &key,
TAO_Repository_i *repo,
CORBA::DefinitionKind kind
@@ -636,10 +634,9 @@ TAO_IFR_Service_Utils::name_exists (
)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ int index = 0;
int status = 0;
ACE_TString section_name;
- u_int count = 0;
- char *stringified = 0;
// Check the members defined elsewhere, if any.
ACE_Configuration_Section_Key refs_key;
@@ -651,17 +648,14 @@ TAO_IFR_Service_Utils::name_exists (
if (status == 0)
{
- repo->config ()->get_integer_value (refs_key,
- "count",
- count);
-
- for (CORBA::ULong i = 0; i < count; ++i)
+ while (repo->config ()->enumerate_sections (refs_key,
+ index++,
+ section_name)
+ == 0)
{
ACE_Configuration_Section_Key member_key;
- stringified = TAO_IFR_Service_Utils::int_to_string (i);
-
repo->config ()->open_section (refs_key,
- stringified,
+ section_name.c_str (),
0,
member_key);
@@ -687,17 +681,16 @@ TAO_IFR_Service_Utils::name_exists (
defns_key);
if (status == 0)
{
- repo->config ()->get_integer_value (defns_key,
- "count",
- count);
+ index = 0;
- for (CORBA::ULong i = 0; i < count; ++i)
+ while (repo->config ()->enumerate_sections (defns_key,
+ index++,
+ section_name)
+ == 0)
{
ACE_Configuration_Section_Key defn_key;
- stringified = TAO_IFR_Service_Utils::int_to_string (i);
-
repo->config ()->open_section (defns_key,
- stringified,
+ section_name.c_str (),
0,
defn_key);
@@ -830,7 +823,7 @@ TAO_IFR_Service_Utils::valid_creation (
CORBA::DefinitionKind container_kind,
CORBA::DefinitionKind contained_kind,
const char *id,
- name_clash_checker checker,
+ TAO_IFR_Service_Utils::name_clash_checker checker,
ACE_Configuration_Section_Key &key,
TAO_Repository_i *repo
ACE_ENV_ARG_DECL
@@ -1094,11 +1087,9 @@ TAO_IFR_Service_Utils::gen_valuetype_tc_r (
CORBA::ValueMemberSeq vm_seq;
vm_seq.length (0);
- TAO_IFR_Service_Utils::fill_valuemember_seq (vm_seq,
- key,
- repo
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::TypeCode::_nil ());
+// this->fill_vm_seq (vm_seq
+// ACE_ENV_ARG_PARAMETER);
+// ACE_CHECK_RETURN (CORBA::TypeCode::_nil ());
return
repo->tc_factory ()->create_value_tc (id.c_str (),
@@ -1163,8 +1154,8 @@ TAO_IFR_Service_Utils::fill_valuemember_seq (
"version",
holder);
vm_seq[i].version = holder.fast_rep ();
- repo->config ()->get_string_value (member_key,
- "type_path",
+ repo->config ()->get_string_value (repo->repo_ids_key (),
+ vm_seq[i].id.in (),
holder);
TAO_IDLType_i *impl =
TAO_IFR_Service_Utils::path_to_idltype (holder,
@@ -1442,4 +1433,3 @@ TAO_IFR_Service_Utils::oid_to_string (PortableServer::ObjectId &oid)
return oid_string;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h
index 2b91098a1ee..8978bc212bf 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -25,20 +24,16 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ifr_service_export.h"
#include "tao/IFR_Client/IFR_BasicC.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/ORB.h"
#include "ace/Configuration.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Configuration;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+// Forward decl;
class TAO_IOR_Multicast;
+class ACE_Configuration;
class TAO_Repository_i;
class TAO_IDLType_i;
class TAO_Container_i;
@@ -251,8 +246,6 @@ public:
static TAO_Repository_i *repo_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IFR_SERVICE_UTILS_H */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp
index 848677edd13..02e14e8859e 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_IFR_SERVICE_UTILS_T_CPP
#define TAO_IFR_SERVICE_UTILS_T_CPP
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "IFR_Service_Utils_T.h"
+#include "IFR_Service_Utils.h"
+#include "Repository_i.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
template<typename T>
void
@@ -276,13 +276,17 @@ TAO_Port_Desc_Seq_Utils<T_desc_seq>::port_descriptions (
template<typename T_desc_seq>
void
TAO_Port_Desc_Seq_Utils<T_desc_seq>::get_is_multiple (
- T_desc_seq & /* desc_seq */,
- ACE_Configuration * /* config */,
- ACE_Configuration_Section_Key & /* key */,
- CORBA::ULong /* index */
+ T_desc_seq &desc_seq,
+ ACE_Configuration *config,
+ ACE_Configuration_Section_Key &key,
+ CORBA::ULong index
)
{
// All types except UsesDescription have no is_multiple member.
+ ACE_UNUSED_ARG (desc_seq);
+ ACE_UNUSED_ARG (config);
+ ACE_UNUSED_ARG (key);
+ ACE_UNUSED_ARG (index);
}
template<typename T_desc_seq>
@@ -357,33 +361,16 @@ TAO_Port_Utils<T>::create_entry (const char *id,
ACE_ENV_ARG_PARAMETER);
}
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x582)
-// Borland gives warnings about argument not used on the construct as used
-// for the other compilers. This has been reported to Borland, adding
-// a workaround to suppress these warnings so that the real important ones
-// are not missed.
template<typename T>
void
TAO_Port_Utils<T>::set_is_multiple (CORBA::Boolean is_multiple,
- ACE_Configuration * config,
+ ACE_Configuration *config,
ACE_Configuration_Section_Key &key)
{
+ /// Do nothing for eveything except UsesDef.
ACE_UNUSED_ARG (is_multiple);
ACE_UNUSED_ARG (config);
ACE_UNUSED_ARG (key);
- // Do nothing for everything except UsesDef.
}
-#else
-template<typename T>
-void
-TAO_Port_Utils<T>::set_is_multiple (CORBA::Boolean /* is_multiple */,
- ACE_Configuration * /* config */,
- ACE_Configuration_Section_Key & /* key */)
-{
- // Do nothing for everything except UsesDef.
-}
-#endif
-
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_IFR_SERVICE_UTILS_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.h b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.h
index 056582e494a..52159d58543 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Utils_T.h
@@ -31,8 +31,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Repository_i;
template<typename T>
@@ -110,10 +108,8 @@ public:
ACE_Configuration_Section_Key &key);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.cpp"
+#include "IFR_Service_Utils_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp
index 9846d186808..5fd3d758894 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/IFRService/IRObject_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "IRObject_i.h"
+#include "Repository_i.h"
+#include "IDLType_i.h"
+#include "Contained_i.h"
+#include "IFR_Service_Utils.h"
#include "tao/PortableServer/Root_POA.h"
#include "tao/PortableServer/POA_Current_Impl.h"
@@ -16,8 +16,6 @@ ACE_RCSID (IFR_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IRObject_i::TAO_IRObject_i (TAO_Repository_i *repo)
: repo_ (repo)
{
@@ -85,5 +83,3 @@ TAO_IRObject_i::update_key (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW (CORBA::OBJECT_NOT_EXIST ());
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.h b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.h
index a6bbdc4adfa..65908ea60ff 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/IRObject_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -22,21 +21,19 @@
#define TAO_IROBJECT_I_H
#include "ace/Configuration.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/IFRService/IFR_ExtendedS.h"
+#include "IFR_ExtendedS.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Repository_i;
class TAO_IDLType_i;
class TAO_Contained_i;
@@ -90,8 +87,6 @@ protected:
// Our ACE_Configuration section key.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp
index 943a6082e1f..e8725ba91a0 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "orbsvcs/IFRService/InterfaceAttrExtension_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/OperationDef_i.h"
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/ExtAttributeDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "InterfaceAttrExtension_i.h"
+#include "Repository_i.h"
+#include "InterfaceDef_i.h"
+#include "OperationDef_i.h"
+#include "AttributeDef_i.h"
+#include "ExtAttributeDef_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/SString.h"
@@ -15,9 +15,9 @@ ACE_RCSID (IFRService,
InterfaceAttrExtension_i,
"$Id$")
-// =====================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+// =====================================================================
TAO_InterfaceAttrExtension_i::TAO_InterfaceAttrExtension_i (
TAO_Repository_i *repo
@@ -84,19 +84,11 @@ TAO_InterfaceAttrExtension_i::describe_ext_interface_i (
CORBA::ULong j = 0;
ACE_Unbounded_Queue<ACE_Configuration_Section_Key> key_queue;
- // Store our section key for later restoration after we have
- // traversed entries for inherited interfaces.
- ACE_Configuration_Section_Key key_holder = this->section_key_;
-
// Operations
TAO_InterfaceDef_i iface (this->repo_);
iface.section_key (this->section_key_);
iface.inherited_operations (key_queue);
- // Restore our original section key.
- // I am not sure this is needed but it will not hurt.
- this->section_key (key_holder);
-
ACE_Configuration_Section_Key ops_key, op_key;
int status =
this->repo_->config ()->open_section (this->section_key_,
@@ -144,18 +136,9 @@ TAO_InterfaceAttrExtension_i::describe_ext_interface_i (
ACE_CHECK_RETURN (0);
}
- // Restore our original section key.
- // It may have been overwritten by a superclass key as part of the
- // make_description() call.
- this->section_key (key_holder);
-
// Attributes.
iface.inherited_attributes (key_queue);
- // Restore our original section key.
- // I am not sure this is needed but it will not hurt.
- this->section_key (key_holder);
-
ACE_Configuration_Section_Key attrs_key;
status =
this->repo_->config ()->open_section (this->section_key_,
@@ -204,11 +187,6 @@ TAO_InterfaceAttrExtension_i::describe_ext_interface_i (
ACE_CHECK_RETURN (0);
}
- // Restore our original section key.
- // It may have been overwritten by a superclass key as part of the
- // fill_description() call.
- this->section_key (key_holder);
-
CORBA::InterfaceDefSeq_var bases =
iface.base_interfaces_i (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -339,5 +317,3 @@ TAO_InterfaceAttrExtension_i::create_ext_attribute_i (
return retval._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.h b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.h
index f330fe3dec6..37694831b1b 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceAttrExtension_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -20,8 +20,8 @@
#ifndef TAO_INTERFACEATTREXTENSION_I_H
#define TAO_INTERFACEATTREXTENSION_I_H
-#include "orbsvcs/IFRService/IRObject_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IRObject_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_InterfaceAttrExtension_i
: public virtual TAO_IRObject_i
{
@@ -88,10 +86,9 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_INTERFACEATTREXTENSION_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp
index 6360f9c745f..a1ecd8af581 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/OperationDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
+#include "InterfaceDef_i.h"
+#include "Repository_i.h"
+#include "AttributeDef_i.h"
+#include "OperationDef_i.h"
+#include "IFR_Service_Utils.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -14,7 +14,6 @@ ACE_RCSID (IFRService,
InterfaceDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_InterfaceDef_i::TAO_InterfaceDef_i (
TAO_Repository_i *repo
@@ -459,17 +458,9 @@ TAO_InterfaceDef_i::describe_interface_i (ACE_ENV_SINGLE_ARG_DECL)
CORBA::ULong j = 0;
ACE_Unbounded_Queue<ACE_Configuration_Section_Key> key_queue;
- // Store our section key for later restoration after we have
- // traversed entries for inherited interfaces.
- ACE_Configuration_Section_Key key_holder = this->section_key_;
-
// Operations
this->inherited_operations (key_queue);
- // Restore our original section key.
- // I am not sure this is needed but it will not hurt.
- this->section_key (key_holder);
-
ACE_Configuration_Section_Key ops_key, op_key;
int status =
this->repo_->config ()->open_section (this->section_key_,
@@ -517,18 +508,9 @@ TAO_InterfaceDef_i::describe_interface_i (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK_RETURN (0);
}
- // Restore our original section key.
- // It may have been overwritten by a superclass key as part of the
- // make_description() call.
- this->section_key (key_holder);
-
// Attributes
this->inherited_attributes (key_queue);
- // Restore our original section key.
- // I am not sure this is needed but it will not hurt.
- this->section_key (key_holder);
-
ACE_Configuration_Section_Key attrs_key;
status =
this->repo_->config ()->open_section (this->section_key_,
@@ -577,11 +559,6 @@ TAO_InterfaceDef_i::describe_interface_i (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK_RETURN (0);
}
- // Restore our original section key.
- // It may have been overwritten by a superclass key as part of the
- // make_description() call.
- this->section_key (key_holder);
-
CORBA::InterfaceDefSeq_var bases =
this->base_interfaces_i (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -1281,5 +1258,3 @@ TAO_InterfaceDef_i::check_inherited (const char *name,
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.h
index 4d010fa0d48..5e445e692eb 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/InterfaceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,10 +20,10 @@
#ifndef TAO_INTERFACEDEF_I_H
#define TAO_INTERFACEDEF_I_H
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Container_i.h"
+#include "Contained_i.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -35,8 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_InterfaceDef_i
: public virtual TAO_Container_i,
public virtual TAO_Contained_i,
@@ -227,8 +224,6 @@ private:
// attribute name.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp
index dab11360086..87aef1f0854 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/LocalInterfaceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "LocalInterfaceDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
LocalInterfaceDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LocalInterfaceDef_i::TAO_LocalInterfaceDef_i (
TAO_Repository_i *repo
)
@@ -59,4 +58,3 @@ TAO_LocalInterfaceDef_i::is_a_i (const char *interface_id
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.h
index 92bfd1be945..3c9e5cc0568 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/LocalInterfaceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_LOCALINTERFACEDEF_I_H
#define TAO_LOCALINTERFACEDEF_I_H
-#include "orbsvcs/IFRService/InterfaceDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "InterfaceDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_LocalInterfaceDef_i : public virtual TAO_InterfaceDef_i
{
// = TITLE
@@ -69,10 +66,10 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_LOCALINTERFACEDEF_I_H */
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp
index 731d9aaf511..012996b39ee 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/IFRService/ModuleDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "ModuleDef_i.h"
+#include "Repository_i.h"
#include "ace/SString.h"
@@ -11,8 +11,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ModuleDef_i::TAO_ModuleDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Contained_i (repo),
@@ -107,5 +105,3 @@ TAO_ModuleDef_i::describe_i (ACE_ENV_SINGLE_ARG_DECL)
return retval._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.h
index 8c178c7cf50..dbb2a96fc96 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ModuleDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -22,9 +21,9 @@
#define TAO_MODULEDEF_I_H
//#include "Container_i.h"
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ComponentModuleDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ComponentModuleDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -35,8 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ModuleDef_i
: public virtual TAO_Contained_i,
public virtual TAO_ComponentModuleDef_i
@@ -85,8 +82,6 @@ public:
// From Contained_i's pure virtual function.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp
index e207ffe8823..d5ec549fa53 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/IFRService/NativeDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "NativeDef_i.h"
+#include "Repository_i.h"
#include "ace/SString.h"
@@ -11,8 +11,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_NativeDef_i::TAO_NativeDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
TAO_Contained_i (repo),
@@ -62,5 +60,3 @@ TAO_NativeDef_i::type_i (ACE_ENV_SINGLE_ARG_DECL)
name.c_str ()
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.h
index d6960a185e9..068e48b200b 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/NativeDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_NATIVEDEF_I_H
#define TAO_NATIVEDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "TypedefDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_NativeDef_i : public virtual TAO_TypedefDef_i
{
public:
@@ -70,10 +67,9 @@ public:
// From IDLType_i's pure virtual function.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_NATIVEDEF_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp
index cf8d8a91ba9..5a521a51e04 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/IFRService/OperationDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "OperationDef_i.h"
+#include "Repository_i.h"
+#include "IDLType_i.h"
+#include "ExceptionDef_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -15,8 +15,6 @@ ACE_RCSID (IFRService,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_OperationDef_i::TAO_OperationDef_i (
TAO_Repository_i *repo
)
@@ -747,5 +745,3 @@ TAO_OperationDef_i::type_i (ACE_ENV_SINGLE_ARG_DECL)
{
return this->result_i (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.h
index f11a2850319..df4f19f4b33 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/OperationDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_OPERATIONDEF_I_H
#define TAO_OPERATIONDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_OperationDef_i : public virtual TAO_Contained_i
{
// = TITLE
@@ -175,8 +172,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp
index 26f71866bfd..466cc0cceb1 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Options.cpp
@@ -1,13 +1,12 @@
// $Id$
-#include "orbsvcs/IFRService/Options.h"
+#include "Options.h"
#include "ace/Get_Opt.h"
#include "ace/Log_Msg.h"
#include "ace/Null_Mutex.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+// Default Constructor
Options::Options ()
: ior_output_file_ (ACE_OS::strdup ("if_repo.ior")),
persistent_ (0),
@@ -27,7 +26,7 @@ Options::~Options ()
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:pb:lm:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:pb:lm:r");
int c;
while ((c = get_opts ()) != -1)
@@ -118,5 +117,3 @@ Options::support_multicast_discovery (void) const
{
return this->support_multicast_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Options.h b/TAO/orbsvcs/orbsvcs/IFRService/Options.h
index f1453559b03..5251791c96c 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Options.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Options.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -23,11 +22,7 @@
#define OPTIONS_H
#include "ace/Singleton.h"
-#include "ace/Null_Mutex.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ifr_service_export.h"
class TAO_IFRService_Export Options
{
@@ -89,7 +84,5 @@ private:
// Typedef an Options Singleton.
typedef ACE_Singleton <Options, ACE_Null_Mutex> OPTIONS;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* OPTIONS_H */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp
index f9789c4282b..b7f83ae5605 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.cpp
@@ -1,14 +1,13 @@
+/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/PrimitiveDef_i.h"
+#include "Repository_i.h"
+#include "PrimitiveDef_i.h"
ACE_RCSID (IFRService,
PrimitiveDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PrimitiveDef_i::TAO_PrimitiveDef_i (
TAO_Repository_i *repo
)
@@ -139,4 +138,3 @@ TAO_PrimitiveDef_i::kind_i (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return static_cast<CORBA::PrimitiveKind> (pkind);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.h
index 05103c5c7ed..e8cbba4016a 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/PrimitiveDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_PRIMITIVEDEF_I_H
#define TAO_PRIMITIVEDEF_I_H
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_PrimitiveDef_i : public virtual TAO_IDLType_i
{
// = TITLE
@@ -90,11 +87,10 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_PRIMITIVEDEF_I_H */
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp
index f9bf6490763..597cf85946d 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.cpp
@@ -1,10 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ProvidesDef_i.h"
-#include "orbsvcs/IFRService/IFR_ComponentsS.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "Repository_i.h"
+#include "ProvidesDef_i.h"
+#include "IFR_ComponentsS.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.h
index e07923a3fee..95df79a19d2 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ProvidesDef_i.h
@@ -20,8 +20,8 @@
#ifndef TAO_PROVIDESDEF_I_H
#define TAO_PROVIDESDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ProvidesDef_i : public virtual TAO_Contained_i
{
// = TITLE
@@ -90,8 +88,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp
index 1a06feb5687..8b6df87e6b6 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.cpp
@@ -1,8 +1,8 @@
/* -*- C++ -*- */
// $Id$
-#include "orbsvcs/IFRService/PublishesDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
+#include "PublishesDef_i.h"
+#include "Repository_i.h"
ACE_RCSID (IFRService,
PublishesDef_i,
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.h
index 613bc9010e1..d4c8a0d1c3d 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/PublishesDef_i.h
@@ -20,8 +20,8 @@
#ifndef TAO_PUBLISHESDEF_I_H
#define TAO_PUBLISHESDEF_I_H
-#include "orbsvcs/IFRService/EventPortDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "EventPortDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_PublishesDef_i
: public virtual TAO_EventPortDef_i
{
@@ -58,8 +56,6 @@ public:
// Return our definition kind.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.cpp
index a6e4c6a6051..404060f8a6e 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/IFRService/RecursDef_i.h"
+#include "RecursDef_i.h"
ACE_RCSID (IFRService,
@@ -8,8 +8,6 @@ ACE_RCSID (IFRService,
"RecursDef_i.cpp,v 1.1 2004/10/18 09:00:00 SMA Exp")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//-----------------------------------------------------------------------------
// Class TAO_RecursiveDef_OuterScopes is a support class for StructDef_i.h and
// UnionDef_i.h files. It creates a stack of outer structure definitions, used
@@ -43,5 +41,3 @@ bool TAO_RecursiveDef_OuterScopes::SeenBefore( const ACE_TString &id )
const TAO_RecursiveDef_OuterScopes
*TAO_RecursiveDef_OuterScopes::pIDsSeenAlready= 0;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.h
index 5fdf5b7e7a0..c9f4d9ba083 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/RecursDef_i.h
@@ -21,7 +21,7 @@
#ifndef TAO_RECURSDEF_I_H
#define TAO_RECURSDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
+#include "TypedefDef_i.h"
#include "ace/SString.h"
#include "ace/OS_NS_stdlib.h"
@@ -34,9 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//-----------------------------------------------------------------------------
// Class TAO_RecursiveDef_OuterScopes is a support class for StructDef_i.h and
// UnionDef_i.h files. It creates a stack of outer structure definitions, used
@@ -59,8 +56,6 @@ private: // Data
static const TAO_RecursiveDef_OuterScopes *pIDsSeenAlready;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp
index 028f07f18cc..c9b85b4a2bd 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/IFRService/concrete_classes.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/Options.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "concrete_classes.h"
+#include "Repository_i.h"
+#include "IDLType_i.h"
+#include "Options.h"
+#include "IFR_Service_Utils.h"
#include "tao/ORB.h"
#include "tao/Object_KeyC.h"
@@ -18,8 +18,6 @@ ACE_RCSID (IFR_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Repository_i::TAO_Repository_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
ACE_Configuration *config)
@@ -1102,7 +1100,7 @@ TAO_Repository_i::lock (void) const
return *this->lock_;
}
-const char * TAO_Repository_i::TAO_IFR_primitive_kinds[] =
+const char *TAO_Repository_i::TAO_IFR_primitive_kinds[] =
{
"pk_null",
"pk_void",
@@ -1146,5 +1144,3 @@ TAO_Repository_i::shutdown (void)
{
this->orb_->shutdown (0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.h b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.h
index 06cbfdc2360..4df8834e7fb 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/Repository_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef REPOSITORY_I_H
#define REPOSITORY_I_H
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Container_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,12 +32,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-#include "orbsvcs/IFRService/IFR_macro.h"
+#include "IFR_macro.h"
#include "tao/TypeCodeFactory/TypeCodeFactory_Loader.h"
#include "tao/CORBA_String.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class IFR_Servant_Factory;
class TAO_IDLType_i;
@@ -365,7 +362,7 @@ protected:
#undef GEN_IR_OBJECT
private:
- static const char * TAO_IFR_primitive_kinds[];
+ static const char *TAO_IFR_primitive_kinds[];
// Set of strings corresponding to the CORBA::PrimitiveKind
// enum values.
@@ -377,8 +374,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp
index 5f7465b47fe..a510114bcc6 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/SequenceDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "SequenceDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -12,7 +12,6 @@ ACE_RCSID (IFRService,
SequenceDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_SequenceDef_i::TAO_SequenceDef_i (
TAO_Repository_i *repo
@@ -265,5 +264,3 @@ TAO_SequenceDef_i::destroy_element_type (
break;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.h
index cbed0039d88..bbd6be78144 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/SequenceDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef SEQUENCEDEF_I_H
#define SEQUENCEDEF_I_H
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_SequenceDef_i : public virtual TAO_IDLType_i
{
// = TITLE
@@ -141,8 +138,6 @@ private:
// Destroys an anonymous non-primitive element type.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp
index b8068cdb642..48f03cc741c 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/StringDef_i.h"
+#include "Repository_i.h"
+#include "StringDef_i.h"
#include "ace/SString.h"
@@ -10,7 +10,6 @@ ACE_RCSID (IFRService,
StringDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_StringDef_i::TAO_StringDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -127,5 +126,3 @@ TAO_StringDef_i::bound_i (CORBA::ULong bound
"bound",
bound);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.h
index 5f1e402b8ce..757f117e7c0 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/StringDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_STRINGDEF_I_H
#define TAO_STRINGDEF_I_H
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_StringDef_i : public virtual TAO_IDLType_i
{
// = TITLE
@@ -103,10 +100,9 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_STRINGDEF_I_H */
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp
index e4cef6229e6..8bd307d707d 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/StructDef_i.h"
-#include "orbsvcs/IFRService/RecursDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "StructDef_i.h"
+#include "RecursDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -13,7 +13,6 @@ ACE_RCSID (IFRService,
StructDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_StructDef_i::TAO_StructDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -208,9 +207,6 @@ TAO_StructDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL)
ACE_Configuration_Section_Key member_key;
TAO_IDLType_i *impl = 0;
- // Store to replace below.
- ACE_Configuration_Section_Key key_holder = this->section_key_;
-
for (CORBA::ULong k = 0; k < size; ++k)
{
name_queue.dequeue_head (name);
@@ -242,11 +238,6 @@ TAO_StructDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL)
retval[k].type = impl->type_i (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
- // If this struct contains a nested struct (of another type) at
- // some level, the above code will have changed the section key
- // so we have to replace it with the value we stored above.
- this->section_key (key_holder);
}
return retval._retn ();
@@ -313,5 +304,3 @@ TAO_StructDef_i::members_i (const CORBA::StructMemberSeq &members
"count",
count);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.h
index a679e5ff3dd..fe09f286177 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/StructDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,9 +20,9 @@
#ifndef TAO_STRUCTDEF_I_H
#define TAO_STRUCTDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "TypedefDef_i.h"
+#include "Container_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_StructDef_i : public virtual TAO_TypedefDef_i,
public virtual TAO_Container_i
{
@@ -104,8 +101,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp
index 3261a380750..c97b5cc48a0 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/TypedefDef_i.h"
+#include "Repository_i.h"
+#include "TypedefDef_i.h"
#include "ace/SString.h"
@@ -10,7 +10,6 @@ ACE_RCSID (IFRService,
TypedefDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_TypedefDef_i::TAO_TypedefDef_i (
TAO_Repository_i *repo
@@ -78,5 +77,3 @@ TAO_TypedefDef_i::describe_i (ACE_ENV_SINGLE_ARG_DECL)
return retval._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.h
index 1d836a105d2..32cab9bc159 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/TypedefDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,9 +20,9 @@
#ifndef TAO_TYPEDEFDEF_I_H
#define TAO_TYPEDEFDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_TypedefDef_i : public virtual TAO_Contained_i,
public virtual TAO_IDLType_i
{
@@ -66,8 +63,6 @@ public:
// From Contained_i's pure virtual function.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp
index efc0446c718..96600c3ac55 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/UnionDef_i.h"
-#include "orbsvcs/IFRService/RecursDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "UnionDef_i.h"
+#include "RecursDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
@@ -16,7 +16,6 @@ ACE_RCSID (IFRService,
UnionDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_UnionDef_i::TAO_UnionDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -289,9 +288,6 @@ TAO_UnionDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL)
CORBA::Object_var obj;
TAO_IDLType_i *impl = 0;
- // Store to replace below.
- ACE_Configuration_Section_Key key_holder = this->section_key_;
-
for (CORBA::ULong k = 0; k < size; ++k)
{
key_queue.dequeue_head (next_key);
@@ -329,11 +325,6 @@ TAO_UnionDef_i::members_i (ACE_ENV_SINGLE_ARG_DECL)
retval[k].type = impl->type_i (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
-
- // If this union contains a nested union (of another type) at
- // some level, the above code will have changed the section key
- // so we have to replace it with the value we stored above.
- this->section_key (key_holder);
}
return retval._retn ();
@@ -482,5 +473,3 @@ TAO_UnionDef_i::fetch_label (const ACE_Configuration_Section_Key member_key,
break;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.h
index feace1c2ec5..47e5c3d87bf 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/UnionDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,9 +20,9 @@
#ifndef TAO_UNIONDEF_I_H
#define TAO_UNIONDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
-#include "orbsvcs/IFRService/Container_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "TypedefDef_i.h"
+#include "Container_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_UnionDef_i : public virtual TAO_TypedefDef_i,
public virtual TAO_Container_i
{
@@ -140,12 +137,11 @@ private:
const ACE_Configuration_Section_Key member_key,
CORBA::UnionMember &member
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+
ACE_THROW_SPEC ((CORBA::SystemException));
// Used by members() to get each member's label value.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp
index 833a7fd0c6a..3caa8264b41 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.cpp
@@ -1,9 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/UsesDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "Repository_i.h"
+#include "UsesDef_i.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -12,7 +11,6 @@ ACE_RCSID (IFRService,
UsesDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_UsesDef_i::TAO_UsesDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -210,5 +208,3 @@ TAO_UsesDef_i::is_multiple_i (
"is_multiple",
is_multiple);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.h
index c0daa00be10..52bdd5664a9 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/UsesDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_USESDEF_I_H
#define TAO_USESDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_UsesDef_i : public virtual TAO_Contained_i
{
// = TITLE
@@ -113,8 +110,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp
index c8a710dcc23..3c7bf2f5440 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/IFRService/ValueBoxDef_i.h"
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "ValueBoxDef_i.h"
+#include "Repository_i.h"
+#include "IFR_Service_Utils.h"
#include "ace/Auto_Ptr.h"
#include "ace/SString.h"
@@ -12,7 +12,6 @@ ACE_RCSID (IFRService,
ValueBoxDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ValueBoxDef_i::TAO_ValueBoxDef_i (
TAO_Repository_i *repo
@@ -136,5 +135,3 @@ TAO_ValueBoxDef_i::original_type_def_i (CORBA::IDLType_ptr original_type_def
"boxed_type",
boxed_type);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.h
index 9fd68ca1cc8..ad655c50b46 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueBoxDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_VALUEBOXDEF_I_H
#define TAO_VALUEBOXDEF_I_H
-#include "orbsvcs/IFRService/TypedefDef_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "TypedefDef_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ValueBoxDef_i : public virtual TAO_TypedefDef_i
{
public:
@@ -92,8 +89,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp
index 9968cf84a82..4d2ba44ff04 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ValueDef_i.h"
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/OperationDef_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
+#include "Repository_i.h"
+#include "ValueDef_i.h"
+#include "AttributeDef_i.h"
+#include "OperationDef_i.h"
+#include "IFR_Service_Utils.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -14,7 +14,6 @@ ACE_RCSID (IFRService,
ValueDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ValueDef_i::TAO_ValueDef_i (TAO_Repository_i *repo)
: TAO_IRObject_i (repo),
@@ -1853,5 +1852,3 @@ TAO_ValueDef_i::fill_value_description (CORBA::ValueDescription &desc
holder);
desc.base_value = holder.fast_rep ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.h
index 0d5dd9d7f9f..7dd25212117 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,9 +20,9 @@
#ifndef TAO_VALUEDEF_I_H
#define TAO_VALUEDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ValueDef_i : public virtual TAO_Container_i,
public virtual TAO_Contained_i,
public virtual TAO_IDLType_i
@@ -344,10 +341,11 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* TAO_VALUEDEF_I_H */
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp
index bb6b101ddd0..3d25b96ed3b 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.cpp
@@ -1,10 +1,9 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/ValueMemberDef_i.h"
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils_T.h"
-#include "orbsvcs/IFRService/IFR_Service_Utils.h"
+#include "Repository_i.h"
+#include "ValueMemberDef_i.h"
+#include "IDLType_i.h"
+#include "IFR_Service_Utils_T.h"
#include "ace/SString.h"
@@ -13,7 +12,6 @@ ACE_RCSID (IFRService,
ValueMemberDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_ValueMemberDef_i::TAO_ValueMemberDef_i (
TAO_Repository_i *repo
@@ -220,5 +218,3 @@ TAO_ValueMemberDef_i::access_i (CORBA::Visibility access
"access",
access);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.h
index 1da19410d15..d512e45f406 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/ValueMemberDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_VALUEMEMBERDEF_I_H
#define TAO_VALUEMEMBERDEF_I_H
-#include "orbsvcs/IFRService/Contained_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "Contained_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_ValueMemberDef_i : public virtual TAO_Contained_i
{
// = TITLE
@@ -123,8 +120,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp
index 252050a2855..7f8c8bcc350 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/IFRService/Repository_i.h"
-#include "orbsvcs/IFRService/WstringDef_i.h"
+#include "Repository_i.h"
+#include "WstringDef_i.h"
#include "ace/SString.h"
@@ -10,7 +10,6 @@ ACE_RCSID (IFRService,
WstringDef_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_WstringDef_i::TAO_WstringDef_i (
TAO_Repository_i *repo
@@ -127,5 +126,3 @@ TAO_WstringDef_i::bound_i (CORBA::ULong bound
"bound",
bound);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.h b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.h
index c1317c0a888..62e9242c6c1 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/WstringDef_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -21,8 +20,8 @@
#ifndef TAO_WSTRINGDEF_I_H
#define TAO_WSTRINGDEF_I_H
-#include "orbsvcs/IFRService/IDLType_i.h"
-#include "orbsvcs/IFRService/ifr_service_export.h"
+#include "IDLType_i.h"
+#include "ifr_service_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IFRService_Export TAO_WstringDef_i : public virtual TAO_IDLType_i
{
// = TITLE
@@ -103,8 +100,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/concrete_classes.h b/TAO/orbsvcs/orbsvcs/IFRService/concrete_classes.h
index 27407fa581c..917db83e7a4 100644
--- a/TAO/orbsvcs/orbsvcs/IFRService/concrete_classes.h
+++ b/TAO/orbsvcs/orbsvcs/IFRService/concrete_classes.h
@@ -19,36 +19,36 @@
#ifndef CONCRETE_CLASSES_H
#define CONCRETE_CLASSES_H
-#include "orbsvcs/IFRService/PrimitiveDef_i.h"
-#include "orbsvcs/IFRService/StringDef_i.h"
-#include "orbsvcs/IFRService/WstringDef_i.h"
-#include "orbsvcs/IFRService/SequenceDef_i.h"
-#include "orbsvcs/IFRService/ArrayDef_i.h"
-#include "orbsvcs/IFRService/FixedDef_i.h"
-#include "orbsvcs/IFRService/EnumDef_i.h"
-#include "orbsvcs/IFRService/AliasDef_i.h"
-#include "orbsvcs/IFRService/NativeDef_i.h"
-#include "orbsvcs/IFRService/ValueBoxDef_i.h"
-#include "orbsvcs/IFRService/UnionDef_i.h"
-#include "orbsvcs/IFRService/StructDef_i.h"
-#include "orbsvcs/IFRService/ValueMemberDef_i.h"
-#include "orbsvcs/IFRService/FactoryDef_i.h"
-#include "orbsvcs/IFRService/AttributeDef_i.h"
-#include "orbsvcs/IFRService/ConstantDef_i.h"
-#include "orbsvcs/IFRService/ValueDef_i.h"
-#include "orbsvcs/IFRService/ExceptionDef_i.h"
-#include "orbsvcs/IFRService/ModuleDef_i.h"
-#include "orbsvcs/IFRService/ExtAbstractInterfaceDef_i.h"
-#include "orbsvcs/IFRService/ExtLocalInterfaceDef_i.h"
+#include "PrimitiveDef_i.h"
+#include "StringDef_i.h"
+#include "WstringDef_i.h"
+#include "SequenceDef_i.h"
+#include "ArrayDef_i.h"
+#include "FixedDef_i.h"
+#include "EnumDef_i.h"
+#include "AliasDef_i.h"
+#include "NativeDef_i.h"
+#include "ValueBoxDef_i.h"
+#include "UnionDef_i.h"
+#include "StructDef_i.h"
+#include "ValueMemberDef_i.h"
+#include "FactoryDef_i.h"
+#include "AttributeDef_i.h"
+#include "ConstantDef_i.h"
+#include "ValueDef_i.h"
+#include "ExceptionDef_i.h"
+#include "ModuleDef_i.h"
+#include "ExtAbstractInterfaceDef_i.h"
+#include "ExtLocalInterfaceDef_i.h"
-#include "orbsvcs/IFRService/ComponentDef_i.h"
-#include "orbsvcs/IFRService/HomeDef_i.h"
-#include "orbsvcs/IFRService/FinderDef_i.h"
-#include "orbsvcs/IFRService/ConsumesDef_i.h"
-#include "orbsvcs/IFRService/PublishesDef_i.h"
-#include "orbsvcs/IFRService/EmitsDef_i.h"
-#include "orbsvcs/IFRService/EventDef_i.h"
-#include "orbsvcs/IFRService/ProvidesDef_i.h"
-#include "orbsvcs/IFRService/UsesDef_i.h"
+#include "ComponentDef_i.h"
+#include "HomeDef_i.h"
+#include "FinderDef_i.h"
+#include "ConsumesDef_i.h"
+#include "PublishesDef_i.h"
+#include "EmitsDef_i.h"
+#include "EventDef_i.h"
+#include "ProvidesDef_i.h"
+#include "UsesDef_i.h"
#endif /* CONCRETE_CLASSES_H */
diff --git a/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp b/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp
index 73a947638cf..83543b4416f 100644
--- a/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp
+++ b/TAO/orbsvcs/orbsvcs/IOR_Multicast.cpp
@@ -1,18 +1,15 @@
// $Id$
-#include "orbsvcs/IOR_Multicast.h"
+#include "IOR_Multicast.h"
#include "tao/debug.h"
#include "ace/SOCK_Connector.h"
-#include "ace/Log_Msg.h"
ACE_RCSID (orbsvcs,
IOR_Multicast,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_HANDLE
TAO_IOR_Multicast::get_handle (void) const
{
@@ -125,7 +122,7 @@ TAO_IOR_Multicast::common_init (const char *ior,
{
if (this->mcast_dgram_.subscribe (this->mcast_addr_,
1,
- ACE_TEXT_CHAR_TO_TCHAR(this->mcast_nic_.c_str())) == -1)
+ ACE_TEXT_TO_TCHAR_IN(this->mcast_nic_.c_str())) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "TAO_IOR_Multicast::common_init() %p\n", "subscribe"),-1);
}
else
@@ -318,4 +315,4 @@ TAO_IOR_Multicast::handle_input (ACE_HANDLE)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/IOR_Multicast.h b/TAO/orbsvcs/orbsvcs/IOR_Multicast.h
index 9963e2fa222..013fcebf5af 100644
--- a/TAO/orbsvcs/orbsvcs/IOR_Multicast.h
+++ b/TAO/orbsvcs/orbsvcs/IOR_Multicast.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -35,8 +34,6 @@
#include "ace/Reactor.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Svc_Utils_Export TAO_IOR_Multicast : public ACE_Event_Handler
{
// = TITLE
@@ -108,7 +105,5 @@ private:
ACE_CString mcast_nic_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IOR_MULTICAST_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
index 5ea2a76ec77..105c2f6a738 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h"
+#include "LB_CPU_Load_Average_Monitor.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_stdio.h"
@@ -14,11 +14,9 @@ ACE_RCSID (LoadBalancing,
LB_CPU_Load_Average_Monitor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_LB_CPU_Load_Average_Monitor::TAO_LB_CPU_Load_Average_Monitor (
- const char * location_id,
- const char * location_kind)
+TAO_LB_CPU_Load_Average_Monitor::TAO_LB_CPU_Load_Average_Monitor (const char * location_id,
+ const char * location_kind)
: location_ (1)
{
this->location_.length (1);
@@ -240,5 +238,3 @@ TAO_LB_CPU_Load_Average_Monitor::loads (ACE_ENV_SINGLE_ARG_DECL)
#endif /* linux || sun || __hpux || __NetBSD__ || __APPLE__ */
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h
index 12bb7c1df80..16e5a456e46 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Load_Average_Monitor.h
@@ -24,7 +24,6 @@
#include "orbsvcs/CosLoadBalancingS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_LB_CPU_Load_Average_Monitor
@@ -96,8 +95,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_CPU_LOAD_AVERAGE_MONITOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp
index 48a8267e189..11ae897574e 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h"
+#include "LB_CPU_Utilization_Monitor.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_stdio.h"
@@ -11,8 +11,6 @@ ACE_RCSID (LoadBalancing,
LB_CPU_Utilization_Monitor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
double calc_cpu_loading (void)
{
static char buf[1024];
@@ -166,5 +164,3 @@ TAO_LB_CPU_Utilization_Monitor::loads (ACE_ENV_SINGLE_ARG_DECL)
#endif /* linux || sun */
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h
index c369ce8e2c0..85798d6a44d 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_CPU_Utilization_Monitor.h
@@ -7,7 +7,7 @@
* $Id$
*
* @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
- * @author Ossama Othman <ossama@uci.edu>
+ * Ossama Othman <ossama@uci.edu>
*/
//=============================================================================
@@ -25,7 +25,6 @@
#include "orbsvcs/CosLoadBalancingS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_LB_CPU_Utilization_Monitor
@@ -93,8 +92,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_CPU_UTILIZATION_MONITOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp
index abfe60c3f23..57e266921c3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/LoadBalancing/LB_ClientComponent.h"
-#include "orbsvcs/LoadBalancing/LB_ClientORBInitializer.h"
+#include "LB_ClientComponent.h"
+#include "LB_ClientORBInitializer.h"
#include "tao/ORB_Constants.h"
#include "tao/ORBInitializer_Registry.h"
@@ -8,8 +8,6 @@ ACE_RCSID (LoadBalancing,
LB_ClientComponent,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_LB_ClientComponent::init (int /* argc */, ACE_TCHAR * /* argv */[])
{
@@ -57,7 +55,6 @@ TAO_LB_ClientComponent::register_orb_initializer (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (TAO_LB_ClientComponent,
ACE_TEXT ("LB_ClientComponent"),
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h
index 8431950aff4..4d960d74884 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientComponent.h
@@ -26,8 +26,6 @@
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_ClientComponent
*
@@ -56,7 +54,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_LoadBalancing, TAO_LB_ClientComponent)
ACE_STATIC_SVC_REQUIRE (TAO_LB_ClientComponent)
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.cpp
index 10ef40d2a54..4ab071fd528 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/LoadBalancing/LB_ClientORBInitializer.h"
-#include "orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h"
+#include "LB_ClientORBInitializer.h"
+#include "LB_ClientRequestInterceptor.h"
#include "tao/ORB_Constants.h"
@@ -7,8 +7,6 @@ ACE_RCSID (LoadBalancing,
LB_ClientORBInitializer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_LB_ClientORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
@@ -39,5 +37,3 @@ TAO_LB_ClientORBInitializer::post_init (
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
index 595c7198ea0..38338336bf3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientORBInitializer.h
@@ -31,7 +31,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_LB_ORBInitializer
@@ -67,7 +66,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp
index 870a88577d2..fd3240d0bcd 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h"
+#include "LB_ClientRequestInterceptor.h"
#include "orbsvcs/CosLoadBalancingC.h"
@@ -7,7 +7,6 @@ ACE_RCSID (LoadBalancing,
TAO_LB_ClientRequestInterceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
char *
TAO_LB_ClientRequestInterceptor::name (
@@ -110,5 +109,3 @@ TAO_LB_ClientRequestInterceptor::receive_other (
PortableInterceptor::ForwardRequest))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h
index 124a845a989..6dbb4b71ae3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ClientRequestInterceptor.h
@@ -30,8 +30,6 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_ClientRequestInterceptor
*
@@ -105,7 +103,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp
index 3e6d76a10aa..156ae61ed77 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/LoadBalancing/LB_Component.h"
-#include "orbsvcs/LoadBalancing/LB_ORBInitializer.h"
+#include "LB_Component.h"
+#include "LB_ORBInitializer.h"
#include "tao/ORB_Constants.h"
#include "tao/ORBInitializer_Registry.h"
@@ -9,8 +9,6 @@ ACE_RCSID (LoadBalancing,
LB_Component,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_LB_Component::init (int argc, ACE_TCHAR * argv[])
{
@@ -35,7 +33,7 @@ TAO_LB_Component::init (int argc, ACE_TCHAR * argv[])
for (int i = 0; i < argc; ++i)
{
- if (ACE_OS::strcasecmp (argv[i], "-LBGroup") == 0)
+ if (ACE_OS::strcasecmp (argv[i], ACE_TEXT("-LBGroup")) == 0)
{
const CORBA::ULong j = len;
++len;
@@ -47,7 +45,7 @@ TAO_LB_Component::init (int argc, ACE_TCHAR * argv[])
++i; // 2
- if (ACE_OS::strcasecmp (argv[i], "-LBTypeId") != 0)
+ if (ACE_OS::strcasecmp (argv[i], ACE_TEXT("-LBTypeId")) != 0)
return -1;
++i; // 3
@@ -55,7 +53,7 @@ TAO_LB_Component::init (int argc, ACE_TCHAR * argv[])
repository_ids.length (len);
repository_ids[j] = CORBA::string_dup (argv[i]);
}
- else if (ACE_OS::strcasecmp (argv[i], "-LBTypeId") == 0)
+ else if (ACE_OS::strcasecmp (argv[i], ACE_TEXT("-LBTypeId")) == 0)
{
const CORBA::ULong j = len;
++len;
@@ -67,7 +65,7 @@ TAO_LB_Component::init (int argc, ACE_TCHAR * argv[])
++i; // 2
- if (ACE_OS::strcasecmp (argv[i], "-LBGroup") != 0)
+ if (ACE_OS::strcasecmp (argv[i], ACE_TEXT("-LBGroup")) != 0)
return -1;
++i; // 3
@@ -75,7 +73,7 @@ TAO_LB_Component::init (int argc, ACE_TCHAR * argv[])
object_groups.length (len);
object_groups[j] = CORBA::string_dup (argv[i]);
}
- else if (ACE_OS::strcasecmp (argv[i], "-LBLocation") == 0)
+ else if (ACE_OS::strcasecmp (argv[i], ACE_TEXT("-LBLocation")) == 0)
{
++i;
location = CORBA::string_dup (argv[i]);
@@ -133,7 +131,6 @@ TAO_LB_Component::register_orb_initializer (
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (TAO_LB_Component,
ACE_TEXT ("LB_Component"),
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.h
index 26273daab93..0f290d8412b 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Component.h
@@ -26,8 +26,6 @@
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_Component
*
@@ -58,7 +56,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_LoadBalancing, TAO_LB_Component)
ACE_STATIC_SVC_REQUIRE (TAO_LB_Component)
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp
index 6af1cad1b42..5a5e40d8275 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/LoadBalancing/LB_IORInterceptor.h"
-#include "orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h"
-#include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
+#include "LB_IORInterceptor.h"
+#include "LB_ObjectReferenceFactory.h"
+#include "LB_LoadAlert.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
@@ -9,8 +9,6 @@ ACE_RCSID (LoadBalancing,
LB_IORInterceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LB_IORInterceptor::TAO_LB_IORInterceptor (
const CORBA::StringSeq & object_groups,
const CORBA::StringSeq & repository_ids,
@@ -185,5 +183,3 @@ TAO_LB_IORInterceptor::register_load_alert (ACE_ENV_SINGLE_ARG_DECL)
ACE_ENDTRY;
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
index ca4b6f7ea01..dc168cdec0d 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_IORInterceptor.h
@@ -29,8 +29,6 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_LB_LoadAlert;
@@ -49,7 +47,7 @@ class TAO_LB_LoadAlert;
* @see LB_ObjectReferenceFactory.h for details.
*/
class TAO_LB_IORInterceptor
- : public virtual PortableInterceptor::IORInterceptor_3_0,
+ : public virtual PortableInterceptor::IORInterceptor,
public virtual TAO_Local_RefCounted_Object
{
public:
@@ -143,8 +141,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp
index 00c4fa6203d..7c65cc62d62 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/LoadBalancing/LB_LeastLoaded.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMap.h"
-#include "orbsvcs/LoadBalancing/LB_Random.h"
+#include "LB_LeastLoaded.h"
+#include "LB_LoadMap.h"
+#include "LB_Random.h"
#include "orbsvcs/PortableGroup/PG_conf.h"
@@ -17,10 +17,9 @@ ACE_RCSID (LoadBalancing,
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/LoadBalancing/LB_LeastLoaded.inl"
+#include "LB_LeastLoaded.inl"
#endif /* defined INLINE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_LeastLoaded::TAO_LB_LeastLoaded (PortableServer::POA_ptr poa)
: poa_ (PortableServer::POA::_duplicate (poa)),
@@ -637,5 +636,3 @@ TAO_LB_LeastLoaded::extract_float_property (
ACE_THROW (PortableGroup::InvalidProperty (property.nam,
property.val));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
index a7843028c66..df043e104f3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMap.h"
+#include "LB_LoadMap.h"
# if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +27,6 @@
#include "ace/Synch_Traits.h"
#include "ace/Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_LB
{
/**
@@ -217,11 +215,9 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/LoadBalancing/LB_LeastLoaded.inl"
+#include "LB_LeastLoaded.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.inl b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.inl
index e59193f3c6f..cb650c93ba0 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.inl
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.inl
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Float
TAO_LB_LeastLoaded::effective_load (CORBA::Float previous_load,
CORBA::Float new_load)
@@ -23,5 +21,3 @@ TAO_LB_LeastLoaded::effective_load (CORBA::Float previous_load,
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp
index a57212dbce6..3c51e755ee5 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
+#include "LB_LoadAlert.h"
ACE_RCSID (LoadBalancer,
@@ -6,20 +6,18 @@ ACE_RCSID (LoadBalancer,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/LoadBalancing/LB_LoadAlert.inl"
+# include "LB_LoadAlert.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LB_LoadAlert::TAO_LB_LoadAlert (void)
: alerted_ (0),
lock_ ()
{
}
-TAO_LB_LoadAlert::~TAO_LB_LoadAlert (void)
-{
-}
+// TAO_LB_LoadAlert::~TAO_LB_LoadAlert (void)
+// {
+// }
void
TAO_LB_LoadAlert::enable_alert (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
@@ -38,5 +36,3 @@ TAO_LB_LoadAlert::disable_alert (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
this->alerted_ = 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h
index f5345ef7f07..5c356ef3b41 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.h
@@ -24,7 +24,6 @@
#include "orbsvcs/PortableGroupC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_LoadBalancing_Export TAO_LB_LoadAlert
: public virtual POA_CosLoadBalancing::LoadAlert
@@ -56,15 +55,16 @@ public:
/// by the LoadManager.
CORBA::Boolean alerted (void) const;
-// protected:
+protected:
+
/// Destructor.
/**
* Protected destructor to enforce correct memory management via
* reference counting.
*/
- virtual ~TAO_LB_LoadAlert (void);
-
+ //~TAO_LB_LoadAlert (void);
+
private:
/// Has this LoadAlert servant been alerted of a high load condition
@@ -76,10 +76,9 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-# include "orbsvcs/LoadBalancing/LB_LoadAlert.inl"
+# include "LB_LoadAlert.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.inl b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.inl
index abff1d3087e..0f574a49206 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.inl
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert.inl
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_LB_LoadAlert::alerted (void) const
{
@@ -12,5 +10,3 @@ TAO_LB_LoadAlert::alerted (void) const
return this->alerted_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp
index 0378e9f584e..78eeeb187f6 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.cpp
@@ -1,16 +1,12 @@
-#include "orbsvcs/LoadBalancing/LB_LoadAlertInfo.h"
+#include "LB_LoadAlertInfo.h"
#include "orbsvcs/PortableGroup/PG_Operators.h"
ACE_RCSID (LoadBalancing,
LB_LoadAlertInfo,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LB_LoadAlertInfo::TAO_LB_LoadAlertInfo (void)
: load_alert (),
alerted (0)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h
index 47c3f7b384c..6736448e92c 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertInfo.h
@@ -24,7 +24,6 @@
#include "orbsvcs/CosLoadBalancingC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_LB_LoadAlertInfo
@@ -47,7 +46,6 @@ struct TAO_LB_LoadAlertInfo
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.cpp
new file mode 100644
index 00000000000..23586970f71
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.cpp
@@ -0,0 +1,9 @@
+// -*- C++ -*-
+
+#include "LB_LoadAlertMap.h"
+
+
+ACE_RCSID (LoadBalancing,
+ LB_LoadAlertMap,
+ "$Id$")
+
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.h
index 5451acafddb..620ec2d3acb 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlertMap.h
@@ -22,14 +22,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/LoadBalancing/LB_LoadAlertInfo.h"
+#include "LB_LoadAlertInfo.h"
#include "orbsvcs/PortableGroup/PG_Location_Hash.h"
#include "orbsvcs/PortableGroup/PG_Location_Equal_To.h"
#include "ace/Hash_Map_Manager_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// LoadAlertInfo hash map typedef.
typedef ACE_Hash_Map_Manager_Ex<
@@ -39,7 +38,6 @@ typedef ACE_Hash_Map_Manager_Ex<
TAO_PG_Location_Equal_To,
ACE_Null_Mutex> TAO_LB_LoadAlertMap;
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp
index ca2bf1b5116..749f96a61d0 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h"
+#include "LB_LoadAlert_Handler.h"
#include "tao/debug.h"
@@ -7,7 +7,6 @@ ACE_RCSID (LoadBalancing,
LB_LoadAlert_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_LoadAlert_Handler::~TAO_LB_LoadAlert_Handler (void)
{
@@ -21,7 +20,7 @@ TAO_LB_LoadAlert_Handler::enable_alert (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
void
TAO_LB_LoadAlert_Handler::enable_alert_excep (
- ::Messaging::ExceptionHolder *
+ CosLoadBalancing::AMI_LoadAlertExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -39,7 +38,7 @@ TAO_LB_LoadAlert_Handler::disable_alert (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
void
TAO_LB_LoadAlert_Handler::disable_alert_excep (
- ::Messaging::ExceptionHolder *
+ CosLoadBalancing::AMI_LoadAlertExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -48,5 +47,3 @@ TAO_LB_LoadAlert_Handler::disable_alert_excep (
ACE_TEXT ("Exception caught when invoking ")
ACE_TEXT ("LoadAlert::disable_alert()\n")));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h
index d19518ce96d..d6a4f386926 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h
@@ -26,8 +26,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_LoadAlert_Handler
*
@@ -47,7 +45,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void enable_alert_excep (
- ::Messaging::ExceptionHolder *
+ CosLoadBalancing::AMI_LoadAlertExceptionHolder *
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -55,7 +53,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void disable_alert_excep (
- ::Messaging::ExceptionHolder *
+ CosLoadBalancing::AMI_LoadAlertExceptionHolder *
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -67,8 +65,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp
index c6a0d0c3fa3..68515987188 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/LoadBalancing/LB_LoadAverage.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMap.h"
-#include "orbsvcs/LoadBalancing/LB_Random.h"
+#include "LB_LoadAverage.h"
+#include "LB_LoadMap.h"
+#include "LB_Random.h"
#include "orbsvcs/PortableGroup/PG_conf.h"
@@ -17,10 +17,9 @@ ACE_RCSID (LoadBalancing,
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/LoadBalancing/LB_LoadAverage.inl"
+#include "LB_LoadAverage.inl"
#endif /* defined INLINE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_LoadAverage::TAO_LB_LoadAverage (PortableServer::POA_ptr poa)
: poa_ (PortableServer::POA::_duplicate (poa)),
@@ -450,5 +449,3 @@ TAO_LB_LoadAverage::extract_float_property (
ACE_THROW (PortableGroup::InvalidProperty (property.nam,
property.val));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h
index 4af286ee527..5fbf7360a43 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.h
@@ -7,7 +7,7 @@
* $Id$
*
* @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
- * @author Ossama Othman <ossama@dre.vanderbilt.edu>
+ * @author Ossama Othman <jai@dre.vanderbilt.edu>
*/
//=============================================================================
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMap.h"
+#include "LB_LoadMap.h"
# if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,8 +28,6 @@
#include "ace/Synch_Traits.h"
#include "ace/Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_LB
{
/**
@@ -173,10 +171,9 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/LoadBalancing/LB_LoadAverage.inl"
+#include "LB_LoadAverage.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.inl b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.inl
index 347374c1a7c..807367ef5c1 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.inl
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadAverage.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE CORBA::Float
TAO_LB_LoadAverage::effective_load (CORBA::Float previous_load,
@@ -22,5 +21,3 @@ TAO_LB_LoadAverage::effective_load (CORBA::Float previous_load,
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.cpp
new file mode 100644
index 00000000000..5c084408100
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.cpp
@@ -0,0 +1,7 @@
+// -*- C++ -*-
+
+#include "LB_LoadListMap.h"
+
+ACE_RCSID (LoadBalancing,
+ LB_LoadListMap,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.h
index 4dd83f2e2b9..ebfbb3b6cb7 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadListMap.h
@@ -29,7 +29,6 @@
#include "ace/Hash_Map_Manager_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// LoadList hash map.
typedef ACE_Hash_Map_Manager_Ex<
@@ -39,8 +38,6 @@ typedef ACE_Hash_Map_Manager_Ex<
TAO_PG_Location_Equal_To,
ACE_Null_Mutex> TAO_LB_LoadListMap;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_LOAD_LIST_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp
index ae0f10be8de..d30a2b159f1 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.cpp
@@ -1,12 +1,12 @@
-#include "orbsvcs/LoadBalancing/LB_LoadManager.h"
-#include "orbsvcs/LoadBalancing/LB_MemberLocator.h"
-#include "orbsvcs/LoadBalancing/LB_LoadAlert_Handler.h"
-#include "orbsvcs/LoadBalancing/LB_RoundRobin.h"
-#include "orbsvcs/LoadBalancing/LB_Random.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMinimum.h"
-#include "orbsvcs/LoadBalancing/LB_LoadAverage.h"
-#include "orbsvcs/LoadBalancing/LB_LeastLoaded.h"
-#include "orbsvcs/LoadBalancing/LB_conf.h"
+#include "LB_LoadManager.h"
+#include "LB_MemberLocator.h"
+#include "LB_LoadAlert_Handler.h"
+#include "LB_RoundRobin.h"
+#include "LB_Random.h"
+#include "LB_LoadMinimum.h"
+#include "LB_LoadAverage.h"
+#include "LB_LeastLoaded.h"
+#include "LB_conf.h"
#include "orbsvcs/PortableGroup/PG_Property_Utils.h"
#include "orbsvcs/PortableGroup/PG_conf.h"
@@ -27,7 +27,6 @@ ACE_RCSID (LoadBalancing,
LB_LoadManager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_LoadManager::TAO_LB_LoadManager (void)
: reactor_ (0),
@@ -1291,5 +1290,3 @@ TAO_LB_LoadManager::make_strategy (CosLoadBalancing::StrategyInfo * info
// this->poa_->reference_to_id (
// this->poa_->deactivate_object ();
// }
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
index 42ce6c006c4..cc9b4ff0bf5 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadManager.h
@@ -23,10 +23,10 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/LoadBalancing/LB_LoadAlertMap.h"
-#include "orbsvcs/LoadBalancing/LB_MonitorMap.h"
-#include "orbsvcs/LoadBalancing/LB_LoadListMap.h"
-#include "orbsvcs/LoadBalancing/LB_Pull_Handler.h"
+#include "LB_LoadAlertMap.h"
+#include "LB_MonitorMap.h"
+#include "LB_LoadListMap.h"
+#include "LB_Pull_Handler.h"
#include "orbsvcs/PortableGroupC.h"
@@ -34,7 +34,6 @@
#include "orbsvcs/PortableGroup/PG_GenericFactory.h"
#include "orbsvcs/PortableGroup/PG_ObjectGroupManager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_LoadBalancing_Export TAO_LB_LoadManager
: public virtual POA_CosLoadBalancing::LoadManager
@@ -512,7 +511,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.cpp
new file mode 100644
index 00000000000..8a40fdb1c95
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.cpp
@@ -0,0 +1,7 @@
+// -*- C++ -*-
+
+#include "LB_LoadMap.h"
+
+ACE_RCSID (LoadBalancing,
+ LB_LoadMap,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.h
index 2e75bbba1f3..6e5778f4a55 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMap.h
@@ -29,7 +29,6 @@
#include "ace/Hash_Map_Manager_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Load hash map.
typedef ACE_Hash_Map_Manager_Ex<
@@ -39,8 +38,6 @@ typedef ACE_Hash_Map_Manager_Ex<
TAO_PG_Location_Equal_To,
ACE_Null_Mutex> TAO_LB_LoadMap;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_LOAD_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp
index b271606a0fb..50a13794544 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/LoadBalancing/LB_LoadMinimum.h"
+#include "LB_LoadMinimum.h"
#include "ace/OS_NS_sys_time.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMap.h"
-#include "orbsvcs/LoadBalancing/LB_Random.h"
+#include "LB_LoadMap.h"
+#include "LB_Random.h"
#include "orbsvcs/PortableGroup/PG_conf.h"
@@ -18,10 +18,9 @@ ACE_RCSID (LoadBalancing,
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/LoadBalancing/LB_LoadMinimum.inl"
+#include "LB_LoadMinimum.inl"
#endif /* defined INLINE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_LoadMinimum::TAO_LB_LoadMinimum (PortableServer::POA_ptr poa)
: poa_ (PortableServer::POA::_duplicate (poa)),
@@ -660,5 +659,3 @@ TAO_LB_LoadMinimum::extract_float_property (
ACE_THROW (PortableGroup::InvalidProperty (property.nam,
property.val));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h
index c979845aa0c..7d894bb090a 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/LoadBalancing/LB_LoadMap.h"
+#include "LB_LoadMap.h"
# if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,9 +28,6 @@
#include "ace/Synch_Traits.h"
#include "ace/Thread_Mutex.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_LB
{
/**
@@ -197,10 +194,9 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/LoadBalancing/LB_LoadMinimum.inl"
+#include "LB_LoadMinimum.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.inl b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.inl
index dc120b38783..4f096fa4040 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.inl
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LoadMinimum.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Float
TAO_LB_LoadMinimum::effective_load (CORBA::Float previous_load,
CORBA::Float new_load)
@@ -22,5 +20,3 @@ TAO_LB_LoadMinimum::effective_load (CORBA::Float previous_load,
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.cpp
new file mode 100644
index 00000000000..703c0515709
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.cpp
@@ -0,0 +1,7 @@
+// -*- C++ -*-
+
+#include "LB_Location_Index_Map.h"
+
+ACE_RCSID (LoadBalancing,
+ LB_Location_Index,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.h
index a08694dd2d0..b99c5437779 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Location_Index_Map.h
@@ -27,7 +27,6 @@
#include "ace/Functor.h"
#include "ace/Hash_Map_Manager_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Location index map.
typedef ACE_Hash_Map_Manager_Ex<
@@ -37,8 +36,6 @@ typedef ACE_Hash_Map_Manager_Ex<
ACE_Equal_To<ACE_UINT64>,
ACE_Null_Mutex> TAO_LB_Location_Index_Map;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_LOCATION_INDEX_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.cpp
index 31c4e10977e..8d4b359b479 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/LoadBalancing/LB_LoadManager.h"
-#include "orbsvcs/LoadBalancing/LB_MemberLocator.h"
+#include "LB_LoadManager.h"
+#include "LB_MemberLocator.h"
#include "tao/debug.h"
@@ -8,7 +8,6 @@ ACE_RCSID (LoadBalancing,
LB_MemberLocator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_MemberLocator::TAO_LB_MemberLocator (
TAO_LB_LoadManager * lm)
@@ -72,5 +71,3 @@ TAO_LB_MemberLocator::postinvoke (
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h
index e376937f0a5..ccdc9af7247 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MemberLocator.h
@@ -25,8 +25,6 @@
#include "tao/PortableServer/ServantLocatorC.h"
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_LB_LoadManager;
@@ -85,8 +83,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_MEMBER_LOCATOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MonitorMap.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MonitorMap.cpp
new file mode 100644
index 00000000000..ad8142f3e24
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_MonitorMap.cpp
@@ -0,0 +1,8 @@
+// -*- C++ -*-
+
+#include "LB_LoadMap.h"
+
+
+ACE_RCSID (LoadBalancing,
+ LB_MonitorMap,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.cpp
index e7e7eeb4443..035486af6d3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/LoadBalancing/LB_ORBInitializer.h"
-#include "orbsvcs/LoadBalancing/LB_IORInterceptor.h"
-#include "orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h"
+#include "LB_ORBInitializer.h"
+#include "LB_IORInterceptor.h"
+#include "LB_ServerRequestInterceptor.h"
#include "orbsvcs/CosLoadBalancingC.h"
@@ -10,9 +10,6 @@ ACE_RCSID (LoadBalancing,
LB_ORBInitializer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LB_ORBInitializer::TAO_LB_ORBInitializer (
const CORBA::StringSeq & object_groups,
const CORBA::StringSeq & repository_ids,
@@ -90,5 +87,3 @@ TAO_LB_ORBInitializer::post_init (
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h
index 292e36558ab..ffac81934f0 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ORBInitializer.h
@@ -16,15 +16,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
+#include "LB_LoadAlert.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PI/PI.h"
#include "tao/LocalObject.h"
-#include "tao/Versioned_Namespace.h"
+#include "tao/PI/PI.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -33,7 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_LB_ORBInitializer
@@ -99,7 +97,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp
index 7fa2874b40b..d525001fc3d 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h"
+#include "LB_ObjectReferenceFactory.h"
ACE_RCSID (LoadBalancing,
LB_ObjectReferenceFactory,
@@ -12,8 +12,6 @@ ACE_RCSID (LoadBalancing,
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// The number of different object groups to support.
#ifndef TAO_LB_ORF_GROUP_TABLE_SIZE
const size_t TAO_LB_ORF_GROUP_TABLE_SIZE = 16;
@@ -255,5 +253,3 @@ TAO_LB_ObjectReferenceFactory::load_managed_object (const char * repository_id,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h
index 81fddbe05bf..729ac23aca5 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ObjectReferenceFactory.h
@@ -33,8 +33,6 @@
#include "ace/Null_Mutex.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_ObjectReferenceFactory
*
@@ -167,8 +165,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
index 5e8cdf226ec..eb431a84ade 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/LoadBalancing/LB_Pull_Handler.h"
-#include "orbsvcs/LoadBalancing/LB_LoadManager.h"
+#include "LB_Pull_Handler.h"
+#include "LB_LoadManager.h"
#include "tao/debug.h"
@@ -9,8 +9,6 @@ ACE_RCSID (LoadBalancing,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LB_Pull_Handler::TAO_LB_Pull_Handler (void)
: monitor_map_ (0),
load_manager_ (0)
@@ -80,5 +78,3 @@ TAO_LB_Pull_Handler::handle_timeout (
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.h
index a18efd9d961..5649c74f263 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Pull_Handler.h
@@ -22,15 +22,15 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/LoadBalancing/LB_MonitorMap.h"
+#include "LB_MonitorMap.h"
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Forward declarations.
class TAO_LB_LoadManager;
+
/**
* @class TAO_LB_Pull_Handler
*
@@ -65,9 +65,6 @@ private:
TAO_LB_LoadManager * load_manager_;
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LB_PULL_HANDLER_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp
index 56c39655f2d..ff1f158b0e3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/LoadBalancing/LB_Random.h"
+#include "LB_Random.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_time.h"
@@ -14,13 +14,12 @@ ACE_RCSID (LoadBalancing,
static pthread_once_t tao_lb_once_control = PTHREAD_ONCE_INIT;
#endif /* ACE_HAS_PTHREADS_STD */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
extern "C" void tao_lb_random_init_routine (void)
{
ACE_OS::srand (static_cast<unsigned int> (ACE_OS::time ()));
}
+
TAO_LB_Random::TAO_LB_Random (PortableServer::POA_ptr poa)
: poa_ (PortableServer::POA::_duplicate (poa))
{
@@ -176,5 +175,3 @@ TAO_LB_Random::init (void)
::tao_lb_random_init_routine ();
#endif /* ACE_HAS_PTHREADS_STD */
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.h
index af5bea2b038..92eb9881ce8 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_Random.h
@@ -23,8 +23,6 @@
# endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_Random
*
@@ -116,8 +114,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp
index ab865f8020e..28507f0b1d6 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/LoadBalancing/LB_RoundRobin.h"
+#include "LB_RoundRobin.h"
#include "orbsvcs/PortableGroup/PG_conf.h"
@@ -11,8 +11,6 @@ ACE_RCSID (LoadBalancing,
LB_RoundRobin,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LB_RoundRobin::TAO_LB_RoundRobin (PortableServer::POA_ptr poa)
: poa_ (PortableServer::POA::_duplicate (poa)),
lock_ (),
@@ -167,5 +165,3 @@ TAO_LB_RoundRobin::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h
index a96a1120223..04f810908d1 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_RoundRobin.h
@@ -26,9 +26,6 @@
#include "orbsvcs/CosLoadBalancingS.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LB_RoundRobin_Strategy
*
@@ -120,8 +117,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* LB_ROUND_ROBIN_H */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp
index 10bb3303a39..6b9a9a48be3 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h"
-#include "orbsvcs/LoadBalancing/LB_LoadAlert.h"
+#include "LB_ServerRequestInterceptor.h"
+#include "LB_LoadAlert.h"
#include "tao/debug.h"
@@ -10,7 +10,6 @@ ACE_RCSID (LoadBalancing,
LB_ServerRequestInterceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_LB_ServerRequestInterceptor::TAO_LB_ServerRequestInterceptor (
TAO_LB_LoadAlert & load_alert)
@@ -178,5 +177,3 @@ TAO_LB_ServerRequestInterceptor::send_other (
ACE_TEXT ("LOCATION FORWARDED\n")));
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
index a3a94008a27..dc41b7dbf7b 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_ServerRequestInterceptor.h
@@ -33,7 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_LB_LoadAlert;
@@ -114,8 +113,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_conf.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_conf.h
index 9c65aba972c..6b1fcfd8b98 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_conf.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_conf.h
@@ -22,9 +22,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
#ifndef TAO_LB_PULL_HANDLER_INTERVAL
/// The interval in seconds the load balancer queries registered load
@@ -38,7 +35,6 @@ const long TAO_LB_PULL_HANDLER_INTERVAL = 5;
const long TAO_LB_PULL_HANDLER_RESTART = 5;
#endif /* TAO_LB_PULL_HANDLER_RESTART */
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/README b/TAO/orbsvcs/orbsvcs/LoadBalancing/README
deleted file mode 100644
index 175e8e074fd..00000000000
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/README
+++ /dev/null
@@ -1,35 +0,0 @@
-This directory contains the implementations of the TAO Load Balancing
-service, which is called as Cygnus.
-
-Cygnus currently implements the latest revision of the OMG Load Balancing
-and Monitoring proposed specification. The features and advantages of
-Cygnus include:
-1. Multiple object group support.
-2. Extensible load balancing strategies through IDL interface.
-3. Extensible load monitoring.
-4. Support for push and pull style monitoring.
-5. Support for infrastructure and application controlled memberships.
-6. Efficient server side transparency.
-7. Default implementations of well known load balancing strategies.
-
-Future Work targeted:
-1. Implement a distributed load balancing service.
-2. Implement stateful load balancing service.
-3. Implement self adaptive load balancing strategies using control
-theoretical techniques.
-
-Papers about Cygnus:
-1. Ossama Othman, Carlos O'Ryan, and Douglas C. Schmidt, The Design of an
-Adaptive CORBA Load Balancing Service, IEEE Distributed Systems Online, Volume
-2, Number 4, April, 2001.
-2. Ossama Othman, Carlos O'Ryan, and Douglas C. Schmidt, An Efficient
-Adaptive Load Balancing Service for CORBA, IEEE Distributed Systems Online,
-Volume 2, Number 3, March, 2001.
-3. Jaiganesh Balasubramanian, Douglas C. Schmidt, Lawrence Dowdy, and Ossama
-Othman, Evaluating the Performance of Middleware Load Balancing Strategies,
-Proceedings of the 8th International IEEE Enterprise Distributed Object
-Computing Conference, Monterey, CA, September 2004
-4. Ossama Othman, Jaigaesh Balasubramanian, and Douglas C. Schmidt, The
-Design of an Adaptive Middleware Load Balancing and Monitoring Service, Third
-International Workshop on Self-Adaptive Software, Arlington, VA, USA, June
-9-11, 2003
diff --git a/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
index b8704fe0988..977e11d580b 100644
--- a/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.cpp
@@ -5,8 +5,6 @@ ACE_RCSID (Log,
BasicLogFactory_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_BasicLogFactory_i::TAO_BasicLogFactory_i (void)
{
}
@@ -120,7 +118,7 @@ TAO_BasicLogFactory_i::create_with_id (DsLogAdmin::LogId id,
CORBA::RepositoryId
TAO_BasicLogFactory_i::create_repositoryid ()
{
- return CORBA::string_dup ("IDL:omg.org/DsLogAdmin:BasicLog:1.0");
+ return CORBA::string_dup("IDL:omg.org/DsLogAdmin:BasicLog:1.0");
}
PortableServer::ServantBase*
@@ -143,5 +141,3 @@ TAO_BasicLogFactory_i::create_log_servant (DsLogAdmin::LogId id
return basic_log_i;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.h b/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.h
index f6cc8f4113a..2d3820014a3 100644
--- a/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/BasicLogFactory_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -11,7 +11,7 @@
*
* @author Matthew Braun <mjb2@cs.wustl.edu>
* @author Pradeep Gore <pradeep@cs.wustl.edu>
- * @author David A. Hanvey <d.hanvey@qub.ac.uk>
+ * @David A. Hanvey <d.hanvey@qub.ac.uk>
*/
//=============================================================================
@@ -35,8 +35,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_BasicLogActivator;
/**
@@ -99,8 +97,6 @@ protected:
DsLogAdmin::LogMgr_var log_mgr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp
index ab9dc1cdee9..b02b0d7e1f0 100644
--- a/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.cpp
@@ -6,8 +6,6 @@ ACE_RCSID (Log,
BasicLog_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_BasicLog_i::TAO_BasicLog_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
TAO_LogMgr_i &logmgr_i,
@@ -90,5 +88,3 @@ TAO_BasicLog_i::destroy (ACE_ENV_SINGLE_ARG_DECL)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.h b/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.h
index 1ee94e0799c..965f0261c6a 100644
--- a/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/BasicLog_i.h
@@ -28,7 +28,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/Log/Log_i.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -37,8 +37,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
/**
@@ -93,8 +91,6 @@ protected:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
index 5e005ee70c6..852317d4d42 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.cpp
@@ -6,8 +6,6 @@ ACE_RCSID (Log,
EventLogConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Event_LogConsumer::TAO_Event_LogConsumer (TAO_EventLog_i *log)
: log_ (log)
{
@@ -97,4 +95,4 @@ TAO_Event_LogConsumer::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL)
this->supplier_proxy_->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.h b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.h
index fac7eb9bbb9..72f5a5b772e 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogConsumer.h
@@ -30,15 +30,13 @@
#include "orbsvcs/Log/Log_i.h"
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
-#include "orbsvcs/Log/eventlog_serv_export.h"
+#include "eventlog_serv_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_EventLog_i;
class TAO_EventLogFactory_i;
@@ -92,8 +90,6 @@ private:
TAO_EventLog_i *log_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp
index ceac8976ab8..c6d7c41be56 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.cpp
@@ -8,8 +8,6 @@ ACE_RCSID (Log,
EventLogFactory_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EventLogFactory_i::TAO_EventLogFactory_i (void)
{
TAO_CEC_Default_Factory::init_svcs ();
@@ -248,5 +246,3 @@ TAO_EventLogFactory_i::obtain_pull_supplier (ACE_ENV_SINGLE_ARG_DECL)
{
return consumer_admin_->obtain_pull_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.h b/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.h
index ea8e6e5c63f..230c3c54882 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogFactory_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -10,7 +10,8 @@
*
*
* @author Rob Ruff <rruff@scires.com>
- * @author David A. Hanvey <d.hanvey@qub.ac.uk>
+ * @David A. Hanvey <d.hanvey@qub.ac.uk>
+ *
*/
//=============================================================================
@@ -30,15 +31,13 @@
#include "orbsvcs/CosEvent/CEC_ConsumerAdmin.h"
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
-#include "orbsvcs/Log/EventLog_i.h"
+#include "EventLog_i.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_EventLog_i;
class TAO_EventLogNotification;
@@ -142,8 +141,6 @@ protected:
CosEventChannelAdmin::ConsumerAdmin_var consumer_admin_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp
index 130274497d7..7efe128c8b3 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.cpp
@@ -7,8 +7,6 @@ ACE_RCSID (Log,
EventLogNotification,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EventLogNotification::TAO_EventLogNotification (CosEventChannelAdmin::EventChannel_ptr ec)
: TAO_LogNotification (), event_channel_ (CosEventChannelAdmin::EventChannel::_duplicate (ec))
{
@@ -49,4 +47,4 @@ TAO_EventLogNotification::send_notification (const CORBA::Any& any
consumer_->push (any ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.h b/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.h
index 88306c2eac7..c73bcf2efba 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.h
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLogNotification.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -8,7 +8,10 @@
*
* Methods to enable log-generated events.
*
+ *
* @author D A Hanvey <d.hanvey@qub.ac.uk>
+ *
+ *
*/
//=============================================================================
@@ -27,15 +30,13 @@
#include "orbsvcs/DsEventLogAdminS.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
#include "orbsvcs/CosEventCommS.h"
-#include "orbsvcs/Log/eventlog_serv_export.h"
+#include "eventlog_serv_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_EventLogNotification
*
@@ -82,8 +83,6 @@ private:
CosEventChannelAdmin::ProxyPushConsumer_var consumer_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp
index 87df3394e48..a7d8a257ff7 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLog_i.cpp
@@ -6,9 +6,6 @@ ACE_RCSID (Log,
EventLog_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_EventLog_i::TAO_EventLog_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
TAO_LogMgr_i &logmgr_i,
@@ -132,5 +129,3 @@ TAO_EventLog_i::for_suppliers (ACE_ENV_SINGLE_ARG_DECL)
{
return this->event_channel_->for_suppliers (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/EventLog_i.h b/TAO/orbsvcs/orbsvcs/Log/EventLog_i.h
index 65c2f4798a9..24e0eaeae36 100644
--- a/TAO/orbsvcs/orbsvcs/Log/EventLog_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/EventLog_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// ============================================================================
/**
@@ -11,7 +11,7 @@
* to write events to the Log.
*
* @author Rob Ruff <rruff@scires.com>
- * @author D A Hanvey <d.hanvey@qub.ac.uk>
+ * @D A Hanvey <d.hanvey@qub.ac.uk>
*/
// ============================================================================
@@ -32,15 +32,13 @@
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/Log/EventLogConsumer.h"
-#include "orbsvcs/Log/eventlog_serv_export.h"
+#include "eventlog_serv_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_EventLog_i;
class TAO_EventLogFactory_i;
@@ -127,8 +125,6 @@ private:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp
index f23b113e3d0..8a578c28207 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/Log/Hash_Iterator_i.h"
+#include "Hash_Iterator_i.h"
#include "orbsvcs/Log/Log_Constraint_Interpreter.h"
#include "orbsvcs/Log/Log_Constraint_Visitors.h"
#include "orbsvcs/DsLogAdminC.h"
@@ -7,18 +7,14 @@ ACE_RCSID (Log,
Hash_Iterator_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Hash_Iterator_i::TAO_Hash_Iterator_i (
- ACE_Reactor* reactor,
- TAO_Hash_LogRecordStore* recordstore,
- TAO_Hash_LogRecordStore::LOG_RECORD_STORE_ITER iter,
- TAO_Hash_LogRecordStore::LOG_RECORD_STORE_ITER iter_end,
- CORBA::ULong start,
- const char *constraint,
- CORBA::ULong max_rec_list_len)
+TAO_Hash_Iterator_i::TAO_Hash_Iterator_i (ACE_Reactor* reactor,
+ TAO_Hash_LogRecordStore::LOG_RECORD_STORE_ITER iter,
+ TAO_Hash_LogRecordStore::LOG_RECORD_STORE_ITER iter_end,
+ CORBA::ULong start,
+ const char *constraint,
+ CORBA::ULong max_rec_list_len
+ )
: TAO_Iterator_i(reactor),
- recordstore_ (recordstore),
iter_ (iter),
iter_end_ (iter_end),
current_position_(start),
@@ -40,12 +36,6 @@ TAO_Hash_Iterator_i::get (CORBA::ULong position,
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidParam))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
if (position < current_position_)
{
ACE_THROW_RETURN (DsLogAdmin::InvalidParam (), 0);
@@ -105,5 +95,3 @@ TAO_Hash_Iterator_i::get (CORBA::ULong position,
return rec_list;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.h b/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.h
index ec2b78ffca1..548b1df2004 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_Iterator_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -8,8 +8,10 @@
*
* Implementation of the DsLogAdmin::Iterator interface.
*
+ *
* @author Matthew Braun <mjb2@cs.wustl.edu>
* @author Pradeep Gore <pradeep@cs.wustl.edu>
+ *
*/
//=============================================================================
@@ -32,8 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Hash_Iterator_i
*
@@ -48,7 +48,6 @@ public:
/// Constructor.
TAO_Hash_Iterator_i (ACE_Reactor* reactor,
- TAO_Hash_LogRecordStore* recordstore,
TAO_Hash_LogRecordStore::LOG_RECORD_STORE_ITER iter,
TAO_Hash_LogRecordStore::LOG_RECORD_STORE_ITER iter_end,
CORBA::ULong start,
@@ -66,8 +65,6 @@ public:
DsLogAdmin::InvalidParam));
private:
- /// Pointer to record store
- TAO_Hash_LogRecordStore* recordstore_;
/// Current Iterator.
TAO_Hash_LogRecordStore::LOG_RECORD_HASH_MAP_ITER iter_;
@@ -85,8 +82,6 @@ private:
CORBA::ULong max_rec_list_len_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp
index 25354e8328a..cc0da373600 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.cpp
@@ -12,14 +12,12 @@ ACE_RCSID (Log,
Hash_LogRecordStore,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Hash_LogRecordStore::TAO_Hash_LogRecordStore (
- CORBA::ORB_ptr orb,
- DsLogAdmin::LogId logid,
- DsLogAdmin::LogFullActionType log_full_action,
- CORBA::ULongLong max_size,
- const DsLogAdmin::CapacityAlarmThresholdList* thresholds)
+TAO_Hash_LogRecordStore::TAO_Hash_LogRecordStore (CORBA::ORB_ptr orb,
+ DsLogAdmin::LogId logid,
+ DsLogAdmin::LogFullActionType log_full_action,
+ CORBA::ULongLong max_size,
+ const DsLogAdmin::CapacityAlarmThresholdList* thresholds
+ )
: maxid_ (0),
max_size_ (max_size),
id_ (logid),
@@ -44,9 +42,6 @@ TAO_Hash_LogRecordStore::TAO_Hash_LogRecordStore (
this->thresholds_.length(1);
this->thresholds_[0] = 100;
}
-
- this->log_qos_.length(1);
- this->log_qos_[0] = DsLogAdmin::QoSNone;
}
TAO_Hash_LogRecordStore::~TAO_Hash_LogRecordStore (void)
@@ -70,12 +65,24 @@ TAO_Hash_LogRecordStore::close (void)
CORBA::ULongLong
TAO_Hash_LogRecordStore::get_current_size (ACE_ENV_SINGLE_ARG_DECL)
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
return this->current_size_;
}
CORBA::ULongLong
TAO_Hash_LogRecordStore::get_n_records (ACE_ENV_SINGLE_ARG_DECL)
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
return this->num_records_;
}
@@ -83,6 +90,12 @@ int
TAO_Hash_LogRecordStore::log (const DsLogAdmin::LogRecord &const_rec
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (-1);
+
// Get log record size...
size_t record_size = log_record_size (const_rec);
@@ -129,6 +142,12 @@ TAO_Hash_LogRecordStore::retrieve (DsLogAdmin::RecordId id,
DsLogAdmin::LogRecord &rec
ACE_ENV_ARG_DECL)
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (-1);
+
int retval = rec_hash_.find (id, rec);
return retval;
}
@@ -137,6 +156,12 @@ int
TAO_Hash_LogRecordStore::update (DsLogAdmin::LogRecord &rec
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (-1);
+
DsLogAdmin::LogRecord oldrec;
if (rec_hash_.unbind (rec.id, oldrec) != 0)
@@ -178,6 +203,12 @@ int
TAO_Hash_LogRecordStore::remove (DsLogAdmin::RecordId id
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (-1);
+
return remove_i (id);
}
@@ -185,6 +216,12 @@ TAO_Hash_LogRecordStore::remove (DsLogAdmin::RecordId id
int
TAO_Hash_LogRecordStore::purge_old_records (ACE_ENV_SINGLE_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (-1);
+
CORBA::ULongLong num_records_to_purge = this->num_records_ * 5U / 100U;
if (num_records_to_purge < 1)
@@ -302,7 +339,6 @@ TAO_Hash_LogRecordStore::query_i (const char *constraint,
TAO_Hash_Iterator_i *iter_query = 0;
ACE_NEW_THROW_EX (iter_query,
TAO_Hash_Iterator_i (this->reactor_,
- this,
iter,
iter_end,
count,
@@ -331,6 +367,12 @@ TAO_Hash_LogRecordStore::query (const char *grammar,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint))
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
this->check_grammar (grammar ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -347,6 +389,12 @@ TAO_Hash_LogRecordStore::retrieve (DsLogAdmin::TimeT from_time,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
// Decide between forward vs backward retrieval.
char constraint[32];
char uint64_formating[32];
@@ -357,7 +405,7 @@ TAO_Hash_LogRecordStore::retrieve (DsLogAdmin::TimeT from_time,
ACE_U64_TO_U32 (from_time));
#else
ACE_OS::sprintf (uint64_formating,
- ACE_UINT64_FORMAT_SPECIFIER,
+ ACE_UINT64_FORMAT_SPECIFIER_A,
from_time);
#endif
@@ -422,6 +470,12 @@ TAO_Hash_LogRecordStore::match (const char* grammar,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint))
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
this->check_grammar (grammar ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -440,6 +494,12 @@ TAO_Hash_LogRecordStore::delete_records (const char *grammar,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint))
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
this->check_grammar (grammar ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -455,6 +515,12 @@ TAO_Hash_LogRecordStore::delete_records_by_id (const DsLogAdmin::RecordIdList &i
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
CORBA::ULong count (0);
for (CORBA::ULong i = 0; i < ids.length (); i++)
@@ -471,6 +537,12 @@ TAO_Hash_LogRecordStore::delete_records_by_id (const DsLogAdmin::RecordIdList &i
CORBA::ULong
TAO_Hash_LogRecordStore::remove_old_records (ACE_ENV_SINGLE_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
if (this->max_record_life_ == 0) {
return 0;
}
@@ -515,13 +587,6 @@ TAO_Hash_LogRecordStore::remove_old_records (ACE_ENV_SINGLE_ARG_DECL)
return count;
}
-ACE_SYNCH_RW_MUTEX&
-TAO_Hash_LogRecordStore::lock()
-{
- return lock_;
-}
-
-
void
TAO_Hash_LogRecordStore::check_grammar (const char* grammar
ACE_ENV_ARG_DECL)
@@ -539,6 +604,12 @@ TAO_Hash_LogRecordStore::check_grammar (const char* grammar
DsLogAdmin::AdministrativeState
TAO_Hash_LogRecordStore::get_administrative_state (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (this->admin_state_);
+
return this->admin_state_;
}
@@ -546,6 +617,12 @@ void
TAO_Hash_LogRecordStore::set_administrative_state (DsLogAdmin::AdministrativeState state
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
+
this->admin_state_ = state;
}
@@ -553,6 +630,12 @@ TAO_Hash_LogRecordStore::set_administrative_state (DsLogAdmin::AdministrativeSta
DsLogAdmin::CapacityAlarmThresholdList*
TAO_Hash_LogRecordStore::get_capacity_alarm_thresholds (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
DsLogAdmin::CapacityAlarmThresholdList* ret_val;
ACE_NEW_THROW_EX (ret_val,
DsLogAdmin::CapacityAlarmThresholdList (this->thresholds_),
@@ -566,6 +649,12 @@ void
TAO_Hash_LogRecordStore::set_capacity_alarm_thresholds (const DsLogAdmin::CapacityAlarmThresholdList& thresholds
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
+
this->thresholds_ = thresholds;
}
@@ -574,6 +663,12 @@ TAO_Hash_LogRecordStore::set_capacity_alarm_thresholds (const DsLogAdmin::Capaci
DsLogAdmin::ForwardingState
TAO_Hash_LogRecordStore::get_forwarding_state (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (this->forward_state_);
+
return this->forward_state_;
}
@@ -581,12 +676,24 @@ void
TAO_Hash_LogRecordStore::set_forwarding_state (DsLogAdmin::ForwardingState state
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
+
this->forward_state_ = state;
}
DsLogAdmin::TimeInterval
TAO_Hash_LogRecordStore::get_interval (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (this->interval_);
+
return this->interval_;
}
@@ -594,6 +701,12 @@ void
TAO_Hash_LogRecordStore::set_interval (const DsLogAdmin::TimeInterval &interval
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
+
this->interval_ = interval;
}
@@ -601,6 +714,12 @@ TAO_Hash_LogRecordStore::set_interval (const DsLogAdmin::TimeInterval &interval
DsLogAdmin::LogFullActionType
TAO_Hash_LogRecordStore::get_log_full_action (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (this->log_full_action_);
+
return this->log_full_action_;
}
@@ -608,31 +727,25 @@ void
TAO_Hash_LogRecordStore::set_log_full_action (DsLogAdmin::LogFullActionType action
ACE_ENV_ARG_DECL)
{
- this->log_full_action_ = action;
-}
-
-DsLogAdmin::QoSList *
-TAO_Hash_LogRecordStore::get_log_qos (ACE_ENV_SINGLE_ARG_DECL) const
-{
- DsLogAdmin::QoSList* ret_val;
- ACE_NEW_THROW_EX (ret_val,
- DsLogAdmin::QoSList (this->log_qos_),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
- return ret_val;
+ this->log_full_action_ = action;
}
-void
-TAO_Hash_LogRecordStore::set_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL)
-{
- this->log_qos_ = qos;
-}
CORBA::ULong
TAO_Hash_LogRecordStore::get_max_record_life (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
return this->max_record_life_;
}
@@ -640,12 +753,24 @@ void
TAO_Hash_LogRecordStore::set_max_record_life (CORBA::ULong max_record_life
ACE_ENV_ARG_DECL)
{
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
+
this->max_record_life_ = max_record_life;
}
CORBA::ULongLong
TAO_Hash_LogRecordStore::get_max_size (ACE_ENV_SINGLE_ARG_DECL) const
{
+ ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK_RETURN (0);
+
return this->max_size_;
}
@@ -653,26 +778,11 @@ void
TAO_Hash_LogRecordStore::set_max_size (CORBA::ULongLong size
ACE_ENV_ARG_DECL)
{
- this->max_size_ = size;
-}
-
-DsLogAdmin::WeekMask*
-TAO_Hash_LogRecordStore::get_week_mask (ACE_ENV_SINGLE_ARG_DECL)
-{
- DsLogAdmin::WeekMask* ret_val;
- ACE_NEW_THROW_EX (ret_val,
- DsLogAdmin::WeekMask (this->weekmask_),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- return ret_val;
-}
+ ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
+ guard,
+ lock_,
+ CORBA::INTERNAL ());
+ ACE_CHECK;
-void
-TAO_Hash_LogRecordStore::set_week_mask (const DsLogAdmin::WeekMask &masks
- ACE_ENV_ARG_DECL)
-{
- this->weekmask_ = masks;
+ this->max_size_ = size;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h b/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
index cd50f3a621b..7073383de53 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_LogRecordStore.h
@@ -29,12 +29,10 @@
#include "ace/Null_Mutex.h"
#include "ace/RW_Thread_Mutex.h"
#include "ace/Reactor.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
#define LOG_DEFAULT_MAX_REC_LIST_LEN 100
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Hash_LogRecordStore
*
@@ -118,15 +116,6 @@ class TAO_Log_Serv_Export TAO_Hash_LogRecordStore
set_log_full_action(DsLogAdmin::LogFullActionType action
ACE_ENV_ARG_DECL);
- /// Get the list of the QoS properties supported by the log.
- virtual DsLogAdmin::QoSList*
- get_log_qos (ACE_ENV_SINGLE_ARG_DECL) const;
-
- /// Set the list of the QoS properties supported by the log.
- virtual void
- set_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL);
-
/// Gets the max record life
virtual CORBA::ULong
get_max_record_life (ACE_ENV_SINGLE_ARG_DECL) const;
@@ -144,16 +133,7 @@ class TAO_Log_Serv_Export TAO_Hash_LogRecordStore
virtual void
set_max_size (CORBA::ULongLong size
ACE_ENV_ARG_DECL);
-
- /// Get the weekly scheduling parameters
- virtual DsLogAdmin::WeekMask*
- get_week_mask (ACE_ENV_SINGLE_ARG_DECL);
-
- /// Set the weekly scheduling parameters.
- virtual void
- set_week_mask (const DsLogAdmin::WeekMask & masks
- ACE_ENV_ARG_DECL);
-
+
// = LogRecordStore status methods
@@ -245,9 +225,6 @@ class TAO_Log_Serv_Export TAO_Hash_LogRecordStore
virtual CORBA::ULong
remove_old_records (ACE_ENV_SINGLE_ARG_DECL);
-
- /// Read-Write Lock
- virtual ACE_SYNCH_RW_MUTEX& lock();
/* protected: */
/// Defines macros to represent the hash that maps ids to
@@ -328,22 +305,13 @@ protected:
/// The action to take if the log reaches max capacity
DsLogAdmin::LogFullActionType log_full_action_;
- /// The list of the QoS properties supported by the log.
- DsLogAdmin::QoSList log_qos_;
-
/// The maximum record lifetime
CORBA::ULong max_record_life_;
- /// The days of the week that the log should be operational
- DsLogAdmin::WeekMask weekmask_;
-
-
ACE_Reactor* reactor_;
mutable ACE_SYNCH_RW_MUTEX lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_HASH_LOG_RECORD_STORE_H*/
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp
index 16a3d50b9c8..2eca24c2127 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.cpp
@@ -7,8 +7,6 @@ ACE_RCSID (Log,
Hash_LogStore,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Hash_LogStore::TAO_Hash_LogStore(CORBA::ORB_ptr orb, TAO_LogMgr_i* mgr)
: next_id_ (0),
orb_ (CORBA::ORB::_duplicate (orb)),
@@ -258,5 +256,3 @@ TAO_Hash_LogStore::get_log_record_store (DsLogAdmin::LogId id
return recordstore;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.h b/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.h
index e56fd676a30..16b9f300e6c 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_LogStore.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -8,7 +8,7 @@
*
* @author Matthew Braun <mjb2@cs.wustl.edu>
* @author Pradeep Gore <pradeep@cs.wustl.edu>
- * @author David A. Hanvey <d.hanvey@qub.ac.uk>
+ * @David A. Hanvey <d.hanvey@qub.ac.uk>
*/
//=============================================================================
@@ -27,14 +27,9 @@
#include "ace/Synch_Traits.h"
#include "ace/Null_Mutex.h"
#include "ace/RW_Thread_Mutex.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_Hash_LogRecordStore;
@@ -125,8 +120,6 @@ private:
TAO_LogMgr_i* mgr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_HASH_LOGSTORE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp
index 91f7c455423..9c2164d58bd 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.cpp
@@ -5,8 +5,6 @@ ACE_RCSID (Log,
Hash_Persistence_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Hash_Persistence_Strategy::TAO_Hash_Persistence_Strategy()
{
}
@@ -22,5 +20,3 @@ TAO_Hash_Persistence_Strategy::create_log_store(CORBA::ORB_ptr orb,
{
return new TAO_Hash_LogStore (orb, mgr);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h b/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h
index 3c55c9a730f..44386117ce6 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Hash_Persistence_Strategy.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -8,7 +8,7 @@
*
* @author Matthew Braun <mjb2@cs.wustl.edu>
* @author Pradeep Gore <pradeep@cs.wustl.edu>
- * @author David A. Hanvey <d.hanvey@qub.ac.uk>
+ * @David A. Hanvey <d.hanvey@qub.ac.uk>
*/
//=============================================================================
@@ -24,8 +24,6 @@
#include "orbsvcs/Log/Log_Persistence_Strategy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Hash_Persistence_Strategy
*
@@ -52,8 +50,6 @@ public:
private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_HASH_PERSISTENCE_STRATEGY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp
index d26dc48d882..8c9c1331526 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Iterator_i.cpp
@@ -4,9 +4,6 @@ ACE_RCSID (Log,
Iterator_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// iterator inactivity timeout
ACE_Time_Value
TAO_Iterator_i::timeout_(60 * 60);
@@ -69,5 +66,3 @@ TAO_Iterator_i::handle_timeout(const ACE_Time_Value&, const void*)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Iterator_i.h b/TAO/orbsvcs/orbsvcs/Log/Iterator_i.h
index acfa7b89f63..ad3b1eec975 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Iterator_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Iterator_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,7 +27,7 @@
#include "orbsvcs/DsLogAdminS.h"
#include "ace/Event_Handler.h"
#include "ace/Reactor.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -36,8 +36,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Iterator_i
*
@@ -81,8 +79,6 @@ protected:
virtual int handle_timeout (const ACE_Time_Value&, const void *);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogActivator.cpp b/TAO/orbsvcs/orbsvcs/Log/LogActivator.cpp
index 5f7c64cd724..c61096e9fed 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogActivator.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/LogActivator.cpp
@@ -7,8 +7,6 @@ ACE_RCSID (Log,
#if (TAO_HAS_MINIMUM_POA == 0)
#include "orbsvcs/Log/LogMgr_i.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LogActivator::TAO_LogActivator (TAO_LogMgr_i &logmgr_i)
: logmgr_i_ (logmgr_i)
{
@@ -53,6 +51,4 @@ TAO_LogActivator::etherealize (const PortableServer::ObjectId&,
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogActivator.h b/TAO/orbsvcs/orbsvcs/Log/LogActivator.h
index c25f466b0ed..52905fa6988 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogActivator.h
+++ b/TAO/orbsvcs/orbsvcs/Log/LogActivator.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -18,13 +18,11 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/PortableServer/ServantActivatorC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// forward declarations
class TAO_LogMgr_i;
@@ -70,8 +68,6 @@ private:
TAO_LogMgr_i& logmgr_i_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp
index 1137822914f..3cba3e42944 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/Log/LogMgr_i.h"
-#include "orbsvcs/Log/LogActivator.h"
+#include "LogMgr_i.h"
+#include "LogActivator.h"
#include "ace/Dynamic_Service.h"
#include "tao/Utils/PolicyList_Destroyer.h"
#include "orbsvcs/Log/Hash_Persistence_Strategy.h"
@@ -10,9 +10,6 @@ ACE_RCSID (Log,
LogMgr_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LogMgr_i::TAO_LogMgr_i ()
: logstore_ (0)
{
@@ -274,5 +271,3 @@ TAO_LogMgr_i::create_with_id_i (DsLogAdmin::LogId id,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h
index 8ce52e13977..bf8dc3c9483 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.h
@@ -26,9 +26,7 @@
#include "orbsvcs/Log/Log_i.h"
#include "orbsvcs/Log/Log_Persistence_Strategy.h"
-#include "orbsvcs/Log/log_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "log_serv_export.h"
/**
* @class TAO_LogMgr_i
@@ -190,7 +188,5 @@ private:
TAO_LogStore* logstore_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_LOGMGR_I_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp
index e7f422dd36b..027f9ad103d 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/LogNotification.cpp
@@ -8,14 +8,14 @@ ACE_RCSID (Log,
LogNotification,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LogNotification::TAO_LogNotification (void)
{
+ // No-Op.
}
TAO_LogNotification::~TAO_LogNotification (void)
{
+ // No-Op.
}
void
@@ -98,12 +98,12 @@ TAO_LogNotification::attribute_value_change (DsLogAdmin::Log_ptr log,
CORBA::Any any;
DsLogNotification::AttributeValueChange event;
- event.logref = DsLogAdmin::Log::_duplicate (log);
+ event.logref = log;
event.id = id;
TimeBase::TimeT current_time;
ACE_Time_Value now = ACE_OS::gettimeofday ();
- ORBSVCS_Time::Time_Value_to_TimeT (current_time, now);
+ ORBSVCS_Time::Time_Value_to_TimeT(current_time, now);
event.time = current_time;
@@ -290,7 +290,7 @@ TAO_LogNotification::quality_of_service_value_change (
}
void
-TAO_LogNotification::state_change (DsLogAdmin::Log_ptr log,
+TAO_LogNotification::state_change (DsLogAdmin::Log_ptr /* log */,
DsLogAdmin::LogId id,
DsLogNotification::StateType type,
CORBA::Any newValue
@@ -300,12 +300,12 @@ TAO_LogNotification::state_change (DsLogAdmin::Log_ptr log,
CORBA::Any any;
DsLogNotification::StateChange event;
- event.logref = DsLogAdmin::Log::_duplicate (log);
+ // The log id.
event.id = id;
TimeBase::TimeT current_time;
ACE_Time_Value now = ACE_OS::gettimeofday ();
- ORBSVCS_Time::Time_Value_to_TimeT (current_time, now);
+ ORBSVCS_Time::Time_Value_to_TimeT(current_time, now);
event.time = current_time;
// Administrative, Operational or Forwarding state.
@@ -378,7 +378,7 @@ TAO_LogNotification::forwarding_state_change (DsLogAdmin::Log_ptr log,
void
TAO_LogNotification::threshold_alarm (
- DsLogAdmin::Log_ptr log,
+ DsLogAdmin::Log_ptr /* log */,
DsLogAdmin::LogId id,
DsLogAdmin::Threshold crossedValue,
DsLogAdmin::Threshold observedValue,
@@ -389,7 +389,6 @@ TAO_LogNotification::threshold_alarm (
CORBA::Any any;
DsLogNotification::ThresholdAlarm event;
- event.logref = DsLogAdmin::Log::_duplicate (log);
event.id = id;
TimeBase::TimeT current_time;
@@ -414,5 +413,3 @@ TAO_LogNotification::send_notification (const CORBA::Any & /* any */
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogNotification.h b/TAO/orbsvcs/orbsvcs/Log/LogNotification.h
index 32b68ecae1f..dc562f6e2ca 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogNotification.h
+++ b/TAO/orbsvcs/orbsvcs/Log/LogNotification.h
@@ -25,9 +25,8 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/DsLogNotificationS.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_LogNotification
@@ -178,8 +177,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_LOG_NOTIFICATION_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp
index 278039ac40e..885e0c756a9 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.cpp
@@ -4,14 +4,12 @@ ACE_RCSID (Log,
LogRecordStore,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LogRecordStore::TAO_LogRecordStore (void)
{
+ //No-Op.
}
TAO_LogRecordStore::~TAO_LogRecordStore (void)
{
+ // No-Op.
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.h b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.h
index a16fd00e5f5..59b055aa9ea 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.h
+++ b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore.h
@@ -23,9 +23,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/DsLogAdminC.h"
-#include "orbsvcs/Log/log_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "log_serv_export.h"
/**
* @class TAO_LogRecordStore
@@ -89,24 +87,15 @@ class TAO_Log_Serv_Export TAO_LogRecordStore
set_interval (const DsLogAdmin::TimeInterval& interval
ACE_ENV_ARG_DECL) = 0;
- /// Get the log full action
+ /// Gets the log full action
virtual DsLogAdmin::LogFullActionType
get_log_full_action (ACE_ENV_SINGLE_ARG_DECL) const = 0;
- /// Set the log full action
+ /// Sets the log full action
virtual void
set_log_full_action(DsLogAdmin::LogFullActionType action
ACE_ENV_ARG_DECL) = 0;
- /// Get the list of the QoS properties supported by the log.
- virtual DsLogAdmin::QoSList*
- get_log_qos (ACE_ENV_SINGLE_ARG_DECL) const = 0;
-
- /// Set the list of the QoS properties supported by the log.
- virtual void
- set_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL) = 0;
-
/// Gets the max record life
virtual CORBA::ULong
get_max_record_life (ACE_ENV_SINGLE_ARG_DECL) const = 0;
@@ -125,15 +114,6 @@ class TAO_Log_Serv_Export TAO_LogRecordStore
set_max_size (CORBA::ULongLong size
ACE_ENV_ARG_DECL) = 0;
- /// Get the weekly scheduling parameters
- virtual DsLogAdmin::WeekMask*
- get_week_mask (ACE_ENV_SINGLE_ARG_DECL) = 0;
-
- /// Set the weekly scheduling parameters.
- virtual void
- set_week_mask (const DsLogAdmin::WeekMask& masks
- ACE_ENV_ARG_DECL) = 0;
-
// = LogRecordStore status methods
@@ -229,9 +209,7 @@ class TAO_Log_Serv_Export TAO_LogRecordStore
virtual CORBA::ULong
remove_old_records (ACE_ENV_SINGLE_ARG_DECL) = 0;
- /// Read-Write Lock
- virtual ACE_SYNCH_RW_MUTEX& lock() = 0;
-
+
protected:
/// Constructor.
TAO_LogRecordStore (void);
@@ -240,7 +218,5 @@ protected:
private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_LOG_RECORD_STORE_H*/
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp
index c3e164fdf1b..2af2f073dfd 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.cpp
@@ -10,8 +10,6 @@ ACE_RCSID (Log,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LogRecordStore::TAO_LogRecordStore (CORBA::ULongLong max_size,
DsLogAdmin::LogId logid,
CORBA::ULong max_rec_list_len)
@@ -206,5 +204,3 @@ TAO_LogRecordStore::get_storage (void)
{
return rec_hash_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.h b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.h
index d87124c3df1..67519082f4e 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.h
+++ b/TAO/orbsvcs/orbsvcs/Log/LogRecordStore_persist.h
@@ -31,15 +31,13 @@
#include "ace/Containers.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/Null_Mutex.h"
-#include "orbsvcs/Log/log_serv_export.h"
-#include "orbsvcs/Log/PersistStore.h"
+#include "log_serv_export.h"
+#include "PersistStore.h"
#define PERSISTENT_LOG_FILE_NAME "LOG.DATA"
#define LOG_DEFAULT_MAX_REC_LIST_LEN 100
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LogRecordStore
*
@@ -154,7 +152,5 @@ class TAO_Log_Serv_Export TAO_LogRecordStore
char file_name_[256];
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_LOG_RECORD_STORE_PERSIST_H*/
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogStore.h b/TAO/orbsvcs/orbsvcs/Log/LogStore.h
index 78773abffb9..20e788e1769 100644
--- a/TAO/orbsvcs/orbsvcs/Log/LogStore.h
+++ b/TAO/orbsvcs/orbsvcs/Log/LogStore.h
@@ -23,9 +23,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/DsLogAdminC.h"
-#include "orbsvcs/Log/log_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "log_serv_export.h"
class TAO_LogRecordStore;
@@ -101,8 +99,6 @@ protected:
private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_LOGSTORE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp
index d153bbe2714..db312eca963 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.cpp
@@ -6,9 +6,6 @@ ACE_RCSID (Log,
Log_Compaction_Handler,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Log_Compaction_Handler::TAO_Log_Compaction_Handler (ACE_Reactor* reactor,
TAO_Log_i* log,
const ACE_Time_Value& interval)
@@ -62,5 +59,3 @@ TAO_Log_Compaction_Handler::handle_timeout (const ACE_Time_Value&,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h b/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h
index 3e51de61602..4294d8a68b9 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Compaction_Handler.h
@@ -12,23 +12,12 @@
#ifndef TAO_TLS_COMPACTION_HANDLER_H
#define TAO_TLS_COMPACTION_HANDLER_H
-#include "orbsvcs/Log/log_serv_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Event_Handler.h"
#include "ace/Time_Value.h"
+#include "log_serv_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// forward decls
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Log_i;
/// @class TAO_Log_Compaction_Handler
@@ -61,6 +50,4 @@ private:
const ACE_Time_Value interval_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_LOG_COMPACTION_HANDLER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp
index e741de09004..68687e3124e 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.cpp
@@ -1,12 +1,11 @@
-#include "orbsvcs/Log/Log_Constraint_Interpreter.h"
+#include "Log_Constraint_Interpreter.h"
-#include "orbsvcs/Log/Log_Constraint_Visitors.h"
+#include "Log_Constraint_Visitors.h"
ACE_RCSID (Log,
Log_Constraint_Interpreter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Log_Constraint_Interpreter::TAO_Log_Constraint_Interpreter (
const char *constraints
@@ -45,5 +44,3 @@ TAO_Log_Constraint_Interpreter::evaluate (
return retval;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h
index 18f754d8c79..7fd1a319398 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Interpreter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,9 +27,7 @@
#include "orbsvcs/ETCL/ETCL_Constraint.h"
#include "orbsvcs/DsLogAdminC.h"
-#include "orbsvcs/Log/log_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "log_serv_export.h"
class TAO_Log_Constraint_Visitor;
@@ -63,8 +61,5 @@ public:
/// the evaluator.
CORBA::Boolean evaluate (TAO_Log_Constraint_Visitor &evaluator);
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LOG_CONSTRAINT_INTERPRETER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp
index 9d8fe567d40..5ce626f3703 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/Log/Log_Constraint_Visitors.h"
+#include "Log_Constraint_Visitors.h"
#include "orbsvcs/ETCL/ETCL_Constraint.h"
#include "orbsvcs/ETCL/ETCL_y.h"
@@ -17,38 +17,67 @@ ACE_RCSID (Log,
Log_Constraint_Visitors,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Log_Constraint_Visitor::TAO_Log_Constraint_Visitor (const DsLogAdmin::LogRecord &rec)
- : property_lookup_ (property_lookup_size_)
+TAO_Log_Constraint_Visitor::TAO_Log_Constraint_Visitor (
+ DsLogAdmin::LogRecord &rec)
+ :rec_ (rec)
{
- CORBA::Any val_id;
+ ACE_CString name1 = (ACE_CString)"id";
+ ACE_CString name2 = (ACE_CString)"time";
+ ACE_CString name3 = (ACE_CString)"info";
+
+ CORBA::Any* value;
+ ACE_NEW (value, CORBA::Any);
+
#if defined (ACE_LACKS_LONGLONG_T) || defined (ACE_LACKS_UNSIGNEDLONGLONG_T)
- val_id <<= ACE_U64_TO_U32 (rec.id);
+ *value <<= ACE_U64_TO_U32 (this->rec_.id);
#else
- val_id <<= static_cast<ACE_UINT32> (rec.id);
+ *value <<= static_cast<ACE_UINT32> ((this->rec_.id));
#endif
- this->property_lookup_.bind (ACE_CString("id", 0, 0), val_id);
+ if (value != 0)
+ {
+ // @@ Where's the error check?
+ this->property_lookup_.bind (name1, value);
+ }
+ CORBA::Any* value2;
+ ACE_NEW (value2, CORBA::Any);
- CORBA::Any val_time;
#if defined (ACE_LACKS_LONGLONG_T) || defined (ACE_LACKS_UNSIGNEDLONGLONG_T)
- val_time <<= ACE_U64_TO_U32 (rec.time);
+ *value2 <<= ACE_U64_TO_U32 (this->rec_.time);
#else
- val_time <<= static_cast<ACE_UINT32> (rec.time);
+ *value2 <<= static_cast<ACE_UINT32> ((this->rec_.time));
#endif
- this->property_lookup_.bind (ACE_CString("time", 0, 0), val_time);
+ if (value2 != 0)
+ {
+ // @@ Where's the error check?
+ this->property_lookup_.bind (name2, value2);
+ }
+
+ CORBA::Any* value3;
+ ACE_NEW (value3, CORBA::Any);
- this->property_lookup_.bind (ACE_CString("info", 0, 0), rec.info);
+ *value3 = this->rec_.info;
+
+ if (value3 != 0)
+ {
+ // @@ Where's the error check?
+ this->property_lookup_.bind (name3, value3);
+ }
// Bind an entry for each item in the record's attribute list.
- CORBA::Long len = rec.attr_list.length();
+ CORBA::Long len = this->rec_.attr_list.length();
for (CORBA::Long i = 0; i < len; ++i)
{
- this->property_lookup_.bind (ACE_CString(rec.attr_list[i].name,
- 0,
- 0),
- rec.attr_list[i].value);
+ const char* name = this->rec_.attr_list[i].name;
+
+ CORBA::Any* value;
+ ACE_NEW(value, CORBA::Any);
+
+ if (value != 0)
+ {
+ *value = this->rec_.attr_list[i].value;
+ this->property_lookup_.bind (name, value);
+ }
}
}
@@ -90,15 +119,12 @@ TAO_Log_Constraint_Visitor::visit_identifier (TAO_ETCL_Identifier *ident)
const char *name = ident->value ();
ACE_CString key (name, 0, 0);
- CORBA::Any any;
+ CORBA::Any_var any;
if (this->property_lookup_.find (key, any) == 0)
{
- if (any.impl() != 0)
- {
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (&any));
- return_value = 0;
- }
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (any.ptr ()));
+ return_value = 0;
}
return return_value;
@@ -288,6 +314,8 @@ TAO_Log_Constraint_Visitor::visit_union_pos (
}
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
+
+ return 0;
}
int
@@ -382,6 +410,8 @@ TAO_Log_Constraint_Visitor::visit_component_pos (TAO_ETCL_Component_Pos *pos)
}
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
+
+ return 0;
}
int
@@ -398,29 +428,27 @@ TAO_Log_Constraint_Visitor::visit_component_assoc (
// basis, while keeping in mind that a clearer interpretation of
// the spec may come along someday.
- CORBA::Any any;
- ACE_CString key (assoc->identifier ()->value (),
- 0,
- 0);
+ const char *name = assoc->identifier ()->value ();
+ ACE_CString key (name, 0, 0);
+ CORBA::Any_var any;
- if (this->property_lookup_.find (key, any) != 0
- || any.impl () == 0)
+ if (this->property_lookup_.find (key, any) != 0)
{
return -1;
}
TAO_ETCL_Constraint *comp = assoc->component ();
- CORBA::Any *any_ptr = 0;
if (comp == 0)
{
- TAO_ETCL_Literal_Constraint result (&any);
+ TAO_ETCL_Literal_Constraint result (any.ptr ());
this->queue_.enqueue_head (result);
return 0;
}
+ CORBA::Any *any_ptr = 0;
ACE_NEW_RETURN (any_ptr,
- CORBA::Any (any),
+ CORBA::Any (any.in ()),
-1);
this->current_member_ = any_ptr;
return comp->accept (this);
@@ -519,6 +547,8 @@ TAO_Log_Constraint_Visitor::visit_component_array (
}
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
+
+ return 0;
}
int
@@ -592,6 +622,8 @@ TAO_Log_Constraint_Visitor::visit_special (TAO_ETCL_Special *special)
}
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
+
+ return 0;
}
int
@@ -688,6 +720,8 @@ TAO_Log_Constraint_Visitor::visit_default (TAO_ETCL_Default *def)
}
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
+
+ return 0;
}
int
@@ -1283,6 +1317,8 @@ TAO_Log_Constraint_Visitor::union_does_contain (
}
ACE_ENDTRY;
ACE_CHECK_RETURN (0);
+
+ return 0;
}
CORBA::Boolean
@@ -1341,7 +1377,3 @@ TAO_Log_Constraint_Visitor::simple_type_match (int expr_type,
return 0;
}
}
-
-const size_t TAO_Log_Constraint_Visitor::property_lookup_size_ = 31;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h
index f9067132c3b..06a6549aff3 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Constraint_Visitors.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,11 +27,8 @@
#include "orbsvcs/ETCL/ETCL_Constraint_Visitor.h"
#include "orbsvcs/DsLogAdminC.h"
-#include "ace/Null_Mutex.h"
-#include "orbsvcs/Log/log_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "log_serv_export.h"
class TAO_ETCL_Constraint;
class TAO_ETCL_Literal_Constraint;
@@ -48,7 +45,7 @@ class TAO_Log_Serv_Export TAO_Log_Constraint_Visitor :
public:
/// Constructor.
- TAO_Log_Constraint_Visitor (const DsLogAdmin::LogRecord &rec);
+ TAO_Log_Constraint_Visitor (DsLogAdmin::LogRecord &rec);
/**
* Returns 1 if the offer satisfies the constraint
@@ -103,13 +100,10 @@ private:
CORBA::TCKind tc_kind);
private:
- /// Size of property_lookup_ hash map.
- /// TODO: define inline once VC6 support is deprecated.
- static const size_t property_lookup_size_;
typedef ACE_Hash_Map_Manager <ACE_CString,
- CORBA::Any,
- ACE_Null_Mutex> HASH_MAP;
+ CORBA::Any_var,
+ TAO_SYNCH_MUTEX> HASH_MAP;
typedef HASH_MAP::ENTRY HASH_ENTRY;
@@ -122,9 +116,10 @@ private:
/// Holder for a value found in property_lookup_ or for a
/// nested type within that value.
CORBA::Any_var current_member_;
-};
-TAO_END_VERSIONED_NAMESPACE_DECL
+ /// Local LogRecord.
+ DsLogAdmin::LogRecord &rec_;
+};
#include /**/ "ace/post.h"
#endif /* TAO_LOG_CONSTRAINT_VISITORS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp
index 122d35c486c..38d31de5774 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.cpp
@@ -5,8 +5,6 @@ ACE_RCSID (Log,
Log_Flush_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Log_Flush_Handler::TAO_Log_Flush_Handler (ACE_Reactor* reactor,
TAO_Log_i* log,
const ACE_Time_Value& interval)
@@ -55,5 +53,3 @@ TAO_Log_Flush_Handler::handle_timeout (const ACE_Time_Value&, const void *)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.h b/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.h
index f61d40ad999..c659fde95ae 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Flush_Handler.h
@@ -12,23 +12,12 @@
#ifndef TAO_TLS_FLUSH_HANDLER_H
#define TAO_TLS_FLUSH_HANDLER_H
-#include "orbsvcs/Log/log_serv_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Event_Handler.h"
#include "ace/Time_Value.h"
+#include "log_serv_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// forward decls
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Log_i;
/// @class TAO_Log_Flush_Handler
@@ -61,6 +50,4 @@ private:
ACE_Time_Value interval_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_LOG_FLUSH_HANDLER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h b/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h
index 3e16a89a70d..796c12663ef 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_Persistence_Strategy.h
@@ -17,17 +17,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
#include "ace/Service_Object.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogStore;
class TAO_LogMgr_i;
@@ -54,8 +51,6 @@ public:
private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_PERSISTENCE_STRATEGY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp
index 207cae2e7e2..5f4dfbce233 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_i.cpp
@@ -12,8 +12,6 @@ ACE_RCSID (Log,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Log Compaction Interval
const ACE_Time_Value
TAO_Log_i::log_compaction_interval_ = ACE_Time_Value(60);
@@ -28,79 +26,44 @@ TAO_Log_i::TAO_Log_i (CORBA::ORB_ptr orb,
DsLogAdmin::LogMgr_ptr factory,
DsLogAdmin::LogId logid,
TAO_LogNotification *log_notifier)
- : logmgr_i_(logmgr_i),
- factory_ (DsLogAdmin::LogMgr::_duplicate (factory)),
+ : factory_ (DsLogAdmin::LogMgr::_duplicate (factory)),
logid_ (logid),
op_state_ (DsLogAdmin::disabled),
reactor_ (orb->orb_core()->reactor()),
- notifier_ (log_notifier),
- log_compaction_handler_ (reactor_, this, log_compaction_interval_),
- log_flush_handler_ (reactor_, this, log_flush_interval_)
+ log_compaction_handler_(reactor_, this, log_compaction_interval_),
+ log_flush_handler_(reactor_, this, log_flush_interval_)
{
+ ACE_DECLARE_NEW_CORBA_ENV;
+
+ recordstore_ = logmgr_i.get_log_record_store (logid
+ ACE_ENV_ARG_PARAMETER);
+
// TODO: get log parameters from (persistent?) store.
avail_status_.off_duty = 0;
avail_status_.log_full = 0;
+ this->notifier_ = log_notifier;
+ this->current_threshold_ = 0;
+ this->thresholds_.length(1);
+ this->thresholds_[0] = 100;
+ this->qostype_ = DsLogAdmin::QoSNone;
}
void
TAO_Log_i::init (ACE_ENV_SINGLE_ARG_DECL)
{
-#if 0
- // @@ Calling create_log_reference () here leads to an infinate loop.
- // When this is fixed, this can be enabled.
- this->log_ =
- logmgr_i_.create_log_reference (this->logid_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-#endif
-
- this->recordstore_ =
- logmgr_i_.get_log_record_store (this->logid_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->recordstore_->open () ==-1)
+ if (recordstore_->open () ==-1)
ACE_THROW (CORBA::UNKNOWN ());
- // fetch the capacity alarm thresholds from the log record store
- DsLogAdmin::CapacityAlarmThresholdList_var thresholds =
- this->recordstore_->get_capacity_alarm_thresholds (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // initialize the internal representation
- this->thresholds_ = thresholds.in ();
- this->reset_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
-
- // fetch the log QoS from the log record store
- DsLogAdmin::QoSList_var qos =
- this->recordstore_->get_log_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // initialize the internal representation.
- this->reset_log_qos (qos.in ());
-
-
- // fetch the week mask from the log record store
- DsLogAdmin::WeekMask_var week_mask =
- this->recordstore_->get_week_mask (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // initialize the internal representation
- this->reset_week_mask (week_mask.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
-
- // fetch the maximum record life from the log record store
- CORBA::ULong max_record_life =
- this->recordstore_->get_max_record_life (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // if set, activate the compaction handler
- if (max_record_life != 0)
+ if (this->recordstore_->get_max_record_life (ACE_ENV_SINGLE_ARG_PARAMETER) != 0)
{
this->log_compaction_handler_.schedule ();
}
+ if (this->qostype_ == DsLogAdmin::QoSFlush)
+ {
+ this->log_flush_handler_.schedule ();
+ }
+
this->op_state_ = DsLogAdmin::enabled;
}
@@ -127,12 +90,6 @@ DsLogAdmin::QoSList*
TAO_Log_i::get_log_qos (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
// @@ The current revision of the specification (formal/03-07-01)
// states that get_log_qos() returns a list of the QoS properties
// supported by the log, not the current value. However, because
@@ -141,7 +98,17 @@ TAO_Log_i::get_log_qos (ACE_ENV_SINGLE_ARG_DECL)
// have submitted a defect report to the OMG for clarification.
// --jtc
- return this->recordstore_->get_log_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
+ DsLogAdmin::QoSList* ret_ptr;
+ ACE_NEW_THROW_EX (ret_ptr,
+ DsLogAdmin::QoSList (1),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN (0);
+
+ DsLogAdmin::QoSList_var ret_val = ret_ptr;
+ ret_val->length(1);
+ ret_val[0] = qostype_;
+
+ return ret_val._retn ();
}
void
@@ -150,12 +117,6 @@ TAO_Log_i::set_log_qos (const DsLogAdmin::QoSList &qos
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::UnsupportedQoS))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
// @@ The current revision of the specification (formal/03-07-01)
// does not clearly define the semantics to follow when the QoSList
// contains mutually exclusive, unsupported, or unknown properties.
@@ -166,44 +127,71 @@ TAO_Log_i::set_log_qos (const DsLogAdmin::QoSList &qos
// were found, an UnsupportedQoS exception is thrown.
// --jtc
- validate_log_qos (qos);
+ DsLogAdmin::QoSType old_qos = this->qostype_;
+ DsLogAdmin::QoSType qostype = old_qos;
+ DsLogAdmin::QoSList denied;
- DsLogAdmin::QoSList_var old_qos =
- this->recordstore_->get_log_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ // validate properties..
+ for (CORBA::ULong i = 0; i < qos.length (); ++i)
+ {
+ qostype = qos[i];
+ if (qostype != DsLogAdmin::QoSNone &&
+ qostype != DsLogAdmin::QoSFlush &&
+ qostype != DsLogAdmin::QoSReliability)
+ {
+ CORBA::ULong len = denied.length();
+ denied.length(len + 1);
+ denied[len] = qostype;
+ }
+ }
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
- if (qos == old_qos.in ())
+ // if there were any unknown/unsupported properties, thrown an
+ // exception.
+ if (denied.length() != 0)
+ {
+ ACE_THROW (DsLogAdmin::UnsupportedQoS (denied));
+ }
+
+ if (qostype == old_qos)
return;
- this->recordstore_->set_log_qos (qos ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ this->qostype_ = qostype;
- reset_log_qos (qos);
+ if (this->qostype_ == DsLogAdmin::QoSFlush)
+ this->log_flush_handler_.schedule ();
+ else
+ this->log_flush_handler_.cancel ();
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+
+ DsLogAdmin::QoSList* old_qoslist_ptr;
+ ACE_NEW_THROW_EX (old_qoslist_ptr,
+ DsLogAdmin::QoSList (1),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK;
+
+ DsLogAdmin::QoSList_var old_qoslist = old_qoslist_ptr;
+ old_qoslist->length(1);
+ old_qoslist[0] = old_qos;
- notifier_->quality_of_service_value_change (this->log_.in (),
- this->logid_,
- old_qos.in (),
- qos
+ DsLogAdmin::QoSList* new_qoslist_ptr;
+ ACE_NEW_THROW_EX (new_qoslist_ptr,
+ DsLogAdmin::QoSList (1),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK;
+
+ DsLogAdmin::QoSList_var new_qoslist = new_qoslist_ptr;
+ new_qoslist->length(1);
+ new_qoslist[0] = qostype;
+
+ notifier_->quality_of_service_value_change (log.in (),
+ logid_,
+ old_qoslist.in (),
+ new_qoslist.in ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
@@ -213,12 +201,6 @@ CORBA::ULong
TAO_Log_i::get_max_record_life (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return
this->recordstore_->get_max_record_life(ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -228,28 +210,14 @@ TAO_Log_i::set_max_record_life (CORBA::ULong life
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
- CORBA::ULong old_life =
- this->recordstore_->get_max_record_life (ACE_ENV_SINGLE_ARG_PARAMETER);
+ CORBA::ULong old_life;
+ old_life = this->get_max_record_life (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
if (life == old_life)
return;
- this->recordstore_->set_max_record_life (life ACE_ENV_ARG_PARAMETER);
+ this->recordstore_->set_max_record_life(life ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
if (life != 0)
@@ -259,18 +227,12 @@ TAO_Log_i::set_max_record_life (CORBA::ULong life
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
- notifier_->max_record_life_value_change (this->log_.in (),
- this->logid_,
+ notifier_->max_record_life_value_change (log.in (),
+ logid_,
old_life,
life
ACE_ENV_ARG_PARAMETER);
@@ -282,12 +244,6 @@ CORBA::ULongLong
TAO_Log_i::get_max_size (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -297,90 +253,41 @@ TAO_Log_i::set_max_size (CORBA::ULongLong size
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidParam))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
- CORBA::ULongLong old_size =
- this->recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ // size == 0 => infinite size.
+ CORBA::ULongLong old_size;
+ old_size = this->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
- if (size == old_size)
- return;
-
- // size == 0 => infinite size.
- if (size != 0)
+ if ((size != 0) && (size <
+ this->recordstore_->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER)))
{
- CORBA::ULongLong current_size =
- this->recordstore_->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- if (size < current_size)
- ACE_THROW (DsLogAdmin::InvalidParam ());
+ ACE_THROW (DsLogAdmin::InvalidParam ());
}
-
- this->recordstore_->set_max_size (size ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (notifier_)
+ else
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- notifier_->max_log_size_value_change (this->log_.in (),
- this->logid_,
- old_size,
- size
- ACE_ENV_ARG_PARAMETER);
+ this->recordstore_->set_max_size (size ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- }
- // @@ The current revision of the specification (formal/03-07-01)
- // doesn't specify the interaction between set_max_size() and the
- // capacity alarm thresholds list. Publicly available documentation
- // I've read for other log service implementations doesn't offer any
- // guidance either. I have submitted a defect report to the OMG for
- // clarification.
- //
- // In the mean time, we will call reset_capacity_alarm_threshold()
- // to reset the "current_threshold_" index. This will result in
- // ThresholdAlarm being sent when the next threshold is crossed. An
- // argument could be made that an event should be be sent for each
- // threshold that has already been crossed. Hopefully, this will be
- // clarified when/if the OMG charters a RTF for the log service.
- // --jtc
- //
- this->reset_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ if (notifier_ && old_size != size)
+ {
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+
+ notifier_->max_log_size_value_change (log.in (),
+ logid_,
+ old_size,
+ size
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+ }
}
CORBA::ULongLong
TAO_Log_i::get_current_size (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return this->recordstore_->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -388,12 +295,6 @@ CORBA::ULongLong
TAO_Log_i::get_n_records (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return this->recordstore_->get_n_records (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -401,13 +302,8 @@ DsLogAdmin::LogFullActionType
TAO_Log_i::get_log_full_action (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
- return this->recordstore_->get_log_full_action(ACE_ENV_SINGLE_ARG_PARAMETER);
+ return
+ this->recordstore_->get_log_full_action(ACE_ENV_SINGLE_ARG_PARAMETER);
}
void
@@ -416,27 +312,13 @@ TAO_Log_i::set_log_full_action (DsLogAdmin::LogFullActionType action
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidLogFullAction))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
if (action != DsLogAdmin::wrap && action != DsLogAdmin::halt)
ACE_THROW (DsLogAdmin::InvalidLogFullAction ());
DsLogAdmin::LogFullActionType old_action =
- this->recordstore_->get_log_full_action (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_log_full_action (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
if (action == old_action)
return;
@@ -445,53 +327,23 @@ TAO_Log_i::set_log_full_action (DsLogAdmin::LogFullActionType action
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
- notifier_->log_full_action_value_change (this->log_.in (),
- this->logid_,
+ notifier_->log_full_action_value_change (log.in (),
+ logid_,
old_action,
action
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
- // @@ The current revision of the specification (formal/03-07-01)
- // doesn't specify the interaction between set_log_full_action() and the
- // capacity alarm thresholds list. Publicly available documentation
- // I've read for other log service implementations doesn't offer any
- // guidance either. I have submitted a defect report to the OMG for
- // clarification.
- //
- // In the mean time, we will call reset_capacity_alarm_threshold()
- // to reset the "current_threshold_" index. This will result in
- // ThresholdAlarm being sent when the next threshold is crossed. An
- // argument could be made that an event should be be sent for each
- // threshold that has already been crossed. Hopefully, this will be
- // clarified when/if the OMG charters a RTF for the log service.
- // --jtc
- //
- this->reset_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
DsLogAdmin::AdministrativeState
TAO_Log_i::get_administrative_state (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return this->recordstore_->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -500,24 +352,10 @@ TAO_Log_i::set_administrative_state (DsLogAdmin::AdministrativeState state
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
DsLogAdmin::AdministrativeState old_state =
- this->recordstore_->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
if (state == old_state)
return;
@@ -526,18 +364,12 @@ TAO_Log_i::set_administrative_state (DsLogAdmin::AdministrativeState state
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
- notifier_->administrative_state_change (this->log_.in (),
- this->logid_,
+ notifier_->administrative_state_change (log.in (),
+ logid_,
state
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -548,12 +380,6 @@ DsLogAdmin::ForwardingState
TAO_Log_i::get_forwarding_state (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return
this->recordstore_->get_forwarding_state (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -563,24 +389,10 @@ TAO_Log_i::set_forwarding_state (DsLogAdmin::ForwardingState state
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
DsLogAdmin::ForwardingState old_state =
- this->recordstore_->get_forwarding_state (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_forwarding_state (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
if (state == old_state)
return;
@@ -589,30 +401,22 @@ TAO_Log_i::set_forwarding_state (DsLogAdmin::ForwardingState state
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
- notifier_->forwarding_state_change (this->log_.in (),
- this->logid_,
+ notifier_->forwarding_state_change (log.in (),
+ logid_,
state
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- }
+ }
}
DsLogAdmin::OperationalState
TAO_Log_i::get_operational_state (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- // No locks are necessary, since op_state_ is set in ::init() and
- // never changed.
return this->op_state_;
}
@@ -620,12 +424,6 @@ DsLogAdmin::TimeInterval
TAO_Log_i::get_interval (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return this->recordstore_->get_interval (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -636,13 +434,7 @@ TAO_Log_i::set_interval (const DsLogAdmin::TimeInterval &interval
DsLogAdmin::InvalidTime,
DsLogAdmin::InvalidTimeInterval))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
- // validate interval
if (interval.start != 0)
{
if (interval.start >= interval.stop)
@@ -650,18 +442,11 @@ TAO_Log_i::set_interval (const DsLogAdmin::TimeInterval &interval
}
DsLogAdmin::TimeInterval old_interval =
- this->recordstore_->get_interval (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_interval (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
- if (interval == old_interval)
+ if (interval.start == old_interval.start &&
+ interval.stop == old_interval.stop)
return;
this->recordstore_->set_interval (interval ACE_ENV_ARG_PARAMETER);
@@ -669,20 +454,14 @@ TAO_Log_i::set_interval (const DsLogAdmin::TimeInterval &interval
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
if (interval.start != old_interval.start)
{
- notifier_->start_time_value_change (this->log_.in (),
- this->logid_,
+ notifier_->start_time_value_change (log.in (),
+ logid_,
old_interval.start,
interval.start
ACE_ENV_ARG_PARAMETER);
@@ -691,8 +470,8 @@ TAO_Log_i::set_interval (const DsLogAdmin::TimeInterval &interval
if (interval.stop != old_interval.stop)
{
- notifier_->stop_time_value_change (this->log_.in (),
- this->logid_,
+ notifier_->stop_time_value_change (log.in (),
+ logid_,
old_interval.stop,
interval.stop
ACE_ENV_ARG_PARAMETER);
@@ -705,19 +484,6 @@ DsLogAdmin::AvailabilityStatus
TAO_Log_i::get_availability_status (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
- return this->get_availability_status_i (ACE_ENV_SINGLE_ARG_PARAMETER);
-}
-
-DsLogAdmin::AvailabilityStatus
-TAO_Log_i::get_availability_status_i (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
// The log is considered "on duty" if all the following are true:
// * operational state is enabled
// * adminstrative state is unlocked
@@ -729,7 +495,7 @@ TAO_Log_i::get_availability_status_i (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK_RETURN (this->avail_status_);
DsLogAdmin::AdministrativeState admin_state =
- this->recordstore_->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (this->avail_status_);
if (this->op_state_ == DsLogAdmin::enabled
@@ -749,13 +515,13 @@ DsLogAdmin::CapacityAlarmThresholdList*
TAO_Log_i::get_capacity_alarm_thresholds (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
+ DsLogAdmin::CapacityAlarmThresholdList* ret_val;
+ ACE_NEW_THROW_EX (ret_val,
+ DsLogAdmin::CapacityAlarmThresholdList (this->thresholds_),
+ CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (0);
- return this->recordstore_->get_capacity_alarm_thresholds (ACE_ENV_SINGLE_ARG_PARAMETER);
+ return ret_val;
}
void
@@ -766,12 +532,6 @@ TAO_Log_i::set_capacity_alarm_thresholds (const
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidThreshold))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
const CORBA::Boolean validated =
TAO_Log_i::validate_capacity_alarm_thresholds (threshs
ACE_ENV_ARG_PARAMETER);
@@ -780,76 +540,37 @@ TAO_Log_i::set_capacity_alarm_thresholds (const
if (!validated)
ACE_THROW (DsLogAdmin::InvalidThreshold ());
- DsLogAdmin::CapacityAlarmThresholdList_var old_threshs =
- this->recordstore_->get_capacity_alarm_thresholds (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
- if (threshs == old_threshs.in ())
- return;
+ DsLogAdmin::CapacityAlarmThresholdList old_threshs;
+ old_threshs = thresholds_;
- this->recordstore_->set_capacity_alarm_thresholds (threshs
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ this->thresholds_ = threshs;
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
- notifier_->capacity_alarm_threshold_value_change (this->log_.in (),
- this->logid_,
- old_threshs.in (),
+ notifier_->capacity_alarm_threshold_value_change (log.in (),
+ logid_,
+ old_threshs,
threshs
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
- // @@ The current revision of the specification (formal/03-07-01)
- // doesn't completly describe the behavior of changing the capacity
- // alarm threshold list. Publicly available documentation I've read
- // for other log service implementations doesn't offer much guidance
- // either. I have submitted a defect report to the OMG for
- // clarification.
- //
- // In the mean time, we will call reset_capacity_alarm_threshold()
- // to reset the "current_threshold_" index. This will result in
- // ThresholdAlarm being sent when the next threshold is crossed. An
- // argument could be made that an event should be be sent for each
- // threshold that has already been crossed. Hopefully, this will be
- // clarified when/if the OMG charters a RTF for the log service.
- // --jtc
- //
- this->thresholds_ = threshs;
- this->reset_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
DsLogAdmin::WeekMask*
TAO_Log_i::get_week_mask (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
+ DsLogAdmin::WeekMask* ret_val;
+ ACE_NEW_THROW_EX (ret_val,
+ DsLogAdmin::WeekMask (this->weekmask_),
+ CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (0);
- return this->recordstore_->get_week_mask (ACE_ENV_SINGLE_ARG_PARAMETER);
+ return ret_val;
}
void
@@ -860,51 +581,86 @@ TAO_Log_i::set_week_mask (const DsLogAdmin::WeekMask &masks
DsLogAdmin::InvalidTimeInterval,
DsLogAdmin::InvalidMask))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
+ for (CORBA::ULong i = 0; i < masks.length (); ++i)
+ {
+ if (masks[i].days > (DsLogAdmin::Sunday +
+ DsLogAdmin::Monday +
+ DsLogAdmin::Tuesday +
+ DsLogAdmin::Wednesday +
+ DsLogAdmin::Thursday +
+ DsLogAdmin::Friday +
+ DsLogAdmin::Saturday)
+ )
+ ACE_THROW (DsLogAdmin::InvalidMask ());
- validate_week_mask (masks ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ for (CORBA::ULong j = 0; j < masks[i].intervals.length (); ++j)
+ {
+ if (masks[i].intervals[j].start.hour > 23 ||
+ masks[i].intervals[j].start.minute > 59 ||
+ masks[i].intervals[j].stop.hour > 23 ||
+ masks[i].intervals[j].stop.minute > 59)
+ ACE_THROW (DsLogAdmin::InvalidTime ());
- DsLogAdmin::WeekMask_var old_masks =
- this->recordstore_->get_week_mask (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ if (masks[i].intervals[j].stop.hour <
+ masks[i].intervals[j].start.hour)
+ ACE_THROW (DsLogAdmin::InvalidTimeInterval ());
- // @@ The current revision of the specification (formal/03-07-01) is
- // unclear whether an AttributeValueChange event should be sent if a
- // log attribute was changed (to a new value), or whether the events
- // should be sent unconditionally. I have submitted a defect report
- // to the OMG for clarification.
- //
- // In the mean time, we're interepreting it to mean that events are
- // only sent when the value has changed.
- if (masks == old_masks.in ())
- return;
+ if (masks[i].intervals[j].stop.hour ==
+ masks[i].intervals[j].start.hour &&
+ masks[i].intervals[j].stop.minute <=
+ masks[i].intervals[j].start.minute)
+ ACE_THROW (DsLogAdmin::InvalidTimeInterval ());
- this->recordstore_->set_week_mask (masks ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ }
+ }
- this->reset_week_mask (masks ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ DsLogAdmin::WeekMask old_masks;
+ old_masks = weekmask_;
+
+ DsLogAdmin::TimeInterval temp_interval;
+ CORBA::ULong count = 0;
+ weekly_intervals_.length (100);
+
+ // convert the weekmask into a sequence of time intervals.
+ for (CORBA::ULong k = 0; k < masks.length (); ++k)
+ {
+ for (CORBA::ULong j = 0; j < masks[k].intervals.length (); ++j)
+ {
+ for (int d = 0; d < 7; ++d)
+ {
+ if ( (1 << d) & masks[k].days)
+ {
+ temp_interval.start =
+ CORBA::ULongLong (
+ (d * 3600* 24) +
+ (masks[k].intervals[j].start.hour * 3600) +
+ (masks[k].intervals[j].start.minute * 60)) * 10000000;
+
+ temp_interval.stop =
+ CORBA::ULongLong (
+ (d * 3600* 24) +
+ (masks[k].intervals[j].stop.hour * 3600) +
+ (masks[k].intervals[j].stop.minute * 60)) * 10000000;
+
+ weekly_intervals_[count] = temp_interval;
+ ++count;
+ }
+ }
+ }
+ }
+ weekly_intervals_.length (count);
+
+ //TODO: SORT AND CLEAN
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
- notifier_->week_mask_value_change (this->log_.in (),
- this->logid_,
- old_masks.in (),
+ notifier_->week_mask_value_change (log.in (),
+ logid_,
+ old_masks,
masks
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -921,12 +677,6 @@ TAO_Log_i::query (const char *grammar,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return this->recordstore_->query (grammar,
constraint,
iter_out
@@ -941,12 +691,6 @@ TAO_Log_i::retrieve (DsLogAdmin::TimeT from_time,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
return this->recordstore_->retrieve (from_time,
how_many,
iter_out
@@ -962,12 +706,6 @@ TAO_Log_i::match (const char* grammar,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
CORBA::ULong count =
this->recordstore_->match (grammar,
constraint
@@ -986,12 +724,6 @@ TAO_Log_i::delete_records (const char *grammar,
DsLogAdmin::InvalidGrammar,
DsLogAdmin::InvalidConstraint))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
CORBA::ULong count =
this->recordstore_->delete_records (grammar,
constraint
@@ -1001,11 +733,11 @@ TAO_Log_i::delete_records (const char *grammar,
if (avail_status_.log_full && count > 0)
{
const CORBA::ULongLong current_size =
- this->recordstore_->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
const CORBA::ULongLong max_size =
- this->recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
if (current_size < max_size)
@@ -1026,12 +758,6 @@ TAO_Log_i::delete_records_by_id (const DsLogAdmin::RecordIdList &ids
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
CORBA::ULong count =
this->recordstore_->delete_records_by_id (ids ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -1039,11 +765,11 @@ TAO_Log_i::delete_records_by_id (const DsLogAdmin::RecordIdList &ids
if (avail_status_.log_full && count > 0)
{
const CORBA::ULongLong current_size =
- this->recordstore_->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
const CORBA::ULongLong max_size =
- this->recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
if (current_size < max_size)
@@ -1090,18 +816,12 @@ TAO_Log_i::write_recordlist (const DsLogAdmin::RecordList &reclist
DsLogAdmin::LogLocked,
DsLogAdmin::LogDisabled))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
DsLogAdmin::LogFullActionType log_full_action =
- this->recordstore_->get_log_full_action (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_log_full_action (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
DsLogAdmin::AdministrativeState admin_state =
- this->recordstore_->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_administrative_state (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
// @@ The current revision of the specification (formal/03-07-01)
@@ -1114,7 +834,7 @@ TAO_Log_i::write_recordlist (const DsLogAdmin::RecordList &reclist
// specific LogLocked and LogDisabled exceptions will be thrown.
DsLogAdmin::AvailabilityStatus avail_stat =
- this->get_availability_status_i (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_availability_status (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (avail_stat.log_full == 1
@@ -1191,12 +911,6 @@ TAO_Log_i::set_record_attribute (DsLogAdmin::RecordId id,
DsLogAdmin::InvalidRecordId,
DsLogAdmin::InvalidAttribute))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
// TODO: validate attributes here.
DsLogAdmin::LogRecord rec;
@@ -1223,12 +937,6 @@ TAO_Log_i::set_records_attribute (const char *grammar,
DsLogAdmin::InvalidConstraint,
DsLogAdmin::InvalidAttribute))
{
- ACE_WRITE_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK;
-
DsLogAdmin::Iterator_var iter_out;
DsLogAdmin::RecordList_var rec_list =
@@ -1280,12 +988,6 @@ TAO_Log_i::get_record_attribute (DsLogAdmin::RecordId id
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::InvalidRecordId))
{
- ACE_READ_GUARD_THROW_EX (ACE_SYNCH_RW_MUTEX,
- guard,
- this->recordstore_->lock (),
- CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
-
DsLogAdmin::LogRecord rec;
int retval = this->recordstore_->retrieve (id, rec ACE_ENV_ARG_PARAMETER);
@@ -1311,7 +1013,6 @@ TAO_Log_i::flush (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
DsLogAdmin::UnsupportedQoS))
{
- /// XXX locks?
this->recordstore_->flush (ACE_ENV_SINGLE_ARG_PARAMETER);
}
@@ -1320,7 +1021,7 @@ TAO_Log_i::scheduled (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
DsLogAdmin::TimeInterval interval =
- this->recordstore_->get_interval (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_interval (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
TimeBase::TimeT current_time;
@@ -1457,11 +1158,11 @@ TAO_Log_i::remove_old_records (ACE_ENV_SINGLE_ARG_DECL)
if (avail_status_.log_full && count > 0)
{
const CORBA::ULongLong current_size =
- this->recordstore_->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_current_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
const CORBA::ULongLong max_size =
- this->recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (current_size < max_size)
@@ -1479,7 +1180,7 @@ TAO_Log_i::check_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CORBA::ULongLong max_size =
- this->recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (max_size != 0 && this->thresholds_.length () > 0)
@@ -1501,18 +1202,12 @@ TAO_Log_i::check_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_DECL)
if (notifier_)
{
- // @@ Calling create_log_reference () in the ctor or in ::init()
- // leads to an infinate loop. This should be removed when that
- // is fixed.
- if (CORBA::is_nil (this->log_.in ()))
- {
- this->log_ = logmgr_i_.create_log_reference (this->logid_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
+ DsLogAdmin::Log_var log =
+ this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+
notifier_->threshold_alarm (
- this->log_.in (),
+ log.in (),
logid_,
this->thresholds_[this->current_threshold_],
percent,
@@ -1544,7 +1239,7 @@ TAO_Log_i::reset_capacity_alarm_threshold (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CORBA::ULongLong max_size =
- this->recordstore_->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->get_max_size (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
if (max_size != 0 && this->thresholds_.length() > 0)
@@ -1588,327 +1283,3 @@ TAO_Log_i::validate_capacity_alarm_thresholds (
return true;
}
-
-void
-TAO_Log_i::reset_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL_NOT_USED)
-{
- // @@ The current revision of the specification (formal/03-07-01)
- // does not clearly define the semantics to follow when the QoSList
- // contains mutually exclusive, unsupported, or unknown properties.
- // I have submitted a defect report to the OMG for clarification.
- //
- // In the mean time, the last property found in the QoSList takes
- // presidence.
- // --jtc
-
- DsLogAdmin::QoSType qostype = DsLogAdmin::QoSNone;
-
- for (CORBA::ULong i = 0; i < qos.length (); ++i)
- {
- qostype = qos[i];
- }
-
- this->qostype_ = qostype;
-
- if (this->qostype_ == DsLogAdmin::QoSFlush)
- this->log_flush_handler_.schedule ();
- else
- this->log_flush_handler_.cancel ();
-}
-
-void
-TAO_Log_i::validate_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((DsLogAdmin::UnsupportedQoS))
-{
- DsLogAdmin::QoSList denied;
-
- // validate properties..
- for (CORBA::ULong i = 0; i < qos.length (); ++i)
- {
- DsLogAdmin::QoSType qostype = qos[i];
- if (qostype != DsLogAdmin::QoSNone &&
- qostype != DsLogAdmin::QoSFlush &&
- qostype != DsLogAdmin::QoSReliability)
- {
- CORBA::ULong len = denied.length();
- denied.length(len + 1);
- denied[len] = qostype;
- }
- }
-
- // if there were any unknown/unsupported properties, thrown an
- // exception.
- if (denied.length() != 0)
- {
- ACE_THROW (DsLogAdmin::UnsupportedQoS (denied));
- }
-}
-
-void
-TAO_Log_i::reset_week_mask (const DsLogAdmin::WeekMask& masks
- ACE_ENV_ARG_DECL_NOT_USED)
-{
- CORBA::ULong count = 0;
- weekly_intervals_.length (100);
-
- // convert the weekmask into a sequence of time intervals.
- for (CORBA::ULong k = 0; k < masks.length (); ++k)
- {
- for (CORBA::ULong j = 0; j < masks[k].intervals.length (); ++j)
- {
- for (int d = 0; d < 7; ++d)
- {
- if ( (1 << d) & masks[k].days)
- {
- DsLogAdmin::TimeInterval temp_interval;
-
- temp_interval.start =
- CORBA::ULongLong (
- (d * 3600* 24) +
- (masks[k].intervals[j].start.hour * 3600) +
- (masks[k].intervals[j].start.minute * 60)) * 10000000;
-
- temp_interval.stop =
- CORBA::ULongLong (
- (d * 3600* 24) +
- (masks[k].intervals[j].stop.hour * 3600) +
- (masks[k].intervals[j].stop.minute * 60)) * 10000000;
-
- weekly_intervals_[count] = temp_interval;
- ++count;
- }
- }
- }
- }
- weekly_intervals_.length (count);
-
- //TODO: SORT AND CLEAN
-}
-
-void
-TAO_Log_i::validate_week_mask (const DsLogAdmin::WeekMask& masks
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((DsLogAdmin::InvalidTime,
- DsLogAdmin::InvalidTimeInterval,
- DsLogAdmin::InvalidMask))
-{
- for (CORBA::ULong i = 0; i < masks.length (); ++i)
- {
- if (masks[i].days > (DsLogAdmin::Sunday +
- DsLogAdmin::Monday +
- DsLogAdmin::Tuesday +
- DsLogAdmin::Wednesday +
- DsLogAdmin::Thursday +
- DsLogAdmin::Friday +
- DsLogAdmin::Saturday)
- )
- ACE_THROW (DsLogAdmin::InvalidMask ());
-
- for (CORBA::ULong j = 0; j < masks[i].intervals.length (); ++j)
- {
- if (masks[i].intervals[j].start.hour > 23 ||
- masks[i].intervals[j].start.minute > 59 ||
- masks[i].intervals[j].stop.hour > 23 ||
- masks[i].intervals[j].stop.minute > 59)
- ACE_THROW (DsLogAdmin::InvalidTime ());
-
- if (masks[i].intervals[j].stop.hour <
- masks[i].intervals[j].start.hour)
- ACE_THROW (DsLogAdmin::InvalidTimeInterval ());
-
- if (masks[i].intervals[j].stop.hour ==
- masks[i].intervals[j].start.hour &&
- masks[i].intervals[j].stop.minute <=
- masks[i].intervals[j].start.minute)
- ACE_THROW (DsLogAdmin::InvalidTimeInterval ());
- }
- }
-}
-
-
-bool
-operator==(const DsLogAdmin::CapacityAlarmThresholdList& rhs,
- const DsLogAdmin::CapacityAlarmThresholdList& lhs)
-{
- const CORBA::ULong length = rhs.length ();
-
- if (length != lhs.length ())
- {
- return false;
- }
-
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- if (rhs[i] != lhs[i])
- {
- return false;
- }
- }
-
- return true;
-}
-
-bool
-operator!=(const DsLogAdmin::CapacityAlarmThresholdList& rhs,
- const DsLogAdmin::CapacityAlarmThresholdList& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::IntervalsOfDay& rhs,
- const DsLogAdmin::IntervalsOfDay& lhs)
-{
- const CORBA::ULong length = rhs.length ();
-
- if (length != lhs.length ())
- {
- return false;
- }
-
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- if (rhs[i] != lhs[i])
- {
- return false;
- }
- }
-
- return true;
-}
-
-bool
-operator!=(const DsLogAdmin::IntervalsOfDay& rhs,
- const DsLogAdmin::IntervalsOfDay& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::QoSList& rhs,
- const DsLogAdmin::QoSList& lhs)
-{
- const CORBA::ULong length = rhs.length ();
-
- if (length != lhs.length ())
- {
- return false;
- }
-
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- if (rhs[i] != lhs[i])
- {
- return false;
- }
- }
-
- return true;
-}
-
-bool
-operator!=(const DsLogAdmin::QoSList& rhs,
- const DsLogAdmin::QoSList& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::Time24& rhs,
- const DsLogAdmin::Time24& lhs)
-{
- return (rhs.hour == lhs.hour &&
- rhs.minute == lhs.minute);
-}
-
-bool
-operator!=(const DsLogAdmin::Time24& rhs,
- const DsLogAdmin::Time24& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::Time24Interval& rhs,
- const DsLogAdmin::Time24Interval& lhs)
-{
- return (rhs.start == lhs.start &&
- rhs.stop == lhs.stop);
-}
-
-bool
-operator!=(const DsLogAdmin::Time24Interval& rhs,
- const DsLogAdmin::Time24Interval& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::TimeInterval& rhs,
- const DsLogAdmin::TimeInterval& lhs)
-{
- return (rhs.start == lhs.start &&
- rhs.stop == lhs.stop);
-}
-
-bool
-operator!=(const DsLogAdmin::TimeInterval& rhs,
- const DsLogAdmin::TimeInterval& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::WeekMaskItem& rhs,
- const DsLogAdmin::WeekMaskItem& lhs)
-{
- return (rhs.days == lhs.days &&
- rhs.intervals == lhs.intervals);
-}
-
-bool
-operator!=(const DsLogAdmin::WeekMaskItem& rhs,
- const DsLogAdmin::WeekMaskItem& lhs)
-{
- return !(lhs == rhs);
-}
-
-
-bool
-operator==(const DsLogAdmin::WeekMask& rhs,
- const DsLogAdmin::WeekMask& lhs)
-{
- const CORBA::ULong length = rhs.length ();
-
- if (length != lhs.length ())
- {
- return false;
- }
-
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- if (rhs[i] != lhs[i])
- {
- return false;
- }
- }
-
- return true;
-}
-
-bool
-operator!=(const DsLogAdmin::WeekMask& rhs,
- const DsLogAdmin::WeekMask& lhs)
-{
- return !(lhs == rhs);
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/Log_i.h b/TAO/orbsvcs/orbsvcs/Log/Log_i.h
index aab900a1e62..502199bab26 100644
--- a/TAO/orbsvcs/orbsvcs/Log/Log_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/Log_i.h
@@ -32,9 +32,7 @@
#include "orbsvcs/Log/LogRecordStore.h"
#include "orbsvcs/DsLogAdminS.h"
#include "ace/Reactor.h"
-#include "orbsvcs/Log/log_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "log_serv_export.h"
class TAO_LogMgr_i;
@@ -325,14 +323,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
protected:
- /// Get the availability status
- /// @note must be called with locks held
- DsLogAdmin::AvailabilityStatus
- get_availability_status_i (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
/// Tells if the Log is scheduled to run now.
- /// @note must be called with locks held
CORBA::Boolean scheduled (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -355,52 +346,18 @@ protected:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Reset Log QoS
- void reset_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL);
-
- /// Validate log QoS
- void validate_log_qos (const DsLogAdmin::QoSList& qos
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((DsLogAdmin::UnsupportedQoS));
-
- /// Reset Week Mask
- ///
- /// Used to initialize internal data structures that represent the
- /// week mask list when the log service starts, and to reinitialize
- /// them when they are changed.
- ///
- void reset_week_mask (const DsLogAdmin::WeekMask& masks
- ACE_ENV_ARG_DECL);
-
- /// Validate Week Mask
- ///
- /// Used to check whether week mask is valid. If not, throws an
- /// InvalidTime, InvalidTimeInterval, or InvalidMask exception.
- ///
- void validate_week_mask (const DsLogAdmin::WeekMask& masks
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((DsLogAdmin::InvalidTime,
- DsLogAdmin::InvalidTimeInterval,
- DsLogAdmin::InvalidMask));
-
protected:
- /// Reference to the LogMgr servant
- TAO_LogMgr_i& logmgr_i_;
-
- /// The log's object reference
- DsLogAdmin::Log_var log_;
- /// The log's factory's object reference
+ /// The factory of the log
DsLogAdmin::LogMgr_var factory_;
- /// The log's id
+ /// The id of the log
DsLogAdmin::LogId logid_;
- /// The log's operational state
+ /// The operational state of the log
DsLogAdmin::OperationalState op_state_;
- /// The log's availability status
+ /// The availability of the log
DsLogAdmin::AvailabilityStatus avail_status_;
/// The list of points at which the log should generate events
@@ -410,6 +367,9 @@ protected:
/// The next capacity alarm threshold.
CORBA::ULong current_threshold_;
+ /// The days of the week that the log should be operational
+ DsLogAdmin::WeekMask weekmask_;
+
/// A Sequence of the weekly intervals when the log is in operation.
TAO_Unbounded_Sequence<DsLogAdmin::TimeInterval> weekly_intervals_;
@@ -438,72 +398,6 @@ protected:
static const ACE_Time_Value log_flush_interval_;
};
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::CapacityAlarmThresholdList& rhs,
- const DsLogAdmin::CapacityAlarmThresholdList& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::CapacityAlarmThresholdList& rhs,
- const DsLogAdmin::CapacityAlarmThresholdList& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::IntervalsOfDay& rhs,
- const DsLogAdmin::IntervalsOfDay& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::IntervalsOfDay& rhs,
- const DsLogAdmin::IntervalsOfDay& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::QoSList& rhs,
- const DsLogAdmin::QoSList& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::QoSList& rhs,
- const DsLogAdmin::QoSList& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::Time24& rhs,
- const DsLogAdmin::Time24& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::Time24& rhs,
- const DsLogAdmin::Time24& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::Time24Interval& rhs,
- const DsLogAdmin::Time24Interval& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::Time24Interval& rhs,
- const DsLogAdmin::Time24Interval& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::TimeInterval& rhs,
- const DsLogAdmin::TimeInterval& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::TimeInterval& rhs,
- const DsLogAdmin::TimeInterval& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::WeekMaskItem& rhs,
- const DsLogAdmin::WeekMaskItem& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::WeekMaskItem& rhs,
- const DsLogAdmin::WeekMaskItem& lhs);
-
-bool TAO_Log_Serv_Export
-operator==(const DsLogAdmin::WeekMask& rhs,
- const DsLogAdmin::WeekMask& lhs);
-
-bool TAO_Log_Serv_Export
-operator!=(const DsLogAdmin::WeekMask& rhs,
- const DsLogAdmin::WeekMask& lhs);
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TLS_LOG_I_H */
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp
index 97f1a9803f1..45d006584a2 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.cpp
@@ -6,21 +6,19 @@ ACE_RCSID (Log,
NotifyLogConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_LogConsumer::TAO_Notify_LogConsumer (TAO_NotifyLog_i *log)
: log_ (log)
{
+ // No-Op.
}
TAO_Notify_LogConsumer::~TAO_Notify_LogConsumer (void)
{
+ // No-Op.
}
void
-TAO_Notify_LogConsumer::connect (
- CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin
- ACE_ENV_ARG_DECL)
+TAO_Notify_LogConsumer::connect (CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin ACE_ENV_ARG_DECL)
{
// Activate the consumer with the default_POA_
CosNotifyComm::PushConsumer_var objref =
@@ -139,6 +137,6 @@ TAO_Notify_LogConsumer::disconnect_push_consumer
CORBA::SystemException
))
{
+ // No-Op.
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.h b/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.h
index c464e91f8d4..7035fc44e3a 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogConsumer.h
@@ -27,15 +27,13 @@
#include "orbsvcs/DsNotifyLogAdminS.h"
#include "orbsvcs/Log/Log_i.h"
-#include "orbsvcs/Log/notifylog_serv_export.h"
+#include "notifylog_serv_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_NotifyLog_i;
class TAO_NotifyLogFactory_i;
@@ -107,8 +105,6 @@ protected:
TAO_NotifyLog_i *log_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp
index 32af058cd1c..a0156b4153b 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.cpp
@@ -7,10 +7,9 @@ ACE_RCSID (Log,
NotifyLogFactory_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_NotifyLogFactory_i::TAO_NotifyLogFactory_i (void)
{
+ // No-Op.
}
TAO_NotifyLogFactory_i::TAO_NotifyLogFactory_i (CosNotifyChannelAdmin::EventChannelFactory_ptr ecf)
@@ -458,5 +457,3 @@ TAO_NotifyLogFactory_i::remove_all_filters (ACE_ENV_SINGLE_ARG_DECL)
{
consumer_admin_->remove_all_filters (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h b/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h
index bbe8127c077..6d75d41f3bc 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogFactory_i.h
@@ -26,15 +26,13 @@
#include "orbsvcs/DsLogAdminS.h"
#include "orbsvcs/Log/LogMgr_i.h"
-#include "orbsvcs/Log/NotifyLog_i.h"
+#include "NotifyLog_i.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_NotifyLog_i;
class TAO_NotifyLogNotification;
@@ -271,8 +269,6 @@ protected:
CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp
index 1a3762a4d51..53434e73a9b 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.cpp
@@ -7,13 +7,8 @@ ACE_RCSID (Log,
NotifyLogNotification,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_NotifyLogNotification::TAO_NotifyLogNotification (
- CosNotifyChannelAdmin::EventChannel_ptr ec)
- : TAO_LogNotification (),
- event_channel_ (CosNotifyChannelAdmin::EventChannel::_duplicate (ec))
+TAO_NotifyLogNotification::TAO_NotifyLogNotification (CosNotifyChannelAdmin::EventChannel_ptr ec)
+: TAO_LogNotification (), event_channel_ (CosNotifyChannelAdmin::EventChannel::_duplicate (ec))
{
ACE_DECLARE_NEW_CORBA_ENV;
@@ -84,5 +79,3 @@ TAO_NotifyLogNotification::disconnect_push_supplier
this->proxy_consumer_->disconnect_push_consumer(ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.h b/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.h
index 00e86066473..ce9c7dcfc7e 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.h
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLogNotification.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -8,7 +8,10 @@
*
* Methods to enable log-generated events.
*
+ *
* @author D A Hanvey <d.hanvey@qub.ac.uk>
+ *
+ *
*/
//=============================================================================
@@ -27,15 +30,13 @@
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/Log/notifylog_serv_export.h"
+#include "notifylog_serv_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_NotifyLogNotification
*
@@ -98,8 +99,6 @@ private:
CosNotifyChannelAdmin::EventChannel_var event_channel_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp
index f89d8acf1c0..a515cac8e58 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.cpp
@@ -9,8 +9,6 @@ ACE_RCSID (Log,
#define CA_FILTER "threshold > 10"
#define TCL_GRAMMAR "TCL"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_NotifyLog_i::TAO_NotifyLog_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
TAO_LogMgr_i &logmgr_i,
@@ -189,12 +187,13 @@ TAO_NotifyLog_i::get_filter (ACE_ENV_SINGLE_ARG_DECL)
}
void
-TAO_NotifyLog_i::set_filter (CosNotifyFilter::Filter_ptr /* filter */
- ACE_ENV_ARG_DECL)
+TAO_NotifyLog_i::set_filter (CosNotifyFilter::Filter_ptr filter ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
+ ACE_UNUSED_ARG (filter);
+
ACE_THROW (CORBA::NO_IMPLEMENT ());
//TODO: need to add impl
@@ -325,25 +324,30 @@ TAO_NotifyLog_i::get_qos (ACE_ENV_SINGLE_ARG_DECL)
}
void
-TAO_NotifyLog_i::set_qos (const CosNotification::QoSProperties& /* qos */
- ACE_ENV_ARG_DECL)
+TAO_NotifyLog_i::set_qos (const CosNotification::QoSProperties& qos ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
CosNotification::UnsupportedQoS,
CORBA::SystemException
))
{
+ ACE_UNUSED_ARG (qos);
+
ACE_THROW (CORBA::NO_IMPLEMENT ());
//TODO: need to add later
}
void
-TAO_NotifyLog_i::validate_qos (
- const CosNotification::QoSProperties& /* required_qos */,
- CosNotification::NamedPropertyRangeSeq_out /* available_qos */
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CosNotification::UnsupportedQoS,
- CORBA::SystemException))
+TAO_NotifyLog_i::validate_qos (const CosNotification::QoSProperties& required_qos,
+ CosNotification::NamedPropertyRangeSeq_out available_qos ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((
+ CosNotification::UnsupportedQoS,
+ CORBA::SystemException
+ ))
{
+ ACE_UNUSED_ARG (required_qos);
+
+ ACE_UNUSED_ARG (available_qos);
+
ACE_THROW (CORBA::NO_IMPLEMENT ());
//TODO: need to add later
@@ -368,5 +372,3 @@ TAO_NotifyLog_i::for_suppliers (
{
return this->event_channel_->for_suppliers(ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.h b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.h
index ff1c8bb70f3..e75de7ef71e 100644
--- a/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/NotifyLog_i.h
@@ -29,15 +29,13 @@
#include "orbsvcs/Log/Log_i.h"
#include "orbsvcs/Log/NotifyLogConsumer.h"
-#include "orbsvcs/Log/notifylog_serv_export.h"
+#include "notifylog_serv_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_NotifyLog_i;
class TAO_NotifyLogFactory_i;
@@ -235,8 +233,6 @@ private:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/PersistStore.cpp b/TAO/orbsvcs/orbsvcs/Log/PersistStore.cpp
index cd4de8a0606..857d07740f2 100644
--- a/TAO/orbsvcs/orbsvcs/Log/PersistStore.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/PersistStore.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/Log/PersistStore.h"
+#include "PersistStore.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_sys_time.h"
@@ -11,8 +11,6 @@ ACE_RCSID (Log,
PersistStore,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PersistStore::TAO_PersistStore (CORBA::ULongLong max_size,
CORBA::ULong max_rec_list_len)
: maxid_ (0),
@@ -21,10 +19,12 @@ TAO_PersistStore::TAO_PersistStore (CORBA::ULongLong max_size,
num_records_ (0),
max_rec_list_len_ (max_rec_list_len)
{
+ // No-Op.
}
TAO_PersistStore::~TAO_PersistStore (void)
{
+ // No-Op.
}
int
@@ -225,5 +225,3 @@ TAO_PersistStore::get_percentage_full (void)
return static_cast<unsigned short> ((100U * this->current_size_ / this->max_size_));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/PersistStore.h b/TAO/orbsvcs/orbsvcs/Log/PersistStore.h
index 4b6a7e0fcc3..ef769afb0df 100644
--- a/TAO/orbsvcs/orbsvcs/Log/PersistStore.h
+++ b/TAO/orbsvcs/orbsvcs/Log/PersistStore.h
@@ -26,12 +26,10 @@
#include "orbsvcs/DsLogAdminC.h"
#include "ace/Mutex.h"
-#include "orbsvcs/Log/log_serv_export.h"
+#include "log_serv_export.h"
#define PERSIST_LOG_DEFAULT_MAX_REC_LIST_LEN 250
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
struct PersistentData
{
DsLogAdmin::RecordId id;
@@ -122,7 +120,5 @@ class TAO_Log_Serv_Export TAO_PersistStore
ACE_Mutex write_lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_PERSIST_STORE_H*/
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp
index 08a2cfd036e..018bc2388e4 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.cpp
@@ -17,15 +17,16 @@ ACE_RCSID (Log,
RTEventLogConsumer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Rtec_LogConsumer::TAO_Rtec_LogConsumer (TAO_RTEventLog_i *log)
- : log_ (log)
+: log_ (log)
{
+ // No-Op.
}
TAO_Rtec_LogConsumer::~TAO_Rtec_LogConsumer (void)
{
+ // No-Op.
}
void
@@ -61,8 +62,6 @@ void
TAO_Rtec_LogConsumer::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- this->supplier_proxy_->disconnect_push_supplier (
- ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->supplier_proxy_->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.h b/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.h
index 05fdb9d65f4..3e8f5ab382f 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogConsumer.h
@@ -9,6 +9,7 @@
* The RTEventLogConsumer connects to the RTEventLog and logs the events
* that are pushed to the RTEventLog.
*
+ *
* @author David A. Hanvey <d.hanvey@qub.ac.uk>
*/
//=============================================================================
@@ -30,16 +31,13 @@
#include "orbsvcs/Event/EC_Factory.h"
#include "orbsvcs/Event/EC_Defaults.h"
-#include "orbsvcs/Log/rteventlog_serv_export.h"
+#include "rteventlog_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_RTEventLog_i;
class TAO_RTEventLogFactory_i;
@@ -53,7 +51,7 @@ class TAO_RTEventLogFactory_i;
* Log when events are 'pushed' to the RTEventLog which is an
* EventChannel.
*/
-class TAO_RTEventLog_Serv_Export TAO_Rtec_LogConsumer :public virtual POA_RtecEventComm::PushConsumer
+class TAO_RTEventLog_Export TAO_Rtec_LogConsumer :public virtual POA_RtecEventComm::PushConsumer
{
public:
// = Initialization and Termination methods.
@@ -85,7 +83,6 @@ private:
TAO_RTEventLog_i *log_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp
index eb4a1c91e2b..fe2ef5b3dfb 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.cpp
@@ -21,15 +21,14 @@ ACE_RCSID (Log,
RTEventLogFactory_i,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RTEventLogFactory_i::TAO_RTEventLogFactory_i (void)
{
+ // No-Op.
}
TAO_RTEventLogFactory_i::~TAO_RTEventLogFactory_i()
{
+ // No-Op.
}
int
@@ -237,5 +236,3 @@ TAO_RTEventLogFactory_i::obtain_push_supplier (
{
return consumer_admin_->obtain_push_supplier();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h b/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h
index d416bd028ec..ac5fd564578 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogFactory_i.h
@@ -8,6 +8,7 @@
*
* Implements the Factory for NotifyLog Objects.
*
+ *
* @author David A. Hanvey <d.hanvey@qub.ac.uk>
*/
//=============================================================================
@@ -28,16 +29,14 @@
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/RtecSchedulerS.h"
-#include "orbsvcs/Log/RTEventLog_i.h"
-#include "orbsvcs/Log/rteventlog_serv_export.h"
+#include "RTEventLog_i.h"
+#include "rteventlog_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTEventLog_i;
class TAO_RTEventLogNotification;
@@ -46,7 +45,7 @@ class TAO_RTEventLogNotification;
*
* @brief The TAO_RTEventLogFactory is a factory that is used to create RTEventLogs which are event-aware.
*/
-class TAO_RTEventLog_Serv_Export TAO_RTEventLogFactory_i :
+class TAO_RTEventLog_Export TAO_RTEventLogFactory_i :
public POA_RTEventLogAdmin::EventLogFactory,
public TAO_LogMgr_i
{
@@ -131,8 +130,6 @@ protected:
RtecEventChannelAdmin::ConsumerAdmin_var consumer_admin_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp
index d3ceeb987e8..27bae02833b 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.cpp
@@ -22,12 +22,9 @@ ACE_RCSID (Log,
RTEventLogNotification,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_RTEventLogNotification::TAO_RTEventLogNotification (
- RtecEventChannelAdmin::EventChannel_ptr ec)
- : TAO_LogNotification (),
- event_channel_ (RtecEventChannelAdmin::EventChannel::_duplicate (ec))
+TAO_RTEventLogNotification::TAO_RTEventLogNotification (RtecEventChannelAdmin::EventChannel_ptr ec)
+: TAO_LogNotification (), event_channel_ (RtecEventChannelAdmin::EventChannel::_duplicate (ec))
{
ACE_DECLARE_NEW_CORBA_ENV;
@@ -87,4 +84,4 @@ TAO_RTEventLogNotification::send_notification (const CORBA::Any& any)
consumer_->push(event);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.h b/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.h
index 785efe87c79..5ba126799b0 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.h
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLogNotification.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -8,7 +8,10 @@
*
* Methods to enable log-generated events.
*
+ *
* @author D A Hanvey <d.hanvey@qub.ac.uk>
+ *
+ *
*/
//=============================================================================
@@ -30,21 +33,19 @@
#include "orbsvcs/Event/EC_ProxySupplier.h"
#include "orbsvcs/Event/EC_ProxyConsumer.h"
-#include "orbsvcs/Log/rteventlog_serv_export.h"
+#include "rteventlog_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RTEventLogNotification
*
* @brief Used to forward log generated events to a logging server.
*/
-class TAO_RTEventLog_Serv_Export TAO_RTEventLogNotification :
+class TAO_RTEventLog_Export TAO_RTEventLogNotification :
public TAO_LogNotification,
public POA_RtecEventComm::PushSupplier
{
@@ -83,8 +84,6 @@ private:
RtecEventChannelAdmin::ProxyPushConsumer_var consumer_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp b/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp
index d4ef5923221..2e1ecb377a2 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.cpp
@@ -17,7 +17,6 @@ ACE_RCSID (Log,
RTEventLog_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_RTEventLog_i::TAO_RTEventLog_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
@@ -145,8 +144,7 @@ TAO_RTEventLog_i::append_observer (
RtecEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR,
RtecEventChannelAdmin::EventChannel::CANT_APPEND_OBSERVER))
{
- return this->observer_strategy_->append_observer (observer
- ACE_ENV_ARG_PARAMETER);
+ return this->observer_strategy_->append_observer (observer ACE_ENV_ARG_PARAMETER);
}
void
@@ -160,5 +158,3 @@ TAO_RTEventLog_i::remove_observer (
{
this->observer_strategy_->remove_observer (handle ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.h b/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.h
index 7573fe87887..c52cadac6ca 100644
--- a/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.h
+++ b/TAO/orbsvcs/orbsvcs/Log/RTEventLog_i.h
@@ -31,15 +31,13 @@
#include "orbsvcs/Event/EC_Defaults.h"
#include "orbsvcs/Log/RTEventLogConsumer.h"
-#include "orbsvcs/Log/rteventlog_serv_export.h"
+#include "rteventlog_export.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LogMgr_i;
class TAO_RTEventLog_i;
class TAO_RTEventLogFactory_i;
@@ -52,7 +50,7 @@ class TAO_RTEventLogFactory_i;
* It is used to log events that pass through the EventChannel.
* The class supports the @c destroy> method to destroy the Log.
*/
-class TAO_RTEventLog_Serv_Export TAO_RTEventLog_i :
+class TAO_RTEventLog_Export TAO_RTEventLog_i :
public TAO_Log_i,
public POA_RTEventLogAdmin::EventLog
{
@@ -129,8 +127,6 @@ public:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Log/rteventlog_serv_export.h b/TAO/orbsvcs/orbsvcs/Log/rteventlog_serv_export.h
deleted file mode 100644
index c3791cd48ae..00000000000
--- a/TAO/orbsvcs/orbsvcs/Log/rteventlog_serv_export.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- C++ -*- $Id$ */
-// generate_export_file.pl,v 1.8 2001/03/04 09:16:29 nanbor Exp
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl
-// ------------------------------
-#ifndef TAO_RTEVENTLOG_SERV_EXPORT_H
-#define TAO_RTEVENTLOG_SERV_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (TAO_RTEVENTLOG_SERV_HAS_DLL)
-# define TAO_RTEVENTLOG_SERV_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && TAO_RTEVENTLOG_SERV_HAS_DLL */
-
-#if !defined (TAO_RTEVENTLOG_SERV_HAS_DLL)
-# define TAO_RTEVENTLOG_SERV_HAS_DLL 1
-#endif /* ! TAO_RTEVENTLOG_SERV_HAS_DLL */
-
-#if defined (TAO_RTEVENTLOG_SERV_HAS_DLL) && (TAO_RTEVENTLOG_SERV_HAS_DLL == 1)
-# if defined (TAO_RTEVENTLOG_SERV_BUILD_DLL)
-# define TAO_RTEventLog_Serv_Export ACE_Proper_Export_Flag
-# define TAO_RTEVENTLOG_SERV_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_RTEVENTLOG_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_RTEVENTLOG_SERV_BUILD_DLL */
-# define TAO_RTEventLog_Serv_Export ACE_Proper_Import_Flag
-# define TAO_RTEVENTLOG_SERV_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_RTEVENTLOG_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_RTEVENTLOG_SERV_BUILD_DLL */
-#else /* TAO_RTEVENTLOG_SERV_HAS_DLL == 1 */
-# define TAO_RTEventLog_Serv_Export
-# define TAO_RTEVENTLOG_SERV_SINGLETON_DECLARATION(T)
-# define TAO_RTEVENTLOG_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_RTEVENTLOG_SERV_HAS_DLL == 1 */
-
-#endif /* TAO_RTEVENTLOG_SERV_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/orbsvcs/orbsvcs/Log/rteventlog_skel_export.h b/TAO/orbsvcs/orbsvcs/Log/rteventlog_skel_export.h
deleted file mode 100644
index bd0276592f9..00000000000
--- a/TAO/orbsvcs/orbsvcs/Log/rteventlog_skel_export.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- C++ -*- $Id$ */
-// generate_export_file.pl,v 1.8 2001/03/04 09:16:29 nanbor Exp
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl
-// ------------------------------
-#ifndef TAO_RTEVENTLOG_SKEL_EXPORT_H
-#define TAO_RTEVENTLOG_SKEL_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (TAO_RTEVENTLOG_SKEL_HAS_DLL)
-# define TAO_RTEVENTLOG_SKEL_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && TAO_RTEVENTLOG_SKEL_HAS_DLL */
-
-#if !defined (TAO_RTEVENTLOG_SKEL_HAS_DLL)
-# define TAO_RTEVENTLOG_SKEL_HAS_DLL 1
-#endif /* ! TAO_RTEVENTLOG_SKEL_HAS_DLL */
-
-#if defined (TAO_RTEVENTLOG_SKEL_HAS_DLL) && (TAO_RTEVENTLOG_SKEL_HAS_DLL == 1)
-# if defined (TAO_RTEVENTLOG_SKEL_BUILD_DLL)
-# define TAO_RTEventLog_Skel_Export ACE_Proper_Export_Flag
-# define TAO_RTEVENTLOG_SKEL_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_RTEVENTLOG_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_RTEVENTLOG_SKEL_BUILD_DLL */
-# define TAO_RTEventLog_Skel_Export ACE_Proper_Import_Flag
-# define TAO_RTEVENTLOG_SKEL_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_RTEVENTLOG_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_RTEVENTLOG_SKEL_BUILD_DLL */
-#else /* TAO_RTEVENTLOG_SKEL_HAS_DLL == 1 */
-# define TAO_RTEventLog_Skel_Export
-# define TAO_RTEVENTLOG_SKEL_SINGLETON_DECLARATION(T)
-# define TAO_RTEVENTLOG_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_RTEVENTLOG_SKEL_HAS_DLL == 1 */
-
-#endif /* TAO_RTEVENTLOG_SKEL_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/orbsvcs/orbsvcs/Makefile.am b/TAO/orbsvcs/orbsvcs/Makefile.am
index 62c194f1eb1..ea296af397a 100644
--- a/TAO/orbsvcs/orbsvcs/Makefile.am
+++ b/TAO/orbsvcs/orbsvcs/Makefile.am
@@ -8,7 +8,7 @@
## MPC Command:
## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-includedir = @includedir@/orbsvcs
+includedir = @includedir@/orbsvcs/orbsvcs
pkgconfigdir = @libdir@/pkgconfig
ACE_BUILDDIR = $(top_builddir)/..
@@ -48,13 +48,10 @@ CLEANFILES = \
CosNamingC.cpp CosNamingC.h CosNamingC.inl CosNamingS.cpp CosNamingS.h CosNamingS.inl CosNamingS_T.cpp CosNamingS_T.h CosNamingS_T.inl: CosNaming-stamp
CosNaming-stamp: $(srcdir)/CosNaming.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Naming_Export -Wb,stub_export_include=orbsvcs/Naming/naming_export.h -Wb,skel_export_macro=TAO_Naming_Skel_Export -Wb,skel_export_include=orbsvcs/Naming/naming_skel_export.h $(srcdir)/CosNaming.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Naming_Export -Wb,stub_export_include=orbsvcs/Naming/naming_export.h -Wb,skel_export_macro=TAO_Naming_Skel_Export -Wb,skel_export_include=orbsvcs/Naming/naming_skel_export.h $(srcdir)/CosNaming.idl
@touch $@
-nobase_include_HEADERS = \
- CosNaming.idl
-
## Makefile.CosNaming.am
lib_LTLIBRARIES = libTAO_CosNaming.la
@@ -80,7 +77,7 @@ libTAO_CosNaming_la_LIBADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-nobase_include_HEADERS += \
+nobase_include_HEADERS = \
CosNamingC.h \
CosNamingC.inl \
Naming/Naming_Client.h \
@@ -100,7 +97,7 @@ EXTRA_DIST = \
TAO_CosNaming.pc.in
-## Makefile.CosProperty_IDL.am
+## Makefile.CosProperty.am
BUILT_SOURCES += \
CosPropertyC.cpp \
@@ -128,7 +125,7 @@ CLEANFILES += \
CosPropertyC.cpp CosPropertyC.h CosPropertyC.inl CosPropertyS.cpp CosPropertyS.h CosPropertyS.inl CosPropertyS_T.cpp CosPropertyS_T.h CosPropertyS_T.inl: CosProperty-stamp
CosProperty-stamp: $(srcdir)/CosProperty.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Property_Export -Wb,stub_export_include=orbsvcs/Property/property_export.h -Wb,skel_export_macro=TAO_Property_Skel_Export -Wb,skel_export_include=orbsvcs/Property/property_skel_export.h $(srcdir)/CosProperty.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Property_Export -Wb,export_include=orbsvcs/Property/property_export.h $(srcdir)/CosProperty.idl
@touch $@
BUILT_SOURCES += \
@@ -157,16 +154,9 @@ CLEANFILES += \
CosPropertyServiceC.cpp CosPropertyServiceC.h CosPropertyServiceC.inl CosPropertyServiceS.cpp CosPropertyServiceS.h CosPropertyServiceS.inl CosPropertyServiceS_T.cpp CosPropertyServiceS_T.h CosPropertyServiceS_T.inl: CosPropertyService-stamp
CosPropertyService-stamp: $(srcdir)/CosPropertyService.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Property_Export -Wb,stub_export_include=orbsvcs/Property/property_export.h -Wb,skel_export_macro=TAO_Property_Skel_Export -Wb,skel_export_include=orbsvcs/Property/property_skel_export.h $(srcdir)/CosPropertyService.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Property_Export -Wb,export_include=orbsvcs/Property/property_export.h $(srcdir)/CosPropertyService.idl
@touch $@
-
-nobase_include_HEADERS += \
- CosProperty.idl \
- CosPropertyService.idl
-
-## Makefile.CosProperty.am
-
lib_LTLIBRARIES += libTAO_CosProperty.la
libTAO_CosProperty_la_CPPFLAGS = \
@@ -180,137 +170,56 @@ libTAO_CosProperty_la_CPPFLAGS = \
libTAO_CosProperty_la_SOURCES = \
CosPropertyC.cpp \
- CosPropertyServiceC.cpp
+ CosPropertyS.cpp \
+ CosPropertyServiceC.cpp \
+ CosPropertyServiceS.cpp \
+ Property/CosPropertyService_i.cpp
libTAO_CosProperty_la_LDFLAGS = \
-version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
libTAO_CosProperty_la_LIBADD = \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
nobase_include_HEADERS += \
+ CosProperty.idl \
CosPropertyC.h \
CosPropertyC.inl \
- CosPropertyServiceC.h \
- CosPropertyServiceC.inl \
- Property/property_export.h
-
-pkgconfig_DATA += \
- TAO_CosProperty.pc
-
-CLEANFILES += \
- TAO_CosProperty.pc
-
-TAO_CosProperty.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosProperty.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosProperty.pc.in
-
-EXTRA_DIST += \
- TAO_CosProperty.pc.in
-
-
-## Makefile.CosProperty_Skel.am
-
-lib_LTLIBRARIES += libTAO_CosProperty_Skel.la
-
-libTAO_CosProperty_Skel_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_PROPERTY_SKEL_BUILD_DLL
-
-libTAO_CosProperty_Skel_la_SOURCES = \
- CosPropertyS.cpp \
- CosPropertyServiceS.cpp
-
-libTAO_CosProperty_Skel_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_CosProperty_Skel_la_LIBADD = \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- libTAO_CosProperty.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
CosPropertyS.h \
CosPropertyS.inl \
CosPropertyS_T.cpp \
CosPropertyS_T.h \
CosPropertyS_T.inl \
+ CosPropertyService.idl \
+ CosPropertyServiceC.h \
+ CosPropertyServiceC.inl \
CosPropertyServiceS.h \
CosPropertyServiceS.inl \
CosPropertyServiceS_T.cpp \
CosPropertyServiceS_T.h \
CosPropertyServiceS_T.inl \
- Property/property_skel_export.h
-
-pkgconfig_DATA += \
- TAO_CosProperty_Skel.pc
-
-CLEANFILES += \
- TAO_CosProperty_Skel.pc
-
-TAO_CosProperty_Skel.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosProperty_Skel.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosProperty_Skel.pc.in
-
-EXTRA_DIST += \
- TAO_CosProperty_Skel.pc.in
-
-
-## Makefile.CosProperty_Serv.am
-
-lib_LTLIBRARIES += libTAO_CosProperty_Serv.la
-
-libTAO_CosProperty_Serv_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_PROPERTY_SERV_BUILD_DLL
-
-libTAO_CosProperty_Serv_la_SOURCES = \
- Property/CosPropertyService_i.cpp
-
-libTAO_CosProperty_Serv_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_CosProperty_Serv_la_LIBADD = \
- libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- libTAO_CosProperty.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
Property/CosPropertyService_i.h \
- Property/property_serv_export.h
+ Property/property_export.h
pkgconfig_DATA += \
- TAO_CosProperty_Serv.pc
+ TAO_CosProperty.pc
CLEANFILES += \
- TAO_CosProperty_Serv.pc
+ TAO_CosProperty.pc
-TAO_CosProperty_Serv.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosProperty_Serv.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosProperty_Serv.pc.in
+TAO_CosProperty.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosProperty.pc.in
+ ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosProperty.pc.in
EXTRA_DIST += \
- TAO_CosProperty_Serv.pc.in
+ CosProperty.rc \
+ TAO_CosProperty.pc.in
## Makefile.AV.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES += \
AVStreamsC.cpp \
AVStreamsC.h \
@@ -335,7 +244,7 @@ CLEANFILES += \
AVStreamsC.cpp AVStreamsC.h AVStreamsC.inl AVStreamsS.cpp AVStreamsS.h AVStreamsS.inl AVStreamsS_T.cpp AVStreamsS_T.inl: AVStreams-stamp
AVStreams-stamp: $(srcdir)/AVStreams.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h $(srcdir)/AVStreams.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h $(srcdir)/AVStreams.idl
@touch $@
BUILT_SOURCES += \
@@ -362,7 +271,7 @@ CLEANFILES += \
Null_MediaCtrlC.cpp Null_MediaCtrlC.h Null_MediaCtrlC.inl Null_MediaCtrlS.cpp Null_MediaCtrlS.h Null_MediaCtrlS.inl Null_MediaCtrlS_T.cpp Null_MediaCtrlS_T.inl: Null_MediaCtrl-stamp
Null_MediaCtrl-stamp: $(srcdir)/Null_MediaCtrl.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h $(srcdir)/Null_MediaCtrl.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h $(srcdir)/Null_MediaCtrl.idl
@touch $@
BUILT_SOURCES += \
@@ -389,7 +298,7 @@ CLEANFILES += \
sfpC.cpp sfpC.h sfpC.inl sfpS.cpp sfpS.h sfpS.inl sfpS_T.cpp sfpS_T.inl: sfp-stamp
sfp-stamp: $(srcdir)/sfp.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h $(srcdir)/sfp.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_AV_Export -Wb,export_include=orbsvcs/AV/AV_export.h $(srcdir)/sfp.idl
@touch $@
lib_LTLIBRARIES += libTAO_AV.la
@@ -437,10 +346,8 @@ libTAO_AV_la_LDFLAGS = \
libTAO_AV_la_LIBADD = \
libTAO_CosNaming.la \
- libTAO_CosProperty_Serv.la \
- libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
@@ -504,13 +411,11 @@ nobase_include_HEADERS += \
sfpS_T.inl \
sfpS_T.inl
-endif !BUILD_ACE_FOR_TAO
-
EXTRA_DIST += \
AV.rc
-## Makefile.CosConcurrency_IDL.am
+## Makefile.CosConcurrency.am
BUILT_SOURCES += \
CosConcurrencyControlC.cpp \
@@ -538,15 +443,9 @@ CLEANFILES += \
CosConcurrencyControlC.cpp CosConcurrencyControlC.h CosConcurrencyControlC.inl CosConcurrencyControlS.cpp CosConcurrencyControlS.h CosConcurrencyControlS.inl CosConcurrencyControlS_T.cpp CosConcurrencyControlS_T.h CosConcurrencyControlS_T.inl: CosConcurrencyControl-stamp
CosConcurrencyControl-stamp: $(srcdir)/CosConcurrencyControl.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Concurrency_Export -Wb,stub_export_include=orbsvcs/Concurrency/concurrency_export.h -Wb,skel_export_macro=TAO_Concurrency_Skel_Export -Wb,skel_export_include=orbsvcs/Concurrency/concurrency_skel_export.h $(srcdir)/CosConcurrencyControl.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Concurrency_Export -Wb,export_include=orbsvcs/Concurrency/concurrency_export.h $(srcdir)/CosConcurrencyControl.idl
@touch $@
-
-nobase_include_HEADERS += \
- CosConcurrencyControl.idl
-
-## Makefile.CosConcurrency.am
-
lib_LTLIBRARIES += libTAO_CosConcurrency.la
libTAO_CosConcurrency_la_CPPFLAGS = \
@@ -559,105 +458,19 @@ libTAO_CosConcurrency_la_CPPFLAGS = \
-DTAO_CONCURRENCY_BUILD_DLL
libTAO_CosConcurrency_la_SOURCES = \
- CosConcurrencyControlC.cpp
-
-libTAO_CosConcurrency_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_CosConcurrency_la_LIBADD = \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
- Concurrency/concurrency_export.h \
- CosConcurrencyControlC.h \
- CosConcurrencyControlC.inl
-
-pkgconfig_DATA += \
- TAO_CosConcurrency.pc
-
-CLEANFILES += \
- TAO_CosConcurrency.pc
-
-TAO_CosConcurrency.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosConcurrency.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosConcurrency.pc.in
-
-EXTRA_DIST += \
- TAO_CosConcurrency.pc.in
-
-
-## Makefile.CosConcurrency_Skel.am
-
-lib_LTLIBRARIES += libTAO_CosConcurrency_Skel.la
-
-libTAO_CosConcurrency_Skel_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_CONCURRENCY_SKEL_BUILD_DLL
-
-libTAO_CosConcurrency_Skel_la_SOURCES = \
- CosConcurrencyControlS.cpp
-
-libTAO_CosConcurrency_Skel_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_CosConcurrency_Skel_la_LIBADD = \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- libTAO_CosConcurrency.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
- Concurrency/concurrency_skel_export.h \
- CosConcurrencyControlS.h \
- CosConcurrencyControlS.inl
-
-pkgconfig_DATA += \
- TAO_CosConcurrency_Skel.pc
-
-CLEANFILES += \
- TAO_CosConcurrency_Skel.pc
-
-TAO_CosConcurrency_Skel.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosConcurrency_Skel.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosConcurrency_Skel.pc.in
-
-EXTRA_DIST += \
- TAO_CosConcurrency_Skel.pc.in
-
-
-## Makefile.CosConcurrency_Serv.am
-
-lib_LTLIBRARIES += libTAO_CosConcurrency_Serv.la
-
-libTAO_CosConcurrency_Serv_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_CONCURRENCY_SERV_BUILD_DLL
-
-libTAO_CosConcurrency_Serv_la_SOURCES = \
Concurrency/CC_Lock.cpp \
Concurrency/CC_LockSet.cpp \
Concurrency/CC_LockSetFactory.cpp \
Concurrency/Concurrency_Loader.cpp \
- Concurrency/Concurrency_Utils.cpp
+ Concurrency/Concurrency_Utils.cpp \
+ CosConcurrencyControlC.cpp \
+ CosConcurrencyControlS.cpp
-libTAO_CosConcurrency_Serv_la_LDFLAGS = \
+libTAO_CosConcurrency_la_LDFLAGS = \
-version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-libTAO_CosConcurrency_Serv_la_LIBADD = \
- libTAO_CosConcurrency_Skel.la \
+libTAO_CosConcurrency_la_LIBADD = \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- libTAO_CosConcurrency.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
@@ -668,19 +481,27 @@ nobase_include_HEADERS += \
Concurrency/CC_LockSetFactory.h \
Concurrency/Concurrency_Loader.h \
Concurrency/Concurrency_Utils.h \
- Concurrency/concurrency_serv_export.h
+ CosConcurrencyControl.idl \
+ CosConcurrencyControlC.h \
+ CosConcurrencyControlC.inl \
+ CosConcurrencyControlS.h \
+ CosConcurrencyControlS_T.cpp \
+ CosConcurrencyControlS_T.h \
+ CosConcurrencyControlS_T.inl \
+ CosConcurrencyControlS_T.inl
pkgconfig_DATA += \
- TAO_CosConcurrency_Serv.pc
+ TAO_CosConcurrency.pc
CLEANFILES += \
- TAO_CosConcurrency_Serv.pc
+ TAO_CosConcurrency.pc
-TAO_CosConcurrency_Serv.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosConcurrency_Serv.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosConcurrency_Serv.pc.in
+TAO_CosConcurrency.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosConcurrency.pc.in
+ ${top_builddir}/config.status --file $@:${srcdir}/TAO_CosConcurrency.pc.in
EXTRA_DIST += \
- TAO_CosConcurrency_Serv.pc.in
+ CosConcurrency.rc \
+ TAO_CosConcurrency.pc.in
## Makefile.CosEvent_IDL.am
@@ -771,7 +592,7 @@ CLEANFILES += \
CosEventCommC.cpp CosEventCommC.h CosEventCommC.inl CosEventCommS.cpp CosEventCommS.h CosEventCommS.inl CosEventCommS_T.cpp CosEventCommS_T.h CosEventCommS_T.inl: CosEventComm-stamp
CosEventComm-stamp: $(srcdir)/CosEventComm.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Event_Export -Wb,stub_export_include=orbsvcs/CosEvent/event_export.h -Wb,skel_export_macro=TAO_Event_Skel_Export -Wb,skel_export_include=orbsvcs/CosEvent/event_skel_export.h $(srcdir)/CosEventComm.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Event_Export -Wb,stub_export_include=orbsvcs/CosEvent/event_export.h -Wb,skel_export_macro=TAO_Event_Skel_Export -Wb,skel_export_include=orbsvcs/CosEvent/event_skel_export.h $(srcdir)/CosEventComm.idl
@touch $@
BUILT_SOURCES += \
@@ -800,16 +621,10 @@ CLEANFILES += \
CosEventChannelAdminC.cpp CosEventChannelAdminC.h CosEventChannelAdminC.inl CosEventChannelAdminS.cpp CosEventChannelAdminS.h CosEventChannelAdminS.inl CosEventChannelAdminS_T.cpp CosEventChannelAdminS_T.h CosEventChannelAdminS_T.inl: CosEventChannelAdmin-stamp
CosEventChannelAdmin-stamp: $(srcdir)/CosEventChannelAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Event_Export -Wb,stub_export_include=orbsvcs/CosEvent/event_export.h -Wb,skel_export_macro=TAO_Event_Skel_Export -Wb,skel_export_include=orbsvcs/CosEvent/event_skel_export.h $(srcdir)/CosEventChannelAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Event_Export -Wb,stub_export_include=orbsvcs/CosEvent/event_export.h -Wb,skel_export_macro=TAO_Event_Skel_Export -Wb,skel_export_include=orbsvcs/CosEvent/event_skel_export.h $(srcdir)/CosEventChannelAdmin.idl
@touch $@
-nobase_include_HEADERS += \
- CosEventChannelAdmin.idl \
- CosEventComm.idl \
- CosTypedEventChannelAdmin.idl \
- CosTypedEventComm.idl
-
endif !BUILD_MINIMUM_CORBA
## Makefile.CosEvent.am
@@ -895,7 +710,7 @@ CLEANFILES += \
TimeBaseC.cpp TimeBaseC.h TimeBaseC.inl TimeBaseS.cpp TimeBaseS.h TimeBaseS.inl TimeBaseS_T.cpp TimeBaseS_T.inl: TimeBase-stamp
TimeBase-stamp: $(srcdir)/TimeBase.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Svc_Utils_Export -Wb,export_include=orbsvcs/svc_utils_export.h $(srcdir)/TimeBase.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Svc_Utils_Export -Wb,export_include=orbsvcs/svc_utils_export.h $(srcdir)/TimeBase.idl
@touch $@
BUILT_SOURCES += \
@@ -922,7 +737,7 @@ CLEANFILES += \
RtecBaseC.cpp RtecBaseC.h RtecBaseC.inl RtecBaseS.cpp RtecBaseS.h RtecBaseS.inl RtecBaseS_T.cpp RtecBaseS_T.inl: RtecBase-stamp
RtecBase-stamp: $(srcdir)/RtecBase.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Svc_Utils_Export -Wb,export_include=orbsvcs/svc_utils_export.h $(srcdir)/RtecBase.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Svc_Utils_Export -Wb,export_include=orbsvcs/svc_utils_export.h $(srcdir)/RtecBase.idl
@touch $@
lib_LTLIBRARIES += libTAO_Svc_Utils.la
@@ -1127,7 +942,6 @@ nobase_include_HEADERS += \
CosEvent/CEC_ConsumerControl.h \
CosEvent/CEC_Default_Factory.h \
CosEvent/CEC_Default_Factory.i \
- CosEvent/CEC_Defaults.h \
CosEvent/CEC_Dispatching.h \
CosEvent/CEC_Dispatching_Task.h \
CosEvent/CEC_Dispatching_Task.i \
@@ -1165,8 +979,7 @@ nobase_include_HEADERS += \
CosEvent/CEC_TypedProxyPushConsumer.h \
CosEvent/CEC_TypedProxyPushConsumer.i \
CosEvent/CEC_TypedSupplierAdmin.h \
- CosEvent/CEC_TypedSupplierAdmin.i \
- CosEvent/event_serv_export.h
+ CosEvent/CEC_TypedSupplierAdmin.i
pkgconfig_DATA += \
TAO_CosEvent_Serv.pc
@@ -1213,7 +1026,7 @@ CLEANFILES += \
CosLifeCycleC.cpp CosLifeCycleC.h CosLifeCycleC.inl CosLifeCycleS.cpp CosLifeCycleS.h CosLifeCycleS.inl CosLifeCycleS_T.cpp CosLifeCycleS_T.h CosLifeCycleS_T.inl: CosLifeCycle-stamp
CosLifeCycle-stamp: $(srcdir)/CosLifeCycle.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_LifeCycle_Export -Wb,export_include=orbsvcs/LifeCycle/lifecycle_export.h $(srcdir)/CosLifeCycle.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_LifeCycle_Export -Wb,export_include=orbsvcs/LifeCycle/lifecycle_export.h $(srcdir)/CosLifeCycle.idl
@touch $@
BUILT_SOURCES += \
@@ -1242,7 +1055,7 @@ CLEANFILES += \
LifeCycleServiceC.cpp LifeCycleServiceC.h LifeCycleServiceC.inl LifeCycleServiceS.cpp LifeCycleServiceS.h LifeCycleServiceS.inl LifeCycleServiceS_T.cpp LifeCycleServiceS_T.h LifeCycleServiceS_T.inl: LifeCycleService-stamp
LifeCycleService-stamp: $(srcdir)/LifeCycleService.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_LifeCycle_Export -Wb,export_include=orbsvcs/LifeCycle/lifecycle_export.h $(srcdir)/LifeCycleService.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_LifeCycle_Export -Wb,export_include=orbsvcs/LifeCycle/lifecycle_export.h $(srcdir)/LifeCycleService.idl
@touch $@
lib_LTLIBRARIES += libTAO_CosLifeCycle.la
@@ -1333,7 +1146,7 @@ CLEANFILES += \
miopC.cpp miopC.h miopC.inl miopS.cpp miopS.h miopS.inl miopS_T.cpp miopS_T.inl: miop-stamp
miop-stamp: $(srcdir)/miop.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_PortableGroup_Export -Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h $(srcdir)/miop.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_PortableGroup_Export -Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h $(srcdir)/miop.idl
@touch $@
BUILT_SOURCES += \
@@ -1354,7 +1167,7 @@ CLEANFILES += \
PortableGroup_Simple_DSC.cpp PortableGroup_Simple_DSC.h PortableGroup_Simple_DSC.inl PortableGroup_Simple_DSS.inl PortableGroup_Simple_DSS_T.inl: PortableGroup_Simple_DS-stamp
PortableGroup_Simple_DS-stamp: $(srcdir)/PortableGroup_Simple_DS.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_PortableGroup_Export -Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h $(srcdir)/PortableGroup_Simple_DS.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_PortableGroup_Export -Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h $(srcdir)/PortableGroup_Simple_DS.idl
@touch $@
BUILT_SOURCES += \
@@ -1381,7 +1194,7 @@ CLEANFILES += \
PortableGroupC.cpp PortableGroupC.h PortableGroupC.inl PortableGroupS.cpp PortableGroupS.h PortableGroupS.inl PortableGroupS_T.cpp PortableGroupS_T.inl: PortableGroup-stamp
PortableGroup-stamp: $(srcdir)/PortableGroup.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_PortableGroup_Export -Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h -GC $(srcdir)/PortableGroup.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_PortableGroup_Export -Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h -GC $(srcdir)/PortableGroup.idl
@touch $@
lib_LTLIBRARIES += libTAO_PortableGroup.la
@@ -1400,14 +1213,18 @@ libTAO_PortableGroup_la_SOURCES = \
PortableGroup/MIOP.cpp \
PortableGroup/PG_Default_Property_Validator.cpp \
PortableGroup/PG_FactoryRegistry.cpp \
+ PortableGroup/PG_Factory_Map.cpp \
+ PortableGroup/PG_Factory_Set.cpp \
PortableGroup/PG_GenericFactory.cpp \
PortableGroup/PG_Group_Factory.cpp \
PortableGroup/PG_Group_Guard.cpp \
PortableGroup/PG_Location_Equal_To.cpp \
PortableGroup/PG_Location_Hash.cpp \
+ PortableGroup/PG_Location_Map.cpp \
PortableGroup/PG_MemberInfo.cpp \
PortableGroup/PG_Null_Property_Validator.cpp \
PortableGroup/PG_ObjectGroupManager.cpp \
+ PortableGroup/PG_ObjectGroup_Map.cpp \
PortableGroup/PG_Object_Adapter_Factory.cpp \
PortableGroup/PG_Object_Group.cpp \
PortableGroup/PG_Object_Group_Manipulator.cpp \
@@ -1460,6 +1277,8 @@ nobase_include_HEADERS += \
PortableGroup/MIOP.h \
PortableGroup/PG_Default_Property_Validator.h \
PortableGroup/PG_FactoryRegistry.h \
+ PortableGroup/PG_Factory_Map.h \
+ PortableGroup/PG_Factory_Set.h \
PortableGroup/PG_GenericFactory.h \
PortableGroup/PG_Group_Factory.h \
PortableGroup/PG_Group_Guard.h \
@@ -1467,9 +1286,11 @@ nobase_include_HEADERS += \
PortableGroup/PG_Location_Equal_To.inl \
PortableGroup/PG_Location_Hash.h \
PortableGroup/PG_Location_Hash.inl \
+ PortableGroup/PG_Location_Map.h \
PortableGroup/PG_MemberInfo.h \
PortableGroup/PG_Null_Property_Validator.h \
PortableGroup/PG_ObjectGroupManager.h \
+ PortableGroup/PG_ObjectGroup_Map.h \
PortableGroup/PG_Object_Adapter_Factory.h \
PortableGroup/PG_Object_Group.h \
PortableGroup/PG_Object_Group_Manipulator.h \
@@ -1564,7 +1385,7 @@ CLEANFILES += \
CosLoadBalancingC.cpp CosLoadBalancingC.h CosLoadBalancingC.inl CosLoadBalancingS.cpp CosLoadBalancingS.h CosLoadBalancingS.inl CosLoadBalancingS_T.cpp CosLoadBalancingS_T.h CosLoadBalancingS_T.inl: CosLoadBalancing-stamp
CosLoadBalancing-stamp: $(srcdir)/CosLoadBalancing.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -GC -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_LoadBalancing_Export -Wb,export_include=orbsvcs/LoadBalancing/LoadBalancing_export.h $(srcdir)/CosLoadBalancing.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -GC -Wb,export_macro=TAO_LoadBalancing_Export -Wb,export_include=orbsvcs/LoadBalancing/LoadBalancing_export.h $(srcdir)/CosLoadBalancing.idl
@touch $@
BUILT_SOURCES += \
@@ -1589,7 +1410,7 @@ CLEANFILES += \
LB_ORTC.cpp LB_ORTC.h LB_ORTC.inl LB_ORTS.h LB_ORTS.inl LB_ORTS_T.h LB_ORTS_T.inl: LB_ORT-stamp
LB_ORT-stamp: $(srcdir)/LB_ORT.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -GC -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_LoadBalancing_Export -Wb,export_include=orbsvcs/LoadBalancing/LoadBalancing_export.h $(srcdir)/LB_ORT.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -GC -Wb,export_macro=TAO_LoadBalancing_Export -Wb,export_include=orbsvcs/LoadBalancing/LoadBalancing_export.h $(srcdir)/LB_ORT.idl
@touch $@
lib_LTLIBRARIES += libTAO_CosLoadBalancing.la
@@ -1617,11 +1438,16 @@ libTAO_CosLoadBalancing_la_SOURCES = \
LoadBalancing/LB_LeastLoaded.cpp \
LoadBalancing/LB_LoadAlert.cpp \
LoadBalancing/LB_LoadAlertInfo.cpp \
+ LoadBalancing/LB_LoadAlertMap.cpp \
LoadBalancing/LB_LoadAlert_Handler.cpp \
LoadBalancing/LB_LoadAverage.cpp \
+ LoadBalancing/LB_LoadListMap.cpp \
LoadBalancing/LB_LoadManager.cpp \
+ LoadBalancing/LB_LoadMap.cpp \
LoadBalancing/LB_LoadMinimum.cpp \
+ LoadBalancing/LB_Location_Index_Map.cpp \
LoadBalancing/LB_MemberLocator.cpp \
+ LoadBalancing/LB_MonitorMap.cpp \
LoadBalancing/LB_ORBInitializer.cpp \
LoadBalancing/LB_ObjectReferenceFactory.cpp \
LoadBalancing/LB_Pull_Handler.cpp \
@@ -1675,13 +1501,18 @@ nobase_include_HEADERS += \
LoadBalancing/LB_LoadAlert.h \
LoadBalancing/LB_LoadAlert.inl \
LoadBalancing/LB_LoadAlertInfo.h \
+ LoadBalancing/LB_LoadAlertMap.h \
LoadBalancing/LB_LoadAlert_Handler.h \
LoadBalancing/LB_LoadAverage.h \
LoadBalancing/LB_LoadAverage.inl \
+ LoadBalancing/LB_LoadListMap.h \
LoadBalancing/LB_LoadManager.h \
+ LoadBalancing/LB_LoadMap.h \
LoadBalancing/LB_LoadMinimum.h \
LoadBalancing/LB_LoadMinimum.inl \
+ LoadBalancing/LB_Location_Index_Map.h \
LoadBalancing/LB_MemberLocator.h \
+ LoadBalancing/LB_MonitorMap.h \
LoadBalancing/LB_ORBInitializer.h \
LoadBalancing/LB_ObjectReferenceFactory.h \
LoadBalancing/LB_Pull_Handler.h \
@@ -1757,7 +1588,7 @@ EXTRA_DIST += \
## Makefile.CosNaming_Serv.am
-if !BUILD_ACE_FOR_TAO
+if BUILD_CORBA_MESSAGING
lib_LTLIBRARIES += libTAO_CosNaming_Serv.la
@@ -1829,7 +1660,7 @@ CLEANFILES += \
TAO_CosNaming_Serv.pc: ${top_builddir}/config.status ${srcdir}/TAO_CosNaming_Serv.pc.in
${top_builddir}/config.status --file $@:${srcdir}/TAO_CosNaming_Serv.pc.in
-endif !BUILD_ACE_FOR_TAO
+endif BUILD_CORBA_MESSAGING
EXTRA_DIST += \
CosNaming_Serv.rc \
@@ -1866,7 +1697,7 @@ CLEANFILES += \
CosNotificationC.cpp CosNotificationC.h CosNotificationC.inl CosNotificationS.cpp CosNotificationS.h CosNotificationS.inl CosNotificationS_T.cpp CosNotificationS_T.h CosNotificationS_T.inl: CosNotification-stamp
CosNotification-stamp: $(srcdir)/CosNotification.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotification.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotification.idl
@touch $@
BUILT_SOURCES += \
@@ -1895,7 +1726,7 @@ CLEANFILES += \
CosNotifyCommC.cpp CosNotifyCommC.h CosNotifyCommC.inl CosNotifyCommS.cpp CosNotifyCommS.h CosNotifyCommS.inl CosNotifyCommS_T.cpp CosNotifyCommS_T.h CosNotifyCommS_T.inl: CosNotifyComm-stamp
CosNotifyComm-stamp: $(srcdir)/CosNotifyComm.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotifyComm.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotifyComm.idl
@touch $@
BUILT_SOURCES += \
@@ -1924,7 +1755,7 @@ CLEANFILES += \
CosNotifyFilterC.cpp CosNotifyFilterC.h CosNotifyFilterC.inl CosNotifyFilterS.cpp CosNotifyFilterS.h CosNotifyFilterS.inl CosNotifyFilterS_T.cpp CosNotifyFilterS_T.h CosNotifyFilterS_T.inl: CosNotifyFilter-stamp
CosNotifyFilter-stamp: $(srcdir)/CosNotifyFilter.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotifyFilter.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotifyFilter.idl
@touch $@
BUILT_SOURCES += \
@@ -1953,7 +1784,7 @@ CLEANFILES += \
CosNotifyChannelAdminC.cpp CosNotifyChannelAdminC.h CosNotifyChannelAdminC.inl CosNotifyChannelAdminS.cpp CosNotifyChannelAdminS.h CosNotifyChannelAdminS.inl CosNotifyChannelAdminS_T.cpp CosNotifyChannelAdminS_T.h CosNotifyChannelAdminS_T.inl: CosNotifyChannelAdmin-stamp
CosNotifyChannelAdmin-stamp: $(srcdir)/CosNotifyChannelAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotifyChannelAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/CosNotifyChannelAdmin.idl
@touch $@
BUILT_SOURCES += \
@@ -1982,7 +1813,7 @@ CLEANFILES += \
NotifyExtC.cpp NotifyExtC.h NotifyExtC.inl NotifyExtS.cpp NotifyExtS.h NotifyExtS.inl NotifyExtS_T.cpp NotifyExtS_T.h NotifyExtS_T.inl: NotifyExt-stamp
NotifyExt-stamp: $(srcdir)/NotifyExt.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/NotifyExt.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/NotifyExt.idl
@touch $@
BUILT_SOURCES += \
@@ -2011,18 +1842,10 @@ CLEANFILES += \
Event_ForwarderC.cpp Event_ForwarderC.h Event_ForwarderC.inl Event_ForwarderS.cpp Event_ForwarderS.h Event_ForwarderS.inl Event_ForwarderS_T.cpp Event_ForwarderS_T.h Event_ForwarderS_T.inl: Event_Forwarder-stamp
Event_Forwarder-stamp: $(srcdir)/Event_Forwarder.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/Event_Forwarder.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Notify_Export -Wb,stub_export_include=orbsvcs/Notify/notify_export.h -Wb,skel_export_macro=TAO_Notify_Skel_Export -Wb,skel_export_include=orbsvcs/Notify/notify_skel_export.h $(srcdir)/Event_Forwarder.idl
@touch $@
-nobase_include_HEADERS += \
- CosNotification.idl \
- CosNotifyChannelAdmin.idl \
- CosNotifyComm.idl \
- CosNotifyFilter.idl \
- Event_Forwarder.idl \
- NotifyExt.idl
-
endif !BUILD_MINIMUM_CORBA
## Makefile.CosNotification.am
@@ -2120,6 +1943,7 @@ libTAO_ETCL_la_LIBADD = \
nobase_include_HEADERS += \
ETCL/ETCL_Constraint.h \
+ ETCL/ETCL_Constraint.i \
ETCL/ETCL_Constraint.inl \
ETCL/ETCL_Constraint_Visitor.h \
ETCL/ETCL_Interpreter.h \
@@ -2447,8 +2271,7 @@ nobase_include_HEADERS += \
Notify/Topology_Object.h \
Notify/Topology_Object.inl \
Notify/Topology_Saver.h \
- Notify/Worker_Task.h \
- Notify/notify_serv_export.h
+ Notify/Worker_Task.h
pkgconfig_DATA += \
TAO_CosNotification_Serv.pc
@@ -2469,7 +2292,6 @@ EXTRA_DIST += \
## Makefile.CosNotification_Persist.am
if BUILD_ACEXML
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
lib_LTLIBRARIES += libTAO_CosNotification_Persist.la
@@ -2512,11 +2334,9 @@ libTAO_CosNotification_Persist_la_LIBADD = \
nobase_include_HEADERS += \
Notify/XML_Loader.h \
Notify/XML_Saver.h \
- Notify/XML_Topology_Factory.h \
- Notify/notify_persist_export.h
+ Notify/XML_Topology_Factory.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_ACEXML
## Makefile.CosTime.am
@@ -2527,7 +2347,9 @@ BUILT_SOURCES += \
TimeServiceC.inl \
TimeServiceS.cpp \
TimeServiceS.h \
+ TimeServiceS.inl \
TimeServiceS_T.cpp \
+ TimeServiceS_T.h \
TimeServiceS_T.inl
CLEANFILES += \
@@ -2537,13 +2359,15 @@ CLEANFILES += \
TimeServiceC.inl \
TimeServiceS.cpp \
TimeServiceS.h \
+ TimeServiceS.inl \
TimeServiceS_T.cpp \
+ TimeServiceS_T.h \
TimeServiceS_T.inl
-TimeServiceC.cpp TimeServiceC.h TimeServiceC.inl TimeServiceS.cpp TimeServiceS.h TimeServiceS_T.cpp TimeServiceS_T.inl: TimeService-stamp
+TimeServiceC.cpp TimeServiceC.h TimeServiceC.inl TimeServiceS.cpp TimeServiceS.h TimeServiceS.inl TimeServiceS_T.cpp TimeServiceS_T.h TimeServiceS_T.inl: TimeService-stamp
TimeService-stamp: $(srcdir)/TimeService.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Time_Export -Wb,export_include=orbsvcs/Time/time_export.h $(srcdir)/TimeService.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Time_Export -Wb,export_include=orbsvcs/Time/time_export.h $(srcdir)/TimeService.idl
@touch $@
lib_LTLIBRARIES += libTAO_CosTime.la
@@ -2582,12 +2406,13 @@ nobase_include_HEADERS += \
Time/TAO_Time_Service_Server.h \
Time/TAO_UTO.h \
Time/Timer_Helper.h \
- Time/time_export.h \
TimeService.idl \
TimeServiceC.h \
TimeServiceC.inl \
TimeServiceS.h \
TimeServiceS_T.cpp \
+ TimeServiceS_T.h \
+ TimeServiceS_T.inl \
TimeServiceS_T.inl
pkgconfig_DATA += \
@@ -2632,7 +2457,7 @@ CLEANFILES += \
CosTradingC.cpp CosTradingC.h CosTradingC.inl CosTradingS.cpp CosTradingS.h CosTradingS.inl CosTradingS_T.cpp CosTradingS_T.h CosTradingS_T.inl: CosTrading-stamp
CosTrading-stamp: $(srcdir)/CosTrading.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h $(srcdir)/CosTrading.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h $(srcdir)/CosTrading.idl
@touch $@
BUILT_SOURCES += \
@@ -2661,7 +2486,7 @@ CLEANFILES += \
CosTradingReposC.cpp CosTradingReposC.h CosTradingReposC.inl CosTradingReposS.cpp CosTradingReposS.h CosTradingReposS.inl CosTradingReposS_T.cpp CosTradingReposS_T.h CosTradingReposS_T.inl: CosTradingRepos-stamp
CosTradingRepos-stamp: $(srcdir)/CosTradingRepos.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h $(srcdir)/CosTradingRepos.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h $(srcdir)/CosTradingRepos.idl
@touch $@
BUILT_SOURCES += \
@@ -2690,15 +2515,10 @@ CLEANFILES += \
CosTradingDynamicC.cpp CosTradingDynamicC.h CosTradingDynamicC.inl CosTradingDynamicS.cpp CosTradingDynamicS.h CosTradingDynamicS.inl CosTradingDynamicS_T.cpp CosTradingDynamicS_T.h CosTradingDynamicS_T.inl: CosTradingDynamic-stamp
CosTradingDynamic-stamp: $(srcdir)/CosTradingDynamic.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h $(srcdir)/CosTradingDynamic.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Trading_Export -Wb,stub_export_include=orbsvcs/Trader/trading_export.h -Wb,skel_export_macro=TAO_Trading_Skel_Export -Wb,skel_export_include=orbsvcs/Trader/trading_skel_export.h $(srcdir)/CosTradingDynamic.idl
@touch $@
-nobase_include_HEADERS += \
- CosTrading.idl \
- CosTradingDynamic.idl \
- CosTradingRepos.idl
-
## Makefile.CosTrading.am
lib_LTLIBRARIES += libTAO_CosTrading.la
@@ -2842,7 +2662,6 @@ libTAO_CosTrading_Serv_la_LDFLAGS = \
-version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
libTAO_CosTrading_Serv_la_LIBADD = \
- $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
@@ -2871,8 +2690,7 @@ nobase_include_HEADERS += \
Trader/Trader_Interfaces.h \
Trader/Trader_T.cpp \
Trader/Trader_Utils.h \
- Trader/Trading_Loader.h \
- Trader/trading_serv_export.h
+ Trader/Trading_Loader.h
pkgconfig_DATA += \
TAO_CosTrading_Serv.pc
@@ -2916,7 +2734,7 @@ CLEANFILES += \
DsLogAdminC.cpp DsLogAdminC.h DsLogAdminC.inl DsLogAdminS.cpp DsLogAdminS.h DsLogAdminS.inl DsLogAdminS_T.cpp DsLogAdminS_T.h DsLogAdminS_T.inl: DsLogAdmin-stamp
DsLogAdmin-stamp: $(srcdir)/DsLogAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Log_Export -Wb,stub_export_include=orbsvcs/Log/log_export.h -Wb,skel_export_macro=TAO_Log_Skel_Export -Wb,skel_export_include=orbsvcs/Log/log_skel_export.h $(srcdir)/DsLogAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Log_Export -Wb,stub_export_include=orbsvcs/Log/log_export.h -Wb,skel_export_macro=TAO_Log_Skel_Export -Wb,skel_export_include=orbsvcs/Log/log_skel_export.h $(srcdir)/DsLogAdmin.idl
@touch $@
BUILT_SOURCES += \
@@ -2945,14 +2763,10 @@ CLEANFILES += \
DsLogNotificationC.cpp DsLogNotificationC.h DsLogNotificationC.inl DsLogNotificationS.cpp DsLogNotificationS.h DsLogNotificationS.inl DsLogNotificationS_T.cpp DsLogNotificationS_T.h DsLogNotificationS_T.inl: DsLogNotification-stamp
DsLogNotification-stamp: $(srcdir)/DsLogNotification.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_Log_Export -Wb,stub_export_include=orbsvcs/Log/log_export.h -Wb,skel_export_macro=TAO_Log_Skel_Export -Wb,skel_export_include=orbsvcs/Log/log_skel_export.h $(srcdir)/DsLogNotification.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_Log_Export -Wb,stub_export_include=orbsvcs/Log/log_export.h -Wb,skel_export_macro=TAO_Log_Skel_Export -Wb,skel_export_include=orbsvcs/Log/log_skel_export.h $(srcdir)/DsLogNotification.idl
@touch $@
-nobase_include_HEADERS += \
- DsLogAdmin.idl \
- DsLogNotification.idl
-
## Makefile.DsLogAdmin.am
lib_LTLIBRARIES += libTAO_DsLogAdmin.la
@@ -3029,13 +2843,10 @@ CLEANFILES += \
DsEventLogAdminC.cpp DsEventLogAdminC.h DsEventLogAdminC.inl DsEventLogAdminS.cpp DsEventLogAdminS.h DsEventLogAdminS.inl DsEventLogAdminS_T.cpp DsEventLogAdminS_T.h DsEventLogAdminS_T.inl: DsEventLogAdmin-stamp
DsEventLogAdmin-stamp: $(srcdir)/DsEventLogAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_EventLog_Export -Wb,stub_export_include=orbsvcs/Log/eventlog_export.h -Wb,skel_export_macro=TAO_EventLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/eventlog_skel_export.h $(srcdir)/DsEventLogAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_EventLog_Export -Wb,stub_export_include=orbsvcs/Log/eventlog_export.h -Wb,skel_export_macro=TAO_EventLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/eventlog_skel_export.h $(srcdir)/DsEventLogAdmin.idl
@touch $@
-nobase_include_HEADERS += \
- DsEventLogAdmin.idl
-
endif !BUILD_MINIMUM_CORBA
## Makefile.DsEventLogAdmin.am
@@ -3383,13 +3194,10 @@ CLEANFILES += \
DsNotifyLogAdminC.cpp DsNotifyLogAdminC.h DsNotifyLogAdminC.inl DsNotifyLogAdminS.cpp DsNotifyLogAdminS.h DsNotifyLogAdminS.inl DsNotifyLogAdminS_T.cpp DsNotifyLogAdminS_T.h DsNotifyLogAdminS_T.inl: DsNotifyLogAdmin-stamp
DsNotifyLogAdmin-stamp: $(srcdir)/DsNotifyLogAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_NotifyLog_Export -Wb,stub_export_include=orbsvcs/Log/notifylog_export.h -Wb,skel_export_macro=TAO_NotifyLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/notifylog_skel_export.h $(srcdir)/DsNotifyLogAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_NotifyLog_Export -Wb,stub_export_include=orbsvcs/Log/notifylog_export.h -Wb,skel_export_macro=TAO_NotifyLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/notifylog_skel_export.h $(srcdir)/DsNotifyLogAdmin.idl
@touch $@
-nobase_include_HEADERS += \
- DsNotifyLogAdmin.idl
-
endif !BUILD_MINIMUM_CORBA
## Makefile.DsNotifyLogAdmin.am
@@ -3574,57 +3382,6 @@ EXTRA_DIST += \
TAO_DsNotifyLogAdmin_Serv.pc.in
-## Makefile.ESF.am
-
-
-nobase_include_HEADERS += \
- ESF/ESF_Busy_Lock.cpp \
- ESF/ESF_Busy_Lock.h \
- ESF/ESF_Busy_Lock.i \
- ESF/ESF_Copy_On_Read.cpp \
- ESF/ESF_Copy_On_Read.h \
- ESF/ESF_Copy_On_Write.cpp \
- ESF/ESF_Copy_On_Write.h \
- ESF/ESF_Copy_On_Write.i \
- ESF/ESF_Defaults.h \
- ESF/ESF_Delayed_Changes.cpp \
- ESF/ESF_Delayed_Changes.h \
- ESF/ESF_Delayed_Changes.i \
- ESF/ESF_Delayed_Command.cpp \
- ESF/ESF_Delayed_Command.h \
- ESF/ESF_Delayed_Command.i \
- ESF/ESF_Immediate_Changes.cpp \
- ESF/ESF_Immediate_Changes.h \
- ESF/ESF_Immediate_Changes.i \
- ESF/ESF_Peer_Admin.cpp \
- ESF/ESF_Peer_Admin.h \
- ESF/ESF_Peer_Workers.cpp \
- ESF/ESF_Peer_Workers.h \
- ESF/ESF_Peer_Workers.i \
- ESF/ESF_Proxy_Admin.cpp \
- ESF/ESF_Proxy_Admin.h \
- ESF/ESF_Proxy_Admin.i \
- ESF/ESF_Proxy_Collection.cpp \
- ESF/ESF_Proxy_Collection.h \
- ESF/ESF_Proxy_List.cpp \
- ESF/ESF_Proxy_List.h \
- ESF/ESF_Proxy_List.i \
- ESF/ESF_Proxy_RB_Tree.cpp \
- ESF/ESF_Proxy_RB_Tree.h \
- ESF/ESF_Proxy_RB_Tree.i \
- ESF/ESF_Proxy_RefCount_Guard.cpp \
- ESF/ESF_Proxy_RefCount_Guard.h \
- ESF/ESF_Proxy_RefCount_Guard.i \
- ESF/ESF_RefCount_Guard.cpp \
- ESF/ESF_RefCount_Guard.h \
- ESF/ESF_RefCount_Guard.i \
- ESF/ESF_Shutdown_Proxy.cpp \
- ESF/ESF_Shutdown_Proxy.h \
- ESF/ESF_Shutdown_Proxy.i \
- ESF/ESF_Worker.cpp \
- ESF/ESF_Worker.h \
- ESF/esf_export.h
-
## Makefile.FTORB_Utils.am
if BUILD_CORBA_MESSAGING
@@ -3656,7 +3413,7 @@ CLEANFILES += \
FT_CORBA_ORBC.cpp FT_CORBA_ORBC.h FT_CORBA_ORBC.inl FT_CORBA_ORBS.cpp FT_CORBA_ORBS.h FT_CORBA_ORBS.inl FT_CORBA_ORBS_T.cpp FT_CORBA_ORBS_T.h FT_CORBA_ORBS_T.inl: FT_CORBA_ORB-stamp
FT_CORBA_ORB-stamp: $(srcdir)/FT_CORBA_ORB.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,skel_export_include=tao/PortableServer/PolicyS.h -Wb,export_macro=TAO_FT_ORB_Utils_Export -Wb,export_include=orbsvcs/FaultTolerance/FT_ORB_Utils_export.h $(srcdir)/FT_CORBA_ORB.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,skel_export_include=tao/PortableServer/PolicyS.h -Wb,export_macro=TAO_FT_ORB_Utils_Export -Wb,export_include=orbsvcs/FaultTolerance/FT_ORB_Utils_export.h $(srcdir)/FT_CORBA_ORB.idl
@touch $@
lib_LTLIBRARIES += libTAO_FTORB_Utils.la
@@ -3701,7 +3458,7 @@ nobase_include_HEADERS += \
FT_CORBA_ORBS_T.inl \
FT_CORBA_ORBS_T.inl \
FaultTolerance/FT_IOGR_Property.h \
- FaultTolerance/FT_IOGR_Property.inl \
+ FaultTolerance/FT_IOGR_Property.i \
FaultTolerance/FT_ORB_Utils_export.h
pkgconfig_DATA += \
@@ -3778,7 +3535,7 @@ CLEANFILES += \
RtecDefaultEventDataC.cpp RtecDefaultEventDataC.h RtecDefaultEventDataC.inl RtecDefaultEventDataS_T.cpp: RtecDefaultEventData-stamp
RtecDefaultEventData-stamp: $(srcdir)/RtecDefaultEventData.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecDefaultEventData.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecDefaultEventData.idl
@touch $@
BUILT_SOURCES += \
@@ -3797,7 +3554,7 @@ CLEANFILES += \
RtecEventCommC.cpp RtecEventCommC.h RtecEventCommC.inl RtecEventCommS_T.cpp: RtecEventComm-stamp
RtecEventComm-stamp: $(srcdir)/RtecEventComm.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecEventComm.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecEventComm.idl
@touch $@
BUILT_SOURCES += \
@@ -3816,7 +3573,7 @@ CLEANFILES += \
RtecEventChannelAdminC.cpp RtecEventChannelAdminC.h RtecEventChannelAdminC.inl RtecEventChannelAdminS_T.cpp: RtecEventChannelAdmin-stamp
RtecEventChannelAdmin-stamp: $(srcdir)/RtecEventChannelAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecEventChannelAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecEventChannelAdmin.idl
@touch $@
BUILT_SOURCES += \
@@ -3835,7 +3592,7 @@ CLEANFILES += \
RtecUDPAdminC.cpp RtecUDPAdminC.h RtecUDPAdminC.inl RtecUDPAdminS_T.cpp: RtecUDPAdmin-stamp
RtecUDPAdmin-stamp: $(srcdir)/RtecUDPAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecUDPAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h $(srcdir)/RtecUDPAdmin.idl
@touch $@
lib_LTLIBRARIES += libTAO_RTEvent.la
@@ -3884,18 +3641,8 @@ nobase_include_HEADERS += \
RtecUDPAdminC.h \
RtecUDPAdminC.inl
-pkgconfig_DATA += \
- TAO_RTEvent.pc
-
-CLEANFILES += \
- TAO_RTEvent.pc
-
-TAO_RTEvent.pc: ${top_builddir}/config.status ${srcdir}/TAO_RTEvent.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_RTEvent.pc.in
-
EXTRA_DIST += \
- RTEvent.rc \
- TAO_RTEvent.pc.in
+ RTEvent.rc
## Makefile.RTEvent_Skel.am
@@ -3945,26 +3692,15 @@ nobase_include_HEADERS += \
RtecUDPAdminS.h \
RtecUDPAdminS.inl
-pkgconfig_DATA += \
- TAO_RTEvent_Skel.pc
-
-CLEANFILES += \
- TAO_RTEvent_Skel.pc
-
-TAO_RTEvent_Skel.pc: ${top_builddir}/config.status ${srcdir}/TAO_RTEvent_Skel.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_RTEvent_Skel.pc.in
-
endif BUILD_CORBA_MESSAGING
EXTRA_DIST += \
- RTEvent_Skel.rc \
- TAO_RTEvent_Skel.pc.in
+ RTEvent_Skel.rc
## Makefile.RTEvent_Serv.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
lib_LTLIBRARIES += libTAO_RTEvent_Serv.la
@@ -3979,6 +3715,7 @@ libTAO_RTEvent_Serv_la_CPPFLAGS = \
libTAO_RTEvent_Serv_la_SOURCES = \
Event/ECG_Adapters.cpp \
+ Event/ECG_Address_Server_Base.cpp \
Event/ECG_CDR_Message_Receiver.cpp \
Event/ECG_CDR_Message_Sender.cpp \
Event/ECG_Complex_Address_Server.cpp \
@@ -4070,6 +3807,7 @@ nobase_include_HEADERS += \
Channel_Clients_T.h \
Channel_Clients_T.i \
Event/ECG_Adapters.h \
+ Event/ECG_Address_Server_Base.h \
Event/ECG_CDR_Message_Receiver.h \
Event/ECG_CDR_Message_Receiver.i \
Event/ECG_CDR_Message_Sender.h \
@@ -4178,27 +3916,15 @@ nobase_include_HEADERS += \
Event/EC_Type_Filter.h \
Event/EC_UDP_Admin.h
-pkgconfig_DATA += \
- TAO_RTEvent_Serv.pc
-
-CLEANFILES += \
- TAO_RTEvent_Serv.pc
-
-TAO_RTEvent_Serv.pc: ${top_builddir}/config.status ${srcdir}/TAO_RTEvent_Serv.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_RTEvent_Serv.pc.in
-
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
EXTRA_DIST += \
- RTEvent_Serv.rc \
- TAO_RTEvent_Serv.pc.in
+ RTEvent_Serv.rc
## Makefile.FtRtEvent.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES += \
@@ -4227,7 +3953,7 @@ CLEANFILES += \
FTRTC.cpp FTRTC.h FTRTC.inl FTRTS.cpp FTRTS.h FTRTS.inl FTRTS_T.cpp FTRTS_T.h FTRTS_T.inl: FTRT-stamp
FTRT-stamp: $(srcdir)/FTRT.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h -GC $(srcdir)/FTRT.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h -GC $(srcdir)/FTRT.idl
@touch $@
BUILT_SOURCES += \
@@ -4256,7 +3982,7 @@ CLEANFILES += \
FtRtecEventCommC.cpp FtRtecEventCommC.h FtRtecEventCommC.inl FtRtecEventCommS.cpp FtRtecEventCommS.h FtRtecEventCommS.inl FtRtecEventCommS_T.cpp FtRtecEventCommS_T.h FtRtecEventCommS_T.inl: FtRtecEventComm-stamp
FtRtecEventComm-stamp: $(srcdir)/FtRtecEventComm.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h -GC $(srcdir)/FtRtecEventComm.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h -GC $(srcdir)/FtRtecEventComm.idl
@touch $@
BUILT_SOURCES += \
@@ -4285,7 +4011,7 @@ CLEANFILES += \
FTRT_GroupManagerC.cpp FTRT_GroupManagerC.h FTRT_GroupManagerC.inl FTRT_GroupManagerS.cpp FTRT_GroupManagerS.h FTRT_GroupManagerS.inl FTRT_GroupManagerS_T.cpp FTRT_GroupManagerS_T.h FTRT_GroupManagerS_T.inl: FTRT_GroupManager-stamp
FTRT_GroupManager-stamp: $(srcdir)/FTRT_GroupManager.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h -GC $(srcdir)/FTRT_GroupManager.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h -GC $(srcdir)/FTRT_GroupManager.idl
@touch $@
BUILT_SOURCES += \
@@ -4314,7 +4040,7 @@ CLEANFILES += \
FtRtecEventChannelAdminC.cpp FtRtecEventChannelAdminC.h FtRtecEventChannelAdminC.inl FtRtecEventChannelAdminS.cpp FtRtecEventChannelAdminS.h FtRtecEventChannelAdminS.inl FtRtecEventChannelAdminS_T.cpp FtRtecEventChannelAdminS_T.h FtRtecEventChannelAdminS_T.inl: FtRtecEventChannelAdmin-stamp
FtRtecEventChannelAdmin-stamp: $(srcdir)/FtRtecEventChannelAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h $(srcdir)/FtRtecEventChannelAdmin.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FtRtEvent_Export -Wb,export_include=orbsvcs/FtRtEvent/Utils/ftrtevent_export.h $(srcdir)/FtRtecEventChannelAdmin.idl
@touch $@
lib_LTLIBRARIES += libTAO_FtRtEvent.la
@@ -4407,13 +4133,11 @@ nobase_include_HEADERS += \
FtRtecEventCommS_T.inl
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.FTRT_EventChannel.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
lib_LTLIBRARIES += libTAO_FTRT_EventChannel.la
@@ -4531,7 +4255,6 @@ nobase_include_HEADERS += \
FtRtEvent/EventChannel/ftrtec_export.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.FT_ClientORB.am
@@ -4539,7 +4262,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
lib_LTLIBRARIES += libTAO_FT_ClientORB.la
@@ -4601,7 +4323,6 @@ TAO_FT_ClientORB.pc: ${top_builddir}/config.status ${srcdir}/TAO_FT_ClientORB.pc
${top_builddir}/config.status --file $@:${srcdir}/TAO_FT_ClientORB.pc.in
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -4682,7 +4403,6 @@ EXTRA_DIST += \
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES += \
@@ -4709,7 +4429,7 @@ CLEANFILES += \
FT_CORBAC.cpp FT_CORBAC.h FT_CORBAC.inl FT_CORBAS.cpp FT_CORBAS.h FT_CORBAS.inl FT_CORBAS_T.cpp FT_CORBAS_T.inl: FT_CORBA-stamp
FT_CORBA-stamp: $(srcdir)/FT_CORBA.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_CORBA.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_CORBA.idl
@touch $@
BUILT_SOURCES += \
@@ -4736,7 +4456,7 @@ CLEANFILES += \
FT_ReplicaC.cpp FT_ReplicaC.h FT_ReplicaC.inl FT_ReplicaS.cpp FT_ReplicaS.h FT_ReplicaS.inl FT_ReplicaS_T.cpp FT_ReplicaS_T.inl: FT_Replica-stamp
FT_Replica-stamp: $(srcdir)/FT_Replica.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_Replica.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_Replica.idl
@touch $@
BUILT_SOURCES += \
@@ -4763,7 +4483,7 @@ CLEANFILES += \
FT_NotifierC.cpp FT_NotifierC.h FT_NotifierC.inl FT_NotifierS.cpp FT_NotifierS.h FT_NotifierS.inl FT_NotifierS_T.cpp FT_NotifierS_T.inl: FT_Notifier-stamp
FT_Notifier-stamp: $(srcdir)/FT_Notifier.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_Notifier.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_Notifier.idl
@touch $@
BUILT_SOURCES += \
@@ -4790,7 +4510,7 @@ CLEANFILES += \
FT_FaultDetectorFactoryC.cpp FT_FaultDetectorFactoryC.h FT_FaultDetectorFactoryC.inl FT_FaultDetectorFactoryS.cpp FT_FaultDetectorFactoryS.h FT_FaultDetectorFactoryS.inl FT_FaultDetectorFactoryS_T.cpp FT_FaultDetectorFactoryS_T.inl: FT_FaultDetectorFactory-stamp
FT_FaultDetectorFactory-stamp: $(srcdir)/FT_FaultDetectorFactory.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_FaultDetectorFactory.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_FaultDetectorFactory.idl
@touch $@
BUILT_SOURCES += \
@@ -4817,7 +4537,7 @@ CLEANFILES += \
FT_ReplicationManagerC.cpp FT_ReplicationManagerC.h FT_ReplicationManagerC.inl FT_ReplicationManagerS.cpp FT_ReplicationManagerS.h FT_ReplicationManagerS.inl FT_ReplicationManagerS_T.cpp FT_ReplicationManagerS_T.inl: FT_ReplicationManager-stamp
FT_ReplicationManager-stamp: $(srcdir)/FT_ReplicationManager.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_ReplicationManager.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_FT_Export -Wb,export_include=orbsvcs/FaultTolerance/fault_tol_export.h -Wb,skel_export_include=tao/PortableServer/PolicyS.h $(srcdir)/FT_ReplicationManager.idl
@touch $@
lib_LTLIBRARIES += libTAO_FaultTolerance.la
@@ -4914,7 +4634,6 @@ TAO_FaultTolerance.pc: ${top_builddir}/config.status ${srcdir}/TAO_FaultToleranc
${top_builddir}/config.status --file $@:${srcdir}/TAO_FaultTolerance.pc.in
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -4926,8 +4645,6 @@ EXTRA_DIST += \
## Makefile.HTIOP.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES += \
HTIOPC.cpp \
HTIOPC.h \
@@ -4952,7 +4669,7 @@ CLEANFILES += \
HTIOPC.cpp HTIOPC.h HTIOPC.inl HTIOPS.h HTIOPS.inl HTIOPS_T.cpp HTIOPS_T.h HTIOPS_T.inl: HTIOP-stamp
HTIOP-stamp: $(srcdir)/HTIOP.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=HTIOP_Export -Wb,export_include=orbsvcs/HTIOP/HTIOP_Export.h $(srcdir)/HTIOP.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=HTIOP_Export -Wb,export_include=orbsvcs/HTIOP/HTIOP_Export.h $(srcdir)/HTIOP.idl
@touch $@
lib_LTLIBRARIES += libTAO_HTIOP.la
@@ -5004,7 +4721,6 @@ nobase_include_HEADERS += \
HTIOP/HTIOP_Factory.h \
HTIOP/HTIOP_Profile.h \
HTIOP/HTIOP_Transport.h \
- HTIOP/htiop_endpoints.pidl \
HTIOP/htiop_endpointsC.h \
HTIOPC.h \
HTIOPC.inl \
@@ -5013,11 +4729,8 @@ nobase_include_HEADERS += \
HTIOPS_T.h \
HTIOPS_T.inl
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.IFRService.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
lib_LTLIBRARIES += libTAO_IFRService.la
@@ -5170,7 +4883,6 @@ nobase_include_HEADERS += \
IFRService/WstringDef_i.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
EXTRA_DIST += \
IFRService.rc
@@ -5180,7 +4892,6 @@ EXTRA_DIST += \
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
lib_LTLIBRARIES += libTAO_RTCORBAEvent.la
@@ -5220,103 +4931,9 @@ nobase_include_HEADERS += \
Event/EC_RTCORBA_Dispatching.h \
Event/EC_RTCORBA_Factory.h
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
-## Makefile.RTEventLogAdmin_IDL.am
-
-if BUILD_CORBA_MESSAGING
-
-BUILT_SOURCES += \
- RTEventLogAdminC.cpp \
- RTEventLogAdminC.h \
- RTEventLogAdminC.inl \
- RTEventLogAdminS.cpp \
- RTEventLogAdminS.h \
- RTEventLogAdminS.inl \
- RTEventLogAdminS_T.cpp \
- RTEventLogAdminS_T.h \
- RTEventLogAdminS_T.inl
-
-CLEANFILES += \
- RTEventLogAdmin-stamp \
- RTEventLogAdminC.cpp \
- RTEventLogAdminC.h \
- RTEventLogAdminC.inl \
- RTEventLogAdminS.cpp \
- RTEventLogAdminS.h \
- RTEventLogAdminS.inl \
- RTEventLogAdminS_T.cpp \
- RTEventLogAdminS_T.h \
- RTEventLogAdminS_T.inl
-
-RTEventLogAdminC.cpp RTEventLogAdminC.h RTEventLogAdminC.inl RTEventLogAdminS.cpp RTEventLogAdminS.h RTEventLogAdminS.inl RTEventLogAdminS_T.cpp RTEventLogAdminS_T.h RTEventLogAdminS_T.inl: RTEventLogAdmin-stamp
-
-RTEventLogAdmin-stamp: $(srcdir)/RTEventLogAdmin.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,stub_export_macro=TAO_RTEventLog_Export -Wb,stub_export_include=orbsvcs/Log/rteventlog_export.h -Wb,skel_export_macro=TAO_RTEventLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/rteventlog_skel_export.h $(srcdir)/RTEventLogAdmin.idl
- @touch $@
-
-
-nobase_include_HEADERS += \
- RTEventLogAdmin.idl
-
-endif BUILD_CORBA_MESSAGING
-
-## Makefile.RTEventLogAdmin.am
-
-if BUILD_CORBA_MESSAGING
-
-lib_LTLIBRARIES += libTAO_RTEventLogAdmin.la
-
-libTAO_RTEventLogAdmin_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_RTEVENTLOG_BUILD_DLL
-
-libTAO_RTEventLogAdmin_la_SOURCES = \
- RTEventLogAdminC.cpp
-
-libTAO_RTEventLogAdmin_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_RTEventLogAdmin_la_LIBADD = \
- libTAO_RTEvent.la \
- libTAO_Svc_Utils.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- libTAO_DsLogAdmin.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
- Log/rteventlog_export.h \
- RTEventLogAdminC.h \
- RTEventLogAdminC.inl
-
-pkgconfig_DATA += \
- TAO_RTEventLogAdmin.pc
-
-CLEANFILES += \
- TAO_RTEventLogAdmin.pc
-
-TAO_RTEventLogAdmin.pc: ${top_builddir}/config.status ${srcdir}/TAO_RTEventLogAdmin.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_RTEventLogAdmin.pc.in
-
-endif BUILD_CORBA_MESSAGING
-
-EXTRA_DIST += \
- TAO_RTEventLogAdmin.pc.in
-
-
## Makefile.RTSched.am
BUILT_SOURCES += \
@@ -5345,7 +4962,7 @@ CLEANFILES += \
RtecSchedulerC.cpp RtecSchedulerC.h RtecSchedulerC.inl RtecSchedulerS.cpp RtecSchedulerS.h RtecSchedulerS.inl RtecSchedulerS_T.cpp RtecSchedulerS_T.h RtecSchedulerS_T.inl: RtecScheduler-stamp
RtecScheduler-stamp: $(srcdir)/RtecScheduler.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_RTSched_Export -Wb,export_include=orbsvcs/Sched/sched_export.h $(srcdir)/RtecScheduler.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_RTSched_Export -Wb,export_include=orbsvcs/Sched/sched_export.h $(srcdir)/RtecScheduler.idl
@touch $@
lib_LTLIBRARIES += libTAO_RTSched.la
@@ -5366,6 +4983,7 @@ libTAO_RTSched_la_SOURCES = \
Sched/Config_Scheduler.cpp \
Sched/DynSched.cpp \
Sched/Reconfig_Sched_Utils.cpp \
+ Sched/Reconfig_Scheduler.cpp \
Sched/SchedEntry.cpp \
Sched/Scheduler.cpp \
Sched/Scheduler_Generic.cpp \
@@ -5399,6 +5017,8 @@ nobase_include_HEADERS += \
Sched/DynSched.i \
Sched/Reconfig_Sched_Utils.h \
Sched/Reconfig_Sched_Utils_T.cpp \
+ Sched/Reconfig_Scheduler.h \
+ Sched/Reconfig_Scheduler_T.cpp \
Sched/SchedEntry.h \
Sched/SchedEntry.i \
Sched/Scheduler.h \
@@ -5413,103 +5033,71 @@ EXTRA_DIST += \
RTSched.rc
-## Makefile.RTEventLogAdmin_Skel.am
+## Makefile.RTEventLogAdmin.am
if BUILD_CORBA_MESSAGING
-lib_LTLIBRARIES += libTAO_RTEventLogAdmin_Skel.la
-
-libTAO_RTEventLogAdmin_Skel_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_RTEVENTLOG_SKEL_BUILD_DLL
-
-libTAO_RTEventLogAdmin_Skel_la_SOURCES = \
- RTEventLogAdminS.cpp
-
-libTAO_RTEventLogAdmin_Skel_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_RTEventLogAdmin_Skel_la_LIBADD = \
- libTAO_RTEvent_Skel.la \
- libTAO_DsLogAdmin_Skel.la \
- libTAO_RTEventLogAdmin.la \
- libTAO_RTEvent.la \
- libTAO_Svc_Utils.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- libTAO_DsLogAdmin.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
- Log/rteventlog_skel_export.h \
+BUILT_SOURCES += \
+ RTEventLogAdminC.cpp \
+ RTEventLogAdminC.h \
+ RTEventLogAdminC.inl \
+ RTEventLogAdminS.cpp \
RTEventLogAdminS.h \
RTEventLogAdminS.inl \
RTEventLogAdminS_T.cpp \
RTEventLogAdminS_T.h \
RTEventLogAdminS_T.inl
-pkgconfig_DATA += \
- TAO_RTEventLogAdmin_Skel.pc
-
CLEANFILES += \
- TAO_RTEventLogAdmin_Skel.pc
-
-TAO_RTEventLogAdmin_Skel.pc: ${top_builddir}/config.status ${srcdir}/TAO_RTEventLogAdmin_Skel.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_RTEventLogAdmin_Skel.pc.in
-
-endif BUILD_CORBA_MESSAGING
-
-EXTRA_DIST += \
- TAO_RTEventLogAdmin_Skel.pc.in
-
+ RTEventLogAdmin-stamp \
+ RTEventLogAdminC.cpp \
+ RTEventLogAdminC.h \
+ RTEventLogAdminC.inl \
+ RTEventLogAdminS.cpp \
+ RTEventLogAdminS.h \
+ RTEventLogAdminS.inl \
+ RTEventLogAdminS_T.cpp \
+ RTEventLogAdminS_T.h \
+ RTEventLogAdminS_T.inl
-## Makefile.RTEventLogAdmin_Serv.am
+RTEventLogAdminC.cpp RTEventLogAdminC.h RTEventLogAdminC.inl RTEventLogAdminS.cpp RTEventLogAdminS.h RTEventLogAdminS.inl RTEventLogAdminS_T.cpp RTEventLogAdminS_T.h RTEventLogAdminS_T.inl: RTEventLogAdmin-stamp
-if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
+RTEventLogAdmin-stamp: $(srcdir)/RTEventLogAdmin.idl $(TAO_IDL_DEP)
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_RTEventLog_Export -Wb,export_include=orbsvcs/Log/rteventlog_export.h $(srcdir)/RTEventLogAdmin.idl
+ @touch $@
-lib_LTLIBRARIES += libTAO_RTEventLogAdmin_Serv.la
+lib_LTLIBRARIES += libTAO_RTEventLogAdmin.la
-libTAO_RTEventLogAdmin_Serv_la_CPPFLAGS = \
+libTAO_RTEventLogAdmin_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
-I$(TAO_ROOT)/orbsvcs \
-I$(TAO_BUILDDIR)/orbsvcs \
- -DTAO_RTEVENTLOG_SERV_BUILD_DLL
+ -DTAO_RTEVENTLOG_BUILD_DLL
-libTAO_RTEventLogAdmin_Serv_la_SOURCES = \
+libTAO_RTEventLogAdmin_la_SOURCES = \
Log/RTEventLogConsumer.cpp \
Log/RTEventLogFactory_i.cpp \
Log/RTEventLogNotification.cpp \
- Log/RTEventLog_i.cpp
+ Log/RTEventLog_i.cpp \
+ RTEventLogAdminC.cpp \
+ RTEventLogAdminS.cpp
-libTAO_RTEventLogAdmin_Serv_la_LDFLAGS = \
+libTAO_RTEventLogAdmin_la_LDFLAGS = \
-version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-libTAO_RTEventLogAdmin_Serv_la_LIBADD = \
- libTAO_RTSched.la \
- libTAO_CosNaming.la \
- libTAO_RTEvent_Serv.la \
+libTAO_RTEventLogAdmin_la_LIBADD = \
libTAO_DsLogAdmin_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
libTAO_ETCL.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
- libTAO_RTEventLogAdmin_Skel.la \
- libTAO_RTEvent_Skel.la \
libTAO_DsLogAdmin_Skel.la \
- libTAO_RTEventLogAdmin.la \
+ libTAO_DsLogAdmin.la \
+ libTAO_RTSched.la \
+ libTAO_RTEvent_Serv.la \
+ libTAO_RTEvent_Skel.la \
libTAO_RTEvent.la \
libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
@@ -5517,7 +5105,7 @@ libTAO_RTEventLogAdmin_Serv_la_LIBADD = \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- libTAO_DsLogAdmin.la \
+ libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
@@ -5527,28 +5115,20 @@ nobase_include_HEADERS += \
Log/RTEventLogFactory_i.h \
Log/RTEventLogNotification.h \
Log/RTEventLog_i.h \
- Log/rteventlog_serv_export.h
-
-pkgconfig_DATA += \
- TAO_RTEventLogAdmin_Serv.pc
-
-CLEANFILES += \
- TAO_RTEventLogAdmin_Serv.pc
-
-TAO_RTEventLogAdmin_Serv.pc: ${top_builddir}/config.status ${srcdir}/TAO_RTEventLogAdmin_Serv.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/TAO_RTEventLogAdmin_Serv.pc.in
+ RTEventLogAdmin.idl \
+ RTEventLogAdminC.h \
+ RTEventLogAdminC.inl \
+ RTEventLogAdminS.h \
+ RTEventLogAdminS_T.cpp \
+ RTEventLogAdminS_T.h \
+ RTEventLogAdminS_T.inl \
+ RTEventLogAdminS_T.inl
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
-EXTRA_DIST += \
- TAO_RTEventLogAdmin_Serv.pc.in
-
-
## Makefile.RTKokyuEvent.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
lib_LTLIBRARIES += libTAO_RTKokyuEvent.la
@@ -5600,13 +5180,11 @@ nobase_include_HEADERS += \
Event/EC_Kokyu_Scheduling.h \
Event/EC_Kokyu_Scheduling.i
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.RTSchedEvent.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
lib_LTLIBRARIES += libTAO_RTSchedEvent.la
@@ -5657,7 +5235,6 @@ nobase_include_HEADERS += \
Event/EC_Sched_Filter_Builder.h \
Event/EC_Sched_Filter_Builder.i
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
EXTRA_DIST += \
@@ -5748,7 +5325,7 @@ CLEANFILES += \
CSIC.cpp CSIC.h CSIC.inl CSIS.inl CSIS_T.inl: CSI-stamp
CSI-stamp: $(srcdir)/CSI.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/CSI.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/CSI.idl
@touch $@
BUILT_SOURCES += \
@@ -5769,7 +5346,7 @@ CLEANFILES += \
CSIIOPC.cpp CSIIOPC.h CSIIOPC.inl CSIIOPS.inl CSIIOPS_T.inl: CSIIOP-stamp
CSIIOP-stamp: $(srcdir)/CSIIOP.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/CSIIOP.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/CSIIOP.idl
@touch $@
BUILT_SOURCES += \
@@ -5790,7 +5367,7 @@ CLEANFILES += \
GSSUPC.cpp GSSUPC.h GSSUPC.inl GSSUPS.inl GSSUPS_T.inl: GSSUP-stamp
GSSUP-stamp: $(srcdir)/GSSUP.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/GSSUP.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/GSSUP.idl
@touch $@
BUILT_SOURCES += \
@@ -5817,7 +5394,7 @@ CLEANFILES += \
SecurityC.cpp SecurityC.h SecurityC.inl SecurityS.cpp SecurityS.h SecurityS.inl SecurityS_T.cpp SecurityS_T.inl: Security-stamp
Security-stamp: $(srcdir)/Security.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/Security.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/Security.idl
@touch $@
BUILT_SOURCES += \
@@ -5844,7 +5421,7 @@ CLEANFILES += \
SecurityLevel1C.cpp SecurityLevel1C.h SecurityLevel1C.inl SecurityLevel1S.cpp SecurityLevel1S.h SecurityLevel1S.inl SecurityLevel1S_T.cpp SecurityLevel1S_T.inl: SecurityLevel1-stamp
SecurityLevel1-stamp: $(srcdir)/SecurityLevel1.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/SecurityLevel1.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/SecurityLevel1.idl
@touch $@
BUILT_SOURCES += \
@@ -5871,7 +5448,7 @@ CLEANFILES += \
SecurityLevel2C.cpp SecurityLevel2C.h SecurityLevel2C.inl SecurityLevel2S.cpp SecurityLevel2S.h SecurityLevel2S.inl SecurityLevel2S_T.cpp SecurityLevel2S_T.inl: SecurityLevel2-stamp
SecurityLevel2-stamp: $(srcdir)/SecurityLevel2.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/SecurityLevel2.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/SecurityLevel2.idl
@touch $@
BUILT_SOURCES += \
@@ -5892,7 +5469,7 @@ CLEANFILES += \
SecurityLevel3C.cpp SecurityLevel3C.h SecurityLevel3C.inl SecurityLevel3S.inl SecurityLevel3S_T.inl: SecurityLevel3-stamp
SecurityLevel3-stamp: $(srcdir)/SecurityLevel3.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/SecurityLevel3.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h $(srcdir)/SecurityLevel3.idl
@touch $@
lib_LTLIBRARIES += libTAO_Security.la
@@ -6014,7 +5591,6 @@ EXTRA_DIST += \
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
BUILT_SOURCES += \
SSLIOPC.cpp \
@@ -6032,7 +5608,7 @@ CLEANFILES += \
SSLIOPC.cpp SSLIOPC.h SSLIOPC.inl SSLIOPS_T.cpp: SSLIOP-stamp
SSLIOP-stamp: $(srcdir)/SSLIOP.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -Wb,export_macro=TAO_SSLIOP_Export -Wb,export_include=orbsvcs/SSLIOP/SSLIOP_Export.h $(srcdir)/SSLIOP.idl
+ $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -Wb,export_macro=TAO_SSLIOP_Export -Wb,export_include=orbsvcs/SSLIOP/SSLIOP_Export.h $(srcdir)/SSLIOP.idl
@touch $@
lib_LTLIBRARIES += libTAO_SSLIOP.la
@@ -6070,9 +5646,11 @@ libTAO_SSLIOP_la_SOURCES = \
SSLIOP/SSLIOP_ORBInitializer.cpp \
SSLIOP/SSLIOP_OwnCredentials.cpp \
SSLIOP/SSLIOP_Profile.cpp \
+ SSLIOP/SSLIOP_SSL.cpp \
SSLIOP/SSLIOP_TargetCredentials.cpp \
SSLIOP/SSLIOP_Transport.cpp \
SSLIOP/SSLIOP_Util.cpp \
+ SSLIOP/SSLIOP_X509.cpp \
SSLIOP/params_dup.c \
SSLIOP/ssl_endpointsC.cpp \
SSLIOPC.cpp
@@ -6082,10 +5660,10 @@ libTAO_SSLIOP_la_LDFLAGS = \
libTAO_SSLIOP_la_LIBADD = \
$(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
- $(ACE_BUILDDIR)/ace/SSL/libACE_SSL.la \
- libTAO_Security.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
+ $(ACE_BUILDDIR)/ace/SSL/libACE_SSL.la \
+ libTAO_Security.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -6132,12 +5710,10 @@ nobase_include_HEADERS += \
SSLIOP/SSLIOP_Util.h \
SSLIOP/SSLIOP_X509.h \
SSLIOP/params_dup.h \
- SSLIOP/ssl_endpoints.pidl \
SSLIOP/ssl_endpointsC.h \
SSLIOPC.h \
SSLIOPC.inl
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.cpp
index 42663238c81..3a04aca99f0 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.cpp
@@ -3,10 +3,10 @@
#ifndef METRICS_FRAME_MANAGER_CPP
#define METRICS_FRAME_MANAGER_CPP
-#include "orbsvcs/Metrics/Metrics_FrameManager.h"
+#include "Metrics_FrameManager.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_FrameManager.i"
+#include "Metrics_FrameManager.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.h
index 689ed44ee6f..f1ad017f20d 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager.h
@@ -15,15 +15,13 @@
#include "orbsvcs/Time_Utilities.h"
#include "orbsvcs/RtecSchedulerC.h"
-#include "orbsvcs/Metrics/Metrics_Utils.h"
+#include "Metrics_Utils.h"
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_FrameManager.i"
+#include "Metrics_FrameManager.i"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/Metrics/Metrics_FrameManager_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Metrics_FrameManager_T.h"
typedef TAO_Metrics_FrameManager<ACE_SYNCH_MUTEX>
TAO_METRICS_FRAME_MGR_TYPE;
@@ -31,7 +29,6 @@ TAO_METRICS_FRAME_MGR_TYPE;
typedef ACE_Singleton<TAO_METRICS_FRAME_MGR_TYPE, ACE_SYNCH_MUTEX>
TAO_METRICS_FRAME_MGR_SINGLETON;
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* METRICS_FRAME_MANAGER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.cpp
index d8ff5ef8e8b..64bf39f09f8 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.cpp
@@ -3,10 +3,10 @@
#ifndef METRICS_FRAME_MANAGER_T_CPP
#define METRICS_FRAME_MANAGER_T_CPP
-#include "orbsvcs/Metrics/Metrics_FrameManager_T.h"
+#include "Metrics_FrameManager_T.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_FrameManager_T.i"
+#include "Metrics_FrameManager_T.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.h
index a3226d8647c..6eefdbf19f9 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_FrameManager_T.h
@@ -262,7 +262,7 @@ protected:
};
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Metrics/Metrics_FrameManager_T.cpp"
+#include "Metrics_FrameManager_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
@@ -270,7 +270,7 @@ protected:
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_FrameManager_T.i"
+#include "Metrics_FrameManager_T.i"
#endif /* __ACE_INLINE__ */
#endif /* METRICS_FRAME_MANAGER_T_H */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.cpp
index c1b7f9eb788..73933c27eb1 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.cpp
@@ -3,10 +3,10 @@
#ifndef METRICS_LOCAL_CACHE_CPP
#define METRICS_LOCAL_CACHE_CPP
-#include "orbsvcs/Metrics/Metrics_LocalCache.h"
+#include "Metrics_LocalCache.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_LocalCache.i"
+#include "Metrics_LocalCache.i"
#endif /* __ACE_INLINE__ */
#endif /* METRICS_LOCAL_CACHE_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.h
index 71fcb092381..df418913117 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache.h
@@ -24,15 +24,13 @@
#include "orbsvcs/Scheduler_Factory.h"
#include "orbsvcs/MetricsC.h"
-#include "orbsvcs/Metrics/Metrics_Utils.h"
+#include "Metrics_Utils.h"
#if defined (ACE_METRICS_COLLECTION)
#if defined (ACE_ENABLE_TIMEPROBES) && defined (ACE_COMPILE_TIMEPROBES)
-#include "orbsvcs/Metrics/Metrics_LocalCache_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Metrics_LocalCache_T.h"
typedef TAO_Metrics_LocalCache<ACE_SYNCH_MUTEX, ACE_New_Allocator>
TAO_METRICS_CACHE_TYPE;
@@ -99,11 +97,8 @@ PROBE_TYPE, \
METRICS_LOGGER_REF); \
} } while (0)
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_LocalCache.i"
+#include "Metrics_LocalCache.i"
#endif /* __ACE_INLINE__ */
#endif /* ACE_ENABLE_TIMEPROBES && ACE_COMPILE_TIMEPROBES */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.cpp
index 2478ce10532..a73236d2652 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.cpp
@@ -3,16 +3,14 @@
#ifndef METRICS_LOCAL_CACHE_T_CPP
#define METRICS_LOCAL_CACHE_T_CPP
-#include "orbsvcs/Metrics/Metrics_LocalCache_T.h"
+#include "Metrics_LocalCache_T.h"
#if defined VXWORKS
#include <cacheLib.h>
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////////////////////
-// Class TAO_Metrics_LocalTimeprobe //
+// Class TAO_Metrics_LocalTimeprobe //g
//////////////////////////////////////
// Default constructor.
@@ -483,6 +481,8 @@ flush_TAO_Metrics_LocalCache ()
#endif
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if !defined (__ACE_INLINE__)
+#include "Metrics_LocalCache_T.i"
+#endif /* __ACE_INLINE__ */
#endif /* METRICS_LOCAL_CACHE_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.h
index 97d51de3248..db031b72f32 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_LocalCache_T.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef METRICS_LOCAL_CACHE_T_H
@@ -20,8 +18,6 @@
#include "orbsvcs/MetricsC.h"
#include "orbsvcs/Metrics/Metrics_Utils.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_METRICS_BASE_POINTERS)
typedef ACE_Based_Pointer<char> ACE_METRICS_STRING_TYPE;
typedef ACE_Based_Pointer<Metrics::TimeprobeParameter_Set> ACE_METRICS_PARAMETER_SET_TYPE;
@@ -316,14 +312,16 @@ public:
// Flush the TAO metrics local cache into shared memory.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Metrics/Metrics_LocalCache_T.cpp"
+#include "Metrics_LocalCache_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Metrics_LocalCache_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+#if defined (__ACE_INLINE__)
+#include "Metrics_LocalCache_T.i"
+#endif /* __ACE_INLINE__ */
+
#endif /* METRICS_LOCAL_CACHE_T_H */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp
index 71f0e444678..dd7f2de0b01 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Metrics/Metrics_Logger.h"
+#include "Metrics_Logger.h"
#include "ace/Auto_Ptr.h"
#include "ace/ace_wchar.h"
@@ -10,9 +10,8 @@ ACE_RCSID(Metrics_Logger, Metrics_Logger, "$Id$")
#if defined (ACE_ENABLE_TIMEPROBES) && defined (ACE_COMPILE_TIMEPROBES)
-static const int OPEN_CLOSE_BANNER_CYCLE = 4;
+const int OPEN_CLOSE_BANNER_CYCLE = 4;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
//////////////////////////////
// class TAO_Metrics_Logger //
@@ -865,7 +864,5 @@ TAO_Metrics_Logger::process_timeprobe_data (const Metrics::TimeprobeParameter_Se
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_ENABLE_TIMEPROBES & ACE_COMPILE_TIMEPROBES */
#endif /* ACE_METRICS_COLLECTION */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.h
index f836ca5faf3..3a1c3c0d0de 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Logger.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef METRICS_LOGGER_H
@@ -32,7 +30,7 @@
#include "orbsvcs/MetricsS.h"
#include "orbsvcs/RtecEventCommS.h"
-#include "orbsvcs/Metrics/Metrics_Utils.h"
+#include "Metrics_Utils.h"
#if defined (METRICS_LOGGER_SENDS_EVENTS)
#include "MetricsC.h"
@@ -43,8 +41,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Metrics_Export TAO_Metrics_Logger_Data
{
// = TITLE
@@ -216,8 +212,6 @@ TAO_METRICS_LOGGER_REF_SINGLETON;
typedef ACE_Singleton<TAO_Metrics_Logger, ACE_SYNCH_MUTEX>
TAO_METRICS_LOGGER_SINGLETON;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_ENABLE_TIMEPROBES & ACE_COMPILE_TIMEPROBES */
#endif /* ACE_METRICS_COLLECTION */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.cpp
index fe4ec645da8..d593c8aa5ca 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.cpp
@@ -3,14 +3,14 @@
#ifndef METRICS_UPCALL_MONITOR_CPP
#define METRICS_UPCALL_MONITOR_CPP
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor.h"
+#include "Metrics_UpcallMonitor.h"
#if defined (ACE_METRICS_COLLECTION)
#if defined (ACE_ENABLE_TIMEPROBES) && defined (ACE_COMPILE_TIMEPROBES)
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor.i"
+#include "Metrics_UpcallMonitor.i"
#endif /* __ACE_INLINE__ */
#else
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h
index 69dde8b966c..2d18b1678e1 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef METRICS_UPCALL_MONITOR_H
@@ -24,11 +22,9 @@
#include "orbsvcs/Time_Utilities.h"
#include "orbsvcs/MetricsS.h"
-#include "orbsvcs/Metrics/Metrics_LocalCache.h"
-#include "orbsvcs/Metrics/Metrics_FrameManager.h"
-#include "orbsvcs/Metrics/Metrics_Utils.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Metrics_LocalCache.h"
+#include "Metrics_FrameManager.h"
+#include "Metrics_Utils.h"
class TAO_Metrics_Export TAO_Metrics_UpcallMonitor
: public POA_Metrics::QoSMonitor
@@ -226,16 +222,13 @@ private:
// The monitor we're wrapping.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor.i"
+#include "Metrics_UpcallMonitor.i"
#endif /* __ACE_INLINE__ */
#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef TAO_Metrics_UpcallMonitorAdapter<ACE_SYNCH_MUTEX, ACE_New_Allocator>
TAO_METRICS_MONITOR_ADAPTER_TYPE;
@@ -256,8 +249,6 @@ typedef TAO_METRICS_MONITOR_ADAPTER_TYPE TAO_METRICS_MONITOR_ADAPTER;
typedef TAO_METRICS_MONITOR_SINGLETON_TYPE TAO_METRICS_MONITOR_SINGLETON;
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_ENABLE_TIMEPROBES & ACE_COMPILE_TIMEPROBES */
#endif /* ACE_METRICS_COLLECTION */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.i b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.i
index 9b028ba293b..41c3b8ff649 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.i
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor.i
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-//
// $Id$
// @METRICS@
@@ -15,7 +13,6 @@
# define METRICS_USES_OP_CANCELLATION
# endif /* ! METRICS_USES_OP_CANCELLATION */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/////////////////////////////////////
// Class TAO_Metrics_UpcallMonitor //
@@ -376,6 +373,4 @@ TAO_Metrics_ReportingUpcallMonitor::report_aggregate_QoS (
logger->log_aggregate_QoS (qos_set, interval);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* METRICS_UPCALL_MONITOR_I */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp
index 333b49c3ff6..7065e9bea6d 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp
@@ -3,15 +3,14 @@
#ifndef METRICS_UPCALL_MONITOR_T_CPP
#define METRICS_UPCALL_MONITOR_T_CPP
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.h"
+#include "Metrics_UpcallMonitor_T.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.i"
+#include "Metrics_UpcallMonitor_T.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Virtual destructor: destroy actual consumer if we own it.
+
template <class ACE_LOCK, class ALLOCATOR>
TAO_Metrics_UpcallMonitorAdapter<ACE_LOCK, ALLOCATOR>::
~TAO_Metrics_UpcallMonitorAdapter ()
@@ -22,7 +21,5 @@ TAO_Metrics_UpcallMonitorAdapter<ACE_LOCK, ALLOCATOR>::
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* METRICS_UPCALL_MONITOR_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.h
index e3873a65287..10bccb4f8e1 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef METRICS_UPCALL_MONITOR_T_H
@@ -13,8 +11,8 @@
#endif /* ! VXWORKS */
-#include "orbsvcs/Metrics/Metrics_LocalCache.h"
-#include "orbsvcs/Metrics/Metrics_FrameManager.h"
+#include "Metrics_LocalCache.h"
+#include "Metrics_FrameManager.h"
#include "ace/Hash_Map_Manager.h"
@@ -24,9 +22,6 @@
#include "orbsvcs/Metrics/Metrics_UpcallMonitor.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACE_LOCK, class ALLOCATOR>
class TAO_Metrics_UpcallMonitorAdapter
: public RtecEventComm::PushConsumer
@@ -146,19 +141,17 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.i"
-#endif /* __ACE_INLINE__ */
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Metrics/Metrics_UpcallMonitor_T.cpp"
+#include "Metrics_UpcallMonitor_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Metrics_UpcallMonitor_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+#if defined (__ACE_INLINE__)
+#include "Metrics_UpcallMonitor_T.i"
+#endif /* __ACE_INLINE__ */
+
#endif /* METRICS_UPCALL_MONITOR_T_H */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.i b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.i
index 3efda520d6f..33dd8d54bfb 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.i
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_UpcallMonitor_T.i
@@ -16,8 +16,6 @@
# endif /* ! METRICS_USES_OP_CANCELLATION */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
////////////////////////////////////////////
// class TAO_Metrics_UpcallMonitorAdapter //
////////////////////////////////////////////
@@ -258,6 +256,4 @@ TAO_Metrics_ReportingUpcallMonitorAdapter (
this->logger_);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* METRICS_UPCALL_MONITOR_T_I */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.cpp b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.cpp
index 99c51fe77b7..e4b4dab16bf 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.cpp
@@ -9,10 +9,11 @@
#include "ace/Metrics_Cache.h"
-#include "orbsvcs/Metrics/Metrics_Utils.h"
-#include "orbsvcs/Metrics/Metrics_LocalCache.h"
+#include "Metrics_Utils.h"
+#include "Metrics_LocalCache.h"
+
+
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/////////////////////////////
// Class TAO_Metrics_Utils //
@@ -520,10 +521,10 @@ WSOA_Metrics_Handles::WSOA_Metrics_Handles ()
#endif /* TAO_USES_REPORTING_METRICS */
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_Utils.i"
+#include "Metrics_Utils.i"
#endif /* __ACE_INLINE__ */
#else
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.h b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.h
index 5e0e0ebd36d..7b86fb1c94d 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef METRICS_UTILS_H
@@ -22,14 +20,12 @@
#include "ace/Singleton.h"
#include "orbsvcs/RtecSchedulerC.h"
#include "orbsvcs/MetricsC.h"
-#include "orbsvcs/Metrics/metrics_export.h"
+#include "metrics_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Metrics_Export TAO_Metrics_Utils
{
// = TITLE
@@ -175,10 +171,11 @@ PROBE_TYPE, \
METRICS_LOGGER_REF); \
} } while (0)
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Metrics/Metrics_Utils.i"
+#include "Metrics_Utils.i"
#endif /* __ACE_INLINE__ */
#endif /* ACE_ENABLE_TIMEPROBES & ACE_COMPILE_TIMEPROBES */
diff --git a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.i b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.i
index 04a77bddb52..e66bd0c7d62 100644
--- a/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.i
+++ b/TAO/orbsvcs/orbsvcs/Metrics/Metrics_Utils.i
@@ -1,12 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
#ifndef METRICS_UTILS_I
#define METRICS_UTILS_I
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////
// Class TAO_Metrics_Utils //
/////////////////////////////
@@ -34,6 +30,4 @@ TAO_Metrics_Utils::timeoutEvent (RtecScheduler::handle_t handle)
TAO_Metrics_Utils::timeoutEvent_ = handle;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* METRICS_UTILS_I */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp
index bee9ae0c932..951021dea65 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.cpp
@@ -3,20 +3,17 @@
#ifndef TAO_BINDINGS_ITERATOR_T_CPP
#define TAO_BINDINGS_ITERATOR_T_CPP
-#include "orbsvcs/Naming/Bindings_Iterator_T.h"
+#include "Bindings_Iterator_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ITERATOR, class TABLE_ENTRY>
-TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::TAO_Bindings_Iterator (
- TAO_Hash_Naming_Context *context,
- ITERATOR *hash_iter,
- PortableServer::POA_ptr poa,
- TAO_SYNCH_RECURSIVE_MUTEX &lock)
+TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::TAO_Bindings_Iterator (TAO_Hash_Naming_Context *context,
+ ITERATOR *hash_iter,
+ PortableServer::POA_ptr poa,
+ TAO_SYNCH_RECURSIVE_MUTEX &lock)
: destroyed_ (0),
context_ (context),
hash_iter_ (hash_iter),
@@ -39,16 +36,14 @@ TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::~TAO_Bindings_Iterator (void)
// Return the Default POA of this Servant
template <class ITERATOR, class TABLE_ENTRY> PortableServer::POA_ptr
-TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::_default_POA (
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED/*env*/)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
template <class ITERATOR, class TABLE_ENTRY> CORBA::Boolean
-TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_one (
- CosNaming::Binding_out b
- ACE_ENV_ARG_DECL)
+TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_one (CosNaming::Binding_out b
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CosNaming::Binding *binding;
@@ -104,10 +99,9 @@ TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_one (
}
template <class ITERATOR, class TABLE_ENTRY> CORBA::Boolean
-TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_n (
- CORBA::ULong how_many,
- CosNaming::BindingList_out bl
- ACE_ENV_ARG_DECL)
+TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::next_n (CORBA::ULong how_many,
+ CosNaming::BindingList_out bl
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
// We perform an allocation before obtaining the lock so that an out
@@ -200,9 +194,8 @@ TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::destroy (ACE_ENV_SINGLE_ARG_DECL)
}
template <class ITERATOR, class TABLE_ENTRY> int
-TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::populate_binding (
- TABLE_ENTRY *hash_entry,
- CosNaming::Binding &b)
+TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::populate_binding (TABLE_ENTRY *hash_entry,
+ CosNaming::Binding &b)
{
b.binding_type = hash_entry->int_id_.type_;
b.binding_name.length (1);
@@ -227,6 +220,4 @@ TAO_Bindings_Iterator<ITERATOR, TABLE_ENTRY>::populate_binding (
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_BINDINGS_ITERATOR_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h
index 6bed837d729..8247c6db8d2 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Bindings_Iterator_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Bindings_Iterator_T.h
@@ -15,10 +14,7 @@
#define TAO_BINDINGS_ITERATOR_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Naming/Hash_Naming_Context.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Hash_Naming_Context.h"
/**
* @class TAO_Bindings_Iterator
@@ -131,10 +127,8 @@ private:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Naming/Bindings_Iterator_T.cpp"
+#include "Bindings_Iterator_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp b/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp
index 5fddba2a270..965839c7a93 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Entries.cpp
@@ -13,13 +13,10 @@
//
// ============================================================================
-#include "orbsvcs/Naming/Entries.h"
+#include "Entries.h"
ACE_RCSID(Naming, Entries, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IntId::TAO_IntId (void)
: type_ (CosNaming::nobject)
{
@@ -123,5 +120,3 @@ TAO_ExtId::hash (void) const
return temp.hash ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Entries.h b/TAO/orbsvcs/orbsvcs/Naming/Entries.h
index e41d9bdf258..26f4d5703b3 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Entries.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Entries.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,9 +24,7 @@
#include "ace/SString.h"
#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/Naming/naming_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "naming_serv_export.h"
/**
* @class TAO_IntId
@@ -133,7 +131,5 @@ public:
const char * kind (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ENTRIES_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp b/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp
index 403e105bf7d..ae4dcfe9e4c 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp
@@ -3,15 +3,14 @@
//-----------------------------------------------------------------------------
// Flat File class implementations
//-----------------------------------------------------------------------------
-#include "orbsvcs/Naming/Flat_File_Persistence.h"
+#include "Flat_File_Persistence.h"
+#include "ace/config-all.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_sys_stat.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_fcntl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_NS_FlatFileStream::TAO_NS_FlatFileStream (const ACE_CString & file,
const char * mode)
: fl_ (0)
@@ -32,7 +31,7 @@ void
TAO_NS_FlatFileStream::remove ()
{
ACE_TRACE("remove");
- ACE_OS::unlink(ACE_TEXT_CHAR_TO_TCHAR(file_.c_str()));
+ ACE_OS::unlink(ACE_TEXT_TO_TCHAR_IN(file_.c_str()));
}
int
@@ -60,21 +59,21 @@ TAO_NS_FlatFileStream::open()
if( strchr(mode_.c_str(), 'c') )
flags |= O_CREAT;
#ifndef ACE_WIN32
- if( ACE_OS::flock_init (&filelock_, flags, ACE_TEXT_CHAR_TO_TCHAR(file_.c_str()), 0666) != 0 )
+ if( ACE_OS::flock_init (&filelock_, flags, ACE_TEXT_TO_TCHAR_IN(file_.c_str()), 0666) != 0 )
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open file %s for mode %s: (%d) %s\n",
file_.c_str(), mode_.c_str(),
errno, ACE_OS::strerror(errno)),
-1);
#else
- if( (filelock_.handle_= ACE_OS::open (ACE_TEXT_CHAR_TO_TCHAR(file_.c_str()), flags, 0)) == ACE_INVALID_HANDLE )
+ if( (filelock_.handle_= ACE_OS::open (ACE_TEXT_TO_TCHAR_IN(file_.c_str()), flags, 0)) == ACE_INVALID_HANDLE )
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open file %s for mode %s: (%d) %s\n",
file_.c_str(), mode_.c_str(),
errno, ACE_OS::strerror(errno)),
-1);
#endif
- this->fl_ = ACE_OS::fdopen(filelock_.handle_, ACE_TEXT_CHAR_TO_TCHAR(fdmode));
+ this->fl_ = ACE_OS::fdopen(filelock_.handle_, ACE_TEXT_TO_TCHAR_IN(fdmode));
if (this->fl_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot fdopen file %s for mode %s: (%d) %s\n",
@@ -247,9 +246,7 @@ TAO_NS_FlatFileStream::operator >>(
return *this;
}
char *id = new char[bufSize+1];
- //char *id;
- //ACE_NEW_RETURN (id, char[bufSize+1], 1);
- if (ACE_OS::fgets(ACE_TEXT_CHAR_TO_TCHAR(id), bufSize+1, fl_) == 0 &&
+ if (ACE_OS::fgets(id, bufSize+1, fl_) == 0 &&
bufSize != 0)
{
this->setstate (badbit);
@@ -270,9 +267,7 @@ TAO_NS_FlatFileStream::operator >>(
return *this;
}
char *kind = new char[bufSize+1];
- //char *kind;
- //ACE_NEW (kind, char[bufSize+1]);
- if (ACE_OS::fgets(ACE_TEXT_CHAR_TO_TCHAR(kind), bufSize+1, fl_) == 0 &&
+ if (ACE_OS::fgets(kind, bufSize+1, fl_) == 0 &&
bufSize != 0)
{
this->setstate (badbit);
@@ -294,9 +289,7 @@ TAO_NS_FlatFileStream::operator >>(
return *this;
}
char *ref = new char[bufSize+1];
- //char *ref;
- //ACE_NEW(ref, char[bufSize+1]);
- if (ACE_OS::fgets(ACE_TEXT_CHAR_TO_TCHAR(ref), bufSize+1, fl_) == 0 &&
+ if (ACE_OS::fgets(ref, bufSize+1, fl_) == 0 &&
bufSize != 0)
{
this->setstate (badbit);
@@ -346,17 +339,15 @@ TAO_NS_FlatFileStream::operator >>(
}
-TAO_Storable_Base *
-TAO_NS_FlatFileFactory::create_stream (const ACE_CString & file,
- const ACE_TCHAR * mode)
+TAO_Storable_Base *TAO_NS_FlatFileFactory::create_stream(
+ const ACE_CString & file,
+ const ACE_TCHAR * mode)
{
ACE_TRACE("TAO_NS_FlatFileFactory::create_stream");
TAO_Storable_Base *stream = 0;
ACE_NEW_RETURN (stream,
- TAO_NS_FlatFileStream(file, ACE_TEXT_ALWAYS_CHAR (mode)),
+ TAO_NS_FlatFileStream(file, ACE_TEXT_TO_CHAR_IN (mode)),
0);
return stream;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.h b/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.h
index 8c76dbc99a3..242a49d531d 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Flat_File_Persistence.h
@@ -13,11 +12,9 @@
#ifndef TAO_FLAT_FILE_PERSISTENCE_H
#define TAO_FLAT_FILE_PERSISTENCE_H
-#include "orbsvcs/Naming/Storable.h"
+#include "Storable.h"
#include "ace/OS_NS_stdio.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//------------------------------------------------------------------------
// The Flat File concrete classes
//------------------------------------------------------------------------
@@ -90,6 +87,5 @@ public:
const ACE_TCHAR * mode);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp
index 3cb59bd6da9..6caa0472771 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.cpp
@@ -13,8 +13,8 @@
//
// ============================================================================
-#include "orbsvcs/Naming/Hash_Naming_Context.h"
-#include "orbsvcs/Naming/nsconf.h"
+#include "Hash_Naming_Context.h"
+#include "nsconf.h"
#include "ace/Auto_Ptr.h"
ACE_RCSID (Naming,
@@ -22,8 +22,6 @@ ACE_RCSID (Naming,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// -------------------------------------------------
TAO_Bindings_Map::~TAO_Bindings_Map (void)
@@ -156,6 +154,9 @@ TAO_Hash_Naming_Context::bind (const CosNaming::Name& n,
}
ACE_CATCH (CORBA::TIMEOUT, timeoutEx)
{
+ ACE_PRINT_EXCEPTION (timeoutEx, "Hash_Naming_Context::bind(), Caught CORBA::TIMEOUT exception");
+ // throw a CannotProceed exception back to the client
+ //
ACE_TRY_THROW (CosNaming::NamingContext::CannotProceed
(context.in (), simple_name));
}
@@ -219,6 +220,9 @@ TAO_Hash_Naming_Context::rebind (const CosNaming::Name& n,
}
ACE_CATCH (CORBA::TIMEOUT, timeoutEx)
{
+ ACE_PRINT_EXCEPTION (timeoutEx, "Hash_Naming_Context::rebind(), Caught CORBA::TIMEOUT exception");
+ // throw a CannotProceed exception back to the client
+ //
ACE_TRY_THROW (CosNaming::NamingContext::CannotProceed
(context.in (), simple_name));
}
@@ -288,6 +292,7 @@ TAO_Hash_Naming_Context::bind_context (const CosNaming::Name &n,
}
ACE_CATCH (CORBA::TIMEOUT, timeoutEx)
{
+ ACE_PRINT_EXCEPTION (timeoutEx, "Hash_Naming_Context::bind_context (), Caught CORBA::TIMEOUT exception");
ACE_TRY_THROW (CosNaming::NamingContext::CannotProceed
(context.in (), simple_name));
}
@@ -351,6 +356,7 @@ TAO_Hash_Naming_Context::rebind_context (const CosNaming::Name &n,
}
ACE_CATCH (CORBA::TIMEOUT, timeoutEx)
{
+ ACE_PRINT_EXCEPTION (timeoutEx, "Hash_Naming_Context::rebind_context (), Caught CORBA::TIMEOUT exception");
ACE_TRY_THROW (CosNaming::NamingContext::CannotProceed
(context.in (), simple_name));
}
@@ -467,6 +473,9 @@ TAO_Hash_Naming_Context::resolve (const CosNaming::Name& n
}
ACE_CATCH (CORBA::TIMEOUT, timeoutEx)
{
+ ACE_PRINT_EXCEPTION (timeoutEx, "Hash_Naming_Context::resolve (), Caught CORBA::TIMEOUT exception");
+ // throw a CannotProceed exception back to the client
+ //
ACE_TRY_THROW (CosNaming::NamingContext::CannotProceed
(context.in (), rest_of_name));
}
@@ -518,6 +527,7 @@ TAO_Hash_Naming_Context::unbind (const CosNaming::Name& n
}
ACE_CATCH (CORBA::TIMEOUT, timeoutEx)
{
+ ACE_PRINT_EXCEPTION (timeoutEx, "Hash_Naming_Context::unbind (), Caught CORBA::TIMEOUT exception");
ACE_TRY_THROW (CosNaming::NamingContext::CannotProceed
(context.in (), simple_name));
}
@@ -676,5 +686,3 @@ TAO_Hash_Naming_Context::interface (void)
{
return this->interface_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h
index 21fb9d571f3..d3853190a0c 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Hash_Naming_Context.h
@@ -16,8 +16,8 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Naming/Naming_Context_Interface.h"
-#include "orbsvcs/Naming/naming_serv_export.h"
+#include "Naming_Context_Interface.h"
+#include "naming_serv_export.h"
#include "ace/Recursive_Thread_Mutex.h"
#include "ace/SString.h"
@@ -35,8 +35,6 @@
#undef interface
#endif // interface
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Bindings_Map
*
@@ -273,8 +271,6 @@ protected:
ACE_CString poa_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_HASH_NAMING_CONTEXT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp
index 8af72b358db..e45aacd76e1 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Naming/Naming_Client.h"
+#include "Naming_Client.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/Log_Msg.h"
@@ -8,8 +8,6 @@ ACE_RCSID (Naming,
Naming_Client,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CosNaming::NamingContext_ptr
TAO_Naming_Client::operator -> (void) const
{
@@ -63,5 +61,3 @@ TAO_Naming_Client::~TAO_Naming_Client (void)
{
// Do nothing
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.h b/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.h
index 56b48d7f37d..9f829de7de0 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Client.h
@@ -24,8 +24,6 @@
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/Naming/naming_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Naming_Client
*
@@ -72,7 +70,5 @@ protected:
CosNaming::NamingContext_var naming_context_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NAMING_CLIENT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp
index 809c1795a42..5b06cdc83f9 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.cpp
@@ -13,13 +13,11 @@
//
// ============================================================================
-#include "orbsvcs/Naming/Naming_Context_Interface.h"
+#include "Naming_Context_Interface.h"
#include "ace/ACE.h"
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_ctype.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Naming_Context::TAO_Naming_Context (TAO_Naming_Context_Impl *impl)
: impl_ (impl)
{
@@ -535,5 +533,3 @@ TAO_Naming_Context::resolve_str (const char * n
TAO_Naming_Context_Impl::~TAO_Naming_Context_Impl (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h b/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h
index 54140eb5e57..1c532b8f5d7 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Context_Interface.h
@@ -17,11 +17,9 @@
#include "orbsvcs/CosNamingS.h"
-#include "orbsvcs/Naming/naming_serv_export.h"
+#include "naming_serv_export.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Naming_Context_Impl;
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -415,8 +413,6 @@ public:
virtual PortableServer::POA_ptr _default_POA (void) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NAMING_CONTEXT_INTERFACE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp
index 6426cb81819..2a098d198c8 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.cpp
@@ -13,15 +13,12 @@
// Carlos O'Ryan <coryan@uci.edu>
// ================================================================
-#include "orbsvcs/Naming/Naming_Loader.h"
+#include "Naming_Loader.h"
#include "ace/Dynamic_Service.h"
#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Naming, Naming_Loader, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Naming_Loader::TAO_Naming_Loader (void)
{
// Constructor
@@ -93,6 +90,4 @@ TAO_Naming_Loader::create_object (CORBA::ORB_ptr orb,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_Naming_Serv, TAO_Naming_Loader)
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.h b/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.h
index 9f9543ce3f9..4e34848a46d 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Loader.h
@@ -1,8 +1,6 @@
-// -*- C++ -*-
-
// $Id$
-// ============================================================================
+// ===========================================================================================
// FILENAME
// Naming_Loader.h
//
@@ -13,7 +11,7 @@
// AUTHORS
// Priyanka Gontla <pgontla@ece.uci.edu>
//
-// ============================================================================
+// ==========================================================================================
#ifndef TAO_NAMING_LOADER_H
#define TAO_NAMING_LOADER_H
@@ -26,8 +24,6 @@
#include "orbsvcs/Naming/Naming_Server.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Naming_Serv_Export TAO_Naming_Loader : public TAO_Object_Loader
{
public:
@@ -60,12 +56,10 @@ public:
TAO_Naming_Server naming_server_;
private:
- TAO_Naming_Loader (const TAO_Naming_Loader &);
- TAO_Naming_Loader &operator = (const TAO_Naming_Loader &);
+ ACE_UNIMPLEMENTED_FUNC (TAO_Naming_Loader (const TAO_Naming_Loader &))
+ ACE_UNIMPLEMENTED_FUNC (TAO_Naming_Loader &operator = (const TAO_Naming_Loader &))
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (TAO_Naming_Serv, TAO_Naming_Loader)
#endif /* TAO_NAMING_LOADER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp
index 5ea0c3bbc03..495eafbdb3b 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/Naming/Naming_Server.h"
-#include "orbsvcs/Naming/Transient_Naming_Context.h"
-#include "orbsvcs/Naming/Persistent_Context_Index.h"
-#include "orbsvcs/Naming/Storable_Naming_Context.h"
-#include "orbsvcs/Naming/Storable_Naming_Context_Activator.h"
-#include "orbsvcs/Naming/Flat_File_Persistence.h"
+#include "Naming_Server.h"
+#include "Transient_Naming_Context.h"
+#include "Persistent_Context_Index.h"
+#include "Storable_Naming_Context.h"
+#include "Storable_Naming_Context_Activator.h"
+#include "Flat_File_Persistence.h"
#include "orbsvcs/CosNamingC.h"
#include "tao/debug.h"
@@ -13,11 +13,7 @@
#include "tao/ORB_Core.h"
#include "tao/IORTable/IORTable.h"
-
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#include "tao/Messaging/Messaging.h"
-#endif
-
#include "tao/AnyTypeCode/Any.h"
#include "ace/Arg_Shifter.h"
@@ -29,8 +25,6 @@ ACE_RCSID (Naming,
Naming_Server,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Naming_Server::TAO_Naming_Server (void)
: naming_context_ (),
ior_multicast_ (0),
@@ -171,7 +165,7 @@ int
TAO_Naming_Server::parse_args (int argc,
ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT("b:do:p:s:f:m:u:r:z:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (argc, argv, ACE_TEXT("b:do:p:s:f:m:u:r:z:"));
int c;
int size, result;
@@ -208,9 +202,9 @@ TAO_Naming_Server::parse_args (int argc,
this->context_size_ = size;
break;
case 'b':
- result = ::sscanf (ACE_TEXT_ALWAYS_CHAR (get_opts.opt_arg ()),
+ result = ::sscanf (ACE_TEXT_TO_CHAR_IN (get_opts.opt_arg ()),
#if ACE_SIZEOF_VOID_P == ACE_SIZEOF_LONG_LONG
- ACE_INT64_FORMAT_SPECIFIER,
+ ACE_UINT64_FORMAT_SPECIFIER_A,
#else
"%ld",
#endif /* ACE_SIZEOF_VOID_P */
@@ -654,7 +648,6 @@ TAO_Naming_Server::init_new_naming (CORBA::ORB_ptr orb,
ACE_UNUSED_ARG (enable_multicast);
#endif /* ACE_HAS_IP_MULTICAST */
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
if (use_round_trip_timeout == 1)
{
TimeBase::TimeT roundTripTimeoutVal = round_trip_timeout;
@@ -682,9 +675,6 @@ TAO_Naming_Server::init_new_naming (CORBA::ORB_ptr orb,
ACE_TRY_CHECK;
polList[0] = CORBA::Policy::_nil ();
}
-#else
- ACE_UNUSED_ARG (use_round_trip_timeout);
-#endif /* TAO_HAS_CORBA_MESSAGING */
}
ACE_CATCHANY
{
@@ -764,5 +754,3 @@ TAO_Naming_Server::~TAO_Naming_Server (void)
delete this->servant_activator_;
#endif /* TAO_HAS_MINIMUM_POA */
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.h b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.h
index 5d7c3919fb6..9777c7244d5 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Server.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -11,7 +11,7 @@
*
* @author Nagarajan Surendran (naga@cs.wustl.edu)
* @author Matt Braun <mjb2@cs.wustl.edu>
- * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>.
+ * @author and Douglas C. Schmidt <schmidt@cs.wustl.edu>.
*/
//=============================================================================
@@ -23,10 +23,8 @@
#include "tao/ORB.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/IOR_Multicast.h"
-#include "orbsvcs/Naming/Naming_Context_Interface.h"
-#include "orbsvcs/Naming/nsconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Naming_Context_Interface.h"
+#include "nsconf.h"
// Forward decl;
class TAO_Persistent_Context_Index;
@@ -233,7 +231,5 @@ protected:
int use_round_trip_timeout_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NAMING_SERVER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.cpp
index a9d8fd2b50b..eec01316dc3 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.cpp
@@ -13,8 +13,8 @@
// ============================================================================
-#ifndef NS_CONTAINER_CPP
-#define NS_CONTAINER_CPP
+#ifndef NS_CONTAINER_C
+#define NS_CONTAINER_C
#include "ace/Malloc_Base.h"
@@ -22,9 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Naming/Naming_Service_Container.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Naming_Service_Container.h"
ACE_ALLOC_HOOK_DEFINE(ACE_NS_Node)
@@ -369,6 +367,7 @@ ACE_Unbounded_List_Iterator<T>::operator!= (const ACE_Unbounded_List_Iterator<T>
//ACE_TRACE ("ACE_Unbounded_List_Iterator<T>::operator!=");
return (this->set_ != rhs.set_ || this->current_ != rhs.current_);
}
+/* -*- C++ -*- */
// ---
@@ -386,7 +385,5 @@ ACE_Unbounded_List<T>::is_full (void) const
return 0; // We should implement a "node of last resort for this..."
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* NS_CONTAINERS_T_CPP */
+#endif /* NS_CONTAINERS_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h b/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h
index 0d4a61f123f..7bd568a592a 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Service_Container.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Naming_Service_Container.h
@@ -22,21 +21,17 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/orbconf.h"
-
// Need by ACE_DLList_Node.
#include "ace/Containers.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// Forward declarations.
template <class T> class ACE_Unbounded_List;
template <class T> class ACE_Unbounded_List_Iterator;
+
/**
* @class ACE_NS_Node
*
@@ -49,6 +44,8 @@ public:
friend class ACE_Unbounded_List<T>;
friend class ACE_Unbounded_List_Iterator<T>;
+
+
# if ! defined (ACE_HAS_BROKEN_NOOP_DTORS)
/// This isn't necessary, but it keeps some compilers happy.
~ACE_NS_Node (void);
@@ -67,6 +64,10 @@ private:
T item_;
};
+
+
+
+
/**
* @class ACE_Unbounded_List_Iterator
*
@@ -220,10 +221,9 @@ private:
ACE_Allocator *allocator_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Naming/Naming_Service_Container.cpp"
+#include "Naming_Service_Container.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp
index 97c2407a6bb..c2563037d21 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Naming/Persistent_Context_Index.h"
-#include "orbsvcs/Naming/Persistent_Naming_Context.h"
+#include "Persistent_Context_Index.h"
+#include "Persistent_Naming_Context.h"
#include "tao/debug.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_unistd.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Persistent_Context_Index::unbind (const char *poa_id)
{
@@ -306,5 +304,3 @@ TAO_Persistent_Context_Index::create_index_helper (void *buffer)
this->index_ = new (buffer) CONTEXT_INDEX (this->allocator_);
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h
index 97bd7b76018..a524d5e39ac 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Context_Index.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,16 +15,14 @@
#define TAO_PERSISTENT_CONTEXT_INDEX_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Naming/Persistent_Entries.h"
-#include "orbsvcs/Naming/naming_serv_export.h"
-#include "orbsvcs/Naming/nsconf.h"
+#include "Persistent_Entries.h"
+#include "naming_serv_export.h"
+#include "nsconf.h"
#include "tao/PortableServer/PortableServer.h"
#include "ace/Malloc_T.h"
#include "ace/MMAP_Memory_Pool.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Persistent_Context_Index
*
@@ -165,7 +163,5 @@ private:
CosNaming::NamingContext_var root_context_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PERSISTENT_CONTEXT_INDEX_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp
index f5d31b0874c..355ccb73261 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.cpp
@@ -13,11 +13,9 @@
//
// ============================================================================
-#include "orbsvcs/Naming/Persistent_Entries.h"
+#include "Persistent_Entries.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Persistent_IntId::TAO_Persistent_IntId (void)
: ref_ (0),
type_ (CosNaming::nobject)
@@ -204,5 +202,3 @@ TAO_Persistent_Index_ExtId::hash (void) const
ACE_CString temp (poa_id_);
return temp.hash ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.h b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.h
index d418414a945..59a65b3dd85 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Entries.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,14 +17,12 @@
#include "ace/Hash_Map_With_Allocator_T.h"
#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/Naming/naming_serv_export.h"
+#include "naming_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Persistent_IntId
*
@@ -227,7 +225,5 @@ public:
const char * poa_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PERSISTENT_ENTRIES_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp
index 80b4a7f4aa7..4a0e122ff90 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/Naming/Persistent_Naming_Context.h"
-#include "orbsvcs/Naming/Persistent_Context_Index.h"
-#include "orbsvcs/Naming/Bindings_Iterator_T.h"
+#include "Persistent_Naming_Context.h"
+#include "Persistent_Context_Index.h"
+#include "Bindings_Iterator_T.h"
#include "ace/OS_NS_stdio.h"
// The following #pragma is needed to disable a warning that occurs
@@ -19,7 +19,6 @@ ACE_RCSID (Naming,
Persistent_Naming_Context,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
int
TAO_Persistent_Bindings_Map::unbind (const char *id,
@@ -537,5 +536,3 @@ TAO_Persistent_Naming_Context::list (CORBA::ULong how_many,
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.h b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.h
index 4ad3b2e61c0..d3baab97b89 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Persistent_Naming_Context.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Persistent_Naming_Context.h
@@ -15,11 +14,9 @@
#define TAO_PERSISTENT_NAMING_CONTEXT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Naming/Hash_Naming_Context.h"
-#include "orbsvcs/Naming/Persistent_Entries.h"
-#include "orbsvcs/Naming/naming_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Hash_Naming_Context.h"
+#include "Persistent_Entries.h"
+#include "naming_serv_export.h"
/**
* @class TAO_Persistent_Bindings_Map
@@ -32,8 +29,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* from persistent storage) to make bindings persistent and
* supports TAO_Bindings_Map interface. Used by TAO_Persistent_Naming_Context.
*/
-class TAO_Naming_Serv_Export TAO_Persistent_Bindings_Map
- : public TAO_Bindings_Map
+class TAO_Naming_Serv_Export TAO_Persistent_Bindings_Map : public TAO_Bindings_Map
{
public:
@@ -267,7 +263,5 @@ protected:
TAO_Persistent_Context_Index *index_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PERSISTENT_NAMING_CONTEXT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable.cpp b/TAO/orbsvcs/orbsvcs/Naming/Storable.cpp
index b04ee7c389d..8fdb58357be 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable.cpp
@@ -13,10 +13,10 @@
//
// ============================================================================
-#include "orbsvcs/Naming/Storable.h"
+#include "Storable.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/Naming/Storable.inl"
+#include "Storable.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable.h b/TAO/orbsvcs/orbsvcs/Naming/Storable.h
index b21cf124b71..4e82d203852 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable.h
@@ -1,34 +1,22 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Storable.h
*
* $Id$
*
- * @author Bruce Trask <trask_b@ociweb.com>
- * @author Chanaka Liyanaarachchi <chanaka@ociweb.com>
+ * @author Bruce Trask <trask_b@ociweb.com> Chanaka Liyanaarachchi <chanaka@ociweb.com>
*/
//=============================================================================
-#ifndef TAO_NAMING_STORABLE_H
-#define TAO_NAMING_STORABLE_H
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
+#ifndef STORABLE_H
+#define STORABLE_H
-#include "tao/Versioned_Namespace.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-static const int szInt = sizeof(int);
-static const int szChar = sizeof(char);
-static const int szBool = sizeof(int);
+const int szInt = sizeof(int);
+const int szChar = sizeof(char);
+const int szBool = sizeof(int);
class TAO_NS_Persistence_Header
{
@@ -156,10 +144,8 @@ public:
const ACE_TCHAR * mode) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Naming/Storable.inl"
+#include "Storable.inl"
#endif /* __ACE_INLINE_ */
-#endif /* TAO_NAMING_STORABLE_H */
+#endif
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable.inl b/TAO/orbsvcs/orbsvcs/Naming/Storable.inl
index 50a149a9c0c..c6eff092b53 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable.inl
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable.inl
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ============================================================================
//
@@ -15,8 +13,6 @@
//
// ============================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_NS_Persistence_Header::size (unsigned int size)
{
@@ -166,5 +162,3 @@ TAO_Storable_Base::fail (void) const
{
return (this->state_ & failbit);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp
index 467086d3cd6..3ae15097ad0 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/Naming/Storable_Naming_Context.h"
-#include "orbsvcs/Naming/Bindings_Iterator_T.h"
+#include "Storable_Naming_Context.h"
+#include "Bindings_Iterator_T.h"
#include "tao/debug.h"
@@ -16,18 +16,16 @@
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_stdio.h"
-ACE_RCSID (Naming,
- Storable_Naming_Context,
- "$Id$")
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const char * TAO_Storable_Naming_Context::root_name_;
ACE_UINT32 TAO_Storable_Naming_Context::gcounter_;
ACE_Auto_Ptr<TAO_Storable_Base> TAO_Storable_Naming_Context::gfl_;
int TAO_Storable_Naming_Context::redundant_;
+ACE_RCSID (Naming,
+ Storable_Naming_Context,
+ "$Id$")
+
TAO_Storable_IntId::TAO_Storable_IntId (void)
: ref_ (CORBA::string_dup ("")),
type_ (CosNaming::nobject)
@@ -422,7 +420,7 @@ File_Open_Lock_and_Check::File_Open_Lock_and_Check(
file_name += context->name_;
// Create the stream
- fl_ = context->factory_->create_stream(file_name, ACE_TEXT_CHAR_TO_TCHAR(mode));
+ fl_ = context->factory_->create_stream(file_name, ACE_TEXT_TO_TCHAR_IN(mode));
if (TAO_Storable_Naming_Context::redundant_)
{
if (fl_->open() != 0)
@@ -534,7 +532,7 @@ TAO_Storable_Naming_Context::TAO_Storable_Naming_Context (
name_ (poa_id),
poa_ (PortableServer::POA::_duplicate (poa)),
factory_(factory),
- persistence_directory_ (ACE_TEXT_ALWAYS_CHAR(persistence_directory)),
+ persistence_directory_ (ACE_TEXT_TO_CHAR_IN(persistence_directory)),
hash_table_size_(hash_table_size),
last_changed_(0)
{
@@ -725,7 +723,7 @@ TAO_Storable_Naming_Context::new_context (ACE_ENV_SINGLE_ARG_DECL)
poa_id,
this->storable_context_->total_size (),
this->factory_,
- ACE_TEXT_CHAR_TO_TCHAR (this->persistence_directory_.c_str ()),
+ ACE_TEXT_TO_TCHAR_IN (this->persistence_directory_.c_str ()),
&new_context
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (CosNaming::NamingContext::_nil ());
@@ -1456,12 +1454,7 @@ TAO_Storable_Naming_Context::list (CORBA::ULong how_many,
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/Naming/Naming_Service_Container.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+#include "Naming_Service_Container.h"
CosNaming::NamingContext_ptr TAO_Storable_Naming_Context::recreate_all(
CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
@@ -1499,8 +1492,8 @@ CosNaming::NamingContext_ptr TAO_Storable_Naming_Context::recreate_all(
// Now does this already exist on disk?
ACE_TString file_name(persistence_directory);
file_name += ACE_TEXT("/");
- file_name += ACE_TEXT_CHAR_TO_TCHAR(poa_id);
- ACE_Auto_Ptr<TAO_Storable_Base> fl (factory->create_stream(ACE_TEXT_ALWAYS_CHAR(file_name.c_str()), ACE_TEXT("r")));
+ file_name += ACE_TEXT_TO_TCHAR_IN(poa_id);
+ ACE_Auto_Ptr<TAO_Storable_Base> fl (factory->create_stream(ACE_TEXT_TO_CHAR_IN(file_name.c_str()), ACE_TEXT("r")));
if (fl->exists())
{
// Load the map from disk
@@ -1524,7 +1517,7 @@ CosNaming::NamingContext_ptr TAO_Storable_Naming_Context::recreate_all(
file_name += ACE_TEXT("_global");
// Create the stream for the counter used to uniquely creat context names
- gfl_.reset(factory->create_stream(ACE_TEXT_ALWAYS_CHAR(file_name.c_str()), ACE_TEXT("crw")));
+ gfl_.reset(factory->create_stream(ACE_TEXT_TO_CHAR_IN(file_name.c_str()), ACE_TEXT("crw")));
if (gfl_->open() != 0)
{
delete gfl_.release();
@@ -1546,5 +1539,3 @@ CosNaming::NamingContext_ptr TAO_Storable_Naming_Context::recreate_all(
return result._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h
index 87f8bb203a2..a8d6c62f634 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context.h
@@ -14,18 +14,15 @@
#define TAO_STORABLE_NAMING_CONTEXT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Naming/Hash_Naming_Context.h"
+#include "Hash_Naming_Context.h"
#include "ace/Hash_Map_Manager.h"
-#include "ace/Auto_Ptr.h"
-#include "orbsvcs/Naming/Storable.h"
+#include "Storable.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Naming_Serv_Export TAO_Storable_IntId
{
public:
@@ -468,7 +465,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_STORABLE_NAMING_CONTEXT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.cpp b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.cpp
index b2bb63bf6cf..306b7bd00a6 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.cpp
@@ -12,21 +12,19 @@
//
// ============================================================================
-#include "orbsvcs/Naming/Storable_Naming_Context_Activator.h"
+#include "Storable_Naming_Context_Activator.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-#include "orbsvcs/Naming/Naming_Context_Interface.h"
-#include "orbsvcs/Naming/Storable_Naming_Context.h"
-#include "orbsvcs/Naming/Storable.h"
+#include "Naming_Context_Interface.h"
+#include "Storable_Naming_Context.h"
+#include "Storable.h"
#include "ace/Auto_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Storable_Naming_Context_Activator::TAO_Storable_Naming_Context_Activator (
- CORBA::ORB_ptr orb,
- TAO_Naming_Service_Persistence_Factory *factory,
- const ACE_TCHAR *persistence_directory,
- size_t context_size)
+TAO_Storable_Naming_Context_Activator::
+TAO_Storable_Naming_Context_Activator (CORBA::ORB_ptr orb,
+ TAO_Naming_Service_Persistence_Factory *factory,
+ const ACE_TCHAR *persistence_directory,
+ size_t context_size)
: orb_(orb),
factory_(factory),
persistence_directory_(persistence_directory),
@@ -40,10 +38,9 @@ TAO_Storable_Naming_Context_Activator::~TAO_Storable_Naming_Context_Activator ()
}
PortableServer::Servant
-TAO_Storable_Naming_Context_Activator::incarnate (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
+TAO_Storable_Naming_Context_Activator::incarnate (const PortableServer::ObjectId &oid,
+ PortableServer::POA_ptr poa
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableServer::ForwardRequest))
{
@@ -62,8 +59,8 @@ TAO_Storable_Naming_Context_Activator::incarnate (
// Does this already exist on disk?
ACE_TString file_name(persistence_directory_);
file_name += ACE_TEXT("/");
- file_name += ACE_TEXT_CHAR_TO_TCHAR(poa_id.in());
- TAO_Storable_Base * fl = factory_->create_stream(ACE_TEXT_ALWAYS_CHAR(file_name.c_str()), ACE_TEXT("rw"));
+ file_name += ACE_TEXT_TO_TCHAR_IN(poa_id.in());
+ TAO_Storable_Base * fl = factory_->create_stream(ACE_TEXT_TO_CHAR_IN(file_name.c_str()), ACE_TEXT("rw"));
if (!fl->exists()) {
ACE_THROW_RETURN (CORBA::OBJECT_NOT_EXIST (),
0);
@@ -106,13 +103,12 @@ TAO_Storable_Naming_Context_Activator::incarnate (
}
void
-TAO_Storable_Naming_Context_Activator::etherealize (
- const PortableServer::ObjectId &/*oid*/,
- PortableServer::POA_ptr /*adapter*/,
- PortableServer::Servant servant,
- CORBA::Boolean /*cleanup_in_progress*/,
- CORBA::Boolean remaining_activations
- ACE_ENV_ARG_DECL_NOT_USED)
+TAO_Storable_Naming_Context_Activator::etherealize (const PortableServer::ObjectId &/*oid*/,
+ PortableServer::POA_ptr /*adapter*/,
+ PortableServer::Servant servant,
+ CORBA::Boolean /*cleanup_in_progress*/,
+ CORBA::Boolean remaining_activations
+ ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
if (!remaining_activations) {
@@ -120,6 +116,4 @@ TAO_Storable_Naming_Context_Activator::etherealize (
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA */
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.h b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.h
index d8799fd1137..e2bce0b2951 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Storable_Naming_Context_Activator.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -25,9 +24,7 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-#include "orbsvcs/Naming/naming_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "naming_serv_export.h"
class TAO_Naming_Service_Persistence_Factory;
@@ -83,8 +80,6 @@ private:
size_t context_size_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp
index 06eb43a44b5..8a81829332d 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.cpp
@@ -13,14 +13,12 @@
//
// ============================================================================
#include "ace/Auto_Ptr.h"
-#include "orbsvcs/Naming/Transient_Naming_Context.h"
-#include "orbsvcs/Naming/Bindings_Iterator_T.h"
+#include "Transient_Naming_Context.h"
+#include "Bindings_Iterator_T.h"
#include "ace/OS_NS_stdio.h"
ACE_RCSID(Naming, Transient_Naming_Context, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Transient_Bindings_Map::unbind (const char *id,
const char *kind)
@@ -340,5 +338,3 @@ TAO_Transient_Naming_Context::list (CORBA::ULong how_many,
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.h b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.h
index 2c3de8a61f3..94ba088fb30 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.h
+++ b/TAO/orbsvcs/orbsvcs/Naming/Transient_Naming_Context.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Transient_Naming_Context.h
@@ -15,17 +14,14 @@
#define TAO_TRANSIENT_NAMING_CONTEXT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Naming/Hash_Naming_Context.h"
-#include "orbsvcs/Naming/Entries.h"
+#include "Hash_Naming_Context.h"
+#include "Entries.h"
#include "ace/Hash_Map_Manager.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Transient_Bindings_Map
*
@@ -198,7 +194,5 @@ protected:
TAO_Transient_Bindings_Map *transient_context_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TRANSIENT_NAMING_CONTEXT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp b/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp
index 48a0a7d9de0..8cf67d318c6 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Admin.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/Notify/Admin.h"
+#include "Admin.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Admin.inl"
+#include "Admin.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
@@ -11,16 +11,16 @@ ACE_RCSID (Notify,
#include "orbsvcs/CosNotifyChannelAdminC.h"
-#include "orbsvcs/Notify/Container_T.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
-#include "orbsvcs/Notify/Save_Persist_Worker_T.h"
-#include "orbsvcs/Notify/Reconnect_Worker_T.h"
-#include "orbsvcs/Notify/Consumer_Map.h"
-#include "orbsvcs/Notify/Supplier_Map.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
+#include "Container_T.h"
+#include "Proxy.h"
+#include "EventChannel.h"
+#include "Topology_Saver.h"
+#include "Save_Persist_Worker_T.h"
+#include "Reconnect_Worker_T.h"
+#include "Consumer_Map.h"
+#include "Supplier_Map.h"
+#include "ConsumerAdmin.h"
+#include "SupplierAdmin.h"
#include "tao/debug.h"
@@ -29,16 +29,13 @@ ACE_RCSID (Notify,
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Admin::TAO_Notify_Admin ()
: ec_ (0)
, filter_operator_ (CosNotifyChannelAdmin::OR_OP)
, is_default_ (false)
{
- // Initialize all Admin objects to initially be subscribed for all
- // events. This is a reasonable default and is required to allow
- // Cos Event consumers/suppliers to send/receive events,
+ // Initialize all Admin objects to initially be subscribed for all events.
+ // This is a reasonable default and is required to allow Cos Event consumers/suppliers to send/receive events,
this->subscribed_types_.insert (TAO_Notify_EventType::special ());
}
@@ -94,9 +91,7 @@ TAO_Notify_Admin::subscribed_types (TAO_Notify_EventTypeSeq& subscribed_types AC
int
TAO_Notify_Admin::shutdown (ACE_ENV_SINGLE_ARG_DECL)
{
- int sd_ret = TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (1);
- if (sd_ret == 1)
+ if (TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return 1;
this->proxy_container().shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -119,44 +114,40 @@ TAO_Notify_Admin::save_persistent (TAO_Notify::Topology_Saver& saver ACE_ENV_ARG
this->self_changed_ = false;
if (is_persistent ())
- {
- TAO_Notify::NVPList attrs;
- this->save_attrs(attrs);
+ {
+ TAO_Notify::NVPList attrs;
+ this->save_attrs(attrs);
- const char* type = this->get_admin_type_name();
+ const char* type = this->get_admin_type_name();
- bool want_all_children =
- saver.begin_object(this->id(), type, attrs, changed
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ bool want_all_children =
+ saver.begin_object(this->id(), type, attrs, changed ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
- if (want_all_children || this->filter_admin_.is_changed ())
- {
- this->filter_admin_.save_persistent(saver ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- if (want_all_children || this->subscribed_types_.is_changed ())
- {
- this->subscribed_types_.save_persistent(saver ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- TAO_Notify::Save_Persist_Worker<TAO_Notify_Proxy>
- wrk(saver, want_all_children);
- this->proxy_container().collection()->for_each(&wrk
- ACE_ENV_ARG_PARAMETER);
+ if (want_all_children || this->filter_admin_.is_changed ())
+ {
+ this->filter_admin_.save_persistent(saver ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+ if (want_all_children || this->subscribed_types_.is_changed ())
+ {
+ this->subscribed_types_.save_persistent(saver ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
- saver.end_object(this->id(), type ACE_ENV_ARG_PARAMETER);
}
+
+ TAO_Notify::Save_Persist_Worker<TAO_Notify_Proxy> wrk(saver, want_all_children);
+ this->proxy_container().collection()->for_each(&wrk ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+
+ saver.end_object(this->id(), type ACE_ENV_ARG_PARAMETER);
+ }
}
void
TAO_Notify_Admin::save_attrs (TAO_Notify::NVPList& attrs)
{
TAO_Notify_Object::save_attrs(attrs);
- attrs.push_back(TAO_Notify::NVP("InterFilterGroupOperator",
- this->filter_operator_));
+ attrs.push_back(TAO_Notify::NVP("InterFilterGroupOperator", this->filter_operator_));
if (this->is_default_)
{
attrs.push_back (TAO_Notify::NVP ("default", "yes"));
@@ -172,42 +163,37 @@ TAO_Notify_Admin::load_attrs(const TAO_Notify::NVPList& attrs)
{
this->filter_operator_ = static_cast <CosNotifyChannelAdmin::InterFilterGroupOperator> (ACE_OS::atoi (value));
}
-
if (attrs.find ("default", value))
- {
- this->is_default_ = (ACE_OS::strcmp (value, "yes") == 0);
- }
+ {
+ this->is_default_ = (ACE_OS::strcmp (value, "yes") == 0);
+ }
}
TAO_Notify::Topology_Object*
TAO_Notify_Admin::load_child (const ACE_CString &type,
- CORBA::Long id,
- const TAO_Notify::NVPList& attrs
- ACE_ENV_ARG_DECL_NOT_USED)
+ CORBA::Long id, const TAO_Notify::NVPList& attrs ACE_ENV_ARG_DECL_NOT_USED)
{
ACE_UNUSED_ARG (attrs);
TAO_Notify::Topology_Object* result = this;
if (type == "subscriptions")
- {
- if (DEBUG_LEVEL)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Admin reload subscription %d\n"),
- static_cast<int> (id)
- ));
- // since we initialized our subscribed types to everything
- // in the constructor. we have to clear it out first.
- this->subscribed_types_.reset();
- result = &this->subscribed_types_;
- }
+ {
+ if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Admin reload subscription %d\n")
+ , static_cast<int> (id)
+ ));
+ // since we initialized our subscribed types to everything
+ // in the constructor. we have to clear it out first.
+ this->subscribed_types_.reset();
+ result = &this->subscribed_types_;
+ }
else if (type == "filter_admin")
- {
- if (DEBUG_LEVEL)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Admin reload filter_admin %d\n"),
- static_cast<int> (id)
- ));
- result = & this->filter_admin_;
- }
+ {
+ if (DEBUG_LEVEL) ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Admin reload filter_admin %d\n")
+ , static_cast<int> (id)
+ ));
+ result = & this->filter_admin_;
+ }
return result;
}
@@ -219,4 +205,3 @@ TAO_Notify_Admin::reconnect (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Admin.h b/TAO/orbsvcs/orbsvcs/Notify/Admin.h
index a7a9487c8c4..3af6e864fae 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Admin.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Admin.h
@@ -14,18 +14,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/FilterAdmin.h"
-#include "orbsvcs/Notify/EventTypeSeq.h"
-#include "orbsvcs/Notify/Topology_Object.h"
-#include "orbsvcs/Notify/EventChannel.h"
+#include "FilterAdmin.h"
+#include "EventTypeSeq.h"
+#include "Topology_Object.h"
+#include "EventChannel.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_Proxy;
template <class TYPE> class TAO_Notify_Container_T;
@@ -115,10 +114,8 @@ private:
ACE_Auto_Ptr< TAO_Notify_Proxy_Container > proxy_container_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Admin.inl"
+#include "Admin.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Admin.inl b/TAO/orbsvcs/orbsvcs/Notify/Admin.inl
index d7cb523081e..eef513ea103 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Admin.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Admin.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Notify_EventChannel *
TAO_Notify_Admin::event_channel () const
@@ -50,5 +46,3 @@ TAO_Notify_Admin::proxy_container()
ACE_ASSERT( proxy_container_.get() != 0 );
return *proxy_container_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp
index 37798f3088f..afb3a1cb63a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/AdminProperties.h"
+#include "AdminProperties.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/AdminProperties.inl"
+#include "AdminProperties.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
@@ -12,8 +12,6 @@ ACE_RCSID (Notify,
#include "orbsvcs/CosNotificationC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_AdminProperties::TAO_Notify_AdminProperties (void)
: max_global_queue_length_ (CosNotification::MaxQueueLength, 0)
, max_consumers_ (CosNotification::MaxConsumers, 0)
@@ -90,5 +88,3 @@ TAO_Notify_AdminProperties::queue_full (void)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.h b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.h
index 163e22dc13c..0361cfc5d46 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.h
@@ -14,16 +14,16 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/PropertySeq.h"
-#include "orbsvcs/Notify/Property_T.h"
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Property_Boolean.h"
+#include "PropertySeq.h"
+#include "Property_T.h"
+#include "Property.h"
+#include "Property_Boolean.h"
#include "tao/orbconf.h"
@@ -31,8 +31,6 @@
#include "ace/Bound_Ptr.h"
#include "ace/Condition_Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_AdminProperties
*
@@ -122,10 +120,8 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/AdminProperties.inl"
+#include "AdminProperties.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.inl b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.inl
index bc93ae89184..e88a34cec6a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/AdminProperties.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const TAO_Notify_Property_Long&
TAO_Notify_AdminProperties::max_global_queue_length (void) const
{
@@ -81,5 +77,3 @@ TAO_Notify_AdminProperties::suppliers (void)
{
return this->suppliers_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/AllocTracker.h b/TAO/orbsvcs/orbsvcs/Notify/AllocTracker.h
index e7b1b61ea8a..da60c80fa33 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/AllocTracker.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/AllocTracker.h
@@ -3,7 +3,7 @@
#define ALLOC_TRACKER_H
#include /**/"ace/pre.h"
-#include "orbsvcs/Notify/notify_export.h"
+#include "notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -72,7 +72,7 @@ private:
};
} //namespace
#define ACE_WIN32_HEAP_MONITOR(name) \
- CRT::CrtHeapDumper heap_check___(name); \
+ CrtHeapDumper heap_check___(name); \
ACE_UNUSED_ARG (heap_check___)
#else // _MSC_VER etc
#define ACE_WIN32_HEAP_MONITOR(name)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp
index 2c47a4225ef..2f09a9836a1 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/Any/AnyEvent.h"
+#include "AnyEvent.h"
ACE_RCSID (Notify, TAO_Notify_AnyEvent, "$Id$")
-#include "orbsvcs/Notify/Consumer.h"
+#include "../Consumer.h"
#include "tao/corba.h"
#include "tao/debug.h"
@@ -14,8 +14,6 @@ ACE_RCSID (Notify, TAO_Notify_AnyEvent, "$Id$")
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_EventType TAO_Notify_AnyEvent_No_Copy::event_type_;
TAO_Notify_AnyEvent_No_Copy::TAO_Notify_AnyEvent_No_Copy (const CORBA::Any &event)
@@ -94,7 +92,7 @@ TAO_Notify_AnyEvent_No_Copy::push_no_filtering (Event_Forwarder::ProxyPushSuppli
void
TAO_Notify_AnyEvent_No_Copy::marshal (TAO_OutputCDR & cdr) const
{
- const ACE_CDR::Octet ANY_CODE = MARSHAL_ANY;
+ static const ACE_CDR::Octet ANY_CODE = MARSHAL_ANY;
cdr.write_octet (ANY_CODE);
cdr << (*this->event_);
}
@@ -124,7 +122,7 @@ TAO_Notify_AnyEvent_No_Copy::copy (ACE_ENV_SINGLE_ARG_DECL) const
}
-/*****************************************************************************/
+/*****************************************************************************************************/
TAO_Notify_AnyEvent::TAO_Notify_AnyEvent (const CORBA::Any &event)
: TAO_Notify_AnyEvent_No_Copy (event)
@@ -136,5 +134,3 @@ TAO_Notify_AnyEvent::TAO_Notify_AnyEvent (const CORBA::Any &event)
TAO_Notify_AnyEvent::~TAO_Notify_AnyEvent ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.h b/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.h
index 49c5604065f..a66d994474c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/AnyEvent.h
@@ -14,20 +14,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/EventType.h"
+#include "../Event.h"
+#include "../EventType.h"
#include "orbsvcs/CosNotificationC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Consumer;
class TAO_Notify_AnyEvent;
/**
@@ -84,15 +81,14 @@ protected:
protected:
- // This must be a pointer rather than a reference, because the derived
- // class needs to redirect it to a new copy
+ /// Any Event
const CORBA::Any* event_;
/// Our event type.
static TAO_Notify_EventType event_type_;
};
-/****************************************************************************/
+/*****************************************************************************************************/
/**
* @class TAO_Notify_AnyEvent
@@ -114,8 +110,6 @@ protected:
CORBA::Any any_copy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_ANYEVENT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp
index bcaef713001..a68926d13da 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.cpp
@@ -1,17 +1,15 @@
// $Id$
-#include "orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h"
+#include "CosEC_ProxyPushConsumer.h"
ACE_RCSID (Notify, TAO_Notify_CosEC_ProxyPushConsumer, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Method_Request_Lookup.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Any/AnyEvent.h"
-#include "orbsvcs/Notify/Any/PushSupplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../AdminProperties.h"
+#include "../Method_Request_Lookup.h"
+#include "../Worker_Task.h"
+#include "AnyEvent.h"
+#include "PushSupplier.h"
TAO_Notify_CosEC_ProxyPushConsumer::TAO_Notify_CosEC_ProxyPushConsumer (void)
{
@@ -86,5 +84,3 @@ TAO_Notify_CosEC_ProxyPushConsumer::get_proxy_type_name (void) const
{
return "ec_proxy_push_consumer";
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h
index 4690fc1fcdd..47dfb5c400f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,15 +22,13 @@
#include "orbsvcs/CosEventChannelAdminS.h"
-#include "orbsvcs/Notify/ProxyConsumer_T.h"
+#include "../ProxyConsumer_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_CosEC_ProxyPushConsumer
*
@@ -75,8 +73,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp
index 694b6c378b5..b6bc7eaffcc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h"
+#include "CosEC_ProxyPushSupplier.h"
ACE_RCSID (Notify, TAO_Notify_CosEC_ProxyPushSupplier, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/Any/PushConsumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PushConsumer.h"
TAO_Notify_CosEC_ProxyPushSupplier::TAO_Notify_CosEC_ProxyPushSupplier (void)
{
@@ -61,5 +59,3 @@ TAO_Notify_CosEC_ProxyPushSupplier::get_proxy_type_name (void) const
{
return "ec_proxy_push_supplier";
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h
index 0858c51475e..a216d9f9527 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,15 +22,13 @@
#include "orbsvcs/CosEventChannelAdminS.h"
-#include "orbsvcs/Notify/ProxySupplier_T.h"
+#include "../ProxySupplier_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
template class TAO_Notify_Serv_Export
TAO_Notify_ProxySupplier_T<POA_CosEventChannelAdmin::ProxyPushSupplier>;
@@ -78,8 +76,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp
index 2ae0cda9608..4101bd52b2f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/Any/ProxyPushConsumer.h"
+#include "ProxyPushConsumer.h"
ACE_RCSID (Notify, TAO_Notify_ProxyPushConsumer, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Any/AnyEvent.h"
-#include "orbsvcs/Notify/Any/PushSupplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../AdminProperties.h"
+#include "../Properties.h"
+#include "AnyEvent.h"
+#include "PushSupplier.h"
TAO_Notify_ProxyPushConsumer::TAO_Notify_ProxyPushConsumer (void)
{
@@ -23,6 +21,7 @@ TAO_Notify_ProxyPushConsumer::~TAO_Notify_ProxyPushConsumer ()
void
TAO_Notify_ProxyPushConsumer::release (void)
{
+
delete this;
//@@ inform factory
}
@@ -100,35 +99,29 @@ TAO_Notify_ProxyPushConsumer::load_attrs (const TAO_Notify::NVPList& attrs)
{
SuperClass::load_attrs(attrs);
ACE_CString ior;
- if (attrs.load("PeerIOR", ior))
+ if (attrs.load("PeerIOR", ior) && ior.length() > 0)
+ {
+ CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
+ {
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CosNotifyComm::PushSupplier_var ps =
+ CosNotifyComm::PushSupplier::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ // minor hack: suppress generating subscription updates during reload.
+ bool save_updates = this->updates_off_;
+ this->updates_off_ = true;
+ this->connect_any_push_supplier(ps.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ this->updates_off_ = save_updates;
+ }
+ ACE_CATCHALL
{
- CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- ACE_TRY_CHECK;
- CosNotifyComm::PushSupplier_var ps = CosNotifyComm::PushSupplier::_nil();
- if ( ior.length() > 0 )
- {
- CORBA::Object_var obj =
- orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ps = CosNotifyComm::PushSupplier::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- // minor hack: suppress generating subscription updates during reload.
- bool save_updates = this->updates_off_;
- this->updates_off_ = true;
- this->connect_any_push_supplier(ps.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- this->updates_off_ = save_updates;
- }
- ACE_CATCHALL
- {
- ACE_ASSERT(0);
- }
- ACE_ENDTRY;
+ ACE_ASSERT(0);
}
+ ACE_ENDTRY;
+ }
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h
index 5d7bb8b4b8e..1766a878f1a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushConsumer.h
@@ -14,22 +14,20 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyChannelAdminS.h"
-#include "orbsvcs/Notify/ProxyConsumer_T.h"
+#include "../ProxyConsumer_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_ProxyPushConsumer
*
@@ -86,8 +84,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp
index d478b3253cc..10180736830 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Any/ProxyPushSupplier.h"
+#include "ProxyPushSupplier.h"
ACE_RCSID (Notify, TAO_Notify_ProxyPushSupplier, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/Any/PushConsumer.h"
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PushConsumer.h"
+#include "../Properties.h"
TAO_Notify_ProxyPushSupplier::TAO_Notify_ProxyPushSupplier (void)
{
@@ -21,6 +19,7 @@ TAO_Notify_ProxyPushSupplier::~TAO_Notify_ProxyPushSupplier ()
void
TAO_Notify_ProxyPushSupplier::release (void)
{
+
delete this;
//@@ inform factory
}
@@ -80,31 +79,24 @@ TAO_Notify_ProxyPushSupplier::load_attrs (const TAO_Notify::NVPList& attrs)
{
SuperClass::load_attrs(attrs);
ACE_CString ior;
- if (attrs.load("PeerIOR", ior))
+ if (attrs.load("PeerIOR", ior) && ior.length() > 0)
+ {
+ CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
{
- CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- CosNotifyComm::PushConsumer_var pc =
- CosNotifyComm::PushConsumer::_nil();
- if (ior.length() > 0)
- {
- CORBA::Object_var obj =
- orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- pc = CosNotifyComm::PushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- this->connect_any_push_consumer(pc.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // if we can't reconnect, tough...
- }
- ACE_ENDTRY;
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CosNotifyComm::PushConsumer_var pc =
+ CosNotifyComm::PushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ this->connect_any_push_consumer(pc.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
+ ACE_CATCHANY
+ {
+ // if we can't reconnect, tough...
+ }
+ ACE_ENDTRY;
+ }
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h
index e9450202c1c..82dd07722ad 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/ProxyPushSupplier.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,15 +23,13 @@
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/Event_ForwarderS.h"
-#include "orbsvcs/Notify/ProxySupplier_T.h"
+#include "../ProxySupplier_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
template class TAO_Notify_Serv_Export
TAO_Notify_ProxySupplier_T<POA_Event_Forwarder::ProxyPushSupplier>;
@@ -87,8 +85,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp
index 8048c1dcaa5..a912b7f5706 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/Any/PushConsumer.h"
+#include "PushConsumer.h"
ACE_RCSID (Notify,
TAO_Notify_PushConsumer,
@@ -8,10 +8,8 @@ ACE_RCSID (Notify,
#include "ace/Bound_Ptr.h"
#include "orbsvcs/CosEventCommC.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Event.h"
+#include "../Properties.h"
TAO_Notify_PushConsumer::TAO_Notify_PushConsumer (TAO_Notify_ProxySupplier* proxy)
:TAO_Notify_Consumer (proxy)
@@ -23,25 +21,15 @@ TAO_Notify_PushConsumer::~TAO_Notify_PushConsumer ()
}
void
-TAO_Notify_PushConsumer::init (CosEventComm::PushConsumer_ptr push_consumer
- ACE_ENV_ARG_DECL)
+TAO_Notify_PushConsumer::init (CosEventComm::PushConsumer_ptr push_consumer ACE_ENV_ARG_DECL)
{
- // Initialize only once
- ACE_ASSERT( CORBA::is_nil (this->push_consumer_.in()) );
-
- // push_consumer not optional
- if (CORBA::is_nil (push_consumer))
- {
- ACE_THROW (CORBA::BAD_PARAM());
- }
+ ACE_ASSERT ( push_consumer != 0 && this->push_consumer_.in() == 0 );
this->push_consumer_ = CosEventComm::PushConsumer::_duplicate (push_consumer);
ACE_TRY
{
- this->publish_ =
- CosNotifyComm::NotifyPublish::_narrow (push_consumer
- ACE_ENV_ARG_PARAMETER);
+ this->publish_ = CosNotifyComm::NotifyPublish::_narrow (push_consumer ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -83,22 +71,25 @@ TAO_Notify_PushConsumer::push (const CosNotification::EventBatch& event ACE_ENV_
// TODO exception?
}
-ACE_CString
-TAO_Notify_PushConsumer::get_ior (void) const
+
+
+bool
+TAO_Notify_PushConsumer::get_ior (ACE_CString & iorstr) const
{
- ACE_CString result;
+ bool result = false;
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- CORBA::String_var ior = orb->object_to_string(this->push_consumer_.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- result = static_cast<const char*> (ior.in ());
- }
+ {
+ CORBA::String_var ior = orb->object_to_string(this->push_consumer_.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ iorstr = static_cast<const char *> (ior.in ());
+ result = true;
+ }
ACE_CATCHANY
- {
- result.fast_clear();
- }
+ {
+ ACE_ASSERT(0);
+ }
ACE_ENDTRY;
return result;
}
@@ -107,12 +98,9 @@ void
TAO_Notify_PushConsumer::reconnect_from_consumer (TAO_Notify_Consumer* old_consumer
ACE_ENV_ARG_DECL)
{
- TAO_Notify_PushConsumer* tmp =
- dynamic_cast<TAO_Notify_PushConsumer*> (old_consumer);
+ TAO_Notify_PushConsumer* tmp = dynamic_cast<TAO_Notify_PushConsumer*> (old_consumer);
ACE_ASSERT(tmp != 0);
this->init(tmp->push_consumer_.in() ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
this->schedule_timer(false);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.h
index b6d8a5827e2..b159ad6e702 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushConsumer.h
@@ -13,16 +13,14 @@
#define TAO_Notify_PUSHCONSUMER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/Notify/Consumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Consumer.h"
/**
* @class TAO_Notify_PushConsumer
@@ -42,6 +40,7 @@ public:
/// Init
void init (CosEventComm::PushConsumer_ptr push_consumer ACE_ENV_ARG_DECL);
+
/// Push <event> to this consumer.
// virtual void push_i (const TAO_Notify_Event* event ACE_ENV_ARG_DECL);
@@ -55,7 +54,7 @@ public:
virtual void push (const CosNotification::EventBatch& event ACE_ENV_ARG_DECL);
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const;
+ virtual bool get_ior (ACE_CString & iorstr) const;
/// on reconnect we need to move events from the old consumer
/// to the new one
@@ -72,7 +71,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_PUSHCONSUMER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp
index e60246795e2..a554c4cc2cc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/Any/PushSupplier.h"
+#include "PushSupplier.h"
ACE_RCSID (Notify, TAO_Notify_PushSupplier, "$Id$")
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Properties.h"
TAO_Notify_PushSupplier::TAO_Notify_PushSupplier (TAO_Notify_ProxyConsumer* proxy)
:TAO_Notify_Supplier (proxy)
@@ -19,8 +17,8 @@ TAO_Notify_PushSupplier::~TAO_Notify_PushSupplier ()
void
TAO_Notify_PushSupplier::init (CosEventComm::PushSupplier_ptr push_supplier ACE_ENV_ARG_DECL)
{
- // TODO: verify single init call
- // push_supplier is optional
+ ACE_ASSERT (push_supplier != 0 && this->push_supplier_.in() == 0);
+
this->push_supplier_ = CosEventComm::PushSupplier::_duplicate (push_supplier);
ACE_TRY
@@ -41,25 +39,23 @@ TAO_Notify_PushSupplier::release (void)
delete this;
//@@ inform factory
}
-
-ACE_CString
-TAO_Notify_PushSupplier::get_ior (void) const
+bool
+TAO_Notify_PushSupplier::get_ior (ACE_CString & iorstr) const
{
- ACE_CString result;
+ bool result = false;
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- result = static_cast<const char*> (ior.in ());
+ iorstr = static_cast<const char *> (ior.in ());
+ result = true;
}
ACE_CATCHANY
{
- result.fast_clear();
+ ACE_ASSERT(0);
}
ACE_ENDTRY;
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.h
index 47b7c94d0a7..9c5cf56d9bc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Any/PushSupplier.h
@@ -13,7 +13,7 @@
#define TAO_Notify_PUSHSUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,9 +21,7 @@
#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/Notify/Supplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Supplier.h"
class TAO_Notify_ProxyConsumer;
@@ -45,8 +43,9 @@ public:
/// Init
void init (CosEventComm::PushSupplier_ptr push_supplier ACE_ENV_ARG_DECL);
+
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const;
+ virtual bool get_ior (ACE_CString & iorstr) const;
protected:
/// The Supplier
@@ -57,7 +56,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_PUSHSUPPLIER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.cpp b/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.cpp
index fd77791b525..b63c36326cc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.cpp
@@ -1,8 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/Bit_Vector.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Bit_Vector.h"
namespace TAO_Notify
{
@@ -110,5 +108,3 @@ Bit_Vector::find_first_bit_of(const size_t location, bool set)
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.h b/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.h
index 46f668814bf..b9f090dac6d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Bit_Vector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,20 +15,17 @@
#ifndef BIT_VECTOR_H
#define BIT_VECTOR_H
#include /**/ "ace/pre.h"
-
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
+#include "notify_serv_export.h"
#include "ace/Vector_T.h"
#include "ace/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -75,7 +72,5 @@ private:
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* BIT_VECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp
index 08b6a810187..500df2b2925 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.cpp
@@ -1,14 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/Buffering_Strategy.h"
+#include "Buffering_Strategy.h"
ACE_RCSID (Notify, Buffering_Strategy, "$Id$")
-#include "orbsvcs/Notify/Method_Request.h"
-#include "orbsvcs/Notify/Notify_Extensions.h"
-#include "orbsvcs/Notify/QoSProperties.h"
-#include "orbsvcs/Notify/Notify_Extensions.h"
+#include "Method_Request.h"
+#include "Notify_Extensions.h"
+#include "QoSProperties.h"
+#include "Notify_Extensions.h"
#include "orbsvcs/CosNotificationC.h"
#include "orbsvcs/Time_Utilities.h"
@@ -17,24 +17,22 @@ ACE_RCSID (Notify, Buffering_Strategy, "$Id$")
#include "ace/Message_Queue.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Buffering_Strategy::TAO_Notify_Buffering_Strategy (
TAO_Notify_Message_Queue& msg_queue,
- const TAO_Notify_AdminProperties::Ptr& admin_properties)
-: msg_queue_ (msg_queue)
-, admin_properties_ (admin_properties)
-, global_queue_lock_ (admin_properties->global_queue_lock ())
-, global_queue_length_ (admin_properties->global_queue_length ())
-, max_queue_length_ (admin_properties->max_global_queue_length ())
-, order_policy_ (CosNotification::OrderPolicy, CosNotification::AnyOrder)
-, discard_policy_ (CosNotification::DiscardPolicy, CosNotification::AnyOrder)
-, max_events_per_consumer_ (CosNotification::MaxEventsPerConsumer)
-, blocking_policy_ (TAO_Notify_Extensions::BlockingPolicy)
-, global_not_full_ (admin_properties->global_queue_not_full())
-, local_not_full_ (global_queue_lock_)
-, local_not_empty_ (global_queue_lock_)
-, shutdown_ (false)
+ TAO_Notify_AdminProperties::Ptr& admin_properties)
+ : msg_queue_ (msg_queue)
+ , admin_properties_ (admin_properties)
+ , global_queue_lock_ (admin_properties->global_queue_lock ())
+ , global_queue_length_ (admin_properties->global_queue_length ())
+ , max_queue_length_ (admin_properties->max_global_queue_length ())
+ , order_policy_ (CosNotification::OrderPolicy, CosNotification::AnyOrder)
+ , discard_policy_ (CosNotification::DiscardPolicy, CosNotification::AnyOrder)
+ , max_events_per_consumer_ (CosNotification::MaxEventsPerConsumer)
+ , blocking_policy_ (TAO_Notify_Extensions::BlockingPolicy)
+ , global_not_full_ (admin_properties->global_queue_not_full())
+ , local_not_full_ (global_queue_lock_)
+ , local_not_empty_ (global_queue_lock_)
+ , shutdown_ (false)
{
}
@@ -44,7 +42,7 @@ TAO_Notify_Buffering_Strategy::~TAO_Notify_Buffering_Strategy ()
void
TAO_Notify_Buffering_Strategy::update_qos_properties
- (const TAO_Notify_QoSProperties& qos_properties)
+(const TAO_Notify_QoSProperties& qos_properties)
{
this->order_policy_.set (qos_properties);
this->discard_policy_.set (qos_properties);
@@ -70,7 +68,7 @@ TAO_Notify_Buffering_Strategy::shutdown (void)
}
int
-TAO_Notify_Buffering_Strategy::enqueue (TAO_Notify_Method_Request_Queueable* method_request)
+TAO_Notify_Buffering_Strategy::enqueue (TAO_Notify_Method_Request_Queueable& method_request)
{
ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->global_queue_lock_, -1);
@@ -86,56 +84,54 @@ TAO_Notify_Buffering_Strategy::enqueue (TAO_Notify_Method_Request_Queueable* met
this->global_queue_length_ >= this->max_queue_length_.value ();
while (local_overflow || global_overflow)
+ {
+ if (blocking_policy_.is_valid())
{
- if (blocking_policy_.is_valid())
- {
- ACE_Time_Value timeout;
- ORBSVCS_Time::TimeT_to_Time_Value(timeout, blocking_policy_.value());
- // Condition variables take an absolute time
- timeout += ACE_OS::gettimeofday();
- if (local_overflow)
- {
- local_not_full_.wait(&timeout);
- }
- else
- {
- global_not_full_.wait(&timeout);
- }
- if (errno != ETIME)
- {
- local_overflow =
- this->max_events_per_consumer_.is_valid() &&
- static_cast <CORBA::Long> (this->msg_queue_.message_count ()) >= this->max_events_per_consumer_.value();
- global_overflow =
- this->max_queue_length_.value () != 0 &&
- this->global_queue_length_ >= this->max_queue_length_.value ();
- continue;
- }
- }
-
- discarded_existing = this->discard(method_request);
- if (discarded_existing)
- {
- --this->global_queue_length_;
- local_not_full_.signal();
- global_not_full_.signal();
- }
- break;
+ ACE_Time_Value timeout;
+ ORBSVCS_Time::TimeT_to_Time_Value(timeout, blocking_policy_.value());
+ // Condition variables take an absolute time
+ timeout += ACE_OS::gettimeofday();
+ if (local_overflow)
+ {
+ local_not_full_.wait(&timeout);
+ }
+ else
+ {
+ global_not_full_.wait(&timeout);
+ }
+ if (errno != ETIME)
+ {
+ local_overflow = this->max_events_per_consumer_.is_valid() &&
+ static_cast <CORBA::Long> (this->msg_queue_.message_count ()) >= this->max_events_per_consumer_.value();
+ global_overflow = this->max_queue_length_.value () != 0 &&
+ this->global_queue_length_ >= this->max_queue_length_.value ();
+ continue;
+ }
}
+ discarded_existing = this->discard(method_request);
+ if (discarded_existing)
+ {
+ --this->global_queue_length_;
+ local_not_full_.signal();
+ global_not_full_.signal();
+ }
+ break;
+ }
+
if (! (local_overflow || global_overflow) || discarded_existing)
+ {
+ if (this->queue (method_request) == -1)
{
- if (this->queue (method_request) == -1)
- {
- ACE_DEBUG((LM_DEBUG,
- "Notify (%P|%t) - Panic! failed to enqueue event\n"));
- return -1;
- }
+ if (! this->shutdown_)
+ ACE_DEBUG((LM_DEBUG, "Notify (%P|%t) - Panic! failed to enqueue event\n"));
+ return -1;
+ }
- ++this->global_queue_length_;
+ ++this->global_queue_length_;
- local_not_empty_.signal ();
- }
+ local_not_empty_.signal ();
+ }
return this->msg_queue_.message_count ();
}
@@ -150,15 +146,15 @@ TAO_Notify_Buffering_Strategy::dequeue (TAO_Notify_Method_Request_Queueable* &me
return -1;
while (this->msg_queue_.message_count () == 0)
- {
- this->local_not_empty_.wait (abstime);
+ {
+ this->local_not_empty_.wait (abstime);
- if (this->shutdown_)
- return -1;
+ if (this->shutdown_)
+ return -1;
- if (errno == ETIME)
- return 0;
- }
+ if (errno == ETIME)
+ return 0;
+ }
if (this->msg_queue_.dequeue (mb) == -1)
return -1;
@@ -176,7 +172,7 @@ TAO_Notify_Buffering_Strategy::dequeue (TAO_Notify_Method_Request_Queueable* &me
}
int
-TAO_Notify_Buffering_Strategy::queue (TAO_Notify_Method_Request_Queueable* method_request)
+TAO_Notify_Buffering_Strategy::queue (TAO_Notify_Method_Request_Queueable& method_request)
{
if ( this->shutdown_ )
return -1;
@@ -184,83 +180,80 @@ TAO_Notify_Buffering_Strategy::queue (TAO_Notify_Method_Request_Queueable* metho
CORBA::Short order = this->order_policy_.value();
if (! this->order_policy_.is_valid() ||
- order == CosNotification::AnyOrder ||
- order == CosNotification::FifoOrder)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - enqueue in fifo order\n"));
- return this->msg_queue_.enqueue_tail (method_request);
- }
+ order == CosNotification::AnyOrder ||
+ order == CosNotification::FifoOrder)
+ {
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - enqueue in fifo order\n"));
+ return this->msg_queue_.enqueue_tail (&method_request);
+ }
if (order == CosNotification::PriorityOrder)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - enqueue in priority order\n"));
- return this->msg_queue_.enqueue_prio (method_request);
- }
+ {
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - enqueue in priority order\n"));
+ return this->msg_queue_.enqueue_prio (&method_request);
+ }
if (order == CosNotification::DeadlineOrder)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - enqueue in deadline order\n"));
- return this->msg_queue_.enqueue_deadline (method_request);
- }
+ {
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - enqueue in deadline order\n"));
+ return this->msg_queue_.enqueue_deadline (&method_request);
+ }
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - Invalid order policy\n"));
- return this->msg_queue_.enqueue_tail (method_request);
+ return this->msg_queue_.enqueue_tail (&method_request);
}
bool
-TAO_Notify_Buffering_Strategy::discard (TAO_Notify_Method_Request_Queueable* method_request)
+TAO_Notify_Buffering_Strategy::discard (TAO_Notify_Method_Request_Queueable& method_request)
{
if (this->shutdown_)
- {
- return false;
- }
+ {
+ return false;
+ }
ACE_Message_Block* mb = 0;
int result = -1;
-
if (this->discard_policy_.is_valid() == 0 ||
- this->discard_policy_ == CosNotification::AnyOrder ||
- this->discard_policy_ == CosNotification::FifoOrder)
- {
- result = this->msg_queue_.dequeue_head (mb);
- }
+ this->discard_policy_ == CosNotification::AnyOrder ||
+ this->discard_policy_ == CosNotification::FifoOrder)
+ {
+ result = this->msg_queue_.dequeue_head (mb);
+ }
else if (this->discard_policy_ == CosNotification::LifoOrder)
- {
- // The most current message is NOT the newest one in the queue. It's
- // the one we're about to add to the queue.
- result = -1;
- }
+ {
+ // The most current message is NOT the newest one in the queue. It's
+ // the one we're about to add to the queue.
+ result = -1;
+ }
else if (this->discard_policy_ == CosNotification::DeadlineOrder)
- {
- result = this->msg_queue_.dequeue_deadline (mb);
- }
+ {
+ result = this->msg_queue_.dequeue_deadline (mb);
+ }
else if (this->discard_policy_ == CosNotification::PriorityOrder)
+ {
+ result = this->msg_queue_.dequeue_prio (mb);
+ if (mb->msg_priority() >= method_request.msg_priority())
{
- result = this->msg_queue_.dequeue_prio (mb);
- if (mb->msg_priority() >= method_request->msg_priority())
- {
- this->msg_queue_.enqueue_prio (mb);
- result = -1;
- }
+ this->msg_queue_.enqueue_prio (mb);
+ result = -1;
}
+ }
else
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - Invalid discard policy\n"));
- result = this->msg_queue_.dequeue_head (mb);
- }
+ {
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "Notify (%P|%t) - Invalid discard policy\n"));
+ result = this->msg_queue_.dequeue_head (mb);
+ }
if (result != -1)
- {
- ACE_Message_Block::release (mb);
- return true;
- }
+ {
+ ACE_Message_Block::release (mb);
+ return true;
+ }
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.h b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.h
index 7baa636a2d9..dce50b6cc63 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Buffering_Strategy.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,11 +25,9 @@
#include "orbsvcs/TimeBaseC.h"
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Property_T.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Property.h"
+#include "Property_T.h"
+#include "AdminProperties.h"
class TAO_Notify_Method_Request_Queueable;
class TAO_Notify_QoSProperties;
@@ -46,8 +44,8 @@ class TAO_Notify_Serv_Export TAO_Notify_Buffering_Strategy
{
public:
TAO_Notify_Buffering_Strategy (
- TAO_Notify_Message_Queue& msg_queue,
- const TAO_Notify_AdminProperties::Ptr& admin_properties);
+ TAO_Notify_Message_Queue& msg_queue,
+ TAO_Notify_AdminProperties::Ptr& admin_properties);
~TAO_Notify_Buffering_Strategy ();
@@ -55,11 +53,12 @@ public:
/// Order Policy
/// Discard Policy
/// MaxEventsPerConsumer
+ /// TAO_Notify_Extensions::BlockingPolicy
void update_qos_properties (const TAO_Notify_QoSProperties& qos_properties);
/// Enqueue according the enqueing strategy.
/// Return -1 on error else the number of items in the queue.
- int enqueue (TAO_Notify_Method_Request_Queueable* method_request);
+ int enqueue (TAO_Notify_Method_Request_Queueable& method_request);
/// Dequeue batch. This method will block for @a abstime if non-zero or else blocks till an item is available.
/// Return -1 on error or if nothing is available, else the number of items actually dequeued (1).
@@ -72,10 +71,10 @@ public:
private:
/// Apply the Order Policy and queue. return -1 on error.
- int queue (TAO_Notify_Method_Request_Queueable* method_request);
+ int queue (TAO_Notify_Method_Request_Queueable& method_request);
/// Discard as per the Discard Policy.
- bool discard (TAO_Notify_Method_Request_Queueable* method_request);
+ bool discard (TAO_Notify_Method_Request_Queueable& method_request);
///= Data Members
@@ -114,8 +113,6 @@ private:
bool shutdown_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_BUFFERING_STRATEGY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp b/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp
index bab9d61ecf0..d6b4fdb7318 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Builder.cpp
@@ -1,5 +1,5 @@
// $Id$
-#include "orbsvcs/Notify/Builder.h"
+#include "Builder.h"
ACE_RCSID (Notify,
Builder,
@@ -9,34 +9,32 @@ ACE_RCSID (Notify,
#include "tao/PortableServer/PortableServerC.h"
-#include "orbsvcs/Notify/Factory.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/POA_Helper.h"
-#include "orbsvcs/Notify/ID_Factory.h"
-#include "orbsvcs/Notify/EventChannelFactory.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Reactive_Task.h"
-#include "orbsvcs/Notify/ThreadPool_Task.h"
-#include "orbsvcs/Notify/FilterFactory.h"
-#include "orbsvcs/Notify/Object.h"
-#include "orbsvcs/Notify/EventType.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Any/AnyEvent.h"
-#include "orbsvcs/Notify/Any/ProxyPushConsumer.h"
-#include "orbsvcs/Notify/Any/ProxyPushSupplier.h"
-#include "orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h"
-#include "orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h"
-#include "orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h"
-#include "orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h"
-#include "orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h"
-#include "orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h"
-#include "orbsvcs/Notify/ETCL_FilterFactory.h"
-#include "orbsvcs/Notify/Container_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Factory.h"
+#include "Properties.h"
+#include "POA_Helper.h"
+#include "ID_Factory.h"
+#include "EventChannelFactory.h"
+#include "EventChannel.h"
+#include "SupplierAdmin.h"
+#include "ConsumerAdmin.h"
+#include "Worker_Task.h"
+#include "Reactive_Task.h"
+#include "ThreadPool_Task.h"
+#include "FilterFactory.h"
+#include "Object.h"
+#include "EventType.h"
+#include "Event.h"
+#include "Any/AnyEvent.h"
+#include "Any/ProxyPushConsumer.h"
+#include "Any/ProxyPushSupplier.h"
+#include "Any/CosEC_ProxyPushConsumer.h"
+#include "Any/CosEC_ProxyPushSupplier.h"
+#include "Structured/StructuredProxyPushConsumer.h"
+#include "Structured/StructuredProxyPushSupplier.h"
+#include "Sequence/SequenceProxyPushConsumer.h"
+#include "Sequence/SequenceProxyPushSupplier.h"
+#include "ETCL_FilterFactory.h"
+#include "Container_T.h"
template <class PROXY_IMPL,
class PROXY,
@@ -588,5 +586,3 @@ TAO_Notify_Builder::apply_lane_concurrency (TAO_Notify_Object& /*object*/, const
// No lane support
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Builder.h b/TAO/orbsvcs/orbsvcs/Notify/Builder.h
index 7ed2c219c65..737026ad329 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Builder.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,12 +23,11 @@
#include "orbsvcs/CosNotifyChannelAdminC.h"
#include "orbsvcs/NotifyExtC.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Topology_Object.h"
+#include "AdminProperties.h"
+#include "Topology_Object.h"
#include "tao/PortableServer/PortableServer.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_EventChannelFactory;
class TAO_Notify_EventChannel;
@@ -168,8 +167,6 @@ public:
);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_BUILDER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp
index 7b19b418ebc..2941ca9bbc9 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer.cpp
@@ -1,16 +1,16 @@
// $Id$
-#include "orbsvcs/Notify/Consumer.h"
+#include "Consumer.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Consumer.inl"
+#include "Consumer.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (RT_Notify, TAO_Notify_Consumer, "$Id$")
-#include "orbsvcs/Notify/Timer.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/Method_Request_Event.h"
+#include "Timer.h"
+#include "ProxySupplier.h"
+#include "Method_Request_Event.h"
#include "orbsvcs/Time_Utilities.h"
@@ -20,21 +20,20 @@ ACE_RCSID (RT_Notify, TAO_Notify_Consumer, "$Id$")
#include "ace/Bound_Ptr.h"
#include "ace/Unbounded_Queue.h"
+//#define DEBUG_LEVEL 10
#ifndef DEBUG_LEVEL
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
static const int DEFAULT_RETRY_TIMEOUT = 10;//120; // Note : This should be a config param or qos setting
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Consumer::TAO_Notify_Consumer (TAO_Notify_ProxySupplier* proxy)
-: proxy_ (proxy)
-, is_suspended_ (0)
-, pacing_ (proxy->qos_properties_.pacing_interval ())
-, max_batch_size_ (CosNotification::MaximumBatchSize, 0)
-, timer_id_ (-1)
-, timer_ (0)
+ : proxy_ (proxy)
+ , is_suspended_ (0)
+ , pacing_ (proxy->qos_properties_.pacing_interval ())
+ , max_batch_size_ (CosNotification::MaximumBatchSize, 0)
+ , timer_id_ (-1)
+ , timer_ (0)
{
Request_Queue* pending_events = 0;
ACE_NEW (pending_events, TAO_Notify_Consumer::Request_Queue ());
@@ -46,10 +45,10 @@ TAO_Notify_Consumer::TAO_Notify_Consumer (TAO_Notify_ProxySupplier* proxy)
TAO_Notify_Consumer::~TAO_Notify_Consumer ()
{
if (this->timer_.isSet())
- {
- this->cancel_timer ();
- this->timer_.reset ();
- }
+ {
+ this->cancel_timer ();
+ this->timer_.reset ();
+ }
}
TAO_Notify_Proxy*
@@ -77,13 +76,12 @@ TAO_Notify_Consumer::enqueue_request (
TAO_Notify_Method_Request_Event * request
ACE_ENV_ARG_DECL)
{
- TAO_Notify_Event::Ptr event (
- request->event ()->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER));
+ TAO_Notify_Event::Ptr event_var (
+ request->event ()->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER) );
ACE_CHECK;
-
TAO_Notify_Method_Request_Event_Queueable * queue_entry;
ACE_NEW_THROW_EX (queue_entry,
- TAO_Notify_Method_Request_Event_Queueable (*request, event),
+ TAO_Notify_Method_Request_Event_Queueable (*request, event_var),
CORBA::NO_MEMORY ());
ACE_CHECK;
@@ -103,20 +101,18 @@ TAO_Notify_Consumer::enqueue_if_necessary (TAO_Notify_Method_Request_Event * req
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, *this->proxy_lock (), false);
if (! this->pending_events().is_empty ())
{
- if (DEBUG_LEVEL > 3)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Consumer %d: enqueuing another event. %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- TAO_Notify_Event::Ptr event (
- request->event ()->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER));
+ if (DEBUG_LEVEL > 3)ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Consumer %d: enqueuing another event. %d\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ TAO_Notify_Event::Ptr event_var (
+ request->event ()->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER) );
ACE_CHECK_RETURN (false);
TAO_Notify_Method_Request_Event_Queueable * queue_entry;
ACE_NEW_THROW_EX (queue_entry,
- TAO_Notify_Method_Request_Event_Queueable (*request,
- event),
- CORBA::NO_MEMORY ());
+ TAO_Notify_Method_Request_Event_Queueable (*request, event_var),
+ CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (false);
this->pending_events().enqueue_tail (queue_entry);
this->schedule_timer (false);
@@ -124,20 +120,18 @@ TAO_Notify_Consumer::enqueue_if_necessary (TAO_Notify_Method_Request_Event * req
}
if (this->is_suspended_ == 1)
{
- if (DEBUG_LEVEL > 3)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Suspended Consumer %d enqueing event. %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- TAO_Notify_Event::Ptr event (
- request->event ()->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER));
+ if (DEBUG_LEVEL > 3) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Suspended Consumer %d enqueing event. %d\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ TAO_Notify_Event::Ptr event_var (
+ request->event ()->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER) );
ACE_CHECK_RETURN (false);
TAO_Notify_Method_Request_Event_Queueable * queue_entry;
ACE_NEW_THROW_EX (queue_entry,
- TAO_Notify_Method_Request_Event_Queueable (*request,
- event),
- CORBA::NO_MEMORY ());
+ TAO_Notify_Method_Request_Event_Queueable (*request, event_var),
+ CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (false);
this->pending_events().enqueue_tail (queue_entry);
this->schedule_timer (false);
@@ -147,8 +141,7 @@ TAO_Notify_Consumer::enqueue_if_necessary (TAO_Notify_Method_Request_Event * req
}
void
-TAO_Notify_Consumer::deliver (TAO_Notify_Method_Request_Event * request
- ACE_ENV_ARG_DECL)
+TAO_Notify_Consumer::deliver (TAO_Notify_Method_Request_Event * request ACE_ENV_ARG_DECL)
{
// Increment reference counts (safely) to prevent this object and its proxy
// from being deleted while the push is in progress.
@@ -159,62 +152,56 @@ TAO_Notify_Consumer::deliver (TAO_Notify_Method_Request_Event * request
{
DispatchStatus status = this->dispatch_request (request);
switch (status)
- {
+ {
case DISPATCH_SUCCESS:
- {
- request->complete ();
- break;
- }
+ {
+ request->complete ();
+ break;
+ }
case DISPATCH_RETRY:
- {
- if (DEBUG_LEVEL > 1)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Consumer %d enqueing event %d due ")
- ACE_TEXT ("to failed dispatch.\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()));
- this->enqueue_request (request ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- this->schedule_timer (true);
- break;
- }
+ {
+ if (DEBUG_LEVEL > 1) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Consumer %d enqueing event %d due to failed dispatch.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()));
+ this->enqueue_request (request ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
+ this->schedule_timer (true);
+ break;
+ }
case DISPATCH_DISCARD:
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Consumer %d: Error during direct dispatch. Discarding event:%d.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ request->complete ();
+ break;
+ }
+ case DISPATCH_FAIL:
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Consumer %d: Failed during direct dispatch :%d. Discarding event.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ request->complete ();
+ ACE_DECLARE_NEW_ENV;
+ ACE_TRY
{
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Consumer %d: Error during "
- "direct dispatch. Discarding event:%d.\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- request->complete ();
- break;
+ this->proxy_supplier ()->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
- case DISPATCH_FAIL:
+ ACE_CATCHANY
{
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Consumer %d: Failed during "
- "direct dispatch :%d. Discarding event.\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- request->complete ();
- ACE_DECLARE_NEW_ENV;
- ACE_TRY
- {
- this->proxy_supplier ()->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // todo is there something meaningful we can do here?
- ;
- }
- ACE_ENDTRY;
- break;
+ // todo is there something meaningful we can do here?
+ ;
}
+ ACE_ENDTRY;
+ break;
}
+ }
}
}
@@ -224,133 +211,99 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request
DispatchStatus result = DISPATCH_SUCCESS;
ACE_DECLARE_NEW_ENV;
ACE_TRY
- {
- request->event ()->push (this ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- if (DEBUG_LEVEL > 8)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Consumer %d dispatched single event %d.\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- }
+ {
+ request->event ()->push (this ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ if (DEBUG_LEVEL > 8) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Consumer %d dispatched single event %d.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ }
ACE_CATCH (CORBA::OBJECT_NOT_EXIST, ex)
- {
- if (DEBUG_LEVEL > 0)
- {
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push "
- "(request) %s\n"),
- static_cast<int> (this->proxy ()->id ()),
- ex._info ().c_str ()
- ));
- }
- result = DISPATCH_FAIL;
- }
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) OBJECT_NOT_EXIST %s\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ ex._info ().c_str ()
+ ));
+ result = DISPATCH_FAIL;
+ }
ACE_CATCH (CORBA::TRANSIENT, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push "
- "(request) Transient (minor=%d) %s\n"),
- static_cast<int> (this->proxy ()->id ()),
- ex.minor (),
- ex._info ().c_str ()
- ));
- const CORBA::ULong BITS_5_THRU_12_MASK = 0x00000f80u;
- switch (ex.minor () & 0xfffff000u)
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) Transient (minor=%d) %s\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ ex.minor (),
+ ex._info ().c_str ()
+ ));
+ const CORBA::ULong BITS_5_THRU_12_MASK = 0x00000f80u;
+ switch (ex.minor () & 0xfffff000u)
+ {
+ case CORBA::OMGVMCID:
+ switch (ex.minor () & 0x00000fffu)
{
- case CORBA::OMGVMCID:
- switch (ex.minor () & 0x00000fffu)
- {
- case 2: // No usable profile
- case 3: // Request cancelled
- case 4: // POA destroyed
- result = DISPATCH_FAIL;
- break;
- default:
- result = DISPATCH_DISCARD;
- }
+ case 2: // No usable profile
+ case 3: // Request cancelled
+ case 4: // POA destroyed
+ result = DISPATCH_FAIL;
break;
-
- case TAO::VMCID:
default:
- switch (ex.minor () & BITS_5_THRU_12_MASK)
- {
- case TAO_INVOCATION_SEND_REQUEST_MINOR_CODE:
- result = DISPATCH_FAIL;
- break;
- case TAO_POA_DISCARDING:
- case TAO_POA_HOLDING:
- default:
- result = DISPATCH_RETRY;
- } break;
+ result = DISPATCH_DISCARD;
}
- }
- ACE_CATCH (CORBA::TIMEOUT, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %u::push "
- "(request) %s\n"),
- this->proxy ()->id (),
- ex._info().c_str ()
- ));
- result = DISPATCH_FAIL;
- }
- ACE_CATCH (CORBA::COMM_FAILURE, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %u::push "
- "(request) %s\n"),
- this->proxy ()->id (),
- ex._info().c_str ()
- ));
- result = DISPATCH_FAIL;
- }
+ break;
+
+ case TAO::VMCID:
+ default:
+ switch (ex.minor () & BITS_5_THRU_12_MASK)
+ {
+ case TAO_INVOCATION_SEND_REQUEST_MINOR_CODE:
+ result = DISPATCH_FAIL;
+ break;
+ case TAO_POA_DISCARDING:
+ case TAO_POA_HOLDING:
+ default:
+ result = DISPATCH_RETRY;
+ } break;
+ }
+
+ }
ACE_CATCH (CORBA::SystemException, ex)
- {
- if (DEBUG_LEVEL > 0)
- {
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push "
- "(request) SystemException %s\n"),
- static_cast<int> (this->proxy ()->id ()),
- ex._info ().c_str ()
- ));
- }
- result = DISPATCH_DISCARD;
- }
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) SystemException %s\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ ex._info ().c_str ()
+ ));
+ result = DISPATCH_DISCARD;
+ }
ACE_CATCHANY
- {
- ACE_ERROR ( (LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push "
- "(request) Caught unexpected exception "
- "pushing event to consumer.\n"),
- static_cast<int> (this->proxy ()->id ())
- ));
- result = DISPATCH_DISCARD;
- }
+ {
+ ACE_ERROR ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::push (request) Caught unexpected exception pushing event to consumer.\n"),
+ static_cast<int> (this->proxy ()->id ())
+ ));
+ result = DISPATCH_DISCARD;
+ }
ACE_ENDTRY;
// for persistent events that haven't timed out
// convert "FAIL" & "DISCARD" to "RETRY"
// for transient events, convert RETRY to DISCARD (hey, best_effort.)
if (result == DISPATCH_FAIL || result == DISPATCH_DISCARD)
+ {
+ if (request->should_retry ())
{
- if (request->should_retry ())
- {
- result = DISPATCH_RETRY;
- }
+ result = DISPATCH_RETRY;
}
+ }
else if (result == DISPATCH_RETRY)
+ {
+ if (! request->should_retry ())
{
- if (! request->should_retry ())
- {
- result = DISPATCH_DISCARD;
- }
+ result = DISPATCH_DISCARD;
}
+ }
return result;
}
@@ -358,122 +311,51 @@ TAO_Notify_Consumer::dispatch_request (TAO_Notify_Method_Request_Event * request
TAO_Notify_Consumer::DispatchStatus
TAO_Notify_Consumer::dispatch_batch (const CosNotification::EventBatch& batch)
{
- DispatchStatus result = DISPATCH_SUCCESS;
ACE_DECLARE_NEW_ENV;
ACE_TRY
- {
- this->push (batch ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::OBJECT_NOT_EXIST, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer "
- "%d::dispatch_batch() %s\n"),
- static_cast<int> (this->proxy ()->id ()),
- ex._info ().c_str ()
- ));
- result = DISPATCH_FAIL;
- }
- ACE_CATCH (CORBA::TRANSIENT, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer "
- "%d::dispatch_batch() Transient (minor=%d) %s\n"),
- static_cast<int> (this->proxy ()->id ()),
- ex.minor (),
- ex._info ().c_str ()
- ));
- const CORBA::ULong BITS_5_THRU_12_MASK = 0x00000f80u;
- switch (ex.minor () & 0xfffff000u)
- {
- case CORBA::OMGVMCID:
- switch (ex.minor () & 0x00000fffu)
- {
- case 2: // No usable profile
- case 3: // Request cancelled
- case 4: // POA destroyed
- result = DISPATCH_FAIL;
- break;
- default:
- result = DISPATCH_DISCARD;
- }
- break;
-
- case TAO::VMCID:
- default:
- switch (ex.minor () & BITS_5_THRU_12_MASK)
- {
- case TAO_INVOCATION_SEND_REQUEST_MINOR_CODE:
- result = DISPATCH_FAIL;
- break;
- case TAO_POA_DISCARDING:
- case TAO_POA_HOLDING:
- default:
- result = DISPATCH_RETRY;
- } break;
- }
- }
- ACE_CATCH (CORBA::TIMEOUT, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer "
- "%u::dispatch_batch() %s\n"),
- this->proxy ()->id (),
- ex._info().c_str ()
- ));
- result = DISPATCH_FAIL;
- }
- ACE_CATCH (CORBA::COMM_FAILURE, ex)
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer "
- "%u::dispatch_batch() %s\n"),
- this->proxy ()->id (),
- ex._info().c_str ()
- ));
- result = DISPATCH_FAIL;
- }
+ {
+ this->push (batch ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCH (CORBA::OBJECT_NOT_EXIST, not_exist)
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::dispatch_batch OBJECT_NOT_EXIST %s\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ not_exist._info ().c_str ()
+ ));
+ return DISPATCH_FAIL;
+ }
ACE_CATCH (CORBA::SystemException, ex)
- {
- if (DEBUG_LEVEL > 0)
- {
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer "
- "%d::dispatch_batch() SystemException %s\n"),
- static_cast<int> (this->proxy ()->id ()),
- ex._info ().c_str ()
- ));
- }
- result = DISPATCH_DISCARD;
- }
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) TAO_Notify_Consumer %d::dispatch_batch SystemException %s\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ ex._info ().c_str ()
+ ));
+ // @@todo what to return here?
+ return DISPATCH_RETRY;
+ }
ACE_CATCHANY
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) TAO_Notify_Consumer "
- "%d::dispatch_batch() Caught unexpected "
- "exception pushing batch to consumer.\n"),
- static_cast<int> (this->proxy ()->id ())
- ));
- result = DISPATCH_DISCARD;
- }
+ {
+ ACE_ERROR ( (LM_ERROR,
+ ACE_TEXT ("(%P|%t) Consumer %d: Caught unexpected exception pushing EventBatch to consumer.\n"),
+ static_cast<int> (this->proxy ()->id ())
+ ));
+ return DISPATCH_FAIL;
+ }
ACE_ENDTRY;
- return result;
+ return DISPATCH_SUCCESS;
}
void
TAO_Notify_Consumer::dispatch_pending (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
- if (DEBUG_LEVEL > 5)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Consumer %d dispatching pending events. Queue size: %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- this->pending_events().size ()
- ));
+ if (DEBUG_LEVEL > 5) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Consumer %d dispatching pending events. Queue size: %d\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ this->pending_events().size ()
+ ));
// lock ourselves in memory for the duration
TAO_Notify_Consumer::Ptr self_grd (this);
@@ -481,16 +363,14 @@ TAO_Notify_Consumer::dispatch_pending (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
// dispatch events until: 1) the queue is empty; 2) the proxy shuts down, or 3) the dispatch fails
ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, *this->proxy_lock ());
bool ok = true;
- while (ok
- && !this->proxy_supplier ()->has_shutdown ()
- && !this->pending_events().is_empty ())
+ while (ok && !this->proxy_supplier ()->has_shutdown () && !this->pending_events().is_empty ())
+ {
+ if (! dispatch_from_queue ( this->pending_events(), ace_mon))
{
- if (! dispatch_from_queue ( this->pending_events(), ace_mon))
- {
- this->schedule_timer (true);
- ok = false;
- }
+ this->schedule_timer (true);
+ ok = false;
}
+ }
}
@@ -501,87 +381,82 @@ TAO_Notify_Consumer::dispatch_from_queue (Request_Queue & requests, ACE_Guard <T
bool result = true;
TAO_Notify_Method_Request_Event_Queueable * request;
if (requests.dequeue_head (request) == 0)
+ {
+ ace_mon.release ();
+ DispatchStatus status = this->dispatch_request (request);
+ switch (status)
{
- ace_mon.release ();
- DispatchStatus status = this->dispatch_request (request);
- switch (status)
+ case DISPATCH_SUCCESS:
+ {
+ request->complete ();
+ request->release ();
+ result = true;
+ ace_mon.acquire ();
+ break;
+ }
+ case DISPATCH_RETRY:
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ ace_mon.acquire ();
+ requests.enqueue_head (request); // put the failed event back where it was
+ result = false;
+ break;
+ }
+ case DISPATCH_DISCARD:
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Consumer %d: Error during dispatch. Discarding event:%d.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ request->complete ();
+ ace_mon.acquire ();
+ result = true;
+ break;
+ }
+ case DISPATCH_FAIL:
+ {
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Consumer %d: Failed. Discarding event %d.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ request->complete ();
+ ace_mon.acquire ();
+ while (requests.dequeue_head (request) == 0)
{
- case DISPATCH_SUCCESS:
- {
- request->complete ();
- request->release ();
- result = true;
- ace_mon.acquire ();
- break;
- }
- case DISPATCH_RETRY:
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- ace_mon.acquire ();
- requests.enqueue_head (request); // put the failed event back where it was
- result = false;
- break;
- }
- case DISPATCH_DISCARD:
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Consumer %d: Error during "
- "dispatch. Discarding event:%d.\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- request->complete ();
- ace_mon.acquire ();
- result = true;
- break;
- }
- case DISPATCH_FAIL:
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) Consumer %d: Failed. "
- "Discarding event %d.\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()
- ));
- request->complete ();
- ace_mon.acquire ();
- while (requests.dequeue_head (request) == 0)
- {
- ace_mon.release ();
- request->complete ();
- ace_mon.acquire ();
- }
- ace_mon.release ();
- ACE_DECLARE_NEW_ENV;
- ACE_TRY
- {
- this->proxy_supplier ()->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // todo is there something reasonable to do here?
- }
- ACE_ENDTRY;
- ace_mon.acquire ();
- result = true;
- break;
- }
- default:
- {
- ace_mon.acquire ();
- result = false;
- break;
- }
+ ace_mon.release ();
+ request->complete ();
+ ace_mon.acquire ();
+ }
+ ace_mon.release ();
+ ACE_DECLARE_NEW_ENV;
+ ACE_TRY
+ {
+ this->proxy_supplier ()->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
+ ACE_CATCHANY
+ {
+ // todo is there something reasonable to do here?
+ }
+ ACE_ENDTRY;
+ ace_mon.acquire ();
+ result = true;
+ break;
+ }
+ default:
+ {
+ ace_mon.acquire ();
+ result = false;
+ break;
+ }
}
+ }
return result;
}
@@ -591,14 +466,14 @@ void
TAO_Notify_Consumer::schedule_timer (bool is_error)
{
if (this->timer_id_ != -1)
- {
- return; // We only want a single timeout scheduled.
- }
+ {
+ return; // We only want a single timeout scheduled.
+ }
// don't schedule timer if there's nothing that can be done
if (this->is_suspended ())
- {
- return;
- }
+ {
+ return;
+ }
ACE_ASSERT (this->timer_.get() != 0);
@@ -608,45 +483,43 @@ TAO_Notify_Consumer::schedule_timer (bool is_error)
ACE_Time_Value tv (DEFAULT_RETRY_TIMEOUT);
if (! is_error)
+ {
+ if (this->pacing_.is_valid ())
{
- if (this->pacing_.is_valid ())
- {
- tv = ORBSVCS_Time::to_Time_Value (this->pacing_.value ());
- }
+ tv = ORBSVCS_Time::to_Time_Value (this->pacing_.value ());
}
+ }
- if (DEBUG_LEVEL > 5)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Consumer %d: scheduling pacing/retry for %dms.\n"),
- static_cast<int> (this->proxy ()->id ()), tv.msec ()));
- }
+ if (DEBUG_LEVEL > 5) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Consumer %d: scheduling pacing/retry for %dms.\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ tv.msec ()));
- this->timer_id_ =
- this->timer_->schedule_timer (this, tv, ACE_Time_Value::zero);
+ this->timer_id_ = this->timer_->schedule_timer (
+ this,
+ tv,
+ ACE_Time_Value::zero);
if (this->timer_id_ == -1)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO_Notify_Consumer %d::schedule_timer () "
- "Error scheduling timer.\n"),
- static_cast<int> (this->proxy ()->id ())
- ));
- }
+ {
+ ACE_ERROR ( (LM_ERROR,
+ ACE_TEXT ("TAO_Notify_Consumer %d::schedule_timer () Error scheduling timer.\n"),
+ static_cast<int> (this->proxy ()->id ())
+ ));
+ }
}
void
TAO_Notify_Consumer::cancel_timer (void)
{
if (this->timer_.isSet() && this->timer_id_ != -1)
- {
- if (DEBUG_LEVEL > 5)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Consumer %d canceling dispatch timer.\n"),
- static_cast<int> (this->proxy ()->id ())
- ));
+ {
+ if (DEBUG_LEVEL > 5) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("Consumer %d canceling dispatch timer.\n"),
+ static_cast<int> (this->proxy ()->id ())
+ ));
- this->timer_->cancel_timer (timer_id_);
- }
+ this->timer_->cancel_timer (timer_id_);
+ }
this->timer_id_ = -1;
}
@@ -679,9 +552,10 @@ TAO_Notify_Consumer::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
}
+
void
TAO_Notify_Consumer::dispatch_updates_i (const CosNotification::EventTypeSeq& added, const CosNotification::EventTypeSeq& removed
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
{
if (!CORBA::is_nil (this->publish_.in ()))
this->publish_->offer_change (added, removed ACE_ENV_ARG_PARAMETER);
@@ -698,5 +572,3 @@ TAO_Notify_Consumer::proxy_supplier (void)
{
return this->proxy_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Consumer.h b/TAO/orbsvcs/orbsvcs/Notify/Consumer.h
index 43b591b51e4..5f4e14af383 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Consumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,14 +23,11 @@
#include "orbsvcs/CosNotifyCommC.h"
#include "orbsvcs/CosNotificationC.h"
-#include "orbsvcs/Notify/Peer.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Timer.h"
+#include "Peer.h"
+#include "Event.h"
+#include "Timer.h"
#include "ace/Event_Handler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_ProxySupplier;
class TAO_Notify_Proxy;
class TAO_Notify_Method_Request_Event_Queueable;
@@ -175,6 +172,10 @@ protected:
/// Timer Id.
long timer_id_;
+// todo find some way to use this rather than Request_Queue
+// /// The Buffering Strategy
+// TAO_Notify_Batch_Buffering_Strategy* buffering_strategy_;
+//
/// The Timer Manager that we use.
TAO_Notify_Timer::Ptr timer_;
@@ -184,10 +185,8 @@ private:
ACE_Auto_Ptr< Request_Queue > pending_events_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Consumer.inl"
+#include "Consumer.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Consumer.inl b/TAO/orbsvcs/orbsvcs/Notify/Consumer.inl
index c1dcd33bbe7..83a73ad0019 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Consumer.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Notify_Consumer::Request_Queue&
TAO_Notify_Consumer::pending_events()
@@ -23,5 +19,3 @@ TAO_Notify_Consumer::suspend (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
this->is_suspended_ = 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp
index 7b10e3bd40b..37c29ecba36 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.cpp
@@ -1,20 +1,20 @@
// $Id$
-#include "orbsvcs/Notify/ConsumerAdmin.h"
+#include "ConsumerAdmin.h"
ACE_RCSID (RT_Notify,
TAO_Notify_ConsumerAdmin,
"$Id$")
-#include "orbsvcs/Notify/Subscription_Change_Worker.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Factory.h"
-#include "orbsvcs/Notify/Builder.h"
-#include "orbsvcs/Notify/Find_Worker_T.h"
-#include "orbsvcs/Notify/Seq_Worker_T.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
+#include "Subscription_Change_Worker.h"
+#include "Proxy.h"
+#include "EventChannel.h"
+#include "Properties.h"
+#include "Factory.h"
+#include "Builder.h"
+#include "Find_Worker_T.h"
+#include "Seq_Worker_T.h"
+#include "ProxySupplier.h"
#include "tao/debug.h"
@@ -27,8 +27,6 @@ ACE_RCSID (RT_Notify,
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef TAO_Notify_Find_Worker_T<TAO_Notify_Proxy
, CosNotifyChannelAdmin::ProxySupplier
, CosNotifyChannelAdmin::ProxySupplier_ptr
@@ -92,11 +90,11 @@ TAO_Notify_ConsumerAdmin::destroy (ACE_ENV_SINGLE_ARG_DECL)
CORBA::SystemException
))
{
- int result = this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- if ( result == 1)
+ if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
+ ACE_CHECK;
+
this->ec_->remove (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
@@ -325,10 +323,8 @@ TAO_Notify_ConsumerAdmin::subscription_change (const CosNotification::EventTypeS
TAO_Notify_Subscription_Change_Worker worker (added, removed);
this->proxy_container().collection()->for_each (&worker ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
CosNotifyFilter::FilterID
@@ -484,5 +480,3 @@ TAO_Notify_ConsumerAdmin::find_proxy_supplier (
}
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.h b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.h
index a0c3c3b00a5..73e3c31d381 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ConsumerAdmin.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,7 +22,7 @@
#include "orbsvcs/NotifyExtS.h"
-#include "orbsvcs/Notify/Admin.h"
+#include "Admin.h"
class TAO_Notify_ProxySupplier;
#if defined(_MSC_VER)
@@ -30,8 +30,6 @@ class TAO_Notify_ProxySupplier;
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_ConsumerAdmin
*
@@ -242,8 +240,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Consumer_Map.h b/TAO/orbsvcs/orbsvcs/Notify/Consumer_Map.h
index eec7e570347..7a296f0d5b5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Consumer_Map.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Consumer_Map.h
@@ -14,17 +14,15 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Event_Map_T.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Event_Map_T.h"
+#include "ProxySupplier.h"
/**
* @class TAO_Notify_Consumer_Map
@@ -32,12 +30,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* @brief The Event Map for Consumers.
*
*/
+
typedef TAO_Notify_Event_Map_T<TAO_Notify_ProxySupplier,
TAO_SYNCH_RW_MUTEX>
TAO_Notify_Consumer_Map;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_CONSUMER_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Container_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Container_T.cpp
index 3656e3dca86..f3dddbcffe4 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Container_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Container_T.cpp
@@ -3,20 +3,22 @@
#ifndef TAO_Notify_CONTAINER_T_CPP
#define TAO_Notify_CONTAINER_T_CPP
-#include "orbsvcs/Notify/Container_T.h"
+#include "Container_T.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Factory.h"
-#include "orbsvcs/Notify/POA_Helper.h"
+#include "Properties.h"
+#include "Factory.h"
+#include "POA_Helper.h"
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
#include "orbsvcs/ESF/ESF_Shutdown_Proxy.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Container_T.inl"
+#include "Container_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (Notify,
+ Notify_Container_T,
+ "$Id$")
template<class TYPE>
TAO_Notify_Container_T<TYPE>::TAO_Notify_Container_T (void)
@@ -60,6 +62,4 @@ TAO_Notify_Container_T<TYPE>::init (ACE_ENV_SINGLE_ARG_DECL)
factory->create (this->collection_ ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_CONTAINER_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Container_T.h b/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
index 9c06930d1b2..6713775b023 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Container_T.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,8 +22,6 @@
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Container_T
*
@@ -63,14 +61,12 @@ protected:
COLLECTION* collection_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Container_T.inl"
+#include "Container_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Container_T.cpp"
+#include "Container_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Container_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Container_T.inl
index ccf274aecbf..d37030ab59d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Container_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Container_T.inl
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class TYPE> ACE_INLINE ACE_TYPENAME TAO_Notify_Container_T<TYPE>::COLLECTION*
TAO_Notify_Container_T<TYPE>:: collection (void)
{
return this->collection_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp
index 86d6e46106a..1479e18e46d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.cpp
@@ -1,17 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/CosNotify_Initializer.h"
+#include "CosNotify_Initializer.h"
ACE_RCSID(Notify, TAO_Notify_CosNotify_Initializer, "$Id$")
-#include "orbsvcs/Notify/CosNotify_Service.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CosNotify_Service.h"
TAO_Notify_CosNotify_Initializer::TAO_Notify_CosNotify_Initializer (void)
{
ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_TAO_CosNotify_Service);
ACE_Service_Config::static_svcs ()->insert (&ace_svc_desc_TAO_Notify_Default_EMO_Factory_OLD);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.h b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.h
index ce08ffd76eb..5dccf6d8084 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Initializer.h
@@ -13,16 +13,12 @@
#define TAO_Notify_COSNOTIFY_INITIALIZER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_CosNotify_Initializer
*
@@ -38,7 +34,5 @@ public:
static TAO_Notify_CosNotify_Initializer TAO_Notify_CosNotify_initializer;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_COSNOTIFY_INITIALIZER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp
index 2128c1852a4..7bf71e8d379 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/CosNotify_Service.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Default_Factory.h"
-#include "orbsvcs/Notify/Builder.h"
+#include "CosNotify_Service.h"
+#include "Properties.h"
+#include "Default_Factory.h"
+#include "Builder.h"
#include "ace/Sched_Params.h"
#include "ace/Arg_Shifter.h"
#include "ace/Dynamic_Service.h"
@@ -15,8 +15,6 @@ ACE_RCSID (Notify,
TAO_CosNotify_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CosNotify_Service::TAO_CosNotify_Service (void)
{
}
@@ -34,8 +32,10 @@ TAO_CosNotify_Service::init (int argc, ACE_TCHAR *argv[])
// Default to an all reactive system.
int ec_threads = 0;
- int consumer_threads = 0;
- int supplier_threads = 0;
+ int dispatching_threads = 0;
+ int listener_threads = 0;
+ int source_threads = 0;
+ int lookup_threads = 0;
int task_per_proxy = 0;
@@ -45,52 +45,58 @@ TAO_CosNotify_Service::init (int argc, ACE_TCHAR *argv[])
{
if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-MTDispatching")) == 0)
{
+ // If Dispatching Threads are initalized, the option is implicit.
arg_shifter.consume_arg ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) The -MTDispatching option has been deprecated, use -DispatchingThreads \n")));
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-DispatchingThreads"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-DispatchingThreads"))))
{
- consumer_threads += ACE_OS::atoi (current_arg);
+ dispatching_threads = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-MTSourceEval")) == 0)
{
+ // If Source Threads are initalized, the option is implicit.
arg_shifter.consume_arg ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) The -MTSourceEval option has been deprecated, use -SourceThreads \n")));
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-SourceThreads"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-SourceThreads"))))
{
- supplier_threads += ACE_OS::atoi (current_arg);
+ source_threads = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-MTLookup")) == 0)
{
+ // If Lookup Threads are initalized, the option is implicit.
arg_shifter.consume_arg ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) The -MTLookup option has been deprecated, use -SourceThreads \n")));
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-LookupThreads"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-LookupThreads"))))
{
- supplier_threads += ACE_OS::atoi (current_arg);
+ // Since this option is always either added to source_threads
+ // or ignored, we'll deprecate it in favor of that option.
+ lookup_threads = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) The -LookupThreads option has been deprecated, use -SourceThreads \n")));
}
else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-MTListenerEval")) == 0)
{
+ // If Listener Threads are initalized, the option is implicit.
arg_shifter.consume_arg ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) The -MTListenerEval option has been deprecated, use -DispatchingThreads \n")));
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-ListenerThreads"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-ListenerThreads"))))
{
- // Since this option is always added to consumer_threads, we'll
+ // Since this option is always added to dispatching_threads, we'll
// deprecate it in favor of that option.
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) The -ListenerThreads option has been deprecated, use -DispatchingThreads \n")));
- consumer_threads += ACE_OS::atoi (current_arg);
+ listener_threads = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
else if (arg_shifter.cur_arg_strncasecmp (ACE_TEXT("-AsynchUpdates")) == 0)
@@ -136,19 +142,15 @@ TAO_CosNotify_Service::init (int argc, ACE_TCHAR *argv[])
{
// Set the per ConsumerAdmin QoS
{
- if (consumer_threads > 0)
- ACE_DEBUG((LM_DEBUG, "Using %d threads for each ConsumerAdmin.\n", consumer_threads));
CosNotification::QoSProperties qos;
- this->set_threads (qos, consumer_threads);
+ this->set_threads (qos, dispatching_threads + listener_threads);
properties->default_consumer_admin_qos_properties (qos);
}
// Set the per SupplierAdmin QoS
{
- if (supplier_threads > 0)
- ACE_DEBUG((LM_DEBUG, "Using %d threads for each SupplierAdmin.\n", supplier_threads));
CosNotification::QoSProperties qos;
- this->set_threads (qos, supplier_threads);
+ this->set_threads (qos, lookup_threads + source_threads);
properties->default_supplier_admin_qos_properties (qos);
}
}
@@ -156,19 +158,15 @@ TAO_CosNotify_Service::init (int argc, ACE_TCHAR *argv[])
{
// Set the per ProxyConsumer QoS
{
- if (supplier_threads > 0)
- ACE_DEBUG((LM_DEBUG, "Using %d threads for each Supplier.\n", supplier_threads));
CosNotification::QoSProperties qos;
- this->set_threads (qos, supplier_threads); // lookup thread per proxy doesn't make sense.
+ this->set_threads (qos, source_threads); // lookup thread per proxy doesn't make sense.
properties->default_proxy_consumer_qos_properties (qos);
}
// Set the per ProxySupplier QoS
{
- if (consumer_threads > 0)
- ACE_DEBUG((LM_DEBUG, "Using %d threads for each Consumer.\n", consumer_threads));
CosNotification::QoSProperties qos;
- this->set_threads (qos, consumer_threads);
+ this->set_threads (qos, dispatching_threads + listener_threads);
properties->default_proxy_supplier_qos_properties (qos);
}
}
@@ -225,14 +223,14 @@ TAO_CosNotify_Service::init_i (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
// Init the factory
this->factory_.reset (this->create_factory (ACE_ENV_SINGLE_ARG_PARAMETER));
- ACE_CHECK;
ACE_ASSERT( this->factory_.get() != 0 );
TAO_Notify_PROPERTIES::instance()->factory (this->factory_.get());
+ ACE_CHECK;
this->builder_.reset (this->create_builder (ACE_ENV_SINGLE_ARG_PARAMETER));
- ACE_CHECK;
ACE_ASSERT( this->builder_.get() != 0 );
TAO_Notify_PROPERTIES::instance()->builder (this->builder_.get());
+ ACE_CHECK;
}
TAO_Notify_Factory*
@@ -242,9 +240,9 @@ TAO_CosNotify_Service::create_factory (ACE_ENV_SINGLE_ARG_DECL)
if (factory == 0)
{
ACE_NEW_THROW_EX (factory,
- TAO_Notify_Default_Factory (),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
+ TAO_Notify_Default_Factory (),
+ CORBA::NO_MEMORY ());
+ ACE_CHECK_RETURN(0);
}
return factory;
}
@@ -256,7 +254,7 @@ TAO_CosNotify_Service::create_builder (ACE_ENV_SINGLE_ARG_DECL)
ACE_NEW_THROW_EX (builder,
TAO_Notify_Builder (),
CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
+ ACE_CHECK_RETURN(0);
return builder;
}
@@ -287,8 +285,6 @@ TAO_CosNotify_Service::builder (void)
return *this->builder_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
/*********************************************************************************************************************/
diff --git a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.h b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.h
index cc91e77d372..6cade3ddca9 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/CosNotify_Service.h
@@ -13,17 +13,15 @@
#define TAO_Notify_COSNOTIFY_SERVICE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Service.h"
-#include "orbsvcs/Notify/Builder.h"
-#include "orbsvcs/Notify/Factory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Service.h"
+#include "Builder.h"
+#include "Factory.h"
class TAO_Notify_Properties;
class TAO_Notify_EventChannelFactory;
@@ -84,8 +82,6 @@ private:
ACE_Auto_Ptr< TAO_Notify_Builder > builder_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_CosNotify_Service)
ACE_FACTORY_DECLARE (TAO_Notify_Serv, TAO_CosNotify_Service)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp
index 990da34bdbc..a027e130433 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.cpp
@@ -1,33 +1,30 @@
// $Id$
-#include "orbsvcs/Notify/Default_Factory.h"
+#include "Default_Factory.h"
ACE_RCSID (Notify,
TAO_Notify_Default_Factory,
"$Id$")
-#include "orbsvcs/Notify/EventChannelFactory.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/Admin.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
-#include "orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h"
-#include "orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h"
-#include "orbsvcs/Notify/Any/ProxyPushConsumer.h"
-#include "orbsvcs/Notify/Any/ProxyPushSupplier.h"
-#include "orbsvcs/Notify/Any/CosEC_ProxyPushConsumer.h"
-#include "orbsvcs/Notify/Any/CosEC_ProxyPushSupplier.h"
-#include "orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h"
-#include "orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h"
-#include "orbsvcs/Notify/Supplier.h"
+#include "EventChannelFactory.h"
+#include "EventChannel.h"
+#include "Admin.h"
+#include "Proxy.h"
+#include "SupplierAdmin.h"
+#include "ConsumerAdmin.h"
+#include "Structured/StructuredProxyPushConsumer.h"
+#include "Structured/StructuredProxyPushSupplier.h"
+#include "Any/ProxyPushConsumer.h"
+#include "Any/ProxyPushSupplier.h"
+#include "Any/CosEC_ProxyPushConsumer.h"
+#include "Any/CosEC_ProxyPushSupplier.h"
+#include "Sequence/SequenceProxyPushConsumer.h"
+#include "Sequence/SequenceProxyPushSupplier.h"
+#include "Supplier.h"
#include "orbsvcs/ESF/ESF_Proxy_List.h"
#include "orbsvcs/ESF/ESF_Copy_On_Write.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class PROXY>
class COW_Collection_Default_Factory
{
@@ -191,7 +188,5 @@ TAO_Notify_Default_Factory::create (TAO_Notify_SequenceProxyPushSupplier*& proxy
CORBA::NO_MEMORY ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_Notify_Serv, TAO_Notify_Default_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.h
index 106d7cb265d..9c6ac6f56a2 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Default_Factory.h
@@ -13,15 +13,13 @@
#define TAO_Notify_DEFAULT_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Factory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Factory.h"
/**
* @class TAO_Notify_Default_Factory
@@ -93,8 +91,6 @@ public:
virtual void create (TAO_Notify_SequenceProxyPushSupplier*& proxy ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (TAO_Notify_Serv, TAO_Notify_Default_Factory)
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.cpp b/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.cpp
index a40986b1a0c..c5c2fcffa31 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Delivery_Request.h"
+#include "Delivery_Request.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Delivery_Request.inl"
+#include "Delivery_Request.inl"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/Notify/Routing_Slip.h"
+#include "Routing_Slip.h"
#include "tao/debug.h"
#include "tao/corba.h"
@@ -16,8 +16,6 @@
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -100,4 +98,3 @@ Delivery_Request::routing_slip () const
} // namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.h b/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.h
index 744bca7d733..413e245eac3 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.h
@@ -5,16 +5,15 @@
#define TAO_NOTIFY_DELIVERY_REQUEST_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Topology_Object.h"
-#include "orbsvcs/Notify/Event.h"
+#include "notify_serv_export.h"
+#include "Topology_Object.h"
+#include "Event.h"
#include <ace/Vector_T.h>
#include <ace/Bound_Ptr.h>
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declarations of referenced classes
class TAO_Notify_EventChannelFactory;
@@ -125,10 +124,8 @@ private:
} // namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Delivery_Request.inl"
+#include "Delivery_Request.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.inl b/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.inl
index a34687b5c64..33b7f71b7bd 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Delivery_Request.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -24,4 +21,3 @@ Delivery_Request::set_destination_id (IdVec & destination_id)
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp
index 51f51b190c1..664af405c97 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/ETCL_Filter.h"
+#include "ETCL_Filter.h"
ACE_RCSID(Notify, TAO_Notify_ETCL_Filter, "$Id$")
#include "ace/Auto_Ptr.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/Notify_Constraint_Visitors.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Notify_Constraint_Visitors.h"
TAO_Notify_ETCL_Filter::TAO_Notify_ETCL_Filter (void)
:constraint_expr_ids_ (0)
@@ -442,5 +440,3 @@ TAO_Notify_ETCL_Filter::get_callbacks (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (),
0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.h b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.h
index 918bc8ca6e6..a76ebdadfcf 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_Filter.h
@@ -13,7 +13,7 @@
#define TAO_Notify_ETCL_FILTER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,7 +23,7 @@
#include "ace/Hash_Map_Manager.h"
#include "ace/Atomic_Op.h"
#include "orbsvcs/CosNotifyFilterS.h"
-#include "orbsvcs/Notify/Notify_Constraint_Interpreter.h"
+#include "Notify_Constraint_Interpreter.h"
#include "ace/Null_Mutex.h"
#if defined(_MSC_VER)
@@ -31,8 +31,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ETCL_Filter
*
@@ -165,8 +163,6 @@ private:
CONSTRAINT_EXPR_LIST constraint_expr_list_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp
index 25d53cd5370..2f63881f0de 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/ETCL_FilterFactory.h"
+#include "ETCL_FilterFactory.h"
ACE_RCSID(Notify, TAO_Notify_ETCL_FilterFactory, "$Id$")
-#include "orbsvcs/Notify/ETCL_Filter.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ETCL_Filter.h"
TAO_Notify_ETCL_FilterFactory::TAO_Notify_ETCL_FilterFactory (void)
{
@@ -76,6 +74,4 @@ TAO_Notify_ETCL_FilterFactory::create_mapping_filter (const char * /*constraint_
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), CosNotifyFilter::MappingFilter::_nil ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_Notify_Serv, TAO_Notify_ETCL_FilterFactory)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h b/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h
index 615f010c0cd..f0a9f3a1b3d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ETCL_FilterFactory.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,15 +22,13 @@
#include "orbsvcs/CosNotifyFilterS.h"
-#include "orbsvcs/Notify/FilterFactory.h"
+#include "FilterFactory.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_ETCL_FilterFactory
*
@@ -81,8 +79,6 @@ protected:
PortableServer::POA_var filter_poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event.cpp
index 98d7bfd48cc..04e4e4ba7e8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/Event.h"
+#include "Event.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Event.inl"
+#include "Event.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
@@ -14,10 +14,8 @@ ACE_RCSID (Notify,
#include "tao/CDR.h"
#include "orbsvcs/CosNotificationC.h"
// NOTE: unfortunately we must know about derived types to implement unmarshal
-#include "orbsvcs/Notify/Any/AnyEvent.h"
-#include "orbsvcs/Notify/Structured/StructuredEvent.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Any/AnyEvent.h"
+#include "Structured/StructuredEvent.h"
TAO_Notify_Event::TAO_Notify_Event (void)
: priority_ (CosNotification::Priority, CosNotification::DefaultPriority)
@@ -81,4 +79,3 @@ TAO_Notify_Event::unmarshal (TAO_InputCDR & cdr)
return result;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event.h b/TAO/orbsvcs/orbsvcs/Notify/Event.h
index 1b44711ce46..38a2e5e4fab 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event.h
@@ -14,16 +14,16 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Refcountable.h"
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Property_Boolean.h"
-#include "orbsvcs/Notify/Property_T.h"
+#include "Refcountable.h"
+#include "Property.h"
+#include "Property_Boolean.h"
+#include "Property_T.h"
#include "orbsvcs/Event_ForwarderS.h"
#include "orbsvcs/CosNotifyFilterC.h"
@@ -31,8 +31,6 @@
#include "ace/Copy_Disabled.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Consumer;
class TAO_Notify_EventType;
@@ -128,10 +126,8 @@ private:
bool is_on_heap_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Event.inl"
+#include "Event.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event.inl b/TAO/orbsvcs/orbsvcs/Notify/Event.inl
index 36bdd57e0f5..06203095422 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const TAO_Notify_Property_Short&
TAO_Notify_Event::priority (void) const
{
@@ -40,4 +36,3 @@ TAO_Notify_Event::queueable_copy (ACE_ENV_SINGLE_ARG_DECL) const
return this->clone_.get();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp
index a55f5e44f6c..74d4783a14a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "orbsvcs/Notify/EventChannel.h"
-
-#include "orbsvcs/Notify/Container_T.h"
-#include "orbsvcs/Notify/EventChannelFactory.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Factory.h"
-#include "orbsvcs/Notify/Builder.h"
-#include "orbsvcs/Notify/Find_Worker_T.h"
-#include "orbsvcs/Notify/Seq_Worker_T.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
-#include "orbsvcs/Notify/Save_Persist_Worker_T.h"
-#include "orbsvcs/Notify/Reconnect_Worker_T.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/Event_Manager.h"
-#include "orbsvcs/Notify/POA_Helper.h"
+#include "EventChannel.h"
+
+#include "Container_T.h"
+#include "EventChannelFactory.h"
+#include "ConsumerAdmin.h"
+#include "SupplierAdmin.h"
+#include "Properties.h"
+#include "Factory.h"
+#include "Builder.h"
+#include "Find_Worker_T.h"
+#include "Seq_Worker_T.h"
+#include "Topology_Saver.h"
+#include "Save_Persist_Worker_T.h"
+#include "Reconnect_Worker_T.h"
+#include "Proxy.h"
#include "tao/debug.h"
//#define DEBUG_LEVEL 9
@@ -26,8 +24,6 @@
ACE_RCSID(Notify, TAO_Notify_EventChannel, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef TAO_Notify_Find_Worker_T<TAO_Notify_ConsumerAdmin
, CosNotifyChannelAdmin::ConsumerAdmin
, CosNotifyChannelAdmin::ConsumerAdmin_ptr
@@ -159,6 +155,7 @@ TAO_Notify_EventChannel::init (TAO_Notify::Topology_Parent* parent ACE_ENV_ARG_D
this->sa_container().init (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
+
// Set the admin properties.
TAO_Notify_AdminProperties* admin_properties = 0;
ACE_NEW_THROW_EX (admin_properties,
@@ -209,10 +206,7 @@ TAO_Notify_EventChannel::release (void)
int
TAO_Notify_EventChannel::shutdown (ACE_ENV_SINGLE_ARG_DECL)
{
- int sd_ret = TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (1);
-
- if (sd_ret == 1)
+ if (TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return 1;
this->ca_container().shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -232,18 +226,13 @@ TAO_Notify_EventChannel::destroy (ACE_ENV_SINGLE_ARG_DECL)
CORBA::SystemException
))
{
- TAO_Notify_EventChannel::Ptr guard( this );
+ if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
+ return;
- int result = this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- if ( result == 1)
- return;
this->ecf_->remove (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
- this->sa_container_.reset( 0 );
- this->ca_container_.reset( 0 );
}
void
@@ -682,4 +671,3 @@ TAO_Notify_EventChannel::sa_container()
return *sa_container_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.h b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.h
index 2fe1c13ff05..086282ad2a5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventChannel.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannel.h
@@ -14,18 +14,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyChannelAdminS.h"
-#include "orbsvcs/Notify/Topology_Object.h"
-#include "orbsvcs/Notify/Object.h"
-#include "orbsvcs/Notify/EventChannelFactory.h"
+#include "Topology_Object.h"
+#include "Object.h"
+#include "EventChannelFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_ConsumerAdmin;
class TAO_Notify_SupplierAdmin;
@@ -35,7 +34,7 @@ class TAO_Notify_ProxySupplier;
template <class TYPE> class TAO_Notify_Container_T;
#if defined(_MSC_VER)
-#pragma warning(push)
+ #pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
@@ -96,6 +95,7 @@ public:
TAO_Notify_ProxyConsumer * find_proxy_consumer (TAO_Notify::IdVec & id_path, size_t position ACE_ENV_ARG_DECL);
TAO_Notify_ProxySupplier * find_proxy_supplier (TAO_Notify::IdVec & id_path, size_t position ACE_ENV_ARG_DECL);
+
/// Shutdown
virtual int shutdown (ACE_ENV_SINGLE_ARG_DECL);
virtual void load_attrs(const TAO_Notify::NVPList& attrs);
@@ -243,8 +243,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp
index 2cf855c3009..7358af79f29 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp
@@ -1,23 +1,22 @@
// $Id$
-#include "orbsvcs/Notify/EventChannelFactory.h"
+#include "EventChannelFactory.h"
ACE_RCSID(Notify, TAO_Notify_EventChannelFactory, "$Id$")
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Factory.h"
-#include "orbsvcs/Notify/Builder.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
-#include "orbsvcs/Notify/Topology_Loader.h"
-#include "orbsvcs/Notify/Save_Persist_Worker_T.h"
-#include "orbsvcs/Notify/Reconnect_Worker_T.h"
-#include "orbsvcs/Notify/Event_Persistence_Strategy.h"
-#include "orbsvcs/Notify/Routing_Slip_Persistence_Manager.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/Container_T.h"
-#include "orbsvcs/Notify/Find_Worker_T.h"
-#include "orbsvcs/Notify/Seq_Worker_T.h"
-#include "orbsvcs/Notify/POA_Helper.h"
+#include "Properties.h"
+#include "Factory.h"
+#include "Builder.h"
+#include "Topology_Saver.h"
+#include "Topology_Loader.h"
+#include "Save_Persist_Worker_T.h"
+#include "Reconnect_Worker_T.h"
+#include "Event_Persistence_Strategy.h"
+#include "Routing_Slip_Persistence_Manager.h"
+#include "EventChannel.h"
+#include "Container_T.h"
+#include "Find_Worker_T.h"
+#include "Seq_Worker_T.h"
#include "ace/Dynamic_Service.h"
@@ -27,18 +26,6 @@ ACE_RCSID(Notify, TAO_Notify_EventChannelFactory, "$Id$")
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Include this here since this is the only file that
-// requires Topology_Factory.
-namespace TAO_Notify
-{
- // virtual
- Topology_Factory::~Topology_Factory ()
- {
- }
-}
-
typedef TAO_Notify_Find_Worker_T<TAO_Notify_EventChannel
, CosNotifyChannelAdmin::EventChannel
, CosNotifyChannelAdmin::EventChannel_ptr
@@ -52,6 +39,7 @@ TAO_Notify_EventChannelFactory::TAO_Notify_EventChannelFactory (void)
, topology_factory_(0)
, reconnect_registry_(*this)
, loading_topology_ (false)
+
{
}
@@ -65,9 +53,7 @@ TAO_Notify_EventChannelFactory::destroy (ACE_ENV_SINGLE_ARG_DECL)
CORBA::SystemException
))
{
- int result = this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- if ( result == 1)
+ if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
TAO_Notify_Properties* properties = TAO_Notify_PROPERTIES::instance();
@@ -75,8 +61,6 @@ TAO_Notify_EventChannelFactory::destroy (ACE_ENV_SINGLE_ARG_DECL)
// Reset references to CORBA objects.
properties->orb (CORBA::ORB::_nil ());
properties->default_poa (PortableServer::POA::_nil ());
-
- ec_container_.reset( 0 );
}
void
@@ -107,7 +91,7 @@ TAO_Notify_EventChannelFactory::init (PortableServer::POA_ptr poa ACE_ENV_ARG_DE
CORBA::NO_MEMORY ());
ACE_CHECK;
- ACE_Auto_Ptr<TAO_Notify_POA_Helper> auto_object_poa (object_poa);
+ auto_ptr<TAO_Notify_POA_Helper> auto_object_poa (object_poa);
object_poa->init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -156,10 +140,7 @@ TAO_Notify_EventChannelFactory::remove (TAO_Notify_EventChannel* event_channel A
int
TAO_Notify_EventChannelFactory::shutdown (ACE_ENV_SINGLE_ARG_DECL)
{
- int sd_ret = TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (1);
-
- if (sd_ret == 1)
+ if (TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return 1;
this->ec_container().shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -191,9 +172,9 @@ TAO_Notify_EventChannelFactory::get_default_filter_factory (ACE_ENV_SINGLE_ARG_D
, initial_admin
, id
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosNotifyChannelAdmin::EventChannel::_nil());
+ ACE_CHECK_RETURN (ec._retn ());
this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosNotifyChannelAdmin::EventChannel::_nil());
+ ACE_CHECK_RETURN (ec._retn ());
return ec._retn ();
}
@@ -238,7 +219,6 @@ TAO_Notify_EventChannelFactory::load_topology (ACE_ENV_SINGLE_ARG_DECL)
this->loading_topology_ = true;
if (this->topology_factory_ != 0)
{
- // create_loader will open and load the persistence file for validation
auto_ptr<TAO_Notify::Topology_Loader> tl(this->topology_factory_->create_loader());
if (tl.get () != 0)
{
@@ -357,7 +337,6 @@ TAO_Notify_EventChannelFactory::change_to_parent (ACE_ENV_SINGLE_ARG_DECL)
this->save_persistent(*saver ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN(false);
saver->close (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
}
this->topology_save_seq_ += 1;
}
@@ -526,10 +505,7 @@ TAO_Notify_EventChannelFactory::activate_self (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK_RETURN (CosNotifyChannelAdmin::EventChannelFactory::_nil ());
this->channel_factory_
= CosNotifyChannelAdmin::EventChannelFactory::_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosNotifyChannelAdmin::EventChannelFactory::_nil ());
- CosNotifyChannelAdmin::EventChannelFactory::_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosNotifyChannelAdmin::EventChannelFactory::_nil ());
-
+ CosNotifyChannelAdmin::EventChannelFactory::_narrow (obj.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_NEW_ENV
{
if (DEBUG_LEVEL > 9)
@@ -561,4 +537,3 @@ TAO_Notify_EventChannelFactory::ec_container()
return *ec_container_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.h b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.h
index be559fae20a..d2eabf13760 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.h
@@ -14,30 +14,28 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Topology_Object.h"
-#include "orbsvcs/Notify/Topology_Factory.h"
-#include "orbsvcs/Notify/Reconnection_Registry.h"
-#include "orbsvcs/Notify/Routing_Slip.h"
+#include "Topology_Object.h"
+#include "Topology_Factory.h"
+#include "Reconnection_Registry.h"
+#include "Routing_Slip.h"
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/NotifyExtS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+class TAO_Notify_EventChannel;
+template <class TYPE> class TAO_Notify_Container_T;
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-class TAO_Notify_EventChannel;
-template <class TYPE> class TAO_Notify_Container_T;
-
/**
* @class TAO_Notify_EventChannelFactory
*
@@ -196,8 +194,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp
index e86593e9583..490317aa64f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventType.cpp
@@ -1,23 +1,21 @@
// $Id$
-#include "orbsvcs/Notify/EventType.h"
+#include "EventType.h"
#include "ace/ACE.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/EventType.inl"
+#include "EventType.inl"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/Notify/Topology_Saver.h"
+#include "Topology_Saver.h"
ACE_RCSID (Notify,
TAO_Notify_EventType,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_EventType
TAO_Notify_EventType::special (void)
{
@@ -104,8 +102,8 @@ TAO_Notify_EventType::operator==(const TAO_Notify_EventType& event_type) const
if (this->hash () != event_type.hash ())
return false;
else // compare the strings
- return (ACE_OS::strcmp (this->event_type_.type_name, event_type.event_type_.type_name) == 0 &&
- ACE_OS::strcmp (this->event_type_.domain_name, event_type.event_type_.domain_name) == 0
+ return (ACE_OS::strcmp (this->event_type_.type_name.in(), event_type.event_type_.type_name.in()) == 0 &&
+ ACE_OS::strcmp (this->event_type_.domain_name.in(), event_type.event_type_.domain_name.in()) == 0
);
}
@@ -115,8 +113,8 @@ TAO_Notify_EventType::operator!=(const TAO_Notify_EventType& event_type) const
if (this->hash () != event_type.hash ())
return true;
else // compare the strings
- return (ACE_OS::strcmp (this->event_type_.type_name, event_type.event_type_.type_name) != 0 ||
- ACE_OS::strcmp (this->event_type_.domain_name, event_type.event_type_.domain_name) != 0
+ return (ACE_OS::strcmp (this->event_type_.type_name.in(), event_type.event_type_.type_name.in()) != 0 ||
+ ACE_OS::strcmp (this->event_type_.domain_name.in(), event_type.event_type_.domain_name.in()) != 0
);
}
@@ -124,12 +122,12 @@ CORBA::Boolean
TAO_Notify_EventType::is_special (void) const
{
if ((this->event_type_.domain_name == 0 ||
- ACE_OS::strcmp (this->event_type_.domain_name, "") == 0 ||
- ACE_OS::strcmp (this->event_type_.domain_name, "*") == 0) &&
+ ACE_OS::strcmp (this->event_type_.domain_name.in(), "") == 0 ||
+ ACE_OS::strcmp (this->event_type_.domain_name.in(), "*") == 0) &&
(this->event_type_.type_name == 0 ||
- ACE_OS::strcmp (this->event_type_.type_name, "") == 0 ||
- ACE_OS::strcmp (this->event_type_.type_name, "*") == 0 ||
- ACE_OS::strcmp (this->event_type_.type_name, "%ALL") == 0))
+ ACE_OS::strcmp (this->event_type_.type_name.in(), "") == 0 ||
+ ACE_OS::strcmp (this->event_type_.type_name.in(), "*") == 0 ||
+ ACE_OS::strcmp (this->event_type_.type_name.in(), "%ALL") == 0))
return 1;
else
return 0;
@@ -176,5 +174,3 @@ TAO_Notify_EventType::save_persistent (TAO_Notify::Topology_Saver& saver ACE_ENV
saver.end_object(0, "subscription" ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventType.h b/TAO/orbsvcs/orbsvcs/Notify/EventType.h
index d6ba4bd1033..2378fe6ba80 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventType.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventType.h
@@ -14,17 +14,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotificationC.h"
-#include "orbsvcs/Notify/Topology_Object.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Topology_Object.h"
/**
* @class TAO_Notify_EventType
@@ -96,10 +93,8 @@ protected:
// The hash value computed.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/EventType.inl"
+#include "EventType.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventType.inl b/TAO/orbsvcs/orbsvcs/Notify/EventType.inl
index 95a07479666..1e0694b488e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventType.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventType.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE u_long
TAO_Notify_EventType::hash (void) const
{
@@ -15,5 +11,3 @@ TAO_Notify_EventType::native (void) const
{
return event_type_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp
index 4c44429d454..8a55665daa1 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Notify/EventTypeSeq.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
+#include "EventTypeSeq.h"
+#include "Topology_Saver.h"
#include "tao/debug.h"
//#define DEBUG_LEVEL 9
@@ -11,8 +11,6 @@
ACE_RCSID(Notify, TAO_Notify_EventTypeSeq, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_EventTypeSeq::TAO_Notify_EventTypeSeq (void)
{
}
@@ -313,5 +311,3 @@ TAO_Notify_EventTypeSeq::release (void)
{
delete this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h
index cf66b603c04..1628fcada2b 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/EventTypeSeq.h
@@ -13,17 +13,15 @@
#define TAO_Notify_EVENTTYPESEQ_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/EventType.h"
+#include "EventType.h"
#include "ace/Unbounded_Set.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_EventTypeSeq
*
@@ -82,7 +80,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_EVENTTYPESEQ_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp
index 35264373bd4..faefec85e66 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.cpp
@@ -1,23 +1,20 @@
// $Id$
-#include "orbsvcs/Notify/Event_Manager.h"
+#include "Event_Manager.h"
ACE_RCSID(Notify, TAO_Notify_Event_Manager, "$Id$")
-#include "orbsvcs/Notify/ProxyConsumer.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/Consumer_Map.h"
-#include "orbsvcs/Notify/Supplier_Map.h"
-#include "orbsvcs/Notify/Event_Map_T.h"
+#include "ProxyConsumer.h"
+#include "ProxySupplier.h"
+#include "Consumer_Map.h"
+#include "Supplier_Map.h"
+#include "Event_Map_T.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/*****************************************************************************/
+/********************************************************************************/
/**
* @class TAO_Notify_ProxyConsumer_Update_Worker
@@ -114,12 +111,10 @@ void
TAO_Notify_Event_Manager::connect (TAO_Notify_ProxySupplier* proxy_supplier ACE_ENV_ARG_DECL)
{
this->consumer_map().connect (proxy_supplier ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
// Inform about offered types.
TAO_Notify_EventTypeSeq removed;
proxy_supplier->types_changed (this->offered_types (), removed ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
void
@@ -169,19 +164,14 @@ TAO_Notify_Event_Manager::subscription_change (TAO_Notify_ProxySupplier* proxy_s
TAO_Notify_EventTypeSeq new_added, last_removed;
this->subscribe (proxy_supplier, added, new_added ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
this->un_subscribe (proxy_supplier, removed, last_removed ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
TAO_Notify_Supplier_Map::ENTRY::COLLECTION* updates_collection = this->supplier_map().updates_collection ();
TAO_Notify_ProxyConsumer_Update_Worker worker (new_added, last_removed);
if (updates_collection != 0)
- {
- updates_collection->for_each (&worker ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ updates_collection->for_each (&worker ACE_ENV_ARG_PARAMETER);
}
void
@@ -291,7 +281,7 @@ TAO_Notify_ProxyConsumer_Update_Worker::work (TAO_Notify_ProxyConsumer* proxy AC
proxy->types_changed (added_, removed_ ACE_ENV_ARG_PARAMETER);
}
-/*****************************************************************************/
+/********************************************************************************/
TAO_Notify_ProxySupplier_Update_Worker::TAO_Notify_ProxySupplier_Update_Worker (const TAO_Notify_EventTypeSeq& added, const TAO_Notify_EventTypeSeq& removed)
:added_ (added), removed_ (removed)
@@ -304,6 +294,4 @@ TAO_Notify_ProxySupplier_Update_Worker::work (TAO_Notify_ProxySupplier* proxy AC
proxy->types_changed (added_, removed_ ACE_ENV_ARG_PARAMETER);
}
-/*****************************************************************************/
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+/********************************************************************************/
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h
index ee897512072..b6bfd97d181 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Manager.h
@@ -15,9 +15,8 @@
#include /**/ "ace/pre.h"
#include "ace/Auto_Ptr.h"
-#include "orbsvcs/Notify/Refcountable.h"
-
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "Refcountable.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +26,6 @@
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_ProxySupplier;
class TAO_Notify_ProxyConsumer;
class TAO_Notify_EventTypeSeq;
@@ -115,13 +112,6 @@ protected:
void un_publish (TAO_Notify_ProxyConsumer* proxy_consumer, const TAO_Notify_EventTypeSeq& seq, TAO_Notify_EventTypeSeq& last_seq ACE_ENV_ARG_DECL);
private:
- // Disallow copying and assignment; we don't need them
- // and if we let the compiler generate them it needs the
- // full declaration of the template arguments for ACE_Auto_Ptr<>
- // below.
- TAO_Notify_Event_Manager (TAO_Notify_Event_Manager&);
- TAO_Notify_Event_Manager& operator= (TAO_Notify_Event_Manager&);
-
/// Consumer Map
ACE_Auto_Ptr< TAO_Notify_Consumer_Map > consumer_map_;
@@ -129,8 +119,6 @@ private:
ACE_Auto_Ptr< TAO_Notify_Supplier_Map > supplier_map_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_EVENT_MANAGER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.cpp
index 5488c3ad420..089a32adca0 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.cpp
@@ -3,10 +3,10 @@
#ifndef TAO_Notify_EVENT_MAP_ENTRY_CPP
#define TAO_Notify_EVENT_MAP_ENTRY_CPP
-#include "orbsvcs/Notify/Event_Map_Entry_T.h"
+#include "Event_Map_Entry_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Event_Map_Entry_T.inl"
+#include "Event_Map_Entry_T.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
@@ -14,10 +14,8 @@ ACE_RCSID (Notify,
"$Id$")
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Factory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Properties.h"
+#include "Factory.h"
template <class PROXY>
TAO_Notify_Event_Map_Entry_T<PROXY>::TAO_Notify_Event_Map_Entry_T (void)
@@ -53,6 +51,4 @@ TAO_Notify_Event_Map_Entry_T<PROXY>::disconnected (PROXY* proxy ACE_ENV_ARG_DECL
--count_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_EVENT_MAP_ENTRY_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.h
index e362f9a7efb..869803a26b7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "tao/ORB_Constants.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class PROXY, class ACE_LOCK> class TAO_Notify_Event_Map_T;
template <class PROXY> class TAO_ESF_Proxy_Collection;
@@ -82,14 +80,12 @@ protected:
ACE_Atomic_Op<TAO_SYNCH_MUTEX,int> usage_count_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Event_Map_Entry_T.inl"
+#include "Event_Map_Entry_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Event_Map_Entry_T.cpp"
+#include "Event_Map_Entry_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.inl
index 89da0eaed96..f01f9b0de6c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_Entry_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class PROXY> ACE_INLINE ACE_TYPENAME
TAO_Notify_Event_Map_Entry_T<PROXY>::COLLECTION*
TAO_Notify_Event_Map_Entry_T<PROXY>::collection (void) {
@@ -27,5 +23,3 @@ TAO_Notify_Event_Map_Entry_T<PROXY>::_decr_refcnt (void)
{
return --this->usage_count_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.cpp
index 121d1f51fd0..c1dbe74c813 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.cpp
@@ -1,19 +1,19 @@
// $Id$
-#ifndef TAO_Notify_EVENT_MAP_T_CPP
-#define TAO_Notify_EVENT_MAP_T_CPP
+#ifndef TAO_Notify_EVENT_MAP_T_C
+#define TAO_Notify_EVENT_MAP_T_C
-#include "orbsvcs/Notify/Event_Map_T.h"
+#include "Event_Map_T.h"
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
-#include "orbsvcs/Notify/Event_Map_Entry_T.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Factory.h"
+#include "Event_Map_Entry_T.h"
+#include "Properties.h"
+#include "Factory.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Event_Map_T.inl"
+#include "Event_Map_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Notify, TAO_Notify_Event_Map_T, "$Id$")
template <class PROXY, class ACE_LOCK>
TAO_Notify_Event_Map_T<PROXY, ACE_LOCK>::TAO_Notify_Event_Map_T (void)
@@ -161,6 +161,4 @@ TAO_Notify_Event_Map_T<PROXY, ACE_LOCK>::remove (PROXY* proxy, const TAO_Notify_
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_Notify_EVENT_MAP_T_CPP */
+#endif /* TAO_Notify_EVENT_MAP_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.h
index 011cb6530da..27567a9c7a2 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.h
@@ -13,7 +13,7 @@
#define TAO_Notify_EVENT_MAP_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,11 +22,9 @@
#include "ace/Hash_Map_Manager.h"
#include "ace/CORBA_macros.h"
-#include "orbsvcs/Notify/EventType.h"
-#include "orbsvcs/Notify/Event_Map_Entry_T.h"
-#include "orbsvcs/Notify/EventTypeSeq.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EventType.h"
+#include "Event_Map_Entry_T.h"
+#include "EventTypeSeq.h"
/**
* @class TAO_Notify_Event_Map_T
@@ -105,14 +103,12 @@ protected:
TAO_Notify_EventTypeSeq event_types_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Event_Map_T.inl"
+#include "Event_Map_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Event_Map_T.cpp"
+#include "Event_Map_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.inl
index 2b485893049..c3368bddbbc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Map_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class PROXY, class ACE_LOCK> ACE_INLINE TAO_Notify_Event_Map_Entry_T<PROXY>*
TAO_Notify_Event_Map_T<PROXY, ACE_LOCK>::find (const TAO_Notify_EventType& event_type ACE_ENV_ARG_DECL_NOT_USED)
{
@@ -52,5 +48,3 @@ TAO_Notify_Event_Map_T<PROXY, ACE_LOCK>::event_types (void)
{
return this->event_types_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp
index 3caa8a0c5a1..b58c83c3b9f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.cpp
@@ -1,13 +1,10 @@
-#include "orbsvcs/Notify/Event_Persistence_Factory.h"
+#include "Event_Persistence_Factory.h"
ACE_RCSID (Notify,
Event_Persistence_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Notify::Event_Persistence_Factory::~Event_Persistence_Factory (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h
index 0abc936b92a..2f36805859e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Factory.h
@@ -15,16 +15,13 @@
#ifndef EVENT_PERSISTENCE_FACTORY_H
#define EVENT_PERSISTENCE_FACTORY_H
#include /**/ "ace/pre.h"
-
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "notify_serv_export.h"
namespace TAO_Notify
{
@@ -48,7 +45,5 @@ namespace TAO_Notify
};
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* EVENT_PERSISTENCE_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Strategy.h b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Strategy.h
index 51019bac62a..3ff9990b326 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Event_Persistence_Strategy.h
@@ -15,17 +15,15 @@
#ifndef EVENT_PERSISTENCE_STRATEGY_H
#define EVENT_PERSISTENCE_STRATEGY_H
#include /**/ "ace/pre.h"
-
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-#include "ace/Service_Object.h"
+#include "notify_serv_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/Service_Object.h"
namespace TAO_Notify
{
@@ -45,7 +43,5 @@ namespace TAO_Notify
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* EVENT_PERSISTENCE_STRATEGY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Factory.h
index 22fc4dcf653..d2b7122a09d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Factory.h
@@ -18,16 +18,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
#include "ace/CORBA_macros.h"
#include "ace/Service_Object.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Object;
class TAO_Notify_EventChannelFactory;
class TAO_Notify_EventChannel;
@@ -129,8 +123,6 @@ public:
virtual void create (TAO_Notify_SequenceProxyPushSupplier*& proxy ACE_ENV_ARG_DECL) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp
index 81b86902a36..0ff7ce87611 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.cpp
@@ -1,19 +1,17 @@
/* -*- C++ -*- $Id$ */
-#include "orbsvcs/Notify/FilterAdmin.h"
+#include "FilterAdmin.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/FilterAdmin.inl"
+#include "FilterAdmin.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, FilterAdmin, "$Id$")
-#include "orbsvcs/Notify/Topology_Saver.h"
-#include "orbsvcs/Notify/Properties.h"
+#include "Topology_Saver.h"
+#include "Properties.h"
#include "ace/Bound_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementation skeleton constructor
TAO_Notify_FilterAdmin::TAO_Notify_FilterAdmin (void)
{
@@ -200,5 +198,3 @@ TAO_Notify_FilterAdmin::release (void)
{
delete this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.h b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.h
index dfa0d7eb7af..c1faf85d5eb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
* @file FilterAdmin.h
@@ -20,12 +19,10 @@
#include "ace/Hash_Map_Manager.h"
-#include "orbsvcs/Notify/ID_Factory.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Topology_Object.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ID_Factory.h"
+#include "Event.h"
+#include "notify_serv_export.h"
+#include "Topology_Object.h"
/**
* @class TAO_Notify_FilterAdmin
@@ -106,10 +103,8 @@ class TAO_Notify_Serv_Export TAO_Notify_FilterAdmin
TAO_Notify_ID_Factory filter_ids_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/FilterAdmin.inl"
+#include "FilterAdmin.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.inl b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.inl
index 3b30256fbb4..52627546951 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/FilterAdmin.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_Notify_FilterAdmin::match (const TAO_Notify_Event* event ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
@@ -35,5 +31,3 @@ TAO_Notify_FilterAdmin::match (const TAO_Notify_Event* event ACE_ENV_ARG_DECL)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/FilterFactory.h b/TAO/orbsvcs/orbsvcs/Notify/FilterFactory.h
index a806f8d9437..689aacf4857 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/FilterFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/FilterFactory.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,8 +24,6 @@
#include "tao/PortableServer/PortableServer.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_FilterFactory
*
@@ -42,8 +40,6 @@ public:
ACE_ENV_ARG_DECL) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_FILTERFACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp
index de2822ae61b..43110f20672 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_Notify_FIND_WORKER_T_CPP
#define TAO_Notify_FIND_WORKER_T_CPP
-#include "orbsvcs/Notify/Find_Worker_T.h"
+#include "Find_Worker_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Find_Worker_T.inl"
+#include "Find_Worker_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Notify, TAO_Notify_Find_Worker_T, "$Id$")
template<class TYPE, class INTERFACE, class INTERFACE_PTR, class EXCEPTION>
TAO_Notify_Find_Worker_T<TYPE,INTERFACE,INTERFACE_PTR,EXCEPTION>::TAO_Notify_Find_Worker_T (void)
@@ -32,7 +32,6 @@ template<class TYPE, class INTERFACE, class INTERFACE_PTR, class EXCEPTION> INTE
TAO_Notify_Find_Worker_T<TYPE,INTERFACE,INTERFACE_PTR,EXCEPTION>::resolve (const TAO_Notify_Object::ID id, CONTAINER& container ACE_ENV_ARG_DECL)
{
this->find (id, container ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (INTERFACE::_nil ());
if (this->result_ == 0)
ACE_THROW_RETURN (EXCEPTION ()
@@ -42,8 +41,7 @@ TAO_Notify_Find_Worker_T<TYPE,INTERFACE,INTERFACE_PTR,EXCEPTION>::resolve (const
ACE_CHECK_RETURN (INTERFACE::_nil ());
return INTERFACE::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+}
#endif /* TAO_Notify_FIND_WORKER_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h
index c9c09eca0fa..abc1533da56 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.h
@@ -13,7 +13,7 @@
#define TAO_Notify_FIND_WORKER_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,10 +21,8 @@
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/Notify/Container_T.h"
-#include "orbsvcs/Notify/Object.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Container_T.h"
+#include "Object.h"
/**
* @class TAO_Notify_Find_Worker_T
@@ -59,14 +57,12 @@ protected:
TYPE* result_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Find_Worker_T.inl"
+#include "Find_Worker_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Find_Worker_T.cpp"
+#include "Find_Worker_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.inl
index 2b9af82e37a..04d4252383f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Find_Worker_T.inl
@@ -1,14 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class TYPE, class INTERFACE, class INTERFACE_PTR, class EXCEPTION> ACE_INLINE void
TAO_Notify_Find_Worker_T<TYPE,INTERFACE,INTERFACE_PTR,EXCEPTION>::work (TYPE* type ACE_ENV_ARG_DECL_NOT_USED)
{
if (type->id () == this->id_)
this->result_ = type;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp
index 71f0721ee0e..b8bec81f68c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/ID_Factory.h"
+#include "ID_Factory.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/ID_Factory.inl"
+#include "ID_Factory.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_ID_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_ID_Factory::TAO_Notify_ID_Factory (void)
: seed_ (0)
{
@@ -18,5 +16,3 @@ TAO_Notify_ID_Factory::TAO_Notify_ID_Factory (void)
TAO_Notify_ID_Factory::~TAO_Notify_ID_Factory ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.h
index f6596be8410..b9f0bd8aef5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,9 +22,7 @@
#include "ace/Atomic_Op.h"
-#include "orbsvcs/Notify/Object.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Object.h"
/**
* @class TAO_Notify_ID_Factory
@@ -51,10 +49,9 @@ private:
TAO_SYNCH_MUTEX mtx_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/ID_Factory.inl"
+#include "ID_Factory.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.inl b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.inl
index 6aa178a4421..f9fb1f5e89b 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/ID_Factory.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Notify_Object::ID
TAO_Notify_ID_Factory::id (void)
{
@@ -20,5 +16,3 @@ TAO_Notify_ID_Factory::set_last_used (const TAO_Notify_Object::ID id)
this->seed_ = id;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp
index e9dc45dbb07..cf9160bae6a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.cpp
@@ -1,15 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Method_Request.h"
+#include "Method_Request.h"
#include "orbsvcs/Time_Utilities.h"
#include "ace/OS_NS_sys_time.h"
ACE_RCSID(Notify, TAO_Notify_Method_Request_Queueable, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Method_Request::~TAO_Notify_Method_Request (void)
{
}
@@ -58,5 +55,3 @@ TAO_Notify_Method_Request_Queueable::init (const TAO_Notify_Event* event)
this->msg_deadline_time (deadline);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.h
index 271c2d721b4..c47d2ddc2f8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Method_Request.h
*
@@ -13,7 +12,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,9 +22,7 @@
#include "ace/Bound_Ptr.h"
#include "ace/OS_NS_sys_time.h"
-#include "orbsvcs/Notify/Event.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Event.h"
class TAO_Notify_Method_Request_Queueable;
@@ -68,8 +65,6 @@ public:
void init (const TAO_Notify_Event * event);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_METHOD_REQUEST_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp
index af503aa3077..74a2f0a60e8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.cpp
@@ -1,26 +1,25 @@
// $Id$
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
+#include "Method_Request_Dispatch.h"
ACE_RCSID(Notify, TAO_Notify_Method_Request_Dispatch, "$Id$")
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/Consumer.h"
-#include "orbsvcs/Notify/Admin.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
-#include "orbsvcs/Notify/EventChannelFactory.h"
+#include "ProxySupplier.h"
+#include "Consumer.h"
+#include "Admin.h"
+#include "ConsumerAdmin.h"
+#include "EventChannelFactory.h"
#include "tao/debug.h"
-#include "tao/CDR.h"
+#include "tao/corba.h"
#include "ace/OS_NS_stdio.h"
+//#define DEBUG_LEVEL 10
#ifndef DEBUG_LEVEL
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constuct from event
TAO_Notify_Method_Request_Dispatch::TAO_Notify_Method_Request_Dispatch (
const TAO_Notify_Event * event,
@@ -78,7 +77,6 @@ int TAO_Notify_Method_Request_Dispatch::execute_i (ACE_ENV_SINGLE_ARG_DECL)
parent.filter_admin (),
parent.filter_operator ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
if (TAO_debug_level > 1)
ACE_DEBUG ((LM_DEBUG, "Proxysupplier %x filter eval result = %d",&this->proxy_supplier_ , val));
@@ -301,4 +299,3 @@ TAO_Notify_Method_Request_Dispatch_No_Copy::copy (ACE_ENV_SINGLE_ARG_DECL)
return request;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h
index fed8d063cfa..73d0b028a3d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Dispatch.h
@@ -1,30 +1,29 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Method_Request_Dispatch.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_DISPATCH_METHOD_REQUEST_H
#define TAO_Notify_DISPATCH_METHOD_REQUEST_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Method_Request.h"
-#include "orbsvcs/Notify/Refcountable.h"
-#include "orbsvcs/Notify/Method_Request_Event.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/Delivery_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Method_Request.h"
+#include "Refcountable.h"
+#include "Method_Request_Event.h"
+#include "ProxySupplier.h"
+#include "Delivery_Request.h"
class TAO_Notify_EventChannelFactory;
class TAO_InputCDR;
@@ -123,11 +122,11 @@ public:
virtual int execute (ACE_ENV_SINGLE_ARG_DECL);
private:
- TAO_Notify_Event::Ptr event_var_;
+ const TAO_Notify_Event::Ptr event_var_;
TAO_Notify_ProxySupplier::Ptr proxy_guard_;
};
-/*****************************************************************************/
+/*******************************************************************************************************/
/**
* @class TAO_Notify_Method_Request_Dispatch_No_Copy
@@ -162,9 +161,7 @@ public:
virtual TAO_Notify_Method_Request_Queueable* copy (ACE_ENV_SINGLE_ARG_DECL);
};
-/*****************************************************************************/
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+/*******************************************************************************************************/
#include /**/ "ace/post.h"
#endif /* TAO_Notify_DISPATCH_METHOD_REQUEST_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp
index 53ab33da14c..4b479d58128 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/Method_Request_Event.h"
-#include "orbsvcs/Notify/Delivery_Request.h"
+#include "Method_Request_Event.h"
+#include "Delivery_Request.h"
ACE_RCSID (Notify, TAO_Notify_Method_Request_Event_Queueable, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
const TAO_Notify_Event * event)
: event_ (event)
@@ -67,10 +65,10 @@ TAO_Notify_Method_Request_Event::should_retry ()
TAO_Notify_Method_Request_Event_Queueable::TAO_Notify_Method_Request_Event_Queueable (
const TAO_Notify_Method_Request_Event & prev_request,
- const TAO_Notify_Event::Ptr& event)
- : TAO_Notify_Method_Request_Queueable (event.get ())
- , TAO_Notify_Method_Request_Event (prev_request, event.get ())
- , event_var_ (event)
+ const TAO_Notify_Event::Ptr & event_var)
+ : TAO_Notify_Method_Request_Queueable (event_var.get ())
+ , TAO_Notify_Method_Request_Event (prev_request, event_var.get ())
+ , event_var_ (event_var)
{
}
@@ -98,5 +96,3 @@ TAO_Notify_Method_Request_Event::event() const
{
return this->event_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.h
index 4acb97f10d9..437aa08187d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Event.h
@@ -1,31 +1,30 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Method_Request_Event.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_METHOD_REQUEST_EVENT_H
#define TAO_Notify_METHOD_REQUEST_EVENT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Method_Request.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
+#include "Method_Request.h"
+#include "Event.h"
+#include "ProxySupplier.h"
#include "tao/Basic_Types.h"
#include "ace/CORBA_macros.h"
-#include "orbsvcs/Notify/Delivery_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Delivery_Request.h"
/**
* @class TAO_Notify_Method_Request_Event
@@ -84,7 +83,7 @@ public:
/// exceptions from the constructor if it's necessary to copy the event.
TAO_Notify_Method_Request_Event_Queueable (
const TAO_Notify_Method_Request_Event & prev_request,
- const TAO_Notify_Event::Ptr & event);
+ const TAO_Notify_Event::Ptr & event_var);
TAO_Notify_Method_Request_Event_Queueable (
TAO_Notify::Delivery_Request_Ptr & request);
@@ -98,7 +97,5 @@ private:
TAO_Notify_Event::Ptr event_var_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_METHOD_REQUEST_EVENT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp
index bee058ab534..3ae5412ccdd 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.cpp
@@ -1,27 +1,21 @@
// $Id$
-#include "orbsvcs/Notify/Method_Request_Lookup.h"
+#include "Method_Request_Lookup.h"
ACE_RCSID(Notify, TAO_Notify_Method_Request_Lookup, "$Id$")
-#include "orbsvcs/Notify/Consumer_Map.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/ProxyConsumer.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/Admin.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
-#include "orbsvcs/Notify/Delivery_Request.h"
-#include "orbsvcs/Notify/EventChannelFactory.h"
-#include "orbsvcs/Notify/Event_Manager.h"
-#include "orbsvcs/Notify/Factory.h"
-
-#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
+#include "Consumer_Map.h"
+#include "ProxySupplier.h"
+#include "ProxyConsumer.h"
+#include "Proxy.h"
+#include "Admin.h"
+#include "SupplierAdmin.h"
+#include "Method_Request_Dispatch.h"
+#include "Delivery_Request.h"
+#include "EventChannelFactory.h"
#include "tao/debug.h"
-#include "tao/CDR.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/corba.h"
TAO_Notify_Method_Request_Lookup::TAO_Notify_Method_Request_Lookup (
const TAO_Notify_Event * event,
@@ -44,7 +38,6 @@ TAO_Notify_Method_Request_Lookup::work (
{
TAO_Notify_Method_Request_Dispatch_No_Copy request (*this, proxy_supplier, true);
proxy_supplier->deliver (request ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
else
{
@@ -64,7 +57,6 @@ int TAO_Notify_Method_Request_Lookup::execute_i (ACE_ENV_SINGLE_ARG_DECL)
parent.filter_admin (),
parent.filter_operator ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
if (TAO_debug_level > 1)
ACE_DEBUG ((LM_DEBUG, "Proxyconsumer %x filter eval result = %d",&this->proxy_consumer_ , val));
@@ -86,10 +78,7 @@ int TAO_Notify_Method_Request_Lookup::execute_i (ACE_ENV_SINGLE_ARG_DECL)
consumers = entry->collection ();
if (consumers != 0)
- {
- consumers->for_each (this ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
+ consumers->for_each (this ACE_ENV_ARG_PARAMETER);
map.release (entry);
}
@@ -98,10 +87,7 @@ int TAO_Notify_Method_Request_Lookup::execute_i (ACE_ENV_SINGLE_ARG_DECL)
consumers = map.broadcast_collection ();
if (consumers != 0)
- {
- consumers->for_each (this ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
+ consumers->for_each (this ACE_ENV_ARG_PARAMETER);
this->complete ();
return 0;
}
@@ -220,14 +206,13 @@ TAO_Notify_Method_Request_Lookup_No_Copy::copy (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_Notify_Method_Request_Queueable* request;
- TAO_Notify_Event::Ptr event(this->event_->queueable_copy(ACE_ENV_SINGLE_ARG_PARAMETER));
+ TAO_Notify_Event::Ptr event_var (
+ this->event_->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER) );
ACE_CHECK_RETURN (0);
ACE_NEW_THROW_EX (request,
- TAO_Notify_Method_Request_Lookup_Queueable (event, this->proxy_consumer_),
+ TAO_Notify_Method_Request_Lookup_Queueable (event_var, this->proxy_consumer_),
CORBA::INTERNAL ());
return request;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h
index d54bb62833e..b88af7fa181 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Lookup.h
@@ -1,33 +1,32 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Method_Request_Lookup.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
+
#ifndef TAO_Notify_LOOKUP_METHOD_REQUEST_H
#define TAO_Notify_LOOKUP_METHOD_REQUEST_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/Notify/Method_Request_Event.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/ProxyConsumer.h"
-#include "orbsvcs/Notify/Consumer_Map.h"
-#include "orbsvcs/Notify/Delivery_Request.h"
+#include "Method_Request_Event.h"
+#include "ProxySupplier.h"
+#include "ProxyConsumer.h"
+#include "Consumer_Map.h"
+#include "Delivery_Request.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Method_Request_Lookup_Queueable;
class TAO_Notify_Event;
@@ -102,7 +101,7 @@ public:
virtual int execute (ACE_ENV_SINGLE_ARG_DECL);
private:
- TAO_Notify_Event::Ptr event_var_;
+ const TAO_Notify_Event::Ptr event_var_;
TAO_Notify_ProxyConsumer::Ptr proxy_guard_;
};
@@ -134,7 +133,5 @@ public:
virtual TAO_Notify_Method_Request_Queueable* copy (ACE_ENV_SINGLE_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_LOOKUP_METHOD_REQUEST_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp
index 74ca99ef829..69e6d0aa1ae 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/Method_Request_Shutdown.h"
-#include "orbsvcs/Notify/ThreadPool_Task.h"
+#include "Method_Request_Shutdown.h"
+#include "ThreadPool_Task.h"
ACE_RCSID(Notify, TAO_Notify_Method_Request_Shutdown, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Method_Request_Shutdown::TAO_Notify_Method_Request_Shutdown (TAO_Notify_ThreadPool_Task* task)
: task_ (task)
{
@@ -31,5 +29,3 @@ TAO_Notify_Method_Request_Shutdown::execute (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
this->task_->msg_queue ()->deactivate ();
return -1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h
index af38f816524..aa93b347070 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Shutdown.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Method_Request_Shutdown.h
*
@@ -14,15 +13,13 @@
#define TAO_Notify_METHOD_REQUEST_SHUTDOWN_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Method_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Method_Request.h"
class TAO_Notify_ThreadPool_Task;
@@ -52,7 +49,5 @@ private:
TAO_Notify_ThreadPool_Task* task_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_METHOD_REQUEST_SHUTDOWN_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp
index 18ac5fa1841..27c0c16d782 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Method_Request_Updates.h"
+#include "Method_Request_Updates.h"
ACE_RCSID(Notify, TAO_Notify_Method_Request_Updates, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/Peer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Proxy.h"
+#include "Peer.h"
TAO_Notify_Method_Request_Updates::TAO_Notify_Method_Request_Updates (const TAO_Notify_EventTypeSeq& added, const TAO_Notify_EventTypeSeq& removed, TAO_Notify_Proxy* proxy)
: TAO_Notify_Method_Request_Updates_Base (added, removed, proxy)
@@ -25,7 +23,7 @@ TAO_Notify_Method_Request_Updates::execute (ACE_ENV_SINGLE_ARG_DECL)
return this->execute_i (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-/*****************************************************************************/
+/********************************************************************************************************/
TAO_Notify_Method_Request_Updates_No_Copy::TAO_Notify_Method_Request_Updates_No_Copy (const TAO_Notify_EventTypeSeq& added
, const TAO_Notify_EventTypeSeq& removed, TAO_Notify_Proxy* proxy)
@@ -40,12 +38,11 @@ TAO_Notify_Method_Request_Updates_No_Copy::~TAO_Notify_Method_Request_Updates_No
TAO_Notify_Method_Request_Queueable*
TAO_Notify_Method_Request_Updates_No_Copy::copy (ACE_ENV_SINGLE_ARG_DECL)
{
- TAO_Notify_Method_Request_Queueable* request = 0;
+ TAO_Notify_Method_Request_Queueable* request;
ACE_NEW_THROW_EX (request,
TAO_Notify_Method_Request_Updates (this->added_, this->removed_, this->proxy_),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (request);
+ CORBA::INTERNAL ());
return request;
}
@@ -55,5 +52,3 @@ TAO_Notify_Method_Request_Updates_No_Copy::execute (ACE_ENV_SINGLE_ARG_DECL)
{
return this->execute_i (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.h
index b9410188772..b072288cf26 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates.h
@@ -1,29 +1,28 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Method_Request_Updates.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_METHOD_REQUEST_UPDATES_H
#define TAO_Notify_METHOD_REQUEST_UPDATES_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Method_Request_Updates_T.h"
-#include "orbsvcs/Notify/Method_Request.h"
-#include "orbsvcs/Notify/EventTypeSeq.h"
-#include "orbsvcs/Notify/Proxy.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Method_Request_Updates_T.h"
+#include "Method_Request.h"
+#include "EventTypeSeq.h"
+#include "Proxy.h"
typedef TAO_Notify_Method_Request_Updates_T<const TAO_Notify_EventTypeSeq
, TAO_Notify_Proxy::Ptr
@@ -37,9 +36,8 @@ typedef TAO_Notify_Method_Request_Updates_T<const TAO_Notify_EventTypeSeq
* @brief Command Object to send updates to proxys.
*
*/
-class TAO_Notify_Serv_Export TAO_Notify_Method_Request_Updates
- : public TAO_Notify_Method_Request_Updates_Base
- , public TAO_Notify_Method_Request_Queueable
+class TAO_Notify_Serv_Export TAO_Notify_Method_Request_Updates : public TAO_Notify_Method_Request_Updates_Base
+ ,public TAO_Notify_Method_Request_Queueable
{
public:
/// Constuctor
@@ -52,7 +50,7 @@ public:
virtual int execute (ACE_ENV_SINGLE_ARG_DECL);
};
-/*****************************************************************************/
+/***********************************************************************************************************************/
typedef TAO_Notify_Method_Request_Updates_T<const TAO_Notify_EventTypeSeq&
, TAO_Notify_Proxy*
@@ -66,9 +64,8 @@ typedef TAO_Notify_Method_Request_Updates_T<const TAO_Notify_EventTypeSeq&
* @brief Command Object to send updates to proxys.
*
*/
-class TAO_Notify_Serv_Export TAO_Notify_Method_Request_Updates_No_Copy
- : public TAO_Notify_Method_Request_Updates_No_Copy_Base
- , public TAO_Notify_Method_Request
+class TAO_Notify_Serv_Export TAO_Notify_Method_Request_Updates_No_Copy : public TAO_Notify_Method_Request_Updates_No_Copy_Base
+ ,public TAO_Notify_Method_Request
{
public:
/// Constuctor
@@ -84,7 +81,5 @@ public:
virtual int execute (ACE_ENV_SINGLE_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_METHOD_REQUEST_UPDATES_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.cpp
index 19db54e852f..5212ae6660c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.cpp
@@ -1,15 +1,14 @@
// $Id$
-
#ifndef TAO_Notify_Method_Request_Updates_T_CPP
#define TAO_Notify_Method_Request_Updates_T_CPP
-#include "orbsvcs/Notify/Method_Request_Updates_T.h"
+#include "Method_Request_Updates_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Method_Request_Updates_T.inl"
+#include "Method_Request_Updates_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (Notify, TAO_Notify_Method_Request_Updates_T, "$Id$")
template <class SEQ, class PROXY, class SEQ_PARAM, class PROXY_PARAM>
TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, SEQ_PARAM, PROXY_PARAM>::TAO_Notify_Method_Request_Updates_T (SEQ_PARAM added, SEQ_PARAM removed,
@@ -23,6 +22,4 @@ TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, SEQ_PARAM, PROXY_PARAM>::~TAO_No
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_Method_Request_Updates_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.h b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.h
index 53b6c1d7b30..bfe4e4de89f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.h
@@ -14,17 +14,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Environment;
@@ -62,14 +59,12 @@ protected:
PROXY proxy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Method_Request_Updates_T.inl"
+#include "Method_Request_Updates_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Method_Request_Updates_T.cpp"
+#include "Method_Request_Updates_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.inl
index 657b6dd0929..1beed753ed5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Method_Request_Updates_T.inl
@@ -1,11 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
#include "tao/debug.h"
-#include "orbsvcs/Notify/Peer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Peer.h"
template <class SEQ, class PROXY, class SEQ_PARAM, class PROXY_PARAM> ACE_INLINE int
TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, SEQ_PARAM, PROXY_PARAM>::execute_i (ACE_ENV_SINGLE_ARG_DECL)
@@ -32,5 +28,3 @@ TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, SEQ_PARAM, PROXY_PARAM>::execute
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp b/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp
index 7d1109eb65e..441cbc41493 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.cpp
@@ -1,15 +1,15 @@
// $Id$
-#include "orbsvcs/Notify/Name_Value_Pair.h"
-#include "orbsvcs/Notify/Property_T.h"
+#include "Name_Value_Pair.h"
+#include "Property_T.h"
#include "ace/OS_String.h"
#include "ace/OS_NS_stdio.h"
namespace
{
- ACE_UINT64 string_to_uint64 (const char * s)
+ ACE_UINT64 string_to_uint64(const char * s)
{
- size_t const len = ACE_OS::strlen (s);
+ size_t len = ACE_OS::strlen (s);
if (len == 0)
return 0;
if (! isdigit(s[0]))
@@ -29,8 +29,6 @@ namespace
}
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
NVP::NVP()
@@ -64,7 +62,7 @@ namespace TAO_Notify
#else
ACE_OS::sprintf(buf, ACE_UINT64_FORMAT_SPECIFIER, us);
#endif /* ACE_LACKS_LONGLONG_T */
- value = ACE_TEXT_ALWAYS_CHAR (buf);
+ value = ACE_TEXT_TO_CHAR_IN (buf);
}
NVP::NVP(const TAO_Notify_Property_Boolean& p)
@@ -207,10 +205,8 @@ namespace TAO_Notify
const NVP& NVPList::operator[](size_t ndx) const
{
- ACE_ASSERT (ndx < list_.size());
+ ACE_ASSERT(ndx < list_.size());
return list_[ndx];
}
} // namespace TAO_Notify
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.h b/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.h
index 6aa695f0e4a..f3b02be655b 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Name_Value_Pair.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,9 +14,9 @@
#define NAME_VALUE_PAIR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Property_Boolean.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "Property.h"
+#include "Property_Boolean.h"
+#include "notify_serv_export.h"
#include "ace/SString.h"
#include "ace/Vector_T.h"
@@ -25,8 +25,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
/**
@@ -96,7 +94,5 @@ namespace TAO_Notify
};
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* NAME_VALUE_PAIR_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp
index 5d6f3e11e21..277c20ec444 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.cpp
@@ -1,13 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/Notify_Constraint_Interpreter.h"
-#include "orbsvcs/Notify/Notify_Constraint_Visitors.h"
+#include "Notify_Constraint_Interpreter.h"
+#include "Notify_Constraint_Visitors.h"
ACE_RCSID(Notify, NS_Constraint_Interpreter, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Constraint_Interpreter::TAO_Notify_Constraint_Interpreter (void)
{
}
@@ -43,7 +40,7 @@ TAO_Notify_Constraint_Interpreter::build_tree (
CORBA::Boolean
TAO_Notify_Constraint_Interpreter::evaluate (TAO_Notify_Constraint_Visitor &evaluator)
{
- return evaluator.evaluate_constraint (this->root_);
-}
+ CORBA::Boolean retval = evaluator.evaluate_constraint (this->root_);
-TAO_END_VERSIONED_NAMESPACE_DECL
+ return retval;
+}
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h
index acb7c8b9d86..1eb9eac1efe 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Interpreter.h
@@ -1,11 +1,11 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Notify_Constraint_Interpreter.h
*
* $Id$
*
+ *
* @author Pradeep Gore <pradeep@cs.wustl.edu>
*/
//=============================================================================
@@ -23,9 +23,7 @@
#include "orbsvcs/ETCL/ETCL_Constraint.h"
#include "orbsvcs/CosNotifyFilterC.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "notify_serv_export.h"
class TAO_Notify_Constraint_Visitor;
@@ -58,8 +56,5 @@ public:
/// the evaluator.
CORBA::Boolean evaluate (TAO_Notify_Constraint_Visitor &evaluator);
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NOTIFY_CONSTRAINT_INTERPRETER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp
index f342c7e93f5..a76c30518d8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.cpp
@@ -1,6 +1,6 @@
-// $Id$
+/* $Id$ */
-#include "orbsvcs/Notify/Notify_Constraint_Visitors.h"
+#include "Notify_Constraint_Visitors.h"
#include "orbsvcs/ETCL/ETCL_Constraint.h"
#include "orbsvcs/ETCL/ETCL_y.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
@@ -12,50 +12,45 @@
#include "tao/DynamicAny/DynAnyFactory.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Constraint_Visitor::TAO_Notify_Constraint_Visitor (void)
- : implicit_id_ (TAO_Notify_Constraint_Visitor::EMPTY),
- implicit_ids_(implicit_ids_size_),
- filterable_data_(filterable_data_size_),
- variable_header_(variable_header_size_)
+ : implicit_id_ (TAO_Notify_Constraint_Visitor::EMPTY)
{
(void) this->implicit_ids_.bind (ACE_CString ("filterable_data",
- 0,
- 0),
- FILTERABLE_DATA);
+ 0,
+ 0),
+ FILTERABLE_DATA);
(void) this->implicit_ids_.bind (ACE_CString ("header",
- 0,
- 0),
- HEADER);
+ 0,
+ 0),
+ HEADER);
(void) this->implicit_ids_.bind (ACE_CString ("remainder_of_body",
- 0,
- 0),
- REMAINDER_OF_BODY);
+ 0,
+ 0),
+ REMAINDER_OF_BODY);
(void) this->implicit_ids_.bind (ACE_CString ("fixed_header",
- 0,
- 0),
- FIXED_HEADER);
+ 0,
+ 0),
+ FIXED_HEADER);
(void) this->implicit_ids_.bind (ACE_CString ("variable_header",
- 0,
- 0),
- VARIABLE_HEADER);
+ 0,
+ 0),
+ VARIABLE_HEADER);
(void) this->implicit_ids_.bind (ACE_CString ("event_name",
- 0,
- 0),
- EVENT_NAME);
+ 0,
+ 0),
+ EVENT_NAME);
(void) this->implicit_ids_.bind (ACE_CString ("event_type",
- 0,
- 0),
- EVENT_TYPE);
+ 0,
+ 0),
+ EVENT_TYPE);
(void) this->implicit_ids_.bind (ACE_CString ("domain_name",
- 0,
- 0),
- DOMAIN_NAME);
+ 0,
+ 0),
+ DOMAIN_NAME);
(void) this->implicit_ids_.bind (ACE_CString ("type_name",
- 0,
- 0),
- TYPE_NAME);
+ 0,
+ 0),
+ TYPE_NAME);
}
int
@@ -68,34 +63,34 @@ TAO_Notify_Constraint_Visitor::bind_structured_event (const CosNotification::Str
CORBA::ULong index = 0;
for (index = 0; index < length; ++index)
- {
- ACE_CString name_str (s_event.filterable_data[index].name, 0, 0);
+ {
+ ACE_CString name_str (s_event.filterable_data[index].name, 0, 0);
- int status =
- this->filterable_data_.bind (
- name_str,
- s_event.filterable_data[index].value
- );
+ int status =
+ this->filterable_data_.bind (
+ name_str,
+ const_cast<CORBA::Any *> (&s_event.filterable_data[index].value)
+ );
- if (status != 0)
- return -1;
- }
+ if (status != 0)
+ return -1;
+ }
length = s_event.header.variable_header.length ();
for (index = 0; index < length; ++index)
- {
- ACE_CString name_str (s_event.header.variable_header[index].name, 0, 0);
+ {
+ ACE_CString name_str (s_event.header.variable_header[index].name, 0, 0);
- int status =
- this->variable_header_.bind (
- name_str,
- s_event.header.variable_header[index].value
- );
+ int status =
+ this->variable_header_.bind (
+ name_str,
+ const_cast<CORBA::Any *> (&s_event.header.variable_header[index].value)
+ );
- if (status != 0)
- return -1;
- }
+ if (status != 0)
+ return -1;
+ }
this->domain_name_ =
CORBA::string_dup (s_event.header.fixed_header.event_type.domain_name);
@@ -113,7 +108,7 @@ TAO_Notify_Constraint_Visitor::bind_structured_event (const CosNotification::Str
CORBA::Boolean
TAO_Notify_Constraint_Visitor::evaluate_constraint (
- TAO_ETCL_Constraint* root
+ TAO_ETCL_Constraint* root
)
{
CORBA::Boolean result = 0;
@@ -121,15 +116,15 @@ TAO_Notify_Constraint_Visitor::evaluate_constraint (
// Evaluate the constraint in root_;
if (root != 0)
- {
- if ((root->accept (this) == 0) &&
- (! this->queue_.is_empty ()))
{
- TAO_ETCL_Literal_Constraint top;
- this->queue_.dequeue_head (top);
- result = (CORBA::Boolean) top;
+ if ((root->accept (this) == 0) &&
+ (! this->queue_.is_empty ()))
+ {
+ TAO_ETCL_Literal_Constraint top;
+ this->queue_.dequeue_head (top);
+ result = (CORBA::Boolean) top;
+ }
}
- }
// If a property couldn't be evaluated we must return 0.
return result;
@@ -137,7 +132,7 @@ TAO_Notify_Constraint_Visitor::evaluate_constraint (
int
TAO_Notify_Constraint_Visitor::visit_literal (
- TAO_ETCL_Literal_Constraint *literal
+ TAO_ETCL_Literal_Constraint *literal
)
{
this->queue_.enqueue_head (*literal);
@@ -151,23 +146,23 @@ TAO_Notify_Constraint_Visitor::visit_identifier (TAO_ETCL_Identifier *ident)
const char *name = ident->value ();
ACE_CString key (name, 0, 0);
- CORBA::Any any;
+ CORBA::Any *any = 0;
if (this->filterable_data_.find (key, any) == 0)
- {
- if (any.impl() != 0)
{
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (&any));
- return_value = 0;
+ if (any != 0)
+ {
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (any));
+ return_value = 0;
+ }
}
- }
return return_value;
}
int
TAO_Notify_Constraint_Visitor::visit_union_value (
- TAO_ETCL_Union_Value *union_value
+ TAO_ETCL_Union_Value *union_value
)
{
switch (union_value->sign ())
@@ -190,304 +185,308 @@ TAO_Notify_Constraint_Visitor::visit_union_value (
int
TAO_Notify_Constraint_Visitor::visit_union_pos (
- TAO_ETCL_Union_Pos *union_pos
+ TAO_ETCL_Union_Pos *union_pos
)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- if (union_pos->union_value ()->accept (this) == 0)
{
- TAO_ETCL_Literal_Constraint disc_val;
- this->queue_.dequeue_head (disc_val);
-
- TAO_DynUnion_i dyn_union;
- dyn_union.init (this->current_value_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::TypeCode_var tc = this->current_value_->type ();
-
- switch (disc_val.expr_type ())
- {
- case TAO_ETCL_INTEGER:
- case TAO_ETCL_SIGNED:
- case TAO_ETCL_UNSIGNED:
+ if (union_pos->union_value ()->accept (this) == 0)
{
- CORBA::Any disc_any;
- CORBA::TypeCode_var disc_tc =
- tc->discriminator_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- CORBA::TCKind disc_kind =
- TAO_DynAnyFactory::unalias (disc_tc.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ TAO_ETCL_Literal_Constraint disc_val;
+ this->queue_.dequeue_head (disc_val);
- switch (disc_kind)
- {
- case CORBA::tk_boolean:
- disc_any <<= CORBA::Any::from_boolean ((CORBA::Boolean) disc_val);
- break;
- case CORBA::tk_short:
- disc_any <<= (CORBA::Short) ((CORBA::Long) disc_val);
- break;
- case CORBA::tk_ushort:
- disc_any <<= (CORBA::UShort) ((CORBA::ULong) disc_val);
- break;
- case CORBA::tk_long:
- disc_any <<= (CORBA::Long) disc_val;
- break;
- case CORBA::tk_ulong:
- disc_any <<= (CORBA::ULong) disc_val;
- break;
- case CORBA::tk_enum:
- {
- TAO_OutputCDR cdr;
- cdr.write_ulong ((CORBA::ULong) disc_val);
- TAO_InputCDR in_cdr (cdr);
- TAO::Unknown_IDL_Type *unk = 0;
- ACE_NEW_RETURN (unk,
- TAO::Unknown_IDL_Type (disc_tc.in (),
- in_cdr),
- -1);
-
- disc_any.replace (unk);
- break;
- }
- // @@@ (JP) I don't think ETCL handles 64-bit
- // integers at this point, and I also think that
- // chars and/or wchars will just come out in the
- // constraint as (w)strings of length 1.
- case CORBA::tk_longlong:
- case CORBA::tk_ulonglong:
- case CORBA::tk_char:
- case CORBA::tk_wchar:
- default:
- return -1;
- }
-
- DynamicAny::DynAny_var dyn_any =
- TAO_DynAnyFactory::make_dyn_any (disc_any
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- dyn_union.set_discriminator (dyn_any.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- DynamicAny::DynAny_var u_member =
- dyn_union.member (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- this->current_value_ =
- u_member->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- break;
- }
- case TAO_ETCL_STRING:
- {
- const char *name = (const char *) disc_val;
- CORBA::ULong count =
- tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
+ TAO_DynUnion_i dyn_union;
+ dyn_union.init (this->current_value_.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- const char *member_name = 0;
- CORBA::ULong i = 0;
+ CORBA::TypeCode_var tc = this->current_value_->type ();
- for (i = 0; i < count; ++i)
- {
- member_name = tc->member_name (i
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (ACE_OS::strcmp (name, member_name) == 0)
- break;
- }
+ switch (disc_val.expr_type ())
+ {
+ case TAO_ETCL_INTEGER:
+ case TAO_ETCL_SIGNED:
+ case TAO_ETCL_UNSIGNED:
+ {
+ CORBA::Any disc_any;
+ CORBA::TypeCode_var disc_tc =
+ tc->discriminator_type (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CORBA::TCKind disc_kind =
+ TAO_DynAnyFactory::unalias (disc_tc.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ switch (disc_kind)
+ {
+ case CORBA::tk_boolean:
+ disc_any <<= CORBA::Any::from_boolean ((CORBA::Boolean) disc_val);
+ break;
+ case CORBA::tk_short:
+ disc_any <<= (CORBA::Short) ((CORBA::Long) disc_val);
+ break;
+ case CORBA::tk_ushort:
+ disc_any <<= (CORBA::UShort) ((CORBA::ULong) disc_val);
+ break;
+ case CORBA::tk_long:
+ disc_any <<= (CORBA::Long) disc_val;
+ break;
+ case CORBA::tk_ulong:
+ disc_any <<= (CORBA::ULong) disc_val;
+ break;
+ case CORBA::tk_enum:
+ {
+ TAO_OutputCDR cdr;
+ cdr.write_ulong ((CORBA::ULong) disc_val);
+ TAO_InputCDR in_cdr (cdr);
+ TAO::Unknown_IDL_Type *unk = 0;
+ ACE_NEW_RETURN (unk,
+ TAO::Unknown_IDL_Type (disc_tc.in (),
+ in_cdr),
+ -1);
+
+ disc_any.replace (unk);
+ break;
+ }
+ // @@@ (JP) I don't think ETCL handles 64-bit
+ // integers at this point, and I also think that
+ // chars and/or wchars will just come out in the
+ // constraint as (w)strings of length 1.
+ case CORBA::tk_longlong:
+ case CORBA::tk_ulonglong:
+ case CORBA::tk_char:
+ case CORBA::tk_wchar:
+ default:
+ return -1;
+ }
+
+ DynamicAny::DynAny_var dyn_any =
+ TAO_DynAnyFactory::make_dyn_any (disc_any
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ dyn_union.set_discriminator (dyn_any.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ DynamicAny::DynAny_var u_member =
+ dyn_union.member (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ this->current_value_ =
+ u_member->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ break;
+ }
+ case TAO_ETCL_STRING:
+ {
+ const char *name = (const char *) disc_val;
+ CORBA::ULong count =
+ tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ const char *member_name = 0;
+ CORBA::ULong i = 0;
+
+ for (i = 0; i < count; ++i)
+ {
+ member_name = tc->member_name (i
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (ACE_OS::strcmp (name, member_name) == 0)
+ break;
+ }
+
+ // If there's no match, member_label will throw
+ // CORBA::TypeCode::Bounds and the catch block will
+ // return -1;
+ this->current_value_ = tc->member_label (i
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ break;
+ }
+ // The TAO_ETCL_Union_Value that was put on the queue
+ // shouldn't have any other type.
+ default:
+ return -1;
+ }
- // If there's no match, member_label will throw
- // CORBA::TypeCode::Bounds and the catch block will
- // return -1;
- this->current_value_ = tc->member_label (i
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ TAO_ETCL_Constraint *nested = union_pos->component ();
- break;
+ // If there's no nested component, then we just want the
+ // union member value on the queue. Otherwise, we want
+ // the member value in current_value_ while we visit
+ // the nested component.
+ if (nested == 0)
+ {
+ TAO_ETCL_Literal_Constraint lit (this->current_value_.ptr ());
+ this->queue_.enqueue_head (lit);
+ return 0;
+ }
+ else
+ return nested->accept (this);
}
- // The TAO_ETCL_Union_Value that was put on the queue
- // shouldn't have any other type.
- default:
- return -1;
- }
-
- TAO_ETCL_Constraint *nested = union_pos->component ();
-
- // If there's no nested component, then we just want the
- // union member value on the queue. Otherwise, we want
- // the member value in current_value_ while we visit
- // the nested component.
- if (nested == 0)
- {
- TAO_ETCL_Literal_Constraint lit (this->current_value_.ptr ());
- this->queue_.enqueue_head (lit);
- return 0;
- }
else
- return nested->accept (this);
+ return -1;
}
- else
- return -1;
- }
ACE_CATCHANY
- {
- return -1;
- }
+ {
+ return -1;
+ }
ACE_ENDTRY;
+
+ ACE_NOTREACHED (return 0);
}
int
TAO_Notify_Constraint_Visitor::visit_component_pos (
- TAO_ETCL_Component_Pos *pos
+ TAO_ETCL_Component_Pos *pos
)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- // If we are here (from visit_component) the Any containing the
- // component as found in filterable_data_ will be in current_value_.
- CORBA::TypeCode_var tc = this->current_value_->type ();
- CORBA::TCKind kind = TAO_DynAnyFactory::unalias (tc.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- DynamicAny::DynAny_var member;
- CORBA::Boolean success = 0;
- CORBA::ULong slot = (CORBA::ULong) *pos->integer ();
-
- switch (kind)
{
- case CORBA::tk_enum:
+ // If we are here (from visit_component) the Any containing the
+ // component as found in filterable_data_ will be in current_value_.
+ CORBA::TypeCode_var tc = this->current_value_->type ();
+ CORBA::TCKind kind = TAO_DynAnyFactory::unalias (tc.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ DynamicAny::DynAny_var member;
+ CORBA::Boolean success = 0;
+ CORBA::ULong slot = (CORBA::ULong) *pos->integer ();
+
+ switch (kind)
{
- TAO_DynEnum_i dyn_enum;
- dyn_enum.init (this->current_value_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ case CORBA::tk_enum:
+ {
+ TAO_DynEnum_i dyn_enum;
+ dyn_enum.init (this->current_value_.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- success = dyn_enum.seek (slot
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ success = dyn_enum.seek (slot
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (success == 0)
- return -1;
+ if (success == 0)
+ return -1;
- member =
- dyn_enum.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ member =
+ dyn_enum.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- break;
- }
- case CORBA::tk_struct:
- {
- TAO_DynStruct_i dyn_struct;
- dyn_struct.init (this->current_value_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ break;
+ }
+ case CORBA::tk_struct:
+ {
+ TAO_DynStruct_i dyn_struct;
+ dyn_struct.init (this->current_value_.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- success = dyn_struct.seek (slot
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ success = dyn_struct.seek (slot
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (success == 0)
- return -1;
+ if (success == 0)
+ return -1;
- member = dyn_struct.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ member = dyn_struct.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- break;
+ break;
+ }
+ // @@@ (JP) I think enums and structs are the only two cases
+ // handled by Component_Pos, since arrays and sequences are
+ // handled by Component_Array, and unions are handled by
+ // Union_Pos.
+ default:
+ return -1;
}
- // @@@ (JP) I think enums and structs are the only two cases
- // handled by Component_Pos, since arrays and sequences are
- // handled by Component_Array, and unions are handled by
- // Union_Pos.
- default:
- return -1;
- }
- CORBA::Any_var value = member->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::Any_var value = member->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- TAO_ETCL_Constraint *comp = pos->component ();
+ TAO_ETCL_Constraint *comp = pos->component ();
- if (comp == 0)
- {
- TAO_ETCL_Literal_Constraint result (value.ptr ());
- this->queue_.enqueue_head (result);
- return 0;
+ if (comp == 0)
+ {
+ TAO_ETCL_Literal_Constraint result (value.ptr ());
+ this->queue_.enqueue_head (result);
+ return 0;
+ }
+ else
+ {
+ this->current_value_ = value._retn ();
+ return comp->accept (this);
+ }
}
- else
+ ACE_CATCHANY
{
- this->current_value_ = value._retn ();
- return comp->accept (this);
+ return -1;
}
- }
- ACE_CATCHANY
- {
- return -1;
- }
ACE_ENDTRY;
+
+ ACE_NOTREACHED (return 0);
}
int
TAO_Notify_Constraint_Visitor::visit_component_assoc (
- TAO_ETCL_Component_Assoc *assoc
+ TAO_ETCL_Component_Assoc *assoc
)
{
- CORBA::Any any;
+ CORBA::Any *any = 0;
ACE_CString name (assoc->identifier ()->value (),
- 0,
- 0);
+ 0,
+ 0);
switch (this->implicit_id_)
{
- case FILTERABLE_DATA:
- if (this->filterable_data_.find (name, any) != 0
- || any.impl() == 0)
- return -1;
- break;
- case VARIABLE_HEADER:
- if (this->variable_header_.find (name, any) != 0
- || any.impl() == 0)
- return -1;
- break;
+ case FILTERABLE_DATA:
+ if (this->filterable_data_.find (name, any) != 0
+ || any == 0)
+ return -1;
+ break;
+ case VARIABLE_HEADER:
+ if (this->variable_header_.find (name, any) != 0
+ || any == 0)
+ return -1;
+ break;
// Only the sequence members of CosNotification::StructuredEvent
// can be treated as associative arrays.
- default:
- return -1;
+ default:
+ return -1;
}
TAO_ETCL_Constraint *comp = assoc->component ();
CORBA::Any *any_ptr = 0;
if (comp == 0)
- {
- TAO_ETCL_Literal_Constraint result (&any);
- this->queue_.enqueue_head (result);
-
- // If we're at the end of the line, put the name into
- // current_value_ so visit_exist can use it.
- ACE_NEW_RETURN (any_ptr,
- CORBA::Any,
- -1);
- (*any_ptr) <<= name.c_str ();
- this->current_value_ = any_ptr;
-
- return 0;
- }
+ {
+ TAO_ETCL_Literal_Constraint result (any);
+ this->queue_.enqueue_head (result);
+
+ // If we're at the end of the line, put the name into
+ // current_value_ so visit_exist can use it.
+ ACE_NEW_RETURN (any_ptr,
+ CORBA::Any,
+ -1);
+ (*any_ptr) <<= name.c_str ();
+ this->current_value_ = any_ptr;
+
+ return 0;
+ }
else
- {
- ACE_NEW_RETURN (any_ptr,
- CORBA::Any (any),
- -1);
- this->current_value_ = any_ptr;
- return comp->accept (this);
- }
+ {
+ ACE_NEW_RETURN (any_ptr,
+ CORBA::Any (*any),
+ -1);
+ this->current_value_ = any_ptr;
+ return comp->accept (this);
+ }
}
int
@@ -495,88 +494,90 @@ TAO_Notify_Constraint_Visitor::visit_component_array (TAO_ETCL_Component_Array *
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- // If we are here (from visit_component) the Any containing the
- // component as found in filterable_data_ will be in
- // current_value_.
- CORBA::TypeCode_var tc = this->current_value_->type ();
- CORBA::TCKind kind = TAO_DynAnyFactory::unalias (tc.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- DynamicAny::DynAny_var member;
- CORBA::Boolean success = 0;
- CORBA::ULong slot = (CORBA::ULong) *array->integer ();
-
- switch (kind)
{
- case CORBA::tk_array:
+ // If we are here (from visit_component) the Any containing the
+ // component as found in filterable_data_ will be in
+ // current_value_.
+ CORBA::TypeCode_var tc = this->current_value_->type ();
+ CORBA::TCKind kind = TAO_DynAnyFactory::unalias (tc.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ DynamicAny::DynAny_var member;
+ CORBA::Boolean success = 0;
+ CORBA::ULong slot = (CORBA::ULong) *array->integer ();
+
+ switch (kind)
{
- TAO_DynEnum_i dyn_array;
- dyn_array.init (this->current_value_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ case CORBA::tk_array:
+ {
+ TAO_DynEnum_i dyn_array;
+ dyn_array.init (this->current_value_.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- success = dyn_array.seek (slot
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ success = dyn_array.seek (slot
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (success == 0)
- return -1;
+ if (success == 0)
+ return -1;
- member = dyn_array.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ member = dyn_array.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- break;
- }
- case CORBA::tk_sequence:
- {
- TAO_DynStruct_i dyn_sequence;
- dyn_sequence.init (this->current_value_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ break;
+ }
+ case CORBA::tk_sequence:
+ {
+ TAO_DynStruct_i dyn_sequence;
+ dyn_sequence.init (this->current_value_.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- success = dyn_sequence.seek (slot
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ success = dyn_sequence.seek (slot
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- if (success == 0)
- return -1;
+ if (success == 0)
+ return -1;
- member =
- dyn_sequence.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ member =
+ dyn_sequence.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- break;
+ break;
+ }
+ // Enums and sequences are the only two cases handled
+ // by Component_Array.
+ default:
+ return -1;
}
- // Enums and sequences are the only two cases handled
- // by Component_Array.
- default:
- return -1;
- }
- CORBA::Any_var value = member->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::Any_var value = member->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- TAO_ETCL_Constraint *comp = array->component ();
+ TAO_ETCL_Constraint *comp = array->component ();
- if (comp == 0)
- {
- TAO_ETCL_Literal_Constraint result (value.ptr ());
- this->queue_.enqueue_head (result);
- return 0;
+ if (comp == 0)
+ {
+ TAO_ETCL_Literal_Constraint result (value.ptr ());
+ this->queue_.enqueue_head (result);
+ return 0;
+ }
+ else
+ {
+ this->current_value_ = value._retn ();
+ return comp->accept (this);
+ }
}
- else
+ ACE_CATCHANY
{
- this->current_value_ = value._retn ();
- return comp->accept (this);
+ return -1;
}
- }
- ACE_CATCHANY
- {
- return -1;
- }
ACE_ENDTRY;
+
+ ACE_NOTREACHED (return 0);
}
int
@@ -584,109 +585,111 @@ TAO_Notify_Constraint_Visitor::visit_special (TAO_ETCL_Special *special)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- CORBA::TypeCode_var tc = this->current_value_->type ();
- tc = TAO_DynAnyFactory::strip_alias (tc.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ CORBA::TypeCode_var tc = this->current_value_->type ();
+ tc = TAO_DynAnyFactory::strip_alias (tc.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
CORBA::TCKind kind = tc->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- switch (special->type ())
- {
- case TAO_ETCL_LENGTH:
- {
- CORBA::ULong length;
+ switch (special->type ())
+ {
+ case TAO_ETCL_LENGTH:
+ {
+ CORBA::ULong length;
switch (kind)
- {
- case CORBA::tk_sequence:
+ {
+ case CORBA::tk_sequence:
+ {
+ TAO_DynSequence_i dyn_seq;
+ dyn_seq.init (current_value_.in()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ DynamicAny::AnySeq_var any_seq =
+ dyn_seq.get_elements (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ length = any_seq->length ();
+ }
+ break;
+ case CORBA::tk_array:
+ {
+ length = tc->length (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ break;
+ default:
+ return -1;
+ }
+
+ TAO_ETCL_Literal_Constraint lit (length);
+ this->queue_.enqueue_head (lit);
+ return 0;
+ }
+ case TAO_ETCL_DISCRIMINANT:
{
- TAO_DynSequence_i dyn_seq;
- dyn_seq.init (current_value_.in()
- ACE_ENV_ARG_PARAMETER);
+ // If the TCKind is not a union, the call to init() will
+ // raise an exception, and the catch block will return -1;
+ TAO_DynUnion_i dyn_union;
+ dyn_union.init (this->current_value_.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ DynamicAny::DynAny_var disc =
+ dyn_union.get_discriminator (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- DynamicAny::AnySeq_var any_seq =
- dyn_seq.get_elements (ACE_ENV_SINGLE_ARG_PARAMETER);
+ CORBA::Any_var disc_any = disc->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- length = any_seq->length ();
+ TAO_ETCL_Literal_Constraint lit (disc_any.ptr ());
+ this->queue_.enqueue_head (lit);
+ return 0;
}
- break;
- case CORBA::tk_array:
+ case TAO_ETCL_TYPE_ID:
{
- length = tc->length (ACE_ENV_SINGLE_ARG_PARAMETER);
+ const char *name = tc->name (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
+
+ TAO_ETCL_Literal_Constraint lit (name);
+ this->queue_.enqueue_head (lit);
+ return 0;
+ }
+ case TAO_ETCL_REPOS_ID:
+ {
+ const char *id = tc->id (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ TAO_ETCL_Literal_Constraint lit (id);
+ this->queue_.enqueue_head (lit);
+ return 0;
}
- break;
default:
return -1;
}
-
- TAO_ETCL_Literal_Constraint lit (length);
- this->queue_.enqueue_head (lit);
- return 0;
- }
- case TAO_ETCL_DISCRIMINANT:
- {
- // If the TCKind is not a union, the call to init() will
- // raise an exception, and the catch block will return -1;
- TAO_DynUnion_i dyn_union;
- dyn_union.init (this->current_value_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- DynamicAny::DynAny_var disc =
- dyn_union.get_discriminator (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Any_var disc_any = disc->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_ETCL_Literal_Constraint lit (disc_any.ptr ());
- this->queue_.enqueue_head (lit);
- return 0;
- }
- case TAO_ETCL_TYPE_ID:
- {
- const char *name = tc->name (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_ETCL_Literal_Constraint lit (name);
- this->queue_.enqueue_head (lit);
- return 0;
- }
- case TAO_ETCL_REPOS_ID:
- {
- const char *id = tc->id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_ETCL_Literal_Constraint lit (id);
- this->queue_.enqueue_head (lit);
- return 0;
- }
- default:
- return -1;
}
- }
ACE_CATCHANY
- {
- return -1;
- }
+ {
+ return -1;
+ }
ACE_ENDTRY;
+
+ ACE_NOTREACHED (return 0);
}
int
TAO_Notify_Constraint_Visitor::visit_component (
- TAO_ETCL_Component *component
+ TAO_ETCL_Component *component
)
{
TAO_ETCL_Constraint *nested = component->component ();
TAO_ETCL_Identifier *identifier = component->identifier ();
ACE_CString component_name (identifier->value (),
- 0,
- 0);
+ 0,
+ 0);
CORBA::Any *any_ptr = 0;
if (this->implicit_ids_.find (component_name, this->implicit_id_) != 0)
@@ -701,71 +704,71 @@ TAO_Notify_Constraint_Visitor::visit_component (
// names in CosNotification::StructuredEvent, we just visit the
// nested component, if any.
if (this->implicit_id_ == TAO_Notify_Constraint_Visitor::EMPTY)
- {
- if (nested == 0)
{
- // If this is the end of the line, we put the component name
- // into current_value_ so visit_exist can use it.
- ACE_NEW_RETURN (any_ptr,
- CORBA::Any,
- -1);
- (*any_ptr) <<= component_name.c_str ();
- this->current_value_ = any_ptr;
- return identifier->accept (this);
- }
- else
- {
- int result = identifier->accept (this);
+ if (nested == 0)
+ {
+ // If this is the end of the line, we put the component name
+ // into current_value_ so visit_exist can use it.
+ ACE_NEW_RETURN (any_ptr,
+ CORBA::Any,
+ -1);
+ (*any_ptr) <<= component_name.c_str ();
+ this->current_value_ = any_ptr;
+ return identifier->accept (this);
+ }
+ else
+ {
+ int result = identifier->accept (this);
- if (result != 0)
- return result;
+ if (result != 0)
+ return result;
- TAO_ETCL_Literal_Constraint id;
- this->queue_.dequeue_head (id);
- ACE_NEW_RETURN (any_ptr,
- CORBA::Any (*(const CORBA::Any *) id),
- -1);
- this->current_value_ = any_ptr;
+ TAO_ETCL_Literal_Constraint id;
+ this->queue_.dequeue_head (id);
+ ACE_NEW_RETURN (any_ptr,
+ CORBA::Any (*(const CORBA::Any *) id),
+ -1);
+ this->current_value_ = any_ptr;
+ }
}
- }
if (nested != 0)
return nested->accept (this);
else
- {
- switch (this->implicit_id_)
{
- case TYPE_NAME:
- {
- TAO_ETCL_Literal_Constraint tn (this->type_name_.in ());
- this->queue_.enqueue_head (tn);
- return 0;
- }
- case EVENT_NAME:
- {
- TAO_ETCL_Literal_Constraint en (this->event_name_.in ());
- this->queue_.enqueue_head (en);
- return 0;
- }
- case DOMAIN_NAME:
- {
- TAO_ETCL_Literal_Constraint dn (this->domain_name_.in ());
- this->queue_.enqueue_head (dn);
- return 0;
- }
- case REMAINDER_OF_BODY:
- {
- TAO_ETCL_Literal_Constraint rob (&this->remainder_of_body_);
- this->queue_.enqueue_head (rob);
- return 0;
- }
- // The above cases are the leaves of the
- // CosNotification::StructuredEvent "tree". Anything else and we
- // should have a nested component. otherwise, it's an error.
- default:
- return -1;
+ switch (this->implicit_id_)
+ {
+ case TYPE_NAME:
+ {
+ TAO_ETCL_Literal_Constraint tn (this->type_name_.in ());
+ this->queue_.enqueue_head (tn);
+ return 0;
+ }
+ case EVENT_NAME:
+ {
+ TAO_ETCL_Literal_Constraint en (this->event_name_.in ());
+ this->queue_.enqueue_head (en);
+ return 0;
+ }
+ case DOMAIN_NAME:
+ {
+ TAO_ETCL_Literal_Constraint dn (this->domain_name_.in ());
+ this->queue_.enqueue_head (dn);
+ return 0;
+ }
+ case REMAINDER_OF_BODY:
+ {
+ TAO_ETCL_Literal_Constraint rob (&this->remainder_of_body_);
+ this->queue_.enqueue_head (rob);
+ return 0;
+ }
+ // The above cases are the leaves of the
+ // CosNotification::StructuredEvent "tree". Anything else and we
+ // should have a nested component. otherwise, it's an error.
+ default:
+ return -1;
+ }
}
- }
}
int
@@ -797,34 +800,36 @@ TAO_Notify_Constraint_Visitor::visit_default (TAO_ETCL_Default *def)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- CORBA::TypeCode_var tc = this->current_value_->type ();
+ {
+ CORBA::TypeCode_var tc = this->current_value_->type ();
- // If the current member is not a union, this call will throw
- // BadKind and the catch block will return -1.
- CORBA::Long default_index = tc->default_index (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // If the current member is not a union, this call will throw
+ // BadKind and the catch block will return -1.
+ CORBA::Long default_index = tc->default_index (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // No default index.
- if (default_index == -1)
- {
- TAO_ETCL_Literal_Constraint result ((CORBA::Boolean) 0);
- this->queue_.enqueue_head (result);
- return 0;
- }
+ // No default index.
+ if (default_index == -1)
+ {
+ TAO_ETCL_Literal_Constraint result ((CORBA::Boolean) 0);
+ this->queue_.enqueue_head (result);
+ return 0;
+ }
- // Okay, there's a default index, but is it active?
+ // Okay, there's a default index, but is it active?
- TAO_ETCL_Literal_Constraint disc;
- this->queue_.dequeue_head (disc);
- TAO_ETCL_Literal_Constraint default_index_value (default_index);
- return (disc == default_index_value);
- }
+ TAO_ETCL_Literal_Constraint disc;
+ this->queue_.dequeue_head (disc);
+ TAO_ETCL_Literal_Constraint default_index_value (default_index);
+ return (disc == default_index_value);
+ }
ACE_CATCHANY
- {
- return -1;
- }
+ {
+ return -1;
+ }
ACE_ENDTRY;
+
+ ACE_NOTREACHED (return 0);
}
int
@@ -833,131 +838,131 @@ TAO_Notify_Constraint_Visitor::visit_exist (TAO_ETCL_Exist *exist)
TAO_ETCL_Constraint *component = exist->component ();
if (component->accept (this) == 0)
- {
- const char *value = 0;
- CORBA::Boolean result = 0;
-
- // For the two cases below, we don't want the item at the top of
- // the queue, because it's the result of a hash table
- // lookup. For an existence test, we want the key value, which
- // is stored in the current_value_ member.
- if (this->implicit_id_ == FILTERABLE_DATA
- || this->implicit_id_ == VARIABLE_HEADER)
{
- TAO_ETCL_Literal_Constraint current (&this->current_value_.inout ());
- value = CORBA::string_dup ((const char *) current);
- }
+ const char *value = 0;
+ CORBA::Boolean result = 0;
+
+ // For the two cases below, we don't want the item at the top of
+ // the queue, because it's the result of a hash table
+ // lookup. For an existence test, we want the key value, which
+ // is stored in the current_value_ member.
+ if (this->implicit_id_ == FILTERABLE_DATA
+ || this->implicit_id_ == VARIABLE_HEADER)
+ {
+ TAO_ETCL_Literal_Constraint current (&this->current_value_.inout ());
+ value = CORBA::string_dup ((const char *) current);
+ }
- switch (this->implicit_id_)
- {
- case FILTERABLE_DATA:
- result =
- (this->filterable_data_.find (ACE_CString (value, 0, 0)) == 0);
- break;
- case VARIABLE_HEADER:
- result =
- (this->variable_header_.find (ACE_CString (value, 0, 0)) == 0);
- break;
- case TYPE_NAME:
- result = (this->type_name_.in () != 0);
- break;
- case EVENT_NAME:
- result = (this->event_name_.in () != 0);
- break;
- case DOMAIN_NAME:
- result = (this->domain_name_.in () != 0);
- break;
- // Anything other than the above cases is an error.
- default:
- return -1;
- }
+ switch (this->implicit_id_)
+ {
+ case FILTERABLE_DATA:
+ result =
+ (this->filterable_data_.find (ACE_CString (value, 0, 0)) == 0);
+ break;
+ case VARIABLE_HEADER:
+ result =
+ (this->variable_header_.find (ACE_CString (value, 0, 0)) == 0);
+ break;
+ case TYPE_NAME:
+ result = (this->type_name_.in () != 0);
+ break;
+ case EVENT_NAME:
+ result = (this->event_name_.in () != 0);
+ break;
+ case DOMAIN_NAME:
+ result = (this->domain_name_.in () != 0);
+ break;
+ // Anything other than the above cases is an error.
+ default:
+ return -1;
+ }
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- return 0;
- }
+ return 0;
+ }
return -1;
}
int
TAO_Notify_Constraint_Visitor::visit_unary_expr (
- TAO_ETCL_Unary_Expr *unary_expr
+ TAO_ETCL_Unary_Expr *unary_expr
)
{
TAO_ETCL_Constraint *subexpr = unary_expr->subexpr ();
if (subexpr->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint subexpr_result;
- CORBA::Boolean result = 0;
- int op_type = unary_expr->type ();
-
- switch (op_type)
{
- case TAO_ETCL_NOT:
- this->queue_.dequeue_head (subexpr_result);
- result = ! (CORBA::Boolean) subexpr_result;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- return 0;
- case TAO_ETCL_MINUS:
- // The leading '-' was parsed separately, so we have to pull
- // the literal constraint off the queue, apply the class' own
- // unary minus operator, and put it back.
- this->queue_.dequeue_head (subexpr_result);
- this->queue_.enqueue_head (-subexpr_result);
- return 0;
- case TAO_ETCL_PLUS:
- // Leave the literal constraint on the queue. The leading
- // '+' was just syntactic sugar - no action is necessary.
- return 0;
- default:
- // The parser should never construct a TAO_ETCL_Unary_Constraint
- // behind any operators except the above three.
- return -1;
+ TAO_ETCL_Literal_Constraint subexpr_result;
+ CORBA::Boolean result = 0;
+ int op_type = unary_expr->type ();
+
+ switch (op_type)
+ {
+ case TAO_ETCL_NOT:
+ this->queue_.dequeue_head (subexpr_result);
+ result = ! (CORBA::Boolean) subexpr_result;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ return 0;
+ case TAO_ETCL_MINUS:
+ // The leading '-' was parsed separately, so we have to pull
+ // the literal constraint off the queue, apply the class' own
+ // unary minus operator, and put it back.
+ this->queue_.dequeue_head (subexpr_result);
+ this->queue_.enqueue_head (-subexpr_result);
+ return 0;
+ case TAO_ETCL_PLUS:
+ // Leave the literal constraint on the queue. The leading
+ // '+' was just syntactic sugar - no action is necessary.
+ return 0;
+ default:
+ // The parser should never construct a TAO_ETCL_Unary_Constraint
+ // behind any operators except the above three.
+ return -1;
+ }
}
- }
return -1;
}
int
TAO_Notify_Constraint_Visitor::visit_binary_expr (
- TAO_ETCL_Binary_Expr *binary_expr
+ TAO_ETCL_Binary_Expr *binary_expr
)
{
int bin_op_type = binary_expr->type ();
switch (bin_op_type)
{
- case TAO_ETCL_OR:
- return this->visit_or (binary_expr);
- case TAO_ETCL_AND:
- return this->visit_and (binary_expr);
- case TAO_ETCL_LT:
- case TAO_ETCL_LE:
- case TAO_ETCL_GT:
- case TAO_ETCL_GE:
- case TAO_ETCL_EQ:
- case TAO_ETCL_NE:
- case TAO_ETCL_PLUS:
- case TAO_ETCL_MINUS:
- case TAO_ETCL_MULT:
- case TAO_ETCL_DIV:
- return this->visit_binary_op (binary_expr,
- bin_op_type);
- case TAO_ETCL_TWIDDLE:
- return this->visit_twiddle (binary_expr);
- case TAO_ETCL_IN:
- return this->visit_in (binary_expr);
- default:
- return -1;
+ case TAO_ETCL_OR:
+ return this->visit_or (binary_expr);
+ case TAO_ETCL_AND:
+ return this->visit_and (binary_expr);
+ case TAO_ETCL_LT:
+ case TAO_ETCL_LE:
+ case TAO_ETCL_GT:
+ case TAO_ETCL_GE:
+ case TAO_ETCL_EQ:
+ case TAO_ETCL_NE:
+ case TAO_ETCL_PLUS:
+ case TAO_ETCL_MINUS:
+ case TAO_ETCL_MULT:
+ case TAO_ETCL_DIV:
+ return this->visit_binary_op (binary_expr,
+ bin_op_type);
+ case TAO_ETCL_TWIDDLE:
+ return this->visit_twiddle (binary_expr);
+ case TAO_ETCL_IN:
+ return this->visit_in (binary_expr);
+ default:
+ return -1;
}
}
int
TAO_Notify_Constraint_Visitor::visit_or (
- TAO_ETCL_Binary_Expr *binary
+ TAO_ETCL_Binary_Expr *binary
)
{
int return_value = -1;
@@ -965,27 +970,27 @@ TAO_Notify_Constraint_Visitor::visit_or (
TAO_ETCL_Constraint *lhs = binary->lhs ();
if (lhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint lhs_result;
- this->queue_.dequeue_head (lhs_result);
- result = (CORBA::Boolean) lhs_result;
-
- // Short-circuiting OR.
- if (result == 0)
{
- TAO_ETCL_Constraint *rhs = binary->rhs ();
+ TAO_ETCL_Literal_Constraint lhs_result;
+ this->queue_.dequeue_head (lhs_result);
+ result = (CORBA::Boolean) lhs_result;
- if (rhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint rhs_result;
- this->queue_.dequeue_head (rhs_result);
- result = (CORBA::Boolean) rhs_result;
+ // Short-circuiting OR.
+ if (result == 0)
+ {
+ TAO_ETCL_Constraint *rhs = binary->rhs ();
+
+ if (rhs->accept (this) == 0)
+ {
+ TAO_ETCL_Literal_Constraint rhs_result;
+ this->queue_.dequeue_head (rhs_result);
+ result = (CORBA::Boolean) rhs_result;
+ return_value = 0;
+ }
+ }
+ else
return_value = 0;
- }
}
- else
- return_value = 0;
- }
if (return_value == 0)
this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
@@ -1001,27 +1006,27 @@ TAO_Notify_Constraint_Visitor::visit_and (TAO_ETCL_Binary_Expr *binary)
TAO_ETCL_Constraint *lhs = binary->lhs ();
if (lhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint lhs_result;
- this->queue_.dequeue_head (lhs_result);
- result = (CORBA::Boolean) lhs_result;
-
- // Short-circuiting AND.
- if (result == 1)
{
- TAO_ETCL_Constraint *rhs = binary->rhs ();
+ TAO_ETCL_Literal_Constraint lhs_result;
+ this->queue_.dequeue_head (lhs_result);
+ result = (CORBA::Boolean) lhs_result;
- if (rhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint rhs_result;
- this->queue_.dequeue_head (rhs_result);
- result = (CORBA::Boolean) rhs_result;
+ // Short-circuiting AND.
+ if (result == 1)
+ {
+ TAO_ETCL_Constraint *rhs = binary->rhs ();
+
+ if (rhs->accept (this) == 0)
+ {
+ TAO_ETCL_Literal_Constraint rhs_result;
+ this->queue_.dequeue_head (rhs_result);
+ result = (CORBA::Boolean) rhs_result;
+ return_value = 0;
+ }
+ }
+ else
return_value = 0;
- }
}
- else
- return_value = 0;
- }
if (return_value == 0)
this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
@@ -1040,60 +1045,60 @@ TAO_Notify_Constraint_Visitor::visit_binary_op (TAO_ETCL_Binary_Expr *binary,
// Perform an operation on the results of evaluating the left and
// right branches of this subtree.
if (lhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint left_operand;
- this->queue_.dequeue_head (left_operand);
- TAO_ETCL_Constraint *rhs = binary->rhs ();
-
- if (rhs->accept (this) == 0)
{
- TAO_ETCL_Literal_Constraint right_operand;
- this->queue_.dequeue_head (right_operand);
- return_value = 0;
+ TAO_ETCL_Literal_Constraint left_operand;
+ this->queue_.dequeue_head (left_operand);
+ TAO_ETCL_Constraint *rhs = binary->rhs ();
- switch (op_type)
- {
- case TAO_ETCL_LT:
- result = left_operand < right_operand;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- break;
- case TAO_ETCL_LE:
- result = left_operand <= right_operand;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- break;
- case TAO_ETCL_GT:
- result = left_operand > right_operand;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- break;
- case TAO_ETCL_GE:
- result = left_operand >= right_operand;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- break;
- case TAO_ETCL_EQ:
- result = left_operand == right_operand;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- break;
- case TAO_ETCL_NE:
- result = left_operand != right_operand;
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- break;
- case TAO_ETCL_PLUS:
- this->queue_.enqueue_head (left_operand + right_operand);
- break;
- case TAO_ETCL_MINUS:
- this->queue_.enqueue_head (left_operand - right_operand);
- break;
- case TAO_ETCL_MULT:
- this->queue_.enqueue_head (left_operand * right_operand);
- break;
- case TAO_ETCL_DIV:
- this->queue_.enqueue_head (left_operand / right_operand);
- break;
- default:
- return_value = -1;
- }
+ if (rhs->accept (this) == 0)
+ {
+ TAO_ETCL_Literal_Constraint right_operand;
+ this->queue_.dequeue_head (right_operand);
+ return_value = 0;
+
+ switch (op_type)
+ {
+ case TAO_ETCL_LT:
+ result = left_operand < right_operand;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ break;
+ case TAO_ETCL_LE:
+ result = left_operand <= right_operand;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ break;
+ case TAO_ETCL_GT:
+ result = left_operand > right_operand;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ break;
+ case TAO_ETCL_GE:
+ result = left_operand >= right_operand;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ break;
+ case TAO_ETCL_EQ:
+ result = left_operand == right_operand;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ break;
+ case TAO_ETCL_NE:
+ result = left_operand != right_operand;
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ break;
+ case TAO_ETCL_PLUS:
+ this->queue_.enqueue_head (left_operand + right_operand);
+ break;
+ case TAO_ETCL_MINUS:
+ this->queue_.enqueue_head (left_operand - right_operand);
+ break;
+ case TAO_ETCL_MULT:
+ this->queue_.enqueue_head (left_operand * right_operand);
+ break;
+ case TAO_ETCL_DIV:
+ this->queue_.enqueue_head (left_operand / right_operand);
+ break;
+ default:
+ return_value = -1;
+ }
+ }
}
- }
return return_value;
}
@@ -1106,22 +1111,22 @@ TAO_Notify_Constraint_Visitor::visit_twiddle (TAO_ETCL_Binary_Expr *binary)
// Determine if the left operand is a substring of the right.
if (lhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint left;
- this->queue_.dequeue_head (left);
- TAO_ETCL_Constraint *rhs = binary->rhs ();
-
- if (rhs->accept (this) == 0)
{
- TAO_ETCL_Literal_Constraint right;
- this->queue_.dequeue_head (right);
- CORBA::Boolean result =
- (ACE_OS::strstr ((const char *) right,
- (const char *) left) != 0);
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- return_value = 0;
+ TAO_ETCL_Literal_Constraint left;
+ this->queue_.dequeue_head (left);
+ TAO_ETCL_Constraint *rhs = binary->rhs ();
+
+ if (rhs->accept (this) == 0)
+ {
+ TAO_ETCL_Literal_Constraint right;
+ this->queue_.dequeue_head (right);
+ CORBA::Boolean result =
+ (ACE_OS::strstr ((const char *) right,
+ (const char *) left) != 0);
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ return_value = 0;
+ }
}
- }
return return_value;
}
@@ -1134,69 +1139,69 @@ TAO_Notify_Constraint_Visitor::visit_in (TAO_ETCL_Binary_Expr *binary)
// Determine if the left operand is contained in the right.
if (lhs->accept (this) == 0)
- {
- TAO_ETCL_Literal_Constraint left;
- this->queue_.dequeue_head (left);
-
- TAO_ETCL_Constraint *rhs = binary->rhs ();
-
- if (rhs->accept (this) == 0)
{
- TAO_ETCL_Literal_Constraint bag;
- this->queue_.dequeue_head (bag);
+ TAO_ETCL_Literal_Constraint left;
+ this->queue_.dequeue_head (left);
- if (bag.expr_type () == TAO_ETCL_COMPONENT)
- {
- const CORBA::Any *component = (const CORBA::Any *) bag;
- CORBA::TCKind kind = CORBA::tk_null;
+ TAO_ETCL_Constraint *rhs = binary->rhs ();
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- CORBA::TypeCode_var tc = component->type ();
- kind = TAO_DynAnyFactory::unalias (tc.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
+ if (rhs->accept (this) == 0)
{
- return return_value;
- }
- ACE_ENDTRY;
+ TAO_ETCL_Literal_Constraint bag;
+ this->queue_.dequeue_head (bag);
- CORBA::Boolean result = 0;
-
- switch (kind)
- {
- case CORBA::tk_sequence:
- result = this->sequence_does_contain (component,
- left);
- break;
- case CORBA::tk_array:
- result = this->array_does_contain (component,
- left);
- break;
- case CORBA::tk_struct:
- result = this->struct_does_contain (component,
- left);
- break;
- case CORBA::tk_union:
- result = this->union_does_contain (component,
- left);
- break;
- case CORBA::tk_any:
- result = this->any_does_contain (component,
- left);
- break;
- default:
- return return_value;
+ if (bag.expr_type () == TAO_ETCL_COMPONENT)
+ {
+ const CORBA::Any *component = (const CORBA::Any *) bag;
+ CORBA::TCKind kind = CORBA::tk_null;
+
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
+ {
+ CORBA::TypeCode_var tc = component->type ();
+ kind = TAO_DynAnyFactory::unalias (tc.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ return return_value;
+ }
+ ACE_ENDTRY;
+
+ CORBA::Boolean result = 0;
+
+ switch (kind)
+ {
+ case CORBA::tk_sequence:
+ result = this->sequence_does_contain (component,
+ left);
+ break;
+ case CORBA::tk_array:
+ result = this->array_does_contain (component,
+ left);
+ break;
+ case CORBA::tk_struct:
+ result = this->struct_does_contain (component,
+ left);
+ break;
+ case CORBA::tk_union:
+ result = this->union_does_contain (component,
+ left);
+ break;
+ case CORBA::tk_any:
+ result = this->any_does_contain (component,
+ left);
+ break;
+ default:
+ return return_value;
+ }
+
+ this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
+ return_value = 0;
+ }
}
-
- this->queue_.enqueue_head (TAO_ETCL_Literal_Constraint (result));
- return_value = 0;
- }
}
- }
return return_value;
}
@@ -1217,49 +1222,47 @@ TAO_Notify_Constraint_Visitor::sequence_does_contain (const CORBA::Any *any,
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- CORBA::TypeCode_var type = any->type ();
- CORBA::TypeCode_var base_type =
- TAO_DynAnyFactory::strip_alias (type.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- CORBA::TypeCode_var content_type =
- base_type->content_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- CORBA::TCKind kind =
- TAO_DynAnyFactory::unalias (content_type.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // The literal and the array elements must be
- // of the same simple type.
- CORBA::Boolean match = this->simple_type_match (item.expr_type (),
- kind);
-
- if (match == 0)
- return 0;
+ {
+ CORBA::TypeCode_var type = any->type ();
+ CORBA::TypeCode_var base_type =
+ TAO_DynAnyFactory::strip_alias (type.in () ACE_ENV_ARG_PARAMETER);
+ CORBA::TypeCode_var content_type =
+ base_type->content_type (ACE_ENV_SINGLE_ARG_PARAMETER);
+ CORBA::TCKind kind =
+ TAO_DynAnyFactory::unalias (content_type.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- TAO_DynSequence_i dyn_seq;
- dyn_seq.init (*any
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ // The literal and the array elements must be
+ // of the same simple type.
+ CORBA::Boolean match = this->simple_type_match (item.expr_type (),
+ kind);
- DynamicAny::AnySeq_var any_seq =
- dyn_seq.get_elements (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ if (match == 0)
+ return 0;
- CORBA::ULong length = any_seq->length ();
+ TAO_DynSequence_i dyn_seq;
+ dyn_seq.init (*any
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- TAO_ETCL_Literal_Constraint element (&any_seq[i]);
+ DynamicAny::AnySeq_var any_seq =
+ dyn_seq.get_elements (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CORBA::ULong length = any_seq->length ();
+
+ for (CORBA::ULong i = 0; i < length; ++i)
+ {
+ TAO_ETCL_Literal_Constraint element (&any_seq[i]);
- if (item == element)
- return 1;
+ if (item == element)
+ return 1;
+ }
}
- }
ACE_CATCHANY
- {
- return 0;
- }
+ {
+ return 0;
+ }
ACE_ENDTRY;
return 0;
@@ -1271,43 +1274,43 @@ TAO_Notify_Constraint_Visitor::array_does_contain (const CORBA::Any *any,
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- CORBA::TypeCode_var type = any->type ();
- CORBA::TCKind kind = TAO_DynAnyFactory::unalias (type.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ CORBA::TypeCode_var type = any->type ();
+ CORBA::TCKind kind = TAO_DynAnyFactory::unalias (type.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // The literal and the array elements must be
- // of the same simple type.
- CORBA::Boolean match = this->simple_type_match (item.expr_type (),
- kind);
+ // The literal and the array elements must be
+ // of the same simple type.
+ CORBA::Boolean match = this->simple_type_match (item.expr_type (),
+ kind);
- if (match == 0)
- return 0;
+ if (match == 0)
+ return 0;
- TAO_DynArray_i dyn_array;
- dyn_array.init (*any
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ TAO_DynArray_i dyn_array;
+ dyn_array.init (*any
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- DynamicAny::AnySeq_var any_seq =
- dyn_array.get_elements (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ DynamicAny::AnySeq_var any_seq =
+ dyn_array.get_elements (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- CORBA::ULong length = any_seq->length ();
+ CORBA::ULong length = any_seq->length ();
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- TAO_ETCL_Literal_Constraint element (&any_seq[i]);
+ for (CORBA::ULong i = 0; i < length; ++i)
+ {
+ TAO_ETCL_Literal_Constraint element (&any_seq[i]);
- if (item == element)
- return 1;
+ if (item == element)
+ return 1;
+ }
}
- }
ACE_CATCHANY
- {
- return 0;
- }
+ {
+ return 0;
+ }
ACE_ENDTRY;
return 0;
@@ -1319,45 +1322,45 @@ TAO_Notify_Constraint_Visitor::struct_does_contain (const CORBA::Any *any,
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- TAO_DynStruct_i dyn_struct;
- dyn_struct.init (*any
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ TAO_DynStruct_i dyn_struct;
+ dyn_struct.init (*any
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- DynamicAny::NameValuePairSeq_var members =
- dyn_struct.get_members (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ DynamicAny::NameValuePairSeq_var members =
+ dyn_struct.get_members (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- CORBA::ULong length = members->length ();
- CORBA::TypeCode_var tc;
- CORBA::TCKind kind;
+ CORBA::ULong length = members->length ();
+ CORBA::TypeCode_var tc;
+ CORBA::TCKind kind;
- for (CORBA::ULong i = 0; i < length; ++i)
- {
- tc = members[i].value.type ();
- kind = TAO_DynAnyFactory::unalias (tc.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ for (CORBA::ULong i = 0; i < length; ++i)
+ {
+ tc = members[i].value.type ();
+ kind = TAO_DynAnyFactory::unalias (tc.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // The literal and the struct member must be
- // of the same simple type.
- CORBA::Boolean match = this->simple_type_match (item.expr_type (),
- kind);
+ // The literal and the struct member must be
+ // of the same simple type.
+ CORBA::Boolean match = this->simple_type_match (item.expr_type (),
+ kind);
- if (match == 0)
- continue;
+ if (match == 0)
+ continue;
- TAO_ETCL_Literal_Constraint element (&members[i].value);
+ TAO_ETCL_Literal_Constraint element (&members[i].value);
- if (item == element)
- return 1;
+ if (item == element)
+ return 1;
+ }
}
- }
ACE_CATCHANY
- {
- return 0;
- }
+ {
+ return 0;
+ }
ACE_ENDTRY;
return 0;
@@ -1369,54 +1372,56 @@ TAO_Notify_Constraint_Visitor::union_does_contain (const CORBA::Any *any,
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
- {
- TAO_DynUnion_i dyn_union;
- dyn_union.init (*any
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ {
+ TAO_DynUnion_i dyn_union;
+ dyn_union.init (*any
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- DynamicAny::DynAny_var cc =
- dyn_union.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ DynamicAny::DynAny_var cc =
+ dyn_union.current_component (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- CORBA::Any_var member = cc->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::Any_var member = cc->to_any (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- CORBA::TypeCode_var tc = member->type ();
- CORBA::TCKind kind = TAO_DynAnyFactory::unalias (tc.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ CORBA::TypeCode_var tc = member->type ();
+ CORBA::TCKind kind = TAO_DynAnyFactory::unalias (tc.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // The literal and the union member must be
- // of the same simple type.
- CORBA::Boolean match = this->simple_type_match (item.expr_type (),
- kind);
+ // The literal and the union member must be
+ // of the same simple type.
+ CORBA::Boolean match = this->simple_type_match (item.expr_type (),
+ kind);
- if (match == 0)
- return 0;
+ if (match == 0)
+ return 0;
- TAO_ETCL_Literal_Constraint element (&member.inout ());
+ TAO_ETCL_Literal_Constraint element (&member.inout ());
- return (item == element);
- }
+ return (item == element);
+ }
ACE_CATCHANY
- {
- return 0;
- }
+ {
+ return 0;
+ }
ACE_ENDTRY;
+
+ ACE_NOTREACHED (return 0);
}
CORBA::Boolean
TAO_Notify_Constraint_Visitor::any_does_contain (
- const CORBA::Any *any,
- TAO_ETCL_Literal_Constraint &item
+ const CORBA::Any *any,
+ TAO_ETCL_Literal_Constraint &item
)
{
const CORBA::Any *result = 0;
*any >>= result;
- TAO_ETCL_Literal_Constraint element (const_cast<CORBA::Any *>(result));
+ TAO_ETCL_Literal_Constraint element (const_cast<CORBA::Any *> (result));
return item == element;
}
@@ -1426,40 +1431,34 @@ TAO_Notify_Constraint_Visitor::simple_type_match (int expr_type,
{
switch (expr_type)
{
- case TAO_ETCL_STRING:
- if (tc_kind != CORBA::tk_string)
- return 0;
- break;
- case TAO_ETCL_DOUBLE:
- if (tc_kind != CORBA::tk_double
- && tc_kind != CORBA::tk_float)
- return 0;
- break;
- case TAO_ETCL_INTEGER:
- case TAO_ETCL_SIGNED:
- if (tc_kind != CORBA::tk_short
- && tc_kind != CORBA::tk_long
- && tc_kind != CORBA::tk_longlong)
- return 0;
- break;
- case TAO_ETCL_UNSIGNED:
- if (tc_kind != CORBA::tk_ushort
- && tc_kind != CORBA::tk_ulong
- && tc_kind != CORBA::tk_ulonglong)
- return 0;
- break;
- case TAO_ETCL_BOOLEAN:
- if (tc_kind != CORBA::tk_boolean)
+ case TAO_ETCL_STRING:
+ if (tc_kind != CORBA::tk_string)
+ return 0;
+ break;
+ case TAO_ETCL_DOUBLE:
+ if (tc_kind != CORBA::tk_double
+ && tc_kind != CORBA::tk_float)
+ return 0;
+ break;
+ case TAO_ETCL_INTEGER:
+ case TAO_ETCL_SIGNED:
+ if (tc_kind != CORBA::tk_short
+ && tc_kind != CORBA::tk_long
+ && tc_kind != CORBA::tk_longlong)
+ return 0;
+ break;
+ case TAO_ETCL_UNSIGNED:
+ if (tc_kind != CORBA::tk_ushort
+ && tc_kind != CORBA::tk_ulong
+ && tc_kind != CORBA::tk_ulonglong)
+ return 0;
+ break;
+ case TAO_ETCL_BOOLEAN:
+ if (tc_kind != CORBA::tk_boolean)
+ return 0;
+ break;
+ default:
return 0;
- break;
- default:
- return 0;
}
return 1;
}
-
-const size_t TAO_Notify_Constraint_Visitor::implicit_ids_size_ = 27;
-const size_t TAO_Notify_Constraint_Visitor::filterable_data_size_ = 31;
-const size_t TAO_Notify_Constraint_Visitor::variable_header_size_ = 31;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h
index 2033737b4ec..fb4d48ee3ff 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Constraint_Visitors.h
@@ -1,11 +1,11 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Notify_Constraint_Visitors.h
*
* $Id$
*
+ *
* @author Pradeep Gore <pradeep@cs.wustl.edu>
* @author Jeff Parsons <parsons@cs.wustl.edu>
*/
@@ -18,7 +18,6 @@
#include /**/ "ace/pre.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/Unbounded_Queue.h"
-#include "ace/Null_Mutex.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,9 +27,7 @@
#include "orbsvcs/ETCL/ETCL_Constraint.h"
#include "orbsvcs/CosNotificationC.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "notify_serv_export.h"
class TAO_Notify_Property_Constraint;
@@ -113,32 +110,17 @@ protected:
/// Storage for the type of implicit id the component has (if any).
structured_event_field implicit_id_;
- /// Size of implicit_ids_ hash map.
- /// @note A fixed set of 9 keys are stored in this map. In the absence
- /// of a minimal perfect hash, ACE's default hash_pjw() and a hash size
- /// of 27 ensures each element is hashed to a unique bucket.
- /// TODO: define inline once VC6 support is deprecated.
- static const size_t implicit_ids_size_;
-
/// Lookup table for the implicit ids, to avoid string comparisons in
/// derived visitors.
- ACE_Hash_Map_Manager <ACE_CString, structured_event_field, ACE_Null_Mutex>
+ ACE_Hash_Map_Manager <ACE_CString, structured_event_field, TAO_SYNCH_MUTEX>
implicit_ids_;
- /// Size of filterable_data_ hash map.
- /// TODO: define inline once VC6 support is deprecated.
- static const size_t filterable_data_size_;
-
- /// Used to lookup names and values in the event's 'filterable_data' field.
- ACE_Hash_Map_Manager <ACE_CString, CORBA::Any, ACE_Null_Mutex>
+ /// Used to lookup names and values in the event's 'filterable_data' field.
+ ACE_Hash_Map_Manager <ACE_CString, CORBA::Any *, TAO_SYNCH_MUTEX>
filterable_data_;
- /// Size of variable_header_ hash map.
- /// TODO: define inline once VC6 support is deprecated.
- static const size_t variable_header_size_;
-
- /// Used to lookup names and values in the event's 'variable_header' field.
- ACE_Hash_Map_Manager <ACE_CString, CORBA::Any, ACE_Null_Mutex>
+ /// Used to lookup names and values in the event's 'variable_header' field.
+ ACE_Hash_Map_Manager <ACE_CString, CORBA::Any *, TAO_SYNCH_MUTEX>
variable_header_;
/// Storage for string names under the structured event's
@@ -162,7 +144,5 @@ protected:
CORBA::String_var current_name_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* NOTIFY_CONSTRAINT_VISITORS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp
index 5110d567625..fcc7dacc7df 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.cpp
@@ -1,17 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Notify_Default_CO_Factory.h"
+#include "Notify_Default_CO_Factory.h"
ACE_RCSID(Notify, Notify_Default_CO_Factory, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Notify_Default_CO_Factory::init_svc (void)
{
// NOP.
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.h
index 8976e345f10..c42ff3682a1 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_CO_Factory.h
@@ -15,16 +15,12 @@
#define NOTIFY_DEFAULT_CO_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Default_CO_Factory
*
@@ -41,8 +37,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* NOTIFY_DEFAULT_CO_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp
index 37a286dbb99..d1ac87b35e1 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.cpp
@@ -1,17 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Notify_Default_Collection_Factory.h"
+#include "Notify_Default_Collection_Factory.h"
ACE_RCSID(Notify, Notify_Default_Collection_Factory, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Notify_Default_Collection_Factory::init_svc (void)
{
// NOP.
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h
index c416d093de5..42bbdb9af3c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Notify_Default_Collection_Factory.h
@@ -15,16 +14,12 @@
#define NOTIFY_DEFAULT_COLLECTION_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Default_Collection_Factory
*
@@ -41,7 +36,5 @@ public:
static int init_svc (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* NOTIFY_DEFAULT_COLLECTION_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp
index 2c9cc3f9237..5cfb1d7e8cb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.cpp
@@ -1,17 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Notify_Default_EMO_Factory.h"
+#include "Notify_Default_EMO_Factory.h"
ACE_RCSID(Notify, Notify_Default_EMO_Factory, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Notify_Default_EMO_Factory::init_svc (void)
{
// NOP.
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.h
index 73023b439bf..7cb29c5264a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_EMO_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Notify_Default_EMO_Factory.h
@@ -15,16 +14,12 @@
#define NOTIFY_DEFAULT_EMO_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Default_EMO_Factory
*
@@ -39,7 +34,5 @@ public:
static int init_svc (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* NOTIFY_DEFAULT_EMO_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp
index 6d32c554047..046d1c507ff 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.cpp
@@ -1,17 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Notify_Default_POA_Factory.h"
+#include "Notify_Default_POA_Factory.h"
ACE_RCSID(Notify, Notify_Default_POA_Factory, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Notify_Default_POA_Factory::init_svc (void)
{
// NOP.
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.h
index 62674479d29..b80d61f9b53 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_POA_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Notify_Default_POA_Factory.h
@@ -15,16 +14,12 @@
#define TAO_NOTIFY_DEFAULT_POA_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Default_POA_Factory
*
@@ -38,7 +33,5 @@ public:
static int init_svc (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NOTIFY_DEFAULT_POA_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp
index 2bc881f15a7..fb3587a0e78 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Notify_EventChannelFactory_i.h"
+#include "Notify_EventChannelFactory_i.h"
-#include "orbsvcs/Notify/Service.h"
+#include "Service.h"
#include "ace/Dynamic_Service.h"
#include "tao/PortableServer/Root_POA.h"
#include "tao/ORB_Core.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CosNotifyChannelAdmin::EventChannelFactory_ptr
TAO_Notify_EventChannelFactory_i::create (PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL)
{
@@ -22,7 +20,7 @@ TAO_Notify_EventChannelFactory_i::create (PortableServer::POA_ptr default_POA AC
return notify_factory._retn ();
}
- TAO_Root_POA *poa = dynamic_cast <TAO_Root_POA*> (default_POA);
+ TAO_Root_POA *poa = dynamic_cast <TAO_Root_POA*>(default_POA);
if (poa == 0)
return notify_factory._retn ();
@@ -37,5 +35,3 @@ TAO_Notify_EventChannelFactory_i::create (PortableServer::POA_ptr default_POA AC
return notify_factory._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h
index 60ccb0b068d..91278b601ca 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Notify_EventChannelFactory_i.h
@@ -16,14 +14,12 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/CosNotifyChannelAdminS.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_EventChannelFactory_i
*
@@ -38,7 +34,5 @@ public:
static CosNotifyChannelAdmin::EventChannelFactory_ptr create (PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* NOTIFY_EVENTCHANNELFACTORY_I_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.cpp
index a73b9be6a6c..64dc85743da 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.cpp
@@ -1,12 +1,8 @@
// $Id$
-#include "orbsvcs/Notify/Notify_Extensions.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Notify_Extensions.h"
namespace TAO_Notify_Extensions
{
- const char BlockingPolicy[] = "BlockingPolicy";
+ const char *const BlockingPolicy = "BlockingPolicy";
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.h
index 247e7655d40..f79ffa1a0fe 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_Extensions.h
@@ -6,7 +6,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_export.h"
+#include "notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -19,15 +19,11 @@
#endif /* TAO_EXPORT_MACRO */
#define TAO_EXPORT_MACRO TAO_Notify_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify_Extensions
{
- TAO_NAMESPACE_STORAGE_CLASS const char BlockingPolicy[];
+ TAO_NAMESPACE_STORAGE_CLASS const char *const BlockingPolicy;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NOTIFY_EXTENSIONS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Object.cpp b/TAO/orbsvcs/orbsvcs/Notify/Object.cpp
index a00a6c374b8..ceb2606ccfa 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Object.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Object.cpp
@@ -1,32 +1,31 @@
// $Id$
-#include "orbsvcs/Notify/Object.h"
-#include "orbsvcs/Notify/POA_Helper.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Builder.h"
-#include "orbsvcs/Notify/ThreadPool_Task.h"
-#include "orbsvcs/Notify/Reactive_Task.h"
+#include "Object.h"
+#include "POA_Helper.h"
+#include "Worker_Task.h"
+#include "Properties.h"
+#include "Builder.h"
+#include "ThreadPool_Task.h"
+#include "Reactive_Task.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/Event_Manager.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Object.inl"
+#include "Object.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Object, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
TAO_Notify_Object::TAO_Notify_Object (void)
-: poa_ (0)
-, proxy_poa_ (0)
-, own_proxy_poa_ (false)
-, object_poa_ (0)
-, own_object_poa_ (false)
-, id_ (0)
-, own_worker_task_ (false)
-, shutdown_ (false)
+ : poa_ (0)
+ , proxy_poa_ (0)
+ , own_proxy_poa_ (false)
+ , object_poa_ (0)
+ , own_object_poa_ (false)
+ , id_ (0)
+ , own_worker_task_ (false)
+ , shutdown_ (false)
{
if (TAO_debug_level > 2 )
ACE_DEBUG ((LM_DEBUG,"object:%x created\n", this ));
@@ -89,19 +88,19 @@ void
TAO_Notify_Object::deactivate (ACE_ENV_SINGLE_ARG_DECL)
{
ACE_TRY
- {
- this->poa_->deactivate (this->id_ ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // Do not propagate any exceptions
- if (TAO_debug_level > 2)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "(%P|%t)\n");
- ACE_DEBUG ((LM_DEBUG, "Could not deactivate object %d\n", this->id_));
+ this->poa_->deactivate (this->id_ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
+ ACE_CATCHANY
+ {
+ // Do not propagate any exceptions
+ if (TAO_debug_level > 2)
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "(%P|%t)\n");
+ ACE_DEBUG ((LM_DEBUG, "Could not deactivate object %d\n", this->id_));
}
+ }
ACE_ENDTRY;
}
@@ -118,7 +117,6 @@ TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_DECL)
}
this->deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (1);
this->shutdown_worker_task ();
@@ -138,70 +136,70 @@ TAO_Notify_Object::shutdown_worker_task (void)
TAO_Notify_Worker_Task::Ptr task( this->worker_task_ );
this->worker_task_.reset();
if ( task.isSet() )
- {
+ {
if ( this->own_worker_task_ )
{
task->shutdown ();
}
- }
+ }
}
void
TAO_Notify_Object::destroy_proxy_poa (void)
{
if (this->proxy_poa_ != 0)
- {
- ACE_TRY_NEW_ENV
- {
- if ( this->proxy_poa_ == this->object_poa_ ) this->object_poa_ = 0;
- if ( this->proxy_poa_ == this->poa_ ) this->poa_ = 0;
-
- if ( this->own_proxy_poa_ == true )
- {
- this->own_proxy_poa_ = false;
- ACE_Auto_Ptr< TAO_Notify_POA_Helper > app( object_poa_ );
- this->proxy_poa_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- this->proxy_poa_ = 0;
- }
- ACE_CATCHANY
{
- if (TAO_debug_level > 2)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Proxy shutdown error (%P|%t)\n");
+ ACE_TRY_NEW_ENV
+ {
+ if ( this->proxy_poa_ == this->object_poa_ ) this->object_poa_ = 0;
+ if ( this->proxy_poa_ == this->poa_ ) this->poa_ = 0;
+
+ if ( this->own_proxy_poa_ == true )
+ {
+ this->own_proxy_poa_ = false;
+ ACE_Auto_Ptr< TAO_Notify_POA_Helper > app( object_poa_ );
+ this->proxy_poa_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ this->proxy_poa_ = 0;
+ }
+ ACE_CATCHANY
+ {
+ if (TAO_debug_level > 2)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Proxy shutdown error (%P|%t)\n");
+ }
+ ACE_ENDTRY;
}
- ACE_ENDTRY;
- }
}
void
TAO_Notify_Object::destroy_object_poa (void)
{
if (this->object_poa_ != 0)
- {
- ACE_TRY_NEW_ENV
{
- if ( this->object_poa_ == this->proxy_poa_ ) this->proxy_poa_ = 0;
- if ( this->object_poa_ == this->poa_ ) this->poa_ = 0;
-
- if ( this->own_object_poa_ == true )
- {
- this->own_object_poa_ = false;
- ACE_Auto_Ptr< TAO_Notify_POA_Helper > aop( object_poa_ );
- this->object_poa_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- this->object_poa_ = 0;
- }
- ACE_CATCHANY
- {
- if (TAO_debug_level > 2)
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Proxy shutdown error (%P|%t)\n");
+ ACE_TRY_NEW_ENV
+ {
+ if ( this->object_poa_ == this->proxy_poa_ ) this->proxy_poa_ = 0;
+ if ( this->object_poa_ == this->poa_ ) this->poa_ = 0;
+
+ if ( this->own_object_poa_ == true )
+ {
+ this->own_object_poa_ = false;
+ ACE_Auto_Ptr< TAO_Notify_POA_Helper > aop( object_poa_ );
+ this->object_poa_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ this->object_poa_ = 0;
+ }
+ ACE_CATCHANY
+ {
+ if (TAO_debug_level > 2)
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Proxy shutdown error (%P|%t)\n");
+ }
+ ACE_ENDTRY;
}
- ACE_ENDTRY;
- }
}
/// Shutdown the current poa.
@@ -221,6 +219,7 @@ TAO_Notify_Object::set_worker_task (TAO_Notify_Worker_Task* worker_task)
this->worker_task_.reset (worker_task);
this->own_worker_task_ = true;
+
}
void
@@ -244,7 +243,6 @@ TAO_Notify_Object::set_object_poa (TAO_Notify_POA_Helper* object_poa)
this->own_object_poa_ = true;
}
-
void
TAO_Notify_Object::set_poa (TAO_Notify_POA_Helper* poa)
{
@@ -263,22 +261,16 @@ TAO_Notify_Object::set_qos (const CosNotification::QoSProperties & qos ACE_ENV_A
// Apply the appropriate concurrency QoS
if (new_qos_properties.thread_pool ().is_valid ())
- {
- if (new_qos_properties.thread_pool ().value ().static_threads == 0)
- {
+ {
+ if (new_qos_properties.thread_pool ().value ().static_threads == 0)
TAO_Notify_PROPERTIES::instance()->builder()->apply_reactive_concurrency (*this ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
+ else
TAO_Notify_PROPERTIES::instance()->builder()->
- apply_thread_pool_concurrency (*this, new_qos_properties.thread_pool ().value () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- }
+ apply_thread_pool_concurrency (*this, new_qos_properties.thread_pool ().value () ACE_ENV_ARG_PARAMETER);
+ }
else if (new_qos_properties.thread_pool_lane ().is_valid ())
TAO_Notify_PROPERTIES::instance()->builder()->
- apply_lane_concurrency (*this, new_qos_properties.thread_pool_lane ().value () ACE_ENV_ARG_PARAMETER);
+ apply_lane_concurrency (*this, new_qos_properties.thread_pool_lane ().value () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
// Update the Thread Task's QoS properties..
@@ -301,8 +293,8 @@ TAO_Notify_Object::get_qos (ACE_ENV_SINGLE_ARG_DECL)
CosNotification::QoSProperties_var properties;
ACE_NEW_THROW_EX (properties,
- CosNotification::QoSProperties (),
- CORBA::NO_MEMORY ());
+ CosNotification::QoSProperties (),
+ CORBA::NO_MEMORY ());
this->qos_properties_.populate (properties);
@@ -331,16 +323,14 @@ TAO_Notify_Object::timer (void)
return this->worker_task_->timer ();
}
-namespace
-{
+namespace {
template<class T>
- void add_qos_attr(TAO_Notify::NVPList& attrs, const T& prop)
- {
- if (prop.is_valid())
- {
- attrs.push_back(TAO_Notify::NVP (prop));
+ void add_qos_attr(TAO_Notify::NVPList& attrs, const T& prop) {
+ if (prop.is_valid())
+ {
+ attrs.push_back(TAO_Notify::NVP (prop));
+ }
}
- }
} // namespace
void
@@ -368,5 +358,3 @@ TAO_Notify_Object::load_attrs(const TAO_Notify::NVPList& attrs)
this->qos_properties_.init ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Object.h b/TAO/orbsvcs/orbsvcs/Notify/Object.h
index 7b9cb510b6c..4e10be4a79a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Object.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Object.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Object.h
*
@@ -15,25 +14,23 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/QoSProperties.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Refcountable.h"
-#include "orbsvcs/Notify/Name_Value_Pair.h"
-#include "orbsvcs/Notify/Event_Manager.h"
+#include "QoSProperties.h"
+#include "AdminProperties.h"
+#include "Worker_Task.h"
+#include "Refcountable.h"
+#include "Name_Value_Pair.h"
+#include "Event_Manager.h"
#include "orbsvcs/NotifyExtC.h"
#include "tao/PortableServer/Servant_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_POA_Helper;
class TAO_Notify_Timer;
class TAO_Notify_RT_Builder;
@@ -174,18 +171,14 @@ private:
/// Shutdown the current poa.
void destroy_poa (void);
-protected:
-
- /// The mutex to serialize access to state variables.
- TAO_SYNCH_MUTEX lock_;
-
-private:
+ ///= Private data members.
/// The POA in which the object is activated.
TAO_Notify_POA_Helper* poa_;
/// The POA in which the proxys are activated.
TAO_Notify_POA_Helper* proxy_poa_;
+
bool own_proxy_poa_;
/// The POA in which the object's children are activated.
@@ -210,10 +203,8 @@ private:
bool shutdown_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Object.inl"
+#include "Object.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Object.inl b/TAO/orbsvcs/orbsvcs/Notify/Object.inl
index fcc77e8b4d8..8ea54d6f1f1 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Object.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Object.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Long
TAO_Notify_Object::id (void) const
{
@@ -93,5 +89,3 @@ TAO_Notify_Object::admin_properties (void)
ACE_ASSERT( this->admin_properties_.get() != 0 );
return *this->admin_properties_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp
index 0137934dd22..6315d38f3e9 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/POA_Helper.h"
+#include "POA_Helper.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/POA_Helper.inl"
+#include "POA_Helper.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(RT_Notify, TAO_Notify_POA_Helper, "$Id$")
@@ -14,8 +14,6 @@ ACE_RCSID(RT_Notify, TAO_Notify_POA_Helper, "$Id$")
# define DEBUG_LEVEL TAO_debug_level
#endif // DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_POA_Helper::TAO_Notify_POA_Helper (void)
{
}
@@ -214,5 +212,3 @@ TAO_Notify_POA_Helper::destroy (ACE_ENV_SINGLE_ARG_DECL)
poa_->destroy (1,0 ACE_ENV_ARG_PARAMETER);
// The <wait_for_completion> flag = 0
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
index 57b4208324e..7025c7aa0bb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file POA_Helper.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_POA_Helper_H
@@ -13,20 +14,18 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/ID_Factory.h"
+#include "ID_Factory.h"
#include "tao/PortableServer/PortableServer.h"
#include "ace/Copy_Disabled.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_POA_Helper
*
@@ -40,9 +39,7 @@ public:
TAO_Notify_POA_Helper (void);
/// Create a new PortableServer::POA.
- void init (PortableServer::POA_ptr parent_poa,
- const char* poa_name
- ACE_ENV_ARG_DECL);
+ void init (PortableServer::POA_ptr parent_poa, const char* poa_name ACE_ENV_ARG_DECL);
/// Create a new PortableServer::POA. The name is chosen at random.
void init (PortableServer::POA_ptr parent_poa ACE_ENV_ARG_DECL);
@@ -57,44 +54,34 @@ public:
void destroy (ACE_ENV_SINGLE_ARG_DECL);
/// Activate Object, the POA will assign an ID and return its value.
- CORBA::Object_ptr activate (PortableServer::Servant servant,
- CORBA::Long& id
- ACE_ENV_ARG_DECL);
+ CORBA::Object_ptr activate (PortableServer::Servant servant, CORBA::Long& id ACE_ENV_ARG_DECL);
/// Activate Object, using existing ID
CORBA::Object_ptr activate_with_id (PortableServer::Servant servant, CORBA::Long id ACE_ENV_ARG_DECL);
/// Deactivate Object with ID
- void deactivate (CORBA::Long id
- ACE_ENV_ARG_DECL) const;
+ void deactivate (CORBA::Long id ACE_ENV_ARG_DECL) const;
/// Convert ID to reference.
- CORBA::Object_ptr id_to_reference (CORBA::Long id
- ACE_ENV_ARG_DECL) const;
+ CORBA::Object_ptr id_to_reference (CORBA::Long id ACE_ENV_ARG_DECL) const;
/// Convert reference to pointer to servant
- PortableServer::ServantBase * reference_to_servant (CORBA::Object_ptr ptr
- ACE_ENV_ARG_DECL) const;
+ PortableServer::ServantBase * reference_to_servant (CORBA::Object_ptr ptr ACE_ENV_ARG_DECL) const;
CORBA::Object_ptr servant_to_reference (PortableServer::ServantBase * servant ACE_ENV_ARG_DECL) const;
protected:
/// Set default POA policies.
- virtual void set_policy (PortableServer::POA_ptr parent_poa,
- CORBA::PolicyList &policy_list
- ACE_ENV_ARG_DECL);
+ virtual void set_policy (PortableServer::POA_ptr parent_poa, CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL);
/// Apply the polices and create child POA.
- void create_i (PortableServer::POA_ptr parent_poa,
- const char* poa_name,
- CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL);
+ void create_i (PortableServer::POA_ptr parent_poa, const char* poa_name, CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL);
/// Generate a unique id for each POA created.
ACE_CString get_unique_id (void);
/// Convert id to ObjectID
- PortableServer::ObjectId* long_to_ObjectId (CORBA::Long id
- ACE_ENV_ARG_DECL) const;
+ PortableServer::ObjectId* long_to_ObjectId (CORBA::Long id ACE_ENV_ARG_DECL) const;
protected:
/// POA
@@ -104,10 +91,8 @@ protected:
TAO_Notify_ID_Factory id_factory_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/POA_Helper.inl"
+#include "POA_Helper.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.inl b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.inl
index dc559fb00c4..e11089afb4d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/POA_Helper.inl
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE PortableServer::POA_ptr
TAO_Notify_POA_Helper::poa (void)
{
return this->poa_.in ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp
index 6caa4aa6552..50659fef095 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Peer.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/Peer.h"
+#include "Peer.h"
ACE_RCSID(Notify, TAO_Notify_Peer, "$Id$")
-#include "orbsvcs/Notify/Proxy.h"
+#include "Proxy.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Peer::TAO_Notify_Peer (void)
{
}
@@ -81,8 +79,7 @@ TAO_Notify_Peer::dispatch_updates (const TAO_Notify_EventTypeSeq & added, const
if (cos_added.length () != 0 || cos_removed.length () != 0)
{
- // Protect this object from being destroyed in this scope.
- TAO_Notify_Proxy::Ptr proxy_guard(this->proxy ());
+ TAO_Notify_Proxy::Ptr proxy_guard(this->proxy ()); // Protect this object from being destroyed in this scope.
this->dispatch_updates_i (cos_added, cos_removed ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -121,5 +118,3 @@ TAO_Notify_Peer::_decr_refcnt (void)
{
return this->proxy ()->_decr_refcnt ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Peer.h b/TAO/orbsvcs/orbsvcs/Notify/Peer.h
index 142ef4484cf..3753ec2e596 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Peer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Peer.h
@@ -1,27 +1,26 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Peer.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PEER_H
#define TAO_Notify_PEER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotificationC.h"
-#include "orbsvcs/Notify/EventTypeSeq.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "EventTypeSeq.h"
class TAO_Notify_Proxy;
class TAO_Notify_QoSProperties;
@@ -48,6 +47,7 @@ public:
CORBA::ULong _incr_refcnt (void);
CORBA::ULong _decr_refcnt (void);
+
/// Shutdown the peer.
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL);
@@ -66,20 +66,17 @@ public:
void handle_dispatch_exception (ACE_ENV_SINGLE_ARG_DECL);
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const = 0;
+ virtual bool get_ior (ACE_CString & iorstr) const = 0;
protected:
/// Implementation of Peer specific dispatch_updates
virtual void dispatch_updates_i (const CosNotification::EventTypeSeq& added,
const CosNotification::EventTypeSeq& removed
ACE_ENV_ARG_DECL) = 0;
-
private:
/// Release
virtual void release (void) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_PEER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp b/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp
index 18cda388126..8e27e57dad0 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/Persistent_File_Allocator.h"
+#include "Persistent_File_Allocator.h"
#include "tao/debug.h"
#include "ace/OS_NS_string.h"
@@ -10,8 +10,6 @@
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -396,5 +394,3 @@ Persistent_File_Allocator::run()
}
} /* namespace TAO_Notify */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h b/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h
index 718be6e8f54..05e50545173 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Persistent_File_Allocator.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,18 +23,17 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Random_File.h"
-#include "orbsvcs/Notify/Bit_Vector.h"
+#include "notify_serv_export.h"
+#include "Random_File.h"
+#include "Bit_Vector.h"
#include "ace/Containers_T.h"
#include "ace/Unbounded_Queue.h"
#include "ace/Thread_Manager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
+
/// \brief An interface to allow callbacks on completion of persistent storage
/// requests.
class TAO_Notify_Serv_Export Persistent_Callback
@@ -202,7 +201,5 @@ private:
} /* namespace TAO_Notify */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* PERSISTENT_FILE_ALLOCATOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp b/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp
index 798f24fb7f1..ff123bb9fc0 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Properties.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Notify/Properties.h"
+#include "Properties.h"
#include "orbsvcs/NotifyExtC.h"
#include "tao/debug.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Properties.inl"
+#include "Properties.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
TAO_Notify_Properties,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Properties::TAO_Notify_Properties (void)
: factory_ (0)
, builder_ (0)
@@ -40,5 +38,3 @@ TAO_Notify_Properties::~TAO_Notify_Properties ()
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template class TAO_Singleton<TAO_Notify_Properties, ACE_Thread_Mutex> *TAO_Singleton<TAO_Notify_Properties, ACE_Thread_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Properties.h b/TAO/orbsvcs/orbsvcs/Notify/Properties.h
index 7ab3ec74637..e872da4d5de 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Properties.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Properties.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Properties.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROPERTIES_H
@@ -13,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +27,6 @@
#include "tao/TAO_Singleton.h"
#include "tao/ORB.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Factory;
class TAO_Notify_Builder;
@@ -39,6 +38,8 @@ class TAO_Notify_Builder;
*/
class TAO_Notify_Serv_Export TAO_Notify_Properties
{
+ friend class TAO_Singleton<TAO_Notify_Properties, TAO_SYNCH_MUTEX>;
+
public:
/// Constuctor
TAO_Notify_Properties (void);
@@ -144,10 +145,8 @@ TAO_NOTIFY_SERV_SINGLETON_DECLARE (TAO_Singleton, TAO_Notify_Properties, TAO_SYN
typedef TAO_Singleton<TAO_Notify_Properties, TAO_SYNCH_MUTEX> TAO_Notify_PROPERTIES;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Properties.inl"
+#include "Properties.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Properties.inl b/TAO/orbsvcs/orbsvcs/Notify/Properties.inl
index c53e7087f8e..c8a7893f4d7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Properties.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Properties.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Notify_Factory*
TAO_Notify_Properties::factory (void)
{
@@ -147,5 +143,3 @@ TAO_Notify_Properties::default_proxy_consumer_qos_properties (const CosNotificat
{
this->pc_qos_ = pc_qos;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property.h b/TAO/orbsvcs/orbsvcs/Notify/Property.h
index 2d0ef880733..7479b98cc65 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,12 +25,7 @@
#include "tao/orbconf.h"
#include "tao/TimeBaseC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class LOCK, class TYPE> class ACE_Atomic_Op;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE> class TAO_Notify_Property_T;
template <class TYPE> class TAO_Notify_StructProperty_T;
@@ -42,8 +37,6 @@ typedef TAO_Notify_Property_T<TimeBase::TimeT> TAO_Notify_Property_Time;
typedef TAO_Notify_StructProperty_T<NotifyExt::ThreadPoolParams> TAO_Notify_Property_ThreadPool;
typedef TAO_Notify_StructProperty_T<NotifyExt::ThreadPoolLanesParams> TAO_Notify_Property_ThreadPoolLanes;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_PROPERTY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp
index bd8adc484f6..df5beffdb21 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/PropertySeq.h"
+#include "PropertySeq.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/PropertySeq.inl"
+#include "PropertySeq.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_PropertySeq, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_PropertySeq::TAO_Notify_PropertySeq (void)
{
}
@@ -61,5 +59,3 @@ TAO_Notify_PropertySeq::add(const ACE_CString& name, const CORBA::Any& val)
ACE_ASSERT(ret >= 0);
ACE_UNUSED_ARG (ret); // because the assert disappears in release builds
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.h b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.h
index 315aac46a0b..1325b724e81 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file PropertySeq.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROPERTYSEQ_H
@@ -13,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +26,6 @@
#include "ace/SString.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_PropertySeq
*
@@ -66,10 +65,8 @@ protected:
PROPERTY_MAP property_map_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/PropertySeq.inl"
+#include "PropertySeq.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.inl b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.inl
index 043f28ab9b6..b96345cb11a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/PropertySeq.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
-TAO_Notify_PropertySeq::find (const char* name,
- CosNotification::PropertyValue& value) const
+TAO_Notify_PropertySeq::find (const char* name, CosNotification::PropertyValue& value) const
{
ACE_CString str_name (name);
return this->property_map_.find (str_name, value);
@@ -19,4 +14,3 @@ TAO_Notify_PropertySeq::size() const
return this->property_map_.current_size();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.cpp b/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.cpp
index 378ca42dc41..6428fec8072 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "orbsvcs/Notify/Property_Boolean.h"
+#include "Property_Boolean.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Property_Boolean.inl"
+#include "Property_Boolean.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Property_Boolean, "$Id$")
-#include "orbsvcs/Notify/PropertySeq.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PropertySeq.h"
TAO_Notify_Property_Boolean::TAO_Notify_Property_Boolean (const char* name)
- : name_ (name), valid_(0)
+ :name_ (name), valid_(0)
{
}
@@ -43,5 +41,3 @@ TAO_Notify_Property_Boolean::get (CosNotification::PropertySeq& prop_seq)
prop_seq[prop_seq.length () - 1].value <<= CORBA::Any::from_boolean (this->value_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.h b/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.h
index 53c0f441de9..e2d8487d0d8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Property_Boolean.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROPERTY_BOOLEAN_H
@@ -13,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,8 +22,6 @@
#include "orbsvcs/CosNotificationC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_PropertySeq;
/**
@@ -78,10 +77,8 @@ protected:
CORBA::Boolean valid_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Property_Boolean.inl"
+#include "Property_Boolean.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl b/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl
index bccd42bed59..b1a469809bb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property_Boolean.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Notify_Property_Boolean&
TAO_Notify_Property_Boolean::operator= (const TAO_Notify_Property_Boolean& rhs)
{
@@ -58,5 +55,3 @@ TAO_Notify_Property_Boolean::is_valid (void) const
{
return this->valid_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Property_T.cpp
index 75b5675e2d5..0b6aad318ae 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property_T.cpp
@@ -3,40 +3,37 @@
#ifndef TAO_Notify_PROPERTY_T_CPP
#define TAO_Notify_PROPERTY_T_CPP
-#include "orbsvcs/Notify/Property_T.h"
+#include "Property_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Property_T.inl"
+#include "Property_T.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify,
TAO_Notify_Property_T,
"$Id$")
-#include "orbsvcs/Notify/PropertySeq.h"
+#include "PropertySeq.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/*****************************************************************************/
+/*******************************************************************************/
template <class TYPE>
TAO_Notify_PropertyBase_T<TYPE>::TAO_Notify_PropertyBase_T (const char* name)
- : name_ (name), valid_(0)
+ :name_ (name), valid_(0)
{
}
template <class TYPE>
TAO_Notify_PropertyBase_T<TYPE>::TAO_Notify_PropertyBase_T (const char* name, const TYPE& initial)
- : name_ (name), value_ (initial), valid_ (1)
+ :name_ (name), value_ (initial), valid_ (1)
{
}
template <class TYPE>
-TAO_Notify_PropertyBase_T<TYPE>::TAO_Notify_PropertyBase_T (
- const TAO_Notify_PropertyBase_T &rhs)
- : name_ (rhs.name_),
- value_ (rhs.value_),
- valid_ (rhs.valid_)
+TAO_Notify_PropertyBase_T<TYPE>::TAO_Notify_PropertyBase_T (const TAO_Notify_PropertyBase_T &rhs)
+:name_ (rhs.name_),
+ value_ (rhs.value_),
+ valid_ (rhs.valid_)
{
}
@@ -111,8 +108,7 @@ TAO_Notify_StructProperty_T<TYPE>::TAO_Notify_StructProperty_T (const char* name
}
template <class TYPE> int
-TAO_Notify_StructProperty_T<TYPE>::set (
- const TAO_Notify_PropertySeq& property_seq)
+TAO_Notify_StructProperty_T<TYPE>::set (const TAO_Notify_PropertySeq& property_seq)
{
CosNotification::PropertyValue value;
@@ -132,6 +128,4 @@ TAO_Notify_StructProperty_T<TYPE>::set (
return -1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_PROPERTY_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_T.h b/TAO/orbsvcs/orbsvcs/Notify/Property_T.h
index 39a79608659..b1b6b7c39f0 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property_T.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Property_T.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROPERTY_T_H
@@ -13,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +24,6 @@
#include "orbsvcs/CosNotificationC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_PropertySeq;
/**
@@ -152,14 +151,12 @@ protected:
CORBA::Boolean valid_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Property_T.inl"
+#include "Property_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Property_T.cpp"
+#include "Property_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Property_T.inl
index 7f66d30c0c0..31d5290c72d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Property_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Property_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE> ACE_INLINE const TYPE&
TAO_Notify_PropertyBase_T<TYPE>::value (void) const
{
@@ -73,5 +71,3 @@ TAO_Notify_StructProperty_T<TYPE>::is_valid (void) const
{
return this->valid_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp b/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp
index a088943d05b..861dc279f09 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy.cpp
@@ -1,25 +1,23 @@
// $Id$
-#include "orbsvcs/Notify/Proxy.h"
+#include "Proxy.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Proxy.inl"
+#include "Proxy.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID(Notify, TAO_Notify_Proxy, "$Id$")
+ACE_RCSID(RT_Notify, TAO_Notify_Proxy, "$Id$")
-#include "orbsvcs/Notify/Peer.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/Method_Request_Updates.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/POA_Helper.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Peer.h"
+#include "Proxy.h"
+#include "Method_Request_Updates.h"
+#include "Worker_Task.h"
+#include "Properties.h"
+#include "POA_Helper.h"
+#include "Topology_Saver.h"
TAO_Notify_Proxy::TAO_Notify_Proxy (void)
- : updates_off_ (0)
+ :updates_off_ (0)
{
}
@@ -76,12 +74,10 @@ TAO_Notify_Proxy::types_changed (const TAO_Notify_EventTypeSeq& added, const TAO
if (TAO_Notify_PROPERTIES::instance()->asynch_updates () == 1) // if we should send the updates synchronously.
{
this->execute_task (request ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
else // execute in the current thread context.
{
request.execute (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
@@ -170,7 +166,11 @@ TAO_Notify_Proxy::save_attrs (TAO_Notify::NVPList& attrs)
TAO_Notify_Peer * peer = this->peer();
if (peer != 0)
{
- attrs.push_back (TAO_Notify::NVP("PeerIOR", peer->get_ior()));
+ ACE_CString ior;
+ if (peer->get_ior(ior))
+ {
+ attrs.push_back (TAO_Notify::NVP("PeerIOR", ior));
+ }
}
}
@@ -195,5 +195,3 @@ TAO_Notify_Proxy::load_child (const ACE_CString &type, CORBA::Long id,
}
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy.h b/TAO/orbsvcs/orbsvcs/Notify/Proxy.h
index d6931ece562..c213387be0d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Proxy.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Proxy.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROXY_H
@@ -13,18 +14,16 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Topology_Object.h"
-#include "orbsvcs/Notify/EventTypeSeq.h"
-#include "orbsvcs/Notify/FilterAdmin.h"
-#include "orbsvcs/Notify/Admin.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Topology_Object.h"
+#include "EventTypeSeq.h"
+#include "FilterAdmin.h"
+#include "Admin.h"
class TAO_Notify_Admin;
class TAO_Notify_Peer;
@@ -128,10 +127,8 @@ protected:
CORBA::Boolean updates_off_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Proxy.inl"
+#include "Proxy.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl b/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl
index 6eff985b31e..ef84390455c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_Notify_Proxy::updates_off (void)
{
@@ -36,5 +32,3 @@ TAO_Notify_Proxy::check_filters (const TAO_Notify_Event* event
return val;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp
index cd7587bfacd..5d309383a26 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.cpp
@@ -1,34 +1,31 @@
// $Id$
-#include "orbsvcs/Notify/ProxyConsumer.h"
+#include "ProxyConsumer.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/ProxyConsumer.inl"
+#include "ProxyConsumer.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID(Notify, TAO_Notify_ProxyConsumer, "$Id$")
+ACE_RCSID(RT_Notify, TAO_Notify_ProxyConsumer, "$Id$")
#include "tao/debug.h"
#include "ace/Atomic_Op.h"
-#include "orbsvcs/Notify/Supplier.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/Event_Manager.h"
-#include "orbsvcs/Notify/Method_Request_Lookup.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/Routing_Slip.h"
-
+#include "Supplier.h"
+#include "AdminProperties.h"
+#include "Property.h"
+#include "Proxy.h"
+#include "Event_Manager.h"
+#include "Method_Request_Lookup.h"
+#include "Worker_Task.h"
+#include "Properties.h"
+#include "SupplierAdmin.h"
+#include "EventChannel.h"
+#include "Routing_Slip.h"
//#define DEBUG_LEVEL 10
#ifndef DEBUG_LEVEL
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_ProxyConsumer::TAO_Notify_ProxyConsumer (void)
: supplier_admin_ (0)
{
@@ -50,7 +47,6 @@ TAO_Notify_ProxyConsumer::init (TAO_Notify::Topology_Parent* topology_parent ACE
ACE_ASSERT( this->supplier_admin_.get() == 0 );
TAO_Notify_Proxy::initialize (topology_parent ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
this->supplier_admin_.reset (dynamic_cast<TAO_Notify_SupplierAdmin *>(topology_parent));
ACE_ASSERT (this->supplier_admin_.get() != 0);
@@ -87,15 +83,15 @@ TAO_Notify_ProxyConsumer::connect (TAO_Notify_Supplier *supplier ACE_ENV_ARG_DEC
// if supplier is set and reconnect not allowed we get out.
if (this->is_connected () && TAO_Notify_PROPERTIES::instance()->allow_reconnect() == false)
{
- ACE_THROW (CosEventChannelAdmin::AlreadyConnected ());
- }
+ ACE_THROW (CosEventChannelAdmin::AlreadyConnected ());
+ }
// Adopt the supplier
this->supplier_ = auto_supplier;
this->supplier_admin_->subscribed_types (this->subscribed_types_ ACE_ENV_ARG_PARAMETER); // get the parents subscribed types.
ACE_CHECK;
- }
+ }
// Inform QoS values.
ACE_ASSERT (this->supplier_.get() != 0);
@@ -117,7 +113,8 @@ TAO_Notify_ProxyConsumer::push_i (TAO_Notify_Event * event ACE_ENV_ARG_DECL)
{
if (this->supports_reliable_events ())
{
- TAO_Notify_Event::Ptr pevent(event->queueable_copy(ACE_ENV_SINGLE_ARG_PARAMETER));
+ TAO_Notify_Event::Ptr pevent (
+ event->queueable_copy (ACE_ENV_SINGLE_ARG_PARAMETER) );
ACE_CHECK;
TAO_Notify::Routing_Slip_Ptr routing_slip =
TAO_Notify::Routing_Slip::create (pevent ACE_ENV_ARG_PARAMETER);
@@ -181,7 +178,6 @@ TAO_Notify_ProxyConsumer::shutdown (ACE_ENV_SINGLE_ARG_DECL)
if (this->supplier_.get() != 0)
{
this->supplier_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (1);
}
return 0;
}
@@ -189,16 +185,11 @@ TAO_Notify_ProxyConsumer::shutdown (ACE_ENV_SINGLE_ARG_DECL)
void
TAO_Notify_ProxyConsumer::destroy (ACE_ENV_SINGLE_ARG_DECL)
{
- int result = this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- if ( result == 1)
+ if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
- this->supplier_admin_->remove (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- // Do not reset this->supplier_.
- // It is not safe to delete the non-refcounted supplier here.
+ this->supplier_admin_->remove (this ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.h
index 17890c772f2..aa927dedbab 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ProxyConsumer.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROXYCONSUMER_H
@@ -13,10 +14,10 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
+#include "notify_serv_export.h"
+#include "Event.h"
+#include "Proxy.h"
+#include "SupplierAdmin.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +27,6 @@
#include "ace/Auto_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Supplier;
/**
@@ -36,8 +35,7 @@ class TAO_Notify_Supplier;
* @brief Base class for all types of ProxyConsumer implementations.
*
*/
-class TAO_Notify_Serv_Export TAO_Notify_ProxyConsumer
- : public virtual TAO_Notify_Proxy
+class TAO_Notify_Serv_Export TAO_Notify_ProxyConsumer : public virtual TAO_Notify_Proxy
{
public:
typedef TAO_Notify_Refcountable_Guard_T<TAO_Notify_ProxyConsumer> Ptr;
@@ -95,10 +93,8 @@ private:
virtual TAO_Notify_Peer* peer (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/ProxyConsumer.inl"
+#include "ProxyConsumer.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.inl b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.inl
index b2b0c8bb5c8..4ad429ba0e5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE bool
TAO_Notify_ProxyConsumer::is_connected (void) const
{
@@ -22,5 +18,3 @@ TAO_Notify_ProxyConsumer::supplier_admin (void)
ACE_ASSERT( this->supplier_admin_.get() != 0 );
return *this->supplier_admin_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp
index a47122b58d5..2f836c0302a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.cpp
@@ -3,12 +3,12 @@
#ifndef TAO_Notify_PROXYCONSUMER_T_CPP
#define TAO_Notify_PROXYCONSUMER_T_CPP
-#include "orbsvcs/Notify/ProxyConsumer_T.h"
-#include "orbsvcs/Notify/SupplierAdmin.h"
+#include "ProxyConsumer_T.h"
+#include "SupplierAdmin.h"
-#include "orbsvcs/Notify/Event_Manager.h"
+ACE_RCSID(Notify, TAO_Notify_ProxyConsumer_T, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Event_Manager.h"
template <class SERVANT_TYPE>
TAO_Notify_ProxyConsumer_T<SERVANT_TYPE>::TAO_Notify_ProxyConsumer_T (void)
@@ -62,23 +62,16 @@ TAO_Notify_ProxyConsumer_T<SERVANT_TYPE>::offer_change (const CosNotification::E
this->subscribed_types_.add_and_remove (seq_added, seq_removed);
}
- this->event_manager().offer_change (this,
- seq_added,
- seq_removed
- ACE_ENV_ARG_PARAMETER);
+ this->event_manager().offer_change (this, seq_added, seq_removed ACE_ENV_ARG_PARAMETER);
}
template <class SERVANT_TYPE> CosNotification::EventTypeSeq*
-TAO_Notify_ProxyConsumer_T<SERVANT_TYPE>::obtain_subscription_types (
- CosNotifyChannelAdmin::ObtainInfoMode mode
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
+TAO_Notify_ProxyConsumer_T<SERVANT_TYPE>::obtain_subscription_types (CosNotifyChannelAdmin::ObtainInfoMode mode ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((
+ CORBA::SystemException
+ ))
{
- return
- this->obtain_types (mode, this->event_manager().subscription_types ()
- ACE_ENV_ARG_PARAMETER);
+ return this->obtain_types (mode, this->event_manager().subscription_types () ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_PROXYCONSUMER_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.h b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.h
index bcb0ada782b..f8ee14512bf 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxyConsumer_T.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ProxyConsumer_T.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROXYCONSUMER_T_H
@@ -13,16 +14,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Proxy_T.h"
-#include "orbsvcs/Notify/ProxyConsumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Proxy_T.h"
+#include "ProxyConsumer.h"
/**
* @class TAO_Notify_ProxyConsumer_T
@@ -72,10 +71,8 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/ProxyConsumer_T.cpp"
+#include "ProxyConsumer_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp
index 4d7a0c3023d..0f1733335f3 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.cpp
@@ -1,23 +1,21 @@
// $Id$
-#include "orbsvcs/Notify/ProxySupplier.h"
+#include "ProxySupplier.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/ProxySupplier.inl"
+#include "ProxySupplier.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID(Notify, TAO_Notify_ProxySupplier, "$Id$")
+ACE_RCSID(RT_Notify, TAO_Notify_ProxySupplier, "$Id$")
-#include "orbsvcs/Notify/Event_Manager.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Consumer.h"
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Buffering_Strategy.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Event_Manager.h"
+#include "AdminProperties.h"
+#include "Consumer.h"
+#include "Method_Request_Dispatch.h"
+#include "Worker_Task.h"
+#include "Buffering_Strategy.h"
+#include "Properties.h"
+#include "ConsumerAdmin.h"
TAO_Notify_ProxySupplier::TAO_Notify_ProxySupplier (void)
: consumer_admin_ (0)
@@ -34,7 +32,6 @@ TAO_Notify_ProxySupplier::init (TAO_Notify_ConsumerAdmin* consumer_admin ACE_ENV
ACE_ASSERT (consumer_admin != 0 && this->consumer_admin_.get() == 0);
TAO_Notify_Proxy::initialize (consumer_admin ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
this->consumer_admin_.reset (consumer_admin);
@@ -42,7 +39,6 @@ TAO_Notify_ProxySupplier::init (TAO_Notify_ConsumerAdmin* consumer_admin ACE_ENV
TAO_Notify_PROPERTIES::instance ()->default_proxy_supplier_qos_properties ();
this->set_qos (default_ps_qos ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
TAO_Notify_Peer*
@@ -77,8 +73,8 @@ TAO_Notify_ProxySupplier::connect (TAO_Notify_Consumer *consumer ACE_ENV_ARG_DEC
// if consumer is set and reconnect not allowed we get out.
if (this->is_connected () && TAO_Notify_PROPERTIES::instance()->allow_reconnect() == false)
{
- ACE_THROW (CosEventChannelAdmin::AlreadyConnected ());
- }
+ ACE_THROW (CosEventChannelAdmin::AlreadyConnected ());
+ }
// Adopt the consumer
this->consumer_ = auto_consumer;
@@ -94,7 +90,6 @@ TAO_Notify_ProxySupplier::connect (TAO_Notify_Consumer *consumer ACE_ENV_ARG_DEC
TAO_Notify_EventTypeSeq removed;
this->event_manager().subscription_change (this, this->subscribed_types_, removed ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
this->event_manager().connect (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -139,16 +134,13 @@ TAO_Notify_ProxySupplier::shutdown (ACE_ENV_SINGLE_ARG_DECL)
void
TAO_Notify_ProxySupplier::destroy (ACE_ENV_SINGLE_ARG_DECL)
{
- int result = this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- if ( result == 1)
+ if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
- this->consumer_admin_->remove (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- // Do not reset this->consumer_.
- // It is not safe to delete the non-refcounted consumer here.
+ this->consumer_admin_->remove (this ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
void
@@ -162,5 +154,3 @@ TAO_Notify_ProxySupplier::qos_changed (const TAO_Notify_QoSProperties& qos_prope
{
TAO_Notify_Proxy::qos_changed (qos_properties);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.h b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.h
index 17ced483590..31615beec88 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.h
@@ -1,31 +1,30 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ProxySupplier.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROXYSUPPLIER_H
#define TAO_Notify_PROXYSUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
+#include "Event.h"
+#include "Proxy.h"
+#include "ConsumerAdmin.h"
#include "orbsvcs/CosEventChannelAdminC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Consumer;
class TAO_Notify_Method_Request_Dispatch_No_Copy;
/**
@@ -91,10 +90,8 @@ private:
virtual TAO_Notify_Peer* peer (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/ProxySupplier.inl"
+#include "ProxySupplier.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.inl b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.inl
index c7afa257d59..46b16302e2e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE bool
TAO_Notify_ProxySupplier::is_connected (void) const
{
@@ -22,5 +18,3 @@ TAO_Notify_ProxySupplier::consumer_admin (void)
ACE_ASSERT( this->consumer_admin_.get() != 0 );
return *this->consumer_admin_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp
index 622acba3277..c926f4f5824 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.cpp
@@ -1,24 +1,24 @@
// $Id$
-#ifndef TAO_Notify_PROXYSUPPLIER_T_CPP
-#define TAO_Notify_PROXYSUPPLIER_T_CPP
+#ifndef TAO_Notify_PROXYSUPPLIER_T_C
+#define TAO_Notify_PROXYSUPPLIER_T_C
-#include "orbsvcs/Notify/ProxySupplier_T.h"
+#include "ProxySupplier_T.h"
-#include "orbsvcs/Notify/Consumer.h"
-#include "orbsvcs/Notify/Structured/StructuredEvent.h"
-#include "orbsvcs/Notify/Any/AnyEvent.h"
+ACE_RCSID(Notify, TAO_Notify_ProxySupplier_T, "$Id$")
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Event_Manager.h"
-#include "orbsvcs/Notify/ConsumerAdmin.h"
+#include "Consumer.h"
+#include "Structured/StructuredEvent.h"
+#include "Any/AnyEvent.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Method_Request_Dispatch.h"
+#include "Worker_Task.h"
+#include "Event_Manager.h"
+#include "ConsumerAdmin.h"
template <class SERVANT_TYPE>
TAO_Notify_ProxySupplier_T<SERVANT_TYPE>::TAO_Notify_ProxySupplier_T (void)
- : is_suspended_ (0)
+ :is_suspended_ (0)
{
}
@@ -222,6 +222,4 @@ TAO_Notify_ProxySupplier_T<SERVANT_TYPE>::lifetime_filter (CosNotifyFilter::Mapp
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* #define TAO_Notify_PROXYSUPPLIER_T_CPP */
+#endif /* #define TAO_Notify_PROXYSUPPLIER_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.h b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.h
index f31cba76ee9..5c18d79424e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ProxySupplier_T.h
@@ -1,27 +1,26 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ProxySupplier_T.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_PROXYSUPPLIER_T_H
#define TAO_Notify_PROXYSUPPLIER_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Proxy_T.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Proxy_T.h"
+#include "ProxySupplier.h"
/**
* @class TAO_Notify_ProxySupplier_T
@@ -147,10 +146,8 @@ protected:
));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/ProxySupplier_T.cpp"
+#include "ProxySupplier_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.cpp
index 518db5e5c02..4858f2da0c3 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "orbsvcs/Notify/Proxy_T.h"
+#include "Proxy_T.h"
#ifndef TAO_Notify_PROXY_T_CPP
#define TAO_Notify_PROXY_T_CPP
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Notify, TAO_Notify_Proxy_T, "$Id$")
template <class SERVANT_TYPE>
TAO_Notify_Proxy_T<SERVANT_TYPE>::TAO_Notify_Proxy_T (void)
@@ -160,6 +160,4 @@ TAO_Notify_Proxy_T<SERVANT_TYPE>::remove_all_filters (ACE_ENV_SINGLE_ARG_DECL)
this->filter_admin_.remove_all_filters (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_PROXY_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.h b/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.h
index 2cdc149f502..b9b0e26ee0f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Proxy_T.h
*
@@ -15,16 +14,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Proxy.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Proxy.h"
/**
* @class TAO_Notify_Proxy_T
@@ -147,10 +143,8 @@ template class TAO_Notify_Serv_Export
TAO_Notify_Proxy_T<POA_CosEventChannelAdmin::ProxyPushConsumer>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Proxy_T.cpp"
+#include "Proxy_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp
index 73d20823325..a25544ae6a5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.cpp
@@ -1,32 +1,30 @@
// $Id$
-#include "orbsvcs/Notify/QoSProperties.h"
+#include "QoSProperties.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/QoSProperties.inl"
+#include "QoSProperties.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_QoSProperties, "$Id$")
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Notify_Extensions.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Property.h"
+#include "Notify_Extensions.h"
TAO_Notify_QoSProperties::TAO_Notify_QoSProperties (void)
- : event_reliability_(CosNotification::EventReliability)
- , connection_reliability_(CosNotification::ConnectionReliability)
- , priority_ (CosNotification::Priority)
- , timeout_ (CosNotification::Timeout)
- , stop_time_supported_ (CosNotification::StopTimeSupported)
- , maximum_batch_size_ (CosNotification::MaximumBatchSize)
- , pacing_interval_ (CosNotification::PacingInterval)
- , max_events_per_consumer_ (CosNotification::MaxEventsPerConsumer)
- , discard_policy_ (CosNotification::DiscardPolicy)
- , order_policy_ (CosNotification::OrderPolicy)
- , thread_pool_ (NotifyExt::ThreadPool)
- , thread_pool_lane_ (NotifyExt::ThreadPoolLanes)
- , blocking_policy_(TAO_Notify_Extensions::BlockingPolicy)
+: event_reliability_(CosNotification::EventReliability)
+, connection_reliability_(CosNotification::ConnectionReliability)
+, priority_ (CosNotification::Priority)
+, timeout_ (CosNotification::Timeout)
+, stop_time_supported_ (CosNotification::StopTimeSupported)
+, maximum_batch_size_ (CosNotification::MaximumBatchSize)
+, pacing_interval_ (CosNotification::PacingInterval)
+, max_events_per_consumer_ (CosNotification::MaxEventsPerConsumer)
+, discard_policy_ (CosNotification::DiscardPolicy)
+, order_policy_ (CosNotification::OrderPolicy)
+, thread_pool_ (NotifyExt::ThreadPool)
+, thread_pool_lane_ (NotifyExt::ThreadPoolLanes)
+, blocking_policy_(TAO_Notify_Extensions::BlockingPolicy)
{
unsupported_[0] = CosNotification::StartTimeSupported;
}
@@ -214,5 +212,3 @@ TAO_Notify_QoSProperties::transfer (TAO_Notify_QoSProperties& qos_properties)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.h b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.h
index 6ce71f0941c..3f075a1dcbc 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file QoSProperties.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_QOSPROPERTIES_H
@@ -13,18 +14,16 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/PropertySeq.h"
-#include "orbsvcs/Notify/Property_T.h"
-#include "orbsvcs/Notify/Property_Boolean.h"
-#include "orbsvcs/Notify/Property.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PropertySeq.h"
+#include "Property_T.h"
+#include "Property_Boolean.h"
+#include "Property.h"
/**
* @class TAO_Notify_QoSProperties
@@ -109,10 +108,8 @@ protected:
TAO_Notify_Property_Time blocking_policy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/QoSProperties.inl"
+#include "QoSProperties.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.inl b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.inl
index 6cf7f8f44fa..cc822edf7e4 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/QoSProperties.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
const TAO_Notify_Property_Short&
TAO_Notify_QoSProperties::event_reliability(void) const
@@ -159,5 +155,3 @@ TAO_Notify_QoSProperties::order_policy(void)
{
return this->order_policy_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/README b/TAO/orbsvcs/orbsvcs/Notify/README
index c30991c4c95..454dc9367b7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/README
+++ b/TAO/orbsvcs/orbsvcs/Notify/README
@@ -28,7 +28,7 @@ their push methods to be invoked. To decouple the consumers from one
another we can deploy dispatching threads using this option.
--SourceThreads
+-ListenerThreads
Deploys a thread pool after event receipt from the supplier. All subsequent
notification channel processing can happen on this thread and the original
publishing push() can be ended. Separates server side processing of the
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp
index 98b297f069a..99000054e16 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.cpp
@@ -1,21 +1,19 @@
// $Id$
-#include "orbsvcs/Notify/RT_Builder.h"
+#include "RT_Builder.h"
#include "ace/Auto_Ptr.h"
#include "ace/Dynamic_Service.h"
-#include "orbsvcs/Notify/ETCL_FilterFactory.h"
-#include "orbsvcs/Notify/RT_POA_Helper.h"
-#include "orbsvcs/Notify/Properties.h"
+#include "ETCL_FilterFactory.h"
+#include "RT_POA_Helper.h"
+#include "Properties.h"
#include "orbsvcs/NotifyExtC.h"
-#include "orbsvcs/Notify/Object.h"
+#include "Object.h"
ACE_RCSID (RT_Notify,
TAO_Notify_RT_Builder,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_RT_Builder::TAO_Notify_RT_Builder (void)
{
}
@@ -68,6 +66,5 @@ TAO_Notify_RT_Builder::apply_lane_concurrency (TAO_Notify_Object& object
// Give ownership of proxy_poa
object.set_proxy_poa (auto_proxy_poa.release ());
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+}
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.h b/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.h
index 6e0b2bba087..d8e5834d2e3 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Builder.h
@@ -1,26 +1,25 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_Builder.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_RT_BUILDER_H
#define TAO_Notify_RT_BUILDER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/rt_notify_export.h"
+#include "rt_notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Builder.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Builder.h"
/**
* @class TAO_Notify_RT_Builder
@@ -44,7 +43,5 @@ public:
virtual void apply_lane_concurrency (TAO_Notify_Object& object, const NotifyExt::ThreadPoolLanesParams& tpl_params ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_RT_BUILDER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp
index af5484fed61..014c4da3984 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.cpp
@@ -1,13 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/RT_Factory.h"
-#include "orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h"
+#include "RT_Factory.h"
+#include "Structured/RT_StructuredProxyPushSupplier.h"
ACE_RCSID(RT_Notify, TAO_Notify_RT_Factory, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_RT_Factory::TAO_Notify_RT_Factory (void)
{
}
@@ -126,6 +123,4 @@ TAO_Notify_RT_Factory:: create (TAO_Notify_SequenceProxyPushSupplier*& proxy ACE
TAO_Notify_Default_Factory::create (proxy ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_RT_Notify, TAO_Notify_RT_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h
index 38bf46c4662..79de7f0749d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Factory.h
@@ -1,26 +1,25 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_Factory.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_RT_FACTORY_H
#define TAO_Notify_RT_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/rt_notify_export.h"
+#include "rt_notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Default_Factory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Default_Factory.h"
/**
* @class TAO_Notify_RT_Factory
@@ -92,8 +91,6 @@ public:
virtual void create (TAO_Notify_SequenceProxyPushSupplier*& proxy ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (TAO_RT_Notify, TAO_Notify_RT_Factory)
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp
index f9e4ce24128..189319af746 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/RT_Notify_Service.h"
+#include "RT_Notify_Service.h"
ACE_RCSID(RT_Notify, TAO_Notify_RT_Notify_Service, "$Id$")
#include "ace/Dynamic_Service.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/RT_Properties.h"
-#include "orbsvcs/Notify/RT_Factory.h"
-#include "orbsvcs/Notify/RT_Builder.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Properties.h"
+#include "RT_Properties.h"
+#include "RT_Factory.h"
+#include "RT_Builder.h"
TAO_RT_Notify_Service::TAO_RT_Notify_Service (void)
{
@@ -93,6 +91,4 @@ TAO_RT_Notify_Service::create_builder (ACE_ENV_SINGLE_ARG_DECL)
return builder;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_RT_Notify,TAO_RT_Notify_Service)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.h b/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.h
index 6383e95fc34..20d41834c10 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Notify_Service.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_Notify_Service.h
*
@@ -14,20 +13,19 @@
#define TAO_Notify_RT_NOTIFY_SERVICE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/rt_notify_export.h"
+#include "rt_notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/CosNotify_Service.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "CosNotify_Service.h"
/**
* @class TAO_RT_Notify_Service
*
- * @brief Implemetation of the TAO_Notify_Service interface for RT Notification.
+ * @brief Implementation of the TAO_Notify_Service interface for
+ * RT Notification.
*
*/
class TAO_RT_Notify_Export TAO_RT_Notify_Service : public TAO_CosNotify_Service
@@ -39,6 +37,7 @@ public:
/// Destructor
~TAO_RT_Notify_Service ();
+
/// Init the service.
virtual void init_service (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL);
@@ -53,8 +52,6 @@ protected:
virtual TAO_Notify_Builder* create_builder (ACE_ENV_SINGLE_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (TAO_RT_Notify,TAO_RT_Notify_Service)
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.cpp
index 81859ded60f..2631faef282 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.cpp
@@ -1,18 +1,16 @@
// $Id$
-#include "orbsvcs/Notify/RT_POA_Helper.h"
+#include "RT_POA_Helper.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/debug.h"
#include "orbsvcs/NotifyExtC.h"
-#include "orbsvcs/Notify/RT_Properties.h"
+#include "RT_Properties.h"
#include "ace/SString.h"
-ACE_RCSID (Notify,
+ACE_RCSID (RT_Notify,
TAO_Notify_RT_POA_Helper,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_RT_POA_Helper::~TAO_Notify_RT_POA_Helper ()
{
}
@@ -162,5 +160,3 @@ TAO_Notify_RT_POA_Helper::init (PortableServer::POA_ptr parent_poa ACE_ENV_ARG_D
this->create_i (parent_poa, child_poa_name.c_str (), policy_list ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.h b/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.h
index d272420ef98..23a14864aff 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_POA_Helper.h
@@ -1,28 +1,27 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_POA_Helper.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_RT_POA_Helper_H
#define TAO_Notify_RT_POA_Helper_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/rt_notify_export.h"
+#include "rt_notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/POA_Helper.h"
+#include "POA_Helper.h"
#include "orbsvcs/NotifyExtC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_RT_POA_Helper
*
@@ -57,7 +56,5 @@ public:
void init (PortableServer::POA_ptr parent_poa ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_RT_POA_Helper_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp
index 6a5aff084e8..07cca498c58 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.cpp
@@ -1,16 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/RT_Properties.h"
+#include "RT_Properties.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/RT_Properties.inl"
+#include "RT_Properties.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(RT_Notify, TAO_Notify_RT_Properties, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_RT_Properties::TAO_Notify_RT_Properties (void)
{
}
@@ -18,5 +15,3 @@ TAO_Notify_RT_Properties::TAO_Notify_RT_Properties (void)
TAO_Notify_RT_Properties::~TAO_Notify_RT_Properties ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.h b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.h
index 124f8757145..31cffb6d9db 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.h
@@ -1,18 +1,19 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_Properties.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_RT_PROPERTIES_H
#define TAO_Notify_RT_PROPERTIES_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/rt_notify_export.h"
+#include "rt_notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,8 +22,6 @@
#include "tao/TAO_Singleton.h"
#include "tao/RTCORBA/RTCORBA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_RT_Properties
*
@@ -58,10 +57,8 @@ TAO_RT_NOTIFY_SINGLETON_DECLARE (TAO_Singleton, TAO_Notify_RT_Properties, TAO_SY
typedef TAO_Singleton<TAO_Notify_RT_Properties, TAO_SYNCH_MUTEX> TAO_Notify_RT_PROPERTIES;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/RT_Properties.inl"
+#include "RT_Properties.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.inl b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.inl
index 71fae93e7ba..8451193ea97 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/RT_Properties.inl
@@ -1,8 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE RTCORBA::RTORB_ptr
TAO_Notify_RT_Properties::rt_orb (void)
@@ -27,5 +24,3 @@ TAO_Notify_RT_Properties::current (RTCORBA::Current_ptr current)
{
current_ = RTCORBA::Current::_duplicate (current);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp b/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp
index b0e528de02b..ca9b3cf010e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Random_File.cpp
@@ -1,17 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/Random_File.h"
+#include "Random_File.h"
#include "ace/OS.h"
-#include "ace/Log_Msg.h"
#include "tao/debug.h"
//#define DEBUG_LEVEL 9
#ifndef DEBUG_LEVEL
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -157,5 +154,3 @@ Random_File::sync()
}
} /* namespace TAO_Notify */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Random_File.h b/TAO/orbsvcs/orbsvcs/Notify/Random_File.h
index c3ebfcd96bf..a58e6f21e0e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Random_File.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Random_File.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,14 +22,11 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "tao/Versioned_Namespace.h"
+#include "notify_serv_export.h"
#include "ace/FILE.h"
#include "ace/streams.h"
#include "ace/Synch_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -88,7 +85,5 @@ private:
} /* namespace TAO_Notify */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* RANDOM_FILE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp
index be6bdd90518..6f03de8e3bb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/Reactive_Task.h"
+#include "Reactive_Task.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Reactive_Task.inl"
+#include "Reactive_Task.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Reactive_Task, "$Id$")
-#include "orbsvcs/Notify/Timer_Reactor.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Timer_Reactor.h"
TAO_Notify_Reactive_Task::TAO_Notify_Reactive_Task (void)
:timer_ (0)
@@ -55,5 +53,3 @@ TAO_Notify_Reactive_Task::timer (void)
{
return this->timer_.get();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.h b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.h
index b7a602cd67c..341e3f3789e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Reactive_Task.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_REACTIVE_TASK_H
@@ -13,27 +14,23 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Timer_Reactor.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Worker_Task.h"
+#include "AdminProperties.h"
+#include "Timer_Reactor.h"
/**
* @class TAO_Notify_Reactive_Task
*
- * @brief A reactive worker task. Simply executes the command in the
- * caller's context.
+ * @brief A reactive worker task. Simply executes the command in the caller's context.
*
*/
-class TAO_Notify_Serv_Export TAO_Notify_Reactive_Task
- : public TAO_Notify_Worker_Task
+class TAO_Notify_Serv_Export TAO_Notify_Reactive_Task : public TAO_Notify_Worker_Task
{
public:
/// Constuctor
@@ -42,6 +39,7 @@ public:
/// Destructor
virtual ~TAO_Notify_Reactive_Task ();
+
/// Init the reactive task.
void init (ACE_ENV_SINGLE_ARG_DECL);
@@ -57,19 +55,16 @@ public:
/// Returns NULL.
virtual TAO_Notify_Buffering_Strategy* buffering_strategy (void);
-private:
+protected:
/// The timer.
TAO_Notify_Timer_Reactor::Ptr timer_;
-
+private:
/// Release
virtual void release (void);
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Reactive_Task.inl"
+#include "Reactive_Task.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.inl b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.inl
index d2b6ec811e5..239c919549b 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reactive_Task.inl
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Notify_Buffering_Strategy*
TAO_Notify_Reactive_Task::buffering_strategy (void)
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.cpp
index 4c5857f45c8..6557823e111 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.cpp
@@ -1,3 +1,5 @@
+/* -*- C++ -*- */
+
//=============================================================================
/**
* @file Reconnect_Worker_T.cpp
@@ -11,14 +13,12 @@
#ifndef RECONNECT_WORKER_CPP
#define RECONNECT_WORKER_CPP
-#include "orbsvcs/Notify/Reconnect_Worker_T.h"
+#include "Reconnect_Worker_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
template<class TOPOOBJ>
@@ -36,6 +36,4 @@ namespace TAO_Notify
}
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* RECONNECT_WORKER_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.h b/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.h
index a4c71244ec2..8190037e3bd 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reconnect_Worker_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -20,8 +20,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
/**
@@ -39,10 +37,8 @@ namespace TAO_Notify
};
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Reconnect_Worker_T.cpp"
+#include "Reconnect_Worker_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp
index 8eba0d841ef..85681eafd55 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.cpp
@@ -1,33 +1,24 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Reconnection_Registry.cpp
*
* $Id$
*
* @author Dale Wilson <wilson_d@ociweb.com>
+ *
*/
-#include "orbsvcs/Notify/Reconnection_Registry.h"
-
+#include "Reconnection_Registry.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
+#include "Properties.h"
+#include "Topology_Saver.h"
#include "ace/Vector_T.h"
//#define DEBUG_LEVEL 10
#ifndef DEBUG_LEVEL
# define DEBUG_LEVEL TAO_debug_level
#endif
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
- const char REGISTRY_TYPE[] = "reconnect_registry";
- const char RECONNECT_ID[] = "ReconnectId";
- const char RECONNECT_IOR[] = "IOR";
- const char REGISTRY_CALLBACK_TYPE[] = "reconnect_callback";
-
Reconnection_Registry::Reconnection_Registry (Topology_Parent & parent)
: highest_id_(0)
{
@@ -89,7 +80,6 @@ namespace TAO_Notify
//@@todo throw something
}
this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
CORBA::Boolean
@@ -252,6 +242,5 @@ namespace TAO_Notify
//@@ inform factory
}
-} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
+} // namespace TAO_Notify
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.h b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.h
index 0c84190d5a9..7fd7c455014 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Reconnection_Registry.h
@@ -1,11 +1,11 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Reconnection_Registry.h
*
* $Id$
*
* @author Dale Wilson <wilson_d@ociweb.com>
+ *
*/
#ifndef TAO_NOTIFY_RECONNECTION_REGISTRY_H
@@ -17,21 +17,19 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Topology_Object.h"
+#include "Topology_Object.h"
#include "orbsvcs/NotifyExtS.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
- extern const char REGISTRY_TYPE[];
- extern const char RECONNECT_ID[];
- extern const char RECONNECT_IOR[];
- extern const char REGISTRY_CALLBACK_TYPE[];
+ static const char REGISTRY_TYPE[] = "reconnect_registry";
+ static const char RECONNECT_ID[] = "ReconnectId";
+ static const char RECONNECT_IOR[] = "IOR";
+ static const char REGISTRY_CALLBACK_TYPE[] = "reconnect_callback";
/**
* @class Reconnection_Registry
@@ -94,7 +92,5 @@ namespace TAO_Notify
};
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ <ace/post.h>
#endif /* TAO_NOTIFY_RECONNECTION_REGISTRY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp
index 0d06a3c0e05..29f2061e5ba 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.cpp
@@ -1,252 +1,59 @@
// $Id$
-#include "orbsvcs/Notify/Refcountable.h"
+#include "Refcountable.h"
#include "tao/debug.h"
#include "ace/Log_Msg.h"
-
#include "ace/Guard_T.h"
ACE_RCSID(Notify, TAO_Notify_Refcountable, "$Id$")
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
-
-#include <map>
-#include <string>
-#include <typeinfo.h>
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_Notify_Tracker
- *
- * @brief A debugging tool to track the creation of TAO_Notify_Refcountable objects.
- *
- * Usage:
- * Set USE_TAO_NOTIFY_TRACKER defined above to 1
- * At any significant point to check object usage
- * TAO_Notify_Tracker::get_instance().dump();
- */
-class TAO_Notify_Tracker
-{
-public:
- struct Entry
- {
- TAO_Notify_Refcountable* obj;
- std::string class_name;
- };
-
- static TAO_Notify_Tracker& get_instance();
-
- void add( TAO_Notify_Refcountable* p );
-
- void remove( const TAO_Notify_Refcountable* p );
-
- Entry find( const TAO_Notify_Refcountable* p ) const;
-
- void dump( const char* title = 0 );
-
-private:
- TAO_Notify_Tracker();
- ~TAO_Notify_Tracker();
-
- friend class std::auto_ptr< TAO_Notify_Tracker >;
- static std::auto_ptr< TAO_Notify_Tracker > s_instance;
- mutable TAO_SYNCH_MUTEX lock_;
- typedef std::map<int, Entry> EntityMap;
- EntityMap map_;
- int id_counter_;
- int last_dump_count_;
-};
-
-void
-TAO_Notify_Refcountable::diagnostic_dump( const char* title )
-{
- TAO_Notify_Tracker::get_instance().dump( title );
-}
-
-#endif /* TAO_NOTIFY_REFCOUNT_DIAGNOSTICS */
-
-
TAO_Notify_Refcountable::TAO_Notify_Refcountable (void)
{
}
TAO_Notify_Refcountable::~TAO_Notify_Refcountable ()
{
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
- TAO_Notify_Tracker::Entry e = TAO_Notify_Tracker::get_instance().find( this );
- if ( e.obj != 0 )
+ Counter refcount = this->refcount_.value();
+ if ( refcount != 0 )
{
- ACE_DEBUG ((LM_DEBUG,"object:%x %s(%d) with refcount:%d destroyed incorrectly.\n",
- e.obj, e.class_name, e.obj->ref_id_, e.obj->refcount_.value() ));
-
- if ( e.obj != this || e.obj->ref_id_ != this->ref_id_ )
- {
- ACE_DEBUG ((LM_DEBUG, " with an ID mismatch %x->%d != %x->%d!\n",
- this, ref_id_, e.obj, e.obj->ref_id_));
- }
- TAO_Notify_Tracker::get_instance().remove( this );
+ ACE_ERROR ((LM_ERROR,"ERROR: object:%x delete with non-zero refcount = %d\n", this, refcount ));
+ ACE_ASSERT( refcount == 0 );
}
-#endif
- CORBA::ULong refcount = this->refcount_.value();
- ACE_ASSERT( refcount == 0 );
- ACE_UNUSED_ARG(refcount);
}
-
CORBA::ULong
TAO_Notify_Refcountable::_incr_refcnt (void)
{
- CORBA::Long refcount = ++this->refcount_;
+ Counter refcount = ++this->refcount_;
if (TAO_debug_level > 1 )
{
ACE_DEBUG ((LM_DEBUG,"object:%x incr refcount = %d\n", this, refcount ));
}
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
- // Stack-instantiated-non-servants should never have _incr_refcnt called.
- // We do not care about stack-instances. Stack-instantiated servants break
- // the tracker.
- if ( refcount == 1 )
- {
- TAO_Notify_Tracker::get_instance().add( this );
- }
-#endif
- return refcount;
+ return static_cast< CORBA::ULong >( refcount );
}
CORBA::ULong
TAO_Notify_Refcountable::_decr_refcnt (void)
{
- CORBA::Long refcount = --this->refcount_;
-
- if (TAO_debug_level > 1 )
- {
- ACE_DEBUG ((LM_DEBUG,"object:%x decr refcount = %d\n", this, refcount ));
- }
-
- ACE_ASSERT(refcount >= 0);
-
- if (refcount == 0)
- {
- #if ( USE_TAO_NOTIFY_TRACKER != 0 )
- TAO_Notify_Tracker::get_instance().remove( this );
- #endif
- this->release ();
- }
- return refcount;
-}
-
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
-
-std::auto_ptr< TAO_Notify_Tracker > TAO_Notify_Tracker::s_instance;
-
-TAO_Notify_Tracker::TAO_Notify_Tracker()
-: id_counter_(0)
-, last_dump_count_(0)
-{
-}
-
-
-TAO_Notify_Tracker::~TAO_Notify_Tracker()
-{
- dump( "destruction" );
-}
+ Counter refcount = --this->refcount_;
-
-void
-TAO_Notify_Tracker::dump( const char* title )
-{
- ACE_Guard<TAO_SYNCH_MUTEX> grd(this->lock_);
-
- ACE_DEBUG ((LM_DEBUG,"\nTAO_Notify_Tracker: %s\n", (title ? title : "dump")));
-
- EntityMap::const_iterator iter( map_.begin() );
- while ( iter != map_.end() )
+ if (TAO_debug_level > 1 )
{
- ACE_DEBUG ((LM_DEBUG,"object:%x %s(%d) with refcount:%d.\n",
- iter->second.obj, iter->second.class_name, iter->first, iter->second.obj->refcount_.value() ));
- iter++;
+ ACE_DEBUG ((LM_DEBUG,"object:%x decr refcount = %d\n", this, refcount ));
}
- EntityMap::size_type current_count = map_.size();
- int diff = ( current_count - last_dump_count_ );
- ACE_DEBUG ((LM_DEBUG,"Count: %u\nDifference: %+d\n", current_count, diff ));
- last_dump_count_ = current_count;
-}
-
-
-TAO_Notify_Tracker&
-TAO_Notify_Tracker::get_instance()
-{
- if ( s_instance.get() == 0 )
+ // If error
+ if ( refcount < 0 )
{
- s_instance.reset( new TAO_Notify_Tracker );
+ ACE_ERROR ((LM_ERROR,"ERROR: object:%x _decr_refcnt (%d < 0)\n", this, refcount ));
+ ACE_ASSERT( refcount >= 0 );
}
- return *s_instance;
-}
-
-void
-TAO_Notify_Tracker::add( TAO_Notify_Refcountable* p )
-{
- if ( p == 0 ) return;
-
- ACE_Guard<TAO_SYNCH_MUTEX> grd(this->lock_);
- int id = ++id_counter_;
-
- Entry e = { p, typeid(*p).name() };
- std::pair< EntityMap::iterator, bool > result =
- map_.insert( std::make_pair( id, e ) );
- EntityMap::iterator& it = result.first;
- if ( result.second == false )
- {
- ACE_DEBUG ((LM_DEBUG,"object:%x %s(%d) added twice.\n",
- it->second.obj, it->second.class_name.c_str(), it->first ));
- }
- else
+ // Release if count is zero
+ else if ( refcount == 0 )
{
- p->ref_id_ = id;
+ this->release ();
}
-}
-
-void
-TAO_Notify_Tracker::remove( const TAO_Notify_Refcountable* p )
-{
- if ( p == 0 ) return;
-
- ACE_Guard<TAO_SYNCH_MUTEX> grd(this->lock_);
- int ref_id = p->ref_id_;
- EntityMap::iterator iter( map_.find( ref_id ) );
- if ( iter == map_.end() )
- {
- const char* class_name = typeid(*iter->second.obj).name();
- ACE_DEBUG ((LM_DEBUG,"object:%x %s(%d) not found.\n",
- p, class_name, ref_id ));
- }
- else
- {
- map_.erase( iter );
- }
+ return static_cast< CORBA::ULong >( refcount );
}
-
-
-TAO_Notify_Tracker::Entry
-TAO_Notify_Tracker::find( const TAO_Notify_Refcountable* p ) const
-{
- Entry e = { 0, "" };
- if ( p == 0 ) return e;
-
- ACE_Guard<TAO_SYNCH_MUTEX> grd(this->lock_);
- int ref_id = p->ref_id_;
- EntityMap::const_iterator iter( map_.find( ref_id ) );
- if ( iter != map_.end() )
- {
- return iter->second;
- }
- return e;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_NOTIFY_REFCOUNT_DIAGNOSTICS */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h
index 960c7e37a93..1d03486f3d1 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Refcountable.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_REFCOUNTABLE_H
@@ -13,8 +14,8 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Refcountable_Guard_T.h"
+#include "notify_serv_export.h"
+#include "Refcountable_Guard_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,43 +27,33 @@
#include "ace/Thread_Mutex.h"
#include "ace/Atomic_Op.h"
-// Debugging macros
-#ifndef TAO_NOTIFY_REFCOUNT_DIAGNOSTICS
-#define TAO_NOTIFY_REFCOUNT_DIAGNOSTICS 0
-#endif
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Refcountable
*
* @brief Thread-safe refounting, calls the <release> method when refcount falls to 0.
*
- * The refcount is initialized to 0. When an instance of a
- * derived class becomes owned by a managed pointer
- * (Refcountable_Guard_T) the reference count becomes non-zero.
+ * The refcount is initialized to 0. When an instance of a derived class becomes owned
+ * by a managed pointer (Refcountable_Guard_T) the reference count becomes non-zero.
+ * A debug message is printed from the destructor if a refcounted is deleted with a
+ * non-zero refcount.
*
- * Instances declared on the stack should always have a
- * refcount of zero.
+ * Instances declared on the stack should always have a refcount of zero.
*
- * A method that creates or simply returns an instance of
- * Refcountable should not increment the reference count. It is
- * the responsibility of the client to increment the reference
- * count (take ownership or guard against deletion). The client
- * cannot know if the method will or will not incr the refcount
- * on its behalf.
+ * A method that creates or simply returns an instance of Refcountable should not
+ * increment the reference count. It is the responsibility of the client to increment
+ * the reference count (take ownership or guard against deletion). The client cannot
+ * know if the method will or will not incr the refcount in its behalf.
*
- * Use Refcountable_Guard_T or similar service to guarantee the
- * exception safe direct pairing of increments and decrements. Avoid
- * calling _incr_refcnt and _decr_refcnt.
+ * Use Refcountable_Guard_T or similar service to guarantee the exception safe direct
+ * pairing of increments and decrements. Avoid calling _incr_refcnt and _decr_refcnt.
*/
-
class TAO_Notify_Serv_Export TAO_Notify_Refcountable
{
public:
typedef TAO_Notify_Refcountable_Guard_T< TAO_Notify_Refcountable > Ptr;
+ typedef long Counter;
- /// Constructor
+ /// Constuctor
TAO_Notify_Refcountable (void);
/// Destructor
@@ -74,26 +65,22 @@ public:
CORBA::ULong _incr_refcnt (void);
CORBA::ULong _decr_refcnt (void);
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
- static void diagnostic_dump( const char* title = 0 );
+protected:
+ /// The mutex to serialize access to state variables.
+ TAO_SYNCH_MUTEX lock_;
+
+ /// Accessor for debugging.
+#ifdef _DEBUG
+ Counter refcount (void) const;
#endif
private:
/// The release method is called when the refcount reaches 0.
virtual void release (void) = 0;
- // Use a signed counter so that we can more easily detect
- // boundary conditions such as too many _decr_refcnt() calls.
- ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::Long> refcount_;
-
-#if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 )
- friend class TAO_Notify_Tracker;
- int ref_id_;
-#endif
+ ACE_Atomic_Op< TAO_SYNCH_MUTEX, Counter > refcount_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_REFCOUNTABLE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.cpp
index 9f037fef711..f1bc562fe65 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.cpp
@@ -3,10 +3,10 @@
#ifndef TAO_Notify_REFCOUNTABLE_GUARD_T_CPP
#define TAO_Notify_REFCOUNTABLE_GUARD_T_CPP
-#include "orbsvcs/Notify/Refcountable_Guard_T.h"
+#include "Refcountable_Guard_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Refcountable_Guard_T.inl"
+#include "Refcountable_Guard_T.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Notify, TAO_Notify_Refcountable_Guard_T, "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h
index 67e8bd8bdbc..555c302e40e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Refcountable_Guard_T.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_REFCOUNTABLE_GUARD_T_H
@@ -13,16 +14,12 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Refcountable_Guard_T
*
@@ -38,7 +35,7 @@ public:
explicit TAO_Notify_Refcountable_Guard_T (T* t = 0);
/// Copy constructor
- TAO_Notify_Refcountable_Guard_T (const TAO_Notify_Refcountable_Guard_T<T>& rhs);
+ explicit TAO_Notify_Refcountable_Guard_T (const TAO_Notify_Refcountable_Guard_T<T>& rhs);
/// Destructor
~TAO_Notify_Refcountable_Guard_T ();
@@ -70,14 +67,12 @@ private:
T* t_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Refcountable_Guard_T.inl"
+#include "Refcountable_Guard_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Refcountable_Guard_T.cpp"
+#include "Refcountable_Guard_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl
index 4ab55e0b75f..45a92e04262 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Refcountable_Guard_T.inl
@@ -1,11 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
#include "ace/Log_Msg.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE
TAO_Notify_Refcountable_Guard_T<T>::TAO_Notify_Refcountable_Guard_T (T *t)
: t_ (t)
@@ -87,5 +83,3 @@ TAO_Notify_Refcountable_Guard_T<T>::swap(
this->t_ = rhs.t_;
rhs.t_ = temp;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp
index eb101ef2105..16b99f089a3 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.cpp
@@ -1,16 +1,16 @@
// $Id$
-#include "orbsvcs/Notify/Routing_Slip.h"
-
-#include "orbsvcs/Notify/Delivery_Request.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/ProxyConsumer.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/Event_Persistence_Strategy.h"
-#include "orbsvcs/Notify/Routing_Slip_Persistence_Manager.h"
-#include "orbsvcs/Notify/Routing_Slip_Queue.h"
-#include "orbsvcs/Notify/Method_Request_Lookup.h"
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
+#include "Routing_Slip.h"
+
+#include "Delivery_Request.h"
+#include "Worker_Task.h"
+#include "ProxyConsumer.h"
+#include "ProxySupplier.h"
+#include "Event_Persistence_Strategy.h"
+#include "Routing_Slip_Persistence_Manager.h"
+#include "Routing_Slip_Queue.h"
+#include "Method_Request_Lookup.h"
+#include "Method_Request_Dispatch.h"
#include "tao/debug.h"
#include "tao/corba.h"
@@ -24,8 +24,6 @@
#define QUEUE_ALLOWED 1
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
///////////////////////
@@ -119,7 +117,7 @@ Routing_Slip::create (
{
TAO_InputCDR cdr_event (event_mb);
TAO_Notify_Event::Ptr event (TAO_Notify_Event::unmarshal (cdr_event));
- if (event.isSet())
+ if (event.get () != 0)
{
result = create (event ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -909,7 +907,6 @@ Routing_Slip::reconnect (ACE_ENV_SINGLE_ARG_DECL)
for (size_t nmethod = 0; nmethod < count; ++nmethod)
{
this->delivery_methods_[nmethod]->execute (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
this->delivery_methods_.clear ();
}
@@ -928,6 +925,6 @@ Routing_Slip::should_retry () const
return this->state_ != rssTRANSIENT;
}
-} // namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+} // namespace
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.h b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.h
index 5670dfc1d05..5b77343bec8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip.h
@@ -1,23 +1,24 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Routing_Slip.h
*
* $Id$
*
* @author Dale Wilson <wilson_d@ociweb.com>
+ *
+ *
*/
#ifndef TAO_NOTIFY_ROUTING_SLIP_H
#define TAO_NOTIFY_ROUTING_SLIP_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Delivery_Request.h"
-#include "orbsvcs/Notify/Event_Persistence_Factory.h"
+#include "notify_serv_export.h"
+#include "Event.h"
+#include "Delivery_Request.h"
+#include "Event_Persistence_Factory.h"
-#include "orbsvcs/Notify/Persistent_File_Allocator.h" // for Persistent_Callback
+#include "Persistent_File_Allocator.h" // for Persistent_Callback
#include <ace/Vector_T.h>
#include <ace/Malloc_Base.h> // necessary?
@@ -26,8 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations of classes/pointers/collections
// referenced from this header
class TAO_Notify_EventChannelFactory;
@@ -236,7 +235,5 @@ private:
} // namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NOTIFY_ROUTING_SLIP_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp
index 62915a67221..a19414c65b2 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.cpp
@@ -1,10 +1,8 @@
// $Id$
-#include "orbsvcs/Notify/Routing_Slip_Persistence_Manager.h"
-#include "orbsvcs/Notify/Standard_Event_Persistence.h"
-#include "orbsvcs/Notify/Persistent_File_Allocator.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Routing_Slip_Persistence_Manager.h"
+#include "Standard_Event_Persistence.h"
+#include "Persistent_File_Allocator.h"
namespace TAO_Notify
{
@@ -327,16 +325,16 @@ Routing_Slip_Persistence_Manager::Block_Header::put_header(
data[pos++] = static_cast<unsigned char> ((serial_number >> 8) & 0xff);
data[pos++] = static_cast<unsigned char> ((serial_number >> 0) & 0xff);
// Store next_overflow
- data[pos++] = static_cast<unsigned char> (next_overflow >> 24);
- data[pos++] = static_cast<unsigned char> ((next_overflow >> 16) & 0xff);
- data[pos++] = static_cast<unsigned char> ((next_overflow >> 8) & 0xff);
- data[pos++] = static_cast<unsigned char> (next_overflow & 0xff);
+ data[pos++] = next_overflow >> 24;
+ data[pos++] = (next_overflow >> 16) & 0xff;
+ data[pos++] = (next_overflow >> 8) & 0xff;
+ data[pos++] = next_overflow & 0xff;
// Store header_type
- data[pos++] = static_cast<unsigned char> ((header_type >> 8) & 0xff);
- data[pos++] = static_cast<unsigned char> (header_type & 0xff);
+ data[pos++] = (header_type >> 8) & 0xff;
+ data[pos++] = header_type & 0xff;
// Store data_size
- data[pos++] = static_cast<unsigned char> ((data_size >> 8) & 0xff);
- data[pos++] = static_cast<unsigned char> (data_size & 0xff);
+ data[pos++] = (data_size >> 8) & 0xff;
+ data[pos++] = data_size & 0xff;
return pos;
}
@@ -386,10 +384,10 @@ Routing_Slip_Persistence_Manager::Routing_Slip_Header::put_header(
unsigned char* data = psb.data();
// Store next_routing_slip_block
- data[pos++] = static_cast<unsigned char> (next_routing_slip_block >> 24);
- data[pos++] = static_cast<unsigned char> ((next_routing_slip_block >> 16) & 0xff);
- data[pos++] = static_cast<unsigned char> ((next_routing_slip_block >> 8) & 0xff);
- data[pos++] = static_cast<unsigned char> (next_routing_slip_block & 0xff);
+ data[pos++] = next_routing_slip_block >> 24;
+ data[pos++] = (next_routing_slip_block >> 16) & 0xff;
+ data[pos++] = (next_routing_slip_block >> 8) & 0xff;
+ data[pos++] = next_routing_slip_block & 0xff;
// Store serial_number
data[pos++] = static_cast<unsigned char> ((next_serial_number >> 56) & 0xff);
data[pos++] = static_cast<unsigned char> ((next_serial_number >> 48) & 0xff);
@@ -400,10 +398,10 @@ Routing_Slip_Persistence_Manager::Routing_Slip_Header::put_header(
data[pos++] = static_cast<unsigned char> ((next_serial_number >> 8) & 0xff);
data[pos++] = static_cast<unsigned char> ((next_serial_number >> 0) & 0xff);
// Store event_block
- data[pos++] = static_cast<unsigned char> (event_block >> 24);
- data[pos++] = static_cast<unsigned char> ((event_block >> 16) & 0xff);
- data[pos++] = static_cast<unsigned char> ((event_block >> 8) & 0xff);
- data[pos++] = static_cast<unsigned char> (event_block & 0xff);
+ data[pos++] = event_block >> 24;
+ data[pos++] = (event_block >> 16) & 0xff;
+ data[pos++] = (event_block >> 8) & 0xff;
+ data[pos++] = event_block & 0xff;
return pos;
}
@@ -579,8 +577,7 @@ Routing_Slip_Persistence_Manager::build_chain(
mblk = mblk->cont();
remainder = this->fill_block(*first_block, pos, mblk, 0);
}
- first_header.data_size =
- static_cast<TAO_Notify::Routing_Slip_Persistence_Manager::Block_Size> (data_size - remainder);
+ first_header.data_size = data_size - remainder;
first_header.next_overflow = 0;
Block_Header* prevhdr = &first_header;
@@ -597,8 +594,7 @@ Routing_Slip_Persistence_Manager::build_chain(
prevhdr->next_overflow = curblk->block_number();
prevhdr->put_header(*prevblk);
pos = hdr->put_header(*curblk);
- hdr->data_size =
- static_cast<TAO_Notify::Routing_Slip_Persistence_Manager::Block_Size> (remainder);
+ hdr->data_size = remainder;
size_t offset_into_msg = mblk->length() - remainder;
remainder = this->fill_block(*curblk, pos, mblk, offset_into_msg);
@@ -609,8 +605,7 @@ Routing_Slip_Persistence_Manager::build_chain(
remainder = this->fill_block(*curblk, pos, mblk, 0);
}
- hdr->data_size = hdr->data_size -
- static_cast<TAO_Notify::Routing_Slip_Persistence_Manager::Block_Size> (remainder);
+ hdr->data_size -= remainder;
if (prevblk != first_block)
{
// allocator obtains ownership, so write out and delete the header
@@ -800,5 +795,3 @@ Routing_Slip_Persistence_Manager::remove_from_dllist()
}
} /* namespace TAO_Notify */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.h b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.h
index 0704a315884..d289e46eb87 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Persistence_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,20 +17,17 @@
#ifndef ROUTING_SLIP_PERSISTENCE_MANAGER_H
#define ROUTING_SLIP_PERSISTENCE_MANAGER_H
#include /**/ "ace/pre.h"
-
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
+#include "notify_serv_export.h"
#include "ace/Message_Block.h"
#include "ace/Synch_T.h"
#include "ace/Containers_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
// Some forward declarations.
@@ -261,7 +258,5 @@ private:
} /* namespace TAO_Notify */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ROUTING_SLIP_PERSISTENCE_MANAGER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp
index 4447981d06f..609ca985cd3 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/Routing_Slip_Queue.h"
+#include "Routing_Slip_Queue.h"
#include "tao/debug.h"
#include "ace/Dynamic_Service.h"
@@ -10,9 +10,6 @@
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
Routing_Slip_Queue::Routing_Slip_Queue (size_t allowed)
@@ -108,5 +105,3 @@ namespace TAO_Notify
}
}
} // namespace
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h
index 4d28e093c0b..2a6a8dc3bb5 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Routing_Slip_Queue.h
@@ -1,19 +1,16 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
#ifndef TAO_NOTIFY_ROUTING_SLIP_QUEUE_H
#define TAO_NOTIFY_ROUTING_SLIP_QUEUE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/Routing_Slip.h"
+#include "Routing_Slip.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
/**
@@ -87,7 +84,5 @@ namespace TAO_Notify
};
} // namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NOTIFY_ROUTING_SLIP_QUEUE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.cpp
index 1be68b66c33..199c60aa032 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.cpp
@@ -1,3 +1,5 @@
+/* -*- C++ -*- */
+
//=============================================================================
/**
* @file Save_Persist_Worker_T.cpp
@@ -17,14 +19,13 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
template<class TOPOOBJ>
- Save_Persist_Worker<TOPOOBJ>::Save_Persist_Worker(Topology_Saver& saver,
- bool want_all_children)
- : saver_ (saver)
+ Save_Persist_Worker<TOPOOBJ>::Save_Persist_Worker(
+ Topology_Saver& saver,
+ bool want_all_children)
+ : saver_(saver)
, want_all_children_ (want_all_children)
{
}
@@ -42,6 +43,4 @@ namespace TAO_Notify
}
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* SAVE_PERSIST_WORKER_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.h b/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.h
index a9d425891f0..740b2128378 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Save_Persist_Worker_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -20,9 +20,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
/**
@@ -48,10 +45,8 @@ namespace TAO_Notify
};
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Save_Persist_Worker_T.cpp"
+#include "Save_Persist_Worker_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.cpp b/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.cpp
index a1a29b3eb35..98ef75a6bb6 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.cpp
@@ -3,13 +3,13 @@
#ifndef TAO_Notify_SEQ_WORKER_T_CPP
#define TAO_Notify_SEQ_WORKER_T_CPP
-#include "orbsvcs/Notify/Seq_Worker_T.h"
+#include "Seq_Worker_T.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Seq_Worker_T.inl"
+#include "Seq_Worker_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Notify, TAO_Notify_Seq_Worker_T, "$Id$")
template <class T>
TAO_Notify_Seq_Worker_T<T>::TAO_Notify_Seq_Worker_T (void)
@@ -33,6 +33,4 @@ TAO_Notify_Seq_Worker_T<TYPE>::create (CONTAINER &container ACE_ENV_ARG_DECL)
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_Notify_SEQ_WORKER_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.h b/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.h
index 5e89210356e..8c0f1949151 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.h
@@ -1,18 +1,19 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Seq_Worker_T.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_SEQ_WORKER_T_H
#define TAO_Notify_SEQ_WORKER_T_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -20,9 +21,7 @@
#include "orbsvcs/ESF/ESF_Proxy_Collection.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-#include "orbsvcs/Notify/Container_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Container_T.h"
/**
* @class TAO_Notify_Seq_Worker_T
@@ -31,8 +30,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
*
*/
template <class TYPE>
-class TAO_Notify_Serv_Export TAO_Notify_Seq_Worker_T
- : public TAO_ESF_Worker<TYPE>
+class TAO_Notify_Serv_Export TAO_Notify_Seq_Worker_T : public TAO_ESF_Worker<TYPE>
{
typedef TAO_Notify_Container_T<TYPE> CONTAINER;
typedef TAO_ESF_Proxy_Collection<TYPE> COLLECTION;
@@ -54,14 +52,12 @@ protected:
SEQ_VAR seq_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Seq_Worker_T.inl"
+#include "Seq_Worker_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Notify/Seq_Worker_T.cpp"
+#include "Seq_Worker_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.inl b/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.inl
index 43dc3487646..08a858c55db 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Seq_Worker_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class TYPE> ACE_INLINE void
TAO_Notify_Seq_Worker_T<TYPE>::work (TYPE* type ACE_ENV_ARG_DECL_NOT_USED)
{
@@ -11,5 +7,3 @@ TAO_Notify_Seq_Worker_T<TYPE>::work (TYPE* type ACE_ENV_ARG_DECL_NOT_USED)
this->seq_[this->seq_->length () - 1] = type->id ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp
index a7c5adb49c3..15bd1db1eca 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h"
+#include "SequenceProxyPushConsumer.h"
ACE_RCSID (Notify, TAO_Notify_SequenceProxyPushConsumer, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/Sequence/SequencePushSupplier.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Structured/StructuredEvent.h"
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "SequencePushSupplier.h"
+#include "../AdminProperties.h"
+#include "../Structured/StructuredEvent.h"
+#include "../Properties.h"
TAO_Notify_SequenceProxyPushConsumer::TAO_Notify_SequenceProxyPushConsumer (void)
:pacing_interval_ (CosNotification::PacingInterval)
@@ -24,6 +22,7 @@ TAO_Notify_SequenceProxyPushConsumer::~TAO_Notify_SequenceProxyPushConsumer ()
void
TAO_Notify_SequenceProxyPushConsumer::release (void)
{
+
delete this;
//@@ inform factory
}
@@ -107,20 +106,17 @@ TAO_Notify_SequenceProxyPushConsumer::load_attrs (const TAO_Notify::NVPList& att
{
SuperClass::load_attrs(attrs);
ACE_CString ior;
- if (attrs.load("PeerIOR", ior))
+ if (attrs.load("PeerIOR", ior) && ior.length() > 0)
{
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CosNotifyComm::SequencePushSupplier_var ps = CosNotifyComm::SequencePushSupplier::_nil();
- if ( ior.length() > 0 )
- {
- CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ps = CosNotifyComm::SequencePushSupplier::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CosNotifyComm::SequencePushSupplier_var ps =
+ CosNotifyComm::SequencePushSupplier::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
// minor hack: suppress generating subscription updates during reload.
bool save_updates = this->updates_off_;
this->updates_off_ = true;
@@ -136,4 +132,3 @@ TAO_Notify_SequenceProxyPushConsumer::load_attrs (const TAO_Notify::NVPList& att
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h
index 4db216993cb..5e65ea9f03b 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushConsumer.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,15 +22,13 @@
#include "orbsvcs/CosNotifyChannelAdminS.h"
-#include "orbsvcs/Notify/ProxyConsumer_T.h"
+#include "../ProxyConsumer_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_SequenceProxyPushConsumer
*
@@ -91,8 +89,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
index be2f9f74299..c87728df2ab 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h"
+#include "SequenceProxyPushSupplier.h"
ACE_RCSID (Notify, TAO_Notify_SequenceProxyPushSupplier, "$Id$")
#include "tao/debug.h"
-#include "orbsvcs/Notify/Sequence/SequencePushConsumer.h"
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "SequencePushConsumer.h"
+#include "../Properties.h"
TAO_Notify_SequenceProxyPushSupplier::TAO_Notify_SequenceProxyPushSupplier (void)
{
@@ -21,6 +19,7 @@ TAO_Notify_SequenceProxyPushSupplier::~TAO_Notify_SequenceProxyPushSupplier ()
void
TAO_Notify_SequenceProxyPushSupplier::release (void)
{
+
delete this;
//@@ inform factory
}
@@ -80,20 +79,17 @@ TAO_Notify_SequenceProxyPushSupplier::load_attrs (const TAO_Notify::NVPList& att
{
SuperClass::load_attrs(attrs);
ACE_CString ior;
- if (attrs.load("PeerIOR", ior))
+ if (attrs.load("PeerIOR", ior) && ior.length() > 0)
{
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CosNotifyComm::SequencePushConsumer_var pc = CosNotifyComm::SequencePushConsumer::_nil();
- if (ior.length() > 0)
- {
- CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- pc = CosNotifyComm::SequencePushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CosNotifyComm::SequencePushConsumer_var pc =
+ CosNotifyComm::SequencePushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
this->connect_sequence_push_consumer(pc.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -104,5 +100,3 @@ TAO_Notify_SequenceProxyPushSupplier::load_attrs (const TAO_Notify::NVPList& att
ACE_ENDTRY;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h
index 6603d5613e9..2d727b94e33 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequenceProxyPushSupplier.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,15 +22,13 @@
#include "orbsvcs/CosNotifyChannelAdminS.h"
-#include "orbsvcs/Notify/ProxySupplier_T.h"
+#include "../ProxySupplier_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
template class TAO_Notify_Serv_Export
TAO_Notify_ProxySupplier_T<POA_CosNotifyChannelAdmin::SequenceProxyPushSupplier>;
@@ -88,8 +86,6 @@ public:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp
index 19f972cd0cc..689272a738d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.cpp
@@ -1,27 +1,25 @@
// $Id$
-#include "orbsvcs/Notify/Sequence/SequencePushConsumer.h"
+#include "SequencePushConsumer.h"
ACE_RCSID (Notify, TAO_Notify_SequencePushConsumer, "$Id$")
#include "ace/Reactor.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/QoSProperties.h"
-#include "orbsvcs/Notify/ProxySupplier.h"
-#include "orbsvcs/Notify/Worker_Task.h"
-#include "orbsvcs/Notify/Consumer.h"
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
-#include "orbsvcs/Notify/Method_Request_Event.h"
-#include "orbsvcs/Notify/Timer.h"
-#include "orbsvcs/Notify/Proxy.h"
-#include "orbsvcs/Notify/Properties.h"
+#include "../QoSProperties.h"
+#include "../ProxySupplier.h"
+#include "../Worker_Task.h"
+#include "../Consumer.h"
+#include "../Method_Request_Dispatch.h"
+#include "../Method_Request_Event.h"
+#include "../Timer.h"
+#include "../Proxy.h"
+#include "../Properties.h"
//#define DEBUG_LEVEL 10
#ifndef DEBUG_LEVEL
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_SequencePushConsumer::TAO_Notify_SequencePushConsumer (TAO_Notify_ProxySupplier* proxy)
: TAO_Notify_Consumer (proxy)
{
@@ -32,20 +30,17 @@ TAO_Notify_SequencePushConsumer::~TAO_Notify_SequencePushConsumer ()
}
void
-TAO_Notify_SequencePushConsumer::init (CosNotifyComm::SequencePushConsumer_ptr push_consumer ACE_ENV_ARG_DECL)
+TAO_Notify_SequencePushConsumer::init (CosNotifyComm::SequencePushConsumer_ptr push_consumer ACE_ENV_ARG_DECL_NOT_USED)
{
- // Initialize only once
- ACE_ASSERT( CORBA::is_nil (this->push_consumer_.in()) );
-
- if (CORBA::is_nil (push_consumer))
- {
- ACE_THROW (CORBA::BAD_PARAM());
- }
+ ACE_ASSERT (this->push_consumer_.in() == 0);
+ ACE_ASSERT (push_consumer != 0);
this->push_consumer_ = CosNotifyComm::SequencePushConsumer::_duplicate (push_consumer);
this->publish_ = CosNotifyComm::NotifyPublish::_duplicate (push_consumer);
+
}
+
void
TAO_Notify_SequencePushConsumer::release (void)
{
@@ -57,19 +52,16 @@ bool
TAO_Notify_SequencePushConsumer::dispatch_from_queue (Request_Queue& requests, ACE_Guard <TAO_SYNCH_MUTEX> & ace_mon)
{
bool result = true;
- if (DEBUG_LEVEL > 0)
- {
- ACE_DEBUG ( (LM_DEBUG,
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
ACE_TEXT ("(%P|%t) SequencePushConsumer dispatch queued requests. queue size:%u\n"),
requests.size ()));
- }
long queue_size = requests.size ();
CORBA::Long max_batch_size = queue_size;
if (this->max_batch_size_.is_valid () )
- {
- max_batch_size = this->max_batch_size_.value ();
- }
+ {
+ max_batch_size = this->max_batch_size_.value ();
+ }
CORBA::Long batch_size = queue_size;
if (batch_size > max_batch_size)
{
@@ -86,12 +78,9 @@ TAO_Notify_SequencePushConsumer::dispatch_from_queue (Request_Queue& requests, A
TAO_Notify_Method_Request_Event_Queueable * request = 0;
while (pos < batch_size && requests.dequeue_head (request) == 0)
{
- if (DEBUG_LEVEL > 0)
- {
- ACE_DEBUG ( (LM_DEBUG,
- ACE_TEXT ("(%P|%t) Sequence Dispatch Method_Request_Dispatch @%@\n"),
- request));
- }
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Sequence Dispatch Method_Request_Dispatch @%@\n"),
+ request));
const TAO_Notify_Event * ev = request->event ();
ev->convert (batch [pos]);
@@ -109,7 +98,7 @@ TAO_Notify_SequencePushConsumer::dispatch_from_queue (Request_Queue& requests, A
ace_mon.acquire ();
switch (status)
{
- case DISPATCH_SUCCESS:
+ case DISPATCH_SUCCESS:
{
TAO_Notify_Method_Request_Event_Queueable * request = 0;
while (completed.dequeue_head (request) == 0)
@@ -120,92 +109,43 @@ TAO_Notify_SequencePushConsumer::dispatch_from_queue (Request_Queue& requests, A
result = true;
break;
}
- case DISPATCH_FAIL:
+ // TODO: we should distinguish between these (someday)
+ case DISPATCH_FAIL:
+ case DISPATCH_DISCARD:
{
- TAO_Notify_Method_Request_Event_Queueable * request = 0;
+ TAO_Notify_Method_Request_Event_Queueable * request = 0;
while (completed.dequeue_head (request) == 0)
{
if (request->should_retry ())
{
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"),
- static_cast <int> (this->proxy ()->id ()),
- request->sequence ()));
- requests.enqueue_head (request);
- result = false;
- }
- else
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Discarding %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()));
- request->complete ();
- request->release ();
- }
- }
- while (requests.dequeue_head (request) == 0)
- {
- if (request->should_retry ())
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()));
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) SequencePushConsumer: Failed to dispatch :%d. Will retry\n"),
+ request->sequence ()
+ ));
requests.enqueue_head (request);
result = false;
}
else
{
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Discarding %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()));
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) SequencePushConsumer: Failed to dispatch :%d. Discarding event.\n"),
+ request->sequence ()
+ ));
request->complete ();
request->release ();
}
}
- ace_mon.release();
- ACE_DECLARE_NEW_ENV;
- ACE_TRY
- {
- this->proxy_supplier ()->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // todo is there something meaningful we can do here?
- ;
- }
- ACE_ENDTRY;
- ace_mon.acquire();
break;
}
- case DISPATCH_RETRY:
- case DISPATCH_DISCARD:
+ case DISPATCH_RETRY:
{
- TAO_Notify_Method_Request_Event_Queueable * request = 0;
- while (completed.dequeue_head (request) == 0)
- {
- if (request->should_retry ())
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()));
- requests.enqueue_head (request);
- result = false;
- }
- else
- {
- if (DEBUG_LEVEL > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) Consumer %d: Discarding %d\n"),
- static_cast<int> (this->proxy ()->id ()),
- request->sequence ()));
- request->complete ();
- request->release ();
- }
- }
+ if (DEBUG_LEVEL > 0) ACE_DEBUG ( (LM_DEBUG,
+ ACE_TEXT ("(%P|%t) Consumer %d: Will retry %d\n"),
+ static_cast<int> (this->proxy ()->id ()),
+ request->sequence ()
+ ));
+ requests.enqueue_head (request); // put the failed event back where it was
+ result = false;
break;
}
default:
@@ -220,8 +160,8 @@ TAO_Notify_SequencePushConsumer::dispatch_from_queue (Request_Queue& requests, A
bool
TAO_Notify_SequencePushConsumer::enqueue_if_necessary (
- TAO_Notify_Method_Request_Event * request
- ACE_ENV_ARG_DECL)
+ TAO_Notify_Method_Request_Event * request
+ ACE_ENV_ARG_DECL)
{
if (DEBUG_LEVEL > 0)
ACE_DEBUG ( (LM_DEBUG, "SequencePushConsumer enqueing event.\n"));
@@ -233,7 +173,6 @@ TAO_Notify_SequencePushConsumer::enqueue_if_necessary (
if (this->pending_events().size() >= mbs || this->pacing_.is_valid () == 0)
{
this->dispatch_pending (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
}
else
{
@@ -263,21 +202,22 @@ TAO_Notify_SequencePushConsumer::push (const CosNotification::EventBatch& event_
ACE_CHECK;
}
-ACE_CString
-TAO_Notify_SequencePushConsumer::get_ior (void) const
+bool
+TAO_Notify_SequencePushConsumer::get_ior (ACE_CString & iorstr) const
{
- ACE_CString result;
+ bool result = false;
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance ()->orb ();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::String_var ior = orb->object_to_string (this->push_consumer_.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- result = static_cast<const char*> (ior.in ());
+ iorstr = static_cast<const char *> (ior.in ());
+ result = true;
}
ACE_CATCHANY
{
- result.fast_clear();
+ ACE_ASSERT (0);
}
ACE_ENDTRY;
return result;
@@ -293,5 +233,3 @@ TAO_Notify_SequencePushConsumer::reconnect_from_consumer (TAO_Notify_Consumer* o
ACE_CHECK;
this->schedule_timer(false);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h
index ac5661e674f..09cfbf71969 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushConsumer.h
@@ -13,22 +13,20 @@
#define TAO_Notify_SEQUENCEPUSHCONSUMER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Event_Handler.h"
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/Property.h"
-#include "orbsvcs/Notify/Property_T.h"
-#include "orbsvcs/Notify/Consumer.h"
-#include "orbsvcs/Notify/AdminProperties.h"
+#include "../Event.h"
+#include "../Property.h"
+#include "../Property_T.h"
+#include "../Consumer.h"
+#include "../AdminProperties.h"
#include "ace/Null_Condition.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_ProxySupplier;
class TAO_Notify_QoSProperties;
class TAO_Notify_Timer;
@@ -71,7 +69,7 @@ public:
virtual void push (const CosNotification::EventBatch& event ACE_ENV_ARG_DECL);
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const;
+ virtual bool get_ior (ACE_CString & iorstr) const;
/// on reconnect we need to move events from the old consumer
/// to the new one
@@ -88,7 +86,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_SEQUENCEPUSHCONSUMER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp
index df010388763..adaaf0b24af 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Notify/Sequence/SequencePushSupplier.h"
+#include "SequencePushSupplier.h"
ACE_RCSID (Notify, TAO_Notify_SequencePushSupplier, "$Id$")
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Properties.h"
TAO_Notify_SequencePushSupplier::TAO_Notify_SequencePushSupplier (TAO_Notify_ProxyConsumer* proxy)
:TAO_Notify_Supplier (proxy)
@@ -20,9 +18,10 @@ TAO_Notify_SequencePushSupplier::~TAO_Notify_SequencePushSupplier ()
void
TAO_Notify_SequencePushSupplier::init (CosNotifyComm::SequencePushSupplier_ptr push_supplier ACE_ENV_ARG_DECL_NOT_USED)
{
- // TODO: verify single init call
- // push_supplier is optional
+ ACE_ASSERT (push_supplier != 0 && this->push_supplier_.in() == 0);
+
this->push_supplier_ = CosNotifyComm::SequencePushSupplier::_duplicate (push_supplier);
+
this->subscribe_ = CosNotifyComm::NotifySubscribe::_duplicate (push_supplier);
}
@@ -32,25 +31,23 @@ TAO_Notify_SequencePushSupplier::release (void)
delete this;
//@@ inform factory
}
-
-ACE_CString
-TAO_Notify_SequencePushSupplier::get_ior (void) const
+bool
+TAO_Notify_SequencePushSupplier::get_ior (ACE_CString & iorstr) const
{
- ACE_CString result;
+ bool result = false;
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- result = static_cast<const char*> (ior.in ());
+ iorstr = static_cast<const char *> (ior.in ());
+ result = true;
}
ACE_CATCHANY
{
- result.fast_clear();
+ ACE_ASSERT(0);
}
ACE_ENDTRY;
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h
index 2b2af2efc08..24d778e400f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Sequence/SequencePushSupplier.h
@@ -13,16 +13,14 @@
#define TAO_Notify_SEQUENCEPUSHSUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/Notify/Supplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Supplier.h"
class TAO_Notify_ProxyConsumer;
@@ -48,14 +46,12 @@ public:
virtual void release (void);
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const;
+ virtual bool get_ior (ACE_CString & iorstr) const;
protected:
/// The Supplier
CosNotifyComm::SequencePushSupplier_var push_supplier_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_SEQUENCEPUSHSUPPLIER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Service.cpp b/TAO/orbsvcs/orbsvcs/Notify/Service.cpp
index f4cda660134..c26a1cd3897 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Service.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Service.cpp
@@ -1,15 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Service.h"
+#include "Service.h"
ACE_RCSID (Notify,
TAO_Notify_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Service::~TAO_Notify_Service ()
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Service.h b/TAO/orbsvcs/orbsvcs/Notify/Service.h
index 6fdfd47f2ab..7d60ea4bac7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Service.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Service.h
@@ -1,31 +1,28 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Service.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_SERVICE_H
#define TAO_Notify_SERVICE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
class POA;
@@ -70,8 +67,6 @@ public:
) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_NOTIFY_DEF_EMO_FACTORY_NAME "Notify_Default_Event_Manager_Objects_Factory"
#define TAO_NOTIFICATION_SERVICE_NAME "TAO_Notify_Service"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp b/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp
index 65389ef7c35..76674cef2b8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "orbsvcs/Notify/Standard_Event_Persistence.h"
-#include "orbsvcs/Notify/Persistent_File_Allocator.h"
+#include "Standard_Event_Persistence.h"
+#include "Persistent_File_Allocator.h"
#include "tao/debug.h"
#include "ace/Dynamic_Service.h"
#include "ace/OS_NS_strings.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -225,10 +223,5 @@ Standard_Event_Persistence_Factory::root()
return this->root_;
}
-} // End TAO_Notify_Namespace
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (TAO_Notify_Serv,
- TAO_Notify_Standard_Event_Persistence,
- TAO_Notify::Standard_Event_Persistence)
+ACE_FACTORY_DEFINE (TAO_Notify_Serv, Standard_Event_Persistence)
+}
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h b/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h
index 995577d761a..240ae9533be 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Standard_Event_Persistence.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,15 +21,12 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Event_Persistence_Strategy.h"
-#include "orbsvcs/Notify/Event_Persistence_Factory.h"
-#include "orbsvcs/Notify/Persistent_File_Allocator.h"
-#include "orbsvcs/Notify/Routing_Slip_Persistence_Manager.h"
+#include "Event_Persistence_Strategy.h"
+#include "Event_Persistence_Factory.h"
+#include "Persistent_File_Allocator.h"
+#include "Routing_Slip_Persistence_Manager.h"
#include <ace/SString.h>
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
static const ACE_UINT32 ROUTING_SLIP_ROOT_BLOCK_NUMBER = 0;
@@ -124,11 +121,9 @@ namespace TAO_Notify
ACE_UINT32 block_size_; // set via -block_size
Standard_Event_Persistence_Factory * factory_;
};
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_DECLARE (TAO_Notify_Serv, TAO_Notify_Standard_Event_Persistence)
+ ACE_FACTORY_DECLARE (TAO_Notify_Serv, Standard_Event_Persistence)
+}
#include /**/ "ace/post.h"
#endif /* STANDARD_EVENT_PERSISTENCE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp
index c4df69993b1..96fb800047e 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h"
+#include "RT_StructuredProxyPushSupplier.h"
#include "tao/debug.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/Method_Request_Dispatch.h"
+#include "../Method_Request_Dispatch.h"
ACE_RCSID (Notify, TAO_Notify_RT_StructuredProxyPushSupplier, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_RT_StructuredProxyPushSupplier::TAO_Notify_RT_StructuredProxyPushSupplier (void)
{
}
@@ -78,4 +76,3 @@ TAO_Notify_RT_StructuredProxyPushSupplier::push_no_filtering (const TAO_Notify_E
ACE_ENDTRY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h
index 995a4ceeb31..9a8c923f626 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/RT_StructuredProxyPushSupplier.h
@@ -13,15 +13,13 @@
#define TAO_Notify_RT_STRUCTUREDPROXYPUSHSUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/rt_notify_export.h"
+#include "../rt_notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "StructuredProxyPushSupplier.h"
/**
* @class TAO_Notify_RT_StructuredProxyPushSupplier
@@ -57,7 +55,5 @@ private:
Event_Forwarder::StructuredProxyPushSupplier_var event_forwarder_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_RT_STRUCTUREDPROXYPUSHSUPPLIER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp
index 86d312d8f4e..21d273c3fe7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "orbsvcs/Notify/Structured/StructuredEvent.h"
+#include "StructuredEvent.h"
ACE_RCSID(RT_Notify, TAO_Notify_StructuredEvent, "$Id$")
-#include "orbsvcs/Notify/PropertySeq.h"
-#include "orbsvcs/Notify/Consumer.h"
+#include "../PropertySeq.h"
+#include "../Consumer.h"
#include "tao/debug.h"
#include "tao/corba.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_StructuredEvent_No_Copy::TAO_Notify_StructuredEvent_No_Copy (const CosNotification::StructuredEvent &notification)
: notification_ (&notification), type_ (notification.header.fixed_header.event_type)
{
@@ -138,5 +136,3 @@ TAO_Notify_StructuredEvent::TAO_Notify_StructuredEvent (const CosNotification::S
TAO_Notify_StructuredEvent::~TAO_Notify_StructuredEvent ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h
index 5ed850afd93..516f40d35c4 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredEvent.h
@@ -12,18 +12,16 @@
#define TAO_Notify_STRUCTUREDEVENT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Event.h"
-#include "orbsvcs/Notify/EventType.h"
+#include "../Event.h"
+#include "../EventType.h"
#include "orbsvcs/CosNotificationC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_StructuredEvent;
/**
@@ -83,7 +81,7 @@ protected:
const TAO_Notify_EventType type_;
};
-/*****************************************************************************/
+/*****************************************************************************************************/
/**
* @class TAO_Notify_StructuredEvent
@@ -106,7 +104,5 @@ protected:
CosNotification::StructuredEvent notification_copy;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_STRUCTUREDEVENT_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp
index d79e907a741..2a4a1c5ee0d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.cpp
@@ -1,18 +1,16 @@
// $Id$
-#include "orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h"
+#include "StructuredProxyPushConsumer.h"
ACE_RCSID(RT_Notify, TAO_Notify_StructuredProxyPushConsumer, "$Id$")
#include "ace/Bound_Ptr.h"
#include "ace/Auto_Ptr.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/Structured/StructuredPushSupplier.h"
-#include "orbsvcs/Notify/Structured/StructuredEvent.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "StructuredPushSupplier.h"
+#include "StructuredEvent.h"
+#include "../AdminProperties.h"
+#include "../Properties.h"
TAO_Notify_StructuredProxyPushConsumer::TAO_Notify_StructuredProxyPushConsumer (void)
{
@@ -89,8 +87,8 @@ TAO_Notify_StructuredProxyPushConsumer::disconnect_structured_push_consumer (ACE
this->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
-}
+}
const char *
TAO_Notify_StructuredProxyPushConsumer::get_proxy_type_name (void) const
{
@@ -102,21 +100,17 @@ TAO_Notify_StructuredProxyPushConsumer::load_attrs (const TAO_Notify::NVPList& a
{
SuperClass::load_attrs(attrs);
ACE_CString ior;
- if (attrs.load("PeerIOR", ior))
+ if (attrs.load("PeerIOR", ior) && ior.length() > 0)
{
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CosNotifyComm::StructuredPushSupplier_var ps =
+ CosNotifyComm::StructuredPushSupplier::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CosNotifyComm::StructuredPushSupplier_var ps = CosNotifyComm::StructuredPushSupplier::_nil();
- if ( ior.length() > 0 )
- {
- CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ps = CosNotifyComm::StructuredPushSupplier::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
// minor hack: suppress generating subscription updates during reload.
bool save_updates = this->updates_off_;
this->updates_off_ = true;
@@ -131,5 +125,3 @@ TAO_Notify_StructuredProxyPushConsumer::load_attrs (const TAO_Notify::NVPList& a
ACE_ENDTRY;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h
index 82ec83de086..d6dd54df0ce 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushConsumer.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,15 +22,13 @@
#include "orbsvcs/CosNotifyChannelAdminS.h"
-#include "orbsvcs/Notify/ProxyConsumer_T.h"
+#include "../ProxyConsumer_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_StructuredProxyPushConsumer
*
@@ -94,8 +92,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp
index 10e753f3437..b2febd45d52 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.cpp
@@ -1,18 +1,16 @@
// $Id$
-#include "orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h"
+#include "StructuredProxyPushSupplier.h"
#include "tao/PortableServer/Servant_Base.h"
#include "tao/debug.h"
-#include "orbsvcs/Notify/Structured/StructuredPushConsumer.h"
-#include "orbsvcs/Notify/Properties.h"
+#include "StructuredPushConsumer.h"
+#include "../Properties.h"
ACE_RCSID(RT_Notify, TAO_Notify_StructuredProxyPushSupplier, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_StructuredProxyPushSupplier::TAO_Notify_StructuredProxyPushSupplier (void)
{
}
@@ -24,6 +22,7 @@ TAO_Notify_StructuredProxyPushSupplier::~TAO_Notify_StructuredProxyPushSupplier
void
TAO_Notify_StructuredProxyPushSupplier::release (void)
{
+
delete this;
//@@ inform factory
}
@@ -83,20 +82,17 @@ TAO_Notify_StructuredProxyPushSupplier::load_attrs (const TAO_Notify::NVPList& a
{
SuperClass::load_attrs(attrs);
ACE_CString ior;
- if (attrs.load("PeerIOR", ior))
+ if (attrs.load("PeerIOR", ior) && ior.length() > 0)
{
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CosNotifyComm::StructuredPushConsumer_var pc = CosNotifyComm::StructuredPushConsumer::_nil();
- if (ior.length() > 0)
- {
- CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- pc = CosNotifyComm::StructuredPushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ CORBA::Object_var obj = orb->string_to_object(ior.c_str() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ CosNotifyComm::StructuredPushConsumer_var pc =
+ CosNotifyComm::StructuredPushConsumer::_unchecked_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
this->connect_structured_push_consumer(pc.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -107,5 +103,3 @@ TAO_Notify_StructuredProxyPushSupplier::load_attrs (const TAO_Notify::NVPList& a
ACE_ENDTRY;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h
index b3a3526dbe9..6e7cef6146f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,15 +23,13 @@
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "orbsvcs/Event_ForwarderS.h"
-#include "orbsvcs/Notify/ProxySupplier_T.h"
+#include "../ProxySupplier_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
template class TAO_Notify_Serv_Export
TAO_Notify_ProxySupplier_T<POA_Event_Forwarder::StructuredProxyPushSupplier>;
@@ -92,8 +90,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp
index feb1b56c29c..69c05d5be02 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/Notify/Structured/StructuredPushConsumer.h"
+#include "StructuredPushConsumer.h"
ACE_RCSID(RT_Notify, TAO_Notify_StructuredPushConsumer, "$Id$")
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Event.h"
+#include "../Properties.h"
+#include "../Event.h"
#include "ace/Bound_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_StructuredPushConsumer::TAO_Notify_StructuredPushConsumer (TAO_Notify_ProxySupplier* proxy)
:TAO_Notify_Consumer (proxy)
{
@@ -19,15 +17,9 @@ TAO_Notify_StructuredPushConsumer::~TAO_Notify_StructuredPushConsumer ()
}
void
-TAO_Notify_StructuredPushConsumer::init (CosNotifyComm::StructuredPushConsumer_ptr push_consumer ACE_ENV_ARG_DECL)
+TAO_Notify_StructuredPushConsumer::init (CosNotifyComm::StructuredPushConsumer_ptr push_consumer ACE_ENV_ARG_DECL_NOT_USED)
{
- // Initialize only once
- ACE_ASSERT( CORBA::is_nil (this->push_consumer_.in()) );
-
- if (CORBA::is_nil (push_consumer))
- {
- ACE_THROW (CORBA::BAD_PARAM());
- }
+ ACE_ASSERT (push_consumer != 0 && this->push_consumer_.in() == 0);
this->push_consumer_ = CosNotifyComm::StructuredPushConsumer::_duplicate (push_consumer);
@@ -78,24 +70,23 @@ TAO_Notify_StructuredPushConsumer::reconnect_from_consumer (TAO_Notify_Consumer*
this->schedule_timer(false);
}
-ACE_CString
-TAO_Notify_StructuredPushConsumer::get_ior (void) const
+bool
+TAO_Notify_StructuredPushConsumer::get_ior (ACE_CString & iorstr) const
{
- ACE_CString result;
+ bool result = false;
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::String_var ior = orb->object_to_string(this->push_consumer_.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- result = static_cast<const char*> (ior.in ());
+ iorstr = static_cast<const char *> (ior.in ());
+ result = true;
}
ACE_CATCHANY
{
- result.fast_clear();
+ ACE_ASSERT(0);
}
ACE_ENDTRY;
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h
index 9b9d603d383..b467d85c403 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushConsumer.h
@@ -13,16 +13,14 @@
#define TAO_Notify_STRUCTUREDPUSHCONSUMER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/Notify/Consumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Consumer.h"
class TAO_Notify_ProxySupplier;
@@ -57,7 +55,7 @@ public:
virtual void push (const CosNotification::EventBatch& event ACE_ENV_ARG_DECL);
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const;
+ virtual bool get_ior (ACE_CString & iorstr) const;
/// on reconnect we need to move events from the old consumer
/// to the new one
@@ -75,7 +73,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_STRUCTUREDPUSHCONSUMER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp
index 69e28687a34..e646558475c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/Structured/StructuredPushSupplier.h"
+#include "StructuredPushSupplier.h"
ACE_RCSID(RT_Notify, TAO_Notify_StructuredPushSupplier, "$Id$")
-#include "orbsvcs/Notify/Properties.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Properties.h"
TAO_Notify_StructuredPushSupplier::TAO_Notify_StructuredPushSupplier (TAO_Notify_ProxyConsumer* proxy)
:TAO_Notify_Supplier (proxy)
@@ -19,9 +17,10 @@ TAO_Notify_StructuredPushSupplier::~TAO_Notify_StructuredPushSupplier ()
void
TAO_Notify_StructuredPushSupplier::init (CosNotifyComm::StructuredPushSupplier_ptr push_supplier ACE_ENV_ARG_DECL_NOT_USED)
{
- // TODO: verify single init call
- // push_supplier is optional
+ ACE_ASSERT (push_supplier != 0 && this->push_supplier_.in() == 0);
+
this->push_supplier_ = CosNotifyComm::StructuredPushSupplier::_duplicate (push_supplier);
+
this->subscribe_ = CosNotifyComm::NotifySubscribe::_duplicate (push_supplier);
}
@@ -32,24 +31,23 @@ TAO_Notify_StructuredPushSupplier::release (void)
//@@ inform factory
}
-ACE_CString
-TAO_Notify_StructuredPushSupplier::get_ior (void) const
+bool
+TAO_Notify_StructuredPushSupplier::get_ior (ACE_CString & iorstr) const
{
- ACE_CString result;
+ bool result = false;
CORBA::ORB_var orb = TAO_Notify_PROPERTIES::instance()->orb();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::String_var ior = orb->object_to_string(this->push_supplier_.in() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- result = static_cast<const char*> (ior.in ());
+ iorstr = static_cast<const char *> (ior.in ());
+ result = true;
}
ACE_CATCHANY
{
- result.fast_clear();
+ ACE_ASSERT(0);
}
ACE_ENDTRY;
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h
index b123bdb35d7..ccbe0255735 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredPushSupplier.h
@@ -13,16 +13,14 @@
#define TAO_Notify_STRUCTUREDPUSHSUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "../notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/Notify/Supplier.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "../Supplier.h"
class TAO_Notify_ProxyConsumer;
@@ -44,8 +42,9 @@ public:
/// Init
void init (CosNotifyComm::StructuredPushSupplier_ptr push_supplier ACE_ENV_ARG_DECL);
+
/// Retrieve the ior of this peer
- virtual ACE_CString get_ior (void) const;
+ virtual bool get_ior (ACE_CString & iorstr) const;
protected:
/// The Supplier
@@ -56,7 +55,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_STRUCTUREDPUSHSUPPLIER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp b/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp
index 70e0e846b04..4856d2a62b6 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.cpp
@@ -1,18 +1,13 @@
// $Id$
-#include "orbsvcs/Notify/Subscription_Change_Worker.h"
+#include "Subscription_Change_Worker.h"
-#include "orbsvcs/Notify/Proxy.h"
+#include "Proxy.h"
ACE_RCSID(Notify, TAO_Subscription_Change_Worker, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Notify_Subscription_Change_Worker::TAO_Notify_Subscription_Change_Worker (
- const CosNotification::EventTypeSeq & added,
- const CosNotification::EventTypeSeq & removed)
- : added_ (added), removed_ (removed)
+TAO_Notify_Subscription_Change_Worker::TAO_Notify_Subscription_Change_Worker (const CosNotification::EventTypeSeq & added, const CosNotification::EventTypeSeq & removed)
+:added_ (added), removed_ (removed)
{
}
@@ -25,5 +20,3 @@ TAO_Notify_Subscription_Change_Worker::work (TAO_Notify_Proxy* proxy ACE_ENV_ARG
{
proxy->admin_types_changed (this->added_, this->removed_ ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h b/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h
index dc17f2a64b6..873ad8cd3eb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Subscription_Change_Worker.h
@@ -1,18 +1,19 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Subscription_Change_Worker.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_SUBSCRIPTION_CHANGE_WORKER_H
#define TAO_SUBSCRIPTION_CHANGE_WORKER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,8 +22,6 @@
#include "orbsvcs/CosNotificationC.h"
#include "orbsvcs/ESF/ESF_Worker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Proxy;
/**
@@ -48,7 +47,5 @@ protected:
const CosNotification::EventTypeSeq & removed_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SUBSCRIPTION_CHANGE_WORKER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp b/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp
index bf1d0eae7ee..378463bf4b7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Supplier.cpp
@@ -1,20 +1,18 @@
// $Id$
-#include "orbsvcs/Notify/Supplier.h"
+#include "Supplier.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Supplier.inl"
+#include "Supplier.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_Supplier, "$Id$")
-#include "orbsvcs/Notify/ProxyConsumer.h"
-#include "orbsvcs/Notify/Proxy.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ProxyConsumer.h"
+#include "Proxy.h"
TAO_Notify_Supplier::TAO_Notify_Supplier (TAO_Notify_ProxyConsumer* proxy)
- : proxy_ (proxy)
+ :proxy_ (proxy)
{
}
@@ -29,13 +27,9 @@ TAO_Notify_Supplier::proxy (void)
}
void
-TAO_Notify_Supplier::dispatch_updates_i (
- const CosNotification::EventTypeSeq& added,
- const CosNotification::EventTypeSeq& removed
- ACE_ENV_ARG_DECL)
+TAO_Notify_Supplier::dispatch_updates_i (const CosNotification::EventTypeSeq& added, const CosNotification::EventTypeSeq& removed
+ ACE_ENV_ARG_DECL)
{
if (!CORBA::is_nil (this->subscribe_.in ()))
this->subscribe_->subscription_change (added, removed ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Supplier.h b/TAO/orbsvcs/orbsvcs/Notify/Supplier.h
index f8032aae3d7..f962cb09302 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Supplier.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Supplier.h
@@ -1,29 +1,27 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Supplier.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_SUPPLIER_H
#define TAO_Notify_SUPPLIER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Peer.h"
+#include "Peer.h"
#include "orbsvcs/CosNotifyCommC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_ProxyConsumer;
/**
@@ -60,10 +58,8 @@ protected:
CosNotifyComm::NotifySubscribe_var subscribe_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Supplier.inl"
+#include "Supplier.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Supplier.inl b/TAO/orbsvcs/orbsvcs/Notify/Supplier.inl
index 19d48fb5634..6d1c528c149 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Supplier.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Supplier.inl
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Notify_ProxyConsumer*
TAO_Notify_Supplier::proxy_consumer (void)
{
return this->proxy_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp
index 71ff8590b4c..9affc97ebdd 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.cpp
@@ -1,18 +1,18 @@
// $Id$
-#include "orbsvcs/Notify/SupplierAdmin.h"
+#include "SupplierAdmin.h"
ACE_RCSID (RT_Notify,
TAO_Notify_SupplierAdmin,
"$Id$")
-#include "orbsvcs/Notify/Builder.h"
-#include "orbsvcs/Notify/ProxyConsumer.h"
-#include "orbsvcs/Notify/EventChannel.h"
-#include "orbsvcs/Notify/Subscription_Change_Worker.h"
-#include "orbsvcs/Notify/Find_Worker_T.h"
-#include "orbsvcs/Notify/Seq_Worker_T.h"
-#include "orbsvcs/Notify/Properties.h"
+#include "Builder.h"
+#include "ProxyConsumer.h"
+#include "EventChannel.h"
+#include "Subscription_Change_Worker.h"
+#include "Find_Worker_T.h"
+#include "Seq_Worker_T.h"
+#include "Properties.h"
#include "tao/debug.h"
@@ -23,12 +23,10 @@ ACE_RCSID (RT_Notify,
# define DEBUG_LEVEL TAO_debug_level
#endif //DEBUG_LEVEL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef TAO_Notify_Find_Worker_T<TAO_Notify_Proxy
- , CosNotifyChannelAdmin::ProxyConsumer
- , CosNotifyChannelAdmin::ProxyConsumer_ptr
- , CosNotifyChannelAdmin::ProxyNotFound>
+ , CosNotifyChannelAdmin::ProxyConsumer
+ , CosNotifyChannelAdmin::ProxyConsumer_ptr
+ , CosNotifyChannelAdmin::ProxyNotFound>
TAO_Notify_ProxyConsumer_Find_Worker;
typedef TAO_Notify_Seq_Worker_T<TAO_Notify_Proxy> TAO_Notify_Proxy_Seq_Worker;
@@ -85,11 +83,11 @@ TAO_Notify_SupplierAdmin::destroy (ACE_ENV_SINGLE_ARG_DECL)
CORBA::SystemException
))
{
- int result = this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- if ( result == 1)
+ if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
+ ACE_CHECK;
+
this->ec_->remove (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
@@ -426,5 +424,3 @@ TAO_Notify_SupplierAdmin::find_proxy_consumer (
}
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.h b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.h
index eeeaf0d40ab..2b3dc033fdf 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/SupplierAdmin.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file SupplierAdmin.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_SUPPLIERADMIN_H
@@ -13,8 +14,8 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Admin.h"
+#include "notify_serv_export.h"
+#include "Admin.h"
#include "orbsvcs/NotifyExtS.h"
@@ -22,15 +23,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+class TAO_Notify_ProxyConsumer;
+
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Notify_ProxyConsumer;
-
/**
* @class TAO_Notify_SupplierAdmin
*
@@ -208,8 +207,6 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Supplier_Map.h b/TAO/orbsvcs/orbsvcs/Notify/Supplier_Map.h
index 0a28afc1792..609f419193a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Supplier_Map.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Supplier_Map.h
@@ -1,37 +1,35 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Supplier_Map.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_SUPPLIER_MAP_H
#define TAO_Notify_SUPPLIER_MAP_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Event_Map_T.h"
-#include "orbsvcs/Notify/ProxyConsumer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Event_Map_T.h"
+#include "ProxyConsumer.h"
/**
- * @typedef TAO_Notify_Supplier_Map
+ * @class TAO_Notify_Supplier_Map
*
* @brief The Event Map for Suppliers.
*
*/
-typedef TAO_Notify_Event_Map_T<TAO_Notify_ProxyConsumer, TAO_SYNCH_RW_MUTEX> TAO_Notify_Supplier_Map;
-TAO_END_VERSIONED_NAMESPACE_DECL
+typedef TAO_Notify_Event_Map_T<TAO_Notify_ProxyConsumer, TAO_SYNCH_RW_MUTEX> TAO_Notify_Supplier_Map;
#include /**/ "ace/post.h"
#endif /* TAO_Notify_SUPPLIER_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp
index 01a7a51711f..a8299c2ecfa 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.cpp
@@ -1,22 +1,21 @@
// $Id$
-#include "orbsvcs/Notify/ThreadPool_Task.h"
+#include "ThreadPool_Task.h"
ACE_RCSID(Notify, TAO_Notify_ThreadPool_Task, "$Id$")
-#include "orbsvcs/Notify/Properties.h"
-#include "orbsvcs/Notify/Timer_Queue.h"
-#include "orbsvcs/Notify/Buffering_Strategy.h"
+#include "Properties.h"
+#include "Timer_Queue.h"
+#include "Buffering_Strategy.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_errno.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_ThreadPool_Task::TAO_Notify_ThreadPool_Task (void)
-: shutdown_ (false)
+ : shutdown_ (false)
+ , shutdown_handler_(this)
{
}
@@ -37,27 +36,27 @@ TAO_Notify_ThreadPool_Task::timer (void)
}
void
-TAO_Notify_ThreadPool_Task::init (const NotifyExt::ThreadPoolParams& tp_params,
- const TAO_Notify_AdminProperties::Ptr& admin_properties ACE_ENV_ARG_DECL)
+TAO_Notify_ThreadPool_Task::init (const NotifyExt::ThreadPoolParams& tp_params, TAO_Notify_AdminProperties::Ptr& admin_properties ACE_ENV_ARG_DECL)
{
ACE_ASSERT (this->timer_.get() == 0);
TAO_Notify_Timer_Queue* timer = 0;
ACE_NEW_THROW_EX (timer,
- TAO_Notify_Timer_Queue (),
- CORBA::NO_MEMORY ());
+ TAO_Notify_Timer_Queue (),
+ CORBA::NO_MEMORY ());
ACE_CHECK;
this->timer_.reset (timer);
TAO_Notify_Buffering_Strategy* buffering_strategy = 0;
ACE_NEW_THROW_EX (buffering_strategy,
- TAO_Notify_Buffering_Strategy (*msg_queue (), admin_properties),
- CORBA::NO_MEMORY ());
+ TAO_Notify_Buffering_Strategy (*msg_queue (), admin_properties),
+ CORBA::NO_MEMORY ());
this->buffering_strategy_.reset (buffering_strategy);
ACE_CHECK;
- long flags = THR_NEW_LWP | THR_DETACHED;
+ long flags = THR_NEW_LWP | THR_JOINABLE;
+
CORBA::ORB_var orb =
TAO_Notify_PROPERTIES::instance()->orb ();
@@ -74,27 +73,28 @@ TAO_Notify_ThreadPool_Task::init (const NotifyExt::ThreadPoolParams& tp_params,
// Become an active object.
if (this->ACE_Task <ACE_NULL_SYNCH>::activate (flags,
- tp_params.static_threads,
- 0,
- ACE_THR_PRI_OTHER_DEF) == -1)
- {
- // Undo the ref counts on error
- for ( CORBA::ULong i = 0; i < tp_params.static_threads; ++i )
+ tp_params.static_threads,
+ 0,
+ ACE_THR_PRI_OTHER_DEF) == -1)
{
- this->_decr_refcnt();
- }
+ // Undo the ref counts on error
+ for ( CORBA::ULong i = 0; i < tp_params.static_threads; ++i )
+ {
+ this->_decr_refcnt();
+ }
- if (TAO_debug_level > 0)
- {
- if (ACE_OS::last_error () == EPERM)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Insufficient privilege.\n")));
- else
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("(%t) task activation at priority %d failed\n")
- ACE_TEXT ("exiting!\n%a"),
- tp_params.default_priority));
- }
- ACE_THROW (CORBA::BAD_PARAM ());
+ if (TAO_debug_level > 0)
+ {
+ if (ACE_OS::last_error () == EPERM)
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Insufficient privilege.\n")));
+ else
+ ACE_DEBUG ((LM_ERROR,
+ ACE_TEXT ("(%t) task activation at priority %d failed\n")
+ ACE_TEXT ("exiting!\n%a"),
+ tp_params.default_priority));
+ }
+
+ ACE_THROW (CORBA::BAD_PARAM ());
}
}
@@ -103,15 +103,11 @@ TAO_Notify_ThreadPool_Task::execute (TAO_Notify_Method_Request& method_request A
{
if (!shutdown_)
{
- TAO_Notify_Method_Request_Queueable* request_copy = method_request.copy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ TAO_Notify_Method_Request_Queueable& request_copy = *method_request.copy (ACE_ENV_SINGLE_ARG_PARAMETER);
- if (this->buffering_strategy_->enqueue (request_copy) == -1)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "NS_ThreadPool_Task (%P|%t) - "
- "failed to enqueue\n"));
- }
+ // Ignore the return value, because we already print an error
+ // message if enqueing fails.
+ this->buffering_strategy_->enqueue (request_copy);
}
}
@@ -121,45 +117,45 @@ TAO_Notify_ThreadPool_Task::svc (void)
TAO_Notify_Method_Request_Queueable* method_request;
while (!shutdown_)
- {
- ACE_TRY_NEW_ENV
{
- ACE_Time_Value* dequeue_blocking_time = 0;
- ACE_Time_Value earliest_time;
-
- if (!this->timer_->impl().is_empty ())
- {
- earliest_time = this->timer_->impl().earliest_time ();
- dequeue_blocking_time = &earliest_time;
- }
-
- // Dequeue 1 item
- int result = buffering_strategy_->dequeue (method_request, dequeue_blocking_time);
-
- if (result > 0)
- {
- method_request->execute (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Message_Block::release (method_request);
- }
- else if (errno == ETIME)
- {
- this->timer_->impl ().expire ();
- }
- else
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "ThreadPool_Task dequeue failed\n"));
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "ThreadPool_Task (%P|%t) exception in method request\n");
- }
- ACE_ENDTRY;
- } /* while */
+ ACE_TRY_NEW_ENV
+ {
+ ACE_Time_Value* dequeue_blocking_time = 0;
+ ACE_Time_Value earliest_time;
+
+ if (!this->timer_->impl().is_empty ())
+ {
+ earliest_time = this->timer_->impl().earliest_time ();
+ dequeue_blocking_time = &earliest_time;
+ }
+
+ // Dequeue 1 item
+ int result = buffering_strategy_->dequeue (method_request, dequeue_blocking_time);
+
+ if (result > 0)
+ {
+ method_request->execute (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ ACE_Message_Block::release (method_request);
+ }
+ else if (errno == ETIME)
+ {
+ this->timer_->impl ().expire ();
+ }
+ else if (result == -1)
+ {
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "ThreadPool_Task dequeue failed\n"));
+ }
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "ThreadPool_Task (%P|%t) exception in method request\n");
+ }
+ ACE_ENDTRY;
+ } /* while */
return 0;
}
@@ -169,12 +165,21 @@ TAO_Notify_ThreadPool_Task::shutdown (void)
{
if (this->shutdown_)
{
- return;
+ return;
}
this->shutdown_ = true;
this->buffering_strategy_->shutdown ();
+
+ // be sure this object is not deleted until wait() returns
+ this->_incr_refcnt ();
+
+ // get another thread to wait() for the thread(s) running svc() to exit
+ // otherwise the thread is a zombie on Solaris and just hangs around
+ // on windows.
+ TAO_Notify_PROPERTIES::instance()
+ ->orb ()->orb_core ()->reactor ()->notify (&shutdown_handler_);
}
void
@@ -184,17 +189,25 @@ TAO_Notify_ThreadPool_Task::release (void)
}
int
-TAO_Notify_ThreadPool_Task::close (u_long)
+TAO_Notify_ThreadPool_Task::close (u_long /*flags*/)
{
- // _incr_refcnt() for each spawned thread in init()
+ // Undo the thread spawn guard. close is called per thread spawned.
this->_decr_refcnt();
return 0;
}
void
+TAO_Notify_ThreadPool_Task::wait_for_shutdown ()
+{
+ // wait for thread(s) running svc() to return.
+ this->wait ();
+
+ // Undo the shutdown request guard.
+ this->_decr_refcnt ();
+}
+
+void
TAO_Notify_ThreadPool_Task::update_qos_properties (const TAO_Notify_QoSProperties& qos_properties)
{
this->buffering_strategy_->update_qos_properties (qos_properties);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.h b/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.h
index ffff9d3a1a6..7c6ad778e5d 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/ThreadPool_Task.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file ThreadPool_Task.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_THREADPOOL_TASK_H
@@ -13,23 +14,20 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
-#include "orbsvcs/Notify/Timer_Queue.h"
-#include "orbsvcs/Notify/AdminProperties.h"
-#include "orbsvcs/Notify/Worker_Task.h"
+#include "Timer_Queue.h"
+#include "AdminProperties.h"
+#include "Worker_Task.h"
#include "ace/Task.h"
#include "ace/Message_Queue.h"
#include "ace/Reactor.h"
-#include "ace/Null_Condition.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Notify_Buffering_Strategy;
/**
@@ -38,9 +36,7 @@ class TAO_Notify_Buffering_Strategy;
* @brief Implements a Thread Pool Worker Task.
*
*/
-class TAO_Notify_Serv_Export TAO_Notify_ThreadPool_Task
- : public TAO_Notify_Worker_Task
- , public ACE_Task<ACE_NULL_SYNCH>
+class TAO_Notify_Serv_Export TAO_Notify_ThreadPool_Task : public TAO_Notify_Worker_Task, public ACE_Task<ACE_NULL_SYNCH>
{
friend class TAO_Notify_Method_Request_Shutdown;
@@ -58,7 +54,7 @@ public:
virtual int close (u_long flags);
/// Activate the threadpool
- void init (const NotifyExt::ThreadPoolParams& tp_params, const TAO_Notify_AdminProperties::Ptr& admin_properties ACE_ENV_ARG_DECL);
+ void init (const NotifyExt::ThreadPoolParams& tp_params, TAO_Notify_AdminProperties::Ptr& admin_properties ACE_ENV_ARG_DECL);
/// Queue the request
virtual void execute (TAO_Notify_Method_Request& method_request ACE_ENV_ARG_DECL);
@@ -80,6 +76,9 @@ private:
/// Release
virtual void release (void);
+ /// wait for all threads to exit svc()
+ virtual void wait_for_shutdown ();
+
/// The buffering strategy to use.
ACE_Auto_Ptr< TAO_Notify_Buffering_Strategy > buffering_strategy_;
@@ -88,10 +87,31 @@ private:
/// The Queue based timer.
TAO_Notify_Timer_Queue::Ptr timer_;
-};
+ // Since this class already inherited from ACE_Event_Handler
+ // I did not want to conflict with a possible parent
+ /// implementation of handle_exception.
+ class Shutdown_Handler : public ACE_Event_Handler
+ {
+ public:
+ Shutdown_Handler (TAO_Notify_ThreadPool_Task* owner) : owner_ (owner) {};
+
+ /// wait for all threads to complete in another thread
+ virtual int handle_exception (ACE_HANDLE fd = ACE_INVALID_HANDLE)
+ {
+ ACE_UNUSED_ARG (fd);
+ owner_->wait_for_shutdown ();
+ return 0;
+ }
+ private:
+ TAO_Notify_ThreadPool_Task* owner_;
+ };
+
+ friend class Shutdown_Handler;
+
+ Shutdown_Handler shutdown_handler_;
-TAO_END_VERSIONED_NAMESPACE_DECL
+};
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer.h b/TAO/orbsvcs/orbsvcs/Notify/Timer.h
index 3b3a829f7e7..dad8bbe7c55 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Timer.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Timer.h
@@ -1,32 +1,29 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Timer.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_TIMER_H
#define TAO_Notify_TIMER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Refcountable.h"
+#include "Refcountable.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Event_Handler;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Notify_Timer
@@ -50,7 +47,5 @@ public:
virtual int cancel_timer (long timer_id) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_TIMER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp b/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp
index 642f313f2f3..b083b78b6e8 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/Timer_Queue.h"
+#include "Timer_Queue.h"
ACE_RCSID (Notify, TAO_Notify_Timer_Queue, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Timer_Queue::TAO_Notify_Timer_Queue (void)
{
}
@@ -26,11 +24,10 @@ TAO_Notify_Timer_Queue::schedule_timer (ACE_Event_Handler *handler,
const ACE_Time_Value &delay_time,
const ACE_Time_Value &interval)
{
- return
- this->timer_queue_.schedule (handler,
- 0,
- timer_queue_.gettimeofday () + delay_time,
- interval);
+ return this->timer_queue_.schedule (handler,
+ 0,
+ timer_queue_.gettimeofday () + delay_time,
+ interval);
}
int
@@ -44,5 +41,3 @@ TAO_Notify_Timer_Queue::impl (void)
{
return this->timer_queue_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.h b/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.h
index 3f0f021e217..61179a601bb 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Timer_Queue.h
@@ -1,20 +1,21 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Timer_Queue.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_TIMER_QUEUE_H
#define TAO_Notify_TIMER_QUEUE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
-#include "orbsvcs/Notify/Timer.h"
+#include "Timer.h"
#include "ace/Timer_Queue.h"
#include "ace/Timer_Heap.h"
@@ -24,8 +25,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Timer_Queue
*
@@ -64,7 +63,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_TIMER_QUEUE_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp b/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp
index 8109a230c30..d591dc652b9 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.cpp
@@ -1,18 +1,16 @@
// $Id$
-#include "orbsvcs/Notify/Timer_Reactor.h"
+#include "Timer_Reactor.h"
ACE_RCSID (Notify,
Timer_Reactor,
"$Id$")
-#include "orbsvcs/Notify/Properties.h"
+#include "Properties.h"
#include "tao/ORB_Core.h"
#include "ace/Reactor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Timer_Reactor::TAO_Notify_Timer_Reactor (void)
:reactor_ (0)
{
@@ -38,7 +36,7 @@ TAO_Notify_Timer_Reactor::schedule_timer (ACE_Event_Handler *handler,
const ACE_Time_Value &delay_time,
const ACE_Time_Value &interval)
{
- return this->reactor_->schedule_timer (handler, 0, delay_time, interval);
+ return this->reactor_->schedule_timer (handler, 0, delay_time, interval);
}
int
@@ -46,5 +44,3 @@ TAO_Notify_Timer_Reactor::cancel_timer (long timer_id)
{
return this->reactor_->cancel_timer (timer_id);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.h b/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.h
index 31ef686604c..1b3319df40a 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Timer_Reactor.h
@@ -1,35 +1,32 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Timer_Reactor.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_TIMER_REACTOR_H
#define TAO_Notify_TIMER_REACTOR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
-#include "orbsvcs/Notify/Timer.h"
+#include "notify_serv_export.h"
+#include "Timer.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Notify_Timer_Reactor
*
- * @brief Reactor::instance based timer. The timers are dispatched by
- * the main thread.
+ * @brief Reactor::instance based timer. The timers are dispatched by the main thread.
+ *
*/
class TAO_Notify_Serv_Export TAO_Notify_Timer_Reactor : public TAO_Notify_Timer
{
@@ -60,7 +57,5 @@ private:
virtual void release (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_TIMER_REACTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/Topology_Factory.h
index 33f313825a6..30ffaadba58 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Factory.h
@@ -1,18 +1,17 @@
-// -*- C++ -*-
-
/**
* @file Topology_Factory.h
*
* $Id$
*
* @author Dale Wilson <wilson_d@ociweb.com>
+ *
+ *
*/
-
#ifndef TAO_NOTIFY_TOPOLOGY_FACTORY_H
#define TAO_NOTIFY_TOPOLOGY_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#include "ace/Service_Object.h"
@@ -20,10 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
class Topology_Saver;
@@ -44,11 +39,8 @@ namespace TAO_Notify
/// \return a pointer to a Topology_Loader which must be deleted
/// by the caller.
virtual Topology_Loader* create_loader () = 0;
- virtual ~Topology_Factory ();
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp b/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp
index 27eeb6ad143..253f988ff37 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.cpp
@@ -1,8 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/Topology_Loader.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Topology_Loader.h"
TAO_Notify::Topology_Loader::Topology_Loader ()
{
@@ -16,5 +14,3 @@ void
TAO_Notify::Topology_Loader::close (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.h b/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.h
index 599afa07985..b6b10232315 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,24 +14,16 @@
#define TOPOLOGY_LOADER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#include "ace/config-all.h"
+#include "tao/corba.h"
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace CORBA
-{
- class Environment;
-}
-
namespace TAO_Notify
{
@@ -77,8 +69,6 @@ public:
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TOPOLOGY_LOADER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp
index ac174723aa3..f7be8f65e2c 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/Topology_Object.h"
+#include "Topology_Object.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Topology_Object.inl"
+#include "Topology_Object.inl"
#endif /* __ACE_INLINE__ */
// question: is there a race_conditon with self_changed and children_changed?
@@ -13,8 +13,6 @@
// children have been saved in Topology_Object::save_persistent ().
// If these rules are followed, the only risk is a (harmless) extra save.
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
Topology_Savable::~Topology_Savable (void)
@@ -28,10 +26,10 @@ namespace TAO_Notify
Topology_Object::Topology_Object ()
: TAO_Notify_Object ()
- , Topology_Savable ()
- , self_changed_ (false)
- , children_changed_ (false)
- , topology_parent_ (0)
+ , Topology_Savable ()
+ , self_changed_ (false)
+ , children_changed_ (false)
+ , topology_parent_ (0)
{
}
@@ -42,7 +40,7 @@ namespace TAO_Notify
void
Topology_Object::initialize (Topology_Parent* topology_parent ACE_ENV_ARG_DECL_NOT_USED)
{
- ACE_ASSERT (topology_parent != 0 && this->topology_parent_ == 0);
+ ACE_ASSERT (topology_parent != 0 && this->topology_parent_ == 0);
this->topology_parent_ = topology_parent;
TAO_Notify_Object::initialize (topology_parent);
}
@@ -68,13 +66,13 @@ namespace TAO_Notify
{
bool result = false;
if (this->qos_properties_.event_reliability().is_valid ())
- {
- result = CosNotification::Persistent == this->qos_properties_.event_reliability().value ();
- }
+ {
+ result = CosNotification::Persistent == this->qos_properties_.event_reliability().value ();
+ }
else if (this->topology_parent () != 0)
- {
- result = this->topology_parent ()->is_persistent ();
- }
+ {
+ result = this->topology_parent ()->is_persistent ();
+ }
return result;
}
@@ -118,7 +116,6 @@ namespace TAO_Notify
if (parent != 0)
{
result = parent->child_change(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
}
return result;
}
@@ -145,7 +142,4 @@ namespace TAO_Notify
// if it is called in a release build, provide 'em a value
return -1;
}
-
} // namespace TAO_Notify
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.h b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.h
index 53e825c0939..19883f8ac3f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,8 +14,8 @@
#define TOPOLOGY_OBJECT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/Object.h"
-#include "orbsvcs/Notify/Name_Value_Pair.h"
+#include "Object.h"
+#include "Name_Value_Pair.h"
#include "ace/SString.h"
#include "ace/Vector_T.h"
@@ -24,7 +24,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// \namespace TAO_Notify
/// \brief A namespace to be used by all of TAO's Notification Service
@@ -46,6 +45,8 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
//
namespace TAO_Notify
{
+ static const ACE_TCHAR TOPOLOGY_ID_NAME[] = ACE_TEXT("TopologyID");
+
class Topology_Saver;
class Topology_Parent;
@@ -202,10 +203,8 @@ namespace TAO_Notify
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Notify/Topology_Object.inl"
+#include "Topology_Object.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.inl b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.inl
index 14363a16d6f..efb34f9315f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.inl
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Object.inl
@@ -1,9 +1,4 @@
-// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
ACE_INLINE
@@ -23,4 +18,3 @@ namespace TAO_Notify
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp b/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp
index 65c9aa9f681..91873af0136 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.cpp
@@ -1,8 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/Topology_Saver.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Topology_Saver.h"
TAO_Notify::Topology_Saver::~Topology_Saver ()
{
@@ -11,6 +9,5 @@ TAO_Notify::Topology_Saver::~Topology_Saver ()
void
TAO_Notify::Topology_Saver::close (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+}
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.h b/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.h
index 91648109b7a..781da2721b7 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Topology_Saver.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,17 +14,16 @@
#define TOPOLOGY_SAVER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/Topology_Object.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "Topology_Object.h"
+#include "notify_serv_export.h"
+#include "tao/corba.h"
#include "ace/SString.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
/**
@@ -107,8 +106,6 @@ namespace TAO_Notify
};
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TOPOLOGY_SAVER */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp
index 6fb6d3c2e6b..7c1e767bd0f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Notify/Worker_Task.h"
+#include "Worker_Task.h"
ACE_RCSID(Notify, TAO_Notify_Worker_Task, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Notify_Worker_Task::TAO_Notify_Worker_Task (void)
{
}
@@ -18,5 +16,3 @@ void
TAO_Notify_Worker_Task::update_qos_properties (const TAO_Notify_QoSProperties& /*qos_properties*/)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h
index b1e529c56bd..bef6be6a23f 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/Worker_Task.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Worker_Task.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_Notify_WORKER_TASK_H
@@ -13,16 +14,14 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/notify_serv_export.h"
+#include "notify_serv_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Method_Request.h"
-#include "orbsvcs/Notify/Refcountable.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Method_Request.h"
+#include "Refcountable.h"
class TAO_Notify_AdminProperties;
class TAO_Notify_QoSProperties;
@@ -65,7 +64,5 @@ protected:
virtual ~TAO_Notify_Worker_Task ();
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_Notify_WORKER_TASK_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp b/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp
index 7dd33e5deb6..f3ccc625d9b 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Notify/XML_Loader.h"
-#include "orbsvcs/Notify/Topology_Object.h"
+#include "XML_Loader.h"
+#include "Topology_Object.h"
#include "ACEXML/common/DefaultHandler.h"
#include "ACEXML/parser/parser/Parser.h"
@@ -18,35 +18,25 @@
using namespace TAO_Notify;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO_Notify {
- extern const char TOPOLOGY_ID_NAME[];
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
namespace {
CORBA::Long makeNVPList (NVPList& nvp, ACEXML_Attributes* attrs)
{
CORBA::Long id = 0;
for (size_t i = 0; i < attrs->getLength (); ++i)
{
- const char * name = attrs->getQName (i);
- const char * value = attrs->getValue (i);
- if (ACE_OS::strcmp (name,
- TAO_VERSIONED_NAMESPACE_NAME::TAO_Notify::TOPOLOGY_ID_NAME) == 0)
+ const ACE_TCHAR * name = attrs->getQName (i);
+ const ACE_TCHAR * value = attrs->getValue (i);
+ if (ACE_OS::strcmp (name, TOPOLOGY_ID_NAME) == 0)
{
id = ACE_OS::atoi (value);
}
- nvp.push_back (NVP (name, value));
+ nvp.push_back (NVP (ACE_TEXT_TO_CHAR_IN(name),
+ ACE_TEXT_TO_CHAR_IN(value)));
}
return id;
}
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
XML_Loader::XML_Loader ()
@@ -81,7 +71,7 @@ namespace TAO_Notify
ACEXML_FileCharStream* fstm = new ACEXML_FileCharStream;
// xml input source will take ownership
- if (fstm->open (this->file_name_.c_str ()) == 0)
+ if (fstm->open (ACE_TEXT_TO_TCHAR_IN(this->file_name_.c_str ())) == 0)
{
// InputSource takes ownership
ACEXML_InputSource input (fstm);
@@ -132,7 +122,7 @@ namespace TAO_Notify
ACEXML_FileCharStream* fstm = new ACEXML_FileCharStream;
// xml input source will take ownership
- if (fstm->open (this->file_name_.c_str ()) == 0)
+ if (fstm->open (ACE_TEXT_TO_TCHAR_IN(this->file_name_.c_str ())) == 0)
{
// InputSource takes ownership
ACEXML_InputSource input (fstm);
@@ -180,7 +170,7 @@ namespace TAO_Notify
if (this->live_)
{
ACE_ASSERT (object_stack_.size () > 0);
- Topology_Object* cur = 0;
+ Topology_Object* cur;
if (object_stack_.top (cur) == 0)
{
ACE_DECLARE_NEW_ENV;
@@ -194,7 +184,7 @@ namespace TAO_Notify
name
));
- ACE_CString cname (name);
+ ACE_CString cname (ACE_TEXT_TO_CHAR_IN(name));
Topology_Object* next = cur->load_child (
cname, id, attrs ACE_ENV_ARG_PARAMETER);
ACE_ASSERT(next != 0);
@@ -203,7 +193,8 @@ namespace TAO_Notify
}
ACE_CATCHANY
{
- ACEXML_THROW (ACEXML_SAXException (ACE_ANY_EXCEPTION._info ().c_str ()));
+ ACEXML_THROW (ACEXML_SAXException (ACE_TEXT_TO_TCHAR_IN(
+ ACE_ANY_EXCEPTION._info ().c_str ())));
}
ACE_ENDTRY;
}
@@ -230,5 +221,3 @@ namespace TAO_Notify
}
} /* namespace TAO_Notify */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.h b/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.h
index 7069179d9bd..7e35e9cae55 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,15 +21,15 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Notify/Topology_Loader.h"
+#include "Topology_Loader.h"
#include "ACEXML/common/DefaultHandler.h"
#include "ACEXML/parser/parser/Parser.h"
#include "ACEXML/common/FileCharStream.h"
-#include "ace/streams.h"
+#include "tao/corba.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/streams.h"
namespace TAO_Notify
{
@@ -81,7 +81,5 @@ private:
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* XML_LOADER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp
index f6f0864b46f..a586a197913 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Notify/XML_Saver.h"
+#include "XML_Saver.h"
#include "ACEXML/common/XML_Util.h"
@@ -8,12 +8,8 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
- extern const char TOPOLOGY_ID_NAME[];
-
XML_Saver::XML_Saver(bool timestamp)
: output_ (0)
, close_out_ (false)
@@ -131,7 +127,7 @@ namespace TAO_Notify
#ifdef ACE_LACKS_LONGLONG_T
nowus.as_string(nowusstr);
#else
- ACE_OS::sprintf(nowusstr, ACE_UINT64_FORMAT_SPECIFIER, nowus);
+ ACE_OS::sprintf(nowusstr, ACE_UINT64_FORMAT_SPECIFIER_A, nowus);
#endif /* ACE_LACKS_LONGLONG_T */
attrs.push_back(NVP("version", "1.0"));
@@ -173,10 +169,10 @@ namespace TAO_Notify
}
const size_t BUF_SIZE = 512;
- ACE_CString tmp(BUF_SIZE);
+ ACE_TString tmp(BUF_SIZE);
for (size_t idx = 0; idx < attrs.size(); idx++)
{
- ACEXML_escape_string(attrs[idx].value, tmp);
+ ACEXML_escape_string(ACE_TEXT_TO_TCHAR_IN(attrs[idx].value.fast_rep()), tmp);
ACE_OS::fprintf (out, "%s%s%s%s%s", " ",
attrs[idx].name.c_str (), "=\"", tmp.c_str(), "\"");
}
@@ -185,11 +181,11 @@ namespace TAO_Notify
return true;
}
- void XML_Saver::end_object (CORBA::Long /* id */,
- const ACE_CString& type
- ACE_ENV_ARG_DECL_NOT_USED)
+ void XML_Saver::end_object (CORBA::Long id,
+ const ACE_CString& type ACE_ENV_ARG_DECL_NOT_USED)
{
ACE_ASSERT(this->output_ != 0);
+ ACE_UNUSED_ARG (id);
FILE *out = this->output_;
if (this->indent_.length() >= 2)
{
@@ -199,5 +195,3 @@ namespace TAO_Notify
type.c_str(), ">\n");
}
} /* namespace TAO_Notify */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h
index f7c9afb87e1..2cbdbf643c0 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Saver.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,16 +14,15 @@
#define XML_SAVER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/Topology_Saver.h"
+#include "Topology_Saver.h"
+#include "tao/corba.h"
#include "ace/streams.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
@@ -81,7 +80,5 @@ private:
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* XML_SAVER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp b/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp
index 8b263987fe8..18faedac516 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.cpp
@@ -1,19 +1,15 @@
// $Id$
-#include "orbsvcs/Notify/XML_Topology_Factory.h"
-#include "orbsvcs/Notify/XML_Saver.h"
-#include "orbsvcs/Notify/XML_Loader.h"
+#include "XML_Topology_Factory.h"
+#include "XML_Saver.h"
+#include "XML_Loader.h"
#include "tao/debug.h"
#include "ace/OS_NS_strings.h"
//#include "ace/Service_Object.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
- const char TOPOLOGY_ID_NAME[] = "TopologyID";
XML_Topology_Factory::XML_Topology_Factory()
: save_base_path_ ("./Notification_Service_Topology")
@@ -24,11 +20,6 @@ namespace TAO_Notify
}
// virtual
- XML_Topology_Factory::~XML_Topology_Factory ()
- {
- }
-
- // virtual
Topology_Saver*
XML_Topology_Factory::create_saver ()
{
@@ -68,17 +59,17 @@ namespace TAO_Notify
for (int narg = 0; narg < argc; ++narg)
{
ACE_TCHAR * av = argv[narg];
- if (ACE_OS::strcasecmp (av, "-v") == 0)
+ if (ACE_OS::strcasecmp (av, ACE_TEXT("-v")) == 0)
{
verbose = true;
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) Standard_Event_Persistence: -verbose\n")
));
}
- else if (ACE_OS::strcasecmp (av, "-base_path") == 0 && narg + 1 < argc)
+ else if (ACE_OS::strcasecmp (av, ACE_TEXT("-base_path")) == 0 && narg + 1 < argc)
{
- this->save_base_path_ = argv[narg + 1];
- this->load_base_path_ = argv[narg + 1];
+ this->save_base_path_.set (ACE_TEXT_TO_CHAR_IN (argv[narg + 1]));
+ this->load_base_path_.set (ACE_TEXT_TO_CHAR_IN (argv[narg + 1]));
if (TAO_debug_level > 0 || verbose)
{
ACE_DEBUG ((LM_DEBUG,
@@ -88,9 +79,9 @@ namespace TAO_Notify
}
narg += 1;
}
- else if (ACE_OS::strcasecmp (av, "-save_base_path") == 0 && narg + 1 < argc)
+ else if (ACE_OS::strcasecmp (av, ACE_TEXT("-save_base_path")) == 0 && narg + 1 < argc)
{
- this->save_base_path_ = argv[narg + 1];
+ this->save_base_path_.set (ACE_TEXT_TO_CHAR_IN (argv[narg + 1]));
if (TAO_debug_level > 0 || verbose)
{
ACE_DEBUG ((LM_DEBUG,
@@ -100,9 +91,9 @@ namespace TAO_Notify
}
narg += 1;
}
- else if (ACE_OS::strcasecmp (av, "-load_base_path") == 0 && narg + 1 < argc)
+ else if (ACE_OS::strcasecmp (av, ACE_TEXT("-load_base_path")) == 0 && narg + 1 < argc)
{
- this->load_base_path_ = argv[narg + 1];
+ this->load_base_path_.set (ACE_TEXT_TO_CHAR_IN (argv[narg + 1]));
if (TAO_debug_level > 0 || verbose)
{
ACE_DEBUG ((LM_DEBUG,
@@ -112,7 +103,7 @@ namespace TAO_Notify
}
narg += 1;
}
- else if (ACE_OS::strcasecmp (av, "-backup_count") == 0 && narg + 1 < argc)
+ else if (ACE_OS::strcasecmp (av, ACE_TEXT("-backup_count")) == 0 && narg + 1 < argc)
{
this->backup_count_ = ACE_OS::atoi(argv[narg + 1]);
if (TAO_debug_level > 0 || verbose)
@@ -124,7 +115,7 @@ namespace TAO_Notify
}
narg += 1;
}
- else if (ACE_OS::strcasecmp (av, "-no_timestamp") == 0)
+ else if (ACE_OS::strcasecmp (av, ACE_TEXT("-no_timestamp")) == 0)
{
this->timestamp_ = false;
if (TAO_debug_level > 0 || verbose)
@@ -153,10 +144,6 @@ namespace TAO_Notify
// nothing to do yet
return 0;
}
-} /* namespace TAO_Notify */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (TAO_Notify_Persist,
- TAO_Notify_XML_Topology_Factory,
- TAO_Notify::XML_Topology_Factory)
+ ACE_FACTORY_DEFINE (TAO_Notify_Persist, XML_Topology_Factory)
+} /* namespace TAO_Notify */
diff --git a/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h b/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h
index b6dc0686d8a..88323bce2ed 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Notify/XML_Topology_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,8 +14,8 @@
#define XML_TOPOLOGY_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Notify/Topology_Factory.h"
-#include "orbsvcs/Notify/notify_persist_export.h"
+#include "Topology_Factory.h"
+#include "notify_persist_export.h"
#include "tao/corba.h"
#include "ace/SString.h"
@@ -25,11 +25,8 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Notify
{
- extern const char TOPOLOGY_ID_NAME[];
/**
* \brief Create XML topology savers and loaders
@@ -54,7 +51,6 @@ namespace TAO_Notify
public:
/// The constructor.
XML_Topology_Factory ();
- virtual ~XML_Topology_Factory ();
////////////////////////////////////
// Override Topology_Factory methods
@@ -75,11 +71,8 @@ namespace TAO_Notify
bool timestamp_;
};
+ ACE_FACTORY_DECLARE (TAO_Notify_Persist, XML_Topology_Factory)
} // namespace TAO_Notify
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_DECLARE (TAO_Notify_Persist, TAO_Notify_XML_Topology_Factory)
-
#include /**/ "ace/post.h"
#endif /* XML_TOPOLOGY_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup.mpc b/TAO/orbsvcs/orbsvcs/PortableGroup.mpc
index 2c63bc2bff5..62979dc481d 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup.mpc
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup.mpc
@@ -1,12 +1,11 @@
// -*- MPC -*-
// $Id$
-project(PortableGroup) : orbsvcslib, core, naming, iormanip, messaging, minimum_corba, tao_versioning_idl_defaults {
+project(PortableGroup) : orbsvcslib, core, naming, iormanip, messaging, minimum_corba {
sharedname = TAO_PortableGroup
idlflags += -Wb,export_macro=TAO_PortableGroup_Export \
-Wb,export_include=orbsvcs/PortableGroup/portablegroup_export.h
dynamicflags = TAO_PORTABLEGROUP_BUILD_DLL
- tagchecks += PortableGroup
IDL_Files {
miop.idl
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp
index 829ca0cdef9..322ebb548b8 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/PortableGroup/GOA.h"
+#include "GOA.h"
ACE_RCSID (PortableGroup,
@@ -6,8 +6,8 @@ ACE_RCSID (PortableGroup,
"$Id$")
-#include "orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h"
-#include "orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h"
+#include "PortableGroup_Acceptor_Registry.h"
+#include "PortableGroup_Request_Dispatcher.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
@@ -18,8 +18,6 @@ ACE_RCSID (PortableGroup,
#include "ace/Auto_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
PortableServer::ObjectId *
TAO_GOA::create_id_for_reference (CORBA::Object_ptr the_ref
ACE_ENV_ARG_DECL)
@@ -578,7 +576,7 @@ TAO_GOA::find_group_component (const CORBA::Object_ptr the_ref,
// Iterate through the tagged profiles, and
// create acceptors for the multicast ones.
slot = 0;
- while (0 != (profile = profiles.get_profile (slot)))
+ while ((profile = profiles.get_profile (slot)))
{
if (this->find_group_component_in_profile (profile, group) == 0)
return 0;
@@ -638,7 +636,7 @@ TAO_GOA::create_group_acceptors (CORBA::Object_ptr the_ref,
// Iterate through the tagged profiles, and
// create acceptors for the multicast ones.
slot = 0;
- while (0 != (profile = profiles.get_profile (slot)))
+ while ((profile = profiles.get_profile (slot)))
{
if (profile->supports_multicast ())
{
@@ -707,5 +705,3 @@ TAO_GOA::associate_group_with_ref (
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.h b/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.h
index 12af8d574a5..66cd21907bb 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/GOA.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Profile;
class TAO_PortableGroup_Acceptor_Registry;
@@ -316,8 +314,6 @@ protected:
PortableGroup::NotAGroupObject));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp
index ac2bbec66cf..8148eff7164 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.cpp
@@ -1,15 +1,13 @@
-#include "orbsvcs/PortableGroup/MIOP.h"
-#include "orbsvcs/PortableGroup/UIPMC_Factory.h"
+#include "MIOP.h"
+#include "UIPMC_Factory.h"
#include "ace/Service_Config.h"
-#include "orbsvcs/PortableGroup/PortableGroup_Loader.h"
-#include "orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h"
+#include "PortableGroup_Loader.h"
+#include "PG_Object_Adapter_Factory.h"
ACE_RCSID (PortableGroup,
UIPMC_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/*static*/ int
@@ -25,5 +23,3 @@ namespace TAO
ace_svc_desc_TAO_UIPMC_Protocol_Factory);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.h b/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.h
index 7e6219a5e67..755901ffff3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/MIOP.h
@@ -13,16 +13,12 @@
#define TAO_MIOP_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -39,7 +35,5 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_MIOP_H*/
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp
index fe3650caa71..eefa86f14c7 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/PortableGroup/PG_Default_Property_Validator.h"
-#include "orbsvcs/PortableGroup/PG_Operators.h"
+#include "PG_Default_Property_Validator.h"
+#include "PG_Operators.h"
ACE_RCSID (PortableGroup,
@@ -7,8 +7,6 @@ ACE_RCSID (PortableGroup,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PG_Default_Property_Validator::TAO_PG_Default_Property_Validator (void)
: membership_ (1),
factories_ (1)
@@ -147,5 +145,3 @@ TAO_PG_Default_Property_Validator::validate_criteria (
ACE_THROW (PortableGroup::InvalidCriteria (invalid_criteria));
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.h
index 9f9ced075d9..da03189be1b 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Default_Property_Validator.h
@@ -15,14 +15,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_PG_Default_Property_Validator
@@ -79,8 +78,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_PROPERTY_VALIDATOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp
index 330d3984006..1a4a24f328a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.cpp
@@ -1,19 +1,16 @@
// -*- C++ -*-
// $Id$
-#include "orbsvcs/PortableGroup/PG_FactoryRegistry.h"
+#include "PG_FactoryRegistry.h"
#include "ace/Get_Opt.h"
#include "ace/Vector_T.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/Auto_Ptr.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
#include "tao/PortableServer/POAManagerC.h"
-#include "orbsvcs/PortableGroup/PG_Operators.h" // operator == on CosNaming::Name
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PG_Operators.h" // operator == on CosNaming::Name
// Use this macro at the beginning of CORBA methods
// to aid in debugging.
@@ -66,7 +63,7 @@ TAO::PG_FactoryRegistry::~PG_FactoryRegistry (void)
int TAO::PG_FactoryRegistry::parse_args (int argc, char * argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:q");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:q");
int c;
while ((c = get_opts ()) != -1)
@@ -714,7 +711,7 @@ void TAO::PG_FactoryRegistry::unregister_factory_by_location (
int TAO::PG_FactoryRegistry::write_ior_file(const char * outputFile, const char * ior)
{
int result = -1;
- FILE* out = ACE_OS::fopen (outputFile, "w");
+ FILE* out = ACE_OS::fopen (outputFile, ACE_TEXT("w"));
if (out)
{
ACE_OS::fprintf (out, "%s", ior);
@@ -729,5 +726,3 @@ int TAO::PG_FactoryRegistry::write_ior_file(const char * outputFile, const char
}
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h
index b16268b5f66..3f9ae599e2b 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_FactoryRegistry.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file PG_FactoryRegistry.h
@@ -22,25 +21,21 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
+//////////////////////////////////
+// Classes declared in this header
+namespace TAO
+{
+ class PG_FactoryRegistry;
+}
/////////////////////////////////
// Includes needed by this header
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupS.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/SString.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-//////////////////////////////////
-// Classes declared in this header
-namespace TAO
-{
- class PG_FactoryRegistry;
-}
-
/////////////////////
// Forward references
@@ -51,8 +46,7 @@ namespace TAO
* Note FactoryRegistry is not part of the OMG standard. It was added
* as part of the TAO implementation of Fault Tolerant CORBA
*/
- class TAO_PortableGroup_Export PG_FactoryRegistry
- : public virtual POA_PortableGroup::FactoryRegistry
+ class TAO_PortableGroup_Export PG_FactoryRegistry : public virtual POA_PortableGroup::FactoryRegistry
{
struct RoleInfo
{
@@ -256,8 +250,6 @@ namespace TAO
};
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif // TAO_PG_FACTORYREGISTRY_H_
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.cpp
new file mode 100644
index 00000000000..c731d88453f
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.cpp
@@ -0,0 +1,8 @@
+// -*- C++ -*-
+
+#include "PG_Factory_Map.h"
+
+
+ACE_RCSID (PortableGroup,
+ PG_Factory_Map,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.h
index 33c4e1cf421..ff2033929ff 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Map.h
@@ -22,15 +22,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Factory_Set.h"
+#include "PG_Factory_Set.h"
#include "orbsvcs/PortableGroupC.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Factory hash map.
typedef ACE_Hash_Map_Manager_Ex<
ACE_UINT32,
@@ -39,8 +37,6 @@ typedef ACE_Hash_Map_Manager_Ex<
ACE_Equal_To<ACE_UINT32>,
ACE_Null_Mutex> TAO_PG_Factory_Map;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_FACTORY_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.cpp
new file mode 100644
index 00000000000..e986c8d6cfc
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.cpp
@@ -0,0 +1,5 @@
+#include "PG_Factory_Set.h"
+
+ACE_RCSID (PortableGroup,
+ PG_Factory_Set,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.h
index 9b545e49831..3bca619031f 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Factory_Set.h
@@ -26,7 +26,6 @@
#include "ace/Array_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_PG_Factory_Node
@@ -51,7 +50,6 @@ struct TAO_PG_Factory_Node
typedef ACE_Array_Base<TAO_PG_Factory_Node> TAO_PG_Factory_Set;
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
index 0461276bea1..1a9c5f8b23f 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.cpp
@@ -1,9 +1,9 @@
-#include "orbsvcs/PortableGroup/PG_GenericFactory.h"
-#include "orbsvcs/PortableGroup/PG_MemberInfo.h"
-#include "orbsvcs/PortableGroup/PG_ObjectGroupManager.h"
-#include "orbsvcs/PortableGroup/PG_PropertyManager.h"
-#include "orbsvcs/PortableGroup/PG_Property_Utils.h"
-#include "orbsvcs/PortableGroup/PG_conf.h"
+#include "PG_GenericFactory.h"
+#include "PG_MemberInfo.h"
+#include "PG_ObjectGroupManager.h"
+#include "PG_PropertyManager.h"
+#include "PG_Property_Utils.h"
+#include "PG_conf.h"
#include "ace/OS_NS_stdio.h"
@@ -13,9 +13,6 @@ ACE_RCSID (PortableGroup,
PG_GenericFactory,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PG_GenericFactory::TAO_PG_GenericFactory (
TAO_PG_ObjectGroupManager & object_group_manager,
TAO_PG_PropertyManager & property_manager)
@@ -776,5 +773,3 @@ TAO_PG_GenericFactory::create_member (
return fcid._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.h
index 96b725c941a..8123d3d3828 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_GenericFactory.h
@@ -22,13 +22,12 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Factory_Map.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "PG_Factory_Map.h"
+#include "portablegroup_export.h"
#include "tao/PortableServer/PortableServerC.h"
#include "orbsvcs/PortableGroupC.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Forward declarations.
class TAO_PG_ObjectGroupManager;
@@ -241,7 +240,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp
index 3c84812d454..bd6af066385 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.cpp
@@ -10,11 +10,11 @@
*/
//=============================================================================
-#include "orbsvcs/PortableGroup/PG_Group_Factory.h"
-#include "orbsvcs/PortableGroup/PG_Property_Utils.h"
-#include "orbsvcs/PortableGroup/PG_conf.h"
+#include "PG_Group_Factory.h"
+#include "PG_Property_Utils.h"
+#include "PG_conf.h"
#include "orbsvcs/PortableGroupC.h"
-#include "orbsvcs/PortableGroup/PG_Object_Group.h"
+#include "PG_Object_Group.h"
#include <orbsvcs/PortableGroup/PG_Utils.h>
ACE_RCSID (PortableGroup,
@@ -22,8 +22,6 @@ ACE_RCSID (PortableGroup,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::PG_Group_Factory::PG_Group_Factory ()
: orb_ (CORBA::ORB::_nil())
, poa_ (PortableServer::POA::_nil())
@@ -228,5 +226,3 @@ TAO::PG_Group_Factory::groups_at_location (
result->length (group_count);
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.h
index b9bd1309492..9ef00e3d20a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Factory.h
@@ -15,13 +15,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h"
+#include "PG_Object_Group_Manipulator.h"
#include "orbsvcs/PortableGroupC.h"
@@ -30,9 +30,6 @@
#include "ace/ACE.h"
#include "ace/Hash_Map_Manager.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////
// Forward reference
namespace TAO
@@ -40,6 +37,8 @@ namespace TAO
class PG_Property_Set;
} // namespace TAO_PG
+
+
namespace TAO
{
/////////////////////
@@ -177,8 +176,6 @@ namespace TAO
};
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_GROUP_FACTORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp
index dc93a9e2e2c..7a7c359da50 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/PortableGroup/PG_Group_Guard.h"
+#include "PG_Group_Guard.h"
-#include "orbsvcs/PortableGroup/PG_GenericFactory.h"
-#include "orbsvcs/PortableGroup/PG_ObjectGroupManager.h"
+#include "PG_GenericFactory.h"
+#include "PG_ObjectGroupManager.h"
ACE_RCSID (PortableGroup,
@@ -9,8 +9,6 @@ ACE_RCSID (PortableGroup,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PG_Group_Guard::TAO_PG_Group_Guard (
TAO_PG_GenericFactory & generic_factory,
TAO_PG_Factory_Set & factory_set,
@@ -56,4 +54,3 @@ TAO_PG_Group_Guard::release (void)
this->released_ = 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.h
index 2c6ca8fe9ee..8fd7d844619 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Group_Guard.h
@@ -22,16 +22,17 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Factory_Set.h"
+#include "PG_Factory_Set.h"
#include "tao/PortableServer/PortableServerC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Forward declarations.
class TAO_PG_GenericFactory;
class TAO_PG_ObjectGroupManager;
+
+
/**
* @class TAO_PG_Group_Guard
*
@@ -86,7 +87,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.cpp
index 2fc8e11dadc..c95f86292b3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.cpp
@@ -1,11 +1,11 @@
// -*- C++ -*-
-#include "orbsvcs/PortableGroup/PG_Location_Equal_To.h"
+#include "PG_Location_Equal_To.h"
ACE_RCSID (PortableGroup,
PG_Location_Equal_To,
"$Id$")
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/PG_Location_Equal_To.inl"
+#include "PG_Location_Equal_To.inl"
#endif /* !__ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.h
index cbfc12a8949..224daf9c011 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.h
@@ -22,11 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Operators.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "PG_Operators.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_PG_Location_Equal_To
@@ -48,10 +47,9 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/PG_Location_Equal_To.inl"
+#include "PG_Location_Equal_To.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.inl b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.inl
index 052d968242b..2c9ab16375a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.inl
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Equal_To.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
TAO_PG_Location_Equal_To::operator () (
const PortableGroup::Location &lhs,
@@ -11,5 +9,3 @@ TAO_PG_Location_Equal_To::operator () (
{
return lhs == rhs;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.cpp
index 0197726bfe8..e4d1f963ba3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.cpp
@@ -2,10 +2,10 @@
//
// $Id$
-#include "orbsvcs/PortableGroup/PG_Location_Hash.h"
+#include "PG_Location_Hash.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/PG_Location_Hash.inl"
+#include "PG_Location_Hash.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (PortableGroup,
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.h
index d59b5320ff0..105ef25e6db 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.h
@@ -22,12 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupC.h"
#include "ace/ACE.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PG_Location_Hash
*
@@ -42,10 +40,9 @@ public:
CORBA::ULong operator() (const PortableGroup::Location &) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/PG_Location_Hash.inl"
+#include "PG_Location_Hash.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.inl b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.inl
index a0b591b1068..41fe3d62519 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.inl
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Hash.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_PG_Location_Hash::operator() (
const PortableGroup::Location &location) const
@@ -21,5 +19,3 @@ TAO_PG_Location_Hash::operator() (
return hash;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.cpp
new file mode 100644
index 00000000000..0ff336e3c93
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.cpp
@@ -0,0 +1,7 @@
+// -*- C++ -*-
+
+#include "PG_Location_Map.h"
+
+ACE_RCSID (PortableGroup,
+ PG_Location_Map,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.h
index e0eb6dbf756..6786897aa0f 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Location_Map.h
@@ -22,8 +22,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Location_Hash.h"
-#include "orbsvcs/PortableGroup/PG_Location_Equal_To.h"
+#include "PG_Location_Hash.h"
+#include "PG_Location_Equal_To.h"
#include "orbsvcs/PortableGroupC.h"
@@ -31,8 +31,6 @@
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
struct TAO_PG_ObjectGroup_Map_Entry;
@@ -47,8 +45,6 @@ typedef ACE_Hash_Map_Manager_Ex<
TAO_PG_Location_Equal_To,
ACE_Null_Mutex> TAO_PG_Location_Map;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_LOCATION_MAP_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.cpp
index 1485e8277d9..8746e2958ff 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.cpp
@@ -1,11 +1,10 @@
-#include "orbsvcs/PortableGroup/PG_MemberInfo.h"
-#include "orbsvcs/PortableGroup/PG_Operators.h"
+#include "PG_MemberInfo.h"
+#include "PG_Operators.h"
ACE_RCSID (PortableGroup,
PG_MemberInfo,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO_PG_MemberInfo::operator== (const TAO_PG_MemberInfo & rhs)
@@ -14,5 +13,3 @@ TAO_PG_MemberInfo::operator== (const TAO_PG_MemberInfo & rhs)
// important.
return location == rhs.location;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.h
index 41d428bd0bb..919c58f7ca5 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_MemberInfo.h
@@ -25,8 +25,6 @@
#include "orbsvcs/PortableGroupC.h"
#include "ace/Unbounded_Set.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PG_MemberInfo
*
@@ -53,9 +51,9 @@ struct TAO_PG_MemberInfo
};
+
typedef ACE_Unbounded_Set<TAO_PG_MemberInfo> TAO_PG_MemberInfo_Set;
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.cpp
index 5251b3d7931..ef9eb998bb8 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.cpp
@@ -1,11 +1,10 @@
-#include "orbsvcs/PortableGroup/PG_Null_Property_Validator.h"
+#include "PG_Null_Property_Validator.h"
ACE_RCSID (PortableGroup,
PG_Null_Property_Validator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO_PG_Null_Property_Validator::validate_property (
@@ -26,5 +25,3 @@ TAO_PG_Null_Property_Validator::validate_criteria (
PortableGroup::CannotMeetCriteria))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.h
index 41047a90c99..573430ccf66 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Null_Property_Validator.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -23,8 +23,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PG_Null_Property_Validator
*
@@ -60,8 +58,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_PROPERTY_VALIDATOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp
index 7b78ef895bc..5152cdac17c 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/PortableGroup/PG_ObjectGroupManager.h"
-#include "orbsvcs/PortableGroup/PG_GenericFactory.h"
-#include "orbsvcs/PortableGroup/PG_conf.h"
-#include "orbsvcs/PortableGroup/PG_Operators.h"
+#include "PG_ObjectGroupManager.h"
+#include "PG_GenericFactory.h"
+#include "PG_conf.h"
+#include "PG_Operators.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
@@ -14,8 +14,6 @@ ACE_RCSID (PortableGroup,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PG_ObjectGroupManager::TAO_PG_ObjectGroupManager (void)
: poa_ (),
object_group_map_ (TAO_PG_MAX_OBJECT_GROUPS),
@@ -867,5 +865,3 @@ TAO_PG_ObjectGroupManager::generic_factory (
{
this->generic_factory_ = generic_factory;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.h
index b78cc4028f3..962a9a1232a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroupManager.h
@@ -16,22 +16,20 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_ObjectGroup_Map.h"
-#include "orbsvcs/PortableGroup/PG_Location_Map.h"
+#include "PG_ObjectGroup_Map.h"
+#include "PG_Location_Map.h"
#include "tao/PortableServer/Key_Adapters.h"
#include "tao/PortableServer/PortableServerC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations
class TAO_PG_GenericFactory;
@@ -307,7 +305,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.cpp
new file mode 100644
index 00000000000..75e6324bce6
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.cpp
@@ -0,0 +1,5 @@
+#include "PG_ObjectGroup_Map.h"
+
+ACE_RCSID (PortableGroup,
+ PG_ObjectGroup_Map,
+ "$Id$")
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.h
index 4673a79df0f..b754df541a2 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_ObjectGroup_Map.h
@@ -22,7 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_MemberInfo.h"
+#include "PG_MemberInfo.h"
#include "orbsvcs/PortableGroupC.h"
@@ -32,8 +32,6 @@
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PG_ObjectGroup_Map_Entry
*
@@ -77,7 +75,6 @@ typedef ACE_Hash_Map_Manager_Ex<
ACE_Equal_To<PortableServer::ObjectId>,
ACE_Null_Mutex> TAO_PG_ObjectGroup_Map;
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp
index f8545615ad6..9cdce730ed6 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h"
-#include "orbsvcs/PortableGroup/PG_Servant_Dispatcher.h"
+#include "PG_Object_Adapter_Factory.h"
+#include "PG_Servant_Dispatcher.h"
#include "tao/PortableServer/Object_Adapter.h"
#include "tao/ORB_Core.h"
@@ -10,7 +10,6 @@ ACE_RCSID (TAO_PortableGroup,
PG_Object_Adapter_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_PG_Object_Adapter_Factory::TAO_PG_Object_Adapter_Factory (void)
{
@@ -37,8 +36,6 @@ TAO_PG_Object_Adapter_Factory::create (TAO_ORB_Core *orb_core)
return object_adapter;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_PortableGroup, TAO_PG_Object_Adapter_Factory)
ACE_STATIC_SVC_DEFINE (TAO_PG_Object_Adapter_Factory,
ACE_TEXT ("TAO_GOA"),
@@ -46,3 +43,4 @@ ACE_STATIC_SVC_DEFINE (TAO_PG_Object_Adapter_Factory,
&ACE_SVC_NAME (TAO_PG_Object_Adapter_Factory),
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
+
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h
index 7edf4fe521e..189d77873a8 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Object_Adapter_Factory.h
@@ -14,7 +13,7 @@
#define TAO_PG_OBJECT_ADAPTER_FACTORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "tao/PortableServer/Object_Adapter_Factory.h"
#include "tao/orbconf.h"
@@ -25,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PortableGroup_Export TAO_PG_Object_Adapter_Factory : public TAO_Object_Adapter_Factory
{
public:
@@ -37,8 +34,6 @@ public:
virtual TAO_Adapter *create (TAO_ORB_Core *orb_core);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_PG_Object_Adapter_Factory)
ACE_FACTORY_DECLARE (TAO_PortableGroup, TAO_PG_Object_Adapter_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp
index 09d492e76a0..e61dd872186 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "orbsvcs/PortableGroup/PG_Object_Group.h"
-#include "orbsvcs/PortableGroup/PG_conf.h"
+#include "PG_Object_Group.h"
+#include "PG_conf.h"
-#include "orbsvcs/PortableGroup/PG_Operators.h" // Borrow operator== on CosNaming::Name
-#include "orbsvcs/PortableGroup/PG_Utils.h"
+#include "PG_Operators.h" // Borrow operator== on CosNaming::Name
+#include "PG_Utils.h"
#include "tao/debug.h"
@@ -12,21 +12,21 @@
#include "ace/Vector_T.h"
-// Borland Developer Studio 2006 and earlier give a warning about comparing
+// Borland C++ 6 Update Pack 4 and earlier give a warning about comparing
// signed and unsigned values in the minimum_polulate() and
// initial_populate() warnings. The comparison uses a unsigned long and
// unsigned short and it seems that the compiler promotes the unsigned
// short of an int and this then gives the warning. Just for Borland
// disabled the warning in this file.
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x582)
+#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x564)
# pragma option push -w-csu
# pragma nopushoptwarn
# pragma nopackwarning
-#endif /* __BORLANDC__ && __BORLANDC__ <= 0x582 */
+#endif /* __BORLANDC__ && __BORLANDC__ <= 0x564 */
#define TODO int todo;
+//#define TODO
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::PG_Object_Group::MemberInfo::MemberInfo (
CORBA::Object_ptr member,
@@ -886,11 +886,9 @@ TAO::PG_Object_Group::has_member_at (const PortableGroup::Location & location)
return (0 == this->members_.find (location));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// Restore original compiler flags.
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x582)
+#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x564)
# pragma option pop
# pragma nopushoptwarn
# pragma nopackwarning
-#endif /* __BORLANDC__ && __BORLANDC__ <= 0x582 */
+#endif /* __BORLANDC__ && __BORLANDC__ <= 0x564 */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h
index e0c9d524494..09f8ebba42c 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file PG_Object_Group.h
@@ -21,7 +20,7 @@
#define TAO_PG_OBJECT_GROUP_H_
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -30,17 +29,15 @@
/////////////////////////////////
// Includes needed by this header
-#include "orbsvcs/PortableGroup/PG_Property_Set.h"
-#include "orbsvcs/PortableGroup/PG_Location_Hash.h"
-#include "orbsvcs/PortableGroup/PG_Location_Equal_To.h"
-#include "orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h"
+#include "PG_Property_Set.h"
+#include "PG_Location_Hash.h"
+#include "PG_Location_Equal_To.h"
+#include "PG_Object_Group_Manipulator.h"
#include "orbsvcs/PortableGroupC.h"
#include "tao/PortableServer/PortableServer.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/ACE.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/////////////////////
// Forward references
@@ -375,8 +372,6 @@ namespace TAO
};
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif // TAO_PG_OBJECT_GROUP_H_
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp
index 2fb57ae571a..d55a858f22c 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.cpp
@@ -10,8 +10,8 @@
*/
//=============================================================================
-#include "orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h"
-#include "orbsvcs/PortableGroup/PG_Utils.h"
+#include "PG_Object_Group_Manipulator.h"
+#include "PG_Utils.h"
#include "tao/debug.h"
#include <ace/OS_NS_stdio.h>
@@ -20,9 +20,6 @@ ACE_RCSID (PortableGroup,
PG_Object_Group_Manipulator,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::PG_Object_Group_Manipulator::PG_Object_Group_Manipulator ()
: orb_ (CORBA::ORB::_nil ())
, poa_ (PortableServer::POA::_nil ())
@@ -71,7 +68,7 @@ TAO::PG_Object_Group_Manipulator::create_object_group (
// Create a reference for the ObjectGroup
CORBA::Object_var object_group =
- this->poa_->create_reference_with_id (oid.in(),
+ this->poa_->create_reference_with_id (ACE_U64_TO_U32 (group_id),
type_id
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (CORBA::Object::_nil ());
@@ -186,5 +183,3 @@ void dump_membership (const char * label, PortableGroup::ObjectGroup_ptr member)
}
#endif
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h
index 4397cbfe8e0..881a7437ade 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group_Manipulator.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -26,8 +26,6 @@
#include "tao/IORManipulation/IORManip_Loader.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -116,7 +114,6 @@ namespace TAO
};
} //namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.cpp
index 9513dc724bb..99436d883a5 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.cpp
@@ -1,12 +1,10 @@
-#include "orbsvcs/PortableGroup/PG_Operators.h"
+#include "PG_Operators.h"
#include "ace/OS_NS_string.h"
ACE_RCSID (PortableGroup,
PG_Operators,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
bool
operator== (const CosNaming::Name & lhs, const CosNaming::Name & rhs)
{
@@ -29,5 +27,3 @@ operator!= (const CosNaming::Name & lhs, const CosNaming::Name & rhs)
{
return !(lhs == rhs);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.h
index 6218b5da005..881c5330403 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Operators.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -25,8 +25,6 @@
#include "orbsvcs/CosNamingC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Global CosNaming::Name equality operator.
/**
* Used for checking equality of PortableGroup::Location and
@@ -43,7 +41,6 @@ bool TAO_PortableGroup_Export operator== (const CosNaming::Name & lhs,
bool TAO_PortableGroup_Export operator!= (const CosNaming::Name & lhs,
const CosNaming::Name & rhs);
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.cpp
index de1fa1c7223..5dc23baa0a8 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Properties_Encoder.cpp
@@ -10,15 +11,13 @@
* @author Dale Wilson <wilson_d@ociweb.com>
*/
//=============================================================================
-#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
+#include "PG_Properties_Encoder.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/PG_Properties_Encoder.inl"
+#include "PG_Properties_Encoder.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////
// Properties_Encoder
TAO_PG::Properties_Encoder::Properties_Encoder ()
@@ -63,5 +62,3 @@ void TAO_PG::Properties_Encoder::encode (
// nc.kind defaults to empty. Leave it that way (for now)
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h
index d1780105873..d171ec5590a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Properties_Encoder.h
@@ -22,13 +21,11 @@
#include "orbsvcs/PortableGroupS.h"
#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "ace/Vector_T.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_PG
{
/**
@@ -92,10 +89,8 @@ namespace TAO_PG
} //namespace TAO_PG
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/PG_Properties_Encoder.inl"
+#include "PG_Properties_Encoder.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif // TAO_PG_PROPERTIES_ENCODER_H
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl
index aa64246f6a5..17fadf5df67 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Encoder.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Properties_Encoder.inl
@@ -9,9 +8,6 @@
* @author Dale Wilson <wilson_d@ociweb.com>
*/
//=============================================================================
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_PG
{
ACE_INLINE
@@ -61,4 +57,3 @@ namespace TAO_PG
} //namespace TAO_PG
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.cpp
index cc8d023d899..907c2959ae2 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.cpp
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Properties_Support.cpp
@@ -12,9 +11,7 @@
*/
//=============================================================================
-#include "orbsvcs/PortableGroup/PG_Properties_Support.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PG_Properties_Support.h"
TAO::PG_Properties_Support::PG_Properties_Support ()
{
@@ -147,5 +144,3 @@ TAO::PG_Properties_Support::find_typeid_properties (
}
return typeid_properties;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.h
index 50e2f504ffd..a56bbc9a168 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Properties_Support.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Properties_Support.h
@@ -18,10 +17,8 @@
#ifndef TAO_PG_PROPERTIES_SUPPORT_H
#define TAO_PG_PROPERTIES_SUPPORT_H
-#include "orbsvcs/PortableGroup/PG_Property_Set.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PG_Property_Set.h"
+#include "portablegroup_export.h"
namespace TAO
{
@@ -209,6 +206,4 @@ namespace TAO
};
} //namespace TAO_PG
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // TAO_PG_PROPERTIES_SUPPORT_H
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.cpp
index f6d9fb2a13c..b09dc33d9de 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.cpp
@@ -1,8 +1,8 @@
// -*- C++ -*-
-#include "orbsvcs/PortableGroup/PG_PropertyManager.h"
-#include "orbsvcs/PortableGroup/PG_ObjectGroupManager.h"
-#include "orbsvcs/PortableGroup/PG_Property_Utils.h"
+#include "PG_PropertyManager.h"
+#include "PG_ObjectGroupManager.h"
+#include "PG_Property_Utils.h"
#include "tao/ORB_Constants.h"
@@ -12,8 +12,6 @@ ACE_RCSID (PortableGroup,
PG_PropertyManager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PG_PropertyManager::TAO_PG_PropertyManager (
TAO_PG_ObjectGroupManager & object_group_manager)
: object_group_manager_ (object_group_manager),
@@ -364,5 +362,3 @@ TAO_PG_PropertyManager::remove_properties (
// variable.
properties = new_properties;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.h
index 5d6c40fa063..7b748ac0d15 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_PropertyManager.h
@@ -21,8 +21,8 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/PG_Default_Property_Validator.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "PG_Default_Property_Validator.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupS.h"
#include "ace/SString.h"
@@ -30,8 +30,6 @@
#include "ace/Functor.h"
#include "ace/Hash_Map_Manager_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_PG_ObjectGroupManager;
@@ -185,8 +183,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_PROPERTY_MANAGER_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp
index e63ff905d9d..8e41ae574ca 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Property_Set.cpp
@@ -13,11 +14,9 @@
* @author Dale Wilson <wilson_d@ociweb.com>
*/
//=============================================================================
-#include "orbsvcs/PortableGroup/PG_Property_Set.h"
+#include "PG_Property_Set.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////
// PG_Property_Set
@@ -26,6 +25,7 @@ TAO::PG_Property_Set::PG_Property_Set()
{
}
+
TAO::PG_Property_Set::PG_Property_Set (
const PortableGroup::Properties & property_set
ACE_ENV_ARG_DECL)
@@ -246,13 +246,9 @@ int TAO::PG_Property_Set::find (
return found;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
//#define PG_PS_UNIT_TEST
#ifdef PG_PS_UNIT_TEST
-#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PG_Properties_Encoder.h"
int TAO_PG::test_encode_decode ()
{
@@ -354,7 +350,4 @@ int TAO_PG::test_encode_decode ()
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // PG_PS_UNIT_TEST
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h
index 44aae869da7..05c5f57f34b 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Property_Set.h
@@ -21,15 +20,13 @@
#define TAO_PG_PROPERTY_SET
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupS.h"
#include "orbsvcs/CosNamingC.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/SString.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -189,11 +186,9 @@ namespace TAO
#endif // PG_PS_UNIT_TEST
} //namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
////////////////////////////////////
// include templated helper function
-#include "orbsvcs/PortableGroup/PG_Property_Set_Find.h"
+#include "PG_Property_Set_Find.h"
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set_Find.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set_Find.h
index 6f68524d8ac..b06794df571 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set_Find.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Set_Find.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Property_Set_Find.h
@@ -21,12 +20,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "ace/Hash_Map_Manager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -48,8 +45,6 @@ namespace TAO
} //namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif // TAO_PG_PROPERTY_SET_FIND_H
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.cpp
index 897facce517..895c5bc8ad3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.cpp
@@ -1,12 +1,10 @@
-#include "orbsvcs/PortableGroup/PG_Property_Utils.h"
-#include "orbsvcs/PortableGroup/PG_Operators.h"
+#include "PG_Property_Utils.h"
+#include "PG_Operators.h"
ACE_RCSID (PortableGroup,
PG_Property_Utils,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Boolean
TAO_PG::get_property_value (const PortableGroup::Name & property_name,
const PortableGroup::Properties & properties,
@@ -78,5 +76,3 @@ TAO_PG::override_properties (
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.h
index 8e8395f2bc6..ca02b71a413 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Property_Utils.h
@@ -22,10 +22,9 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "orbsvcs/PortableGroupC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO_PG
{
@@ -51,7 +50,5 @@ namespace TAO_PG
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_PROPERTY_UTILS_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp
index 1c2b3a94b21..78280b2e7af 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.cpp
@@ -1,14 +1,12 @@
-// $Id$
+// @(#) $Id$
-#include "orbsvcs/PortableGroup/GOA.h"
-#include "orbsvcs/PortableGroup/PG_Servant_Dispatcher.h"
+#include "GOA.h"
+#include "PG_Servant_Dispatcher.h"
ACE_RCSID(PortableGroup,
PG_Servant_Dispatcher,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PG_Servant_Dispatcher::~TAO_PG_Servant_Dispatcher (void)
{
}
@@ -42,29 +40,24 @@ TAO_PG_Servant_Dispatcher::create_Root_POA (const ACE_CString &name,
}
void
-TAO_PG_Servant_Dispatcher::pre_invoke_remote_request (
- TAO_Root_POA &,
- CORBA::Short,
- TAO_ServerRequest &,
- TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &
- ACE_ENV_ARG_DECL_NOT_USED)
+TAO_PG_Servant_Dispatcher::pre_invoke_remote_request (TAO_Root_POA &,
+ CORBA::Short,
+ TAO_ServerRequest &,
+ TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &
+ ACE_ENV_ARG_DECL_NOT_USED)
{
}
void
-TAO_PG_Servant_Dispatcher::pre_invoke_collocated_request (
- TAO_Root_POA &,
- CORBA::Short,
- TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &
- ACE_ENV_ARG_DECL_NOT_USED)
+TAO_PG_Servant_Dispatcher::pre_invoke_collocated_request (TAO_Root_POA &,
+ CORBA::Short,
+ TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &
+ ACE_ENV_ARG_DECL_NOT_USED)
{
}
void
-TAO_PG_Servant_Dispatcher::post_invoke (
- TAO_Root_POA &,
- TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
+TAO_PG_Servant_Dispatcher::post_invoke (TAO_Root_POA &,
+ TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h
index c8c80d87a7f..2c40bef8cd3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Servant_Dispatcher.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,15 +14,13 @@
#define TAO_PG_SERVANT_DISPATCHER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "tao/PortableServer/Servant_Dispatcher.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PG_Servant_Dispatcher
*
@@ -66,7 +64,5 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_SERVANT_DISPATCHER_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp
index a57079ffea8..58047cef329 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/PortableGroup/PG_Utils.h"
+#include "PG_Utils.h"
#include "tao/MProfile.h"
#include "tao/Profile.h"
@@ -13,7 +13,6 @@ ACE_RCSID (PortableGroup,
PG_Utils,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -172,5 +171,3 @@ namespace TAO
return cdr.good_bit ();
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.h
index 5552f38c3a3..f919cbbbba6 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Utils.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PG_Utils.h
@@ -21,9 +20,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
namespace TAO
{
@@ -53,7 +50,7 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#include /**/ "ace/post.h"
#endif /*TAO_PORTABLEGROUP_UTILS_H*/
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_conf.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_conf.h
index 7f993ad8f71..dcb0e3d5a5e 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_conf.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_conf.h
@@ -24,8 +24,6 @@
#include "orbsvcs/PortableGroupC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#ifndef TAO_PG_MAX_OBJECT_GROUPS // @@ why create arbitrary limits?
/// The maximum number of object groups to be managed by the
/// ObjectGroupManager. This number is also equal to the number of
@@ -57,8 +55,6 @@ const PortableGroup::MinimumNumberMembersValue TAO_PG_MINIMUM_NUMBER_MEMBERS =
TAO_PG_INITIAL_NUMBER_MEMBERS;
#endif /* TAO_PG_MINIMUM_NUMBER_MEMBERS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PG_CONF_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp
index a22594ca04b..9f09c2ebf34 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.cpp
@@ -1,6 +1,8 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h"
+#include "PortableGroup_Acceptor_Registry.h"
#include "tao/ORB_Core.h"
#include "tao/Profile.h"
#include "tao/Protocol_Factory.h"
@@ -14,8 +16,6 @@ ACE_RCSID (PortableGroup,
PortableGroup_Acceptor_Registry,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PortableGroup_Acceptor_Registry::TAO_PortableGroup_Acceptor_Registry (void)
{
}
@@ -187,5 +187,3 @@ TAO_PortableGroup_Acceptor_Registry::find (const TAO_Profile* profile,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h
index 1ecc90efa4d..745cf1fdbb3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h
@@ -25,13 +25,11 @@
#include "ace/CORBA_macros.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#include "tao/Transport_Acceptor.h"
#include "tao/Resource_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Profile;
namespace CORBA
@@ -99,19 +97,23 @@ protected:
Entry *&entry);
private:
-
// The acceptor registry should not be copied.
- TAO_PortableGroup_Acceptor_Registry (
- const TAO_PortableGroup_Acceptor_Registry&);
- void operator= (const TAO_PortableGroup_Acceptor_Registry&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_PortableGroup_Acceptor_Registry (
+ const TAO_PortableGroup_Acceptor_Registry&
+ ))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (
+ const TAO_PortableGroup_Acceptor_Registry&
+ ))
private:
/// List of acceptors that are currently open.
Acceptor_Registry registry_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+//#if defined(__ACE_INLINE__)
+//#include "tao/PortableGroup_Acceptor_Registry.i"
+//#endif /* __ACE_INLINE__ */
-#include /**/ "ace/post.h"
+#include /**/ "ace/post.h"
#endif /* TAO_PORTABLEGROUP_ACCEPTOR_REGISTRY_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp
index 2878d3db9a6..31e3782daeb 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp
@@ -1,8 +1,10 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/PortableGroup_Loader.h"
-#include "orbsvcs/PortableGroup/PG_Object_Adapter_Factory.h"
-#include "orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h"
+#include "PortableGroup_Loader.h"
+#include "PG_Object_Adapter_Factory.h"
+#include "PortableGroup_ORBInitializer.h"
#include "ace/Dynamic_Service.h"
#include "tao/ORB_Core.h"
#include "tao/ORBInitializer_Registry.h"
@@ -11,9 +13,6 @@ ACE_RCSID (PortableGroup,
PortableGroup_Loader,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PortableGroup_Loader::TAO_PortableGroup_Loader (void)
{
}
@@ -72,8 +71,6 @@ TAO_PortableGroup_Loader::Initializer (void)
return -1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_PortableGroup_Loader,
ACE_TEXT ("PortableGroup_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h
index 7dac70972c2..c30fa026c6b 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.h
@@ -16,20 +16,15 @@
#define TAO_PORTABLEGROUP_LOADER_H
#include /**/ "ace/pre.h"
-
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "ace/Service_Config.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/Service_Config.h"
#include "ace/Service_Object.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
/**
* @class TAO_PortableGroup_Adapter
@@ -54,15 +49,13 @@ public:
static int Initializer (void);
};
+ACE_STATIC_SVC_DECLARE (TAO_PortableGroup_Loader)
+ACE_FACTORY_DECLARE (TAO_PortableGroup, TAO_PortableGroup_Loader)
+
static int
TAO_Requires_PortableGroup_Initializer =
TAO_PortableGroup_Loader::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (TAO_PortableGroup_Loader)
-ACE_FACTORY_DECLARE (TAO_PortableGroup, TAO_PortableGroup_Loader)
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLEGROUP_LOADER_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp
index 870c6b75e59..bbfa405f7bc 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h"
-#include "orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h"
+#include "PortableGroup_ORBInitializer.h"
+#include "PortableGroup_Request_Dispatcher.h"
#include "tao/Exception.h"
#include "tao/ORB_Core.h"
@@ -12,11 +12,9 @@ ACE_RCSID (PortableGroup,
PortableGroup_ORBInitializer,
"$Id$")
-static const char pg_poa_factory_name[] = "TAO_GOA";
-static const char pg_poa_factory_directive[] = ACE_DYNAMIC_SERVICE_DIRECTIVE(
- "TAO_GOA", "TAO_PortableGroup", "_make_TAO_PG_Object_Adapter_Factory", "");
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char pg_poa_factory_name[] = "TAO_PG_POA";
+static const char pg_poa_factory_directive[] = ACE_DYNAMIC_SERVICE_DIRECTIVE_A(
+ "TAO_PG_POA", "TAO_PortableGroup", "_make_TAO_PG_Object_Adapter_Factory", "");
void
TAO_PortableGroup_ORBInitializer::pre_init (
@@ -67,5 +65,3 @@ TAO_PortableGroup_ORBInitializer::post_init (
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h
index 56f730edd59..901e76e68d3 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_ORBInitializer.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// PortableGroup ORB initializer.
class TAO_PortableGroup_Export TAO_PortableGroup_ORBInitializer :
public virtual PortableInterceptor::ORBInitializer,
@@ -50,8 +48,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp
index ae3fbe2d941..3fb03e3841d 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.cpp
@@ -1,8 +1,10 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Profile.h"
-#include "orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h"
-#include "orbsvcs/PortableGroup/PortableGroup_Loader.h"
+#include "UIPMC_Profile.h"
+#include "PortableGroup_Request_Dispatcher.h"
+#include "PortableGroup_Loader.h"
#include "tao/TAO_Server_Request.h"
#include "tao/ORB_Core.h"
@@ -11,8 +13,6 @@ ACE_RCSID (PortableGroup,
PortableGroup_Request_Dispatcher,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
PortableGroup_Request_Dispatcher::~PortableGroup_Request_Dispatcher (void)
{
}
@@ -57,5 +57,3 @@ PortableGroup_Request_Dispatcher::dispatch (TAO_ORB_Core *orb_core,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h
index fb6ae13e934..0f0ae518206 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Request_Dispatcher.h
@@ -20,11 +20,9 @@
#include "tao/Request_Dispatcher.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-#include "orbsvcs/PortableGroup/Portable_Group_Map.h"
-#include "orbsvcs/PortableGroup/PortableGroup_Acceptor_Registry.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
+#include "Portable_Group_Map.h"
+#include "PortableGroup_Acceptor_Registry.h"
// Forward declarations.
class TAO_PortableGroup_Loader;
@@ -63,8 +61,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLEGROUP_REQUEST_DISPATCHER_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp
index 73745a4460b..6d84be5bd71 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/PortableGroup/Portable_Group_Map.h"
+#include "Portable_Group_Map.h"
#include "tao/ORB_Core.h"
#include "tao/TAO_Server_Request.h"
#include "tao/CDR.h"
@@ -9,7 +9,6 @@ ACE_RCSID (PortableGroup,
Portable_Group_Map,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Constructor.
TAO_Portable_Group_Map::TAO_Portable_Group_Map ()
@@ -172,9 +171,7 @@ TAO_GroupId_Equal_To::operator () (
const PortableGroup::TagGroupTaggedComponent *rhs) const
{
return
- ACE_OS::strcmp (lhs->group_domain_id, rhs->group_domain_id) == 0
+ ACE_OS::strcmp (lhs->group_domain_id.in(), rhs->group_domain_id.in()) == 0
&& lhs->object_group_id == rhs->object_group_id
&& lhs->object_group_ref_version == rhs->object_group_ref_version;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.h b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.h
index c6c69ae9e11..12ec9ee45a5 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/Portable_Group_Map.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,7 +28,6 @@
#include "ace/Null_Mutex.h"
#include "ace/Hash_Map_Manager_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ServerRequest;
@@ -129,8 +128,6 @@ protected:
GroupId_Table map_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
//#if defined (__ACE_INLINE__)
//# include "Portable_Group_Map.i"
//#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp
index 8db8a3e7687..a6b2bf50b8e 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.cpp
@@ -2,8 +2,8 @@
//
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Profile.h"
-#include "orbsvcs/PortableGroup/UIPMC_Acceptor.h"
+#include "UIPMC_Profile.h"
+#include "UIPMC_Acceptor.h"
#include "tao/MProfile.h"
#include "tao/ORB_Core.h"
@@ -15,14 +15,13 @@
#include "ace/os_include/os_netdb.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/UIPMC_Acceptor.i"
+#include "UIPMC_Acceptor.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (PortableGroup,
UIPMC_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_UIPMC_Acceptor::TAO_UIPMC_Acceptor (CORBA::Boolean /*flag*/)
: TAO_Acceptor (TAO_TAG_UIPMC_PROFILE),
@@ -348,5 +347,3 @@ TAO_UIPMC_Acceptor::parse_options (const char *str)
}
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.h
index 6c783e885c1..4022d3f4ec0 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/UIPMC_Connection_Handler.h"
+#include "UIPMC_Connection_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,9 +30,7 @@
#include "ace/Acceptor.h"
#include "ace/SOCK_Acceptor.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
// TAO UIPMC_Acceptor concrete call defination
@@ -150,10 +148,8 @@ private:
TAO_UIPMC_Connection_Handler *connection_handler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/PortableGroup/UIPMC_Acceptor.i"
+#include "UIPMC_Acceptor.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.i b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.i
index ec296d0f9b6..3bda9ea1fca 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.i
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Acceptor.i
@@ -1,10 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_INET_Addr&
TAO_UIPMC_Acceptor::address (void) const
{
@@ -25,5 +21,3 @@ TAO_UIPMC_Acceptor::endpoints (void)
return this->addrs_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp
index df2fbd006c7..930e364b656 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.cpp
@@ -3,9 +3,9 @@
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Connection_Handler.h"
-#include "orbsvcs/PortableGroup/UIPMC_Transport.h"
-#include "orbsvcs/PortableGroup/UIPMC_Endpoint.h"
+#include "UIPMC_Connection_Handler.h"
+#include "UIPMC_Transport.h"
+#include "UIPMC_Endpoint.h"
#include "tao/Timeprobe.h"
#include "tao/debug.h"
@@ -23,7 +23,6 @@ ACE_RCSID(PortableGroup,
UIPMC_Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_UIPMC_Connection_Handler::TAO_UIPMC_Connection_Handler (ACE_Thread_Manager *t)
: TAO_UIPMC_SVC_HANDLER (t, 0 , 0),
@@ -263,5 +262,3 @@ TAO_UIPMC_Connection_Handler::add_transport_to_cache (void)
.transport_cache ().cache_transport (&prop,
this->transport ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.h
index 51153c2d196..0ea83fc2966 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connection_Handler.h
@@ -15,13 +15,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/UIPMC_Transport.h"
+#include "UIPMC_Transport.h"
#include "tao/Wait_Strategy.h"
#include "tao/Connection_Handler.h"
@@ -32,8 +32,6 @@
#include "ace/SOCK_Dgram.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward Decls
class TAO_Pluggable_Messaging;
@@ -47,6 +45,8 @@ class TAO_Pluggable_Messaging;
* The Connection handler which is common for the Acceptor and
* the Connector
*/
+
+
class TAO_PortableGroup_Export TAO_UIPMC_Connection_Handler :
public TAO_UIPMC_SVC_HANDLER,
public TAO_Connection_Handler
@@ -143,7 +143,5 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UIPMC_CONNECTION_HANDLER_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp
index a353451fc9b..370ff9fd142 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.cpp
@@ -1,7 +1,9 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Profile.h"
-#include "orbsvcs/PortableGroup/UIPMC_Connector.h"
+#include "UIPMC_Profile.h"
+#include "UIPMC_Connector.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -12,11 +14,9 @@
#include "ace/Connector.h"
#include "ace/OS_NS_strings.h"
-ACE_RCSID (PortableGroup,
+ACE_RCSID (tao,
UIPMC_Connector, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIPMC_Connector::TAO_UIPMC_Connector (CORBA::Boolean)
: TAO_Connector (TAO_TAG_UIPMC_PROFILE)
{
@@ -181,15 +181,15 @@ TAO_UIPMC_Connector::check_prefix (const char *endpoint)
if (!endpoint || !*endpoint)
return -1; // Failure
- static const char protocol[] = "miop";
- static size_t const len = sizeof (protocol) - 1;
+ const char *protocol[] = { "miop" };
- size_t const slot = ACE_OS::strchr (endpoint, ':') - endpoint;
+ size_t slot = ACE_OS::strchr (endpoint, ':') - endpoint;
+ size_t len0 = ACE_OS::strlen (protocol[0]);
// Check for the proper prefix in the IOR. If the proper prefix
// isn't in the IOR then it is not an IOR we can use.
- if (slot == len
- && ACE_OS::strncasecmp (endpoint, protocol, len) == 0)
+ if (slot == len0
+ && ACE_OS::strncasecmp (endpoint, protocol[0], len0) == 0)
return 0;
return -1;
@@ -205,14 +205,14 @@ TAO_UIPMC_Connector::object_key_delimiter (void) const
int
TAO_UIPMC_Connector::cancel_svc_handler (
- TAO_Connection_Handler * /* svc_handler */)
+ TAO_Connection_Handler * svc_handler)
{
+ ACE_UNUSED_ARG(svc_handler);
+
// Noop
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Hash <ACE_INET_Addr>;
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.h
index 43357053bd2..b537b14a02c 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Connector.h
@@ -17,19 +17,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/UIPMC_Connection_Handler.h"
+#include "UIPMC_Connection_Handler.h"
#include "tao/Transport_Connector.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
/**
@@ -92,8 +90,6 @@ private:
SvcHandlerIterator;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UIPMC_CONNECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp
index f10ce5cdafb..04ef32df9ce 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.cpp
@@ -1,6 +1,8 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Endpoint.h"
+#include "UIPMC_Endpoint.h"
#include "tao/debug.h"
#include "ace/Guard_T.h"
@@ -15,11 +17,9 @@ ACE_RCSID (tao,
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/PortableGroup/UIPMC_Endpoint.i"
+# include "UIPMC_Endpoint.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIPMC_Endpoint::TAO_UIPMC_Endpoint (void)
: TAO_Endpoint (TAO_TAG_UIPMC_PROFILE),
object_addr_ (),
@@ -145,5 +145,3 @@ TAO_UIPMC_Endpoint::hash (void)
return this->hash_val_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.h
index 3c137d6c9ef..f7a23583d58 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.h
@@ -25,9 +25,7 @@
#include "ace/INET_Addr.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
/**
* @class TAO_UIPMC_Endpoint
@@ -118,10 +116,8 @@ private:
TAO_UIPMC_Endpoint *next_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "orbsvcs/PortableGroup/UIPMC_Endpoint.i"
+# include "UIPMC_Endpoint.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.i b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.i
index 7d91cc4d459..c89f5618806 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.i
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Endpoint.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_INET_Addr &
TAO_UIPMC_Endpoint::object_addr (void) const
{
@@ -49,4 +46,3 @@ TAO_UIPMC_Endpoint::update_object_addr (void)
this->uint_ip_addr ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp
index 3f02a649f72..19d65555a11 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.cpp
@@ -1,18 +1,17 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Factory.h"
-#include "orbsvcs/PortableGroup/UIPMC_Acceptor.h"
-#include "orbsvcs/PortableGroup/UIPMC_Connector.h"
+#include "UIPMC_Factory.h"
+#include "UIPMC_Acceptor.h"
+#include "UIPMC_Connector.h"
#include "ace/OS_NS_strings.h"
-#include "tao/ORB_Constants.h"
ACE_RCSID (PortableGroup,
UIPMC_Factory,
"$Id$")
-static const char the_prefix[] = "uipmc";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "uipmc";
TAO_UIPMC_Protocol_Factory::TAO_UIPMC_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_UIPMC_PROFILE),
@@ -29,13 +28,13 @@ int
TAO_UIPMC_Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
// Check for the proper prefix for this protocol.
- return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
+ return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0);
}
const char *
TAO_UIPMC_Protocol_Factory::prefix (void) const
{
- return ::the_prefix;
+ return ::prefix_;
}
char
@@ -58,7 +57,7 @@ TAO_UIPMC_Protocol_Factory::make_acceptor (void)
int
TAO_UIPMC_Protocol_Factory::init (int /* argc */,
- char* /* argv */ [])
+ ACE_TCHAR* /* argv */ [])
{
return 0;
}
@@ -86,8 +85,6 @@ TAO_UIPMC_Protocol_Factory::requires_explicit_endpoint (void) const
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_UIPMC_Protocol_Factory,
ACE_TEXT ("UIPMC_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.h
index 8b7ab75adf2..1da6283791f 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Factory.h
@@ -23,9 +23,7 @@
#include "ace/Service_Config.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
class TAO_Acceptor;
class TAO_Connector;
@@ -38,7 +36,7 @@ public:
// = Service Configurator hooks.
/// Dynamic linking hook
- virtual int init (int argc, char* argv[]);
+ virtual int init (int argc, ACE_TCHAR* argv[]);
/// Verify prefix is a match
virtual int match_prefix (const ACE_CString &prefix);
@@ -62,8 +60,6 @@ private:
int minor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_UIPMC_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_PortableGroup, TAO_UIPMC_Protocol_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp
index 4e3d4173fcf..2f8473c5a73 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.cpp
@@ -1,8 +1,6 @@
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "UIPMC_Message_Block_Data_Iterator.h"
UIPMC_Message_Block_Data_Iterator::UIPMC_Message_Block_Data_Iterator (iovec *iov, int iovcnt) :
iov_ (iov),
@@ -85,5 +83,3 @@ UIPMC_Message_Block_Data_Iterator::next_block (size_t max_length,
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
index 0378e1aac7c..3f28eb5e7c6 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h
@@ -21,10 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class UIPMC_Message_Block_Data_Iterator
*
@@ -64,7 +60,5 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UIPMC_MESSAGE_BLOCK_DATA_ITERATOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp
index 0f1ddbbb73b..8c1cfd4af4f 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.cpp
@@ -1,7 +1,9 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Profile.h"
-#include "orbsvcs/PortableGroup/miopconf.h"
+#include "UIPMC_Profile.h"
+#include "miopconf.h"
#include "tao/CDR.h"
#include "tao/Environment.h"
#include "tao/ORB.h"
@@ -17,14 +19,12 @@ ACE_RCSID (PortableGroup,
UIPMC_Profile,
"$Id$")
-static const char the_prefix[] = "uipmc";
+static const char prefix_[] = "uipmc";
// UIPMC doesn't support object keys, so send profiles by default in the GIOP 1.2 target
// specification.
static const CORBA::Short default_addressing_mode_ = TAO_Target_Specification::Profile_Addr;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const char TAO_UIPMC_Profile::object_key_delimiter_ = '/';
char
@@ -105,59 +105,6 @@ TAO_UIPMC_Profile::~TAO_UIPMC_Profile (void)
}
int
-TAO_UIPMC_Profile::decode (TAO_InputCDR& cdr)
-{
- // The following is a selective reproduction of TAO_Profile::decode
-
- CORBA::ULong encap_len = cdr.length ();
-
- // Read and verify major, minor versions, ignoring profiles
- // whose versions we don't understand.
- if (!(cdr.read_octet (this->version_.major)
- && this->version_.major == TAO_DEF_GIOP_MAJOR
- && cdr.read_octet (this->version_.minor)
- && this->version_.minor <= TAO_DEF_GIOP_MINOR))
- {
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Profile::decode - v%d.%d\n"),
- this->version_.major,
- this->version_.minor));
- }
-
- return -1;
- }
-
- // Transport specific details
- if (this->decode_profile (cdr) < 0)
- {
- return -1;
- }
-
- // UIPMC profiles must have tagged components.
- if (this->tagged_components_.decode (cdr) == 0)
- {
- return -1;
- }
-
- if (cdr.length () != 0 && TAO_debug_level)
- {
- // If there is extra data in the profile we are supposed to
- // ignore it, but print a warning just in case...
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("%d bytes out of %d left after profile data\n"),
- cdr.length (),
- encap_len));
- }
-
- // We don't call ::decode_endpoints because it is implemented
- // as ACE_NOTSUP_RETURN (-1) for this profile
-
- return 1;
-}
-
-int
TAO_UIPMC_Profile::decode_endpoints (void)
{
ACE_NOTSUP_RETURN (-1);
@@ -275,7 +222,7 @@ TAO_UIPMC_Profile::parse_string_i (const char *string
ACE_CString ace_str (string, 0, 0);
// Look for the group domain delimitor.
- ssize_t pos = ace_str.find ('-');
+ int pos = ace_str.find ('-');
if (pos == ACE_CString::npos)
{
@@ -296,7 +243,7 @@ TAO_UIPMC_Profile::parse_string_i (const char *string
// Skip past the last '-'.
pos++;
- ssize_t end_pos = ace_str.find ('-',pos);
+ int end_pos = ace_str.find ('-',pos);
CORBA::Boolean parse_group_ref_version_flag = 0;
@@ -451,7 +398,7 @@ TAO_UIPMC_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
// @@ Frank: Update to pull out GroupID information...
- size_t buflen = (ACE_OS::strlen (::the_prefix) +
+ size_t buflen = (ACE_OS::strlen (::prefix_) +
3 /* "loc" */ +
1 /* colon separator */ +
2 /* double-slash separator */ +
@@ -467,7 +414,7 @@ TAO_UIPMC_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_OS::sprintf (buf,
"corbaloc:%s://1.0@%s:%d",
- ::the_prefix,
+ ::prefix_,
this->endpoint_.get_host_addr (),
this->endpoint_.port ());
return buf;
@@ -476,7 +423,7 @@ TAO_UIPMC_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
const char *
TAO_UIPMC_Profile::prefix (void)
{
- return ::the_prefix;
+ return ::prefix_;
}
IOP::TaggedProfile &
@@ -737,8 +684,7 @@ TAO_UIPMC_Profile::extract_group_component (const IOP::TaggedProfile &profile,
// Read and verify major, minor versions, ignoring UIPMC profiles
// whose versions we don't understand.
- CORBA::Octet major;
- CORBA::Octet minor = CORBA::Octet();
+ CORBA::Octet major, minor;
// Read the version. We just read it here. We don't*do any*
// processing.
@@ -796,5 +742,3 @@ TAO_UIPMC_Profile::extract_group_component (const IOP::TaggedProfile &profile,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h
index a6f8846eeb5..3b5ee25dc3a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Profile.h
@@ -17,13 +17,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/UIPMC_Endpoint.h"
+#include "UIPMC_Endpoint.h"
#include "orbsvcs/PortableGroupC.h"
@@ -33,7 +33,6 @@
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO UIPMC_Profile concrete Profile definitions
/**
@@ -81,11 +80,6 @@ public:
~TAO_UIPMC_Profile (void);
/// Template methods. Please see tao/Profile.h for documentation.
-
- /// N.B. We have to override the TAO_Profile default decode because
- /// in UIPMC there is no object key marshalled and we do not implement
- /// a useable ::decode_endpoints
- virtual int decode (TAO_InputCDR& cdr);
virtual void parse_string (const char *string
ACE_ENV_ARG_DECL);
virtual char * to_string (ACE_ENV_SINGLE_ARG_DECL);
@@ -159,7 +153,5 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UIPMC_PROFILE_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp
index 024aab7d021..ea424e9816c 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.cpp
@@ -1,11 +1,12 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Profile.h"
-#include "orbsvcs/PortableGroup/UIPMC_Transport.h"
-#include "orbsvcs/PortableGroup/UIPMC_Connection_Handler.h"
-#include "orbsvcs/PortableGroup/UIPMC_Message_Block_Data_Iterator.h"
-#include "orbsvcs/PortableGroup/UIPMC_Acceptor.h"
-#include "orbsvcs/PortableGroup/UIPMC_Wait_Never.h"
+#include "UIPMC_Profile.h"
+#include "UIPMC_Transport.h"
+#include "UIPMC_Connection_Handler.h"
+#include "UIPMC_Message_Block_Data_Iterator.h"
+#include "UIPMC_Acceptor.h"
+#include "UIPMC_Wait_Never.h"
#include "tao/Acceptor_Registry.h"
#include "tao/operation_details.h"
@@ -58,8 +59,6 @@ ACE_RCSID (PortableGroup,
static const CORBA::Octet miop_magic[4] = { 0x4d, 0x49, 0x4f, 0x50 }; // 'M', 'I', 'O', 'P'
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
struct MIOP_Packet
{
iovec iov[ACE_IOV_MAX];
@@ -67,7 +66,6 @@ struct MIOP_Packet
int length;
};
-
TAO_UIPMC_Transport::TAO_UIPMC_Transport (TAO_UIPMC_Connection_Handler *handler,
TAO_ORB_Core *orb_core,
CORBA::Boolean /*flag*/)
@@ -268,7 +266,7 @@ TAO_UIPMC_Transport::send (iovec *iov, int iovcnt,
current_fragment->iovcnt > 1)
{
// Fill in the packet length header field.
- *packet_length = static_cast<CORBA::UShort> (current_fragment->length);
+ *packet_length = current_fragment->length;
// If this is the last fragment, set the stop message flag.
if (num_fragments == 1)
@@ -491,34 +489,16 @@ TAO_UIPMC_Transport::handle_input (TAO_Resume_Handle &rh,
// Set the write pointer in the stack buffer.
message_block.wr_ptr (n);
-
- // Make a node of the message block..
- TAO_Queued_Data qd (&message_block);
- size_t mesg_length;
-
// Parse the incoming message for validity. The check needs to be
// performed by the messaging objects.
- if (this->messaging_object ()->parse_next_message (message_block,
- qd,
- mesg_length) == -1)
- {
- if (TAO_debug_level)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO: (%P|%t|%N|%l) handle_input failed on transport %d after fault\n"),
- this->id () ));
- }
-
- return -1;
- }
-
- if (message_block.length () > mesg_length)
+ if (this->parse_incoming_messages (message_block) == -1)
{
if (TAO_debug_level)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO: (%P|%t|%N|%l) handle_input failed on transport %d after fault\n"),
- this->id () ));
+ ACE_TEXT ("TAO: (%P|%t|%N|%l) parse_incoming_messages failed on transport %d after fault %p\n"),
+ this->id (),
+ ACE_TEXT ("handle_input_i ()\n")));
}
return -1;
@@ -528,6 +508,12 @@ TAO_UIPMC_Transport::handle_input (TAO_Resume_Handle &rh,
// missing data. We are assuming that ALL the data would be got in a
// single read.
+ // Make a node of the message block..
+ TAO_Queued_Data qd (&message_block);
+
+ // Extract the data for the node..
+ this->messaging_object ()->get_message_data (&qd);
+
// Process the message
return this->process_parsed_messages (&qd, rh);
}
@@ -600,6 +586,8 @@ TAO_UIPMC_Transport::send_message (TAO_OutputCDR &stream,
return 1;
}
+
+
int
TAO_UIPMC_Transport::messaging_init (CORBA::Octet major,
CORBA::Octet minor)
@@ -608,5 +596,3 @@ TAO_UIPMC_Transport::messaging_init (CORBA::Octet major,
minor);
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.h
index 634b85c0b1a..164e8991e51 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Transport.h
@@ -14,7 +14,7 @@
#define TAO_UIPMC_TRANSPORT_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
+#include "portablegroup_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#include "ace/SOCK_Stream.h"
#include "ace/Svc_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class TAO_UIPMC_Connection_Handler;
class TAO_ORB_Core;
@@ -125,7 +123,5 @@ private:
TAO_Pluggable_Messaging *messaging_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UIPMC_TRANSPORT_H */
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp
index 0e1a0f1bc89..a640656a52a 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "orbsvcs/PortableGroup/UIPMC_Wait_Never.h"
+#include "UIPMC_Wait_Never.h"
#include "tao/ORB_Core.h"
#include "tao/Transport.h"
#include "tao/debug.h"
ACE_RCSID(tao, Wait_On_Leader_Follower, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIPMC_Wait_Never::TAO_UIPMC_Wait_Never (TAO_Transport *transport)
: TAO_Wait_Strategy (transport)
{
@@ -49,5 +47,3 @@ TAO_UIPMC_Wait_Never::wait (ACE_Time_Value *,
{
return -1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.h b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.h
index 9f39cd77b91..799d09e2e64 100644
--- a/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.h
+++ b/TAO/orbsvcs/orbsvcs/PortableGroup/UIPMC_Wait_Never.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,9 +21,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/PortableGroup/portablegroup_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "portablegroup_export.h"
/**
* @class TAO_UIPMC_Wait_Never
@@ -52,7 +50,5 @@ public:
virtual bool can_process_upcalls (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UIPMC_WAIT_NEVER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp
index 817d0726b4b..13f444a73e0 100644
--- a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.cpp
@@ -19,8 +19,6 @@
ACE_RCSID(Property, CosPropertyService_i, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Methods to deal with ACE_Hash_Map_Manager.
CosProperty_Hash_Key::CosProperty_Hash_Key (void)
@@ -45,8 +43,8 @@ CosProperty_Hash_Key::CosProperty_Hash_Key (const CosProperty_Hash_Key &src)
bool
CosProperty_Hash_Key::operator == (const CosProperty_Hash_Key &hash_key) const
{
- return (ACE_OS::strcmp (this->pname_,
- hash_key.pname_) == 0);
+ return (ACE_OS::strcmp (this->pname_.in(),
+ hash_key.pname_.in()) == 0);
}
u_long
@@ -1884,5 +1882,3 @@ TAO_PropertiesIterator::destroy (ACE_ENV_SINGLE_ARG_DECL)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h
index 4d6ba893c16..33ee726d0ab 100644
--- a/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h
+++ b/TAO/orbsvcs/orbsvcs/Property/CosPropertyService_i.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Property/property_serv_export.h"
+#include "orbsvcs/Property/property_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,11 +33,9 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Classes to deal with the ACE_Hash_Map_Manager.
-class TAO_Property_Serv_Export CosProperty_Hash_Key
+class TAO_Property_Export CosProperty_Hash_Key
{
// = TITLE
// Key for the Hash Table. The EXT_ID of the
@@ -72,7 +70,7 @@ public:
// Storage pointer.
};
-class TAO_Property_Serv_Export CosProperty_Hash_Value
+class TAO_Property_Export CosProperty_Hash_Value
{
// = TITLE
// This will be the value part in the Hash_Table. The INT_ID of
@@ -109,7 +107,7 @@ class TAO_PropertySet;
// ============================================================================
-class TAO_Property_Serv_Export TAO_PropertySetFactory : public virtual POA_CosPropertyService::PropertySetFactory
+class TAO_Property_Export TAO_PropertySetFactory : public virtual POA_CosPropertyService::PropertySetFactory
{
// = TITLE
// Factory class for the TAO_PropertySet class objects.
@@ -162,7 +160,7 @@ class TAO_PropertySetDef;
// ============================================================================
-class TAO_Property_Serv_Export TAO_PropertySetDefFactory : public virtual POA_CosPropertyService::PropertySetDefFactory
+class TAO_Property_Export TAO_PropertySetDefFactory : public virtual POA_CosPropertyService::PropertySetDefFactory
{
// = TITLE
// Factory class for the TAO_PropertySetDef objects.
@@ -208,7 +206,7 @@ private:
// ============================================================================
-class TAO_Property_Serv_Export TAO_PropertySet : public virtual POA_CosPropertyService::PropertySet
+class TAO_Property_Export TAO_PropertySet : public virtual POA_CosPropertyService::PropertySet
{
// = TITLE
// Gives operations for defining, deleting, enumerating and
@@ -365,7 +363,7 @@ protected:
// ============================================================================
-class TAO_Property_Serv_Export TAO_PropertySetDef : public virtual POA_CosPropertyService::PropertySetDef,
+class TAO_Property_Export TAO_PropertySetDef : public virtual POA_CosPropertyService::PropertySetDef,
public virtual TAO_PropertySet
{
// = TITLE
@@ -488,7 +486,7 @@ public:
// ============================================================================
-class TAO_Property_Serv_Export TAO_PropertyNamesIterator
+class TAO_Property_Export TAO_PropertyNamesIterator
: public virtual POA_CosPropertyService::PropertyNamesIterator
{
// = TITLE
@@ -549,7 +547,7 @@ private:
// ============================================================================
-class TAO_Property_Serv_Export TAO_PropertiesIterator
+class TAO_Property_Export TAO_PropertiesIterator
: public virtual POA_CosPropertyService::PropertiesIterator
{
// = TITLE
@@ -610,8 +608,6 @@ private:
// The iterator object.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Property/property_serv_export.h b/TAO/orbsvcs/orbsvcs/Property/property_serv_export.h
deleted file mode 100644
index 593f9bc7d37..00000000000
--- a/TAO/orbsvcs/orbsvcs/Property/property_serv_export.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl
-// ------------------------------
-#ifndef TAO_PROPERTY_SERV_EXPORT_H
-#define TAO_PROPERTY_SERV_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (TAO_AS_STATIC_LIBS)
-# if !defined (TAO_PROPERTY_SERV_HAS_DLL)
-# define TAO_PROPERTY_SERV_HAS_DLL 0
-# endif /* ! TAO_PROPERTY_SERV_HAS_DLL */
-#else
-# if !defined (TAO_PROPERTY_SERV_HAS_DLL)
-# define TAO_PROPERTY_SERV_HAS_DLL 1
-# endif /* ! TAO_PROPERTY_SERV_HAS_DLL */
-#endif
-
-#if defined (TAO_PROPERTY_SERV_HAS_DLL) && (TAO_PROPERTY_SERV_HAS_DLL == 1)
-# if defined (TAO_PROPERTY_SERV_BUILD_DLL)
-# define TAO_Property_Serv_Export ACE_Proper_Export_Flag
-# define TAO_PROPERTY_SERV_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_PROPERTY_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_PROPERTY_SERV_BUILD_DLL */
-# define TAO_Property_Serv_Export ACE_Proper_Import_Flag
-# define TAO_PROPERTY_SERV_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_PROPERTY_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_PROPERTY_SERV_BUILD_DLL */
-#else /* TAO_PROPERTY_SERV_HAS_DLL == 1 */
-# define TAO_Property_Serv_Export
-# define TAO_PROPERTY_SERV_SINGLETON_DECLARATION(T)
-# define TAO_PROPERTY_SERV_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_PROPERTY_SERV_HAS_DLL == 1 */
-
-#endif /* TAO_PROPERTY_SERV_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/orbsvcs/orbsvcs/Property/property_skel_export.h b/TAO/orbsvcs/orbsvcs/Property/property_skel_export.h
deleted file mode 100644
index 60a4aa4fe46..00000000000
--- a/TAO/orbsvcs/orbsvcs/Property/property_skel_export.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl
-// ------------------------------
-#ifndef TAO_PROPERTY_SKEL_EXPORT_H
-#define TAO_PROPERTY_SKEL_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (TAO_AS_STATIC_LIBS)
-# if !defined (TAO_PROPERTY_SKEL_HAS_DLL)
-# define TAO_PROPERTY_SKEL_HAS_DLL 0
-# endif /* ! TAO_PROPERTY_SKEL_HAS_DLL */
-#else
-# if !defined (TAO_PROPERTY_SKEL_HAS_DLL)
-# define TAO_PROPERTY_SKEL_HAS_DLL 1
-# endif /* ! TAO_PROPERTY_SKEL_HAS_DLL */
-#endif
-
-#if defined (TAO_PROPERTY_SKEL_HAS_DLL) && (TAO_PROPERTY_SKEL_HAS_DLL == 1)
-# if defined (TAO_PROPERTY_SKEL_BUILD_DLL)
-# define TAO_Property_Skel_Export ACE_Proper_Export_Flag
-# define TAO_PROPERTY_SKEL_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_PROPERTY_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_PROPERTY_SKEL_BUILD_DLL */
-# define TAO_Property_Skel_Export ACE_Proper_Import_Flag
-# define TAO_PROPERTY_SKEL_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_PROPERTY_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_PROPERTY_SKEL_BUILD_DLL */
-#else /* TAO_PROPERTY_SKEL_HAS_DLL == 1 */
-# define TAO_Property_Skel_Export
-# define TAO_PROPERTY_SKEL_SINGLETON_DECLARATION(T)
-# define TAO_PROPERTY_SKEL_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_PROPERTY_SKEL_HAS_DLL == 1 */
-
-#endif /* TAO_PROPERTY_SKEL_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling.mpc b/TAO/orbsvcs/orbsvcs/RTCosScheduling.mpc
index 0350cf8953f..117fed37089 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling.mpc
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(RTCosScheduling) : orbsvcslib, core, rtportableserver, interceptors, codecfactory, tao_versioning_idl_defaults {
+project(RTCosScheduling) : orbsvcslib, core, rtportableserver, interceptors, codecfactory {
sharedname = TAO_RTCosScheduling
idlflags += -Gd -Wb,export_macro=TAO_RTCosScheduling_Export -Wb,export_include=orbsvcs/RTCosScheduling/RTCosScheduling_export.h
dynamicflags += TAO_RTCOSSCHEDULING_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp
index d13cfe93576..15df3752ffe 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.cpp
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -10,7 +10,7 @@
*/
//=============================================================================
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h"
+#include "RTCosScheduling_ClientScheduler_i.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_stdio.h"
@@ -20,8 +20,6 @@
#include "tao/PortableInterceptorC.h"
#include "tao/CodecFactory/CodecFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -520,5 +518,3 @@ ACE_THROW_SPEC ((CORBA::SystemException,
#endif /* TAO_HAS_INTERCEPTORS == 1 */
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h
index 69ac688e910..8ae82aaaba0 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ClientScheduler_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -38,7 +38,6 @@
#include "tao/CodecFactory/CodecFactory.h"
#include "tao/RTCORBA/Linear_Priority_Mapping.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO {
@@ -204,8 +203,6 @@ class TAO_RTCosScheduling_Export RTCosScheduling_ClientScheduler_i :
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.cpp b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.cpp
index 2f10810d9c9..5ef02463424 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.cpp
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.cpp
@@ -10,18 +10,16 @@
*/
//=============================================================================
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h"
+#include "RTCosScheduling_PCP_Manager.h"
#include "ace/Condition_Thread_Mutex.h"
#include "ace/Thread.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i"
+#include "RTCosScheduling_PCP_Manager.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO {
CosSchedulingLockList::CosSchedulingLockList(CosSchedulingLockNode *lock_array,
@@ -515,5 +513,3 @@ PCP_Manager_Factory::~PCP_Manager_Factory()
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h
index b7d3cda9069..69d71d1420f 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -37,7 +37,6 @@
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO {
@@ -295,12 +294,11 @@ public:
};
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+}
#if defined (__ACE_INLINE__)
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i"
+#include "RTCosScheduling_PCP_Manager.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i
index 15e9ced25a9..f6df426891f 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.i
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -12,8 +12,6 @@
*/
//=============================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* Returns a pointer to the node containing the highest ceiling (the
* first node in the list of held locks)
@@ -95,4 +93,3 @@ TAO::CosSchedulingLockNode::operator=(const CosSchedulingLockNode& L)
return *this;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp
index d0fb3c1c07b..ae3558de793 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.cpp
@@ -1,3 +1,5 @@
+/* -*- C++ -*- */
+
//=============================================================================
/**
* @file RTCosScheduling_ServerScheduler_i.cpp
@@ -8,12 +10,12 @@
*/
//=============================================================================
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h"
+#include "RTCosScheduling_ServerScheduler_i.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_unistd.h"
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i"
+#include "RTCosScheduling_ServerScheduler_i.i"
#endif /* __ACE_INLINE__ */
#include "tao/ORB_Core.h"
@@ -23,8 +25,6 @@
#include "tao/RTPortableServer/RTPortableServer.h"
#include "tao/CodecFactory/CodecFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO {
RTCosScheduling_ServerScheduler_i::
@@ -762,5 +762,3 @@ RTCosScheduling_ServerScheduler_i::resources(
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h
index beb95c8417c..0b7b3ff657e 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,7 +23,7 @@
#include "ace/SString.h"
#include <orbsvcs/RTCosSchedulingS.h>
#include <orbsvcs/RTCosScheduling/RTCosScheduling_export.h>
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_PCP_Manager.h"
+#include "RTCosScheduling_PCP_Manager.h"
#include "tao/PortableInterceptorC.h"
#include "tao/CodecFactory/CodecFactory.h"
#include "tao/LocalObject.h"
@@ -39,7 +39,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
#ifndef RTCOSSCHEDULING_SERVER_CONTAINERS
#define RTCOSSCHEDULING_SERVER_CONTAINERS
@@ -296,10 +295,8 @@ typedef ACE_Hash_Map_Manager_Ex_Adapter<
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i"
+#include "RTCosScheduling_ServerScheduler_i.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i
index 4bf50f13a5b..a8d071fc9fd 100644
--- a/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i
+++ b/TAO/orbsvcs/orbsvcs/RTCosScheduling/RTCosScheduling_ServerScheduler_i.i
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -10,9 +10,6 @@
*/
//=============================================================================
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Equal_To< COS_SCHEDULING_OBJECT_NAME_KEY >::operator () (
COS_SCHEDULING_OBJECT_NAME_KEY lhs,
@@ -35,5 +32,3 @@ TAO::CosSchedulingInvocation_Hash_key::operator () (
{
return static_cast<u_long> (key);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/RTEvent.mpc b/TAO/orbsvcs/orbsvcs/RTEvent.mpc
index 72141564487..b42e56b56ab 100644
--- a/TAO/orbsvcs/orbsvcs/RTEvent.mpc
+++ b/TAO/orbsvcs/orbsvcs/RTEvent.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(RTEvent) : orbsvcslib, core, svc_utils, tao_versioning_idl_defaults {
+project(RTEvent) : orbsvcslib, core, svc_utils {
sharedname = TAO_RTEvent
idlflags += -Wb,stub_export_macro=TAO_RTEvent_Export -Wb,stub_export_include=orbsvcs/Event/event_export.h -Wb,skel_export_macro=TAO_RTEvent_Skel_Export -Wb,skel_export_include=orbsvcs/Event/event_skel_export.h
dynamicflags = TAO_RTEVENT_BUILD_DLL
@@ -48,8 +48,4 @@ project(RTEvent) : orbsvcslib, core, svc_utils, tao_versioning_idl_defaults {
Template_Files {
}
-
- Pkgconfig_Files {
- TAO_RTEvent.pc.in
- }
}
diff --git a/TAO/orbsvcs/orbsvcs/RTEventLogAdmin.mpc b/TAO/orbsvcs/orbsvcs/RTEventLogAdmin.mpc
index 5ecee5826dd..88a06a5c1d1 100644
--- a/TAO/orbsvcs/orbsvcs/RTEventLogAdmin.mpc
+++ b/TAO/orbsvcs/orbsvcs/RTEventLogAdmin.mpc
@@ -1,107 +1,27 @@
// -*- MPC -*-
// $Id$
-project(RTEventLogAdmin_IDL) : orbsvcslib, core, dslogadmin, rtevent, tao_versioning_idl_defaults {
- custom_only = 1
- idlflags += -Wb,stub_export_macro=TAO_RTEventLog_Export -Wb,stub_export_include=orbsvcs/Log/rteventlog_export.h -Wb,skel_export_macro=TAO_RTEventLog_Skel_Export -Wb,skel_export_include=orbsvcs/Log/rteventlog_skel_export.h
-
- IDL_Files {
- RTEventLogAdmin.idl
- }
-}
-
-project(RTEventLogAdmin) : orbsvcslib, core, dslogadmin, rtevent {
+project(RTEventLogAdmin) : orbsvcslib, core, naming, rtevent_serv, rtsched, dslogadmin_serv {
sharedname = TAO_RTEventLogAdmin
+ idlflags += -Wb,export_macro=TAO_RTEventLog_Export -Wb,export_include=orbsvcs/Log/rteventlog_export.h
dynamicflags = TAO_RTEVENTLOG_BUILD_DLL
tagchecks += RTEventLog
- after += RTEventLogAdmin_IDL
-
- IDL_Files {
- }
-
- Source_Files {
- RTEventLogAdminC.cpp
- }
-
- Header_Files {
- RTEventLogAdminC.h
- Log/rteventlog_export.h
- }
-
- Inline_Files {
- RTEventLogAdminC.inl
- }
-
- Template_Files {
- }
-
- // explicit Resource_Files to avoid including _Skel & _Serv rc files.
- Resource_Files {
- }
-
- Pkgconfig_Files {
- TAO_RTEventLogAdmin.pc.in
- }
-}
-
-project(RTEventLogAdmin_Skel) : orbsvcslib, core, rteventlogadmin, dslogadmin_skel, rtevent_skel, portableserver {
- sharedname = TAO_RTEventLogAdmin_Skel
- dynamicflags = TAO_RTEVENTLOG_SKEL_BUILD_DLL
- tagchecks += RTEventLog
IDL_Files {
+ RTEventLogAdmin.idl
}
- Source_Files {
- RTEventLogAdminS.cpp
- }
-
- Header_Files {
- RTEventLogAdminS.h
- RTEventLogAdminS_T.h
- Log/rteventlog_skel_export.h
- }
-
- Inline_Files {
- RTEventLogAdminS.inl
- RTEventLogAdminS_T.inl
- }
-
- Template_Files {
- RTEventLogAdminS_T.cpp
- }
-
- Pkgconfig_Files {
- TAO_RTEventLogAdmin_Skel.pc.in
- }
-}
-
-project(RTEventLogAdmin_Serv) : orbsvcslib, core, rteventlogadmin_skel, dslogadmin_serv, rtevent_serv, rtsched {
- sharedname = TAO_RTEventLogAdmin_Serv
- dynamicflags = TAO_RTEVENTLOG_SERV_BUILD_DLL
- tagchecks += RTEventLog
-
- IDL_Files {
- }
-
- Source_Files {
- Log/RTEventLogConsumer.cpp
- Log/RTEventLogFactory_i.cpp
- Log/RTEventLogNotification.cpp
- Log/RTEventLog_i.cpp
- }
-
- Header_Files {
- Log/rteventlog_serv_export.h
- }
-
- Inline_Files {
+ Source_Files(ORBSVCS_COMPONENTS) {
+ RTEventLog {
+ RTEventLogAdminC.cpp
+ RTEventLogAdminS.cpp
+ Log/RTEventLogFactory_i.cpp
+ Log/RTEventLog_i.cpp
+ Log/RTEventLogConsumer.cpp
+ Log/RTEventLogNotification.cpp
+ }
}
Template_Files {
}
-
- Pkgconfig_Files {
- TAO_RTEventLogAdmin_Serv.pc.in
- }
}
diff --git a/TAO/orbsvcs/orbsvcs/RTEvent_Serv.mpc b/TAO/orbsvcs/orbsvcs/RTEvent_Serv.mpc
index 1e9797263d9..3c19e408e47 100644
--- a/TAO/orbsvcs/orbsvcs/RTEvent_Serv.mpc
+++ b/TAO/orbsvcs/orbsvcs/RTEvent_Serv.mpc
@@ -2,7 +2,6 @@
// $Id$
project(RTEvent_Serv) : orbsvcslib, core, rtevent_skel, svc_utils, messaging {
- avoids += ace_for_tao // Requires ACE_crc32
sharedname = TAO_RTEvent_Serv
dynamicflags = TAO_RTEVENT_SERV_BUILD_DLL
tagchecks += RTEvent
@@ -12,6 +11,7 @@ project(RTEvent_Serv) : orbsvcslib, core, rtevent_skel, svc_utils, messaging {
Source_Files {
Event/ECG_Adapters.cpp
+ Event/ECG_Address_Server_Base.cpp
Event/ECG_CDR_Message_Receiver.cpp
Event/ECG_CDR_Message_Sender.cpp
Event/ECG_Complex_Address_Server.cpp
@@ -92,8 +92,5 @@ project(RTEvent_Serv) : orbsvcslib, core, rtevent_skel, svc_utils, messaging {
Resource_Files{
RTEvent_Serv.rc
}
-
- Pkgconfig_Files {
- TAO_RTEvent_Serv.pc.in
- }
}
+
diff --git a/TAO/orbsvcs/orbsvcs/RTEvent_Skel.mpc b/TAO/orbsvcs/orbsvcs/RTEvent_Skel.mpc
index 6a8bb6d38b6..b443d655eb1 100644
--- a/TAO/orbsvcs/orbsvcs/RTEvent_Skel.mpc
+++ b/TAO/orbsvcs/orbsvcs/RTEvent_Skel.mpc
@@ -4,7 +4,6 @@
project(RTEvent_Skel) : orbsvcslib, core, rtevent, portableserver {
sharedname = TAO_RTEvent_Skel
dynamicflags = TAO_RTEVENT_SKEL_BUILD_DLL
- tagchecks += RTEvent
IDL_Files {
}
@@ -37,8 +36,4 @@ project(RTEvent_Skel) : orbsvcslib, core, rtevent, portableserver {
Resource_Files{
RTEvent_Skel.rc
}
-
- Pkgconfig_Files {
- TAO_RTEvent_Skel.pc.in
- }
}
diff --git a/TAO/orbsvcs/orbsvcs/RTSched.mpc b/TAO/orbsvcs/orbsvcs/RTSched.mpc
index 4659069665c..ef34a2ec2a6 100644
--- a/TAO/orbsvcs/orbsvcs/RTSched.mpc
+++ b/TAO/orbsvcs/orbsvcs/RTSched.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(RTSched) : orbsvcslib, core, naming, portableserver, svc_utils, tao_versioning_idl_defaults {
+project(RTSched) : orbsvcslib, core, naming, portableserver, svc_utils {
sharedname = TAO_RTSched
idlflags += -Wb,export_macro=TAO_RTSched_Export -Wb,export_include=orbsvcs/Sched/sched_export.h
dynamicflags = TAO_RTSCHED_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/RT_Notification.mpc b/TAO/orbsvcs/orbsvcs/RT_Notification.mpc
index f43b2825357..fe038ea6723 100644
--- a/TAO/orbsvcs/orbsvcs/RT_Notification.mpc
+++ b/TAO/orbsvcs/orbsvcs/RT_Notification.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(RT_Notification) : orbsvcslib, core, rtcorba, notification_serv, tao_versioning_idl_defaults {
+project(RT_Notification) : orbsvcslib, core, rtcorba, notification_serv {
sharedname = TAO_RT_Notification
idlflags += -Wb,export_macro=TAO_RT_Notify_Export -Wb,export_include=orbsvcs/Notify/rt_notify_export.h
dynamicflags = TAO_RT_NOTIFY_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp
index cc6cd3494f2..57df6a30ee3 100644
--- a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp
+++ b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.cpp
@@ -8,9 +8,7 @@ ACE_RCSID (orbsvcs,
Runtime_Scheduler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Constructor. Initialize the data from the POD_RT_Info array.
+ // Constructor. Initialize the data from the POD_RT_Info array.
ACE_Runtime_Scheduler::
ACE_Runtime_Scheduler (int config_count,
@@ -550,5 +548,3 @@ ACE_Runtime_Scheduler::get_config_infos (RtecScheduler::Config_Info_Set_out /*co
// or a proprietary ACE_NOTSUP; -- Bala
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h
index e0ca3e545ea..caf18c8b441 100644
--- a/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h
+++ b/TAO/orbsvcs/orbsvcs/Runtime_Scheduler.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -23,8 +22,6 @@
#include "orbsvcs/RtecSchedulerS.h"
#include "orbsvcs/Sched/sched_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTSched_Export ACE_Runtime_Scheduler : public POA_RtecScheduler::Scheduler
{
// = TITLE
@@ -282,7 +279,5 @@ private:
// The array of precomputed RT_Info structures.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_RUNTIME_SCHEDULER_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP.mpc b/TAO/orbsvcs/orbsvcs/SSLIOP.mpc
index 616f479f3ed..1a0c75461a4 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP.mpc
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP.mpc
@@ -2,7 +2,7 @@
//
// $Id$
-project(SSLIOP) : orbsvcslib, core, security, ssl, pi_server, interceptors, tao_versioning_idl_defaults {
+project(SSLIOP) : orbsvcslib, core, security, ssl, pi_server, interceptors {
sharedname = TAO_SSLIOP
idlflags += -Wb,export_macro=TAO_SSLIOP_Export -Wb,export_include=orbsvcs/SSLIOP/SSLIOP_Export.h
dynamicflags = TAO_SSLIOP_BUILD_DLL
@@ -31,8 +31,4 @@ project(SSLIOP) : orbsvcslib, core, security, ssl, pi_server, interceptors, tao_
Template_Files {
}
-
- Pidl_Files {
- SSLIOP
- }
}
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp
index 89bea659c76..ea425123143 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h"
+#include "IIOP_SSL_Acceptor.h"
#include "tao/ORB_Core.h"
#include "tao/debug.h"
@@ -8,8 +8,6 @@ ACE_RCSID (SSLIOP,
IIOP_SSL_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::IIOP_SSL_Acceptor::IIOP_SSL_Acceptor (CORBA::Boolean flag)
: TAO_IIOP_Acceptor (flag),
base_acceptor_ (),
@@ -35,5 +33,3 @@ TAO::IIOP_SSL_Acceptor::close (void)
{
return this->base_acceptor_.close ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h
index 951e2ab73be..4e1f3f2df8c 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h
@@ -18,7 +18,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h"
+#include "IIOP_SSL_Connection_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "tao/IIOP_Acceptor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -79,8 +77,6 @@ namespace TAO
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IIOP_SSL_ACCEPTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp
index fb9a61ba32b..bd27221202e 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h"
-#include "orbsvcs/SSLIOP/IIOP_SSL_Transport.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
+#include "IIOP_SSL_Connection_Handler.h"
+#include "IIOP_SSL_Transport.h"
+#include "SSLIOP_Connection_Handler.h"
#include "tao/Timeprobe.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
@@ -13,12 +13,12 @@ ACE_RCSID (SSLIOP,
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl"
+#include "IIOP_SSL_Connection_Handler.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_ENABLE_TIMEPROBES)
-static const char * const TAO_IIOP_SSL_Connect_Timeprobe_Description[] =
+static const char *TAO_IIOP_SSL_Connect_Timeprobe_Description[] =
{
"IIOP_SSL_Connection_Handler::handle_input - start",
"IIOP_SSL_Connection_Handler::handle_input - end",
@@ -50,8 +50,6 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_IIOP_SSL_Connect_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::IIOP_SSL_Connection_Handler::IIOP_SSL_Connection_Handler (
ACE_Thread_Manager *t)
: TAO_IIOP_Connection_Handler (t)
@@ -70,15 +68,15 @@ TAO::IIOP_SSL_Connection_Handler::IIOP_SSL_Connection_Handler (
CORBA::Boolean /* flag */)
: TAO_IIOP_Connection_Handler (orb_core, 0)
{
- // Delete the transport with TAO_IIOP_Connection_Handler.
- delete this->transport ();
-
IIOP_SSL_Transport* specific_transport = 0;
ACE_NEW (specific_transport,
IIOP_SSL_Transport (this,
orb_core,
0));
+ // Delete the transport with TAO_IIOP_Connection_Handler.
+ delete this->transport ();
+
// store this pointer
this->transport (specific_transport);
}
@@ -87,4 +85,4 @@ TAO::IIOP_SSL_Connection_Handler::~IIOP_SSL_Connection_Handler (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+// ****************************************************************
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h
index 3c81122ede9..0f9389753c7 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h
@@ -16,18 +16,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
+#include "SSLIOP_Current.h"
#include "orbsvcs/SSLIOPC.h"
#include "tao/IIOP_Connection_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -110,10 +109,9 @@ namespace TAO
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl"
+#include "IIOP_SSL_Connection_Handler.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl
index 7a0b3d4b320..0d8b95058be 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::Null_SSL_State_Guard::Null_SSL_State_Guard (
TAO::SSLIOP::Current_ptr current,
@@ -29,5 +27,3 @@ TAO::Null_SSL_State_Guard::~Null_SSL_State_Guard (void)
this->current_->teardown (this->previous_current_impl_,
this->setup_done_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
index 51a3db9a486..a8075b44aeb 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connector.h"
+#include "IIOP_SSL_Connector.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -18,8 +18,6 @@ ACE_RCSID (SSLIOP,
IIOP_SSL_Connector,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::IIOP_SSL_Connector::IIOP_SSL_Connector (CORBA::Boolean flag)
: TAO_IIOP_Connector (flag),
connect_strategy_ (),
@@ -284,5 +282,3 @@ TAO::IIOP_SSL_Connector::cancel_svc_handler (
return -1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.h b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.h
index b051fa19cae..87b3f5b280c 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Connector.h
@@ -18,7 +18,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h"
+#include "IIOP_SSL_Connection_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "tao/IIOP_Connector.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -97,8 +95,6 @@ namespace TAO
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IIOP_SSL_CONNECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp
index 1a5d1724a2e..9fa051b7821 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/SSLIOP/IIOP_SSL_Transport.h"
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connection_Handler.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Util.h"
+#include "IIOP_SSL_Transport.h"
+#include "IIOP_SSL_Connection_Handler.h"
+#include "SSLIOP_Util.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
@@ -12,7 +12,6 @@ ACE_RCSID (SSLIOP,
IIOP_SSL_Transport,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::IIOP_SSL_Transport::IIOP_SSL_Transport (
IIOP_SSL_Connection_Handler *handler,
@@ -50,5 +49,3 @@ TAO::IIOP_SSL_Transport::handle_input (TAO_Resume_Handle &rh,
max_wait_time,
block);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.h b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.h
index a6c1aa7ea0f..1cd2555976b 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/IIOP_SSL_Transport.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
+#include "SSLIOP_Current.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
@@ -24,7 +24,6 @@
#include "tao/IIOP_Transport.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Core;
class TAO_Resume_Handle;
@@ -83,8 +82,6 @@ namespace TAO
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IIOP_SSL_TRANSPORT_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.cpp
index 20845593237..b5f5607d416 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.cpp
@@ -1,11 +1,10 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h"
+#include "SSLIOP_Accept_Strategy.h"
ACE_RCSID (SSLIOP,
SSLIOP_Accept_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SSLIOP::Accept_Strategy::Accept_Strategy (
TAO_ORB_Core * orb_core,
@@ -59,4 +58,3 @@ TAO::SSLIOP::Accept_Strategy::accept_svc_handler (handler_type * svc_handler)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h
index 0ce82cca857..285376f4faa 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h
@@ -24,13 +24,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
+#include "SSLIOP_Connection_Handler.h"
#include "tao/Acceptor_Impl.h"
#include "ace/SSL/SSL_SOCK_Acceptor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -91,7 +90,6 @@ namespace TAO
} // End SSLIOP namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp
index b4cd56e4806..08ca12a06cf 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Acceptor.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Profile.h"
+#include "SSLIOP_Acceptor.h"
+#include "SSLIOP_Profile.h"
#include "tao/MProfile.h"
#include "tao/ORB_Core.h"
@@ -9,7 +9,7 @@
#include "tao/debug.h"
#if !defined(__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/SSLIOP_Acceptor.i"
+#include "SSLIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
@@ -17,8 +17,6 @@ ACE_RCSID (SSLIOP,
SSLIOP_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::Acceptor::Acceptor (::Security::QOP qop,
const ACE_Time_Value & timeout)
: TAO::IIOP_SSL_Acceptor (),
@@ -676,5 +674,3 @@ TAO::SSLIOP::Acceptor::verify_secure_configuration (TAO_ORB_Core *orb_core,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h
index f8c12442dc3..2c4e9afcf5c 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.h
@@ -26,15 +26,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/IIOP_SSL_Acceptor.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Accept_Strategy.h"
+#include "IIOP_SSL_Acceptor.h"
+#include "SSLIOP_Connection_Handler.h"
+#include "SSLIOP_Accept_Strategy.h"
#include "orbsvcs/SSLIOPC.h" /* CSIv1 */
#include "orbsvcs/CSIIOPC.h" /* CSIv2 */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -45,7 +43,7 @@ namespace TAO
*
* @brief The SSLIOP-specific bridge class for the concrete acceptor.
*/
- class Acceptor
+ class TAO_SSLIOP_Export Acceptor
: public IIOP_SSL_Acceptor
{
public:
@@ -158,10 +156,8 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/SSLIOP_Acceptor.i"
+#include "SSLIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.i b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.i
index 9dd630f54ef..d37f85ba422 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.i
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Acceptor.i
@@ -3,12 +3,8 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const SSLIOP::SSL &
TAO::SSLIOP::Acceptor::ssl_component (void) const
{
return this->ssl_component_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp
index 4cf1fe799fb..d22485f2af1 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h"
-#include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h"
+#include "SSLIOP_ClientCredentials.h"
+#include "SSLIOP_OwnCredentials.h"
ACE_RCSID (SSLIOP,
@@ -9,8 +9,6 @@ ACE_RCSID (SSLIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::ClientCredentials::ClientCredentials (
X509 * cert,
EVP_PKEY *evp,
@@ -138,5 +136,3 @@ TAO::SSLIOP::ClientCredentials::integrity (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h
index ce621276918..5e030734636 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h
@@ -35,8 +35,6 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -48,7 +46,7 @@ namespace TAO
*
*
*/
- class ClientCredentials
+ class TAO_SSLIOP_Export ClientCredentials
: public virtual SecurityLevel3::ClientCredentials,
public virtual SSLIOP_Credentials
{
@@ -142,7 +140,6 @@ namespace TAO
} // End SSLIOP namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
index 3d652c1df81..8d288191435 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Endpoint.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Util.h"
+#include "SSLIOP_Connection_Handler.h"
+#include "SSLIOP_Endpoint.h"
+#include "SSLIOP_Util.h"
#include "tao/debug.h"
#include "tao/Base_Transport_Property.h"
@@ -15,7 +15,7 @@
#include "ace/os_include/os_netdb.h"
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i"
+# include "SSLIOP_Connection_Handler.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (SSLIOP,
@@ -24,8 +24,6 @@ ACE_RCSID (SSLIOP,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::Connection_Handler::Connection_Handler (
ACE_Thread_Manager *t)
: SVC_HANDLER (t, 0 , 0),
@@ -442,4 +440,3 @@ TAO::SSLIOP::Connection_Handler::teardown_ssl_state (
setup_done);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h
index 9ce3ba997af..06ad1f2b0ae 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h
@@ -23,16 +23,14 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Transport.h"
+#include "SSLIOP_Current.h"
+#include "SSLIOP_Transport.h"
#include "tao/Connection_Handler.h"
#include "tao/IIOPC.h"
#include "ace/Reactor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IIOP_Properties;
namespace TAO
@@ -189,11 +187,9 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i"
+#include "SSLIOP_Connection_Handler.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i
index 193fc62f426..0131b083abc 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.i
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::SSLIOP::State_Guard::State_Guard (
@@ -25,5 +24,3 @@ TAO::SSLIOP::State_Guard::~State_Guard (void)
this->handler_->teardown_ssl_state (this->previous_current_impl_,
this->setup_done_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp
index 9d67b651a5d..7347aefe0b3 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Connector.h"
-#include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Profile.h"
-#include "orbsvcs/SSLIOP/SSLIOP_X509.h"
+#include "SSLIOP_Connector.h"
+#include "SSLIOP_OwnCredentials.h"
+#include "SSLIOP_Profile.h"
+#include "SSLIOP_X509.h"
#include "orbsvcs/SecurityLevel2C.h"
@@ -24,8 +24,6 @@ ACE_RCSID (SSLIOP,
SSLIOP_Connector,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::Connector::Connector (::Security::QOP qop)
: TAO::IIOP_SSL_Connector (),
qop_ (qop),
@@ -221,7 +219,7 @@ TAO::SSLIOP::Connector::connect (TAO::Profile_Transport_Resolver *resolver,
TAO_Profile *
TAO::SSLIOP::Connector::create_profile (TAO_InputCDR& cdr)
{
- TAO_Profile *pfile = 0;
+ TAO_Profile *pfile;
ACE_NEW_RETURN (pfile,
TAO_SSLIOP_Profile (this->orb_core ()),
0);
@@ -485,7 +483,7 @@ TAO::SSLIOP::Connector::ssliop_connect (
// profile does not (and cannot) contain the desired QOP, trust, or
// credential information which is necesary to uniquely identify
// this connection.
- if (!ssl_endpoint->credentials_set ())
+ if (!ssl_endpoint->credentials_set())
{
if (TAO_debug_level > 2)
ACE_DEBUG ((LM_ERROR,
@@ -858,5 +856,3 @@ TAO::SSLIOP::Connector::cancel_svc_handler (
return -1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.h
index 99578662196..dd4cfef6ec4 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.h
@@ -25,13 +25,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/IIOP_SSL_Connector.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
+#include "IIOP_SSL_Connector.h"
+#include "SSLIOP_Connection_Handler.h"
#include "ace/SSL/SSL_SOCK_Connector.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_Base_Transport_Property;
@@ -52,7 +50,7 @@ namespace TAO
* for establishing a connection with a server and is called from
* the Connector_Registry.
*/
- class Connector : public TAO::IIOP_SSL_Connector
+ class TAO_SSLIOP_Export Connector : public TAO::IIOP_SSL_Connector
{
public:
@@ -155,8 +153,6 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SSLIOP_CONNECTOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp
index 9f8804ad604..2e70bec4633 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Credentials.h"
+#include "SSLIOP_Credentials.h"
#include "tao/ORB_Constants.h"
@@ -11,10 +11,9 @@ ACE_RCSID (SSLIOP,
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Credentials.inl"
+# include "SSLIOP_Credentials.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SSLIOP_Credentials::SSLIOP_Credentials (::X509 *cert, ::EVP_PKEY *evp)
: x509_ (TAO::SSLIOP::OpenSSL_traits< ::X509 >::_duplicate (cert)),
@@ -264,4 +263,3 @@ tao_TAO_SSLIOP_Credentials_upcast (void *src)
return *tmp;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.h
index c60f0ce5d68..89b27c15a62 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.h
@@ -15,20 +15,17 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_X509.h"
-#include "orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h"
+#include "SSLIOP_X509.h"
+#include "SSLIOP_EVP_PKEY.h"
#include "orbsvcs/SecurityLevel3C.h"
#include "tao/LocalObject.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class SSLIOP_Credentials;
@@ -172,10 +169,8 @@ namespace TAO
// } // End SSLIOP namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Credentials.inl"
+# include "SSLIOP_Credentials.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.inl b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.inl
index 42970eb800f..8c353c74cff 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.inl
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ::X509 *
TAO::SSLIOP_Credentials::x509 (void)
{
@@ -17,5 +15,3 @@ TAO::SSLIOP_Credentials::evp (void)
return
TAO::SSLIOP::OpenSSL_traits< ::EVP_PKEY >::_duplicate (this->evp_.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp
index 1858e9a3b1b..088255970f4 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h"
-#include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h"
+#include "SSLIOP_CredentialsAcquirer.h"
+#include "SSLIOP_OwnCredentials.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
@@ -21,27 +21,12 @@ ACE_RCSID (SSLIOP,
// -------------------------------------------------------
-#if (defined (TAO_HAS_VERSIONED_NAMESPACE) \
- && TAO_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define TAO_SSLIOP_PASSWORD_CALLBACK_NAME ACE_PREPROC_CONCATENATE(TAO_VERSIONED_NAMESPACE_NAME, _TAO_SSLIOP_password_callback)
-
-#else
-
-# define TAO_SSLIOP_PASSWORD_CALLBACK_NAME TAO_SSLIOP_password_callback
-
-#endif /* TAO_HAS_VERSIONED_NAMESPACE == 1 */
-
-
extern "C"
int
-TAO_SSLIOP_PASSWORD_CALLBACK_NAME (char *buf,
- int size,
- int /* rwflag */,
- void *userdata)
+TAO_SSLIOP_password_callback (char *buf,
+ int size,
+ int /* rwflag */,
+ void *userdata)
{
// @@ I'm probably over complicating this implementation, but that's
// what you get when you try to be overly efficient. :-)
@@ -81,8 +66,6 @@ TAO_SSLIOP_PASSWORD_CALLBACK_NAME (char *buf,
// -------------------------------------------------------
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::CredentialsAcquirer::CredentialsAcquirer (
TAO::SL3::CredentialsCurator_ptr curator,
const CORBA::Any & acquisition_arguments)
@@ -303,7 +286,7 @@ TAO::SSLIOP::CredentialsAcquirer::make_X509 (const ::SSLIOP::File &certificate)
// it to OpenSSL's internal X.509 format.
x = PEM_read_X509 (fp,
0,
- TAO_SSLIOP_PASSWORD_CALLBACK_NAME,
+ TAO_SSLIOP_password_callback,
const_cast<char *> (password));
}
@@ -381,7 +364,7 @@ TAO::SSLIOP::CredentialsAcquirer::make_EVP_PKEY (const ::SSLIOP::File &key)
// OpenSSL's internal private key format.
evp = PEM_read_PrivateKey (fp,
0,
- TAO_SSLIOP_PASSWORD_CALLBACK_NAME,
+ TAO_SSLIOP_password_callback,
const_cast<char *> (password));
}
@@ -392,5 +375,3 @@ TAO::SSLIOP::CredentialsAcquirer::make_EVP_PKEY (const ::SSLIOP::File &key)
return evp;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h
index 734ca4d1884..a77db17cf59 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h
@@ -44,7 +44,6 @@ extern "C"
typedef struct evp_pkey_st EVP_PKEY;
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -143,7 +142,6 @@ namespace TAO
} // End SSLIOP namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.cpp
index 06ac8c86977..1f5593c6108 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h"
-#include "orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirer.h"
+#include "SSLIOP_CredentialsAcquirerFactory.h"
+#include "SSLIOP_CredentialsAcquirer.h"
ACE_RCSID (SSLIOP,
@@ -9,8 +9,6 @@ ACE_RCSID (SSLIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
SecurityLevel3::CredentialsAcquirer_ptr
TAO::SSLIOP::CredentialsAcquirerFactory::make (
TAO::SL3::CredentialsCurator_ptr curator,
@@ -26,5 +24,3 @@ TAO::SSLIOP::CredentialsAcquirerFactory::make (
return ca;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h
index dcc44e36919..6918b068b0d 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h
@@ -27,8 +27,6 @@
#include "orbsvcs/SecurityLevel3C.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -58,7 +56,6 @@ namespace TAO
} // End SSLIOP namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp
index 9d39c05ba21..bf352552e64 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
+#include "SSLIOP_Current.h"
#include "tao/debug.h"
@@ -8,10 +8,9 @@ ACE_RCSID (SSLIOP,
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Current.inl"
+# include "SSLIOP_Current.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SSLIOP::Current::Current (TAO_ORB_Core *orb_core)
: tss_slot_ (0),
@@ -194,4 +193,3 @@ tao_TAO_SSLIOP_Current_upcast (
return *tmp;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h
index 2de37f5cbc6..a71b824b845 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.h
@@ -15,13 +15,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Current_Impl.h"
+#include "SSLIOP_Current_Impl.h"
#include "orbsvcs/SSLIOPC.h"
#include "tao/ORB_Core.h"
@@ -34,7 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -54,7 +53,7 @@ namespace TAO
* SSL peer certificate chains for the current request can be
* obtained from this object.
*/
- class Current
+ class TAO_SSLIOP_Export Current
: public ::SSLIOP::Current,
public TAO_Local_RefCounted_Object
{
@@ -142,8 +141,8 @@ namespace TAO
/// Prevent copying through the copy constructor and the assignment
/// operator.
//@{
- Current (const Current &);
- void operator= (const Current &);
+ ACE_UNIMPLEMENTED_FUNC (Current (const Current &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const Current &))
//@}
private:
@@ -153,17 +152,15 @@ namespace TAO
/// Pointer to the ORB Core corresponding to the ORB with which this
/// object is registered.
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core *orb_core_;
};
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Current.inl"
+# include "SSLIOP_Current.inl"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.inl b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.inl
index 1584b919606..cef3feb365c 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.inl
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO::SSLIOP::Current::tss_slot (size_t slot)
{
@@ -36,5 +34,3 @@ TAO::SSLIOP::Current::implementation (void)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp
index 27f173dfaac..6ee7a07cffe 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Current_Impl.h"
+#include "SSLIOP_Current_Impl.h"
#include "ace/OS_String.h"
@@ -9,17 +9,14 @@ ACE_RCSID (SSLIOP,
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl"
+# include "SSLIOP_Current_Impl.inl"
#endif /* __ACE_INLINE__ */
-#include "orbsvcs/SSLIOP/SSLIOP_X509.h"
-#include "orbsvcs/SSLIOP/SSLIOP_ClientCredentials.h"
-
-#include "tao/ORB_Constants.h"
+#include "SSLIOP_X509.h"
+#include "SSLIOP_ClientCredentials.h"
#include <openssl/x509.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SSLIOP::Current_Impl::~Current_Impl (void)
{
@@ -124,5 +121,3 @@ TAO::SSLIOP::Current_Impl::tag (void) const
{
return ::SSLIOP::TAG_SSL_SEC_TRANS;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.h
index 32bc8c7a283..5502393a62b 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.h
@@ -23,11 +23,10 @@
#include "orbsvcs/SSLIOPC.h"
#include "orbsvcs/Security/SL3_SecurityCurrent_Impl.h"
+#include "tao/ORB_Core.h"
#include <openssl/ssl.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -102,10 +101,8 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl"
+# include "SSLIOP_Current_Impl.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl
index d1f4b91ee81..73f2e9a988b 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Current_Impl.inl
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::SSLIOP::Current_Impl::Current_Impl (void)
: ssl_ (0)
@@ -22,5 +20,3 @@ TAO::SSLIOP::Current_Impl::ssl (void)
{
return this->ssl_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp
index 020904b53d2..9ed92d48a82 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.cpp
@@ -1,12 +1,12 @@
// -*- C++ -*-
-#include "orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h"
+#include "SSLIOP_EVP_PKEY.h"
#include <openssl/x509.h>
#include <openssl/rsa.h>
#include <openssl/dsa.h>
#include <openssl/dh.h>
-#include "orbsvcs/SSLIOP/params_dup.h"
+#include "params_dup.h"
ACE_RCSID (SSLIOP,
@@ -14,8 +14,6 @@ ACE_RCSID (SSLIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
::EVP_PKEY *
TAO::SSLIOP::OpenSSL_traits< ::EVP_PKEY >::copy (::EVP_PKEY const & key)
{
@@ -47,7 +45,7 @@ TAO::SSLIOP::OpenSSL_traits< ::EVP_PKEY >::copy (::EVP_PKEY const & key)
if (dsa != 0)
{
// Not exception safe!
- ::EVP_PKEY_set1_DSA (p.in (), DSAPARAMS_DUP_WRAPPER_NAME (dsa));
+ ::EVP_PKEY_set1_DSA (p.in (), DSAparams_dup_wrapper (dsa));
::DSA_free (dsa);
}
}
@@ -59,7 +57,7 @@ TAO::SSLIOP::OpenSSL_traits< ::EVP_PKEY >::copy (::EVP_PKEY const & key)
if (dh != 0)
{
// Not exception safe!
- ::EVP_PKEY_set1_DH (p.in (), DHPARAMS_DUP_WRAPPER_NAME (dh));
+ ::EVP_PKEY_set1_DH (p.in (), DHparams_dup_wrapper (dh));
::DH_free (dh);
}
}
@@ -73,4 +71,3 @@ TAO::SSLIOP::OpenSSL_traits< ::EVP_PKEY >::copy (::EVP_PKEY const & key)
return p._retn ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h
index 8c43b8a5b68..903828b73d5 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_EVP_PKEY.h
@@ -21,12 +21,11 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h"
+#include "SSLIOP_OpenSSL_st_T.h"
#include <openssl/evp.h>
#include <openssl/crypto.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -72,7 +71,6 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp
index 62061e03009..68a0492e95d 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Endpoint.h"
+#include "SSLIOP_Endpoint.h"
#include "tao/IIOP_Endpoint.h"
@@ -14,11 +14,9 @@ ACE_RCSID (SSLIOP,
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/SSLIOP/SSLIOP_Endpoint.i"
+# include "SSLIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SSLIOP_Endpoint::TAO_SSLIOP_Endpoint (const ::SSLIOP::SSL *ssl_component,
TAO_IIOP_Endpoint *iiop_endp)
: TAO_Endpoint (IOP::TAG_INTERNET_IOP),
@@ -379,4 +377,3 @@ TAO_SSLIOP_Synthetic_Endpoint::duplicate (void)
return endpoint;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.h
index a7032ee4648..a250f7424fd 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.h
@@ -18,13 +18,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h"
+#include "SSLIOP_OwnCredentials.h"
#include "orbsvcs/SSLIOPC.h"
#include "orbsvcs/SecurityC.h"
@@ -32,8 +32,6 @@
#include "tao/IIOP_Endpoint.h"
#include "ace/INET_Addr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/// Tag for storing multiple ssl endpoints within a single profile.
@@ -245,10 +243,8 @@ namespace TAO
// } // End SSLIOP namespace.
// } // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/SSLIOP_Endpoint.i"
+#include "SSLIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.i b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.i
index 9ea9beb96b6..9b9f9e4d585 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.i
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Endpoint.i
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_IIOP_Endpoint *
TAO_SSLIOP_Endpoint::iiop_endpoint (void) const
{
@@ -66,5 +64,3 @@ TAO_SSLIOP_Endpoint::credentials_set (void) const
{
return this->credentials_set_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp
index 49a369925e7..28c6cc119c3 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Factory.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Acceptor.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Connector.h"
-#include "orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h"
+#include "SSLIOP_Factory.h"
+#include "SSLIOP_Acceptor.h"
+#include "SSLIOP_Connector.h"
+#include "SSLIOP_ORBInitializer.h"
#include "ace/OS_NS_strings.h"
#include "orbsvcs/Security/Security_ORBInitializer.h" /// @todo should go away
@@ -23,18 +23,16 @@ static const unsigned char session_id_context_[] =
"$Id$";
// Protocol name prefix
-static const char * const the_prefix[] = {"iiop", "ssliop"};
+static const char *prefix_[] = {"iiop", "ssliop"};
// An OS-dependent path separator character
-static ACE_TCHAR const TAO_PATH_SEPARATOR_STRING[] =
+static const char *TAO_PATH_SEPARATOR_STRING =
#if defined(ACE_WIN32)
ACE_TEXT (";");
#else
ACE_TEXT (":");
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -59,8 +57,8 @@ int
TAO::SSLIOP::Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
// Check for the proper prefix for this protocol.
- return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix[0]) == 0)
- || (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix[1]) == 0);
+ return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_[0]) == 0)
+ || (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_[1]) == 0);
}
const char *
@@ -70,7 +68,7 @@ TAO::SSLIOP::Protocol_Factory::prefix (void) const
// keeping it may make things more confusing - a Factory can
// well be handling multiple protocol prefixes, not just one!
// Shouldn't it be deprecated?
- return ::the_prefix[0];
+ return ::prefix_[0];
}
char
@@ -97,10 +95,10 @@ TAO::SSLIOP::Protocol_Factory::make_acceptor (void)
// the buffer pointed to by arg!
int
TAO::SSLIOP::Protocol_Factory::parse_x509_file (char *arg,
- char **path)
+ char **path)
{
- ACE_ASSERT (arg != 0);
- ACE_ASSERT (path != 0);
+ ACE_ASSERT (arg!= 0);
+ ACE_ASSERT (path!= 0);
char *lst = 0;
const char *type_name = ACE_OS::strtok_r (arg, ":", &lst);
@@ -118,7 +116,7 @@ TAO::SSLIOP::Protocol_Factory::parse_x509_file (char *arg,
int
TAO::SSLIOP::Protocol_Factory::init (int argc,
- char* argv[])
+ ACE_TCHAR* argv[])
{
char *certificate_path = 0;
char *private_key_path = 0;
@@ -601,7 +599,6 @@ TAO::SSLIOP::Protocol_Factory::requires_explicit_endpoint (void) const
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (TAO_SSLIOP_Protocol_Factory,
ACE_TEXT ("SSLIOP_Factory"),
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.h
index 169e12b7bf2..ad694e1ee78 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Factory.h
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,11 +33,10 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
+
namespace TAO
{
namespace SSLIOP
@@ -64,7 +63,7 @@ namespace TAO
// = Service Configurator hooks.
/// Dynamic linking hook
- virtual int init (int argc, char* argv[]);
+ virtual int init (int argc, ACE_TCHAR* argv[]);
/// Verify prefix is a match
virtual int match_prefix (const ACE_CString & prefix);
@@ -121,7 +120,7 @@ namespace TAO
* mechanism list of the @c CSIIOP::CompoundSecMechList IOR tagged
* component.
*/
- // CSIIOP::TLS_SEC_TRANS * csiv2_component_;
+ CSIIOP::TLS_SEC_TRANS * csiv2_component_;
};
} // End SSLIOP namespace.
@@ -130,8 +129,6 @@ namespace TAO
// Work around preprocessor tokenization.
typedef TAO::SSLIOP::Protocol_Factory TAO_SSLIOP_Protocol_Factory;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_SSLIOP, TAO_SSLIOP_Protocol_Factory)
ACE_STATIC_SVC_REQUIRE (TAO_SSLIOP_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_SSLIOP, TAO_SSLIOP_Protocol_Factory)
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp
index 5e90c389e80..0bac6e26251 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.cpp
@@ -1,22 +1,15 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h"
+#include "SSLIOP_Invocation_Interceptor.h"
-#include "orbsvcs/SecurityLevel2C.h"
-
-#include "tao/ORB_Constants.h"
-#include "tao/PortableServer/PS_CurrentC.h"
#include "tao/debug.h"
-#if defined(SSLIOP_DEBUG_PEER_CERTIFICATE)
-#include <openssl/x509.h> // @@ For debugging code below
-#endif /* DEBUG_PEER_CERTIFICATES */
+// #include <openssl/x509.h> // @@ For debugging code below
+
ACE_RCSID (SSLIOP,
SSLIOP_Invocation_Interceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::Server_Invocation_Interceptor::Server_Invocation_Interceptor (
::SSLIOP::Current_ptr current,
::Security::QOP qop)
@@ -48,7 +41,7 @@ TAO::SSLIOP::Server_Invocation_Interceptor::destroy (
void
TAO::SSLIOP::Server_Invocation_Interceptor::receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr /*ri*/
+ PortableInterceptor::ServerRequestInfo_ptr /* ri */
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
@@ -62,17 +55,14 @@ TAO::SSLIOP::Server_Invocation_Interceptor::receive_request_service_contexts (
// SecTargetSecureInvocationPolicy so that we can
// accept or reject requests on a per-object basis
// instead on a per-endpoint basis.
- CORBA::Boolean const no_ssl =
+ CORBA::Boolean no_ssl =
this->ssliop_current_->no_context (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- if (TAO_debug_level >= 3)
- ACE_DEBUG ((LM_DEBUG, "SSLIOP (%P|%t) Interceptor (context), ssl=%d\n", !(no_ssl)));
-
if (no_ssl && this->qop_ != ::Security::SecQOPNoProtection)
ACE_THROW (CORBA::NO_PERMISSION ());
-#if defined(DEBUG_PEER_CERTIFICATES)
+#if 0
ACE_TRY
{
// If the request was not made through an SSL connection, then
@@ -94,7 +84,7 @@ TAO::SSLIOP::Server_Invocation_Interceptor::receive_request_service_contexts (
X509 *peer = ::d2i_X509 (0, &der_cert, cert->length ());
if (peer != 0)
{
- char buf[BUFSIZ] = { 0 };
+ char buf[BUFSIZ];
::X509_NAME_oneline (::X509_get_subject_name (peer),
buf,
@@ -133,10 +123,9 @@ TAO::SSLIOP::Server_Invocation_Interceptor::receive_request_service_contexts (
}
ACE_ENDTRY;
ACE_CHECK;
-#endif /* DEBUG_PEER_CERTIFICATES */
+#endif /* 0 */
}
-
void
TAO::SSLIOP::Server_Invocation_Interceptor::receive_request (
PortableInterceptor::ServerRequestInfo_ptr /* ri */
@@ -171,5 +160,3 @@ TAO::SSLIOP::Server_Invocation_Interceptor::send_other (
PortableInterceptor::ForwardRequest))
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h
index 9ab7aaffad1..b5c4ef41f70 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +34,6 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -49,7 +47,7 @@ namespace TAO
* invocations if the effective target object policy requires
* secure invocations.
*/
- class Server_Invocation_Interceptor
+ class TAO_SSLIOP_Export Server_Invocation_Interceptor
: public virtual PortableInterceptor::ServerRequestInterceptor,
public virtual TAO_Local_RefCounted_Object
{
@@ -137,8 +135,6 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp
index 6f36fa774c5..52b1317b28e 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h"
+#include "SSLIOP_ORBInitializer.h"
ACE_RCSID (SSLIOP,
@@ -6,10 +6,10 @@ ACE_RCSID (SSLIOP,
"$Id$")
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Invocation_Interceptor.h"
+#include "SSLIOP_Current.h"
+#include "SSLIOP_Invocation_Interceptor.h"
//#include "SSLIOP_IORInterceptor.h"
-#include "orbsvcs/SSLIOP/SSLIOP_CredentialsAcquirerFactory.h"
+#include "SSLIOP_CredentialsAcquirerFactory.h"
#include "orbsvcs/Security/SL3_SecurityCurrent.h"
#include "orbsvcs/Security/SL3_CredentialsCurator.h"
@@ -24,8 +24,6 @@ ACE_RCSID (SSLIOP,
#include "ace/Auto_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::ORBInitializer::ORBInitializer (
::Security::QOP qop,
CSIIOP::AssociationOptions csiv2_target_supports,
@@ -245,4 +243,3 @@ TAO::SSLIOP::ORBInitializer::get_tss_slot_id (
return security_current->tss_slot ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h
index 905b526d000..6c180b4c107 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_ORBInitializer.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -35,8 +35,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -49,9 +47,9 @@ namespace TAO
* ORB initializer that registers all SSLIOP-specific interceptors and
* object references.
*/
- class ORBInitializer
- : public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
+ class TAO_SSLIOP_Export ORBInitializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
@@ -89,8 +87,6 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp
index f20eb554f4c..0bf1723c320 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp
@@ -3,15 +3,20 @@
#ifndef TAO_SSLIOP_OPENSSL_ST_T_CPP
#define TAO_SSLIOP_OPENSSL_ST_T_CPP
-#include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h"
+#include "SSLIOP_OpenSSL_st_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+ACE_RCSID (SSLIOP,
+ SSLIOP_OpenSSL_st_T,
+ "$Id$")
+
+
#if !defined (__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl"
+#include "SSLIOP_OpenSSL_st_T.inl"
#endif /* !__ACE_INLINE__ */
#endif /* TAO_SSLIOP_OPENSSL_ST_T_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h
index 1fee4c1504b..d08140d244e 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h
@@ -21,9 +21,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -119,15 +116,13 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl"
+#include "SSLIOP_OpenSSL_st_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-# include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.cpp"
+# include "SSLIOP_OpenSSL_st_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl
index 0233a73fc01..51b9e46a102 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.inl
@@ -5,7 +5,6 @@
#include <openssl/crypto.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename T> ACE_INLINE T *
TAO::SSLIOP::_duplicate (T * st)
@@ -161,5 +160,3 @@ TAO::SSLIOP::OpenSSL_st_var<T>::ptr (void) const
{
return this->st_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp
index 7d90833fff5..e0b181fc1a2 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h"
+#include "SSLIOP_OwnCredentials.h"
ACE_RCSID (SSLIOP,
@@ -8,8 +8,6 @@ ACE_RCSID (SSLIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::OwnCredentials::OwnCredentials (X509 *cert, EVP_PKEY *evp)
: SSLIOP_Credentials (cert, evp)
{
@@ -74,4 +72,3 @@ TAO::SSLIOP::OwnCredentials::release_credentials (
this->creds_state_ = SecurityLevel3::CS_PendingRelease;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h
index fd88fc7ce2a..1b8f6dc3fe8 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_OwnCredentials.h
@@ -16,21 +16,19 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Credentials.h"
+#include "SSLIOP_Credentials.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -49,7 +47,7 @@ namespace TAO
* @c OwnCredentials are a representation of our identity, not our
* peer's identity.
*/
- class OwnCredentials
+ class TAO_SSLIOP_Export OwnCredentials
: public virtual SecurityLevel3::OwnCredentials,
public virtual SSLIOP_Credentials
{
@@ -108,8 +106,6 @@ namespace TAO
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp
index f9c084779cd..4e9e5b43590 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Profile.h"
-#include "orbsvcs/SSLIOP/ssl_endpointsC.h"
+#include "SSLIOP_Profile.h"
+#include "ssl_endpointsC.h"
#include "tao/CDR.h"
#include "tao/Environment.h"
#include "ace/OS_NS_string.h"
@@ -9,9 +9,6 @@ ACE_RCSID (SSLIOP,
SSLIOP_Profile,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SSLIOP_Profile::TAO_SSLIOP_Profile (const ACE_INET_Addr & addr,
const TAO::ObjectKey & object_key,
const TAO_GIOP_Message_Version & version,
@@ -353,5 +350,3 @@ TAO_SSLIOP_Profile::parse_string (const char * ior
Security::NoProtection);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h
index 849914f148d..6dab11bcab0 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Profile.h
@@ -25,11 +25,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Endpoint.h"
+#include "SSLIOP_Endpoint.h"
#include "tao/IIOP_Profile.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// namespace TAO
// {
// namespace SSLIOP
@@ -45,7 +43,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* This class extends TAO_IIOP_Profile to support secure
* communication using SSL.
*/
- class TAO_SSLIOP_Profile : public TAO_IIOP_Profile
+ class TAO_SSLIOP_Export TAO_SSLIOP_Profile : public TAO_IIOP_Profile
{
public:
/// Profile constructor, same as above except the object_key has
@@ -172,7 +170,6 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// } // End SSLIOP namespace.
// } // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.cpp
new file mode 100644
index 00000000000..69c8af5bcea
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.cpp
@@ -0,0 +1,9 @@
+// $Id$
+
+#include "SSLIOP_SSL.h"
+
+
+ACE_RCSID (SSLIOP,
+ SSLIOP_SSL,
+ "$Id$")
+
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.h
index b9b01e4a85d..b8e013b6f71 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_SSL.h
@@ -23,14 +23,12 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h"
+#include "SSLIOP_OpenSSL_st_T.h"
#include <openssl/ssl.h>
#include <openssl/crypto.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -78,7 +76,6 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp
index a081a95c168..dac7198565b 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.cpp
@@ -1,11 +1,11 @@
-#include "orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h"
+#include "SSLIOP_TargetCredentials.h"
+#include "tao/ORB_Constants.h"
ACE_RCSID (SSLIOP,
SSLIOP_TargetCredentials,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SSLIOP::TargetCredentials::TargetCredentials (::X509 *cert,
::EVP_PKEY *evp)
@@ -130,5 +130,3 @@ TAO::SSLIOP::TargetCredentials::release (ACE_ENV_SINGLE_ARG_DECL)
{
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h
index 920db9d2e61..98b4a75ec87 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_TargetCredentials.h
@@ -15,15 +15,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Credentials.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "SSLIOP_Credentials.h"
namespace TAO
{
@@ -122,8 +120,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SSLIOP_TARGET_CREDENTIALS_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp
index d31206b7a2c..f91dde34130 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.cpp
@@ -1,7 +1,7 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Transport.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Profile.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Acceptor.h"
+#include "SSLIOP_Connection_Handler.h"
+#include "SSLIOP_Transport.h"
+#include "SSLIOP_Profile.h"
+#include "SSLIOP_Acceptor.h"
#include "tao/debug.h"
@@ -14,15 +14,12 @@
#include "tao/debug.h"
#include "tao/GIOP_Message_Base.h"
#include "tao/Acceptor_Registry.h"
-#include "tao/Thread_Lane_Resources.h"
ACE_RCSID (SSLIOP,
SSLIOP_Transport,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::Transport::Transport (
TAO::SSLIOP::Connection_Handler *handler,
TAO_ORB_Core *orb_core,
@@ -381,5 +378,3 @@ TAO::SSLIOP::Transport::get_listen_point (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h
index fec7a5ee95f..67ff72eaac9 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Transport.h
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Export.h"
+#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -35,9 +35,6 @@
#include "ace/Svc_Handler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class TAO_ORB_Core;
class TAO_Pluggable_Messaging;
@@ -153,7 +150,5 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SSLIOP_TRANSPORT_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp
index 385e58f64e2..29c06c74f1c 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.cpp
@@ -1,4 +1,4 @@
-#include "orbsvcs/SSLIOP/SSLIOP_Util.h"
+#include "SSLIOP_Util.h"
ACE_RCSID (SSLIOP,
@@ -6,15 +6,13 @@ ACE_RCSID (SSLIOP,
"$Id$")
-#include "orbsvcs/SSLIOP/SSLIOP_Connection_Handler.h"
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
+#include "SSLIOP_Connection_Handler.h"
+#include "SSLIOP_Current.h"
#include "tao/ORB_Core.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SSLIOP::Current_ptr
TAO::SSLIOP::Util::current (
TAO_ORB_Core *orb_core)
@@ -54,5 +52,3 @@ TAO::SSLIOP::Util::current (
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.h
index 15e3e5f1545..efe5dc406b1 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Util.h
@@ -24,10 +24,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_Current.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "SSLIOP_Current.h"
class TAO_ORB_Core;
class TAO_IIOP_Properties;
@@ -58,7 +55,6 @@ namespace TAO
} // End SSLIOP namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.cpp
new file mode 100644
index 00000000000..3c6bb2755e7
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.cpp
@@ -0,0 +1,7 @@
+#include "SSLIOP_X509.h"
+
+
+ACE_RCSID (SSLIOP,
+ SSLIOP_X509,
+ "$Id$")
+
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.h b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.h
index fc46e69fa9c..6937053169b 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_X509.h
@@ -21,14 +21,12 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/SSLIOP/SSLIOP_OpenSSL_st_T.h"
+#include "SSLIOP_OpenSSL_st_T.h"
#include <openssl/x509.h>
#include <openssl/crypto.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SSLIOP
@@ -77,8 +75,6 @@ namespace TAO
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SSLIOP_X509_H */
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.c b/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.c
index cea38d78e06..e340018a65a 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.c
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.c
@@ -1,19 +1,18 @@
// $Id$
-#include "params_dup.h"
-
#include <openssl/asn1.h>
+#include <openssl/dsa.h>
+#include <openssl/dh.h>
DSA *
-DSAPARAMS_DUP_WRAPPER_NAME (DSA * dsa)
+DSAparams_dup_wrapper (DSA *dsa)
{
- return DSAparams_dup (dsa);
+ return DSAparams_dup (dsa);
}
DH *
-DHPARAMS_DUP_WRAPPER_NAME (DH * dh)
+DHparams_dup_wrapper (DH *dh)
{
- return DHparams_dup (dh);
+ return DHparams_dup (dh);
}
-
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.h b/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.h
index a83c0990df7..ea9b5409325 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.h
@@ -3,11 +3,6 @@
#ifndef TAO_SSLIOP_PARAMS_DUP_H
#define TAO_SSLIOP_PARAMS_DUP_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-macros.h"
-#include "tao/Versioned_Namespace.h"
-
// As of 0.9.7e, OpenSSL's DSAparams_dup() and DHparams_dup() macros
// contain casts that are invalid in C++. These C wrapper functions
// allows them to be called from C++.
@@ -15,34 +10,15 @@
#include <openssl/dsa.h>
#include <openssl/dh.h>
-#if (defined (TAO_HAS_VERSIONED_NAMESPACE) \
- && TAO_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define DSAPARAMS_DUP_WRAPPER_NAME ACE_PREPROC_CONCATENATE(TAO_VERSIONED_NAMESPACE_NAME, _DSAparams_dup_wrapper)
-# define DHPARAMS_DUP_WRAPPER_NAME ACE_PREPROC_CONCATENATE(TAO_VERSIONED_NAMESPACE_NAME, _DHparams_dup_wrapper)
-
-#else
-
-# define DSAPARAMS_DUP_WRAPPER_NAME DSAparams_dup_wrapper
-# define DHPARAMS_DUP_WRAPPER_NAME DHparams_dup_wrapper
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
#ifdef __cplusplus
extern "C" {
#endif
-extern DSA *DSAPARAMS_DUP_WRAPPER_NAME (DSA *dsa);
-extern DH *DHPARAMS_DUP_WRAPPER_NAME (DH *dh);
+extern DSA *DSAparams_dup_wrapper (DSA *dsa);
+extern DH *DHparams_dup_wrapper (DH *dh);
#ifdef __cplusplus
}
#endif
-#include /**/ "ace/post.h"
-
#endif
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.cpp
index a9e2d63a88d..327f9d92c1c 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.cpp
@@ -34,15 +34,13 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Sequence_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "orbsvcs/SSLIOP/ssl_endpointsC.h"
+#include "ssl_endpointsC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
@@ -209,5 +207,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_TAO_SSLEndpointSequence_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.h b/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.h
index e08b44538af..dd81bd66c6f 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.h
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/ssl_endpointsC.h
@@ -63,8 +63,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_sequence/sequence_ch.cpp:101
@@ -141,8 +139,6 @@ TAO_SSLIOP_Export CORBA::Boolean operator>> (
#endif /* _TAO_CDR_OP_TAO_SSLEndpointSequence_H_ */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp
index c8c56c6b5ac..d253fa396c8 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.cpp
@@ -7,12 +7,10 @@
#include "orbsvcs/Time_Utilities.h"
#include "orbsvcs/Scheduler_Factory.h"
-#include "orbsvcs/Sched/Config_Scheduler.h"
+#include "Config_Scheduler.h"
ACE_RCSID(Sched, Config_Scheduler, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Config_Scheduler::ACE_Config_Scheduler (void)
#if defined (TAO_USES_STRATEGY_SCHEDULER)
: scheduler_strategy_ (static_cast<RtecScheduler::Preemption_Priority_t> (TAO_MIN_CRITICAL_PRIORITY))
@@ -37,7 +35,7 @@ ACE_Config_Scheduler::create (const char * entry_point
{
typedef RtecScheduler::RT_Info* RT_Info_ptr;
- RtecScheduler::RT_Info** rt_info = 0;
+ RtecScheduler::RT_Info** rt_info;
ACE_NEW_RETURN (rt_info, RT_Info_ptr[1], -1);
ACE_NEW_RETURN (rt_info[0], RtecScheduler::RT_Info, -1);
@@ -670,5 +668,3 @@ void ACE_Config_Scheduler::get_config_info_set (RtecScheduler::Config_Info_Set_o
{
ACE_THROW (CORBA::NO_IMPLEMENT ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h
index d6b378d8f82..084a36a33f2 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Config_Scheduler.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef ACE_CONFIG_SCHEDULER_H
@@ -16,7 +14,7 @@
#include "orbsvcs/RtecSchedulerS.h"
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Sched/sched_export.h"
+#include "sched_export.h"
#if defined (TAO_USES_STRATEGY_SCHEDULER)
#include "orbsvcs/Sched/Strategy_Scheduler.h"
@@ -24,8 +22,6 @@
#include "orbsvcs/Sched/Scheduler_Generic.h"
#endif /* defined (TAO_USES_STRATEGY_SCHEDULER) */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTSched_Export ACE_Config_Scheduler
: public POA_RtecScheduler::Scheduler
// = TITLE
@@ -311,8 +307,15 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_CONFIG_SCHEDULER_H */
+
+
+
+
+
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp
index 69b1e25ddca..0eaa050e615 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.cpp
@@ -16,20 +16,18 @@
//
// ============================================================================
-#include "orbsvcs/Sched/DynSched.h"
+#include "DynSched.h"
#include "ace/Basic_Types.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Null_Mutex.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Sched/DynSched.i"
+#include "DynSched.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Sched, DynSched, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////
// Helper functions //
//////////////////////
@@ -450,7 +448,7 @@ int ACE_DynScheduler::add_dependency(RT_Info* rt_info,
ACE_ERROR ((LM_ERROR,
ACE_TEXT("unrecognized dependency type %d for %s\n"),
- d.dependency_type, ACE_TEXT_CHAR_TO_TCHAR(rt_info->entry_point.in ())));
+ d.dependency_type, ACE_TEXT_TO_TCHAR_IN(rt_info->entry_point.in ())));
return -1;
}
@@ -458,7 +456,7 @@ int ACE_DynScheduler::add_dependency(RT_Info* rt_info,
ACE_TEXT("Sched (%t) adding %s dependency to caller: %s\n"),
(const ACE_TCHAR *) ((d.dependency_type == RtecBase::TWO_WAY_CALL)
? ACE_TEXT("TWO_WAY") : ACE_TEXT("ONE_WAY")),
- ACE_TEXT_CHAR_TO_TCHAR(temp_info->entry_point.in ())));
+ ACE_TEXT_TO_TCHAR_IN(temp_info->entry_point.in ())));
RtecScheduler::Dependency_Set& set = temp_info->dependencies;
int l = set.length();
@@ -1555,7 +1553,7 @@ ACE_DynScheduler::identify_threads (ACE_CString & unresolved_locals,
(LM_DEBUG,
ACE_TEXT("Warning: an operation identified by ")
ACE_TEXT("\"%s\" has unresolved remote dependencies.\n"),
- ACE_TEXT_CHAR_TO_TCHAR((const char*)task_entries_ [i].rt_info ()->entry_point)));
+ ACE_TEXT_TO_TCHAR_IN((const char*)task_entries_ [i].rt_info ()->entry_point)));
// Record entry point in list of unresolved remote dependencies
ACE_OS::sprintf (string_buffer, "// %s\n",
@@ -1572,7 +1570,7 @@ ACE_DynScheduler::identify_threads (ACE_CString & unresolved_locals,
ACE_TEXT("Error: operation \"%s\" does not specify a period or\n")
ACE_TEXT("visible threads, and is not called by any other operation.\n")
ACE_TEXT("Are there backwards dependencies.\n"),
- ACE_TEXT_CHAR_TO_TCHAR((const char*)task_entries_ [i].rt_info ()->entry_point)));
+ ACE_TEXT_TO_TCHAR_IN((const char*)task_entries_ [i].rt_info ()->entry_point)));
result = ST_UNRESOLVED_LOCAL_DEPENDENCIES;
@@ -1657,8 +1655,8 @@ ACE_DynScheduler::check_dependency_cycles_recurse (Task_Entry &entry)
// indicate the two tasks are in (the same) dependency cycle
ACE_ERROR ((LM_ERROR,
ACE_TEXT("Tasks \"%s\" and \"%s\" are part of a call cycle.\n"),
- ACE_TEXT_CHAR_TO_TCHAR((*calling_entry_link)->caller ().rt_info ()->entry_point.in ()),
- ACE_TEXT_CHAR_TO_TCHAR(entry.rt_info ()->entry_point.in ())));
+ ACE_TEXT_TO_TCHAR_IN((*calling_entry_link)->caller ().rt_info ()->entry_point.in ()),
+ ACE_TEXT_TO_TCHAR_IN(entry.rt_info ()->entry_point.in ())));
// set return status, ignore status returned by recursive call:
// we already know there are cycles in the dependencies
@@ -1931,7 +1929,7 @@ ACE_DynScheduler::output_dispatch_priorities (const char *filename)
status_t status = UNABLE_TO_OPEN_SCHEDULE_FILE;
// open the file
- FILE *file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(filename), ACE_TEXT("w"));
+ FILE *file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(filename), ACE_TEXT("w"));
if (file)
{
status = output_dispatch_priorities (file);
@@ -1942,7 +1940,7 @@ ACE_DynScheduler::output_dispatch_priorities (const char *filename)
ACE_ERROR ((LM_ERROR,
ACE_TEXT("ACE_DynScheduler::output_dispatch_priorities: ")
ACE_TEXT("Could not open schedule file (\"%s\")"),
- ACE_TEXT_CHAR_TO_TCHAR(filename)));
+ ACE_TEXT_TO_TCHAR_IN(filename)));
}
return status;
@@ -2026,7 +2024,7 @@ ACE_DynScheduler::output_dispatch_timeline (const char *filename)
status_t status = UNABLE_TO_OPEN_SCHEDULE_FILE;
// open the file
- FILE *file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(filename), ACE_TEXT("w"));
+ FILE *file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(filename), ACE_TEXT("w"));
if (file)
{
status = output_dispatch_timeline (file);
@@ -2151,7 +2149,7 @@ ACE_DynScheduler::output_preemption_timeline (const char *filename)
status_t status = UNABLE_TO_OPEN_SCHEDULE_FILE;
// open the file
- FILE *file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(filename), ACE_TEXT("w"));
+ FILE *file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(filename), ACE_TEXT("w"));
if (file)
{
status = output_preemption_timeline (file);
@@ -2162,7 +2160,7 @@ ACE_DynScheduler::output_preemption_timeline (const char *filename)
ACE_ERROR ((LM_ERROR,
ACE_TEXT("ACE_DynScheduler::output_preemption_timeline: ")
ACE_TEXT("Cannot open timeline file (\"%s\")\n"),
- ACE_TEXT_CHAR_TO_TCHAR(filename)));
+ ACE_TEXT_TO_TCHAR_IN(filename)));
}
return status;
@@ -2241,7 +2239,7 @@ ACE_DynScheduler::output_viewer_timeline (const char *filename)
status_t status = UNABLE_TO_OPEN_SCHEDULE_FILE;
// open the file
- FILE *file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(filename), ACE_TEXT("w"));
+ FILE *file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(filename), ACE_TEXT("w"));
if (file)
{
status = output_dispatch_timeline (file);
@@ -2370,7 +2368,7 @@ ACE_DynScheduler::output_timeline (const char *filename, const char *heading)
if (status == SUCCEEDED)
{
// open the file
- file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(filename), ACE_TEXT("w"));
+ file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(filename), ACE_TEXT("w"));
if (! file)
{
status = UNABLE_TO_OPEN_SCHEDULE_FILE;
@@ -2419,5 +2417,3 @@ ACE_DynScheduler::output_timeline (const char *filename, const char *heading)
return status;
}
// this prints the entire set of timeline outputs to the specified file
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.h b/TAO/orbsvcs/orbsvcs/Sched/DynSched.h
index bae77c581a2..a3adb00f642 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//
// ============================================================================
@@ -31,13 +30,10 @@
#include "ace/Map_Manager.h"
#include "ace/Message_Block.h"
#include "ace/SString.h"
-#include "orbsvcs/Sched/SchedEntry.h"
-#include "orbsvcs/Sched/sched_export.h"
+#include "SchedEntry.h"
+#include "sched_export.h"
#include "ace/Recursive_Thread_Mutex.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTSched_Export ACE_DynScheduler
// = TITLE
// Dispatch scheduling interface.
@@ -464,8 +460,8 @@ private:
// calculate utilization, frame size, etc.
// the following functions are not implememented
- ACE_DynScheduler (const ACE_DynScheduler &);
- ACE_DynScheduler &operator= (const ACE_DynScheduler &);
+ ACE_UNIMPLEMENTED_FUNC(ACE_DynScheduler (const ACE_DynScheduler &))
+ ACE_UNIMPLEMENTED_FUNC(ACE_DynScheduler &operator= (const ACE_DynScheduler &))
//////////////////////////
// private data members //
@@ -532,10 +528,8 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Sched/DynSched.i"
+#include "DynSched.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Sched/DynSched.i b/TAO/orbsvcs/orbsvcs/Sched/DynSched.i
index 8e27d24c28e..3eb2a3c0bda 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/DynSched.i
+++ b/TAO/orbsvcs/orbsvcs/Sched/DynSched.i
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
//
// ============================================================================
@@ -18,7 +16,6 @@
//
// ============================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
////////////////////////////
// Class ACE_DynScheduler //
@@ -110,4 +107,5 @@ ACE_DynScheduler::max_dispatch_id () const
return max_dispatch_id_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+// EOF
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp
index f3669c611c5..dac7ca3cd56 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.cpp
@@ -18,8 +18,8 @@
#ifndef TAO_RECONFIG_SCHED_UTILS_C
#define TAO_RECONFIG_SCHED_UTILS_C
-#include "orbsvcs/Sched/Reconfig_Sched_Utils_T.h"
-#include "orbsvcs/Sched/Reconfig_Sched_Utils.h"
+#include "Reconfig_Sched_Utils_T.h"
+#include "Reconfig_Sched_Utils.h"
#include "orbsvcs/Time_Utilities.h"
@@ -27,8 +27,6 @@
ACE_RCSID (Sched, Reconfig_Sched_Utils, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
///////////////////////////
// struct TAO_RT_Info_Ex //
///////////////////////////
@@ -1804,5 +1802,3 @@ TAO_RMS_MLF_Reconfig_Sched_Strategy::assign_config (RtecScheduler::Config_Info &
#endif /* TAO_RECONFIG_SCHED_UTILS_C */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.h b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.h
index 408d42bb56f..f7e0ae3967c 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -27,14 +26,12 @@
#include "orbsvcs/Scheduler_Factory.h"
#include "orbsvcs/RtecSchedulerS.h"
-#include "orbsvcs/Sched/sched_export.h"
+#include "sched_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
struct TAO_RTSched_Export TAO_RT_Info_Ex
: public RtecScheduler::RT_Info
// = TITLE
@@ -660,10 +657,8 @@ public:
// on the operation characteristics of a representative scheduling entry.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// Include the templates here.
-#include "orbsvcs/Sched/Reconfig_Sched_Utils_T.h"
+#include "Reconfig_Sched_Utils_T.h"
#include /**/ "ace/post.h"
#endif /* TAO_RECONFIG_SCHED_UTILS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp
index cfc7cfd332a..8f8e5497ece 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp
@@ -15,10 +15,10 @@
//
// ============================================================================
-#ifndef TAO_RECONFIG_SCHED_UTILS_T_CPP
-#define TAO_RECONFIG_SCHED_UTILS_T_CPP
+#ifndef TAO_RECONFIG_SCHED_UTILS_T_C
+#define TAO_RECONFIG_SCHED_UTILS_T_C
-#include "orbsvcs/Sched/Reconfig_Sched_Utils_T.h"
+#include "Reconfig_Sched_Utils_T.h"
#include "ace/Sched_Params.h"
#include "ace/ACE.h"
@@ -26,7 +26,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Sched, Reconfig_Sched_Utils_T, "$Id$")
////////////////////////////////
// TAO_RSE_Dependency_Visitor //
@@ -122,7 +122,8 @@ visit (TAO_Reconfig_Scheduler_Entry &rse)
// Reference the associated scheduling entry: the double cast is
// needed to ensure that the size of the pointer and the size of the
- // stored magic cookie are the same
+ // stored magic cookie are the same (see the definition of
+ // ptr_arith_t in ACE to grok how this works portably).
next_rse =
ACE_LONGLONG_TO_PTR (TAO_Reconfig_Scheduler_Entry *,
next_rt_info->volatile_token);
@@ -167,18 +168,19 @@ visit (TAO_Reconfig_Scheduler_Entry &rse)
return 0;
}
-// WSOA merge - commented out
-// // Performs an unconditional action when the entry is first reached.
-// // Returns 0 for success, and -1 if an error occurred.
-
-// template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
-// TAO_RSE_Dependency_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
-// unconditional_action (TAO_Reconfig_Scheduler_Entry & /* rse */)
-// {
-// // Default behavior: just return success.
-// return 0;
-// }
-//
+/* WSOA merge - commented out
+// Performs an unconditional action when the entry is first reached.
+// Returns 0 for success, and -1 if an error occurred.
+
+template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
+TAO_RSE_Dependency_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
+unconditional_action (TAO_Reconfig_Scheduler_Entry &rse)
+{
+ // Default behavior: just return success.
+ ACE_UNUSED_ARG (rse);
+ return 0;
+}
+*/
// Tests whether or not any conditional actions should be taken for
// the entry. Returns 0 if the actions should be applied, 1 if the
@@ -200,9 +202,10 @@ precondition (TAO_Reconfig_Scheduler_Entry &rse)
template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_Dependency_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
-prefix_action (TAO_Reconfig_Scheduler_Entry & /* rse */)
+prefix_action (TAO_Reconfig_Scheduler_Entry &rse)
{
// Default behavior: just return success.
+ ACE_UNUSED_ARG (rse);
return 0;
}
@@ -212,11 +215,14 @@ prefix_action (TAO_Reconfig_Scheduler_Entry & /* rse */)
template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_Dependency_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
-pre_recurse_action (TAO_Reconfig_Scheduler_Entry & /* entry */,
- TAO_Reconfig_Scheduler_Entry & /* successor */,
- const RtecScheduler::Dependency_Info & /* di */)
+pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
+ TAO_Reconfig_Scheduler_Entry &successor,
+ const RtecScheduler::Dependency_Info &di)
{
// Default behavior: just return success.
+ ACE_UNUSED_ARG (entry);
+ ACE_UNUSED_ARG (successor);
+ ACE_UNUSED_ARG (di);
return 0;
}
@@ -226,9 +232,10 @@ pre_recurse_action (TAO_Reconfig_Scheduler_Entry & /* entry */,
template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_Dependency_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
-postfix_action (TAO_Reconfig_Scheduler_Entry & /* rse */)
+postfix_action (TAO_Reconfig_Scheduler_Entry &rse)
{
// Default behavior: just return success.
+ ACE_UNUSED_ARG (rse);
return 0;
}
@@ -290,10 +297,13 @@ prefix_action (TAO_Reconfig_Scheduler_Entry &rse)
template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_DFS_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
-pre_recurse_action (TAO_Reconfig_Scheduler_Entry & /* entry */,
- TAO_Reconfig_Scheduler_Entry & successor,
- const RtecScheduler::Dependency_Info & /* di */)
+pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
+ TAO_Reconfig_Scheduler_Entry &successor,
+ const RtecScheduler::Dependency_Info &di)
{
+ ACE_UNUSED_ARG (entry);
+ ACE_UNUSED_ARG (di);
+
// Enabled operations we reached via a dependency and that do not
// specify a period are not thread delineators.
if (successor.enabled_state () != RtecScheduler::RT_INFO_DISABLED
@@ -435,8 +445,10 @@ template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_SCC_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
TAO_Reconfig_Scheduler_Entry &successor,
- const RtecScheduler::Dependency_Info & /* di */)
+ const RtecScheduler::Dependency_Info &di)
{
+ ACE_UNUSED_ARG (di);
+
if (successor.enabled_state () !=
RtecScheduler::RT_INFO_DISABLED
&& successor.rev_dfs_status () ==
@@ -492,8 +504,10 @@ template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_Reverse_Propagation_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
TAO_Reconfig_Scheduler_Entry &successor,
- const RtecScheduler::Dependency_Info & /* di */)
+ const RtecScheduler::Dependency_Info &di)
{
+ ACE_UNUSED_ARG (di);
+
// @TODO - check for conjunction nodes here and perform conjunctive
// function on existing rate tuples. Idea: treat conjunctive tuples
// as skolem functions over the possible rates of their incedent
@@ -683,13 +697,14 @@ template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_Forward_Propagation_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
TAO_Reconfig_Scheduler_Entry &successor,
- const RtecScheduler::Dependency_Info & /* di */)
+ const RtecScheduler::Dependency_Info &di)
{
if (successor.enabled_state () == RtecScheduler::RT_INFO_DISABLED)
{
return 1;
}
+ ACE_UNUSED_ARG (di);
TAO_RT_Info_Tuple **tuple_ptr_ptr;
TUPLE_SET_ITERATOR orig_tuple_iter (entry.orig_tuple_subset ());
@@ -1045,8 +1060,10 @@ template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK> int
TAO_RSE_Criticality_Propagation_Visitor<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
TAO_Reconfig_Scheduler_Entry &successor,
- const RtecScheduler::Dependency_Info & /* di */)
+ const RtecScheduler::Dependency_Info &di)
{
+ ACE_UNUSED_ARG (di);
+
#ifdef SCHEDULER_LOGGING
ACE_DEBUG ((LM_DEBUG,
"Crit Prop_Visitor visiting %s[%d], successor is %s[%d]\n",
@@ -1080,6 +1097,5 @@ pre_recurse_action (TAO_Reconfig_Scheduler_Entry &entry,
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif /* TAO_RECONFIG_SCHED_UTILS_T_CPP */
+#endif /* TAO_RECONFIG_SCHED_UTILS_T_C */
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.h b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.h
index b66b0f389bd..a63f3dba239 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Sched_Utils_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -20,15 +19,13 @@
#include /**/ "ace/pre.h"
#include "ace/config-all.h"
-#include "orbsvcs/Sched/Reconfig_Sched_Utils.h"
+#include "Reconfig_Sched_Utils.h"
#include "ace/Hash_Map_Manager.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////////////////////////
// Reconfig Sched Entry Visitor classes //
//////////////////////////////////////////
@@ -476,10 +473,8 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Sched/Reconfig_Sched_Utils_T.cpp"
+#include "Reconfig_Sched_Utils_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.cpp
new file mode 100644
index 00000000000..9422209f27c
--- /dev/null
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.cpp
@@ -0,0 +1,27 @@
+// ============================================================================
+//
+// $Id$
+//
+// ============================================================================
+//
+// = LIBRARY
+// orbsvcs
+//
+// = FILENAME
+// Reconfig_Scheduler.cpp
+//
+// = AUTHOR
+// Chris Gill <cdgill@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef TAO_RECONFIG_SCHEDULER_C
+#define TAO_RECONFIG_SCHEDULER_C
+
+#include "Reconfig_Scheduler_T.h"
+#include "Reconfig_Scheduler.h"
+
+
+ACE_RCSID(Sched, Reconfig_Scheduler, "$Id$")
+
+#endif /* TAO_RECONFIG_SCHEDULER_C */
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.h b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.h
index 1734634a104..ba2cdcb82dd 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler.h
@@ -25,14 +25,14 @@
#include "ace/RB_Tree.h"
#include "orbsvcs/Scheduler_Factory.h"
#include "orbsvcs/RtecSchedulerS.h"
-#include "orbsvcs/Sched/Reconfig_Sched_Utils.h"
+#include "Reconfig_Sched_Utils.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
// Include the templates here.
-#include "orbsvcs/Sched/Reconfig_Scheduler_T.h"
+#include "Reconfig_Scheduler_T.h"
#include /**/ "ace/post.h"
#endif /* TAO_RECONFIG_SCHEDULER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp
index 30ecef686cd..499b2d04518 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.cpp
@@ -18,7 +18,7 @@
#ifndef TAO_RECONFIG_SCHEDULER_T_C
#define TAO_RECONFIG_SCHEDULER_T_C
-#include "orbsvcs/Sched/Reconfig_Scheduler_T.h"
+#include "Reconfig_Scheduler_T.h"
#include "orbsvcs/Time_Utilities.h"
#include "ace/Auto_Ptr.h"
@@ -30,7 +30,7 @@
//#define SCHEDULER_LOGGING 1
//#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Sched, Reconfig_Scheduler_T, "$Id$")
//////////////////////////////////////////////
// Helper function type definition for sort //
@@ -1294,8 +1294,8 @@ compute_scheduling (CORBA::Long minimum_priority,
template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK>
void
TAO_Reconfig_Scheduler<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::
-recompute_scheduling (CORBA::Long /* minimum_priority */,
- CORBA::Long /* maximum_priority */,
+recompute_scheduling (CORBA::Long minimum_priority,
+ CORBA::Long maximum_priority,
RtecScheduler::Scheduling_Anomaly_Set_out anomalies
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
@@ -1316,8 +1316,8 @@ recompute_scheduling (CORBA::Long /* minimum_priority */,
ACE_CHECK;
// @@ TO DO - use these to establish the bounds of priority assignment.
- // minimum_priority
- // maximum_priority
+ ACE_UNUSED_ARG (minimum_priority);
+ ACE_UNUSED_ARG (maximum_priority);
// If everything is already up to date, we're done.
if (SCHED_ALL_STABLE == stability_flags_)
@@ -3153,7 +3153,5 @@ TAO_Reconfig_Scheduler<RECONFIG_SCHED_STRATEGY, ACE_LOCK>::init_rt_info (RtecSch
*/
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_RECONFIG_SCHEDULER_T_C */
-
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.h b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.h
index e0548b6cd7d..c8b82223a21 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Reconfig_Scheduler_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
//
@@ -20,14 +19,12 @@
#include "ace/config-all.h"
-#include "orbsvcs/Sched/Reconfig_Scheduler.h"
+#include "Reconfig_Scheduler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class RECONFIG_SCHED_STRATEGY, class ACE_LOCK>
class TAO_Reconfig_Scheduler :
public POA_RtecScheduler::Scheduler
@@ -762,10 +759,8 @@ maintain_scheduling_array (ARRAY_ELEMENT_TYPE ** & current_ptr_array,
// arrays. This function expands the array eagerly, to minimize time
// overhead for memory allocation (at a cost of some unused space).
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Sched/Reconfig_Scheduler_T.cpp"
+#include "Reconfig_Scheduler_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp
index 5dc53ae9ffb..ea7a1da14bb 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.cpp
@@ -16,18 +16,16 @@
//
// ============================================================================
-#include "orbsvcs/Sched/SchedEntry.h"
+#include "SchedEntry.h"
#include "ace/SString.h"
#include "ace/OS_NS_stdio.h"
#if ! defined (__ACE_INLINE__)
-#include "orbsvcs/Sched/SchedEntry.i"
+#include "SchedEntry.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Sched, SchedEntry, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
Task_Entry::Task_Entry (void)
: rt_info_ (0),
effective_period_(0),
@@ -934,5 +932,3 @@ TimeLine_Entry::TimeLine_Entry (Dispatch_Entry &dispatch_entry,
prev_ (prev)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h
index e84ceb6cad3..87cf62c1668 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//
// ============================================================================
@@ -22,13 +21,11 @@
#define SCHEDENTRY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Sched/sched_export.h"
+#include "sched_export.h"
#include "orbsvcs/RtecSchedulerC.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "ace/Containers.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////
// Helper Functions //
//////////////////////
@@ -636,10 +633,9 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-#include "orbsvcs/Sched/SchedEntry.i"
+#include "SchedEntry.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i
index 13f00111d67..f133d00e95f 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i
+++ b/TAO/orbsvcs/orbsvcs/Sched/SchedEntry.i
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//
// ============================================================================
@@ -18,8 +17,6 @@
//
// ============================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////
// Class Task_Entry //
//////////////////////
@@ -440,8 +437,6 @@ TimeLine_Entry_Link::entry () const
ACE_INLINE bool
TimeLine_Entry_Link::operator < (const TimeLine_Entry_Link &l) const
{
- return (entry_ < l.entry_);
+ return (entry_ < l.entry_) ? true : false;
}
// comparison operator
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp
index 13ecbf74fc0..5c6eb041289 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.cpp
@@ -18,7 +18,7 @@
#include "ace/Sched_Params.h"
#include "orbsvcs/Time_Utilities.h"
-#include "orbsvcs/Sched/Scheduler.h"
+#include "Scheduler.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Lock_Adapter_T.h"
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h
index 8cad8d40736..9400ba0ac67 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler.h
@@ -35,7 +35,7 @@
#include "orbsvcs/RtecSchedulerC.h"
#include "orbsvcs/Event_Service_Constants.h"
-#include "orbsvcs/Sched/sched_export.h"
+#include "sched_export.h"
class TAO_RTSched_Export ACE_Scheduler
// = TITLE
@@ -287,8 +287,8 @@ private:
u_int output_level_;
// the following functions are not implememented
- ACE_Scheduler (const ACE_Scheduler &);
- ACE_Scheduler &operator= (const ACE_Scheduler &);
+ ACE_UNIMPLEMENTED_FUNC(ACE_Scheduler (const ACE_Scheduler &))
+ ACE_UNIMPLEMENTED_FUNC(ACE_Scheduler &operator= (const ACE_Scheduler &))
};
typedef ACE_Scheduler Scheduler;
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp
index 69448fa30b6..4d5cfdd4623 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.cpp
@@ -18,13 +18,11 @@
#include "ace/Sched_Params.h"
-#include "orbsvcs/Sched/Scheduler_Generic.h"
+#include "Scheduler_Generic.h"
#include "ace/OS_NS_stdio.h"
ACE_RCSID(Sched, Scheduler_Generic, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// static functions
@@ -216,9 +214,11 @@ Scheduler_Generic::init (const int minimum_priority,
Scheduler::status_t
-Scheduler_Generic::schedule (ACE_Unbounded_Set<Scheduling_Anomaly *> &
- /* anomaly_set */)
+Scheduler_Generic::schedule (ACE_Unbounded_Set<Scheduling_Anomaly *>
+ &anomaly_set)
{
+ ACE_UNUSED_ARG (anomaly_set);
+
ACE_GUARD_RETURN (LOCK, ace_mon, lock_, ACE_Scheduler::FAILED);
// here goes . . .
@@ -240,12 +240,15 @@ Scheduler_Generic::schedule (ACE_Unbounded_Set<Scheduling_Anomaly *> &
int
-Scheduler_Generic::priority (const handle_t /* handle */,
+Scheduler_Generic::priority (const handle_t handle,
OS_Thread_Priority &priority,
Sub_Priority &subpriority,
Preemption_Priority &preemption_prio,
- const mode_t /* requested_mode */) const
+ const mode_t requested_mode) const
{
+ ACE_UNUSED_ARG (handle);
+ ACE_UNUSED_ARG (requested_mode);
+
priority = minimum_priority_;
subpriority = ACE_Scheduler_MIN_SUB_PRIORITY;
preemption_prio = ACE_Scheduler_MAX_PREEMPTION_PRIORITY;
@@ -265,5 +268,3 @@ void
Scheduler_Generic::print_schedule ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h
index 1b73b4d1c4b..5cfbf7b88d5 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Scheduler_Generic.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//
// ============================================================================
@@ -22,13 +21,11 @@
#define SCHEDULER_INTERNAL_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Sched/Scheduler.h"
+#include "Scheduler.h"
#include "ace/Unbounded_Set.h"
#include "ace/Synch_Traits.h"
#include "ace/Recursive_Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTSched_Export Scheduler_Generic : public ACE_Scheduler
// = TITLE
// Implementation of an off-line scheduler.
@@ -128,12 +125,11 @@ private:
void print_schedule ();
// Display the schedule, task-by-task.
- Scheduler_Generic (const Scheduler_Generic &);
- Scheduler_Generic &operator= (const Scheduler_Generic &);
+ ACE_UNIMPLEMENTED_FUNC (Scheduler_Generic (const Scheduler_Generic &))
+ ACE_UNIMPLEMENTED_FUNC (Scheduler_Generic &operator= (
+ const Scheduler_Generic &))
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* SCHEDULER_INTERNAL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp
index 8b27fdbd690..f2e7c3c467f 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp
+++ b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.cpp
@@ -16,7 +16,7 @@
//
// ============================================================================
-#include "orbsvcs/Sched/Strategy_Scheduler.h"
+#include "Strategy_Scheduler.h"
#include "ace/Sched_Params.h"
ACE_RCSID (Sched,
@@ -43,8 +43,6 @@ typedef int (*COMP_FUNC) (const void*, const void*);
// = Constructor.
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Strategy_Scheduler::ACE_Strategy_Scheduler (ACE_Scheduler_Strategy &strategy)
: ACE_DynScheduler (),
strategy_ (strategy)
@@ -862,8 +860,9 @@ ACE_MUF_Scheduler_Strategy::minimum_critical_priority ()
// = Provides the dispatching queue type for the given dispatch entry.
ACE_DynScheduler::Dispatching_Type
-ACE_MUF_Scheduler_Strategy::dispatch_type (const Dispatch_Entry & /* entry */)
+ACE_MUF_Scheduler_Strategy::dispatch_type (const Dispatch_Entry &entry)
{
+ ACE_UNUSED_ARG (entry);
return RtecScheduler::LAXITY_DISPATCHING;
}
@@ -952,10 +951,12 @@ ACE_RMS_Scheduler_Strategy::~ACE_RMS_Scheduler_Strategy ()
// = All entries have the same dynamic subpriority value.
long
-ACE_RMS_Scheduler_Strategy::dynamic_subpriority (
- Dispatch_Entry & /* entry */,
- RtecScheduler::Time /* current_time */)
+ACE_RMS_Scheduler_Strategy::dynamic_subpriority (Dispatch_Entry &entry,
+ RtecScheduler::Time current_time)
{
+ ACE_UNUSED_ARG (entry);
+ ACE_UNUSED_ARG (current_time);
+
return 0;
}
@@ -995,8 +996,9 @@ ACE_RMS_Scheduler_Strategy::minimum_critical_priority ()
// = Provide the dispatching queue type for the given dispatch entry.
ACE_DynScheduler::Dispatching_Type
-ACE_RMS_Scheduler_Strategy::dispatch_type (const Dispatch_Entry & /* entry */)
+ACE_RMS_Scheduler_Strategy::dispatch_type (const Dispatch_Entry &entry)
{
+ ACE_UNUSED_ARG (entry);
return RtecScheduler::STATIC_DISPATCHING;
}
@@ -1129,8 +1131,9 @@ ACE_MLF_Scheduler_Strategy::sort_function (void *arg1, void *arg2)
// = Provides the dispatching queue type for the given dispatch entry.
ACE_DynScheduler::Dispatching_Type
-ACE_MLF_Scheduler_Strategy::dispatch_type (const Dispatch_Entry & /* entry */)
+ACE_MLF_Scheduler_Strategy::dispatch_type (const Dispatch_Entry &entry)
{
+ ACE_UNUSED_ARG (entry);
return RtecScheduler::LAXITY_DISPATCHING;
}
@@ -1254,8 +1257,9 @@ ACE_EDF_Scheduler_Strategy::sort_function (void *arg1, void *arg2)
// = Provides the dispatching queue type for the given dispatch entry.
ACE_DynScheduler::Dispatching_Type
-ACE_EDF_Scheduler_Strategy::dispatch_type (const Dispatch_Entry & /* entry */)
+ACE_EDF_Scheduler_Strategy::dispatch_type (const Dispatch_Entry &entry)
{
+ ACE_UNUSED_ARG (entry);
return RtecScheduler::DEADLINE_DISPATCHING;
}
@@ -1343,10 +1347,12 @@ ACE_Criticality_Scheduler_Strategy::~ACE_Criticality_Scheduler_Strategy ()
// = All entries have the same dynamic subpriority value.
long
-ACE_Criticality_Scheduler_Strategy::dynamic_subpriority (
- Dispatch_Entry & /* entry */,
- RtecScheduler::Time /* current_time */)
+ACE_Criticality_Scheduler_Strategy::dynamic_subpriority (Dispatch_Entry &entry,
+ RtecScheduler::Time current_time)
{
+ ACE_UNUSED_ARG (entry);
+ ACE_UNUSED_ARG (current_time);
+
return 0;
}
@@ -1385,10 +1391,8 @@ ACE_Criticality_Scheduler_Strategy::minimum_critical_priority ()
// = Provides the dispatching queue type for the given dispatch entry.
ACE_DynScheduler::Dispatching_Type
-ACE_Criticality_Scheduler_Strategy::dispatch_type (
- const Dispatch_Entry & /* entry */)
+ACE_Criticality_Scheduler_Strategy::dispatch_type (const Dispatch_Entry &entry)
{
+ ACE_UNUSED_ARG (entry);
return RtecScheduler::STATIC_DISPATCHING;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h
index e323855d33e..57b5ff6133c 100644
--- a/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h
+++ b/TAO/orbsvcs/orbsvcs/Sched/Strategy_Scheduler.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//
// ============================================================================
@@ -22,9 +21,7 @@
#define STRATEGY_SCHEDULER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Sched/DynSched.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "DynSched.h"
// forward declaration of the abstract base class for scheduler strategies
class ACE_Scheduler_Strategy;
@@ -79,8 +76,9 @@ private:
ACE_Scheduler_Strategy &strategy_;
// = Strategy for comparing and sorting dispatch entries.
- ACE_Strategy_Scheduler (const ACE_Strategy_Scheduler &);
- ACE_Strategy_Scheduler &operator= (const ACE_Strategy_Scheduler &);
+ ACE_UNIMPLEMENTED_FUNC (ACE_Strategy_Scheduler (const ACE_Strategy_Scheduler &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Strategy_Scheduler &operator= (
+ const ACE_Strategy_Scheduler &))
};
@@ -496,9 +494,6 @@ private:
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* STRATEGY_SCHEDULER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp
index 44ebd3e82b3..c3bd3387271 100644
--- a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.cpp
@@ -17,8 +17,6 @@ ACE_RCSID(orbsvcs,
Scheduler_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Initialize static class members.
RtecScheduler::Scheduler_ptr ACE_Scheduler_Factory::server_ = 0;
ACE_Scheduler_Factory::Factory_Status ACE_Scheduler_Factory::status_ =
@@ -352,7 +350,7 @@ int ACE_Scheduler_Factory::dump_schedule
FILE* file = stdout;
if (file_name != 0)
{
- file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(file_name), ACE_TEXT("w"));
+ file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(file_name), ACE_TEXT("w"));
if (file == 0)
return -1;
}
@@ -791,5 +789,3 @@ ACE_Scheduler_Factory::set_preemption_priority
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template ACE_Singleton<ACE_Scheduler_Factory_Data, ACE_Null_Mutex> *ACE_Singleton<ACE_Scheduler_Factory_Data, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.h b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.h
index f0b9fdf91ab..aa43e530553 100644
--- a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.h
+++ b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -29,8 +28,6 @@
#include "orbsvcs/RtecSchedulerC.h"
#include "orbsvcs/Sched/sched_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Reconfig_Scheduler_Entry;
struct TAO_RT_Info_Tuple;
typedef ACE_Ordered_MultiSet<TAO_RT_Info_Tuple *> TUPLE_SET;
@@ -270,11 +267,18 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "orbsvcs/Scheduler_Factory.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* ACE_SCHEDULER_FACTORY_H */
+
+
+
+
+
+
+
+
+
diff --git a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.i b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.i
index 2c01870582f..add09220816 100644
--- a/TAO/orbsvcs/orbsvcs/Scheduler_Factory.i
+++ b/TAO/orbsvcs/orbsvcs/Scheduler_Factory.i
@@ -1,13 +1,9 @@
-// -*- C++ -*-
-
// ============================================================================
//
// $Id$
//
// ============================================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// This helper function allows the application to determine whether
// the factory is uninitialized, or in a config or runtime mode of
// operation.
@@ -17,5 +13,3 @@ ACE_Scheduler_Factory::status (void)
{
return status_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security.mpc b/TAO/orbsvcs/orbsvcs/Security.mpc
index fb03dc6acc9..71b9446efb0 100644
--- a/TAO/orbsvcs/orbsvcs/Security.mpc
+++ b/TAO/orbsvcs/orbsvcs/Security.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(Security) : orbsvcslib, corba_messaging, core, portableserver, pi, interceptors, valuetype, tao_versioning_idl_defaults {
+project(Security) : orbsvcslib, corba_messaging, core, portableserver, pi, interceptors, valuetype {
sharedname = TAO_Security
idlflags += -Wb,export_macro=TAO_Security_Export -Wb,export_include=orbsvcs/Security/security_export.h
dynamicflags = TAO_SECURITY_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.cpp b/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.cpp
index 0e7c1a01478..c600d1c71c9 100644
--- a/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Security/CSI_Utils.h"
+#include "CSI_Utils.h"
#include "orbsvcs/CSIC.h"
#include "tao/CDR.h"
@@ -12,7 +12,6 @@ ACE_RCSID (Security,
CSI_Utils,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO::CSI_Utils::create_sas_service_context (
@@ -65,5 +64,3 @@ TAO::CSI_Utils::extract_sas_service_context (
return (cdr >> sas_context);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h b/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h
index 8f233dbfd97..5b1e5409858 100644
--- a/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Security/CSI_Utils.h
@@ -18,11 +18,6 @@
// the declared types/variables are not meant to be used outside TAO's
// CSIv2 implementation.
-#include "tao/orbconf.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
namespace IOP
{
@@ -51,6 +46,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_CSI_UTILS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp
index 20216f4a905..5fbdca1e5e7 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/Security/SL2_EstablishTrustPolicy.h"
+#include "SL2_EstablishTrustPolicy.h"
#include "tao/ORB_Constants.h"
@@ -10,8 +10,6 @@ ACE_RCSID (Security,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Security::EstablishTrustPolicy::EstablishTrustPolicy (
const ::Security::EstablishTrust &trust)
: trust_ (trust)
@@ -59,5 +57,3 @@ TAO::Security::EstablishTrustPolicy::trust (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return this->trust_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.h b/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.h
index b7910c316d9..eeb4bc7ddc9 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL2_EstablishTrustPolicy.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Security
@@ -51,7 +49,7 @@ namespace TAO
* appropriate Security::EstablishTrust structure (inserted into a
* CORBA::Any).
*/
- class EstablishTrustPolicy
+ class TAO_Security_Export EstablishTrustPolicy
: public virtual SecurityLevel2::EstablishTrustPolicy,
public virtual TAO_Local_RefCounted_Object
{
@@ -92,15 +90,13 @@ namespace TAO
/// Quality of protection which can be specified for an object
/// reference and used to protect messages.
- ::Security::EstablishTrust const trust_;
+ ::Security::EstablishTrust trust_;
};
} // End Security namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ESTABLISH_TRUST_POLICY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp
index 9175ac608b0..6d9748b209d 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/Security/SL2_QOPPolicy.h"
+#include "SL2_QOPPolicy.h"
#include "tao/ORB_Constants.h"
@@ -10,8 +10,6 @@ ACE_RCSID (Security,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Security::QOPPolicy::QOPPolicy (::Security::QOP qop)
: qop_ (qop)
{
@@ -57,5 +55,3 @@ TAO::Security::QOPPolicy::qop (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return this->qop_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.h b/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.h
index ff8b99e2309..a349ef444a1 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,7 +26,6 @@
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -48,7 +47,7 @@ namespace TAO
* Security::SecQOPPolicy policy type, and the appropriate
* Security::QOP enumeration (inserted into a CORBA::Any).
*/
- class QOPPolicy
+ class TAO_Security_Export QOPPolicy
: public virtual SecurityLevel2::QOPPolicy,
public virtual TAO_Local_RefCounted_Object
{
@@ -89,15 +88,13 @@ namespace TAO
/// Quality of protection which can be specified for an object
/// reference and used to protect messages.
- ::Security::QOP const qop_;
+ ::Security::QOP qop_;
};
} // End Security namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SL2_QOP_POLICY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp
index 22b8d7ad961..e3d0ee246c4 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.cpp
@@ -1,13 +1,12 @@
// $Id$
-#include "orbsvcs/Security/SL3_ContextEstablishmentPolicy.h"
+#include "SL3_ContextEstablishmentPolicy.h"
ACE_RCSID (Security,
SL3_ContextEstablishmentPolicy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SL3::ContextEstablishmentPolicy::ContextEstablishmentPolicy (
SecurityLevel3::CredsDirective creds_directive,
@@ -122,5 +121,3 @@ TAO::SL3::ContextEstablishmentPolicy::destroy (
this->use_confidentiality_ = SecurityLevel3::FD_UseDefault;
this->use_integrity_ = SecurityLevel3::FD_UseDefault;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.h b/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.h
index 266c1dd31f6..5cbb4fe3d86 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_ContextEstablishmentPolicy.h
@@ -30,8 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SL3
@@ -43,7 +41,7 @@ namespace TAO
*
*
*/
- class ContextEstablishmentPolicy
+ class TAO_Security_Export ContextEstablishmentPolicy
: public virtual SecurityLevel3::ContextEstablishmentPolicy,
public virtual TAO_Local_RefCounted_Object
{
@@ -123,7 +121,6 @@ namespace TAO
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp
index 80a5304154e..28e1650facf 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.cpp
@@ -1,14 +1,11 @@
-#include "orbsvcs/Security/SL3_CredentialsAcquirerFactory.h"
+#include "SL3_CredentialsAcquirerFactory.h"
ACE_RCSID (Security,
SL3_CredentialsAcquirerFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SL3::CredentialsAcquirerFactory::~CredentialsAcquirerFactory (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h
index 6320a50b252..6e593d6345d 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsAcquirerFactory.h
@@ -26,7 +26,6 @@
#include "orbsvcs/SecurityLevel3C.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -60,8 +59,6 @@ namespace TAO
} // End SL3 namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp
index 6555f46469c..e0159269ff5 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.cpp
@@ -1,14 +1,13 @@
// $Id$
-#include "orbsvcs/Security/SL3_CredentialsCurator.h"
-#include "orbsvcs/Security/SL3_CredentialsAcquirerFactory.h"
+#include "SL3_CredentialsCurator.h"
+#include "SL3_CredentialsAcquirerFactory.h"
ACE_RCSID (Security,
SL3_CredentialsCurator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -280,5 +279,3 @@ TAO::SL3::CredentialsCurator::_tao_add_own_credentials (
// CredentialsCurator nows owns the id.
(void) credentials_id._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h
index e147100c6c0..e874a126628 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_CredentialsCurator.h
@@ -34,9 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SL3
@@ -163,8 +160,6 @@ namespace TAO
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp
index 69cac1d1ae1..c11ce4a57af 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Security/SL3_ObjectCredentialsPolicy.h"
+#include "SL3_ObjectCredentialsPolicy.h"
ACE_RCSID (Security,
@@ -8,8 +8,6 @@ ACE_RCSID (Security,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SL3::ObjectCredentialsPolicy::ObjectCredentialsPolicy (
const SecurityLevel3::OwnCredentialsList & creds)
: creds_list_ (creds)
@@ -61,5 +59,3 @@ TAO::SL3::ObjectCredentialsPolicy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
this->creds_list_.length (0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.h b/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.h
index c4479d9aa8e..84e1ada564d 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_ObjectCredentialsPolicy.h
@@ -1,3 +1,4 @@
+
// -*- C++ -*-
//=============================================================================
@@ -30,9 +31,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SL3
@@ -48,7 +46,7 @@ namespace TAO
* POA will have the credentials contained within this Policy
* associated with them.
*/
- class ObjectCredentialsPolicy
+ class TAO_Security_Export ObjectCredentialsPolicy
: public virtual SecurityLevel3::ObjectCredentialsPolicy,
public virtual TAO_Local_RefCounted_Object
{
@@ -99,7 +97,6 @@ namespace TAO
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.cpp
index 959a93e4885..7262bb8ce04 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/Security/SL3_PolicyFactory.h"
-#include "orbsvcs/Security/SL3_ContextEstablishmentPolicy.h"
-#include "orbsvcs/Security/SL3_ObjectCredentialsPolicy.h"
+#include "SL3_PolicyFactory.h"
+#include "SL3_ContextEstablishmentPolicy.h"
+#include "SL3_ObjectCredentialsPolicy.h"
ACE_RCSID (Security,
@@ -10,8 +10,6 @@ ACE_RCSID (Security,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy_ptr
TAO::SL3::PolicyFactory::create_policy (CORBA::PolicyType type,
const CORBA::Any & value
@@ -59,5 +57,3 @@ TAO::SL3::PolicyFactory::create_policy (CORBA::PolicyType type,
return policy;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h b/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h
index 9c3a36b0913..9cf82400061 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_PolicyFactory.h
@@ -29,8 +29,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SL3
@@ -73,7 +71,6 @@ namespace TAO
} // End SL3 namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp
index db6609f803b..2ad9a8ca9fc 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Security/SL3_SecurityCurrent.h"
+#include "SL3_SecurityCurrent.h"
ACE_RCSID (Security,
@@ -9,10 +9,9 @@ ACE_RCSID (Security,
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/Security/SL3_SecurityCurrent.inl"
+# include "SL3_SecurityCurrent.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::SL3::SecurityCurrent::SecurityCurrent (size_t tss_slot,
TAO_ORB_Core * oc)
@@ -56,5 +55,3 @@ TAO::SL3::SecurityCurrent::request_is_local (ACE_ENV_SINGLE_ARG_DECL)
return impl->request_is_local (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.h b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.h
index b592530c19e..cd84dbbff61 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.h
@@ -22,7 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Security/SL3_SecurityCurrent_Impl.h"
+#include "SL3_SecurityCurrent_Impl.h"
#include "orbsvcs/SecurityLevel3C.h"
@@ -33,7 +33,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Core;
@@ -130,17 +129,16 @@ namespace TAO
/// Pointer to the ORB Core corresponding to the ORB with which
/// this object is registered.
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core *orb_core_;
};
} // End SL3 namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-# include "orbsvcs/Security/SL3_SecurityCurrent.inl"
+# include "SL3_SecurityCurrent.inl"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.inl b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.inl
index 4194ffe1895..ca53b8175b0 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.inl
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent.inl
@@ -5,8 +5,6 @@
#include "tao/ORB_Core.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE size_t
TAO::SL3::SecurityCurrent::tss_slot (void) const
{
@@ -22,5 +20,3 @@ TAO::SL3::SecurityCurrent::implementation (void)
return impl;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp
index 14b7a548c16..a0e96f0ed65 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.cpp
@@ -1,16 +1,12 @@
// -*- C++ -*-
-#include "orbsvcs/Security/SL3_SecurityCurrent_Impl.h"
+#include "SL3_SecurityCurrent_Impl.h"
ACE_RCSID (Security,
SL3_Security_Current_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SL3::SecurityCurrent_Impl::~SecurityCurrent_Impl (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
index 59501c69339..5b0b97162ad 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
@@ -21,12 +21,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#include "orbsvcs/SecurityLevel3C.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SL3
@@ -78,8 +75,6 @@ namespace TAO
} // End Security namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SL3_SECURITY_CURRENT_IMPL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp
index 1cf548a4f2e..8dede16ad3d 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/Security/SL3_SecurityManager.h"
-#include "orbsvcs/Security/SL3_ContextEstablishmentPolicy.h"
-#include "orbsvcs/Security/SL3_ObjectCredentialsPolicy.h"
+#include "SL3_SecurityManager.h"
+#include "SL3_ContextEstablishmentPolicy.h"
+#include "SL3_ObjectCredentialsPolicy.h"
ACE_RCSID (Security,
@@ -10,8 +10,6 @@ ACE_RCSID (Security,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::SL3::SecurityManager::SecurityManager (
SecurityLevel3::CredentialsCurator_ptr cc)
: credentials_curator_ (SecurityLevel3::CredentialsCurator::_duplicate (cc))
@@ -80,5 +78,3 @@ TAO::SL3::SecurityManager::create_object_creds_policy (
return policy;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.h b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.h
index 3f1ac2054ae..44d02adfcac 100644
--- a/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.h
+++ b/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityManager.h
@@ -30,9 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace SL3
@@ -44,7 +41,7 @@ namespace TAO
*
*
*/
- class SecurityManager
+ class TAO_Security_Export SecurityManager
: public virtual SecurityLevel3::SecurityManager,
public virtual TAO_Local_RefCounted_Object
{
@@ -94,7 +91,7 @@ namespace TAO
* Protected destructor to enforce proper memory management
* through the reference counting mechanism.
*/
- virtual ~SecurityManager (void);
+ ~SecurityManager (void);
private:
@@ -107,8 +104,6 @@ namespace TAO
} // End SL3 namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp b/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp
index 0470c54ab17..321151fc753 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/Security/Security_Current.h"
+#include "Security_Current.h"
#include "tao/debug.h"
ACE_RCSID (Security,
@@ -8,11 +8,9 @@ ACE_RCSID (Security,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "orbsvcs/Security/Security_Current.inl"
+# include "Security_Current.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Security_Current::TAO_Security_Current (size_t tss_slot,
const char *orb_id)
: tss_slot_ (tss_slot),
@@ -93,5 +91,3 @@ TAO_Security_Current::init (void)
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current.h b/TAO/orbsvcs/orbsvcs/Security/Security_Current.h
index 118689ca9d4..693ffe05426 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_Current.h
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,7 +25,7 @@
#include "tao/ORB_Core.h"
#include "tao/LocalObject.h"
-#include "orbsvcs/Security/Security_Current_Impl.h"
+#include "Security_Current_Impl.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -34,8 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Security_Current
*
@@ -116,28 +114,27 @@ private:
/// Prevent copying through the copy constructor and the assignment
/// operator.
//@{
- TAO_Security_Current (const TAO_Security_Current &);
- void operator= (const TAO_Security_Current &);
+ ACE_UNIMPLEMENTED_FUNC (
+ TAO_Security_Current (const TAO_Security_Current &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Security_Current &))
//@}
private:
/// TSS slot assigned to this object.
- size_t const tss_slot_;
+ size_t tss_slot_;
/// The ORBid of the ORB with which this object is registered.
CORBA::String_var orb_id_;
/// Pointer to the ORB Core corresponding to the ORB with which this
/// object is registered.
- TAO_ORB_Core * orb_core_;
+ TAO_ORB_Core *orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "orbsvcs/Security/Security_Current.inl"
+# include "Security_Current.inl"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current.inl b/TAO/orbsvcs/orbsvcs/Security/Security_Current.inl
index eee8c6c11fe..c194ecf4d1a 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_Current.inl
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE size_t
TAO_Security_Current::tss_slot (void) const
{
@@ -22,5 +20,3 @@ TAO_Security_Current::implementation (void)
return impl;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp
index a0239a9ca7d..57f35df99d7 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.cpp
@@ -1,15 +1,12 @@
// -*- C++ -*-
-#include "orbsvcs/Security/Security_Current_Impl.h"
+#include "Security_Current_Impl.h"
ACE_RCSID (Security,
SL3_Security_Current_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::Security::Current_Impl::~Current_Impl (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h
index f92e121fddf..a297564e3fd 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_Current_Impl.h
@@ -21,11 +21,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#include "orbsvcs/SecurityLevel2C.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Security
@@ -88,8 +86,6 @@ namespace TAO
} // End Security namespace.
} // End TAO namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SECURITY_CURRENT_IMPL_H */
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp b/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp
index 396f2116aa0..ad129be0e9e 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "orbsvcs/Security/Security_ORBInitializer.h"
+#include "Security_ORBInitializer.h"
ACE_RCSID (Security,
Security_ORBInitializer,
@@ -8,9 +8,9 @@ ACE_RCSID (Security,
// #include "Security_Current.h"
-#include "orbsvcs/Security/SL3_SecurityCurrent.h"
-#include "orbsvcs/Security/SL3_CredentialsCurator.h"
-#include "orbsvcs/Security/SL3_SecurityManager.h"
+#include "SL3_SecurityCurrent.h"
+#include "SL3_CredentialsCurator.h"
+#include "SL3_SecurityManager.h"
#include "orbsvcs/SecurityC.h"
@@ -18,7 +18,6 @@ ACE_RCSID (Security,
#include "tao/ORB_Constants.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO::Security::ORBInitializer::pre_init (
@@ -236,5 +235,3 @@ TAO::Security::ORBInitializer::register_policy_factories (
// ----------------------------------------------------------------
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.h b/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.h
index c6a17685f4d..ec755fcb406 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.h
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_ORBInitializer.h
@@ -20,7 +20,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,7 +29,7 @@
#include "tao/PI/PI.h"
#include "tao/LocalObject.h"
-#include "orbsvcs/Security/Security_PolicyFactory.h"
+#include "Security_PolicyFactory.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -38,8 +38,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Security ORB initializer.
namespace TAO
{
@@ -95,8 +93,6 @@ namespace TAO
} // End Security namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp b/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp
index 96f0ddbb787..1f79aff69bf 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.cpp
@@ -1,24 +1,22 @@
// -*- C++ -*-
-#include "orbsvcs/Security/Security_PolicyFactory.h"
+#include "Security_PolicyFactory.h"
ACE_RCSID (Security,
Security_PolicyFactory,
"$Id$")
-#include "orbsvcs/Security/SL2_QOPPolicy.h"
-#include "orbsvcs/Security/SL2_EstablishTrustPolicy.h"
+#include "SL2_QOPPolicy.h"
+#include "SL2_EstablishTrustPolicy.h"
-#include "orbsvcs/Security/SL3_ContextEstablishmentPolicy.h"
-#include "orbsvcs/Security/SL3_ObjectCredentialsPolicy.h"
+#include "SL3_ContextEstablishmentPolicy.h"
+#include "SL3_ObjectCredentialsPolicy.h"
#include "orbsvcs/SecurityLevel2C.h"
#include "orbsvcs/SecurityLevel3C.h"
#include "tao/ORB_Constants.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy_ptr
TAO::Security::PolicyFactory::create_policy (
CORBA::PolicyType type,
@@ -155,5 +153,3 @@ TAO::Security::PolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.h b/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.h
index 24ca4b500db..e9dc2e54fb5 100644
--- a/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.h
+++ b/TAO/orbsvcs/orbsvcs/Security/Security_PolicyFactory.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Security/security_export.h"
+#include "security_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Security
@@ -46,7 +44,7 @@ namespace TAO
*
* Policy factory for all security related policies.
*/
- class PolicyFactory
+ class TAO_Security_Export PolicyFactory
: public PortableInterceptor::PolicyFactory,
public CORBA::LocalObject
{
@@ -62,7 +60,6 @@ namespace TAO
} // End Security namespace
} // End TAO namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.cpp b/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.cpp
index e243dfa2530..3de15da1e53 100644
--- a/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.cpp
+++ b/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.cpp
@@ -1,14 +1,11 @@
// $Id$
-#include "orbsvcs/Shutdown_Utilities.h"
-#include "ace/Log_Msg.h"
+#include "Shutdown_Utilities.h"
ACE_RCSID(orbsvcs,
Shutdown_Utilities,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
Service_Shutdown::Service_Shutdown (Shutdown_Functor& sf)
: functor_(sf)
{
@@ -41,7 +38,7 @@ void
Service_Shutdown::set_signals (ACE_Sig_Set& which_signals)
{
// iterate over all the signals in which_signals and register them...
- bool did_register = false;
+ int did_register = 0;
for (int i = 1; i < ACE_NSIG; ++i)
{
if (which_signals.is_member (i))
@@ -60,12 +57,7 @@ Service_Shutdown::set_signals (ACE_Sig_Set& which_signals)
}
}
else
- {
- // Store that we have registered for this signal
- // we have to unregister later for just these signals
- this->registered_signals_.sig_add (i);
- did_register = true;
- }
+ did_register = 1;
}
}
if (! did_register)
@@ -78,12 +70,7 @@ Service_Shutdown::set_signals (ACE_Sig_Set& which_signals)
Service_Shutdown::~Service_Shutdown ()
{
for (int i = 1; i < ACE_NSIG; ++i)
- {
- if (this->registered_signals_.is_member (i))
- {
- this->shutdown_.remove_handler(i);
- }
- }
+ this->shutdown_.remove_handler(i);
}
int
@@ -93,5 +80,3 @@ Service_Shutdown::handle_signal (int signum,
this->functor_(signum);
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.h b/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.h
index 9d4983ffaaf..a91705d3401 100644
--- a/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.h
+++ b/TAO/orbsvcs/orbsvcs/Shutdown_Utilities.h
@@ -1,19 +1,13 @@
-// -*- C++ -*-
-
#ifndef _SHUTDOWN_UTILS_H
#define _SHUTDOWN_UTILS_H
#include /**/ "ace/pre.h"
// $Id$
-#include "orbsvcs/svc_utils_export.h"
-
-#include "tao/Versioned_Namespace.h"
+#include <ace/Event_Handler.h>
+#include <ace/Signal.h>
-#include "ace/Event_Handler.h"
-#include "ace/Signal.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "orbsvcs/svc_utils_export.h"
/**
* \brief Abstract definition for a Functor that shuts down a particular service.
@@ -60,10 +54,7 @@ public:
protected:
Shutdown_Functor& functor_;
ACE_Sig_Handler shutdown_;
- ACE_Sig_Set registered_signals_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif
diff --git a/TAO/orbsvcs/orbsvcs/Svc_Utils.mpc b/TAO/orbsvcs/orbsvcs/Svc_Utils.mpc
index 6d3f2ea5626..8cf1f9a2feb 100644
--- a/TAO/orbsvcs/orbsvcs/Svc_Utils.mpc
+++ b/TAO/orbsvcs/orbsvcs/Svc_Utils.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(Svc_Utils) : orbsvcslib, core, portableserver, tao_versioning_idl_defaults {
+project(Svc_Utils) : orbsvcslib, acesocketslib_for_tao, core, portableserver {
sharedname = TAO_Svc_Utils
idlflags += -Wb,export_macro=TAO_Svc_Utils_Export -Wb,export_include=orbsvcs/svc_utils_export.h
dynamicflags = TAO_SVC_UTILS_BUILD_DLL
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency.pc.in
index d3f639711d0..8a4f595de8f 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency.pc.in
@@ -4,8 +4,8 @@ libdir=@libdir@
includedir=@includedir@
Name: TAO_CosConcurrency
-Description: TAO CosConcurrency Stub Library
-Requires: TAO_AnyTypeCode, TAO
+Description: TAO CosConcurrency Library
+Requires: TAO_PortableServer, TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosConcurrency
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Serv.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Serv.pc.in
deleted file mode 100644
index 60156a705ca..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Serv.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_CosConcurrency_Serv
-Description: TAO CosConcurrency Service Library
-Requires: TAO_CosConcurrency_Skel
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_CosConcurrency_Serv
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Skel.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Skel.pc.in
deleted file mode 100644
index 6a7095e3c5a..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_CosConcurrency_Skel.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_CosConcurrency_Skel
-Description: TAO CosConcurrency Skeleton Library
-Requires: TAO_CosConcurrency, TAO_PortableServer
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_CosConcurrency_Skel
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosEvent.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosEvent.pc.in
index 98cfefc9dbe..c2e41dfb662 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosEvent.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosEvent.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_CosEvent
Description: TAO CosEvent Stub Library
-Requires: TAO_AnyTypeCode, TAO
+Requires: TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosEvent
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosEvent_Serv.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosEvent_Serv.pc.in
index 5f96ef5e7d8..47b15e352e5 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosEvent_Serv.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosEvent_Serv.pc.in
@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
-Name: TAO_CosEvent_Serv
-Description: TAO CosEvent Service Library
-Requires: TAO_CosEvent_Skel, TAO_DynamicInterface, TAO_IFR_Client, TAO_Messaging, TAO_CosNaming, TAO_Svc_Utils
+Name: TAO_CosNaming_Serv
+Description: TAO CosNaming Service Library
+Requires: TAO_CosNaming_Skel, TAO_Messaging, TAO_Svc_Utils, TAO_CosNaming, TAO_DynamicInterface, TAO_IFR_Client
Version: @VERSION@
-Libs: -L${libdir} -lTAO_CosEvent_Serv
+Libs: -L${libdir} -lTAO_CosNaming_Serv
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosNaming.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosNaming.pc.in
index 19899254747..3af02c275ca 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosNaming.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosNaming.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_CosNaming
Description: TAO CosNaming Stub Library
-Requires: TAO_AnyTypeCode, TAO
+Requires: TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosNaming
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosNotification.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosNotification.pc.in
index 5fec272c552..eca2cdda7dc 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosNotification.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosNotification.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_CosNotification
Description: TAO CosNotification Stub Library
-Requires: TAO_CosEvent, TAO
+Requires: TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosNotification
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosNotification_Skel.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosNotification_Skel.pc.in
index 292003b1293..5b1034aa033 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosNotification_Skel.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosNotification_Skel.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_CosNotification_Skel
Description: TAO CosNotification Skeleton Library
-Requires: TAO_CosNotification, TAO_CosEvent_Skel, TAO_PortableServer
+Requires: TAO_CosNotification, TAO_PortableServer
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosNotification_Skel
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosProperty.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosProperty.pc.in
index 67038f6d9e6..b36f4460953 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosProperty.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosProperty.pc.in
@@ -4,8 +4,8 @@ libdir=@libdir@
includedir=@includedir@
Name: TAO_CosProperty
-Description: TAO CosProperty Stub Library
-Requires: TAO_AnyTypeCode, TAO
+Description: TAO CosProperty Library
+Requires: TAO_PortableServer, TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosProperty
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosProperty_Serv.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosProperty_Serv.pc.in
deleted file mode 100644
index ae944d6d818..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_CosProperty_Serv.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_CosProperty_Serv
-Description: TAO CosProperty Service Library
-Requires: TAO_PortableServer_Skel
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_CosProperty_Serv
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosProperty_Skel.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosProperty_Skel.pc.in
deleted file mode 100644
index 34cfa1f495f..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_CosProperty_Skel.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_CosProperty_Skel
-Description: TAO CosProperty Skeleton Library
-Requires: TAO_CosProperty, TAO_PortableServer
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_CosProperty_Skel
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_CosTrading.pc.in b/TAO/orbsvcs/orbsvcs/TAO_CosTrading.pc.in
index 517f619d0a4..f505f6744e3 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_CosTrading.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_CosTrading.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_CosTrading
Description: TAO CosTrading Stub Library
-Requires: TAO_AnyTypeCode, TAO
+Requires: TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_CosTrading
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_DsLogAdmin.pc.in b/TAO/orbsvcs/orbsvcs/TAO_DsLogAdmin.pc.in
index 90bfd120c36..27962a0b933 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_DsLogAdmin.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_DsLogAdmin.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_DsLogAdmin
Description: TAO Basic Logging Service Stub Library
-Requires: TAO_AnyTypeCode, TAO
+Requires: TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_DsLogAdmin
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_ETCL.pc.in b/TAO/orbsvcs/orbsvcs/TAO_ETCL.pc.in
index 98825681b5b..6dd5a08e1a0 100644
--- a/TAO/orbsvcs/orbsvcs/TAO_ETCL.pc.in
+++ b/TAO/orbsvcs/orbsvcs/TAO_ETCL.pc.in
@@ -5,7 +5,7 @@ includedir=@includedir@
Name: TAO_ETCL
Description: TAO Extended Trading Constraint Language Library
-Requires: TAO_AnyTypeCode, TAO
+Requires: TAO
Version: @VERSION@
Libs: -L${libdir} -lTAO_ETCL
Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_RTEvent.pc.in b/TAO/orbsvcs/orbsvcs/TAO_RTEvent.pc.in
deleted file mode 100644
index b36d36acba5..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_RTEvent.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_RTEvent
-Description: TAO RTEvent Stub Library
-Requires: TAO_Svc_Utils, TAO_AnyTypeCode, TAO
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_RTEvent
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin.pc.in b/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin.pc.in
deleted file mode 100644
index 7c0ba70dab7..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_RTEventLogAdmin
-Description: TAO RTEvent Logging Service Stub Library
-Requires: TAO, TAO_DsLogAdmin, TAO_RTEvent
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_RTEventLogAdmin
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Serv.pc.in b/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Serv.pc.in
deleted file mode 100644
index 8e63c1dd211..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Serv.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_RTEventLogAdmin_Serv
-Description: TAO RTEvent Logging Service Implementation Library
-Requires: TAO_RTEventLogAdmin_Skel, TAO_DsLogAdmin_Serv, TAO_RTEvent_Serv
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_RTEventLogAdmin_Serv
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Skel.pc.in b/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Skel.pc.in
deleted file mode 100644
index 210fe308b19..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_RTEventLogAdmin_Skel.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_RTEventLogAdmin_Skel
-Description: TAO RTEvent Logging Service Skeleton Library
-Requires: TAO_RTEventLogAdmin, TAO_DsLogAdmin_Skel, TAO_RTEvent_Skel, TAO_PortableServer
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_RTEventLogAdmin_Skel
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_RTEvent_Serv.pc.in b/TAO/orbsvcs/orbsvcs/TAO_RTEvent_Serv.pc.in
deleted file mode 100644
index b37c07333ea..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_RTEvent_Serv.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_RTEvent_Serv
-Description: TAO RTEvent Service Library
-Requires: TAO_RTEvent_Skel, TAO_Svc_Utils, TAO_Messaging
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_RTEvent_Serv
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/TAO_RTEvent_Skel.pc.in b/TAO/orbsvcs/orbsvcs/TAO_RTEvent_Skel.pc.in
deleted file mode 100644
index 4d862cc270d..00000000000
--- a/TAO/orbsvcs/orbsvcs/TAO_RTEvent_Skel.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_RTEvent_Skel
-Description: TAO RTEvent Skeleton Library
-Requires: TAO_RTEvent, TAO_PortableServer
-Version: @VERSION@
-Libs: -L${libdir} -lTAO_RTEvent_Skel
-Cflags: -I${includedir}
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp
index 55708a8dc13..0da9f75664f 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.cpp
@@ -1,8 +1,7 @@
+// -*- C++ -*-
// $Id$
-#include "orbsvcs/Time/TAO_TIO.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "TAO_TIO.h"
// Constructor.
TAO_TIO::TAO_TIO (TimeBase::TimeT lower,
@@ -70,8 +69,7 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
ACE_NEW_RETURN (tio,
TAO_TIO (lb1, up1),
CosTime::OTNoOverlap);
- overlap = tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio->_this ();
return CosTime::OTOverlap;
}
@@ -82,7 +80,6 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
CosTime::OTNoOverlap);
overlap = tio->_this ();
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
return CosTime::OTContained;
}
@@ -92,8 +89,7 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
TAO_TIO (lb2, up2),
CosTime::OTNoOverlap);
- overlap = tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio->_this ();
return CosTime::OTContained;
}
@@ -105,8 +101,7 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
TAO_TIO (0, 0),
CosTime::OTNoOverlap);
- overlap = tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio->_this ();
return CosTime::OTNoOverlap;
}
@@ -115,8 +110,7 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
ACE_NEW_RETURN (tio,
TAO_TIO (lb2, up1),
CosTime::OTNoOverlap);
- overlap = tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio->_this ();
return CosTime::OTOverlap;
}
@@ -128,8 +122,7 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
TAO_TIO (0, 0),
CosTime::OTNoOverlap);
- overlap = tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio->_this ();
return CosTime::OTNoOverlap;
}
@@ -139,8 +132,8 @@ TAO_TIO::spans (CosTime::UTO_ptr uto,
TAO_TIO (lb1, up2),
CosTime::OTNoOverlap);
- overlap = tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio->_this ();
+
}
}
ACE_CATCHANY
@@ -187,8 +180,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio,
ACE_CHECK_RETURN (CosTime::OTNoOverlap);
- overlap = tio_i->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio_i->_this ();
return CosTime::OTOverlap;
}
@@ -199,8 +191,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio,
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CosTime::OTNoOverlap);
- overlap = tio_i->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio_i->_this ();
return CosTime::OTContained;
}
@@ -211,8 +202,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio,
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CosTime::OTNoOverlap);
- overlap = tio_i->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio_i->_this ();
return CosTime::OTContained;
}
@@ -224,8 +214,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio,
TAO_TIO (0, 0),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CosTime::OTNoOverlap);
- overlap = tio_i->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio_i->_this ();
return CosTime::OTNoOverlap;
}
@@ -236,8 +225,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio,
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CosTime::OTNoOverlap);
- overlap = tio_i->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio_i->_this ();
return CosTime::OTOverlap;
}
@@ -249,8 +237,7 @@ TAO_TIO::overlaps (CosTime::TIO_ptr tio,
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (CosTime::OTNoOverlap);
- overlap = tio_i->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (CosTime::OTNoOverlap);
+ overlap = tio_i->_this ();
return CosTime::OTNoOverlap;
}
@@ -282,7 +269,5 @@ TAO_TIO::time (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK_RETURN (CosTime::UTO::_nil ());
- return uto->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
+ return uto->_this ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.h b/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.h
index ff4f0e8ab36..cdebf3a0462 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.h
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_TIO.h
@@ -19,10 +19,8 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/TimeServiceS.h"
-#include "orbsvcs/Time/TAO_UTO.h"
-#include "orbsvcs/Time/time_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "TAO_UTO.h"
+#include "time_export.h"
/**
* @class TAO_TIO
@@ -89,7 +87,5 @@ private:
TimeBase::IntervalT attr_time_interval;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TIO_H */
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
index 710c8fad7ee..2667b77f73a 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.cpp
@@ -1,15 +1,13 @@
// -*- C++ -*-
// $Id$
-#include "orbsvcs/Time/TAO_Time_Service_Clerk.h"
-#include "orbsvcs/Time/TAO_TIO.h"
-#include "orbsvcs/Time/TAO_UTO.h"
+#include "TAO_Time_Service_Clerk.h"
+#include "TAO_TIO.h"
+#include "TAO_UTO.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_sys_time.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Time_Service_Clerk::TAO_Time_Service_Clerk (int timer_value,
int timer_value_usecs,
@@ -177,5 +175,3 @@ TAO_Time_Service_Clerk::inaccuracy (TimeBase::InaccuracyT inaccuracy)
{
this->inaccuracy_ = inaccuracy;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.h b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.h
index ef8d5a9a3dd..41357544e52 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.h
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Clerk.h
@@ -21,11 +21,8 @@
#include "ace/Reactor.h"
#include "orbsvcs/TimeServiceS.h"
-#include "orbsvcs/Time/Timer_Helper.h"
-#include "orbsvcs/Time/time_export.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Timer_Helper.h"
+#include "time_export.h"
/**
* @class TAO_Time_Service_Clerk
@@ -135,7 +132,5 @@ private:
Timer_Helper helper_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TIME_SERVICE_CLERK_H */
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
index 6fc4cf2b98e..54422e753ff 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.cpp
@@ -1,6 +1,6 @@
-#include "orbsvcs/Time/TAO_UTO.h"
-#include "orbsvcs/Time/TAO_TIO.h"
-#include "orbsvcs/Time/TAO_Time_Service_Server.h"
+#include "TAO_UTO.h"
+#include "TAO_TIO.h"
+#include "TAO_Time_Service_Server.h"
#include "ace/OS_NS_sys_time.h"
#include "orbsvcs/Time_Utilities.h"
@@ -11,7 +11,6 @@ ACE_RCSID (Time,
TAO_Time_Service_Server,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Constructor.
TAO_Time_Service_Server::TAO_Time_Service_Server (void)
@@ -123,5 +122,3 @@ TAO_Time_Service_Server::new_interval (TimeBase::TimeT lower,
return tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.h b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.h
index c87d563935a..f83b3cb5701 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.h
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_Time_Service_Server.h
@@ -19,9 +19,7 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/TimeServiceS.h"
-#include "orbsvcs/Time/time_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "time_export.h"
/**
* @class TAO_Time_Service_Server
@@ -81,7 +79,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TIME_SERVICE_SERVER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
index c9ea818a549..467d95525d2 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.cpp
@@ -1,8 +1,8 @@
// -*- C++ -*-
// $Id$
-#include "orbsvcs/Time/TAO_UTO.h"
-#include "orbsvcs/Time/TAO_TIO.h"
+#include "TAO_UTO.h"
+#include "TAO_TIO.h"
#include "ace/OS.h"
@@ -11,8 +11,6 @@ ACE_RCSID (Time,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UTO::TAO_UTO (TimeBase::TimeT time,
TimeBase::InaccuracyT inaccuracy,
TimeBase::TdfT tdf)
@@ -242,5 +240,3 @@ TAO_UTO::interval (ACE_ENV_SINGLE_ARG_DECL)
return tio->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.h b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.h
index b4e72e090da..b705d2244d8 100644
--- a/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.h
+++ b/TAO/orbsvcs/orbsvcs/Time/TAO_UTO.h
@@ -19,9 +19,7 @@
#include /**/ "ace/pre.h"
#include "orbsvcs/TimeServiceS.h"
-#include "orbsvcs/Time/time_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "time_export.h"
/**
* @class TAO_UTO
@@ -113,7 +111,5 @@ private:
TimeBase::UtcT attr_utc_time_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UTO_H */
diff --git a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp
index 47923f8dba3..aa2c45aae47 100644
--- a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.cpp
@@ -1,5 +1,5 @@
-#include "orbsvcs/Time/Timer_Helper.h"
-#include "orbsvcs/Time/TAO_Time_Service_Clerk.h"
+#include "Timer_Helper.h"
+#include "TAO_Time_Service_Clerk.h"
#include "tao/debug.h"
@@ -11,8 +11,6 @@ ACE_RCSID (Time,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
Timer_Helper::Timer_Helper (void)
: clerk_ (0)
{
@@ -152,5 +150,3 @@ Timer_Helper::handle_timeout (const ACE_Time_Value &,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.h b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.h
index 9bfd7297661..5e89f43785d 100644
--- a/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.h
+++ b/TAO/orbsvcs/orbsvcs/Time/Timer_Helper.h
@@ -25,7 +25,7 @@
#include "ace/Event_Handler.h"
#include "ace/Containers.h"
-#include "orbsvcs/Time/time_export.h"
+#include "time_export.h"
#include "orbsvcs/TimeServiceS.h"
@@ -33,8 +33,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Time_Service_Clerk;
/**
@@ -73,8 +71,6 @@ protected:
typedef ACE_Array_Base<CosTime::TimeService_var> IORS;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TIMER_HELPER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Time_Utilities.cpp b/TAO/orbsvcs/orbsvcs/Time_Utilities.cpp
index 80152580eb5..d47168b1212 100644
--- a/TAO/orbsvcs/orbsvcs/Time_Utilities.cpp
+++ b/TAO/orbsvcs/orbsvcs/Time_Utilities.cpp
@@ -8,8 +8,6 @@
ACE_RCSID(orbsvcs, Time_Utilities, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Number of nanoseconds between CORBA and POSIX epochs.
#ifdef ACE_LACKS_LONGLONG_T
const ACE_UINT64
@@ -18,5 +16,3 @@ ORBSVCS_Time::Time_Base_Offset(0x82B60000, 0x0A990E2D6);
const ACE_UINT64
ORBSVCS_Time::Time_Base_Offset(ACE_UINT64_LITERAL(12218515200000000000));
#endif
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Time_Utilities.h b/TAO/orbsvcs/orbsvcs/Time_Utilities.h
index 8a471f31521..f342e67b3df 100644
--- a/TAO/orbsvcs/orbsvcs/Time_Utilities.h
+++ b/TAO/orbsvcs/orbsvcs/Time_Utilities.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -23,8 +22,6 @@
#include "orbsvcs/svc_utils_export.h"
#include "ace/OS_NS_time.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ORBSVCS_Time
*
@@ -101,8 +98,6 @@ private:
static const ACE_UINT64 Time_Base_Offset;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "orbsvcs/Time_Utilities.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/orbsvcs/orbsvcs/Time_Utilities.i b/TAO/orbsvcs/orbsvcs/Time_Utilities.i
index f7531f657f3..27ea1cdde34 100644
--- a/TAO/orbsvcs/orbsvcs/Time_Utilities.i
+++ b/TAO/orbsvcs/orbsvcs/Time_Utilities.i
@@ -4,8 +4,6 @@
#include "ace/Time_Value.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TimeBase::TimeT
ORBSVCS_Time::zero ()
{
@@ -99,5 +97,3 @@ ORBSVCS_Time::to_Absolute_Time_Value (const TimeBase::TimeT& t)
ORBSVCS_Time::Absolute_TimeT_to_Time_Value (r, t);
return r;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp
index 0db71ba50b0..78672b1dab4 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.cpp
@@ -1,15 +1,12 @@
// $Id$
-#include "orbsvcs/Trader/Constraint_Interpreter.h"
-#include "orbsvcs/Trader/Trader_Constraint_Visitors.h"
+#include "Constraint_Interpreter.h"
+#include "Trader_Constraint_Visitors.h"
ACE_RCSID (Trader,
Constraint_Interpreter,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Constraint_Interpreter::TAO_Constraint_Interpreter (
const CosTradingRepos::ServiceTypeRepository::TypeStruct& ts,
const char* constraints
@@ -251,5 +248,3 @@ TAO_Preference_Interpreter::num_offers (void)
{
return this->offers_.size ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h
index 586f82080e4..b3e7e3ec208 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Interpreter.h
@@ -15,15 +15,13 @@
#define TAO_CONSTRAINT_INTERPRETER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Constraint_Nodes.h"
-#include "orbsvcs/Trader/Constraint_Visitors.h"
-#include "orbsvcs/Trader/Interpreter.h"
+#include "Constraint_Nodes.h"
+#include "Constraint_Visitors.h"
+#include "Interpreter.h"
#include "orbsvcs/CosTradingS.h"
#include "orbsvcs/CosTradingReposS.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Constraint_Evaluator;
class TAO_Constraint_Validator;
@@ -160,7 +158,5 @@ private:
Ordered_Offers offers_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CONSTRAINT_INTERPRETER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp
index fefcfb8aefc..d39235d4340 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Trader/Constraint_Nodes.h"
-#include "orbsvcs/Trader/Constraint_Visitors.h"
+#include "Constraint_Nodes.h"
+#include "Constraint_Visitors.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/Managed_Types.h"
@@ -11,8 +11,6 @@ ACE_RCSID (Trader,
Constraint_Nodes,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Noop_Constraint::accept (TAO_Constraint_Visitor* visitor)
{
@@ -927,5 +925,3 @@ TAO_Literal_Constraint::copy (const TAO_Literal_Constraint& lit)
else
type_ = TAO_UNKNOWN;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h
index 9204494c327..1e73a887e21 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Nodes.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,7 +15,7 @@
#define TAO_CONSTRAINT_NODES_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Constraint_Tokens.h"
+#include "Constraint_Tokens.h"
#include "tao/Basic_Types.h"
@@ -26,8 +26,6 @@
#pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Constraint_Visitor;
typedef unsigned short TAO_Expression_Type;
@@ -349,8 +347,6 @@ class TAO_Trading_Serv_Export TAO_Literal_Constraint : public TAO_Constraint
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp
index edb16fd97b9..0281593f45c 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "orbsvcs/Trader/Constraint_Visitors.h"
-#include "orbsvcs/Trader/Constraint_Nodes.h"
-#include "orbsvcs/Trader/Interpreter_Utils_T.h"
+#include "Constraint_Visitors.h"
+#include "Constraint_Nodes.h"
+#include "Interpreter_Utils_T.h"
#include "tao/DynamicAny/DynSequence_i.h"
@@ -14,8 +14,6 @@ ACE_RCSID (Trader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Constraint_Evaluator::Operand_Queue::Operand_Queue (void)
{
}
@@ -1200,5 +1198,3 @@ TAO_Constraint_Validator::expr_returns_string (TAO_Expression_Type expr_type)
return return_value;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h
index 9bbba2e8755..b1870a30889 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_Visitors.h
@@ -19,8 +19,6 @@
#include "orbsvcs/Trader/trading_serv_export.h"
#include "ace/Containers.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_DynSequence_i;
class TAO_Constraint;
@@ -87,12 +85,8 @@ public:
virtual int visit_property (TAO_Property_Constraint* literal) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include "orbsvcs/Trader/Constraint_Nodes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Constraint_Validator
*
@@ -443,7 +437,5 @@ public:
const char* element) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* CONSTRAINT_VISITORS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp
index a451f98e6a9..2197337bab9 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_l.cpp
@@ -8,7 +8,6 @@
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
-#include "tao/orbconf.h"
#include "ace/OS.h"
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -84,8 +83,6 @@
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
@@ -408,8 +405,6 @@ char *yytext;
#define INITIAL 0
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// $Id$
// ========================================================================
//
@@ -424,11 +419,9 @@ TAO_END_VERSIONED_NAMESPACE_DECL
//
// ========================================================================
-#include "orbsvcs/Trader/Constraint_Interpreter.h"
-#include "orbsvcs/Trader/Constraint_Nodes.h"
-#include "orbsvcs/Trader/Constraint_Tokens.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Constraint_Interpreter.h"
+#include "Constraint_Nodes.h"
+#include "Constraint_Tokens.h"
static TAO_Literal_Constraint* extract_string(const char*);
@@ -495,8 +488,6 @@ static int yy_top_state YY_PROTO(( void ));
#define YY_NO_TOP_STATE 1
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
@@ -588,8 +579,6 @@ YY_MALLOC_DECL
#define YY_RULE_SETUP \
YY_USER_ACTION
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
YY_DECL
{
register yy_state_type yy_current_state;
@@ -802,7 +791,7 @@ YY_RULE_SETUP
{
yylval.constraint_ =
- new TAO_Literal_Constraint(true);
+ new TAO_Literal_Constraint((CORBA::Boolean) 1);
TAO_YY_LEX_DEBUG; return TAO_BOOLEAN;
}
ACE_NOTREACHED (YY_BREAK)
@@ -811,7 +800,7 @@ YY_RULE_SETUP
{
yylval.constraint_ =
- new TAO_Literal_Constraint(false);
+ new TAO_Literal_Constraint((CORBA::Boolean) 0);
TAO_YY_LEX_DEBUG; return TAO_BOOLEAN;
}
ACE_NOTREACHED (YY_BREAK)
@@ -1786,5 +1775,3 @@ yywrap (void)
{
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp b/TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp
index 4376a5b05ba..df613be500b 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Constraint_y.cpp
@@ -14,10 +14,8 @@
// ========================================================================
#include "ace/OS_NS_string.h"
-#include "orbsvcs/Trader/Constraint_Interpreter.h"
-#include "orbsvcs/Trader/Constraint_Nodes.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Constraint_Interpreter.h"
+#include "Constraint_Nodes.h"
//#define YYDEBUG 1
# define TAO_GT 257
@@ -897,4 +895,3 @@ case 37:
goto yystack; /* reset registers in driver code */
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp
index ff6f7b4a1e4..8205067b623 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.cpp
@@ -1,10 +1,8 @@
// $Id$
-#include "orbsvcs/Trader/Interpreter.h"
+#include "Interpreter.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SYNCH_MUTEX TAO_Interpreter::parserMutex__;
TAO_Interpreter::TAO_Interpreter (void)
@@ -97,5 +95,3 @@ TAO_Lex_String_Input::reset (char* input_string)
TAO_Lex_String_Input::end_ = input_string +
ACE_OS::strlen (TAO_Lex_String_Input::string_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h
index 7971ed9e024..4575bc96e89 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -10,16 +10,15 @@
*/
//=============================================================================
+
#ifndef TAO_TCL_INTERPRETER_H
#define TAO_TCL_INTERPRETER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Constraint_Nodes.h"
-#include "orbsvcs/Trader/Constraint_Visitors.h"
+#include "Constraint_Nodes.h"
+#include "Constraint_Visitors.h"
#include "orbsvcs/Trader/trading_serv_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Constraint_Evaluator;
class TAO_Constraint_Validator;
@@ -101,7 +100,5 @@ typedef union
extern YYSTYPE yylval;
extern YYSTYPE yyval;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TCL_INTERPRETER_H */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.cpp b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.cpp
index 8ee0351020a..22dd38b69d0 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Trader/Interpreter_Utils.h"
+#include "Interpreter_Utils.h"
#include "ace/ACE.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Methods to deal with ACE_Hash_Map_Manager.
TAO_String_Hash_Key::TAO_String_Hash_Key (void)
@@ -96,5 +94,3 @@ sequence_type (CORBA::TypeCode* type_code
return return_value;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.h b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.h
index 9062244f2c7..509d455ec03 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils.h
@@ -22,8 +22,6 @@
#include "orbsvcs/Trader/trading_serv_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Classes to deal with the ACE_Hash_Map_Manager.
/**
@@ -88,8 +86,6 @@ public:
// is <code>.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_INTERPRETER_UTILS_H */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.cpp b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.cpp
index 5474d4fb694..f621f592ea9 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.cpp
@@ -7,8 +7,6 @@
#include "orbsvcs/Trader/Constraint_Visitors.h"
#include "tao/DynamicAny/DynSequence_i.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class OPERAND_TYPE> CORBA::Boolean
TAO_find (const CORBA::Any& sequence, const OPERAND_TYPE& element)
{
@@ -47,6 +45,4 @@ TAO_find (const CORBA::Any& sequence, const OPERAND_TYPE& element)
return return_value;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_INTERPRETER_UTILS_CPP */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.h b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.h
index bbef8857006..4127dc0ddc4 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Interpreter_Utils_T.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
#ifndef TAO_INTERPRETER_UTILS_T_H
@@ -8,15 +6,11 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class OPERAND_TYPE>
CORBA::Boolean TAO_find (const CORBA::Any& sequence, const OPERAND_TYPE& operand);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Trader/Interpreter_Utils_T.cpp"
+#include "Interpreter_Utils_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Locking.h b/TAO/orbsvcs/orbsvcs/Trader/Locking.h
index e01ba419b43..a3b7cd2e7a2 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Locking.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Locking.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp
index 367f7b9a9c5..222c8f5cfa6 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.cpp
@@ -1,13 +1,13 @@
// $Id$
-#ifndef TAO_OFFER_DATABASE_CPP
-#define TAO_OFFER_DATABASE_CPP
+#ifndef TAO_OFFER_DATABASE_C
+#define TAO_OFFER_DATABASE_C
-#include "orbsvcs/Trader/Offer_Database.h"
+#include "Offer_Database.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Trader, Offer_Database, "$Id$")
template <class LOCK_TYPE>
TAO_Offer_Database<LOCK_TYPE>::TAO_Offer_Database (void)
@@ -384,6 +384,4 @@ TAO_Service_Offer_Iterator<LOCK_TYPE>::next_offer (void)
this->offer_iter_->advance ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_OFFER_DATABASE_CPP */
+#endif /* TAO_OFFER_DATABASE_C */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h
index b7ad154a2ef..4ec7cfef179 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Database.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,12 +15,10 @@
#define TAO_OFFER_DATABASE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Trader.h"
-#include "orbsvcs/Trader/Offer_Iterators.h"
+#include "Trader.h"
+#include "Offer_Iterators.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class LOCK_TYPE> class TAO_Service_Offer_Iterator;
/**
@@ -201,10 +199,9 @@ class TAO_Service_Offer_Iterator
const char* type_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Trader/Offer_Database.cpp"
+#include "Offer_Database.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp
index da8ad797031..4ccdb4d0b39 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.cpp
@@ -1,11 +1,9 @@
// $Id$
-#include "orbsvcs/Trader/Offer_Iterators.h"
+#include "Offer_Iterators.h"
ACE_RCSID(Trader, Offer_Iterators, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Offer_Iterator::TAO_Offer_Iterator (const TAO_Property_Filter& pfilter)
: pfilter_ (pfilter)
{
@@ -318,5 +316,3 @@ TAO_Offer_Id_Iterator::insert_id (CosTrading::OfferId new_id)
{
this->ids_.enqueue_tail (new_id);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h
index 247664b6f77..2c836bf660d 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,21 +16,19 @@
#define TAO_OFFER_ITERATORS_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Trader_Utils.h"
+#include "Trader_Utils.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// TAO_Offer_Iterator
// *************************************************************
-class TAO_Offer_Iterator
- : public virtual POA_CosTrading::OfferIterator
+class TAO_Offer_Iterator :
+ public virtual POA_CosTrading::OfferIterator
{
// = TITLE
// This class implements CosTrading::OfferIterator IDL
@@ -288,8 +286,6 @@ class TAO_Offer_Id_Iterator :
TAO_String_Queue ids_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp
index f8ad8bd3a6f..bf0c9c7ad7c 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.cpp
@@ -1,11 +1,11 @@
// $Id$
-#ifndef TAO_OFFER_ITERATORS_T_CPP
-#define TAO_OFFER_ITERATORS_T_CPP
+#ifndef TAO_OFFER_ITERATORS_T_C
+#define TAO_OFFER_ITERATORS_T_C
-#include "orbsvcs/Trader/Offer_Iterators_T.h"
+#include "Offer_Iterators_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Trader, Offer_Iterators_T, "$Id$")
template <class MAP_LOCK_TYPE>
TAO_Register_Offer_Iterator<MAP_LOCK_TYPE>::
@@ -92,6 +92,4 @@ next_n (CORBA::ULong n,
return static_cast<CORBA::Boolean> (ret_offers != 0);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_REGISTER_OFFER_ITERATOR_CPP */
+#endif /* TAO_REGISTER_OFFER_ITERATOR_C */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h
index 8aa992e9add..440b4db8449 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Offer_Iterators_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,17 +16,13 @@
#define TAO_REGISTER_OFFER_ITERATOR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Offer_Iterators.h"
-#include "orbsvcs/Trader/Offer_Database.h"
+#include "Offer_Iterators.h"
+#include "Offer_Database.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Register_Offer_Iterator
*
@@ -82,10 +78,9 @@ private:
TAO_String_Queue offer_ids_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Trader/Offer_Iterators_T.cpp"
+#include "Offer_Iterators_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp
index f596627fda1..1bc95e7bcdc 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "orbsvcs/Trader/Service_Type_Repository.h"
+#include "Service_Type_Repository.h"
#include "ace/Lock_Adapter_T.h"
@@ -10,8 +10,6 @@ ACE_RCSID (Trader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Service_Type_Repository::
TAO_Service_Type_Repository (ACE_Lock* lock)
: lock_ (lock)
@@ -691,5 +689,3 @@ update_type_map (const char *name,
TAO_String_Hash_Key type_name (name);
this->type_map_.bind (type_name, type);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h
index 013061face7..b65b50bb49b 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Service_Type_Repository.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,20 +16,17 @@
#define TAO_SERVICE_TYPE_REPOSITORY_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Trader.h"
+#include "Trader.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Service_Type_Repository
*
* @brief This class implements CosTradingRepos::ServiceTypeRepository
* IDL interface.
*/
-class TAO_Trading_Serv_Export TAO_Service_Type_Repository
- : public POA_CosTradingRepos::ServiceTypeRepository
+class TAO_Trading_Serv_Export TAO_Service_Type_Repository : public POA_CosTradingRepos::ServiceTypeRepository
{
public:
/**
@@ -321,7 +318,5 @@ private:
CosTradingRepos::ServiceTypeRepository::IncarnationNumber incarnation_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVICE_TYPE_REPOSITORY_H */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp
index 14d035ee0e5..2743d67bbdf 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "orbsvcs/Trader/Trader.h"
-#include "orbsvcs/Trader/Offer_Iterators_T.h"
+#include "Trader.h"
+#include "Offer_Iterators_T.h"
#include "ace/Thread_Mutex.h"
#include "ace/RW_Thread_Mutex.h"
#include "ace/OS_NS_strings.h"
@@ -9,14 +9,12 @@
#include "ace/OS_NS_ctype.h"
// The following #include is needed only for the instantiation pragmas.
-#include "orbsvcs/Trader/Trader_Interfaces.h"
+#include "Trader_Interfaces.h"
ACE_RCSID (Trader,
Trader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Trader_Base::TAO_Trader_Base (void)
: trading_components_ (*this),
import_attributes_ (*this),
@@ -634,12 +632,8 @@ operator== (const CosTrading::Admin::OctetSeq& left,
return return_value;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include "ace/Arg_Shifter.h"
-#include "orbsvcs/Trader/Trader_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Trader_T.h"
TAO_Trader_Factory::TAO_TRADER*
TAO_Trader_Factory::create_trader (int& argc, ACE_TCHAR** argv)
@@ -862,5 +856,3 @@ TAO_Trader_Factory::parse_args (int& argc, ACE_TCHAR** argv)
arg_shifter.ignore_arg ();
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader.h b/TAO/orbsvcs/orbsvcs/Trader/Trader.h
index 33206bd58fb..25d731b8fbe 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,7 +17,7 @@
#define TAO_TRADER_BASE_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Interpreter_Utils.h"
+#include "Interpreter_Utils.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -35,8 +35,6 @@
#pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward Declaration.
class TAO_Trader_Base;
@@ -124,7 +122,7 @@ private:
* Class used to remove the circular dependencies between the
* Attribute classes and the Trader class.
*/
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x582)
+#if defined (__BORLANDC__) && (__BORLANDC__ < 0x572)
// Work around Borland unresolved symbol errors concerning the
// out-of-line virtual destructor. The virtual destructor should
// not be inlined, nor should we have to export TAO_Lockable from the
@@ -132,7 +130,7 @@ private:
class TAO_Trading_Serv_Export TAO_Lockable
#else
class TAO_Lockable
-#endif /* __BORLANDC__ < 0x581 */
+#endif /* __BORLANDC__ < 0x572 */
{
public:
virtual ~TAO_Lockable (void);
@@ -515,8 +513,6 @@ bool
operator== (const CosTrading::Admin::OctetSeq& left,
const CosTrading::Admin::OctetSeq& right);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.cpp
index 89c0ec8e1e5..a62b2d3773a 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.cpp
@@ -1,8 +1,6 @@
// $Id$
-#include "orbsvcs/Trader/Trader_Constraint_Visitors.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Trader_Constraint_Visitors.h"
TAO_Trader_Constraint_Evaluator::
TAO_Trader_Constraint_Evaluator (CosTrading::Offer* offer,
@@ -80,5 +78,3 @@ TAO_Trader_Constraint_Validator::
~TAO_Trader_Constraint_Validator ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.h b/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.h
index 3b132230630..e5740b3dc86 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Constraint_Visitors.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -15,15 +14,12 @@
#define TAO_TRADER_CONSTRAINT_VISITOR_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Constraint_Visitors.h"
-#include "orbsvcs/Trader/Trader.h"
-#include "orbsvcs/Trader/Trader_Utils.h"
+#include "Constraint_Visitors.h"
+#include "Trader.h"
+#include "Trader_Utils.h"
#include "orbsvcs/CosTradingC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Trading_Serv_Export TAO_Trader_Constraint_Validator
-: public TAO_Constraint_Validator
+class TAO_Trading_Serv_Export TAO_Trader_Constraint_Validator : public TAO_Constraint_Validator
{
public:
/**
@@ -57,7 +53,5 @@ class TAO_Trading_Serv_Export TAO_Trader_Constraint_Evaluator : public TAO_Const
TAO_Property_Evaluator prop_eval_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TRADER_CONSTRAINT_VISITOR_H */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp
index bb942c91fe5..9b6b450eb52 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.cpp
@@ -1,16 +1,16 @@
// $Id$
-#ifndef TAO_TRADER_INTERFACES_CPP
-#define TAO_TRADER_INTERFACES_CPP
+#if !defined (TAO_TRADER_INTERFACES_C)
+#define TAO_TRADER_INTERFACES_C
-#include "orbsvcs/Trader/Trader_Interfaces.h"
-#include "orbsvcs/Trader/Trader_T.h"
+#include "Trader_Interfaces.h"
+#include "Trader_T.h"
#include "ace/INET_Addr.h"
-#include "orbsvcs/Trader/Trader_Constraint_Visitors.h"
+#include "Trader_Constraint_Visitors.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_unistd.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Trader, Trader_Interfaces, "$Id$")
template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE>
TAO_Lookup<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::
@@ -333,7 +333,7 @@ lookup_all_subtypes (const char* type,
for (CORBA::ULong j = 0; j < num_super_types; j++)
{
- if (ACE_OS::strcmp (type_struct->super_types[j], type) == 0)
+ if (ACE_OS::strcmp (type_struct->super_types[j].in(), type) == 0)
{
// Egads, a subtype! This type has the type passed
// to query in its list of super_types.
@@ -365,9 +365,9 @@ fill_receptacles (const char* /* type */,
{
// BEGIN SPEC
// The returned offers are passed back in one of two ways (or a
- // combination of both). ?The "offers" return result conveys a list
+ // combination of both). ° The "offers" return result conveys a list
// of offers and the "offer_itr" is a reference to an interface at
- // which offers can be obtained. ?The "how_many" parameter states
+ // which offers can be obtained. ° The "how_many" parameter states
// how many offers are to be returned via the "offers" result, any
// remaining offers are available via the iterator interface. If the
// "how_many" exceeds the number of offers to be returned, then the
@@ -609,7 +609,7 @@ federated_query (const CosTrading::LinkNameSeq& links,
// collection. The end result is a distributed tree of offer
// iterators, which if traversed in its entirety is probably hugely
// inefficient, but oh well, I can't think of a better solution.
- TAO_Offer_Iterator_Collection* offer_iter_collection = 0;
+ TAO_Offer_Iterator_Collection* offer_iter_collection;
ACE_NEW (offer_iter_collection,
TAO_Offer_Iterator_Collection);
offer_iter_collection->add_offer_iterator (offer_iter);
@@ -1326,7 +1326,7 @@ TAO_Admin (TAO_Trader<TRADER_LOCK_TYPE,MAP_LOCK_TYPE> &trader)
// The default way -- eight random integers.
else
{
- time_t time_value = ACE_OS::time ();
+ size_t time_value = ACE_OS::time ();
ACE_OS::srand (static_cast<u_int> (time_value));
this->stem_id_[0] = static_cast<CORBA::Octet> (ACE_OS::rand () % 256);
@@ -1356,10 +1356,10 @@ TAO_Admin<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::request_id_stem (ACE_ENV_SINGLE_ARG_D
// prefix. The sequence number is four octets long, the unique
// prefix, also 4 bytes long.
- this->stem_id_[8] = static_cast<CORBA::Octet> (this->sequence_number_ & 0xff);
- this->stem_id_[9] = static_cast<CORBA::Octet> ((this->sequence_number_ >> 8) & 0xff);
- this->stem_id_[10] = static_cast<CORBA::Octet> ((this->sequence_number_ >> 16) & 0xff);
- this->stem_id_[11] = static_cast<CORBA::Octet> ((this->sequence_number_ >> 24) & 0xff);
+ this->stem_id_[8] = this->sequence_number_ & 0xff;
+ this->stem_id_[9] = (this->sequence_number_ >> 8) & 0xff;
+ this->stem_id_[10] = (this->sequence_number_ >> 16) & 0xff;
+ this->stem_id_[11] = (this->sequence_number_ >> 24) & 0xff;
// Increment the sequence number and return a copy of the stem_id.
this->sequence_number_++;
@@ -1926,15 +1926,13 @@ template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE>
void
TAO_Proxy<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>::
list_proxies (CORBA::ULong,
- CosTrading::OfferIdSeq*&,
- CosTrading::OfferIdIterator_ptr&
- ACE_ENV_ARG_DECL)
+ CosTrading::OfferIdSeq*&,
+ CosTrading::OfferIdIterator_ptr&
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
CosTrading::NotImplemented))
{
ACE_THROW (CORBA::UNKNOWN ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_TRADER_INTERFACES_CPP */
+#endif /* TAO_TRADER_INTERFACES_C */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h
index 6c86c7a4840..ece1de9a961 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Interfaces.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,17 +17,15 @@
#define TAO_TRADER_INTERFACES_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Trader_Utils.h"
-#include "orbsvcs/Trader/Constraint_Interpreter.h"
-#include "orbsvcs/Trader/Offer_Iterators_T.h"
+#include "Trader_Utils.h"
+#include "Constraint_Interpreter.h"
+#include "Offer_Iterators_T.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Hack because g++ forced this inane circular dependecy!
class TAO_Constraint_Interpreter;
@@ -41,11 +39,7 @@ template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> class TAO_Admin;
template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> class TAO_Proxy;
template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE> class TAO_Link;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "orbsvcs/Trader/Trader_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Trader_T.h"
/**
* @class TAO_Lookup
@@ -1005,10 +999,8 @@ private:
TAO_Trader<TRADER_LOCK_TYPE,MAP_LOCK_TYPE>& trader_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Trader/Trader_Interfaces.cpp"
+#include "Trader_Interfaces.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp
index 74c5a327976..2b02ec5ffdc 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_T.cpp
@@ -1,12 +1,12 @@
// $Id$
-#ifndef TAO_TRADER_CPP
-#define TAO_TRADER_CPP
+#ifndef TAO_TRADER_C
+#define TAO_TRADER_C
-#include "orbsvcs/Trader/Trader_T.h"
-#include "orbsvcs/Trader/Trader_Interfaces.h"
+#include "Trader_T.h"
+#include "Trader_Interfaces.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(Trader, Trader_T, "$Id$")
template <class TRADER_LOCK_TYPE, class MAP_LOCK_TYPE>
TAO_Trader<TRADER_LOCK_TYPE, MAP_LOCK_TYPE>::
@@ -320,6 +320,4 @@ operator () (TAO_DynSequence_i& dyn_any,
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_TRADER_CPP */
+#endif /* TAO_TRADER_C */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_T.h b/TAO/orbsvcs/orbsvcs/Trader/Trader_T.h
index cf892279bcc..be1ec6a4149 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_T.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,8 +17,8 @@
#define TAO_TRADER_H
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Trader.h"
-#include "orbsvcs/Trader/Offer_Database.h"
+#include "Trader.h"
+#include "Offer_Database.h"
#include "ace/Containers.h"
#include "ace/Lock_Adapter_T.h"
@@ -31,8 +31,6 @@
#pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_DynSequence_i;
/**
@@ -264,10 +262,8 @@ public:
const ELEMENT_TYPE& element);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "orbsvcs/Trader/Trader_T.cpp"
+#include "Trader_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined(_MSC_VER)
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp
index abbfed25134..51464f76e93 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.cpp
@@ -1,12 +1,10 @@
// $Id$
-#include "orbsvcs/Trader/Trader_Utils.h"
+#include "Trader_Utils.h"
#include "ace/OS_NS_string.h"
ACE_RCSID(Trader, Trader_Utils, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Policy_Creator::TAO_Policy_Creator (int num_policies)
: policies_ (num_policies),
num_policies_ (0)
@@ -901,7 +899,7 @@ copy_in_follow_option (CosTrading::PolicySeq& policy_seq,
CORBA::ULong i = 0;
for (i = 0; i < policy_seq.length (); i++)
- if (ACE_OS::strcmp (policy_seq[i].name,
+ if (ACE_OS::strcmp (policy_seq[i].name.in(),
POLICY_NAMES[LINK_FOLLOW_RULE]) == 0)
{
policy_seq[i].value <<= follow_option;
@@ -1524,5 +1522,3 @@ TAO_Property_Filter::filter_offer (CosTrading::Offer* source,
// d_props.replace (length, length, props, 0);
d_props = s_props;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h
index a79c30f8136..0fb91489fa4 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trader_Utils.h
@@ -16,15 +16,13 @@
#include /**/ "ace/pre.h"
-#include "orbsvcs/Trader/Trader.h"
+#include "Trader.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Property_Evaluator
*
@@ -771,8 +769,6 @@ private:
CosTrading::Lookup::HowManyProps policy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp
index a4f3bfd4e5d..480c272f845 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.cpp
@@ -14,11 +14,10 @@
//===========================================================================
-#include "orbsvcs/Trader/Trading_Loader.h"
+#include "Trading_Loader.h"
#include "tao/ORB_Core.h"
#include "tao/default_ports.h"
-#include "tao/IORTable/IORTable.h"
#include "ace/Dynamic_Service.h"
#include "ace/Arg_Shifter.h"
@@ -248,25 +247,6 @@ TAO_Trading_Loader::create_object (CORBA::ORB_ptr orb_ptr,
ACE_OS::fclose (this->ior_output_file_);
}
- CORBA::Object_var table_object =
- orb->resolve_initial_references ("IORTable" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
-
- IORTable::Table_var adapter =
- IORTable::Table::_narrow (table_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
-
- if (CORBA::is_nil (adapter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Nil IORTable\n"));
- }
- else
- {
- adapter->bind ("TradingService",
- this->ior_.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
- }
-
if (this->federate_)
{
// Only become a multicast server if we're the only trader
@@ -422,7 +402,7 @@ TAO_Trading_Loader::init_multicast_server (void)
ACE_OS::getenv ("TradingServicePort");
if (port_number != 0)
- port = static_cast<u_short> (ACE_OS::atoi (port_number));
+ port = ACE_OS::atoi (port_number);
else
port = TAO_DEFAULT_TRADING_SERVER_REQUEST_PORT;
}
diff --git a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h
index 3b344cd9333..a686d40422f 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h
+++ b/TAO/orbsvcs/orbsvcs/Trader/Trading_Loader.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ===========================================================================
@@ -60,7 +58,7 @@ public:
// This function call initializes the Trading Service given a reference to the
// ORB and the command line parameters.
-protected:
+ protected:
int init_multicast_server (void);
// Enable the Trading Service to answer multicast requests for its
@@ -103,11 +101,9 @@ protected:
CORBA::Boolean dumpior_;
// Flag indication whether to dump the ior to standard output
-private:
-
- // Disallow copying and assignment.
- TAO_Trading_Loader (const TAO_Trading_Loader &);
- TAO_Trading_Loader &operator= (const TAO_Trading_Loader &);
+ private:
+ ACE_UNIMPLEMENTED_FUNC (TAO_Trading_Loader (const TAO_Trading_Loader &))
+ ACE_UNIMPLEMENTED_FUNC (TAO_Trading_Loader &operator= (const TAO_Trading_Loader &))
};
diff --git a/TAO/orbsvcs/orbsvcs/Trader/constraint.l b/TAO/orbsvcs/orbsvcs/Trader/constraint.l
index 9d1aef05376..955d62f9cfc 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/constraint.l
+++ b/TAO/orbsvcs/orbsvcs/Trader/constraint.l
@@ -4,7 +4,7 @@
//
// = LIBRARY
// orbsvcs
-//
+//
// = FILENAME
// constraint.l
//
@@ -18,8 +18,6 @@
#include "Constraint_Nodes.h"
#include "Constraint_Tokens.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
static TAO_Literal_Constraint* extract_string(const char*);
#define TAO_YY_LEX_DEBUG
@@ -35,8 +33,8 @@ white_space [ \t]
letter [a-zA-Z]
digit [0-9]
alpha_num ({letter}|{digit})
-integer [-+]?{digit}+
-float ({digit}*\.{digit}+)([eE][-+]?{digit}+)?
+integer [-+]?{digit}+
+float ({digit}*\.{digit}+)([eE][-+]?{digit}+)?
string '(([^'\\]*)|([^'\\]*\\')|([^'\\]*\\\\))*'
ident {letter}({alpha_num}|[_])*
newline \n
@@ -67,37 +65,37 @@ in { TAO_YY_LEX_DEBUG; return TAO_IN; }
"!=" { TAO_YY_LEX_DEBUG; return TAO_NE; }
"(" { TAO_YY_LEX_DEBUG; return TAO_LPAREN; }
")" { TAO_YY_LEX_DEBUG; return TAO_RPAREN; }
-TRUE {
- yylval.constraint_ =
- new TAO_Literal_Constraint(true);
+TRUE {
+ yylval.constraint_ =
+ new TAO_Literal_Constraint((CORBA::Boolean) 1);
TAO_YY_LEX_DEBUG; return TAO_BOOLEAN;
}
-FALSE {
- yylval.constraint_ =
- new TAO_Literal_Constraint(false);
+FALSE {
+ yylval.constraint_ =
+ new TAO_Literal_Constraint((CORBA::Boolean) 0);
TAO_YY_LEX_DEBUG; return TAO_BOOLEAN;
}
-{integer} {
- yylval.constraint_ =
+{integer} {
+ yylval.constraint_ =
new TAO_Literal_Constraint((yytext[0] == '-' ?
(CORBA::Long)atoi(yytext) : (CORBA::ULong)atoi(yytext)));
- TAO_YY_LEX_DEBUG; return TAO_NUMBER;
+ TAO_YY_LEX_DEBUG; return TAO_NUMBER;
}
-{float} {
- yylval.constraint_ =
+{float} {
+ yylval.constraint_ =
new TAO_Literal_Constraint((CORBA::Double)atof(yytext));
- TAO_YY_LEX_DEBUG; return TAO_NUMBER;
+ TAO_YY_LEX_DEBUG; return TAO_NUMBER;
}
-{string} {
+{string} {
yylval.constraint_ = extract_string(yytext);
- TAO_YY_LEX_DEBUG; return TAO_STRING;
+ TAO_YY_LEX_DEBUG; return TAO_STRING;
}
-{ident} {
- yylval.constraint_ =
+{ident} {
+ yylval.constraint_ =
new TAO_Property_Constraint(yytext);
- TAO_YY_LEX_DEBUG; return TAO_IDENT;
+ TAO_YY_LEX_DEBUG; return TAO_IDENT;
}
-{unknown} {
+{unknown} {
TAO_YY_LEX_DEBUG; return TAO_UNKNOWN;
}
%%
@@ -105,7 +103,7 @@ FALSE {
TAO_Literal_Constraint*
extract_string(const char* total)
{
- int prev_slash = 0,
+ int prev_slash = 0,
ctr = 0;
char str[BUFSIZ],
*tmp = (char*) total + 1;
@@ -131,6 +129,4 @@ extract_string(const char* total)
str[ctr - 1] = '\0';
return new TAO_Literal_Constraint(str);
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+} \ No newline at end of file
diff --git a/TAO/orbsvcs/orbsvcs/Trader/constraint.y b/TAO/orbsvcs/orbsvcs/Trader/constraint.y
index 7d32796775a..1e5ab5c81cf 100644
--- a/TAO/orbsvcs/orbsvcs/Trader/constraint.y
+++ b/TAO/orbsvcs/orbsvcs/Trader/constraint.y
@@ -17,8 +17,6 @@
#include "Constraint_Interpreter.h"
#include "Constraint_Nodes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//#define YYDEBUG 1
%}
@@ -135,5 +133,4 @@ factor: TAO_LPAREN bool_or TAO_RPAREN
%%
-TAO_END_VERSIONED_NAMESPACE_DECL
//extern int yydebug = 1;
diff --git a/TAO/orbsvcs/orbsvcs/ec_typed_events_serv.mpb b/TAO/orbsvcs/orbsvcs/ec_typed_events_serv.mpb
index b57bcab5758..86d9c19c060 100644
--- a/TAO/orbsvcs/orbsvcs/ec_typed_events_serv.mpb
+++ b/TAO/orbsvcs/orbsvcs/ec_typed_events_serv.mpb
@@ -4,12 +4,14 @@
feature(ec_typed_events) : dynamicinterface, ifr_client {
macros += TAO_HAS_TYPED_EVENT_CHANNEL
- Source_Files {
- CosEvent/CEC_TypedEvent.cpp
- CosEvent/CEC_TypedEventChannel.cpp
- CosEvent/CEC_TypedProxyPushConsumer.cpp
- CosEvent/CEC_TypedConsumerAdmin.cpp
- CosEvent/CEC_TypedSupplierAdmin.cpp
- CosEvent/CEC_DynamicImplementation.cpp
+ Source_Files(ORBSVCS_COMPONENTS) {
+ CosEvent {
+ CosEvent/CEC_TypedEvent.cpp
+ CosEvent/CEC_TypedEventChannel.cpp
+ CosEvent/CEC_TypedProxyPushConsumer.cpp
+ CosEvent/CEC_TypedConsumerAdmin.cpp
+ CosEvent/CEC_TypedSupplierAdmin.cpp
+ CosEvent/CEC_DynamicImplementation.cpp
+ }
}
}
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp
index b68487ba367..b18f6af0567 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/client.cpp
@@ -23,7 +23,7 @@ int number;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:n:r:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:n:r:");
int c;
while ((c = get_opts ()) != -1)
@@ -71,7 +71,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/server.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/server.cpp
index ed3756bffbe..b3e4d91970b 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/server.cpp
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/CPU/server.cpp
@@ -22,7 +22,7 @@ int num_threads = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:s:r:c:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:s:r:c:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -236,7 +236,7 @@ join_object_group (CORBA::ORB_ptr orb,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am
index fe64ba1e763..c9e53f44635 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/Makefile.am
@@ -22,7 +22,6 @@ noinst_PROGRAMS =
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -55,11 +54,7 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -67,7 +62,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -107,7 +101,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -115,7 +108,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -160,7 +152,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
index 1e85d70efd2..86f905dd6cd 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/ServerRequestInterceptor.h
@@ -30,9 +30,7 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_LB_LoadAlert;
-TAO_END_VERSIONED_NAMESPACE_DECL
/**
* @class ServerRequestInterceptor
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp
index 94221caa7bd..77552424f3b 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/client.cpp
@@ -23,7 +23,7 @@ int number;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:n:r:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:n:r:");
int c;
while ((c = get_opts ()) != -1)
@@ -72,7 +72,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp
index f6ce3d00373..8b4fce4c59a 100644
--- a/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp
+++ b/TAO/orbsvcs/performance-tests/LoadBalancing/LBPerf/RPS/server.cpp
@@ -26,7 +26,7 @@ const char * strategy = "Random";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:s:r:c:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:s:r:c:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -239,7 +239,7 @@ join_object_group (CORBA::ORB_ptr orb,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Colocated_Roundtrip.mpc b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Colocated_Roundtrip.mpc
index 18d1be0bb26..6a73189d618 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Colocated_Roundtrip.mpc
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Colocated_Roundtrip.mpc
@@ -2,12 +2,7 @@
project: orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
driver.cpp
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am
index e9a6a30708c..f5d3f7f311f 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/Makefile.am
@@ -18,7 +18,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = driver
@@ -56,7 +55,6 @@ driver_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.cpp b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.cpp
index d8ebf631bdc..5df2011a298 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/compare_histo.cpp
@@ -41,7 +41,7 @@ load_file (Vector &vector,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
Vector X;
load_file (X, argv[1]);
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/driver.cpp b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/driver.cpp
index 280e7ba2efa..d407bdb827c 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/driver.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Colocated_Roundtrip/driver.cpp
@@ -32,7 +32,7 @@
ACE_RCSID(TAO_PERF_RTEC_Colocated_Roundtrip, driver, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
const CORBA::Long experiment_id = 1;
@@ -130,7 +130,7 @@ int main (int argc, char *argv[])
int thread_count = 1 + options.nthreads;
- ACE_Barrier the_barrier (thread_count);
+ ACE_Barrier barrier (thread_count);
ACE_DEBUG ((LM_DEBUG, "Calibrating high res timer ...."));
ACE_High_Res_Timer::calibrate ();
@@ -186,7 +186,7 @@ int main (int argc, char *argv[])
ec_poa.in (),
ec_poa.in (),
ec.in (),
- &the_barrier
+ &barrier
ACE_ENV_ARG_PARAMETER);
if (options.high_priority_is_last)
@@ -203,7 +203,7 @@ int main (int argc, char *argv[])
ACE_ES_EVENT_UNDEFINED,
experiment_id,
high_priority_group.supplier (),
- &the_barrier);
+ &barrier);
high_priority_task.thr_mgr (&my_thread_manager);
{
// Artificial scope to wait for the high priority task...
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Federated_Roundtrip.mpc b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Federated_Roundtrip.mpc
index a6681bf941c..6e38d73e285 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Federated_Roundtrip.mpc
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Federated_Roundtrip.mpc
@@ -2,10 +2,6 @@
project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- }
includes += ../lib
Source_Files {
@@ -16,10 +12,6 @@ project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*client): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- }
includes += ../lib
Source_Files {
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am
index dcea59cf2d4..77af854fa9f 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/Makefile.am
@@ -19,7 +19,6 @@ noinst_PROGRAMS =
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -58,7 +57,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -66,7 +64,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -105,7 +102,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/client.cpp
index 8720b8bb599..5a1371e5124 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/client.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/client.cpp
@@ -69,7 +69,7 @@ private:
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:l:h:w:v:zr");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:l:h:w:v:zr");
int c;
while ((c = get_opts ()) != -1)
@@ -128,7 +128,7 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
TAO_EC_Default_Factory::init_svcs();
RT_Class rt_class;
@@ -217,7 +217,7 @@ Roundtrip_Peer::run_experiment (CORBA::Long experiment_id,
thread_count += nthreads;
#endif
- ACE_Barrier the_barrier (thread_count);
+ ACE_Barrier barrier (thread_count);
ACE_DEBUG ((LM_DEBUG, "Calibrating high res timer ...."));
ACE_High_Res_Timer::calibrate ();
@@ -241,7 +241,7 @@ Roundtrip_Peer::run_experiment (CORBA::Long experiment_id,
this->poa_.in (),
this->poa_.in (),
this->event_channel_.in (),
- &the_barrier
+ &barrier
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
#endif
@@ -266,7 +266,7 @@ Roundtrip_Peer::run_experiment (CORBA::Long experiment_id,
ACE_ES_EVENT_UNDEFINED,
experiment_id,
high_priority_group.supplier (),
- &the_barrier);
+ &barrier);
{
// Artificial scope to wait for the high priority task...
Task_Activator<Send_Task> high_priority_act (this->rt_class_->priority_high (),
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/server.cpp b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/server.cpp
index 677cf6870f5..c188ce43e8b 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/server.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Federated_Roundtrip/server.cpp
@@ -28,7 +28,7 @@ int use_rt_corba = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:i:p:n:rd");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:i:p:n:rd");
int c;
while ((c = get_opts ()) != -1)
@@ -76,7 +76,7 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
RT_Class rt_class;
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am
index dd3d473f870..bff7d6c6d77 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/Makefile.am
@@ -22,7 +22,6 @@ noinst_PROGRAMS =
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -55,11 +54,7 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -67,7 +62,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -107,7 +101,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -115,7 +108,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -157,7 +149,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc
index 188d5276fd9..f4bc27d0c4c 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/RTCORBA_Baseline.mpc
@@ -12,12 +12,7 @@ project(*IDL): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
server.cpp
@@ -34,12 +29,7 @@ project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*client): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
TestC.cpp
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp
index a3caafe3b54..bb887ff5393 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp
@@ -28,9 +28,9 @@ class Roundtrip_Task : public ACE_Task_Base
{
public:
Roundtrip_Task (Test::Roundtrip_ptr roundtrip,
- ACE_Barrier *the_barrier)
+ ACE_Barrier *barrier)
: roundtrip_ (Test::Roundtrip::_duplicate (roundtrip))
- , barrier_ (the_barrier)
+ , barrier_ (barrier)
{
}
@@ -64,11 +64,11 @@ class High_Priority_Task : public Roundtrip_Task
{
public:
High_Priority_Task (Test::Roundtrip_ptr roundtrip,
- ACE_Barrier *the_barrier,
+ ACE_Barrier *barrier,
int iterations,
int period_in_usecs,
int workload)
- : Roundtrip_Task (roundtrip, the_barrier)
+ : Roundtrip_Task (roundtrip, barrier)
, sample_history (iterations)
, iterations_ (iterations)
, period_in_usecs_ (period_in_usecs)
@@ -112,10 +112,10 @@ class Low_Priority_Task : public Roundtrip_Task
{
public:
Low_Priority_Task (Test::Roundtrip_ptr roundtrip,
- ACE_Barrier *the_barrier,
+ ACE_Barrier *barrier,
int period_in_usecs,
int workload)
- : Roundtrip_Task (roundtrip, the_barrier)
+ : Roundtrip_Task (roundtrip, barrier)
, stopped_ (0)
, period_in_usecs_ (period_in_usecs)
, workload_ (workload)
@@ -163,7 +163,7 @@ private:
int workload_;
};
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
RT_Class rt_class;
@@ -216,7 +216,7 @@ int main (int argc, char *argv[])
ACE_TRY_CHECK;
int thread_count = 1 + options.nthreads;
- ACE_Barrier the_barrier (thread_count);
+ ACE_Barrier barrier (thread_count);
ACE_DEBUG ((LM_DEBUG, "Calibrating high res timer ...."));
ACE_High_Res_Timer::calibrate ();
@@ -227,7 +227,7 @@ int main (int argc, char *argv[])
int per_thread_period = options.low_priority_period;
if (options.global_low_priority_rate)
per_thread_period = options.low_priority_period * options.nthreads;
- Low_Priority_Task low_priority (roundtrip.in (), &the_barrier,
+ Low_Priority_Task low_priority (roundtrip.in (), &barrier,
per_thread_period,
options.low_priority_workload);
low_priority.activate (rt_class.thr_sched_class ()
@@ -235,7 +235,7 @@ int main (int argc, char *argv[])
options.nthreads, 1,
rt_class.priority_low ());
- High_Priority_Task high_priority (roundtrip.in (), &the_barrier,
+ High_Priority_Task high_priority (roundtrip.in (), &barrier,
options.iterations,
options.high_priority_period,
options.high_priority_workload);
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/server.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/server.cpp
index f82199ba24e..de661a6263b 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/server.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/server.cpp
@@ -25,7 +25,7 @@ int nthreads = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:r");
int c;
while ((c = get_opts ()) != -1)
@@ -58,7 +58,7 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
/// Move the test to the real-time class if it is possible.
RT_Class rt_class;
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am
index a16ce1e4399..6042f1d8488 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Makefile.am
@@ -22,7 +22,6 @@ noinst_PROGRAMS =
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -55,11 +54,7 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -67,7 +62,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -109,7 +103,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -117,7 +110,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -161,7 +153,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc
index bfd1de34f68..23e8fc37941 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/RTCORBA_Callback.mpc
@@ -11,12 +11,7 @@ project(*IDL): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
server.cpp
@@ -34,12 +29,7 @@ project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*client): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
client.cpp
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp
index 420b6d15b95..5bbaf5407dd 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp
@@ -34,9 +34,9 @@ class Roundtrip_Task : public ACE_Task_Base
{
public:
Roundtrip_Task (Test::Session_Factory_ptr session_factory,
- ACE_Barrier *the_barrier)
+ ACE_Barrier *barrier)
: session_factory_ (Test::Session_Factory::_duplicate (session_factory))
- , the_barrier_ (the_barrier)
+ , barrier_ (barrier)
{
}
@@ -44,7 +44,7 @@ public:
virtual int svc (void)
{
- this->the_barrier_->wait ();
+ this->barrier_->wait ();
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -63,18 +63,18 @@ public:
protected:
Test::Session_Factory_var session_factory_;
- ACE_Barrier *the_barrier_;
+ ACE_Barrier *barrier_;
};
class High_Priority_Task : public Roundtrip_Task
{
public:
High_Priority_Task (Test::Session_Factory_ptr session_factory,
- ACE_Barrier *the_barrier,
+ ACE_Barrier *barrier,
PortableServer::POA_ptr poa,
int iterations,
int period_in_usecs)
- : Roundtrip_Task (session_factory, the_barrier)
+ : Roundtrip_Task (session_factory, barrier)
, callback (new Callback (iterations, poa))
, iterations_ (iterations)
, period_in_usecs_ (period_in_usecs)
@@ -130,10 +130,10 @@ class Low_Priority_Task : public Roundtrip_Task
{
public:
Low_Priority_Task (Test::Session_Factory_ptr session_factory,
- ACE_Barrier *the_barrier,
+ ACE_Barrier *barrier,
PortableServer::POA_ptr poa,
int period_in_usecs)
- : Roundtrip_Task (session_factory, the_barrier)
+ : Roundtrip_Task (session_factory, barrier)
, callback (new Callback (1, poa))
, stopped_ (0)
, period_in_usecs_ (period_in_usecs)
@@ -193,7 +193,7 @@ private:
int period_in_usecs_;
};
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
/// Move the test to the real-time class if it is possible.
RT_Class rt_class;
@@ -268,7 +268,7 @@ int main (int argc, char *argv[])
ACE_TRY_CHECK;
int thread_count = 1 + options.nthreads;
- ACE_Barrier the_barrier (thread_count);
+ ACE_Barrier barrier (thread_count);
ACE_DEBUG ((LM_DEBUG, "Calibrating high res timer ...."));
ACE_High_Res_Timer::calibrate ();
@@ -280,7 +280,7 @@ int main (int argc, char *argv[])
if (options.global_low_priority_rate)
per_thread_period = options.low_priority_period * options.nthreads;
Low_Priority_Task low_priority (session_factory.in (),
- &the_barrier,
+ &barrier,
the_poa.in (),
per_thread_period);
low_priority.activate (rt_class.thr_sched_class ()
@@ -289,7 +289,7 @@ int main (int argc, char *argv[])
rt_class.priority_low ());
High_Priority_Task high_priority (session_factory.in (),
- &the_barrier,
+ &barrier,
the_poa.in (),
options.iterations,
options.high_priority_period);
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/server.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/server.cpp
index 59d0eb001d2..71effbf4fea 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/server.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/server.cpp
@@ -28,7 +28,7 @@ int nthreads = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:r");
int c;
while ((c = get_opts ()) != -1)
@@ -61,7 +61,7 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
/// Move the test to the real-time class if it is possible.
RT_Class rt_class;
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am
index fa33f9244d3..f6e7e5aae07 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Makefile.am
@@ -19,7 +19,6 @@ noinst_PROGRAMS =
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -57,7 +56,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -65,7 +63,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -103,7 +100,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Roundtrip.mpc b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Roundtrip.mpc
index 1921fed616b..5dbfbef5e54 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Roundtrip.mpc
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/Roundtrip.mpc
@@ -2,12 +2,7 @@
project(*RTEvent_Server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
server.cpp
@@ -17,12 +12,7 @@ project(*RTEvent_Server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*RTEvent_Client): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
client.cpp
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/client.cpp
index 5e723b3cca5..95d19c31d18 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/client.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/client.cpp
@@ -29,7 +29,7 @@
ACE_RCSID(TAO_RTEC_PERF_Roundtrip, client, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
const CORBA::Long experiment_id = 1;
@@ -113,7 +113,7 @@ int main (int argc, char *argv[])
int thread_count = 1 + options.nthreads;
- ACE_Barrier the_barrier (thread_count);
+ ACE_Barrier barrier (thread_count);
ACE_DEBUG ((LM_DEBUG, "Calibrating high res timer ...."));
ACE_High_Res_Timer::calibrate ();
@@ -169,7 +169,7 @@ int main (int argc, char *argv[])
the_poa.in (),
the_poa.in (),
ec.in (),
- &the_barrier
+ &barrier
ACE_ENV_ARG_PARAMETER);
if (options.high_priority_is_last)
@@ -186,7 +186,7 @@ int main (int argc, char *argv[])
ACE_ES_EVENT_UNDEFINED,
experiment_id,
high_priority_group.supplier (),
- &the_barrier);
+ &barrier);
high_priority_task.thr_mgr (&my_thread_manager);
{
// Artificial scope to wait for the high priority task...
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/server.cpp b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/server.cpp
index 8c7d83af31a..75f79000853 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/server.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/Roundtrip/server.cpp
@@ -30,7 +30,7 @@ int nthreads = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:r");
int c;
while ((c = get_opts ()) != -1)
@@ -63,7 +63,7 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
TAO_EC_Default_Factory::init_svcs ();
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am
index 688ea41410e..15506aebe5e 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/Makefile.am
@@ -19,7 +19,6 @@ noinst_PROGRAMS =
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -57,7 +56,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
@@ -65,7 +63,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -103,7 +100,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/TCP_Baseline.mpc b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/TCP_Baseline.mpc
index bded52788ee..0e3056c157b 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/TCP_Baseline.mpc
+++ b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/TCP_Baseline.mpc
@@ -2,12 +2,7 @@
project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
server.cpp
@@ -17,12 +12,7 @@ project(*server): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
project(*client): orbsvcsexe, rtcorbaevent, strategies, minimum_corba {
after += RTEC_Perf
libs += TAO_RTEC_Perf
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
Source_Files {
client.cpp
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/client.cpp
index 8c36cbd0349..0969a1e427f 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/client.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/client.cpp
@@ -28,7 +28,7 @@ class Scavenger_Task : public ACE_Task_Base
{
public:
Scavenger_Task (char const * endpoint,
- ACE_Barrier * the_barrier,
+ ACE_Barrier * barrier,
int period_in_usecs);
void stop(void);
@@ -37,7 +37,7 @@ public:
private:
char const * endpoint_;
- ACE_Barrier * the_barrier_;
+ ACE_Barrier * barrier_;
int period_in_usecs_;
ACE_SYNCH_MUTEX mutex_;
int stopped_;
@@ -47,7 +47,7 @@ class Measuring_Task : public ACE_Task_Base
{
public:
Measuring_Task (char const * endpoint,
- ACE_Barrier *the_barrier,
+ ACE_Barrier *barrier,
int iterations,
int period_in_usecs);
@@ -57,12 +57,12 @@ public:
private:
char const * endpoint_;
- ACE_Barrier * the_barrier_;
+ ACE_Barrier * barrier_;
int iterations_;
int period_in_usecs_;
};
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
RT_Class rt_class;
@@ -78,19 +78,19 @@ int main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Done (%d)\n", gsf));
int thread_count = 1 + options.nthreads;
- ACE_Barrier the_barrier (thread_count);
+ ACE_Barrier barrier (thread_count);
int per_thread_period = options.low_priority_period;
if (options.global_low_priority_rate)
per_thread_period = options.low_priority_period * options.nthreads;
- Scavenger_Task lo_task (lo_endpoint, &the_barrier,
+ Scavenger_Task lo_task (lo_endpoint, &barrier,
per_thread_period);
lo_task.activate (rt_class.thr_sched_class () | THR_NEW_LWP | THR_JOINABLE,
options.nthreads, 1,
rt_class.priority_low ());
- Measuring_Task hi_task (hi_endpoint, &the_barrier,
+ Measuring_Task hi_task (hi_endpoint, &barrier,
options.iterations,
options.high_priority_period);
hi_task.activate (rt_class.thr_sched_class () | THR_NEW_LWP | THR_JOINABLE,
@@ -122,10 +122,10 @@ int main (int argc, char *argv[])
// ****************************************************************
Scavenger_Task::Scavenger_Task(char const * endpoint,
- ACE_Barrier * the_barrier,
+ ACE_Barrier * barrier,
int period_in_usecs)
: endpoint_ (endpoint)
- , the_barrier_ (the_barrier)
+ , barrier_ (barrier)
, period_in_usecs_ (period_in_usecs)
, mutex_ ()
, stopped_ (0)
@@ -142,7 +142,7 @@ Scavenger_Task::stop(void)
int
Scavenger_Task::svc(void)
{
- this->the_barrier_->wait ();
+ this->barrier_->wait ();
ACE_DEBUG ((LM_DEBUG, "(%P|%t) Starting scavenger thread\n"));
ACE_SOCK_Stream stream;
@@ -194,12 +194,12 @@ Scavenger_Task::svc(void)
// ****************************************************************
Measuring_Task::Measuring_Task (char const * endpoint,
- ACE_Barrier * the_barrier,
+ ACE_Barrier * barrier,
int iterations,
int period_in_usecs)
: sample_history (iterations)
, endpoint_(endpoint)
- , the_barrier_(the_barrier)
+ , barrier_(barrier)
, iterations_ (iterations)
, period_in_usecs_ (period_in_usecs)
{
@@ -208,7 +208,7 @@ Measuring_Task::Measuring_Task (char const * endpoint,
int
Measuring_Task::svc ()
{
- this->the_barrier_->wait ();
+ this->barrier_->wait ();
ACE_SOCK_Stream stream;
{
@@ -280,7 +280,7 @@ Measuring_Task::svc ()
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "H:L:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "H:L:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/server.cpp b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/server.cpp
index dcbfac08567..2670a938df5 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/server.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/TCP_Baseline/server.cpp
@@ -36,7 +36,7 @@ private:
ACE_Reactor reactor_;
};
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
/// Move the test to the real-time class if it is possible.
RT_Class rt_class;
@@ -165,7 +165,7 @@ Task::svc()
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "h:l:n:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "h:l:n:r");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.cpp b/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.cpp
index a48dbed7cda..474470fe48d 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.cpp
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.cpp
@@ -32,7 +32,7 @@ Client_Options::Client_Options (int &argc, char *argv[])
, funky_supplier_publication (0)
, high_priority_is_last (0)
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
@@ -72,7 +72,7 @@ Client_Options::Client_Options (int &argc, char *argv[])
}
int
-Client_Options::option (ACE_Arg_Shifter &arg_shifter,
+Client_Options::option (ACE_TArg_Shifter<char> &arg_shifter,
const char *option_name,
int &option_value)
{
@@ -93,7 +93,7 @@ Client_Options::option (ACE_Arg_Shifter &arg_shifter,
}
int
-Client_Options::boolean_option (ACE_Arg_Shifter &arg_shifter,
+Client_Options::boolean_option (ACE_TArg_Shifter<char> &arg_shifter,
const char *option_name,
int &option_value)
{
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.h
index cbffa42aeb7..786dc52bfcd 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.h
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/Client_Options.h
@@ -12,15 +12,12 @@
#include /**/ "ace/pre.h"
#include "rtec_perf_export.h"
+#include "ace/Arg_Shifter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
/// Parse the command-line client_options for the tests.
/**
* Note that some of the tests ignore some of the client_options, but it is
@@ -49,11 +46,11 @@ public:
int high_priority_is_last;
private:
- int option (ACE_Arg_Shifter &arg_shifter,
+ int option (ACE_TArg_Shifter<char> &arg_shifter,
const char *option_name,
int &option_value);
- int boolean_option (ACE_Arg_Shifter &arg_shifter,
+ int boolean_option (ACE_TArg_Shifter<char> &arg_shifter,
const char *option_name,
int &option_value);
};
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/Low_Priority_Setup.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/Low_Priority_Setup.h
index e6f5315abd0..e5aacff5db8 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/lib/Low_Priority_Setup.h
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/Low_Priority_Setup.h
@@ -19,10 +19,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
class RT_Class;
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Basic_Stats;
-ACE_END_VERSIONED_NAMESPACE_DECL
/**
* @class Low_Priority_Setup
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/Makefile.am b/TAO/orbsvcs/performance-tests/RTEvent/lib/Makefile.am
index 156a1e361ee..5cd875fdb43 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/lib/Makefile.am
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/Makefile.am
@@ -21,7 +21,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -167,7 +166,6 @@ noinst_HEADERS = \
rtec_perf_export.h
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.h
index 64645bcbf18..f3bebdd0188 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.h
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.h
@@ -18,10 +18,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_EC_Event_Channel;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
class RTCORBA_Setup;
/**
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/Send_Task.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/Send_Task.h
index 318bb24e2aa..4e7284bea6c 100644
--- a/TAO/orbsvcs/performance-tests/RTEvent/lib/Send_Task.h
+++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/Send_Task.h
@@ -18,9 +18,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-ACE_END_VERSIONED_NAMESPACE_DECL
/**
* @class Send_Task
diff --git a/TAO/orbsvcs/performance-tests/perf.mwc b/TAO/orbsvcs/performance-tests/perf.mwc
index dd297256b34..b11bf5da603 100644
--- a/TAO/orbsvcs/performance-tests/perf.mwc
+++ b/TAO/orbsvcs/performance-tests/perf.mwc
@@ -2,4 +2,6 @@
// $Id$
workspace {
+ cmdline += -base no_wchar
}
+
diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp
index a651f3c4ca4..b3cc2fa54f3 100644
--- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp
@@ -13,7 +13,7 @@ Connection_Manager::~Connection_Manager (void)
void
Connection_Manager::load_ep_addr (const char* file_name)
{
- FILE* addr_file = ACE_OS::fopen (file_name, "r");
+ FILE* addr_file = ACE_OS::fopen (file_name, ACE_TEXT("r"));
if (addr_file == 0)
{
diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am
index 77868acd10d..e82e1a6dfb1 100644
--- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Asynch_Three_Stage_Dist.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += distributer
+noinst_PROGRAMS = distributer
distributer_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -37,21 +33,15 @@ distributer_SOURCES = \
distributer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Asynch_Three_Stage_Recv.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += receiver
receiver_CPPFLAGS = \
@@ -70,21 +60,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Asynch_Three_Stage_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -103,17 +87,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/distributer.cpp b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/distributer.cpp
index 34239319d22..de5a4a6b40f 100644
--- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/distributer.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/distributer.cpp
@@ -2,6 +2,7 @@
#include "distributer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/AV/Protocol_Factory.h"
typedef ACE_Unmanaged_Singleton<Distributer, ACE_Null_Mutex> DISTRIBUTER;
@@ -112,11 +113,10 @@ Distributer::connection_manager (void)
}
int
-Distributer::parse_args (int argc,
- char **argv)
+Distributer::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "s:r:a:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "s:r:a:");
int c;
while ((c= opts ()) != -1)
@@ -233,16 +233,17 @@ Distributer::done (int done)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -273,8 +274,7 @@ main (int argc,
// Initialize the Distributer
int result =
- DISTRIBUTER::instance ()->init (argc,
- argv
+ DISTRIBUTER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/receiver.cpp
index 437bf6d21b7..f78dd9cb96d 100644
--- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
// File handle of the file into which received data is written.
static FILE *output_file = 0;
@@ -142,11 +143,10 @@ Receiver::init (int,
}
int
-Receiver::parse_args (int argc,
- char **argv)
+Receiver::parse_args (int argc, char **argv)
{
// Parse the command line arguments
- ACE_Get_Opt opts (argc,
+ ACE_Get_Arg_Opt<char> opts (argc,
argv,
"f:s:r:a:");
@@ -184,16 +184,17 @@ Receiver::output_file_name (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -224,15 +225,14 @@ main (int argc,
Receiver receiver;
int result =
- receiver.parse_args (argc,
- argv);
+ receiver.parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file =
ACE_OS::fopen (receiver.output_file_name ().c_str (),
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -244,8 +244,7 @@ main (int argc,
"File Opened Successfully\n"));
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/sender.cpp
index e97f210997e..0da39936aff 100644
--- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
// Create a singleton instance of the Sender.
@@ -53,11 +54,10 @@ Sender::Sender (void)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "s:f:r:da:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "s:f:r:da:");
int c;
while ((c= opts ()) != -1)
@@ -119,7 +119,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -290,14 +290,15 @@ Sender::connection_manager (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -328,8 +329,7 @@ main (int argc,
// Initialize the Client.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am
index 06f802c8525..dc231d1e091 100644
--- a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Bidirectional_Flows_Recv.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += receiver
+noinst_PROGRAMS = receiver
receiver_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Bidirectional_Flows_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -66,17 +56,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/receiver.cpp
index 3683e3e7ba2..1c27e3cf8a5 100644
--- a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
static FILE *output_file = 0;
@@ -159,11 +160,10 @@ Receiver::protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Receiver::parse_args (int argc,
- char **argv)
+Receiver::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:r:d");
int c;
while ((c= opts ()) != -1)
@@ -209,7 +209,7 @@ Receiver::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -268,16 +268,17 @@ Receiver::input_file (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -306,7 +307,7 @@ main (int argc,
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -318,8 +319,7 @@ main (int argc,
"Output File Opened Successfully\n"));
int result =
- RECEIVER::instance ()->init (argc,
- argv
+ RECEIVER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
index 2e806a208a2..7a471f63f27 100644
--- a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
typedef ACE_Unmanaged_Singleton<Sender, ACE_Null_Mutex> SENDER;
@@ -127,11 +128,10 @@ Sender::shutdown (void)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:d");
int c;
while ((c= opts ()) != -1)
@@ -214,7 +214,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -426,15 +426,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -469,8 +470,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -481,7 +481,7 @@ main (int argc,
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
diff --git a/TAO/orbsvcs/tests/AVStreams/Component_Switching/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Component_Switching/Makefile.am
index 72832a578ea..6fd64befbb9 100644
--- a/TAO/orbsvcs/tests/AVStreams/Component_Switching/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Component_Switching/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Component_Switching_Dist.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += distributer
+noinst_PROGRAMS = distributer
distributer_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -38,21 +34,15 @@ distributer_SOURCES = \
distributer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Component_Switching_Recv.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += receiver
receiver_CPPFLAGS = \
@@ -72,21 +62,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Component_Switching_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -106,17 +90,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Component_Switching/distributer.cpp b/TAO/orbsvcs/tests/AVStreams/Component_Switching/distributer.cpp
index ba747961853..76531078f4e 100644
--- a/TAO/orbsvcs/tests/AVStreams/Component_Switching/distributer.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Component_Switching/distributer.cpp
@@ -3,6 +3,7 @@
#include "distributer.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/AV/Protocol_Factory.h"
#include "orbsvcs/AV/FlowSpec_Entry.h"
@@ -267,11 +268,10 @@ Distributer::connection_manager (void)
}
int
-Distributer::parse_args (int argc,
- char **argv)
+Distributer::parse_args (int argc, char **argv)
{
/// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "s:r:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "s:r:");
int c;
while ((c= opts ()) != -1)
@@ -426,16 +426,17 @@ Distributer::done (int done)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
/// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -466,8 +467,7 @@ main (int argc,
/// Initialize the Distributer
int result =
- DISTRIBUTER::instance ()->init (argc,
- argv
+ DISTRIBUTER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Component_Switching/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Component_Switching/receiver.cpp
index 36aec050841..d139e6f50f1 100644
--- a/TAO/orbsvcs/tests/AVStreams/Component_Switching/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Component_Switching/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "tao/Strategies/advanced_resource.h"
@@ -222,11 +223,10 @@ Receiver::init (int,
}
int
-Receiver::parse_args (int argc,
- char **argv)
+Receiver::parse_args (int argc, char **argv)
{
/// Parse the command line arguments
- ACE_Get_Opt opts (argc,
+ ACE_Get_Arg_Opt<char> opts (argc,
argv,
"f:s:r:");
@@ -285,16 +285,17 @@ Receiver::shut_down (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
/// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -325,15 +326,14 @@ main (int argc,
Receiver receiver;
int result =
- receiver.parse_args (argc,
- argv);
+ receiver.parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
/// Make sure we have a valid <output_file>
output_file =
ACE_OS::fopen (receiver.output_file_name ().c_str (),
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -345,8 +345,7 @@ main (int argc,
"File Opened Successfully\n"));
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Component_Switching/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Component_Switching/sender.cpp
index 53d0cbb4247..7170838c7c6 100644
--- a/TAO/orbsvcs/tests/AVStreams/Component_Switching/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Component_Switching/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Event_Handler.h"
@@ -173,11 +174,10 @@ Sender::shut_down (ACE_ENV_SINGLE_ARG_DECL)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
/// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "s:f:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "s:f:r:d");
int c;
while ((c= opts ()) != -1)
@@ -245,7 +245,7 @@ Sender::init (int argc,
/// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -452,14 +452,15 @@ Sender::connection_manager (void)
// }
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -490,8 +491,7 @@ main (int argc,
/// Initialize the Client.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Full_Profile/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Full_Profile/Makefile.am
index 3a39ca6e868..b3189a2db61 100644
--- a/TAO/orbsvcs/tests/AVStreams/Full_Profile/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Full_Profile/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Full_Profile_Ftp.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += ftp
+noinst_PROGRAMS = ftp
ftp_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ ftp_SOURCES = \
ftp_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Full_Profile_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -66,17 +56,13 @@ server_SOURCES = \
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp b/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp
index 16d694eb261..012d651f7ea 100644
--- a/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp
@@ -102,10 +102,9 @@ FTP_Client_Producer::get_callback (const char *,
}
int
-Client::parse_args (int argc,
- char **argv)
+Client::parse_args (int argc, char **argv)
{
- ACE_Get_Opt opts (argc,argv,"f:l:a:p:s");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:l:a:p:s");
this->use_sfp_ = 0;
int c;
@@ -246,7 +245,7 @@ Client::init (int argc,char **argv)
ACE_DEBUG ((LM_DEBUG, "(%N,%l) Added flowendpoint named: %s\n", s1.in() ));
- this->fp_ = ACE_OS::fopen (this->filename_,"r");
+ this->fp_ = ACE_OS::fopen (this->filename_,ACE_TEXT("r"));
if (this->fp_ != 0)
{
@@ -343,14 +342,15 @@ Client::run (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var obj
= orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -365,7 +365,7 @@ main (int argc,
int result = 0;
- result = CLIENT::instance ()->init (argc,argv);
+ result = CLIENT::instance ()->init (convert.get_argc(), convert.get_ASCII_argv());
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"client::init failed\n"),1);
result = CLIENT::instance ()->run ();
diff --git a/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.h b/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.h
index bb0cfdd19c0..cffb6fbd151 100644
--- a/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.h
+++ b/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.h
@@ -5,6 +5,7 @@
#define TAO_AV_FTP_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "orbsvcs/AV/Flows_T.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.cpp b/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.cpp
index 7a7a0686962..98f9d5798b0 100644
--- a/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "server.h"
+#include "ace/Argv_Type_Converter.h"
FTP_Server_FlowEndPoint::FTP_Server_FlowEndPoint (void)
:TAO_FlowConsumer ("Data",FTP_SERVER::instance ()->protocols (), FTP_SERVER::instance ()->format ())
@@ -101,7 +102,7 @@ Server::format (void)
int
Server::init (int argc,
- char **argv)
+ char **argv)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -183,7 +184,7 @@ Server::run (void)
int
Server::parse_args (int argc,char **argv)
{
- ACE_Get_Opt opts (argc,argv,"f:p:");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:p:");
int c;
while ((c = opts ()) != -1)
@@ -191,7 +192,7 @@ Server::parse_args (int argc,char **argv)
switch (c)
{
case 'f':
- this->fp_ = ACE_OS::fopen (opts.opt_arg (),"w");
+ this->fp_ = ACE_OS::fopen (opts.opt_arg (),ACE_TEXT("w"));
if (this->fp_ != 0)
{
ACE_DEBUG ((LM_DEBUG,"file opened successfully\n"));
@@ -220,16 +221,17 @@ Server::file (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var obj
= orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -250,7 +252,7 @@ main (int argc,
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
- result = FTP_SERVER::instance ()->init (argc,argv);
+ result = FTP_SERVER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv());
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"SERVER::init failed\n"),1);
diff --git a/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.h b/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.h
index f88e8ee7c20..5f9483fb1e0 100644
--- a/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.h
+++ b/TAO/orbsvcs/tests/AVStreams/Full_Profile/server.h
@@ -2,6 +2,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Naming/Naming_Client.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "orbsvcs/AV/Flows_T.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Latency/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Latency/Makefile.am
index 8b4be4074d8..aaafa1ae1f0 100644
--- a/TAO/orbsvcs/tests/AVStreams/Latency/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Latency/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Latency_Cntl.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += control
+noinst_PROGRAMS = control
control_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -37,21 +33,15 @@ control_SOURCES = \
control_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Latency_Ping.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += ping
ping_CPPFLAGS = \
@@ -69,21 +59,15 @@ ping_SOURCES = \
ping_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Latency_Pong.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += pong
pong_CPPFLAGS = \
@@ -101,17 +85,13 @@ pong_SOURCES = \
pong_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Latency/control.cpp b/TAO/orbsvcs/tests/AVStreams/Latency/control.cpp
index 07ce3c8e804..dbb3112476b 100644
--- a/TAO/orbsvcs/tests/AVStreams/Latency/control.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Latency/control.cpp
@@ -6,7 +6,9 @@
#include "tao/Strategies/advanced_resource.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/INET_Addr.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Latency,
ping,
@@ -23,7 +25,7 @@ int milliseconds = 30000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "f:g:s:r:t:p:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:g:s:r:t:p:d");
int c;
while ((c = get_opts ()) != -1)
@@ -77,14 +79,15 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
- parse_args (argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var obj
= orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp b/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp
index 886394ae9f9..0b4fbcddc1c 100644
--- a/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Latency/ping.cpp
@@ -5,6 +5,7 @@
#include "tao/ORB.h"
#include "tao/Strategies/advanced_resource.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
@@ -28,7 +29,7 @@ ACE_Throughput_Stats recv_latency;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xo:s:r:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xo:s:r:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -93,15 +94,16 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var obj
= orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
@@ -144,7 +146,7 @@ int main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/AVStreams/Latency/pong.cpp b/TAO/orbsvcs/tests/AVStreams/Latency/pong.cpp
index 42979b096e9..20abc49fe83 100644
--- a/TAO/orbsvcs/tests/AVStreams/Latency/pong.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Latency/pong.cpp
@@ -7,6 +7,7 @@
#include "tao/ORB.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
@@ -32,7 +33,7 @@ ACE_Throughput_Stats send_latency;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xo:s:r:t:b:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xo:s:r:t:b:d");
int c;
while ((c = get_opts ()) != -1)
@@ -109,16 +110,17 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var obj
= orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
@@ -160,7 +162,7 @@ int main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am
index 0b3ec579acb..5c76b7a2a63 100644
--- a/TAO/orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Modify_QoS/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Modify_QoS_Recv.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += receiver
+noinst_PROGRAMS = receiver
receiver_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Modify_QoS_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -66,17 +56,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Modify_QoS/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Modify_QoS/receiver.cpp
index f9dc8ccefca..d0fd2ce12e1 100644
--- a/TAO/orbsvcs/tests/AVStreams/Modify_QoS/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Modify_QoS/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
static FILE *output_file = 0;
// File handle of the file into which received data is written.
@@ -218,12 +219,10 @@ Receiver::init (int,
int
parse_args (int argc,
- char **argv)
+ char **argv)
{
// Parse the command line arguments
- ACE_Get_Opt opts (argc,
- argv,
- "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c = opts ()) != -1)
@@ -244,16 +243,17 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -283,15 +283,14 @@ main (int argc,
ACE_TRY_CHECK;
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -304,8 +303,7 @@ main (int argc,
Receiver receiver;
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Modify_QoS/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Modify_QoS/sender.cpp
index 5788046dcb9..c1704ef8157 100644
--- a/TAO/orbsvcs/tests/AVStreams/Modify_QoS/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Modify_QoS/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
// Create a singleton instance of the Sender.
@@ -90,11 +91,10 @@ Sender::protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:d");
int c;
while ((c= opts ()) != -1)
@@ -177,7 +177,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -371,15 +371,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -410,8 +411,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Multicast/Makefile.am
index 0a42dd94e5c..530a667e965 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Multicast_Ftp.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += ftp
+noinst_PROGRAMS = ftp
ftp_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -36,21 +32,15 @@ ftp_SOURCES = \
ftp_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Multicast_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -68,17 +58,13 @@ server_SOURCES = \
server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.cpp b/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.cpp
index 31762066fe3..69b09769a0a 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.cpp
@@ -124,10 +124,9 @@ Endpoint_Reactive_Strategy::make_stream_endpoint (FTP_Client_StreamEndPoint *&en
}
int
-Client::parse_args (int argc,
- char **argv)
+Client::parse_args (int argc, char **argv)
{
- ACE_Get_Opt opts (argc,argv,"f:a:p:s");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:a:p:s");
this->use_sfp_ = 0;
int c;
@@ -240,7 +239,7 @@ Client::init (int argc,char **argv)
"the TAO_Naming_Client. \n"),
-1);
- this->fp_ = ACE_OS::fopen (this->filename_,"r");
+ this->fp_ = ACE_OS::fopen (this->filename_,ACE_TEXT("r"));
if (this->fp_ != 0)
{
ACE_DEBUG ((LM_DEBUG,"file opened successfully\n"));
@@ -347,14 +346,15 @@ Client::run (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var obj
= orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -368,7 +368,7 @@ main (int argc,
ACE_TRY_CHECK;
int result = 0;
- result = CLIENT::instance ()->init (argc,argv);
+ result = CLIENT::instance ()->init (convert.get_argc(), convert.get_ASCII_argv());
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"client::init failed\n"),1);
result = CLIENT::instance ()->run ();
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.h b/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.h
index 9cd6cc7e47f..2fae237090a 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.h
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast/ftp.h
@@ -5,6 +5,7 @@
#define TAO_AV_FTP_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/Strategies/advanced_resource.h"
#include "orbsvcs/Naming/Naming_Client.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp b/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp
index 343079ff7dd..0f235cfb35e 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp
@@ -64,7 +64,7 @@ Server::Server (void)
int
Server::init (int argc,
- char **argv)
+ char **argv)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -165,7 +165,7 @@ Server::run (void)
int
Server::parse_args (int argc,char **argv)
{
- ACE_Get_Opt opts (argc,argv,"f:p:");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:p:");
int c;
while ((c = opts ()) != -1)
@@ -173,7 +173,7 @@ Server::parse_args (int argc,char **argv)
switch (c)
{
case 'f':
- this->fp_ = ACE_OS::fopen (opts.opt_arg (),"w");
+ this->fp_ = ACE_OS::fopen (opts.opt_arg (),ACE_TEXT("w"));
if (this->fp_ != 0)
{
ACE_DEBUG ((LM_DEBUG,"file opened successfully\n"));
@@ -196,12 +196,13 @@ Server::file (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
ACE_DECLARE_NEW_CORBA_ENV;
@@ -227,7 +228,7 @@ main (int argc,
ACE_ENDTRY;
ACE_CHECK_RETURN (-1);
- result = FTP_SERVER::instance ()->init (argc,argv);
+ result = FTP_SERVER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv());
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"FTP_SERVER::init failed\n"),1);
result = FTP_SERVER::instance ()->run ();
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast/server.h b/TAO/orbsvcs/tests/AVStreams/Multicast/server.h
index a92714819df..8ba803f3b57 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast/server.h
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast/server.h
@@ -2,6 +2,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Strategies/advanced_resource.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/Naming/Naming_Client.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am
index e1a5c96ecad..2f937ebaf28 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Multicast_Full_Profile_Ftp.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += ftp
+noinst_PROGRAMS = ftp
ftp_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ ftp_SOURCES = \
ftp_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Multicast_Full_Profile_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -66,17 +56,13 @@ server_SOURCES = \
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.cpp b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.cpp
index 11a0624b3f4..42b8f4db5be 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.cpp
@@ -100,10 +100,9 @@ FTP_Client_Producer::get_callback (const char *,
}
int
-Client::parse_args (int argc,
- char **argv)
+Client::parse_args (int argc, char **argv)
{
- ACE_Get_Opt opts (argc,argv,"f:a:p:sd");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:a:p:sd");
this->use_sfp_ = 0;
int c;
@@ -272,7 +271,7 @@ Client::init (int argc,char **argv)
"the TAO_Naming_Client. \n"),
-1);
- this->fp_ = ACE_OS::fopen (this->filename_,"r");
+ this->fp_ = ACE_OS::fopen (this->filename_,ACE_TEXT("r"));
if (this->fp_ != 0)
{
ACE_DEBUG ((LM_DEBUG,"file opened successfully\n"));
@@ -382,12 +381,12 @@ Client::run (void)
}
int
-main (int argc,
- char *argv[])
+ACE_TMAIN (int argc,
+ ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
ACE_DECLARE_NEW_CORBA_ENV;
@@ -414,7 +413,7 @@ main (int argc,
ACE_CHECK_RETURN (-1);
int result = 0;
- result = CLIENT::instance ()->init (argc,argv);
+ result = CLIENT::instance ()->init (convert.get_argc(), convert.get_ASCII_argv());
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"client::init failed\n"),1);
result = CLIENT::instance ()->run ();
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.h b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.h
index acb8081d72d..53721f1e894 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.h
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/ftp.h
@@ -5,6 +5,7 @@
#define TAO_AV_FTP_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/PortableServer.h"
#include "orbsvcs/Naming/Naming_Client.h"
#include "orbsvcs/AV/AVStreams_i.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp
index a83a5b623da..f554ad095ca 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp
@@ -117,7 +117,7 @@ Server::format (void)
int
Server::init (int argc,
- char **argv)
+ char **argv)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -211,7 +211,7 @@ Server::run (void)
int
Server::parse_args (int argc,char **argv)
{
- ACE_Get_Opt opts (argc,argv,"f:p:");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:p:");
int c;
while ((c = opts ()) != -1)
@@ -219,7 +219,7 @@ Server::parse_args (int argc,char **argv)
switch (c)
{
case 'f':
- this->fp_ = ACE_OS::fopen (opts.opt_arg (),"w");
+ this->fp_ = ACE_OS::fopen (opts.opt_arg (),ACE_TEXT("w"));
if (this->fp_ != 0)
{
ACE_DEBUG ((LM_DEBUG,"file opened successfully\n"));
@@ -243,12 +243,12 @@ Server::file (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -274,7 +274,7 @@ main (int argc,
ACE_CHECK_RETURN (-1);
int result = 0;
- result = FTP_SERVER::instance ()->init (argc,argv);
+ result = FTP_SERVER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv());
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,"FTP_SERVER::init failed\n"),1);
result = FTP_SERVER::instance ()->run ();
diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.h b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.h
index bdd2957c2ec..0f2efc52d0a 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.h
+++ b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.h
@@ -2,6 +2,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Naming/Naming_Client.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "orbsvcs/AV/Endpoint_Strategy.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am
index a7f239d70c3..2a113649e1d 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Multiple_Flows_Recv.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += receiver
+noinst_PROGRAMS = receiver
receiver_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Multiple_Flows_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -66,17 +56,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/receiver.cpp
index ef33207328f..81365243708 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
int endstream = 0;
@@ -57,7 +58,7 @@ Receiver_Callback::flowname (const char* flow_name)
// Make sure we have a valid <output_file>
this->output_file_ = ACE_OS::fopen (this->flowname_.c_str (),
- "w");
+ ACE_TEXT("w"));
if (this->output_file_ == 0)
ACE_ERROR ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -139,11 +140,10 @@ Receiver::protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Receiver::parse_args (int argc,
- char **argv)
+Receiver::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:r:d");
int c;
while ((c= opts ()) != -1)
@@ -229,16 +229,17 @@ Receiver::protocol_object (void)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -268,8 +269,7 @@ main (int argc,
ACE_TRY_CHECK;
int result =
- RECEIVER::instance ()->init (argc,
- argv
+ RECEIVER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/sender.cpp
index 79169527b6d..e987cbab9be 100644
--- a/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Multiple_Flows/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
// Create a singleton instance of the Sender.
@@ -70,11 +71,10 @@ Sender::shutdown (ACE_ENV_SINGLE_ARG_DECL)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:d");
int c;
while ((c= opts ()) != -1)
@@ -157,7 +157,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -367,15 +367,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -406,8 +407,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Pluggable/Makefile.am
index 434d94d23c7..fe79de1bd83 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Pluggable_Ftp.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += ftp
+noinst_PROGRAMS = ftp
ftp_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ ftp_SOURCES = \
ftp_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Pluggable_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -66,17 +56,13 @@ server_SOURCES = \
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.cpp b/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.cpp
index 07a22e5e92e..4639308b102 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.cpp
@@ -3,6 +3,7 @@
#include "ftp.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
ACE_High_Res_Timer last_frame_sent_time;
@@ -58,11 +59,10 @@ Client::set_protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Client::parse_args (int argc,
- char **argv)
+Client::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc,argv,"f:l:a:p:r:sd");
+ ACE_Get_Arg_Opt<char> opts (argc,argv,"f:l:a:p:r:sd");
this->use_sfp_ = 0;
@@ -183,7 +183,7 @@ Client::init (int argc,
// Open file to read.
this->fp_ = ACE_OS::fopen (this->filename_,
- "r");
+ ACE_TEXT("r"));
if (this->fp_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open input file %s\n",
@@ -415,14 +415,15 @@ Client::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -454,8 +455,7 @@ main (int argc,
// INitialize the Client.
int result = 0;
- result = CLIENT::instance ()->init (argc,
- argv
+ result = CLIENT::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.h b/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.h
index 4f405b5a9da..c6bcf24e526 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.h
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable/ftp.h
@@ -22,6 +22,7 @@
#define TAO_AV_FTP_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Naming/Naming_Client.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "orbsvcs/AV/Endpoint_Strategy.h"
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable/server.cpp b/TAO/orbsvcs/tests/AVStreams/Pluggable/server.cpp
index db4658830c7..489181ade03 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable/server.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable/server.cpp
@@ -4,6 +4,7 @@
#include "server.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
static FILE *output_file = 0;
// File into which the received data is written.
@@ -115,11 +116,9 @@ Server::init (int,
int
parse_args (int argc,
- char **argv)
+ char **argv)
{
- ACE_Get_Opt opts (argc,
- argv,
- "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c = opts ()) != -1)
@@ -140,29 +139,29 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -198,8 +197,7 @@ main (int argc,
Server server;
result =
- server.init (argc,
- argv
+ server.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am
index 0cfbabf575c..177bb2529c8 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Pluggable_Flow_Protocol_Recv.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += receiver
+noinst_PROGRAMS = receiver
receiver_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Pluggable_Flow_Protocol_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -66,21 +56,15 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Pluggable_Flow_Protocol_Ts.am
-if !BUILD_ACE_FOR_TAO
-
noinst_LTLIBRARIES = libTAO_TS.la
libTAO_TS_la_CPPFLAGS = \
@@ -98,8 +82,6 @@ libTAO_TS_la_SOURCES = \
noinst_HEADERS = \
TimeStamp.h
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp
index d24c92414ff..0cf85d02a7f 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_String.h"
#include "ace/High_Res_Timer.h"
@@ -139,12 +140,10 @@ Receiver::init (int,
int
parse_args (int argc,
- char **argv)
+ char **argv)
{
// Parse the command line arguments
- ACE_Get_Opt opts (argc,
- argv,
- "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c = opts ()) != -1)
@@ -165,9 +164,11 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -175,8 +176,7 @@ main (int argc,
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -206,15 +206,14 @@ main (int argc,
ACE_TRY_CHECK;
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -227,8 +226,7 @@ main (int argc,
Receiver receiver;
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/sender.cpp
index 9af1f2ba80b..d67fc2ad4cc 100644
--- a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
// Create a singleton instance of the Sender.
@@ -54,11 +55,10 @@ Sender::protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:d");
int c;
while ((c= opts ()) != -1)
@@ -141,7 +141,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -343,9 +343,11 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -353,8 +355,7 @@ main (int argc,
ACE_High_Res_Timer::global_scale_factor ();
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
@@ -384,8 +385,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am
index 910cf77f599..81b5d08cd5c 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Simple_Three_Stage_Dist.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += distributer
+noinst_PROGRAMS = distributer
distributer_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ distributer_SOURCES = \
distributer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Simple_Three_Stage_Recv.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += receiver
receiver_CPPFLAGS = \
@@ -66,21 +56,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Simple_Three_Stage_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -97,17 +81,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp
index dd2c65abfdd..6b9590bd82d 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/distributer.cpp
@@ -2,6 +2,7 @@
#include "distributer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/AV/Protocol_Factory.h"
// An Unmanaged_Singleton is used to avoid static object destruction
@@ -302,16 +303,17 @@ Distributer::done (int done)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -342,8 +344,7 @@ main (int argc,
// Initialize the Distributer
int result =
- DISTRIBUTER::instance ()->init (argc,
- argv
+ DISTRIBUTER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/receiver.cpp
index 7a64da3488c..3f9c8325208 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
static FILE *output_file = 0;
// File handle of the file into which received data is written.
@@ -140,12 +141,10 @@ Receiver::init (int,
int
parse_args (int argc,
- char **argv)
+ char **argv)
{
// Parse the command line arguments
- ACE_Get_Opt opts (argc,
- argv,
- "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c = opts ()) != -1)
@@ -166,16 +165,17 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -205,15 +205,14 @@ main (int argc,
ACE_TRY_CHECK;
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -226,8 +225,7 @@ main (int argc,
Receiver receiver;
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp
index 9e766993cf7..69dd9016e78 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
// Create a singleton instance of the Sender.
@@ -85,11 +86,10 @@ Sender::streamctrl (AVStreams::StreamCtrl_ptr streamctrl)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:r:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:r:d");
int c;
while ((c= opts ()) != -1)
@@ -141,7 +141,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -318,15 +318,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
@@ -356,8 +357,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am
index c41d325d4ae..9ff7081788e 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Simple_Two_Stage_Recv.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += receiver
+noinst_PROGRAMS = receiver
receiver_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -38,21 +34,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Simple_Two_Stage_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -70,17 +60,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/receiver.cpp
index 31bdd2c32e2..4a5881deaaa 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
static FILE *output_file = 0;
@@ -88,7 +89,7 @@ Receiver_Callback::dump_samples (const char* file)
ACE_DEBUG ((LM_DEBUG,
"Dumping Stats.....\n"));
- FILE* stats_file = ACE_OS::fopen (file, "w");
+ FILE* stats_file = ACE_OS::fopen (file, ACE_TEXT("w"));
if (stats_file == 0)
{
@@ -102,7 +103,7 @@ Receiver_Callback::dump_samples (const char* file)
stats_.sample ((ACE_UINT64)stats [i]);
}
- stats_.dump_results ("Inter Frame Arrival Time Statistics ",
+ stats_.dump_results (ACE_TEXT("Inter Frame Arrival Time Statistics "),
stats_file,
1);
// ACE_High_Res_Timer::global_scale_factor ());
@@ -204,12 +205,10 @@ Receiver::init (int,
int
parse_args (int argc,
- char **argv)
+ char **argv)
{
// Parse the command line arguments
- ACE_Get_Opt opts (argc,
- argv,
- "f:s:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:s:");
int c;
while ((c = opts ()) != -1)
@@ -233,16 +232,17 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -272,15 +272,14 @@ main (int argc,
ACE_TRY_CHECK;
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -293,8 +292,7 @@ main (int argc,
Receiver receiver;
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/sender.cpp
index c98b0bed8bb..593430ec374 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
// Create a singleton instance of the Sender.
@@ -62,11 +63,10 @@ Sender::protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:dl:a:s:b:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:dl:a:s:b:");
int c;
while ((c= opts ()) != -1)
@@ -195,7 +195,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -434,15 +434,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
@@ -472,8 +473,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am
index b841c8eb008..9991f5eec28 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/Makefile.am
@@ -13,13 +13,9 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.AVS_Simple_Two_Stage_With_QoS_Recv.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += receiver
+noinst_PROGRAMS = receiver
receiver_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -35,21 +31,15 @@ receiver_SOURCES = \
receiver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.AVS_Simple_Two_Stage_With_QoS_Send.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += sender
sender_CPPFLAGS = \
@@ -66,17 +56,13 @@ sender_SOURCES = \
sender_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_AV.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/receiver.cpp
index 527be2f6f10..0c9727ea0e7 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/receiver.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/receiver.cpp
@@ -2,6 +2,7 @@
#include "receiver.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
static FILE *output_file = 0;
// File handle of the file into which received data is written.
@@ -143,12 +144,10 @@ Receiver::init (int,
int
parse_args (int argc,
- char **argv)
+ char **argv)
{
// Parse the command line arguments
- ACE_Get_Opt opts (argc,
- argv,
- "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c = opts ()) != -1)
@@ -169,16 +168,17 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -208,15 +208,14 @@ main (int argc,
ACE_TRY_CHECK;
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result == -1)
return -1;
// Make sure we have a valid <output_file>
output_file = ACE_OS::fopen (output_file_name,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
"Cannot open output file %s\n",
@@ -229,8 +228,7 @@ main (int argc,
Receiver receiver;
result =
- receiver.init (argc,
- argv
+ receiver.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.cpp
index 05bc380156d..8479b4394e6 100644
--- a/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.cpp
+++ b/TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/sender.cpp
@@ -3,6 +3,7 @@
#include "sender.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
static u_long peak_bandwidth = 18400;
@@ -88,11 +89,10 @@ Sender::protocol_object (TAO_AV_Protocol_Object *object)
}
int
-Sender::parse_args (int argc,
- char **argv)
+Sender::parse_args (int argc, char **argv)
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:p:r:l:a:d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:p:r:l:a:d");
int c;
while ((c= opts ()) != -1)
@@ -246,7 +246,7 @@ Sender::init (int argc,
// Open file to read.
this->input_file_ =
ACE_OS::fopen (this->filename_.c_str (),
- "r");
+ ACE_TEXT("r"));
if (this->input_file_ == 0)
ACE_ERROR_RETURN ((LM_DEBUG,
@@ -505,15 +505,16 @@ Sender::pace_data (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
@@ -543,8 +544,7 @@ main (int argc,
// Initialize the Sender.
int result = 0;
- result = SENDER::instance ()->init (argc,
- argv
+ result = SENDER::instance ()->init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp b/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp
index 23f3ff6baf8..01c18a645e5 100644
--- a/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp
+++ b/TAO/orbsvcs/tests/BiDir_CORBALOC/TimeServer.cpp
@@ -5,6 +5,7 @@
#include "tao/Utils/PolicyList_Destroyer.h"
#include "orbsvcs/CosNamingC.h"
#include "tao/AnyTypeCode/Any.h"
+#include "ace/Argv_Type_Converter.h"
class Time_impl :
public POA_TimeModule::Time
@@ -43,16 +44,17 @@ Time_impl::Shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
int
-main(int argc, char * argv[])
+ACE_TMAIN(int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize orb
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Bug_1334_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_1334_Regression/client.cpp
index 52e3543d1ee..8420fd00355 100644
--- a/TAO/orbsvcs/tests/Bug_1334_Regression/client.cpp
+++ b/TAO/orbsvcs/tests/Bug_1334_Regression/client.cpp
@@ -2,6 +2,7 @@
// $Id$
//
#include "tao/corba.h"
+#include "ace/Argv_Type_Converter.h"
// Attempts to resolve the NameService.
// Returns:
@@ -9,11 +10,13 @@
// 1 if the NameService could not be resolved
// 2 if something else went wrong
//
-int main( int argc, char *argv[] )
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[] )
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, 0 ACE_ENV_ARG_PARAMETER ) ;
+ CORBA::ORB_var orb = CORBA::ORB_init( convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER ) ;
ACE_TRY_CHECK;
ACE_TRY_EX (nested)
diff --git a/TAO/orbsvcs/tests/Bug_1393_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_1393_Regression/client.cpp
index 40144dd1036..eb9a7b96371 100644
--- a/TAO/orbsvcs/tests/Bug_1393_Regression/client.cpp
+++ b/TAO/orbsvcs/tests/Bug_1393_Regression/client.cpp
@@ -3,12 +3,15 @@
#include "tao/IFR_Client/IFR_BasicC.h"
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
-int main(int argc, char** argv)
+int ACE_TMAIN(int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb_ = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb_ = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Bug_1395_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_1395_Regression/Makefile.am
index 02f7969326f..0302979c756 100644
--- a/TAO/orbsvcs/tests/Bug_1395_Regression/Makefile.am
+++ b/TAO/orbsvcs/tests/Bug_1395_Regression/Makefile.am
@@ -48,9 +48,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Bug_1395_Regression_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/orbsvcs/tests/Bug_1395_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_1395_Regression/client.cpp
index 69909f4e3d5..00158e34bac 100644
--- a/TAO/orbsvcs/tests/Bug_1395_Regression/client.cpp
+++ b/TAO/orbsvcs/tests/Bug_1395_Regression/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "file://test.ior";
int shutdown_server = 0;
@@ -9,7 +10,7 @@ int shutdown_server = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,16 +36,18 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/orbsvcs/tests/Bug_1395_Regression/server.cpp b/TAO/orbsvcs/tests/Bug_1395_Regression/server.cpp
index 65c1f4c8a2b..161cdd36fdb 100644
--- a/TAO/orbsvcs/tests/Bug_1395_Regression/server.cpp
+++ b/TAO/orbsvcs/tests/Bug_1395_Regression/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Test_i.h"
#include "ace/OS_NS_stdio.h"
@@ -9,7 +10,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -32,14 +33,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_i server_impl (orb.in ());
@@ -79,7 +82,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"SERVER (%P): Cannot open output file "
diff --git a/TAO/orbsvcs/tests/Bug_1630_Regression/testclient.cpp b/TAO/orbsvcs/tests/Bug_1630_Regression/testclient.cpp
index 8115122177e..fb387fc28c7 100644
--- a/TAO/orbsvcs/tests/Bug_1630_Regression/testclient.cpp
+++ b/TAO/orbsvcs/tests/Bug_1630_Regression/testclient.cpp
@@ -6,9 +6,12 @@
#include "tao/IFR_Client/IFR_Client_Adapter_Impl.h"
#include "tao/AnyTypeCode/NVList.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY_NEW_ENV
{
@@ -16,7 +19,7 @@ int main (int argc, char* argv[])
// Initialise ORB.
//
- CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, "" ACE_ENV_ARG_PARAMETER) ;
+ CORBA::ORB_var orb = CORBA::ORB_init( convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER) ;
ACE_TRY_CHECK;
// Find the Interface Repository.
diff --git a/TAO/orbsvcs/tests/Bug_2074_Regression/Bug_2074_Regression.mpc b/TAO/orbsvcs/tests/Bug_2074_Regression/Bug_2074_Regression.mpc
deleted file mode 100644
index 8bc20a15371..00000000000
--- a/TAO/orbsvcs/tests/Bug_2074_Regression/Bug_2074_Regression.mpc
+++ /dev/null
@@ -1,10 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Test): taoclient, messaging, naming, minimum_corba {
- exename = test
- Source_Files {
- test.cpp
- ORB_Task.cpp
- }
-}
diff --git a/TAO/orbsvcs/tests/Bug_2074_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2074_Regression/Makefile.am
deleted file mode 100644
index 6afbdbf8e2b..00000000000
--- a/TAO/orbsvcs/tests/Bug_2074_Regression/Makefile.am
+++ /dev/null
@@ -1,57 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_ROOT = $(top_srcdir)
-
-
-## Makefile.Bug_2074_Regression_Test.am
-
-if BUILD_CORBA_MESSAGING
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS = test
-
-test_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-test_SOURCES = \
- ORB_Task.cpp \
- test.cpp \
- ORB_Task.h
-
-test_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.cpp b/TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.cpp
deleted file mode 100644
index 41e64a4dd51..00000000000
--- a/TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * @file ORB_Task.cpp
- *
- * $Id$
- *
- * @author Carlos O'Ryan <coryan@atdesk.com>
- *
- */
-#include "ORB_Task.h"
-#include "tao/Messaging/Messaging.h"
-#include "orbsvcs/CosNamingC.h"
-
-ACE_RCSID(Bug_2074_Regression, ORB_Task, "$Id$")
-
-ORB_Task::ORB_Task (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-int
-ORB_Task::svc (void)
-{
- try
- {
- CORBA::Object_var ncRef =
- orb_->string_to_object(
- "corbaloc:iiop:10.175.12.99:15025/NameService" );
-
- CORBA::PolicyList policies;
-
- TimeBase::TimeT timeout = 5000 * 10000;
-
- CORBA::Any timeoutAny;
- timeoutAny <<= timeout;
-
- policies.length(1);
- policies[0] = orb_->create_policy(
- Messaging::RELATIVE_RT_TIMEOUT_POLICY_TYPE,
- timeoutAny );
-
- CORBA::Object_var object = ncRef->_set_policy_overrides(
- policies, CORBA::SET_OVERRIDE );
-
- policies[0]->destroy();
-
- CosNaming::NamingContext_var namingContext =
- CosNaming::NamingContext::_narrow( object.in() );
- namingContext->_non_existent();
- }
- catch ( const CORBA::TRANSIENT&)
- {
- ACE_DEBUG ((LM_DEBUG, "Caught transient\n"));
- }
- catch ( const CORBA::TIMEOUT&)
- {
- ACE_DEBUG ((LM_DEBUG, "Caught timeout\n"));
- }
- catch ( const CORBA::Exception& e )
- {
- ACE_PRINT_EXCEPTION (e, "Exception caught");
- }
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.h b/TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.h
deleted file mode 100644
index cae39cbce9f..00000000000
--- a/TAO/orbsvcs/tests/Bug_2074_Regression/ORB_Task.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef ORB_Task__h_
-#define ORB_Task__h_
-/**
- * @file ORB_Task.h
- *
- * $Id$
- *
- * @author Johnny Willemsen <jwillemsen@remedy.nl>
- *
- */
-#include "tao/ORB.h"
-#include "ace/Task.h"
-
-class ORB_Task : public ACE_Task_Base
-{
-public:
- ORB_Task(CORBA::ORB_ptr orb);
-
- virtual int svc (void);
-
-private:
- CORBA::ORB_var orb_;
-};
-
-#endif /* ORB_Task__h_ */
diff --git a/TAO/orbsvcs/tests/Bug_2074_Regression/run_test.pl b/TAO/orbsvcs/tests/Bug_2074_Regression/run_test.pl
deleted file mode 100755
index dc046a8ace8..00000000000
--- a/TAO/orbsvcs/tests/Bug_2074_Regression/run_test.pl
+++ /dev/null
@@ -1,27 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("test", "");
-}
-else {
- $SV = new PerlACE::Process ("test", "");
-}
-
-$SV->Spawn ();
-
-$server = $SV->WaitKill (120);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/TAO/orbsvcs/tests/Bug_2074_Regression/test.cpp b/TAO/orbsvcs/tests/Bug_2074_Regression/test.cpp
deleted file mode 100644
index 915e7419e76..00000000000
--- a/TAO/orbsvcs/tests/Bug_2074_Regression/test.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// $Id$
-
-#include "tao/corba.h"
-#include "ORB_Task.h"
-
-int main( int argc, char* argv[] )
-{
- CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
-
- ORB_Task worker (orb.in ());
- worker.activate (THR_NEW_LWP | THR_JOINABLE,
- 10);
-
- ACE_Time_Value tv (20, 0);
- orb->run(tv);
-
- orb->destroy ();
-
- worker.thr_mgr ()->wait ();
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2137_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2137_Regression/Makefile.am
index 9282c6e4b84..156a2f3583d 100644
--- a/TAO/orbsvcs/tests/Bug_2137_Regression/Makefile.am
+++ b/TAO/orbsvcs/tests/Bug_2137_Regression/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = client
@@ -51,7 +50,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/Bug_2137_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_2137_Regression/client.cpp
index 46148e21dee..a95dc8ad9db 100755
--- a/TAO/orbsvcs/tests/Bug_2137_Regression/client.cpp
+++ b/TAO/orbsvcs/tests/Bug_2137_Regression/client.cpp
@@ -2,16 +2,16 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h"
#include "tao/corba.h"
-#include "tao/PI/PI.h"
CORBA::ORB_var orb = CORBA::ORB::_nil ();
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "");
int c;
while ((c = get_opts ()) != -1)
@@ -73,16 +73,18 @@ check_is_equivalent (const char* ior1, const char * ior2, CORBA::Boolean expecte
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::Boolean result = 0;
ACE_TRY_NEW_ENV
{
orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// ep1 is equivalent to no other IORs - it is not an IOGR, and ep2 is a different endpoint.
diff --git a/TAO/orbsvcs/tests/Bug_2247_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2247_Regression/Makefile.am
index cfee18c4447..011806dfc29 100644
--- a/TAO/orbsvcs/tests/Bug_2247_Regression/Makefile.am
+++ b/TAO/orbsvcs/tests/Bug_2247_Regression/Makefile.am
@@ -50,15 +50,11 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Bug_2247_Regression_Manager.am
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Manager
@@ -94,7 +90,6 @@ Manager_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp b/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp
index 74d54ebda92..cb7497ab800 100755
--- a/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp
+++ b/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp
@@ -3,13 +3,14 @@
#include "Client_i.h"
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
#include "tao/IORManipulation/IORManip_Loader.h"
#include "tao/PortableServer/PortableServer.h"
-#include "orbsvcs/FaultTolerance/FT_Service_Activate.h"
-#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
+#include "orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h"
+#include "orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h"
#include "ace/OS_NS_stdio.h"
// Files which have the IOR
@@ -31,7 +32,7 @@ TAO_IOP::TAO_IOR_Manipulation_var iorm = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "a:k:b:l:c:sm");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:k:b:l:c:sm");
int c;
while ((c = get_opts ()) != -1)
@@ -75,9 +76,11 @@ parse_args (int argc, char *argv[])
int
-main (int argc,
- char *argv[])
+ACE_TMAIN (int argc,
+ ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
Manager manager;
@@ -85,13 +88,12 @@ main (int argc,
ACE_TRY
{
// Initilaize the ORB, POA etc.
- manager.init (argc,
- argv
+ manager.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// the command line arguments
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
// Merge the different IORS
@@ -138,8 +140,7 @@ Manager::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -286,7 +287,7 @@ Manager::write_to_file (void)
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -360,8 +361,8 @@ int run_remote_test (Simple_Server_ptr server, const char* execute_key)
if (ACE_OS::strcmp (expected, received))
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("... FAIL\n"
- "CLIENT> received: '%s'\n"),
+ ACE_TEXT ("... FAIL\n")
+ ACE_TEXT ("CLIENT> received: '%s'\n"),
received));
return -1;
}
@@ -419,8 +420,8 @@ int run_abort_test (Simple_Server_ptr server,
if (ACE_OS::strcmp (expected, received))
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("... FAIL\n"
- "CLIENT> received: '%s'\n"),
+ ACE_TEXT ("... FAIL\n")
+ ACE_TEXT ("CLIENT> received: '%s'\n"),
received));
return -1;
}
@@ -470,8 +471,8 @@ int run_shutdown_test (Simple_Server_ptr server,
if (ACE_OS::strcmp (expected, received))
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("... FAIL\n"
- "CLIENT> received: '%s'\n"),
+ ACE_TEXT ("... FAIL\n")
+ ACE_TEXT ("CLIENT> received: '%s'\n"),
received));
return -1;
}
@@ -573,8 +574,7 @@ Client_i::init (ACE_ENV_SINGLE_ARG_DECL)
int argc = 0;
char **argv = 0;
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
diff --git a/TAO/orbsvcs/tests/Bug_2247_Regression/server.cpp b/TAO/orbsvcs/tests/Bug_2247_Regression/server.cpp
index d597ec0d27d..2ad430ca788 100755
--- a/TAO/orbsvcs/tests/Bug_2247_Regression/server.cpp
+++ b/TAO/orbsvcs/tests/Bug_2247_Regression/server.cpp
@@ -2,6 +2,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
const char *ior_output_file = 0;
const char *key = 0;
@@ -9,7 +10,7 @@ const char *key = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,17 +38,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// We do the command line parsing first
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
@@ -109,7 +112,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/Bug_2248_Regression/Bug_2248_Regression.mpc b/TAO/orbsvcs/tests/Bug_2248_Regression/Bug_2248_Regression.mpc
index b3ba87fb27c..7f5ddb09532 100755
--- a/TAO/orbsvcs/tests/Bug_2248_Regression/Bug_2248_Regression.mpc
+++ b/TAO/orbsvcs/tests/Bug_2248_Regression/Bug_2248_Regression.mpc
@@ -3,6 +3,7 @@
project(*idl): taoidldefaults {
idlflags += -Sc
+ avoids += uses_wchar
IDL_Files {
test.idl
@@ -14,6 +15,7 @@ project(*idl): taoidldefaults {
project(*Server): taoserver, orbsvcsexe, iormanip, pi_server, ftorb, messaging, minimum_corba {
after += *idl
+ avoids += uses_wchar
Source_Files {
test_i.cpp
@@ -32,6 +34,7 @@ project(*Server): taoserver, orbsvcsexe, iormanip, pi_server, ftorb, messaging,
project(*Client): taoclient, orbsvcsexe, iormanip, pi_server, ftorb, minimum_corba {
after += *idl
+ avoids += uses_wchar
Source_Files {
testC.cpp
diff --git a/TAO/orbsvcs/tests/Bug_2248_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2248_Regression/Makefile.am
index 738ab05048c..654f852076f 100644
--- a/TAO/orbsvcs/tests/Bug_2248_Regression/Makefile.am
+++ b/TAO/orbsvcs/tests/Bug_2248_Regression/Makefile.am
@@ -67,16 +67,11 @@ tests-stamp: $(srcdir)/tests.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl \
- tests.idl
-
## Makefile.Bug_2248_Regression_Client.am
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -112,7 +107,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -122,7 +116,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -166,7 +159,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp
index 0d6a828940b..33dc40e671e 100755
--- a/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp
+++ b/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp
@@ -3,11 +3,12 @@
#include "Client_i.h"
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "tao/IORManipulation/IORManip_Loader.h"
#include "tao/PortableServer/PortableServer.h"
-#include "orbsvcs/FaultTolerance/FT_Service_Activate.h"
-#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
+#include "orbsvcs/orbsvcs/FaultTolerance/FT_Service_Activate.h"
+#include "orbsvcs/orbsvcs/FaultTolerance/FT_IOGR_Property.h"
#include "ace/OS_NS_stdio.h"
// Files which have the IOR
@@ -27,7 +28,7 @@ CORBA::Object_var object_secondary = 0;
int
parse_args (int argc, char* argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "a:k:b:l:g:h:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:k:b:l:g:h:");
int c;
while ((c = get_opts ()) != -1)
@@ -69,9 +70,11 @@ parse_args (int argc, char* argv[])
int
-main (int argc,
- char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+// This test cannot be run on a wide character build
+// ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
Manager manager;
@@ -79,8 +82,7 @@ main (int argc,
ACE_TRY
{
// Initilaize the ORB, POA etc.
- manager.init (argc,
- argv
+ manager.init (argc, argv
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -123,8 +125,7 @@ Manager::init (int& argc,
char**& argv
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -320,7 +321,7 @@ Manager::write_to_file (CORBA::Object_ptr ior, const char* ior_output_file)
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -389,8 +390,8 @@ int run_remote_test (Simple_Server_ptr server, const char* execute_key ACE_ENV_A
if (ACE_OS::strcmp (expected, received))
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("... FAIL\n"
- "CLIENT> received: '%s'\n"),
+ ACE_TEXT ("... FAIL\n")
+ ACE_TEXT ("CLIENT> received: '%s'\n"),
received));
return -1;
}
@@ -445,8 +446,8 @@ int run_abort_test (Simple_Server_ptr server,
if (ACE_OS::strcmp (expected, received))
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("... FAIL\n"
- "CLIENT> received: '%s'\n"),
+ ACE_TEXT ("... FAIL\n")
+ ACE_TEXT ("CLIENT> received: '%s'\n"),
received));
return -1;
}
@@ -487,8 +488,7 @@ Client_i::init (ACE_ENV_SINGLE_ARG_DECL)
int argc = 0;
char **argv = 0;
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
diff --git a/TAO/orbsvcs/tests/Bug_2248_Regression/server.cpp b/TAO/orbsvcs/tests/Bug_2248_Regression/server.cpp
index 60f306ac782..7505a81493f 100755
--- a/TAO/orbsvcs/tests/Bug_2248_Regression/server.cpp
+++ b/TAO/orbsvcs/tests/Bug_2248_Regression/server.cpp
@@ -4,6 +4,7 @@
#include "Server_Request_Interceptor.h"
#include "test_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
#include "orbsvcs/FaultTolerance/FT_Service_Activate.h"
#include "tao/ORBInitializer_Registry.h"
@@ -15,7 +16,7 @@ const char *key = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:k:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:k:f:");
int c;
while ((c = get_opts ()) != -1)
@@ -47,9 +48,9 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
-
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -66,11 +67,11 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// We do the command line parsing first
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
@@ -132,7 +133,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc b/TAO/orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc
deleted file mode 100644
index 349374bb355..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/Bug_2285_Regression.mpc
+++ /dev/null
@@ -1,67 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*IDL): taoidldefaults {
- IDL_Files {
- Test.idl
- }
- custom_only = 1
-}
-
-project(*Client): taoserver, ftclientorb {
- after += *IDL
-
- exename = client
- Source_Files {
- client.cpp
- Hello.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
-
-project (*Server) : taoserver, ftclientorb, pi_server {
- after += *IDL
-
- exename = server
- Source_Files {
- server.cpp
- Hello.cpp
- ServerORBInitializer.cpp
- ServerRequest_Interceptor.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
-
-project(*Client2): taoclient, ftclientorb, iormanip {
- after += *IDL
-
- exename = client2
- Source_Files {
- client2.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
-
-project (*Server2) : taoserver, pi_server, ftclientorb {
- after += *IDL
-
- exename = server2
- Source_Files {
- server2.cpp
- Hello.cpp
- ServerORBInitializer2.cpp
- ServerRequest_Interceptor2.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/Hello.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/Hello.cpp
deleted file mode 100644
index 6463bd8e9ec..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/Hello.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-//
-// $Id$
-//
-#include "Hello.h"
-
-ACE_RCSID(Hello, Hello, "$Id$")
-
-CORBA::Boolean
-Hello::ids_differ_ = 1;
-
-Hello::Hello (CORBA::ORB_ptr orb, Test::Hello_ptr server, CORBA::ULong server_id)
- : orb_ (CORBA::ORB::_duplicate (orb)),
- server_ (Test::Hello::_duplicate (server)),
- server_id_ (server_id)
-{
-}
-
-char *
-Hello::get_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup ("Hello there!");
-}
-
-void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
-
-void
-Hello::throw_exception (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException, Test::MyException))
-{
- ACE_THROW (Test::MyException ());
-}
-
-// Nested sequence step 1 - This op called by the client on the server
-CORBA::Boolean
-Hello::call_me_back (Test::Hello_ptr me ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- CORBA::Boolean result = me->call_back (ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- return result;
-}
-
-// Nested sequence step 2 - This op called by the server on the client
-CORBA::Boolean
-Hello::call_back (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- CORBA::Boolean result = server_->check_request_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- return result;
-}
-
-// Nested sequence step 3 - This op called by the client on the server
-CORBA::Boolean
-Hello::check_request_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // The server request interceptor will have set this public static member
- // false if the same retention id has been used twice
- return ids_differ_;
-}
-
-CORBA::ULong
-Hello::drop_down_dead (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return server_id_;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/Hello.h b/TAO/orbsvcs/tests/Bug_2285_Regression/Hello.h
deleted file mode 100644
index 4967689c88a..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/Hello.h
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef HELLO_H
-#define HELLO_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# pragma warning(push)
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Hello interface
-class Hello
- : public virtual POA_Test::Hello
-{
-public:
- /// Constructor
- Hello (CORBA::ORB_ptr orb, Test::Hello_ptr server, CORBA::ULong server_id = 0);
-
- // = The skeleton methods
- virtual char * get_string (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void throw_exception (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException, Test::MyException));
-
- virtual CORBA::Boolean call_me_back (Test::Hello_ptr me ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::Boolean call_back (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::Boolean check_request_id (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::ULong drop_down_dead (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- static CORBA::Boolean ids_differ_;
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-
- Test::Hello_var server_;
-
- CORBA::ULong server_id_;
-};
-
-#if defined(_MSC_VER)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2285_Regression/Makefile.am
deleted file mode 100644
index f7777d2c61c..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/Makefile.am
+++ /dev/null
@@ -1,258 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-noinst_PROGRAMS =
-
-## Makefile.Bug_2285_Regression_IDL.am
-
-BUILT_SOURCES = \
- TestC.cpp \
- TestC.h \
- TestC.inl \
- TestS.cpp \
- TestS.h \
- TestS.inl \
- TestS_T.cpp \
- TestS_T.h \
- TestS_T.inl
-
-CLEANFILES = \
- Test-stamp \
- TestC.cpp \
- TestC.h \
- TestC.inl \
- TestS.cpp \
- TestS.h \
- TestS.inl \
- TestS_T.cpp \
- TestS_T.h \
- TestS_T.inl
-
-TestC.cpp TestC.h TestC.inl TestS.cpp TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
-
-Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Test.idl
- @touch $@
-
-
-noinst_HEADERS = \
- Test.idl
-
-## Makefile.Bug_2285_Regression_Client.am
-
-if BUILD_ACE_UUID
-if BUILD_CORBA_MESSAGING
-if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += client
-
-client_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-client_SOURCES = \
- Hello.cpp \
- TestC.cpp \
- TestS.cpp \
- client.cpp \
- Hello.h
-
-client_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FT_ClientORB.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FTORB_Utils.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
-endif BUILD_INTERCEPTORS
-endif BUILD_CORBA_MESSAGING
-endif BUILD_ACE_UUID
-
-## Makefile.Bug_2285_Regression_Client2.am
-
-if BUILD_ACE_UUID
-if BUILD_CORBA_MESSAGING
-if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += client2
-
-client2_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-client2_SOURCES = \
- TestC.cpp \
- client2.cpp \
- Hello.h \
- ServerORBInitializer.h \
- ServerORBInitializer2.h \
- ServerRequest_Interceptor.h \
- ServerRequest_Interceptor2.h
-
-client2_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FT_ClientORB.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FTORB_Utils.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
-endif BUILD_INTERCEPTORS
-endif BUILD_CORBA_MESSAGING
-endif BUILD_ACE_UUID
-
-## Makefile.Bug_2285_Regression_Server.am
-
-if BUILD_ACE_UUID
-if BUILD_CORBA_MESSAGING
-if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += server
-
-server_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-server_SOURCES = \
- Hello.cpp \
- ServerORBInitializer.cpp \
- ServerRequest_Interceptor.cpp \
- TestC.cpp \
- TestS.cpp \
- server.cpp \
- Hello.h \
- ServerORBInitializer.h \
- ServerRequest_Interceptor.h
-
-server_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FT_ClientORB.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FTORB_Utils.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
-endif BUILD_INTERCEPTORS
-endif BUILD_CORBA_MESSAGING
-endif BUILD_ACE_UUID
-
-## Makefile.Bug_2285_Regression_Server2.am
-
-if BUILD_ACE_UUID
-if BUILD_CORBA_MESSAGING
-if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += server2
-
-server2_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-server2_SOURCES = \
- Hello.cpp \
- ServerORBInitializer2.cpp \
- ServerRequest_Interceptor2.cpp \
- TestC.cpp \
- TestS.cpp \
- server2.cpp \
- Hello.h \
- ServerORBInitializer2.h \
- ServerRequest_Interceptor2.h
-
-server2_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FT_ClientORB.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FTORB_Utils.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
-endif BUILD_INTERCEPTORS
-endif BUILD_CORBA_MESSAGING
-endif BUILD_ACE_UUID
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/README b/TAO/orbsvcs/tests/Bug_2285_Regression/README
deleted file mode 100644
index eb174b925d9..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/README
+++ /dev/null
@@ -1,96 +0,0 @@
-// $Id$
-
-See http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2285 for more.
-
-These two test scenarios test that the following FT spec conditions are met:
-
-1 / "The retention_id uniquely identifies the request within the scope of the client and the expiration_time."
-2 / "Each repetition of a request must carry the same client_id, retention_id, and expiration_time as the original request."
-3 / "If a client ORB loses the connection with a server or incurs some other kind of transport fault, the ORB may attempt to retransmit the request message, or retransmit the request message to an alternative destination or using an alternative transport, up to the expiration_time."
-4 / "TimeBase::TimeT expiration_time" and "TimeT represents a single time value, which is 64 bits in size, and holds the number of 100 nanoseconds that have passed since the base time. For absolute time the base is 15 October 1582 00:00 of the Gregorian Calendar. All absolute time shall be computed using dates from the Gregorian Calendar."
-
-Test #1 checks that unique retention IDs are used in two scenarios:
-1/ When a request follows a previous request that concluded with an exception being returned to the application code.
-2/ When a subsequent request is made in a thread when that thread still as a response to a previous request outstanding.
-
-__Test #1 - Regression 1 & 2__
-
-TAO249_ServerRequest_Interceptor::receive_request (24807|3074381504) called for method: throw_exception ... client retention id is: 1
-Client catches a MyException, as expected. No problem !
-TAO249_ServerRequest_Interceptor::receive_request (24807|3074381504) called for method: call_me_back ... client retention id is: 1
-Test Failed - REGRESSION !!! Same client retention id has been used for TWO consecutive independent invocations!!
-TAO249_ServerRequest_Interceptor::receive_request (24807|3074381504) called for method: check_request_id ... client retention id is: 1
-Test Failed - REGRESSION !!! Same client retention id has been used for TWO consecutive independent invocations!!
-TAO249_ServerRequest_Interceptor::receive_request (24807|3074381504) called for method: shutdown ... client retention id is: 2
-(24807|3074381504) server - event loop finished
-Error: REGRESSION identified!!!
-ERROR: client returned 1
-
-__Test #1 - Successful result__
-
-E:\doc_cvs\ACE_wrappers\TAO\orbsvcs\tests\tao249_regression>run_test.pl
-TAO249_ServerRequest_Interceptor::receive_request (2844|1244) called for method: throw_exception ... client retention id is: 1
-Client catches a MyException, as expected. No problem !
-TAO249_ServerRequest_Interceptor::receive_request (2844|1244) called for method: call_me_back ... client retention id is: 2
-TAO249_ServerRequest_Interceptor::receive_request (2844|1244) called for method: check_request_id ... client retention id is: 3
-TAO249_ServerRequest_Interceptor::receive_request (2844|1244) called for method: shutdown ... client retention id is: 4
-(2844|1244) server - event loop finished
-Test passed !!!
-
-Test #2 checks that 4 conditions are met:
-1/ That the conversion from ACE_Time_Value to TimeT used in the calculation of the expiration time is done correctly.
-2/ That the correct offset has been applied to convert from posix to gregorian time.
-3/ That the client reuses the same original expiration time on all retries of the same request.
-4/ That the client stops retrying a request once the expiration time has passed.
-
-__Test #2 - Regression 1__
-
-Test Failed - REGRESSION !!! Expiration time is garbage - it is after 2358 A.D.!!
-Expiration time: 18446744072261958952
-2358 A.D. : 244385856000000000
-Error: REGRESSION identified by server 0. Test Failed !!
-Error: REGRESSION identified!!!
-ERROR: client returned 1
-
-__Test #2 - Regression 2__
-
-Test Failed - REGRESSION !!! Expiration time is in wrong format - it is before 1970 A.D. !!
-Expiration time: 11301710711718750
-1970 A.D. : 122192928000000000
-Error: REGRESSION identified by server 0. Test Failed !!
-Error: REGRESSION identified!!!
-ERROR: client returned 1
-
-__Test #2 - Regression 3__
-
-abnormal program termination
-Test Failed - REGRESSION !!! Different expiration times used on consecutive retries of the same op!!
-Previous expiration: 133494646145937500
-Current expiration : 133494646183906250
-Error: REGRESSION identified by server 1. Test Failed !!
-Error: REGRESSION identified!!!
-ERROR: client returned 1
-
-__Test #2 - Regression 4__
-
-abnormal program termination
-...
-abnormal program termination
-Test Failed - REGRESSION !!! Client ORB is still retrying after the expiration time!!
-Expiration time : 133494661968437500
-Previous attempt : 133494661990000000
-Time now : 133494662015156250
-Error: REGRESSION identified by server 2. Test Failed !!
-Error: REGRESSION identified!!!
-ERROR: client returned 1
-
-__Test #2 - Successful result:__
-
-abnormal program termination
-
-abnormal program termination
-(4084|3584) EXCEPTION, Client caught transport exception, as expected. No problem !
-
-system exception, ID 'IDL:omg.org/CORBA/COMM_FAILURE:1.0' TAO exception, minor code = 6 (failed to recv request response; ENOENT), completed = MAYBE
-
-Test passed !!!
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.cpp
deleted file mode 100644
index e371cd8c9be..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "ServerORBInitializer.h"
-#include "ServerRequest_Interceptor.h"
-#include "tao/ORB_Constants.h"
-#include "tao/Exception.h"
-
-
-void
-Server_ORBInitializer::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-
-}
-
-void
-Server_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->register_server_request_interceptors (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void
-Server_ORBInitializer::register_server_request_interceptors (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- PortableInterceptor::ServerRequestInterceptor_ptr sri =
- PortableInterceptor::ServerRequestInterceptor::_nil ();
-
- ACE_NEW_THROW_EX (sri,
- TAO249_ServerRequest_Interceptor,
- CORBA::NO_MEMORY ());
-
- PortableInterceptor::ServerRequestInterceptor_var
- server_interceptor = sri;
-
- info->add_server_request_interceptor (server_interceptor.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.h b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.h
deleted file mode 100644
index d7ca298b858..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * $Id$
- */
-//=============================================================================
-#ifndef TAO249_SERVER_ORBINITIALIZER_H
-#define TAO249_SERVER_ORBINITIALIZER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PortableInterceptorC.h"
-#include "tao/PI_Server/PI_Server_includeC.h"
-#include "tao/PI/PI.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-
-/// RTCORBA ORB initializer.
-class Server_ORBInitializer :
- public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
-
- /// Register the necessary interceptors.
- void register_server_request_interceptors (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO249_SERVER_ORBINITIALIZER_H */
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.cpp
deleted file mode 100644
index f7a7b408be7..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "ServerORBInitializer2.h"
-#include "ServerRequest_Interceptor2.h"
-#include "tao/ORB_Constants.h"
-#include "tao/Exception.h"
-
-
-void
-Server_ORBInitializer2::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-
-}
-
-void
-Server_ORBInitializer2::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->register_server_request_interceptors (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void
-Server_ORBInitializer2::register_server_request_interceptors (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- PortableInterceptor::ServerRequestInterceptor_ptr sri =
- PortableInterceptor::ServerRequestInterceptor::_nil ();
-
- ACE_NEW_THROW_EX (sri,
- TAO249_ServerRequest_Interceptor2,
- CORBA::NO_MEMORY ());
-
- PortableInterceptor::ServerRequestInterceptor_var
- server_interceptor = sri;
-
- info->add_server_request_interceptor (server_interceptor.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.h b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.h
deleted file mode 100644
index a98a94523be..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerORBInitializer2.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * $Id$
- */
-//=============================================================================
-#ifndef TAO249_SERVER_ORBINITIALIZER2_H
-#define TAO249_SERVER_ORBINITIALIZER2_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PortableInterceptorC.h"
-#include "tao/PI_Server/PI_Server_includeC.h"
-#include "tao/PI/PI.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-
-/// RTCORBA ORB initializer.
-class Server_ORBInitializer2 :
- public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
-
- /// Register the necessary interceptors.
- void register_server_request_interceptors (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO249_SERVER_ORBINITIALIZER2_H */
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp
deleted file mode 100644
index 3ace3eaea71..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.cpp
+++ /dev/null
@@ -1,145 +0,0 @@
-// -*- C++ -*-
-
-#include "ServerRequest_Interceptor.h"
-#include "orbsvcs/FT_CORBA_ORBC.h"
-#include "tao/IOP_IORC.h"
-#include "tao/ORB_Constants.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/CDR.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-#include "Hello.h"
-
-ACE_RCSID (FaultTolerance,
- TAO249_ServerRequest_Interceptor,
- "$Id$")
-
-TAO249_ServerRequest_Interceptor::TAO249_ServerRequest_Interceptor (void)
-: orb_ (0),
- client_id_ (0)
-{
-}
-
-TAO249_ServerRequest_Interceptor::~TAO249_ServerRequest_Interceptor (void)
-{
-}
-
-
-char *
-TAO249_ServerRequest_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup ("TAO_TAO249_ServerRequest_Interceptor");
-}
-
-void
-TAO249_ServerRequest_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor::receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor::receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- ACE_TRY
- {
- IOP::ServiceContext_var sc =
- ri->get_request_service_context (IOP::FT_REQUEST
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_InputCDR cdr (reinterpret_cast <const char*>
- (sc->context_data.get_buffer ()),
- sc->context_data.length ());
-
- CORBA::Boolean byte_order;
-
- if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0)
- {
- ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28,
- CORBA::COMPLETED_NO));
- }
- ACE_TRY_CHECK;
-
- cdr.reset_byte_order (static_cast <int> (byte_order));
-
- FT::FTRequestServiceContext ftrsc;
-
- if ((cdr >> ftrsc) == 0)
- ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28,
- CORBA::COMPLETED_NO));
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "TAO249_ServerRequest_Interceptor::receive_request (%P|%t) called for method: %s ... client retention id is: %d\n", op.in (), ftrsc.retention_id ));
-
- if (client_id_ == 0)
- {
- client_id_ = ftrsc.retention_id;
- }
- else
- {
- if (client_id_ != ftrsc.retention_id)
- {
- client_id_ = ftrsc.retention_id;
- }
- else
- {
- ACE_DEBUG ((LM_ERROR, "Test Failed - REGRESSION !!! Same client retention id has been used for TWO consecutive independent invocations!!\n"));
- Hello::ids_differ_ = 0;
- }
- }
- }
-ACE_CATCHANY
- {
- ACE_DEBUG ((LM_ERROR, "Unexpected (non regression) error - test failed\n"));
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception in TAO249_ServerRequest_Interceptor::receive_request \n");
- ACE_RE_THROW;
- }
-ACE_ENDTRY;
-ACE_CHECK;
-
-}
-
-void
-TAO249_ServerRequest_Interceptor::send_reply (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor::send_exception (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor::send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.h b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.h
deleted file mode 100644
index fdccf530614..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * $Id$
- */
-//=============================================================================
-
-#ifndef TAO249_SERVER_REQUEST_INTERCEPTOR_H
-#define TAO249_SERVER_REQUEST_INTERCEPTOR_H
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/LocalObject.h"
-#include "tao/PortableInterceptorC.h"
-#include "tao/ORB.h"
-#include "tao/PI/PI.h"
-#include "tao/PI_Server/PI_Server.h"
-
-/**
-* $Id$
-*/
-class TAO249_ServerRequest_Interceptor
-: public virtual PortableInterceptor::ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
-/// Constructor.
-TAO249_ServerRequest_Interceptor (void);
-
-/// Destructor.
-~TAO249_ServerRequest_Interceptor (void);
-
-/**
- * @name Methods Required by the Server Request Interceptor
- * Interface
- *
- * These are methods that must be implemented since they are pure
- * virtual in the abstract base class. They are the canonical
- * methods required for all server request interceptors.
- */
-//@{
-/// Return the name of this ServerRequestinterceptor.
-virtual char * name (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void destroy (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void send_reply (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void send_exception (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void send_other (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-//@}
-private:
-
-CORBA::ORB_var orb_;
-
-CORBA:: Long client_id_;
-};
-
-#endif /* TAO249_SERVER_REQUEST_INTERCEPTOR_H */
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.cpp
deleted file mode 100644
index cc63dbf287e..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.cpp
+++ /dev/null
@@ -1,240 +0,0 @@
-// -*- C++ -*-
-
-#include "ServerRequest_Interceptor2.h"
-#include "orbsvcs/FT_CORBA_ORBC.h"
-#include "tao/IOP_IORC.h"
-#include "tao/ORB_Constants.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/CDR.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_unistd.h"
-#include "Hello.h"
-#include "ace/OS_NS_sys_time.h"
-
-ACE_RCSID (FaultTolerance,
- TAO249_ServerRequest_Interceptor2,
- "$Id$")
-
-TAO249_ServerRequest_Interceptor2::TAO249_ServerRequest_Interceptor2 (void)
-: orb_ (0),
- client_id_ (0)
-{
-}
-
-TAO249_ServerRequest_Interceptor2::~TAO249_ServerRequest_Interceptor2 (void)
-{
-}
-
-
-char *
-TAO249_ServerRequest_Interceptor2::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup ("TAO_TAO249_ServerRequest_Interceptor2");
-}
-
-void
-TAO249_ServerRequest_Interceptor2::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
-
- if (ACE_OS::strcmp (op.in (), "drop_down_dead"))
- {
- // bail if not the op we are interested in -
- // avoid excess spurious error clutter when client calls ::shutdown
- return;
- }
-
- ACE_CHECK;
- ACE_TRY
- {
- IOP::ServiceContext_var sc =
- ri->get_request_service_context (IOP::FT_REQUEST
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_InputCDR cdr (reinterpret_cast <const char*>
- (sc->context_data.get_buffer ()
- ),
- sc->context_data.length ());
-
- CORBA::Boolean byte_order;
-
- if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0)
- {
- ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28,
- CORBA::COMPLETED_NO));
- }
- ACE_TRY_CHECK;
-
- cdr.reset_byte_order (static_cast <int>(byte_order));
-
- FT::FTRequestServiceContext ftrsc;
-
- if ((cdr >> ftrsc) == 0)
- ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28,
- CORBA::COMPLETED_NO));
- ACE_TRY_CHECK;
-
- FILE* last_exp_time_file = ACE_OS::fopen ("last_expiration_time", "r+");
- TimeBase::TimeT last_exp_time = 0;
-
- if (!last_exp_time_file)
- {
- // file does not exist ... we're the first server
- // create new file for the expiration time
- last_exp_time_file = ACE_OS::fopen ("last_expiration_time", "w+");
- last_exp_time = ftrsc.expiration_time;
- }
- else
- {
- // We're a subsequent server... read in the previous server's expiration time
- ACE_OS::fread (&last_exp_time,
- 1,
- sizeof (TimeBase::TimeT),
- last_exp_time_file);
- ACE_OS::sleep (1);
- }
-
- if (last_exp_time != ftrsc.expiration_time)
- {
- ACE_DEBUG ((LM_DEBUG, "Test Failed - REGRESSION !!! Different expiration times used on consecutive retries of the same op!!\n"));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Previous expiration: %Q\n"), last_exp_time));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Current expiration : %Q\n"), ftrsc.expiration_time));
- return;
- }
-
-
- // This is the offset from UTC to posix - a value less than than this will
- // indicate posix is (mistakenly) being used
- TimeBase::TimeT the_seventies = ACE_UINT64_LITERAL (0x1B21DD213814000);
-
- // @warning - this test is fragile. It will break in 2358 A.D. :-)
- if (last_exp_time <= the_seventies)
- {
- ACE_DEBUG ((LM_ERROR, "Test Failed - REGRESSION !!! Expiration time is in wrong format - it is before 1970 A.D. !!\n"));
- ACE_DEBUG ((LM_DEBUG, "Expiration time: %Q\n", last_exp_time));
- ACE_DEBUG ((LM_DEBUG, "1970 A.D. : %Q\n", the_seventies));
- return;
- }
- else if ( last_exp_time > (the_seventies * 2))
- {
- ACE_DEBUG ((LM_ERROR, "Test Failed - REGRESSION !!! Expiration time is garbage - it is after 2358 A.D. !!\n"));
- ACE_DEBUG ((LM_DEBUG, "Expiration time: %Q\n", last_exp_time));
- ACE_DEBUG ((LM_DEBUG, "2358 A.D. : %Q\n", (the_seventies * 2)));
- return;
- }
-
- TimeBase::TimeT now = get_now ();
-
- if (now > last_exp_time)
- {
- // We have passed the exp time... there should be no more retries received after this point...
- FILE* no_more_retries = ACE_OS::fopen ("no_more_retries", "r+");
- if (no_more_retries)
- {
- TimeBase::TimeT last_expired_attempt = 0;
- ACE_OS::fread (&last_expired_attempt, 1, sizeof (TimeBase::TimeT), no_more_retries);
- ACE_OS::fclose (no_more_retries);
-
- // There has already been an attempt after the last server passed the expiration time
- ACE_DEBUG ((LM_ERROR, "Test Failed - REGRESSION !!! Client ORB is still retrying after the expiration time!!\n"));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Expiration time : %Q\n"), last_exp_time));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Previous attempt : %Q\n"), last_expired_attempt));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Time now : %Q\n"), now));
- return;
- }
- else
- {
- // Tell the next server we've passed the point of no return
- no_more_retries = ACE_OS::fopen ("no_more_retries", "w+");
- ACE_OS::fwrite (&now, 1, sizeof (TimeBase::TimeT), no_more_retries);
- ACE_OS::fflush (no_more_retries);
- ACE_OS::fclose (no_more_retries);
- }
- }
-
- // Everthing is fine so far. Write out the expiration time for the next server to check
- ACE_OS::fwrite (&ftrsc.expiration_time, 1, sizeof (TimeBase::TimeT), last_exp_time_file);
- ACE_OS::fflush (last_exp_time_file);
- ACE_OS::fclose (last_exp_time_file);
-
- // Goodbye cruel world !!
- ACE_OS::abort ();
- }
-ACE_CATCHANY
- {
- ACE_DEBUG ((LM_ERROR, "Unexpected (non regression problem) error - test failed\n"));
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception in TAO249_ServerRequest_Interceptor2::receive_request \n");
- ACE_RE_THROW;
- }
-ACE_ENDTRY;
-ACE_CHECK;
-
-}
-
-TimeBase::TimeT
-TAO249_ServerRequest_Interceptor2::get_now (void)
-{
- // 1582...
- const TimeBase::TimeT timeOffset = ACE_UINT64_LITERAL (0x1B21DD213814000);
-
- // Now in posix
- ACE_Time_Value time_value = ACE_OS::gettimeofday ();
-
- TimeBase::TimeT sec_part = time_value.sec ();
- sec_part = sec_part * 10000000;
- TimeBase::TimeT usec_part = time_value.usec ();
- usec_part = usec_part * 10;
- return (sec_part + usec_part + timeOffset);
-}
-
-void
-TAO249_ServerRequest_Interceptor2::send_reply (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::send_exception (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.h b/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.h
deleted file mode 100644
index 74a92c7e0ed..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/ServerRequest_Interceptor2.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * $Id$
- */
-//=============================================================================
-
-#ifndef TAO249_SERVER_REQUEST_INTERCEPTOR2_H
-#define TAO249_SERVER_REQUEST_INTERCEPTOR2_H
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/LocalObject.h"
-#include "tao/PortableInterceptorC.h"
-#include "tao/ORB.h"
-#include "tao/PI/PI.h"
-#include "tao/PI_Server/PI_Server.h"
-#include "tao/TimeBaseC.h"
-
-/**
-* $Id$
-*/
-class TAO249_ServerRequest_Interceptor2
-: public virtual PortableInterceptor::ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
-/// Constructor.
-TAO249_ServerRequest_Interceptor2 (void);
-
-/// Destructor.
-~TAO249_ServerRequest_Interceptor2 (void);
-
-/**
- * @name Methods Required by the Server Request Interceptor
- * Interface
- *
- * These are methods that must be implemented since they are pure
- * virtual in the abstract base class. They are the canonical
- * methods required for all server request interceptors.
- */
-//@{
-/// Return the name of this ServerRequestinterceptor.
-virtual char * name (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void destroy (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void send_reply (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void send_exception (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void send_other (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-//@}
-
-protected:
- TimeBase::TimeT get_now (void);
-
-private:
-
-CORBA::ORB_var orb_;
-
-CORBA::Long client_id_;
-};
-
-#endif /* TAO249_SERVER_REQUEST_INTERCEPTOR2_H */
-
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/Test.idl b/TAO/orbsvcs/tests/Bug_2285_Regression/Test.idl
deleted file mode 100644
index 00cc73c174e..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/Test.idl
+++ /dev/null
@@ -1,43 +0,0 @@
-//
-// $Id$
-//
-
-/// Put the interfaces in a module, to avoid global namespace pollution
-module Test
-{
- exception MyException {};
- /// A very simple interface
- interface Hello
- {
- /// A method to shutdown the ORB
- /**
- * This method is used to simplify the test shutdown process
- */
- oneway void shutdown ();
-
- // Methods for first test
-
- // The client first calls this to generate a (user) exception
- // which is handled in the application code
- void throw_exception () raises (MyException);
-
- // Starts the nested sequence - client calls...
- boolean call_me_back (in Hello me);
-
- // ... then the server calls this back onto the client,
- // which prompts the client to call...
- boolean call_back ();
-
- // ... this ! The server interceptor will have been recording
- // if any retention ID has been reused in the sequence of invocations
- // @return true for all different, false otherwise.
- boolean check_request_id ();
-
- // Method for second test. Makes the servant perform
- // a number of checks and then either commit suicide (to prompt a
- // retry on the next member of the IOGR) or to return
- // successfully if it has detected a regresssion.
- // @return the number identifying this servant with teh group
- unsigned long drop_down_dead ();
- };
-};
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/client.cpp
deleted file mode 100644
index 60c37b8dff5..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/client.cpp
+++ /dev/null
@@ -1,137 +0,0 @@
-// $Id$
-
-#include "TestS.h"
-#include "ace/Get_Opt.h"
-#include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h"
-#include "Hello.h"
-
-ACE_RCSID(Hello, client, "$Id$")
-
-const char *ior = "file://test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- CORBA::Boolean result = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_var hello =
- Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (hello.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Test failed - Not regression - Unexpected Nil Test::Hello reference <%s>\n",
- ior),
- 1);
- }
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Test failed - Not regression - unexpected nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in (), hello.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(hello_impl);
-
- Test::Hello_var me =
- hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_TRY
- {
- hello->throw_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- }
- ACE_CATCH (Test::MyException, my_ex)
- {
- ACE_UNUSED_ARG (my_ex);
- ACE_DEBUG ((LM_DEBUG, "Client catches a MyException, as expected. No problem !\n"));
- }
- ACE_ENDTRY;
-
- result = ! hello->call_me_back (me.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- hello->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Test failed (Not regression) because unexpected exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- if (result)
- {
- ACE_DEBUG ((LM_ERROR, "Error: REGRESSION identified!!!\n"));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Test passed !!!\n"));
- }
- return result;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/client2.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/client2.cpp
deleted file mode 100644
index 682b0d8f86f..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/client2.cpp
+++ /dev/null
@@ -1,215 +0,0 @@
-// $Id$
-
-#include "TestC.h"
-#include "ace/Get_Opt.h"
-#include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h"
-#include "tao/IORManipulation/IORManip_Loader.h"
-#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
-
-ACE_RCSID(Hello, client, "$Id$")
-
-//const char *ior = "file://test.ior";
-TAO_IOP::TAO_IOR_Manipulation_var iorm = 0;
-CORBA::ULong number_of_servers = 0;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:n:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- break;
- case 'n':
- number_of_servers = ACE_OS::atoi (get_opts.opt_arg ());
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-CORBA::Object_ptr
-make_iogr (const char* domain_id, CORBA::ULongLong group_id, CORBA::ULong group_version, Test::Hello_ptr* refs ACE_ENV_ARG_DECL)
-{
- FT::TagFTGroupTaggedComponent ft_tag_component;
- // Create the list
- TAO_IOP::TAO_IOR_Manipulation::IORList iors (number_of_servers);
- iors.length(number_of_servers);
- for (CORBA::ULong i = 0; i < number_of_servers; ++i)
- {
- iors [i] = CORBA::Object::_duplicate (refs[i]);
- }
-
- CORBA::Object_var new_ref =
- iorm->merge_iors (iors ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Property values
-
- // Major and Minor revision numbers
- ft_tag_component.component_version.major = (CORBA::Octet) 1;
- ft_tag_component.component_version.minor = (CORBA::Octet) 0;
-
- // Domain id
- //const char *id = "iogr_testing";
- ft_tag_component.group_domain_id = domain_id;
-
- // Object group id
- ft_tag_component.object_group_id = group_id;
-
- // Version
- ft_tag_component.object_group_ref_version = group_version;
-
- // Construct the IOGR Property class
- TAO_FT_IOGR_Property iogr_prop (ft_tag_component);
-
- // Set the property
- CORBA::Boolean retval = iorm->set_property (&iogr_prop,
- new_ref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Set the primary
- // See we are setting the second ior as the primary
- if (retval != 0)
- {
- retval = iorm->set_primary (&iogr_prop,
- refs[0],
- new_ref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return new_ref._retn ();
-}
-
-int
-main (int argc, char *argv[])
-{
- CORBA::Boolean result = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- // Get a ref to the IORManipulation object
- CORBA::Object_var IORM =
- orb->resolve_initial_references (TAO_OBJID_IORMANIPULATION,
- 0
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Narrow
- iorm =
- TAO_IOP::TAO_IOR_Manipulation::_narrow (IORM.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_ptr *servers = new Test::Hello_ptr [number_of_servers];
-
- for (CORBA::ULong i = 0; i < number_of_servers; ++ i)
- {
- char buf[4]; // if you run more than 10000 servers then you need your head looking at
- const char *number = ACE_OS::itoa ((int) i, buf, 10);
- ACE_CString ior_file ("file://n");
- const char *ior = ((ior_file += number) += ".ior").c_str ();
-
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- servers[i] =
- Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (servers[i]))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Test failed - Not regression - Unexpected Nil Test::Hello reference <%s>\n",
- ior),
- 1);
- }
- }
-
- CORBA::Object_var iogr = make_iogr ("Domain_1", 1, 1, servers ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_var hello_iogr = Test::Hello::_narrow(iogr.in () ACE_ENV_ARG_PARAMETER);
-
- CORBA::ULong last_server = 0;
-
- ACE_TRY
- {
- last_server = hello_iogr->drop_down_dead (ACE_ENV_SINGLE_ARG_PARAMETER);
- // If the call 'succeeds' the server has identified a regression.
- result = 1;
- ACE_DEBUG ((LM_ERROR, "Error: REGRESSION identified by server %u. Test Failed !!\n", last_server));
- }
- ACE_CATCH (CORBA::COMM_FAILURE, my_ex)
- {
- ACE_UNUSED_ARG (my_ex);
- // We can't use the word exception for fear of upsetting the build log parser
- ACE_DEBUG ((LM_DEBUG, "Client caught one of those things that is normally used to indicate a problem ("
- "although it doesn't in this case) and which we cannot name because the autobuild "
- "script will think we have a problem if we do mention the word. No problem !\n"));
- }
- ACE_ENDTRY;
-
- for (CORBA::ULong j = last_server; j < number_of_servers; ++j)
- {
- ACE_TRY
- {
- servers[j]->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- // Well we tried...
- }
- ACE_ENDTRY;
-
- CORBA::release (servers [j]);
- }
-
- for (CORBA::ULong k = 0; k < last_server; ++k)
- {
- CORBA::release (servers [k]);
- }
-
- delete [] servers;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Test failed (Not regression) because unexpected exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- if (result)
- {
- ACE_DEBUG ((LM_ERROR, "Error: REGRESSION identified!!!\n"));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Test passed !!!\n"));
- }
- return result;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/run_test.pl b/TAO/orbsvcs/tests/Bug_2285_Regression/run_test.pl
deleted file mode 100755
index de69f709455..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/run_test.pl
+++ /dev/null
@@ -1,49 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile");
-}
-$CL = new PerlACE::Process ("client", " -k file://$iorfile");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/run_test2.pl b/TAO/orbsvcs/tests/Bug_2285_Regression/run_test2.pl
deleted file mode 100755
index e96b15a55b2..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/run_test2.pl
+++ /dev/null
@@ -1,70 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$number_of_servers = 5;
-
-@SV;
-
-unlink PerlACE::LocalFile ("last_expiration_time");
-unlink PerlACE::LocalFile ("no_more_retries");
-
-for ($counter = 0; $counter < $number_of_servers; $counter++)
-{
- unlink PerlACE::LocalFile ("n".$counter.".ior");
-}
-
-for($counter=0; $counter < $number_of_servers; $counter++)
-{
- if (PerlACE::is_vxworks_test()) {
- push (@SV, new PerlACE::ProcessVX ("server2", "-n $counter"));
- }
- else {
- push (@SV, new PerlACE::Process ("server2", "-n $counter"));
- }
-
- $SV[$counter]->Spawn ();
-}
-
-# Loops are cheap.
-for ($counter2=0; $counter2 < $number_of_servers; $counter2++)
-{
- if (PerlACE::waitforfile_timed (PerlACE::LocalFile ("n".$counter2.".ior"),
- $PerlACE::wait_interval_for_process_creation) == -1)
- {
- print STDERR "ERROR: cannot find file <n$counter2.ior>\n";
- for ($kill_count = 0; $kill_count < $number_of_servers; $kill_count++)
- {
- $SV[$kill_count]->Kill (); $SV[$kill_count]->TimedWait (1);
- }
- exit 1;
- }
-}
-
-$CL = new PerlACE::Process ("client2", " -n $number_of_servers");
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-for ($counter = 0; $counter < $number_of_servers; $counter++)
-{
- $SV[$counter]->WaitKill (10);
-
- unlink PerlACE::LocalFile ("n".$counter.".ior");
-}
-
-unlink PerlACE::LocalFile ("last_expiration_time");
-unlink PerlACE::LocalFile ("no_more_retries");
-
-exit $status;
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/server.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/server.cpp
deleted file mode 100644
index 8c27291400e..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/server.cpp
+++ /dev/null
@@ -1,241 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "tao/IORManipulation/IORManip_Loader.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
-#include "ServerORBInitializer.h"
-#include "ServerRequest_Interceptor.h"
-#include "tao/PI/PI.h"
-#include "tao/ORBInitializer_Registry.h"
-
-ACE_RCSID (Hello,
- server,
- "$Id$")
-
-const char *ior_output_file = "test.ior";
-TAO_IOP::TAO_IOR_Manipulation_var iorm = 0;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-CORBA::Object_ptr
-make_iogr (const char* domain_id, CORBA::ULongLong group_id, CORBA::ULong group_version, CORBA::Object_ptr ref ACE_ENV_ARG_DECL)
-{
- FT::TagFTGroupTaggedComponent ft_tag_component;
- // Create the list
- TAO_IOP::TAO_IOR_Manipulation::IORList iors (1);
- iors.length(1);
- iors [0] = CORBA::Object::_duplicate (ref);
-
- CORBA::Object_var new_ref =
- iorm->merge_iors (iors ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Property values
-
- // Major and Minor revision numbers
- ft_tag_component.component_version.major = (CORBA::Octet) 1;
- ft_tag_component.component_version.minor = (CORBA::Octet) 0;
-
- // Domain id
- //const char *id = "iogr_testing";
- ft_tag_component.group_domain_id = domain_id;
-
- // Object group id
- ft_tag_component.object_group_id = group_id;
-
- // Version
- ft_tag_component.object_group_ref_version = group_version;
-
- // Construct the IOGR Property class
- TAO_FT_IOGR_Property iogr_prop (ft_tag_component);
-
- // Set the property
- CORBA::Boolean retval = iorm->set_property (&iogr_prop,
- new_ref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Set the primary
- // See we are setting the second ior as the primary
- if (retval != 0)
- {
- retval = iorm->set_primary (&iogr_prop,
- new_ref.in (),
- new_ref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return new_ref._retn ();
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- Server_ORBInitializer *temp_initializer = 0;
- ACE_NEW_RETURN (temp_initializer,
- Server_ORBInitializer,
- -1); // No exceptions yet!
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::PolicyList policies (2);
- policies.length (2);
-
- policies[0] =
- root_poa->create_id_assignment_policy (PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK
-
- policies[1] =
- root_poa->create_lifespan_policy (PortableServer::PERSISTENT
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var my_poa =
- root_poa->create_POA ("my_poa",
- poa_manager.in (),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Creation of the new POA is over, so destroy the Policy_ptr's.
- for (CORBA::ULong i = 0; i < policies.length (); ++i)
- {
- CORBA::Policy_ptr policy = policies[i];
- policy->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in (), Test::Hello::_nil ()),
- 1);
-
- PortableServer::ObjectId_var server_id =
- PortableServer::string_to_ObjectId ("server_id");
-
- my_poa->activate_object_with_id (server_id.in (),
- hello_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var hello =
- my_poa->id_to_reference (server_id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Get a ref to the IORManipulation object
- CORBA::Object_var IORM =
- orb->resolve_initial_references (TAO_OBJID_IORMANIPULATION,
- 0
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Narrow
- iorm =
- TAO_IOP::TAO_IOR_Manipulation::_narrow (IORM.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var iogr = make_iogr ("Domain_1", 1, 1, orb->string_to_object (ior.in ()) ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var iorgr_string =
- orb->object_to_string (iogr.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", iorgr_string.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2285_Regression/server2.cpp b/TAO/orbsvcs/tests/Bug_2285_Regression/server2.cpp
deleted file mode 100644
index 43a23d567ec..00000000000
--- a/TAO/orbsvcs/tests/Bug_2285_Regression/server2.cpp
+++ /dev/null
@@ -1,175 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "ServerORBInitializer2.h"
-#include "ServerRequest_Interceptor2.h"
-#include "tao/PI/PI.h"
-#include "tao/ORBInitializer_Registry.h"
-
-ACE_RCSID (Hello,
- server,
- "$Id$")
-
-const char *ior_output_file = "";
-
-CORBA::ULong my_id_number = 0;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
- int c;
- ACE_CString ior_file ("n");
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
- case 'n':
- my_id_number = (CORBA::ULong) ACE_OS::atoi (get_opts.opt_arg ());
- ior_file += get_opts.opt_arg ();
- ior_file += ".ior";
- ior_output_file = CORBA::string_dup (ior_file.c_str ());
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "[-o <iorfile>]"
- "[-i <server_id>]"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- Server_ORBInitializer2 *temp_initializer = 0;
- ACE_NEW_RETURN (temp_initializer,
- Server_ORBInitializer2,
- -1); // No exceptions yet!
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::PolicyList policies (2);
- policies.length (2);
-
- policies[0] =
- root_poa->create_id_assignment_policy (PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK
-
- policies[1] =
- root_poa->create_lifespan_policy (PortableServer::PERSISTENT
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var my_poa =
- root_poa->create_POA ("my_poa",
- poa_manager.in (),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Creation of the new POA is over, so destroy the Policy_ptr's.
- for (CORBA::ULong i = 0; i < policies.length (); ++i)
- {
- CORBA::Policy_ptr policy = policies[i];
- policy->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in (), Test::Hello::_nil (), my_id_number),
- 1);
-
- PortableServer::ObjectId_var server_id =
- PortableServer::string_to_ObjectId ("server_id");
-
- my_poa->activate_object_with_id (server_id.in (),
- hello_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var hello =
- my_poa->id_to_reference (server_id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s\n",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc b/TAO/orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc
deleted file mode 100644
index 4138843a913..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/Bug_2287_Regression.mpc
+++ /dev/null
@@ -1,39 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*IDL): taoidldefaults {
- IDL_Files {
- Test.idl
- }
- custom_only = 1
-}
-
-project(*Client): taoserver, ftclientorb {
- after += *IDL
-
- exename = client
- Source_Files {
- client.cpp
- Hello.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
-
-project (*Server) : taoserver, ftclientorb, pi_server {
- after += *IDL
-
- exename = server
- Source_Files {
- server.cpp
- Hello.cpp
- ServerORBInitializer2.cpp
- ServerRequest_Interceptor2.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/Hello.cpp b/TAO/orbsvcs/tests/Bug_2287_Regression/Hello.cpp
deleted file mode 100644
index 995e0eeed0d..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/Hello.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// $Id$
-//
-#include "Hello.h"
-
-ACE_RCSID(Hello, Hello, "$Id$")
-
-Hello::Hello (CORBA::ORB_ptr orb, Test::Hello_ptr, CORBA::ULong)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
-
-void
-Hello::ping (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return;
-}
-
-void
-Hello::throw_location_forward (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/Hello.h b/TAO/orbsvcs/tests/Bug_2287_Regression/Hello.h
deleted file mode 100644
index c1d688daa82..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/Hello.h
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef HELLO_H
-#define HELLO_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# pragma warning(push)
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Hello interface
-class Hello
- : public virtual POA_Test::Hello
-{
-public:
- /// Constructor
- Hello (CORBA::ORB_ptr orb, Test::Hello_ptr server, CORBA::ULong server_id = 0);
-
- // = The skeleton methods
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void ping (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void throw_location_forward (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2287_Regression/Makefile.am
deleted file mode 100644
index f514bd216d9..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/Makefile.am
+++ /dev/null
@@ -1,159 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-noinst_PROGRAMS =
-
-## Makefile.Bug_2287_Regression_IDL.am
-
-BUILT_SOURCES = \
- TestC.cpp \
- TestC.h \
- TestC.inl \
- TestS.cpp \
- TestS.h \
- TestS.inl \
- TestS_T.cpp \
- TestS_T.h \
- TestS_T.inl
-
-CLEANFILES = \
- Test-stamp \
- TestC.cpp \
- TestC.h \
- TestC.inl \
- TestS.cpp \
- TestS.h \
- TestS.inl \
- TestS_T.cpp \
- TestS_T.h \
- TestS_T.inl
-
-TestC.cpp TestC.h TestC.inl TestS.cpp TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
-
-Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Test.idl
- @touch $@
-
-
-noinst_HEADERS = \
- Test.idl
-
-## Makefile.Bug_2287_Regression_Client.am
-
-if BUILD_ACE_UUID
-if BUILD_CORBA_MESSAGING
-if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += client
-
-client_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-client_SOURCES = \
- Hello.cpp \
- TestC.cpp \
- TestS.cpp \
- client.cpp \
- Hello.h
-
-client_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FT_ClientORB.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FTORB_Utils.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
-endif BUILD_INTERCEPTORS
-endif BUILD_CORBA_MESSAGING
-endif BUILD_ACE_UUID
-
-## Makefile.Bug_2287_Regression_Server.am
-
-if BUILD_ACE_UUID
-if BUILD_CORBA_MESSAGING
-if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += server
-
-server_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-server_SOURCES = \
- Hello.cpp \
- ServerORBInitializer2.cpp \
- ServerRequest_Interceptor2.cpp \
- TestC.cpp \
- TestS.cpp \
- server.cpp \
- Hello.h \
- ServerORBInitializer2.h \
- ServerRequest_Interceptor2.h
-
-server_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FT_ClientORB.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_FTORB_Utils.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
-endif BUILD_INTERCEPTORS
-endif BUILD_CORBA_MESSAGING
-endif BUILD_ACE_UUID
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/README b/TAO/orbsvcs/tests/Bug_2287_Regression/README
deleted file mode 100644
index 3c77b3edb08..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/README
+++ /dev/null
@@ -1,32 +0,0 @@
-// $Id$
-
-This test provides regression coverage for bugzilla #2287.
-
-See http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2287 for more.
-
-The server installs a server request interceptor and persistent servant and writes out an IOGR for itself.
-The client installs client side FT support and invokes the method "throw_location_forward" on the IOGR.
-The server request interceptor detects invocations of this method and in response either:
-a/ Throws a location forward back to the original IOGR if cannot determine (from the expiration_time member of the FT request service context) thatthe client must have despatched the request after the expiration time.
-b/ Allows the request to be completed if it can determine absolutely that the request was despatched after the expiration time. This indicates a regression to the client.
-
-A successful outcome is if the client stops following the location forwards once it detects that the expiration time has passed, and a TRANSIENT system exception is recived in the application code.
-
-__Regression Output__
-
-The expiration time has now passed !!
-Expiration time : 133496335605156250
-Time now : 133496335605312500
-Test Failed - REGRESSION !!! Client ORB is still retrying LOCATION_FORWARDs after the expiration time!!
-Expiration time : 133496335605156250
-Time now : 133496335605312500
-REGRESSION - Test has failed !!!
-(3128|3992) server - event loop finished
-Error: REGRESSION identified!!!
-ERROR: client returned 1
-
-__Successful Output__
-
-Client catches a TRANSIENT, as expected. No problem !
-(3528|3532) server - event loop finished
-Test passed !!!
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.cpp b/TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.cpp
deleted file mode 100644
index f7a7b408be7..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "ServerORBInitializer2.h"
-#include "ServerRequest_Interceptor2.h"
-#include "tao/ORB_Constants.h"
-#include "tao/Exception.h"
-
-
-void
-Server_ORBInitializer2::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-
-}
-
-void
-Server_ORBInitializer2::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->register_server_request_interceptors (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void
-Server_ORBInitializer2::register_server_request_interceptors (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- PortableInterceptor::ServerRequestInterceptor_ptr sri =
- PortableInterceptor::ServerRequestInterceptor::_nil ();
-
- ACE_NEW_THROW_EX (sri,
- TAO249_ServerRequest_Interceptor2,
- CORBA::NO_MEMORY ());
-
- PortableInterceptor::ServerRequestInterceptor_var
- server_interceptor = sri;
-
- info->add_server_request_interceptor (server_interceptor.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.h b/TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.h
deleted file mode 100644
index a98a94523be..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerORBInitializer2.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * $Id$
- */
-//=============================================================================
-#ifndef TAO249_SERVER_ORBINITIALIZER2_H
-#define TAO249_SERVER_ORBINITIALIZER2_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PortableInterceptorC.h"
-#include "tao/PI_Server/PI_Server_includeC.h"
-#include "tao/PI/PI.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-
-/// RTCORBA ORB initializer.
-class Server_ORBInitializer2 :
- public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
-
- /// Register the necessary interceptors.
- void register_server_request_interceptors (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO249_SERVER_ORBINITIALIZER2_H */
-
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp b/TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp
deleted file mode 100644
index 226898bcf40..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.cpp
+++ /dev/null
@@ -1,176 +0,0 @@
-// -*- C++ -*-
-
-#include "ServerRequest_Interceptor2.h"
-#include "orbsvcs/FT_CORBA_ORBC.h"
-#include "tao/IOP_IORC.h"
-#include "tao/ORB_Constants.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/CDR.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_unistd.h"
-#include "Hello.h"
-#include "ace/OS_NS_sys_time.h"
-#include "tao/PI/PIForwardRequestC.h"
-
-ACE_RCSID (FaultTolerance,
- TAO249_ServerRequest_Interceptor2,
- "$Id$")
-
-CORBA::Object_var
-TAO249_ServerRequest_Interceptor2::server_iogr_ = CORBA::Object::_nil ();
-
-TAO249_ServerRequest_Interceptor2::TAO249_ServerRequest_Interceptor2 (void)
-: orb_ (0),
- expired_ (0)
-{
-}
-
-TAO249_ServerRequest_Interceptor2::~TAO249_ServerRequest_Interceptor2 (void)
-{
-}
-
-char *
-TAO249_ServerRequest_Interceptor2::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup ("TAO_TAO249_ServerRequest_Interceptor2");
-}
-
-void
-TAO249_ServerRequest_Interceptor2::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
-
- if (ACE_OS::strcmp (op.in (), "throw_location_forward"))
- {
- // bail if not the op we are interested in -
- // avoid excess spurious error clutter when client calls ::shutdown
- return;
- }
-
-
- IOP::ServiceContext_var sc =
- ri->get_request_service_context (IOP::FT_REQUEST
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- TAO_InputCDR cdr (reinterpret_cast <const char*>
- (sc->context_data.get_buffer ()
- ),
- sc->context_data.length ());
-
- CORBA::Boolean byte_order;
-
- if ((cdr >> ACE_InputCDR::to_boolean (byte_order)) == 0)
- {
- ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28,
- CORBA::COMPLETED_NO));
- }
- ACE_CHECK;
-
- cdr.reset_byte_order (static_cast <int>(byte_order));
-
- FT::FTRequestServiceContext ftrsc;
-
- if ((cdr >> ftrsc) == 0)
- ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 28,
- CORBA::COMPLETED_NO));
- ACE_CHECK;
-
- TimeBase::TimeT now = get_now ();
-
- if (now > ftrsc.expiration_time)
- {
- // We have passed the exp time... there should be no more retries received after this point...
- if (expired_)
- {
- // The client has retried after the expiration time. This is a regression
- ACE_DEBUG ((LM_ERROR, "Test Failed - REGRESSION !!! Client ORB is still retrying LOCATION_FORWARDs after the expiration time!!\n"));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Expiration time : %Q\n"), ftrsc.expiration_time));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Time now : %Q\n"), now));
-
- // Let the request 'succeed' rather than throwing a forward exception.
- return;
- }
- else
- {
- // A request has been recioved after the expiration time.
- // This could legitimately happen - it is only definitely a problem if
- // the client keeps on retrying after now. We set a flag so we can check for this.
- expired_ = 1;
- ACE_DEBUG ((LM_DEBUG, "The expiration time has now passed !!\n"));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Expiration time : %Q\n"), ftrsc.expiration_time));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT("Time now : %Q\n"), now));
- }
- }
-
- // Let's forward the client back to us again. I would like to be able to make this a PERM
- // but there's no such animal in the PortableInterceptor module. Plus as we (currently) transform
- // and marshal *all* forward requests as vanilla LOCATION_FORWARD it doesn't really matter.
- ACE_THROW (PortableInterceptor::ForwardRequest (server_iogr_.in ()));
-}
-
-TimeBase::TimeT
-TAO249_ServerRequest_Interceptor2::get_now (void)
-{
- // 1582...
- const TimeBase::TimeT timeOffset = ACE_UINT64_LITERAL (0x1B21DD213814000);
-
- // Now in posix
- ACE_Time_Value time_value = ACE_OS::gettimeofday ();
-
- TimeBase::TimeT sec_part = time_value.sec ();
- sec_part = sec_part * 10000000;
- TimeBase::TimeT usec_part = time_value.usec ();
- usec_part = usec_part * 10;
- return (sec_part + usec_part + timeOffset);
-}
-
-void
-TAO249_ServerRequest_Interceptor2::send_reply (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::send_exception (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-TAO249_ServerRequest_Interceptor2::send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.h b/TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.h
deleted file mode 100644
index b7767f6d798..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/ServerRequest_Interceptor2.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * $Id$
- */
-//=============================================================================
-
-#ifndef TAO249_SERVER_REQUEST_INTERCEPTOR2_H
-#define TAO249_SERVER_REQUEST_INTERCEPTOR2_H
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/LocalObject.h"
-#include "tao/PortableInterceptorC.h"
-#include "tao/ORB.h"
-#include "tao/PI/PI.h"
-#include "tao/PI_Server/PI_Server.h"
-#include "tao/TimeBaseC.h"
-
-/**
-* $Id$
-*/
-class TAO249_ServerRequest_Interceptor2
-: public virtual PortableInterceptor::ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
-/// Constructor.
-TAO249_ServerRequest_Interceptor2 (void);
-
-/// Destructor.
-~TAO249_ServerRequest_Interceptor2 (void);
-
-/**
- * @name Methods Required by the Server Request Interceptor
- * Interface
- *
- * These are methods that must be implemented since they are pure
- * virtual in the abstract base class. They are the canonical
- * methods required for all server request interceptors.
- */
-//@{
-/// Return the name of this ServerRequestinterceptor.
-virtual char * name (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void destroy (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
-ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void send_reply (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-virtual void send_exception (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
-virtual void send_other (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-//@}
-
-static CORBA::Object_var server_iogr_;
-
-protected:
- TimeBase::TimeT get_now (void);
-
-private:
-
-CORBA::ORB_var orb_;
-
-CORBA::Boolean expired_;
-};
-
-#endif /* TAO249_SERVER_REQUEST_INTERCEPTOR2_H */
-
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/Test.idl b/TAO/orbsvcs/tests/Bug_2287_Regression/Test.idl
deleted file mode 100644
index 9e1fa22e0be..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/Test.idl
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// $Id$
-//
-
-/// Put the interfaces in a module, to avoid global namespace pollution
-module Test
-{
- interface Hello
- {
- /// A method to shutdown the ORB
- /**
- * This method is used to simplify the test shutdown process
- */
- oneway void shutdown ();
-
- // Lets make sure things are working
- void ping ();
-
- // The client calls this method which will generate
- // a locate forward to the same IOGR on every invocation
- // until well after the request expiration time when it will then succeed
- void throw_location_forward ();
- };
-};
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_2287_Regression/client.cpp
deleted file mode 100644
index efc5c8c1da7..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/client.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-// $Id$
-
-#include "TestS.h"
-#include "ace/Get_Opt.h"
-#include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h"
-#include "Hello.h"
-
-ACE_RCSID(Hello, client, "$Id$")
-
-const char *ior = "file://test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- CORBA::Boolean result = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_var hello =
- Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (hello.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Test failed - Not regression - Unexpected Nil Test::Hello reference <%s>\n",
- ior),
- 1);
- }
-
- // Check this isn't generating transients for any other reason
- hello->ping (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
-
- ACE_TRY
- {
- hello->throw_location_forward (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_ERROR, "REGRESSION - Test has failed !!!\n"));
- result = 1;
- }
- ACE_CATCH (CORBA::TRANSIENT, my_ex)
- {
- ACE_UNUSED_ARG (my_ex);
- ACE_DEBUG ((LM_DEBUG, "Client catches a TRANSIENT, as expected. No problem !\n"));
- }
- ACE_ENDTRY;
-
- hello->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Test failed (Not regression) because unexpected exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- if (result)
- {
- ACE_DEBUG ((LM_ERROR, "Error: REGRESSION identified!!!\n"));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Test passed !!!\n"));
- }
- return result;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/run_test.pl b/TAO/orbsvcs/tests/Bug_2287_Regression/run_test.pl
deleted file mode 100755
index de69f709455..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/run_test.pl
+++ /dev/null
@@ -1,49 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile");
-}
-$CL = new PerlACE::Process ("client", " -k file://$iorfile");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/orbsvcs/tests/Bug_2287_Regression/server.cpp b/TAO/orbsvcs/tests/Bug_2287_Regression/server.cpp
deleted file mode 100644
index eca1cfc94de..00000000000
--- a/TAO/orbsvcs/tests/Bug_2287_Regression/server.cpp
+++ /dev/null
@@ -1,243 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "tao/IORManipulation/IORManip_Loader.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
-#include "ServerORBInitializer2.h"
-#include "ServerRequest_Interceptor2.h"
-#include "tao/PI/PI.h"
-#include "tao/ORBInitializer_Registry.h"
-
-ACE_RCSID (Hello,
- server,
- "$Id$")
-
-const char *ior_output_file = "test.ior";
-TAO_IOP::TAO_IOR_Manipulation_var iorm = 0;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-CORBA::Object_ptr
-make_iogr (const char* domain_id, CORBA::ULongLong group_id, CORBA::ULong group_version, CORBA::Object_ptr ref ACE_ENV_ARG_DECL)
-{
- FT::TagFTGroupTaggedComponent ft_tag_component;
- // Create the list
- TAO_IOP::TAO_IOR_Manipulation::IORList iors (1);
- iors.length(1);
- iors [0] = CORBA::Object::_duplicate (ref);
-
- CORBA::Object_var new_ref =
- iorm->merge_iors (iors ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Property values
-
- // Major and Minor revision numbers
- ft_tag_component.component_version.major = (CORBA::Octet) 1;
- ft_tag_component.component_version.minor = (CORBA::Octet) 0;
-
- // Domain id
- //const char *id = "iogr_testing";
- ft_tag_component.group_domain_id = domain_id;
-
- // Object group id
- ft_tag_component.object_group_id = group_id;
-
- // Version
- ft_tag_component.object_group_ref_version = group_version;
-
- // Construct the IOGR Property class
- TAO_FT_IOGR_Property iogr_prop (ft_tag_component);
-
- // Set the property
- CORBA::Boolean retval = iorm->set_property (&iogr_prop,
- new_ref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- // Set the primary
- // See we are setting the second ior as the primary
- if (retval != 0)
- {
- retval = iorm->set_primary (&iogr_prop,
- new_ref.in (),
- new_ref.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return new_ref._retn ();
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- Server_ORBInitializer2 *temp_initializer = 0;
- ACE_NEW_RETURN (temp_initializer,
- Server_ORBInitializer2,
- -1); // No exceptions yet!
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::PolicyList policies (2);
- policies.length (2);
-
- policies[0] =
- root_poa->create_id_assignment_policy (PortableServer::USER_ID
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK
-
- policies[1] =
- root_poa->create_lifespan_policy (PortableServer::PERSISTENT
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var my_poa =
- root_poa->create_POA ("my_poa",
- poa_manager.in (),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Creation of the new POA is over, so destroy the Policy_ptr's.
- for (CORBA::ULong i = 0; i < policies.length (); ++i)
- {
- CORBA::Policy_ptr policy = policies[i];
- policy->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in (), Test::Hello::_nil ()),
- 1);
-
- PortableServer::ObjectId_var server_id =
- PortableServer::string_to_ObjectId ("server_id");
-
- my_poa->activate_object_with_id (server_id.in (),
- hello_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var hello =
- my_poa->id_to_reference (server_id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Get a ref to the IORManipulation object
- CORBA::Object_var IORM =
- orb->resolve_initial_references (TAO_OBJID_IORMANIPULATION,
- 0
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Narrow
- iorm =
- TAO_IOP::TAO_IOR_Manipulation::_narrow (IORM.in() ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var iogr = make_iogr ("Domain_1", 1, 1, orb->string_to_object (ior.in ()) ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var iorgr_string =
- orb->object_to_string (iogr.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", iorgr_string.in ());
- ACE_OS::fclose (output_file);
-
- TAO249_ServerRequest_Interceptor2::server_iogr_ = CORBA::Object::_duplicate (iogr.in ());
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc b/TAO/orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc
deleted file mode 100644
index 2b4960fc5cd..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/Bug_2316_Regression.mpc
+++ /dev/null
@@ -1,36 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*IDL): taoidldefaults {
- IDL_Files {
- Test.idl
- }
- custom_only = 1
-}
-
-project(*Server): orbsvcsexe, portablegroup, portableserver {
- exename = server
- after += *IDL
-
- Source_Files {
- Test_impl.cpp
- server.cpp
- TestS.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
-
-project(*Client): orbsvcsexe, portablegroup {
- exename = client
- after += *IDL
-
- Source_Files {
- client.cpp
- TestC.cpp
- }
- IDL_Files {
- }
-}
-
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/Makefile.am b/TAO/orbsvcs/tests/Bug_2316_Regression/Makefile.am
deleted file mode 100644
index c606aae58eb..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/Makefile.am
+++ /dev/null
@@ -1,136 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-noinst_PROGRAMS =
-
-## Makefile.Bug_2316_Regression_IDL.am
-
-BUILT_SOURCES = \
- TestC.cpp \
- TestC.h \
- TestC.inl \
- TestS.cpp \
- TestS.h \
- TestS.inl \
- TestS_T.cpp \
- TestS_T.h \
- TestS_T.inl
-
-CLEANFILES = \
- Test-stamp \
- TestC.cpp \
- TestC.h \
- TestC.inl \
- TestS.cpp \
- TestS.h \
- TestS.inl \
- TestS_T.cpp \
- TestS_T.h \
- TestS_T.inl
-
-TestC.cpp TestC.h TestC.inl TestS.cpp TestS.h TestS.inl TestS_T.cpp TestS_T.h TestS_T.inl: Test-stamp
-
-Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Sa -St $(srcdir)/Test.idl
- @touch $@
-
-
-noinst_HEADERS = \
- Test.idl
-
-## Makefile.Bug_2316_Regression_Client.am
-
-if BUILD_CORBA_MESSAGING
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += client
-
-client_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-client_SOURCES = \
- TestC.cpp \
- client.cpp \
- Test_impl.h
-
-client_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
-
-## Makefile.Bug_2316_Regression_Server.am
-
-if BUILD_CORBA_MESSAGING
-if !BUILD_MINIMUM_CORBA
-
-noinst_PROGRAMS += server
-
-server_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-server_SOURCES = \
- TestC.cpp \
- TestS.cpp \
- Test_impl.cpp \
- server.cpp \
- Test_impl.h
-
-server_LDADD = \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_PortableGroup.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORManip.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/README b/TAO/orbsvcs/tests/Bug_2316_Regression/README
deleted file mode 100644
index 89f1c090651..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/README
+++ /dev/null
@@ -1,26 +0,0 @@
-$Id$
-
-This client and server in this test both load the UIPMC protocol plug in
-(see svc.conf).
-
-The client creates a MIOP object ref and tests that it can be marshalled
-and demarshalled without problems by passing it over the wire to the server.
-
-_Expected successful result_:
-
-E:\worcvs\tao14\prism\tests\tao277_regression>run_test.pl
-Test passed !!
-
-_Expected regression result_:
-
-E:\worcvs\tao14\prism\tests\tao277_regression>run_test.pl
-TAO (1808|644) ERROR: Could not create all profiles while extracting object
-TAO (1808|644) ERROR: reference from the CDR stream.
-Test Failed - Regression. Sending UIPMC object ref to server failed with:
-(1924|1884) EXCEPTION, Exception :
-
-system exception, ID 'IDL:omg.org/CORBA/MARSHAL:1.0'
-TAO exception, minor code = 0 (unknown location; unspecified errno), completed =
- NO
-
-ERROR: Test failed - client returned 1
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/Test.idl b/TAO/orbsvcs/tests/Bug_2316_Regression/Test.idl
deleted file mode 100644
index 36820e2b6d1..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/Test.idl
+++ /dev/null
@@ -1,12 +0,0 @@
-// $Id$
-
-#ifndef _TEST_IDL_
-#define _TEST_IDL_
-
-interface server
-{
- void method (in Object obj);
- oneway void shutdown ();
-};
-
-#endif // _TEST_IDL_
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.cpp b/TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.cpp
deleted file mode 100644
index d469544e251..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "Test_impl.h"
-
-void Server_impl::shutdown ()
- throw (CORBA::SystemException)
-{
- this->orb_->shutdown (0);
-}
-
-Server_impl::Server_impl (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-void Server_impl::method (CORBA::Object_ptr)
- throw (CORBA::SystemException)
-{
-}
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.h b/TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.h
deleted file mode 100644
index 41c11b90668..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/Test_impl.h
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#ifndef TEST_IMPL_HPP
-#define TEST_IMPL_HPP
-
-#include "TestS.h"
-
-class Server_impl : public virtual POA_server
-{
-public:
- Server_impl (CORBA::ORB_ptr orb);
- virtual void method (CORBA::Object_ptr object) throw (CORBA::SystemException);
- virtual void shutdown () throw (CORBA::SystemException);
-
-private:
- CORBA::ORB_var orb_;
-};
-
-#endif /* TEST_IMPL_HPP */
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_2316_Regression/client.cpp
deleted file mode 100644
index 183bc338fd4..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/client.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-// $Id$
-
-#include "Test_impl.h"
-#include "ace/OS_NS_stdio.h"
-
-const char *ior_callback = "callback.ior";
-const char *ior_server = "file://server.ior";
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ());
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager ();
- poa_manager->activate ();
-
- const char* uipmc_ior = "corbaloc:miop:1.0@1.0-domain-1/127.0.0.1:23232";
- CORBA::Object_var obj =orb->string_to_object (uipmc_ior);
-
- CORBA::Object_var tmp = orb->string_to_object (ior_server);
- server_var server = server::_narrow (tmp.in ());
-
- try
- {
- server->method (obj.in());
-
- ACE_DEBUG ((LM_DEBUG, "Test passed !!\n"));
- }
- catch (const CORBA::SystemException& marshal)
- {
- ACE_DEBUG ((LM_ERROR, "Test Failed - Regression. "
- "Sending UIPMC object ref to server failed with:\n"));
- ACE_PRINT_EXCEPTION (marshal, "Exception : \n");
- result = 1;
- }
-
- server->shutdown ();
- }
- catch(const CORBA::SystemException& e)
- {
- ACE_PRINT_EXCEPTION (e, "Unexpected exception - not a regression.\n");
- result = 1;
- }
- return result;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/run_test.pl b/TAO/orbsvcs/tests/Bug_2316_Regression/run_test.pl
deleted file mode 100755
index ba9d7040c5a..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/run_test.pl
+++ /dev/null
@@ -1,42 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-$status = 0;
-
-$SV = new PerlACE::Process ("server");
-$CL = new PerlACE::Process ("client");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
- print STDERR "ERROR: Test failed. Not regression. Cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: Test failed - client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: During clean up - killing server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/server.cpp b/TAO/orbsvcs/tests/Bug_2316_Regression/server.cpp
deleted file mode 100644
index 76443812a25..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/server.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// $Id$
-
-#include "Test_impl.h"
-#include "ace/OS_NS_stdio.h"
-
-int
-main (int argc, char *argv[])
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ());
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager ();
- poa_manager->activate ();
-
- Server_impl* server_obj = new Server_impl(orb.in());
- server_var server = server_obj->_this();
- CORBA::String_var ior = orb->object_to_string (server.in ());
-
- FILE *output_file = ACE_OS::fopen ("server.ior", "w");
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- orb->run ();
- orb->destroy ();
- }
- catch(...)
- {
- return 1;
- }
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2316_Regression/svc.conf b/TAO/orbsvcs/tests/Bug_2316_Regression/svc.conf
deleted file mode 100644
index 65508eb6d59..00000000000
--- a/TAO/orbsvcs/tests/Bug_2316_Regression/svc.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-# $Id$
-dynamic UIPMC_Factory Service_Object * TAO_PortableGroup:_make_TAO_UIPMC_Protocol_Factory() ""
-static Resource_Factory "-ORBProtocolFactory IIOP_Factory -ORBProtocolFactory UIPMC_Factory"
-dynamic PortableGroup_Loader Service_Object * TAO_PortableGroup:_make_TAO_PortableGroup_Loader() ""
diff --git a/TAO/orbsvcs/tests/Bug_2377_Regression/Bug_2377_Regression.mpc b/TAO/orbsvcs/tests/Bug_2377_Regression/Bug_2377_Regression.mpc
deleted file mode 100644
index 6616beb3c5d..00000000000
--- a/TAO/orbsvcs/tests/Bug_2377_Regression/Bug_2377_Regression.mpc
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Test) : orbsvcsexe, taoidldefaults, portablegroup, portableserver {
- exename = uipmc_test
- Source_Files {
- Hello.cpp
- }
-}
diff --git a/TAO/orbsvcs/tests/Bug_2377_Regression/Hello.cpp b/TAO/orbsvcs/tests/Bug_2377_Regression/Hello.cpp
deleted file mode 100644
index 03cb59b88e1..00000000000
--- a/TAO/orbsvcs/tests/Bug_2377_Regression/Hello.cpp
+++ /dev/null
@@ -1,340 +0,0 @@
-//
-// $Id$
-//
-
-#include "HelloS.h"
-
-#include "ace/SString.h"
-#include "ace/Log_Msg.h"
-#include "ace/Task.h"
-#include "ace/Mutex.h"
-#include "ace/streams.h"
-#include "ace/OS_NS_time.h"
-#include "ace/OS_NS_unistd.h"
-#include "tao/debug.h"
-#include "tao/corba.h"
-#include "orbsvcs/PortableGroup/MIOP.h"
-#include "orbsvcs/PortableGroup/GOA.h"
-
-#define CLIENT_SLEEP_TIME 100 /* in milliseconds */
-#define NB_HELLO_CLIENT_THREAD 8
-#define NB_HELLO_CALLS 100
-
-void
-sleep(int millisec)
-{
- ACE_Time_Value tv(millisec / 1000, (millisec % 1000) * 1000);
-
- ACE_OS::sleep ((const ACE_Time_Value &) tv);
-}
-
-class MessageLog
-{
- private:
- bool *sent;
- bool *recv;
- int extent;
-
- public:
- MessageLog(int num)
- {
- extent = num + 1;
- sent = new bool[extent];
- recv = new bool[extent];
-
- int i;
-
- for (i = 0; i < extent; i++)
- {
- sent[i] = false;
- recv[i] = false;
- }
- }
-
- void
- register_message_send(int message_num)
- {
- sent[message_num] = true;
- }
-
- void
- register_message_recv(int message_num)
- {
- recv[message_num] = true;
- }
-
- bool
- lost_messages()
- {
- bool lm = false;
- int i;
-
- for (i = 0; i < extent; i++)
- {
- if (sent[i] && !recv[i])
- {
- // message lost
- lm = true;
- break;
- }
- }
- return lm;
- }
-
- void
- report_lost_messages(const ACE_TCHAR *int_format_string)
- {
- int i;
-
- for (i = 0; i < extent; i++)
- {
- if (sent[i] && !recv[i])
- {
- ACE_DEBUG ((LM_DEBUG,
- int_format_string,
- i));
- }
- }
- }
-};
-
-namespace Test
-{
- class Hello_impl
- : public virtual POA_Test::Hello
- {
- private:
- MessageLog *logger;
- public:
- Hello_impl(MessageLog *log)
- : logger(log)
- {
- }
-
- void say_hello(CORBA::Short count) throw(CORBA::SystemException)
- {
- logger->register_message_recv(count);
- if (TAO_debug_level == 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("R")));
- }
- }
- };
-}
-
-class OrbRunThread
-: public ACE_Task_Base
-{
- public:
- OrbRunThread(CORBA::ORB_ptr orb)
- : m_orb(CORBA::ORB::_duplicate(orb))
- {
- }
- virtual int svc()
- {
- m_orb->run();
- return 1;
- }
- private:
- CORBA::ORB_var m_orb;
-};
-
-class HelloClientThread
-: public ACE_Task_Base
-{
- public:
- HelloClientThread(Test::Hello_ptr hello, MessageLog *log)
- : m_hello(Test::Hello::_duplicate(hello)),
- logger(log),
- m_count(0)
- {
- }
- virtual int svc()
- {
- while (m_count < NB_HELLO_CALLS)
- {
- ACE_TRY_NEW_ENV
- {
- int count;
- {
- // get your message number here
- ACE_Guard < ACE_Mutex > guard(m_mutex);
- count = m_count++;
- if (TAO_debug_level == 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("s")));
- }
- }
- {
- // send your message number here
-#ifdef SEQUENCED_SAY_HELLO_REQUIRED
- ACE_Guard < ACE_Mutex > guard(m_mutex);
-#endif /* SEQUENCED_SAY_HELLO_REQUIRED */
- logger->register_message_send(count);
- m_hello->say_hello(count);
- }
- sleep(CLIENT_SLEEP_TIME);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("Exception thrown during say_hello()\n"));
- }
- ACE_ENDTRY;
- }
- return 1;
- }
- private:
- Test::Hello_var m_hello;
- MessageLog *logger;
- int m_count;
- ACE_Mutex m_mutex;
-};
-
-int
-main(int argc, char *argv[])
-{
- MessageLog *logger = 0;
- CORBA::ORB_var orb = CORBA::ORB::_nil();
- int exit_code = 0;
-
- OrbRunThread *orbThread = 0;
- Test::Hello_impl * hello_i = 0;
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("<<< %s Started - \"s\" = message sent \"R\" = message received >>>\n"), argv[0]));
-
- ACE_TRY_NEW_ENV
- {
- /*** in svc.conf
-dynamic UIPMC_Factory Service_Object * TAO_PortableGroup:_make_TAO_UIPMC_Protocol_Factory() ""
-static Resource_Factory "-ORBProtocolFactory IIOP_Factory -ORBProtocolFactory UIPMC_Factory"
-dynamic PortableGroup_Loader Service_Object * TAO_PortableGroup:_make_TAO_PortableGroup_Loader() ""
-static Server_Strategy_Factory "-ORBConcurrency reactive -ORBPOALock thread -ORBAllowReactivationOfSystemids 1"
-static Client_Strategy_Factory "-ORBProfileLock thread -ORBClientConnectionHandler MT"
- ***/
-
- // Initialize the ORB
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" - ORB_init\n")));
- }
- orb = CORBA::ORB_init(argc, argv);
-
- // Get the root POA
- CORBA::Object_var obj_root =
- orb->resolve_initial_references("RootPOA");
- PortableGroup::GOA_var rootPOA =
- PortableGroup::GOA::_narrow(obj_root.in());
-
- // Activate the POA manager
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" - POA manager activation\n")));
- }
- PortableServer::POAManager_var poaManager = rootPOA->the_POAManager();
-
- poaManager->activate();
-
- // create Message Log
- logger = new MessageLog(NB_HELLO_CALLS);
-
- // create Hello servant
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" - create Hello servant\n")));
- }
- hello_i = new Test::Hello_impl(logger);
-
- // activate Hello Object
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" - activate Hello object\n")));
- }
- PortableServer::ObjectId_var obj_id =
- rootPOA->activate_object(hello_i);
-
- // create MIOP reference
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" - create MIOP reference\n")));
- }
- ACE_CString multicast_addr("corbaloc:miop:1.0@1.0-cdmwftdomain-1/225.1.1.8:5555");
- CORBA::Object_var miop_ref =
- orb->string_to_object(multicast_addr.c_str());
-
- // associate MIOP reference with Hello object
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT (" - associate MIOP reference with Hello object\n")));
- }
- rootPOA->associate_reference_with_id(miop_ref.in(), obj_id.in ());
-
- // create Hello reference
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" - create Hello reference\n")));
- }
- Test::Hello_var hello = Test::Hello::_unchecked_narrow(miop_ref.in());
-
- // start ORB run() in a thread
- orbThread = new OrbRunThread(orb.in());
- orbThread->activate(THR_NEW_LWP, 1);
-
- // create client threads
- HelloClientThread *helloThread = new HelloClientThread(hello.in(),
- logger);
-
- // start client threads
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("--------------------------------------------------\n")));
- helloThread->activate(THR_NEW_LWP, NB_HELLO_CLIENT_THREAD);
- helloThread->wait();
- delete helloThread;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("Exception thrown during main()\n"));
- exit_code = 1;
- }
- ACE_ENDTRY;
-
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("\n--------------------------------------------------\n")));
- if (logger->lost_messages())
- {
- logger->report_lost_messages(ACE_TEXT ("LOST ==> say_hello() %d\n"));
- exit_code = 1;
- }
- else if (exit_code == 0)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("<<< %s - no lost messages >>>\n"), argv[0]));
- }
-
- delete logger;
-
- if (orbThread != 0)
- {
- orb->shutdown(true);
- orbThread->wait();
- delete orbThread;
- delete hello_i;
- }
- if (!CORBA::is_nil(orb.in()))
- {
- ACE_TRY_NEW_ENV
- {
- orb->destroy();
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("Exception thrown during orb check\n"));
- exit_code = 1;
- }
- ACE_ENDTRY;
- }
- exit(exit_code);
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Bug_2377_Regression/Hello.idl b/TAO/orbsvcs/tests/Bug_2377_Regression/Hello.idl
deleted file mode 100644
index f6b6d7eb0b7..00000000000
--- a/TAO/orbsvcs/tests/Bug_2377_Regression/Hello.idl
+++ /dev/null
@@ -1,9 +0,0 @@
-// $Id$
-module Test {
-
- interface Hello {
- oneway void say_hello(in short count);
- };
-
-
-};
diff --git a/TAO/orbsvcs/tests/Bug_2377_Regression/run_test.pl b/TAO/orbsvcs/tests/Bug_2377_Regression/run_test.pl
deleted file mode 100755
index 322eeff3e7e..00000000000
--- a/TAO/orbsvcs/tests/Bug_2377_Regression/run_test.pl
+++ /dev/null
@@ -1,32 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$dum_core = PerlACE::LocalFile ("core");
-$status = 0;
-unlink $dum_core;
-
-$HELLO = new PerlACE::Process ("uipmc_test", "");
-
-$prog = $HELLO->SpawnWaitKill (20);
-
-if ($prog != 0) {
- print STDERR "ERROR: uipmc_test returned $prog\n";
- $status = 1;
-}
-
-if (-e $dum_core) {
- print STDERR "ERROR: uipmc_test core dumped\n";
- $status = 1;
-}
-
-unlink $dum_core;
-
-exit $status;
-
diff --git a/TAO/orbsvcs/tests/Bug_2377_Regression/svc.conf b/TAO/orbsvcs/tests/Bug_2377_Regression/svc.conf
deleted file mode 100644
index 1510ade0e8f..00000000000
--- a/TAO/orbsvcs/tests/Bug_2377_Regression/svc.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-dynamic UIPMC_Factory Service_Object * TAO_PortableGroup:_make_TAO_UIPMC_Protocol_Factory() ""
-static Resource_Factory "-ORBProtocolFactory IIOP_Factory -ORBProtocolFactory UIPMC_Factory"
-dynamic PortableGroup_Loader Service_Object * TAO_PortableGroup:_make_TAO_PortableGroup_Loader() ""
-static Server_Strategy_Factory "-ORBConcurrency reactive -ORBPOALock thread -ORBAllowReactivationOfSystemids 1"
-static Client_Strategy_Factory "-ORBProfileLock thread -ORBClientConnectionHandler MT"
diff --git a/TAO/orbsvcs/tests/Concurrency/CC_client.cpp b/TAO/orbsvcs/tests/Concurrency/CC_client.cpp
index 93760c93800..0e85c5d7de7 100644
--- a/TAO/orbsvcs/tests/Concurrency/CC_client.cpp
+++ b/TAO/orbsvcs/tests/Concurrency/CC_client.cpp
@@ -90,7 +90,7 @@ CC_Client::read_ior (char *filename)
int
CC_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dc:sf:k:xbhe:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dc:sf:k:xbhe:");
int c;
int result;
@@ -180,7 +180,7 @@ CC_Client::run (void)
// Open the command file for parsing if the filename!=stdin
if(ACE_OS::strcmp(this->script_file_, "stdin")!=0)
{
- f = ACE_OS::fopen(this->script_file_, "r");
+ f = ACE_OS::fopen(this->script_file_, ACE_TEXT("r"));
if(f==0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s\n",
@@ -453,14 +453,16 @@ CC_Client::init (int argc, char **argv)
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CC_Client cc_client;
ACE_DEBUG ((LM_DEBUG,
"\n \t CosConcurrencyControl: client \n\n"));
- if (cc_client.init (argc, argv) == -1)
+ if (cc_client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_DEBUG ((LM_DEBUG,
"Did not initialize correctly\n"));
diff --git a/TAO/orbsvcs/tests/Concurrency/CC_client.h b/TAO/orbsvcs/tests/Concurrency/CC_client.h
index a81df69daa0..44d9d0d1eca 100644
--- a/TAO/orbsvcs/tests/Concurrency/CC_client.h
+++ b/TAO/orbsvcs/tests/Concurrency/CC_client.h
@@ -19,6 +19,7 @@
// ============================================================================
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/orbsvcs/tests/Concurrency/Makefile.am b/TAO/orbsvcs/tests/Concurrency/Makefile.am
index 834c31ef87a..76eaee8c0fc 100644
--- a/TAO/orbsvcs/tests/Concurrency/Makefile.am
+++ b/TAO/orbsvcs/tests/Concurrency/Makefile.am
@@ -43,9 +43,9 @@ CC_client_SOURCES = \
CC_client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosConcurrency.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Disconnect.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Disconnect.cpp
index 5e8ce733528..d8485d8ba45 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/Disconnect.cpp
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/Disconnect.cpp
@@ -6,6 +6,7 @@
#include "orbsvcs/Time_Utilities.h"
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CEC_Tests,
Disconnect,
@@ -16,8 +17,10 @@ static void run_test (PortableServer::POA_ptr poa,
ACE_ENV_ARG_DECL);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -25,7 +28,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp
index 0c94a7bdb15..de7a4095f71 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp
@@ -3,6 +3,7 @@
#include "MT_Disconnect.h"
#include "Counting_Consumer.h"
#include "Counting_Supplier.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
@@ -16,8 +17,10 @@ static void run_test (PortableServer::POA_ptr poa,
ACE_ENV_ARG_DECL);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -25,7 +28,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Pull_Push_Event.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Pull_Push_Event.cpp
index abaa9184f9b..c57760a147a 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/Pull_Push_Event.cpp
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/Pull_Push_Event.cpp
@@ -5,14 +5,17 @@
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CEC_Tests_Basic,
Pull_Push_Event,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -20,7 +23,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Push_Event.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Push_Event.cpp
index 3ff9f720233..627999a0e97 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/Push_Event.cpp
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/Push_Event.cpp
@@ -5,14 +5,17 @@
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CEC_Tests_Basic,
Push_Event,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -20,7 +23,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp
index 0c5aea70a2f..5c6b2ffc431 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp
@@ -4,6 +4,7 @@
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_unistd.h"
@@ -12,10 +13,12 @@ ACE_RCSID (CEC_Tests,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
RND_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -55,7 +58,7 @@ RND_Driver::run (int argc, char *argv[])
// ****************************************************************
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp
index 85ec4180e9f..0fce694b649 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/Shutdown.cpp
@@ -4,6 +4,7 @@
#include "Counting_Supplier.h"
#include "orbsvcs/CosEvent/CEC_EventChannel.h"
#include "orbsvcs/CosEvent/CEC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID( CEC_Tests_Basic,
Shutdown,
@@ -14,8 +15,10 @@ static void run_test (PortableServer::POA_ptr poa,
ACE_ENV_ARG_DECL);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_CEC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -23,7 +26,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
@@ -115,7 +118,7 @@ run_test (PortableServer::POA_ptr poa,
ACE_NEW (consumer, CEC_Counting_Consumer*[n]);
ACE_NEW (supplier, CEC_Counting_Supplier*[n]);
- int i = 0;
+ int i;
for (i = 0; i != n; ++i)
{
char consumer_name[64];
diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/basiceventtestexe.mpb b/TAO/orbsvcs/tests/CosEvent/Basic/basiceventtestexe.mpb
index 87f5e92c38e..2065860ebb8 100644
--- a/TAO/orbsvcs/tests/CosEvent/Basic/basiceventtestexe.mpb
+++ b/TAO/orbsvcs/tests/CosEvent/Basic/basiceventtestexe.mpb
@@ -4,10 +4,5 @@
project : orbsvcsexe, messaging, taoserver, event_serv, naming, svc_utils, iortable {
after += CosEvent_Test_Lib
libs += CECTests
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
}
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp
index 7203f01d09c..b16a79ac00e 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Consumer.cpp
@@ -13,6 +13,7 @@
#include "tao/CDR.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
@@ -23,10 +24,12 @@ ACE_RCSID (EC_Custom_Marshal,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -90,7 +93,7 @@ Driver::run (int argc, char* argv[])
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -310,9 +313,9 @@ Driver::disconnect_consumers (ACE_ENV_SINGLE_ARG_DECL)
}
int
-Driver::parse_args (int argc, char *argv [])
+Driver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "dc:n:h:p:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "dc:n:h:p:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp
index f8dd801aa63..f1f0225126d 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/ECM_Supplier.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/ACE.h"
@@ -81,7 +82,7 @@ ECMS_Driver::run (int argc, char* argv[])
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -329,9 +330,9 @@ ECMS_Driver::disconnect_suppliers (ACE_ENV_SINGLE_ARG_DECL)
}
int
-ECMS_Driver::parse_args (int argc, char *argv [])
+ECMS_Driver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "ds:n:t:h:p:b:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "ds:n:t:h:p:b:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -522,8 +523,10 @@ Test_Supplier::consumer_proxy (void)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ECMS_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.mpc b/TAO/orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.mpc
index a73bce90105..d0e3410d7f6 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.mpc
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/EC_Custom_Marshal.mpc
@@ -11,7 +11,6 @@ project(*IDL): rteventexe, rtsched, naming, iortable, messaging {
}
project(ECM Supplier): rteventexe, rtsched, naming, iortable, messaging {
- avoids += ace_for_tao
exename = ECM_Supplier
Source_Files {
ECM_Data.cpp
diff --git a/TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile.am b/TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile.am
index e2f52c3f108..3768529cc23 100644
--- a/TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile.am
+++ b/TAO/orbsvcs/tests/EC_Custom_Marshal/Makefile.am
@@ -52,9 +52,6 @@ data-stamp: $(srcdir)/data.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- data.idl
-
endif BUILD_CORBA_MESSAGING
## Makefile.ECM_Consumer.am
@@ -99,7 +96,6 @@ endif BUILD_CORBA_MESSAGING
## Makefile.ECM_Supplier.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += ECM_Supplier
@@ -135,7 +131,6 @@ ECM_Supplier_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp b/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp
index 2ec6c650a2c..a67e826a5e6 100644
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp
@@ -4,6 +4,7 @@
#include "Consumer.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/Event_Service_Constants.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(EC_MT_Mcast,
Consumer,
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc b/TAO/orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc
index 73788961680..d32146f4edd 100644
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/EC_MT_Mcast.mpc
@@ -1,6 +1,6 @@
// -*- MPC -*-
// $Id$
-project(EC_MT_Mcast): rteventexe, rtevent_serv, messaging, strategies {
+project(EC_MT_Mcast): rteventexe, rtevent_serv, messaging {
exename = MCast
}
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp b/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp
index 5441a632e0e..c5eb14c556d 100644
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/MCast.cpp
@@ -11,9 +11,9 @@
#include "orbsvcs/Event/ECG_UDP_Sender.h"
#include "orbsvcs/Event/ECG_UDP_Receiver.h"
#include "orbsvcs/Event/ECG_UDP_Out_Endpoint.h"
-#include "tao/Strategies/advanced_resource.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
ACE_RCSID (EC_MT_Mcast,
@@ -68,8 +68,10 @@ run_orb_within_thread (void *)
int parse_args (int argc, char *argv[]);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// Register the default factory in the Service Configurator.
// If your platform supports static constructors then you can
// simply using the ACE_STATIC_SVC_DEFINE() macro, unfortunately TAO
@@ -83,13 +85,13 @@ main (int argc, char* argv[])
// **************** HERE IS THE ORB SETUP
// Create the ORB, pass the argv list for parsing.
- orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the arguments, you usually want to do this after
// invoking ORB_init() because ORB_init() will remove all the
// -ORB options from the command line.
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_ERROR ((LM_ERROR,
"Usage: Service [-m udp_mcast_addr]\n"));
@@ -399,7 +401,7 @@ main (int argc, char* argv[])
int parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "m:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/Makefile.am b/TAO/orbsvcs/tests/EC_MT_Mcast/Makefile.am
index d286e08194e..0a53aee46bb 100644
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/Makefile.am
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.EC_MT_Mcast.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS = MCast
@@ -39,7 +38,6 @@ MCast_SOURCES = \
Supplier.h
MCast_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Serv.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent_Skel.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_RTEvent.la \
@@ -53,7 +51,6 @@ MCast_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp b/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp
index 0060bd58ed5..102c098053f 100644
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp
@@ -4,6 +4,7 @@
#include "Supplier.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/Event_Service_Constants.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(EC_MT_Mcast,
Supplier,
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl b/TAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl
index 0ccaf9b3f72..904ca3d2fc8 100755
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl
@@ -22,22 +22,10 @@ $T1 = new PerlACE::Process ("MCast",
$T2 = new PerlACE::Process ("MCast",
"-m $mcast_address -ORBSvcConf $svc_conf");
-$sp1 = $T1->Spawn ();
+$T1->Spawn ();
+$T2->Spawn ();
-if ($sp1 != 0) {
- print STDERR "ERROR: could not spawn MCast, returned $sp1\n";
- exit 1;
-}
-
-@sp2 = $T2->Spawn ();
-
-if ($sp2 != 0) {
- print STDERR "ERROR: could not spawn MCast, returned $sp2\n";
- $T1->Kill ();
- exit 1;
-}
-
-$test1 = $T1->WaitKill (300);
+$test1 = $T1->WaitKill (600);
if ($test1 != 0) {
print STDERR "ERROR: test 1 returned $test1\n";
diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/svc.conf b/TAO/orbsvcs/tests/EC_MT_Mcast/svc.conf
index c6fce32e1bc..f4f08f6b40b 100644
--- a/TAO/orbsvcs/tests/EC_MT_Mcast/svc.conf
+++ b/TAO/orbsvcs/tests/EC_MT_Mcast/svc.conf
@@ -2,4 +2,4 @@
static EC_Factory "-ECObserver basic -ECProxyPushConsumerCollection mt:copy_on_write:list -ECProxyPushSupplierCollection mt:copy_on_write:list -ECDispatching reactive -ECScheduling null -ECFiltering prefix -ECSupplierFiltering per-supplier"
static Client_Strategy_Factory "-ORBProfileLock thread -ORBClientConnectionHandler MT"
static Server_Strategy_Factory "-ORBConcurrency reactive -ORBPOALock thread"
-static Advanced_Resource_Factory "-ORBReactorType tp -ORBInputCDRAllocator thread -ORBConnectionCacheLock thread"
+dynamic Advanced_Resource_Factory Service_Object * TAO_Strategies:_make_TAO_Advanced_Resource_Factory () "-ORBReactorType tp -ORBInputCDRAllocator thread -ORBConnectionCacheLock thread"
diff --git a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
index 1fcb246b5ea..496e9a257da 100644
--- a/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
+++ b/TAO/orbsvcs/tests/EC_Mcast/EC_Mcast.cpp
@@ -12,6 +12,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/Read_Buffer.h"
@@ -121,7 +122,7 @@ ECM_Driver::run (int argc, char* argv[])
if (this->pid_filename_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_filename_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_filename_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -339,9 +340,9 @@ ECM_Driver::dump_results (void)
// ****************************************************************
int
-ECM_Driver::parse_args (int argc, char *argv [])
+ECM_Driver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "l:p:c:n:t:f:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "l:p:c:n:t:f:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -414,7 +415,7 @@ ECM_Driver::parse_config_file (void)
{
FILE* cfg = 0;
if (this->config_filename_ != 0)
- cfg = ACE_OS::fopen (this->config_filename_, "r");
+ cfg = ACE_OS::fopen (this->config_filename_, ACE_TEXT("r"));
else
cfg = stdin;
@@ -1150,10 +1151,12 @@ ECM_Local_Federation::subscribed_bit (int i) const
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ECM_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
diff --git a/TAO/orbsvcs/tests/EC_Mcast/Makefile.am b/TAO/orbsvcs/tests/EC_Mcast/Makefile.am
index bc1a880fa6e..c32227f6770 100644
--- a/TAO/orbsvcs/tests/EC_Mcast/Makefile.am
+++ b/TAO/orbsvcs/tests/EC_Mcast/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.EC_Mcast.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS = EC_Mcast
@@ -48,7 +47,6 @@ EC_Mcast_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/EC_Mcast/run_test.pl b/TAO/orbsvcs/tests/EC_Mcast/run_test.pl
index 7bfd35e6fcf..21219bb625c 100755
--- a/TAO/orbsvcs/tests/EC_Mcast/run_test.pl
+++ b/TAO/orbsvcs/tests/EC_Mcast/run_test.pl
@@ -21,20 +21,8 @@ $T2 = new PerlACE::Process ("EC_Mcast",
"-c $sample_cfg -ORBSvcConf $svc_conf "
. "-n 100 -t 50000 -f Set02");
-$sp1 = $T1->Spawn ();
-
-if ($sp1 != 0) {
- print STDERR "ERROR: could not spawn EC_MCast, returned $sp1\n";
- exit 1;
-}
-
-$sp2 = $T2->Spawn ();
-
-if ($sp2 != 0) {
- print STDERR "ERROR: could not spawn EC_MCast, returned $sp2\n";
- $T1->Kill ();
- exit 1;
-}
+$T1->Spawn ();
+$T2->Spawn ();
$test1 = $T1->WaitKill (60);
diff --git a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp
index 2d064471253..ff62ad6dd1b 100644
--- a/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp
+++ b/TAO/orbsvcs/tests/EC_Multiple/EC_Multiple.cpp
@@ -18,6 +18,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
@@ -220,7 +221,7 @@ Test_ECG::run (int argc, char* argv[])
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -1096,9 +1097,9 @@ Test_ECG::local_source (RtecEventComm::EventSourceID id) const
}
int
-Test_ECG::parse_args (int argc, char *argv [])
+Test_ECG::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "l:r:s:i:xh:w:p:d:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "l:r:s:i:xh:w:p:d:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -1595,8 +1596,10 @@ Test_Consumer::disconnect_push_consumer (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Test_ECG *test;
// Dynamically allocate the Test_ECG instance so that we don't have
@@ -1605,7 +1608,7 @@ main (int argc, char *argv [])
Test_ECG,
-1);
- const int status = test->run (argc, argv);
+ const int status = test->run (convert.get_argc(), convert.get_ASCII_argv());
delete test;
return status;
diff --git a/TAO/orbsvcs/tests/EC_Multiple/Makefile.am b/TAO/orbsvcs/tests/EC_Multiple/Makefile.am
index 62389971b9b..ad74286d635 100644
--- a/TAO/orbsvcs/tests/EC_Multiple/Makefile.am
+++ b/TAO/orbsvcs/tests/EC_Multiple/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.EC_Multiple.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS = EC_Multiple
@@ -54,7 +53,6 @@ EC_Multiple_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp
index ade2d62e17a..9989afbbf97 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer.cpp
@@ -10,6 +10,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp
index 609bf639245..50de18a26e4 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Consumer_Driver.cpp
@@ -11,6 +11,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
@@ -21,10 +22,12 @@ ACE_RCSID (EC_Throughput,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ECT_Consumer_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -95,7 +98,7 @@ ECT_Consumer_Driver::run (int argc, char* argv[])
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -295,9 +298,9 @@ ECT_Consumer_Driver::disconnect_consumers (ACE_ENV_SINGLE_ARG_DECL)
}
int
-ECT_Consumer_Driver::parse_args (int argc, char *argv [])
+ECT_Consumer_Driver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "xdc:s:h:p:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "xdc:s:h:p:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Driver.h b/TAO/orbsvcs/tests/EC_Throughput/ECT_Driver.h
index 1debc666c37..4b72bb9906b 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Driver.h
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Driver.h
@@ -12,17 +12,13 @@
#ifndef ECT_DRIVER_H
#define ECT_DRIVER_H
-#include "tao/orbconf.h"
#include "ace/Stats.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class Environment;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
class ECT_Driver
{
//
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp
index 0d75c42b29b..e4a90ac8900 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier.cpp
@@ -10,6 +10,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/High_Res_Timer.h"
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp
index d2350ca9a04..65e8abf658c 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Supplier_Driver.cpp
@@ -11,6 +11,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
@@ -21,10 +22,12 @@ ACE_RCSID (EC_Throughput,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ECT_Supplier_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -107,7 +110,7 @@ ECT_Supplier_Driver::run (int argc, char* argv[])
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -301,9 +304,9 @@ ECT_Supplier_Driver::dump_results (void)
}
int
-ECT_Supplier_Driver::parse_args (int argc, char *argv [])
+ECT_Supplier_Driver::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "ds:u:n:t:b:h:p:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "ds:u:n:t:b:h:p:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
index 8aeb5fbbc40..f0552072ff8 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
+++ b/TAO/orbsvcs/tests/EC_Throughput/ECT_Throughput.cpp
@@ -15,6 +15,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "ace/Sched_Params.h"
#include "ace/High_Res_Timer.h"
@@ -26,12 +27,14 @@ ACE_RCSID (EC_Throughput,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ECT_Throughput driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -136,7 +139,7 @@ ECT_Throughput::run (int argc, char* argv[])
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -475,9 +478,9 @@ ECT_Throughput::dump_results (void)
}
int
-ECT_Throughput::parse_args (int argc, char *argv [])
+ECT_Throughput::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "dc:s:u:n:t:b:h:l:p:w:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "dc:s:u:n:t:b:h:l:p:w:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.mpc b/TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.mpc
index ebbb7c450a8..8eff053fc67 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.mpc
+++ b/TAO/orbsvcs/tests/EC_Throughput/EC_Throughput.mpc
@@ -2,7 +2,6 @@
// $Id$
project(ECT Supplier): rteventexe, rtevent, rtsched, naming, iortable, messaging {
- avoids += ace_for_tao
exename = ECT_Supplier
Source_Files {
diff --git a/TAO/orbsvcs/tests/EC_Throughput/Makefile.am b/TAO/orbsvcs/tests/EC_Throughput/Makefile.am
index 0273c29ef61..6b0948a4864 100644
--- a/TAO/orbsvcs/tests/EC_Throughput/Makefile.am
+++ b/TAO/orbsvcs/tests/EC_Throughput/Makefile.am
@@ -58,7 +58,6 @@ endif BUILD_CORBA_MESSAGING
## Makefile.ECT_Supplier.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += ECT_Supplier
@@ -94,13 +93,11 @@ ECT_Supplier_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.ECT_Throughput.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += ECT_Throughput
@@ -139,7 +136,6 @@ ECT_Throughput_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp b/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp
index 6e4b0d31665..3ddb3d7c466 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Atomic_Reconnect.cpp
@@ -4,6 +4,7 @@
#include "Counting_Supplier.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/Time_Utilities.h"
#include "orbsvcs/Event_Utilities.h"
@@ -18,8 +19,10 @@ const int event_type = 20;
const int event_source = 10;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -27,7 +30,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/BCast.cpp b/TAO/orbsvcs/tests/Event/Basic/BCast.cpp
index 93e068b6d84..794eed8a11b 100644
--- a/TAO/orbsvcs/tests/Event/Basic/BCast.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/BCast.cpp
@@ -6,6 +6,7 @@
#include "orbsvcs/Event/ECG_Mcast_Gateway.h"
#include "tao/ORB_Core.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/INET_Addr.h"
ACE_RCSID (EC_Tests_Basic,
@@ -13,10 +14,12 @@ ACE_RCSID (EC_Tests_Basic,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC_BCast driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -28,12 +31,12 @@ EC_BCast::EC_BCast (void)
}
int
-EC_BCast::parse_args (int& argc, char* argv[])
+EC_BCast::parse_args (int& argc, char **argv)
{
if (this->EC_Driver::parse_args (argc, argv) != 0)
return -1;
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
@@ -85,7 +88,7 @@ EC_BCast::execute_test (ACE_ENV_SINGLE_ARG_DECL)
ACE_CHECK;
// Obtain UDP address in the string format for Gateway initialization.
- char address_server_arg [256];
+ ACE_TCHAR address_server_arg [256];
ACE_INET_Addr udp_addr;
if (udp_addr.set (this->bcast_port_, this->bcast_address_) == -1
|| udp_addr.addr_to_string (address_server_arg, 256) == -1)
@@ -103,7 +106,7 @@ EC_BCast::execute_test (ACE_ENV_SINGLE_ARG_DECL)
TAO_ECG_Mcast_Gateway gateway;
if (gateway.init (sub,
- address_server_arg,
+ ACE_TEXT_TO_CHAR_IN(address_server_arg),
lAttributes)
== -1)
return;
diff --git a/TAO/orbsvcs/tests/Event/Basic/BCast.h b/TAO/orbsvcs/tests/Event/Basic/BCast.h
index 3d1b701984a..8cbcfa4c368 100644
--- a/TAO/orbsvcs/tests/Event/Basic/BCast.h
+++ b/TAO/orbsvcs/tests/Event/Basic/BCast.h
@@ -16,9 +16,7 @@
#include "Driver.h"
#include "orbsvcs/RtecUDPAdminS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_INET_Addr;
-ACE_END_VERSIONED_NAMESPACE_DECL
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/orbsvcs/tests/Event/Basic/Bitmask.cpp b/TAO/orbsvcs/tests/Event/Basic/Bitmask.cpp
index 83ee58c7eb8..4c299497b98 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Bitmask.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Bitmask.cpp
@@ -7,14 +7,17 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Bitmask,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -22,7 +25,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Complex.cpp b/TAO/orbsvcs/tests/Event/Basic/Complex.cpp
index 5a021eb4e08..3cb84193bb9 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Complex.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Complex.cpp
@@ -6,14 +6,17 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Complex,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -21,7 +24,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Control.cpp b/TAO/orbsvcs/tests/Event/Basic/Control.cpp
index d5e07b61bb9..ce99d63f092 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Control.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Control.cpp
@@ -9,6 +9,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Control,
@@ -18,8 +19,10 @@ const int event_type = 20;
const int event_source = 10;
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -27,7 +30,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Disconnect.cpp b/TAO/orbsvcs/tests/Event/Basic/Disconnect.cpp
index f0a3aafbcae..8f7708cefec 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Disconnect.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Disconnect.cpp
@@ -7,6 +7,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Disconnect,
@@ -17,8 +18,10 @@ static void run_test (PortableServer::POA_ptr poa,
ACE_ENV_ARG_DECL);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -26,7 +29,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Gateway.cpp b/TAO/orbsvcs/tests/Event/Basic/Gateway.cpp
index 39c750d1a4d..324bda69d55 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Gateway.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Gateway.cpp
@@ -7,14 +7,17 @@
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
#include "orbsvcs/Event/EC_Gateway_IIOP.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Gateway,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -22,7 +25,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/MT_Disconnect.cpp b/TAO/orbsvcs/tests/Event/Basic/MT_Disconnect.cpp
index 9f91b760a0a..79c8420c310 100644
--- a/TAO/orbsvcs/tests/Event/Basic/MT_Disconnect.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/MT_Disconnect.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
MT_Disconnect,
@@ -18,8 +19,10 @@ static void run_test (PortableServer::POA_ptr poa,
ACE_ENV_ARG_DECL);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -27,7 +30,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Makefile.am b/TAO/orbsvcs/tests/Event/Basic/Makefile.am
index a9cd5c01b13..0bfc80aa48a 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/Basic/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.Event_Basic_Atomic_Reconnect.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Atomic_Reconnect
@@ -52,13 +51,11 @@ Atomic_Reconnect_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_BCast.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += BCast
@@ -92,13 +89,11 @@ BCast_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Bitmask.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Bitmask
@@ -140,13 +135,11 @@ Bitmask_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Complex.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Complex
@@ -188,13 +181,11 @@ Complex_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Control.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Control
@@ -228,13 +219,11 @@ Control_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Disconnect.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Disconnect
@@ -276,13 +265,11 @@ Disconnect_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Gateway.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Gateway
@@ -324,13 +311,11 @@ Gateway_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_MT_Disconnect.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += MT_Disconnect
@@ -364,13 +349,11 @@ MT_Disconnect_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Negation.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Negation
@@ -412,13 +395,11 @@ Negation_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Observer.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Observer
@@ -452,13 +433,11 @@ Observer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Random.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Random
@@ -492,13 +471,11 @@ Random_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Reconnect.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Reconnect
@@ -532,13 +509,11 @@ Reconnect_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Shutdown.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Shutdown
@@ -572,13 +547,11 @@ Shutdown_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Timeout.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Timeout
@@ -620,13 +593,11 @@ Timeout_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Basic_Wildcard.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Wildcard
@@ -668,7 +639,6 @@ Wildcard_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Basic/Negation.cpp b/TAO/orbsvcs/tests/Event/Basic/Negation.cpp
index 37ab5c1fb30..8d4124d1ea7 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Negation.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Negation.cpp
@@ -7,14 +7,17 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Negation,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -22,7 +25,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Observer.cpp b/TAO/orbsvcs/tests/Event/Basic/Observer.cpp
index d58d828573f..ee0756b5de7 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Observer.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Observer.cpp
@@ -6,6 +6,7 @@
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
ACE_RCSID (EC_Tests_Basic,
@@ -13,11 +14,13 @@ ACE_RCSID (EC_Tests_Basic,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
EC_Master master;
- return master.run (argc, argv);
+ return master.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -192,9 +195,9 @@ EC_Master::initialize_orb_and_poa (int &argc, char* argv[]
}
int
-EC_Master::parse_args (int &argc, char *argv [])
+EC_Master::parse_args (int &argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Event/Basic/Observer.h b/TAO/orbsvcs/tests/Event/Basic/Observer.h
index bb788c01258..738c8f8d257 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Observer.h
+++ b/TAO/orbsvcs/tests/Event/Basic/Observer.h
@@ -49,7 +49,7 @@ public:
EC_Observer* channel (int i) const;
private:
- int parse_args (int &argc, char *argv []);
+ int parse_args (int &argc, char *argv[]);
private:
/// The seed
diff --git a/TAO/orbsvcs/tests/Event/Basic/Random.cpp b/TAO/orbsvcs/tests/Event/Basic/Random.cpp
index b9397f997ed..471ea0ab073 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Random.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Random.cpp
@@ -6,6 +6,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Time_Utilities.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_unistd.h"
@@ -14,10 +15,12 @@ ACE_RCSID (EC_Tests,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
RND_Driver driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -62,7 +65,7 @@ RND_Driver::run (int argc, char *argv[])
// ****************************************************************
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Event/Basic/Reconnect.cpp b/TAO/orbsvcs/tests/Event/Basic/Reconnect.cpp
index 1fd8c294029..a00e851f14e 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Reconnect.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Reconnect.cpp
@@ -5,6 +5,7 @@
#include "Supplier.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
ACE_RCSID (EC_Tests_Basic,
@@ -12,10 +13,12 @@ ACE_RCSID (EC_Tests_Basic,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC_Reconnect driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -33,7 +36,7 @@ EC_Reconnect::parse_args (int& argc, char* argv[])
if (this->EC_Driver::parse_args (argc, argv) != 0)
return -1;
- ACE_Get_Opt get_opt (argc, argv, "scd:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "scd:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/orbsvcs/tests/Event/Basic/Schedule.cpp b/TAO/orbsvcs/tests/Event/Basic/Schedule.cpp
index b06b6e50355..0eca9c96a9d 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Schedule.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Schedule.cpp
@@ -14,7 +14,7 @@
ACE_RCSID(EC_Tests_Basic, Schedule, "$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
EC_Schedule driver;
return driver.run (argc, argv);
@@ -28,7 +28,7 @@ EC_Schedule::EC_Schedule (void)
}
int
-EC_Schedule::parse_args (int& argc, char* argv[])
+EC_Schedule::parse_args (int& argc, ACE_TCHAR* argv[])
{
if (this->EC_Driver::parse_args (argc, argv) != 0)
return -1;
diff --git a/TAO/orbsvcs/tests/Event/Basic/Schedule.h b/TAO/orbsvcs/tests/Event/Basic/Schedule.h
index c139b699227..7fc14197459 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Schedule.h
+++ b/TAO/orbsvcs/tests/Event/Basic/Schedule.h
@@ -47,7 +47,7 @@ public:
// = The EC_Driver methods
/// add some command line args to change the scheduling service to
/// use.
- virtual int parse_args (int& argc, char* argv[]);
+ virtual int parse_args (int& argc, ACE_TCHAR* argv[]);
virtual void print_args (void) const;
virtual void print_usage (void);
diff --git a/TAO/orbsvcs/tests/Event/Basic/Shutdown.cpp b/TAO/orbsvcs/tests/Event/Basic/Shutdown.cpp
index ea2c18a1743..3ae199c24c0 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Shutdown.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Shutdown.cpp
@@ -3,14 +3,17 @@
#include "Shutdown.h"
#include "Consumer.h"
#include "Supplier.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(EC_Tests_Basic, Shutdown, "$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC_Shutdown driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/tests/Event/Basic/Timeout.cpp b/TAO/orbsvcs/tests/Event/Basic/Timeout.cpp
index f00ec8abab4..6a2f80bde09 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Timeout.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Timeout.cpp
@@ -7,6 +7,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Timeout,
@@ -15,8 +16,10 @@ ACE_RCSID (EC_Tests,
// ****************************************************************
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -24,7 +27,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/Wildcard.cpp b/TAO/orbsvcs/tests/Event/Basic/Wildcard.cpp
index af77cc9fcbd..05ad26f5f44 100644
--- a/TAO/orbsvcs/tests/Event/Basic/Wildcard.cpp
+++ b/TAO/orbsvcs/tests/Event/Basic/Wildcard.cpp
@@ -6,14 +6,17 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests,
Wildcard,
"$Id$")
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
ACE_DECLARE_NEW_CORBA_ENV;
@@ -21,7 +24,7 @@ main (int argc, char* argv[])
{
// ORB initialization boiler plate...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Event/Basic/rteventtestexe.mpb b/TAO/orbsvcs/tests/Event/Basic/rteventtestexe.mpb
index 63ef09376f3..b1e00841286 100644
--- a/TAO/orbsvcs/tests/Event/Basic/rteventtestexe.mpb
+++ b/TAO/orbsvcs/tests/Event/Basic/rteventtestexe.mpb
@@ -4,10 +4,5 @@
project : messaging, rteventexe, rtevent_serv, naming, iortable {
after += Event_Test_Lib
libs += ECTests
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
}
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h b/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h
index 20031f40dc1..4ec7bdbb1a4 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h
+++ b/TAO/orbsvcs/tests/Event/Mcast/Common/EC_Wrapper.h
@@ -12,9 +12,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_EC_Event_Channel;
-TAO_END_VERSIONED_NAMESPACE_DECL
/**
* @class EC_Wrapper
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp b/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp
index 667ac9e8efb..178d8417b90 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Common/Gateway_EC.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/Event/ECG_Mcast_Gateway.h"
#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Dynamic_Service.h"
#include "ace/OS_NS_stdio.h"
@@ -26,9 +27,9 @@ Gateway_EC::check_for_nil (CORBA::Object_ptr obj, const char *message)
}
int
-Gateway_EC::parse_args (int argc, char *argv [])
+Gateway_EC::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "i:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -63,7 +64,7 @@ Gateway_EC::write_ior_file (CORBA::ORB_ptr orb,
str = orb->object_to_string (ec ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- FILE *output_file= ACE_OS::fopen (this->ec_ior_file_, "w");
+ FILE *output_file= ACE_OS::fopen (this->ec_ior_file_, ACE_TEXT("w"));
if (output_file == 0)
{
ACE_ERROR ((LM_ERROR,
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Common/Makefile.am b/TAO/orbsvcs/tests/Event/Mcast/Common/Makefile.am
index 35d799b67d5..371db182d37 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Common/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/Mcast/Common/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.ECMcastTests_lib.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_LTLIBRARIES = libECMcastTests.la
@@ -39,7 +38,6 @@ noinst_HEADERS = \
EC_Wrapper.h \
Gateway_EC.h
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Complex/Complex.mpc b/TAO/orbsvcs/tests/Event/Mcast/Complex/Complex.mpc
index ee053554cb1..92a78dbc85e 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Complex/Complex.mpc
+++ b/TAO/orbsvcs/tests/Event/Mcast/Complex/Complex.mpc
@@ -4,13 +4,7 @@
project(*supplier): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = supplier
Source_Files {
@@ -21,13 +15,7 @@ project(*supplier): messaging, rteventexe, rtevent_serv, naming {
project(*consumer): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = consumer
Source_Files {
@@ -38,16 +26,11 @@ project(*consumer): messaging, rteventexe, rtevent_serv, naming {
project(*gateway-ec): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = gateway-ec
Source_Files {
gateway-ec.cpp
}
}
+
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Complex/Makefile.am b/TAO/orbsvcs/tests/Event/Mcast/Complex/Makefile.am
index aff712f5270..4056db11b5f 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Complex/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/Mcast/Complex/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.Complex_Consumer.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += consumer
@@ -51,13 +50,11 @@ consumer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Complex_Gateway_Ec.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += gateway-ec
@@ -90,13 +87,11 @@ gateway_ec_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Complex_Supplier.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += supplier
@@ -129,7 +124,6 @@ supplier_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp b/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp
index 6d81936beb4..9fb285b1fbc 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Complex/consumer.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/RtecEventCommS.h"
+#include "ace/Argv_Type_Converter.h"
class EC_Consumer:
public POA_RtecEventComm::PushConsumer
@@ -137,16 +138,18 @@ parse_args (int /* argc */, char ** /* argv */)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB and POA, POA Manager, parse args.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "", ACE_TRY_ENV);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "", ACE_TRY_ENV);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
CORBA::Object_var obj =
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Complex/gateway-ec.cpp b/TAO/orbsvcs/tests/Event/Mcast/Complex/gateway-ec.cpp
index 7ab5ff9b030..6b02f5b9bea 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Complex/gateway-ec.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Complex/gateway-ec.cpp
@@ -1,12 +1,15 @@
// $Id$
#include "Gateway_EC.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char ** argv)
+ACE_TMAIN (int argc, ACE_TCHAR ** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Gateway_EC test;
- if (test.run (argc, argv) == -1)
+ if (test.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return 0;
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Complex/supplier.cpp b/TAO/orbsvcs/tests/Event/Mcast/Complex/supplier.cpp
index ab13f1a28ef..314be258b0f 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Complex/supplier.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Complex/supplier.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/RtecEventCommC.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
void
send_events (RtecEventChannelAdmin::ProxyPushConsumer_ptr consumer
@@ -54,17 +55,19 @@ parse_args (int /*argc*/, char ** /*argv*/)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize ORB and parse args.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
// Obtain reference to EC.
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Simple/Makefile.am b/TAO/orbsvcs/tests/Event/Mcast/Simple/Makefile.am
index 1cc3b4772bf..80709140dcb 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Simple/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/Mcast/Simple/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.Simple_Consumer.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += consumer
@@ -51,13 +50,11 @@ consumer_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Simple_Gateway_Ec.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += gateway-ec
@@ -90,13 +87,11 @@ gateway_ec_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Simple_Supplier.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += supplier
@@ -129,7 +124,6 @@ supplier_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Simple/Simple.mpc b/TAO/orbsvcs/tests/Event/Mcast/Simple/Simple.mpc
index ee053554cb1..a50e8101f2c 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Simple/Simple.mpc
+++ b/TAO/orbsvcs/tests/Event/Mcast/Simple/Simple.mpc
@@ -4,13 +4,7 @@
project(*supplier): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = supplier
Source_Files {
@@ -19,15 +13,9 @@ project(*supplier): messaging, rteventexe, rtevent_serv, naming {
}
project(*consumer): messaging, rteventexe, rtevent_serv, naming {
- after += ECMcastTests_lib
+ after += ECMcastTests_Lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = consumer
Source_Files {
@@ -38,16 +26,11 @@ project(*consumer): messaging, rteventexe, rtevent_serv, naming {
project(*gateway-ec): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = gateway-ec
Source_Files {
gateway-ec.cpp
}
}
+
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp b/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp
index 7b95c67318f..81596b248fc 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Simple/consumer.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "orbsvcs/RtecEventCommS.h"
+#include "ace/Argv_Type_Converter.h"
class EC_Consumer:
public POA_RtecEventComm::PushConsumer
@@ -105,16 +106,18 @@ parse_args (int /* argc */, char ** /* argv */)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB and POA, POA Manager, parse args.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
CORBA::Object_var obj =
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Simple/gateway-ec.cpp b/TAO/orbsvcs/tests/Event/Mcast/Simple/gateway-ec.cpp
index 462f226b0aa..d89047ce037 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Simple/gateway-ec.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Simple/gateway-ec.cpp
@@ -1,13 +1,16 @@
// $Id$
#include "Gateway_EC.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char ** argv)
+ACE_TMAIN (int argc, ACE_TCHAR ** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Gateway_EC test;
- if (test.run (argc, argv) == -1)
+ if (test.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return 0;
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Simple/supplier.cpp b/TAO/orbsvcs/tests/Event/Mcast/Simple/supplier.cpp
index d7d0b4f1973..a22424715e1 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Simple/supplier.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Simple/supplier.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/RtecEventCommC.h"
#include "orbsvcs/RtecEventChannelAdminC.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
void
send_events (RtecEventChannelAdmin::ProxyPushConsumer_ptr consumer
@@ -44,16 +45,18 @@ parse_args (int /*argc*/, char ** /*argv*/)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB and parse args.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
// Obtain reference to EC.
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am
index 57424816450..9ed902fb367 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.Two_Way_Application.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += application
@@ -51,13 +50,11 @@ application_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Two_Way_Gateway_Ec.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += gateway-ec
@@ -90,7 +87,6 @@ gateway_ec_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc
index 48da30505d0..cc30efcf4de 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc
+++ b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/Two_Way.mpc
@@ -4,13 +4,7 @@
project(*application): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = application
Source_Files {
@@ -21,13 +15,7 @@ project(*application): messaging, rteventexe, rtevent_serv, naming {
project(*gateway-ec): messaging, rteventexe, rtevent_serv, naming {
after += ECMcastTests_lib
libs += ECMcastTests
-
- specific (automake) {
- includes += $(srcdir)/../Common
- } else {
- includes += ../Common
- }
-
+ includes += ../Common
exename = gateway-ec
Source_Files {
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp
index ce7c85cdd95..c7c7ddc57d3 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/application.cpp
@@ -14,6 +14,7 @@
#include "ace/Array_Base.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Reactor.h"
#include "ace/OS_NS_unistd.h"
#include "ace/os_include/os_netdb.h"
@@ -571,7 +572,7 @@ check_for_nil (CORBA::Object_ptr obj, const char *message)
int
parse_args (int argc, char ** argv)
{
- ACE_Get_Opt get_opt (argc, argv, "d");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "d");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -597,8 +598,10 @@ parse_args (int argc, char ** argv)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// We may want this to be alive beyond the next block.
TAO_EC_Servant_Var<Heartbeat_Application> app;
@@ -606,10 +609,10 @@ main (int argc, char *argv[])
{
// Initialize ORB and POA, POA Manager, parse args.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
CORBA::Object_var obj =
diff --git a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/gateway-ec.cpp b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/gateway-ec.cpp
index c048843d90b..f6f1bf18f7d 100644
--- a/TAO/orbsvcs/tests/Event/Mcast/Two_Way/gateway-ec.cpp
+++ b/TAO/orbsvcs/tests/Event/Mcast/Two_Way/gateway-ec.cpp
@@ -1,13 +1,16 @@
// $Id$
#include "Gateway_EC.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char ** argv)
+ACE_TMAIN (int argc, ACE_TCHAR ** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Gateway_EC test;
- if (test.run (argc, argv) == -1)
+ if (test.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return 0;
diff --git a/TAO/orbsvcs/tests/Event/Performance/Connect.cpp b/TAO/orbsvcs/tests/Event/Performance/Connect.cpp
index 874f96cc737..5cad1a265c6 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Connect.cpp
+++ b/TAO/orbsvcs/tests/Event/Performance/Connect.cpp
@@ -5,6 +5,7 @@
#include "Supplier.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/OS_NS_strings.h"
@@ -13,10 +14,12 @@ ACE_RCSID (EC_Tests_Performance,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC_Connect driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -38,7 +41,7 @@ EC_Connect::parse_args (int& argc, char* argv[])
if (this->EC_Driver::parse_args (argc, argv) != 0)
return -1;
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Event/Performance/Inversion.cpp b/TAO/orbsvcs/tests/Event/Performance/Inversion.cpp
index c3c4661d8c2..faccac7ef74 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Inversion.cpp
+++ b/TAO/orbsvcs/tests/Event/Performance/Inversion.cpp
@@ -7,16 +7,19 @@
#include "orbsvcs/Event_Utilities.h"
#include "ace/Sched_Params.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests_Performance,
Inversion,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC_Inversion driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
@@ -27,9 +30,9 @@ EC_Inversion::EC_Inversion (void)
}
int
-EC_Inversion::parse_args (int &argc, char *argv [])
+EC_Inversion::parse_args (int &argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Event/Performance/Latency.cpp b/TAO/orbsvcs/tests/Event/Performance/Latency.cpp
index 2d0cd3903aa..16e4ce2faa1 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Latency.cpp
+++ b/TAO/orbsvcs/tests/Event/Performance/Latency.cpp
@@ -8,6 +8,7 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/High_Res_Timer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Sample_History.h"
#include "ace/Basic_Stats.h"
#include "ace/Sched_Params.h"
@@ -23,8 +24,10 @@ const char *ec_ior = "file://ec.ior";
static int parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
+ ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
@@ -50,7 +53,7 @@ main (int argc, char *argv [])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -104,7 +107,7 @@ main (int argc, char *argv [])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Get the event channel object reference
@@ -224,7 +227,7 @@ main (int argc, char *argv [])
ACE_DEBUG ((LM_DEBUG, "Done (%d)\n", gsf));
if (do_dump_history)
{
- history.dump_samples ("HISTORY", gsf);
+ history.dump_samples (ACE_TEXT("HISTORY"), gsf);
}
ACE_Basic_Stats stats;
@@ -272,7 +275,7 @@ main (int argc, char *argv [])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hi:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hi:k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/Event/Performance/Latency.h b/TAO/orbsvcs/tests/Event/Performance/Latency.h
index 96a182baa25..3b6880e36b5 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Latency.h
+++ b/TAO/orbsvcs/tests/Event/Performance/Latency.h
@@ -25,9 +25,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Sample_History;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Simple consumer, receives events and record roundtrip delays.
class EC_Latency_Consumer : public POA_RtecEventComm::PushConsumer
diff --git a/TAO/orbsvcs/tests/Event/Performance/Latency_Server.cpp b/TAO/orbsvcs/tests/Event/Performance/Latency_Server.cpp
index 524d4301164..2ee08132c40 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Latency_Server.cpp
+++ b/TAO/orbsvcs/tests/Event/Performance/Latency_Server.cpp
@@ -8,6 +8,7 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/High_Res_Timer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Sample_History.h"
#include "ace/Sched_Params.h"
#include "ace/OS_NS_errno.h"
@@ -20,8 +21,10 @@ const char *ior_file_name = "ec.ior";
static int parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_EC_Default_Factory::init_svcs ();
int priority =
@@ -49,7 +52,7 @@ main (int argc, char *argv [])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -103,7 +106,7 @@ main (int argc, char *argv [])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO_EC_Event_Channel_Attributes attr (root_poa.in (),
@@ -122,7 +125,7 @@ main (int argc, char *argv [])
if (ior_file_name != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_file_name, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file_name, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -156,7 +159,7 @@ main (int argc, char *argv [])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/Event/Performance/Makefile.am b/TAO/orbsvcs/tests/Event/Performance/Makefile.am
index c27509dce7b..22889225457 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/Performance/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.Event_Performance_Connect.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Connect
@@ -52,13 +51,11 @@ Connect_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Performance_Inversion.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Inversion
@@ -92,13 +89,11 @@ Inversion_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Performance_Latency.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Latency
@@ -133,13 +128,11 @@ Latency_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Performance_Latency_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Latency_Server
@@ -177,13 +170,11 @@ Latency_Server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Event_Performance_Throughput.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Throughput
@@ -217,7 +208,6 @@ Throughput_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Event/Performance/Throughput.cpp b/TAO/orbsvcs/tests/Event/Performance/Throughput.cpp
index 513434e07f9..9a1336b4d3f 100644
--- a/TAO/orbsvcs/tests/Event/Performance/Throughput.cpp
+++ b/TAO/orbsvcs/tests/Event/Performance/Throughput.cpp
@@ -5,16 +5,19 @@
#include "Supplier.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (EC_Tests_Performance,
Throughput,
"$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
EC_Throughput driver;
- return driver.run (argc, argv);
+ return driver.run (convert.get_argc(), convert.get_ASCII_argv());
}
// ****************************************************************
diff --git a/TAO/orbsvcs/tests/Event/Performance/eventperftestexe.mpb b/TAO/orbsvcs/tests/Event/Performance/eventperftestexe.mpb
index 67e95079156..f737ae537ba 100644
--- a/TAO/orbsvcs/tests/Event/Performance/eventperftestexe.mpb
+++ b/TAO/orbsvcs/tests/Event/Performance/eventperftestexe.mpb
@@ -4,10 +4,6 @@
project: messaging, rteventexe, rtevent_serv, naming, iortable {
after += Event_Test_Lib
libs += ECTests
-
- specific (automake) {
- includes += $(srcdir)/../lib
- } else {
- includes += ../lib
- }
+ includes += ../lib
}
+
diff --git a/TAO/orbsvcs/tests/Event/lib/Driver.cpp b/TAO/orbsvcs/tests/Event/lib/Driver.cpp
index d74d6f76b84..3bf1845cb11 100644
--- a/TAO/orbsvcs/tests/Event/lib/Driver.cpp
+++ b/TAO/orbsvcs/tests/Event/lib/Driver.cpp
@@ -13,6 +13,7 @@
#include "ace/Sched_Params.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
#include "ace/OS_NS_errno.h"
@@ -106,7 +107,7 @@ EC_Driver::run_init (int &argc, char* argv[]
if (this->pid_file_name_ != 0)
{
- FILE* pid = ACE_OS::fopen (this->pid_file_name_, "w");
+ FILE* pid = ACE_OS::fopen (this->pid_file_name_, ACE_TEXT("w"));
if (pid != 0)
{
ACE_OS::fprintf (pid, "%ld\n",
@@ -727,9 +728,9 @@ EC_Driver::dump_results (void)
}
int
-EC_Driver::parse_args (int &argc, char *argv [])
+EC_Driver::parse_args (int &argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Event/lib/Driver.h b/TAO/orbsvcs/tests/Event/lib/Driver.h
index 31ac5df863e..4ff4a1cffbe 100644
--- a/TAO/orbsvcs/tests/Event/lib/Driver.h
+++ b/TAO/orbsvcs/tests/Event/lib/Driver.h
@@ -24,10 +24,7 @@
#include "ace/Stats.h"
#include "ace/Task.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_EC_Event_Channel_Attributes;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
class TAO_Module_Factory;
class EC_Consumer;
class EC_Supplier;
diff --git a/TAO/orbsvcs/tests/Event/lib/Makefile.am b/TAO/orbsvcs/tests/Event/lib/Makefile.am
index 63a71fe9187..267242ae0ba 100644
--- a/TAO/orbsvcs/tests/Event/lib/Makefile.am
+++ b/TAO/orbsvcs/tests/Event/lib/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Event_Test_Lib.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_LTLIBRARIES = libECTests.la
@@ -46,7 +45,6 @@ noinst_HEADERS = \
Supplier.h \
ectest_export.h
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/FT_App/FTAPP_Analyzer_Main.cpp b/TAO/orbsvcs/tests/FT_App/FTAPP_Analyzer_Main.cpp
index 253e373e20b..fe0458110c5 100644
--- a/TAO/orbsvcs/tests/FT_App/FTAPP_Analyzer_Main.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FTAPP_Analyzer_Main.cpp
@@ -17,6 +17,8 @@
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO::Utils::Server_Main<StubFaultAnalyzer> server_run("FaultAnalyzer");
return server_run.run(argc, argv);
}
diff --git a/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp b/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp
index 131b6daa877..729b18bbb41 100644
--- a/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FTAPP_FactoryRegistry_Main.cpp
@@ -17,6 +17,8 @@
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO::Utils::Server_Main<TAO::PG_FactoryRegistry> server_main("FactoryRegistry");
return server_main.run(argc, argv);
}
diff --git a/TAO/orbsvcs/tests/FT_App/FTAPP_FaultConsumer_Main.cpp b/TAO/orbsvcs/tests/FT_App/FTAPP_FaultConsumer_Main.cpp
index f5e732d47ab..571ae796aea 100644
--- a/TAO/orbsvcs/tests/FT_App/FTAPP_FaultConsumer_Main.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FTAPP_FaultConsumer_Main.cpp
@@ -17,6 +17,8 @@
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO::Utils::Server_Main<ReplicationManagerFaultConsumerAdapter>
server_main("FaultConsumer");
return server_main.run(argc, argv);
diff --git a/TAO/orbsvcs/tests/FT_App/FTAPP_Notifier_Main.cpp b/TAO/orbsvcs/tests/FT_App/FTAPP_Notifier_Main.cpp
index 2ae607f7f0f..784a3109c15 100644
--- a/TAO/orbsvcs/tests/FT_App/FTAPP_Notifier_Main.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FTAPP_Notifier_Main.cpp
@@ -18,6 +18,8 @@
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO::Utils::Server_Main<StubFaultNotifier> server_main("FaultNotifier");
return server_main.run(argc, argv);
}
diff --git a/TAO/orbsvcs/tests/FT_App/FT_Client.cpp b/TAO/orbsvcs/tests/FT_App/FT_Client.cpp
index 984d61c0e6f..6b58f67c9ce 100644
--- a/TAO/orbsvcs/tests/FT_App/FT_Client.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FT_Client.cpp
@@ -8,6 +8,7 @@
#include "ace/streams.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
class FTClientMain
{
@@ -171,7 +172,7 @@ FTClientMain::parse_args (int argc, char *argv[])
// note: dfnkx are simple_util options
// include them here so we can detect bad args
- ACE_Get_Opt get_opts (argc, argv, "c:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "c:f:");
int c;
while (result == 0 && (c = get_opts ()) != -1)
@@ -181,7 +182,7 @@ FTClientMain::parse_args (int argc, char *argv[])
case 'c':
{
this->inFileName_ = get_opts.opt_arg ();
- this->inFile_ = ACE_OS::fopen (this->inFileName_, "r");
+ this->inFile_ = ACE_OS::fopen (this->inFileName_, ACE_TEXT("r"));
if(this->inFile_ && !ferror (this->inFile_))
{
ACE_OS::fprintf (stdout, "FT Client: Reading commands from %s\n", this->inFileName_);
@@ -530,7 +531,7 @@ int FTClientMain::next_replica (ACE_ENV_SINGLE_ARG_DECL)
else
{
ACE_OS::fprintf (stderr, "***OUT_OF_REPLICAS*** "
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
"\n", this->replica_pos_);
}
return result;
@@ -624,10 +625,12 @@ int FTClientMain::run (ACE_ENV_SINGLE_ARG_DECL)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
FTClientMain app;
- int result = app.parse_args(argc, argv);
+ int result = app.parse_args(convert.get_argc(), convert.get_ASCII_argv());
if (result == 0)
{
ACE_TRY_NEW_ENV
diff --git a/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp b/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp
index 996c2a27fb7..a7d01ca3c28 100644
--- a/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FT_Creator.cpp
@@ -19,6 +19,7 @@
#include <ace/Get_Opt.h>
#include <ace/OS_NS_stdio.h>
+#include "ace/Argv_Type_Converter.h"
FTAPP::FT_Creator::FT_Creator ()
: creator_ ()
@@ -43,7 +44,7 @@ FTAPP::FT_Creator::parse_args (int argc, char *argv[])
{
int result = 0;
- ACE_Get_Opt get_opts (argc, argv, "r:ignf:u:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "r:ignf:u:p:");
int c;
while (result == 0 && (c = get_opts ()) != -1)
@@ -255,15 +256,17 @@ int FTAPP::FT_Creator::fini ()
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv());
ACE_TRY_CHECK;
FTAPP::FT_Creator app;
- result = app.parse_args(argc, argv);
+ result = app.parse_args(convert.get_argc(), convert.get_ASCII_argv());
if (result == 0)
{
result = app.init (orb.in () ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/FT_App/FT_Creator.h b/TAO/orbsvcs/tests/FT_App/FT_Creator.h
index 14e2664fda9..912746e0fdb 100644
--- a/TAO/orbsvcs/tests/FT_App/FT_Creator.h
+++ b/TAO/orbsvcs/tests/FT_App/FT_Creator.h
@@ -14,10 +14,8 @@
#ifndef FT_CREATOR_H
#define FT_CREATOR_H
-
-#include /**/ "ace/pre.h"
-
#include <ace/ACE.h>
+#include /**/ "ace/pre.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/orbsvcs/tests/FT_App/FT_Replica.cpp b/TAO/orbsvcs/tests/FT_App/FT_Replica.cpp
index 1fcc2339969..0eb71bf1f77 100644
--- a/TAO/orbsvcs/tests/FT_App/FT_Replica.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FT_Replica.cpp
@@ -17,6 +17,8 @@
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO::Utils::Server_Main<FT_ReplicaFactory_i> server_main("TestReplicaFactory");
return server_main.run(argc, argv);
}
diff --git a/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp b/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp
index ba8b3d7e58d..0fef5007a56 100644
--- a/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FT_ReplicaFactory_i.cpp
@@ -13,6 +13,7 @@
#include "FT_ReplicaFactory_i.h"
#include "FT_TestReplica_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/PortableGroupC.h"
@@ -141,7 +142,7 @@ void FT_ReplicaFactory_i::shutdown_i()
int FT_ReplicaFactory_i::write_ior(const char * outputFile, const char * ior)
{
int result = -1;
- FILE* out = ACE_OS::fopen (outputFile, "w");
+ FILE* out = ACE_OS::fopen (outputFile, ACE_TEXT("w"));
if (out)
{
ACE_OS::fprintf (out, "%s", ior);
@@ -162,7 +163,7 @@ int FT_ReplicaFactory_i::write_ior(const char * outputFile, const char * ior)
int FT_ReplicaFactory_i::parse_args (int argc, char * argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:f:i:l:t:qu");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:f:i:l:t:qu");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/FT_App/FT_ReplicationManagerController.cpp b/TAO/orbsvcs/tests/FT_App/FT_ReplicationManagerController.cpp
index 16f1f70eee4..f338e079ecc 100755
--- a/TAO/orbsvcs/tests/FT_App/FT_ReplicationManagerController.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FT_ReplicationManagerController.cpp
@@ -6,6 +6,7 @@
#include "ace/streams.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
// A simple class for building a client that "controls' the
// Replication Manager (right now it just shuts it down).
@@ -89,9 +90,8 @@ int TAO_FT_ReplicationManagerController::init (int & argc, char * argv[])
if (CORBA::is_nil (this->replication_manager_.in()))
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT (
- "TAO_FT_ReplicationManagerController::init: "
- "Could not get Replication Manager's IOR.\n")
+ ACE_TEXT ("TAO_FT_ReplicationManagerController::init: ")
+ ACE_TEXT ("Could not get Replication Manager's IOR.\n")
));
result = -1;
}
@@ -116,7 +116,7 @@ int TAO_FT_ReplicationManagerController::parse_args (int & argc, char * argv[])
{
int result = 0;
- ACE_Get_Opt get_opts (argc, argv, "k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x");
int c;
while (result == 0 && (c = get_opts ()) != -1)
@@ -186,11 +186,13 @@ int TAO_FT_ReplicationManagerController::run ()
return result;
}
-int main (int argc, char * argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
TAO_FT_ReplicationManagerController rmctrl;
- result = rmctrl.init (argc, argv);
+ result = rmctrl.init (convert.get_argc(), convert.get_ASCII_argv());
if (result == 0)
{
result = rmctrl.run ();
diff --git a/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp b/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp
index ad89659b3bc..3cd2451a91e 100644
--- a/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp
+++ b/TAO/orbsvcs/tests/FT_App/FT_TestReplica_i.cpp
@@ -451,7 +451,7 @@ void FT_TestReplica_i::request_quit()
void FT_TestReplica_i::store(long counter)
{
- FILE * f = ACE_OS::fopen("Persistent.dat", "w");
+ FILE * f = ACE_OS::fopen("Persistent.dat", ACE_TEXT("w"));
if(f != 0)
{
unsigned char* buffer = 0;
@@ -472,7 +472,7 @@ void FT_TestReplica_i::store(long counter)
long FT_TestReplica_i::load ()
{
long counter = 0;
- FILE * f = ACE_OS::fopen("Persistent.dat","r");
+ FILE * f = ACE_OS::fopen("Persistent.dat",ACE_TEXT("r"));
if(f != 0)
{
unsigned char buffer[sizeof(long)];
diff --git a/TAO/orbsvcs/tests/FT_App/Makefile.am b/TAO/orbsvcs/tests/FT_App/Makefile.am
index ed713ef2e2e..af3e34c28b2 100644
--- a/TAO/orbsvcs/tests/FT_App/Makefile.am
+++ b/TAO/orbsvcs/tests/FT_App/Makefile.am
@@ -23,7 +23,6 @@ noinst_PROGRAMS =
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_analyzer
@@ -69,7 +68,6 @@ ft_analyzer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -106,15 +104,11 @@ FT_TestReplica-stamp: $(srcdir)/FT_TestReplica.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- FT_TestReplica.idl
-
## Makefile.FT_App_Client.am
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_client
@@ -162,7 +156,6 @@ ft_client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -172,7 +165,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_create
@@ -213,7 +205,6 @@ ft_create_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -223,7 +214,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_registry
@@ -261,7 +251,6 @@ ft_registry_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -271,7 +260,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_fault_consumer
@@ -314,7 +302,6 @@ ft_fault_consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -324,7 +311,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_notifier
@@ -364,7 +350,6 @@ ft_notifier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -374,7 +359,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += replmgr_controller
@@ -421,7 +405,6 @@ replmgr_controller_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -431,7 +414,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ft_replica
@@ -475,7 +457,6 @@ ft_replica_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp b/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp
index 12357cb9297..632de09d56b 100755
--- a/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp
+++ b/TAO/orbsvcs/tests/FT_App/ReplicationManagerFaultConsumerAdapter.cpp
@@ -4,6 +4,7 @@
#include "ReplicationManagerFaultConsumerAdapter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
#include "orbsvcs/FT_ReplicationManager/FT_DefaultFaultAnalyzer.h"
// FUZZ: disable check_for_streams_include
@@ -38,7 +39,7 @@ size_t ReplicationManagerFaultConsumerAdapter::notifications () const
int ReplicationManagerFaultConsumerAdapter::parse_args (int argc, char * argv[])
{
int optionError = 0;
- ACE_Get_Opt get_opts (argc, argv, "o:r:d:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:r:d:n:");
int c;
while ((c = get_opts ()) != -1)
{
@@ -335,7 +336,7 @@ int ReplicationManagerFaultConsumerAdapter::init (
// Signal that we are ready to go.
if (result == 0 && this->readyFile_ != 0)
{
- FILE* ready = ACE_OS::fopen (this->readyFile_, "w");
+ FILE* ready = ACE_OS::fopen (this->readyFile_, ACE_TEXT("w"));
if (ready)
{
ACE_OS::fprintf (ready, "ready\n");
diff --git a/TAO/orbsvcs/tests/FT_App/StubBatchConsumer.cpp b/TAO/orbsvcs/tests/FT_App/StubBatchConsumer.cpp
index 6d0e445511f..66c9fd5ab58 100644
--- a/TAO/orbsvcs/tests/FT_App/StubBatchConsumer.cpp
+++ b/TAO/orbsvcs/tests/FT_App/StubBatchConsumer.cpp
@@ -4,6 +4,7 @@
#include "StubBatchConsumer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
StubBatchConsumer::StubBatchConsumer ()
diff --git a/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.cpp b/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.cpp
index 56731cf5f59..2f1ddc40202 100644
--- a/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.cpp
+++ b/TAO/orbsvcs/tests/FT_App/StubFaultAnalyzer.cpp
@@ -4,6 +4,7 @@
#include "StubFaultAnalyzer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
@@ -25,7 +26,7 @@ StubFaultAnalyzer::~StubFaultAnalyzer ()
int StubFaultAnalyzer::parse_args (int argc, char * argv[])
{
int optionError = 0;
- ACE_Get_Opt get_opts (argc, argv, "o:r:d:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:r:d:n:");
int c;
while ((c = get_opts ()) != -1)
{
@@ -228,7 +229,7 @@ int StubFaultAnalyzer::init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
if (result == 0 && this->readyFile_ != 0)
{
- FILE *ready = ACE_OS::fopen (this->readyFile_, "w");
+ FILE *ready = ACE_OS::fopen (this->readyFile_, ACE_TEXT("w"));
if ( ready )
{
ACE_OS::fprintf (ready, "ready\n");
diff --git a/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp b/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp
index 25a2934df15..33731acec0e 100644
--- a/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp
+++ b/TAO/orbsvcs/tests/FT_App/StubFaultConsumer.cpp
@@ -4,6 +4,7 @@
#include "StubFaultConsumer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
StubFaultConsumer::StubFaultConsumer ()
@@ -40,7 +41,7 @@ int StubFaultConsumer::parse_args (int argc, char * argv[])
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
#else // NO_ARGS_FOR_NOW
- ACE_Get_Opt get_opts (argc, argv, "");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "");
int c;
while ((c = get_opts ()) != -1)
{
diff --git a/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp b/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp
index 24c320efb8e..4fd2e6b5f0c 100644
--- a/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp
+++ b/TAO/orbsvcs/tests/FT_App/StubFaultNotifier.cpp
@@ -4,6 +4,7 @@
#include "StubFaultNotifier.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
#include "orbsvcs/PortableGroup/PG_Properties_Encoder.h"
// FUZZ: disable check_for_streams_include
@@ -35,7 +36,7 @@ PortableServer::ObjectId StubFaultNotifier::objectId()const
int StubFaultNotifier::parse_args (int argc, char * argv[])
{
int optionError = 0;
- ACE_Get_Opt get_opts (argc, argv, "o:r:d:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:r:d:n:");
int c;
while ((c = get_opts ()) != -1)
{
@@ -324,7 +325,7 @@ int StubFaultNotifier::init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
int StubFaultNotifier::write_ior_file()
{
int result = -1;
- FILE* out = ACE_OS::fopen (this->ior_output_file_, "w");
+ FILE* out = ACE_OS::fopen (this->ior_output_file_, ACE_TEXT("w"));
if (out)
{
ACE_OS::fprintf (out, "%s", this->ior_.in ());
diff --git a/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp b/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp
index 8bb35b960a1..8cbd09b8a6c 100644
--- a/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp
+++ b/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.cpp
@@ -453,7 +453,7 @@ int TAO::Object_Group_Creator::fini ()
int TAO::Object_Group_Creator::write_ior_file (const char * outputFile, const char * ior)
{
int result = -1;
- FILE* out = ACE_OS::fopen (outputFile, "w");
+ FILE* out = ACE_OS::fopen (outputFile, ACE_TEXT("w"));
if (out)
{
ACE_OS::fprintf (out, "%s", ior);
diff --git a/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.h b/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.h
index 2d3128b96d1..5bf6c6aae58 100644
--- a/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.h
+++ b/TAO/orbsvcs/tests/FT_App/TAO_Object_Group_Creator.h
@@ -25,7 +25,6 @@
#include <ace/SString.h>
#include <ace/Vector_T.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
class Object_Group_Creator
@@ -105,6 +104,5 @@ namespace TAO
};
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // TAO_OBJECT_GROUP_CREATOR_H
diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am
index 4d3a7e2e78e..58964b1cebd 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am
+++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Makefile.am
@@ -50,15 +50,11 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.GroupRef_Manipulation_Client.am
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -96,7 +92,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -106,7 +101,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -148,7 +142,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp
index fe39a7dc7b6..00fffe1a363 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp
+++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.cpp
@@ -24,14 +24,6 @@ Server_Request_Interceptor::~Server_Request_Interceptor (void)
}
void
-Server_Request_Interceptor::reset (ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->request_count_ = 0;
- this->forward_request_thrown_ = false;
-}
-
-void
Server_Request_Interceptor::forward_references (
CORBA::Object_ptr obj1,
CORBA::Object_ptr obj2
@@ -45,22 +37,8 @@ Server_Request_Interceptor::forward_references (
EINVAL),
CORBA::COMPLETED_NO));
- char *argv[] = {NULL};
- int argc = 0;
-
- // Fetch the ORB having been initialized in main()
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "Server ORB" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::String_var str1 = orb->object_to_string (obj1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::String_var str2 = orb->object_to_string (obj2 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- this->obj_[0] = orb->string_to_object (str1.in () ACE_ENV_ARG_PARAMETER);
- this->obj_[1] = orb->string_to_object (str2.in () ACE_ENV_ARG_PARAMETER);
+ this->obj_[0] = CORBA::Object::_duplicate (obj1);
+ this->obj_[1] = CORBA::Object::_duplicate (obj2);
}
char *
diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.h b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.h
index d8a5ce664cf..554d85d203a 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.h
+++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/Server_Request_Interceptor.h
@@ -55,11 +55,6 @@ public:
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /// Reset to initial state, like counter etc, keeps the object-references
- virtual void reset (ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-
/**
* @name Methods Required by the Server Request Interceptor
* Interface
diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp
index 58fd3cc610b..b6723974f22 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp
+++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "orbsvcs/FaultTolerance/FT_Service_Activate.h"
@@ -14,7 +15,7 @@ const char *ior = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,20 +36,21 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Client ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Start out with the first IOR. Interaction with the second
@@ -62,13 +64,6 @@ main (int argc, char *argv[])
ForwardRequestTest::test::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- // Before and after the LOCATION_FORWARD_PERM the marshaled
- // object reference must differ.
-
- // Create a stringified/marshaled snapshot of Object reference
- CORBA::String_var marshaled_obj_snapshot1 =
- orb->object_to_string (server.in () ACE_ENV_ARG_PARAMETER);
-
if (CORBA::is_nil (server.in ()))
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -102,20 +97,6 @@ main (int argc, char *argv[])
ACE_OS::abort ();
}
- // One of the request triggerd a LOCATION_FORWARD_PERM, in
- // consequence the marshaled representation of "server" should
- // look different now, compare to snapshot1.
- CORBA::String_var marshaled_obj_snapshot2 =
- orb->object_to_string (server.in () ACE_ENV_ARG_PARAMETER);
-
- if (strcmp (marshaled_obj_snapshot1.in (), marshaled_obj_snapshot2.in ()) == 0)
- {
- // Error, before and after the marhaled object references look equal
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Marshaled Object reference should differ after LOCATION_FORWARD_PERM\n"));
- ACE_OS::abort ();
- }
-
server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/server.cpp b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/server.cpp
index ee1bd7e9d0e..574eaa0b00a 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/server.cpp
+++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/server.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
@@ -23,7 +24,7 @@ const char *ior_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -121,8 +122,10 @@ add_ft_prop (CORBA::ORB_ptr o,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -138,7 +141,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "Server ORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "Server ORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -158,7 +161,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::PolicyList policies; // Empty policy list.
@@ -236,7 +239,7 @@ main (int argc, char *argv[])
// Write each IOR to a file.
// IOR 1
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file <%s> for writing "
@@ -272,7 +275,7 @@ main (int argc, char *argv[])
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
return 0;
}
diff --git a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl
index f154942bbb7..beadf9759da 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl
+++ b/TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/test.idl
@@ -24,7 +24,6 @@ module ForwardRequestTest
void forward_references (in Object obj1,
in Object obj2);
- void reset ();
};
};
diff --git a/TAO/orbsvcs/tests/FaultTolerance/IOGR/Makefile.am b/TAO/orbsvcs/tests/FaultTolerance/IOGR/Makefile.am
index db261f07855..187aeda3758 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/IOGR/Makefile.am
+++ b/TAO/orbsvcs/tests/FaultTolerance/IOGR/Makefile.am
@@ -50,15 +50,11 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.FaultTolerance_IOGR_Manager.am
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Manager
@@ -94,7 +90,6 @@ Manager_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -104,7 +99,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -142,7 +136,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp b/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp
index 543da3eff4f..3d43e3df4e3 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp
+++ b/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp
@@ -3,6 +3,7 @@
#include "Client_i.h"
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "tao/IORManipulation/IORManip_Loader.h"
#include "tao/PortableServer/PortableServer.h"
@@ -27,7 +28,7 @@ TAO_IOP::TAO_IOR_Manipulation_var iorm = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "a:b:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:b:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -59,9 +60,11 @@ parse_args (int argc, char *argv[])
int
-main (int argc,
- char *argv[])
+ACE_TMAIN (int argc,
+ ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
Manager manager;
@@ -69,13 +72,12 @@ main (int argc,
ACE_TRY
{
// Initilaize the ORB, POA etc.
- manager.init (argc,
- argv
+ manager.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// the command line arguments
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
// Merge the different IORS
@@ -119,8 +121,7 @@ Manager::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -260,7 +261,7 @@ Manager::write_to_file (void)
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -311,8 +312,7 @@ Client_i::init (ACE_ENV_SINGLE_ARG_DECL)
int argc = 0;
char **argv = 0;
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
diff --git a/TAO/orbsvcs/tests/FaultTolerance/IOGR/server.cpp b/TAO/orbsvcs/tests/FaultTolerance/IOGR/server.cpp
index ade1a560f4d..e0e15132f9f 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/IOGR/server.cpp
+++ b/TAO/orbsvcs/tests/FaultTolerance/IOGR/server.cpp
@@ -2,13 +2,14 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -32,19 +33,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
-
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// We do the command line parsing first
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
@@ -79,7 +80,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/IOGRTest.cpp b/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/IOGRTest.cpp
index 72014970c1d..63bd82cd46a 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/IOGRTest.cpp
+++ b/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/IOGRTest.cpp
@@ -20,14 +20,16 @@
#include "tao/ORB.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "orbsvcs/FaultTolerance/FT_IOGR_Property.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(IOGRManipluation,
IOGRTest,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DEBUG ((LM_DEBUG, "---------------------------------------------\n"));
ACE_DEBUG ((LM_DEBUG, "Running the IOGRManipulation Tests.\n"));
@@ -36,8 +38,7 @@ main (int argc, char *argv[])
ACE_TRY
{
// Retrieve the ORB.
- CORBA::ORB_var orb_ = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb_ = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile.am b/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile.am
index 9d1075be501..bc20626bce5 100644
--- a/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile.am
+++ b/TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = IOGRTest
@@ -53,7 +52,6 @@ IOGRTest_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/FtRtEvent/Makefile.am b/TAO/orbsvcs/tests/FtRtEvent/Makefile.am
index 1b03b1f44e8..3aff623247d 100644
--- a/TAO/orbsvcs/tests/FtRtEvent/Makefile.am
+++ b/TAO/orbsvcs/tests/FtRtEvent/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += consumer
@@ -61,7 +60,6 @@ consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
@@ -71,7 +69,6 @@ endif BUILD_ACE_UUID
if BUILD_ACE_UUID
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += supplier
@@ -112,7 +109,6 @@ supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
endif BUILD_ACE_UUID
diff --git a/TAO/orbsvcs/tests/FtRtEvent/PushSupplier.h b/TAO/orbsvcs/tests/FtRtEvent/PushSupplier.h
index dd9897ca66c..b286fd96926 100644
--- a/TAO/orbsvcs/tests/FtRtEvent/PushSupplier.h
+++ b/TAO/orbsvcs/tests/FtRtEvent/PushSupplier.h
@@ -19,6 +19,8 @@
#include "ace/Reactor.h"
#include "ace/Time_Value.h"
+class ACE_Reactor;
+
class PushSupplier_impl :
public virtual ACE_Event_Handler
, public virtual POA_RtecEventComm::PushSupplier
diff --git a/TAO/orbsvcs/tests/FtRtEvent/consumer.cpp b/TAO/orbsvcs/tests/FtRtEvent/consumer.cpp
index 45874808c2f..3b86e717032 100644
--- a/TAO/orbsvcs/tests/FtRtEvent/consumer.cpp
+++ b/TAO/orbsvcs/tests/FtRtEvent/consumer.cpp
@@ -5,6 +5,7 @@
#include "orbsvcs/Event_Utilities.h"
#include "PushConsumer.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "orbsvcs/FtRtEvent/Utils/resolve_init.h"
#include "orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h"
@@ -23,10 +24,10 @@ CORBA::ORB_var orb;
auto_ptr<TAO_FTRTEC::FTEC_Gateway> gateway;
RtecEventChannelAdmin::EventChannel_ptr
-get_event_channel(int argc, ACE_TCHAR** argv ACE_ENV_ARG_DECL)
+get_event_channel(int argc, char** argv ACE_ENV_ARG_DECL)
{
FtRtecEventChannelAdmin::EventChannel_var channel;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("hi:n"));
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "hi:n");
int opt;
int use_gateway = 1;
@@ -86,15 +87,17 @@ get_event_channel(int argc, ACE_TCHAR** argv ACE_ENV_ARG_DECL)
return channel._retn();
}
-int main(int argc, ACE_TCHAR** argv)
+int ACE_TMAIN(int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV {
- orb = CORBA::ORB_init(argc, argv, ""
+ orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
RtecEventChannelAdmin::EventChannel_var channel
- = get_event_channel(argc, argv ACE_ENV_ARG_PARAMETER);
+ = get_event_channel(convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/FtRtEvent/supplier.cpp b/TAO/orbsvcs/tests/FtRtEvent/supplier.cpp
index 9033f5b02c2..229e2350a3f 100644
--- a/TAO/orbsvcs/tests/FtRtEvent/supplier.cpp
+++ b/TAO/orbsvcs/tests/FtRtEvent/supplier.cpp
@@ -3,6 +3,7 @@
#include "orbsvcs/FtRtecEventChannelAdminC.h"
#include "PushSupplier.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "orbsvcs/FtRtEvent/Utils/resolve_init.h"
#include "orbsvcs/FtRtEvent/Utils/FTEC_Gateway.h"
@@ -22,10 +23,10 @@ CORBA::ORB_var orb;
auto_ptr<TAO_FTRTEC::FTEC_Gateway> gateway;
RtecEventChannelAdmin::EventChannel_ptr
-get_event_channel(int argc, ACE_TCHAR** argv ACE_ENV_ARG_DECL)
+get_event_channel(int argc, char** argv ACE_ENV_ARG_DECL)
{
FtRtecEventChannelAdmin::EventChannel_var channel;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("hi:nt:?"));
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "hi:nt:?");
int opt;
int use_gateway = 1;
@@ -92,17 +93,19 @@ get_event_channel(int argc, ACE_TCHAR** argv ACE_ENV_ARG_DECL)
}
-int main(int argc, ACE_TCHAR** argv)
+int ACE_TMAIN(int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY {
- orb = CORBA::ORB_init(argc, argv, ""
+ orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
RtecEventChannelAdmin::EventChannel_var channel
- = get_event_channel(argc, argv ACE_ENV_ARG_PARAMETER);
+ = get_event_channel(convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/Makefile.am b/TAO/orbsvcs/tests/HTIOP/AMI/Makefile.am
index 30a8f369afd..4172cd7f2bc 100644
--- a/TAO/orbsvcs/tests/HTIOP/AMI/Makefile.am
+++ b/TAO/orbsvcs/tests/HTIOP/AMI/Makefile.am
@@ -53,9 +53,6 @@ ami_test-stamp: $(srcdir)/ami_test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- ami_test.idl
-
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp b/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp
index 8ab1d029463..ad74dd300fc 100644
--- a/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/AMI/Test_Output.cpp
@@ -89,7 +89,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
test_dir = 0;
else
{
- ACE_OS::strcpy (tempenv, ACE_TEXT_CHAR_TO_TCHAR (test_dir_n));
+ ACE_OS::strcpy (tempenv, ACE_TEXT_TO_TCHAR_IN (test_dir_n));
test_dir = tempenv;
}
# endif /* ACE_WIN32 || !ACE_USES_WCHAR */
@@ -133,7 +133,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
# endif /* ! VXWORKS */
# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- this->output_file_->open (ACE_TEXT_ALWAYS_CHAR (temp),
+ this->output_file_->open (ACE_TEXT_TO_CHAR_IN (temp),
ios::out | (append ? ios::app : ios::trunc));
if (this->output_file_->bad ())
return -1;
diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/client.cpp b/TAO/orbsvcs/tests/HTIOP/AMI/client.cpp
index efc9e973701..6d45e1334b1 100644
--- a/TAO/orbsvcs/tests/HTIOP/AMI/client.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/AMI/client.cpp
@@ -20,6 +20,7 @@
#include "tests/test_config.h"
#include "ace/OS_NS_sys_socket.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Task.h"
#include "ami_testC.h"
#include "ami_testS.h"
@@ -35,7 +36,7 @@ int number_of_replies = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:n:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dk:n:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -116,7 +117,7 @@ public:
number_of_replies--;
};
- void foo_excep (::Messaging::ExceptionHolder * excep_holder
+ void foo_excep (A::AMI_AMI_TestExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -125,7 +126,7 @@ public:
"Callback method <foo_excep> called: \n"));
ACE_TRY
{
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_foo (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -146,7 +147,7 @@ public:
result));
};
- void get_yadda_excep (::Messaging::ExceptionHolder *
+ void get_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -161,7 +162,7 @@ public:
"Callback method <set_yadda> called: \n"));
};
- void set_yadda_excep (::Messaging::ExceptionHolder *
+ void set_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -175,17 +176,19 @@ public:
Handler handler;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_START_TEST (ACE_TEXT ("HTIOP_AMI_client"));
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
ACE_OS::socket_init ();
diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/server.cpp b/TAO/orbsvcs/tests/HTIOP/AMI/server.cpp
index ee6a7282b5f..2e841274430 100644
--- a/TAO/orbsvcs/tests/HTIOP/AMI/server.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/AMI/server.cpp
@@ -23,6 +23,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_sys_socket.h"
ACE_RCSID(AMI, server, "$Id$")
@@ -32,7 +33,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -58,14 +59,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_START_TEST (ACE_TEXT ("HTIOP_AMI_server"));
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -85,7 +88,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
ACE_OS::socket_init ();
@@ -105,7 +108,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp b/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp
index 442d7a9356f..b66c6231b1d 100644
--- a/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp
@@ -21,6 +21,7 @@
#include "ace/OS_NS_sys_socket.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Task.h"
#include "ami_testC.h"
@@ -36,7 +37,7 @@ int debug = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dk:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -92,7 +93,7 @@ public:
}
};
- void foo_excep (::Messaging::ExceptionHolder * excep_holder
+ void foo_excep (A::AMI_AMI_TestExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -102,7 +103,7 @@ public:
"Testing proper exception handling ...\n"));
ACE_TRY
{
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_foo (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCH (A::DidTheRightThing, ex)
@@ -129,7 +130,7 @@ public:
result));
};
- void get_yadda_excep (::Messaging::ExceptionHolder *
+ void get_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -144,7 +145,7 @@ public:
"Callback method <set_yadda> called: \n"));
};
- void set_yadda_excep (::Messaging::ExceptionHolder *
+ void set_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -155,8 +156,10 @@ public:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_START_TEST (ACE_TEXT ("HTIOP_AMI_simple_client"));
ACE_DECLARE_NEW_CORBA_ENV;
@@ -164,7 +167,7 @@ main (int argc, char *argv[])
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object_var =
@@ -182,7 +185,7 @@ main (int argc, char *argv[])
poa_manager_var->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// We reuse the object_var smart pointer!
diff --git a/TAO/orbsvcs/tests/HTIOP/BiDirectional/Makefile.am b/TAO/orbsvcs/tests/HTIOP/BiDirectional/Makefile.am
index 76a01011085..e71ff1f5567 100644
--- a/TAO/orbsvcs/tests/HTIOP/BiDirectional/Makefile.am
+++ b/TAO/orbsvcs/tests/HTIOP/BiDirectional/Makefile.am
@@ -50,9 +50,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.HTIOP_BiDirectional_Client.am
if !BUILD_MINIMUM_CORBA
diff --git a/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp b/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp
index 8ab1d029463..ad74dd300fc 100644
--- a/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/BiDirectional/Test_Output.cpp
@@ -89,7 +89,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
test_dir = 0;
else
{
- ACE_OS::strcpy (tempenv, ACE_TEXT_CHAR_TO_TCHAR (test_dir_n));
+ ACE_OS::strcpy (tempenv, ACE_TEXT_TO_TCHAR_IN (test_dir_n));
test_dir = tempenv;
}
# endif /* ACE_WIN32 || !ACE_USES_WCHAR */
@@ -133,7 +133,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
# endif /* ! VXWORKS */
# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- this->output_file_->open (ACE_TEXT_ALWAYS_CHAR (temp),
+ this->output_file_->open (ACE_TEXT_TO_CHAR_IN (temp),
ios::out | (append ? ios::app : ios::trunc));
if (this->output_file_->bad ())
return -1;
diff --git a/TAO/orbsvcs/tests/HTIOP/BiDirectional/client.cpp b/TAO/orbsvcs/tests/HTIOP/BiDirectional/client.cpp
index a9a6dac7d63..48603e5a34f 100644
--- a/TAO/orbsvcs/tests/HTIOP/BiDirectional/client.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/BiDirectional/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -16,7 +17,7 @@ void do_nothing (void)
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,15 +41,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb = CORBA::ORB::_nil();
PortableServer::POA_var root_poa = PortableServer::POA::_nil();
Callback_i *servant = 0;
ACE_TRY_NEW_ENV
{
- orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -102,7 +105,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/HTIOP/BiDirectional/server.cpp b/TAO/orbsvcs/tests/HTIOP/BiDirectional/server.cpp
index acd21da590e..6f03849ab56 100644
--- a/TAO/orbsvcs/tests/HTIOP/BiDirectional/server.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/BiDirectional/server.cpp
@@ -2,6 +2,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -14,7 +15,7 @@ int no_iterations = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -100,7 +103,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i *server_impl = new Simple_Server_i (orb.in (),
@@ -131,7 +134,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/HTIOP/Hello/Makefile.am b/TAO/orbsvcs/tests/HTIOP/Hello/Makefile.am
index 8bea4fdda30..4e71c2e0fdb 100644
--- a/TAO/orbsvcs/tests/HTIOP/Hello/Makefile.am
+++ b/TAO/orbsvcs/tests/HTIOP/Hello/Makefile.am
@@ -48,9 +48,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.HTIOP_Hello_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp b/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp
index 8ab1d029463..ad74dd300fc 100644
--- a/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/Hello/Test_Output.cpp
@@ -89,7 +89,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
test_dir = 0;
else
{
- ACE_OS::strcpy (tempenv, ACE_TEXT_CHAR_TO_TCHAR (test_dir_n));
+ ACE_OS::strcpy (tempenv, ACE_TEXT_TO_TCHAR_IN (test_dir_n));
test_dir = tempenv;
}
# endif /* ACE_WIN32 || !ACE_USES_WCHAR */
@@ -133,7 +133,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
# endif /* ! VXWORKS */
# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- this->output_file_->open (ACE_TEXT_ALWAYS_CHAR (temp),
+ this->output_file_->open (ACE_TEXT_TO_CHAR_IN (temp),
ios::out | (append ? ios::app : ios::trunc));
if (this->output_file_->bad ())
return -1;
diff --git a/TAO/orbsvcs/tests/HTIOP/Hello/client.cpp b/TAO/orbsvcs/tests/HTIOP/Hello/client.cpp
index e8d3ff65f68..95ed75b3959 100644
--- a/TAO/orbsvcs/tests/HTIOP/Hello/client.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/Hello/client.cpp
@@ -4,6 +4,7 @@
#include "tests/test_config.h"
#include <ace/Get_Opt.h>
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, client, "$Id$")
@@ -13,7 +14,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,18 +38,20 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_START_TEST (ACE_TEXT ("Hello_client"));
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/orbsvcs/tests/HTIOP/Hello/server.cpp b/TAO/orbsvcs/tests/HTIOP/Hello/server.cpp
index e3ba7544ee9..aba9078d949 100644
--- a/TAO/orbsvcs/tests/HTIOP/Hello/server.cpp
+++ b/TAO/orbsvcs/tests/HTIOP/Hello/server.cpp
@@ -5,6 +5,7 @@
#include "tests/test_config.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/IORTable/IORTable.h"
#include "orbsvcs/CosNamingC.h"
@@ -17,7 +18,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,8 +42,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_START_TEST (ACE_TEXT ("Hello_server"));
ACE_TRY_NEW_ENV
@@ -50,7 +53,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Begin of Hello_Server test\n"));
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
//------ Get Root POA & POA Manager references
@@ -91,7 +94,7 @@ main (int argc, char *argv[])
//-------- Prepare Servant
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -124,7 +127,7 @@ main (int argc, char *argv[])
ior_table->bind("HelloObj", ior.in() ACE_ENV_ARG_PARAMETER);
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/HTIOP/test_config.h b/TAO/orbsvcs/tests/HTIOP/test_config.h
index 52329a74561..04b218fd78e 100644
--- a/TAO/orbsvcs/tests/HTIOP/test_config.h
+++ b/TAO/orbsvcs/tests/HTIOP/test_config.h
@@ -43,7 +43,7 @@
#undef ACE_NDEBUG
#undef ACE_TEXT
-#define ACE_TEXT ACE_LIB_TEXT
+#define ACE_TEXT ACE_TEXT
#if defined (ACE_HAS_WINCE)
// Note that Pocket PC 2002 will NOT create a directory if it does not start with a leading '\'.
@@ -251,7 +251,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
# endif /* ! VXWORKS */
# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- this->output_file_->open (ACE_TEXT_ALWAYS_CHAR (temp),
+ this->output_file_->open (ACE_TEXT_TO_CHAR_IN (temp),
ios::out | (append ? ios::app : ios::trunc));
if (this->output_file_->bad ())
return -1;
diff --git a/TAO/orbsvcs/tests/IOR_MCast/IOR_MCast.mpc b/TAO/orbsvcs/tests/IOR_MCast/IOR_MCast.mpc
index 01fcb2cd41a..1cab9bda0ea 100644
--- a/TAO/orbsvcs/tests/IOR_MCast/IOR_MCast.mpc
+++ b/TAO/orbsvcs/tests/IOR_MCast/IOR_MCast.mpc
@@ -2,6 +2,7 @@
// $Id$
project(*idl): taoidldefaults {
+ avoids += uses_wchar
IDL_Files {
MCast.idl
}
@@ -10,6 +11,7 @@ project(*idl): taoidldefaults {
project(*server): namingexe, iortable, svc_utils {
exename = server
+ avoids += uses_wchar
after += *idl
Source_Files {
@@ -25,6 +27,7 @@ project(*server): namingexe, iortable, svc_utils {
project(*client): namingexe, iortable, svc_utils {
exename = client
+ avoids += uses_wchar
after += *idl
Source_Files {
diff --git a/TAO/orbsvcs/tests/IOR_MCast/Makefile.am b/TAO/orbsvcs/tests/IOR_MCast/Makefile.am
index fa3194fefd5..e9e87700b63 100644
--- a/TAO/orbsvcs/tests/IOR_MCast/Makefile.am
+++ b/TAO/orbsvcs/tests/IOR_MCast/Makefile.am
@@ -48,9 +48,6 @@ MCast-stamp: $(srcdir)/MCast.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- MCast.idl
-
## Makefile.IOR_MCast_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/orbsvcs/tests/IOR_MCast/client.cpp b/TAO/orbsvcs/tests/IOR_MCast/client.cpp
index 7a79bec47bc..209879f40fd 100644
--- a/TAO/orbsvcs/tests/IOR_MCast/client.cpp
+++ b/TAO/orbsvcs/tests/IOR_MCast/client.cpp
@@ -1,9 +1,11 @@
// $Id$
#include "ior_mcast_client_i.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
@@ -13,7 +15,7 @@ int main (int argc, char *argv [])
ior_mcast_Client_i client;
int init_result;
- init_result = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ init_result = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
return 0;
diff --git a/TAO/orbsvcs/tests/IOR_MCast/ior_mcast_client_i.cpp b/TAO/orbsvcs/tests/IOR_MCast/ior_mcast_client_i.cpp
index 26a0d6c3e12..80087193f30 100644
--- a/TAO/orbsvcs/tests/IOR_MCast/ior_mcast_client_i.cpp
+++ b/TAO/orbsvcs/tests/IOR_MCast/ior_mcast_client_i.cpp
@@ -2,6 +2,7 @@
#include "ior_mcast_client_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
ior_mcast_Client_i::ior_mcast_Client_i (void)
@@ -23,8 +24,7 @@ ior_mcast_Client_i::init (int& argc,
{
// First initialize the ORB, that will remove some arguments...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (argc, argv,
"" /* the ORB name, it can be anything! */
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/IOR_MCast/server.cpp b/TAO/orbsvcs/tests/IOR_MCast/server.cpp
index be8c6ab97c8..09bfed08ece 100644
--- a/TAO/orbsvcs/tests/IOR_MCast/server.cpp
+++ b/TAO/orbsvcs/tests/IOR_MCast/server.cpp
@@ -1,9 +1,13 @@
// $Id$
#include "server_i.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+// This test cannot be run on a wide character build
+// ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
diff --git a/TAO/orbsvcs/tests/IOR_MCast/server_i.cpp b/TAO/orbsvcs/tests/IOR_MCast/server_i.cpp
index e9a12f65dc5..d877a11543c 100644
--- a/TAO/orbsvcs/tests/IOR_MCast/server_i.cpp
+++ b/TAO/orbsvcs/tests/IOR_MCast/server_i.cpp
@@ -10,6 +10,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
Server_i::Server_i (void)
@@ -159,9 +160,9 @@ Server_i::enable_multicast (const char *ior)
}
int
-Server_i::parse_args (int argc, char *argv [])
+Server_i::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "a:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/ImplRepo/ImplRepo.mpc b/TAO/orbsvcs/tests/ImplRepo/ImplRepo.mpc
index 848b239d9ee..47272f557d2 100644
--- a/TAO/orbsvcs/tests/ImplRepo/ImplRepo.mpc
+++ b/TAO/orbsvcs/tests/ImplRepo/ImplRepo.mpc
@@ -47,8 +47,7 @@ project(nestea_idl): taoidldefaults {
}
project(nestea server) : portableserver, orbsvcsexe, minimum_corba, iortable, imr_client {
- avoids += ace_for_tao
- after += nestea_idl
+ after += nestea_idl
IDL_Files {
}
diff --git a/TAO/orbsvcs/tests/ImplRepo/Makefile.am b/TAO/orbsvcs/tests/ImplRepo/Makefile.am
index 0fa6b3bc472..3e453817052 100644
--- a/TAO/orbsvcs/tests/ImplRepo/Makefile.am
+++ b/TAO/orbsvcs/tests/ImplRepo/Makefile.am
@@ -55,9 +55,6 @@ Airplane-stamp: $(srcdir)/Airplane.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Airplane.idl
-
## Makefile.airplane_client.am
if !BUILD_MINIMUM_CORBA
@@ -149,9 +146,6 @@ Nestea-stamp: $(srcdir)/Nestea.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS += \
- Nestea.idl
-
## Makefile.nestea_client.am
if !BUILD_MINIMUM_CORBA
@@ -182,7 +176,6 @@ endif !BUILD_MINIMUM_CORBA
## Makefile.nestea_server.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += nestea_server
@@ -211,7 +204,6 @@ nestea_server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/ImplRepo/NameService/test.cpp b/TAO/orbsvcs/tests/ImplRepo/NameService/test.cpp
index b885f1b28ed..1004fb6663b 100644
--- a/TAO/orbsvcs/tests/ImplRepo/NameService/test.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/NameService/test.cpp
@@ -3,14 +3,17 @@
//
#include "orbsvcs/CosNamingC.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Log_Msg.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var ns_obj =
diff --git a/TAO/orbsvcs/tests/ImplRepo/airplane_client.cpp b/TAO/orbsvcs/tests/ImplRepo/airplane_client.cpp
index 1bee519f70d..61d2f742ff4 100644
--- a/TAO/orbsvcs/tests/ImplRepo/airplane_client.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/airplane_client.cpp
@@ -3,6 +3,7 @@
#include "airplane_client_i.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ImplRepo,
airplane_client,
@@ -11,13 +12,15 @@ ACE_RCSID (ImplRepo,
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Airplane_Client_i client;
ACE_DEBUG ((LM_DEBUG, "\n\tPaper Airplane Client\n\n"));
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
else
return client.run ();
diff --git a/TAO/orbsvcs/tests/ImplRepo/airplane_client_i.cpp b/TAO/orbsvcs/tests/ImplRepo/airplane_client_i.cpp
index 079c8e9b4e1..9acada3cf81 100644
--- a/TAO/orbsvcs/tests/ImplRepo/airplane_client_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/airplane_client_i.cpp
@@ -3,6 +3,7 @@
#include "airplane_client_i.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/ACE.h"
@@ -22,7 +23,7 @@ Airplane_Client_i::Airplane_Client_i (void)
int
Airplane_Client_i::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dn:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dn:k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp b/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp
index 45f4bd9bca3..8baba3b2ff9 100644
--- a/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp
@@ -1,14 +1,17 @@
// $Id$
#include "airplane_server_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ImplRepo,
airplane_server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Airplane_Server_i server;
ACE_DEBUG ((LM_DEBUG, "\n\tPaper Airplane Server\n\n"));
@@ -16,7 +19,7 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int retval = server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int retval = server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval == -1)
diff --git a/TAO/orbsvcs/tests/ImplRepo/airplane_server_i.cpp b/TAO/orbsvcs/tests/ImplRepo/airplane_server_i.cpp
index 92ffd886c0f..751ff4dd604 100644
--- a/TAO/orbsvcs/tests/ImplRepo/airplane_server_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/airplane_server_i.cpp
@@ -8,6 +8,7 @@
#include "tao/PortableServer/Root_POA.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_sys_time.h"
@@ -29,7 +30,7 @@ Airplane_Server_i::Airplane_Server_i (void)
int
Airplane_Server_i::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +40,7 @@ Airplane_Server_i::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_client.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_client.cpp
index 60d05c63a82..0c68b4ad481 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_client.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_client.cpp
@@ -3,6 +3,7 @@
#include "nestea_client_i.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ImplRepo,
nestea_client,
@@ -11,13 +12,15 @@ ACE_RCSID (ImplRepo,
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Nestea_Client_i client;
ACE_DEBUG ((LM_DEBUG, "\n\tNestea Bookshelf Client\n\n"));
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
else
return client.run ();
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
index a92bf39e6c8..c1793f75d8f 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.cpp
@@ -3,6 +3,7 @@
#include "nestea_client_i.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/ACE.h"
@@ -22,7 +23,7 @@ Nestea_Client_i::Nestea_Client_i (void)
int
Nestea_Client_i::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dsn:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dsn:k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp
index 4706cf0304d..ebc5e2bdeb9 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_i.cpp
@@ -118,7 +118,7 @@ Nestea_i::save_data (void)
ACE_FILE_Connector connector;
if (connector.connect (file,
- ACE_FILE_Addr (this->data_filename_),
+ ACE_FILE_Addr (ACE_TEXT_TO_TCHAR_IN(this->data_filename_)),
0,
ACE_Addr::sap_any) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -144,7 +144,7 @@ Nestea_i::load_data (void)
ACE_FILE_Connector connector;
if (connector.connect (file,
- ACE_FILE_Addr (this->data_filename_),
+ ACE_FILE_Addr (ACE_TEXT_TO_TCHAR_IN(this->data_filename_)),
0,
ACE_Addr::sap_any) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
index 51a8ec71ebe..3d6803e847e 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
@@ -1,12 +1,15 @@
// $Id$
#include "nestea_server_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(ImplRepo, nestea_server, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Nestea_Server_i server;
ACE_DEBUG ((LM_DEBUG, "\n\tNestea Bookshelf Server\n\n"));
@@ -14,7 +17,7 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int retval = server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int retval = server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval == -1)
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
index f3278167081..75e00da0cdb 100644
--- a/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_server_i.cpp
@@ -8,6 +8,7 @@
#include "tao/PortableServer/Root_POA.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_stdio.h"
@@ -36,7 +37,7 @@ Nestea_Server_i::~Nestea_Server_i (void)
int
Nestea_Server_i::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -46,7 +47,7 @@ Nestea_Server_i::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
diff --git a/TAO/orbsvcs/tests/ImplRepo/run_test.pl b/TAO/orbsvcs/tests/ImplRepo/run_test.pl
index db82e5938fa..c11ca93dfef 100755
--- a/TAO/orbsvcs/tests/ImplRepo/run_test.pl
+++ b/TAO/orbsvcs/tests/ImplRepo/run_test.pl
@@ -143,15 +143,44 @@ sub nestea_test
return $status;
}
-sub nt_service_test_i
+###############################################################################
+# @todo: This test doesn't clean up too well if something fails
+
+sub nt_service_test
{
- my ($imr_initref, $BIN_IMR_ACTIVATOR, $BIN_IMR_LOCATOR) = @_;
+ my $result = 0;
+
+ # Just to show that it's possible, this test uses corbaloc instead of ior file.
+ my $imr_initref = "-orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService";
+
+ # To avoid having to ensure that they LocalSystem account has the correct path
+ # we simply copy the imr executables to the same directory as the DLL's.
+ my $BIN_IMR_LOCATOR = new PerlACE::Process ("$ACE_ROOT/lib/ImplRepo_Service","");
+ my $BIN_IMR_ACTIVATOR = new PerlACE::Process ("$ACE_ROOT/lib/ImR_Activator","");
+ $BIN_IMR_LOCATOR->IgnoreExeSubDir(1);
+ $BIN_IMR_ACTIVATOR->IgnoreExeSubDir(1);
+
+ print "Copying ImplRepo services to the same location as the dlls.\n";
+ unlink $BIN_IMR_LOCATOR->Executable ();
+ copy ($IMR_LOCATOR->Executable (), $BIN_IMR_LOCATOR->Executable ());
+ unlink $BIN_IMR_ACTIVATOR->Executable ();
+ copy ($IMR_ACTIVATOR->Executable (), $BIN_IMR_ACTIVATOR->Executable ());
+
+ print "Stopping any existing TAO ImR Services\n";
+ system("net stop taoimractivator > nul 2>&1");
+ system("net stop taoimr > nul 2>&1");
+
+ print "Removing any existing TAO ImR Services\n";
+ $BIN_IMR_ACTIVATOR->Arguments ("-c remove");
+ $BIN_IMR_LOCATOR->Arguments ("-c remove");
+ $BIN_IMR_ACTIVATOR->SpawnWaitKill (5);
+ $BIN_IMR_LOCATOR->SpawnWaitKill (5);
print "Installing TAO ImR Services\n";
$BIN_IMR_ACTIVATOR->Arguments ("-c install $imr_initref -d 0");
$BIN_IMR_LOCATOR->Arguments ("-c install -d 0 -orbendpoint iiop://:8888");
- my $result = $BIN_IMR_LOCATOR->SpawnWaitKill (5);
+ $result = $BIN_IMR_LOCATOR->SpawnWaitKill (5);
if ($result != 0) {
print STDERR "ERROR: IMR Locator installation returned $result\n";
return 1;
@@ -211,41 +240,6 @@ sub nt_service_test_i
return 1;
}
- return 0;
-}
-
-sub nt_service_test
-{
- my $result = 0;
-
- # Just to show that it's possible, this test uses corbaloc instead of ior file.
- my $imr_initref = "-orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService";
-
- # To avoid having to ensure that they LocalSystem account has the correct path
- # we simply copy the imr executables to the same directory as the DLL's.
- my $BIN_IMR_LOCATOR = new PerlACE::Process ("$ACE_ROOT/lib/ImplRepo_Service","");
- my $BIN_IMR_ACTIVATOR = new PerlACE::Process ("$ACE_ROOT/lib/ImR_Activator","");
- $BIN_IMR_LOCATOR->IgnoreExeSubDir(1);
- $BIN_IMR_ACTIVATOR->IgnoreExeSubDir(1);
-
- print "Copying ImplRepo services to the same location as the dlls.\n";
- unlink $BIN_IMR_LOCATOR->Executable ();
- copy ($IMR_LOCATOR->Executable (), $BIN_IMR_LOCATOR->Executable ());
- unlink $BIN_IMR_ACTIVATOR->Executable ();
- copy ($IMR_ACTIVATOR->Executable (), $BIN_IMR_ACTIVATOR->Executable ());
-
- print "Stopping any existing TAO ImR Services\n";
- system("net stop taoimractivator > nul 2>&1");
- system("net stop taoimr > nul 2>&1");
-
- print "Removing any existing TAO ImR Services\n";
- $BIN_IMR_ACTIVATOR->Arguments ("-c remove");
- $BIN_IMR_LOCATOR->Arguments ("-c remove");
- $BIN_IMR_ACTIVATOR->SpawnWaitKill (5);
- $BIN_IMR_LOCATOR->SpawnWaitKill (5);
-
- $result = nt_service_test_i ($imr_initref, $BIN_IMR_ACTIVATOR, $BIN_IMR_LOCATOR);
-
print "Stopping TAO Implementation Repository Service\n";
system("net stop taoimractivator 2>&1");
system("net stop taoimr 2>&1");
@@ -260,7 +254,7 @@ sub nt_service_test
unlink $BIN_IMR_ACTIVATOR->Executable ();
unlink $BIN_IMR_LOCATOR->Executable ();
- return $result;
+ return 0;
}
###############################################################################
@@ -292,7 +286,7 @@ sub airplane_ir_test
# No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator
# Can use update to add servers.
- $TAO_IMR->Arguments ("$imr_initref update airplane_server -c \""
+ $TAO_IMR->Arguments ("$imr_initref update airplane_server -c \""
. $A_SVR->Executable ()
. " -o $airplane_ior \"");
@@ -448,15 +442,15 @@ sub nestea_ir_test
$status = 1;
}
- # This should destroy the POA, causing another to be created the next time
- # the server is spawned.
+ # This should destroy the POA, causing another to be created the next time
+ # the server is spawned.
$TAO_IMR->Arguments ("$imr_initref remove nestea_server");
$result = $TAO_IMR->SpawnWaitKill (10);
if ($result != 0) {
print STDERR "ERROR: tao_imr 1 returned $result\n";
$status = 1;
}
-
+
# No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator
$TAO_IMR->Arguments ("$imr_initref add nestea_server -c \""
. $N_SVR->Executable ()
@@ -469,7 +463,7 @@ sub nestea_ir_test
$IMR_LOCATOR->Kill ();
return 1;
}
-
+
# This should cause the activator to spawn another server.
$result = $N_CLI->SpawnWaitKill (20);
if ($result != 0) {
@@ -540,9 +534,9 @@ sub perclient
$IMR_LOCATOR->Kill ();
return 1;
}
-
+
$N_CLI->Arguments("-k corbaloc::localhost:8888/nestea_server");
-
+
# Running the client should start a server instance
$result = $N_CLI->SpawnWaitKill (10);
if ($result != 0) {
@@ -557,7 +551,7 @@ sub perclient
}
unlink $nestea_ior;
-
+
$N_CLI->Arguments("-s -k corbaloc::localhost:8888/nestea_server");
# Running the client again should start another server instance
@@ -576,7 +570,7 @@ sub perclient
# Note : We have to wait long enough for the first server to self-destruct
# or it will print out an exception when it can't notify the imr of its shutdown.
sleep 10;
-
+
my $implrepo = $IMR_ACTIVATOR->TerminateWaitKill (5);
if ($implrepo != 0) {
print STDERR "ERROR: IMR_Activator returned $implrepo\n";
@@ -602,7 +596,7 @@ sub shutdown_repo
my $imr_initref = "-orbobjrefstyle URL -ORBInitRef ImplRepoService=file://$imr_locator_ior";
unlink "test.repo";
-
+
# Specify an endpoint so that we can restart on the same port.
# Specify persistence so that we can test that shutdown-repo -a works after reconnect
$IMR_LOCATOR->Arguments ("-p test.repo -d 1 -orbendpoint iiop://:8888 -o $imr_locator_ior");
@@ -647,7 +641,7 @@ sub shutdown_repo
$IMR_LOCATOR->Kill ();
return 1;
}
-
+
$TAO_IMR->Arguments ("$imr_initref shutdown-repo -a");
$result = $TAO_IMR->SpawnWaitKill (5);
if ($result != 0) {
@@ -670,7 +664,7 @@ sub shutdown_repo
}
unlink "test.repo";
-
+
return $status;
}
@@ -707,10 +701,10 @@ sub persistent_ir_test
# Copy the server to a path with spaces to ensure that these
# work corrrectly.
copy ($A_SVR->Executable(), $P_SVR->Executable());
- chmod(0755, $P_SVR->Executable());
+ chmod(0755, $P_SVR->Executable());
# No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator
- $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \""
+ $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \""
. '\"' . $P_SVR->Executable() . '\"' . "\" " . $refstyle);
$result = $TAO_IMR->SpawnWaitKill (10);
@@ -724,7 +718,7 @@ sub persistent_ir_test
## This will write out the imr-ified IOR. Note : If you don't use -orbendpoint
## when starting the ImR, then this IOR will no longer be valid when the ImR
## restarts below. You can fix this by creating a new valid IOR, or starting
- ## the ImR on a consistent endpoint.
+ ## the ImR on a consistent endpoint.
$A_SVR->Arguments ("-o $airplane_ior -ORBUseIMR 1 $refstyle $imr_initref");
$A_SVR->Spawn ();
if (PerlACE::waitforfile_timed ($airplane_ior, 10) == -1) {
@@ -833,7 +827,7 @@ sub persistent_ir_test
unlink $imr_activator_ior;
unlink $airplane_ior;
- return 0;
+ return 0;
}
###############################################################################
@@ -866,7 +860,7 @@ sub both_ir_test
## Note : It's crucial NOT to write out an IOR file when the activator
## starts the server, or at least to write out a different file name
## than the IOR files we're using for the clients. Otherwise a client
- ## may attempt to use a partially written file.
+ ## may attempt to use a partially written file.
# No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator
$TAO_IMR->Arguments ("$imr_initref add nestea_server -c \""
. $N_SVR->Executable ()
@@ -874,7 +868,7 @@ sub both_ir_test
$TAO_IMR->SpawnWaitKill (10);
# No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator
- $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \""
+ $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \""
. $A_SVR->Executable ()
. " $refstyle\"");
$TAO_IMR->SpawnWaitKill (10);
@@ -889,7 +883,7 @@ sub both_ir_test
$N_SVR->Kill ();
return 1;
}
-
+
$A_SVR->Arguments (" -o $airplane_ior -ORBUseIMR 1 $imr_initref $refstyle");
$A_SVR->Spawn ();
if (PerlACE::waitforfile_timed ($airplane_ior, 10) == -1) {
@@ -918,8 +912,8 @@ sub both_ir_test
$TAO_IMR->Arguments ("$imr_initref shutdown airplane_server");
$TAO_IMR->SpawnWaitKill (15);
- $A_SVR->WaitKill(1);
- $N_SVR->WaitKill(1);
+ $A_SVR->WaitKill();
+ $N_SVR->WaitKill();
print "\n\n\n\n## Spawning multiple simultaneous clients with no servers running.\n";
diff --git a/TAO/orbsvcs/tests/ImplRepo/scale/Makefile.am b/TAO/orbsvcs/tests/ImplRepo/scale/Makefile.am
index a4ea186a4c1..596b67988b7 100644
--- a/TAO/orbsvcs/tests/ImplRepo/scale/Makefile.am
+++ b/TAO/orbsvcs/tests/ImplRepo/scale/Makefile.am
@@ -50,9 +50,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.scaletest_client.am
if !BUILD_MINIMUM_CORBA
diff --git a/TAO/orbsvcs/tests/ImplRepo/scale/client.cpp b/TAO/orbsvcs/tests/ImplRepo/scale/client.cpp
index f5e1e660533..793cec1dfe7 100644
--- a/TAO/orbsvcs/tests/ImplRepo/scale/client.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/scale/client.cpp
@@ -4,15 +4,18 @@
#include "testC.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
using namespace CORBA;
-int main(int argc, char* argv[]) {
+int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
+{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
- ORB_var orb = ORB_init(argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ ORB_var orb = ORB_init(convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Object_var obj = orb->resolve_initial_references("Test" ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/ImplRepo/scale/server.cpp b/TAO/orbsvcs/tests/ImplRepo/scale/server.cpp
index 769d8126ae4..a89c194887d 100644
--- a/TAO/orbsvcs/tests/ImplRepo/scale/server.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/scale/server.cpp
@@ -1,16 +1,19 @@
// $Id$
#include "server_i.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
Server_i server;
- int retval = server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int retval = server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval == -1)
diff --git a/TAO/orbsvcs/tests/ImplRepo/scale/server_i.cpp b/TAO/orbsvcs/tests/ImplRepo/scale/server_i.cpp
index 21edebb203f..a3f9ec7ef1b 100644
--- a/TAO/orbsvcs/tests/ImplRepo/scale/server_i.cpp
+++ b/TAO/orbsvcs/tests/ImplRepo/scale/server_i.cpp
@@ -7,6 +7,7 @@
#include "tao/ImR_Client/ImR_Client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/streams.h"
@@ -56,7 +57,7 @@ Server_i::~Server_i()
int
Server_i::parse_args (int argc, char* argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "p:c:h");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "p:c:h");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
index 3e16668c65b..b759cedf515 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
@@ -2,21 +2,23 @@
// $Id$
#include "ifr_dii_client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Test,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
IFR_DII_Client client;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- if (client.init (argc,
- argv
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER)
== -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp
index 2186ca76647..ee38e71a861 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/ifr_dii_client.cpp
@@ -3,6 +3,7 @@
#include "ifr_dii_client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Test,
ifr_dii_client,
@@ -26,8 +27,7 @@ IFR_DII_Client::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -98,10 +98,9 @@ IFR_DII_Client::run (ACE_ENV_SINGLE_ARG_DECL)
}
int
-IFR_DII_Client::parse_args (int argc,
- char *argv[])
+IFR_DII_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "dn");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "dn");
int c;
while ((c = opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
index 7cfe8d9c287..ec921b9cd71 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Application_Test, server, "$Id$")
@@ -11,7 +12,7 @@ static const char *ior_output_file = "iorfile";
static int
write_ior_to_file (const char *ior)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
@@ -39,12 +40,13 @@ write_ior_to_file (const char *ior)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
index 410ad1fd4f3..1b1d241038c 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
@@ -2,20 +2,22 @@
// $Id$
#include "idl3_client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Test,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
IDL3_Client client;
ACE_TRY_NEW_ENV
{
- if (client.init (argc,
- argv
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER)
== -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp
index c291082e7a4..63339a65982 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/idl3_client.cpp
@@ -3,6 +3,7 @@
#include "idl3_client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_string.h"
ACE_RCSID (Application_Test,
@@ -260,8 +261,7 @@ IDL3_Client::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -341,10 +341,9 @@ IDL3_Client::run (ACE_ENV_SINGLE_ARG_DECL)
}
int
-IDL3_Client::parse_args (int argc,
- char *argv[])
+IDL3_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "d");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "d");
int c;
while ((c = opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.idl b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.idl
deleted file mode 100644
index 55d1cb99edb..00000000000
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.idl
+++ /dev/null
@@ -1,33 +0,0 @@
-// $Id$
-#ifndef __IFR_INHERITANCE_TEST_DEFINED
-#define __IFR_INHERITANCE_TEST_DEFINED
-
-module IFR_Test
-{
- typedef sequence<string> NameList;
-
- interface InterfaceRoot
- {
- readonly attribute string root_attr1;
- attribute string root_attr2;
-
- void get_root(in string root_name, out InterfaceRoot iroot);
-
- readonly attribute string root_attr3;
-
- NameList get_all_roots();
- };
-
- interface SubInterface : InterfaceRoot
- {
- attribute long sub_attr1;
-
- void set_sub(in string sub_name);
-
- NameList get_all_subs();
-
- readonly attribute string sub_attr2;
- };
-};
-
-#endif
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.mpc b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.mpc
deleted file mode 100644
index 858b1fdd3ee..00000000000
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/IFR_Inheritance_Test.mpc
+++ /dev/null
@@ -1,11 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project: taoexe, ifr_client, portableserver {
- exename = IFR_Inheritance_Test
-
- IDL_Files {
- // exclude this file
- !IFR_Inheritance_Test.idl
- }
-}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/Makefile.am b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/Makefile.am
deleted file mode 100644
index 6c0d2e881d0..00000000000
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.IFR_Inheritance_Test.am
-
-noinst_PROGRAMS = IFR_Inheritance_Test
-
-IFR_Inheritance_Test_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR)
-
-IFR_Inheritance_Test_SOURCES = \
- main.cpp
-
-IFR_Inheritance_Test_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/README b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/README
deleted file mode 100644
index 5948342f0c9..00000000000
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/README
+++ /dev/null
@@ -1,75 +0,0 @@
-$Id$
-
-This is a simple test showing that Interface inheritance
-is supported by the Interface Repository.
-
- --- The test should output: ---
-operation InterfaceRoot::get_root
-operation InterfaceRoot::get_all_roots
-attribute InterfaceRoot::root_attr1
-attribute InterfaceRoot::root_attr2
-attribute InterfaceRoot::root_attr3
-operation SubInterface::get_root
-operation SubInterface::get_all_roots
-operation SubInterface::set_sub
-operation SubInterface::get_all_subs
-attribute SubInterface::root_attr1
-attribute SubInterface::root_attr2
-attribute SubInterface::root_attr3
-attribute SubInterface::sub_attr1
-attribute SubInterface::sub_attr2
-
-Thanks to Bryan Cassell <BryanCassell@iti-team.com> for identifying
-problem and providing non-automated test code.
-
-
-To build this test, the TAO library, the TypeCodeFactory
-library, the Interface Repository (the last two found in
-TAO/orbsvcs/IFR_Service), and these test files must all be built.
-In addition, the Interface Repository requires the TAO_Svc_Utils
-library in TAO/orbsvcs/orbsvcs.
-
-To run this test, either use the Perl script run_test.pl, or
-
-
-
-(Windows)
-start the Interface Repository by typing
-
- ..\..\..\IFR_Service\IFR_Service
-
-in one window, then (in another window)
-
-REM may need this to avoid error finding CL.EXE
-"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"
-
-%ACE_ROOT%\bin\tao_ifr IFR_Inheritance_Test.idl -ORBInitRef InterfaceRepository=file://if_repo.ior
-
-and then
-
- IFR_Inheritance_Test -ORBInitRef InterfaceRepository=file://if_repo.ior
-
-(Unix)
-in this directory, type
-
- ../../../IFR_Service/IFR_Service &
-
-then
-
-%TAO_ROOT%/orbsvcs/IFR_Service/tao_ifr IFR_Inheritance_Test.idl -ORBInitRef InterfaceRepository=file://if_repo.ior
-
-and then
- ./IFR_Inheritance_Test -ORBInitRef InterfaceRepository=file://if_repo.ior
-
-
-
-You may use IP multicast discovery by starting the server with "-m 1"
-and use the default multicast address for the InterfaceRepository.
-
- ../../../IFR_Service/IFR_Service -m 1
-
-and
-
- ./IFR_Inheritance_Test
-
-- Scott Harris <harris_s@ociweb.com> \ No newline at end of file
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp
deleted file mode 100644
index b92a0f35abc..00000000000
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/main.cpp
+++ /dev/null
@@ -1,120 +0,0 @@
-// -*- C++ -*-
-// $Id$
-
-// The run_test.pl perl script will check for the expected output.
-
-#include "tao/IFR_Client/IFR_BasicC.h"
-
-ACE_RCSID (IFR_Inheritance_Test,
- main,
- "$Id$")
-
-void printContents( const CORBA::ContainedSeq& cont )
-{
- ACE_TRY_NEW_ENV
- {
- for( unsigned int i=0; i<cont.length(); i++ )
- {
- if( cont[i]->describe()->kind == CORBA::dk_Interface )
- {
- CORBA::InterfaceDef_var intDef =
- CORBA::InterfaceDef::_narrow (cont[i].in()
- ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
-
- CORBA::InterfaceDef::FullInterfaceDescription* desc =
- intDef->describe_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- //printf( "-- %s:\n", (const char*)(desc->name) );
-
- for( unsigned int j1=0; j1 < desc->operations.length (); j1++ )
- printf( "operation %s::%s\n",
- (const char*)(desc->name),
- (const char*)((desc->operations[j1]).name) );
-
- for( unsigned int j2=0; j2 < desc->attributes.length (); j2++ )
- printf( "attribute %s::%s\n",
- (const char*)(desc->name),
- (const char*)((desc->attributes[j2]).name) );
- }
- else if( cont[i]->describe ()->kind == CORBA::dk_Module )
- {
- CORBA::ModuleDef_var moduleDef =
- CORBA::ModuleDef::_narrow (cont[i].in ()
- ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
-
- CORBA::ContainedSeq_var moduleContents =
- moduleDef->contents (CORBA::dk_all,1
- ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
- printContents (moduleContents.in ());
- }
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "printContents");
- ACE_OS::exit(-1); // the test has failed!
- }
- ACE_ENDTRY;
-}
-
-
-int main(int argc, char** argv)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
- 0
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- CORBA::Object_var object =
- orb->resolve_initial_references ("InterfaceRepository"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (object.in ()))
- {
- ACE_ERROR_RETURN ((
- LM_ERROR,
- "Null objref from resolve_initial_references\n"
- ),
- -1
- );
- }
-
- CORBA::Repository_var ifr =
- CORBA::Repository::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (ifr.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "CORBA::Repository::_narrow failed\n"),
- -1);
- }
-
- CORBA::ContainedSeq_var cont = ifr->contents (CORBA::dk_all, 0
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- printContents (cont.in ());
-
- orb->shutdown ();
-
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "main");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl
deleted file mode 100755
index cdbe13a4a8f..00000000000
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl
+++ /dev/null
@@ -1,156 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib "../../../../../bin";
-use PerlACE::Run_Test;
-use strict;
-
-my %isa = ();
-$isa{"InterfaceRoot::get_root"} = "operation";
-$isa{"InterfaceRoot::get_all_roots"} = "operation";
-$isa{"InterfaceRoot::root_attr1"} = "attribute";
-$isa{"InterfaceRoot::root_attr2"} = "attribute";
-$isa{"InterfaceRoot::root_attr3"} = "attribute";
-$isa{"SubInterface::get_root"} = "operation";
-$isa{"SubInterface::get_all_roots"} = "operation";
-$isa{"SubInterface::set_sub"} = "operation";
-$isa{"SubInterface::get_all_subs"} = "operation";
-$isa{"SubInterface::root_attr1"} = "attribute";
-$isa{"SubInterface::root_attr2"} = "attribute";
-$isa{"SubInterface::root_attr3"} = "attribute";
-$isa{"SubInterface::sub_attr1"} = "attribute";
-$isa{"SubInterface::sub_attr2"} = "attribute";
-
-my %got = ();
-$got{"InterfaceRoot::get_root"} = 13;
-$got{"InterfaceRoot::get_all_roots"} = 13;
-$got{"InterfaceRoot::root_attr1"} = 13;
-$got{"InterfaceRoot::root_attr2"} = 13;
-$got{"InterfaceRoot::root_attr3"} = 13;
-$got{"SubInterface::get_root"} = 13;
-$got{"SubInterface::get_all_roots"} = 13;
-$got{"SubInterface::set_sub"} = 13;
-$got{"SubInterface::get_all_subs"} = 13;
-$got{"SubInterface::root_attr1"} = 13;
-$got{"SubInterface::root_attr2"} = 13;
-$got{"SubInterface::root_attr3"} = 13;
-$got{"SubInterface::sub_attr1"} = 13;
-$got{"SubInterface::sub_attr2"} = 13;
-
-my $iorfile = "if_repo.ior";
-
-my $testoutputfilename = "IFR_Inheritance_test.output";
-
-unlink $testoutputfilename;
-
-my $status = 0;
-
-unlink $iorfile;
-
-my $SV = new PerlACE::Process ("../../../IFR_Service/IFR_Service", " -o $iorfile" );
-
-my $CL = new PerlACE::Process ("IFR_Inheritance_Test",
- " -ORBInitRef InterfaceRepository=file://$iorfile");
-
-# The location of the tao_idl utility - depends on O/S
-my $tao_ifr = "undefined";
-if ($^O eq "MSWin32")
-{
- $tao_ifr = "../../../../../bin/tao_ifr";
-}
-else
-{
- $tao_ifr = "../../../IFR_Service/tao_ifr";
-}
-
-# Compile the IDL
-#
-my $TAO_IFR = new PerlACE::Process("$tao_ifr",
- "IFR_Inheritance_Test.idl"
- . " -ORBInitRef InterfaceRepository=file://$iorfile");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill ();
- exit 1;
-}
-
-if( $TAO_IFR->SpawnWaitKill(10) != 0 )
-{
- print STDERR "ERROR: can't compile IDL\n";
- $TAO_IFR->Kill ();
- $status = 1;
- exit $status;
-}
-
-# Redirect STDERR to a log file so that
-# we can make sure that we got a warning
-open(SAVE, ">&STDOUT");
-open(STDOUT, ">$testoutputfilename");
-
-my $client = $CL->SpawnWaitKill (60);
-
-# Close the log file and restore STDERR
-close(STDOUT);
-open(STDOUT, ">&SAVE");
-
-
-my $type = "";
-my $name = "";
-open(THELOG, "< $testoutputfilename") or die "could not open the saved log";
-while (<THELOG>) {
- if (/^attribute/ || "^operation") {
- chomp($_);
- ($type, $name) = split(/ /, $_);
- #print "found $type $name\n";
- if ($isa{$name} eq $type) {
- #print "got $name\n";
- $got{$name} = 1;
- }
- else {
- print STDERR "ERROR: $type $name was not expected\n";
- $status = 1;
- }
- }
- else {
- print STDOUT "ERROR: unexpected line: $_\n";
- }
-}
-close(THELOG);
-
-### did we get all of the expected attributes and operations?
-my $key = "";
-foreach $key (keys (%got)) {
- #print "got\{$key\} = $got{$key}\n";
- if (! exists $isa{$key} ) {
- print STDERR "CONFIG ERROR: \$got has $key but \$isa does not\n";
- $status = 1;
- }
- if ($got{$key} == 13) {
- print STDERR "ERROR: $isa{$key} $key was not found\n";
- $status = 1;
- }
-}
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-my $server = $SV->TerminateWaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
-
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp
index 533dbbd1ee2..189fae57f54 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/Admin_Client.cpp
@@ -7,6 +7,7 @@
#include "tao/CDR.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/SString.h"
ACE_RCSID (IFR_Test,
@@ -60,14 +61,12 @@ Admin_Client::init (int argc,
{
ACE_TRY_NEW_ENV
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int retval = this->parse_args (argc,
- argv);
+ int retval = this->parse_args (argc, argv);
if (retval != 0)
return retval;
@@ -152,10 +151,9 @@ Admin_Client::run (void)
}
int
-Admin_Client::parse_args (int argc,
- char *argv[])
+Admin_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "di:t:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "di:t:");
int c;
int result = 0;
CORBA::ULong i = 0;
@@ -470,7 +468,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_enum") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_enum") == 0);
if (this->debug_)
{
@@ -479,7 +477,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->id.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->id, "IDL:my_enum:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->id.in(), "IDL:my_enum:1.0") == 0);
if (this->debug_)
{
@@ -488,7 +486,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->defined_in.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->defined_in, "") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->defined_in.in(), "") == 0);
if (this->debug_)
{
@@ -497,7 +495,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
td->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->version, "1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->version.in(), "1.0") == 0);
CORBA::TCKind kind = td->type->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
@@ -566,7 +564,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
str.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].in()) == 0);
}
@@ -606,7 +604,7 @@ Admin_Client::enum_test (ACE_ENV_SINGLE_ARG_DECL)
tmp));
}
- ACE_ASSERT (ACE_OS::strcmp (fellows[i], members[i]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (fellows[i].in(), members[i].in()) == 0);
}
evar->name ("another_enum"
@@ -846,7 +844,7 @@ Admin_Client::alias_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_alias") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_alias") == 0);
if (this->debug_)
{
@@ -855,7 +853,7 @@ Admin_Client::alias_test (ACE_ENV_SINGLE_ARG_DECL)
td->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->version, "1.1") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->version.in(), "1.1") == 0);
kind = td->type->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
@@ -1085,7 +1083,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
str.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name.in()) == 0);
}
CORBA::Contained::Description_var desc =
@@ -1102,7 +1100,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_struct") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_struct") == 0);
if (this->debug_)
{
@@ -1111,7 +1109,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
td->id.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->id, "IDL:my_struct:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->id.in(), "IDL:my_struct:1.0") == 0);
if (this->debug_)
{
@@ -1120,7 +1118,7 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
td->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->version, "1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->version.in(), "1.0") == 0);
members.length (2);
members[0].name = CORBA::string_dup ("long_mem");
@@ -1180,13 +1178,13 @@ Admin_Client::struct_test (ACE_ENV_SINGLE_ARG_DECL)
if (i == length - 1)
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, "my_enum");
+ ACE_OS::strcmp (out_members[i].name.in(), "my_enum");
ACE_ASSERT (cmp_result == 0);
}
else
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, members[i].name);
+ ACE_OS::strcmp (out_members[i].name.in(), members[i].name.in());
ACE_ASSERT (cmp_result == 0);
}
}
@@ -1624,7 +1622,7 @@ Admin_Client::union_test (ACE_ENV_SINGLE_ARG_DECL)
}
// Multiple labels for first member shifts index by 1.
- ACE_ASSERT (ACE_OS::strcmp (str.in (), u_members[i + 1].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), u_members[i + 1].name.in()) == 0);
CORBA::Any_var label = tc->member_label (i
ACE_ENV_ARG_PARAMETER);
@@ -1765,7 +1763,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
str.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (str.in (), members[i].name.in()) == 0);
}
CORBA::Contained::Description_var desc =
@@ -1782,7 +1780,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->name, "my_exception") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->name.in(), "my_exception") == 0);
if (this->debug_)
{
@@ -1791,7 +1789,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->id.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->id, "IDL:my_exception:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->id.in(), "IDL:my_exception:1.0") == 0);
if (this->debug_)
{
@@ -1800,7 +1798,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->defined_in.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->defined_in, "") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->defined_in.in(), "") == 0);
if (this->debug_)
{
@@ -1809,7 +1807,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->version.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->version, "1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->version.in(), "1.0") == 0);
members.length (2);
members[0].name = CORBA::string_dup ("long_mem");
@@ -1872,13 +1870,13 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
if (i == 2)
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, "my_enum");
+ ACE_OS::strcmp (out_members[i].name.in(), "my_enum");
ACE_ASSERT (cmp_result == 0);
}
else
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, members[i].name);
+ ACE_OS::strcmp (out_members[i].name.in(), members[i].name.in());
ACE_ASSERT (cmp_result == 0);
}
}
@@ -1909,13 +1907,13 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
if (i == 1)
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, "my_enum");
+ ACE_OS::strcmp (out_members[i].name.in(), "my_enum");
ACE_ASSERT (cmp_result == 0);
}
else
{
cmp_result =
- ACE_OS::strcmp (out_members[i].name, members[i].name);
+ ACE_OS::strcmp (out_members[i].name.in(), members[i].name.in());
ACE_ASSERT (cmp_result == 0);
}
}
@@ -2092,7 +2090,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
ed->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (ed->name, "my_exception") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (ed->name.in(), "my_exception") == 0);
}
else
{
@@ -2122,7 +2120,7 @@ Admin_Client::exception_test (ACE_ENV_SINGLE_ARG_DECL)
td->name.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (td->name, "my_enum") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (td->name.in(), "my_enum") == 0);
}
}
@@ -2524,7 +2522,7 @@ Admin_Client::interface_test (ACE_ENV_SINGLE_ARG_DECL)
od->defined_in.in ()));
}
- ACE_ASSERT (ACE_OS::strcmp (od->defined_in, "IDL:p_iface:1.0") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (od->defined_in.in(), "IDL:p_iface:1.0") == 0);
CORBA::TypeCode_var result = od->result;
CORBA::TCKind kind = result->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -2986,7 +2984,7 @@ Admin_Client::move_test (ACE_ENV_SINGLE_ARG_DECL)
tmp));
}
- ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name.in()) == 0);
}
CORBA::ContainedSeq_var out_contents =
@@ -3050,7 +3048,7 @@ Admin_Client::move_test (ACE_ENV_SINGLE_ARG_DECL)
}
else
{
- ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (tmp, u_members[i].name.in()) == 0);
}
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp
index aa3af160455..af5265406ed 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/client.cpp
@@ -2,17 +2,19 @@
// $Id$
#include "Admin_Client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (IFR_Test,
client,
"$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Admin_Client admin_client;
- int retval = admin_client.init (argc,
- argv);
+ int retval = admin_client.init (convert.get_argc(), convert.get_ASCII_argv());
if (retval == -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp
index c29daa4ff2a..33d5a850b02 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Query_Client.cpp
@@ -3,6 +3,7 @@
#include "Latency_Query_Client.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Stats.h"
#include "ace/Sample_History.h"
@@ -30,14 +31,12 @@ Latency_Query_Client::init (int argc,
{
ACE_TRY_NEW_ENV
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int retval = this->parse_args (argc,
- argv);
+ int retval = this->parse_args (argc, argv);
if (retval != 0)
{
@@ -137,7 +136,7 @@ Latency_Query_Client::run (void)
if (this->do_dump_history_)
{
- history.dump_samples ("HISTORY", gsf);
+ history.dump_samples (ACE_TEXT("HISTORY"), gsf);
}
ACE_Basic_Stats stats;
@@ -162,10 +161,9 @@ Latency_Query_Client::run (void)
}
int
-Latency_Query_Client::parse_args (int argc,
- char *argv[])
+Latency_Query_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "dhi:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "dhi:");
int c;
int result = 0;
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc
index f2cf973217a..29dedba0380 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Latency_Test.mpc
@@ -1,4 +1,3 @@
// $Id$
project: ifr_client {
- avoids += ace_for_tao
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile.am b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile.am
index 743f6da4066..6f840ca3024 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile.am
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/Makefile.am
@@ -13,11 +13,8 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-
## Makefile.Latency_Test.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS = client
client_CPPFLAGS = \
@@ -37,8 +34,6 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp
index 43c9155ebb1..6364ca7811f 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/client.cpp
@@ -2,18 +2,20 @@
// $Id$
#include "Latency_Query_Client.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Latency__Test,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Latency_Query_Client client;
- int retval = client.init (argc,
- argv);
+ int retval = client.init (convert.get_argc(), convert.get_ASCII_argv());
if (retval == -1)
{
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Makefile.am b/TAO/orbsvcs/tests/InterfaceRepo/Makefile.am
index f22bf832e38..00e9d9fca48 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Makefile.am
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Makefile.am
@@ -11,7 +11,6 @@
SUBDIRS = \
Application_Test \
IDL3_Test \
- IFR_Inheritance_Test \
IFR_Test \
Latency_Test \
Persistence_Test
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
index 10146a9a882..378064b3ac2 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
@@ -3,6 +3,7 @@
#include "Ptest.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_string.h"
ACE_RCSID(Persistence_Test, Ptest, "$Id$")
@@ -18,19 +19,16 @@ Ptest::~Ptest (void)
}
int
-Ptest::init (int argc,
- char *argv[])
+Ptest::init (int argc, char *argv[])
{
ACE_TRY_NEW_ENV
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int retval = this->parse_args (argc,
- argv);
+ int retval = this->parse_args (argc, argv);
if (retval != 0)
return retval;
@@ -102,10 +100,9 @@ Ptest::run (void)
}
int
-Ptest::parse_args (int argc,
- char *argv[])
+Ptest::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "dq");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "dq");
int c;
while ((c = opts ()) != -1)
@@ -252,11 +249,11 @@ Ptest::query (ACE_ENV_SINGLE_ARG_DECL)
if (i == length - 1)
{
- ACE_ASSERT (ACE_OS::strcmp (out_members[i].name, "my_enum") == 0);
+ ACE_ASSERT (ACE_OS::strcmp (out_members[i].name.in(), "my_enum") == 0);
}
else
{
- ACE_ASSERT (ACE_OS::strcmp (out_members[i].name, members[i]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (out_members[i].name.in(), members[i]) == 0);
}
}
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp
index 2155c1c4c36..bbb60bf359c 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/test.cpp
@@ -2,17 +2,19 @@
// $Id$
#include "Ptest.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Persistence_Test,
test,
"$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Ptest ptest;
- int retval = ptest.init (argc,
- argv);
+ int retval = ptest.init (convert.get_argc(), convert.get_ASCII_argv());
if (retval == -1)
return 1;
diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp b/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp
index a7b13988c33..e841f9d87dc 100644
--- a/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp
+++ b/TAO/orbsvcs/tests/Interoperable_Naming/client.cpp
@@ -19,9 +19,12 @@
// ============================================================================
#include "ncontextext_client_i.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
ACE_DECLARE_NEW_CORBA_ENV;
@@ -30,7 +33,7 @@ int main (int argc, char *argv [])
NContextExt_Client_i client;
- if (client.init (argc, argv) != 0)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
result = client.run (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp
index 2f6f2d7ad72..aa0a40033b6 100644
--- a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp
+++ b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp
@@ -22,6 +22,7 @@
#include "ncontextext_client_i.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
// FUZZ: disable check_for_streams_include
@@ -43,7 +44,7 @@ int
NContextExt_Client_i::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dvs");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dvs");
int c;
this->view_ = 1;
@@ -322,10 +323,11 @@ NContextExt_Client_i::print_values (CosNaming::Name name,
CORBA::String_var url_string)
{
- ACE_DEBUG((LM_DEBUG, ACE_TEXT ("The first component id is %s,"
- "The first component kind is %s,"
- "The second component id is %s,"
- "The second component kind is %s\n\n"),
+ ACE_DEBUG((LM_DEBUG,
+ ACE_TEXT ("The first component id is %s,")
+ ACE_TEXT ("The first component kind is %s,")
+ ACE_TEXT ("The second component id is %s,")
+ ACE_TEXT ("The second component kind is %s\n\n"),
name[0].id.in (),
name[0].kind.in (),
name[1].id.in (),
@@ -334,19 +336,21 @@ NContextExt_Client_i::print_values (CosNaming::Name name,
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("The string form of the input name is: \n%s\n\n"),
str_name.in ()));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("The unstringified version of the name components are:,"
- "The first component id is %s,"
- "The first component kind is %s,"
- "The second component id is %s,"
- "The second component kind is %s\n\n"),
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("The unstringified version of the name components are:,")
+ ACE_TEXT ("The first component id is %s,")
+ ACE_TEXT ("The first component kind is %s,")
+ ACE_TEXT ("The second component id is %s,")
+ ACE_TEXT ("The second component kind is %s\n\n"),
nm[0].id.in (),
nm[0].kind.in (),
nm[1].id.in (),
nm[1].kind.in ()));
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("When the address of the NamingContext is:"
- "myhost.555xyz.com:9999"
- "and the Object name is \n%s\n"),
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("When the address of the NamingContext is:")
+ ACE_TEXT ("myhost.555xyz.com:9999")
+ ACE_TEXT ("and the Object name is \n%s\n"),
obj_name.in ()));
ACE_DEBUG ((LM_DEBUG,ACE_TEXT ("The URL form of the string is \n %s\n"),
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/LB_server.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/LB_server.cpp
index f112c8a0af6..dda25bc2f2d 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/LB_server.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/LB_server.cpp
@@ -62,7 +62,7 @@ int
LB_server::write_ior_to_file (const char *ior)
{
FILE *output_file =
- ACE_OS::fopen ("obj.ior", "w");
+ ACE_OS::fopen ("obj.ior", ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile.am b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile.am
index 790bd327a7e..2f7b0d81de7 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile.am
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/Makefile.am
@@ -50,9 +50,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Application_Controlled_Client.am
if BUILD_AMI
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/README b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/README
deleted file mode 100644
index 107953609c2..00000000000
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/README
+++ /dev/null
@@ -1,11 +0,0 @@
-This program tests the application controlled membership support
-of the Cygnus load balancer. The aim is to allow the application
-to create the replicas and then forcefully add them as the members
-of the object group maintained by the Cygnus load balancer. When
-the clients make a request on the IOR exported by the load
-balancer, the load balancer makes use of the round robin algorithm
-to make a call on any of the object group members registered with
-the load balancer.
-
-Please see $TAO_ROOT/orbsvcs/orbsvcs/Loadbalancing for the implementations
-of the Cygnus load balancer.
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/client.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/client.cpp
index 3a588d90066..88c05a0f529 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/client.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/client.cpp
@@ -1,5 +1,6 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Controlled,
client,
@@ -10,7 +11,7 @@ const char *ior = "file://obj.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,15 +35,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/server.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/server.cpp
index 68236f62685..aa6052041ae 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/server.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/server.cpp
@@ -1,13 +1,16 @@
#include "LB_server.h"
#include "Basic.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Application_Controlled,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
const char *location1 = "MyLocation 1";
@@ -17,7 +20,7 @@ main (int argc, char *argv[])
const char *location5 = "MyLocation 5";
const char *location6 = "MyLocation 6";
- LB_server lb_server (argc, argv);
+ LB_server lb_server (convert.get_argc(), convert.get_ASCII_argv());
if (lb_server.start_orb_and_poa () == -1)
return 1;
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/LB_server.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/LB_server.cpp
index fef78510c70..117895744c3 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/LB_server.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/LB_server.cpp
@@ -75,7 +75,7 @@ int
LB_server::write_ior_to_file (const char *ior)
{
FILE *output_file =
- ACE_OS::fopen ("obj.ior", "w");
+ ACE_OS::fopen ("obj.ior", ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile.am b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile.am
index dc8274354ea..adf40fc12d3 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile.am
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/Makefile.am
@@ -50,9 +50,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Infrastructure_Controlled_Client.am
if BUILD_AMI
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/README b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/README
deleted file mode 100644
index 679b3d67b4b..00000000000
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/README
+++ /dev/null
@@ -1,8 +0,0 @@
-This program tests the infrastructure controlled membership support
-of the Cygnus Load Balancer. The aim is to allow Cygnus to set the
-factories needed to create the "replicas", when the object group
-is created. This way, the load balancer can decide when to create
-the object group members.
-
-Please see $TAO_ROOT/orbsvcs/orbsvcs/Loadbalancing for the implementations
-of the Cygnus load balancer.
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/client.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/client.cpp
index 8a85b412846..7f15ba73cd1 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/client.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/client.cpp
@@ -1,5 +1,6 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Infrastructure_Controlled,
@@ -12,7 +13,7 @@ const char *ior = "file://obj.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,15 +37,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp
index 735da982dc4..689942f3808 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/server.cpp
@@ -1,18 +1,21 @@
#include "LB_server.h"
#include "Factory.h"
#include "Simple.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Infrastructure_Controlled,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
const char *location1 = "MyLocation 1";
const char *location2 = "MyLocation 2";
- LB_server lb_server (argc, argv);
+ LB_server lb_server (convert.get_argc(), convert.get_ASCII_argv());
if (lb_server.start_orb_and_poa () == -1)
return 1;
diff --git a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/server.cpp b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/server.cpp
index 4f4724ab6c6..aa5eaba1146 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/server.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Manage_Object_Group/server.cpp
@@ -1,19 +1,22 @@
#include "LB_server.h"
#include "Basic.h"
#include "Simple.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Manage_object_group,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
const char *location1 = "MyLocation 1";
- LB_server lb_server (argc, argv);
+ LB_server lb_server (convert.get_argc(), convert.get_ASCII_argv());
if (lb_server.start_orb_and_poa () == -1)
return 1;
diff --git a/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp b/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp
index ccae399abb8..cdbe425b4d6 100644
--- a/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp
+++ b/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp
@@ -3,6 +3,7 @@
#include "orbsvcs/CosLoadBalancingC.h"
#include "orbsvcs/PortableGroup/PG_Operators.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
ACE_RCSID (CPU,
@@ -18,7 +19,7 @@ const CosLoadBalancing::LoadId LOAD_ID = CosLoadBalancing::LoadAverage;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "l:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "l:");
int c;
@@ -62,14 +63,15 @@ check_loads (const CosLoadBalancing::LoadList & loads
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp b/TAO/orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp
index d7123478053..ef980bfa7f0 100644
--- a/TAO/orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp
+++ b/TAO/orbsvcs/tests/Log/Basic_Log_Test/Basic_Log_Test.cpp
@@ -1,8 +1,11 @@
#include "Basic_Log_Test.h"
+#include "orbsvcs/Time_Utilities.h"
+
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Log_Msg.h"
#include "ace/SString.h"
#include "ace/OS_NS_stdio.h"
@@ -34,8 +37,7 @@ BasicLog_Test::init (int argc, char *argv[])
ACE_TRY
{
// Initialize the ORB
- orb_ = CORBA::ORB_init (argc,
- argv,
+ orb_ = CORBA::ORB_init (argc, argv,
"internet"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -542,7 +544,7 @@ BasicLog_Test::test_query(CORBA::ULong numberOfRecordsToWrite)
int
BasicLog_Test::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "di");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "di");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/Log/Basic_Log_Test/client.cpp b/TAO/orbsvcs/tests/Log/Basic_Log_Test/client.cpp
index b906b2fb1e5..345e0c82b2f 100644
--- a/TAO/orbsvcs/tests/Log/Basic_Log_Test/client.cpp
+++ b/TAO/orbsvcs/tests/Log/Basic_Log_Test/client.cpp
@@ -1,6 +1,7 @@
#include "Basic_Log_Test.h"
#include "ace/Log_Msg.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Basic_Log_Test,
client,
@@ -9,11 +10,13 @@ ACE_RCSID (Basic_Log_Test,
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
BasicLog_Test log_test;
ACE_DEBUG((LM_DEBUG, "\nBasic Log test \n\n"));
- if (log_test.init(argc, argv) == -1)
+ if (log_test.init(convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
ACE_ERROR_RETURN((LM_ERROR,
"xx - Failed initializing BasicLog_Test.\n"),-1);
diff --git a/TAO/orbsvcs/tests/Makefile.am b/TAO/orbsvcs/tests/Makefile.am
index e4c325e5f26..d6120c54d79 100644
--- a/TAO/orbsvcs/tests/Makefile.am
+++ b/TAO/orbsvcs/tests/Makefile.am
@@ -15,13 +15,9 @@ SUBDIRS = \
Bug_1393_Regression \
Bug_1395_Regression \
Bug_1630_Regression \
- Bug_2074_Regression \
Bug_2137_Regression \
Bug_2247_Regression \
Bug_2248_Regression \
- Bug_2285_Regression \
- Bug_2287_Regression \
- Bug_2316_Regression \
Concurrency \
CosEvent \
EC_Custom_Marshal \
diff --git a/TAO/orbsvcs/tests/Miop/McastHello/Makefile.am b/TAO/orbsvcs/tests/Miop/McastHello/Makefile.am
index 1e22b2b576c..3dd323825c1 100644
--- a/TAO/orbsvcs/tests/Miop/McastHello/Makefile.am
+++ b/TAO/orbsvcs/tests/Miop/McastHello/Makefile.am
@@ -50,9 +50,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.McastHello_Client.am
if BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/tests/Miop/McastHello/client.cpp b/TAO/orbsvcs/tests/Miop/McastHello/client.cpp
index 10180538dbf..7433d1064e7 100644
--- a/TAO/orbsvcs/tests/Miop/McastHello/client.cpp
+++ b/TAO/orbsvcs/tests/Miop/McastHello/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Object_T.h"
#include "orbsvcs/PortableGroup/MIOP.h"
@@ -14,7 +15,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,15 +39,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/orbsvcs/tests/Miop/McastHello/server.cpp b/TAO/orbsvcs/tests/Miop/McastHello/server.cpp
index ecf06638ce2..4856873214d 100644
--- a/TAO/orbsvcs/tests/Miop/McastHello/server.cpp
+++ b/TAO/orbsvcs/tests/Miop/McastHello/server.cpp
@@ -2,6 +2,7 @@
#include "McastHello.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
#include "orbsvcs/PortableGroup/MIOP.h"
#include "orbsvcs/PortableGroup/GOA.h"
@@ -21,7 +22,7 @@ static const char *group_ior = "corbaloc:miop:1.0@1.0-TestDomain-1/224.1.239.2:1
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -50,12 +51,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -75,7 +78,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Get the group IOR.
@@ -87,7 +90,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the Group IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/Notify/Basic/AdminProperties.cpp b/TAO/orbsvcs/tests/Notify/Basic/AdminProperties.cpp
index 08309efacca..378e9f97e45 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/AdminProperties.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/AdminProperties.cpp
@@ -3,6 +3,7 @@
#include "AdminProperties.h"
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "tao/debug.h"
@@ -146,7 +147,7 @@ AdminProperties::~AdminProperties (void)
int
AdminProperties::parse_args(int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
const char *current_arg = 0;
@@ -468,13 +469,15 @@ AdminProperties::create_consumers (ACE_ENV_SINGLE_ARG_DECL)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
AdminProperties test;
ACE_TRY_NEW_ENV
{
- test.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ test.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
test.run_test (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Basic.mpc b/TAO/orbsvcs/tests/Notify/Basic/Basic.mpc
index 8ffdc65eb82..f41844762f9 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Basic.mpc
+++ b/TAO/orbsvcs/tests/Notify/Basic/Basic.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*Notify ConnectDisconnect): notifytest {
- exename = ConnectDisconnect
Source_Files {
ConnectDisconnect.cpp
}
@@ -10,63 +9,54 @@ project(*Notify ConnectDisconnect): notifytest {
project(*Notify LifeCycle): notifytest {
- exename = LifeCycle
Source_Files {
LifeCycle.cpp
}
}
project(*Notify IdAssignment): notifytest {
- exename = IdAssignment
Source_Files {
IdAssignment.cpp
}
}
project(*Notify Events): notifytest {
- exename = Events
Source_Files {
Events.cpp
}
}
project(*Notify AdminProperties): notifytest {
- exename = AdminProperties
Source_Files {
AdminProperties.cpp
}
}
project(*Notify Simple): notifytest {
- exename = Simple
Source_Files {
Simple.cpp
}
}
project(*Notify MultiTypes): notifytest {
- exename = MultiTypes
Source_Files {
MultiTypes.cpp
}
}
project(*Notify Filter): notifytest {
- exename = Filter
Source_Files {
Filter.cpp
}
}
project(*Notify Updates): notifytest {
- exename = Updates
Source_Files {
Updates.cpp
}
}
project(*Notify Sequence): notifytest {
- exename = Sequence
Source_Files {
Sequence.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp
index f3087187a05..4ef65ef09cd 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "ConnectDisconnect.h"
@@ -142,7 +143,7 @@ ConnectDisconnect::init (int argc,
int
ConnectDisconnect::parse_args(int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc,
+ ACE_TArg_Shifter< char > arg_shifter (argc,
argv);
const char *current_arg = 0;
@@ -350,18 +351,20 @@ ConnectDisconnect::check_results (void)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ConnectDisconnect client;
- if (client.parse_args (argc, argv) == -1)
+ if (client.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
client.run_test (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h
index a08cd5dd3ad..7648731fe48 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/ConnectDisconnect.h
@@ -73,7 +73,7 @@ public:
char *argv[]);
int init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// initialization.
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Events.cpp b/TAO/orbsvcs/tests/Notify/Basic/Events.cpp
index 58d348d5859..ddaaf415280 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Events.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/Events.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "Events.h"
@@ -145,10 +146,9 @@ Events::init (int argc,
}
int
-Events::parse_args (int argc,
- char *argv[])
+Events::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc,
+ ACE_TArg_Shifter< char > arg_shifter (argc,
argv);
const char *current_arg = 0;
@@ -322,19 +322,20 @@ Events::check_results (void)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Events events;
- if (events.parse_args (argc, argv) == -1)
+ if (events.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- events.init (argc,
- argv
+ events.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Events.h b/TAO/orbsvcs/tests/Notify/Basic/Events.h
index e7493489b67..899c71f5c85 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Events.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/Events.h
@@ -74,7 +74,7 @@ public:
char *argv[]) ;
int init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// Initialization.
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Filter.cpp b/TAO/orbsvcs/tests/Notify/Basic/Filter.cpp
index 3d54679c307..e27ed2f1dcc 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Filter.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/Filter.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "Filter.h"
@@ -152,7 +153,6 @@ Filter::verify_filter_count (CosNotifyFilter::FilterAdmin_ptr filter_admin, CORB
{
expected_count = expected_count; // if we don;t do this, we get a warning on linux about arg not used.
CosNotifyFilter::FilterIDSeq_var filter_seq = filter_admin->get_all_filters (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
ACE_ASSERT (filter_seq->length () == expected_count);
}
@@ -219,19 +219,20 @@ Filter::create_EC (ACE_ENV_SINGLE_ARG_DECL)
//***************************************************************************
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Filter events;
- if (events.parse_args (argc, argv) == -1)
+ if (events.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- events.init (argc,
- argv
+ events.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Filter.h b/TAO/orbsvcs/tests/Notify/Basic/Filter.h
index 9bd93156d6d..8431336a32c 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Filter.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/Filter.h
@@ -35,7 +35,7 @@ public:
virtual ~Filter (void);
int init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// initialization.
diff --git a/TAO/orbsvcs/tests/Notify/Basic/IdAssignment.cpp b/TAO/orbsvcs/tests/Notify/Basic/IdAssignment.cpp
index ebfd98f3df1..e426c722707 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/IdAssignment.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/IdAssignment.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/CosNotifyCommC.h"
@@ -24,10 +25,9 @@ IdAssignment::~IdAssignment (void)
}
int
-IdAssignment::parse_args (int argc,
- char *argv[])
+IdAssignment::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
const char *current_arg = 0;
@@ -83,8 +83,7 @@ IdAssignment::init (int argc,
char *argv[]
ACE_ENV_ARG_DECL)
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv,
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -458,18 +457,18 @@ IdAssignment::run_test(ACE_ENV_SINGLE_ARG_DECL)
//********************************************************************************
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
IdAssignment test;
- test.parse_args (argc,
- argv);
+ test.parse_args (convert.get_argc(), convert.get_ASCII_argv());
- test.init (argc,
- argv
+ test.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.cpp b/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.cpp
index 0bb420600c7..9e86827c5c4 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include <orbsvcs/CosNamingC.h>
#include <orbsvcs/CosNotifyCommC.h>
@@ -23,10 +24,9 @@ LifeCycle::~LifeCycle (void)
}
int
-LifeCycle::parse_args (int argc,
- char *argv[])
+LifeCycle::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc,
+ ACE_TArg_Shifter< char > arg_shifter (argc,
argv);
const char *current_arg = 0;
@@ -65,8 +65,7 @@ LifeCycle::init (int argc,
char* argv[]
ACE_ENV_ARG_DECL)
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (argc, argv,
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -242,18 +241,18 @@ LifeCycle::destroy_ec (ACE_ENV_SINGLE_ARG_DECL)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
LifeCycle test;
- test.parse_args (argc,
- argv);
+ test.parse_args (convert.get_argc(), convert.get_ASCII_argv());
- test.init (argc,
- argv
+ test.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Makefile.am b/TAO/orbsvcs/tests/Notify/Basic/Makefile.am
index 4d878262ef6..ced1d9899e8 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Basic/Makefile.am
@@ -17,7 +17,6 @@ noinst_PROGRAMS =
## Makefile.Basic_Notify_AdminProperties.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += AdminProperties
@@ -38,13 +37,6 @@ AdminProperties_SOURCES = \
AdminProperties_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -60,11 +52,9 @@ AdminProperties_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_ConnectDisconnect.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += ConnectDisconnect
@@ -85,13 +75,6 @@ ConnectDisconnect_SOURCES = \
ConnectDisconnect_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -107,11 +90,9 @@ ConnectDisconnect_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_Events.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Events
@@ -132,13 +113,6 @@ Events_SOURCES = \
Events_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -154,11 +128,9 @@ Events_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_Filter.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Filter
@@ -179,13 +151,6 @@ Filter_SOURCES = \
Filter_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -201,11 +166,9 @@ Filter_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_IdAssignment.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += IdAssignment
@@ -226,13 +189,6 @@ IdAssignment_SOURCES = \
IdAssignment_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -248,11 +204,9 @@ IdAssignment_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_LifeCycle.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += LifeCycle
@@ -273,13 +227,6 @@ LifeCycle_SOURCES = \
LifeCycle_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -295,11 +242,9 @@ LifeCycle_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_MultiTypes.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += MultiTypes
@@ -320,13 +265,6 @@ MultiTypes_SOURCES = \
MultiTypes_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -342,11 +280,9 @@ MultiTypes_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_Sequence.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence
@@ -367,13 +303,6 @@ Sequence_SOURCES = \
Sequence_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -389,11 +318,9 @@ Sequence_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_Simple.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Simple
@@ -414,13 +341,6 @@ Simple_SOURCES = \
Simple_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -436,11 +356,9 @@ Simple_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Basic_Notify_Updates.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Updates
@@ -461,13 +379,6 @@ Updates_SOURCES = \
Updates_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -483,7 +394,6 @@ Updates_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.cpp b/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.cpp
index f8bb9dd472a..70367532e69 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "MultiTypes.h"
@@ -100,7 +101,6 @@ MultiTypes::on_received_event (MultiTypes_PushConsumer* consumer)
if (disconnect_on_last_event_ == 1)
{
consumer->disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
if (TAO_debug_level)
ACE_DEBUG ((LM_DEBUG, "PushConsumer has been disconnected.\n"));
consumer = 0;
@@ -120,7 +120,6 @@ MultiTypes::on_received_event (MultiTypes_StructuredPushConsumer* consumer)
if (disconnect_on_last_event_ == 1)
{
consumer->disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
if (TAO_debug_level)
ACE_DEBUG ((LM_DEBUG, "StructuredPushConsumer has been disconnected.\n"));
consumer = 0;
@@ -140,8 +139,6 @@ MultiTypes::on_received_event (MultiTypes_SequencePushConsumer* consumer)
if (disconnect_on_last_event_ == 1)
{
consumer->disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
if (TAO_debug_level)
ACE_DEBUG ((LM_DEBUG, "SequencePushConsumer has been disconnected.\n"));
consumer = 0;
@@ -379,19 +376,20 @@ MultiTypes::check_results (void)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
MultiTypes client;
- if (client.parse_args (argc, argv) == -1)
+ if (client.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- client.init (argc,
- argv
+ client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.h b/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.h
index ac2701e61b8..0076aef88e0 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/MultiTypes.h
@@ -108,7 +108,7 @@ public:
char *argv[]);
int init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// initialization.
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Sequence.cpp b/TAO/orbsvcs/tests/Notify/Basic/Sequence.cpp
index 7842be55e57..4dd49a84bb0 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Sequence.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/Sequence.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "tao/debug.h"
#include "Sequence.h"
@@ -71,7 +72,7 @@ Sequence::init (int argc,
"Options: event count = %d \n"
"supplier batch size = %d \n"
"consumer batch size = %d \n"
- "pacing = %d secs \n"
+ "pacing = %d \n"
, event_count_
, supplier_batch_size_
, consumer_batch_size_
@@ -124,7 +125,7 @@ Sequence::init (int argc,
properties[0].name = CORBA::string_dup (CosNotification::MaximumBatchSize);
properties[0].value <<= (CORBA::Long) this->consumer_batch_size_;
properties[1].name = CORBA::string_dup (CosNotification::PacingInterval);
- properties[1].value <<= (TimeBase::TimeT) (this->pacing_ * 1000 * 10000);
+ properties[1].value <<= (TimeBase::TimeT) this->pacing_;
properties[2].name = CORBA::string_dup (CosNotification::OrderPolicy);
properties[2].value <<= this->order_policy_;
@@ -147,10 +148,9 @@ Sequence::init (int argc,
}
int
-Sequence::parse_args (int argc,
- char *argv[])
+Sequence::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc,
+ ACE_TArg_Shifter< char > arg_shifter (argc,
argv);
const char *current_arg = 0;
@@ -180,9 +180,9 @@ Sequence::parse_args (int argc,
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter ("-Pacing"))) // in seconds
+ else if ((current_arg = arg_shifter.get_the_parameter ("-Pacing")))
{
- this->pacing_ = (TimeBase::TimeT) ACE_OS::atoi (current_arg);
+ this->pacing_ = (TimeBase::TimeT) ACE_OS::atoi (current_arg); // pacing
arg_shifter.consume_arg ();
}
@@ -354,19 +354,20 @@ Sequence::check_results (void)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Sequence events;
- if (events.parse_args (argc, argv) == -1)
+ if (events.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- events.init (argc,
- argv
+ events.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Sequence.h b/TAO/orbsvcs/tests/Notify/Basic/Sequence.h
index 5a8e1138f3b..aed998ddb9e 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Sequence.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/Sequence.h
@@ -75,7 +75,7 @@ public:
char *argv[]) ;
int init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// Initialization.
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp b/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp
index fd0dffb4620..ba48eb507c7 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/Simple.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "Simple.h"
@@ -124,10 +125,9 @@ Simple_Test::init (int argc,
}
int
-Simple_Test::parse_args (int argc,
- char *argv[])
+Simple_Test::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc,
+ ACE_TArg_Shifter< char > arg_shifter (argc,
argv);
const char *current_arg = 0;
@@ -238,19 +238,20 @@ Simple_Test::check_results (void)
//***************************************************************************
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Simple_Test events;
- if (events.parse_args (argc, argv) == -1)
+ if (events.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- events.init (argc,
- argv
+ events.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Simple.h b/TAO/orbsvcs/tests/Notify/Basic/Simple.h
index a941fcfb027..b4022839e36 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Simple.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/Simple.h
@@ -75,7 +75,7 @@ public:
char *argv[]) ;
int init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// initialization.
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp b/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp
index 3933aaa37a1..73bb7694a96 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp
+++ b/TAO/orbsvcs/tests/Notify/Basic/Updates.cpp
@@ -2,6 +2,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/debug.h"
#include "Updates.h"
@@ -463,14 +464,15 @@ Updates::test_offer_change (ACE_ENV_SINGLE_ARG_DECL)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Updates updates;
ACE_TRY_NEW_ENV
{
- updates.init (argc,
- argv
+ updates.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/Basic/Updates.h b/TAO/orbsvcs/tests/Notify/Basic/Updates.h
index e4c7104f9bf..a2cc8ae170b 100644
--- a/TAO/orbsvcs/tests/Notify/Basic/Updates.h
+++ b/TAO/orbsvcs/tests/Notify/Basic/Updates.h
@@ -78,7 +78,7 @@ public:
Updates (void);
virtual ~Updates ();
- int init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// initialization.
void run_test (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl b/TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl
index a118126af0b..c44a9f0ffde 100755
--- a/TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl
+++ b/TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl
@@ -18,44 +18,44 @@ $status = 0;
(
{
name => "AdminProperties",
- args => "-ORBSvcConf adminproperties.conf -ORBConnectIPV6Only 1",
+ args => "-ORBSvcConf adminproperties.conf -ORBConnectIPV6Only YES",
},
{
name => "ConnectDisconnect",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
extra => 300,
},
{
name => "Events",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "IdAssignment",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "LifeCycle",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "Simple",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "MultiTypes",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "Filter",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "Updates",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
{
name => "Sequence",
- args => "-ORBConnectIPV6Only 1",
+ args => "-ORBConnectIPV6Only YES",
},
);
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/Blocking.mpc b/TAO/orbsvcs/tests/Notify/Blocking/Blocking.mpc
index 7a7aa3a1a27..db65b9d4bf6 100644
--- a/TAO/orbsvcs/tests/Notify/Blocking/Blocking.mpc
+++ b/TAO/orbsvcs/tests/Notify/Blocking/Blocking.mpc
@@ -27,6 +27,7 @@ project(*Ntf Struct Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Structured_Push_Consumer.cpp
Structured_Consumer.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/Makefile.am b/TAO/orbsvcs/tests/Notify/Blocking/Makefile.am
index c14da3f82da..099a4a73ecd 100644
--- a/TAO/orbsvcs/tests/Notify/Blocking/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Blocking/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Blocking_Ntf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -73,18 +69,13 @@ Structured_Consumer_CPPFLAGS = \
Structured_Consumer_SOURCES = \
Notify_Structured_Push_Consumer.cpp \
Structured_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +91,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Blocking_Ntf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -123,17 +112,11 @@ Structured_Supplier_SOURCES = \
Structured_Supplier.cpp \
goC.cpp \
goS.cpp \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -149,7 +132,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp
index 3e7c1986bb9..95379cf09d0 100644
--- a/TAO/orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Blocking/Notify_Structured_Push_Consumer.cpp
@@ -94,8 +94,8 @@ Notify_Structured_Push_Consumer::push_structured_event (
if (this->count_ > this->expected_)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Structured Consumer (%P|%t): ERROR: too "
- "many events received.\n")));
+ ACE_TEXT ("Structured Consumer (%P|%t): ERROR: too ")
+ ACE_TEXT ("many events received.\n")));
}
if (this->count_ >= this->expected_)
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp
index c1ef387256c..2eee91d4016 100644
--- a/TAO/orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Blocking/Structured_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "orbsvcs/CosNotifyCommC.h"
@@ -36,7 +37,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:e:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:e:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -110,14 +111,16 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status != 0)
ACE_ERROR_RETURN ((LM_ERROR, "Error: Client init failed.\n"),1);
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp
index 8097361c468..74e781eb3df 100644
--- a/TAO/orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Blocking/Structured_Supplier.cpp
@@ -4,8 +4,8 @@
// Include Section
// ******************************************************************
-#include "ace/Auto_Ptr.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
@@ -82,7 +82,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d");
int c;
while ((c = get_opts ()) != -1)
@@ -173,14 +173,16 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -203,7 +205,7 @@ int main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/common.cpp b/TAO/orbsvcs/tests/Notify/Blocking/common.cpp
new file mode 100644
index 00000000000..b842263a6f4
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Blocking/common.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "common.h"
+
+#include "orbsvcs/CosNotifyCommC.h"
+#include "orbsvcs/CosNamingC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+
+
+const char*
+Any_String (const CORBA::Any& any)
+{
+ static char out[256] = "";
+ CORBA::Short s;
+ CORBA::UShort us;
+ CORBA::Long l;
+ CORBA::ULong ul;
+ CORBA::ULongLong ull;
+ const char* str;
+
+ if (any >>= s)
+ {
+ ACE_OS::sprintf (out, "%d", s);
+ }
+ else if (any >>= us)
+ {
+ ACE_OS::sprintf (out, "%u", us);
+ }
+ else if (any >>= l)
+ {
+ ACE_OS::sprintf (out, "%d", l);
+ }
+ else if (any >>= ul)
+ {
+ ACE_OS::sprintf (out, "%u", ul);
+ }
+ else if (any >>= str)
+ {
+ ACE_OS::strcpy (out, str);
+ }
+ else if (any >>= ull)
+ {
+#if defined (ACE_LACKS_LONGLONG_T)
+ ACE_OS::strcpy (out, ull.as_string (out));
+#else
+ double temp =
+# if defined (ACE_CONFIG_WIN32_H)
+ static_cast<double> (static_cast<CORBA::LongLong> (ull));
+# else
+ ull;
+# endif /* ACE_CONFIG_WIN32_H */
+
+ ACE_OS::sprintf (out, "%.0f", temp);
+#endif /* ACE_LACKS_LONGLONG_T */
+ }
+ else
+ {
+ ACE_OS::strcpy (out, "Unsupported Any Type");
+ }
+
+ return out;
+}
diff --git a/TAO/orbsvcs/tests/Notify/Blocking/common.h b/TAO/orbsvcs/tests/Notify/Blocking/common.h
new file mode 100644
index 00000000000..0e37aa80491
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Blocking/common.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/Notify/Discarding
+//
+// = FILENAME
+// common.h
+//
+// = DESCRIPTION
+// A couple of useful functions
+//
+// = AUTHOR
+// Chad Elliott <elliott_c@ociweb.com>
+//
+// ==========================================================================
+#ifndef TAO_COMMON_H
+#define TAO_COMMON_H
+
+#include "orbsvcs/CosNotifyChannelAdminS.h"
+
+const char*
+Any_String (const CORBA::Any& any);
+
+#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/Destroy/Makefile.am b/TAO/orbsvcs/tests/Notify/Destroy/Makefile.am
index b9aa46216ab..1e57ff1ede7 100644
--- a/TAO/orbsvcs/tests/Notify/Destroy/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Destroy/Makefile.am
@@ -16,7 +16,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Notify_Test_Destroy.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = Notify_Tests_Destroy
@@ -37,13 +36,6 @@ Notify_Tests_Destroy_SOURCES = \
Notify_Tests_Destroy_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -59,7 +51,6 @@ Notify_Tests_Destroy_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Destroy/main.cpp b/TAO/orbsvcs/tests/Notify/Destroy/main.cpp
index 09944124843..fd925c0b1ee 100644
--- a/TAO/orbsvcs/tests/Notify/Destroy/main.cpp
+++ b/TAO/orbsvcs/tests/Notify/Destroy/main.cpp
@@ -3,15 +3,18 @@
#include "../lib/Notify_Test_Client.h"
#include "orbsvcs/NotifyExtC.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
int
ACE_TMAIN (int argc, char *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the base class.
Notify_Test_Client client;
- client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
CosNotifyChannelAdmin::EventChannelFactory_ptr ecf = client.notify_factory ();
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Discarding.mpc b/TAO/orbsvcs/tests/Notify/Discarding/Discarding.mpc
index f8e99b34ec2..d2d18f86ace 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Discarding.mpc
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Discarding.mpc
@@ -27,6 +27,7 @@ project(*Ntf Struct Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Structured_Push_Consumer.cpp
Structured_Consumer.cpp
}
@@ -53,6 +54,7 @@ project(*Ntf Seq Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Sequence_Push_Consumer.cpp
Sequence_Consumer.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Makefile.am b/TAO/orbsvcs/tests/Notify/Discarding/Makefile.am
index a40b3ce1e16..eaac6e439f2 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Discarding_Ntf_Seq_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Consumer
@@ -73,18 +69,13 @@ Sequence_Consumer_CPPFLAGS = \
Sequence_Consumer_SOURCES = \
Notify_Sequence_Push_Consumer.cpp \
Sequence_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +91,9 @@ Sequence_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Discarding_Ntf_Seq_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Supplier
@@ -124,17 +113,11 @@ Sequence_Supplier_SOURCES = \
goC.cpp \
goS.cpp \
Notify_Sequence_Push_Consumer.h \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Sequence_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -150,11 +133,9 @@ Sequence_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Discarding_Ntf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -172,18 +153,13 @@ Structured_Consumer_CPPFLAGS = \
Structured_Consumer_SOURCES = \
Notify_Structured_Push_Consumer.cpp \
Structured_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -199,11 +175,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Discarding_Ntf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -223,17 +197,11 @@ Structured_Supplier_SOURCES = \
goC.cpp \
goS.cpp \
Notify_Sequence_Push_Consumer.h \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -249,7 +217,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp
index f107177b9d5..c37bda7f2a9 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Notify_Structured_Push_Consumer.cpp
@@ -76,8 +76,8 @@ Notify_Structured_Push_Consumer::push_structured_event (
{
this->client_.consumer_done (this);
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Structured Consumer (%P|%t): ERROR: too "
- "many events received (%d).\n"), this->count_));
+ ACE_TEXT ("Structured Consumer (%P|%t): ERROR: too ")
+ ACE_TEXT ("many events received (%d).\n"), this->count_));
}
ACE_ASSERT(ACE_OS::strcmp(event.header.variable_header[0].name.in(), "Id") == 0);
@@ -131,7 +131,7 @@ Notify_Structured_Push_Consumer::push_structured_event (
this->client_.consumer_done (this);
}
- ACE_DEBUG((LM_DEBUG, "received %d\n", id));
+ ACE_DEBUG((LM_DEBUG, "received %d\n", expected, id));
// We should receive mepc + 1, because the first event will be in-transit
// before our sleep causes the notify to queue events.
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp
index d357454f33d..8929c89305f 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "orbsvcs/CosNotifyCommC.h"
@@ -37,7 +38,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:l:h:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:l:h:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -133,14 +134,16 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp
index 95d08daca21..cef82710b31 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Sequence_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -96,7 +97,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d");
int c;
while ((c = get_opts ()) != -1)
@@ -207,14 +208,16 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -243,7 +246,7 @@ int main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
ACE_ASSERT(output_file != 0);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp
index b457324f6ed..631b0e2d8e3 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Structured_Consumer.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/CosNamingC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_strings.h"
@@ -26,7 +27,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:e:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:e:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -127,14 +128,16 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
index 9fee28c5c34..5b1aee259d2 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -87,7 +88,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d");
int c;
while ((c = get_opts ()) != -1)
@@ -188,14 +189,16 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -224,7 +227,7 @@ int main (int argc, char* argv[])
client.orb ()->object_to_string (sig.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
ACE_ASSERT (output_file != 0);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/common.cpp b/TAO/orbsvcs/tests/Notify/Discarding/common.cpp
new file mode 100644
index 00000000000..b842263a6f4
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Discarding/common.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "common.h"
+
+#include "orbsvcs/CosNotifyCommC.h"
+#include "orbsvcs/CosNamingC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+
+
+const char*
+Any_String (const CORBA::Any& any)
+{
+ static char out[256] = "";
+ CORBA::Short s;
+ CORBA::UShort us;
+ CORBA::Long l;
+ CORBA::ULong ul;
+ CORBA::ULongLong ull;
+ const char* str;
+
+ if (any >>= s)
+ {
+ ACE_OS::sprintf (out, "%d", s);
+ }
+ else if (any >>= us)
+ {
+ ACE_OS::sprintf (out, "%u", us);
+ }
+ else if (any >>= l)
+ {
+ ACE_OS::sprintf (out, "%d", l);
+ }
+ else if (any >>= ul)
+ {
+ ACE_OS::sprintf (out, "%u", ul);
+ }
+ else if (any >>= str)
+ {
+ ACE_OS::strcpy (out, str);
+ }
+ else if (any >>= ull)
+ {
+#if defined (ACE_LACKS_LONGLONG_T)
+ ACE_OS::strcpy (out, ull.as_string (out));
+#else
+ double temp =
+# if defined (ACE_CONFIG_WIN32_H)
+ static_cast<double> (static_cast<CORBA::LongLong> (ull));
+# else
+ ull;
+# endif /* ACE_CONFIG_WIN32_H */
+
+ ACE_OS::sprintf (out, "%.0f", temp);
+#endif /* ACE_LACKS_LONGLONG_T */
+ }
+ else
+ {
+ ACE_OS::strcpy (out, "Unsupported Any Type");
+ }
+
+ return out;
+}
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/common.h b/TAO/orbsvcs/tests/Notify/Discarding/common.h
new file mode 100644
index 00000000000..0e37aa80491
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Discarding/common.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/Notify/Discarding
+//
+// = FILENAME
+// common.h
+//
+// = DESCRIPTION
+// A couple of useful functions
+//
+// = AUTHOR
+// Chad Elliott <elliott_c@ociweb.com>
+//
+// ==========================================================================
+#ifndef TAO_COMMON_H
+#define TAO_COMMON_H
+
+#include "orbsvcs/CosNotifyChannelAdminS.h"
+
+const char*
+Any_String (const CORBA::Any& any);
+
+#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/notify.conf b/TAO/orbsvcs/tests/Notify/Discarding/notify.conf
index a465090391d..372ec0ad29c 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/notify.conf
+++ b/TAO/orbsvcs/tests/Notify/Discarding/notify.conf
@@ -1,4 +1,4 @@
## $Id$
#
## Load the static Cos Notification Service
-static Notify_Default_Event_Manager_Objects_Factory "-AllocateTaskperProxy -DispatchingThreads 1"
+static Notify_Default_Event_Manager_Objects_Factory "-AllocateTaskperProxy -ListenerThreads 1"
diff --git a/TAO/orbsvcs/tests/Notify/Driver/Makefile.am b/TAO/orbsvcs/tests/Notify/Driver/Makefile.am
index 4840efbc367..580883c71de 100644
--- a/TAO/orbsvcs/tests/Notify/Driver/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Driver/Makefile.am
@@ -16,7 +16,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Notify_Test_Driver.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = Notify_Tests_Driver
@@ -36,13 +35,6 @@ Notify_Tests_Driver_SOURCES = \
Notify_Tests_Driver_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -58,7 +50,6 @@ Notify_Tests_Driver_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Driver/main.cpp b/TAO/orbsvcs/tests/Notify/Driver/main.cpp
index 1ad6142c0d4..6e50d7653df 100644
--- a/TAO/orbsvcs/tests/Notify/Driver/main.cpp
+++ b/TAO/orbsvcs/tests/Notify/Driver/main.cpp
@@ -2,15 +2,18 @@
#include "../lib/Driver.h"
#include "ace/OS_main.h"
+#include "ace/Argv_Type_Converter.h"
int
ACE_TMAIN (int argc, char *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO_Notify_Tests_Driver driver;
ACE_TRY_NEW_ENV
{
- int result = driver.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int result = driver.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result == -1)
diff --git a/TAO/orbsvcs/tests/Notify/MT_Dispatching/MT_Dispatching.mpc b/TAO/orbsvcs/tests/Notify/MT_Dispatching/MT_Dispatching.mpc
index d576fd2920e..7a7aa3a1a27 100644
--- a/TAO/orbsvcs/tests/Notify/MT_Dispatching/MT_Dispatching.mpc
+++ b/TAO/orbsvcs/tests/Notify/MT_Dispatching/MT_Dispatching.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*idl): taoidldefaults {
- avoids += ace_for_tao
IDL_Files {
go.idl
}
@@ -10,7 +9,6 @@ project(*idl): taoidldefaults {
}
project(*Ntf Struct Supp): notifytest {
- avoids += ace_for_tao
exename = Structured_Supplier
after += *idl
@@ -24,7 +22,6 @@ project(*Ntf Struct Supp): notifytest {
}
project(*Ntf Struct Cons): notifytest {
- avoids += ace_for_tao
exename = Structured_Consumer
after += *idl
diff --git a/TAO/orbsvcs/tests/Notify/MT_Dispatching/Makefile.am b/TAO/orbsvcs/tests/Notify/MT_Dispatching/Makefile.am
index 096b18abe78..c3e7343081f 100644
--- a/TAO/orbsvcs/tests/Notify/MT_Dispatching/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/MT_Dispatching/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.MT_Dispatching_Ntf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -78,13 +74,6 @@ Structured_Consumer_SOURCES = \
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +89,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.MT_Dispatching_Ntf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -127,13 +114,6 @@ Structured_Supplier_SOURCES = \
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -149,7 +129,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp
index 851210f4877..ee409dbf52b 100644
--- a/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosNotifyCommC.h"
#include "orbsvcs/CosNamingC.h"
@@ -37,7 +38,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:e:c:f");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:e:c:f");
int c;
while ((c = get_opts ()) != -1)
@@ -125,14 +126,16 @@ disconnect_consumers (ACE_ENV_SINGLE_ARG_DECL)
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
diff --git a/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp
index 4612ff106bf..9bb2820f430 100644
--- a/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/MT_Dispatching/Structured_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -84,7 +85,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:fc:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:fc:");
int c;
while ((c = get_opts ()) != -1)
@@ -194,13 +195,15 @@ disconnect_suppliers (ACE_ENV_SINGLE_ARG_DECL)
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
@@ -221,7 +224,7 @@ int main (int argc, char* argv[])
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Makefile.am b/TAO/orbsvcs/tests/Notify/Ordering/Makefile.am
index c11e3dbd0be..fb05b3d2936 100644
--- a/TAO/orbsvcs/tests/Notify/Ordering/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Ordering/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Ordering_Ntf_Seq_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Consumer
@@ -73,18 +69,13 @@ Sequence_Consumer_CPPFLAGS = \
Sequence_Consumer_SOURCES = \
Notify_Sequence_Push_Consumer.cpp \
Sequence_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +91,9 @@ Sequence_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Ordering_Ntf_Seq_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Supplier
@@ -124,17 +113,11 @@ Sequence_Supplier_SOURCES = \
goC.cpp \
goS.cpp \
Notify_Sequence_Push_Consumer.h \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Sequence_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -150,11 +133,9 @@ Sequence_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Ordering_Ntf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -172,18 +153,13 @@ Structured_Consumer_CPPFLAGS = \
Structured_Consumer_SOURCES = \
Notify_Structured_Push_Consumer.cpp \
Structured_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -199,11 +175,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Ordering_Ntf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -223,17 +197,11 @@ Structured_Supplier_SOURCES = \
goC.cpp \
goS.cpp \
Notify_Sequence_Push_Consumer.h \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -249,7 +217,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Ordering.mpc b/TAO/orbsvcs/tests/Notify/Ordering/Ordering.mpc
index c57d14c1ddc..3a3553e3753 100644
--- a/TAO/orbsvcs/tests/Notify/Ordering/Ordering.mpc
+++ b/TAO/orbsvcs/tests/Notify/Ordering/Ordering.mpc
@@ -27,6 +27,7 @@ project(*Ntf Struct Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Structured_Push_Consumer.cpp
Structured_Consumer.cpp
}
@@ -53,6 +54,7 @@ project(*Ntf Seq Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Sequence_Push_Consumer.cpp
Sequence_Consumer.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp
index 79f44545167..5a93e714da8 100644
--- a/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Consumer.cpp
@@ -8,6 +8,7 @@
#include "orbsvcs/CosNamingC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_stat.h"
@@ -27,7 +28,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ok:e:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ok:e:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -127,13 +128,15 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp
index c1d572de8c2..17097320483 100644
--- a/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Ordering/Sequence_Supplier.cpp
@@ -11,6 +11,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_strings.h"
#include "ace/Auto_Ptr.h"
@@ -72,7 +73,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -200,13 +201,15 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
@@ -234,7 +237,7 @@ int main (int argc, char* argv[])
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp
index d86df34f06b..ffb69a54092 100644
--- a/TAO/orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Ordering/Structured_Consumer.cpp
@@ -7,6 +7,7 @@
#include "orbsvcs/CosNamingC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
static const char* ior = "file://supplier.ior";
@@ -24,7 +25,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ok:e:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ok:e:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -122,13 +123,15 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp
index bda45d89f6c..6970ba38d0c 100644
--- a/TAO/orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Ordering/Structured_Supplier.cpp
@@ -12,6 +12,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Auto_Ptr.h"
@@ -72,7 +73,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -197,13 +198,15 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
@@ -231,7 +234,7 @@ int main (int argc, char* argv[])
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/common.cpp b/TAO/orbsvcs/tests/Notify/Ordering/common.cpp
new file mode 100644
index 00000000000..b842263a6f4
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Ordering/common.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "common.h"
+
+#include "orbsvcs/CosNotifyCommC.h"
+#include "orbsvcs/CosNamingC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+
+
+const char*
+Any_String (const CORBA::Any& any)
+{
+ static char out[256] = "";
+ CORBA::Short s;
+ CORBA::UShort us;
+ CORBA::Long l;
+ CORBA::ULong ul;
+ CORBA::ULongLong ull;
+ const char* str;
+
+ if (any >>= s)
+ {
+ ACE_OS::sprintf (out, "%d", s);
+ }
+ else if (any >>= us)
+ {
+ ACE_OS::sprintf (out, "%u", us);
+ }
+ else if (any >>= l)
+ {
+ ACE_OS::sprintf (out, "%d", l);
+ }
+ else if (any >>= ul)
+ {
+ ACE_OS::sprintf (out, "%u", ul);
+ }
+ else if (any >>= str)
+ {
+ ACE_OS::strcpy (out, str);
+ }
+ else if (any >>= ull)
+ {
+#if defined (ACE_LACKS_LONGLONG_T)
+ ACE_OS::strcpy (out, ull.as_string (out));
+#else
+ double temp =
+# if defined (ACE_CONFIG_WIN32_H)
+ static_cast<double> (static_cast<CORBA::LongLong> (ull));
+# else
+ ull;
+# endif /* ACE_CONFIG_WIN32_H */
+
+ ACE_OS::sprintf (out, "%.0f", temp);
+#endif /* ACE_LACKS_LONGLONG_T */
+ }
+ else
+ {
+ ACE_OS::strcpy (out, "Unsupported Any Type");
+ }
+
+ return out;
+}
diff --git a/TAO/orbsvcs/tests/Notify/Ordering/common.h b/TAO/orbsvcs/tests/Notify/Ordering/common.h
new file mode 100644
index 00000000000..679adb0a42c
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Ordering/common.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/Notify/Ordering
+//
+// = FILENAME
+// common.h
+//
+// = DESCRIPTION
+// A couple of useful functions
+//
+// = AUTHOR
+// Chad Elliott <elliott_c@ociweb.com>
+//
+// ==========================================================================
+#ifndef TAO_COMMON_H
+#define TAO_COMMON_H
+
+#include "orbsvcs/CosNotifyChannelAdminS.h"
+
+const char*
+Any_String (const CORBA::Any& any);
+
+#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp b/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp
index ea040206afc..e348c77a2d3 100644
--- a/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp
+++ b/TAO/orbsvcs/tests/Notify/PluggableTopology/main.cpp
@@ -38,11 +38,11 @@ namespace {
qos[i].name = "Priority";
qos[i++].value <<= (Short) 1234;
qos[i].name = "Timeout";
- qos[i++].value <<= (TimeBase::TimeT) 55555; // 5.5555 ms
+ qos[i++].value <<= (TimeBase::TimeT) 55555;
qos[i].name = "MaximumBatchSize";
qos[i++].value <<= (Long) 200;
qos[i].name = "PacingInterval";
- qos[i++].value <<= (TimeBase::TimeT) 42000; // 4.2ms
+ qos[i++].value <<= (TimeBase::TimeT) 42000;
qos[i].name = "StopTimeSupported";
qos[i++].value <<= Any::from_boolean(0);
qos.length(i);
@@ -61,7 +61,7 @@ namespace {
}
void setUp()
{
- ACE_ARGV av;
+ ACE_TARGV<char> av;
int ac = 0;
orb = ORB_init(ac, av.argv());
ACE_ASSERT(! is_nil(orb.in()));
@@ -80,7 +80,7 @@ namespace {
}
-int main(int, char**)
+int ACE_TMAIN(int, ACE_TCHAR**)
{
try
{
diff --git a/TAO/orbsvcs/tests/Notify/RT_lib/Makefile.am b/TAO/orbsvcs/tests/Notify/RT_lib/Makefile.am
index d31cf7083d6..acd2a5d29c0 100644
--- a/TAO/orbsvcs/tests/Notify/RT_lib/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/RT_lib/Makefile.am
@@ -16,7 +16,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.RT_Notify_lib.am
-if BUILD_CORBA_MESSAGING
if BUILD_RT_CORBA
if !BUILD_MINIMUM_CORBA
@@ -46,7 +45,6 @@ noinst_HEADERS = \
endif !BUILD_MINIMUM_CORBA
endif BUILD_RT_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.cpp b/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.cpp
index 4d9aa177a6c..f4396d74662 100644
--- a/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.cpp
@@ -20,22 +20,22 @@ TAO_Notify_Tests_RT_POA_Command::~TAO_Notify_Tests_RT_POA_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_RT_POA_Command::get_name (void)
{
return TAO_Notify_Tests_RT_POA_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_RT_POA_Command::name (void)
{
return TAO_Notify_Tests_Name::poa_command;
}
void
-TAO_Notify_Tests_RT_POA_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_RT_POA_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
if (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.h b/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.h
index b5bcb27a825..63b8625eb44 100644
--- a/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.h
+++ b/TAO/orbsvcs/tests/Notify/RT_lib/RT_POA_Command.h
@@ -42,14 +42,14 @@ public:
/// Parse args and populate options.
/// The arg_shifter options are read in the following manner: -Create <name> -PriorityModel <CLIENT|SERVER> <priority> -Lanes <count> (-Lane <priority> ,<static_threads> <dynamic_threads>)* -Bands <count> (-Band <low> <high>)*
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Get the command name.
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
/// Create the POA with the params parsed.
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp b/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp
index 43acfd70c38..ae74762fd3e 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/Consumer.cpp
@@ -7,6 +7,7 @@
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_stdio.h"
#include "tao/AnyTypeCode/Any.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify_Tests, Consumer_Main, "$Id$")
@@ -163,7 +164,7 @@ StructuredPushConsumer_i::push_structured_event (
}
if (notification.filterable_data.length () > 0)
{
- if (0 == ACE_OS::strcmp (notification.filterable_data[0].name, "serial_number"))
+ if (0 == ACE_OS::strcmp (notification.filterable_data[0].name.in(), "serial_number"))
{
const CORBA::Any & data = notification.filterable_data[0].value;
@@ -189,8 +190,8 @@ StructuredPushConsumer_i::push_structured_event (
));
}
}
- else if (0 == ACE_OS::strcmp (notification.header.fixed_header.event_type.type_name, "%ANY")
- && 0 == strcmp (notification.header.fixed_header.event_type.domain_name, ""))
+ else if (0 == ACE_OS::strcmp (notification.header.fixed_header.event_type.type_name.in(), "%ANY")
+ && 0 == strcmp (notification.header.fixed_header.event_type.domain_name.in(), ""))
{
const CORBA::Any * any;
if (notification.remainder_of_body >>= any)
@@ -398,7 +399,7 @@ SequencePushConsumer_i::push_structured_events (
const CosNotification::StructuredEvent & notification = notifications[nevent];
if (notification.filterable_data.length () > 0)
{
- if (0 == ACE_OS::strcmp (notification.filterable_data[0].name, "serial_number"))
+ if (0 == ACE_OS::strcmp (notification.filterable_data[0].name.in(), "serial_number"))
{
const CORBA::Any & data = notification.filterable_data[0].value;
@@ -424,8 +425,8 @@ SequencePushConsumer_i::push_structured_events (
));
}
}
- else if (0 == ACE_OS::strcmp (notification.header.fixed_header.event_type.type_name, "%ANY")
- && 0 == strcmp (notification.header.fixed_header.event_type.domain_name, ""))
+ else if (0 == ACE_OS::strcmp (notification.header.fixed_header.event_type.type_name.in(), "%ANY")
+ && 0 == strcmp (notification.header.fixed_header.event_type.domain_name.in(), ""))
{
CORBA::ULong seq = 0;
if (notification.remainder_of_body >>= seq)
@@ -619,7 +620,7 @@ AnyPushConsumer_i::push (
{
if (notification->filterable_data.length () > 0)
{
- if (0 == ACE_OS::strcmp (notification->filterable_data[0].name, "serial_number"))
+ if (0 == ACE_OS::strcmp (notification->filterable_data[0].name.in(), "serial_number"))
{
const CORBA::Any & data = notification->filterable_data[0].value;
@@ -1040,7 +1041,7 @@ void
Consumer_Main::save_ids()
{
FILE *idf =
- ACE_OS::fopen (this->id_file_.c_str (), "w");
+ ACE_OS::fopen (this->id_file_.c_str (), ACE_TEXT("w"));
if (idf != 0)
{
@@ -1064,7 +1065,7 @@ Consumer_Main::load_ids()
{
bool ok = false;
FILE *idf =
- ACE_OS::fopen (this->id_file_.c_str (), "r");
+ ACE_OS::fopen (this->id_file_.c_str (), ACE_TEXT("r"));
if (idf != 0)
{
@@ -1267,7 +1268,7 @@ Consumer_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL)
// try to read from it
if (!ok && this->channel_file_.length () > 0)
{
- FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), "r");
+ FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), ACE_TEXT("r"));
if (chf != 0)
{
char buffer[100];
@@ -1359,7 +1360,7 @@ Consumer_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL)
// save channel id
if (ok && this->channel_file_.length() > 0)
{
- FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), "w");
+ FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), ACE_TEXT("w"));
if (chf != 0)
{
ACE_OS::fprintf (chf, "%d\n", static_cast<int> (this->ec_id_));
@@ -1813,8 +1814,6 @@ int Consumer_Main::fini (ACE_ENV_SINGLE_ARG_DECL)
{
this->reconnection_callback_.fini (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-4);
-
if (this->disconnect_on_exit_)
{
if (!CORBA::is_nil (this->structured_proxy_push_supplier_.in ()))
@@ -1874,13 +1873,15 @@ int Consumer_Main::run (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = -1;
Consumer_Main app;
ACE_TRY_NEW_ENV
{
- result = app.init(argc, argv ACE_ENV_ARG_PARAMETER);
+ result = app.init(convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK
if (result == 0)
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/Makefile.am b/TAO/orbsvcs/tests/Notify/Reconnecting/Makefile.am
index 4ba90dc5b7e..5693bd22f7e 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/Makefile.am
@@ -17,7 +17,6 @@ noinst_PROGRAMS =
## Makefile.Reconnecting_Consumer.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Consumer
@@ -38,13 +37,6 @@ Consumer_SOURCES = \
Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -60,11 +52,9 @@ Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Reconnecting_Supplier.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Supplier
@@ -85,13 +75,6 @@ Supplier_SOURCES = \
Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -107,7 +90,6 @@ Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp b/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp
index 1bd46703440..e50702d68b7 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/Supplier.cpp
@@ -7,6 +7,7 @@
#include "tao/TimeBaseC.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_strings.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Notify_Tests, Supplier_Main, "$Id$")
@@ -220,7 +221,7 @@ Supplier_Main::Supplier_Main ()
, use_naming_service_ (true)
, serial_number_ (0)
, disconnect_on_exit_ (false)
- , id_file_ (ACE_TEXT ("supplier.ids"))
+ , id_file_ ("supplier.ids")
, pause_ (0)
, ec_id_ (0)
, sa_id_(0)
@@ -276,47 +277,47 @@ int
Supplier_Main::parse_single_arg (int argc, char *argv[])
{
int consumed = 0;
- if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-v")) == 0)
+ if (ACE_OS::strcasecmp (argv[0], "-v") == 0)
{
this->verbose_ = true;
consumed = 1;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-any")) == 0)
+ else if (ACE_OS::strcasecmp (argv[0], "-any") == 0)
{
this->mode_ = MODE_ANY;
consumed = 1;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-structured")) == 0)
+ else if (ACE_OS::strcasecmp (argv[0], "-structured") == 0)
{
this->mode_ = MODE_STRUCTURED;
consumed = 1;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-sequence")) == 0)
+ else if (ACE_OS::strcasecmp (argv[0], "-sequence") == 0)
{
this->mode_ = MODE_SEQUENCE;
consumed = 1;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-channel")) == 0)
+ else if (ACE_OS::strcasecmp (argv[0], "-channel") == 0)
{
this->channel_file_= argv[1];
consumed = 2;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-send")) == 0 && argc > 1)
+ else if (ACE_OS::strcasecmp (argv[0], "-send") == 0 && argc > 1)
{
this->send_ = ACE_OS::atoi (argv[1]);
consumed = 2;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-pause")) == 0 && argc > 1)
+ else if (ACE_OS::strcasecmp (argv[0], "-pause") == 0 && argc > 1)
{
this->pause_ = ACE_OS::atoi (argv[1]);
consumed = 2;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-serial_number")) == 0)
+ else if (ACE_OS::strcasecmp (argv[0], "-serial_number") == 0)
{
this->serial_number_= ACE_OS::atoi (argv[1]);
consumed = 2;
}
- else if (ACE_OS::strcasecmp (argv[0], ACE_TEXT ("-nonamesvc")) == 0)
+ else if (ACE_OS::strcasecmp (argv[0], "-nonamesvc") == 0)
{
this->use_naming_service_ = false;
consumed = 1;
@@ -444,7 +445,7 @@ void
Supplier_Main::save_ids()
{
FILE *idf =
- ACE_OS::fopen (this->id_file_.c_str (), "w");
+ ACE_OS::fopen (this->id_file_.c_str (), ACE_TEXT("w"));
if (idf != 0)
{
@@ -468,7 +469,7 @@ Supplier_Main::load_ids()
{
bool ok = false;
FILE *idf =
- ACE_OS::fopen (this->id_file_.c_str (), "r");
+ ACE_OS::fopen (this->id_file_.c_str (), ACE_TEXT("r"));
if (idf != 0)
{
@@ -657,7 +658,7 @@ Supplier_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL)
// try to read from it
if (!ok && this->channel_file_.length () > 0)
{
- FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), "r");
+ FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), ACE_TEXT("r"));
if (chf != 0)
{
char buffer[100];
@@ -749,7 +750,7 @@ Supplier_Main::init_event_channel (ACE_ENV_SINGLE_ARG_DECL)
// save channel id
if (ok && this->channel_file_.length() > 0)
{
- FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), "w");
+ FILE * chf = ACE_OS::fopen (this->channel_file_.c_str (), ACE_TEXT("w"));
if (chf != 0)
{
ACE_OS::fprintf (chf, "%d\n", static_cast<int> (this->ec_id_));
@@ -1098,7 +1099,6 @@ int Supplier_Main::fini (ACE_ENV_SINGLE_ARG_DECL)
if (this->disconnect_on_exit_)
{
this->reconnection_callback_.fini (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-4);
if (!CORBA::is_nil (this->structured_proxy_push_consumer_.in ()))
{
if (this->verbose_)
@@ -1286,7 +1286,7 @@ int Supplier_Main::run (ACE_ENV_SINGLE_ARG_DECL)
));
}
reconnections = this->reconnection_callback_.reconnect_count ();
- FILE * pause_file = ACE_OS::fopen ("Supplier.paused", "w");
+ FILE * pause_file = ACE_OS::fopen ("Supplier.paused", ACE_TEXT("w"));
if (pause_file != 0)
{
ACE_OS::fputs (ACE_TEXT ("paused\n"), pause_file);
@@ -1342,13 +1342,15 @@ int Supplier_Main::run (ACE_ENV_SINGLE_ARG_DECL)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = -1;
Supplier_Main app;
ACE_TRY_NEW_ENV
{
- result = app.init(argc, argv ACE_ENV_ARG_PARAMETER);
+ result = app.init(convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK
if (result == 0)
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/event.conf b/TAO/orbsvcs/tests/Notify/Reconnecting/event.conf
index 1365667e20a..73faddd571b 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/event.conf
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/event.conf
@@ -3,4 +3,4 @@ static TAO_CosNotify_Service "-AllowReconnect"
#
# This should fail because event perstence requires topology persistence
#
-dynamic Event_Persistence Service_Object* TAO_CosNotification:_make_TAO_Notify_Standard_Event_Persistence() "-v -file_path ./event_persist.db"
+dynamic Event_Persistence Service_Object* TAO_CosNotification:_make_Standard_Event_Persistence() "-v -file_path ./event_persist.db" \ No newline at end of file
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf
index 9022e30fee6..a58f9d9aef7 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_both.conf
@@ -1,5 +1,5 @@
static TAO_CosNotify_Service "-DispatchingThreads 2 -SourceThreads 2 -AllowReconnect"
#
-dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_XML_Topology_Factory() "-base_path ./reconnect_test"
-dynamic Event_Persistence Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_Standard_Event_Persistence() "-file_path ./event_persist.db"
+dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_XML_Topology_Factory() "-base_path ./reconnect_test"
+dynamic Event_Persistence Service_Object* TAO_CosNotification_Persist:_make_Standard_Event_Persistence() "-file_path ./event_persist.db"
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_topo.conf b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_topo.conf
index ede1e8d298c..06147c0fe8a 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_topo.conf
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_mt_topo.conf
@@ -1,3 +1,3 @@
static TAO_CosNotify_Service "-DispatchingThreads 2 -SourceThreads 2 -AllowReconnect"
-dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_XML_Topology_Factory() "-base_path ./reconnect_test"
+dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_XML_Topology_Factory() "-base_path ./reconnect_test"
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf
index c2da6f07cee..7edf3354d1e 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_both.conf
@@ -1,4 +1,4 @@
static TAO_CosNotify_Service "-AllowReconnect"
#
-dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_XML_Topology_Factory() "-v -base_path ./reconnect_test"
-dynamic Event_Persistence Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_Standard_Event_Persistence() "-v -file_path ./event_persist.db"
+dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_XML_Topology_Factory() "-v -base_path ./reconnect_test"
+dynamic Event_Persistence Service_Object* TAO_CosNotification_Persist:_make_Standard_Event_Persistence() "-v -file_path ./event_persist.db"
diff --git a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_topo.conf b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_topo.conf
index daf2927299f..e84d2c18713 100644
--- a/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_topo.conf
+++ b/TAO/orbsvcs/tests/Notify/Reconnecting/ns_st_topo.conf
@@ -1,2 +1,2 @@
static TAO_CosNotify_Service "-AllowReconnect"
-dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_XML_Topology_Factory() "-v -base_path ./reconnect_test"
+dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_XML_Topology_Factory() "-v -base_path ./reconnect_test"
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am
index e100de453be..137b9c7d10f 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Seq_Multi_ETCL_Filter_Ntf_Seq_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Consumer
@@ -73,18 +69,13 @@ Sequence_Consumer_CPPFLAGS = \
Sequence_Consumer_SOURCES = \
Notify_Sequence_Push_Consumer.cpp \
Sequence_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +91,9 @@ Sequence_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Seq_Multi_ETCL_Filter_Ntf_Seq_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Supplier
@@ -123,17 +112,11 @@ Sequence_Supplier_SOURCES = \
Sequence_Supplier.cpp \
goC.cpp \
goS.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -149,7 +132,6 @@ Sequence_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp
index 9a7df06e215..2eb56f40573 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Notify_Sequence_Push_Consumer.cpp
@@ -8,15 +8,15 @@
#include "tao/debug.h"
Notify_Sequence_Push_Consumer::Notify_Sequence_Push_Consumer (
- const char* name,
- unsigned int low,
- unsigned int high,
- Notify_Test_Client& client)
- : name_ (name),
- low_ (low),
- high_ (high),
- count_ (0),
- client_ (client)
+ const char* name,
+ unsigned int low,
+ unsigned int high,
+ Notify_Test_Client& client)
+ : name_ (name),
+ low_ (low),
+ high_ (high),
+ count_ (0),
+ client_ (client)
{
this->client_.consumer_start (this);
}
@@ -24,8 +24,8 @@ Notify_Sequence_Push_Consumer::Notify_Sequence_Push_Consumer (
void
Notify_Sequence_Push_Consumer::_connect (
- CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin
- ACE_ENV_ARG_DECL)
+ CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CosNotifyComm::SequencePushConsumer_var objref =
@@ -34,25 +34,28 @@ Notify_Sequence_Push_Consumer::_connect (
CosNotifyChannelAdmin::ProxySupplier_var proxysupplier =
consumer_admin->obtain_notification_push_supplier (
- CosNotifyChannelAdmin::SEQUENCE_EVENT,
- proxy_id_
- ACE_ENV_ARG_PARAMETER);
+ CosNotifyChannelAdmin::SEQUENCE_EVENT,
+ proxy_id_
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
this->proxy_ =
CosNotifyChannelAdmin::SequenceProxyPushSupplier::_narrow (
- proxysupplier.in () ACE_ENV_ARG_PARAMETER);
+ proxysupplier.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- CosNotification::QoSProperties properties (3);
- properties.length (3);
+ CosNotification::QoSProperties properties (3); //(4);
+ properties.length (3); //(4);
properties[0].name = CORBA::string_dup (CosNotification::MaximumBatchSize);
- properties[0].value <<= (CORBA::Long) 3;
+ properties[0].value <<= (CORBA::Long)5;
properties[1].name = CORBA::string_dup (CosNotification::PacingInterval);
- properties[1].value <<= (TimeBase::TimeT) 1 * 1000 * 10000;
+ properties[1].value <<= (TimeBase::TimeT)4;
+ //properties[3].name = CORBA::string_dup (CosNotification::MaxEventsPerConsumer);
+ //properties[3].value <<= (CORBA::Long)2;
this->proxy_->set_qos (properties);
- this->proxy_->connect_sequence_push_consumer (objref.in () ACE_ENV_ARG_PARAMETER);
+ this->proxy_->connect_sequence_push_consumer (objref.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
// give ownership to POA
@@ -63,24 +66,59 @@ Notify_Sequence_Push_Consumer::_connect (
void
Notify_Sequence_Push_Consumer::push_structured_events (
- const CosNotification::EventBatch& events
- ACE_ENV_ARG_DECL)
+ const CosNotification::EventBatch& events
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_DEBUG((LM_DEBUG, "{%u}", events.length()));
+ ACE_DEBUG((LM_DEBUG, "-"));
- this->count_ += events.length();
+ CORBA::ULong length = events.length ();
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG, "Received %u events:\n", length));
+
+ for (CORBA::ULong e = 0; e < length; e++)
+ {
+ CORBA::ULong hlength = events[e].header.variable_header.length ();
+ for (CORBA::ULong hi = 0; hi < hlength; hi++)
+ {
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "%s = %s\n",
+ (const char*)events[e].header.variable_header[hi].name,
+ Any_String (events[e].header.variable_header[hi].value)));
+ }
+
+ CORBA::ULong flength = events[e].filterable_data.length ();
+ for (CORBA::ULong i = 0; i < flength; i++)
+ {
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "%s = %s\n",
+ (const char*)events[e].filterable_data[i].name,
+ Any_String (events[e].filterable_data[i].value)));
+ }
+ }
+
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "-------------------------\n"));
+
+ this->count_++;
if (this->count_ > this->high_)
- {
- this->client_.consumer_done (this);
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Sequence Consumer (%P|%t): ERROR: too "
- "many events received.\n")));
- ACE_THROW (CORBA::INTERNAL ());
- }
- else if (this->count_ >= this->low_)
- {
- this->client_.consumer_done (this);
- }
+ {
+ this->client_.consumer_done (this);
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("Sequence Consumer (%P|%t): ERROR: too ")
+ ACE_TEXT ("many events received.\n")));
+ ACE_THROW (CORBA::INTERNAL ());
+ }
+ else if (this->count_ == this->low_)
+ {
+ this->client_.consumer_done (this);
+ }
+ else
+ {
+ ACE_OS::sleep (1);
+ }
}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Seq_Multi_ETCL_Filter.mpc b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Seq_Multi_ETCL_Filter.mpc
index 8674104c77b..4d74cfe0ffe 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Seq_Multi_ETCL_Filter.mpc
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Seq_Multi_ETCL_Filter.mpc
@@ -27,6 +27,7 @@ project(*Ntf Seq Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Sequence_Push_Consumer.cpp
Sequence_Consumer.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp
index c59a53095fb..db5d2e086a3 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "orbsvcs/CosNotifyCommC.h"
@@ -19,8 +20,8 @@
// ******************************************************************
static const char* ior = "file://supplier.ior";
-static unsigned int low = 32;
-static unsigned int high = 32;
+static unsigned int low = 6;
+static unsigned int high = 7;
// ******************************************************************
// Subroutine Section
@@ -36,7 +37,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:l:h:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:l:h:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -138,14 +139,16 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp
index 483a7446f92..6831136ed88 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/Sequence_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -23,9 +24,9 @@
// ******************************************************************
// Data Section
// ******************************************************************
-const int PER_BATCH = 16;
+
static TAO_Notify_Tests_SequencePushSupplier* supplier_1 = 0;
-static int num_batches = 6; // 6 sets of 16
+static int max_events = 6; // 6 sets of 16
static const char* ior_output_file = "supplier.ior";
// ******************************************************************
@@ -83,14 +84,14 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d");
int c;
while ((c = get_opts ()) != -1)
switch (c)
{
case 'e':
- num_batches = ACE_OS::atoi (get_opts.optarg);
+ max_events = ACE_OS::atoi (get_opts.optarg);
break;
case 'o':
@@ -134,7 +135,6 @@ SendEvents (int id ACE_ENV_ARG_DECL)
CosNotification::EventBatch events;
CosNotification::StructuredEvent event;
-
event.header.fixed_header.event_type.domain_name =
CORBA::string_dup ("Orbix 2000 Demos");
event.header.fixed_header.event_type.type_name =
@@ -142,44 +142,65 @@ SendEvents (int id ACE_ENV_ARG_DECL)
event.header.fixed_header.event_name = CORBA::string_dup ("test event");
+
event.header.variable_header.length (2);
event.header.variable_header[0].name =
CORBA::string_dup (CosNotification::Priority);
+ event.header.variable_header[0].value <<= (CORBA::Short)
+ (id > max_events / 2 ?
+ -id : id);
event.header.variable_header[1].name =
CORBA::string_dup (CosNotification::Timeout);
-
+ event.header.variable_header[1].value <<= (TimeBase::TimeT)
+ ((max_events - id) * 60);
event.filterable_data.length (3);
event.filterable_data[0].name = CORBA::string_dup ("objectId");
+ event.filterable_data[0].value <<= (CORBA::Long)0xdad;
+
event.filterable_data[1].name = CORBA::string_dup ("type");
+ event.filterable_data[1].value <<= types[id % 3];
+
event.filterable_data[2].name = CORBA::string_dup ("enum");
+ event.filterable_data[2].value <<= (CORBA::Long)
+ (id > max_events / 2 ?
+ -id : id);
- events.length (PER_BATCH);
+ events.length (16);
+ events[0] = event;
- for (int z = 0; z < PER_BATCH; ++z)
+ CosNotification::StructuredEvent revents[15];
+ for (int z = 0; z < 15; z++)
{
- event.header.variable_header[0].value <<= (CORBA::Short)
- (id > num_batches / 2 ?
+ revents[z].header.fixed_header.event_type.domain_name =
+ CORBA::string_dup ("Orbix 2000 Demos");
+ revents[z].header.fixed_header.event_type.type_name =
+ CORBA::string_dup ("Extra Events");
+
+ revents[z].header.fixed_header.event_name = CORBA::string_dup ("test revents[z]");
+
+ revents[z].header.variable_header.length (1);
+ revents[z].header.variable_header[0].name =
+ CORBA::string_dup (CosNotification::Priority);
+ revents[z].header.variable_header[0].value <<= (CORBA::Short)
+ (id > max_events / 2 ?
-id : id);
- event.filterable_data[0].value <<= (CORBA::Long)z;
- event.filterable_data[1].value <<= types[2 - (id % 3)];
- event.filterable_data[2].value <<= (CORBA::Long)
- (id > num_batches / 2 ?
- -id : id);
+ revents[z].filterable_data.length (3);
+ revents[z].filterable_data[0].name = CORBA::string_dup ("objectId");
+ revents[z].filterable_data[0].value <<= (CORBA::Long)z;
- events[z] = event;
- }
+ revents[z].filterable_data[1].name = CORBA::string_dup ("type");
+ revents[z].filterable_data[1].value <<= types[2 - (id % 3)];
- ACE_TRY_NEW_ENV
- {
- supplier_1->send_events (events ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::Exception, e)
- {
- ACE_PRINT_EXCEPTION (e, "Error: Supplier exception: ");
+ revents[z].filterable_data[2].name = CORBA::string_dup ("enum");
+ revents[z].filterable_data[2].value <<= (CORBA::Long)
+ (id > max_events / 2 ?
+ -id : id);
+ events[z + 1] = revents[z];
}
- ACE_ENDTRY;
+
+ supplier_1->send_events (events ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
static void
@@ -204,14 +225,16 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
int status = 0;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -233,7 +256,7 @@ int main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
@@ -253,19 +276,17 @@ int main (int argc, char* argv[])
sig_impl->wait_for_startup();
- ACE_DEBUG((LM_DEBUG, " 1 supplier sending %d batches of %d events...\n", num_batches, PER_BATCH));
- for (int i = 0; i < num_batches; ++i)
+ ACE_DEBUG((LM_DEBUG, " 1 supplier sending %d events...\n", max_events));
+ for (int i = 0; i < max_events; ++i)
{
ACE_DEBUG((LM_DEBUG, "+"));
SendEvents (i ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
- ACE_DEBUG((LM_DEBUG, "\nSupplier waiting for consumer...\n"));
+ ACE_DEBUG((LM_DEBUG, "\nSupplier sent %d events.\n", max_events));
sig_impl->wait_for_completion();
- ACE_DEBUG((LM_DEBUG, "\nSupplier done.\n"));
-
ACE_OS::unlink (ior_output_file);
ec->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp
new file mode 100644
index 00000000000..9dc7bc650ff
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "common.h"
+
+#include "orbsvcs/CosNotifyCommC.h"
+#include "orbsvcs/CosNamingC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+
+
+const char*
+Any_String (const CORBA::Any& any)
+{
+ static char out[256] = "";
+ CORBA::Short s;
+ CORBA::UShort us;
+ CORBA::Long l;
+ CORBA::ULong ul;
+ CORBA::ULongLong ull;
+ const char* str;
+
+ if (any >>= s)
+ {
+ ACE_OS::sprintf (out, "%d", s);
+ }
+ else if (any >>= us)
+ {
+ ACE_OS::sprintf (out, "%u", us);
+ }
+ else if (any >>= l)
+ {
+ ACE_OS::sprintf (out, "%d", l);
+ }
+ else if (any >>= ul)
+ {
+ ACE_OS::sprintf (out, "%u", ul);
+ }
+ else if (any >>= str)
+ {
+ ACE_OS::strcpy (out, str);
+ }
+ else if (any >>= ull)
+ {
+#if defined (ACE_LACKS_LONGLONG_T)
+ ACE_OS::strcpy (out, ull.as_string (out));
+#else
+ double temp =
+# if defined (ACE_CONFIG_WIN32_H)
+ static_cast<double>(static_cast<CORBA::LongLong>(ull));
+# else
+ ull;
+# endif /* ACE_CONFIG_WIN32_H */
+
+ ACE_OS::sprintf (out, "%.0f", temp);
+#endif /* ACE_LACKS_LONGLONG_T */
+ }
+ else
+ {
+ ACE_OS::strcpy (out, "Unsupported Any Type");
+ }
+
+ return out;
+}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.h b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.h
new file mode 100644
index 00000000000..0e37aa80491
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/common.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/Notify/Discarding
+//
+// = FILENAME
+// common.h
+//
+// = DESCRIPTION
+// A couple of useful functions
+//
+// = AUTHOR
+// Chad Elliott <elliott_c@ociweb.com>
+//
+// ==========================================================================
+#ifndef TAO_COMMON_H
+#define TAO_COMMON_H
+
+#include "orbsvcs/CosNotifyChannelAdminS.h"
+
+const char*
+Any_String (const CORBA::Any& any);
+
+#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am
index abbd3346cd5..77a4f7f2e40 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Seq_Multi_Filter_Ntf_Seq_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Consumer
@@ -73,18 +69,13 @@ Sequence_Consumer_CPPFLAGS = \
Sequence_Consumer_SOURCES = \
Notify_Sequence_Push_Consumer.cpp \
Sequence_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +91,9 @@ Sequence_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Seq_Multi_Filter_Ntf_Seq_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Supplier
@@ -123,17 +112,11 @@ Sequence_Supplier_SOURCES = \
Sequence_Supplier.cpp \
goC.cpp \
goS.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -149,7 +132,6 @@ Sequence_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp
index b39323d5890..9ea168ea6e1 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.cpp
@@ -9,10 +9,12 @@
Notify_Sequence_Push_Consumer::Notify_Sequence_Push_Consumer (
const char* name,
+ CORBA::Short policy,
unsigned int low,
unsigned int high,
Notify_Test_Client& client)
: name_ (name),
+ discard_policy_ (policy),
low_ (low),
high_ (high),
count_ (0),
@@ -54,7 +56,9 @@ Notify_Sequence_Push_Consumer::_connect (
properties[0].name = CORBA::string_dup(CosNotification::MaximumBatchSize);
properties[0].value <<= (CORBA::Long)5;
properties[1].name = CORBA::string_dup(CosNotification::PacingInterval);
- properties[1].value <<= (TimeBase::TimeT) 2 * 1000 * 10000;
+ properties[1].value <<= (TimeBase::TimeT)2; // 4
+ properties[2].name = CORBA::string_dup(CosNotification::DiscardPolicy);
+ properties[2].value <<= this->discard_policy_;
proxy_->set_qos(properties);
proxy_->connect_sequence_push_consumer (objref.in ()
@@ -70,21 +74,58 @@ Notify_Sequence_Push_Consumer::_connect (
void
Notify_Sequence_Push_Consumer::push_structured_events(
const CosNotification::EventBatch& events
- ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_ENV_ARG_DECL_NOT_USED /*ACE_ENV_SINGLE_ARG_PARAMETER*/)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_DEBUG((LM_DEBUG, "{%u}", events.length()));
+ ACE_DEBUG((LM_DEBUG, "-"));
- this->count_ += events.length();
+ CORBA::ULong length = events.length();
+
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG, "Received %u events:\n", length));
+
+ for(CORBA::ULong e = 0; e < length; e++)
+ {
+ if (events[e].header.variable_header.length () > 0)
+ {
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "%s = %s, ",
+ (const char*)events[e].header.variable_header[0].name,
+ Any_String (events[e].header.variable_header[0].value)));
+ }
+ for(CORBA::ULong i = 0; i < 3; i++)
+ {
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "%s = %s ",
+ (const char*)events[e].filterable_data[i].name,
+ Any_String (events[e].filterable_data[i].value)));
+ }
+
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "\n"));
+ }
+
+ if (TAO_debug_level)
+ ACE_DEBUG ((LM_DEBUG,
+ "-------------------------\n"));
+
+ this->count_++;
if (this->count_ > this->high_)
{
this->client_.consumer_done (this);
ACE_ERROR((LM_ERROR,
- ACE_TEXT ("Sequence Consumer (%P|%t): ERROR: too "
- "many events received.\n")));
+ ACE_TEXT ("Sequence Consumer (%P|%t): ERROR: too ")
+ ACE_TEXT ("many events received.\n")));
}
- else if (this->count_ >= this->low_)
+ else if (this->count_ == this->low_)
{
this->client_.consumer_done (this);
}
+ else
+ {
+ ACE_OS::sleep(1);
+ }
}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h
index 1318d05545c..7c673983ebc 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Notify_Sequence_Push_Consumer.h
@@ -26,6 +26,7 @@ class Notify_Sequence_Push_Consumer : public TAO_Notify_Tests_SequencePushConsum
{
public:
Notify_Sequence_Push_Consumer (const char* name,
+ CORBA::Short policy,
unsigned int low,
unsigned int high,
Notify_Test_Client& client);
@@ -42,6 +43,7 @@ private:
ACE_THROW_SPEC ((CORBA::SystemException));
ACE_CString name_;
+ CORBA::Short discard_policy_;
unsigned int low_;
unsigned int high_;
unsigned int count_;
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Seq_Multi_Filter.mpc b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Seq_Multi_Filter.mpc
index 47c8459df2a..e8363ad7659 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Seq_Multi_Filter.mpc
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Seq_Multi_Filter.mpc
@@ -27,6 +27,7 @@ project(*Ntf Seq Cons): notifytest {
after += *idl
Source_Files {
goC.cpp
+ common.cpp
Notify_Sequence_Push_Consumer.cpp
Sequence_Consumer.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp
index 5ac22e79b8b..62ebda43d54 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "orbsvcs/CosNotifyCommC.h"
@@ -19,8 +20,9 @@
// ******************************************************************
static const char* ior = "file://supplier.ior";
-static unsigned int low = 10;
-static unsigned int high = 20;
+static CORBA::Short discard_policy = CosNotification::FifoOrder;
+static unsigned int low = 2; // 10
+static unsigned int high = 4; // 13
static CORBA::Boolean filter = 1;
static const char* constraintString = "Number == 10";
@@ -37,38 +39,63 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:l:h:d:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:l:h:d:c:");
int c;
while ((c = get_opts ()) != -1)
switch (c)
- {
- case 'k':
- ior = get_opts.optarg;
- break;
-
- case 'l':
- low = ACE_OS::atoi (get_opts.optarg);
- break;
-
- case 'h':
- high = ACE_OS::atoi (get_opts.optarg);
- break;
-
- case 'c':
- constraintString = get_opts.optarg;
- break;
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-l <low expected events> "
- "-h <high expected events> "
- "-c <constraint string> "
- "\n",
- argv [0]),
- -1);
- }
+ {
+ case 'k':
+ ior = get_opts.optarg;
+ break;
+
+ case 'l':
+ low = ACE_OS::atoi (get_opts.optarg);
+ break;
+
+ case 'h':
+ high = ACE_OS::atoi (get_opts.optarg);
+ break;
+
+ case 'd':
+ {
+ const char* discard = get_opts.optarg;
+ if (ACE_OS::strcmp(discard, "fifo") == 0)
+ {
+ discard_policy = CosNotification::FifoOrder;
+ }
+ else if (ACE_OS::strcmp(discard, "priority") == 0)
+ {
+ discard_policy = CosNotification::PriorityOrder;
+ }
+ else if (ACE_OS::strcmp(discard, "lifo") == 0)
+ {
+ discard_policy = CosNotification::LifoOrder;
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Unknown discard policy: %s\n",
+ discard_policy),
+ -1);
+ }
+ break;
+ }
+ case 'c':
+ constraintString = get_opts.optarg;
+ break;
+ default:
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "usage: %s "
+ "-k <ior> "
+ "-l <low expected events> "
+ "-h <high expected events> "
+ "-d <fifo|priority|lifo> "
+ "-c <constraint string> "
+ "\n",
+ argv [0]),
+ -1);
+ }
// Indicates sucessful parsing of the command line
return 0;
}
@@ -81,8 +108,8 @@ create_consumeradmin (CosNotifyChannelAdmin::EventChannel_ptr ec
CosNotifyChannelAdmin::AdminID adminid = 0;
CosNotifyChannelAdmin::ConsumerAdmin_var admin =
ec->new_for_consumers (CosNotifyChannelAdmin::AND_OP,
- adminid
- ACE_ENV_ARG_PARAMETER);
+ adminid
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
@@ -98,11 +125,12 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// startup the first consumer
Notify_Sequence_Push_Consumer* consumer_1;
ACE_NEW_THROW_EX (consumer_1,
- Notify_Sequence_Push_Consumer ("consumer1",
- low,
- high,
- *client),
- CORBA::NO_MEMORY ());
+ Notify_Sequence_Push_Consumer ("consumer1",
+ discard_policy,
+ low,
+ high,
+ *client),
+ CORBA::NO_MEMORY ());
consumer_1->init(client->root_poa () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -114,83 +142,99 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
- ACE_TRY_NEW_ENV
- {
- Consumer_Client client;
-
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- ACE_ASSERT(status == 0);
- ACE_UNUSED_ARG(status);
-
- CosNotifyChannelAdmin::EventChannel_var ec =
- client.create_event_channel ("MyEventChannel", 1
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ORB_ptr orb = client.orb ();
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- sig_var sig = sig::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_ASSERT(! CORBA::is_nil (sig.in ()));
+ ACE_Argv_Type_Converter convert (argc, argv);
- CosNotifyChannelAdmin::ConsumerAdmin_var admin =
- create_consumeradmin (ec.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (filter)
+ int status = 0;
+ ACE_TRY_NEW_ENV
{
- CosNotifyFilter::FilterFactory_var ffact =
- ec->default_filter_factory (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CosNotifyFilter::Filter_var filter =
- ffact->create_filter ("TCL" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ Consumer_Client client;
- ACE_ASSERT(! CORBA::is_nil(filter.in()));
-
- CosNotifyFilter::ConstraintExpSeq constraint_list (1);
- constraint_list.length(1);
-
- constraint_list[0].event_types.length (0);
- constraint_list[0].constraint_expr = CORBA::string_dup(constraintString);
-
- filter->add_constraints (constraint_list ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- admin->add_filter(filter.in());
+ if (status == 0)
+ {
+ CosNotifyChannelAdmin::EventChannel_var ec =
+ client.create_event_channel ("MyEventChannel", 1
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CORBA::ORB_ptr orb = client.orb ();
+ CORBA::Object_var object =
+ orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ sig_var sig = sig::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (sig.in ()))
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Object reference <%s> is nil\n",
+ ior),
+ 1);
+ }
+
+ CosNotifyChannelAdmin::ConsumerAdmin_var admin =
+ create_consumeradmin (ec.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+
+ if (filter)
+ {
+ CosNotifyFilter::FilterFactory_var ffact =
+ ec->default_filter_factory (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CosNotifyFilter::Filter_var filter =
+ ffact->create_filter ("TCL" ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if(CORBA::is_nil(filter.in()))
+ {
+ ACE_ERROR ((LM_ERROR,
+ " (%P|%t) Consumer unable to initialize filter.\n"));
+ return 1;
+ }
+
+ CosNotifyFilter::ConstraintExpSeq constraint_list (1);
+ constraint_list.length(1);
+
+ constraint_list[0].event_types.length (0);
+ constraint_list[0].constraint_expr = CORBA::string_dup(constraintString);
+
+ filter->add_constraints (constraint_list ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ admin->add_filter(filter.in());
+ }
+
+ if (!CORBA::is_nil (admin.in ()))
+ {
+ create_consumers(admin.in (), &client ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // Tell the supplier to go
+ sig->go (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ client.ORB_run( ACE_ENV_SINGLE_ARG_PARAMETER );
+ ACE_TRY_CHECK;
+ ACE_DEBUG((LM_DEBUG, "Consumer done.\n"));
+
+ sig->done (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ }
}
-
- ACE_ASSERT (!CORBA::is_nil (admin.in ()));
- create_consumers(admin.in (), &client ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Tell the supplier to go
- sig->go (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- client.ORB_run( ACE_ENV_SINGLE_ARG_PARAMETER );
- ACE_TRY_CHECK;
- ACE_DEBUG((LM_DEBUG, "Consumer done.\n"));
-
- sig->done (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- return 0;
-
- }
ACE_CATCH (CORBA::Exception, e)
- {
- ACE_PRINT_EXCEPTION (e, "Error: Consumer exception: ");
- }
+ {
+ ACE_PRINT_EXCEPTION (e, "Error: Consumer exception: ");
+ status = 1;
+ }
ACE_ENDTRY;
- return 1;
+ return status;
}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp
index 30c0a2e2b0d..2ce98df2f79 100644
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/Sequence_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
// FUZZ: disable check_for_streams_include
@@ -25,9 +26,9 @@
// ******************************************************************
// Data Section
// ******************************************************************
-const int PER_BATCH = 4;
+
static TAO_Notify_Tests_SequencePushSupplier* supplier_1 = 0;
-static int num_batches = 10;
+static int max_events = 2; // 6 sets of 16
static const char* ior_output_file = "supplier.ior";
// ******************************************************************
@@ -84,14 +85,14 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:");
int c;
while ((c = get_opts ()) != -1)
switch (c)
{
case 'e':
- num_batches = ACE_OS::atoi(get_opts.optarg);
+ max_events = ACE_OS::atoi(get_opts.optarg);
break;
case 'o':
@@ -131,11 +132,12 @@ create_supplieradmin (CosNotifyChannelAdmin::EventChannel_ptr ec
static void
SendEvents (int id ACE_ENV_ARG_DECL)
{
+ const int MAX_EVENTS = 15;
+
static const char* types[] = { "good", "bad", "ugly" };
CosNotification::EventBatch events;
CosNotification::StructuredEvent event;
-
event.header.fixed_header.event_type.domain_name =
CORBA::string_dup("Orbix 2000 Demos");
event.header.fixed_header.event_type.type_name =
@@ -143,44 +145,64 @@ SendEvents (int id ACE_ENV_ARG_DECL)
event.header.fixed_header.event_name = CORBA::string_dup("test event");
+
event.header.variable_header.length (1);
event.header.variable_header[0].name =
CORBA::string_dup(CosNotification::Priority);
+ event.header.variable_header[0].value <<= (CORBA::Short)
+ (id > max_events / 2 ?
+ -id : id);
event.filterable_data.length (3);
event.filterable_data[0].name = CORBA::string_dup("Number");
+ event.filterable_data[0].value <<= (CORBA::Long)10;
+
event.filterable_data[1].name = CORBA::string_dup("Index");
+ event.filterable_data[1].value <<= 0;
+
event.filterable_data[2].name = CORBA::string_dup("enum");
+ event.filterable_data[2].value <<= types[id % 3];
- events.length(PER_BATCH);
+ events.length(16);
+ events[0] = event;
- for(int z = 0; z < PER_BATCH; ++z) {
- event.header.variable_header[0].value <<= (CORBA::Short)
- (id > num_batches / 2 ?
+ CosNotification::StructuredEvent revents[15];
+ for(int z = 0; z < MAX_EVENTS; ++z) {
+ revents[z].header.fixed_header.event_type.domain_name =
+ CORBA::string_dup("Orbix 2000 Demos");
+ revents[z].header.fixed_header.event_type.type_name =
+ CORBA::string_dup("Sequence Notification Push Demo Event");
+
+ revents[z].header.fixed_header.event_name = CORBA::string_dup("test revents[z]");
+
+ revents[z].header.variable_header.length (1);
+ revents[z].header.variable_header[0].name =
+ CORBA::string_dup(CosNotification::Priority);
+ revents[z].header.variable_header[0].value <<= (CORBA::Short)
+ (id > max_events / 2 ?
-id : id);
+ revents[z].filterable_data.length (3);
+ revents[z].filterable_data[0].name = CORBA::string_dup("Number");
+
if (z % 2 == 0) {
- event.filterable_data[0].value <<= (CORBA::Long)20;
+ revents[z].filterable_data[0].value <<= (CORBA::Long)20;
} else {
- event.filterable_data[0].value <<= (CORBA::Long)10;
+ revents[z].filterable_data[0].value <<= (CORBA::Long)10;
}
- event.filterable_data[1].value <<= z;
+ revents[z].filterable_data[1].name = CORBA::string_dup("Index");
+ revents[z].filterable_data[1].value <<= z+1;
- event.filterable_data[2].value <<= types[id % 3];
- events[z] = event;
+ revents[z].filterable_data[2].name = CORBA::string_dup("enum");
+ revents[z].filterable_data[2].value <<= types[id % 3];
+ events[z + 1] = revents[z];
}
- ACE_TRY_NEW_ENV
- {
- supplier_1->send_events(events ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::Exception, e)
- {
- ACE_PRINT_EXCEPTION (e, "Error: Supplier exception: ");
- }
- ACE_ENDTRY;
+ ACE_DEBUG ((LM_DEBUG, "Sending events.\n"));
+
+ supplier_1->send_events(events ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
static void
@@ -205,15 +227,17 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
int status = 0;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -236,7 +260,7 @@ int main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
@@ -256,19 +280,17 @@ int main (int argc, char* argv[])
sig_impl->wait_for_startup();
- ACE_DEBUG((LM_DEBUG, " 1 supplier sending %d batches of %d events...\n", num_batches, PER_BATCH));
- for (int i = 0; i < num_batches; ++i)
+ ACE_DEBUG((LM_DEBUG, " 1 supplier sending %d events...\n", max_events));
+ for (int i = 0; i < max_events; ++i)
{
ACE_DEBUG((LM_DEBUG, "+"));
SendEvents (i ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
- ACE_DEBUG((LM_DEBUG, "\nSupplier waiting for consumer completion...\n"));
+ ACE_DEBUG((LM_DEBUG, "\nSupplier sent %d events.\n", max_events));
sig_impl->wait_for_completion();
- ACE_DEBUG((LM_DEBUG, "\nSupplier finished.\n"));
-
ACE_OS::unlink (ior_output_file);
ec->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp
new file mode 100644
index 00000000000..9dc7bc650ff
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "common.h"
+
+#include "orbsvcs/CosNotifyCommC.h"
+#include "orbsvcs/CosNamingC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+
+
+const char*
+Any_String (const CORBA::Any& any)
+{
+ static char out[256] = "";
+ CORBA::Short s;
+ CORBA::UShort us;
+ CORBA::Long l;
+ CORBA::ULong ul;
+ CORBA::ULongLong ull;
+ const char* str;
+
+ if (any >>= s)
+ {
+ ACE_OS::sprintf (out, "%d", s);
+ }
+ else if (any >>= us)
+ {
+ ACE_OS::sprintf (out, "%u", us);
+ }
+ else if (any >>= l)
+ {
+ ACE_OS::sprintf (out, "%d", l);
+ }
+ else if (any >>= ul)
+ {
+ ACE_OS::sprintf (out, "%u", ul);
+ }
+ else if (any >>= str)
+ {
+ ACE_OS::strcpy (out, str);
+ }
+ else if (any >>= ull)
+ {
+#if defined (ACE_LACKS_LONGLONG_T)
+ ACE_OS::strcpy (out, ull.as_string (out));
+#else
+ double temp =
+# if defined (ACE_CONFIG_WIN32_H)
+ static_cast<double>(static_cast<CORBA::LongLong>(ull));
+# else
+ ull;
+# endif /* ACE_CONFIG_WIN32_H */
+
+ ACE_OS::sprintf (out, "%.0f", temp);
+#endif /* ACE_LACKS_LONGLONG_T */
+ }
+ else
+ {
+ ACE_OS::strcpy (out, "Unsupported Any Type");
+ }
+
+ return out;
+}
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.h b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.h
new file mode 100644
index 00000000000..0e37aa80491
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/common.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/Notify/Discarding
+//
+// = FILENAME
+// common.h
+//
+// = DESCRIPTION
+// A couple of useful functions
+//
+// = AUTHOR
+// Chad Elliott <elliott_c@ociweb.com>
+//
+// ==========================================================================
+#ifndef TAO_COMMON_H
+#define TAO_COMMON_H
+
+#include "orbsvcs/CosNotifyChannelAdminS.h"
+
+const char*
+Any_String (const CORBA::Any& any);
+
+#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl
index 490a0aa818c..3abd9a03714 100755
--- a/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl
+++ b/TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl
@@ -13,6 +13,7 @@ $notifyior = PerlACE::LocalFile ("notify.ior");
$notify_conf = PerlACE::LocalFile ("notify$PerlACE::svcconf_ext");
$status = 0;
+unlink $notifyior;
$port = PerlACE::uniqueid () + 10001;
$NS = new PerlACE::Process ("../../../Naming_Service/Naming_Service",
@@ -30,9 +31,8 @@ $SEC = new PerlACE::Process ("Sequence_Consumer");
$client_args = "-ORBInitRef NameService=iioploc://localhost:" .
"$port/NameService";
$NS->Spawn ();
-
-unlink $notifyior;
$TS->Spawn ();
+
if (PerlACE::waitforfile_timed ($notifyior, 20) == -1) {
print STDERR "ERROR: waiting for the notify service to start\n";
$TS->Kill ();
@@ -40,46 +40,54 @@ if (PerlACE::waitforfile_timed ($notifyior, 20) == -1) {
exit 1;
}
-@low = (40, 20, 20, 20);
-@high = (40, 21, 21, 21);
+if ($status == 0) {
+ $discard_policy = fifo;
+
+@low = (6, 3, 6, 3, 1);
+@high = (7, 4, 7, 4, 2);
@constraintList = (
"\"Number == 20 or Number == 10\"",
"\"Number == 20 or Index == 7\"",
+ "\"Number == 20 or Number == 10\"",
"\"Number == 20 or Index == 4\"",
- "\"Number == 10 or (Number == 20 and Index == 1)\"",
+ "\"Number == 20 and Index == 1\"",
);
-$i = 0;
+ $i = 0;
+ print "************** Running Sequence Consumer with the " .
+ "$discard_policy policy ************\n";
foreach $constraintString (@constraintList) {
- print "<*><*><*> Constraint String: $constraintString <*><*><*>\n";
+ print "<*><*><*> Constraint String: $constraintString <*><*><*>\n";
- unlink $ior;
- $SES->Spawn ();
- if (PerlACE::waitforfile_timed ($ior, 20) == -1) {
- print STDERR "ERROR: waiting for the supplier to start\n";
- $SES->Kill ();
- $TS->Kill ();
- $NS->Kill ();
- $status = 1;
- last;
- }
+ unlink $ior;
+ $SES->Spawn ();
- $SEC->Arguments($client_args . " -l $low[$i] -h $high[$i] -c $constraintString");
+ if (PerlACE::waitforfile_timed ($ior, 20) == -1) {
+ print STDERR "ERROR: waiting for the supplier to start\n";
+ $SES->Kill ();
+ $TS->Kill ();
+ $NS->Kill ();
+ $status = 1;
+ last;
+ }
- $i = $i + 1;
+ $SEC->Arguments($client_args . " -l $low[$i] -h $high[$i] -d $discard_policy -c $constraintString");
- $client = $SEC->SpawnWaitKill (60);
- if ($client != 0) {
- print STDERR "ERROR: Sequence_Consumer did not run properly\n";
- $status = 1;
- last;
- }
- $server = $SES->WaitKill(5);
- if ($server != 0) {
- $TS->Kill ();
- $NS->Kill ();
- exit 1;
+ $i = $i + 1;
+
+ $client = $SEC->SpawnWaitKill (60);
+ if ($client != 0) {
+ print STDERR "ERROR: Sequence_Consumer did not run properly\n";
+ $status = 1;
+ last;
+ }
+ $server = $SES->WaitKill(5);
+ if ($server != 0) {
+ $TS->Kill ();
+ $NS->Kill ();
+ exit 1;
+ }
}
}
diff --git a/TAO/orbsvcs/tests/Notify/Structured_Filter/Makefile.am b/TAO/orbsvcs/tests/Notify/Structured_Filter/Makefile.am
index dd08368b7d1..bfd9e054fab 100644
--- a/TAO/orbsvcs/tests/Notify/Structured_Filter/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Structured_Filter/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Struct_Filter_Ntf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -78,13 +74,6 @@ Structured_Consumer_SOURCES = \
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +89,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Struct_Filter_Ntf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -127,13 +114,6 @@ Structured_Supplier_SOURCES = \
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -149,7 +129,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp
index 7f41538007e..76e2278d1af 100644
--- a/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Consumer.cpp
@@ -11,6 +11,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_strings.h"
@@ -30,7 +31,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "fe:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "fe:");
int x;
while ((x = get_opts ()) != -1)
@@ -69,13 +70,15 @@ create_consumer (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char * argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV;
{
Consumer_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
diff --git a/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp
index 161d3f3e8c4..16845443d3e 100644
--- a/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Structured_Filter/Structured_Supplier.cpp
@@ -14,6 +14,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_strings.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_unistd.h"
@@ -131,13 +132,15 @@ static void create_supplier (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char * argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV;
{
Notify_Test_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
@@ -166,7 +169,7 @@ int main (int argc, char * argv[])
client.orb ()->object_to_string (sig.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
ACE_ASSERT (output_file != 0);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
@@ -181,7 +184,6 @@ int main (int argc, char * argv[])
{
ACE_DEBUG((LM_DEBUG, "+"));
send_event (i);
- ACE_TRY_CHECK;
}
ACE_DEBUG((LM_DEBUG, "\nSupplier sent %d events.\n", num_events));
diff --git a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am
index 9537c630c6f..090ad0bb7c8 100644
--- a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Makefile.am
@@ -50,12 +50,8 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
## Makefile.Struct_Multi_Filter_Ntf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -78,13 +74,6 @@ Structured_Consumer_SOURCES = \
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -100,11 +89,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Struct_Multi_Filter_Ntf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -128,13 +115,6 @@ Structured_Supplier_SOURCES = \
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -150,7 +130,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp
index eb633882bcc..218f66fbb7a 100644
--- a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Consumer.cpp
@@ -11,6 +11,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_strings.h"
@@ -31,7 +32,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "f:s:e:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:s:e:");
int x;
while ((x = get_opts ()) != -1)
@@ -86,13 +87,15 @@ create_consumer (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char * argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status != 0)
{
diff --git a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp
index 69463ea273a..36fbe655b2e 100644
--- a/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/Structured_Supplier.cpp
@@ -11,6 +11,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_strings.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_unistd.h"
@@ -75,7 +76,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "e:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "e:f:");
int x;
while ((x = get_opts ()) != -1)
@@ -201,13 +202,15 @@ void add_admin_filter (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
ACE_CHECK;
}
-int main (int argc, char * argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV;
{
Supplier_Client client;
- int status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_UNUSED_ARG(status);
ACE_ASSERT(status == 0);
@@ -243,7 +246,7 @@ int main (int argc, char * argv[])
client.orb ()->object_to_string (sig.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
ACE_ASSERT (output_file != 0);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
@@ -258,7 +261,6 @@ int main (int argc, char * argv[])
{
ACE_DEBUG((LM_DEBUG, "+"));
send_event (i);
- ACE_TRY_CHECK;
}
ACE_DEBUG((LM_DEBUG, "\nSupplier sent %d events.\n", num_events));
diff --git a/TAO/orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp b/TAO/orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp
index 07ba1cbfdd9..99e0aaf445c 100644
--- a/TAO/orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp
+++ b/TAO/orbsvcs/tests/Notify/Test_Filter/RT_Test_Filter.cpp
@@ -53,7 +53,7 @@ TAO_Notify_Tests_RT_Test_Filter::add_constraints (const CosNotifyFilter::Constra
// Check Poolid
if (ACE_OS::strncmp (constraint_list[i].constraint_expr.in (), PoolId_prefix, poolId_index) == 0)
{
- if (ACE_OS::strlen (constraint_list[i].constraint_expr) > poolId_index)
+ if (ACE_OS::strlen (constraint_list[i].constraint_expr.in()) > poolId_index)
{
this->expected_pool_id_ = ACE_OS::atoi (&constraint_list[i].constraint_expr[poolId_index]);
@@ -64,7 +64,7 @@ TAO_Notify_Tests_RT_Test_Filter::add_constraints (const CosNotifyFilter::Constra
// Check Poolid
else if (ACE_OS::strncmp (constraint_list[i].constraint_expr.in (), LaneId_prefix, laneId_index) == 0)
{
- if (ACE_OS::strlen (constraint_list[i].constraint_expr) > laneId_index)
+ if (ACE_OS::strlen (constraint_list[i].constraint_expr.in()) > laneId_index)
{
this->expected_lane_id_ = ACE_OS::atoi (&constraint_list[i].constraint_expr[laneId_index]);
diff --git a/TAO/orbsvcs/tests/Notify/XML_Persistence/XML_Persistence.mpc b/TAO/orbsvcs/tests/Notify/XML_Persistence/XML_Persistence.mpc
index 141f3252109..21c1ae518bd 100644
--- a/TAO/orbsvcs/tests/Notify/XML_Persistence/XML_Persistence.mpc
+++ b/TAO/orbsvcs/tests/Notify/XML_Persistence/XML_Persistence.mpc
@@ -1,5 +1,4 @@
// $Id$
project : orbsvcsexe, portableserver, notify_serv {
- exename = main
}
diff --git a/TAO/orbsvcs/tests/Notify/XML_Persistence/main.cpp b/TAO/orbsvcs/tests/Notify/XML_Persistence/main.cpp
index 463a3fc9b8d..44e477e70b5 100644
--- a/TAO/orbsvcs/tests/Notify/XML_Persistence/main.cpp
+++ b/TAO/orbsvcs/tests/Notify/XML_Persistence/main.cpp
@@ -21,6 +21,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/Dynamic_Service.h"
#include "ace/ARGV.h"
+#include "ace/Argv_Type_Converter.h"
class TestSupplier
: public POA_CosNotifyComm::StructuredPushSupplier
@@ -52,8 +53,10 @@ class TestConsumer
}
};
-int main(int ac, char **av)
+int ACE_TMAIN(int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int retval = 1;
bool pass1 = false;
@@ -64,13 +67,13 @@ int main(int ac, char **av)
CORBA::ORB_var orb;
PortableServer::POA_var poa;
- orb = CORBA::ORB_init(ac, av, "" ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_ASSERT(! CORBA::is_nil (orb.in ()));
- if (ac > 2 && ACE_OS::strcmp (av[1], "-pass") == 0)
+ if (convert.get_argc() > 2 && ACE_OS::strcmp (convert.get_ASCII_argv()[1], "-pass") == 0)
{
- int pn = av[2][0] - '0';
+ int pn = argv[2][0] - '0';
switch (pn)
{
case 1:
@@ -160,13 +163,13 @@ int main(int ac, char **av)
qosprops[i].name = CORBA::string_dup(CosNotification::Priority);
qosprops[i++].value <<= CosNotification::HighestPriority;
qosprops[i].name = CORBA::string_dup(CosNotification::Timeout);
- qosprops[i++].value <<= (TimeBase::TimeT) 42000; // 4.2 ms
+ qosprops[i++].value <<= (TimeBase::TimeT) 42000;
qosprops[i].name = CORBA::string_dup(CosNotification::StopTimeSupported);
qosprops[i++].value <<= CORBA::Any::from_boolean(1);
qosprops[i].name = CORBA::string_dup(CosNotification::MaximumBatchSize);
qosprops[i++].value <<= (CORBA::Long) 555;
qosprops[i].name = CORBA::string_dup(CosNotification::PacingInterval);
- qosprops[i++].value <<= (TimeBase::TimeT) 34300; // 3.4 ms
+ qosprops[i++].value <<= (TimeBase::TimeT) 34300;
qosprops.length(i);
CosNotification::AdminProperties adminprops(4);
diff --git a/TAO/orbsvcs/tests/Notify/XML_Persistence/run_test.pl b/TAO/orbsvcs/tests/Notify/XML_Persistence/run_test.pl
index 8140370ffd8..ef713ea6961 100755
--- a/TAO/orbsvcs/tests/Notify/XML_Persistence/run_test.pl
+++ b/TAO/orbsvcs/tests/Notify/XML_Persistence/run_test.pl
@@ -31,7 +31,7 @@ cleanup();
$ret = 0;
-$UTEST = new PerlACE::Process("main", "-orbobjrefstyle url -ORBEndpoint iiop://:$port -pass 3");
+$UTEST = new PerlACE::Process("main", "-ORBEndpoint iiop://:$port -pass 3");
$ret = $UTEST->SpawnWaitKill(20);
if ($ret != 0) {
print "ERROR : main returned $ret\n";
@@ -44,6 +44,7 @@ if ($different) {
exit 1;
} else {
print "Success : loadtest.xml == abc.xml\n";
+ cleanup();
}
diff --git a/TAO/orbsvcs/tests/Notify/XML_Persistence/svc.conf b/TAO/orbsvcs/tests/Notify/XML_Persistence/svc.conf
index c0d276565cb..349d679e2cf 100644
--- a/TAO/orbsvcs/tests/Notify/XML_Persistence/svc.conf
+++ b/TAO/orbsvcs/tests/Notify/XML_Persistence/svc.conf
@@ -1,2 +1,2 @@
static Notify_Default_Event_Manager_Objects_Factory "-DispatchingThreads 1"
-dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_TAO_Notify_XML_Topology_Factory() "-v -save_base_path ./abc -load_base_path ./loadtest -backup_count 2 -no_timestamp"
+dynamic Topology_Factory Service_Object* TAO_CosNotification_Persist:_make_XML_Topology_Factory() "-save_base_path ./abc -load_base_path ./loadtest -backup_count 2 -no_timestamp"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp
index 86b477c1bba..757baa0e912 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.cpp
@@ -34,7 +34,7 @@ TAO_Notify_Tests_Activation_Manager::~TAO_Notify_Tests_Activation_Manager ()
}
int
-TAO_Notify_Tests_Activation_Manager::ior_output_file (const ACE_TCHAR *file_name)
+TAO_Notify_Tests_Activation_Manager::ior_output_file (const char *file_name)
{
this->ior_output_file_ = ACE_OS::fopen (file_name, ACE_TEXT("w"));
@@ -45,7 +45,7 @@ TAO_Notify_Tests_Activation_Manager::ior_output_file (const ACE_TCHAR *file_name
}
int
-TAO_Notify_Tests_Activation_Manager::ior_input_file (const ACE_TCHAR *file_name)
+TAO_Notify_Tests_Activation_Manager::ior_input_file (const char *file_name)
{
this->ior_input_file_ = file_name;
return 0;
@@ -204,7 +204,7 @@ TAO_Notify_Tests_Activation_Manager::dump_stats (int dump_samples)
if (sup_iter.next (sup_entry) != 0)
{
supplier = sup_entry->int_id_;
- supplier->dump_stats (msg, dump_samples);
+ supplier->dump_stats (ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
}
}
@@ -219,7 +219,7 @@ TAO_Notify_Tests_Activation_Manager::dump_stats (int dump_samples)
if (cons_iter.next (cons_entry) != 0)
{
consumer = cons_entry->int_id_;
- consumer->dump_stats (msg, dump_samples);
+ consumer->dump_stats (ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
}
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h
index 838516b3d64..868e52895d9 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Activation_Manager.h
@@ -19,7 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Null_Mutex.h"
#include "ace/SString.h"
#include "ace/Hash_Map_Manager.h"
#include "Task_Callback.h"
@@ -27,9 +26,7 @@
#include "Periodic_Consumer.h"
#include "Activation_ManagerS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-ACE_END_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Notify_Tests_Activation_Manager
@@ -91,10 +88,10 @@ public:
void dump_stats (int dump_samples);
// Returns 0 if the file could be opened for write.
- int ior_output_file (const ACE_TCHAR *file_name);
+ int ior_output_file (const char *file_name);
// Returns 1 if the file could be opened for read.
- int ior_input_file (const ACE_TCHAR *file_name);
+ int ior_input_file (const char *file_name);
void write_ior (ACE_ENV_SINGLE_ARG_DECL);
void wait_for_start_signal (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
index 5172ae18620..65bb861b615 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Application_Command.cpp
@@ -20,20 +20,20 @@ TAO_Notify_Tests_Application_Command::~TAO_Notify_Tests_Application_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Application_Command::get_name (void)
{
return TAO_Notify_Tests_Application_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Application_Command::name (void)
{
return TAO_Notify_Tests_Name::application_command;
}
void
-TAO_Notify_Tests_Application_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Application_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -105,7 +105,6 @@ TAO_Notify_Tests_Application_Command::handle_init (ACE_ENV_SINGLE_ARG_DECL)
/// Activate the root POA.
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
TAO_Notify_Tests_Priority_Mapping* mapping = new TAO_Notify_Tests_Priority_Mapping ();
@@ -189,36 +188,29 @@ TAO_Notify_Tests_Application_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == INIT)
{
this->handle_init (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == RUN)
{
this->handle_run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == WAIT_FOR_EVENTS)
{
this->handle_wait_for_completion (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SHUTDOWN)
{
this->handle_shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DUMP_STATE)
{
this->handle_dump_stats (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SIGNAL_PEER)
{
this->handle_signal_peer (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == WAIT_TO_START)
{
this->handle_wait_to_start (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Application_Command.h b/TAO/orbsvcs/tests/Notify/lib/Application_Command.h
index ff267fc37a3..89902c795e6 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Application_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Application_Command.h
@@ -40,14 +40,14 @@ public:
~TAO_Notify_Tests_Application_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Get the command name.
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
#ifdef HPUX_11
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Command.cpp
index 4e63d4ba284..c77c5c9655b 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Command.cpp
@@ -19,7 +19,7 @@ TAO_Notify_Tests_Command::~TAO_Notify_Tests_Command ()
}
void
-TAO_Notify_Tests_Command::init (ACE_Arg_Shifter& /*arg_shifter*/)
+TAO_Notify_Tests_Command::init (ACE_TArg_Shifter< ACE_TCHAR >& /*arg_shifter*/)
{
// default: do nothing.
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command.h b/TAO/orbsvcs/tests/Notify/lib/Command.h
index 41f23995f0b..20b77126569 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Command.h
@@ -19,16 +19,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class Environment;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Notify_Tests_Command
@@ -47,16 +45,16 @@ public:
virtual ~TAO_Notify_Tests_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< ACE_TCHAR >& arg_shifter);
/// Implement command execution.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL) = 0;
/// Return the name of this command.
- virtual const char* get_name (void)= 0;
+ virtual const ACE_TCHAR* get_name (void)= 0;
///= Each derived type must also implement the following signature:
- // static const char* name (void);
+ // static const ACE_TCHAR* name (void);
protected:
/// Next command after this one.
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp
index e95b8ed81b2..0a412cfe89d 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.cpp
@@ -3,6 +3,7 @@
#include "Command_Builder.h"
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Command.h"
#include "Command_Factory.h"
#include "Name.h"
@@ -19,11 +20,11 @@ TAO_Notify_Tests_Command_Builder::~TAO_Notify_Tests_Command_Builder ()
}
int
-TAO_Notify_Tests_Command_Builder::init (int argc, char *argv[])
+TAO_Notify_Tests_Command_Builder::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< ACE_TCHAR > arg_shifter (argc, argv);
- ACE_CString current_arg;
+ ACE_TString current_arg;
TAO_Notify_Tests_Command_Factory* factory = 0;
if (arg_shifter.is_anything_left ())
@@ -65,7 +66,7 @@ TAO_Notify_Tests_Command_Builder::fini (void)
}
void
-TAO_Notify_Tests_Command_Builder::_register (ACE_CString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory)
+TAO_Notify_Tests_Command_Builder::_register (ACE_TString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory)
{
if (this->factory_map_.bind (command_factory_name, command_factory) == -1)
ACE_DEBUG ((LM_DEBUG, "Failed to register command factory for %s\n", command_factory_name.c_str ()));
diff --git a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h
index 7ca63765dbe..a29bd93e7d3 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Command_Builder.h
@@ -46,11 +46,11 @@ public:
~TAO_Notify_Tests_Command_Builder ();
/// = Service_Object virtual method overloads.
- virtual int init (int argc, char *argv[]);
+ virtual int init (int argc, ACE_TCHAR *argv[]);
virtual int fini (void);
/// Register the factory against the name of the factory.
- void _register (ACE_CString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory);
+ void _register (ACE_TString command_factory_name, TAO_Notify_Tests_Command_Factory* command_factory);
/// Execute the <start_command_>.
void execute (ACE_ENV_SINGLE_ARG_DECL);
@@ -63,7 +63,7 @@ protected:
TAO_Notify_Tests_Command* last_command_;
/// The factory map.
- ACE_Hash_Map_Manager <ACE_CString, TAO_Notify_Tests_Command_Factory*, TAO_SYNCH_MUTEX> factory_map_;
+ ACE_Hash_Map_Manager <ACE_TString, TAO_Notify_Tests_Command_Factory*, TAO_SYNCH_MUTEX> factory_map_;
};
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_NOTIFY_TEST, TAO_Notify_Tests_Command_Builder)
diff --git a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp
index 2965bc0094c..6846f60c64c 100644
--- a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.cpp
@@ -17,13 +17,13 @@ TAO_Notify_Tests_ConsumerAdmin_Command::~TAO_Notify_Tests_ConsumerAdmin_Command
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_ConsumerAdmin_Command::get_name (void)
{
return TAO_Notify_Tests_ConsumerAdmin_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_ConsumerAdmin_Command::name (void)
{
return TAO_Notify_Tests_Name::consumer_admin_command;
@@ -96,7 +96,7 @@ TAO_Notify_Tests_ConsumerAdmin_Command::handle_status (ACE_ENV_SINGLE_ARG_DECL_N
}
void
-TAO_Notify_Tests_ConsumerAdmin_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_ConsumerAdmin_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -160,21 +160,17 @@ TAO_Notify_Tests_ConsumerAdmin_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == CREATE)
{
this->handle_create (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SUBSCRIPTION)
{
this->handle_subscriptions (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SET_QOS)
{
this->handle_set_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DUMP_STATE)
{
this->handle_status (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h
index a94146e47bc..dcc6b8aeea2 100644
--- a/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h
@@ -39,14 +39,14 @@ public:
~TAO_Notify_Tests_ConsumerAdmin_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
index 8985aa6f772..c8689505bdb 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp
@@ -76,7 +76,6 @@ TAO_Notify_Tests_Worker::command_builder (TAO_Notify_Tests_Command_Builder* cmd_
int
TAO_Notify_Tests_Worker::svc (void)
{
-#if 0
ACE_hthread_t current;
ACE_Thread::self (current);
@@ -88,7 +87,6 @@ TAO_Notify_Tests_Worker::svc (void)
}
ACE_DEBUG ((LM_ERROR, "Activated Worker Thread for commands @ priority:%d \n", priority));
-#endif
ACE_DECLARE_NEW_CORBA_ENV;
@@ -131,13 +129,6 @@ TAO_Notify_Tests_ORB_Run_Worker::run_period (ACE_Time_Value run_period)
int
TAO_Notify_Tests_ORB_Run_Worker::svc (void)
{
-#if 0
- // ACE_Thread::getprio() fails on systems that do not support thread
- // priorities. While we could just treat the failure as benign, I'm
- // just disabling it altogether. It doesn't provide much value, and
- // makes service startup needlessly more verbose. See bugzilla 2477
- // for details.
-
ACE_hthread_t current;
ACE_Thread::self (current);
@@ -148,8 +139,8 @@ TAO_Notify_Tests_ORB_Run_Worker::svc (void)
return -1;
}
+
ACE_DEBUG ((LM_ERROR, "Activated ORB Run Worker Thread to run the ORB @ priority:%d \n", priority));
-#endif
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -186,13 +177,13 @@ TAO_Notify_Tests_Driver::~TAO_Notify_Tests_Driver ()
int
TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
- if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-Timeout")))) // -Timeout timeout_period_S
+ if ((current_arg = arg_shifter.get_the_parameter ("-Timeout"))) // -Timeout timeout_period_S
{
if (current_arg != 0)
{
@@ -201,7 +192,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORoutput")))) // -IORoutput file_name
+ else if ((current_arg = arg_shifter.get_the_parameter ("-IORoutput"))) // -IORoutput file_name
{
if (this->activation_manager_->ior_output_file (current_arg) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -210,7 +201,7 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
arg_shifter.consume_arg ();
}
- else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-IORinput")))) // -IORinput file_name
+ else if ((current_arg = arg_shifter.get_the_parameter ("-IORinput"))) // -IORinput file_name
{
if (this->activation_manager_->ior_input_file (current_arg) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -235,17 +226,17 @@ TAO_Notify_Tests_Driver::parse_args (int argc, char *argv[])
}
int
-TAO_Notify_Tests_Driver::init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL)
+TAO_Notify_Tests_Driver::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
- ACE_Argv_Type_Converter command_line(argc, argv);
+ ACE_Argv_Type_Converter convert(argc, argv);
- this->orb_ = CORBA::ORB_init (command_line.get_argc(),
- command_line.get_ASCII_argv(),
+ this->orb_ = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- if (this->parse_args (argc, argv) == -1)
+ if (this->parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/orbsvcs/tests/Notify/lib/Driver.h b/TAO/orbsvcs/tests/Notify/lib/Driver.h
index 610e6b02e79..f909a8ed2a0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Driver.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Driver.h
@@ -107,7 +107,7 @@ public:
~TAO_Notify_Tests_Driver ();
/// Init
- int init (int argc, ACE_TCHAR *argv[] ACE_ENV_ARG_DECL);
+ int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
/// Execute the commands.
void run (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp
index 519fee9fc45..8e2a2a1b596 100644
--- a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.cpp
@@ -20,20 +20,20 @@ TAO_Notify_Tests_EventChannel_Command::~TAO_Notify_Tests_EventChannel_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_EventChannel_Command::get_name (void)
{
return TAO_Notify_Tests_EventChannel_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_EventChannel_Command::name (void)
{
return TAO_Notify_Tests_Name::event_channel_command;
}
void
-TAO_Notify_Tests_EventChannel_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_EventChannel_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -93,7 +93,7 @@ TAO_Notify_Tests_EventChannel_Command::create_collocated_ecf (ACE_ENV_SINGLE_ARG
CosNotifyChannelAdmin::EventChannelFactory_var notify_factory;
// The Service Object.
- TAO_Notify_Service* notify_service = 0;
+ TAO_Notify_Service* notify_service;
notify_service = ACE_Dynamic_Service<TAO_Notify_Service>::instance (TAO_NOTIFICATION_SERVICE_NAME);
@@ -205,21 +205,17 @@ TAO_Notify_Tests_EventChannel_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == CREATE)
{
this->handle_create (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DESTROY)
{
this->handle_destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SET_QOS)
{
this->handle_set_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DUMP_STATE)
{
this->handle_status (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h
index 35a2baa4bb0..30843f6b0e7 100644
--- a/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/EventChannel_Command.h
@@ -24,9 +24,7 @@
#include "Command.h"
//#include "../../../orbsvcs/Notify/CosNotify_Initializer.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_Service;
-TAO_END_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Notify_Tests_EventChannel_Command
@@ -44,14 +42,14 @@ public:
virtual ~TAO_Notify_Tests_EventChannel_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
///= Data Members
diff --git a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp
index 2bb7bb716b4..404e401f706 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.cpp
@@ -16,20 +16,20 @@ TAO_Notify_Tests_Filter_Command::~TAO_Notify_Tests_Filter_Command ()
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Filter_Command::get_name (void)
{
return TAO_Notify_Tests_Filter_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Filter_Command::name (void)
{
return TAO_Notify_Tests_Name::filter_command;
}
void
-TAO_Notify_Tests_Filter_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Filter_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -183,26 +183,21 @@ TAO_Notify_Tests_Filter_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == CREATE_FACTORY)
{
this->handle_create_filter_factory (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == CREATE_FILTER)
{
this->handle_create_filter (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == ADD_CONSTRAINT)
{
this->handle_add_constraint (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == ADD_FILTER)
{
this->handle_add_filter (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DESTROY)
{
this->handle_destroy_filter (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h
index 2678b6c4437..24d1b9dfb43 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Filter_Command.h
@@ -39,14 +39,14 @@ public:
~TAO_Notify_Tests_Filter_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Makefile.am b/TAO/orbsvcs/tests/Notify/lib/Makefile.am
index e2715ad1952..0d4de28dd75 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/lib/Makefile.am
@@ -19,7 +19,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.NotifyTests_Lib.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -98,8 +97,7 @@ libTAO_NotifyTests_la_SOURCES = \
StructuredPushSupplier.cpp \
SupplierAdmin_Command.cpp \
Task_Callback.cpp \
- Task_Stats.cpp \
- common.cpp
+ Task_Stats.cpp
noinst_HEADERS = \
Activation_Manager.h \
@@ -167,11 +165,9 @@ noinst_HEADERS = \
Task_Callback.h \
Task_Stats.h \
Task_Stats.inl \
- common.h \
notify_test_export.h
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Name.cpp b/TAO/orbsvcs/tests/Notify/lib/Name.cpp
index 87e0c004674..532fa99954a 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Name.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Name.cpp
@@ -5,33 +5,36 @@
ACE_RCSID(lib, TAO_Name, "$Id$")
#define TAO_Notify_Tests_DECLARE_NAME(target, name) \
-const char* const TAO_Notify_Tests_Name::target = ACE_TEXT (name);
+const ACE_TCHAR* const TAO_Notify_Tests_Name::target = name;
-TAO_Notify_Tests_DECLARE_NAME (command_builder,"Command_Builder")
-TAO_Notify_Tests_DECLARE_NAME (root_poa,"RootPOA")
-TAO_Notify_Tests_DECLARE_NAME (event_channel_factory,"NotifyEventChannelFactory")
-TAO_Notify_Tests_DECLARE_NAME (naming_service,"NameService")
+#define TAO_Notify_Tests_DECLARE_NAME_A(target, name) \
+const char* const TAO_Notify_Tests_Name::target = name;
-TAO_Notify_Tests_DECLARE_NAME (application_command,"Application")
-TAO_Notify_Tests_DECLARE_NAME (application_command_factory,"Application_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (command_builder, ACE_TEXT("Command_Builder"))
+TAO_Notify_Tests_DECLARE_NAME_A (root_poa, "RootPOA")
+TAO_Notify_Tests_DECLARE_NAME_A (event_channel_factory, "NotifyEventChannelFactory")
+TAO_Notify_Tests_DECLARE_NAME_A (naming_service, "NameService")
-TAO_Notify_Tests_DECLARE_NAME (event_channel_command,"EventChannel")
-TAO_Notify_Tests_DECLARE_NAME (event_channel_command_factory,"EventChannel_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (application_command, ACE_TEXT("Application"))
+TAO_Notify_Tests_DECLARE_NAME (application_command_factory, ACE_TEXT("Application_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command,"ConsumerAdmin")
-TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command_factory,"ConsumerAdmin_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (event_channel_command, ACE_TEXT("EventChannel"))
+TAO_Notify_Tests_DECLARE_NAME (event_channel_command_factory, ACE_TEXT("EventChannel_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command,"SupplierAdmin")
-TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command_factory,"SupplierAdmin_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command, ACE_TEXT("ConsumerAdmin"))
+TAO_Notify_Tests_DECLARE_NAME (consumer_admin_command_factory, ACE_TEXT("ConsumerAdmin_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command, "PeriodicSupplier")
-TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command_factory, "PeriodicSupplier_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command, ACE_TEXT("SupplierAdmin"))
+TAO_Notify_Tests_DECLARE_NAME (supplier_admin_command_factory, ACE_TEXT("SupplierAdmin_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command, "PeriodicConsumer")
-TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command_factory, "PeriodicConsumer_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command, ACE_TEXT("PeriodicSupplier"))
+TAO_Notify_Tests_DECLARE_NAME (periodic_supplier_command_factory, ACE_TEXT("PeriodicSupplier_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (poa_command, "POA")
-TAO_Notify_Tests_DECLARE_NAME (poa_command_factory, "POA_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command, ACE_TEXT("PeriodicConsumer"))
+TAO_Notify_Tests_DECLARE_NAME (periodic_consumer_command_factory, ACE_TEXT("PeriodicConsumer_Command_Factory"))
-TAO_Notify_Tests_DECLARE_NAME (filter_command, "Filter")
-TAO_Notify_Tests_DECLARE_NAME (filter_command_factory, "Filter_Command_Factory")
+TAO_Notify_Tests_DECLARE_NAME (poa_command, ACE_TEXT("POA"))
+TAO_Notify_Tests_DECLARE_NAME (poa_command_factory, ACE_TEXT("POA_Command_Factory"))
+
+TAO_Notify_Tests_DECLARE_NAME (filter_command, ACE_TEXT("Filter"))
+TAO_Notify_Tests_DECLARE_NAME (filter_command_factory, ACE_TEXT("Filter_Command_Factory"))
diff --git a/TAO/orbsvcs/tests/Notify/lib/Name.h b/TAO/orbsvcs/tests/Notify/lib/Name.h
index 602f3d1e6de..188eb6113c0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Name.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Name.h
@@ -32,31 +32,31 @@ public:
static const char* const event_channel_factory;
static const char* const naming_service;
- static const char* const command_builder;
+ static const ACE_TCHAR* const command_builder;
- static const char* const application_command_factory;
- static const char* const application_command;
+ static const ACE_TCHAR* const application_command_factory;
+ static const ACE_TCHAR* const application_command;
- static const char* const event_channel_command_factory;
- static const char* const event_channel_command;
+ static const ACE_TCHAR* const event_channel_command_factory;
+ static const ACE_TCHAR* const event_channel_command;
- static const char* const supplier_admin_command_factory;
- static const char* const supplier_admin_command;
+ static const ACE_TCHAR* const supplier_admin_command_factory;
+ static const ACE_TCHAR* const supplier_admin_command;
- static const char* const consumer_admin_command_factory;
- static const char* const consumer_admin_command;
+ static const ACE_TCHAR* const consumer_admin_command_factory;
+ static const ACE_TCHAR* const consumer_admin_command;
- static const char* const periodic_supplier_command;
- static const char* const periodic_supplier_command_factory;
+ static const ACE_TCHAR* const periodic_supplier_command;
+ static const ACE_TCHAR* const periodic_supplier_command_factory;
- static const char* const periodic_consumer_command;
- static const char* const periodic_consumer_command_factory;
+ static const ACE_TCHAR* const periodic_consumer_command;
+ static const ACE_TCHAR* const periodic_consumer_command_factory;
- static const char* const poa_command;
- static const char* const poa_command_factory;
+ static const ACE_TCHAR* const poa_command;
+ static const ACE_TCHAR* const poa_command_factory;
- static const char* const filter_command;
- static const char* const filter_command_factory;
+ static const ACE_TCHAR* const filter_command;
+ static const ACE_TCHAR* const filter_command_factory;
};
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp
index cd6a689acfa..30ac0894ea3 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.cpp
@@ -34,7 +34,7 @@ Notify_Test_Client::~Notify_Test_Client ()
}
int
-Notify_Test_Client::init (int argc, char *argv [] ACE_ENV_ARG_DECL)
+Notify_Test_Client::init (int argc, char *argv[] ACE_ENV_ARG_DECL)
{
int status = this->init_ORB (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -57,11 +57,10 @@ Notify_Test_Client::parse_args (int /*argc*/, char** /*argv*/)
int
Notify_Test_Client::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h
index 39bbed208fe..493d4144c7e 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Notify_Test_Client.h
@@ -37,7 +37,7 @@ public:
Notify_Test_Client (void);
virtual ~Notify_Test_Client ();
- virtual int init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ virtual int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// starts the orb and resolves the notify factory via a naming service.
virtual int parse_args (int argc, char* argv[]);
@@ -76,7 +76,7 @@ public:
protected:
int init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// Initializes the ORB.
diff --git a/TAO/orbsvcs/tests/Notify/lib/Notify_lib.mpc b/TAO/orbsvcs/tests/Notify/lib/Notify_lib.mpc
index 293ba3bed29..b4a0aacf126 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Notify_lib.mpc
+++ b/TAO/orbsvcs/tests/Notify/lib/Notify_lib.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(NotifyTests_Lib): orbsvcslib, notification_skel, notify_serv, naming, svc_utils {
+project(NotifyTests_Lib): orbsvcslib, notification_skel, naming, svc_utils {
sharedname = TAO_NotifyTests
dynamicflags = TAO_NOTIFY_TEST_BUILD_DLL
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp
index 2685d1bfd5b..103533945d1 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.cpp
@@ -9,8 +9,6 @@ ACE_RCSID (lib,
#include "orbsvcs/NotifyExtC.h"
#include "tao/debug.h"
#include "ace/Log_Msg.h"
-#include "ace/Arg_Shifter.h"
-
TAO_Notify_Tests_Options_Parser::TAO_Notify_Tests_Options_Parser (void)
{
@@ -21,9 +19,9 @@ TAO_Notify_Tests_Options_Parser::~TAO_Notify_Tests_Options_Parser ()
}
void
-TAO_Notify_Tests_Options_Parser::execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Options_Parser::execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_TArg_Shifter< char >& arg_shifter)
{
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -52,9 +50,9 @@ TAO_Notify_Tests_Options_Parser::execute (CosNotification::EventTypeSeq& added,
}
void
-TAO_Notify_Tests_Options_Parser::execute (CosNotification::QoSProperties& qos, ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Options_Parser::execute (CosNotification::QoSProperties& qos, ACE_TArg_Shifter< char >& arg_shifter)
{
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
int default_priority = ACE_DEFAULT_THREAD_PRIORITY;
if (arg_shifter.cur_arg_strncasecmp ("-ThreadPool") == 0) // -ThreadPool [-Threads static_threads] [-Priority default_priority]
diff --git a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h
index cecfce11495..2f9dd8faf3b 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Options_Parser.h
@@ -19,12 +19,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosNotificationC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Notify_Tests_Options_Parser
*
@@ -41,10 +39,10 @@ public:
~TAO_Notify_Tests_Options_Parser ();
/// Populates <qos> with options apecified in <arg_shifter>
- void execute (CosNotification::QoSProperties& qos, ACE_Arg_Shifter& arg_shifter);
+ void execute (CosNotification::QoSProperties& qos, ACE_TArg_Shifter< char >& arg_shifter);
/// Populates <added> and <removed> with options apecified in <arg_shifter>
- void execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_Arg_Shifter& arg_shifter);
+ void execute (CosNotification::EventTypeSeq& added, CosNotification::EventTypeSeq& removed, ACE_TArg_Shifter< char >& arg_shifter);
};
#include /**/ "ace/post.h"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Peer.cpp b/TAO/orbsvcs/tests/Notify/lib/Peer.cpp
index 293218f1ae5..0c2f8934212 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Peer.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Peer.cpp
@@ -11,6 +11,7 @@ ACE_RCSID (lib,
"$Id$")
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "Name.h"
#include "LookupManager.h"
#include "Options_Parser.h"
@@ -33,7 +34,7 @@ TAO_Notify_Tests_Peer::init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL_NOT_U
}
int
-TAO_Notify_Tests_Peer::init_state (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Peer::init_state (ACE_TArg_Shifter< char >& arg_shifter)
{
while (arg_shifter.is_anything_left ())
{
diff --git a/TAO/orbsvcs/tests/Notify/lib/Peer.h b/TAO/orbsvcs/tests/Notify/lib/Peer.h
index b1f93a4b815..2d369b5ba2a 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Peer.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Peer.h
@@ -22,10 +22,8 @@
#include "orbsvcs/CosNotifyChannelAdminC.h"
#include "tao/PortableServer/PortableServer.h"
#include "ace/SString.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
/**
* @class TAO_Notify_Tests_Peer
@@ -46,7 +44,7 @@ public:
void init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL_NOT_USED);
/// Init this object.
- virtual int init_state (ACE_Arg_Shifter& arg_shifter);
+ virtual int init_state (ACE_TArg_Shifter< char >& arg_shifter);
/// Set POA
void set_poa (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp b/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp
index 556d11fb0f0..c62df60ac6b 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Peer_T.cpp
@@ -10,6 +10,7 @@ ACE_RCSID (Notify,
"$Id$")
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "Name.h"
#include "LookupManager.h"
#include "Options_Parser.h"
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
index a718deb73bf..a59676d8871 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.cpp
@@ -3,8 +3,8 @@
#include "Periodic_Consumer.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
-#include "ace/Task.h"
#include "tao/debug.h"
#include "orbsvcs/Time_Utilities.h"
#include "StructuredEvent.h"
@@ -41,13 +41,13 @@ TAO_Notify_Tests_Periodic_Consumer::task_callback (TAO_Notify_Tests_Task_Callbac
}
int
-TAO_Notify_Tests_Periodic_Consumer::init_state (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Consumer::init_state (ACE_TArg_Shifter< char >& arg_shifter)
{
// First, let the base class look for options.
if (TAO_Notify_Tests_StructuredPushConsumer::init_state (arg_shifter) == -1)
return -1;
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -257,7 +257,7 @@ TAO_Notify_Tests_Periodic_Consumer::push_structured_event (const CosNotification
}
void
-TAO_Notify_Tests_Periodic_Consumer::dump_stats (ACE_TCHAR* msg, int dump_samples)
+TAO_Notify_Tests_Periodic_Consumer::dump_stats (const ACE_TCHAR* msg, int dump_samples)
{
char buf[BUFSIZ];
ACE_OS::sprintf (buf, "%s.dat", this->name_.c_str ());
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h
index de06aa31135..6fb76b3e928 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer.h
@@ -21,13 +21,11 @@
#include "Task_Stats.h"
#include "Notify_StructuredPushConsumer.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Barrier;
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
class TAO_Notify_Tests_Task_Callback;
+class ACE_Barrier;
/**
* @class TAO_Notify_Tests_Periodic_Consumer
@@ -48,10 +46,10 @@ public:
void task_callback(TAO_Notify_Tests_Task_Callback* client);
/// Init the state of this object.
- virtual int init_state (ACE_Arg_Shifter& arg_shifter);
+ virtual int init_state (ACE_TArg_Shifter< char >& arg_shifter);
/// dump stats
- void dump_stats (ACE_TCHAR* msg, int dump_samples);
+ void dump_stats (const ACE_TCHAR* msg, int dump_samples);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
index cfda2e788f8..d0e866144c5 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.cpp
@@ -2,8 +2,8 @@
#include "Periodic_Consumer_Command.h"
-ACE_RCSID (lib,
- TAO_Periodic_Consumer_Command,
+ACE_RCSID (lib,
+ TAO_Periodic_Consumer_Command,
"$Id$")
#include "LookupManager.h"
@@ -23,20 +23,20 @@ TAO_Notify_Tests_Periodic_Consumer_Command::~TAO_Notify_Tests_Periodic_Consumer_
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Consumer_Command::get_name (void)
{
return TAO_Notify_Tests_Periodic_Consumer_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Consumer_Command::name (void)
{
return TAO_Notify_Tests_Name::periodic_consumer_command;
}
void
-TAO_Notify_Tests_Periodic_Consumer_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Consumer_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -243,31 +243,25 @@ TAO_Notify_Tests_Periodic_Consumer_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == CREATE)
{
this->handle_create (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SUBSCRIPTION)
{
this->handle_subscriptions (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DISCONNECT)
{
this->handle_disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DEACTIVATE)
{
this->handle_deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DUMP_STATE)
{
this->handle_status (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SET_QOS)
{
this->handle_set_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h
index d258c7e2e8a..f61cdcaf201 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Consumer_Command.h
@@ -41,14 +41,14 @@ public:
~TAO_Notify_Tests_Periodic_Consumer_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
///= Data Members
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
index b2aea30f498..901964d7b1d 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.cpp
@@ -3,6 +3,7 @@
#include "Periodic_Supplier.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/High_Res_Timer.h"
#include "ace/Barrier.h"
#include "ace/OS_NS_unistd.h"
@@ -45,13 +46,13 @@ TAO_Notify_Tests_Periodic_Supplier::task_callback(TAO_Notify_Tests_Task_Callback
}
int
-TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Supplier::init_state (ACE_TArg_Shifter< char >& arg_shifter)
{
// First, let the base class look for options.
if (TAO_Notify_Tests_StructuredPushSupplier::init_state (arg_shifter) == -1)
return -1;
- const ACE_TCHAR *current_arg = 0;
+ const char *current_arg = 0;
while (arg_shifter.is_anything_left ())
{
@@ -340,7 +341,7 @@ TAO_Notify_Tests_Periodic_Supplier::svc (void)
}
void
-TAO_Notify_Tests_Periodic_Supplier::dump_stats (ACE_TCHAR* msg, int dump_samples)
+TAO_Notify_Tests_Periodic_Supplier::dump_stats (const ACE_TCHAR* msg, int dump_samples)
{
char buf[BUFSIZ];
ACE_OS::sprintf (buf, "%s.dat", this->name_.c_str ());
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h
index 969f07cb4ec..e6f13144512 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier.h
@@ -24,13 +24,11 @@
#include "StructuredEvent.h"
#include "ace/Task.h"
#include "ace/Barrier.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Barrier;
-class ACE_Arg_Shifter;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
class TAO_Notify_Tests_Task_Callback;
+class ACE_Barrier;
/**
* @class TAO_Notify_Tests_Periodic_Supplier
@@ -51,7 +49,7 @@ public:
void task_callback(TAO_Notify_Tests_Task_Callback* client);
/// Init the state of this object.
- int init_state (ACE_Arg_Shifter& arg_shifter);
+ int init_state (ACE_TArg_Shifter< char >& arg_shifter);
/// Activate this task, synch on the given barrier.
virtual int activate_task (ACE_Barrier* barrier);
@@ -60,7 +58,7 @@ public:
virtual int svc (void);
/// Dump stats.
- void dump_stats (ACE_TCHAR* msg, int dump_samples);
+ void dump_stats (const ACE_TCHAR* msg, int dump_samples);
/// Get the name of the proxy
const char* proxy_name (void);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
index 9cdfaccbb51..10ada8a1929 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.cpp
@@ -2,8 +2,8 @@
#include "Periodic_Supplier_Command.h"
-ACE_RCSID (lib,
- TAO_Periodic_Supplier_Command,
+ACE_RCSID (lib,
+ TAO_Periodic_Supplier_Command,
"$Id$")
#include "LookupManager.h"
@@ -22,20 +22,20 @@ TAO_Notify_Tests_Periodic_Supplier_Command::~TAO_Notify_Tests_Periodic_Supplier_
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Supplier_Command::get_name (void)
{
return TAO_Notify_Tests_Periodic_Supplier_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_Periodic_Supplier_Command::name (void)
{
return TAO_Notify_Tests_Name::periodic_supplier_command;
}
void
-TAO_Notify_Tests_Periodic_Supplier_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_Periodic_Supplier_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -231,31 +231,25 @@ TAO_Notify_Tests_Periodic_Supplier_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == CREATE)
{
this->handle_create (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == OFFER)
{
this->handle_offers (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DISCONNECT)
{
this->handle_disconnect (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DEACTIVATE)
{
this->handle_deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DUMP_STATE)
{
this->handle_status (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SET_QOS)
{
this->handle_set_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h
index 726d7cd0ddd..c30ba056992 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Periodic_Supplier_Command.h
@@ -41,14 +41,14 @@ public:
~TAO_Notify_Tests_Periodic_Supplier_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp
index 5adaa65c92c..d9b9d96f665 100644
--- a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.cpp
@@ -17,20 +17,20 @@ TAO_Notify_Tests_SupplierAdmin_Command::~TAO_Notify_Tests_SupplierAdmin_Command
{
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_SupplierAdmin_Command::get_name (void)
{
return TAO_Notify_Tests_SupplierAdmin_Command::name ();
}
-const char*
+const ACE_TCHAR*
TAO_Notify_Tests_SupplierAdmin_Command::name (void)
{
return TAO_Notify_Tests_Name::supplier_admin_command;
}
void
-TAO_Notify_Tests_SupplierAdmin_Command::init (ACE_Arg_Shifter& arg_shifter)
+TAO_Notify_Tests_SupplierAdmin_Command::init (ACE_TArg_Shifter< char >& arg_shifter)
{
if (arg_shifter.is_anything_left ())
{
@@ -159,21 +159,17 @@ TAO_Notify_Tests_SupplierAdmin_Command::execute_i (ACE_ENV_SINGLE_ARG_DECL)
if (this->command_ == CREATE)
{
this->handle_create (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == OFFER)
{
this->handle_offers (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == SET_QOS)
{
this->handle_set_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
else if (this->command_ == DUMP_STATE)
{
this->handle_status (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
}
}
diff --git a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h
index fbed3172551..ed73819a9b0 100644
--- a/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h
+++ b/TAO/orbsvcs/tests/Notify/lib/SupplierAdmin_Command.h
@@ -39,14 +39,14 @@ public:
~TAO_Notify_Tests_SupplierAdmin_Command ();
/// Parse args and populate options.
- virtual void init (ACE_Arg_Shifter& arg_shifter);
+ virtual void init (ACE_TArg_Shifter< char >& arg_shifter);
/// Execute the command.
virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
/// Name of object
- virtual const char* get_name (void);
- static const char* name (void);
+ virtual const ACE_TCHAR* get_name (void);
+ static const ACE_TCHAR* name (void);
protected:
diff --git a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp
index 3669f3987a1..7d2ae5888cd 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp
+++ b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.cpp
@@ -55,10 +55,20 @@ Task_Stats::end_time (ACE_UINT64 time)
end_time_ = time;
}
+void Task_Stats::dump_samples (const char *file_name, const char *msg, int dump_samples)
+{
+ dump_samples_i(ACE_TEXT_TO_TCHAR_IN(file_name), ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
+}
+
+void Task_Stats::dump_samples (const wchar_t *file_name, const wchar_t *msg, int dump_samples)
+{
+ dump_samples_i(ACE_TEXT_TO_TCHAR_IN(file_name), ACE_TEXT_TO_TCHAR_IN(msg), dump_samples);
+}
+
void
-Task_Stats::dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples)
+Task_Stats::dump_samples_i (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples)
{
- FILE* output_file = ACE_OS::fopen (file_name, "w");
+ FILE* output_file = ACE_OS::fopen (file_name, ACE_TEXT("w"));
// first dump what the caller has to say.
ACE_OS::fprintf (output_file, "%s\n",msg);
diff --git a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h
index cc4d7190887..6de23f231f4 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h
+++ b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.h
@@ -70,9 +70,13 @@ class TAO_NOTIFY_TEST_Export Task_Stats
/// Record a sample
int sample (ACE_UINT64 inv_start_time, ACE_UINT64 inv_end_time);
- void dump_samples (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples);
+ void dump_samples (const char *file_name, const char *msg, int dump_samples);
+
+ void dump_samples (const wchar_t *file_name, const wchar_t *msg, int dump_samples);
+
+ private:
+ void dump_samples_i (const ACE_TCHAR *file_name, const ACE_TCHAR *msg, int dump_samples);
- protected:
/// Base and end times
ACE_UINT64 base_time_;
ACE_UINT64 end_time_;
diff --git a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
index aed41117a3d..3be923f7f73 100644
--- a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
+++ b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
@@ -1,7 +1,6 @@
//$Id$
#include "ace/High_Res_Timer.h"
-#include "ace/Log_Msg.h"
ACE_INLINE double
Task_Stats::diff_sec (ACE_UINT64 before, ACE_UINT64 after)
diff --git a/TAO/orbsvcs/tests/Notify/lib/common.cpp b/TAO/orbsvcs/tests/Notify/lib/common.cpp
deleted file mode 100644
index ff6f0bc6296..00000000000
--- a/TAO/orbsvcs/tests/Notify/lib/common.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// $Id$
-
-#include "common.h"
-
-#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/CosNamingC.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_string.h"
-
-
-const char*
-Any_String (const CORBA::Any& any)
-{
- static char out[256] = "";
- CORBA::Short s;
- CORBA::UShort us;
- CORBA::Long l;
- CORBA::ULong ul;
- CORBA::ULongLong ull;
- const char* str;
-
- if (any >>= s)
- {
- ACE_OS::sprintf (out, ACE_INT16_FORMAT_SPECIFIER, s);
- }
- else if (any >>= us)
- {
- ACE_OS::sprintf (out, ACE_UINT16_FORMAT_SPECIFIER, us);
- }
- else if (any >>= l)
- {
- ACE_OS::sprintf (out, ACE_INT32_FORMAT_SPECIFIER, l);
- }
- else if (any >>= ul)
- {
- ACE_OS::sprintf (out, ACE_UINT32_FORMAT_SPECIFIER, ul);
- }
- else if (any >>= str)
- {
- ACE_OS::strcpy (out, str);
- }
- else if (any >>= ull)
- {
-#if defined (ACE_LACKS_LONGLONG_T)
- ACE_OS::strcpy (out, ull.as_string (out));
-#else
- ACE_OS::sprintf (out, ACE_UINT64_FORMAT_SPECIFIER, ull);
-#endif /* ACE_LACKS_LONGLONG_T */
- }
- else
- {
- ACE_OS::strcpy (out, "Unsupported Any Type");
- }
-
- return out;
-}
diff --git a/TAO/orbsvcs/tests/Notify/lib/common.h b/TAO/orbsvcs/tests/Notify/lib/common.h
deleted file mode 100644
index 7704baa6a25..00000000000
--- a/TAO/orbsvcs/tests/Notify/lib/common.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-// ==========================================================================
-//
-// = LIBRARY
-// TAO/orbsvcs/tests/Notify/lib
-//
-// = FILENAME
-// common.h
-//
-// = DESCRIPTION
-// A couple of useful functions
-//
-// = AUTHOR
-// Chad Elliott <elliott_c@ociweb.com>
-//
-// ==========================================================================
-#ifndef TAO_COMMON_H
-#define TAO_COMMON_H
-
-#include /**/ "ace/pre.h"
-
-#include "notify_test_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "orbsvcs/CosNotifyChannelAdminS.h"
-
-
-TAO_NOTIFY_TEST_Export
-const char* Any_String (const CORBA::Any& any);
-
-#include /**/ "ace/post.h"
-#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Filter.mpc b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Filter.mpc
index f2020bde1d3..bd3d85ca6cd 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Filter.mpc
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Filter.mpc
@@ -6,7 +6,7 @@ project(*idl): taoidldefaults, minimum_corba {
}
custom_only = 1
}
-
+
project(*Ntf Perf Struct Supp): notifytest, minimum_corba {
after += *idl
exename = Structured_Supplier
@@ -24,6 +24,7 @@ project(*Ntf Perf Struct Cons): notifytest, minimum_corba {
exename = Structured_Consumer
Source_Files {
goC.cpp
+ common.cpp
Notify_Structured_Push_Consumer.cpp
Structured_Consumer.cpp
}
@@ -48,6 +49,7 @@ project(*notify perf Sequence Consumer): notifytest, minimum_corba {
exename = Sequence_Consumer
Source_Files {
goC.cpp
+ common.cpp
Notify_Sequence_Push_Consumer.cpp
Sequence_Consumer.cpp
}
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am
index 47360ae1d2c..86c5c6c75e1 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Makefile.am
@@ -52,14 +52,10 @@ go-stamp: $(srcdir)/go.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- go.idl
-
endif !BUILD_MINIMUM_CORBA
## Makefile.Filter_Notify_Perf_Sequence_Consumer.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Consumer
@@ -77,18 +73,13 @@ Sequence_Consumer_CPPFLAGS = \
Sequence_Consumer_SOURCES = \
Notify_Sequence_Push_Consumer.cpp \
Sequence_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Sequence_Push_Consumer.h
+ Notify_Sequence_Push_Consumer.h \
+ common.h
Sequence_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -104,11 +95,9 @@ Sequence_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Filter_Ntf_Perf_Seq_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Sequence_Supplier
@@ -128,17 +117,11 @@ Sequence_Supplier_SOURCES = \
goC.cpp \
goS.cpp \
Notify_Sequence_Push_Consumer.h \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Sequence_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -154,11 +137,9 @@ Sequence_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Filter_Ntf_Perf_Struct_Cons.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Consumer
@@ -176,18 +157,13 @@ Structured_Consumer_CPPFLAGS = \
Structured_Consumer_SOURCES = \
Notify_Structured_Push_Consumer.cpp \
Structured_Consumer.cpp \
+ common.cpp \
goC.cpp \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Consumer_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -203,11 +179,9 @@ Structured_Consumer_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Makefile.Filter_Ntf_Perf_Struct_Supp.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += Structured_Supplier
@@ -227,17 +201,11 @@ Structured_Supplier_SOURCES = \
goC.cpp \
goS.cpp \
Notify_Sequence_Push_Consumer.h \
- Notify_Structured_Push_Consumer.h
+ Notify_Structured_Push_Consumer.h \
+ common.h
Structured_Supplier_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -253,7 +221,6 @@ Structured_Supplier_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp
index 8d284b588a5..0430a25e7a5 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosNotifyCommC.h"
#include "orbsvcs/CosNamingC.h"
@@ -41,7 +42,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:c:e:f");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:c:e:f");
int c;
while ((c = get_opts ()) != -1)
@@ -151,14 +152,16 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp
index 7b7df800ca5..0d4ec17c912 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Sequence_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -83,7 +84,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:");
int c;
while ((c = get_opts ()) != -1)
@@ -150,16 +151,8 @@ SendEvents (int id ACE_ENV_ARG_DECL)
events[z].filterable_data[0].value <<= type;
}
- ACE_TRY_NEW_ENV
- {
- supplier_1->send_events(events ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::Exception, e)
- {
- ACE_PRINT_EXCEPTION (e, "Error: Supplier exception: ");
- }
- ACE_ENDTRY;
+ supplier_1->send_events(events ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
static void
@@ -184,15 +177,17 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
int status = 0;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -215,7 +210,7 @@ int main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp
index a45be86190f..594e97b06f3 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Consumer.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosNotifyCommC.h"
#include "orbsvcs/CosNamingC.h"
@@ -39,7 +40,7 @@ public:
int
Consumer_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:e:c:f");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:e:c:f");
int c;
while ((c = get_opts ()) != -1)
@@ -150,14 +151,16 @@ create_consumers (CosNotifyChannelAdmin::ConsumerAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
Consumer_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp
index f89028a58c1..8d701e5062b 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/Structured_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -83,7 +84,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:");
int c;
while ((c = get_opts ()) != -1)
@@ -179,14 +180,16 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_Auto_Ptr< sig_i > sig_impl;
int status = 0;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -209,7 +212,7 @@ int main (int argc, char* argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for "
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp
new file mode 100644
index 00000000000..b842263a6f4
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.cpp
@@ -0,0 +1,63 @@
+// $Id$
+
+#include "common.h"
+
+#include "orbsvcs/CosNotifyCommC.h"
+#include "orbsvcs/CosNamingC.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_string.h"
+
+
+const char*
+Any_String (const CORBA::Any& any)
+{
+ static char out[256] = "";
+ CORBA::Short s;
+ CORBA::UShort us;
+ CORBA::Long l;
+ CORBA::ULong ul;
+ CORBA::ULongLong ull;
+ const char* str;
+
+ if (any >>= s)
+ {
+ ACE_OS::sprintf (out, "%d", s);
+ }
+ else if (any >>= us)
+ {
+ ACE_OS::sprintf (out, "%u", us);
+ }
+ else if (any >>= l)
+ {
+ ACE_OS::sprintf (out, "%d", l);
+ }
+ else if (any >>= ul)
+ {
+ ACE_OS::sprintf (out, "%u", ul);
+ }
+ else if (any >>= str)
+ {
+ ACE_OS::strcpy (out, str);
+ }
+ else if (any >>= ull)
+ {
+#if defined (ACE_LACKS_LONGLONG_T)
+ ACE_OS::strcpy (out, ull.as_string (out));
+#else
+ double temp =
+# if defined (ACE_CONFIG_WIN32_H)
+ static_cast<double> (static_cast<CORBA::LongLong> (ull));
+# else
+ ull;
+# endif /* ACE_CONFIG_WIN32_H */
+
+ ACE_OS::sprintf (out, "%.0f", temp);
+#endif /* ACE_LACKS_LONGLONG_T */
+ }
+ else
+ {
+ ACE_OS::strcpy (out, "Unsupported Any Type");
+ }
+
+ return out;
+}
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.h b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.h
new file mode 100644
index 00000000000..0e37aa80491
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Filter/common.h
@@ -0,0 +1,26 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/Notify/Discarding
+//
+// = FILENAME
+// common.h
+//
+// = DESCRIPTION
+// A couple of useful functions
+//
+// = AUTHOR
+// Chad Elliott <elliott_c@ociweb.com>
+//
+// ==========================================================================
+#ifndef TAO_COMMON_H
+#define TAO_COMMON_H
+
+#include "orbsvcs/CosNotifyChannelAdminS.h"
+
+const char*
+Any_String (const CORBA::Any& any);
+
+#endif /* TAO_COMMON_H */
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile.am b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile.am
index a88a6cea3a2..13325f1a783 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/Makefile.am
@@ -16,7 +16,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.RedGreen_Ntf_Perf_RedGreen.am
-if BUILD_CORBA_MESSAGING
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = RedGreen_Test
@@ -38,13 +37,6 @@ RedGreen_Test_SOURCES = \
RedGreen_Test_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
- $(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -60,7 +52,6 @@ RedGreen_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp
index 38d260bc9ba..c6228a6c1a2 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.cpp
@@ -3,6 +3,7 @@
#include "RedGreen_Test.h"
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_unistd.h"
#include "orbsvcs/Time_Utilities.h"
#include "tao/debug.h"
@@ -29,7 +30,7 @@ int
RedGreen_Test::parse_args (int argc,
char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
const char *current_arg = 0;
@@ -77,36 +78,13 @@ RedGreen_Test::~RedGreen_Test ()
{
if (!CORBA::is_nil (ec_.in ()))
{
- // Even though we still have a reference, there's no guarantee
- // the EC is still around. So, trap exceptions.
- ACE_TRY_NEW_ENV
- {
- this->ec_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::COMM_FAILURE, ex)
- {
- // Silently swallow this b/c this could mean the EC is gone
- // or that the network is hosed. Either way, we're not waiting
- // around to figure out the problem. Report the incident to the
- // log and be done with it.
- ACE_DEBUG ((LM_INFO,
- "INFO: Got a COMM_FAILURE exception while trying to \n"
- " invoke `destroy()' on the Event Channel in the \n"
- " RedGreen destructor. This is likely not a problem.\n"));
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION(ACE_ANY_EXCEPTION,
- "in RedGreen destructor; swallowing.\n");
- }
- ACE_ENDTRY;
+ this->ec_->destroy ();
}
}
void
RedGreen_Test::init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
this->init_ORB (argc,
@@ -169,11 +147,10 @@ RedGreen_Test::done (void)
void
RedGreen_Test::init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL)
{
- this->orb_ = CORBA::ORB_init (argc,
- argv,
+ this->orb_ = CORBA::ORB_init (argc, argv,
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h
index 03e74861531..a5541fef2e2 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/RedGreen_Test.h
@@ -76,7 +76,7 @@ class RedGreen_Test
void dump_results (void);
void init (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// Initialize the Client.
@@ -92,7 +92,7 @@ class RedGreen_Test
protected:
void init_ORB (int argc,
- char *argv []
+ char *argv[]
ACE_ENV_ARG_DECL);
// Initializes the ORB.
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp
index 8d41fd8fe15..2a8b628db00 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/main.cpp
@@ -2,19 +2,22 @@
// $Id$
#include "RedGreen_Test.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_High_Res_Timer::calibrate ();
RedGreen_Test client;
- client.parse_args (argc, argv);
+ client.parse_args (convert.get_argc(), convert.get_ASCII_argv());
ACE_TRY_NEW_ENV
{
- client.init (argc, argv
+ client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER); //Init the Client
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am
index 3465e05eb5f..45fd2b7c7b9 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Makefile.am
@@ -17,7 +17,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.Throughput_Ntf_Perf_Throughput.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS = Throughput
@@ -37,15 +36,12 @@ Throughput_SOURCES = \
Throughput.h
Throughput_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
- $(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosEvent_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IFR_Client.la \
- $(TAO_BUILDDIR)/tao/libTAO_DynamicInterface.la \
$(TAO_BUILDDIR)/tao/libTAO_Messaging.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
+ $(TAO_BUILDDIR)/tao/libTAO_Strategies.la \
+ $(TAO_BUILDDIR)/orbsvcs/tests/Notify/lib/libTAO_NotifyTests.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNotification_Serv.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
@@ -61,7 +57,6 @@ Throughput_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp
index 020b750ffa5..9d3b137620d 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.cpp
@@ -4,6 +4,7 @@
#include "ace/Arg_Shifter.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Synch.h"
#include "ace/OS.h"
#include "ace/Dynamic_Service.h"
@@ -332,9 +333,9 @@ Notify_Throughput::init (int argc, char* argv [] ACE_ENV_ARG_DECL)
int
Notify_Throughput::parse_args(int argc, char *argv[])
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
- const ACE_TCHAR* current_arg = 0;
+ const char* current_arg = 0;
while (arg_shifter.is_anything_left ())
{
if (arg_shifter.cur_arg_strncasecmp ("-collocated_ec") == 0)
@@ -589,20 +590,22 @@ Notify_Throughput::dump_results (void)
/***************************************************************************/
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_High_Res_Timer::calibrate ();
Notify_Throughput events;
- if (events.parse_args (argc, argv) == -1)
+ if (events.parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return 1;
}
ACE_TRY_NEW_ENV
{
- events.init (argc, argv
+ events.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER); //Init the Client
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h
index 802054bd6cf..a22ed8b7a2b 100644
--- a/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h
+++ b/TAO/orbsvcs/tests/Notify/performance-tests/Throughput/Throughput.h
@@ -141,7 +141,7 @@ public:
int parse_args(int argc, char *argv[]) ;
- int init (int argc, char *argv [] ACE_ENV_ARG_DECL);
+ int init (int argc, char *argv[] ACE_ENV_ARG_DECL);
// initialization.
void run_test (ACE_ENV_SINGLE_ARG_DECL);
diff --git a/TAO/orbsvcs/tests/Property/Makefile.am b/TAO/orbsvcs/tests/Property/Makefile.am
index 6104bf24eb6..79d0cf9b4e9 100644
--- a/TAO/orbsvcs/tests/Property/Makefile.am
+++ b/TAO/orbsvcs/tests/Property/Makefile.am
@@ -33,8 +33,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
@@ -60,10 +60,8 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Serv.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty_Skel.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosProperty.la \
+ $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
diff --git a/TAO/orbsvcs/tests/Property/Property.mpc b/TAO/orbsvcs/tests/Property/Property.mpc
index 6e8b8e678f8..53e3baba922 100644
--- a/TAO/orbsvcs/tests/Property/Property.mpc
+++ b/TAO/orbsvcs/tests/Property/Property.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*server): namingexe, property_serv, utils {
+project(*server): namingexe, property, utils {
Source_Files {
server.cpp
}
diff --git a/TAO/orbsvcs/tests/Property/client.cpp b/TAO/orbsvcs/tests/Property/client.cpp
index bfc5efa2dd0..59af0166de4 100644
--- a/TAO/orbsvcs/tests/Property/client.cpp
+++ b/TAO/orbsvcs/tests/Property/client.cpp
@@ -728,16 +728,17 @@ Client::test_get_property_value (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
Client client;
- if (client.init (argc,
- argv
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/Property/client.h b/TAO/orbsvcs/tests/Property/client.h
index 2d0f0760c99..58538e78535 100644
--- a/TAO/orbsvcs/tests/Property/client.h
+++ b/TAO/orbsvcs/tests/Property/client.h
@@ -29,6 +29,7 @@
#include "ace/Task.h"
#include "ace/Thread_Manager.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Utils/ORB_Manager.h"
#include "orbsvcs/Property/CosPropertyService_i.h"
#include "orbsvcs/Naming/Naming_Client.h"
diff --git a/TAO/orbsvcs/tests/Property/main.cpp b/TAO/orbsvcs/tests/Property/main.cpp
index d9e9a9f2a3e..c9c5608e701 100644
--- a/TAO/orbsvcs/tests/Property/main.cpp
+++ b/TAO/orbsvcs/tests/Property/main.cpp
@@ -468,7 +468,7 @@ TAO_PropertyNamesIterator_Tester::test_next_n (size_t n
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY
{
diff --git a/TAO/orbsvcs/tests/Property/server.cpp b/TAO/orbsvcs/tests/Property/server.cpp
index bcaeae71a5f..dac8f86c02a 100644
--- a/TAO/orbsvcs/tests/Property/server.cpp
+++ b/TAO/orbsvcs/tests/Property/server.cpp
@@ -17,14 +17,17 @@
// ============================================================================
#include "server.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(CosPropertyService, server, "$Id$")
// Main program
int
-main (int argc, char ** argv)
+ACE_TMAIN (int argc, ACE_TCHAR ** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
@@ -32,8 +35,7 @@ main (int argc, char ** argv)
TAO_ORB_Manager m;
// Initialize the ORB.
- m.init_child_poa (argc,
- argv,
+ m.init_child_poa (convert.get_argc(), convert.get_ASCII_argv(),
"child_poa"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/RTCosScheduling/client.cpp b/TAO/orbsvcs/tests/RTCosScheduling/client.cpp
index c89d3699c52..f07344f66c6 100644
--- a/TAO/orbsvcs/tests/RTCosScheduling/client.cpp
+++ b/TAO/orbsvcs/tests/RTCosScheduling/client.cpp
@@ -72,7 +72,7 @@ parse_args (int argc, char *argv[])
{
/// We set the '-' flag for getopts because we have to do this
/// parsing before the ORB does it's parsing, and we'd confuse it to reorder
- ACE_Get_Opt get_opts (argc, argv, "-B:R:A:X:N:C:F:T:?:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "-B:R:A:X:N:C:F:T:?:");
int c;
while ((c = get_opts ()) != -1)
{
diff --git a/TAO/orbsvcs/tests/RTCosScheduling/server.cpp b/TAO/orbsvcs/tests/RTCosScheduling/server.cpp
index dbc60e82c6f..91d37266902 100644
--- a/TAO/orbsvcs/tests/RTCosScheduling/server.cpp
+++ b/TAO/orbsvcs/tests/RTCosScheduling/server.cpp
@@ -73,7 +73,7 @@ parse_args (int argc, char *argv[])
// We set the '-' flag for getopts because we have to do
// this parsing before the ORB does it's
//parsing, and we'd confuse it to reorder
- ACE_Get_Opt get_opts (argc, argv, "-:N:F:S:T:A:X:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "-:N:F:S:T:A:X:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/orbsvcs/tests/Redundant_Naming/client.cpp b/TAO/orbsvcs/tests/Redundant_Naming/client.cpp
index 9e767cc7dad..ca0e631d11f 100644
--- a/TAO/orbsvcs/tests/Redundant_Naming/client.cpp
+++ b/TAO/orbsvcs/tests/Redundant_Naming/client.cpp
@@ -21,6 +21,7 @@
#include "orbsvcs/Naming/Naming_Server.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
ACE_RCSID (Simple_Naming,
@@ -83,15 +84,17 @@ My_Test_Object::id (CORBA::Short id ACE_ENV_ARG_DECL_NOT_USED)
// This function runs the test.
int
-main (int argc, ACE_TCHAR **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int c_breath = 4;
int c_depth = 4;
int o_breath = 4;
- ACE_TCHAR *ns1ref = 0;
- ACE_TCHAR *ns2ref = 0;
+ char *ns1ref = 0;
+ char *ns2ref = 0;
- ACE_Get_Opt get_opts (argc, argv, ACE_TEXT ("b:d:o:p:q:"));
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "b:d:o:p:q:");
int c;
int i;
@@ -153,7 +156,7 @@ main (int argc, ACE_TCHAR **argv)
ACE_TRY_EX(bl_a)
{
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
// ior's are specified for the name servers through a commandline
// option or a file.
@@ -161,7 +164,7 @@ main (int argc, ACE_TCHAR **argv)
// Resolve the first name server
CORBA::Object_var ns1obj = orb->string_to_object (
- ACE_TEXT_ALWAYS_CHAR (ns1ref) ACE_ENV_ARG_PARAMETER);
+ ACE_TEXT_TO_CHAR_IN (ns1ref) ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK_EX(bl_a);
if (CORBA::is_nil (ns1obj.in ()))
@@ -177,7 +180,7 @@ main (int argc, ACE_TCHAR **argv)
// Resolve the second name server
CORBA::Object_var ns2obj = orb->string_to_object (
- ACE_TEXT_ALWAYS_CHAR (ns2ref) ACE_ENV_ARG_PARAMETER);
+ ACE_TEXT_TO_CHAR_IN (ns2ref) ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK_EX(bl_a);
if (CORBA::is_nil (ns2obj.in ()))
diff --git a/TAO/orbsvcs/tests/Sched/DynSched_Test.cpp b/TAO/orbsvcs/tests/Sched/DynSched_Test.cpp
index fe06daf6ba8..8199cfe0c7f 100644
--- a/TAO/orbsvcs/tests/Sched/DynSched_Test.cpp
+++ b/TAO/orbsvcs/tests/Sched/DynSched_Test.cpp
@@ -2,6 +2,7 @@
#include "orbsvcs/Sched/Strategy_Scheduler.h"
#include "orbsvcs/Time_Utilities.h"
+#include "ace/Argv_Type_Converter.h"
#if defined (ACE_HAS_QUANTIFY)
# include <quantify.h>
#endif /* ACE_HAS_QUANTIFY */
@@ -258,7 +259,7 @@ DynSched_Test::run_schedule (ACE_Scheduler_Strategy &strategy,
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
int result = 0;
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp
index a856587a8f7..527949071a1 100644
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp
+++ b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp
@@ -5,6 +5,7 @@
#include "ace/Sched_Params.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/Scheduler_Factory.h"
@@ -24,9 +25,9 @@ const char* format_string = " {%-12s, %d, %d, %d, %d, %8d, "
"static_cast<RtecScheduler::Info_Type_t> (%d)}\n";
int
-parse_args (int argc, char *argv [])
+parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "n:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "n:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -51,9 +52,10 @@ parse_args (int argc, char *argv [])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc, argv) != 0)
+ ACE_Argv_Type_Converter convert (argc, argv);
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
@@ -340,7 +342,7 @@ main (int argc, char *argv[])
{
// Initialize ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "internet" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp
index 23d60c3709c..632c061cae2 100644
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp
+++ b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp
@@ -22,9 +22,9 @@ const char* format_string = "{%-12s, %d, %d, %d, %d, %8d, "
"static_cast<RtecScheduler::Info_Type_t> (%d)}\n";
int
-parse_args (int argc, char *argv [])
+parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "n:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "n:");
int opt;
while ((opt = get_opt ()) != EOF)
@@ -49,7 +49,7 @@ parse_args (int argc, char *argv [])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (parse_args (argc, argv) != 0)
{
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp
index 12692c53c26..ad13b636c01 100644
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp
+++ b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp
@@ -19,7 +19,7 @@ ACE_RCSID(Sched_Conf, Sched_Conf_Runtime, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/orbsvcs/tests/Security/BiDirectional/Makefile.am b/TAO/orbsvcs/tests/Security/BiDirectional/Makefile.am
index 6d29e9edfc0..8ca541b4c50 100644
--- a/TAO/orbsvcs/tests/Security/BiDirectional/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/BiDirectional/Makefile.am
@@ -50,9 +50,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Secure_BiDir_SSL_Client.am
if !BUILD_MINIMUM_CORBA
diff --git a/TAO/orbsvcs/tests/Security/BiDirectional/client.cpp b/TAO/orbsvcs/tests/Security/BiDirectional/client.cpp
index fb15517f37e..73fa2906d71 100644
--- a/TAO/orbsvcs/tests/Security/BiDirectional/client.cpp
+++ b/TAO/orbsvcs/tests/Security/BiDirectional/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -20,7 +21,7 @@ void do_nothing (void)
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -44,12 +45,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -103,7 +106,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
@@ -156,7 +159,7 @@ main (int argc, char *argv[])
// This is a non-portable, but the only currently available way of
// determining the number of currently open connections.
- size_t pre_call_connections =
+ int pre_call_connections =
orb->orb_core ()->lane_resources ().transport_cache ().current_size ();
// A method to kickstart callbacks from the server
@@ -176,7 +179,7 @@ main (int argc, char *argv[])
// This is a non-portable, but the only currently available way of
// determining the number of currently open connections.
- size_t cur_connections =
+ int cur_connections =
orb->orb_core()->lane_resources().transport_cache().current_size ();
if (cur_connections > pre_call_connections)
diff --git a/TAO/orbsvcs/tests/Security/BiDirectional/server.cpp b/TAO/orbsvcs/tests/Security/BiDirectional/server.cpp
index 44ddec21390..8a706f06f28 100644
--- a/TAO/orbsvcs/tests/Security/BiDirectional/server.cpp
+++ b/TAO/orbsvcs/tests/Security/BiDirectional/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
@@ -14,7 +15,7 @@ int no_iterations = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -100,7 +103,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in (),
@@ -128,7 +131,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/orbsvcs/tests/Security/BiDirectional/test_i.cpp b/TAO/orbsvcs/tests/Security/BiDirectional/test_i.cpp
index af19f459239..0e8ffca904c 100644
--- a/TAO/orbsvcs/tests/Security/BiDirectional/test_i.cpp
+++ b/TAO/orbsvcs/tests/Security/BiDirectional/test_i.cpp
@@ -57,9 +57,9 @@ Simple_Server_i::callback_object (Callback_ptr callback
int
Simple_Server_i::call_client (ACE_ENV_SINGLE_ARG_DECL)
{
- size_t pre_call_connections =
+ int pre_call_connections =
this->orb_->orb_core ()->lane_resources ().transport_cache ().current_size ();
-
+
if (this->flag_)
{
for (int times = 0; times < this->no_iterations_; ++times)
@@ -67,9 +67,9 @@ Simple_Server_i::call_client (ACE_ENV_SINGLE_ARG_DECL)
this->callback_->callback_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
- size_t cur_connections =
+ int cur_connections =
this->orb_->orb_core()->lane_resources().transport_cache().current_size ();
-
+
if (cur_connections > pre_call_connections)
{
ACE_ERROR ((LM_ERROR,
diff --git a/TAO/orbsvcs/tests/Security/Big_Request/Makefile.am b/TAO/orbsvcs/tests/Security/Big_Request/Makefile.am
index ddb300cef8f..e3418470a27 100644
--- a/TAO/orbsvcs/tests/Security/Big_Request/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/Big_Request/Makefile.am
@@ -50,13 +50,9 @@ TX_Object-stamp: $(srcdir)/TX_Object.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- TX_Object.idl
-
## Makefile.Big_Request_Security_Client.am
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -83,13 +79,11 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
## Makefile.Big_Request_Security_Server.am
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -119,7 +113,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Security/Big_Request/client.cpp b/TAO/orbsvcs/tests/Security/Big_Request/client.cpp
index 44eeca19e7d..aa6a0effa62 100644
--- a/TAO/orbsvcs/tests/Security/Big_Request/client.cpp
+++ b/TAO/orbsvcs/tests/Security/Big_Request/client.cpp
@@ -14,7 +14,7 @@ const char *cert_file = "cacert.pem";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/Big_Request/server.cpp b/TAO/orbsvcs/tests/Security/Big_Request/server.cpp
index a2a09539439..3813f86c837 100644
--- a/TAO/orbsvcs/tests/Security/Big_Request/server.cpp
+++ b/TAO/orbsvcs/tests/Security/Big_Request/server.cpp
@@ -15,7 +15,7 @@ const char *cert_file = "cacert.pem";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,7 +40,7 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char * argv[])
+ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/Callback/Makefile.am b/TAO/orbsvcs/tests/Security/Callback/Makefile.am
index f29a5509cda..f3cbaa0ebb1 100644
--- a/TAO/orbsvcs/tests/Security/Callback/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/Callback/Makefile.am
@@ -79,14 +79,9 @@ client-stamp: $(srcdir)/client.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- client.idl \
- server.idl
-
## Makefile.Callback_Security_Client.am
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -117,13 +112,11 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
## Makefile.Callback_Security_Server.am
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -154,7 +147,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Security/Callback/client.cpp b/TAO/orbsvcs/tests/Security/Callback/client.cpp
index 2ddfbc0be3d..9a26c5a4ce4 100644
--- a/TAO/orbsvcs/tests/Security/Callback/client.cpp
+++ b/TAO/orbsvcs/tests/Security/Callback/client.cpp
@@ -10,7 +10,7 @@ ACE_RCSID (Callback,
const char *cert_file = "cacert.pem";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/Callback/server.cpp b/TAO/orbsvcs/tests/Security/Callback/server.cpp
index 881d7d2ca58..bdeaa4ad187 100644
--- a/TAO/orbsvcs/tests/Security/Callback/server.cpp
+++ b/TAO/orbsvcs/tests/Security/Callback/server.cpp
@@ -10,7 +10,7 @@ ACE_RCSID (Callback,
const char *cert_file = "cacert.pem";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/Crash_Test/Makefile.am b/TAO/orbsvcs/tests/Security/Crash_Test/Makefile.am
index 22fef58fc1d..80ea536de9f 100644
--- a/TAO/orbsvcs/tests/Security/Crash_Test/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/Crash_Test/Makefile.am
@@ -50,15 +50,11 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Security_Crash_Test_Client.am
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -83,11 +79,8 @@ client_LDFLAGS = \
client_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_SSLIOP.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
$(ACE_BUILDDIR)/ace/SSL/libACE_SSL.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Security.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -95,7 +88,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
@@ -105,7 +97,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -132,11 +123,8 @@ server_LDFLAGS = \
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_SSLIOP.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
$(ACE_BUILDDIR)/ace/SSL/libACE_SSL.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Security.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -144,7 +132,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/tests/Security/Crash_Test/Security_Crash_Test.mpc b/TAO/orbsvcs/tests/Security/Crash_Test/Security_Crash_Test.mpc
index 7229bd380e4..e2bc144527e 100644
--- a/TAO/orbsvcs/tests/Security/Crash_Test/Security_Crash_Test.mpc
+++ b/TAO/orbsvcs/tests/Security/Crash_Test/Security_Crash_Test.mpc
@@ -8,7 +8,7 @@ project(*idl): taoidldefaults {
custom_only = 1
}
-project(*server): taoexe, portableserver, ssliop, pi_server, codecfactory, interceptors {
+project(*server): taoexe, portableserver, ssliop {
after += *idl
Source_Files {
server.cpp
@@ -20,7 +20,7 @@ project(*server): taoexe, portableserver, ssliop, pi_server, codecfactory, inter
}
}
-project(*client): taoexe, portableserver, ssliop, pi_server, codecfactory, interceptors {
+project(*client): taoexe, portableserver, ssliop {
after += *idl
Source_Files {
client.cpp
diff --git a/TAO/orbsvcs/tests/Security/Crash_Test/client.cpp b/TAO/orbsvcs/tests/Security/Crash_Test/client.cpp
index dd70e280f98..b4c60648b3f 100644
--- a/TAO/orbsvcs/tests/Security/Crash_Test/client.cpp
+++ b/TAO/orbsvcs/tests/Security/Crash_Test/client.cpp
@@ -19,7 +19,7 @@ int wait_time = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "sk:w:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "sk:w:");
int c;
while ((c = get_opts ()) != -1)
@@ -48,7 +48,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/orbsvcs/tests/Security/Crash_Test/server.cpp b/TAO/orbsvcs/tests/Security/Crash_Test/server.cpp
index c880f1e4858..610aa4d47b1 100644
--- a/TAO/orbsvcs/tests/Security/Crash_Test/server.cpp
+++ b/TAO/orbsvcs/tests/Security/Crash_Test/server.cpp
@@ -16,7 +16,7 @@ const char *cert_file = "cacert.pem";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +39,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/MT_IIOP_SSL.mpc b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/MT_IIOP_SSL.mpc
index 9203ea80711..73d1d3af653 100644
--- a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/MT_IIOP_SSL.mpc
+++ b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/MT_IIOP_SSL.mpc
@@ -8,7 +8,7 @@ project(*idl) : taoidldefaults {
custom_only = 1
}
-project(*security server): orbsvcslib, portableserver, ssl, ssliop, pi_server, codecfactory, interceptors {
+project(*security server): orbsvcslib, portableserver, ssl, ssliop {
after += *idl
Source_Files {
Server_Worker.cpp
diff --git a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am
index f758a97f11f..98aab9b9c67 100644
--- a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/Makefile.am
@@ -49,9 +49,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.MT_IIOP_SSL_Security_Client.am
noinst_PROGRAMS = client
@@ -81,7 +78,6 @@ client_LDADD = \
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -110,10 +106,7 @@ server_LDFLAGS = \
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_SSLIOP.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Security.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(ACE_BUILDDIR)/ace/SSL/libACE_SSL.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
@@ -122,7 +115,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/client.cpp b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/client.cpp
index 5da628db89d..e2d5cfe92d7 100644
--- a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/client.cpp
+++ b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Client_Worker.h"
@@ -12,7 +13,7 @@ int nthreads = 5;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -51,17 +52,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Get Object Reference using IOR file
diff --git a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/server.cpp b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/server.cpp
index 29c53ecb7b8..14e591bbd70 100644
--- a/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/server.cpp
+++ b/TAO/orbsvcs/tests/Security/MT_IIOP_SSL/server.cpp
@@ -10,7 +10,7 @@ int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +39,7 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/Makefile.am b/TAO/orbsvcs/tests/Security/MT_SSLIOP/Makefile.am
index 550f2f4765f..c02e03dc9c3 100644
--- a/TAO/orbsvcs/tests/Security/MT_SSLIOP/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/MT_SSLIOP/Makefile.am
@@ -50,13 +50,9 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.MT_SSLIOP_Security_Client.am
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -85,13 +81,11 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
## Makefile.MT_SSLIOP_Security_Server.am
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -125,7 +119,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
## Clean up template repositories, etc.
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/client.cpp b/TAO/orbsvcs/tests/Security/MT_SSLIOP/client.cpp
index 8ef6242213a..fd07ed0acba 100644
--- a/TAO/orbsvcs/tests/Security/MT_SSLIOP/client.cpp
+++ b/TAO/orbsvcs/tests/Security/MT_SSLIOP/client.cpp
@@ -14,7 +14,7 @@ int nthreads = 5;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -53,7 +53,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl b/TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl
deleted file mode 100755
index 0bdb4fe461c..00000000000
--- a/TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl
+++ /dev/null
@@ -1,64 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$threads = '4';
-$iorfile = PerlACE::LocalFile ("test.ior");
-$sv_conf = PerlACE::LocalFile ("server$PerlACE::svcconf_ext");
-$cl_conf = PerlACE::LocalFile ("client$PerlACE::svcconf_ext");
-
-unlink $iorfile;
-
-$SV = new PerlACE::Process ("server", "-ORBsvcconf $sv_conf -o $iorfile -n $threads");
-
-$CL1 = new PerlACE::Process
- ("client", "-k file://$iorfile -n 10 -i 1000 -ORBSvcConf $cl_conf");
-
-$CLS = new PerlACE::Process
- ("client", "-k file://$iorfile -n 10 -i 1000 -ORBSvcConf $cl_conf -x");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$CL1->Spawn ();
-$client = $CL1->WaitKill (480);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$client = $CLS->SpawnWaitKill (480);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1
-}
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1
-}
-
-unlink $iorfile;
-
-exit $status
-
-
-
-
-
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_heavy.pl b/TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_heavy.pl
deleted file mode 100644
index ad20195c287..00000000000
--- a/TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_heavy.pl
+++ /dev/null
@@ -1,65 +0,0 @@
-
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$threads = '100';
-$iorfile = PerlACE::LocalFile ("test.ior");
-$sv_conf = PerlACE::LocalFile ("server$PerlACE::svcconf_ext");
-$cl_conf = PerlACE::LocalFile ("client$PerlACE::svcconf_ext");
-
-unlink $iorfile;
-
-$SV = new PerlACE::Process ("server", "-ORBsvcconf $sv_conf -o $iorfile -n $threads");
-
-$CL1 = new PerlACE::Process
- ("client", "-k file://$iorfile -n 20 -i 10000 -ORBSvcConf $cl_conf");
-
-$CLS = new PerlACE::Process
- ("client", "-k file://$iorfile -n 20 -i 10000 -ORBSvcConf $cl_conf -x");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$CL1->Spawn ();
-$client = $CL1->WaitKill (600);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$client = $CLS->SpawnWaitKill (600);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1
-}
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1
-}
-
-unlink $iorfile;
-
-exit $status
-
-
-
-
-
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp b/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
index b05e356507c..72cea2af0f2 100644
--- a/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
+++ b/TAO/orbsvcs/tests/Security/MT_SSLIOP/server.cpp
@@ -14,7 +14,7 @@ int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -60,7 +60,7 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/orbsvcs/tests/Security/Secure_Invocation/Makefile.am b/TAO/orbsvcs/tests/Security/Secure_Invocation/Makefile.am
index f7b1b4b7d67..eeebf6406c1 100644
--- a/TAO/orbsvcs/tests/Security/Secure_Invocation/Makefile.am
+++ b/TAO/orbsvcs/tests/Security/Secure_Invocation/Makefile.am
@@ -50,9 +50,6 @@ Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Foo.idl
-
## Makefile.Secure_Invocation_Security_Client.am
if BUILD_CORBA_MESSAGING
@@ -75,8 +72,6 @@ client_SOURCES = \
client_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Security.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -91,7 +86,6 @@ endif BUILD_CORBA_MESSAGING
if BUILD_CORBA_MESSAGING
if BUILD_INTERCEPTORS
if BUILD_SSL
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -117,11 +111,8 @@ server_LDFLAGS = \
server_LDADD = \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_SSLIOP.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI_Server.la \
$(ACE_BUILDDIR)/ace/SSL/libACE_SSL.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Security.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/tao/libTAO_Valuetype.la \
$(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
@@ -129,7 +120,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la \
@ACE_TLS_LIBS@
-endif !BUILD_ACE_FOR_TAO
endif BUILD_SSL
endif BUILD_INTERCEPTORS
endif BUILD_CORBA_MESSAGING
diff --git a/TAO/orbsvcs/tests/Security/Secure_Invocation/Secure_Invocation.mpc b/TAO/orbsvcs/tests/Security/Secure_Invocation/Secure_Invocation.mpc
index 2cab2208413..89b98f15054 100644
--- a/TAO/orbsvcs/tests/Security/Secure_Invocation/Secure_Invocation.mpc
+++ b/TAO/orbsvcs/tests/Security/Secure_Invocation/Secure_Invocation.mpc
@@ -8,7 +8,7 @@ project(*idl) : taoidldefaults {
custom_only = 1
}
-project(*security server): taoexe, portableserver, orbsvcslib, security, ssliop, pi_server, codecfactory, interceptors {
+project(*security server): taoexe, portableserver, orbsvcslib, security, ssliop {
after += *idl
Source_Files {
Foo_i.cpp
@@ -20,7 +20,7 @@ project(*security server): taoexe, portableserver, orbsvcslib, security, ssliop,
}
}
-project(*security client): taoexe, orbsvcslib, security, pi, codecfactory, interceptors {
+project(*security client): taoexe, orbsvcslib, security {
after += *idl
Source_Files {
FooC.cpp
diff --git a/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp b/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp
index 40877b8871f..e9d4bfbeb79 100644
--- a/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp
+++ b/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "FooC.h"
#include "orbsvcs/SecurityC.h"
@@ -112,7 +113,7 @@ secure_invocation_test (CORBA::Object_ptr object
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -135,19 +136,21 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- ACE_TString env ("SSL_CERT_FILE=");
- env += cert_file;
+ ACE_TString env (ACE_TEXT("SSL_CERT_FILE="));
+ env += ACE_TEXT_TO_TCHAR_IN(cert_file);
ACE_OS::putenv (env.c_str ());
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/orbsvcs/tests/Security/Secure_Invocation/server.cpp b/TAO/orbsvcs/tests/Security/Secure_Invocation/server.cpp
index 8b7ff656577..e5f3b2f6af5 100644
--- a/TAO/orbsvcs/tests/Security/Secure_Invocation/server.cpp
+++ b/TAO/orbsvcs/tests/Security/Secure_Invocation/server.cpp
@@ -15,7 +15,7 @@ const char *cert_file = "cacert.pem";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp
index 904a68a489b..a81edd2f705 100644
--- a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp
+++ b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp
@@ -21,6 +21,7 @@
#include "client.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Simple_Naming, client, "$Id$")
@@ -90,7 +91,7 @@ CosNaming_Client::CosNaming_Client (void)
int
CosNaming_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "p:dstieym:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "p:dstieym:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -146,7 +147,7 @@ CosNaming_Client::parse_args (void)
if (this->test_ == 0)
{
FILE * ior_output_file =
- ACE_OS::fopen (get_opts.opt_arg (), "w");
+ ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (ior_output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -1268,11 +1269,13 @@ Persistent_Test_End::execute (TAO_Naming_Client &root_context)
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CosNaming_Client cosnaming_client;
- if (cosnaming_client.init (argc, argv) == -1)
+ if (cosnaming_client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return cosnaming_client.run ();
diff --git a/TAO/orbsvcs/tests/Simple_Naming/client.cpp b/TAO/orbsvcs/tests/Simple_Naming/client.cpp
index 904a68a489b..a81edd2f705 100644
--- a/TAO/orbsvcs/tests/Simple_Naming/client.cpp
+++ b/TAO/orbsvcs/tests/Simple_Naming/client.cpp
@@ -21,6 +21,7 @@
#include "client.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Simple_Naming, client, "$Id$")
@@ -90,7 +91,7 @@ CosNaming_Client::CosNaming_Client (void)
int
CosNaming_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "p:dstieym:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "p:dstieym:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -146,7 +147,7 @@ CosNaming_Client::parse_args (void)
if (this->test_ == 0)
{
FILE * ior_output_file =
- ACE_OS::fopen (get_opts.opt_arg (), "w");
+ ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (ior_output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -1268,11 +1269,13 @@ Persistent_Test_End::execute (TAO_Naming_Client &root_context)
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CosNaming_Client cosnaming_client;
- if (cosnaming_client.init (argc, argv) == -1)
+ if (cosnaming_client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
return cosnaming_client.run ();
diff --git a/TAO/orbsvcs/tests/Time/Client_i.cpp b/TAO/orbsvcs/tests/Time/Client_i.cpp
index 9a8d23a4996..12979b67653 100644
--- a/TAO/orbsvcs/tests/Time/Client_i.cpp
+++ b/TAO/orbsvcs/tests/Time/Client_i.cpp
@@ -5,6 +5,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_string.h"
@@ -248,7 +249,7 @@ Client_i::read_ior (char *filename)
int
Client_i::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "dn:f:xk:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "dn:f:xk:");
int c;
int result;
diff --git a/TAO/orbsvcs/tests/Time/client.cpp b/TAO/orbsvcs/tests/Time/client.cpp
index 690b329a7d7..2eb9ac6be6f 100644
--- a/TAO/orbsvcs/tests/Time/client.cpp
+++ b/TAO/orbsvcs/tests/Time/client.cpp
@@ -2,20 +2,23 @@
#include "Client_i.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Time, client, "$Id$")
// This function runs the Time Service client test.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Client_i client;
ACE_DEBUG ((LM_DEBUG,
"[CLIENT] Process/Thread Id : (%P/%t) Time Service Client\n"));
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
else
return client.run ();
diff --git a/TAO/orbsvcs/tests/Trading/Makefile.am b/TAO/orbsvcs/tests/Trading/Makefile.am
index 62cf3628b0a..feb4913884d 100644
--- a/TAO/orbsvcs/tests/Trading/Makefile.am
+++ b/TAO/orbsvcs/tests/Trading/Makefile.am
@@ -101,7 +101,6 @@ colocated_test_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Skel.la \
@@ -139,7 +138,6 @@ export_test_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Skel.la \
@@ -177,7 +175,6 @@ import_test_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Serv.la \
- $(TAO_BUILDDIR)/tao/libTAO_IORTable.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_Svc_Utils.la \
$(TAO_BUILDDIR)/tao/libTAO_DynamicAny.la \
$(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosTrading_Skel.la \
diff --git a/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp b/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp
index 13f5084d1f6..d25982b229e 100644
--- a/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp
+++ b/TAO/orbsvcs/tests/Trading/Offer_Importer.cpp
@@ -99,7 +99,7 @@ TAO_Offer_Importer::perform_directed_queries (ACE_ENV_SINGLE_ARG_DECL)
CORBA::ULong length = link_name_seq2->length ();
for (i = 0; i < length; i++)
{
- if (ACE_OS::strcmp (link_name_seq2[i], "Bootstrap") != 0)
+ if (ACE_OS::strcmp (link_name_seq2[i].in(), "Bootstrap") != 0)
break;
}
diff --git a/TAO/orbsvcs/tests/Trading/TT_Info.cpp b/TAO/orbsvcs/tests/Trading/TT_Info.cpp
index e13b3b0766b..b56bf53f635 100644
--- a/TAO/orbsvcs/tests/Trading/TT_Info.cpp
+++ b/TAO/orbsvcs/tests/Trading/TT_Info.cpp
@@ -272,7 +272,7 @@ TT_Parse_Args::TT_Parse_Args (int& argc, char** argv)
quiet_ (0),
ior_ (0)
{
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter< char > arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
@@ -299,7 +299,7 @@ TT_Parse_Args::TT_Parse_Args (int& argc, char** argv)
if (arg_shifter.is_parameter_next ())
{
const char* file_name = arg_shifter.get_current ();
- ior_file = ACE_OS::fopen (file_name, "r");
+ ior_file = ACE_OS::fopen (file_name, ACE_TEXT("r"));
if (ior_file == 0)
ACE_ERROR ((LM_ERROR,
@@ -309,7 +309,7 @@ TT_Parse_Args::TT_Parse_Args (int& argc, char** argv)
arg_shifter.consume_arg ();
}
else
- ior_file = ACE_OS::fdopen (ACE_STDIN, "r");
+ ior_file = ACE_OS::fdopen (ACE_STDIN, ACE_TEXT("r"));
if (ior_file != 0)
{
diff --git a/TAO/orbsvcs/tests/Trading/TT_Info.h b/TAO/orbsvcs/tests/Trading/TT_Info.h
index de4935df75c..fdda73a79c3 100644
--- a/TAO/orbsvcs/tests/Trading/TT_Info.h
+++ b/TAO/orbsvcs/tests/Trading/TT_Info.h
@@ -5,6 +5,7 @@
#include "TTestS.h"
#include "ace/Arg_Shifter.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "orbsvcs/CosTradingC.h"
#include "orbsvcs/CosTradingReposC.h"
diff --git a/TAO/orbsvcs/tests/Trading/Trading.mpc b/TAO/orbsvcs/tests/Trading/Trading.mpc
index 008ef7449a7..efe8ed59005 100644
--- a/TAO/orbsvcs/tests/Trading/Trading.mpc
+++ b/TAO/orbsvcs/tests/Trading/Trading.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Test Lib): orbsvcslib, trading_serv, naming, utils, pi, codecfactory {
+project(*Test Lib): orbsvcslib, trading_serv, naming {
sharedname = TTest
idlflags += -I..\..\.. -I..\..\..\orbsvcs -Sc -Wb,export_macro=TAO_TTest_Export -Wb,export_include=ttest_export.h
dynamicflags = TAO_TTEST_BUILD_DLL
diff --git a/TAO/orbsvcs/tests/Trading/colocated_test.cpp b/TAO/orbsvcs/tests/Trading/colocated_test.cpp
index 67d9232a315..965cead51a2 100644
--- a/TAO/orbsvcs/tests/Trading/colocated_test.cpp
+++ b/TAO/orbsvcs/tests/Trading/colocated_test.cpp
@@ -2,6 +2,7 @@
#include "ace/Auto_Ptr.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Utils/ORB_Manager.h"
#include "Offer_Exporter.h"
#include "Offer_Importer.h"
@@ -18,7 +19,7 @@ parse_args (int argc, char *argv[],
CORBA::Boolean& verbose)
{
int opt;
- ACE_Get_Opt get_opt (argc, argv, "fq");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "fq");
verbose = 1;
while ((opt = get_opt ()) != EOF)
@@ -29,17 +30,19 @@ parse_args (int argc, char *argv[],
}
int
-main (int argc, char** argv)
+ACE_TMAIN (int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
TAO_ORB_Manager orb_manager;
- orb_manager.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ orb_manager.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Command line argument interpretation.
CORBA::Boolean verbose = 0;
- ::parse_args (argc, argv, verbose);
+ ::parse_args (convert.get_argc(), convert.get_ASCII_argv(), verbose);
// Initialize ORB.
CORBA::ORB_var orb = orb_manager.orb ();
diff --git a/TAO/orbsvcs/tests/Trading/export_test.cpp b/TAO/orbsvcs/tests/Trading/export_test.cpp
index 9078aa74b23..eeaa244912a 100644
--- a/TAO/orbsvcs/tests/Trading/export_test.cpp
+++ b/TAO/orbsvcs/tests/Trading/export_test.cpp
@@ -13,16 +13,18 @@ ACE_RCSID (Trading,
"$Id$")
int
-main (int argc, char** argv)
+ACE_TMAIN (int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
TAO_ORB_Manager orb_manager;
- orb_manager.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ orb_manager.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Command line argument interpretation.
- TT_Parse_Args parse_args (argc, argv);
+ TT_Parse_Args parse_args (convert.get_argc(), convert.get_ASCII_argv());
// Init the orb and bootstrap to the trading service.
CORBA::ORB_var orb = orb_manager.orb ();
@@ -129,14 +131,14 @@ main (int argc, char** argv)
size_t offset = 0;
char file[1024];
- ACE_OS::strcpy(file, argv[0]);
+ ACE_OS::string_copy(file, argv[0], sizeof(file)/sizeof(file[0]));
if ((offset = (size_t)ACE_OS::strrchr(file, '/')) != 0) {
offset -= ((size_t)file - 1);
}
ACE_OS::strcpy(file + offset, "export_test_ready");
FILE *ready_file =
- ACE_OS::fopen (file, "w");
+ ACE_OS::fopen (file, ACE_TEXT("w"));
if (ready_file != 0) {
ACE_OS::fprintf (ready_file, "The export test is ready\n");
ACE_OS::fclose (ready_file);
diff --git a/TAO/orbsvcs/tests/Trading/import_test.cpp b/TAO/orbsvcs/tests/Trading/import_test.cpp
index f303d292998..0d21623d5f8 100644
--- a/TAO/orbsvcs/tests/Trading/import_test.cpp
+++ b/TAO/orbsvcs/tests/Trading/import_test.cpp
@@ -6,16 +6,18 @@
ACE_RCSID(Trading, import_test, "$Id$")
int
-main (int argc, char** argv)
+ACE_TMAIN (int argc, ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
TAO_ORB_Manager orb_manager;
- orb_manager.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ orb_manager.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Command line argument interpretation.
- TT_Parse_Args parse_args (argc, argv);
+ TT_Parse_Args parse_args (convert.get_argc(), convert.get_ASCII_argv());
// Initialize the ORB and bootstrap to the Lookup interface.
CORBA::ORB_var orb = orb_manager.orb ();
diff --git a/TAO/orbsvcs/tests/Trading/run_test.pl b/TAO/orbsvcs/tests/Trading/run_test.pl
index 845aff2f28c..b6057f38645 100755
--- a/TAO/orbsvcs/tests/Trading/run_test.pl
+++ b/TAO/orbsvcs/tests/Trading/run_test.pl
@@ -11,18 +11,14 @@ use PerlACE::Run_Test;
$ior = PerlACE::LocalFile ("trading.ior");
$ready_file = PerlACE::LocalFile ("export_test_ready");
$sleeptime = 20;
-$port = PerlACE::random_port();
unlink $ior;
unlink $ready_file;
-## Specify and endpoint so that we may test the corbaloc in the
-## -ORBInitRef. We retain one -ORBInitRef using the file just to test
-## both ways.
$TS = new PerlACE::Process ("../../Trading_Service/Trading_Service",
- "-ORBEndpoint iiop://:$port -TSdumpior $ior");
+ "-TSdumpior $ior");
$E = new PerlACE::Process ("export_test",
- "-ORBInitRef TradingService=corbaloc:::$port/TradingService -quiet");
+ "-ORBInitRef TradingService=file://$ior -quiet");
$I = new PerlACE::Process ("import_test",
"-ORBInitRef TradingService=file://$ior -quiet");
diff --git a/TAO/orbsvcs/tests/ior_corbaname/Makefile.am b/TAO/orbsvcs/tests/ior_corbaname/Makefile.am
index 56c69d2137e..7d4ba009d2a 100644
--- a/TAO/orbsvcs/tests/ior_corbaname/Makefile.am
+++ b/TAO/orbsvcs/tests/ior_corbaname/Makefile.am
@@ -48,9 +48,6 @@ corbaname-stamp: $(srcdir)/corbaname.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- corbaname.idl
-
## Makefile.ior_corbaname_client.am
noinst_PROGRAMS = client
diff --git a/TAO/orbsvcs/tests/ior_corbaname/client.cpp b/TAO/orbsvcs/tests/ior_corbaname/client.cpp
index 54eb5f996f4..9a1f221c92b 100644
--- a/TAO/orbsvcs/tests/ior_corbaname/client.cpp
+++ b/TAO/orbsvcs/tests/ior_corbaname/client.cpp
@@ -20,16 +20,18 @@
// ============================================================================
#include "ior_corbaname_client_i.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
IOR_corbaname_Client_i client;
- if (client.init (argc, argv) == -1)
+ if (client.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return 1;
else
{
diff --git a/TAO/orbsvcs/tests/ior_corbaname/ior_corbaname_client_i.cpp b/TAO/orbsvcs/tests/ior_corbaname/ior_corbaname_client_i.cpp
index d183b4ff8a9..c3dc6049385 100644
--- a/TAO/orbsvcs/tests/ior_corbaname/ior_corbaname_client_i.cpp
+++ b/TAO/orbsvcs/tests/ior_corbaname/ior_corbaname_client_i.cpp
@@ -21,6 +21,7 @@
#include "ior_corbaname_client_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Read_Buffer.h"
#include "ace/SString.h"
diff --git a/TAO/orbsvcs/tests/ior_corbaname/server.cpp b/TAO/orbsvcs/tests/ior_corbaname/server.cpp
index 4582f0445a0..aefa18b60be 100644
--- a/TAO/orbsvcs/tests/ior_corbaname/server.cpp
+++ b/TAO/orbsvcs/tests/ior_corbaname/server.cpp
@@ -2,16 +2,19 @@
#include "status_i.h"
#include "orbsvcs/CosNamingC.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// First initialize the ORB, that will remove some arguments...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"" /* the ORB name, it can be anything! */
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/orbsvcs/tests/tests_svc_loader/tests_svc_loader.cpp b/TAO/orbsvcs/tests/tests_svc_loader/tests_svc_loader.cpp
index f4f3d3311c2..67dacf5f7d6 100644
--- a/TAO/orbsvcs/tests/tests_svc_loader/tests_svc_loader.cpp
+++ b/TAO/orbsvcs/tests/tests_svc_loader/tests_svc_loader.cpp
@@ -29,6 +29,7 @@
#include "ace/Service_Config.h"
#include "ace/Log_Msg.h"
#include "ace/CORBA_macros.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (tests_svc_loader,
@@ -36,15 +37,16 @@ ACE_RCSID (tests_svc_loader,
"$Id$")
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// First initialize the ORB, that will remove some arguments...
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// There must be at least one argument, the file that has to be
@@ -60,7 +62,7 @@ int main (int argc, char *argv [])
// Use the first argument to create the object reference.
CORBA::Object_var object =
- orb->string_to_object (argv[1] ACE_ENV_ARG_PARAMETER);
+ orb->string_to_object (convert.get_ASCII_argv()[1] ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Check if this object reference is a valid one..
diff --git a/TAO/performance-tests/AMI_Latency/Roundtrip.cpp b/TAO/performance-tests/AMI_Latency/Roundtrip.cpp
deleted file mode 100644
index c9e68d98406..00000000000
--- a/TAO/performance-tests/AMI_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-
-ACE_RCSID(AMI_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return send_time;
-}
-
-void
-Roundtrip::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/performance-tests/AMI_Latency/Roundtrip.h b/TAO/performance-tests/AMI_Latency/Roundtrip.h
deleted file mode 100644
index 6474b130a24..00000000000
--- a/TAO/performance-tests/AMI_Latency/Roundtrip.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual POA_Test::Roundtrip
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/AMI_Latency/Roundtrip_Handler.cpp b/TAO/performance-tests/AMI_Latency/Roundtrip_Handler.cpp
deleted file mode 100644
index 5f0061601e4..00000000000
--- a/TAO/performance-tests/AMI_Latency/Roundtrip_Handler.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip_Handler.h"
-
-ACE_RCSID(AMI_Latency, Roundtrip, "$Id$")
-
-Roundtrip_Handler::Roundtrip_Handler (int expected_callbacks)
- : pending_callbacks_ (expected_callbacks)
-{
-}
-
-int
-Roundtrip_Handler::pending_callbacks (void) const
-{
- return this->pending_callbacks_;
-}
-
-void
-Roundtrip_Handler::dump_results (ACE_UINT32 gsf)
-{
- this->latency_stats_.dump_results ("AMI Latency", gsf);
-}
-
-void
-Roundtrip_Handler::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->pending_callbacks_--;
-
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- this->latency_stats_.sample (now - send_time);
-}
-
-void
-Roundtrip_Handler::test_method_excep (Test::AMI_RoundtripExceptionHolder *holder
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_TRY
- {
- this->pending_callbacks_--;
- holder->raise_test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "test_method:");
- }
- ACE_ENDTRY;
-}
-
-void
-Roundtrip_Handler::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Roundtrip_Handler::shutdown_excep (Test::AMI_RoundtripExceptionHolder *holder
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_TRY
- {
- holder->raise_shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "shutdown:");
- }
- ACE_ENDTRY;
-}
diff --git a/TAO/performance-tests/AMI_Latency/Roundtrip_Handler.h b/TAO/performance-tests/AMI_Latency/Roundtrip_Handler.h
deleted file mode 100644
index fca18bf989f..00000000000
--- a/TAO/performance-tests/AMI_Latency/Roundtrip_Handler.h
+++ /dev/null
@@ -1,61 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_HANDLER_H
-#define ROUNDTRIP_HANDLER_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-#include "ace/Basic_Stats.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip_Handler
- : public virtual POA_Test::AMI_RoundtripHandler
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip_Handler (int expected_callbacks);
-
- /// Return the number of pending callbacks
- int pending_callbacks (void) const;
-
- /// Dump the results
- void dump_results (ACE_UINT32 gsf);
-
- // = The skeleton methods
- virtual void test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_method_excep (Test::AMI_RoundtripExceptionHolder *holder
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown_excep (Test::AMI_RoundtripExceptionHolder *holder
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// The number of callbacks not received yet
- int pending_callbacks_;
-
- /// Collect the latency results
- ACE_Basic_Stats latency_stats_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/AMI_Latency/Server_Task.cpp b/TAO/performance-tests/AMI_Latency/Server_Task.cpp
deleted file mode 100644
index 6df92f32a3f..00000000000
--- a/TAO/performance-tests/AMI_Latency/Server_Task.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// $Id$
-//
-#include "Server_Task.h"
-
-ACE_RCSID(AMI_Latency, Server_Task, "$Id$")
-
-Server_Task::Server_Task (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-int
-Server_Task::svc (void)
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY {} ACE_ENDTRY;
- return 0;
-}
diff --git a/TAO/performance-tests/AMI_Latency/client.cpp b/TAO/performance-tests/AMI_Latency/client.cpp
deleted file mode 100644
index 0d396c4b67b..00000000000
--- a/TAO/performance-tests/AMI_Latency/client.cpp
+++ /dev/null
@@ -1,185 +0,0 @@
-// $Id$
-
-#include "Roundtrip_Handler.h"
-#include "tao/debug.h"
-#include "ace/Get_Opt.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-
-ACE_RCSID(AMI_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-
-ACE_hrtime_t throughput_base;
-
-int niterations = 1000;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-p <period (msecs)> "
- "-b <burst size> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
-
- for (int j = 0; j < 100; ++j)
- {
- ACE_hrtime_t start = 0;
- (void) roundtrip->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- Roundtrip_Handler *roundtrip_handler_impl;
- ACE_NEW_RETURN (roundtrip_handler_impl,
- Roundtrip_Handler (niterations),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_handler_impl);
-
- Test::AMI_RoundtripHandler_var roundtrip_handler =
- roundtrip_handler_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
-
- for (int i = 0; i != niterations; ++i)
- {
- // Invoke asynchronous operation....
- roundtrip->sendc_test_method (roundtrip_handler.in (),
- ACE_OS::gethrtime ()
- ACE_ENV_ARG_PARAMETER);
- if (orb->work_pending (ACE_ENV_SINGLE_ARG_PARAMETER))
- orb->perform_work (ACE_ENV_SINGLE_ARG_PARAMETER);
-
- ACE_TRY_CHECK;
- }
-
- ACE_Time_Value tv (0, 2000);
-
- while (roundtrip_handler_impl->pending_callbacks ())
- {
- orb->perform_work (tv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- roundtrip_handler_impl->dump_results (gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- niterations);
-
- roundtrip->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught: ");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/AMI_Latency/server.cpp b/TAO/performance-tests/AMI_Latency/server.cpp
deleted file mode 100644
index 74498dc13e0..00000000000
--- a/TAO/performance-tests/AMI_Latency/server.cpp
+++ /dev/null
@@ -1,155 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "Server_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(AMI_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-int nthreads = 4;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case 'n':
- nthreads = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile> "
- "-n <nthreads> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
-
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
-
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
-
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Server_Task server_task (orb.in ());
- if (server_task.activate (THR_NEW_LWP | THR_JOINABLE,
- nthreads) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot activate server threads\n"),
- 1);
-
- server_task.thr_mgr ()->wait ();
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Anyop/Anyop.mpc b/TAO/performance-tests/Anyop/Anyop.mpc
index bbf480e5258..9a936c24fcc 100644
--- a/TAO/performance-tests/Anyop/Anyop.mpc
+++ b/TAO/performance-tests/Anyop/Anyop.mpc
@@ -1,6 +1,5 @@
// $Id$
project: taoexe, anytypecode {
- avoids += ace_for_tao
Source_Files {
testC.cpp
anyop.cpp
diff --git a/TAO/performance-tests/Anyop/Makefile.am b/TAO/performance-tests/Anyop/Makefile.am
index 5f41824e342..5d4ed75051f 100644
--- a/TAO/performance-tests/Anyop/Makefile.am
+++ b/TAO/performance-tests/Anyop/Makefile.am
@@ -16,11 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-
## Makefile.Anyop.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
testC.cpp \
testC.h \
@@ -70,8 +67,6 @@ anyop_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Anyop/anyop.cpp b/TAO/performance-tests/Anyop/anyop.cpp
index 3777b0ed92e..efe1d379bcf 100644
--- a/TAO/performance-tests/Anyop/anyop.cpp
+++ b/TAO/performance-tests/Anyop/anyop.cpp
@@ -34,7 +34,7 @@ ACE_RCSID (Anyop,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
@@ -55,7 +55,7 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- ACE_Get_Opt get_opt (argc, argv, "dien:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "dien:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/performance-tests/CSD_Strategy/Makefile.am b/TAO/performance-tests/CSD_Strategy/Makefile.am
deleted file mode 100644
index 7fae585610a..00000000000
--- a/TAO/performance-tests/CSD_Strategy/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-SUBDIRS = \
- TestInf \
- TestServant \
- TestApps
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.cpp b/TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.cpp
deleted file mode 100644
index f01b5c7570d..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.cpp
+++ /dev/null
@@ -1,200 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestInf/AppHelper.h"
-#include "TestInf/TestAppExceptionC.h"
-#include "TestServant/Foo_ClientEngine.h"
-#include "ace/Get_Opt.h"
-
-
-ClientApp::ClientApp()
- : TestAppBase("CSD_PT_ClientApp"),
- ior_("Not Set"),
- client_id_(0),
- num_loops_(1)
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- if (result != 0)
- {
- return result;
- }
-
- this->client_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- result = this->run_engine(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- this->cleanup();
- return result;
-}
-
-
-int
-ClientApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Returns -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- return this->parse_args(argc, argv);
-}
-
-
-void
-ClientApp::client_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Turn the ior_ into a Foo obj ref.
- Foo_var foo = RefHelper<Foo>::string_to_ref(this->orb_.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Create the ClientEngine object, and give it the Foo obj ref.
- this->engine_ = new Foo_ClientEngine(foo.in(), this->client_id_);
-}
-
-
-int
-ClientApp::run_engine(ACE_ENV_SINGLE_ARG_DECL)
-{
- bool result = this->engine_->execute(this->num_loops_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- return result ? 0 : -1;
-}
-
-
-void
-ClientApp::cleanup()
-{
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:n:l:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case 'n':
- result = this->set_arg(this->client_id_,
- get_opts.opt_arg(),
- c,
- "client_id",
- 1);
- break;
-
- case 'l':
- result = this->set_arg(this->num_loops_,
- get_opts.opt_arg(),
- c,
- "num_loops",
- 1);
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-n <client_id>]\n"
- "\t[-l <num_loops>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ClientApp::arg_dependency_checks()
-{
- if (this->ior_ == "Not Set")
- {
- ACE_ERROR((LM_ERROR,
- "Error: Missing required command-line option (-i <ior>).\n"));
- this->usage_statement();
- return -1;
- }
-
- if (this->client_id_ <= 0)
- {
- ACE_ERROR((LM_ERROR,
- "Error: Required command-line option (-n <client id>).\n"
- " The client id should be positive integer. \n"));
- this->usage_statement();
- return -1;
- }
-
- return 0;
-}
-
-
-int
-ClientApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.h b/TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.h
deleted file mode 100644
index 9136ff9d27e..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/ClientApp.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientApp.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestInf/TestAppBase.h"
-#include "TestInf/ClientEngine.h"
-#include "tao/ORB.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void client_setup(ACE_ENV_SINGLE_ARG_DECL);
- int run_engine(ACE_ENV_SINGLE_ARG_DECL);
- void cleanup();
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- CORBA::ORB_var orb_;
- ACE_CString exe_name_;
- ACE_CString ior_;
- ClientEngine_Handle engine_;
- unsigned client_id_;
- unsigned num_loops_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/Makefile.am b/TAO/performance-tests/CSD_Strategy/TestApps/Makefile.am
deleted file mode 100644
index 069c0aab8cb..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/Makefile.am
+++ /dev/null
@@ -1,78 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.csd_test_client.am
-
-noinst_PROGRAMS = client_main
-
-client_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/performance-tests/CSD_Strategy
-
-client_main_SOURCES = \
- ClientApp.cpp \
- client_main.cpp \
- ClientApp.h
-
-client_main_LDADD = \
- $(top_builddir)/performance-tests/CSD_Strategy/TestServant/libCSD_PT_TestServant.la \
- $(top_builddir)/performance-tests/CSD_Strategy/TestInf/libCSD_PT_TestInf.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Makefile.csd_test_server.am
-
-noinst_PROGRAMS += server_main
-
-server_main_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/performance-tests/CSD_Strategy
-
-server_main_SOURCES = \
- ServerApp.cpp \
- server_main.cpp \
- ServerApp.h
-
-server_main_LDADD = \
- $(top_builddir)/performance-tests/CSD_Strategy/TestServant/libCSD_PT_TestServant.la \
- $(top_builddir)/performance-tests/CSD_Strategy/TestInf/libCSD_PT_TestInf.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_ThreadPool.la \
- $(TAO_BUILDDIR)/tao/libTAO_CSD_Framework.la \
- $(TAO_BUILDDIR)/tao/libTAO_PI.la \
- $(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/README b/TAO/performance-tests/CSD_Strategy/TestApps/README
deleted file mode 100644
index 61ddc725de5..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/README
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
-
-@page CSD_Strategy TestApp README File
-
- This directory contains the test applications. This test tries to
-estimate how fast the CSD strategy can handle requests.
-
- To run the test use the run_test.pl script as below. The number
-parameter is the trail id for the server used to identify the test
-results when running same test multiple times using single script.
-The id should be positive integer.
-
-
-$ ./run_test.pl 1
-
- 1 remote client, 1 servant, 1 orb thread (main thread), 1 csd strategy thread
-
-$ ./run_test.pl remote 1
-
- 40 remote clients, 1 servant, 1 orb thread (main thread), 1 csd strategy thread
-
-$ ./run_test.pl collocated 1
-
- 10 collocated clients, 1 servant, 1 orb thread (main thread), 1 csd strategy thread
-
-$ ./run_test.pl remote_orbthreads 1
-
- 40 remote clients, 1 servant, 5 orb threads, 1 csd strategy thread
-
-$ ./run_test.pl remote_servants 1
-
- 40 remote clients, 5 servants, 5 orb threads, 1 csd strategy thread
-
-$ ./run_test.pl remote_csdthreads 1
-
- 40 remote clients, 5 servants, 1 orb thread (main thread), 5 csd strategy threads
-
-$ ./run_test.pl remote_big 1
-
- 40 remote clients, 10 servants, 4 orb threads, 5 csd strategy threads
-
-$ ./run_test.pl collocated_big 1
-
- 40 collocated clients, 10 servants, 1 orb thread (main thread), 5 csd strategy threads
-
-$ ./run_test.pl big 1
-
- 40 remote clients, 40 collocated clients, 10 servants, 4 orb threads, 5 csd strategy threads
-
-$ ./run_test.pl remote_huge 1
-
- 400 remote clients, 10 servants, 4 orb threads, 5 csd strategy threads
-
-$ ./run_test.pl collocated_huge 1
-
- 40 collocated clients, 10 servants, 1 orb thread (main thread), 20 csd strategy threads
-
-
- The script returns 0 if the test was successful, and prints
-out the number of requests, the total time to dispatch these requests
-and the average number of requests the CSD strategy dispatched
-per millisecond.
-
-*/
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.cpp b/TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.cpp
deleted file mode 100644
index 1584ad68bd2..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.cpp
+++ /dev/null
@@ -1,430 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestInf/AppHelper.h"
-#include "TestInf/OrbRunner.h"
-#include "TestInf/AppShutdown.h"
-#include "TestInf/TestAppExceptionC.h"
-#include "TestServant/Foo_ClientEngine.h"
-#include "ace/OS.h"
-#include "ace/Get_Opt.h"
-#include "ace/Time_Value.h"
-#include "ace/High_Res_Timer.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
- : TestAppBase("CSD_PT_ServerApp"),
- ior_filename_prefix_("foo"),
- num_servants_(1),
- num_csd_threads_(1),
- num_orb_threads_(1),
- num_remote_clients_(1),
- num_collocated_clients_(0),
- num_loops_(1),
- use_csd_(1),
- scenario_id_("UnknownScenarioId"),
- trial_id_(0)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- if (result != 0)
- {
- return result;
- }
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->servant_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->collocated_setup();
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_High_Res_Timer timer;
- timer.start();
-
- this->run_collocated_clients(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
-
- timer.stop();
-
- ACE_Time_Value tv;
- timer.elapsed_time(tv);
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- unsigned num_operations = this->stats_.total();
-
- double ops_per_msec = (1.0 * num_operations) / tv.msec();
-
- ACE_DEBUG((LM_DEBUG, "%s,%d,%d,%d,%.2f\n",
- this->scenario_id_.c_str(),
- this->trial_id_,
- num_operations,
- tv.msec(),
- ops_per_msec));
-
- this->cleanup();
- return this->check_results () ? 0 : -1;
-}
-
-
-int
-ServerApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
-
- if (result != 0)
- {
- return result;
- }
-
- TheAppShutdown->init(this->orb_.in(),
- this->num_remote_clients_ +
- this->num_collocated_clients_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ServerApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
- if (this->use_csd_ > 0)
- {
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
- }
-}
-
-
-void
-ServerApp::servant_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->servants_.create_and_activate(this->num_servants_,
- this->orb_.in (),
- this->poa_.in (),
- this->ior_filename_prefix_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::collocated_setup()
-{
- int client_id = this->num_remote_clients_;
-
- for (unsigned i = 0; i < this->num_collocated_clients_; i++)
- {
- ++client_id;
-
- // Dole out the servant object references in a round-robin fashion.
- unsigned servant_index = i % this->num_servants_;
-
- ServantListType::T_stub_var obj = this->servants_.objref(servant_index);
-
- ClientEngine_Handle engine = new Foo_ClientEngine(obj.in(), client_id);
-
- this->collocated_client_task_.add_engine(engine.in());
- }
-
- this->collocated_client_task_.num_loops(this->num_loops_);
-}
-
-
-void
-ServerApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ > 0)
- {
- if (this->collocated_client_task_.open() == -1)
- {
- ACE_THROW (TestAppException ());
- }
- }
-}
-
-
-void
-ServerApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-void
-ServerApp::cleanup()
-{
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:n:t:r:c:l:u:x:z:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'p':
- this->ior_filename_prefix_ = get_opts.opt_arg();
- break;
-
- case 's':
- result = this->set_arg(this->num_servants_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 'n':
- result = this->set_arg(this->num_csd_threads_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 't':
- result = this->set_arg(this->num_orb_threads_,
- get_opts.opt_arg(),
- c,
- "num_orb_threads",
- 1);
- break;
-
- case 'r':
- result = this->set_arg(this->num_remote_clients_,
- get_opts.opt_arg(),
- c,
- "num_remote_clients");
- break;
-
- case 'c':
- result = this->set_arg(this->num_collocated_clients_,
- get_opts.opt_arg(),
- c,
- "num_collocated_clients");
- break;
-
- case 'l':
- result = this->set_arg(this->num_loops_,
- get_opts.opt_arg(),
- c,
- "num_loops",
- 1);
- break;
-
- case 'u':
- result = this->set_arg(this->use_csd_,
- get_opts.opt_arg(),
- c,
- "use_csd_flag");
- break;
-
- case 'x':
- this->scenario_id_ = get_opts.opt_arg();
- break;
-
- case 'z':
- result = this->set_arg(this->trial_id_,
- get_opts.opt_arg(),
- c,
- "trial_id_number",
- 1);
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-p <ior_filename_prefix>]\n"
- "\t[-s <num_servants>]\n"
- "\t[-n <num_csd_threads>]\n"
- "\t[-t <num_orb_threads>]\n"
- "\t[-r <num_remote_clients>]\n"
- "\t[-c <num_collocated_clients>]\n"
- "\t[-l <num_loops>]\n"
- "\t[-u <use_csd_flag>]\n"
- "\t[-x <scenario_id_string>]\n"
- "\t[-z <trial_id_number>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ServerApp::arg_dependency_checks()
-{
- return (this->num_remote_clients_
- + this->num_collocated_clients_) > 0 ? 0 : -1;
-}
-
-
-int
-ServerApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
-PortableServer::POA_ptr
-ServerApp::create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-bool
-ServerApp::check_results()
-{
-
- this->stats_.init(this->num_remote_clients_ +
- this->num_collocated_clients_,
- this->num_loops_);
-
- Foo_ClientEngine::expected_results(this->stats_);
-
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- this->servants_.servant(i)->gather_stats(this->stats_);
- }
-
- this->stats_.actual_vs_expected();
-
- return true;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.h b/TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.h
deleted file mode 100644
index a9029d65703..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/ServerApp.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ServerApp.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestInf/TestAppBase.h"
-#include "TestInf/ServantList_T.h"
-#include "TestInf/ClientTask.h"
-#include "TestServant/Foo_i.h"
-#include "TestServant/Foo_Statistics.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void servant_setup(ACE_ENV_SINGLE_ARG_DECL);
- void collocated_setup();
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL);
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_results();
- void cleanup();
-
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
- typedef ServantList<Foo_i> ServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- ServantListType servants_;
-
- ClientTask collocated_client_task_;
-
- ACE_CString exe_name_;
- ACE_CString ior_filename_prefix_;
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
- unsigned num_remote_clients_;
- unsigned num_collocated_clients_;
- unsigned num_loops_;
- unsigned use_csd_;
-
- ACE_CString scenario_id_;
- unsigned trial_id_;
-
- Foo_Statistics stats_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/client_main.cpp b/TAO/performance-tests/CSD_Strategy/TestApps/client_main.cpp
deleted file mode 100644
index 3481f7068f7..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/client_main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#include "TestInf/TestAppMain.h"
-#include "ClientApp.h"
-
-TEST_APP_MAIN(ClientApp)
-
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/csd_pt_testapps.mpc b/TAO/performance-tests/CSD_Strategy/TestApps/csd_pt_testapps.mpc
deleted file mode 100644
index 330fcd4afc5..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/csd_pt_testapps.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(csd_test_server): csd_pt_test_exe {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(csd_test_client): csd_pt_test_exe {
- exename=client_main
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/run_test.pl b/TAO/performance-tests/CSD_Strategy/TestApps/run_test.pl
deleted file mode 100755
index 433747be660..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/run_test.pl
+++ /dev/null
@@ -1,244 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-# 5 Minute server timeout.
-my $server_timeout_secs = 300;
-
-my $status = 0;
-
-my $iorfname_prefix = "servant";
-my $num_servants = 1;
-my $num_orb_threads = 1;
-my $num_remote_clients = 1;
-my $num_csd_threads = 1;
-my $num_collocated_clients = 0;
-my $num_loops = 100;
-my $use_csd = 1;
-my $scenario_id = "UnsetScenarioId";
-my $trial_id = 1;
-
-my $i;
-my $j;
-my @iorfile;
-
-my $ARGC = @ARGV;
-
-if ($ARGC > 0)
-{
- if ($ARGC > 3)
- {
- print STDERR "ERROR: Too many command-line arguments for $0.\n";
- exit 1;
- }
-
- if ($ARGC < 2)
- {
- print STDERR "ERROR: Too few command-line arguments for $0.\n";
- exit 1;
- }
-
- if ($ARGC > 2)
- {
- $num_loops = $ARGV[2];
- }
-
- $scenario_id = $ARGV[0];
- $trial_id = $ARGV[1];
-
- my $subtest = $scenario_id;
-
- if ($subtest =~ /^x_(.+)$/)
- {
- $subtest = $1;
- $use_csd = 0;
- }
-
- if ($subtest eq 'remote')
- {
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'collocated')
- {
- $num_remote_clients = 0;
- $num_collocated_clients = 10;
- }
- elsif ($subtest eq 'remote_orbthreads')
- {
- $num_orb_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_servants')
- {
- $num_servants = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_csdthreads')
- {
- $num_csd_threads = 5;
- $num_servants = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'collocated_big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_remote_clients = 0;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'remote_huge')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 400;
- $num_loops = $num_loops / 10;
- # 15 minute server timeout
- $server_timeout_secs = 1800;
- }
- elsif ($subtest eq 'collocated_huge')
- {
- $num_csd_threads = 20;
- $num_servants = 10;
- $num_remote_clients = 0;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'usage')
- {
- print STDOUT "Usage: $0 [<subtest>]\n" .
- "\n" .
- "Supported <subtest> values:\n" .
- "\n" .
- "\tremote\n" .
- "\tcollocated\n" .
- "\tremote_orbthreads\n" .
- "\tremote_servants\n" .
- "\tremote_csdthreads\n" .
- "\tremote_big\n" .
- "\tcollocated_big\n" .
- "\tbig\n" .
- "\tremote_huge\n" .
- "\tusage\n" .
- "\n";
- exit 0;
- }
- else
- {
- print STDERR "ERROR: invalid subtest argument for $0: $subtest\n";
- exit 1;
- }
-}
-
-#Delete old ior files.
-for ($i = 0; $i < $num_servants; $i++) {
- my $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
- unlink $iorfile[$i];
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-l $num_loops " .
- "-u $use_csd " .
- "-x $scenario_id " .
- "-z $trial_id");
-}
-else {
- $SV = new PerlACE::Process("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-l $num_loops " .
- "-u $use_csd " .
- "-x $scenario_id " .
- "-z $trial_id");
-
-}
-
-
-$SV->Spawn();
-
-# Wait for the servant ior files created by server.
-for ($i = 0; $i < $num_servants; $i++) {
- if (PerlACE::waitforfile_timed
- ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill();
- $SV->TimedWait(1);
- exit 1;
- }
-}
-
-my $count = 0;
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client_id = $i+1;
-
- # Round-robin assignment of servants to clients.
- $j = $i % $num_servants;
-
- $CLS[$i] = new PerlACE::Process("client_main",
- "-i file://$iorfile[$j] ".
- "-n $client_id " .
- "-l $num_loops");
-
- $CLS[$i]->Spawn();
-}
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client = $CLS[$i]->WaitKill(600);
-
- if ($client != 0)
- {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill(600);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for ($i = 0; $i < $num_servants; $i++) {
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/performance-tests/CSD_Strategy/TestApps/server_main.cpp b/TAO/performance-tests/CSD_Strategy/TestApps/server_main.cpp
deleted file mode 100644
index d0d2aa30fff..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestApps/server_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "TestInf/TestAppMain.h"
-#include "ServerApp.h"
-
-TEST_APP_MAIN(ServerApp)
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.cpp
deleted file mode 100644
index 0f60191a9bd..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-// $Id$
-#include "AppHelper.h"
-
-void
-AppHelper::ref_to_file(CORBA::ORB_ptr orb,
- CORBA::Object_ptr obj,
- const char* filename
- ACE_ENV_ARG_DECL)
-{
- CORBA::String_var ior = orb->object_to_string(obj);
-
- FILE* ior_file = ACE_OS::fopen(filename, "w");
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file [%s] to write IOR.",
- filename));
- ACE_THROW (TestAppException());
- }
-
- ACE_OS::fprintf(ior_file, "%s", ior.in());
- ACE_OS::fclose(ior_file);
-}
-
-
-PortableServer::POA_ptr
-AppHelper::create_poa(const char* name,
- PortableServer::POA_ptr root_poa,
- PortableServer::POAManager_ptr mgr,
- CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
-{
- PortableServer::POA_var child_poa = root_poa->create_POA(name,
- mgr,
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to create child POA: %s.\n", name));
- ACE_THROW_RETURN (TestAppException(), PortableServer::POA::_nil ());
- }
-
- return child_poa._retn();
-}
-
-
-CORBA::Object_ptr
-AppHelper::activate_servant(PortableServer::POA_ptr poa,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- // Activate the servant using the Child POA.
- PortableServer::ObjectId_var oid
- = poa->activate_object(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
-
- CORBA::Object_var obj
- = poa->servant_to_reference(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert servant_to_ref.\n"));
- ACE_THROW_RETURN (TestAppException(), CORBA::Object::_nil ());
- }
-
- return obj._retn();
-}
-
-
-bool
-AppHelper::validate_connection (CORBA::Object_ptr obj)
-{
- for (CORBA::ULong j = 0; j != 100; ++j)
- {
- ACE_TRY_NEW_ENV
- {
-#if (TAO_HAS_CORBA_MESSAGING == 1)
- CORBA::PolicyList_var unused;
- obj->_validate_connection (unused
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#else
- obj->_is_a ("Not_An_IDL_Type"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#endif /* TAO_HAS_MESSAGING == 1 */
- return true;
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- }
-
- return false;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.h b/TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.h
deleted file mode 100644
index bdc6c2ab5b3..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/AppHelper.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// $Id$
-#ifndef APPHELPER_H
-#define APPHELPER_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "TestAppExceptionC.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/ORB.h"
-#include "ace/OS.h"
-#include "ace/Log_Msg.h"
-
-
-template <typename T>
-struct RefHelper
-{
- typedef typename T::_ptr_type T_ptr;
- typedef typename T::_var_type T_var;
-
- static T_ptr string_to_ref(CORBA::ORB_ptr orb,
- const char* ior
- ACE_ENV_ARG_DECL)
- {
- CORBA::Object_var obj = orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(T::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- T_var t_obj = T::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(T::_nil ());
-
- if (CORBA::is_nil(t_obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to T interface.\n"));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- return t_obj._retn();
- }
-
- static T_ptr resolve_initial_ref(CORBA::ORB_ptr orb,
- const char* name
- ACE_ENV_ARG_DECL)
- {
- CORBA::Object_var obj
- = orb->resolve_initial_references(name ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (T::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for '%s'.\n",
- name));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- T_var t_obj = T::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (T::_nil ());
-
-
- if (CORBA::is_nil(t_obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow resolved initial ref '%s'.\n",
- name));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- return t_obj._retn();
- }
-
-};
-
-struct CSD_PT_TestInf_Export AppHelper
-{
-
- static void ref_to_file(CORBA::ORB_ptr orb,
- CORBA::Object_ptr obj,
- const char* filename
- ACE_ENV_ARG_DECL);
-
- static PortableServer::POA_ptr create_poa
- (const char* name,
- PortableServer::POA_ptr root_poa,
- PortableServer::POAManager_ptr mgr,
- CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
- static CORBA::Object_ptr activate_servant(PortableServer::POA_ptr poa,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- // This helper method is used because there is a chance that the
- // initial CORBA request made to the target ORB will fail during
- // connection establishment with a TRANSIENT CORBA SystemException.
- // This occurs for some platforms (ie, windows) when several clients
- // make their initial CORBA request to the same ORB at the same time,
- // causing the ORB to attempt to handle several connection establishments
- // at one time. Apparently, under certain conditions, it will throw the
- // TRANSIENT exception to tell the client application to "try again later".
- // The analogy is making a phone call. Sometimes you get a busy tone.
- // This means "try again later".
- // This helper function will retry until the connection establishment
- // works - or until it decides that enough is enough.
- static bool validate_connection (CORBA::Object_ptr obj);
-};
-
-#endif
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.cpp
deleted file mode 100644
index 79d7f28c0d9..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-// $Id$
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_unistd.h"
-
-AppShutdown::AppShutdown()
- : num_clients_(0),
- num_clients_shutdown_(0)
-{
-}
-
-
-AppShutdown::~AppShutdown()
-{
-}
-
-
-void
-AppShutdown::init(CORBA::ORB_ptr orb,
- unsigned num_clients
- ACE_ENV_ARG_DECL)
-{
- if ((!CORBA::is_nil(this->orb_.in())) ||
- (CORBA::is_nil(orb)) ||
- (num_clients == 0))
- {
- // Already init()'ed, or bad argument values.
- ACE_THROW(TestAppException());
- }
- else
- {
- this->orb_ = CORBA::ORB::_duplicate(orb);
- this->num_clients_ = num_clients;
- this->num_clients_shutdown_ = 0;
- }
-}
-
-
-void
-AppShutdown::wait ()
-{
- this->orb_shutdown_task_.wait();
-}
-
-
-void
-AppShutdown::client_done()
-{
- if ((this->num_clients_ == 0) || (CORBA::is_nil(this->orb_.in())))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) AppShutdown was never initialized.\n"));
- return;
- }
-
- unsigned cur_shutdown;
-
- {
- GuardType guard(this->lock_);
- cur_shutdown = ++this->num_clients_shutdown_;
- }
-
- if (cur_shutdown == this->num_clients_)
- {
- // Sleep for one second before shutting down the ORB. This
- // is a poor-man version of "wait until the CSD request queue drains".
- ACE_OS::sleep(1);
- this->orb_shutdown_task_.orb(this->orb_.in());
- if (this->orb_shutdown_task_.open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) AppShutdown failed to create orb "\
- "shutdown thread.\n"));
- return;
- }
- }
-}
-
-
-AppShutdown*
-AppShutdown::instance ()
-{
- static AppShutdown app_shutdown;
- return &app_shutdown;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.h b/TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.h
deleted file mode 100644
index 481659d734e..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/AppShutdown.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-#ifndef APP_SHUTDOWN_H
-#define APP_SHUTDOWN_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "OrbShutdownTask.h"
-#include "tao/ORB.h"
-
-class CSD_PT_TestInf_Export AppShutdown
-{
- public:
-
- AppShutdown();
- virtual ~AppShutdown();
-
- void init(CORBA::ORB_ptr orb,
- unsigned num_clients
- ACE_ENV_ARG_DECL);
-
- void wait ();
-
- void client_done();
-
- static AppShutdown* instance ();
-
- private:
-
- typedef ACE_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
-
- LockType lock_;
- CORBA::ORB_var orb_;
- unsigned num_clients_;
- unsigned num_clients_shutdown_;
-
- OrbShutdownTask orb_shutdown_task_;
-};
-
-
-#define TheAppShutdown AppShutdown::instance()
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/CSD_PT_TestInf_Export.h b/TAO/performance-tests/CSD_Strategy/TestInf/CSD_PT_TestInf_Export.h
deleted file mode 100644
index 91f36276272..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/CSD_PT_TestInf_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s CSD_PT_TestInf
-// ------------------------------
-#ifndef CSD_PT_TESTINF_EXPORT_H
-#define CSD_PT_TESTINF_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CSD_PT_TESTINF_HAS_DLL)
-# define CSD_PT_TESTINF_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CSD_PT_TESTINF_HAS_DLL */
-
-#if !defined (CSD_PT_TESTINF_HAS_DLL)
-# define CSD_PT_TESTINF_HAS_DLL 1
-#endif /* ! CSD_PT_TESTINF_HAS_DLL */
-
-#if defined (CSD_PT_TESTINF_HAS_DLL) && (CSD_PT_TESTINF_HAS_DLL == 1)
-# if defined (CSD_PT_TESTINF_BUILD_DLL)
-# define CSD_PT_TestInf_Export ACE_Proper_Export_Flag
-# define CSD_PT_TESTINF_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CSD_PT_TESTINF_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CSD_PT_TESTINF_BUILD_DLL */
-# define CSD_PT_TestInf_Export ACE_Proper_Import_Flag
-# define CSD_PT_TESTINF_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CSD_PT_TESTINF_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CSD_PT_TESTINF_BUILD_DLL */
-#else /* CSD_PT_TESTINF_HAS_DLL == 1 */
-# define CSD_PT_TestInf_Export
-# define CSD_PT_TESTINF_SINGLETON_DECLARATION(T)
-# define CSD_PT_TESTINF_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CSD_PT_TESTINF_HAS_DLL == 1 */
-
-// Set CSD_PT_TESTINF_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CSD_PT_TESTINF_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CSD_PT_TESTINF_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CSD_PT_TESTINF_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CSD_PT_TESTINF_NTRACE */
-
-#if (CSD_PT_TESTINF_NTRACE == 1)
-# define CSD_PT_TESTINF_TRACE(X)
-#else /* (CSD_PT_TESTINF_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CSD_PT_TESTINF_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CSD_PT_TESTINF_NTRACE == 1) */
-
-#endif /* CSD_PT_TESTINF_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/CancelledException.idl b/TAO/performance-tests/CSD_Strategy/TestInf/CancelledException.idl
deleted file mode 100644
index 8f9afcf68de..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/CancelledException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef CANCELAPPXCEPTION_IDL
-#define CANCELAPPXCEPTION_IDL
-
-exception CancelledException {};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.cpp
deleted file mode 100644
index 361bb3cd465..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// $Id$
-#include "ClientEngine.h"
-
-
-ClientEngine::ClientEngine()
-{
-}
-
-
-ClientEngine::~ClientEngine()
-{
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.h b/TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.h
deleted file mode 100644
index 93acb571cdc..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/ClientEngine.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef CLIENT_ENGINE_H
-#define CLIENT_ENGINE_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "tao/Intrusive_Ref_Count_Base_T.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-#include "tao/Environment.h"
-#include "ace/Synch.h"
-#include "ace/CORBA_macros.h"
-
-
-class ClientEngine;
-typedef TAO_Intrusive_Ref_Count_Handle<ClientEngine> ClientEngine_Handle;
-
-
-class CSD_PT_TestInf_Export ClientEngine : public TAO_Intrusive_Ref_Count_Base<ACE_SYNCH_MUTEX>
-{
- public:
-
- ClientEngine();
- virtual ~ClientEngine();
-
- virtual bool execute(unsigned num_loops
- ACE_ENV_ARG_DECL) = 0;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.cpp
deleted file mode 100644
index c09255b1ae2..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.cpp
+++ /dev/null
@@ -1,117 +0,0 @@
-// $Id$
-// This may look like C, but it's really -*- C++ -*-
-#include "ClientTask.h"
-#include "tao/Exception.h"
-#include "ace/SString.h"
-
-
-ClientTask::ClientTask()
- : failure_count_(0),
- num_loops_(1)
-{
-}
-
-
-ClientTask::~ClientTask()
-{
-}
-
-
-void
-ClientTask::add_engine(ClientEngine* engine)
-{
- // Pass in false so that _add_ref() is called.
- ClientEngine_Handle engine_handle(engine,false);
- this->engines_.push_back(engine_handle);
-}
-
-
-void
-ClientTask::num_loops(unsigned num_loops)
-{
- this->num_loops_ = num_loops;
-}
-
-
-int
-ClientTask::open(void*)
-{
- size_t num_threads = this->engines_.size();
-
- if (num_threads == 0)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) ClientTask cannot activate 0 threads.\n"),
- -1);
- }
-
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, num_threads) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) ClientTask failed to activate "
- "the %d client threads.\n", num_threads),
- -1);
- }
-
- return 0;
-}
-
-
-int
-ClientTask::svc()
-{
- ClientEngine_Handle engine;
- unsigned num_loops;
-
- {
- GuardType guard(this->lock_);
- this->engines_.get(engine, this->engines_.size() - 1);
- this->engines_.pop_back();
- num_loops = this->num_loops_;
- }
-
- ACE_TRY_NEW_ENV
- {
- if (engine->execute(num_loops ACE_ENV_ARG_PARAMETER) == false)
- {
- GuardType guard(this->lock_);
- this->failure_count_++;
- }
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "ClientTask::svc Caught exception from execute():");
-
- GuardType guard(this->lock_);
- this->failure_count_ ++;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) ClientTask::svc caught unknown (...) exception "\
- "in execute() " ));
- GuardType guard(this->lock_);
- this->failure_count_++;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-ClientTask::close(u_long)
-{
- return 0;
-}
-
-
-unsigned
-ClientTask::failure_count() const
-{
- return this->failure_count_;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.h b/TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.h
deleted file mode 100644
index a99ccc6ad43..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/ClientTask.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef CLIENT_TASK_H
-#define CLIENT_TASK_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "ClientEngine.h"
-#include "ace/Task.h"
-#include "ace/Vector_T.h"
-#include "ace/Synch.h"
-
-
-class CSD_PT_TestInf_Export ClientTask : public ACE_Task_Base
-{
- public:
-
- ClientTask();
- virtual ~ClientTask();
-
- void add_engine(ClientEngine* engine);
- void num_loops(unsigned num_loops);
-
- virtual int open(void* arg = 0);
- virtual int svc();
- virtual int close(u_long);
-
- unsigned failure_count() const;
-
-
- private:
-
- typedef ACE_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
-
- typedef ACE_Vector<ClientEngine_Handle> EngineVector;
-
- LockType lock_;
- EngineVector engines_;
- unsigned failure_count_;
- unsigned num_loops_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/CustomException.idl b/TAO/performance-tests/CSD_Strategy/TestInf/CustomException.idl
deleted file mode 100644
index 794900c41ce..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/CustomException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef CUSTOMEXCEPTION_IDL
-#define CUSTOMEXCEPTION_IDL
-
-exception CustomException {};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/FooException.idl b/TAO/performance-tests/CSD_Strategy/TestInf/FooException.idl
deleted file mode 100644
index 4f76953e24c..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/FooException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef FOOEXCEPTION_IDL
-#define FOOEXCEPTION_IDL
-
-exception FooException {};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/Makefile.am b/TAO/performance-tests/CSD_Strategy/TestInf/Makefile.am
deleted file mode 100644
index 5c75034ece3..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/Makefile.am
+++ /dev/null
@@ -1,211 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.csd_pt_testinf.am
-
-BUILT_SOURCES = \
- FooExceptionC.cpp \
- FooExceptionC.h \
- FooExceptionC.inl \
- FooExceptionS.cpp \
- FooExceptionS.h \
- FooExceptionS.inl \
- FooExceptionS_T.cpp \
- FooExceptionS_T.h \
- FooExceptionS_T.inl
-
-CLEANFILES = \
- FooException-stamp \
- FooExceptionC.cpp \
- FooExceptionC.h \
- FooExceptionC.inl \
- FooExceptionS.cpp \
- FooExceptionS.h \
- FooExceptionS.inl \
- FooExceptionS_T.cpp \
- FooExceptionS_T.h \
- FooExceptionS_T.inl
-
-FooExceptionC.cpp FooExceptionC.h FooExceptionC.inl FooExceptionS.cpp FooExceptionS.h FooExceptionS.inl FooExceptionS_T.cpp FooExceptionS_T.h FooExceptionS_T.inl: FooException-stamp
-
-FooException-stamp: $(srcdir)/FooException.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Wb,export_macro=CSD_PT_TestInf_Export -Wb,export_include=CSD_PT_TestInf_Export.h $(srcdir)/FooException.idl
- @touch $@
-
-BUILT_SOURCES += \
- TestAppExceptionC.cpp \
- TestAppExceptionC.h \
- TestAppExceptionC.inl \
- TestAppExceptionS.cpp \
- TestAppExceptionS.h \
- TestAppExceptionS.inl \
- TestAppExceptionS_T.cpp \
- TestAppExceptionS_T.h \
- TestAppExceptionS_T.inl
-
-CLEANFILES += \
- TestAppException-stamp \
- TestAppExceptionC.cpp \
- TestAppExceptionC.h \
- TestAppExceptionC.inl \
- TestAppExceptionS.cpp \
- TestAppExceptionS.h \
- TestAppExceptionS.inl \
- TestAppExceptionS_T.cpp \
- TestAppExceptionS_T.h \
- TestAppExceptionS_T.inl
-
-TestAppExceptionC.cpp TestAppExceptionC.h TestAppExceptionC.inl TestAppExceptionS.cpp TestAppExceptionS.h TestAppExceptionS.inl TestAppExceptionS_T.cpp TestAppExceptionS_T.h TestAppExceptionS_T.inl: TestAppException-stamp
-
-TestAppException-stamp: $(srcdir)/TestAppException.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Wb,export_macro=CSD_PT_TestInf_Export -Wb,export_include=CSD_PT_TestInf_Export.h $(srcdir)/TestAppException.idl
- @touch $@
-
-BUILT_SOURCES += \
- CancelledExceptionC.cpp \
- CancelledExceptionC.h \
- CancelledExceptionC.inl \
- CancelledExceptionS.cpp \
- CancelledExceptionS.h \
- CancelledExceptionS.inl \
- CancelledExceptionS_T.cpp \
- CancelledExceptionS_T.h \
- CancelledExceptionS_T.inl
-
-CLEANFILES += \
- CancelledException-stamp \
- CancelledExceptionC.cpp \
- CancelledExceptionC.h \
- CancelledExceptionC.inl \
- CancelledExceptionS.cpp \
- CancelledExceptionS.h \
- CancelledExceptionS.inl \
- CancelledExceptionS_T.cpp \
- CancelledExceptionS_T.h \
- CancelledExceptionS_T.inl
-
-CancelledExceptionC.cpp CancelledExceptionC.h CancelledExceptionC.inl CancelledExceptionS.cpp CancelledExceptionS.h CancelledExceptionS.inl CancelledExceptionS_T.cpp CancelledExceptionS_T.h CancelledExceptionS_T.inl: CancelledException-stamp
-
-CancelledException-stamp: $(srcdir)/CancelledException.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Wb,export_macro=CSD_PT_TestInf_Export -Wb,export_include=CSD_PT_TestInf_Export.h $(srcdir)/CancelledException.idl
- @touch $@
-
-BUILT_SOURCES += \
- CustomExceptionC.cpp \
- CustomExceptionC.h \
- CustomExceptionC.inl \
- CustomExceptionS.cpp \
- CustomExceptionS.h \
- CustomExceptionS.inl \
- CustomExceptionS_T.cpp \
- CustomExceptionS_T.h \
- CustomExceptionS_T.inl
-
-CLEANFILES += \
- CustomException-stamp \
- CustomExceptionC.cpp \
- CustomExceptionC.h \
- CustomExceptionC.inl \
- CustomExceptionS.cpp \
- CustomExceptionS.h \
- CustomExceptionS.inl \
- CustomExceptionS_T.cpp \
- CustomExceptionS_T.h \
- CustomExceptionS_T.inl
-
-CustomExceptionC.cpp CustomExceptionC.h CustomExceptionC.inl CustomExceptionS.cpp CustomExceptionS.h CustomExceptionS.inl CustomExceptionS_T.cpp CustomExceptionS_T.h CustomExceptionS_T.inl: CustomException-stamp
-
-CustomException-stamp: $(srcdir)/CustomException.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -Wb,export_macro=CSD_PT_TestInf_Export -Wb,export_include=CSD_PT_TestInf_Export.h $(srcdir)/CustomException.idl
- @touch $@
-
-noinst_LTLIBRARIES = libCSD_PT_TestInf.la
-
-libCSD_PT_TestInf_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/tao \
- -DCSD_PT_TESTINF_BUILD_DLL
-
-libCSD_PT_TestInf_la_SOURCES = \
- AppHelper.cpp \
- AppShutdown.cpp \
- CancelledExceptionC.cpp \
- CancelledExceptionS.cpp \
- ClientEngine.cpp \
- ClientTask.cpp \
- CustomExceptionC.cpp \
- CustomExceptionS.cpp \
- FooExceptionC.cpp \
- FooExceptionS.cpp \
- OrbRunner.cpp \
- OrbShutdownTask.cpp \
- OrbTask.cpp \
- TestAppBase.cpp \
- TestAppExceptionC.cpp \
- TestAppExceptionS.cpp
-
-noinst_HEADERS = \
- AppHelper.h \
- AppShutdown.h \
- CancelledException.idl \
- CancelledExceptionC.h \
- CancelledExceptionC.inl \
- CancelledExceptionS.h \
- CancelledExceptionS_T.cpp \
- CancelledExceptionS_T.h \
- CancelledExceptionS_T.inl \
- ClientEngine.h \
- ClientTask.h \
- CustomException.idl \
- CustomExceptionC.h \
- CustomExceptionC.inl \
- CustomExceptionS.h \
- CustomExceptionS_T.cpp \
- CustomExceptionS_T.h \
- CustomExceptionS_T.inl \
- FooException.idl \
- FooExceptionC.h \
- FooExceptionC.inl \
- FooExceptionS.h \
- FooExceptionS_T.cpp \
- FooExceptionS_T.h \
- FooExceptionS_T.inl \
- OrbRunner.h \
- OrbShutdownTask.h \
- OrbTask.h \
- ServantList_T.cpp \
- ServantList_T.h \
- TestAppBase.h \
- TestAppException.idl \
- TestAppExceptionC.h \
- TestAppExceptionC.inl \
- TestAppExceptionS.h \
- TestAppExceptionS_T.cpp \
- TestAppExceptionS_T.h \
- TestAppExceptionS_T.inl
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.cpp
deleted file mode 100644
index fc2ddbdec04..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-// $Id$
-#include "OrbRunner.h"
-#include "OrbTask.h"
-#include "TestAppExceptionC.h"
-
-
-OrbRunner::OrbRunner(CORBA::ORB_ptr orb, unsigned num_orb_threads)
- : orb_(CORBA::ORB::_duplicate(orb)),
- num_orb_threads_(num_orb_threads)
-{
-}
-
-
-OrbRunner::~OrbRunner()
-{
-}
-
-
-void
-OrbRunner::run(ACE_ENV_SINGLE_ARG_DECL)
-{
- ACE_ASSERT(this->num_orb_threads_ > 0);
-
- // If the num_orb_threads_ is exactly one, then just use the current
- // (mainline) thread to run the ORB event loop.
- if (this->num_orb_threads_ == 1)
- {
- // Since the num_orb_threads_ is exactly one, we just use the current
- // (mainline) thread to run the ORB event loop.
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- // The num_orb_threads_ is greater than 1, so we will use an OrbTask
- // (active object) to run the ORB event loop in (num_orb_threads_ - 1)
- // threads. We use the current (mainline) thread as the other thread
- // running the ORB event loop.
- OrbTask orb_task(this->orb_.in(), this->num_orb_threads_ - 1);
-
- // Activate the OrbTask worker threads
- if (orb_task.open(0) != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the OrbTask.\n"));
- ACE_THROW(TestAppException());
- }
-
- // This will use the current (mainline) thread to run the ORB event loop.
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Now that the current thread has unblocked from running the orb,
- // make sure to wait for all of the worker threads to complete.
- orb_task.wait();
- }
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.h b/TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.h
deleted file mode 100644
index cdbbcfea222..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/OrbRunner.h
+++ /dev/null
@@ -1,24 +0,0 @@
-// $Id$
-#ifndef ORB_RUNNER_H
-#define ORB_RUNNER_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "tao/ORB.h"
-
-class CSD_PT_TestInf_Export OrbRunner
-{
- public:
-
- OrbRunner(CORBA::ORB_ptr orb, unsigned num_orb_threads = 1);
- virtual ~OrbRunner();
-
- void run(ACE_ENV_SINGLE_ARG_DECL);
-
-
- private:
-
- CORBA::ORB_var orb_;
- unsigned num_orb_threads_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.cpp
deleted file mode 100644
index 79ba1ba3f5e..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate(orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.h b/TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.h
deleted file mode 100644
index 11f2bbd341a..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/OrbShutdownTask.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class CSD_PT_TestInf_Export OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.cpp
deleted file mode 100644
index bca9d522e94..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbTask.h"
-
-namespace { enum { MAX_ORB_TASK_WORKER_THREADS = 20 }; }
-
-
-OrbTask::OrbTask(CORBA::ORB_ptr orb, unsigned num_threads)
- : orb_(CORBA::ORB::_duplicate(orb)),
- num_threads_(num_threads)
-{
-}
-
-
-OrbTask::~OrbTask()
-{
-}
-
-
-int
-OrbTask::open(void*)
-{
- if (this->num_threads_ < 1)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is less-than 1.\n",
- this->num_threads_),
- -1);
- }
-
- if (this->num_threads_ > MAX_ORB_TASK_WORKER_THREADS)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is too large. Max is %d.\n",
- this->num_threads_, MAX_ORB_TASK_WORKER_THREADS),
- -1);
- }
-
- if (CORBA::is_nil(this->orb_.in()))
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "ORB object reference is nil.\n"),
- -1);
- }
-
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, this->num_threads_) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to activate "
- "(%d) worker threads.\n",
- this->num_threads_),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbTask::svc()
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::run() method. "
- "OrbTask is stopping.\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h b/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h
deleted file mode 100644
index 3631273c548..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/OrbTask.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_TASK_H
-#define ORB_TASK_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class CSD_PT_TestInf_Export OrbTask : public ACE_Task_Base
-{
- public:
-
- OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
- virtual ~OrbTask();
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
- unsigned num_threads_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/README b/TAO/performance-tests/CSD_Strategy/TestInf/README
deleted file mode 100644
index 1d7f59a5c47..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/README
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
-
-@page CSD_Strategy TestInf README File
-
- This is the test infrastructure library. It contains the common shared
-code such as test exception idl files, the helper functions that wrap multiple
-TAO operations and the classes provide the basic test functionalities. Adding
-this library is to simplify the development of the new tests.
-
-*/
-
-
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.cpp
deleted file mode 100644
index 22133fa9868..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-// $Id$
-#include "ServantList_T.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-
-
-template <typename T>
-ServantList<T>::ServantList()
-{
-}
-
-
-template <typename T>
-ServantList<T>::~ServantList()
-{
-}
-
-
-template <typename T>
-void
-ServantList<T>::create_and_activate(unsigned num_servants,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- const char* ior_fname_prefix
- ACE_ENV_ARG_DECL)
-{
- for (unsigned i = 0; i < num_servants; i++)
- {
- char buf[32];
- ACE_OS::sprintf(buf, "%02d", i + 1);
- ACE_CString filename = ACE_CString(ior_fname_prefix) + "_" + buf + ".ior";
- ServantRecord record;
- record.servant_ = new T();
- record.safe_servant_ = record.servant_;
-
- CORBA::Object_var obj
- = AppHelper::activate_servant(poa,
- record.safe_servant_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- AppHelper::ref_to_file(orb, obj.in(), filename.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- record.obj_ = T_stub::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(record.obj_.in()))
- {
- ACE_THROW (TestAppException());
- }
-
- this->servant_records_.push_back(record);
- }
-}
-
-
-template <typename T>
-void
-ServantList<T>::create_and_activate(unsigned num_servants,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
-{
- for (unsigned i = 0; i < num_servants; i++)
- {
- ServantRecord record;
- record.servant_ = new T();
- record.safe_servant_ = record.servant_;
-
- CORBA::Object_var obj
- = AppHelper::activate_servant(poa,
- record.safe_servant_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- record.obj_ = T_stub::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(record.obj_.in()))
- {
- ACE_THROW (TestAppException());
- }
-
- this->servant_records_.push_back(record);
- }
-}
-
-
-template <typename T>
-typename ServantList<T>::T_stub_ptr
-ServantList<T>::objref(unsigned index)
-{
- return T_stub::_duplicate(this->servant_records_[index].obj_.in());
-}
-
-
-template <typename T>
-T*
-ServantList<T>::servant(unsigned index)
-{
- return this->servant_records_[index].servant_;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.h b/TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.h
deleted file mode 100644
index 57143d889c1..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/ServantList_T.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// $Id$
-#ifndef SERVANTLIST_T_H
-#define SERVANTLIST_T_H
-
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "ace/Vector_T.h"
-
-
-// The T type is a concrete servant type.
-template <class T>
-class ServantList
-{
- public:
-
- typedef typename T::_stub_type T_stub;
- typedef typename T::_stub_ptr_type T_stub_ptr;
- typedef typename T::_stub_var_type T_stub_var;
-
- ServantList();
- ~ServantList();
-
- /// Activate servant and output ior to a file.
- void create_and_activate(unsigned num_servants,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- const char* ior_fname_prefix
- ACE_ENV_ARG_DECL);
-
- /// Activate servant and not output ior to a file.
- void create_and_activate(unsigned num_servants,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL);
-
-
- /// Get a (copy) of one of the object references (for a specific servant).
- T_stub_ptr objref(unsigned index);
-
- /// This doesn't return a copy.
- T* servant(unsigned index);
-
-
- private:
-
- struct ServantRecord
- {
- T* servant_;
- PortableServer::ServantBase_var safe_servant_;
- T_stub_var obj_;
- };
-
- typedef ACE_Vector<ServantRecord> ServantRecordVector;
-
- ServantRecordVector servant_records_;
-};
-
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "ServantList_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("ServantList_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-#endif /* SERVANTLIST_T_H */
-
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.cpp b/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.cpp
deleted file mode 100644
index f2a2e97b7a2..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#include "TestAppBase.h"
-
-TestAppBase::TestAppBase(const char* name)
- : name_(name)
-{
-}
-
-
-TestAppBase::~TestAppBase()
-{
-}
-
-
-const char*
-TestAppBase::name() const
-{
- return this->name_.c_str();
-}
-
-
-int
-TestAppBase::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int rc = this->run_i(argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Convert 1 to 0. Leave 0 and -1 as they are.
- return (rc == 1) ? 0 : rc;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h b/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h
deleted file mode 100644
index b14436b623c..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-#ifndef TESTAPPBASE_H
-#define TESTAPPBASE_H
-
-#include "CSD_PT_TestInf_Export.h"
-#include "ace/SString.h"
-#include "tao/Environment.h"
-#include "ace/CORBA_macros.h"
-
-
-class CSD_PT_TestInf_Export TestAppBase
-{
- public:
-
- virtual ~TestAppBase();
-
- // Returns 0 for success, and -1 for failure.
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
- const char* name() const;
-
-
- protected:
-
- TestAppBase(const char* name);
-
- // Returns -1 for failure, 0 for success
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL) = 0;
-
-
- private:
-
- ACE_CString name_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppException.idl b/TAO/performance-tests/CSD_Strategy/TestInf/TestAppException.idl
deleted file mode 100644
index 2ac53939b77..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef TESTAPPXCEPTION_IDL
-#define TESTAPPXCEPTION_IDL
-
-exception TestAppException {};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppMain.h b/TAO/performance-tests/CSD_Strategy/TestInf/TestAppMain.h
deleted file mode 100644
index 062b6fc0c8e..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppMain.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// $Id$
-#ifndef TESTAPPMAIN_H
-#define TESTAPPMAIN_H
-
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
-
-#define TEST_APP_MAIN(APP_TYPE) \
-int \
-main(int argc, char* argv[]) \
-{ \
- ACE_LOG_MSG->priority_mask(LM_TRACE | \
- LM_DEBUG | \
- LM_INFO | \
- LM_NOTICE | \
- LM_WARNING | \
- LM_ERROR | \
- LM_CRITICAL | \
- LM_ALERT | \
- LM_EMERGENCY, \
- ACE_Log_Msg::PROCESS); \
-\
- APP_TYPE app; \
-\
- ACE_TRY_NEW_ENV \
- { \
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER); \
- ACE_TRY_CHECK; \
- return ret; \
- } \
- ACE_CATCHANY \
- { \
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, \
- "Caught exception:"); \
- } \
- ACE_CATCHALL \
- { \
- ACE_ERROR((LM_ERROR, \
- "(%P|%t) Unknown (...) exception caught in main() " \
- "for App [%d].\n", app.name())); \
- } \
- ACE_ENDTRY; \
- \
- return 1; \
-}
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc b/TAO/performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc
deleted file mode 100644
index 39bea8a0c18..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestInf/csd_pt_testinf.mpc
+++ /dev/null
@@ -1,38 +0,0 @@
-//$Id$
-project : taolib_with_idl, csd_threadpool {
- sharedname = CSD_PT_TestInf
- dynamicflags = CSD_PT_TESTINF_BUILD_DLL
- idlflags += -Wb,export_macro=CSD_PT_TestInf_Export -Wb,export_include=CSD_PT_TestInf_Export.h
- includes += $(TAO_ROOT)/tao
-
- IDL_Files {
- FooException.idl
- TestAppException.idl
- CancelledException.idl
- CustomException.idl
- }
-
- Source_Files {
- AppHelper.cpp
- AppShutdown.cpp
- ClientEngine.cpp
- ClientTask.cpp
- OrbRunner.cpp
- OrbShutdownTask.cpp
- OrbTask.cpp
- TestAppBase.cpp
- FooExceptionC.cpp
- FooExceptionS.cpp
- TestAppExceptionC.cpp
- TestAppExceptionS.cpp
- CancelledExceptionC.cpp
- CancelledExceptionS.cpp
- CustomExceptionC.cpp
- CustomExceptionS.cpp
- }
-
- Template_Files {
- ServantList_T.cpp
- }
-
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/CSD_PT_TestServant_Export.h b/TAO/performance-tests/CSD_Strategy/TestServant/CSD_PT_TestServant_Export.h
deleted file mode 100644
index 6d33bdbe291..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/CSD_PT_TestServant_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s CSD_PT_TestServant
-// ------------------------------
-#ifndef CSD_PT_TESTSERVANT_EXPORT_H
-#define CSD_PT_TESTSERVANT_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CSD_PT_TESTSERVANT_HAS_DLL)
-# define CSD_PT_TESTSERVANT_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CSD_PT_TESTSERVANT_HAS_DLL */
-
-#if !defined (CSD_PT_TESTSERVANT_HAS_DLL)
-# define CSD_PT_TESTSERVANT_HAS_DLL 1
-#endif /* ! CSD_PT_TESTSERVANT_HAS_DLL */
-
-#if defined (CSD_PT_TESTSERVANT_HAS_DLL) && (CSD_PT_TESTSERVANT_HAS_DLL == 1)
-# if defined (CSD_PT_TESTSERVANT_BUILD_DLL)
-# define CSD_PT_TestServant_Export ACE_Proper_Export_Flag
-# define CSD_PT_TESTSERVANT_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CSD_PT_TESTSERVANT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CSD_PT_TESTSERVANT_BUILD_DLL */
-# define CSD_PT_TestServant_Export ACE_Proper_Import_Flag
-# define CSD_PT_TESTSERVANT_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CSD_PT_TESTSERVANT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CSD_PT_TESTSERVANT_BUILD_DLL */
-#else /* CSD_PT_TESTSERVANT_HAS_DLL == 1 */
-# define CSD_PT_TestServant_Export
-# define CSD_PT_TESTSERVANT_SINGLETON_DECLARATION(T)
-# define CSD_PT_TESTSERVANT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CSD_PT_TESTSERVANT_HAS_DLL == 1 */
-
-// Set CSD_PT_TESTSERVANT_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CSD_PT_TESTSERVANT_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CSD_PT_TESTSERVANT_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CSD_PT_TESTSERVANT_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CSD_PT_TESTSERVANT_NTRACE */
-
-#if (CSD_PT_TESTSERVANT_NTRACE == 1)
-# define CSD_PT_TESTSERVANT_TRACE(X)
-#else /* (CSD_PT_TESTSERVANT_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CSD_PT_TESTSERVANT_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CSD_PT_TESTSERVANT_NTRACE == 1) */
-
-#endif /* CSD_PT_TESTSERVANT_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo.idl b/TAO/performance-tests/CSD_Strategy/TestServant/Foo.idl
deleted file mode 100644
index 41663869082..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_IDL
-#define FOO_IDL
-
-#include "TestInf/FooException.idl"
-
-interface Foo
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, 1 "in" argument
- long op3(in long value);
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. The last client to claim that it is
- /// done will cause the server to shutdown.
- void done();
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.cpp b/TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.cpp
deleted file mode 100644
index a5f4212e47e..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-// $Id$
-#include "Foo_ClientEngine.h"
-#include "Foo_Statistics.h"
-#include "TestInf/TestAppExceptionC.h"
-#include "TestInf/AppHelper.h"
-#include "ace/Log_Msg.h"
-
-
-Foo_ClientEngine::Foo_ClientEngine(Foo_ptr obj, unsigned client_id)
- : obj_(Foo::_duplicate(obj)),
- client_id_(client_id)
-{
-}
-
-
-Foo_ClientEngine::~Foo_ClientEngine()
-{
-}
-
-
-bool
-Foo_ClientEngine::execute(unsigned num_loops ACE_ENV_ARG_DECL)
-{
- // Make sure the connection is established before making
- // remote invocations.
- if (AppHelper::validate_connection(this->obj_.in()) == false)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t)Foo_ClientEngine::execute - "
- "client %d connect failed.\n", this->client_id_));
- return false;
- }
-
- // Verify the return values and return the results.
- bool success = true;
-
- for (unsigned loop = 0; loop < num_loops; loop++)
- {
- CORBA::Long i = this->client_id_;
-
- this->obj_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- this->obj_->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- CORBA::Long value = this->obj_->op3(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- success = (value != i) ? false : success;
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- this->obj_->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- }
-
- bool caught_exception = false;
-
- ACE_TRY_NEW_ENV
- {
- this->obj_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- // Expected
- caught_exception = true;
- }
- ACE_ENDTRY;
-
- success = (!caught_exception) ? false : success;
- }
-
- this->obj_->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- return success;
-}
-
-
-void
-Foo_ClientEngine::expected_results(Foo_Statistics& stats)
-{
- stats.expected(1, 1);
- stats.expected(2, 1);
- stats.expected(3, 1);
- stats.expected(4, 0);
- stats.expected(4, 5);
- stats.expected(5, 1);
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.h b/TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.h
deleted file mode 100644
index c704a9a65cb..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_ClientEngine.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_CLIENT_ENGINE_H
-#define FOO_CLIENT_ENGINE_H
-
-#include "CSD_PT_TestServant_Export.h"
-#include "TestInf/ClientEngine.h"
-#include "FooC.h"
-
-class Foo_Statistics;
-
-
-class CSD_PT_TestServant_Export Foo_ClientEngine : public ClientEngine
-{
- public:
-
- Foo_ClientEngine(Foo_ptr obj, unsigned client_id = 0);
- virtual ~Foo_ClientEngine();
-
- virtual bool execute(unsigned num_loops ACE_ENV_ARG_DECL);
-
- static void expected_results(Foo_Statistics& stats);
-
-
- private:
-
- Foo_var obj_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.cpp b/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.cpp
deleted file mode 100644
index 6fe6e95fcff..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-// $Id$
-#include "Foo_Statistics.h"
-#include "Foo_ClientEngine.h"
-
-
-Foo_Statistics::Foo_Statistics()
- : num_clients_(0),
- num_loops_(0)
-{
- for (unsigned i = 0; i < 5; i++)
- {
- this->expected_[i] = 0;
- this->actual_[i] = 0;
- }
-}
-
-
-Foo_Statistics::~Foo_Statistics()
-{
-}
-
-
-void
-Foo_Statistics::init(unsigned num_clients, unsigned num_loops)
-{
- this->num_clients_ = num_clients;
- this->num_loops_ = num_loops;
-}
-
-
-void
-Foo_Statistics::expected(unsigned op_num, unsigned count)
-{
- this->expected_[op_num-1] = count * this->num_clients_ * this->num_loops_;
-}
-
-
-void
-Foo_Statistics::actual(unsigned op_num, unsigned count)
-{
- this->actual_[op_num-1] += count;
-}
-
-
-bool
-Foo_Statistics::actual_vs_expected()
-{
- for (unsigned i = 0; i < 5; i++)
- {
- if (this->expected_[i] != this->actual_[i])
- {
- ACE_DEBUG((LM_DEBUG,
- "Actual vs. Expected Results Failure: "
- "op%d() expected: %d, got: %d\n",
- i, this->expected_[i], this->actual_[i]));
- return false;
- }
- }
-
- return true;
-}
-
-
-unsigned
-Foo_Statistics::total() const
-{
- unsigned t = 0;
-
- for (unsigned i = 0 ; i < 5; i++)
- {
- t += this->expected_[i];
- }
-
- return t;
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h b/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h
deleted file mode 100644
index e864489f9b3..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_Statistics.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// $Id$
-#ifndef FOO_STATISTICS_H
-#define FOO_STATISTICS_H
-
-#include "CSD_PT_TestServant_Export.h"
-
-
-class CSD_PT_TestServant_Export Foo_Statistics
-{
- public:
-
- Foo_Statistics();
- virtual ~Foo_Statistics();
-
- void init(unsigned num_clients, unsigned num_loops);
-
- void expected(unsigned op_num, unsigned count);
- void actual(unsigned op_num, unsigned count);
-
- bool actual_vs_expected();
-
- unsigned total() const;
-
-
- private:
-
- unsigned num_clients_;
- unsigned num_loops_;
- unsigned expected_[5];
- unsigned actual_[5];
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp b/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp
deleted file mode 100644
index cbe2721a94d..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-// $Id$
-#include "Foo_i.h"
-#include "TestInf/AppShutdown.h"
-#include "ace/OS.h"
-#include "ace/Time_Value.h"
-
-
-
-
-Foo_i::Foo_i()
-{
- for (unsigned i = 0; i < 5; i++)
- {
- this->op_count_[i] = 0;
- }
-}
-
-
-Foo_i::~Foo_i()
-{
-}
-
-
-void
-Foo_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[0]++;
-}
-
-
-void
-Foo_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ACE_UNUSED_ARG(value);
- this->op_count_[1]++;
-}
-
-
-CORBA::Long
-Foo_i::op3(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[2]++;
- return value;
-}
-
-
-void
-Foo_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ACE_UNUSED_ARG(value);
- this->op_count_[3]++;
-}
-
-
-void
-Foo_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- this->op_count_[4]++;
- ACE_THROW (FooException());
-}
-
-
-void
-Foo_i::done(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- TheAppShutdown->client_done();
-}
-
-
-void
-Foo_i::gather_stats(Foo_Statistics& stats)
-{
- for (unsigned i = 0; i < 5; i++)
- {
- stats.actual(i + 1, this->op_count_[i]);
- }
-}
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.h b/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.h
deleted file mode 100644
index 47105f27393..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Foo_i.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#ifndef FOO_I_H
-#define FOO_I_H
-
-#include "CSD_PT_TestServant_Export.h"
-#include "FooS.h"
-#include "Foo_Statistics.h"
-
-
-class CSD_PT_TestServant_Export Foo_i : public virtual POA_Foo
-{
- public:
-
- Foo_i();
- virtual ~Foo_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException,
- FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
-
- void gather_stats(Foo_Statistics& stats);
-
-
- private:
-
- unsigned op_count_[5];
-};
-
-#endif
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/Makefile.am b/TAO/performance-tests/CSD_Strategy/TestServant/Makefile.am
deleted file mode 100644
index e2982e35d90..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/Makefile.am
+++ /dev/null
@@ -1,86 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.csd_pt_testservant.am
-
-BUILT_SOURCES = \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-CLEANFILES = \
- Foo-stamp \
- FooC.cpp \
- FooC.h \
- FooC.inl \
- FooS.cpp \
- FooS.h \
- FooS.inl \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl
-
-FooC.cpp FooC.h FooC.inl FooS.cpp FooS.h FooS.inl FooS_T.cpp FooS_T.h FooS_T.inl: Foo-stamp
-
-Foo-stamp: $(srcdir)/Foo.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/performance-tests/CSD_Strategy -Wb,export_macro=CSD_PT_TestServant_Export -Wb,export_include=CSD_PT_TestServant_Export.h $(srcdir)/Foo.idl
- @touch $@
-
-noinst_LTLIBRARIES = libCSD_PT_TestServant.la
-
-libCSD_PT_TestServant_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/performance-tests/CSD_Strategy \
- -I$(TAO_ROOT)/tao \
- -DCSD_PT_TESTSERVANT_BUILD_DLL
-
-libCSD_PT_TestServant_la_SOURCES = \
- FooC.cpp \
- FooS.cpp \
- Foo_ClientEngine.cpp \
- Foo_Statistics.cpp \
- Foo_i.cpp
-
-noinst_HEADERS = \
- Foo.idl \
- FooC.h \
- FooC.inl \
- FooS.h \
- FooS_T.cpp \
- FooS_T.h \
- FooS_T.inl \
- Foo_ClientEngine.h \
- Foo_Statistics.h \
- Foo_i.h
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/README b/TAO/performance-tests/CSD_Strategy/TestServant/README
deleted file mode 100644
index b8ccf09aaf1..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/README
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
-
-@page CSD_Strategy TestServant README File
-
- This is a library for the specific test. It contains test idl files, the
-servant implementaions, test statistics and the client task with sequence
-of remote invocations. Adding this library is to simplify the tests with
-multiple clients or collocated tests.
-
-*/
diff --git a/TAO/performance-tests/CSD_Strategy/TestServant/csd_pt_testservant.mpc b/TAO/performance-tests/CSD_Strategy/TestServant/csd_pt_testservant.mpc
deleted file mode 100644
index 543180258f2..00000000000
--- a/TAO/performance-tests/CSD_Strategy/TestServant/csd_pt_testservant.mpc
+++ /dev/null
@@ -1,20 +0,0 @@
-//$Id$
-project : csd_pt_testinf_lib {
- sharedname = CSD_PT_TestServant
- dynamicflags = CSD_PT_TESTSERVANT_BUILD_DLL
- idlflags += -Wb,export_macro=CSD_PT_TestServant_Export -Wb,export_include=CSD_PT_TestServant_Export.h
- includes += $(TAO_ROOT)/tao
-
- IDL_Files {
- Foo.idl
- }
-
- Source_Files {
- FooC.cpp
- FooS.cpp
- Foo_ClientEngine.cpp
- Foo_i.cpp
- Foo_Statistics.cpp
- }
-
-}
diff --git a/TAO/performance-tests/Callback/Makefile.am b/TAO/performance-tests/Callback/Makefile.am
index a0df7d1cdde..4d270500902 100644
--- a/TAO/performance-tests/Callback/Makefile.am
+++ b/TAO/performance-tests/Callback/Makefile.am
@@ -20,8 +20,6 @@ noinst_PROGRAMS =
## Makefile.Callback_Perf_IDL.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
callbackC.cpp \
callbackC.h \
@@ -52,15 +50,9 @@ callback-stamp: $(srcdir)/callback.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- callback.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Callback_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -89,13 +81,11 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Callback_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -124,7 +114,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Callback/client.cpp b/TAO/performance-tests/Callback/client.cpp
index ef0f50f3cc3..91ffb75cdac 100644
--- a/TAO/performance-tests/Callback/client.cpp
+++ b/TAO/performance-tests/Callback/client.cpp
@@ -48,7 +48,7 @@ private:
};
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
@@ -214,7 +214,7 @@ main (int argc, char *argv [])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hi:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hi:k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/performance-tests/Callback/server.cpp b/TAO/performance-tests/Callback/server.cpp
index 81ae5c39bd0..17a66239fe4 100644
--- a/TAO/performance-tests/Callback/server.cpp
+++ b/TAO/performance-tests/Callback/server.cpp
@@ -17,7 +17,7 @@ const char *ior_file_name = "test.ior";
static int parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
@@ -144,7 +144,7 @@ main (int argc, char *argv [])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile.am b/TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile.am
index f4c2289db91..8074da447ec 100644
--- a/TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile.am
+++ b/TAO/performance-tests/Cubit/TAO/DII_Cubit/Makefile.am
@@ -20,7 +20,6 @@ TAO_ROOT = $(top_srcdir)
## Makefile.DII_Cubit_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -80,7 +79,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Cubit/TAO/DII_Cubit/client.cpp b/TAO/performance-tests/Cubit/TAO/DII_Cubit/client.cpp
index a5db0ce0523..9d1465095ef 100644
--- a/TAO/performance-tests/Cubit/TAO/DII_Cubit/client.cpp
+++ b/TAO/performance-tests/Cubit/TAO/DII_Cubit/client.cpp
@@ -20,7 +20,7 @@
#include "tao/DynamicInterface/Request.h"
#include "tao/debug.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "ace/Profile_Timer.h"
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
@@ -261,7 +261,7 @@ DII_Cubit_Client::init (int argc, char **argv)
int
DII_Cubit_Client::parse_args (void)
{
- ACE_Get_Opt opts (argc_, argv_, "dn:i:f:x");
+ ACE_Get_Arg_Opt<char> opts (argc_, argv_, "dn:i:f:x");
int c;
int result;
@@ -849,7 +849,7 @@ DII_Cubit_Client::run (void)
// Start the test.
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
DII_Cubit_Client cubit_client;
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp
index a1cb973c59d..fc622198ec4 100644
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Client.cpp
@@ -216,7 +216,7 @@ Cubit_Client::read_ior (const char *filename)
int
Cubit_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "b:t:z:ovdn:f:k:xsq");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "b:t:z:ovdn:f:k:xsq");
int c = 0;
int result = 0;
u_int test_mask = 0;
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp
index 2d7ef27249d..da89e69eb6c 100644
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp
@@ -20,7 +20,7 @@ Cubit_Server::Cubit_Server (void)
int
Cubit_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "df:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am
index 1103c5692da..159763f75ca 100644
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.IDL_Cubit_IDL.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
cubitC.cpp \
cubitC.h \
@@ -52,16 +48,9 @@ cubit-stamp: $(srcdir)/cubit.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- cubit.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.IDL_Cubit_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -84,12 +73,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.IDL_Cubit_Collocation.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += collocation_test
collocation_test_CPPFLAGS = \
@@ -121,12 +106,8 @@ collocation_test_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.IDL_Cubit_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -158,8 +139,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.cpp
index 16fad32ff86..65dc11c07b5 100644
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.cpp
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/client.cpp
@@ -1,11 +1,10 @@
// $Id$
#include "ace/config-all.h"
-
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# undef ACE_MAIN
# define ACE_MAIN client
-#endif /* ACE_VXWORKS && !__RTP__ */
+#endif /* VXWORKS */
#include "Cubit_Client.h"
#include "tao/Timeprobe.h"
@@ -19,7 +18,7 @@ ACE_RCSID(IDL_Cubit, client, "$Id$")
// This function runs the client test.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp
index 389f51d958d..740b4ae7174 100644
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/collocation_test.cpp
@@ -73,9 +73,9 @@ svr_worker (void *arg)
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "s:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "s:c:");
int c = -1;
const char *client_cmd = 0;
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.cpp
index f28cd411ef0..d80f66f2945 100644
--- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.cpp
+++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/server.cpp
@@ -1,11 +1,10 @@
// $Id$
#include "ace/config-all.h"
-
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# undef ACE_MAIN
# define ACE_MAIN server
-#endif /* ACE_VXWORKS && !__RTP__ */
+#endif /* VXWORKS */
#include "Cubit_Server.h"
#include "tao/Timeprobe.h"
@@ -25,7 +24,7 @@ ACE_RCSID(IDL_Cubit, server, "$Id$")
// This runs the server test.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority = ACE_THR_PRI_FIFO_DEF;
priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
index c8408545aac..dbc9deab6d7 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.cpp
@@ -26,7 +26,7 @@ Globals::Globals (void)
int
Globals::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "e:t:f:rm");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "e:t:f:rm");
int c;
while ((c = opts ()) != -1)
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h
index 171458e98d7..cfc4b638fee 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Globals.h
@@ -104,9 +104,7 @@ argv = force_argv;
// A constant to avoid the utility thread blocking the machine and to
// bound its number of computations.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Barrier;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Globals
{
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile.am b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile.am
index 9c0afc358a7..c016b42aace 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile.am
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.MT_Cubit_IDL.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
cubitC.cpp \
cubitC.h \
@@ -52,16 +48,9 @@ cubit-stamp: $(srcdir)/cubit.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- cubit.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.MT_Cubit_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -97,12 +86,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.MT_Cubit_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -135,8 +120,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp
index 876035b66dc..5f05114936d 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Task_Client.cpp
@@ -59,7 +59,7 @@ Task_State::Task_State (void)
int
Task_State::parse_args (int argc,char *argv[])
{
- ACE_Get_Opt opts (argc, argv, "mu:n:t:d:rxof:g:1cl");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "mu:n:t:d:rxof:g:1cl");
int c;
while ((c = opts ()) != -1)
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp
index e0d97da8166..9a739b662cb 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/client.cpp
@@ -1,11 +1,10 @@
// $Id$
#include "ace/config-all.h"
-
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# undef ACE_MAIN
# define ACE_MAIN client
-#endif /* ACE_VXWORKS && !__RTP__ */
+#endif /* VXWORKS */
#include "ace/Sched_Params.h"
#include "tao/Strategies/advanced_resource.h"
@@ -20,7 +19,7 @@
ACE_RCSID(MT_Cubit, client, "$Id$")
-#if defined (ACE_VXWORKS) && !defined (__RTP__) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS)
u_int ctx = 0;
u_int ct = 0;
@@ -46,23 +45,22 @@ switchHook (WIND_TCB *pOldTcb, // pointer to old task's WIND_TCB.
ACE_UNUSED_ARG (pOldTcb);
// We create the client threads with names starting with "@".
- char* name = ::taskName (::taskIdSelf ());
- if (name[0] == '@')
- ++ctx;
+ if (pNewTcb->name[0] == '@')
+ ctx++;
if (ct < SWITCHES)
{
ACE_OS::strncpy (tInfo[ct].name,
- name,
+ pNewTcb->name,
TASKNAME_LEN);
tInfo[ct].tcb = pNewTcb;
tInfo[ct].pc = pNewTcb->regs.pc;
- ++ct;
+ ct++;
}
return 0;
}
-#endif /* ACE_VXWORKS && !__RTP__ && !ACE_HAS_PTHREADS */
+#endif /* VXWORKS */
// Constructor.
@@ -121,7 +119,7 @@ Client_i::init (int argc, char *argv[])
// Preliminary argument processing.
for (int i=0;
i< this->argc_;
- ++i)
+ i++)
{
if (ACE_OS::strcmp (this->argv_[i],"-r") == 0)
this->ts_->thread_per_rate_ = 1;
@@ -151,7 +149,7 @@ Client_i::run (void)
this->do_thread_per_rate_test ();
}
-#if defined (ACE_VXWORKS) && !defined (__RTP__) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS)
void
Client_i::output_taskinfo (void)
{
@@ -168,7 +166,7 @@ Client_i::output_taskinfo (void)
// This loop visits each client. thread_count_ is the number of
// clients.
- for (u_int j = 0; j < SWITCHES; ++j)
+ for (u_int j = 0; j < SWITCHES; j ++)
ACE_OS::fprintf(file_handle,
"\tname= %s\ttcb= %p\tpc= %p\n",
tInfo[j].name,
@@ -177,7 +175,7 @@ Client_i::output_taskinfo (void)
ACE_OS::fclose (file_handle);
}
-#endif /* ACE_VXWORKS && !__RTP__ && !ACE_HAS_PTHREADS */
+#endif /* VXWORKS */
void
Client_i::get_context_switches (void)
@@ -196,14 +194,14 @@ Client_i::get_context_switches (void)
}
#endif /* ACE_HAS_PRUSAGE_T || ACE_HAS_GETRUSAGE */
-#if defined (ACE_VXWORKS) && !defined (__RTP__) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS)
if (this->ts_->context_switch_test_ == 1)
{
ACE_DEBUG ((LM_DEBUG,
"Adding the context switch hook!\n"));
taskSwitchHookAdd ((FUNCPTR) &switchHook);
}
-#endif /* ACE_VXWORKS && !__RTP__ */
+#endif /* VXWORKS */
}
void
@@ -227,7 +225,7 @@ Client_i::output_latency (void)
// clients.
for (u_int j = 0;
j < this->ts_->thread_count_;
- ++j)
+ j++)
{
ACE_OS::sprintf(buffer,
"%s #%d",
@@ -304,7 +302,7 @@ Client_i::calc_util_time (void)
#else
for (u_int i = 0;
i < NUM_UTIL_COMPUTATIONS;
- ++i)
+ i++)
this->util_thread_->computation ();
timer.stop ();
@@ -323,12 +321,12 @@ Client_i::activate_high_client (void)
0),
-1);
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
// Set a task_id string starting with "@", so we are able to
// accurately count the number of context switches.
ACE_OS::strcpy (this->task_id_,
"@High");
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
this->high_priority_ =
this->priority_.get_high_priority ();
@@ -388,7 +386,7 @@ Client_i::activate_low_client (void)
this->argv_,
i),
-1);
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
// Pace the connection establishment on VxWorks.
const ACE_Time_Value delay (0L, 500000L);
ACE_OS::sleep (delay);
@@ -398,7 +396,7 @@ Client_i::activate_low_client (void)
sprintf (this->task_id_,
"@Low%u",
i);
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
ACE_DEBUG ((LM_DEBUG,
"Creating client with thread ID %d and priority %d\n",
i,
@@ -501,7 +499,7 @@ Client_i:: print_context_stats (void)
"Voluntary context switches=%d, Involuntary context switches=%d\n",
this->usage.ru_nvcsw,
this->usage.ru_nivcsw));
-#elif defined (ACE_VXWORKS) && !defined (__RTP__) && !defined (ACE_HAS_PTHREADS)
+#elif defined (VXWORKS) /* ACE_HAS_GETRUSAGE */
taskSwitchHookDelete ((FUNCPTR) &switchHook);
ACE_DEBUG ((LM_DEBUG,
"Context switches=%d\n",
@@ -516,7 +514,7 @@ Client_i::print_latency_stats (void)
// If running the utilization test, don't report latency nor jitter.
if (this->ts_->use_utilization_test_ == 0)
{
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
ACE_DEBUG ((LM_DEBUG,
"Test done.\n"
"High priority client latency : %f usec, jitter: %f usec\n"
@@ -549,7 +547,7 @@ Client_i::print_latency_stats (void)
this->low_priority_client_[0]->get_low_priority_latency (),
this->low_priority_client_[0]->get_low_priority_jitter ()));
// output_latency ();
-#endif /* !ACE_VXWORKS && !CHORUS_MVME */
+#endif /* !VXWORKS && !CHORUS_MVME */
}
}
@@ -636,14 +634,12 @@ int
Client_i::do_priority_inversion_test (void)
{
this->timer_.start ();
-#if defined (ACE_VXWORKS)
-# if !defined (__RTP__) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS)
ctx = 0;
-# endif
ACE_NEW_RETURN (this->task_id_,
char[TASK_ID_LEN],
-1);
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
ACE_DEBUG ((LM_DEBUG,
"(%P|%t) <<<<<<< starting test on %D\n"));
GLOBALS::instance ()->num_of_objs = 1;
@@ -840,7 +836,7 @@ Client_i::do_thread_per_rate_test (void)
// metrics and print them.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Log_Msg::instance()->clr_flags (ACE_Log_Msg::LOGGER);
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp b/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp
index 9235f275e82..8ea6e1f423a 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/server.cpp
@@ -17,11 +17,10 @@
// ============================================================================
#include "ace/config-all.h"
-
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# undef ACE_MAIN
# define ACE_MAIN server
-#endif /* ACE_VXWORKS && !__RTP__ */
+#endif /* VXWORKS */
#include "server.h"
#include "ace/Sched_Params.h"
@@ -370,7 +369,7 @@ Server::start_servants (void)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int result;
diff --git a/TAO/performance-tests/DII_Latency/Roundtrip.cpp b/TAO/performance-tests/DII_Latency/Roundtrip.cpp
deleted file mode 100644
index df15cd65d8a..00000000000
--- a/TAO/performance-tests/DII_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-
-ACE_RCSID(DII_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return send_time;
-}
-
-void
-Roundtrip::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/performance-tests/DII_Latency/Roundtrip.h b/TAO/performance-tests/DII_Latency/Roundtrip.h
deleted file mode 100644
index 6474b130a24..00000000000
--- a/TAO/performance-tests/DII_Latency/Roundtrip.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual POA_Test::Roundtrip
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/DII_Latency/client.cpp b/TAO/performance-tests/DII_Latency/client.cpp
deleted file mode 100644
index 57935526269..00000000000
--- a/TAO/performance-tests/DII_Latency/client.cpp
+++ /dev/null
@@ -1,178 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-#include "ace/Sample_History.h"
-
-#include "tao/Strategies/advanced_resource.h"
-#include "tao/DynamicInterface/Request.h"
-
-ACE_RCSID(DII_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int niterations = 100;
-int do_dump_history = 0;
-int do_shutdown = 1;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'h':
- do_dump_history = 1;
- break;
-
- case 'x':
- do_shutdown = 0;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-x (disable shutdown) "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "client (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "client (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (object.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil CORBA::Object reference <%s>\n",
- ior),
- 1);
- }
-
- for (int j = 0; j < 100; ++j)
- {
- CORBA::Request_var request =
- object->_request ("test_method" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ULongLong dummy = 0;
- request->add_in_arg("send_time") <<= dummy;
-
- request->set_return_type (CORBA::_tc_ulonglong);
- request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_Sample_History history (niterations);
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
- for (int i = 0; i < niterations; ++i)
- {
- CORBA::ULongLong start = ACE_OS::gethrtime ();
-
- CORBA::Request_var request =
- object->_request ("test_method" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- request->add_in_arg("send_time") <<= start;
-
- request->set_return_type (CORBA::_tc_ulonglong);
- request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- history.sample (now - start);
- }
-
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "test finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- if (do_dump_history)
- {
- history.dump_samples ("HISTORY", gsf);
- }
-
- ACE_Basic_Stats stats;
- history.collect_basic_stats (stats);
- stats.dump_results ("Total", gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- stats.samples_count ());
-
- if (do_shutdown)
- {
- CORBA::Request_var request =
- object->_request ("shutdown" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/DII_Latency/server.cpp b/TAO/performance-tests/DII_Latency/server.cpp
deleted file mode 100644
index e96f0ff595a..00000000000
--- a/TAO/performance-tests/DII_Latency/server.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Single_Threaded_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/DSI_Latency/Roundtrip.cpp b/TAO/performance-tests/DSI_Latency/Roundtrip.cpp
deleted file mode 100644
index 6de5cfe047a..00000000000
--- a/TAO/performance-tests/DSI_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,97 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-#include "tao/DynamicInterface/Server_Request.h"
-
-ACE_RCSID(Single_Threaded_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-void
-Roundtrip::invoke (CORBA::ServerRequest_ptr request
- ACE_ENV_ARG_DECL)
-{
- if (ACE_OS::strcmp ("shutdown", request->operation ()) == 0)
- {
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- return;
- }
-
- else if (ACE_OS::strcmp ("_is_a", request->operation ()) == 0)
- {
- CORBA::NVList_ptr list;
- this->orb_->create_list (0, list ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Any type_id (CORBA::_tc_string);
- list->add_value ("type_id", type_id, CORBA::ARG_IN
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- request->arguments (list ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::NamedValue_ptr nv = list->item (0 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- const char *arg;
- *(nv->value ()) >>= arg;
-
- CORBA::Boolean type_matches = 0;
- if (ACE_OS::strcmp (arg, "IDL:Test/Roundtrip:1.0") == 0
- || ACE_OS::strcmp (arg, "IDL:omg.org/CORBA/Object:1.0") == 0
- || ACE_OS::strcmp (arg, "") == 0)
- type_matches = 1;
-
- CORBA::Any result;
- result <<= CORBA::Any::from_boolean (type_matches);
-
- request->set_result (result ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- return;
- }
-
- else if (ACE_OS::strcmp ("test_method", request->operation ()) == 0)
- {
- CORBA::NVList_ptr list;
- this->orb_->create_list (0, list ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Any send_time (CORBA::_tc_ulonglong);
- list->add_value ("send_time", send_time, CORBA::ARG_IN
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- request->arguments (list ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::NamedValue_ptr nv = list->item (0 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- request->set_result (*(nv->value ()) ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- return;
- }
-
- CORBA::Any bad_operation;
- CORBA::BAD_OPERATION exception;
- bad_operation <<= exception;
- request->set_exception (bad_operation ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-CORBA::RepositoryId
-Roundtrip::_primary_interface (const PortableServer::ObjectId &,
- PortableServer::POA_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
-{
- return CORBA::string_dup ("IDL:Test/Roundtrip:1.0");
-}
diff --git a/TAO/performance-tests/DSI_Latency/Roundtrip.h b/TAO/performance-tests/DSI_Latency/Roundtrip.h
deleted file mode 100644
index b57cedc6f2d..00000000000
--- a/TAO/performance-tests/DSI_Latency/Roundtrip.h
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "tao/DynamicInterface/Dynamic_Implementation.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/corba.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual PortableServer::DynamicImplementation
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The DSI methods
- virtual void invoke (CORBA::ServerRequest_ptr request
- ACE_ENV_ARG_DECL);
- virtual CORBA::RepositoryId _primary_interface (
- const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL);
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/DSI_Latency/client.cpp b/TAO/performance-tests/DSI_Latency/client.cpp
deleted file mode 100644
index 2a264e91b43..00000000000
--- a/TAO/performance-tests/DSI_Latency/client.cpp
+++ /dev/null
@@ -1,163 +0,0 @@
-// $Id$
-
-#include "TestC.h"
-#include "ace/Get_Opt.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-#include "ace/Sample_History.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(DSI_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int niterations = 100;
-int do_dump_history = 0;
-int do_shutdown = 1;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'h':
- do_dump_history = 1;
- break;
-
- case 'x':
- do_shutdown = 0;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-x (disable shutdown) "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "client (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "client (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
- }
-
- for (int j = 0; j < 100; ++j)
- {
- ACE_hrtime_t start = 0;
- (void) roundtrip->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_Sample_History history (niterations);
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
- for (int i = 0; i < niterations; ++i)
- {
- ACE_hrtime_t start = ACE_OS::gethrtime ();
-
- (void) roundtrip->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- history.sample (now - start);
- }
-
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "test finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- if (do_dump_history)
- {
- history.dump_samples ("HISTORY", gsf);
- }
-
- ACE_Basic_Stats stats;
- history.collect_basic_stats (stats);
- stats.dump_results ("Total", gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- stats.samples_count ());
-
- if (do_shutdown)
- {
- roundtrip->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/DSI_Latency/server.cpp b/TAO/performance-tests/DSI_Latency/server.cpp
deleted file mode 100644
index ebc70ade1d7..00000000000
--- a/TAO/performance-tests/DSI_Latency/server.cpp
+++ /dev/null
@@ -1,142 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(DSI_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- PortableServer::ObjectId_var oid =
- root_poa->activate_object (roundtrip_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var roundtrip =
- root_poa->id_to_reference (oid.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp b/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp
deleted file mode 100644
index 72f83576b44..00000000000
--- a/TAO/performance-tests/Deferred_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-
-ACE_RCSID(Single_Threaded_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return send_time;
-}
-
-void
-Roundtrip::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/performance-tests/Deferred_Latency/Roundtrip.h b/TAO/performance-tests/Deferred_Latency/Roundtrip.h
deleted file mode 100644
index 6474b130a24..00000000000
--- a/TAO/performance-tests/Deferred_Latency/Roundtrip.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual POA_Test::Roundtrip
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/Deferred_Latency/client.cpp b/TAO/performance-tests/Deferred_Latency/client.cpp
deleted file mode 100644
index 8aa94d94172..00000000000
--- a/TAO/performance-tests/Deferred_Latency/client.cpp
+++ /dev/null
@@ -1,203 +0,0 @@
-// $Id$
-
-#include "TestC.h"
-
-#include "tao/DynamicInterface/Request.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-#include "ace/Sample_History.h"
-
-ACE_RCSID(Deferred_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int niterations = 1000;
-int burst = 10;
-int do_shutdown = 1;
-int do_dump_history = 0;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:b:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'h':
- do_dump_history = 1;
- break;
-
- case 'x':
- do_shutdown = 0;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case 'b':
- burst = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-b <burst> "
- "-x (disable shutdown) "
- "-h (dump history) "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "client (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "client (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
- }
-
- for (int j = 0; j < 100; ++j)
- {
- ACE_hrtime_t start = 0;
- (void) roundtrip->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_Sample_History history (niterations);
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
-
- CORBA::Request_var *request;
- ACE_NEW_RETURN (request, CORBA::Request_var[burst], 1);
-
- for (int i = 0; i < niterations; ++i)
- {
- int j;
-
- for (j = 0; j != burst; ++j)
- {
- CORBA::ULongLong start = ACE_OS::gethrtime ();
-
- request[j] =
- roundtrip->_request ("test_method"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- request[j]->add_in_arg () <<= start;
- request[j]->set_return_type (CORBA::_tc_ulonglong);
-
- request[j]->send_deferred (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- for (j = 0; j != burst; ++j)
- {
- request[j]->get_response (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ULongLong retval;
- if ((request[j]->return_value () >>= retval) == 1)
- {
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- history.sample (now - retval);
- }
- }
- }
- delete[] request;
-
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "test finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- if (do_dump_history)
- {
- history.dump_samples ("HISTORY", gsf);
- }
-
- ACE_Basic_Stats stats;
- history.collect_basic_stats (stats);
- stats.dump_results ("Total", gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- stats.samples_count ());
-
- if (do_shutdown)
- {
- roundtrip->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Deferred_Latency/server.cpp b/TAO/performance-tests/Deferred_Latency/server.cpp
deleted file mode 100644
index e96f0ff595a..00000000000
--- a/TAO/performance-tests/Deferred_Latency/server.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Single_Threaded_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Latency/AMH_Single_Threaded/Makefile.am b/TAO/performance-tests/Latency/AMH_Single_Threaded/Makefile.am
index 8afb1630f44..60170a2336d 100644
--- a/TAO/performance-tests/Latency/AMH_Single_Threaded/Makefile.am
+++ b/TAO/performance-tests/Latency/AMH_Single_Threaded/Makefile.am
@@ -52,15 +52,11 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif BUILD_CORBA_MESSAGING
## Makefile.Single_Threaded_AMH_Latency_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -86,13 +82,11 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Single_Threaded_AMH_Latency_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -120,7 +114,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Latency/AMH_Single_Threaded/client.cpp b/TAO/performance-tests/Latency/AMH_Single_Threaded/client.cpp
index 00a51f7de75..37fbacfd3b7 100644
--- a/TAO/performance-tests/Latency/AMH_Single_Threaded/client.cpp
+++ b/TAO/performance-tests/Latency/AMH_Single_Threaded/client.cpp
@@ -20,7 +20,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -59,7 +59,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/AMH_Single_Threaded/server.cpp b/TAO/performance-tests/Latency/AMH_Single_Threaded/server.cpp
index a76449261c5..67d6beb26ed 100644
--- a/TAO/performance-tests/Latency/AMH_Single_Threaded/server.cpp
+++ b/TAO/performance-tests/Latency/AMH_Single_Threaded/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/AMI/Makefile.am b/TAO/performance-tests/Latency/AMI/Makefile.am
index e7bf3bf2021..738adcfac9c 100644
--- a/TAO/performance-tests/Latency/AMI/Makefile.am
+++ b/TAO/performance-tests/Latency/AMI/Makefile.am
@@ -53,9 +53,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -63,7 +60,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -91,7 +87,6 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -99,7 +94,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -129,7 +123,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.cpp b/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.cpp
index e2107878934..62d29914e6c 100644
--- a/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.cpp
+++ b/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.cpp
@@ -28,21 +28,21 @@ Roundtrip_Handler::test_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -59,13 +59,13 @@ Roundtrip_Handler::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-Roundtrip_Handler::shutdown_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::shutdown_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.h b/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.h
index 213377e6629..4c944306dbb 100644
--- a/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.h
+++ b/TAO/performance-tests/Latency/AMI/Roundtrip_Handler.h
@@ -32,13 +32,13 @@ public:
virtual void test_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_method_excep (::Messaging::ExceptionHolder *holder
+ virtual void test_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown_excep (::Messaging::ExceptionHolder *holder
+ virtual void shutdown_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/performance-tests/Latency/AMI/client.cpp b/TAO/performance-tests/Latency/AMI/client.cpp
index ac678fc1a15..5ce43c9feb8 100644
--- a/TAO/performance-tests/Latency/AMI/client.cpp
+++ b/TAO/performance-tests/Latency/AMI/client.cpp
@@ -19,7 +19,7 @@ int niterations = 1000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -50,7 +50,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/AMI/server.cpp b/TAO/performance-tests/Latency/AMI/server.cpp
index 9aefa38f531..e32ae697223 100644
--- a/TAO/performance-tests/Latency/AMI/server.cpp
+++ b/TAO/performance-tests/Latency/AMI/server.cpp
@@ -16,7 +16,7 @@ int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -45,7 +45,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Collocation/Collocated_Test.cpp b/TAO/performance-tests/Latency/Collocation/Collocated_Test.cpp
index f4c6d4c2719..deb43edaebc 100644
--- a/TAO/performance-tests/Latency/Collocation/Collocated_Test.cpp
+++ b/TAO/performance-tests/Latency/Collocation/Collocated_Test.cpp
@@ -14,7 +14,7 @@ int niterations = 250000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -59,7 +59,7 @@ set_priority()
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
//Use Real-time Scheduling class if possible
set_priority();
diff --git a/TAO/performance-tests/Latency/Collocation/Makefile.am b/TAO/performance-tests/Latency/Collocation/Makefile.am
index 9858763cf65..1f423180146 100644
--- a/TAO/performance-tests/Latency/Collocation/Makefile.am
+++ b/TAO/performance-tests/Latency/Collocation/Makefile.am
@@ -16,11 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-
## Makefile.Latency_Collocation.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -81,8 +78,6 @@ Collocated_Test_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Latency/DII/Makefile.am b/TAO/performance-tests/Latency/DII/Makefile.am
index e0d7b1a2c7b..cc387fffbc9 100644
--- a/TAO/performance-tests/Latency/DII/Makefile.am
+++ b/TAO/performance-tests/Latency/DII/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
## Makefile.DII_Latency_Idl.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -53,16 +52,11 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.DII_Latency_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -91,12 +85,10 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.DII_Latency_Server.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -122,7 +114,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/performance-tests/Latency/DII/client.cpp b/TAO/performance-tests/Latency/DII/client.cpp
index 7bc5b0b292f..fdd792a8ed4 100644
--- a/TAO/performance-tests/Latency/DII/client.cpp
+++ b/TAO/performance-tests/Latency/DII/client.cpp
@@ -2,8 +2,7 @@
#include "tao/DynamicInterface/Request.h"
#include "tao/Strategies/advanced_resource.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "ace/Get_Opt.h"
#include "ace/High_Res_Timer.h"
@@ -24,7 +23,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -62,7 +61,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
@@ -130,8 +129,7 @@ main (int argc, char *argv[])
object->_request ("test_method" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::ULongLong start_time = static_cast <CORBA::ULongLong> (start);
- request->add_in_arg("send_time") <<= start_time;
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/performance-tests/Latency/DII/server.cpp b/TAO/performance-tests/Latency/DII/server.cpp
index a76449261c5..67d6beb26ed 100644
--- a/TAO/performance-tests/Latency/DII/server.cpp
+++ b/TAO/performance-tests/Latency/DII/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/DSI/Makefile.am b/TAO/performance-tests/Latency/DSI/Makefile.am
index 1cb8b848ae5..8e04abd130b 100644
--- a/TAO/performance-tests/Latency/DSI/Makefile.am
+++ b/TAO/performance-tests/Latency/DSI/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
## Makefile.DSI_Latency_Client.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -74,12 +73,10 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.DSI_Latency_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -108,7 +105,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Latency/DSI/Roundtrip.cpp b/TAO/performance-tests/Latency/DSI/Roundtrip.cpp
index 5cd2f655186..d822a3588e0 100644
--- a/TAO/performance-tests/Latency/DSI/Roundtrip.cpp
+++ b/TAO/performance-tests/Latency/DSI/Roundtrip.cpp
@@ -2,7 +2,7 @@
// $Id$
//
#include "Roundtrip.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "tao/AnyTypeCode/NVList.h"
#include "tao/AnyTypeCode/SystemExceptionA.h"
#include "tao/DynamicInterface/Server_Request.h"
diff --git a/TAO/performance-tests/Latency/DSI/client.cpp b/TAO/performance-tests/Latency/DSI/client.cpp
index e4460d924b3..f7f6f6e1bc2 100644
--- a/TAO/performance-tests/Latency/DSI/client.cpp
+++ b/TAO/performance-tests/Latency/DSI/client.cpp
@@ -20,7 +20,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -58,7 +58,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/DSI/server.cpp b/TAO/performance-tests/Latency/DSI/server.cpp
index e986310ab43..967c3737022 100644
--- a/TAO/performance-tests/Latency/DSI/server.cpp
+++ b/TAO/performance-tests/Latency/DSI/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Deferred/Makefile.am b/TAO/performance-tests/Latency/Deferred/Makefile.am
index 08063e1071e..5872d16a982 100644
--- a/TAO/performance-tests/Latency/Deferred/Makefile.am
+++ b/TAO/performance-tests/Latency/Deferred/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
## Makefile.Deferred_Latency_Idl.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -53,16 +52,11 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.Deferred_Latency_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -91,12 +85,10 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Deferred_Latency_Server.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -122,7 +114,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/performance-tests/Latency/Deferred/client.cpp b/TAO/performance-tests/Latency/Deferred/client.cpp
index e7bd528901c..7cd07a80e6d 100644
--- a/TAO/performance-tests/Latency/Deferred/client.cpp
+++ b/TAO/performance-tests/Latency/Deferred/client.cpp
@@ -5,7 +5,7 @@
#include "TestC.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "tao/Strategies/advanced_resource.h"
@@ -30,7 +30,7 @@ int do_dump_history = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:b:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:b:");
int c;
while ((c = get_opts ()) != -1)
@@ -74,7 +74,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Deferred/server.cpp b/TAO/performance-tests/Latency/Deferred/server.cpp
index a76449261c5..67d6beb26ed 100644
--- a/TAO/performance-tests/Latency/Deferred/server.cpp
+++ b/TAO/performance-tests/Latency/Deferred/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Single_Threaded/Makefile.am b/TAO/performance-tests/Latency/Single_Threaded/Makefile.am
index 9c3d5abefc3..707e24f9774 100644
--- a/TAO/performance-tests/Latency/Single_Threaded/Makefile.am
+++ b/TAO/performance-tests/Latency/Single_Threaded/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Single_Threaded_Latency_Idl.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -52,16 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Single_Threaded_Latency_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -80,12 +69,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Single_Threaded_Latency_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -108,8 +93,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Latency/Single_Threaded/client.cpp b/TAO/performance-tests/Latency/Single_Threaded/client.cpp
index 00a51f7de75..37fbacfd3b7 100644
--- a/TAO/performance-tests/Latency/Single_Threaded/client.cpp
+++ b/TAO/performance-tests/Latency/Single_Threaded/client.cpp
@@ -20,7 +20,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -59,7 +59,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Single_Threaded/server.cpp b/TAO/performance-tests/Latency/Single_Threaded/server.cpp
index a76449261c5..67d6beb26ed 100644
--- a/TAO/performance-tests/Latency/Single_Threaded/server.cpp
+++ b/TAO/performance-tests/Latency/Single_Threaded/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Thread_Per_Connection/Makefile.am b/TAO/performance-tests/Latency/Thread_Per_Connection/Makefile.am
index c87572d671c..6463d9143d7 100644
--- a/TAO/performance-tests/Latency/Thread_Per_Connection/Makefile.am
+++ b/TAO/performance-tests/Latency/Thread_Per_Connection/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Thread_Per_Connection_Latency_Idl.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -52,16 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Per_Connection_Latency_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -81,12 +70,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Per_Connection_Latency_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -109,8 +94,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Latency/Thread_Per_Connection/client.cpp b/TAO/performance-tests/Latency/Thread_Per_Connection/client.cpp
index fcc91075b87..76995b229bd 100644
--- a/TAO/performance-tests/Latency/Thread_Per_Connection/client.cpp
+++ b/TAO/performance-tests/Latency/Thread_Per_Connection/client.cpp
@@ -18,7 +18,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -52,7 +52,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp b/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp
index 26f9ed145c8..3b08c934984 100644
--- a/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp
+++ b/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Thread_Pool/Makefile.am b/TAO/performance-tests/Latency/Thread_Pool/Makefile.am
index a08853e641b..15b6ba7cab0 100644
--- a/TAO/performance-tests/Latency/Thread_Pool/Makefile.am
+++ b/TAO/performance-tests/Latency/Thread_Pool/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Thread_Pool_Latency_Idl.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -52,16 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Pool_Latency_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -81,12 +70,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Pool_Latency_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -111,8 +96,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Latency/Thread_Pool/client.cpp b/TAO/performance-tests/Latency/Thread_Pool/client.cpp
index bb830e88a0f..9053276eed0 100644
--- a/TAO/performance-tests/Latency/Thread_Pool/client.cpp
+++ b/TAO/performance-tests/Latency/Thread_Pool/client.cpp
@@ -18,7 +18,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -52,7 +52,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Latency/Thread_Pool/server.cpp b/TAO/performance-tests/Latency/Thread_Pool/server.cpp
index 11acf78a42d..8bd983e6f69 100644
--- a/TAO/performance-tests/Latency/Thread_Pool/server.cpp
+++ b/TAO/performance-tests/Latency/Thread_Pool/server.cpp
@@ -15,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +39,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Memory/IORsize/Makefile.am b/TAO/performance-tests/Memory/IORsize/Makefile.am
index ffce484cf28..bbf4884e1aa 100644
--- a/TAO/performance-tests/Memory/IORsize/Makefile.am
+++ b/TAO/performance-tests/Memory/IORsize/Makefile.am
@@ -48,9 +48,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Memory_IORsize_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/performance-tests/Memory/IORsize/client.cpp b/TAO/performance-tests/Memory/IORsize/client.cpp
index f883c9d7749..87b90e674b6 100644
--- a/TAO/performance-tests/Memory/IORsize/client.cpp
+++ b/TAO/performance-tests/Memory/IORsize/client.cpp
@@ -12,7 +12,7 @@ static int n = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,7 +40,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/Memory/IORsize/server.cpp b/TAO/performance-tests/Memory/IORsize/server.cpp
index 712dafdf097..305de0b1de3 100644
--- a/TAO/performance-tests/Memory/IORsize/server.cpp
+++ b/TAO/performance-tests/Memory/IORsize/server.cpp
@@ -13,7 +13,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,7 +37,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/Memory/Single_Threaded/Makefile.am b/TAO/performance-tests/Memory/Single_Threaded/Makefile.am
index b1dd193f551..30e45e924ba 100644
--- a/TAO/performance-tests/Memory/Single_Threaded/Makefile.am
+++ b/TAO/performance-tests/Memory/Single_Threaded/Makefile.am
@@ -48,9 +48,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Memory_Growth_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/performance-tests/Memory/Single_Threaded/client.cpp b/TAO/performance-tests/Memory/Single_Threaded/client.cpp
index 50c39fc24fd..f5b2b16f7da 100644
--- a/TAO/performance-tests/Memory/Single_Threaded/client.cpp
+++ b/TAO/performance-tests/Memory/Single_Threaded/client.cpp
@@ -10,7 +10,7 @@ static int n = 100;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/Memory/Single_Threaded/server.cpp b/TAO/performance-tests/Memory/Single_Threaded/server.cpp
index 712dafdf097..305de0b1de3 100644
--- a/TAO/performance-tests/Memory/Single_Threaded/server.cpp
+++ b/TAO/performance-tests/Memory/Single_Threaded/server.cpp
@@ -13,7 +13,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,7 +37,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/POA/Create_Reference/Create_Reference.mpc b/TAO/performance-tests/POA/Create_Reference/Create_Reference.mpc
index e0d5963b3d2..ef17b715328 100644
--- a/TAO/performance-tests/POA/Create_Reference/Create_Reference.mpc
+++ b/TAO/performance-tests/POA/Create_Reference/Create_Reference.mpc
@@ -2,6 +2,5 @@
// $Id$
project: taoserver {
- avoids += ace_for_tao
exename = create_reference
}
diff --git a/TAO/performance-tests/POA/Create_Reference/Makefile.am b/TAO/performance-tests/POA/Create_Reference/Makefile.am
index 59a4c1bfa2f..24eb4620f8e 100644
--- a/TAO/performance-tests/POA/Create_Reference/Makefile.am
+++ b/TAO/performance-tests/POA/Create_Reference/Makefile.am
@@ -13,11 +13,8 @@ ACE_ROOT = $(top_srcdir)/..
TAO_BUILDDIR = $(top_builddir)
TAO_ROOT = $(top_srcdir)
-
## Makefile.Create_Reference.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS = create_reference
create_reference_CPPFLAGS = \
@@ -35,8 +32,6 @@ create_reference_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/POA/Create_Reference/create_reference.cpp b/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
index 356f3c6ecbb..58860694521 100644
--- a/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
+++ b/TAO/performance-tests/POA/Create_Reference/create_reference.cpp
@@ -21,7 +21,7 @@ ACE_UINT32 gsf;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hi:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hi:");
int c;
while ((c = get_opts ()) != -1)
@@ -131,7 +131,7 @@ object_creation_test (PortableServer::POA_ptr poa,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
set_rt_scheduling ();
diff --git a/TAO/performance-tests/POA/Demux/Makefile.am b/TAO/performance-tests/POA/Demux/Makefile.am
index 1afb77e3f95..6ccbbc296e5 100644
--- a/TAO/performance-tests/POA/Demux/Makefile.am
+++ b/TAO/performance-tests/POA/Demux/Makefile.am
@@ -48,9 +48,6 @@ demux_test-stamp: $(srcdir)/demux_test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- demux_test.idl
-
## Makefile.Demux_Poa_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/performance-tests/POA/Demux/client.cpp b/TAO/performance-tests/POA/Demux/client.cpp
index 9a013dadf0b..7ad8fd35061 100644
--- a/TAO/performance-tests/POA/Demux/client.cpp
+++ b/TAO/performance-tests/POA/Demux/client.cpp
@@ -22,7 +22,7 @@
ACE_RCSID(CodeGen, client, "$Id$")
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Set TAO_debug_level to 0 to ensure silent running unless
diff --git a/TAO/performance-tests/POA/Demux/demux_stats.cpp b/TAO/performance-tests/POA/Demux/demux_stats.cpp
index fae7f9c0d20..d20dc2d7401 100644
--- a/TAO/performance-tests/POA/Demux/demux_stats.cpp
+++ b/TAO/performance-tests/POA/Demux/demux_stats.cpp
@@ -46,7 +46,7 @@ int
Demux_Stats::parse_args (int argc_, char * argv_ [])
{
- ACE_Get_Opt get_opts (argc_, argv_, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "i:");
int c;
iterations = 0;
@@ -337,7 +337,7 @@ if (iterations == 0)
}
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
Demux_Stats demux_stats;
diff --git a/TAO/performance-tests/POA/Demux/demux_test_client.cpp b/TAO/performance-tests/POA/Demux/demux_test_client.cpp
index 13816186585..dee326e1312 100644
--- a/TAO/performance-tests/POA/Demux/demux_test_client.cpp
+++ b/TAO/performance-tests/POA/Demux/demux_test_client.cpp
@@ -145,7 +145,7 @@ int
Demux_Test_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "df:m:n:o:p:i:s:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "df:m:n:o:p:i:s:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/performance-tests/POA/Demux/demux_test_server.cpp b/TAO/performance-tests/POA/Demux/demux_test_server.cpp
index 308a59127c6..2518046b95f 100644
--- a/TAO/performance-tests/POA/Demux/demux_test_server.cpp
+++ b/TAO/performance-tests/POA/Demux/demux_test_server.cpp
@@ -385,7 +385,7 @@ int
Demux_Test_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "df:o:p:ut");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "df:o:p:ut");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/performance-tests/POA/Demux/server.cpp b/TAO/performance-tests/POA/Demux/server.cpp
index 629bb31cf5f..b45ccf5b9cd 100644
--- a/TAO/performance-tests/POA/Demux/server.cpp
+++ b/TAO/performance-tests/POA/Demux/server.cpp
@@ -22,7 +22,7 @@
ACE_RCSID(CodeGen, server, "$Id$")
-int main (int argc, char *argv [])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Set TAO_debug_level to 0 to ensure silent running unless
// debugging is explicitly invoked
diff --git a/TAO/performance-tests/POA/Demux/write_names.cpp b/TAO/performance-tests/POA/Demux/write_names.cpp
index c5c9c8bfc77..9b7478779c9 100644
--- a/TAO/performance-tests/POA/Demux/write_names.cpp
+++ b/TAO/performance-tests/POA/Demux/write_names.cpp
@@ -2,7 +2,7 @@
#include <stdio.h>
int
-main(int argc, char* argv[])
+ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
for(int i=0; i<1000; i++)
diff --git a/TAO/performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc b/TAO/performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc
index b95d547dc66..bafe46cd208 100644
--- a/TAO/performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc
+++ b/TAO/performance-tests/POA/Implicit_Activation/Implicit_Activation.mpc
@@ -27,8 +27,7 @@ project(*server): taoserver {
}
project(*client): taoclient {
- avoids += ace_for_tao
- after += *idl
+ after += *idl
Source_Files {
TestC.cpp
@@ -40,8 +39,8 @@ project(*client): taoclient {
}
project(*collocated): taoserver {
- avoids += ace_for_tao
- after += *idl
+ after += *idl
+
exename = collocated
Source_Files {
Simple.cpp
diff --git a/TAO/performance-tests/POA/Implicit_Activation/Makefile.am b/TAO/performance-tests/POA/Implicit_Activation/Makefile.am
index e9ef5e71fa3..889756f87a7 100644
--- a/TAO/performance-tests/POA/Implicit_Activation/Makefile.am
+++ b/TAO/performance-tests/POA/Implicit_Activation/Makefile.am
@@ -16,8 +16,6 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Implicit_Activation_Idl.am
BUILT_SOURCES = \
@@ -50,14 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Implicit_Activation_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -75,12 +68,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Implicit_Activation_Collocated.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += collocated
collocated_CPPFLAGS = \
@@ -102,8 +91,6 @@ collocated_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Implicit_Activation_Server.am
noinst_PROGRAMS += server
diff --git a/TAO/performance-tests/POA/Implicit_Activation/client.cpp b/TAO/performance-tests/POA/Implicit_Activation/client.cpp
index d3b7ab3d1e0..60cae56fe58 100644
--- a/TAO/performance-tests/POA/Implicit_Activation/client.cpp
+++ b/TAO/performance-tests/POA/Implicit_Activation/client.cpp
@@ -18,7 +18,7 @@ int do_shutdown = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -56,7 +56,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/POA/Implicit_Activation/collocated.cpp b/TAO/performance-tests/POA/Implicit_Activation/collocated.cpp
index 562e77540ef..9e83b5ff22c 100644
--- a/TAO/performance-tests/POA/Implicit_Activation/collocated.cpp
+++ b/TAO/performance-tests/POA/Implicit_Activation/collocated.cpp
@@ -17,7 +17,7 @@ int do_dump_history = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "hi:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "hi:");
int c;
while ((c = get_opts ()) != -1)
@@ -46,7 +46,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/POA/Implicit_Activation/server.cpp b/TAO/performance-tests/POA/Implicit_Activation/server.cpp
index 9f3699650df..e593e3c78e7 100644
--- a/TAO/performance-tests/POA/Implicit_Activation/server.cpp
+++ b/TAO/performance-tests/POA/Implicit_Activation/server.cpp
@@ -13,7 +13,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,7 +37,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/POA/Object_Creation_And_Registration/Makefile.am b/TAO/performance-tests/POA/Object_Creation_And_Registration/Makefile.am
index 8511610bca0..b1f0cf6bc15 100644
--- a/TAO/performance-tests/POA/Object_Creation_And_Registration/Makefile.am
+++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/Makefile.am
@@ -16,11 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-
## Makefile.registration.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
testC.cpp \
testC.h \
@@ -74,8 +71,6 @@ registration_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/POA/Object_Creation_And_Registration/Object_Creation_And_Registration.mpc b/TAO/performance-tests/POA/Object_Creation_And_Registration/Object_Creation_And_Registration.mpc
index 3ebd5ff6be4..c0302e86220 100644
--- a/TAO/performance-tests/POA/Object_Creation_And_Registration/Object_Creation_And_Registration.mpc
+++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/Object_Creation_And_Registration.mpc
@@ -2,6 +2,5 @@
// $Id$
project(registration): taoexe, portableserver {
- avoids += ace_for_tao
exename = registration
}
diff --git a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp
index c3a276474ba..776bdcec6cf 100644
--- a/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp
+++ b/TAO/performance-tests/POA/Object_Creation_And_Registration/registration.cpp
@@ -80,7 +80,7 @@ static u_long iterations = 1000;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "i:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:r");
int c;
while ((c = get_opts ()) != -1)
@@ -340,7 +340,7 @@ child_poa_testing (PortableServer::POA_ptr root_poa
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
ACE_DECLARE_NEW_CORBA_ENV;
diff --git a/TAO/performance-tests/Pluggable/Makefile.am b/TAO/performance-tests/Pluggable/Makefile.am
index 4a863412461..b3c904afff6 100644
--- a/TAO/performance-tests/Pluggable/Makefile.am
+++ b/TAO/performance-tests/Pluggable/Makefile.am
@@ -48,9 +48,6 @@ PP_Test-stamp: $(srcdir)/PP_Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- PP_Test.idl
-
## Makefile.Pluggable_Client.am
noinst_PROGRAMS = client
diff --git a/TAO/performance-tests/Pluggable/PP_Test_Client.cpp b/TAO/performance-tests/Pluggable/PP_Test_Client.cpp
index 11b369339f8..b9d1906a487 100644
--- a/TAO/performance-tests/Pluggable/PP_Test_Client.cpp
+++ b/TAO/performance-tests/Pluggable/PP_Test_Client.cpp
@@ -109,7 +109,7 @@ PP_Test_Client::read_ior (char *filename)
int
PP_Test_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "ovdn:f:k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "ovdn:f:k:x");
int c;
int result;
diff --git a/TAO/performance-tests/Pluggable/PP_Test_Server.cpp b/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
index 593a4d3bdb7..e202209bab9 100644
--- a/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
+++ b/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
@@ -15,7 +15,7 @@ PP_Test_Server::PP_Test_Server (void)
int
PP_Test_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "do:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/performance-tests/Pluggable/client.cpp b/TAO/performance-tests/Pluggable/client.cpp
index 40dabed1023..e59d5a9d1e0 100644
--- a/TAO/performance-tests/Pluggable/client.cpp
+++ b/TAO/performance-tests/Pluggable/client.cpp
@@ -8,7 +8,7 @@ ACE_RCSID(IDL_Cubit, client, "$Id$")
// This function runs the client test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
PP_Test_Client pp_test_client;
diff --git a/TAO/performance-tests/Pluggable/server.cpp b/TAO/performance-tests/Pluggable/server.cpp
index 6d781f12420..25bf5d42b94 100644
--- a/TAO/performance-tests/Pluggable/server.cpp
+++ b/TAO/performance-tests/Pluggable/server.cpp
@@ -8,7 +8,7 @@ ACE_RCSID(IDL_Cubit, server, "$Id$")
// This runs the server test.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
PP_Test_Server pp_test_server;
diff --git a/TAO/performance-tests/Protocols/Makefile.am b/TAO/performance-tests/Protocols/Makefile.am
index 52a59c4a7e5..3b4f19c77e2 100644
--- a/TAO/performance-tests/Protocols/Makefile.am
+++ b/TAO/performance-tests/Protocols/Makefile.am
@@ -50,9 +50,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Protocols_Distributor.am
if BUILD_RT_CORBA
@@ -84,8 +81,6 @@ endif BUILD_RT_CORBA
## Makefile.Protocols_Receiver.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += receiver
receiver_CPPFLAGS = \
@@ -105,12 +100,9 @@ receiver_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Protocols_Sender.am
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += sender
@@ -133,7 +125,6 @@ sender_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Protocols/Protocols.mpc b/TAO/performance-tests/Protocols/Protocols.mpc
index f5a235aa7de..4e0c3ec233b 100644
--- a/TAO/performance-tests/Protocols/Protocols.mpc
+++ b/TAO/performance-tests/Protocols/Protocols.mpc
@@ -9,8 +9,7 @@ project(*IDL): taoidldefaults {
}
project(*Receiver): taoserver {
- avoids += ace_for_tao
- after += *IDL
+ after += *IDL
exename = receiver
Source_Files {
receiver.cpp
@@ -34,15 +33,8 @@ project(*Distributor): rt_server {
}
project(*Sender): rt_client {
- avoids += ace_for_tao
after += *IDL
-
- specific (automake ) {
- includes += $(srcdir)/../../tests/RTCORBA/Diffserv
- } else {
- includes += ../../tests/RTCORBA/Diffserv
- }
-
+ includes += ../../tests/RTCORBA/Diffserv
Source_Files {
sender.cpp
testC.cpp
diff --git a/TAO/performance-tests/Protocols/distributor.cpp b/TAO/performance-tests/Protocols/distributor.cpp
index 5a7ad1c1735..0792320bad5 100644
--- a/TAO/performance-tests/Protocols/distributor.cpp
+++ b/TAO/performance-tests/Protocols/distributor.cpp
@@ -16,7 +16,7 @@ static int number_of_connection_attempts = 20;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -348,7 +348,7 @@ test_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/Protocols/receiver.cpp b/TAO/performance-tests/Protocols/receiver.cpp
index 586fab9059b..42ff72185b2 100644
--- a/TAO/performance-tests/Protocols/receiver.cpp
+++ b/TAO/performance-tests/Protocols/receiver.cpp
@@ -17,7 +17,7 @@ static ACE_UINT32 gsf = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "d:f:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "d:f:m:");
int c;
while ((c = get_opts ()) != -1)
@@ -343,7 +343,7 @@ test_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
gsf = ACE_High_Res_Timer::global_scale_factor ();
diff --git a/TAO/performance-tests/Protocols/sender.cpp b/TAO/performance-tests/Protocols/sender.cpp
index 5558f0abcee..6079f66f602 100644
--- a/TAO/performance-tests/Protocols/sender.cpp
+++ b/TAO/performance-tests/Protocols/sender.cpp
@@ -45,7 +45,7 @@ static Test_Type test_type = PACED;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "a:b:c:d:e:i:k:m:p:r:s:t:x:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:b:c:d:e:i:k:m:p:r:s:t:x:");
int c;
while ((c = get_opts ()) != -1)
@@ -678,7 +678,7 @@ Worker::run (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
gsf = ACE_High_Res_Timer::global_scale_factor ();
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Endpoint_Per_Priority/Makefile b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Endpoint_Per_Priority/Makefile
deleted file mode 100644
index 6abeb8554f4..00000000000
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Endpoint_Per_Priority/Makefile
+++ /dev/null
@@ -1,616 +0,0 @@
-#----------------------------------------------------------------------------
-#
-# $Id$
-#
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-ifndef TAO_ROOT
- TAO_ROOT = $(ACE_ROOT)/TAO
-endif # ! TAO_ROOT
-
-LDLIBS = -lRTCORBA_Common -lTAO_Strategies -lTAO_PortableServer -lTAO
-
-BIN_UNCHECKED = server client
-
-CLIENT_OBJS = client.o
-SERVER_OBJS = server.o
-
-BUILD = $(BIN)
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-VBIN = $(BIN:%=%$(VAR))
-SRC=$(CLIENT_OBJS:.o=.cpp) $(SERVER_OBJS:.o=.cpp)
-CPPFLAGS += -I../Common
-
-#----------------------------------------------------------------------------
-# 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
-
-ifeq ($(rt_corba),1)
- ifeq ($(minimum_corba),0)
- BIN=$(BIN_UNCHECKED)
- endif # minimum_corba
-endif # rt_corba
-
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-include $(TAO_ROOT)/taoconfig.mk
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-server: $(addprefix $(VDIR),$(SERVER_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-client: $(addprefix $(VDIR),$(CLIENT_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-realclean: clean
-
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-
-.obj/client.o .obj/client.o .obj/client.o .obj/client.o: client.cpp ../Common/testC.h \
- $(TAO_ROOT)/tao/corba.h \
- $(ACE_ROOT)/ace/pre.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/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/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/Unbounded_Set.h \
- $(ACE_ROOT)/ace/Node.h \
- $(ACE_ROOT)/ace/Node.cpp \
- $(ACE_ROOT)/ace/Unbounded_Set.inl \
- $(ACE_ROOT)/ace/Unbounded_Set.cpp \
- $(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 \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Any.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/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object_Proxy_Broker.h \
- $(TAO_ROOT)/tao/Object_Proxy_Impl.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(ACE_ROOT)/ace/Unbounded_Queue.h \
- $(ACE_ROOT)/ace/Unbounded_Queue.inl \
- $(ACE_ROOT)/ace/Unbounded_Queue.cpp \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/LocalObject.h \
- $(TAO_ROOT)/tao/LocalObject.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/OctetSeqC.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/OctetSeqC.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Services.h \
- $(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/Encodable.h \
- $(TAO_ROOT)/tao/Remote_Object_Proxy_Impl.h \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/BoundsC.h \
- $(TAO_ROOT)/tao/BoundsC.i \
- $(TAO_ROOT)/tao/ValueBase.h \
- $(TAO_ROOT)/tao/ValueBase.i \
- $(TAO_ROOT)/tao/ValueFactory.h \
- $(TAO_ROOT)/tao/ValueFactory.i \
- $(TAO_ROOT)/tao/DomainC.h \
- $(TAO_ROOT)/tao/DomainC.i \
- $(TAO_ROOT)/tao/WrongTransactionC.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/ObjectIDList.h \
- $(TAO_ROOT)/tao/ObjectIDList.i \
- $(TAO_ROOT)/tao/StringSeqC.h \
- $(TAO_ROOT)/tao/StringSeqC.i \
- $(TAO_ROOT)/tao/PortableInterceptorC.h \
- $(TAO_ROOT)/tao/DynamicC.h \
- $(TAO_ROOT)/tao/DynamicC.i \
- $(TAO_ROOT)/tao/MessagingC.h \
- $(TAO_ROOT)/tao/TimeBaseC.h \
- $(TAO_ROOT)/tao/SmartProxies/Smart_Proxies.h \
- $(TAO_ROOT)/tao/SmartProxies/smartproxies_export.h \
- $(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/TAO_Singleton_Manager.h \
- $(TAO_ROOT)/tao/TAO_Singleton_Manager.inl \
- $(TAO_ROOT)/tao/SmartProxies/Smart_Proxies.inl \
- $(TAO_ROOT)/tao/TimeBaseC.i \
- $(TAO_ROOT)/tao/IOPC.h \
- $(TAO_ROOT)/tao/IOPC.i \
- $(TAO_ROOT)/tao/PollableC.h \
- $(TAO_ROOT)/tao/PollableC.i \
- $(TAO_ROOT)/tao/MessagingC.i \
- $(TAO_ROOT)/tao/PortableInterceptorC.i \
- ../Common/rtcorba_common_export.h ../Common/testC.i \
- $(TAO_ROOT)/tao/TAOC.h \
- $(TAO_ROOT)/tao/TAOC.i \
- $(ACE_ROOT)/ace/Get_Opt.h \
- $(ACE_ROOT)/ace/Get_Opt.i \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Array_Base.h \
- $(ACE_ROOT)/ace/Array_Base.inl \
- $(ACE_ROOT)/ace/Array_Base.cpp \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/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 \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Process_Mutex.h \
- $(ACE_ROOT)/ace/Process_Mutex.inl \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Stats.h \
- $(ACE_ROOT)/ace/Basic_Stats.h \
- $(ACE_ROOT)/ace/Basic_Stats.inl \
- $(ACE_ROOT)/ace/Stats.i \
- $(ACE_ROOT)/ace/High_Res_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.i \
- $(ACE_ROOT)/ace/Sched_Params.h \
- $(ACE_ROOT)/ace/Sched_Params.i
-
-.obj/server.o .obj/server.o .obj/server.o .obj/server.o: server.cpp ../Common/test_i.h ../Common/testS.h \
- ../Common/testC.h \
- $(TAO_ROOT)/tao/corba.h \
- $(ACE_ROOT)/ace/pre.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/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/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/Unbounded_Set.h \
- $(ACE_ROOT)/ace/Node.h \
- $(ACE_ROOT)/ace/Node.cpp \
- $(ACE_ROOT)/ace/Unbounded_Set.inl \
- $(ACE_ROOT)/ace/Unbounded_Set.cpp \
- $(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 \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/Any.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/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object_Proxy_Broker.h \
- $(TAO_ROOT)/tao/Object_Proxy_Impl.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(ACE_ROOT)/ace/Unbounded_Queue.h \
- $(ACE_ROOT)/ace/Unbounded_Queue.inl \
- $(ACE_ROOT)/ace/Unbounded_Queue.cpp \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/LocalObject.h \
- $(TAO_ROOT)/tao/LocalObject.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/OctetSeqC.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/OctetSeqC.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Services.h \
- $(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/Encodable.h \
- $(TAO_ROOT)/tao/Remote_Object_Proxy_Impl.h \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/BoundsC.h \
- $(TAO_ROOT)/tao/BoundsC.i \
- $(TAO_ROOT)/tao/ValueBase.h \
- $(TAO_ROOT)/tao/ValueBase.i \
- $(TAO_ROOT)/tao/ValueFactory.h \
- $(TAO_ROOT)/tao/ValueFactory.i \
- $(TAO_ROOT)/tao/DomainC.h \
- $(TAO_ROOT)/tao/DomainC.i \
- $(TAO_ROOT)/tao/WrongTransactionC.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/ObjectIDList.h \
- $(TAO_ROOT)/tao/ObjectIDList.i \
- $(TAO_ROOT)/tao/StringSeqC.h \
- $(TAO_ROOT)/tao/StringSeqC.i \
- $(TAO_ROOT)/tao/PortableInterceptorC.h \
- $(TAO_ROOT)/tao/DynamicC.h \
- $(TAO_ROOT)/tao/DynamicC.i \
- $(TAO_ROOT)/tao/MessagingC.h \
- $(TAO_ROOT)/tao/TimeBaseC.h \
- $(TAO_ROOT)/tao/SmartProxies/Smart_Proxies.h \
- $(TAO_ROOT)/tao/SmartProxies/smartproxies_export.h \
- $(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/TAO_Singleton_Manager.h \
- $(TAO_ROOT)/tao/TAO_Singleton_Manager.inl \
- $(TAO_ROOT)/tao/SmartProxies/Smart_Proxies.inl \
- $(TAO_ROOT)/tao/TimeBaseC.i \
- $(TAO_ROOT)/tao/IOPC.h \
- $(TAO_ROOT)/tao/IOPC.i \
- $(TAO_ROOT)/tao/PollableC.h \
- $(TAO_ROOT)/tao/PollableC.i \
- $(TAO_ROOT)/tao/MessagingC.i \
- $(TAO_ROOT)/tao/PortableInterceptorC.i \
- ../Common/rtcorba_common_export.h ../Common/testC.i \
- $(TAO_ROOT)/tao/PortableServer/PortableServer.h \
- $(TAO_ROOT)/tao/PortableServer/portableserver_export.h \
- $(TAO_ROOT)/tao/PortableServer/PortableServerC.h \
- $(TAO_ROOT)/tao/PortableServer/PortableServerC.i \
- $(TAO_ROOT)/tao/PortableServer/Servant_Base.h \
- $(TAO_ROOT)/tao/Abstract_Servant_Base.h \
- $(TAO_ROOT)/tao/PortableServer/Servant_Base.i \
- $(TAO_ROOT)/tao/PortableServer/Collocated_Object.h \
- $(TAO_ROOT)/tao/PortableServer/Collocated_Object.i \
- $(TAO_ROOT)/tao/PortableServer/ThruPOA_Object_Proxy_Impl.h \
- $(TAO_ROOT)/tao/PortableServer/Direct_Object_Proxy_Impl.h \
- ../Common/testS_T.h ../Common/testS_T.i ../Common/testS_T.cpp \
- ../Common/testS.i ../Common/test_i.i \
- $(TAO_ROOT)/tao/RTCORBA/Pool_Per_Endpoint.h \
- $(TAO_ROOT)/tao/RTCORBA/rtcorba_export.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Array_Base.h \
- $(ACE_ROOT)/ace/Array_Base.inl \
- $(ACE_ROOT)/ace/Array_Base.cpp \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/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 \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Process_Mutex.h \
- $(ACE_ROOT)/ace/Process_Mutex.inl \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(TAO_ROOT)/tao/RTCORBA/Pool_Per_Endpoint.i \
- $(ACE_ROOT)/ace/Get_Opt.h \
- $(ACE_ROOT)/ace/Get_Opt.i \
- $(ACE_ROOT)/ace/Sched_Params.h \
- $(ACE_ROOT)/ace/Sched_Params.i
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile.am b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile.am
index 7faf57d5fc1..de9a9653587 100644
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile.am
+++ b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.ORB_Per_Priority_Client.am
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -46,13 +45,11 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
## Makefile.ORB_Per_Priority_Server.am
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -81,7 +78,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/client.cpp b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/client.cpp
index 5a1b5a0af83..b6db32627d8 100644
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/client.cpp
+++ b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/client.cpp
@@ -75,7 +75,7 @@ int priorities[MAX_THREADS];
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:t:n:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:t:n:p:");
int c;
while ((c = get_opts ()) != -1)
@@ -114,7 +114,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int policy = ACE_SCHED_FIFO;
int flags = THR_SCHED_FIFO|THR_NEW_LWP|THR_JOINABLE|THR_BOUND;
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/server.cpp b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/server.cpp
index d163ae4de46..e519cf3c333 100644
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/server.cpp
+++ b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Orb_Per_Priority/server.cpp
@@ -52,7 +52,7 @@ const char *ior_output_file_base = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -83,7 +83,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int policy = ACE_SCHED_FIFO;
int flags = THR_NEW_LWP|THR_JOINABLE|THR_SCHED_FIFO|THR_BOUND;
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile.am b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile.am
index 742dd3c9d6a..dfdd3f80a7b 100644
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile.am
+++ b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/Makefile.am
@@ -18,7 +18,6 @@ noinst_PROGRAMS =
## Makefile.Single_Endpoint_Client.am
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -46,13 +45,11 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
## Makefile.Single_Endpoint_Server.am
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -81,7 +78,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/client.cpp b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/client.cpp
index d8094de1d7a..18823b9f315 100644
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/client.cpp
+++ b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/client.cpp
@@ -75,7 +75,7 @@ int priorities[MAX_THREADS];
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:t:n:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:t:n:p:");
int c;
while ((c = get_opts ()) != -1)
@@ -114,7 +114,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int policy = ACE_SCHED_FIFO;
int flags = THR_SCHED_FIFO|THR_NEW_LWP|THR_JOINABLE|THR_BOUND;
diff --git a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/server.cpp b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/server.cpp
index a21dc9dc0c4..0093dab42d9 100644
--- a/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/server.cpp
+++ b/TAO/performance-tests/RTCorba/Multiple_Endpoints/Single_Endpoint/server.cpp
@@ -11,7 +11,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,7 +35,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int policy = ACE_SCHED_FIFO;
int priority =
diff --git a/TAO/performance-tests/RTCorba/Oneways/Reliable/Makefile.am b/TAO/performance-tests/RTCorba/Oneways/Reliable/Makefile.am
index c8ccf6ae1e3..67da7096e45 100644
--- a/TAO/performance-tests/RTCorba/Oneways/Reliable/Makefile.am
+++ b/TAO/performance-tests/RTCorba/Oneways/Reliable/Makefile.am
@@ -50,9 +50,6 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Reliable_Oneways_Client_RT.am
if BUILD_CORBA_MESSAGING
diff --git a/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp b/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp
index f09a8e1343b..f2e8e93ba08 100644
--- a/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp
+++ b/TAO/performance-tests/RTCorba/Oneways/Reliable/client.cpp
@@ -279,7 +279,7 @@ oneway_payload_test (Test_ptr server
static int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ps:k:i:t:l:m:w:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ps:k:i:t:l:m:w:x");
int error = 0;
int c;
@@ -421,7 +421,7 @@ set_rt_mode (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int result = set_rt_mode ();
if (result != 0)
diff --git a/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp b/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp
index f4b4b02b8d1..5876bf9db6f 100644
--- a/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp
+++ b/TAO/performance-tests/RTCorba/Oneways/Reliable/server.cpp
@@ -14,7 +14,7 @@ static const char *ior_output_file = "test.ior";
static int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -85,7 +85,7 @@ set_rt_mode (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int result = set_rt_mode ();
if (result != 0)
diff --git a/TAO/performance-tests/RTCorba/Thread_Pool/Makefile.am b/TAO/performance-tests/RTCorba/Thread_Pool/Makefile.am
index 179e3e49e97..945746e1894 100644
--- a/TAO/performance-tests/RTCorba/Thread_Pool/Makefile.am
+++ b/TAO/performance-tests/RTCorba/Thread_Pool/Makefile.am
@@ -50,13 +50,9 @@ test-stamp: $(srcdir)/test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- test.idl
-
## Makefile.Thread_Pool_RTCorba_Client.am
if BUILD_RT_CORBA
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -80,7 +76,6 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_RT_CORBA
## Makefile.Thread_Pool_RTCorba_Server.am
diff --git a/TAO/performance-tests/RTCorba/Thread_Pool/Thread_Pool.mpc b/TAO/performance-tests/RTCorba/Thread_Pool/Thread_Pool.mpc
index 2049c723a97..851d718f732 100644
--- a/TAO/performance-tests/RTCorba/Thread_Pool/Thread_Pool.mpc
+++ b/TAO/performance-tests/RTCorba/Thread_Pool/Thread_Pool.mpc
@@ -20,8 +20,7 @@ project(*RTCorba server): rt_server, minimum_corba {
}
project(*RTCorba client): rt_client, minimum_corba {
- avoids += ace_for_tao
- after += *RTCorba_idl
+ after += *RTCorba_idl
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/performance-tests/RTCorba/Thread_Pool/client.cpp b/TAO/performance-tests/RTCorba/Thread_Pool/client.cpp
index d64f68b5139..e6d7516d49a 100644
--- a/TAO/performance-tests/RTCorba/Thread_Pool/client.cpp
+++ b/TAO/performance-tests/RTCorba/Thread_Pool/client.cpp
@@ -64,7 +64,7 @@ struct Synchronizers
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv,
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv,
"c:e:g:hi:k:m:p:q:r:t:u:v:w:x:y:z:" //client options
"b:f:hl:n:o:s:" // server options
);
@@ -1161,7 +1161,7 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/RTCorba/Thread_Pool/server.cpp b/TAO/performance-tests/RTCorba/Thread_Pool/server.cpp
index 07f49bbd3e0..aa644912fe9 100644
--- a/TAO/performance-tests/RTCorba/Thread_Pool/server.cpp
+++ b/TAO/performance-tests/RTCorba/Thread_Pool/server.cpp
@@ -87,7 +87,7 @@ static const char *lanes_file = "empty-file";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv,
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv,
"b:f:hl:n:o:s:" // server options
"c:e:g:hi:j:k:m:p:q:r:t:u:v:w:x:y:z:" // client options
);
@@ -419,7 +419,7 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am b/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am
index 728a13faa6f..82597004129 100644
--- a/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/Makefile.am
@@ -52,15 +52,11 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif BUILD_CORBA_MESSAGING
## Makefile.Single_Threaded_AMH_Sequence_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -86,13 +82,11 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Single_Threaded_AMH_Sequence_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -120,7 +114,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/client.cpp b/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/client.cpp
index 18946dca23f..12b23ba0dfe 100644
--- a/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/client.cpp
@@ -23,7 +23,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -340,7 +340,7 @@ test_double_seq (Test::Roundtrip_ptr roundtrip ACE_ENV_ARG_DECL)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/server.cpp b/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/server.cpp
index a76449261c5..67d6beb26ed 100644
--- a/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/AMH_Single_Threaded/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/AMI/Makefile.am b/TAO/performance-tests/Sequence_Latency/AMI/Makefile.am
index 78f79e91771..e948dff698b 100644
--- a/TAO/performance-tests/Sequence_Latency/AMI/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/AMI/Makefile.am
@@ -53,9 +53,6 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -63,7 +60,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += client
@@ -91,7 +87,6 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
@@ -99,7 +94,6 @@ endif BUILD_AMI
if BUILD_AMI
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += server
@@ -129,7 +123,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
endif BUILD_AMI
diff --git a/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.cpp b/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.cpp
index cbd5f79b272..4ebe5921394 100644
--- a/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.cpp
+++ b/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.cpp
@@ -30,21 +30,21 @@ Roundtrip_Handler::test_octet_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_octet_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_octet_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_octet_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -61,21 +61,21 @@ Roundtrip_Handler::test_char_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_char_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_char_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_char_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -92,21 +92,21 @@ Roundtrip_Handler::test_long_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_long_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_long_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_long_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -123,21 +123,21 @@ Roundtrip_Handler::test_short_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_short_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_short_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_short_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -154,21 +154,21 @@ Roundtrip_Handler::test_double_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_double_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_double_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_double_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -185,21 +185,21 @@ Roundtrip_Handler::test_longlong_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- --this->pending_callbacks_;
+ this->pending_callbacks_--;
ACE_hrtime_t now = ACE_OS::gethrtime ();
this->latency_stats_.sample (now - send_time);
}
void
-Roundtrip_Handler::test_longlong_method_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::test_longlong_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- --this->pending_callbacks_;
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ this->pending_callbacks_--;
+ holder->raise_test_longlong_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -219,13 +219,13 @@ Roundtrip_Handler::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-Roundtrip_Handler::shutdown_excep (::Messaging::ExceptionHolder *holder
+Roundtrip_Handler::shutdown_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h b/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h
index dd3b92aaf7d..0589a8007ac 100644
--- a/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h
+++ b/TAO/performance-tests/Sequence_Latency/AMI/Roundtrip_Handler.h
@@ -33,7 +33,7 @@ public:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_octet_method_excep (::Messaging::ExceptionHolder *holder
+ virtual void test_octet_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -41,7 +41,7 @@ public:
virtual void test_char_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_char_method_excep (::Messaging::ExceptionHolder *holder
+ virtual void test_char_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -49,15 +49,15 @@ public:
virtual void test_long_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_long_method_excep (::Messaging::ExceptionHolder *holder
- ACE_ENV_ARG_DECL)
+ virtual void test_long_method_excep (Test::AMI_RoundtripExceptionHolder *holder
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// = The skeleton methods for test short load
virtual void test_short_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_short_method_excep (::Messaging::ExceptionHolder *holder
+ virtual void test_short_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -65,7 +65,7 @@ public:
virtual void test_longlong_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_longlong_method_excep (::Messaging::ExceptionHolder *holder
+ virtual void test_longlong_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -73,7 +73,7 @@ public:
virtual void test_double_method (Test::Timestamp send_time
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void test_double_method_excep (::Messaging::ExceptionHolder *holder
+ virtual void test_double_method_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -81,7 +81,7 @@ public:
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown_excep (::Messaging::ExceptionHolder *holder
+ virtual void shutdown_excep (Test::AMI_RoundtripExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/performance-tests/Sequence_Latency/AMI/client.cpp b/TAO/performance-tests/Sequence_Latency/AMI/client.cpp
index c1343244eab..ca8fe52c671 100644
--- a/TAO/performance-tests/Sequence_Latency/AMI/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/AMI/client.cpp
@@ -27,7 +27,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -373,7 +373,7 @@ void test_longlong_seq (Test::Roundtrip_ptr roundtrip,
// Main function starts below
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/AMI/server.cpp b/TAO/performance-tests/Sequence_Latency/AMI/server.cpp
index 9aefa38f531..e32ae697223 100644
--- a/TAO/performance-tests/Sequence_Latency/AMI/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/AMI/server.cpp
@@ -16,7 +16,7 @@ int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -45,7 +45,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/DII/Makefile.am b/TAO/performance-tests/Sequence_Latency/DII/Makefile.am
index 8753af7f85c..1a8d21bd247 100644
--- a/TAO/performance-tests/Sequence_Latency/DII/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/DII/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
## Makefile.DII_Sequence_Idl.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -53,16 +52,11 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.DII_Sequence_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -91,12 +85,10 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.DII_Sequence_Server.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -122,7 +114,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/performance-tests/Sequence_Latency/DII/client.cpp b/TAO/performance-tests/Sequence_Latency/DII/client.cpp
index 624c7ddfb6b..b87d25a1cc1 100644
--- a/TAO/performance-tests/Sequence_Latency/DII/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/DII/client.cpp
@@ -2,8 +2,7 @@
#include "tao/DynamicInterface/Request.h"
#include "tao/Strategies/advanced_resource.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "TestC.h"
@@ -30,7 +29,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -98,14 +97,13 @@ test_octet_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
for (int i = 0; i < niterations; ++i)
{
ACE_hrtime_t start = ACE_OS::gethrtime ();
- Test::Timestamp start_time = static_cast <Test::Timestamp> (start);
CORBA::Request_var request =
object->_request ("test_octet_method" ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
request->add_in_arg("octet_load") <<= ol;
- request->add_in_arg("send_time") <<= start_time;
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -155,7 +153,7 @@ test_long_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
ACE_CHECK;
request->add_in_arg("long_load") <<= ll;
- request->add_in_arg("send_time") <<= static_cast <Test::Timestamp> (start);
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -205,7 +203,7 @@ test_short_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
ACE_CHECK;
request->add_in_arg("short_load") <<= sl;
- request->add_in_arg("send_time") <<= static_cast <Test::Timestamp> (start);
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -255,7 +253,7 @@ test_char_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
ACE_CHECK;
request->add_in_arg("char_load") <<= cl;
- request->add_in_arg("send_time") <<= static_cast <Test::Timestamp> (start);
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -305,7 +303,7 @@ test_double_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
ACE_CHECK;
request->add_in_arg("double_load") <<= dl;
- request->add_in_arg("send_time") <<= static_cast <Test::Timestamp> (start);
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -355,7 +353,7 @@ test_longlong_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
ACE_CHECK;
request->add_in_arg("longlong_load") <<= ll;
- request->add_in_arg("send_time") <<= static_cast <Test::Timestamp> (start);
+ request->add_in_arg("send_time") <<= start;
request->set_return_type (CORBA::_tc_ulonglong);
request->invoke (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -391,7 +389,7 @@ test_longlong_seq (const CORBA::Object_var object ACE_ENV_ARG_DECL)
// The main() function starts here
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
@@ -442,8 +440,8 @@ main (int argc, char *argv[])
object->_request ("test_octet_method" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- Test::Timestamp dummy = 0;
- request->add_in_arg("octet_load") <<= oc;
+ CORBA::ULongLong dummy = 0;
+ request->add_in_arg("octet_load") <<= oc;
request->add_in_arg("send_time") <<= dummy;
request->set_return_type (CORBA::_tc_ulonglong);
diff --git a/TAO/performance-tests/Sequence_Latency/DII/server.cpp b/TAO/performance-tests/Sequence_Latency/DII/server.cpp
index f7ce55b8577..aba45587714 100644
--- a/TAO/performance-tests/Sequence_Latency/DII/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/DII/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/DSI/Makefile.am b/TAO/performance-tests/Sequence_Latency/DSI/Makefile.am
index 567ba15e640..83a4d0fa0f7 100644
--- a/TAO/performance-tests/Sequence_Latency/DSI/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/DSI/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
## Makefile.DSI_Idl.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -53,15 +52,10 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.DSI_Sequence_Client.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -84,12 +78,10 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.DSI_Sequence_Server.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -119,7 +111,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Clean up template repositories, etc.
diff --git a/TAO/performance-tests/Sequence_Latency/DSI/Roundtrip.cpp b/TAO/performance-tests/Sequence_Latency/DSI/Roundtrip.cpp
index 7fbe1b7db19..860c6a9f410 100644
--- a/TAO/performance-tests/Sequence_Latency/DSI/Roundtrip.cpp
+++ b/TAO/performance-tests/Sequence_Latency/DSI/Roundtrip.cpp
@@ -3,7 +3,7 @@
//
#include "TestC.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "tao/AnyTypeCode/NVList.h"
#include "tao/AnyTypeCode/SystemExceptionA.h"
#include "Roundtrip.h"
diff --git a/TAO/performance-tests/Sequence_Latency/DSI/client.cpp b/TAO/performance-tests/Sequence_Latency/DSI/client.cpp
index 8298ea4930b..e961019a151 100644
--- a/TAO/performance-tests/Sequence_Latency/DSI/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/DSI/client.cpp
@@ -25,7 +25,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:hxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:hxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -349,7 +349,7 @@ test_double_seq (Test::Roundtrip_ptr roundtrip ACE_ENV_ARG_DECL)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/DSI/server.cpp b/TAO/performance-tests/Sequence_Latency/DSI/server.cpp
index e986310ab43..967c3737022 100644
--- a/TAO/performance-tests/Sequence_Latency/DSI/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/DSI/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Deferred/Deferred.mpc b/TAO/performance-tests/Sequence_Latency/Deferred/Deferred.mpc
index 2a49e587b0a..129c9ac8b46 100644
--- a/TAO/performance-tests/Sequence_Latency/Deferred/Deferred.mpc
+++ b/TAO/performance-tests/Sequence_Latency/Deferred/Deferred.mpc
@@ -9,7 +9,7 @@ project(*sequence_idl): taoidldefaults, strategies, minimum_corba {
}
project(*sequence server): taoserver, strategies, minimum_corba {
- after += *sequence_idl
+ after += *seqence_idl
exename = server
Source_Files {
diff --git a/TAO/performance-tests/Sequence_Latency/Deferred/Makefile.am b/TAO/performance-tests/Sequence_Latency/Deferred/Makefile.am
index 02c10ca0241..94715ed715e 100644
--- a/TAO/performance-tests/Sequence_Latency/Deferred/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/Deferred/Makefile.am
@@ -20,7 +20,6 @@ noinst_PROGRAMS =
## Makefile.Deferred_Sequence_Idl.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
BUILT_SOURCES = \
@@ -53,16 +52,11 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Makefile.Deferred_Sequence_Client.am
if BUILD_CORBA_MESSAGING
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += client
@@ -91,12 +85,10 @@ client_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
endif BUILD_CORBA_MESSAGING
## Makefile.Deferred_Sequence_Server.am
-if !BUILD_ACE_FOR_TAO
if !BUILD_MINIMUM_CORBA
noinst_PROGRAMS += server
@@ -122,7 +114,6 @@ server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
endif !BUILD_MINIMUM_CORBA
-endif !BUILD_ACE_FOR_TAO
## Clean up template repositories, etc.
clean-local:
diff --git a/TAO/performance-tests/Sequence_Latency/Deferred/client.cpp b/TAO/performance-tests/Sequence_Latency/Deferred/client.cpp
index b93bbd8ffbd..3de63e13fba 100644
--- a/TAO/performance-tests/Sequence_Latency/Deferred/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Deferred/client.cpp
@@ -6,7 +6,7 @@
#include "TestC.h"
#include "tao/Strategies/advanced_resource.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "ace/Get_Opt.h"
#include "ace/Sched_Params.h"
@@ -32,7 +32,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:hxk:i:b:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:hxk:i:b:");
int c;
while ((c = get_opts ()) != -1)
@@ -537,7 +537,7 @@ test_double_seq (Test::Roundtrip_ptr roundtrip ACE_ENV_ARG_DECL)
// The main() function starts here
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Deferred/server.cpp b/TAO/performance-tests/Sequence_Latency/Deferred/server.cpp
index 20ea98c2655..986dba26367 100644
--- a/TAO/performance-tests/Sequence_Latency/Deferred/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Deferred/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Single_Threaded/Makefile.am b/TAO/performance-tests/Sequence_Latency/Single_Threaded/Makefile.am
index 3af759f3596..7d394724f75 100644
--- a/TAO/performance-tests/Sequence_Latency/Single_Threaded/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/Single_Threaded/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Single_Threaded_Sequence_Idl.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -52,16 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Single_Threaded_Sequence_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -80,12 +69,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Single_Threaded_Sequence_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -108,8 +93,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Sequence_Latency/Single_Threaded/client.cpp b/TAO/performance-tests/Sequence_Latency/Single_Threaded/client.cpp
index 2352cf06b92..0b5161cd427 100644
--- a/TAO/performance-tests/Sequence_Latency/Single_Threaded/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Single_Threaded/client.cpp
@@ -23,7 +23,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ht:xs:k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ht:xs:k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -344,7 +344,7 @@ test_double_seq (Test::Roundtrip_ptr roundtrip ACE_ENV_ARG_DECL)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Single_Threaded/server.cpp b/TAO/performance-tests/Sequence_Latency/Single_Threaded/server.cpp
index b3f4e9e135d..6fbf15575e6 100644
--- a/TAO/performance-tests/Sequence_Latency/Single_Threaded/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Single_Threaded/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am b/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am
index 60f04b91a9d..c1345f418cb 100644
--- a/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Thread_Per_Conn_Sequence_Idl.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -52,16 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Per_Conn_Sequence_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -81,12 +70,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Per_Conn_Sequence_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -109,8 +94,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/client.cpp b/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/client.cpp
index af752262c0d..ea6bf756aef 100644
--- a/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/client.cpp
@@ -21,7 +21,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -74,7 +74,7 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/server.cpp b/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/server.cpp
index 26f9ed145c8..3b08c934984 100644
--- a/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/server.cpp
@@ -14,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,7 +38,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Pool/Makefile.am b/TAO/performance-tests/Sequence_Latency/Thread_Pool/Makefile.am
index 3d423b2cfac..4f71036524b 100644
--- a/TAO/performance-tests/Sequence_Latency/Thread_Pool/Makefile.am
+++ b/TAO/performance-tests/Sequence_Latency/Thread_Pool/Makefile.am
@@ -16,12 +16,8 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Thread_Pool_Sequence_Idl.am
-if !BUILD_ACE_FOR_TAO
-
BUILT_SOURCES = \
TestC.cpp \
TestC.h \
@@ -52,16 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Pool_Sequence_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -81,12 +70,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Thread_Pool_Sequence_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -111,8 +96,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Pool/client.cpp b/TAO/performance-tests/Sequence_Latency/Thread_Pool/client.cpp
index f12757f7de8..2bb99cb12fe 100644
--- a/TAO/performance-tests/Sequence_Latency/Thread_Pool/client.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Thread_Pool/client.cpp
@@ -21,7 +21,7 @@ const char *data_type = "octet";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:s:xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:s:xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -73,7 +73,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Pool/server.cpp b/TAO/performance-tests/Sequence_Latency/Thread_Pool/server.cpp
index 2f0ba140ea3..590c5046486 100644
--- a/TAO/performance-tests/Sequence_Latency/Thread_Pool/server.cpp
+++ b/TAO/performance-tests/Sequence_Latency/Thread_Pool/server.cpp
@@ -15,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +39,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
diff --git a/TAO/performance-tests/Single_Threaded_Latency/Roundtrip.cpp b/TAO/performance-tests/Single_Threaded_Latency/Roundtrip.cpp
deleted file mode 100644
index 72f83576b44..00000000000
--- a/TAO/performance-tests/Single_Threaded_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-
-ACE_RCSID(Single_Threaded_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return send_time;
-}
-
-void
-Roundtrip::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/performance-tests/Single_Threaded_Latency/Roundtrip.h b/TAO/performance-tests/Single_Threaded_Latency/Roundtrip.h
deleted file mode 100644
index 6474b130a24..00000000000
--- a/TAO/performance-tests/Single_Threaded_Latency/Roundtrip.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual POA_Test::Roundtrip
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/Single_Threaded_Latency/client.cpp b/TAO/performance-tests/Single_Threaded_Latency/client.cpp
deleted file mode 100644
index 2d841b9909d..00000000000
--- a/TAO/performance-tests/Single_Threaded_Latency/client.cpp
+++ /dev/null
@@ -1,164 +0,0 @@
-// $Id$
-
-#include "TestC.h"
-#include "ace/Get_Opt.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-#include "ace/Sample_History.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Single_Threaded_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int niterations = 100;
-int do_dump_history = 0;
-int do_shutdown = 1;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "hxk:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'h':
- do_dump_history = 1;
- break;
-
- case 'x':
- do_shutdown = 0;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-x (disable shutdown) "
- "-h (dump history) "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "client (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "client (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
- }
-
- for (int j = 0; j < 100; ++j)
- {
- ACE_hrtime_t start = 0;
- (void) roundtrip->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- ACE_Sample_History history (niterations);
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
- for (int i = 0; i < niterations; ++i)
- {
- ACE_hrtime_t start = ACE_OS::gethrtime ();
-
- (void) roundtrip->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- history.sample (now - start);
- }
-
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "test finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- if (do_dump_history)
- {
- history.dump_samples ("HISTORY", gsf);
- }
-
- ACE_Basic_Stats stats;
- history.collect_basic_stats (stats);
- stats.dump_results ("Total", gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- stats.samples_count ());
-
- if (do_shutdown)
- {
- roundtrip->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Single_Threaded_Latency/server.cpp b/TAO/performance-tests/Single_Threaded_Latency/server.cpp
deleted file mode 100644
index e96f0ff595a..00000000000
--- a/TAO/performance-tests/Single_Threaded_Latency/server.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Single_Threaded_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.cpp b/TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.cpp
deleted file mode 100644
index 09d15331436..00000000000
--- a/TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-//
-// $Id$
-//
-#include "Client_Task.h"
-
-ACE_RCSID(Thread_Per_Connection_Latency, Client_Task, "$Id$")
-
-Client_Task::Client_Task (Test::Roundtrip_ptr roundtrip,
- int niterations)
- : roundtrip_ (Test::Roundtrip::_duplicate (roundtrip))
- , niterations_ (niterations)
-{
-}
-
-int
-Client_Task::svc (void)
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->validate_connection (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- for (int i = 0; i != this->niterations_; ++i)
- {
- CORBA::ULongLong start = ACE_OS::gethrtime ();
-
- (void) this->roundtrip_->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- this->latency_.sample (now - start);
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void
-Client_Task::accumulate_and_dump (ACE_Basic_Stats &totals,
- const char *msg,
- ACE_UINT32 gsf)
-{
- totals.accumulate (this->latency_);
- this->latency_.dump_results (msg, gsf);
-}
-
-void
-Client_Task::validate_connection (ACE_ENV_SINGLE_ARG_DECL)
-{
- CORBA::ULongLong dummy = 0;
- for (int i = 0; i != 100; ++i)
- {
- ACE_TRY
- {
- (void) this->roundtrip_->test_method (dummy ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY {} ACE_ENDTRY;
- }
-}
diff --git a/TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.h b/TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.h
deleted file mode 100644
index 476ee8bd23c..00000000000
--- a/TAO/performance-tests/Thread_Per_Connection_Latency/Client_Task.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef CLIENT_TASK_H
-#define CLIENT_TASK_H
-#include /**/ "ace/pre.h"
-
-#include "TestC.h"
-#include "ace/Task.h"
-#include "ace/Basic_Stats.h"
-
-/// Implement the Test::Client_Task interface
-class Client_Task : public ACE_Task_Base
-{
-public:
- /// Constructor
- Client_Task (Test::Roundtrip_ptr roundtrip,
- int niterations);
-
- /// Add this thread results to the global numbers and print the
- /// per-thread results.
- void accumulate_and_dump (ACE_Basic_Stats &totals,
- const char *msg,
- ACE_UINT32 gsf);
-
- /// The service method
- virtual int svc (void);
-
-private:
- /// Make sure that the current thread has a connection available.
- void validate_connection (ACE_ENV_SINGLE_ARG_DECL);
-
-private:
- /// The object reference used for this test
- Test::Roundtrip_var roundtrip_;
-
- /// The number of iterations
- int niterations_;
-
- /// Keep track of the latency (minimum, average, maximum and jitter)
- ACE_Basic_Stats latency_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* CLIENT_TASK_H */
diff --git a/TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.cpp b/TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.cpp
deleted file mode 100644
index 2bc67948fd0..00000000000
--- a/TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-
-ACE_RCSID(Single_Per_Connection_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return send_time;
-}
-
-void
-Roundtrip::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.h b/TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.h
deleted file mode 100644
index 6474b130a24..00000000000
--- a/TAO/performance-tests/Thread_Per_Connection_Latency/Roundtrip.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual POA_Test::Roundtrip
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/Thread_Per_Connection_Latency/client.cpp b/TAO/performance-tests/Thread_Per_Connection_Latency/client.cpp
deleted file mode 100644
index 69aac2b4ca5..00000000000
--- a/TAO/performance-tests/Thread_Per_Connection_Latency/client.cpp
+++ /dev/null
@@ -1,149 +0,0 @@
-// $Id$
-
-#include "Client_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Thread_Per_Connection_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int niterations = 1000;
-int do_shutdown = 1;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'x':
- do_shutdown = 0;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-x (disable shutdown) "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "client (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "client (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
- }
-
- ACE_DEBUG ((LM_DEBUG, "Starting threads\n"));
-
- Client_Task task0(roundtrip.in (), niterations);
- Client_Task task1(roundtrip.in (), niterations);
- Client_Task task2(roundtrip.in (), niterations);
- Client_Task task3(roundtrip.in (), niterations);
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
- task0.activate(THR_NEW_LWP | THR_JOINABLE);
- task1.activate(THR_NEW_LWP | THR_JOINABLE);
- task2.activate(THR_NEW_LWP | THR_JOINABLE);
- task3.activate(THR_NEW_LWP | THR_JOINABLE);
-
- task0.thr_mgr()->wait ();
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "Threads finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- ACE_Basic_Stats totals;
- task0.accumulate_and_dump (totals, "Task[0]", gsf);
- task1.accumulate_and_dump (totals, "Task[1]", gsf);
- task2.accumulate_and_dump (totals, "Task[2]", gsf);
- task3.accumulate_and_dump (totals, "Task[3]", gsf);
-
- totals.dump_results ("Total", gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- totals.samples_count ());
-
- if (do_shutdown)
- {
- roundtrip->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Thread_Per_Connection_Latency/server.cpp b/TAO/performance-tests/Thread_Per_Connection_Latency/server.cpp
deleted file mode 100644
index 004ce70cebf..00000000000
--- a/TAO/performance-tests/Thread_Per_Connection_Latency/server.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Thread_Per_Connection_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Thread_Pool_Latency/Client_Task.cpp b/TAO/performance-tests/Thread_Pool_Latency/Client_Task.cpp
deleted file mode 100644
index efb544633b2..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/Client_Task.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-//
-// $Id$
-//
-#include "Client_Task.h"
-
-ACE_RCSID(Thread_Pool_Latency, Client_Task, "$Id$")
-
-Client_Task::Client_Task (Test::Roundtrip_ptr roundtrip,
- int niterations)
- : roundtrip_ (Test::Roundtrip::_duplicate (roundtrip))
- , niterations_ (niterations)
-{
-}
-
-int
-Client_Task::svc (void)
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->validate_connection (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- for (int i = 0; i != this->niterations_; ++i)
- {
- CORBA::ULongLong start = ACE_OS::gethrtime ();
-
- (void) this->roundtrip_->test_method (start ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_hrtime_t now = ACE_OS::gethrtime ();
- this->latency_.sample (now - start);
- }
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void
-Client_Task::accumulate_and_dump (ACE_Basic_Stats &totals,
- const char *msg,
- ACE_UINT32 gsf)
-{
- totals.accumulate (this->latency_);
- this->latency_.dump_results (msg, gsf);
-}
-
-void
-Client_Task::validate_connection (ACE_ENV_SINGLE_ARG_DECL)
-{
- CORBA::ULongLong dummy = 0;
- for (int i = 0; i != 100; ++i)
- {
- ACE_TRY
- {
- (void) this->roundtrip_->test_method (dummy ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY {} ACE_ENDTRY;
- }
-}
diff --git a/TAO/performance-tests/Thread_Pool_Latency/Client_Task.h b/TAO/performance-tests/Thread_Pool_Latency/Client_Task.h
deleted file mode 100644
index 476ee8bd23c..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/Client_Task.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef CLIENT_TASK_H
-#define CLIENT_TASK_H
-#include /**/ "ace/pre.h"
-
-#include "TestC.h"
-#include "ace/Task.h"
-#include "ace/Basic_Stats.h"
-
-/// Implement the Test::Client_Task interface
-class Client_Task : public ACE_Task_Base
-{
-public:
- /// Constructor
- Client_Task (Test::Roundtrip_ptr roundtrip,
- int niterations);
-
- /// Add this thread results to the global numbers and print the
- /// per-thread results.
- void accumulate_and_dump (ACE_Basic_Stats &totals,
- const char *msg,
- ACE_UINT32 gsf);
-
- /// The service method
- virtual int svc (void);
-
-private:
- /// Make sure that the current thread has a connection available.
- void validate_connection (ACE_ENV_SINGLE_ARG_DECL);
-
-private:
- /// The object reference used for this test
- Test::Roundtrip_var roundtrip_;
-
- /// The number of iterations
- int niterations_;
-
- /// Keep track of the latency (minimum, average, maximum and jitter)
- ACE_Basic_Stats latency_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* CLIENT_TASK_H */
diff --git a/TAO/performance-tests/Thread_Pool_Latency/Roundtrip.cpp b/TAO/performance-tests/Thread_Pool_Latency/Roundtrip.cpp
deleted file mode 100644
index 6028512202c..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/Roundtrip.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Roundtrip.h"
-
-ACE_RCSID(Thread_Pool_Latency, Roundtrip, "$Id$")
-
-Roundtrip::Roundtrip (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-Test::Timestamp
-Roundtrip::test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return send_time;
-}
-
-void
-Roundtrip::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/performance-tests/Thread_Pool_Latency/Roundtrip.h b/TAO/performance-tests/Thread_Pool_Latency/Roundtrip.h
deleted file mode 100644
index 6474b130a24..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/Roundtrip.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef ROUNDTRIP_H
-#define ROUNDTRIP_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#if defined (_MSC_VER)
-# if (_MSC_VER >= 1200)
-# pragma warning(push)
-# endif /* _MSC_VER >= 1200 */
-# pragma warning (disable:4250)
-#endif /* _MSC_VER */
-
-/// Implement the Test::Roundtrip interface
-class Roundtrip
- : public virtual POA_Test::Roundtrip
- , public virtual PortableServer::RefCountServantBase
-{
-public:
- /// Constructor
- Roundtrip (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual Test::Timestamp test_method (Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-# pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* ROUNDTRIP_H */
diff --git a/TAO/performance-tests/Thread_Pool_Latency/Worker_Thread.cpp b/TAO/performance-tests/Thread_Pool_Latency/Worker_Thread.cpp
deleted file mode 100644
index e485bb2b843..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/Worker_Thread.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// $Id$
-//
-#include "Worker_Thread.h"
-
-ACE_RCSID(Thread_Pool_Latency, Worker_Thread, "$Id$")
-
-Worker_Thread::Worker_Thread (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-int
-Worker_Thread::svc (void)
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY {} ACE_ENDTRY;
- return 0;
-}
diff --git a/TAO/performance-tests/Thread_Pool_Latency/client.cpp b/TAO/performance-tests/Thread_Pool_Latency/client.cpp
deleted file mode 100644
index 643f541a53f..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/client.cpp
+++ /dev/null
@@ -1,149 +0,0 @@
-// $Id$
-
-#include "Client_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/High_Res_Timer.h"
-#include "ace/Sched_Params.h"
-#include "ace/Stats.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Thread_Pool_Latency, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int niterations = 1000;
-int do_shutdown = 1;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'x':
- do_shutdown = 0;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- niterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <niterations> "
- "-x (disable shutdown) "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "client (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "client (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Roundtrip_var roundtrip =
- Test::Roundtrip::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (roundtrip.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
- }
-
- ACE_DEBUG ((LM_DEBUG, "Starting threads\n"));
-
- Client_Task task0(roundtrip.in (), niterations);
- Client_Task task1(roundtrip.in (), niterations);
- Client_Task task2(roundtrip.in (), niterations);
- Client_Task task3(roundtrip.in (), niterations);
-
- ACE_hrtime_t test_start = ACE_OS::gethrtime ();
- task0.activate(THR_NEW_LWP | THR_JOINABLE);
- task1.activate(THR_NEW_LWP | THR_JOINABLE);
- task2.activate(THR_NEW_LWP | THR_JOINABLE);
- task3.activate(THR_NEW_LWP | THR_JOINABLE);
-
- task0.thr_mgr()->wait ();
- ACE_hrtime_t test_end = ACE_OS::gethrtime ();
-
- ACE_DEBUG ((LM_DEBUG, "Threads finished\n"));
-
- ACE_DEBUG ((LM_DEBUG, "High resolution timer calibration...."));
- ACE_UINT32 gsf = ACE_High_Res_Timer::global_scale_factor ();
- ACE_DEBUG ((LM_DEBUG, "done\n"));
-
- ACE_Basic_Stats totals;
- task0.accumulate_and_dump (totals, "Task[0]", gsf);
- task1.accumulate_and_dump (totals, "Task[1]", gsf);
- task2.accumulate_and_dump (totals, "Task[2]", gsf);
- task3.accumulate_and_dump (totals, "Task[3]", gsf);
-
- totals.dump_results ("Total", gsf);
-
- ACE_Throughput_Stats::dump_throughput ("Total", gsf,
- test_end - test_start,
- totals.samples_count ());
-
- if (do_shutdown)
- {
- roundtrip->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Thread_Pool_Latency/server.cpp b/TAO/performance-tests/Thread_Pool_Latency/server.cpp
deleted file mode 100644
index bcacaf713c2..00000000000
--- a/TAO/performance-tests/Thread_Pool_Latency/server.cpp
+++ /dev/null
@@ -1,139 +0,0 @@
-// $Id$
-
-#include "Roundtrip.h"
-#include "Worker_Thread.h"
-#include "ace/Get_Opt.h"
-#include "ace/Sched_Params.h"
-
-#include "tao/Strategies/advanced_resource.h"
-
-ACE_RCSID(Thread_Pool_Latency, server, "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int priority =
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
- + ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
- priority = ACE_Sched_Params::next_priority (ACE_SCHED_FIFO,
- priority);
- // Enable FIFO scheduling, e.g., RT scheduling class on Solaris.
-
- if (ACE_OS::sched_params (ACE_Sched_Params (ACE_SCHED_FIFO,
- priority,
- ACE_SCOPE_PROCESS)) != 0)
- {
- if (ACE_OS::last_error () == EPERM)
- {
- ACE_DEBUG ((LM_DEBUG,
- "server (%P|%t): user is not superuser, "
- "test runs in time-shared class\n"));
- }
- else
- ACE_ERROR ((LM_ERROR,
- "server (%P|%t): sched_params failed\n"));
- }
-
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Roundtrip *roundtrip_impl;
- ACE_NEW_RETURN (roundtrip_impl,
- Roundtrip (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
-
- Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (roundtrip.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Worker_Thread worker (orb.in ());
-
- worker.activate (THR_NEW_LWP | THR_JOINABLE, 4, 1);
- worker.thr_mgr ()->wait ();
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/performance-tests/Throughput/Makefile.am b/TAO/performance-tests/Throughput/Makefile.am
index cf3fb7c3383..22418be4cd2 100644
--- a/TAO/performance-tests/Throughput/Makefile.am
+++ b/TAO/performance-tests/Throughput/Makefile.am
@@ -16,8 +16,6 @@ TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
TAO_ROOT = $(top_srcdir)
-noinst_PROGRAMS =
-
## Makefile.Throughput_Idl.am
BUILT_SOURCES = \
@@ -50,14 +48,9 @@ Test-stamp: $(srcdir)/Test.idl $(TAO_IDL_DEP)
@touch $@
-noinst_HEADERS = \
- Test.idl
-
## Makefile.Throughput_Client.am
-if !BUILD_ACE_FOR_TAO
-
-noinst_PROGRAMS += client
+noinst_PROGRAMS = client
client_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -77,12 +70,8 @@ client_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Throughput_Server.am
-if !BUILD_ACE_FOR_TAO
-
noinst_PROGRAMS += server
server_CPPFLAGS = \
@@ -107,8 +96,6 @@ server_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/TAO/performance-tests/Throughput/client.cpp b/TAO/performance-tests/Throughput/client.cpp
index 9d879e772d0..f690c2cdff7 100644
--- a/TAO/performance-tests/Throughput/client.cpp
+++ b/TAO/performance-tests/Throughput/client.cpp
@@ -16,7 +16,7 @@ int do_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:b:i:n:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:b:i:n:x");
int c;
while ((c = get_opts ()) != -1)
@@ -59,7 +59,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/Throughput/server.cpp b/TAO/performance-tests/Throughput/server.cpp
index 68afc375a0d..2470b9d4492 100644
--- a/TAO/performance-tests/Throughput/server.cpp
+++ b/TAO/performance-tests/Throughput/server.cpp
@@ -11,7 +11,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,7 +34,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_TRY_NEW_ENV
{
diff --git a/TAO/performance-tests/perf.mwc b/TAO/performance-tests/perf.mwc
index dd297256b34..c4f1602ccc3 100644
--- a/TAO/performance-tests/perf.mwc
+++ b/TAO/performance-tests/perf.mwc
@@ -2,4 +2,5 @@
// $Id$
workspace {
+ cmdline += -base no_wchar
}
diff --git a/TAO/tao/Abstract_Servant_Base.cpp b/TAO/tao/Abstract_Servant_Base.cpp
index 1e48a102f8c..adc1b27ec4a 100644
--- a/TAO/tao/Abstract_Servant_Base.cpp
+++ b/TAO/tao/Abstract_Servant_Base.cpp
@@ -6,8 +6,6 @@ ACE_RCSID (tao,
Abstract_Servant_Base,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Abstract_ServantBase::TAO_Abstract_ServantBase (void)
{
// No-Op.
@@ -27,5 +25,3 @@ TAO_Abstract_ServantBase & TAO_Abstract_ServantBase::operator= (const TAO_Abstra
{
return *this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Abstract_Servant_Base.h b/TAO/tao/Abstract_Servant_Base.h
index f84b36f3630..3ff31187f77 100644
--- a/TAO/tao/Abstract_Servant_Base.h
+++ b/TAO/tao/Abstract_Servant_Base.h
@@ -32,8 +32,6 @@
#include "tao/CORBA_methods.h"
#include "tao/Pseudo_VarOut_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ServerRequest;
class TAO_Stub;
class TAO_Abstract_ServantBase;
@@ -171,7 +169,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Acceptor_Filter.cpp b/TAO/tao/Acceptor_Filter.cpp
index e0412bc4c07..2a7ca91f360 100644
--- a/TAO/tao/Acceptor_Filter.cpp
+++ b/TAO/tao/Acceptor_Filter.cpp
@@ -4,10 +4,7 @@
ACE_RCSID(tao, Acceptor_Filter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Acceptor_Filter::~TAO_Acceptor_Filter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Acceptor_Filter.h b/TAO/tao/Acceptor_Filter.h
index bfb1a189dd0..aab2bad47fb 100644
--- a/TAO/tao/Acceptor_Filter.h
+++ b/TAO/tao/Acceptor_Filter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class ObjectKey;
@@ -64,7 +62,5 @@ public:
virtual int encode_endpoints (TAO_MProfile &mprofile) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ACCEPTOR_FILTER_H */
diff --git a/TAO/tao/Acceptor_Impl.cpp b/TAO/tao/Acceptor_Impl.cpp
index f1b5d150049..2286ae6c4fd 100644
--- a/TAO/tao/Acceptor_Impl.cpp
+++ b/TAO/tao/Acceptor_Impl.cpp
@@ -25,15 +25,17 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Thread_Per_Connection_Handler.h"
-#include "tao/Server_Strategy_Factory.h"
-#include "tao/ORB_Core.h"
-#include "tao/Transport_Cache_Manager.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Transport.h"
-#include "tao/debug.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Thread_Per_Connection_Handler.h"
+#include "Server_Strategy_Factory.h"
+#include "ORB_Core.h"
+#include "Transport_Cache_Manager.h"
+#include "Thread_Lane_Resources.h"
+#include "Transport.h"
+#include "debug.h"
+
+ACE_RCSID (tao,
+ Acceptor_Impl,
+ "$Id$")
//////////////////////////////////////////////////////////////////////////////
@@ -211,6 +213,4 @@ TAO_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::accept_svc_handler (SVC_H
/////////////////////////////////////////////////////////////////////
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ACCEPTOR_IMPL_CPP */
diff --git a/TAO/tao/Acceptor_Impl.h b/TAO/tao/Acceptor_Impl.h
index 1d2b60e3505..ac978b8167d 100644
--- a/TAO/tao/Acceptor_Impl.h
+++ b/TAO/tao/Acceptor_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_ORB_Core;
@@ -107,8 +105,6 @@ protected:
TAO_ORB_Core *orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "tao/Acceptor_Impl.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/TAO/tao/Acceptor_Registry.cpp b/TAO/tao/Acceptor_Registry.cpp
index 4be1b0d7920..9187303f3da 100644
--- a/TAO/tao/Acceptor_Registry.cpp
+++ b/TAO/tao/Acceptor_Registry.cpp
@@ -31,8 +31,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Acceptor_Registry::TAO_Acceptor_Registry (void)
: acceptors_ (0),
size_ (0)
@@ -164,7 +162,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) Invalid endpoint ")
ACE_TEXT ("specification: <%s>.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (iop.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (iop.c_str ())));
}
ACE_THROW_RETURN (CORBA::BAD_PARAM (
@@ -253,7 +251,7 @@ TAO_Acceptor_Registry::open (TAO_ORB_Core *orb_core,
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) Invalid endpoint ")
ACE_TEXT ("specification: <%s>.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (iop.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (iop.c_str ())));
}
ACE_THROW_RETURN (CORBA::BAD_PARAM (
@@ -392,7 +390,7 @@ int TAO_Acceptor_Registry::open_default (TAO_ORB_Core *orb_core,
LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to create ")
ACE_TEXT ("an acceptor for <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((*i)->protocol_name ().c_str ())
+ ACE_TEXT_TO_TCHAR_IN ((*i)->protocol_name ().c_str ())
));
}
@@ -433,7 +431,7 @@ int TAO_Acceptor_Registry::open_default (TAO_ORB_Core *orb_core,
LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to create ")
ACE_TEXT ("an acceptor for <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((*i)->protocol_name ().c_str ())
+ ACE_TEXT_TO_TCHAR_IN ((*i)->protocol_name ().c_str ())
));
}
@@ -562,7 +560,7 @@ TAO_Acceptor_Registry::open_default (TAO_ORB_Core *orb_core,
LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to create ")
ACE_TEXT ("an acceptor for <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((*factory)->protocol_name ().c_str ())
+ ACE_TEXT_TO_TCHAR_IN ((*factory)->protocol_name ().c_str ())
));
}
@@ -603,7 +601,7 @@ TAO_Acceptor_Registry::open_default_i (TAO_ORB_Core *orb_core,
LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to open ")
ACE_TEXT ("default acceptor for <%s>%p\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((*factory)->protocol_name ().c_str ()),
+ ACE_TEXT_TO_TCHAR_IN ((*factory)->protocol_name ().c_str ()),
ACE_TEXT ("")
));
}
@@ -764,7 +762,7 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to create ")
ACE_TEXT ("an acceptor for <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((*factory)->protocol_name ().c_str ())
+ ACE_TEXT_TO_TCHAR_IN ((*factory)->protocol_name ().c_str ())
));
}
@@ -858,7 +856,7 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
ACE_TEXT ("TAO (%P|%t) ")
ACE_TEXT ("unable to open acceptor ")
ACE_TEXT ("for <%s>%p\n"),
- ACE_TEXT_CHAR_TO_TCHAR (address.c_str ()),
+ ACE_TEXT_TO_TCHAR_IN (address.c_str ()),
ACE_TEXT ("")));
}
@@ -880,7 +878,7 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to create ")
ACE_TEXT ("an acceptor for <%s>.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (address.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (address.c_str ())));
}
ACE_THROW_RETURN (CORBA::NO_MEMORY (
@@ -895,5 +893,3 @@ TAO_Acceptor_Registry::open_i (TAO_ORB_Core *orb_core,
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Acceptor_Registry.h b/TAO/tao/Acceptor_Registry.h
index 7d7bee02a2d..e51d9b32846 100644
--- a/TAO/tao/Acceptor_Registry.h
+++ b/TAO/tao/Acceptor_Registry.h
@@ -27,13 +27,9 @@
#include "tao/Exception.h"
#include "tao/params.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Forward declarations.
class ACE_Addr;
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Acceptor;
class TAO_Acceptor_Filter;
@@ -138,10 +134,9 @@ private:
ACE_ENV_ARG_DECL);
private:
-
// The acceptor registry should not be copied.
- TAO_Acceptor_Registry (const TAO_Acceptor_Registry&);
- void operator= (const TAO_Acceptor_Registry&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_Acceptor_Registry (const TAO_Acceptor_Registry&))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Acceptor_Registry&))
private:
/// List of acceptors that are currently open.
@@ -151,8 +146,6 @@ private:
size_t size_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
#include "tao/Acceptor_Registry.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Acceptor_Registry.i b/TAO/tao/Acceptor_Registry.i
index b086cbf1c1b..4a98e902fc1 100644
--- a/TAO/tao/Acceptor_Registry.i
+++ b/TAO/tao/Acceptor_Registry.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_AcceptorSetIterator
TAO_Acceptor_Registry::begin (void)
{
@@ -15,5 +12,3 @@ TAO_Acceptor_Registry::end (void)
{
return this->acceptors_ + this->size_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Adapter.cpp b/TAO/tao/Adapter.cpp
index d85ab3b7bac..f7eabbc56c0 100644
--- a/TAO/tao/Adapter.cpp
+++ b/TAO/tao/Adapter.cpp
@@ -1,15 +1,12 @@
// $Id$
-#include "tao/Adapter.h"
+#include "Adapter.h"
ACE_RCSID (tao,
Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Adapter::~TAO_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Adapter.h b/TAO/tao/Adapter.h
index 3a46c4a64b3..5740575de0c 100644
--- a/TAO/tao/Adapter.h
+++ b/TAO/tao/Adapter.h
@@ -24,8 +24,6 @@
#include "tao/CORBA_methods.h"
#include "tao/Pseudo_VarOut_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
typedef TAO_Pseudo_Var_T<Object> Object_var;
@@ -104,13 +102,12 @@ public:
/// Create a collocated object using the given profile and stub.
virtual CORBA::Object_ptr create_collocated_object (TAO_Stub *,
const TAO_MProfile &) = 0;
- /// Initialize a collocated object using the given stub
+ /// Initialize a collocated object using the given stub and object
/// pointer for lazily evaluated object references.
- virtual CORBA::Long initialize_collocated_object (TAO_Stub *) = 0;
+ virtual CORBA::Long initialize_collocated_object (TAO_Stub *,
+ CORBA::Object_ptr) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ADAPTER_H */
diff --git a/TAO/tao/Adapter_Factory.cpp b/TAO/tao/Adapter_Factory.cpp
index 104a5662569..99c8ea348d9 100644
--- a/TAO/tao/Adapter_Factory.cpp
+++ b/TAO/tao/Adapter_Factory.cpp
@@ -1,13 +1,10 @@
// $Id$
-#include "tao/Adapter_Factory.h"
+#include "Adapter_Factory.h"
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Adapter_Factory::~TAO_Adapter_Factory (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Adapter_Factory.h b/TAO/tao/Adapter_Factory.h
index 8fa53f30628..fc4d8d13b82 100644
--- a/TAO/tao/Adapter_Factory.h
+++ b/TAO/tao/Adapter_Factory.h
@@ -16,18 +16,12 @@
#include /**/ "ace/pre.h"
#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/Service_Object.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Adapter;
class TAO_ORB_Core;
@@ -41,8 +35,6 @@ public:
virtual TAO_Adapter *create (TAO_ORB_Core *orb_core) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ADAPTER_FACTORY_H */
diff --git a/TAO/tao/Adapter_Registry.cpp b/TAO/tao/Adapter_Registry.cpp
index 4096cb515bb..0f154f49f01 100644
--- a/TAO/tao/Adapter_Registry.cpp
+++ b/TAO/tao/Adapter_Registry.cpp
@@ -1,11 +1,10 @@
// $Id$
-#include "tao/Object.h"
-#include "tao/Stub.h"
-#include "tao/Adapter_Registry.h"
-#include "tao/Adapter.h"
-#include "tao/SystemException.h"
-#include "tao/debug.h"
+#include "Object.h"
+#include "Adapter_Registry.h"
+#include "Adapter.h"
+#include "SystemException.h"
+#include "debug.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
@@ -14,8 +13,6 @@ ACE_RCSID (tao,
Adapter_Registry,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Adapter_Registry::TAO_Adapter_Registry (TAO_ORB_Core *oc)
: orb_core_ (oc),
adapters_capacity_ (16), // @@ Make it configurable
@@ -53,7 +50,7 @@ TAO_Adapter_Registry::close (int wait_for_completion
if (TAO_debug_level > 3)
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception in TAO_Adapter_Registry::close ()");
+ "Exception in TAO_Adapter_Registry::close () \n");
}
return;
}
@@ -163,38 +160,22 @@ TAO_Adapter_Registry::create_collocated_object (TAO_Stub *stub,
this->adapters_[i]->create_collocated_object (stub,
mprofile);
if (x != 0)
- {
- if (!stub->collocated_servant ())
- {
- // This adapter created an object but it was not able to locate
- // a servant so we need to give the rest of the adapters a chance to
- // initialise the stub and find a servant or forward us or whatever.
- for (CORBA::Long go_on = 1; go_on && i != this->adapters_count_; ++i)
- {
- // initialize_collocated_object only returns 0 if it has completely
- // initialised the object.
- go_on = this->adapters_[i]->initialize_collocated_object (stub);
- }
- }
- return x;
- }
+ return x;
}
return 0;
}
CORBA::Long
-TAO_Adapter_Registry::initialize_collocated_object (TAO_Stub *stub)
+TAO_Adapter_Registry::initialize_collocated_object (TAO_Stub *stub,
+ CORBA::Object_ptr obj)
{
for (size_t i = 0; i != this->adapters_count_; ++i)
{
int retval =
- this->adapters_[i]->initialize_collocated_object (stub);
- if (retval == 0)
- {
- // initialize_collocated_object only returns 0 if it has completely
- // initialised the object. We can return early.
- return retval;
- }
+ this->adapters_[i]->initialize_collocated_object (stub,
+ obj);
+ if (retval != 0)
+ return retval;
}
return 0;
}
@@ -212,4 +193,3 @@ TAO_Adapter_Registry::find_adapter (const char *name) const
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Adapter_Registry.h b/TAO/tao/Adapter_Registry.h
index 5572d422a3f..e184f1a81ca 100644
--- a/TAO/tao/Adapter_Registry.h
+++ b/TAO/tao/Adapter_Registry.h
@@ -29,8 +29,6 @@
#include "tao/CORBA_methods.h"
#include "tao/Pseudo_VarOut_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
typedef TAO_Pseudo_Var_T<Object> Object_var;
@@ -95,7 +93,8 @@ public:
/// Initialize a collocated object using the given stub and object
/// pointer for lazily evaluated object references.
- CORBA::Long initialize_collocated_object (TAO_Stub *);
+ CORBA::Long initialize_collocated_object (TAO_Stub *,
+ CORBA::Object_ptr o);
/// Fetch the adapter named @a name
TAO_Adapter *find_adapter (const char *name) const;
@@ -114,8 +113,6 @@ private:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Allocator.h b/TAO/tao/Allocator.h
index ec6567fc0dd..65d0465d4fe 100644
--- a/TAO/tao/Allocator.h
+++ b/TAO/tao/Allocator.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -19,10 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -44,7 +40,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ALLOCATOR_H */
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode.cpp b/TAO/tao/AnyTypeCode/Alias_TypeCode.cpp
index d968f65b205..7a27a68e747 100644
--- a/TAO/tao/AnyTypeCode/Alias_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode.cpp
@@ -15,7 +15,6 @@
#include "ace/Dynamic_Service.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
typename TypeCodeType,
@@ -199,6 +198,4 @@ TAO::TypeCode::Alias<StringType,
Traits<StringType>::get_typecode (this->content_type_));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ALIAS_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode.h b/TAO/tao/AnyTypeCode/Alias_TypeCode.h
index 201f3f001fc..e0d5dd2d06a 100644
--- a/TAO/tao/AnyTypeCode/Alias_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode.h
@@ -27,7 +27,6 @@
#include "tao/TypeCodeFactory_Adapter.h"
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -124,8 +123,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Alias_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode.inl b/TAO/tao/AnyTypeCode/Alias_TypeCode.inl
index 0be28aa9d70..fb692130538 100644
--- a/TAO/tao/AnyTypeCode/Alias_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename StringType,
typename TypeCodeType,
@@ -27,5 +26,3 @@ TAO::TypeCode::Alias<StringType,
, content_type_ (tc)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp
index 46baeb1705f..bad91cccc89 100644
--- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+#include "Alias_TypeCode_Static.h"
#ifndef __ACE_INLINE__
-# include "tao/AnyTypeCode/Alias_TypeCode_Static.inl"
+# include "Alias_TypeCode_Static.inl"
#endif /* !__ACE_INLINE__ */
-#include "tao/AnyTypeCode/TypeCode_Traits.h"
+#include "TypeCode_Traits.h"
#include "tao/ORB_Core.h"
#include "tao/CDR.h"
@@ -19,7 +19,6 @@ ACE_RCSID (tao,
Alias_TypeCode_Static,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO::TypeCode::Alias<char const *,
@@ -174,5 +173,3 @@ TAO::TypeCode::Alias<char const *,
CORBA::TypeCode::_duplicate (
Traits<char const *>::get_typecode (this->content_type_));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h
index ce78541df83..92541682efc 100644
--- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.h
@@ -27,7 +27,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -122,8 +121,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Alias_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.inl
index 1be08b55121..a2665f5e461 100644
--- a/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Alias_TypeCode_Static.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::TypeCode::Alias<char const *,
CORBA::TypeCode_ptr const *,
@@ -18,5 +16,3 @@ TAO::TypeCode::Alias<char const *,
, content_type_ (tc)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any.cpp b/TAO/tao/AnyTypeCode/Any.cpp
index cc1338b633f..0095966e1c6 100644
--- a/TAO/tao/AnyTypeCode/Any.cpp
+++ b/TAO/tao/AnyTypeCode/Any.cpp
@@ -25,8 +25,6 @@ ACE_RCSID (tao,
Any,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
using namespace TAO;
CORBA::Any::Any (void)
@@ -275,7 +273,7 @@ operator>> (TAO_InputCDR &cdr, CORBA::Any &any)
if ((cdr >> tc.out ()) == 0)
{
- return false;
+ return 0;
}
ACE_TRY_NEW_ENV
@@ -283,7 +281,7 @@ operator>> (TAO_InputCDR &cdr, CORBA::Any &any)
TAO::Unknown_IDL_Type *impl = 0;
ACE_NEW_RETURN (impl,
TAO::Unknown_IDL_Type (tc.in ()),
- false);
+ 0);
any.replace (impl);
impl->_tao_decode (cdr
@@ -292,11 +290,11 @@ operator>> (TAO_InputCDR &cdr, CORBA::Any &any)
}
ACE_CATCH (CORBA::Exception, ex)
{
- return false;
+ return 0;
}
ACE_ENDTRY;
- return true;
+ return 1;
}
// =======================================================================
@@ -357,7 +355,7 @@ CORBA::Any::operator<<= (CORBA::Any::from_string s)
void
CORBA::Any::operator<<= (CORBA::Any::from_wstring ws)
{
- if (ws.bound_ > 0 && ws.val_ != 0 && ACE_OS::wslen (ws.val_) > ws.bound_)
+ if (ws.bound_ > 0 && ws.val_ != 0 && ACE_OS::strlen (ws.val_) > ws.bound_)
{
return;
}
@@ -768,8 +766,8 @@ namespace TAO
) const
{
_tao_elem = CORBA::Object::_duplicate (this->value_);
- return true;
+ return 1;
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/AnyTypeCode/Any.h b/TAO/tao/AnyTypeCode/Any.h
index 6100e206a89..38e3936b444 100644
--- a/TAO/tao/AnyTypeCode/Any.h
+++ b/TAO/tao/AnyTypeCode/Any.h
@@ -29,8 +29,6 @@
#include "ace/CDR_Stream.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class Any_Impl;
@@ -325,14 +323,10 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &,
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &,
const CORBA::WChar *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Any.inl"
#else
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Copying versions of insertion operators for basic types
/// must also be defined for CORBA::Any_var.
@@ -397,8 +391,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any_var &,
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any_var &,
CORBA::Any::to_object);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/AnyTypeCode/Any.inl b/TAO/tao/AnyTypeCode/Any.inl
index dd987ea89f5..281074ede88 100644
--- a/TAO/tao/AnyTypeCode/Any.inl
+++ b/TAO/tao/AnyTypeCode/Any.inl
@@ -2,9 +2,6 @@
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO::Any_Impl *
CORBA::Any::impl (void) const
{
@@ -369,5 +366,3 @@ CORBA::Any_out::operator-> (void)
{
return this->ptr_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/AnySeq.pidl b/TAO/tao/AnyTypeCode/AnySeq.pidl
index f5e60ba8edd..fb3a570b657 100644
--- a/TAO/tao/AnyTypeCode/AnySeq.pidl
+++ b/TAO/tao/AnyTypeCode/AnySeq.pidl
@@ -13,8 +13,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* AnySeq.pidl
*
*/
diff --git a/TAO/tao/AnyTypeCode/AnySeqA.cpp b/TAO/tao/AnyTypeCode/AnySeqA.cpp
index f379a5330db..4b87880c61f 100644
--- a/TAO/tao/AnyTypeCode/AnySeqA.cpp
+++ b/TAO/tao/AnyTypeCode/AnySeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/AnySeqA.h"
+#include "AnySeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/AnySeqA.h b/TAO/tao/AnyTypeCode/AnySeqA.h
index 644c4af252f..16f1b2288f1 100644
--- a/TAO/tao/AnyTypeCode/AnySeqA.h
+++ b/TAO/tao/AnyTypeCode/AnySeqA.h
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
// TAO_IDL - Generated from
@@ -93,8 +91,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/AnySeqC.cpp b/TAO/tao/AnyTypeCode/AnySeqC.cpp
index da850503e43..f04c69e6e47 100644
--- a/TAO/tao/AnyTypeCode/AnySeqC.cpp
+++ b/TAO/tao/AnyTypeCode/AnySeqC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/AnyTypeCode/AnySeqC.h"
+#include "AnySeqC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -171,5 +169,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_AnySeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/AnySeqC.h b/TAO/tao/AnyTypeCode/AnySeqC.h
index bb18f8e402a..12b744d0be4 100644
--- a/TAO/tao/AnyTypeCode/AnySeqC.h
+++ b/TAO/tao/AnyTypeCode/AnySeqC.h
@@ -67,8 +67,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -166,8 +164,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp
index 86a170d7639..0e35d292055 100644
--- a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp
+++ b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h"
#include "tao/AnyTypeCode/SystemExceptionA.h"
@@ -6,12 +6,10 @@
#include "tao/AnyTypeCode/PolicyA.h"
#include "tao/AnyTypeCode/Any.h"
-ACE_RCSID (AnyTypeCode,
+ACE_RCSID (tao,
TAO_AnyTypeCode_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#define STANDARD_EXCEPTION_LIST \
TAO_SYSTEM_EXCEPTION (UNKNOWN) \
TAO_SYSTEM_EXCEPTION (BAD_PARAM) \
@@ -92,42 +90,6 @@ TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::Short va
}
void
-TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::UShort value)
-{
- (*any) <<= value;
-}
-
-void
-TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::Float value)
-{
- (*any) <<= value;
-}
-
-void
-TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::Double value)
-{
- (*any) <<= value;
-}
-
-void
-TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::LongLong value)
-{
- (*any) <<= value;
-}
-
-void
-TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::ULongLong value)
-{
- (*any) <<= value;
-}
-
-void
-TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::LongDouble value)
-{
- (*any) <<= value;
-}
-
-void
TAO_AnyTypeCode_Adapter_Impl::insert_into_any (CORBA::Any * any, CORBA::Policy_ptr policy)
{
(*any) <<= policy;
@@ -177,7 +139,6 @@ TAO_AnyTypeCode_Adapter_Impl::Initializer (void)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DEFINE (
TAO_AnyTypeCode_Adapter_Impl,
diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h
index 389623b086c..ccee6c0a090 100644
--- a/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h
+++ b/TAO/tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h
@@ -25,8 +25,6 @@
#include "tao/AnyTypeCode_Adapter.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_AnyTypeCode_Adapter
*/
@@ -96,18 +94,6 @@ ANYTYPECODE__EXCEPTION_LIST
virtual void insert_into_any (CORBA::Any * any, CORBA::Short value);
- virtual void insert_into_any (CORBA::Any * any, CORBA::UShort value);
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::Float value);
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::Double value);
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::LongLong value);
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::ULongLong value);
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::LongDouble value);
-
virtual void insert_into_any (CORBA::Any * any, CORBA::Policy_ptr policy);
virtual void insert_into_any (CORBA::Any * any, CORBA::Policy_ptr * policy);
@@ -123,8 +109,6 @@ ANYTYPECODE__EXCEPTION_LIST
virtual void insert_into_any (CORBA::Any * any, ACE_OutputCDR::from_boolean value);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_AnyTypeCode_Adapter_Impl)
ACE_FACTORY_DECLARE (TAO_AnyTypeCode, TAO_AnyTypeCode_Adapter_Impl)
diff --git a/TAO/tao/AnyTypeCode/AnyTypeCode_methods.h b/TAO/tao/AnyTypeCode/AnyTypeCode_methods.h
index d954af4b0ad..92ddfa65a0b 100644
--- a/TAO/tao/AnyTypeCode/AnyTypeCode_methods.h
+++ b/TAO/tao/AnyTypeCode/AnyTypeCode_methods.h
@@ -30,8 +30,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class NamedValue;
@@ -53,8 +51,6 @@ namespace CORBA
TAO_NAMESPACE_INLINE_FUNCTION void release (TypeCode_ptr);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANYTYPECODE_METHODS_H */
diff --git a/TAO/tao/AnyTypeCode/Any_Arg_Traits.h b/TAO/tao/AnyTypeCode/Any_Arg_Traits.h
index 085a068aa6b..26e4b66a844 100644
--- a/TAO/tao/AnyTypeCode/Any_Arg_Traits.h
+++ b/TAO/tao/AnyTypeCode/Any_Arg_Traits.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -25,8 +25,6 @@
#include "tao/Var_Size_Argument_T.h"
#include "tao/Arg_Traits_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -49,8 +47,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANY_ARG_TRAITS_H */
diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp
index ad9c1a3470e..258c469dd0e 100644
--- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_ANY_ARRAY_IMPL_T_CPP
-#define TAO_ANY_ARRAY_IMPL_T_CPP
+#ifndef TAO_ANY_ARRAY_IMPL_T_C
+#define TAO_ANY_ARRAY_IMPL_T_C
#include "tao/AnyTypeCode/Any_Array_Impl_T.h"
#include "tao/AnyTypeCode/Any.h"
@@ -18,7 +18,9 @@
# include "tao/AnyTypeCode/Any_Array_Impl_T.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Any_Array_Impl_T,
+ "$Id$")
template<typename T_slice, typename T_forany>
TAO::Any_Array_Impl_T<T_slice, T_forany>::Any_Array_Impl_T (
@@ -65,14 +67,14 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any,
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_ptr any_tc = any._tao_get_typecode ();
- CORBA::Boolean const _tao_equiv =
+ const CORBA::Boolean _tao_equiv =
any_tc->equivalent (tc
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (_tao_equiv == false)
+ if (_tao_equiv == 0)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -84,11 +86,11 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
_tao_elem = reinterpret_cast <T_slice*> (narrow_impl->value_);
- return true;
+ return 1;
}
TAO::Any_Array_Impl_T<T_slice, T_forany> *replacement = 0;
@@ -97,7 +99,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any,
ARRAY_ANY_IMPL (destructor,
any_tc,
T_forany::tao_alloc ()),
- false);
+ 0);
auto_ptr<TAO::Any_Array_Impl_T<T_slice, T_forany> > replacement_safety (
replacement
@@ -111,7 +113,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -119,7 +121,7 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::extract (const CORBA::Any & any,
_tao_elem = reinterpret_cast <T_slice*> (replacement->value_);
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
// Duplicated by Any_Impl base class constructor.
@@ -158,6 +160,4 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::_tao_decode (TAO_InputCDR &cdr
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_ANY_ARRAY_IMPL_T_CPP */
+#endif /* TAO_ANY_ARRAY_IMPL_T_C */
diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h
index f7c0d1656ab..4f0d7ce0dee 100644
--- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h
+++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -64,10 +62,13 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Any_Array_Impl_T.inl"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.inl b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.inl
index c64d59e022c..876b658d0ae 100644
--- a/TAO/tao/AnyTypeCode/Any_Array_Impl_T.inl
+++ b/TAO/tao/AnyTypeCode/Any_Array_Impl_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T_slice, typename T_forany>
ACE_INLINE
CORBA::Boolean
@@ -28,5 +26,3 @@ TAO::Any_Array_Impl_T<T_slice, T_forany>::value (void) const
{
return this->value_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
index 1da4200709a..4f390f5be3e 100644
--- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.cpp
@@ -14,8 +14,6 @@ ACE_RCSID (tao,
Any_Basic_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Any_Basic_Impl::Any_Basic_Impl (CORBA::TypeCode_ptr tc,
@@ -109,9 +107,9 @@ namespace TAO
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (!_tao_equiv)
+ if (_tao_equiv == 0)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -123,12 +121,12 @@ namespace TAO
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
Any_Basic_Impl::assign_value (_tao_elem,
narrow_impl);
- return true;
+ return 1;
}
TAO::Any_Basic_Impl *replacement =
@@ -150,7 +148,7 @@ namespace TAO
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading,
static_cast<CORBA::Long> (tck));
@@ -161,7 +159,7 @@ namespace TAO
tck);
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
// Duplicated by Any_Impl base class constructor.
@@ -172,7 +170,7 @@ namespace TAO
}
ACE_ENDTRY;
- return false;
+ return 0;
}
CORBA::Boolean
@@ -382,5 +380,3 @@ namespace TAO
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl.h b/TAO/tao/AnyTypeCode/Any_Basic_Impl.h
index 563a252d54a..34f75baad1d 100644
--- a/TAO/tao/AnyTypeCode/Any_Basic_Impl.h
+++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Any_Basic_Impl.h
@@ -21,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -95,8 +92,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANY_BASIC_IMPL_H */
diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp
index d2871693f43..d5fc92f2467 100644
--- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_ANY_BASIC_IMPL_T_CPP
-#define TAO_ANY_BASIC_IMPL_T_CPP
+#ifndef TAO_ANY_BASIC_IMPL_T_C
+#define TAO_ANY_BASIC_IMPL_T_C
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
#include "tao/AnyTypeCode/Any.h"
@@ -18,7 +18,10 @@
# include "tao/AnyTypeCode/Any_Basic_Impl_T.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Any_Basic_Impl_T,
+ "$Id$")
+
template<typename T>
TAO::Any_Basic_Impl_T<T>::Any_Basic_Impl_T (CORBA::TypeCode_ptr tc,
@@ -56,13 +59,13 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any,
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_ptr any_tc = any._tao_get_typecode ();
- CORBA::Boolean const _tao_equiv = any_tc->equivalent (tc
- ACE_ENV_ARG_PARAMETER);
+ CORBA::Boolean _tao_equiv = any_tc->equivalent (tc
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (_tao_equiv == false)
+ if (_tao_equiv == 0)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -74,11 +77,11 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
_tao_elem = narrow_impl->value_;
- return true;
+ return 1;
}
TAO::Any_Basic_Impl_T<T> *replacement =
@@ -94,7 +97,7 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -102,7 +105,7 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any,
_tao_elem = replacement->value_;
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
// Duplicated by Any_Impl base class constructor.
@@ -113,7 +116,7 @@ TAO::Any_Basic_Impl_T<T>::extract (const CORBA::Any & any,
}
ACE_ENDTRY;
- return false;
+ return 0;
}
template<typename T>
@@ -139,6 +142,4 @@ TAO::Any_Basic_Impl_T<T>::_tao_decode (TAO_InputCDR &cdr
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_ANY_BASIC_IMPL_T_CPP */
+#endif /* TAO_ANY_BASIC_IMPL_T_C */
diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h
index aff9109b34b..d704f87b546 100644
--- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h
+++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -61,10 +59,13 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Any_Basic_Impl_T.inl"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.inl b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.inl
index 1cd0d1627dc..4250b5f4f88 100644
--- a/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.inl
+++ b/TAO/tao/AnyTypeCode/Any_Basic_Impl_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T>
ACE_INLINE
CORBA::Boolean
@@ -28,4 +24,3 @@ TAO::Any_Basic_Impl_T<T>::value (void) const
return &this->value_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
index 59aded80015..0bba1c76c46 100644
--- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.cpp
@@ -21,7 +21,9 @@
# include "tao/AnyTypeCode/Any_Dual_Impl_T.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Any_Dual_Impl_T,
+ "$Id$")
template<typename T>
TAO::Any_Dual_Impl_T<T>::Any_Dual_Impl_T (_tao_destructor destructor,
@@ -110,7 +112,7 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
if (_tao_equiv == 0)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -122,11 +124,11 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
_tao_elem = narrow_impl->value_;
- return true;
+ return 1;
}
T *empty_value = 0;
@@ -150,7 +152,7 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -158,7 +160,7 @@ TAO::Any_Dual_Impl_T<T>::extract (const CORBA::Any & any,
_tao_elem = replacement->value_;
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
// Duplicated by Any_Impl base class constructor.
@@ -197,6 +199,4 @@ TAO::Any_Dual_Impl_T<T>::_tao_decode (TAO_InputCDR &cdr
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ANY_DUAL_IMPL_T_CPP */
diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h
index e09cdad1f77..8c06f69d64c 100644
--- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h
+++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,9 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -77,10 +74,13 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Any_Dual_Impl_T.inl"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.inl b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.inl
index 8e97656a93a..bf3ecd90e33 100644
--- a/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.inl
+++ b/TAO/tao/AnyTypeCode/Any_Dual_Impl_T.inl
@@ -1,10 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T>
ACE_INLINE
CORBA::Boolean
@@ -29,4 +24,3 @@ TAO::Any_Dual_Impl_T<T>::value (void) const
return this->value_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Impl.cpp
index d51a2539146..a0192816d53 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Impl.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/AnyTypeCode/Any_Impl.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/Marshal.h"
+#include "Any_Impl.h"
+#include "TypeCode.h"
+#include "Marshal.h"
#include "tao/CORBA_String.h"
#include "tao/SystemException.h"
@@ -14,8 +14,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Any_Impl::Any_Impl (_tao_destructor destructor,
CORBA::TypeCode_ptr tc,
bool encoded)
@@ -137,4 +135,3 @@ TAO::Any_Impl::encoded (void) const
return this->encoded_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Impl.h b/TAO/tao/AnyTypeCode/Any_Impl.h
index 9eaf83b482d..128072e25cc 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl.h
+++ b/TAO/tao/AnyTypeCode/Any_Impl.h
@@ -1,13 +1,11 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Any_Impl.h
*
* $Id$
*
- * @author Carlos O'Ryan
- * @author Jeff Parsons
+ * @authors Carlos O'Ryan and Jeff Parsons
*/
//=============================================================================
@@ -31,14 +29,10 @@
#include "ace/Thread_Mutex.h"
#include "ace/Atomic_Op.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_OutputCDR;
class TAO_InputCDR;
+class ACE_Message_Block;
namespace CORBA
{
@@ -114,8 +108,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANY_IMPL_H */
diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
index d4afd38e237..f4a04cb568e 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Impl_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_ANY_IMPL_T_CPP
-#define TAO_ANY_IMPL_T_CPP
+#ifndef TAO_ANY_IMPL_T_C
+#define TAO_ANY_IMPL_T_C
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
@@ -19,7 +19,9 @@
# include "tao/AnyTypeCode/Any_Impl_T.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Any_Impl_T,
+ "$Id$")
template<typename T>
TAO::Any_Impl_T<T>::Any_Impl_T (_tao_destructor destructor,
@@ -69,7 +71,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
if (_tao_equiv == 0)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -81,11 +83,11 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
_tao_elem = (T *) narrow_impl->value_;
- return true;
+ return 1;
}
TAO::Any_Impl_T<T> *replacement = 0;
@@ -93,7 +95,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
TAO::Any_Impl_T<T> (destructor,
any_tc,
0),
- false);
+ 0);
auto_ptr<TAO::Any_Impl_T<T> > replacement_safety (replacement);
@@ -105,7 +107,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -113,7 +115,7 @@ TAO::Any_Impl_T<T>::extract (const CORBA::Any & any,
_tao_elem = const_cast<T *> (replacement->value_);
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
// Duplicated by Any_Impl base class constructor.
@@ -152,6 +154,4 @@ TAO::Any_Impl_T<T>::_tao_decode (TAO_InputCDR &cdr
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_ANY_IMPL_T_CPP */
+#endif /* TAO_ANY_IMPL_T_C */
diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Impl_T.h
index bddd912ecc9..d79c5ce2135 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl_T.h
+++ b/TAO/tao/AnyTypeCode/Any_Impl_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -72,8 +70,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Any_Impl_T.inl"
diff --git a/TAO/tao/AnyTypeCode/Any_Impl_T.inl b/TAO/tao/AnyTypeCode/Any_Impl_T.inl
index 3b5b36ab5ed..1bbeebeea78 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl_T.inl
+++ b/TAO/tao/AnyTypeCode/Any_Impl_T.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// These three are overridden in generated code where appropriate.
template<typename T>
@@ -54,4 +51,3 @@ TAO::Any_Impl_T<T>::value (void) const
return this->value_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp
index 544e89127d3..b584831329c 100644
--- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_ANY_SPECIAL_IMPL_T_CPP
-#define TAO_ANY_SPECIAL_IMPL_T_CPP
+#ifndef TAO_ANY_SPECIAL_IMPL_T_C
+#define TAO_ANY_SPECIAL_IMPL_T_C
#include "tao/AnyTypeCode/Any_Special_Impl_T.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
@@ -15,7 +15,9 @@
# include "tao/AnyTypeCode/Any_Special_Impl_T.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Any_Special_Impl_T,
+ "$Id$")
template<typename T, typename from_T, typename to_T>
TAO::Any_Special_Impl_T<T, from_T, to_T>::Any_Special_Impl_T (
@@ -103,7 +105,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any,
if (any_kind != try_kind)
{
- return false;
+ return 0;
}
CORBA::ULong length =
@@ -112,7 +114,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any,
if (length != bound)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -127,11 +129,11 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
_tao_elem = (T *) narrow_impl->value_;
- return true;
+ return 1;
}
TAO::Any_Special_Impl_T<T, from_T, to_T> *replacement = 0;
@@ -140,7 +142,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any,
tc,
0,
bound),
- false);
+ 0);
auto_ptr<TAO::Any_Special_Impl_T<T, from_T, to_T> > replacement_safety (
replacement
@@ -154,7 +156,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -162,7 +164,7 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::extract (const CORBA::Any & any,
_tao_elem = replacement->value_;
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
// Duplicated by Any_Impl base class constructor.
@@ -197,18 +199,10 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- if (this->value_destructor_ != 0)
- {
- (*this->value_destructor_) (this->value_);
- this->value_ = 0;
- }
-
if (! this->demarshal_value (cdr))
{
ACE_THROW (CORBA::MARSHAL ());
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_ANY_T_CPP */
+#endif /* TAO_ANY_T_C */
diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h
index c166c9293ca..c5fe808c64e 100644
--- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h
+++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -66,10 +64,13 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Any_Special_Impl_T.inl"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.inl b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.inl
index cce6dbda782..bc8715b083f 100644
--- a/TAO/tao/AnyTypeCode/Any_Special_Impl_T.inl
+++ b/TAO/tao/AnyTypeCode/Any_Special_Impl_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T, typename from_T, typename to_T>
ACE_INLINE
CORBA::Boolean
@@ -32,4 +28,3 @@ TAO::Any_Special_Impl_T<T, from_T, to_T>::value (void) const
return this->value_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_SystemException.cpp b/TAO/tao/AnyTypeCode/Any_SystemException.cpp
index 2a22d8f256c..d3a4b55193c 100644
--- a/TAO/tao/AnyTypeCode/Any_SystemException.cpp
+++ b/TAO/tao/AnyTypeCode/Any_SystemException.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "tao/AnyTypeCode/Any_SystemException.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
-#include "tao/AnyTypeCode/Marshal.h"
-#include "tao/AnyTypeCode/TypeCode.h"
+#include "Any_SystemException.h"
+#include "Any.h"
+#include "Any_Unknown_IDL_Type.h"
+#include "Marshal.h"
+#include "TypeCode.h"
#include "tao/CDR.h"
#include "tao/Exception.h"
@@ -21,8 +21,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Any_SystemException::Any_SystemException (_tao_destructor destructor,
CORBA::TypeCode_ptr tc,
CORBA::SystemException * const val)
@@ -92,13 +90,13 @@ TAO::Any_SystemException::extract (const CORBA::Any & any,
ACE_TRY_NEW_ENV
{
CORBA::TypeCode_ptr any_tc = any._tao_get_typecode ();
- CORBA::Boolean const _tao_equiv = any_tc->equivalent (tc
- ACE_ENV_ARG_PARAMETER);
+ CORBA::Boolean _tao_equiv = any_tc->equivalent (tc
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (_tao_equiv == false)
+ if (_tao_equiv == 0)
{
- return false;
+ return 0;
}
TAO::Any_Impl *impl = any.impl ();
@@ -110,11 +108,11 @@ TAO::Any_SystemException::extract (const CORBA::Any & any,
if (narrow_impl == 0)
{
- return false;
+ return 0;
}
_tao_elem = narrow_impl->value_;
- return true;
+ return 1;
}
CORBA::SystemException *empty_value = (*f) ();
@@ -124,7 +122,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any,
TAO::Any_SystemException (destructor,
any_tc,
empty_value),
- false);
+ 0);
auto_ptr<TAO::Any_SystemException > replacement_safety (replacement);
@@ -136,7 +134,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any,
// shared by another Any. This copies the state, not the buffer.
TAO_InputCDR for_reading (unk->_tao_get_cdr ());
- CORBA::Boolean const good_decode =
+ CORBA::Boolean good_decode =
replacement->demarshal_value (for_reading);
if (good_decode)
@@ -144,7 +142,7 @@ TAO::Any_SystemException::extract (const CORBA::Any & any,
_tao_elem = replacement->value_;
const_cast<CORBA::Any &> (any).replace (replacement);
replacement_safety.release ();
- return true;
+ return 1;
}
}
ACE_CATCHANY
@@ -181,13 +179,13 @@ TAO::Any_SystemException::marshal_value (TAO_OutputCDR &cdr)
this->value_->_tao_encode (cdr
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- return true;
+ return 1;
}
ACE_CATCHANY
{
}
ACE_ENDTRY;
- return false;
+ return 0;
}
CORBA::Boolean
@@ -198,13 +196,11 @@ TAO::Any_SystemException::demarshal_value (TAO_InputCDR &cdr)
this->value_->_tao_decode (cdr
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- return true;
+ return 1;
}
ACE_CATCHANY
{
}
ACE_ENDTRY;
- return false;
+ return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_SystemException.h b/TAO/tao/AnyTypeCode/Any_SystemException.h
index a26dacfe1c1..2856c6cf3f1 100644
--- a/TAO/tao/AnyTypeCode/Any_SystemException.h
+++ b/TAO/tao/AnyTypeCode/Any_SystemException.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -81,7 +79,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_ANY_SYSTEMEXCEPTION_H*/
diff --git a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp
index 980b311f802..062c906b303 100644
--- a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.cpp
@@ -15,8 +15,6 @@ ACE_RCSID (tao,
Any_Unknown_IDL_Type,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Auto_Ptr<ACE_Lock> TAO::Unknown_IDL_Type::lock_(new ACE_Lock_Adapter<TAO_SYNCH_MUTEX>());
TAO::Unknown_IDL_Type::Unknown_IDL_Type (
@@ -67,16 +65,16 @@ TAO::Unknown_IDL_Type::marshal_value (TAO_OutputCDR &cdr)
if (status != TAO::TRAVERSE_CONTINUE)
{
- return false;
+ return 0;
}
}
ACE_CATCH (CORBA::Exception, ex)
{
- return false;
+ return 0;
}
ACE_ENDTRY;
- return true;
+ return 1;
}
const void *
@@ -295,5 +293,3 @@ TAO::Unknown_IDL_Type::to_abstract_base (CORBA::AbstractBase_ptr &obj) const
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h
index 8a59bee86b0..56d0cb2b1b4 100644
--- a/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h
+++ b/TAO/tao/AnyTypeCode/Any_Unknown_IDL_Type.h
@@ -1,13 +1,11 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Any_Unknown_IDL_Type.h
*
* $Id$
*
- * @author Carlos O'Ryan
- * @author Jeff Parsons
+ * @authors Carlos O'Ryan and Jeff Parsons
*/
//=============================================================================
@@ -25,12 +23,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Char_Codeset_Translator;
class ACE_WChar_Codeset_Translator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -74,8 +68,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANY_UNKNOWN_IDL_TYPE_H */
diff --git a/TAO/tao/AnyTypeCode/BooleanSeqA.cpp b/TAO/tao/AnyTypeCode/BooleanSeqA.cpp
index 99a63b8332a..051cf1ea18d 100644
--- a/TAO/tao/AnyTypeCode/BooleanSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/BooleanSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/BooleanSeqA.h"
+#include "BooleanSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/BooleanSeqA.h b/TAO/tao/AnyTypeCode/BooleanSeqA.h
index 9797a2afa66..e621d14fd31 100644
--- a/TAO/tao/AnyTypeCode/BooleanSeqA.h
+++ b/TAO/tao/AnyTypeCode/BooleanSeqA.h
@@ -37,8 +37,6 @@
#include "tao/BooleanSeqC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::BooleanSeq*); /
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::BooleanSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::BooleanSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/Bounds.pidl b/TAO/tao/AnyTypeCode/Bounds.pidl
index 707ab2b8158..c639e285fe5 100644
--- a/TAO/tao/AnyTypeCode/Bounds.pidl
+++ b/TAO/tao/AnyTypeCode/Bounds.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include=TAO_Export.h
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* Bounds.pidl
*
* and then:
diff --git a/TAO/tao/AnyTypeCode/BoundsA.cpp b/TAO/tao/AnyTypeCode/BoundsA.cpp
index 40891d21c2e..097395f4667 100644
--- a/TAO/tao/AnyTypeCode/BoundsA.cpp
+++ b/TAO/tao/AnyTypeCode/BoundsA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/BoundsA.h"
+#include "BoundsA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -147,5 +145,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/BoundsA.h b/TAO/tao/AnyTypeCode/BoundsA.h
index ed91bde89f4..c3f5f3658a2 100644
--- a/TAO/tao/AnyTypeCode/BoundsA.h
+++ b/TAO/tao/AnyTypeCode/BoundsA.h
@@ -62,8 +62,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -147,8 +145,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Bounds
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/BoundsC.cpp b/TAO/tao/AnyTypeCode/BoundsC.cpp
index a4e520aa372..fec4453680a 100644
--- a/TAO/tao/AnyTypeCode/BoundsC.cpp
+++ b/TAO/tao/AnyTypeCode/BoundsC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/AnyTypeCode/BoundsA.h"
+#include "BoundsA.h"
#include "tao/CDR.h"
#include "tao/SystemException.h"
#include "ace/OS_NS_string.h"
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -173,5 +171,3 @@ CORBA::Boolean operator>> (
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/BoundsC.h b/TAO/tao/AnyTypeCode/BoundsC.h
index 68a4721e7dc..b228461b7b0 100644
--- a/TAO/tao/AnyTypeCode/BoundsC.h
+++ b/TAO/tao/AnyTypeCode/BoundsC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -133,8 +131,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Bounds
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/CONV_FRAMEA.cpp b/TAO/tao/AnyTypeCode/CONV_FRAMEA.cpp
index 91fc0a664e3..e93d7b8e7f7 100644
--- a/TAO/tao/AnyTypeCode/CONV_FRAMEA.cpp
+++ b/TAO/tao/AnyTypeCode/CONV_FRAMEA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/CONV_FRAMEA.h"
+#include "CONV_FRAMEA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -427,5 +425,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/CONV_FRAMEA.h b/TAO/tao/AnyTypeCode/CONV_FRAMEA.h
index beffd197c43..cbc76dd89aa 100644
--- a/TAO/tao/AnyTypeCode/CONV_FRAMEA.h
+++ b/TAO/tao/AnyTypeCode/CONV_FRAMEA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CONV_FRAME
{
@@ -108,8 +106,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CONV_FRAME::CodeSetContex
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CONV_FRAME::CodeSetContext *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CONV_FRAME::CodeSetContext *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/CharSeqA.cpp b/TAO/tao/AnyTypeCode/CharSeqA.cpp
index eb3fd68c0e9..e6867cf7452 100644
--- a/TAO/tao/AnyTypeCode/CharSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/CharSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/CharSeqA.h"
+#include "CharSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/CharSeqA.h b/TAO/tao/AnyTypeCode/CharSeqA.h
index 76758080b9e..59c6bfdb1f4 100644
--- a/TAO/tao/AnyTypeCode/CharSeqA.h
+++ b/TAO/tao/AnyTypeCode/CharSeqA.h
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::CharSeq*); // n
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::CharSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::CharSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/CurrentA.cpp b/TAO/tao/AnyTypeCode/CurrentA.cpp
index 0501cc64e20..d7946836b98 100644
--- a/TAO/tao/AnyTypeCode/CurrentA.cpp
+++ b/TAO/tao/AnyTypeCode/CurrentA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/CurrentA.h"
+#include "CurrentA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -37,8 +37,6 @@
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_CORBA_Current (
@@ -53,4 +51,3 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/CurrentA.h b/TAO/tao/AnyTypeCode/CurrentA.h
index 5a505a5776d..e045f6a2882 100644
--- a/TAO/tao/AnyTypeCode/CurrentA.h
+++ b/TAO/tao/AnyTypeCode/CurrentA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -56,8 +54,6 @@ namespace CORBA
} // module CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/DomainA.cpp b/TAO/tao/AnyTypeCode/DomainA.cpp
index 6f6db000bc2..4bf71aa1cae 100644
--- a/TAO/tao/AnyTypeCode/DomainA.cpp
+++ b/TAO/tao/AnyTypeCode/DomainA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/DomainA.h"
+#include "DomainA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -296,5 +294,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/DomainA.h b/TAO/tao/AnyTypeCode/DomainA.h
index 72c5b0f95ac..9f8660d3545 100644
--- a/TAO/tao/AnyTypeCode/DomainA.h
+++ b/TAO/tao/AnyTypeCode/DomainA.h
@@ -58,8 +58,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -119,8 +117,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/DoubleSeqA.cpp b/TAO/tao/AnyTypeCode/DoubleSeqA.cpp
index a67a84fb0b5..79331b8f617 100644
--- a/TAO/tao/AnyTypeCode/DoubleSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/DoubleSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/DoubleSeqA.h"
+#include "DoubleSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/DoubleSeqA.h b/TAO/tao/AnyTypeCode/DoubleSeqA.h
index c905c31a980..f6bb35ddd49 100644
--- a/TAO/tao/AnyTypeCode/DoubleSeqA.h
+++ b/TAO/tao/AnyTypeCode/DoubleSeqA.h
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::DoubleSeq*); //
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::DoubleSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::DoubleSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/Dynamic.pidl b/TAO/tao/AnyTypeCode/Dynamic.pidl
index 6a15c71045e..9cc2be7c43d 100644
--- a/TAO/tao/AnyTypeCode/Dynamic.pidl
+++ b/TAO/tao/AnyTypeCode/Dynamic.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* Dynamic.pidl
*
*/
@@ -25,8 +23,8 @@
// File: Dynamic.idl
// Used primarily for Interceptors
-#include "tao/AnyTypeCode/Dynamic_Parameter.pidl"
-#include "tao/StringSeq.pidl"
+#include "Dynamic_Parameter.pidl"
+#include "StringSeq.pidl"
#ifndef _DYNAMIC_IDL_
#define _DYNAMIC_IDL_
diff --git a/TAO/tao/AnyTypeCode/DynamicA.cpp b/TAO/tao/AnyTypeCode/DynamicA.cpp
index 4f17ea24008..589213436f5 100644
--- a/TAO/tao/AnyTypeCode/DynamicA.cpp
+++ b/TAO/tao/AnyTypeCode/DynamicA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/DynamicA.h"
+#include "DynamicA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -38,8 +38,6 @@
#include "tao/AnyTypeCode/StringSeqA.h"
#include "tao/AnyTypeCode/Dynamic_ParameterA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#ifndef _TAO_TYPECODE_Dynamic_ParameterList_GUARD
#define _TAO_TYPECODE_Dynamic_ParameterList_GUARD
namespace TAO
@@ -287,5 +285,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/DynamicA.h b/TAO/tao/AnyTypeCode/DynamicA.h
index a327a5a461a..944d9d28d76 100644
--- a/TAO/tao/AnyTypeCode/DynamicA.h
+++ b/TAO/tao/AnyTypeCode/DynamicA.h
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
} // module CORBA
@@ -129,8 +127,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::TypeCod
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/DynamicC.cpp b/TAO/tao/AnyTypeCode/DynamicC.cpp
index bb693ede9b8..3b045863a7a 100644
--- a/TAO/tao/AnyTypeCode/DynamicC.cpp
+++ b/TAO/tao/AnyTypeCode/DynamicC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/AnyTypeCode/DynamicC.h"
+#include "DynamicC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -303,5 +301,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_Dynamic_ExceptionList_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/DynamicC.h b/TAO/tao/AnyTypeCode/DynamicC.h
index 0bdd3a59057..76b095d02f0 100644
--- a/TAO/tao/AnyTypeCode/DynamicC.h
+++ b/TAO/tao/AnyTypeCode/DynamicC.h
@@ -70,8 +70,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -253,8 +251,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Dynamic_Parameter.pidl b/TAO/tao/AnyTypeCode/Dynamic_Parameter.pidl
index 038b00daf99..f82dd8ba366 100644
--- a/TAO/tao/AnyTypeCode/Dynamic_Parameter.pidl
+++ b/TAO/tao/AnyTypeCode/Dynamic_Parameter.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* Dynamic_Parameter.pidl
*
*/
@@ -29,7 +27,7 @@
#ifndef _DYNAMIC_PARAMETER_IDL_
#define _DYNAMIC_PARAMETER_IDL_
-#include "tao/ParameterMode.pidl"
+#include <ParameterMode.pidl>
module Dynamic
{
diff --git a/TAO/tao/AnyTypeCode/Dynamic_ParameterA.cpp b/TAO/tao/AnyTypeCode/Dynamic_ParameterA.cpp
index 6376ab32799..df1f94abd24 100644
--- a/TAO/tao/AnyTypeCode/Dynamic_ParameterA.cpp
+++ b/TAO/tao/AnyTypeCode/Dynamic_ParameterA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/Dynamic_ParameterA.h"
+#include "Dynamic_ParameterA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -37,8 +37,6 @@
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#include "tao/AnyTypeCode/ParameterModeA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -124,5 +122,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Dynamic_ParameterA.h b/TAO/tao/AnyTypeCode/Dynamic_ParameterA.h
index facb3803731..25b861466fd 100644
--- a/TAO/tao/AnyTypeCode/Dynamic_ParameterA.h
+++ b/TAO/tao/AnyTypeCode/Dynamic_ParameterA.h
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Dynamic
{
@@ -91,8 +89,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Dyn
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Dynamic_ParameterC.cpp b/TAO/tao/AnyTypeCode/Dynamic_ParameterC.cpp
index 093e3c79f27..b681433ed5e 100644
--- a/TAO/tao/AnyTypeCode/Dynamic_ParameterC.cpp
+++ b/TAO/tao/AnyTypeCode/Dynamic_ParameterC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/AnyTypeCode/Dynamic_ParameterC.h"
+#include "Dynamic_ParameterC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -82,5 +80,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.argument) &&
(strm >> _tao_aggregate.mode);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Dynamic_ParameterC.h b/TAO/tao/AnyTypeCode/Dynamic_ParameterC.h
index e5533c2b7dc..1647bfc6b91 100644
--- a/TAO/tao/AnyTypeCode/Dynamic_ParameterC.h
+++ b/TAO/tao/AnyTypeCode/Dynamic_ParameterC.h
@@ -66,8 +66,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Dynamic
{
@@ -123,8 +121,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>> (TAO_InputCDR &, Dynamic::Param
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp
index 1294bdd0fe6..6f9f5589c15 100644
--- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/AnyTypeCode/Empty_Param_TypeCode.h"
+#include "Empty_Param_TypeCode.h"
#ifndef __ACE_INLINE__
-# include "tao/AnyTypeCode/Empty_Param_TypeCode.inl"
+# include "Empty_Param_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
@@ -12,8 +12,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
bool
TAO::TypeCode::Empty_Param::tao_marshal (TAO_OutputCDR &,
CORBA::ULong) const
@@ -46,7 +44,7 @@ TAO::TypeCode::Empty_Param::equal_i (CORBA::TypeCode_ptr
// Equality has already been established in the
// CORBA::TypeCode base class.
- return true;
+ return 1;
}
CORBA::Boolean
@@ -62,12 +60,12 @@ TAO::TypeCode::Empty_Param::equivalent_i (CORBA::TypeCode_ptr tc
CORBA::TCKind const tc_kind =
TAO::unaliased_kind (tc
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_kind != this->kind_)
- return false;
+ return 0;
- return true;
+ return 1;
}
CORBA::TypeCode_ptr
@@ -83,5 +81,3 @@ TAO::TypeCode::Empty_Param::get_compact_typecode_i (
return &compact_typecode;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h
index 62b9936a1a9..4b39c0cf73a 100644
--- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -90,8 +88,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Empty_Param_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.inl b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.inl
index bfead3de02d..85ec45fd029 100644
--- a/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Empty_Param_TypeCode.inl
@@ -2,12 +2,9 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::TypeCode::Empty_Param::Empty_Param (CORBA::TCKind k)
: CORBA::TypeCode (k)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp b/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp
index b84a50f9b72..112f3cc463e 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.cpp
@@ -15,7 +15,6 @@
# include "tao/AnyTypeCode/Enum_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType, class EnumeratorArrayType, class RefCountPolicy>
bool
@@ -90,10 +89,10 @@ TAO::TypeCode::Enum<StringType,
CORBA::ULong const tc_nenumerators =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nenumerators != this->nenumerators_)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->nenumerators_; ++i)
{
@@ -103,13 +102,13 @@ TAO::TypeCode::Enum<StringType,
Traits<StringType>::get_string (lhs_enumerator);
char const * const rhs_name = tc->member_name (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (ACE_OS::strcmp (lhs_name, rhs_name) != 0)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
template <typename StringType, class EnumeratorArrayType, class RefCountPolicy>
@@ -125,12 +124,12 @@ TAO::TypeCode::Enum<StringType,
CORBA::ULong const tc_nenumerators =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nenumerators != this->nenumerators_)
- return false;
+ return 0;
- return true;
+ return 1;
}
template <typename StringType, class EnumeratorArrayType, class RefCountPolicy>
@@ -219,6 +218,4 @@ TAO::TypeCode::Enum<StringType,
return Traits<StringType>::get_string (this->enumerators_[index]);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_ENUM_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode.h b/TAO/tao/AnyTypeCode/Enum_TypeCode.h
index 64a4d7bf9b0..e85387209d6 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.h
@@ -25,7 +25,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -123,7 +122,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Enum_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode.inl b/TAO/tao/AnyTypeCode/Enum_TypeCode.inl
index dc8d3b6631a..8b8e04f8632 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
class EnumeratorArrayType,
@@ -20,5 +19,3 @@ TAO::TypeCode::Enum<StringType, EnumeratorArrayType, RefCountPolicy>::Enum (
, enumerators_ (enumerators)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp
index 64cd8f00d37..930fb10eaf2 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.cpp
@@ -13,11 +13,10 @@
#endif /* !__ACE_INLINE__ */
-ACE_RCSID (AnyTypeCode,
+ACE_RCSID (tao,
Enum_TypeCode_Static,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO::TypeCode::Enum<char const *,
@@ -87,10 +86,10 @@ TAO::TypeCode::Enum<char const *,
CORBA::ULong const tc_nenumerators =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nenumerators != this->nenumerators_)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->nenumerators_; ++i)
{
@@ -100,13 +99,13 @@ TAO::TypeCode::Enum<char const *,
Traits<char const *>::get_string (lhs_enumerator);
char const * const rhs_name = tc->member_name (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (ACE_OS::strcmp (lhs_name, rhs_name) != 0)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
CORBA::Boolean
@@ -121,12 +120,12 @@ TAO::TypeCode::Enum<char const *,
CORBA::ULong const tc_nenumerators =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nenumerators != this->nenumerators_)
- return false;
+ return 0;
- return true;
+ return 1;
}
CORBA::TypeCode_ptr
@@ -213,5 +212,3 @@ TAO::TypeCode::Enum<char const *,
return Traits<char const *>::get_string (this->enumerators_[index]);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h
index d9f22d44271..e8b78607c85 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.h
@@ -26,7 +26,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -128,7 +127,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Enum_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.inl
index b0f1e6df742..1d2ab5ca8cb 100644
--- a/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Enum_TypeCode_Static.inl
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::TypeCode::Enum<char const *,
char const * const *,
@@ -20,5 +18,3 @@ TAO::TypeCode::Enum<char const *,
, enumerators_ (enumerators)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ExceptionA.cpp b/TAO/tao/AnyTypeCode/ExceptionA.cpp
index 138d2bc2b6d..ba97c942cdb 100644
--- a/TAO/tao/AnyTypeCode/ExceptionA.cpp
+++ b/TAO/tao/AnyTypeCode/ExceptionA.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/AnyTypeCode/ExceptionA.h"
-#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
+#include "ExceptionA.h"
+#include "Any_Dual_Impl_T.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/ORB_Constants.h"
@@ -20,8 +20,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Specializations for CORBA::Exception Any operators.
namespace TAO
{
@@ -44,14 +42,14 @@ namespace TAO
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- return true;
+ return 1;
}
ACE_CATCHANY
{
}
ACE_ENDTRY;
- return false;
+ return 0;
}
template<>
@@ -64,14 +62,14 @@ namespace TAO
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- return true;
+ return 1;
}
ACE_CATCHANY
{
}
ACE_ENDTRY;
- return false;
+ return 0;
}
// This should never get called since we don't have extraction operators
@@ -87,7 +85,7 @@ namespace TAO
const CORBA::Exception *&
)
{
- return false;
+ return 0;
}
}
@@ -118,5 +116,3 @@ operator<<= (CORBA::Any &any, CORBA::Exception *exception)
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ExceptionA.h b/TAO/tao/AnyTypeCode/ExceptionA.h
index 44f6cd6834c..05d608f4403 100644
--- a/TAO/tao/AnyTypeCode/ExceptionA.h
+++ b/TAO/tao/AnyTypeCode/ExceptionA.h
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h"
#include "tao/Exception.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -46,8 +44,6 @@ namespace CORBA
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, const CORBA::Exception &);
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::Exception *);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/"ace/post.h"
#endif /* TAO_EXCEPTIONA_H */
diff --git a/TAO/tao/AnyTypeCode/Fixed_TypeCode.cpp b/TAO/tao/AnyTypeCode/Fixed_TypeCode.cpp
index 0fae62d507c..d0adfdcb7b0 100644
--- a/TAO/tao/AnyTypeCode/Fixed_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Fixed_TypeCode.cpp
@@ -10,7 +10,6 @@
# include "tao/AnyTypeCode/Fixed_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <class RefCountPolicy>
bool
@@ -108,6 +107,5 @@ TAO::TypeCode::Fixed<RefCountPolicy>::fixed_scale_i (
return this->scale_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_FIXED_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Fixed_TypeCode.h b/TAO/tao/AnyTypeCode/Fixed_TypeCode.h
index 3e300cb3658..740ae58de8e 100644
--- a/TAO/tao/AnyTypeCode/Fixed_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Fixed_TypeCode.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -97,8 +95,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Fixed_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Fixed_TypeCode.inl b/TAO/tao/AnyTypeCode/Fixed_TypeCode.inl
index 61aad41d671..9db9ca2b26d 100644
--- a/TAO/tao/AnyTypeCode/Fixed_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Fixed_TypeCode.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class RefCountPolicy>
ACE_INLINE
TAO::TypeCode::Fixed<RefCountPolicy>::Fixed (CORBA::UShort digits,
@@ -14,5 +12,3 @@ TAO::TypeCode::Fixed<RefCountPolicy>::Fixed (CORBA::UShort digits,
, scale_ (scale)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/FloatSeqA.cpp b/TAO/tao/AnyTypeCode/FloatSeqA.cpp
index 4f33cff12e0..2d7b5761009 100644
--- a/TAO/tao/AnyTypeCode/FloatSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/FloatSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/FloatSeqA.h"
+#include "FloatSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/FloatSeqA.h b/TAO/tao/AnyTypeCode/FloatSeqA.h
index e43fd256d73..149932f1466 100644
--- a/TAO/tao/AnyTypeCode/FloatSeqA.h
+++ b/TAO/tao/AnyTypeCode/FloatSeqA.h
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::FloatSeq*); //
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::FloatSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::FloatSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/GIOPA.cpp b/TAO/tao/AnyTypeCode/GIOPA.cpp
index 6e5788601b7..2e6898c7486 100644
--- a/TAO/tao/AnyTypeCode/GIOPA.cpp
+++ b/TAO/tao/AnyTypeCode/GIOPA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/GIOPA.h"
+#include "GIOPA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -38,8 +38,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -328,5 +326,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/GIOPA.h b/TAO/tao/AnyTypeCode/GIOPA.h
index 7971878edcc..b6b51cc4f1b 100644
--- a/TAO/tao/AnyTypeCode/GIOPA.h
+++ b/TAO/tao/AnyTypeCode/GIOPA.h
@@ -39,7 +39,6 @@
#include "tao/AnyTypeCode/IOP_IORA.h"
#include "tao/AnyTypeCode/OctetSeqA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -96,8 +95,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, GIOP::TargetAddress*); //
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, GIOP::TargetAddress *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const GIOP::TargetAddress *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/IIOPA.cpp b/TAO/tao/AnyTypeCode/IIOPA.cpp
index 0af44ddaac6..89720b384a9 100644
--- a/TAO/tao/AnyTypeCode/IIOPA.cpp
+++ b/TAO/tao/AnyTypeCode/IIOPA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/IIOPA.h"
+#include "IIOPA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -37,9 +37,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -322,5 +319,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/IIOPA.h b/TAO/tao/AnyTypeCode/IIOPA.h
index 52931766bc1..58fc4b53f3a 100644
--- a/TAO/tao/AnyTypeCode/IIOPA.h
+++ b/TAO/tao/AnyTypeCode/IIOPA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace IIOP
{
@@ -90,8 +88,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, IIOP::BiDirIIOPServiceCon
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, IIOP::BiDirIIOPServiceContext *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IIOP::BiDirIIOPServiceContext *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/IIOP_EndpointsA.cpp b/TAO/tao/AnyTypeCode/IIOP_EndpointsA.cpp
index ce4520e630a..d528ac270c4 100644
--- a/TAO/tao/AnyTypeCode/IIOP_EndpointsA.cpp
+++ b/TAO/tao/AnyTypeCode/IIOP_EndpointsA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/IIOP_EndpointsA.h"
+#include "IIOP_EndpointsA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -38,8 +38,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -233,5 +231,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/IIOP_EndpointsA.h b/TAO/tao/AnyTypeCode/IIOP_EndpointsA.h
index e7f1f677145..b62fc8976f1 100644
--- a/TAO/tao/AnyTypeCode/IIOP_EndpointsA.h
+++ b/TAO/tao/AnyTypeCode/IIOP_EndpointsA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -108,8 +106,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/IOPA.cpp b/TAO/tao/AnyTypeCode/IOPA.cpp
index a6f7e67bc7c..77398cd1a3b 100644
--- a/TAO/tao/AnyTypeCode/IOPA.cpp
+++ b/TAO/tao/AnyTypeCode/IOPA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/IOPA.h"
+#include "IOPA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
diff --git a/TAO/tao/AnyTypeCode/IOP_IORA.cpp b/TAO/tao/AnyTypeCode/IOP_IORA.cpp
index 0538c9143dc..0c9e8f27150 100644
--- a/TAO/tao/AnyTypeCode/IOP_IORA.cpp
+++ b/TAO/tao/AnyTypeCode/IOP_IORA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/IOP_IORA.h"
+#include "IOP_IORA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -37,8 +37,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -997,5 +995,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/IOP_IORA.h b/TAO/tao/AnyTypeCode/IOP_IORA.h
index aecc75df280..081015c697f 100644
--- a/TAO/tao/AnyTypeCode/IOP_IORA.h
+++ b/TAO/tao/AnyTypeCode/IOP_IORA.h
@@ -39,8 +39,6 @@
#include "tao/AnyTypeCode/OctetSeqA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -184,8 +182,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, IOP::ServiceContextList*)
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::ServiceContextList *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::ServiceContextList *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/LongDoubleSeqA.cpp b/TAO/tao/AnyTypeCode/LongDoubleSeqA.cpp
index 61f889f87c9..98e266b808a 100644
--- a/TAO/tao/AnyTypeCode/LongDoubleSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/LongDoubleSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/LongDoubleSeqA.h"
+#include "LongDoubleSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/LongDoubleSeqA.h b/TAO/tao/AnyTypeCode/LongDoubleSeqA.h
index 7c4b3675985..1462f4a097c 100644
--- a/TAO/tao/AnyTypeCode/LongDoubleSeqA.h
+++ b/TAO/tao/AnyTypeCode/LongDoubleSeqA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
// TAO_IDL - Generated from
@@ -94,8 +92,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/LongLongSeqA.cpp b/TAO/tao/AnyTypeCode/LongLongSeqA.cpp
index 1546a6a5106..237cc42e778 100644
--- a/TAO/tao/AnyTypeCode/LongLongSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/LongLongSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/LongLongSeqA.h"
+#include "LongLongSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/LongLongSeqA.h b/TAO/tao/AnyTypeCode/LongLongSeqA.h
index 12256367f76..ba99c7410b9 100644
--- a/TAO/tao/AnyTypeCode/LongLongSeqA.h
+++ b/TAO/tao/AnyTypeCode/LongLongSeqA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
// TAO_IDL - Generated from
@@ -94,8 +92,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/LongSeqA.cpp b/TAO/tao/AnyTypeCode/LongSeqA.cpp
index fdf7bc45be2..ac83fdac8db 100644
--- a/TAO/tao/AnyTypeCode/LongSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/LongSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/LongSeqA.h"
+#include "LongSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/LongSeqA.h b/TAO/tao/AnyTypeCode/LongSeqA.h
index 0d639f5719c..29beb356664 100644
--- a/TAO/tao/AnyTypeCode/LongSeqA.h
+++ b/TAO/tao/AnyTypeCode/LongSeqA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -95,8 +93,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Marshal.cpp b/TAO/tao/AnyTypeCode/Marshal.cpp
index 22219d0a0e0..f3cab27779d 100644
--- a/TAO/tao/AnyTypeCode/Marshal.cpp
+++ b/TAO/tao/AnyTypeCode/Marshal.cpp
@@ -32,8 +32,6 @@ ACE_RCSID (tao,
Marshal,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Marshal_Object::~TAO_Marshal_Object (void)
{
}
@@ -257,4 +255,3 @@ TAO_Marshal_Object::perform_append (CORBA::TypeCode_ptr tc,
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Marshal.h b/TAO/tao/AnyTypeCode/Marshal.h
index 6232bc5f87d..94e98d86f81 100644
--- a/TAO/tao/AnyTypeCode/Marshal.h
+++ b/TAO/tao/AnyTypeCode/Marshal.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -27,8 +27,6 @@
#include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h"
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class TypeCode;
@@ -449,8 +447,6 @@ private:
CORBA::Boolean nested_processing_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/Marshal.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/AnyTypeCode/Marshal.inl b/TAO/tao/AnyTypeCode/Marshal.inl
index 9c632873b55..8b78849a003 100644
--- a/TAO/tao/AnyTypeCode/Marshal.inl
+++ b/TAO/tao/AnyTypeCode/Marshal.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Marshal_Object::TAO_Marshal_Object (void)
{
@@ -79,5 +75,3 @@ TAO_Marshal_Value::TAO_Marshal_Value (void)
: nested_processing_ (0)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.cpp b/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.cpp
index 345f3034f92..6d77541a020 100644
--- a/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.cpp
+++ b/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/Messaging_PolicyValueA.h"
+#include "Messaging_PolicyValueA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -41,8 +41,6 @@
#include "tao/AnyTypeCode/Policy_ForwardA.h"
#include "tao/AnyTypeCode/OctetSeqA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -240,5 +238,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.h b/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.h
index ea8e563befd..f6d5e0d7474 100644
--- a/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.h
+++ b/TAO/tao/AnyTypeCode/Messaging_PolicyValueA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
// TAO_IDL - Generated from
@@ -110,8 +108,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Mes
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/NVList.cpp b/TAO/tao/AnyTypeCode/NVList.cpp
index b07e186305c..dcc9e9ec042 100644
--- a/TAO/tao/AnyTypeCode/NVList.cpp
+++ b/TAO/tao/AnyTypeCode/NVList.cpp
@@ -3,11 +3,11 @@
// Implementation of Named Value List and NamedValue classes
-#include "tao/AnyTypeCode/NVList.h"
-#include "tao/AnyTypeCode/BoundsC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/Marshal.h"
-#include "tao/AnyTypeCode/Any_Impl.h"
+#include "NVList.h"
+#include "BoundsC.h"
+#include "TypeCode.h"
+#include "Marshal.h"
+#include "Any_Impl.h"
#include "tao/SystemException.h"
#include "tao/CORBA_String.h"
@@ -18,15 +18,13 @@
#include "ace/Log_Msg.h"
#if !defined (__ACE_INLINE__)
-# include "tao/AnyTypeCode/NVList.inl"
+# include "NVList.inl"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (tao,
NVList,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Reference counting for DII Request object
CORBA::ULong
@@ -82,7 +80,7 @@ CORBA::NVList::~NVList (void)
for (iter.first (); !iter.done (); iter.advance ())
{
- CORBA::NamedValue_ptr *nv = 0;
+ CORBA::NamedValue_ptr *nv;
(void) iter.next (nv);
delete *nv;
}
@@ -362,7 +360,7 @@ CORBA::NVList::_tao_encode (TAO_OutputCDR &cdr,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("NVList::_tao_encode - parameter <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (arg)));
+ ACE_TEXT_TO_TCHAR_IN (arg)));
}
CORBA::TypeCode_ptr tc = nv->value ()->_tao_get_typecode ();
(void) TAO_Marshal_Object::perform_append (tc,
@@ -415,7 +413,7 @@ CORBA::NVList::_tao_decode (TAO_InputCDR &incoming,
for (i.first (); !i.done (); i.advance ())
{
- CORBA::NamedValue_ptr *item = 0;
+ CORBA::NamedValue_ptr *item;
(void) i.next (item);
CORBA::NamedValue_ptr nv = *item;
@@ -433,7 +431,7 @@ CORBA::NVList::_tao_decode (TAO_InputCDR &incoming,
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) : NVList::_tao_decode - %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (nv->name ()? nv->name () : "(no name given)" )));
+ ACE_TEXT_TO_TCHAR_IN (nv->name ()? nv->name () : "(no name given)" )));
}
CORBA::Any_ptr any = nv->value ();
@@ -498,4 +496,3 @@ CORBA::NVList::_lazy_has_arguments (void) const
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/NVList.h b/TAO/tao/AnyTypeCode/NVList.h
index 0b73c17576c..0b7cf469847 100644
--- a/TAO/tao/AnyTypeCode/NVList.h
+++ b/TAO/tao/AnyTypeCode/NVList.h
@@ -33,8 +33,6 @@
#include "ace/Atomic_Op.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_InputCDR;
@@ -303,8 +301,6 @@ namespace CORBA
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/NVList.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/AnyTypeCode/NVList.inl b/TAO/tao/AnyTypeCode/NVList.inl
index e89db0e4dfb..035279feaf6 100644
--- a/TAO/tao/AnyTypeCode/NVList.inl
+++ b/TAO/tao/AnyTypeCode/NVList.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
CORBA::is_nil (CORBA::NamedValue_ptr nv)
{
@@ -126,5 +124,3 @@ CORBA::NVList::_nil (void)
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp
index 7ed8cb3d983..212a10a3dbf 100644
--- a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp
+++ b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.cpp
@@ -9,8 +9,6 @@ ACE_RCSID (AnyTypeCode,
#include "tao/AnyTypeCode/NVList.h"
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_NVList_Adapter_Impl::create_list (
CORBA::Long count,
@@ -70,8 +68,6 @@ TAO_NVList_Adapter_Impl::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_NVList_Adapter_Impl);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_NVList_Adapter_Impl,
ACE_TEXT ("TAO_NVList_Adapter"),
ACE_SVC_OBJ_T,
@@ -79,3 +75,5 @@ ACE_STATIC_SVC_DEFINE (TAO_NVList_Adapter_Impl,
ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
0)
ACE_FACTORY_DEFINE (TAO_AnyTypeCode, TAO_NVList_Adapter_Impl)
+
+
diff --git a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h
index e24ebd357c5..60593941e08 100644
--- a/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h
+++ b/TAO/tao/AnyTypeCode/NVList_Adapter_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "tao/NVList_Adapter.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_NVList_Adapter
*/
@@ -46,14 +44,13 @@ public:
static int Initializer (void);
};
-static int TAO_Requires_NVList_Adapter_Impl_Initializer =
- TAO_NVList_Adapter_Impl::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_NVList_Adapter_Impl)
ACE_FACTORY_DECLARE (TAO_AnyTypeCode, TAO_NVList_Adapter_Impl)
+static int
+TAO_Requires_NVList_Adapter_Impl_Initializer =
+ TAO_NVList_Adapter_Impl::Initializer ();
+
#include /**/ "ace/post.h"
#endif /* TAO_NVLIST_ADAPTER_IMPL_H */
diff --git a/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h b/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h
index 8a39b8e9c52..9206227ec0d 100644
--- a/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h
+++ b/TAO/tao/AnyTypeCode/Null_RefCount_Policy.h
@@ -24,10 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -77,8 +73,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NULL_REFCOUNT_POLICY_H */
diff --git a/TAO/tao/AnyTypeCode/ObjectIdListA.cpp b/TAO/tao/AnyTypeCode/ObjectIdListA.cpp
index 5e1c5439010..409a8b0e341 100644
--- a/TAO/tao/AnyTypeCode/ObjectIdListA.cpp
+++ b/TAO/tao/AnyTypeCode/ObjectIdListA.cpp
@@ -25,15 +25,13 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ObjectIdListA.h"
+#include "ObjectIdListA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Sequence_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -100,5 +98,3 @@ namespace CORBA
&_tao_tc_CORBA_ORB_ObjectIdList;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ObjectIdListA.h b/TAO/tao/AnyTypeCode/ObjectIdListA.h
index 50fc249bcf3..1fedb3c212a 100644
--- a/TAO/tao/AnyTypeCode/ObjectIdListA.h
+++ b/TAO/tao/AnyTypeCode/ObjectIdListA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -89,8 +87,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode.cpp b/TAO/tao/AnyTypeCode/Objref_TypeCode.cpp
index c897143e4dc..bf53f06da69 100644
--- a/TAO/tao/AnyTypeCode/Objref_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Objref_TypeCode.cpp
@@ -10,11 +10,9 @@
#endif /* !__ACE_INLINE__ */
#include "tao/CDR.h"
-#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType, class RefCountPolicy>
bool
@@ -152,6 +150,4 @@ TAO::TypeCode::Objref<StringType, RefCountPolicy>::name_i (
return this->attributes_.name ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_OBJREF_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode.h b/TAO/tao/AnyTypeCode/Objref_TypeCode.h
index 8444669513a..0e2a0e03f3a 100644
--- a/TAO/tao/AnyTypeCode/Objref_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Objref_TypeCode.h
@@ -32,8 +32,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -106,7 +104,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Objref_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode.inl b/TAO/tao/AnyTypeCode/Objref_TypeCode.inl
index fa8f28d1808..e40aa1e10d9 100644
--- a/TAO/tao/AnyTypeCode/Objref_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Objref_TypeCode.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType, class RefCountPolicy>
ACE_INLINE
@@ -15,5 +14,3 @@ TAO::TypeCode::Objref<StringType, RefCountPolicy>::Objref (
, attributes_ (id, name)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp
index dc3605222a6..69a540da1f0 100644
--- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.cpp
@@ -18,7 +18,6 @@ ACE_RCSID (tao,
Objref_TypeCode_Static,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::tao_marshal (
@@ -148,4 +147,3 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::name_i (
return this->attributes_.name ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h
index f67bb980e66..f12217caef9 100644
--- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.h
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -110,7 +108,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Objref_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.inl
index 6673159051b..07c5d36ece2 100644
--- a/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Objref_TypeCode_Static.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::Objref (
@@ -14,5 +13,3 @@ TAO::TypeCode::Objref<char const *, TAO::Null_RefCount_Policy>::Objref (
, attributes_ (id, name)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/OctetSeqA.cpp b/TAO/tao/AnyTypeCode/OctetSeqA.cpp
index dd6b7864968..66b18534bb1 100644
--- a/TAO/tao/AnyTypeCode/OctetSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/OctetSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/OctetSeqA.h"
+#include "OctetSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/OctetSeqA.h b/TAO/tao/AnyTypeCode/OctetSeqA.h
index 8b94976cb20..159132d2448 100644
--- a/TAO/tao/AnyTypeCode/OctetSeqA.h
+++ b/TAO/tao/AnyTypeCode/OctetSeqA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -64,8 +62,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::OctetSeq*); // non
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::OctetSeq *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::OctetSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/PI_ForwardA.cpp b/TAO/tao/AnyTypeCode/PI_ForwardA.cpp
index fe43b76ce42..6d4394780cf 100644
--- a/TAO/tao/AnyTypeCode/PI_ForwardA.cpp
+++ b/TAO/tao/AnyTypeCode/PI_ForwardA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/PI_ForwardA.h"
+#include "PI_ForwardA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/StringSeqA.h"
#include "tao/AnyTypeCode/OctetSeqA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -197,4 +195,3 @@ namespace PortableInterceptor
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/PI_ForwardA.h b/TAO/tao/AnyTypeCode/PI_ForwardA.h
index f99092e4ec1..70124737301 100644
--- a/TAO/tao/AnyTypeCode/PI_ForwardA.h
+++ b/TAO/tao/AnyTypeCode/PI_ForwardA.h
@@ -65,8 +65,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
@@ -178,8 +176,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/ParameterModeA.cpp b/TAO/tao/AnyTypeCode/ParameterModeA.cpp
index b4a65bb1787..7eeaa86618c 100644
--- a/TAO/tao/AnyTypeCode/ParameterModeA.cpp
+++ b/TAO/tao/AnyTypeCode/ParameterModeA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ParameterModeA.h"
+#include "ParameterModeA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -91,5 +89,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ParameterModeA.h b/TAO/tao/AnyTypeCode/ParameterModeA.h
index 91bb04bd510..85dbb46597e 100644
--- a/TAO/tao/AnyTypeCode/ParameterModeA.h
+++ b/TAO/tao/AnyTypeCode/ParameterModeA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
// TAO_IDL - Generated from
@@ -92,8 +90,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::Pa
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/PolicyA.cpp b/TAO/tao/AnyTypeCode/PolicyA.cpp
index 9d49724bc2f..0594672bf8f 100644
--- a/TAO/tao/AnyTypeCode/PolicyA.cpp
+++ b/TAO/tao/AnyTypeCode/PolicyA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/PolicyA.h"
+#include "PolicyA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -39,8 +39,6 @@
#include "tao/AnyTypeCode/UShortSeqA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -557,5 +555,3 @@ operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/PolicyA.h b/TAO/tao/AnyTypeCode/PolicyA.h
index ed2c78d1e3a..feae0030ce9 100644
--- a/TAO/tao/AnyTypeCode/PolicyA.h
+++ b/TAO/tao/AnyTypeCode/PolicyA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -142,8 +140,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::Po
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Policy_ForwardA.cpp b/TAO/tao/AnyTypeCode/Policy_ForwardA.cpp
index 93e73bc4856..aae38186b03 100644
--- a/TAO/tao/AnyTypeCode/Policy_ForwardA.cpp
+++ b/TAO/tao/AnyTypeCode/Policy_ForwardA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/Policy_ForwardA.h"
+#include "Policy_ForwardA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -331,5 +329,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Policy_ForwardA.h b/TAO/tao/AnyTypeCode/Policy_ForwardA.h
index 7626097a3b9..88c0b82f339 100644
--- a/TAO/tao/AnyTypeCode/Policy_ForwardA.h
+++ b/TAO/tao/AnyTypeCode/Policy_ForwardA.h
@@ -37,7 +37,6 @@
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/Policy_ForwardC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -99,8 +98,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::SetOverrideType);
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::SetOverrideType &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/PortableInterceptorA.cpp b/TAO/tao/AnyTypeCode/PortableInterceptorA.cpp
index 166de771bb6..0ffe043ddbe 100644
--- a/TAO/tao/AnyTypeCode/PortableInterceptorA.cpp
+++ b/TAO/tao/AnyTypeCode/PortableInterceptorA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/PortableInterceptorA.h"
+#include "PortableInterceptorA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
diff --git a/TAO/tao/AnyTypeCode/PortableInterceptorA.h b/TAO/tao/AnyTypeCode/PortableInterceptorA.h
index 4de58d5653e..e257fccb813 100644
--- a/TAO/tao/AnyTypeCode/PortableInterceptorA.h
+++ b/TAO/tao/AnyTypeCode/PortableInterceptorA.h
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
@@ -52,8 +50,6 @@ namespace PortableInterceptor
} // module PortableInterceptor
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.cpp b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.cpp
index db48e1583f7..a96abe13a0b 100644
--- a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.cpp
@@ -1,13 +1,12 @@
// $Id$
+
#include "tao/CDR.h"
#ifndef __ACE_INLINE__
# include "tao/AnyTypeCode/Recursive_Type_TypeCode.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TypeCodeBase, typename TypeCodeType, typename MemberArrayType>
bool
TAO::TypeCode::Recursive_Type<TypeCodeBase,
@@ -137,5 +136,3 @@ TAO::TypeCode::Recursive_Type<TypeCodeBase,
return (cdr << indirection_kind);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h
index 027100bb476..08b0025560c 100644
--- a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.h
@@ -18,11 +18,9 @@
#include /**/ "ace/pre.h"
+#include "ace/Recursive_Thread_Mutex.h"
#include "tao/Basic_Types.h"
#include "tao/Typecode_typesC.h"
-#include "ace/Recursive_Thread_Mutex.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -200,8 +198,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Recursive_Type_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.inl b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.inl
index efd9091a125..7f7a5ea6fe8 100644
--- a/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Recursive_Type_TypeCode.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TypeCodeBase, typename TypeCodeType, typename MemberArrayType>
ACE_INLINE
TAO::TypeCode::Recursive_Type<TypeCodeBase,
@@ -149,5 +147,3 @@ TAO::TypeCode::Recursive_Type<TypeCodeBase,
this->fields_ = fields;
this->nfields_ = nfields;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/RefCount_Policy_Traits.h b/TAO/tao/AnyTypeCode/RefCount_Policy_Traits.h
index ac0be52fc3b..fd9a09754c5 100644
--- a/TAO/tao/AnyTypeCode/RefCount_Policy_Traits.h
+++ b/TAO/tao/AnyTypeCode/RefCount_Policy_Traits.h
@@ -24,9 +24,6 @@
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class Null_RefCount_Policy;
@@ -104,8 +101,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REFCOUNT_POLICY_TRAITS_H */
diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode.cpp b/TAO/tao/AnyTypeCode/Sequence_TypeCode.cpp
index 76016fe93fe..a3b7c2e458c 100644
--- a/TAO/tao/AnyTypeCode/Sequence_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode.cpp
@@ -11,7 +11,6 @@
# include "tao/AnyTypeCode/Sequence_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename TypeCodeType, class RefCountPolicy>
bool
@@ -145,6 +144,5 @@ TAO::TypeCode::Sequence<TypeCodeType, RefCountPolicy>::content_type_i (
Traits<TypeCodeType>::get_typecode (this->content_type_));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_SEQUENCE_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode.h b/TAO/tao/AnyTypeCode/Sequence_TypeCode.h
index 3b8cd242ade..555511402c0 100644
--- a/TAO/tao/AnyTypeCode/Sequence_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode.h
@@ -23,9 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -118,7 +115,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Sequence_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode.inl b/TAO/tao/AnyTypeCode/Sequence_TypeCode.inl
index 27de6a56926..81e7add5646 100644
--- a/TAO/tao/AnyTypeCode/Sequence_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <typename TypeCodeType, class RefCountPolicy>
ACE_INLINE
TAO::TypeCode::Sequence<TypeCodeType, RefCountPolicy>::Sequence (
@@ -23,5 +21,3 @@ TAO::TypeCode::Sequence<TypeCodeType, RefCountPolicy>::Sequence (
{
// ACE_ASSERT (kind == CORBA::tk_array || kind == CORBA::tk_sequence);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp
index e967f69c096..d0ab50e8dde 100644
--- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.cpp
@@ -13,7 +13,6 @@ ACE_RCSID (tao,
Sequence_TypeCode_Static,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *,
@@ -146,5 +145,3 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *,
CORBA::TypeCode::_duplicate (
Traits<CORBA::TypeCode_ptr const *>::get_typecode (this->content_type_));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h
index 7c3d4746fbc..7975d403192 100644
--- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.h
@@ -26,7 +26,6 @@
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -116,7 +115,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Sequence_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.inl
index b433031f883..27e98729656 100644
--- a/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Sequence_TypeCode_Static.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *,
TAO::Null_RefCount_Policy>::Sequence (
@@ -16,5 +14,3 @@ TAO::TypeCode::Sequence<CORBA::TypeCode_ptr const *,
, length_ (length)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ServicesA.cpp b/TAO/tao/AnyTypeCode/ServicesA.cpp
index 0030c4e2c44..2fa2316ff53 100644
--- a/TAO/tao/AnyTypeCode/ServicesA.cpp
+++ b/TAO/tao/AnyTypeCode/ServicesA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ServicesA.h"
+#include "ServicesA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -518,5 +516,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ServicesA.h b/TAO/tao/AnyTypeCode/ServicesA.h
index 7a422b3358a..87b6aca143f 100644
--- a/TAO/tao/AnyTypeCode/ServicesA.h
+++ b/TAO/tao/AnyTypeCode/ServicesA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -123,8 +121,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::ServiceInformation
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::ServiceInformation *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::ServiceInformation *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/ShortSeqA.cpp b/TAO/tao/AnyTypeCode/ShortSeqA.cpp
index f876b863891..ed70a459f81 100644
--- a/TAO/tao/AnyTypeCode/ShortSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/ShortSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ShortSeqA.h"
+#include "ShortSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ShortSeqA.h b/TAO/tao/AnyTypeCode/ShortSeqA.h
index 5c450473eb1..f3f6f53c485 100644
--- a/TAO/tao/AnyTypeCode/ShortSeqA.h
+++ b/TAO/tao/AnyTypeCode/ShortSeqA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -64,8 +62,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::ShortSeq*); // non
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::ShortSeq *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::ShortSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/StringSeqA.cpp b/TAO/tao/AnyTypeCode/StringSeqA.cpp
index 1016edf61df..df52b396d70 100644
--- a/TAO/tao/AnyTypeCode/StringSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/StringSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/StringSeqA.h"
+#include "StringSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -143,5 +141,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/StringSeqA.h b/TAO/tao/AnyTypeCode/StringSeqA.h
index c26b6c77dee..a97892b5181 100644
--- a/TAO/tao/AnyTypeCode/StringSeqA.h
+++ b/TAO/tao/AnyTypeCode/StringSeqA.h
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -64,8 +62,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::StringSeq*); // no
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::StringSeq *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::StringSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode.cpp b/TAO/tao/AnyTypeCode/String_TypeCode.cpp
index bae404af34e..8542fc7ce99 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/String_TypeCode.cpp
@@ -10,7 +10,6 @@
# include "tao/AnyTypeCode/String_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <class RefCountPolicy>
bool
@@ -88,6 +87,5 @@ TAO::TypeCode::String<RefCountPolicy>::length_i (
return this->length_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_STRING_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode.h b/TAO/tao/AnyTypeCode/String_TypeCode.h
index 86a7270f12b..628e251c491 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/String_TypeCode.h
@@ -24,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -95,8 +93,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/String_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode.inl b/TAO/tao/AnyTypeCode/String_TypeCode.inl
index 2f5fb0b6487..90e8e887c3b 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/String_TypeCode.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class RefCountPolicy>
ACE_INLINE
TAO::TypeCode::String<RefCountPolicy>::String (CORBA::TCKind kind,
@@ -14,5 +12,3 @@ TAO::TypeCode::String<RefCountPolicy>::String (CORBA::TCKind kind,
{
// ACE_ASSERT (kind == CORBA::tk_string || kind == CORBA::tk_wstring);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp
index 60783babaec..a0817ca8c31 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
bool
TAO::TypeCode::String<TAO::Null_RefCount_Policy>::tao_marshal (
TAO_OutputCDR & cdr,
@@ -84,5 +82,3 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::length_i (
{
return this->length_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.h b/TAO/tao/AnyTypeCode/String_TypeCode_Static.h
index 8911843a9ee..9bd90692793 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.h
@@ -26,7 +26,6 @@
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -98,8 +97,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/String_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/String_TypeCode_Static.inl
index 726d9242f8e..4d42413daa1 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/String_TypeCode_Static.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::TypeCode::String<TAO::Null_RefCount_Policy>::String (
CORBA::TCKind kind,
@@ -14,5 +12,3 @@ TAO::TypeCode::String<TAO::Null_RefCount_Policy>::String (
{
// ACE_ASSERT (kind == CORBA::tk_string || kind == CORBA::tk_wstring);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/String_TypeCode_Traits.h b/TAO/tao/AnyTypeCode/String_TypeCode_Traits.h
index 670e6a835ba..14287963745 100644
--- a/TAO/tao/AnyTypeCode/String_TypeCode_Traits.h
+++ b/TAO/tao/AnyTypeCode/String_TypeCode_Traits.h
@@ -28,9 +28,6 @@
#include "tao/AnyTypeCode/String_TypeCode.h"
#include "tao/AnyTypeCode/True_RefCount_Policy.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCodeFactory
@@ -74,7 +71,6 @@ namespace TAO
} // End namespace TypeCodeFactory
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode.cpp b/TAO/tao/AnyTypeCode/Struct_TypeCode.cpp
index aa50e7bdf78..65ad7720597 100644
--- a/TAO/tao/AnyTypeCode/Struct_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Struct_TypeCode.cpp
@@ -17,7 +17,6 @@
#include "ace/Dynamic_Service.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
typename TypeCodeType,
@@ -344,6 +343,4 @@ TAO::TypeCode::Struct<StringType,
Traits<StringType>::get_typecode (this->fields_[index].type));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_STRUCT_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode.h b/TAO/tao/AnyTypeCode/Struct_TypeCode.h
index df44f2d2a3a..dc356f07447 100644
--- a/TAO/tao/AnyTypeCode/Struct_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Struct_TypeCode.h
@@ -27,7 +27,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -138,7 +137,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Struct_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode.inl b/TAO/tao/AnyTypeCode/Struct_TypeCode.inl
index ad95ae544fa..eb3da52ae7e 100644
--- a/TAO/tao/AnyTypeCode/Struct_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Struct_TypeCode.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
typename TypeCodeType,
@@ -46,5 +45,3 @@ TAO::TypeCode::Struct<StringType,
// CORBA::tk_except is not allowed in the recursive TypeCode case.
// ACE_ASSERT (kind == CORBA::tk_struct);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp
index 8228c5de001..41211b42d25 100644
--- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.cpp
@@ -20,8 +20,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
bool
TAO::TypeCode::Struct<char const *,
CORBA::TypeCode_ptr const *,
@@ -316,5 +314,3 @@ TAO::TypeCode::Struct<char const *,
CORBA::TypeCode::_duplicate (
Traits<char const *>::get_typecode (this->fields_[index].type));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h
index dea9405238b..b923b4c9917 100644
--- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.h
@@ -28,7 +28,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -143,7 +142,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Struct_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.inl
index d17483fe23f..f32a858b845 100644
--- a/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Struct_TypeCode_Static.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::TypeCode::Struct<char const *,
@@ -22,5 +21,3 @@ TAO::TypeCode::Struct<char const *,
, fields_ (fields)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/SystemExceptionA.cpp b/TAO/tao/AnyTypeCode/SystemExceptionA.cpp
index c11f3984ef3..44271253ab5 100644
--- a/TAO/tao/AnyTypeCode/SystemExceptionA.cpp
+++ b/TAO/tao/AnyTypeCode/SystemExceptionA.cpp
@@ -1,14 +1,14 @@
// $Id$
-#include "tao/AnyTypeCode/SystemExceptionA.h"
-#include "tao/AnyTypeCode/Any_SystemException.h"
-#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
-#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "SystemExceptionA.h"
+#include "Any_SystemException.h"
+#include "Any_Dual_Impl_T.h"
+#include "TypeCode.h"
+#include "TypeCode_Constants.h"
+#include "Enum_TypeCode_Static.h"
+#include "TypeCode_Struct_Field.h"
+#include "Struct_TypeCode_Static.h"
+#include "Null_RefCount_Policy.h"
#include "tao/CORBA_String.h"
@@ -16,12 +16,9 @@ ACE_RCSID (tao,
SystemExceptionA,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// List of standard/system exceptions ... used to create static
// storage for their typecodes.
@@ -181,5 +178,3 @@ CORBA::Boolean operator>>= (const CORBA::Any &any, \
STANDARD_EXCEPTION_LIST
#undef TAO_SYSTEM_EXCEPTION
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/SystemExceptionA.h b/TAO/tao/AnyTypeCode/SystemExceptionA.h
index b6ca62d2e55..75fc6dfd459 100644
--- a/TAO/tao/AnyTypeCode/SystemExceptionA.h
+++ b/TAO/tao/AnyTypeCode/SystemExceptionA.h
@@ -20,8 +20,6 @@
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class TypeCode;
@@ -84,8 +82,6 @@ namespace CORBA
} // End CORBA namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SYSTEMEXCEPTIONA_H */
diff --git a/TAO/tao/AnyTypeCode/TAOA.cpp b/TAO/tao/AnyTypeCode/TAOA.cpp
index cf036da5c50..4230f001fc7 100644
--- a/TAO/tao/AnyTypeCode/TAOA.cpp
+++ b/TAO/tao/AnyTypeCode/TAOA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/TAOA.h"
+#include "TAOA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -37,8 +37,6 @@
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -164,5 +162,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TAOA.h b/TAO/tao/AnyTypeCode/TAOA.h
index 1a68c91f64b..131c8b6eff0 100644
--- a/TAO/tao/AnyTypeCode/TAOA.h
+++ b/TAO/tao/AnyTypeCode/TAOA.h
@@ -43,8 +43,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -76,8 +74,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, TAO::BufferingConstraint*
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, TAO::BufferingConstraint *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const TAO::BufferingConstraint *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/TC_Constants_Forward.h b/TAO/tao/AnyTypeCode/TC_Constants_Forward.h
index e0d8853654d..b66ae8db4d2 100644
--- a/TAO/tao/AnyTypeCode/TC_Constants_Forward.h
+++ b/TAO/tao/AnyTypeCode/TC_Constants_Forward.h
@@ -1,20 +1,113 @@
// -*- C++ -*-
-// -------------------------------------------------------------
+//=============================================================================
/**
- * @file TC_Constants_Forward.h
+ * @file TC_Constants_Forward.h
*
- * $Id$
+ * $Id$
*
- * Backward compatibility header.
+ * Forward declare the type code constants used in the ORB.
*
- * @deprecated Use TypeCode_Constants.h instead.
+ * @author Jeff Parsons
*/
-// -------------------------------------------------------------
+//=============================================================================
#ifndef TAO_TC_CONSTANTS_FORWARD_H
#define TAO_TC_CONSTANTS_FORWARD_H
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include /**/ "ace/pre.h"
-#endif /* TAO_TC_CONSTANTS_FORWARD_H */
+#include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h"
+
+namespace CORBA
+{
+ class TypeCode;
+ typedef TypeCode *TypeCode_ptr;
+
+ /**
+ * @name TypeCode Constants
+ *
+ * All the TypeCode constants
+ */
+ //@{
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_null;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_void;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_short;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_long;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_ushort;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_ulong;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_float;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_double;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_boolean;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_char;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_octet;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_any;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_TypeCode;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_Principal;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_Object;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_string;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_longlong;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_ulonglong;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_longdouble;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_wchar;
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_wstring;
+
+#define TAO_SYSTEM_EXCEPTION_LIST \
+ TAO_SYSTEM_EXCEPTION(UNKNOWN); \
+ TAO_SYSTEM_EXCEPTION(BAD_PARAM); \
+ TAO_SYSTEM_EXCEPTION(NO_MEMORY); \
+ TAO_SYSTEM_EXCEPTION(IMP_LIMIT); \
+ TAO_SYSTEM_EXCEPTION(COMM_FAILURE); \
+ TAO_SYSTEM_EXCEPTION(INV_OBJREF); \
+ TAO_SYSTEM_EXCEPTION(OBJECT_NOT_EXIST); \
+ TAO_SYSTEM_EXCEPTION(NO_PERMISSION); \
+ TAO_SYSTEM_EXCEPTION(INTERNAL); \
+ TAO_SYSTEM_EXCEPTION(MARSHAL); \
+ TAO_SYSTEM_EXCEPTION(INITIALIZE); \
+ TAO_SYSTEM_EXCEPTION(NO_IMPLEMENT); \
+ TAO_SYSTEM_EXCEPTION(BAD_TYPECODE); \
+ TAO_SYSTEM_EXCEPTION(BAD_OPERATION); \
+ TAO_SYSTEM_EXCEPTION(NO_RESOURCES); \
+ TAO_SYSTEM_EXCEPTION(NO_RESPONSE); \
+ TAO_SYSTEM_EXCEPTION(PERSIST_STORE); \
+ TAO_SYSTEM_EXCEPTION(BAD_INV_ORDER); \
+ TAO_SYSTEM_EXCEPTION(TRANSIENT); \
+ TAO_SYSTEM_EXCEPTION(FREE_MEM); \
+ TAO_SYSTEM_EXCEPTION(INV_IDENT); \
+ TAO_SYSTEM_EXCEPTION(INV_FLAG); \
+ TAO_SYSTEM_EXCEPTION(INTF_REPOS); \
+ TAO_SYSTEM_EXCEPTION(BAD_CONTEXT); \
+ TAO_SYSTEM_EXCEPTION(OBJ_ADAPTER); \
+ TAO_SYSTEM_EXCEPTION(DATA_CONVERSION); \
+ TAO_SYSTEM_EXCEPTION(INV_POLICY); \
+ TAO_SYSTEM_EXCEPTION(REBIND); \
+ TAO_SYSTEM_EXCEPTION(TIMEOUT); \
+ TAO_SYSTEM_EXCEPTION(TRANSACTION_UNAVAILABLE); \
+ TAO_SYSTEM_EXCEPTION(TRANSACTION_MODE); \
+ TAO_SYSTEM_EXCEPTION(TRANSACTION_REQUIRED); \
+ TAO_SYSTEM_EXCEPTION(TRANSACTION_ROLLEDBACK); \
+ TAO_SYSTEM_EXCEPTION(INVALID_TRANSACTION); \
+ TAO_SYSTEM_EXCEPTION(CODESET_INCOMPATIBLE); \
+ TAO_SYSTEM_EXCEPTION(BAD_QOS); \
+ TAO_SYSTEM_EXCEPTION(INVALID_ACTIVITY); \
+ TAO_SYSTEM_EXCEPTION(ACTIVITY_COMPLETED); \
+ TAO_SYSTEM_EXCEPTION(ACTIVITY_REQUIRED); \
+ TAO_SYSTEM_EXCEPTION(THREAD_CANCELLED);
+
+ // = Typecode constants for system exceptions.
+#define TAO_SYSTEM_EXCEPTION(name) \
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_ ## name
+ TAO_SYSTEM_EXCEPTION_LIST
+#undef TAO_SYSTEM_EXCEPTION
+ //@}
+
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_UnknownUserException;
+
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_Current;
+
+ extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_NamedValue;
+}
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_TC_CONSTANTS_FORWARD_H */
diff --git a/TAO/tao/AnyTypeCode/TimeBaseA.cpp b/TAO/tao/AnyTypeCode/TimeBaseA.cpp
index 1cb54f59417..444c8d69f0a 100644
--- a/TAO/tao/AnyTypeCode/TimeBaseA.cpp
+++ b/TAO/tao/AnyTypeCode/TimeBaseA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/TimeBaseA.h"
+#include "TimeBaseA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -271,5 +269,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TimeBaseA.h b/TAO/tao/AnyTypeCode/TimeBaseA.h
index c18a4a4f8d2..c75cc8715c4 100644
--- a/TAO/tao/AnyTypeCode/TimeBaseA.h
+++ b/TAO/tao/AnyTypeCode/TimeBaseA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TimeBase
{
@@ -123,8 +121,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const Tim
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp b/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp
index 2c7190d82bf..3b5b3fab354 100644
--- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp
+++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/AnyTypeCode/True_RefCount_Policy.h"
+#include "True_RefCount_Policy.h"
#ifndef __ACE_INLINE__
# include "True_RefCount_Policy.inl"
@@ -11,10 +11,7 @@ ACE_RCSID (tao,
True_RefCount_Policy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::True_RefCount_Policy::~True_RefCount_Policy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.h b/TAO/tao/AnyTypeCode/True_RefCount_Policy.h
index 6bef507fae0..89035c00f47 100644
--- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.h
+++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.h
@@ -29,8 +29,6 @@
#include "ace/Thread_Mutex.h"
#include "ace/Atomic_Op.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -108,7 +106,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/True_RefCount_Policy.inl"
diff --git a/TAO/tao/AnyTypeCode/True_RefCount_Policy.inl b/TAO/tao/AnyTypeCode/True_RefCount_Policy.inl
index db9631237de..87b1b1b9159 100644
--- a/TAO/tao/AnyTypeCode/True_RefCount_Policy.inl
+++ b/TAO/tao/AnyTypeCode/True_RefCount_Policy.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::True_RefCount_Policy::True_RefCount_Policy (void)
@@ -24,5 +23,3 @@ TAO::True_RefCount_Policy::remove_ref (void)
if (new_count == 0)
delete this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode.cpp b/TAO/tao/AnyTypeCode/TypeCode.cpp
index 4af8e87ee16..a84b422f4b0 100644
--- a/TAO/tao/AnyTypeCode/TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/AnyTypeCode/TypeCode.h"
+#include "TypeCode.h"
ACE_RCSID (tao,
TypeCode,
@@ -8,7 +8,7 @@ ACE_RCSID (tao,
#if !defined (__ACE_INLINE__)
-# include "tao/AnyTypeCode/TypeCode.inl"
+# include "TypeCode.inl"
#endif /* ! __ACE_INLINE__ */
#include "tao/SystemException.h"
@@ -18,7 +18,6 @@ ACE_RCSID (tao,
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::TypeCode::~TypeCode (void)
{
@@ -333,7 +332,7 @@ CORBA::TypeCode::BadKind::_downcast (CORBA::Exception *ex)
CORBA::Exception *
CORBA::TypeCode::BadKind::_tao_duplicate (void) const
{
- CORBA::Exception *result = 0;
+ CORBA::Exception *result;
ACE_NEW_RETURN (result,
CORBA::TypeCode::BadKind (*this),
0);
@@ -486,4 +485,3 @@ TAO::unaliased_kind (CORBA::TypeCode_ptr tc
return unaliased_tc->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode.h b/TAO/tao/AnyTypeCode/TypeCode.h
index 93edd808684..dd9a6d7b2bb 100644
--- a/TAO/tao/AnyTypeCode/TypeCode.h
+++ b/TAO/tao/AnyTypeCode/TypeCode.h
@@ -42,8 +42,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_AnyTypeCode_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
typedef TAO_Pseudo_Var_T<TypeCode> TypeCode_var;
@@ -581,7 +579,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/AnyTypeCode/TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/TypeCode.inl b/TAO/tao/AnyTypeCode/TypeCode.inl
index eb044d6641f..64cd68fe7c1 100644
--- a/TAO/tao/AnyTypeCode/TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/TypeCode.inl
@@ -4,8 +4,6 @@
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
CORBA::is_nil (CORBA::TypeCode_ptr obj)
{
@@ -158,5 +156,3 @@ CORBA::TypeCode::_tao_any_destructor (void * x)
CORBA::release (static_cast <CORBA::TypeCode_ptr> (x));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCodeA.cpp b/TAO/tao/AnyTypeCode/TypeCodeA.cpp
index aa229493ecc..6ff09fdf2cc 100644
--- a/TAO/tao/AnyTypeCode/TypeCodeA.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCodeA.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "Struct_TypeCode_Static.h"
+#include "Null_RefCount_Policy.h"
ACE_RCSID (tao,
@@ -9,8 +9,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -59,5 +57,3 @@ CORBA::TypeCode_ptr const CORBA::TypeCode::_tc_BadKind =
CORBA::TypeCode_ptr const CORBA::TypeCode::_tc_Bounds =
&TAO::TypeCode::tc_Bounds;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h
index 03740852534..4771d75d95b 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.h
@@ -21,10 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCode
@@ -81,7 +77,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/TypeCode_Base_Attributes.inl"
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.inl b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.inl
index 915e4ed9411..d94e65040a6 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.inl
+++ b/TAO/tao/AnyTypeCode/TypeCode_Base_Attributes.inl
@@ -4,7 +4,6 @@
#include "tao/AnyTypeCode/TypeCode_Traits.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename STRING_TYPE>
ACE_INLINE
@@ -50,5 +49,3 @@ TAO::TypeCode::Base_Attributes<STRING_TYPE>::name (char const * the_name)
this->name_ = the_name;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
index 769d6760258..3ad634f15a7 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.cpp
@@ -1,38 +1,35 @@
// $Id$
-#include "tao/AnyTypeCode/TypeCode_CDR_Extraction.h"
+#include "TypeCode_CDR_Extraction.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/True_RefCount_Policy.h"
+#include "TypeCode_Constants.h"
+#include "True_RefCount_Policy.h"
-#include "tao/AnyTypeCode/Alias_TypeCode.h"
-#include "tao/AnyTypeCode/Enum_TypeCode.h"
-#include "tao/AnyTypeCode/Fixed_TypeCode.h"
-#include "tao/AnyTypeCode/Objref_TypeCode.h"
-#include "tao/AnyTypeCode/Sequence_TypeCode.h"
-#include "tao/AnyTypeCode/String_TypeCode.h"
-#include "tao/AnyTypeCode/Struct_TypeCode.h"
-#include "tao/AnyTypeCode/Union_TypeCode.h"
-#include "tao/AnyTypeCode/Value_TypeCode.h"
-#include "tao/AnyTypeCode/Any.h"
+#include "Alias_TypeCode.h"
+#include "Enum_TypeCode.h"
+#include "Fixed_TypeCode.h"
+#include "Objref_TypeCode.h"
+#include "Sequence_TypeCode.h"
+#include "String_TypeCode.h"
+#include "Struct_TypeCode.h"
+#include "Union_TypeCode.h"
+#include "Value_TypeCode.h"
-#include "tao/AnyTypeCode/Recursive_Type_TypeCode.h"
+#include "Recursive_Type_TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Case_T.h"
-#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/AnyTypeCode/TypeCode_Value_Field.h"
+#include "TypeCode_Case_T.h"
+#include "TypeCode_Struct_Field.h"
+#include "TypeCode_Value_Field.h"
#include "tao/CDR.h"
#include "ace/Array_Base.h"
-#include "ace/Value_Ptr.h"
ACE_RCSID (tao,
TypeCode_CDR_Extraction,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -105,7 +102,7 @@ namespace
TAO::TypeCodeFactory::TC_Info_List & infos);
bool find_recursive_tc (char const * id,
- TAO::TypeCodeFactory::TC_Info_List & tcs,
+ CORBA::TypeCode_ptr & tc,
TAO::TypeCodeFactory::TC_Info_List & infos)
{
// See comments above for rationale behind using an array instead
@@ -119,18 +116,12 @@ namespace
if (ACE_OS::strcmp (info.id, id) == 0)
{
- // We have a mathing id, so store the typecode in the out array
- // and then compare the others.
- size_t const old_size = tcs.size ();
- if (tcs.size (old_size + 1) == -1) // Incremental growth -- *sigh*
- return false;
-
- TAO::TypeCodeFactory::TC_Info & new_info = tcs[old_size];
- new_info.type = info.type;
+ tc = info.type;
+ return true;
}
}
- return (tcs.size () > 0) ;
+ return false;
}
}
@@ -415,8 +406,7 @@ TAO::TypeCodeFactory::tc_struct_factory (CORBA::TCKind kind,
// Check if struct TypeCode is recursive.
- TAO::TypeCodeFactory::TC_Info_List recursive_tc;
- if (kind == CORBA::tk_struct && find_recursive_tc (id.in (), recursive_tc, infos))
+ if (kind == CORBA::tk_struct && find_recursive_tc (id.in (), tc, infos))
{
// Set remaining parameters.
@@ -425,23 +415,14 @@ TAO::TypeCodeFactory::tc_struct_factory (CORBA::TCKind kind,
member_array_type>
recursive_typecode_type;
- size_t const len = recursive_tc.size ();
-
- for (size_t i = 0; i < len; ++i)
- {
- TAO::TypeCodeFactory::TC_Info & info = recursive_tc[i];
-
- recursive_typecode_type * const rtc =
- dynamic_cast<recursive_typecode_type *> (info.type);
+ recursive_typecode_type * const rtc =
+ dynamic_cast<recursive_typecode_type *> (tc);
- ACE_ASSERT (rtc);
+ ACE_ASSERT (rtc);
- rtc->struct_parameters (name.in (),
- fields,
- nfields);
- }
-
- tc = recursive_tc[0].type;
+ rtc->struct_parameters (name.in (),
+ fields,
+ nfields);
}
else
{
@@ -512,7 +493,7 @@ TAO::TypeCodeFactory::tc_union_factory (CORBA::TCKind /* kind */,
{
elem_type & member = cases[i];
- TAO::TypeCode::Case<CORBA::String_var, CORBA::TypeCode_var> * the_case = 0;
+ TAO::TypeCode::Case<CORBA::String_var, CORBA::TypeCode_var> * the_case;
// Ugly. *sigh*
switch (discriminant_kind)
@@ -663,9 +644,8 @@ TAO::TypeCodeFactory::tc_union_factory (CORBA::TCKind /* kind */,
case_array_type,
TAO::True_RefCount_Policy> typecode_type;
- // Check if we have recursive members, this could be multiple
- TAO::TypeCodeFactory::TC_Info_List recursive_tc;
- if (find_recursive_tc (id.in (), recursive_tc, infos))
+ // Check if union TypeCode is recursive.
+ if (find_recursive_tc (id.in (), tc, infos))
{
// Set remaining parameters.
@@ -674,25 +654,16 @@ TAO::TypeCodeFactory::tc_union_factory (CORBA::TCKind /* kind */,
case_array_type>
recursive_typecode_type;
- size_t const len = recursive_tc.size ();
-
- for (size_t i = 0; i < len; ++i)
- {
- TAO::TypeCodeFactory::TC_Info & info = recursive_tc[i];
-
- recursive_typecode_type * const rtc =
- dynamic_cast<recursive_typecode_type *> (info.type);
+ recursive_typecode_type * const rtc =
+ dynamic_cast<recursive_typecode_type *> (tc);
- ACE_ASSERT (rtc);
+ ACE_ASSERT (rtc);
- rtc->union_parameters (name.in (),
- discriminant_type,
- cases, // Will be copied.
- ncases,
- default_index);
- }
-
- tc = recursive_tc[0].type;
+ rtc->union_parameters (name.in (),
+ discriminant_type,
+ cases, // Will be copied.
+ ncases,
+ default_index);
}
else
{
@@ -1019,8 +990,7 @@ TAO::TypeCodeFactory::tc_value_factory (CORBA::TCKind kind,
TAO::True_RefCount_Policy> typecode_type;
// Check if valuetype/eventtype TypeCode is recursive.
- TAO::TypeCodeFactory::TC_Info_List recursive_tc;
- if (find_recursive_tc (id.in (), recursive_tc, infos))
+ if (find_recursive_tc (id.in (), tc, infos))
{
// Set remaining parameters.
@@ -1029,24 +999,16 @@ TAO::TypeCodeFactory::tc_value_factory (CORBA::TCKind kind,
member_array_type>
recursive_typecode_type;
- size_t const len = recursive_tc.size ();
-
- for (size_t i = 0; i < len; ++i)
- {
- TAO::TypeCodeFactory::TC_Info & info = recursive_tc[i];
-
- recursive_typecode_type * const rtc =
- dynamic_cast<recursive_typecode_type *> (info.type);
+ recursive_typecode_type * const rtc =
+ dynamic_cast<recursive_typecode_type *> (tc);
- ACE_ASSERT (rtc);
+ ACE_ASSERT (rtc);
- rtc->valuetype_parameters (name.in (),
- type_modifier,
- concrete_base,
- fields, // Will be copied.
- nfields);
- }
- tc = recursive_tc[0].type;
+ rtc->valuetype_parameters (name.in (),
+ type_modifier,
+ concrete_base,
+ fields, // Will be copied.
+ nfields);
}
else
{
@@ -1258,132 +1220,94 @@ namespace
// Don't bother demarshaling the rest of the parameters. They will
// be handled by the top-level TypeCode demarshaling call.
- bool new_tc = false;
switch (kind)
{
case CORBA::tk_struct:
{
- // Check if we already have a tc for this type, if yes, use that
- TAO::TypeCodeFactory::TC_Info_List recursive_tc;
- if (find_recursive_tc (id.in (), recursive_tc, infos))
- {
- tc = recursive_tc[0].type;
- }
- else
- {
- new_tc = true;
-
- typedef ACE_Array_Base<
- TAO::TypeCode::Struct_Field<
- CORBA::String_var,
- CORBA::TypeCode_var> > member_array_type;
-
- typedef TAO::TypeCode::Struct<
- CORBA::String_var,
- CORBA::TypeCode_var,
- member_array_type,
- TAO::True_RefCount_Policy> typecode_type;
-
- typedef TAO::TypeCode::Recursive_Type<typecode_type,
- CORBA::TypeCode_var,
- member_array_type>
- recursive_typecode_type;
-
- ACE_NEW_RETURN (tc,
- recursive_typecode_type (kind,
- id.in ()),
- false);
- }
+ typedef ACE_Array_Base<
+ TAO::TypeCode::Struct_Field<
+ CORBA::String_var,
+ CORBA::TypeCode_var> > member_array_type;
+
+ typedef TAO::TypeCode::Struct<
+ CORBA::String_var,
+ CORBA::TypeCode_var,
+ member_array_type,
+ TAO::True_RefCount_Policy> typecode_type;
+
+ typedef TAO::TypeCode::Recursive_Type<typecode_type,
+ CORBA::TypeCode_var,
+ member_array_type>
+ recursive_typecode_type;
+
+ ACE_NEW_RETURN (tc,
+ recursive_typecode_type (kind,
+ id.in ()),
+ false);
}
break;
case CORBA::tk_union:
{
- // Check if we already have a tc for this type, if yes, use that
- TAO::TypeCodeFactory::TC_Info_List recursive_tc;
- if (find_recursive_tc (id.in (), recursive_tc, infos))
- {
- tc = recursive_tc[0].type;
- }
- else
- {
- new_tc = true;
-
- typedef union_case_array_type member_array_type;
-
- typedef TAO::TypeCode::Union<
- CORBA::String_var,
- CORBA::TypeCode_var,
- member_array_type,
- TAO::True_RefCount_Policy> typecode_type;
-
- typedef TAO::TypeCode::Recursive_Type<typecode_type,
- CORBA::TypeCode_var,
- member_array_type>
- recursive_typecode_type;
-
- ACE_NEW_RETURN (tc,
- recursive_typecode_type (kind,
- id.in ()),
- false);
- }
+ typedef union_case_array_type member_array_type;
+
+ typedef TAO::TypeCode::Union<
+ CORBA::String_var,
+ CORBA::TypeCode_var,
+ member_array_type,
+ TAO::True_RefCount_Policy> typecode_type;
+
+ typedef TAO::TypeCode::Recursive_Type<typecode_type,
+ CORBA::TypeCode_var,
+ member_array_type>
+ recursive_typecode_type;
+
+ ACE_NEW_RETURN (tc,
+ recursive_typecode_type (kind,
+ id.in ()),
+ false);
}
break;
case CORBA::tk_value:
case CORBA::tk_event:
{
- // Check if we already have a tc for this type, if yes, use that
- TAO::TypeCodeFactory::TC_Info_List recursive_tc;
- if (find_recursive_tc (id.in (), recursive_tc, infos))
- {
- tc = recursive_tc[0].type;
- }
- else
- {
- new_tc = true;
-
- typedef ACE_Array_Base<
- TAO::TypeCode::Value_Field<
- CORBA::String_var,
- CORBA::TypeCode_var> > member_array_type;
-
- typedef TAO::TypeCode::Value<
- CORBA::String_var,
- CORBA::TypeCode_var,
- member_array_type,
- TAO::True_RefCount_Policy> typecode_type;
-
- typedef TAO::TypeCode::Recursive_Type<typecode_type,
- CORBA::TypeCode_var,
- member_array_type>
- recursive_typecode_type;
-
- ACE_NEW_RETURN (tc,
- recursive_typecode_type (kind,
- id.in ()),
- false);
- }
+ typedef ACE_Array_Base<
+ TAO::TypeCode::Value_Field<
+ CORBA::String_var,
+ CORBA::TypeCode_var> > member_array_type;
+
+ typedef TAO::TypeCode::Value<
+ CORBA::String_var,
+ CORBA::TypeCode_var,
+ member_array_type,
+ TAO::True_RefCount_Policy> typecode_type;
+
+ typedef TAO::TypeCode::Recursive_Type<typecode_type,
+ CORBA::TypeCode_var,
+ member_array_type>
+ recursive_typecode_type;
+
+ ACE_NEW_RETURN (tc,
+ recursive_typecode_type (kind,
+ id.in ()),
+ false);
}
break;
default:
return false; // We should never get here.
};
- // Only when we created a new tc add it to the list.
- if (new_tc)
- {
- size_t const old_size = infos.size ();
- if (infos.size (old_size + 1) == -1) // Incremental growth -- *sigh*
- return false;
+ size_t const old_size = infos.size ();
+ if (infos.size (old_size + 1) == -1) // Incremental growth -- *sigh*
+ return false;
- TAO::TypeCodeFactory::TC_Info & info = infos[old_size];
+ TAO::TypeCodeFactory::TC_Info & info = infos[old_size];
- ACE_DECLARE_NEW_CORBA_ENV;
- info.id = tc->id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false); // Should never throw!
+ ACE_DECLARE_NEW_CORBA_ENV;
+ info.id = tc->id (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK_RETURN (false); // Should never throw!
- info.type = tc;
- }
+ info.type = tc;
return true;
}
@@ -1399,5 +1323,3 @@ operator>> (TAO_InputCDR & cdr,
return tc_demarshal (cdr, tc, infos);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.h b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.h
index 0e6d6015c97..b7571fbfbf4 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_CDR_Extraction.h
@@ -23,11 +23,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-template <class T> class ACE_Array_Base;
-ACE_END_VERSIONED_NAMESPACE_DECL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+template <class T> class ACE_Array_Base;
namespace TAO
{
@@ -193,7 +190,6 @@ namespace TAO
} // End namespace TypeCodeFactory
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
index 67edee2d6b8..9ed73f48bc8 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.cpp
@@ -3,14 +3,13 @@
#ifndef TAO_TYPECODE_CASE_CPP
#define TAO_TYPECODE_CASE_CPP
-#include "tao/AnyTypeCode/TypeCode_Case_Base_T.h"
+#include "TypeCode_Case_Base_T.h"
#include "ace/OS_NS_string.h"
#ifndef __ACE_INLINE__
# include "tao/AnyTypeCode/TypeCode_Case_Base_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType, typename TypeCodeType>
TAO::TypeCode::Case<StringType, TypeCodeType>::~Case (void)
@@ -84,6 +83,4 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::equivalent (
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_TYPECODE_CASE_CPP */
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h
index 638051bcb6a..2a646e7724a 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.h
@@ -23,7 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -168,9 +167,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
@@ -188,9 +184,7 @@ namespace ACE
}
};
-} // End namespace ACE.
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+} // End namespace ACE namespace.
#ifdef __ACE_INLINE__
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.inl b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.inl
index 4bd6b4f8a79..bf992fde3f3 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.inl
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_Base_T.inl
@@ -5,7 +5,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/TypeCode_Traits.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType, typename TypeCodeType>
ACE_INLINE
@@ -75,5 +74,3 @@ TAO::TypeCode::Case<StringType, TypeCodeType>::type (CORBA::TypeCode_ptr tc)
// case.
this->type_ = CORBA::TypeCode::_duplicate (tc);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp b/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp
index fc7533e98ae..579f968fd12 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.cpp
@@ -3,7 +3,7 @@
#ifndef TAO_TYPECODE_CASE_T_CPP
#define TAO_TYPECODE_CASE_T_CPP
-#include "tao/AnyTypeCode/TypeCode_Case_T.h"
+#include "TypeCode_Case_T.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
@@ -13,7 +13,6 @@
# include "tao/AnyTypeCode/TypeCode_Case_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -144,7 +143,7 @@ TAO::TypeCode::Case_T<DiscriminatorType,
StringType,
TypeCodeType>::label (ACE_ENV_SINGLE_ARG_DECL) const
{
- CORBA::Any * value = 0;
+ CORBA::Any * value;
ACE_NEW_THROW_EX (value,
CORBA::Any,
@@ -159,6 +158,5 @@ TAO::TypeCode::Case_T<DiscriminatorType,
return safe_value._retn ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_TYPECODE_CASE_T_CPP */
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_T.h b/TAO/tao/AnyTypeCode/TypeCode_Case_T.h
index c0cff25b880..516127d0054 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.h
@@ -25,7 +25,6 @@
#include "tao/AnyTypeCode/TypeCode_Case_Base_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -128,7 +127,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/TypeCode_Case_T.inl"
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Case_T.inl b/TAO/tao/AnyTypeCode/TypeCode_Case_T.inl
index f95b599c795..b6ac33bd18e 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Case_T.inl
+++ b/TAO/tao/AnyTypeCode/TypeCode_Case_T.inl
@@ -2,9 +2,6 @@
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <typename DiscriminatorType,
typename StringType,
typename TypeCodeType>
@@ -30,5 +27,3 @@ TAO::TypeCode::Case_T<DiscriminatorType,
, label_ (member_label)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Constants.cpp b/TAO/tao/AnyTypeCode/TypeCode_Constants.cpp
index eb9bd81746b..fe6b46d2c1f 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Constants.cpp
+++ b/TAO/tao/AnyTypeCode/TypeCode_Constants.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "TypeCode_Constants.h"
ACE_RCSID (tao,
@@ -9,12 +9,11 @@ ACE_RCSID (tao,
"$Id$")
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-#include "tao/AnyTypeCode/Empty_Param_TypeCode.h"
-#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/AnyTypeCode/String_TypeCode_Static.h"
+#include "Null_RefCount_Policy.h"
+#include "Empty_Param_TypeCode.h"
+#include "Objref_TypeCode_Static.h"
+#include "String_TypeCode_Static.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -110,5 +109,3 @@ namespace CORBA
TypeCode_ptr const _tc_Home = &TAO::TypeCode::tc_Home;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Constants.h b/TAO/tao/AnyTypeCode/TypeCode_Constants.h
index 2aea3471df7..8b057ace36d 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Constants.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Constants.h
@@ -21,10 +21,6 @@
#include "tao/AnyTypeCode/TAO_AnyTypeCode_Export.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class TypeCode;
@@ -62,63 +58,8 @@ namespace CORBA
extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_Component;
extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_Home;
//@}
-
-#define TAO_SYSTEM_EXCEPTION_LIST \
- TAO_SYSTEM_EXCEPTION(UNKNOWN); \
- TAO_SYSTEM_EXCEPTION(BAD_PARAM); \
- TAO_SYSTEM_EXCEPTION(NO_MEMORY); \
- TAO_SYSTEM_EXCEPTION(IMP_LIMIT); \
- TAO_SYSTEM_EXCEPTION(COMM_FAILURE); \
- TAO_SYSTEM_EXCEPTION(INV_OBJREF); \
- TAO_SYSTEM_EXCEPTION(OBJECT_NOT_EXIST); \
- TAO_SYSTEM_EXCEPTION(NO_PERMISSION); \
- TAO_SYSTEM_EXCEPTION(INTERNAL); \
- TAO_SYSTEM_EXCEPTION(MARSHAL); \
- TAO_SYSTEM_EXCEPTION(INITIALIZE); \
- TAO_SYSTEM_EXCEPTION(NO_IMPLEMENT); \
- TAO_SYSTEM_EXCEPTION(BAD_TYPECODE); \
- TAO_SYSTEM_EXCEPTION(BAD_OPERATION); \
- TAO_SYSTEM_EXCEPTION(NO_RESOURCES); \
- TAO_SYSTEM_EXCEPTION(NO_RESPONSE); \
- TAO_SYSTEM_EXCEPTION(PERSIST_STORE); \
- TAO_SYSTEM_EXCEPTION(BAD_INV_ORDER); \
- TAO_SYSTEM_EXCEPTION(TRANSIENT); \
- TAO_SYSTEM_EXCEPTION(FREE_MEM); \
- TAO_SYSTEM_EXCEPTION(INV_IDENT); \
- TAO_SYSTEM_EXCEPTION(INV_FLAG); \
- TAO_SYSTEM_EXCEPTION(INTF_REPOS); \
- TAO_SYSTEM_EXCEPTION(BAD_CONTEXT); \
- TAO_SYSTEM_EXCEPTION(OBJ_ADAPTER); \
- TAO_SYSTEM_EXCEPTION(DATA_CONVERSION); \
- TAO_SYSTEM_EXCEPTION(INV_POLICY); \
- TAO_SYSTEM_EXCEPTION(REBIND); \
- TAO_SYSTEM_EXCEPTION(TIMEOUT); \
- TAO_SYSTEM_EXCEPTION(TRANSACTION_UNAVAILABLE); \
- TAO_SYSTEM_EXCEPTION(TRANSACTION_MODE); \
- TAO_SYSTEM_EXCEPTION(TRANSACTION_REQUIRED); \
- TAO_SYSTEM_EXCEPTION(TRANSACTION_ROLLEDBACK); \
- TAO_SYSTEM_EXCEPTION(INVALID_TRANSACTION); \
- TAO_SYSTEM_EXCEPTION(CODESET_INCOMPATIBLE); \
- TAO_SYSTEM_EXCEPTION(BAD_QOS); \
- TAO_SYSTEM_EXCEPTION(INVALID_ACTIVITY); \
- TAO_SYSTEM_EXCEPTION(ACTIVITY_COMPLETED); \
- TAO_SYSTEM_EXCEPTION(ACTIVITY_REQUIRED); \
- TAO_SYSTEM_EXCEPTION(THREAD_CANCELLED);
-
- // = Typecode constants for system exceptions.
-#define TAO_SYSTEM_EXCEPTION(name) \
- extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_ ## name
- TAO_SYSTEM_EXCEPTION_LIST
-#undef TAO_SYSTEM_EXCEPTION
- //@}
-
- extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_Current;
-
- extern TAO_AnyTypeCode_Export TypeCode_ptr const _tc_NamedValue;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TYPECODE_CONSTANTS_H */
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Struct_Field.h b/TAO/tao/AnyTypeCode/TypeCode_Struct_Field.h
index 1a3d8c9deb4..ad1fb0b35c2 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Struct_Field.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Struct_Field.h
@@ -24,7 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -84,7 +83,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Traits.h b/TAO/tao/AnyTypeCode/TypeCode_Traits.h
index 7c1fe02b47e..921f00717e8 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Traits.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Traits.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class Null_RefCount_Policy;
@@ -119,7 +117,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/AnyTypeCode/TypeCode_Value_Field.h b/TAO/tao/AnyTypeCode/TypeCode_Value_Field.h
index c421189f0f5..7fbfcb20501 100644
--- a/TAO/tao/AnyTypeCode/TypeCode_Value_Field.h
+++ b/TAO/tao/AnyTypeCode/TypeCode_Value_Field.h
@@ -23,7 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -86,7 +85,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/AnyTypeCode/ULongLongSeqA.cpp b/TAO/tao/AnyTypeCode/ULongLongSeqA.cpp
index 5773812563a..d77d9b59c07 100644
--- a/TAO/tao/AnyTypeCode/ULongLongSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/ULongLongSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ULongLongSeqA.h"
+#include "ULongLongSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ULongLongSeqA.h b/TAO/tao/AnyTypeCode/ULongLongSeqA.h
index 65fb4366d8f..0d5ca2d7bd9 100644
--- a/TAO/tao/AnyTypeCode/ULongLongSeqA.h
+++ b/TAO/tao/AnyTypeCode/ULongLongSeqA.h
@@ -37,8 +37,6 @@
#include "tao/ULongLongSeqC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::ULongLongSeq*);
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::ULongLongSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::ULongLongSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/ULongSeqA.cpp b/TAO/tao/AnyTypeCode/ULongSeqA.cpp
index 7acfbea8976..f48c8306497 100644
--- a/TAO/tao/AnyTypeCode/ULongSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/ULongSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ULongSeqA.h"
+#include "ULongSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ULongSeqA.h b/TAO/tao/AnyTypeCode/ULongSeqA.h
index ed4eac48536..f093cec9617 100644
--- a/TAO/tao/AnyTypeCode/ULongSeqA.h
+++ b/TAO/tao/AnyTypeCode/ULongSeqA.h
@@ -38,8 +38,6 @@
#include "tao/ULongSeqC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -64,8 +62,6 @@ TAO_AnyTypeCode_Export void operator<<= (CORBA::Any &, CORBA::ULongSeq*); // non
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA::ULongSeq *&); // deprecated
TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const CORBA::ULongSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/UShortSeqA.cpp b/TAO/tao/AnyTypeCode/UShortSeqA.cpp
index 582d15d69d0..8150d15bef7 100644
--- a/TAO/tao/AnyTypeCode/UShortSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/UShortSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/UShortSeqA.h"
+#include "UShortSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/UShortSeqA.h b/TAO/tao/AnyTypeCode/UShortSeqA.h
index 824246509de..59de79c234c 100644
--- a/TAO/tao/AnyTypeCode/UShortSeqA.h
+++ b/TAO/tao/AnyTypeCode/UShortSeqA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -95,8 +93,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode.cpp b/TAO/tao/AnyTypeCode/Union_TypeCode.cpp
index 25aba5c6340..c88e8ec1236 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode.cpp
@@ -3,19 +3,18 @@
#ifndef TAO_UNION_TYPECODE_CPP
#define TAO_UNION_TYPECODE_CPP
-#include "tao/AnyTypeCode/Union_TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Case_Base_T.h"
+#include "Union_TypeCode.h"
+#include "TypeCode_Case_Base_T.h"
#ifndef __ACE_INLINE__
-# include "tao/AnyTypeCode/Union_TypeCode.inl"
+# include "Union_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
#include "tao/SystemException.h"
-#include "tao/AnyTypeCode/Any.h"
+#include "Any.h"
#include "ace/Value_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
typename TypeCodeType,
@@ -58,22 +57,11 @@ TAO::TypeCode::Union<StringType,
if (!success)
return false;
- offset += enc.total_length ();
-
for (CORBA::ULong i = 0; i < this->ncases_; ++i)
{
- TAO_OutputCDR case_enc;
- offset = ACE_align_binary (offset,
- ACE_CDR::LONG_ALIGN);
-
case_type const & c = *this->cases_[i];
- if (!c.marshal (case_enc, offset))
- return false;
-
- offset += case_enc.total_length ();
-
- if (!enc.write_octet_array_mb (case_enc.begin ()))
+ if (!c.marshal (enc, offset + enc.total_length ()))
return false;
}
@@ -127,28 +115,28 @@ TAO::TypeCode::Union<StringType,
CORBA::ULong const tc_count =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Long tc_def = tc->default_index (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_count != this->ncases_
|| tc_def != this->default_index_)
- return false;
+ return 0;
// Check the discriminator type.
CORBA::TypeCode_var tc_discriminator =
tc->discriminator_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equal_discriminators =
Traits<StringType>::get_typecode (this->discriminant_type_)->equal (
tc_discriminator.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_discriminators)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->ncases_; ++i)
{
@@ -167,13 +155,13 @@ TAO::TypeCode::Union<StringType,
lhs_case.equal (i,
tc
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_case)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
template <typename StringType,
@@ -193,27 +181,27 @@ TAO::TypeCode::Union<StringType,
CORBA::ULong const tc_count =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Long tc_def = tc->default_index (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_count != this->ncases_
|| tc_def != this->default_index_)
- return false;
+ return 0;
CORBA::TypeCode_var tc_discriminator =
tc->discriminator_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equiv_discriminators =
Traits<StringType>::get_typecode (this->discriminant_type_)->equivalent (
tc_discriminator.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equiv_discriminators)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->ncases_; ++i)
{
@@ -232,13 +220,13 @@ TAO::TypeCode::Union<StringType,
lhs_case.equivalent (i,
tc
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equivalent_case)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
template <typename StringType,
@@ -407,7 +395,7 @@ TAO::TypeCode::Union<StringType,
if (this->default_index_ > -1
&& static_cast<CORBA::ULong> (this->default_index_) == index)
{
- CORBA::Any * any = 0;
+ CORBA::Any * any;
ACE_NEW_THROW_EX (any,
CORBA::Any,
CORBA::NO_MEMORY ());
@@ -458,6 +446,4 @@ TAO::TypeCode::Union<StringType,
return this->default_index_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_UNION_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode.h b/TAO/tao/AnyTypeCode/Union_TypeCode.h
index 8089aeea48f..92117ba92fd 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode.h
@@ -25,7 +25,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -161,8 +160,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Union_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode.inl b/TAO/tao/AnyTypeCode/Union_TypeCode.inl
index 28ac14d3537..84dfb32fa0b 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <typename StringType,
typename TypeCodeType,
class CaseArrayType,
@@ -55,5 +53,3 @@ TAO::TypeCode::Union<StringType,
, cases_ ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp
index 2d5677d317e..714b16cfa96 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.cpp
@@ -13,13 +13,11 @@
#include "ace/Value_Ptr.h"
-ACE_RCSID (AnyTypeCode,
+ACE_RCSID (tao,
Union_TypeCode_Static,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
bool
TAO::TypeCode::Union<char const *,
CORBA::TypeCode_ptr const *,
@@ -58,23 +56,13 @@ TAO::TypeCode::Union<char const *,
if (!success)
return false;
- offset += enc.total_length ();
-
// Note that we handle the default case below, too.
- for (CORBA::ULong i = 0; i < this->ncases_; ++i)
+ for (unsigned int i = 0; i < this->ncases_; ++i)
{
- TAO_OutputCDR case_enc;
- offset = ACE_align_binary (offset,
- ACE_CDR::LONG_ALIGN);
case_type const & c = *this->cases_[i];
- if (!c.marshal (case_enc, offset))
- return false;
-
- offset += case_enc.total_length ();
-
- if (!enc.write_octet_array_mb (case_enc.begin ()))
+ if (!c.marshal (enc, offset + enc.total_length ()))
return false;
}
@@ -117,28 +105,28 @@ TAO::TypeCode::Union<char const *,
CORBA::ULong const tc_count =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Long tc_def = tc->default_index (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_count != this->ncases_
|| tc_def != this->default_index_)
- return false;
+ return 0;
// Check the discriminator type.
CORBA::TypeCode_var tc_discriminator =
tc->discriminator_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equal_discriminators =
Traits<char const *>::get_typecode (this->discriminant_type_)->equal (
tc_discriminator.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_discriminators)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->ncases_; ++i)
{
@@ -157,13 +145,13 @@ TAO::TypeCode::Union<char const *,
lhs_case.equal (i,
tc
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_case)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
CORBA::Boolean
@@ -180,27 +168,27 @@ TAO::TypeCode::Union<char const *,
CORBA::ULong const tc_count =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Long tc_def = tc->default_index (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_count != this->ncases_
|| tc_def != this->default_index_)
- return false;
+ return 0;
CORBA::TypeCode_var tc_discriminator =
tc->discriminator_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equiv_discriminators =
Traits<char const *>::get_typecode (this->discriminant_type_)->equivalent (
tc_discriminator.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equiv_discriminators)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->ncases_; ++i)
{
@@ -219,13 +207,13 @@ TAO::TypeCode::Union<char const *,
lhs_case.equivalent (i,
tc
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equivalent_case)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
CORBA::TypeCode_ptr
@@ -418,5 +406,3 @@ TAO::TypeCode::Union<char const *,
{
return this->default_index_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h
index bf58345e03f..b0a507ca168 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.h
@@ -26,7 +26,6 @@
#include "tao/AnyTypeCode/TypeCode_Base_Attributes.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -160,7 +159,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Union_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.inl
index 4398e2a0a62..019a8ba2a2f 100644
--- a/TAO/tao/AnyTypeCode/Union_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Union_TypeCode_Static.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::TypeCode::Union<char const *,
CORBA::TypeCode_ptr const *,
@@ -25,5 +23,3 @@ TAO::TypeCode::Union<char const *,
, cases_ (cases)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ValueModifier.pidl b/TAO/tao/AnyTypeCode/ValueModifier.pidl
index 2887587dddd..4cd346c5049 100644
--- a/TAO/tao/AnyTypeCode/ValueModifier.pidl
+++ b/TAO/tao/AnyTypeCode/ValueModifier.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* ValueModifier.pidl
*/
// ================================================================
diff --git a/TAO/tao/AnyTypeCode/ValueModifierA.cpp b/TAO/tao/AnyTypeCode/ValueModifierA.cpp
index 5f23127315a..0a93f94dc26 100644
--- a/TAO/tao/AnyTypeCode/ValueModifierA.cpp
+++ b/TAO/tao/AnyTypeCode/ValueModifierA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/ValueModifierA.h"
+#include "ValueModifierA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
@@ -33,8 +33,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -54,4 +52,3 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ValueModifierA.h b/TAO/tao/AnyTypeCode/ValueModifierA.h
index ff165ad8eda..479dc4c4052 100644
--- a/TAO/tao/AnyTypeCode/ValueModifierA.h
+++ b/TAO/tao/AnyTypeCode/ValueModifierA.h
@@ -58,8 +58,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
@@ -82,8 +80,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/ValueModifierC.cpp b/TAO/tao/AnyTypeCode/ValueModifierC.cpp
index 9606aaf3d1b..76644c8b3c0 100644
--- a/TAO/tao/AnyTypeCode/ValueModifierC.cpp
+++ b/TAO/tao/AnyTypeCode/ValueModifierC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/AnyTypeCode/ValueModifierC.h"
+#include "ValueModifierC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,11 +39,8 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/ValueModifierC.h b/TAO/tao/AnyTypeCode/ValueModifierC.h
index 424e4e3b61b..2bfe5a25b4e 100644
--- a/TAO/tao/AnyTypeCode/ValueModifierC.h
+++ b/TAO/tao/AnyTypeCode/ValueModifierC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -108,8 +106,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode.cpp b/TAO/tao/AnyTypeCode/Value_TypeCode.cpp
index 8955d4be01b..4be37413b75 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode.cpp
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode.cpp
@@ -16,7 +16,6 @@
# include "tao/AnyTypeCode/Value_TypeCode.inl"
#endif /* !__ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
typename TypeCodeType,
@@ -125,29 +124,29 @@ TAO::TypeCode::Value<StringType,
CORBA::ValueModifier const tc_type_modifier =
tc->type_modifier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_type_modifier != this->type_modifier_)
- return false;
+ return 0;
CORBA::TypeCode_var rhs_concrete_base_type =
tc->concrete_base_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equal_concrete_base_types =
this->equal (rhs_concrete_base_type.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_concrete_base_types)
- return false;
+ return 0;
CORBA::ULong const tc_nfields =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nfields != this->nfields_)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->nfields_; ++i)
{
@@ -158,37 +157,37 @@ TAO::TypeCode::Value<StringType,
CORBA::Visibility const rhs_visibility =
tc->member_visibility (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (lhs_visibility != rhs_visibility)
- return false;
+ return 0;
char const * const lhs_name =
Traits<StringType>::get_string (lhs_field.name);;
char const * const rhs_name = tc->member_name (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (ACE_OS::strcmp (lhs_name, rhs_name) != 0)
- return false;
+ return 0;
CORBA::TypeCode_ptr const lhs_tc =
Traits<StringType>::get_typecode (lhs_field.type);
CORBA::TypeCode_var const rhs_tc =
tc->member_type (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equal_members =
lhs_tc->equal (rhs_tc.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_members)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
template <typename StringType,
@@ -205,32 +204,32 @@ TAO::TypeCode::Value<StringType,
{
CORBA::ValueModifier const tc_type_modifier =
tc->type_modifier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_type_modifier != this->type_modifier_)
- return false;
+ return 0;
CORBA::TypeCode_var rhs_concrete_base_type =
tc->concrete_base_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equivalent_concrete_base_types =
this->equivalent (rhs_concrete_base_type.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equivalent_concrete_base_types)
- return false;
+ return 0;
// Perform a structural comparison, excluding the name() and
// member_name() operations.
CORBA::ULong const tc_nfields =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nfields != this->nfields_)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->nfields_; ++i)
{
@@ -242,28 +241,28 @@ TAO::TypeCode::Value<StringType,
CORBA::Visibility const rhs_visibility =
tc->member_visibility (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (lhs_visibility != rhs_visibility)
- return false;
+ return 0;
CORBA::TypeCode_ptr const lhs_tc =
Traits<StringType>::get_typecode (lhs_field.type);
CORBA::TypeCode_var const rhs_tc =
tc->member_type (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equiv_types =
lhs_tc->equivalent (rhs_tc.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equiv_types)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
template <typename StringType,
@@ -460,6 +459,5 @@ TAO::TypeCode::Value<StringType,
Traits<StringType>::get_typecode (this->concrete_base_));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_VALUE_TYPECODE_CPP */
diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode.h b/TAO/tao/AnyTypeCode/Value_TypeCode.h
index ffc18532e6f..2578a304b53 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode.h
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode.h
@@ -28,7 +28,6 @@
#include "tao/AnyTypeCode/ValueModifierC.h"
#include "tao/AnyTypeCode/VisibilityC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -161,7 +160,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Value_TypeCode.inl"
diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode.inl b/TAO/tao/AnyTypeCode/Value_TypeCode.inl
index 6a63efab53e..9a8b31f0ddb 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode.inl
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <typename StringType,
typename TypeCodeType,
@@ -56,5 +55,3 @@ TAO::TypeCode::Value<StringType,
, fields_ ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp
index c222edfa947..369aeae045c 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.cpp
@@ -18,7 +18,6 @@ ACE_RCSID (tao,
Value_TypeCode_Static,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO::TypeCode::Value<char const *,
@@ -116,29 +115,29 @@ TAO::TypeCode::Value<char const *,
CORBA::ValueModifier const tc_type_modifier =
tc->type_modifier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_type_modifier != this->type_modifier_)
- return false;
+ return 0;
CORBA::TypeCode_var rhs_concrete_base_type =
tc->concrete_base_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equal_concrete_base_types =
this->equal (rhs_concrete_base_type.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_concrete_base_types)
- return false;
+ return 0;
CORBA::ULong const tc_nfields =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nfields != this->nfields_)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->nfields_; ++i)
{
@@ -149,37 +148,37 @@ TAO::TypeCode::Value<char const *,
CORBA::Visibility const rhs_visibility =
tc->member_visibility (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (lhs_visibility != rhs_visibility)
- return false;
+ return 0;
char const * const lhs_name =
Traits<char const *>::get_string (lhs_field.name);;
char const * const rhs_name = tc->member_name (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (ACE_OS::strcmp (lhs_name, rhs_name) != 0)
- return false;
+ return 0;
CORBA::TypeCode_ptr const lhs_tc =
Traits<char const *>::get_typecode (lhs_field.type);
CORBA::TypeCode_var const rhs_tc =
tc->member_type (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equal_members =
lhs_tc->equal (rhs_tc.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equal_members)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
CORBA::Boolean
@@ -193,32 +192,32 @@ TAO::TypeCode::Value<char const *,
{
CORBA::ValueModifier const tc_type_modifier =
tc->type_modifier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_type_modifier != this->type_modifier_)
- return false;
+ return 0;
CORBA::TypeCode_var rhs_concrete_base_type =
tc->concrete_base_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equivalent_concrete_base_types =
this->equivalent (rhs_concrete_base_type.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equivalent_concrete_base_types)
- return false;
+ return 0;
// Perform a structural comparison, excluding the name() and
// member_name() operations.
CORBA::ULong const tc_nfields =
tc->member_count (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (tc_nfields != this->nfields_)
- return false;
+ return 0;
for (CORBA::ULong i = 0; i < this->nfields_; ++i)
{
@@ -231,28 +230,28 @@ TAO::TypeCode::Value<char const *,
CORBA::Visibility const rhs_visibility =
tc->member_visibility (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (lhs_visibility != rhs_visibility)
- return false;
+ return 0;
CORBA::TypeCode_ptr const lhs_tc =
Traits<char const *>::get_typecode (lhs_field.type);
CORBA::TypeCode_var const rhs_tc =
tc->member_type (i
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
CORBA::Boolean const equiv_types =
lhs_tc->equivalent (rhs_tc.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
+ ACE_CHECK_RETURN (0);
if (!equiv_types)
- return false;
+ return 0;
}
- return true;
+ return 1;
}
CORBA::TypeCode_ptr
@@ -421,5 +420,3 @@ TAO::TypeCode::Value<char const *,
CORBA::TypeCode::_duplicate (
Traits<char const *>::get_typecode (this->concrete_base_));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h
index 57ba318ab03..9db721919f5 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.h
@@ -29,7 +29,6 @@
#include "tao/AnyTypeCode/VisibilityC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -159,7 +158,6 @@ namespace TAO
} // End namespace TypeCode
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/AnyTypeCode/Value_TypeCode_Static.inl"
diff --git a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.inl b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.inl
index 3341e18053f..70c7d6cf1b1 100644
--- a/TAO/tao/AnyTypeCode/Value_TypeCode_Static.inl
+++ b/TAO/tao/AnyTypeCode/Value_TypeCode_Static.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::TypeCode::Value<char const *,
CORBA::TypeCode_ptr const *,
@@ -26,5 +24,3 @@ TAO::TypeCode::Value<char const *,
, fields_ (fields)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/Visibility.pidl b/TAO/tao/AnyTypeCode/Visibility.pidl
index 715b312bdf1..44cece777a3 100644
--- a/TAO/tao/AnyTypeCode/Visibility.pidl
+++ b/TAO/tao/AnyTypeCode/Visibility.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* Visibilty.pidl
*/
// ================================================================
diff --git a/TAO/tao/AnyTypeCode/VisibilityA.cpp b/TAO/tao/AnyTypeCode/VisibilityA.cpp
index ce31b456908..95ae55adc13 100644
--- a/TAO/tao/AnyTypeCode/VisibilityA.cpp
+++ b/TAO/tao/AnyTypeCode/VisibilityA.cpp
@@ -25,15 +25,13 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/VisibilityA.h"
+#include "VisibilityA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -53,4 +51,3 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/VisibilityA.h b/TAO/tao/AnyTypeCode/VisibilityA.h
index c791d479e08..04f9ebde904 100644
--- a/TAO/tao/AnyTypeCode/VisibilityA.h
+++ b/TAO/tao/AnyTypeCode/VisibilityA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -84,8 +82,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/VisibilityC.cpp b/TAO/tao/AnyTypeCode/VisibilityC.cpp
index d8c674edc02..76f74d94f2f 100644
--- a/TAO/tao/AnyTypeCode/VisibilityC.cpp
+++ b/TAO/tao/AnyTypeCode/VisibilityC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/AnyTypeCode/VisibilityC.h"
+#include "VisibilityC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,11 +39,8 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/VisibilityC.h b/TAO/tao/AnyTypeCode/VisibilityC.h
index 4f6e607ba23..124188ba2f7 100644
--- a/TAO/tao/AnyTypeCode/VisibilityC.h
+++ b/TAO/tao/AnyTypeCode/VisibilityC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -98,8 +96,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/WCharSeqA.cpp b/TAO/tao/AnyTypeCode/WCharSeqA.cpp
index 978836022a6..c8d8ecee99d 100644
--- a/TAO/tao/AnyTypeCode/WCharSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/WCharSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/WCharSeqA.h"
+#include "WCharSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -34,8 +34,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -142,5 +140,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/WCharSeqA.h b/TAO/tao/AnyTypeCode/WCharSeqA.h
index 8935210cc23..ab57e949bdd 100644
--- a/TAO/tao/AnyTypeCode/WCharSeqA.h
+++ b/TAO/tao/AnyTypeCode/WCharSeqA.h
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::WCharSeq*); //
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::WCharSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::WCharSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/WStringSeqA.cpp b/TAO/tao/AnyTypeCode/WStringSeqA.cpp
index f3f468704e4..41067661a25 100644
--- a/TAO/tao/AnyTypeCode/WStringSeqA.cpp
+++ b/TAO/tao/AnyTypeCode/WStringSeqA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/WStringSeqA.h"
+#include "WStringSeqA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -143,5 +141,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/WStringSeqA.h b/TAO/tao/AnyTypeCode/WStringSeqA.h
index b9357c80326..9f01c462bc2 100644
--- a/TAO/tao/AnyTypeCode/WStringSeqA.h
+++ b/TAO/tao/AnyTypeCode/WStringSeqA.h
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -63,8 +61,6 @@ TAO_AnyTypeCode_Export void operator<<= ( ::CORBA::Any &, CORBA::WStringSeq*); /
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, CORBA::WStringSeq *&); // deprecated
TAO_AnyTypeCode_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const CORBA::WStringSeq *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/WrongTransactionA.cpp b/TAO/tao/AnyTypeCode/WrongTransactionA.cpp
index 9c6fd0a62f2..7b37a76f712 100644
--- a/TAO/tao/AnyTypeCode/WrongTransactionA.cpp
+++ b/TAO/tao/AnyTypeCode/WrongTransactionA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/WrongTransactionA.h"
+#include "WrongTransactionA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -147,5 +145,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/WrongTransactionA.h b/TAO/tao/AnyTypeCode/WrongTransactionA.h
index 745c0aa5f39..08bce947959 100644
--- a/TAO/tao/AnyTypeCode/WrongTransactionA.h
+++ b/TAO/tao/AnyTypeCode/WrongTransactionA.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -95,8 +93,6 @@ TAO_AnyTypeCode_Export CORBA::Boolean operator>>= (const CORBA::Any &, const COR
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/AnyTypeCode/append.cpp b/TAO/tao/AnyTypeCode/append.cpp
index 36a8721fa7d..bb14170a683 100644
--- a/TAO/tao/AnyTypeCode/append.cpp
+++ b/TAO/tao/AnyTypeCode/append.cpp
@@ -38,8 +38,6 @@ ACE_RCSID (tao,
append,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Encode instances of arbitrary data types based only on typecode.
// "data" points to the data type; if it's not a primitve data type,
// the TypeCode interpreter is used to recursively encode its
@@ -415,13 +413,13 @@ TAO_Marshal_Union::append (CORBA::TypeCode_ptr tc,
ACE_CHECK_RETURN (TAO::TRAVERSE_STOP);
// Save the discriminator value in a temporary variable...
- CORBA::Short short_v = CORBA::Short();
- CORBA::UShort ushort_v = CORBA::UShort();
- CORBA::Long long_v = CORBA::Long();
- CORBA::ULong ulong_v = CORBA::ULong();
- CORBA::ULong enum_v = CORBA::ULong();
- CORBA::Char char_v = CORBA::Char();
- CORBA::WChar wchar_v = CORBA::WChar();
+ CORBA::Short short_v;
+ CORBA::UShort ushort_v;
+ CORBA::Long long_v;
+ CORBA::ULong ulong_v;
+ CORBA::ULong enum_v;
+ CORBA::Char char_v;
+ CORBA::WChar wchar_v;
CORBA::Boolean boolean_v = false;
switch (kind)
@@ -1321,5 +1319,3 @@ TAO_Marshal_Value::append (CORBA::TypeCode_ptr tc,
CORBA::COMPLETED_MAYBE),
TAO::TRAVERSE_STOP);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/orb_typesA.cpp b/TAO/tao/AnyTypeCode/orb_typesA.cpp
index e1967ebdfd8..92c9bc9bc46 100644
--- a/TAO/tao/AnyTypeCode/orb_typesA.cpp
+++ b/TAO/tao/AnyTypeCode/orb_typesA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/AnyTypeCode/orb_typesA.h"
+#include "orb_typesA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -33,8 +33,6 @@
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -114,4 +112,3 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode/orb_typesA.h b/TAO/tao/AnyTypeCode/orb_typesA.h
index 84b2fcc5c0f..1585e465596 100644
--- a/TAO/tao/AnyTypeCode/orb_typesA.h
+++ b/TAO/tao/AnyTypeCode/orb_typesA.h
@@ -37,7 +37,6 @@
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/orb_typesC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
@@ -70,8 +69,6 @@ namespace CORBA
} // module CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/AnyTypeCode/skip.cpp b/TAO/tao/AnyTypeCode/skip.cpp
index dcad0cb9c3f..31fd7a14552 100644
--- a/TAO/tao/AnyTypeCode/skip.cpp
+++ b/TAO/tao/AnyTypeCode/skip.cpp
@@ -19,10 +19,10 @@
//
// ============================================================================
-#include "tao/AnyTypeCode/Marshal.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
-#include "tao/AnyTypeCode/Any.h"
+#include "Marshal.h"
+#include "TypeCode.h"
+#include "Any_Unknown_IDL_Type.h"
+#include "Any.h"
#include "tao/debug.h"
#include "tao/Valuetype_Adapter.h"
@@ -36,14 +36,12 @@ ACE_RCSID (tao,
skip,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::traverse_status
TAO_Marshal_Primitive::skip (CORBA::TypeCode_ptr tc,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
// Status of skip operation.
TAO::traverse_status retval = TAO::TRAVERSE_CONTINUE;
@@ -88,7 +86,8 @@ TAO_Marshal_Primitive::skip (CORBA::TypeCode_ptr tc,
retval = TAO::TRAVERSE_STOP;
// we are not a primitive type
}
- if (retval == TAO::TRAVERSE_CONTINUE && continue_skipping)
+ if (retval == TAO::TRAVERSE_CONTINUE
+ && continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
else
{
@@ -125,7 +124,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
// Typecode kind.
CORBA::ULong kind;
@@ -133,7 +132,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr,
// Decode the "kind" field of the typecode from the stream.
continue_skipping = stream->read_ulong (kind);
- if (continue_skipping)
+ if (continue_skipping == 1)
{
// Typecodes with empty parameter lists all have preallocated
// constants. We use those to reduce memory consumption and
@@ -206,7 +205,7 @@ TAO_Marshal_TypeCode::skip (CORBA::TypeCode_ptr,
}
}
- if (continue_skipping)
+ if (continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
else
{
@@ -226,7 +225,7 @@ TAO_Marshal_Principal::skip (CORBA::TypeCode_ptr,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
// specifies the number of bytes in the Principal
CORBA::ULong len;
@@ -237,7 +236,7 @@ TAO_Marshal_Principal::skip (CORBA::TypeCode_ptr,
continue_skipping = stream->skip_bytes (len);
}
- if (continue_skipping)
+ if (continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
else
{
@@ -257,7 +256,7 @@ TAO_Marshal_ObjRef::skip (CORBA::TypeCode_ptr,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
// return status
TAO::traverse_status retval =
@@ -299,7 +298,8 @@ TAO_Marshal_ObjRef::skip (CORBA::TypeCode_ptr,
continue_skipping = stream->skip_bytes (encap_len);
}
- if (retval == TAO::TRAVERSE_CONTINUE && continue_skipping)
+ if (retval == TAO::TRAVERSE_CONTINUE
+ && continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
else
{
@@ -366,15 +366,15 @@ TAO_Marshal_Union::skip (CORBA::TypeCode_ptr tc,
ACE_CHECK_RETURN (TAO::TRAVERSE_STOP);
// Save the discriminator value in a temporary variable...
- CORBA::Short short_v = CORBA::Short();
- CORBA::UShort ushort_v = CORBA::UShort();
- CORBA::Long long_v = CORBA::Long();
- CORBA::ULong ulong_v = CORBA::ULong();
- CORBA::ULong enum_v = CORBA::ULong();
- CORBA::Char char_v = CORBA::Char();
- CORBA::WChar wchar_v = CORBA::WChar();
- CORBA::Boolean boolean_v = false;
-
+ CORBA::Short short_v;
+ CORBA::UShort ushort_v;
+ CORBA::Long long_v;
+ CORBA::ULong ulong_v;
+ CORBA::ULong enum_v;
+ CORBA::Char char_v;
+ CORBA::WChar wchar_v;
+ CORBA::Boolean boolean_v = false;;
+
switch (kind)
{
case CORBA::tk_short:
@@ -600,7 +600,7 @@ TAO_Marshal_String::skip (CORBA::TypeCode_ptr,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
// On decode, omit the check against specified string bounds, and
// cope with illegal "zero length" strings (all lengths on the wire
@@ -611,7 +611,7 @@ TAO_Marshal_String::skip (CORBA::TypeCode_ptr,
// but we will accept them when it's clear how to do so.
continue_skipping = stream->skip_string ();
- if (continue_skipping)
+ if (continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
else
{
@@ -708,7 +708,7 @@ TAO_Marshal_Sequence::skip (CORBA::TypeCode_ptr tc,
break;
default:
- while (bounds-- && continue_skipping)
+ while (bounds-- && continue_skipping == 1)
{
continue_skipping =
TAO_Marshal_Object::perform_skip (tc2.in (),
@@ -736,7 +736,8 @@ TAO_Marshal_Array::skip (CORBA::TypeCode_ptr tc,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
+
// retrieve the bounds of the array
CORBA::ULong bounds = tc->length (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -799,7 +800,7 @@ TAO_Marshal_Array::skip (CORBA::TypeCode_ptr tc,
break;
default:
- while (bounds-- && continue_skipping)
+ while (bounds-- && continue_skipping == 1)
{
int stop =
TAO_Marshal_Object::perform_skip (tc2.in (),
@@ -807,7 +808,7 @@ TAO_Marshal_Array::skip (CORBA::TypeCode_ptr tc,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (TAO::TRAVERSE_STOP);
if (stop == TAO::TRAVERSE_STOP)
- continue_skipping = false;
+ continue_skipping = 0;
}
break;
}// end of switch
@@ -831,7 +832,7 @@ TAO_Marshal_Alias::skip (CORBA::TypeCode_ptr tc,
{
// Typecode of the aliased type.
CORBA::TypeCode_var tc2;
- CORBA::Boolean continue_skipping = true;
+ CORBA::Boolean continue_skipping = 1;
// Status of decode operation.
TAO::traverse_status retval =
@@ -847,7 +848,7 @@ TAO_Marshal_Alias::skip (CORBA::TypeCode_ptr tc,
// tc2->_decr_refcnt ();
if (retval == TAO::TRAVERSE_CONTINUE
- && continue_skipping)
+ && continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
if (TAO_debug_level > 0)
@@ -915,7 +916,7 @@ TAO_Marshal_WString::skip (CORBA::TypeCode_ptr,
TAO_InputCDR *stream
ACE_ENV_ARG_DECL)
{
- CORBA::Boolean continue_skipping = true;
+ ACE_CDR::Boolean continue_skipping = 1;
// On decode, omit the check against specified wstring bounds, and
// cope with illegal "zero length" strings (all lengths on the wire
@@ -929,7 +930,7 @@ TAO_Marshal_WString::skip (CORBA::TypeCode_ptr,
continue_skipping = stream->skip_wstring ();
- if (continue_skipping)
+ if (continue_skipping == 1)
return TAO::TRAVERSE_CONTINUE;
if (TAO_debug_level > 0)
@@ -1039,5 +1040,3 @@ TAO_Marshal_Value::skip (CORBA::TypeCode_ptr tc,
CORBA::COMPLETED_MAYBE),
TAO::TRAVERSE_STOP);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode_Adapter.cpp b/TAO/tao/AnyTypeCode_Adapter.cpp
index d9da63d780f..ef7e0adf569 100644
--- a/TAO/tao/AnyTypeCode_Adapter.cpp
+++ b/TAO/tao/AnyTypeCode_Adapter.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/AnyTypeCode_Adapter.h"
@@ -6,10 +6,7 @@ ACE_RCSID (tao,
TAO_AnyTypeCode_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_AnyTypeCode_Adapter::~TAO_AnyTypeCode_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/AnyTypeCode_Adapter.h b/TAO/tao/AnyTypeCode_Adapter.h
index 9fd002af542..5050a148c32 100644
--- a/TAO/tao/AnyTypeCode_Adapter.h
+++ b/TAO/tao/AnyTypeCode_Adapter.h
@@ -27,8 +27,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class TypeCode;
@@ -115,18 +113,6 @@ ANYTYPECODE__EXCEPTION_LIST
virtual void insert_into_any (CORBA::Any * any, CORBA::Short value) = 0;
- virtual void insert_into_any (CORBA::Any * any, CORBA::UShort value) = 0;
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::Float value) = 0;
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::Double value) = 0;
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::LongLong value) = 0;
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::ULongLong value) = 0;
-
- virtual void insert_into_any (CORBA::Any * any, CORBA::LongDouble value) = 0;
-
virtual void insert_into_any (CORBA::Any * any, ACE_OutputCDR::from_wchar value) = 0;
virtual void insert_into_any (CORBA::Any * any, ACE_OutputCDR::from_char value) = 0;
@@ -136,7 +122,5 @@ ANYTYPECODE__EXCEPTION_LIST
virtual void insert_into_any (CORBA::Any * any, ACE_OutputCDR::from_boolean value) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANYTYPECODE_ADAPTER */
diff --git a/TAO/tao/Any_Insert_Policy_T.h b/TAO/tao/Any_Insert_Policy_T.h
index df79cbbc1f9..48b71281704 100644
--- a/TAO/tao/Any_Insert_Policy_T.h
+++ b/TAO/tao/Any_Insert_Policy_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -26,12 +26,9 @@
#include "tao/AnyTypeCode_Adapter.h"
#include "ace/Dynamic_Service.h"
-#include "ace/Log_Msg.h"
#include "tao/debug.h"
#include "tao/IFR_Client_Adapter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
template <typename S>
@@ -113,8 +110,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_ANY_INSERT_POLICY_H */
diff --git a/TAO/tao/Arg_Traits_T.h b/TAO/tao/Arg_Traits_T.h
index f71e79b2f27..e384db4a2ad 100644
--- a/TAO/tao/Arg_Traits_T.h
+++ b/TAO/tao/Arg_Traits_T.h
@@ -19,8 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -34,8 +32,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ARG_TRAITS_T_H */
diff --git a/TAO/tao/Argument.cpp b/TAO/tao/Argument.cpp
index d1819d1cc51..98e0861d980 100644
--- a/TAO/tao/Argument.cpp
+++ b/TAO/tao/Argument.cpp
@@ -3,8 +3,6 @@
#include "tao/Argument.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Argument::~Argument (void)
{
}
@@ -54,4 +52,4 @@ TAO::RetArgument::mode (void) const
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Argument.h b/TAO/tao/Argument.h
index cbaee13f83d..edad3568278 100644
--- a/TAO/tao/Argument.h
+++ b/TAO/tao/Argument.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -6,8 +6,7 @@
*
* $Id$
*
- * @author Jeff Parsons
- * @author Carlos O'Ryan
+ * @authors Jeff Parsons and Carlos O'Ryan
*/
//=============================================================================
@@ -27,8 +26,6 @@
#include "tao/TAO_Export.h"
#include "tao/ParameterModeC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -126,8 +123,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ARGUMENT_H */
diff --git a/TAO/tao/Array_VarOut_T.cpp b/TAO/tao/Array_VarOut_T.cpp
index 712ee76a20a..63093981053 100644
--- a/TAO/tao/Array_VarOut_T.cpp
+++ b/TAO/tao/Array_VarOut_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_ARRAY_VAROUT_T_CPP
-#define TAO_ARRAY_VAROUT_T_CPP
+#ifndef TAO_ARRAY_VAROUT_T_C
+#define TAO_ARRAY_VAROUT_T_C
#include "tao/Array_VarOut_T.h"
@@ -9,8 +9,9 @@
#include "tao/Array_VarOut_T.inl"
#endif /* __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Array_VarOut_T,
+ "$Id$")
template<typename T, typename T_slice, typename TAG>
TAO_FixedArray_Var_T<T,T_slice,TAG> &
@@ -90,6 +91,4 @@ TAO_Array_Forany_T<T,T_slice,TAG>::_tao_any_destructor (
TAO::Array_Traits<T,T_slice,TAG>::free (tmp);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_ARRAY_VAROUT_T_CPP */
+#endif /* TAO_ARRAY_VAROUT_T_C */
diff --git a/TAO/tao/Array_VarOut_T.h b/TAO/tao/Array_VarOut_T.h
index 3a923436eba..f2e07430c24 100644
--- a/TAO/tao/Array_VarOut_T.h
+++ b/TAO/tao/Array_VarOut_T.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -172,7 +170,7 @@ class TAO_Array_Forany_T
public:
TAO_Array_Forany_T (void);
TAO_Array_Forany_T (T_slice *,
- CORBA::Boolean nocopy = false);
+ CORBA::Boolean nocopy = 0);
TAO_Array_Forany_T (const TAO_Array_Forany_T<T,T_slice,TAG> &);
~TAO_Array_Forany_T (void);
@@ -200,11 +198,9 @@ public:
static T_slice * tao_alloc (void);
private:
T_slice * ptr_;
- CORBA::Boolean nocopy_;
+ const CORBA::Boolean nocopy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Array_VarOut_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Array_VarOut_T.inl b/TAO/tao/Array_VarOut_T.inl
index 13c9f923572..f0837b64e71 100644
--- a/TAO/tao/Array_VarOut_T.inl
+++ b/TAO/tao/Array_VarOut_T.inl
@@ -2,8 +2,6 @@
//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T, typename T_slice, typename TAG>
ACE_INLINE
TAO_Array_Var_Base_T<T,T_slice,TAG>::TAO_Array_Var_Base_T (void)
@@ -245,7 +243,7 @@ template<typename T, typename T_slice, typename TAG>
ACE_INLINE
TAO_Array_Forany_T<T,T_slice,TAG>::TAO_Array_Forany_T (void)
: ptr_ (0),
- nocopy_ (false)
+ nocopy_ (0)
{}
template<typename T, typename T_slice, typename TAG>
@@ -349,7 +347,7 @@ TAO_Array_Forany_T<T,T_slice,TAG>::in (void) const
{
// @@@ (JP) This looks scary I know but it helps MSVC understand
// things better when the array is multi-dimensional.
-#if (defined (_MSC_VER) && _MSC_VER <= 1200)
+#if (defined (_MSC_VER) && _MSC_VER <= 1200) || (defined (__IBMCPP__) && (__IBMCPP__ <= 600))
// @@ (OO) MSVC++ 6 can't handle the const_cast<> in the
// multi-dimensional array case so reinterpret_cast<> cast
// instead. It's not clear if this is really the right
@@ -358,22 +356,9 @@ TAO_Array_Forany_T<T,T_slice,TAG>::in (void) const
// C-style "sledgehammer" cast to make it obvious that this
// code may have unresolved issues, and also to make it
// easier for others to find this code.
- // @@ (RLS) It is not the const_cast<> that VC6 can't handle, it is
- // just confused. The ptr_ is seen as int (* const) and
- // the desired type is const int *. const_cast<> is used
- // to cast away const'ness and it does on VC6, yeilding
- // int * where const int * is desired, and specifically
- // directing the user to use either a reinterpret_cast<>
- // or a C-style cast.
- // @@ (RLS) The IBM compiler was complaining about a bad cast only.
- // return const_cast<const T_slice *> (this->ptr_);
- // It is perfectly happy with the #else part below, as
- // is every other compiler I've tried it on.
return reinterpret_cast<const T_slice *> (this->ptr_);
#else
- // This should work on all platforms. If a platform fails that it is
- // that compiler that's wrong, not everyone else. RLS
- return (this->ptr_);
+ return const_cast<const T_slice *> (this->ptr_);
#endif /* _MSC_VER <= 1200 */
}
@@ -424,5 +409,3 @@ TAO_Array_Forany_T<T,T_slice,TAG>::tao_alloc (void)
{
return TAO::Array_Traits<T,T_slice,TAG>::alloc ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Asynch_Queued_Message.cpp b/TAO/tao/Asynch_Queued_Message.cpp
index 74412e8db1a..0f10cddbe1f 100644
--- a/TAO/tao/Asynch_Queued_Message.cpp
+++ b/TAO/tao/Asynch_Queued_Message.cpp
@@ -1,6 +1,6 @@
-#include "tao/Asynch_Queued_Message.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
+#include "Asynch_Queued_Message.h"
+#include "debug.h"
+#include "ORB_Core.h"
#include "ace/OS_Memory.h"
#include "ace/OS_NS_string.h"
@@ -14,7 +14,6 @@ ACE_RCSID (tao,
Asynch_Queued_Message,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Asynch_Queued_Message::TAO_Asynch_Queued_Message (
const ACE_Message_Block *contents,
@@ -182,5 +181,3 @@ TAO_Asynch_Queued_Message::destroy (void)
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Asynch_Queued_Message.h b/TAO/tao/Asynch_Queued_Message.h
index 99c2ddf2718..9b40397caa0 100644
--- a/TAO/tao/Asynch_Queued_Message.h
+++ b/TAO/tao/Asynch_Queued_Message.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Asynch_Queued_Message
*
@@ -99,7 +97,5 @@ private:
char *buffer_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ASYNCH_QUEUED_MESSAGE_H */
diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp b/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp
index 1f01eca39f6..3fdcb0239aa 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp
+++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.cpp
@@ -14,8 +14,6 @@ ACE_RCSID (tao,
Asynch_Reply_Dispatcher_Base,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Asynch_Reply_Dispatcher_Base::TAO_Asynch_Reply_Dispatcher_Base (
TAO_ORB_Core *orb_core,
@@ -146,5 +144,3 @@ TAO_Asynch_Reply_Dispatcher_Base::try_dispatch_reply (void)
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.h b/TAO/tao/Asynch_Reply_Dispatcher_Base.h
index 671c188a325..ea4c156ba22 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher_Base.h
+++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file Asynch_Reply_Dispatcher_Base.h
@@ -25,17 +24,13 @@
#include "tao/IOP_IORC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+class TAO_Pluggable_Reply_Params;
+class TAO_ORB_Core ;
class ACE_Time_Value;
+class TAO_Transport;
class ACE_Lock;
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-class TAO_Pluggable_Reply_Params;
-class TAO_ORB_Core;
-class TAO_Transport;
/**
* @class TAO_Asynch_Reply_Dispatcher_Base
*
@@ -161,8 +156,6 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Asynch_Reply_Dispatcher_Base.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Asynch_Reply_Dispatcher_Base.i b/TAO/tao/Asynch_Reply_Dispatcher_Base.i
index c63371d74a4..af9c34d4242 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher_Base.i
+++ b/TAO/tao/Asynch_Reply_Dispatcher_Base.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE void
@@ -14,5 +10,3 @@ namespace TAO
(void) ardb->decr_refcount ();
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Auto_Functor.h b/TAO/tao/Auto_Functor.h
index a764aea0e3d..3fc7a857e5a 100644
--- a/TAO/tao/Auto_Functor.h
+++ b/TAO/tao/Auto_Functor.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Auto_Functor.h
@@ -21,8 +20,6 @@
#include "ace/Auto_Functor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Utils
@@ -33,7 +30,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_AUTO_FUNCTOR_H*/
diff --git a/TAO/tao/BD_String_Argument_T.cpp b/TAO/tao/BD_String_Argument_T.cpp
index 4e9e4d2201c..2734394a30f 100644
--- a/TAO/tao/BD_String_Argument_T.cpp
+++ b/TAO/tao/BD_String_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_BD_STRING_ARGUMENT_T_CPP
-#define TAO_BD_STRING_ARGUMENT_T_CPP
+#ifndef TAO_BD_STRING_ARGUMENT_T_C
+#define TAO_BD_STRING_ARGUMENT_T_C
#include "tao/BD_String_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/BD_String_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ BD_String_Argument_T,
+ "$Id$")
template<typename S,
typename to_S,
@@ -151,6 +153,4 @@ TAO::Ret_BD_String_Argument_T<S,S_var,to_S,from_S,BOUND,Insert_Policy>::intercep
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_BD_STRING_ARGUMENT_T_CPP */
+#endif /* TAO_BD_STRING_ARGUMENT_T_C */
diff --git a/TAO/tao/BD_String_Argument_T.h b/TAO/tao/BD_String_Argument_T.h
index 7c73638e991..7a2fdc4eddd 100644
--- a/TAO/tao/BD_String_Argument_T.h
+++ b/TAO/tao/BD_String_Argument_T.h
@@ -25,8 +25,6 @@
#include "tao/Argument.h"
#include "tao/Any_Insert_Policy_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -200,8 +198,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/BD_String_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/BD_String_Argument_T.inl b/TAO/tao/BD_String_Argument_T.inl
index d222489a42c..a21a1e227b7 100644
--- a/TAO/tao/BD_String_Argument_T.inl
+++ b/TAO/tao/BD_String_Argument_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename to_S,
typename from_S,
@@ -133,4 +129,3 @@ TAO::Ret_BD_String_Argument_T<S,S_var,to_S,from_S,BOUND,Insert_Policy>::arg (voi
return this->x_.out ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Base_Transport_Property.cpp b/TAO/tao/Base_Transport_Property.cpp
index 121aea34b89..75b3d08349c 100644
--- a/TAO/tao/Base_Transport_Property.cpp
+++ b/TAO/tao/Base_Transport_Property.cpp
@@ -11,12 +11,11 @@ ACE_RCSID (tao,
Base_Transport_Property,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Base_Transport_Property::~TAO_Base_Transport_Property (void)
{
}
+
TAO_Transport_Descriptor_Interface *
TAO_Base_Transport_Property::duplicate (void)
{
@@ -54,5 +53,3 @@ TAO_Base_Transport_Property::hash (void) const
{
return this->endpoint_->hash ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Base_Transport_Property.h b/TAO/tao/Base_Transport_Property.h
index 954c7e7bb83..b781ac40232 100644
--- a/TAO/tao/Base_Transport_Property.h
+++ b/TAO/tao/Base_Transport_Property.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// ===================================================================
@@ -25,8 +24,6 @@
#include "tao/Endpoint.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Base_Transport_Property
*
@@ -67,8 +64,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Base_Transport_Property.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Base_Transport_Property.inl b/TAO/tao/Base_Transport_Property.inl
index 3c097130fd4..fa4bd7f6b19 100644
--- a/TAO/tao/Base_Transport_Property.inl
+++ b/TAO/tao/Base_Transport_Property.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Base_Transport_Property::TAO_Base_Transport_Property (void)
{
@@ -27,5 +24,3 @@ TAO_Base_Transport_Property::TAO_Base_Transport_Property (
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Basic_Argument_T.cpp b/TAO/tao/Basic_Argument_T.cpp
index ae34d1062d0..f798eb09887 100644
--- a/TAO/tao/Basic_Argument_T.cpp
+++ b/TAO/tao/Basic_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_BASIC_ARGUMENT_T_CPP
-#define TAO_BASIC_ARGUMENT_T_CPP
+#ifndef TAO_BASIC_ARGUMENT_T_C
+#define TAO_BASIC_ARGUMENT_T_C
#include "tao/Basic_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/Basic_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Basic_Argument_T,
+ "$Id$")
template<typename S, typename Insert_Policy>
CORBA::Boolean
@@ -96,6 +98,4 @@ TAO::Ret_Basic_Argument_T<S, Insert_Policy>::interceptor_value (CORBA::Any *any)
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_BASIC_ARGUMENT_T_CPP */
+#endif /* TAO_BASIC_ARGUMENT_T_C */
diff --git a/TAO/tao/Basic_Argument_T.h b/TAO/tao/Basic_Argument_T.h
index 8558ce45bf6..cc7bcb388b3 100644
--- a/TAO/tao/Basic_Argument_T.h
+++ b/TAO/tao/Basic_Argument_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -156,8 +154,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Basic_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Basic_Argument_T.inl b/TAO/tao/Basic_Argument_T.inl
index c8df439d593..d11f01533bd 100644
--- a/TAO/tao/Basic_Argument_T.inl
+++ b/TAO/tao/Basic_Argument_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S, typename Insert_Policy>
ACE_INLINE
TAO::In_Basic_Argument_T<S, Insert_Policy>::In_Basic_Argument_T (S const & x)
@@ -82,4 +78,3 @@ TAO::Ret_Basic_Argument_T<S, Insert_Policy>::retn (void)
return this->x_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Basic_Arguments.h b/TAO/tao/Basic_Arguments.h
index 81c0000ac90..155d66c651e 100644
--- a/TAO/tao/Basic_Arguments.h
+++ b/TAO/tao/Basic_Arguments.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -25,8 +25,6 @@
#include "tao/Arg_Traits_T.h"
#include "tao/Any_Insert_Policy_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -66,7 +64,7 @@ namespace TAO
template<>
class TAO_Export Arg_Traits<CORBA::UShort>
- : public Basic_Arg_Traits_T<CORBA::UShort, TAO::Any_Insert_Policy_AnyTypeCode_Adapter <CORBA::UShort> >
+ : public Basic_Arg_Traits_T<CORBA::UShort, TAO::Any_Insert_Policy_Stream <CORBA::UShort> >
{
};
@@ -78,39 +76,37 @@ namespace TAO
template<>
class TAO_Export Arg_Traits<CORBA::Float>
- : public Basic_Arg_Traits_T<CORBA::Float, TAO::Any_Insert_Policy_AnyTypeCode_Adapter <CORBA::Float> >
+ : public Basic_Arg_Traits_T<CORBA::Float, TAO::Any_Insert_Policy_Stream <CORBA::Float> >
{
};
template<>
class TAO_Export Arg_Traits<CORBA::Double>
- : public Basic_Arg_Traits_T<CORBA::Double, TAO::Any_Insert_Policy_AnyTypeCode_Adapter <CORBA::Double> >
+ : public Basic_Arg_Traits_T<CORBA::Double, TAO::Any_Insert_Policy_Stream <CORBA::Double> >
{
};
template<>
class TAO_Export Arg_Traits<CORBA::LongLong>
- : public Basic_Arg_Traits_T<CORBA::LongLong, TAO::Any_Insert_Policy_AnyTypeCode_Adapter <CORBA::LongLong> >
+ : public Basic_Arg_Traits_T<CORBA::LongLong, TAO::Any_Insert_Policy_Stream <CORBA::LongLong> >
{
};
template<>
class TAO_Export Arg_Traits<CORBA::ULongLong>
: public Basic_Arg_Traits_T<CORBA::ULongLong,
- TAO::Any_Insert_Policy_AnyTypeCode_Adapter <CORBA::ULongLong> >
+ TAO::Any_Insert_Policy_Stream <CORBA::ULongLong> >
{
};
template<>
class TAO_Export Arg_Traits<CORBA::LongDouble>
: public Basic_Arg_Traits_T<CORBA::LongDouble,
- TAO::Any_Insert_Policy_AnyTypeCode_Adapter <CORBA::LongDouble> >
+ TAO::Any_Insert_Policy_Stream <CORBA::LongDouble> >
{
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_BASIC_ARGUMENTS_H */
diff --git a/TAO/tao/Basic_Types.h b/TAO/tao/Basic_Types.h
index 5276a3e0ba6..b2d8d652926 100644
--- a/TAO/tao/Basic_Types.h
+++ b/TAO/tao/Basic_Types.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,10 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
/**
@@ -88,8 +84,6 @@ namespace CORBA
class TAO_InputCDR;
class TAO_OutputCDR;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_BASIC_TYPES_H */
diff --git a/TAO/tao/BiDir_Adapter.cpp b/TAO/tao/BiDir_Adapter.cpp
index b564942d5db..90b60d1b393 100644
--- a/TAO/tao/BiDir_Adapter.cpp
+++ b/TAO/tao/BiDir_Adapter.cpp
@@ -1,13 +1,10 @@
-// $Id$
+// @(#) $Id$
#include "tao/BiDir_Adapter.h"
ACE_RCSID(tao, BiDir_Adapter, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_BiDir_Adapter::~TAO_BiDir_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BiDir_Adapter.h b/TAO/tao/BiDir_Adapter.h
index fd5270b769c..ebf1e5675dc 100644
--- a/TAO/tao/BiDir_Adapter.h
+++ b/TAO/tao/BiDir_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Policy_Validator;
@@ -52,8 +50,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_BIDIR_ADAPTER_H */
diff --git a/TAO/tao/BiDir_GIOP/BiDirGIOP.cpp b/TAO/tao/BiDir_GIOP/BiDirGIOP.cpp
index a4943a47b04..033371ec5bb 100644
--- a/TAO/tao/BiDir_GIOP/BiDirGIOP.cpp
+++ b/TAO/tao/BiDir_GIOP/BiDirGIOP.cpp
@@ -1,6 +1,6 @@
-#include "tao/BiDir_GIOP/BiDir_ORBInitializer.h"
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
-#include "tao/BiDir_GIOP/BiDirPolicy_Validator.h"
+#include "BiDir_ORBInitializer.h"
+#include "BiDirGIOP.h"
+#include "BiDirPolicy_Validator.h"
#include "tao/ORB_Core.h"
#include "tao/debug.h"
#include "tao/ORBInitializer_Registry.h"
@@ -9,7 +9,6 @@ ACE_RCSID (BiDir_GIOP,
BiDirGIOP,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Set the flag to zero to start with
int TAO_BiDirGIOP_Loader::is_activated_ = 0;
@@ -59,7 +58,7 @@ TAO_BiDirGIOP_Loader::init (int,
if (TAO_debug_level > 0)
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
+ "(%P | %t) Caught exception:");
}
return -1;
}
@@ -88,14 +87,12 @@ TAO_BiDirGIOP_Loader::load_policy_validators (TAO_Policy_Validator &val
CORBA::COMPLETED_NO));
ACE_CHECK;
- // We may be adding another TAO_BiDirPolicy_Validator instance for
- // the same ORB (different POA). In cases where huge numbers of
- // bi-directional POA instances are created, having a validator
- // instance per POA may introduce additional delays in policy
- // validation and hence, the overal policy creation time. Since this
- // is out of the critical invocation processing path, I plan to keep
- // the design simple and not try to avoid an ineficiency of such
- // small proportions.
+ // We may be adding another TAO_BiDirPolicy_Validator instance for the
+ // same ORB (different POA). In cases where huge numbers of bi-directional POA instances
+ // are created, having a validator instance per POA may introduce additional delays in
+ // policy validation and hence, the overal policy creation time. Since this is out of the
+ // critical invocation processing path, I plan to keep the design simple and not try to
+ // avoid an ineficiency of such small proportions.
val.add_validator (validator);
}
@@ -105,8 +102,6 @@ TAO_BiDirGIOP_Loader::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_BiDirGIOP_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_BiDirGIOP_Loader,
ACE_TEXT ("BiDirGIOP_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/BiDir_GIOP/BiDirGIOP.h b/TAO/tao/BiDir_GIOP/BiDirGIOP.h
index c1cafd48fa3..643bca38dc6 100644
--- a/TAO/tao/BiDir_GIOP/BiDirGIOP.h
+++ b/TAO/tao/BiDir_GIOP/BiDirGIOP.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file BiDirGIOP.h
@@ -17,7 +16,7 @@
#define TAO_BIDIR_GIOP_H
#include /**/ "ace/pre.h"
-#include "tao/BiDir_GIOP/bidirgiop_export.h"
+#include "bidirgiop_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -26,8 +25,6 @@
#include "tao/BiDir_Adapter.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_BiDirPolicy_Validator;
/**
@@ -64,17 +61,14 @@ private:
static int is_activated_;
};
-static int
-TAO_Requires_BiDirGIOP_Initializer = TAO_BiDirGIOP_Loader::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_BiDirGIOP_Loader)
ACE_FACTORY_DECLARE (TAO_BiDirGIOP, TAO_BiDirGIOP_Loader)
+static int
+TAO_Requires_BiDirGIOP_Initializer = TAO_BiDirGIOP_Loader::Initializer ();
#define TAO_BIDIRGIOP_SAFE_INCLUDE
-#include "tao/BiDir_GIOP/BiDirPolicyC.h"
+#include "BiDirPolicyC.h"
#undef TAO_BIDIRGIOP_SAFE_INCLUDE
#include /**/ "ace/post.h"
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicy.pidl b/TAO/tao/BiDir_GIOP/BiDirPolicy.pidl
index 876d32946fa..6659b56951d 100644
--- a/TAO/tao/BiDir_GIOP/BiDirPolicy.pidl
+++ b/TAO/tao/BiDir_GIOP/BiDirPolicy.pidl
@@ -10,8 +10,6 @@
// -Wb,export_include="bidirgiop_export.h" \
// -Wb,pre_include="ace/pre.h" \
// -Wb,post_include="ace/post.h" \
-// -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
-// -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
// BiDirPolicy.pidl
//
// This is from the GIOP 1.2 spec for Bi Dir IIOP.
@@ -21,7 +19,7 @@
#pragma prefix "omg.org"
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
// Self contained module for Bi-directional GIOP policy
module BiDirPolicy
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp b/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp
index 07fe0de4a78..93db9790b38 100644
--- a/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp
+++ b/TAO/tao/BiDir_GIOP/BiDirPolicyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
+#include "BiDirGIOP.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -184,5 +182,3 @@ BiDirPolicy::BidirectionalPolicy::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicyC.h b/TAO/tao/BiDir_GIOP/BiDirPolicyC.h
index c1661c9c707..0baa3c73cee 100644
--- a/TAO/tao/BiDir_GIOP/BiDirPolicyC.h
+++ b/TAO/tao/BiDir_GIOP/BiDirPolicyC.h
@@ -43,7 +43,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/BiDir_GIOP/bidirgiop_export.h"
+#include "bidirgiop_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -69,8 +69,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace BiDirPolicy
{
@@ -246,8 +244,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.cpp b/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.cpp
index af719c05a24..8dcdeb2b341 100644
--- a/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.cpp
+++ b/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.cpp
@@ -1,14 +1,12 @@
-#include "tao/BiDir_GIOP/BiDirPolicy_Validator.h"
-#include "tao/BiDir_GIOP/BiDir_Policy_i.h"
+#include "BiDirPolicy_Validator.h"
+#include "BiDir_Policy_i.h"
#include "tao/Policy_Set.h"
#include "tao/ORB_Core.h"
-ACE_RCSID (BiDir_GIOP,
+ACE_RCSID (TAO,
BiDirPolicy_Validator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_BiDirPolicy_Validator::TAO_BiDirPolicy_Validator (TAO_ORB_Core &orb_core)
: TAO_Policy_Validator (orb_core)
{
@@ -56,5 +54,3 @@ TAO_BiDirPolicy_Validator::legal_policy_impl (CORBA::PolicyType type)
{
return (type == BiDirPolicy::BIDIRECTIONAL_POLICY_TYPE);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.h b/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.h
index 106b1a834c8..a91220671d8 100644
--- a/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.h
+++ b/TAO/tao/BiDir_GIOP/BiDirPolicy_Validator.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file BiDirPolicy_Validator.h
@@ -18,14 +16,13 @@
#define TAO_BIDIR_POLICY_VALIDATOR_H_
#include /**/ "ace/pre.h"
-#include "tao/BiDir_GIOP/bidirgiop_export.h"
+#include "bidirgiop_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Policy_Validator.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Policy_Set;
class TAO_ORB_Core;
@@ -36,6 +33,7 @@ class TAO_ORB_Core;
* @brief Policy Validator for BiDir GIOP class
*
*/
+
class TAO_BiDirGIOP_Export TAO_BiDirPolicy_Validator : public TAO_Policy_Validator
{
public:
@@ -50,9 +48,9 @@ public:
virtual CORBA::Boolean legal_policy_impl (CORBA::PolicyType type);
-};
+private:
-TAO_END_VERSIONED_NAMESPACE_DECL
+};
#include /**/ "ace/post.h"
#endif /* TAO_BIDIR_POLICY_VALIDATOR_H_ */
diff --git a/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.cpp b/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.cpp
index 2aff9aa8432..ff26f0ca91f 100644
--- a/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.cpp
+++ b/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.cpp
@@ -1,8 +1,10 @@
+// -*- C++ -*-
+//
// $Id$
-#include "tao/BiDir_GIOP/BiDir_ORBInitializer.h"
-#include "tao/BiDir_GIOP/BiDir_PolicyFactory.h"
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
+#include "BiDir_ORBInitializer.h"
+#include "BiDir_PolicyFactory.h"
+#include "BiDirGIOP.h"
#include "tao/ORB_Constants.h"
@@ -10,8 +12,6 @@ ACE_RCSID (BiDir_GIOP,
BiDir_ORBInitializer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_BiDir_ORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
@@ -65,5 +65,3 @@ TAO_BiDir_ORBInitializer::register_policy_factories (
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.h b/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.h
index b09a94da506..736f2b637f4 100644
--- a/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.h
+++ b/TAO/tao/BiDir_GIOP/BiDir_ORBInitializer.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "tao/BiDir_GIOP/bidirgiop_export.h"
+#include "bidirgiop_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,12 +30,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Messaging ORB initializer.
-class TAO_BiDir_ORBInitializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
+class TAO_BiDirGIOP_Export TAO_BiDir_ORBInitializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
@@ -56,8 +54,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.cpp b/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.cpp
index 98ef7218f99..248691a541a 100644
--- a/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.cpp
+++ b/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.cpp
@@ -1,6 +1,6 @@
-#include "tao/BiDir_GIOP/BiDir_PolicyFactory.h"
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
-#include "tao/BiDir_GIOP/BiDir_Policy_i.h"
+#include "BiDir_PolicyFactory.h"
+#include "BiDirGIOP.h"
+#include "BiDir_Policy_i.h"
#include "tao/ORB_Constants.h"
#include "tao/AnyTypeCode/Any.h"
@@ -9,8 +9,6 @@ ACE_RCSID (BiDir_GIOP,
BiDir_PolicyFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy_ptr
TAO_BiDir_PolicyFactory::create_policy (
CORBA::PolicyType type,
@@ -48,5 +46,3 @@ TAO_BiDir_PolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.h b/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.h
index 9a4175257b5..cdce842dead 100644
--- a/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.h
+++ b/TAO/tao/BiDir_GIOP/BiDir_PolicyFactory.h
@@ -14,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "tao/BiDir_GIOP/bidirgiop_export.h"
+#include "bidirgiop_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,16 +27,14 @@
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
#if defined(_MSC_VER)
-# pragma warning(push)
-# pragma warning(disable:4250)
+#pragma warning(push)
+#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Policy factory for all Messaging related policies.
-class TAO_BiDir_PolicyFactory
- : public PortableInterceptor::PolicyFactory
- , public TAO_Local_RefCounted_Object
+class TAO_BiDirGIOP_Export TAO_BiDir_PolicyFactory :
+ public PortableInterceptor::PolicyFactory,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -45,13 +43,11 @@ public:
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
CORBA::PolicyError));
-
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
-# pragma warning(pop)
+#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/BiDir_GIOP/BiDir_Policy_i.cpp b/TAO/tao/BiDir_GIOP/BiDir_Policy_i.cpp
index 926dbcf223e..c301a8a7b53 100644
--- a/TAO/tao/BiDir_GIOP/BiDir_Policy_i.cpp
+++ b/TAO/tao/BiDir_GIOP/BiDir_Policy_i.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/BiDir_GIOP/BiDir_Policy_i.h"
+#include "BiDir_Policy_i.h"
#include "tao/Stub.h"
#include "tao/debug.h"
@@ -10,8 +10,6 @@ ACE_RCSID (TAO,
BiDir_Policy_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_BidirectionalPolicy::TAO_BidirectionalPolicy (
const BiDirPolicy::BidirectionalPolicyValue val)
: ACE_NESTED_CLASS (CORBA, Object) ()
@@ -33,6 +31,7 @@ TAO_BidirectionalPolicy::TAO_BidirectionalPolicy (const TAO_BidirectionalPolicy
{
}
+
CORBA::PolicyType
TAO_BidirectionalPolicy::policy_type (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -75,6 +74,7 @@ TAO_BidirectionalPolicy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
}
+
BiDirPolicy::BidirectionalPolicyValue
TAO_BidirectionalPolicy::value (
ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
@@ -90,5 +90,3 @@ TAO_BidirectionalPolicy::_tao_cached_type (void) const
{
return TAO_CACHED_POLICY_BIDIRECTIONAL_GIOP;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BiDir_GIOP/BiDir_Policy_i.h b/TAO/tao/BiDir_GIOP/BiDir_Policy_i.h
index 93ef62f6c19..1555b96dc9d 100644
--- a/TAO/tao/BiDir_GIOP/BiDir_Policy_i.h
+++ b/TAO/tao/BiDir_GIOP/BiDir_Policy_i.h
@@ -1,4 +1,6 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+// $Id$
+//
// ===================================================================
/**
@@ -13,22 +15,20 @@
#ifndef TAO_BIDIR_POLICY_I_H
#define TAO_BIDIR_POLICY_I_H
#include /**/ "ace/pre.h"
-#include "tao/BiDir_GIOP/bidirgiop_export.h"
+#include "bidirgiop_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
+#include "BiDirGIOP.h"
#include "tao/LocalObject.h"
#if defined(_MSC_VER)
-# pragma warning(push)
-# pragma warning(disable:4250)
+#pragma warning(push)
+#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_BidirectionalPolicy
*
@@ -38,11 +38,14 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* clients can be made bi-directional or not. Further, this policy
* also needs to be set by the server to use the connections
* established by the clients to send requests.
+ *
*/
-class TAO_BidirectionalPolicy
- : public virtual BiDirPolicy::BidirectionalPolicy
- , public virtual TAO_Local_RefCounted_Object
+
+class TAO_BiDirGIOP_Export TAO_BidirectionalPolicy
+ : public virtual BiDirPolicy::BidirectionalPolicy,
+ public virtual TAO_Local_RefCounted_Object
{
+
public:
/// Constructor.
@@ -57,6 +60,7 @@ public:
/// = The BiDir::BidirectionalPolicy methods
virtual BiDirPolicy::BidirectionalPolicyValue value (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
+
ACE_THROW_SPEC ((
CORBA::SystemException
));
@@ -71,18 +75,14 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
virtual TAO_Cached_Policy_Type _tao_cached_type (void) const;
-
private:
/// The attribute
BiDirPolicy::BidirectionalPolicyValue value_;
-
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
-# pragma warning(pop)
+#pragma warning(pop)
#endif /* _MSC_VER */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Bind_Dispatcher_Guard.cpp b/TAO/tao/Bind_Dispatcher_Guard.cpp
index c88d3af1783..9466a58fe3e 100644
--- a/TAO/tao/Bind_Dispatcher_Guard.cpp
+++ b/TAO/tao/Bind_Dispatcher_Guard.cpp
@@ -11,8 +11,6 @@ ACE_RCSID (tao,
Bind_Dispatcher_Guard,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Bind_Dispatcher_Guard::TAO_Bind_Dispatcher_Guard (
CORBA::ULong request_id,
TAO_Reply_Dispatcher* rd,
@@ -38,5 +36,3 @@ TAO_Bind_Dispatcher_Guard::~TAO_Bind_Dispatcher_Guard (void)
if (this->status_ == TAO_Bind_Dispatcher_Guard::UNBIND)
(void) this->tms_->unbind_dispatcher (this->request_id_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Bind_Dispatcher_Guard.h b/TAO/tao/Bind_Dispatcher_Guard.h
index ae86b126b92..e4c992b8ab6 100644
--- a/TAO/tao/Bind_Dispatcher_Guard.h
+++ b/TAO/tao/Bind_Dispatcher_Guard.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file Bind_Dispatcher_Guard.h
@@ -19,8 +18,6 @@
#include "tao/Basic_Types.h"
#include "tao/TAO_Export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Reply_Dispatcher;
class TAO_Transport_Mux_Strategy;
@@ -58,8 +55,6 @@ private:
TAO_Transport_Mux_Strategy* tms_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Bind_Dispatcher_Guard.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Bind_Dispatcher_Guard.i b/TAO/tao/Bind_Dispatcher_Guard.i
index f5ccc4a8d23..64bce7bf6f6 100644
--- a/TAO/tao/Bind_Dispatcher_Guard.i
+++ b/TAO/tao/Bind_Dispatcher_Guard.i
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+// This may look like C, but it's really -*- C++ -*-
// $Id$
// ===========================================================================
@@ -16,7 +15,6 @@
#include "tao/Reply_Dispatcher.h"
#include "tao/Transport_Mux_Strategy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE void
TAO_Bind_Dispatcher_Guard::status (int s)
@@ -42,5 +40,3 @@ TAO_Bind_Dispatcher_Guard::unbind_dispatcher (void)
return retval;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Block_Flushing_Strategy.cpp b/TAO/tao/Block_Flushing_Strategy.cpp
index c56ecbe7ef0..96a6b3f12d1 100644
--- a/TAO/tao/Block_Flushing_Strategy.cpp
+++ b/TAO/tao/Block_Flushing_Strategy.cpp
@@ -1,13 +1,12 @@
+// -*- C++ -*-
// $Id$
-#include "tao/Block_Flushing_Strategy.h"
-#include "tao/Transport.h"
-#include "tao/Queued_Message.h"
+#include "Block_Flushing_Strategy.h"
+#include "Transport.h"
+#include "Queued_Message.h"
ACE_RCSID(tao, Block_Flushing_Strategy, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Block_Flushing_Strategy::schedule_output (TAO_Transport *transport)
{
@@ -51,5 +50,3 @@ TAO_Block_Flushing_Strategy::flush_transport (TAO_Transport *transport)
}
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Block_Flushing_Strategy.h b/TAO/tao/Block_Flushing_Strategy.h
index 835b97755e7..4c917bc2671 100644
--- a/TAO/tao/Block_Flushing_Strategy.h
+++ b/TAO/tao/Block_Flushing_Strategy.h
@@ -14,14 +14,12 @@
#define TAO_BLOCK_FLUSHING_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/Flushing_Strategy.h"
+#include "Flushing_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Block_Flushing_Strategy
*
@@ -38,7 +36,5 @@ public:
virtual int flush_transport (TAO_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_BLOCK_FLUSHING_STRATEGY_H */
diff --git a/TAO/tao/Blocked_Connect_Strategy.cpp b/TAO/tao/Blocked_Connect_Strategy.cpp
index 9317a128679..a7d50c3d307 100644
--- a/TAO/tao/Blocked_Connect_Strategy.cpp
+++ b/TAO/tao/Blocked_Connect_Strategy.cpp
@@ -1,5 +1,5 @@
-#include "tao/Blocked_Connect_Strategy.h"
-#include "tao/Connection_Handler.h"
+#include "Blocked_Connect_Strategy.h"
+#include "Connection_Handler.h"
#include "ace/Synch_Options.h"
@@ -7,7 +7,6 @@ ACE_RCSID(tao,
Blocked_Connect_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Blocked_Connect_Strategy::TAO_Blocked_Connect_Strategy (
TAO_ORB_Core *orb_core)
@@ -54,5 +53,3 @@ TAO_Blocked_Connect_Strategy::wait (TAO_Transport *,
// We cannot wait for connection completion
return -1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Blocked_Connect_Strategy.h b/TAO/tao/Blocked_Connect_Strategy.h
index 9c547ebfc23..87016f0470f 100644
--- a/TAO/tao/Blocked_Connect_Strategy.h
+++ b/TAO/tao/Blocked_Connect_Strategy.h
@@ -14,14 +14,12 @@
#define TAO_BLOCKED_CONNECT_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/Connect_Strategy.h"
+#include "Connect_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Blocked_Connect_Strategy
*
@@ -29,10 +27,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* during connects
*
*/
+
class TAO_Export TAO_Blocked_Connect_Strategy : public TAO_Connect_Strategy
{
public:
- /// Constructor
+ /// Contructor
TAO_Blocked_Connect_Strategy (TAO_ORB_Core *orb);
/// Destructor
@@ -52,7 +51,6 @@ public:
ACE_Time_Value *val);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /*TAO_BLOCKED_CONNECT_STRATEGY_H*/
diff --git a/TAO/tao/BooleanSeqC.cpp b/TAO/tao/BooleanSeqC.cpp
index 1b8ef457532..94f67041501 100644
--- a/TAO/tao/BooleanSeqC.cpp
+++ b/TAO/tao/BooleanSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/BooleanSeqC.h"
+#include "BooleanSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ void CORBA::BooleanSeq::_tao_any_destructor (
}
#endif /* _TAO_CDR_OP_CORBA_BooleanSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/BooleanSeqC.h b/TAO/tao/BooleanSeqC.h
index 58218300078..61901510719 100644
--- a/TAO/tao/BooleanSeqC.h
+++ b/TAO/tao/BooleanSeqC.h
@@ -52,8 +52,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -141,8 +139,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Buffer_Allocator_T.cpp b/TAO/tao/Buffer_Allocator_T.cpp
index 52ae87f3c33..34a0aa19550 100644
--- a/TAO/tao/Buffer_Allocator_T.cpp
+++ b/TAO/tao/Buffer_Allocator_T.cpp
@@ -6,9 +6,6 @@
#include "tao/Buffer_Allocator_T.h"
#include "ace/Global_Macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
template <typename handler_type, typename alloc_type>
@@ -40,6 +37,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_BUFFER_ALLOCATOR_T_CPP */
diff --git a/TAO/tao/Buffer_Allocator_T.h b/TAO/tao/Buffer_Allocator_T.h
index 3d29c153ac9..59684723965 100644
--- a/TAO/tao/Buffer_Allocator_T.h
+++ b/TAO/tao/Buffer_Allocator_T.h
@@ -21,8 +21,6 @@
#include "tao/Allocator.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -48,8 +46,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "tao/Buffer_Allocator_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/TAO/tao/Buffering_Constraint_Policy.cpp b/TAO/tao/Buffering_Constraint_Policy.cpp
index 89c04ea640a..f3e97bfc0d3 100644
--- a/TAO/tao/Buffering_Constraint_Policy.cpp
+++ b/TAO/tao/Buffering_Constraint_Policy.cpp
@@ -4,8 +4,8 @@
#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1)
-#include "tao/TAOC.h"
-#include "tao/SystemException.h"
+#include "TAOC.h"
+#include "SystemException.h"
ACE_RCSID (tao,
Buffering_Constraint_Policy,
@@ -16,8 +16,6 @@ ACE_RCSID (tao,
#include "tao/Buffering_Constraint_Policy.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Buffering_Constraint_Policy::TAO_Buffering_Constraint_Policy (const TAO::BufferingConstraint &buffering_constraint)
: ACE_NESTED_CLASS (CORBA, Object) ()
, ACE_NESTED_CLASS (CORBA, Policy) ()
@@ -88,6 +86,4 @@ TAO_Buffering_Constraint_Policy::_tao_cached_type (void) const
return TAO_CACHED_POLICY_BUFFERING_CONSTRAINT;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */
diff --git a/TAO/tao/Buffering_Constraint_Policy.h b/TAO/tao/Buffering_Constraint_Policy.h
index f6b336801cc..d94271eeca4 100644
--- a/TAO/tao/Buffering_Constraint_Policy.h
+++ b/TAO/tao/Buffering_Constraint_Policy.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Buffering_Constraint_Policy.h
@@ -31,8 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Buffering_Constraint_Policy
*
@@ -77,8 +74,6 @@ private:
TAO::BufferingConstraint buffering_constraint_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Buffering_Constraint_Policy.i b/TAO/tao/Buffering_Constraint_Policy.i
index 2176d0efc36..aa5203cb743 100644
--- a/TAO/tao/Buffering_Constraint_Policy.i
+++ b/TAO/tao/Buffering_Constraint_Policy.i
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_Buffering_Constraint_Policy::get_buffering_constraint (TAO::BufferingConstraint &bc) const
{
bc = this->buffering_constraint_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CDR.cpp b/TAO/tao/CDR.cpp
index e738a4843ad..ccc993ff3b0 100644
--- a/TAO/tao/CDR.cpp
+++ b/TAO/tao/CDR.cpp
@@ -44,8 +44,6 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_CDR_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_OutputCDR::TAO_OutputCDR (size_t size,
int byte_order,
ACE_Allocator *buffer_allocator,
@@ -231,11 +229,3 @@ TAO_InputCDR::throw_skel_exception (int error_num ACE_ENV_ARG_DECL)
}
}
-
-ACE_Message_Block::Message_Flags
-TAO_InputCDR::clr_mb_flags( ACE_Message_Block::Message_Flags less_flags )
-{
- return start_.clr_self_flags( less_flags );
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CDR.h b/TAO/tao/CDR.h
index 27f28c82ac2..91ebea856a1 100644
--- a/TAO/tao/CDR.h
+++ b/TAO/tao/CDR.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file CDR.h
@@ -55,8 +54,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
namespace CORBA
@@ -277,8 +274,6 @@ public:
/// Accessor
TAO_ORB_Core *orb_core (void) const;
- ACE_Message_Block::Message_Flags
- clr_mb_flags( ACE_Message_Block::Message_Flags less_flags );
// = TAO specific methods.
static void throw_stub_exception (int error_num ACE_ENV_ARG_DECL);
@@ -289,14 +284,10 @@ private:
TAO_ORB_Core* orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
# include "tao/CDR.i"
#else
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// CDR output operators for CORBA types
TAO_Export CORBA::Boolean operator<< (TAO_OutputCDR &os,
@@ -346,9 +337,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &is,
CORBA::Char* &x);
TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &is,
CORBA::WChar* &x);
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* __ACE_INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/CDR.i b/TAO/tao/CDR.i
index a7dcf134c77..a4081309dc6 100644
--- a/TAO/tao/CDR.i
+++ b/TAO/tao/CDR.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_OutputCDR::~TAO_OutputCDR (void)
{
@@ -288,5 +286,3 @@ ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
{
return static_cast<ACE_InputCDR &> (is) >> x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CONV_FRAME.pidl b/TAO/tao/CONV_FRAME.pidl
index 671887bff88..3f4684f6fb2 100644
--- a/TAO/tao/CONV_FRAME.pidl
+++ b/TAO/tao/CONV_FRAME.pidl
@@ -1,5 +1,3 @@
-// -*- IDL -*-
-
/**
* @file CONV_FRAME.pidl
*
@@ -14,8 +12,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* CONV_FRAME.pidl
*
* The files are ready to use.
diff --git a/TAO/tao/CONV_FRAMEC.cpp b/TAO/tao/CONV_FRAMEC.cpp
index 42f84796b58..11d54fd3b16 100644
--- a/TAO/tao/CONV_FRAMEC.cpp
+++ b/TAO/tao/CONV_FRAMEC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:288
-#include "tao/CONV_FRAMEC.h"
+#include "CONV_FRAMEC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -261,5 +259,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.char_data) &&
(strm >> _tao_aggregate.wchar_data);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CONV_FRAMEC.h b/TAO/tao/CONV_FRAMEC.h
index 8e76fe5ec34..798e0fa4261 100644
--- a/TAO/tao/CONV_FRAMEC.h
+++ b/TAO/tao/CONV_FRAMEC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CONV_FRAME
{
@@ -258,8 +256,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CONV_FRAME::CodeSetContext
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/CORBALOC_Parser.cpp b/TAO/tao/CORBALOC_Parser.cpp
index 9192b99c8a4..ae210f857b9 100644
--- a/TAO/tao/CORBALOC_Parser.cpp
+++ b/TAO/tao/CORBALOC_Parser.cpp
@@ -1,10 +1,10 @@
-#include "tao/CORBALOC_Parser.h"
-#include "tao/ORB_Core.h"
-#include "tao/Stub.h"
-#include "tao/MProfile.h"
-#include "tao/Connector_Registry.h"
-#include "tao/Transport_Connector.h"
-#include "tao/Protocol_Factory.h"
+#include "CORBALOC_Parser.h"
+#include "ORB_Core.h"
+#include "Stub.h"
+#include "MProfile.h"
+#include "Connector_Registry.h"
+#include "Transport_Connector.h"
+#include "Protocol_Factory.h"
#include "tao/debug.h"
#include "ace/Vector_T.h"
#include "ace/INET_Addr.h"
@@ -13,13 +13,17 @@
#include "ace/os_include/os_netdb.h"
#if !defined(__ACE_INLINE__)
-#include "tao/CORBALOC_Parser.i"
+#include "CORBALOC_Parser.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (tao,
CORBALOC_Parser,
"$Id$")
+TAO_CORBALOC_Parser::~TAO_CORBALOC_Parser (void)
+{
+}
+
static const char prefix[] = "corbaloc:";
static const size_t prefix_len = sizeof prefix - 1;
static const char rir_token[] = "rir:";
@@ -27,12 +31,6 @@ static const size_t rir_token_len = sizeof rir_token - 1;
static const char iiop_token[] = "iiop:";
static const char iiop_token_len = sizeof iiop_token - 1;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CORBALOC_Parser::~TAO_CORBALOC_Parser (void)
-{
-}
-
int
TAO_CORBALOC_Parser::match_prefix (const char *ior_string) const
{
@@ -180,7 +178,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior,
ACE_ERROR ((LM_ERROR,
ACE_TEXT("(%P|%t) TAO_CORBALOC_Parser::parse_string ")
ACE_TEXT("could not parse from %s"),
- ACE_TEXT_CHAR_TO_TCHAR(ior)));
+ ACE_TEXT_TO_TCHAR_IN(ior)));
ACE_THROW_RETURN (CORBA::BAD_PARAM (CORBA::OMGVMCID | 10,
CORBA::COMPLETED_NO),
CORBA::Object::_nil ());
@@ -212,7 +210,7 @@ TAO_CORBALOC_Parser::parse_string (const char * ior,
ACE_ERROR ((LM_ERROR,
ACE_TEXT("(%P|%t) TAO_CORBALOC_Parser::parse_string ")
ACE_TEXT("could not parse from %s"),
- ACE_TEXT_CHAR_TO_TCHAR(ior)));
+ ACE_TEXT_TO_TCHAR_IN(ior)));
ACE_THROW_RETURN (CORBA::BAD_PARAM (CORBA::OMGVMCID | 10,
CORBA::COMPLETED_NO),
CORBA::Object::_nil ());
@@ -376,8 +374,6 @@ TAO_CORBALOC_Parser::make_canonical (const char *ior,
canonical_endpoint += raw_port;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_CORBALOC_Parser,
ACE_TEXT ("CORBALOC_Parser"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/CORBALOC_Parser.h b/TAO/tao/CORBALOC_Parser.h
index b9ecab51756..df1d73c4715 100644
--- a/TAO/tao/CORBALOC_Parser.h
+++ b/TAO/tao/CORBALOC_Parser.h
@@ -27,10 +27,9 @@
#include "tao/Profile.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_MProfile;
+
/**
* @class TAO_CORBALOC_Parser
*
@@ -41,7 +40,7 @@ class TAO_MProfile;
* string to separate the individual <obj_addr> from the list of object
* addresses <obj_addr_list>.
*/
-class TAO_CORBALOC_Parser : public TAO_IOR_Parser
+class TAO_Export TAO_CORBALOC_Parser : public TAO_IOR_Parser
{
public:
/// Constructor
@@ -93,10 +92,8 @@ private:
};
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/CORBALOC_Parser.i"
+# include "CORBALOC_Parser.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_CORBALOC_Parser)
diff --git a/TAO/tao/CORBALOC_Parser.i b/TAO/tao/CORBALOC_Parser.i
index 53f39cf5a05..fddafd15c3f 100644
--- a/TAO/tao/CORBALOC_Parser.i
+++ b/TAO/tao/CORBALOC_Parser.i
@@ -1,16 +1,13 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_CORBALOC_Parser::TAO_CORBALOC_Parser (void)
{
}
ACE_INLINE
-TAO_CORBALOC_Parser::parsed_endpoint::parsed_endpoint (void)
+TAO_CORBALOC_Parser::parsed_endpoint::parsed_endpoint(void)
: profile_ (0)
{
}
@@ -21,5 +18,3 @@ TAO_CORBALOC_Parser::parsed_endpoint::~parsed_endpoint (void)
if (this->profile_ != 0)
this->profile_->_decr_refcnt();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CORBANAME_Parser.cpp b/TAO/tao/CORBANAME_Parser.cpp
index bfc2eca66a7..649edfb1408 100644
--- a/TAO/tao/CORBANAME_Parser.cpp
+++ b/TAO/tao/CORBANAME_Parser.cpp
@@ -1,12 +1,16 @@
// $Id$
-#include "tao/CORBANAME_Parser.h"
-#include "tao/ORB.h"
-#include "tao/Object.h"
-#include "tao/SystemException.h"
-#include "tao/UB_String_Arguments.h"
-#include "tao/Invocation_Adapter.h"
-#include "tao/debug.h"
+#include "CORBANAME_Parser.h"
+#include "ORB.h"
+#include "Object.h"
+#include "SystemException.h"
+#include "UB_String_Arguments.h"
+#include "Invocation_Adapter.h"
+#include "debug.h"
+
+#if !defined(__ACE_INLINE__)
+#include "CORBANAME_Parser.i"
+#endif /* __ACE_INLINE__ */
#include "ace/Log_Msg.h"
#include "ace/SString.h"
@@ -17,14 +21,13 @@ ACE_RCSID (tao,
CORBANAME_Parser,
"$Id$")
-static const char corbaname_prefix[] = "corbaname:";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_CORBANAME_Parser::~TAO_CORBANAME_Parser (void)
{
}
+static const char corbaname_prefix[] = "corbaname:";
+
int
TAO_CORBANAME_Parser::match_prefix (const char *ior_string) const
{
@@ -155,8 +158,6 @@ TAO_CORBANAME_Parser::parse_string (const char *ior,
return obj;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_CORBANAME_Parser,
ACE_TEXT ("CORBANAME_Parser"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/CORBANAME_Parser.h b/TAO/tao/CORBANAME_Parser.h
index 9580d770885..5f1f66cf8db 100644
--- a/TAO/tao/CORBANAME_Parser.h
+++ b/TAO/tao/CORBANAME_Parser.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -24,8 +23,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_CORBANAME_Parser
*
@@ -36,9 +33,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* to a naming service at the given address and port and then resolve an
* object in that context.
*/
-class TAO_CORBANAME_Parser : public TAO_IOR_Parser
+class TAO_Export TAO_CORBANAME_Parser : public TAO_IOR_Parser
{
public:
+ /// Constructor
+ TAO_CORBANAME_Parser (void);
/// The destructor
virtual ~TAO_CORBANAME_Parser (void);
@@ -59,7 +58,9 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+# include "CORBANAME_Parser.i"
+#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_CORBANAME_Parser)
ACE_FACTORY_DECLARE (TAO, TAO_CORBANAME_Parser)
diff --git a/TAO/tao/CORBANAME_Parser.i b/TAO/tao/CORBANAME_Parser.i
new file mode 100644
index 00000000000..1139a868437
--- /dev/null
+++ b/TAO/tao/CORBANAME_Parser.i
@@ -0,0 +1,6 @@
+// $Id$
+
+ACE_INLINE
+TAO_CORBANAME_Parser::TAO_CORBANAME_Parser (void)
+{
+}
diff --git a/TAO/tao/CORBA_String.cpp b/TAO/tao/CORBA_String.cpp
index 583be67aded..6c49706b60b 100644
--- a/TAO/tao/CORBA_String.cpp
+++ b/TAO/tao/CORBA_String.cpp
@@ -1,5 +1,5 @@
-#include "tao/CORBA_String.h"
-#include "tao/Managed_Types.h"
+#include "CORBA_String.h"
+#include "Managed_Types.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_wchar.h"
@@ -16,8 +16,6 @@ ACE_RCSID (tao,
CORBA_String,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
char *
CORBA::string_dup (const char *str)
{
@@ -26,84 +24,66 @@ CORBA::string_dup (const char *str)
errno = EINVAL;
return 0;
}
+ return ACE::String_Conversion::Convert_Out< char >( str ).c_str();
+}
- const size_t len = ACE_OS::strlen (str);
-
- // This allocates an extra byte for the '\0';
- char * copy = CORBA::string_alloc (static_cast<CORBA::ULong> (len));
-
- // The memcpy() below assumes that the destination is a valid buffer.
- if (copy == 0)
+char *
+CORBA::string_dup (const WChar *str)
+{
+ if (!str)
{
+ errno = EINVAL;
return 0;
}
-
- ACE_OS::memcpy (copy,
- str,
- len + 1);
- return copy;
+ return ACE::String_Conversion::Convert_Out< char >( str ).c_str();
}
char *
CORBA::string_alloc (CORBA::ULong len)
{
- // Allocate 1 + strlen to accomodate the null terminating character.
-
- char *s = 0;
- ACE_NEW_RETURN (s,
- char[size_t (len + 1)],
- 0);
-
- s[0]= '\0';
-
- return s;
+ return ACE::String_Conversion::Allocator_cpp< char >().alloc( len );
}
void
CORBA::string_free (char *str)
{
- delete [] str;
+ ACE::String_Conversion::Allocator_cpp< char >().free( str );
}
// ****************************************************************
CORBA::WChar*
-CORBA::wstring_dup (const WChar *const str)
+CORBA::wstring_dup (const WChar * str)
{
if (!str)
{
errno = EINVAL;
return 0;
}
+ return ACE::String_Conversion::Convert_Out< WChar >( str ).c_str();
+}
- CORBA::WChar* retval =
- CORBA::wstring_alloc (static_cast <CORBA::ULong> (ACE_OS::strlen (str)));
-
- // The wscpy() below assumes that the destination is a valid buffer.
- if (retval == 0)
+CORBA::WChar*
+CORBA::wstring_dup (const char *str)
+{
+ if (!str)
{
+ errno = EINVAL;
return 0;
}
-
- return ACE_OS::wscpy (retval,
- str);
+ return ACE::String_Conversion::Convert_Out< WChar >( str ).c_str();
}
CORBA::WChar*
CORBA::wstring_alloc (CORBA::ULong len)
{
- CORBA::WChar *s = 0;
- ACE_NEW_RETURN (s,
- CORBA::WChar [(size_t) (len + 1)],
- 0);
-
- return s;
+ return ACE::String_Conversion::Allocator_cpp< WChar >().alloc( len );
}
void
-CORBA::wstring_free (CORBA::WChar *const str)
+CORBA::wstring_free (CORBA::WChar * str)
{
- delete [] str;
+ ACE::String_Conversion::Allocator_cpp< WChar >().free( str );
}
// ****************************************************************
@@ -275,7 +255,7 @@ operator>> (istream &is, CORBA::String_out &so)
ostream &
operator<< (ostream &os, const CORBA::WString_var &wsv)
{
- const CORBA::ULong len =
+ const CORBA::ULong len =
static_cast <CORBA::ULong> (ACE_OS::strlen (wsv.in ()));
for (CORBA::ULong i = 0; i < len; ++i)
@@ -351,5 +331,3 @@ operator>> (istream &is, CORBA::WString_out &wso)
}
#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CORBA_String.h b/TAO/tao/CORBA_String.h
index d4c8f58fa51..a066ad183b2 100644
--- a/TAO/tao/CORBA_String.h
+++ b/TAO/tao/CORBA_String.h
@@ -26,8 +26,6 @@
// For the (W)String_var and (W)String_out iostream operators.
#include "ace/iosfwd.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_String_Manager;
class TAO_WString_Manager;
@@ -41,6 +39,7 @@ namespace CORBA
//@{
TAO_Export char * string_alloc (ULong len);
TAO_Export char * string_dup (const char *);
+ TAO_Export char * string_dup (const WChar *);
TAO_Export void string_free (char *);
//@}
@@ -51,8 +50,9 @@ namespace CORBA
*/
//@{
TAO_Export WChar * wstring_alloc (ULong len);
- TAO_Export WChar * wstring_dup (const WChar * const);
- TAO_Export void wstring_free (WChar * const);
+ TAO_Export WChar * wstring_dup (const WChar *);
+ TAO_Export WChar * wstring_dup (const char *);
+ TAO_Export void wstring_free (WChar *);
//@}
/**
@@ -333,8 +333,6 @@ operator>> (istream &, CORBA::WString_out &);
# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/CORBA_String.inl"
#endif /* ! __ACE_INLINE__ */
diff --git a/TAO/tao/CORBA_String.inl b/TAO/tao/CORBA_String.inl
index 90433d8095b..992044b1bb4 100644
--- a/TAO/tao/CORBA_String.inl
+++ b/TAO/tao/CORBA_String.inl
@@ -10,8 +10,6 @@
// #include "ace/OS_NS_wchar.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::String_var::String_var (void)
: ptr_ (0)
@@ -291,5 +289,3 @@ TAO::String_Var_Equal_To::operator() (CORBA::WString_var const & lhs,
{
return (ACE_OS::strcmp (lhs.in (), rhs.in ()) == 0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CORBA_methods.h b/TAO/tao/CORBA_methods.h
index 62d95e56a1e..038f912b6e2 100644
--- a/TAO/tao/CORBA_methods.h
+++ b/TAO/tao/CORBA_methods.h
@@ -30,8 +30,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class ORB;
@@ -79,8 +77,6 @@ namespace CORBA
TAO_NAMESPACE_INLINE_FUNCTION void release (Principal_ptr);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CORBA_METHODS_H */
diff --git a/TAO/tao/CSD_Framework.mpc b/TAO/tao/CSD_Framework.mpc
deleted file mode 100644
index 51aa8cd4736..00000000000
--- a/TAO/tao/CSD_Framework.mpc
+++ /dev/null
@@ -1,38 +0,0 @@
-//$Id$
-project : taolib, portableserver, core, pi {
- sharedname = TAO_CSD_Framework
- dynamicflags = TAO_CSD_FW_BUILD_DLL
- includes += $(TAO_ROOT)/tao
-
- Source_Files {
- CSD_Framework
- }
-
- Header_Files {
- CSD_Framework
- }
-
- Inline_Files {
- CSD_Framework
- }
-
- Template_Files {
- CSD_Framework
- }
-
- Resource_Files {
- CSD_Framework
- }
-
- IDL_Files {
- CSD_Framework
- }
-
- PIDL_Files {
- CSD_Framework
- }
-
- Pkgconfig_Files {
- CSD_Framework/TAO_CSD_Framework.pc.in
- }
-}
diff --git a/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp b/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp
deleted file mode 100644
index a2cf1ceafe1..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h"
-#include "tao/CSD_Framework/CSD_POA.h"
-#include "tao/CSD_Framework/CSD_Strategy_Repository.h"
-#include "ace/Dynamic_Service.h"
-
-ACE_RCSID(CSD_Framework,
- CSD_Default_Servant_Dispatcher,
- "$Id$")
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CSD_Default_Servant_Dispatcher::~TAO_CSD_Default_Servant_Dispatcher (void)
-{
-}
-
-
-TAO_Root_POA *
-TAO_CSD_Default_Servant_Dispatcher::create_Root_POA (const ACE_CString &name,
- TAO_POA_Manager &poa_manager,
- const TAO_POA_Policy_Set &policies,
- ACE_Lock &lock,
- TAO_SYNCH_MUTEX &thread_lock,
- TAO_ORB_Core &orb_core,
- TAO_Object_Adapter *object_adapter
- ACE_ENV_ARG_DECL)
-{
- TAO_CSD_POA *poa = 0;
-
- ACE_NEW_THROW_EX (poa,
- TAO_CSD_POA (name,
- poa_manager,
- policies,
- 0,
- lock,
- thread_lock,
- orb_core,
- object_adapter
- ACE_ENV_ARG_PARAMETER),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
-
- TAO_CSD_Strategy_Repository *repo =
- ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance ("TAO_CSD_Strategy_Repository");
-
- CSD_Framework::Strategy_var strategy = repo->find (name);
-
- if (! CORBA::is_nil (strategy.in ()))
- {
- poa->set_csd_strategy (strategy.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return poa;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h b/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h
deleted file mode 100644
index ed78621d075..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_Default_Servant_Dispatcher.h
- *
- * $Id$
- *
- * @author Yan Dai (dai_y@ociweb.com)
- */
-//=============================================================================
-
-#ifndef TAO_CSD_DEFAULT_SERVANT_DISPATCHER_H
-#define TAO_CSD_DEFAULT_SERVANT_DISPATCHER_H
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PortableServer/Default_Servant_Dispatcher.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_CSD_Default_Servant_Dispatcher
- *
- * @brief Interface for CSD_POA servant dispatching strategies.
- */
-class TAO_CSD_FW_Export TAO_CSD_Default_Servant_Dispatcher
- : public virtual TAO_Default_Servant_Dispatcher
-{
-public:
- virtual ~TAO_CSD_Default_Servant_Dispatcher (void);
-
-
- /// Factory method for creating new CSD Root POA.
- virtual TAO_Root_POA *create_Root_POA (const ACE_CString &name,
- TAO_POA_Manager &poa_manager,
- const TAO_POA_Policy_Set &policies,
- ACE_Lock &lock,
- TAO_SYNCH_MUTEX &thread_lock,
- TAO_ORB_Core &orb_core,
- TAO_Object_Adapter *object_adapter
- ACE_ENV_ARG_DECL);
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* TAO_CSD_DEFAULT_SERVANT_DISPATCHER_H */
diff --git a/TAO/tao/CSD_Framework/CSD_FW_Export.h b/TAO/tao/CSD_Framework/CSD_FW_Export.h
deleted file mode 100644
index edeb9119dc4..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FW_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s TAO_CSD_FW
-// ------------------------------
-#ifndef TAO_CSD_FW_EXPORT_H
-#define TAO_CSD_FW_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (TAO_CSD_FW_HAS_DLL)
-# define TAO_CSD_FW_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && TAO_CSD_FW_HAS_DLL */
-
-#if !defined (TAO_CSD_FW_HAS_DLL)
-# define TAO_CSD_FW_HAS_DLL 1
-#endif /* ! TAO_CSD_FW_HAS_DLL */
-
-#if defined (TAO_CSD_FW_HAS_DLL) && (TAO_CSD_FW_HAS_DLL == 1)
-# if defined (TAO_CSD_FW_BUILD_DLL)
-# define TAO_CSD_FW_Export ACE_Proper_Export_Flag
-# define TAO_CSD_FW_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_CSD_FW_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_CSD_FW_BUILD_DLL */
-# define TAO_CSD_FW_Export ACE_Proper_Import_Flag
-# define TAO_CSD_FW_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_CSD_FW_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_CSD_FW_BUILD_DLL */
-#else /* TAO_CSD_FW_HAS_DLL == 1 */
-# define TAO_CSD_FW_Export
-# define TAO_CSD_FW_SINGLETON_DECLARATION(T)
-# define TAO_CSD_FW_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_CSD_FW_HAS_DLL == 1 */
-
-// Set TAO_CSD_FW_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TAO_CSD_FW_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TAO_CSD_FW_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TAO_CSD_FW_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TAO_CSD_FW_NTRACE */
-
-#if (TAO_CSD_FW_NTRACE == 1)
-# define TAO_CSD_FW_TRACE(X)
-#else /* (TAO_CSD_FW_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define TAO_CSD_FW_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (TAO_CSD_FW_NTRACE == 1) */
-
-#endif /* TAO_CSD_FW_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp b/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp
deleted file mode 100644
index f8cc7c0d008..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp
+++ /dev/null
@@ -1,465 +0,0 @@
-// $Id$
-#include "tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h"
-#include "tao/debug.h"
-#include "tao/ORB_Constants.h"
-#include "tao/ORB_Core.h"
-#include "tao/Transport.h"
-#include "tao/CDR.h"
-
-
-ACE_RCSID (CSD_Framework,
- FW_Server_Request_Wrapper,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::FW_Server_Request_Wrapper::~FW_Server_Request_Wrapper()
-{
- // Only delete the request if we cloned it.
- if (this->is_clone_)
- {
- // Since this TAO_ServerRequest object is a clone, it
- // "owns" the input and output CDR objects held by the
- // incoming_ and outgoing_ data members, respectfully.
- // Thus, for the clone case, the TAO_ServerRequest dtor
- // needs to release (aka, delete) the CDR objects.
- delete this->request_->incoming_;
-
- // Get the start message block that reference to the data allocated
- // on the heap.
- if (this->request_->outgoing_ != 0)
- {
- char* buffer = this->request_->outgoing_->begin ()->base ();
- delete [] buffer;
- delete this->request_->outgoing_;
- }
- if (this->request_->operation_details_ != 0)
- {
- char* opname = (char*)this->request_->operation_details_->opname_;
- delete [] opname;
- delete this->request_->operation_details_;
- }
- delete this->request_;
- }
-}
-
-
-// Assumes that the servant argument is not a NULL pointer.
-void
-TAO::CSD::FW_Server_Request_Wrapper::dispatch
- (PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- ACE_TRY
- {
- servant->_dispatch(*this->request_, 0 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- // Only CORBA exceptions are caught here.
- ACE_CATCHANY
- {
- if (this->request_->collocated())
- {
- // For collocated requests, we re-throw the exception.
- ACE_RE_THROW;
- }
- else if (!this->request_->sync_with_server() &&
- this->request_->response_expected() &&
- !this->request_->deferred_reply())
- {
- // The request is a remote request that is expecting a reply.
- this->request_->tao_send_reply_exception(ACE_ANY_EXCEPTION);
- }
- else if (TAO_debug_level > 0)
- {
- // It is unfortunate that an exception (probably a system
- // exception) was thrown by the dispatch code (even by the
- // user) when the client was not expecting a response.
- // However, in this case, we cannot close the connection
- // down, since it really isn't the client's fault.
-
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) exception thrown ")
- ACE_TEXT ("but client is not waiting a response\n")));
-
- ACE_PRINT_EXCEPTION (
- ACE_ANY_EXCEPTION,
- "FW_Server_Request_Wrapper::dispatch ()");
- }
- }
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_CATCHALL
- {
- // @@ TODO some c++ exception or another, but what do we do with
- // it?
- // We are supposed to map it into a CORBA::UNKNOWN exception.
- // BTW, this cannot be detected if using the <env> mapping. If
- // we have native exceptions but no support for them in the ORB
- // we should still be able to catch it. If we don't have native
- // exceptions it couldn't have been raised in the first place!
- CORBA::UNKNOWN exception (CORBA::SystemException::_tao_minor_code
- (TAO_UNHANDLED_SERVER_CXX_EXCEPTION, 0),
- CORBA::COMPLETED_MAYBE);
-
- if (this->request_->collocated())
- {
- // For collocated requests, we re-throw the exception.
- ACE_RE_THROW;
- }
- else if (!this->request_->sync_with_server() &&
- this->request_->response_expected() &&
- !this->request_->deferred_reply())
- {
- // The request is a remote request that is expecting a reply.
- this->request_->tao_send_reply_exception(exception);
- }
- else if (TAO_debug_level > 0)
- {
- // It is unfortunate that an exception (probably a system
- // exception) was thrown by the dispatch code (even by the
- // user) when the client was not expecting a response.
- // However, in this case, we cannot close the connection
- // down, since it really isn't the client's fault.
-
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) exception thrown ")
- ACE_TEXT ("but client is not waiting a response\n")));
-
- ACE_PRINT_EXCEPTION (
- exception,
- "FW_Server_Request_Wrapper::dispatch ()");
- }
- }
-#endif /* TAO_HAS_EXCEPTIONS */
-
- ACE_ENDTRY;
-}
-
-
-TAO_ServerRequest*
-TAO::CSD::FW_Server_Request_Wrapper::clone (TAO_ServerRequest*& request)
-{
- // TBD-CSD: Ultimately add an argument for an allocator.
- TAO_ServerRequest* clone_obj = this->create_new_request ();
-
- if (clone_obj == 0)
- {
- return 0;
- }
-
- // TYPE: TAO_Pluggable_Messaging*
- // ACTION: Assuming that a shallow-copy is ok here.
- clone_obj->mesg_base_ = request->mesg_base_;
-
- // TYPE: ACE_CString
- // ACTION: Assignment performs deep-copy of string contents.
- clone_obj->operation_ = request->operation_;
-
- // TYPE: CORBA::Object_var
- // ACTION: Assignment performs reference-counted copy of object ref.
- clone_obj->forward_location_ = request->forward_location_;
-
- // TYPE: TAO_InputCDR*
- // ACTION: This *must* be "cloned".
- if (request->incoming_ != 0)
- {
- clone_obj->incoming_ = this->clone (request->incoming_);
- }
-
- // TYPE: TAO_OutputCDR*
- // ACTION: This *must* be "cloned".
- if (request->outgoing_ != 0)
- {
- clone_obj->outgoing_ = this->create_new_output_cdr ();
- }
-
- // TYPE: TAO_Transport*
- // ACTION: Assuming that a shallow-copy is ok here.
- clone_obj->transport_ = request->transport_;
-
- // TYPE: CORBA::Boolean
- // ACTION: Primitive data type assignment.
- clone_obj->response_expected_ = request->response_expected_;
-
- // TYPE: CORBA::Boolean
- // ACTION: Primitive data type assignment.
- clone_obj->deferred_reply_ = request->deferred_reply_;
-
- // TYPE: CORBA::Boolean
- // ACTION: Primitive data type assignment.
- clone_obj->sync_with_server_ = request->sync_with_server_;
-
- // TYPE: CORBA::Boolean
- // ACTION: Primitive data type assignment.
- clone_obj->is_dsi_ = request->is_dsi_;
-
- // TYPE: CORBA::ULong
- // ACTION: Primitive data type assignment.
- clone_obj->exception_type_ = request->exception_type_;
-
- // TYPE: TAO_ORB_Core*
- // ACTION: Assuming that a shallow-copy is ok here.
- clone_obj->orb_core_ = request->orb_core_;
-
- // TYPE: TAO_Service_Context
- // ACTION: No copy/assignment operator, so adding/using a clone operation.
- this->clone (request->request_service_context_, clone_obj->request_service_context_);
-
- // TYPE: TAO_Service_Context
- // ACTION: No copy/assignment operator, so adding/using a clone operation.
- this->clone (request->reply_service_context_, clone_obj->reply_service_context_);
-
- // TYPE: CORBA::ULong
- // ACTION: Primitive data type assignment.
- clone_obj->request_id_ = request->request_id_;
-
- // TYPE: TAO_Tagged_Profile
- // ACTION: No copy/assignment operator, so adding/using a clone operation.
- this->clone (request->profile_, clone_obj->profile_);
-
- // TYPE: CORBA::OctetSeq_var
- // ACTION: Assignment performs reference-counted copy of sequence.
- clone_obj->requesting_principal_ = request->requesting_principal_;
-
- // TYPE: ptrdiff_t
- // ACTION: Primitive data type assignment (unsigned integral type).
- clone_obj->dsi_nvlist_align_ = request->dsi_nvlist_align_;
-
- // TYPE: TAO_Operation_Details const * const
- // ACTION: Need to clone this.
- if (request->operation_details_ != 0)
- {
- ACE_ASSERT (request->incoming_ == 0);
- if (this->clone (request->operation_details_,
- clone_obj->operation_details_,
- clone_obj->incoming_) == false)
- {
- return 0;
- }
- }
-
- // TYPE: CORBA::Boolean
- // ACTION: Primitive data type assignment.
- clone_obj->argument_flag_ = request->argument_flag_;
-
- //#if TAO_HAS_INTERCEPTORS == 1
- // TYPE: size_t
- // ACTION: Primitive data type assignment.
- // Just leave this alone for a clone.
- //
- //clone_obj->interceptor_count_ = request->interceptor_count_;
-
- // TYPE: TAO::PICurrent_Impl
- // ACTION: Copy/assignment operator disabled on purpose.
- // Just leave this alone for a clone.
- //
- // clone_obj->rs_pi_current_
-
- // TYPE: TAO::PICurrent_Copy_Callback
- // ACTION: No copy/assignment operator.
- // Just leave this alone for a clone.
- //
- // clone_obj->pi_current_copy_callback_
-
- // TYPE: CORBA::OctetSeq_var
- // ACTION: Assignment performs reference-counted copy of sequence.
- // Assuming that this is ok.
- // Just leave this alone for a clone.
- //
- //clone_obj->result_seq_ = request->result_seq_;
- //#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
- if (clone_obj->transport_ != 0)
- {
- clone_obj->transport_->assign_translators(clone_obj->incoming_,
- clone_obj->outgoing_);
- }
- return clone_obj;
-}
-
-
-TAO_InputCDR*
-TAO::CSD::FW_Server_Request_Wrapper::clone (TAO_InputCDR*& from)
-{
- TAO_InputCDR* clone_ptr = 0;
- ACE_NEW_RETURN (clone_ptr,
- TAO_InputCDR(*from),
- 0);
- return clone_ptr;
-}
-
-
-bool
-TAO::CSD::FW_Server_Request_Wrapper::clone (TAO_Operation_Details const *& from,
- TAO_Operation_Details const *& to,
- TAO_InputCDR*& cdr)
-{
- TAO_Operation_Details *& from_non_const
- = const_cast <TAO_Operation_Details *&>(from);
-
- char* cloned_op_name = new char[from_non_const->opname_len_ + 1];
- ACE_OS::strncpy(cloned_op_name, from_non_const->opname_, from_non_const->opname_len_);
- cloned_op_name[from_non_const->opname_len_] = '\0';
-
- TAO_OutputCDR outcdr;
-
- if (! from_non_const->marshal_args (outcdr))
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT("(%P|%T) TAO::CSD::FW_Server_Request_Wrapper::")
- ACE_TEXT("clone TAO_Operation_Details failed\n")));
- return false;
- }
-
- ACE_NEW_RETURN (cdr,
- TAO_InputCDR (outcdr),
- false);
-
-
- // CSD-TBD: Eventually need to use allocators.
-
- // CSD-TBD: Assert that this->ex_data_ and this->ex_count_ are both == 0
- TAO_Operation_Details* to_non_const;
- ACE_NEW_RETURN (to_non_const,
- TAO_Operation_Details(cloned_op_name,
- from_non_const->opname_len_,
- from_non_const->argument_flag_,
- 0,
- 0,
- 0,
- 0),
- false);
-
-
- // DATA MEMBER: const char *opname_;
- // DATA MEMBER: CORBA::ULong opname_len_;
- // DATA MEMBER: CORBA::Boolean argument_flag_;
- // DATA MEMBER: TAO::Argument **args_;
- // DATA MEMBER: CORBA::ULong num_args_;
- // DATA MEMBER: TAO::Exception_Data *ex_data_;
- // DATA MEMBER: CORBA::ULong ex_count_;
- //
- // ACTION: None - handled in ctor
- //
-
- // DATA MEMBER: CORBA::ULong request_id_;
- // DATA MEMBER: CORBA::Octet response_flags_;
- // DATA MEMBER: TAO_Target_Specification::TAO_Target_Address addressing_mode_;
- // DATA MEMBER: TAO_Service_Context request_service_info_;
- // DATA MEMBER: TAO_Service_Context reply_service_info_;
- //
- // ACTION: Use assignment op to copy from "this" object to the clone.
- //
- to_non_const->request_id_ = from->request_id_;
- to_non_const->response_flags_ = from->response_flags_;
- to_non_const->addressing_mode_ = from->addressing_mode_;
-
- // DATA MEMBER: TAO_Service_Context request_service_info_;
- // DATA MEMBER: TAO_Service_Context reply_service_info_;
- //
- // ACTION: Use the TAO_Service_Context clone() method.
- //
- this->clone (from_non_const->request_service_info_, to_non_const->request_service_info_);
- this->clone (from_non_const->reply_service_info_, to_non_const->reply_service_info_);
-
- to = to_non_const;
-
- return true;
-}
-
-
-void
-TAO::CSD::FW_Server_Request_Wrapper::clone (TAO_Tagged_Profile& from,
- TAO_Tagged_Profile& to)
-{
- to.orb_core_ = from.orb_core_;
- to.discriminator_ = from.discriminator_;
- to.object_key_extracted_ = from.object_key_extracted_;
- to.object_key_ = from.object_key_;
- to.profile_ = from.profile_;
- to.profile_index_ = from.profile_index_;
- to.type_id_ = from.type_id_;
-}
-
-
-void
-TAO::CSD::FW_Server_Request_Wrapper::clone (TAO_Service_Context& from,
- TAO_Service_Context& to)
-{
- to.service_context_ = from.service_context_;
-}
-
-TAO_ServerRequest*
-TAO::CSD::FW_Server_Request_Wrapper::create_new_request ()
-{
- // Use one of constructor to create the TAO_ServerRequest object then
- // reset the data members. This reduces the footprint due to a default
- // TAO_ServerRequest constructor.
- //
- //TAO_ServerRequest (TAO_Pluggable_Messaging *mesg_base,
- // TAO_InputCDR &input,
- // TAO_OutputCDR &output,
- // TAO_Transport *transport,
- // TAO_ORB_Core *orb_core);
-
- TAO_ServerRequest* request = 0;
-
- TAO_InputCDR dummy_input ((ACE_Message_Block *)0); // empty input cdr stream
- TAO_OutputCDR dummy_output ((char *)0, (size_t) 0); // empty output cdr stream
- ACE_NEW_RETURN (request,
- TAO_ServerRequest (0,
- dummy_input,
- dummy_output,
- 0,
- 0),
- 0);
-
- request->incoming_ = 0;
- request->outgoing_ = 0;
-
- return request;
-}
-
-
-TAO_OutputCDR*
-TAO::CSD::FW_Server_Request_Wrapper::create_new_output_cdr ()
-{
- TAO_OutputCDR* cdr = 0;
-
- // A buffer that we will use to initialise the CDR stream
- char* repbuf = new char[ACE_CDR::DEFAULT_BUFSIZE];
-
- ACE_CDR::Octet major;
- ACE_CDR::Octet minor;
- this->request_->outgoing_->get_version (major, minor);
-
- // Initialze an output CDR on the stack
- // NOTE: Don't jump to a conclusion as to why we are using the
- // input_cdr and hence the global pool here. These pools will move
- // to the lanes anyway at some point of time. Further, it would have
- // been awesome to have this in TSS. But for some reason the cloning
- // that happens when the ORB gets flow controlled while writing a
- // reply is messing things up. We crash horribly. Doing this adds a
- // lock, we need to set things like this -- put stuff in TSS here
- // and transfer to global memory when we get flow controlled. We
- // need to work on the message block to get it right!
- ACE_NEW_RETURN (cdr,
- TAO_OutputCDR (repbuf,
- ACE_CDR::DEFAULT_BUFSIZE,
- TAO_ENCAP_BYTE_ORDER,
- this->request_->orb_core_->input_cdr_buffer_allocator (),
- this->request_->orb_core_->input_cdr_dblock_allocator (),
- this->request_->orb_core_->input_cdr_msgblock_allocator (),
- this->request_->orb_core_->orb_params ()->cdr_memcpy_tradeoff (),
- major,
- minor),
- 0);
-
- return cdr;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h b/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h
deleted file mode 100644
index e76b4090487..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h
+++ /dev/null
@@ -1,131 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_FW_Server_Request_Wrapper.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_FW_SERVER_REQUEST_WRAPPER_H
-#define TAO_CSD_FW_SERVER_REQUEST_WRAPPER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/TAO_Server_Request.h"
-#include "tao/operation_details.h"
-#include "tao/PortableServer/Servant_Base.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- /**
- * @class FW_Server_Request_Wrapper
- *
- * @brief Wrapper around a TAO_Server_Request that will be cloned
- * at the proper time.
- *
- * This CSD Framework class is used to provide an interface to a
- * TAO_ServerRequest object such that it can be used for CSD strategies
- * that need to clone TAO_Server_Requests (ie, so that they may be
- * placed on a queue to be dispatched by another thread).
- *
- * There are several purposes for this class, with the main thing being
- * that the TAO_ServerRequest object is not used directly by the
- * CSD Strategies since it is, after all, an internal TAO class that was
- * never meant to be exposed. Future changes to TAO's internal design
- * may cause disruption in the TAO_ServerRequest class. These changes
- * would only need to be accounted for here in this
- * FW_Server_Request_Wrapper class' implementation, and all CSD
- * Strategies will work again. It's a maintenance issue.
- *
- * @note: The CSD namespace is inside of TAO namespace in current
- * implementation. This can be changed but, at least for now, it's
- * already been delivered to some customs, we leave it as-is. If it
- * needs to change, we will make this change.
- */
- class TAO_CSD_FW_Export FW_Server_Request_Wrapper
- {
- public:
-
- /// Constructor.
- FW_Server_Request_Wrapper(TAO_ServerRequest& server_request);
-
- /// Destructor.
- ~FW_Server_Request_Wrapper();
-
- /// Perform the clone operation.
- void clone();
-
- /// Dispatch the request to the servant.
- void dispatch(PortableServer::Servant servant ACE_ENV_ARG_DECL);
-
- /// Cancel the request.
- void cancel();
-
-
- private:
-
- /// Create a deep copy of the request_ object.
- /// The other clone methods are used to support the TAO_ServerRequest clone.
- TAO_ServerRequest* clone (TAO_ServerRequest*& from);
-
- /// Clone an input cdr stream.
- TAO_InputCDR* clone (TAO_InputCDR*& from);
-
- /// Create a deep copy of a TAO_Operation_Details object and marshall
- /// the arguments into a TAO_InputCDR stream. The cloned TAO_Operation_Details
- /// object is created without any arguments. This would help the skeleton
- /// code to determine whether the arguments are in the operation_details_
- /// object or should be demarshalled from the incoming_ stream in the request_
- /// object.
- bool clone (TAO_Operation_Details const *& from,
- TAO_Operation_Details const *& to,
- TAO_InputCDR* & cdr);
-
- /// Clone the TAO_Tagged_Profile object.
- void clone (TAO_Tagged_Profile& from, TAO_Tagged_Profile& to);
-
- /// Clone the TAO_Service_Context object.
- void clone (TAO_Service_Context& from, TAO_Service_Context& to);
-
- /// Create a new TAO_ServerRequest with default initial values.
- TAO_ServerRequest* create_new_request ();
-
- /// Create a TAO_OutputCDR stream initialized with a heap allocated
- /// buffer.
- TAO_OutputCDR* create_new_output_cdr ();
-
- /// A flag that indicates that the TAO_ServerRequest object
- /// is already cloned.
- bool is_clone_;
-
- /// Pointer to the underlying TAO_ServerRequest object.
- TAO_ServerRequest* request_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_FW_SERVER_REQUEST_WRAPPER_H */
diff --git a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl b/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl
deleted file mode 100644
index 13d78a1664c..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.inl
+++ /dev/null
@@ -1,46 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::FW_Server_Request_Wrapper::FW_Server_Request_Wrapper
- (TAO_ServerRequest& server_request)
- : is_clone_(false),
- request_(&server_request)
-{
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::FW_Server_Request_Wrapper::clone()
-{
- // Only clone the TAO_Server_Request object if we have not performed the
- // clone already. This really should only be called once, but this code
- // makes sure that we do not introduce a leak.
- if (!this->is_clone_)
- {
- this->request_ = this->clone (this->request_);
- this->is_clone_ = true;
- }
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::FW_Server_Request_Wrapper::cancel()
-{
- // We only need to handle remote requests that are expecting a reply.
- if (!this->request_->collocated() &&
- !this->request_->sync_with_server() &&
- this->request_->response_expected() &&
- !this->request_->deferred_reply())
- {
- CORBA::NO_IMPLEMENT ex;
- this->request_->tao_send_reply_exception(ex);
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Framework.pidl b/TAO/tao/CSD_Framework/CSD_Framework.pidl
deleted file mode 100644
index b0e78b39331..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Framework.pidl
+++ /dev/null
@@ -1,77 +0,0 @@
-// -*- IDL -*-
-/**
- * @file CSD_Framework.pidl
- *
- * $Id$
- *
- * @brief Pre-compiled IDL source for the CSD_Framework module.
- *
- * This file was used to generate the code in
- * CSD_FrameworkC.{h,inl,cpp}, using the following command:
- *
- * $ACE_ROOT/bin/tao_idl \
- * -o orig -Gp -Gd -Ge 1 -Gt -Sc -GA -I$TAO_ROOT \
- * -Wb,export_macro=TAO_CSD_FW_Export \
- * -Wb,export_include="CSD_FW_Export.h" \
- * -Wb,pre_include="ace/pre.h" \
- * -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
- * CSD_Framework.pidl
- *
- * After the file is generated a patch from the diffs directory must
- * be applied. The patch:
- *
- * - Disables parts of the code under certain configurations.
- *
- * - Eliminates cycles in the include dependencies.
- *
- * - Adds non-idl components of CSD_Framework to the namespace.
- * This includes (a) Servant (b) ServantBase (c) RefCountServantBase
- * (d) Cookie (e) ObjectId_to_string (f) string_to_ObjectId (g)
- * ObjectId_to_wstring (h) wstring_to_ObjectId (i) ServantBase_var
- * (j) DynamicImplementation (k) LocalServantBase
- *
- * Apply patches using the following command:
- *
- * patch < diffs/CSD_Framework.diff
- *
- * Note: The diffs were generated using:
- *
- * rm diffs/CSD_Framework.diff
- * for i in CSD_FrameworkC.{h,i,cpp}; do
- * diff -wub orig/$i $i >> diffs/CSD_Framework.diff
- * done
- */
-
-#ifndef CSD_FRAMEWORK_PIDL
-#define CSD_FRAMEWORK_PIDL
-
-#include "tao/PortableServer/PortableServer.pidl"
-
-module CSD_Framework {
-
- # pragma version CSD_Framework 2.3
-
- // This is a common base interface for all CSD strategy
- // implementations
- local interface Strategy {
-
- # pragma version Strategy 2.3
-
- // This is support for a legacy method of supplying a strategy to a
- // POA.
- boolean apply_to(in PortableServer::POA p);
- };
-
- // Specialized POA providing a method to supply a strategy object to
- // the POA.
- local interface POA : PortableServer::POA {
-
- # pragma version POA 2.3
-
- void set_csd_strategy (in Strategy s);
- };
-};
-
-#endif //CSD_FRAMEWORK_PIDL
diff --git a/TAO/tao/CSD_Framework/CSD_FrameworkA.cpp b/TAO/tao/CSD_Framework/CSD_FrameworkA.cpp
deleted file mode 100644
index 267e866b903..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FrameworkA.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-#include "tao/CSD_Framework/CSD_FrameworkA.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Any_Impl_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_CSD_Framework_Strategy (
- ::CORBA::tk_local_interface,
- "IDL:CSD_Framework/Strategy:2.3",
- "Strategy");
-
-namespace CSD_Framework
-{
- ::CORBA::TypeCode_ptr const _tc_Strategy =
- &_tao_tc_CSD_Framework_Strategy;
-}
-
-
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_CSD_Framework_POA (
- ::CORBA::tk_local_interface,
- "IDL:CSD_Framework/POA:2.3",
- "POA");
-
-namespace CSD_Framework
-{
- ::CORBA::TypeCode_ptr const _tc_POA =
- &_tao_tc_CSD_Framework_POA;
-}
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_FrameworkA.h b/TAO/tao/CSD_Framework/CSD_FrameworkA.h
deleted file mode 100644
index da09d57dec2..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FrameworkA.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// .\be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_ORIG_CSD_FRAMEWORKA_H_
-#define _TAO_IDL_ORIG_CSD_FRAMEWORKA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-#include "tao/CSD_Framework/CSD_FrameworkC.h"
-//#include "tao/PortableServer/PortableServerA.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:59
-
-namespace CSD_Framework
-{
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_CSD_FW_Export ::CORBA::TypeCode_ptr const _tc_Strategy;
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_CSD_FW_Export ::CORBA::TypeCode_ptr const _tc_POA;
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:86
-
-} // module CSD_Framework
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/CSD_Framework/CSD_FrameworkC.cpp b/TAO/tao/CSD_Framework/CSD_FrameworkC.cpp
deleted file mode 100644
index e4899682ad2..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FrameworkC.cpp
+++ /dev/null
@@ -1,294 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// .\be\be_codegen.cpp:277
-
-
-#include "tao/CSD_Framework/CSD_FrameworkC.h"
-#include "tao/CDR.h"
-#include "ace/OS_NS_string.h"
-
-
-// TAO_IDL - Generated from
-// .\be\be_visitor_arg_traits.cpp:70
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Arg traits specializations.
-namespace TAO
-{
-}
-
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_cs.cpp:60
-
-// Traits specializations for CSD_Framework::Strategy.
-
-CSD_Framework::Strategy_ptr
-TAO::Objref_Traits<CSD_Framework::Strategy>::duplicate (
- CSD_Framework::Strategy_ptr p
- )
-{
- return CSD_Framework::Strategy::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<CSD_Framework::Strategy>::release (
- CSD_Framework::Strategy_ptr p
- )
-{
- CORBA::release (p);
-}
-
-CSD_Framework::Strategy_ptr
-TAO::Objref_Traits<CSD_Framework::Strategy>::nil (void)
-{
- return CSD_Framework::Strategy::_nil ();
-}
-
-::CORBA::Boolean
-TAO::Objref_Traits<CSD_Framework::Strategy>::marshal (
- CSD_Framework::Strategy_ptr p,
- TAO_OutputCDR & cdr
- )
-{
- return ::CORBA::Object::marshal (p, cdr);
-}
-
-CSD_Framework::Strategy::Strategy (void)
-{}
-
-CSD_Framework::Strategy::~Strategy (void)
-{}
-
-CSD_Framework::Strategy_ptr
-CSD_Framework::Strategy::_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return Strategy::_duplicate (
- dynamic_cast<Strategy_ptr> (_tao_objref)
- );
-}
-
-CSD_Framework::Strategy_ptr
-CSD_Framework::Strategy::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return Strategy::_duplicate (
- dynamic_cast<Strategy_ptr> (_tao_objref)
- );
-}
-
-CSD_Framework::Strategy_ptr
-CSD_Framework::Strategy::_duplicate (Strategy_ptr obj)
-{
- if (! CORBA::is_nil (obj))
- {
- obj->_add_ref ();
- }
-
- return obj;
-}
-
-void
-CSD_Framework::Strategy::_tao_release (Strategy_ptr obj)
-{
- CORBA::release (obj);
-}
-
-::CORBA::Boolean
-CSD_Framework::Strategy::_is_a (
- const char *value
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- if (
- !ACE_OS::strcmp (
- value,
- "IDL:CSD_Framework/Strategy:2.3"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/LocalObject:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/Object:1.0"
- )
- )
- {
- return true; // success using local knowledge
- }
- else
- {
- return false;
- }
-}
-
-const char* CSD_Framework::Strategy::_interface_repository_id (void) const
-{
- return "IDL:CSD_Framework/Strategy:2.3";
-}
-
-::CORBA::Boolean
-CSD_Framework::Strategy::marshal (TAO_OutputCDR &)
-{
- return false;
-}
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_cs.cpp:60
-
-// Traits specializations for CSD_Framework::POA.
-
-CSD_Framework::POA_ptr
-TAO::Objref_Traits<CSD_Framework::POA>::duplicate (
- CSD_Framework::POA_ptr p
- )
-{
- return CSD_Framework::POA::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<CSD_Framework::POA>::release (
- CSD_Framework::POA_ptr p
- )
-{
- CORBA::release (p);
-}
-
-CSD_Framework::POA_ptr
-TAO::Objref_Traits<CSD_Framework::POA>::nil (void)
-{
- return CSD_Framework::POA::_nil ();
-}
-
-::CORBA::Boolean
-TAO::Objref_Traits<CSD_Framework::POA>::marshal (
- CSD_Framework::POA_ptr p,
- TAO_OutputCDR & cdr
- )
-{
- return ::CORBA::Object::marshal (p, cdr);
-}
-
-CSD_Framework::POA::POA (void)
-{}
-
-CSD_Framework::POA::~POA (void)
-{}
-
-CSD_Framework::POA_ptr
-CSD_Framework::POA::_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return POA::_duplicate (
- dynamic_cast<POA_ptr> (_tao_objref)
- );
-}
-
-CSD_Framework::POA_ptr
-CSD_Framework::POA::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return POA::_duplicate (
- dynamic_cast<POA_ptr> (_tao_objref)
- );
-}
-
-CSD_Framework::POA_ptr
-CSD_Framework::POA::_duplicate (POA_ptr obj)
-{
- if (! CORBA::is_nil (obj))
- {
- obj->_add_ref ();
- }
-
- return obj;
-}
-
-void
-CSD_Framework::POA::_tao_release (POA_ptr obj)
-{
- CORBA::release (obj);
-}
-
-::CORBA::Boolean
-CSD_Framework::POA::_is_a (
- const char *value
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- if (
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/PortableServer/POA:2.3"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:CSD_Framework/POA:2.3"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/LocalObject:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/Object:1.0"
- )
- )
- {
- return true; // success using local knowledge
- }
- else
- {
- return false;
- }
-}
-
-const char* CSD_Framework::POA::_interface_repository_id (void) const
-{
- return "IDL:CSD_Framework/POA:2.3";
-}
-
-::CORBA::Boolean
-CSD_Framework::POA::marshal (TAO_OutputCDR &)
-{
- return false;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_FrameworkC.h b/TAO/tao/CSD_Framework/CSD_FrameworkC.h
deleted file mode 100644
index e78eaf949ae..00000000000
--- a/TAO/tao/CSD_Framework/CSD_FrameworkC.h
+++ /dev/null
@@ -1,316 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// .\be\be_codegen.cpp:154
-
-#ifndef _TAO_IDL_ORIG_CSD_FRAMEWORKC_H_
-#define _TAO_IDL_ORIG_CSD_FRAMEWORKC_H_
-
-#include /**/ "ace/pre.h"
-
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-#include "tao/ORB.h"
-#include "tao/SystemException.h"
-#include "tao/Environment.h"
-#include "tao/Object.h"
-#include "tao/Objref_VarOut_T.h"
-
-#include "tao/PortableServer/PortableServer.h"
-
-#if defined (TAO_EXPORT_MACRO)
-#undef TAO_EXPORT_MACRO
-#endif
-#define TAO_EXPORT_MACRO TAO_CSD_FW_Export
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:49
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace CSD_Framework
-{
-
- // TAO_IDL - Generated from
- // .\be\be_interface.cpp:646
-
-#if !defined (_CSD_FRAMEWORK_STRATEGY__VAR_OUT_CH_)
-#define _CSD_FRAMEWORK_STRATEGY__VAR_OUT_CH_
-
- class Strategy;
- typedef Strategy *Strategy_ptr;
-
- typedef
- TAO_Objref_Var_T<
- Strategy
- >
- Strategy_var;
-
- typedef
- TAO_Objref_Out_T<
- Strategy
- >
- Strategy_out;
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_ch.cpp:54
-
-#if !defined (_CSD_FRAMEWORK_STRATEGY_CH_)
-#define _CSD_FRAMEWORK_STRATEGY_CH_
-
- class TAO_CSD_FW_Export Strategy
- : public virtual ::CORBA::Object
- {
- public:
- typedef Strategy_ptr _ptr_type;
- typedef Strategy_var _var_type;
-
- // The static operations.
- static Strategy_ptr _duplicate (Strategy_ptr obj);
-
- static void _tao_release (Strategy_ptr obj);
-
- static Strategy_ptr _narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static Strategy_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static Strategy_ptr _nil (void)
- {
- return static_cast<Strategy_ptr> (0);
- }
-
-
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Boolean apply_to (
- ::PortableServer::POA_ptr p
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- )) = 0;
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
- const char *type_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
- protected:
- // Abstract or local interface only.
- Strategy (void);
-
- virtual ~Strategy (void);
-
- private:
- // Private and unimplemented for concrete interfaces.
- Strategy (const Strategy &);
-
- void operator= (const Strategy &);
- };
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // .\be\be_interface.cpp:646
-
-#if !defined (_CSD_FRAMEWORK_POA__VAR_OUT_CH_)
-#define _CSD_FRAMEWORK_POA__VAR_OUT_CH_
-
- class POA;
- typedef POA *POA_ptr;
-
- typedef
- TAO_Objref_Var_T<
- POA
- >
- POA_var;
-
- typedef
- TAO_Objref_Out_T<
- POA
- >
- POA_out;
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_ch.cpp:54
-
-#if !defined (_CSD_FRAMEWORK_POA_CH_)
-#define _CSD_FRAMEWORK_POA_CH_
-
- class TAO_CSD_FW_Export POA
- : public virtual ::PortableServer::POA
- {
- public:
- typedef POA_ptr _ptr_type;
- typedef POA_var _var_type;
-
- // The static operations.
- static POA_ptr _duplicate (POA_ptr obj);
-
- static void _tao_release (POA_ptr obj);
-
- static POA_ptr _narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static POA_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static POA_ptr _nil (void)
- {
- return static_cast<POA_ptr> (0);
- }
-
-
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_operation/operation_ch.cpp:46
-
- virtual void set_csd_strategy (
- ::CSD_Framework::Strategy_ptr s
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- )) = 0;
-
- // TAO_IDL - Generated from
- // c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
- const char *type_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
- protected:
- // Abstract or local interface only.
- POA (void);
-
- virtual ~POA (void);
-
- private:
- // Private and unimplemented for concrete interfaces.
- POA (const POA &);
-
- void operator= (const POA &);
- };
-
-#endif /* end #if !defined */
-
-// TAO_IDL - Generated from
-// c:\csd\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:78
-
-} // module CSD_Framework
-
-// TAO_IDL - Generated from
-// .\be\be_visitor_traits.cpp:61
-
-// Traits specializations.
-namespace TAO
-{
-
-#if !defined (_CSD_FRAMEWORK_STRATEGY__TRAITS_)
-#define _CSD_FRAMEWORK_STRATEGY__TRAITS_
-
- template<>
- struct TAO_CSD_FW_Export Objref_Traits< ::CSD_Framework::Strategy>
- {
- static ::CSD_Framework::Strategy_ptr duplicate (
- ::CSD_Framework::Strategy_ptr
- );
- static void release (
- ::CSD_Framework::Strategy_ptr
- );
- static ::CSD_Framework::Strategy_ptr nil (void);
- static ::CORBA::Boolean marshal (
- ::CSD_Framework::Strategy_ptr p,
- TAO_OutputCDR & cdr
- );
- };
-
-#endif /* end #if !defined */
-
-#if !defined (_CSD_FRAMEWORK_POA__TRAITS_)
-#define _CSD_FRAMEWORK_POA__TRAITS_
-
- template<>
- struct TAO_CSD_FW_Export Objref_Traits< ::CSD_Framework::POA>
- {
- static ::CSD_Framework::POA_ptr duplicate (
- ::CSD_Framework::POA_ptr
- );
- static void release (
- ::CSD_Framework::POA_ptr
- );
- static ::CSD_Framework::POA_ptr nil (void);
- static ::CORBA::Boolean marshal (
- ::CSD_Framework::POA_ptr p,
- TAO_OutputCDR & cdr
- );
- };
-
-#endif /* end #if !defined */
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
-
-
diff --git a/TAO/tao/CSD_Framework/CSD_Framework_Loader.cpp b/TAO/tao/CSD_Framework/CSD_Framework_Loader.cpp
deleted file mode 100644
index 99094e9e166..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Framework_Loader.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Framework_Loader.h"
-#include "tao/CSD_Framework/CSD_Object_Adapter_Factory.h"
-#include "tao/CSD_Framework/CSD_Strategy_Repository.h"
-#include "ace/Dynamic_Service.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_Framework_Loader,
- "$Id$")
-
-#include "tao/ORB_Core.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-int
-TAO_CSD_Framework_Loader::init (void)
-{
- ACE_Service_Config::process_directive (ace_svc_desc_TAO_CSD_Object_Adapter_Factory);
-
- TAO_ORB_Core::set_poa_factory ("TAO_CSD_Object_Adapter_Factory",
- "dynamic TAO_CSD_Object_Adapter_Factory Service_Object * _make_TAO_CSD_Object_Adapter_Factory()");
-
-
- ACE_Service_Config::process_directive (ace_svc_desc_TAO_CSD_Strategy_Repository);
-
- return 0;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Framework_Loader.h b/TAO/tao/CSD_Framework/CSD_Framework_Loader.h
deleted file mode 100644
index 44aa1f5c73c..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Framework_Loader.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- C++ -*- */
-
-//=============================================================================
-/**
- * @file CSD_Framework_Loader.h
- *
- * $Id$
- *
- * Header file for loading CSD framework service objects.
- *
- * @author Yan Dai (dai_y@ociweb.com)
- */
-//=============================================================================
-
-#ifndef TAO_CSD_FRAMEWORK_LOADER_H
-#define TAO_CSD_FRAMEWORK_LOADER_H
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_CSD_Framework_Loader
- *
- * @brief TAO_CSD_Framework_Loader.
- *
- * This class acts as a facade for the CSD_Framework library to the
- * ORB.
- */
-class TAO_CSD_FW_Export TAO_CSD_Framework_Loader
-{
- public:
- /// Used to force the initialization of the ORB code.
- static int init (void);
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* TAO_CSD_FRAMEWORK_LOADER_H */
diff --git a/TAO/tao/CSD_Framework/CSD_ORBInitializer.cpp b/TAO/tao/CSD_Framework/CSD_ORBInitializer.cpp
deleted file mode 100644
index b67ea4bbc08..00000000000
--- a/TAO/tao/CSD_Framework/CSD_ORBInitializer.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-#include "tao/CSD_Framework/CSD_ORBInitializer.h"
-
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-
-ACE_RCSID (CSD_Framework,
- CSD_ORBInitializer,
- "$Id$")
-
-#include "tao/CSD_Framework/CSD_Object_Adapter_Factory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CSD_ORBInitializer::TAO_CSD_ORBInitializer ()
-{
-}
-
-void
-TAO_CSD_ORBInitializer::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-TAO_CSD_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/CSD_Framework/CSD_ORBInitializer.h b/TAO/tao/CSD_Framework/CSD_ORBInitializer.h
deleted file mode 100644
index 8d6aa8a03e5..00000000000
--- a/TAO/tao/CSD_Framework/CSD_ORBInitializer.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_ORBInitializer.h
- *
- * $Id$
- *
- * @author Yan Dai (dai_y@ociweb.com)
- */
-//=============================================================================
-
-
-#ifndef TAO_CSD_ORB_INITIALIZER_H
-#define TAO_CSD_ORB_INITIALIZER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-//#include "tao/PortableInterceptorC.h"
-#include "tao/LocalObject.h"
-#include "tao/PI/ORBInitializerC.h"
-
-// This is to remove "inherits via dominance" warnings from MSVC.
-// MSVC is being a little too paranoid.
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/// CSD ORB initializer.
-class TAO_CSD_ORBInitializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- TAO_CSD_ORBInitializer ();
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined(_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_ORB_INITIALIZER_H */
diff --git a/TAO/tao/CSD_Framework/CSD_Object_Adapter.cpp b/TAO/tao/CSD_Framework/CSD_Object_Adapter.cpp
deleted file mode 100644
index ed74e7c413b..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Object_Adapter.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Object_Adapter.h"
-#include "tao/CSD_Framework/CSD_Strategy_Proxy.h"
-#include "tao/CSD_Framework/CSD_POA.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_Object_Adapter,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CSD_Object_Adapter::TAO_CSD_Object_Adapter (
- const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters &creation_parameters,
- TAO_ORB_Core &orb_core)
- : TAO_Object_Adapter (creation_parameters, orb_core)
-{
-
-}
-
-TAO_CSD_Object_Adapter::~TAO_CSD_Object_Adapter ()
-{
-}
-
-void
-TAO_CSD_Object_Adapter::do_dispatch (
- TAO_ServerRequest& req,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL)
-{
- TAO_Root_POA& poa = upcall.poa ();
- TAO_CSD_POA* csd_poa = dynamic_cast<TAO_CSD_POA*> (&poa);
-
- if (csd_poa == 0)
- {
- ACE_THROW (CORBA::BAD_PARAM ());
- }
-
- TAO::CSD::Strategy_Proxy& proxy
- = csd_poa->servant_dispatching_strategy_proxy ();
- proxy.dispatch_request (req, upcall ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Object_Adapter.h b/TAO/tao/CSD_Framework/CSD_Object_Adapter.h
deleted file mode 100644
index 34016654cba..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Object_Adapter.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_Object_Adapter.h
- *
- * $Id$
- *
- * @author Yan Dai (dai_y@ociweb.com)
- */
-//=============================================================================
-
-
-#ifndef TAO_CSD_OBJECT_ADAPTER_H
-#define TAO_CSD_OBJECT_ADAPTER_H
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PortableServer/Object_Adapter.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_CSD_Object_Adapter
- *
- * @brief Defines the CSD version Object Adapter which overrides
- * default dispatch implementation.
- *
- * This class will be used as a facade for the CSD POAs in a server
- */
-class TAO_CSD_FW_Export TAO_CSD_Object_Adapter : public TAO_Object_Adapter
-{
-public:
-
- /// Constructor
- TAO_CSD_Object_Adapter (const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters &creation_parameters,
- TAO_ORB_Core &orb_core);
-
- /// Destructor
- virtual ~TAO_CSD_Object_Adapter (void);
-
- /// Hand the request to the Service_Dispatching_Strategy_Proxy for
- /// dispatching.
- virtual void do_dispatch (TAO_ServerRequest& req,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL);
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* TAO_CSD_OBJECT_ADAPTER_H */
diff --git a/TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.cpp b/TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.cpp
deleted file mode 100644
index fa06817ec2c..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Object_Adapter_Factory.h"
-#include "tao/CSD_Framework/CSD_Strategy_Repository.h"
-#include "tao/CSD_Framework/CSD_Object_Adapter.h"
-#include "tao/CSD_Framework/CSD_ORBInitializer.h"
-#include "tao/CSD_Framework/CSD_Default_Servant_Dispatcher.h"
-#include "tao/ORB_Core.h"
-#include "tao/ORBInitializer_Registry.h"
-#include "ace/Dynamic_Service.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_Object_Adapter_Factory,
- "$Id$")
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CSD_Object_Adapter_Factory::TAO_CSD_Object_Adapter_Factory (void)
-{
-}
-
-TAO_Adapter*
-TAO_CSD_Object_Adapter_Factory::create (TAO_ORB_Core *oc)
-{
- // Create the CSD object adapter.
- TAO_CSD_Object_Adapter *object_adapter = 0;
- ACE_NEW_RETURN (object_adapter,
- TAO_CSD_Object_Adapter (oc->server_factory ()->
- active_object_map_creation_parameters (),
- *oc),
- 0);
-
- // Create and register the CSD servant dispatcher.
- TAO_CSD_Default_Servant_Dispatcher * csd_servant_dispatcher = 0;
- ACE_NEW_RETURN (csd_servant_dispatcher,
- TAO_CSD_Default_Servant_Dispatcher,
- 0);
- object_adapter->servant_dispatcher (csd_servant_dispatcher);
-
- return object_adapter;
-}
-
-int
-TAO_CSD_Object_Adapter_Factory::init (int /* argc */,
- ACE_TCHAR* /* argv */ [])
-{
- TAO_CSD_Strategy_Repository *repo =
- ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance ("TAO_CSD_Strategy_Repository");
-
- if (repo != 0)
- repo->init(0,0);
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- /// Register the Messaging ORBInitializer.
- PortableInterceptor::ORBInitializer_ptr temp_orb_initializer =
- PortableInterceptor::ORBInitializer::_nil ();
-
- ACE_NEW_THROW_EX (temp_orb_initializer,
- TAO_CSD_ORBInitializer,
- CORBA::NO_MEMORY (
- CORBA::SystemException::_tao_minor_code (
- TAO::VMCID,
- ENOMEM),
- CORBA::COMPLETED_NO));
- ACE_TRY_CHECK;
-
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_orb_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_DEFINE (TAO_CSD_FW, TAO_CSD_Object_Adapter_Factory)
-ACE_STATIC_SVC_DEFINE (TAO_CSD_Object_Adapter_Factory,
- ACE_TEXT ("TAO_CSD_Object_Adapter_Factory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (TAO_CSD_Object_Adapter_Factory),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.h b/TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.h
deleted file mode 100644
index 7914266c53c..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Object_Adapter_Factory.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_Object_Adapter_Factory.h
- *
- * $Id$
- *
- * @author Yan Dai (dai_y@ociweb.com)
- */
-//=============================================================================
-
-
-#ifndef TAO_CSD_OBJECT_ADAPTER_FACTORY_H
-#define TAO_CSD_OBJECT_ADAPTER_FACTORY_H
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Adapter_Factory.h"
-#include "ace/Service_Config.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_CSD_FW_Export TAO_CSD_Object_Adapter_Factory : public TAO_Adapter_Factory
-{
-public:
- /// Constructor
- TAO_CSD_Object_Adapter_Factory (void);
-
- // = The TAO_Adapter_Factory methods, please read tao/Adapter.h for
- // details.
- virtual TAO_Adapter *create (TAO_ORB_Core *orb_core);
-
- virtual int init (int argc,
- ACE_TCHAR* argv[]);
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_CSD_FW, TAO_CSD_Object_Adapter_Factory)
-ACE_FACTORY_DECLARE (TAO_CSD_FW, TAO_CSD_Object_Adapter_Factory)
-
-#include /**/ "ace/post.h"
-#endif /* TAO_CSD_OBJECT_ADAPTER_FACTORY_H */
diff --git a/TAO/tao/CSD_Framework/CSD_POA.cpp b/TAO/tao/CSD_Framework/CSD_POA.cpp
deleted file mode 100644
index fb4d9c69869..00000000000
--- a/TAO/tao/CSD_Framework/CSD_POA.cpp
+++ /dev/null
@@ -1,134 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_POA.h"
-#include "tao/CSD_Framework/CSD_Strategy_Repository.h"
-#include "tao/CSD_Framework/CSD_Strategy_Base.h"
-
-#include "ace/Dynamic_Service.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_POA,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_POA.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Implementation skeleton constructor
-TAO_CSD_POA::TAO_CSD_POA (const String &name,
- TAO_POA_Manager &poa_manager,
- const TAO_POA_Policy_Set &policies,
- TAO_Root_POA *parent,
- ACE_Lock &lock,
- TAO_SYNCH_MUTEX &thread_lock,
- TAO_ORB_Core &orb_core,
- TAO_Object_Adapter *object_adapter
- ACE_ENV_ARG_DECL)
-: TAO_Regular_POA (name,
- poa_manager,
- policies,
- parent,
- lock,
- thread_lock,
- orb_core,
- object_adapter
- ACE_ENV_ARG_PARAMETER)
-{
- ACE_NEW_THROW_EX (this->sds_proxy_,
- TAO::CSD::Strategy_Proxy (),
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-}
-
-
-// Implementation skeleton destructor
-TAO_CSD_POA::~TAO_CSD_POA (void)
-{
- delete this->sds_proxy_;
-}
-
-void TAO_CSD_POA::set_csd_strategy (
- ::CSD_Framework::Strategy_ptr strategy
- ACE_ENV_ARG_DECL
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
- if (CORBA::is_nil (strategy))
- {
- ACE_THROW (CORBA::BAD_PARAM ());
- }
- this->sds_proxy_->custom_strategy (strategy);
-}
-
-TAO_Root_POA *
-TAO_CSD_POA::new_POA (const String &name,
- TAO_POA_Manager &poa_manager,
- const TAO_POA_Policy_Set &policies,
- TAO_Root_POA *parent,
- ACE_Lock &lock,
- TAO_SYNCH_MUTEX &thread_lock,
- TAO_ORB_Core &orb_core,
- TAO_Object_Adapter *object_adapter
- ACE_ENV_ARG_DECL)
-{
- TAO_CSD_POA *poa = 0;
-
- ACE_NEW_THROW_EX (poa,
- TAO_CSD_POA (name,
- poa_manager,
- policies,
- parent,
- lock,
- thread_lock,
- orb_core,
- object_adapter
- ACE_ENV_ARG_PARAMETER),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- TAO_CSD_Strategy_Repository *repo =
- ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance ("TAO_CSD_Strategy_Repository");
-
-
- CSD_Framework::Strategy_var strategy = repo->find (name);
-
- if (! CORBA::is_nil (strategy.in ()))
- {
- poa->set_csd_strategy (strategy.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- }
-
- return poa;
-}
-
-void TAO_CSD_POA::poa_activated_hook ()
-{
- this->sds_proxy_->poa_activated_event ();
-}
-
-void TAO_CSD_POA::poa_deactivated_hook ()
-{
- this->sds_proxy_->poa_deactivated_event ();
-}
-
-void TAO_CSD_POA::servant_activated_hook (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- this->sds_proxy_->servant_activated_event (servant, oid ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void TAO_CSD_POA::servant_deactivated_hook (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- this->sds_proxy_->servant_deactivated_event (servant, oid ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_POA.h b/TAO/tao/CSD_Framework/CSD_POA.h
deleted file mode 100644
index 7bf2c338e0d..00000000000
--- a/TAO/tao/CSD_Framework/CSD_POA.h
+++ /dev/null
@@ -1,111 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_POA.h
- *
- * $Id$
- *
- * @author Yan Dai (dai_y@ociweb.com)
- */
-//=============================================================================
-
-#ifndef TAO_CSD_POA_H
-#define TAO_CSD_POA_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PortableServer/Regular_POA.h"
-#include "tao/CSD_Framework/CSD_Strategy_Proxy.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_CSD_POA
- *
- * @brief Implementation of the CSD_Framework::POA interface.
- *
- * Implementation of the CSD_Framework::POA interface.
- */
-class TAO_CSD_FW_Export TAO_CSD_POA
- : public virtual CSD_Framework::POA,
- public virtual TAO_Regular_POA
-{
-public:
- //Constructor
- TAO_CSD_POA (const String &name,
- TAO_POA_Manager &poa_manager,
- const TAO_POA_Policy_Set &policies,
- TAO_Root_POA *parent,
- ACE_Lock &lock,
- TAO_SYNCH_MUTEX &thread_lock,
- TAO_ORB_Core &orb_core,
- TAO_Object_Adapter *object_adapter
- ACE_ENV_ARG_DECL);
-
- //Destructor
- virtual ~TAO_CSD_POA (void);
-
- /// Pass the Strategy object reference to the CSD poa.
- virtual
- void set_csd_strategy (
- ::CSD_Framework::Strategy_ptr s
- ACE_ENV_ARG_DECL
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ));
-
- /// Hook - The POA has been (or is being) activated.
- virtual void poa_activated_hook ();
-
- /// Hook - The POA has been deactivated.
- virtual void poa_deactivated_hook ();
-
- /// Hook - A servant has been activated.
- virtual void servant_activated_hook (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// Hook - A servant has been deactivated.
- virtual void servant_deactivated_hook (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- ///Method for creating new CSD POA.
- TAO_Root_POA * new_POA (const String &name,
- TAO_POA_Manager &poa_manager,
- const TAO_POA_Policy_Set &policies,
- TAO_Root_POA *parent,
- ACE_Lock &lock,
- TAO_SYNCH_MUTEX &thread_lock,
- TAO_ORB_Core &orb_core,
- TAO_Object_Adapter *object_adapter
- ACE_ENV_ARG_DECL);
-
- /// Servant Dispatching Strategy proxy accessor.
- TAO::CSD::Strategy_Proxy&
- servant_dispatching_strategy_proxy (void) const;
-
-private:
-
- TAO::CSD::Strategy_Proxy* sds_proxy_;
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_POA.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_POA_H */
-
diff --git a/TAO/tao/CSD_Framework/CSD_POA.inl b/TAO/tao/CSD_Framework/CSD_POA.inl
deleted file mode 100644
index 5e94cf5401e..00000000000
--- a/TAO/tao/CSD_Framework/CSD_POA.inl
+++ /dev/null
@@ -1,14 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::Strategy_Proxy&
-TAO_CSD_POA::servant_dispatching_strategy_proxy (void) const
-{
- return *sds_proxy_;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Base.cpp b/TAO/tao/CSD_Framework/CSD_Strategy_Base.cpp
deleted file mode 100644
index aa641fe9bc7..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Base.cpp
+++ /dev/null
@@ -1,132 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Strategy_Base.h"
-#include "tao/CSD_Framework/CSD_POA.h"
-#include "tao/CSD_Framework/CSD_Strategy_Proxy.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/POAManager.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/TAO_Server_Request.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_Strategy_Base,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_Strategy_Base.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::Strategy_Base::~Strategy_Base()
-{
-}
-
-CORBA::Boolean
-TAO::CSD::Strategy_Base::apply_to (PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (CORBA::is_nil(poa))
- {
- if (TAO_debug_level > 0)
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("(%P|%t) CSD Strategy cannot ")
- ACE_TEXT("be applied to a nil POA.\n")));
- return false;
- }
-
- if (!CORBA::is_nil(this->poa_.in()))
- {
- if (TAO_debug_level > 0)
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("(%P|%t) CSD Strategy already ")
- ACE_TEXT("applied to a POA.\n")));
- return false;
- }
-
- // The POA is a local interface (IDL terminology), and thus we know that
- // we can downcast the POA_ptr to its (TAO) implementation type.
- TAO_CSD_POA* poa_impl = dynamic_cast<TAO_CSD_POA*>(poa);
-
- if (poa_impl == 0)
- {
- if (TAO_debug_level > 0)
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("(%P|%t) CSD Strategy cannot ")
- ACE_TEXT("be applied to a non CSD POA.\n")));
- return false;
- }
-
- // We need to check to see if the POA is already "active". If this is
- // the case, then we need to handle the poa_activated_event() right now.
- // If the POA is not already "active", then we can just wait until it
- // does get activated, and we (the strategy) will be informed of the
- // poa_activated_event() at that time.
- if (poa_impl->tao_poa_manager().get_state() ==
- PortableServer::POAManager::ACTIVE)
- {
- // The POA is already "active" (since its POAManager is active).
- // We need to "raise" the poa_activated_event() now. Otherwise,
- // the event will be raised when the POAManager does become active.
- if (!this->poa_activated_event())
- {
- // An error has been already been reported to the log with
- // the detailed reason for the failure to handle the event.
- return false;
- }
- }
-
- // Set the CSD Strategy_Base on the strategy proxy object owned by the POA.
- bool strategy_set = false;
- ACE_TRY_NEW_ENV
- {
- poa_impl->set_csd_strategy (this ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- strategy_set = true;
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
-
- if (! strategy_set)
- {
- // We need to make sure that we raise a poa_deactivated_event() if
- // we earlier raised a poa_activated_event().
- this->poa_deactivated_event();
-
- // An error has been already been reported to the log with
- // the detailed reason why the proxy will not accept the
- // custom strategy.
- return false;
- }
-
- // Save a duplicate of the poa into our data member.
- this->poa_ = PortableServer::POA::_duplicate (poa);
-
- // Success
- return true;
-}
-
-
-void
-TAO::CSD::Strategy_Base::servant_activated_event_i
- (PortableServer::Servant ,
- const PortableServer::ObjectId&
- ACE_ENV_ARG_DECL)
-{
- // do nothing.
-}
-
-
-void
-TAO::CSD::Strategy_Base::servant_deactivated_event_i
- (PortableServer::Servant,
- const PortableServer::ObjectId&
- ACE_ENV_ARG_DECL)
-{
- // do nothing.
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Base.h b/TAO/tao/CSD_Framework/CSD_Strategy_Base.h
deleted file mode 100644
index d65753a27f7..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Base.h
+++ /dev/null
@@ -1,174 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_Strategy_Base.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_FW_CUSTOM_SERVANT_DISPATCHING_STRATEGY_H
-#define TAO_CSD_FW_CUSTOM_SERVANT_DISPATCHING_STRATEGY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/TAO_Server_Request.h"
-#include "tao/LocalObject.h"
-
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_Framework/CSD_FrameworkC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Root_POA;
-namespace PortableServer
-{
- class POAManager;
-}
-
-namespace TAO
-{
- namespace CSD
- {
- /**
- * @class Strategy_Base
- *
- * @brief Base class for all Custom Servant Dispatching Strategies.
- *
- * This class serves as the base class for all "custom" strategies that
- * perform servant dispatching. An instance of (a subclass of) this class
- * can be applied to a POA object. Any servant requests for the POA will
- * be "dispatched" to this strategy object.
- *
- */
- class TAO_CSD_FW_Export Strategy_Base
- : public CSD_Framework::Strategy,
- public TAO_Local_RefCounted_Object
- {
- public:
-
- /// Result Type for dispatching method(s).
- enum DispatchResult
- {
- // The request dispatching has been handled.
- DISPATCH_HANDLED,
-
- // The request dispatching has been rejected.
- DISPATCH_REJECTED,
-
- // Defer to "default" dispatching strategy (use the caller's thread).
- DISPATCH_DEFERRED
- };
-
- /// Virtual Destructor.
- virtual ~Strategy_Base();
-
- /// This method is invoked to "attach" this strategy object to
- /// the supplied POA. Returns true for success, and false for failure.
- CORBA::Boolean apply_to(PortableServer::POA_ptr poa ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- protected:
- /// Default Constructor.
- Strategy_Base();
-
- /// Subclass provides implementation to dispatch a remote request.
- virtual DispatchResult dispatch_remote_request_i
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL) = 0;
-
- /// Subclass provides implementation to dispatch a collocated request.
- virtual DispatchResult dispatch_collocated_request_i
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL) = 0;
-
- /// Event - The POA has been activated.
- virtual bool poa_activated_event_i() = 0;
-
- /// Event - The POA has been deactivated.
- virtual void poa_deactivated_event_i() = 0;
-
- /// Event - A servant has been activated.
- virtual void servant_activated_event_i
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// Event - A servant has been deactivated.
- virtual void servant_deactivated_event_i
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- private:
-
- /// Only our friend, the proxy, is allowed to invoke our private operations.
- /// This allows us to not pollute the public interface of the CSD Strategy_Base
- /// subclasses with methods that should never be called (except by the
- /// proxy, of course).
- friend class Strategy_Proxy;
-
- /// This CSD Strategy_Base has been asked to dispatch a (collocated or remote)
- /// request.
- void dispatch_request(TAO_ServerRequest& server_request,
- ::TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL);
-
- /// Event - The POA has been activated. This happens when the POA_Manager
- /// is activated.
- bool poa_activated_event();
-
- /// Event - The POA has been deactivated. This happens when the
- /// POAManager is deactivated, or when the POA is destroyed.
- void poa_deactivated_event();
-
- /// Event - A servant has been activated.
- void servant_activated_event(PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// Event - A servant has been deactivated. This also occurs when
- /// the POA is destroyed.
- void servant_deactivated_event(PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// The POA to which this strategy has been applied.
- ::PortableServer::POA_var poa_;
-
- /// This flag indicates that the POA is currently active (true) or
- /// currently inactive (false).
- bool poa_activated_;
- };
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_Strategy_Base.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_FW_CUSTOM_SERVANT_DISPATCHING_STRATEGY_H */
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Base.inl b/TAO/tao/CSD_Framework/CSD_Strategy_Base.inl
deleted file mode 100644
index 6dce0cf7397..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Base.inl
+++ /dev/null
@@ -1,144 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "tao/debug.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::Strategy_Base::Strategy_Base()
- : poa_activated_(false)
-{
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Base::dispatch_request
- (TAO_ServerRequest& server_request,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL)
-{
- DispatchResult result;
-
- if (server_request.collocated())
- {
- result = this->dispatch_collocated_request_i(server_request,
- upcall.user_id(),
- this->poa_.in(),
- server_request.operation(),
- upcall.servant()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- result = this->dispatch_remote_request_i(server_request,
- upcall.user_id(),
- this->poa_.in(),
- server_request.operation(),
- upcall.servant()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- switch (result)
- {
- case DISPATCH_HANDLED:
- // Do nothing. Everything has been handled.
- break;
-
- case DISPATCH_REJECTED:
- if (server_request.collocated ())
- {
- CORBA::NO_IMPLEMENT ex;
- ex._raise ();
- }
- else
- {
- // Raise an appropriate SystemException if the request is expecting
- // a reply.
- if (!server_request.sync_with_server() &&
- server_request.response_expected() &&
- !server_request.deferred_reply())
- {
- CORBA::NO_IMPLEMENT ex;
- server_request.tao_send_reply_exception(ex);
- }
- }
- break;
-
- case DISPATCH_DEFERRED:
- // Perform the "default" dispatching strategy logic for this request
- // right now, using the current thread.
- upcall.servant()->_dispatch(server_request,
- (void*)&upcall
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- break;
-
- default:
- if (TAO_debug_level > 0)
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("(%P|%t) Unknown result (%d) from call to ")
- ACE_TEXT("dispatch_remote_request_i().\n"), result));
- // Since we do not know what to do here, just do the minimum, which
- // treats this case just like the DISPATCH_HANDLED case, for better
- // or worse. Hitting this default case means a coding error.
- break;
- }
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::Strategy_Base::poa_activated_event()
-{
- // Notify the subclass of the event, saving the result.
- this->poa_activated_ = this->poa_activated_event_i();
-
- // Return the result
- return this->poa_activated_;
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Base::poa_deactivated_event()
-{
- if (this->poa_activated_)
- {
- this->poa_activated_ = false;
-
- // Notify the subclass of the event.
- this->poa_deactivated_event_i();
-
- // Reset the poa to nil to decrement the reference count.
- // This will break the circular dependency of the deletion
- // of the CSD POA.
- this->poa_ = 0;
- }
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Base::servant_activated_event
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- this->servant_activated_event_i(servant, oid ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Base::servant_deactivated_event
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- this->servant_deactivated_event_i(servant, oid ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.cpp b/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.cpp
deleted file mode 100644
index b163134be56..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Strategy_Proxy.h"
-#include "tao/TAO_Server_Request.h"
-#include "tao/debug.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_Strategy_Base,
- "$Id$")
-
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_Strategy_Proxy.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-bool
-TAO::CSD::Strategy_Proxy::custom_strategy
- (CSD_Framework::Strategy_ptr strategy)
-{
- if (this->strategy_impl_)
- {
- if (TAO_debug_level > 0)
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("(%P|%t) Error - TAO::CSD::Strategy_Proxy ")
- ACE_TEXT("object already has a custom strategy.\n")));
-
- return false;
- }
-
- if (CORBA::is_nil(strategy))
- {
- if (TAO_debug_level > 0)
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("(%P|%t) Error - TAO::CSD::Strategy_Proxy ")
- ACE_TEXT("supplied with a NIL custom strategy.\n")));
-
- return false;
- }
-
- // We need to bump up the reference count of the strategy before saving
- // it off into our handle (smart pointer) data member.
- this->strategy_ = CSD_Framework::Strategy::_duplicate(strategy);
- this->strategy_impl_ = dynamic_cast <TAO::CSD::Strategy_Base*> (strategy);
-
- return true;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.h b/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.h
deleted file mode 100644
index 959a7cb9ebb..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_Strategy_Proxy.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_SERVANT_DISPATCHING_STRATEGY_PROXY_H
-#define TAO_SERVANT_DISPATCHING_STRATEGY_PROXY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_Framework/CSD_Strategy_Base.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_ServerRequest;
-
-namespace TAO
-{
- namespace CSD
- {
- /**
- * @class Strategy_Proxy
- *
- * @brief Proxy class for the Custom Servant Dispatching Strategy.
- *
- * If no custom servant dispatching strategy is provided to the proxy,
- * then the "default servant dispatching strategy" logic is used.
- */
- class TAO_CSD_FW_Export Strategy_Proxy
- {
- public:
-
- /// Default Constructor.
- Strategy_Proxy();
-
- /// Destructor.
- ~Strategy_Proxy();
-
- /// Mutator to provide the proxy with a CSD Strategy object.
- /// A return value of true indicates success, and false indicates
- /// failure to set the custom strategy on the proxy object.
- bool custom_strategy(CSD_Framework::Strategy_ptr strategy);
-
- /// Invoked by the Object_Adapter using an ORB thread.
- ///
- /// If the proxy object holds a custom strategy object, then this method
- /// will simply delegate to the custom strategy object. Otherwise,
- /// this method will perform the "default servant dispatching strategy"
- /// logic, preserving the original logic path as it was prior to the
- /// introduction of the Custom Servant Dispatching feature.
- ///
- /// This method will be inlined (if inlining is turned on during the build).
- ///
- /// The added cost to the original logic path will be this method
- /// invocation + one conditional (an is_nil() call/comparison for truth on
- /// the smart pointer to the custom dispatching strategy object).
- void dispatch_request(TAO_ServerRequest& server_request,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL);
-
-
- /// Event - The POA has been (or is being) activated.
- bool poa_activated_event();
-
- /// Event - The POA has been deactivated.
- void poa_deactivated_event();
-
- /// Event - A servant has been activated.
- void servant_activated_event(PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// Event - A servant has been deactivated.
- void servant_deactivated_event(PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- private:
-
- /// Smart Pointer to a custom servant dispatching strategy object.
- /// This smart pointer will be in the "nil" state when the "default"
- /// strategy is to be applied.
- CSD_Framework::Strategy_var strategy_;
- TAO::CSD::Strategy_Base *strategy_impl_;
- };
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_Framework/CSD_Strategy_Proxy.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl b/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl
deleted file mode 100644
index 957852e6517..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl
+++ /dev/null
@@ -1,104 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::Strategy_Proxy::Strategy_Proxy()
- : strategy_impl_(0)
-{
-}
-
-ACE_INLINE
-TAO::CSD::Strategy_Proxy::~Strategy_Proxy()
-{
- strategy_impl_ = 0; // don't delete it! The var will do it for us.
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::dispatch_request
- (TAO_ServerRequest& server_request,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL)
-{
-
- if (this->strategy_impl_ == 0)
- {
- // This is the "default" strategy implementation.
- upcall.servant()->_dispatch(server_request,
- (void*)&upcall
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->dispatch_request(server_request,
- upcall
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-ACE_INLINE
-bool
-TAO::CSD::Strategy_Proxy::poa_activated_event()
-{
- // Delegate to the custom strategy object (or return true if this proxy
- // is not holding a custom strategy).
- return (this->strategy_impl_ == 0) ? true
- : this->strategy_impl_->poa_activated_event();
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::poa_deactivated_event()
-{
- // We only need to do something if this proxy holds a custom strategy.
- if (this->strategy_impl_)
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->poa_deactivated_event();
- }
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::servant_activated_event
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- // We only need to do something if this proxy holds a custom strategy.
- if (this->strategy_impl_)
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->servant_activated_event(servant,
- oid
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::servant_deactivated_event
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- // We only need to do something if this proxy holds a custom strategy.
- if (this->strategy_impl_)
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->servant_deactivated_event(servant,
- oid
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Repository.cpp b/TAO/tao/CSD_Framework/CSD_Strategy_Repository.cpp
deleted file mode 100644
index 5a169516bf5..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Repository.cpp
+++ /dev/null
@@ -1,117 +0,0 @@
-// $Id$
-
-#include "tao/CSD_Framework/CSD_Strategy_Repository.h"
-#include "tao/debug.h"
-
-ACE_RCSID (CSD_Framework,
- CSD_Strategy_Factory,
- "$Id$")
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_CSD_Strategy_Repository::TAO_CSD_Strategy_Repository()
-{
-}
-
-
-TAO_CSD_Strategy_Repository::~TAO_CSD_Strategy_Repository()
-{
- delete this->strategy_list_head_;
-}
-
-int
-TAO_CSD_Strategy_Repository::init(int, ACE_TCHAR **)
-{
-
- static int initialized = 0;
-
- // Only allow initialization once.
- if (initialized)
- return 0;
-
- initialized = 1;
- this->strategy_list_head_ = 0;
- return 0;
-}
-
-CSD_Framework::Strategy_ptr
-TAO_CSD_Strategy_Repository::find (const ACE_CString& name)
-{
-
- if (this->strategy_list_head_ != 0)
- {
- Strategy_Node *node = this->strategy_list_head_->find(name);
- if (node != 0)
- return CSD_Framework::Strategy::_duplicate (node->strategy_.in());
- }
-
- return CSD_Framework::Strategy::_nil();
-}
-
-
-int
-TAO_CSD_Strategy_Repository::add_strategy (const ACE_CString& name,
- CSD_Framework::Strategy_ptr strat)
-{
- Strategy_Node *node = 0;
- ACE_NEW_RETURN (node, Strategy_Node(name,strat),-1);
- if (this->strategy_list_head_ == 0)
- this->strategy_list_head_ = node;
- else
- this->strategy_list_head_->add_node(node);
-
- if (TAO_debug_level > 3)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("Strategy_Repository::add_strategy for %s \n"),
- name.c_str ()));
- }
- return 0;
-}
-
-TAO_CSD_Strategy_Repository::Strategy_Node::Strategy_Node (const ACE_CString& name,
- CSD_Framework::Strategy_ptr strat)
- : poa_name_(name),
- strategy_(CSD_Framework::Strategy::_duplicate(strat)),
- next_(0)
-{
-}
-
-TAO_CSD_Strategy_Repository::Strategy_Node::~Strategy_Node ()
-{
- if (this->next_)
- delete this->next_;
-}
-
-void
-TAO_CSD_Strategy_Repository::Strategy_Node::add_node(Strategy_Node *node)
-{
- if (this->next_)
- this->next_->add_node(node);
- else
- this->next_ = node;
-}
-
-TAO_CSD_Strategy_Repository::Strategy_Node *
-TAO_CSD_Strategy_Repository::Strategy_Node::find(const ACE_CString &name)
-{
- if (this->poa_name_ == name)
- return this;
- if (this->next_)
- return this->next_->find(name);
- return 0;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-/////////////////////////////////////////////////////////////////////
-
-ACE_FACTORY_DEFINE (TAO_CSD_FW, TAO_CSD_Strategy_Repository)
-ACE_STATIC_SVC_DEFINE (TAO_CSD_Strategy_Repository,
- ACE_TEXT ("TAO_CSD_Strategy_Repository"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (TAO_CSD_Strategy_Repository),
- ACE_Service_Type::DELETE_THIS
- | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Repository.h b/TAO/tao/CSD_Framework/CSD_Strategy_Repository.h
deleted file mode 100644
index 7e50fe5f62f..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Repository.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_Strategy_Repository.h
- *
- * $Id$
- *
- * @author Yan Dai <dai_y@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_STRATEGY_FACTORY_H
-#define TAO_CSD_STRATEGY_FACTORY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_Framework/CSD_FW_Export.h"
-#include "tao/CSD_Framework/CSD_FrameworkC.h"
-#include "ace/Service_Object.h"
-#include "ace/Service_Config.h"
-#include "ace/Synch.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_CSD_Strategy_Factory
- *
- * @brief An ACE_Service_Object capable of creating TP_Strategy objects.
- *
- * TBD - Explain in more detail.
- *
- */
-class TAO_CSD_FW_Export TAO_CSD_Strategy_Repository : public ACE_Service_Object
-{
-public:
-
- /// Constructor.
- TAO_CSD_Strategy_Repository();
-
- /// Virtual Destructor.
- virtual ~TAO_CSD_Strategy_Repository();
-
- int init (int argc, ACE_TCHAR ** argv);
-
- /// Factory method used to create a CSD_Strategy object.
- CSD_Framework::Strategy_ptr find (const ACE_CString& poa_name);
-
- int add_strategy (const ACE_CString& poa_name,
- CSD_Framework::Strategy_ptr strategy);
-
-private:
- struct Strategy_Node {
- Strategy_Node(const ACE_CString& poa_name,
- CSD_Framework::Strategy_ptr strategy);
- ~Strategy_Node();
- void add_node (Strategy_Node *);
- Strategy_Node *find(const ACE_CString& name);
-
- ACE_CString poa_name_;
- CSD_Framework::Strategy_var strategy_;
- Strategy_Node * next_;
- };
- Strategy_Node * strategy_list_head_;
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_CSD_FW, TAO_CSD_Strategy_Repository)
-ACE_FACTORY_DECLARE (TAO_CSD_FW, TAO_CSD_Strategy_Repository)
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_STRATEGY_FACTORY_H */
diff --git a/TAO/tao/CSD_Framework/TAO_CSD_Framework.pc.in b/TAO/tao/CSD_Framework/TAO_CSD_Framework.pc.in
deleted file mode 100644
index bef4a93f175..00000000000
--- a/TAO/tao/CSD_Framework/TAO_CSD_Framework.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_CSD_Framework
-Description: TAO CSD Framework Library
-Requires: TAO_PortableServer, TAO_PI, TAO
-Version: @VERSION@
-Libs: -L${libdir} -lTAO
-Cflags: -I${includedir}
diff --git a/TAO/tao/CSD_Framework/diffs/CSD_Framework.diff b/TAO/tao/CSD_Framework/diffs/CSD_Framework.diff
deleted file mode 100644
index bfbc5679c5c..00000000000
--- a/TAO/tao/CSD_Framework/diffs/CSD_Framework.diff
+++ /dev/null
@@ -1,84 +0,0 @@
---- orig/CSD_FrameworkC.h 2005-10-20 11:20:03.234375000 -0700
-+++ CSD_FrameworkC.h 2005-10-20 11:26:07.578125000 -0700
-@@ -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:
-@@ -47,7 +47,7 @@
- #include "tao/Object.h"
- #include "tao/Objref_VarOut_T.h"
-
--#include "tao/PortableServer/PortableServerC.h"
-+#include "tao/PortableServer/PortableServer.h"
-
- #if defined (TAO_EXPORT_MACRO)
- #undef TAO_EXPORT_MACRO
-@@ -305,13 +305,6 @@
- #endif /* end #if !defined */
- }
-
--// TAO_IDL - Generated from
--// .\be\be_codegen.cpp:1040
--
--#if defined (__ACE_INLINE__)
--#include "CSD_FrameworkC.inl"
--#endif /* defined INLINE */
--
- #include /**/ "ace/post.h"
-
- #endif /* ifndef */
---- orig/CSD_FrameworkC.cpp 2005-10-20 11:20:03.234375000 -0700
-+++ CSD_FrameworkC.cpp 2005-10-20 11:22:19.171875000 -0700
-@@ -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:
-@@ -33,9 +33,6 @@
- #include "tao/CDR.h"
- #include "ace/OS_NS_string.h"
-
--#if !defined (__ACE_INLINE__)
--#include "CSD_FrameworkC.inl"
--#endif /* !defined INLINE */
-
- // TAO_IDL - Generated from
- // .\be\be_visitor_arg_traits.cpp:70
---- orig/CSD_FrameworkA.h 2005-10-20 11:20:03.250000000 -0700
-+++ CSD_FrameworkA.h 2005-10-20 11:26:42.359375000 -0700
-@@ -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:
-@@ -34,8 +34,8 @@
- #include /**/ "ace/pre.h"
-
- #include "CSD_FW_Export.h"
--#include "tao/orig/CSD_FrameworkC.h"
--#include "tao/PortableServer/PortableServerA.h"
-+#include "CSD_FrameworkC.h"
-+//#include "tao/PortableServer/PortableServerA.h"
-
-
- // TAO_IDL - Generated from
---- orig/CSD_FrameworkA.cpp 2005-10-20 11:20:03.234375000 -0700
-+++ CSD_FrameworkA.cpp 2005-10-20 11:23:07.562500000 -0700
-@@ -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:
diff --git a/TAO/tao/CSD_ThreadPool.mpc b/TAO/tao/CSD_ThreadPool.mpc
deleted file mode 100644
index 67be4b9bf00..00000000000
--- a/TAO/tao/CSD_ThreadPool.mpc
+++ /dev/null
@@ -1,38 +0,0 @@
-//$Id$
-project : csd_framework, core {
- sharedname = TAO_CSD_ThreadPool
- dynamicflags = TAO_CSD_TP_BUILD_DLL
- includes += $(TAO_ROOT)/tao
-
- Source_Files {
- CSD_ThreadPool
- }
-
- Header_Files {
- CSD_ThreadPool
- }
-
- Inline_Files {
- CSD_ThreadPool
- }
-
- Template_Files {
- CSD_ThreadPool
- }
-
- Resource_Files {
- CSD_ThreadPool
- }
-
- IDL_Files {
- CSD_ThreadPool
- }
-
- PIDL_Files {
- CSD_ThreadPool
- }
-
- Pkgconfig_Files {
- CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in
- }
-}
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp
deleted file mode 100644
index 35b6b316012..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-
-ACE_RCSID (CSD_TP,
- Cancel_Visitor,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl"
-#endif /* ! __ACE_INLINE__ */
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Cancel_Visitor::~TP_Cancel_Visitor()
-{
-}
-
-
-bool
-TAO::CSD::TP_Cancel_Visitor::visit_request(TP_Request* request,
- bool& remove_flag)
-{
- // If our servant_ data member is in the 'nil' state, then
- // we are supposed to cancel *ALL* requests that we visit.
- //
- // Otherwise, if our servant_ data member is not in the 'nil' state,
- // we are supposed to cancel only requests that target our specific
- // servant_.
-
- if ((this->servant_.in() == 0) || (request->is_target(this->servant_.in())))
- {
- // Set the remove_flag to true so that this request is removed
- // (and released) from the queue when we finish our visit.
- remove_flag = true;
-
- // Cancel the request
- request->cancel();
- }
-
- // Since we are either cancelling requests to any servant or a
- // specific servant, always continue visitation.
- return true;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h
deleted file mode 100644
index d9b2472e507..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Cancel_Visitor.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_CANCEL_VISITOR_H
-#define TAO_CSD_TP_CANCEL_VISITOR_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-#include "tao/PortableServer/Servant_Base.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
- /**
- * @class TP_Cancel_Visitor
- *
- * @brief Used to extract/cancel request(s) from the queue.
- *
- * This visitor is used to cancel certain requests in the queue
- * as they are visited.
- *
- * Note that this is currently implemented to cancel *all*
- * requests in the queue, or requests that are targeted for a specific
- * servant. This could be extended in the future to perhaps
- * cancel all requests that have the same operation name, or something
- * else.
- *
- */
- class TAO_CSD_TP_Export TP_Cancel_Visitor : public TP_Queue_Visitor
- {
- public:
-
- /// Default Constructor - cancel *all* requests.
- TP_Cancel_Visitor();
-
- /// Constructor with provided servant - cancel requests that
- /// target the supplied servant.
- TP_Cancel_Visitor(PortableServer::Servant servant);
-
- /// Virtual Destructor.
- virtual ~TP_Cancel_Visitor();
-
- /// Returns true to continue visitation. Returns false to stop
- /// visitation. Sets the remove_flag to true if the request should
- /// be removed from the queue as a result of the visit. Leaves the
- /// remove_flag alone otherwise.
- virtual bool visit_request(TP_Request* request, bool& remove_flag);
-
- private:
-
- /// Left as nil if we are to cancel all requests, or set to a specific
- /// servant if only requests targeting that servant should be cancelled.
- PortableServer::ServantBase_var servant_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_DISPATCHABLE_VISITOR_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl
deleted file mode 100644
index e1602e2dde3..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl
+++ /dev/null
@@ -1,32 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Cancel_Visitor::TP_Cancel_Visitor()
-{
-}
-
-
-ACE_INLINE
-TAO::CSD::TP_Cancel_Visitor::TP_Cancel_Visitor(PortableServer::Servant servant)
- : servant_(servant)
-{
- // This try-catch block is not really necessary for current implementation
- // since the _add_ref does not throw exception, but we have to add it to
- // satisfy the non-exception builds. If _add_ref really throws an exception
- // then this constructor needs deal with the exception.
- ACE_TRY_NEW_ENV
- {
- this->servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp
deleted file mode 100644
index 0e4c596f682..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Collocated_Asynch_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Collocated_Asynch_Request::~TP_Collocated_Asynch_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Collocated_Asynch_Request::prepare_for_queue_i()
-{
- this->do_clone();
-}
-
-
-void
-TAO::CSD::TP_Collocated_Asynch_Request::dispatch_i()
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->do_dispatch(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_CATCHALL
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#endif
- ACE_ENDTRY;
-}
-
-void
-TAO::CSD::TP_Collocated_Asynch_Request::cancel_i()
-{
- this->do_cancel();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h
deleted file mode 100644
index 6cfa149f73a..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Collocated_Asynch_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_COLLOCATED_ASYNCH_REQUEST_H
-#define TAO_CSD_TP_COLLOCATED_ASYNCH_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Collocated_Asynch_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Collocated_Asynch_Request>
- TP_Collocated_Asynch_Request_Handle;
-
- /**
- * @class TP_Collocated_Asynch_Request
- *
- * @brief Represents a "queue-able", collocated, asynchronous,
- * CORBA request.
- *
- * This kind request is one-way collocated request with the default
- * SYNC_SCOPE policy (SYNC_WITH_TRANSPORT) applied. It is cloned
- * before enqueuing and the "enqueuing" thread never blocks.
- */
- class TAO_CSD_TP_Export TP_Collocated_Asynch_Request
- : public TP_Corba_Request
- {
- public:
-
- /// Constructor.
- TP_Collocated_Asynch_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state);
-
- /// Virtual Destructor.
- virtual ~TP_Collocated_Asynch_Request();
-
-
- protected:
-
- /// Prepare this TP_Collocated_Asynch_Request object to be placed
- /// into the request queue. This will cause the underlying
- /// TAO_ServerRequest object to be cloned.
- virtual void prepare_for_queue_i();
-
- /// Dispatch the request to the servant.
- virtual void dispatch_i();
-
- /// Cancel the request.
- virtual void cancel_i();
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_COLLOCATED_ASYNCH_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl
deleted file mode 100644
index d44f0bc56dd..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl
+++ /dev/null
@@ -1,24 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Collocated_Asynch_Request::TP_Collocated_Asynch_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state)
- : TP_Corba_Request(object_id,
- poa,
- operation,
- servant,
- servant_state,
- server_request)
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp
deleted file mode 100644
index 31c6c32e1a7..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Collocated_Synch_Request,
- "$Id$")
-
-#include "tao/ORB_Core.h"
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Collocated_Synch_Request::~TP_Collocated_Synch_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Collocated_Synch_Request::dispatch_i()
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->do_dispatch(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // We need to save off a copy of the exception.
- this->exception_ = ACE_ANY_EXCEPTION._tao_duplicate();
- }
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_CATCHALL
- {
- this->exception_
- = new CORBA::UNKNOWN (CORBA::SystemException::_tao_minor_code
- (TAO_UNHANDLED_SERVER_CXX_EXCEPTION, 0),
- CORBA::COMPLETED_MAYBE);
- }
-#endif
- ACE_ENDTRY;
-
- this->synch_helper_.dispatched();
-}
-
-void
-TAO::CSD::TP_Collocated_Synch_Request::cancel_i()
-{
- this->synch_helper_.cancelled();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h
deleted file mode 100644
index cad5fa52bd5..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h
+++ /dev/null
@@ -1,109 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Collocated_Synch_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_COLLOCATED_SYNCH_REQUEST_H
-#define TAO_CSD_TP_COLLOCATED_SYNCH_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h"
-#include "tao/Exception.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Collocated_Synch_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Collocated_Synch_Request>
- TP_Collocated_Synch_Request_Handle;
-
- /**
- * @class TP_Collocated_Synch_Request
- *
- * @brief Represents a "queue-able", synchronous, collocated,
- * CORBA request.
- *
- * This kind request is the two-way or oneway(with SYNC_WITH_TARGET
- * policy applied) collocated request. It is NOT cloned before
- * enqueuing and the "enqueuing" thread will block until the request
- * is dispatched/handled or cancelled.
- */
- class TAO_CSD_TP_Export TP_Collocated_Synch_Request
- : public TP_Corba_Request
- {
- public:
-
- /// Constructor.
- TP_Collocated_Synch_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state);
-
- /// Virtual Destructor.
- virtual ~TP_Collocated_Synch_Request();
-
- /// Wait until the request has been dispatched (and completed), or
- /// until it has been cancelled.
- /// Returns true if the request has been dispatched, and returns
- /// false if the request has been cancelled.
- bool wait(ACE_ENV_SINGLE_ARG_DECL);
-
-
- protected:
-
- /// Note that we do not override our base class implementation of
- /// prepare_for_queue_i() (which does nothing), because we don't
- /// need to clone the Server Request object.
-
- /// Dispatch the request to the servant.
- virtual void dispatch_i();
-
- /// Cancel the request.
- virtual void cancel_i();
-
-
- private:
-
- /// Helper used to block and unblock the thread that invokes our
- /// wait() method.
- TP_Synch_Helper synch_helper_;
-
- /// Set to NULL initially, and will only be set thereafter if an
- /// exception is raised from the dispatch() call on the server_request_.
- CORBA::Exception* exception_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_COLLOCATED_SYNCH_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl
deleted file mode 100644
index c92dfe4719f..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl
+++ /dev/null
@@ -1,59 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "ace/Auto_Ptr.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Collocated_Synch_Request::TP_Collocated_Synch_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state)
- : TP_Corba_Request(object_id,
- poa,
- operation,
- servant,
- servant_state,
- server_request),
- exception_(0)
-{
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Collocated_Synch_Request::wait(ACE_ENV_SINGLE_ARG_DECL)
-{
- bool dispatched = this->synch_helper_.wait_while_pending();
-
- if (dispatched)
- {
- // Check to see if the dispatching caused an exception to be raised.
- if (this->exception_ != 0)
- {
- // An exception was raised during the actual dispatching to
- // the servant. We need to raise the exception to our caller,
- // which is the thread that made the collocated request in the
- // first place.
- CORBA::Exception* ex = this->exception_;
- this->exception_ = 0;
-
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_Auto_Basic_Ptr<CORBA::Exception> ex_holder(ex);
- ex->_raise ();
-#else
- ACE_TRY_ENV.exception (ex);
-#endif /* ACE_HAS_EXCEPTIONS */
- }
- }
-
- return dispatched;
-
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp
deleted file mode 100644
index 70f43c863c7..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Collocated_Synch_With_Server_Request,
- "$Id$")
-
-#include "tao/Exception.h"
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Collocated_Synch_With_Server_Request::~TP_Collocated_Synch_With_Server_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Collocated_Synch_With_Server_Request::prepare_for_queue_i()
-{
- // NOTE: We *NEED* clone the TAO_ServerRequest for a collocated,
- // one-way SYNC_WITH_SERVER request. This is because the
- // calling thread is signalled just *before* the request is
- // dispatched. It's (very) possible that the calling thread
- // will destroy the underlying TAO_ServerRequest object while
- // the request is dispatching to servant. This is why we make
- // a clone - so that we have our own copy that won't be destroyed
- // while we are using it.
- this->do_clone();
-}
-
-
-void
-TAO::CSD::TP_Collocated_Synch_With_Server_Request::dispatch_i()
-{
- // This is done *before* we do_dispatch().
- this->synch_helper_.dispatched();
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->do_dispatch(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_CATCHALL
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#endif
- ACE_ENDTRY;
-}
-
-void
-TAO::CSD::TP_Collocated_Synch_With_Server_Request::cancel_i()
-{
- this->synch_helper_.cancelled();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h
deleted file mode 100644
index 0b54d87ed06..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Collocated_Synch_With_Server_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_COLLOCATED_SYNCH_WITH_SERVER_REQUEST_H
-#define TAO_CSD_TP_COLLOCATED_SYNCH_WITH_SERVER_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Collocated_Synch_With_Server_Request;
- typedef TAO_Intrusive_Ref_Count_Handle
- <TP_Collocated_Synch_With_Server_Request>
- TP_Collocated_Synch_With_Server_Request_Handle;
-
- /**
- * @class TP_Collocated_Synch_With_Server_Request
- *
- * @brief Represents a "queue-able", one-way, collocated, CORBA
- * request with a "Synch Scope" policy of SYNC_WITH_SERVER.
- *
- * This kind of request is one-way request with the SYNC_WITH_SERVER
- * policy applied. It is cloned before enqueuing and the "enqueuing"
- * thread will block until it is signalled by the TP_Task thread that
- * will happen just before the request is dispatched or the request
- * is cancelled.
- */
- class TAO_CSD_TP_Export TP_Collocated_Synch_With_Server_Request
- : public TP_Corba_Request
- {
- public:
-
- /// Constructor.
- TP_Collocated_Synch_With_Server_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state);
-
- /// Virtual Destructor.
- virtual ~TP_Collocated_Synch_With_Server_Request();
-
- /// Wait until the request has been dispatched (but not completed), or
- /// until it has been cancelled. Note that this will wait until just
- /// *before* the request is dispatched by a worker thread. This is
- /// different than the TP_Collocated_Synch_Request which waits until
- /// just *after* the request is dispatched by a worker thread.
- /// Returns true if the request has been dispatched, and returns
- /// false if the request has been cancelled.
- bool wait(ACE_ENV_SINGLE_ARG_DECL);
-
-
- protected:
-
- /// Prepare this TP_Collocated_Synch_With_Server_Request object to be
- /// placed into the request queue. This will cause the underlying
- /// TAO_ServerRequest object to be cloned.
- virtual void prepare_for_queue_i();
-
- /// Dispatch the request to the servant.
- virtual void dispatch_i();
-
- /// Cancel the request.
- virtual void cancel_i();
-
-
- private:
-
- /// Helper used to block and unblock the thread that invokes our
- /// wait() method.
- TP_Synch_Helper synch_helper_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_COLLOCATED_SYNCH_WITH_SERVER_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl
deleted file mode 100644
index 1ff0407d6fd..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl
+++ /dev/null
@@ -1,32 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Collocated_Synch_With_Server_Request::TP_Collocated_Synch_With_Server_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state)
- : TP_Corba_Request(object_id,
- poa,
- operation,
- servant,
- servant_state,
- server_request)
-{
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Collocated_Synch_With_Server_Request::wait(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-{
- return this->synch_helper_.wait_while_pending();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.cpp
deleted file mode 100644
index ff2aa4709c9..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Corba_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Corba_Request::~TP_Corba_Request()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.h
deleted file mode 100644
index 2e0a6c7996f..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.h
+++ /dev/null
@@ -1,103 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Corba_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_CORBA_REQUEST_H
-#define TAO_CSD_TP_CORBA_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-#include "tao/CSD_Framework/CSD_FW_Server_Request_Wrapper.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "ace/SString.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Corba_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Corba_Request>
- TP_Corba_Request_Handle;
-
- /**
- * @class TP_Corba_Request
- *
- * @brief Base class for "queue-able" CORBA requests.
- *
- * TBD - Add description
- *
- */
- class TAO_CSD_TP_Export TP_Corba_Request : public TP_Request
- {
- public:
-
- /// Virtual Destructor.
- virtual ~TP_Corba_Request();
-
-
- protected:
-
- /// Constructor.
- TP_Corba_Request(const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state,
- TAO_ServerRequest& server_request);
-
- /// Delegate to the FW_Server_Request_Wrapper clone() method.
- void do_clone();
-
- /// Delegate to the FW_Server_Request_Wrapper dispatch() method.
- void do_dispatch(ACE_ENV_SINGLE_ARG_DECL);
-
- /// Delegate to the FW_Server_Request_Wrapper cancel() method.
- void do_cancel();
-
-
- private:
-
- /// The ObjectId for the target servant.
- PortableServer::ObjectId object_id_;
-
- /// The POA.
- PortableServer::POA_var poa_;
-
- /// The name of the IDL operation.
- ACE_CString operation_;
-
- /// The TAO_ServerRequest object wrapper.
- FW_Server_Request_Wrapper server_request_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_CORBA_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl
deleted file mode 100644
index 18d273c34a5..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Corba_Request.inl
+++ /dev/null
@@ -1,45 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Corba_Request::TP_Corba_Request
- (const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state,
- TAO_ServerRequest& server_request)
- : TP_Request(servant,servant_state),
- object_id_(object_id),
- operation_(operation),
- server_request_(server_request)
-{
- this->poa_ = PortableServer::POA::_duplicate(poa);
-}
-
-ACE_INLINE
-void
-TAO::CSD::TP_Corba_Request::do_clone()
-{
- this->server_request_.clone();
-}
-
-ACE_INLINE
-void
-TAO::CSD::TP_Corba_Request::do_dispatch(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->server_request_.dispatch(this->servant() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-ACE_INLINE
-void
-TAO::CSD::TP_Corba_Request::do_cancel()
-{
- this->server_request_.cancel();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp
deleted file mode 100644
index 6765f02eff6..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Custom_Asynch_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Custom_Asynch_Request::~TP_Custom_Asynch_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Custom_Asynch_Request::dispatch_i()
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->execute_op();
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_CATCHALL
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#endif
- ACE_ENDTRY;
-}
-
-void
-TAO::CSD::TP_Custom_Asynch_Request::cancel_i()
-{
- this->cancel_op();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h
deleted file mode 100644
index aed6d8f88f5..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Custom_Asynch_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_CUSTOM_ASYNCH_REQUEST_H
-#define TAO_CSD_TP_CUSTOM_ASYNCH_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Custom_Asynch_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Custom_Asynch_Request>
- TP_Custom_Asynch_Request_Handle;
-
- /**
- * @class TP_Custom_Asynch_Request
- *
- * @brief Base class for "queue-able", Custom (non-CORBA),
- * Synchronous requests.
- *
- * TBD - Add description
- *
- */
- class TAO_CSD_TP_Export TP_Custom_Asynch_Request
- : public TP_Custom_Request
- {
- public:
-
- /// Constructor.
- TP_Custom_Asynch_Request(TP_Custom_Request_Operation* op,
- TP_Servant_State* servant_state);
-
- /// Virtual Destructor.
- virtual ~TP_Custom_Asynch_Request();
-
-
- protected:
-
- /// Dispatch the request to the servant.
- virtual void dispatch_i();
-
- /// Cancel the request.
- virtual void cancel_i();
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_CUSTOM_ASYNCH_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl
deleted file mode 100644
index 4242ce41e5d..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl
+++ /dev/null
@@ -1,15 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Custom_Asynch_Request::TP_Custom_Asynch_Request
- (TP_Custom_Request_Operation* op,
- TP_Servant_State* servant_state)
- : TP_Custom_Request(op,servant_state)
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.cpp
deleted file mode 100644
index fbe24fc0c53..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Custom_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Custom_Request::~TP_Custom_Request()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.h
deleted file mode 100644
index c4c5bcbb0b4..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Custom_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_CUSTOM_REQUEST_H
-#define TAO_CSD_TP_CUSTOM_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-#include "tao/PortableServer/Servant_Base.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Custom_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Custom_Request>
- TP_Custom_Request_Handle;
-
- /**
- * @class TP_Custom_Request
- *
- * @brief Base class for "queue-able" Custom (non-CORBA) requests.
- *
- * TBD - Add description
- *
- */
- class TAO_CSD_TP_Export TP_Custom_Request : public TP_Request
- {
- public:
-
- /// Virtual Destructor.
- virtual ~TP_Custom_Request();
-
-
- protected:
-
- /// Constructor.
- TP_Custom_Request(TP_Custom_Request_Operation* op,
- TP_Servant_State* servant_state);
-
- void execute_op();
- void cancel_op();
-
-
- private:
-
- TP_Custom_Request_Operation_Handle op_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_CUSTOM_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl
deleted file mode 100644
index c63696ab628..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request.inl
+++ /dev/null
@@ -1,48 +0,0 @@
-// -*- C++ -
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Custom_Request::TP_Custom_Request
- (TP_Custom_Request_Operation* op,
- TP_Servant_State* servant_state)
- : TP_Request(op->servant(),servant_state),
- op_(op, false)
-{
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Custom_Request::execute_op()
-{
- this->op_->execute();
-
- // Now drop the reference to the custom operation object.
- // This is necessary so that custom operation objects can be created
- // on the stack for synchronous custom requests. If we do not do this,
- // then there is a race condition which could result in the stack-created
- // custom operation object having a reference count of 2 when it falls
- // out of scope (and destructs). Our op_ data member would be the one
- // that held the other reference, and when our op_ data member destructs,
- // it attempts to perform a _remove_ref() on the underlying operation
- // object - which has already been destructed! Thus, we reset the op_
- // data member here to the 'nil' state - causing the _remove_ref() to
- // be performed now.
- this->op_ = 0;
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Custom_Request::cancel_op()
-{
- this->op_->cancel();
-
- // See comments in the execute_op() method.
- this->op_ = 0;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp
deleted file mode 100644
index e2702b6c5a5..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Custom_Request_Operation,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Custom_Request_Operation::~TP_Custom_Request_Operation()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h
deleted file mode 100644
index e3b85853f9f..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Custom_Request_Operation.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_CUSTOM_REQUEST_OPERATION_H
-#define TAO_CSD_TP_CUSTOM_REQUEST_OPERATION_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Intrusive_Ref_Count_Base_T.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "ace/Synch.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Custom_Request_Operation;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Custom_Request_Operation>
- TP_Custom_Request_Operation_Handle;
-
-
- /**
- * @class TP_Custom_Request_Operation
- *
- * @brief Base class for all custom request operations.
- *
- * @note The caller that creates a new TP_Custom_Request_Operation
- * object needs call _add_ref () on the servant before
- * constructing it and the TP_Custom_Request_Operation object
- * is responsible to decrement the reference count.
- *
- * TBD - Add description
- */
- class TAO_CSD_TP_Export TP_Custom_Request_Operation
- : public TAO_Intrusive_Ref_Count_Base<ACE_SYNCH_MUTEX>
- {
- public:
-
- /// Virtual Destructor.
- virtual ~TP_Custom_Request_Operation();
-
- /// Invoked by a worker thread to perform the operation.
- void execute();
-
- /// Invoked when the request has been cancelled.
- void cancel();
-
- /// Used by the TP_Strategy to obtain the target servant in order
- /// to construct the custom request object. Returns the servant as
- /// an "in" argument (the caller does not get a new 'copy'). This
- /// is useful for chaining.
- PortableServer::Servant servant();
-
-
- protected:
-
- /// Constructor.
- TP_Custom_Request_Operation(PortableServer::Servant servant);
-
- virtual void execute_i() = 0;
- virtual void cancel_i() = 0;
-
-
- private:
-
- PortableServer::ServantBase_var servant_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_CUSTOM_REQUEST_OPERATION_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl
deleted file mode 100644
index 6a05c5df7ee..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl
+++ /dev/null
@@ -1,51 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Custom_Request_Operation::TP_Custom_Request_Operation
- (PortableServer::Servant servant)
-: servant_ (servant)
-{
- // This try-catch block is not really necessary for current implementation
- // since the _add_ref does not throw exception, but we have to add it to
- // satisfy the non-exception builds. If _add_ref really throws an exception
- // then this constructor needs deal with the exception.
- ACE_TRY_NEW_ENV
- {
- this->servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Custom_Request_Operation::execute()
-{
- this->execute_i();
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Custom_Request_Operation::cancel()
-{
- this->cancel_i();
-}
-
-
-ACE_INLINE
-PortableServer::Servant
-TAO::CSD::TP_Custom_Request_Operation::servant()
-{
- return this->servant_.in();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp
deleted file mode 100644
index 287e516d7b4..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Custom_Synch_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Custom_Synch_Request::~TP_Custom_Synch_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Custom_Synch_Request::dispatch_i()
-{
- this->execute_op();
- this->synch_helper_.dispatched();
-}
-
-
-void
-TAO::CSD::TP_Custom_Synch_Request::cancel_i()
-{
- this->cancel_op();
- this->synch_helper_.cancelled();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h
deleted file mode 100644
index 02d66b20597..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Custom_Synch_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_CUSTOM_SYNCH_REQUEST_H
-#define TAO_CSD_TP_CUSTOM_SYNCH_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Custom_Synch_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Custom_Synch_Request>
- TP_Custom_Synch_Request_Handle;
-
- /**
- * @class TP_Custom_Synch_Request
- *
- * @brief Base class for "queue-able", Custom (non-CORBA),
- * Synchronous requests.
- *
- * TBD - Add description
- *
- */
- class TAO_CSD_TP_Export TP_Custom_Synch_Request : public TP_Custom_Request
- {
- public:
-
- /// Constructor.
- TP_Custom_Synch_Request(TP_Custom_Request_Operation* op,
- TP_Servant_State* servant_state);
-
- /// Virtual Destructor.
- virtual ~TP_Custom_Synch_Request();
-
- /// Wait until the request has been executed (and completes), or
- /// until it has been cancelled. Returns true if the request has
- /// been executed/completed, and returns false if the request has
- /// been cancelled.
- bool wait();
-
-
- protected:
-
- /// Dispatch the request to the servant.
- virtual void dispatch_i();
-
- /// Cancel the request.
- virtual void cancel_i();
-
-
- private:
-
- /// Helper used to block and unblock the thread that invokes our
- /// wait() method.
- TP_Synch_Helper synch_helper_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_CUSTOM_SYNCH_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl
deleted file mode 100644
index cec37afcdac..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl
+++ /dev/null
@@ -1,23 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Custom_Synch_Request::TP_Custom_Synch_Request
- (TP_Custom_Request_Operation* op,
- TP_Servant_State* servant_state)
- : TP_Custom_Request(op,servant_state)
-{
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Custom_Synch_Request::wait()
-{
- return this->synch_helper_.wait_while_pending();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp
deleted file mode 100644
index aeb5454c252..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h"
-
-ACE_RCSID (CSD_TP,
- Dispatchable_Visitor,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Dispatchable_Visitor::~TP_Dispatchable_Visitor()
-{
-}
-
-
-bool
-TAO::CSD::TP_Dispatchable_Visitor::visit_request(TP_Request* request,
- bool& remove_flag)
-{
- // Ask the request object if the target servant is "ready" to accept
- // a request being dispatched to it.
- if (request->is_ready())
- {
- // Ok. This request is a "dispatchable" request. It is what we were
- // hoping to find.
-
- // Save a copy of the request in our handle data member.
- request->_add_ref();
- this->request_ = request;
-
- // Make sure that the queue will extract the request from the queue
- // upon our return.
- remove_flag = true;
-
- // Mark the target servant as being "busy".
- request->mark_as_busy();
-
- // Stop the visitation by returning false.
- return false;
- }
-
- // The target servant object of the request isn't ready, so the request
- // is not considered to be a "dispatchable" request.
-
- // Return true to visit the next request in the queue (if there is one).
- return true;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h
deleted file mode 100644
index 01aea59828a..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Dispatchable_Visitor.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_DISPATCHABLE_VISITOR_H
-#define TAO_CSD_TP_DISPATCHABLE_VISITOR_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- /**
- * @class TP_Dispatchable_Visitor
- *
- * @brief Used to extract the first "dispatchable" request from the queue.
- *
- * An instance of this visitor class is used by one of the worker
- * threads to locate the first "dispatchable" request in the queue. If
- * such a request is visited, then this visitor will save a "copy" of
- * the request, indicate that the request should be removed from the
- * queue, and indicate that visitation should stop.
- *
- * An method is provided to retrieve a "copy" of the "dispatchable"
- * request that was saved off during visitation. A nil reference
- * (ie, a NULL pointer) will be returned if no dispatchable request
- * was found.
- *
- */
- class TAO_CSD_TP_Export TP_Dispatchable_Visitor : public TP_Queue_Visitor
- {
- public:
-
- /// Default Constructor.
- TP_Dispatchable_Visitor();
-
- /// Virtual Destructor.
- virtual ~TP_Dispatchable_Visitor();
-
- /// Reset this visitor object in order to re-use it for another
- /// visitation of the request queue. This sets the vistor's "result"
- /// (the TP_Request* data member) to its default value (a nil handle).
- void reset();
-
- /// Returns true to continue visitation. Returns false to stop
- /// visitation. Sets the remove_flag to true if the request should
- /// be removed from the queue as a result of the visit. Leaves the
- /// remove_flag alone otherwise.
- virtual bool visit_request(TP_Request* request, bool& remove_flag);
-
- /// This returns a "copy" of the located request, or 0 if no request
- /// was located.
- TP_Request* request();
-
-
- private:
-
- /// A handle to the located request.
- TP_Request_Handle request_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_DISPATCHABLE_VISITOR_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl
deleted file mode 100644
index c2c16d34e26..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl
+++ /dev/null
@@ -1,31 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Dispatchable_Visitor::TP_Dispatchable_Visitor()
-{
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Dispatchable_Visitor::reset()
-{
- // Set the handle to 0 to have it release any request it may currently
- // be referencing.
- this->request_ = 0;
-}
-
-
-ACE_INLINE
-TAO::CSD::TP_Request*
-TAO::CSD::TP_Dispatchable_Visitor::request()
-{
- TP_Request_Handle handle(this->request_.in(), false);
- return handle._retn();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Export.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Export.h
deleted file mode 100644
index 1eeb556e4f8..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s TAO_CSD_TP
-// ------------------------------
-#ifndef TAO_CSD_TP_EXPORT_H
-#define TAO_CSD_TP_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (TAO_CSD_TP_HAS_DLL)
-# define TAO_CSD_TP_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && TAO_CSD_TP_HAS_DLL */
-
-#if !defined (TAO_CSD_TP_HAS_DLL)
-# define TAO_CSD_TP_HAS_DLL 1
-#endif /* ! TAO_CSD_TP_HAS_DLL */
-
-#if defined (TAO_CSD_TP_HAS_DLL) && (TAO_CSD_TP_HAS_DLL == 1)
-# if defined (TAO_CSD_TP_BUILD_DLL)
-# define TAO_CSD_TP_Export ACE_Proper_Export_Flag
-# define TAO_CSD_TP_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define TAO_CSD_TP_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* TAO_CSD_TP_BUILD_DLL */
-# define TAO_CSD_TP_Export ACE_Proper_Import_Flag
-# define TAO_CSD_TP_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define TAO_CSD_TP_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* TAO_CSD_TP_BUILD_DLL */
-#else /* TAO_CSD_TP_HAS_DLL == 1 */
-# define TAO_CSD_TP_Export
-# define TAO_CSD_TP_SINGLETON_DECLARATION(T)
-# define TAO_CSD_TP_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* TAO_CSD_TP_HAS_DLL == 1 */
-
-// Set TAO_CSD_TP_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (TAO_CSD_TP_NTRACE)
-# if (ACE_NTRACE == 1)
-# define TAO_CSD_TP_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define TAO_CSD_TP_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !TAO_CSD_TP_NTRACE */
-
-#if (TAO_CSD_TP_NTRACE == 1)
-# define TAO_CSD_TP_TRACE(X)
-#else /* (TAO_CSD_TP_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define TAO_CSD_TP_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (TAO_CSD_TP_NTRACE == 1) */
-
-#endif /* TAO_CSD_TP_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.cpp
deleted file mode 100644
index cb7b0ecf8e1..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.cpp
+++ /dev/null
@@ -1,127 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Queue.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Queue,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Queue.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-void
-TAO::CSD::TP_Queue::put(TP_Request* request)
-{
- // The request is passed in as an "in" argument, and we would like to
- // hold on to a "copy" within the queue (the linked list). We will
- // perform an _add_ref() on the request now to make the queue's "copy".
- request->_add_ref();
-
- if (this->tail_ == 0)
- {
- // The tail_ is a NULL pointer only when the queue is empty.
- // Make the request be the only element in the queue.
- this->head_ = this->tail_ = request;
-
- // Make sure the request's prev_ and next_ pointers are set to NULL.
- request->prev_ = request->next_ = 0;
- }
- else
- {
- // There is at least one request already in the queue. "Append" the
- // supplied request object to the end of the queue.
- request->prev_ = this->tail_;
- request->next_ = 0;
- this->tail_->next_ = request;
- this->tail_ = request;
- }
-}
-
-
-void
-TAO::CSD::TP_Queue::accept_visitor(TP_Queue_Visitor& visitor)
-{
- TP_Request* cur = this->head_;
-
- while (cur != 0)
- {
- TP_Request* prev = cur->prev_;
- TP_Request* next = cur->next_;
-
- // Pass the current request to the visitor. Also pass-in a reference
- // to the remove_from_queue flag. The visitor may decide that it
- // wants to keep the current request for itself, and desires that the
- // request be (surgically) removed from the queue. The visitor also
- // gets to decide, via its return value, whether or not visitation
- // should continue (or cease to continue).
- bool remove_from_queue = false;
-
- bool continue_visitation = visitor.visit_request(cur,remove_from_queue);
-
- if (remove_from_queue)
- {
- // Create a local handle to release the current request once
- // the handle falls out of scope. We need to do this because the
- // queue "owns" a "copy" of each request in the queue.
- TP_Request_Handle handle = cur;
-
- if (this->head_ == cur)
- {
- // The current request is at the front (the head_) of the queue.
-
- // Move the head_ to the next request in the queue.
- this->head_ = next;
-
- if (this->head_ == 0)
- {
- // Not only was the current request at the front of the
- // queue - it was the *only* request in the queue.
- // Update the tail_ pointer now that the queue is empty.
- this->tail_ = 0;
- }
- else
- {
- // Set the (new) head_ request's prev_ pointer to be NULL.
- this->head_->prev_ = 0;
- }
- }
- else if (this->tail_ == cur)
- {
- // The current request is not at the front of the queue,
- // but it is at the back of the queue. This implies that
- // the queue currently contains at least two requests -
- // the current request (cur), and the previous request (prev).
- // The point is that we can now assume that the 'prev' pointer
- // is never NULL in this case.
- this->tail_ = prev;
- this->tail_->next_ = 0;
- }
- else
- {
- // The current request is not at the front or at the back.
- // This implies that there are at least three requests in
- // the queue. We can assume that the 'next' and 'prev'
- // pointers are never NULL in this case.
- prev->next_ = next;
- next->prev_ = prev;
- }
- }
-
- if (!continue_visitation)
- {
- // The visitor doesn't want to procede with any further visitation.
- // Break out of the visitation loop now.
- break;
- }
-
- // Move on to the next request in the queue.
- cur = next;
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.h
deleted file mode 100644
index 9912c0e613a..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Queue.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_QUEUE_H
-#define TAO_CSD_TP_QUEUE_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Request;
- class TP_Queue_Visitor;
-
- /**
- * @class TP_Queue
- *
- * @brief Queue of servant requests that need to be dispatched.
- *
- * This is the queue of pending servant requests that is "owned"
- * by a TP_Strategy object. When an ORB thread dispatches
- * a servant request to the strategy object, it will create the
- * appropriate (subclass of) TP_Request object to "wrap"
- * the servant request in a "queue-friendly" wrapper. The ORB thread
- * will then place the TP_Request object on to the queue. Note that
- * this scenario pertains to what are being called "remote requests".
- * There are other scenarios in which other types of requests can
- * get added to this queue.
- *
- * The strategy object will employ a set of worker threads that are
- * responsible for "servicing" the servant requests in the queue.
- *
- * Note: In the future, support will be added to allow the client
- * application inject "custom" TP_Request objects into
- * a TP_Strategy object, causing them to be placed in
- * the queue.
- */
- class TAO_CSD_TP_Export TP_Queue
- {
- public:
-
- /// Default Constructor.
- TP_Queue();
-
- /// Destructor.
- ~TP_Queue();
-
- /// Place a request at the end of the queue.
- void put(TP_Request* request);
-
- /// Returns true if the queue is empty. Returns false otherwise.
- bool is_empty() const;
-
- /// Visitors will visit each request in the queue, from front to back,
- /// and have the ability to stop visiting at any time (ie, before
- /// visiting every request).
- void accept_visitor(TP_Queue_Visitor& visitor);
-
-
- private:
-
- /// The request at the front of the queue.
- TP_Request* head_;
-
- /// The request at the end of the queue.
- TP_Request* tail_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Queue.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_QUEUE_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.inl
deleted file mode 100644
index 9e26d265f10..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue.inl
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Queue::TP_Queue()
- : head_(0),
- tail_(0)
-{
-}
-
-
-ACE_INLINE
-TAO::CSD::TP_Queue::~TP_Queue()
-{
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Queue::is_empty() const
-{
- return (this->head_ == 0);
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp
deleted file mode 100644
index 3ede8818521..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Queue_Visitor,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Queue_Visitor::~TP_Queue_Visitor()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h
deleted file mode 100644
index f86467ae64d..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Queue_Visitor.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_QUEUE_VISITOR_H
-#define TAO_CSD_TP_QUEUE_VISITOR_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Request;
-
-
- /**
- * @class TP_Queue_Visitor
- *
- * @brief Base class for vistors of the elements in the TP_Queue.
- *
- * Provides a way to perform thread-safe iteration over the
- * TP_Request objects contained within a TP_Queue object.
- *
- * This also provides a means to encapsulate each distinct algorithm
- * within a distinct subclass of TP_Queue_Visitor.
- *
- */
- class TAO_CSD_TP_Export TP_Queue_Visitor
- {
- public:
-
- /// Virtual Destructor.
- virtual ~TP_Queue_Visitor();
-
- /// Returns true to continue visitation. Return false to stop
- /// visitation. Sets the remove_flag to true if the request should
- /// be removed from the queue as a result of the visit. Leaves the
- /// remove_flag alone otherwise.
- virtual bool visit_request(TP_Request* request, bool& remove_flag) = 0;
-
-
- protected:
-
- /// Default Constructor.
- TP_Queue_Visitor();
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_QUEUE_VISITOR_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl
deleted file mode 100644
index 36bd9fc5608..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Queue_Visitor.inl
+++ /dev/null
@@ -1,12 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Queue_Visitor::TP_Queue_Visitor()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.cpp
deleted file mode 100644
index 45529af5802..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Remote_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Remote_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Remote_Request::~TP_Remote_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Remote_Request::prepare_for_queue_i()
-{
- this->do_clone();
-}
-
-
-void
-TAO::CSD::TP_Remote_Request::dispatch_i()
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- this->do_dispatch(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#if defined (TAO_HAS_EXCEPTIONS)
- ACE_CATCHALL
- {
- // Eat these. We probably should log these, but since we have already
- // unblocked the requesting thread there is no point in saving it or
- // doing anything with it.
- }
-#endif
- ACE_ENDTRY;
-}
-
-
-void
-TAO::CSD::TP_Remote_Request::cancel_i()
-{
- this->do_cancel();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.h
deleted file mode 100644
index 57303e81e91..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Remote_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_REMOTE_REQUEST_H
-#define TAO_CSD_TP_REMOTE_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Corba_Request.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Remote_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Remote_Request>
- TP_Remote_Request_Handle;
-
- /**
- * @class TP_Remote_Request
- *
- * @brief Represents a "queue-able", remote, CORBA request.
- * Both syncronous and asynchronous remote CORBA requests
- * are represented by the class.
- *
- * TBD - Go over the following comments and clean up.
- *
- * Since this class derives from the TP_Request class, it can be
- * added to a TP_Queue (ie, it is a "queueable" request). It
- * represents a servant request that has been made by a remote
- * CORBA client (as opposed to a collocated CORBA client). The
- * term "CORBA client" is being used here to distinguish CORBA
- * servant requests (those made thru a CORBA object reference), and
- * "Custom" servant requests that can be "dispatched" to the strategy
- * directly by the client application code (ie, not thru a CORBA
- * object reference). Thus, there are "CORBA clients" and
- * "Direct clients".
- *
- * In summary, this class represents a servant request made when a
- * remote client invokes a method on a CORBA object reference.
- *
- */
- class TAO_CSD_TP_Export TP_Remote_Request : public TP_Corba_Request
- {
- public:
-
- /// Constructor.
- TP_Remote_Request(TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state);
-
- /// Virtual Destructor.
- virtual ~TP_Remote_Request();
-
-
- protected:
-
- /// Prepare this TP_Remote_Request object to be placed into the
- /// request queue. This will cause the underlying TAO_ServerRequest
- /// object to be cloned.
- virtual void prepare_for_queue_i();
-
- /// Dispatch the request to the servant.
- virtual void dispatch_i();
-
- /// Cancel the request.
- virtual void cancel_i();
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_REMOTE_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl
deleted file mode 100644
index 14a37aa44a9..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Remote_Request.inl
+++ /dev/null
@@ -1,24 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Remote_Request::TP_Remote_Request
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant,
- TP_Servant_State* servant_state)
- : TP_Corba_Request(object_id,
- poa,
- operation,
- servant,
- servant_state,
- server_request)
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Request.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Request.cpp
deleted file mode 100644
index e1926f93e8b..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Request.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Request,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Request.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Request::~TP_Request()
-{
-}
-
-
-void
-TAO::CSD::TP_Request::prepare_for_queue_i()
-{
- // Default implementation is to do nothing. Subclasses can provide
- // their own implementation if needed.
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Request.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Request.h
deleted file mode 100644
index 104d741d3b9..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Request.h
+++ /dev/null
@@ -1,136 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Request.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_REQUEST_H
-#define TAO_CSD_TP_REQUEST_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Servant_State.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/Intrusive_Ref_Count_Base_T.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Request;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Request> TP_Request_Handle;
-
- class TP_Queue;
-
-
- /**
- * @class TP_Request
- *
- * @brief Base class for "queue-able" requests.
- *
- * This class serves as the abstract base class for all types of
- * "servant requests" that can be inserted into a TP_Queue
- * object.
- */
- class TAO_CSD_TP_Export TP_Request
- : public TAO_Intrusive_Ref_Count_Base<ACE_SYNCH_MUTEX>
- {
- public:
-
- /// Virtual Destructor.
- virtual ~TP_Request();
-
- /// Prepare the request to be placed into the request queue.
- void prepare_for_queue();
-
- /// Invoked to dispatch the request to the servant.
- void dispatch();
-
- /// Invoked to cancel the request.
- void cancel();
-
- /// Is the target servant ready to accept a request?
- bool is_ready() const;
-
- /// Mark the target servant as being busy.
- void mark_as_busy();
-
- /// Mark the target servant as being ready (ie, not busy).
- void mark_as_ready();
-
- /// This method returns true if this request targets the supplied
- /// servant object.
- bool is_target(PortableServer::Servant servant);
-
-
- protected:
-
- /// Constructor.
- TP_Request(PortableServer::Servant servant,
- TP_Servant_State* servant_state);
-
- /// Accessor for the servant. Does not return a new (ref counted)
- /// reference! This is used for chaining.
- PortableServer::Servant servant();
-
- /// The subclass knows if it needs to do anything in preparation
- /// of being placed into the request queue. The default implementation
- /// does nothing, so only subclasses that have something to do
- /// need to provide their own implementation.
- virtual void prepare_for_queue_i();
-
- /// The subclass knows how to carry out its own way of dispatching
- /// the request to the servant.
- virtual void dispatch_i() = 0;
-
- /// Ask the subclass to perform its duties to carry out the cancellation.
- virtual void cancel_i() = 0;
-
-
- private:
-
- /// The TP_Queue class is our friend since it needs access to
- /// the prev_ and next_ (private) data members.
- friend class TP_Queue;
-
- /// The previous TP_Request object (in the queue).
- TP_Request* prev_;
-
- /// The next TP_Request object (in the queue).
- TP_Request* next_;
-
- /// Reference to the servant object.
- PortableServer::ServantBase_var servant_;
-
- /// Reference to the servant "state" object (contains the busy flag).
- TP_Servant_State::HandleType servant_state_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Request.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_REQUEST_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Request.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Request.inl
deleted file mode 100644
index 341a449091e..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Request.inl
+++ /dev/null
@@ -1,111 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Request::TP_Request(PortableServer::Servant servant,
- TP_Servant_State* servant_state)
- : prev_(0),
- next_(0),
- servant_ (servant),
- servant_state_(servant_state, false)
-{
- // This try-catch block is not really necessary for current implementation
- // since the _add_ref does not throw exception, but we have to add it to
- // satisfy the non-exception builds. If _add_ref really throws an exception
- // then this constructor needs deal with the exception.
- ACE_TRY_NEW_ENV
- {
- this->servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Request::prepare_for_queue()
-{
- this->prepare_for_queue_i();
-}
-
-
-ACE_INLINE
-PortableServer::Servant
-TAO::CSD::TP_Request::servant()
-{
- // Used for chaining so we do not return a new "copy".
- return this->servant_.in();
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Request::is_ready() const
-{
- if (this->servant_state_.is_nil())
- {
- // This means that the serialization of servants is off.
- // We always answer true here to indicate that the servant is
- // never busy.
- return true;
- }
-
- return !this->servant_state_->busy_flag();
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Request::mark_as_busy()
-{
- if (!this->servant_state_.is_nil())
- {
- this->servant_state_->busy_flag(true);
- }
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Request::mark_as_ready()
-{
- if (!this->servant_state_.is_nil())
- {
- this->servant_state_->busy_flag(false);
- }
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Request::is_target(PortableServer::Servant servant)
-{
- // Compare pointers. Return true only if these are the exact same object.
- return (servant == this->servant_.in());
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Request::dispatch()
-{
- this->dispatch_i();
-
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Request::cancel()
-{
- this->cancel_i();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.cpp
deleted file mode 100644
index 28fbc8da7ba..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Servant_State.h"
-
-ACE_RCSID (CSD_TP,
- Servant_State,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Servant_State.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Servant_State::~TP_Servant_State()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.h
deleted file mode 100644
index dbfebedb64c..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Servant_State.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_SERVANT_STATE_H
-#define TAO_CSD_TP_SERVANT_STATE_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Intrusive_Ref_Count_Base_T.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-#include "ace/Synch.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- /**
- * @class TP_Servant_State
- *
- * @brief Maintains state information for a particular servant.
- *
- * This TP_Servant_State class is an intrusively reference-counted
- * class. This allows it to be held in a "smart pointer" (aka, handle)
- * object that will manage the reference-counting automagically.
- *
- * One TP_Servant_State object is created for each servant object for
- * which a request is to be dispatched. The servant state objects are
- * held (via smart pointers) in a TP_Servant_State_Map object. In turn,
- * the TP_Servant_State_Map object is a data member of the TP_Stategy
- * class. Each request placed on to the request queue will hold a
- * reference (via a smart pointer) to the servant state object.
- *
- * Currently, the only "state" info held in this TP_Servant_State class
- * is the servant's busy flag.
- *
- */
- class TAO_CSD_TP_Export TP_Servant_State
- : public TAO_Intrusive_Ref_Count_Base<ACE_SYNCH_MUTEX>
- {
- public:
-
- /// Handle Type (aka, Smart Pointer Type).
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Servant_State> HandleType;
-
- /// Default Constructor.
- TP_Servant_State();
-
- /// Virtual Destructor.
- virtual ~TP_Servant_State();
-
- /// Accessor for the servant busy flag.
- bool busy_flag() const;
-
- /// Mutator for the servant busy flag.
- void busy_flag(bool new_value);
-
- private:
-
- /// The servant's current "busy" state (true == busy, false == not busy)
- bool busy_flag_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Servant_State.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_SERVANT_STATE_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.inl
deleted file mode 100644
index 5ef996bcb6e..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State.inl
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Servant_State::TP_Servant_State()
- : busy_flag_(false)
-{
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Servant_State::busy_flag() const
-{
- return this->busy_flag_;
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Servant_State::busy_flag(bool new_value)
-{
- this->busy_flag_ = new_value;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.cpp
deleted file mode 100644
index 846f3a6e723..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h"
-
-ACE_RCSID (CSD_TP,
- Servant_State_Map,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl"
-#endif /* ! __ACE_INLINE__ */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h
deleted file mode 100644
index e6726098b72..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h
+++ /dev/null
@@ -1,95 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Servant_State_Map.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_SERVANT_STATE_MAP_H
-#define TAO_CSD_TP_SERVANT_STATE_MAP_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_ThreadPool/CSD_TP_Servant_State.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "ace/Hash_Map_Manager.h"
-#include "ace/Synch.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- /**
- * @class TP_Servant_State_Map
- *
- * @brief Map of Servant_State objects - one per servant.
- *
- * A TP_Stategy object holds an instance of a TP_Servant_State_Map object
- * as a (held-by-value) data member. The strategy uses this map to
- * find or create the TP_Servant_State object for a particular servant
- * object.
- *
- */
- class TAO_CSD_TP_Export TP_Servant_State_Map
- {
- public:
-
- /// Default Constructor.
- TP_Servant_State_Map();
-
- /// Destructor.
- ~TP_Servant_State_Map();
-
- /// Accessor for the servant busy flag.
- TP_Servant_State* find(PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- /// Insert the servant to map.
- void insert(PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- /// Remove the servant from map.
- void remove(PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
-
- private:
-
- /// Underlying Map Type - Hash-Based -
- /// Key Type: void*, Value Type: TP_Servant_State::HandleType
- typedef ACE_Hash_Map_Manager_Ex<void*,
- TP_Servant_State::HandleType,
- ACE_Hash<void*>,
- ACE_Equal_To<void*>,
- ACE_SYNCH_MUTEX> MapType;
-
- /// The underlying map of servant state objects.
- MapType map_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_SERVANT_STATE_MAP_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl
deleted file mode 100644
index 1faeb7ad536..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.inl
+++ /dev/null
@@ -1,70 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Servant_State_Map::TP_Servant_State_Map()
-{
-}
-
-
-ACE_INLINE
-TAO::CSD::TP_Servant_State_Map::~TP_Servant_State_Map()
-{
-}
-
-
-ACE_INLINE
-TAO::CSD::TP_Servant_State*
-TAO::CSD::TP_Servant_State_Map::find(PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- void* key = servant;
-
- TP_Servant_State::HandleType value;
-
- if (this->map_.find(key, value) != 0)
- {
- ACE_THROW_RETURN (PortableServer::POA::ServantNotActive (), 0);
- }
-
- return value._retn();
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Servant_State_Map::insert(PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- void* key = servant;
-
- TP_Servant_State::HandleType value = new TP_Servant_State ();
-
- int result = this->map_.bind(key, value);
-
- if (result == 1)
- {
- ACE_THROW (PortableServer::POA::ServantAlreadyActive ());
- }
-
- ACE_ASSERT (result == 0);
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Servant_State_Map::remove(PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- void* key = servant;
-
- if (this->map_.unbind(key) == -1)
- {
- ACE_THROW (PortableServer::POA::ServantNotActive ());
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.cpp
deleted file mode 100644
index 1a9c86ec8da..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.cpp
+++ /dev/null
@@ -1,289 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Remote_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h"
-#include "ace/Trace.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Strategy,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Strategy.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Strategy::~TP_Strategy()
-{
-}
-
-
-
-TAO::CSD::TP_Strategy::CustomRequestOutcome
-TAO::CSD::TP_Strategy::custom_synch_request(TP_Custom_Request_Operation* op
- ACE_ENV_ARG_DECL)
-{
- TP_Servant_State::HandleType servant_state =
- this->get_servant_state(op->servant()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (REQUEST_REJECTED);
-
- TP_Custom_Synch_Request_Handle request = new
- TP_Custom_Synch_Request(op, servant_state.in());
-
- if (!this->task_.add_request(request.in()))
- {
- // The request was rejected by the task.
- return REQUEST_REJECTED;
- }
-
- // Now we wait until the request is handled (executed or cancelled).
- return (request->wait()) ? REQUEST_EXECUTED : REQUEST_CANCELLED;
-}
-
-
-TAO::CSD::TP_Strategy::CustomRequestOutcome
-TAO::CSD::TP_Strategy::custom_asynch_request(TP_Custom_Request_Operation* op
- ACE_ENV_ARG_DECL)
-{
- TP_Servant_State::HandleType servant_state =
- this->get_servant_state(op->servant()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (REQUEST_REJECTED);
-
- TP_Custom_Asynch_Request_Handle request = new
- TP_Custom_Asynch_Request(op, servant_state.in());
-
- return (this->task_.add_request(request.in()))
- ? REQUEST_DISPATCHED : REQUEST_REJECTED;
-}
-
-
-bool
-TAO::CSD::TP_Strategy::poa_activated_event_i()
-{
- // Activates the worker threads, and waits until all have been started.
- return (this->task_.open(&(this->num_threads_)) == 0);
-}
-
-
-void
-TAO::CSD::TP_Strategy::poa_deactivated_event_i()
-{
- // Passing in a value of 1 means that we want to shutdown the task, which
- // equates to causing all worker threads to shutdown. The worker threads
- // themselves will also invoke the close() method, but the passed-in value
- // will be 0. So, a 1 means "shutdown", and a 0 means "a single worker
- // thread is going away".
- this->task_.close(1);
-}
-
-
-TAO::CSD::Strategy_Base::DispatchResult
-TAO::CSD::TP_Strategy::dispatch_remote_request_i
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- TP_Servant_State::HandleType servant_state =
- this->get_servant_state(servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (DISPATCH_REJECTED);
-
- // Now we can create the TP_Remote_Request object, and then add it to our
- // task_'s "request queue".
- //
- // TBD-CSD: Need to use a Cached Allocator to "create" the
- // TP_Remote_Request objects. For now, use the heap.
- TP_Remote_Request_Handle request =
- new TP_Remote_Request(server_request,
- object_id,
- poa,
- operation,
- servant,
- servant_state.in());
-
- // Hand the request object to our task so that it can add the request
- // to its "request queue".
- if (!this->task_.add_request(request.in()))
- {
- // Return the DISPATCH_REJECTED return code so that the caller (our
- // base class' dispatch_request() method) knows that we did
- // not handle the request, and that it should be rejected.
- return TAO::CSD::Strategy_Base::DISPATCH_REJECTED;
- }
-
- return TAO::CSD::Strategy_Base::DISPATCH_HANDLED;
-}
-
-
-TAO::CSD::Strategy_Base::DispatchResult
-TAO::CSD::TP_Strategy::dispatch_collocated_request_i
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- TP_Servant_State::HandleType servant_state =
- this->get_servant_state(servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (DISPATCH_REJECTED);
-
- bool is_sync_with_server = server_request.sync_with_server();
- bool is_synchronous = server_request.response_expected();
-
- TP_Collocated_Synch_Request_Handle synch_request;
- TP_Collocated_Synch_With_Server_Request_Handle synch_with_server_request;
- TP_Request_Handle request;
-
- // Create the request object using the appropriate concrete type.
- if (is_sync_with_server)
- {
- synch_with_server_request =
- new TP_Collocated_Synch_With_Server_Request
- (server_request,
- object_id,
- poa,
- operation,
- servant,
- servant_state.in());
-
- // Give the request handle its own "copy".
- synch_with_server_request->_add_ref();
- request = synch_with_server_request.in();
- }
- else if (is_synchronous)
- {
- synch_request = new TP_Collocated_Synch_Request(server_request,
- object_id,
- poa,
- operation,
- servant,
- servant_state.in());
-
- // Give the request handle its own "copy".
- synch_request->_add_ref();
- request = synch_request.in();
- }
- else
- {
- // Just use the (base) request handle to hold the request object.
- request = new TP_Collocated_Asynch_Request(server_request,
- object_id,
- poa,
- operation,
- servant,
- servant_state.in());
- }
-
- // Hand the request object to our task so that it can add the request
- // to its "request queue".
- if (!this->task_.add_request(request.in()))
- {
- // Return the DISPATCH_REJECTED return code so that the caller (our
- // base class' dispatch_request() method) knows that we did
- // not handle the request, and that it should be rejected.
- return DISPATCH_REJECTED;
- }
-
- // We need to wait on the request object if the request type is a
- // synchronous request.
- if (!synch_request.is_nil())
- {
- int srw = synch_request->wait(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (DISPATCH_REJECTED);
- if (srw == false)
- {
- // Raise exception when request was cancelled.
- ACE_THROW_RETURN(CORBA::NO_IMPLEMENT(), DISPATCH_REJECTED);
- }
- }
- else if (!synch_with_server_request.is_nil())
- {
- bool swsr = synch_with_server_request->wait(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (DISPATCH_REJECTED);
- if (swsr == false)
- {
- // Raise exception when request was cancelled.
- ACE_THROW_RETURN(CORBA::NO_IMPLEMENT(), DISPATCH_REJECTED);
- }
- }
-
- return DISPATCH_HANDLED;
-}
-
-
-void
-TAO::CSD::TP_Strategy::servant_activated_event_i
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- ACE_UNUSED_ARG(oid);
-
- if (this->serialize_servants_)
- {
- // Add the servant to the servant state map.
- this->servant_state_map_.insert(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-void
-TAO::CSD::TP_Strategy::servant_deactivated_event_i
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- ACE_UNUSED_ARG(oid);
-
- // Cancel all requests stuck in the queue for the specified servant.
- this->task_.cancel_servant(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->serialize_servants_)
- {
- // Remove the servant from the servant state map.
- this->servant_state_map_.remove(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-void
-TAO::CSD::TP_Strategy::cancel_requests(PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- // Cancel all requests stuck in the queue for the specified servant.
- this->task_.cancel_servant(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-TAO::CSD::TP_Servant_State::HandleType
-TAO::CSD::TP_Strategy::get_servant_state(PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- TP_Servant_State::HandleType servant_state;
-
- if (this->serialize_servants_)
- {
- servant_state = this->servant_state_map_.find(servant
- ACE_ENV_ARG_PARAMETER);
- }
-
- return servant_state;
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.h
deleted file mode 100644
index 2e069caeb6d..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.h
+++ /dev/null
@@ -1,210 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Strategy.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_STRATEGY_H
-#define TAO_CSD_TP_STRATEGY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Task.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Servant_State_Map.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/CSD_Framework/CSD_Strategy_Base.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- class TP_Strategy;
- typedef TAO_Intrusive_Ref_Count_Handle<TP_Strategy> TP_Strategy_Handle;
-
- class TP_Custom_Request_Operation;
-
- /**
- * @class TP_Strategy
- *
- * @brief A simple custom Thread-Pool servant dispatching strategy class.
- *
- * This class represents a concrete implementation of a "Custom
- * Servant Dispatching Strategy". This implementation is being called
- * the "Thread Pool Strategy" reference implementation.
- *
- * A custom servant dispatching strategy object can be applied to a
- * POA object in order to carry out the servant dispatching duties
- * for that POA.
- *
- */
- class TAO_CSD_TP_Export TP_Strategy
- : public Strategy_Base
- {
- public:
-
- /// Constructor.
- TP_Strategy(Thread_Counter num_threads = 1,
- bool serialize_servants = true);
-
- /// Virtual Destructor.
- virtual ~TP_Strategy();
-
- /// Set the number of threads in the pool (must be > 0).
- void set_num_threads(Thread_Counter num_threads);
-
- /// Turn on/off serialization of servants.
- void set_servant_serialization(bool serialize_servants);
-
- /// Return codes for the custom dispatch_request() methods.
- enum CustomRequestOutcome
- {
- /// The request was successfully put on the request queue.
- REQUEST_DISPATCHED,
- /// The request has been executed/completed by a worker thread.
- REQUEST_EXECUTED,
- /// The request was removed from the queue and cancelled.
- REQUEST_CANCELLED,
- /// The request queue rejected the request
- REQUEST_REJECTED
- };
-
- /// Inject a synchronous, custom request into the request queue.
- /// This will block the calling thread until the request is handled
- /// (dispatched or cancelled) or rejected.
- /// Will return REQUEST_EXECUTED, REQUEST_CANCELLED, or REQUEST_REJECTED.
- CustomRequestOutcome custom_synch_request
- (TP_Custom_Request_Operation* op
- ACE_ENV_ARG_DECL);
-
- /// Inject an asynchronous, custom request into the request queue.
- /// This will return control to the calling thread once the request
- /// has been placed into the queue (or rejected).
- /// Will return REQUEST_DISPATCHED or REQUEST_REJECTED.
- CustomRequestOutcome custom_asynch_request
- (TP_Custom_Request_Operation* op
- ACE_ENV_ARG_DECL);
-
- /// Cancel all requests that are targeted for the provided servant.
- /// This is requested on the user application level.
- void cancel_requests(PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- protected:
-
- /// Handle the dispatching of a remote request.
- ///
- /// This will cause a new "request" object to be created and pushed
- /// on to a "request queue". The worker threads are responsible for
- /// servicing the queue, and performing the actual dispatch logic.
- virtual Strategy_Base::DispatchResult dispatch_remote_request_i
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- /// Handle the dispatching of a collocated request.
- ///
- /// This will cause a new "request" object to be created and pushed
- /// on to a "request queue". The worker threads are responsible for
- /// servicing the queue, and performing the actual dispatch logic.
- virtual Strategy_Base::DispatchResult dispatch_collocated_request_i
- (TAO_ServerRequest& server_request,
- const PortableServer::ObjectId& object_id,
- PortableServer::POA_ptr poa,
- const char* operation,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- /// Event - The POA has been activated.
- /// This will activate the worker thread(s).
- /// Returns true if the worker threads were activated successfully.
- /// Otherwise, returns false.
- virtual bool poa_activated_event_i();
-
- /// Event - The POA has been deactivated.
- /// This will shutdown the worker thread(s).
- virtual void poa_deactivated_event_i();
-
- /// Event - A servant has been activated
- virtual void servant_activated_event_i
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// Event - A servant has been deactivated
- virtual void servant_deactivated_event_i
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
-
- private:
-
- /**
- * Helper method that is responsible for looking up the servant
- * state object in the servant state map *if* the "serialize
- * servants" flag is set to true. In the case where the
- * "serialize servants" flag is set to false, then a "nil"
- * servant state handle object is returned.
- *
- * @param servant - input - a pointer to the servant object.
- *
- * @returns a handle to a servant state object.
- *
- * @throw PortableServer::POA::ServantNotActive if the servant
- * state cannot be determined.
- */
- TP_Servant_State::HandleType get_servant_state
- (PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
-
- /// This is the active object used by the worker threads.
- /// The request queue is owned/managed by the task object.
- /// The strategy object puts requests into the task's request
- /// queue, and the worker threads service the queued requests
- /// by performing the actual servant request dispatching logic.
- TP_Task task_;
-
- /// The number of worker threads to use for the task.
- Thread_Counter num_threads_;
-
- /// The "serialize servants" flag.
- bool serialize_servants_;
-
- /// The map of servant state objects - only used when the
- /// "serialize servants" flag is set to true.
- TP_Servant_State_Map servant_state_map_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Strategy.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_STRATEGY_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.inl
deleted file mode 100644
index 312484f5c8c..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy.inl
+++ /dev/null
@@ -1,35 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Strategy::TP_Strategy(Thread_Counter num_threads,
- bool serialize_servants)
- : num_threads_(num_threads),
- serialize_servants_(serialize_servants)
-{
- // Assumes that num_threads > 0.
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Strategy::set_num_threads(Thread_Counter num_threads)
-{
- // Simple Mutator. Assumes that num_threads > 0.
- this->num_threads_ = num_threads;
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Strategy::set_servant_serialization(bool serialize_servants)
-{
- // Simple Mutator.
- this->serialize_servants_ = serialize_servants;
-}
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp
deleted file mode 100644
index 71aa9aa9b8c..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp
+++ /dev/null
@@ -1,154 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-#include "tao/CSD_Framework/CSD_Strategy_Repository.h"
-#include "tao/debug.h"
-#include "ace/Dynamic_Service.h"
-#include "ace/OS_NS_strings.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Strategy_Factory,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Strategy_Factory::TP_Strategy_Factory()
-{
-}
-
-
-TAO::CSD::TP_Strategy_Factory::~TP_Strategy_Factory()
-{
-}
-
-
-int
-TAO::CSD::TP_Strategy_Factory::init (int argc,
- ACE_TCHAR* argv[])
-{
- ACE_TRACE ("TAO::CSD::TP_Strategy_Factory::init");
-
- static int initialized = 0;
-
- // Only allow initialization once.
- if (initialized)
- return 0;
-
- initialized = 1;
- TAO_CSD_Strategy_Repository *repo =
- ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance ("TAO_CSD_Strategy_Repository");
-
- if (repo != 0)
- repo->init(0,0);
-
- // Parse any service configurator parameters.
- for (int curarg = 0; curarg < argc; curarg++)
- if (ACE_OS::strcasecmp (argv[curarg],
- ACE_TEXT("-CSDtp")) == 0)
- {
- ACE_CString poa_name;
- unsigned long num_threads = 1;
- bool serialize_servants = true;
-
- curarg++;
- if (curarg < argc)
- {
- // Parse the parameter
- ACE_CString arg ((const char *)argv[curarg]);
- ssize_t pos = arg.find (':');
-
- if (pos == ACE_CString::npos)
- {
- poa_name = arg;
- }
- else
- {
- poa_name = arg.substr (0, pos);
-
- ACE_CString arg_remainder =
- arg.substr (pos + 1, arg.length () - pos);
-
- ACE_CString num_thread_str;
-
- pos = arg_remainder.find (':');
-
- if (pos == ACE_CString::npos)
- {
- num_thread_str = arg_remainder;
- }
- else
- {
- num_thread_str = arg_remainder.substr (0, pos);
-
- ACE_CString off_str =
- arg_remainder.substr (pos + 1, arg.length () - pos);
-
- // Case-insensitive string comparison.
- if (ACE_OS::strcasecmp (off_str.c_str(),
- ACE_TEXT("OFF")) == 0)
- {
- serialize_servants = false;
- }
- }
-
- num_threads = ACE_OS::strtoul (num_thread_str.c_str (), 0, 10);
-
- if (num_threads == 0)
- {
- // Minimum of 1 thread required.
- num_threads = 1;
- }
- }
-
- // Create the ThreadPool strategy for each named poa.
- TP_Strategy* strategy = 0;
- ACE_NEW_RETURN (strategy,
- TP_Strategy (num_threads, serialize_servants),
- -1);
- CSD_Framework::Strategy_var objref = strategy;
-
- TAO_CSD_Strategy_Repository *repo =
- ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance
- ("TAO_CSD_Strategy_Repository");
-
- if (repo == 0)
- {
- TAO_CSD_ThreadPool::init ();
- repo = ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance (
- "TAO_CSD_Strategy_Repository"
- );
- }
-
-
- repo->add_strategy (poa_name, strategy);
- }
- }
- else
- {
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_ERROR,
- ACE_TEXT("CSD_ORB_Loader: Unknown option ")
- ACE_TEXT("<%s>.\n"),
- argv[curarg]));
- }
- }
-
-
- return 0;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE(TAO_CSD_TP,
- TAO_CSD_TP_Strategy_Factory,
- TAO::CSD::TP_Strategy_Factory)
-
-ACE_STATIC_SVC_DEFINE(TAO_CSD_TP_Strategy_Factory,
- ACE_TEXT("TAO_CSD_TP_Strategy_Factory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME(TAO_CSD_TP_Strategy_Factory),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h
deleted file mode 100644
index abc3da5b005..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Strategy_Factory.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_STRATEGY_FACTORY_H
-#define TAO_CSD_TP_STRATEGY_FACTORY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-#include "tao/Versioned_Namespace.h"
-#include "ace/Service_Object.h"
-#include "ace/Service_Config.h"
-
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- /**
- * @class TP_Strategy_Factory
- *
- * @brief An ACE_Service_Object capable of creating TP_Strategy objects.
- *
- * TBD - Explain in more detail.
- *
- */
- class TAO_CSD_TP_Export TP_Strategy_Factory : public ACE_Service_Object
- {
- public:
-
- /// Constructor.
- TP_Strategy_Factory();
-
- /// Virtual Destructor.
- virtual ~TP_Strategy_Factory();
-
- int init (int argc, ACE_TCHAR* argv[]);
- };
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT(TAO_CSD_TP, TAO_CSD_TP_Strategy_Factory)
-ACE_FACTORY_DECLARE(TAO_CSD_TP, TAO_CSD_TP_Strategy_Factory)
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_STRATEGY_FACTORY_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.cpp
deleted file mode 100644
index 79a0a195097..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Synch_Helper,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl"
-#endif /* ! __ACE_INLINE__ */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h
deleted file mode 100644
index 2056f1ab032..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.h
+++ /dev/null
@@ -1,110 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Synch_Helper.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_SYNCH_HELPER_H
-#define TAO_CSD_TP_SYNCH_HELPER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-#include "tao/Condition.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Synch.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
-
- /**
- * @class TP_Synch_Helper
- *
- * @brief Helper class for synchronous requests to block the requesting
- * thread until the appropriate time (when it will be un-blocked).
- *
- * TBD - Description here
- *
- */
- class TAO_CSD_TP_Export TP_Synch_Helper
- {
- public:
-
- /// Constructor. Sets initial state to PENDING.
- TP_Synch_Helper();
-
- /// Destructor.
- ~TP_Synch_Helper();
-
- /// Returns true if the helper state is DISPATCHED, and false if
- /// the helper state is CANCELLED. However, if the helper state
- /// is PENDING, then this method will block the calling thread
- /// until the state changes to something other than PENDING
- /// (ie, DISPATCHED or CANCELLED).
- bool wait_while_pending();
-
- /// Change the state of this helper to DISPATCHED, which will cause
- /// wait_while_pending() to unblock.
- void dispatched();
-
- /// Change the state of this helper to CANCELLED, which will cause
- /// wait_while_pending() to unblock.
- void cancelled();
-
-
- private:
-
- /// Enumeration Type for all possible states of this helper object.
- enum HelperState
- {
- PENDING,
- DISPATCHED,
- CANCELLED
- };
-
- /// Thread lock type
- typedef ACE_SYNCH_MUTEX LockType;
-
- /// Thread guard type
- typedef ACE_Guard<LockType> GuardType;
-
- /// Thread condition type
- typedef TAO_Condition<LockType> ConditionType;
-
- /// Lock used to protect the state and condition.
- LockType lock_;
-
- /// Used to denote the state of the request dispatching.
- HelperState state_;
-
- /// The condition used to block the calling thread until the
- /// state is something other than the PENDING state.
- ConditionType condition_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_SYNCH_HELPER_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl
deleted file mode 100644
index f4c5a1380c1..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Synch_Helper.inl
+++ /dev/null
@@ -1,55 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Synch_Helper::TP_Synch_Helper()
- : state_(PENDING),
- condition_(this->lock_)
-{
-}
-
-
-ACE_INLINE
-TAO::CSD::TP_Synch_Helper::~TP_Synch_Helper()
-{
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::TP_Synch_Helper::wait_while_pending()
-{
- GuardType guard(this->lock_);
-
- while (this->state_ == PENDING)
- {
- this->condition_.wait();
- }
-
- return (this->state_ == DISPATCHED);
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Synch_Helper::dispatched()
-{
- GuardType guard(this->lock_);
- this->state_ = DISPATCHED;
- this->condition_.signal();
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::TP_Synch_Helper::cancelled()
-{
- GuardType guard(this->lock_);
- this->state_ = CANCELLED;
- this->condition_.signal();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Task.cpp b/TAO/tao/CSD_ThreadPool/CSD_TP_Task.cpp
deleted file mode 100644
index adc18ab7c7f..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Task.cpp
+++ /dev/null
@@ -1,313 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_TP_Task.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Request.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Cancel_Visitor.h"
-
-ACE_RCSID (CSD_ThreadPool,
- TP_Task,
- "$Id$")
-
-#if !defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Task.inl"
-#endif /* ! __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::CSD::TP_Task::~TP_Task()
-{
-}
-
-
-bool
-TAO::CSD::TP_Task::add_request(TP_Request* request)
-{
- GuardType guard(this->lock_);
-
- if (!this->accepting_requests_)
- {
- ACE_DEBUG((LM_DEBUG,"(%P|%t) TP_Task::add_request() - "
- "not accepting requests\n"));
- return false;
- }
-
- // We have made the decision that the request is going to be placed upon
- // the queue_. Inform the request that it is about to be placed into
- // a request queue. Some requests may not need to do anything in
- // preparation of being placed into a queue. Others, however, may need
- // to perfom a "clone" operation on some underlying request data before
- // the request can be properly placed into a queue.
- request->prepare_for_queue();
-
- this->queue_.put(request);
-
- this->work_available_.signal();
-
- return true;
-}
-
-
-int
-TAO::CSD::TP_Task::open(void* num_threads_ptr)
-{
- Thread_Counter num = 1;
-
- if (num_threads_ptr != 0)
- {
- Thread_Counter* tmp = static_cast<Thread_Counter*> (num_threads_ptr);
-
- if (tmp == 0)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) TP_Task failed to open. "
- "Invalid argument type passed to open().\n"),
- -1);
- }
-
- num = *tmp;
- }
-
- // We can't activate 0 threads. Make sure this isn't the case.
- if (num < 1)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) TP_Task failed to open. "
- "num_threads (%u) is less-than 1.\n",
- num),
- -1);
- }
-
- // Likewise, we can't activate too many. Make sure this isn't the case.
- if (num > MAX_THREADPOOL_TASK_WORKER_THREADS)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) TP_Task failed to open. "
- "num_threads (%u) is too large. Max is %d.\n",
- num, MAX_THREADPOOL_TASK_WORKER_THREADS),
- -1);
- }
-
- // We need the lock acquired from here on out.
- GuardType guard(this->lock_);
-
- // We can assume that we are in the proper state to handle this open()
- // call as long as we haven't been open()'ed before.
- if (this->opened_)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) TP_Task failed to open. "
- "Task has previously been open()'ed.\n"),
- -1);
- }
-
- // Activate this task object with 'num' worker threads.
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, num) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) TP_Task failed to activate "
- "(%d) worker threads.\n",
- num),
- -1);
- }
-
- // Now we have past the point where we can say we've been open()'ed before.
- this->opened_ = true;
-
- // Now we wait until all of the threads have started.
- while (this->num_threads_ != num)
- {
- this->active_workers_.wait();
- }
-
- // We can now accept requests (via our add_request() method).
- this->accepting_requests_ = true;
-
- return 0;
-}
-
-
-int
-TAO::CSD::TP_Task::svc()
-{
- // Account for this current worker thread having started the
- // execution of this svc() method.
- {
- GuardType guard(this->lock_);
- // Put the thread id into a collection which is used to check whether
- // the orb shutdown is called by one of the threads in the pool.
- ACE_thread_t thr_id = ACE_OS::thr_self ();
- if (this->activated_threads_.set(thr_id, this->num_threads_) == -1)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- ACE_TEXT("(%P|%t)TP_Task::svc: number of threads is out of range \n")),
- 0);
- }
- ++this->num_threads_;
- this->active_workers_.signal();
- }
-
- // This visitor object will be re-used over and over again as part of
- // the "GetWork" logic below.
- TP_Dispatchable_Visitor dispatchable_visitor;
-
- // Start the "GetWork-And-PerformWork" loop for the current worker thread.
- while (1)
- {
- TP_Request_Handle request;
-
- // Do the "GetWork" step.
- {
- // Acquire the lock until just before we decide to "PerformWork".
- GuardType guard(this->lock_);
-
- // Start the "GetWork" loop.
- while (request.is_nil())
- {
- if (this->shutdown_initiated_)
- {
- // This breaks us out of all loops with one fell swoop.
- return 0;
- }
-
- // There is no need to visit the queue if it is empty.
- if (!this->queue_.is_empty())
- {
- // Reset the visitor since we use it over and over. This
- // will cause the visitor to drop any reference to
- // a request that it may still be holding from a prior
- // call to accept_visitor().
- dispatchable_visitor.reset();
-
- // Visit the requests in the queue in hopes of
- // locating the first "dispatchable" (ie, not busy) request.
- // If a dispatchable request is located, it is extracted
- // from the queue and saved in a handle data member in the
- // visitor object.
- this->queue_.accept_visitor(dispatchable_visitor);
-
- // If a dispatchable request is located, it is extracted
- // from the queue and saved in a handle data member in the
- // visitor object. Let's get a "copy" (or a NULL pointer
- // if the visitor didn't locate/extract one).
- request = dispatchable_visitor.request();
- }
-
- // Either the queue is empty or we couldn't find any dispatchable
- // requests in the queue at this time.
- if (request.is_nil())
- {
- // Let's wait until we hear about the possibility of
- // work before we go look again.
- this->work_available_.wait();
- }
- }
-
- // We have dropped out of the "while (request.is_nil())" loop.
- // We only get here is we located/extracted a dispatchable request
- // from the queue. Note that the visitor will have already
- // marked the target servant as now being busy (because of us).
- // We can now safely release the lock.
- }
-
- // Do the "PerformWork" step. We don't need the lock_ to do this.
- request->dispatch();
-
- // Now that the request has been dispatched, we need to mark the target
- // servant as no longer being busy, and we need to signal any wait()'ing
- // worker threads that there may be some dispatchable requests in the
- // queue now for this not-busy servant. We need the lock_ to do this.
- {
- GuardType guard(this->lock_);
- request->mark_as_ready();
- this->work_available_.signal();
- }
-
- // Note that the request will be "released" here when the request
- // handle falls out of scope and its destructor performs the
- // _remove_ref() call on the underlying TP_Request object.
- }
-
- // This will never get executed.
- return 0;
-}
-
-
-int
-TAO::CSD::TP_Task::close(u_long flag)
-{
- GuardType guard(this->lock_);
-
- if (flag == 0)
- {
- // Worker thread is closing.
- --this->num_threads_;
- this->active_workers_.signal();
- }
- else
- {
- // Strategy object is shutting down the task.
-
- // Do nothing if this task has never been open()'ed.
- if (!this->opened_)
- {
- return 0;
- }
-
- // Set the shutdown flag to true.
- this->shutdown_initiated_ = true;
-
- // Stop accepting requests.
- this->accepting_requests_ = false;
-
- // Signal all worker threads waiting on the work_available_ condition.
- this->work_available_.broadcast();
-
- size_t num_waiting_threads = 0;
-
- ACE_thread_t my_thr_id = ACE_OS::thr_self ();
-
- // Check whether the calling thread(calling orb shutdown) is one of the
- // threads in the pool. If it is then it should not wait itself.
- size_t size = this->activated_threads_.size ();
-
- for (size_t i = 0; i < size; i ++)
- {
- ACE_thread_t thr_id = 0;
- if (activated_threads_.get (thr_id, i) == 0 && thr_id == my_thr_id)
- {
- num_waiting_threads = 1;
- break;
- }
- }
-
- // Wait until all worker threads have shutdown.
- while (this->num_threads_ != num_waiting_threads)
- {
- this->active_workers_.wait();
- }
-
- // Cancel all requests.
- TP_Cancel_Visitor cancel_visitor;
- this->queue_.accept_visitor(cancel_visitor);
- }
-
- return 0;
-}
-
-
-
-void
-TAO::CSD::TP_Task::cancel_servant (PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- GuardType guard(this->lock_);
-
- // Cancel the requests targeted for the provided servant.
- TP_Cancel_Visitor cancel_visitor(servant);
- this->queue_.accept_visitor(cancel_visitor);
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Task.h b/TAO/tao/CSD_ThreadPool/CSD_TP_Task.h
deleted file mode 100644
index 65839aeb3b7..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Task.h
+++ /dev/null
@@ -1,164 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_TP_Task.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_TP_TASK_H
-#define TAO_CSD_TP_TASK_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Queue.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/Condition.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Task.h"
-#include "ace/Synch.h"
-#include "ace/Containers_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
- /// Typedef for the number of threads.
- typedef unsigned long Thread_Counter;
-
- /**
- * @class TP_Task
- *
- * @brief Active Object managing a queue of request objects.
- *
- * There are two types of "users" of a TP_Task object:
- *
- * 1) The TP_Strategy object that "owns" this task object.
- * 2) The worker threads that "run" this task object as an
- * "active object".
- *
- * The TP_Strategy object that "owns" this task object dictates
- * when the worker threads are activated and when they are shutdown. It
- * also injects requests into this task's queue via calls to the
- * add_request() method. It is also the TP_Strategy object that
- * dictates the number of worker threads to be activated via a call to
- * the set_num_threads() method.
- *
- * The active object pattern is implemented via the use of the
- * the ACE_Task_Base base class, and each worker thread will
- * invoke this task's svc() method, and when the svc() returns, the
- * worker thread will invoke this task's close() method (with the
- * flag argument equal to 0).
- *
- * @note I just wanted to document an idea... When the pool consists
- * of only one worker thread, we could care less about checking
- * if target servant objects are busy or not. The simple fact
- * that only one thread will be dispatching all requests means
- * that servant objects will never be busy when the thread
- * tests to see if a request is "ready_for_dispatch()". I'm
- * just wondering if this knowledge can be applied to the
- * implementation such that the "pool with one worker thread" case
- * performs more efficiently. This is STP vs SSTP.
- *
- */
- class TAO_CSD_TP_Export TP_Task : public ACE_Task_Base
- {
- public:
-
- /// Default Constructor.
- TP_Task();
-
- /// Virtual Destructor.
- virtual ~TP_Task();
-
- /// Put a request object on to the request queue.
- /// Returns true if successful, false otherwise (it has been "rejected").
- bool add_request(TP_Request* request);
-
- /// Activate the worker threads
- virtual int open(void* num_threads_ptr = 0);
-
- /// The "mainline" executed by each worker thread.
- virtual int svc();
-
- /// Multi-purpose: argument value is used to differentiate purpose.
- ///
- /// 0) Invoked by each worker thread after its invocation of the
- /// svc() method has completed (ie, returned).
- /// 1) Invoked by the strategy object to shutdown all worker threads.
- virtual int close(u_long flag = 0);
-
- /// Cancel all requests that are targeted for the provided servant.
- void cancel_servant (PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
-
- private:
-
- typedef TAO_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
- typedef TAO_Condition<LockType> ConditionType;
-
-
- /// Lock to protect the "state" (all of the data members) of this object.
- LockType lock_;
-
- /// Condition used to signal worker threads that they may be able to
- /// find a request in the queue_ that needs to be dispatched to a
- /// servant that is currently "not busy".
- /// This condition will be signal()'ed each time a new request is
- /// added to the queue_, and also when a servant has become "not busy".
- ConditionType work_available_;
-
- /// This condition will be signal()'ed each time the num_threads_
- /// data member has its value changed. This is used to keep the
- /// close(1) invocation (ie, a shutdown request) blocked until all
- /// of the worker threads have stopped running.
- ConditionType active_workers_;
-
- /// Flag used to indicate when this task will (or will not) accept
- /// requests via the the add_request() method.
- bool accepting_requests_;
-
- /// Flag used to initiate a shutdown request to all worker threads.
- bool shutdown_initiated_;
-
- /// Flag used to avoid multiple open() calls.
- bool opened_;
-
- /// The number of currently active worker threads.
- Thread_Counter num_threads_;
-
- /// The queue of pending servant requests (a.k.a. the "request queue").
- TP_Queue queue_;
-
- typedef ACE_Array <ACE_thread_t> Thread_Ids;
-
- /// The list of ids for the threads launched by this task.
- Thread_Ids activated_threads_;
- };
-
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/CSD_ThreadPool/CSD_TP_Task.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_TP_TASK_H */
diff --git a/TAO/tao/CSD_ThreadPool/CSD_TP_Task.inl b/TAO/tao/CSD_ThreadPool/CSD_TP_Task.inl
deleted file mode 100644
index d9c203f45ce..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_TP_Task.inl
+++ /dev/null
@@ -1,22 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-namespace { enum { MAX_THREADPOOL_TASK_WORKER_THREADS = 50 }; }
-namespace { const ACE_thread_t default_thread_id = 0; }
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO::CSD::TP_Task::TP_Task()
- : work_available_(this->lock_),
- active_workers_(this->lock_),
- accepting_requests_(false),
- shutdown_initiated_(false),
- opened_(false),
- num_threads_(0),
- activated_threads_ ((size_t)MAX_THREADPOOL_TASK_WORKER_THREADS, default_thread_id)
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.cpp b/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.cpp
deleted file mode 100644
index 2ae022711f5..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-// $Id$
-
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h"
-#include "tao/CSD_Framework/CSD_Framework_Loader.h"
-#include "tao/debug.h"
-#include "ace/Dynamic_Service.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-int
-TAO_CSD_ThreadPool::init (void)
-{
- static int initialized = 0;
- if (initialized == 1)
- return 0;
- initialized = 1;
-
- TAO_CSD_Framework_Loader::init();
- return ACE_Service_Config::process_directive (ace_svc_desc_TAO_CSD_TP_Strategy_Factory);
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h b/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h
deleted file mode 100644
index bb1bd448284..00000000000
--- a/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file CSD_ThreadPool.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CSD_THREADPOOL_H
-#define TAO_CSD_THREADPOOL_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CSD_ThreadPool/CSD_TP_Export.h"
-#include "tao/Versioned_Namespace.h"
-#include "ace/Service_Object.h"
-#include "ace/Service_Config.h"
-
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TP_Strategy_Factory
- *
- * @brief An ACE_Service_Object capable of creating TP_Strategy objects.
- *
- * TBD - Explain in more detail.
- *
- */
-class TAO_CSD_TP_Export TAO_CSD_ThreadPool
-{
- public:
- /// Used to force the initialization of the ORB code.
- static int init (void);
-};
-
-#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS)
-
-typedef int (*TAO_CSD_Threadpool) (void);
-
-static TAO_CSD_Threadpool
-TAO_Requires_CSD_Threadpool =
- &TAO_CSD_ThreadPool::init;
-
-#else
-
-static int
-TAO_Requires_CSD_Threadpool =
- TAO_CSD_ThreadPool::init ();
-
-#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CSD_THREADPOOL_H */
diff --git a/TAO/tao/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in b/TAO/tao/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in
deleted file mode 100644
index 7b2b894a6d7..00000000000
--- a/TAO/tao/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: TAO_CSD_ThreadPool
-Description: TAO CSD ThreadPool Library
-Requires: TAO_CSD_Framework
-Version: @VERSION@
-Libs: -L${libdir} -lTAO
-Cflags: -I${includedir}
diff --git a/TAO/tao/Cache_Entries.cpp b/TAO/tao/Cache_Entries.cpp
index 99ecb2ad72b..b4540ba96b3 100644
--- a/TAO/tao/Cache_Entries.cpp
+++ b/TAO/tao/Cache_Entries.cpp
@@ -13,8 +13,6 @@ ACE_RCSID(tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Cache_IntId::Cache_IntId (TAO_Transport *transport)
@@ -48,5 +46,3 @@ namespace TAO
return *this;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Cache_Entries.h b/TAO/tao/Cache_Entries.h
index 993cc36de11..eea2967b2fc 100644
--- a/TAO/tao/Cache_Entries.h
+++ b/TAO/tao/Cache_Entries.h
@@ -23,7 +23,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
class TAO_Transport;
@@ -197,7 +197,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/Cache_Entries.inl"
diff --git a/TAO/tao/Cache_Entries.inl b/TAO/tao/Cache_Entries.inl
index 475f8865a0d..711f635b20e 100644
--- a/TAO/tao/Cache_Entries.inl
+++ b/TAO/tao/Cache_Entries.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE
@@ -191,5 +188,3 @@ namespace TAO
return this->transport_property_;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CharSeq.pidl b/TAO/tao/CharSeq.pidl
index a9a89c2735b..e782b819123 100644
--- a/TAO/tao/CharSeq.pidl
+++ b/TAO/tao/CharSeq.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include=tao/TAO_Export.h
* -Wb,anyop_export_macro=TAO_AnyTypeCode_Export
* -Wb,anyop_export_include=tao/AnyTypeCode/TAO_AnyTypeCode_Export.h
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* CharSeq.pidl
*/
diff --git a/TAO/tao/CharSeqC.cpp b/TAO/tao/CharSeqC.cpp
index dda2d2a7878..7ed29c4865a 100644
--- a/TAO/tao/CharSeqC.cpp
+++ b/TAO/tao/CharSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/CharSeqC.h"
+#include "CharSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ void CORBA::CharSeq::_tao_any_destructor (
}
#endif /* _TAO_CDR_OP_CORBA_CharSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CharSeqC.h b/TAO/tao/CharSeqC.h
index 39ead7275b3..4e7d783a866 100644
--- a/TAO/tao/CharSeqC.h
+++ b/TAO/tao/CharSeqC.h
@@ -52,8 +52,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -141,8 +139,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Cleanup_Func_Registry.cpp b/TAO/tao/Cleanup_Func_Registry.cpp
index 9b89b0f32d8..0c574d13b87 100644
--- a/TAO/tao/Cleanup_Func_Registry.cpp
+++ b/TAO/tao/Cleanup_Func_Registry.cpp
@@ -1,7 +1,7 @@
-#include "tao/Cleanup_Func_Registry.h"
+#include "Cleanup_Func_Registry.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Cleanup_Func_Registry.inl"
+# include "Cleanup_Func_Registry.inl"
#endif /* __ACE_INLINE__ */
#include "ace/Log_Msg.h"
@@ -10,14 +10,21 @@ ACE_RCSID (tao,
Cleanup_Func_Registry,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_Cleanup_Func_Registry::TAO_Cleanup_Func_Registry (void)
+ : cleanup_funcs_ ()
+{
+}
+
+TAO_Cleanup_Func_Registry::~TAO_Cleanup_Func_Registry (void)
+{
+}
int
TAO_Cleanup_Func_Registry::register_cleanup_function (
ACE_CLEANUP_FUNC func,
size_t &slot_id)
{
- size_t const slot = this->cleanup_funcs_.size ();
+ size_t slot = this->cleanup_funcs_.size ();
if (this->cleanup_funcs_.size (slot + 1) != 0)
return -1;
@@ -31,7 +38,7 @@ TAO_Cleanup_Func_Registry::register_cleanup_function (
void
TAO_Cleanup_Func_Registry::cleanup (ACE_Array_Base<void *> &ts_objects)
{
- size_t const len = ts_objects.size ();
+ size_t len = ts_objects.size ();
// The allocated slot may never have been used. It is therefore
// possible that the TSS array size may be less than the cleanup
@@ -49,4 +56,3 @@ TAO_Cleanup_Func_Registry::cleanup (ACE_Array_Base<void *> &ts_objects)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Cleanup_Func_Registry.h b/TAO/tao/Cleanup_Func_Registry.h
index cc2c6162c97..6d42d4342ec 100644
--- a/TAO/tao/Cleanup_Func_Registry.h
+++ b/TAO/tao/Cleanup_Func_Registry.h
@@ -15,19 +15,14 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Array_Base.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Cleanup_Func_Registry
*
@@ -37,15 +32,18 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* invoking the corresponding cleanup function on each object. Hence,
* there is a tight coupling between this class and the TAO ORB Core.
*/
-class TAO_Cleanup_Func_Registry
+class TAO_Export TAO_Cleanup_Func_Registry
{
friend class TAO_ORB_Core;
public:
- /// Constructor.
+ /// Constructor
TAO_Cleanup_Func_Registry (void);
+ /// Destructor
+ ~TAO_Cleanup_Func_Registry (void);
+
/// Return the number of registered cleanup functions.
size_t size (void) const;
@@ -67,8 +65,9 @@ private:
/// Prevent copying through the copy constructor and the assignment
/// operator.
- TAO_Cleanup_Func_Registry (const TAO_Cleanup_Func_Registry &);
- void operator= (const TAO_Cleanup_Func_Registry &);
+ ACE_UNIMPLEMENTED_FUNC (
+ TAO_Cleanup_Func_Registry (const TAO_Cleanup_Func_Registry &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Cleanup_Func_Registry &))
private:
@@ -80,10 +79,8 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Cleanup_Func_Registry.inl"
+# include "Cleanup_Func_Registry.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Cleanup_Func_Registry.inl b/TAO/tao/Cleanup_Func_Registry.inl
index 2216dce7c34..1e2a8362075 100644
--- a/TAO/tao/Cleanup_Func_Registry.inl
+++ b/TAO/tao/Cleanup_Func_Registry.inl
@@ -2,18 +2,8 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-TAO_Cleanup_Func_Registry::TAO_Cleanup_Func_Registry (void)
- : cleanup_funcs_ ()
-{
-}
-
ACE_INLINE size_t
TAO_Cleanup_Func_Registry::size (void) const
{
return this->cleanup_funcs_.size ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ClientRequestInterceptor_Adapter.cpp b/TAO/tao/ClientRequestInterceptor_Adapter.cpp
index bf3d334201e..1bf7fb37f7b 100644
--- a/TAO/tao/ClientRequestInterceptor_Adapter.cpp
+++ b/TAO/tao/ClientRequestInterceptor_Adapter.cpp
@@ -1,13 +1,14 @@
-#include "tao/ClientRequestInterceptor_Adapter.h"
+#include "ClientRequestInterceptor_Adapter.h"
ACE_RCSID (tao,
ClientInterceptorAdapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::ClientRequestInterceptor_Adapter::~ClientRequestInterceptor_Adapter (void)
+namespace TAO
{
+ ClientRequestInterceptor_Adapter::~ClientRequestInterceptor_Adapter (void)
+ {
+ }
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/ClientRequestInterceptor_Adapter.h b/TAO/tao/ClientRequestInterceptor_Adapter.h
index 0a5c83b8b94..7ccb34738c9 100644
--- a/TAO/tao/ClientRequestInterceptor_Adapter.h
+++ b/TAO/tao/ClientRequestInterceptor_Adapter.h
@@ -20,7 +20,7 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,8 +30,6 @@
#include "tao/SystemException.h"
#include "tao/Invocation_Utils.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ClientRequestInfo;
namespace PortableInterceptor
@@ -42,11 +40,6 @@ namespace PortableInterceptor
typedef CORBA::Short ReplyStatus;
}
-namespace CORBA
-{
- class PolicyList;
-}
-
namespace TAO
{
class Invocation_Base;
@@ -100,12 +93,6 @@ namespace TAO
PortableInterceptor::ClientRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL) = 0;
- /// Register an interceptor with policies.
- virtual void add_interceptor (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL) = 0;
-
virtual void destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL) = 0;
/// Convert TAO Invocation status to a PI status
@@ -114,9 +101,6 @@ namespace TAO
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CLIENT_REQUEST_INTERCEPTOR_ADAPTER_H */
diff --git a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp
index ee3178eea83..0aa32cabbc2 100644
--- a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp
+++ b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.cpp
@@ -1,13 +1,10 @@
-#include "tao/ClientRequestInterceptor_Adapter_Factory.h"
+#include "ClientRequestInterceptor_Adapter_Factory.h"
ACE_RCSID (tao,
ClientRequestInterceptorAdapterFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ClientRequestInterceptor_Adapter_Factory::~TAO_ClientRequestInterceptor_Adapter_Factory (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h
index 805608c2af0..f9878697bb9 100644
--- a/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h
+++ b/TAO/tao/ClientRequestInterceptor_Adapter_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,11 +22,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Service_Object.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -47,8 +44,6 @@ public:
virtual TAO::ClientRequestInterceptor_Adapter *create (void) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CLIENTREQUESTINTERCEPTOR_ADAPTER_FACTORY_H */
diff --git a/TAO/tao/Client_Strategy_Factory.cpp b/TAO/tao/Client_Strategy_Factory.cpp
index f459955e2bf..ba7d37b5612 100644
--- a/TAO/tao/Client_Strategy_Factory.cpp
+++ b/TAO/tao/Client_Strategy_Factory.cpp
@@ -4,7 +4,9 @@
ACE_RCSID(tao, Client_Strategy_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_Client_Strategy_Factory::TAO_Client_Strategy_Factory (void)
+{
+}
TAO_Client_Strategy_Factory::~TAO_Client_Strategy_Factory (void)
{
@@ -63,5 +65,3 @@ TAO_Client_Strategy_Factory::use_cleanup_options (void) const
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Client_Strategy_Factory.h b/TAO/tao/Client_Strategy_Factory.h
index 3c63290ad4a..fa3ec2eb1b4 100644
--- a/TAO/tao/Client_Strategy_Factory.h
+++ b/TAO/tao/Client_Strategy_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -13,25 +13,17 @@
#ifndef TAO_CLIENT_STRATEGY_FACTORY_H
#define TAO_CLIENT_STRATEGY_FACTORY_H
-
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/Service_Object.h"
+#include "TAO_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport_Mux_Strategy;
class TAO_Wait_Strategy;
class TAO_Transport;
@@ -47,6 +39,9 @@ class TAO_Connect_Strategy;
class TAO_Export TAO_Client_Strategy_Factory : public ACE_Service_Object
{
public:
+ // = Intialization and termination methods.
+ /// Constructor.
+ TAO_Client_Strategy_Factory (void);
/// Destructor
virtual ~TAO_Client_Strategy_Factory (void);
@@ -85,7 +80,5 @@ public:
virtual bool use_cleanup_options (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CLIENT_STRATEGY_FACTORY_H */
diff --git a/TAO/tao/CodecFactory/CDR_Encaps_Codec.cpp b/TAO/tao/CodecFactory/CDR_Encaps_Codec.cpp
index 215bac88618..28e8cc27453 100644
--- a/TAO/tao/CodecFactory/CDR_Encaps_Codec.cpp
+++ b/TAO/tao/CodecFactory/CDR_Encaps_Codec.cpp
@@ -1,6 +1,8 @@
+// -*- C++ -*-
+//
// $Id$
-#include "tao/CodecFactory/CDR_Encaps_Codec.h"
+#include "CDR_Encaps_Codec.h"
#include "tao/CDR.h"
#include "tao/OctetSeqC.h"
@@ -12,29 +14,22 @@
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/SystemException.h"
#include "tao/ORB_Constants.h"
-#include "tao/Codeset_Translator_Base.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_string.h"
-ACE_RCSID (CodecFactory,
+ACE_RCSID (tao,
CDR_Encaps_Codec,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_CDR_Encaps_Codec::TAO_CDR_Encaps_Codec (
- CORBA::Octet major,
- CORBA::Octet minor,
- TAO_ORB_Core * orb_core,
- TAO_Codeset_Translator_Base * char_trans,
- TAO_Codeset_Translator_Base * wchar_trans)
+TAO_CDR_Encaps_Codec::TAO_CDR_Encaps_Codec (CORBA::Octet major,
+ CORBA::Octet minor,
+ TAO_ORB_Core * orb_core)
: major_ (major),
minor_ (minor),
- orb_core_ (orb_core),
- char_translator_ (char_trans),
- wchar_translator_ (wchar_trans)
+ orb_core_ (orb_core)
{
}
@@ -63,15 +58,6 @@ TAO_CDR_Encaps_Codec::encode (const CORBA::Any & data
this->major_,
this->minor_);
- if (this->char_translator_)
- {
- this->char_translator_->assign (&cdr);
- }
- if (this->wchar_translator_)
- {
- this->wchar_translator_->assign (&cdr);
- }
-
if ((cdr << TAO_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER))
&& (cdr << data))
{
@@ -137,15 +123,6 @@ TAO_CDR_Encaps_Codec::decode (const CORBA::OctetSeq & data
this->minor_,
this->orb_core_);
- if (this->char_translator_)
- {
- this->char_translator_->assign (&cdr);
- }
- if (this->wchar_translator_)
- {
- this->wchar_translator_->assign (&cdr);
- }
-
CORBA::Boolean byte_order;
if (cdr >> TAO_InputCDR::to_boolean (byte_order))
{
@@ -191,15 +168,6 @@ TAO_CDR_Encaps_Codec::encode_value (const CORBA::Any & data
this->major_,
this->minor_);
- if (this->char_translator_)
- {
- this->char_translator_->assign (&cdr);
- }
- if (this->wchar_translator_)
- {
- this->wchar_translator_->assign (&cdr);
- }
-
if ((cdr << TAO_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER)))
{
TAO::Any_Impl *impl = data.impl ();
@@ -308,15 +276,6 @@ TAO_CDR_Encaps_Codec::decode_value (const CORBA::OctetSeq & data,
this->minor_,
this->orb_core_);
- if (this->char_translator_)
- {
- this->char_translator_->assign (&cdr);
- }
- if (this->wchar_translator_)
- {
- this->wchar_translator_->assign (&cdr);
- }
-
CORBA::Boolean byte_order;
if (cdr >> TAO_InputCDR::to_boolean (byte_order))
@@ -364,5 +323,3 @@ TAO_CDR_Encaps_Codec::check_type_for_encoding (
&& typecode->equivalent (CORBA::_tc_wstring ACE_ENV_ARG_PARAMETER))
ACE_THROW (IOP::Codec::InvalidTypeForEncoding ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CodecFactory/CDR_Encaps_Codec.h b/TAO/tao/CodecFactory/CDR_Encaps_Codec.h
index 37672c1e4de..3ee1e43137c 100644
--- a/TAO/tao/CodecFactory/CDR_Encaps_Codec.h
+++ b/TAO/tao/CodecFactory/CDR_Encaps_Codec.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/CodecFactory/IOP_Codec_includeC.h"
+#include "IOP_Codec_includeC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,10 +23,6 @@
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Codeset_Translator_Base;
-
/**
* @class TAO_CDR_Encaps_Codec
*
@@ -52,9 +48,7 @@ public:
/// Constructor.
TAO_CDR_Encaps_Codec (CORBA::Octet major,
CORBA::Octet minor,
- TAO_ORB_Core * orb_core,
- TAO_Codeset_Translator_Base * char_trans,
- TAO_Codeset_Translator_Base * wchar_trans);
+ TAO_ORB_Core * orb_core);
/// Encode the given data, including the TypeCode, into an octet
/// sequence.
@@ -109,8 +103,9 @@ private:
/// Prevent copying through the copy constructor and the assignment
/// operator.
- TAO_CDR_Encaps_Codec (const TAO_CDR_Encaps_Codec &);
- void operator= (const TAO_CDR_Encaps_Codec &);
+ ACE_UNIMPLEMENTED_FUNC (
+ TAO_CDR_Encaps_Codec (const TAO_CDR_Encaps_Codec &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_CDR_Encaps_Codec &))
private:
@@ -124,15 +119,8 @@ private:
/// encapsulation.
TAO_ORB_Core * const orb_core_;
- /// Char codeset translator
- TAO_Codeset_Translator_Base * char_translator_;
-
- /// WChar codeset translator
- TAO_Codeset_Translator_Base * wchar_translator_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CDR_ENCAPS_CODEC_H */
diff --git a/TAO/tao/CodecFactory/CodecFactory.cpp b/TAO/tao/CodecFactory/CodecFactory.cpp
index f532539a4fd..646a88b28a2 100644
--- a/TAO/tao/CodecFactory/CodecFactory.cpp
+++ b/TAO/tao/CodecFactory/CodecFactory.cpp
@@ -1,3 +1,5 @@
+/* -*- C++ -*- */
+
// =================================================================
/**
* @file CodecFactory.cpp
@@ -5,11 +7,12 @@
* $Id$
*
* @author Johnny Willemsen <jwillemsen@remedy.nl>
+ *
*/
// =================================================================
-#include "tao/CodecFactory/CodecFactory.h"
-#include "tao/CodecFactory/CodecFactory_impl.h"
+#include "CodecFactory.h"
+#include "CodecFactory_impl.h"
#include "tao/ORB.h"
#include "tao/debug.h"
@@ -18,8 +21,6 @@ ACE_RCSID (CodecFactory,
CodecFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Object_ptr
TAO_CodecFactory_Loader::create_object (
CORBA::ORB_ptr orb,
@@ -41,8 +42,6 @@ TAO_CodecFactory_Loader::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_CodecFactory_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_CodecFactory_Loader,
ACE_TEXT ("CodecFactory_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/CodecFactory/CodecFactory.h b/TAO/tao/CodecFactory/CodecFactory.h
index 230914bbbac..82c6f95b05d 100644
--- a/TAO/tao/CodecFactory/CodecFactory.h
+++ b/TAO/tao/CodecFactory/CodecFactory.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -16,21 +17,19 @@
#include /**/ "ace/pre.h"
-#include "tao/CodecFactory/codecfactory_export.h"
+#include "codecfactory_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_CODECFACTORY_SAFE_INCLUDE
-#include "tao/CodecFactory/IOP_CodecC.h"
+#include "IOP_CodecC.h"
#undef TAO_CODECFACTORY_SAFE_INCLUDE
#include "tao/Object_Loader.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_CodecFactory_Export TAO_CodecFactory_Loader
: public TAO_Object_Loader
{
@@ -46,14 +45,12 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_CodecFactory_Initializer = TAO_CodecFactory_Loader::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_CodecFactory_Loader)
ACE_FACTORY_DECLARE (TAO_CodecFactory, TAO_CodecFactory_Loader)
+static int
+TAO_Requires_CodecFactory_Initializer = TAO_CodecFactory_Loader::Initializer ();
+
#include /**/ "ace/post.h"
#endif /* TAO_CODECFACTORY_H */
diff --git a/TAO/tao/CodecFactory/CodecFactory_impl.cpp b/TAO/tao/CodecFactory/CodecFactory_impl.cpp
index 2b1462c9693..96d1448d55b 100644
--- a/TAO/tao/CodecFactory/CodecFactory_impl.cpp
+++ b/TAO/tao/CodecFactory/CodecFactory_impl.cpp
@@ -2,102 +2,26 @@
//
// $Id$
-#include "tao/CodecFactory/CodecFactory_impl.h"
-#include "tao/CodecFactory/CDR_Encaps_Codec.h"
+#include "CodecFactory_impl.h"
+#include "CDR_Encaps_Codec.h"
#include "tao/SystemException.h"
#include "tao/ORB_Constants.h"
-#include "tao/ORB_Core.h"
-#include "tao/Codeset_Manager.h"
-#include "ace/Codeset_Symbols.h"
ACE_RCSID (CodecFactory_impl,
CodecFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_CodecFactory::TAO_CodecFactory (TAO_ORB_Core * orb_core)
: orb_core_ (orb_core)
{
}
IOP::Codec_ptr
-TAO_CodecFactory::create_codec_with_codesets (const IOP::Encoding_1_2 & enc
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- IOP::CodecFactory::UnknownEncoding,
- IOP::CodecFactory::UnsupportedCodeset))
-{
- TAO_Codeset_Translator_Base *char_trans = 0;
- TAO_Codeset_Translator_Base *wchar_trans = 0;
- CONV_FRAME::CodeSetId ncsc;
- CONV_FRAME::CodeSetId ncsw;
-
- TAO_Codeset_Manager *csm = this->orb_core_->codeset_manager ();
-
- if (csm)
- {
- char_trans = csm->get_char_trans (enc.char_codeset);
- wchar_trans = csm->get_wchar_trans (enc.wchar_codeset);
- csm->get_ncs (ncsc,ncsw); // pass by reference
- }
- else
- {
- // No codeset manager, so also raise an unsupported codeset
- ACE_THROW_RETURN (IOP::CodecFactory::UnsupportedCodeset (
- enc.wchar_codeset),
- IOP::Codec::_nil ());
- }
-
- if (wchar_trans == 0 &&
- enc.wchar_codeset != ACE_CODESET_ID_ISO_UTF_16 &&
- enc.wchar_codeset != ncsw)
- {
- ACE_THROW_RETURN (IOP::CodecFactory::UnsupportedCodeset (
- enc.wchar_codeset),
- IOP::Codec::_nil ());
- }
-
- if (char_trans == 0 &&
- enc.char_codeset != ncsc)
- {
- ACE_THROW_RETURN (IOP::CodecFactory::UnsupportedCodeset (
- enc.char_codeset),
- IOP::Codec::_nil ());
- }
-
- return this->create_codec_i (enc.major_version,
- enc.minor_version,
- enc.format,
- char_trans,
- wchar_trans
- ACE_ENV_ARG_PARAMETER);
-}
-
-IOP::Codec_ptr
TAO_CodecFactory::create_codec (const IOP::Encoding & enc
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
IOP::CodecFactory::UnknownEncoding))
{
- return this->create_codec_i (enc.major_version,
- enc.minor_version,
- enc.format,
- 0,
- 0
- ACE_ENV_ARG_PARAMETER);
-}
-
-IOP::Codec_ptr
-TAO_CodecFactory::create_codec_i (CORBA::Octet major,
- CORBA::Octet minor,
- IOP::EncodingFormat encoding_format,
- TAO_Codeset_Translator_Base * char_trans,
- TAO_Codeset_Translator_Base * wchar_trans
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- IOP::CodecFactory::UnknownEncoding))
-{
// @todo: Ideally we should have some sort of CodecFactory
// registry to make it possible to add factories
// dynamically. However, there currently isn't a need to
@@ -107,14 +31,14 @@ TAO_CodecFactory::create_codec_i (CORBA::Octet major,
IOP::Codec_ptr codec = IOP::Codec::_nil ();
- switch (encoding_format)
+ switch (enc.format)
{
// @@ MSVC 6 gets confused and thinks that
// IOP::ENCODING_CDR_ENCAPS is not a constant, so its actual
// value (0) is used instead.
case 0 /* IOP::ENCODING_CDR_ENCAPS */:
- if (major < 1)
+ if (enc.major_version < 1)
{
// There is no such thing as a "0.x" CDR encapsulation.
ACE_THROW_RETURN (CORBA::BAD_PARAM (
@@ -126,11 +50,9 @@ TAO_CodecFactory::create_codec_i (CORBA::Octet major,
}
ACE_NEW_THROW_EX (codec,
- TAO_CDR_Encaps_Codec (major,
- minor,
- this->orb_core_,
- char_trans,
- wchar_trans),
+ TAO_CDR_Encaps_Codec (enc.major_version,
+ enc.minor_version,
+ this->orb_core_),
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
0,
@@ -147,5 +69,3 @@ TAO_CodecFactory::create_codec_i (CORBA::Octet major,
return codec;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CodecFactory/CodecFactory_impl.h b/TAO/tao/CodecFactory/CodecFactory_impl.h
index ba0859f667b..6699719071a 100644
--- a/TAO/tao/CodecFactory/CodecFactory_impl.h
+++ b/TAO/tao/CodecFactory/CodecFactory_impl.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/CodecFactory/IOP_Codec_includeC.h"
+#include "IOP_Codec_includeC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,10 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Codeset_Translator_Base;
-
/**
* @class TAO_CodecFactory
*
@@ -57,27 +53,14 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException,
IOP::CodecFactory::UnknownEncoding));
- /// Create a Coder/Decoder for the given type of encoding and codesets.
- virtual IOP::Codec_ptr create_codec_with_codesets (const IOP::Encoding_1_2 & enc
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- IOP::CodecFactory::UnknownEncoding,
- IOP::CodecFactory::UnsupportedCodeset));
-
private:
+
/// Prevent copying through the copy constructor and the assignment
/// operator.
- TAO_CodecFactory (const TAO_CodecFactory &);
- void operator= (const TAO_CodecFactory &);
-
- IOP::Codec_ptr create_codec_i (CORBA::Octet major,
- CORBA::Octet minor,
- IOP::EncodingFormat encoding_format,
- TAO_Codeset_Translator_Base * char_trans,
- TAO_Codeset_Translator_Base * wchar_trans
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- IOP::CodecFactory::UnknownEncoding));
+ ACE_UNIMPLEMENTED_FUNC (
+ TAO_CodecFactory (const TAO_CodecFactory &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_CodecFactory &))
+
private:
/// Pointer to the ORB Core.
@@ -89,8 +72,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/CodecFactory/IOP_Codec.pidl b/TAO/tao/CodecFactory/IOP_Codec.pidl
index be4caae91b3..d322ae98bc1 100644
--- a/TAO/tao/CodecFactory/IOP_Codec.pidl
+++ b/TAO/tao/CodecFactory/IOP_Codec.pidl
@@ -11,13 +11,11 @@
* command:
*
* tao_idl.exe
- * -o orig -Gp -Gd -Ge 1 -Sc -SS -Sci
+ * -o orig -Gp -Gd -Ge 1 -GA -Sc -SS -Sci
* -Wb,export_macro=TAO_Export
* -Wb,export_include=tao/TAO_Export.h
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* IOP_Codec.pidl
*
*/
@@ -25,9 +23,8 @@
#ifndef TAO_IOP_CODEC_PIDL
#define TAO_IOP_CODEC_PIDL
-#include "tao/Typecode_types.pidl"
-#include "tao/OctetSeq.pidl"
-#include "tao/CONV_FRAME.pidl"
+#include <Typecode_types.pidl>
+#include <OctetSeq.pidl>
#pragma prefix "omg.org"
@@ -54,25 +51,13 @@ module IOP
octet minor_version;
};
- struct Encoding_1_2 {
- EncodingFormat format;
- octet major_version;
- octet minor_version;
- CONV_FRAME::CodeSetId char_codeset;
- CONV_FRAME::CodeSetId wchar_codeset;
- };
-
local interface CodecFactory {
exception UnknownEncoding {};
- exception UnsupportedCodeset {
- CONV_FRAME::CodeSetId codeset;
- };
Codec create_codec (in Encoding enc) raises (UnknownEncoding);
- Codec create_codec_with_codesets (in Encoding_1_2 enc) raises (UnknownEncoding, UnsupportedCodeset);
};
};
#pragma prefix ""
-#endif /* TAO_IOP_CODEC_PIDL */
+#endif /* TAO_IOP_PIDL */
diff --git a/TAO/tao/CodecFactory/IOP_CodecA.cpp b/TAO/tao/CodecFactory/IOP_CodecA.cpp
new file mode 100644
index 00000000000..2e54165d86c
--- /dev/null
+++ b/TAO/tao/CodecFactory/IOP_CodecA.cpp
@@ -0,0 +1,704 @@
+// -*- 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/
+// and
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
+//
+// Information about TAO is available at:
+// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+#include "CodecFactory.h"
+#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
+#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "tao/AnyTypeCode/Recursive_Type_TypeCode.h"
+#include "tao/CDR.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/Any_Impl_T.h"
+#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_Codec_InvalidTypeForEncoding = 0;
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_Codec_InvalidTypeForEncoding (
+ CORBA::tk_except,
+ "IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0",
+ "InvalidTypeForEncoding",
+ _tao_fields_IOP_Codec_InvalidTypeForEncoding,
+ 0);
+
+::CORBA::TypeCode_ptr const IOP::Codec::_tc_InvalidTypeForEncoding =
+ &_tao_tc_IOP_Codec_InvalidTypeForEncoding;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_Codec_FormatMismatch = 0;
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_Codec_FormatMismatch (
+ CORBA::tk_except,
+ "IDL:omg.org/IOP/Codec/FormatMismatch:1.0",
+ "FormatMismatch",
+ _tao_fields_IOP_Codec_FormatMismatch,
+ 0);
+
+::CORBA::TypeCode_ptr const IOP::Codec::_tc_FormatMismatch =
+ &_tao_tc_IOP_Codec_FormatMismatch;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_Codec_TypeMismatch = 0;
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_Codec_TypeMismatch (
+ CORBA::tk_except,
+ "IDL:omg.org/IOP/Codec/TypeMismatch:1.0",
+ "TypeMismatch",
+ _tao_fields_IOP_Codec_TypeMismatch,
+ 0);
+
+::CORBA::TypeCode_ptr const IOP::Codec::_tc_TypeMismatch =
+ &_tao_tc_IOP_Codec_TypeMismatch;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_Codec (
+ CORBA::tk_local_interface,
+ "IDL:omg.org/IOP/Codec:1.0",
+ "Codec");
+
+namespace IOP
+{
+ ::CORBA::TypeCode_ptr const _tc_Codec =
+ &_tao_tc_IOP_Codec;
+}
+
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/alias_typecode.cpp:31
+
+static TAO::TypeCode::Alias<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_EncodingFormat (
+ CORBA::tk_alias,
+ "IDL:omg.org/IOP/EncodingFormat:1.0",
+ "EncodingFormat",
+ &CORBA::_tc_short);
+
+namespace IOP
+{
+ ::CORBA::TypeCode_ptr const _tc_EncodingFormat =
+ &_tao_tc_IOP_EncodingFormat;
+}
+
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_IOP_Encoding[] =
+ {
+ { "format", &IOP::_tc_EncodingFormat },
+ { "major_version", &CORBA::_tc_octet },
+ { "minor_version", &CORBA::_tc_octet }
+
+ };
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_Encoding (
+ CORBA::tk_struct,
+ "IDL:omg.org/IOP/Encoding:1.0",
+ "Encoding",
+ _tao_fields_IOP_Encoding,
+ 3);
+
+namespace IOP
+{
+ ::CORBA::TypeCode_ptr const _tc_Encoding =
+ &_tao_tc_IOP_Encoding;
+}
+
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_CodecFactory_UnknownEncoding = 0;
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_CodecFactory_UnknownEncoding (
+ CORBA::tk_except,
+ "IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0",
+ "UnknownEncoding",
+ _tao_fields_IOP_CodecFactory_UnknownEncoding,
+ 0);
+
+::CORBA::TypeCode_ptr const IOP::CodecFactory::_tc_UnknownEncoding =
+ &_tao_tc_IOP_CodecFactory_UnknownEncoding;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_IOP_CodecFactory (
+ CORBA::tk_local_interface,
+ "IDL:omg.org/IOP/CodecFactory:1.0",
+ "CodecFactory");
+
+namespace IOP
+{
+ ::CORBA::TypeCode_ptr const _tc_CodecFactory =
+ &_tao_tc_IOP_CodecFactory;
+}
+
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<IOP::Codec>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<IOP::Codec>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<IOP::Codec>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::Codec_ptr _tao_elem
+ )
+{
+ IOP::Codec_ptr _tao_objptr =
+ IOP::Codec::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::Codec_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<IOP::Codec>::insert (
+ _tao_any,
+ IOP::Codec::_tao_any_destructor,
+ IOP::_tc_Codec,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::Codec_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<IOP::Codec>::extract (
+ _tao_any,
+ IOP::Codec::_tao_any_destructor,
+ IOP::_tc_Codec,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::Codec::InvalidTypeForEncoding>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::Codec::InvalidTypeForEncoding>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const IOP::Codec::InvalidTypeForEncoding &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Codec::InvalidTypeForEncoding>::insert_copy (
+ _tao_any,
+ IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor,
+ IOP::Codec::_tc_InvalidTypeForEncoding,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::Codec::InvalidTypeForEncoding *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Codec::InvalidTypeForEncoding>::insert (
+ _tao_any,
+ IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor,
+ IOP::Codec::_tc_InvalidTypeForEncoding,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::Codec::InvalidTypeForEncoding *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const IOP::Codec::InvalidTypeForEncoding *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const IOP::Codec::InvalidTypeForEncoding *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<IOP::Codec::InvalidTypeForEncoding>::extract (
+ _tao_any,
+ IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor,
+ IOP::Codec::_tc_InvalidTypeForEncoding,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::Codec::FormatMismatch>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::Codec::FormatMismatch>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const IOP::Codec::FormatMismatch &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Codec::FormatMismatch>::insert_copy (
+ _tao_any,
+ IOP::Codec::FormatMismatch::_tao_any_destructor,
+ IOP::Codec::_tc_FormatMismatch,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::Codec::FormatMismatch *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Codec::FormatMismatch>::insert (
+ _tao_any,
+ IOP::Codec::FormatMismatch::_tao_any_destructor,
+ IOP::Codec::_tc_FormatMismatch,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::Codec::FormatMismatch *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const IOP::Codec::FormatMismatch *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const IOP::Codec::FormatMismatch *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<IOP::Codec::FormatMismatch>::extract (
+ _tao_any,
+ IOP::Codec::FormatMismatch::_tao_any_destructor,
+ IOP::Codec::_tc_FormatMismatch,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::Codec::TypeMismatch>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::Codec::TypeMismatch>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const IOP::Codec::TypeMismatch &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Codec::TypeMismatch>::insert_copy (
+ _tao_any,
+ IOP::Codec::TypeMismatch::_tao_any_destructor,
+ IOP::Codec::_tc_TypeMismatch,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::Codec::TypeMismatch *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Codec::TypeMismatch>::insert (
+ _tao_any,
+ IOP::Codec::TypeMismatch::_tao_any_destructor,
+ IOP::Codec::_tc_TypeMismatch,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::Codec::TypeMismatch *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const IOP::Codec::TypeMismatch *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const IOP::Codec::TypeMismatch *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<IOP::Codec::TypeMismatch>::extract (
+ _tao_any,
+ IOP::Codec::TypeMismatch::_tao_any_destructor,
+ IOP::Codec::_tc_TypeMismatch,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_structure/any_op_cs.cpp:54
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const IOP::Encoding &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Encoding>::insert_copy (
+ _tao_any,
+ IOP::Encoding::_tao_any_destructor,
+ IOP::_tc_Encoding,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::Encoding *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::Encoding>::insert (
+ _tao_any,
+ IOP::Encoding::_tao_any_destructor,
+ IOP::_tc_Encoding,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::Encoding *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const IOP::Encoding *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const IOP::Encoding *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<IOP::Encoding>::extract (
+ _tao_any,
+ IOP::Encoding::_tao_any_destructor,
+ IOP::_tc_Encoding,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<IOP::CodecFactory>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<IOP::CodecFactory>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<IOP::CodecFactory>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::CodecFactory_ptr _tao_elem
+ )
+{
+ IOP::CodecFactory_ptr _tao_objptr =
+ IOP::CodecFactory::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::CodecFactory_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<IOP::CodecFactory>::insert (
+ _tao_any,
+ IOP::CodecFactory::_tao_any_destructor,
+ IOP::_tc_CodecFactory,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::CodecFactory_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<IOP::CodecFactory>::extract (
+ _tao_any,
+ IOP::CodecFactory::_tao_any_destructor,
+ IOP::_tc_CodecFactory,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::CodecFactory::UnknownEncoding>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<IOP::CodecFactory::UnknownEncoding>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const IOP::CodecFactory::UnknownEncoding &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::CodecFactory::UnknownEncoding>::insert_copy (
+ _tao_any,
+ IOP::CodecFactory::UnknownEncoding::_tao_any_destructor,
+ IOP::CodecFactory::_tc_UnknownEncoding,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ IOP::CodecFactory::UnknownEncoding *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<IOP::CodecFactory::UnknownEncoding>::insert (
+ _tao_any,
+ IOP::CodecFactory::UnknownEncoding::_tao_any_destructor,
+ IOP::CodecFactory::_tc_UnknownEncoding,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ IOP::CodecFactory::UnknownEncoding *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const IOP::CodecFactory::UnknownEncoding *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const IOP::CodecFactory::UnknownEncoding *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<IOP::CodecFactory::UnknownEncoding>::extract (
+ _tao_any,
+ IOP::CodecFactory::UnknownEncoding::_tao_any_destructor,
+ IOP::CodecFactory::_tc_UnknownEncoding,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/CodecFactory/IOP_CodecC.cpp b/TAO/tao/CodecFactory/IOP_CodecC.cpp
index 0445a72c755..965d8fb585e 100644
--- a/TAO/tao/CodecFactory/IOP_CodecC.cpp
+++ b/TAO/tao/CodecFactory/IOP_CodecC.cpp
@@ -26,27 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/CodecFactory/CodecFactory.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
-#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "CodecFactory.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Any_Impl_T.h"
-#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#include "ace/OS_NS_string.h"
-// TAO_IDL - Generated from
-// be\be_visitor_arg_traits.cpp:70
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_arg_traits.cpp:69
// Arg traits specializations.
namespace TAO
@@ -81,20 +74,20 @@ TAO::Objref_Traits<IOP::Codec>::nil (void)
return IOP::Codec::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<IOP::Codec>::marshal (
IOP::Codec_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
// TAO_IDL - Generated from
// be\be_visitor_exception/exception_cs.cpp:63
IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0",
"InvalidTypeForEncoding"
)
@@ -106,7 +99,7 @@ IOP::Codec::InvalidTypeForEncoding::~InvalidTypeForEncoding (void)
}
IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -116,7 +109,7 @@ IOP::Codec::InvalidTypeForEncoding::InvalidTypeForEncoding (const ::IOP::Codec::
IOP::Codec::InvalidTypeForEncoding&
IOP::Codec::InvalidTypeForEncoding::operator= (const ::IOP::Codec::InvalidTypeForEncoding &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
return *this;
}
@@ -128,28 +121,28 @@ void IOP::Codec::InvalidTypeForEncoding::_tao_any_destructor (void *_tao_void_po
}
IOP::Codec::InvalidTypeForEncoding *
-IOP::Codec::InvalidTypeForEncoding::_downcast ( ::CORBA::Exception *_tao_excp)
+IOP::Codec::InvalidTypeForEncoding::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<InvalidTypeForEncoding *> (_tao_excp);
}
const IOP::Codec::InvalidTypeForEncoding *
-IOP::Codec::InvalidTypeForEncoding::_downcast ( ::CORBA::Exception const *_tao_excp)
+IOP::Codec::InvalidTypeForEncoding::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const InvalidTypeForEncoding *> (_tao_excp);
}
-::CORBA::Exception *IOP::Codec::InvalidTypeForEncoding::_alloc (void)
+CORBA::Exception *IOP::Codec::InvalidTypeForEncoding::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::IOP::Codec::InvalidTypeForEncoding, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
IOP::Codec::InvalidTypeForEncoding::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::IOP::Codec::InvalidTypeForEncoding (*this),
@@ -168,7 +161,7 @@ void IOP::Codec::InvalidTypeForEncoding::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void IOP::Codec::InvalidTypeForEncoding::_tao_decode (
@@ -176,38 +169,20 @@ void IOP::Codec::InvalidTypeForEncoding::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr IOP::Codec::InvalidTypeForEncoding::_tao_type (void) const
+CORBA::TypeCode_ptr IOP::Codec::InvalidTypeForEncoding::_tao_type (void) const
{
return ::IOP::Codec::_tc_InvalidTypeForEncoding;
}
// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_Codec_InvalidTypeForEncoding = 0;
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_Codec_InvalidTypeForEncoding (
- ::CORBA::tk_except,
- "IDL:omg.org/IOP/Codec/InvalidTypeForEncoding:1.0",
- "InvalidTypeForEncoding",
- _tao_fields_IOP_Codec_InvalidTypeForEncoding,
- 0);
-
-::CORBA::TypeCode_ptr const IOP::Codec::_tc_InvalidTypeForEncoding =
- &_tao_tc_IOP_Codec_InvalidTypeForEncoding;
-
-// TAO_IDL - Generated from
// be\be_visitor_exception/exception_cs.cpp:63
IOP::Codec::FormatMismatch::FormatMismatch (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/IOP/Codec/FormatMismatch:1.0",
"FormatMismatch"
)
@@ -219,7 +194,7 @@ IOP::Codec::FormatMismatch::~FormatMismatch (void)
}
IOP::Codec::FormatMismatch::FormatMismatch (const ::IOP::Codec::FormatMismatch &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -229,7 +204,7 @@ IOP::Codec::FormatMismatch::FormatMismatch (const ::IOP::Codec::FormatMismatch &
IOP::Codec::FormatMismatch&
IOP::Codec::FormatMismatch::operator= (const ::IOP::Codec::FormatMismatch &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
return *this;
}
@@ -241,28 +216,28 @@ void IOP::Codec::FormatMismatch::_tao_any_destructor (void *_tao_void_pointer)
}
IOP::Codec::FormatMismatch *
-IOP::Codec::FormatMismatch::_downcast ( ::CORBA::Exception *_tao_excp)
+IOP::Codec::FormatMismatch::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<FormatMismatch *> (_tao_excp);
}
const IOP::Codec::FormatMismatch *
-IOP::Codec::FormatMismatch::_downcast ( ::CORBA::Exception const *_tao_excp)
+IOP::Codec::FormatMismatch::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const FormatMismatch *> (_tao_excp);
}
-::CORBA::Exception *IOP::Codec::FormatMismatch::_alloc (void)
+CORBA::Exception *IOP::Codec::FormatMismatch::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::IOP::Codec::FormatMismatch, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
IOP::Codec::FormatMismatch::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::IOP::Codec::FormatMismatch (*this),
@@ -281,7 +256,7 @@ void IOP::Codec::FormatMismatch::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void IOP::Codec::FormatMismatch::_tao_decode (
@@ -289,38 +264,20 @@ void IOP::Codec::FormatMismatch::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr IOP::Codec::FormatMismatch::_tao_type (void) const
+CORBA::TypeCode_ptr IOP::Codec::FormatMismatch::_tao_type (void) const
{
return ::IOP::Codec::_tc_FormatMismatch;
}
// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_Codec_FormatMismatch = 0;
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_Codec_FormatMismatch (
- ::CORBA::tk_except,
- "IDL:omg.org/IOP/Codec/FormatMismatch:1.0",
- "FormatMismatch",
- _tao_fields_IOP_Codec_FormatMismatch,
- 0);
-
-::CORBA::TypeCode_ptr const IOP::Codec::_tc_FormatMismatch =
- &_tao_tc_IOP_Codec_FormatMismatch;
-
-// TAO_IDL - Generated from
// be\be_visitor_exception/exception_cs.cpp:63
IOP::Codec::TypeMismatch::TypeMismatch (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/IOP/Codec/TypeMismatch:1.0",
"TypeMismatch"
)
@@ -332,7 +289,7 @@ IOP::Codec::TypeMismatch::~TypeMismatch (void)
}
IOP::Codec::TypeMismatch::TypeMismatch (const ::IOP::Codec::TypeMismatch &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -342,7 +299,7 @@ IOP::Codec::TypeMismatch::TypeMismatch (const ::IOP::Codec::TypeMismatch &_tao_e
IOP::Codec::TypeMismatch&
IOP::Codec::TypeMismatch::operator= (const ::IOP::Codec::TypeMismatch &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
return *this;
}
@@ -354,28 +311,28 @@ void IOP::Codec::TypeMismatch::_tao_any_destructor (void *_tao_void_pointer)
}
IOP::Codec::TypeMismatch *
-IOP::Codec::TypeMismatch::_downcast ( ::CORBA::Exception *_tao_excp)
+IOP::Codec::TypeMismatch::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<TypeMismatch *> (_tao_excp);
}
const IOP::Codec::TypeMismatch *
-IOP::Codec::TypeMismatch::_downcast ( ::CORBA::Exception const *_tao_excp)
+IOP::Codec::TypeMismatch::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const TypeMismatch *> (_tao_excp);
}
-::CORBA::Exception *IOP::Codec::TypeMismatch::_alloc (void)
+CORBA::Exception *IOP::Codec::TypeMismatch::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::IOP::Codec::TypeMismatch, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
IOP::Codec::TypeMismatch::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::IOP::Codec::TypeMismatch (*this),
@@ -394,7 +351,7 @@ void IOP::Codec::TypeMismatch::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void IOP::Codec::TypeMismatch::_tao_decode (
@@ -402,59 +359,61 @@ void IOP::Codec::TypeMismatch::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr IOP::Codec::TypeMismatch::_tao_type (void) const
+CORBA::TypeCode_ptr IOP::Codec::TypeMismatch::_tao_type (void) const
{
return ::IOP::Codec::_tc_TypeMismatch;
}
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_Codec_TypeMismatch = 0;
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_Codec_TypeMismatch (
- ::CORBA::tk_except,
- "IDL:omg.org/IOP/Codec/TypeMismatch:1.0",
- "TypeMismatch",
- _tao_fields_IOP_Codec_TypeMismatch,
- 0);
-
-::CORBA::TypeCode_ptr const IOP::Codec::_tc_TypeMismatch =
- &_tao_tc_IOP_Codec_TypeMismatch;
-
IOP::Codec::Codec (void)
{}
IOP::Codec::~Codec (void)
{}
+void
+IOP::Codec::_tao_any_destructor (void *_tao_void_pointer)
+{
+ Codec *_tao_tmp_pointer =
+ static_cast<Codec *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
IOP::Codec_ptr
IOP::Codec::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return Codec::_duplicate (
- dynamic_cast<Codec_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return Codec::_nil ();
+ }
+
+ Codec_ptr proxy =
+ dynamic_cast<Codec_ptr> (_tao_objref);
+
+ return Codec::_duplicate (proxy);
}
IOP::Codec_ptr
IOP::Codec::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return Codec::_duplicate (
- dynamic_cast<Codec_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return Codec::_nil ();
+ }
+
+ Codec_ptr proxy =
+ dynamic_cast<Codec_ptr> (_tao_objref);
+
+ return Codec::_duplicate (proxy);
}
IOP::Codec_ptr
@@ -464,7 +423,7 @@ IOP::Codec::_duplicate (Codec_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
@@ -474,7 +433,7 @@ IOP::Codec::_tao_release (Codec_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
IOP::Codec::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -508,83 +467,16 @@ const char* IOP::Codec::_interface_repository_id (void) const
return "IDL:omg.org/IOP/Codec:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
IOP::Codec::marshal (TAO_OutputCDR &)
{
return false;
}
// TAO_IDL - Generated from
-// be\be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_Codec (
- ::CORBA::tk_local_interface,
- "IDL:omg.org/IOP/Codec:1.0",
- "Codec");
-
-namespace IOP
-{
- ::CORBA::TypeCode_ptr const _tc_Codec =
- &_tao_tc_IOP_Codec;
-}
-
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/alias_typecode.cpp:50
-
-static TAO::TypeCode::Alias<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_EncodingFormat (
- ::CORBA::tk_alias,
- "IDL:omg.org/IOP/EncodingFormat:1.0",
- "EncodingFormat",
- &CORBA::_tc_short);
-
-namespace IOP
-{
- ::CORBA::TypeCode_ptr const _tc_EncodingFormat =
- &_tao_tc_IOP_EncodingFormat;
-}
-
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_IOP_Encoding[] =
- {
- { "format", &IOP::_tc_EncodingFormat },
- { "major_version", &CORBA::_tc_octet },
- { "minor_version", &CORBA::_tc_octet }
-
- };
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_Encoding (
- ::CORBA::tk_struct,
- "IDL:omg.org/IOP/Encoding:1.0",
- "Encoding",
- _tao_fields_IOP_Encoding,
- 3);
-
-namespace IOP
-{
- ::CORBA::TypeCode_ptr const _tc_Encoding =
- &_tao_tc_IOP_Encoding;
-}
-
-
-
-// TAO_IDL - Generated from
// be\be_visitor_structure/structure_cs.cpp:66
-void
+void
IOP::Encoding::_tao_any_destructor (
void *_tao_void_pointer
)
@@ -595,50 +487,6 @@ IOP::Encoding::_tao_any_destructor (
}
// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_IOP_Encoding_1_2[] =
- {
- { "format", &IOP::_tc_EncodingFormat },
- { "major_version", &CORBA::_tc_octet },
- { "minor_version", &CORBA::_tc_octet },
- { "char_codeset", &CONV_FRAME::_tc_CodeSetId },
- { "wchar_codeset", &CONV_FRAME::_tc_CodeSetId }
-
- };
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_Encoding_1_2 (
- ::CORBA::tk_struct,
- "IDL:omg.org/IOP/Encoding_1_2:1.0",
- "Encoding_1_2",
- _tao_fields_IOP_Encoding_1_2,
- 5);
-
-namespace IOP
-{
- ::CORBA::TypeCode_ptr const _tc_Encoding_1_2 =
- &_tao_tc_IOP_Encoding_1_2;
-}
-
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_structure/structure_cs.cpp:66
-
-void
-IOP::Encoding_1_2::_tao_any_destructor (
- void *_tao_void_pointer
- )
-{
- Encoding_1_2 *_tao_tmp_pointer =
- static_cast<Encoding_1_2 *> (_tao_void_pointer);
- delete _tao_tmp_pointer;
-}
-
-// TAO_IDL - Generated from
// be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for IOP::CodecFactory.
@@ -665,20 +513,20 @@ TAO::Objref_Traits<IOP::CodecFactory>::nil (void)
return IOP::CodecFactory::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<IOP::CodecFactory>::marshal (
IOP::CodecFactory_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// be\be_visitor_exception/exception_cs.cpp:63
IOP::CodecFactory::UnknownEncoding::UnknownEncoding (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0",
"UnknownEncoding"
)
@@ -690,7 +538,7 @@ IOP::CodecFactory::UnknownEncoding::~UnknownEncoding (void)
}
IOP::CodecFactory::UnknownEncoding::UnknownEncoding (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -700,7 +548,7 @@ IOP::CodecFactory::UnknownEncoding::UnknownEncoding (const ::IOP::CodecFactory::
IOP::CodecFactory::UnknownEncoding&
IOP::CodecFactory::UnknownEncoding::operator= (const ::IOP::CodecFactory::UnknownEncoding &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
return *this;
}
@@ -712,28 +560,28 @@ void IOP::CodecFactory::UnknownEncoding::_tao_any_destructor (void *_tao_void_po
}
IOP::CodecFactory::UnknownEncoding *
-IOP::CodecFactory::UnknownEncoding::_downcast ( ::CORBA::Exception *_tao_excp)
+IOP::CodecFactory::UnknownEncoding::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<UnknownEncoding *> (_tao_excp);
}
const IOP::CodecFactory::UnknownEncoding *
-IOP::CodecFactory::UnknownEncoding::_downcast ( ::CORBA::Exception const *_tao_excp)
+IOP::CodecFactory::UnknownEncoding::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const UnknownEncoding *> (_tao_excp);
}
-::CORBA::Exception *IOP::CodecFactory::UnknownEncoding::_alloc (void)
+CORBA::Exception *IOP::CodecFactory::UnknownEncoding::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::IOP::CodecFactory::UnknownEncoding, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
IOP::CodecFactory::UnknownEncoding::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::IOP::CodecFactory::UnknownEncoding (*this),
@@ -752,7 +600,7 @@ void IOP::CodecFactory::UnknownEncoding::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void IOP::CodecFactory::UnknownEncoding::_tao_decode (
@@ -760,194 +608,61 @@ void IOP::CodecFactory::UnknownEncoding::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr IOP::CodecFactory::UnknownEncoding::_tao_type (void) const
+CORBA::TypeCode_ptr IOP::CodecFactory::UnknownEncoding::_tao_type (void) const
{
return ::IOP::CodecFactory::_tc_UnknownEncoding;
}
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_IOP_CodecFactory_UnknownEncoding = 0;
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_CodecFactory_UnknownEncoding (
- ::CORBA::tk_except,
- "IDL:omg.org/IOP/CodecFactory/UnknownEncoding:1.0",
- "UnknownEncoding",
- _tao_fields_IOP_CodecFactory_UnknownEncoding,
- 0);
-
-::CORBA::TypeCode_ptr const IOP::CodecFactory::_tc_UnknownEncoding =
- &_tao_tc_IOP_CodecFactory_UnknownEncoding;
-
-// TAO_IDL - Generated from
-// be\be_visitor_exception/exception_cs.cpp:63
-
-IOP::CodecFactory::UnsupportedCodeset::UnsupportedCodeset (void)
- : ::CORBA::UserException (
- "IDL:omg.org/IOP/CodecFactory/UnsupportedCodeset:1.0",
- "UnsupportedCodeset"
- )
-{
-}
-
-IOP::CodecFactory::UnsupportedCodeset::~UnsupportedCodeset (void)
-{
-}
-
-IOP::CodecFactory::UnsupportedCodeset::UnsupportedCodeset (const ::IOP::CodecFactory::UnsupportedCodeset &_tao_excp)
- : ::CORBA::UserException (
- _tao_excp._rep_id (),
- _tao_excp._name ()
- )
-{
- this->codeset = _tao_excp.codeset;
-}
-
-IOP::CodecFactory::UnsupportedCodeset&
-IOP::CodecFactory::UnsupportedCodeset::operator= (const ::IOP::CodecFactory::UnsupportedCodeset &_tao_excp)
-{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
- this->codeset = _tao_excp.codeset;
- return *this;
-}
-
-void IOP::CodecFactory::UnsupportedCodeset::_tao_any_destructor (void *_tao_void_pointer)
-{
- UnsupportedCodeset *_tao_tmp_pointer =
- static_cast<UnsupportedCodeset *> (_tao_void_pointer);
- delete _tao_tmp_pointer;
-}
-
-IOP::CodecFactory::UnsupportedCodeset *
-IOP::CodecFactory::UnsupportedCodeset::_downcast ( ::CORBA::Exception *_tao_excp)
-{
- return dynamic_cast<UnsupportedCodeset *> (_tao_excp);
-}
-
-const IOP::CodecFactory::UnsupportedCodeset *
-IOP::CodecFactory::UnsupportedCodeset::_downcast ( ::CORBA::Exception const *_tao_excp)
-{
- return dynamic_cast<const UnsupportedCodeset *> (_tao_excp);
-}
-
-::CORBA::Exception *IOP::CodecFactory::UnsupportedCodeset::_alloc (void)
-{
- ::CORBA::Exception *retval = 0;
- ACE_NEW_RETURN (retval, ::IOP::CodecFactory::UnsupportedCodeset, 0);
- return retval;
-}
-
-::CORBA::Exception *
-IOP::CodecFactory::UnsupportedCodeset::_tao_duplicate (void) const
-{
- ::CORBA::Exception *result = 0;
- ACE_NEW_RETURN (
- result,
- ::IOP::CodecFactory::UnsupportedCodeset (*this),
- 0
- );
- return result;
-}
-
-void IOP::CodecFactory::UnsupportedCodeset::_raise (void) const
-{
- TAO_RAISE (*this);
-}
-
-void IOP::CodecFactory::UnsupportedCodeset::_tao_encode (
- TAO_OutputCDR &
- ACE_ENV_ARG_DECL
- ) const
-{
- ACE_THROW ( ::CORBA::MARSHAL ());
-}
-
-void IOP::CodecFactory::UnsupportedCodeset::_tao_decode (
- TAO_InputCDR &
- ACE_ENV_ARG_DECL
- )
-{
- ACE_THROW ( ::CORBA::MARSHAL ());
-}
-
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_exception/exception_ctor.cpp:66
-
-IOP::CodecFactory::UnsupportedCodeset::UnsupportedCodeset (
- ::CONV_FRAME::CodeSetId _tao_codeset
- )
- : ::CORBA::UserException (
- "IDL:omg.org/IOP/CodecFactory/UnsupportedCodeset:1.0",
- "UnsupportedCodeset"
- )
-{
- this->codeset = _tao_codeset;
-}
-
-// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr IOP::CodecFactory::UnsupportedCodeset::_tao_type (void) const
-{
- return ::IOP::CodecFactory::_tc_UnsupportedCodeset;
-}
-
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_IOP_CodecFactory_UnsupportedCodeset[] =
- {
- { "codeset", &CONV_FRAME::_tc_CodeSetId }
-
- };
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_CodecFactory_UnsupportedCodeset (
- ::CORBA::tk_except,
- "IDL:omg.org/IOP/CodecFactory/UnsupportedCodeset:1.0",
- "UnsupportedCodeset",
- _tao_fields_IOP_CodecFactory_UnsupportedCodeset,
- 1);
-
-::CORBA::TypeCode_ptr const IOP::CodecFactory::_tc_UnsupportedCodeset =
- &_tao_tc_IOP_CodecFactory_UnsupportedCodeset;
-
IOP::CodecFactory::CodecFactory (void)
{}
IOP::CodecFactory::~CodecFactory (void)
{}
+void
+IOP::CodecFactory::_tao_any_destructor (void *_tao_void_pointer)
+{
+ CodecFactory *_tao_tmp_pointer =
+ static_cast<CodecFactory *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
IOP::CodecFactory_ptr
IOP::CodecFactory::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return CodecFactory::_duplicate (
- dynamic_cast<CodecFactory_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return CodecFactory::_nil ();
+ }
+
+ CodecFactory_ptr proxy =
+ dynamic_cast<CodecFactory_ptr> (_tao_objref);
+
+ return CodecFactory::_duplicate (proxy);
}
IOP::CodecFactory_ptr
IOP::CodecFactory::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return CodecFactory::_duplicate (
- dynamic_cast<CodecFactory_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return CodecFactory::_nil ();
+ }
+
+ CodecFactory_ptr proxy =
+ dynamic_cast<CodecFactory_ptr> (_tao_objref);
+
+ return CodecFactory::_duplicate (proxy);
}
IOP::CodecFactory_ptr
@@ -957,7 +672,7 @@ IOP::CodecFactory::_duplicate (CodecFactory_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
@@ -967,7 +682,7 @@ IOP::CodecFactory::_tao_release (CodecFactory_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
IOP::CodecFactory::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -1001,204 +716,33 @@ const char* IOP::CodecFactory::_interface_repository_id (void) const
return "IDL:omg.org/IOP/CodecFactory:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
IOP::CodecFactory::marshal (TAO_OutputCDR &)
{
return false;
}
// TAO_IDL - Generated from
-// be\be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_IOP_CodecFactory (
- ::CORBA::tk_local_interface,
- "IDL:omg.org/IOP/CodecFactory:1.0",
- "CodecFactory");
-
-namespace IOP
-{
- ::CORBA::TypeCode_ptr const _tc_CodecFactory =
- &_tao_tc_IOP_CodecFactory;
-}
-
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_structure/any_op_cs.cpp:54
-
-// Copying insertion.
-void operator<<= (
- ::CORBA::Any &_tao_any,
- const IOP::Encoding &_tao_elem
- )
-{
- if (0 == &_tao_elem) // Trying to de-reference NULL object
- _tao_any <<= static_cast<IOP::Encoding *>( 0 ); // Use non-copying insertion of a NULL
- else
- TAO::Any_Dual_Impl_T<IOP::Encoding>::insert_copy (
- _tao_any,
- IOP::Encoding::_tao_any_destructor,
- IOP::_tc_Encoding,
- _tao_elem
- );
-}
-
-// Non-copying insertion.
-void operator<<= (
- ::CORBA::Any &_tao_any,
- IOP::Encoding *_tao_elem
- )
-{
- TAO::Any_Dual_Impl_T<IOP::Encoding>::insert (
- _tao_any,
- IOP::Encoding::_tao_any_destructor,
- IOP::_tc_Encoding,
- _tao_elem
- );
-}
-
-// Extraction to non-const pointer (deprecated).
-::CORBA::Boolean operator>>= (
- const ::CORBA::Any &_tao_any,
- IOP::Encoding *&_tao_elem
- )
-{
- return _tao_any >>= const_cast<
- const IOP::Encoding *&> (
- _tao_elem
- );
-}
-
-// Extraction to const pointer.
-::CORBA::Boolean operator>>= (
- const ::CORBA::Any &_tao_any,
- const IOP::Encoding *&_tao_elem
- )
-{
- return
- TAO::Any_Dual_Impl_T<IOP::Encoding>::extract (
- _tao_any,
- IOP::Encoding::_tao_any_destructor,
- IOP::_tc_Encoding,
- _tao_elem
- );
-}
-
-// TAO_IDL - Generated from
-// be\be_visitor_structure/any_op_cs.cpp:54
-
-// Copying insertion.
-void operator<<= (
- ::CORBA::Any &_tao_any,
- const IOP::Encoding_1_2 &_tao_elem
- )
-{
- if (0 == &_tao_elem) // Trying to de-reference NULL object
- _tao_any <<= static_cast<IOP::Encoding_1_2 *>( 0 ); // Use non-copying insertion of a NULL
- else
- TAO::Any_Dual_Impl_T<IOP::Encoding_1_2>::insert_copy (
- _tao_any,
- IOP::Encoding_1_2::_tao_any_destructor,
- IOP::_tc_Encoding_1_2,
- _tao_elem
- );
-}
-
-// Non-copying insertion.
-void operator<<= (
- ::CORBA::Any &_tao_any,
- IOP::Encoding_1_2 *_tao_elem
- )
-{
- TAO::Any_Dual_Impl_T<IOP::Encoding_1_2>::insert (
- _tao_any,
- IOP::Encoding_1_2::_tao_any_destructor,
- IOP::_tc_Encoding_1_2,
- _tao_elem
- );
-}
-
-// Extraction to non-const pointer (deprecated).
-::CORBA::Boolean operator>>= (
- const ::CORBA::Any &_tao_any,
- IOP::Encoding_1_2 *&_tao_elem
- )
-{
- return _tao_any >>= const_cast<
- const IOP::Encoding_1_2 *&> (
- _tao_elem
- );
-}
-
-// Extraction to const pointer.
-::CORBA::Boolean operator>>= (
- const ::CORBA::Any &_tao_any,
- const IOP::Encoding_1_2 *&_tao_elem
- )
-{
- return
- TAO::Any_Dual_Impl_T<IOP::Encoding_1_2>::extract (
- _tao_any,
- IOP::Encoding_1_2::_tao_any_destructor,
- IOP::_tc_Encoding_1_2,
- _tao_elem
- );
-}
-
-// TAO_IDL - Generated from
// be\be_visitor_structure/cdr_op_cs.cpp:61
-::CORBA::Boolean operator<< (
+CORBA::Boolean operator<< (
TAO_OutputCDR &strm,
const IOP::Encoding &_tao_aggregate
)
{
return
(strm << _tao_aggregate.format) &&
- (strm << ::ACE_OutputCDR::from_octet (_tao_aggregate.major_version)) &&
- (strm << ::ACE_OutputCDR::from_octet (_tao_aggregate.minor_version));
+ (strm << CORBA::Any::from_octet (_tao_aggregate.major_version)) &&
+ (strm << CORBA::Any::from_octet (_tao_aggregate.minor_version));
}
-::CORBA::Boolean operator>> (
+CORBA::Boolean operator>> (
TAO_InputCDR &strm,
IOP::Encoding &_tao_aggregate
)
{
return
(strm >> _tao_aggregate.format) &&
- (strm >> ::ACE_InputCDR::to_octet (_tao_aggregate.major_version)) &&
- (strm >> ::ACE_InputCDR::to_octet (_tao_aggregate.minor_version));
-}
-
-// TAO_IDL - Generated from
-// be\be_visitor_structure/cdr_op_cs.cpp:61
-
-::CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const IOP::Encoding_1_2 &_tao_aggregate
- )
-{
- return
- (strm << _tao_aggregate.format) &&
- (strm << ::ACE_OutputCDR::from_octet (_tao_aggregate.major_version)) &&
- (strm << ::ACE_OutputCDR::from_octet (_tao_aggregate.minor_version)) &&
- (strm << _tao_aggregate.char_codeset) &&
- (strm << _tao_aggregate.wchar_codeset);
-}
-
-::CORBA::Boolean operator>> (
- TAO_InputCDR &strm,
- IOP::Encoding_1_2 &_tao_aggregate
- )
-{
- return
- (strm >> _tao_aggregate.format) &&
- (strm >> ::ACE_InputCDR::to_octet (_tao_aggregate.major_version)) &&
- (strm >> ::ACE_InputCDR::to_octet (_tao_aggregate.minor_version)) &&
- (strm >> _tao_aggregate.char_codeset) &&
- (strm >> _tao_aggregate.wchar_codeset);
+ (strm >> CORBA::Any::to_octet (_tao_aggregate.major_version)) &&
+ (strm >> CORBA::Any::to_octet (_tao_aggregate.minor_version));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CodecFactory/IOP_CodecC.h b/TAO/tao/CodecFactory/IOP_CodecC.h
index d8d3679abf0..2cab40f9767 100644
--- a/TAO/tao/CodecFactory/IOP_CodecC.h
+++ b/TAO/tao/CodecFactory/IOP_CodecC.h
@@ -26,7 +26,7 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
#ifndef _TAO_IDL_ORIG_IOP_CODECC_H_
#define _TAO_IDL_ORIG_IOP_CODECC_H_
@@ -44,39 +44,41 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/CodecFactory/codecfactory_export.h"
-#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
+#include "tao/AnyTypeCode/TypeCode.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Any.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Typecode_typesA.h"
-#include "tao/AnyTypeCode/OctetSeqA.h"
-#include "tao/AnyTypeCode/CONV_FRAMEA.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/VarOut_T.h"
#include "tao/Typecode_typesC.h"
#include "tao/OctetSeqC.h"
-#include "tao/CONV_FRAMEC.h"
#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
#endif
#define TAO_EXPORT_MACRO TAO_CodecFactory_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
+
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace IOP
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_IOP_CODEC__VAR_OUT_CH_)
#define _IOP_CODEC__VAR_OUT_CH_
@@ -105,7 +107,7 @@ namespace IOP
#define _IOP_CODEC_CH_
class TAO_CodecFactory_Export Codec
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef Codec_ptr _ptr_type;
@@ -117,12 +119,12 @@ namespace IOP
static void _tao_release (Codec_ptr obj);
static Codec_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static Codec_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -131,15 +133,15 @@ namespace IOP
return static_cast<Codec_ptr> (0);
}
-
+ static void _tao_any_destructor (void *);
// TAO_IDL - Generated from
- // be\be_visitor_exception/exception_ch.cpp:53
+ // be\be_visitor_exception/exception_ch.cpp:51
#if !defined (_IOP_CODEC_INVALIDTYPEFORENCODING_CH_)
#define _IOP_CODEC_INVALIDTYPEFORENCODING_CH_
- class TAO_CodecFactory_Export InvalidTypeForEncoding : public ::CORBA::UserException
+ class TAO_CodecFactory_Export InvalidTypeForEncoding : public CORBA::UserException
{
public:
@@ -151,12 +153,12 @@ namespace IOP
static void _tao_any_destructor (void *);
- static InvalidTypeForEncoding *_downcast ( ::CORBA::Exception *);
- static const InvalidTypeForEncoding *_downcast ( ::CORBA::Exception const *);
+ static InvalidTypeForEncoding *_downcast (CORBA::Exception *);
+ static const InvalidTypeForEncoding *_downcast (CORBA::Exception const *);
- static ::CORBA::Exception *_alloc (void);
+ static CORBA::Exception *_alloc (void);
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -170,23 +172,26 @@ namespace IOP
ACE_ENV_ARG_DECL
);
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:127
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
+ // be\be_visitor_typecode/typecode_decl.cpp:44
static ::CORBA::TypeCode_ptr const _tc_InvalidTypeForEncoding;
#endif /* end #if !defined */
// TAO_IDL - Generated from
- // be\be_visitor_exception/exception_ch.cpp:53
+ // be\be_visitor_exception/exception_ch.cpp:51
#if !defined (_IOP_CODEC_FORMATMISMATCH_CH_)
#define _IOP_CODEC_FORMATMISMATCH_CH_
- class TAO_CodecFactory_Export FormatMismatch : public ::CORBA::UserException
+ class TAO_CodecFactory_Export FormatMismatch : public CORBA::UserException
{
public:
@@ -198,12 +203,12 @@ namespace IOP
static void _tao_any_destructor (void *);
- static FormatMismatch *_downcast ( ::CORBA::Exception *);
- static const FormatMismatch *_downcast ( ::CORBA::Exception const *);
+ static FormatMismatch *_downcast (CORBA::Exception *);
+ static const FormatMismatch *_downcast (CORBA::Exception const *);
- static ::CORBA::Exception *_alloc (void);
+ static CORBA::Exception *_alloc (void);
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -211,46 +216,49 @@ namespace IOP
TAO_OutputCDR &
ACE_ENV_ARG_DECL
) const;
-
+
virtual void _tao_decode (
TAO_InputCDR &
ACE_ENV_ARG_DECL
);
-
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:127
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
static ::CORBA::TypeCode_ptr const _tc_FormatMismatch;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be\be_visitor_exception/exception_ch.cpp:53
+ // be\be_visitor_exception/exception_ch.cpp:51
#if !defined (_IOP_CODEC_TYPEMISMATCH_CH_)
#define _IOP_CODEC_TYPEMISMATCH_CH_
-
- class TAO_CodecFactory_Export TypeMismatch : public ::CORBA::UserException
+
+ class TAO_CodecFactory_Export TypeMismatch : public CORBA::UserException
{
public:
-
+
TypeMismatch (void);
TypeMismatch (const TypeMismatch &);
~TypeMismatch (void);
TypeMismatch &operator= (const TypeMismatch &);
-
+
static void _tao_any_destructor (void *);
-
- static TypeMismatch *_downcast ( ::CORBA::Exception *);
- static const TypeMismatch *_downcast ( ::CORBA::Exception const *);
-
- static ::CORBA::Exception *_alloc (void);
-
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+
+ static TypeMismatch *_downcast (CORBA::Exception *);
+ static const TypeMismatch *_downcast (CORBA::Exception const *);
+
+ static CORBA::Exception *_alloc (void);
+
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -258,202 +266,170 @@ namespace IOP
TAO_OutputCDR &
ACE_ENV_ARG_DECL
) const;
-
+
virtual void _tao_decode (
TAO_InputCDR &
ACE_ENV_ARG_DECL
);
-
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:127
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
static ::CORBA::TypeCode_ptr const _tc_TypeMismatch;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::CORBA::OctetSeq * encode (
const ::CORBA::Any & data
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::IOP::Codec::InvalidTypeForEncoding
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Any * decode (
+
+ virtual CORBA::Any * decode (
const ::CORBA::OctetSeq & data
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::IOP::Codec::FormatMismatch
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::CORBA::OctetSeq * encode_value (
const ::CORBA::Any & data
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::IOP::Codec::InvalidTypeForEncoding
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Any * decode_value (
+
+ virtual CORBA::Any * decode_value (
const ::CORBA::OctetSeq & data,
::CORBA::TypeCode_ptr tc
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::IOP::Codec::FormatMismatch,
::IOP::Codec::TypeMismatch
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
Codec (void);
-
+
virtual ~Codec (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
Codec (const Codec &);
-
+
void operator= (const Codec &);
};
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
extern TAO_CodecFactory_Export ::CORBA::TypeCode_ptr const _tc_Codec;
-
+
// TAO_IDL - Generated from
// be\be_visitor_typedef/typedef_ch.cpp:379
-
+
typedef CORBA::Short EncodingFormat;
typedef CORBA::Short_out EncodingFormat_out;
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
extern TAO_CodecFactory_Export ::CORBA::TypeCode_ptr const _tc_EncodingFormat;
-
+
// TAO_IDL - Generated from
// be\be_visitor_constant/constant_ch.cpp:52
-
+
const IOP::EncodingFormat ENCODING_CDR_ENCAPS = 0;
-
+
// TAO_IDL - Generated from
// be\be_type.cpp:258
-
+
struct Encoding;
-
+
typedef
TAO_Fixed_Var_T<
Encoding
>
Encoding_var;
-
+
typedef
Encoding &
Encoding_out;
-
+
// TAO_IDL - Generated from
- // be\be_visitor_structure/structure_ch.cpp:57
-
+ // be\be_visitor_structure/structure_ch.cpp:52
+
struct TAO_CodecFactory_Export Encoding
{
typedef Encoding_var _var_type;
-
+
static void _tao_any_destructor (void *);
IOP::EncodingFormat format;
- ::CORBA::Octet major_version;
- ::CORBA::Octet minor_version;
+ CORBA::Octet major_version;
+ CORBA::Octet minor_version;
};
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
extern TAO_CodecFactory_Export ::CORBA::TypeCode_ptr const _tc_Encoding;
-
- // TAO_IDL - Generated from
- // be\be_type.cpp:258
-
- struct Encoding_1_2;
-
- typedef
- TAO_Fixed_Var_T<
- Encoding_1_2
- >
- Encoding_1_2_var;
-
- typedef
- Encoding_1_2 &
- Encoding_1_2_out;
-
- // TAO_IDL - Generated from
- // be\be_visitor_structure/structure_ch.cpp:57
-
- struct TAO_CodecFactory_Export Encoding_1_2
- {
- typedef Encoding_1_2_var _var_type;
-
- static void _tao_any_destructor (void *);
- IOP::EncodingFormat format;
- ::CORBA::Octet major_version;
- ::CORBA::Octet minor_version;
- CONV_FRAME::CodeSetId char_codeset;
- CONV_FRAME::CodeSetId wchar_codeset;
- };
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_CodecFactory_Export ::CORBA::TypeCode_ptr const _tc_Encoding_1_2;
-
+
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_IOP_CODECFACTORY__VAR_OUT_CH_)
#define _IOP_CODECFACTORY__VAR_OUT_CH_
-
+
class CodecFactory;
typedef CodecFactory *CodecFactory_ptr;
-
+
typedef
TAO_Objref_Var_T<
CodecFactory
>
CodecFactory_var;
-
+
typedef
TAO_Objref_Out_T<
CodecFactory
@@ -461,114 +437,66 @@ namespace IOP
CodecFactory_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_IOP_CODECFACTORY_CH_)
#define _IOP_CODECFACTORY_CH_
-
+
class TAO_CodecFactory_Export CodecFactory
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef CodecFactory_ptr _ptr_type;
typedef CodecFactory_var _var_type;
-
+
// The static operations.
static CodecFactory_ptr _duplicate (CodecFactory_ptr obj);
-
+
static void _tao_release (CodecFactory_ptr obj);
-
+
static CodecFactory_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static CodecFactory_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static CodecFactory_ptr _nil (void)
{
return static_cast<CodecFactory_ptr> (0);
}
-
-
-
+
+ static void _tao_any_destructor (void *);
+
// TAO_IDL - Generated from
- // be\be_visitor_exception/exception_ch.cpp:53
+ // be\be_visitor_exception/exception_ch.cpp:51
#if !defined (_IOP_CODECFACTORY_UNKNOWNENCODING_CH_)
#define _IOP_CODECFACTORY_UNKNOWNENCODING_CH_
-
- class TAO_CodecFactory_Export UnknownEncoding : public ::CORBA::UserException
+
+ class TAO_CodecFactory_Export UnknownEncoding : public CORBA::UserException
{
public:
-
+
UnknownEncoding (void);
UnknownEncoding (const UnknownEncoding &);
~UnknownEncoding (void);
UnknownEncoding &operator= (const UnknownEncoding &);
-
- static void _tao_any_destructor (void *);
-
- static UnknownEncoding *_downcast ( ::CORBA::Exception *);
- static const UnknownEncoding *_downcast ( ::CORBA::Exception const *);
-
- static ::CORBA::Exception *_alloc (void);
-
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
- virtual void _raise (void) const;
+ static void _tao_any_destructor (void *);
- virtual void _tao_encode (
- TAO_OutputCDR &
- ACE_ENV_ARG_DECL
- ) const;
-
- virtual void _tao_decode (
- TAO_InputCDR &
- ACE_ENV_ARG_DECL
- );
-
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
- };
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- static ::CORBA::TypeCode_ptr const _tc_UnknownEncoding;
+ static UnknownEncoding *_downcast (CORBA::Exception *);
+ static const UnknownEncoding *_downcast (CORBA::Exception const *);
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be\be_visitor_exception/exception_ch.cpp:53
+ static CORBA::Exception *_alloc (void);
-#if !defined (_IOP_CODECFACTORY_UNSUPPORTEDCODESET_CH_)
-#define _IOP_CODECFACTORY_UNSUPPORTEDCODESET_CH_
-
- class TAO_CodecFactory_Export UnsupportedCodeset : public ::CORBA::UserException
- {
- public:
-
- CONV_FRAME::CodeSetId codeset;
- UnsupportedCodeset (void);
- UnsupportedCodeset (const UnsupportedCodeset &);
- ~UnsupportedCodeset (void);
-
- UnsupportedCodeset &operator= (const UnsupportedCodeset &);
-
- static void _tao_any_destructor (void *);
-
- static UnsupportedCodeset *_downcast ( ::CORBA::Exception *);
- static const UnsupportedCodeset *_downcast ( ::CORBA::Exception const *);
-
- static ::CORBA::Exception *_alloc (void);
-
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -576,87 +504,70 @@ namespace IOP
TAO_OutputCDR &
ACE_ENV_ARG_DECL
) const;
-
+
virtual void _tao_decode (
TAO_InputCDR &
ACE_ENV_ARG_DECL
);
-
+
// TAO_IDL - Generated from
- // be\be_visitor_exception/exception_ctor.cpp:66
-
- UnsupportedCodeset (
- CONV_FRAME::CodeSetId _tao_codeset
- );
-
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+ // be\be_visitor_exception/exception_ch.cpp:127
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- static ::CORBA::TypeCode_ptr const _tc_UnsupportedCodeset;
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ static ::CORBA::TypeCode_ptr const _tc_UnknownEncoding;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::IOP::Codec_ptr create_codec (
const ::IOP::Encoding & enc
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::IOP::CodecFactory::UnknownEncoding
)) = 0;
-
- // TAO_IDL - Generated from
- // be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::IOP::Codec_ptr create_codec_with_codesets (
- const ::IOP::Encoding_1_2 & enc
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::IOP::CodecFactory::UnknownEncoding,
- ::IOP::CodecFactory::UnsupportedCodeset
- )) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
CodecFactory (void);
-
+
virtual ~CodecFactory (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
CodecFactory (const CodecFactory &);
-
+
void operator= (const CodecFactory &);
};
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
extern TAO_CodecFactory_Export ::CORBA::TypeCode_ptr const _tc_CodecFactory;
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module IOP
@@ -667,9 +578,9 @@ namespace IOP
namespace TAO
{
-#if !defined (_IOP_CODEC__TRAITS_)
-#define _IOP_CODEC__TRAITS_
-
+#if !defined (_IOP_CODEC__TRAITS_CH_)
+#define _IOP_CODEC__TRAITS_CH_
+
template<>
struct TAO_CodecFactory_Export Objref_Traits< ::IOP::Codec>
{
@@ -680,7 +591,7 @@ namespace TAO
::IOP::Codec_ptr
);
static ::IOP::Codec_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::IOP::Codec_ptr p,
TAO_OutputCDR & cdr
);
@@ -688,9 +599,9 @@ namespace TAO
#endif /* end #if !defined */
-#if !defined (_IOP_CODECFACTORY__TRAITS_)
-#define _IOP_CODECFACTORY__TRAITS_
-
+#if !defined (_IOP_CODECFACTORY__TRAITS_CH_)
+#define _IOP_CODECFACTORY__TRAITS_CH_
+
template<>
struct TAO_CodecFactory_Export Objref_Traits< ::IOP::CodecFactory>
{
@@ -701,7 +612,7 @@ namespace TAO
::IOP::CodecFactory_ptr
);
static ::IOP::CodecFactory_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::IOP::CodecFactory_ptr p,
TAO_OutputCDR & cdr
);
@@ -711,38 +622,78 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_visitor_structure/any_op_ch.cpp:53
+// be\be_visitor_interface/any_op_ch.cpp:52
-TAO_CodecFactory_Export void operator<<= (::CORBA::Any &, const IOP::Encoding &); // copying version
-TAO_CodecFactory_Export void operator<<= (::CORBA::Any &, IOP::Encoding*); // noncopying version
-TAO_CodecFactory_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, IOP::Encoding *&); // deprecated
-TAO_CodecFactory_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const IOP::Encoding *&);
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::Codec_ptr); // copying
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::Codec_ptr *); // non-copying
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec_ptr &);
// TAO_IDL - Generated from
-// be\be_visitor_structure/any_op_ch.cpp:53
+// be\be_visitor_exception/any_op_ch.cpp:52
-TAO_CodecFactory_Export void operator<<= (::CORBA::Any &, const IOP::Encoding_1_2 &); // copying version
-TAO_CodecFactory_Export void operator<<= (::CORBA::Any &, IOP::Encoding_1_2*); // noncopying version
-TAO_CodecFactory_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, IOP::Encoding_1_2 *&); // deprecated
-TAO_CodecFactory_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const IOP::Encoding_1_2 *&);
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, const IOP::Codec::InvalidTypeForEncoding &); // copying version
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::Codec::InvalidTypeForEncoding*); // noncopying version
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec::InvalidTypeForEncoding *&); // deprecated
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Codec::InvalidTypeForEncoding *&);
// TAO_IDL - Generated from
-// be\be_visitor_structure/cdr_op_ch.cpp:54
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, const IOP::Codec::FormatMismatch &); // copying version
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::Codec::FormatMismatch*); // noncopying version
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec::FormatMismatch *&); // deprecated
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Codec::FormatMismatch *&);
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, const IOP::Codec::TypeMismatch &); // copying version
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::Codec::TypeMismatch*); // noncopying version
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Codec::TypeMismatch *&); // deprecated
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Codec::TypeMismatch *&);
+
+// TAO_IDL - Generated from
+// be\be_visitor_structure/any_op_ch.cpp:52
-TAO_CodecFactory_Export ::CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::Encoding &);
-TAO_CodecFactory_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, IOP::Encoding &);
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, const IOP::Encoding &); // copying version
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::Encoding*); // noncopying version
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::Encoding *&); // deprecated
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::Encoding *&);
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::CodecFactory_ptr); // copying
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::CodecFactory_ptr *); // non-copying
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::CodecFactory_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, const IOP::CodecFactory::UnknownEncoding &); // copying version
+TAO_CodecFactory_Export void operator<<= (CORBA::Any &, IOP::CodecFactory::UnknownEncoding*); // noncopying version
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, IOP::CodecFactory::UnknownEncoding *&); // deprecated
+TAO_CodecFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, const IOP::CodecFactory::UnknownEncoding *&);
// TAO_IDL - Generated from
// be\be_visitor_structure/cdr_op_ch.cpp:54
-TAO_CodecFactory_Export ::CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::Encoding_1_2 &);
-TAO_CodecFactory_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, IOP::Encoding_1_2 &);
+TAO_CodecFactory_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const IOP::Encoding &);
+TAO_CodecFactory_Export CORBA::Boolean operator>> (TAO_InputCDR &, IOP::Encoding &);
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
#endif /* ifndef */
+
+
diff --git a/TAO/tao/CodecFactory/IOP_Codec_include.pidl b/TAO/tao/CodecFactory/IOP_Codec_include.pidl
index 7cb54a935a3..734a0a7dac7 100644
--- a/TAO/tao/CodecFactory/IOP_Codec_include.pidl
+++ b/TAO/tao/CodecFactory/IOP_Codec_include.pidl
@@ -1,5 +1,3 @@
-// -*- IDL -*-
-
/**
* @file IOP_Codec_include.pidl
*
@@ -22,8 +20,6 @@
* -Wb,export_include="tao/CodecFactory/codecfactory_export.h" \
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* IOP_Codec_include.pidl
*
* 2. Then change this line in IOP_Codec_includeC.h:
@@ -39,6 +35,6 @@
#define _IOP_CODEC_INCLUDE_IDL_
///FUZZ: disable check_for_include/
-#include "tao/CodecFactory/IOP_Codec.pidl"
+#include <tao/CodecFactory/IOP_Codec.pidl>
#endif /* _IOP_CODEC_INCLUDE_IDL_ */
diff --git a/TAO/tao/CodecFactory/IOP_Codec_includeA.h b/TAO/tao/CodecFactory/IOP_Codec_includeA.h
deleted file mode 100644
index 77742d1e1be..00000000000
--- a/TAO/tao/CodecFactory/IOP_Codec_includeA.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:390
-
-#ifndef _TAO_IDL_ORIG_IOPCODEC_INCLUDEA_H_
-#define _TAO_IDL_ORIG_IOPCODEC_INCLUDEA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/CodecFactory/IOP_Codec_includeC.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include /**/ "ace/post.h"
-#endif /* ifndef */
-
diff --git a/TAO/tao/CodecFactory/IOP_Codec_includeC.h b/TAO/tao/CodecFactory/IOP_Codec_includeC.h
index dae38bfa7b4..7c81e3cfcf6 100644
--- a/TAO/tao/CodecFactory/IOP_Codec_includeC.h
+++ b/TAO/tao/CodecFactory/IOP_Codec_includeC.h
@@ -26,7 +26,7 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
#ifndef _TAO_IDL_ORIG_IOP_CODEC_INCLUDEC_H_
#define _TAO_IDL_ORIG_IOP_CODEC_INCLUDEC_H_
@@ -42,6 +42,7 @@
#include "tao/CodecFactory/codecfactory_export.h"
#include "tao/CodecFactory/CodecFactory.h"
+
#include "tao/ORB.h"
#include "tao/Environment.h"
@@ -50,20 +51,33 @@
#endif
#define TAO_EXPORT_MACRO TAO_CodecFactory_Export
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_traits.cpp:61
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/CodecFactory/diff/IOP_Codec.diff b/TAO/tao/CodecFactory/diff/IOP_Codec.diff
index 28debd5e9b0..46a67dc755f 100644
--- a/TAO/tao/CodecFactory/diff/IOP_Codec.diff
+++ b/TAO/tao/CodecFactory/diff/IOP_Codec.diff
@@ -1,5 +1,5 @@
---- orig/IOP_COdecC.h 2005-10-24 10:11:07.404753600 +0200
-+++ IOP_COdecC.h 2005-10-24 15:16:18.314548800 +0200
+--- orig/IOP_COdecC.h 2005-06-07 13:09:58.255201600 +0200
++++ IOP_COdecC.h 2005-06-07 13:45:14.618382400 +0200
@@ -33,6 +33,9 @@
#include /**/ "ace/pre.h"
@@ -10,14 +10,25 @@
#include "ace/config-all.h"
---- orig/IOP_COdecC.cpp 2005-10-24 10:11:07.404753600 +0200
-+++ IOP_COdecC.cpp 2005-10-24 15:16:27.988459200 +0200
+--- orig/IOP_COdecC.cpp 2005-06-07 13:09:58.255201600 +0200
++++ IOP_COdecC.cpp 2005-06-07 13:43:36.437204800 +0200
@@ -29,7 +29,7 @@
- // be\be_codegen.cpp:277
+ // be\be_codegen.cpp:291
-#include "IOP_CodecC.h"
+#include "CodecFactory.h"
- #include "tao/AnyTypeCode/Null_RefCount_Policy.h"
- #include "tao/AnyTypeCode/TypeCode_Constants.h"
- #include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+ #include "tao/CDR.h"
+ #include "tao/ORB_Core.h"
+ #include "ace/OS_NS_string.h"
+--- orig/IOP_COdecA.cpp 2005-06-07 13:09:58.255201600 +0200
++++ IOP_COdecA.cpp 2005-06-07 13:43:11.170873600 +0200
+@@ -25,7 +25,7 @@
+ // Information about TAO is available at:
+ // http://www.cs.wustl.edu/~schmidt/TAO.html
+
+-#include "IOP_CodecC.h"
++#include "CodecFactory.h"
+ #include "tao/Null_RefCount_Policy.h"
+ #include "tao/TypeCode_Constants.h"
+ #include "tao/Alias_TypeCode_Static.h"
diff --git a/TAO/tao/Codeset/Codeset.cpp b/TAO/tao/Codeset/Codeset.cpp
index c946ad4c3b5..aaf6c477eae 100644
--- a/TAO/tao/Codeset/Codeset.cpp
+++ b/TAO/tao/Codeset/Codeset.cpp
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// =================================================================
/**
@@ -7,20 +7,20 @@
* $Id$
*
* @author Phil Mesnier <mesnier_p@ociweb.com>
+ *
*/
// =================================================================
-#include "tao/Codeset/Codeset.h"
-#include "tao/Codeset/Codeset_Manager_Factory.h"
-#include "tao/Codeset/UTF8_Latin1_Factory.h"
-#include "tao/Codeset/UTF16_BOM_Factory.h"
+#include "Codeset.h"
+#include "Codeset_Manager_Factory.h"
+#include "UTF8_Latin1_Factory.h"
+#include "UTF16_BOM_Factory.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (Codeset, Codeset, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
int
TAO_Codeset_Initializer::init (void)
@@ -40,9 +40,7 @@ TAO_Codeset_Initializer::init (void)
return result;
}
- result += ACE_Service_Config::process_directive
+ result += ACE_Service_Config::process_directive
(ace_svc_desc_TAO_Codeset_Manager_Factory,1); // force replacement
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/Codeset.h b/TAO/tao/Codeset/Codeset.h
index 73dc459283d..74f3b41881b 100644
--- a/TAO/tao/Codeset/Codeset.h
+++ b/TAO/tao/Codeset/Codeset.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -16,15 +17,12 @@
#include /**/ "ace/pre.h"
-#include "tao/Codeset/codeset_export.h"
+#include "codeset_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Codeset_Export TAO_Codeset_Initializer
{
@@ -36,8 +34,6 @@ public:
static int
TAO_Requires_Codeset_Initializer = TAO_Codeset_Initializer::init ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CODESET_H */
diff --git a/TAO/tao/Codeset/Codeset_Descriptor.cpp b/TAO/tao/Codeset/Codeset_Descriptor.cpp
index 89e687db0d4..45a67353708 100644
--- a/TAO/tao/Codeset/Codeset_Descriptor.cpp
+++ b/TAO/tao/Codeset/Codeset_Descriptor.cpp
@@ -17,8 +17,8 @@
//
// ============================================================================
-#include "tao/Codeset/Codeset_Descriptor.h"
-#include "tao/Codeset/Codeset_Translator_Factory.h"
+#include "Codeset_Descriptor.h"
+#include "Codeset_Translator_Factory.h"
#include "ace/Codeset_Registry.h"
#include "ace/Log_Msg.h"
@@ -28,8 +28,6 @@ ACE_RCSID (Codeset,
Codeset_Manager_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Codeset_Descriptor::TAO_Codeset_Descriptor ()
:ncs_ (0),
max_bytes_ (1),
@@ -57,10 +55,10 @@ TAO_Codeset_Descriptor::ncs (const ACE_TCHAR *name)
{
ACE_CDR::ULong n = 0;
if (ACE_Codeset_Registry::locale_to_registry
- (ACE_TEXT_ALWAYS_CHAR(name), n) == 0)
+ (ACE_TEXT_TO_CHAR_IN(name), n) == 0)
{
char **endPtr =0;
- n = ACE_OS::strtoul(ACE_TEXT_ALWAYS_CHAR(name),
+ n = ACE_OS::strtoul(ACE_TEXT_TO_CHAR_IN(name),
endPtr, 0);
}
this->ncs(n);
@@ -131,5 +129,3 @@ TAO_Codeset_Descriptor::translators (void)
{
return this->trans_base_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/Codeset_Descriptor.h b/TAO/tao/Codeset/Codeset_Descriptor.h
index a0a8b89363c..164db546916 100644
--- a/TAO/tao/Codeset/Codeset_Descriptor.h
+++ b/TAO/tao/Codeset/Codeset_Descriptor.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Codeset/codeset_export.h"
+#include "codeset_export.h"
#include "ace/CDR_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -24,8 +24,6 @@
#include "tao/Codeset_Descriptor_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Codeset_Translator_Factory;
class TAO_Codeset_Export TAO_Codeset_Descriptor
@@ -58,8 +56,6 @@ private:
Translator_Node *trans_base_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CODESET_DESCRIPTOR_H */
diff --git a/TAO/tao/Codeset/Codeset_Manager_Factory.cpp b/TAO/tao/Codeset/Codeset_Manager_Factory.cpp
index 6becf8963c0..46a4b8d5b7f 100644
--- a/TAO/tao/Codeset/Codeset_Manager_Factory.cpp
+++ b/TAO/tao/Codeset/Codeset_Manager_Factory.cpp
@@ -11,14 +11,12 @@
*/
// =================================================================
-#include "tao/Codeset/Codeset_Manager_Factory.h"
+#include "Codeset_Manager_Factory.h"
#include "ace/Service_Config.h"
-#include "tao/Codeset/Codeset_Manager_i.h"
+#include "Codeset_Manager_i.h"
ACE_RCSID (Codeset, Codeset_Manager_Factory, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Codeset_Manager_Factory::~TAO_Codeset_Manager_Factory ()
{
}
@@ -39,8 +37,6 @@ TAO_Codeset_Manager_Factory::create ()
return csm;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_Codeset, TAO_Codeset_Manager_Factory)
ACE_STATIC_SVC_DEFINE (TAO_Codeset_Manager_Factory,
ACE_TEXT ("TAO_Codeset"),
diff --git a/TAO/tao/Codeset/Codeset_Manager_Factory.h b/TAO/tao/Codeset/Codeset_Manager_Factory.h
index 4651728556b..103ba9b52f8 100644
--- a/TAO/tao/Codeset/Codeset_Manager_Factory.h
+++ b/TAO/tao/Codeset/Codeset_Manager_Factory.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Codeset/codeset_export.h"
+#include "codeset_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,8 +29,6 @@
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Codeset_Manager_Factory
*
@@ -47,7 +45,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DECLARE (TAO_Codeset_Manager_Factory)
ACE_FACTORY_DECLARE (TAO_Codeset, TAO_Codeset_Manager_Factory)
diff --git a/TAO/tao/Codeset/Codeset_Manager_i.cpp b/TAO/tao/Codeset/Codeset_Manager_i.cpp
index 25f8d360848..2beb2e13cc2 100644
--- a/TAO/tao/Codeset/Codeset_Manager_i.cpp
+++ b/TAO/tao/Codeset/Codeset_Manager_i.cpp
@@ -9,10 +9,10 @@
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
-#include "tao/Codeset/Codeset_Descriptor.h"
-#include "tao/Codeset/Codeset_Manager_i.h"
-#include "tao/Codeset/Codeset_Translator_Factory.h"
-#include "tao/Codeset/Codeset.h"
+#include "Codeset_Descriptor.h"
+#include "Codeset_Manager_i.h"
+#include "Codeset_Translator_Factory.h"
+#include "Codeset.h"
#include "ace/Dynamic_Service.h"
#include "ace/Codeset_Registry.h"
@@ -52,8 +52,6 @@ ACE_RCSID (Codeset,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// NCS for char is defaulted to ISO 8859-1:1987; Latin Alphabet No. 1
CONV_FRAME::CodeSetId
TAO_Codeset_Manager_i::default_char_codeset = TAO_DEFAULT_CHAR_CODESET_ID;
@@ -100,7 +98,7 @@ void
TAO_Codeset_Manager_i::set_tcs (TAO_Profile &theProfile,
TAO_Transport &trans)
{
- /// If tcs is already set on the transport then do not process,
+ /// If tcs is already set on the transport then donot process,
/// use existing transport as CDR have translators set.
TAO_Tagged_Components& theTaggedComp = theProfile.tagged_components ();
@@ -122,8 +120,8 @@ TAO_Codeset_Manager_i::set_tcs (TAO_Profile &theProfile,
ACE_TEXT ("TAO (%P|%t) - Codeset_Manager_i::set_tcs, ")
ACE_TEXT ("No codeset component in profile\n")));
- // These are the "fallback" codeset ids for use if no context is
- // available
+ // These are the "fallback" codeset ids for use if no context is
+ // available
remote.ForCharData.native_code_set =
TAO_CODESET_ID_XOPEN_UTF_8;
remote.ForWcharData.native_code_set =
@@ -218,7 +216,7 @@ TAO_Codeset_Manager_i::process_service_context (TAO_ServerRequest &request)
void
TAO_Codeset_Manager_i::generate_service_context (TAO_Operation_Details &opd,
- TAO_Transport &trans)
+ TAO_Transport &trans)
{
TAO_Service_Context &service_cntx = opd.request_service_context ();
CONV_FRAME::CodeSetContext codeset_cntx;
@@ -257,7 +255,7 @@ TAO_Codeset_Manager_i::generate_service_context (TAO_Operation_Details &opd,
/// Checks whether the NCS is a part of CCS
int
TAO_Codeset_Manager_i::isElementOf (CONV_FRAME::CodeSetId id,
- CONV_FRAME::CodeSetComponent &cs_comp)
+ CONV_FRAME::CodeSetComponent &cs_comp)
{
for (CORBA::ULong i = 0L;
i < cs_comp.conversion_code_sets.length ();
@@ -273,7 +271,7 @@ TAO_Codeset_Manager_i::isElementOf (CONV_FRAME::CodeSetId id,
/// Find the Intersection of Client and Server CCS's
CONV_FRAME::CodeSetId
TAO_Codeset_Manager_i::intersectionOf (CONV_FRAME::CodeSetComponent &cs_comp1,
- CONV_FRAME::CodeSetComponent &cs_comp2)
+ CONV_FRAME::CodeSetComponent &cs_comp2)
{
for(CORBA::ULong index = 0L;
index < cs_comp1.conversion_code_sets.length();
@@ -290,7 +288,7 @@ TAO_Codeset_Manager_i::intersectionOf (CONV_FRAME::CodeSetComponent &cs_comp1,
int
TAO_Codeset_Manager_i::isCompatible(CONV_FRAME::CodeSetId cs1,
- CONV_FRAME::CodeSetId cs2 )
+ CONV_FRAME::CodeSetId cs2 )
{
// Call the is_compatible method of ACE_Codeset_Registry
return ACE_Codeset_Registry::is_compatible(cs1,cs2);
@@ -299,7 +297,7 @@ TAO_Codeset_Manager_i::isCompatible(CONV_FRAME::CodeSetId cs1,
/// returns the TCS for Char / Wchar
CONV_FRAME::CodeSetId
TAO_Codeset_Manager_i::computeTCS (CONV_FRAME::CodeSetComponent &remote,
- CONV_FRAME::CodeSetComponent &local )
+ CONV_FRAME::CodeSetComponent &local )
{
if (remote.native_code_set == local.native_code_set)
{
@@ -403,7 +401,8 @@ TAO_Codeset_Manager_i::open(void)
}
}
-// Initialise the specific type codeset factories
+
+/// Initialise the specific type codeset factories
int
TAO_Codeset_Manager_i::init_ccs (TAO_Codeset_Descriptor& cd,
CONV_FRAME::CodeSetComponent& cs_comp)
@@ -418,7 +417,7 @@ TAO_Codeset_Manager_i::init_ccs (TAO_Codeset_Descriptor& cd,
{
tlist->translator_factory_ =
ACE_Dynamic_Service<TAO_Codeset_Translator_Factory>::instance
- (ACE_TEXT_ALWAYS_CHAR (tlist->name_));
+ (ACE_TEXT_TO_CHAR_IN (tlist->name_));
if (tlist->translator_factory_ == 0)
{
@@ -467,6 +466,7 @@ TAO_Codeset_Manager_i::init_ccs (TAO_Codeset_Descriptor& cd,
return 0;
}
+
TAO_Codeset_Translator_Base *
TAO_Codeset_Manager_i::get_char_trans (CONV_FRAME::CodeSetId tcs)
{
@@ -486,7 +486,7 @@ TAO_Codeset_Manager_i::get_wchar_trans (CONV_FRAME::CodeSetId tcs)
TAO_Codeset_Translator_Base *
TAO_Codeset_Manager_i::get_translator_i (TAO_Codeset_Descriptor& cd,
- CONV_FRAME::CodeSetId tcs)
+ CONV_FRAME::CodeSetId tcs)
{
for (TAO_Codeset_Descriptor::Translator_Node *tlist = cd.translators();
tlist; tlist = tlist->next_)
@@ -498,12 +498,3 @@ TAO_Codeset_Manager_i::get_translator_i (TAO_Codeset_Descriptor& cd,
return 0;
}
-void
-TAO_Codeset_Manager_i::get_ncs (CONV_FRAME::CodeSetId &ncsc,
- CONV_FRAME::CodeSetId &ncsw)
-{
- ncsc = this->char_descriptor_.ncs();
- ncsw = this->wchar_descriptor_.ncs();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/Codeset_Manager_i.h b/TAO/tao/Codeset/Codeset_Manager_i.h
index f5ca8491ca3..fe6f6b7b09c 100644
--- a/TAO/tao/Codeset/Codeset_Manager_i.h
+++ b/TAO/tao/Codeset/Codeset_Manager_i.h
@@ -25,11 +25,8 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Unbounded_Set.h"
-#include "tao/Codeset/codeset_export.h"
-#include "tao/Codeset/Codeset_Descriptor.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "codeset_export.h"
+#include "Codeset_Descriptor.h"
class TAO_Profile;
class TAO_Transport;
@@ -132,8 +129,6 @@ private:
TAO_Codeset_Translator_Base * get_translator_i (TAO_Codeset_Descriptor&,
CONV_FRAME::CodeSetId);
- void get_ncs (CONV_FRAME::CodeSetId &ncsc, CONV_FRAME::CodeSetId& ncsw);
-
// The CodeSetComponentInfo struct contains all of the information
// regarding the code sets this application recognizes. This is
// where the native code set for both char and wchar are stored.
@@ -143,7 +138,6 @@ private:
TAO_Codeset_Descriptor wchar_descriptor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Codeset/Codeset_Translator_Factory.cpp b/TAO/tao/Codeset/Codeset_Translator_Factory.cpp
index bd3a915c51d..affd4752199 100644
--- a/TAO/tao/Codeset/Codeset_Translator_Factory.cpp
+++ b/TAO/tao/Codeset/Codeset_Translator_Factory.cpp
@@ -17,15 +17,13 @@
//
// ============================================================================
-#include "tao/Codeset/Codeset_Translator_Factory.h"
+#include "Codeset_Translator_Factory.h"
#include "tao/CDR.h"
ACE_RCSID (Codeset,
Codeset_Translator_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Codeset_Translator_Factory::TAO_Codeset_Translator_Factory ()
{
@@ -77,5 +75,3 @@ TAO_Codeset_Translator_Factory::assign_i (
{
cdr->wchar_translator(trans);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/Codeset_Translator_Factory.h b/TAO/tao/Codeset/Codeset_Translator_Factory.h
index 518a168de63..105afa3dc65 100644
--- a/TAO/tao/Codeset/Codeset_Translator_Factory.h
+++ b/TAO/tao/Codeset/Codeset_Translator_Factory.h
@@ -8,7 +8,7 @@
*
* @author Phil Mesnier <mesnier_p@ociweb.com>
*/
-// ===================================================================
+// =========================
#ifndef TAO_CODESET_TRANSLATOR_FACTORY_H
#define TAO_CODESET_TRANSLATOR_FACTORY_H
@@ -22,18 +22,14 @@
#include "tao/CONV_FRAMEC.h"
#include "tao/Codeset_Translator_Base.h"
-#include "tao/Codeset/codeset_export.h"
+#include "codeset_export.h"
+class TAO_InputCDR;
+class TAO_OutputCDR;
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Char_Codeset_Translator;
class ACE_WChar_Codeset_Translator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_InputCDR;
-class TAO_OutputCDR;
// ****************************************************************
@@ -83,8 +79,6 @@ protected:
void assign_i (TAO_OutputCDR *, ACE_WChar_Codeset_Translator* ) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// Get the template includes last
#include "tao/Codeset/Codeset_Translator_Factory_T.h"
diff --git a/TAO/tao/Codeset/Codeset_Translator_Factory_T.cpp b/TAO/tao/Codeset/Codeset_Translator_Factory_T.cpp
index 734417e9934..37d327ea80e 100644
--- a/TAO/tao/Codeset/Codeset_Translator_Factory_T.cpp
+++ b/TAO/tao/Codeset/Codeset_Translator_Factory_T.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
// ============================================================================
@@ -18,12 +19,10 @@
#ifndef TAO_CODESET_TRANSLATOR_FACTORY_T_CPP
#define TAO_CODESET_TRANSLATOR_FACTORY_T_CPP
-#include "tao/Codeset/Codeset_Translator_Factory_T.h"
+#include "Codeset_Translator_Factory_T.h"
#include "tao/debug.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class NCS_TO_TCS>
TAO_Codeset_Translator_Factory_T<NCS_TO_TCS>::TAO_Codeset_Translator_Factory_T () :
translator_(0)
@@ -87,6 +86,4 @@ TAO_Codeset_Translator_Factory_T<NCS_TO_TCS>::assign (TAO_OutputCDR *cdr) const
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_CODESET_TRANSLATOR_FACTORY_T_CPP */
diff --git a/TAO/tao/Codeset/Codeset_Translator_Factory_T.h b/TAO/tao/Codeset/Codeset_Translator_Factory_T.h
index ce5a902c7fe..07408db8717 100644
--- a/TAO/tao/Codeset/Codeset_Translator_Factory_T.h
+++ b/TAO/tao/Codeset/Codeset_Translator_Factory_T.h
@@ -8,22 +8,18 @@
*
* @author Phil Mesnier <mesnier_p@ociweb.com>
*/
-// ===================================================================
-
+// =========================
#ifndef TAO_CODESET_TRANSLATOR_FACTORY_T_H
#define TAO_CODESET_TRANSLATOR_FACTORY_T_H
#include /**/ "ace/pre.h"
-#include "tao/Codeset/Codeset_Translator_Factory.h"
+#include "Codeset_Translator_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Codeset_Translator_Factory_T
*
@@ -67,14 +63,12 @@ private:
NCS_TO_TCS *translator_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Codeset/Codeset_Translator_Factory_T.cpp"
+#include "Codeset_Translator_Factory_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Codeset/UTF16_BOM_Factory.cpp b/TAO/tao/Codeset/UTF16_BOM_Factory.cpp
index 1140d84a6bb..337c95e2af2 100644
--- a/TAO/tao/Codeset/UTF16_BOM_Factory.cpp
+++ b/TAO/tao/Codeset/UTF16_BOM_Factory.cpp
@@ -17,8 +17,7 @@
//
// ============================================================================
-#include "tao/debug.h"
-#include "tao/Codeset/UTF16_BOM_Factory.h"
+#include "UTF16_BOM_Factory.h"
#include "ace/OS_NS_strings.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -32,9 +31,6 @@ ACE_STATIC_SVC_DEFINE (TAO_UTF16_BOM_Factory,
0)
ACE_FACTORY_DEFINE (TAO_Codeset, TAO_UTF16_BOM_Factory)
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UTF16_BOM_Factory::TAO_UTF16_BOM_Factory ()
: translator_ (0)
, forceBE_ (false)
@@ -138,5 +134,3 @@ TAO_UTF16_BOM_Factory::create_translator () const
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/UTF16_BOM_Factory.h b/TAO/tao/Codeset/UTF16_BOM_Factory.h
index a72652a7458..64bc891198b 100644
--- a/TAO/tao/Codeset/UTF16_BOM_Factory.h
+++ b/TAO/tao/Codeset/UTF16_BOM_Factory.h
@@ -22,12 +22,10 @@
#include /**/ "ace/pre.h"
#include "ace/Service_Config.h"
-#include "tao/Codeset/Codeset_Translator_Factory.h"
+#include "Codeset_Translator_Factory.h"
-#include "tao/Codeset/UTF16_BOM_Translator.h"
-#include "tao/Codeset/codeset_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "UTF16_BOM_Translator.h"
+#include "codeset_export.h"
class TAO_Codeset_Export TAO_UTF16_BOM_Factory
: public TAO_Codeset_Translator_Factory
@@ -62,8 +60,6 @@ private:
bool forceBE_; // force big endian wchar, warray, & wstring
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Codeset, TAO_UTF16_BOM_Factory)
ACE_FACTORY_DECLARE (TAO_Codeset, TAO_UTF16_BOM_Factory)
diff --git a/TAO/tao/Codeset/UTF16_BOM_Translator.cpp b/TAO/tao/Codeset/UTF16_BOM_Translator.cpp
index 6f54540faf2..4103c10c8b7 100644
--- a/TAO/tao/Codeset/UTF16_BOM_Translator.cpp
+++ b/TAO/tao/Codeset/UTF16_BOM_Translator.cpp
@@ -12,7 +12,7 @@
//
// ============================================================================
-#include "tao/Codeset/UTF16_BOM_Translator.h"
+#include "UTF16_BOM_Translator.h"
#include "ace/OS_Memory.h"
#include "tao/debug.h"
#include "ace/Log_Msg.h"
@@ -30,8 +30,6 @@ static const size_t ACE_UTF16_CODEPOINT_SIZE = sizeof (ACE_UTF16_T);
static const unsigned short ACE_UNICODE_BOM_CORRECT = 0xFEFFU;
static const unsigned short ACE_UNICODE_BOM_SWAPPED = 0xFFFEU;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////
// TAO_UTF16_BOM_Translator implementation
@@ -436,5 +434,3 @@ TAO_UTF16_BOM_Translator::write_swapped_wchar_array_i (ACE_OutputCDR & cdr,
}
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/UTF16_BOM_Translator.h b/TAO/tao/Codeset/UTF16_BOM_Translator.h
index 6dbe046621d..6f8e5d6bc7c 100644
--- a/TAO/tao/Codeset/UTF16_BOM_Translator.h
+++ b/TAO/tao/Codeset/UTF16_BOM_Translator.h
@@ -22,15 +22,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Codeset/codeset_export.h"
-#include "tao/Versioned_Namespace.h"
#include "ace/CDR_Stream.h"
-
+#include "codeset_export.h"
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_UTF16_BOM_Translator
*
@@ -95,7 +91,5 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* UTF16_BOM_TRANSLATOR_H */
diff --git a/TAO/tao/Codeset/UTF8_Latin1_Factory.cpp b/TAO/tao/Codeset/UTF8_Latin1_Factory.cpp
index 2298e093c7d..6b9d2881330 100644
--- a/TAO/tao/Codeset/UTF8_Latin1_Factory.cpp
+++ b/TAO/tao/Codeset/UTF8_Latin1_Factory.cpp
@@ -1,8 +1,7 @@
+// -*- C++ -*-
// $Id$
-#include "tao/debug.h"
#include "ace/Dynamic_Service.h"
-#include "ace/Log_Msg.h"
-#include "tao/Codeset/UTF8_Latin1_Factory.h"
+#include "UTF8_Latin1_Factory.h"
ACE_STATIC_SVC_DEFINE (TAO_UTF8_Latin1_Factory,
ACE_TEXT ("UTF8_Latin1_Factory"),
@@ -13,8 +12,6 @@ ACE_STATIC_SVC_DEFINE (TAO_UTF8_Latin1_Factory,
0)
ACE_FACTORY_DEFINE (TAO_Codeset, TAO_UTF8_Latin1_Factory)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UTF8_Latin1_Factory::TAO_UTF8_Latin1_Factory()
: translator_ (0)
{
@@ -87,5 +84,3 @@ TAO_UTF8_Latin1_Factory::create_translator () const
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/UTF8_Latin1_Factory.h b/TAO/tao/Codeset/UTF8_Latin1_Factory.h
index 292333ad7e0..81bfdf71f08 100644
--- a/TAO/tao/Codeset/UTF8_Latin1_Factory.h
+++ b/TAO/tao/Codeset/UTF8_Latin1_Factory.h
@@ -5,16 +5,14 @@
#define UTF8_LATIN1_FACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/Codeset/codeset_export.h"
+#include "codeset_export.h"
#include "ace/Service_Config.h"
-#include "tao/Codeset/Codeset_Translator_Factory.h"
+#include "Codeset_Translator_Factory.h"
-#include "tao/Codeset/UTF8_Latin1_Translator.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "UTF8_Latin1_Translator.h"
class TAO_Codeset_Export TAO_UTF8_Latin1_Factory
- : public TAO_Codeset_Translator_Factory
+ : public TAO_Codeset_Translator_Factory
{
public:
TAO_UTF8_Latin1_Factory ();
@@ -44,8 +42,6 @@ private:
TAO_UTF8_Latin1_Translator *translator_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Codeset, TAO_UTF8_Latin1_Factory)
ACE_FACTORY_DECLARE (TAO_Codeset, TAO_UTF8_Latin1_Factory)
diff --git a/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp b/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp
index 204a1dc0bd6..e12bd90507a 100644
--- a/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp
+++ b/TAO/tao/Codeset/UTF8_Latin1_Translator.cpp
@@ -17,13 +17,12 @@
// Phil Mesnier <mesnier_p@ociweb.com>
//
// ============================================================================
-#include "tao/Codeset/UTF8_Latin1_Translator.h"
+#include "UTF8_Latin1_Translator.h"
#include "tao/debug.h"
#include "ace/OS_Memory.h"
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/////////////////////////////
// UTF8_Latin1_Translator implementation
@@ -220,5 +219,3 @@ TAO_UTF8_Latin1_Translator::write_char_array (ACE_OutputCDR & cdr,
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset/UTF8_Latin1_Translator.h b/TAO/tao/Codeset/UTF8_Latin1_Translator.h
index 791ea994d43..bcf40d115a9 100644
--- a/TAO/tao/Codeset/UTF8_Latin1_Translator.h
+++ b/TAO/tao/Codeset/UTF8_Latin1_Translator.h
@@ -22,14 +22,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Codeset/codeset_export.h"
-#include "tao/Versioned_Namespace.h"
#include "ace/CDR_Stream.h"
+#include "codeset_export.h"
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class UTF8_Latin1_Translator
*
@@ -81,9 +78,9 @@ private:
ACE_CDR::Boolean write_char_i (ACE_OutputCDR &,
ACE_CDR::Char);
-};
+private:
-TAO_END_VERSIONED_NAMESPACE_DECL
+};
#include /**/ "ace/post.h"
#endif /* UTF8_LATIN1_TRANSLATOR_H */
diff --git a/TAO/tao/Codeset_Descriptor_Base.h b/TAO/tao/Codeset_Descriptor_Base.h
index 201de5e9bd3..fa164219e6b 100644
--- a/TAO/tao/Codeset_Descriptor_Base.h
+++ b/TAO/tao/Codeset_Descriptor_Base.h
@@ -21,10 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
* TAO_Codeset_Descriptor_Base describes the necessary interface for
* Objects within libTAO to be able to supply information to the codeset
@@ -33,17 +29,17 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* This class also serves as a default implementation when codeset support
* is not linked in.
*/
+
+
class TAO_Export TAO_Codeset_Descriptor_Base
{
public:
- virtual ~TAO_Codeset_Descriptor_Base (void);
+ virtual ~TAO_Codeset_Descriptor_Base ();
virtual void ncs (const ACE_TCHAR *name) = 0;
virtual void add_translator (const ACE_TCHAR *name) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CODESET_DESCRIPTOR_BASE_H */
diff --git a/TAO/tao/Codeset_Manager.cpp b/TAO/tao/Codeset_Manager.cpp
index 0402bfc6aea..9744abc08b7 100644
--- a/TAO/tao/Codeset_Manager.cpp
+++ b/TAO/tao/Codeset_Manager.cpp
@@ -1,23 +1,20 @@
// $Id$
-#include "tao/Codeset_Manager.h"
-#include "tao/Codeset_Descriptor_Base.h"
+#include "Codeset_Manager.h"
+#include "Codeset_Descriptor_Base.h"
ACE_RCSID (tao,
Codeset_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-TAO_Codeset_Manager::~TAO_Codeset_Manager (void)
+TAO_Codeset_Manager::~TAO_Codeset_Manager ()
{
}
-// Add the destructor for the codeset_descriptor_base here, because
+// Add the default destructor for the codeset_descriptor_base here, because
// it is only ever used in conjunction with the codeset manager.
-TAO_Codeset_Descriptor_Base::~TAO_Codeset_Descriptor_Base (void)
+TAO_Codeset_Descriptor_Base::~TAO_Codeset_Descriptor_Base ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset_Manager.h b/TAO/tao/Codeset_Manager.h
index 163014327b1..e0cdc9710cb 100644
--- a/TAO/tao/Codeset_Manager.h
+++ b/TAO/tao/Codeset_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/*
@@ -8,7 +8,7 @@
*
* Interface for the TAO CodeSet Manager.
*
- * @author Mahesh Vedantam <mahesh@ociweb.com>
+ * @author Mahesh Vedantam <mahesh#ociweb.com>
*/
//=============================================================================
@@ -17,19 +17,15 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "tao/CONV_FRAMEC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/CONV_FRAMEC.h"
+#include "TAO_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_WChar_Codeset_Translator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Profile;
class TAO_Transport;
@@ -59,18 +55,17 @@ class TAO_Codeset_Descriptor_Base;
* context attached to the first request sent on the new connection.
*
*/
+
class TAO_Export TAO_Codeset_Manager
{
public:
+ virtual ~TAO_Codeset_Manager();
- /// Destructor.
- virtual ~TAO_Codeset_Manager (void);
-
- /// Called by an object of TAO_Acceptor to set NCS and CCS values for
- /// Char/Wchar in to the Object Reference.
+ /// Called by an object of TAO_Acceptor to set NCS and CCS values for
+ /// Char/Wchar in to the Object Reference.
virtual void set_codeset (TAO_Tagged_Components& ) const = 0;
-
+ ///
/// Called from an object of "TAO_GIOP_Invocation" to set TCS on the
/// Transport
virtual void set_tcs (TAO_Profile &theProfile, TAO_Transport &) = 0;
@@ -92,12 +87,8 @@ public:
virtual TAO_Codeset_Descriptor_Base *char_codeset_descriptor (void) = 0;
virtual TAO_Codeset_Descriptor_Base *wchar_codeset_descriptor (void) = 0;
- virtual void get_ncs (CONV_FRAME::CodeSetId &ncsc,
- CONV_FRAME::CodeSetId &ncsw) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_CODESET_MANAGER_H */
diff --git a/TAO/tao/Codeset_Manager_Factory_Base.cpp b/TAO/tao/Codeset_Manager_Factory_Base.cpp
index c7361b99079..a4ed7de44d8 100644
--- a/TAO/tao/Codeset_Manager_Factory_Base.cpp
+++ b/TAO/tao/Codeset_Manager_Factory_Base.cpp
@@ -1,27 +1,25 @@
// $Id$
-#include "tao/ORB_Core.h"
-#include "tao/Codeset_Manager.h"
-#include "tao/Codeset_Manager_Factory_Base.h"
+#include "ORB_Core.h"
+#include "Codeset_Manager.h"
+#include "Codeset_Manager_Factory_Base.h"
ACE_RCSID (tao,
Codeset_Manager_Factory_Base,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Codeset_Manager_Factory_Base::~TAO_Codeset_Manager_Factory_Base (void)
+TAO_Codeset_Manager_Factory_Base::~TAO_Codeset_Manager_Factory_Base ()
{
}
int
-TAO_Codeset_Manager_Factory_Base::is_default (void) const
+TAO_Codeset_Manager_Factory_Base::is_default() const
{
return 1;
}
TAO_Codeset_Manager *
-TAO_Codeset_Manager_Factory_Base::create (void)
+TAO_Codeset_Manager_Factory_Base::create ()
{
return 0;
@@ -34,8 +32,6 @@ TAO_Codeset_Manager_Factory_Base::initialize (void)
(ace_svc_desc_TAO_Codeset_Manager_Factory_Base);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
static int
TAO_Requires_Codeset_Manager_Factory_Base =
TAO_Codeset_Manager_Factory_Base::initialize ();
diff --git a/TAO/tao/Codeset_Manager_Factory_Base.h b/TAO/tao/Codeset_Manager_Factory_Base.h
index 0577320bbae..e69278db28c 100644
--- a/TAO/tao/Codeset_Manager_Factory_Base.h
+++ b/TAO/tao/Codeset_Manager_Factory_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/*
@@ -8,7 +8,7 @@
*
* Interface for the TAO CodeSet Manager.
*
- * @author Mahesh Vedantam <mahesh@ociweb.com>
+ * @author Mahesh Vedantam <mahesh#ociweb.com>
*/
//=============================================================================
@@ -17,19 +17,14 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
+#include "ace/Service_Config.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/Service_Object.h"
-#include "ace/Service_Config.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Codeset_Manager;
/**
@@ -39,7 +34,7 @@ class TAO_Codeset_Manager;
*
* @description The base also provides a default implementation which
* instantiates nothing. This default impl is replaced by the actual
- * implementation if libTAO_Codeset is loaded.
+ * implementation is libTAO_Codeset is loaded.
*
*/
@@ -63,8 +58,6 @@ public:
static int initialize (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_Codeset_Manager_Factory_Base)
ACE_FACTORY_DECLARE (TAO, TAO_Codeset_Manager_Factory_Base)
diff --git a/TAO/tao/Codeset_Translator_Base.cpp b/TAO/tao/Codeset_Translator_Base.cpp
index e72a02359f3..c5d222373b2 100644
--- a/TAO/tao/Codeset_Translator_Base.cpp
+++ b/TAO/tao/Codeset_Translator_Base.cpp
@@ -17,17 +17,13 @@
//
// =====================================================================
-#include "tao/Codeset_Translator_Base.h"
+#include "Codeset_Translator_Base.h"
ACE_RCSID (tao,
Codeset_Translator_Base,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Codeset_Translator_Base::~TAO_Codeset_Translator_Base (void)
+TAO_Codeset_Translator_Base::~TAO_Codeset_Translator_Base ()
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Codeset_Translator_Base.h b/TAO/tao/Codeset_Translator_Base.h
index c2af91a7522..cb87201e9ce 100644
--- a/TAO/tao/Codeset_Translator_Base.h
+++ b/TAO/tao/Codeset_Translator_Base.h
@@ -8,14 +8,13 @@
*
* @author Phil Mesnier <mesnier_p@ociweb.com>
*/
-// ===================================================================
+// =========================
#ifndef TAO_CODESET_TRANSLATOR_BASE_H
#define TAO_CODESET_TRANSLATOR_BASE_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,17 +22,14 @@
#include "tao/CONV_FRAMEC.h"
#include "tao/Codeset_Translator_Base.h"
-#include "ace/Service_Object.h"
+#include "TAO_Export.h"
+
+class TAO_InputCDR;
+class TAO_OutputCDR;
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Char_Codeset_Translator;
class ACE_WChar_Codeset_Translator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-class TAO_InputCDR;
-class TAO_OutputCDR;
// ****************************************************************
@@ -72,8 +68,5 @@ public:
virtual void assign (TAO_OutputCDR *) const = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_Codeset_Translator_Base */
diff --git a/TAO/tao/Collocated_Invocation.cpp b/TAO/tao/Collocated_Invocation.cpp
index 6bb999a0a4a..135a1fb1b91 100644
--- a/TAO/tao/Collocated_Invocation.cpp
+++ b/TAO/tao/Collocated_Invocation.cpp
@@ -1,13 +1,13 @@
-#include "tao/Collocated_Invocation.h"
-#include "tao/Collocation_Proxy_Broker.h"
-#include "tao/ORB_Core.h"
-#include "tao/Request_Dispatcher.h"
-#include "tao/TAO_Server_Request.h"
-#include "tao/Stub.h"
-#include "tao/operation_details.h"
+#include "Collocated_Invocation.h"
+#include "Collocation_Proxy_Broker.h"
+#include "ORB_Core.h"
+#include "Request_Dispatcher.h"
+#include "TAO_Server_Request.h"
+#include "Stub.h"
+#include "operation_details.h"
#if TAO_HAS_INTERCEPTORS == 1
-# include "tao/PortableInterceptorC.h"
+# include "PortableInterceptorC.h"
#endif /*TAO_HAS_INTERCEPTORS */
ACE_RCSID (tao,
@@ -15,8 +15,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Collocated_Invocation::Collocated_Invocation (CORBA::Object_ptr t,
@@ -28,8 +26,7 @@ namespace TAO
et,
stub,
detail,
- response_expected,
- false /* request_is_remote */ )
+ response_expected)
{
}
@@ -167,5 +164,3 @@ namespace TAO
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Collocated_Invocation.h b/TAO/tao/Collocated_Invocation.h
index a9d2b0950fc..03068bcb8fb 100644
--- a/TAO/tao/Collocated_Invocation.h
+++ b/TAO/tao/Collocated_Invocation.h
@@ -10,7 +10,6 @@
* @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
*/
//=============================================================================
-
#ifndef TAO_COLLOCATED_INVOCATION_H
#define TAO_COLLOCATED_INVOCATION_H
@@ -26,8 +25,6 @@
#include "tao/Invocation_Base.h"
#include "tao/Exception.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Stub;
@@ -88,14 +85,10 @@ namespace TAO
ACE_ENV_ARG_DECL);
private:
-
- // Disallow default construction.
- Collocated_Invocation (void);
+ ACE_UNIMPLEMENTED_FUNC (Collocated_Invocation (void))
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_COLLOCATED_INVOCATION_H*/
diff --git a/TAO/tao/Collocation_Proxy_Broker.cpp b/TAO/tao/Collocation_Proxy_Broker.cpp
index e2c0653139f..b1d780feccf 100644
--- a/TAO/tao/Collocation_Proxy_Broker.cpp
+++ b/TAO/tao/Collocation_Proxy_Broker.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Collocation_Proxy_Broker.h"
+#include "Collocation_Proxy_Broker.h"
ACE_RCSID (tao,
@@ -8,10 +8,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Collocation_Proxy_Broker::~Collocation_Proxy_Broker (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Collocation_Proxy_Broker.h b/TAO/tao/Collocation_Proxy_Broker.h
index 3da552f68a7..420ddec654f 100644
--- a/TAO/tao/Collocation_Proxy_Broker.h
+++ b/TAO/tao/Collocation_Proxy_Broker.h
@@ -22,13 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Collocation_Strategy.h"
-#include "tao/Versioned_Namespace.h"
-
#include "ace/CORBA_macros.h"
#include "ace/os_include/os_stddef.h"
+#include "tao/Collocation_Strategy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename T> class TAO_Pseudo_Var_T;
template <typename T, typename T_var> class TAO_Pseudo_Out_T;
@@ -68,8 +65,6 @@ namespace TAO
Collocation_Strategy strategy
ACE_ENV_ARG_DECL) = 0;
};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
}
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Collocation_Resolver.cpp b/TAO/tao/Collocation_Resolver.cpp
index 23d15bfc269..1f752fccc89 100644
--- a/TAO/tao/Collocation_Resolver.cpp
+++ b/TAO/tao/Collocation_Resolver.cpp
@@ -1,15 +1,13 @@
// $Id$
#include "tao/Collocation_Resolver.h"
+#include "ace/Dynamic_Service.h"
ACE_RCSID (tao,
Collocation_Resolver,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Collocation_Resolver::~TAO_Collocation_Resolver (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Collocation_Resolver.h b/TAO/tao/Collocation_Resolver.h
index b837f9acf15..46c6466ff47 100644
--- a/TAO/tao/Collocation_Resolver.h
+++ b/TAO/tao/Collocation_Resolver.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Collocation_Resolver.h
@@ -14,19 +12,16 @@
#define TAO_COLLOCATION_RESOLVER_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Basic_Types.h"
-
-#include "ace/Service_Object.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/TAO_Export.h"
+#include "tao/Basic_Types.h"
namespace CORBA
{
@@ -57,8 +52,6 @@ public:
ACE_ENV_ARG_DECL) const = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_COLLOCATION_RESOLVER_H */
diff --git a/TAO/tao/Collocation_Strategy.h b/TAO/tao/Collocation_Strategy.h
index 236149a387b..9a6e4927b52 100644
--- a/TAO/tao/Collocation_Strategy.h
+++ b/TAO/tao/Collocation_Strategy.h
@@ -14,10 +14,6 @@
#define TAO_COLLOCATION_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Define symbolic names for the ORB collocation strategies.
namespace TAO
@@ -41,8 +37,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_COLLOCATION_STRATEGY_H */
diff --git a/TAO/tao/Condition.cpp b/TAO/tao/Condition.cpp
index 06e17912045..5fb831711cb 100644
--- a/TAO/tao/Condition.cpp
+++ b/TAO/tao/Condition.cpp
@@ -1,8 +1,6 @@
-// $Id$
-
#ifndef TAO_CONDITION_CPP
#define TAO_CONDITION_CPP
-#include "tao/Condition.h"
+#include "Condition.h"
#include "ace/Log_Msg.h"
#if !defined (__ACE_INLINE__)
@@ -10,7 +8,9 @@
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (TAO,
+ Condition,
+ "$Id$")
template <class MUTEX>
TAO_Condition<MUTEX>::TAO_Condition (MUTEX &m)
@@ -57,6 +57,4 @@ TAO_Condition<MUTEX>::~TAO_Condition (void)
delete this->mutex_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_CONDITION_CPP */
+#endif /* TAO_CONDITION_CPP*/
diff --git a/TAO/tao/Condition.h b/TAO/tao/Condition.h
index 5a1d1bada70..c167bf85e0b 100644
--- a/TAO/tao/Condition.h
+++ b/TAO/tao/Condition.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
+#include "orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,11 +24,8 @@
#include "ace/Condition_T.h"
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Condition
@@ -109,14 +106,12 @@ private:
ACE_UNIMPLEMENTED_FUNC (TAO_Condition (const TAO_Condition<MUTEX> &))
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Condition.inl"
+#include "Condition.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Condition.cpp"
+#include "Condition.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Condition.inl b/TAO/tao/Condition.inl
index 0e69d8b1bf1..7e41b1cb2d0 100644
--- a/TAO/tao/Condition.inl
+++ b/TAO/tao/Condition.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class MUTEX> ACE_INLINE int
TAO_Condition<MUTEX>::wait (void)
{
@@ -51,5 +47,3 @@ TAO_Condition<MUTEX>::broadcast (void)
{
return this->cond_->broadcast ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connect_Strategy.cpp b/TAO/tao/Connect_Strategy.cpp
index 2299f775d46..98764d36066 100644
--- a/TAO/tao/Connect_Strategy.cpp
+++ b/TAO/tao/Connect_Strategy.cpp
@@ -1,11 +1,9 @@
-#include "tao/Connect_Strategy.h"
+#include "Connect_Strategy.h"
ACE_RCSID (tao,
Connect_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Connect_Strategy::TAO_Connect_Strategy (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core)
{
@@ -15,5 +13,3 @@ TAO_Connect_Strategy::TAO_Connect_Strategy (TAO_ORB_Core *orb_core)
TAO_Connect_Strategy::~TAO_Connect_Strategy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connect_Strategy.h b/TAO/tao/Connect_Strategy.h
index 1189a6cd171..be88ba7ff60 100644
--- a/TAO/tao/Connect_Strategy.h
+++ b/TAO/tao/Connect_Strategy.h
@@ -15,25 +15,18 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Synch_Options;
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Connector;
class TAO_Connection_Handler;
class TAO_Transport;
+class ACE_Synch_Options;
+class ACE_Time_Value;
/**
* @class TAO_Connect_Strategy
@@ -79,13 +72,10 @@ public:
ACE_Time_Value *val) = 0;
protected:
-
/// Cached copy of the ORB core pointer
- TAO_ORB_Core * const orb_core_;
-
+ TAO_ORB_Core *orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /*TAO_CONNECT_STRATEGY_H*/
diff --git a/TAO/tao/Connection_Handler.cpp b/TAO/tao/Connection_Handler.cpp
index 2da87ae7413..838774ad068 100644
--- a/TAO/tao/Connection_Handler.cpp
+++ b/TAO/tao/Connection_Handler.cpp
@@ -1,11 +1,11 @@
//$Id$
-#include "tao/Connection_Handler.h"
-#include "tao/ORB_Core.h"
-#include "tao/debug.h"
-#include "tao/Resume_Handle.h"
-#include "tao/Transport.h"
-#include "tao/Wait_Strategy.h"
+#include "Connection_Handler.h"
+#include "ORB_Core.h"
+#include "debug.h"
+#include "Resume_Handle.h"
+#include "Transport.h"
+#include "Wait_Strategy.h"
#include "ace/SOCK.h"
#include "ace/Reactor.h"
@@ -21,8 +21,6 @@ ACE_RCSID (tao,
Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Connection_Handler::TAO_Connection_Handler (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core)
, transport_ (0)
@@ -203,7 +201,6 @@ TAO_Connection_Handler::handle_output_eh (
return_value = this->transport ()->handle_output ();
this->pos_io_hook (return_value);
-
if (return_value != 0)
{
resume_handle.set_flag (TAO_Resume_Handle::TAO_HANDLE_LEAVE_SUSPENDED);
@@ -274,10 +271,6 @@ TAO_Connection_Handler::handle_input_internal (
this->pos_io_hook (return_value);
- // Bug 1647; might need to change resume_handle's flag or
- // change handle_input return value.
- resume_handle.handle_input_return_value_hook(return_value);
-
if (TAO_debug_level > 6)
{
ACE_HANDLE handle = eh->get_handle ();
@@ -287,8 +280,6 @@ TAO_Connection_Handler::handle_input_internal (
t_id, handle, h, return_value));
}
- if (return_value == -1)
- resume_handle.set_flag (TAO_Resume_Handle::TAO_HANDLE_LEAVE_SUSPENDED);
return return_value;
}
@@ -430,5 +421,3 @@ TAO_Connection_Handler::close_handler (void)
}
//@@ CONNECTION_HANDLER_SPL_METHODS_ADD_HOOK
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connection_Handler.h b/TAO/tao/Connection_Handler.h
index e17ff6af08f..26312ebd79f 100644
--- a/TAO/tao/Connection_Handler.h
+++ b/TAO/tao/Connection_Handler.h
@@ -1,3 +1,4 @@
+
// -*- C++ -*-
//=============================================================================
@@ -15,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/LF_CH_Event.h"
+#include "LF_CH_Event.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,16 +24,11 @@
#include "tao/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+class TAO_ORB_Core;
+class TAO_Transport;
class ACE_SOCK;
class ACE_Lock;
class ACE_Event_Handler;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_ORB_Core;
-class TAO_Transport;
/*
* Hook to specialize the connection handler with the
@@ -178,7 +174,7 @@ protected:
private:
/// Pointer to the TAO_ORB_Core
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core *orb_core_;
/// Transport object reference
TAO_Transport* transport_;
@@ -198,8 +194,6 @@ private:
//@@ CONNECTION_HANDLER_SPL_EXTERN_ADD_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Connection_Handler.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Connection_Handler.inl b/TAO/tao/Connection_Handler.inl
index 5841cf3aebc..001bd2c811c 100644
--- a/TAO/tao/Connection_Handler.inl
+++ b/TAO/tao/Connection_Handler.inl
@@ -2,8 +2,6 @@
//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_ORB_Core *
TAO_Connection_Handler::orb_core (void)
{
@@ -20,7 +18,7 @@ ACE_INLINE bool
TAO_Connection_Handler::is_closed (void) const
{
return (this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED ||
- this->state_ == TAO_LF_Event::LFS_TIMEOUT);
+ this->state_ == TAO_LF_Event::LFS_TIMEOUT);
}
ACE_INLINE bool
@@ -36,5 +34,3 @@ TAO_Connection_Handler::is_connecting (void) const
}
//@@ CONNECTION_HANDLER_SPL_METHODS_ADD_HOOK
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connection_Purging_Strategy.cpp b/TAO/tao/Connection_Purging_Strategy.cpp
index 8bcf332a835..f903b1107e8 100644
--- a/TAO/tao/Connection_Purging_Strategy.cpp
+++ b/TAO/tao/Connection_Purging_Strategy.cpp
@@ -6,12 +6,10 @@
# include "tao/Connection_Purging_Strategy.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- Connection_Purging_Strategy,
+ACE_RCSID (tao,
+ Connection_Purging_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Connection_Purging_Strategy::~TAO_Connection_Purging_Strategy (void)
{
}
@@ -22,4 +20,4 @@ TAO_Connection_Purging_Strategy::cache_maximum (void) const
return cache_maximum_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Connection_Purging_Strategy.h b/TAO/tao/Connection_Purging_Strategy.h
index c93038f7de3..eace4e9114c 100644
--- a/TAO/tao/Connection_Purging_Strategy.h
+++ b/TAO/tao/Connection_Purging_Strategy.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// ================================================================
/**
* @file Connection_Purging_Strategy.h
@@ -15,16 +13,12 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport;
// ****************************************************************
@@ -58,8 +52,6 @@ private:
int cache_maximum_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Connection_Purging_Strategy.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Connection_Purging_Strategy.inl b/TAO/tao/Connection_Purging_Strategy.inl
index a361f536198..b0bc5b7b8f0 100644
--- a/TAO/tao/Connection_Purging_Strategy.inl
+++ b/TAO/tao/Connection_Purging_Strategy.inl
@@ -1,14 +1,9 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Connection_Purging_Strategy::TAO_Connection_Purging_Strategy (
- int cache_maximum)
- : cache_maximum_ (cache_maximum)
+ int cache_maximum)
+ : cache_maximum_ (cache_maximum)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connector_Impl.cpp b/TAO/tao/Connector_Impl.cpp
index 3e7c5742320..ad333727bce 100644
--- a/TAO/tao/Connector_Impl.cpp
+++ b/TAO/tao/Connector_Impl.cpp
@@ -1,5 +1,3 @@
-// $Id$
-
#ifndef TAO_CONNECTOR_IMPL_CPP
#define TAO_CONNECTOR_IMPL_CPP
@@ -9,7 +7,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(tao, Connector_Impl, "$Id$")
template <class SVC_HANDLER>
TAO_Connect_Creation_Strategy<SVC_HANDLER>::
@@ -60,6 +58,5 @@ TAO_Connect_Concurrency_Strategy<SVC_HANDLER>::
arg);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif /* TAO_CONNECTOR_IMPL_CPP */
+#endif /*TAO_CONNECTOR_IMPL_CPP*/
diff --git a/TAO/tao/Connector_Impl.h b/TAO/tao/Connector_Impl.h
index 6affe0860e6..535d357c209 100644
--- a/TAO/tao/Connector_Impl.h
+++ b/TAO/tao/Connector_Impl.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
// ===================================================================
/**
* @file Connector_Impl.h
@@ -22,13 +21,8 @@
#include "tao/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Thread_Manager;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
+class ACE_Thread_Manager;
/**
* @class TAO_Connect_Creation_Strategy
@@ -60,10 +54,10 @@ public:
private:
/// Pointer to the ORB_Core on which we are activated
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core* orb_core_;
/// Are we using GIOP lite?
- CORBA::Boolean const lite_flag_;
+ CORBA::Boolean lite_flag_;
};
@@ -96,13 +90,10 @@ public:
private:
/// Pointer to the ORB Core.
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core *orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "tao/Connector_Impl.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/TAO/tao/Connector_Registry.cpp b/TAO/tao/Connector_Registry.cpp
index e71a35f173f..603b9b40ae4 100644
--- a/TAO/tao/Connector_Registry.cpp
+++ b/TAO/tao/Connector_Registry.cpp
@@ -20,7 +20,6 @@ ACE_RCSID (tao,
Connector_Registry,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Connector_Registry::TAO_Connector_Registry (void)
: connectors_ (0),
@@ -81,7 +80,7 @@ TAO_Connector_Registry::open (TAO_ORB_Core *orb_core)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) unable to open connector for ")
ACE_TEXT ("<%s>.\n"),
- ACE_TEXT_CHAR_TO_TCHAR((*factory)->protocol_name ().c_str ())),
+ ACE_TEXT_TO_TCHAR_IN((*factory)->protocol_name ().c_str ())),
-1);
}
@@ -267,5 +266,3 @@ TAO_Connector_Registry::object_key_delimiter (const char *ior)
// against the provided string.
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Connector_Registry.h b/TAO/tao/Connector_Registry.h
index bb2a454f776..28bb89cd2a5 100644
--- a/TAO/tao/Connector_Registry.h
+++ b/TAO/tao/Connector_Registry.h
@@ -26,8 +26,6 @@
#include "tao/Basic_Types.h"
#include "ace/Global_Macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_ORB_Core;
class TAO_Connector;
@@ -91,9 +89,9 @@ public:
TAO_ConnectorSetIterator end (void);
private:
- // Disallow copying and assignment.
- TAO_Connector_Registry (const TAO_Connector_Registry&);
- void operator= (const TAO_Connector_Registry&);
+ // Prohibited
+ ACE_UNIMPLEMENTED_FUNC (TAO_Connector_Registry (const TAO_Connector_Registry&))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Connector_Registry&))
private:
/// List of connectors that are currently open.
@@ -103,8 +101,6 @@ private:
size_t size_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
#include "tao/Connector_Registry.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Connector_Registry.i b/TAO/tao/Connector_Registry.i
index e824efb5a6a..c2976325560 100644
--- a/TAO/tao/Connector_Registry.i
+++ b/TAO/tao/Connector_Registry.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_ConnectorSetIterator
TAO_Connector_Registry::begin (void)
{
@@ -15,5 +13,3 @@ TAO_Connector_Registry::end (void)
{
return this->connectors_ + this->size_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Current.pidl b/TAO/tao/Current.pidl
index f90dcaddebf..b1d3067dad6 100644
--- a/TAO/tao/Current.pidl
+++ b/TAO/tao/Current.pidl
@@ -1,5 +1,3 @@
-// -*- IDL -*-
-
/**
* @file Current.pidl
*
@@ -14,8 +12,6 @@
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* Current.pidl
*
*
diff --git a/TAO/tao/CurrentC.cpp b/TAO/tao/CurrentC.cpp
index 561ad8d1cd1..5b38d3dae99 100644
--- a/TAO/tao/CurrentC.cpp
+++ b/TAO/tao/CurrentC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:288
-#include "tao/CurrentC.h"
+#include "CurrentC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -164,5 +162,3 @@ CORBA::Current::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/CurrentC.h b/TAO/tao/CurrentC.h
index e102b492f15..e23843d6261 100644
--- a/TAO/tao/CurrentC.h
+++ b/TAO/tao/CurrentC.h
@@ -59,8 +59,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -185,8 +183,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DLL_Parser.cpp b/TAO/tao/DLL_Parser.cpp
index 753ae4496d7..b8c4608aefc 100644
--- a/TAO/tao/DLL_Parser.cpp
+++ b/TAO/tao/DLL_Parser.cpp
@@ -1,29 +1,31 @@
// $Id$
-#include "tao/DLL_Parser.h"
-#include "tao/Object_Loader.h"
-#include "tao/Object.h"
-#include "tao/Environment.h"
-#include "tao/ORB_Constants.h"
-#include "tao/SystemException.h"
+#include "DLL_Parser.h"
+#include "Object_Loader.h"
+#include "Object.h"
+#include "Environment.h"
+#include "ORB_Constants.h"
+#include "SystemException.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
+#if !defined(__ACE_INLINE__)
+#include "DLL_Parser.i"
+#endif /* __ACE_INLINE__ */
+
ACE_RCSID (tao,
DLL_Parser,
"$Id$")
-static const char dll_prefix[] = "DLL:";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_DLL_Parser::~TAO_DLL_Parser (void)
{
}
+static const char dll_prefix[] = "DLL:";
int
TAO_DLL_Parser::match_prefix (const char *ior_string) const
@@ -61,8 +63,6 @@ TAO_DLL_Parser::parse_string (const char *ior,
return loader->create_object (orb, 0, 0 ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_DLL_Parser,
ACE_TEXT ("DLL_Parser"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/DLL_Parser.h b/TAO/tao/DLL_Parser.h
index 926b52958c1..50c59241ec6 100644
--- a/TAO/tao/DLL_Parser.h
+++ b/TAO/tao/DLL_Parser.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +22,6 @@
#include "tao/IOR_Parser.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DLL_Parser
*
@@ -52,7 +49,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
*
* Such an application could be written as follows:
*
- * int main (int argc, char* argv)
+ * int ACE_TMAIN (int argc, char* argv)
* {
* CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
*
@@ -74,9 +71,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* loaded without any modifications to the application code.
*
*/
-class TAO_DLL_Parser : public TAO_IOR_Parser
+class TAO_Export TAO_DLL_Parser : public TAO_IOR_Parser
{
public:
+ /// Constructor
+ TAO_DLL_Parser (void);
/// The destructor
virtual ~TAO_DLL_Parser (void);
@@ -90,7 +89,9 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+# include "DLL_Parser.i"
+#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_DLL_Parser)
ACE_FACTORY_DECLARE (TAO, TAO_DLL_Parser)
diff --git a/TAO/tao/DLL_Parser.i b/TAO/tao/DLL_Parser.i
new file mode 100644
index 00000000000..00a66f43394
--- /dev/null
+++ b/TAO/tao/DLL_Parser.i
@@ -0,0 +1,6 @@
+// $Id$
+
+ACE_INLINE
+TAO_DLL_Parser::TAO_DLL_Parser (void)
+{
+}
diff --git a/TAO/tao/Default_Collocation_Resolver.cpp b/TAO/tao/Default_Collocation_Resolver.cpp
index 78ccc5c4b5c..2b5ea0a0673 100644
--- a/TAO/tao/Default_Collocation_Resolver.cpp
+++ b/TAO/tao/Default_Collocation_Resolver.cpp
@@ -9,8 +9,6 @@ ACE_RCSID (tao,
#include "tao/Object.h"
#include "ace/Log_Msg.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Boolean
TAO_Default_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
ACE_ENV_ARG_DECL_NOT_USED) const
@@ -18,8 +16,6 @@ TAO_Default_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
return object->_is_collocated ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_Default_Collocation_Resolver,
ACE_TEXT ("Default_Collocation_Resolver"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Default_Collocation_Resolver.h b/TAO/tao/Default_Collocation_Resolver.h
index c98aefae6d5..3d42c2a7d64 100644
--- a/TAO/tao/Default_Collocation_Resolver.h
+++ b/TAO/tao/Default_Collocation_Resolver.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Default_Collocation_Resolver.h
@@ -22,8 +20,6 @@
#include "tao/Collocation_Resolver.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Environment;
@@ -47,8 +43,6 @@ public:
ACE_ENV_ARG_DECL) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Collocation_Resolver)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Collocation_Resolver)
diff --git a/TAO/tao/Default_Endpoint_Selector_Factory.cpp b/TAO/tao/Default_Endpoint_Selector_Factory.cpp
index 64fb8f94608..8b0814e80e8 100644
--- a/TAO/tao/Default_Endpoint_Selector_Factory.cpp
+++ b/TAO/tao/Default_Endpoint_Selector_Factory.cpp
@@ -1,5 +1,6 @@
// $Id$
+
#include "tao/Default_Endpoint_Selector_Factory.h"
#include "tao/Invocation_Endpoint_Selectors.h"
@@ -11,12 +12,11 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory (
- void)
- : default_endpoint_selector_ (new TAO_Default_Endpoint_Selector)
+TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory (void)
{
+ ACE_NEW (this->default_endpoint_selector_,
+ TAO_Default_Endpoint_Selector);
+
}
TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory (void)
@@ -32,8 +32,6 @@ TAO_Default_Endpoint_Selector_Factory::get_selector (ACE_ENV_SINGLE_ARG_DECL_NOT
return this->default_endpoint_selector_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_Default_Endpoint_Selector_Factory,
diff --git a/TAO/tao/Default_Endpoint_Selector_Factory.h b/TAO/tao/Default_Endpoint_Selector_Factory.h
index b521cab81dd..00558b91983 100644
--- a/TAO/tao/Default_Endpoint_Selector_Factory.h
+++ b/TAO/tao/Default_Endpoint_Selector_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "tao/Endpoint_Selector_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward references
class TAO_Default_Endpoint_Selector;
@@ -64,22 +62,12 @@ public:
virtual TAO_Invocation_Endpoint_Selector *get_selector (
ACE_ENV_SINGLE_ARG_DECL);
-private:
-
- // Prevent copying/assignment.
- TAO_Default_Endpoint_Selector_Factory (TAO_Default_Endpoint_Selector_Factory const &);
- void operator= (TAO_Default_Endpoint_Selector_Factory const &);
-
protected:
-
/// The possible endpoint selector strategies that can be
/// returned by this factory
- TAO_Default_Endpoint_Selector * const default_endpoint_selector_;
-
+ TAO_Default_Endpoint_Selector *default_endpoint_selector_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Endpoint_Selector_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Endpoint_Selector_Factory)
diff --git a/TAO/tao/Default_Protocols_Hooks.cpp b/TAO/tao/Default_Protocols_Hooks.cpp
index a06a1307aba..cc426e44165 100644
--- a/TAO/tao/Default_Protocols_Hooks.cpp
+++ b/TAO/tao/Default_Protocols_Hooks.cpp
@@ -1,13 +1,12 @@
// $Id$
-#include "tao/Default_Protocols_Hooks.h"
+#include "Default_Protocols_Hooks.h"
#include "ace/Log_Msg.h"
ACE_RCSID (tao,
Default_Protocols_Hooks,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Default_Protocols_Hooks::~TAO_Default_Protocols_Hooks (void)
{
@@ -169,7 +168,6 @@ TAO_Default_Protocols_Hooks::get_dscp_codepoint (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
// ****************************************************************
diff --git a/TAO/tao/Default_Protocols_Hooks.h b/TAO/tao/Default_Protocols_Hooks.h
index 540ed7b70fb..ad0d440d7df 100644
--- a/TAO/tao/Default_Protocols_Hooks.h
+++ b/TAO/tao/Default_Protocols_Hooks.h
@@ -1,3 +1,4 @@
+
// -*- C++ -*-
// ===================================================================
@@ -22,8 +23,6 @@
#include "tao/Protocols_Hooks.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_POA;
class TAO_Export TAO_Default_Protocols_Hooks : public TAO_Protocols_Hooks
@@ -114,8 +113,6 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Protocols_Hooks)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Protocols_Hooks)
diff --git a/TAO/tao/Default_Stub_Factory.cpp b/TAO/tao/Default_Stub_Factory.cpp
index 180a81b60e4..d6603362980 100644
--- a/TAO/tao/Default_Stub_Factory.cpp
+++ b/TAO/tao/Default_Stub_Factory.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/Default_Stub_Factory.h"
-#include "tao/Stub.h"
-#include "tao/ORB_Constants.h"
-#include "tao/SystemException.h"
+#include "Default_Stub_Factory.h"
+#include "Stub.h"
+#include "ORB_Constants.h"
+#include "SystemException.h"
#include "ace/Log_Msg.h"
@@ -12,7 +12,6 @@ ACE_RCSID (tao,
TAO_Default_Stub_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Default_Stub_Factory::~TAO_Default_Stub_Factory (void)
{
@@ -35,8 +34,6 @@ TAO_Default_Stub_Factory::create_stub (const char *repository_id,
return retval;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (
diff --git a/TAO/tao/Default_Stub_Factory.h b/TAO/tao/Default_Stub_Factory.h
index e0a4c60c5ec..f5b82a070ee 100644
--- a/TAO/tao/Default_Stub_Factory.h
+++ b/TAO/tao/Default_Stub_Factory.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Default_Stub_Factory.h
@@ -27,8 +25,6 @@
#include "tao/Stub_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Default_Stub_Factory
*
@@ -43,8 +39,7 @@ class TAO_Export TAO_Default_Stub_Factory
: public TAO_Stub_Factory
{
public:
-
- /// Destructor.
+ // -- Ctor/Dtor --
virtual ~TAO_Default_Stub_Factory (void);
/// Creates a Stub Object.
@@ -52,11 +47,8 @@ public:
const TAO_MProfile &profiles,
TAO_ORB_Core *orb_core
ACE_ENV_ARG_DECL);
-
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Stub_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Stub_Factory)
diff --git a/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp b/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp
index 4aecd1c6583..05268b9920e 100644
--- a/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp
+++ b/TAO/tao/Default_Thread_Lane_Resources_Manager.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "tao/Default_Thread_Lane_Resources_Manager.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
-#include "tao/ORB_Core.h"
+#include "Default_Thread_Lane_Resources_Manager.h"
+#include "Thread_Lane_Resources.h"
+#include "Exception.h"
+#include "Environment.h"
+#include "ORB_Core.h"
#include "ace/Log_Msg.h"
@@ -12,13 +12,13 @@ ACE_RCSID (tao,
Default_Thread_Lane_Resources_Manager,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Default_Thread_Lane_Resources_Manager::TAO_Default_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core)
: TAO_Thread_Lane_Resources_Manager (orb_core),
- lane_resources_ (new TAO_Thread_Lane_Resources (orb_core))
+ lane_resources_ (0)
{
+ // Create the default resources.
+ ACE_NEW (this->lane_resources_,
+ TAO_Thread_Lane_Resources (orb_core));
}
TAO_Default_Thread_Lane_Resources_Manager::~TAO_Default_Thread_Lane_Resources_Manager (void)
@@ -30,7 +30,7 @@ TAO_Default_Thread_Lane_Resources_Manager::~TAO_Default_Thread_Lane_Resources_Ma
int
TAO_Default_Thread_Lane_Resources_Manager::open_default_resources (ACE_ENV_SINGLE_ARG_DECL)
{
- TAO_ORB_Parameters * const params =
+ TAO_ORB_Parameters *params =
this->orb_core_->orb_params ();
TAO_EndpointSet endpoint_set;
@@ -86,13 +86,6 @@ TAO_Default_Thread_Lane_Resources_Manager::is_collocated (const TAO_MProfile &mp
return this->lane_resources_->is_collocated (mprofile);
}
-// -------------------------------------------------------
-
-TAO_Default_Thread_Lane_Resources_Manager_Factory::
-~TAO_Default_Thread_Lane_Resources_Manager_Factory (void)
-{
-}
-
TAO_Thread_Lane_Resources_Manager *
TAO_Default_Thread_Lane_Resources_Manager_Factory::create_thread_lane_resources_manager (TAO_ORB_Core &core)
{
@@ -106,11 +99,6 @@ TAO_Default_Thread_Lane_Resources_Manager_Factory::create_thread_lane_resources_
return manager;
}
-// -------------------------------------------------------
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
ACE_STATIC_SVC_DEFINE (TAO_Default_Thread_Lane_Resources_Manager_Factory,
ACE_TEXT ("Default_Thread_Lane_Resources_Manager_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Default_Thread_Lane_Resources_Manager.h b/TAO/tao/Default_Thread_Lane_Resources_Manager.h
index 89f94829417..359158ff0cb 100644
--- a/TAO/tao/Default_Thread_Lane_Resources_Manager.h
+++ b/TAO/tao/Default_Thread_Lane_Resources_Manager.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Default_Thread_Lane_Resources_Manager.h
@@ -22,19 +20,16 @@
#include "tao/Thread_Lane_Resources_Manager.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Default_Thread_Lane_Resources_Manager
*
* @brief Simple manager for thread lane resources.
*
-
* \nosubgrouping
*
**/
-class TAO_Export TAO_Default_Thread_Lane_Resources_Manager
- : public TAO_Thread_Lane_Resources_Manager
+class TAO_Export TAO_Default_Thread_Lane_Resources_Manager :
+ public TAO_Thread_Lane_Resources_Manager
{
public:
@@ -68,16 +63,10 @@ public:
// @}
-private:
-
- TAO_Default_Thread_Lane_Resources_Manager (TAO_Default_Thread_Lane_Resources_Manager const &);
- void operator= (TAO_Default_Thread_Lane_Resources_Manager const &);
-
protected:
/// Default lane resources.
- TAO_Thread_Lane_Resources * const lane_resources_;
-
+ TAO_Thread_Lane_Resources *lane_resources_;
};
/**
@@ -93,16 +82,11 @@ class TAO_Export TAO_Default_Thread_Lane_Resources_Manager_Factory
{
public:
- /// Destructor.
- virtual ~TAO_Default_Thread_Lane_Resources_Manager_Factory (void);
-
/// Factory method.
TAO_Thread_Lane_Resources_Manager *create_thread_lane_resources_manager (TAO_ORB_Core &core);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Thread_Lane_Resources_Manager_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Thread_Lane_Resources_Manager_Factory)
diff --git a/TAO/tao/Domain.pidl b/TAO/tao/Domain.pidl
index b221159edee..cb19c83a9aa 100644
--- a/TAO/tao/Domain.pidl
+++ b/TAO/tao/Domain.pidl
@@ -1,5 +1,3 @@
-// -*- IDL -*-
-
/**
* @file Domain.pidl
*
@@ -21,8 +19,6 @@
* -Wb,export_include=TAO_Export.h
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* Domain.pidl
*
* 2. Then patch the generated code. This patch (a) eliminates
@@ -47,8 +43,8 @@
#ifndef TAO_CORBA_DOMAIN_PIDL
#define TAO_CORBA_DOMAIN_PIDL
-#include "tao/Policy.pidl"
-#include "tao/InterfaceDef.pidl"
+#include <Policy.pidl>
+#include <InterfaceDef.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/Domain/DomainS.cpp b/TAO/tao/Domain/DomainS.cpp
index b17f2e46588..569c74c70d2 100644
--- a/TAO/tao/Domain/DomainS.cpp
+++ b/TAO/tao/Domain/DomainS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_DOMAINS_CPP_
-#include "tao/Domain/DomainS.h"
+#include "DomainS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h"
#include "tao/PortableServer/Upcall_Command.h"
@@ -69,14 +69,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/Domain/DomainS.inl"
+#include "DomainS.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -1686,7 +1684,5 @@ POA_CORBA::ConstructionPolicy::_this (ACE_ENV_SINGLE_ARG_DECL)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ifndef */
diff --git a/TAO/tao/Domain/DomainS.h b/TAO/tao/Domain/DomainS.h
index 0983a05f4fd..b95ab45f54b 100644
--- a/TAO/tao/Domain/DomainS.h
+++ b/TAO/tao/Domain/DomainS.h
@@ -54,7 +54,7 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-#include "tao/Domain/domain_export.h"
+#include "domain_export.h"
#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -483,12 +481,10 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:995
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "tao/Domain/DomainS_T.h"
+#include "DomainS_T.h"
#if defined (__ACE_INLINE__)
-#include "tao/Domain/DomainS.inl"
+#include "DomainS.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/Domain/DomainS.inl b/TAO/tao/Domain/DomainS.inl
index 5e1b77f1084..7da816922ac 100644
--- a/TAO/tao/Domain/DomainS.inl
+++ b/TAO/tao/Domain/DomainS.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
void
@@ -155,4 +154,3 @@ POA_CORBA::_TAO_ConstructionPolicy_Direct_Proxy_Impl::destroy (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Domain/DomainS_T.cpp b/TAO/tao/Domain/DomainS_T.cpp
index 1cf3d0d6643..951f03175c1 100644
--- a/TAO/tao/Domain/DomainS_T.cpp
+++ b/TAO/tao/Domain/DomainS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_ORIG_DOMAINS_T_CPP_
#define _TAO_IDL_ORIG_DOMAINS_T_CPP_
-#include "tao/Domain/DomainS_T.h"
+#include "DomainS_T.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Domain/DomainS_T.inl"
+#include "DomainS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/tao/Domain/DomainS_T.h b/TAO/tao/Domain/DomainS_T.h
index 253698af938..9d854d72853 100644
--- a/TAO/tao/Domain/DomainS_T.h
+++ b/TAO/tao/Domain/DomainS_T.h
@@ -38,7 +38,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -203,14 +202,12 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1096
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Domain/DomainS_T.inl"
+#include "DomainS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Domain/DomainS_T.cpp"
+#include "DomainS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Domain/DomainS_T.inl b/TAO/tao/Domain/DomainS_T.inl
index 2287aa6ba7e..83b1baa46c4 100644
--- a/TAO/tao/Domain/DomainS_T.inl
+++ b/TAO/tao/Domain/DomainS_T.inl
@@ -26,8 +26,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -300,5 +298,3 @@ void POA_CORBA::ConstructionPolicy_tie<T>::make_domain_manager (
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DomainC.cpp b/TAO/tao/DomainC.cpp
index 2b7a87fb286..edc3ef28c7c 100644
--- a/TAO/tao/DomainC.cpp
+++ b/TAO/tao/DomainC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/DomainC.h"
+#include "DomainC.h"
#include "tao/CDR.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.h"
@@ -48,14 +48,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/DomainC.inl"
+#include "DomainC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO specific stuff.
namespace CORBA
{
@@ -737,5 +735,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_DomainManagerList_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DomainC.h b/TAO/tao/DomainC.h
index a45d7c4d805..5a4683f1b2a 100644
--- a/TAO/tao/DomainC.h
+++ b/TAO/tao/DomainC.h
@@ -66,8 +66,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -480,10 +478,8 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/DomainC.inl"
+#include "DomainC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/DomainC.inl b/TAO/tao/DomainC.inl
index d46727c0132..59264e65404 100644
--- a/TAO/tao/DomainC.inl
+++ b/TAO/tao/DomainC.inl
@@ -29,8 +29,6 @@
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined (_CORBA_DOMAINMANAGER___CI_)
#define _CORBA_DOMAINMANAGER___CI_
@@ -99,5 +97,3 @@ CORBA::ConstructionPolicy::ConstructionPolicy (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DoubleSeq.pidl b/TAO/tao/DoubleSeq.pidl
index f214a297fad..75b7c1dad53 100644
--- a/TAO/tao/DoubleSeq.pidl
+++ b/TAO/tao/DoubleSeq.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include=tao/TAO_Export.h
* -Wb,anyop_export_macro=TAO_AnyTypeCode_Export
* -Wb,anyop_export_include=tao/AnyTypeCode/TAO_AnyTypeCode_Export.h
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* DoubleSeq.pidl
*/
diff --git a/TAO/tao/DoubleSeqC.cpp b/TAO/tao/DoubleSeqC.cpp
index 36f7fbb7cc5..e70ae2285d4 100644
--- a/TAO/tao/DoubleSeqC.cpp
+++ b/TAO/tao/DoubleSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/DoubleSeqC.h"
+#include "DoubleSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ void CORBA::DoubleSeq::_tao_any_destructor (
}
#endif /* _TAO_CDR_OP_CORBA_DoubleSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DoubleSeqC.h b/TAO/tao/DoubleSeqC.h
index 06e04f48497..01164cc055d 100644
--- a/TAO/tao/DoubleSeqC.h
+++ b/TAO/tao/DoubleSeqC.h
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -141,8 +139,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/DynamicAny/DynAnyFactory.cpp b/TAO/tao/DynamicAny/DynAnyFactory.cpp
index 8f6c231ac2a..63e18a2bc87 100644
--- a/TAO/tao/DynamicAny/DynAnyFactory.cpp
+++ b/TAO/tao/DynamicAny/DynAnyFactory.cpp
@@ -1,3 +1,4 @@
+
//=============================================================================
/**
* @file DynAnyFactory.cpp
@@ -9,14 +10,14 @@
//=============================================================================
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynAnyFactory.h"
-#include "tao/DynamicAny/DynAny_i.h"
-#include "tao/DynamicAny/DynStruct_i.h"
-#include "tao/DynamicAny/DynSequence_i.h"
-#include "tao/DynamicAny/DynEnum_i.h"
-#include "tao/DynamicAny/DynArray_i.h"
-#include "tao/DynamicAny/DynUnion_i.h"
+#include "DynAny_i.h"
+#include "DynStruct_i.h"
+#include "DynSequence_i.h"
+#include "DynEnum_i.h"
+#include "DynArray_i.h"
+#include "DynUnion_i.h"
#include "ace/Auto_Ptr.h"
@@ -24,8 +25,6 @@ ACE_RCSID (DynamicAny,
DynAnyFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor from typecode
TAO_DynAnyFactory::TAO_DynAnyFactory (void)
{
@@ -378,4 +377,3 @@ TAO_DynAnyFactory::make_dyn_any (CORBA::TypeCode_ptr tc
return DynamicAny::DynAny::_nil ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynAnyFactory.h b/TAO/tao/DynamicAny/DynAnyFactory.h
index f37cda716b8..e4b5e99d949 100644
--- a/TAO/tao/DynamicAny/DynAnyFactory.h
+++ b/TAO/tao/DynamicAny/DynAnyFactory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,7 +16,7 @@
#define TAO_DYNANYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,8 +29,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynAnyFactory
*
@@ -90,8 +87,6 @@ private:
TAO_DynAnyFactory &operator= (const TAO_DynAnyFactory &src);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynAny_i.cpp b/TAO/tao/DynamicAny/DynAny_i.cpp
index 796cc529bd3..cdd2ba9162f 100644
--- a/TAO/tao/DynamicAny/DynAny_i.cpp
+++ b/TAO/tao/DynamicAny/DynAny_i.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#include "tao/DynamicAny/DynAny_i.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynAny_i.h"
+#include "DynAnyFactory.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
#include "ace/OS_NS_wchar.h"
@@ -12,7 +13,6 @@ ACE_RCSID (DynamicAny,
DynAny_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_DynAny_i::TAO_DynAny_i (void)
{
@@ -513,7 +513,7 @@ TAO_DynAny_i::equal (DynamicAny::DynAny_ptr rhs
}
}
- return ACE_OS::wscmp (rhs_v, lhs_v) == 0;
+ return ACE_OS::strcmp (rhs_v, lhs_v) == 0;
}
default:
break; // Cannot happen...
@@ -556,5 +556,3 @@ TAO_DynAny_i::current_component (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_RETURN (DynamicAny::DynAny::TypeMismatch (),
DynamicAny::DynAny::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynAny_i.h b/TAO/tao/DynamicAny/DynAny_i.h
index 89c96f90350..db9b893ec58 100644
--- a/TAO/tao/DynamicAny/DynAny_i.h
+++ b/TAO/tao/DynamicAny/DynAny_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,13 +16,13 @@
#define TAO_DYNANY_I_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/DynCommon.h"
+#include "DynCommon.h"
#include "tao/LocalObject.h"
#if defined (_MSC_VER)
@@ -31,8 +30,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynAny_i
*
@@ -122,8 +119,6 @@ private:
TAO_DynAny_i &operator= (const TAO_DynAny_i &src);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynArray_i.cpp b/TAO/tao/DynamicAny/DynArray_i.cpp
index d45269d130e..e7dc61d55c5 100644
--- a/TAO/tao/DynamicAny/DynArray_i.cpp
+++ b/TAO/tao/DynamicAny/DynArray_i.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#include "tao/DynamicAny/DynArray_i.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynArray_i.h"
+#include "DynAnyFactory.h"
#include "tao/AnyTypeCode/Marshal.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
@@ -10,7 +11,6 @@ ACE_RCSID (DynamicAny,
DynArray_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_DynArray_i::TAO_DynArray_i (void)
{
@@ -659,5 +659,3 @@ TAO_DynArray_i::current_component (ACE_ENV_SINGLE_ARG_DECL)
this->da_members_[index].in ()
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynArray_i.h b/TAO/tao/DynamicAny/DynArray_i.h
index 8e28d989cae..d8b6120e9cd 100644
--- a/TAO/tao/DynamicAny/DynArray_i.h
+++ b/TAO/tao/DynamicAny/DynArray_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,13 +16,13 @@
#define TAO_DYNARRAY_I_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/DynCommon.h"
+#include "DynCommon.h"
#include "tao/LocalObject.h"
#include "ace/Containers.h"
@@ -32,8 +31,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynArray_i
*
@@ -162,8 +159,6 @@ private:
ACE_Array_Base<DynamicAny::DynAny_var> da_members_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynCommon.cpp b/TAO/tao/DynamicAny/DynCommon.cpp
index b4f5f05dfb5..15680111545 100644
--- a/TAO/tao/DynamicAny/DynCommon.cpp
+++ b/TAO/tao/DynamicAny/DynCommon.cpp
@@ -1,13 +1,14 @@
+/* -*- C++ -*- */
// $Id$
-#include "tao/DynamicAny/DynCommon.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
-#include "tao/DynamicAny/DynAny_i.h"
-#include "tao/DynamicAny/DynArray_i.h"
-#include "tao/DynamicAny/DynEnum_i.h"
-#include "tao/DynamicAny/DynSequence_i.h"
-#include "tao/DynamicAny/DynStruct_i.h"
-#include "tao/DynamicAny/DynUnion_i.h"
+#include "DynCommon.h"
+#include "DynAnyFactory.h"
+#include "DynAny_i.h"
+#include "DynArray_i.h"
+#include "DynEnum_i.h"
+#include "DynSequence_i.h"
+#include "DynStruct_i.h"
+#include "DynUnion_i.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
#include "ace/OS_NS_wchar.h"
@@ -19,8 +20,6 @@ ACE_RCSID (DynamicAny,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DynCommon::TAO_DynCommon (void)
{
}
@@ -731,7 +730,7 @@ TAO_DynCommon::insert_wstring (const CORBA::WChar * value
CORBA::ULong bound = unaliased_tc->length (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- if (bound > 0 && bound < ACE_OS::wslen (value))
+ if (bound > 0 && bound < ACE_OS::strlen (value))
{
ACE_THROW (DynamicAny::DynAny::InvalidValue ());
}
@@ -1850,5 +1849,3 @@ TAO_DynCommon::check_type_and_unalias (CORBA::TypeCode_ptr tc
return TAO_DynAnyFactory::strip_alias (tc
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynCommon.h b/TAO/tao/DynamicAny/DynCommon.h
index dccc16e617a..60a15b01d91 100644
--- a/TAO/tao/DynamicAny/DynCommon.h
+++ b/TAO/tao/DynamicAny/DynCommon.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,7 +15,7 @@
#define TAO_DYNCOMMON_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynCommon
*
@@ -548,8 +546,6 @@ private:
));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynEnum_i.cpp b/TAO/tao/DynamicAny/DynEnum_i.cpp
index d575d5e911a..7db76b721af 100644
--- a/TAO/tao/DynamicAny/DynEnum_i.cpp
+++ b/TAO/tao/DynamicAny/DynEnum_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/DynamicAny/DynEnum_i.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynEnum_i.h"
+#include "DynAnyFactory.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
@@ -12,7 +12,6 @@ ACE_RCSID (DynamicAny,
DynEnum_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_DynEnum_i::TAO_DynEnum_i (void)
{
@@ -345,5 +344,3 @@ TAO_DynEnum_i::current_component (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_RETURN (DynamicAny::DynAny::TypeMismatch (),
DynamicAny::DynAny::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynEnum_i.h b/TAO/tao/DynamicAny/DynEnum_i.h
index 6732653721e..57c68a2f69f 100644
--- a/TAO/tao/DynamicAny/DynEnum_i.h
+++ b/TAO/tao/DynamicAny/DynEnum_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,13 +16,13 @@
#define TAO_DYNENUM_I_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/DynCommon.h"
+#include "DynCommon.h"
#include "tao/LocalObject.h"
#include "ace/Containers.h"
@@ -32,8 +31,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynEnum_i
*
@@ -153,8 +150,6 @@ private:
CORBA::ULong value_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynSequence_i.cpp b/TAO/tao/DynamicAny/DynSequence_i.cpp
index 1394204164e..2e9d1b7c352 100644
--- a/TAO/tao/DynamicAny/DynSequence_i.cpp
+++ b/TAO/tao/DynamicAny/DynSequence_i.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#include "tao/DynamicAny/DynSequence_i.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynSequence_i.h"
+#include "DynAnyFactory.h"
#include "tao/AnyTypeCode/Marshal.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
@@ -10,7 +11,6 @@ ACE_RCSID (DynamicAny,
DynSequence_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_DynSequence_i::TAO_DynSequence_i (void)
{
@@ -829,5 +829,3 @@ TAO_DynSequence_i::current_component (ACE_ENV_SINGLE_ARG_DECL)
this->da_members_[index].in ()
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynSequence_i.h b/TAO/tao/DynamicAny/DynSequence_i.h
index e9763e95e5f..4c0b4f8880a 100644
--- a/TAO/tao/DynamicAny/DynSequence_i.h
+++ b/TAO/tao/DynamicAny/DynSequence_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,13 +16,13 @@
#define TAO_DYNSEQUENCE_I_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/DynCommon.h"
+#include "DynCommon.h"
#include "tao/LocalObject.h"
#include "ace/Containers.h"
@@ -32,8 +31,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynSequence_i
*
@@ -175,8 +172,6 @@ private:
ACE_Array_Base<DynamicAny::DynAny_var> da_members_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynStruct_i.cpp b/TAO/tao/DynamicAny/DynStruct_i.cpp
index 5073f7796e6..9da0b4d001f 100644
--- a/TAO/tao/DynamicAny/DynStruct_i.cpp
+++ b/TAO/tao/DynamicAny/DynStruct_i.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#include "tao/DynamicAny/DynStruct_i.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynStruct_i.h"
+#include "DynAnyFactory.h"
#include "tao/AnyTypeCode/Marshal.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
@@ -11,8 +12,6 @@ ACE_RCSID (DynamicAny,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DynStruct_i::TAO_DynStruct_i (void)
{
}
@@ -820,5 +819,3 @@ TAO_DynStruct_i::current_component (ACE_ENV_SINGLE_ARG_DECL)
this->da_members_[index].in ()
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynStruct_i.h b/TAO/tao/DynamicAny/DynStruct_i.h
index 62e9ecf7e1f..9301e632a5e 100644
--- a/TAO/tao/DynamicAny/DynStruct_i.h
+++ b/TAO/tao/DynamicAny/DynStruct_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,13 +16,13 @@
#define TAO_DYNSTRUCT_I_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/DynCommon.h"
+#include "DynCommon.h"
#include "tao/LocalObject.h"
#include "ace/Containers.h"
@@ -32,8 +31,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynStruct_i
*
@@ -182,8 +179,6 @@ private:
ACE_Array_Base<DynamicAny::DynAny_var> da_members_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynUnion_i.cpp b/TAO/tao/DynamicAny/DynUnion_i.cpp
index 60745e23849..26e98dc7d0b 100644
--- a/TAO/tao/DynamicAny/DynUnion_i.cpp
+++ b/TAO/tao/DynamicAny/DynUnion_i.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#include "tao/DynamicAny/DynUnion_i.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynUnion_i.h"
+#include "DynAnyFactory.h"
#include "tao/AnyTypeCode/Marshal.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
#include "tao/CDR.h"
@@ -10,7 +11,6 @@ ACE_RCSID (DynamicAny,
DynUnion_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_DynUnion_i::TAO_DynUnion_i (void)
{
@@ -1121,5 +1121,3 @@ TAO_DynUnion_i::label_match (const CORBA::Any &my_any,
return 0;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynUnion_i.h b/TAO/tao/DynamicAny/DynUnion_i.h
index c7aa9c1377e..3052ca6167e 100644
--- a/TAO/tao/DynamicAny/DynUnion_i.h
+++ b/TAO/tao/DynamicAny/DynUnion_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
//=============================================================================
@@ -17,13 +16,13 @@
#define TAO_DYNUNION_I_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/DynCommon.h"
+#include "DynCommon.h"
#include "tao/LocalObject.h"
#if defined (_MSC_VER)
@@ -31,8 +30,6 @@
# pragma warning (disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_DynUnion_i
*
@@ -211,8 +208,6 @@ private:
CORBA::ULong member_slot_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicAny/DynamicAny.cpp b/TAO/tao/DynamicAny/DynamicAny.cpp
index 2bf234a3a27..6601550c40d 100644
--- a/TAO/tao/DynamicAny/DynamicAny.cpp
+++ b/TAO/tao/DynamicAny/DynamicAny.cpp
@@ -1,3 +1,5 @@
+/* -*- C++ -*- */
+
//=============================================================================
/**
* @file DynamicAny.cpp
@@ -9,13 +11,11 @@
//=============================================================================
-#include "tao/DynamicAny/DynamicAny.h"
-#include "tao/DynamicAny/DynAnyFactory.h"
+#include "DynamicAny.h"
+#include "DynAnyFactory.h"
ACE_RCSID(DynamicAny, DynamicAny, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DynamicAny_Loader::TAO_DynamicAny_Loader (void)
{
}
@@ -40,8 +40,6 @@ TAO_DynamicAny_Loader::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_DynamicAny_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_DynamicAny_Loader,
ACE_TEXT ("DynamicAny_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/DynamicAny/DynamicAny.h b/TAO/tao/DynamicAny/DynamicAny.h
index 652f52939f9..198439dc114 100644
--- a/TAO/tao/DynamicAny/DynamicAny.h
+++ b/TAO/tao/DynamicAny/DynamicAny.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -15,10 +16,10 @@
#define TAO_DYNAMICANY_H
#include /**/ "ace/pre.h"
-#include "tao/DynamicAny/dynamicany_export.h"
+#include "dynamicany_export.h"
#define TAO_DYNAMICANY_SAFE_INCLUDE
-#include "tao/DynamicAny/DynamicAnyC.h"
+#include "DynamicAnyC.h"
#undef TAO_DYNAMICANY_SAFE_INCLUDE
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -28,8 +29,6 @@
#include "tao/Object_Loader.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_DynamicAny_Export TAO_DynamicAny_Loader : public TAO_Object_Loader
{
public:
@@ -47,13 +46,11 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_DynamicAny_Initializer = TAO_DynamicAny_Loader::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_DynamicAny_Loader)
ACE_FACTORY_DECLARE (TAO_DynamicAny, TAO_DynamicAny_Loader)
+static int
+TAO_Requires_DynamicAny_Initializer = TAO_DynamicAny_Loader::Initializer ();
+
#include /**/ "ace/post.h"
#endif /* TAO_DYNAMICANY_H */
diff --git a/TAO/tao/DynamicAny/DynamicAny.pidl b/TAO/tao/DynamicAny/DynamicAny.pidl
index 1a8fe09cc21..1a6db982993 100644
--- a/TAO/tao/DynamicAny/DynamicAny.pidl
+++ b/TAO/tao/DynamicAny/DynamicAny.pidl
@@ -1,5 +1,3 @@
-// -*- IDL -*-
-
/**
* @file DynamicAny.pidl
*
@@ -27,8 +25,6 @@
* -Wb,export_include=dynamicany_export.h \
* -Wb,pre_include="ace/pre.h" \
* -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
* DynamicAny.pidl
*
* after the file is generated a patch must be applied. The patch
@@ -52,7 +48,7 @@
#pragma prefix "omg.org"
-#include "tao/Typecode_types.pidl"
+#include <Typecode_types.pidl>
module DynamicAny {
diff --git a/TAO/tao/DynamicAny/DynamicAnyC.cpp b/TAO/tao/DynamicAny/DynamicAnyC.cpp
index 0ddb61243f5..ba64e06d5b0 100644
--- a/TAO/tao/DynamicAny/DynamicAnyC.cpp
+++ b/TAO/tao/DynamicAny/DynamicAnyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/DynamicAny/DynamicAny.h"
+#include "DynamicAny.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -1880,5 +1878,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_DynamicAny_AnySeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicAny/DynamicAnyC.h b/TAO/tao/DynamicAny/DynamicAnyC.h
index 4aebbe120c5..f78ad947472 100644
--- a/TAO/tao/DynamicAny/DynamicAnyC.h
+++ b/TAO/tao/DynamicAny/DynamicAnyC.h
@@ -44,7 +44,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicAny/dynamicany_export.h"
+#include "dynamicany_export.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Any.h"
@@ -77,8 +77,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace DynamicAny
{
@@ -2534,8 +2532,6 @@ TAO_DynamicAny_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/DynamicInterface/Context.cpp b/TAO/tao/DynamicInterface/Context.cpp
index 3edab19588b..2e47f392f5f 100644
--- a/TAO/tao/DynamicInterface/Context.cpp
+++ b/TAO/tao/DynamicInterface/Context.cpp
@@ -1,4 +1,4 @@
-#include "tao/DynamicInterface/Context.h"
+#include "Context.h"
ACE_RCSID (DynamicInterface,
Context,
@@ -12,10 +12,9 @@ ACE_RCSID (DynamicInterface,
#include "ace/Guard_T.h"
#if !defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/Context.inl"
+# include "Context.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::Context::Context (void)
: refcount_ (1)
@@ -200,4 +199,4 @@ CORBA::ContextList::_decr_refcnt (void)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/DynamicInterface/Context.h b/TAO/tao/DynamicInterface/Context.h
index 9f58f19cb4b..de3f12de654 100644
--- a/TAO/tao/DynamicInterface/Context.h
+++ b/TAO/tao/DynamicInterface/Context.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
//=============================================================================
@@ -19,13 +18,13 @@
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicInterface/DII_CORBA_methods.h"
+#include "DII_CORBA_methods.h"
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/Pseudo_VarOut_T.h"
@@ -44,8 +43,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_DynamicInterface_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
typedef ULong Flags;
@@ -196,10 +193,8 @@ namespace CORBA
};
} // End CORBA namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/Context.inl"
+# include "Context.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/DynamicInterface/Context.inl b/TAO/tao/DynamicInterface/Context.inl
index 87c338e31e0..1542333d043 100644
--- a/TAO/tao/DynamicInterface/Context.inl
+++ b/TAO/tao/DynamicInterface/Context.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
CORBA::release (CORBA::Context_ptr x)
@@ -93,5 +91,3 @@ CORBA::ContextList::_duplicate (CORBA::ContextList_ptr x)
return x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/DII_Arguments.cpp b/TAO/tao/DynamicInterface/DII_Arguments.cpp
index d72c4f43420..31205aa8b6a 100644
--- a/TAO/tao/DynamicInterface/DII_Arguments.cpp
+++ b/TAO/tao/DynamicInterface/DII_Arguments.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/DynamicInterface/DII_Arguments.h"
+#include "DII_Arguments.h"
#include "tao/AnyTypeCode/NVList.h"
#include "tao/AnyTypeCode/Any_Impl.h"
@@ -14,11 +14,9 @@ ACE_RCSID (DynamicInterface,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/DII_Arguments.inl"
+# include "DII_Arguments.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
CORBA::Boolean
@@ -142,5 +140,3 @@ namespace TAO
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/DII_Arguments.h b/TAO/tao/DynamicInterface/DII_Arguments.h
index 6f362d7a099..cf681244b44 100644
--- a/TAO/tao/DynamicInterface/DII_Arguments.h
+++ b/TAO/tao/DynamicInterface/DII_Arguments.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class NamedValue;
@@ -88,10 +86,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/DII_Arguments.inl"
+# include "DII_Arguments.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/DynamicInterface/DII_Arguments.inl b/TAO/tao/DynamicInterface/DII_Arguments.inl
index 265bffbf7de..f2c11256c20 100644
--- a/TAO/tao/DynamicInterface/DII_Arguments.inl
+++ b/TAO/tao/DynamicInterface/DII_Arguments.inl
@@ -2,16 +2,13 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE
NamedValue_Argument::NamedValue_Argument (CORBA::NamedValue_ptr x)
: x_ (x)
- , byte_order_ (0)
- {
- }
+ , byte_order_ (0)
+ {}
ACE_INLINE int
NamedValue_Argument::byte_order (void) const
@@ -26,8 +23,5 @@ namespace TAO
bool lazy_eval)
: x_ (x)
, lazy_evaluation_ (lazy_eval)
- {
- }
+ {}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/DII_CORBA_methods.h b/TAO/tao/DynamicInterface/DII_CORBA_methods.h
index aea9e098cbb..b45e4362296 100644
--- a/TAO/tao/DynamicInterface/DII_CORBA_methods.h
+++ b/TAO/tao/DynamicInterface/DII_CORBA_methods.h
@@ -31,7 +31,6 @@
#define TAO_EXPORT_MACRO TAO_DynamicInterface_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -61,8 +60,6 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_DII_CORBA_METHODS_H */
diff --git a/TAO/tao/DynamicInterface/DII_Invocation.cpp b/TAO/tao/DynamicInterface/DII_Invocation.cpp
index 6a75d25ad6a..abb404acba0 100644
--- a/TAO/tao/DynamicInterface/DII_Invocation.cpp
+++ b/TAO/tao/DynamicInterface/DII_Invocation.cpp
@@ -3,12 +3,12 @@
#include "tao/AnyTypeCode/DynamicC.h"
#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/DynamicInterface/DII_Invocation.h"
-#include "tao/DynamicInterface/Unknown_User_Exception.h"
-#include "tao/DynamicInterface/DII_Arguments.h"
-#include "tao/DynamicInterface/ExceptionList.h"
-#include "tao/DynamicInterface/Request.h"
-#include "tao/DynamicInterface/DII_Reply_Dispatcher.h"
+#include "DII_Invocation.h"
+#include "Unknown_User_Exception.h"
+#include "DII_Arguments.h"
+#include "ExceptionList.h"
+#include "Request.h"
+#include "DII_Reply_Dispatcher.h"
#include "tao/operation_details.h"
#include "tao/Invocation_Utils.h"
@@ -27,8 +27,6 @@ ACE_RCSID (DynamicInterface,
DII_Invocation,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
DII_Invocation::DII_Invocation (CORBA::Object_ptr otarget,
@@ -230,5 +228,3 @@ namespace TAO
ACE_ENV_ARG_PARAMETER);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/DII_Invocation.h b/TAO/tao/DynamicInterface/DII_Invocation.h
index ba3a5a6be66..f632beb75c0 100644
--- a/TAO/tao/DynamicInterface/DII_Invocation.h
+++ b/TAO/tao/DynamicInterface/DII_Invocation.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -16,10 +16,9 @@
#ifndef TAO_DII_INVOCATION_H
#define TAO_DII_INVOCATION_H
-
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,8 +27,6 @@
#include "tao/Synch_Invocation.h"
#include "tao/Messaging/Asynch_Invocation.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_DII_Deferred_Reply_Dispatcher;
namespace Dynamic
@@ -83,8 +80,8 @@ namespace TAO
/*
*
*/
- class TAO_DynamicInterface_Export DII_Deferred_Invocation
- : public Asynch_Remote_Invocation
+ class TAO_DynamicInterface_Export DII_Deferred_Invocation :
+ public Asynch_Remote_Invocation
{
public:
friend class DII_Deferred_Invocation_Adapter;
@@ -115,8 +112,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
-#endif /* TAO_DII_INVOCATION_H */
+#endif /* TAO_ASYNCH_INVOCATION_H */
diff --git a/TAO/tao/DynamicInterface/DII_Invocation_Adapter.cpp b/TAO/tao/DynamicInterface/DII_Invocation_Adapter.cpp
index 1cf3a172f6a..cadf68653ce 100644
--- a/TAO/tao/DynamicInterface/DII_Invocation_Adapter.cpp
+++ b/TAO/tao/DynamicInterface/DII_Invocation_Adapter.cpp
@@ -1,7 +1,7 @@
//$Id$
-#include "tao/DynamicInterface/DII_Invocation_Adapter.h"
-#include "tao/DynamicInterface/DII_Invocation.h"
-#include "tao/DynamicInterface/DII_Reply_Dispatcher.h"
+#include "DII_Invocation_Adapter.h"
+#include "DII_Invocation.h"
+#include "DII_Reply_Dispatcher.h"
#include "tao/Exception.h"
#include "tao/ORB_Constants.h"
@@ -9,7 +9,7 @@
#include "tao/Transport.h"
#include "tao/Transport.h"
#include "tao/Pluggable_Messaging.h"
-#include "tao/DynamicInterface/Request.h"
+#include "Request.h"
#include "ace/os_include/os_errno.h"
@@ -18,8 +18,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
DII_Invocation_Adapter::DII_Invocation_Adapter (CORBA::Object *target,
@@ -85,15 +83,8 @@ namespace TAO
effective_target =
synch.steal_forwarded_reference ();
-#if TAO_HAS_INTERCEPTORS == 1
- const CORBA::Boolean permanent_forward =
- (synch.reply_status() == TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM);
-#else
- const CORBA::Boolean permanent_forward = false;
-#endif
this->object_forwarded (effective_target,
- r.stub (),
- permanent_forward
+ r.stub ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (TAO_INVOKE_FAILURE);
}
@@ -190,5 +181,3 @@ namespace TAO
return status;
}
} // End namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/DII_Invocation_Adapter.h b/TAO/tao/DynamicInterface/DII_Invocation_Adapter.h
index d80f9900855..749029a23e0 100644
--- a/TAO/tao/DynamicInterface/DII_Invocation_Adapter.h
+++ b/TAO/tao/DynamicInterface/DII_Invocation_Adapter.h
@@ -22,14 +22,9 @@
#include "tao/Invocation_Adapter.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Operation_Details;
class TAO_Stub;
+class ACE_Time_Value;
class TAO_ORB_Core;
class TAO_DII_Deferred_Reply_Dispatcher;
namespace CORBA
@@ -114,10 +109,10 @@ namespace TAO
private:
/// Dont allow default initializations
- DII_Invocation_Adapter (void);
+ ACE_UNIMPLEMENTED_FUNC (DII_Invocation_Adapter (void))
- DII_Invocation_Adapter (const DII_Invocation_Adapter &);
- DII_Invocation_Adapter & operator= (const DII_Invocation_Adapter &);
+ ACE_UNIMPLEMENTED_FUNC (
+ DII_Invocation_Adapter & operator= (const DII_Invocation_Adapter &))
};
/**
@@ -163,7 +158,6 @@ namespace TAO
};
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /*TAO_INVOCATION_ADAPTER_H*/
diff --git a/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.cpp b/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.cpp
index 877570d611a..f835b4eca4c 100644
--- a/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.cpp
+++ b/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/DynamicInterface/DII_Reply_Dispatcher.h"
-#include "tao/DynamicInterface/Request.h"
+#include "DII_Reply_Dispatcher.h"
+#include "Request.h"
#include "tao/Environment.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -13,7 +13,8 @@ ACE_RCSID(DynamicInterface,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
// Constructor.
TAO_DII_Deferred_Reply_Dispatcher::TAO_DII_Deferred_Reply_Dispatcher (
@@ -143,5 +144,3 @@ TAO_DII_Deferred_Reply_Dispatcher::connection_closed (void)
(void) this->decr_refcount ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h b/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h
index cb450106c5d..8c1719fbec3 100644
--- a/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h
+++ b/TAO/tao/DynamicInterface/DII_Reply_Dispatcher.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#include "tao/orbconf.h"
#include "tao/Asynch_Reply_Dispatcher_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Request;
@@ -73,8 +71,6 @@ private:
const CORBA::Request_ptr req_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REPLY_DISPATCHER_H */
diff --git a/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.cpp b/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.cpp
index a23c6c4e06e..ce379c1a689 100644
--- a/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.cpp
+++ b/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "tao/DynamicInterface/Dynamic_Adapter_Impl.h"
+#include "Dynamic_Adapter_Impl.h"
ACE_RCSID(DynamicInterface, TAO_Dynamic_Adapter_Impl, "$Id$")
-#include "tao/DynamicInterface/Request.h"
-#include "tao/DynamicInterface/Server_Request.h"
+#include "Request.h"
+#include "Server_Request.h"
#include "tao/ORB_Core.h"
#include "tao/Exception.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Dynamic_Adapter_Impl::TAO_Dynamic_Adapter_Impl (void)
{
}
@@ -143,8 +141,6 @@ TAO_Dynamic_Adapter_Impl::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_Dynamic_Adapter_Impl);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (
TAO_Dynamic_Adapter_Impl,
ACE_TEXT ("Concrete_Dynamic_Adapter"),
diff --git a/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.h b/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.h
index 9537488f66c..d1b8ec6fc8e 100644
--- a/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.h
+++ b/TAO/tao/DynamicInterface/Dynamic_Adapter_Impl.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+// This may look like C, but it's really -*- C++ -*-
// $Id$
// ============================================================================
@@ -28,19 +27,17 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_Dynamic_Adapter_Impl
- *
- * Concrete subclass of TAO_Dynamic_Adapter
- * in the TAO library. This class helps implement various
- * functions in the CORBA namespace relating to DII/DSI
- * invocations.
- */
+ /**
+ * @class TAO_Dynamic_Adapter_Impl
+ *
+ * Concrete subclass of TAO_Dynamic_Adapter
+ * in the TAO library. This class helps implement various
+ * functions in the CORBA namespace relating to DII/DSI
+ * invocations.
+ */
class TAO_DynamicInterface_Export TAO_Dynamic_Adapter_Impl
: public TAO_Dynamic_Adapter
{
@@ -88,14 +85,12 @@ public:
static int Initializer (void);
};
+ACE_STATIC_SVC_DECLARE (TAO_Dynamic_Adapter_Impl)
+ACE_FACTORY_DECLARE (TAO_DynamicInterface, TAO_Dynamic_Adapter_Impl)
+
static int
TAO_Requires_Request_Factory_Initializer =
TAO_Dynamic_Adapter_Impl::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (TAO_Dynamic_Adapter_Impl)
-ACE_FACTORY_DECLARE (TAO_DynamicInterface, TAO_Dynamic_Adapter_Impl)
-
#include /**/ "ace/post.h"
#endif /* TAO_DYNAMIC_ADAPTER_IMPL_H */
diff --git a/TAO/tao/DynamicInterface/Dynamic_Implementation.cpp b/TAO/tao/DynamicInterface/Dynamic_Implementation.cpp
index 6f9aa2d6bf7..e8fa30d8e3f 100644
--- a/TAO/tao/DynamicInterface/Dynamic_Implementation.cpp
+++ b/TAO/tao/DynamicInterface/Dynamic_Implementation.cpp
@@ -1,11 +1,11 @@
-#include "tao/DynamicInterface/Dynamic_Implementation.h"
+#include "Dynamic_Implementation.h"
ACE_RCSID (DynamicInterface,
Dynamic_Implementation,
"$Id$")
-#include "tao/DynamicInterface/Server_Request.h"
+#include "Server_Request.h"
#include "tao/ORB_Core.h"
#include "tao/TSS_Resources.h"
#include "tao/IFR_Client_Adapter.h"
@@ -16,8 +16,6 @@ ACE_RCSID (DynamicInterface,
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Boolean
TAO_DynamicImplementation::_is_a (const char *logical_type_id
ACE_ENV_ARG_DECL)
@@ -217,5 +215,3 @@ TAO_DynamicImplementation::get_id_from_primary_interface (
poa.in ()
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Dynamic_Implementation.h b/TAO/tao/DynamicInterface/Dynamic_Implementation.h
index b9c17c21ea2..7e7ed6c0c67 100644
--- a/TAO/tao/DynamicInterface/Dynamic_Implementation.h
+++ b/TAO/tao/DynamicInterface/Dynamic_Implementation.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+// This may look like C, but it's really -*- C++ -*-
// $Id$
// ============================================================================
@@ -23,7 +22,7 @@
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,8 +30,6 @@
#include "tao/PortableServer/Servant_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
typedef char *RepositoryId;
@@ -106,8 +103,6 @@ private:
);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_DYNAMIC_IMPLEMENTATION_H */
diff --git a/TAO/tao/DynamicInterface/ExceptionList.cpp b/TAO/tao/DynamicInterface/ExceptionList.cpp
index 41c1d44d322..ca87c8eceaa 100644
--- a/TAO/tao/DynamicInterface/ExceptionList.cpp
+++ b/TAO/tao/DynamicInterface/ExceptionList.cpp
@@ -1,4 +1,4 @@
-#include "tao/DynamicInterface/ExceptionList.h"
+#include "ExceptionList.h"
ACE_RCSID (DynamicInterface,
ExceptionList,
@@ -9,10 +9,9 @@ ACE_RCSID (DynamicInterface,
#include "tao/SystemException.h"
#if !defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/ExceptionList.inl"
+# include "ExceptionList.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::ExceptionList::ExceptionList (CORBA::ULong len,
CORBA::TypeCode_ptr *tc_list)
@@ -105,4 +104,4 @@ CORBA::ExceptionList::_decr_refcnt (void)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/DynamicInterface/ExceptionList.h b/TAO/tao/DynamicInterface/ExceptionList.h
index 3fdca028ca5..05a17aba67e 100644
--- a/TAO/tao/DynamicInterface/ExceptionList.h
+++ b/TAO/tao/DynamicInterface/ExceptionList.h
@@ -24,13 +24,13 @@
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/DynamicInterface/DII_CORBA_methods.h"
+#include "DII_CORBA_methods.h"
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/orbconf.h"
#include "tao/Basic_Types.h"
@@ -47,8 +47,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_DynamicInterface_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
typedef TAO_Pseudo_Var_T<ExceptionList> ExceptionList_var;
@@ -125,10 +123,8 @@ namespace CORBA
};
} // End CORBA namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/ExceptionList.inl"
+# include "ExceptionList.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/DynamicInterface/ExceptionList.inl b/TAO/tao/DynamicInterface/ExceptionList.inl
index d5fe85f4b65..fda8385bd58 100644
--- a/TAO/tao/DynamicInterface/ExceptionList.inl
+++ b/TAO/tao/DynamicInterface/ExceptionList.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
CORBA::release (CORBA::ExceptionList_ptr x)
@@ -54,5 +52,3 @@ CORBA::ExceptionList::_duplicate (CORBA::ExceptionList_ptr x)
return x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Request.cpp b/TAO/tao/DynamicInterface/Request.cpp
index 5a1ef1942f5..bc6317b1e53 100644
--- a/TAO/tao/DynamicInterface/Request.cpp
+++ b/TAO/tao/DynamicInterface/Request.cpp
@@ -1,14 +1,14 @@
// $Id$
-#include "tao/DynamicInterface/Request.h"
+#include "Request.h"
ACE_RCSID (DynamicInterface,
Request,
"$Id$")
-#include "tao/DynamicInterface/DII_Invocation_Adapter.h"
-#include "tao/DynamicInterface/DII_Arguments.h"
-#include "tao/DynamicInterface/Context.h"
+#include "DII_Invocation_Adapter.h"
+#include "DII_Arguments.h"
+#include "Context.h"
#include "tao/AnyTypeCode/NVList.h"
#include "tao/Object.h"
@@ -19,12 +19,10 @@ ACE_RCSID (DynamicInterface,
#include "ace/OS_NS_string.h"
#if !defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/Request.inl"
+# include "Request.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Reference counting for DII Request object.
CORBA::ULong
@@ -348,7 +346,6 @@ CORBA::Request::handle_response (TAO_InputCDR &incoming,
case TAO_PLUGGABLE_MESSAGE_USER_EXCEPTION:
case TAO_PLUGGABLE_MESSAGE_SYSTEM_EXCEPTION:
case TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD:
- case TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM:
default:
// @@ (JP) Don't know what to do about any of these yet.
ACE_ERROR ((LM_ERROR,
@@ -356,4 +353,3 @@ CORBA::Request::handle_response (TAO_InputCDR &incoming,
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Request.h b/TAO/tao/DynamicInterface/Request.h
index 2c119dca9b3..32cf720983b 100644
--- a/TAO/tao/DynamicInterface/Request.h
+++ b/TAO/tao/DynamicInterface/Request.h
@@ -27,9 +27,9 @@
// To force execution of the static constructor
// that registers the dynamic service object.
-#include "tao/DynamicInterface/Dynamic_Adapter_Impl.h"
+#include "Dynamic_Adapter_Impl.h"
-#include "tao/DynamicInterface/ExceptionList.h"
+#include "ExceptionList.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
@@ -45,8 +45,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_DynamicInterface_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class NVList;
@@ -268,10 +266,8 @@ namespace CORBA
};
} // End CORBA namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/Request.inl"
+# include "Request.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/DynamicInterface/Request.inl b/TAO/tao/DynamicInterface/Request.inl
index f540c8652d6..4b625ef61da 100644
--- a/TAO/tao/DynamicInterface/Request.inl
+++ b/TAO/tao/DynamicInterface/Request.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
CORBA::release (CORBA::Request_ptr x)
@@ -198,5 +196,3 @@ CORBA::Request::response_received (void)
return this->response_received_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Server_Request.cpp b/TAO/tao/DynamicInterface/Server_Request.cpp
index 57c440c55db..6628d52e01d 100644
--- a/TAO/tao/DynamicInterface/Server_Request.cpp
+++ b/TAO/tao/DynamicInterface/Server_Request.cpp
@@ -2,7 +2,7 @@
// Implementation of the Dynamic Server Skeleton Interface.
-#include "tao/DynamicInterface/Server_Request.h"
+#include "Server_Request.h"
ACE_RCSID (DynamicInterface,
Server_Request,
@@ -16,11 +16,9 @@ ACE_RCSID (DynamicInterface,
#include "tao/SystemException.h"
#if !defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/Server_Request.inl"
+# include "Server_Request.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Reference counting for DSI ServerRequest object.
CORBA::ULong
@@ -240,4 +238,3 @@ CORBA::ServerRequest::gateway_exception_reply (ACE_CString &raw_exception)
this->orb_server_request_.tao_send_reply ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Server_Request.h b/TAO/tao/DynamicInterface/Server_Request.h
index 288c43761a3..2db2bed43c8 100644
--- a/TAO/tao/DynamicInterface/Server_Request.h
+++ b/TAO/tao/DynamicInterface/Server_Request.h
@@ -24,7 +24,7 @@
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/Context.h"
+#include "Context.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,7 +32,7 @@
// To force execution of the static constructor
// that registers the dynamic service object.
-#include "tao/DynamicInterface/Dynamic_Adapter_Impl.h"
+#include "Dynamic_Adapter_Impl.h"
#include "tao/TAO_Server_Request.h"
#include "tao/CDR.h"
@@ -42,8 +42,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_DynamicInterface_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class ServerRequest;
@@ -174,10 +172,8 @@ namespace CORBA
};
} // End CORBA namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/DynamicInterface/Server_Request.inl"
+# include "Server_Request.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/DynamicInterface/Server_Request.inl b/TAO/tao/DynamicInterface/Server_Request.inl
index b8e4bf6099f..4eca4ba2639 100644
--- a/TAO/tao/DynamicInterface/Server_Request.inl
+++ b/TAO/tao/DynamicInterface/Server_Request.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
CORBA::release (CORBA::ServerRequest_ptr x)
@@ -82,5 +80,3 @@ CORBA::ServerRequest::_tao_server_request (void)
{
return this->orb_server_request_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Unknown_User_Exception.cpp b/TAO/tao/DynamicInterface/Unknown_User_Exception.cpp
index 81d9935832f..bcc01200d6a 100644
--- a/TAO/tao/DynamicInterface/Unknown_User_Exception.cpp
+++ b/TAO/tao/DynamicInterface/Unknown_User_Exception.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/DynamicInterface/Unknown_User_Exception.h"
+#include "Unknown_User_Exception.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/Environment.h"
@@ -18,7 +18,6 @@ ACE_RCSID (DynamicInterface,
Unknown_User_Exception,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::UnknownUserException::UnknownUserException (void)
: CORBA::UserException ("IDL:omg.org/CORBA/UnknownUserException:1.0",
@@ -135,5 +134,3 @@ namespace CORBA
CORBA::TypeCode_ptr const _tc_UnknownUserException =
&TAO::TypeCode::tc_UnknownUserException;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/DynamicInterface/Unknown_User_Exception.h b/TAO/tao/DynamicInterface/Unknown_User_Exception.h
index ab618060852..1976000db16 100644
--- a/TAO/tao/DynamicInterface/Unknown_User_Exception.h
+++ b/TAO/tao/DynamicInterface/Unknown_User_Exception.h
@@ -20,7 +20,7 @@
#include /**/ "ace/pre.h"
-#include "tao/DynamicInterface/dynamicinterface_export.h"
+#include "dynamicinterface_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -40,8 +40,6 @@
# define TAO_EXPORT_NESTED_MACRO TAO_DynamicInterface_Export
#endif /* TAO_EXPORT_NESTED_CLASSES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
/**
@@ -105,7 +103,6 @@ namespace CORBA
} // End CORBA namespace.
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Dynamic_Adapter.cpp b/TAO/tao/Dynamic_Adapter.cpp
index 7e4a4ab96aa..b51e0008ca8 100644
--- a/TAO/tao/Dynamic_Adapter.cpp
+++ b/TAO/tao/Dynamic_Adapter.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/Dynamic_Adapter.h"
@@ -6,10 +6,7 @@ ACE_RCSID (tao,
Dynamic_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Dynamic_Adapter::~TAO_Dynamic_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Dynamic_Adapter.h b/TAO/tao/Dynamic_Adapter.h
index af68465a486..970e28d5a54 100644
--- a/TAO/tao/Dynamic_Adapter.h
+++ b/TAO/tao/Dynamic_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "tao/Basic_Types.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
@@ -110,7 +108,6 @@ public:
ACE_ENV_ARG_DECL) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_DYNAMIC_ADAPTER_H */
diff --git a/TAO/tao/Endpoint.cpp b/TAO/tao/Endpoint.cpp
index 75f61995341..319fc7d5d1a 100644
--- a/TAO/tao/Endpoint.cpp
+++ b/TAO/tao/Endpoint.cpp
@@ -6,16 +6,13 @@
#include "tao/Endpoint.i"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- Endpoint,
+ACE_RCSID (tao,
+ Endpoint,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Endpoint::~TAO_Endpoint (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
//@@ TAO_ENDPOINT_SPL_METHODS_ADD_HOOK
diff --git a/TAO/tao/Endpoint.h b/TAO/tao/Endpoint.h
index b762595ef58..b9ac5ef5a45 100644
--- a/TAO/tao/Endpoint.h
+++ b/TAO/tao/Endpoint.h
@@ -27,8 +27,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
* Includes and forward decls for specializing TAO's
* endpoint implementation.
@@ -125,7 +123,7 @@ protected:
/// IOP tag, identifying the protocol for which this endpoint
/// contains addressing info.
- CORBA::ULong const tag_;
+ CORBA::ULong tag_;
/**
* CORBA priority of the acceptor this Endpoint is representing.
@@ -137,8 +135,8 @@ protected:
private:
/// Endpoints should not be copied.
- TAO_Endpoint (const TAO_Endpoint&);
- void operator= (const TAO_Endpoint&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_Endpoint (const TAO_Endpoint&))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Endpoint&))
/*
* Addition of private members from derived class.
@@ -149,8 +147,6 @@ private:
//@@ TAO_ENDPOINT_SPL_EXTERN_ADD_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Endpoint.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Endpoint.i b/TAO/tao/Endpoint.i
index ab570490899..10d7d86325b 100644
--- a/TAO/tao/Endpoint.i
+++ b/TAO/tao/Endpoint.i
@@ -1,17 +1,14 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Endpoint::TAO_Endpoint (CORBA::ULong tag,
CORBA::Short priority)
: addr_lookup_lock_ ()
- // @@ Would be a tragedy if the hash value of this endpoint is 0, in
- // which case this optimizaton wouldn't work. We can get around
- // that using a bool. But we don't want to increase the runtime
- // memory.
+ // @@Would be a tragedy if the hash value of this endpoint is 0, in
+ // which case this optimizaton wouldn't work. We can get around
+ // that using a bool. But we don't want to increase the runtime
+ // memory
, hash_val_ (0)
, tag_ (tag)
, priority_ (priority)
@@ -36,5 +33,3 @@ TAO_Endpoint::priority (CORBA::Short p)
{
this->priority_ = p;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Endpoint_Selector_Factory.cpp b/TAO/tao/Endpoint_Selector_Factory.cpp
index 6fc44b4efcc..9e97eb8b282 100644
--- a/TAO/tao/Endpoint_Selector_Factory.cpp
+++ b/TAO/tao/Endpoint_Selector_Factory.cpp
@@ -6,10 +6,7 @@ ACE_RCSID (tao,
Endpoint_Selector_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Endpoint_Selector_Factory::~TAO_Endpoint_Selector_Factory (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Endpoint_Selector_Factory.h b/TAO/tao/Endpoint_Selector_Factory.h
index c3364874813..39540be51c4 100644
--- a/TAO/tao/Endpoint_Selector_Factory.h
+++ b/TAO/tao/Endpoint_Selector_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -18,18 +18,15 @@
#define TAO_ENDPOINT_SELECTOR_FACTORY_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/CORBA_macros.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
#include "ace/Service_Object.h"
-#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/TAO_Export.h"
namespace CORBA
{
@@ -74,7 +71,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ENDPOINT_SELECTOR_FACTORY_H */
diff --git a/TAO/tao/Environment.cpp b/TAO/tao/Environment.cpp
index 62b2ef0b142..6938ac7259e 100644
--- a/TAO/tao/Environment.cpp
+++ b/TAO/tao/Environment.cpp
@@ -1,7 +1,7 @@
-#include "tao/Environment.h"
-#include "tao/ORB_Core.h"
-#include "tao/SystemException.h"
-#include "tao/default_environment.h"
+#include "Environment.h"
+#include "ORB_Core.h"
+#include "SystemException.h"
+#include "default_environment.h"
#include "ace/OS_NS_string.h"
@@ -15,8 +15,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Environment::Environment (void)
: exception_ (0)
, previous_ (0)
@@ -189,7 +187,7 @@ CORBA::Environment::print_exception (const char *info,
ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("TAO: (%P|%t) EXCEPTION, %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (info)));
+ ACE_TEXT_TO_TCHAR_IN (info)));
CORBA::SystemException *x2 =
CORBA::SystemException::_downcast (this->exception_);
@@ -202,11 +200,10 @@ CORBA::Environment::print_exception (const char *info,
ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("TAO: (%P|%t) user exception, ID '%s'\n"),
- ACE_TEXT_CHAR_TO_TCHAR (id)));
+ ACE_TEXT_TO_TCHAR_IN (id)));
}
else
ACE_DEBUG ((LM_ERROR,
- ACE_TEXT ("TAO: (%P|%t) no exception, %s\n"), ACE_TEXT_CHAR_TO_TCHAR (info)));
+ ACE_TEXT ("TAO: (%P|%t) no exception, %s\n"), ACE_TEXT_TO_TCHAR_IN (info)));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Environment.h b/TAO/tao/Environment.h
index cfcde246122..5446f342097 100644
--- a/TAO/tao/Environment.h
+++ b/TAO/tao/Environment.h
@@ -32,8 +32,6 @@
#include "tao/Pseudo_VarOut_T.h"
#include "tao/default_environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
namespace CORBA
@@ -150,8 +148,6 @@ namespace CORBA
};
} // End CORBA namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Environment.i"
diff --git a/TAO/tao/Environment.i b/TAO/tao/Environment.i
index 9a710cebffd..3875aa4ac65 100644
--- a/TAO/tao/Environment.i
+++ b/TAO/tao/Environment.i
@@ -2,9 +2,6 @@
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::Boolean
CORBA::is_nil (CORBA::Environment_ptr env)
@@ -45,4 +42,3 @@ CORBA::Environment::_nil (void)
return static_cast <CORBA::Environment_ptr> (0);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Exception.cpp b/TAO/tao/Exception.cpp
index 16f65716ead..7e96e205456 100644
--- a/TAO/tao/Exception.cpp
+++ b/TAO/tao/Exception.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/Exception.h"
-#include "tao/SystemException.h"
-#include "tao/Environment.h"
-#include "tao/ORB_Constants.h"
-#include "tao/CORBA_String.h"
-#include "tao/CDR.h"
-#include "tao/debug.h"
+#include "Exception.h"
+#include "SystemException.h"
+#include "Environment.h"
+#include "ORB_Constants.h"
+#include "CORBA_String.h"
+#include "CDR.h"
+#include "debug.h"
#include "ace/Malloc.h"
#include "ace/SString.h"
@@ -25,6 +25,7 @@
#include "ace/OS_NS_stdio.h"
+
ACE_RCSID (tao,
Exception,
"$Id$")
@@ -32,8 +33,6 @@ ACE_RCSID (tao,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Exception::Exception (const char * repository_id,
const char * local_name)
: id_ (CORBA::string_dup (repository_id)),
@@ -94,21 +93,19 @@ CORBA::Exception::_tao_print_exception (const char *user_provided_info,
ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("(%P|%t) EXCEPTION, %s\n")
ACE_TEXT ("%s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (user_provided_info),
- ACE_TEXT_CHAR_TO_TCHAR (this->_info ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (user_provided_info),
+ ACE_TEXT_TO_TCHAR_IN (this->_info ().c_str ())));
}
-#if defined (ACE_USES_WCHAR)
void
-CORBA::Exception::_tao_print_exception (const ACE_WCHAR_T *info,
+CORBA::Exception::_tao_print_exception (const wchar_t *info,
FILE *f) const
{
// Even though this call causes additional type conversions, this is
// better for the maintenance. Plus, this will occur only on
// exception anyway.
- this->_tao_print_exception (ACE_TEXT_ALWAYS_CHAR (info), f);
+ this->_tao_print_exception (ACE_TEXT_TO_CHAR_IN (info), f);
}
-#endif // ACE_USES_WCHAR
void
CORBA::Exception::_tao_any_destructor (void *x)
@@ -140,4 +137,3 @@ namespace CORBA
#endif /* (ACE_LACKS_IOSTREAM_TOTALLY) */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Exception.h b/TAO/tao/Exception.h
index fbf2a092fd8..a33da901c7b 100644
--- a/TAO/tao/Exception.h
+++ b/TAO/tao/Exception.h
@@ -39,18 +39,14 @@
#include "ace/iosfwd.h"
#include "ace/CORBA_macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_OutputCDR;
class TAO_InputCDR;
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// This is already done in orbconf.h. But this file is totally
// decoupled from its contents that we have to do this here. Including
@@ -146,15 +142,11 @@ namespace CORBA
*/
void _tao_print_exception (const char *info,
FILE *f = stdout) const;
-
-#if defined (ACE_USES_WCHAR)
- /// ACE_WCHAR_T version of _tao_print_exception.
/**
* @note This method is TAO-specific.
*/
- void _tao_print_exception (const ACE_WCHAR_T *info,
+ void _tao_print_exception (const wchar_t *info,
FILE *f = stdout) const;
-#endif // ACE_USES_WCHAR
/// Returns a string containing information about the exception. This
/// function is not CORBA compliant.
@@ -235,8 +227,6 @@ public:
static CORBA::SystemException *create_system_exception (const char *id);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Exception.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Exception.i b/TAO/tao/Exception.i
index 2a77bfab959..4eadae1c5a2 100644
--- a/TAO/tao/Exception.i
+++ b/TAO/tao/Exception.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Exception *
CORBA::Exception::_downcast (CORBA::Exception * x)
{
@@ -15,5 +13,3 @@ CORBA::Exception::_downcast (CORBA::Exception const * x)
{
return x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Exception_Data.h b/TAO/tao/Exception_Data.h
index ff1794b49db..49887b973ce 100644
--- a/TAO/tao/Exception_Data.h
+++ b/TAO/tao/Exception_Data.h
@@ -22,8 +22,6 @@
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class TypeCode;
@@ -62,7 +60,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_EXCEPTION_DATA_H*/
diff --git a/TAO/tao/Exclusive_TMS.cpp b/TAO/tao/Exclusive_TMS.cpp
index 47145cfff9b..46453d885d4 100644
--- a/TAO/tao/Exclusive_TMS.cpp
+++ b/TAO/tao/Exclusive_TMS.cpp
@@ -3,14 +3,12 @@
#include "tao/Exclusive_TMS.h"
#include "tao/Reply_Dispatcher.h"
#include "tao/debug.h"
-#include "tao/Transport.h"
+#include "Transport.h"
ACE_RCSID (tao,
Exclusive_TMS,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Exclusive_TMS::TAO_Exclusive_TMS (TAO_Transport *transport)
: TAO_Transport_Mux_Strategy (transport),
request_id_generator_ (0),
@@ -30,7 +28,7 @@ TAO_Exclusive_TMS::~TAO_Exclusive_TMS (void)
CORBA::ULong
TAO_Exclusive_TMS::request_id (void)
{
- ++this->request_id_generator_;
+ this->request_id_generator_++;
// if TAO_Transport::bidirectional_flag_
// == 1 --> originating side
@@ -47,7 +45,7 @@ TAO_Exclusive_TMS::request_id (void)
if (TAO_debug_level > 4)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Exclusive_TMS::request_id - <%d>\n"),
+ ACE_TEXT ("(%P|%t) TAO_Exclusive_TMS::request_id - <%d>\n"),
this->request_id_generator_));
return this->request_id_generator_;
@@ -128,4 +126,3 @@ TAO_Exclusive_TMS::connection_closed (void)
this->rd_->connection_closed ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Exclusive_TMS.h b/TAO/tao/Exclusive_TMS.h
index 84f659bcc68..6937340cb4c 100644
--- a/TAO/tao/Exclusive_TMS.h
+++ b/TAO/tao/Exclusive_TMS.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,7 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Pluggable_Reply_Params;
@@ -91,7 +90,5 @@ protected:
// able to iterate on a use case - Bala.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* EXCLUSIVE_TMS_H */
diff --git a/TAO/tao/FILE_Parser.cpp b/TAO/tao/FILE_Parser.cpp
index b092eea96be..8640cd7c09c 100644
--- a/TAO/tao/FILE_Parser.cpp
+++ b/TAO/tao/FILE_Parser.cpp
@@ -1,12 +1,16 @@
// $Id$
-#include "tao/FILE_Parser.h"
+#include "FILE_Parser.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Object.h"
#include "ace/Read_Buffer.h"
+#if !defined(__ACE_INLINE__)
+#include "FILE_Parser.i"
+#endif /* __ACE_INLINE__ */
+
#include "ace/Malloc_Base.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_stdio.h"
@@ -18,14 +22,11 @@ ACE_RCSID (tao,
"$Id$")
-static const char file_prefix[] = "file:";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FILE_Parser::~TAO_FILE_Parser (void)
{
}
+static const char file_prefix[] = "file:";
int
TAO_FILE_Parser::match_prefix (const char *ior_string) const
@@ -46,7 +47,7 @@ TAO_FILE_Parser::parse_string (const char *ior,
const char *filename =
ior + sizeof (::file_prefix)+1;
- FILE* file = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR (filename),
+ FILE* file = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN (filename),
ACE_TEXT("r"));
if (file == 0)
@@ -78,8 +79,6 @@ TAO_FILE_Parser::parse_string (const char *ior,
return object;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_FILE_Parser,
ACE_TEXT ("FILE_Parser"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/FILE_Parser.h b/TAO/tao/FILE_Parser.h
index 70ef8805d96..480fb653d18 100644
--- a/TAO/tao/FILE_Parser.h
+++ b/TAO/tao/FILE_Parser.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +22,6 @@
#include "tao/IOR_Parser.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_FILE_Parser
*
@@ -35,9 +32,11 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* read its contents and then interepret the file as an IOR (that
* can be in any valid format).
*/
-class TAO_FILE_Parser : public TAO_IOR_Parser
+class TAO_Export TAO_FILE_Parser : public TAO_IOR_Parser
{
public:
+ /// Constructor
+ TAO_FILE_Parser (void);
/// The destructor
virtual ~TAO_FILE_Parser (void);
@@ -51,7 +50,9 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+# include "FILE_Parser.i"
+#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_FILE_Parser)
ACE_FACTORY_DECLARE (TAO, TAO_FILE_Parser)
diff --git a/TAO/tao/FILE_Parser.i b/TAO/tao/FILE_Parser.i
new file mode 100644
index 00000000000..c3ca97a6149
--- /dev/null
+++ b/TAO/tao/FILE_Parser.i
@@ -0,0 +1,6 @@
+// $Id$
+
+ACE_INLINE
+TAO_FILE_Parser::TAO_FILE_Parser (void)
+{
+}
diff --git a/TAO/tao/Fault_Tolerance_Service.cpp b/TAO/tao/Fault_Tolerance_Service.cpp
index fedcae19465..847d5f00469 100644
--- a/TAO/tao/Fault_Tolerance_Service.cpp
+++ b/TAO/tao/Fault_Tolerance_Service.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
Fault_Tolerance_Service,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Fault_Tolerance_Service::~TAO_Fault_Tolerance_Service (void)
{
delete this->ft_service_callback_;
@@ -62,5 +60,3 @@ TAO_Fault_Tolerance_Service::retention_id (void)
return ++this->ft_object_retention_id_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Fault_Tolerance_Service.h b/TAO/tao/Fault_Tolerance_Service.h
index 39e2799754f..ff8fd90b6a1 100644
--- a/TAO/tao/Fault_Tolerance_Service.h
+++ b/TAO/tao/Fault_Tolerance_Service.h
@@ -1,5 +1,4 @@
//-*- C++ -*-
-
//=============================================================================
/**
* @file Fault_Tolerance_Service.h
@@ -18,24 +17,19 @@
#define TAO_FAULT_TOLERANCE_SERVICE_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/SString.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/TAO_Export.h"
#include "tao/Basic_Types.h"
-#include "ace/SString.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Service_Callbacks;
class TAO_ORB_Core;
+class ACE_Lock;
/**
* @class TAO_Fault_Tolerance_Service
@@ -99,7 +93,6 @@ private:
// this.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/Fault_Tolerance_Service.i"
diff --git a/TAO/tao/Fault_Tolerance_Service.i b/TAO/tao/Fault_Tolerance_Service.i
index 6fb2c4ca1a1..f7f4fefd7d3 100644
--- a/TAO/tao/Fault_Tolerance_Service.i
+++ b/TAO/tao/Fault_Tolerance_Service.i
@@ -1,9 +1,4 @@
-// -*- C++ -*-
-//
//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Fault_Tolerance_Service::TAO_Fault_Tolerance_Service (void)
: ft_service_callback_ (0),
@@ -13,6 +8,8 @@ TAO_Fault_Tolerance_Service::TAO_Fault_Tolerance_Service (void)
{
}
+
+
ACE_INLINE TAO_Service_Callbacks *
TAO_Fault_Tolerance_Service::service_callback (void)
{
@@ -31,4 +28,3 @@ TAO_Fault_Tolerance_Service::client_id (const char *id)
this->ft_object_id_ = id;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Fixed_Array_Argument_T.cpp b/TAO/tao/Fixed_Array_Argument_T.cpp
index 762219e3b6f..386cd9da395 100644
--- a/TAO/tao/Fixed_Array_Argument_T.cpp
+++ b/TAO/tao/Fixed_Array_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_FIXED_ARRAY_ARGUMENT_T_CPP
-#define TAO_FIXED_ARRAY_ARGUMENT_T_CPP
+#ifndef TAO_FIXED_ARRAY_ARGUMENT_T_C
+#define TAO_FIXED_ARRAY_ARGUMENT_T_C
#include "tao/Fixed_Array_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/Fixed_Array_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Fixed_Array_Argument_T,
+ "$Id$")
template<typename S,
typename S_slice,
@@ -146,6 +148,4 @@ interceptor_value (CORBA::Any *any) const
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_FIXED_ARRAY_ARGUMENT_T_CPP */
+#endif /* TAO_FIXED_ARRAY_ARGUMENT_T_C */
diff --git a/TAO/tao/Fixed_Array_Argument_T.h b/TAO/tao/Fixed_Array_Argument_T.h
index 81c351a3db1..2ff2f43976b 100644
--- a/TAO/tao/Fixed_Array_Argument_T.h
+++ b/TAO/tao/Fixed_Array_Argument_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -181,8 +179,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Fixed_Array_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Fixed_Array_Argument_T.inl b/TAO/tao/Fixed_Array_Argument_T.inl
index 7465933cca4..de891a44bcd 100644
--- a/TAO/tao/Fixed_Array_Argument_T.inl
+++ b/TAO/tao/Fixed_Array_Argument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename S_slice,
typename S_forany,
@@ -134,5 +132,3 @@ TAO::Ret_Fixed_Array_Argument_T<S,S_slice,S_var,S_forany,S_tag,Insert_Policy>::r
{
return this->x_._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Fixed_Size_Argument_T.cpp b/TAO/tao/Fixed_Size_Argument_T.cpp
index 871c13f7341..60a2fe74a63 100644
--- a/TAO/tao/Fixed_Size_Argument_T.cpp
+++ b/TAO/tao/Fixed_Size_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_FIXED_SIZE_ARGUMENT_T_CPP
-#define TAO_FIXED_SIZE_ARGUMENT_T_CPP
+#ifndef TAO_FIXED_SIZE_ARGUMENT_T_C
+#define TAO_FIXED_SIZE_ARGUMENT_T_C
#include "tao/Fixed_Size_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/Fixed_Size_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Fixed_Size_Argument_T,
+ "$Id$")
template<typename S,
typename Insert_Policy>
@@ -106,6 +108,4 @@ interceptor_value (CORBA::Any *any) const
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_FIXED_SIZE_ARGUMENT_T_CPP */
+#endif /* TAO_FIXED_SIZE_ARGUMENT_T_C */
diff --git a/TAO/tao/Fixed_Size_Argument_T.h b/TAO/tao/Fixed_Size_Argument_T.h
index 88bf0938df7..e4bc7c3aa3b 100644
--- a/TAO/tao/Fixed_Size_Argument_T.h
+++ b/TAO/tao/Fixed_Size_Argument_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -154,8 +152,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Fixed_Size_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Fixed_Size_Argument_T.inl b/TAO/tao/Fixed_Size_Argument_T.inl
index bc747f119dc..bce99464476 100644
--- a/TAO/tao/Fixed_Size_Argument_T.inl
+++ b/TAO/tao/Fixed_Size_Argument_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename Insert_Policy>
ACE_INLINE
@@ -97,4 +93,3 @@ TAO::Ret_Fixed_Size_Argument_T<S,Insert_Policy>::retn (void)
return this->x_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/FlResource_Factory.cpp b/TAO/tao/FlResource_Factory.cpp
index ebdd37f545e..b0529d29a0e 100644
--- a/TAO/tao/FlResource_Factory.cpp
+++ b/TAO/tao/FlResource_Factory.cpp
@@ -1,19 +1,18 @@
//$Id$
-#include "tao/FlResource_Factory.h"
-#include "tao/debug.h"
+#include "FlResource_Factory.h"
+#include "debug.h"
#include "ace/FlReactor.h"
ACE_RCSID( TAO_FlResource,
FlResource_Factory,
"$Id$");
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
- FlResource_Factory::FlResource_Factory (void)
- : reactor_impl_( 0 )
+
+ FlResource_Factory::FlResource_Factory ():
+ reactor_impl_( 0 )
{
}
@@ -35,5 +34,3 @@ namespace TAO
return this->reactor_impl_;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/FlResource_Factory.h b/TAO/tao/FlResource_Factory.h
index c56d652005a..ab34c6ef503 100644
--- a/TAO/tao/FlResource_Factory.h
+++ b/TAO/tao/FlResource_Factory.h
@@ -13,18 +13,14 @@
#ifndef TAO_FLRESOURCE_FACTORY_H
#define TAO_FLRESOURCE_FACTORY_H
#include /**/ "ace/pre.h"
-
+#include "ace/FlReactor.h"
#include "tao/TAO_FlResource_Export.h"
+#include "tao/GUIResource_Factory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/FlReactor.h"
-#include "tao/GUIResource_Factory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -55,8 +51,5 @@ namespace TAO
ACE_FlReactor *reactor_impl_;
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_FLRESOURCE_FACTORY_H */
diff --git a/TAO/tao/FlResource_Loader.cpp b/TAO/tao/FlResource_Loader.cpp
index c5dbe7131eb..13f01c7bef4 100644
--- a/TAO/tao/FlResource_Loader.cpp
+++ b/TAO/tao/FlResource_Loader.cpp
@@ -1,29 +1,26 @@
//$Id$
-#include "tao/FlResource_Loader.h"
-#include "tao/ORB_Core.h"
-#include "tao/FlResource_Factory.h"
+#include "FlResource_Loader.h"
+#include "ORB_Core.h"
+#include "FlResource_Factory.h"
ACE_RCSID( TAO_FlResource,
FlResource_Loader,
"$Id$");
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
- FlResource_Loader::FlResource_Loader (void)
+
+ FlResource_Loader::FlResource_Loader ()
{
FlResource_Factory *tmp = 0;
ACE_NEW (tmp,
FlResource_Factory ());
- TAO_ORB_Core::set_gui_resource_factory (tmp);
+ TAO_ORB_Core::set_gui_resource_factory( tmp );
}
- FlResource_Loader::~FlResource_Loader (void)
+ FlResource_Loader::~FlResource_Loader ()
{
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/FlResource_Loader.h b/TAO/tao/FlResource_Loader.h
index feec4495f68..c56c2c5a39f 100644
--- a/TAO/tao/FlResource_Loader.h
+++ b/TAO/tao/FlResource_Loader.h
@@ -14,17 +14,12 @@
#ifndef TAO_FLRESOURCE_LOADER_H
#define TAO_FLRESOURCE_LOADER_H
#include /**/ "ace/pre.h"
-
#include "tao/TAO_FlResource_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -46,14 +41,10 @@ namespace TAO
{
public:
- FlResource_Loader (void);
+ FlResource_Loader ( );
- virtual ~FlResource_Loader (void);
+ virtual ~FlResource_Loader ();
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_FLRESOURCE_LOADER_H */
diff --git a/TAO/tao/FloatSeq.pidl b/TAO/tao/FloatSeq.pidl
index 07ef18b5e7f..1a0ee031940 100644
--- a/TAO/tao/FloatSeq.pidl
+++ b/TAO/tao/FloatSeq.pidl
@@ -15,8 +15,6 @@
* -Wb,export_include=tao/TAO_Export.h
* -Wb,anyop_export_macro=TAO_AnyTypeCode_Export
* -Wb,anyop_export_include=tao/AnyTypeCode/TAO_AnyTypeCode_Export.h
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* FloatSeq.pidl
*/
diff --git a/TAO/tao/FloatSeqC.cpp b/TAO/tao/FloatSeqC.cpp
index d5c32aa2f78..311d83e4867 100644
--- a/TAO/tao/FloatSeqC.cpp
+++ b/TAO/tao/FloatSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/FloatSeqC.h"
+#include "FloatSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ void CORBA::FloatSeq::_tao_any_destructor (
}
#endif /* _TAO_CDR_OP_CORBA_FloatSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/FloatSeqC.h b/TAO/tao/FloatSeqC.h
index dbab855a3b4..09fa2f459a7 100644
--- a/TAO/tao/FloatSeqC.h
+++ b/TAO/tao/FloatSeqC.h
@@ -52,8 +52,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -141,8 +139,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Flushing_Strategy.cpp b/TAO/tao/Flushing_Strategy.cpp
index 6d66ee99975..5d3e59a7e66 100644
--- a/TAO/tao/Flushing_Strategy.cpp
+++ b/TAO/tao/Flushing_Strategy.cpp
@@ -1,16 +1,12 @@
+// -*- C++ -*-
// $Id$
-#include "tao/Flushing_Strategy.h"
+#include "Flushing_Strategy.h"
ACE_RCSID (tao,
Flushing_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Flushing_Strategy::~TAO_Flushing_Strategy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Flushing_Strategy.h b/TAO/tao/Flushing_Strategy.h
index ead55aec8f2..4c2cf07d43f 100644
--- a/TAO/tao/Flushing_Strategy.h
+++ b/TAO/tao/Flushing_Strategy.h
@@ -21,12 +21,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport;
class TAO_Queued_Message;
@@ -72,8 +67,6 @@ public:
virtual int flush_transport (TAO_Transport *transport) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_FLUSHING_STRATEGY_H */
diff --git a/TAO/tao/GIOP.pidl b/TAO/tao/GIOP.pidl
index eb6e86ca8c4..6dc8616bdb6 100644
--- a/TAO/tao/GIOP.pidl
+++ b/TAO/tao/GIOP.pidl
@@ -19,8 +19,6 @@
// -Wb,export_include="tao/TAO_Export.h"
// -Wb,pre_include="ace/pre.h"
// -Wb,post_include="ace/post.h"
-// -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-// -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
// GIOP.pidl
//
// ================================================================
@@ -28,7 +26,7 @@
#ifndef TAO_GIOP_PIDL
#define TAO_GIOP_PIDL
-#include "tao/IOP_IOR.pidl"
+#include "IOP_IOR.pidl"
#pragma prefix "omg.org"
diff --git a/TAO/tao/GIOPC.cpp b/TAO/tao/GIOPC.cpp
index 505bb143157..c969f09d9c0 100644
--- a/TAO/tao/GIOPC.cpp
+++ b/TAO/tao/GIOPC.cpp
@@ -29,20 +29,18 @@
// be\be_codegen.cpp:288
-#include "tao/GIOPC.h"
+#include "GIOPC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
#if !defined (__ACE_INLINE__)
-#include "tao/GIOPC.inl"
+#include "GIOPC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -387,5 +385,3 @@ CORBA::Boolean operator>> (
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOPC.h b/TAO/tao/GIOPC.h
index cdc438390d5..e85e137e6c0 100644
--- a/TAO/tao/GIOPC.h
+++ b/TAO/tao/GIOPC.h
@@ -57,8 +57,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -267,10 +265,8 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, GIOP::TargetAddress &);
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/GIOPC.inl"
+#include "GIOPC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/GIOPC.inl b/TAO/tao/GIOPC.inl
index d83b70b3c5b..a4780ad16c0 100644
--- a/TAO/tao/GIOPC.inl
+++ b/TAO/tao/GIOPC.inl
@@ -36,8 +36,6 @@
// TAO_IDL - Generated from
// be\be_visitor_union/discriminant_ci.cpp:164
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
GIOP::TargetAddress::_default ()
@@ -159,5 +157,3 @@ GIOP::TargetAddress::ior (void)
{
return *this->u_.ior_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Base.cpp b/TAO/tao/GIOP_Message_Base.cpp
index 77a379e1a10..aa0efbb8b97 100644
--- a/TAO/tao/GIOP_Message_Base.cpp
+++ b/TAO/tao/GIOP_Message_Base.cpp
@@ -1,17 +1,17 @@
// $Id$
-#include "tao/GIOP_Message_Base.h"
-#include "tao/operation_details.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
-#include "tao/TAO_Server_Request.h"
-#include "tao/GIOP_Message_Locate_Header.h"
-#include "tao/Transport.h"
-#include "tao/Transport_Mux_Strategy.h"
-#include "tao/LF_Strategy.h"
-#include "tao/Request_Dispatcher.h"
-#include "tao/Codeset_Manager.h"
-#include "tao/SystemException.h"
+#include "GIOP_Message_Base.h"
+#include "operation_details.h"
+#include "debug.h"
+#include "ORB_Core.h"
+#include "TAO_Server_Request.h"
+#include "GIOP_Message_Locate_Header.h"
+#include "Transport.h"
+#include "Transport_Mux_Strategy.h"
+#include "LF_Strategy.h"
+#include "Request_Dispatcher.h"
+#include "Codeset_Manager.h"
+#include "SystemException.h"
/*
* Hook to add additional include files during specializations.
@@ -22,24 +22,22 @@ ACE_RCSID (tao,
GIOP_Message_Base,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_GIOP_Message_Base::TAO_GIOP_Message_Base (TAO_ORB_Core * orb_core,
- size_t /* input_cdr_size */)
+TAO_GIOP_Message_Base::TAO_GIOP_Message_Base (TAO_ORB_Core *orb_core,
+ size_t /*input_cdr_size*/)
: orb_core_ (orb_core)
- , message_state_ ()
- , out_stream_ (this->buffer_,
- sizeof this->buffer_, /* ACE_CDR::DEFAULT_BUFSIZE */
- TAO_ENCAP_BYTE_ORDER,
- orb_core->output_cdr_buffer_allocator (),
- orb_core->output_cdr_dblock_allocator (),
- orb_core->output_cdr_msgblock_allocator (),
- orb_core->orb_params ()->cdr_memcpy_tradeoff (),
- TAO_DEF_GIOP_MAJOR,
- TAO_DEF_GIOP_MINOR)
+ , message_state_ ()
+ , out_stream_ (this->buffer_,
+ sizeof this->buffer_, /* ACE_CDR::DEFAULT_BUFSIZE */
+ TAO_ENCAP_BYTE_ORDER,
+ orb_core->output_cdr_buffer_allocator (),
+ orb_core->output_cdr_dblock_allocator (),
+ orb_core->output_cdr_msgblock_allocator (),
+ orb_core->orb_params ()->cdr_memcpy_tradeoff (),
+ TAO_DEF_GIOP_MAJOR,
+ TAO_DEF_GIOP_MINOR)
{
#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
- ACE_OS::memset (this->buffer_, 0, sizeof (buffer_));
+ ACE_OS::memset(buffer_, 0, sizeof (buffer_));
#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */
}
@@ -198,7 +196,7 @@ TAO_GIOP_Message_Base::generate_reply_header (
ACE_TRY
{
// Now call the implementation for the rest of the header
- int const result =
+ int result =
generator_parser->write_reply_header (cdr,
params
ACE_ENV_ARG_PARAMETER);
@@ -218,7 +216,7 @@ TAO_GIOP_Message_Base::generate_reply_header (
{
if (TAO_debug_level > 4)
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("TAO_GIOP_Message_Base::generate_reply_header"));
+ "TAO_GIOP_Message_Base::generate_reply_header");
return -1;
}
@@ -227,6 +225,15 @@ TAO_GIOP_Message_Base::generate_reply_header (
return 0;
}
+
+int
+TAO_GIOP_Message_Base::read_message (TAO_Transport * /*transport*/,
+ int /*block */,
+ ACE_Time_Value * /*max_wait_time*/)
+{
+ return 0;
+}
+
int
TAO_GIOP_Message_Base::format_message (TAO_OutputCDR &stream)
{
@@ -234,7 +241,7 @@ TAO_GIOP_Message_Base::format_message (TAO_OutputCDR &stream)
char *buf = (char *) stream.buffer ();
// Length of all buffers.
- size_t const total_len =
+ size_t total_len =
stream.total_length ();
// NOTE: Here would also be a fine place to calculate a digital
@@ -244,7 +251,7 @@ TAO_GIOP_Message_Base::format_message (TAO_OutputCDR &stream)
// this particular environment and that isn't handled by the
// networking infrastructure (e.g., IPSEC).
- CORBA::ULong const bodylen = static_cast <CORBA::ULong>
+ CORBA::ULong bodylen = static_cast <CORBA::ULong>
(total_len - TAO_GIOP_MESSAGE_HEADER_LEN);
#if !defined (ACE_ENABLE_SWAP_ON_WRITE)
@@ -300,7 +307,6 @@ TAO_GIOP_Message_Base::message_type (
case TAO_GIOP_LOCATEREPLY:
return TAO_PLUGGABLE_MESSAGE_LOCATEREPLY;
-
case TAO_GIOP_REPLY:
return TAO_PLUGGABLE_MESSAGE_REPLY;
@@ -311,19 +317,13 @@ TAO_GIOP_Message_Base::message_type (
return TAO_PLUGGABLE_MESSAGE_FRAGMENT;
case TAO_GIOP_MESSAGERROR:
- return TAO_PLUGGABLE_MESSAGE_MESSAGERROR;
-
case TAO_GIOP_CANCELREQUEST:
- return TAO_PLUGGABLE_MESSAGE_CANCELREQUEST;
-
+ // Does it happen? why??
default:
- if (TAO_debug_level > 0)
- {
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) %N:%l message_type : ")
ACE_TEXT ("wrong message.\n")));
}
- }
return TAO_PLUGGABLE_MESSAGE_MESSAGERROR;
}
@@ -331,51 +331,32 @@ TAO_GIOP_Message_Base::message_type (
int
TAO_GIOP_Message_Base::parse_incoming_messages (ACE_Message_Block &incoming)
{
- this->message_state_.reset ();
-
return this->message_state_.parse_message_header (incoming);
}
-int
-TAO_GIOP_Message_Base::parse_next_message (ACE_Message_Block &incoming,
- TAO_Queued_Data &qd,
- size_t &mesg_length)
+ssize_t
+TAO_GIOP_Message_Base::missing_data (ACE_Message_Block &incoming)
{
- if (incoming.length () < TAO_GIOP_MESSAGE_HEADER_LEN)
- {
- qd.missing_data_ = TAO_MISSING_DATA_UNDEFINED;
-
- return 0; /* incomplete header */
- }
- else
- {
- TAO_GIOP_Message_State state;
+ // Actual message size including the header..
+ CORBA::ULong msg_size =
+ this->message_state_.message_size ();
- if (state.parse_message_header (incoming) == -1)
- {
- return -1;
- }
-
- const size_t message_size = state.message_size (); /* Header + Payload */
-
- if (message_size > incoming.length ())
- {
- qd.missing_data_ = message_size - incoming.length ();
- }
- else
- {
- qd.missing_data_ = 0;
- }
-
- /* init out-parameters */
- this->init_queued_data (&qd, state);
- mesg_length = TAO_GIOP_MESSAGE_HEADER_LEN
- + state.payload_size ();
+ size_t len = incoming.length ();
- return 1; /* complete header */
+ // If we have too many messages or if we have less than even a size
+ // of the GIOP header then ..
+ if (len > msg_size ||
+ len < TAO_GIOP_MESSAGE_HEADER_LEN)
+ {
+ return -1;
}
+ else if (len == msg_size)
+ return 0;
+
+ return msg_size - len;
}
+
int
TAO_GIOP_Message_Base::extract_next_message (ACE_Message_Block &incoming,
TAO_Queued_Data *&qd)
@@ -384,45 +365,15 @@ TAO_GIOP_Message_Base::extract_next_message (ACE_Message_Block &incoming,
{
if (incoming.length () > 0)
{
- // Optimize memory usage, we dont know actual message size
- // so far, but allocate enough space to hold small GIOP
- // messages. This way we avoid expensive "grow" operation
- // for small messages.
- const size_t default_buf_size = ACE_CDR::DEFAULT_BUFSIZE;
-
- // Make a node which has at least message block of the size
- // of MESSAGE_HEADER_LEN.
- const size_t buf_size = ace_max (TAO_GIOP_MESSAGE_HEADER_LEN,
- default_buf_size);
-
- // POST: buf_size >= TAO_GIOP_MESSAGE_HEADER_LEN
-
- qd = this->make_queued_data (buf_size);
-
- if (qd == 0)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - TAO_GIOP_Message_Base::extract_next_message, ")
- ACE_TEXT ("out of memory\n")));
- }
- return -1;
- }
+ // Make a node which has a message block of the size of
+ // MESSAGE_HEADER_LEN.
+ qd =
+ this->make_queued_data (TAO_GIOP_MESSAGE_HEADER_LEN);
qd->msg_block_->copy (incoming.rd_ptr (),
incoming.length ());
-
- incoming.rd_ptr (incoming.length ()); // consume all available data
-
- qd->missing_data_ = TAO_MISSING_DATA_UNDEFINED;
+ qd->missing_data_ = -1;
}
- else
- {
- // handle not initialized variables
- qd = 0; // reset
- }
-
return 0;
}
@@ -436,26 +387,12 @@ TAO_GIOP_Message_Base::extract_next_message (ACE_Message_Block &incoming,
qd = this->make_queued_data (copying_len);
- if (qd == 0)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - TAO_GIOP_Message_Base::extract_next_message, ")
- ACE_TEXT ("out of memory\n")));
- }
- return -1;
- }
-
if (copying_len > incoming.length ())
{
qd->missing_data_ = copying_len - incoming.length ();
+
copying_len = incoming.length ();
}
- else
- {
- qd->missing_data_ = 0;
- }
qd->msg_block_->copy (incoming.rd_ptr (),
copying_len);
@@ -471,71 +408,35 @@ TAO_GIOP_Message_Base::consolidate_node (TAO_Queued_Data *qd,
ACE_Message_Block &incoming)
{
// Look to see whether we had atleast parsed the GIOP header ...
- if (qd->missing_data_ == TAO_MISSING_DATA_UNDEFINED)
+ if (qd->missing_data_ == -1)
{
// The data length that has been stuck in there during the last
// read ....
- size_t const len =
+ size_t len =
qd->msg_block_->length ();
- // paranoid check
- if (len >= TAO_GIOP_MESSAGE_HEADER_LEN)
- {
- // inconsistency - this code should have parsed the header
- // so far
- return -1;
- }
-
// We know that we would have space for
// TAO_GIOP_MESSAGE_HEADER_LEN here. So copy that much of data
// from the <incoming> into the message block in <qd>
- const size_t available = incoming.length ();
- const size_t desired = TAO_GIOP_MESSAGE_HEADER_LEN - len;
- const size_t n_copy = ace_min (available, desired);
-
- // paranoid check, but would cause endless looping
- if (n_copy == 0)
- {
- return -1;
- }
-
- if (qd->msg_block_->copy (incoming.rd_ptr (),
- n_copy) == -1)
- {
- return -1;
- }
+ qd->msg_block_->copy (incoming.rd_ptr (),
+ TAO_GIOP_MESSAGE_HEADER_LEN - len);
// Move the rd_ptr () in the incoming message block..
- incoming.rd_ptr (n_copy);
-
- // verify sufficient data to parse GIOP header
- if (qd->msg_block_->length () < TAO_GIOP_MESSAGE_HEADER_LEN)
- {
- return 0; /* continue */
- }
+ incoming.rd_ptr (TAO_GIOP_MESSAGE_HEADER_LEN - len);
TAO_GIOP_Message_State state;
// Parse the message header now...
if (state.parse_message_header (*qd->msg_block_) == -1)
+ return -1;
+
+ // Now grow the message block so that we can copy the rest of
+ // the data...
+ if (qd->msg_block_->space () < state.message_size ())
{
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - TAO_GIOP_Message_Base::consolidate_node, ")
- ACE_TEXT ("error parsing header\n") ));
- }
- return -1;
+ ACE_CDR::grow (qd->msg_block_,
+ state.message_size ());
}
- // Now grow the message block so that we can copy the rest of
- // the data, the message_block must be able to hold complete message
- if (ACE_CDR::grow (qd->msg_block_,
- state.message_size ()) == -1) /* GIOP_Header + Payload */
- {
- // on mem-error get rid of context silently, try to avoid
- // system calls that might allocate additional memory
- return -1;
- }
// Copy the pay load..
// Calculate the bytes that needs to be copied in the queue...
@@ -558,11 +459,8 @@ TAO_GIOP_Message_Base::consolidate_node (TAO_Queued_Data *qd,
// ..now we are set to copy the right amount of data to the
// node..
- if (qd->msg_block_->copy (incoming.rd_ptr (),
- copy_len) == -1)
- {
- return -1;
- }
+ qd->msg_block_->copy (incoming.rd_ptr (),
+ copy_len);
// Set the <rd_ptr> of the <incoming>..
incoming.rd_ptr (copy_len);
@@ -584,19 +482,10 @@ TAO_GIOP_Message_Base::consolidate_node (TAO_Queued_Data *qd,
copy_len = incoming.length ();
}
- // paranoid check for endless-event-looping
- if (copy_len == 0)
- {
- return -1;
- }
-
// Copy the right amount of data in to the node...
// node..
- if (qd->msg_block_->copy (incoming.rd_ptr (),
- copy_len) == -1)
- {
- return -1;
- }
+ qd->msg_block_->copy (incoming.rd_ptr (),
+ copy_len);
// Set the <rd_ptr> of the <incoming>..
qd->msg_block_->rd_ptr (copy_len);
@@ -606,6 +495,16 @@ TAO_GIOP_Message_Base::consolidate_node (TAO_Queued_Data *qd,
return 0;
}
+void
+TAO_GIOP_Message_Base::get_message_data (TAO_Queued_Data *qd)
+{
+ // Get the message information
+ this->init_queued_data (qd, this->message_state_);
+
+ // Reset the message_state
+ this->message_state_.reset ();
+}
+
int
TAO_GIOP_Message_Base::process_request_message (TAO_Transport *transport,
TAO_Queued_Data *qd)
@@ -650,7 +549,7 @@ TAO_GIOP_Message_Base::process_request_message (TAO_Transport *transport,
// Get the read and write positions before we steal data.
size_t rd_pos = qd->msg_block_->rd_ptr () - qd->msg_block_->base ();
- size_t const wr_pos = qd->msg_block_->wr_ptr () - qd->msg_block_->base ();
+ size_t wr_pos = qd->msg_block_->wr_ptr () - qd->msg_block_->base ();
rd_pos += TAO_GIOP_MESSAGE_HEADER_LEN;
if (TAO_debug_level > 0)
@@ -743,7 +642,7 @@ TAO_GIOP_Message_Base::process_reply_message (
// Get the read and write positions before we steal data.
size_t rd_pos = qd->msg_block_->rd_ptr () - qd->msg_block_->base ();
- size_t const wr_pos = qd->msg_block_->wr_ptr () - qd->msg_block_->base ();
+ size_t wr_pos = qd->msg_block_->wr_ptr () - qd->msg_block_->base ();
rd_pos += TAO_GIOP_MESSAGE_HEADER_LEN;
if (TAO_debug_level > 0)
@@ -805,8 +704,8 @@ TAO_GIOP_Message_Base::process_reply_message (
// every reply on this connection.
if (TAO_debug_level > 0)
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - GIOP_Message_Base[%d]::process_parsed_messages, ")
- ACE_TEXT ("dispatch reply failed\n"),
+ "TAO (%P|%t) - GIOP_Message_Base[%d]::process_parsed_messages, "
+ "dispatch reply failed\n",
params.transport_->id ()));
}
@@ -839,8 +738,7 @@ TAO_GIOP_Message_Base::generate_exception_reply (
// happened -> no hope, close connection.
// Close the handle.
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t|%N|%l) cannot marshal exception, ")
ACE_TEXT ("generate_exception_reply ()\n")));
return -1;
@@ -856,6 +754,7 @@ TAO_GIOP_Message_Base::write_protocol_header (TAO_GIOP_Message_Type type,
TAO_OutputCDR &msg)
{
// Reset the message type
+ // Reset the message type
msg.reset ();
CORBA::Octet header[12] =
@@ -931,11 +830,11 @@ TAO_GIOP_Message_Base::process_request (TAO_Transport *transport,
CORBA::Object_var forward_to;
/*
- * Hook to specialize request processing within TAO
+ * Hook to specialize request processing within TAO
* This hook will be replaced by specialized request
* processing implementation.
*/
-//@@ TAO_DISPATCH_RESOLUTION_OPT_COMMENT_HOOK_START
+//@@ TAO_DISPATCH_RESOLUTION_OPT_COMMENT_HOOK_START
// Do this before the reply is sent.
this->orb_core_->request_dispatcher ()->dispatch (
@@ -949,18 +848,10 @@ TAO_GIOP_Message_Base::process_request (TAO_Transport *transport,
if (!CORBA::is_nil (forward_to.in ()))
{
- const CORBA::Boolean permanent_forward_condition =
- this->orb_core_->is_permanent_forward_condition
- (forward_to.in (),
- request.request_service_context ());
-
// We should forward to another object...
TAO_Pluggable_Reply_Params_Base reply_params;
reply_params.request_id_ = request_id;
- reply_params.reply_status_ =
- permanent_forward_condition
- ? TAO_GIOP_LOCATION_FORWARD_PERM
- : TAO_GIOP_LOCATION_FORWARD;
+ reply_params.reply_status_ = TAO_GIOP_LOCATION_FORWARD;
reply_params.svc_ctx_.length (0);
// Send back the reply service context.
@@ -1432,8 +1323,8 @@ TAO_GIOP_Message_Base::
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) TAO_GIOP_Message_Base::send_close_connection -")
- ACE_TEXT (" connection already closed\n")));
+ "TAO (%P|%t) TAO_GIOP_Message_Base::send_close_connection -"
+ " connection already closed\n"));
return;
}
#endif
@@ -1454,14 +1345,14 @@ TAO_GIOP_Message_Base::
{
if (TAO_debug_level > 0)
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) error closing connection %u, errno = %d\n"),
- transport->id (), errno));
+ "(%P|%t) error closing connection %u, errno = %d\n",
+ transport->id (), errno));
}
transport->close_connection ();
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) shut down transport, handle %d\n"),
- transport-> id ()));
+ "(%P|%t) shut down transport, handle %d\n",
+ transport-> id ()));
}
@@ -1574,12 +1465,12 @@ TAO_GIOP_Message_Base::dump_msg (const char *label,
"TAO (%P|%t) - GIOP_Message_Base::dump_msg, "
"%s GIOP v%c.%c msg, %d data bytes, %s endian, "
"Type %s[%u]\n",
- ACE_TEXT_CHAR_TO_TCHAR (label),
+ ACE_TEXT_TO_TCHAR_IN (label),
digits[ptr[TAO_GIOP_VERSION_MAJOR_OFFSET]],
digits[ptr[TAO_GIOP_VERSION_MINOR_OFFSET]],
len - TAO_GIOP_MESSAGE_HEADER_LEN ,
(byte_order == TAO_ENCAP_BYTE_ORDER) ? ACE_TEXT("my") : ACE_TEXT("other"),
- ACE_TEXT_CHAR_TO_TCHAR(message_name),
+ ACE_TEXT_TO_TCHAR_IN(message_name),
*id));
if (TAO_debug_level >= 10)
@@ -1629,17 +1520,6 @@ TAO_GIOP_Message_Base::make_queued_data (size_t sz)
TAO_Queued_Data::make_queued_data (
this->orb_core_->transport_message_buffer_allocator ());
- if (qd == 0)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - TAO_GIOP_Message_Base::make_queued_data, ")
- ACE_TEXT ("our of memory, failed to allocate queued data object\n")));
- }
- return 0; // NULL pointer
- }
-
// @@todo: We have a similar method in Transport.cpp. Need to see how
// we can factor them out..
// Make a datablock for the size requested + something. The
@@ -1651,58 +1531,20 @@ TAO_GIOP_Message_Base::make_queued_data (size_t sz)
this->orb_core_->create_input_cdr_data_block (sz +
ACE_CDR::MAX_ALIGNMENT);
- if (db == 0)
- {
- TAO_Queued_Data::release (qd);
-
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - TAO_GIOP_Message_Base::make_queued_data, ")
- ACE_TEXT ("out of memory, failed to allocate input data block of size %u\n"),
- sz));
- }
- return 0; // NULL pointer
- }
-
ACE_Allocator *alloc =
this->orb_core_->input_cdr_msgblock_allocator ();
- if (alloc == 0)
- {
- if (TAO_debug_level >= 8)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) - TAO_GIOP_Message_Base::make_queued_data,")
- ACE_TEXT (" no ACE_Allocator defined\n")));
- }
- }
-
-
ACE_Message_Block mb (db,
0,
alloc);
ACE_Message_Block *new_mb = mb.duplicate ();
- if (new_mb == 0)
- {
- TAO_Queued_Data::release (qd);
- db->release();
-
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - TAO_GIOP_Message_Base::make_queued_data, ")
- ACE_TEXT ("out of memory, failed to allocate message block\n")));
- }
- return 0;
- }
-
ACE_CDR::mb_align (new_mb);
qd->msg_block_ = new_mb;
+
return qd;
}
@@ -1728,343 +1570,13 @@ TAO_GIOP_Message_Base::fragment_header_length (CORBA::Octet major,
void
TAO_GIOP_Message_Base::init_queued_data (
- TAO_Queued_Data* qd,
- const TAO_GIOP_Message_State& state) const
+ TAO_Queued_Data* qd,
+ const TAO_GIOP_Message_State& state) const
{
qd->byte_order_ = state.byte_order_;
qd->major_version_ = state.giop_version_.major;
qd->minor_version_ = state.giop_version_.minor;
qd->more_fragments_ = state.more_fragments_;
+ qd->request_id_ = state.request_id_;
qd->msg_type_ = this->message_type (state);
}
-
-int
-TAO_GIOP_Message_Base::parse_request_id (const TAO_Queued_Data *qd, CORBA::ULong &request_id) const
-{
- // Get a parser for us
- TAO_GIOP_Message_Generator_Parser *generator_parser = 0;
-
- // Get the state information that we need to use
- this->set_state (qd->major_version_,
- qd->minor_version_,
- generator_parser);
-
- // Get the read and write positions before we steal data.
- size_t rd_pos = qd->msg_block_->rd_ptr () - qd->msg_block_->base ();
- size_t wr_pos = qd->msg_block_->wr_ptr () - qd->msg_block_->base ();
- rd_pos += TAO_GIOP_MESSAGE_HEADER_LEN;
-
- // Create a input CDR stream. We do the following
- // 1 - If the incoming message block has a data block with a flag
- // DONT_DELETE (for the data block) we create an input CDR
- // stream the same way.
- // 2 - If the incoming message block had a datablock from heap just
- // use it by duplicating it and make the flag 0.
- // NOTE: We use the same data block in which we read the message and
- // we pass it on to the higher layers of the ORB. So we dont to any
- // copies at all here. The same is also done in the higher layers.
-
- ACE_Message_Block::Message_Flags flg = 0;
- ACE_Data_Block *db = 0;
-
- // Get the flag in the message block
- flg = qd->msg_block_->self_flags ();
-
- if (ACE_BIT_ENABLED (flg,
- ACE_Message_Block::DONT_DELETE))
- {
- // Use the same datablock
- db = qd->msg_block_->data_block ();
- }
- else
- {
- // Use a duplicated datablock as the datablock has come off the
- // heap.
- db = qd->msg_block_->data_block ()->duplicate ();
- }
-
-
- TAO_InputCDR input_cdr (db,
- flg,
- rd_pos,
- wr_pos,
- qd->byte_order_,
- qd->major_version_,
- qd->minor_version_,
- this->orb_core_);
-
- if (qd->major_version_ >= 1 &&
- (qd->minor_version_ == 0 || qd->minor_version_ == 1))
- {
- if (qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_REQUEST ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_REPLY)
- {
- IOP::ServiceContextList service_context;
-
- if ( ! (input_cdr >> service_context &&
- input_cdr >> request_id) )
- {
- return -1;
- }
-
- return 0;
- }
- else if (qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_CANCELREQUEST ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_LOCATEREQUEST ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_LOCATEREPLY)
- {
- if ( ! (input_cdr >> request_id) )
- {
- return -1;
- }
-
- return 0;
- }
- else
- {
- return -1;
- }
- }
- else
- {
- if (qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_REQUEST ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_REPLY ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_CANCELREQUEST ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_LOCATEREQUEST ||
- qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_LOCATEREPLY)
- {
- // Dealing with GIOP-1.2, the request-id is located directly behind the GIOP-Header.
- // This is true for all message types that might be sent in form of fragments or cancel-requests.
- if ( ! (input_cdr >> request_id) )
- {
- return -1;
- }
-
- return 0;
- }
- else
- {
- return -1;
- }
- }
-
- return -1;
-}
-
-/* @return -1 error, 0 ok, +1 outstanding fragments */
-int
-TAO_GIOP_Message_Base::consolidate_fragmented_message (TAO_Queued_Data *qd, TAO_Queued_Data *&msg)
-{
- TAO::Incoming_Message_Stack reverse_stack;
-
- TAO_Queued_Data *tail = 0;
- TAO_Queued_Data *head = 0;
-
- //
- // CONSOLIDATE FRAGMENTED MESSAGE
- //
-
- // check for error-condition
- if (qd == 0)
- {
- return -1;
- }
-
- if (qd->major_version_ == 1 && qd->minor_version_ == 0)
- {
- TAO_Queued_Data::release (qd);
- return -1; // error: GIOP-1.0 does not support fragments
- }
-
- // If this is not the last fragment, push it onto stack for later processing
- if (qd->more_fragments_)
- {
- this->fragment_stack_.push (qd);
-
- msg = 0; // no consolidated message available yet
- return 1; // status: more messages expected.
- }
-
- tail = qd; // init
-
- // Add the current message block to the end of the chain
- // after adjusting the read pointer to skip the header(s)
- const size_t header_adjustment =
- this->header_length () +
- this->fragment_header_length (tail->major_version_,
- tail->minor_version_);
-
- if (tail->msg_block_->length () < header_adjustment)
- {
- // buffer length not sufficient
- TAO_Queued_Data::release (qd);
- return -1;
- }
-
- // duplicate code to speed up both processes, for GIOP-1.1 and GIOP-1.2
- if (tail->major_version_ == 1 && tail->minor_version_ == 1)
- {
- // GIOP-1.1
-
- while (this->fragment_stack_.pop (head) != -1)
- {
- if (head->more_fragments_ &&
- head->major_version_ == 1 &&
- head->minor_version_ == 1 &&
- head->msg_block_->length () >= header_adjustment)
- {
- // adjust the read-pointer, skip the fragment header
- tail->msg_block_->rd_ptr(header_adjustment);
-
- head->msg_block_->cont (tail->msg_block_);
-
- tail->msg_block_ = 0;
-
- TAO_Queued_Data::release (tail);
-
- tail = head;
- }
- else
- {
- reverse_stack.push (head);
- }
- }
- }
- else
- {
- // > GIOP-1.2
-
- CORBA::ULong tmp_request_id = 0;
- if (this->parse_request_id (tail, tmp_request_id) == -1)
- {
- return -1;
- }
-
- const CORBA::ULong request_id = tmp_request_id;
-
- while (this->fragment_stack_.pop (head) != -1)
- {
- CORBA::ULong head_request_id = 0;
- int parse_status = 0;
-
- if (head->more_fragments_ &&
- head->major_version_ >= 1 &&
- head->minor_version_ >= 2 &&
- head->msg_block_->length () >= header_adjustment &&
- (parse_status = this->parse_request_id (head, head_request_id)) != -1 &&
- request_id == head_request_id)
- {
- // adjust the read-pointer, skip the fragment header
- tail->msg_block_->rd_ptr(header_adjustment);
-
- head->msg_block_->cont (tail->msg_block_);
-
- tail->msg_block_ = 0;
-
- TAO_Queued_Data::release (tail);
-
- tail = head;
- }
- else
- {
- if (parse_status == -1)
- {
- TAO_Queued_Data::release (head);
- return -1;
- }
-
- reverse_stack.push (head);
- }
- }
- }
-
- // restore stack
- while (reverse_stack.pop (head) != -1)
- {
- this->fragment_stack_.push (head);
- }
-
- if (tail->consolidate () == -1)
- {
- // memory allocation failed
- TAO_Queued_Data::release (tail);
- return -1;
- }
-
- // set out value
- msg = tail;
-
- return 0;
-}
-
-
-int
-TAO_GIOP_Message_Base::discard_fragmented_message (const TAO_Queued_Data *cancel_request)
-{
- // We must extract the specific request-id from message-buffer
- // and remove all fragments from stack that match this request-id.
-
- TAO::Incoming_Message_Stack reverse_stack;
-
- CORBA::ULong cancel_request_id;
-
- if (this->parse_request_id (cancel_request, cancel_request_id) == -1)
- {
- return -1;
- }
-
- TAO_Queued_Data *head = 0;
-
- // Revert stack
- while (this->fragment_stack_.pop (head) != -1)
- {
- reverse_stack.push (head);
- }
-
- bool discard_all_GIOP11_messages = false;
-
- // Now we are able to process message in order they have arrived.
- // If the cancel_request_id matches to GIOP-1.1 message, all succeeding
- // fragments belong to this message and must be discarded.
- // Note: GIOP-1.1 fragment header dont have any request-id encoded. If the
- // cancel_request_id matches GIOP-1.2 messages, all GIOP-1.2 fragments
- // having encoded the request id will be discarded.
- while (reverse_stack.pop (head) != -1)
- {
- CORBA::ULong head_request_id;
-
- if (head->major_version_ == 1 &&
- head->minor_version_ <= 1 &&
- head->msg_type_ != TAO_PLUGGABLE_MESSAGE_FRAGMENT && // GIOP11 fragment does not provide request id
- this->parse_request_id (head, head_request_id) >= 0 &&
- cancel_request_id == head_request_id)
- {
- TAO_Queued_Data::release (head);
-
- discard_all_GIOP11_messages = true;
- }
- else if (head->major_version_ == 1 &&
- head->minor_version_ <= 1 &&
- discard_all_GIOP11_messages)
- {
- TAO_Queued_Data::release (head);
- }
- else if (head->major_version_ >= 1 &&
- head->minor_version_ >= 2 &&
- this->parse_request_id (head, head_request_id) >= 0 &&
- cancel_request_id == head_request_id)
- {
- TAO_Queued_Data::release (head);
- }
- else
- {
- this->fragment_stack_.push (head);
- }
- }
-
- return 0;
-}
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Base.h b/TAO/tao/GIOP_Message_Base.h
index 596ea383366..853f4db9125 100644
--- a/TAO/tao/GIOP_Message_Base.h
+++ b/TAO/tao/GIOP_Message_Base.h
@@ -1,5 +1,5 @@
// -*- C++ -*-
-
+//
// ===================================================================
/**
* @file GIOP_Message_Base.h
@@ -27,9 +27,6 @@
#include "tao/GIOP_Utils.h"
#include "tao/GIOP_Message_State.h"
#include "tao/CDR.h"
-#include "tao/Incoming_Message_Stack.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Pluggable_Reply_Params;
class TAO_Queued_Data;
@@ -41,7 +38,8 @@ class TAO_Queued_Data;
*
* This class will hold the specific details common to all the GIOP
* versions. Some of them which are here may be shifted if things
- * start changing between versions.
+ * start changing between versions. This class uses the
+ * TAO_GIOP_Message_Reactive_Handler to read and parse messages.
*/
class TAO_Export TAO_GIOP_Message_Base : public TAO_Pluggable_Messaging
@@ -81,23 +79,36 @@ public:
TAO_Pluggable_Reply_Params_Base &params
);
+ /// This method reads the message on the connection. Returns 0 when
+ /// there is short read on the connection. Returns 1 when the full
+ /// message is read and handled. Returns -1 on errors. If @a block is
+ /// 1, then reply is read in a blocking manner.
+ virtual int read_message (TAO_Transport *transport,
+ int block = 0,
+ ACE_Time_Value *max_wait_time = 0);
+
+
/// Format the message. As we have not written the message length in
/// the header, we make use of this oppurtunity to insert and format
/// the message.
virtual int format_message (TAO_OutputCDR &cdr);
- /// Parse the details of the next message from the @a incoming
- /// and initializes attributes of @a qd. Returns 0 if the message
- /// header could not be parsed completely, returns a 1 if the message
- /// header could be parsed completely and returns -1 on error.
- virtual int parse_next_message (ACE_Message_Block &incoming,
- TAO_Queued_Data &qd, /* out */
- size_t &mesg_length); /* out */
-
- /// Extract the details of the next message from the @a incoming
- /// through @a qd. Returns 0 if the message header could not be
- /// parsed completely, returns a 1 if the message header could be
- /// parsed completely and returns -1 on error.
+ /// Parse the incoming messages..
+ ///
+ /// \return -1 There was some error parsing the GIOP header
+ /// \return 0 The GIOP header was parsed correctly
+ /// \return 1 There was not enough data in the message block to
+ /// parse the header
+ virtual int parse_incoming_messages (ACE_Message_Block &message_block);
+
+ /// Calculate the amount of data that is missing in the <incoming>
+ /// message block.
+ virtual ssize_t missing_data (ACE_Message_Block &message_block);
+
+ /* Extract the details of the next message from the @a incoming
+ * through @a qd. Returns 1 if there are more messages and returns a
+ * 0 if there are no more messages in @a incoming.
+ */
virtual int extract_next_message (ACE_Message_Block &incoming,
TAO_Queued_Data *&qd);
@@ -105,6 +116,9 @@ public:
virtual int consolidate_node (TAO_Queued_Data *qd,
ACE_Message_Block &incoming);
+ /// Get the details of the message parsed through the @a qd.
+ virtual void get_message_data (TAO_Queued_Data *qd);
+
/// Process the request message that we have received on the
/// connection
virtual int process_request_message (TAO_Transport *transport,
@@ -133,25 +147,6 @@ public:
virtual TAO_OutputCDR &out_stream (void);
- /// Consolidate fragmented message with associated fragments, being
- /// stored withi this class. If reliable transport is used (like
- /// TCP) fragments are partialy ordered on stack, last fragment on
- /// top. Otherwise If un-reliable transport is used (like UDP)
- /// fragments may be dis-ordered, and must be ordered before
- /// consolidation. @return 0 on success and @a msg points to
- /// consolidated message, 1 if there are still fragmens outstanding,
- /// in case of error -1 is being returned. In any case @a qd must be
- /// released by method implementation.
- virtual int consolidate_fragmented_message (TAO_Queued_Data *qd,
- TAO_Queued_Data *&msg);
-
- /// Discard all fragments associated to request-id encoded in
- /// cancel_request. This operation will never be called
- /// concurrently by multiplpe threads nor concurrently to
- /// consolidate_fragmented_message @return -1 on failure, 0 on
- /// success, 1 no fragment on stack relating to CancelRequest.
- virtual int discard_fragmented_message (const TAO_Queued_Data *cancel_request);
-
protected:
/// Processes the GIOP_REQUEST messages
@@ -237,17 +232,6 @@ protected:
const TAO_GIOP_Message_State& state) const;
private:
- int parse_incoming_messages (ACE_Message_Block &incoming);
-
- /// Parse GIOP request-id of TAO_Queued_Data @a qd
- /// @return 0 on success, otherwise -1
- int parse_request_id (const TAO_Queued_Data *qd, CORBA::ULong &request_id) const;
-
- /// Parse GIOP request-id of TAO_InputCDR @a cdr.
- /// @return 0 on success, otherwise -1
- int parse_request_id (const TAO_InputCDR &cdr, CORBA::ULong &request_id) const;
-
-private:
/// Cached ORB_Core pointer...
TAO_ORB_Core *orb_core_;
@@ -258,10 +242,6 @@ private:
/// All the implementations of GIOP message generator and parsers
TAO_GIOP_Message_Generator_Parser_Impl tao_giop_impl_;
- /// All Fragments being received are stored on stack in reverse
- /// order, last top
- TAO::Incoming_Message_Stack fragment_stack_;
-
protected:
/// Buffer used for both the output and input CDR streams, this is
/// "safe" because we only one of the streams at a time.
@@ -284,8 +264,5 @@ protected:
*/
//@@ MESSAGING_SPL_EXTERN_ADD_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
-#endif /* TAO_GIOP_MESSAGE_BASE_H */
+#endif /*TAO_GIOP_MESSAGE_BASE_H*/
diff --git a/TAO/tao/GIOP_Message_Generator_Parser.cpp b/TAO/tao/GIOP_Message_Generator_Parser.cpp
index abd302b491e..c38aadd4626 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_GIOP_Message_Generator_Parser::~TAO_GIOP_Message_Generator_Parser (void)
{
}
@@ -37,8 +35,9 @@ TAO_GIOP_Message_Generator_Parser::parse_reply (
}
// and the reply status type. status can be NO_EXCEPTION,
- // SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD,
- // LOCATION_FORWARD_PERM
+ // SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD
+
+ // Cannot handle LOCATION_FORWARD_PERM here
CORBA::ULong rep_stat = 0;
if (!stream.read_ulong (rep_stat))
{
@@ -75,12 +74,13 @@ TAO_GIOP_Message_Generator_Parser::parse_reply (
TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD;
break;
// Reply is a location forward perm type
- // LOCATION_FORWARD_PERM is only allowed in context of
- // FaultTolerant featured requests and requires PortableGroup
- // features in forwarded object and service context
+ // @@For the time being the behaviour of the
+ // LOCATION_FORWARD_PERM would be similar to the
+ // LOCATION_FORWARD as there is a controversy surrounding the
+ // usage of this in the OMG.
case TAO_GIOP_LOCATION_FORWARD_PERM:
params.reply_status_ =
- TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM;
+ TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD;
break;
// Reply is a location forward type
case TAO_GIOP_NEEDS_ADDRESSING_MODE:
@@ -115,7 +115,8 @@ TAO_GIOP_Message_Generator_Parser::parse_locate_reply (
// and the reply status type. status can be NO_EXCEPTION,
// SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD
- // LOCATION_FORWARD_PERM
+
+ // Cannot handle LOCATION_FORWARD_PERM here
// Please note here that we are NOT converting to the Pluggable
// messaging layer exception as this is GIOP specific. Not many
@@ -167,5 +168,3 @@ TAO_GIOP_Message_Generator_Parser::marshal_reply_status (
break;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Generator_Parser.h b/TAO/tao/GIOP_Message_Generator_Parser.h
index 0291c4264c3..a427384ea93 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser.h
+++ b/TAO/tao/GIOP_Message_Generator_Parser.h
@@ -1,5 +1,5 @@
-// -*- C++ -*-
+// -*- C++ -*-
// ===================================================================
/**
* @file GIOP_Message_Generator_Parser.h
@@ -22,8 +22,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Target_Specification;
class TAO_OutputCDR;
@@ -111,8 +109,5 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_H*/
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_10.cpp b/TAO/tao/GIOP_Message_Generator_Parser_10.cpp
index 351ed8e21be..a78149c847a 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_10.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser_10.cpp
@@ -14,11 +14,9 @@
#include "ace/Log_Msg.h"
ACE_RCSID (tao,
- GIOP_Message_Generator_Parser_10,
+ GIOP_Message_Gen_Parser_10,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_GIOP_Message_Generator_Parser_10::write_request_header (
const TAO_Operation_Details &opdetails,
@@ -341,7 +339,7 @@ TAO_GIOP_Message_Generator_Parser_10::parse_request_header (
request.request_id (req_id);
- CORBA::Octet response_flags = CORBA::Octet();
+ CORBA::Octet response_flags;
hdr_status = hdr_status && input.read_octet (response_flags);
request.response_expected ((response_flags != 0));
@@ -469,7 +467,7 @@ CORBA::Octet
TAO_GIOP_Message_Generator_Parser_10::major_version (void)
{
// Any harm in hardcoding??
- return static_cast<CORBA::Octet> (1);
+ return (CORBA::Octet) 1;
}
CORBA::Octet
@@ -484,5 +482,3 @@ TAO_GIOP_Message_Generator_Parser_10::fragment_header_length (void) const
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_10.h b/TAO/tao/GIOP_Message_Generator_Parser_10.h
index 6604c1ec09c..848f83fffd2 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_10.h
+++ b/TAO/tao/GIOP_Message_Generator_Parser_10.h
@@ -1,5 +1,5 @@
-// -*- C++ -*-
+// -*- C++ -*-
// ===================================================================
/**
* @file GIOP_Message_Generator_Parser_10.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_GIOP_Message_State;
/**
@@ -92,8 +90,5 @@ public:
virtual size_t fragment_header_length (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_10_H*/
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_11.cpp b/TAO/tao/GIOP_Message_Generator_Parser_11.cpp
index 88bdbe641af..0d9bd94c60a 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_11.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser_11.cpp
@@ -1,15 +1,11 @@
#include "tao/GIOP_Message_Generator_Parser_11.h"
-ACE_RCSID (tao,
- GIOP_Message_Generator_Parser_11,
+ACE_RCSID (tao,
+ GIOP_Message_Gen_Parser_11,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Octet
TAO_GIOP_Message_Generator_Parser_11::minor_version (void)
{
- return static_cast<CORBA::Octet> (1);
+ return (CORBA::Octet) 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_11.h b/TAO/tao/GIOP_Message_Generator_Parser_11.h
index cc88a7082ec..fd4232fe1b8 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_11.h
+++ b/TAO/tao/GIOP_Message_Generator_Parser_11.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_GIOP_Message_Generator_Parser_11
*
@@ -32,8 +30,9 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* the 1.0 class.
*
*/
-class TAO_Export TAO_GIOP_Message_Generator_Parser_11
- : public TAO_GIOP_Message_Generator_Parser_10
+
+class TAO_Export TAO_GIOP_Message_Generator_Parser_11:
+ public TAO_GIOP_Message_Generator_Parser_10
{
public:
@@ -42,8 +41,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
-#endif /* TAO_GIOP_MESSAGE_GENERATOR_PARSER_11_H */
+#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_11_H*/
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_12.cpp b/TAO/tao/GIOP_Message_Generator_Parser_12.cpp
index 5fa498544dc..5296e870b67 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_12.cpp
+++ b/TAO/tao/GIOP_Message_Generator_Parser_12.cpp
@@ -21,8 +21,6 @@ ACE_RCSID (tao,
// scope.
static const size_t TAO_GIOP_MESSAGE_ALIGN_PTR = 8;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_GIOP_Message_Generator_Parser_12::write_request_header (
const TAO_Operation_Details &opdetails,
@@ -266,7 +264,7 @@ TAO_GIOP_Message_Generator_Parser_12::parse_request_header (
request.request_id (req_id);
- CORBA::Octet response_flags = CORBA::Octet();
+ CORBA::Octet response_flags;
hdr_status = hdr_status && input.read_octet (response_flags);
request.response_expected ((response_flags > 0));
@@ -568,5 +566,3 @@ TAO_GIOP_Message_Generator_Parser_12::fragment_header_length (void) const
{
return TAO_GIOP_MESSAGE_FRAGMENT_HEADER;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_12.h b/TAO/tao/GIOP_Message_Generator_Parser_12.h
index 1a91095fa6b..5fa4d531ba9 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_12.h
+++ b/TAO/tao/GIOP_Message_Generator_Parser_12.h
@@ -1,5 +1,5 @@
-// -*- C++ -*-
+// -*- C++ -*-
// ===================================================================
/**
* @file GIOP_Message_Generator_Parser_12.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_GIOP_Message_State;
class TAO_Service_Context;
class TAO_Transport;
@@ -118,8 +116,5 @@ private:
TAO_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
-#endif /* TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H */
+#endif /*TAO_GIOP_MESSAGE_GENERATOR_PARSER_12_H*/
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_Impl.h b/TAO/tao/GIOP_Message_Generator_Parser_Impl.h
index 9dad728f19b..9dd3e2cbf7c 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_Impl.h
+++ b/TAO/tao/GIOP_Message_Generator_Parser_Impl.h
@@ -1,5 +1,5 @@
-// -*- C++ -*-
+// -*- C++ -*-
// ===================================================================
/**
* @file GIOP_Message_Generator_Parser_Impl.h
@@ -24,8 +24,6 @@
#include "tao/GIOP_Message_Generator_Parser_12.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_GIOP_Message_Generator_Parser_Impl
*
@@ -56,9 +54,6 @@ public:
TAO_GIOP_Message_Generator_Parser_12 tao_giop_12;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Generator_Parser_Impl.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/GIOP_Message_Generator_Parser_Impl.inl b/TAO/tao/GIOP_Message_Generator_Parser_Impl.inl
index 5415e22f081..49f47beff45 100644
--- a/TAO/tao/GIOP_Message_Generator_Parser_Impl.inl
+++ b/TAO/tao/GIOP_Message_Generator_Parser_Impl.inl
@@ -2,8 +2,6 @@
//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_GIOP_Message_Generator_Parser_Impl::check_revision (
CORBA::Octet incoming_major,
@@ -12,7 +10,7 @@ TAO_GIOP_Message_Generator_Parser_Impl::check_revision (
CORBA::UShort const version_as_whole_num =
incoming_major << 8 | incoming_minor;
- CORBA::UShort const max_allowable_version =
+ static CORBA::UShort const max_allowable_version =
TAO_DEF_GIOP_MAJOR << 8 | TAO_DEF_GIOP_MINOR;
// If it's greater than the max, we know it's not allowed.
@@ -31,5 +29,3 @@ TAO_GIOP_Message_Generator_Parser_Impl::check_revision (
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Lite.cpp b/TAO/tao/GIOP_Message_Lite.cpp
index 273b3a347b8..a0e7a4d8558 100644
--- a/TAO/tao/GIOP_Message_Lite.cpp
+++ b/TAO/tao/GIOP_Message_Lite.cpp
@@ -1,17 +1,19 @@
+// -*- C++ -*-
+//
//$Id$
-#include "tao/GIOP_Message_Lite.h"
-#include "tao/debug.h"
-#include "tao/TAOC.h"
-#include "tao/ORB_Core.h"
-#include "tao/operation_details.h"
-#include "tao/TAO_Server_Request.h"
-#include "tao/GIOP_Message_Locate_Header.h"
-#include "tao/LF_Strategy.h"
-#include "tao/Transport.h"
-#include "tao/Transport_Mux_Strategy.h"
-#include "tao/Codeset_Manager.h"
-#include "tao/SystemException.h"
+#include "GIOP_Message_Lite.h"
+#include "debug.h"
+#include "TAOC.h"
+#include "ORB_Core.h"
+#include "operation_details.h"
+#include "TAO_Server_Request.h"
+#include "GIOP_Message_Locate_Header.h"
+#include "LF_Strategy.h"
+#include "Transport.h"
+#include "Transport_Mux_Strategy.h"
+#include "Codeset_Manager.h"
+#include "SystemException.h"
ACE_RCSID (tao,
GIOP_Message_Lite,
@@ -22,8 +24,6 @@ static const size_t TAO_GIOP_LITE_HEADER_LEN = 5;
static const size_t TAO_GIOP_LITE_MESSAGE_SIZE_OFFSET = 0;
static const size_t TAO_GIOP_LITE_MESSAGE_TYPE_OFFSET = 4;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_GIOP_Message_Lite::TAO_GIOP_Message_Lite (TAO_ORB_Core *orb_core,
size_t /*input_cdr_size*/)
: orb_core_ (orb_core),
@@ -165,6 +165,16 @@ TAO_GIOP_Message_Lite::generate_reply_header (
return 0;
}
+
+int
+TAO_GIOP_Message_Lite::read_message (TAO_Transport * /*transport*/,
+ int /*block */,
+ ACE_Time_Value * /*max_wait_time*/)
+{
+ return 1;
+}
+
+
int
TAO_GIOP_Message_Lite::format_message (TAO_OutputCDR &stream)
{
@@ -235,8 +245,6 @@ TAO_GIOP_Message_Lite::format_message (TAO_OutputCDR &stream)
int
TAO_GIOP_Message_Lite::parse_incoming_messages (ACE_Message_Block &block)
{
- this->reset ();
-
// Make sure we have enough bytes in the header to read all
// of the information.
if (block.length () < TAO_GIOP_LITE_HEADER_LEN)
@@ -298,8 +306,6 @@ TAO_GIOP_Message_Lite::message_type (void) const
return TAO_PLUGGABLE_MESSAGE_CLOSECONNECTION;
case TAO_GIOP_CANCELREQUEST:
- return TAO_PLUGGABLE_MESSAGE_CANCELREQUEST;
-
case TAO_GIOP_MESSAGERROR:
case TAO_GIOP_FRAGMENT:
// Never happens: why??
@@ -313,44 +319,27 @@ TAO_GIOP_Message_Lite::message_type (void) const
return TAO_PLUGGABLE_MESSAGE_MESSAGERROR;
}
-int
-TAO_GIOP_Message_Lite::parse_next_message (ACE_Message_Block &incoming,
- TAO_Queued_Data &qd,
- size_t &mesg_length)
+
+ssize_t
+TAO_GIOP_Message_Lite::missing_data (ACE_Message_Block &block)
{
- if (incoming.length () < TAO_GIOP_LITE_HEADER_LEN)
- {
- qd.missing_data_ = TAO_MISSING_DATA_UNDEFINED;
+ // Actual message size including the header..
+ CORBA::ULong msg_size =
+ this->message_size_ + TAO_GIOP_LITE_HEADER_LEN;
- return 0; /* incomplete header */
- }
- else
- {
- if (this->parse_incoming_messages (incoming) == -1)
+ size_t len = block.length ();
+
+ if (len > msg_size)
{
return -1;
}
+ else if (len == msg_size)
+ return 0;
- const size_t total_len =
- this->message_size_ + TAO_GIOP_LITE_HEADER_LEN;
-
- if (total_len > incoming.length ())
- {
- qd.missing_data_ = total_len - incoming.length ();
- }
- else
- {
- qd.missing_data_ = 0;
- }
-
- this->init_queued_data (&qd);
-
- mesg_length = TAO_GIOP_LITE_HEADER_LEN + this->message_size_;
-
- return 1; /* parsed header successfully */
- }
+ return msg_size - len;
}
+
int
TAO_GIOP_Message_Lite::extract_next_message (ACE_Message_Block &incoming,
TAO_Queued_Data *&qd)
@@ -364,14 +353,9 @@ TAO_GIOP_Message_Lite::extract_next_message (ACE_Message_Block &incoming,
qd =
this->make_queued_data (TAO_GIOP_LITE_HEADER_LEN);
- if (qd == 0)
- {
- return -1; /* out of memory */
- }
-
qd->msg_block_->copy (incoming.rd_ptr (),
incoming.length ());
- qd->missing_data_ = TAO_MISSING_DATA_UNDEFINED;
+ qd->missing_data_ = -1;
}
return 0;
}
@@ -386,21 +370,12 @@ TAO_GIOP_Message_Lite::extract_next_message (ACE_Message_Block &incoming,
qd = this->make_queued_data (copying_len);
- if (qd == 0)
- {
- return -1; /* out of memory */
- }
-
if (copying_len > incoming.length ())
{
qd->missing_data_ = copying_len - incoming.length ();
copying_len = incoming.length ();
}
- else
- {
- qd->missing_data_ = 0;
- }
qd->msg_block_->copy (incoming.rd_ptr (),
copying_len);
@@ -416,7 +391,7 @@ TAO_GIOP_Message_Lite::consolidate_node (TAO_Queued_Data *qd,
ACE_Message_Block &incoming)
{
// Look to see whether we had atleast parsed the GIOP header ...
- if (qd->missing_data_ == TAO_MISSING_DATA_UNDEFINED)
+ if (qd->missing_data_ == -1)
{
// The data length that has been stuck in there during the last
// read ....
@@ -426,26 +401,11 @@ TAO_GIOP_Message_Lite::consolidate_node (TAO_Queued_Data *qd,
// We know that we would have space for
// TAO_GIOP_MESSAGE_HEADER_LEN here. So copy that much of data
// from the <incoming> into the message block in <qd>
- const size_t available = incoming.length ();
- const size_t desired = TAO_GIOP_LITE_HEADER_LEN - len;
- const size_t n_copy = ace_min (available, desired);
-
- // paranoid check, but would cause endless loop
- if (n_copy == 0)
- {
- return -1;
- }
-
- qd->msg_block_->copy (incoming.rd_ptr (), n_copy);
+ qd->msg_block_->copy (incoming.rd_ptr (),
+ TAO_GIOP_LITE_HEADER_LEN - len);
// Move the rd_ptr () in the incoming message block..
- incoming.rd_ptr (n_copy);
-
- // verify there is now enough data to parse the header
- if (qd->msg_block_->length () < TAO_GIOP_LITE_HEADER_LEN)
- {
- return 0;
- }
+ incoming.rd_ptr (TAO_GIOP_LITE_HEADER_LEN - len);
// Parse the message header now...
if (this->parse_incoming_messages (*qd->msg_block_) == -1)
@@ -453,12 +413,8 @@ TAO_GIOP_Message_Lite::consolidate_node (TAO_Queued_Data *qd,
// Now grow the message block so that we can copy the rest of
// the data...
- if (ACE_CDR::grow (qd->msg_block_,
- this->message_size_ + TAO_GIOP_LITE_HEADER_LEN) == -1)
- {
- /* memory allocation failed */
- return -1;
- }
+ ACE_CDR::grow (qd->msg_block_,
+ this->message_size_ + TAO_GIOP_LITE_HEADER_LEN);
// Copy the pay load..
@@ -480,12 +436,6 @@ TAO_GIOP_Message_Lite::consolidate_node (TAO_Queued_Data *qd,
qd->missing_data_ = 0;
}
- // paranoid check
- if (copy_len == 0)
- {
- return -1;
- }
-
// ..now we are set to copy the right amount of data to the
// node..
qd->msg_block_->copy (incoming.rd_ptr (),
@@ -524,6 +474,17 @@ TAO_GIOP_Message_Lite::consolidate_node (TAO_Queued_Data *qd,
return 0;
}
+
+void
+TAO_GIOP_Message_Lite::get_message_data (TAO_Queued_Data *qd)
+{
+ // Get the message information
+ this->init_queued_data (qd);
+
+ // Reset the message_state
+ this->reset ();
+}
+
int
TAO_GIOP_Message_Lite::process_request_message (TAO_Transport *transport,
TAO_Queued_Data *qd)
@@ -1347,7 +1308,7 @@ TAO_GIOP_Message_Lite::parse_request_header (TAO_ServerRequest &request)
request.request_id (req_id);
- CORBA::Octet response_flags = CORBA::Octet();
+ CORBA::Octet response_flags;
hdr_status = hdr_status && input.read_octet (response_flags);
request.response_expected ((response_flags != 0));
@@ -1645,10 +1606,10 @@ TAO_GIOP_Message_Lite::dump_msg (const char *label,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P | %t):%s GIOP lite msg, ")
ACE_TEXT ("%d data bytes, %s endian, <%s = %d> \n"),
- ACE_TEXT_CHAR_TO_TCHAR(label),
+ ACE_TEXT_TO_TCHAR_IN(label),
len - TAO_GIOP_LITE_HEADER_LEN,
(byte_order == TAO_ENCAP_BYTE_ORDER) ? ACE_TEXT("my") : ACE_TEXT("other"),
- ACE_TEXT_CHAR_TO_TCHAR (message_name),
+ ACE_TEXT_TO_TCHAR_IN (message_name),
*id));
if (TAO_debug_level >= 10)
@@ -1666,11 +1627,6 @@ TAO_GIOP_Message_Lite::make_queued_data (size_t sz)
TAO_Queued_Data *qd =
TAO_Queued_Data::make_queued_data ();
- if (qd == 0)
- {
- return 0;
- }
-
// Make a datablock for the size requested + something. The
// "something" is required because we are going to align the data
// block in the message block. During alignment we could loose some
@@ -1680,12 +1636,6 @@ TAO_GIOP_Message_Lite::make_queued_data (size_t sz)
this->orb_core_->create_input_cdr_data_block (sz +
ACE_CDR::MAX_ALIGNMENT);
- if (db == 0)
- {
- TAO_Queued_Data::release (qd);
- return 0;
- }
-
ACE_Allocator *alloc =
this->orb_core_->input_cdr_msgblock_allocator ();
@@ -1695,14 +1645,6 @@ TAO_GIOP_Message_Lite::make_queued_data (size_t sz)
ACE_Message_Block *new_mb = mb.duplicate ();
- if (new_mb == 0)
- {
- TAO_Queued_Data::release (qd);
- db->release();
-
- return 0;
- }
-
ACE_CDR::mb_align (new_mb);
qd->msg_block_ = new_mb;
@@ -1747,30 +1689,3 @@ TAO_GIOP_Message_Lite::init_queued_data (TAO_Queued_Data* qd) const
qd->minor_version_ = TAO_DEF_GIOP_MINOR;
qd->msg_type_ = this->message_type ();
}
-
-/* @return -1 error, 0 ok */
-int
-TAO_GIOP_Message_Lite::consolidate_fragmented_message (TAO_Queued_Data* /* qd */,
- TAO_Queued_Data *& /* msg */)
-{
- if (TAO_debug_level > 3)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P | %t):%s GIOP lite msg, ")
- ACE_TEXT ("Error, fragmented messages not supported\n")));
- }
- return -1; // not implemented, not supported
-}
-
-
-
-/// Remove all fragments from stack corelating to CancelRequest @a qd.
-/// @return -1 on failure, 0 on success, 1 no fragment on stack
-/// relating to CancelRequest.
-int
-TAO_GIOP_Message_Lite::discard_fragmented_message (const TAO_Queued_Data *)
-{
- return 1; // no fragment on stack relating to cancel-request
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Lite.h b/TAO/tao/GIOP_Message_Lite.h
index b01f16121eb..8ddaa6ef89b 100644
--- a/TAO/tao/GIOP_Message_Lite.h
+++ b/TAO/tao/GIOP_Message_Lite.h
@@ -27,8 +27,6 @@
#include "tao/SystemException.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Pluggable_Reply_Params;
class TAO_GIOP_Locate_Request_Header;
@@ -80,19 +78,24 @@ public:
TAO_Pluggable_Reply_Params_Base &params
);
+ /// Dummy method to ..
+ virtual int read_message (TAO_Transport *transport,
+ int block = 0,
+ ACE_Time_Value *max_wait_time = 0);
+
+
/// Format the message. As we have not written the message length in
/// the header, we make use of this oppurtunity to insert and format
/// the message.
virtual int format_message (TAO_OutputCDR &cdr);
-private:
/// Parse the incoming messages..
///
/// \return -1 There was some error parsing the GIOP header
/// \return 0 The GIOP header was parsed correctly
/// \return 1 There was not enough data in the message block to
/// parse the header
- int parse_incoming_messages (ACE_Message_Block &message_block);
+ virtual int parse_incoming_messages (ACE_Message_Block &message_block);
/// Get the message type. The return value would be one of the
/// following:
@@ -100,23 +103,17 @@ private:
/// TAO_PLUGGABLE_MESSAGE_REPLY,
/// TAO_PLUGGABLE_MESSAGE_CLOSECONNECTION,
/// TAO_PLUGGABLE_MESSAGE_MESSAGE_ERROR.
- /// TAO_PLUGGABLE_MESSAGE_MESSAGE_CANCELREQUEST.
TAO_Pluggable_Message_Type message_type (void) const;
-public:
- /// Parse the details of the next message from the @a incoming
- /// and initializes attributes of @a qd. Returns 0 if the message
- /// header could not be parsed completely, returns a 1 if the message
- /// header could be parsed completely and returns -1 on error.
- virtual int parse_next_message (ACE_Message_Block &incoming,
- TAO_Queued_Data &qd, /* out */
- size_t &mesg_length); /* out */
-
-
- /// Extract the details of the next message from the @a incoming
- /// through @a qd. Returns 0 if the message header could not be
- /// parsed completely, returns a 1 if the message header could be
- /// parsed completely and returns -1 on error.
+
+ /// Calculate the amount of data that is missing in the <incoming>
+ /// message block.
+ virtual ssize_t missing_data (ACE_Message_Block &message_block);
+
+ /* Extract the details of the next message from the @a incoming
+ * through @a qd. Returns 1 if there are more messages and returns a
+ * 0 if there are no more messages in @a incoming.
+ */
virtual int extract_next_message (ACE_Message_Block &incoming,
TAO_Queued_Data *&qd);
@@ -124,6 +121,9 @@ public:
virtual int consolidate_node (TAO_Queued_Data *qd,
ACE_Message_Block &incoming);
+ /// Get the details of the message parsed through the <qd>.
+ virtual void get_message_data (TAO_Queued_Data *qd);
+
/// Process the request message that we have received on the
/// connection
virtual int process_request_message (TAO_Transport *transport,
@@ -142,25 +142,6 @@ public:
CORBA::Exception &x
);
- /// Consolidate fragmented message with associated fragments, being
- /// stored withi this class. If reliable transport is used (like
- /// TCP) fragments are partialy ordered on stack, last fragment on
- /// top. Otherwise If un-reliable transport is used (like UDP)
- /// fragments may be dis-ordered, and must be ordered before
- /// consolidation. @return 0 on success and @a msg points to
- /// consolidated message, 1 if there are still fragmens outstanding,
- /// in case of error -1 is being returned. In any case @a qd must be
- /// released by method implementation.
- virtual int consolidate_fragmented_message (TAO_Queued_Data *qd,
- TAO_Queued_Data *&msg);
-
- /// Discard all fragments associated to request-id encoded in
- /// cancel_request. This operation will never be called
- /// concurrently by multiplpe threads nor concurrently to
- /// consolidate_fragmented_message @r 0 on success, 1 if no matching
- /// fragment chain exists, -1 on error
- virtual int discard_fragmented_message (const TAO_Queued_Data *cancel_request);
-
private:
/// Writes the GIOP header in to @a msg
@@ -294,7 +275,5 @@ private:
TAO_OutputCDR cdr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_GIOP_MESSAGE_LITE_H*/
diff --git a/TAO/tao/GIOP_Message_Locate_Header.cpp b/TAO/tao/GIOP_Message_Locate_Header.cpp
index b4889f39b7c..089da5d7a71 100644
--- a/TAO/tao/GIOP_Message_Locate_Header.cpp
+++ b/TAO/tao/GIOP_Message_Locate_Header.cpp
@@ -1,11 +1,10 @@
//$Id$
-
#include "tao/GIOP_Message_Locate_Header.h"
#if !defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Locate_Header.i"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- GIOP_Message_Locate_Header,
+ACE_RCSID (tao,
+ GIOP_Message_Headers,
"$Id$")
diff --git a/TAO/tao/GIOP_Message_Locate_Header.h b/TAO/tao/GIOP_Message_Locate_Header.h
index 8604a1239a8..89600c8ec1b 100644
--- a/TAO/tao/GIOP_Message_Locate_Header.h
+++ b/TAO/tao/GIOP_Message_Locate_Header.h
@@ -25,8 +25,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_GIOP_Locate_Request_Header
*
@@ -72,8 +70,6 @@ private:
TAO_InputCDR *incoming_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Locate_Header.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/GIOP_Message_Locate_Header.i b/TAO/tao/GIOP_Message_Locate_Header.i
index d59598e5919..8b8025c4603 100644
--- a/TAO/tao/GIOP_Message_Locate_Header.i
+++ b/TAO/tao/GIOP_Message_Locate_Header.i
@@ -1,13 +1,9 @@
// -*- C++ -*-
-//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
-TAO_GIOP_Locate_Request_Header::TAO_GIOP_Locate_Request_Header (
- TAO_InputCDR &msg,
- TAO_ORB_Core *orb)
+TAO_GIOP_Locate_Request_Header::TAO_GIOP_Locate_Request_Header (TAO_InputCDR &msg,
+ TAO_ORB_Core *orb)
: request_id_ (0),
profile_ (orb),
incoming_ (&msg)
@@ -50,4 +46,3 @@ TAO_GIOP_Locate_Request_Header::incoming_stream (void)
return *this->incoming_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_State.cpp b/TAO/tao/GIOP_Message_State.cpp
index 6f30b76136b..6100e1fb4fe 100644
--- a/TAO/tao/GIOP_Message_State.cpp
+++ b/TAO/tao/GIOP_Message_State.cpp
@@ -14,14 +14,13 @@ ACE_RCSID (tao,
GIOP_Message_State,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_GIOP_Message_State::TAO_GIOP_Message_State (void)
: giop_version_ (TAO_DEF_GIOP_MAJOR,
TAO_DEF_GIOP_MINOR),
byte_order_ (0),
message_type_ (0),
message_size_ (0),
+ request_id_ (0),
more_fragments_ (0),
missing_data_ (0)
{
@@ -97,7 +96,8 @@ TAO_GIOP_Message_State::parse_message_header_i (ACE_Message_Block &incoming)
}
}
- return 0; // success
+ // Get the request id
+ return this->parse_fragment_header (buf, incoming.length ());
}
@@ -169,7 +169,7 @@ TAO_GIOP_Message_State::get_byte_order_info (char *buf)
if (TAO_debug_level > 8)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - GIOP_Message_State::get_byte_order_info\n") ));
+ "TAO (%P|%t) - GIOP_Message_State::get_byte_order_info\n"));
}
// Let us be specific that this is for 1.0
@@ -185,8 +185,8 @@ TAO_GIOP_Message_State::get_byte_order_info (char *buf)
if (TAO_debug_level > 2)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - GIOP_Message_State::get_byte_order_info, ")
- ACE_TEXT ("invalid byte order <%d> for version <1.0>\n"),
+ "TAO (%P|%t) - GIOP_Message_State::get_byte_order_info, "
+ "invalid byte order <%d> for version <1.0>\n",
this->byte_order_));
}
return -1;
@@ -229,8 +229,36 @@ TAO_GIOP_Message_State::get_payload_size (char *rd_ptr)
this->message_size_ = this->read_ulong (rd_ptr);
}
+
+
+int
+TAO_GIOP_Message_State::parse_fragment_header (const char *buf,
+ size_t length)
+{
+ // By this point we are doubly sure that we have a more or less
+ // valid GIOP message with a valid major revision number.
+ if ((this->giop_version_.major > 1 || this->giop_version_.minor >= 2) &&
+ (this->more_fragments_ || this->message_type_ == TAO_GIOP_FRAGMENT))
+ {
+ static const size_t len =
+ TAO_GIOP_MESSAGE_HEADER_LEN + TAO_GIOP_MESSAGE_FRAGMENT_HEADER;
+
+ // If there is not enough data in the header to get the request
+ // id, then we need to indicate that by returning 1.
+ if (length < len)
+ return 1;
+
+ // Fragmented message in GIOP 1.2 should have a fragment header
+ // following the GIOP header.
+ buf += TAO_GIOP_MESSAGE_HEADER_LEN;
+ this->request_id_ = this->read_ulong (buf);
+ }
+
+ return 0;
+}
+
CORBA::ULong
-TAO_GIOP_Message_State::read_ulong (const char *rd_ptr) const
+TAO_GIOP_Message_State::read_ulong (const char *rd_ptr)
{
CORBA::ULong x = 0;
@@ -238,13 +266,11 @@ TAO_GIOP_Message_State::read_ulong (const char *rd_ptr) const
// as SunCC) have a problem in deferencing from the
// reinterpret_cast pointer of the <rd_ptr>, as the <rd_ptr> can be
// on stack. So let us go ahead with this copying...
- char buf[] =
- {
- *rd_ptr,
- *(rd_ptr + 1),
- *(rd_ptr + 2),
- *(rd_ptr + 3)
- };
+ char buf [4];
+ buf[0] = *rd_ptr;
+ buf[1] = *(rd_ptr + 1);
+ buf[2] = *(rd_ptr + 2);
+ buf[3] = *(rd_ptr + 3);
#if !defined (ACE_DISABLE_SWAP_ON_READ)
if (!(this->byte_order_ != ACE_CDR_BYTE_ORDER))
@@ -261,5 +287,3 @@ TAO_GIOP_Message_State::read_ulong (const char *rd_ptr) const
return x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_State.h b/TAO/tao/GIOP_Message_State.h
index 9de7eee5b7e..16d9c11d14c 100644
--- a/TAO/tao/GIOP_Message_State.h
+++ b/TAO/tao/GIOP_Message_State.h
@@ -11,7 +11,7 @@
*
* @author Chris Cleeland <cleeland@cs.wustl.edu>
* @author Carlos O' Ryan <coryan@uci.edu>
- * @author Balachandran Natarajan <bala@cs.wustl.edu>
+ * @author modified by Balachandran Natarajan <bala@cs.wustl.edu>
*/
//=============================================================================
#ifndef TAO_GIOP_MESSAGE_STATE_H
@@ -25,13 +25,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_GIOP_Message_Base;
-
/**
* @class TAO_GIOP_Message_State
*
@@ -91,9 +87,14 @@ private:
/// Gets the size of the payload and set the size in the <state>
void get_payload_size (char *buf);
+ /// Parses the GIOP FRAGMENT_HEADER information from the incoming
+ /// stream.
+ int parse_fragment_header (const char *buf,
+ size_t length);
+
/// Read the unsigned long from the buffer. The <buf> should just
/// point to the next 4 bytes data that represent the ULong
- CORBA::ULong read_ulong (const char *buf) const;
+ CORBA::ULong read_ulong (const char *buf);
private:
// GIOP version information..
@@ -108,6 +109,9 @@ private:
/// in byte_order!
CORBA::ULong message_size_;
+ /// Request Id from the Fragment header
+ CORBA::ULong request_id_;
+
/// (Requests and Replys)
/// A value of zero indicates that this message does not have any
/// fragments. A value of non-zero indicates that it does have
@@ -118,15 +122,14 @@ private:
CORBA::ULong missing_data_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-static const size_t TAO_GIOP_MESSAGE_HEADER_LEN = 12;
-static const size_t TAO_GIOP_MESSAGE_SIZE_OFFSET = 8;
-static const size_t TAO_GIOP_MESSAGE_FLAGS_OFFSET = 6;
-static const size_t TAO_GIOP_MESSAGE_TYPE_OFFSET = 7;
-static const size_t TAO_GIOP_VERSION_MINOR_OFFSET = 5;
-static const size_t TAO_GIOP_VERSION_MAJOR_OFFSET = 4;
-static const size_t TAO_GIOP_MESSAGE_FRAGMENT_HEADER = 4;
+const size_t TAO_GIOP_MESSAGE_HEADER_LEN = 12;
+const size_t TAO_GIOP_MESSAGE_SIZE_OFFSET = 8;
+const size_t TAO_GIOP_MESSAGE_FLAGS_OFFSET = 6;
+const size_t TAO_GIOP_MESSAGE_TYPE_OFFSET = 7;
+const size_t TAO_GIOP_VERSION_MINOR_OFFSET = 5;
+const size_t TAO_GIOP_VERSION_MAJOR_OFFSET = 4;
+const size_t TAO_GIOP_MESSAGE_FRAGMENT_HEADER = 4;
#if defined (__ACE_INLINE__)
# include "tao/GIOP_Message_State.inl"
diff --git a/TAO/tao/GIOP_Message_State.inl b/TAO/tao/GIOP_Message_State.inl
index 2de1bbb2b03..fe076bee689 100644
--- a/TAO/tao/GIOP_Message_State.inl
+++ b/TAO/tao/GIOP_Message_State.inl
@@ -2,15 +2,13 @@
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_GIOP_Message_State::message_size (void) const
{
CORBA::ULong len =
this->message_size_ + TAO_GIOP_MESSAGE_HEADER_LEN;
- return len;
+ return len;
}
ACE_INLINE CORBA::ULong
@@ -31,6 +29,7 @@ TAO_GIOP_Message_State::reset (void)
this->message_type_ = 0;
this->message_size_ = 0;
this->more_fragments_ = 0;
+ this->request_id_ = 0;
this->missing_data_ = 0;
}
@@ -53,5 +52,3 @@ TAO_GIOP_Message_State::header_received (void) const
}
#endif
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Message_Version.cpp b/TAO/tao/GIOP_Message_Version.cpp
index b7935f7ac71..78a90520dcf 100644
--- a/TAO/tao/GIOP_Message_Version.cpp
+++ b/TAO/tao/GIOP_Message_Version.cpp
@@ -1,5 +1,5 @@
//$Id$
-# include "tao/GIOP_Message_Version.h"
+# include "GIOP_Message_Version.h"
#if !defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Version.inl"
diff --git a/TAO/tao/GIOP_Message_Version.h b/TAO/tao/GIOP_Message_Version.h
index f563af8004d..0c3f4dc9c55 100644
--- a/TAO/tao/GIOP_Message_Version.h
+++ b/TAO/tao/GIOP_Message_Version.h
@@ -28,8 +28,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
/**
@@ -54,6 +52,9 @@ public:
TAO_GIOP_Message_Version (CORBA::Octet maj = TAO_DEF_GIOP_MAJOR,
CORBA::Octet min = TAO_DEF_GIOP_MINOR);
+ /// Destructor.
+ ~TAO_GIOP_Message_Version (void);
+
/// Explicitly set the major and minor version.
void set_version (CORBA::Octet maj, CORBA::Octet min);
@@ -65,8 +66,6 @@ public:
bool operator!= (const TAO_GIOP_Message_Version &src);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/GIOP_Message_Version.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/GIOP_Message_Version.inl b/TAO/tao/GIOP_Message_Version.inl
index 6328534b3fc..216e29f5424 100644
--- a/TAO/tao/GIOP_Message_Version.inl
+++ b/TAO/tao/GIOP_Message_Version.inl
@@ -2,8 +2,6 @@
//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_GIOP_Message_Version::TAO_GIOP_Message_Version (
const TAO_GIOP_Message_Version &src)
@@ -20,16 +18,20 @@ TAO_GIOP_Message_Version::TAO_GIOP_Message_Version (CORBA::Octet maj,
{
}
+ACE_INLINE
+TAO_GIOP_Message_Version::~TAO_GIOP_Message_Version (void)
+{
+}
+
ACE_INLINE TAO_GIOP_Message_Version &
TAO_GIOP_Message_Version::operator= (
const TAO_GIOP_Message_Version &src)
{
- if (this != &src)
- {
- this->major = src.major;
- this->minor = src.minor;
- }
+ if (this == &src)
+ return *this;
+ this->major = src.major;
+ this->minor = src.minor;
return *this;
}
@@ -55,5 +57,3 @@ TAO_GIOP_Message_Version::operator!= (
{
return !(*this == src);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Utils.cpp b/TAO/tao/GIOP_Utils.cpp
index 595a6f85936..464eaa8430e 100644
--- a/TAO/tao/GIOP_Utils.cpp
+++ b/TAO/tao/GIOP_Utils.cpp
@@ -9,13 +9,12 @@ ACE_RCSID (tao,
GIOP_Utils,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
-TAO_GIOP_Utils::read_bytes_input (TAO_Transport *transport,
- TAO_InputCDR &input,
- CORBA::ULong read_size,
- ACE_Time_Value *value)
+TAO_GIOP_Utils::
+ read_bytes_input (TAO_Transport *transport,
+ TAO_InputCDR &input,
+ CORBA::ULong read_size,
+ ACE_Time_Value *value)
{
// Grow the size of CDR stream
if (input.grow (read_size) == -1)
@@ -29,7 +28,7 @@ TAO_GIOP_Utils::read_bytes_input (TAO_Transport *transport,
char *buf = input.rd_ptr ();
ssize_t n = 0;
- for (CORBA::ULong t = read_size;
+ for (int t = read_size;
t != 0;
t -= n)
{
@@ -77,5 +76,3 @@ TAO_GIOP_Utils::read_buffer (TAO_Transport *transport,
return bytes_read;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GIOP_Utils.h b/TAO/tao/GIOP_Utils.h
index 392e73aafe8..b3d3ff167b3 100644
--- a/TAO/tao/GIOP_Utils.h
+++ b/TAO/tao/GIOP_Utils.h
@@ -27,13 +27,8 @@
#include "tao/IOP_IORC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport;
+class ACE_Time_Value;
/**
* All GIOP messages include a header and message type. Not
@@ -51,7 +46,7 @@ typedef enum GIOP_Messages
TAO_GIOP_CLOSECONNECTION = 5,
TAO_GIOP_MESSAGERROR = 6, // by both.
TAO_GIOP_FRAGMENT = 7 // by both.
-} TAO_GIOP_Message_Type;
+}TAO_GIOP_Message_Type;
typedef enum GIOP_LocateStatusType
@@ -149,7 +144,5 @@ public:
ACE_Time_Value *max_wait_time = 0);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_GIOP_UTILS_H */
diff --git a/TAO/tao/GUIResource_Factory.cpp b/TAO/tao/GUIResource_Factory.cpp
index a94f2e97302..ae586a57a99 100644
--- a/TAO/tao/GUIResource_Factory.cpp
+++ b/TAO/tao/GUIResource_Factory.cpp
@@ -3,16 +3,14 @@
#include "ace/Reactor.h"
#include "tao/debug.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
- GUIResource_Factory::GUIResource_Factory (void)
- : dynamically_allocated_reactor_ (0)
+ GUIResource_Factory::GUIResource_Factory ():
+ dynamically_allocated_reactor_ (0)
{
}
- GUIResource_Factory::~GUIResource_Factory (void)
+ GUIResource_Factory::~GUIResource_Factory ()
{
}
@@ -55,5 +53,3 @@ namespace TAO
delete reactor;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/GUIResource_Factory.h b/TAO/tao/GUIResource_Factory.h
index 134f8bfa88a..0d85ab6b2d1 100644
--- a/TAO/tao/GUIResource_Factory.h
+++ b/TAO/tao/GUIResource_Factory.h
@@ -13,25 +13,18 @@
#ifndef TAO_GUI_RESOURCE_FACTORY_H
#define TAO_GUI_RESOURCE_FACTORY_H
-
#include /**/ "ace/pre.h"
-
+#include "ace/Thread_Mutex.h"
#include "tao/TAO_Export.h"
+#include "tao/orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-#include "ace/Thread_Mutex.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+//forwards
class ACE_Reactor_Impl;
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -93,8 +86,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
-#endif /* TAO_GUI_RESOURCE_FACTORY_H */
+#endif /*TAO_GUI_RESOURCE_FACTORY_H*/
diff --git a/TAO/tao/IFR_Client/IFR_Base.pidl b/TAO/tao/IFR_Client/IFR_Base.pidl
index 02ee7037d5f..18cba35abea 100644
--- a/TAO/tao/IFR_Client/IFR_Base.pidl
+++ b/TAO/tao/IFR_Client/IFR_Base.pidl
@@ -19,8 +19,6 @@
* -Wb,export_include=ifr_client_export.h \
* -Wb,pre_include="ace/pre.h" \
* -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
* IFR_Base.pidl
*
* Only the stub files are used in the TAO_IFR_Client library. The
@@ -52,8 +50,8 @@
#ifndef _IFR_BASE_IDL_
#define _IFR_BASE_IDL_
-#include "tao/orb_types.pidl"
-#include "tao/Typecode_types.pidl"
+#include <orb_types.pidl>
+#include <Typecode_types.pidl>
module CORBA
{
diff --git a/TAO/tao/IFR_Client/IFR_BaseC.cpp b/TAO/tao/IFR_Client/IFR_BaseC.cpp
index a684ebb3841..339d9aea34e 100644
--- a/TAO/tao/IFR_Client/IFR_BaseC.cpp
+++ b/TAO/tao/IFR_Client/IFR_BaseC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:293
-#include "tao/IFR_Client/IFR_BaseC.h"
+#include "IFR_BaseC.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/orb_typesA.h"
#include "tao/AnyTypeCode/Typecode_typesA.h"
@@ -60,14 +60,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_BaseC.inl"
+#include "IFR_BaseC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -8612,5 +8610,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.version.out ()) &&
(strm >> _tao_aggregate.type.out ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_BaseC.h b/TAO/tao/IFR_Client/IFR_BaseC.h
index 774ff7f019f..7d7e3171b2b 100644
--- a/TAO/tao/IFR_Client/IFR_BaseC.h
+++ b/TAO/tao/IFR_Client/IFR_BaseC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IFR_Client/ifr_client_export.h"
+#include "ifr_client_export.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Any.h"
@@ -72,8 +72,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -4107,10 +4105,8 @@ TAO_IFR_Client_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::TypeDesc
// TAO_IDL - Generated from
// be\be_codegen.cpp:1136
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_BaseC.inl"
+#include "IFR_BaseC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/IFR_Client/IFR_BaseC.inl b/TAO/tao/IFR_Client/IFR_BaseC.inl
index c7be5ed5427..8b69d04033d 100644
--- a/TAO/tao/IFR_Client/IFR_BaseC.inl
+++ b/TAO/tao/IFR_Client/IFR_BaseC.inl
@@ -29,8 +29,6 @@
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined (_CORBA_IROBJECT___CI_)
#define _CORBA_IROBJECT___CI_
@@ -207,5 +205,3 @@ CORBA::TypedefDef::TypedefDef (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_BaseS.h b/TAO/tao/IFR_Client/IFR_BaseS.h
index 0dd9ad297a6..1fea87667c7 100644
--- a/TAO/tao/IFR_Client/IFR_BaseS.h
+++ b/TAO/tao/IFR_Client/IFR_BaseS.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/IFR_Client/IFR_BaseC.h"
+#include "IFR_BaseC.h"
#include "tao/orb_typesS.h"
#include "tao/Typecode_typesS.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -1250,8 +1248,6 @@ namespace POA_CORBA
} // module CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IFR_Client/IFR_Basic.pidl b/TAO/tao/IFR_Client/IFR_Basic.pidl
index c86b4e3a291..fa156e72b2d 100644
--- a/TAO/tao/IFR_Client/IFR_Basic.pidl
+++ b/TAO/tao/IFR_Client/IFR_Basic.pidl
@@ -18,8 +18,6 @@
* -Wb,export_include=ifr_client_export.h \
* -Wb,pre_include="ace/pre.h" \
* -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
* IFR_Basic.pidl
*
* Only the stub files are used in the TAO_IFR_Client library. The
@@ -51,7 +49,7 @@
#define _IFR_BASIC_IDL_
#include "tao/IFR_Client/IFR_Base.pidl"
-#include "tao/ParameterMode.pidl"
+#include "ParameterMode.pidl"
module CORBA
{
diff --git a/TAO/tao/IFR_Client/IFR_BasicC.cpp b/TAO/tao/IFR_Client/IFR_BasicC.cpp
index 73a0a993997..e9b3916a962 100644
--- a/TAO/tao/IFR_Client/IFR_BasicC.cpp
+++ b/TAO/tao/IFR_Client/IFR_BasicC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:293
-#include "tao/IFR_Client/IFR_BasicC.h"
+#include "IFR_BasicC.h"
#include "tao/CDR.h"
#include "tao/IFR_Client/IFR_BaseC.h"
#include "tao/AnyTypeCode/orb_typesA.h"
@@ -62,14 +62,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_BasicC.inl"
+#include "IFR_BasicC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -13640,5 +13638,3 @@ CORBA::Boolean operator>> (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_BasicC.h b/TAO/tao/IFR_Client/IFR_BasicC.h
index 268be82f290..06488fb9e77 100644
--- a/TAO/tao/IFR_Client/IFR_BasicC.h
+++ b/TAO/tao/IFR_Client/IFR_BasicC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IFR_Client/ifr_client_export.h"
+#include "ifr_client_export.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Any.h"
@@ -72,8 +72,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -5689,10 +5687,8 @@ TAO_IFR_Client_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::ExtLocal
// TAO_IDL - Generated from
// be\be_codegen.cpp:1136
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_BasicC.inl"
+#include "IFR_BasicC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/IFR_Client/IFR_BasicC.inl b/TAO/tao/IFR_Client/IFR_BasicC.inl
index 8f36b619375..6edd2c8a1a9 100644
--- a/TAO/tao/IFR_Client/IFR_BasicC.inl
+++ b/TAO/tao/IFR_Client/IFR_BasicC.inl
@@ -26,8 +26,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
@@ -891,5 +889,3 @@ CORBA::ExtLocalInterfaceDef::ExtLocalInterfaceDef (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp
index 2afc5ef4960..add9f0af0c5 100644
--- a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp
+++ b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/IFR_Client/IFR_Client_Adapter_Impl.h"
-#include "tao/IFR_Client/IFR_BasicC.h"
+#include "IFR_Client_Adapter_Impl.h"
+#include "IFR_ExtendedC.h"
#include "tao/AnyTypeCode/NVList.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
@@ -15,8 +15,6 @@ ACE_RCSID (IFR_Client,
IFR_Client_Adapter_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
template<>
@@ -216,8 +214,6 @@ TAO_IFR_Client_Adapter_Impl::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_IFR_Client_Adapter_Impl);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (
TAO_IFR_Client_Adapter_Impl,
ACE_TEXT ("Concrete_IFR_Client_Adapter"),
diff --git a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h
index e3cfcd6b22d..bab2b9d2cb8 100644
--- a/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h
+++ b/TAO/tao/IFR_Client/IFR_Client_Adapter_Impl.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/IFR_Client/ifr_client_export.h"
+#include "ifr_client_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_IFR_Client_Adapter_Impl
*
@@ -81,15 +79,12 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_IFR_Client_Initializer =
- TAO_IFR_Client_Adapter_Impl::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_IFR_Client_Adapter_Impl)
ACE_FACTORY_DECLARE (TAO_IFR_Client, TAO_IFR_Client_Adapter_Impl)
+static int
+TAO_Requires_IFR_Client_Initializer =
+ TAO_IFR_Client_Adapter_Impl::Initializer ();
#include /**/ "ace/post.h"
diff --git a/TAO/tao/IFR_Client/IFR_Components.pidl b/TAO/tao/IFR_Client/IFR_Components.pidl
index 7aa0102cd97..6bae6d0ebb0 100644
--- a/TAO/tao/IFR_Client/IFR_Components.pidl
+++ b/TAO/tao/IFR_Client/IFR_Components.pidl
@@ -18,8 +18,6 @@
* -Wb,export_include=ifr_client_export.h \
* -Wb,pre_include="ace/pre.h" \
* -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
* IFR_Components.pidl
*
* Only the stub files are used in the TAO_IFR_Client library. The
diff --git a/TAO/tao/IFR_Client/IFR_ComponentsC.cpp b/TAO/tao/IFR_Client/IFR_ComponentsC.cpp
index a6c2ff11eed..eab777756f6 100644
--- a/TAO/tao/IFR_Client/IFR_ComponentsC.cpp
+++ b/TAO/tao/IFR_Client/IFR_ComponentsC.cpp
@@ -30,7 +30,7 @@
#include "tao/AnyTypeCode/orb_typesA.h"
-#include "tao/IFR_Client/IFR_ComponentsC.h"
+#include "IFR_ComponentsC.h"
#include "tao/CDR.h"
#include "tao/IFR_Client/IFR_ExtendedC.h"
#include "tao/Invocation_Adapter.h"
@@ -58,15 +58,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_ComponentsC.inl"
+#include "IFR_ComponentsC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -7402,5 +7399,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.attributes) &&
(strm >> _tao_aggregate.type.out ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_ComponentsC.h b/TAO/tao/IFR_Client/IFR_ComponentsC.h
index f952df4b02e..f2efcd1c0c8 100644
--- a/TAO/tao/IFR_Client/IFR_ComponentsC.h
+++ b/TAO/tao/IFR_Client/IFR_ComponentsC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IFR_Client/ifr_client_export.h"
+#include "ifr_client_export.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/ORB.h"
@@ -69,8 +69,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -3104,10 +3102,8 @@ TAO_IFR_Client_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Componen
// TAO_IDL - Generated from
// be\be_codegen.cpp:1136
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_ComponentsC.inl"
+#include "IFR_ComponentsC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/IFR_Client/IFR_ComponentsC.inl b/TAO/tao/IFR_Client/IFR_ComponentsC.inl
index 58217d7f6d4..63e656401e4 100644
--- a/TAO/tao/IFR_Client/IFR_ComponentsC.inl
+++ b/TAO/tao/IFR_Client/IFR_ComponentsC.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
@@ -530,5 +529,3 @@ CORBA::ComponentIR::HomeDef::HomeDef (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_Extended.pidl b/TAO/tao/IFR_Client/IFR_Extended.pidl
index 54675c6ef72..e0c06ce2c57 100644
--- a/TAO/tao/IFR_Client/IFR_Extended.pidl
+++ b/TAO/tao/IFR_Client/IFR_Extended.pidl
@@ -18,8 +18,6 @@
* -Wb,export_include=ifr_client_export.h \
* -Wb,pre_include="ace/pre.h" \
* -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
* IFR_Extended.pidl
*
* Only the stub files are used in the TAO_IFR_Client library. The
diff --git a/TAO/tao/IFR_Client/IFR_ExtendedC.cpp b/TAO/tao/IFR_Client/IFR_ExtendedC.cpp
index 934ef4659d8..6e6d014a7bd 100644
--- a/TAO/tao/IFR_Client/IFR_ExtendedC.cpp
+++ b/TAO/tao/IFR_Client/IFR_ExtendedC.cpp
@@ -32,7 +32,7 @@
#include "tao/AnyTypeCode/VisibilityA.h"
#include "tao/AnyTypeCode/ValueModifierA.h"
#include "tao/AnyTypeCode/orb_typesA.h"
-#include "tao/IFR_Client/IFR_ExtendedC.h"
+#include "IFR_ExtendedC.h"
#include "tao/CDR.h"
#include "tao/IFR_Client/IFR_BasicC.h"
#include "tao/Invocation_Adapter.h"
@@ -60,14 +60,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_ExtendedC.inl"
+#include "IFR_ExtendedC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -4249,5 +4247,3 @@ CORBA::Boolean operator>> (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client/IFR_ExtendedC.h b/TAO/tao/IFR_Client/IFR_ExtendedC.h
index 45d3c8e1a9b..e432cce0663 100644
--- a/TAO/tao/IFR_Client/IFR_ExtendedC.h
+++ b/TAO/tao/IFR_Client/IFR_ExtendedC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IFR_Client/ifr_client_export.h"
+#include "ifr_client_export.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/ORB.h"
@@ -71,8 +71,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -1553,10 +1551,8 @@ TAO_IFR_Client_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::ValueBox
// TAO_IDL - Generated from
// be\be_codegen.cpp:1136
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/IFR_Client/IFR_ExtendedC.inl"
+#include "IFR_ExtendedC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/IFR_Client/IFR_ExtendedC.inl b/TAO/tao/IFR_Client/IFR_ExtendedC.inl
index ee480033bf6..21c51c95edd 100644
--- a/TAO/tao/IFR_Client/IFR_ExtendedC.inl
+++ b/TAO/tao/IFR_Client/IFR_ExtendedC.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
@@ -206,5 +205,3 @@ CORBA::ValueBoxDef::ValueBoxDef (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IFR_Client_Adapter.cpp b/TAO/tao/IFR_Client_Adapter.cpp
index 77fcadefc4c..5155f7b0b56 100644
--- a/TAO/tao/IFR_Client_Adapter.cpp
+++ b/TAO/tao/IFR_Client_Adapter.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/IFR_Client_Adapter.h"
diff --git a/TAO/tao/IFR_Client_Adapter.h b/TAO/tao/IFR_Client_Adapter.h
index 6bd15379c82..1d3240b853e 100644
--- a/TAO/tao/IFR_Client_Adapter.h
+++ b/TAO/tao/IFR_Client_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -27,8 +27,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_OutputCDR;
namespace CORBA
@@ -98,7 +96,5 @@ public:
#endif /*TAO_HAS_MINIMUM_CORBA*/
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IFR_CLIENT_ADAPTER_H */
diff --git a/TAO/tao/IIOP.pidl b/TAO/tao/IIOP.pidl
index 3508d00b6cf..cd52af48f60 100644
--- a/TAO/tao/IIOP.pidl
+++ b/TAO/tao/IIOP.pidl
@@ -14,8 +14,6 @@
* -Wb,export_include="tao/TAO_Export.h" \
* -Wb,pre_include="ace/pre.h" \
* -Wb,post_include="ace/post.h" \
- * -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- * -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL \
* IIOP.pidl
*
* Remember to patch the generated files using diff/IIOP.diff
diff --git a/TAO/tao/IIOPC.cpp b/TAO/tao/IIOPC.cpp
index 045812848c1..6bb33006503 100644
--- a/TAO/tao/IIOPC.cpp
+++ b/TAO/tao/IIOPC.cpp
@@ -29,11 +29,9 @@
// be\be_codegen.cpp:288
-#include "tao/IIOPC.h"
+#include "IIOPC.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
@@ -237,5 +235,3 @@ CORBA::Boolean operator>> (
return
(strm >> _tao_aggregate.listen_points);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOPC.h b/TAO/tao/IIOPC.h
index 69fd036e067..18133b7e39a 100644
--- a/TAO/tao/IIOPC.h
+++ b/TAO/tao/IIOPC.h
@@ -58,8 +58,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -218,8 +216,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, IIOP::BiDirIIOPServiceCont
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp
index 71ebea0882b..92cf3ae52d5 100644
--- a/TAO/tao/IIOP_Acceptor.cpp
+++ b/TAO/tao/IIOP_Acceptor.cpp
@@ -25,8 +25,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IIOP_Acceptor::TAO_IIOP_Acceptor (CORBA::Boolean flag)
: TAO_Acceptor (IOP::TAG_INTERNET_IOP),
addrs_ (0),
@@ -466,7 +464,7 @@ TAO_IIOP_Acceptor::open (TAO_ORB_Core *orb_core,
ACE_TEXT ("TAO (%P|%t) - ")
ACE_TEXT ("IIOP_Acceptor::open, ")
ACE_TEXT ("Overriding address in IOR with %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->hostname_in_ior_)));
+ ACE_TEXT_TO_TCHAR_IN (this->hostname_in_ior_)));
}
specified_hostname = this->hostname_in_ior_;
}
@@ -556,8 +554,8 @@ TAO_IIOP_Acceptor::open_i (const ACE_INET_Addr& addr,
this->creation_strategy_,
this->accept_strategy_,
this->concurrency_strategy_,
- 0, 0, 0, 1,
- this->reuse_addr_) == -1)
+ 0, 0, 0, 1,
+ this->reuse_addr_) == -1)
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
@@ -592,8 +590,8 @@ TAO_IIOP_Acceptor::open_i (const ACE_INET_Addr& addr,
this->creation_strategy_,
this->accept_strategy_,
this->concurrency_strategy_,
- 0, 0, 0, 1,
- this->reuse_addr_) != -1)
+ 0, 0, 0, 1,
+ this->reuse_addr_) != -1)
{
found_a_port = true;
break;
@@ -675,7 +673,7 @@ TAO_IIOP_Acceptor::open_i (const ACE_INET_Addr& addr,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - IIOP_Acceptor::open_i, ")
ACE_TEXT ("listening on: <%s:%u>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(this->hosts_[i]),
+ ACE_TEXT_TO_TCHAR_IN(this->hosts_[i]),
this->addrs_[i].get_port_number ()));
}
}
@@ -989,7 +987,7 @@ TAO_IIOP_Acceptor::object_key (IOP::TaggedProfile &profile,
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */
CORBA::Octet major;
- CORBA::Octet minor = CORBA::Octet();
+ CORBA::Octet minor;
// Read the version. We just read it here. We don't*do any*
// processing.
@@ -1067,8 +1065,8 @@ TAO_IIOP_Acceptor::parse_options (const char *str)
ACE_CString **argv = 0;
ACE_NEW_RETURN (argv, ACE_CString*[argc],-1);
- ssize_t begin = 0;
- ssize_t end = -1;
+ int begin = 0;
+ int end = -1;
int result = 0;
for (int j = 0; j < argc; ++j)
{
@@ -1077,7 +1075,7 @@ TAO_IIOP_Acceptor::parse_options (const char *str)
if (j < argc - 1)
end = options.find (option_delimiter, begin);
else
- end = static_cast<ssize_t> (len);
+ end = static_cast<CORBA::ULong> (len);
if (end == begin)
{
@@ -1121,14 +1119,14 @@ TAO_IIOP_Acceptor::parse_options_i (int &argc,
while (i < argc)
{
size_t len = argv[i]->length();
- ssize_t slot = argv[i]->find ("=");
+ int slot = argv[i]->find ("=");
- if (slot == static_cast <ssize_t> (len - 1)
+ if (slot == static_cast <int> (len - 1)
|| slot == ACE_CString::npos)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - IIOP option <%s> is ")
ACE_TEXT ("missing a value.\n"),
- ACE_TEXT_CHAR_TO_TCHAR(argv[i]->c_str ())),
+ ACE_TEXT_TO_TCHAR_IN(argv[i]->c_str ())),
-1);
ACE_CString name = argv[i]->substring (0, slot);
@@ -1166,9 +1164,9 @@ TAO_IIOP_Acceptor::parse_options_i (int &argc,
this->hostname_in_ior_ = value.rep ();
}
else if (name == "reuse_addr")
- {
- this->reuse_addr_ = ACE_OS::atoi (value.c_str ());
- }
+ {
+ this->reuse_addr_ = ACE_OS::atoi (value.c_str ());
+ }
else
{
// the name is not known, skip to the next option
@@ -1179,7 +1177,7 @@ TAO_IIOP_Acceptor::parse_options_i (int &argc,
// put this one on the end. This technique has the effect of
// putting them in reverse order, but that doesn't matter, since
// these arguments are only whole strings.
- --argc;
+ argc--;
ACE_CString *temp = argv[i];
for (int j = i; j <= argc-1; j++)
argv[j] = argv[j+1];
@@ -1188,6 +1186,4 @@ TAO_IIOP_Acceptor::parse_options_i (int &argc,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
//@@ TAO_ACCEPTOR_SPL_COPY_HOOK_END
diff --git a/TAO/tao/IIOP_Acceptor.h b/TAO/tao/IIOP_Acceptor.h
index 96103c44a22..8a43ea3cc82 100644
--- a/TAO/tao/IIOP_Acceptor.h
+++ b/TAO/tao/IIOP_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -32,8 +32,6 @@
#include "tao/Acceptor_Impl.h"
#include "tao/GIOP_Message_Version.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_IIOP_Acceptor
*
@@ -242,7 +240,7 @@ protected:
private:
- /// The concrete acceptor, as a pointer to it's base class.
+ /// the concrete acceptor, as a pointer to it's base class.
BASE_ACCEPTOR base_acceptor_;
/// Acceptor strategies.
@@ -253,8 +251,6 @@ private:
//@@ TAO_ACCEPTOR_SPL_DATA_MEMBERS_COPY_HOOK_END
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
#include "tao/IIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/IIOP_Acceptor.i b/TAO/tao/IIOP_Acceptor.i
index baeaba0a476..9aed23e08d2 100644
--- a/TAO/tao/IIOP_Acceptor.i
+++ b/TAO/tao/IIOP_Acceptor.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_INET_Addr&
TAO_IIOP_Acceptor::address (void) const
{
@@ -36,5 +33,3 @@ TAO_IIOP_Acceptor::set_default_address (const ACE_INET_Addr& addr)
{
this->default_address_.set (addr);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Connection_Handler.cpp b/TAO/tao/IIOP_Connection_Handler.cpp
index d74ee12594d..4ed86463f96 100644
--- a/TAO/tao/IIOP_Connection_Handler.cpp
+++ b/TAO/tao/IIOP_Connection_Handler.cpp
@@ -1,13 +1,13 @@
-#include "tao/IIOP_Connection_Handler.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
-#include "tao/IIOP_Transport.h"
-#include "tao/IIOP_Endpoint.h"
-#include "tao/IIOPC.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Base_Transport_Property.h"
-#include "tao/Protocols_Hooks.h"
-#include "tao/Wait_Strategy.h"
+#include "IIOP_Connection_Handler.h"
+#include "debug.h"
+#include "ORB_Core.h"
+#include "IIOP_Transport.h"
+#include "IIOP_Endpoint.h"
+#include "IIOPC.h"
+#include "Thread_Lane_Resources.h"
+#include "Base_Transport_Property.h"
+#include "Protocols_Hooks.h"
+#include "Wait_Strategy.h"
#include "ace/os_include/netinet/os_tcp.h"
#include "ace/os_include/os_netdb.h"
@@ -16,8 +16,6 @@ ACE_RCSID (tao,
IIOP_Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler (ACE_Thread_Manager *t)
: TAO_IIOP_SVC_HANDLER (t, 0 , 0),
TAO_Connection_Handler (0),
@@ -84,8 +82,6 @@ TAO_IIOP_Connection_Handler::open (void*)
this->orb_core ()->orb_params ()->sock_rcvbuf_size ();
protocol_properties.no_delay_ =
this->orb_core ()->orb_params ()->nodelay ();
- protocol_properties.keep_alive_ =
- this->orb_core ()->orb_params ()->sock_keepalive ();
TAO_Protocols_Hooks *tph =
this->orb_core ()->get_protocols_hooks ();
@@ -132,19 +128,6 @@ TAO_IIOP_Connection_Handler::open (void*)
return -1;
#endif /* ! ACE_LACKS_TCP_NODELAY */
- if (protocol_properties.keep_alive_)
- {
- if (this->peer ().
- set_option (SOL_SOCKET,
- SO_KEEPALIVE,
- (void *) &protocol_properties.keep_alive_,
- sizeof (protocol_properties.keep_alive_)) == -1
- && errno != ENOTSUP)
- {
- return -1;
- }
- }
-
if (this->transport ()->wait_strategy ()->non_blocking ()
|| this->transport ()->opened_as () == TAO::TAO_SERVER_ROLE)
{
@@ -253,7 +236,7 @@ TAO_IIOP_Connection_Handler::close_connection (void)
{
struct linger lval;
lval.l_onoff = 1;
- lval.l_linger = (u_short)linger;
+ lval.l_linger = linger;
if (this->peer ().set_option(SOL_SOCKET,
SO_LINGER,
@@ -377,7 +360,7 @@ TAO_IIOP_Connection_Handler::process_listen_point_list (
ACE_TEXT("process_listen_point_list, ")
ACE_TEXT("Listening port [%d] on [%s]\n"),
listen_point.port,
- ACE_TEXT_CHAR_TO_TCHAR(listen_point.host.in ())));
+ ACE_TEXT_TO_TCHAR_IN(listen_point.host.in ())));
}
// Construct an IIOP_Endpoint object using the host as provided
@@ -421,7 +404,7 @@ TAO_IIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio
CORBA::Long codepoint =
tph->get_dscp_codepoint ();
- tos = static_cast<int> (codepoint) << 2;
+ tos = (int)(codepoint) << 2;
}
if (tos != this->dscp_codepoint_)
@@ -479,5 +462,3 @@ TAO_IIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio
/*
* End copy hook
*/
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Connection_Handler.h b/TAO/tao/IIOP_Connection_Handler.h
index bbcceb032dc..5654472ea3e 100644
--- a/TAO/tao/IIOP_Connection_Handler.h
+++ b/TAO/tao/IIOP_Connection_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -7,7 +7,7 @@
* $Id$
*
* @author Originally by Chris Cleeland as IIOP_Connect.h
- * @author Balachandran Natarajan <bala@cs.wustl.edu>
+ * @author modified by Balachandran Natarajan <bala@cs.wustl.edu>
*/
// ===================================================================
@@ -27,8 +27,6 @@
#include "tao/Connection_Handler.h"
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Service Handler for this transport
typedef ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
TAO_IIOP_SVC_HANDLER;
@@ -131,7 +129,5 @@ private:
int dscp_codepoint_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IIOP_CONNECTION_HANDLER_H */
diff --git a/TAO/tao/IIOP_Connector.cpp b/TAO/tao/IIOP_Connector.cpp
index 802cdc97241..05e60c4f400 100644
--- a/TAO/tao/IIOP_Connector.cpp
+++ b/TAO/tao/IIOP_Connector.cpp
@@ -1,15 +1,15 @@
-#include "tao/IIOP_Connector.h"
-#include "tao/IIOP_Profile.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
-#include "tao/Environment.h"
-#include "tao/Protocols_Hooks.h"
-#include "tao/Connect_Strategy.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/Transport.h"
-#include "tao/Wait_Strategy.h"
-#include "tao/SystemException.h"
+#include "IIOP_Connector.h"
+#include "IIOP_Profile.h"
+#include "debug.h"
+#include "ORB_Core.h"
+#include "Environment.h"
+#include "Protocols_Hooks.h"
+#include "Connect_Strategy.h"
+#include "Thread_Lane_Resources.h"
+#include "Profile_Transport_Resolver.h"
+#include "Transport.h"
+#include "Wait_Strategy.h"
+#include "SystemException.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_string.h"
@@ -18,8 +18,6 @@ ACE_RCSID (tao,
IIOP_Connector,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IIOP_Connector::~TAO_IIOP_Connector (void)
{
}
@@ -146,7 +144,7 @@ TAO_IIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *r,
ACE_DEBUG ((LM_DEBUG,
"TAO (%P|%t) - IIOP_Connector::make_connection, "
"to <%s:%d> which should %s\n",
- ACE_TEXT_CHAR_TO_TCHAR(iiop_endpoint->host()),
+ ACE_TEXT_TO_TCHAR_IN(iiop_endpoint->host()),
iiop_endpoint->port(),
r->blocked_connect () ? ACE_TEXT("block") : ACE_TEXT("nonblock")));
@@ -398,5 +396,3 @@ TAO_IIOP_Connector::cancel_svc_handler (
return -1;
}
//@@ TAO_CONNECTOR_SPL_COPY_HOOK_END
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Connector.h b/TAO/tao/IIOP_Connector.h
index ce75430c44f..cb57818fa1b 100644
--- a/TAO/tao/IIOP_Connector.h
+++ b/TAO/tao/IIOP_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -25,16 +25,15 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/Connector.h"
+
#include "tao/Transport_Connector.h"
#include "tao/Connector_Impl.h"
#include "tao/IIOP_Connection_Handler.h"
-#include "ace/Connector.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IIOP_Endpoint;
+
// ****************************************************************
/**
@@ -130,7 +129,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_IIOP_CONNECTOR_H */
diff --git a/TAO/tao/IIOP_Endpoint.cpp b/TAO/tao/IIOP_Endpoint.cpp
index 5f5600ba676..bec2bb60242 100644
--- a/TAO/tao/IIOP_Endpoint.cpp
+++ b/TAO/tao/IIOP_Endpoint.cpp
@@ -4,10 +4,10 @@
*/
//@@ TAO_ENDPOINT_SPL_COPY_HOOK_START
-#include "tao/IIOP_Endpoint.h"
-#include "tao/IOP_IORC.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
+#include "IIOP_Endpoint.h"
+#include "IOP_IORC.h"
+#include "debug.h"
+#include "ORB_Core.h"
#include "ace/Log_Msg.h"
#include "ace/Guard_T.h"
@@ -32,8 +32,6 @@ ACE_RCSID (tao,
//@@ TAO_ENDPOINT_SPL_COPY_HOOK_END
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
//@@ TAO_ENDPOINT_SPL_COPY_HOOK_START
TAO_IIOP_Endpoint::TAO_IIOP_Endpoint (const ACE_INET_Addr &addr,
int use_dotted_decimal_addresses)
@@ -514,5 +512,3 @@ TAO_IIOP_Endpoint::preferred_network (void) const
}
//@@ TAO_ENDPOINT_SPL_COPY_HOOK_END
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Endpoint.h b/TAO/tao/IIOP_Endpoint.h
index 4c8c1bfd218..0ce97db063b 100644
--- a/TAO/tao/IIOP_Endpoint.h
+++ b/TAO/tao/IIOP_Endpoint.h
@@ -16,20 +16,16 @@
#define TAO_IIOP_ENDPOINT_H
#include /**/ "ace/pre.h"
-
-#include "tao/Endpoint.h"
+#include "ace/INET_Addr.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/Endpoint.h"
#include "tao/CORBA_String.h"
#include "tao/IIOP_EndpointsC.h"
-#include "ace/INET_Addr.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IIOP_Connection_Handler;
/**
@@ -192,7 +188,6 @@ private:
//@@ TAO_ENDPOINT_SPL_PRIVATE_DATA_COPY_HOOK_END
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/IIOP_Endpoint.i"
diff --git a/TAO/tao/IIOP_Endpoint.i b/TAO/tao/IIOP_Endpoint.i
index e576613fdcd..fa83957822d 100644
--- a/TAO/tao/IIOP_Endpoint.i
+++ b/TAO/tao/IIOP_Endpoint.i
@@ -2,7 +2,7 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
ACE_INLINE const char *
TAO_IIOP_Endpoint::host (void) const
@@ -29,5 +29,3 @@ TAO_IIOP_Endpoint::is_ipv6_decimal (void) const
return this->is_ipv6_decimal_;
}
#endif /* ACE_HAS_IPV6 */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_EndpointsC.cpp b/TAO/tao/IIOP_EndpointsC.cpp
index 8d233088ee4..819ea3f62b6 100644
--- a/TAO/tao/IIOP_EndpointsC.cpp
+++ b/TAO/tao/IIOP_EndpointsC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/IIOP_EndpointsC.h"
+#include "IIOP_EndpointsC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -209,5 +207,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_TAO_IIOPEndpointSequence_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_EndpointsC.h b/TAO/tao/IIOP_EndpointsC.h
index 6abf0ddb7e4..2b780ea4150 100644
--- a/TAO/tao/IIOP_EndpointsC.h
+++ b/TAO/tao/IIOP_EndpointsC.h
@@ -65,8 +65,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -188,8 +186,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IIOP_Factory.cpp b/TAO/tao/IIOP_Factory.cpp
index 041377b6051..852fde2c935 100644
--- a/TAO/tao/IIOP_Factory.cpp
+++ b/TAO/tao/IIOP_Factory.cpp
@@ -1,7 +1,7 @@
-#include "tao/IIOP_Factory.h"
-#include "tao/IIOP_Acceptor.h"
-#include "tao/IIOP_Connector.h"
-#include "tao/IOP_IORC.h"
+#include "IIOP_Factory.h"
+#include "IIOP_Acceptor.h"
+#include "IIOP_Connector.h"
+#include "IOP_IORC.h"
#include "ace/OS_NS_strings.h"
@@ -11,9 +11,7 @@ ACE_RCSID (tao,
"$Id$")
-static const char the_prefix[] = "iiop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "iiop";
TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory (void)
: TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP),
@@ -30,13 +28,13 @@ int
TAO_IIOP_Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
// Check for the proper prefix for this protocol.
- return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
+ return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0);
}
const char *
TAO_IIOP_Protocol_Factory::prefix (void) const
{
- return ::the_prefix;
+ return ::prefix_;
}
char
@@ -81,8 +79,6 @@ TAO_IIOP_Protocol_Factory::requires_explicit_endpoint (void) const
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_IIOP_Protocol_Factory,
ACE_TEXT ("IIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/IIOP_Factory.h b/TAO/tao/IIOP_Factory.h
index d7302fd08c3..66bd50adfab 100644
--- a/TAO/tao/IIOP_Factory.h
+++ b/TAO/tao/IIOP_Factory.h
@@ -23,8 +23,6 @@
#include "tao/Protocol_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
@@ -56,12 +54,10 @@ public:
private:
/// Changing the version number can be used to provide backwards
/// compatibility with old clients.
- int const major_;
- int const minor_;
+ int major_;
+ int minor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_IIOP_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_IIOP_Protocol_Factory)
diff --git a/TAO/tao/IIOP_Lite_Factory.cpp b/TAO/tao/IIOP_Lite_Factory.cpp
index 6e64599620f..0790993aeeb 100644
--- a/TAO/tao/IIOP_Lite_Factory.cpp
+++ b/TAO/tao/IIOP_Lite_Factory.cpp
@@ -1,7 +1,7 @@
-#include "tao/IIOP_Lite_Factory.h"
-#include "tao/IIOP_Acceptor.h"
-#include "tao/IIOP_Connector.h"
-#include "tao/IOP_IORC.h"
+#include "IIOP_Lite_Factory.h"
+#include "IIOP_Acceptor.h"
+#include "IIOP_Connector.h"
+#include "IOP_IORC.h"
#include "ace/OS_NS_strings.h"
@@ -11,9 +11,7 @@ ACE_RCSID (tao,
"$Id$")
-static const char the_prefix[] = "iiop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "iiop";
TAO_IIOP_Lite_Protocol_Factory::TAO_IIOP_Lite_Protocol_Factory (void)
: TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP),
@@ -31,13 +29,13 @@ int
TAO_IIOP_Lite_Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
// Check for the proper prefix for this protocol.
- return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
+ return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0);
}
const char *
TAO_IIOP_Lite_Protocol_Factory::prefix (void) const
{
- return ::the_prefix;
+ return ::prefix_;
}
char
@@ -87,8 +85,6 @@ TAO_IIOP_Lite_Protocol_Factory::requires_explicit_endpoint (void) const
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_IIOP_Lite_Protocol_Factory,
ACE_TEXT ("IIOP_Lite_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/IIOP_Lite_Factory.h b/TAO/tao/IIOP_Lite_Factory.h
index c1f7cc876dd..fe4e1026abe 100644
--- a/TAO/tao/IIOP_Lite_Factory.h
+++ b/TAO/tao/IIOP_Lite_Factory.h
@@ -23,8 +23,6 @@
#include "tao/Protocol_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
@@ -58,12 +56,10 @@ public:
private:
/// Changing the version number can be used to provide backwards
/// compatibility with old clients.
- int const major_;
- int const minor_;
+ int major_;
+ int minor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_IIOP_Lite_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_IIOP_Lite_Protocol_Factory)
diff --git a/TAO/tao/IIOP_Profile.cpp b/TAO/tao/IIOP_Profile.cpp
index 2fe913d2108..d1474d2499b 100644
--- a/TAO/tao/IIOP_Profile.cpp
+++ b/TAO/tao/IIOP_Profile.cpp
@@ -15,16 +15,12 @@ ACE_RCSID (tao,
#include "ace/os_include/os_netdb.h"
-static const char the_prefix[] = "iiop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IIOP_Profile::~TAO_IIOP_Profile (void)
{
// Clean up the list of endpoints since we own it.
// Skip the head, since it is not dynamically allocated.
TAO_Endpoint *tmp = 0;
-
+
for (TAO_Endpoint *next = this->endpoint ()->next ();
next != 0;
next = tmp)
@@ -36,6 +32,8 @@ TAO_IIOP_Profile::~TAO_IIOP_Profile (void)
//@@ TAO_PROFILE_SPL_COPY_HOOK_START
+static const char prefix_[] = "iiop";
+
const char TAO_IIOP_Profile::object_key_delimiter_ = '/';
char
@@ -372,85 +370,64 @@ TAO_IIOP_Profile::add_endpoint (TAO_IIOP_Endpoint *endp)
char *
TAO_IIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
- // corbaloc:iiop:1.2@host:port,iiop:1.2@host:port,.../key
-
CORBA::String_var key;
TAO::ObjectKey::encode_sequence_to_string (key.inout(),
this->ref_object_key_->object_key ());
- size_t buflen = (
- 8 /* "corbaloc" */ +
- 1 /* colon separator */ +
- 1 /* object key separator */ +
- ACE_OS::strlen (key.in ()));
- size_t pfx_len = (
- ACE_OS::strlen (::the_prefix) /* "iiop" */ +
- 1 /* colon separator */);
-
- const TAO_IIOP_Endpoint *endp = 0;
- for (endp = &this->endpoint_; endp != 0; endp = endp->next_)
- {
- buflen += (
- pfx_len +
- 1 /* major version */ +
- 1 /* decimal point */ +
- 1 /* minor version */ +
- 1 /* `@' character */ +
- ACE_OS::strlen (endp->host ()) +
- 1 /* colon separator */ +
- 5 /* port number */ +
- 1 /* comma */);
+ size_t buflen = (8 /* "corbaloc" */ +
+ 1 /* colon separator */ +
+ ACE_OS::strlen (::prefix_) +
+ 1 /* colon separator */ +
+ 1 /* major version */ +
+ 1 /* decimal point */ +
+ 1 /* minor version */ +
+ 1 /* `@' character */ +
+ ACE_OS::strlen (this->endpoint_.host ()) +
+ 1 /* colon separator */ +
+ 5 /* port number */ +
+ 1 /* object key separator */ +
+ ACE_OS::strlen (key.in ()));
#if defined (ACE_HAS_IPV6)
- if (endp->is_ipv6_decimal_)
- buflen += 2; // room for '[' and ']'
+ if (this->endpoint_.is_ipv6_decimal_)
+ buflen += 2; // room for '[' and ']'
#endif /* ACE_HAS_IPV6 */
- }
-
- static const char digits [] = "0123456789";
char * buf = CORBA::string_alloc (static_cast<CORBA::ULong> (buflen));
- ACE_OS::strcpy(buf, "corbaloc:");
-
- for (endp = &this->endpoint_; endp != 0; endp = endp->next_)
- {
- if(&this->endpoint_ != endp)
- ACE_OS::strcat(buf, ",");
+ static const char digits [] = "0123456789";
#if defined (ACE_HAS_IPV6)
- if (endp->is_ipv6_decimal_)
+ if (this->endpoint_.is_ipv6_decimal_)
+ {
+ // Don't publish scopeid if included.
+ ACE_CString tmp(this->endpoint_.host ());
+ ssize_t pos = tmp.find('%');
+ if (pos != ACE_CString::npos)
{
- // Don't publish scopeid if included.
- ACE_CString tmp(endp->host ());
- ssize_t pos = tmp.find('%');
- if (pos != ACE_CString::npos)
- {
- tmp = tmp.substr(0, pos + 1);
- tmp[pos] = '\0';
- }
- ACE_OS::sprintf (buf + ACE_OS::strlen(buf),
- "%s:%c.%c@[%s]:%d",
- ::the_prefix,
- digits [this->version_.major],
- digits [this->version_.minor],
- tmp.c_str (),
- endp->port () );
+ tmp = tmp.substr(0, pos + 1);
+ tmp[pos] = '\0';
}
- else
-#endif
- ACE_OS::sprintf (buf + ACE_OS::strlen(buf),
- "%s:%c.%c@%s:%d",
- ::the_prefix,
- digits [this->version_.major],
- digits [this->version_.minor],
- endp->host (),
- endp->port () );
-
- }
- ACE_OS::sprintf (buf + ACE_OS::strlen(buf),
- "%c%s",
- this->object_key_delimiter_,
- key.in ());
+ ACE_OS::sprintf (buf,
+ "corbaloc:%s:%c.%c@[%s]:%d%c%s",
+ ::prefix_,
+ digits [this->version_.major],
+ digits [this->version_.minor],
+ tmp.c_str (),
+ this->endpoint_.port (),
+ this->object_key_delimiter_,
+ key.in ());
+ }
+ else
+#endif /* ACE_HAS_IPV6 */
+ ACE_OS::sprintf (buf,
+ "corbaloc:%s:%c.%c@%s:%d%c%s",
+ ::prefix_,
+ digits [this->version_.major],
+ digits [this->version_.minor],
+ this->endpoint_.host (),
+ this->endpoint_.port (),
+ this->object_key_delimiter_,
+ key.in ());
return buf;
}
@@ -458,7 +435,7 @@ TAO_IIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
const char *
TAO_IIOP_Profile::prefix (void)
{
- return ::the_prefix;
+ return ::prefix_;
}
void
@@ -550,7 +527,7 @@ TAO_IIOP_Profile::encode_alternate_endpoints (void)
else
#endif /* ACE_HAS_IPV6 */
if ((out_cdr << ACE_OutputCDR::from_boolean (TAO_ENCAP_BYTE_ORDER) == 0)
- || (out_cdr << endpoint->host () == 0)
+ || (out_cdr << endpoint->host () == 0)
|| (out_cdr << endpoint->port () == 0))
return -1;
@@ -564,7 +541,7 @@ TAO_IIOP_Profile::encode_alternate_endpoints (void)
tagged_component.component_data.get_buffer ();
for (const ACE_Message_Block *iterator = out_cdr.begin ();
- iterator != 0;
+ iterator != 0;
iterator = iterator->cont ())
{
size_t i_length = iterator->length ();
@@ -746,5 +723,3 @@ TAO_IIOP_Profile::decode_endpoints (void)
return 0;
}
//@@ TAO_PROFILE_SPL_COPY_HOOK_END
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Profile.h b/TAO/tao/IIOP_Profile.h
index a7d52bbc467..b48f9e96063 100644
--- a/TAO/tao/IIOP_Profile.h
+++ b/TAO/tao/IIOP_Profile.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
+
//=============================================================================
/**
@@ -6,7 +7,8 @@
*
* $Id$
*
- * IIOP profile specific processing.
+ * IIOP profile specific processing
+ *
*
* @author Fred Kuhns <fredk@cs.wustl.edu>
*/
@@ -26,8 +28,6 @@
#include "tao/IIOP_Endpoint.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO IIOP_Profile concrete Profile definitions
/**
* @class TAO_IIOP_Profile
@@ -169,8 +169,5 @@ protected:
//@@ TAO_PROFILE_SPL_PRIVATE_DATA_COPY_HOOK_END
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_IIOP_PROFILE_H */
diff --git a/TAO/tao/IIOP_Transport.cpp b/TAO/tao/IIOP_Transport.cpp
index 6719491a92d..7eb3da409a5 100644
--- a/TAO/tao/IIOP_Transport.cpp
+++ b/TAO/tao/IIOP_Transport.cpp
@@ -1,22 +1,20 @@
-#include "tao/IIOP_Transport.h"
-#include "tao/IIOP_Acceptor.h"
-#include "tao/IIOPC.h"
-#include "tao/Acceptor_Registry.h"
-#include "tao/operation_details.h"
-#include "tao/Wait_Strategy.h"
-#include "tao/debug.h"
-#include "tao/GIOP_Message_Base.h"
-#include "tao/Protocols_Hooks.h"
-#include "tao/ORB_Core.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Transport_Mux_Strategy.h"
+#include "IIOP_Transport.h"
+#include "IIOP_Acceptor.h"
+#include "IIOPC.h"
+#include "Acceptor_Registry.h"
+#include "operation_details.h"
+#include "Wait_Strategy.h"
+#include "debug.h"
+#include "GIOP_Message_Base.h"
+#include "Protocols_Hooks.h"
+#include "ORB_Core.h"
+#include "Thread_Lane_Resources.h"
+#include "Transport_Mux_Strategy.h"
ACE_RCSID (tao,
IIOP_Transport,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IIOP_Transport::TAO_IIOP_Transport (TAO_IIOP_Connection_Handler *handler,
TAO_ORB_Core *orb_core,
CORBA::Boolean )
@@ -103,7 +101,7 @@ TAO_IIOP_Transport::recv (char *buf,
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - IIOP_Transport[%d]::recv, ")
+ ACE_TEXT ("TAO (%P|%t) - IIOP_Transport[%d]::recv_i, ")
ACE_TEXT ("read failure - %m\n"),
this->id ()));
}
@@ -364,8 +362,8 @@ TAO_IIOP_Transport::get_listen_point (
// Get the hostname for the local address
if (iiop_acceptor->hostname (this->orb_core_,
- local_addr,
- local_interface.out ()) == -1)
+ local_addr,
+ local_interface.out ()) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - IIOP_Transport::get_listen_point, ")
@@ -375,7 +373,7 @@ TAO_IIOP_Transport::get_listen_point (
#if defined (ACE_HAS_IPV6)
// If this is an IPv6 decimal linklocal address containing a scopeid than
// remove the scopeid from the information being sent.
- const char *cp_scope = 0;
+ const char *cp_scope;
if (local_addr.get_type () == PF_INET6 &&
(cp_scope = ACE_OS::strchr (local_interface.in (), '%')) != 0)
{
@@ -408,8 +406,7 @@ TAO_IIOP_Transport::get_listen_point (
if (TAO_debug_level >= 5)
{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("TAO (%P|%t) - Listen_Point_List[%d] = <%s:%d>\n"),
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT("TAO (%P:%t) Listen_Point_List[%d] = <%s:%d>"),
len,
point.host.in (),
point.port));
@@ -424,5 +421,3 @@ TAO_IIOP_Transport::get_listen_point (
/*
* End of copy hook.
*/
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IIOP_Transport.h b/TAO/tao/IIOP_Transport.h
index 2e094054834..5bbebdd5ae9 100644
--- a/TAO/tao/IIOP_Transport.h
+++ b/TAO/tao/IIOP_Transport.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace IIOP
{
class ListenPointList;
@@ -147,8 +145,6 @@ private:
TAO_Pluggable_Messaging *messaging_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IIOP_TRANSPORT_H */
diff --git a/TAO/tao/IOP.pidl b/TAO/tao/IOP.pidl
index 90ed9c8b7f4..b91c64d66af 100644
--- a/TAO/tao/IOP.pidl
+++ b/TAO/tao/IOP.pidl
@@ -28,6 +28,6 @@
#ifndef TAO_IOP_PIDL
#define TAO_IOP_PIDL
-#include "tao/IOP_IOR.pidl"
+#include "IOP_IOR.pidl"
#endif /* TAO_IOP_PIDL */
diff --git a/TAO/tao/IOPC.cpp b/TAO/tao/IOPC.cpp
index 24da4f71609..b5108933284 100644
--- a/TAO/tao/IOPC.cpp
+++ b/TAO/tao/IOPC.cpp
@@ -29,18 +29,14 @@
// be\be_codegen.cpp:288
-#include "tao/IOPC.h"
+#include "IOPC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IOPC.h b/TAO/tao/IOPC.h
index aa18c7b441b..e0bbb0a432a 100644
--- a/TAO/tao/IOPC.h
+++ b/TAO/tao/IOPC.h
@@ -56,8 +56,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_traits.cpp:61
@@ -69,8 +67,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IOP_IOR.pidl b/TAO/tao/IOP_IOR.pidl
index ab73e10ff0c..0901cc8e2fe 100644
--- a/TAO/tao/IOP_IOR.pidl
+++ b/TAO/tao/IOP_IOR.pidl
@@ -26,7 +26,7 @@
#ifndef TAO_IOP_IOR_PIDL
#define TAO_IOP_IOR_PIDL
-#include "tao/OctetSeq.pidl"
+#include <OctetSeq.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/IOP_IORC.cpp b/TAO/tao/IOP_IORC.cpp
index 45323b2f40c..0dcb0c1062d 100644
--- a/TAO/tao/IOP_IORC.cpp
+++ b/TAO/tao/IOP_IORC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:288
-#include "tao/IOP_IORC.h"
+#include "IOP_IORC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -812,5 +810,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_IOP_ServiceContextList_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IOP_IORC.h b/TAO/tao/IOP_IORC.h
index c0f8910c5e8..4bf5d87e8d1 100644
--- a/TAO/tao/IOP_IORC.h
+++ b/TAO/tao/IOP_IORC.h
@@ -60,8 +60,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -726,8 +724,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IORInterceptor/IORInfo.cpp b/TAO/tao/IORInterceptor/IORInfo.cpp
index 8c9f231166f..ca0a10a1038 100644
--- a/TAO/tao/IORInterceptor/IORInfo.cpp
+++ b/TAO/tao/IORInterceptor/IORInfo.cpp
@@ -1,4 +1,4 @@
-#include "tao/IORInterceptor/IORInfo.h"
+#include "IORInfo.h"
#include "tao/PortableServer/Root_POA.h"
#include "tao/PolicyC.h"
@@ -11,14 +11,13 @@ ACE_RCSID (IORInterceptor,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "tao/IORInterceptor/IORInfo.inl"
+# include "IORInfo.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_IORInfo::TAO_IORInfo (TAO_Root_POA *poa)
: poa_ (poa),
- components_established_ (false)
+ components_established_ (0)
{
}
@@ -191,5 +190,3 @@ TAO_IORInfo::check_validity (ACE_ENV_SINGLE_ARG_DECL)
CORBA::COMPLETED_NO));
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor/IORInfo.h b/TAO/tao/IORInterceptor/IORInfo.h
index d0314b30f7e..c377ff1c994 100644
--- a/TAO/tao/IORInterceptor/IORInfo.h
+++ b/TAO/tao/IORInterceptor/IORInfo.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/IORInterceptor/IORInfoC.h"
+#include "IORInfoC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,11 +31,10 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_Root_POA;
+
/**
* @class TAO_IORInfo
*
@@ -113,7 +112,7 @@ public:
/// IORInterceptor::components_established() interception point has
/// been called.
/**
- * This method is used to inform the IORInfo object when the
+ * This method is used so to inform the IORInfo when the
* add_ior_component() and add_ior_component_to_profile() methods
* are invalid. They are only valid in the
* IORInterceptor::establish_components() interception point.
@@ -138,13 +137,14 @@ private:
/// Prevent copying through the copy constructor and the assignment
/// operator.
- TAO_IORInfo (const TAO_IORInfo &);
- void operator= (const TAO_IORInfo &);
+ ACE_UNIMPLEMENTED_FUNC (
+ TAO_IORInfo (const TAO_IORInfo &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_IORInfo &))
private:
/// Pointer to POA
- TAO_Root_POA * poa_;
+ TAO_Root_POA *poa_;
/// True if the IORInterceptor::components_established()
/// interception point was called. False otherwise.
@@ -158,10 +158,8 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/IORInterceptor/IORInfo.inl"
+# include "IORInfo.inl"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/tao/IORInterceptor/IORInfo.inl b/TAO/tao/IORInterceptor/IORInfo.inl
index dfb66194baf..3a94b482656 100644
--- a/TAO/tao/IORInterceptor/IORInfo.inl
+++ b/TAO/tao/IORInterceptor/IORInfo.inl
@@ -2,9 +2,6 @@
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_IORInfo::invalidate (void)
{
@@ -14,7 +11,5 @@ TAO_IORInfo::invalidate (void)
ACE_INLINE void
TAO_IORInfo::components_established (void)
{
- this->components_established_ = true;
+ this->components_established_ = 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor/IORInfo.pidl b/TAO/tao/IORInterceptor/IORInfo.pidl
index 4d192e058a7..33bd2b8f705 100644
--- a/TAO/tao/IORInterceptor/IORInfo.pidl
+++ b/TAO/tao/IORInterceptor/IORInfo.pidl
@@ -20,7 +20,7 @@
* The command used to generate code is:
*
* tao_idl
- * -o orig -Gp -SS -Gd -Ge 1 -Sa -St -Sc -Sci
+ * -o orig -Gp -Gd -Ge 1 -Sa -St -Sc -Sci
* -I$(TAO_ROOT)
* -Wb,export_macro=TAO_IORInterceptor_Export
* -Wb,export_include="iorinterceptor_export.h"
@@ -34,8 +34,6 @@
#define _IORINFO_IDL_
#include "tao/PortableInterceptor.pidl"
-#include "tao/Policy_Forward.pidl"
-#include "tao/IOP_IOR.pidl"
#include "tao/ObjRefTemplate/ObjectReferenceTemplate_include.pidl"
module PortableInterceptor
diff --git a/TAO/tao/IORInterceptor/IORInfoC.cpp b/TAO/tao/IORInterceptor/IORInfoC.cpp
index 877d38025ea..e20c34af88b 100644
--- a/TAO/tao/IORInterceptor/IORInfoC.cpp
+++ b/TAO/tao/IORInterceptor/IORInfoC.cpp
@@ -26,26 +26,28 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/IORInterceptor/IORInfoC.h"
+#include "IORInfoC.h"
#include "tao/CDR.h"
#include "tao/Object_Argument_T.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_OBJECTREFERENCEFACTORY__ARG_TRAITS_)
-#define _PORTABLEINTERCEPTOR_OBJECTREFERENCEFACTORY__ARG_TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_OBJECTREFERENCEFACTORY__ARG_TRAITS_CS_)
+#define _PORTABLEINTERCEPTOR_OBJECTREFERENCEFACTORY__ARG_TRAITS_CS_
+
template<>
class Arg_Traits<PortableInterceptor::ObjectReferenceFactory>
: public
@@ -54,7 +56,7 @@ namespace TAO
PortableInterceptor::ObjectReferenceFactory_var,
PortableInterceptor::ObjectReferenceFactory_out,
TAO::Value_Traits<PortableInterceptor::ObjectReferenceFactory>,
- TAO::Any_Insert_Policy_Noop <PortableInterceptor::ObjectReferenceFactory*>
+ TAO::Any_Insert_Policy_Stream <PortableInterceptor::ObjectReferenceFactory *>
>
{
};
@@ -90,13 +92,13 @@ TAO::Objref_Traits<PortableInterceptor::IORInfo>::nil (void)
return PortableInterceptor::IORInfo::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::IORInfo>::marshal (
PortableInterceptor::IORInfo_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::IORInfo::IORInfo (void)
@@ -107,7 +109,7 @@ PortableInterceptor::IORInfo::~IORInfo (void)
PortableInterceptor::IORInfo_ptr
PortableInterceptor::IORInfo::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -118,7 +120,7 @@ PortableInterceptor::IORInfo::_narrow (
PortableInterceptor::IORInfo_ptr
PortableInterceptor::IORInfo::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -134,7 +136,7 @@ PortableInterceptor::IORInfo::_duplicate (IORInfo_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
@@ -144,7 +146,7 @@ PortableInterceptor::IORInfo::_tao_release (IORInfo_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::IORInfo::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -178,10 +180,8 @@ const char* PortableInterceptor::IORInfo::_interface_repository_id (void) const
return "IDL:omg.org/PortableInterceptor/IORInfo:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::IORInfo::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor/IORInfoC.h b/TAO/tao/IORInterceptor/IORInfoC.h
index 80b0ab75f1d..64b2ba035cc 100644
--- a/TAO/tao/IORInterceptor/IORInfoC.h
+++ b/TAO/tao/IORInterceptor/IORInfoC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_IORINFOC_H_
-#define _TAO_IDL_IORINFOC_H_
+#ifndef _TAO_IDL_ORIG_IORINFOC_H_
+#define _TAO_IDL_ORIG_IORINFOC_H_
#include /**/ "ace/pre.h"
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IORInterceptor/iorinterceptor_export.h"
+#include "iorinterceptor_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -48,8 +48,6 @@
#include "tao/Objref_VarOut_T.h"
#include "tao/PortableInterceptorC.h"
-#include "tao/Policy_ForwardC.h"
-#include "tao/IOP_IORC.h"
#include "tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h"
#if defined (TAO_EXPORT_MACRO)
@@ -57,16 +55,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_IORInterceptor_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_IORINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_IORINFO__VAR_OUT_CH_
@@ -95,7 +100,7 @@ namespace PortableInterceptor
#define _PORTABLEINTERCEPTOR_IORINFO_CH_
class TAO_IORInterceptor_Export IORInfo
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef IORInfo_ptr _ptr_type;
@@ -107,12 +112,12 @@ namespace PortableInterceptor
static void _tao_release (IORInfo_ptr obj);
static IORInfo_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static IORInfo_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -131,7 +136,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -142,7 +147,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -154,27 +159,27 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
- virtual ::PortableInterceptor::AdapterManagerId manager_id (
+ virtual PortableInterceptor::AdapterManagerId manager_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
- virtual ::PortableInterceptor::AdapterState state (
+ virtual PortableInterceptor::AdapterState state (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -184,7 +189,7 @@ namespace PortableInterceptor
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -194,7 +199,7 @@ namespace PortableInterceptor
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -205,19 +210,19 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
@@ -235,7 +240,7 @@ namespace PortableInterceptor
#endif /* end #if !defined */
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -246,8 +251,8 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_IORINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_IORINFO__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_IORINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_IORINFO__TRAITS_CH_
template<>
struct TAO_IORInterceptor_Export Objref_Traits< ::PortableInterceptor::IORInfo>
@@ -259,7 +264,7 @@ namespace TAO
::PortableInterceptor::IORInfo_ptr
);
static ::PortableInterceptor::IORInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::IORInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -269,9 +274,15 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/IORInterceptor/IORInterceptor.pidl b/TAO/tao/IORInterceptor/IORInterceptor.pidl
index 968fd662506..6247886f787 100644
--- a/TAO/tao/IORInterceptor/IORInterceptor.pidl
+++ b/TAO/tao/IORInterceptor/IORInterceptor.pidl
@@ -20,7 +20,7 @@
* The command used to generate code is:
*
* tao_idl
- * -o orig -Gp -Gd -Ge 1 -Sa -Sc -St -Sci -SS
+ * -o orig -Gp -Gd -Ge 1 -Sa -Sc -St -Sci
* -I$(TAO_ROOT)
* -Wb,export_macro=TAO_IORInterceptor_Export
* -Wb,export_include="iorinterceptor_export.h"
@@ -47,10 +47,7 @@ module PortableInterceptor
local interface IORInterceptor : Interceptor
{
void establish_components (in IORInfo info);
- };
- local interface IORInterceptor_3_0 : IORInterceptor
- {
void components_established (in IORInfo info);
void adapter_manager_state_changed (
diff --git a/TAO/tao/IORInterceptor/IORInterceptorC.cpp b/TAO/tao/IORInterceptor/IORInterceptorC.cpp
index 684f5361ebc..0a657bf65a8 100644
--- a/TAO/tao/IORInterceptor/IORInterceptorC.cpp
+++ b/TAO/tao/IORInterceptor/IORInterceptorC.cpp
@@ -26,18 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/IORInterceptor/IORInterceptor.h"
+#include "IORInterceptor.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::IORInterceptor>::nil (void)
return PortableInterceptor::IORInterceptor::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::IORInterceptor>::marshal (
PortableInterceptor::IORInterceptor_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::IORInterceptor::IORInterceptor (void)
@@ -88,7 +90,7 @@ PortableInterceptor::IORInterceptor::~IORInterceptor (void)
PortableInterceptor::IORInterceptor_ptr
PortableInterceptor::IORInterceptor::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -99,7 +101,7 @@ PortableInterceptor::IORInterceptor::_narrow (
PortableInterceptor::IORInterceptor_ptr
PortableInterceptor::IORInterceptor::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -125,7 +127,7 @@ PortableInterceptor::IORInterceptor::_tao_release (IORInterceptor_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::IORInterceptor::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -163,139 +165,8 @@ const char* PortableInterceptor::IORInterceptor::_interface_repository_id (void)
return "IDL:omg.org/PortableInterceptor/IORInterceptor:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::IORInterceptor::marshal (TAO_OutputCDR &)
{
return false;
}
-
-// TAO_IDL - Generated from
-// be\be_visitor_interface/interface_cs.cpp:60
-
-// Traits specializations for PortableInterceptor::IORInterceptor_3_0.
-
-PortableInterceptor::IORInterceptor_3_0_ptr
-TAO::Objref_Traits<PortableInterceptor::IORInterceptor_3_0>::duplicate (
- PortableInterceptor::IORInterceptor_3_0_ptr p
- )
-{
- return PortableInterceptor::IORInterceptor_3_0::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<PortableInterceptor::IORInterceptor_3_0>::release (
- PortableInterceptor::IORInterceptor_3_0_ptr p
- )
-{
- CORBA::release (p);
-}
-
-PortableInterceptor::IORInterceptor_3_0_ptr
-TAO::Objref_Traits<PortableInterceptor::IORInterceptor_3_0>::nil (void)
-{
- return PortableInterceptor::IORInterceptor_3_0::_nil ();
-}
-
-::CORBA::Boolean
-TAO::Objref_Traits<PortableInterceptor::IORInterceptor_3_0>::marshal (
- PortableInterceptor::IORInterceptor_3_0_ptr p,
- TAO_OutputCDR & cdr
- )
-{
- return ::CORBA::Object::marshal (p, cdr);
-}
-
-PortableInterceptor::IORInterceptor_3_0::IORInterceptor_3_0 (void)
-{}
-
-PortableInterceptor::IORInterceptor_3_0::~IORInterceptor_3_0 (void)
-{}
-
-PortableInterceptor::IORInterceptor_3_0_ptr
-PortableInterceptor::IORInterceptor_3_0::_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return IORInterceptor_3_0::_duplicate (
- dynamic_cast<IORInterceptor_3_0_ptr> (_tao_objref)
- );
-}
-
-PortableInterceptor::IORInterceptor_3_0_ptr
-PortableInterceptor::IORInterceptor_3_0::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return IORInterceptor_3_0::_duplicate (
- dynamic_cast<IORInterceptor_3_0_ptr> (_tao_objref)
- );
-}
-
-PortableInterceptor::IORInterceptor_3_0_ptr
-PortableInterceptor::IORInterceptor_3_0::_duplicate (IORInterceptor_3_0_ptr obj)
-{
- if (! CORBA::is_nil (obj))
- {
- obj->_add_ref ();
- }
-
- return obj;
-}
-
-void
-PortableInterceptor::IORInterceptor_3_0::_tao_release (IORInterceptor_3_0_ptr obj)
-{
- CORBA::release (obj);
-}
-
-::CORBA::Boolean
-PortableInterceptor::IORInterceptor_3_0::_is_a (
- const char *value
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- if (
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/PortableInterceptor/Interceptor:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/PortableInterceptor/IORInterceptor:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/PortableInterceptor/IORInterceptor_3_0:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/LocalObject:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/Object:1.0"
- )
- )
- {
- return true; // success using local knowledge
- }
- else
- {
- return false;
- }
-}
-
-const char* PortableInterceptor::IORInterceptor_3_0::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableInterceptor/IORInterceptor_3_0:1.0";
-}
-
-::CORBA::Boolean
-PortableInterceptor::IORInterceptor_3_0::marshal (TAO_OutputCDR &)
-{
- return false;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor/IORInterceptorC.h b/TAO/tao/IORInterceptor/IORInterceptorC.h
index 7f78cfe946f..62091a216d1 100644
--- a/TAO/tao/IORInterceptor/IORInterceptorC.h
+++ b/TAO/tao/IORInterceptor/IORInterceptorC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_IORINTERCEPTORC_H_
-#define _TAO_IDL_IORINTERCEPTORC_H_
+#ifndef _TAO_IDL_ORIG_IORINTERCEPTORC_H_
+#define _TAO_IDL_ORIG_IORINTERCEPTORC_H_
#include /**/ "ace/pre.h"
@@ -43,7 +43,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IORInterceptor/iorinterceptor_export.h"
+#include "iorinterceptor_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -59,16 +59,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_IORInterceptor_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR__VAR_OUT_CH_
@@ -109,12 +116,12 @@ namespace PortableInterceptor
static void _tao_release (IORInterceptor_ptr obj);
static IORInterceptor_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static IORInterceptor_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -133,94 +140,10 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
- // be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
- const char *type_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
- protected:
- // Abstract or local interface only.
- IORInterceptor (void);
-
- virtual ~IORInterceptor (void);
-
- private:
- // Private and unimplemented for concrete interfaces.
- IORInterceptor (const IORInterceptor &);
-
- void operator= (const IORInterceptor &);
- };
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be\be_interface.cpp:646
-
-#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR_3_0__VAR_OUT_CH_)
-#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR_3_0__VAR_OUT_CH_
-
- class IORInterceptor_3_0;
- typedef IORInterceptor_3_0 *IORInterceptor_3_0_ptr;
-
- typedef
- TAO_Objref_Var_T<
- IORInterceptor_3_0
- >
- IORInterceptor_3_0_var;
-
- typedef
- TAO_Objref_Out_T<
- IORInterceptor_3_0
- >
- IORInterceptor_3_0_out;
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be\be_visitor_interface/interface_ch.cpp:54
-
-#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR_3_0_CH_)
-#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR_3_0_CH_
-
- class TAO_IORInterceptor_Export IORInterceptor_3_0
- : public virtual ::PortableInterceptor::IORInterceptor
- {
- public:
- typedef IORInterceptor_3_0_ptr _ptr_type;
- typedef IORInterceptor_3_0_var _var_type;
-
- // The static operations.
- static IORInterceptor_3_0_ptr _duplicate (IORInterceptor_3_0_ptr obj);
-
- static void _tao_release (IORInterceptor_3_0_ptr obj);
-
- static IORInterceptor_3_0_ptr _narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static IORInterceptor_3_0_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static IORInterceptor_3_0_ptr _nil (void)
- {
- return static_cast<IORInterceptor_3_0_ptr> (0);
- }
-
-
-
- // TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
virtual void components_established (
@@ -228,7 +151,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -240,7 +163,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -252,37 +175,37 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
- IORInterceptor_3_0 (void);
+ IORInterceptor (void);
- virtual ~IORInterceptor_3_0 (void);
+ virtual ~IORInterceptor (void);
private:
// Private and unimplemented for concrete interfaces.
- IORInterceptor_3_0 (const IORInterceptor_3_0 &);
+ IORInterceptor (const IORInterceptor &);
- void operator= (const IORInterceptor_3_0 &);
+ void operator= (const IORInterceptor &);
};
#endif /* end #if !defined */
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -293,8 +216,8 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_CH_
template<>
struct TAO_IORInterceptor_Export Objref_Traits< ::PortableInterceptor::IORInterceptor>
@@ -306,40 +229,25 @@ namespace TAO
::PortableInterceptor::IORInterceptor_ptr
);
static ::PortableInterceptor::IORInterceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::IORInterceptor_ptr p,
TAO_OutputCDR & cdr
);
};
#endif /* end #if !defined */
-
-#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR_3_0__TRAITS_)
-#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR_3_0__TRAITS_
-
- template<>
- struct TAO_IORInterceptor_Export Objref_Traits< ::PortableInterceptor::IORInterceptor_3_0>
- {
- static ::PortableInterceptor::IORInterceptor_3_0_ptr duplicate (
- ::PortableInterceptor::IORInterceptor_3_0_ptr
- );
- static void release (
- ::PortableInterceptor::IORInterceptor_3_0_ptr
- );
- static ::PortableInterceptor::IORInterceptor_3_0_ptr nil (void);
- static ::CORBA::Boolean marshal (
- ::PortableInterceptor::IORInterceptor_3_0_ptr p,
- TAO_OutputCDR & cdr
- );
- };
-
-#endif /* end #if !defined */
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp
index a917dc798d4..8dfe90401cf 100644
--- a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp
+++ b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/IORInterceptor/IORInterceptor_Adapter_Impl.h"
-#include "tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h"
+#include "IORInterceptor_Adapter_Impl.h"
+#include "IORInterceptor_Adapter_Factory_Impl.h"
#include "tao/ORB_Core.h"
@@ -9,8 +9,6 @@ ACE_RCSID (IORInterceptor,
IORInterceptor_Adapter_Factory_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IORInterceptor_Adapter_Factory_Impl::~TAO_IORInterceptor_Adapter_Factory_Impl (void)
{
}
@@ -23,7 +21,6 @@ TAO_IORInterceptor_Adapter_Factory_Impl::create (ACE_ENV_SINGLE_ARG_DECL)
ACE_NEW_THROW_EX (nia,
TAO_IORInterceptor_Adapter_Impl (),
CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (nia);
return nia;
}
@@ -46,8 +43,6 @@ TAO_IORInterceptor_Adapter_Factory_Impl::Initializer (void)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (
TAO_IORInterceptor_Adapter_Factory_Impl,
ACE_TEXT ("Concrete_IORInterceptor_Adapter_Factory"),
diff --git a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h
index a08507cd6a6..f41d267a92f 100644
--- a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h
+++ b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/IORInterceptor/iorinterceptor_export.h"
+#include "iorinterceptor_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,7 +25,6 @@
#include "tao/IORInterceptor_Adapter_Factory.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_IORInterceptor_Adapter;
@@ -52,15 +51,13 @@ public:
static int Initializer (void);
};
+ACE_STATIC_SVC_DECLARE (TAO_IORInterceptor_Adapter_Factory_Impl)
+ACE_FACTORY_DECLARE (TAO_IORInterceptor, TAO_IORInterceptor_Adapter_Factory_Impl)
+
static int
TAO_Requires_IORInterceptor_Initializer =
TAO_IORInterceptor_Adapter_Factory_Impl::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (TAO_IORInterceptor_Adapter_Factory_Impl)
-ACE_FACTORY_DECLARE (TAO_IORInterceptor, TAO_IORInterceptor_Adapter_Factory_Impl)
-
#define TAO_IORINTERCEPTOR_SAFE_INCLUDE
#include "tao/IORInterceptor/IORInterceptorC.h"
#undef TAO_IORINTERCEPTOR_SAFE_INCLUDE
diff --git a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp
index b3f22718550..878419b151a 100644
--- a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp
+++ b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/IORInterceptor/IORInterceptor_Adapter_Impl.h"
-#include "tao/IORInterceptor/IORInfo.h"
+#include "IORInterceptor_Adapter_Impl.h"
+#include "IORInfo.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
#include "tao/PI/PI.h"
@@ -13,8 +13,6 @@ ACE_RCSID (IORInterceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IORInterceptor_Adapter_Impl::~TAO_IORInterceptor_Adapter_Impl (void)
{
}
@@ -31,19 +29,6 @@ TAO_IORInterceptor_Adapter_Impl::add_interceptor (
}
void
-TAO_IORInterceptor_Adapter_Impl::add_interceptor (
- PortableInterceptor::IORInterceptor_ptr i,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL
- )
-{
- this->ior_interceptor_list_.add_interceptor (i,
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-void
TAO_IORInterceptor_Adapter_Impl::destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL)
{
this->ior_interceptor_list_.destroy_interceptors (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -109,7 +94,7 @@ TAO_IORInterceptor_Adapter_Impl::establish_components (
ACE_DEBUG ((LM_WARNING,
"(%P|%t) Exception thrown while processing "
"IORInterceptor \"%s\">\n",
- ACE_TEXT_CHAR_TO_TCHAR (name.in ())));
+ ACE_TEXT_TO_TCHAR_IN (name.in ())));
}
ACE_PRINT_TAO_EXCEPTION (ACE_ANY_EXCEPTION,
@@ -150,18 +135,10 @@ TAO_IORInterceptor_Adapter_Impl::components_established (
{
ACE_TRY
{
- PortableInterceptor::IORInterceptor_ptr ior_interceptor =
- this->ior_interceptor_list_.interceptor (j);
-
- PortableInterceptor::IORInterceptor_3_0_var ior_3_interceptor =
- PortableInterceptor::IORInterceptor_3_0::_narrow (ior_interceptor);
- if (!CORBA::is_nil (ior_3_interceptor.in ()))
- {
- ior_3_interceptor->components_established (
- info
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->ior_interceptor_list_.interceptor (j)->components_established (
+ info
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
ACE_CATCHANY
{
@@ -202,19 +179,11 @@ TAO_IORInterceptor_Adapter_Impl::adapter_state_changed (
for (size_t i = 0; i < interceptor_count; ++i)
{
- PortableInterceptor::IORInterceptor_ptr ior_interceptor =
- this->ior_interceptor_list_.interceptor (i);
-
- PortableInterceptor::IORInterceptor_3_0_var ior_3_interceptor =
- PortableInterceptor::IORInterceptor_3_0::_narrow (ior_interceptor);
- if (!CORBA::is_nil (ior_3_interceptor.in ()))
- {
- ior_3_interceptor->adapter_state_changed (
- seq_obj_ref_template,
- state
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ this->ior_interceptor_list_.interceptor (i)->adapter_state_changed (
+ seq_obj_ref_template,
+ state
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
}
@@ -235,20 +204,10 @@ TAO_IORInterceptor_Adapter_Impl::adapter_manager_state_changed (
for (size_t i = 0; i < interceptor_count; ++i)
{
- PortableInterceptor::IORInterceptor_ptr ior_interceptor =
- this->ior_interceptor_list_.interceptor (i);
-
- PortableInterceptor::IORInterceptor_3_0_var ior_3_interceptor =
- PortableInterceptor::IORInterceptor_3_0::_narrow (ior_interceptor);
- if (!CORBA::is_nil (ior_3_interceptor.in ()))
- {
- ior_3_interceptor->adapter_manager_state_changed (
- id,
- state
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ this->ior_interceptor_list_.interceptor(i)->adapter_manager_state_changed (
+ id,
+ state
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.h b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.h
index 6257c699b9a..50d4a0eaa11 100644
--- a/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.h
+++ b/TAO/tao/IORInterceptor/IORInterceptor_Adapter_Impl.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/IORInterceptor/iorinterceptor_export.h"
+#include "iorinterceptor_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,14 +25,10 @@
#include "tao/IORInterceptor/IORInterceptor.h"
#include "tao/IORInterceptor_Adapter.h"
#include "tao/PI/Interceptor_List_T.h"
-#include "tao/IORInterceptor/IORInterceptor_Details.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- typedef Interceptor_List< ::PortableInterceptor::IORInterceptor,
- IORInterceptor_Details>
+ typedef Interceptor_List< ::PortableInterceptor::IORInterceptor>
IORInterceptor_List;
}
@@ -47,7 +43,7 @@ class TAO_Root_POA;
* interfaces IORInfo and IORInterceptor. This is the derived class
* that contains the actual implementations.
*/
-class TAO_IORInterceptor_Adapter_Impl
+class TAO_IORInterceptor_Export TAO_IORInterceptor_Adapter_Impl
: public TAO_IORInterceptor_Adapter
{
public:
@@ -57,11 +53,6 @@ public:
PortableInterceptor::IORInterceptor_ptr interceptor
ACE_ENV_ARG_DECL);
- virtual void add_interceptor (
- PortableInterceptor::IORInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
virtual void destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL);
virtual void establish_components (TAO_Root_POA *poa ACE_ENV_ARG_DECL)
@@ -90,8 +81,6 @@ private:
TAO::IORInterceptor_List ior_interceptor_list_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IORINTERCEPTOR_ADAPTER_IMPL_H */
diff --git a/TAO/tao/IORInterceptor/IORInterceptor_Details.cpp b/TAO/tao/IORInterceptor/IORInterceptor_Details.cpp
deleted file mode 100644
index 77835d4cfd0..00000000000
--- a/TAO/tao/IORInterceptor/IORInterceptor_Details.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "tao/IORInterceptor/IORInterceptor_Details.h"
-
-ACE_RCSID (IORInterceptor,
- IORInterceptor_Details,
- "$Id$")
-
-#include "tao/SystemException.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- void
- IORInterceptor_Details::apply_policies (
- const CORBA::PolicyList &/*policies*/
- ACE_ENV_ARG_DECL)
- {
- // There are currently no policies that apply to IOR Interceptors.
- ACE_THROW (CORBA::INV_POLICY ());
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor/IORInterceptor_Details.h b/TAO/tao/IORInterceptor/IORInterceptor_Details.h
deleted file mode 100644
index bb2ce8b0fa8..00000000000
--- a/TAO/tao/IORInterceptor/IORInterceptor_Details.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file IORInterceptor_Details.h
- *
- * $Id$
- *
- * This file declares a class that manages the details
- * about a registered client request interceptor. Policies can be
- * used when interceptors are registered, and the policy values
- * will be processed and used to modify the values of the
- * IORInterceptor_Details object associated with the registered
- * client request interceptor.
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_IOR_INTERCEPTOR_DETAILS_H
-#define TAO_IOR_INTERCEPTOR_DETAILS_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Policy_ForwardC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- /**
- * @class IORInterceptor_Details
- *
- * @brief The policy-driven details for a registered IOR interceptor
- *
- * Each time an IOR interceptor is registered with an ORB, an
- * IORInterceptor_Details object will be created and associated with
- * the registered IOR interceptor. If the interceptor is
- * registered with policies, the policies will be used to adjust the
- * values in the IORInterceptor_Details appropriately.
- *
- * Currently, there are no policies that are applicable to
- * IOR Interceptors.
- */
- class IORInterceptor_Details
- {
- public:
- void apply_policies (const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
- };
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_IOR_INTERCEPTOR_DETAILS_H */
diff --git a/TAO/tao/IORInterceptor_Adapter.cpp b/TAO/tao/IORInterceptor_Adapter.cpp
index 7759e6793f3..87e2ca2971c 100644
--- a/TAO/tao/IORInterceptor_Adapter.cpp
+++ b/TAO/tao/IORInterceptor_Adapter.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/IORInterceptor_Adapter.h"
@@ -6,10 +6,7 @@ ACE_RCSID (tao,
IORInterceptor_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IORInterceptor_Adapter::~TAO_IORInterceptor_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor_Adapter.h b/TAO/tao/IORInterceptor_Adapter.h
index ea337f5c9f3..c37d8a3a940 100644
--- a/TAO/tao/IORInterceptor_Adapter.h
+++ b/TAO/tao/IORInterceptor_Adapter.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "ace/Array_Base.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,12 +25,6 @@
#include "tao/SystemException.h"
#include "tao/PI_ForwardC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-template <class T> class ACE_Array_Base;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
class IORInterceptor;
@@ -67,12 +61,6 @@ public:
ACE_ENV_ARG_DECL
) = 0;
- virtual void add_interceptor (
- PortableInterceptor::IORInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL
- ) = 0;
-
virtual void destroy_interceptors (
ACE_ENV_SINGLE_ARG_DECL
) = 0;
@@ -107,7 +95,5 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IORINTERCEPTOR_ADAPTER_H */
diff --git a/TAO/tao/IORInterceptor_Adapter_Factory.cpp b/TAO/tao/IORInterceptor_Adapter_Factory.cpp
index 083299eeb96..4bf66592ee5 100644
--- a/TAO/tao/IORInterceptor_Adapter_Factory.cpp
+++ b/TAO/tao/IORInterceptor_Adapter_Factory.cpp
@@ -5,10 +5,6 @@ ACE_RCSID (tao,
IORInterceptor_Adapter_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IORInterceptor_Adapter_Factory::~TAO_IORInterceptor_Adapter_Factory (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORInterceptor_Adapter_Factory.h b/TAO/tao/IORInterceptor_Adapter_Factory.h
index ebb5561ee76..e56e7994296 100644
--- a/TAO/tao/IORInterceptor_Adapter_Factory.h
+++ b/TAO/tao/IORInterceptor_Adapter_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IORInterceptor_Adapter;
/**
@@ -48,8 +46,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IORINTERCEPTOR_ADAPTER_FACTORY_H */
diff --git a/TAO/tao/IORManipulation/IORA.cpp b/TAO/tao/IORManipulation/IORA.cpp
index 4f66fb1a1c5..8f9b028afe9 100644
--- a/TAO/tao/IORManipulation/IORA.cpp
+++ b/TAO/tao/IORManipulation/IORA.cpp
@@ -32,14 +32,12 @@
#include "tao/AnyTypeCode/Sequence_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/IORManipulation/IORManip_Loader.h"
+#include "IORManip_Loader.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be/be_visitor_typecode/struct_typecode.cpp:74
@@ -902,5 +900,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORManipulation/IORC.cpp b/TAO/tao/IORManipulation/IORC.cpp
index b30c619e153..80b5d8c433b 100644
--- a/TAO/tao/IORManipulation/IORC.cpp
+++ b/TAO/tao/IORManipulation/IORC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/IORManipulation/IORManip_Loader.h"
+#include "IORManip_Loader.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -1007,5 +1005,3 @@ CORBA::Boolean operator>> (
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORManipulation/IORC.h b/TAO/tao/IORManipulation/IORC.h
index 2c6bb305c61..3c3fb06fc6c 100644
--- a/TAO/tao/IORManipulation/IORC.h
+++ b/TAO/tao/IORManipulation/IORC.h
@@ -44,7 +44,7 @@
#error "You should not include IORC.h directly, use IORManip_Loader.h"
#endif /* !TAO_IORMANIP_SAFE_INCLUDE */
-#include "tao/IORManipulation/ior_manip_export.h"
+#include "ior_manip_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -71,8 +71,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_IOP
{
@@ -909,8 +907,6 @@ TAO_IORManip_Export CORBA::Boolean operator>> (TAO_InputCDR &, TAO_IOP::MultiPro
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IORManipulation/IORManip_Loader.cpp b/TAO/tao/IORManipulation/IORManip_Loader.cpp
index eceb6b0b06b..5d06739f52c 100644
--- a/TAO/tao/IORManipulation/IORManip_Loader.cpp
+++ b/TAO/tao/IORManipulation/IORManip_Loader.cpp
@@ -1,5 +1,5 @@
-#include "tao/IORManipulation/IORManip_Loader.h"
-#include "tao/IORManipulation/IORManipulation.h"
+#include "IORManip_Loader.h"
+#include "IORManipulation.h"
#include "ace/Log_Msg.h"
@@ -9,8 +9,6 @@ ACE_RCSID (IORManipulation,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IORManip_Loader::TAO_IORManip_Loader (void)
{
}
@@ -35,8 +33,6 @@ TAO_IORManip_Loader::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_IORManip_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_IORManip_Loader,
ACE_TEXT ("IORManip_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/IORManipulation/IORManip_Loader.h b/TAO/tao/IORManipulation/IORManip_Loader.h
index fc45a394fae..f01484f7690 100644
--- a/TAO/tao/IORManipulation/IORManip_Loader.h
+++ b/TAO/tao/IORManipulation/IORManip_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// $Id$
@@ -19,7 +19,7 @@
#define TAO_IORMANIP_LOADER_H
#include /**/ "ace/pre.h"
-#include "tao/IORManipulation/ior_manip_export.h"
+#include "ior_manip_export.h"
#include "tao/Object_Loader.h"
#include "ace/Service_Config.h"
@@ -27,8 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IORManip_Export TAO_IORManip_Loader : public TAO_Object_Loader
{
public:
@@ -46,16 +44,14 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_IORManip_Initializer = TAO_IORManip_Loader::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_IORManip_Loader)
ACE_FACTORY_DECLARE (TAO_IORManip, TAO_IORManip_Loader)
+static int
+TAO_Requires_IORManip_Initializer = TAO_IORManip_Loader::Initializer ();
+
#define TAO_IORMANIP_SAFE_INCLUDE
-#include "tao/IORManipulation/IORC.h"
+#include "IORC.h"
#undef TAO_IORMANIP_SAFE_INCLUDE
#include /**/ "ace/post.h"
diff --git a/TAO/tao/IORManipulation/IORManipulation.cpp b/TAO/tao/IORManipulation/IORManipulation.cpp
index 079f942eee2..3bba59dba08 100644
--- a/TAO/tao/IORManipulation/IORManipulation.cpp
+++ b/TAO/tao/IORManipulation/IORManipulation.cpp
@@ -1,4 +1,4 @@
-#include "tao/IORManipulation/IORManipulation.h"
+#include "IORManipulation.h"
#include "tao/MProfile.h"
#include "tao/Profile.h"
@@ -13,7 +13,6 @@ ACE_RCSID (IORManipulation,
IORManipulation,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_IOR_Manipulation_impl::TAO_IOR_Manipulation_impl (void)
{
@@ -184,15 +183,17 @@ TAO_IOR_Manipulation_impl::remove_profiles (
ACE_THROW_RETURN (TAO_IOP::Invalid_IOR (),
CORBA::Object::_nil ());
- // We are done with add_profiles.
- // At this point, we don't do remove_profiles()
- // immediately like before,
- // because it could result in an
- // Object Reference with 0 profile. And it would not pass
- // the CORBA::is_nil() evaluation.
- // Instead, we create the Object Reference right here, which is
- // earlier than before.(Actually, I just moved some code
- // from below up to here).
+ ACE_AUTO_PTR_RESET (tmp_pfiles,
+ ior2->_stubobj ()->make_profiles (),
+ TAO_MProfile);
+
+ if (Diff_Profiles.remove_profiles (tmp_pfiles.get ()) < 0)
+ ACE_THROW_RETURN (TAO_IOP::NotFound (),
+ CORBA::Object::_nil ());
+
+ // MS C++ knows nothing about reset!
+ // tmp_pfiles.reset (0); // get rid of last MProfile
+
TAO_ORB_Core *orb_core = TAO_ORB_Core_instance ();
TAO_Stub *stub = orb_core->create_stub (id.in (), // give the id string
@@ -223,20 +224,6 @@ TAO_IOR_Manipulation_impl::remove_profiles (
CORBA::Object::_nil ());
}
- // Now we can remove the profiles which we want to elimitate from
- // the Object.
- ACE_AUTO_PTR_RESET (tmp_pfiles,
- ior2->_stubobj ()->make_profiles (),
- TAO_MProfile);
-
- TAO_MProfile& mp = stub -> base_profiles();
- if (mp.remove_profiles (tmp_pfiles.get ()) < 0)
- ACE_THROW_RETURN (TAO_IOP::NotFound (),
- CORBA::Object::_nil ());
-
- // MS C++ knows nothing about reset!
- // tmp_pfiles.reset (0); // get rid of last MProfile
-
return new_obj._retn ();
}
@@ -379,4 +366,3 @@ TAO_IOR_Manipulation_impl::get_profile_count (
return count;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORManipulation/IORManipulation.h b/TAO/tao/IORManipulation/IORManipulation.h
index 9ad320bc8d0..0666e0ef6b7 100644
--- a/TAO/tao/IORManipulation/IORManipulation.h
+++ b/TAO/tao/IORManipulation/IORManipulation.h
@@ -19,26 +19,23 @@
#ifndef TAO_IOR_MANIPULATION_H
#define TAO_IOR_MANIPULATION_H
-
#include /**/ "ace/pre.h"
#include "tao/LocalObject.h"
-#include "tao/IORManipulation/IORManip_Loader.h"
+#include "IORManip_Loader.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IORManipulation/IORC.h"
+#include "IORC.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_IOR_Manipulation_impl
+class TAO_IORManip_Export TAO_IOR_Manipulation_impl
: public TAO_IOP::TAO_IOR_Manipulation,
public TAO_Local_RefCounted_Object
{
@@ -53,6 +50,9 @@ public:
TAO_IOR_Manipulation_impl (void);
// constructor
+ ~TAO_IOR_Manipulation_impl (void);
+ // destructor
+
virtual CORBA::Object_ptr merge_iors (
const TAO_IOP::TAO_IOR_Manipulation::IORList & iors
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
@@ -153,20 +153,13 @@ public:
CORBA::SystemException,
TAO_IOP::EmptyProfileList
));
-
-protected:
-
- ~TAO_IOR_Manipulation_impl (void);
- // destructor
+private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#include /**/ "ace/post.h"
-
#endif /* TAO_IOR_MANIPULATION_H */
diff --git a/TAO/tao/IORTable/IORTable.cpp b/TAO/tao/IORTable/IORTable.cpp
index e43ccf18b34..6b5d631f90f 100644
--- a/TAO/tao/IORTable/IORTable.cpp
+++ b/TAO/tao/IORTable/IORTable.cpp
@@ -11,18 +11,13 @@
*/
// =================================================================
-#include "tao/IORTable/IORTable.h"
-#include "tao/IORTable/Table_Adapter.h"
+#include "IORTable.h"
+#include "Table_Adapter.h"
ACE_RCSID (IORTable, IORTable, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_IORTable_Initializer::init (void)
{
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_Table_Adapter_Factory);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORTable/IORTable.h b/TAO/tao/IORTable/IORTable.h
index 7bae99afdb1..4044e6de93c 100644
--- a/TAO/tao/IORTable/IORTable.h
+++ b/TAO/tao/IORTable/IORTable.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
@@ -17,16 +17,12 @@
#include /**/ "ace/pre.h"
-#include "tao/IORTable/iortable_export.h"
+#include "iortable_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IORTable_Export TAO_IORTable_Initializer
{
public:
@@ -37,10 +33,8 @@ public:
static int
TAO_Requires_IORTable_Initializer = TAO_IORTable_Initializer::init ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_IORTABLE_SAFE_INCLUDE
-#include "tao/IORTable/IORTableC.h"
+#include "IORTableC.h"
#undef TAO_IORTABLE_SAFE_INCLUDE
#include /**/ "ace/post.h"
diff --git a/TAO/tao/IORTable/IORTableC.cpp b/TAO/tao/IORTable/IORTableC.cpp
index ce5ed991f03..afbeabe311b 100644
--- a/TAO/tao/IORTable/IORTableC.cpp
+++ b/TAO/tao/IORTable/IORTableC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/IORTable/IORTable.h"
+#include "IORTable.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -541,5 +539,3 @@ CORBA::Boolean operator>> (
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORTable/IORTableC.h b/TAO/tao/IORTable/IORTableC.h
index fcd0a17bdfc..4f2d10cf9f0 100644
--- a/TAO/tao/IORTable/IORTableC.h
+++ b/TAO/tao/IORTable/IORTableC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/IORTable/iortable_export.h"
+#include "iortable_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -68,8 +68,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace IORTable
{
@@ -453,8 +451,6 @@ TAO_IORTable_Export CORBA::Boolean operator>> (TAO_InputCDR &, IORTable::NotFoun
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IORTable/IOR_Table_Impl.cpp b/TAO/tao/IORTable/IOR_Table_Impl.cpp
index bb3b678e397..7b0d6bb538a 100644
--- a/TAO/tao/IORTable/IOR_Table_Impl.cpp
+++ b/TAO/tao/IORTable/IOR_Table_Impl.cpp
@@ -7,7 +7,7 @@
*
*/
-#include "tao/IORTable/IOR_Table_Impl.h"
+#include "IOR_Table_Impl.h"
#include "ace/Guard_T.h"
ACE_RCSID (IORTable,
@@ -15,8 +15,6 @@ ACE_RCSID (IORTable,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IOR_Table_Impl::TAO_IOR_Table_Impl (void)
{
}
@@ -104,5 +102,3 @@ TAO_IOR_Table_Impl::set_locator (
ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->lock_);
this->locator_ = IORTable::Locator::_duplicate (locator);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IORTable/IOR_Table_Impl.h b/TAO/tao/IORTable/IOR_Table_Impl.h
index 15ca6d6cc3f..acdcebdfa11 100644
--- a/TAO/tao/IORTable/IOR_Table_Impl.h
+++ b/TAO/tao/IORTable/IOR_Table_Impl.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/IORTable/IORTable.h"
+#include "IORTable.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,9 +32,7 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_IOR_Table_Impl
+class TAO_IORTable_Export TAO_IOR_Table_Impl
: public virtual IORTable::Table,
public virtual TAO_Local_RefCounted_Object
{
@@ -108,8 +106,6 @@ private:
TAO_SYNCH_MUTEX lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/IORTable/Table_Adapter.cpp b/TAO/tao/IORTable/Table_Adapter.cpp
index dbfbc20990a..4fedc0b3f29 100644
--- a/TAO/tao/IORTable/Table_Adapter.cpp
+++ b/TAO/tao/IORTable/Table_Adapter.cpp
@@ -7,20 +7,16 @@
*
*/
-#include "tao/IORTable/Table_Adapter.h"
-#include "tao/IORTable/IOR_Table_Impl.h"
+#include "Table_Adapter.h"
+#include "IOR_Table_Impl.h"
#include "tao/ORB_Core.h"
#include "tao/Object.h"
-#include "tao/Stub.h"
#include "tao/ORB.h"
-#include "tao/Profile.h"
ACE_RCSID (IORTable,
Table_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Table_Adapter::TAO_Table_Adapter (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core)
, root_ (0)
@@ -66,8 +62,26 @@ TAO_Table_Adapter::dispatch (TAO::ObjectKey &key,
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return this->find_object (key, forward_to) ? TAO_Adapter::DS_FORWARD
- : TAO_Adapter::DS_MISMATCHED_KEY;
+ CORBA::String_var object_key;
+ TAO::ObjectKey::encode_sequence_to_string (object_key.out (),
+ key);
+ ACE_TRY
+ {
+ CORBA::String_var ior =
+ this->root_->find (object_key.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ forward_to =
+ this->orb_core_->orb ()->string_to_object (ior.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCH (IORTable::NotFound, nf_ex)
+ {
+ return TAO_Adapter::DS_MISMATCHED_KEY;
+ }
+ ACE_ENDTRY;
+ return TAO_Adapter::DS_FORWARD;
}
const char *
@@ -86,88 +100,15 @@ CORBA::Object_ptr
TAO_Table_Adapter::create_collocated_object (TAO_Stub *stub,
const TAO_MProfile &)
{
- CORBA::Object_ptr result = CORBA::Object::_nil ();
-
- if (! this->initialize_collocated_object (stub)) // 0 == success
- {
- // A reference was found in the table. The stub has been forwarded
- // to this. The collocation indicators are now correct on the stub
- // (although they may well now indicate that the stub is not in fact
- // collocated at all).
- ACE_NEW_RETURN (result,
- CORBA::Object (stub,
- stub->is_collocated (),
- stub->collocated_servant ()),
- CORBA::Object::_nil ());
-
- }
-
- return result;
+ return new CORBA::Object (stub);
}
CORBA::Long
-TAO_Table_Adapter::initialize_collocated_object (TAO_Stub * stub)
+TAO_Table_Adapter::initialize_collocated_object (TAO_Stub *,
+ CORBA::Object_ptr )
{
- // Get the effective profile set.
- const TAO_MProfile &mp = stub->forward_profiles () ? *(stub->forward_profiles ())
- : stub->base_profiles ();
- TAO_PHandle j = 0;
- // We only look at the key from the 0th profile but we only really care about
- // corbaloc's here where all profiles share a single object key
- TAO::ObjectKey_var key = mp.get_profile (j)->_key ();
-
- CORBA::Object_var forward_to = CORBA::Object::_nil ();
- CORBA::Boolean found = false;
-
- ACE_TRY_NEW_ENV
- {
- found = this->find_object (key, forward_to.out ());
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
-
- if (found)
- {
- // This call will set the appropriate collocation values
- // to correspond to the reference we found in the table.
- stub->add_forward_profiles (forward_to->_stubobj ()->base_profiles ());
- stub->next_profile ();
- }
-
- // 0 for success
- return ! found;
-}
-
-CORBA::Long
-TAO_Table_Adapter::find_object (TAO::ObjectKey &key,
- CORBA::Object_out forward_to
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- CORBA::String_var object_key;
- TAO::ObjectKey::encode_sequence_to_string (object_key.out (),
- key);
- ACE_TRY
- {
- CORBA::String_var ior =
- this->root_->find (object_key.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- forward_to =
- this->orb_core_->orb ()->string_to_object (ior.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (IORTable::NotFound, nf_ex)
- {
- return 0;
- }
- ACE_ENDTRY;
- return 1;
+ return 0;
}
-
// ****************************************************************
TAO_Table_Adapter_Factory::TAO_Table_Adapter_Factory (void)
@@ -180,8 +121,6 @@ TAO_Table_Adapter_Factory::create (TAO_ORB_Core *oc)
return new TAO_Table_Adapter (oc);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_IORTable, TAO_Table_Adapter_Factory)
ACE_STATIC_SVC_DEFINE (TAO_Table_Adapter_Factory,
ACE_TEXT ("TAO_IORTable"),
diff --git a/TAO/tao/IORTable/Table_Adapter.h b/TAO/tao/IORTable/Table_Adapter.h
index f01ebe13e64..3e1a8b2fcd8 100644
--- a/TAO/tao/IORTable/Table_Adapter.h
+++ b/TAO/tao/IORTable/Table_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,7 +15,7 @@
#define TAO_TABLE_ADAPTER_H
#include /**/ "ace/pre.h"
-#include "tao/IORTable/iortable_export.h"
+#include "iortable_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#include "tao/Adapter_Factory.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_IOR_Table_Impl;
class TAO_IORTable_Export TAO_Table_Adapter : public TAO_Adapter
@@ -56,15 +54,9 @@ public:
virtual CORBA::Object_ptr create_collocated_object (TAO_Stub *,
const TAO_MProfile &);
- virtual CORBA::Long initialize_collocated_object (TAO_Stub *);
+ virtual CORBA::Long initialize_collocated_object (TAO_Stub *,
+ CORBA::Object_ptr);
private:
- /// Helper method to find an object bound in the table.
- /// @return 1 if found, 0 otherwise.
- CORBA::Long find_object (TAO::ObjectKey &key,
- CORBA::Object_out forward_to
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
/// The ORB Core we belong to
TAO_ORB_Core *orb_core_;
@@ -85,8 +77,6 @@ public:
virtual TAO_Adapter *create (TAO_ORB_Core *orb_core);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_Table_Adapter_Factory)
ACE_FACTORY_DECLARE (TAO_IORTable, TAO_Table_Adapter_Factory)
diff --git a/TAO/tao/IOR_Parser.cpp b/TAO/tao/IOR_Parser.cpp
index abc812d7f58..8852c907d52 100644
--- a/TAO/tao/IOR_Parser.cpp
+++ b/TAO/tao/IOR_Parser.cpp
@@ -4,11 +4,7 @@
ACE_RCSID(tao, IOR_Parser, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IOR_Parser::~TAO_IOR_Parser (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/IOR_Parser.h b/TAO/tao/IOR_Parser.h
index 0058a743a0e..dc82f1c9cca 100644
--- a/TAO/tao/IOR_Parser.h
+++ b/TAO/tao/IOR_Parser.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +22,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
@@ -65,7 +62,5 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IOR_PARSER_H */
diff --git a/TAO/tao/ImR_Client/ImR_Client.cpp b/TAO/tao/ImR_Client/ImR_Client.cpp
index 47fc9c960fe..e3112d44cf8 100644
--- a/TAO/tao/ImR_Client/ImR_Client.cpp
+++ b/TAO/tao/ImR_Client/ImR_Client.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/ImR_Client/ImR_Client.h"
+#include "ImR_Client.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -15,8 +15,6 @@ ACE_RCSID (ImR_Client,
ImR_Client,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace ImR_Client
@@ -124,7 +122,7 @@ namespace TAO
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"Informing IMR that we are running at: %s\n",
- ACE_TEXT_CHAR_TO_TCHAR (partial_ior.c_str())));
+ ACE_TEXT_TO_TCHAR_IN (partial_ior.c_str())));
ACE_TRY
{
@@ -249,20 +247,16 @@ namespace TAO
return ACE_Service_Config::process_directive (ace_svc_desc_ImR_Client_Adapter_Impl);
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ImR_Client_Adapter_Impl,
+ ACE_TEXT ("Concrete_ImR_Client_Adapter"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ImR_Client_Adapter_Impl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- ImR_Client_Adapter_Impl,
- ACE_TEXT ("Concrete_ImR_Client_Adapter"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ImR_Client_Adapter_Impl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- TAO_IMR_Client,
- ImR_Client_Adapter_Impl,
- TAO::ImR_Client::ImR_Client_Adapter_Impl)
+ ACE_FACTORY_DEFINE (TAO_IMR_Client, ImR_Client_Adapter_Impl)
+ }
+}
diff --git a/TAO/tao/ImR_Client/ImR_Client.h b/TAO/tao/ImR_Client/ImR_Client.h
index cf1e19b7f92..7df7a8296c9 100644
--- a/TAO/tao/ImR_Client/ImR_Client.h
+++ b/TAO/tao/ImR_Client/ImR_Client.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/ImR_Client/imr_client_export.h"
+#include "imr_client_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ServerObject_i;
namespace TAO
@@ -64,17 +62,15 @@ namespace TAO
ServerObject_i *server_object_;
};
+ ACE_STATIC_SVC_DECLARE (ImR_Client_Adapter_Impl)
+ ACE_FACTORY_DECLARE (TAO_IMR_Client, ImR_Client_Adapter_Impl)
+
static int
TAO_Requires_ImR_Client_Initializer =
TAO::ImR_Client::ImR_Client_Adapter_Impl::Initializer ();
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (ImR_Client_Adapter_Impl)
-ACE_FACTORY_DECLARE (TAO_IMR_Client, ImR_Client_Adapter_Impl)
-
#include /**/ "ace/post.h"
#endif /* TAO_IMR_CLIENT_ADAPTER_IMPL_H */
diff --git a/TAO/tao/ImR_Client/ImplRepoC.cpp b/TAO/tao/ImR_Client/ImplRepoC.cpp
index d18206701dc..6643a51b990 100644
--- a/TAO/tao/ImR_Client/ImplRepoC.cpp
+++ b/TAO/tao/ImR_Client/ImplRepoC.cpp
@@ -38,7 +38,7 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/ImR_Client/ImplRepoC.h"
+#include "ImplRepoC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
@@ -55,14 +55,12 @@
#include "ace/OS_NS_string.h"
#if !defined (__ACE_INLINE__)
-#include "tao/ImR_Client/ImplRepoC.inl"
+#include "ImplRepoC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -3091,5 +3089,3 @@ operator>>= (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ImR_Client/ImplRepoC.h b/TAO/tao/ImR_Client/ImplRepoC.h
index b683f485825..137f4f1e20e 100644
--- a/TAO/tao/ImR_Client/ImplRepoC.h
+++ b/TAO/tao/ImR_Client/ImplRepoC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ImR_Client/imr_client_export.h"
+#include "imr_client_export.h"
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
@@ -60,8 +60,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_IMR_Client_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -1092,10 +1090,8 @@ TAO_IMR_Client_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, Implementatio
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/ImR_Client/ImplRepoC.inl"
+#include "ImplRepoC.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/ImR_Client/ImplRepoC.inl b/TAO/tao/ImR_Client/ImplRepoC.inl
index ca194cdf453..3ed7c4ecff0 100644
--- a/TAO/tao/ImR_Client/ImplRepoC.inl
+++ b/TAO/tao/ImR_Client/ImplRepoC.inl
@@ -26,8 +26,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
@@ -99,5 +97,3 @@ ImplementationRepository::Administration::Administration (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ImR_Client/ImplRepoS.cpp b/TAO/tao/ImR_Client/ImplRepoS.cpp
index effee70d815..7f2910a0dbf 100644
--- a/TAO/tao/ImR_Client/ImplRepoS.cpp
+++ b/TAO/tao/ImR_Client/ImplRepoS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_IMPLREPOS_CPP_
-#include "tao/ImR_Client/ImplRepoS.h"
+#include "ImplRepoS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h"
#include "tao/PortableServer/Upcall_Command.h"
@@ -70,8 +70,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -3106,7 +3104,5 @@ POA_ImplementationRepository::Administration::_this (ACE_ENV_SINGLE_ARG_DECL)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ifndef */
diff --git a/TAO/tao/ImR_Client/ImplRepoS.h b/TAO/tao/ImR_Client/ImplRepoS.h
index 6978c642426..826a4ce7455 100644
--- a/TAO/tao/ImR_Client/ImplRepoS.h
+++ b/TAO/tao/ImR_Client/ImplRepoS.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/ImR_Client/ImplRepoC.h"
+#include "ImplRepoC.h"
#include "tao/ImR_Client/ServerObjectS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -47,8 +47,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_ImplementationRepository
{
@@ -720,7 +718,7 @@ namespace POA_ImplementationRepository
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/ImR_Client/ServerObjectC.cpp b/TAO/tao/ImR_Client/ServerObjectC.cpp
index 1d4d4afce68..8aa0505c7e2 100644
--- a/TAO/tao/ImR_Client/ServerObjectC.cpp
+++ b/TAO/tao/ImR_Client/ServerObjectC.cpp
@@ -33,7 +33,7 @@
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/ImR_Client/ServerObjectC.h"
+#include "ServerObjectC.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
@@ -44,14 +44,12 @@
#include "ace/OS_NS_string.h"
#if !defined (__ACE_INLINE__)
-#include "tao/ImR_Client/ServerObjectC.inl"
+#include "ServerObjectC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -459,5 +457,3 @@ operator>>= (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ImR_Client/ServerObjectC.h b/TAO/tao/ImR_Client/ServerObjectC.h
index 5458d8ed88c..7cdd3ddebc6 100644
--- a/TAO/tao/ImR_Client/ServerObjectC.h
+++ b/TAO/tao/ImR_Client/ServerObjectC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ImR_Client/imr_client_export.h"
+#include "imr_client_export.h"
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
@@ -53,8 +53,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_IMR_Client_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -276,10 +274,8 @@ TAO_IMR_Client_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, Implementatio
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/ImR_Client/ServerObjectC.inl"
+#include "ServerObjectC.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/ImR_Client/ServerObjectC.inl b/TAO/tao/ImR_Client/ServerObjectC.inl
index 5582a055944..8cc38b5b2e0 100644
--- a/TAO/tao/ImR_Client/ServerObjectC.inl
+++ b/TAO/tao/ImR_Client/ServerObjectC.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
@@ -62,5 +61,3 @@ ImplementationRepository::ServerObject::ServerObject (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ImR_Client/ServerObjectS.cpp b/TAO/tao/ImR_Client/ServerObjectS.cpp
index e8e9f8bc894..e85dff9426d 100644
--- a/TAO/tao/ImR_Client/ServerObjectS.cpp
+++ b/TAO/tao/ImR_Client/ServerObjectS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_ORIG_SERVEROBJECTS_CPP_
-#include "tao/ImR_Client/ServerObjectS.h"
+#include "ServerObjectS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h"
#include "tao/PortableServer/Upcall_Command.h"
@@ -65,8 +65,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -998,7 +996,5 @@ POA_ImplementationRepository::ServerObject::_this (ACE_ENV_SINGLE_ARG_DECL)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ifndef */
diff --git a/TAO/tao/ImR_Client/ServerObjectS.h b/TAO/tao/ImR_Client/ServerObjectS.h
index 06fabb5401b..f9f7c790be4 100644
--- a/TAO/tao/ImR_Client/ServerObjectS.h
+++ b/TAO/tao/ImR_Client/ServerObjectS.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/ImR_Client/ServerObjectC.h"
+#include "ServerObjectC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -46,8 +46,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_ImplementationRepository
{
@@ -265,7 +263,7 @@ namespace POA_ImplementationRepository
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/ImR_Client/ServerObject_i.cpp b/TAO/tao/ImR_Client/ServerObject_i.cpp
index 8e777df8a31..1899c8afe02 100644
--- a/TAO/tao/ImR_Client/ServerObject_i.cpp
+++ b/TAO/tao/ImR_Client/ServerObject_i.cpp
@@ -1,10 +1,9 @@
// $Id$
-#include "tao/ImR_Client/ServerObject_i.h"
-#include "tao/PortableServer/Root_POA.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/ImR_Client/ServerObject_i.h"
+#include "tao/PortableServer/Root_POA.h"
ServerObject_i::ServerObject_i (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa)
@@ -37,5 +36,3 @@ ServerObject_i::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return PortableServer::POA::_duplicate (this->poa_.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ImR_Client/ServerObject_i.h b/TAO/tao/ImR_Client/ServerObject_i.h
index a397952aab6..9ec22271d12 100644
--- a/TAO/tao/ImR_Client/ServerObject_i.h
+++ b/TAO/tao/ImR_Client/ServerObject_i.h
@@ -1,18 +1,15 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file ServerObject_i.h
*
* $Id$
*
- * @author Darrell Brunsch
- * @author Irfan Pyarali
+ * @author Darrell Brunsch and Irfan Pyarali
*/
// ===================================================================
-#ifndef TAO_SERVEROBJECT_I_H
-#define TAO_SERVEROBJECT_I_H
+#ifndef TAO_IMPLREPO_I_H
+#define TAO_IMPLREPO_I_H
#include /**/ "ace/pre.h"
@@ -25,8 +22,6 @@
#include "tao/ImR_Client/ServerObjectS.h"
#include "tao/ImR_Client/imr_client_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ServerObject_i
*
@@ -64,8 +59,6 @@ protected:
PortableServer::POA_var poa_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-#endif /* TAO_SERVEROBJECT_I_H */
+#endif /* TAO_IMPLREPO_I_H */
diff --git a/TAO/tao/Incoming_Message_Queue.cpp b/TAO/tao/Incoming_Message_Queue.cpp
index 654a385d469..61999fb1a11 100644
--- a/TAO/tao/Incoming_Message_Queue.cpp
+++ b/TAO/tao/Incoming_Message_Queue.cpp
@@ -1,12 +1,12 @@
-#include "tao/Incoming_Message_Queue.h"
-#include "tao/debug.h"
+#include "Incoming_Message_Queue.h"
+#include "debug.h"
#include "ace/Log_Msg.h"
#include "ace/Malloc_Base.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Incoming_Message_Queue.inl"
+# include "Incoming_Message_Queue.inl"
#endif /* __ACE_INLINE__ */
@@ -14,8 +14,6 @@ ACE_RCSID (tao,
Incoming_Message_Queue,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Incoming_Message_Queue::TAO_Incoming_Message_Queue (TAO_ORB_Core *orb_core)
: last_added_ (0),
size_ (0),
@@ -25,10 +23,10 @@ TAO_Incoming_Message_Queue::TAO_Incoming_Message_Queue (TAO_ORB_Core *orb_core)
TAO_Incoming_Message_Queue::~TAO_Incoming_Message_Queue (void)
{
- const CORBA::ULong sz = this->size_;
+ const int sz = this->size_;
// Delete all the nodes left behind
- for (CORBA::ULong i = 0;
+ for (int i = 0;
i < sz;
++i)
{
@@ -37,6 +35,35 @@ TAO_Incoming_Message_Queue::~TAO_Incoming_Message_Queue (void)
}
}
+size_t
+TAO_Incoming_Message_Queue::copy_tail (ACE_Message_Block &block)
+{
+ // The size of message that is copied
+ size_t n = 0;
+
+ if (this->size_ > 0)
+ {
+ // Check to see if the length of the incoming block is less than
+ // that of the <missing_data_> of the tail.
+ if ((CORBA::Long)block.length () < this->last_added_->missing_data_)
+ {
+ n = block.length ();
+ }
+ else
+ {
+ n = this->last_added_->missing_data_;
+ }
+
+ // Do the copy
+ this->last_added_->msg_block_->copy (block.rd_ptr (),
+ n);
+
+ // Decerement the missing data
+ this->last_added_->missing_data_ -= n;
+ }
+
+ return n;
+}
TAO_Queued_Data *
TAO_Incoming_Message_Queue::dequeue_head (void)
@@ -106,26 +133,73 @@ TAO_Incoming_Message_Queue::enqueue_tail (TAO_Queued_Data *nd)
return 0;
}
+TAO_Queued_Data *
+TAO_Incoming_Message_Queue::find_fragment_chain (CORBA::Octet major,
+ CORBA::Octet minor) const
+{
+ TAO_Queued_Data *found = 0;
+ if (this->last_added_ != 0)
+ {
+ TAO_Queued_Data *qd = this->last_added_->next_;
+
+ do {
+ if (qd->more_fragments_ &&
+ qd->major_version_ == major && qd->minor_version_ == minor)
+ {
+ found = qd;
+ }
+ else
+ {
+ qd = qd->next_;
+ }
+ } while (found == 0 && qd != this->last_added_->next_);
+ }
+
+ return found;
+}
+
+TAO_Queued_Data *
+TAO_Incoming_Message_Queue::find_fragment_chain (CORBA::ULong request_id) const
+{
+ TAO_Queued_Data *found = 0;
+ if (this->last_added_ != 0)
+ {
+ TAO_Queued_Data *qd = this->last_added_->next_;
+
+ do {
+ if (qd->more_fragments_ && qd->request_id_ == request_id)
+ {
+ found = qd;
+ }
+ else
+ {
+ qd = qd->next_;
+ }
+ } while (found == 0 && qd != this->last_added_->next_);
+ }
+
+ return found;
+}
+
/************************************************************************/
// Methods for TAO_Queued_Data
/************************************************************************/
/*!
- * @brief Allocate and return a new empty message block of size \a span_size
- * mimicking parameters of \a mb.
- *
- * This function allocates a new aligned message block using the same
- * allocators and flags as found in \a mb. The size of the new message
- * block is at least \a span_size; the size may be adjusted up in order
- * to accomodate alignment requirements and still fit \a span_size bytes
- * into the aligned buffer.
- *
- * @param mb message block whose parameters should be mimicked
- * @param span_size size of the new message block (will be adjusted for proper
- * alignment)
- * @return an aligned message block with rd_ptr sitting at correct
- * alignment spot, 0 on failure
+ \brief Allocate and return a new empty message block of size \a new_size mimicking parameters of \a mb.
+
+ This function allocates a new aligned message block using the same
+ allocators and flags as found in \a mb. The size of the new message
+ block is at least \a new_size; the size may be adjusted up in order
+ to accomodate alignment requirements and still fit \a new_size bytes
+ into the aligned buffer.
+
+ \param mb message block whose parameters should be mimicked
+ \param new_size size of the new message block (will be adjusted for proper alignment)
+ \return an aligned message block with rd_ptr sitting at correct alignment spot, 0 on failure
+
+ \author Thanks to Rich Seibel for helping implement the public API for ACE_Message_Block!
*/
static ACE_Message_Block*
clone_mb_nocopy_size (ACE_Message_Block *mb, size_t span_size)
@@ -134,15 +208,15 @@ clone_mb_nocopy_size (ACE_Message_Block *mb, size_t span_size)
size_t aligned_size = ACE_CDR::first_size (span_size + ACE_CDR::MAX_ALIGNMENT);
// Get the allocators
- ACE_Allocator *data_allocator = 0;
- ACE_Allocator *data_block_allocator = 0;
- ACE_Allocator *message_block_allocator = 0;
+ ACE_Allocator *data_allocator;
+ ACE_Allocator *data_block_allocator;
+ ACE_Allocator *message_block_allocator;
mb->access_allocators (data_allocator,
data_block_allocator,
message_block_allocator);
// Create a new Message Block
- ACE_Message_Block *nb = 0;
+ ACE_Message_Block *nb;
ACE_NEW_MALLOC_RETURN (nb,
static_cast<ACE_Message_Block*> (
message_block_allocator->malloc (
@@ -173,10 +247,11 @@ clone_mb_nocopy_size (ACE_Message_Block *mb, size_t span_size)
TAO_Queued_Data::TAO_Queued_Data (ACE_Allocator *alloc)
: msg_block_ (0),
missing_data_ (0),
+ byte_order_ (0),
major_version_ (0),
minor_version_ (0),
- byte_order_ (0),
more_fragments_ (0),
+ request_id_ (0),
msg_type_ (TAO_PLUGGABLE_MESSAGE_MESSAGERROR),
next_ (0),
allocator_ (alloc)
@@ -187,10 +262,11 @@ TAO_Queued_Data::TAO_Queued_Data (ACE_Message_Block *mb,
ACE_Allocator *alloc)
: msg_block_ (mb),
missing_data_ (0),
+ byte_order_ (0),
major_version_ (0),
minor_version_ (0),
- byte_order_ (0),
more_fragments_ (0),
+ request_id_ (0),
msg_type_ (TAO_PLUGGABLE_MESSAGE_MESSAGERROR),
next_ (0),
allocator_ (alloc)
@@ -200,10 +276,11 @@ TAO_Queued_Data::TAO_Queued_Data (ACE_Message_Block *mb,
TAO_Queued_Data::TAO_Queued_Data (const TAO_Queued_Data &qd)
: msg_block_ (qd.msg_block_->duplicate ()),
missing_data_ (qd.missing_data_),
+ byte_order_ (qd.byte_order_),
major_version_ (qd.major_version_),
minor_version_ (qd.minor_version_),
- byte_order_ (qd.byte_order_),
more_fragments_ (qd.more_fragments_),
+ request_id_ (qd.request_id_),
msg_type_ (qd.msg_type_),
next_ (0),
allocator_ (qd.allocator_)
@@ -320,7 +397,7 @@ TAO_Queued_Data::duplicate (TAO_Queued_Data &sqd)
return qd;
}
-int
+void
TAO_Queued_Data::consolidate (void)
{
// Is this a chain of fragments?
@@ -331,15 +408,6 @@ TAO_Queued_Data::consolidate (void)
this->msg_block_,
this->msg_block_->total_length ());
- if (0 == dest)
- {
- // out of memory
- return -1;
- }
- // Memory allocation succeeded, the new message block can hold the consolidated
- // message. The following code just copies all the data into this new message block.
- // No further memory allocation will take place.
-
// Reset the cont() parameter. We have cloned the message
// block but not the chain as we will no longer have chain.
dest->cont (0);
@@ -354,8 +422,5 @@ TAO_Queued_Data::consolidate (void)
this->msg_block_ = dest;
this->more_fragments_ = 0;
}
-
- return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Incoming_Message_Queue.h b/TAO/tao/Incoming_Message_Queue.h
index 18d324dd349..c5ca740eb13 100644
--- a/TAO/tao/Incoming_Message_Queue.h
+++ b/TAO/tao/Incoming_Message_Queue.h
@@ -22,12 +22,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+/// Forward declarations
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Queued_Data;
class TAO_Transport;
@@ -70,9 +66,63 @@ public:
TAO_Queued_Data *dequeue_tail (void);
int enqueue_tail (TAO_Queued_Data *nd);
+ /// Copy message from @a block to the tail of the queue. The size
+ /// of message that is copied to the tail node is returned. The
+ /// number of bytes copied depends on the amount of bytes needed to
+ /// make the tail node consistent.
+ size_t copy_tail (ACE_Message_Block &block);
+
/// Return the length of the queue..
CORBA::ULong queue_length (void);
+ /*!
+ @name Node Inspection Predicates
+
+ \brief These methods allow inspection of head and tail nodes for "completeness".
+
+ These methods check to see whether the node on the head or tail is
+ "complete" and ready for further processing. See each method's
+ documentation for its definition of "complete".
+ */
+ //@{
+ /*!
+ "complete" == the GIOP message at the tail is not missing any data (it may be a complete GIOP Fragment, though)
+
+ \retval -1 queue is empty
+ \retval 0 tail is not "complete"
+ \retval 1 tail is "complete"
+ */
+ int is_tail_complete (void);
+
+ /*!
+
+ "complete" == the GIOP message at the head is not missing any data
+ AND, if it's the first message in a series of GIOP fragments, all
+ the fragments have been received, parsed, and placed into the
+ queue
+
+ \retval -1 if queue is empty
+ \retval 0 if head is not "complete"
+ \retval 1 if head is "complete"
+ */
+ int is_head_complete (void);
+ //@}
+
+ /*!
+ \brief Check to see if the message at the tail (complete or incomplete) is a GIOP Fragment.
+ */
+ int is_tail_fragmented (void);
+
+ /// Return the size of data that is missing in tail of the queue.
+ size_t missing_data_tail (void) const;
+
+ /// Find the first fragment that matches the GIOP version
+ TAO_Queued_Data *find_fragment_chain (CORBA::Octet major,
+ CORBA::Octet minor) const;
+
+ /// Find the first fragment that matches the request id
+ TAO_Queued_Data *find_fragment_chain (CORBA::ULong request_id) const;
+
private:
friend class TAO_Transport;
@@ -94,10 +144,6 @@ private:
TAO_ORB_Core *orb_core_;
};
-/// Constant value indicating that the correct value is unknown yet,
-/// probably parsing the header failed due to insufficient data in buffer.
-const size_t TAO_MISSING_DATA_UNDEFINED = ~((size_t) 0); // MAX_SIZE_T
-
/************************************************************************/
/**
@@ -139,11 +185,9 @@ public:
static TAO_Queued_Data* duplicate (TAO_Queued_Data &qd);
/// Consolidate this fragments chained message blocks into one.
- /// @return -1 if consolidation failed, eg out or memory, otherwise 0
- int consolidate (void);
+ void consolidate (void);
public:
-
/// The message block that contains the message.
ACE_Message_Block *msg_block_;
@@ -154,27 +198,28 @@ public:
data missing from \a msg_block_.
*/
//@{
- /*! Data missing in the above message that hasn't been read or processed yet,
- the value TAO_MISSING_DATA_UNDEFINED indicates it hasn't been processed yet,
- otherwise greater or equal zero. */
- size_t missing_data_;
+ /*! Data missing in the above message that hasn't been read or processed yet. */
+ CORBA::Long missing_data_;
//@}
+ /// The byte order of the message that is stored in the node.
+ CORBA::Octet byte_order_;
+
/// Many protocols like GIOP have a major and minor version
/// information that would be needed to read and decipher the
/// message.
CORBA::Octet major_version_;
CORBA::Octet minor_version_;
- /// The byte order of the message that is stored in the node.
- CORBA::Octet byte_order_;
-
/// Some messages can be fragmented by the protocol (this is an ORB
/// level fragmentation on top of the TCP/IP fragmentation. This
/// member indicates whether the message that we have recd. and
/// queue already has more fragments that is missing..
CORBA::Octet more_fragments_;
+ /// The fragment request id
+ CORBA::ULong request_id_;
+
/// The message type of the message
TAO_Pluggable_Message_Type msg_type_;
@@ -192,10 +237,9 @@ private:
ACE_Allocator *allocator_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-# include "tao/Incoming_Message_Queue.inl"
+# include "Incoming_Message_Queue.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Incoming_Message_Queue.inl b/TAO/tao/Incoming_Message_Queue.inl
index 76ba787dd8e..99bcb4978d3 100644
--- a/TAO/tao/Incoming_Message_Queue.inl
+++ b/TAO/tao/Incoming_Message_Queue.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+// -*- C++ -*-
/************************************************************************/
// Methods for TAO_Incoming_Message_Queue
/************************************************************************/
@@ -13,6 +10,57 @@ TAO_Incoming_Message_Queue::queue_length (void)
return this->size_;
}
+ACE_INLINE int
+TAO_Incoming_Message_Queue::is_tail_complete (void)
+{
+ // If the size is 0 return -1
+ if (this->size_ == 0)
+ return -1;
+
+ if (this->size_ &&
+ this->last_added_->missing_data_ == 0)
+ return 1;
+
+ return 0;
+}
+
+ACE_INLINE int
+TAO_Incoming_Message_Queue::is_head_complete (void)
+{
+ if (this->size_ == 0)
+ return -1;
+
+ if (this->size_ &&
+ this->last_added_->next_->missing_data_ == 0 &&
+ !this->last_added_->next_->more_fragments_)
+ return 1;
+
+ return 0;
+}
+
+ACE_INLINE int
+TAO_Incoming_Message_Queue::is_tail_fragmented (void)
+{
+ if (this->size_ == 0)
+ return 0;
+
+ if (this->size_ &&
+ this->last_added_->more_fragments_)
+ return 1;
+
+ return 0;
+}
+
+ACE_INLINE size_t
+TAO_Incoming_Message_Queue::missing_data_tail (void) const
+{
+ if (this->size_ != 0)
+ return this->last_added_->missing_data_;
+
+ return 0;
+}
+
+
/************************************************************************/
// Methods for TAO_Queued_Data
/************************************************************************/
@@ -42,5 +90,3 @@ TAO_Queued_Data::replace_data_block (ACE_Message_Block &mb)
// Remove the DONT_DELETE flags from mb
mb.clr_self_flags (ACE_Message_Block::DONT_DELETE);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Incoming_Message_Stack.cpp b/TAO/tao/Incoming_Message_Stack.cpp
deleted file mode 100644
index 8f704b65d9d..00000000000
--- a/TAO/tao/Incoming_Message_Stack.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# include "tao/Incoming_Message_Stack.h"
-
-#if !defined (__ACE_INLINE__)
-# include "tao/Incoming_Message_Stack.inl"
-#endif /* __ACE_INLINE__ */
-
-ACE_RCSID (tao,
- Incoming_Message_Stack,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-namespace TAO
-{
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Incoming_Message_Stack.h b/TAO/tao/Incoming_Message_Stack.h
deleted file mode 100755
index 81f268aa2cb..00000000000
--- a/TAO/tao/Incoming_Message_Stack.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Incoming_Message_Stack.h
- *
- * $Id$
- *
- * @author Frank Rehberger <frehberg@prismtech.com>
- */
-//=============================================================================
-
-#ifndef TAO_INCOMING_MESSAGE_STACK_H
-#define TAO_INCOMING_MESSAGE_STACK_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/Incoming_Message_Queue.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x582)
-#include "tao/TAO_Export.h"
-#endif
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
-/**
- * @class Incoming_Message_Stack
- *
- * @brief Implements stack for TAO_Queued_Data.
- *
- * Internal class, providing stack functionality for TAO_Queued_Data
- * objects. Stack operations don't require memory allocation.
-*/
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x582)
-class TAO_Export Incoming_Message_Stack
-#else
-class Incoming_Message_Stack
-#endif
-{
-public:
- /// default constructor, intiliazes empty stack.
- Incoming_Message_Stack();
-
- /// destructor, releases all elements on stack
- ~Incoming_Message_Stack() ;
-
- /// pushing a new element onto stack,
- /// @a data must be a valid pointer, not NULL
- void push(TAO_Queued_Data *data);
-
- /// removing top element of stack,
- /// @return 0 for Ok and @a data is defined, -1 for error
- int pop (TAO_Queued_Data* &data);
-
- /// peeking top element of stack
- /// @return 0 for Ok, -1 for error
- int top (TAO_Queued_Data* &data);
-
-private:
- /// top element of stack
- TAO_Queued_Data *top_;
-
-private:
- /// Default Copy-Constructor - not for public usage.
- Incoming_Message_Stack (const Incoming_Message_Stack&);
-
- /// Assignment operator - not for public usage
- Incoming_Message_Stack& operator= (Incoming_Message_Stack& other);
-};
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-# include "tao/Incoming_Message_Stack.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /*TAO_INCOMING_MESSAGE_STACK_H*/
diff --git a/TAO/tao/Incoming_Message_Stack.inl b/TAO/tao/Incoming_Message_Stack.inl
deleted file mode 100755
index 75b724c7103..00000000000
--- a/TAO/tao/Incoming_Message_Stack.inl
+++ /dev/null
@@ -1,71 +0,0 @@
-// -*- C++ -*-
-//
-//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/************************************************************************/
-// Methods for TAO_Incoming_Message_Stack
-/************************************************************************/
-namespace TAO
-{
-ACE_INLINE
-Incoming_Message_Stack::Incoming_Message_Stack()
-: top_(0)
-{
-}
-
-ACE_INLINE
-Incoming_Message_Stack::~Incoming_Message_Stack()
-{
- // Delete all the nodes left behind
- TAO_Queued_Data *del = 0;
-
- while (this->pop (del) != -1)
- {
- TAO_Queued_Data::release (del);
- }
-}
-
-ACE_INLINE void
-Incoming_Message_Stack::push(TAO_Queued_Data *data)
-{
- data->next_ = this->top_;
- this->top_ = data;
-}
-
-
- /* @return 0 for Ok, -1 for error */
-ACE_INLINE int
-Incoming_Message_Stack::pop (TAO_Queued_Data* &data)
-{
- if (this->top_ == 0)
- return -1;
-
- data = this->top_;
- this->top_ = data->next_;
-
- return 0;
-}
-
-ACE_INLINE int
-Incoming_Message_Stack::top (TAO_Queued_Data* &data)
-{
- if (this->top_ == 0)
- return -1;
-
- data = this->top_;
-
- return 0;
-}
-
-/*
-ACE_INLINE bool
-Incoming_Message_Stack::is_empty ()
-{
- return this->top_ == 0;
-}
-*/
-
-} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Intrusive_Ref_Count_Base_T.cpp b/TAO/tao/Intrusive_Ref_Count_Base_T.cpp
deleted file mode 100644
index 2e25bad2b53..00000000000
--- a/TAO/tao/Intrusive_Ref_Count_Base_T.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// $Id$
-
-#ifndef TAO_INTRUSIVE_REF_COUNT_BASE_T_CPP
-#define TAO_INTRUSIVE_REF_COUNT_BASE_T_CPP
-
-#include "tao/Intrusive_Ref_Count_Base_T.h"
-
-#if !defined (__ACE_INLINE__)
-#include "tao/Intrusive_Ref_Count_Base_T.inl"
-#endif /* __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-template <typename T>
-TAO_Intrusive_Ref_Count_Base<T>::~TAO_Intrusive_Ref_Count_Base()
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_INTRUSIVE_REF_COUNT_BASE_T_CPP */
diff --git a/TAO/tao/Intrusive_Ref_Count_Base_T.h b/TAO/tao/Intrusive_Ref_Count_Base_T.h
deleted file mode 100644
index 6c596d8f0f8..00000000000
--- a/TAO/tao/Intrusive_Ref_Count_Base_T.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Intrusive_Ref_Count_Base_T.h
- *
- * $Id$
- *
- * @authors Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_INTRUSIVE_REF_COUNT_BASE_T_H
-#define TAO_INTRUSIVE_REF_COUNT_BASE_T_H
-
-#include /**/ "ace/pre.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/Atomic_Op.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_Intrusive_Ref_Count_Base<ACE_LOCK>
- *
- * @brief Template base class to provide intrusive reference-counting
- * to subclasses. This makes the subclass capable of using a
- * TAO_Intrusive_Ref_Count_Handle<X> class as a smart-pointer
- * to an X object. In this case, X is a sub-class of this class,
- * TAO_Intrusive_Ref_Count_Base<ACE_LOCK>. The ACE_LOCK type is
- * used to protect the atomic reference count data member.
- *
- */
-template <class ACE_LOCK>
-class TAO_Intrusive_Ref_Count_Base
-{
-public:
-
- virtual ~TAO_Intrusive_Ref_Count_Base (void);
-
- void _add_ref (void);
- void _remove_ref (void);
-
-
-protected:
-
- TAO_Intrusive_Ref_Count_Base (void);
-
-
-private:
-
- ACE_Atomic_Op<ACE_LOCK, long> ref_count_;
-
- // Prevent copying/assignment.
- TAO_Intrusive_Ref_Count_Base (const TAO_Intrusive_Ref_Count_Base&);
- TAO_Intrusive_Ref_Count_Base& operator= (const TAO_Intrusive_Ref_Count_Base&);
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-#include "tao/Intrusive_Ref_Count_Base_T.inl"
-#endif /* __ACE_INLINE__ */
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Intrusive_Ref_Count_Base_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("Intrusive_Ref_Count_Base_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_INTRUSIVE_REF_COUNT_BASE_T_H */
diff --git a/TAO/tao/Intrusive_Ref_Count_Base_T.inl b/TAO/tao/Intrusive_Ref_Count_Base_T.inl
deleted file mode 100644
index 26e5026c413..00000000000
--- a/TAO/tao/Intrusive_Ref_Count_Base_T.inl
+++ /dev/null
@@ -1,38 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Base<T>::TAO_Intrusive_Ref_Count_Base (void)
- : ref_count_(1)
-{}
-
-
-template <typename T>
-ACE_INLINE
-void
-TAO_Intrusive_Ref_Count_Base<T>::_add_ref (void)
-{
- ++this->ref_count_;
-}
-
-
-template <typename T>
-ACE_INLINE
-void
-TAO_Intrusive_Ref_Count_Base<T>::_remove_ref (void)
-{
- long const new_count = --this->ref_count_;
-
- if (new_count != 0)
- {
- return;
- }
-
- delete this;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Intrusive_Ref_Count_Handle_T.cpp b/TAO/tao/Intrusive_Ref_Count_Handle_T.cpp
deleted file mode 100644
index 5c8d02b76ba..00000000000
--- a/TAO/tao/Intrusive_Ref_Count_Handle_T.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// $Id$
-
-#ifndef TAO_INTRUSIVE_REF_COUNT_HANDLE_T_CPP
-#define TAO_INTRUSIVE_REF_COUNT_HANDLE_T_CPP
-
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-#if !defined (__ACE_INLINE__)
-#include "tao/Intrusive_Ref_Count_Handle_T.inl"
-#endif /* __ACE_INLINE__ */
-
-#endif /* TAO_INTRUSIVE_REF_COUNT_HANDLE_T_CPP */
diff --git a/TAO/tao/Intrusive_Ref_Count_Handle_T.h b/TAO/tao/Intrusive_Ref_Count_Handle_T.h
deleted file mode 100644
index 5138d3ad281..00000000000
--- a/TAO/tao/Intrusive_Ref_Count_Handle_T.h
+++ /dev/null
@@ -1,159 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Intrusive_Ref_Count_Handle_T.h
- *
- * $Id$
- *
- * @authors Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_INTRUSIVE_REF_COUNT_HANDLE_T_H
-#define TAO_INTRUSIVE_REF_COUNT_HANDLE_T_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_Intrusive_Ref_Count_Handle<T>
- *
- * @brief Template class for smart-pointer to (intrusively) ref-counted object.
- *
- * This class behaves just like a xxx_var type behaves. The only significant
- * difference is that this class provides a "bool is_nil() const" method,
- * and xxx_var types don't (they use the "bool CORBA::is_nil(xxx_ptr ptr)"
- * method instead). For example,
- *
- * typedef TAO_Intrusive_Ref_Count_Handle<PortableServer::ServantBase>
- * MyServantBase_var;
- *
- * The MyServantBase_var and the PortableServer::ServantBase_var are
- * nearly idenitical. The only difference is that the MyServantBase_var
- * has a "isNil()" method that indicates whether or not the smart pointer
- * is in the 'nil' state or not.
- *
- * This class can be used to "safely" deal with an instance of a servant.
- * For example, we can use a single variable
- * TAO_Intrusive_Ref_Count_Handle<Foo_i>
- *
- * typedef TAO_Intrusive_Ref_Count_Handle<Foo_i> Foo_i_var;
- * Foo_i_var servant_;
- *
- * instead of using two variables
- *
- * PortableServer::ServantBase_var servant_holder_;
- * Foo_i* servant_;
-
- * to deal with the servant memory.
- *
- * The Foo_i_var type does everything that the PortableServer::ServantBase_var
- * type does. In addition, the Foo_i_var type can provide access to the servant
- * as derived class via the arrow operator.
- */
-template <typename T>
-class TAO_Intrusive_Ref_Count_Handle
-{
-public:
-
- /// Default Constructor - enters the "nil" state.
- TAO_Intrusive_Ref_Count_Handle (void);
-
- /// Ctor - By default, takes ownership of passed-in "copy" of reference
- /// to T. But the second argument (bool) can be changed from
- /// the default value of 'true' to the non-default value of 'false'.
- /// The second argument dictates whether or not this handle object
- /// should take ownership of the passed-in pointer to the T object.
- /// By default, it takes ownership, leaving the reference counter
- /// of the T object unchanged. When it is instructed to not take
- /// ownership (false value for second arg), then the reference
- /// counter of the T object will be incremented so that this
- /// handle object has its own "copy".
- TAO_Intrusive_Ref_Count_Handle (T* p, bool take_ownership = true);
-
- /// Copy Constructor - claims a "copy" of rhs object's reference to T.
- TAO_Intrusive_Ref_Count_Handle (const TAO_Intrusive_Ref_Count_Handle& b);
-
- /// Destructor
- ~TAO_Intrusive_Ref_Count_Handle (void);
-
- /// Assignment Operator with T* argument.
- /// Takes ownership of passed-in "copy" of reference to T.
- TAO_Intrusive_Ref_Count_Handle& operator= (T* p);
-
- /// Assignment Operator with const TAO_Smart_Ptr<T>& argument.
- /// Claims a "copy" of rhs object's reference to T.
- TAO_Intrusive_Ref_Count_Handle& operator=
- (const TAO_Intrusive_Ref_Count_Handle& b);
-
- /// Const Accessor to underlying pointer (T*) using arrow (->) operator.
- T* operator->() const;
-
- /// Returns true if underlying pointer is NULL (0).
- /// Returns false otherwise.
- bool is_nil (void) const;
-
- /// Used to pass the underlying pointer as an "IN" argument to a method.
- T* in (void) const;
-
- /// Used to pass the underlying pointer as an "IN/OUT" argument to a method.
- T*& inout (void);
-
- /// Used to pass the underlying pointer as an "OUT" argument to a method.
- T*& out (void);
-
- /// Used to take-away the underlying pointer from this smart pointer object.
- /// Caller becomes responsibe for the returned "copy" to the reference.
- /// Always leaves the smart pointer in the "nil" state upon return.
- T* _retn (void);
-
-
-private:
-
- /// Claim a "copy" of the reference-counted object by adding
- /// one to its reference counter. Do nothing if this smart pointer
- /// object is currently in the "nil" state.
- void claim (void);
-
- /// Drop our "copy" of the reference-counted object by removing
- /// one from its reference counter. Do nothing if this smart pointer
- /// object is currently in the "nil" state.
- /// Note that this method will always leave this smart pointer
- /// in the "nil" state upon its return.
- void drop (void);
-
-
- /// The underlying pointer to the (intrusively) reference-counted object.
- /// Set to 0 when this smart pointer is in the "nil" state. Otherwise,
- /// this smart pointer always owns a (reference-counted) "copy" of the
- /// object pointed to by the ptr_ data member.
- T* ptr_;
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-#include "tao/Intrusive_Ref_Count_Handle_T.inl"
-#endif /* __ACE_INLINE__ */
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Intrusive_Ref_Count_Handle_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("Intrusive_Ref_Count_Handle_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_INTRUSIVE_REF_COUNT_HANDLE_T_H */
diff --git a/TAO/tao/Intrusive_Ref_Count_Handle_T.inl b/TAO/tao/Intrusive_Ref_Count_Handle_T.inl
deleted file mode 100644
index 1ca7c2767bb..00000000000
--- a/TAO/tao/Intrusive_Ref_Count_Handle_T.inl
+++ /dev/null
@@ -1,162 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Handle<T>::TAO_Intrusive_Ref_Count_Handle (void)
- : ptr_(0)
-{
-}
-
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Handle<T>::TAO_Intrusive_Ref_Count_Handle (
- T* p,
- bool take_ownership)
- : ptr_(p)
-{
- if (!take_ownership)
- {
- this->claim ();
- }
-}
-
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Handle<T>::TAO_Intrusive_Ref_Count_Handle (
- const TAO_Intrusive_Ref_Count_Handle<T>& b)
- : ptr_(b.ptr_)
-{
- this->claim();
-}
-
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Handle<T>::~TAO_Intrusive_Ref_Count_Handle()
-{
- this->drop();
-}
-
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Handle<T>&
-TAO_Intrusive_Ref_Count_Handle<T>::operator=(T* p)
-{
- if (this->ptr_ != p)
- {
- this->drop();
- this->ptr_ = p;
- }
-
- return *this;
-}
-
-
-template <typename T>
-ACE_INLINE
-TAO_Intrusive_Ref_Count_Handle<T>&
-TAO_Intrusive_Ref_Count_Handle<T>::operator=
- (const TAO_Intrusive_Ref_Count_Handle<T>& b)
-{
- // Strongly exception-safe assignment through the usual copy and
- // swap technique.
-
- TAO_Intrusive_Ref_Count_Handle<T> tmp (b);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
-
- return *this;
-}
-
-
-template <typename T>
-ACE_INLINE
-T*
-TAO_Intrusive_Ref_Count_Handle<T>::operator->() const
-{
- return this->ptr_;
-}
-
-
-template <typename T>
-ACE_INLINE
-bool
-TAO_Intrusive_Ref_Count_Handle<T>::is_nil() const
-{
- return this->ptr_ == 0;
-}
-
-
-template <typename T>
-ACE_INLINE
-T*
-TAO_Intrusive_Ref_Count_Handle<T>::in() const
-{
- return this->ptr_;
-}
-
-
-template <typename T>
-ACE_INLINE
-T*&
-TAO_Intrusive_Ref_Count_Handle<T>::inout()
-{
- return this->ptr_;
-}
-
-
-template <typename T>
-ACE_INLINE
-T*&
-TAO_Intrusive_Ref_Count_Handle<T>::out()
-{
- this->drop();
- return this->ptr_;
-}
-
-
-template <typename T>
-ACE_INLINE
-T*
-TAO_Intrusive_Ref_Count_Handle<T>::_retn()
-{
- T* retval = this->ptr_;
- this->ptr_ = 0;
- return retval;
-}
-
-
-template <typename T>
-ACE_INLINE
-void
-TAO_Intrusive_Ref_Count_Handle<T>::claim()
-{
- if (this->ptr_ != 0)
- {
- this->ptr_->_add_ref();
- }
-}
-
-
-template <typename T>
-ACE_INLINE
-void
-TAO_Intrusive_Ref_Count_Handle<T>::drop()
-{
- if (this->ptr_ != 0)
- {
- this->ptr_->_remove_ref();
- this->ptr_ = 0;
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Invocation_Adapter.cpp b/TAO/tao/Invocation_Adapter.cpp
index 612b6bbbb18..98ec2a02f51 100644
--- a/TAO/tao/Invocation_Adapter.cpp
+++ b/TAO/tao/Invocation_Adapter.cpp
@@ -1,17 +1,17 @@
//$Id$
-#include "tao/Invocation_Adapter.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/operation_details.h"
-#include "tao/Stub.h"
-#include "tao/ORB_Core.h"
-#include "tao/Synch_Invocation.h"
-#include "tao/debug.h"
-#include "tao/Collocated_Invocation.h"
-#include "tao/Transport.h"
-#include "tao/Transport_Mux_Strategy.h"
-#include "tao/Collocation_Proxy_Broker.h"
-#include "tao/GIOP_Utils.h"
+#include "Invocation_Adapter.h"
+#include "Profile_Transport_Resolver.h"
+#include "operation_details.h"
+#include "Stub.h"
+#include "ORB_Core.h"
+#include "Synch_Invocation.h"
+#include "debug.h"
+#include "Collocated_Invocation.h"
+#include "Transport.h"
+#include "Transport_Mux_Strategy.h"
+#include "Collocation_Proxy_Broker.h"
+
#if !defined (__ACE_INLINE__)
# include "tao/Invocation_Adapter.inl"
#endif /* __ACE_INLINE__ */
@@ -21,8 +21,6 @@ ACE_RCSID (tao,
Invocation_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Invocation_Adapter::~Invocation_Adapter (void)
@@ -191,16 +189,8 @@ namespace TAO
effective_target =
coll_inv.steal_forwarded_reference ();
-#if TAO_HAS_INTERCEPTORS == 1
- const bool is_permanent_forward =
- (coll_inv.reply_status() == TAO_GIOP_LOCATION_FORWARD_PERM);
-#else
- const bool is_permanent_forward = false;
-#endif
-
(void) this->object_forwarded (effective_target,
- stub,
- is_permanent_forward
+ stub
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (TAO_INVOKE_FAILURE);
}
@@ -276,6 +266,8 @@ namespace TAO
// Update the request id now that we have a transport
details.request_id (resolver.transport ()->tms ()->request_id ());
+ Invocation_Status s = TAO_INVOKE_FAILURE;
+
if (this->type_ == TAO_ONEWAY_INVOCATION)
{
return this->invoke_oneway (details,
@@ -293,7 +285,7 @@ namespace TAO
ACE_ENV_ARG_PARAMETER);
}
- return TAO_INVOKE_FAILURE;
+ return s;
}
Invocation_Status
@@ -330,16 +322,8 @@ namespace TAO
effective_target =
synch.steal_forwarded_reference ();
-#if TAO_HAS_INTERCEPTORS == 1
- const bool is_permanent_forward =
- (synch.reply_status() == TAO_GIOP_LOCATION_FORWARD_PERM);
-#else
- const bool is_permanent_forward = false;
-#endif
-
this->object_forwarded (effective_target,
- r.stub (),
- is_permanent_forward
+ r.stub ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (TAO_INVOKE_FAILURE);
}
@@ -369,15 +353,8 @@ namespace TAO
effective_target =
synch.steal_forwarded_reference ();
-#if TAO_HAS_INTERCEPTORS == 1
- const bool is_permanent_forward =
- (synch.reply_status() == TAO_GIOP_LOCATION_FORWARD_PERM);
-#else
- const bool is_permanent_forward = false;
-#endif
this->object_forwarded (effective_target,
- r.stub (),
- is_permanent_forward
+ r.stub ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (TAO_INVOKE_FAILURE);
}
@@ -387,8 +364,7 @@ namespace TAO
void
Invocation_Adapter::object_forwarded (CORBA::Object_var &effective_target,
- TAO_Stub *stub,
- CORBA::Boolean permanent_forward
+ TAO_Stub *stub
ACE_ENV_ARG_DECL)
{
// The object pointer has to be changed to a TAO_Stub pointer
@@ -405,7 +381,7 @@ namespace TAO
// Reset the profile in the stubs
- stub->add_forward_profiles (stubobj->base_profiles (), permanent_forward);
+ stub->add_forward_profiles (stubobj->base_profiles ());
if (stub->next_profile () == 0)
ACE_THROW (CORBA::TRANSIENT (
@@ -417,5 +393,3 @@ namespace TAO
return;
}
} // End namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Invocation_Adapter.h b/TAO/tao/Invocation_Adapter.h
index 122c7da64a1..66e3f223499 100644
--- a/TAO/tao/Invocation_Adapter.h
+++ b/TAO/tao/Invocation_Adapter.h
@@ -29,14 +29,10 @@
#include "tao/CORBA_methods.h"
#include "tao/Pseudo_VarOut_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Stub;
+class ACE_Time_Value;
+
namespace CORBA
{
@@ -235,8 +231,7 @@ namespace TAO
/// Helper method that takes care of setting the profiles within
/// the stub object if the target gets forwarded
void object_forwarded (CORBA::Object_var &effective_target,
- TAO_Stub *stub,
- CORBA::Boolean permanent_forward
+ TAO_Stub *stub
ACE_ENV_ARG_DECL);
/// Helper method to set the response flags within @a details
@@ -283,7 +278,6 @@ namespace TAO
};
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/Invocation_Adapter.inl"
diff --git a/TAO/tao/Invocation_Adapter.inl b/TAO/tao/Invocation_Adapter.inl
index 3ee1410310c..b27c3070466 100644
--- a/TAO/tao/Invocation_Adapter.inl
+++ b/TAO/tao/Invocation_Adapter.inl
@@ -1,9 +1,5 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE
@@ -16,6 +12,7 @@ namespace TAO
Collocation_Proxy_Broker *p,
Invocation_Type type,
Invocation_Mode mode)
+
: target_ (target)
, args_ (args)
, number_args_ (arg_number)
@@ -27,5 +24,3 @@ namespace TAO
{
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Invocation_Base.cpp b/TAO/tao/Invocation_Base.cpp
index dd2ab25d2cf..61f210e8d08 100644
--- a/TAO/tao/Invocation_Base.cpp
+++ b/TAO/tao/Invocation_Base.cpp
@@ -1,19 +1,19 @@
-#include "tao/Invocation_Base.h"
-#include "tao/Stub.h"
-#include "tao/operation_details.h"
-#include "tao/ORB_Core.h"
-#include "tao/SystemException.h"
-#include "tao/PortableInterceptor.h" /* Must always be visible. */
+#include "Invocation_Base.h"
+#include "Stub.h"
+#include "operation_details.h"
+#include "ORB_Core.h"
+#include "SystemException.h"
+#include "PortableInterceptor.h" /* Must always be visible. */
#include "ace/Dynamic_Service.h"
#if TAO_HAS_INTERCEPTORS == 1
-# include "tao/PortableInterceptorC.h"
-# include "tao/ClientRequestInterceptor_Adapter_Factory.h"
+# include "PortableInterceptorC.h"
+# include "ClientRequestInterceptor_Adapter_Factory.h"
#endif /* TAO_HAS_INTERCEPTORS == 1*/
#if !defined (__ACE_INLINE__)
-# include "tao/Invocation_Base.inl"
+# include "Invocation_Base.inl"
#endif /* __ACE_INLINE__ */
@@ -22,16 +22,13 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Invocation_Base::Invocation_Base (CORBA::Object_ptr ot,
CORBA::Object_ptr t,
TAO_Stub *stub,
TAO_Operation_Details &details,
- bool response_expected,
- bool request_is_remote)
+ bool response_expected)
: details_ (details)
, forwarded_to_ (0)
, response_expected_ (response_expected)
@@ -44,12 +41,8 @@ namespace TAO
, stack_size_ (0)
, invoke_status_ (TAO_INVOKE_START)
, caught_exception_ (0)
- , is_remote_request_ (request_is_remote)
#endif /*TAO_HAS_INTERCEPTORS == 1*/
{
-#if TAO_HAS_INTERCEPTORS == 0
- ACE_UNUSED_ARG (request_is_remote);
-#endif /*TAO_HAS_INTERCEPTORS == 0*/
}
Invocation_Base::~Invocation_Base (void)
@@ -276,5 +269,3 @@ namespace TAO
}
#endif /*TAO_HAS_INTERCEPTORS == 1*/
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Invocation_Base.h b/TAO/tao/Invocation_Base.h
index 328127e9dc0..fafe93b6d1e 100644
--- a/TAO/tao/Invocation_Base.h
+++ b/TAO/tao/Invocation_Base.h
@@ -29,8 +29,6 @@
#include "tao/ClientRequestInterceptor_Adapter.h"
#endif /* TAO_HAS_INTERCEPTORS == 1 */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Service_Context;
class TAO_Operation_Details;
class TAO_Stub;
@@ -127,8 +125,7 @@ namespace TAO
CORBA::Object_ptr target,
TAO_Stub *stub,
TAO_Operation_Details &op,
- bool response_expected,
- bool request_is_remote);
+ bool response_expected);
protected:
/// The operation details on which we are operating on.
@@ -190,11 +187,6 @@ namespace TAO
PortableInterceptor::ReplyStatus reply_status (void) const;
- /// Accessor used to determine if the current invocation is part
- /// of a remote request, and if not, it will be considered to be
- /// part of a collocated request.
- bool is_remote_request() const;
-
protected:
/// Helper method to invoke send_request interception call to all
/// the registered interceptors.
@@ -231,19 +223,13 @@ namespace TAO
private:
/// Pointer to the caught exception.
CORBA::Exception *caught_exception_;
-
- /// Flag used to distinguish a remote invocation versus a collocated
- /// (thru-poa) invocation.
- bool is_remote_request_;
#endif /*TAO_HAS_INTERCEPTORS*/
//@}
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Invocation_Base.inl"
+# include "Invocation_Base.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Invocation_Base.inl b/TAO/tao/Invocation_Base.inl
index c6a27ca28ab..fcdf1d95f41 100644
--- a/TAO/tao/Invocation_Base.inl
+++ b/TAO/tao/Invocation_Base.inl
@@ -1,9 +1,5 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE TAO_ORB_Core *
@@ -84,13 +80,7 @@ namespace TAO
{
return this->invoke_status_;
}
+#endif /*TAO_HAS_INTERCEPTORS*/
- ACE_INLINE bool
- Invocation_Base::is_remote_request (void) const
- {
- return this->is_remote_request_;
- }
-#endif /* TAO_HAS_INTERCEPTORS */
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+}
diff --git a/TAO/tao/Invocation_Endpoint_Selectors.cpp b/TAO/tao/Invocation_Endpoint_Selectors.cpp
index 6d6c0957427..f77b369c63a 100644
--- a/TAO/tao/Invocation_Endpoint_Selectors.cpp
+++ b/TAO/tao/Invocation_Endpoint_Selectors.cpp
@@ -1,20 +1,22 @@
+// -*- C++ -*-
//$Id$
#include "tao/Invocation_Endpoint_Selectors.h"
#include "tao/Stub.h"
#include "tao/Profile.h"
#include "tao/ORB_Core.h"
#include "tao/IIOP_Endpoint.h"
-#include "tao/Base_Transport_Property.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/ORB_Constants.h"
-#include "tao/SystemException.h"
+#include "Base_Transport_Property.h"
+#include "Profile_Transport_Resolver.h"
+#include "ORB_Constants.h"
+#include "SystemException.h"
ACE_RCSID (tao,
Invocation_Endpoint_Selectors,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_Invocation_Endpoint_Selector::TAO_Invocation_Endpoint_Selector (void)
+{
+}
TAO_Invocation_Endpoint_Selector::~TAO_Invocation_Endpoint_Selector (void)
{
@@ -22,6 +24,10 @@ TAO_Invocation_Endpoint_Selector::~TAO_Invocation_Endpoint_Selector (void)
// ****************************************************************
+TAO_Default_Endpoint_Selector::TAO_Default_Endpoint_Selector (void)
+{
+}
+
TAO_Default_Endpoint_Selector::~TAO_Default_Endpoint_Selector (void)
{
}
@@ -160,5 +166,3 @@ TAO_Default_Endpoint_Selector::select_endpoint (
ACE_THROW (CORBA::TRANSIENT (CORBA::OMGVMCID | 2,
CORBA::COMPLETED_NO));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Invocation_Endpoint_Selectors.h b/TAO/tao/Invocation_Endpoint_Selectors.h
index 29b5580d88a..776d6bc8411 100644
--- a/TAO/tao/Invocation_Endpoint_Selectors.h
+++ b/TAO/tao/Invocation_Endpoint_Selectors.h
@@ -17,24 +17,16 @@
#define TAO_INVOCATION_ENDPOINT_SELECTOR_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/CORBA_macros.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/CORBA_macros.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/TAO_Export.h"
class TAO_MProfile;
+class ACE_Time_Value;
namespace TAO
{
@@ -63,6 +55,8 @@ namespace CORBA
class TAO_Export TAO_Invocation_Endpoint_Selector
{
public:
+ /// Constructor.
+ TAO_Invocation_Endpoint_Selector (void);
/// Destructor.
virtual ~TAO_Invocation_Endpoint_Selector (void);
@@ -88,10 +82,12 @@ public:
* profile in the IOR. If that doesn't work, try the next
* profile, and so on.
*/
-class TAO_Export TAO_Default_Endpoint_Selector
- : public TAO_Invocation_Endpoint_Selector
+class TAO_Export TAO_Default_Endpoint_Selector :
+ public TAO_Invocation_Endpoint_Selector
{
public:
+ /// Constructor.
+ TAO_Default_Endpoint_Selector (void);
/// Destructor.
virtual ~TAO_Default_Endpoint_Selector (void);
@@ -101,8 +97,5 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_INVOCATION_ENDPOINT_SELECTOR_H */
diff --git a/TAO/tao/Invocation_Utils.h b/TAO/tao/Invocation_Utils.h
index 9b8804ea690..083f69cc0b1 100644
--- a/TAO/tao/Invocation_Utils.h
+++ b/TAO/tao/Invocation_Utils.h
@@ -21,10 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
enum Invocation_Status
@@ -71,7 +67,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_INVOCATION_UTILS_H */
diff --git a/TAO/tao/LF_CH_Event.cpp b/TAO/tao/LF_CH_Event.cpp
index 4e73d328828..492ed96e02a 100644
--- a/TAO/tao/LF_CH_Event.cpp
+++ b/TAO/tao/LF_CH_Event.cpp
@@ -1,11 +1,9 @@
-#include "tao/LF_CH_Event.h"
+#include "LF_CH_Event.h"
ACE_RCSID(tao,
LF_Invocation_Event,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_CH_Event::TAO_LF_CH_Event (void)
: TAO_LF_Event (),
prev_state_ (TAO_LF_Event::LFS_IDLE)
@@ -96,10 +94,9 @@ TAO_LF_CH_Event::set_state (int new_state)
}
}
+
int
TAO_LF_CH_Event::is_state_final (void)
{
return this->state_ == TAO_LF_Event::LFS_CONNECTION_CLOSED;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_CH_Event.h b/TAO/tao/LF_CH_Event.h
index 2a92f9007ab..af303857916 100644
--- a/TAO/tao/LF_CH_Event.h
+++ b/TAO/tao/LF_CH_Event.h
@@ -15,14 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/LF_Event.h"
+#include "LF_Event.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LF_CH_Event
*
@@ -107,8 +105,6 @@ private:
int prev_state_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LF_CH_EVENT_H */
diff --git a/TAO/tao/LF_Connect_Strategy.cpp b/TAO/tao/LF_Connect_Strategy.cpp
index d1d71b550e3..68873f5fe66 100644
--- a/TAO/tao/LF_Connect_Strategy.cpp
+++ b/TAO/tao/LF_Connect_Strategy.cpp
@@ -1,18 +1,15 @@
-#include "tao/LF_Connect_Strategy.h"
-#include "tao/Connection_Handler.h"
-#include "tao/LF_Follower.h"
-#include "tao/Leader_Follower.h"
-#include "tao/Transport.h"
-#include "tao/ORB_Core.h"
+#include "LF_Connect_Strategy.h"
+#include "Connection_Handler.h"
+#include "LF_Follower.h"
+#include "Leader_Follower.h"
+#include "Transport.h"
+#include "ORB_Core.h"
#include "ace/Synch_Options.h"
ACE_RCSID(tao,
LF_Connect_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Connect_Strategy::TAO_LF_Connect_Strategy (
TAO_ORB_Core *orb_core)
: TAO_Connect_Strategy (orb_core)
@@ -77,5 +74,3 @@ TAO_LF_Connect_Strategy::wait (TAO_Transport *transport,
return result;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Connect_Strategy.h b/TAO/tao/LF_Connect_Strategy.h
index 4cff8ed7976..5ca99679939 100644
--- a/TAO/tao/LF_Connect_Strategy.h
+++ b/TAO/tao/LF_Connect_Strategy.h
@@ -15,20 +15,15 @@
#include /**/ "ace/pre.h"
-#include "tao/Connect_Strategy.h"
+#include "Connect_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+class TAO_Connector;
class ACE_Time_Value;
class ACE_Synch_Options;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Connector;
/**
* @class TAO_LF_Connect_Strategy
@@ -62,8 +57,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_LF_CONNECT_STRATEGY_H*/
diff --git a/TAO/tao/LF_Event.cpp b/TAO/tao/LF_Event.cpp
index cc69d6fcea3..d3c5673b368 100644
--- a/TAO/tao/LF_Event.cpp
+++ b/TAO/tao/LF_Event.cpp
@@ -1,8 +1,8 @@
+// -*- C++ -*-
// $Id$
-
-#include "tao/LF_Event.h"
-#include "tao/LF_Follower.h"
-#include "tao/Leader_Follower.h"
+#include "LF_Event.h"
+#include "LF_Follower.h"
+#include "Leader_Follower.h"
#include "ace/Guard_T.h"
#if !defined (__ACE_INLINE__)
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
LF_Event,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Event::TAO_LF_Event (void)
: state_ (TAO_LF_Event::LFS_IDLE)
, follower_ (0)
@@ -41,10 +39,9 @@ TAO_LF_Event::state_changed (int new_state,
}
}
+
void
TAO_LF_Event::set_state (int new_state)
{
this->state_ = new_state;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Event.h b/TAO/tao/LF_Event.h
index 678be63cb3c..0a721b4cad4 100644
--- a/TAO/tao/LF_Event.h
+++ b/TAO/tao/LF_Event.h
@@ -15,16 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LF_Follower;
class TAO_Leader_Follower;
@@ -143,10 +139,8 @@ protected:
TAO_LF_Follower *follower_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/LF_Event.inl"
+# include "LF_Event.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/LF_Event.inl b/TAO/tao/LF_Event.inl
index 236c8ea69ac..d6509c68430 100644
--- a/TAO/tao/LF_Event.inl
+++ b/TAO/tao/LF_Event.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
TAO_LF_Event::bind (TAO_LF_Follower *follower)
{
@@ -33,5 +30,3 @@ TAO_LF_Event::keep_waiting (void)
{
return (this->successful () == 0) && (this->error_detected () == 0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Event_Binder.cpp b/TAO/tao/LF_Event_Binder.cpp
index 27fc93c2c5e..a9fdf03c2ad 100644
--- a/TAO/tao/LF_Event_Binder.cpp
+++ b/TAO/tao/LF_Event_Binder.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Event_Binder.h"
@@ -6,15 +7,11 @@
# include "tao/LF_Event_Binder.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- LF_Event_Binder,
+ACE_RCSID (tao,
+ LF_Event_Binder,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Event_Binder::~TAO_LF_Event_Binder (void)
{
this->event_->unbind ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Event_Binder.h b/TAO/tao/LF_Event_Binder.h
index f6dcac517ef..7dea4a58f61 100644
--- a/TAO/tao/LF_Event_Binder.h
+++ b/TAO/tao/LF_Event_Binder.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LF_Follower;
/**
@@ -43,11 +41,9 @@ public:
private:
/// Keep a reference to the leader follower
- TAO_LF_Event * const event_;
+ TAO_LF_Event *event_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/LF_Event_Binder.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LF_Event_Binder.inl b/TAO/tao/LF_Event_Binder.inl
index 14027194f35..12389b6c8cb 100644
--- a/TAO/tao/LF_Event_Binder.inl
+++ b/TAO/tao/LF_Event_Binder.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_LF_Event_Binder::TAO_LF_Event_Binder (TAO_LF_Event *event,
TAO_LF_Follower *follower)
@@ -12,4 +8,4 @@ TAO_LF_Event_Binder::TAO_LF_Event_Binder (TAO_LF_Event *event,
this->event_->bind (follower);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/LF_Event_Loop_Thread_Helper.cpp b/TAO/tao/LF_Event_Loop_Thread_Helper.cpp
index 7fa8bc352b6..42e295f27ed 100644
--- a/TAO/tao/LF_Event_Loop_Thread_Helper.cpp
+++ b/TAO/tao/LF_Event_Loop_Thread_Helper.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Event_Loop_Thread_Helper.h"
@@ -6,6 +7,6 @@
# include "tao/LF_Event_Loop_Thread_Helper.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- LF_Event_Loop_Thread_Helper,
+ACE_RCSID (tao,
+ LF_Event_Loop_Thread_Helper,
"$Id$")
diff --git a/TAO/tao/LF_Event_Loop_Thread_Helper.h b/TAO/tao/LF_Event_Loop_Thread_Helper.h
index 3d5dfd95581..c51bf5495a8 100644
--- a/TAO/tao/LF_Event_Loop_Thread_Helper.h
+++ b/TAO/tao/LF_Event_Loop_Thread_Helper.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @brief Helper class to enter and exit the Leader/Followers event
* loop.
@@ -56,8 +54,6 @@ private:
int event_loop_return_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/LF_Event_Loop_Thread_Helper.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LF_Event_Loop_Thread_Helper.inl b/TAO/tao/LF_Event_Loop_Thread_Helper.inl
index 2fd8c6d98e7..62b5eada2d5 100644
--- a/TAO/tao/LF_Event_Loop_Thread_Helper.inl
+++ b/TAO/tao/LF_Event_Loop_Thread_Helper.inl
@@ -2,15 +2,13 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
-TAO_LF_Event_Loop_Thread_Helper::TAO_LF_Event_Loop_Thread_Helper (
- TAO_Leader_Follower &leader_follower,
- TAO_LF_Strategy &lf_strategy,
- ACE_Time_Value *max_wait_time)
- : leader_follower_ (leader_follower)
- , lf_strategy_ (lf_strategy)
+TAO_LF_Event_Loop_Thread_Helper::
+ TAO_LF_Event_Loop_Thread_Helper (TAO_Leader_Follower &leader_follower,
+ TAO_LF_Strategy &lf_strategy,
+ ACE_Time_Value *max_wait_time)
+ : leader_follower_ (leader_follower)
+ , lf_strategy_ (lf_strategy)
{
this->event_loop_return_ =
this->lf_strategy_.set_event_loop_thread (max_wait_time, leader_follower_);
@@ -29,5 +27,3 @@ TAO_LF_Event_Loop_Thread_Helper::event_loop_return (void) const
{
return this->event_loop_return_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Follower.cpp b/TAO/tao/LF_Follower.cpp
index 9e9cba91522..ccf7ca522f1 100644
--- a/TAO/tao/LF_Follower.cpp
+++ b/TAO/tao/LF_Follower.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Follower.h"
@@ -11,8 +12,6 @@ ACE_RCSID (tao,
LF_Follower,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Follower::TAO_LF_Follower (TAO_Leader_Follower &leader_follower)
: leader_follower_ (leader_follower)
, condition_ (leader_follower.lock ())
@@ -38,4 +37,3 @@ TAO_LF_Follower::signal (void)
return this->condition_.signal ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Follower.h b/TAO/tao/LF_Follower.h
index b6dc6583cba..efd4a0ccbf0 100644
--- a/TAO/tao/LF_Follower.h
+++ b/TAO/tao/LF_Follower.h
@@ -14,21 +14,16 @@
#define TAO_LF_FOLLOWER_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/Intrusive_List_Node.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Condition_Thread_Mutex.h"
#include "ace/Synch_Traits.h"
-#include "ace/Intrusive_List_Node.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/TAO_Export.h"
class TAO_Leader_Follower;
@@ -42,7 +37,7 @@ class TAO_Leader_Follower;
* loop should be implemented by this class.
*
*/
-class TAO_Export TAO_LF_Follower
+class TAO_Export TAO_LF_Follower
: public ACE_Intrusive_List_Node<TAO_LF_Follower>
{
public:
@@ -69,8 +64,6 @@ private:
ACE_SYNCH_CONDITION condition_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/LF_Follower.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LF_Follower.inl b/TAO/tao/LF_Follower.inl
index 8e88e259759..b7e612b94ee 100644
--- a/TAO/tao/LF_Follower.inl
+++ b/TAO/tao/LF_Follower.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Leader_Follower &
TAO_LF_Follower::leader_follower (void)
{
@@ -15,5 +11,3 @@ TAO_LF_Follower::wait (ACE_Time_Value *tv)
{
return this->condition_.wait (tv);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Follower_Auto_Adder.cpp b/TAO/tao/LF_Follower_Auto_Adder.cpp
index 4798d5c34c7..99659ea63b9 100644
--- a/TAO/tao/LF_Follower_Auto_Adder.cpp
+++ b/TAO/tao/LF_Follower_Auto_Adder.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Follower_Auto_Adder.h"
@@ -6,15 +7,11 @@
# include "tao/LF_Follower_Auto_Adder.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- LF_Follower_Auto_Adder,
+ACE_RCSID (tao,
+ LF_Follower_Auto_Adder,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Follower_Auto_Adder::~TAO_LF_Follower_Auto_Adder (void)
{
this->leader_follower_.remove_follower (this->follower_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Follower_Auto_Adder.h b/TAO/tao/LF_Follower_Auto_Adder.h
index f1161f6b14f..468bec0c1d0 100644
--- a/TAO/tao/LF_Follower_Auto_Adder.h
+++ b/TAO/tao/LF_Follower_Auto_Adder.h
@@ -23,8 +23,6 @@
#include "tao/Leader_Follower.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @brief Implement an auto_adder-like class for the TAO_LF_Followers
* allocated via a TAO_Leader_Follower set.
@@ -49,8 +47,6 @@ private:
TAO_LF_Follower *follower_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/LF_Follower_Auto_Adder.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LF_Follower_Auto_Adder.inl b/TAO/tao/LF_Follower_Auto_Adder.inl
index 0fa419366d0..62817754d77 100644
--- a/TAO/tao/LF_Follower_Auto_Adder.inl
+++ b/TAO/tao/LF_Follower_Auto_Adder.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_LF_Follower_Auto_Adder::
TAO_LF_Follower_Auto_Adder (TAO_Leader_Follower &lf,
@@ -13,5 +9,3 @@ TAO_LF_Follower_Auto_Adder::
{
(void) this->leader_follower_.add_follower (this->follower_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Follower_Auto_Ptr.cpp b/TAO/tao/LF_Follower_Auto_Ptr.cpp
index 7152175eb48..df1c8f51980 100644
--- a/TAO/tao/LF_Follower_Auto_Ptr.cpp
+++ b/TAO/tao/LF_Follower_Auto_Ptr.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Follower_Auto_Ptr.h"
@@ -6,15 +7,11 @@
# include "tao/LF_Follower_Auto_Ptr.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- LF_Follower_Auto_Ptr,
+ACE_RCSID (tao,
+ LF_Follower_Auto_Ptr,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Follower_Auto_Ptr::~TAO_LF_Follower_Auto_Ptr (void)
{
this->leader_follower_.release_follower (this->follower_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Follower_Auto_Ptr.h b/TAO/tao/LF_Follower_Auto_Ptr.h
index 52c2aae3411..b1b13f5499b 100644
--- a/TAO/tao/LF_Follower_Auto_Ptr.h
+++ b/TAO/tao/LF_Follower_Auto_Ptr.h
@@ -23,8 +23,6 @@
#include "tao/Leader_Follower.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @brief Implement an auto_ptr-like class for the TAO_LF_Followers
* allocated via a TAO_Leader_Follower set.
@@ -53,8 +51,6 @@ private:
TAO_LF_Follower *follower_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/LF_Follower_Auto_Ptr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LF_Follower_Auto_Ptr.inl b/TAO/tao/LF_Follower_Auto_Ptr.inl
index 8d933799401..43deadfca37 100644
--- a/TAO/tao/LF_Follower_Auto_Ptr.inl
+++ b/TAO/tao/LF_Follower_Auto_Ptr.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_LF_Follower_Auto_Ptr::TAO_LF_Follower_Auto_Ptr (TAO_Leader_Follower &lf)
: leader_follower_ (lf)
@@ -28,5 +24,3 @@ TAO_LF_Follower_Auto_Ptr::operator TAO_LF_Follower * (void)
{
return this->follower_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Invocation_Event.cpp b/TAO/tao/LF_Invocation_Event.cpp
index fc42ec084fc..5dcd5a60402 100644
--- a/TAO/tao/LF_Invocation_Event.cpp
+++ b/TAO/tao/LF_Invocation_Event.cpp
@@ -1,12 +1,10 @@
// -*- C++ -*-
-#include "tao/LF_Invocation_Event.h"
+#include "LF_Invocation_Event.h"
ACE_RCSID(tao,
LF_Invocation_Event,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Invocation_Event::TAO_LF_Invocation_Event (void)
: TAO_LF_Event ()
{
@@ -88,5 +86,3 @@ TAO_LF_Invocation_Event::is_state_final (void)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Invocation_Event.h b/TAO/tao/LF_Invocation_Event.h
index a3db772d40d..98a836f5506 100644
--- a/TAO/tao/LF_Invocation_Event.h
+++ b/TAO/tao/LF_Invocation_Event.h
@@ -15,14 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/LF_Event.h"
+#include "LF_Event.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LF_Invocation_Event
*
@@ -79,8 +77,6 @@ private:
int is_state_final (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LF_INVOCATION_EVENT_H */
diff --git a/TAO/tao/LF_Strategy.cpp b/TAO/tao/LF_Strategy.cpp
index 8c30e4b4e96..2deb35e08eb 100644
--- a/TAO/tao/LF_Strategy.cpp
+++ b/TAO/tao/LF_Strategy.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Strategy.h"
@@ -6,10 +7,6 @@ ACE_RCSID (tao,
LF_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Strategy::~TAO_LF_Strategy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Strategy.h b/TAO/tao/LF_Strategy.h
index 782821a2542..6b665bff5f1 100644
--- a/TAO/tao/LF_Strategy.h
+++ b/TAO/tao/LF_Strategy.h
@@ -21,14 +21,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Leader_Follower;
/**
@@ -75,8 +68,6 @@ public:
TAO_Leader_Follower &) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LF_STRATEGY_H */
diff --git a/TAO/tao/LF_Strategy_Complete.cpp b/TAO/tao/LF_Strategy_Complete.cpp
index 7f6294247cc..8ae4cc0b00f 100644
--- a/TAO/tao/LF_Strategy_Complete.cpp
+++ b/TAO/tao/LF_Strategy_Complete.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/LF_Strategy_Complete.h"
@@ -14,8 +15,6 @@ ACE_RCSID (tao,
LF_Strategy_Complete,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Strategy_Complete::~TAO_LF_Strategy_Complete (void)
{
}
@@ -44,12 +43,10 @@ TAO_LF_Strategy_Complete::reset_event_loop_thread (int call_reset,
if (call_reset)
lf.reset_event_loop_thread ();
- int const result = lf.elect_new_leader ();
+ int result = lf.elect_new_leader ();
if (result == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) Failed to wake up ")
ACE_TEXT ("a follower thread\n")));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LF_Strategy_Complete.h b/TAO/tao/LF_Strategy_Complete.h
index c1a2a007135..a0c1f4cf21d 100644
--- a/TAO/tao/LF_Strategy_Complete.h
+++ b/TAO/tao/LF_Strategy_Complete.h
@@ -21,12 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-
-
-
/**
* @brief A concrete TAO_LF_Strategy for ORB configurations that use
* the Leader/Followers event loop.
@@ -51,8 +45,6 @@ public:
TAO_Leader_Follower &);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/LF_Strategy_Complete.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/LF_Strategy_Complete.inl b/TAO/tao/LF_Strategy_Complete.inl
index 2a52ea3456a..240b3ba5dd0 100644
--- a/TAO/tao/LF_Strategy_Complete.inl
+++ b/TAO/tao/LF_Strategy_Complete.inl
@@ -1,12 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_LF_Strategy_Complete::TAO_LF_Strategy_Complete (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LRU_Connection_Purging_Strategy.cpp b/TAO/tao/LRU_Connection_Purging_Strategy.cpp
index 2b2b1f9472a..4f814cbd1fa 100644
--- a/TAO/tao/LRU_Connection_Purging_Strategy.cpp
+++ b/TAO/tao/LRU_Connection_Purging_Strategy.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "tao/LRU_Connection_Purging_Strategy.h"
-#include "tao/Transport.h"
+#include "LRU_Connection_Purging_Strategy.h"
+#include "Transport.h"
-ACE_RCSID (tao,
- LRU_Connection_Purging_Strategy,
+ACE_RCSID (tao,
+ LRU_Connection_Purging_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LRU_Connection_Purging_Strategy::TAO_LRU_Connection_Purging_Strategy (
int cache_maximum)
: TAO_Connection_Purging_Strategy (cache_maximum),
@@ -25,7 +23,6 @@ TAO_LRU_Connection_Purging_Strategy::~TAO_LRU_Connection_Purging_Strategy (void)
void
TAO_LRU_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
{
- transport->purging_order (++this->order_);
+ transport->purging_order (this->order_++);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LRU_Connection_Purging_Strategy.h b/TAO/tao/LRU_Connection_Purging_Strategy.h
index 8ea7319d723..07f1fdfd307 100644
--- a/TAO/tao/LRU_Connection_Purging_Strategy.h
+++ b/TAO/tao/LRU_Connection_Purging_Strategy.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// ================================================================
/**
* @file LRU_Connection_Purging_Strategy.h
@@ -23,8 +21,6 @@
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LRU_Connection_Purging_Strategy
*
@@ -36,7 +32,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* first.
*/
-class TAO_Export TAO_LRU_Connection_Purging_Strategy
+class TAO_Export TAO_LRU_Connection_Purging_Strategy
: public TAO_Connection_Purging_Strategy
{
public:
@@ -54,8 +50,6 @@ private:
unsigned long order_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LRU_PURGING_STRATEGY_H */
diff --git a/TAO/tao/Leader_Follower.cpp b/TAO/tao/Leader_Follower.cpp
index d494f48f7b3..cd387e73f15 100644
--- a/TAO/tao/Leader_Follower.cpp
+++ b/TAO/tao/Leader_Follower.cpp
@@ -21,9 +21,6 @@ ACE_RCSID (tao,
Leader_Follower,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Leader_Follower::~TAO_Leader_Follower (void)
{
while (!this->follower_free_list_.empty ())
@@ -160,7 +157,7 @@ TAO_Leader_Follower::set_client_thread (void)
// re-enable it if we want to receive any replys...
this->orb_core_->reactor ()->reset_reactor_event_loop ();
}
- ++this->clients_;
+ this->clients_++;
}
void
@@ -175,7 +172,7 @@ TAO_Leader_Follower::reset_client_thread (void)
++this->leaders_;
}
- --this->clients_;
+ this->clients_--;
if (this->clients_ == 0 &&
this->orb_core_->has_shutdown ())
{
@@ -488,4 +485,3 @@ TAO_Leader_Follower::wait_for_event (TAO_LF_Event *event,
return result;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Leader_Follower.h b/TAO/tao/Leader_Follower.h
index 46fa3c312a7..810735673e0 100644
--- a/TAO/tao/Leader_Follower.h
+++ b/TAO/tao/Leader_Follower.h
@@ -28,15 +28,10 @@
#include "ace/Intrusive_List_Node.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_LF_Event;
class TAO_Transport;
class TAO_ORB_Core;
+class ACE_Reactor;
class TAO_ORB_Core_TSS_Resources;
/**
@@ -288,8 +283,6 @@ private:
TAO_Leader_Follower &leader_follower_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Leader_Follower.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Leader_Follower.i b/TAO/tao/Leader_Follower.i
index 60293532455..1c145aaab93 100644
--- a/TAO/tao/Leader_Follower.i
+++ b/TAO/tao/Leader_Follower.i
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
// ****************************************************************
@@ -7,8 +6,6 @@
#include "tao/ORB_Core_TSS_Resources.h"
#include "tao/ORB_Core.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Leader_Follower::TAO_Leader_Follower (TAO_ORB_Core* orb_core,
TAO_New_Leader_Generator *new_leader_generator)
@@ -223,5 +220,3 @@ TAO_LF_Client_Leader_Thread_Helper::~TAO_LF_Client_Leader_Thread_Helper (void)
{
this->leader_follower_.reset_client_leader_thread ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Leader_Follower_Flushing_Strategy.cpp b/TAO/tao/Leader_Follower_Flushing_Strategy.cpp
index 694bf8190b9..b96152bc26d 100644
--- a/TAO/tao/Leader_Follower_Flushing_Strategy.cpp
+++ b/TAO/tao/Leader_Follower_Flushing_Strategy.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "tao/Leader_Follower_Flushing_Strategy.h"
@@ -11,9 +12,6 @@ ACE_RCSID (tao,
Leader_Follower_Flushing_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Leader_Follower_Flushing_Strategy::schedule_output (TAO_Transport *transport)
{
@@ -69,5 +67,3 @@ TAO_Leader_Follower_Flushing_Strategy::flush_transport (
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Leader_Follower_Flushing_Strategy.h b/TAO/tao/Leader_Follower_Flushing_Strategy.h
index 421ec7a591f..630b0302a8a 100644
--- a/TAO/tao/Leader_Follower_Flushing_Strategy.h
+++ b/TAO/tao/Leader_Follower_Flushing_Strategy.h
@@ -15,14 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/Flushing_Strategy.h"
+#include "Flushing_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Leader_Follower_Flushing_Strategy
*
@@ -41,8 +39,6 @@ public:
virtual int flush_transport (TAO_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LEADER_FOLLOWER_FLUSHING_STRATEGY_H */
diff --git a/TAO/tao/LocalObject.cpp b/TAO/tao/LocalObject.cpp
index 9a7368f9ec4..39d370f23be 100644
--- a/TAO/tao/LocalObject.cpp
+++ b/TAO/tao/LocalObject.cpp
@@ -1,14 +1,16 @@
+// -*- C++ -*-
+//
// $Id$
-#include "tao/LocalObject.h"
+#include "LocalObject.h"
#if !defined (__ACE_INLINE__)
-# include "tao/LocalObject.i"
+# include "LocalObject.i"
#endif /* ! __ACE_INLINE__ */
-#include "tao/SystemException.h"
-#include "tao/debug.h"
-#include "tao/ORB_Constants.h"
+#include "SystemException.h"
+#include "debug.h"
+#include "ORB_Constants.h"
#include "ace/Log_Msg.h"
#include "ace/Guard_T.h"
@@ -17,8 +19,6 @@ ACE_RCSID (tao,
LocalObject,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::LocalObject::~LocalObject (void)
{
}
@@ -42,12 +42,12 @@ CORBA::ULong
CORBA::LocalObject::_hash (CORBA::ULong maximum
ACE_ENV_ARG_DECL_NOT_USED)
{
- // Note that we reinterpret_cast to an "ptrdiff_t" instead of
+ // Note that we reinterpret_cast to an "unsigned long" instead of
// CORBA::ULong since we need to first cast to an integer large
// enough to hold an address to avoid compile-time warnings on some
// 64-bit platforms.
- CORBA::ULong const hash =
+ const CORBA::ULong hash =
static_cast<CORBA::ULong> (reinterpret_cast<ptrdiff_t> (this));
return hash % maximum;
@@ -64,7 +64,7 @@ CORBA::LocalObject::_is_equivalent (CORBA::Object_ptr other_obj
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC (())
{
- return (other_obj == this) ? true : false;
+ return (other_obj == this) ? 1 : 0;
}
// TAO's extensions
@@ -90,7 +90,7 @@ CORBA::Boolean
CORBA::LocalObject::_non_existent (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
// Always return false.
- return false;
+ return 0;
}
void
@@ -205,7 +205,7 @@ CORBA::LocalObject::_validate_connection (CORBA::PolicyList_out
{
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (CORBA::OMGVMCID | 8,
CORBA::COMPLETED_NO),
- false);
+ 0);
}
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
@@ -220,10 +220,6 @@ CORBA::LocalObject::_get_orb (ACE_ENV_SINGLE_ARG_DECL)
// ****************************************************************
-TAO_Local_RefCounted_Object::~TAO_Local_RefCounted_Object (void)
-{
-}
-
void
TAO_Local_RefCounted_Object::_add_ref (void)
{
@@ -239,4 +235,3 @@ TAO_Local_RefCounted_Object::_remove_ref (void)
delete this;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LocalObject.h b/TAO/tao/LocalObject.h
index ebaabba991a..e7c3c8dce70 100644
--- a/TAO/tao/LocalObject.h
+++ b/TAO/tao/LocalObject.h
@@ -29,9 +29,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Object.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Object.h"
namespace CORBA
{
@@ -42,6 +40,9 @@ namespace CORBA
/**
* @class LocalObject
+ *
+ * @note NW: It is not clear whether minimum CORBA should support
+ * LocalObject or not. I think it should.
*/
class TAO_Export LocalObject : public virtual CORBA::Object
{
@@ -222,9 +223,6 @@ class TAO_Export TAO_Local_RefCounted_Object
{
public:
- /// Destructor.
- virtual ~TAO_Local_RefCounted_Object (void);
-
/// Increment reference count.
virtual void _add_ref (void);
@@ -256,10 +254,9 @@ protected:
ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong> refcount_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-# include "tao/LocalObject.i"
+# include "LocalObject.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/LocalObject.i b/TAO/tao/LocalObject.i
index 3b84db89160..84891887973 100644
--- a/TAO/tao/LocalObject.i
+++ b/TAO/tao/LocalObject.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::LocalObject_ptr
CORBA::LocalObject::_duplicate (CORBA::LocalObject_ptr obj)
@@ -51,5 +49,3 @@ TAO_Local_RefCounted_Object::TAO_Local_RefCounted_Object (void)
: refcount_ (1)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LocateRequest_Invocation.cpp b/TAO/tao/LocateRequest_Invocation.cpp
index dac9e76cec7..11a9f280111 100644
--- a/TAO/tao/LocateRequest_Invocation.cpp
+++ b/TAO/tao/LocateRequest_Invocation.cpp
@@ -1,13 +1,13 @@
-#include "tao/LocateRequest_Invocation.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/operation_details.h"
-#include "tao/Stub.h"
-#include "tao/Bind_Dispatcher_Guard.h"
-#include "tao/Transport.h"
-#include "tao/Synch_Reply_Dispatcher.h"
-#include "tao/GIOP_Utils.h"
-#include "tao/Profile.h"
-#include "tao/ORB_Constants.h"
+#include "LocateRequest_Invocation.h"
+#include "Profile_Transport_Resolver.h"
+#include "operation_details.h"
+#include "Stub.h"
+#include "Bind_Dispatcher_Guard.h"
+#include "Transport.h"
+#include "Synch_Reply_Dispatcher.h"
+#include "GIOP_Utils.h"
+#include "Profile.h"
+#include "ORB_Constants.h"
#include "ace/Countdown_Time.h"
@@ -15,8 +15,6 @@ ACE_RCSID (tao,
LocateRequest_Invocation,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
LocateRequest_Invocation::LocateRequest_Invocation (
@@ -65,6 +63,9 @@ namespace TAO
this->resolver_.transport ();
TAO_OutputCDR &cdr = transport->out_stream ();
+#if TAO_RESET_OUTPUT_CDR_AFTER_SEND == 1
+ OutputCDR_Auto_Reset cdr_reset(cdr);
+#endif /* TAO_RESET_OUTPUT_CDR_AFTER_SEND */
int retval =
transport->generate_locate_request (tspec,
@@ -188,5 +189,3 @@ namespace TAO
return TAO_INVOKE_SUCCESS;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LocateRequest_Invocation.h b/TAO/tao/LocateRequest_Invocation.h
index 40b213eef37..9006ada4f05 100644
--- a/TAO/tao/LocateRequest_Invocation.h
+++ b/TAO/tao/LocateRequest_Invocation.h
@@ -23,8 +23,6 @@
#include "tao/Synch_Invocation.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Synch_Reply_Dispatcher;
namespace CORBA
@@ -77,8 +75,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_LOCATEREQUEST_INVOCATION_H*/
diff --git a/TAO/tao/LocateRequest_Invocation_Adapter.cpp b/TAO/tao/LocateRequest_Invocation_Adapter.cpp
index 2d2e89c2f4f..527999bff53 100644
--- a/TAO/tao/LocateRequest_Invocation_Adapter.cpp
+++ b/TAO/tao/LocateRequest_Invocation_Adapter.cpp
@@ -1,23 +1,21 @@
-#include "tao/LocateRequest_Invocation_Adapter.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/operation_details.h"
-#include "tao/LocateRequest_Invocation.h"
-#include "tao/Transport.h"
-#include "tao/Transport_Mux_Strategy.h"
-#include "tao/ORB_Core.h"
+#include "LocateRequest_Invocation_Adapter.h"
+#include "Profile_Transport_Resolver.h"
+#include "operation_details.h"
+#include "LocateRequest_Invocation.h"
+#include "Transport.h"
+#include "Transport_Mux_Strategy.h"
+#include "ORB_Core.h"
ACE_RCSID (tao,
LocateRequest_Invocation_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
LocateRequest_Invocation_Adapter::LocateRequest_Invocation_Adapter (
- CORBA::Object *target)
+ CORBA::Object *target)
: target_ (target)
- , list_ (0)
+ , list_ (0)
{
}
@@ -113,5 +111,3 @@ namespace TAO
return has_timeout;
}
} // End namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LocateRequest_Invocation_Adapter.h b/TAO/tao/LocateRequest_Invocation_Adapter.h
index cfed80c24fc..64d7a59bbea 100644
--- a/TAO/tao/LocateRequest_Invocation_Adapter.h
+++ b/TAO/tao/LocateRequest_Invocation_Adapter.h
@@ -20,18 +20,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
typedef Object *Object_ptr;
}
+class ACE_Time_Value;
+
namespace TAO
{
/**
@@ -72,8 +68,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_LOCATEREQUEST_INVOCATION_ADAPTER_H*/
diff --git a/TAO/tao/LongDoubleSeqC.cpp b/TAO/tao/LongDoubleSeqC.cpp
index 517b32ce0b5..0e1dd30f277 100644
--- a/TAO/tao/LongDoubleSeqC.cpp
+++ b/TAO/tao/LongDoubleSeqC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/LongDoubleSeqC.h"
+#include "LongDoubleSeqC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -157,5 +155,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_LongDoubleSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LongDoubleSeqC.h b/TAO/tao/LongDoubleSeqC.h
index 8c5eebed71f..87a2dcaab12 100644
--- a/TAO/tao/LongDoubleSeqC.h
+++ b/TAO/tao/LongDoubleSeqC.h
@@ -61,8 +61,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
@@ -150,8 +148,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/LongLongSeqC.cpp b/TAO/tao/LongLongSeqC.cpp
index 0d0d0edc761..d0142375188 100644
--- a/TAO/tao/LongLongSeqC.cpp
+++ b/TAO/tao/LongLongSeqC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/LongLongSeqC.h"
+#include "LongLongSeqC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -157,5 +155,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_LongLongSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LongLongSeqC.h b/TAO/tao/LongLongSeqC.h
index 13e708a51ad..78c8d8223b9 100644
--- a/TAO/tao/LongLongSeqC.h
+++ b/TAO/tao/LongLongSeqC.h
@@ -61,8 +61,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
@@ -150,8 +148,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/LongSeqC.cpp b/TAO/tao/LongSeqC.cpp
index 9bcd5e632d1..fcb07e3e606 100644
--- a/TAO/tao/LongSeqC.cpp
+++ b/TAO/tao/LongSeqC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/LongSeqC.h"
+#include "LongSeqC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -157,5 +155,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_LongSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/LongSeqC.h b/TAO/tao/LongSeqC.h
index 98d23f21266..4fd2f60e996 100644
--- a/TAO/tao/LongSeqC.h
+++ b/TAO/tao/LongSeqC.h
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -150,8 +148,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/MCAST_Parser.cpp b/TAO/tao/MCAST_Parser.cpp
index 08a25649f56..154aa0f1d7a 100644
--- a/TAO/tao/MCAST_Parser.cpp
+++ b/TAO/tao/MCAST_Parser.cpp
@@ -1,9 +1,9 @@
-#include "tao/MCAST_Parser.h"
-#include "tao/default_ports.h"
-#include "tao/ORB_Core.h"
-#include "tao/ORB.h"
-#include "tao/Environment.h"
-#include "tao/debug.h"
+#include "MCAST_Parser.h"
+#include "default_ports.h"
+#include "ORB_Core.h"
+#include "ORB.h"
+#include "Environment.h"
+#include "debug.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/SOCK_Dgram.h"
@@ -11,7 +11,7 @@
#include "ace/OS_NS_string.h"
#if !defined(__ACE_INLINE__)
-#include "tao/MCAST_Parser.i"
+#include "MCAST_Parser.i"
#endif /* __ACE_INLINE__ */
@@ -22,13 +22,11 @@ ACE_RCSID (tao,
static const char mcast_prefix[] = "mcast:";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_MCAST_Parser::~TAO_MCAST_Parser (void)
{
}
+
int
TAO_MCAST_Parser::match_prefix (const char *ior_string) const
{
@@ -190,7 +188,7 @@ TAO_MCAST_Parser::multicast_query (char *&buf,
else
{
// Set NIC
- dgram.set_nic (ACE_TEXT_CHAR_TO_TCHAR (mcast_nic),
+ dgram.set_nic (ACE_TEXT_TO_TCHAR_IN (mcast_nic),
multicast_addr.get_type ());
// Set TTL
@@ -329,7 +327,7 @@ TAO_MCAST_Parser::multicast_query (char *&buf,
else if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("%N: service resolved to IOR <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (buf)));
+ ACE_TEXT_TO_TCHAR_IN (buf)));
}
}
}
@@ -339,7 +337,7 @@ TAO_MCAST_Parser::multicast_query (char *&buf,
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT("\nmulticast discovery of %s failed.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (service_name)));
+ ACE_TEXT_TO_TCHAR_IN (service_name)));
if (ACE_OS::strcasecmp (service_name,
"NameService") == 0)
@@ -510,8 +508,6 @@ TAO_MCAST_Parser::assign_to_variables (const char * &mcast_name)
-1).c_str ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_MCAST_Parser,
ACE_TEXT ("MCAST_Parser"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/MCAST_Parser.h b/TAO/tao/MCAST_Parser.h
index e4fc9560cd1..4dc327b33b5 100644
--- a/TAO/tao/MCAST_Parser.h
+++ b/TAO/tao/MCAST_Parser.h
@@ -24,8 +24,6 @@
#include "tao/CORBA_String.h"
#include "tao/IOR_Parser.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_MCAST_Parser
*
@@ -87,10 +85,8 @@ private:
CORBA::String_var service_name_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/MCAST_Parser.i"
+# include "MCAST_Parser.i"
#endif /* __ACE_INLINE__ */
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_MCAST_Parser)
diff --git a/TAO/tao/MCAST_Parser.i b/TAO/tao/MCAST_Parser.i
index fc19f658c44..c2a5c736f82 100644
--- a/TAO/tao/MCAST_Parser.i
+++ b/TAO/tao/MCAST_Parser.i
@@ -1,12 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_MCAST_Parser::TAO_MCAST_Parser (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/MProfile.cpp b/TAO/tao/MProfile.cpp
index e6362be15a0..cc6fb34f23d 100644
--- a/TAO/tao/MProfile.cpp
+++ b/TAO/tao/MProfile.cpp
@@ -19,7 +19,6 @@ ACE_RCSID (tao,
# include "tao/MProfile.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_MProfile::~TAO_MProfile (void)
{
@@ -361,5 +360,3 @@ TAO_MProfile::policy_list (ACE_ENV_SINGLE_ARG_DECL)
return ret_val;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/MProfile.h b/TAO/tao/MProfile.h
index ba45b3a4a5d..194027593d5 100644
--- a/TAO/tao/MProfile.h
+++ b/TAO/tao/MProfile.h
@@ -29,8 +29,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
class TAO_Profile;
namespace CORBA
@@ -242,8 +240,6 @@ private:
TAO_PHandle last_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/MProfile.i"
#endif /*__ACE_INLINE__ */
diff --git a/TAO/tao/MProfile.i b/TAO/tao/MProfile.i
index 7992f28aa06..48805e3c14d 100644
--- a/TAO/tao/MProfile.i
+++ b/TAO/tao/MProfile.i
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_MProfile::TAO_MProfile (CORBA::ULong sz)
: policy_list_ (0),
@@ -198,5 +196,3 @@ TAO_MProfile::policy_list (CORBA::PolicyList *policy_list)
{
this->policy_list_ = policy_list;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Makefile.am b/TAO/tao/Makefile.am
index d0f636cd724..30c9cf929f6 100644
--- a/TAO/tao/Makefile.am
+++ b/TAO/tao/Makefile.am
@@ -6,7 +6,7 @@
## this file will be lost the next time it is generated.
##
## MPC Command:
-## ../bin/mwc.pl -type automake -noreldefs TAO.mwc
+## ../bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/TAO/../MPC/templates -type automake -noreldefs TAO.mwc
includedir = @includedir@/tao
pkgconfigdir = @libdir@/pkgconfig
@@ -116,7 +116,6 @@ libTAO_la_SOURCES = \
IORInterceptor_Adapter_Factory.cpp \
IOR_Parser.cpp \
Incoming_Message_Queue.cpp \
- Incoming_Message_Stack.cpp \
Invocation_Adapter.cpp \
Invocation_Base.cpp \
Invocation_Endpoint_Selectors.cpp \
@@ -310,6 +309,7 @@ nobase_include_HEADERS = \
CORBALOC_Parser.h \
CORBALOC_Parser.i \
CORBANAME_Parser.h \
+ CORBANAME_Parser.i \
CORBA_String.h \
CORBA_String.inl \
CORBA_methods.h \
@@ -347,6 +347,7 @@ nobase_include_HEADERS = \
CurrentC.h \
CurrentS.h \
DLL_Parser.h \
+ DLL_Parser.i \
Default_Collocation_Resolver.h \
Default_Endpoint_Selector_Factory.h \
Default_Protocols_Hooks.h \
@@ -369,6 +370,7 @@ nobase_include_HEADERS = \
Exception_Data.h \
Exclusive_TMS.h \
FILE_Parser.h \
+ FILE_Parser.i \
Fault_Tolerance_Service.h \
Fault_Tolerance_Service.i \
Fixed_Array_Argument_T.cpp \
@@ -426,15 +428,7 @@ nobase_include_HEADERS = \
IOR_Parser.h \
Incoming_Message_Queue.h \
Incoming_Message_Queue.inl \
- Incoming_Message_Stack.h \
- Incoming_Message_Stack.inl \
InterfaceDef.pidl \
- Intrusive_Ref_Count_Base_T.cpp \
- Intrusive_Ref_Count_Base_T.h \
- Intrusive_Ref_Count_Base_T.inl \
- Intrusive_Ref_Count_Handle_T.cpp \
- Intrusive_Ref_Count_Handle_T.h \
- Intrusive_Ref_Count_Handle_T.inl \
InvalidName.pidl \
Invocation_Adapter.h \
Invocation_Adapter.inl \
@@ -686,7 +680,6 @@ nobase_include_HEADERS = \
Var_Size_Argument_T.h \
Var_Size_Argument_T.inl \
Version.h \
- Versioned_Namespace.h \
WCharSeq.pidl \
WCharSeqC.h \
WCharSeqS.h \
@@ -1059,6 +1052,7 @@ libTAO_CodecFactory_la_SOURCES = \
CodecFactory/CDR_Encaps_Codec.cpp \
CodecFactory/CodecFactory.cpp \
CodecFactory/CodecFactory_impl.cpp \
+ CodecFactory/IOP_CodecA.cpp \
CodecFactory/IOP_CodecC.cpp
libTAO_CodecFactory_la_LDFLAGS = \
@@ -1077,7 +1071,6 @@ nobase_include_HEADERS += \
CodecFactory/IOP_CodecC.h \
CodecFactory/IOP_CodecS.h \
CodecFactory/IOP_Codec_include.pidl \
- CodecFactory/IOP_Codec_includeA.h \
CodecFactory/IOP_Codec_includeC.h \
CodecFactory/IOP_Codec_includeS.h \
CodecFactory/codecfactory_export.h
@@ -1108,7 +1101,6 @@ libTAO_PI_la_CPPFLAGS = \
-DTAO_PI_BUILD_DLL
libTAO_PI_la_SOURCES = \
- PI/ClientRequestDetails.cpp \
PI/ClientRequestInfo.cpp \
PI/ClientRequestInfoA.cpp \
PI/ClientRequestInfoC.cpp \
@@ -1121,6 +1113,7 @@ libTAO_PI_la_SOURCES = \
PI/InvalidSlotA.cpp \
PI/InvalidSlotC.cpp \
PI/ORBInitInfo.cpp \
+ PI/ORBInitInfoA.cpp \
PI/ORBInitInfoC.cpp \
PI/ORBInitializerA.cpp \
PI/ORBInitializerC.cpp \
@@ -1134,14 +1127,10 @@ libTAO_PI_la_SOURCES = \
PI/PICurrent_Loader.cpp \
PI/PIForwardRequestA.cpp \
PI/PIForwardRequestC.cpp \
- PI/PI_ORBInitializer.cpp \
- PI/PI_PolicyFactory.cpp \
PI/PolicyFactoryA.cpp \
PI/PolicyFactoryC.cpp \
PI/PolicyFactory_Loader.cpp \
PI/PolicyFactory_Registry.cpp \
- PI/ProcessingModePolicy.cpp \
- PI/ProcessingModePolicyC.cpp \
PI/RequestInfoA.cpp \
PI/RequestInfoC.cpp \
PI/RequestInfo_Util.cpp
@@ -1156,22 +1145,17 @@ libTAO_PI_la_LIBADD = \
$(ACE_BUILDDIR)/ace/libACE.la
nobase_include_HEADERS += \
- PI/ClientRequestDetails.h \
- PI/ClientRequestDetails.inl \
PI/ClientRequestInfo.h \
PI/ClientRequestInfo.pidl \
- PI/ClientRequestInfoA.h \
PI/ClientRequestInfoC.h \
PI/ClientRequestInfoS.h \
PI/ClientRequestInterceptor.pidl \
- PI/ClientRequestInterceptorA.h \
PI/ClientRequestInterceptorC.h \
PI/ClientRequestInterceptorS.h \
PI/ClientRequestInterceptor_Adapter_Impl.h \
PI/ClientRequestInterceptor_Adapter_Impl.inl \
PI/ClientRequestInterceptor_Factory_Impl.h \
PI/Interceptor.pidl \
- PI/InterceptorA.h \
PI/InterceptorC.h \
PI/InterceptorS.h \
PI/Interceptor_List_T.cpp \
@@ -1186,7 +1170,6 @@ nobase_include_HEADERS += \
PI/ORBInitInfoC.h \
PI/ORBInitInfoS.h \
PI/ORBInitializer.pidl \
- PI/ORBInitializerA.h \
PI/ORBInitializerC.h \
PI/ORBInitializerS.h \
PI/ORBInitializer_Registry_Impl.h \
@@ -1202,23 +1185,14 @@ nobase_include_HEADERS += \
PI/PICurrent_Impl.inl \
PI/PICurrent_Loader.h \
PI/PIForwardRequest.pidl \
- PI/PIForwardRequestA.h \
PI/PIForwardRequestC.h \
PI/PIForwardRequestS.h \
- PI/PI_ORBInitializer.h \
- PI/PI_PolicyFactory.h \
PI/PolicyFactory.pidl \
- PI/PolicyFactoryA.h \
PI/PolicyFactoryC.h \
PI/PolicyFactoryS.h \
PI/PolicyFactory_Loader.h \
PI/PolicyFactory_Registry.h \
- PI/ProcessingModePolicy.h \
- PI/ProcessingModePolicy.pidl \
- PI/ProcessingModePolicyC.h \
- PI/ProcessingModePolicyS.h \
PI/RequestInfo.pidl \
- PI/RequestInfoA.h \
PI/RequestInfoC.h \
PI/RequestInfoS.h \
PI/RequestInfo_Util.h \
@@ -1350,6 +1324,7 @@ libTAO_PortableServer_la_SOURCES = \
PortableServer/LifespanStrategyTransientFactoryImpl.cpp \
PortableServer/Local_Servant_Base.cpp \
PortableServer/Non_Servant_Upcall.cpp \
+ PortableServer/ORT_Adapter.cpp \
PortableServer/ORT_Adapter_Factory.cpp \
PortableServer/Object_Adapter.cpp \
PortableServer/Object_Adapter_Factory.cpp \
@@ -1366,6 +1341,7 @@ libTAO_PortableServer_la_SOURCES = \
PortableServer/POA_Current_Impl.cpp \
PortableServer/POA_Guard.cpp \
PortableServer/POA_Policy_Set.cpp \
+ PortableServer/PS_CurrentA.cpp \
PortableServer/PS_CurrentC.cpp \
PortableServer/PS_ForwardA.cpp \
PortableServer/PS_ForwardC.cpp \
@@ -1528,6 +1504,7 @@ nobase_include_HEADERS += \
PortableServer/POA_Cached_Policies.h \
PortableServer/POA_Cached_Policies.i \
PortableServer/POA_Current.h \
+ PortableServer/POA_Current.inl \
PortableServer/POA_Current_Factory.h \
PortableServer/POA_Current_Impl.h \
PortableServer/POA_Current_Impl.inl \
@@ -1647,179 +1624,6 @@ EXTRA_DIST += \
PortableServer/TAO_PortableServer.rc
-## Makefile.CSD_Framework.am
-
-lib_LTLIBRARIES += libTAO_CSD_Framework.la
-
-libTAO_CSD_Framework_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/tao \
- -DTAO_CSD_FW_BUILD_DLL
-
-libTAO_CSD_Framework_la_SOURCES = \
- CSD_Framework/CSD_Default_Servant_Dispatcher.cpp \
- CSD_Framework/CSD_FW_Server_Request_Wrapper.cpp \
- CSD_Framework/CSD_FrameworkA.cpp \
- CSD_Framework/CSD_FrameworkC.cpp \
- CSD_Framework/CSD_Framework_Loader.cpp \
- CSD_Framework/CSD_ORBInitializer.cpp \
- CSD_Framework/CSD_Object_Adapter.cpp \
- CSD_Framework/CSD_Object_Adapter_Factory.cpp \
- CSD_Framework/CSD_POA.cpp \
- CSD_Framework/CSD_Strategy_Base.cpp \
- CSD_Framework/CSD_Strategy_Proxy.cpp \
- CSD_Framework/CSD_Strategy_Repository.cpp
-
-libTAO_CSD_Framework_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_CSD_Framework_la_LIBADD = \
- libTAO_PI.la \
- libTAO_CodecFactory.la \
- libTAO_PortableServer.la \
- libTAO_AnyTypeCode.la \
- libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
- CSD_Framework/CSD_Default_Servant_Dispatcher.h \
- CSD_Framework/CSD_FW_Export.h \
- CSD_Framework/CSD_FW_Server_Request_Wrapper.h \
- CSD_Framework/CSD_FW_Server_Request_Wrapper.inl \
- CSD_Framework/CSD_Framework.pidl \
- CSD_Framework/CSD_FrameworkA.h \
- CSD_Framework/CSD_FrameworkC.h \
- CSD_Framework/CSD_Framework_Loader.h \
- CSD_Framework/CSD_ORBInitializer.h \
- CSD_Framework/CSD_Object_Adapter.h \
- CSD_Framework/CSD_Object_Adapter_Factory.h \
- CSD_Framework/CSD_POA.h \
- CSD_Framework/CSD_POA.inl \
- CSD_Framework/CSD_Strategy_Base.h \
- CSD_Framework/CSD_Strategy_Base.inl \
- CSD_Framework/CSD_Strategy_Proxy.h \
- CSD_Framework/CSD_Strategy_Proxy.inl \
- CSD_Framework/CSD_Strategy_Repository.h
-
-pkgconfig_DATA += \
- TAO_CSD_Framework.pc
-
-CLEANFILES += \
- TAO_CSD_Framework.pc
-
-TAO_CSD_Framework.pc: ${top_builddir}/config.status ${srcdir}/CSD_Framework/TAO_CSD_Framework.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/CSD_Framework/TAO_CSD_Framework.pc.in
-
-EXTRA_DIST += \
- CSD_Framework/TAO_CSD_Framework.pc.in
-
-
-## Makefile.CSD_ThreadPool.am
-
-lib_LTLIBRARIES += libTAO_CSD_ThreadPool.la
-
-libTAO_CSD_ThreadPool_la_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/tao \
- -DTAO_CSD_TP_BUILD_DLL
-
-libTAO_CSD_ThreadPool_la_SOURCES = \
- CSD_ThreadPool/CSD_TP_Cancel_Visitor.cpp \
- CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.cpp \
- CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.cpp \
- CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.cpp \
- CSD_ThreadPool/CSD_TP_Corba_Request.cpp \
- CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.cpp \
- CSD_ThreadPool/CSD_TP_Custom_Request.cpp \
- CSD_ThreadPool/CSD_TP_Custom_Request_Operation.cpp \
- CSD_ThreadPool/CSD_TP_Custom_Synch_Request.cpp \
- CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.cpp \
- CSD_ThreadPool/CSD_TP_Queue.cpp \
- CSD_ThreadPool/CSD_TP_Queue_Visitor.cpp \
- CSD_ThreadPool/CSD_TP_Remote_Request.cpp \
- CSD_ThreadPool/CSD_TP_Request.cpp \
- CSD_ThreadPool/CSD_TP_Servant_State.cpp \
- CSD_ThreadPool/CSD_TP_Servant_State_Map.cpp \
- CSD_ThreadPool/CSD_TP_Strategy.cpp \
- CSD_ThreadPool/CSD_TP_Strategy_Factory.cpp \
- CSD_ThreadPool/CSD_TP_Synch_Helper.cpp \
- CSD_ThreadPool/CSD_TP_Task.cpp \
- CSD_ThreadPool/CSD_ThreadPool.cpp
-
-libTAO_CSD_ThreadPool_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
-
-libTAO_CSD_ThreadPool_la_LIBADD = \
- libTAO_CSD_Framework.la \
- libTAO_PI.la \
- libTAO_CodecFactory.la \
- libTAO_PortableServer.la \
- libTAO_AnyTypeCode.la \
- libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-nobase_include_HEADERS += \
- CSD_ThreadPool/CSD_TP_Cancel_Visitor.h \
- CSD_ThreadPool/CSD_TP_Cancel_Visitor.inl \
- CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.h \
- CSD_ThreadPool/CSD_TP_Collocated_Asynch_Request.inl \
- CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.h \
- CSD_ThreadPool/CSD_TP_Collocated_Synch_Request.inl \
- CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.h \
- CSD_ThreadPool/CSD_TP_Collocated_Synch_With_Server_Request.inl \
- CSD_ThreadPool/CSD_TP_Corba_Request.h \
- CSD_ThreadPool/CSD_TP_Corba_Request.inl \
- CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.h \
- CSD_ThreadPool/CSD_TP_Custom_Asynch_Request.inl \
- CSD_ThreadPool/CSD_TP_Custom_Request.h \
- CSD_ThreadPool/CSD_TP_Custom_Request.inl \
- CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h \
- CSD_ThreadPool/CSD_TP_Custom_Request_Operation.inl \
- CSD_ThreadPool/CSD_TP_Custom_Synch_Request.h \
- CSD_ThreadPool/CSD_TP_Custom_Synch_Request.inl \
- CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.h \
- CSD_ThreadPool/CSD_TP_Dispatchable_Visitor.inl \
- CSD_ThreadPool/CSD_TP_Export.h \
- CSD_ThreadPool/CSD_TP_Queue.h \
- CSD_ThreadPool/CSD_TP_Queue.inl \
- CSD_ThreadPool/CSD_TP_Queue_Visitor.h \
- CSD_ThreadPool/CSD_TP_Queue_Visitor.inl \
- CSD_ThreadPool/CSD_TP_Remote_Request.h \
- CSD_ThreadPool/CSD_TP_Remote_Request.inl \
- CSD_ThreadPool/CSD_TP_Request.h \
- CSD_ThreadPool/CSD_TP_Request.inl \
- CSD_ThreadPool/CSD_TP_Servant_State.h \
- CSD_ThreadPool/CSD_TP_Servant_State.inl \
- CSD_ThreadPool/CSD_TP_Servant_State_Map.h \
- CSD_ThreadPool/CSD_TP_Servant_State_Map.inl \
- CSD_ThreadPool/CSD_TP_Strategy.h \
- CSD_ThreadPool/CSD_TP_Strategy.inl \
- CSD_ThreadPool/CSD_TP_Strategy_Factory.h \
- CSD_ThreadPool/CSD_TP_Synch_Helper.h \
- CSD_ThreadPool/CSD_TP_Synch_Helper.inl \
- CSD_ThreadPool/CSD_TP_Task.h \
- CSD_ThreadPool/CSD_TP_Task.inl \
- CSD_ThreadPool/CSD_ThreadPool.h
-
-pkgconfig_DATA += \
- TAO_CSD_ThreadPool.pc
-
-CLEANFILES += \
- TAO_CSD_ThreadPool.pc
-
-TAO_CSD_ThreadPool.pc: ${top_builddir}/config.status ${srcdir}/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in
- ${top_builddir}/config.status --file $@:${srcdir}/CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in
-
-EXTRA_DIST += \
- CSD_ThreadPool/TAO_CSD_ThreadPool.pc.in
-
-
## Makefile.IFR_Client.am
lib_LTLIBRARIES += libTAO_IFR_Client.la
@@ -2069,7 +1873,6 @@ libTAO_Messaging_la_SOURCES = \
Messaging/Connection_Timeout_Policy_i.cpp \
Messaging/ExceptionHolderA.cpp \
Messaging/ExceptionHolderC.cpp \
- Messaging/ExceptionHolder_i.cpp \
Messaging/Messaging.cpp \
Messaging/MessagingA.cpp \
Messaging/MessagingC.cpp \
@@ -2114,7 +1917,6 @@ nobase_include_HEADERS += \
Messaging/ExceptionHolderC.h \
Messaging/ExceptionHolderC.inl \
Messaging/ExceptionHolderS.h \
- Messaging/ExceptionHolder_i.h \
Messaging/Messaging.h \
Messaging/Messaging.pidl \
Messaging/MessagingA.h \
@@ -2319,8 +2121,7 @@ libTAO_IORInterceptor_la_SOURCES = \
IORInterceptor/IORInfoC.cpp \
IORInterceptor/IORInterceptorC.cpp \
IORInterceptor/IORInterceptor_Adapter_Factory_Impl.cpp \
- IORInterceptor/IORInterceptor_Adapter_Impl.cpp \
- IORInterceptor/IORInterceptor_Details.cpp
+ IORInterceptor/IORInterceptor_Adapter_Impl.cpp
libTAO_IORInterceptor_la_LDFLAGS = \
-version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
@@ -2345,7 +2146,6 @@ nobase_include_HEADERS += \
IORInterceptor/IORInterceptorC.h \
IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h \
IORInterceptor/IORInterceptor_Adapter_Impl.h \
- IORInterceptor/IORInterceptor_Details.h \
IORInterceptor/iorinterceptor_export.h
pkgconfig_DATA += \
@@ -2529,7 +2329,6 @@ libTAO_PI_Server_la_SOURCES = \
PI_Server/PortableServer_ORBInitializer.cpp \
PI_Server/PortableServer_PolicyFactory.cpp \
PI_Server/ServerInterceptorAdapter.cpp \
- PI_Server/ServerRequestDetails.cpp \
PI_Server/ServerRequestInfo.cpp \
PI_Server/ServerRequestInfoA.cpp \
PI_Server/ServerRequestInfoC.cpp \
@@ -2560,16 +2359,12 @@ nobase_include_HEADERS += \
PI_Server/PortableServer_ORBInitializer.h \
PI_Server/PortableServer_PolicyFactory.h \
PI_Server/ServerInterceptorAdapter.h \
- PI_Server/ServerRequestDetails.h \
- PI_Server/ServerRequestDetails.inl \
PI_Server/ServerRequestInfo.h \
PI_Server/ServerRequestInfo.inl \
PI_Server/ServerRequestInfo.pidl \
- PI_Server/ServerRequestInfoA.h \
PI_Server/ServerRequestInfoC.h \
PI_Server/ServerRequestInfoS.h \
PI_Server/ServerRequestInterceptor.pidl \
- PI_Server/ServerRequestInterceptorA.h \
PI_Server/ServerRequestInterceptorC.h \
PI_Server/ServerRequestInterceptorS.h \
PI_Server/ServerRequestInterceptor_Factory_Impl.h \
@@ -2820,7 +2615,6 @@ nobase_include_HEADERS += \
RTScheduling/RTScheduler_include.pidl \
RTScheduling/RTScheduler_includeA.h \
RTScheduling/RTScheduler_includeC.h \
- RTScheduling/RTScheduler_includeS.h \
RTScheduling/Request_Interceptor.h \
RTScheduling/ThreadAction.h \
RTScheduling/rtscheduler_export.h
@@ -2884,8 +2678,6 @@ EXTRA_DIST += \
## Makefile.Strategies.am
-if !BUILD_ACE_FOR_TAO
-
lib_LTLIBRARIES += libTAO_Strategies.la
libTAO_Strategies_la_CPPFLAGS = \
@@ -2907,9 +2699,6 @@ libTAO_Strategies_la_SOURCES = \
Strategies/LFU_Connection_Purging_Strategy.cpp \
Strategies/LF_Strategy_Null.cpp \
Strategies/NULL_Connection_Purging_Strategy.cpp \
- Strategies/OC_Endpoint_Selector_Factory.cpp \
- Strategies/OC_Endpoint_Selector_Loader.cpp \
- Strategies/Optimized_Connection_Endpoint_Selector.cpp \
Strategies/SCIOP_Acceptor.cpp \
Strategies/SCIOP_Connection_Handler.cpp \
Strategies/SCIOP_Connector.cpp \
@@ -2960,9 +2749,6 @@ nobase_include_HEADERS += \
Strategies/LF_Strategy_Null.h \
Strategies/LF_Strategy_Null.inl \
Strategies/NULL_Connection_Purging_Strategy.h \
- Strategies/OC_Endpoint_Selector_Factory.h \
- Strategies/OC_Endpoint_Selector_Loader.h \
- Strategies/Optimized_Connection_Endpoint_Selector.h \
Strategies/SCIOP_Acceptor.h \
Strategies/SCIOP_Acceptor.i \
Strategies/SCIOP_Connection_Handler.h \
@@ -3006,8 +2792,6 @@ CLEANFILES += \
TAO_Strategies.pc: ${top_builddir}/config.status ${srcdir}/Strategies/TAO_Strategies.pc.in
${top_builddir}/config.status --file $@:${srcdir}/Strategies/TAO_Strategies.pc.in
-endif !BUILD_ACE_FOR_TAO
-
EXTRA_DIST += \
Strategies/TAO_Strategies.pc.in \
Strategies/TAO_Strategies.rc
@@ -3027,7 +2811,6 @@ libTAO_FlResource_la_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- $(ACE_FLTK_CPPFLAGS) \
-DTAO_FLRESOURCE_BUILD_DLL
libTAO_FlResource_la_SOURCES = \
@@ -3035,13 +2818,12 @@ libTAO_FlResource_la_SOURCES = \
FlResource_Loader.cpp
libTAO_FlResource_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@ $(ACE_FLTK_LDFLAGS)
+ -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
libTAO_FlResource_la_LIBADD = \
$(ACE_BUILDDIR)/ace/libACE_FlReactor.la \
libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_FLTK_LIBS)
+ $(ACE_BUILDDIR)/ace/libACE.la
nobase_include_HEADERS += \
FlResource_Factory.h \
@@ -3065,7 +2847,8 @@ libTAO_QtResource_la_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- $(ACE_QT_CPPFLAGS) \
+ -I$(QTDIR)/include \
+ -DQT_THREAD_SUPPORT \
-DTAO_QTRESOURCE_BUILD_DLL
libTAO_QtResource_la_SOURCES = \
@@ -3073,13 +2856,13 @@ libTAO_QtResource_la_SOURCES = \
QtResource_Loader.cpp
libTAO_QtResource_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@ $(ACE_QT_LDFLAGS)
+ -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
libTAO_QtResource_la_LIBADD = \
$(ACE_BUILDDIR)/ace/libACE_QtReactor.la \
libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_QT_LIBS)
+ -lqt-mt
nobase_include_HEADERS += \
QtResource_Factory.h \
@@ -3101,8 +2884,6 @@ libTAO_TkResource_la_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- $(ACE_TK_CPPFLAGS) \
- $(ACE_TCL_CPPFLAGS) \
-DTAO_TKRESOURCE_BUILD_DLL
libTAO_TkResource_la_SOURCES = \
@@ -3110,14 +2891,12 @@ libTAO_TkResource_la_SOURCES = \
TkResource_Loader.cpp
libTAO_TkResource_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@ $(ACE_TK_LDFLAGS) $(ACE_TCL_LDFLAGS)
+ -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
libTAO_TkResource_la_LIBADD = \
$(ACE_BUILDDIR)/ace/libACE_TkReactor.la \
libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_TK_LIBS) \
- $(ACE_TCL_LIBS)
+ $(ACE_BUILDDIR)/ace/libACE.la
nobase_include_HEADERS += \
TAO_TkResource_Export.h \
@@ -3140,8 +2919,6 @@ libTAO_XtResource_la_CPPFLAGS = \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
-I$(TAO_BUILDDIR) \
- $(ACE_X11_CPPFLAGS) \
- $(ACE_XT_CPPFLAGS) \
-DTAO_XTRESOURCE_BUILD_DLL
libTAO_XtResource_la_SOURCES = \
@@ -3149,14 +2926,12 @@ libTAO_XtResource_la_SOURCES = \
XtResource_Loader.cpp
libTAO_XtResource_la_LDFLAGS = \
- -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@ $(ACE_X11_LDFLAGS) $(ACE_XT_LDFLAGS)
+ -version-number @TAO_MAJOR@:@TAO_MINOR@:@TAO_BETA@
libTAO_XtResource_la_LIBADD = \
$(ACE_BUILDDIR)/ace/libACE_XtReactor.la \
libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_XT_LIBS) \
- $(ACE_X11_LIBS)
+ $(ACE_BUILDDIR)/ace/libACE.la
nobase_include_HEADERS += \
TAO_XtResource_Export.h \
diff --git a/TAO/tao/Managed_Types.cpp b/TAO/tao/Managed_Types.cpp
index 1334d4ac165..5c2b8ed152f 100644
--- a/TAO/tao/Managed_Types.cpp
+++ b/TAO/tao/Managed_Types.cpp
@@ -10,20 +10,12 @@ ACE_RCSID (tao,
Managed_Types,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// assignment from CORBA::String_var makes a copy
TAO_String_Manager&
TAO_String_Manager::operator= (const CORBA::String_var &var)
{
- // Strongly exception safe by means of copy and non-throwing swap
- // technique.
- TAO_String_Manager tmp (var.in ());
-
- char * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
-
+ CORBA::string_free (this->ptr_);
+ this->ptr_ = CORBA::string_dup (var.in ());
return *this;
}
@@ -46,14 +38,8 @@ TAO_SeqElem_String_Manager::operator= (const CORBA::String_var &var)
TAO_WString_Manager&
TAO_WString_Manager::operator= (const CORBA::WString_var &var)
{
- // Strongly exception safe by means of copy and non-throwing swap
- // technique.
- TAO_WString_Manager tmp (var.in ());
-
- CORBA::WChar * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
-
+ CORBA::wstring_free (this->ptr_);
+ this->ptr_ = CORBA::wstring_dup (var.in ());
return *this;
}
@@ -69,5 +55,3 @@ TAO_SeqElem_WString_Manager::operator= (const CORBA::WString_var &var)
*this->ptr_ = CORBA::wstring_dup (var.in ());
return *this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Managed_Types.h b/TAO/tao/Managed_Types.h
index fef6ad3c28b..3d41e8880b4 100644
--- a/TAO/tao/Managed_Types.h
+++ b/TAO/tao/Managed_Types.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,9 +24,11 @@
#include "tao/Basic_Types.h"
#include "tao/CORBA_String.h"
-/****************************************************************/
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+# include "ace/OS_NS_string.h"
+#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+/****************************************************************/
/**
* @class TAO_String_Manager
@@ -49,9 +51,6 @@ public:
/// copy constructor
TAO_String_Manager (const TAO_String_Manager &);
- /// constructor from const char* makes a copy.
- TAO_String_Manager (const char *);
-
/// destructor
~TAO_String_Manager (void);
@@ -202,9 +201,6 @@ public:
/// copy constructor
TAO_WString_Manager (const TAO_WString_Manager &);
- /// constructor from const whar* makes a copy.
- TAO_WString_Manager (const CORBA::WChar *);
-
/// destructor
~TAO_WString_Manager (void);
@@ -331,7 +327,43 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+// Allows for the implicit conversion of TAO_String_Manager to const char*
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+namespace ACE_OS
+{
+ inline size_t
+ strlen (const TAO_String_Manager& str)
+ {
+ return ACE_OS::strlen( str.in() );
+ }
+ inline int
+ strcmp( const TAO_String_Manager& lhs, const char* rhs )
+ {
+ return ACE_OS::strcmp( lhs.in(), rhs );
+ }
+ inline int
+ strcmp( const TAO_String_Manager& lhs, const TAO_String_Manager& rhs )
+ {
+ return ACE_OS::strcmp( lhs.in(), rhs.in() );
+ }
+
+ inline size_t
+ strlen( const TAO_WString_Manager& str )
+ {
+ return ACE_OS::strlen( str.in() );
+ }
+ inline int
+ strcmp( const TAO_WString_Manager& lhs, const CORBA::WChar* rhs )
+ {
+ return ACE_OS::strcmp( lhs.in(), rhs );
+ }
+ inline int
+ strcmp( const TAO_WString_Manager& lhs, const TAO_WString_Manager& rhs )
+ {
+ return ACE_OS::strcmp( lhs.in(), rhs.in() );
+ }
+}
+#endif /* ACE_LACKS_DEPRECATED_MACROS */
#if defined (__ACE_INLINE__)
#include "tao/Managed_Types.i"
diff --git a/TAO/tao/Managed_Types.i b/TAO/tao/Managed_Types.i
index aa03deb7c56..73f66c7cdf6 100644
--- a/TAO/tao/Managed_Types.i
+++ b/TAO/tao/Managed_Types.i
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -17,8 +16,6 @@
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// default CTOR initializes to empty string
ACE_INLINE
TAO_String_Manager::TAO_String_Manager (void)
@@ -33,12 +30,6 @@ TAO_String_Manager::TAO_String_Manager (const TAO_String_Manager &rhs)
{
}
-ACE_INLINE
-TAO_String_Manager::TAO_String_Manager (const char *s)
- : ptr_ (CORBA::string_dup (s))
-{
-}
-
// destructor
ACE_INLINE
TAO_String_Manager::~TAO_String_Manager (void)
@@ -50,14 +41,11 @@ TAO_String_Manager::~TAO_String_Manager (void)
ACE_INLINE TAO_String_Manager&
TAO_String_Manager::operator= (const TAO_String_Manager &rhs)
{
- // Strongly exception safe by means of copy and non-throwing swap
- // technique.
- TAO_String_Manager tmp (rhs);
-
- char * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this == &rhs)
+ return *this;
+ CORBA::string_free (this->ptr_);
+ this->ptr_ = CORBA::string_dup (rhs.ptr_);
return *this;
}
@@ -65,14 +53,8 @@ TAO_String_Manager::operator= (const TAO_String_Manager &rhs)
ACE_INLINE TAO_String_Manager &
TAO_String_Manager::operator= (const char * p)
{
- // Strongly exception safe by means of copy and non-throwing swap
- // technique.
- TAO_String_Manager tmp (p);
-
- char * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
-
+ CORBA::string_free (this->ptr_);
+ this->ptr_ = CORBA::string_dup (p);
return *this;
}
@@ -226,12 +208,6 @@ TAO_WString_Manager::TAO_WString_Manager (const TAO_WString_Manager &rhs)
{
}
-ACE_INLINE
-TAO_WString_Manager::TAO_WString_Manager (const CORBA::WChar *ws)
- : ptr_ (CORBA::wstring_dup (ws))
-{
-}
-
// destructor
ACE_INLINE
TAO_WString_Manager::~TAO_WString_Manager (void)
@@ -243,14 +219,11 @@ TAO_WString_Manager::~TAO_WString_Manager (void)
ACE_INLINE TAO_WString_Manager&
TAO_WString_Manager::operator= (const TAO_WString_Manager &rhs)
{
- // Strongly exception safe by means of copy and non-throwing swap
- // technique.
- TAO_WString_Manager tmp (rhs);
-
- CORBA::WChar * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this == &rhs)
+ return *this;
+ CORBA::wstring_free (this->ptr_);
+ this->ptr_ = CORBA::wstring_dup (rhs.ptr_);
return *this;
}
@@ -258,14 +231,8 @@ TAO_WString_Manager::operator= (const TAO_WString_Manager &rhs)
ACE_INLINE TAO_WString_Manager &
TAO_WString_Manager::operator= (const CORBA::WChar * p)
{
- // Strongly exception safe by means of copy and non-throwing swap
- // technique.
- TAO_WString_Manager tmp (p);
-
- CORBA::WChar * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
-
+ CORBA::wstring_free (this->ptr_);
+ this->ptr_ = CORBA::wstring_dup (p);
return *this;
}
@@ -403,5 +370,3 @@ TAO_SeqElem_WString_Manager::_retn (void)
*this->ptr_ = 0;
return temp;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/AMH_Response_Handler.cpp b/TAO/tao/Messaging/AMH_Response_Handler.cpp
index 44d96d99ad5..7d8710b6fac 100644
--- a/TAO/tao/Messaging/AMH_Response_Handler.cpp
+++ b/TAO/tao/Messaging/AMH_Response_Handler.cpp
@@ -15,8 +15,6 @@
#include "ace/Copy_Disabled.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_AMH_Response_Handler::TAO_AMH_Response_Handler ()
: mesg_base_ (0)
, request_id_ (0)
@@ -50,25 +48,25 @@ TAO_AMH_Response_Handler::~TAO_AMH_Response_Handler (void)
{
return;
}
- }
- // If sending the exception to the client fails, then we just give
- // up, release the transport and return.
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- CORBA::NO_RESPONSE ex (CORBA::SystemException::_tao_minor_code
- (TAO_AMH_REPLY_LOCATION_CODE,
- EFAULT),
- CORBA::COMPLETED_NO);
- this->_tao_rh_send_exception (ex ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
- ACE_CHECK;
+ // If sending the exception to the client fails, then we just give
+ // up, release the transport and return.
+ ACE_DECLARE_NEW_CORBA_ENV;
+ ACE_TRY
+ {
+ CORBA::NO_RESPONSE ex (CORBA::SystemException::_tao_minor_code
+ (TAO_AMH_REPLY_LOCATION_CODE,
+ EFAULT),
+ CORBA::COMPLETED_NO);
+ this->_tao_rh_send_exception (ex ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHALL
+ {
+ }
+ ACE_ENDTRY;
+ ACE_CHECK;
+ }
}
void
@@ -188,10 +186,10 @@ TAO_AMH_Response_Handler::_tao_rh_send_exception (CORBA::Exception &ex
if (this->reply_status_ != TAO_RS_UNINITIALIZED)
{
ACE_THROW (CORBA::BAD_INV_ORDER (
- CORBA::SystemException::_tao_minor_code (
- TAO_AMH_REPLY_LOCATION_CODE,
- ENOTSUP),
- CORBA::COMPLETED_YES));
+ CORBA::SystemException::_tao_minor_code (
+ TAO_AMH_REPLY_LOCATION_CODE,
+ ENOTSUP),
+ CORBA::COMPLETED_YES));
}
this->reply_status_ = TAO_RS_SENDING;
}
@@ -241,9 +239,9 @@ TAO_AMH_Response_Handler::_remove_ref (void)
if (this->allocator_)
{
- TAO::TAO_Buffer_Allocator<TAO_AMH_Response_Handler, TAO_AMH_BUFFER_ALLOCATOR> allocator (this->allocator_);
+ TAO::TAO_Buffer_Allocator<TAO_AMH_Response_Handler, TAO_AMH_BUFFER_ALLOCATOR> allocator (allocator_);
- allocator.release (this);
+ allocator.release(this);
}
else
{
@@ -262,4 +260,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/AMH_Response_Handler.h b/TAO/tao/Messaging/AMH_Response_Handler.h
index 738afa35200..678aa406821 100644
--- a/TAO/tao/Messaging/AMH_Response_Handler.h
+++ b/TAO/tao/Messaging/AMH_Response_Handler.h
@@ -7,13 +7,14 @@
* $Id$
*
* @author Mayur Deshpande <mayur@ics.uci.edu>
+ *
*/
// =========================================================================
#ifndef TAO_AMH_RESPONSE_HANDLER_H
#define TAO_AMH_RESPONSE_HANDLER_H
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Allocator.h"
#include "tao/Service_Context.h"
@@ -28,17 +29,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport;
class TAO_Pluggable_Messaging;
class TAO_Output_CDR;
class TAO_ORB_Core;
class TAO_ServerRequest;
+class ACE_Allocator;
typedef ACE_Allocator TAO_AMH_BUFFER_ALLOCATOR;
@@ -69,7 +65,7 @@ class TAO_Messaging_Export TAO_AMH_Response_Handler
// isn't consistent with the specified semantics detailed in the
// CCM spec. Please remove this and place it where appropriate in
// your AMH tests and examples.
- : public TAO_Local_RefCounted_Object
+ : virtual public TAO_Local_RefCounted_Object
{
public:
@@ -86,8 +82,8 @@ public:
/**
* Stores necessary information from a TAO_Server_Request onto the heap
*/
- virtual void init (TAO_ServerRequest &server_request,
- TAO_AMH_BUFFER_ALLOCATOR* allocator);
+ virtual void init(TAO_ServerRequest &server_request,
+ TAO_AMH_BUFFER_ALLOCATOR* allocator);
/// @name Mutators for refcount
//@{
@@ -122,8 +118,8 @@ protected:
private:
// Private and undefined, standard C++ idiom to prohibit copying.
- TAO_AMH_Response_Handler (const TAO_AMH_Response_Handler&);
- TAO_AMH_Response_Handler& operator= (const TAO_AMH_Response_Handler&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_AMH_Response_Handler (const TAO_AMH_Response_Handler&))
+ ACE_UNIMPLEMENTED_FUNC (TAO_AMH_Response_Handler& operator= (const TAO_AMH_Response_Handler&))
private:
/// Pointer to the original message-base
@@ -217,6 +213,4 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_AMH_RESPONSE_HANDLER_H */
diff --git a/TAO/tao/Messaging/Asynch_Invocation.cpp b/TAO/tao/Messaging/Asynch_Invocation.cpp
index 893cab4df34..6d84968d1f6 100644
--- a/TAO/tao/Messaging/Asynch_Invocation.cpp
+++ b/TAO/tao/Messaging/Asynch_Invocation.cpp
@@ -1,7 +1,7 @@
//$Id$
-#include "tao/Messaging/Asynch_Invocation.h"
-#include "tao/Messaging/Asynch_Reply_Dispatcher.h"
+#include "Asynch_Invocation.h"
+#include "Asynch_Reply_Dispatcher.h"
#include "tao/Profile_Transport_Resolver.h"
#include "tao/Invocation_Utils.h"
@@ -20,8 +20,6 @@ ACE_RCSID (Messaging,
Asynch_Invocation,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Asynch_Remote_Invocation::Asynch_Remote_Invocation (
@@ -186,4 +184,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Asynch_Invocation.h b/TAO/tao/Messaging/Asynch_Invocation.h
index 930d223bd3c..b058c4c43a0 100644
--- a/TAO/tao/Messaging/Asynch_Invocation.h
+++ b/TAO/tao/Messaging/Asynch_Invocation.h
@@ -25,15 +25,9 @@
#include "ace/Global_Macros.h"
#include "ace/Auto_Functor.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_InputCDR;
+class ACE_Time_Value;
class TAO_Asynch_Reply_Dispatcher_Base;
namespace CORBA
@@ -68,7 +62,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /*TAO_MESSAGING_ASYNCH_INVOCATION_H*/
diff --git a/TAO/tao/Messaging/Asynch_Invocation_Adapter.cpp b/TAO/tao/Messaging/Asynch_Invocation_Adapter.cpp
index b88ff2855ae..ddbd6c62b5a 100644
--- a/TAO/tao/Messaging/Asynch_Invocation_Adapter.cpp
+++ b/TAO/tao/Messaging/Asynch_Invocation_Adapter.cpp
@@ -1,7 +1,7 @@
//$Id$
-#include "tao/Messaging/Asynch_Invocation_Adapter.h"
-#include "tao/Messaging/Asynch_Reply_Dispatcher.h"
-#include "tao/Messaging/Asynch_Invocation.h"
+#include "Asynch_Invocation_Adapter.h"
+#include "Asynch_Reply_Dispatcher.h"
+#include "Asynch_Invocation.h"
#include "tao/Profile_Transport_Resolver.h"
#include "tao/operation_details.h"
@@ -12,7 +12,6 @@
#include "tao/debug.h"
#include "tao/ORB_Core.h"
#include "tao/Thread_Lane_Resources.h"
-#include "tao/GIOP_Utils.h"
ACE_RCSID (Messaging,
@@ -20,8 +19,6 @@ ACE_RCSID (Messaging,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Asynch_Invocation_Adapter::Asynch_Invocation_Adapter (
@@ -175,16 +172,8 @@ namespace TAO
{
effective_target = asynch.steal_forwarded_reference ();
-#if TAO_HAS_INTERCEPTORS == 1
- const CORBA::Boolean permanent_forward =
- (asynch.reply_status() == TAO_GIOP_LOCATION_FORWARD_PERM);
-#else
- const CORBA::Boolean permanent_forward = false;
-#endif
-
this->object_forwarded (effective_target,
- r.stub (),
- permanent_forward
+ r.stub ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (TAO_INVOKE_FAILURE);
}
@@ -193,5 +182,3 @@ namespace TAO
}
} // End namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Asynch_Invocation_Adapter.h b/TAO/tao/Messaging/Asynch_Invocation_Adapter.h
index 97cc214a71d..f48671c9360 100644
--- a/TAO/tao/Messaging/Asynch_Invocation_Adapter.h
+++ b/TAO/tao/Messaging/Asynch_Invocation_Adapter.h
@@ -29,14 +29,9 @@
#include "ace/Global_Macros.h"
#include "ace/Auto_Functor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Stub;
+class ACE_Time_Value;
class TAO_Asynch_Reply_Dispatcher;
class TAO_Asynch_Reply_Dispatcher_Base;
@@ -95,17 +90,15 @@ namespace TAO
ARDB_Refcount_Functor> safe_rd_;
private:
- /// Don't allow default initializations
- Asynch_Invocation_Adapter (void);
+ /// Dont allow default initializations
+ ACE_UNIMPLEMENTED_FUNC (Asynch_Invocation_Adapter (void))
- Asynch_Invocation_Adapter (const Asynch_Invocation_Adapter &);
- Asynch_Invocation_Adapter & operator= (const Asynch_Invocation_Adapter &);
+ ACE_UNIMPLEMENTED_FUNC (Asynch_Invocation_Adapter & operator= (const Asynch_Invocation_Adapter &))
};
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
-#endif /* TAO_MESSAGING_ASYNCH_INVOCATION_ADAPTER_H */
+#endif /*TAO_MESSAGING_ASYNCH_INVOCATION_ADAPTER_H*/
diff --git a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp
index 7866e1277e7..e3fab16ec13 100644
--- a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp
+++ b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Messaging/Asynch_Reply_Dispatcher.h"
+#include "Asynch_Reply_Dispatcher.h"
#include "tao/Pluggable_Messaging_Utils.h"
#include "tao/ORB_Core.h"
@@ -12,8 +12,6 @@
ACE_RCSID(Messaging, Asynch_Reply_Dispatcher, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Asynch_Reply_Dispatcher::TAO_Asynch_Reply_Dispatcher (
const TAO_Reply_Handler_Skeleton &reply_handler_skel,
@@ -110,7 +108,6 @@ TAO_Asynch_Reply_Dispatcher::dispatch_reply (
break;
default:
case TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD:
- case TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM:
// @@ Michael: Not even the spec mentions this case.
// We have to think about this case.
// Handle the forwarding and return so the stub restarts the
@@ -279,5 +276,3 @@ TAO_Asynch_Reply_Dispatcher::schedule_timer (CORBA::ULong request_id,
request_id,
max_wait_time);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h
index 5b315547813..03a35ced0a3 100644
--- a/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h
+++ b/TAO/tao/Messaging/Asynch_Reply_Dispatcher.h
@@ -16,23 +16,19 @@
#define TAO_ASYNCH_REPLY_DISPATCHER_H
#include /**/ "ace/pre.h"
-#include "tao/Messaging/Messaging.h"
+#include "Messaging.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/Asynch_Timeout_Handler.h"
+#include "Asynch_Timeout_Handler.h"
#include "tao/Asynch_Reply_Dispatcher_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Reply dispatcher for Asynchoronous Method Invocation (AMI)s.
-class TAO_Asynch_Reply_Dispatcher
+class TAO_Messaging_Export TAO_Asynch_Reply_Dispatcher
: public TAO_Asynch_Reply_Dispatcher_Base
{
public:
@@ -73,7 +69,5 @@ private:
TAO_Asynch_Timeout_Handler *timeout_handler_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ASYNCH_REPLY_DISPATCHER_H */
diff --git a/TAO/tao/Messaging/Asynch_Timeout_Handler.cpp b/TAO/tao/Messaging/Asynch_Timeout_Handler.cpp
index f72a1d46d85..b3fecff6a83 100644
--- a/TAO/tao/Messaging/Asynch_Timeout_Handler.cpp
+++ b/TAO/tao/Messaging/Asynch_Timeout_Handler.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/Messaging/Asynch_Timeout_Handler.h"
+#include "Asynch_Timeout_Handler.h"
-#include "tao/Messaging/Asynch_Reply_Dispatcher.h"
+#include "Asynch_Reply_Dispatcher.h"
#include "tao/Transport_Mux_Strategy.h"
#include "ace/Reactor.h"
@@ -11,7 +11,6 @@ ACE_RCSID (Messaging,
Asynch_Timeout_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Asynch_Timeout_Handler::TAO_Asynch_Timeout_Handler (
TAO_Asynch_Reply_Dispatcher_Base *rd,
@@ -74,5 +73,3 @@ TAO_Asynch_Timeout_Handler::cancel ()
this->reactor_->cancel_timer (this);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Asynch_Timeout_Handler.h b/TAO/tao/Messaging/Asynch_Timeout_Handler.h
index 9b8a55eb8c2..be230bb6374 100644
--- a/TAO/tao/Messaging/Asynch_Timeout_Handler.h
+++ b/TAO/tao/Messaging/Asynch_Timeout_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,8 +30,6 @@
#include "ace/Event_Handler.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Asynch_Reply_Dispatcher_Base;
class TAO_Transport_Mux_Strategy;
@@ -40,7 +38,7 @@ class TAO_Transport_Mux_Strategy;
*
* @brief Handler registered with the reactor in case of AMI timeouts.
*/
-class TAO_Asynch_Timeout_Handler
+class TAO_Messaging_Export TAO_Asynch_Timeout_Handler
: public ACE_Event_Handler
{
public:
@@ -75,8 +73,6 @@ public:
ACE_Reactor *reactor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ASYNCH_TIMEOUT_HANDLER_H */
diff --git a/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp b/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp
index 4eaaa3bdc12..df49288c887 100644
--- a/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp
+++ b/TAO/tao/Messaging/Connection_Timeout_Policy_i.cpp
@@ -1,5 +1,5 @@
//$Id$
-#include "tao/Messaging/Connection_Timeout_Policy_i.h"
+#include "Connection_Timeout_Policy_i.h"
#include "tao/ORB_Core.h"
#include "tao/Stub.h"
#include "tao/debug.h"
@@ -12,8 +12,6 @@ ACE_RCSID (Messaging,
#if (TAO_HAS_CONNECTION_TIMEOUT_POLICY == 1)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ConnectionTimeoutPolicy::TAO_ConnectionTimeoutPolicy (
const TimeBase::TimeT& relative_expiry)
: ACE_NESTED_CLASS (CORBA, Object) ()
@@ -188,13 +186,11 @@ TAO_ConnectionTimeoutPolicy::set_time_value (ACE_Time_Value &time_value)
if (TAO_debug_level > 0)
{
- CORBA::ULong const msecs = time_value.msec ();
+ CORBA::ULong msecs = time_value.msec ();
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - Timeout is <%u>\n"),
msecs));
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_RELATIVE_ROUNDTRIP_TIMEOUT_POLICY == 1 */
diff --git a/TAO/tao/Messaging/Connection_Timeout_Policy_i.h b/TAO/tao/Messaging/Connection_Timeout_Policy_i.h
index 9e334a307a7..73f041dca16 100644
--- a/TAO/tao/Messaging/Connection_Timeout_Policy_i.h
+++ b/TAO/tao/Messaging/Connection_Timeout_Policy_i.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Connection_Timeout_Policy_i.h
@@ -12,7 +11,6 @@
#ifndef TAO_CONNECTION_TIMEOUT_POLICY_I_H
#define TAO_CONNECTION_TIMEOUT_POLICY_I_H
-
#include /**/ "ace/pre.h"
#include "tao/orbconf.h"
@@ -21,7 +19,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/TAO_ExtC.h"
+#include "TAO_ExtC.h"
#include "tao/LocalObject.h"
#if defined(_MSC_VER)
@@ -32,8 +30,6 @@
#if (TAO_HAS_CONNECTION_TIMEOUT_POLICY == 1)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
* @class TAO_ConnectionTimeoutPolicy
*
@@ -42,7 +38,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* This policy controls the connection timeout time while
* establishing connections. This policy is proprietary to TAO.
*/
-class TAO_ConnectionTimeoutPolicy
+class TAO_Messaging_Export TAO_ConnectionTimeoutPolicy
: public TAO::ConnectionTimeoutPolicy,
public TAO_Local_RefCounted_Object
{
@@ -93,8 +89,6 @@ private:
TimeBase::TimeT relative_expiry_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_RELATIVE_ROUNDTRIP_TIMEOUT_POLICY == 1 */
#if defined(_MSC_VER)
@@ -102,5 +96,4 @@ TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* _MSC_VER */
#include /**/ "ace/post.h"
-
-#endif /* TAO_CONNECTION_TIMEOUT_POLICY_I_H */
+#endif /*TAO_CONNECTION_TIMEOUT_POLICY_I_H*/
diff --git a/TAO/tao/Messaging/ExceptionHolderA.cpp b/TAO/tao/Messaging/ExceptionHolderA.cpp
index 99273a726d0..4acda37b712 100644
--- a/TAO/tao/Messaging/ExceptionHolderA.cpp
+++ b/TAO/tao/Messaging/ExceptionHolderA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/ExceptionHolderA.h"
+#include "ExceptionHolderA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -43,7 +43,6 @@
#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_typecode/value_typecode.cpp:63
@@ -190,8 +189,8 @@ operator>>= (
);
}
-#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+#endif
#endif
diff --git a/TAO/tao/Messaging/ExceptionHolderA.h b/TAO/tao/Messaging/ExceptionHolderA.h
index 2efc2998af0..b3c03859799 100644
--- a/TAO/tao/Messaging/ExceptionHolderA.h
+++ b/TAO/tao/Messaging/ExceptionHolderA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/ExceptionHolderC.h"
#include "tao/AnyTypeCode/OctetSeqA.h"
#include "tao/AnyTypeCode/DynamicA.h"
@@ -44,8 +44,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -81,8 +79,6 @@ TAO_Messaging_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, Messagi
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Messaging/ExceptionHolderC.cpp b/TAO/tao/Messaging/ExceptionHolderC.cpp
index 3673c01c5a8..285d835210b 100644
--- a/TAO/tao/Messaging/ExceptionHolderC.cpp
+++ b/TAO/tao/Messaging/ExceptionHolderC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/ExceptionHolderC.h"
+#include "ExceptionHolderC.h"
#include "tao/CDR.h"
#include "tao/Valuetype/ValueFactory.h"
#include "tao/ORB_Core.h"
@@ -38,14 +38,12 @@
#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
#if !defined (__ACE_INLINE__)
-#include "tao/Messaging/ExceptionHolderC.inl"
+#include "ExceptionHolderC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -306,6 +304,4 @@ OBV_Messaging::ExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/tao/Messaging/ExceptionHolderC.h b/TAO/tao/Messaging/ExceptionHolderC.h
index 37848e2adcf..ffedf44d5f4 100644
--- a/TAO/tao/Messaging/ExceptionHolderC.h
+++ b/TAO/tao/Messaging/ExceptionHolderC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Valuetype/ValueBase.h"
#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
#include "tao/ORB.h"
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -283,10 +281,8 @@ TAO_Messaging_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, Messaging::Exc
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Messaging/ExceptionHolderC.inl"
+#include "ExceptionHolderC.inl"
#endif /* defined INLINE */
#endif
diff --git a/TAO/tao/Messaging/ExceptionHolderC.inl b/TAO/tao/Messaging/ExceptionHolderC.inl
index cabe51e8d9f..6348b2eb0c7 100644
--- a/TAO/tao/Messaging/ExceptionHolderC.inl
+++ b/TAO/tao/Messaging/ExceptionHolderC.inl
@@ -31,8 +31,6 @@
#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
Messaging::ExceptionHolder::ExceptionHolder (void)
{}
@@ -43,6 +41,4 @@ Messaging::ExceptionHolder::_tao_obv_static_repository_id ()
return "IDL:omg.org/Messaging/ExceptionHolder:1.0";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/tao/Messaging/ExceptionHolder_i.cpp b/TAO/tao/Messaging/ExceptionHolder_i.cpp
deleted file mode 100644
index 880f31b6d7d..00000000000
--- a/TAO/tao/Messaging/ExceptionHolder_i.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-// -*- C++ -*-
-// $Id$
-
-#include "tao/Messaging/ExceptionHolder_i.h"
-
-ACE_RCSID (Messaging,
- ExceptionHolder_i,
- "$Id$")
-
-#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-
-#include "tao/Messaging/Messaging.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- ExceptionHolder::ExceptionHolder (void) :
- data_ (0),
- count_ (0)
- {
- }
-
- ExceptionHolder::ExceptionHolder (
- ::CORBA::Boolean is_system_exception,
- ::CORBA::Boolean byte_order,
- const ::CORBA::OctetSeq &marshaled_exception,
- ::TAO::Exception_Data* data,
- ::CORBA::ULong exceptions_count) :
- data_ (data),
- count_ (exceptions_count)
- {
- // @todo According to the latest corba spec we should be able to
- // pass this to the ExceptionHolder constructor but the TAO_IDL
- // compiler doesn't seem to generate this.
- this->is_system_exception (is_system_exception);
- this->byte_order (byte_order);
- this->marshaled_exception (marshaled_exception);
- }
-
- ExceptionHolder::~ExceptionHolder ()
- {
- }
-
- void ExceptionHolder::raise_exception (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- {
- TAO_Messaging_Helper::exception_holder_raise (
- this->data_,
- this->count_,
- this->marshaled_exception ().get_buffer (),
- this->marshaled_exception ().length (),
- this->byte_order (),
- this->is_system_exception ()
- ACE_ENV_ARG_PARAMETER);
- }
-
- void ExceptionHolder::raise_exception_with_list (
- const ::Dynamic::ExceptionList & ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- {
- // todo convert exceptionlist to something we can really use.
- this->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- }
-
- CORBA::ValueBase *
- ExceptionHolderFactory::create_for_unmarshal (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- {
- TAO::ExceptionHolder* ret_val = 0;
- ACE_NEW_THROW_EX (ret_val,
- ExceptionHolder,
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- return ret_val;
- }
-
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif
diff --git a/TAO/tao/Messaging/ExceptionHolder_i.h b/TAO/tao/Messaging/ExceptionHolder_i.h
deleted file mode 100644
index c80a5a23141..00000000000
--- a/TAO/tao/Messaging/ExceptionHolder_i.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ExceptionHolder_i.h
- *
- * $Id$
- *
- * @author Johnny Willemsen <jwillemsen@remedy.nl>
- */
-//=============================================================================
-
-#ifndef TAO_MESSAGING_EXCEPTIONHOLDER_I_H
-#define TAO_MESSAGING_EXCEPTIONHOLDER_I_H
-#include /**/ "ace/pre.h"
-
-#include "tao/Messaging/messaging_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/orbconf.h"
-
-#if !defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-
-#include "tao/Messaging/ExceptionHolderA.h"
-#include "tao/Messaging/ExceptionHolderC.h"
-#include "tao/Valuetype/ValueFactory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace Dynamic
-{
- class ExceptionList;
-}
-
-namespace Messaging
-{
- class ReplyHandler;
-}
-
-namespace TAO
-{
- struct Exception_Data;
-
- class TAO_Messaging_Export ExceptionHolder
- : public virtual ::OBV_Messaging::ExceptionHolder,
- public virtual ::CORBA::DefaultValueRefCountBase
- {
- public:
- ExceptionHolder (void);
-
- ExceptionHolder (
- ::CORBA::Boolean is_system_exception,
- ::CORBA::Boolean byte_order,
- const ::CORBA::OctetSeq &marshaled_exception,
- ::TAO::Exception_Data* data_,
- ::CORBA::ULong exceptions_count
- );
-
- virtual void raise_exception (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
- virtual void raise_exception_with_list (
- const ::Dynamic::ExceptionList & exc_list ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- protected:
-
- virtual ~ExceptionHolder (void);
-
- private:
-
- TAO::Exception_Data* const data_;
- CORBA::ULong const count_;
-
- };
-
- /**
- * @class ExceptionHolderFactory
- *
- * @brief OBV factory implementation.
- *
- * Factory for ExceptionHolder
- */
- class TAO_Messaging_Export ExceptionHolderFactory :
- public virtual CORBA::ValueFactoryBase
- {
- public:
- virtual CORBA::ValueBase * create_for_unmarshal (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
- };
-
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif
-
-#include /**/ "ace/post.h"
-#endif /* TAO_MESSAGING_EXCEPTIONHOLDER_I_H */
-
diff --git a/TAO/tao/Messaging/Messaging.cpp b/TAO/tao/Messaging/Messaging.cpp
index 6f34e95f288..8b245a2ac34 100644
--- a/TAO/tao/Messaging/Messaging.cpp
+++ b/TAO/tao/Messaging/Messaging.cpp
@@ -1,8 +1,8 @@
// -*- C++ -*-
// $Id$
-#include "tao/Messaging/Messaging.h"
-#include "tao/Messaging/Messaging_Loader.h"
+#include "Messaging.h"
+#include "Messaging_Loader.h"
#include "tao/Exception_Data.h"
#include "tao/debug.h"
@@ -17,9 +17,6 @@ ACE_RCSID (Messaging,
Messaging,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Messaging_Initializer::init (void)
{
@@ -88,7 +85,7 @@ exception_holder_raise (TAO::Exception_Data *exception_data,
if (ACE_OS::strcmp (type_id.in (), exception_data[i].id) != 0)
continue;
- CORBA::Exception * const exception = exception_data[i].alloc ();
+ CORBA::Exception *exception = exception_data[i].alloc ();
if (exception == 0)
ACE_THROW (CORBA::NO_MEMORY (TAO::VMCID,
@@ -98,7 +95,7 @@ exception_holder_raise (TAO::Exception_Data *exception_data,
// Raise the exception.
#if defined (TAO_HAS_EXCEPTIONS)
- ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr (exception);
+ ACE_Auto_Basic_Ptr<CORBA::Exception> e_ptr(exception);
#endif
ACE_ENV_RAISE (exception);
@@ -114,5 +111,3 @@ exception_holder_raise (TAO::Exception_Data *exception_data,
ACE_THROW (CORBA::UNKNOWN (TAO::VMCID,
CORBA::COMPLETED_YES));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging.h b/TAO/tao/Messaging/Messaging.h
index 4c4647e5432..ba4077c94cb 100644
--- a/TAO/tao/Messaging/Messaging.h
+++ b/TAO/tao/Messaging/Messaging.h
@@ -14,20 +14,10 @@
#ifndef TAO_MESSAGING_H
#define TAO_MESSAGING_H
-
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
-
-#define TAO_MESSAGING_SAFE_INCLUDE
-#include "tao/Messaging/MessagingC.h"
-#undef TAO_MESSAGING_SAFE_INCLUDE
-
-#include "tao/Messaging/MessagingA.h"
-#include "tao/Messaging/TAO_ExtC.h"
-#include "tao/TAOC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "messaging_export.h"
class TAO_Messaging_Export TAO_Messaging_Initializer
{
@@ -39,6 +29,15 @@ public:
static int
TAO_Requires_Messaging_Initializer = TAO_Messaging_Initializer::init ();
+#define TAO_MESSAGING_SAFE_INCLUDE
+#include "MessagingC.h"
+#undef TAO_MESSAGING_SAFE_INCLUDE
+
+#include "MessagingA.h"
+#include "TAO_ExtC.h"
+#include "tao/TAOC.h"
+
+
// Typedef for the Reply Handler Skeleton.
// This is handcrafted not generated by the IDL compiler.
@@ -92,7 +91,6 @@ namespace TAO_Messaging_Helper
ACE_ENV_ARG_DECL);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_MESSAGING_H */
diff --git a/TAO/tao/Messaging/MessagingA.cpp b/TAO/tao/Messaging/MessagingA.cpp
index d54d9ed1a34..ae94cc8598a 100644
--- a/TAO/tao/Messaging/MessagingA.cpp
+++ b/TAO/tao/Messaging/MessagingA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/Messaging.h"
+#include "Messaging.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -166,5 +164,3 @@ operator>>= (
}
#endif
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/MessagingA.h b/TAO/tao/Messaging/MessagingA.h
index 05db49af523..f07ee68a2ab 100644
--- a/TAO/tao/Messaging/MessagingA.h
+++ b/TAO/tao/Messaging/MessagingA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/MessagingC.h"
#include "tao/Messaging/Messaging_SyncScope_PolicyA.h"
#include "tao/Messaging/Messaging_RT_PolicyA.h"
@@ -47,8 +47,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -84,8 +82,6 @@ TAO_Messaging_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, Messagi
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/MessagingC.cpp b/TAO/tao/Messaging/MessagingC.cpp
index e8c429787c5..0fb388a8db1 100644
--- a/TAO/tao/Messaging/MessagingC.cpp
+++ b/TAO/tao/Messaging/MessagingC.cpp
@@ -29,20 +29,18 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/Messaging.h"
+#include "Messaging.h"
#include "tao/CDR.h"
#include "tao/Object_T.h"
#include "ace/OS_NS_string.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Messaging/MessagingC.inl"
+#include "MessagingC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -239,5 +237,3 @@ Messaging::ReplyHandler::marshal (TAO_OutputCDR &cdr)
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/MessagingC.h b/TAO/tao/Messaging/MessagingC.h
index ed12276ef97..a7ea6b985d0 100644
--- a/TAO/tao/Messaging/MessagingC.h
+++ b/TAO/tao/Messaging/MessagingC.h
@@ -44,7 +44,7 @@
#error "You should not include MessagingC.h directly, use Messaging.h"
#endif /* !TAO_MESSAGING_SAFE_INCLUDE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -66,8 +66,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Messaging_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -242,10 +240,8 @@ TAO_Messaging_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, Messaging::Rep
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Messaging/MessagingC.inl"
+#include "MessagingC.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Messaging/MessagingC.inl b/TAO/tao/Messaging/MessagingC.inl
index ee8e47e7f57..465190bb2db 100644
--- a/TAO/tao/Messaging/MessagingC.inl
+++ b/TAO/tao/Messaging/MessagingC.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
@@ -62,5 +61,3 @@ Messaging::ReplyHandler::ReplyHandler (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/MessagingS.cpp b/TAO/tao/Messaging/MessagingS.cpp
index 913acc12d64..65746739df0 100644
--- a/TAO/tao/Messaging/MessagingS.cpp
+++ b/TAO/tao/Messaging/MessagingS.cpp
@@ -33,7 +33,7 @@
#define _TAO_IDL_MESSAGINGS_CPP_
-#include "tao/Messaging/MessagingS.h"
+#include "MessagingS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h"
#include "tao/PortableServer/Upcall_Command.h"
@@ -63,8 +63,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -797,7 +795,5 @@ POA_Messaging::ReplyHandler::_this (ACE_ENV_SINGLE_ARG_DECL)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/MessagingS.h b/TAO/tao/Messaging/MessagingS.h
index 7c5f68e5eee..c633f3027ba 100644
--- a/TAO/tao/Messaging/MessagingS.h
+++ b/TAO/tao/Messaging/MessagingS.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/Messaging.h"
+#include "Messaging.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -46,8 +46,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_Messaging
{
@@ -203,9 +201,7 @@ namespace POA_Messaging
// TAO_IDL - Generated from
// be\be_codegen.cpp:1072
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "tao/Messaging/MessagingS_T.h"
+#include "MessagingS_T.h"
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Messaging/MessagingS_T.cpp b/TAO/tao/Messaging/MessagingS_T.cpp
index c7390c0ad31..1f53170dde1 100644
--- a/TAO/tao/Messaging/MessagingS_T.cpp
+++ b/TAO/tao/Messaging/MessagingS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_MESSAGINGS_T_CPP_
#define _TAO_IDL_MESSAGINGS_T_CPP_
-#include "tao/Messaging/MessagingS_T.h"
+#include "MessagingS_T.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Messaging/MessagingS_T.inl"
+#include "MessagingS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/tao/Messaging/MessagingS_T.h b/TAO/tao/Messaging/MessagingS_T.h
index c111885476a..426a76f0529 100644
--- a/TAO/tao/Messaging/MessagingS_T.h
+++ b/TAO/tao/Messaging/MessagingS_T.h
@@ -33,8 +33,6 @@
#include /**/ "ace/pre.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -95,14 +93,12 @@ namespace POA_Messaging
// TAO_IDL - Generated from
// be\be_codegen.cpp:1165
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Messaging/MessagingS_T.inl"
+#include "MessagingS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Messaging/MessagingS_T.cpp"
+#include "MessagingS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Messaging/MessagingS_T.inl b/TAO/tao/Messaging/MessagingS_T.inl
index 45319a7c078..0a3b3cfd130 100644
--- a/TAO/tao/Messaging/MessagingS_T.inl
+++ b/TAO/tao/Messaging/MessagingS_T.inl
@@ -25,7 +25,6 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -120,4 +119,3 @@ POA_Messaging::ReplyHandler_tie<T>::_default_POA (ACE_ENV_SINGLE_ARG_DECL)
return this->ReplyHandler::_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_Loader.cpp b/TAO/tao/Messaging/Messaging_Loader.cpp
index 81555edbf4a..f823aabd690 100644
--- a/TAO/tao/Messaging/Messaging_Loader.cpp
+++ b/TAO/tao/Messaging/Messaging_Loader.cpp
@@ -1,24 +1,23 @@
// $Id$
-#include "tao/Messaging/Messaging_Loader.h"
-#include "tao/Messaging/Messaging_ORBInitializer.h"
+#include "Messaging_Loader.h"
+#include "Messaging_ORBInitializer.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
#include "tao/ORBInitializer_Registry.h"
-ACE_RCSID (Messaging, Messaging_Loader, "$Id$")
+ACE_RCSID (TAO, Messaging_Loader, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Messaging_Loader::TAO_Messaging_Loader (void)
{
}
TAO_Messaging_Loader::~TAO_Messaging_Loader (void)
{
+
}
int
@@ -62,7 +61,7 @@ TAO_Messaging_Loader::init (int,
if (TAO_debug_level > 0)
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
+ "(%P | %t) Caught exception:");
}
return -1;
}
@@ -71,8 +70,6 @@ TAO_Messaging_Loader::init (int,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////////////////////////////////////////////
ACE_FACTORY_DEFINE (TAO_Messaging, TAO_Messaging_Loader)
diff --git a/TAO/tao/Messaging/Messaging_Loader.h b/TAO/tao/Messaging/Messaging_Loader.h
index d15ee63f1c7..08a4a7fd154 100644
--- a/TAO/tao/Messaging/Messaging_Loader.h
+++ b/TAO/tao/Messaging/Messaging_Loader.h
@@ -1,19 +1,23 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Messaging_Loader.h
*
* $Id$
+ *
+ * Header file for Loading RTScheduler.
+ *
+ *
+ * @author Yamuna Krishnamurthy <yamuna@oomworks.com>
*/
//=============================================================================
-#ifndef TAO_MESSAGING_LOADER_H
-#define TAO_MESSAGING_LOADER_H
-
+#ifndef TAO_RTSCHEDULER_LOADER_H
+#define TAO_RTSCHEDULER_LOADER_H
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
@@ -22,10 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Messaging_Export TAO_Messaging_Loader : public ACE_Service_Object
{
public:
@@ -40,10 +40,8 @@ public:
ACE_TCHAR* []);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Messaging, TAO_Messaging_Loader)
ACE_FACTORY_DECLARE (TAO_Messaging, TAO_Messaging_Loader)
#include /**/ "ace/post.h"
-#endif /* TAO_MESSAGING_LOADER_H */
+#endif /* TAO_RTSCHEDULER_LOADER_H */
diff --git a/TAO/tao/Messaging/Messaging_No_ImplA.cpp b/TAO/tao/Messaging/Messaging_No_ImplA.cpp
index bd636c617ee..cb4d2d6d29a 100644
--- a/TAO/tao/Messaging/Messaging_No_ImplA.cpp
+++ b/TAO/tao/Messaging/Messaging_No_ImplA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/Messaging_No_ImplA.h"
+#include "Messaging_No_ImplA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -38,8 +38,6 @@
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -495,5 +493,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_No_ImplA.h b/TAO/tao/Messaging/Messaging_No_ImplA.h
index e11e3273d6c..a2d24bed959 100644
--- a/TAO/tao/Messaging/Messaging_No_ImplA.h
+++ b/TAO/tao/Messaging/Messaging_No_ImplA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/Messaging_No_ImplC.h"
#include "tao/AnyTypeCode/TimeBaseA.h"
#include "tao/AnyTypeCode/PolicyA.h"
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -153,8 +151,6 @@ TAO_Messaging_Export void operator<<= (::CORBA::Any &, Messaging::RoutingTypeRan
TAO_Messaging_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, Messaging::RoutingTypeRange *&); // deprecated
TAO_Messaging_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const Messaging::RoutingTypeRange *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/Messaging_No_ImplC.cpp b/TAO/tao/Messaging/Messaging_No_ImplC.cpp
index 9615102b4f1..cd27dfdd4bc 100644
--- a/TAO/tao/Messaging/Messaging_No_ImplC.cpp
+++ b/TAO/tao/Messaging/Messaging_No_ImplC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/Messaging_No_ImplC.h"
+#include "Messaging_No_ImplC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -1490,5 +1488,3 @@ Messaging::QueueOrderPolicy::marshal (TAO_OutputCDR &)
(strm >> _tao_aggregate.min) &&
(strm >> _tao_aggregate.max);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_No_ImplC.h b/TAO/tao/Messaging/Messaging_No_ImplC.h
index ba97ba1885e..8efa3edd9dd 100644
--- a/TAO/tao/Messaging/Messaging_No_ImplC.h
+++ b/TAO/tao/Messaging/Messaging_No_ImplC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -1765,8 +1763,6 @@ TAO_Messaging_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, Messaging::Rou
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/Messaging_ORBInitializer.cpp b/TAO/tao/Messaging/Messaging_ORBInitializer.cpp
index 16196807c78..d373535fff1 100644
--- a/TAO/tao/Messaging/Messaging_ORBInitializer.cpp
+++ b/TAO/tao/Messaging/Messaging_ORBInitializer.cpp
@@ -1,21 +1,16 @@
// -*- C++ -*-
-#include "tao/Messaging/Messaging_ORBInitializer.h"
+#include "Messaging_ORBInitializer.h"
-#include "tao/Messaging/Messaging_Policy_i.h"
-#include "tao/Messaging/Connection_Timeout_Policy_i.h"
-#include "tao/Messaging/Messaging_PolicyFactory.h"
-#include "tao/Messaging/ExceptionHolder_i.h"
+#include "Messaging_Policy_i.h"
+#include "Connection_Timeout_Policy_i.h"
+#include "Messaging_PolicyFactory.h"
#include "tao/ORB_Core.h"
-#include "tao/PI/ORBInitInfo.h"
-#include "tao/Valuetype/ValueFactory.h"
ACE_RCSID (Messaging,
Messaging_ORBInitializer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_Messaging_ORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
@@ -47,52 +42,9 @@ TAO_Messaging_ORBInitializer::post_init (
this->register_policy_factories (info
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
- this->register_value_factory (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
void
-TAO_Messaging_ORBInitializer::register_value_factory (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
-{
-#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
- ACE_UNUSED_ARG (info);
-#else
- // Narrow to a TAO_ORBInitInfo object to get access to the
- // orb_core() TAO extension.
- TAO_ORBInitInfo_var tao_info =
- TAO_ORBInitInfo::_narrow (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil (tao_info.in ()))
- {
- if (TAO_debug_level > 0)
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) TAO_Messaging_ORBInitializer::register_value_factory:\n"
- "(%P|%t) Unable to narrow "
- "\"PortableInterceptor::ORBInitInfo_ptr\" to\n"
- "(%P|%t) \"TAO_ORBInitInfo *.\"\n"));
-
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- TAO::ExceptionHolderFactory *base_factory = 0;
- ACE_NEW (base_factory,
- TAO::ExceptionHolderFactory);
- CORBA::ValueFactory_var factory = base_factory;
-
- tao_info->orb_core()->orb ()->register_value_factory (
- Messaging::ExceptionHolder::_tao_obv_static_repository_id (),
- base_factory
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#endif
-}
-void
TAO_Messaging_ORBInitializer::register_policy_factories (
PortableInterceptor::ORBInitInfo_ptr info
ACE_ENV_ARG_DECL)
@@ -192,5 +144,3 @@ TAO_Messaging_ORBInitializer::register_policy_factories (
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_ORBInitializer.h b/TAO/tao/Messaging/Messaging_ORBInitializer.h
index e5d57c2a72d..f9d7398a5f1 100644
--- a/TAO/tao/Messaging/Messaging_ORBInitializer.h
+++ b/TAO/tao/Messaging/Messaging_ORBInitializer.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -32,10 +32,9 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/// Messaging ORB initializer.
-class TAO_Messaging_ORBInitializer
+class TAO_Messaging_Export TAO_Messaging_ORBInitializer
: public virtual PortableInterceptor::ORBInitializer,
public virtual TAO_Local_RefCounted_Object
{
@@ -65,19 +64,14 @@ private:
void register_policy_factories (
PortableInterceptor::ORBInitInfo_ptr info
ACE_ENV_ARG_DECL);
-
- /// Register ExceptionHolder value factory
- void register_value_factory (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
+
+
#include /**/ "ace/post.h"
#endif /* TAO_MESSAGING_ORB_INITIALIZER_H */
diff --git a/TAO/tao/Messaging/Messaging_PolicyFactory.cpp b/TAO/tao/Messaging/Messaging_PolicyFactory.cpp
index 7fcda386a8b..00b089ed21c 100644
--- a/TAO/tao/Messaging/Messaging_PolicyFactory.cpp
+++ b/TAO/tao/Messaging/Messaging_PolicyFactory.cpp
@@ -1,19 +1,17 @@
-#include "tao/Messaging/Messaging_PolicyFactory.h"
+#include "Messaging_PolicyFactory.h"
ACE_RCSID (Messaging,
Messaging_PolicyFactory,
"$Id$")
-#include "tao/Messaging/Messaging_Policy_i.h"
-#include "tao/Messaging/Connection_Timeout_Policy_i.h"
+#include "Messaging_Policy_i.h"
+#include "Connection_Timeout_Policy_i.h"
#include "tao/PolicyC.h"
#include "tao/Buffering_Constraint_Policy.h"
#include "tao/AnyTypeCode/TAOA.h"
#include "tao/AnyTypeCode/Any.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1)
CORBA::Policy_ptr
@@ -107,5 +105,3 @@ TAO_Messaging_PolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_PolicyFactory.h b/TAO/tao/Messaging/Messaging_PolicyFactory.h
index c2b36ed1a43..823a3d46908 100644
--- a/TAO/tao/Messaging/Messaging_PolicyFactory.h
+++ b/TAO/tao/Messaging/Messaging_PolicyFactory.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,10 +33,8 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Policy factory for all Messaging related policies.
-class TAO_Messaging_PolicyFactory
+class TAO_Messaging_Export TAO_Messaging_PolicyFactory
: public virtual PortableInterceptor::PolicyFactory,
public virtual TAO_Local_RefCounted_Object
{
@@ -55,7 +53,6 @@ private:
#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(_MSC_VER)
#pragma warning(pop)
diff --git a/TAO/tao/Messaging/Messaging_Policy_i.cpp b/TAO/tao/Messaging/Messaging_Policy_i.cpp
index 025f6018620..f4e244a8696 100644
--- a/TAO/tao/Messaging/Messaging_Policy_i.cpp
+++ b/TAO/tao/Messaging/Messaging_Policy_i.cpp
@@ -6,15 +6,13 @@
#include "tao/AnyTypeCode/Any.h"
#if ! defined (__ACE_INLINE__)
-#include "tao/Messaging/Messaging_Policy_i.i"
+#include "Messaging_Policy_i.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Messaging,
Messaging_Policy_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if (TAO_HAS_RELATIVE_ROUNDTRIP_TIMEOUT_POLICY == 1)
TAO_RelativeRoundtripTimeoutPolicy::TAO_RelativeRoundtripTimeoutPolicy (
@@ -341,5 +339,3 @@ TAO_Sync_Scope_Policy::_tao_cached_type (void) const
}
#endif /* TAO_HAS_SYNC_SCOPE_POLICY == 1 */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_Policy_i.h b/TAO/tao/Messaging/Messaging_Policy_i.h
index 588ea35d89b..25ee477009e 100644
--- a/TAO/tao/Messaging/Messaging_Policy_i.h
+++ b/TAO/tao/Messaging/Messaging_Policy_i.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,8 +23,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if (TAO_HAS_RELATIVE_ROUNDTRIP_TIMEOUT_POLICY == 1)
/*
@@ -35,7 +33,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* This policy controls the total (round-trip) timeout time for a
* request.
*/
-class TAO_RelativeRoundtripTimeoutPolicy
+class TAO_Messaging_Export TAO_RelativeRoundtripTimeoutPolicy
: public Messaging::RelativeRoundtripTimeoutPolicy,
public TAO_Local_RefCounted_Object
{
@@ -153,10 +151,8 @@ private:
#endif /* TAO_HAS_SYNC_SCOPE_POLICY == 1 */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Messaging/Messaging_Policy_i.i"
+#include "Messaging_Policy_i.i"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/tao/Messaging/Messaging_Policy_i.i b/TAO/tao/Messaging/Messaging_Policy_i.i
index f33ea289267..2915eaae01e 100644
--- a/TAO/tao/Messaging/Messaging_Policy_i.i
+++ b/TAO/tao/Messaging/Messaging_Policy_i.i
@@ -1,17 +1,11 @@
-// -*- C++ -*-
-//
// $Id$
#if (TAO_HAS_SYNC_SCOPE_POLICY == 1)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_Sync_Scope_Policy::get_synchronization (Messaging::SyncScope &s) const
{
s = this->synchronization_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SYNC_SCOPE_POLICY == 1 */
diff --git a/TAO/tao/Messaging/Messaging_RT_PolicyA.cpp b/TAO/tao/Messaging/Messaging_RT_PolicyA.cpp
index 21854a2d37a..480dc301af5 100644
--- a/TAO/tao/Messaging/Messaging_RT_PolicyA.cpp
+++ b/TAO/tao/Messaging/Messaging_RT_PolicyA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/Messaging_RT_PolicyA.h"
+#include "Messaging_RT_PolicyA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -73,4 +71,4 @@ namespace Messaging
&_tao_tc_Messaging_RelativeRoundtripTimeoutPolicy;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Messaging/Messaging_RT_PolicyA.h b/TAO/tao/Messaging/Messaging_RT_PolicyA.h
index 97eb8c77a6a..02ca2ce7790 100644
--- a/TAO/tao/Messaging/Messaging_RT_PolicyA.h
+++ b/TAO/tao/Messaging/Messaging_RT_PolicyA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/Messaging_RT_PolicyC.h"
#include "tao/AnyTypeCode/TimeBaseA.h"
#include "tao/AnyTypeCode/PolicyA.h"
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -62,8 +60,6 @@ namespace Messaging
} // module Messaging
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/Messaging_RT_PolicyC.cpp b/TAO/tao/Messaging/Messaging_RT_PolicyC.cpp
index 9fef86e1a69..8b89e1d6b0d 100644
--- a/TAO/tao/Messaging/Messaging_RT_PolicyC.cpp
+++ b/TAO/tao/Messaging/Messaging_RT_PolicyC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/Messaging_RT_PolicyC.h"
+#include "Messaging_RT_PolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -168,5 +166,3 @@ Messaging::RelativeRoundtripTimeoutPolicy::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_RT_PolicyC.h b/TAO/tao/Messaging/Messaging_RT_PolicyC.h
index 7c084869fb8..94187df87b4 100644
--- a/TAO/tao/Messaging/Messaging_RT_PolicyC.h
+++ b/TAO/tao/Messaging/Messaging_RT_PolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -58,8 +58,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -225,8 +223,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp b/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp
index a431f947a2c..587d65ab1a9 100644
--- a/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp
+++ b/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/Messaging_SyncScope_PolicyA.h"
+#include "Messaging_SyncScope_PolicyA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -53,4 +51,4 @@ namespace Messaging
&_tao_tc_Messaging_SyncScopePolicy;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.h b/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.h
index f330605f5b5..daa19a0c347 100644
--- a/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.h
+++ b/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/Messaging_SyncScope_PolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
#include "tao/AnyTypeCode/Messaging_SyncScopeA.h"
@@ -42,9 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -58,8 +55,6 @@ namespace Messaging
} // module Messaging
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp b/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
index df474e3ac0e..ff6a8d19564 100644
--- a/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
+++ b/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/Messaging_SyncScope_PolicyC.h"
+#include "Messaging_SyncScope_PolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -168,5 +166,3 @@ Messaging::SyncScopePolicy::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.h b/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.h
index c22a5b02446..8354217f535 100644
--- a/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.h
+++ b/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -58,8 +58,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -219,8 +217,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/OldExceptionHolderA.cpp b/TAO/tao/Messaging/OldExceptionHolderA.cpp
index 133a1701ad9..8de6c9b59be 100644
--- a/TAO/tao/Messaging/OldExceptionHolderA.cpp
+++ b/TAO/tao/Messaging/OldExceptionHolderA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/OldExceptionHolderA.h"
+#include "OldExceptionHolderA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -43,8 +43,6 @@
#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/typecode_defn.cpp:937
@@ -189,6 +187,4 @@ operator>>= (
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* */
diff --git a/TAO/tao/Messaging/OldExceptionHolderA.h b/TAO/tao/Messaging/OldExceptionHolderA.h
index 11613cef0bd..428e264c75d 100644
--- a/TAO/tao/Messaging/OldExceptionHolderA.h
+++ b/TAO/tao/Messaging/OldExceptionHolderA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/OldExceptionHolderC.h"
#include "tao/AnyTypeCode/OctetSeqA.h"
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -79,8 +77,6 @@ TAO_Messaging_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, Messagi
#endif
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Messaging/OldExceptionHolderC.cpp b/TAO/tao/Messaging/OldExceptionHolderC.cpp
index e26cccea3c6..a51fe765e3c 100644
--- a/TAO/tao/Messaging/OldExceptionHolderC.cpp
+++ b/TAO/tao/Messaging/OldExceptionHolderC.cpp
@@ -29,18 +29,16 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/OldExceptionHolderC.h"
+#include "OldExceptionHolderC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Messaging/OldExceptionHolderC.inl"
+#include "OldExceptionHolderC.inl"
#endif /* !defined INLINE */
#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
@@ -339,6 +337,4 @@ OBV_Messaging::ExceptionHolder::_tao_unmarshal_state (TAO_InputCDR &strm)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* */
diff --git a/TAO/tao/Messaging/OldExceptionHolderC.h b/TAO/tao/Messaging/OldExceptionHolderC.h
index a3bcc4ed8bb..6c4049eb423 100644
--- a/TAO/tao/Messaging/OldExceptionHolderC.h
+++ b/TAO/tao/Messaging/OldExceptionHolderC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Valuetype/ValueBase.h"
#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
#include "tao/Valuetype/ValueFactory.h"
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -290,10 +288,8 @@ TAO_Messaging_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, Messaging::Exc
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Messaging/OldExceptionHolderC.inl"
+#include "OldExceptionHolderC.inl"
#endif /* defined INLINE */
#endif /* */
diff --git a/TAO/tao/Messaging/OldExceptionHolderC.inl b/TAO/tao/Messaging/OldExceptionHolderC.inl
index c2586897783..0e9229fa8d4 100644
--- a/TAO/tao/Messaging/OldExceptionHolderC.inl
+++ b/TAO/tao/Messaging/OldExceptionHolderC.inl
@@ -31,8 +31,6 @@
#if defined (TAO_HAS_DEPRECATED_EXCEPTION_HOLDER)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
Messaging::ExceptionHolder::ExceptionHolder (void)
{}
@@ -43,6 +41,4 @@ Messaging::ExceptionHolder::_tao_obv_static_repository_id ()
return "IDL:omg.org/Messaging/ExceptionHolder:1.0";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* */
diff --git a/TAO/tao/Messaging/PollableC.cpp b/TAO/tao/Messaging/PollableC.cpp
index 71789ae1651..b2a14c34a8a 100644
--- a/TAO/tao/Messaging/PollableC.cpp
+++ b/TAO/tao/Messaging/PollableC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/PollableC.h"
+#include "PollableC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -45,8 +45,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -699,4 +697,3 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/PollableC.h b/TAO/tao/Messaging/PollableC.h
index a8a9e8e9011..9a76deac2d3 100644
--- a/TAO/tao/Messaging/PollableC.h
+++ b/TAO/tao/Messaging/PollableC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
@@ -56,8 +56,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -577,8 +575,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/TAO_ExtA.cpp b/TAO/tao/Messaging/TAO_ExtA.cpp
index 66682024c37..82aadf99bb3 100644
--- a/TAO/tao/Messaging/TAO_ExtA.cpp
+++ b/TAO/tao/Messaging/TAO_ExtA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/Messaging/TAO_ExtA.h"
+#include "TAO_ExtA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -35,8 +35,6 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -53,4 +51,4 @@ namespace TAO
&_tao_tc_TAO_ConnectionTimeoutPolicy;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Messaging/TAO_ExtA.h b/TAO/tao/Messaging/TAO_ExtA.h
index a0d32a204b9..c83d58ed9e0 100644
--- a/TAO/tao/Messaging/TAO_ExtA.h
+++ b/TAO/tao/Messaging/TAO_ExtA.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/Messaging/TAO_ExtC.h"
#include "tao/AnyTypeCode/PolicyA.h"
#include "tao/AnyTypeCode/TimeBaseA.h"
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -57,8 +55,6 @@ namespace TAO
} // module TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging/TAO_ExtC.cpp b/TAO/tao/Messaging/TAO_ExtC.cpp
index 03b5f8f2aa8..597218703ad 100644
--- a/TAO/tao/Messaging/TAO_ExtC.cpp
+++ b/TAO/tao/Messaging/TAO_ExtC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/Messaging/TAO_ExtC.h"
+#include "TAO_ExtC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -168,5 +166,3 @@ TAO::ConnectionTimeoutPolicy::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging/TAO_ExtC.h b/TAO/tao/Messaging/TAO_ExtC.h
index 630976761af..edc68f14de5 100644
--- a/TAO/tao/Messaging/TAO_ExtC.h
+++ b/TAO/tao/Messaging/TAO_ExtC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Messaging/messaging_export.h"
+#include "messaging_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -58,8 +58,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -219,8 +217,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Messaging_PolicyValue.pidl b/TAO/tao/Messaging_PolicyValue.pidl
index 7775f89e4d1..7467a10720a 100644
--- a/TAO/tao/Messaging_PolicyValue.pidl
+++ b/TAO/tao/Messaging_PolicyValue.pidl
@@ -23,8 +23,8 @@
#ifndef TAO_MESSAGING_POLICYVALUE_PIDL
#define TAO_MESSAGING_POLICYVALUE_PIDL
-#include "tao/IOP_IOR.pidl"
-#include "tao/Policy_Forward.pidl"
+#include <IOP_IOR.pidl>
+#include <Policy_Forward.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/Messaging_PolicyValueC.cpp b/TAO/tao/Messaging_PolicyValueC.cpp
index d9e437f2c76..3bb08c79911 100644
--- a/TAO/tao/Messaging_PolicyValueC.cpp
+++ b/TAO/tao/Messaging_PolicyValueC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/Messaging_PolicyValueC.h"
+#include "Messaging_PolicyValueC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -208,5 +206,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_Messaging_PolicyValueSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging_PolicyValueC.h b/TAO/tao/Messaging_PolicyValueC.h
index 9b48af9e2e6..abe0c4f2eb5 100644
--- a/TAO/tao/Messaging_PolicyValueC.h
+++ b/TAO/tao/Messaging_PolicyValueC.h
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -196,8 +194,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Messaging_SyncScopeC.cpp b/TAO/tao/Messaging_SyncScopeC.cpp
index 3b1402d9033..b515509a832 100644
--- a/TAO/tao/Messaging_SyncScopeC.cpp
+++ b/TAO/tao/Messaging_SyncScopeC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/Messaging_SyncScopeC.h"
+#include "Messaging_SyncScopeC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,12 +39,8 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Messaging_SyncScopeC.h b/TAO/tao/Messaging_SyncScopeC.h
index 4658f3d4e02..61b17540188 100644
--- a/TAO/tao/Messaging_SyncScopeC.h
+++ b/TAO/tao/Messaging_SyncScopeC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace Messaging
{
@@ -108,8 +106,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Muxed_TMS.cpp b/TAO/tao/Muxed_TMS.cpp
index 68df7c44eb5..5e8e70d012a 100644
--- a/TAO/tao/Muxed_TMS.cpp
+++ b/TAO/tao/Muxed_TMS.cpp
@@ -3,16 +3,14 @@
#include "tao/Muxed_TMS.h"
#include "tao/Reply_Dispatcher.h"
#include "tao/debug.h"
-#include "tao/Transport.h"
-#include "tao/ORB_Core.h"
-#include "tao/Client_Strategy_Factory.h"
+#include "Transport.h"
+#include "ORB_Core.h"
+#include "Client_Strategy_Factory.h"
ACE_RCSID (tao,
Muxed_TMS,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Muxed_TMS::TAO_Muxed_TMS (TAO_Transport *transport)
: TAO_Transport_Mux_Strategy (transport)
, request_id_generator_ (0)
@@ -203,7 +201,7 @@ TAO_Muxed_TMS::clear_cache (void)
if (this->dispatcher_table_.current_size () == 0)
return -1;
- REQUEST_DISPATCHER_TABLE::ITERATOR const end =
+ REQUEST_DISPATCHER_TABLE::ITERATOR end =
this->dispatcher_table_.end ();
ACE_Unbounded_Stack <TAO_Reply_Dispatcher *> ubs;
@@ -215,7 +213,7 @@ TAO_Muxed_TMS::clear_cache (void)
ubs.push ((*i).int_id_);
this->dispatcher_table_.unbind_all ();
- size_t const sz = ubs.size ();
+ size_t sz = ubs.size ();
for (size_t k = 0 ; k != sz ; ++k)
{
@@ -229,4 +227,3 @@ TAO_Muxed_TMS::clear_cache (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Muxed_TMS.h b/TAO/tao/Muxed_TMS.h
index 77aa902177a..30b055963b3 100644
--- a/TAO/tao/Muxed_TMS.h
+++ b/TAO/tao/Muxed_TMS.h
@@ -15,18 +15,15 @@
#define TAO_MUXED_TMS_H
#include /**/ "ace/pre.h"
-
-#include "tao/Transport_Mux_Strategy.h"
+#include "ace/Hash_Map_Manager_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Hash_Map_Manager_T.h"
#include "ace/Null_Mutex.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Transport_Mux_Strategy.h"
class TAO_ORB_Core;
class TAO_Pluggable_Reply_Params;
@@ -91,8 +88,6 @@ protected:
int clear_cache (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* MUXED_TMS_H */
diff --git a/TAO/tao/NVList_Adapter.cpp b/TAO/tao/NVList_Adapter.cpp
index 063f473ac6d..a79fd8fde97 100644
--- a/TAO/tao/NVList_Adapter.cpp
+++ b/TAO/tao/NVList_Adapter.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/NVList_Adapter.h"
@@ -6,10 +6,7 @@ ACE_RCSID (tao,
NVList_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_NVList_Adapter::~TAO_NVList_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/NVList_Adapter.h b/TAO/tao/NVList_Adapter.h
index e9bc13af0ec..207d5c2e014 100644
--- a/TAO/tao/NVList_Adapter.h
+++ b/TAO/tao/NVList_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,13 +21,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Basic_Types.h"
-
#include "ace/Service_Object.h"
+#include "tao/Basic_Types.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class NVList;
@@ -58,7 +55,5 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NVLIST_ADAPTER_H */
diff --git a/TAO/tao/New_Leader_Generator.cpp b/TAO/tao/New_Leader_Generator.cpp
index 5edd8e55e60..3139d42ad27 100644
--- a/TAO/tao/New_Leader_Generator.cpp
+++ b/TAO/tao/New_Leader_Generator.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/New_Leader_Generator.h"
+#include "New_Leader_Generator.h"
ACE_RCSID (tao,
@@ -8,10 +8,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_New_Leader_Generator::~TAO_New_Leader_Generator (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/New_Leader_Generator.h b/TAO/tao/New_Leader_Generator.h
index fdb96209dea..17d4dd6cae1 100644
--- a/TAO/tao/New_Leader_Generator.h
+++ b/TAO/tao/New_Leader_Generator.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_New_Leader_Generator
*
@@ -44,8 +42,6 @@ public:
virtual void no_leaders_available (void) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NEW_LEADER_GENERATOR_H */
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index a4554a2ed2b..ada0052ef94 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -1,37 +1,37 @@
// "$Id$"
-#include "tao/ORB.h"
+#include "ORB.h"
ACE_RCSID (tao,
ORB,
"$Id$")
-#include "tao/ORB_Table.h"
-#include "tao/Connector_Registry.h"
-#include "tao/IOR_Parser.h"
-#include "tao/Stub.h"
-#include "tao/ORB_Core.h"
-#include "tao/ORB_Core_TSS_Resources.h"
-#include "tao/TAO_Internal.h"
-#include "tao/Dynamic_Adapter.h"
-#include "tao/Profile.h"
-#include "tao/default_ports.h"
-#include "tao/ORBInitializer_Registry_Adapter.h"
-#include "tao/PolicyFactory_Registry_Adapter.h"
-#include "tao/NVList_Adapter.h"
-#include "tao/TAO_Singleton_Manager.h"
-#include "tao/Policy_Current.h"
-#include "tao/Policy_Manager.h"
-#include "tao/Valuetype_Adapter.h"
-#include "tao/IFR_Client_Adapter.h"
-#include "tao/TypeCodeFactory_Adapter.h"
-#include "tao/debug.h"
-#include "tao/CDR.h"
-#include "tao/SystemException.h"
-#include "tao/default_environment.h"
+#include "ORB_Table.h"
+#include "Connector_Registry.h"
+#include "IOR_Parser.h"
+#include "Stub.h"
+#include "ORB_Core.h"
+#include "ORB_Core_TSS_Resources.h"
+#include "TAO_Internal.h"
+#include "Dynamic_Adapter.h"
+#include "Profile.h"
+#include "default_ports.h"
+#include "ORBInitializer_Registry_Adapter.h"
+#include "PolicyFactory_Registry_Adapter.h"
+#include "NVList_Adapter.h"
+#include "TAO_Singleton_Manager.h"
+#include "Policy_Current.h"
+#include "Policy_Manager.h"
+#include "Valuetype_Adapter.h"
+#include "IFR_Client_Adapter.h"
+#include "TypeCodeFactory_Adapter.h"
+#include "debug.h"
+#include "CDR.h"
+#include "SystemException.h"
+#include "default_environment.h"
#if !defined (__ACE_INLINE__)
-# include "tao/ORB.i"
+# include "ORB.i"
#endif /* ! __ACE_INLINE__ */
#include "ace/Dynamic_Service.h"
@@ -51,6 +51,7 @@ void TAO_unexpected_exception_handler (void)
}
#endif /* ACE_HAS_EXCEPTIONS */
+
static const char ior_prefix[] = "IOR:";
// = Static initialization.
@@ -63,8 +64,6 @@ namespace
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::ORB::InvalidName::InvalidName (void)
: CORBA::UserException ("IDL:omg.org/CORBA/ORB/InvalidName:1.0",
"InvalidName")
@@ -188,7 +187,7 @@ CORBA::ORB::destroy (ACE_ENV_SINGLE_ARG_DECL)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("CORBA::ORB::destroy() has been called on ORB <%s>.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->orb_core ()->orbid ())));
+ ACE_TEXT_TO_TCHAR_IN (this->orb_core ()->orbid ())));
}
this->orb_core ()->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -1452,7 +1451,7 @@ CORBA::ORB_init (int &argc,
if (arg_shifter.is_parameter_next ())
{
orbid_string =
- ACE_TEXT_ALWAYS_CHAR (arg_shifter.get_current ());
+ ACE_TEXT_TO_CHAR_IN (arg_shifter.get_current ());
arg_shifter.consume_arg ();
}
}
@@ -1464,9 +1463,9 @@ CORBA::ORB_init (int &argc,
// but we should skip an optional space...
if (current_arg[orbid_len] == ' ')
orbid_string =
- ACE_TEXT_ALWAYS_CHAR (current_arg + orbid_len + 1);
+ ACE_TEXT_TO_CHAR_IN (current_arg + orbid_len + 1);
else
- orbid_string = ACE_TEXT_ALWAYS_CHAR (current_arg + orbid_len);
+ orbid_string = ACE_TEXT_TO_CHAR_IN (current_arg + orbid_len);
}
else
arg_shifter.ignore_arg ();
@@ -1562,7 +1561,7 @@ CORBA::ORB_init (int &argc,
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("TAO (%P|%t) created new ORB <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (orbid_string.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (orbid_string.c_str ())));
}
// Before returning remember to store the ORB into the table...
@@ -2022,4 +2021,3 @@ CORBA::ORB::lookup_value_factory (const char *repository_id
return this->orb_core ()->valuetype_adapter ()->vf_map_find (repository_id);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORB.h b/TAO/tao/ORB.h
index a02b90d56da..cecd70319ed 100644
--- a/TAO/tao/ORB.h
+++ b/TAO/tao/ORB.h
@@ -19,26 +19,24 @@
#include /**/ "ace/pre.h"
-#include "tao/UserException.h"
+#include "UserException.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orb_typesC.h"
-#include "tao/objectid.h"
-#include "tao/CORBA_methods.h"
-#include "tao/VarOut_T.h"
-#include "tao/Seq_Var_T.h"
-#include "tao/Seq_Out_T.h"
-#include "tao/Sequence_T.h"
-#include "tao/Policy_ForwardC.h"
+#include "orb_typesC.h"
+#include "objectid.h"
+#include "CORBA_methods.h"
+#include "VarOut_T.h"
+#include "Seq_Var_T.h"
+#include "Seq_Out_T.h"
+#include "Sequence_T.h"
+#include "Policy_ForwardC.h"
#include "ace/Thread_Mutex.h"
#include "ace/Guard_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef enum
{
TAO_SERVICEID_NAMESERVICE,
@@ -483,9 +481,9 @@ namespace CORBA
* appropriate @c ACE_Time_Value as described in run().
**/
void perform_work (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
- void perform_work (ACE_Time_Value &tv
+ void perform_work (ACE_Time_Value &
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void perform_work (ACE_Time_Value *tv
+ void perform_work (ACE_Time_Value *
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
/**
@@ -672,7 +670,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/ORB.i"
diff --git a/TAO/tao/ORB.i b/TAO/tao/ORB.i
index 81c1e4ae8e0..16a9d6be7e6 100644
--- a/TAO/tao/ORB.i
+++ b/TAO/tao/ORB.i
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// ---------------------------------------------------------------------------
// ORB specific
@@ -11,9 +10,9 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE CORBA::ULong
CORBA::ORB::_incr_refcnt (void)
{
- ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
- guard,
- lock_,
+ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
+ guard,
+ lock_,
0);
return ++this->refcount_;
}
@@ -89,4 +88,3 @@ CORBA::release (CORBA::ORB_ptr obj)
obj->_decr_refcnt ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORBInitializer_Registry.cpp b/TAO/tao/ORBInitializer_Registry.cpp
index 0d88b73a39c..b025c20488c 100644
--- a/TAO/tao/ORBInitializer_Registry.cpp
+++ b/TAO/tao/ORBInitializer_Registry.cpp
@@ -1,10 +1,10 @@
-#include "tao/ORBInitializer_Registry.h"
-#include "tao/ORBInitializer_Registry_Adapter.h"
-#include "tao/PortableInterceptorC.h"
-#include "tao/ORB.h"
-#include "tao/ORB_Constants.h"
-#include "tao/TAO_Singleton_Manager.h"
-#include "tao/SystemException.h"
+#include "ORBInitializer_Registry.h"
+#include "ORBInitializer_Registry_Adapter.h"
+#include "PortableInterceptorC.h"
+#include "ORB.h"
+#include "ORB_Constants.h"
+#include "TAO_Singleton_Manager.h"
+#include "SystemException.h"
#include "ace/Service_Config.h"
#include "ace/Dynamic_Service.h"
@@ -19,8 +19,6 @@ ACE_RCSID (tao,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
void
@@ -86,4 +84,3 @@ namespace PortableInterceptor
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORBInitializer_Registry.h b/TAO/tao/ORBInitializer_Registry.h
index 677e4c50436..0169e5df76b 100644
--- a/TAO/tao/ORBInitializer_Registry.h
+++ b/TAO/tao/ORBInitializer_Registry.h
@@ -15,18 +15,15 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Environment.h"
-#include "tao/default_environment.h"
-
#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Environment.h"
+#include "default_environment.h"
namespace PortableInterceptor
{
@@ -41,8 +38,6 @@ namespace PortableInterceptor
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ORB_INITIALIZER_REGISTRY_H */
diff --git a/TAO/tao/ORBInitializer_Registry_Adapter.cpp b/TAO/tao/ORBInitializer_Registry_Adapter.cpp
index 1798764e211..75cd36c8285 100644
--- a/TAO/tao/ORBInitializer_Registry_Adapter.cpp
+++ b/TAO/tao/ORBInitializer_Registry_Adapter.cpp
@@ -1,18 +1,14 @@
-// $Id$
+//$Id$
-#include "tao/ORBInitializer_Registry_Adapter.h"
+#include "ORBInitializer_Registry_Adapter.h"
ACE_RCSID (tao,
ORBInitializer_Registry_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ORBInitializer_Registry_Adapter::~ORBInitializer_Registry_Adapter (void)
{
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORBInitializer_Registry_Adapter.h b/TAO/tao/ORBInitializer_Registry_Adapter.h
index 4515f10ec11..ffd9b863d58 100644
--- a/TAO/tao/ORBInitializer_Registry_Adapter.h
+++ b/TAO/tao/ORBInitializer_Registry_Adapter.h
@@ -15,18 +15,16 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Basic_Types.h"
-#include "tao/SystemException.h"
#include "ace/Service_Object.h"
#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Basic_Types.h"
+#include "tao/SystemException.h"
class TAO_ORB_Core;
@@ -97,8 +95,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ORB_INITIALIZER_REGISTRY_ADAPTER_H */
diff --git a/TAO/tao/ORB_Constants.h b/TAO/tao/ORB_Constants.h
index b7e090dcedf..6e324f0f908 100644
--- a/TAO/tao/ORB_Constants.h
+++ b/TAO/tao/ORB_Constants.h
@@ -24,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// A hash define for the regular two way operation.
#define TAO_TWOWAY_RESPONSE_FLAG 255
@@ -236,8 +234,6 @@ const CORBA::ULong TAO_RTCORBA_THREAD_CREATION_LOCATION_CODE = (0x15U << 7);
//@}
//@}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ORB_CONSTANTS_H */
diff --git a/TAO/tao/ORB_Core.cpp b/TAO/tao/ORB_Core.cpp
index 74bca60c41d..4bc1b51a0c9 100644
--- a/TAO/tao/ORB_Core.cpp
+++ b/TAO/tao/ORB_Core.cpp
@@ -1,45 +1,45 @@
// $Id$
-#include "tao/ORB_Core.h"
-#include "tao/ORB_Core_TSS_Resources.h"
-#include "tao/ORB_Table.h"
-#include "tao/TAO_Internal.h"
-#include "tao/default_server.h"
-#include "tao/Profile.h"
-#include "tao/Stub.h"
-#include "tao/LF_Follower.h"
-#include "tao/Leader_Follower.h"
-#include "tao/LF_Event_Loop_Thread_Helper.h"
-#include "tao/Connector_Registry.h"
-#include "tao/Transport_Queueing_Strategies.h"
-#include "tao/Object_Loader.h"
-#include "tao/ObjectIdListC.h"
-#include "tao/BiDir_Adapter.h"
-#include "tao/Collocation_Resolver.h"
-#include "tao/Flushing_Strategy.h"
-#include "tao/Request_Dispatcher.h"
-#include "tao/Stub_Factory.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Thread_Lane_Resources_Manager.h"
-#include "tao/TSS_Resources.h"
-#include "tao/Protocols_Hooks.h"
-#include "tao/IORInterceptor_Adapter.h"
-#include "tao/IORInterceptor_Adapter_Factory.h"
-#include "tao/debug.h"
-#include "tao/TAOC.h"
-#include "tao/Endpoint_Selector_Factory.h"
-#include "tao/Client_Strategy_Factory.h"
-#include "tao/Adapter_Factory.h"
-#include "tao/Adapter.h"
-#include "tao/GUIResource_Factory.h"
-#include "tao/PolicyFactory_Registry_Adapter.h"
-#include "tao/PolicyFactory_Registry_Factory.h"
-#include "tao/ORBInitializer_Registry_Adapter.h"
-#include "tao/Codeset_Manager.h"
+#include "ORB_Core.h"
+#include "ORB_Core_TSS_Resources.h"
+#include "ORB_Table.h"
+#include "TAO_Internal.h"
+#include "default_server.h"
+#include "Profile.h"
+#include "Stub.h"
+#include "LF_Follower.h"
+#include "Leader_Follower.h"
+#include "LF_Event_Loop_Thread_Helper.h"
+#include "Connector_Registry.h"
+#include "Transport_Queueing_Strategies.h"
+#include "Object_Loader.h"
+#include "ObjectIdListC.h"
+#include "BiDir_Adapter.h"
+#include "Collocation_Resolver.h"
+#include "Flushing_Strategy.h"
+#include "Request_Dispatcher.h"
+#include "Stub_Factory.h"
+#include "Thread_Lane_Resources.h"
+#include "Thread_Lane_Resources_Manager.h"
+#include "TSS_Resources.h"
+#include "Protocols_Hooks.h"
+#include "IORInterceptor_Adapter.h"
+#include "IORInterceptor_Adapter_Factory.h"
+#include "debug.h"
+#include "TAOC.h"
+#include "Endpoint_Selector_Factory.h"
+#include "Client_Strategy_Factory.h"
+#include "Adapter_Factory.h"
+#include "Adapter.h"
+#include "GUIResource_Factory.h"
+#include "PolicyFactory_Registry_Adapter.h"
+#include "PolicyFactory_Registry_Factory.h"
+#include "ORBInitializer_Registry_Adapter.h"
+#include "Codeset_Manager.h"
#if (TAO_HAS_CORBA_MESSAGING == 1)
-#include "tao/Policy_Manager.h"
-#include "tao/Policy_Current.h"
+#include "Policy_Manager.h"
+#include "Policy_Current.h"
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
#include "ace/Reactor.h"
@@ -68,15 +68,13 @@
#if !defined (__ACE_INLINE__)
-# include "tao/ORB_Core.i"
+# include "ORB_Core.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (tao,
ORB_Core,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
CORBA::Environment&
@@ -132,7 +130,7 @@ TAO_ORB_Core_Static_Resources::TAO_ORB_Core_Static_Resources (void)
iorinterceptor_adapter_factory_name_ ("IORInterceptor_Adapter_Factory"),
valuetype_adapter_name_ ("Valuetype_Adapter"),
poa_factory_name_ ("TAO_Object_Adapter_Factory"),
- poa_factory_directive_ (ACE_TEXT_ALWAYS_CHAR (ACE_DYNAMIC_SERVICE_DIRECTIVE("TAO_Object_Adapter_Factory", "TAO_PortableServer", "_make_TAO_Object_Adapter_Factory", "")))
+ poa_factory_directive_ (ACE_TEXT_TO_CHAR_IN (ACE_DYNAMIC_SERVICE_DIRECTIVE("TAO_Object_Adapter_Factory", "TAO_PortableServer", "_make_TAO_Object_Adapter_Factory", "")))
{
}
@@ -140,11 +138,6 @@ TAO_ORB_Core_Static_Resources::TAO_ORB_Core_Static_Resources (void)
TAO_ORB_Core::TAO_ORB_Core (const char *orbid)
: protocols_hooks_ (0),
-#if TAO_USE_LOCAL_MEMORY_POOL == 1
- use_local_memory_pool_ (true),
-#else
- use_local_memory_pool_ (false),
-#endif
lock_ (),
thread_lane_resources_manager_ (0),
collocation_resolver_ (0),
@@ -331,9 +324,6 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
// Use TCP_NODELAY.
int nodelay = 1;
- // Use SO_KEEPALIVE (default 0).
- int so_keepalive = 0;
-
// Use dotted decimal addresses
// @@ This option will be treated as a suggestion to each loaded
// protocol to use a character representation for the numeric
@@ -390,7 +380,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
////////////////////////////////////////////////////////////////
// begin with the 'parameterless' flags //
////////////////////////////////////////////////////////////////
- if (0 != (current_arg = arg_shifter.get_the_parameter
+ if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDottedDecimalAddresses"))))
{
// Use dotted decimal addresses
@@ -400,7 +390,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNoServerSideNameLookups"))))
{
// Don't look up the host name for incoming connections
@@ -409,7 +399,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNameServicePort"))))
{
// Specify the port number for the NameService.
@@ -419,7 +409,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBMulticastDiscoveryEndpoint"))))
{
// Specify mcast address:port@network_interface for the
@@ -428,11 +418,11 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
// If there is a '@' also, it means that the network
// interface name is specified.
this->orb_params ()->mcast_discovery_endpoint (
- ACE_TEXT_ALWAYS_CHAR(current_arg));
+ ACE_TEXT_TO_CHAR_IN(current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNodelay"))))
{
// Use TCP_NODELAY or not.
@@ -441,16 +431,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_LIB_TEXT("-ORBKeepalive"))))
- {
- // Use SO_KEEPALIVE or not.
- so_keepalive =
- ACE_OS::atoi (current_arg);
-
- arg_shifter.consume_arg ();
- }
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBTradingServicePort"))))
{
// Specify the port number for the TradingService.
@@ -459,7 +440,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBImplRepoServicePort"))))
{
// Specify the multicast port number for the Implementation
@@ -468,7 +449,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBRcvSock"))))
{
// @@ All protocol implementation may not use sockets, so
@@ -481,7 +462,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBSndSock"))))
{
// @@ All protocol implementation may not use sockets, so
@@ -493,7 +474,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBObjRefStyle"))))
{
// Specifies the style of printed objrefs: URL or IOR
@@ -523,7 +504,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCollocationStrategy"))))
{
// Specify which collocation policy we want to use.
@@ -535,7 +516,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCollocation"))))
{
// Specify whether we want to optimize against collocation
@@ -567,11 +548,11 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBPreferredInterfaces"))))
{
if (this->orb_params ()->preferred_interfaces (
- ACE_TEXT_ALWAYS_CHAR (current_arg)) == false)
+ ACE_TEXT_TO_CHAR_IN (current_arg)) == false)
ACE_THROW_RETURN (CORBA::INTERNAL (
CORBA::SystemException::_tao_minor_code (
TAO_ORB_CORE_INIT_LOCATION_CODE,
@@ -581,14 +562,15 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBEnforcePreferredInterfaces"))))
{
- int enforce_pref_interfaces = ACE_OS::atoi (current_arg);
- if (enforce_pref_interfaces)
- this->orb_params ()->enforce_pref_interfaces (false);
- else
+ if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("YES")) == 0)
this->orb_params ()->enforce_pref_interfaces (true);
+ else if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("NO")) == 0)
+ this->orb_params ()->enforce_pref_interfaces (false);
arg_shifter.consume_arg ();
}
@@ -596,10 +578,11 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBPreferIPV6Interfaces"))))
{
- int prefer_ipv6_interfaces = ACE_OS::atoi (current_arg);
- if (prefer_ipv6_interfaces)
+ if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("YES")) == 0)
this->orb_params ()->prefer_ipv6_interfaces (true);
- else
+ else if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("NO")) == 0)
this->orb_params ()->prefer_ipv6_interfaces (false);
arg_shifter.consume_arg ();
@@ -607,16 +590,17 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBConnectIPV6Only"))))
{
- int connect_ipv6_only = ACE_OS::atoi (current_arg);
- if (connect_ipv6_only)
+ if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("YES")) == 0)
this->orb_params ()->connect_ipv6_only (true);
- else
+ else if (ACE_OS::strcasecmp (current_arg,
+ ACE_TEXT("NO")) == 0)
this->orb_params ()->connect_ipv6_only (false);
arg_shifter.consume_arg ();
}
#endif /* ACE_HAS_IPV6 */
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBCDRTradeoff"))))
{
cdr_tradeoff = ACE_OS::atoi (current_arg);
@@ -627,7 +611,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
// A new <ObjectID>:<IOR> mapping has been specified. This will be
// used by the resolve_initial_references ().
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBInitRef"))))
{
const ACE_TCHAR *pos = ACE_OS::strchr (current_arg, '=');
@@ -644,9 +628,9 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
CORBA::COMPLETED_NO),
-1);
}
- ACE_CString object_id (ACE_TEXT_ALWAYS_CHAR(current_arg),
+ ACE_CString object_id (ACE_TEXT_TO_CHAR_IN(current_arg),
pos - current_arg);
- ACE_CString IOR (ACE_TEXT_ALWAYS_CHAR(pos + 1));
+ ACE_CString IOR (ACE_TEXT_TO_CHAR_IN(pos + 1));
if (!this->init_ref_map_.insert (
std::make_pair (InitRefMap::key_type (object_id),
InitRefMap::data_type (IOR))).second)
@@ -664,22 +648,22 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
}
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDefaultInitRef"))))
{
// Set the list of prefixes from -ORBDefaultInitRef.
- this->orb_params ()->default_init_ref (ACE_TEXT_ALWAYS_CHAR(current_arg));
+ this->orb_params ()->default_init_ref (ACE_TEXT_TO_CHAR_IN(current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBStdProfileComponents"))))
{
std_profile_components =
ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBResources"))))
{
ACE_DEBUG ((LM_WARNING,
@@ -688,7 +672,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBLogFile"))))
{
// redirect all ACE_DEBUG and ACE_ERROR output to a file
@@ -727,7 +711,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
CORBA::COMPLETED_NO));
ACE_CHECK_RETURN (-1);
- output_stream->open (ACE_TEXT_ALWAYS_CHAR (file_name), ios::out | ios::app);
+ output_stream->open (ACE_TEXT_TO_CHAR_IN (file_name), ios::out | ios::app);
if (!output_stream->bad ())
{
@@ -740,7 +724,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBVerboseLogging"))))
{
unsigned long verbose_logging = ACE_OS::atoi (current_arg);
@@ -765,7 +749,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
(ACE_LOG_MSG->*flagop)(value);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseIMR"))))
{
// Use IR or not.
@@ -773,14 +757,14 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBIMREndpointsInIOR"))))
{
this->imr_endpoints_in_ior_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBid"))))
{
// The ORBid is actually set in ORB_init(), and then passed
@@ -799,24 +783,24 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBServerId"))))
{
// The this->server_id_ is to uniquely identify a server to
// an IMR.
// Fill in later.
- this->server_id_.set(ACE_TEXT_ALWAYS_CHAR(current_arg));
+ this->server_id_.set(ACE_TEXT_TO_CHAR_IN(current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBLingerTimeout"))))
{
linger = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBEndpoint"))))
{
// Each "endpoint" is of the form:
@@ -839,13 +823,13 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
// All endpoint strings should be of the above form(s).
this->set_endpoint_helper (TAO_DEFAULT_LANE,
- ACE_TEXT_ALWAYS_CHAR (current_arg)
+ ACE_TEXT_TO_CHAR_IN (current_arg)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBListenEndpoints"))))
{
// This option is similar to the -ORBEndPoint option. May be
@@ -854,16 +838,16 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
// used.
this->set_endpoint_helper (TAO_DEFAULT_LANE,
- ACE_TEXT_ALWAYS_CHAR (current_arg)
+ ACE_TEXT_TO_CHAR_IN (current_arg)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
arg_shifter.consume_arg ();
}
- else if ((0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-ORBLaneEndpoint")))) ||
- (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-ORBLaneListenEndpoints")))))
+ else if ((current_arg = arg_shifter.get_the_parameter
+ (ACE_TEXT("-ORBLaneEndpoint"))) ||
+ (current_arg = arg_shifter.get_the_parameter
+ (ACE_TEXT("-ORBLaneListenEndpoints"))))
{
// This option is similar to the -ORBEndPoint option but
// specifies endpoints for each lane.
@@ -871,13 +855,13 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
if (arg_shifter.is_option_next ())
return -1;
- ACE_CString lane (ACE_TEXT_ALWAYS_CHAR (current_arg));
+ ACE_CString lane (ACE_TEXT_TO_CHAR_IN (current_arg));
arg_shifter.consume_arg ();
if(arg_shifter.is_option_next ())
return -1;
- ACE_CString endpoints (ACE_TEXT_ALWAYS_CHAR (arg_shifter.get_current ()));
+ ACE_CString endpoints (ACE_TEXT_TO_CHAR_IN (arg_shifter.get_current ()));
arg_shifter.consume_arg ();
this->set_endpoint_helper (lane,
@@ -885,7 +869,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNoProprietaryActivation"))))
{
// This option can be used to set to not use any proprietary
@@ -898,7 +882,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), -1);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBUseSharedProfile"))))
{
this->orb_params ()->shared_profile
@@ -906,14 +890,14 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBNegotiateCodesets"))))
{
negotiate_codesets =
(ACE_OS::atoi (current_arg));
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBSingleReadOptimization"))))
{
this->orb_params ()->single_read_optimization
@@ -921,21 +905,24 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBDisableRTCollocation"))))
{
- int disable_rt_collocation = ACE_OS::atoi (current_arg);
- if (disable_rt_collocation)
- this->orb_params ()->disable_rt_collocation_resolver (true);
+ const ACE_TCHAR *popt = current_arg;
+ if (ACE_OS::strcasecmp (popt, ACE_TEXT("NO")) == 0)
+ {
+ this->orb_params ()->disable_rt_collocation_resolver (false);
+ }
+ else if (ACE_OS::strcasecmp (popt, ACE_TEXT("YES")) == 0)
+ {
+ this->orb_params ()->disable_rt_collocation_resolver (true);
+ }
else
- this->orb_params ()->disable_rt_collocation_resolver (false);
-
- arg_shifter.consume_arg ();
- }
- else if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_LIB_TEXT("-ORBUseLocalMemoryPool"))))
- {
- this->use_local_memory_pool_ = (0 != ACE_OS::atoi (current_arg));
+ {
+ // Should we print an error mesg?? Probably we
+ // should. We will look into this after 1.4 and make all
+ // the options consistent.
+ }
arg_shifter.consume_arg ();
}
@@ -1034,10 +1021,6 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
-1);
}
- // Set whether or not to use the local memory pool for the cdr allocators.
-
- trf->use_local_memory_pool (this->use_local_memory_pool_);
-
// @@ ????
// Make sure the reactor is initialized...
ACE_Reactor *reactor = this->reactor ();
@@ -1145,7 +1128,6 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
|| dotted_decimal_addresses);
this->orb_params ()->linger (linger);
this->orb_params ()->nodelay (nodelay);
- this->orb_params ()->sock_keepalive (so_keepalive);
if (rcv_sock_size >= 0)
this->orb_params ()->sock_rcvbuf_size (rcv_sock_size);
if (snd_sock_size >= 0)
@@ -1162,7 +1144,7 @@ TAO_ORB_Core::init (int &argc, char *argv[] ACE_ENV_ARG_DECL)
else
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("TAO (%P|%t) ORB_Core: ")
+ ACE_TEXT("(%P|%t) ORB_Core: ")
ACE_TEXT("Codeset Manager not available\n")));
// Set up the pluggable protocol infrastructure. First get a
@@ -1254,7 +1236,7 @@ TAO_ORB_Core::fini (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Destroying ORB <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->orbid_)));
+ ACE_TEXT_TO_TCHAR_IN (this->orbid_)));
}
// Finalize lane resources.
@@ -1450,7 +1432,7 @@ TAO_ORB_Core::policy_factory_registry_i (void)
if (loader == 0)
{
ACE_Service_Config::process_directive (
- ACE_DYNAMIC_SERVICE_DIRECTIVE("PolicyFactory_Loader",
+ ACE_DYNAMIC_SERVICE_DIRECTIVE("TAO_PolicyFactory_Registry_Factory",
"TAO_PI",
"_make_PolicyFactory_Loader",
""));
@@ -1665,7 +1647,7 @@ TAO_ORB_Core::root_poa (ACE_ENV_SINGLE_ARG_DECL)
if (factory == 0)
{
ACE_Service_Config::process_directive (
- ACE_TEXT_CHAR_TO_TCHAR (
+ ACE_TEXT_TO_TCHAR_IN (
static_resources->poa_factory_directive_.c_str()));
factory =
ACE_Dynamic_Service<TAO_Adapter_Factory>::instance (
@@ -1804,91 +1786,54 @@ TAO_ORB_Core::create_object (TAO_Stub *stub)
// @@ We should thow CORBA::NO_MEMORY in platforms with exceptions,
// but we are stuck in platforms without exceptions!
- TAO_ORB_Core_Auto_Ptr collocated_orb_core;
- CORBA::Object_ptr x = 0;
-
+ CORBA::Object_ptr x;
{
- // Lock the ORB_Table against concurrent modification while we
- // iterate through the ORBs.
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
guard,
- TAO::ORB_Table::instance()->lock_,
+ this->lock_,
CORBA::Object::_nil ());
TAO::ORB_Table * const table = TAO::ORB_Table::instance ();
TAO::ORB_Table::iterator const end = table->end ();
for (TAO::ORB_Table::iterator i = table->begin (); i != end; ++i)
{
- ::TAO_ORB_Core * const other_core = (*i).second.core ();
+ TAO_ORB_Core * const other_core = (*i).second.core ();
if (this->is_collocation_enabled (other_core,
mprofile))
{
- other_core->_incr_refcnt();
- TAO_ORB_Core_Auto_Ptr tmp_auto_ptr (other_core);
- collocated_orb_core = tmp_auto_ptr;
- break;
+ TAO_Adapter_Registry *ar =
+ other_core->adapter_registry ();
+
+ return ar->create_collocated_object (stub,
+ mprofile);
}
}
}
- if (collocated_orb_core.get ())
- {
- TAO_Adapter_Registry *ar =
- collocated_orb_core.get ()->adapter_registry ();
-
- x = ar->create_collocated_object (stub,
- mprofile);
- }
-
-
- if (!x)
- {
- // The constructor sets the proxy broker as the
- // Remote one.
- ACE_NEW_RETURN (x,
- CORBA::Object (stub, 0),
- 0);
- }
-
+ // The constructor sets the proxy broker as the
+ // Remote one.
+ ACE_NEW_RETURN (x,
+ CORBA::Object (stub, 0),
+ 0);
return x;
}
CORBA::Long
TAO_ORB_Core::initialize_object (TAO_Stub *stub,
- CORBA::Object_ptr)
+ CORBA::Object_ptr obj)
{
// @@ What about forwarding. With this approach we are never forwarded
// when we use collocation!
const TAO_MProfile &mprofile =
stub->base_profiles ();
-
- return initialize_object_i (stub,
- mprofile);
-}
-
-CORBA::Long
-TAO_ORB_Core::reinitialize_object (TAO_Stub *stub)
-{
- return initialize_object_i (stub, stub->forward_profiles ()
- ? *(stub->forward_profiles ())
- : stub->base_profiles ());
-}
-
-CORBA::Long
-TAO_ORB_Core::initialize_object_i (TAO_Stub *stub,
- const TAO_MProfile &mprofile)
-
-{
- CORBA::Long retval = 0;
- TAO_ORB_Core_Auto_Ptr collocated_orb_core;
-
{
- // Lock the ORB_Table against concurrent modification while we
- // iterate through the ORBs.
+ // @@ Ossama: maybe we need another lock for the table, to
+ // reduce contention on the Static_Object_Lock below, if so
+ // then we need to use that lock in the ORB_init() function.
ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_MUTEX,
guard,
- TAO::ORB_Table::instance()->lock_,
+ this->lock_,
0));
TAO::ORB_Table * const table = TAO::ORB_Table::instance ();
@@ -1900,23 +1845,16 @@ TAO_ORB_Core::initialize_object_i (TAO_Stub *stub,
if (this->is_collocation_enabled (other_core,
mprofile))
{
- other_core->_incr_refcnt ();
- TAO_ORB_Core_Auto_Ptr tmp_auto_ptr (other_core);
- collocated_orb_core = tmp_auto_ptr;
- break;
+ TAO_Adapter_Registry * const ar =
+ other_core->adapter_registry ();
+
+ return ar->initialize_collocated_object (stub,
+ obj);
}
}
}
- if (collocated_orb_core.get ())
- {
- TAO_Adapter_Registry *ar =
- collocated_orb_core.get ()->adapter_registry ();
-
- retval = ar->initialize_collocated_object (stub);
- }
-
- return retval;
+ return 0;
}
CORBA::Boolean
@@ -2136,7 +2074,6 @@ TAO_ORB_Core::shutdown (CORBA::Boolean wait_for_completion
#if (TAO_HAS_INTERCEPTORS == 1)
CORBA::release (this->pi_current_);
- this->pi_current_ = CORBA::Object::_nil ();
#endif /* TAO_HAS_INTERCEPTORS == 1 */
}
ACE_CATCHALL
@@ -2202,8 +2139,6 @@ TAO_ORB_Core::destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL)
ACE_TRY
{
- ACE_GUARD (TAO_SYNCH_MUTEX, monitor, this->lock_);
-
#if TAO_HAS_INTERCEPTORS == 1
if (this->client_request_interceptor_adapter_ != 0)
{
@@ -2266,7 +2201,7 @@ TAO_ORB_Core::resolve_typecodefactory_i (ACE_ENV_SINGLE_ARG_DECL)
if (loader == 0)
{
ACE_Service_Config::process_directive (
- ACE_DYNAMIC_SERVICE_DIRECTIVE("TypeCodeFactory_Loader",
+ ACE_DYNAMIC_SERVICE_DIRECTIVE("TypeCodeFactory",
"TAO_TypeCodeFactory",
"_make_TAO_TypeCodeFactory_Loader",
""));
@@ -2287,7 +2222,7 @@ TAO_ORB_Core::resolve_codecfactory_i (ACE_ENV_SINGLE_ARG_DECL)
if (loader == 0)
{
ACE_Service_Config::process_directive (
- ACE_DYNAMIC_SERVICE_DIRECTIVE("CodecFactory_Loader",
+ ACE_DYNAMIC_SERVICE_DIRECTIVE("CodecFactory",
"TAO_CodecFactory",
"_make_TAO_CodecFactory_Loader",
""));
@@ -2445,7 +2380,7 @@ TAO_ORB_Core::set_endpoint_helper (const ACE_CString &lane,
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t)\n")
ACE_TEXT ("Invalid endpoint(s) specified:\n%s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(endpoints.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(endpoints.c_str ())));
ACE_THROW_RETURN (CORBA::BAD_PARAM (
CORBA::SystemException::_tao_minor_code (
TAO_ORB_CORE_INIT_LOCATION_CODE,
@@ -2770,14 +2705,6 @@ TAO_ORB_Core::set_sync_scope_hook (Sync_Scope_Hook hook)
TAO_ORB_Core_Static_Resources::instance ()-> sync_scope_hook_ = hook;
}
-int
-TAO_ORB_Core::add_tss_cleanup_func (ACE_CLEANUP_FUNC cleanup,
- size_t &slot_id)
-{
- return this->tss_cleanup_funcs_.register_cleanup_function (cleanup,
- slot_id);
-}
-
void
TAO_ORB_Core::call_timeout_hook (TAO_Stub *stub,
bool &has_timeout,
@@ -2994,7 +2921,7 @@ TAO_ORB_Core::ior_interceptor_adapter (void)
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Cannot initialize the "
+ "(%P|%t) Cannot initialize the "
"ior_interceptor_adapter \n");
}
ACE_ENDTRY;
@@ -3057,6 +2984,7 @@ TAO_ORB_Core::clientrequestinterceptor_adapter_i (void)
return this->client_request_interceptor_adapter_;
}
+
void
TAO_ORB_Core::add_interceptor (
PortableInterceptor::ServerRequestInterceptor_ptr interceptor
@@ -3079,58 +3007,6 @@ TAO_ORB_Core::add_interceptor (
}
}
-void
-TAO_ORB_Core::add_interceptor (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
-{
- if (this->clientrequestinterceptor_adapter_i ())
- {
- this->client_request_interceptor_adapter_->add_interceptor (
- interceptor,
- policies
- ACE_ENV_ARG_PARAMETER);
-
- ACE_CHECK;
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("ERROR: ORB Core unable to find the ")
- ACE_TEXT ("Client Request Interceptor Adapter Factory instance")));
-
- ACE_THROW (CORBA::INTERNAL ());
- }
-}
-
-void
-TAO_ORB_Core::add_interceptor (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
-{
- if (this->serverrequestinterceptor_adapter_i ())
- {
- this->server_request_interceptor_adapter_->add_interceptor (
- interceptor,
- policies
- ACE_ENV_ARG_PARAMETER);
-
- ACE_CHECK;
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("ERROR: ORB Core unable to find the ")
- ACE_TEXT ("Server Request Interceptor Adapter Factory instance")));
-
- ACE_THROW (CORBA::INTERNAL ());
- }
-}
-
TAO::ServerRequestInterceptor_Adapter *
TAO_ORB_Core::serverrequestinterceptor_adapter_i (void)
{
@@ -3245,4 +3121,3 @@ TAO_ORB_Core::collocation_strategy (CORBA::Object_ptr object
return TAO::TAO_CS_REMOTE_STRATEGY;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h
index 9eb8910fac2..5a10589e734 100644
--- a/TAO/tao/ORB_Core.h
+++ b/TAO/tao/ORB_Core.h
@@ -38,16 +38,6 @@
#include "tao/ORB_Core_TSS_Resources.h"
#include "ace/Array_Map.h"
-#include "ace/Thread_Manager.h"
-#include "ace/Lock_Adapter_T.h"
-#include "ace/TSS_T.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Data_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if TAO_HAS_INTERCEPTORS == 1
namespace TAO
@@ -58,6 +48,13 @@ namespace TAO
#endif /* TAO_HAS_INTERCEPTORS == 1 */
+#include "ace/Thread_Manager.h"
+#include "ace/Lock_Adapter_T.h"
+#include "ace/TSS_T.h"
+
+// Forward declarations
+class ACE_Data_Block;
+
class TAO_Adapter;
class TAO_Acceptor;
class TAO_Connector;
@@ -614,11 +611,6 @@ public:
CORBA::Long initialize_object (TAO_Stub *the_stub,
CORBA::Object_ptr obj);
- /// Reinitialise a stub after the effective profile has changed.
- /// This will happen after a location forward has been received
- /// or if a location forward supplied new target subsequently fails.
- CORBA::Long reinitialize_object (TAO_Stub *stub);
-
/// Return ORBid string.
const char *orbid (void) const;
@@ -796,18 +788,6 @@ public:
PortableInterceptor::ServerRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL);
- /// Register a client request interceptor with policies.
- void add_interceptor (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
- /// Register a server request interceptor with policies.
- void add_interceptor (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
/// Get the Client Request Interceptor adapter.
/// Will not create a new one if not available yet.
TAO::ClientRequestInterceptor_Adapter *clientrequestinterceptor_adapter (void);
@@ -888,12 +868,6 @@ public:
/// flush
TAO::Transport_Queueing_Strategy &default_transport_queueing_strategy (void);
- /// Verify condition for permanent forward is given,
- /// both parameters must provide group attributes.
- CORBA::Boolean is_permanent_forward_condition
- (const CORBA::Object_ptr obj,
- const TAO_Service_Context &service_context);
-
protected:
/// Destructor is protected since the ORB Core is a reference
@@ -967,10 +941,6 @@ protected:
/// this ORB core.
TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry_i (void);
- /// Common code from ::initialize_object and ::reinitialize_object
- CORBA::Long initialize_object_i (TAO_Stub *the_stub,
- const TAO_MProfile& mprofile);
-
private:
/// The ORB Core should not be copied.
@@ -998,8 +968,6 @@ private:
#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */
- bool use_local_memory_pool_;
-
protected:
/// Synchronize internal state...
@@ -1400,10 +1368,8 @@ TAO_Export TAO_ORB_Core * TAO_ORB_Core_instance (void);
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/ORB_Core.i"
+# include "ORB_Core.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/ORB_Core.i b/TAO/tao/ORB_Core.i
index 1506949fb16..9a0eb2e3a5b 100644
--- a/TAO/tao/ORB_Core.i
+++ b/TAO/tao/ORB_Core.i
@@ -5,7 +5,6 @@
#include "tao/ORB_Core_TSS_Resources.h"
#include "tao/ORB_Table.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE CORBA::ULong
TAO_ORB_Core::_incr_refcnt (void)
@@ -362,6 +361,14 @@ TAO_ORB_Core::set_tss_resource (size_t slot_id, void *ts_object)
return 0;
}
+ACE_INLINE int
+TAO_ORB_Core::add_tss_cleanup_func (ACE_CLEANUP_FUNC cleanup,
+ size_t &slot_id)
+{
+ return this->tss_cleanup_funcs_.register_cleanup_function (cleanup,
+ slot_id);
+}
+
ACE_INLINE TAO_Cleanup_Func_Registry *
TAO_ORB_Core::tss_cleanup_funcs (void)
{
@@ -631,23 +638,3 @@ TAO_ORB_Core::serverrequestinterceptor_adapter (void)
}
#endif /* TAO_HAS_INTERCEPTORS */
-
-/// Verify condition for permanent forward is given,
-/// both parameters must provide group attributes.
-ACE_INLINE CORBA::Boolean
-TAO_ORB_Core::is_permanent_forward_condition
-(const CORBA::Object_ptr obj,
- const TAO_Service_Context &service_context)
-{
- const TAO_Service_Callbacks *service_callback =
- this->fault_tolerance_service ().service_callback ();
-
- const CORBA::Boolean permanent_forward_condition =
- service_callback &&
- service_callback->is_permanent_forward_condition (obj,
- service_context);
-
- return permanent_forward_condition;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORB_Core_Auto_Ptr.cpp b/TAO/tao/ORB_Core_Auto_Ptr.cpp
index 068897c2c38..a0b908a54dd 100644
--- a/TAO/tao/ORB_Core_Auto_Ptr.cpp
+++ b/TAO/tao/ORB_Core_Auto_Ptr.cpp
@@ -1,16 +1,14 @@
-#include "tao/ORB_Core_Auto_Ptr.h"
-#include "tao/ORB_Core.h"
+#include "ORB_Core_Auto_Ptr.h"
+#include "ORB_Core.h"
#if !defined (__ACE_INLINE__)
-# include "tao/ORB_Core_Auto_Ptr.inl"
+# include "ORB_Core_Auto_Ptr.inl"
#endif /* !__ACE_INLINE */
ACE_RCSID (tao,
ORB_Core_Auto_Ptr,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ORB_Core_Auto_Ptr::~TAO_ORB_Core_Auto_Ptr (void)
{
if (this->get () != 0)
@@ -29,5 +27,3 @@ TAO_ORB_Core_Auto_Ptr::reset (TAO_ORB_Core *p)
this->p_ = p;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORB_Core_Auto_Ptr.h b/TAO/tao/ORB_Core_Auto_Ptr.h
index 19de5c918f1..f99c4f79a9d 100644
--- a/TAO/tao/ORB_Core_Auto_Ptr.h
+++ b/TAO/tao/ORB_Core_Auto_Ptr.h
@@ -18,14 +18,6 @@
#include "tao/TAO_Export.h"
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
/**
@@ -68,10 +60,8 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/ORB_Core_Auto_Ptr.inl"
+# include "ORB_Core_Auto_Ptr.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/ORB_Core_Auto_Ptr.inl b/TAO/tao/ORB_Core_Auto_Ptr.inl
index d9bd041e77c..50cc45b0bb5 100644
--- a/TAO/tao/ORB_Core_Auto_Ptr.inl
+++ b/TAO/tao/ORB_Core_Auto_Ptr.inl
@@ -2,9 +2,6 @@
//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_ORB_Core_Auto_Ptr::TAO_ORB_Core_Auto_Ptr (TAO_ORB_Core *p)
: p_ (p)
@@ -55,5 +52,3 @@ TAO_ORB_Core_Auto_Ptr::operator *() const
// @@ Potential problem if this->p_ is zero!
return *this->get ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORB_Core_TSS_Resources.cpp b/TAO/tao/ORB_Core_TSS_Resources.cpp
index 64d57768dba..a9d364e90f2 100644
--- a/TAO/tao/ORB_Core_TSS_Resources.cpp
+++ b/TAO/tao/ORB_Core_TSS_Resources.cpp
@@ -2,8 +2,6 @@
#include "tao/ORB_Core_TSS_Resources.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ORB_Core_TSS_Resources::TAO_ORB_Core_TSS_Resources (void)
: event_loop_thread_ (0)
, client_leader_thread_ (0)
@@ -29,4 +27,4 @@ TAO_ORB_Core_TSS_Resources::~TAO_ORB_Core_TSS_Resources (void)
// this->orb_core_->tss_cleanup_funcs ()->cleanup (this->ts_objects_);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/ORB_Core_TSS_Resources.h b/TAO/tao/ORB_Core_TSS_Resources.h
index 8f5e0c3abb8..9488216500e 100644
--- a/TAO/tao/ORB_Core_TSS_Resources.h
+++ b/TAO/tao/ORB_Core_TSS_Resources.h
@@ -22,10 +22,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
#include "ace/Array_Base.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/orbconf.h"
class TAO_ORB_Core;
@@ -85,7 +83,7 @@ public:
TAO_ORB_Core *orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#include /**/ "ace/post.h"
#endif /* TAO_ORB_CORE_H */
diff --git a/TAO/tao/ORB_Table.cpp b/TAO/tao/ORB_Table.cpp
index 8624370348c..e313b23ad18 100644
--- a/TAO/tao/ORB_Table.cpp
+++ b/TAO/tao/ORB_Table.cpp
@@ -1,9 +1,9 @@
-#include "tao/ORB_Table.h"
-#include "tao/ORB_Core.h"
-#include "tao/TAO_Singleton.h"
+#include "ORB_Table.h"
+#include "ORB_Core.h"
+#include "TAO_Singleton.h"
#if !defined (__ACE_INLINE__)
-# include "tao/ORB_Table.inl"
+# include "ORB_Table.inl"
#endif /* ! __ACE_INLINE__ */
#include "ace/SString.h"
@@ -17,8 +17,6 @@ ACE_RCSID (tao,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::ORB_Table::ORB_Table (void)
: lock_ (),
first_orb_not_default_ (false),
@@ -182,5 +180,3 @@ TAO::ORB_Table::instance (void)
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template TAO_Singleton<TAO::ORB_Table,TAO_SYNCH_MUTEX> * TAO_Singleton<TAO::ORB_Table,TAO_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ORB_Table.h b/TAO/tao/ORB_Table.h
index 4838b0754da..1b35ae545b0 100644
--- a/TAO/tao/ORB_Table.h
+++ b/TAO/tao/ORB_Table.h
@@ -30,8 +30,6 @@
#include "ace/Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_ORB_Core;
@@ -62,7 +60,6 @@ namespace TAO
*/
class TAO_Export ORB_Table
{
- friend class ::TAO_ORB_Core;
public:
/// Constructor
@@ -87,7 +84,7 @@ namespace TAO
//@{
iterator begin (void);
iterator end (void);
- int bind (const char *orb_id, ::TAO_ORB_Core *orb_core);
+ int bind (const char *orb_id, TAO_ORB_Core *orb_core);
/// Return @c TAO_ORB_Core corresponding to ORB with given @a
/// orb_id.
@@ -95,16 +92,16 @@ namespace TAO
* @note The caller must decrease the reference count on the
* returned ORB_Core, i.e. the callers "owns" it.
*/
- ::TAO_ORB_Core* find (const char *orb_id);
+ TAO_ORB_Core* find (const char *orb_id);
int unbind (const char *orb_id);
//@}
- ::TAO_ORB_Core * const * get_orbs (size_t& num_orbs);
+ TAO_ORB_Core * const * get_orbs (size_t& num_orbs);
/// Obtain the first ORB for the @c ORB_Core_instance()
/// implementation.
- ::TAO_ORB_Core * first_orb (void);
+ TAO_ORB_Core * first_orb (void);
/// Return a unique instance
static ORB_Table * instance (void);
@@ -128,12 +125,18 @@ namespace TAO
/// Return @c TAO_ORB_Core corresponding to ORB with given @a
/// orb_id. (underlying unlocked implementation).
- ::TAO_ORB_Core * find_i (char const * orb_id);
+ TAO_ORB_Core * find_i (char const * orb_id);
+
+ /// Update our list of orbs
+ /**
+ * @todo Where the implementation for ORB_Table::update_orbs?
+ */
+ void update_orbs (void);
private:
/// Lock used to synchronize access to the internal state.
- ::TAO_SYNCH_MUTEX lock_;
+ TAO_SYNCH_MUTEX lock_;
/// Variable to check if the first ORB decides not to be the
/// default.
@@ -143,13 +146,13 @@ namespace TAO
Table table_;
/// The first ORB created by the user
- ::TAO_ORB_Core * first_orb_;
+ TAO_ORB_Core * first_orb_;
/// List of orbs for get_orbs call
/**
* @todo ORB_Table::orbs_ appears to be unused. Remove it?
*/
- ::TAO_ORB_Core ** orbs_;
+ TAO_ORB_Core ** orbs_;
/// Number of ORBs in the table.
size_t num_orbs_;
@@ -173,7 +176,7 @@ namespace TAO
ORB_Core_Ref_Counter (void);
/// Constructor.
- ORB_Core_Ref_Counter (::TAO_ORB_Core * core);
+ ORB_Core_Ref_Counter (TAO_ORB_Core * core);
/// Destructor.
~ORB_Core_Ref_Counter (void);
@@ -185,18 +188,16 @@ namespace TAO
void operator= (ORB_Core_Ref_Counter const & rhs);
/// ORB_Core pointer accessor.
- ::TAO_ORB_Core * core (void) const { return this->core_; }
+ TAO_ORB_Core * core (void) const { return this->core_; }
private:
- ::TAO_ORB_Core * core_;
+ TAO_ORB_Core * core_;
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/ORB_Table.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/ORB_Table.inl b/TAO/tao/ORB_Table.inl
index b3145b1f2e0..cef161c5c7f 100644
--- a/TAO/tao/ORB_Table.inl
+++ b/TAO/tao/ORB_Table.inl
@@ -4,11 +4,8 @@
#include "tao/ORB_Core.h"
-#include <algorithm>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE ::TAO_ORB_Core *
+ACE_INLINE TAO_ORB_Core *
TAO::ORB_Table::first_orb (void)
{
return this->first_orb_;
@@ -26,7 +23,7 @@ TAO::ORB_Table::end (void)
return this->table_.end ();
}
-ACE_INLINE ::TAO_ORB_Core* const *
+ACE_INLINE TAO_ORB_Core* const *
TAO::ORB_Table::get_orbs (size_t& num_orbs)
{
num_orbs = this->num_orbs_;
@@ -49,7 +46,7 @@ TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter (void)
}
ACE_INLINE
-TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter (::TAO_ORB_Core * core)
+TAO::ORB_Core_Ref_Counter::ORB_Core_Ref_Counter (TAO_ORB_Core * core)
: core_ (core)
{
// ACE_ASSERT (core != 0);
@@ -86,5 +83,3 @@ TAO::ORB_Core_Ref_Counter::operator= (TAO::ORB_Core_Ref_Counter const & rhs)
TAO::ORB_Core_Ref_Counter tmp (rhs);
std::swap (this->core_, tmp.core_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjRefTemplate/Default_ORTA.cpp b/TAO/tao/ObjRefTemplate/Default_ORTA.cpp
index 76d44538b45..ccf1e5bb0fc 100644
--- a/TAO/tao/ObjRefTemplate/Default_ORTA.cpp
+++ b/TAO/tao/ObjRefTemplate/Default_ORTA.cpp
@@ -31,13 +31,11 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Value_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Value_Field.h"
-#include "tao/ObjRefTemplate/Default_ORTC.h"
+#include "Default_ORTC.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be/be_visitor_typecode/value_typecode.cpp:50
@@ -123,4 +121,4 @@ operator>>= (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/ObjRefTemplate/Default_ORTC.cpp b/TAO/tao/ObjRefTemplate/Default_ORTC.cpp
index b3a94f7c90a..f44925afb77 100644
--- a/TAO/tao/ObjRefTemplate/Default_ORTC.cpp
+++ b/TAO/tao/ObjRefTemplate/Default_ORTC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/ObjRefTemplate/Default_ORTC.h"
+#include "Default_ORTC.h"
#include "tao/CDR.h"
#include "tao/Valuetype/ValueFactory.h"
@@ -38,14 +38,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/ObjRefTemplate/Default_ORTC.inl"
+#include "Default_ORTC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -241,5 +239,3 @@ OBV_TAO_Default_ORT::ObjectReferenceTemplate::_tao_unmarshal_state (TAO_InputCDR
true
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjRefTemplate/Default_ORTC.h b/TAO/tao/ObjRefTemplate/Default_ORTC.h
index bf461b7efcd..f7f225bf63b 100644
--- a/TAO/tao/ObjRefTemplate/Default_ORTC.h
+++ b/TAO/tao/ObjRefTemplate/Default_ORTC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ObjRefTemplate/ort_export.h"
+#include "ort_export.h"
#include "tao/Valuetype/ValueBase.h"
#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
#include "tao/ORB.h"
@@ -67,8 +67,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO_Default_ORT
{
@@ -240,10 +238,8 @@ TAO_ORT_Export CORBA::Boolean operator>> (TAO_InputCDR &, TAO_Default_ORT::Objec
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/ObjRefTemplate/Default_ORTC.inl"
+#include "Default_ORTC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp b/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp
index d670c3ab051..5ca97d9d64b 100644
--- a/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp
+++ b/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h"
-#include "tao/ObjRefTemplate/ORT_Adapter_Impl.h"
+#include "ORT_Adapter_Factory_Impl.h"
+#include "ORT_Adapter_Impl.h"
#include "tao/PortableServer/Root_POA.h"
ACE_RCSID (ORT,
ORT_Adapter_Factory_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ORT_Adapter *
@@ -40,19 +38,14 @@ namespace TAO
ace_svc_desc_ORT_Adapter_Factory_Impl
);
}
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ORT_Adapter_Factory_Impl,
+ ACE_TEXT ("Concrete_ORT_Adapter_Factory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ORT_Adapter_Factory_Impl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0)
-ACE_STATIC_SVC_DEFINE (
- ORT_Adapter_Factory_Impl,
- ACE_TEXT ("Concrete_ORT_Adapter_Factory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ORT_Adapter_Factory_Impl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- TAO_ORT,
- ORT_Adapter_Factory_Impl,
- TAO::ORT_Adapter_Factory_Impl)
+ ACE_FACTORY_DEFINE (TAO_ORT, ORT_Adapter_Factory_Impl)
+}
diff --git a/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h b/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h
index 397addb069c..a41c3ab9f84 100644
--- a/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h
+++ b/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h
@@ -21,11 +21,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ObjRefTemplate/ort_export.h"
+#include "ort_export.h"
#include "tao/PortableServer/ORT_Adapter_Factory.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -51,17 +48,14 @@ namespace TAO
// Used to force the initialization of the code.
static int Initializer (void);
};
+
+ ACE_STATIC_SVC_DECLARE (ORT_Adapter_Factory_Impl)
+ ACE_FACTORY_DECLARE (TAO_ORT, ORT_Adapter_Factory_Impl)
}
static int TAO_Requires_ORTFactory_Initializer =
TAO::ORT_Adapter_Factory_Impl::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (ORT_Adapter_Factory_Impl)
-ACE_FACTORY_DECLARE (TAO_ORT, ORT_Adapter_Factory_Impl)
-
-
#define TAO_OBJREF_TEMPLATE_SAFE_INCLUDE
#include "tao/ObjRefTemplate/ObjectReferenceTemplateC.h"
#undef TAO_OBJREF_TEMPLATE_SAFE_INCLUDE
diff --git a/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.cpp b/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.cpp
index 1e697edc9cc..050be03e0dc 100644
--- a/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.cpp
+++ b/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/ObjRefTemplate/ORT_Adapter_Impl.h"
+#include "ORT_Adapter_Impl.h"
#include "tao/PortableServer/Root_POA.h"
#include "tao/CORBA_String.h"
#include "tao/ORB_Constants.h"
@@ -11,8 +11,6 @@ ACE_RCSID (ObjRefTemplate,
ORT_Adapter_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
char *
TAO::ORT_Adapter_Impl::tao_server_id (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -113,5 +111,3 @@ TAO::ORT_Adapter_Impl::activate (
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.h b/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.h
index ff30c49bbdf..ad2f8ecdf17 100644
--- a/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.h
+++ b/TAO/tao/ObjRefTemplate/ORT_Adapter_Impl.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/ObjRefTemplate/ort_export.h"
+#include "ort_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,8 +31,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -40,7 +38,7 @@ namespace TAO
*
* @brief Implementation of the TAO::ORT_Adapter
*/
- class ORT_Adapter_Impl
+ class TAO_ORT_Export ORT_Adapter_Impl
: public ORT_Adapter
{
public:
@@ -109,8 +107,6 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
# pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate.pidl b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate.pidl
index f26d45984bc..335fd5ad8d9 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate.pidl
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate.pidl
@@ -33,15 +33,18 @@
#ifndef _OBJECT_REFERENCE_TEMPLATE_IDL_
#define _OBJECT_REFERENCE_TEMPLATE_IDL_
-#include "tao/PI_Forward.pidl"
+#include <PI_Forward.pidl>
module PortableInterceptor
{
typeprefix PortableInterceptor "omg.org";
abstract valuetype ObjectReferenceFactory {
+ // boolean equals (in ObjectReferenceFactory other);
Object make_object (in string repository_id,
in ObjectId id);
+ // IOP::TaggedProfileSeq make_profiles (in string repository_id,
+ // in ObjectId id);
};
abstract valuetype ObjectReferenceTemplate : ObjectReferenceFactory {
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateA.cpp b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateA.cpp
index 2eda0aa733e..a5fcc1c409e 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateA.cpp
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateA.cpp
@@ -32,14 +32,12 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Value_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Value_Field.h"
-#include "tao/ObjRefTemplate/ObjectReferenceTemplate.h"
+#include "ObjectReferenceTemplate.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be/be_visitor_typecode/value_typecode.cpp:50
@@ -319,5 +317,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp
index 36ed1030c9d..9ffbc54f337 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/ObjRefTemplate/ObjectReferenceTemplate.h"
+#include "ObjectReferenceTemplate.h"
#include "tao/CDR.h"
#include "tao/Exception_Data.h"
#include "tao/Invocation_Adapter.h"
@@ -44,14 +44,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/ObjRefTemplate/ObjectReferenceTemplateC.inl"
+#include "ObjectReferenceTemplateC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -489,5 +487,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_PortableInterceptor_ObjectReferenceTemplateSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.h b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.h
index 7c95d92555f..70c007519ce 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.h
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplateC.h
@@ -43,7 +43,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ObjRefTemplate/ort_export.h"
+#include "ort_export.h"
#include "tao/Valuetype/ValueBase.h"
#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
#include "tao/ORB.h"
@@ -75,8 +75,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
@@ -432,10 +430,8 @@ TAO_ORT_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/ObjRefTemplate/ObjectReferenceTemplateC.inl"
+#include "ObjectReferenceTemplateC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp
index 5aade26a354..9965d1edb67 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.cpp
@@ -1,4 +1,4 @@
-#include "tao/ObjRefTemplate/ObjectReferenceTemplate_i.h"
+#include "ObjectReferenceTemplate_i.h"
#include "tao/PortableServer/Root_POA.h"
#include "tao/CORBA_String.h"
@@ -8,8 +8,6 @@ ACE_RCSID (ORT,
ObjectReferenceTemplate_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ObjectReferenceTemplate::ObjectReferenceTemplate (
@@ -76,5 +74,3 @@ namespace TAO
return tao_poa->invoke_key_to_object (ACE_ENV_SINGLE_ARG_PARAMETER);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.h b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.h
index cb19700492a..aca0b876cdf 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.h
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_i.h
@@ -24,7 +24,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ObjRefTemplate/Default_ORTC.h"
+#include "Default_ORTC.h"
#include "tao/SystemException.h"
#if defined(_MSC_VER)
@@ -32,8 +32,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
class POA;
@@ -45,13 +43,13 @@ namespace PortableServer
namespace TAO
{
/**
- * @class ObjectReferenceTemplate
+ * @class TAO_ObjectReferenceTemplate
*
* @brief Implementation of the PortableInterceptor::ObjectReferenceTemplate
* interface. This is a default implementation created to be returned
* by the IORInfo when the user requests the ORT or ORF.
*/
- class ObjectReferenceTemplate
+ class TAO_ORT_Export ObjectReferenceTemplate
: public virtual OBV_TAO_Default_ORT::ObjectReferenceTemplate,
public virtual CORBA::DefaultValueRefCountBase
{
@@ -113,8 +111,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h
index bef52c5826e..1b15e680078 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ObjRefTemplate/ort_export.h"
+#include "ort_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -71,8 +71,6 @@
// TAO_IDL - Generated from
// be\be_visitor_traits.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
@@ -81,8 +79,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:963
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeS.h b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeS.h
index 65f2ae33b8a..0d6946f8b84 100644
--- a/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeS.h
+++ b/TAO/tao/ObjRefTemplate/ObjectReferenceTemplate_includeS.h
@@ -34,7 +34,7 @@
#include /**/ "ace/pre.h"
#include "tao/ObjRefTemplate/ObjectReferenceTemplateS.h"
-#include "tao/ObjRefTemplate/ObjectReferenceTemplate_includeC.h"
+#include "ObjectReferenceTemplate_includeC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp
index 3b5b83c9c8d..14ed6f02fa3 100644
--- a/TAO/tao/Object.cpp
+++ b/TAO/tao/Object.cpp
@@ -6,19 +6,19 @@
//
// ORB: CORBA::Object operations
-#include "tao/Object.h"
-#include "tao/Stub.h"
-#include "tao/Profile.h"
-#include "tao/ORB_Core.h"
-#include "tao/Connector_Registry.h"
-#include "tao/LocateRequest_Invocation_Adapter.h"
-#include "tao/debug.h"
-#include "tao/Dynamic_Adapter.h"
-#include "tao/IFR_Client_Adapter.h"
-#include "tao/Remote_Object_Proxy_Broker.h"
-#include "tao/CDR.h"
-#include "tao/SystemException.h"
-#include "tao/PolicyC.h"
+#include "Object.h"
+#include "Stub.h"
+#include "Profile.h"
+#include "ORB_Core.h"
+#include "Connector_Registry.h"
+#include "LocateRequest_Invocation_Adapter.h"
+#include "debug.h"
+#include "Dynamic_Adapter.h"
+#include "IFR_Client_Adapter.h"
+#include "Remote_Object_Proxy_Broker.h"
+#include "CDR.h"
+#include "SystemException.h"
+#include "PolicyC.h"
#include "ace/Dynamic_Service.h"
#include "ace/OS_NS_string.h"
@@ -33,8 +33,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Object::~Object (void)
{
if (this->protocol_proxy_)
@@ -47,8 +45,10 @@ CORBA::Object::Object (TAO_Stub * protocol_proxy,
CORBA::Boolean collocated,
TAO_Abstract_ServantBase * servant,
TAO_ORB_Core *orb_core)
- : is_local_ (false)
- , is_evaluated_ (true)
+ : servant_ (servant)
+ , is_collocated_ (collocated)
+ , is_local_ (0)
+ , is_evaluated_ (1)
, ior_ (0)
, orb_core_ (orb_core)
, protocol_proxy_ (protocol_proxy)
@@ -66,18 +66,24 @@ CORBA::Object::Object (TAO_Stub * protocol_proxy,
this->refcount_lock_ =
this->orb_core_->resource_factory ()->create_corba_object_lock ();
- // Set the collocation marker on the stub. This may not be news to it.
- // This may also change the stub's object proxy broker.
- this->protocol_proxy_->is_collocated (collocated);
-
- // Set the collocated servant pointer (null if not collocated) on the stub.
- this->protocol_proxy_->collocated_servant (servant);
+ // If the object is collocated then set the broker using the
+ // factory otherwise use the remote proxy broker.
+ if (this->is_collocated_ &&
+ _TAO_Object_Proxy_Broker_Factory_function_pointer != 0)
+ this->proxy_broker_ =
+ _TAO_Object_Proxy_Broker_Factory_function_pointer (this);
+ else
+ this->proxy_broker_ =
+ the_tao_remote_object_proxy_broker ();
}
CORBA::Object::Object (IOP::IOR *ior,
TAO_ORB_Core *orb_core)
- : is_local_ (false)
- , is_evaluated_ (false)
+ : servant_ (0)
+ , proxy_broker_ (0)
+ , is_collocated_ (0)
+ , is_local_ (0)
+ , is_evaluated_ (0)
, ior_ (ior)
, orb_core_ (orb_core)
, protocol_proxy_ (0)
@@ -178,13 +184,7 @@ CORBA::Object::marshal (CORBA::Object_ptr x,
TAO_Abstract_ServantBase*
CORBA::Object::_servant (void) const
{
- if (this->protocol_proxy_ == 0)
- {
- // No stub set. Should not happen.
- return 0;
- }
-
- return this->protocol_proxy_->collocated_servant ();
+ return this->servant_;
}
// IS_A ... ask the object if it's an instance of the type whose
@@ -213,14 +213,14 @@ CORBA::Object::_is_a (const char *type_id
// XXX if type_id is that of CORBA::Object, "yes, we comply" :-)
if (this->protocol_proxy_ == 0)
- ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), false);
+ ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
if (this->_stubobj ()->type_id.in () != 0
&& ACE_OS::strcmp (type_id,
this->_stubobj ()->type_id.in ()) == 0)
- return true;
+ return 1;
- return this->proxy_broker ()->_is_a (this,
+ return this->proxy_broker_->_is_a (this,
type_id
ACE_ENV_ARG_PARAMETER);
}
@@ -234,19 +234,7 @@ CORBA::Object::_interface_repository_id (void) const
CORBA::Boolean
CORBA::Object::_is_collocated (void) const
{
- if (this->protocol_proxy_)
- {
- return this->protocol_proxy_->is_collocated ();
- }
-
- return false;
-}
-
-void
-CORBA::Object::set_collocated_servant (TAO_Abstract_ServantBase *b)
-{
- this->protocol_proxy_->collocated_servant (b);
- this->protocol_proxy_->is_collocated (true);
+ return this->is_collocated_;
}
CORBA::Boolean
@@ -298,7 +286,7 @@ CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj
{
if (other_obj == this)
{
- return true;
+ return 1;
}
TAO_OBJECT_IOR_EVALUATE_RETURN;
@@ -306,7 +294,7 @@ CORBA::Object::_is_equivalent (CORBA::Object_ptr other_obj
if (this->protocol_proxy_ != 0)
return this->protocol_proxy_->is_equivalent (other_obj);
- return false;
+ return 0;
}
// TAO's extensions
@@ -337,7 +325,7 @@ CORBA::Object::_key (ACE_ENV_SINGLE_ARG_DECL)
void
CORBA::Object::_proxy_broker (TAO::Object_Proxy_Broker *proxy_broker)
{
- this->protocol_proxy_->object_proxy_broker (proxy_broker);
+ this->proxy_broker_ = proxy_broker;
}
CORBA::Boolean
@@ -479,7 +467,7 @@ CORBA::Object::_non_existent (ACE_ENV_SINGLE_ARG_DECL)
ACE_TRY
{
- retval = this->proxy_broker ()->_non_existent (this
+ retval = this->proxy_broker_->_non_existent (this
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -502,7 +490,7 @@ CORBA::InterfaceDef_ptr
CORBA::Object::_get_interface (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
- return this->proxy_broker ()->_get_interface (this
+ return this->proxy_broker_->_get_interface (this
ACE_ENV_ARG_PARAMETER);
}
@@ -516,7 +504,7 @@ CORBA::Object_ptr
CORBA::Object::_get_component (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
- return this->proxy_broker ()->_get_component (this
+ return this->proxy_broker_->_get_component (this
ACE_ENV_ARG_PARAMETER);
}
@@ -524,7 +512,7 @@ char*
CORBA::Object::_repository_id (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_OBJECT_IOR_EVALUATE_RETURN;
- return this->proxy_broker ()->_repository_id (this
+ return this->proxy_broker_->_repository_id (this
ACE_ENV_ARG_PARAMETER);
}
@@ -589,7 +577,7 @@ CORBA::Object::_set_policy_overrides (
ACE_NEW_THROW_EX (obj,
CORBA::Object (stub,
- this->_is_collocated ()),
+ this->is_collocated_),
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
0,
@@ -634,7 +622,7 @@ CORBA::Object::_validate_connection (
// If the object is collocated then use non_existent to see whether
// it's there.
- if (this->_is_collocated ())
+ if (this->is_collocated_)
return !(this->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER));
TAO::LocateRequest_Invocation_Adapter tao_call (this);
@@ -682,22 +670,6 @@ CORBA::Object::_get_orb (ACE_ENV_SINGLE_ARG_DECL)
}
}
-TAO::Object_Proxy_Broker *
-CORBA::Object::proxy_broker (void) const
-{
- // Paranoid check. We *should* never access the proxy_broker
- // when the object has not been initialised so there *should*
- // alway be a stub, but just in case...
-
- if (this->protocol_proxy_)
- {
- return this->protocol_proxy_->object_proxy_broker ();
- }
-
- // We have no stub. We cannot be collocated.
- return the_tao_remote_object_proxy_broker ();
-}
-
/*****************************************************************
* Global Functions
****************************************************************/
@@ -725,9 +697,27 @@ operator<< (TAO_OutputCDR& cdr, const CORBA::Object* x)
TAO_Stub *stubobj = x->_stubobj ();
if (stubobj == 0)
- return false;
+ return 0;
- return (stubobj->marshal (cdr));
+ // STRING, a type ID hint
+ if ((cdr << stubobj->type_id.in ()) == 0)
+ return 0;
+
+ const TAO_MProfile& mprofile = stubobj->base_profiles ();
+
+ CORBA::ULong profile_count = mprofile.profile_count ();
+ if ((cdr << profile_count) == 0)
+ return 0;
+
+ // @@ The MProfile should be locked during this iteration, is there
+ // anyway to achieve that?
+ for (CORBA::ULong i = 0; i < profile_count; ++i)
+ {
+ const TAO_Profile* p = mprofile.get_profile (i);
+ if (p->encode (cdr) == 0)
+ return 0;
+ }
+ return (CORBA::Boolean) cdr.good_bit ();
}
/*static*/ void
@@ -815,9 +805,9 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
{
if (TAO_debug_level > 0)
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("TAO - ERROR creating stub ")
+ ACE_TEXT ("TAO (%P|%t) ERROR creating stub ")
ACE_TEXT ("object when demarshaling object ")
- ACE_TEXT ("reference."));
+ ACE_TEXT ("reference.\n"));
return;
}
@@ -826,14 +816,22 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
TAO_Stub_Auto_Ptr safe_objdata (objdata);
- // This call will set the stub proxy broker if necessary
if (orb_core->initialize_object (safe_objdata.get (),
obj) == -1)
return;
obj->protocol_proxy_ = objdata;
- obj->is_evaluated_ = true;
+ // If the object is collocated then set the broker using the
+ // factory otherwise use the remote proxy broker.
+ if (obj->is_collocated_ &&
+ _TAO_Object_Proxy_Broker_Factory_function_pointer != 0)
+ obj->proxy_broker_ =
+ _TAO_Object_Proxy_Broker_Factory_function_pointer (obj);
+ else
+ obj->proxy_broker_ = the_tao_remote_object_proxy_broker ();
+
+ obj->is_evaluated_ = 1;
// Release the contents of the ior to keep memory consumption down.
obj->ior_ = 0;
@@ -846,7 +844,7 @@ CORBA::Object::tao_object_initialize (CORBA::Object *obj)
CORBA::Boolean
operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
{
- bool lazy_strategy = false;
+ int lazy_strategy = 0;
TAO_ORB_Core *orb_core = cdr.orb_core ();
if (orb_core == 0)
@@ -863,7 +861,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
{
if (orb_core->resource_factory ()->resource_usage_strategy () ==
TAO_Resource_Factory::TAO_LAZY)
- lazy_strategy = true;
+ lazy_strategy = 1;
}
if (!lazy_strategy)
@@ -943,7 +941,7 @@ operator>> (TAO_InputCDR& cdr, CORBA::Object*& x)
{
if (TAO_debug_level > 0)
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- ACE_TEXT ("TAO - ERROR creating stub ")
+ ACE_TEXT ("TAO (%P|%t) ERROR creating stub ")
ACE_TEXT ("object when demarshaling object ")
ACE_TEXT ("reference.\n"));
@@ -1012,7 +1010,7 @@ namespace TAO
} // close TAO namespace
-TAO::Object_Proxy_Broker * (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (void) = 0;
-
+TAO::Object_Proxy_Broker * (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (
+ CORBA::Object_ptr obj
+ ) = 0;
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object.h b/TAO/tao/Object.h
index fc1a51490d6..548cf871edd 100644
--- a/TAO/tao/Object.h
+++ b/TAO/tao/Object.h
@@ -39,16 +39,12 @@
# undef IOR
#endif /* HPUX && IOR */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Stub;
class TAO_Abstract_ServantBase;
class TAO_ORB_Core;
+class ACE_Lock;
+
namespace TAO
{
class ObjectKey;
@@ -279,13 +275,9 @@ namespace CORBA
static CORBA::Boolean marshal (Object_ptr obj,
TAO_OutputCDR &strm);
- /// Accessor for the cached servant reference held on the stub
- /// if this object is collocated
virtual TAO_Abstract_ServantBase *_servant (void) const;
/// Is this object collocated with the servant?
- /// Note this does not return this->is_collocated_ but will instead
- /// query the underlying stub for its collocation status
virtual CORBA::Boolean _is_collocated (void) const;
/// Is this a local object?
@@ -357,18 +349,31 @@ namespace CORBA
/// Initializing a local object.
Object (int dummy = 0);
- /// Convenience accessor for the object proxy broker of the
- /// underlying stub.
- TAO::Object_Proxy_Broker *proxy_broker () const;
-
private:
// = Unimplemented methods
Object (const Object &);
Object &operator = (const Object &);
+ protected:
+
+ /// Servant pointer. It is 0 except for collocated objects.
+ TAO_Abstract_ServantBase *servant_;
+
private:
+ /// Pointer to the Proxy Broker
+ /**
+ * This cached pointer instance takes care of routing the call for
+ * standard calls in CORBA::Object like _is_a (), _get_component
+ * () etc.
+ */
+ TAO::Object_Proxy_Broker *proxy_broker_;
+
+ /// Flag to indicate collocation. It is 0 except for collocated
+ /// objects.
+ CORBA::Boolean is_collocated_;
+
/// Specify whether this is a local object or not.
CORBA::Boolean is_local_;
@@ -443,7 +448,9 @@ namespace TAO
/// library is present.
extern
TAO_Export TAO::Object_Proxy_Broker *
- (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (void);
+ (*_TAO_Object_Proxy_Broker_Factory_function_pointer) (
+ CORBA::Object_ptr obj
+ );
TAO_Export CORBA::Boolean
operator<< (TAO_OutputCDR&, const CORBA::Object*);
@@ -451,7 +458,6 @@ operator<< (TAO_OutputCDR&, const CORBA::Object*);
TAO_Export CORBA::Boolean
operator>> (TAO_InputCDR&, CORBA::Object *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/Object.i"
diff --git a/TAO/tao/Object.i b/TAO/tao/Object.i
index 0db6581b912..e86207df933 100644
--- a/TAO/tao/Object.i
+++ b/TAO/tao/Object.i
@@ -4,11 +4,12 @@
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::Object::Object (int)
- : is_local_ (true),
+ : servant_ (0),
+ proxy_broker_ (0),
+ is_collocated_ (false),
+ is_local_ (true),
is_evaluated_ (true),
ior_ (),
orb_core_ (0),
@@ -79,6 +80,13 @@ CORBA::Object::is_evaluated (void) const
return this->is_evaluated_;
}
+ACE_INLINE void
+CORBA::Object::set_collocated_servant (TAO_Abstract_ServantBase *b)
+{
+ this->servant_ = b;
+ this->is_collocated_ = 1;
+}
+
ACE_INLINE TAO_ORB_Core *
CORBA::Object::orb_core (void) const
{
@@ -96,5 +104,3 @@ CORBA::Object::ior (void) const
{
return this->ior_.in ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjectIdListC.cpp b/TAO/tao/ObjectIdListC.cpp
index ea194be0136..a46f7400069 100644
--- a/TAO/tao/ObjectIdListC.cpp
+++ b/TAO/tao/ObjectIdListC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/ObjectIdListC.h"
+#include "ObjectIdListC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -157,5 +155,3 @@ return false;
}
#endif /* _TAO_CDR_OP_CORBA_ORB_ObjectIdList_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjectIdListC.h b/TAO/tao/ObjectIdListC.h
index 034e9d43ea3..41ec5807c6d 100644
--- a/TAO/tao/ObjectIdListC.h
+++ b/TAO/tao/ObjectIdListC.h
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -153,8 +151,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/ObjectKey_Table.cpp b/TAO/tao/ObjectKey_Table.cpp
index 2915c3dd7ec..ab186bbfaef 100644
--- a/TAO/tao/ObjectKey_Table.cpp
+++ b/TAO/tao/ObjectKey_Table.cpp
@@ -1,16 +1,13 @@
// $Id$
-#include "tao/ObjectKey_Table.h"
-#include "tao/ORB_Core.h"
-#include "tao/Refcounted_ObjectKey.h"
+#include "ObjectKey_Table.h"
+#include "ORB_Core.h"
+#include "Refcounted_ObjectKey.h"
ACE_RCSID(tao,
ObjectKey_Table,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO::Less_Than_ObjectKey::operator () (const TAO::ObjectKey &lhs,
const TAO::ObjectKey &rhs) const
@@ -31,9 +28,9 @@ TAO::Less_Than_ObjectKey::operator () (const TAO::ObjectKey &lhs,
return 1;
}
else if (lhs[i] > rhs[i])
- {
- return 0;
- }
+ {
+ return 0;
+ }
}
return 0;
@@ -183,4 +180,3 @@ TAO::ObjectKey_Table::unbind_i (TAO::Refcounted_ObjectKey *&key_new)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ObjectKey_Table.h b/TAO/tao/ObjectKey_Table.h
index ef55ed9facd..db3027c7d05 100644
--- a/TAO/tao/ObjectKey_Table.h
+++ b/TAO/tao/ObjectKey_Table.h
@@ -23,9 +23,6 @@
#include "ace/Null_Mutex.h"
#include "tao/Object_KeyC.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declarations
class TAO_ORB_Core;
@@ -139,8 +136,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_OBJECT_KEY_TABLE_H*/
diff --git a/TAO/tao/Object_Argument_T.cpp b/TAO/tao/Object_Argument_T.cpp
index 7ddc254c6d8..9d949775999 100644
--- a/TAO/tao/Object_Argument_T.cpp
+++ b/TAO/tao/Object_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_OBJECT_ARGUMENT_T_CPP
-#define TAO_OBJECT_ARGUMENT_T_CPP
+#ifndef TAO_OBJECT_ARGUMENT_T_C
+#define TAO_OBJECT_ARGUMENT_T_C
#include "tao/Object_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/Object_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Object_Argument_T,
+ "$Id$")
template<typename S_ptr, typename Insert_Policy>
CORBA::Boolean
@@ -100,6 +102,4 @@ TAO::Ret_Object_Argument_T<S_ptr,S_var,Insert_Policy>::interceptor_value (
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_OBJECT_ARGUMENT_T_CPP */
+#endif /* TAO_OBJECT_ARGUMENT_T_C */
diff --git a/TAO/tao/Object_Argument_T.h b/TAO/tao/Object_Argument_T.h
index a5c0f8b7a71..b5157e3616f 100644
--- a/TAO/tao/Object_Argument_T.h
+++ b/TAO/tao/Object_Argument_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -153,8 +151,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Object_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Object_Argument_T.inl b/TAO/tao/Object_Argument_T.inl
index f8105b5a561..b4a778c9299 100644
--- a/TAO/tao/Object_Argument_T.inl
+++ b/TAO/tao/Object_Argument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S_ptr, typename Insert_Policy>
ACE_INLINE
TAO::In_Object_Argument_T<S_ptr,Insert_Policy>::In_Object_Argument_T (S_ptr x)
@@ -83,4 +81,3 @@ TAO::Ret_Object_Argument_T<S_ptr,S_var,Insert_Policy>::retn (void)
return this->x_._retn ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object_KeyC.cpp b/TAO/tao/Object_KeyC.cpp
index 7e79e07d473..3f46183a1f5 100644
--- a/TAO/tao/Object_KeyC.cpp
+++ b/TAO/tao/Object_KeyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/Object_KeyC.h"
+#include "Object_KeyC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
@@ -44,8 +44,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -333,5 +331,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_TAO_ObjectKey_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object_KeyC.h b/TAO/tao/Object_KeyC.h
index 6e070fcbea2..2198a47af4f 100644
--- a/TAO/tao/Object_KeyC.h
+++ b/TAO/tao/Object_KeyC.h
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -175,8 +173,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Object_Loader.cpp b/TAO/tao/Object_Loader.cpp
index 5379fa97148..b510b74bcc4 100644
--- a/TAO/tao/Object_Loader.cpp
+++ b/TAO/tao/Object_Loader.cpp
@@ -1,16 +1,13 @@
// $Id$
-#include "tao/Object_Loader.h"
+#include "Object_Loader.h"
+#include "ace/Dynamic_Service.h"
ACE_RCSID (tao,
Object_Loader,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Object_Loader::~TAO_Object_Loader (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object_Loader.h b/TAO/tao/Object_Loader.h
index 69b1a7559bc..fd9279e1fd0 100644
--- a/TAO/tao/Object_Loader.h
+++ b/TAO/tao/Object_Loader.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// ================================================================
/**
* @file Object_Loader.h
@@ -22,8 +20,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
@@ -64,8 +60,5 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_OBJECT_LOADER_H */
diff --git a/TAO/tao/Object_Proxy_Broker.cpp b/TAO/tao/Object_Proxy_Broker.cpp
index 8a8a1d6ee09..b718a9886ea 100644
--- a/TAO/tao/Object_Proxy_Broker.cpp
+++ b/TAO/tao/Object_Proxy_Broker.cpp
@@ -1,15 +1,13 @@
-// $Id$
-
#include "tao/Object_Proxy_Broker.h"
ACE_RCSID (tao,
- Object_Proxy_Broker,
+ TAO_Object_Proxy_Broker,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::Object_Proxy_Broker::~Object_Proxy_Broker (void)
+namespace TAO
{
+ Object_Proxy_Broker::~Object_Proxy_Broker (void)
+ {
+ // No-Op.
+ }
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object_Proxy_Broker.h b/TAO/tao/Object_Proxy_Broker.h
index 0c1b7dc2102..1d1e35f0c1a 100644
--- a/TAO/tao/Object_Proxy_Broker.h
+++ b/TAO/tao/Object_Proxy_Broker.h
@@ -30,8 +30,6 @@
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class InterfaceDef;
@@ -81,8 +79,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_OBJECT_PROXY_BROKER_H_ */
diff --git a/TAO/tao/Object_Ref_Table.cpp b/TAO/tao/Object_Ref_Table.cpp
index f5f4554f1a9..f3814f23b2a 100644
--- a/TAO/tao/Object_Ref_Table.cpp
+++ b/TAO/tao/Object_Ref_Table.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/Object_Ref_Table.h"
-#include "tao/ORB.h"
-#include "tao/Environment.h"
-#include "tao/debug.h"
-#include "tao/ORB_Constants.h"
-#include "tao/SystemException.h"
+#include "Object_Ref_Table.h"
+#include "ORB.h"
+#include "Environment.h"
+#include "debug.h"
+#include "ORB_Constants.h"
+#include "SystemException.h"
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
@@ -22,8 +22,6 @@ ACE_RCSID (tao,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Object_Ref_Table::bind (const char *id,
CORBA::Object_ptr obj)
@@ -58,7 +56,7 @@ TAO_Object_Ref_Table::bind (const char *id,
ACE_TEXT ("bind:")
ACE_TEXT (" Could not register duplicate object <%s> ")
ACE_TEXT ("with the ORB\n"),
- ACE_TEXT_CHAR_TO_TCHAR (id)));
+ ACE_TEXT_TO_TCHAR_IN (id)));
}
return -1;
@@ -83,5 +81,3 @@ TAO_Object_Ref_Table::find (const char *id)
return CORBA::Object::_duplicate ((*found).second.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object_Ref_Table.h b/TAO/tao/Object_Ref_Table.h
index ac4d6adcda8..014463862e1 100644
--- a/TAO/tao/Object_Ref_Table.h
+++ b/TAO/tao/Object_Ref_Table.h
@@ -28,8 +28,6 @@
#include "ace/Array_Map.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Environment;
@@ -70,11 +68,10 @@ public:
* Register an object reference with the table, and map the given
* ID to it.
* @retval 0 Success
- * @retval -1 Duplicate id if @c rebind is false
+ * @retval -1 Duplicate id
*/
int register_initial_reference (const char * id,
- CORBA::Object_ptr obj,
- bool rebind = false);
+ CORBA::Object_ptr obj);
/// Return the object reference associated with the given ID.
/// A duplicate is returned.
@@ -107,9 +104,9 @@ private:
private:
- // Disallow copying and assignment.
- TAO_Object_Ref_Table (const TAO_Object_Ref_Table &);
- void operator= (const TAO_Object_Ref_Table &);
+ /// Prevent copying
+ ACE_UNIMPLEMENTED_FUNC (TAO_Object_Ref_Table (const TAO_Object_Ref_Table &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Object_Ref_Table &))
private:
@@ -121,7 +118,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/Object_Ref_Table.inl"
diff --git a/TAO/tao/Object_Ref_Table.inl b/TAO/tao/Object_Ref_Table.inl
index e9abc371750..e2cc5ccccab 100644
--- a/TAO/tao/Object_Ref_Table.inl
+++ b/TAO/tao/Object_Ref_Table.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Object_Ref_Table::TAO_Object_Ref_Table (void)
: table_ (TAO_DEFAULT_OBJECT_REF_TABLE_SIZE)
@@ -14,18 +12,9 @@ TAO_Object_Ref_Table::TAO_Object_Ref_Table (void)
ACE_INLINE int
TAO_Object_Ref_Table::register_initial_reference (
const char *id,
- CORBA::Object_ptr obj,
- bool rebind)
+ CORBA::Object_ptr obj)
{
- if (rebind)
- {
- if (this->unbind (id) == -1)
- return -1;
- else
- return this->bind (id, obj);
- }
- else
- return this->bind (id, obj);
+ return this->bind (id, obj);
}
ACE_INLINE CORBA::Object_ptr
@@ -71,5 +60,3 @@ TAO_Object_Ref_Table::unbind (const char *id)
return
(this->table_.erase (CORBA::String_var (id)) == 0 ? -1 : 0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Object_T.cpp b/TAO/tao/Object_T.cpp
index 706d9d3dbee..69ad710c664 100644
--- a/TAO/tao/Object_T.cpp
+++ b/TAO/tao/Object_T.cpp
@@ -1,13 +1,14 @@
// $Id$
-
-#ifndef TAO_OBJECT_T_CPP
-#define TAO_OBJECT_T_CPP
+#ifndef TAO_OBJECT_T_C
+#define TAO_OBJECT_T_C
#include "tao/Object_T.h"
#include "tao/Stub.h"
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Object_T,
+ "$Id$")
namespace TAO
{
@@ -87,7 +88,7 @@ namespace TAO
{
return proxy;
}
-
+
TAO_Stub* stub = obj->_stubobj ();
if (stub == 0)
@@ -131,6 +132,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_OBJECT_T_CPP */
+#endif /* TAO_OBJECT_T_C */
diff --git a/TAO/tao/Object_T.h b/TAO/tao/Object_T.h
index c4cfd88230c..57c11c5950a 100644
--- a/TAO/tao/Object_T.h
+++ b/TAO/tao/Object_T.h
@@ -17,17 +17,8 @@
#include /**/ "ace/pre.h"
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Versioned_Namespace.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
@@ -67,8 +58,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "tao/Object_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/TAO/tao/Objref_VarOut_T.cpp b/TAO/tao/Objref_VarOut_T.cpp
index 6c3ab3e046c..0a93b48c86a 100644
--- a/TAO/tao/Objref_VarOut_T.cpp
+++ b/TAO/tao/Objref_VarOut_T.cpp
@@ -1,11 +1,13 @@
// $Id$
-#ifndef TAO_OBJREF_VAROUT_T_CPP
-#define TAO_OBJREF_VAROUT_T_CPP
+#ifndef TAO_OBJREF_VAROUT_T_C
+#define TAO_OBJREF_VAROUT_T_C
#include "tao/Objref_VarOut_T.h"
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Objref_VarOut_T,
+ "$Id$")
template <typename T>
TAO_Objref_Var_T<T>::TAO_Objref_Var_T (void)
@@ -200,6 +202,4 @@ TAO_Objref_Out_T<T>::operator-> (void)
return this->ptr_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_OBJREF_VAROUT_T_CPP */
+#endif /* TAO_OBJREF_VAROUT_T_C */
diff --git a/TAO/tao/Objref_VarOut_T.h b/TAO/tao/Objref_VarOut_T.h
index 55f876160a0..f3fc6ac260f 100644
--- a/TAO/tao/Objref_VarOut_T.h
+++ b/TAO/tao/Objref_VarOut_T.h
@@ -24,8 +24,6 @@
#include "tao/Basic_Types.h"
#include "tao/varbase.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_OutputCDR;
namespace TAO
@@ -127,8 +125,6 @@ private:
T *& ptr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "tao/Objref_VarOut_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/TAO/tao/OctetSeqC.cpp b/TAO/tao/OctetSeqC.cpp
index c788364a799..c59ead52d2b 100644
--- a/TAO/tao/OctetSeqC.cpp
+++ b/TAO/tao/OctetSeqC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:288
-#include "tao/OctetSeqC.h"
+#include "OctetSeqC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -190,5 +188,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_OctetSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/OctetSeqC.h b/TAO/tao/OctetSeqC.h
index 341cc5ad84f..5fa4471699b 100644
--- a/TAO/tao/OctetSeqC.h
+++ b/TAO/tao/OctetSeqC.h
@@ -57,8 +57,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -167,8 +165,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI/ClientRequestDetails.cpp b/TAO/tao/PI/ClientRequestDetails.cpp
deleted file mode 100644
index eda71934918..00000000000
--- a/TAO/tao/PI/ClientRequestDetails.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#include "tao/PI/ClientRequestDetails.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#if !defined (__ACE_INLINE__)
-#include "tao/PI/ClientRequestDetails.inl"
-#endif /* defined INLINE */
-
-ACE_RCSID (PI,
- ClientRequestDetails,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- void
- ClientRequestDetails::apply_policies (
- const CORBA::PolicyList &policies
- ACE_ENV_ARG_DECL)
- {
- // Flag to check for duplicate ProcessingModePolicy objects in the list.
- bool processing_mode_applied = false;
-
- const CORBA::ULong plen = policies.length ();
-
- for (CORBA::ULong i = 0; i < plen; ++i)
- {
- CORBA::Policy_var policy = policies[i];
-
- if (CORBA::is_nil (policy.in ()))
- {
- // Just ignore nil policies...
- continue;
- }
-
- // Obtain the PolicyType from the current Policy object.
- const CORBA::PolicyType policy_type =
- policy->policy_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- if (policy_type == PortableInterceptor::PROCESSING_MODE_POLICY_TYPE)
- {
- if (processing_mode_applied)
- {
- // This is the second time we have run into this policy type,
- // and that is not allowed.
- ACE_THROW (CORBA::INV_POLICY ());
- }
-
- // Flip the flag to true in order to trap any dupes.
- processing_mode_applied = true;
-
- // Narrow the Policy to the ProcessingModePolicy interface.
- PortableInterceptor::ProcessingModePolicy_var pm_policy =
- PortableInterceptor::ProcessingModePolicy::_narrow (
- policy.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Save the value of the ProcessingModePolicy in our data member.
- this->processing_mode_ =
- pm_policy->processing_mode (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- // We don't support the current policy type.
- ACE_THROW (CORBA::INV_POLICY ());
- }
- }
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/ClientRequestDetails.h b/TAO/tao/PI/ClientRequestDetails.h
deleted file mode 100644
index ec4666ae047..00000000000
--- a/TAO/tao/PI/ClientRequestDetails.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientRequestDetails.h
- *
- * $Id$
- *
- * This file declares a class that manages the details
- * about a registered client request interceptor. Policies can be
- * used when interceptors are registered, and the policy values
- * will be processed and used to modify the values of the
- * ClientRequestDetails object associated with the registered
- * client request interceptor.
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_CLIENT_REQUEST_DETAILS_H
-#define TAO_CLIENT_REQUEST_DETAILS_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/ProcessingModePolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- /**
- * @class ClientRequestDetails
- *
- * @brief The policy-driven details for a registered client request
- * interceptor
- *
- * Each time a client request interceptor is registered with an ORB,
- * a ClientRequestDetails object will be created and associated with
- * the registered client request interceptor. If the interceptor is
- * registered with policies, the policies will be used to adjust the
- * values in the ClientRequestDetails appropriately.
- */
- class ClientRequestDetails
- {
- public:
-
- ClientRequestDetails (void);
-
- void apply_policies (const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
- /// Returns true if the ProcessingMode setting permits the "firing"
- /// of the associated client request interceptor based upon the
- /// remote vs. collocated nature of the current servant request
- /// that is being dispatched.
- bool should_be_processed (bool is_remote_request) const;
-
- private:
-
- /// The ProcessingMode setting that can be adjusted via the
- /// PortableInterceptor::ProcessingModePolicy.
- PortableInterceptor::ProcessingMode processing_mode_;
- };
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-#include "tao/PI/ClientRequestDetails.inl"
-#endif /* __ACE_INLINE__ */
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_CLIENT_REQUEST_DETAILS_H */
diff --git a/TAO/tao/PI/ClientRequestDetails.inl b/TAO/tao/PI/ClientRequestDetails.inl
deleted file mode 100644
index f568bb9fafb..00000000000
--- a/TAO/tao/PI/ClientRequestDetails.inl
+++ /dev/null
@@ -1,27 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- ACE_INLINE
- ClientRequestDetails::ClientRequestDetails (void)
- : processing_mode_(PortableInterceptor::LOCAL_AND_REMOTE)
- {
- }
-
- ACE_INLINE
- bool
- ClientRequestDetails::should_be_processed (bool is_remote_request) const
- {
- return ((this->processing_mode_ == PortableInterceptor::LOCAL_AND_REMOTE) ||
- ((this->processing_mode_ == PortableInterceptor::REMOTE_ONLY) &&
- (is_remote_request)) ||
- ((this->processing_mode_ == PortableInterceptor::LOCAL_ONLY) &&
- (!is_remote_request)));
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ClientRequestInfo.cpp b/TAO/tao/PI/ClientRequestInfo.cpp
index 9a0baa762bf..544a2694509 100644
--- a/TAO/tao/PI/ClientRequestInfo.cpp
+++ b/TAO/tao/PI/ClientRequestInfo.cpp
@@ -1,15 +1,15 @@
// $Id$
-#include "tao/PI/ClientRequestInfo.h"
+#include "ClientRequestInfo.h"
#if TAO_HAS_INTERCEPTORS == 1
-ACE_RCSID (PI,
+ACE_RCSID (tao,
ClientRequestInfo,
"$Id$")
-#include "tao/PI/PICurrent.h"
-#include "tao/PI/RequestInfo_Util.h"
+#include "PICurrent.h"
+#include "RequestInfo_Util.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/ExceptionA.h"
@@ -24,8 +24,6 @@ ACE_RCSID (PI,
#include "tao/Service_Context.h"
#include "tao/Exception_Data.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ClientRequestInfo::TAO_ClientRequestInfo (TAO::Invocation_Base *inv)
: invocation_ (inv),
rs_pi_current_ (),
@@ -603,10 +601,8 @@ TAO_ClientRequestInfo::result (ACE_ENV_SINGLE_ARG_DECL)
bool
TAO_ClientRequestInfo::result (CORBA::Any *any)
{
- // Result is always first element in TAO::Argument array.
- TAO::Argument * const r = this->invocation_->operation_details ().args ()[0];
-
- r->interceptor_value (any);
+ for (CORBA::ULong i = 0; i != this->invocation_->operation_details ().args_num (); ++i)
+ (*this->invocation_->operation_details ().args ()[i]).interceptor_value (any);
return true;
}
@@ -726,30 +722,4 @@ TAO_ClientRequestInfo::check_validity (ACE_ENV_SINGLE_ARG_DECL)
CORBA::COMPLETED_NO));
}
-void
-TAO_ClientRequestInfo::tao_ft_expiration_time (TimeBase::TimeT time)
-{
- this->invocation_->operation_details ().ft_expiration_time (time);
-}
-
-TimeBase::TimeT
-TAO_ClientRequestInfo::tao_ft_expiration_time (void) const
-{
- return this->invocation_->operation_details ().ft_expiration_time ();
-}
-
-void
-TAO_ClientRequestInfo::tao_ft_retention_id (CORBA::Long request_id)
-{
- this->invocation_->operation_details ().ft_retention_id (request_id) ;
-}
-
-CORBA::Long
-TAO_ClientRequestInfo::tao_ft_retention_id (void) const
-{
- return this->invocation_->operation_details ().ft_retention_id ();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/ClientRequestInfo.h b/TAO/tao/PI/ClientRequestInfo.h
index 9c5f732c549..4a47e23de92 100644
--- a/TAO/tao/PI/ClientRequestInfo.h
+++ b/TAO/tao/PI/ClientRequestInfo.h
@@ -32,16 +32,14 @@
#endif /* _MSC_VER */
#include "tao/CORBA_methods.h"
-#include "tao/PI/ClientRequestInfoC.h"
-#include "tao/PI/PIForwardRequestC.h"
-#include "tao/PI/PICurrent_Impl.h"
-#include "tao/PI/PICurrent_Copy_Callback.h"
+#include "ClientRequestInfoC.h"
+#include "PIForwardRequestC.h"
+#include "PICurrent_Impl.h"
+#include "PICurrent_Copy_Callback.h"
#include "tao/ORB_Constants.h"
#include "tao/LocalObject.h"
#include "tao/Invocation_Utils.h"
-#include "tao/TimeBaseC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Service_Context;
@@ -69,7 +67,7 @@ namespace Messaging
* @brief Implementation of the PortableInterceptor::ClientRequestInfo
* interface.
*/
-class TAO_PI_Export TAO_ClientRequestInfo
+class TAO_ClientRequestInfo
: public virtual PortableInterceptor::ClientRequestInfo,
public virtual TAO_Local_RefCounted_Object
{
@@ -222,27 +220,6 @@ public:
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
- /*
- * Proprietary accessor methods for the FT retention ID and
- * request expiration time.
- */
-
- /// Set the absolute FT expiration time for this request.
- void tao_ft_expiration_time (TimeBase::TimeT time);
-
- /// Get the absolute FT expiration time for this request
- TimeBase::TimeT tao_ft_expiration_time (void) const;
-
- /// Set the FT request retention ID for this request.
- void tao_ft_retention_id (CORBA::Long request_id);
-
- /// Get the FT request retention ID for this request.
- CORBA::Long tao_ft_retention_id (void) const;
-
- /*
- * End proprietary FT methods.
- */
-
private:
bool parameter_list (Dynamic::ParameterList &param_list);
@@ -291,8 +268,6 @@ private:
TAO::PICurrent_Copy_Callback copy_callback_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI/ClientRequestInfo.pidl b/TAO/tao/PI/ClientRequestInfo.pidl
index 1a5baca1d14..3ee07e65af4 100644
--- a/TAO/tao/PI/ClientRequestInfo.pidl
+++ b/TAO/tao/PI/ClientRequestInfo.pidl
@@ -23,8 +23,8 @@
#define _CLIENT_REQUESTINFO_PIDL_
#include "tao/PI/RequestInfo.pidl"
-#include "tao/orb_types.pidl"
-#include "tao/Policy_Forward.pidl"
+#include <orb_types.pidl>
+#include <Policy_Forward.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PI/ClientRequestInfoA.cpp b/TAO/tao/PI/ClientRequestInfoA.cpp
index aa30e9882c7..f6840ced1f9 100644
--- a/TAO/tao/PI/ClientRequestInfoA.cpp
+++ b/TAO/tao/PI/ClientRequestInfoA.cpp
@@ -25,29 +25,26 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/ClientRequestInfoA.h"
+#include "ClientRequestInfoC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_ClientRequestInfo (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/ClientRequestInfo:1.0",
"ClientRequestInfo");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_ClientRequestInfo =
@@ -55,4 +52,78 @@ namespace PortableInterceptor
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ClientRequestInfo>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ClientRequestInfo>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ClientRequestInfo>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ClientRequestInfo_ptr _tao_elem
+ )
+{
+ PortableInterceptor::ClientRequestInfo_ptr _tao_objptr =
+ PortableInterceptor::ClientRequestInfo::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ClientRequestInfo_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::ClientRequestInfo>::insert (
+ _tao_any,
+ PortableInterceptor::ClientRequestInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_ClientRequestInfo,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ClientRequestInfo_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::ClientRequestInfo>::extract (
+ _tao_any,
+ PortableInterceptor::ClientRequestInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_ClientRequestInfo,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/ClientRequestInfoA.h b/TAO/tao/PI/ClientRequestInfoA.h
deleted file mode 100644
index 54fc23da5bd..00000000000
--- a/TAO/tao/PI/ClientRequestInfoA.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_CLIENTREQUESTINFOA_H_
-#define _TAO_IDL_CLIENTREQUESTINFOA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/ClientRequestInfoC.h"
-#include "tao/PI/RequestInfoA.h"
-#include "tao/AnyTypeCode/orb_typesA.h"
-#include "tao/AnyTypeCode/Policy_ForwardA.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ClientRequestInfo;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/ClientRequestInfoC.cpp b/TAO/tao/PI/ClientRequestInfoC.cpp
index 007536ecfe1..b818e7383c8 100644
--- a/TAO/tao/PI/ClientRequestInfoC.cpp
+++ b/TAO/tao/PI/ClientRequestInfoC.cpp
@@ -26,18 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI/ClientRequestInfoC.h"
+#include "ClientRequestInfoC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::ClientRequestInfo>::nil (void)
return PortableInterceptor::ClientRequestInfo::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::ClientRequestInfo>::marshal (
PortableInterceptor::ClientRequestInfo_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::ClientRequestInfo::ClientRequestInfo (void)
@@ -86,9 +88,17 @@ PortableInterceptor::ClientRequestInfo::ClientRequestInfo (void)
PortableInterceptor::ClientRequestInfo::~ClientRequestInfo (void)
{}
+void
+PortableInterceptor::ClientRequestInfo::_tao_any_destructor (void *_tao_void_pointer)
+{
+ ClientRequestInfo *_tao_tmp_pointer =
+ static_cast<ClientRequestInfo *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::ClientRequestInfo_ptr
PortableInterceptor::ClientRequestInfo::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -99,7 +109,7 @@ PortableInterceptor::ClientRequestInfo::_narrow (
PortableInterceptor::ClientRequestInfo_ptr
PortableInterceptor::ClientRequestInfo::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -125,7 +135,7 @@ PortableInterceptor::ClientRequestInfo::_tao_release (ClientRequestInfo_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ClientRequestInfo::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -163,10 +173,8 @@ const char* PortableInterceptor::ClientRequestInfo::_interface_repository_id (vo
return "IDL:omg.org/PortableInterceptor/ClientRequestInfo:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ClientRequestInfo::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ClientRequestInfoC.h b/TAO/tao/PI/ClientRequestInfoC.h
index 2a13b7eb472..59f9dab7f1e 100644
--- a/TAO/tao/PI/ClientRequestInfoC.h
+++ b/TAO/tao/PI/ClientRequestInfoC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_CLIENTREQUESTINFOC_H_
-#define _TAO_IDL_CLIENTREQUESTINFOC_H_
+#ifndef _TAO_IDL_ORIG_CLIENTREQUESTINFOC_H_
+#define _TAO_IDL_ORIG_CLIENTREQUESTINFOC_H_
#include /**/ "ace/pre.h"
@@ -41,13 +41,13 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PI/pi_export.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/PI/RequestInfoC.h"
@@ -59,29 +59,36 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
+
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
-
+
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__VAR_OUT_CH_
-
+
class ClientRequestInfo;
typedef ClientRequestInfo *ClientRequestInfo_ptr;
-
+
typedef
TAO_Objref_Var_T<
ClientRequestInfo
>
ClientRequestInfo_var;
-
+
typedef
TAO_Objref_Out_T<
ClientRequestInfo
@@ -89,165 +96,170 @@ namespace PortableInterceptor
ClientRequestInfo_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO_CH_)
#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO_CH_
-
+
class TAO_PI_Export ClientRequestInfo
: public virtual ::PortableInterceptor::RequestInfo
{
public:
typedef ClientRequestInfo_ptr _ptr_type;
typedef ClientRequestInfo_var _var_type;
-
+
// The static operations.
static ClientRequestInfo_ptr _duplicate (ClientRequestInfo_ptr obj);
-
+
static void _tao_release (ClientRequestInfo_ptr obj);
-
+
static ClientRequestInfo_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ClientRequestInfo_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ClientRequestInfo_ptr _nil (void)
{
return static_cast<ClientRequestInfo_ptr> (0);
}
-
-
-
+
+ static void _tao_any_destructor (void *);
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Object_ptr target (
+
+ virtual CORBA::Object_ptr target (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Object_ptr effective_target (
+
+ virtual CORBA::Object_ptr effective_target (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::IOP::TaggedProfile * effective_profile (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Any * received_exception (
+
+ virtual CORBA::Any * received_exception (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual char * received_exception_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::IOP::TaggedComponent * get_effective_component (
::IOP::ComponentId id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::IOP::TaggedComponentSeq * get_effective_components (
::IOP::ComponentId id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::CORBA::Policy_ptr get_request_policy (
::CORBA::PolicyType type
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void add_request_service_context (
const ::IOP::ServiceContext & service_context,
::CORBA::Boolean replace
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
ClientRequestInfo (void);
-
+
virtual ~ClientRequestInfo (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
ClientRequestInfo (const ClientRequestInfo &);
-
+
void operator= (const ClientRequestInfo &);
};
#endif /* end #if !defined */
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ClientRequestInfo;
+
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -258,9 +270,9 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ClientRequestInfo>
{
@@ -271,7 +283,7 @@ namespace TAO
::PortableInterceptor::ClientRequestInfo_ptr
);
static ::PortableInterceptor::ClientRequestInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ClientRequestInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -281,9 +293,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ClientRequestInfo_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ClientRequestInfo_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ClientRequestInfo_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/ClientRequestInterceptorA.cpp b/TAO/tao/PI/ClientRequestInterceptorA.cpp
index b3c99cc3579..7a1f1aca023 100644
--- a/TAO/tao/PI/ClientRequestInterceptorA.cpp
+++ b/TAO/tao/PI/ClientRequestInterceptorA.cpp
@@ -25,18 +25,16 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/ClientRequestInterceptorA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Any.h"
-#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ClientRequestInterceptorC.h"
+#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -44,10 +42,10 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_ClientRequestInterceptor (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/ClientRequestInterceptor:1.0",
"ClientRequestInterceptor");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_ClientRequestInterceptor =
@@ -55,4 +53,78 @@ namespace PortableInterceptor
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ClientRequestInterceptor_ptr _tao_elem
+ )
+{
+ PortableInterceptor::ClientRequestInterceptor_ptr _tao_objptr =
+ PortableInterceptor::ClientRequestInterceptor::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ClientRequestInterceptor_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::insert (
+ _tao_any,
+ PortableInterceptor::ClientRequestInterceptor::_tao_any_destructor,
+ PortableInterceptor::_tc_ClientRequestInterceptor,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ClientRequestInterceptor_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::ClientRequestInterceptor>::extract (
+ _tao_any,
+ PortableInterceptor::ClientRequestInterceptor::_tao_any_destructor,
+ PortableInterceptor::_tc_ClientRequestInterceptor,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/ClientRequestInterceptorA.h b/TAO/tao/PI/ClientRequestInterceptorA.h
deleted file mode 100644
index 3f99475e2fe..00000000000
--- a/TAO/tao/PI/ClientRequestInterceptorA.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_CLIENTREQUESTINTERCEPTORA_H_
-#define _TAO_IDL_CLIENTREQUESTINTERCEPTORA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/ClientRequestInterceptorC.h"
-#include "tao/PI/InterceptorA.h"
-#include "tao/PI/PIForwardRequestA.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ClientRequestInterceptor;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/ClientRequestInterceptorC.cpp b/TAO/tao/PI/ClientRequestInterceptorC.cpp
index 970c1ea6d1b..8e2bf9e81f6 100644
--- a/TAO/tao/PI/ClientRequestInterceptorC.cpp
+++ b/TAO/tao/PI/ClientRequestInterceptorC.cpp
@@ -26,18 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI/ClientRequestInterceptorC.h"
+#include "ClientRequestInterceptorC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::ClientRequestInterceptor>::nil (void)
return PortableInterceptor::ClientRequestInterceptor::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::ClientRequestInterceptor>::marshal (
PortableInterceptor::ClientRequestInterceptor_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::ClientRequestInterceptor::ClientRequestInterceptor (void)
@@ -86,9 +88,17 @@ PortableInterceptor::ClientRequestInterceptor::ClientRequestInterceptor (void)
PortableInterceptor::ClientRequestInterceptor::~ClientRequestInterceptor (void)
{}
+void
+PortableInterceptor::ClientRequestInterceptor::_tao_any_destructor (void *_tao_void_pointer)
+{
+ ClientRequestInterceptor *_tao_tmp_pointer =
+ static_cast<ClientRequestInterceptor *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::ClientRequestInterceptor_ptr
PortableInterceptor::ClientRequestInterceptor::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -99,7 +109,7 @@ PortableInterceptor::ClientRequestInterceptor::_narrow (
PortableInterceptor::ClientRequestInterceptor_ptr
PortableInterceptor::ClientRequestInterceptor::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -125,7 +135,7 @@ PortableInterceptor::ClientRequestInterceptor::_tao_release (ClientRequestInterc
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ClientRequestInterceptor::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -163,10 +173,8 @@ const char* PortableInterceptor::ClientRequestInterceptor::_interface_repository
return "IDL:omg.org/PortableInterceptor/ClientRequestInterceptor:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ClientRequestInterceptor::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ClientRequestInterceptorC.h b/TAO/tao/PI/ClientRequestInterceptorC.h
index 840948b8b5a..4c9bd3efb85 100644
--- a/TAO/tao/PI/ClientRequestInterceptorC.h
+++ b/TAO/tao/PI/ClientRequestInterceptorC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_CLIENTREQUESTINTERCEPTORC_H_
-#define _TAO_IDL_CLIENTREQUESTINTERCEPTORC_H_
+#ifndef _TAO_IDL_ORIG_CLIENTREQUESTINTERCEPTORC_H_
+#define _TAO_IDL_ORIG_CLIENTREQUESTINTERCEPTORC_H_
#include /**/ "ace/pre.h"
@@ -55,29 +55,36 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
-
+
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__VAR_OUT_CH_
-
+
class ClientRequestInfo;
typedef ClientRequestInfo *ClientRequestInfo_ptr;
-
+
typedef
TAO_Objref_Var_T<
ClientRequestInfo
>
ClientRequestInfo_var;
-
+
typedef
TAO_Objref_Out_T<
ClientRequestInfo
@@ -85,22 +92,22 @@ namespace PortableInterceptor
ClientRequestInfo_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__VAR_OUT_CH_
-
+
class ClientRequestInterceptor;
typedef ClientRequestInterceptor *ClientRequestInterceptor_ptr;
-
+
typedef
TAO_Objref_Var_T<
ClientRequestInterceptor
>
ClientRequestInterceptor_var;
-
+
typedef
TAO_Objref_Out_T<
ClientRequestInterceptor
@@ -108,88 +115,88 @@ namespace PortableInterceptor
ClientRequestInterceptor_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR_CH_)
#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR_CH_
-
+
class TAO_PI_Export ClientRequestInterceptor
: public virtual ::PortableInterceptor::Interceptor
{
public:
typedef ClientRequestInterceptor_ptr _ptr_type;
typedef ClientRequestInterceptor_var _var_type;
-
+
// The static operations.
static ClientRequestInterceptor_ptr _duplicate (ClientRequestInterceptor_ptr obj);
-
+
static void _tao_release (ClientRequestInterceptor_ptr obj);
-
+
static ClientRequestInterceptor_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ClientRequestInterceptor_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ClientRequestInterceptor_ptr _nil (void)
{
return static_cast<ClientRequestInterceptor_ptr> (0);
}
-
-
-
+
+ static void _tao_any_destructor (void *);
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void send_request (
::PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void send_poll (
::PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void receive_reply (
::PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void receive_exception (
::PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
@@ -198,20 +205,20 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
@@ -227,9 +234,14 @@ namespace PortableInterceptor
};
#endif /* end #if !defined */
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ClientRequestInterceptor;
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -240,8 +252,8 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINFO__TRAITS_CH_
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ClientRequestInfo>
@@ -253,7 +265,7 @@ namespace TAO
::PortableInterceptor::ClientRequestInfo_ptr
);
static ::PortableInterceptor::ClientRequestInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ClientRequestInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -261,8 +273,8 @@ namespace TAO
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_CH_
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ClientRequestInterceptor>
@@ -274,7 +286,7 @@ namespace TAO
::PortableInterceptor::ClientRequestInterceptor_ptr
);
static ::PortableInterceptor::ClientRequestInterceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ClientRequestInterceptor_ptr p,
TAO_OutputCDR & cdr
);
@@ -284,10 +296,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ClientRequestInterceptor_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ClientRequestInterceptor_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ClientRequestInterceptor_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp
index 741d185e2b9..574fc987085 100644
--- a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp
+++ b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.cpp
@@ -1,12 +1,12 @@
-#include "tao/PI/ClientRequestInterceptor_Adapter_Impl.h"
+#include "ClientRequestInterceptor_Adapter_Impl.h"
#if TAO_HAS_INTERCEPTORS == 1
#if !defined (__ACE_INLINE__)
-#include "tao/PI/ClientRequestInterceptor_Adapter_Impl.inl"
+#include "ClientRequestInterceptor_Adapter_Impl.inl"
#endif /* defined INLINE */
-#include "tao/PI/ClientRequestInfo.h"
+#include "ClientRequestInfo.h"
#include "tao/Invocation_Base.h"
#include "tao/ORB_Core.h"
@@ -17,8 +17,6 @@ ACE_RCSID (PI,
ClientRequestInterceptorAdapter_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
void
@@ -28,25 +26,16 @@ namespace TAO
{
// This method implements one of the "starting" client side
// interception point.
-
- bool is_remote_request = invocation.is_remote_request();
-
ACE_TRY
{
TAO_ClientRequestInfo ri (&invocation);
for (size_t i = 0 ; i < this->interceptor_list_.size (); ++i)
{
- ClientRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (i);
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- send_request (&ri
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor (i)->
+ send_request (&ri
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
// The starting interception point completed successfully.
// Push the interceptor on to the flow stack.
@@ -72,8 +61,6 @@ namespace TAO
// This is an "ending" interception point so we only process the
// interceptors pushed on to the flow stack.
- bool is_remote_request = invocation.is_remote_request();
-
// Notice that the interceptors are processed in the opposite order
// they were pushed onto the stack since this is an "ending"
// interception point.
@@ -90,18 +77,11 @@ namespace TAO
// invoked in another "ending" interception point.
--invocation.stack_size ();
- ClientRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (
- invocation.stack_size ());
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- receive_reply (
- &ri
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ this->interceptor_list_.interceptor (invocation.stack_size ())->
+ receive_reply (
+ &ri
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
// The receive_reply() interception point does not raise a
@@ -117,8 +97,6 @@ namespace TAO
// This is an "ending" interception point so we only process the
// interceptors pushed on to the flow stack.
- bool is_remote_request = invocation.is_remote_request();
-
// Notice that the interceptors are processed in the opposite order
// they were pushed onto the stack since this is an "ending"
// interception point.
@@ -136,18 +114,11 @@ namespace TAO
// being invoked in another "ending" interception point.
--invocation.stack_size ();
- ClientRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (
- invocation.stack_size ());
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- receive_exception (
- &ri
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor (invocation.stack_size ())->
+ receive_exception (
+ &ri
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
}
ACE_CATCH (PortableInterceptor::ForwardRequest, exc)
@@ -196,8 +167,6 @@ namespace TAO
// This is an "ending" interception point so we only process the
// interceptors pushed on to the flow stack.
- bool is_remote_request = invocation.is_remote_request();
-
// Notice that the interceptors are processed in the opposite order
// they were pushed onto the stack since this is an "ending"
// interception point.
@@ -216,18 +185,11 @@ namespace TAO
// being invoked in another "ending" interception point.
--invocation.stack_size ();
- ClientRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (
- invocation.stack_size ());
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- receive_other (
- &ri
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor (invocation.stack_size ())->
+ receive_other (
+ &ri
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
}
ACE_CATCH (PortableInterceptor::ForwardRequest, exc)
@@ -265,18 +227,6 @@ namespace TAO
}
void
- ClientRequestInterceptor_Adapter_Impl::add_interceptor (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
- {
- this->interceptor_list_.add_interceptor (interceptor,
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
- void
ClientRequestInterceptor_Adapter_Impl::destroy_interceptors (
ACE_ENV_SINGLE_ARG_DECL)
{
@@ -316,6 +266,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h
index 4b1a7ebc70c..2ec52a987aa 100644
--- a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h
+++ b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.h
@@ -30,17 +30,14 @@
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/Interceptor_List_T.h"
-#include "tao/PI/ClientRequestInterceptorC.h"
-#include "tao/PI/ClientRequestDetails.h"
+#include "Interceptor_List_T.h"
+#include "ClientRequestInterceptorC.h"
#include "tao/ClientRequestInterceptor_Adapter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- typedef Interceptor_List< ::PortableInterceptor::ClientRequestInterceptor,
- ClientRequestDetails>
+ typedef Interceptor_List< ::PortableInterceptor::ClientRequestInterceptor>
ClientRequestInterceptor_List;
}
@@ -102,12 +99,6 @@ namespace TAO
PortableInterceptor::ClientRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL);
- /// Register an interceptor with policies.
- virtual void add_interceptor (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
virtual void destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL);
virtual PortableInterceptor::ReplyStatus reply_status (
@@ -129,10 +120,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/PI/ClientRequestInterceptor_Adapter_Impl.inl"
+#include "ClientRequestInterceptor_Adapter_Impl.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.inl b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.inl
index c1c7835148d..e234f5d02ac 100644
--- a/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.inl
+++ b/TAO/tao/PI/ClientRequestInterceptor_Adapter_Impl.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE
@@ -11,5 +9,3 @@ namespace TAO
{
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp
index e4ff27b2c9b..890ce995534 100644
--- a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp
+++ b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.cpp
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// =================================================================
/**
@@ -11,11 +11,11 @@
*/
// =================================================================
-#include "tao/PI/ClientRequestInterceptor_Factory_Impl.h"
+#include "ClientRequestInterceptor_Factory_Impl.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/ClientRequestInterceptor_Adapter_Impl.h"
+#include "ClientRequestInterceptor_Adapter_Impl.h"
#include "tao/ORB.h"
#include "tao/debug.h"
@@ -24,8 +24,6 @@ ACE_RCSID (PI,
ClientRequestInterceptor_Factory_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::ClientRequestInterceptor_Adapter*
TAO_ClientRequestInterceptor_Adapter_Factory_Impl::create (void)
{
@@ -36,8 +34,6 @@ TAO_ClientRequestInterceptor_Adapter_Factory_Impl::create (void)
return obj;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_ClientRequestInterceptor_Adapter_Factory_Impl,
ACE_TEXT ("ClientRequestInterceptor_Adapter_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h
index f63b6ca3407..c3b959f156f 100644
--- a/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h
+++ b/TAO/tao/PI/ClientRequestInterceptor_Factory_Impl.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -16,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,10 +27,8 @@
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/ClientRequestInterceptor_Adapter_Factory.h"
#include "ace/Service_Config.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/ClientRequestInterceptor_Adapter_Factory.h"
namespace TAO
{
@@ -43,8 +42,6 @@ public:
virtual TAO::ClientRequestInterceptor_Adapter *create (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_ClientRequestInterceptor_Adapter_Factory_Impl)
ACE_FACTORY_DECLARE (TAO_PI, TAO_ClientRequestInterceptor_Adapter_Factory_Impl)
diff --git a/TAO/tao/PI/InterceptorA.cpp b/TAO/tao/PI/InterceptorA.cpp
index 20c37dc8d94..39a0f627a03 100644
--- a/TAO/tao/PI/InterceptorA.cpp
+++ b/TAO/tao/PI/InterceptorA.cpp
@@ -25,18 +25,16 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/InterceptorA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Any.h"
-#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
+#include "InterceptorC.h"
+#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -44,14 +42,89 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_Interceptor (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/Interceptor:1.0",
"Interceptor");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_Interceptor =
&_tao_tc_PortableInterceptor_Interceptor;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::Interceptor>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::Interceptor>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::Interceptor>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::Interceptor_ptr _tao_elem
+ )
+{
+ PortableInterceptor::Interceptor_ptr _tao_objptr =
+ PortableInterceptor::Interceptor::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::Interceptor_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::Interceptor>::insert (
+ _tao_any,
+ PortableInterceptor::Interceptor::_tao_any_destructor,
+ PortableInterceptor::_tc_Interceptor,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::Interceptor_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::Interceptor>::extract (
+ _tao_any,
+ PortableInterceptor::Interceptor::_tao_any_destructor,
+ PortableInterceptor::_tc_Interceptor,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/InterceptorA.h b/TAO/tao/PI/InterceptorA.h
deleted file mode 100644
index f749d91e8a1..00000000000
--- a/TAO/tao/PI/InterceptorA.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_INTERCEPTORA_H_
-#define _TAO_IDL_INTERCEPTORA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/InterceptorC.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_Interceptor;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/InterceptorC.cpp b/TAO/tao/PI/InterceptorC.cpp
index d7f673c3dfb..cc1c0e0b458 100644
--- a/TAO/tao/PI/InterceptorC.cpp
+++ b/TAO/tao/PI/InterceptorC.cpp
@@ -26,18 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI/InterceptorC.h"
+#include "InterceptorC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::Interceptor>::nil (void)
return PortableInterceptor::Interceptor::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::Interceptor>::marshal (
PortableInterceptor::Interceptor_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::Interceptor::Interceptor (void)
@@ -86,9 +88,17 @@ PortableInterceptor::Interceptor::Interceptor (void)
PortableInterceptor::Interceptor::~Interceptor (void)
{}
+void
+PortableInterceptor::Interceptor::_tao_any_destructor (void *_tao_void_pointer)
+{
+ Interceptor *_tao_tmp_pointer =
+ static_cast<Interceptor *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::Interceptor_ptr
PortableInterceptor::Interceptor::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -99,7 +109,7 @@ PortableInterceptor::Interceptor::_narrow (
PortableInterceptor::Interceptor_ptr
PortableInterceptor::Interceptor::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -125,7 +135,7 @@ PortableInterceptor::Interceptor::_tao_release (Interceptor_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::Interceptor::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -159,10 +169,8 @@ const char* PortableInterceptor::Interceptor::_interface_repository_id (void) co
return "IDL:omg.org/PortableInterceptor/Interceptor:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::Interceptor::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/InterceptorC.h b/TAO/tao/PI/InterceptorC.h
index 55841315bfe..750a1698595 100644
--- a/TAO/tao/PI/InterceptorC.h
+++ b/TAO/tao/PI/InterceptorC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_INTERCEPTORC_H_
-#define _TAO_IDL_INTERCEPTORC_H_
+#ifndef _TAO_IDL_ORIG_INTERCEPTORC_H_
+#define _TAO_IDL_ORIG_INTERCEPTORC_H_
#include /**/ "ace/pre.h"
@@ -52,16 +52,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_INTERCEPTOR__VAR_OUT_CH_
@@ -90,7 +97,7 @@ namespace PortableInterceptor
#define _PORTABLEINTERCEPTOR_INTERCEPTOR_CH_
class TAO_PI_Export Interceptor
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef Interceptor_ptr _ptr_type;
@@ -102,12 +109,12 @@ namespace PortableInterceptor
static void _tao_release (Interceptor_ptr obj);
static Interceptor_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static Interceptor_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -116,7 +123,7 @@ namespace PortableInterceptor
return static_cast<Interceptor_ptr> (0);
}
-
+ static void _tao_any_destructor (void *);
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
@@ -125,7 +132,7 @@ namespace PortableInterceptor
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -135,19 +142,19 @@ namespace PortableInterceptor
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
@@ -163,9 +170,14 @@ namespace PortableInterceptor
};
#endif /* end #if !defined */
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_Interceptor;
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -176,8 +188,8 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_INTERCEPTOR__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_INTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_INTERCEPTOR__TRAITS_CH_
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::Interceptor>
@@ -189,7 +201,7 @@ namespace TAO
::PortableInterceptor::Interceptor_ptr
);
static ::PortableInterceptor::Interceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::Interceptor_ptr p,
TAO_OutputCDR & cdr
);
@@ -199,9 +211,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::Interceptor_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::Interceptor_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::Interceptor_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/Interceptor_List_T.cpp b/TAO/tao/PI/Interceptor_List_T.cpp
index 657f69213ad..5f3b6e74581 100644
--- a/TAO/tao/PI/Interceptor_List_T.cpp
+++ b/TAO/tao/PI/Interceptor_List_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/PI/ORBInitInfoC.h"
-#include "tao/PI/InterceptorC.h"
+#include "ORBInitInfoC.h"
+#include "InterceptorC.h"
#include "tao/SystemException.h"
#include "tao/ORB_Constants.h"
#include "tao/debug.h"
@@ -10,40 +10,30 @@
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
- template <typename InterceptorType, typename DetailsType>
- Interceptor_List<InterceptorType,DetailsType>::Interceptor_List (void)
+ template <typename InterceptorType>
+ Interceptor_List<InterceptorType>::Interceptor_List (void)
{
}
- template <typename InterceptorType, typename DetailsType>
- typename Interceptor_List<InterceptorType,DetailsType>::RegisteredInterceptor&
- Interceptor_List<InterceptorType,DetailsType>::registered_interceptor (
- size_t index)
+ template <typename InterceptorType>
+ typename Interceptor_List<InterceptorType>::InterceptorType_ptr_type
+ Interceptor_List<InterceptorType>::interceptor (size_t index)
{
- return this->interceptors_[index];
+ return this->interceptors_[index].in ();
}
- template <typename InterceptorType, typename DetailsType>
- typename Interceptor_List<InterceptorType,DetailsType>::InterceptorType_ptr_type
- Interceptor_List<InterceptorType,DetailsType>::interceptor (size_t index)
- {
- return this->interceptors_[index].interceptor_.in ();
- }
-
- template <typename InterceptorType, typename DetailsType>
+ template <typename InterceptorType>
size_t
- Interceptor_List<InterceptorType,DetailsType>::size (void)
+ Interceptor_List<InterceptorType>::size (void)
{
return this->interceptors_.size ();
}
- template <typename InterceptorType, typename DetailsType>
+ template <typename InterceptorType>
void
- Interceptor_List<InterceptorType,DetailsType>::add_interceptor (
+ Interceptor_List<InterceptorType>::add_interceptor (
InterceptorType_ptr_type interceptor
ACE_ENV_ARG_DECL)
{
@@ -98,91 +88,7 @@ namespace TAO
this->interceptors_.size (new_len);
// Add the interceptor
- this->interceptors_[old_len].interceptor_ =
- InterceptorType::_duplicate (interceptor);
- }
- else
- {
- ACE_THROW (
- CORBA::INV_OBJREF (
- CORBA::SystemException::_tao_minor_code (
- 0,
- EINVAL
- ),
- CORBA::COMPLETED_NO
- )
- );
- }
- }
-
- template <typename InterceptorType, typename DetailsType>
- void
- Interceptor_List<InterceptorType,DetailsType>::add_interceptor (
- InterceptorType_ptr_type interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
- {
- if (!CORBA::is_nil (interceptor))
- {
- const size_t old_len = this->interceptors_.size ();
-
- // Don't bother checking the name for duplicates if no
- // interceptors have been registered. This saves an
- // allocation.
- if (old_len > 0)
- {
- /// If the Interceptor is not anonymous, make sure an
- /// Interceptor with the same isn't already registered.
- CORBA::String_var name =
- interceptor->name (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- if (ACE_OS::strlen (name.in ()) != 0)
- {
- // @@ This simple search algorithm isn't the greatest
- // thing in the world, but since we only register
- // interceptors when bootstrapping an ORB, there will
- // be no runtime penalty.
- //
- // Another source of inefficiency is that
- // Interceptors duplicate their name each time the
- // name() accessor is called! This can slow down
- // bootstrap time noticeably when registering a huge
- // number of interceptors. We could cache the names
- // somewhere, but since this is only a bootstrapping
- // issue there's no rush to implement such a scheme.
-
- // Prevent interceptors with the same name from being
- // registered. Anonymous interceptors are okay.
- for (size_t i = 0; i < old_len; ++i)
- {
- CORBA::String_var existing_name =
- this->interceptor (i)->name ();
-
- if (ACE_OS::strcmp (existing_name.in (),
- name.in ()) == 0)
- {
- ACE_THROW (PortableInterceptor::ORBInitInfo::DuplicateName ());
- }
- }
- }
- }
-
- // Create a DetailsType object, and attempt to apply the policies.
- DetailsType details;
- details.apply_policies(policies ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- /// Increase the length of the Interceptor sequence by one.
- const size_t new_len = old_len + 1;
- this->interceptors_.size (new_len);
-
- // Add the interceptor
- this->interceptors_[old_len].interceptor_ =
- InterceptorType::_duplicate (interceptor);
-
- // Set the details
- this->interceptors_[old_len].details_ = details;
+ this->interceptors_[old_len] = InterceptorType::_duplicate (interceptor);
}
else
{
@@ -198,9 +104,9 @@ namespace TAO
}
}
- template <typename InterceptorType, typename DetailsType>
+ template <typename InterceptorType>
void
- Interceptor_List<InterceptorType,DetailsType>::destroy_interceptors (
+ Interceptor_List<InterceptorType>::destroy_interceptors (
ACE_ENV_SINGLE_ARG_DECL)
{
const size_t len = this->interceptors_.size ();
@@ -241,5 +147,3 @@ namespace TAO
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/Interceptor_List_T.h b/TAO/tao/PI/Interceptor_List_T.h
index 5160ec03377..bb3a29db0a8 100644
--- a/TAO/tao/PI/Interceptor_List_T.h
+++ b/TAO/tao/PI/Interceptor_List_T.h
@@ -24,19 +24,12 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
class Interceptor;
typedef Interceptor *Interceptor_ptr;
}
-namespace CORBA
-{
- class PolicyList;
-}
-
namespace TAO
{
/**
@@ -47,19 +40,14 @@ namespace TAO
* Template for the various portable interceptor lists used
* internally by TAO.
*/
- template <typename InterceptorType, typename DetailsType>
+ template <typename InterceptorType>
class Interceptor_List
{
public:
/// Define the traits for the underlying portable interceptor array.
typedef typename InterceptorType::_var_type InterceptorType_var_type;
typedef typename InterceptorType::_ptr_type InterceptorType_ptr_type;
-
- struct RegisteredInterceptor
- {
- InterceptorType_var_type interceptor_;
- DetailsType details_;
- };
+ typedef ACE_Array_Base<InterceptorType_var_type> TYPE;
/// Constructor.
Interceptor_List (void);
@@ -68,35 +56,22 @@ namespace TAO
InterceptorType_ptr_type i
ACE_ENV_ARG_DECL);
- /// Register an interceptor with policies.
- void add_interceptor (InterceptorType_ptr_type i,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
void destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL);
- /// Return the registered interceptor in sequence element @a index.
- RegisteredInterceptor& registered_interceptor (
- size_t index);
-
/// Return the interceptor in sequence element @a index.
InterceptorType_ptr_type interceptor (size_t index);
size_t size (void);
private:
-
- typedef ACE_Array_Base<RegisteredInterceptor > RegisteredArray;
-
/// Dynamic array of registered interceptors.
- RegisteredArray interceptors_;
+ TYPE interceptors_;
+
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/PI/Interceptor_List_T.cpp"
+#include "Interceptor_List_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/PI/InvalidSlotA.cpp b/TAO/tao/PI/InvalidSlotA.cpp
index 1c099df47c0..638e24ea2f2 100644
--- a/TAO/tao/PI/InvalidSlotA.cpp
+++ b/TAO/tao/PI/InvalidSlotA.cpp
@@ -33,12 +33,10 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-#include "tao/PI/InvalidSlotA.h"
+#include "InvalidSlotA.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/struct_typecode.cpp:87
@@ -149,5 +147,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/InvalidSlotA.h b/TAO/tao/PI/InvalidSlotA.h
index 323675bc790..bd02e893965 100644
--- a/TAO/tao/PI/InvalidSlotA.h
+++ b/TAO/tao/PI/InvalidSlotA.h
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
// TAO_IDL - Generated from
@@ -93,8 +91,6 @@ TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableInte
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI/InvalidSlotC.cpp b/TAO/tao/PI/InvalidSlotC.cpp
index e70f2b68fb2..441c13306f4 100644
--- a/TAO/tao/PI/InvalidSlotC.cpp
+++ b/TAO/tao/PI/InvalidSlotC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/PI/InvalidSlotA.h"
+#include "InvalidSlotA.h"
#include "tao/CDR.h"
#include "tao/SystemException.h"
#include "ace/OS_NS_string.h"
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -173,5 +171,3 @@ CORBA::Boolean operator>> (
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/InvalidSlotC.h b/TAO/tao/PI/InvalidSlotC.h
index cefb3fb9adb..47acd600e79 100644
--- a/TAO/tao/PI/InvalidSlotC.h
+++ b/TAO/tao/PI/InvalidSlotC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
@@ -133,8 +131,6 @@ TAO_PI_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableInterceptor::In
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI/ORBInitInfo.cpp b/TAO/tao/PI/ORBInitInfo.cpp
index 0677994dc3e..658f11d6238 100644
--- a/TAO/tao/PI/ORBInitInfo.cpp
+++ b/TAO/tao/PI/ORBInitInfo.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PI/ORBInitInfo.h"
+#include "ORBInitInfo.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
@@ -11,7 +11,7 @@
#include "ace/Service_Config.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/PICurrent.h"
+#include "PICurrent.h"
#endif /* TAO_HAS_INTERCEPTORS == 1 */
ACE_RCSID (TAO,
@@ -19,13 +19,11 @@ ACE_RCSID (TAO,
"$Id$")
#if !defined (__ACE_INLINE__)
-#include "tao/PI/ORBInitInfo.inl"
+#include "ORBInitInfo.inl"
#endif /* defined INLINE */
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations for TAO_ORBInitInfo.
TAO_ORBInitInfo_ptr
@@ -140,11 +138,11 @@ TAO_ORBInitInfo::codec_factory (ACE_ENV_SINGLE_ARG_DECL)
if (loader != 0)
{
- CORBA::Object_var cf =
+ CORBA::Object_ptr cf =
loader->create_object (this->orb_core_->orb (), 0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (IOP::CodecFactory::_nil ());
- this->codec_factory_ = IOP::CodecFactory::_narrow (cf.in ());
+ this->codec_factory_ = IOP::CodecFactory::_narrow (cf);
}
}
@@ -260,86 +258,6 @@ TAO_ORBInitInfo::add_ior_interceptor (
ACE_ENV_ARG_PARAMETER);
}
-void
-TAO_ORBInitInfo::add_client_request_interceptor_with_policy (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ORBInitInfo::DuplicateName,
- CORBA::PolicyError))
-{
-# if TAO_HAS_INTERCEPTORS == 1
- this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- this->orb_core_->add_interceptor (interceptor,
- policies
- ACE_ENV_ARG_PARAMETER);
-#else
- ACE_UNUSED_ARG (interceptor);
- ACE_UNUSED_ARG (policies);
- ACE_THROW (CORBA::NO_IMPLEMENT (
- CORBA::SystemException::_tao_minor_code (
- 0,
- ENOTSUP),
- CORBA::COMPLETED_NO));
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-}
-
-void
-TAO_ORBInitInfo::add_server_request_interceptor_with_policy (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ORBInitInfo::DuplicateName,
- CORBA::PolicyError))
-{
-# if TAO_HAS_INTERCEPTORS == 1
- this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- this->orb_core_->add_interceptor (interceptor,
- policies
- ACE_ENV_ARG_PARAMETER);
-
-#else
- ACE_UNUSED_ARG (interceptor);
- ACE_UNUSED_ARG (policies);
- ACE_THROW (CORBA::NO_IMPLEMENT (
- CORBA::SystemException::_tao_minor_code (
- 0,
- ENOTSUP),
- CORBA::COMPLETED_NO));
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-}
-
-void
-TAO_ORBInitInfo::add_ior_interceptor_with_policy (
- PortableInterceptor::IORInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ORBInitInfo::DuplicateName,
- CORBA::PolicyError))
-{
- this->check_validity (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Since there are currently no PI Policies that pertain to
- // IOR Interceptors, we will always raise the NO_IMPLEMENT
- // CORBA System Exception here to indicate that this method
- // is currently not implemented/supported.
- ACE_UNUSED_ARG (interceptor);
- ACE_UNUSED_ARG (policies);
- ACE_THROW (CORBA::NO_IMPLEMENT (
- CORBA::SystemException::_tao_minor_code (
- 0,
- ENOTSUP),
- CORBA::COMPLETED_NO));
-}
-
PortableInterceptor::SlotId
TAO_ORBInitInfo::allocate_slot_id (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -465,4 +383,3 @@ const char* TAO_ORBInitInfo::_interface_repository_id (void) const
return "IDL:TAO_ORBInitInfo:1.0";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ORBInitInfo.h b/TAO/tao/PI/ORBInitInfo.h
index 63c78095104..f83238f0305 100644
--- a/TAO/tao/PI/ORBInitInfo.h
+++ b/TAO/tao/PI/ORBInitInfo.h
@@ -15,13 +15,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PI/ORBInitInfoC.h"
+#include "ORBInitInfoC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -35,8 +35,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_ORBInitInfo;
typedef TAO_ORBInitInfo *TAO_ORBInitInfo_ptr;
@@ -50,14 +48,14 @@ typedef TAO_Objref_Out_T<TAO_ORBInitInfo>
/**
* @class TAO_ORBInitInfo
*
- * @brief An implementation of the PortableInterceptor::ORBInitInfo_3_1
+ * @brief An implementation of the PortableInterceptor::ORBInitInfo
* interface.
*
* This class encapsulates the data passed to ORBInitializers during
* ORB initialization.
*/
class TAO_PI_Export TAO_ORBInitInfo
- : public virtual PortableInterceptor::ORBInitInfo_3_1,
+ : public virtual PortableInterceptor::ORBInitInfo,
public virtual TAO_Local_RefCounted_Object
{
public:
@@ -142,36 +140,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ORBInitInfo::DuplicateName));
- /// Register a client request interceptor with the ORB currently
- /// being initialized, along with a list of policies.
- virtual void add_client_request_interceptor_with_policy (
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ORBInitInfo::DuplicateName,
- CORBA::PolicyError));
-
- /// Register a server request interceptor with the ORB currently
- /// being initialized, along with a list of policies.
- virtual void add_server_request_interceptor_with_policy (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ORBInitInfo::DuplicateName,
- CORBA::PolicyError));
-
- /// Register an IOR interceptor with the ORB currently being
- /// initialized, along with a list of policies.
- virtual void add_ior_interceptor_with_policy (
- PortableInterceptor::IORInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ORBInitInfo::DuplicateName,
- CORBA::PolicyError));
-
/// Reserve a slot in table found within the
/// PortableInterceptor::Current object.
virtual PortableInterceptor::SlotId allocate_slot_id (
@@ -325,10 +293,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/PI/ORBInitInfo.inl"
+#include "ORBInitInfo.inl"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PI/ORBInitInfo.inl b/TAO/tao/PI/ORBInitInfo.inl
index f151fd2711d..bb8d32ed135 100644
--- a/TAO/tao/PI/ORBInitInfo.inl
+++ b/TAO/tao/PI/ORBInitInfo.inl
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_ORB_Core *
TAO_ORBInitInfo::orb_core (void) const
{
@@ -22,5 +20,3 @@ TAO_ORBInitInfo::slot_count (void) const
{
return this->slot_count_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ORBInitInfo.pidl b/TAO/tao/PI/ORBInitInfo.pidl
index 052b05c0372..cade887bc03 100644
--- a/TAO/tao/PI/ORBInitInfo.pidl
+++ b/TAO/tao/PI/ORBInitInfo.pidl
@@ -11,7 +11,7 @@
* The command used to generate code is:
*
* tao_idl
- * -o orig -Gp -Gd -Ge 1 -Sc -SS -Sci
+ * -o orig -Gp -Gd -Ge 1 -GA -Sc -SS -Sci
* -Wb,export_include="tao/TAO_Export.h"
* -Wb,export_macro=TAO_Export
* -Wb,pre_include="ace/pre.h"
@@ -22,10 +22,10 @@
#ifndef _ORBINITINFO_PIDL_
#define _ORBINITINFO_PIDL_
-#include "tao/StringSeq.pidl"
+#include <StringSeq.pidl>
#include "tao/CodecFactory/IOP_Codec_include.pidl"
-#include "tao/PI_Forward.pidl"
-#include "tao/Policy.pidl"
+#include <PI_Forward.pidl>
+#include <Policy.pidl>
module PortableInterceptor {
@@ -68,23 +68,6 @@ module PortableInterceptor {
in CORBA::PolicyType type,
in PolicyFactory policy_factory);
};
-
- local interface ORBInitInfo_3_1 : ORBInitInfo
- {
- void add_client_request_interceptor_with_policy(
- in ClientRequestInterceptor interceptor,
- in CORBA::PolicyList policies)
- raises (DuplicateName, CORBA::PolicyError);
- void add_server_request_interceptor_with_policy(
- in ServerRequestInterceptor interceptor,
- in CORBA::PolicyList policies)
- raises (DuplicateName, CORBA::PolicyError);
- void add_ior_interceptor_with_policy(
- in IORInterceptor interceptor,
- in CORBA::PolicyList policies)
- raises (DuplicateName, CORBA::PolicyError);
- };
-
};
#endif /* _ORBINITINFO_PIDL_ */
diff --git a/TAO/tao/PI/ORBInitInfoA.cpp b/TAO/tao/PI/ORBInitInfoA.cpp
new file mode 100644
index 00000000000..86c49b8a9e6
--- /dev/null
+++ b/TAO/tao/PI/ORBInitInfoA.cpp
@@ -0,0 +1,337 @@
+// -*- 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/
+// and
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
+//
+// Information about TAO is available at:
+// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+#include "ORBInitInfoC.h"
+#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
+#include "tao/AnyTypeCode/String_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
+#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "tao/CDR.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/Any_Impl_T.h"
+#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/alias_typecode.cpp:50
+
+static TAO::TypeCode::Alias<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_PortableInterceptor_ORBInitInfo_ObjectId (
+ CORBA::tk_alias,
+ "IDL:omg.org/PortableInterceptor/ORBInitInfo/ObjectId:1.0",
+ "ObjectId",
+ &CORBA::_tc_string);
+
+::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_ObjectId =
+ &_tao_tc_PortableInterceptor_ORBInitInfo_ObjectId;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_PortableInterceptor_ORBInitInfo_DuplicateName[] =
+ {
+ { "name", &CORBA::_tc_string }
+
+ };
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_PortableInterceptor_ORBInitInfo_DuplicateName (
+ CORBA::tk_except,
+ "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0",
+ "DuplicateName",
+ _tao_fields_PortableInterceptor_ORBInitInfo_DuplicateName,
+ 1);
+
+::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_DuplicateName =
+ &_tao_tc_PortableInterceptor_ORBInitInfo_DuplicateName;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_PortableInterceptor_ORBInitInfo_InvalidName = 0;
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_PortableInterceptor_ORBInitInfo_InvalidName (
+ CORBA::tk_except,
+ "IDL:omg.org/PortableInterceptor/ORBInitInfo/InvalidName:1.0",
+ "InvalidName",
+ _tao_fields_PortableInterceptor_ORBInitInfo_InvalidName,
+ 0);
+
+::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_InvalidName =
+ &_tao_tc_PortableInterceptor_ORBInitInfo_InvalidName;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_PortableInterceptor_ORBInitInfo (
+ CORBA::tk_local_interface,
+ "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0",
+ "ORBInitInfo");
+
+namespace PortableInterceptor
+{
+ ::CORBA::TypeCode_ptr const _tc_ORBInitInfo =
+ &_tao_tc_PortableInterceptor_ORBInitInfo;
+}
+
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ORBInitInfo>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ORBInitInfo>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ORBInitInfo>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo_ptr _tao_elem
+ )
+{
+ PortableInterceptor::ORBInitInfo_ptr _tao_objptr =
+ PortableInterceptor::ORBInitInfo::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::ORBInitInfo>::insert (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_ORBInitInfo,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::ORBInitInfo>::extract (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_ORBInitInfo,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::DuplicateName>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::DuplicateName>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const PortableInterceptor::ORBInitInfo::DuplicateName &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::DuplicateName>::insert_copy (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::DuplicateName::_tao_any_destructor,
+ PortableInterceptor::ORBInitInfo::_tc_DuplicateName,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo::DuplicateName *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::DuplicateName>::insert (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::DuplicateName::_tao_any_destructor,
+ PortableInterceptor::ORBInitInfo::_tc_DuplicateName,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo::DuplicateName *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const PortableInterceptor::ORBInitInfo::DuplicateName *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const PortableInterceptor::ORBInitInfo::DuplicateName *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::DuplicateName>::extract (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::DuplicateName::_tao_any_destructor,
+ PortableInterceptor::ORBInitInfo::_tc_DuplicateName,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::InvalidName>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::InvalidName>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const PortableInterceptor::ORBInitInfo::InvalidName &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::InvalidName>::insert_copy (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::InvalidName::_tao_any_destructor,
+ PortableInterceptor::ORBInitInfo::_tc_InvalidName,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo::InvalidName *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::InvalidName>::insert (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::InvalidName::_tao_any_destructor,
+ PortableInterceptor::ORBInitInfo::_tc_InvalidName,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitInfo::InvalidName *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const PortableInterceptor::ORBInitInfo::InvalidName *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const PortableInterceptor::ORBInitInfo::InvalidName *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<PortableInterceptor::ORBInitInfo::InvalidName>::extract (
+ _tao_any,
+ PortableInterceptor::ORBInitInfo::InvalidName::_tao_any_destructor,
+ PortableInterceptor::ORBInitInfo::_tc_InvalidName,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/ORBInitInfoC.cpp b/TAO/tao/PI/ORBInitInfoC.cpp
index 6fee3193261..33580f1f439 100644
--- a/TAO/tao/PI/ORBInitInfoC.cpp
+++ b/TAO/tao/PI/ORBInitInfoC.cpp
@@ -26,29 +26,19 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be/be_codegen.cpp:292
+// be\be_codegen.cpp:291
-#include "tao/PI/ORBInitInfoC.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
-#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "ORBInitInfoC.h"
#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Any_Impl_T.h"
-#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
// TAO_IDL - Generated from
-// be/be_visitor_arg_traits.cpp:70
+// be\be_visitor_arg_traits.cpp:70
// Arg traits specializations.
namespace TAO
@@ -57,7 +47,7 @@ namespace TAO
// TAO_IDL - Generated from
-// be/be_visitor_interface/interface_cs.cpp:60
+// be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for PortableInterceptor::ORBInitInfo.
@@ -83,35 +73,20 @@ TAO::Objref_Traits<PortableInterceptor::ORBInitInfo>::nil (void)
return PortableInterceptor::ORBInitInfo::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::ORBInitInfo>::marshal (
- const PortableInterceptor::ORBInitInfo_ptr p,
+ PortableInterceptor::ORBInitInfo_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/alias_typecode.cpp:50
-
-static TAO::TypeCode::Alias<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ORBInitInfo_ObjectId (
- ::CORBA::tk_alias,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo/ObjectId:1.0",
- "ObjectId",
- &CORBA::_tc_string);
-
-::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_ObjectId =
- &_tao_tc_PortableInterceptor_ORBInitInfo_ObjectId;
-
-// TAO_IDL - Generated from
-// be/be_visitor_exception/exception_cs.cpp:63
+// TAO_IDL - Generated from
+// be\be_visitor_exception/exception_cs.cpp:63
PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0",
"DuplicateName"
)
@@ -123,19 +98,19 @@ PortableInterceptor::ORBInitInfo::DuplicateName::~DuplicateName (void)
}
PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (const ::PortableInterceptor::ORBInitInfo::DuplicateName &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
{
- this->name = ::CORBA::string_dup (_tao_excp.name.in ());
+ this->name = CORBA::string_dup (_tao_excp.name.in ());
}
PortableInterceptor::ORBInitInfo::DuplicateName&
PortableInterceptor::ORBInitInfo::DuplicateName::operator= (const ::PortableInterceptor::ORBInitInfo::DuplicateName &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
- this->name = ::CORBA::string_dup (_tao_excp.name.in ());
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
+ this->name = CORBA::string_dup (_tao_excp.name.in ());
return *this;
}
@@ -147,28 +122,28 @@ void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_any_destructor (void
}
PortableInterceptor::ORBInitInfo::DuplicateName *
-PortableInterceptor::ORBInitInfo::DuplicateName::_downcast ( ::CORBA::Exception *_tao_excp)
+PortableInterceptor::ORBInitInfo::DuplicateName::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<DuplicateName *> (_tao_excp);
}
const PortableInterceptor::ORBInitInfo::DuplicateName *
-PortableInterceptor::ORBInitInfo::DuplicateName::_downcast ( ::CORBA::Exception const *_tao_excp)
+PortableInterceptor::ORBInitInfo::DuplicateName::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const DuplicateName *> (_tao_excp);
}
-::CORBA::Exception *PortableInterceptor::ORBInitInfo::DuplicateName::_alloc (void)
+CORBA::Exception *PortableInterceptor::ORBInitInfo::DuplicateName::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::PortableInterceptor::ORBInitInfo::DuplicateName, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
PortableInterceptor::ORBInitInfo::DuplicateName::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::PortableInterceptor::ORBInitInfo::DuplicateName (*this),
@@ -187,7 +162,7 @@ void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_decode (
@@ -195,58 +170,36 @@ void PortableInterceptor::ORBInitInfo::DuplicateName::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO_IDL - Generated from
-// be/be_visitor_exception/exception_ctor.cpp:66
+// be\be_visitor_exception/exception_ctor.cpp:66
PortableInterceptor::ORBInitInfo::DuplicateName::DuplicateName (
const char * _tao_name
)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0",
"DuplicateName"
)
{
- this->name = ::CORBA::string_dup (_tao_name);
+ this->name = CORBA::string_dup (_tao_name);
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::DuplicateName::_tao_type (void) const
+CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::DuplicateName::_tao_type (void) const
{
return ::PortableInterceptor::ORBInitInfo::_tc_DuplicateName;
}
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_PortableInterceptor_ORBInitInfo_DuplicateName[] =
- {
- { "name", &CORBA::_tc_string }
-
- };
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ORBInitInfo_DuplicateName (
- ::CORBA::tk_except,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo/DuplicateName:1.0",
- "DuplicateName",
- _tao_fields_PortableInterceptor_ORBInitInfo_DuplicateName,
- 1);
-
-::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_DuplicateName =
- &_tao_tc_PortableInterceptor_ORBInitInfo_DuplicateName;
-
-// TAO_IDL - Generated from
-// be/be_visitor_exception/exception_cs.cpp:63
+// TAO_IDL - Generated from
+// be\be_visitor_exception/exception_cs.cpp:63
PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/PortableInterceptor/ORBInitInfo/InvalidName:1.0",
"InvalidName"
)
@@ -258,7 +211,7 @@ PortableInterceptor::ORBInitInfo::InvalidName::~InvalidName (void)
}
PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (const ::PortableInterceptor::ORBInitInfo::InvalidName &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -268,7 +221,7 @@ PortableInterceptor::ORBInitInfo::InvalidName::InvalidName (const ::PortableInte
PortableInterceptor::ORBInitInfo::InvalidName&
PortableInterceptor::ORBInitInfo::InvalidName::operator= (const ::PortableInterceptor::ORBInitInfo::InvalidName &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
return *this;
}
@@ -280,28 +233,28 @@ void PortableInterceptor::ORBInitInfo::InvalidName::_tao_any_destructor (void *_
}
PortableInterceptor::ORBInitInfo::InvalidName *
-PortableInterceptor::ORBInitInfo::InvalidName::_downcast ( ::CORBA::Exception *_tao_excp)
+PortableInterceptor::ORBInitInfo::InvalidName::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<InvalidName *> (_tao_excp);
}
const PortableInterceptor::ORBInitInfo::InvalidName *
-PortableInterceptor::ORBInitInfo::InvalidName::_downcast ( ::CORBA::Exception const *_tao_excp)
+PortableInterceptor::ORBInitInfo::InvalidName::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const InvalidName *> (_tao_excp);
}
-::CORBA::Exception *PortableInterceptor::ORBInitInfo::InvalidName::_alloc (void)
+CORBA::Exception *PortableInterceptor::ORBInitInfo::InvalidName::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::PortableInterceptor::ORBInitInfo::InvalidName, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
PortableInterceptor::ORBInitInfo::InvalidName::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::PortableInterceptor::ORBInitInfo::InvalidName (*this),
@@ -320,7 +273,7 @@ void PortableInterceptor::ORBInitInfo::InvalidName::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void PortableInterceptor::ORBInitInfo::InvalidName::_tao_decode (
@@ -328,42 +281,32 @@ void PortableInterceptor::ORBInitInfo::InvalidName::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::InvalidName::_tao_type (void) const
+CORBA::TypeCode_ptr PortableInterceptor::ORBInitInfo::InvalidName::_tao_type (void) const
{
return ::PortableInterceptor::ORBInitInfo::_tc_InvalidName;
}
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_PortableInterceptor_ORBInitInfo_InvalidName = 0;
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ORBInitInfo_InvalidName (
- ::CORBA::tk_except,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo/InvalidName:1.0",
- "InvalidName",
- _tao_fields_PortableInterceptor_ORBInitInfo_InvalidName,
- 0);
-
-::CORBA::TypeCode_ptr const PortableInterceptor::ORBInitInfo::_tc_InvalidName =
- &_tao_tc_PortableInterceptor_ORBInitInfo_InvalidName;
-
PortableInterceptor::ORBInitInfo::ORBInitInfo (void)
{}
PortableInterceptor::ORBInitInfo::~ORBInitInfo (void)
{}
+void
+PortableInterceptor::ORBInitInfo::_tao_any_destructor (void *_tao_void_pointer)
+{
+ ORBInitInfo *_tao_tmp_pointer =
+ static_cast<ORBInitInfo *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::ORBInitInfo_ptr
PortableInterceptor::ORBInitInfo::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -374,7 +317,7 @@ PortableInterceptor::ORBInitInfo::_narrow (
PortableInterceptor::ORBInitInfo_ptr
PortableInterceptor::ORBInitInfo::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -390,7 +333,7 @@ PortableInterceptor::ORBInitInfo::_duplicate (ORBInitInfo_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
@@ -400,7 +343,7 @@ PortableInterceptor::ORBInitInfo::_tao_release (ORBInitInfo_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ORBInitInfo::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -434,174 +377,8 @@ const char* PortableInterceptor::ORBInitInfo::_interface_repository_id (void) co
return "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ORBInitInfo::marshal (TAO_OutputCDR &)
{
return false;
}
-
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ORBInitInfo (
- ::CORBA::tk_local_interface,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0",
- "ORBInitInfo");
-
-namespace PortableInterceptor
-{
- ::CORBA::TypeCode_ptr const _tc_ORBInitInfo =
- &_tao_tc_PortableInterceptor_ORBInitInfo;
-}
-
-
-
-// TAO_IDL - Generated from
-// be/be_visitor_interface/interface_cs.cpp:60
-
-// Traits specializations for PortableInterceptor::ORBInitInfo_3_1.
-
-PortableInterceptor::ORBInitInfo_3_1_ptr
-TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::duplicate (
- PortableInterceptor::ORBInitInfo_3_1_ptr p
- )
-{
- return PortableInterceptor::ORBInitInfo_3_1::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::release (
- PortableInterceptor::ORBInitInfo_3_1_ptr p
- )
-{
- CORBA::release (p);
-}
-
-PortableInterceptor::ORBInitInfo_3_1_ptr
-TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::nil (void)
-{
- return PortableInterceptor::ORBInitInfo_3_1::_nil ();
-}
-
-::CORBA::Boolean
-TAO::Objref_Traits<PortableInterceptor::ORBInitInfo_3_1>::marshal (
- const PortableInterceptor::ORBInitInfo_3_1_ptr p,
- TAO_OutputCDR & cdr
- )
-{
- return ::CORBA::Object::marshal (p, cdr);
-}
-
-PortableInterceptor::ORBInitInfo_3_1::ORBInitInfo_3_1 (void)
-{}
-
-PortableInterceptor::ORBInitInfo_3_1::~ORBInitInfo_3_1 (void)
-{}
-
-PortableInterceptor::ORBInitInfo_3_1_ptr
-PortableInterceptor::ORBInitInfo_3_1::_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return ORBInitInfo_3_1::_duplicate (
- dynamic_cast<ORBInitInfo_3_1_ptr> (_tao_objref)
- );
-}
-
-PortableInterceptor::ORBInitInfo_3_1_ptr
-PortableInterceptor::ORBInitInfo_3_1::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return ORBInitInfo_3_1::_duplicate (
- dynamic_cast<ORBInitInfo_3_1_ptr> (_tao_objref)
- );
-}
-
-PortableInterceptor::ORBInitInfo_3_1_ptr
-PortableInterceptor::ORBInitInfo_3_1::_duplicate (ORBInitInfo_3_1_ptr obj)
-{
- if (! CORBA::is_nil (obj))
- {
- obj->_add_ref ();
- }
-
- return obj;
-}
-
-void
-PortableInterceptor::ORBInitInfo_3_1::_tao_release (ORBInitInfo_3_1_ptr obj)
-{
- CORBA::release (obj);
-}
-
-::CORBA::Boolean
-PortableInterceptor::ORBInitInfo_3_1::_is_a (
- const char *value
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- if (
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo_3_1:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/LocalObject:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/Object:1.0"
- )
- )
- {
- return true; // success using local knowledge
- }
- else
- {
- return false;
- }
-}
-
-const char* PortableInterceptor::ORBInitInfo_3_1::_interface_repository_id (void) const
-{
- return "IDL:omg.org/PortableInterceptor/ORBInitInfo_3_1:1.0";
-}
-
-::CORBA::Boolean
-PortableInterceptor::ORBInitInfo_3_1::marshal (TAO_OutputCDR &)
-{
- return false;
-}
-
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ORBInitInfo_3_1 (
- ::CORBA::tk_local_interface,
- "IDL:omg.org/PortableInterceptor/ORBInitInfo_3_1:1.0",
- "ORBInitInfo_3_1");
-
-namespace PortableInterceptor
-{
- ::CORBA::TypeCode_ptr const _tc_ORBInitInfo_3_1 =
- &_tao_tc_PortableInterceptor_ORBInitInfo_3_1;
-}
-
-
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
diff --git a/TAO/tao/PI/ORBInitInfoC.h b/TAO/tao/PI/ORBInitInfoC.h
index 7ba6d29d08a..9b75a535ae2 100644
--- a/TAO/tao/PI/ORBInitInfoC.h
+++ b/TAO/tao/PI/ORBInitInfoC.h
@@ -26,7 +26,7 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be/be_codegen.cpp:164
+// be\be_codegen.cpp:153
#ifndef _TAO_IDL_ORIG_ORBINITINFOC_H_
#define _TAO_IDL_ORIG_ORBINITINFOC_H_
@@ -41,21 +41,14 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PI/pi_export.h"
-#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
+#include "tao/CodecFactory/IOP_Codec_includeC.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/Managed_Types.h"
-#include "tao/AnyTypeCode/StringSeqA.h"
-#include "tao/CodecFactory/IOP_Codec_includeA.h"
-#include "tao/AnyTypeCode/PI_ForwardA.h"
-#include "tao/AnyTypeCode/PolicyA.h"
#include "tao/Objref_VarOut_T.h"
-#include "tao/Versioned_Namespace.h"
#include "tao/StringSeqC.h"
-#include "tao/CodecFactory/IOP_Codec_includeC.h"
#include "tao/PI_ForwardC.h"
#include "tao/PolicyC.h"
@@ -64,31 +57,36 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
// TAO_IDL - Generated from
-// be/be_visitor_module/module_ch.cpp:49
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
-
+
// TAO_IDL - Generated from
- // be/be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__VAR_OUT_CH_
-
+
class ClientRequestInterceptor;
typedef ClientRequestInterceptor *ClientRequestInterceptor_ptr;
-
+
typedef
TAO_Objref_Var_T<
ClientRequestInterceptor
>
ClientRequestInterceptor_var;
-
+
typedef
TAO_Objref_Out_T<
ClientRequestInterceptor
@@ -96,22 +94,22 @@ namespace PortableInterceptor
ClientRequestInterceptor_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__VAR_OUT_CH_
-
+
class ServerRequestInterceptor;
typedef ServerRequestInterceptor *ServerRequestInterceptor_ptr;
-
+
typedef
TAO_Objref_Var_T<
ServerRequestInterceptor
>
ServerRequestInterceptor_var;
-
+
typedef
TAO_Objref_Out_T<
ServerRequestInterceptor
@@ -119,22 +117,22 @@ namespace PortableInterceptor
ServerRequestInterceptor_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR__VAR_OUT_CH_
-
+
class IORInterceptor;
typedef IORInterceptor *IORInterceptor_ptr;
-
+
typedef
TAO_Objref_Var_T<
IORInterceptor
>
IORInterceptor_var;
-
+
typedef
TAO_Objref_Out_T<
IORInterceptor
@@ -142,22 +140,22 @@ namespace PortableInterceptor
IORInterceptor_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_POLICYFACTORY__VAR_OUT_CH_
-
+
class PolicyFactory;
typedef PolicyFactory *PolicyFactory_ptr;
-
+
typedef
TAO_Objref_Var_T<
PolicyFactory
>
PolicyFactory_var;
-
+
typedef
TAO_Objref_Out_T<
PolicyFactory
@@ -165,22 +163,22 @@ namespace PortableInterceptor
PolicyFactory_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_ORBINITINFO__VAR_OUT_CH_
-
+
class ORBInitInfo;
typedef ORBInitInfo *ORBInitInfo_ptr;
-
+
typedef
TAO_Objref_Var_T<
ORBInitInfo
>
ORBInitInfo_var;
-
+
typedef
TAO_Objref_Out_T<
ORBInitInfo
@@ -188,79 +186,79 @@ namespace PortableInterceptor
ORBInitInfo_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_visitor_interface/interface_ch.cpp:54
+ // be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO_CH_)
#define _PORTABLEINTERCEPTOR_ORBINITINFO_CH_
-
+
class TAO_PI_Export ORBInitInfo
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef ORBInitInfo_ptr _ptr_type;
typedef ORBInitInfo_var _var_type;
-
+
// The static operations.
static ORBInitInfo_ptr _duplicate (ORBInitInfo_ptr obj);
-
+
static void _tao_release (ORBInitInfo_ptr obj);
-
+
static ORBInitInfo_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ORBInitInfo_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ORBInitInfo_ptr _nil (void)
{
return static_cast<ORBInitInfo_ptr> (0);
}
-
-
-
+
+ static void _tao_any_destructor (void *);
+
// TAO_IDL - Generated from
- // be/be_visitor_typedef/typedef_ch.cpp:413
-
+ // be\be_visitor_typedef/typedef_ch.cpp:413
+
typedef char * ObjectId;
- typedef ::CORBA::String_var ObjectId_var;
- typedef ::CORBA::String_out ObjectId_out;
-
+ typedef CORBA::String_var ObjectId_var;
+ typedef CORBA::String_out ObjectId_out;
+
// TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
static ::CORBA::TypeCode_ptr const _tc_ObjectId;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_exception/exception_ch.cpp:53
+ // be\be_visitor_exception/exception_ch.cpp:53
#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO_DUPLICATENAME_CH_)
#define _PORTABLEINTERCEPTOR_ORBINITINFO_DUPLICATENAME_CH_
-
- class TAO_PI_Export DuplicateName : public ::CORBA::UserException
+
+ class TAO_PI_Export DuplicateName : public CORBA::UserException
{
public:
-
+
TAO_String_Manager name;
DuplicateName (void);
DuplicateName (const DuplicateName &);
~DuplicateName (void);
DuplicateName &operator= (const DuplicateName &);
-
+
static void _tao_any_destructor (void *);
-
- static DuplicateName *_downcast ( ::CORBA::Exception *);
- static const DuplicateName *_downcast ( ::CORBA::Exception const *);
-
- static ::CORBA::Exception *_alloc (void);
-
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+
+ static DuplicateName *_downcast (CORBA::Exception *);
+ static const DuplicateName *_downcast (CORBA::Exception const *);
+
+ static CORBA::Exception *_alloc (void);
+
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -268,53 +266,56 @@ namespace PortableInterceptor
TAO_OutputCDR &
ACE_ENV_ARG_DECL
) const;
-
+
virtual void _tao_decode (
TAO_InputCDR &
ACE_ENV_ARG_DECL
);
-
+
// TAO_IDL - Generated from
- // be/be_visitor_exception/exception_ctor.cpp:66
-
+ // be\be_visitor_exception/exception_ctor.cpp:66
+
DuplicateName (
const char * _tao_name
);
-
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:129
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
-
+
// TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
static ::CORBA::TypeCode_ptr const _tc_DuplicateName;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_visitor_exception/exception_ch.cpp:53
+ // be\be_visitor_exception/exception_ch.cpp:53
#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO_INVALIDNAME_CH_)
#define _PORTABLEINTERCEPTOR_ORBINITINFO_INVALIDNAME_CH_
-
- class TAO_PI_Export InvalidName : public ::CORBA::UserException
+
+ class TAO_PI_Export InvalidName : public CORBA::UserException
{
public:
-
+
InvalidName (void);
InvalidName (const InvalidName &);
~InvalidName (void);
InvalidName &operator= (const InvalidName &);
-
+
static void _tao_any_destructor (void *);
-
- static InvalidName *_downcast ( ::CORBA::Exception *);
- static const InvalidName *_downcast ( ::CORBA::Exception const *);
-
- static ::CORBA::Exception *_alloc (void);
-
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+
+ static InvalidName *_downcast (CORBA::Exception *);
+ static const InvalidName *_downcast (CORBA::Exception const *);
+
+ static CORBA::Exception *_alloc (void);
+
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -322,312 +323,184 @@ namespace PortableInterceptor
TAO_OutputCDR &
ACE_ENV_ARG_DECL
) const;
-
+
virtual void _tao_decode (
TAO_InputCDR &
ACE_ENV_ARG_DECL
);
-
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:129
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
-
+
// TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
static ::CORBA::TypeCode_ptr const _tc_InvalidName;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual ::CORBA::StringSeq * arguments (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual char * orb_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual ::IOP::CodecFactory_ptr codec_factory (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual void register_initial_reference (
const char * id,
::CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ORBInitInfo::InvalidName
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Object_ptr resolve_initial_references (
+ // be\be_visitor_operation/operation_ch.cpp:46
+
+ virtual CORBA::Object_ptr resolve_initial_references (
const char * id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ORBInitInfo::InvalidName
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual void add_client_request_interceptor (
::PortableInterceptor::ClientRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ORBInitInfo::DuplicateName
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual void add_server_request_interceptor (
::PortableInterceptor::ServerRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ORBInitInfo::DuplicateName
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual void add_ior_interceptor (
::PortableInterceptor::IORInterceptor_ptr interceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ORBInitInfo::DuplicateName
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual ::PortableInterceptor::SlotId allocate_slot_id (
+ // be\be_visitor_operation/operation_ch.cpp:46
+
+ virtual PortableInterceptor::SlotId allocate_slot_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
+ // be\be_visitor_operation/operation_ch.cpp:46
+
virtual void register_policy_factory (
::CORBA::PolicyType type,
::PortableInterceptor::PolicyFactory_ptr policy_factory
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
- // be/be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+ // be\be_visitor_interface/interface_ch.cpp:210
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
ORBInitInfo (void);
-
+
virtual ~ORBInitInfo (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
ORBInitInfo (const ORBInitInfo &);
-
+
void operator= (const ORBInitInfo &);
};
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ORBInitInfo;
- // TAO_IDL - Generated from
- // be/be_interface.cpp:646
-
-#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO_3_1__VAR_OUT_CH_)
-#define _PORTABLEINTERCEPTOR_ORBINITINFO_3_1__VAR_OUT_CH_
-
- class ORBInitInfo_3_1;
- typedef ORBInitInfo_3_1 *ORBInitInfo_3_1_ptr;
-
- typedef
- TAO_Objref_Var_T<
- ORBInitInfo_3_1
- >
- ORBInitInfo_3_1_var;
-
- typedef
- TAO_Objref_Out_T<
- ORBInitInfo_3_1
- >
- ORBInitInfo_3_1_out;
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be/be_visitor_interface/interface_ch.cpp:54
-
-#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO_3_1_CH_)
-#define _PORTABLEINTERCEPTOR_ORBINITINFO_3_1_CH_
-
- class TAO_PI_Export ORBInitInfo_3_1
- : public virtual ::PortableInterceptor::ORBInitInfo
- {
- public:
- typedef ORBInitInfo_3_1_ptr _ptr_type;
- typedef ORBInitInfo_3_1_var _var_type;
-
- // The static operations.
- static ORBInitInfo_3_1_ptr _duplicate (ORBInitInfo_3_1_ptr obj);
-
- static void _tao_release (ORBInitInfo_3_1_ptr obj);
-
- static ORBInitInfo_3_1_ptr _narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static ORBInitInfo_3_1_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static ORBInitInfo_3_1_ptr _nil (void)
- {
- return static_cast<ORBInitInfo_3_1_ptr> (0);
- }
-
-
-
- // TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual void add_client_request_interceptor_with_policy (
- ::PortableInterceptor::ClientRequestInterceptor_ptr interceptor,
- const ::CORBA::PolicyList & policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::PortableInterceptor::ORBInitInfo::DuplicateName,
- ::CORBA::PolicyError
- )) = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual void add_server_request_interceptor_with_policy (
- ::PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const ::CORBA::PolicyList & policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::PortableInterceptor::ORBInitInfo::DuplicateName,
- ::CORBA::PolicyError
- )) = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual void add_ior_interceptor_with_policy (
- ::PortableInterceptor::IORInterceptor_ptr interceptor,
- const ::CORBA::PolicyList & policies
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::PortableInterceptor::ORBInitInfo::DuplicateName,
- ::CORBA::PolicyError
- )) = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
- const char *type_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
- protected:
- // Abstract or local interface only.
- ORBInitInfo_3_1 (void);
-
- virtual ~ORBInitInfo_3_1 (void);
-
- private:
- // Private and unimplemented for concrete interfaces.
- ORBInitInfo_3_1 (const ORBInitInfo_3_1 &);
-
- void operator= (const ORBInitInfo_3_1 &);
- };
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ORBInitInfo_3_1;
-
// TAO_IDL - Generated from
-// be/be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
// TAO_IDL - Generated from
-// be/be_visitor_traits.cpp:62
+// be\be_visitor_traits.cpp:61
// Traits specializations.
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_CLIENTREQUESTINTERCEPTOR__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ClientRequestInterceptor>
{
@@ -638,17 +511,17 @@ namespace TAO
::PortableInterceptor::ClientRequestInterceptor_ptr
);
static ::PortableInterceptor::ClientRequestInterceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::ClientRequestInterceptor_ptr p,
+ static CORBA::Boolean marshal (
+ ::PortableInterceptor::ClientRequestInterceptor_ptr p,
TAO_OutputCDR & cdr
);
};
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ServerRequestInterceptor>
{
@@ -659,17 +532,17 @@ namespace TAO
::PortableInterceptor::ServerRequestInterceptor_ptr
);
static ::PortableInterceptor::ServerRequestInterceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::ServerRequestInterceptor_ptr p,
+ static CORBA::Boolean marshal (
+ ::PortableInterceptor::ServerRequestInterceptor_ptr p,
TAO_OutputCDR & cdr
);
};
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_IORINTERCEPTOR__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::IORInterceptor>
{
@@ -680,17 +553,17 @@ namespace TAO
::PortableInterceptor::IORInterceptor_ptr
);
static ::PortableInterceptor::IORInterceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::IORInterceptor_ptr p,
+ static CORBA::Boolean marshal (
+ ::PortableInterceptor::IORInterceptor_ptr p,
TAO_OutputCDR & cdr
);
};
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_)
-#define _PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::PolicyFactory>
{
@@ -701,17 +574,17 @@ namespace TAO
::PortableInterceptor::PolicyFactory_ptr
);
static ::PortableInterceptor::PolicyFactory_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::PolicyFactory_ptr p,
+ static CORBA::Boolean marshal (
+ ::PortableInterceptor::PolicyFactory_ptr p,
TAO_OutputCDR & cdr
);
};
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ORBInitInfo>
{
@@ -722,40 +595,48 @@ namespace TAO
::PortableInterceptor::ORBInitInfo_ptr
);
static ::PortableInterceptor::ORBInitInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::ORBInitInfo_ptr p,
+ static CORBA::Boolean marshal (
+ ::PortableInterceptor::ORBInitInfo_ptr p,
TAO_OutputCDR & cdr
);
};
#endif /* end #if !defined */
+}
-#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO_3_1__TRAITS_)
-#define _PORTABLEINTERCEPTOR_ORBINITINFO_3_1__TRAITS_
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_ch.cpp:52
- template<>
- struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ORBInitInfo_3_1>
- {
- static ::PortableInterceptor::ORBInitInfo_3_1_ptr duplicate (
- ::PortableInterceptor::ORBInitInfo_3_1_ptr
- );
- static void release (
- ::PortableInterceptor::ORBInitInfo_3_1_ptr
- );
- static ::PortableInterceptor::ORBInitInfo_3_1_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::ORBInitInfo_3_1_ptr p,
- TAO_OutputCDR & cdr
- );
- };
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ORBInitInfo_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ORBInitInfo_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ORBInitInfo_ptr &);
-#endif /* end #if !defined */
-}
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, const PortableInterceptor::ORBInitInfo::DuplicateName &); // copying version
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ORBInitInfo::DuplicateName*); // noncopying version
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ORBInitInfo::DuplicateName *&); // deprecated
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableInterceptor::ORBInitInfo::DuplicateName *&);
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, const PortableInterceptor::ORBInitInfo::InvalidName &); // copying version
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ORBInitInfo::InvalidName*); // noncopying version
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ORBInitInfo::InvalidName *&); // deprecated
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableInterceptor::ORBInitInfo::InvalidName *&);
// TAO_IDL - Generated from
-// be/be_codegen.cpp:1101
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/ORBInitializerA.cpp b/TAO/tao/PI/ORBInitializerA.cpp
index 14a39962574..8c9660f49c3 100644
--- a/TAO/tao/PI/ORBInitializerA.cpp
+++ b/TAO/tao/PI/ORBInitializerA.cpp
@@ -25,17 +25,15 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/ORBInitializerA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/Any.h"
-#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ORBInitializerC.h"
+#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -43,14 +41,89 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_ORBInitializer (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/ORBInitializer:1.0",
"ORBInitializer");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_ORBInitializer =
&_tao_tc_PortableInterceptor_ORBInitializer;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ORBInitializer>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ORBInitializer>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ORBInitializer>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitializer_ptr _tao_elem
+ )
+{
+ PortableInterceptor::ORBInitializer_ptr _tao_objptr =
+ PortableInterceptor::ORBInitializer::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitializer_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::ORBInitializer>::insert (
+ _tao_any,
+ PortableInterceptor::ORBInitializer::_tao_any_destructor,
+ PortableInterceptor::_tc_ORBInitializer,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ORBInitializer_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::ORBInitializer>::extract (
+ _tao_any,
+ PortableInterceptor::ORBInitializer::_tao_any_destructor,
+ PortableInterceptor::_tc_ORBInitializer,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/ORBInitializerA.h b/TAO/tao/PI/ORBInitializerA.h
deleted file mode 100644
index fa6f6273d1e..00000000000
--- a/TAO/tao/PI/ORBInitializerA.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_ORBINITIALIZERA_H_
-#define _TAO_IDL_ORBINITIALIZERA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/ORBInitializerC.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ORBInitializer;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/ORBInitializerC.cpp b/TAO/tao/PI/ORBInitializerC.cpp
index 28476830769..5703c44af1b 100644
--- a/TAO/tao/PI/ORBInitializerC.cpp
+++ b/TAO/tao/PI/ORBInitializerC.cpp
@@ -26,18 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI/ORBInitializerC.h"
+#include "ORBInitializerC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::ORBInitializer>::nil (void)
return PortableInterceptor::ORBInitializer::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::ORBInitializer>::marshal (
PortableInterceptor::ORBInitializer_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::ORBInitializer::ORBInitializer (void)
@@ -86,9 +88,17 @@ PortableInterceptor::ORBInitializer::ORBInitializer (void)
PortableInterceptor::ORBInitializer::~ORBInitializer (void)
{}
+void
+PortableInterceptor::ORBInitializer::_tao_any_destructor (void *_tao_void_pointer)
+{
+ ORBInitializer *_tao_tmp_pointer =
+ static_cast<ORBInitializer *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::ORBInitializer_ptr
PortableInterceptor::ORBInitializer::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -99,7 +109,7 @@ PortableInterceptor::ORBInitializer::_narrow (
PortableInterceptor::ORBInitializer_ptr
PortableInterceptor::ORBInitializer::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -125,7 +135,7 @@ PortableInterceptor::ORBInitializer::_tao_release (ORBInitializer_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ORBInitializer::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -159,10 +169,8 @@ const char* PortableInterceptor::ORBInitializer::_interface_repository_id (void)
return "IDL:omg.org/PortableInterceptor/ORBInitializer:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ORBInitializer::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/ORBInitializerC.h b/TAO/tao/PI/ORBInitializerC.h
index 95080c13aca..dcea0ec082f 100644
--- a/TAO/tao/PI/ORBInitializerC.h
+++ b/TAO/tao/PI/ORBInitializerC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_ORBINITIALIZERC_H_
-#define _TAO_IDL_ORBINITIALIZERC_H_
+#ifndef _TAO_IDL_ORIG_ORBINITIALIZERC_H_
+#define _TAO_IDL_ORIG_ORBINITIALIZERC_H_
#include /**/ "ace/pre.h"
@@ -52,16 +52,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_ORBINITINFO__VAR_OUT_CH_
@@ -84,7 +91,7 @@ namespace PortableInterceptor
#endif /* end #if !defined */
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_ORBINITIALIZER__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_ORBINITIALIZER__VAR_OUT_CH_
@@ -113,7 +120,7 @@ namespace PortableInterceptor
#define _PORTABLEINTERCEPTOR_ORBINITIALIZER_CH_
class TAO_PI_Export ORBInitializer
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef ORBInitializer_ptr _ptr_type;
@@ -125,12 +132,12 @@ namespace PortableInterceptor
static void _tao_release (ORBInitializer_ptr obj);
static ORBInitializer_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static ORBInitializer_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -139,7 +146,7 @@ namespace PortableInterceptor
return static_cast<ORBInitializer_ptr> (0);
}
-
+ static void _tao_any_destructor (void *);
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
@@ -149,7 +156,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
@@ -160,19 +167,19 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
@@ -188,9 +195,14 @@ namespace PortableInterceptor
};
#endif /* end #if !defined */
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ORBInitializer;
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -201,8 +213,8 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_ORBINITINFO__TRAITS_CH_
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ORBInitInfo>
@@ -214,7 +226,7 @@ namespace TAO
::PortableInterceptor::ORBInitInfo_ptr
);
static ::PortableInterceptor::ORBInitInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ORBInitInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -222,8 +234,8 @@ namespace TAO
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_ORBINITIALIZER__TRAITS_)
-#define _PORTABLEINTERCEPTOR_ORBINITIALIZER__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_ORBINITIALIZER__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_ORBINITIALIZER__TRAITS_CH_
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ORBInitializer>
@@ -235,7 +247,7 @@ namespace TAO
::PortableInterceptor::ORBInitializer_ptr
);
static ::PortableInterceptor::ORBInitializer_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ORBInitializer_ptr p,
TAO_OutputCDR & cdr
);
@@ -245,9 +257,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ORBInitializer_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ORBInitializer_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ORBInitializer_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp b/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp
index 919abb2706e..55efc3a28a9 100644
--- a/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp
+++ b/TAO/tao/PI/ORBInitializer_Registry_Impl.cpp
@@ -1,6 +1,6 @@
-#include "tao/PI/ORBInitializer_Registry_Impl.h"
-#include "tao/PI/ORBInitInfo.h"
-#include "tao/PI/PICurrent.h"
+#include "ORBInitializer_Registry_Impl.h"
+#include "ORBInitInfo.h"
+#include "PICurrent.h"
#include "tao/ORB_Core.h"
#include "tao/ORB_Constants.h"
@@ -14,9 +14,6 @@ ACE_RCSID (PI,
ORBInitializer_Registry,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::ORBInitializer_Registry::ORBInitializer_Registry (void)
: lock_ (),
initializers_ ()
@@ -161,15 +158,6 @@ TAO::ORBInitializer_Registry::post_init (
#if TAO_HAS_INTERCEPTORS == 1
CORBA::Object_ptr picurrent_ptr = orb_core->pi_current ();
- PortableInterceptor::SlotId slot_count = orb_init_info_->slot_count ();
-
- if (CORBA::is_nil (picurrent_ptr) && slot_count != 0)
- {
- // Force instantiation of the PICurrent object. If we do not do it
- // now, the slot count will be lost.
- CORBA::Object_var tmp = orb_core->resolve_picurrent ();
- picurrent_ptr = orb_core->pi_current ();
- }
if (!CORBA::is_nil (picurrent_ptr))
{
@@ -177,7 +165,7 @@ TAO::ORBInitializer_Registry::post_init (
if (pi)
{
- pi->initialize (slot_count ACE_ENV_ARG_PARAMETER);
+ pi->initialize (orb_init_info_->slot_count () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
}
@@ -190,8 +178,6 @@ TAO::ORBInitializer_Registry::post_init (
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (ORBInitializer_Registry,
ACE_TEXT ("ORBInitializer_Registry"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/PI/ORBInitializer_Registry_Impl.h b/TAO/tao/PI/ORBInitializer_Registry_Impl.h
index edb5a2bfc26..66464bf77d8 100644
--- a/TAO/tao/PI/ORBInitializer_Registry_Impl.h
+++ b/TAO/tao/PI/ORBInitializer_Registry_Impl.h
@@ -15,13 +15,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PI/PI.h"
+#include "PI.h"
#include "tao/CORBA_methods.h"
#include "tao/Objref_VarOut_T.h"
@@ -31,8 +31,6 @@
#include "ace/Service_Config.h"
#include "ace/Recursive_Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -41,7 +39,7 @@ namespace TAO
* @brief Global list that contains all portable interceptor ORB
* initializers.
*/
- class ORBInitializer_Registry
+ class TAO_PI_Export ORBInitializer_Registry
: public ORBInitializer_Registry_Adapter
{
public:
@@ -89,8 +87,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (ORBInitializer_Registry)
ACE_FACTORY_DECLARE (TAO_PI, ORBInitializer_Registry)
diff --git a/TAO/tao/PI/PI.cpp b/TAO/tao/PI/PI.cpp
index 3e18928cf8c..3088ad074b6 100644
--- a/TAO/tao/PI/PI.cpp
+++ b/TAO/tao/PI/PI.cpp
@@ -1,18 +1,13 @@
-#include "tao/PI/PI.h"
-#include "tao/PI/ORBInitializer_Registry_Impl.h"
-#include "tao/PI/PolicyFactory_Loader.h"
-#include "tao/PI/ClientRequestInterceptor_Factory_Impl.h"
-#include "tao/PI/PICurrent_Loader.h"
-#include "tao/PI/PI_ORBInitializer.h"
-#include "tao/ORBInitializer_Registry.h"
-#include "tao/ORB_Constants.h"
+#include "PI.h"
+#include "ORBInitializer_Registry_Impl.h"
+#include "PolicyFactory_Loader.h"
+#include "ClientRequestInterceptor_Factory_Impl.h"
+#include "PICurrent_Loader.h"
ACE_RCSID (PI,
PI,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_PI_Init::Initializer (void)
{
@@ -22,46 +17,6 @@ TAO_PI_Init::Initializer (void)
ACE_Service_Config::process_directive (ace_svc_desc_TAO_PICurrent_Loader);
#endif /* TAO_HAS_INTERCEPTORS == 1 */
- int status = ACE_Service_Config::process_directive (
- ace_svc_desc_ORBInitializer_Registry);
-#if TAO_HAS_INTERCEPTORS == 1
- PortableInterceptor::ORBInitializer_ptr temp_orb_initializer =
- PortableInterceptor::ORBInitializer::_nil ();
-
- PortableInterceptor::ORBInitializer_var orb_initializer;
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- /// Register the PI ORBInitializer.
-
- ACE_NEW_THROW_EX (temp_orb_initializer,
- TAO_PI_ORBInitializer,
- CORBA::NO_MEMORY (
- CORBA::SystemException::_tao_minor_code (
- TAO::VMCID,
- ENOMEM),
- CORBA::COMPLETED_NO));
- ACE_TRY_CHECK;
-
- orb_initializer = temp_orb_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- if (TAO_debug_level > 0)
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "(%P | %t) Caught exception:");
- }
- return -1;
- }
- ACE_ENDTRY;
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
- return status;
+ return ACE_Service_Config::process_directive (ace_svc_desc_ORBInitializer_Registry);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PI.h b/TAO/tao/PI/PI.h
index da45315f182..d1849e3c781 100644
--- a/TAO/tao/PI/PI.h
+++ b/TAO/tao/PI/PI.h
@@ -15,16 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PI_Init
*
@@ -41,18 +37,16 @@ static int
TAO_Requires_PI_Initializer =
TAO_PI_Init::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#define TAO_PI_SAFE_INCLUDE
-#include "tao/PI/ORBInitInfoC.h"
-#include "tao/PI/PolicyFactoryC.h"
-#include "tao/PI/ORBInitializerC.h"
-#include "tao/PI/InterceptorC.h"
-#include "tao/PI/ClientRequestInfoC.h"
-#include "tao/PI/ClientRequestInterceptorC.h"
-#include "tao/PI/PICurrentC.h"
+#include "ORBInitInfoC.h"
+#include "PolicyFactoryC.h"
+#include "ORBInitializerC.h"
+#include "InterceptorC.h"
+#include "ClientRequestInfoC.h"
+#include "ClientRequestInterceptorC.h"
+#include "PICurrentC.h"
#undef TAO_PI_SAFE_INCLUDE
#endif /* TAO_PI_H */
diff --git a/TAO/tao/PI/PICurrent.cpp b/TAO/tao/PI/PICurrent.cpp
index 1212598ae47..dc3bf53884a 100644
--- a/TAO/tao/PI/PICurrent.cpp
+++ b/TAO/tao/PI/PICurrent.cpp
@@ -1,4 +1,4 @@
-#include "tao/PI/PICurrent.h"
+#include "PICurrent.h"
#if TAO_HAS_INTERCEPTORS == 1
@@ -8,17 +8,16 @@ ACE_RCSID (tao,
#if !defined (__ACE_INLINE__)
-# include "tao/PI/PICurrent.inl"
+# include "PICurrent.inl"
#endif /* __ACE_INLINE__ */
-#include "tao/PI/PICurrent_Impl.h"
+#include "PICurrent_Impl.h"
#include "tao/ORB_Core.h"
#include "tao/ORB_Core_TSS_Resources.h"
#include "tao/TAO_Server_Request.h"
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::PICurrent::PICurrent (TAO_ORB_Core &orb_core)
: orb_core_ (orb_core),
@@ -121,6 +120,5 @@ TAO::PICurrent::initialize (PortableInterceptor::SlotId sc
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/PICurrent.h b/TAO/tao/PI/PICurrent.h
index 1425f5eec74..3c52b628bae 100644
--- a/TAO/tao/PI/PICurrent.h
+++ b/TAO/tao/PI/PICurrent.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,7 +25,7 @@
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/PICurrentC.h"
+#include "PICurrentC.h"
#include "tao/LocalObject.h"
#include "ace/Array_Base.h"
@@ -35,8 +35,6 @@
# pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_ORB_Core;
@@ -136,10 +134,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PI/PICurrent.inl"
+# include "PICurrent.inl"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PI/PICurrent.inl b/TAO/tao/PI/PICurrent.inl
index aca42f2786c..7fd7fc77b1b 100644
--- a/TAO/tao/PI/PICurrent.inl
+++ b/TAO/tao/PI/PICurrent.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE PortableInterceptor::SlotId
TAO::PICurrent::slot_count (void) const
@@ -10,4 +9,3 @@ TAO::PICurrent::slot_count (void) const
return this->slot_count_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PICurrent.pidl b/TAO/tao/PI/PICurrent.pidl
index 0ce4b8a7014..f60324effc1 100644
--- a/TAO/tao/PI/PICurrent.pidl
+++ b/TAO/tao/PI/PICurrent.pidl
@@ -20,9 +20,9 @@
#ifndef _PI_CURRENT_IDL_
#define _PI_CURRENT_IDL_
-#include "tao/PI/InvalidSlot.pidl"
-#include "tao/PI_Forward.pidl"
-#include "tao/Current.pidl"
+#include <InvalidSlot.pidl>
+#include <PI_Forward.pidl>
+#include <Current.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PI/PICurrentA.cpp b/TAO/tao/PI/PICurrentA.cpp
index bd234b398fd..27411a28fcb 100644
--- a/TAO/tao/PI/PICurrentA.cpp
+++ b/TAO/tao/PI/PICurrentA.cpp
@@ -32,11 +32,9 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-#include "tao/PI/PICurrentA.h"
+#include "PICurrentA.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -129,5 +127,3 @@ operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PICurrentA.h b/TAO/tao/PI/PICurrentA.h
index f9096ff2667..092901e4ad4 100644
--- a/TAO/tao/PI/PICurrentA.h
+++ b/TAO/tao/PI/PICurrentA.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#include "tao/PI/PICurrentC.h"
#if defined (TAO_EXPORT_MACRO)
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
// TAO_IDL - Generated from
@@ -84,8 +82,6 @@ TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableIntercepto
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI/PICurrentC.cpp b/TAO/tao/PI/PICurrentC.cpp
index 79c119255e9..197b87f3c07 100644
--- a/TAO/tao/PI/PICurrentC.cpp
+++ b/TAO/tao/PI/PICurrentC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/PI/PICurrentC.h"
+#include "PICurrentC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -180,5 +178,3 @@ PortableInterceptor::Current::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PICurrentC.h b/TAO/tao/PI/PICurrentC.h
index 92e2360bbbb..242cd2d0ca5 100644
--- a/TAO/tao/PI/PICurrentC.h
+++ b/TAO/tao/PI/PICurrentC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -68,8 +68,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
@@ -219,8 +217,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI/PICurrent_Copy_Callback.cpp b/TAO/tao/PI/PICurrent_Copy_Callback.cpp
index 9332b9c986a..7ad09ada95b 100644
--- a/TAO/tao/PI/PICurrent_Copy_Callback.cpp
+++ b/TAO/tao/PI/PICurrent_Copy_Callback.cpp
@@ -1,16 +1,14 @@
-#include "tao/PI/PICurrent_Copy_Callback.h"
+#include "PICurrent_Copy_Callback.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/PICurrent_Impl.h"
+#include "PICurrent_Impl.h"
ACE_RCSID (tao,
PICurrent_Copy_Callback,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::PICurrent_Copy_Callback::PICurrent_Copy_Callback (void)
: src_ (0),
dst_ (0)
@@ -26,32 +24,28 @@ TAO::PICurrent_Copy_Callback::~PICurrent_Copy_Callback (void)
this->src_->copy_callback (0);
}
-void
+int
TAO::PICurrent_Copy_Callback::execute (void)
{
if (this->src_ != 0 && this->dst_ != 0
&& this->src_ != this->dst_)
{
- // Only do a copy when the destination still refers to the table
- // of the src
- if (this->dst_->lc_slot_table () != 0)
- {
- const PICurrent_Impl::Table & s = this->src_->current_slot_table ();
+ const PICurrent_Impl::Table & s = this->src_->current_slot_table ();
- // Disable use of the logically copied slot table before
- // performing the deep copy.
- this->dst_->lc_slot_table (0);
+ // Disable use of the logically copied slot table before
+ // performing the deep copy.
+ this->dst_->lc_slot_table (0);
- PICurrent_Impl::Table & d = this->dst_->slot_table ();
+ PICurrent_Impl::Table & d = this->dst_->slot_table ();
- d = s;
- }
+ d = s;
// Prevent subsequent deep copies, effectively disabling this
// callback.
this->src_->copy_callback (0);
- this->src_->destruction_callback (0);
}
+
+ return 0;
}
void
@@ -62,6 +56,4 @@ TAO::PICurrent_Copy_Callback::src_and_dst (PICurrent_Impl * src,
this->dst_ = dst;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/PICurrent_Copy_Callback.h b/TAO/tao/PI/PICurrent_Copy_Callback.h
index 76f550e652f..5b5f17d4505 100644
--- a/TAO/tao/PI/PICurrent_Copy_Callback.h
+++ b/TAO/tao/PI/PICurrent_Copy_Callback.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,9 +25,6 @@
#if TAO_HAS_INTERCEPTORS == 1
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class PICurrent_Impl;
@@ -52,15 +49,12 @@ namespace TAO
~PICurrent_Copy_Callback (void);
/// Perform the copy.
- void execute (void);
+ int execute (void);
/// Set the source and destination PICurrent_Impl objects.
void src_and_dst (PICurrent_Impl * src, PICurrent_Impl * dst);
private:
- /// Disallow copying and assignment.
- PICurrent_Copy_Callback (const PICurrent_Copy_Callback &);
- PICurrent_Copy_Callback &operator= (const PICurrent_Copy_Callback &);
/// Source PICurrent from which copies will be made.
PICurrent_Impl * src_;
@@ -71,8 +65,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/PICurrent_Impl.cpp b/TAO/tao/PI/PICurrent_Impl.cpp
index 4aa071e258c..ecbccc90274 100644
--- a/TAO/tao/PI/PICurrent_Impl.cpp
+++ b/TAO/tao/PI/PICurrent_Impl.cpp
@@ -1,4 +1,4 @@
-#include "tao/PI/PICurrent_Impl.h"
+#include "PICurrent_Impl.h"
#if TAO_HAS_INTERCEPTORS == 1
@@ -8,17 +8,14 @@ ACE_RCSID (tao,
#if !defined (__ACE_INLINE__)
-# include "tao/PI/PICurrent_Impl.inl"
+# include "PICurrent_Impl.inl"
#endif /* __ACE_INLINE__ */
-#include "tao/PI/PICurrent_Copy_Callback.h"
+#include "PICurrent_Copy_Callback.h"
#include "tao/TAO_Server_Request.h"
#include "tao/SystemException.h"
#include "ace/Log_Msg.h"
-#include "tao/debug.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::PICurrent_Impl::PICurrent_Impl (void)
: slot_table_ (),
@@ -47,16 +44,9 @@ TAO::PICurrent_Impl::get_slot (PortableInterceptor::SlotId identifier
// No need to check validity of SlotId. It is validated before this
// method is invoked.
- // Get the slot table that is currently active
PICurrent_Impl::Table & table = this->current_slot_table ();
- // The active slot table should never be a lazy copy of itself!
- if (this->lc_slot_table_ == &this->slot_table_)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("TAO (%P|%t) Lazy copy of self detected at %N,%l")));
- ACE_THROW (CORBA::INTERNAL ());
- }
+ ACE_ASSERT (this->lc_slot_table_ != &this->slot_table_);
CORBA::Any * any = 0;
@@ -100,20 +90,10 @@ TAO::PICurrent_Impl::set_slot (PortableInterceptor::SlotId identifier,
// method is invoked.
// Perform deep copy of the logically copied slot table, if
- // necessary, before modifying our own slot table. This is a setup
- // where another PICurrent refers to our slot table, so we force the
- // the other PICurrent does copy our table before making changes to
- // our table.
- if (this->copy_callback_ != 0)
- this->copy_callback_->execute ();
-
- // If we have a logical copied slot table we refer to, just make a
- // copy of that table first before making changes to our table.
- if (this->lc_slot_table_ != 0)
- {
- this->slot_table_ = *this->lc_slot_table_;
- this->lc_slot_table_ = 0;
- }
+ // necessary, before modifying our own slot table.
+ if (this->copy_callback_ != 0
+ && this->copy_callback_->execute () != 0)
+ ACE_THROW (CORBA::INTERNAL ());
// If the slot table array isn't large enough, then increase its
// size. We're guaranteed not to exceed the number of allocated
@@ -129,15 +109,7 @@ void
TAO::PICurrent_Impl::execute_destruction_callback (
TAO::PICurrent_Impl::Table * old_lc_slot_table)
{
- // we are being asked to lc another table, if this
- // is null, make sure we take a physical copy of the
- // existing table we had lc before it disappears.
- if ((0 == old_lc_slot_table) && (0 != this->lc_slot_table_))
- this->slot_table_ = *this->lc_slot_table_;
-
this->lc_slot_table_ = old_lc_slot_table;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/PICurrent_Impl.h b/TAO/tao/PI/PICurrent_Impl.h
index b7d624a4c9b..d374f174e4b 100644
--- a/TAO/tao/PI/PICurrent_Impl.h
+++ b/TAO/tao/PI/PICurrent_Impl.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,13 +25,11 @@
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/PICurrentC.h"
+#include "PICurrentC.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/Array_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_ORB_Core;
@@ -85,7 +83,6 @@ namespace TAO
/// notified of this object's destruction.
void destruction_callback (PICurrent_Impl *p);
- /// Execute the destruction callback object
void execute_destruction_callback (Table *old_lc_slot_table);
/// Return a reference to the underlying slot table.
@@ -100,8 +97,7 @@ namespace TAO
Table & current_slot_table (void);
/// Logically (shallow) copy the given slot table.
- // returns true if copied, false if it would be self-referencing.
- bool lc_slot_table (PICurrent_Impl *p);
+ void lc_slot_table (PICurrent_Impl *p);
/// Return pointer to the logically copied slot table.
/**
@@ -113,7 +109,7 @@ namespace TAO
private:
/// Prevent copying through the copy constructor and the assignment
- /// operator.
+ //operator.
//@{
PICurrent_Impl (const PICurrent_Impl &);
void operator= (const PICurrent_Impl &);
@@ -129,25 +125,18 @@ namespace TAO
Table *lc_slot_table_;
/// Callback object responsible for performing deep copies of a
- /// PICurrent's slot table. This is the PICurrent that has our slot_table_
- /// referred as lc_slot_table_. This copy is there to make sure that when
- /// we want to modify our table, that we can first copy our table to
- /// the PICurrent that refers to our table so that it has an unique copy
- /// of the data.
+ /// PICurrent's slot table.
PICurrent_Copy_Callback *copy_callback_;
/// PICurrent_Impl object that will be notified of this object's
- /// destruction. This is the PICurrent that has our slot_table_ as
- /// lc_slot_table_.
+ /// destruction.
PICurrent_Impl *destruction_callback_;
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PI/PICurrent_Impl.inl"
+# include "PICurrent_Impl.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/PICurrent_Impl.inl b/TAO/tao/PI/PICurrent_Impl.inl
index 78c5e33cac6..8b708ec7f5a 100644
--- a/TAO/tao/PI/PICurrent_Impl.inl
+++ b/TAO/tao/PI/PICurrent_Impl.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO::PICurrent_Impl::copy_callback (TAO::PICurrent_Copy_Callback *cb)
{
@@ -29,36 +27,25 @@ TAO::PICurrent_Impl::current_slot_table (void)
this->lc_slot_table_ == 0 ? this->slot_table_ : *this->lc_slot_table_;
}
-ACE_INLINE bool
+ACE_INLINE void
TAO::PICurrent_Impl::lc_slot_table (TAO::PICurrent_Impl *p)
{
- // Being told to lazy copy some other table?
if (p != 0)
{
- // Which actual table are we supposed to lazy copy?
Table * t = &p->current_slot_table ();
- // Only if we have not already lazy copied this table
if (t != this->lc_slot_table_)
{
- // Whould this be a lazy copy of ourselves?
- if (t == &this->slot_table_)
- this->lc_slot_table_ = 0; // Already ourself!
- else
- {
- this->lc_slot_table_ = t;
+ this->lc_slot_table_ = t;
- // Ensure remote table will tell us if it is
- // going to change or destroy itself.
- if (this != p)
- p->destruction_callback (this);
- }
+ if (this != p)
+ p->destruction_callback (this);
}
+ else
+ this->lc_slot_table_ = 0;
}
else
this->lc_slot_table_ = 0;
-
- return (0 != this->lc_slot_table_);
}
ACE_INLINE TAO::PICurrent_Impl::Table *
@@ -66,5 +53,3 @@ TAO::PICurrent_Impl::lc_slot_table (void) const
{
return this->lc_slot_table_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PICurrent_Loader.cpp b/TAO/tao/PI/PICurrent_Loader.cpp
index 639ad627d58..1423cd7c663 100644
--- a/TAO/tao/PI/PICurrent_Loader.cpp
+++ b/TAO/tao/PI/PICurrent_Loader.cpp
@@ -11,11 +11,11 @@
*/
// =================================================================
-#include "tao/PI/PICurrent_Loader.h"
+#include "PICurrent_Loader.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI/PICurrent.h"
+#include "PICurrent.h"
#include "tao/ORB.h"
#include "tao/ORB_Core.h"
@@ -25,8 +25,6 @@ ACE_RCSID (PI,
PICurrent_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Object_ptr
TAO_PICurrent_Loader::create_object (
CORBA::ORB_ptr orb,
@@ -42,8 +40,6 @@ TAO_PICurrent_Loader::create_object (
return obj;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_PICurrent_Loader,
ACE_TEXT ("PICurrent_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/PI/PICurrent_Loader.h b/TAO/tao/PI/PICurrent_Loader.h
index a1b4e48cfa9..931d2216082 100644
--- a/TAO/tao/PI/PICurrent_Loader.h
+++ b/TAO/tao/PI/PICurrent_Loader.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,8 +31,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PI_Export TAO_PICurrent_Loader
: public TAO_Object_Loader
{
@@ -45,8 +43,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_PICurrent_Loader)
ACE_FACTORY_DECLARE (TAO_PI, TAO_PICurrent_Loader)
diff --git a/TAO/tao/PI/PIForwardRequestA.cpp b/TAO/tao/PI/PIForwardRequestA.cpp
index 4553d880091..b2eab47619a 100644
--- a/TAO/tao/PI/PIForwardRequestA.cpp
+++ b/TAO/tao/PI/PIForwardRequestA.cpp
@@ -25,43 +25,37 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/PIForwardRequestA.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
#include "tao/AnyTypeCode/Any.h"
-#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PIForwardRequestC.h"
+#include "tao/CDR.h"
-// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr PortableInterceptor::ForwardRequest::_tao_type (void) const
-{
- return ::PortableInterceptor::_tc_ForwardRequest;
-}
// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
+// be\be_visitor_typecode/struct_typecode.cpp:87
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const _tao_fields_PortableInterceptor_ForwardRequest[] =
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_PortableInterceptor_ForwardRequest[] =
{
{ "forward", &CORBA::_tc_Object }
-
+
};
static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_ForwardRequest (
- ::CORBA::tk_except,
+ CORBA::tk_except,
"IDL:omg.org/PortableInterceptor/ForwardRequest:1.0",
"ForwardRequest",
_tao_fields_PortableInterceptor_ForwardRequest,
1);
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_ForwardRequest =
@@ -70,24 +64,24 @@ namespace PortableInterceptor
-// TAO_IDL - Generated from
+// TAO_IDL - Generated from
// be\be_visitor_exception/any_op_cs.cpp:50
namespace TAO
{
template<>
- ::CORBA::Boolean
+ CORBA::Boolean
Any_Dual_Impl_T<PortableInterceptor::ForwardRequest>::demarshal_value (
TAO_InputCDR & cdr
)
{
- ::CORBA::String_var id;
-
+ CORBA::String_var id;
+
if (!(cdr >> id.out ()))
{
return false;
}
-
+
ACE_TRY_NEW_ENV
{
this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER);
@@ -98,14 +92,14 @@ namespace TAO
return false;
}
ACE_ENDTRY;
-
+
return true;
}
}
// Copying insertion.
void operator<<= (
- ::CORBA::Any &_tao_any,
+ CORBA::Any &_tao_any,
const PortableInterceptor::ForwardRequest &_tao_elem
)
{
@@ -119,7 +113,7 @@ void operator<<= (
// Non-copying insertion.
void operator<<= (
- ::CORBA::Any &_tao_any,
+ CORBA::Any &_tao_any,
PortableInterceptor::ForwardRequest *_tao_elem
)
{
@@ -132,8 +126,8 @@ void operator<<= (
}
// Extraction to non-const pointer (deprecated).
-::CORBA::Boolean operator>>= (
- const ::CORBA::Any &_tao_any,
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
PortableInterceptor::ForwardRequest *&_tao_elem
)
{
@@ -144,8 +138,8 @@ void operator<<= (
}
// Extraction to const pointer.
-::CORBA::Boolean operator>>= (
- const ::CORBA::Any &_tao_any,
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
const PortableInterceptor::ForwardRequest *&_tao_elem
)
{
@@ -157,5 +151,3 @@ void operator<<= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PIForwardRequestA.h b/TAO/tao/PI/PIForwardRequestA.h
deleted file mode 100644
index 56ccfdaa1ba..00000000000
--- a/TAO/tao/PI/PIForwardRequestA.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_PIFORWARDREQUESTA_H_
-#define _TAO_IDL_PIFORWARDREQUESTA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/PIForwardRequestC.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ForwardRequest;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-// TAO_IDL - Generated from
-// be\be_visitor_exception/any_op_ch.cpp:53
-
-TAO_PI_Export void operator<<= (::CORBA::Any &, const PortableInterceptor::ForwardRequest &); // copying version
-TAO_PI_Export void operator<<= (::CORBA::Any &, PortableInterceptor::ForwardRequest*); // noncopying version
-TAO_PI_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, PortableInterceptor::ForwardRequest *&); // deprecated
-TAO_PI_Export ::CORBA::Boolean operator>>= (const ::CORBA::Any &, const PortableInterceptor::ForwardRequest *&);
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/PIForwardRequestC.cpp b/TAO/tao/PI/PIForwardRequestC.cpp
index 4ed08fabe20..7ecc261b227 100644
--- a/TAO/tao/PI/PIForwardRequestC.cpp
+++ b/TAO/tao/PI/PIForwardRequestC.cpp
@@ -26,19 +26,21 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI/PIForwardRequestC.h"
+#include "PIForwardRequestC.h"
#include "tao/CDR.h"
#include "tao/SystemException.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -49,7 +51,7 @@ namespace TAO
// be\be_visitor_exception/exception_cs.cpp:63
PortableInterceptor::ForwardRequest::ForwardRequest (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/PortableInterceptor/ForwardRequest:1.0",
"ForwardRequest"
)
@@ -61,7 +63,7 @@ PortableInterceptor::ForwardRequest::~ForwardRequest (void)
}
PortableInterceptor::ForwardRequest::ForwardRequest (const ::PortableInterceptor::ForwardRequest &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -72,7 +74,7 @@ PortableInterceptor::ForwardRequest::ForwardRequest (const ::PortableInterceptor
PortableInterceptor::ForwardRequest&
PortableInterceptor::ForwardRequest::operator= (const ::PortableInterceptor::ForwardRequest &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
this->forward = CORBA::Object::_duplicate (_tao_excp.forward.in ());
return *this;
}
@@ -85,28 +87,28 @@ void PortableInterceptor::ForwardRequest::_tao_any_destructor (void *_tao_void_p
}
PortableInterceptor::ForwardRequest *
-PortableInterceptor::ForwardRequest::_downcast ( ::CORBA::Exception *_tao_excp)
+PortableInterceptor::ForwardRequest::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<ForwardRequest *> (_tao_excp);
}
const PortableInterceptor::ForwardRequest *
-PortableInterceptor::ForwardRequest::_downcast ( ::CORBA::Exception const *_tao_excp)
+PortableInterceptor::ForwardRequest::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const ForwardRequest *> (_tao_excp);
}
-::CORBA::Exception *PortableInterceptor::ForwardRequest::_alloc (void)
+CORBA::Exception *PortableInterceptor::ForwardRequest::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::PortableInterceptor::ForwardRequest, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
PortableInterceptor::ForwardRequest::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::PortableInterceptor::ForwardRequest (*this),
@@ -130,7 +132,7 @@ void PortableInterceptor::ForwardRequest::_tao_encode (
return;
}
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void PortableInterceptor::ForwardRequest::_tao_decode (
@@ -143,7 +145,7 @@ void PortableInterceptor::ForwardRequest::_tao_decode (
return;
}
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
@@ -152,9 +154,9 @@ void PortableInterceptor::ForwardRequest::_tao_decode (
// be\be_visitor_exception/exception_ctor.cpp:66
PortableInterceptor::ForwardRequest::ForwardRequest (
- const ::CORBA::Object_ptr _tao_forward
+ const CORBA::Object_ptr _tao_forward
)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/PortableInterceptor/ForwardRequest:1.0",
"ForwardRequest"
)
@@ -162,12 +164,16 @@ PortableInterceptor::ForwardRequest::ForwardRequest (
this->forward = CORBA::Object::_duplicate (_tao_forward);
}
-
+// TAO extension - the virtual _type method.
+CORBA::TypeCode_ptr PortableInterceptor::ForwardRequest::_tao_type (void) const
+{
+ return ::PortableInterceptor::_tc_ForwardRequest;
+}
// TAO_IDL - Generated from
// be\be_visitor_exception/cdr_op_cs.cpp:60
-::CORBA::Boolean operator<< (
+CORBA::Boolean operator<< (
TAO_OutputCDR &strm,
const PortableInterceptor::ForwardRequest &_tao_aggregate
)
@@ -186,7 +192,7 @@ PortableInterceptor::ForwardRequest::ForwardRequest (
}
}
-::CORBA::Boolean operator>> (
+CORBA::Boolean operator>> (
TAO_InputCDR &strm,
PortableInterceptor::ForwardRequest &_tao_aggregate
)
@@ -196,5 +202,3 @@ PortableInterceptor::ForwardRequest::ForwardRequest (
(strm >> _tao_aggregate.forward.out ())
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PIForwardRequestC.h b/TAO/tao/PI/PIForwardRequestC.h
index 73de9b859a6..f26359f8365 100644
--- a/TAO/tao/PI/PIForwardRequestC.h
+++ b/TAO/tao/PI/PIForwardRequestC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_PIFORWARDREQUESTC_H_
-#define _TAO_IDL_PIFORWARDREQUESTC_H_
+#ifndef _TAO_IDL_ORIG_PIFORWARDREQUESTC_H_
+#define _TAO_IDL_ORIG_PIFORWARDREQUESTC_H_
#include /**/ "ace/pre.h"
@@ -50,10 +50,17 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
@@ -64,11 +71,11 @@ namespace PortableInterceptor
#if !defined (_PORTABLEINTERCEPTOR_FORWARDREQUEST_CH_)
#define _PORTABLEINTERCEPTOR_FORWARDREQUEST_CH_
- class TAO_PI_Export ForwardRequest : public ::CORBA::UserException
+ class TAO_PI_Export ForwardRequest : public CORBA::UserException
{
public:
- ::CORBA::Object_var forward;
+ CORBA::Object_var forward;
ForwardRequest (void);
ForwardRequest (const ForwardRequest &);
~ForwardRequest (void);
@@ -77,12 +84,12 @@ namespace PortableInterceptor
static void _tao_any_destructor (void *);
- static ForwardRequest *_downcast ( ::CORBA::Exception *);
- static const ForwardRequest *_downcast ( ::CORBA::Exception const *);
+ static ForwardRequest *_downcast (CORBA::Exception *);
+ static const ForwardRequest *_downcast (CORBA::Exception const *);
- static ::CORBA::Exception *_alloc (void);
+ static CORBA::Exception *_alloc (void);
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -100,16 +107,24 @@ namespace PortableInterceptor
// be\be_visitor_exception/exception_ctor.cpp:66
ForwardRequest (
- const ::CORBA::Object_ptr _tao_forward
+ const CORBA::Object_ptr _tao_forward
);
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:129
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ForwardRequest;
#endif /* end #if !defined */
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -122,15 +137,29 @@ namespace TAO
}
// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, const PortableInterceptor::ForwardRequest &); // copying version
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::ForwardRequest*); // noncopying version
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ForwardRequest *&); // deprecated
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableInterceptor::ForwardRequest *&);
+
+// TAO_IDL - Generated from
// be\be_visitor_exception/cdr_op_ch.cpp:52
-TAO_PI_Export ::CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableInterceptor::ForwardRequest &);
-TAO_PI_Export ::CORBA::Boolean operator>> (TAO_InputCDR &, PortableInterceptor::ForwardRequest &);
+TAO_PI_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableInterceptor::ForwardRequest &);
+TAO_PI_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableInterceptor::ForwardRequest &);
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/PI_ORBInitializer.cpp b/TAO/tao/PI/PI_ORBInitializer.cpp
deleted file mode 100644
index c138481d1ee..00000000000
--- a/TAO/tao/PI/PI_ORBInitializer.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-// -*- C++ -*-
-
-#include "tao/PI/PI_ORBInitializer.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/PI_PolicyFactory.h"
-#include "tao/PI/ProcessingModePolicyC.h"
-#include "tao/ORB_Core.h"
-#include "tao/PI/ORBInitInfoC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_RCSID (tao,
- PI_ORBInitializer,
- "$Id$")
-
-void
-TAO_PI_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_UNUSED_ARG (info);
-}
-
-
-void
-TAO_PI_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // The PI policy factory is stateless and reentrant, so share a
- // single instance between all ORBs.
- if (CORBA::is_nil (this->policy_factory_.in ()))
- {
- PortableInterceptor::PolicyFactory_ptr policy_factory;
- ACE_NEW_THROW_EX (policy_factory,
- TAO_PI_PolicyFactory,
- CORBA::NO_MEMORY (
- CORBA::SystemException::_tao_minor_code (
- TAO::VMCID,
- ENOMEM),
- CORBA::COMPLETED_NO));
- ACE_CHECK;
-
- this->policy_factory_ = policy_factory;
- }
-
-
- this->register_policy_factories (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-TAO_PI_ORBInitializer::register_policy_factories (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
-{
- // Register the PI policy factory.
-
- // Bind the same policy factory to all PortableInterceptor related policy
- // types since a single policy factory is used to create each of the
- // different types of PortableInterceptor policies.
- CORBA::PolicyType type[] = {
- PortableInterceptor::PROCESSING_MODE_POLICY_TYPE
- };
-
- const CORBA::PolicyType *end = type + sizeof (type) / sizeof (type[0]);
-
- for (CORBA::PolicyType *i = type; i != end; ++i)
- {
- ACE_TRY
- {
- info->register_policy_factory (*i,
- this->policy_factory_.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::BAD_INV_ORDER, ex)
- {
- if (ex.minor () == (CORBA::OMGVMCID | 16))
- {
- // The factory is already there, it happens because the
- // magic initializer in PI_Initializer.cpp registers
- // with the ORB multiple times. This is an indication
- // that we should do no more work in this
- // ORBInitializer.
- return;
- }
- ACE_RE_THROW;
- }
- ACE_CATCHANY
- {
- // Rethrow any other exceptions...
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_CHECK;
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/PI_ORBInitializer.h b/TAO/tao/PI/PI_ORBInitializer.h
deleted file mode 100644
index 92d62abfef6..00000000000
--- a/TAO/tao/PI/PI_ORBInitializer.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file PI_ORBInitializer.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_PI_ORB_INITIALIZER_H
-#define TAO_PI_ORB_INITIALIZER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/pi_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-#include "tao/PI/ORBInitializerC.h"
-#include "tao/PI/PolicyFactoryC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/// Forward Declarations
-class TAO_PI_PolicyFactory;
-
-/// PortableServer ORB initializer.
-class TAO_PI_Export TAO_PI_ORBInitializer
- : public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- /**
- * @name PortableInterceptor::ORBInitializer methods
- *
- * The following methods are required by the
- * PortableInterceptor::ORBInitializer interface.
- */
- //@{
-
- void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- //@}
-
-
-private:
-
- /// Register PortableInterceptor policy factories.
- void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL);
-
-
- /// Instance of the PI policy factory.
- /**
- * The PI policy factory is stateless and reentrant, so share
- * a single instance between all ORBs.
- */
- PortableInterceptor::PolicyFactory_var policy_factory_;
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_PI_ORB_INITIALIZER_H */
diff --git a/TAO/tao/PI/PI_PolicyFactory.cpp b/TAO/tao/PI/PI_PolicyFactory.cpp
deleted file mode 100644
index 3f82ffff341..00000000000
--- a/TAO/tao/PI/PI_PolicyFactory.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "tao/PI/PI_PolicyFactory.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/ProcessingModePolicy.h"
-#include "tao/ORB_Constants.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_RCSID (tao,
- PI_PolicyFactory,
- "$Id$")
-
-CORBA::Policy_ptr
-TAO_PI_PolicyFactory::create_policy (
- CORBA::PolicyType type,
- const CORBA::Any &value
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CORBA::PolicyError))
-{
- if (type == PortableInterceptor::PROCESSING_MODE_POLICY_TYPE)
- {
- TAO_ProcessingModePolicy *processing_mode_policy = 0;
- PortableInterceptor::ProcessingMode policy_value;
-
- if ((value >>= policy_value) == 0)
- {
- ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_VALUE),
- CORBA::Policy::_nil ());
- }
-
- ACE_NEW_THROW_EX (processing_mode_policy,
- TAO_ProcessingModePolicy (policy_value),
- CORBA::NO_MEMORY (TAO::VMCID,
- CORBA::COMPLETED_NO));
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return processing_mode_policy;
- }
-
- ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
- CORBA::Policy::_nil ());
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI/PI_PolicyFactory.h b/TAO/tao/PI/PI_PolicyFactory.h
deleted file mode 100644
index eb7e4968015..00000000000
--- a/TAO/tao/PI/PI_PolicyFactory.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file PI_PolicyFactory.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_PI_POLICY_FACTORY_H
-#define TAO_PI_POLICY_FACTORY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/pi_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-#include "tao/PI/PolicyFactoryC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/// Policy factory for all PortableInterceptor related policies.
-class TAO_PI_Export TAO_PI_PolicyFactory
- : public virtual PortableInterceptor::PolicyFactory,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
- const CORBA::Any & value
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- CORBA::PolicyError));
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_PI_POLICY_FACTORY_H */
diff --git a/TAO/tao/PI/PolicyFactory.pidl b/TAO/tao/PI/PolicyFactory.pidl
index f2ee6020c5a..57a5366b279 100644
--- a/TAO/tao/PI/PolicyFactory.pidl
+++ b/TAO/tao/PI/PolicyFactory.pidl
@@ -20,7 +20,7 @@
#ifndef _POLICYFACTORY_PIDL_
#define _POLICYFACTORY_PIDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PI/PolicyFactoryA.cpp b/TAO/tao/PI/PolicyFactoryA.cpp
index ba611cec358..eba4bd3ab6a 100644
--- a/TAO/tao/PI/PolicyFactoryA.cpp
+++ b/TAO/tao/PI/PolicyFactoryA.cpp
@@ -25,32 +25,104 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/PolicyFactoryA.h"
+#include "PolicyFactoryC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_PolicyFactory (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/PolicyFactory:1.0",
"PolicyFactory");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_PolicyFactory =
&_tao_tc_PortableInterceptor_PolicyFactory;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::PolicyFactory>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::PolicyFactory>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::PolicyFactory>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::PolicyFactory_ptr _tao_elem
+ )
+{
+ PortableInterceptor::PolicyFactory_ptr _tao_objptr =
+ PortableInterceptor::PolicyFactory::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::PolicyFactory_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::PolicyFactory>::insert (
+ _tao_any,
+ PortableInterceptor::PolicyFactory::_tao_any_destructor,
+ PortableInterceptor::_tc_PolicyFactory,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::PolicyFactory_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::PolicyFactory>::extract (
+ _tao_any,
+ PortableInterceptor::PolicyFactory::_tao_any_destructor,
+ PortableInterceptor::_tc_PolicyFactory,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/PolicyFactoryA.h b/TAO/tao/PI/PolicyFactoryA.h
deleted file mode 100644
index 2bbd578a36e..00000000000
--- a/TAO/tao/PI/PolicyFactoryA.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_POLICYFACTORYA_H_
-#define _TAO_IDL_POLICYFACTORYA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/PolicyFactoryC.h"
-#include "tao/AnyTypeCode/PolicyA.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_PolicyFactory;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/PolicyFactoryC.cpp b/TAO/tao/PI/PolicyFactoryC.cpp
index 49c458fd6be..9e58888ac22 100644
--- a/TAO/tao/PI/PolicyFactoryC.cpp
+++ b/TAO/tao/PI/PolicyFactoryC.cpp
@@ -26,17 +26,19 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// .\be\be_codegen.cpp:291
-#include "tao/PI/PolicyFactoryC.h"
+#include "PolicyFactoryC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
-// TAO_IDL - Generated from
-// be\be_visitor_arg_traits.cpp:70
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// .\be\be_visitor_arg_traits.cpp:69
// Arg traits specializations.
namespace TAO
@@ -45,7 +47,7 @@ namespace TAO
// TAO_IDL - Generated from
-// be\be_visitor_interface/interface_cs.cpp:60
+// c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for PortableInterceptor::PolicyFactory.
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::nil (void)
return PortableInterceptor::PolicyFactory::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::marshal (
PortableInterceptor::PolicyFactory_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::PolicyFactory::PolicyFactory (void)
@@ -86,26 +88,46 @@ PortableInterceptor::PolicyFactory::PolicyFactory (void)
PortableInterceptor::PolicyFactory::~PolicyFactory (void)
{}
+void
+PortableInterceptor::PolicyFactory::_tao_any_destructor (void *_tao_void_pointer)
+{
+ PolicyFactory *_tao_tmp_pointer =
+ static_cast<PolicyFactory *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::PolicyFactory_ptr
PortableInterceptor::PolicyFactory::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return PolicyFactory::_duplicate (
- dynamic_cast<PolicyFactory_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return PolicyFactory::_nil ();
+ }
+
+ PolicyFactory_ptr proxy =
+ dynamic_cast<PolicyFactory_ptr> (_tao_objref);
+
+ return PolicyFactory::_duplicate (proxy);
}
PortableInterceptor::PolicyFactory_ptr
PortableInterceptor::PolicyFactory::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- return PolicyFactory::_duplicate (
- dynamic_cast<PolicyFactory_ptr> (_tao_objref)
- );
+ if (CORBA::is_nil (_tao_objref))
+ {
+ return PolicyFactory::_nil ();
+ }
+
+ PolicyFactory_ptr proxy =
+ dynamic_cast<PolicyFactory_ptr> (_tao_objref);
+
+ return PolicyFactory::_duplicate (proxy);
}
PortableInterceptor::PolicyFactory_ptr
@@ -115,7 +137,7 @@ PortableInterceptor::PolicyFactory::_duplicate (PolicyFactory_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
@@ -125,7 +147,7 @@ PortableInterceptor::PolicyFactory::_tao_release (PolicyFactory_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::PolicyFactory::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -159,7 +181,7 @@ const char* PortableInterceptor::PolicyFactory::_interface_repository_id (void)
return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::PolicyFactory::marshal (TAO_OutputCDR &)
{
return false;
@@ -176,5 +198,3 @@ PortableInterceptor::PolicyFactory::_create_policy (CORBA::PolicyType
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PolicyFactoryC.h b/TAO/tao/PI/PolicyFactoryC.h
index 9737af6be89..aeccc94cc27 100644
--- a/TAO/tao/PI/PolicyFactoryC.h
+++ b/TAO/tao/PI/PolicyFactoryC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// .\be\be_codegen.cpp:153
-#ifndef _TAO_IDL_POLICYFACTORYC_H_
-#define _TAO_IDL_POLICYFACTORYC_H_
+#ifndef _TAO_IDL_ORIG_POLICYFACTORYC_H_
+#define _TAO_IDL_ORIG_POLICYFACTORYC_H_
#include /**/ "ace/pre.h"
@@ -41,13 +41,13 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PI/pi_export.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/PolicyC.h"
@@ -57,16 +57,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
+
+// TAO_IDL - Generated from
+// c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // .\be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_POLICYFACTORY__VAR_OUT_CH_
@@ -89,13 +96,13 @@ namespace PortableInterceptor
#endif /* end #if !defined */
// TAO_IDL - Generated from
- // be\be_visitor_interface/interface_ch.cpp:54
+ // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY_CH_)
#define _PORTABLEINTERCEPTOR_POLICYFACTORY_CH_
class TAO_PI_Export PolicyFactory
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef PolicyFactory_ptr _ptr_type;
@@ -107,12 +114,12 @@ namespace PortableInterceptor
static void _tao_release (PolicyFactory_ptr obj);
static PolicyFactory_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static PolicyFactory_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -121,10 +128,10 @@ namespace PortableInterceptor
return static_cast<PolicyFactory_ptr> (0);
}
-
+ static void _tao_any_destructor (void *);
// TAO_IDL - Generated from
- // be\be_visitor_operation/operation_ch.cpp:46
+ // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_operation/operation_ch.cpp:46
virtual ::CORBA::Policy_ptr create_policy (
::CORBA::PolicyType type,
@@ -132,7 +139,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::CORBA::PolicyError
)) = 0;
@@ -147,15 +154,15 @@ namespace PortableInterceptor
));
// TAO_IDL - Generated from
- // be\be_visitor_interface/interface_ch.cpp:210
+ // c:\ace\latest\ace_wrappers\tao\tao_idl\be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
@@ -172,8 +179,13 @@ namespace PortableInterceptor
#endif /* end #if !defined */
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_PolicyFactory;
+
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -184,8 +196,8 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_)
-#define _PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_
+#if !defined (_PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_POLICYFACTORY__TRAITS_CH_
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::PolicyFactory>
@@ -197,7 +209,7 @@ namespace TAO
::PortableInterceptor::PolicyFactory_ptr
);
static ::PortableInterceptor::PolicyFactory_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::PolicyFactory_ptr p,
TAO_OutputCDR & cdr
);
@@ -207,9 +219,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::PolicyFactory_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::PolicyFactory_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::PolicyFactory_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/PolicyFactory_Loader.cpp b/TAO/tao/PI/PolicyFactory_Loader.cpp
index 3b8e49f062c..bea75ef3a0f 100644
--- a/TAO/tao/PI/PolicyFactory_Loader.cpp
+++ b/TAO/tao/PI/PolicyFactory_Loader.cpp
@@ -11,8 +11,8 @@
*/
// =================================================================
-#include "tao/PI/PolicyFactory_Loader.h"
-#include "tao/PI/PolicyFactory_Registry.h"
+#include "PolicyFactory_Loader.h"
+#include "PolicyFactory_Registry.h"
#include "tao/ORB.h"
#include "tao/debug.h"
@@ -21,8 +21,6 @@ ACE_RCSID (PI,
PolicyFactory_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::PolicyFactory_Registry_Adapter*
TAO_PolicyFactory_Loader::create (void)
{
@@ -39,8 +37,6 @@ TAO_PolicyFactory_Loader::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_PolicyFactory_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_PolicyFactory_Loader,
ACE_TEXT ("PolicyFactory_Loader"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/PI/PolicyFactory_Loader.h b/TAO/tao/PI/PolicyFactory_Loader.h
index a25c378676e..10b0280f4d9 100644
--- a/TAO/tao/PI/PolicyFactory_Loader.h
+++ b/TAO/tao/PI/PolicyFactory_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/pi_export.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "tao/PolicyFactory_Registry_Factory.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PI_Export TAO_PolicyFactory_Loader
: public TAO_PolicyFactory_Registry_Factory
{
@@ -39,14 +37,12 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_PolicyFactory_Initializer = TAO_PolicyFactory_Loader::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_PolicyFactory_Loader)
ACE_FACTORY_DECLARE (TAO_PI, TAO_PolicyFactory_Loader)
+static int
+TAO_Requires_PolicyFactory_Initializer = TAO_PolicyFactory_Loader::Initializer ();
+
#include /**/ "ace/post.h"
#endif /* TAO_POLICYFACTORY_LOADER_H */
diff --git a/TAO/tao/PI/PolicyFactory_Registry.cpp b/TAO/tao/PI/PolicyFactory_Registry.cpp
index e97382928c8..7999bbecc3c 100644
--- a/TAO/tao/PI/PolicyFactory_Registry.cpp
+++ b/TAO/tao/PI/PolicyFactory_Registry.cpp
@@ -1,5 +1,5 @@
-#include "tao/PI/PolicyFactory_Registry.h"
-#include "tao/PI/PolicyFactoryC.h"
+#include "PolicyFactory_Registry.h"
+#include "PolicyFactoryC.h"
#include "tao/ORB_Constants.h"
#include "tao/SystemException.h"
#include "tao/PolicyC.h"
@@ -11,8 +11,6 @@ ACE_RCSID (PI,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PolicyFactory_Registry::TAO_PolicyFactory_Registry (void)
: factories_ (TAO_DEFAULT_POLICY_FACTORY_REGISTRY_SIZE)
{
@@ -119,5 +117,3 @@ TAO_PolicyFactory_Registry::factory_exists (CORBA::PolicyType & type) const
return (this->factories_.find (type) == 0);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/PolicyFactory_Registry.h b/TAO/tao/PI/PolicyFactory_Registry.h
index 882f386c70c..05a5747d112 100644
--- a/TAO/tao/PI/PolicyFactory_Registry.h
+++ b/TAO/tao/PI/PolicyFactory_Registry.h
@@ -16,19 +16,17 @@
#include /**/ "ace/pre.h"
-#include "tao/Basic_Types.h"
+#include "pi_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Basic_Types.h"
-#include "tao/PolicyFactory_Registry_Adapter.h"
#include "ace/Map_Manager.h"
#include "ace/Null_Mutex.h"
#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Basic_Types.h"
+#include "tao/PolicyFactory_Registry_Adapter.h"
/**
* @class TAO_PolicyFactory_Registry
@@ -38,7 +36,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* ORB-specific registry that contains all portable interceptor
* policy factories.
*/
-class TAO_PolicyFactory_Registry
+class TAO_PI_Export TAO_PolicyFactory_Registry
: public TAO::PolicyFactory_Registry_Adapter
{
public:
@@ -95,8 +93,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_POLICY_FACTORY_REGISTRY_H */
diff --git a/TAO/tao/PI/ProcessingModePolicy.cpp b/TAO/tao/PI/ProcessingModePolicy.cpp
deleted file mode 100644
index 9f2feccfe82..00000000000
--- a/TAO/tao/PI/ProcessingModePolicy.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id$
-
-#include "tao/PI/ProcessingModePolicy.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PortableInterceptorC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_RCSID (tao,
- ProcessingModePolicy,
- "$Id$")
-
-// Should this all be wrapped in #if (TAO_HAS_MINIMUM_POA == 0)?
-
-TAO_ProcessingModePolicy::TAO_ProcessingModePolicy
- (PortableInterceptor::ProcessingMode mode)
- : processing_mode_ (mode)
-{
-}
-
-CORBA::Policy_ptr
-TAO_ProcessingModePolicy::copy (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- TAO_ProcessingModePolicy *copy = 0;
- ACE_NEW_THROW_EX (copy,
- TAO_ProcessingModePolicy (this->processing_mode_),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (CORBA::Policy::_nil ());
-
- return copy;
-}
-
-void
-TAO_ProcessingModePolicy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-PortableInterceptor::ProcessingMode
-TAO_ProcessingModePolicy::processing_mode (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return processing_mode_;
-}
-
-CORBA::PolicyType
-TAO_ProcessingModePolicy::policy_type (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return PortableInterceptor::PROCESSING_MODE_POLICY_TYPE;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
diff --git a/TAO/tao/PI/ProcessingModePolicy.h b/TAO/tao/PI/ProcessingModePolicy.h
deleted file mode 100644
index fe2c82462bf..00000000000
--- a/TAO/tao/PI/ProcessingModePolicy.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- C++ -*- */
-//=============================================================================
-/**
- * @file ProcessingModePolicy.h
- *
- * $Id$
- *
- * @author Tim Bradley (bradley_t@ociweb.com)
- */
-//=============================================================================
-
-#ifndef TAO_PROCESSING_MODE_POLICY_H
-#define TAO_PROCESSING_MODE_POLICY_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/pi_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-#include "tao/PI/ProcessingModePolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class TAO_ProcessingModePolicy
- *
- * @brief Implementation class for Portable Interceptor ProcessingModePolicy.
- *
- * This policy is used to specify which kinds of requests (collocated vs.
- * remote) should (or should not) cause a Portable Interceptor to be used.
- */
-
-class TAO_PI_Export TAO_ProcessingModePolicy
- : public PortableInterceptor::ProcessingModePolicy,
- public TAO_Local_RefCounted_Object
-{
-public:
- /// Constructor.
- TAO_ProcessingModePolicy (PortableInterceptor::ProcessingMode mode);
-
- virtual PortableInterceptor::ProcessingMode processing_mode
- (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::PolicyType policy_type (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual CORBA::Policy_ptr copy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// The attribute
- PortableInterceptor::ProcessingMode processing_mode_;
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
-#include /**/ "ace/post.h"
-#endif /* TAO_PROCESSING_MODE_POLICY_H */
diff --git a/TAO/tao/PI/ProcessingModePolicy.pidl b/TAO/tao/PI/ProcessingModePolicy.pidl
deleted file mode 100644
index 4b8a6bac91e..00000000000
--- a/TAO/tao/PI/ProcessingModePolicy.pidl
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * @file ProcessingModePolicy.pidl
- *
- * $Id$
- *
- * @brief Pre-compiled IDL source for the ProcessingModePolicy within
- * the PortableInterceptor module.
- *
- * tao_idl \
- * -o orig -Gp -Gd -Ge 1 -GT -Sc -GA \
- * -Wb,export_include="tao/TAO_Export.h" \
- * -Wb,export_macro=TAO_Export \
- * -Wb,pre_include="ace/pre.h" \
- * -Wb,post_include="ace/post.h" \
- * ProcessingModePolicy.pidl
- */
-
-#ifndef _PROCESSING_MODE_POLICY_PIDL_
-#define _PROCESSING_MODE_POLICY_PIDL_
-
-#include "tao/Policy.pidl"
-
-module PortableInterceptor
-{
-
- // ProcessingMode Policy (default = LOCAL_AND_REMOTE)
- typedef short ProcessingMode;
- const ProcessingMode LOCAL_AND_REMOTE = 0;
- const ProcessingMode REMOTE_ONLY = 1;
- const ProcessingMode LOCAL_ONLY = 2;
-
- /// @todo - Need to get the proper Policy Type code from OMG
- const CORBA::PolicyType PROCESSING_MODE_POLICY_TYPE = 100;
-
- local interface ProcessingModePolicy : CORBA::Policy
- {
- readonly attribute ProcessingMode processing_mode;
- };
-
-};
-
-#endif /* _PROCESSING_MODE_POLICY_PIDL_ */
diff --git a/TAO/tao/PI/ProcessingModePolicyC.cpp b/TAO/tao/PI/ProcessingModePolicyC.cpp
deleted file mode 100644
index 56768cef58d..00000000000
--- a/TAO/tao/PI/ProcessingModePolicyC.cpp
+++ /dev/null
@@ -1,221 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be/be_codegen.cpp:292
-
-
-#include "tao/PI/ProcessingModePolicyC.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Any_Impl_T.h"
-#include "ace/OS_NS_string.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-
-
-// TAO_IDL - Generated from
-// be/be_visitor_arg_traits.cpp:70
-
-// Arg traits specializations.
-namespace TAO
-{
-}
-
-
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/alias_typecode.cpp:50
-
-static TAO::TypeCode::Alias<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ProcessingMode (
- ::CORBA::tk_alias,
- "IDL:PortableInterceptor/ProcessingMode:1.0",
- "ProcessingMode",
- &CORBA::_tc_short);
-
-namespace PortableInterceptor
-{
- ::CORBA::TypeCode_ptr const _tc_ProcessingMode =
- &_tao_tc_PortableInterceptor_ProcessingMode;
-}
-
-
-
-// TAO_IDL - Generated from
-// be/be_visitor_interface/interface_cs.cpp:60
-
-// Traits specializations for PortableInterceptor::ProcessingModePolicy.
-
-PortableInterceptor::ProcessingModePolicy_ptr
-TAO::Objref_Traits<PortableInterceptor::ProcessingModePolicy>::duplicate (
- PortableInterceptor::ProcessingModePolicy_ptr p
- )
-{
- return PortableInterceptor::ProcessingModePolicy::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<PortableInterceptor::ProcessingModePolicy>::release (
- PortableInterceptor::ProcessingModePolicy_ptr p
- )
-{
- CORBA::release (p);
-}
-
-PortableInterceptor::ProcessingModePolicy_ptr
-TAO::Objref_Traits<PortableInterceptor::ProcessingModePolicy>::nil (void)
-{
- return PortableInterceptor::ProcessingModePolicy::_nil ();
-}
-
-::CORBA::Boolean
-TAO::Objref_Traits<PortableInterceptor::ProcessingModePolicy>::marshal (
- const PortableInterceptor::ProcessingModePolicy_ptr p,
- TAO_OutputCDR & cdr
- )
-{
- return ::CORBA::Object::marshal (p, cdr);
-}
-
-PortableInterceptor::ProcessingModePolicy::ProcessingModePolicy (void)
-{}
-
-PortableInterceptor::ProcessingModePolicy::~ProcessingModePolicy (void)
-{}
-
-PortableInterceptor::ProcessingModePolicy_ptr
-PortableInterceptor::ProcessingModePolicy::_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return ProcessingModePolicy::_duplicate (
- dynamic_cast<ProcessingModePolicy_ptr> (_tao_objref)
- );
-}
-
-PortableInterceptor::ProcessingModePolicy_ptr
-PortableInterceptor::ProcessingModePolicy::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- return ProcessingModePolicy::_duplicate (
- dynamic_cast<ProcessingModePolicy_ptr> (_tao_objref)
- );
-}
-
-PortableInterceptor::ProcessingModePolicy_ptr
-PortableInterceptor::ProcessingModePolicy::_duplicate (ProcessingModePolicy_ptr obj)
-{
- if (! CORBA::is_nil (obj))
- {
- obj->_add_ref ();
- }
-
- return obj;
-}
-
-void
-PortableInterceptor::ProcessingModePolicy::_tao_release (ProcessingModePolicy_ptr obj)
-{
- CORBA::release (obj);
-}
-
-::CORBA::Boolean
-PortableInterceptor::ProcessingModePolicy::_is_a (
- const char *value
- ACE_ENV_ARG_DECL_NOT_USED
- )
-{
- if (
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/Policy:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:PortableInterceptor/ProcessingModePolicy:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/LocalObject:1.0"
- ) ||
- !ACE_OS::strcmp (
- value,
- "IDL:omg.org/CORBA/Object:1.0"
- )
- )
- {
- return true; // success using local knowledge
- }
- else
- {
- return false;
- }
-}
-
-const char* PortableInterceptor::ProcessingModePolicy::_interface_repository_id (void) const
-{
- return "IDL:PortableInterceptor/ProcessingModePolicy:1.0";
-}
-
-::CORBA::Boolean
-PortableInterceptor::ProcessingModePolicy::marshal (TAO_OutputCDR &)
-{
- return false;
-}
-
-// TAO_IDL - Generated from
-// be/be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableInterceptor_ProcessingModePolicy (
- ::CORBA::tk_local_interface,
- "IDL:PortableInterceptor/ProcessingModePolicy:1.0",
- "ProcessingModePolicy");
-
-namespace PortableInterceptor
-{
- ::CORBA::TypeCode_ptr const _tc_ProcessingModePolicy =
- &_tao_tc_PortableInterceptor_ProcessingModePolicy;
-}
-
-
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
diff --git a/TAO/tao/PI/ProcessingModePolicyC.h b/TAO/tao/PI/ProcessingModePolicyC.h
deleted file mode 100644
index 88662f3f7f2..00000000000
--- a/TAO/tao/PI/ProcessingModePolicyC.h
+++ /dev/null
@@ -1,263 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be/be_codegen.cpp:164
-
-#ifndef _TAO_IDL_ORIG_PROCESSINGMODEPOLICYC_H_
-#define _TAO_IDL_ORIG_PROCESSINGMODEPOLICYC_H_
-
-#include /**/ "ace/pre.h"
-
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PI/pi_export.h"
-#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
-#include "tao/ORB.h"
-#include "tao/SystemException.h"
-#include "tao/Environment.h"
-#include "tao/Object.h"
-#include "tao/AnyTypeCode/PolicyA.h"
-#include "tao/Objref_VarOut_T.h"
-#include "tao/Versioned_Namespace.h"
-
-#include "tao/PolicyC.h"
-
-#if defined (TAO_EXPORT_MACRO)
-#undef TAO_EXPORT_MACRO
-#endif
-#define TAO_EXPORT_MACRO TAO_PI_Export
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-
-
-// TAO_IDL - Generated from
-// be/be_visitor_module/module_ch.cpp:49
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be/be_visitor_typedef/typedef_ch.cpp:379
-
- typedef CORBA::Short ProcessingMode;
- typedef CORBA::Short_out ProcessingMode_out;
-
- // TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ProcessingMode;
-
- // TAO_IDL - Generated from
- // be/be_visitor_constant/constant_ch.cpp:52
-
- const PortableInterceptor::ProcessingMode LOCAL_AND_REMOTE = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_constant/constant_ch.cpp:52
-
- const PortableInterceptor::ProcessingMode REMOTE_ONLY = 1;
-
- // TAO_IDL - Generated from
- // be/be_visitor_constant/constant_ch.cpp:52
-
- const PortableInterceptor::ProcessingMode LOCAL_ONLY = 2;
-
- // TAO_IDL - Generated from
- // be/be_visitor_constant/constant_ch.cpp:52
-
- const CORBA::PolicyType PROCESSING_MODE_POLICY_TYPE = 100U;
-
- // TAO_IDL - Generated from
- // be/be_interface.cpp:646
-
-#if !defined (_PORTABLEINTERCEPTOR_PROCESSINGMODEPOLICY__VAR_OUT_CH_)
-#define _PORTABLEINTERCEPTOR_PROCESSINGMODEPOLICY__VAR_OUT_CH_
-
- class ProcessingModePolicy;
- typedef ProcessingModePolicy *ProcessingModePolicy_ptr;
-
- typedef
- TAO_Objref_Var_T<
- ProcessingModePolicy
- >
- ProcessingModePolicy_var;
-
- typedef
- TAO_Objref_Out_T<
- ProcessingModePolicy
- >
- ProcessingModePolicy_out;
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be/be_visitor_interface/interface_ch.cpp:54
-
-#if !defined (_PORTABLEINTERCEPTOR_PROCESSINGMODEPOLICY_CH_)
-#define _PORTABLEINTERCEPTOR_PROCESSINGMODEPOLICY_CH_
-
- class TAO_PI_Export ProcessingModePolicy
- : public virtual ::CORBA::Policy
- {
- public:
- typedef ProcessingModePolicy_ptr _ptr_type;
- typedef ProcessingModePolicy_var _var_type;
-
- // The static operations.
- static ProcessingModePolicy_ptr _duplicate (ProcessingModePolicy_ptr obj);
-
- static void _tao_release (ProcessingModePolicy_ptr obj);
-
- static ProcessingModePolicy_ptr _narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static ProcessingModePolicy_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- static ProcessingModePolicy_ptr _nil (void)
- {
- return static_cast<ProcessingModePolicy_ptr> (0);
- }
-
-
-
- // TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual ::PortableInterceptor::ProcessingMode processing_mode (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- )) = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Policy_ptr copy (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- )) = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_operation/operation_ch.cpp:46
-
- virtual void destroy (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- )) = 0;
-
- // TAO_IDL - Generated from
- // be/be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
- const char *type_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- );
-
- virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
- protected:
- // Abstract or local interface only.
- ProcessingModePolicy (void);
-
- virtual ~ProcessingModePolicy (void);
-
- private:
- // Private and unimplemented for concrete interfaces.
- ProcessingModePolicy (const ProcessingModePolicy &);
-
- void operator= (const ProcessingModePolicy &);
- };
-
-#endif /* end #if !defined */
-
- // TAO_IDL - Generated from
- // be/be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_ProcessingModePolicy;
-
-// TAO_IDL - Generated from
-// be/be_visitor_module/module_ch.cpp:78
-
-} // module PortableInterceptor
-
-// TAO_IDL - Generated from
-// be/be_visitor_traits.cpp:62
-
-// Traits specializations.
-namespace TAO
-{
-
-#if !defined (_PORTABLEINTERCEPTOR_PROCESSINGMODEPOLICY__TRAITS_)
-#define _PORTABLEINTERCEPTOR_PROCESSINGMODEPOLICY__TRAITS_
-
- template<>
- struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::ProcessingModePolicy>
- {
- static ::PortableInterceptor::ProcessingModePolicy_ptr duplicate (
- ::PortableInterceptor::ProcessingModePolicy_ptr
- );
- static void release (
- ::PortableInterceptor::ProcessingModePolicy_ptr
- );
- static ::PortableInterceptor::ProcessingModePolicy_ptr nil (void);
- static ::CORBA::Boolean marshal (
- const ::PortableInterceptor::ProcessingModePolicy_ptr p,
- TAO_OutputCDR & cdr
- );
- };
-
-#endif /* end #if !defined */
-}
-
-// TAO_IDL - Generated from
-// be/be_codegen.cpp:1101
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
-
-
diff --git a/TAO/tao/PI/ProcessingModePolicyS.h b/TAO/tao/PI/ProcessingModePolicyS.h
deleted file mode 100644
index 17b1360599e..00000000000
--- a/TAO/tao/PI/ProcessingModePolicyS.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// Skeleton file generation suppressed with command line option -SS
diff --git a/TAO/tao/PI/RequestInfo.pidl b/TAO/tao/PI/RequestInfo.pidl
index 42830e28672..e832e45d2ca 100644
--- a/TAO/tao/PI/RequestInfo.pidl
+++ b/TAO/tao/PI/RequestInfo.pidl
@@ -22,11 +22,11 @@
#ifndef _REQUESTINFO_PIDL_
#define _REQUESTINFO_PIDL_
-#include "tao/PI_Forward.pidl"
+#include <PI_Forward.pidl>
#include "tao/AnyTypeCode/Dynamic.pidl"
-#include "tao/Messaging_SyncScope.pidl"
+#include <Messaging_SyncScope.pidl>
#include "tao/PI/InvalidSlot.pidl"
-#include "tao/IOP_IOR.pidl"
+#include <IOP_IOR.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PI/RequestInfoA.cpp b/TAO/tao/PI/RequestInfoA.cpp
index 4d0a1ec8626..79d1beb30cc 100644
--- a/TAO/tao/PI/RequestInfoA.cpp
+++ b/TAO/tao/PI/RequestInfoA.cpp
@@ -25,33 +25,105 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI/RequestInfoA.h"
+#include "RequestInfoC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_RequestInfo (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/RequestInfo:1.0",
"RequestInfo");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_RequestInfo =
&_tao_tc_PortableInterceptor_RequestInfo;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::RequestInfo>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::RequestInfo>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::RequestInfo>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::RequestInfo_ptr _tao_elem
+ )
+{
+ PortableInterceptor::RequestInfo_ptr _tao_objptr =
+ PortableInterceptor::RequestInfo::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::RequestInfo_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::RequestInfo>::insert (
+ _tao_any,
+ PortableInterceptor::RequestInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_RequestInfo,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::RequestInfo_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::RequestInfo>::extract (
+ _tao_any,
+ PortableInterceptor::RequestInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_RequestInfo,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI/RequestInfoA.h b/TAO/tao/PI/RequestInfoA.h
deleted file mode 100644
index e1290cb2124..00000000000
--- a/TAO/tao/PI/RequestInfoA.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_REQUESTINFOA_H_
-#define _TAO_IDL_REQUESTINFOA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/pi_export.h"
-#include "tao/PI/RequestInfoC.h"
-#include "tao/AnyTypeCode/PI_ForwardA.h"
-#include "tao/AnyTypeCode/DynamicA.h"
-#include "tao/AnyTypeCode/Messaging_SyncScopeA.h"
-#include "tao/PI/InvalidSlotA.h"
-#include "tao/AnyTypeCode/IOP_IORA.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_RequestInfo;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI/RequestInfoC.cpp b/TAO/tao/PI/RequestInfoC.cpp
index 5a921808a7c..c6d7e2d7cbd 100644
--- a/TAO/tao/PI/RequestInfoC.cpp
+++ b/TAO/tao/PI/RequestInfoC.cpp
@@ -26,18 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI/RequestInfoC.h"
+#include "RequestInfoC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -71,13 +73,13 @@ TAO::Objref_Traits<PortableInterceptor::RequestInfo>::nil (void)
return PortableInterceptor::RequestInfo::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::RequestInfo>::marshal (
PortableInterceptor::RequestInfo_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::RequestInfo::RequestInfo (void)
@@ -86,9 +88,17 @@ PortableInterceptor::RequestInfo::RequestInfo (void)
PortableInterceptor::RequestInfo::~RequestInfo (void)
{}
+void
+PortableInterceptor::RequestInfo::_tao_any_destructor (void *_tao_void_pointer)
+{
+ RequestInfo *_tao_tmp_pointer =
+ static_cast<RequestInfo *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::RequestInfo_ptr
PortableInterceptor::RequestInfo::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -99,7 +109,7 @@ PortableInterceptor::RequestInfo::_narrow (
PortableInterceptor::RequestInfo_ptr
PortableInterceptor::RequestInfo::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -125,7 +135,7 @@ PortableInterceptor::RequestInfo::_tao_release (RequestInfo_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::RequestInfo::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -159,10 +169,8 @@ const char* PortableInterceptor::RequestInfo::_interface_repository_id (void) co
return "IDL:omg.org/PortableInterceptor/RequestInfo:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::RequestInfo::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI/RequestInfoC.h b/TAO/tao/PI/RequestInfoC.h
index 7c9b60ae17f..361b95d1be3 100644
--- a/TAO/tao/PI/RequestInfoC.h
+++ b/TAO/tao/PI/RequestInfoC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_REQUESTINFOC_H_
-#define _TAO_IDL_REQUESTINFOC_H_
+#ifndef _TAO_IDL_ORIG_REQUESTINFOC_H_
+#define _TAO_IDL_ORIG_REQUESTINFOC_H_
#include /**/ "ace/pre.h"
@@ -41,13 +41,13 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PI/pi_export.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/PI_ForwardC.h"
@@ -61,29 +61,36 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
-
+
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_REQUESTINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_REQUESTINFO__VAR_OUT_CH_
-
+
class RequestInfo;
typedef RequestInfo *RequestInfo_ptr;
-
+
typedef
TAO_Objref_Var_T<
RequestInfo
>
RequestInfo_var;
-
+
typedef
TAO_Objref_Out_T<
RequestInfo
@@ -91,214 +98,219 @@ namespace PortableInterceptor
RequestInfo_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_PORTABLEINTERCEPTOR_REQUESTINFO_CH_)
#define _PORTABLEINTERCEPTOR_REQUESTINFO_CH_
-
+
class TAO_PI_Export RequestInfo
- : public virtual ::CORBA::Object
+ : public virtual CORBA::Object
{
public:
typedef RequestInfo_ptr _ptr_type;
typedef RequestInfo_var _var_type;
-
+
// The static operations.
static RequestInfo_ptr _duplicate (RequestInfo_ptr obj);
-
+
static void _tao_release (RequestInfo_ptr obj);
-
+
static RequestInfo_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static RequestInfo_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static RequestInfo_ptr _nil (void)
{
return static_cast<RequestInfo_ptr> (0);
}
-
-
-
+
+ static void _tao_any_destructor (void *);
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::ULong request_id (
+
+ virtual CORBA::ULong request_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual char * operation (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::Dynamic::ParameterList * arguments (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::Dynamic::ExceptionList * exceptions (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::Dynamic::ContextList * contexts (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::Dynamic::RequestContext * operation_context (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Any * result (
+
+ virtual CORBA::Any * result (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Boolean response_expected (
+
+ virtual CORBA::Boolean response_expected (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::Messaging::SyncScope sync_scope (
+
+ virtual Messaging::SyncScope sync_scope (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::PortableInterceptor::ReplyStatus reply_status (
+
+ virtual PortableInterceptor::ReplyStatus reply_status (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Object_ptr forward_reference (
+
+ virtual CORBA::Object_ptr forward_reference (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Any * get_slot (
+
+ virtual CORBA::Any * get_slot (
::PortableInterceptor::SlotId id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::InvalidSlot
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::IOP::ServiceContext * get_request_service_context (
::IOP::ServiceId id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::IOP::ServiceContext * get_reply_service_context (
::IOP::ServiceId id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
RequestInfo (void);
-
+
virtual ~RequestInfo (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
RequestInfo (const RequestInfo &);
-
+
void operator= (const RequestInfo &);
};
#endif /* end #if !defined */
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Export ::CORBA::TypeCode_ptr const _tc_RequestInfo;
+
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -309,9 +321,9 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_REQUESTINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_REQUESTINFO__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_REQUESTINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_REQUESTINFO__TRAITS_CH_
+
template<>
struct TAO_PI_Export Objref_Traits< ::PortableInterceptor::RequestInfo>
{
@@ -322,7 +334,7 @@ namespace TAO
::PortableInterceptor::RequestInfo_ptr
);
static ::PortableInterceptor::RequestInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::RequestInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -332,9 +344,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::RequestInfo_ptr); // copying
+TAO_PI_Export void operator<<= (CORBA::Any &, PortableInterceptor::RequestInfo_ptr *); // non-copying
+TAO_PI_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::RequestInfo_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI/RequestInfo_Util.cpp b/TAO/tao/PI/RequestInfo_Util.cpp
index 65d42175dd2..191a30e51c4 100644
--- a/TAO/tao/PI/RequestInfo_Util.cpp
+++ b/TAO/tao/PI/RequestInfo_Util.cpp
@@ -2,7 +2,7 @@
//
// $Id$
-#include "tao/PI/RequestInfo_Util.h"
+#include "RequestInfo_Util.h"
#if TAO_HAS_INTERCEPTORS == 1
@@ -16,7 +16,6 @@ ACE_RCSID (tao,
RequestInfo_Util,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
Dynamic::ParameterList *
TAO_RequestInfo_Util::make_parameter_list (ACE_ENV_SINGLE_ARG_DECL)
@@ -98,16 +97,15 @@ TAO_RequestInfo_Util::make_any (CORBA::Boolean tk_void_any
0,
ENOMEM),
CORBA::COMPLETED_NO));
- ACE_CHECK_RETURN (any);
if (tk_void_any)
{
any->_tao_set_typecode (CORBA::_tc_void);
}
+ // No need to do an ACE_CHECK_RETURN. The caller should do that.
+
return any;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/TAO/tao/PI/RequestInfo_Util.h b/TAO/tao/PI/RequestInfo_Util.h
index 4d18f4d2309..f32b1d8dc2f 100644
--- a/TAO/tao/PI/RequestInfo_Util.h
+++ b/TAO/tao/PI/RequestInfo_Util.h
@@ -26,9 +26,7 @@
#if TAO_HAS_INTERCEPTORS == 1
#include "ace/CORBA_macros.h"
-#include "tao/PI/pi_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "pi_export.h"
namespace CORBA
{
@@ -82,8 +80,6 @@ public:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI_Forward.pidl b/TAO/tao/PI_Forward.pidl
index f704658e38c..e7428115760 100644
--- a/TAO/tao/PI_Forward.pidl
+++ b/TAO/tao/PI_Forward.pidl
@@ -32,8 +32,8 @@
#ifndef _PI_FORWARD_IDL_
#define _PI_FORWARD_IDL_
-#include "tao/OctetSeq.pidl"
-#include "tao/StringSeq.pidl"
+#include <OctetSeq.pidl>
+#include <StringSeq.pidl>
module PortableInterceptor
{
diff --git a/TAO/tao/PI_ForwardC.cpp b/TAO/tao/PI_ForwardC.cpp
index a182b17775d..a077461b82b 100644
--- a/TAO/tao/PI_ForwardC.cpp
+++ b/TAO/tao/PI_ForwardC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/PI_ForwardC.h"
+#include "PI_ForwardC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
@@ -40,12 +40,8 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_ForwardC.h b/TAO/tao/PI_ForwardC.h
index d8672822375..9738014449c 100644
--- a/TAO/tao/PI_ForwardC.h
+++ b/TAO/tao/PI_ForwardC.h
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
@@ -137,8 +135,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PI_Server/PICurrent_Guard.cpp b/TAO/tao/PI_Server/PICurrent_Guard.cpp
index 23ed31147d2..9aff070ca96 100644
--- a/TAO/tao/PI_Server/PICurrent_Guard.cpp
+++ b/TAO/tao/PI_Server/PICurrent_Guard.cpp
@@ -1,4 +1,4 @@
-#include "tao/PI_Server/PICurrent_Guard.h"
+#include "PICurrent_Guard.h"
#if TAO_HAS_INTERCEPTORS == 1
@@ -14,8 +14,6 @@ ACE_RCSID (PortableServer,
#include "tao/PI/PICurrent.h"
#include "tao/PI/PICurrent_Impl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::PICurrent_Guard::PICurrent_Guard (TAO_ServerRequest &server_request,
bool tsc_to_rsc)
: src_ (0),
@@ -64,9 +62,11 @@ TAO::PICurrent_Guard::PICurrent_Guard (TAO_ServerRequest &server_request,
TAO::PICurrent_Guard::~PICurrent_Guard (void)
{
if (this->src_ != 0 && this->dest_ != 0
- && this->src_ != this->dest_
- && this->dest_->lc_slot_table (this->src_))
+ && this->src_ != this->dest_)
{
+ // This copy better be exception-safe!
+ this->dest_->lc_slot_table (this->src_);
+
// PICurrent will potentially have to call back on the request
// scope current so that it can deep copy the contents of the
// thread scope current if the contents of the thread scope
@@ -76,12 +76,10 @@ TAO::PICurrent_Guard::~PICurrent_Guard (void)
// necessary, if the thread scope current is modified after its
// contents have been *logically* copied to the request scope
// current. The same goes for the reverse, i.e. RSC to TSC.
-
this->copy_callback_->src_and_dst (this->src_, this->dest_);
this->src_->copy_callback (this->copy_callback_);
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI_Server/PICurrent_Guard.h b/TAO/tao/PI_Server/PICurrent_Guard.h
index 364ec199d29..6bbda8f3ec4 100644
--- a/TAO/tao/PI_Server/PICurrent_Guard.h
+++ b/TAO/tao/PI_Server/PICurrent_Guard.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI_Server/pi_server_export.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#if TAO_HAS_INTERCEPTORS == 1
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations.
class TAO_ServerRequest;
@@ -48,7 +46,7 @@ namespace TAO
*
* @note This Guard class is only used on the server side.
*/
- class PICurrent_Guard
+ class TAO_PI_Server_Export PICurrent_Guard
{
public:
@@ -101,8 +99,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI_Server/PI_Server.cpp b/TAO/tao/PI_Server/PI_Server.cpp
index 1511cfb1472..9217b032970 100644
--- a/TAO/tao/PI_Server/PI_Server.cpp
+++ b/TAO/tao/PI_Server/PI_Server.cpp
@@ -1,14 +1,11 @@
-#include "tao/PI_Server/PI_Server.h"
-#include "tao/PI_Server/PI_Server_Loader.h"
-#include "tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h"
+#include "PI_Server.h"
+#include "PI_Server_Loader.h"
+#include "ServerRequestInterceptor_Factory_Impl.h"
ACE_RCSID (PI_Server,
PI_Server,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_PI_Server_Init::Initializer (void)
{
@@ -19,4 +16,3 @@ TAO_PI_Server_Init::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_PI_Server_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/PI_Server.h b/TAO/tao/PI_Server/PI_Server.h
index eed7d6cc8eb..e130e064684 100644
--- a/TAO/tao/PI_Server/PI_Server.h
+++ b/TAO/tao/PI_Server/PI_Server.h
@@ -15,16 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/PI_Server/pi_server_export.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PI_Server_Init
*
@@ -41,11 +37,9 @@ static int
TAO_Requires_PI_Server_Initializer =
TAO_PI_Server_Init::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_PI_SERVER_SAFE_INCLUDE
-#include "tao/PI_Server/ServerRequestInterceptorC.h"
-#include "tao/PI_Server/ServerRequestInfoC.h"
+#include "ServerRequestInterceptorC.h"
+#include "ServerRequestInfoC.h"
#undef TAO_PI_SERVER_SAFE_INCLUDE
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI_Server/PI_Server_Loader.cpp b/TAO/tao/PI_Server/PI_Server_Loader.cpp
index abc2da4613c..e3dacc74cfb 100644
--- a/TAO/tao/PI_Server/PI_Server_Loader.cpp
+++ b/TAO/tao/PI_Server/PI_Server_Loader.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/PI_Server/PI_Server_Loader.h"
-#include "tao/PI_Server/PortableServer_ORBInitializer.h"
+#include "PI_Server_Loader.h"
+#include "PortableServer_ORBInitializer.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -12,8 +12,6 @@ ACE_RCSID (PI_Server,
PI_Server_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PI_Server_Loader::TAO_PI_Server_Loader (void)
{
}
@@ -29,13 +27,13 @@ TAO_PI_Server_Loader::init (int,
{
ACE_TRACE ("TAO_PI_Server_Loader::init");
- static bool initialized = false;
+ static int initialized = 0;
// Only allow initialization once.
if (initialized)
return 0;
- initialized = true;
+ initialized = 1;
// Register the ORB initializer.
ACE_DECLARE_NEW_CORBA_ENV;
@@ -64,17 +62,14 @@ TAO_PI_Server_Loader::init (int,
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
+ "(%P | %t) Caught exception:");
return -1;
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////////////////////////////////////////////
ACE_FACTORY_DEFINE (TAO_PI_Server, TAO_PI_Server_Loader)
diff --git a/TAO/tao/PI_Server/PI_Server_Loader.h b/TAO/tao/PI_Server/PI_Server_Loader.h
index b80753436b9..02228437152 100644
--- a/TAO/tao/PI_Server/PI_Server_Loader.h
+++ b/TAO/tao/PI_Server/PI_Server_Loader.h
@@ -1,10 +1,15 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file PI_Server_Loader.h
*
* $Id$
+ *
+ * Header file for Loading RTScheduler.
+ *
+ *
+ * @author Yamuna Krishnamurthy <yamuna@oomworks.com>
*/
//=============================================================================
@@ -12,18 +17,15 @@
#define TAO_PI_SERVER_LOADER_H
#include /**/ "ace/pre.h"
-#include "tao/PI_Server/pi_server_export.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PI_Server_Export TAO_PI_Server_Loader : public ACE_Service_Object
{
public:
@@ -38,8 +40,6 @@ public:
ACE_TCHAR* []);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PI_Server, TAO_PI_Server_Loader)
ACE_FACTORY_DECLARE (TAO_PI_Server, TAO_PI_Server_Loader)
diff --git a/TAO/tao/PI_Server/PI_Server_include.pidl b/TAO/tao/PI_Server/PI_Server_include.pidl
index ad7b82138bf..0b86cdf7238 100644
--- a/TAO/tao/PI_Server/PI_Server_include.pidl
+++ b/TAO/tao/PI_Server/PI_Server_include.pidl
@@ -10,6 +10,6 @@
#define _PORTABLESERVER_INCLUDE_IDL_
///FUZZ: disable check_for_include/
-#include "tao/PI_Server/ServerRequestInterceptor.pidl"
+#include <tao/PI_Server/ServerRequestInterceptor.pidl>
#endif /* _PORTABLESERVER_INCLUDE_IDL_ */
diff --git a/TAO/tao/PI_Server/PI_Server_includeC.h b/TAO/tao/PI_Server/PI_Server_includeC.h
index cca4fe783bd..2f941a52b2e 100644
--- a/TAO/tao/PI_Server/PI_Server_includeC.h
+++ b/TAO/tao/PI_Server/PI_Server_includeC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PI_Server/pi_server_export.h"
+#include "pi_server_export.h"
#include "tao/PI_Server/ServerRequestInterceptorC.h"
diff --git a/TAO/tao/PI_Server/Policy_Creator_T.h b/TAO/tao/PI_Server/Policy_Creator_T.h
index 6b4784fb607..42a5f422d4f 100644
--- a/TAO/tao/PI_Server/Policy_Creator_T.h
+++ b/TAO/tao/PI_Server/Policy_Creator_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,13 +21,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
- template <class POLICYTYPE, typename POLICYVALUE>
+ template <class POLICYTYPE, class POLICYVALUE>
void create_policy (
POLICYTYPE *& policy,
POLICYVALUE &value,
@@ -46,8 +44,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_POLICY_CREATOR_T_H */
diff --git a/TAO/tao/PI_Server/PortableServer_ORBInitializer.cpp b/TAO/tao/PI_Server/PortableServer_ORBInitializer.cpp
index 67a496a2d58..8f891627c1b 100644
--- a/TAO/tao/PI_Server/PortableServer_ORBInitializer.cpp
+++ b/TAO/tao/PI_Server/PortableServer_ORBInitializer.cpp
@@ -1,7 +1,7 @@
// -*- C++ -*-
-#include "tao/PI_Server/PortableServer_ORBInitializer.h"
-#include "tao/PI_Server/PortableServer_PolicyFactory.h"
+#include "PortableServer_ORBInitializer.h"
+#include "PortableServer_PolicyFactory.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
#include "tao/PortableServer/PortableServer.h"
@@ -12,21 +12,16 @@ ACE_RCSID (PI_Server,
PortableServer_ORBInitializer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
-TAO_PortableServer_ORBInitializer::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
+TAO_PortableServer_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr
+ ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
void
-TAO_PortableServer_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
+TAO_PortableServer_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info
+ ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->register_policy_factories (info
@@ -35,9 +30,8 @@ TAO_PortableServer_ORBInitializer::post_init (
}
void
-TAO_PortableServer_ORBInitializer::register_policy_factories (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
+TAO_PortableServer_ORBInitializer::register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info
+ ACE_ENV_ARG_DECL)
{
// Register the PortableServer policy factories.
PortableInterceptor::PolicyFactory_ptr tmp;
@@ -55,7 +49,7 @@ TAO_PortableServer_ORBInitializer::register_policy_factories (
// Bind the same policy factory to all PortableServer related policy
// types since a single policy factory is used to create each of the
// different types of PortableServer policies.
- static CORBA::PolicyType const type[] = {
+ CORBA::PolicyType type[] = {
#if (TAO_HAS_MINIMUM_POA == 0)
PortableServer::THREAD_POLICY_ID,
PortableServer::IMPLICIT_ACTIVATION_POLICY_ID,
@@ -67,10 +61,10 @@ TAO_PortableServer_ORBInitializer::register_policy_factories (
PortableServer::ID_ASSIGNMENT_POLICY_ID
};
- CORBA::PolicyType const * end =
+ const CORBA::PolicyType *end =
type + sizeof (type) / sizeof (type[0]);
- for (CORBA::PolicyType const *i = type;
+ for (CORBA::PolicyType *i = type;
i != end;
++i)
{
@@ -103,5 +97,3 @@ TAO_PortableServer_ORBInitializer::register_policy_factories (
ACE_CHECK;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/PortableServer_ORBInitializer.h b/TAO/tao/PI_Server/PortableServer_ORBInitializer.h
index 8aba0600ea2..903e5adc5f9 100644
--- a/TAO/tao/PI_Server/PortableServer_ORBInitializer.h
+++ b/TAO/tao/PI_Server/PortableServer_ORBInitializer.h
@@ -15,19 +15,17 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/PI.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/PI/PI.h"
#include "tao/LocalObject.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// PortableServer ORB initializer.
-class TAO_PortableServer_ORBInitializer
+class TAO_PI_Server_Export TAO_PortableServer_ORBInitializer
: public virtual PortableInterceptor::ORBInitializer,
public virtual TAO_Local_RefCounted_Object
{
@@ -58,8 +56,6 @@ private:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_ORB_INITIALIZER_H */
diff --git a/TAO/tao/PI_Server/PortableServer_PolicyFactory.cpp b/TAO/tao/PI_Server/PortableServer_PolicyFactory.cpp
index 484403b2b32..9171b7c7e33 100644
--- a/TAO/tao/PI_Server/PortableServer_PolicyFactory.cpp
+++ b/TAO/tao/PI_Server/PortableServer_PolicyFactory.cpp
@@ -1,5 +1,5 @@
-#include "tao/PI_Server/PortableServer_PolicyFactory.h"
+#include "PortableServer_PolicyFactory.h"
#include "tao/PortableServer/ThreadPolicy.h"
#include "tao/PortableServer/LifespanPolicy.h"
@@ -9,14 +9,12 @@
#include "tao/PortableServer/RequestProcessingPolicy.h"
#include "tao/PortableServer/ServantRetentionPolicy.h"
#include "tao/PortableServer/PortableServer.h"
-#include "tao/PI_Server/Policy_Creator_T.h"
+#include "Policy_Creator_T.h"
ACE_RCSID (PortableServer,
PortableServer_PolicyFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy_ptr
TAO_PortableServer_PolicyFactory::create_policy (
CORBA::PolicyType type,
@@ -113,5 +111,3 @@ TAO_PortableServer_PolicyFactory::create_policy (
ACE_THROW_RETURN (CORBA::PolicyError (CORBA::BAD_POLICY_TYPE),
CORBA::Policy::_nil ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/PortableServer_PolicyFactory.h b/TAO/tao/PI_Server/PortableServer_PolicyFactory.h
index 1a0c06ff21a..d24a1e001aa 100644
--- a/TAO/tao/PI_Server/PortableServer_PolicyFactory.h
+++ b/TAO/tao/PI_Server/PortableServer_PolicyFactory.h
@@ -15,18 +15,17 @@
#include /**/ "ace/pre.h"
-#include "tao/PI/PI.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/PI/PI.h"
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Policy factory for all PortableServer related policies.
-class TAO_PortableServer_PolicyFactory
+class TAO_PI_Server_Export TAO_PortableServer_PolicyFactory
: public virtual PortableInterceptor::PolicyFactory,
public virtual TAO_Local_RefCounted_Object
{
@@ -38,8 +37,6 @@ public:
CORBA::PolicyError));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_POLICY_FACTORY_H */
diff --git a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
index 4b004d89f7b..114ee17f0cf 100644
--- a/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
+++ b/TAO/tao/PI_Server/ServerInterceptorAdapter.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PI_Server/ServerInterceptorAdapter.h"
+#include "ServerInterceptorAdapter.h"
#if TAO_HAS_INTERCEPTORS == 1
@@ -8,8 +8,8 @@ ACE_RCSID (PortableServer,
ServerInterceptorAdapter,
"$Id$")
-#include "tao/PI_Server/ServerRequestInfo.h"
-#include "tao/PI_Server/PICurrent_Guard.h"
+#include "ServerRequestInfo.h"
+#include "PICurrent_Guard.h"
#include "tao/ServerRequestInterceptor_Adapter.h"
#include "tao/TAO_Server_Request.h"
@@ -19,8 +19,6 @@ ACE_RCSID (PortableServer,
#include "tao/PortableServer/Upcall_Command.h"
#include "tao/PortableInterceptor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::ServerRequestInterceptor_Adapter_Impl::ServerRequestInterceptor_Adapter_Impl (void)
{
}
@@ -42,38 +40,26 @@ TAO::ServerRequestInterceptor_Adapter_Impl::tao_ft_interception_point (
ACE_TRY
{
- oc = 0;
+ // Copy the request scope current (RSC) to the thread scope
+ // current (TSC) upon leaving this scope, i.e. just after the
+ // receive_request_service_contexts() completes. A "guard" is
+ // used to make the copy also occur if an exception is thrown.
+ TAO::PICurrent_Guard const pi_guard (ri->server_request (),
+ false /* Copy RSC to TSC */);
- bool is_remote_request = !server_request.collocated ();
- TAO::ServerRequestInfo request_info (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions);
+ oc = 0;
for (size_t i = 0 ; i < this->interceptor_list_.size(); ++i)
{
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (i);
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- tao_ft_interception_point (&request_info,
- oc
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptors_[i]->tao_ft_interception_point (
+ ri,
+ oc
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
if (oc != 0)
{
- (void) this->send_other (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions
+ (void) this->send_other (ri
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -87,16 +73,12 @@ TAO::ServerRequestInterceptor_Adapter_Impl::tao_ft_interception_point (
}
ACE_CATCH (PortableInterceptor::ForwardRequest, exc)
{
- server_request.forward_location (exc.forward.in ());
- server_request.reply_status (PortableInterceptor::LOCATION_FORWARD);
- (void) this->send_other (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions
- ACE_ENV_ARG_PARAMETER);
+ ri->forward_reference (exc);
+ this->send_other (ri
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+
+ this->location_forwarded_ = true;
}
ACE_ENDTRY;
ACE_CHECK;
@@ -114,8 +96,7 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request_service_contexts (
{
// This method implements one of the "intermediate" server side
// interception point.
-
- if (this->interceptor_list_.size() != server_request.interceptor_count ())
+ if (this->interceptor_list_.size() != this->server_request.interceptor_count ())
{
// This method (i.e. the receive_request() interception point)
// should only be invoked if all of the interceptors registered
@@ -134,43 +115,25 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request_service_contexts (
// current (TSC) upon leaving this scope, i.e. just after the
// receive_request_service_contexts() completes. A "guard" is
// used to make the copy also occur if an exception is thrown.
- TAO::PICurrent_Guard const pi_guard (server_request,
+ TAO::PICurrent_Guard const pi_guard (ri->server_request (),
false /* Copy RSC to TSC */);
- bool is_remote_request = !server_request.collocated ();
- TAO::ServerRequestInfo request_info (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions);
-
for (size_t i = 0 ; i < server_request.interceptor_count (); ++i)
{
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (i);
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- receive_request_service_contexts (&request_info
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptors_[i]->receive_request_service_contexts (
+ ri
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
}
ACE_CATCH (PortableInterceptor::ForwardRequest, exc)
{
- server_request.forward_location (exc.forward.in ());
- server_request.reply_status (PortableInterceptor::LOCATION_FORWARD);
- (void) this->send_other (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions
- ACE_ENV_ARG_PARAMETER);
+ ri->forward_reference (exc);
+ this->send_other (ri
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+
+ this->location_forwarded_ = true;
}
ACE_ENDTRY;
ACE_CHECK;
@@ -191,11 +154,20 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request_service_contexts (
CORBA::ULong nexceptions
ACE_ENV_ARG_DECL)
{
+
// This method implements one of the "starting" server side
// interception point if extended interceptors are not in place.
+ TAO::ServerRequestInfo request_info (server_request,
+ args,
+ nargs,
+ servant_upcall,
+ exceptions,
+ nexceptions);
+
ACE_TRY
{
+
// Copy the request scope current (RSC) to the thread scope
// current (TSC) upon leaving this scope, i.e. just after the
// receive_request_service_contexts() completes. A "guard" is
@@ -203,27 +175,13 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request_service_contexts (
TAO::PICurrent_Guard const pi_guard (server_request,
false /* Copy RSC to TSC */);
- bool is_remote_request = !server_request.collocated ();
-
- TAO::ServerRequestInfo request_info (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions);
-
for (size_t i = 0 ; i < this->interceptor_list_.size(); ++i)
{
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (i);
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- receive_request_service_contexts (&request_info
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor(i)->
+ receive_request_service_contexts (
+ &request_info
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
// The starting interception point completed successfully.
// Push the interceptor on to the flow stack.
@@ -234,13 +192,13 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request_service_contexts (
{
server_request.forward_location (exc.forward.in ());
server_request.reply_status (PortableInterceptor::LOCATION_FORWARD);
- (void) this->send_other (server_request,
- args,
- nargs,
- servant_upcall,
- exceptions,
- nexceptions
- ACE_ENV_ARG_PARAMETER);
+ this->send_other (server_request,
+ args,
+ nargs,
+ servant_upcall,
+ exceptions,
+ nexceptions
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_ENDTRY;
@@ -283,22 +241,17 @@ TAO::ServerRequestInterceptor_Adapter_Impl::receive_request (
exceptions,
nexceptions);
+ TAO::PICurrent_Guard pi_guard (server_request,
+ true /* Copy TSC to RSC */);
+
ACE_TRY
{
- bool is_remote_request = !server_request.collocated ();
-
for (size_t i = 0; i < server_request.interceptor_count (); ++i)
{
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (i);
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- receive_request (&request_info
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor(i)->receive_request (
+ &request_info
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
// Note that no interceptors are pushed on to or popped off
// of the flow stack in this interception point since it is
@@ -336,8 +289,6 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_reply (
// This is an "ending" interception point so we only process the
// interceptors pushed on to the flow stack.
- bool is_remote_request = !server_request.collocated ();
-
// Notice that the interceptors are processed in the opposite order
// they were pushed onto the stack since this is an "ending"
// interception point.
@@ -359,17 +310,11 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_reply (
// invoked in another "ending" interception point.
--server_request.interceptor_count ();
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (
- server_request.interceptor_count ());
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- send_reply (&request_info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
+ this->interceptor_list_.interceptor (
+ server_request.interceptor_count ())->send_reply (
+ &request_info
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK;
}
// The send_reply() interception point does not raise a
@@ -390,8 +335,6 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_exception (
// This is an "ending" server side interception point so we only
// process the interceptors pushed on to the flow stack.
- bool is_remote_request = !server_request.collocated ();
-
// Notice that the interceptors are processed in the opposite order
// they were pushed onto the stack since this is an "ending" server
// side interception point.
@@ -415,17 +358,11 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_exception (
// being invoked in another "ending" interception point.
--server_request.interceptor_count ();
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (
- server_request.interceptor_count ());
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- send_exception (&request_info
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor (
+ server_request.interceptor_count ())->send_exception (
+ &request_info
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
}
ACE_CATCH (PortableInterceptor::ForwardRequest, exc)
@@ -491,8 +428,6 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_other (
// This is an "ending" server side interception point so we only
// process the interceptors pushed on to the flow stack.
- bool is_remote_request = !server_request.collocated ();
-
TAO::ServerRequestInfo request_info (server_request,
args,
nargs,
@@ -516,17 +451,11 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_other (
// being invoked in another "ending" interception point.
--server_request.interceptor_count ();
- ServerRequestInterceptor_List::RegisteredInterceptor& registered =
- this->interceptor_list_.registered_interceptor (
- server_request.interceptor_count ());
-
- if (registered.details_.should_be_processed (is_remote_request))
- {
- registered.interceptor_->
- send_other (&request_info
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
+ this->interceptor_list_.interceptor(
+ server_request.interceptor_count ())->send_other (
+ &request_info
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
}
ACE_CATCH (PortableInterceptor::ForwardRequest, exc)
@@ -546,6 +475,7 @@ TAO::ServerRequestInterceptor_Adapter_Impl::send_other (
ACE_CHECK;
}
+
void
TAO::ServerRequestInterceptor_Adapter_Impl::add_interceptor (
PortableInterceptor::ServerRequestInterceptor_ptr interceptor
@@ -555,17 +485,6 @@ TAO::ServerRequestInterceptor_Adapter_Impl::add_interceptor (
}
void
-TAO::ServerRequestInterceptor_Adapter_Impl::add_interceptor (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
-{
- this->interceptor_list_.add_interceptor (interceptor,
- policies
- ACE_ENV_ARG_PARAMETER);
-}
-
-void
TAO::ServerRequestInterceptor_Adapter_Impl::destroy_interceptors (
ACE_ENV_SINGLE_ARG_DECL)
{
@@ -578,17 +497,17 @@ TAO::ServerRequestInterceptor_Adapter_Impl::allocate_pi_current (void)
TAO::PICurrent_Impl *pi = 0;
ACE_NEW_RETURN (pi,
TAO::PICurrent_Impl,
- pi);
+ 0);
return pi;
}
TAO::PICurrent_Copy_Callback *
TAO::ServerRequestInterceptor_Adapter_Impl::allocate_pi_current_callback (void)
{
- TAO::PICurrent_Copy_Callback * pi = 0;
+ TAO::PICurrent_Copy_Callback *pi = 0;
ACE_NEW_RETURN (pi,
TAO::PICurrent_Copy_Callback,
- pi);
+ 0);
return pi;
}
@@ -601,25 +520,24 @@ TAO::ServerRequestInterceptor_Adapter_Impl::deallocate_pi_current (
void
TAO::ServerRequestInterceptor_Adapter_Impl::deallocate_pi_current_callback (
- TAO::PICurrent_Copy_Callback * callback)
+ TAO::PICurrent_Copy_Callback *callback)
{
delete callback;
}
void
TAO::ServerRequestInterceptor_Adapter_Impl::execute_command (
- TAO_ServerRequest & server_request,
- TAO::Upcall_Command & command
+ TAO_ServerRequest &server_request,
+ TAO::Upcall_Command &command
ACE_ENV_ARG_DECL)
{
- TAO::PICurrent_Guard const pi_guard (server_request,
- true /* Copy TSC to RSC */);
+ TAO::PICurrent_Guard pi_guard (server_request,
+ true /* Copy TSC to RSC */);
// The actual upcall.
command.execute (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI_Server/ServerInterceptorAdapter.h b/TAO/tao/PI_Server/ServerInterceptorAdapter.h
index b9217c4ac50..6fa2e115b6c 100644
--- a/TAO/tao/PI_Server/ServerInterceptorAdapter.h
+++ b/TAO/tao/PI_Server/ServerInterceptorAdapter.h
@@ -20,37 +20,28 @@
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/orbconf.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI_Server/ServerRequestInterceptorC.h"
+#include "ServerRequestInterceptorC.h"
#include "tao/PI/Interceptor_List_T.h"
#include "tao/ServerRequestInterceptor_Adapter.h"
#include "tao/Basic_Types.h"
-#include "tao/PI_Server/ServerRequestDetails.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
- typedef Interceptor_List< ::PortableInterceptor::ServerRequestInterceptor,
- ServerRequestDetails>
+ typedef Interceptor_List< ::PortableInterceptor::ServerRequestInterceptor>
ServerRequestInterceptor_List;
}
-namespace CORBA
-{
- class PolicyList;
-}
-
class TAO_ServerRequest;
namespace TAO
@@ -65,8 +56,8 @@ namespace TAO
* A convenient helper class to invoke registered server request
* interceptor(s).
*/
- class ServerRequestInterceptor_Adapter_Impl
- : public ServerRequestInterceptor_Adapter
+ class TAO_PI_Server_Export ServerRequestInterceptor_Adapter_Impl :
+ public ServerRequestInterceptor_Adapter
{
public:
@@ -161,11 +152,6 @@ namespace TAO
PortableInterceptor::ServerRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL);
- virtual void add_interceptor (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
virtual void destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL);
virtual TAO::PICurrent_Impl *allocate_pi_current (void);
@@ -192,8 +178,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI_Server/ServerRequestDetails.cpp b/TAO/tao/PI_Server/ServerRequestDetails.cpp
deleted file mode 100644
index 3bc4852ec1a..00000000000
--- a/TAO/tao/PI_Server/ServerRequestDetails.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#include "tao/PI_Server/ServerRequestDetails.h"
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#if !defined (__ACE_INLINE__)
-#include "tao/PI_Server/ServerRequestDetails.inl"
-#endif /* defined INLINE */
-
-ACE_RCSID (PI_Server,
- ServerRequestDetails,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- void
- ServerRequestDetails::apply_policies (
- const CORBA::PolicyList &policies
- ACE_ENV_ARG_DECL)
- {
- // Flag to check for duplicate ProcessingModePolicy objects in the list.
- bool processing_mode_applied = false;
-
- const CORBA::ULong plen = policies.length ();
-
- for (CORBA::ULong i = 0; i < plen; ++i)
- {
- CORBA::Policy_var policy = policies[i];
-
- if (CORBA::is_nil (policy.in ()))
- {
- // Just ignore nil policies...
- continue;
- }
-
- // Obtain the PolicyType from the current Policy object.
- const CORBA::PolicyType policy_type =
- policy->policy_type (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- if (policy_type == PortableInterceptor::PROCESSING_MODE_POLICY_TYPE)
- {
- if (processing_mode_applied)
- {
- // This is the second time we have run into this policy type,
- // and that is not allowed.
- ACE_THROW (CORBA::INV_POLICY ());
- }
-
- // Flip the flag to true in order to trap any dupes.
- processing_mode_applied = true;
-
- // Narrow the Policy to the ProcessingModePolicy interface.
- PortableInterceptor::ProcessingModePolicy_var pm_policy =
- PortableInterceptor::ProcessingModePolicy::_narrow (
- policy.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Save the value of the ProcessingModePolicy in our data member.
- this->processing_mode_ =
- pm_policy->processing_mode (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- // We don't support the current policy type.
- ACE_THROW (CORBA::INV_POLICY ());
- }
- }
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI_Server/ServerRequestDetails.h b/TAO/tao/PI_Server/ServerRequestDetails.h
deleted file mode 100644
index fc34a6a66f5..00000000000
--- a/TAO/tao/PI_Server/ServerRequestDetails.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ServerRequestDetails.h
- *
- * $Id$
- *
- * This file declares a class that manages the details
- * about a registered server request interceptor. Policies can be
- * used when interceptors are registered, and the policy values
- * will be processed and used to modify the values of the
- * ServerRequestDetails object associated with the registered
- * server request interceptor.
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef TAO_SERVER_REQUEST_DETAILS_H
-#define TAO_SERVER_REQUEST_DETAILS_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#if TAO_HAS_INTERCEPTORS == 1
-
-#include "tao/PI/ProcessingModePolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- /**
- * @class ServerRequestDetails
- *
- * @brief The policy-driven details for a registered server request
- * interceptor
- *
- * Each time a server request interceptor is registered with an ORB,
- * a ServerRequestDetails object will be created and associated with
- * the registered server request interceptor. If the interceptor is
- * registered with policies, the policies will be used to adjust the
- * values in the ServerRequestDetails appropriately.
- */
- class ServerRequestDetails
- {
- public:
- ServerRequestDetails (void);
-
- void apply_policies (const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
- /// Returns true if the ProcessingMode setting permits the "firing"
- /// of the associated server request interceptor based upon the
- /// remote vs. collocated nature of the current servant request
- /// that is being dispatched.
- bool should_be_processed (bool is_remote_request) const;
-
- private:
-
- /// The ProcessingMode setting that can be adjusted via the
- /// PortableInterceptor::ProcessingModePolicy.
- PortableInterceptor::ProcessingMode processing_mode_;
- };
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-#include "tao/PI_Server/ServerRequestDetails.inl"
-#endif /* __ACE_INLINE__ */
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_SERVER_REQUEST_DETAILS_H */
diff --git a/TAO/tao/PI_Server/ServerRequestDetails.inl b/TAO/tao/PI_Server/ServerRequestDetails.inl
deleted file mode 100644
index f653264bdac..00000000000
--- a/TAO/tao/PI_Server/ServerRequestDetails.inl
+++ /dev/null
@@ -1,27 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- ACE_INLINE
- ServerRequestDetails::ServerRequestDetails (void)
- : processing_mode_(PortableInterceptor::LOCAL_AND_REMOTE)
- {
- }
-
- ACE_INLINE
- bool
- ServerRequestDetails::should_be_processed (bool is_remote_request) const
- {
- return ((this->processing_mode_ == PortableInterceptor::LOCAL_AND_REMOTE) ||
- ((this->processing_mode_ == PortableInterceptor::REMOTE_ONLY) &&
- (is_remote_request)) ||
- ((this->processing_mode_ == PortableInterceptor::LOCAL_ONLY) &&
- (!is_remote_request)));
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/ServerRequestInfo.cpp b/TAO/tao/PI_Server/ServerRequestInfo.cpp
index b0b50f027d2..2b613ec3738 100644
--- a/TAO/tao/PI_Server/ServerRequestInfo.cpp
+++ b/TAO/tao/PI_Server/ServerRequestInfo.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "tao/PI_Server/ServerRequestInfo.h"
+#include "ServerRequestInfo.h"
#if (TAO_HAS_INTERCEPTORS == 1)
-ACE_RCSID (PI_Server,
+ACE_RCSID (PortableServer,
ServerRequestInfo,
"$Id$")
@@ -26,10 +26,9 @@ ACE_RCSID (PI_Server,
#include "ace/OS_NS_string.h"
# if !defined (__ACE_INLINE__)
-# include "tao/PI_Server/ServerRequestInfo.inl"
+# include "ServerRequestInfo.inl"
# endif /* !__ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::ULong
TAO::ServerRequestInfo::request_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
@@ -587,6 +586,4 @@ TAO::ServerRequestInfo::add_reply_service_context (
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_INTERCEPTORS == 1 */
diff --git a/TAO/tao/PI_Server/ServerRequestInfo.h b/TAO/tao/PI_Server/ServerRequestInfo.h
index afce3a85690..7b79d9eed83 100644
--- a/TAO/tao/PI_Server/ServerRequestInfo.h
+++ b/TAO/tao/PI_Server/ServerRequestInfo.h
@@ -27,7 +27,8 @@
#if (TAO_HAS_INTERCEPTORS == 1)
-#include "tao/PI_Server/ServerRequestInfoC.h"
+#include "pi_server_export.h"
+#include "ServerRequestInfoC.h"
#include "tao/LocalObject.h"
#include "tao/OctetSeqC.h"
#include "tao/TAO_Server_Request.h"
@@ -39,8 +40,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ServerRequest;
class TAO_Service_Context;
@@ -66,9 +65,9 @@ namespace TAO
* @note This class is currently not meant to be reference counted
* since it is instantiated on the stack.
*/
- class ServerRequestInfo
- : public virtual PortableInterceptor::ServerRequestInfo
- , public virtual CORBA::LocalObject
+ class TAO_PI_Server_Export ServerRequestInfo
+ : public virtual PortableInterceptor::ServerRequestInfo,
+ public virtual CORBA::LocalObject
{
public:
@@ -299,10 +298,9 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
# if defined (__ACE_INLINE__)
-# include "tao/PI_Server/ServerRequestInfo.inl"
+# include "ServerRequestInfo.inl"
# endif /* __ACE_INLINE__ */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PI_Server/ServerRequestInfo.inl b/TAO/tao/PI_Server/ServerRequestInfo.inl
index 09985532ba8..3ba06ed412b 100644
--- a/TAO/tao/PI_Server/ServerRequestInfo.inl
+++ b/TAO/tao/PI_Server/ServerRequestInfo.inl
@@ -5,8 +5,6 @@
#include "tao/PortableServer/Servant_Upcall.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::ServerRequestInfo::ServerRequestInfo (
TAO_ServerRequest & server_request,
@@ -56,5 +54,3 @@ TAO::ServerRequestInfo::server_request (void)
return this->server_request_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/ServerRequestInfo.pidl b/TAO/tao/PI_Server/ServerRequestInfo.pidl
index d8a4c52639d..9670dd42b02 100644
--- a/TAO/tao/PI_Server/ServerRequestInfo.pidl
+++ b/TAO/tao/PI_Server/ServerRequestInfo.pidl
@@ -23,8 +23,8 @@
#define _SERVER_REQUESTINFO_PIDL_
#include "tao/PI/RequestInfo.pidl"
-#include "tao/orb_types.pidl"
-#include "tao/Policy_Forward.pidl"
+#include <orb_types.pidl>
+#include <Policy_Forward.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PI_Server/ServerRequestInfoA.cpp b/TAO/tao/PI_Server/ServerRequestInfoA.cpp
index 94ad278401d..1dc8ac2a761 100644
--- a/TAO/tao/PI_Server/ServerRequestInfoA.cpp
+++ b/TAO/tao/PI_Server/ServerRequestInfoA.cpp
@@ -25,29 +25,26 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI_Server/ServerRequestInfoA.h"
+#include "ServerRequestInfoC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_ServerRequestInfo (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/ServerRequestInfo:1.0",
"ServerRequestInfo");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_ServerRequestInfo =
@@ -55,4 +52,78 @@ namespace PortableInterceptor
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ServerRequestInfo>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ServerRequestInfo>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ServerRequestInfo>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ServerRequestInfo_ptr _tao_elem
+ )
+{
+ PortableInterceptor::ServerRequestInfo_ptr _tao_objptr =
+ PortableInterceptor::ServerRequestInfo::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ServerRequestInfo_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::ServerRequestInfo>::insert (
+ _tao_any,
+ PortableInterceptor::ServerRequestInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_ServerRequestInfo,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ServerRequestInfo_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::ServerRequestInfo>::extract (
+ _tao_any,
+ PortableInterceptor::ServerRequestInfo::_tao_any_destructor,
+ PortableInterceptor::_tc_ServerRequestInfo,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI_Server/ServerRequestInfoA.h b/TAO/tao/PI_Server/ServerRequestInfoA.h
deleted file mode 100644
index 1766f29ea93..00000000000
--- a/TAO/tao/PI_Server/ServerRequestInfoA.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_SERVERREQUESTINFOA_H_
-#define _TAO_IDL_SERVERREQUESTINFOA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI_Server/pi_server_export.h"
-#include "tao/PI_Server/ServerRequestInfoC.h"
-#include "tao/PI/RequestInfoA.h"
-#include "tao/AnyTypeCode/orb_typesA.h"
-#include "tao/AnyTypeCode/Policy_ForwardA.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Server_Export ::CORBA::TypeCode_ptr const _tc_ServerRequestInfo;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI_Server/ServerRequestInfoC.cpp b/TAO/tao/PI_Server/ServerRequestInfoC.cpp
index 69fcd9ec298..eab818b9b7f 100644
--- a/TAO/tao/PI_Server/ServerRequestInfoC.cpp
+++ b/TAO/tao/PI_Server/ServerRequestInfoC.cpp
@@ -26,19 +26,21 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI_Server/ServerRequestInfoC.h"
+#include "ServerRequestInfoC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -72,13 +74,13 @@ TAO::Objref_Traits<PortableInterceptor::ServerRequestInfo>::nil (void)
return PortableInterceptor::ServerRequestInfo::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::ServerRequestInfo>::marshal (
PortableInterceptor::ServerRequestInfo_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::ServerRequestInfo::ServerRequestInfo (void)
@@ -87,9 +89,17 @@ PortableInterceptor::ServerRequestInfo::ServerRequestInfo (void)
PortableInterceptor::ServerRequestInfo::~ServerRequestInfo (void)
{}
+void
+PortableInterceptor::ServerRequestInfo::_tao_any_destructor (void *_tao_void_pointer)
+{
+ ServerRequestInfo *_tao_tmp_pointer =
+ static_cast<ServerRequestInfo *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::ServerRequestInfo_ptr
PortableInterceptor::ServerRequestInfo::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -100,7 +110,7 @@ PortableInterceptor::ServerRequestInfo::_narrow (
PortableInterceptor::ServerRequestInfo_ptr
PortableInterceptor::ServerRequestInfo::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -126,7 +136,7 @@ PortableInterceptor::ServerRequestInfo::_tao_release (ServerRequestInfo_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ServerRequestInfo::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -164,10 +174,8 @@ const char* PortableInterceptor::ServerRequestInfo::_interface_repository_id (vo
return "IDL:omg.org/PortableInterceptor/ServerRequestInfo:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ServerRequestInfo::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/ServerRequestInfoC.h b/TAO/tao/PI_Server/ServerRequestInfoC.h
index bcefdc89906..6cbeedeb0dc 100644
--- a/TAO/tao/PI_Server/ServerRequestInfoC.h
+++ b/TAO/tao/PI_Server/ServerRequestInfoC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_SERVERREQUESTINFOC_H_
-#define _TAO_IDL_SERVERREQUESTINFOC_H_
+#ifndef _TAO_IDL_ORIG_SERVERREQUESTINFOC_H_
+#define _TAO_IDL_ORIG_SERVERREQUESTINFOC_H_
#include /**/ "ace/pre.h"
@@ -41,13 +41,14 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PI_Server/pi_server_export.h"
+#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/PI/RequestInfoC.h"
@@ -59,29 +60,36 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Server_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
+
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
-
+
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__VAR_OUT_CH_
-
+
class ServerRequestInfo;
typedef ServerRequestInfo *ServerRequestInfo_ptr;
-
+
typedef
TAO_Objref_Var_T<
ServerRequestInfo
>
ServerRequestInfo_var;
-
+
typedef
TAO_Objref_Out_T<
ServerRequestInfo
@@ -89,187 +97,192 @@ namespace PortableInterceptor
ServerRequestInfo_out;
#endif /* end #if !defined */
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:54
#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO_CH_)
#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO_CH_
-
+
class TAO_PI_Server_Export ServerRequestInfo
: public virtual ::PortableInterceptor::RequestInfo
{
public:
typedef ServerRequestInfo_ptr _ptr_type;
typedef ServerRequestInfo_var _var_type;
-
+
// The static operations.
static ServerRequestInfo_ptr _duplicate (ServerRequestInfo_ptr obj);
-
+
static void _tao_release (ServerRequestInfo_ptr obj);
-
+
static ServerRequestInfo_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ServerRequestInfo_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
static ServerRequestInfo_ptr _nil (void)
{
return static_cast<ServerRequestInfo_ptr> (0);
}
-
-
-
+
+ static void _tao_any_destructor (void *);
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Any * sending_exception (
+
+ virtual CORBA::Any * sending_exception (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual char * server_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual char * orb_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::PortableInterceptor::AdapterName * adapter_name (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::PortableInterceptor::ObjectId * object_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::CORBA::OctetSeq * adapter_id (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual char * target_most_derived_interface (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual ::CORBA::Policy_ptr get_server_policy (
::CORBA::PolicyType type
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void set_slot (
::PortableInterceptor::SlotId id,
const ::CORBA::Any & data
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::InvalidSlot
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Boolean target_is_a (
+
+ virtual CORBA::Boolean target_is_a (
const char * id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void add_reply_service_context (
const ::IOP::ServiceContext & service_context,
::CORBA::Boolean replace
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
ServerRequestInfo (void);
-
+
virtual ~ServerRequestInfo (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
ServerRequestInfo (const ServerRequestInfo &);
-
+
void operator= (const ServerRequestInfo &);
};
#endif /* end #if !defined */
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Server_Export ::CORBA::TypeCode_ptr const _tc_ServerRequestInfo;
+
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -280,9 +293,9 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_CH_
+
template<>
struct TAO_PI_Server_Export Objref_Traits< ::PortableInterceptor::ServerRequestInfo>
{
@@ -293,7 +306,7 @@ namespace TAO
::PortableInterceptor::ServerRequestInfo_ptr
);
static ::PortableInterceptor::ServerRequestInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ServerRequestInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -303,9 +316,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Server_Export void operator<<= (CORBA::Any &, PortableInterceptor::ServerRequestInfo_ptr); // copying
+TAO_PI_Server_Export void operator<<= (CORBA::Any &, PortableInterceptor::ServerRequestInfo_ptr *); // non-copying
+TAO_PI_Server_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ServerRequestInfo_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptor.pidl b/TAO/tao/PI_Server/ServerRequestInterceptor.pidl
index 571b35e9c73..1235962e161 100644
--- a/TAO/tao/PI_Server/ServerRequestInterceptor.pidl
+++ b/TAO/tao/PI_Server/ServerRequestInterceptor.pidl
@@ -28,7 +28,7 @@
#include "tao/PI/Interceptor.pidl"
#include "tao/PI/PIForwardRequest.pidl"
-#include "tao/OctetSeq.pidl"
+#include <OctetSeq.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp b/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp
index 8f5dfb63340..58a08ac8132 100644
--- a/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp
+++ b/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp
@@ -25,29 +25,26 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/PI_Server/ServerRequestInterceptorA.h"
+#include "ServerRequestInterceptorC.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Any.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
static TAO::TypeCode::Objref<char const *,
TAO::Null_RefCount_Policy>
_tao_tc_PortableInterceptor_ServerRequestInterceptor (
- ::CORBA::tk_local_interface,
+ CORBA::tk_local_interface,
"IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0",
"ServerRequestInterceptor");
-
+
namespace PortableInterceptor
{
::CORBA::TypeCode_ptr const _tc_ServerRequestInterceptor =
@@ -55,4 +52,78 @@ namespace PortableInterceptor
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ServerRequestInterceptor>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ServerRequestInterceptor>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableInterceptor::ServerRequestInterceptor>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ServerRequestInterceptor_ptr _tao_elem
+ )
+{
+ PortableInterceptor::ServerRequestInterceptor_ptr _tao_objptr =
+ PortableInterceptor::ServerRequestInterceptor::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableInterceptor::ServerRequestInterceptor_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableInterceptor::ServerRequestInterceptor>::insert (
+ _tao_any,
+ PortableInterceptor::ServerRequestInterceptor::_tao_any_destructor,
+ PortableInterceptor::_tc_ServerRequestInterceptor,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableInterceptor::ServerRequestInterceptor_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableInterceptor::ServerRequestInterceptor>::extract (
+ _tao_any,
+ PortableInterceptor::ServerRequestInterceptor::_tao_any_destructor,
+ PortableInterceptor::_tc_ServerRequestInterceptor,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorA.h b/TAO/tao/PI_Server/ServerRequestInterceptorA.h
deleted file mode 100644
index 6ed94797f14..00000000000
--- a/TAO/tao/PI_Server/ServerRequestInterceptorA.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// TAO_IDL - Generated from
-// be\be_codegen.cpp:754
-
-#ifndef _TAO_IDL_SERVERREQUESTINTERCEPTORA_H_
-#define _TAO_IDL_SERVERREQUESTINTERCEPTORA_H_
-
-#include /**/ "ace/pre.h"
-
-#include "tao/PI_Server/pi_server_export.h"
-#include "tao/PI_Server/ServerRequestInterceptorC.h"
-#include "tao/PI/InterceptorA.h"
-#include "tao/PI/PIForwardRequestA.h"
-#include "tao/AnyTypeCode/OctetSeqA.h"
-
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:59
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace PortableInterceptor
-{
-
- // TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
-
- extern TAO_PI_Server_Export ::CORBA::TypeCode_ptr const _tc_ServerRequestInterceptor;
-
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:86
-
-} // module PortableInterceptor
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-
-#endif /* ifndef */
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp b/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp
index db1e8a5d4e2..82e30f3c415 100644
--- a/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp
+++ b/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp
@@ -26,19 +26,21 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PI_Server/ServerRequestInterceptorC.h"
+#include "ServerRequestInterceptorC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -72,13 +74,13 @@ TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::nil (void)
return PortableInterceptor::ServerRequestInterceptor::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::marshal (
PortableInterceptor::ServerRequestInterceptor_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor (void)
@@ -87,9 +89,17 @@ PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor (void)
PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor (void)
{}
+void
+PortableInterceptor::ServerRequestInterceptor::_tao_any_destructor (void *_tao_void_pointer)
+{
+ ServerRequestInterceptor *_tao_tmp_pointer =
+ static_cast<ServerRequestInterceptor *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableInterceptor::ServerRequestInterceptor_ptr
PortableInterceptor::ServerRequestInterceptor::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -100,7 +110,7 @@ PortableInterceptor::ServerRequestInterceptor::_narrow (
PortableInterceptor::ServerRequestInterceptor_ptr
PortableInterceptor::ServerRequestInterceptor::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -126,7 +136,7 @@ PortableInterceptor::ServerRequestInterceptor::_tao_release (ServerRequestInterc
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ServerRequestInterceptor::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -164,10 +174,8 @@ const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository
return "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableInterceptor::ServerRequestInterceptor::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorC.h b/TAO/tao/PI_Server/ServerRequestInterceptorC.h
index ec784b9d706..826741ec9e6 100644
--- a/TAO/tao/PI_Server/ServerRequestInterceptorC.h
+++ b/TAO/tao/PI_Server/ServerRequestInterceptorC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_SERVERREQUESTINTERCEPTORC_H_
-#define _TAO_IDL_SERVERREQUESTINTERCEPTORC_H_
+#ifndef _TAO_IDL_ORIG_SERVERREQUESTINTERCEPTORC_H_
+#define _TAO_IDL_ORIG_SERVERREQUESTINTERCEPTORC_H_
#include /**/ "ace/pre.h"
@@ -41,6 +41,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PI_Server/pi_server_export.h"
+#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -56,16 +57,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_PI_Server_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableInterceptor
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__VAR_OUT_CH_
@@ -88,7 +96,7 @@ namespace PortableInterceptor
#endif /* end #if !defined */
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__VAR_OUT_CH_)
#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__VAR_OUT_CH_
@@ -129,12 +137,12 @@ namespace PortableInterceptor
static void _tao_release (ServerRequestInterceptor_ptr obj);
static ServerRequestInterceptor_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static ServerRequestInterceptor_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -143,7 +151,7 @@ namespace PortableInterceptor
return static_cast<ServerRequestInterceptor_ptr> (0);
}
-
+ static void _tao_any_destructor (void *);
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
@@ -156,7 +164,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_NOT_USED
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) {}
@@ -170,7 +178,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
@@ -182,7 +190,7 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
@@ -194,61 +202,66 @@ namespace PortableInterceptor
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException
+ CORBA::SystemException
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void send_exception (
::PortableInterceptor::ServerRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_operation/operation_ch.cpp:46
-
+
virtual void send_other (
::PortableInterceptor::ServerRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableInterceptor::ForwardRequest
)) = 0;
-
+
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
-
- virtual ::CORBA::Boolean _is_a (
+
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
-
+
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
-
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+
protected:
// Abstract or local interface only.
ServerRequestInterceptor (void);
-
+
virtual ~ServerRequestInterceptor (void);
-
+
private:
// Private and unimplemented for concrete interfaces.
ServerRequestInterceptor (const ServerRequestInterceptor &);
-
+
void operator= (const ServerRequestInterceptor &);
};
#endif /* end #if !defined */
+
+ // TAO_IDL - Generated from
+ // be\be_visitor_typecode/typecode_decl.cpp:44
+
+ extern TAO_PI_Server_Export ::CORBA::TypeCode_ptr const _tc_ServerRequestInterceptor;
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableInterceptor
@@ -259,9 +272,9 @@ namespace PortableInterceptor
namespace TAO
{
-#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_)
-#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_CH_
+
template<>
struct TAO_PI_Server_Export Objref_Traits< ::PortableInterceptor::ServerRequestInfo>
{
@@ -272,7 +285,7 @@ namespace TAO
::PortableInterceptor::ServerRequestInfo_ptr
);
static ::PortableInterceptor::ServerRequestInfo_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ServerRequestInfo_ptr p,
TAO_OutputCDR & cdr
);
@@ -280,9 +293,9 @@ namespace TAO
#endif /* end #if !defined */
-#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_)
-#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_
-
+#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_CH_)
+#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_CH_
+
template<>
struct TAO_PI_Server_Export Objref_Traits< ::PortableInterceptor::ServerRequestInterceptor>
{
@@ -293,7 +306,7 @@ namespace TAO
::PortableInterceptor::ServerRequestInterceptor_ptr
);
static ::PortableInterceptor::ServerRequestInterceptor_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableInterceptor::ServerRequestInterceptor_ptr p,
TAO_OutputCDR & cdr
);
@@ -303,9 +316,22 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PI_Server_Export void operator<<= (CORBA::Any &, PortableInterceptor::ServerRequestInterceptor_ptr); // copying
+TAO_PI_Server_Export void operator<<= (CORBA::Any &, PortableInterceptor::ServerRequestInterceptor_ptr *); // non-copying
+TAO_PI_Server_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableInterceptor::ServerRequestInterceptor_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp
index 37b51488606..f3d26ea86be 100644
--- a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp
+++ b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.cpp
@@ -11,11 +11,11 @@
*/
// =================================================================
-#include "tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h"
+#include "ServerRequestInterceptor_Factory_Impl.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PI_Server/ServerInterceptorAdapter.h"
+#include "ServerInterceptorAdapter.h"
#include "tao/ORB.h"
#include "tao/debug.h"
@@ -24,9 +24,6 @@ ACE_RCSID (PI_Server,
PolicyFactory_Loader,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::ServerRequestInterceptor_Adapter*
TAO_ServerRequestInterceptor_Adapter_Factory_Impl::create (void)
{
@@ -37,8 +34,6 @@ TAO_ServerRequestInterceptor_Adapter_Factory_Impl::create (void)
return obj;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_ServerRequestInterceptor_Adapter_Factory_Impl,
ACE_TEXT ("ServerRequestInterceptor_Adapter_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h
index 9cd5e06128f..45e80d4c25e 100644
--- a/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h
+++ b/TAO/tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -16,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PI_Server/pi_server_export.h"
+#include "pi_server_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,8 +30,6 @@
#include "ace/Service_Config.h"
#include "tao/ServerRequestInterceptor_Adapter_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class ServerRequestInterceptor_Adapter;
@@ -43,8 +42,6 @@ public:
virtual TAO::ServerRequestInterceptor_Adapter *create (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_ServerRequestInterceptor_Adapter_Factory_Impl)
ACE_FACTORY_DECLARE (TAO_PI_Server, TAO_ServerRequestInterceptor_Adapter_Factory_Impl)
diff --git a/TAO/tao/ParameterModeC.cpp b/TAO/tao/ParameterModeC.cpp
index 4ded86134fd..3040509bd76 100644
--- a/TAO/tao/ParameterModeC.cpp
+++ b/TAO/tao/ParameterModeC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/ParameterModeC.h"
+#include "ParameterModeC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -67,5 +65,3 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, CORBA::ParameterMode & _tao_enum
return _tao_success;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ParameterModeC.h b/TAO/tao/ParameterModeC.h
index c4a0c7d670a..e2751ebf4e4 100644
--- a/TAO/tao/ParameterModeC.h
+++ b/TAO/tao/ParameterModeC.h
@@ -59,8 +59,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_InputCDR;
class TAO_OutputCDR;
@@ -101,9 +99,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::ParameterMode &);
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Parser_Registry.cpp b/TAO/tao/Parser_Registry.cpp
index 1d873b9ae12..b1d2432c89a 100644
--- a/TAO/tao/Parser_Registry.cpp
+++ b/TAO/tao/Parser_Registry.cpp
@@ -1,3 +1,4 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
#include "tao/Parser_Registry.h"
@@ -14,8 +15,6 @@ ACE_RCSID (tao,
Parser_Registry,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Parser_Registry::TAO_Parser_Registry (void)
: parsers_ (0),
size_ (0)
@@ -74,4 +73,3 @@ TAO_Parser_Registry::match_parser (const char *ior_string)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Parser_Registry.h b/TAO/tao/Parser_Registry.h
index ce997817d8c..13571c9bd2b 100644
--- a/TAO/tao/Parser_Registry.h
+++ b/TAO/tao/Parser_Registry.h
@@ -19,17 +19,12 @@
#include "tao/TAO_Export.h"
+#include "ace/os_include/os_stddef.h"
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/os_include/os_stddef.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_ORB_Core;
class TAO_IOR_Parser;
@@ -82,8 +77,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
#include "tao/Parser_Registry.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Parser_Registry.i b/TAO/tao/Parser_Registry.i
index 5545cece0df..29aabd26ddc 100644
--- a/TAO/tao/Parser_Registry.i
+++ b/TAO/tao/Parser_Registry.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Parser_Registry::Parser_Iterator
TAO_Parser_Registry::begin (void) const
{
@@ -15,5 +11,3 @@ TAO_Parser_Registry::end (void) const
{
return this->parsers_ + this->size_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Pluggable_Messaging.cpp b/TAO/tao/Pluggable_Messaging.cpp
index 5839334ca9f..c63880b3fa4 100644
--- a/TAO/tao/Pluggable_Messaging.cpp
+++ b/TAO/tao/Pluggable_Messaging.cpp
@@ -1,16 +1,12 @@
// $Id$
-#include "tao/Pluggable_Messaging.h"
+#include "Pluggable_Messaging.h"
ACE_RCSID (tao,
Pluggable_Messaging,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Pluggable_Messaging::~TAO_Pluggable_Messaging (void)
{
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+}
diff --git a/TAO/tao/Pluggable_Messaging.h b/TAO/tao/Pluggable_Messaging.h
index 89fce0721b5..86989c0865b 100644
--- a/TAO/tao/Pluggable_Messaging.h
+++ b/TAO/tao/Pluggable_Messaging.h
@@ -26,12 +26,6 @@
#include "tao/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Exception;
@@ -46,6 +40,8 @@ class TAO_Target_Specification;
class TAO_OutputCDR;
class TAO_Queued_Data;
+class ACE_Time_Value;
+
// @@ The more I think I about this class, I feel that this class need
// not be a ABC as it is now. Instead we have these options
// (1) Parametrize this class with the "Messaging Object". Then the
@@ -62,7 +58,7 @@ class TAO_Queued_Data;
/**
* @class TAO_Pluggable_Messaging
*
- * @brief Generic definitions Messaging class.
+ * @brief Generic definitions Messaging class.
*
* This interface tries to define generic methods that could be
* different messaging protocols
@@ -106,6 +102,15 @@ public:
TAO_OutputCDR &cdr,
TAO_Pluggable_Reply_Params_Base &params) = 0;
+ /**
+ * This method reads the message on the connection. Returns 0 when
+ * there is short read on the connection. Returns 1 when the full
+ * message is read and handled. Returns -1 on errors. If @a block is
+ * 1, then reply is read in a blocking manner.
+ */
+ virtual int read_message (TAO_Transport *transport,
+ int block = 0,
+ ACE_Time_Value *max_wait_time = 0) = 0;
/// Format the message in the @a cdr. May not be needed in
/// general.
@@ -115,25 +120,24 @@ public:
virtual void init (CORBA::Octet major,
CORBA::Octet minor) = 0;
- /// Parse the details of the next message from the @a incoming
- /// and initializes attributes of @a qd. Returns 0 if the message
- /// header could not be parsed completely, returns a 1 if the message
- /// header could be parsed completely and returns -1 on error. As the
- /// parsed data is stored directly in @a qd, no state must be stored
- /// in instance of implementation.
- virtual int parse_next_message (ACE_Message_Block &incoming,
- TAO_Queued_Data &qd, /* out */
- size_t &mesg_length) = 0; /* out */
-
- /// Extract the details of the next message from the @a incoming
- /// through @a qd. Returns 0 if the message header could not be
- /// parsed completely, returns a 1 if the message header could be
- /// parsed completely and returns -1 on error.
+ /// Parse the incoming messages..
+ virtual int parse_incoming_messages (ACE_Message_Block &message_block) = 0;
+
+ /// Calculate the amount of data that is missing in the @a incoming
+ /// message block.
+ virtual ssize_t missing_data (ACE_Message_Block &incoming) = 0;
+
+ /// Get the details of the message parsed through the @a qd.
+ virtual void get_message_data (TAO_Queued_Data *qd) = 0;
+
+ /* Extract the details of the next message from the @a incoming
+ * through @a qd. Returns 1 if there are more messages and returns a
+ * 0 if there are no more messages in @a incoming.
+ */
virtual int extract_next_message (ACE_Message_Block &incoming,
TAO_Queued_Data *&qd) = 0;
- /// Check whether the node @a qd needs consolidation from @a incoming,
- /// @r 0 on success, -1 on error
+ /// Check whether the node @a qd needs consolidation from @a incoming
virtual int consolidate_node (TAO_Queued_Data *qd,
ACE_Message_Block &incoming) = 0;
@@ -172,33 +176,8 @@ public:
/// Accessor for the output CDR stream
virtual TAO_OutputCDR &out_stream (void) = 0;
-
- /// Consolidate newly received fragment with previously arrived
- /// associated fragments to achieve consolidated message. All
- /// fragments having been received previously are being managed
- /// within implementation. If reliable transport is used (like TCP)
- /// this operation will be invoked with fragments being received
- /// partially ordered, last fragment being received last. Otherwise
- /// If un-reliable transport is used (like UDP) fragments may be
- /// received dis-ordered, and must be ordered before consolidation
- /// within implementation. @return 0 on success and @a con_msg
- /// points to consolidated message, 1 if there are still fragmens
- /// outstanding, in case of error -1 is being returned. The
- /// implementation is responsible to release @a qd.
- virtual int consolidate_fragmented_message (TAO_Queued_Data *qd,
- TAO_Queued_Data *&con_msg) = 0;
-
- /// Discard all fragments associated to request-id encoded in
- /// cancel_request. Transport implementaion guarantees that this
- /// operation will never be invoked // concurrently by multiplpe
- /// threads nor concurrently to consolidate_fragmented_message
- /// @return -1 on failure, 0 on success, 1 no fragment on stack
- /// relating to CancelRequest.
- virtual int discard_fragmented_message (const TAO_Queued_Data *cancel_request) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_PLUGGABLE_MESSAGING_H*/
diff --git a/TAO/tao/Pluggable_Messaging_Utils.cpp b/TAO/tao/Pluggable_Messaging_Utils.cpp
index 9e7956bd5a8..d7f79cecec5 100644
--- a/TAO/tao/Pluggable_Messaging_Utils.cpp
+++ b/TAO/tao/Pluggable_Messaging_Utils.cpp
@@ -1,7 +1,7 @@
//$Id$
-#include "tao/Pluggable_Messaging_Utils.h"
-#include "tao/ORB_Core.h"
+#include "Pluggable_Messaging_Utils.h"
+#include "ORB_Core.h"
#if !defined (__ACE_INLINE__)
#include "tao/Pluggable_Messaging_Utils.i"
@@ -12,12 +12,10 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Pluggable_Reply_Params::TAO_Pluggable_Reply_Params (TAO_Transport *t)
+TAO_Pluggable_Reply_Params::TAO_Pluggable_Reply_Params (
+ TAO_Transport *t
+ )
: input_cdr_ (0)
- , transport_ (t)
+ , transport_ (t)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Pluggable_Messaging_Utils.h b/TAO/tao/Pluggable_Messaging_Utils.h
index ea31e8cd8ca..9a7b421ecbf 100644
--- a/TAO/tao/Pluggable_Messaging_Utils.h
+++ b/TAO/tao/Pluggable_Messaging_Utils.h
@@ -24,7 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Transport;
@@ -182,12 +181,10 @@ enum TAO_Pluggable_Message_Exception_Type
TAO_PLUGGABLE_MESSAGE_NEEDS_ADDRESSING_MODE
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Pluggable_Messaging_Utils.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
-#endif /* TAO_PLUGGABLE_MESSAGING_UTILS_H */
+#endif /*TAO_PLUGGABLE_MESSAGING_UTILS_H*/
diff --git a/TAO/tao/Pluggable_Messaging_Utils.i b/TAO/tao/Pluggable_Messaging_Utils.i
index 7a10993036e..0aa88955e5d 100644
--- a/TAO/tao/Pluggable_Messaging_Utils.i
+++ b/TAO/tao/Pluggable_Messaging_Utils.i
@@ -2,8 +2,6 @@
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Pluggable_Reply_Params_Base::TAO_Pluggable_Reply_Params_Base (void)
: svc_ctx_ (),
@@ -29,5 +27,3 @@ TAO_Pluggable_Reply_Params_Base::service_context_notowned (void)
{
return *this->service_context_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy.pidl b/TAO/tao/Policy.pidl
index 62dfc3e50bc..479d31708c3 100644
--- a/TAO/tao/Policy.pidl
+++ b/TAO/tao/Policy.pidl
@@ -44,9 +44,9 @@
#ifndef TAO_CORBA_POLICY_PIDL
#define TAO_CORBA_POLICY_PIDL
-#include "tao/UShortSeq.pidl"
-#include "tao/Current.pidl"
-#include "tao/Policy_Forward.pidl"
+#include <UShortSeq.pidl>
+#include <Current.pidl>
+#include <Policy_Forward.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PolicyC.cpp b/TAO/tao/PolicyC.cpp
index 0fdcb87dd8b..606c217d2bf 100644
--- a/TAO/tao/PolicyC.cpp
+++ b/TAO/tao/PolicyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/PolicyC.h"
+#include "PolicyC.h"
#include "tao/CDR.h"
#include "tao/Invocation_Adapter.h"
#include "tao/Object_T.h"
@@ -44,14 +44,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/PolicyC.inl"
+#include "PolicyC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO specific stuff.
namespace CORBA
{
@@ -1040,5 +1038,3 @@ CORBA::Boolean operator>> (
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PolicyC.h b/TAO/tao/PolicyC.h
index a0cd05df25e..3346c12a828 100644
--- a/TAO/tao/PolicyC.h
+++ b/TAO/tao/PolicyC.h
@@ -65,8 +65,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_ch.cpp:62
@@ -664,10 +662,8 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::Policy_ptr &);
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/PolicyC.inl"
+#include "PolicyC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PolicyC.inl b/TAO/tao/PolicyC.inl
index 3b97e162307..2bc9b36e2dc 100644
--- a/TAO/tao/PolicyC.inl
+++ b/TAO/tao/PolicyC.inl
@@ -29,8 +29,6 @@
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ci.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined (_CORBA_POLICY___CI_)
#define _CORBA_POLICY___CI_
@@ -63,5 +61,3 @@ CORBA::Policy::Policy (
}
#endif /* end #if !defined */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PolicyFactory_Registry_Adapter.cpp b/TAO/tao/PolicyFactory_Registry_Adapter.cpp
index c33f3a2710e..beec71d1266 100644
--- a/TAO/tao/PolicyFactory_Registry_Adapter.cpp
+++ b/TAO/tao/PolicyFactory_Registry_Adapter.cpp
@@ -1,6 +1,6 @@
-// $Id$
+//$Id$
-#include "tao/PolicyFactory_Registry_Adapter.h"
+#include "PolicyFactory_Registry_Adapter.h"
ACE_RCSID (tao,
@@ -8,10 +8,9 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::PolicyFactory_Registry_Adapter::~PolicyFactory_Registry_Adapter (void)
+namespace TAO
{
+ PolicyFactory_Registry_Adapter::~PolicyFactory_Registry_Adapter (void)
+ {
+ }
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PolicyFactory_Registry_Adapter.h b/TAO/tao/PolicyFactory_Registry_Adapter.h
index 586555523c0..4cf50d7d7a9 100644
--- a/TAO/tao/PolicyFactory_Registry_Adapter.h
+++ b/TAO/tao/PolicyFactory_Registry_Adapter.h
@@ -21,12 +21,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Basic_Types.h"
-
#include "ace/CORBA_macros.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Basic_Types.h"
//-- Forward Declarations--
namespace CORBA
@@ -87,8 +83,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_POLICY_FACTORY_REGISTRY_ADAPTER_H */
diff --git a/TAO/tao/PolicyFactory_Registry_Factory.cpp b/TAO/tao/PolicyFactory_Registry_Factory.cpp
index 76a51641ae7..9f817b31876 100644
--- a/TAO/tao/PolicyFactory_Registry_Factory.cpp
+++ b/TAO/tao/PolicyFactory_Registry_Factory.cpp
@@ -1,15 +1,11 @@
//$Id$
-#include "tao/PolicyFactory_Registry_Factory.h"
+#include "PolicyFactory_Registry_Factory.h"
ACE_RCSID (tao,
PolicyFactory_Registry_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_PolicyFactory_Registry_Factory::~TAO_PolicyFactory_Registry_Factory (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PolicyFactory_Registry_Factory.h b/TAO/tao/PolicyFactory_Registry_Factory.h
index 6da8fdda14a..5d7ac654eaa 100644
--- a/TAO/tao/PolicyFactory_Registry_Factory.h
+++ b/TAO/tao/PolicyFactory_Registry_Factory.h
@@ -19,11 +19,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
#include "ace/Service_Object.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class PolicyFactory_Registry_Adapter;
@@ -41,7 +38,5 @@ public:
virtual TAO::PolicyFactory_Registry_Adapter* create (void) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-#endif /* TAO_POLICYFACTORY_REGISTRY_FACTORY_H */
+#endif /* TAO_OBJECT_LOADER_H */
diff --git a/TAO/tao/Policy_Current.cpp b/TAO/tao/Policy_Current.cpp
index 14cb7c89456..fc8cbb69227 100644
--- a/TAO/tao/Policy_Current.cpp
+++ b/TAO/tao/Policy_Current.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Policy_Current.h"
+#include "Policy_Current.h"
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -10,17 +10,16 @@
# include "tao/Policy_Current.inl"
#endif /* ! __ACE_INLINE__ */
+
ACE_RCSID (tao,
Policy_Current,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Policy_Current_Impl &
TAO_Policy_Current::implementation (TAO_Policy_Current_Impl &current)
{
- TAO_TSS_Resources * const tss =
+ TAO_TSS_Resources *tss =
TAO_TSS_Resources::instance ();
TAO_Policy_Current_Impl *old = tss->policy_current_;
@@ -78,6 +77,4 @@ TAO_Policy_Current::get_cached_policy (TAO_Cached_Policy_Type type
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
diff --git a/TAO/tao/Policy_Current.h b/TAO/tao/Policy_Current.h
index 889c1971d24..ad0d5da00e3 100644
--- a/TAO/tao/Policy_Current.h
+++ b/TAO/tao/Policy_Current.h
@@ -19,12 +19,14 @@
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "tao/orbconf.h"
+
#if (TAO_HAS_CORBA_MESSAGING == 1)
#include "tao/PolicyC.h"
@@ -35,13 +37,11 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Policy_Current_Impl;
-class TAO_Policy_Current
- : public CORBA::PolicyCurrent
- , public TAO_Local_RefCounted_Object
+class TAO_Export TAO_Policy_Current :
+ public CORBA::PolicyCurrent,
+ public TAO_Local_RefCounted_Object
{
public:
/// Constructor
@@ -77,8 +77,6 @@ public:
TAO_Policy_Current_Impl &implementation (TAO_Policy_Current_Impl &);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Policy_Current.inl b/TAO/tao/Policy_Current.inl
index 3605ebd5b7e..e9bdbec8bb8 100644
--- a/TAO/tao/Policy_Current.inl
+++ b/TAO/tao/Policy_Current.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Policy_Current::TAO_Policy_Current (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_Current_Impl.cpp b/TAO/tao/Policy_Current_Impl.cpp
index 9600341a74f..6ebb543218d 100644
--- a/TAO/tao/Policy_Current_Impl.cpp
+++ b/TAO/tao/Policy_Current_Impl.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Policy_Current_Impl.h"
+#include "Policy_Current_Impl.h"
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
Policy_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_Policy_Current_Impl::set_policy_overrides (
const CORBA::PolicyList & policies,
@@ -37,6 +35,4 @@ TAO_Policy_Current_Impl::get_policy_overrides (
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
diff --git a/TAO/tao/Policy_Current_Impl.h b/TAO/tao/Policy_Current_Impl.h
index 270342fe234..300473723ac 100644
--- a/TAO/tao/Policy_Current_Impl.h
+++ b/TAO/tao/Policy_Current_Impl.h
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -38,9 +38,7 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Policy_Current_Impl
+class TAO_Export TAO_Policy_Current_Impl
{
public:
@@ -69,8 +67,6 @@ private:
TAO_Policy_Set manager_impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Policy_Current_Impl.inl b/TAO/tao/Policy_Current_Impl.inl
index c7cc06d9743..92838269eec 100644
--- a/TAO/tao/Policy_Current_Impl.inl
+++ b/TAO/tao/Policy_Current_Impl.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Policy_Current_Impl::TAO_Policy_Current_Impl (void)
: manager_impl_ (TAO_POLICY_THREAD_SCOPE)
@@ -26,4 +22,3 @@ TAO_Policy_Current_Impl::get_cached_policy (TAO_Cached_Policy_Type type
ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_ForwardC.cpp b/TAO/tao/Policy_ForwardC.cpp
index b2e78c363e3..b056d46a8e3 100644
--- a/TAO/tao/Policy_ForwardC.cpp
+++ b/TAO/tao/Policy_ForwardC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/Policy_ForwardC.h"
+#include "Policy_ForwardC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -305,5 +303,3 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, CORBA::SetOverrideType & _tao_en
return _tao_success;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_ForwardC.h b/TAO/tao/Policy_ForwardC.h
index 3ad266dc05d..9d15b8a3cf2 100644
--- a/TAO/tao/Policy_ForwardC.h
+++ b/TAO/tao/Policy_ForwardC.h
@@ -56,8 +56,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -332,8 +330,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::SetOverrideType &);
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Policy_Manager.cpp b/TAO/tao/Policy_Manager.cpp
index 5e7383c4cc8..383c7a44db9 100644
--- a/TAO/tao/Policy_Manager.cpp
+++ b/TAO/tao/Policy_Manager.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Policy_Manager.h"
+#include "Policy_Manager.h"
#if (TAO_HAS_CORBA_MESSAGING == 1)
@@ -13,7 +13,6 @@ ACE_RCSID (tao,
Policy_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
CORBA::PolicyList *
TAO_Policy_Manager::get_policy_overrides (const CORBA::PolicyTypeSeq & ts
@@ -35,6 +34,4 @@ TAO_Policy_Manager::set_policy_overrides (const CORBA::PolicyList & policies,
this->impl_.set_policy_overrides (policies, set_add ACE_ENV_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING == 1 */
diff --git a/TAO/tao/Policy_Manager.h b/TAO/tao/Policy_Manager.h
index 14c00ee8721..c61e90afdb9 100644
--- a/TAO/tao/Policy_Manager.h
+++ b/TAO/tao/Policy_Manager.h
@@ -36,11 +36,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-class TAO_Policy_Manager
- : public CORBA::PolicyManager
- , public TAO_Local_RefCounted_Object
+class TAO_Export TAO_Policy_Manager :
+ public CORBA::PolicyManager,
+ public TAO_Local_RefCounted_Object
{
public:
/// constructor
@@ -76,8 +75,6 @@ private:
TAO_Policy_Set impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Policy_Manager.i b/TAO/tao/Policy_Manager.i
index b982fad4f14..32eb06bdff8 100644
--- a/TAO/tao/Policy_Manager.i
+++ b/TAO/tao/Policy_Manager.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Policy_Manager::TAO_Policy_Manager (void)
: impl_ (TAO_POLICY_ORB_SCOPE)
@@ -34,5 +32,3 @@ TAO_Policy_Manager::get_cached_policy (TAO_Cached_Policy_Type type
return this->impl_.get_cached_policy (type
ACE_ENV_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_Set.cpp b/TAO/tao/Policy_Set.cpp
index 4dfd0946f19..9739eabc2bc 100644
--- a/TAO/tao/Policy_Set.cpp
+++ b/TAO/tao/Policy_Set.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/Policy_Set.h"
-#include "tao/Environment.h"
-#include "tao/SystemException.h"
-#include "tao/debug.h"
+#include "Policy_Set.h"
+#include "Environment.h"
+#include "SystemException.h"
+#include "debug.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Policy_Set.i"
+# include "Policy_Set.i"
#endif /* ! __ACE_INLINE__ */
@@ -15,15 +15,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Policy_Set::TAO_Policy_Set (TAO_Policy_Scope scope)
- : scope_ (scope)
-{
- for (unsigned int i = 0; i < TAO_CACHED_POLICY_MAX_CACHED; ++i)
- this->cached_policies_[i] = 0;
-}
-
TAO_Policy_Set::~TAO_Policy_Set (void)
{
ACE_DECLARE_NEW_CORBA_ENV;
@@ -376,5 +367,3 @@ TAO_Policy_Set::get_cached_policy (TAO_Cached_Policy_Type type
return CORBA::Policy::_nil ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_Set.h b/TAO/tao/Policy_Set.h
index db5bc837520..0e3b8e6bc24 100644
--- a/TAO/tao/Policy_Set.h
+++ b/TAO/tao/Policy_Set.h
@@ -26,8 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Policy_Set
*
@@ -46,7 +44,6 @@ public:
*/
TAO_Policy_Set (TAO_Policy_Scope scope);
- /// Copy constructor.
TAO_Policy_Set (const TAO_Policy_Set &rhs);
/// Destructor
@@ -104,7 +101,7 @@ public:
CORBA::ULong num_policies (void) const;
private:
- TAO_Policy_Set & operator= (const TAO_Policy_Set&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_Policy_Set operator=(const TAO_Policy_Set&))
/// Remove and destroy all the policy objects owned by this policy
/// manager.
@@ -125,7 +122,6 @@ private:
TAO_Policy_Scope scope_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/Policy_Set.i"
diff --git a/TAO/tao/Policy_Set.i b/TAO/tao/Policy_Set.i
index a8767177029..11c35bfdaa8 100644
--- a/TAO/tao/Policy_Set.i
+++ b/TAO/tao/Policy_Set.i
@@ -1,15 +1,17 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_INLINE
+TAO_Policy_Set::TAO_Policy_Set (TAO_Policy_Scope scope)
+ : scope_ (scope)
+{
+ for (int i = 0; i < TAO_CACHED_POLICY_MAX_CACHED; i++)
+ this->cached_policies_[i] = 0;
+}
ACE_INLINE CORBA::Boolean
TAO_Policy_Set::compatible_scope (TAO_Policy_Scope policy_scope) const
{
- return
- ((static_cast<unsigned int> (policy_scope)
- & static_cast<unsigned int> (this->scope_)) > 0);
+ return (((unsigned int) policy_scope & (unsigned int) this->scope_) > 0);
}
ACE_INLINE CORBA::Policy *
@@ -23,5 +25,3 @@ TAO_Policy_Set::num_policies (void) const
{
return this->policy_list_.length();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_Validator.cpp b/TAO/tao/Policy_Validator.cpp
index b9753bd0fc2..cd51a8a1426 100644
--- a/TAO/tao/Policy_Validator.cpp
+++ b/TAO/tao/Policy_Validator.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/Policy_Validator.h"
-#include "tao/Environment.h"
-#include "tao/debug.h"
+#include "Policy_Validator.h"
+#include "Environment.h"
+#include "debug.h"
#include "ace/Log_Msg.h"
@@ -10,18 +10,19 @@ ACE_RCSID (tao,
Policy_Validator,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Policy_Validator::TAO_Policy_Validator (TAO_ORB_Core &orb_core)
: orb_core_ (orb_core),
next_ (0)
{
+ // No-Op.
}
TAO_Policy_Validator::~TAO_Policy_Validator (void)
{
- delete this->next_;
+ if (this->next_)
+ {
+ delete this->next_;
+ }
}
TAO_ORB_Core &
@@ -86,7 +87,7 @@ TAO_Policy_Validator::merge_policies (TAO_Policy_Set &policies
this->merge_policies_impl (policies ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- if (this->next_)
+ if (this->next_ != 0)
{
this->next_->merge_policies (policies ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -100,5 +101,3 @@ TAO_Policy_Validator::legal_policy (CORBA::PolicyType type)
|| ((this->next_ != 0)
&& this->next_->legal_policy_impl (type)));
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Policy_Validator.h b/TAO/tao/Policy_Validator.h
index 69d680d9e61..10defec9d00 100644
--- a/TAO/tao/Policy_Validator.h
+++ b/TAO/tao/Policy_Validator.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Policy_Validator.h
@@ -27,8 +25,6 @@
#include "tao/TAO_Export.h"
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class TAO_Policy_Set;
class TAO_ORB_Core;
@@ -113,8 +109,6 @@ private:
TAO_Policy_Validator *next_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-#endif /* TAO_POLICY_VALIDATOR_H */
+#endif /* TAO_POLICY_VALIDATOR_H_ */
diff --git a/TAO/tao/PortableInterceptor.h b/TAO/tao/PortableInterceptor.h
index 380ae32530e..63623152d5f 100644
--- a/TAO/tao/PortableInterceptor.h
+++ b/TAO/tao/PortableInterceptor.h
@@ -22,7 +22,7 @@
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
+#include "orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tao/PortableInterceptor.pidl b/TAO/tao/PortableInterceptor.pidl
index fdf42e809ae..00e1a22675c 100644
--- a/TAO/tao/PortableInterceptor.pidl
+++ b/TAO/tao/PortableInterceptor.pidl
@@ -34,8 +34,8 @@
#ifndef _PORTABLE_INTERCEPTOR_IDL_
#define _PORTABLE_INTERCEPTOR_IDL_
-#include "tao/PI_Forward.pidl"
-#include "tao/Messaging_SyncScope.pidl"
+#include <PI_Forward.pidl>
+#include <Messaging_SyncScope.pidl>
module PortableInterceptor {
diff --git a/TAO/tao/PortableInterceptorC.cpp b/TAO/tao/PortableInterceptorC.cpp
index fd12ae4eb40..25d2f8334ff 100644
--- a/TAO/tao/PortableInterceptorC.cpp
+++ b/TAO/tao/PortableInterceptorC.cpp
@@ -29,18 +29,14 @@
// be\be_codegen.cpp:277
-#include "tao/PortableInterceptorC.h"
+#include "PortableInterceptorC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableInterceptorC.h b/TAO/tao/PortableInterceptorC.h
index f9edc88992e..bf1b51c4d81 100644
--- a/TAO/tao/PortableInterceptorC.h
+++ b/TAO/tao/PortableInterceptorC.h
@@ -52,8 +52,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
@@ -131,8 +129,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/Active_Object_Map.cpp b/TAO/tao/PortableServer/Active_Object_Map.cpp
index 5699755a01b..17361e7c94f 100644
--- a/TAO/tao/PortableServer/Active_Object_Map.cpp
+++ b/TAO/tao/PortableServer/Active_Object_Map.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/PortableServer/Active_Object_Map.h"
-#include "tao/PortableServer/Active_Object_Map_Entry.h"
+#include "Active_Object_Map.h"
+#include "Active_Object_Map_Entry.h"
#include "tao/SystemException.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Active_Object_Map.i"
+# include "Active_Object_Map.i"
#endif /* __ACE_INLINE__ */
#include "ace/Auto_Ptr.h"
@@ -14,8 +14,6 @@ ACE_RCSID(PortableServer,
Active_Object_Map,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/* static */
size_t TAO_Active_Object_Map::system_id_size_ = 0;
@@ -935,4 +933,3 @@ TAO_No_Hint_Strategy::system_id (PortableServer::ObjectId_out system_id,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Active_Object_Map.h b/TAO/tao/PortableServer/Active_Object_Map.h
index 65c614de389..9cc254b555a 100644
--- a/TAO/tao/PortableServer/Active_Object_Map.h
+++ b/TAO/tao/PortableServer/Active_Object_Map.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,17 +16,15 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Key_Adapters.h"
+#include "Key_Adapters.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/Server_Strategy_Factory.h"
#include "ace/Map_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Server_Strategy_Factory.h"
+#include "Servant_Base.h"
// Forward declarations.
class TAO_Id_Uniqueness_Strategy;
@@ -615,10 +613,8 @@ public:
TAO_Active_Object_Map_Entry &entry);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Active_Object_Map.i"
+# include "Active_Object_Map.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Active_Object_Map.i b/TAO/tao/PortableServer/Active_Object_Map.i
index 31b3326b811..59824cf5063 100644
--- a/TAO/tao/PortableServer/Active_Object_Map.i
+++ b/TAO/tao/PortableServer/Active_Object_Map.i
@@ -1,10 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
-#include "tao/PortableServer/Active_Object_Map_Entry.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Active_Object_Map_Entry.h"
ACE_INLINE int
TAO_Active_Object_Map::is_servant_in_map (PortableServer::Servant servant,
@@ -260,5 +256,3 @@ TAO_Active_Object_Map::system_id_size (void)
{
return TAO_Active_Object_Map::system_id_size_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Active_Object_Map_Entry.cpp b/TAO/tao/PortableServer/Active_Object_Map_Entry.cpp
index fc29e9faec0..d7a1fa3fe64 100644
--- a/TAO/tao/PortableServer/Active_Object_Map_Entry.cpp
+++ b/TAO/tao/PortableServer/Active_Object_Map_Entry.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "tao/PortableServer/Active_Object_Map_Entry.h"
+#include "Active_Object_Map_Entry.h"
ACE_RCSID(PortableServer,
Active_Object_Map_Entry,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Active_Object_Map_Entry::TAO_Active_Object_Map_Entry (void)
: user_id_ (),
system_id_ (),
@@ -18,4 +16,3 @@ TAO_Active_Object_Map_Entry::TAO_Active_Object_Map_Entry (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Active_Object_Map_Entry.h b/TAO/tao/PortableServer/Active_Object_Map_Entry.h
index 75d2a3d2c40..1c072df4201 100644
--- a/TAO/tao/PortableServer/Active_Object_Map_Entry.h
+++ b/TAO/tao/PortableServer/Active_Object_Map_Entry.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,14 +16,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/PS_ForwardC.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PS_ForwardC.h"
/**
* @struct TAO_Active_Object_Map_Entry
@@ -58,8 +57,6 @@ struct TAO_Active_Object_Map_Entry
CORBA::Short priority_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ACTIVE_OBJECT_MAP_ENTRY_H */
diff --git a/TAO/tao/PortableServer/Active_Policy_Strategies.cpp b/TAO/tao/PortableServer/Active_Policy_Strategies.cpp
index 33c267042ba..4183da3f356 100644
--- a/TAO/tao/PortableServer/Active_Policy_Strategies.cpp
+++ b/TAO/tao/PortableServer/Active_Policy_Strategies.cpp
@@ -1,64 +1,61 @@
-// $Id$
-
-#include "tao/PortableServer/Active_Policy_Strategies.h"
-#include "tao/PortableServer/POA_Cached_Policies.h"
-
-#include "tao/PortableServer/ThreadStrategy.h"
-#include "tao/PortableServer/ThreadStrategyFactory.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
-#include "tao/PortableServer/RequestProcessingStrategyFactory.h"
-#include "tao/PortableServer/IdAssignmentStrategy.h"
-#include "tao/PortableServer/IdAssignmentStrategyFactory.h"
-#include "tao/PortableServer/LifespanStrategy.h"
-#include "tao/PortableServer/LifespanStrategyFactory.h"
-#include "tao/PortableServer/IdUniquenessStrategy.h"
-#include "tao/PortableServer/IdUniquenessStrategyFactory.h"
-#include "tao/PortableServer/ImplicitActivationStrategy.h"
-#include "tao/PortableServer/ImplicitActivationStrategyFactory.h"
-#include "tao/PortableServer/ServantRetentionStrategy.h"
-#include "tao/PortableServer/ServantRetentionStrategyFactory.h"
-
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
-#include "tao/PortableServer/LifespanPolicyC.h"
-#include "tao/PortableServer/RequestProcessingPolicyC.h"
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
-#include "tao/PortableServer/ThreadPolicyC.h"
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
+// @(#) $Id$
+
+#include "Active_Policy_Strategies.h"
+#include "POA_Cached_Policies.h"
+
+#include "ThreadStrategy.h"
+#include "ThreadStrategyFactory.h"
+#include "RequestProcessingStrategy.h"
+#include "RequestProcessingStrategyFactory.h"
+#include "IdAssignmentStrategy.h"
+#include "IdAssignmentStrategyFactory.h"
+#include "LifespanStrategy.h"
+#include "LifespanStrategyFactory.h"
+#include "IdUniquenessStrategy.h"
+#include "IdUniquenessStrategyFactory.h"
+#include "ImplicitActivationStrategy.h"
+#include "ImplicitActivationStrategyFactory.h"
+#include "ServantRetentionStrategy.h"
+#include "ServantRetentionStrategyFactory.h"
+
+#include "IdAssignmentPolicyC.h"
+#include "IdUniquenessPolicyC.h"
+#include "ImplicitActivationPolicyC.h"
+#include "LifespanPolicyC.h"
+#include "RequestProcessingPolicyC.h"
+#include "ServantRetentionPolicyC.h"
+#include "ThreadPolicyC.h"
+#include "ServantRetentionPolicyC.h"
#include "ace/Dynamic_Service.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Active_Policy_Strategies.inl"
+# include "Active_Policy_Strategies.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(PortableServer,
Active_Policy_Strategies,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
- Active_Policy_Strategies::Active_Policy_Strategies (void)
- : thread_strategy_ (0),
- request_processing_strategy_ (0),
- id_assignment_strategy_ (0),
- lifespan_strategy_ (0),
- id_uniqueness_strategy_ (0),
- implicit_activation_strategy_ (0),
- servant_retention_strategy_ (0),
- thread_strategy_factory_ (0),
- servant_retention_strategy_factory_ (0),
- request_processing_strategy_factory_ (0),
- lifespan_strategy_factory_ (0),
- implicit_activation_strategy_factory_ (0),
- id_uniqueness_strategy_factory_ (0),
- id_assignment_strategy_factory_ (0)
+ Active_Policy_Strategies::Active_Policy_Strategies() :
+ thread_strategy_ (0),
+ request_processing_strategy_ (0),
+ id_assignment_strategy_ (0),
+ lifespan_strategy_ (0),
+ id_uniqueness_strategy_ (0),
+ implicit_activation_strategy_ (0),
+ servant_retention_strategy_ (0),
+ thread_strategy_factory_ (0),
+ servant_retention_strategy_factory_ (0),
+ request_processing_strategy_factory_ (0),
+ lifespan_strategy_factory_ (0),
+ implicit_activation_strategy_factory_ (0),
+ id_uniqueness_strategy_factory_ (0),
+ id_assignment_strategy_factory_ (0)
{
}
@@ -67,110 +64,104 @@ namespace TAO
::TAO_Root_POA *poa
ACE_ENV_ARG_DECL)
{
- this->thread_strategy_factory_ =
+ thread_strategy_factory_ =
ACE_Dynamic_Service<ThreadStrategyFactory>::instance ("ThreadStrategyFactory");
- if (this->thread_strategy_factory_ != 0)
- this->thread_strategy_ =
- this->thread_strategy_factory_->create (policies.thread());
+ if (thread_strategy_factory_ != 0)
+ thread_strategy_ = thread_strategy_factory_->create (policies.thread());
/**/
- this->id_assignment_strategy_factory_ =
+ id_assignment_strategy_factory_ =
ACE_Dynamic_Service<IdAssignmentStrategyFactory>::instance ("IdAssignmentStrategyFactory");
- if (this->id_assignment_strategy_factory_ != 0)
- this->id_assignment_strategy_ =
- this->id_assignment_strategy_factory_->create (policies.id_assignment());
+ if (id_assignment_strategy_factory_ != 0)
+ id_assignment_strategy_ = id_assignment_strategy_factory_->create (policies.id_assignment());
/**/
- this->id_uniqueness_strategy_factory_ =
+ id_uniqueness_strategy_factory_ =
ACE_Dynamic_Service<IdUniquenessStrategyFactory>::instance ("IdUniquenessStrategyFactory");
- if (this->id_uniqueness_strategy_factory_ != 0)
- this->id_uniqueness_strategy_ =
- this->id_uniqueness_strategy_factory_->create (policies.id_uniqueness());
+ if (id_uniqueness_strategy_factory_ != 0)
+ id_uniqueness_strategy_ = id_uniqueness_strategy_factory_->create (policies.id_uniqueness());
/**/
- this->servant_retention_strategy_factory_ =
+ servant_retention_strategy_factory_ =
ACE_Dynamic_Service<ServantRetentionStrategyFactory>::instance ("ServantRetentionStrategyFactory");
- if (this->servant_retention_strategy_factory_ != 0)
- this->servant_retention_strategy_ =
- this->servant_retention_strategy_factory_->create (policies.servant_retention());
+ if (servant_retention_strategy_factory_ != 0)
+ servant_retention_strategy_ =
+ servant_retention_strategy_factory_->create (policies.servant_retention());
/**/
- this->request_processing_strategy_factory_ =
+ request_processing_strategy_factory_ =
ACE_Dynamic_Service<RequestProcessingStrategyFactory>::instance ("RequestProcessingStrategyFactory");
- if (this->request_processing_strategy_factory_ != 0)
- this->request_processing_strategy_ =
- this->request_processing_strategy_factory_->create (policies.request_processing(), policies.servant_retention());
+ if (request_processing_strategy_factory_ != 0)
+ request_processing_strategy_ = request_processing_strategy_factory_->create (policies.request_processing(), policies.servant_retention());
/**/
- this->lifespan_strategy_factory_ =
+ lifespan_strategy_factory_ =
ACE_Dynamic_Service<LifespanStrategyFactory>::instance ("LifespanStrategyFactory");
- if (this->lifespan_strategy_factory_ != 0)
- this->lifespan_strategy_ =
- this->lifespan_strategy_factory_->create (policies.lifespan());
+ if (lifespan_strategy_factory_ != 0)
+ lifespan_strategy_ = lifespan_strategy_factory_->create (policies.lifespan());
/**/
- this->implicit_activation_strategy_factory_ =
+ implicit_activation_strategy_factory_ =
ACE_Dynamic_Service<ImplicitActivationStrategyFactory>::instance ("ImplicitActivationStrategyFactory");
- if (this->implicit_activation_strategy_factory_ != 0)
- this->implicit_activation_strategy_ =
- this->implicit_activation_strategy_factory_->create (policies.implicit_activation());
+ if (implicit_activation_strategy_factory_ != 0)
+ implicit_activation_strategy_ = implicit_activation_strategy_factory_->create (policies.implicit_activation());
/**/
// @todo, check if all pointers are != 0
- if (this->lifespan_strategy_ != 0)
+ if (lifespan_strategy_ != 0)
{
- this->lifespan_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
+ lifespan_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- if (this->request_processing_strategy_ != 0)
+ if (request_processing_strategy_ != 0)
{
- this->request_processing_strategy_->strategy_init (poa, policies.servant_retention() ACE_ENV_ARG_PARAMETER);
+ request_processing_strategy_->strategy_init (poa, policies.servant_retention() ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- if (this->id_uniqueness_strategy_ != 0)
+ if (id_uniqueness_strategy_ != 0)
{
- this->id_uniqueness_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
+ id_uniqueness_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- if (this->implicit_activation_strategy_ != 0)
+ if (implicit_activation_strategy_ != 0)
{
- this->implicit_activation_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
+ implicit_activation_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- if (this->thread_strategy_ != 0)
+ if (thread_strategy_ != 0)
{
- this->thread_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
+ thread_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- if (this->servant_retention_strategy_ != 0)
+ if (servant_retention_strategy_ != 0)
{
- this->servant_retention_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
+ servant_retention_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
- if (this->id_assignment_strategy_ != 0)
+ if (id_assignment_strategy_ != 0)
{
- this->id_assignment_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
+ id_assignment_strategy_->strategy_init (poa ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
}
@@ -179,63 +170,61 @@ namespace TAO
Active_Policy_Strategies::cleanup (ACE_ENV_SINGLE_ARG_DECL)
{
- if (this->lifespan_strategy_ != 0)
+ if (lifespan_strategy_ != 0)
{
- this->lifespan_strategy_factory_->destroy (lifespan_strategy_ ACE_ENV_ARG_PARAMETER);
+ lifespan_strategy_factory_->destroy (lifespan_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->lifespan_strategy_ = 0;
+ lifespan_strategy_ = 0;
}
- if (this->request_processing_strategy_ != 0)
+ if (request_processing_strategy_ != 0)
{
- this->request_processing_strategy_factory_->destroy (request_processing_strategy_ ACE_ENV_ARG_PARAMETER);
+ request_processing_strategy_factory_->destroy (request_processing_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->request_processing_strategy_ = 0;
+ request_processing_strategy_ = 0;
}
- if (this->id_uniqueness_strategy_ != 0)
+ if (id_uniqueness_strategy_ != 0)
{
- this->id_uniqueness_strategy_factory_->destroy (id_uniqueness_strategy_ ACE_ENV_ARG_PARAMETER);
+ id_uniqueness_strategy_factory_->destroy (id_uniqueness_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->id_uniqueness_strategy_ = 0;
+ id_uniqueness_strategy_ = 0;
}
- if (this->implicit_activation_strategy_ != 0)
+ if (implicit_activation_strategy_ != 0)
{
- this->implicit_activation_strategy_factory_->destroy (implicit_activation_strategy_ ACE_ENV_ARG_PARAMETER);
+ implicit_activation_strategy_factory_->destroy (implicit_activation_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->implicit_activation_strategy_ = 0;
+ implicit_activation_strategy_ = 0;
}
- if (this->thread_strategy_ != 0)
+ if (thread_strategy_ != 0)
{
- this->thread_strategy_factory_->destroy (thread_strategy_ ACE_ENV_ARG_PARAMETER);
+ thread_strategy_factory_->destroy (thread_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->thread_strategy_ = 0;
+ thread_strategy_ = 0;
}
- if (this->servant_retention_strategy_ != 0)
+ if (servant_retention_strategy_ != 0)
{
- this->servant_retention_strategy_factory_->destroy (servant_retention_strategy_ ACE_ENV_ARG_PARAMETER);
+ servant_retention_strategy_factory_->destroy (servant_retention_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->servant_retention_strategy_ = 0;
+ servant_retention_strategy_ = 0;
}
- if (this->id_assignment_strategy_ != 0)
+ if (id_assignment_strategy_ != 0)
{
- this->id_assignment_strategy_factory_->destroy (id_assignment_strategy_ ACE_ENV_ARG_PARAMETER);
+ id_assignment_strategy_factory_->destroy (id_assignment_strategy_ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- this->id_assignment_strategy_ = 0;
+ id_assignment_strategy_ = 0;
}
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Active_Policy_Strategies.h b/TAO/tao/PortableServer/Active_Policy_Strategies.h
index 685c6978c2b..aedab179e3f 100644
--- a/TAO/tao/PortableServer/Active_Policy_Strategies.h
+++ b/TAO/tao/PortableServer/Active_Policy_Strategies.h
@@ -12,18 +12,16 @@
#ifndef TAO_PORTABLESERVER_ACTIVE_POLICY_STRATEGIES_H
#define TAO_PORTABLESERVER_ACTIVE_POLICY_STRATEGIES_H
-
#include /**/ "ace/pre.h"
-#include "tao/Environment.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Environment.h"
class TAO_Root_POA;
@@ -51,10 +49,10 @@ namespace TAO
/**
* This class stores the active policy strategies used for a certain POA.
*/
- class Active_Policy_Strategies
+ class TAO_PortableServer_Export Active_Policy_Strategies
{
public:
- Active_Policy_Strategies (void);
+ Active_Policy_Strategies();
void update (Cached_Policies &policies,
TAO_Root_POA* poa
@@ -96,12 +94,9 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Active_Policy_Strategies.inl"
+# include "Active_Policy_Strategies.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
-
#endif /* TAO_PORTABLESERVER_ACTIVE_POLICY_STRATEGIES_H */
diff --git a/TAO/tao/PortableServer/Active_Policy_Strategies.inl b/TAO/tao/PortableServer/Active_Policy_Strategies.inl
index ab606b04b1a..ff04b364157 100644
--- a/TAO/tao/PortableServer/Active_Policy_Strategies.inl
+++ b/TAO/tao/PortableServer/Active_Policy_Strategies.inl
@@ -1,8 +1,4 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// @(#) $Id$
namespace TAO
{
@@ -12,51 +8,49 @@ namespace TAO
ThreadStrategy*
Active_Policy_Strategies::thread_strategy (void) const
{
- return this->thread_strategy_;
+ return thread_strategy_;
}
ACE_INLINE
RequestProcessingStrategy*
Active_Policy_Strategies::request_processing_strategy (void) const
{
- return this->request_processing_strategy_;
+ return request_processing_strategy_;
}
ACE_INLINE
IdAssignmentStrategy *
Active_Policy_Strategies::id_assignment_strategy (void) const
{
- return this->id_assignment_strategy_;
+ return id_assignment_strategy_;
}
ACE_INLINE
IdUniquenessStrategy *
Active_Policy_Strategies::id_uniqueness_strategy (void) const
{
- return this->id_uniqueness_strategy_;
+ return id_uniqueness_strategy_;
}
ACE_INLINE
LifespanStrategy*
Active_Policy_Strategies::lifespan_strategy (void) const
{
- return this->lifespan_strategy_;
+ return lifespan_strategy_;
}
ACE_INLINE
ImplicitActivationStrategy*
Active_Policy_Strategies::implicit_activation_strategy (void) const
{
- return this->implicit_activation_strategy_;
+ return implicit_activation_strategy_;
}
ACE_INLINE
ServantRetentionStrategy*
Active_Policy_Strategies::servant_retention_strategy (void) const
{
- return this->servant_retention_strategy_;
+ return servant_retention_strategy_;
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/AdapterActivator.pidl b/TAO/tao/PortableServer/AdapterActivator.pidl
index 81adf4c3039..0fa4dce9ee9 100644
--- a/TAO/tao/PortableServer/AdapterActivator.pidl
+++ b/TAO/tao/PortableServer/AdapterActivator.pidl
@@ -21,7 +21,7 @@
#define _PORTABLESERVER_ADAPTER_ACTIVATOR_IDL_
///FUZZ: disable check_for_include/
-#include "tao/PortableServer/PS_Forward.pidl"
+#include <tao/PortableServer/PS_Forward.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/AdapterActivatorA.cpp b/TAO/tao/PortableServer/AdapterActivatorA.cpp
index ebf6cd1285e..0e381b61957 100644
--- a/TAO/tao/PortableServer/AdapterActivatorA.cpp
+++ b/TAO/tao/PortableServer/AdapterActivatorA.cpp
@@ -30,15 +30,13 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/PortableServer/AdapterActivatorA.h"
+#include "AdapterActivatorA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -55,6 +53,4 @@ namespace PortableServer
&_tao_tc_PortableServer_AdapterActivator;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/AdapterActivatorA.h b/TAO/tao/PortableServer/AdapterActivatorA.h
index fa84df9f34e..b67fd60fcae 100644
--- a/TAO/tao/PortableServer/AdapterActivatorA.h
+++ b/TAO/tao/PortableServer/AdapterActivatorA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/AdapterActivatorC.h"
+#include "portableserver_export.h"
+#include "AdapterActivatorC.h"
#include "tao/PortableServer/PS_ForwardA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -56,8 +54,6 @@ namespace PortableServer
} // module PortableServer
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/AdapterActivatorC.cpp b/TAO/tao/PortableServer/AdapterActivatorC.cpp
index 7eb482f2d99..14a2fbb7712 100644
--- a/TAO/tao/PortableServer/AdapterActivatorC.cpp
+++ b/TAO/tao/PortableServer/AdapterActivatorC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/AdapterActivatorC.h"
+#include "AdapterActivatorC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -167,6 +165,4 @@ PortableServer::AdapterActivator::marshal (TAO_OutputCDR &)
return false;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/AdapterActivatorC.h b/TAO/tao/PortableServer/AdapterActivatorC.h
index ce0251e59d5..de4186e65c1 100644
--- a/TAO/tao/PortableServer/AdapterActivatorC.h
+++ b/TAO/tao/PortableServer/AdapterActivatorC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -59,8 +59,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
// TAO_IDL - Generated from
@@ -193,8 +191,6 @@ namespace TAO
#endif /* end #if !defined */
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
// TAO_IDL - Generated from
diff --git a/TAO/tao/PortableServer/Adapter_Activator.cpp b/TAO/tao/PortableServer/Adapter_Activator.cpp
index a10948a20f0..4a8a0386ef1 100644
--- a/TAO/tao/PortableServer/Adapter_Activator.cpp
+++ b/TAO/tao/PortableServer/Adapter_Activator.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Adapter_Activator.h"
+#include "Adapter_Activator.h"
ACE_RCSID (PortableServer,
Adapter_Activator,
@@ -8,11 +8,9 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-#include "tao/PortableServer/AdapterActivatorC.h"
-#include "tao/PortableServer/POAManagerC.h"
-#include "tao/PortableServer/PortableServer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "AdapterActivatorC.h"
+#include "POAManagerC.h"
+#include "PortableServer.h"
namespace TAO
{
@@ -63,6 +61,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/Adapter_Activator.h b/TAO/tao/PortableServer/Adapter_Activator.h
index 65ecd7d9417..a3cd80dc34c 100644
--- a/TAO/tao/PortableServer/Adapter_Activator.h
+++ b/TAO/tao/PortableServer/Adapter_Activator.h
@@ -1,10 +1,11 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Adapter_Activator.h
*
* $Id$
+ *
*/
//=============================================================================
@@ -12,18 +13,16 @@
#define TAO_ADAPTER_ACTIVATOR_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/AdapterActivatorC.h"
+#include "AdapterActivatorC.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
class POAManager;
@@ -56,8 +55,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Any_SArg_Traits.h b/TAO/tao/PortableServer/Any_SArg_Traits.h
index 21cdd6547cf..abb88199417 100644
--- a/TAO/tao/PortableServer/Any_SArg_Traits.h
+++ b/TAO/tao/PortableServer/Any_SArg_Traits.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "tao/PortableServer/Var_Size_SArgument_T.h"
#include "tao/PortableServer/portableserver_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Any;
@@ -48,8 +46,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ANY_ARG_TRAITS_H */
diff --git a/TAO/tao/PortableServer/BD_String_SArgument_T.cpp b/TAO/tao/PortableServer/BD_String_SArgument_T.cpp
index f145439f8e7..1b9ae8f7adf 100644
--- a/TAO/tao/PortableServer/BD_String_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/BD_String_SArgument_T.cpp
@@ -9,7 +9,6 @@
#include "tao/PortableServer/BD_String_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S,
typename S_var,
@@ -157,6 +156,4 @@ interceptor_value (CORBA::Any *any) const
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_BD_STRING_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/BD_String_SArgument_T.h b/TAO/tao/PortableServer/BD_String_SArgument_T.h
index fd24af1a112..e4cd49d1ab6 100644
--- a/TAO/tao/PortableServer/BD_String_SArgument_T.h
+++ b/TAO/tao/PortableServer/BD_String_SArgument_T.h
@@ -25,8 +25,6 @@
#include "tao/Argument.h"
#include "tao/Any_Insert_Policy_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -195,8 +193,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/BD_String_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/BD_String_SArgument_T.inl b/TAO/tao/PortableServer/BD_String_SArgument_T.inl
index 57bfd4f3299..c8727fb3d32 100644
--- a/TAO/tao/PortableServer/BD_String_SArgument_T.inl
+++ b/TAO/tao/PortableServer/BD_String_SArgument_T.inl
@@ -1,9 +1,5 @@
-// -*- C+ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename S_var,
typename to_S,
@@ -112,4 +108,3 @@ arg (void)
return this->x_.out ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Basic_SArgument_T.cpp b/TAO/tao/PortableServer/Basic_SArgument_T.cpp
index 1bd5ab450eb..a6fe3ead5f4 100644
--- a/TAO/tao/PortableServer/Basic_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Basic_SArgument_T.cpp
@@ -9,7 +9,6 @@
#include "tao/PortableServer/Basic_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S, typename Insert_Policy>
CORBA::Boolean
@@ -96,6 +95,4 @@ TAO::Ret_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any)
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_BASIC_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/Basic_SArgument_T.h b/TAO/tao/PortableServer/Basic_SArgument_T.h
index 074367b1102..33297cb7adf 100644
--- a/TAO/tao/PortableServer/Basic_SArgument_T.h
+++ b/TAO/tao/PortableServer/Basic_SArgument_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -144,8 +142,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Basic_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Basic_SArgument_T.inl b/TAO/tao/PortableServer/Basic_SArgument_T.inl
index 9c7f0f0de3c..195d7bca229 100644
--- a/TAO/tao/PortableServer/Basic_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Basic_SArgument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S, typename Insert_Policy>
ACE_INLINE
TAO::In_Basic_SArgument_T<S,Insert_Policy>::In_Basic_SArgument_T (void)
@@ -62,4 +60,3 @@ TAO::Ret_Basic_SArgument_T<S,Insert_Policy>::arg (void)
return this->x_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Basic_SArguments.h b/TAO/tao/PortableServer/Basic_SArguments.h
index 433002d391f..933476cb806 100644
--- a/TAO/tao/PortableServer/Basic_SArguments.h
+++ b/TAO/tao/PortableServer/Basic_SArguments.h
@@ -25,7 +25,6 @@
#include "tao/PortableServer/Basic_SArgument_T.h"
#include "tao/PortableServer/SArg_Traits_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -107,8 +106,6 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_BASIC_SARGUMENTS_H */
diff --git a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp
index 9ac5275b9ef..dd27ae99b0f 100644
--- a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp
+++ b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.cpp
@@ -1,9 +1,9 @@
//$Id$
// -- PortableServer Include --
-#include "tao/PortableServer/Collocated_Object_Proxy_Broker.h"
-#include "tao/PortableServer/Object_Adapter.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Base.h"
+#include "Collocated_Object_Proxy_Broker.h"
+#include "Object_Adapter.h"
+#include "Servant_Upcall.h"
+#include "Servant_Base.h"
// -- TAO Include --
@@ -16,7 +16,6 @@ ACE_RCSID (PortableServer,
Collocated_Object_Proxy_Broker,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -307,8 +306,11 @@ the_tao_collocated_object_proxy_broker (void)
return &the_broker;
}
-TAO::Object_Proxy_Broker * _TAO_collocation_Object_Proxy_Broker_Factory (void)
+TAO::Object_Proxy_Broker * _TAO_collocation_Object_Proxy_Broker_Factory (
+ CORBA::Object_ptr obj
+ )
{
+ ACE_UNUSED_ARG (obj);
return the_tao_collocated_object_proxy_broker ();
}
@@ -327,5 +329,3 @@ _TAO_collocation_Object_Proxy_Broker_Factory_Initializer (
reinterpret_cast<size_t> (_TAO_collocation_Object_Proxy_Broker_Factory_Initializer
)
);
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h
index cd28b880933..070e24ba648 100644
--- a/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h
+++ b/TAO/tao/PortableServer/Collocated_Object_Proxy_Broker.h
@@ -18,7 +18,7 @@
#define TAO_COLLOCATED_OBJECT_PROXY_BROKER_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +26,6 @@
#include "tao/Object_Proxy_Broker.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -75,8 +73,6 @@ namespace TAO
/// proxy broker. All the CORBA::Object share the proxy broker.
TAO::Collocated_Object_Proxy_Broker *the_tao_collocated_object_proxy_broker (void);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_COLLOCATED_OBJECT_PROXY_BROKER_H*/
diff --git a/TAO/tao/PortableServer/Creation_Time.cpp b/TAO/tao/PortableServer/Creation_Time.cpp
index 0156db0dec3..2b938b862ce 100644
--- a/TAO/tao/PortableServer/Creation_Time.cpp
+++ b/TAO/tao/PortableServer/Creation_Time.cpp
@@ -1,10 +1,10 @@
-#include "tao/PortableServer/Creation_Time.h"
+#include "Creation_Time.h"
ACE_RCSID (PortableServer,
Creation_Time,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Creation_Time.inl"
+# include "Creation_Time.inl"
#endif /* ! __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Creation_Time.h b/TAO/tao/PortableServer/Creation_Time.h
index 525ce68acee..5804c01a892 100644
--- a/TAO/tao/PortableServer/Creation_Time.h
+++ b/TAO/tao/PortableServer/Creation_Time.h
@@ -24,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -93,10 +91,8 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Creation_Time.inl"
+# include "Creation_Time.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Creation_Time.inl b/TAO/tao/PortableServer/Creation_Time.inl
index f629b10e91b..18df03c4bed 100644
--- a/TAO/tao/PortableServer/Creation_Time.inl
+++ b/TAO/tao/PortableServer/Creation_Time.inl
@@ -5,8 +5,6 @@
#include "tao/orbconf.h" /* For POA_NO_TIMESTAMP definition. */
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -123,4 +121,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp
index 40177f90b27..6a054ee480f 100644
--- a/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp
+++ b/TAO/tao/PortableServer/Default_Acceptor_Filter.cpp
@@ -1,6 +1,6 @@
// @(#) $Id$
-#include "tao/PortableServer/Default_Acceptor_Filter.h"
+#include "Default_Acceptor_Filter.h"
#include "tao/Transport_Acceptor.h"
#include "tao/MProfile.h"
#include "tao/Profile.h"
@@ -9,9 +9,6 @@ ACE_RCSID(PortableServer,
Default_Acceptor_Filter,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Default_Acceptor_Filter::TAO_Default_Acceptor_Filter (void)
{
}
@@ -54,5 +51,3 @@ TAO_Default_Acceptor_Filter::encode_endpoints (TAO_MProfile &mprofile)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Default_Acceptor_Filter.h b/TAO/tao/PortableServer/Default_Acceptor_Filter.h
index b9288216837..d6a859d0e3d 100644
--- a/TAO/tao/PortableServer/Default_Acceptor_Filter.h
+++ b/TAO/tao/PortableServer/Default_Acceptor_Filter.h
@@ -6,7 +6,8 @@
*
* $Id$
*
- * Default strategy for populating mprofile
+ * Default strategy for populating mprofile
+ *
*
* @author Marina Spivak <marina@cs.wustl.edu>
* @author Carlos O'Ryan <coryan@uci.edu>
@@ -16,10 +17,9 @@
#ifndef TAO_DEFAULT_ACCEPTOR_FILTER_H
#define TAO_DEFAULT_ACCEPTOR_FILTER_H
-
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +27,6 @@
#include "tao/Acceptor_Filter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
/**
@@ -57,8 +55,5 @@ public:
int encode_endpoints (TAO_MProfile &mprofile);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_DEFAULT_ACCEPTOR_FILTER_H */
diff --git a/TAO/tao/PortableServer/Default_Policy_Validator.cpp b/TAO/tao/PortableServer/Default_Policy_Validator.cpp
index a8ad08a7394..e3b7c8a597b 100644
--- a/TAO/tao/PortableServer/Default_Policy_Validator.cpp
+++ b/TAO/tao/PortableServer/Default_Policy_Validator.cpp
@@ -1,18 +1,16 @@
-// $Id$
+// @(#) $Id$
-#include "tao/PortableServer/Default_Policy_Validator.h"
+#include "Default_Policy_Validator.h"
#include "tao/ORB_Core.h"
#include "tao/Policy_Set.h"
#include "tao/PolicyFactory_Registry_Adapter.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
Default_Policy_Validator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_POA_Default_Policy_Validator::TAO_POA_Default_Policy_Validator (
TAO_ORB_Core &orb_core)
: TAO_Policy_Validator (orb_core)
@@ -124,6 +122,7 @@ TAO_POA_Default_Policy_Validator::validate_impl (TAO_Policy_Set &policies
#endif /* TAO_HAS_MINIMUM_POA == 0 */
}
+
CORBA::Boolean
TAO_POA_Default_Policy_Validator::legal_policy_impl (CORBA::PolicyType type)
{
@@ -148,5 +147,3 @@ TAO_POA_Default_Policy_Validator::merge_policies_impl (
ACE_ENV_ARG_DECL_NOT_USED)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Default_Policy_Validator.h b/TAO/tao/PortableServer/Default_Policy_Validator.h
index ce099b9d402..0b9f8a33a29 100644
--- a/TAO/tao/PortableServer/Default_Policy_Validator.h
+++ b/TAO/tao/PortableServer/Default_Policy_Validator.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Default_Policy_Validator.h
@@ -18,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +24,6 @@
#include "tao/Policy_Validator.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PortableServer_Export TAO_POA_Default_Policy_Validator
: public TAO_Policy_Validator
{
@@ -62,7 +58,5 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_DEFAULT_POLICY_VALIDATOR_H_ */
diff --git a/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp b/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp
index ae93dee3d61..dbd38fd621c 100644
--- a/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp
+++ b/TAO/tao/PortableServer/Default_Servant_Dispatcher.cpp
@@ -1,14 +1,12 @@
-// $Id$
+// @(#) $Id$
-#include "tao/PortableServer/Default_Servant_Dispatcher.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "Default_Servant_Dispatcher.h"
+#include "Root_POA.h"
ACE_RCSID(PortableServer,
Default_Servant_Dispatcher,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Default_Servant_Dispatcher::~TAO_Default_Servant_Dispatcher (void)
{
}
@@ -65,5 +63,3 @@ TAO_Default_Servant_Dispatcher::post_invoke (
TAO::Portable_Server::Servant_Upcall::Pre_Invoke_State &)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Default_Servant_Dispatcher.h b/TAO/tao/PortableServer/Default_Servant_Dispatcher.h
index 412e8eea9c6..b0af90027e3 100644
--- a/TAO/tao/PortableServer/Default_Servant_Dispatcher.h
+++ b/TAO/tao/PortableServer/Default_Servant_Dispatcher.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,15 +14,13 @@
#define TAO_DEFAULT_SERVANT_DISPATCHER_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Dispatcher.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Servant_Dispatcher.h"
/**
* @class TAO_Default_Servant_Dispatcher
@@ -71,7 +69,5 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_DEFAULT_SERVANT_DISPATCHER_H */
diff --git a/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.cpp b/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.cpp
index 9b2d483f011..026f9f44ff5 100644
--- a/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.cpp
+++ b/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h"
+#include "Direct_Collocation_Upcall_Wrapper.h"
#if (TAO_HAS_MINIMUM_CORBA == 0)
-# include "tao/PortableServer/ForwardRequestC.h"
+# include "ForwardRequestC.h"
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
#include "tao/Abstract_Servant_Base.h"
@@ -16,8 +16,6 @@ ACE_RCSID (PortableServer,
Direct_Collocation_Upcall_Wrapper,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO::Direct_Collocation_Upcall_Wrapper::upcall (
CORBA::Object_ptr obj,
@@ -70,4 +68,3 @@ ACE_THROW_SPEC ((CORBA::Exception))
ACE_CHECK;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h b/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h
index 3bdf12a5022..2d7dc5ff483 100644
--- a/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h
+++ b/TAO/tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#ifndef ACE_LACKS_PRAGMA_ONCE
# pragma once
@@ -25,11 +25,9 @@
#include "tao/orbconf.h"
#include "tao/Collocation_Strategy.h"
#include "tao/Exception.h"
+#include "ace/CORBA_macros.h"
#include "tao/CORBA_methods.h"
#include "tao/Pseudo_VarOut_T.h"
-#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -71,7 +69,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp
index 9ddd1ea1d36..1d90e7de4bc 100644
--- a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.cpp
@@ -9,8 +9,6 @@
#include "tao/PortableServer/Fixed_Array_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename S_slice,
typename S_forany,
@@ -159,6 +157,4 @@ TAO::Ret_Fixed_Array_SArgument_T<S_slice,
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_FIXED_ARRAY_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h
index e03fb2c19f4..4fb052bbfc7 100644
--- a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h
+++ b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.h
@@ -22,9 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -177,8 +174,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Fixed_Array_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.inl b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.inl
index 0708aa7ebf1..24a54390d96 100644
--- a/TAO/tao/PortableServer/Fixed_Array_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Fixed_Array_SArgument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename S_slice,
typename S_forany,
@@ -119,5 +117,3 @@ TAO::Ret_Fixed_Array_SArgument_T<S_slice,
{
return this->x_._retn_arg ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.cpp b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.cpp
index 2fc65cd99cf..a145529ec0c 100644
--- a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.cpp
@@ -9,7 +9,6 @@
#include "tao/PortableServer/Fixed_Size_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S,
typename Insert_Policy>
@@ -110,6 +109,4 @@ TAO::Ret_Fixed_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_FIXED_SIZE_SARGUMENT_T_CPP */
+#endif /* TAO_FIXED_SIZE_SARGUMENT_T_C */
diff --git a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h
index fb9f6ea732a..b7d77ee05d3 100644
--- a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h
+++ b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.h
@@ -12,6 +12,7 @@
*/
//=============================================================================
+
#ifndef TAO_FIXED_SIZE_SARGUMENT_T_H
#define TAO_FIXED_SIZE_SARGUMENT_T_H
@@ -23,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -216,7 +215,6 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Fixed_Size_SArgument_T.inl"
diff --git a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.inl b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.inl
index 3a265297105..05e29ce35a6 100644
--- a/TAO/tao/PortableServer/Fixed_Size_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Fixed_Size_SArgument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename Insert_Policy>
ACE_INLINE
@@ -67,5 +65,3 @@ TAO::Ret_Fixed_Size_SArgument_T<S,Insert_Policy>::arg (void)
{
return this->x_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ForwardRequestA.cpp b/TAO/tao/PortableServer/ForwardRequestA.cpp
index 24d7567729c..e7f7a7415bf 100644
--- a/TAO/tao/PortableServer/ForwardRequestA.cpp
+++ b/TAO/tao/PortableServer/ForwardRequestA.cpp
@@ -30,15 +30,13 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/PortableServer/ForwardRequestA.h"
+#include "ForwardRequestA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO extension - the virtual _type method.
CORBA::TypeCode_ptr PortableServer::ForwardRequest::_tao_type (void) const
{
@@ -158,6 +156,4 @@ CORBA::Boolean operator>>= (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ForwardRequestA.h b/TAO/tao/PortableServer/ForwardRequestA.h
index 578ec0ccb21..7334c86752b 100644
--- a/TAO/tao/PortableServer/ForwardRequestA.h
+++ b/TAO/tao/PortableServer/ForwardRequestA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ForwardRequestC.h"
+#include "portableserver_export.h"
+#include "ForwardRequestC.h"
#if (TAO_HAS_MINIMUM_POA == 0)
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -64,8 +62,6 @@ TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::Forwar
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ForwardRequest *&); // deprecated
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::ForwardRequest *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/ForwardRequestC.cpp b/TAO/tao/PortableServer/ForwardRequestC.cpp
index d82d2935b9f..c062858725e 100644
--- a/TAO/tao/PortableServer/ForwardRequestC.cpp
+++ b/TAO/tao/PortableServer/ForwardRequestC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ForwardRequestC.h"
+#include "ForwardRequestC.h"
#include "tao/CDR.h"
#include "tao/SystemException.h"
#include "ace/OS_NS_string.h"
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -199,6 +197,4 @@ CORBA::Boolean operator>> (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ForwardRequestC.h b/TAO/tao/PortableServer/ForwardRequestC.h
index 299323cee16..68cd5c23e74 100644
--- a/TAO/tao/PortableServer/ForwardRequestC.h
+++ b/TAO/tao/PortableServer/ForwardRequestC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Object.h"
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -132,8 +130,6 @@ namespace TAO
TAO_PortableServer_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const PortableServer::ForwardRequest &);
TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ForwardRequest &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
// TAO_IDL - Generated from
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicy.cpp b/TAO/tao/PortableServer/IdAssignmentPolicy.cpp
index f3744823ab9..89efde0e574 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicy.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentPolicy.cpp
@@ -1,12 +1,10 @@
-#include "tao/PortableServer/IdAssignmentPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "IdAssignmentPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
IdAssignmentPolicy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -64,4 +62,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicy.h b/TAO/tao/PortableServer/IdAssignmentPolicy.h
index c8c6d9f9cf3..d467272019e 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicy.h
+++ b/TAO/tao/PortableServer/IdAssignmentPolicy.h
@@ -14,13 +14,13 @@
#define TAO_PORTABLESERVER_IDASSIGNMENTPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
+#include "IdAssignmentPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -30,8 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -67,8 +65,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicy.pidl b/TAO/tao/PortableServer/IdAssignmentPolicy.pidl
index 7f06e39e614..1159445ce0b 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicy.pidl
+++ b/TAO/tao/PortableServer/IdAssignmentPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_IDASSIGNMENTPOLICY_IDL_
#define _PORTABLESERVER_IDASSIGNMENTPOLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicyA.cpp b/TAO/tao/PortableServer/IdAssignmentPolicyA.cpp
index 83970768fa3..ad3a8c200b3 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicyA.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentPolicyA.cpp
@@ -30,14 +30,12 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/IdAssignmentPolicyA.h"
+#include "IdAssignmentPolicyA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -110,5 +108,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicyA.h b/TAO/tao/PortableServer/IdAssignmentPolicyA.h
index 49df4b62e0e..5e640efa07f 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicyA.h
+++ b/TAO/tao/PortableServer/IdAssignmentPolicyA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
+#include "portableserver_export.h"
+#include "IdAssignmentPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -67,8 +65,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::IdAssignmentPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdAssignmentPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicyC.cpp b/TAO/tao/PortableServer/IdAssignmentPolicyC.cpp
index 7d78dc8ac31..dae4a91d05b 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicyC.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentPolicyC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
+#include "IdAssignmentPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -189,5 +187,3 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::IdAssignmentPoli
return _tao_success;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdAssignmentPolicyC.h b/TAO/tao/PortableServer/IdAssignmentPolicyC.h
index 3a01f212361..f7c43ec160d 100644
--- a/TAO/tao/PortableServer/IdAssignmentPolicyC.h
+++ b/TAO/tao/PortableServer/IdAssignmentPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -230,8 +228,6 @@ TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableSer
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategy.cpp b/TAO/tao/PortableServer/IdAssignmentStrategy.cpp
index 969a6bfa112..87cb019e4b5 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategy.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentStrategy.cpp
@@ -1,21 +1,17 @@
// $Id$
-#include "tao/PortableServer/IdAssignmentStrategy.h"
+#include "IdAssignmentStrategy.h"
ACE_RCSID (PortableServer,
IdAssignmentStrategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
void
- IdAssignmentStrategy::strategy_init (TAO_Root_POA * /*poa*/
- ACE_ENV_ARG_DECL_NOT_USED)
+ IdAssignmentStrategy::strategy_init (TAO_Root_POA * /*poa*/ ACE_ENV_ARG_DECL_NOT_USED)
{
}
@@ -43,4 +39,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategy.h b/TAO/tao/PortableServer/IdAssignmentStrategy.h
index d53a67c62b3..e3085c33be2 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategy.h
+++ b/TAO/tao/PortableServer/IdAssignmentStrategy.h
@@ -14,7 +14,7 @@
#define TAO_ID_ASSIGNMENT_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Policy_Strategy.h"
+#include "Policy_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,14 +22,12 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
- class IdAssignmentStrategy
- : public Policy_Strategy
+ class IdAssignmentStrategy :
+ public Policy_Strategy
{
public:
virtual void strategy_init(TAO_Root_POA *poa ACE_ENV_ARG_DECL);
@@ -53,7 +51,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ID_ASSIGNMENT_STRATEGY_H */
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyFactory.h b/TAO/tao/PortableServer/IdAssignmentStrategyFactory.h
index 2d0dd83a80c..73a5e0c050a 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategyFactory.h
+++ b/TAO/tao/PortableServer/IdAssignmentStrategyFactory.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/StrategyFactory.h"
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "StrategyFactory.h"
+#include "IdAssignmentPolicyC.h"
namespace TAO
{
@@ -46,7 +44,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp
index 475632c8363..b83c49ecf00 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/PortableServer/IdAssignmentStrategyFactoryImpl.h"
-#include "tao/PortableServer/IdAssignmentStrategy.h"
+#include "IdAssignmentStrategyFactoryImpl.h"
+#include "IdAssignmentStrategy.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (PortableServer,
IdAssignmentStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -54,20 +52,15 @@ namespace TAO
// Noop because both types are singletons
}
+ ACE_STATIC_SVC_DEFINE (
+ IdAssignmentStrategyFactoryImpl,
+ ACE_TEXT ("IdAssignmentStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdAssignmentStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdAssignmentStrategyFactoryImpl)
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DEFINE (
- IdAssignmentStrategyFactoryImpl,
- ACE_TEXT ("IdAssignmentStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdAssignmentStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdAssignmentStrategyFactoryImpl,
- TAO::Portable_Server::IdAssignmentStrategyFactoryImpl)
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.h b/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.h
index 1e7cadb3267..2ae4e43b745 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/IdAssignmentStrategyFactoryImpl.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdAssignmentStrategyFactory.h"
#include "ace/Service_Config.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "IdAssignmentStrategyFactory.h"
namespace TAO
{
@@ -41,14 +39,11 @@ namespace TAO
IdAssignmentStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategyFactoryImpl)
-
#include /**/ "ace/post.h"
-
#endif /* TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp b/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp
index d7775832e2c..fbdbaed75c4 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentStrategySystem.cpp
@@ -1,14 +1,11 @@
// $Id$
-#include "tao/PortableServer/IdAssignmentStrategySystem.h"
+#include "IdAssignmentStrategySystem.h"
ACE_RCSID (PortableServer,
Id_Assignment_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -24,21 +21,17 @@ namespace TAO
{
return true;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdAssignmentStrategySystem)
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdAssignmentStrategySystem,
- TAO::Portable_Server::IdAssignmentStrategySystem)
-
-ACE_STATIC_SVC_DEFINE (
- IdAssignmentStrategySystem,
- ACE_TEXT ("IdAssignmentStrategySystem"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdAssignmentStrategySystem),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_STATIC_SVC_DEFINE (
+ IdAssignmentStrategySystem,
+ ACE_TEXT ("IdAssignmentStrategySystem"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdAssignmentStrategySystem),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategySystem.h b/TAO/tao/PortableServer/IdAssignmentStrategySystem.h
index e77cbc95b8f..6471e5bce3f 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategySystem.h
+++ b/TAO/tao/PortableServer/IdAssignmentStrategySystem.h
@@ -14,17 +14,15 @@
#define TAO_IDASSIGNMENTSTRATEGYSYSTEM_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdAssignmentStrategy.h"
+#include "IdAssignmentStrategy.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -37,13 +35,11 @@ namespace TAO
virtual bool has_system_id (void) const;
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategySystem)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategySystem)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategySystem)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategySystem)
-
#include /**/ "ace/post.h"
#endif /* TAO_IDASSIGNMENTSTRATEGYSYSTEM_H */
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp b/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp
index 3cfa5cef85a..9895db85f2e 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp
+++ b/TAO/tao/PortableServer/IdAssignmentStrategyUser.cpp
@@ -1,13 +1,11 @@
// $Id$
-#include "tao/PortableServer/IdAssignmentStrategyUser.h"
+#include "IdAssignmentStrategyUser.h"
ACE_RCSID (PortableServer,
Id_Assignment_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -23,20 +21,17 @@ namespace TAO
{
return false;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdAssignmentStrategyUser)
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdAssignmentStrategyUser,
- TAO::Portable_Server::IdAssignmentStrategyUser)
+ ACE_STATIC_SVC_DEFINE (
+ IdAssignmentStrategyUser,
+ ACE_TEXT ("IdAssignmentStrategyUser"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdAssignmentStrategyUser),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
-ACE_STATIC_SVC_DEFINE (
- IdAssignmentStrategyUser,
- ACE_TEXT ("IdAssignmentStrategyUser"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdAssignmentStrategyUser),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/PortableServer/IdAssignmentStrategyUser.h b/TAO/tao/PortableServer/IdAssignmentStrategyUser.h
index f3560cef1d5..f202c12c6ad 100644
--- a/TAO/tao/PortableServer/IdAssignmentStrategyUser.h
+++ b/TAO/tao/PortableServer/IdAssignmentStrategyUser.h
@@ -14,17 +14,15 @@
#define TAO_IDASSIGNMENTSTRATEGYUSER_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdAssignmentStrategy.h"
+#include "IdAssignmentStrategy.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -37,13 +35,11 @@ namespace TAO
virtual bool has_system_id (void) const;
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategyUser)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategyUser)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategyUser)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategyUser)
-
#include /**/ "ace/post.h"
#endif /* TAO_IDASSIGNMENTSTRATEGYUSER_H */
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicy.cpp b/TAO/tao/PortableServer/IdUniquenessPolicy.cpp
index 03a206a6301..7dc969af49c 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicy.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessPolicy.cpp
@@ -1,12 +1,10 @@
-#include "tao/PortableServer/IdUniquenessPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "IdUniquenessPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
IdUniquenessPolicy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -64,4 +62,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicy.h b/TAO/tao/PortableServer/IdUniquenessPolicy.h
index 20e641bc3bf..3064d77924a 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicy.h
+++ b/TAO/tao/PortableServer/IdUniquenessPolicy.h
@@ -14,13 +14,13 @@
#define TAO_PORTABLESERVER_IDUNIQUENESSTPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
+#include "IdUniquenessPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -30,8 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -67,8 +65,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicy.pidl b/TAO/tao/PortableServer/IdUniquenessPolicy.pidl
index 5175cb16d30..110ee6471f0 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicy.pidl
+++ b/TAO/tao/PortableServer/IdUniquenessPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_IDUNIQUENESSPOLICY_IDL_
#define _PORTABLESERVER_IDUNIQUENESSPOLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicyA.cpp b/TAO/tao/PortableServer/IdUniquenessPolicyA.cpp
index a11afa6fd24..49e84fb2d7e 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicyA.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessPolicyA.cpp
@@ -34,10 +34,9 @@
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-#include "tao/PortableServer/IdUniquenessPolicyA.h"
+#include "IdUniquenessPolicyA.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -111,5 +110,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicyA.h b/TAO/tao/PortableServer/IdUniquenessPolicyA.h
index 547e53a5073..22d04465329 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicyA.h
+++ b/TAO/tao/PortableServer/IdUniquenessPolicyA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
+#include "portableserver_export.h"
+#include "IdUniquenessPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -67,8 +65,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::IdUniquenessPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::IdUniquenessPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicyC.cpp b/TAO/tao/PortableServer/IdUniquenessPolicyC.cpp
index 636a02a22c3..340160fd2fc 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicyC.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessPolicyC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
+#include "IdUniquenessPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -189,5 +187,3 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::IdUniquenessPoli
return _tao_success;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/IdUniquenessPolicyC.h b/TAO/tao/PortableServer/IdUniquenessPolicyC.h
index c706c285feb..dbdeb5d2ed6 100644
--- a/TAO/tao/PortableServer/IdUniquenessPolicyC.h
+++ b/TAO/tao/PortableServer/IdUniquenessPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -230,8 +228,6 @@ TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableSer
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategy.h b/TAO/tao/PortableServer/IdUniquenessStrategy.h
index de0fb20c737..bdb2f08e182 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategy.h
+++ b/TAO/tao/PortableServer/IdUniquenessStrategy.h
@@ -14,17 +14,15 @@
#define TAO_ID_UNIQUENESS_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Policy_Strategy.h"
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
-#include "tao/PortableServer/PS_ForwardC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Policy_Strategy.h"
+#include "IdUniquenessPolicyC.h"
+#include "PS_ForwardC.h"
namespace TAO
{
@@ -50,7 +48,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ID_UNIQUENESS_STRATEGY_H */
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyFactory.h b/TAO/tao/PortableServer/IdUniquenessStrategyFactory.h
index b3f973ef19f..c4c28dd26e4 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyFactory.h
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyFactory.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/StrategyFactory.h"
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "StrategyFactory.h"
+#include "IdUniquenessPolicyC.h"
namespace TAO
{
@@ -47,7 +45,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp
index 47530f5a9a9..7a9aae6ed11 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/PortableServer/IdUniquenessStrategyFactoryImpl.h"
-#include "tao/PortableServer/IdUniquenessStrategy.h"
+#include "IdUniquenessStrategyFactoryImpl.h"
+#include "IdUniquenessStrategy.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (PortableServer,
IdUniquenessStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -81,20 +79,15 @@ namespace TAO
}
}
+ ACE_STATIC_SVC_DEFINE (
+ IdUniquenessStrategyFactoryImpl,
+ ACE_TEXT ("IdUniquenessStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdUniquenessStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdUniquenessStrategyFactoryImpl)
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DEFINE (
- IdUniquenessStrategyFactoryImpl,
- ACE_TEXT ("IdUniquenessStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdUniquenessStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdUniquenessStrategyFactoryImpl,
- TAO::Portable_Server::IdUniquenessStrategyFactoryImpl)
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.h b/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.h
index 8846237437d..88d453a4a59 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyFactoryImpl.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/PortableServer/IdUniquenessStrategyFactory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "IdUniquenessStrategyFactory.h"
namespace TAO
{
@@ -41,13 +39,11 @@ namespace TAO
IdUniquenessStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE (IdUniquenessStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (IdUniquenessStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyFactoryImpl)
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp
index d1071f1470c..19b94296166 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.cpp
@@ -1,14 +1,11 @@
// $Id$
-#include "tao/PortableServer/IdUniquenessStrategyMultiple.h"
+#include "IdUniquenessStrategyMultiple.h"
ACE_RCSID (PortableServer,
Id_Uniqueness_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -48,20 +45,15 @@ namespace TAO
return ::PortableServer::MULTIPLE_ID;
}
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdUniquenessStrategyMultiple)
+
+ ACE_STATIC_SVC_DEFINE (
+ IdUniquenessStrategyMultiple,
+ ACE_TEXT ("IdUniquenessStrategyMultiple"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdUniquenessStrategyMultiple),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdUniquenessStrategyMultiple,
- TAO::Portable_Server::IdUniquenessStrategyMultiple)
-
-ACE_STATIC_SVC_DEFINE (
- IdUniquenessStrategyMultiple,
- ACE_TEXT ("IdUniquenessStrategyMultiple"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdUniquenessStrategyMultiple),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h
index f3c2e405447..e706f0e7b87 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyMultiple.h
@@ -14,17 +14,15 @@
#define TAO_ID_UNIQUENESSSTRATEGY_MULITPLE_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdUniquenessStrategy.h"
+#include "IdUniquenessStrategy.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -46,14 +44,10 @@ namespace TAO
virtual ::PortableServer::IdUniquenessPolicyValue type() const;
};
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyMultiple)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyMultiple)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyMultiple)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyMultiple)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_ID_UNIQUENESSSTRATEGY_MULITPLE_H */
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp
index 3c5516d4956..b612a8ffb4d 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.cpp
@@ -1,15 +1,12 @@
// $Id$
-#include "tao/PortableServer/IdUniquenessStrategyUnique.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "IdUniquenessStrategyUnique.h"
+#include "Root_POA.h"
ACE_RCSID (PortableServer,
Id_Uniqueness_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -60,20 +57,15 @@ namespace TAO
return ::PortableServer::UNIQUE_ID;
}
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdUniquenessStrategyUnique)
+
+ ACE_STATIC_SVC_DEFINE (
+ IdUniquenessStrategyUnique,
+ ACE_TEXT ("IdUniquenessStrategyUnique"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdUniquenessStrategyUnique),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdUniquenessStrategyUnique,
- TAO::Portable_Server::IdUniquenessStrategyUnique)
-
-ACE_STATIC_SVC_DEFINE (
- IdUniquenessStrategyUnique,
- ACE_TEXT ("IdUniquenessStrategyUnique"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdUniquenessStrategyUnique),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h
index 58bbf096de5..7af8890f475 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyUnique.h
@@ -14,17 +14,15 @@
#define TAO_ID_UNIQUENESSSTRATEGYUNIQUE_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/IdUniquenessStrategy.h"
+#include "IdUniquenessStrategy.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -52,14 +50,10 @@ namespace TAO
TAO_Root_POA* poa_;
};
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyUnique)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyUnique)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyUnique)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyUnique)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_ID_UNIQUENESSSTRATEGYUNIQUE_H */
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp b/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp
index b29178c143f..77b597e30c9 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h"
-#include "tao/PortableServer/IdUniquenessStrategyUnique.h"
+#include "IdUniquenessStrategyUniqueFactoryImpl.h"
+#include "IdUniquenessStrategyUnique.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (PortableServer,
IdUniquenessStrategyUniqueFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -48,21 +46,16 @@ namespace TAO
delete strategy;
}
+ ACE_STATIC_SVC_DEFINE (
+ IdUniquenessStrategyUniqueFactoryImpl,
+ ACE_TEXT ("IdUniquenessStrategyUniqueFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (IdUniquenessStrategyUniqueFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+
+ ACE_FACTORY_DEFINE (ACE_Local_Service, IdUniquenessStrategyUniqueFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DEFINE (
- IdUniquenessStrategyUniqueFactoryImpl,
- ACE_TEXT ("IdUniquenessStrategyUniqueFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (IdUniquenessStrategyUniqueFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- IdUniquenessStrategyUniqueFactoryImpl,
- TAO::Portable_Server::IdUniquenessStrategyUniqueFactoryImpl)
-
diff --git a/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h b/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h
index 721ae2a6eb9..927dda0a86b 100644
--- a/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h
+++ b/TAO/tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYUNIQUEFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/PortableServer/IdUniquenessStrategyFactory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "IdUniquenessStrategyFactory.h"
namespace TAO
{
@@ -42,14 +40,10 @@ namespace TAO
ACE_ENV_ARG_DECL);
};
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyUniqueFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyUniqueFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyUniqueFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyUniqueFactoryImpl)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYUNIQUEFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/ImR_Client_Adapter.cpp b/TAO/tao/PortableServer/ImR_Client_Adapter.cpp
index c5a9d148f85..379a7696117 100644
--- a/TAO/tao/PortableServer/ImR_Client_Adapter.cpp
+++ b/TAO/tao/PortableServer/ImR_Client_Adapter.cpp
@@ -1,21 +1,19 @@
-// $Id$
+// @(#) $Id$
-#include "tao/PortableServer/ImR_Client_Adapter.h"
+#include "ImR_Client_Adapter.h"
ACE_RCSID (tao,
ImR_Client_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
+
ImR_Client_Adapter::~ImR_Client_Adapter (void)
{
}
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ImR_Client_Adapter.h b/TAO/tao/PortableServer/ImR_Client_Adapter.h
index e5b55bd6077..019cc333669 100644
--- a/TAO/tao/PortableServer/ImR_Client_Adapter.h
+++ b/TAO/tao/PortableServer/ImR_Client_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +27,6 @@
#include "tao/orbconf.h"
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Root_POA;
namespace TAO
@@ -59,7 +57,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_IMR_CLIENT_ADAPTER_H */
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp b/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp
index 3c968d993da..940a0f05b18 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicy.cpp
@@ -1,5 +1,5 @@
-#include "tao/PortableServer/ImplicitActivationPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "ImplicitActivationPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
ImplicitActivationPolicy,
@@ -7,8 +7,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -66,6 +64,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicy.h b/TAO/tao/PortableServer/ImplicitActivationPolicy.h
index ee7f98bbbe5..6e9f11bea63 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicy.h
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicy.h
@@ -14,13 +14,13 @@
#define TAO_PORTABLESERVER_IMPLICITACTIVATIONPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
+#include "ImplicitActivationPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -32,8 +32,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -69,8 +67,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicy.pidl b/TAO/tao/PortableServer/ImplicitActivationPolicy.pidl
index 976c399bc02..9a5351cac56 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicy.pidl
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_IMPLICITACTIVATIONPOLICY_IDL_
#define _PORTABLESERVER_IMPLICITACTIVATIONPOLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicyA.cpp b/TAO/tao/PortableServer/ImplicitActivationPolicyA.cpp
index e9cf1e13d1c..dbf3b01f052 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicyA.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicyA.cpp
@@ -30,7 +30,7 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/ImplicitActivationPolicyA.h"
+#include "ImplicitActivationPolicyA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -113,6 +111,4 @@ CORBA::Boolean operator>>= (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicyA.h b/TAO/tao/PortableServer/ImplicitActivationPolicyA.h
index 1445a5a68a6..70e35ef75ac 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicyA.h
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicyA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
+#include "portableserver_export.h"
+#include "ImplicitActivationPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -67,8 +65,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::ImplicitActivationPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ImplicitActivationPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicyC.cpp b/TAO/tao/PortableServer/ImplicitActivationPolicyC.cpp
index 3a6f411acf4..825dd9af720 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicyC.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
+#include "ImplicitActivationPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -192,6 +190,4 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::ImplicitActivati
return _tao_success;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ImplicitActivationPolicyC.h b/TAO/tao/PortableServer/ImplicitActivationPolicyC.h
index baad7fbbbbc..82f509d1bd9 100644
--- a/TAO/tao/PortableServer/ImplicitActivationPolicyC.h
+++ b/TAO/tao/PortableServer/ImplicitActivationPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -237,8 +235,6 @@ TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableSer
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp
index f2761572e36..0e1e4d3002e 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategy.cpp
@@ -1,13 +1,11 @@
// -*- C++ -*-
-#include "tao/PortableServer/ImplicitActivationStrategy.h"
+#include "ImplicitActivationStrategy.h"
ACE_RCSID (PortableServer,
ImplicitActivationStrategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -28,4 +26,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategy.h b/TAO/tao/PortableServer/ImplicitActivationStrategy.h
index 22ca61b5cbf..fbdaf2cab52 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategy.h
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategy.h
@@ -14,14 +14,12 @@
#define TAO_ACTIVATION_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Policy_Strategy.h"
+#include "Policy_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -39,7 +37,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ACTIVATION_STRATEGY_H */
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp
index 09ca4fb613e..55f3a61fcef 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.cpp
@@ -1,13 +1,11 @@
// -*- C++ -*-
-#include "tao/PortableServer/ImplicitActivationStrategyExplicit.h"
+#include "ImplicitActivationStrategyExplicit.h"
ACE_RCSID (PortableServer,
ImplicitActivationStrategyExplicit,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -17,22 +15,17 @@ namespace TAO
{
return false;
}
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ImplicitActivationStrategyExplicit)
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ImplicitActivationStrategyExplicit,
- TAO::Portable_Server::ImplicitActivationStrategyExplicit)
-
-ACE_STATIC_SVC_DEFINE (
- ImplicitActivationStrategyExplicit,
- ACE_TEXT ("ImplicitActivationStrategyExplicit"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ImplicitActivationStrategyExplicit),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_STATIC_SVC_DEFINE (
+ ImplicitActivationStrategyExplicit,
+ ACE_TEXT ("ImplicitActivationStrategyExplicit"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ImplicitActivationStrategyExplicit),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h
index af9e70e931e..0e03d29c584 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyExplicit.h
@@ -14,17 +14,15 @@
#define TAO_IMPLICITACTIVATIONSTRATEGYEXPLICIT_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ImplicitActivationStrategy.h"
+#include "ImplicitActivationStrategy.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -35,14 +33,11 @@ namespace TAO
public:
virtual bool allow_implicit_activation (void) const;
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ImplicitActivationStrategyExplicit)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ImplicitActivationStrategyExplicit)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ImplicitActivationStrategyExplicit)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ImplicitActivationStrategyExplicit)
-
#include /**/ "ace/post.h"
#endif /* TAO_IMPLICITACTIVATIONSTRATEGYEXPLICIT_H */
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyFactory.h b/TAO/tao/PortableServer/ImplicitActivationStrategyFactory.h
index f5d1a8aa5f4..48ed323d19d 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyFactory.h
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyFactory.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_IMPLICITACTIVATIONSTRATEGYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/StrategyFactory.h"
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "StrategyFactory.h"
+#include "ImplicitActivationPolicyC.h"
namespace TAO
{
@@ -46,7 +44,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_IMPLICITACTIVATIONSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp
index 0fa7771687c..ef3916e288a 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h"
+#include "ImplicitActivationStrategyFactoryImpl.h"
#include "ace/Dynamic_Service.h"
-#include "tao/PortableServer/ImplicitActivationStrategyImplicit.h"
-#include "tao/PortableServer/ImplicitActivationStrategyExplicit.h"
+#include "ImplicitActivationStrategyImplicit.h"
+#include "ImplicitActivationStrategyExplicit.h"
ACE_RCSID (PortableServer,
ImplicitActivationStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -54,22 +52,17 @@ namespace TAO
{
// Noop because both types are singletons
}
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ImplicitActivationStrategyFactoryImpl,
- TAO_VERSIONED_NAMESPACE_NAME::TAO::Portable_Server::ImplicitActivationStrategyFactoryImpl)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ImplicitActivationStrategyFactoryImpl)
-
-ACE_STATIC_SVC_DEFINE (
- ImplicitActivationStrategyFactoryImpl,
- ACE_TEXT ("ImplicitActivationStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ImplicitActivationStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_STATIC_SVC_DEFINE (
+ ImplicitActivationStrategyFactoryImpl,
+ ACE_TEXT ("ImplicitActivationStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ImplicitActivationStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h b/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h
index 6b9e87ef7f3..90ff9ea0a63 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h
@@ -14,17 +14,14 @@
#define TAO_PORTABLESERVER_IMPLICITACTIVATIONSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/PortableServer/ImplicitActivationStrategyFactory.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ImplicitActivationStrategyFactory.h"
namespace TAO
{
@@ -42,13 +39,11 @@ namespace TAO
ImplicitActivationStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ImplicitActivationStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ImplicitActivationStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ImplicitActivationStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ImplicitActivationStrategyFactoryImpl)
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_IMPLICITACTIVATIONSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp
index 551d6f45bdf..dbc91745bf1 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.cpp
@@ -1,14 +1,11 @@
// -*- C++ -*-
-#include "tao/PortableServer/ImplicitActivationStrategyImplicit.h"
+#include "ImplicitActivationStrategyImplicit.h"
ACE_RCSID (PortableServer,
ImplicitActivationStrategyImplicit,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -18,22 +15,17 @@ namespace TAO
{
return true;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ImplicitActivationStrategyImplicit,
- TAO::Portable_Server::ImplicitActivationStrategyImplicit)
-
-ACE_STATIC_SVC_DEFINE (
- ImplicitActivationStrategyImplicit,
- ACE_TEXT ("ImplicitActivationStrategyImplicit"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ImplicitActivationStrategyImplicit),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ImplicitActivationStrategyImplicit)
+ ACE_STATIC_SVC_DEFINE (
+ ImplicitActivationStrategyImplicit,
+ ACE_TEXT ("ImplicitActivationStrategyImplicit"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ImplicitActivationStrategyImplicit),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
diff --git a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h
index 92f9feab992..766d0aff4cb 100644
--- a/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h
+++ b/TAO/tao/PortableServer/ImplicitActivationStrategyImplicit.h
@@ -14,17 +14,15 @@
#define TAO_IMPLICITACTIVATIONSTRATEGYIMPLICIT_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ImplicitActivationStrategy.h"
+#include "ImplicitActivationStrategy.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -35,14 +33,11 @@ namespace TAO
public:
virtual bool allow_implicit_activation (void) const;
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ImplicitActivationStrategyImplicit)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ImplicitActivationStrategyImplicit)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ImplicitActivationStrategyImplicit)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ImplicitActivationStrategyImplicit)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_IMPLICITACTIVATIONSTRATEGYIMPLICIT_H */
diff --git a/TAO/tao/PortableServer/Key_Adapters.cpp b/TAO/tao/PortableServer/Key_Adapters.cpp
index 9263e4470fc..0765402e755 100644
--- a/TAO/tao/PortableServer/Key_Adapters.cpp
+++ b/TAO/tao/PortableServer/Key_Adapters.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Key_Adapters.h"
+#include "Key_Adapters.h"
#include "ace/ACE.h"
#include "ace/OS_NS_string.h"
@@ -10,9 +10,7 @@ ACE_RCSID (PortableServer,
Key_Adapters,
"$Id$")
-///////////////////////////////////////////////////////////////////////////////
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+////////////////////////////////////////////////////////////////////////////////
TAO_Incremental_Key_Generator::TAO_Incremental_Key_Generator (void)
: counter_ (0)
@@ -148,5 +146,4 @@ TAO_Preserve_Original_Key_Adapter::decode (const PortableServer::ObjectId &modif
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
+////////////////////////////////////////////////////////////////////////////////
diff --git a/TAO/tao/PortableServer/Key_Adapters.h b/TAO/tao/PortableServer/Key_Adapters.h
index ac5881a10fa..a7f8e544b5c 100644
--- a/TAO/tao/PortableServer/Key_Adapters.h
+++ b/TAO/tao/PortableServer/Key_Adapters.h
@@ -15,21 +15,17 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/PS_ForwardC.h"
+#include "PS_ForwardC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Active_Map_Manager_Key;
-ACE_END_VERSIONED_NAMESPACE_DECL
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-///////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
/**
* @class TAO_Incremental_Key_Generator
@@ -120,9 +116,7 @@ public:
PortableServer::ObjectId &original_key);
};
-///////////////////////////////////////////////////////////////////////////////
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+////////////////////////////////////////////////////////////////////////////////
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/LifespanPolicy.cpp b/TAO/tao/PortableServer/LifespanPolicy.cpp
index f3eb4894a21..377b34fedd6 100644
--- a/TAO/tao/PortableServer/LifespanPolicy.cpp
+++ b/TAO/tao/PortableServer/LifespanPolicy.cpp
@@ -1,12 +1,10 @@
-#include "tao/PortableServer/LifespanPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "LifespanPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
LifespanPolicy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -64,4 +62,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/LifespanPolicy.h b/TAO/tao/PortableServer/LifespanPolicy.h
index eb0de5aae3c..8d6f3aafc10 100644
--- a/TAO/tao/PortableServer/LifespanPolicy.h
+++ b/TAO/tao/PortableServer/LifespanPolicy.h
@@ -14,13 +14,13 @@
#define TAO_POA_LIFESPANPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/LifespanPolicyC.h"
+#include "LifespanPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -30,8 +30,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -67,8 +65,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PortableServer/LifespanPolicy.pidl b/TAO/tao/PortableServer/LifespanPolicy.pidl
index 6ab38f36c71..428503d0157 100644
--- a/TAO/tao/PortableServer/LifespanPolicy.pidl
+++ b/TAO/tao/PortableServer/LifespanPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_LIFESPANPOLICY_IDL_
#define _PORTABLESERVER_LIFESPANPOLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/LifespanPolicyA.cpp b/TAO/tao/PortableServer/LifespanPolicyA.cpp
index ee1706bf526..bfee89df475 100644
--- a/TAO/tao/PortableServer/LifespanPolicyA.cpp
+++ b/TAO/tao/PortableServer/LifespanPolicyA.cpp
@@ -30,14 +30,12 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/LifespanPolicyA.h"
+#include "LifespanPolicyA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -110,5 +108,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/LifespanPolicyA.h b/TAO/tao/PortableServer/LifespanPolicyA.h
index 645805dbec9..cd12e1ef5b5 100644
--- a/TAO/tao/PortableServer/LifespanPolicyA.h
+++ b/TAO/tao/PortableServer/LifespanPolicyA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/LifespanPolicyC.h"
+#include "portableserver_export.h"
+#include "LifespanPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -67,8 +65,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::LifespanPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::LifespanPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/LifespanPolicyC.cpp b/TAO/tao/PortableServer/LifespanPolicyC.cpp
index 6e819d2f343..832e35bf202 100644
--- a/TAO/tao/PortableServer/LifespanPolicyC.cpp
+++ b/TAO/tao/PortableServer/LifespanPolicyC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/LifespanPolicyC.h"
+#include "LifespanPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -189,5 +187,3 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::LifespanPolicyVa
return _tao_success;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/LifespanPolicyC.h b/TAO/tao/PortableServer/LifespanPolicyC.h
index 30753638f7f..3213dce6668 100644
--- a/TAO/tao/PortableServer/LifespanPolicyC.h
+++ b/TAO/tao/PortableServer/LifespanPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -230,8 +228,6 @@ TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableSer
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/LifespanStrategy.cpp b/TAO/tao/PortableServer/LifespanStrategy.cpp
index aea66e7161c..42bec436226 100644
--- a/TAO/tao/PortableServer/LifespanStrategy.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategy.cpp
@@ -9,14 +9,12 @@
*/
//=============================================================================
-#include "tao/PortableServer/LifespanStrategy.h"
+#include "LifespanStrategy.h"
ACE_RCSID (PortableServer,
LifespanStrategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -49,4 +47,3 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/LifespanStrategy.h b/TAO/tao/PortableServer/LifespanStrategy.h
index 895c20335d8..047427364ca 100644
--- a/TAO/tao/PortableServer/LifespanStrategy.h
+++ b/TAO/tao/PortableServer/LifespanStrategy.h
@@ -14,17 +14,15 @@
#define TAO_PORTABLESERVER_LIFESPANPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Policy_Strategy.h"
+#include "Policy_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/LifespanPolicyC.h"
+#include "LifespanPolicyC.h"
#include "tao/Object_KeyC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -83,7 +81,5 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_LIFESPANPOLICY_H */
diff --git a/TAO/tao/PortableServer/LifespanStrategyFactory.h b/TAO/tao/PortableServer/LifespanStrategyFactory.h
index 085e2c75228..ca53f9f58e0 100644
--- a/TAO/tao/PortableServer/LifespanStrategyFactory.h
+++ b/TAO/tao/PortableServer/LifespanStrategyFactory.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/StrategyFactory.h"
-#include "tao/PortableServer/LifespanPolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "StrategyFactory.h"
+#include "LifespanPolicyC.h"
namespace TAO
{
@@ -47,7 +45,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.cpp
index 07e24aebc59..8f2fe097b6e 100644
--- a/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/PortableServer/LifespanStrategyFactoryImpl.h"
-#include "tao/PortableServer/LifespanStrategy.h"
+#include "LifespanStrategyFactoryImpl.h"
+#include "LifespanStrategy.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (PortableServer,
LifespanStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -82,20 +80,17 @@ namespace TAO
}
}
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ LifespanStrategyFactoryImpl,
+ ACE_TEXT ("LifespanStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (LifespanStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- LifespanStrategyFactoryImpl,
- ACE_TEXT ("LifespanStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (LifespanStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, LifespanStrategyFactoryImpl)
+ }
+}
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- LifespanStrategyFactoryImpl,
- TAO::Portable_Server::LifespanStrategyFactoryImpl)
diff --git a/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.h b/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.h
index e0ece8266bb..273a11a9d0f 100644
--- a/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/LifespanStrategyFactoryImpl.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/PortableServer/LifespanStrategyFactory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "LifespanStrategyFactory.h"
namespace TAO
{
@@ -42,14 +40,11 @@ namespace TAO
LifespanStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyFactoryImpl)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp
index 6b2e3420c14..5e40ac9785a 100644
--- a/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategyPersistent.cpp
@@ -1,21 +1,19 @@
// -*- C++ -*-
-#include "tao/PortableServer/LifespanStrategyPersistent.h"
+#include "LifespanStrategyPersistent.h"
ACE_RCSID (PortableServer,
Lifespan_Strategy,
"$Id$")
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/POAManager.h"
-#include "tao/PortableServer/ImR_Client_Adapter.h"
+#include "Root_POA.h"
+#include "POAManager.h"
+#include "ImR_Client_Adapter.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/Dynamic_Service.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -155,5 +153,3 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistent.h b/TAO/tao/PortableServer/LifespanStrategyPersistent.h
index 01634563c72..00ea12a2e5c 100644
--- a/TAO/tao/PortableServer/LifespanStrategyPersistent.h
+++ b/TAO/tao/PortableServer/LifespanStrategyPersistent.h
@@ -14,7 +14,7 @@
#define TAO_LIFESPANSTRATEGYPERSISTENT_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/LifespanStrategy.h"
+#include "LifespanStrategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,8 +22,6 @@
#include "tao/Object_KeyC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ServerObject_i;
namespace TAO
@@ -67,7 +65,5 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LIFESPANSTRATEGYPERSISTENT_H */
diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp b/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp
index ab24406bf5f..1396342b549 100644
--- a/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h"
+#include "LifespanStrategyPersistentFactoryImpl.h"
#include "ace/Dynamic_Service.h"
-#include "tao/PortableServer/LifespanStrategyPersistent.h"
+#include "LifespanStrategyPersistent.h"
ACE_RCSID (PortableServer,
LifespanStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -47,21 +45,17 @@ namespace TAO
delete strategy;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ LifespanStrategyPersistentFactoryImpl,
+ ACE_TEXT ("LifespanStrategyPersistentFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (LifespanStrategyPersistentFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- LifespanStrategyPersistentFactoryImpl,
- ACE_TEXT ("LifespanStrategyPersistentFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (LifespanStrategyPersistentFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- LifespanStrategyPersistentFactoryImpl,
- TAO::Portable_Server::LifespanStrategyPersistentFactoryImpl)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, LifespanStrategyPersistentFactoryImpl)
+ }
+}
diff --git a/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h b/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h
index b32a3c63440..a51984d8a51 100644
--- a/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h
+++ b/TAO/tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h
@@ -14,16 +14,14 @@
#define TAO_PORTABLESERVER_LIFEPSPANSTRATEGYPERSISTENTFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/PortableServer/LifespanStrategyFactory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "LifespanStrategyFactory.h"
namespace TAO
{
@@ -42,14 +40,11 @@ namespace TAO
LifespanStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyPersistentFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyPersistentFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyPersistentFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyPersistentFactoryImpl)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_LIFEPSPANSTRATEGYPERSISTENTFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/LifespanStrategyTransient.cpp b/TAO/tao/PortableServer/LifespanStrategyTransient.cpp
index d1859883dac..267707e0f75 100644
--- a/TAO/tao/PortableServer/LifespanStrategyTransient.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategyTransient.cpp
@@ -1,6 +1,6 @@
// -*- C++ -*-
-#include "tao/PortableServer/LifespanStrategyTransient.h"
+#include "LifespanStrategyTransient.h"
ACE_RCSID (PortableServer,
Lifespan_Strategy,
@@ -8,12 +8,10 @@ ACE_RCSID (PortableServer,
#include "ace/OS_NS_sys_time.h"
#include "ace/OS_NS_string.h"
-#include "tao/PortableServer/POAManager.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "POAManager.h"
+#include "Root_POA.h"
#include "tao/ORB_Constants.h"
-#include "tao/PortableServer/Creation_Time.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Creation_Time.h"
namespace TAO
{
@@ -115,4 +113,3 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/LifespanStrategyTransient.h b/TAO/tao/PortableServer/LifespanStrategyTransient.h
index 6638973712f..2b89e8b6c91 100644
--- a/TAO/tao/PortableServer/LifespanStrategyTransient.h
+++ b/TAO/tao/PortableServer/LifespanStrategyTransient.h
@@ -14,17 +14,15 @@
#define TAO_LIFESPANSTRATEGYTRANSIENT_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/LifespanStrategy.h"
+#include "LifespanStrategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Creation_Time.h"
+#include "Creation_Time.h"
#include "tao/Object_KeyC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -64,7 +62,5 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LIFESPANSTRATEGYTRANSIENT_H */
diff --git a/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp b/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp
index 896745f0846..c9a01858ca7 100644
--- a/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/PortableServer/LifespanStrategyTransientFactoryImpl.h"
+#include "LifespanStrategyTransientFactoryImpl.h"
#include "ace/Dynamic_Service.h"
-#include "tao/PortableServer/LifespanStrategyTransient.h"
+#include "LifespanStrategyTransient.h"
ACE_RCSID (PortableServer,
LifespanStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -47,22 +45,17 @@ namespace TAO
delete strategy;
}
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DEFINE (
- LifespanStrategyTransientFactoryImpl,
- ACE_TEXT ("LifespanStrategyTransientFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (LifespanStrategyTransientFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- LifespanStrategyTransientFactoryImpl,
- TAO::Portable_Server::LifespanStrategyTransientFactoryImpl)
+ ACE_STATIC_SVC_DEFINE (
+ LifespanStrategyTransientFactoryImpl,
+ ACE_TEXT ("LifespanStrategyTransientFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (LifespanStrategyTransientFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ ACE_FACTORY_DEFINE (ACE_Local_Service, LifespanStrategyTransientFactoryImpl)
+ }
+}
diff --git a/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.h b/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.h
index e3a8c076934..5cd7ad9483b 100644
--- a/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.h
+++ b/TAO/tao/PortableServer/LifespanStrategyTransientFactoryImpl.h
@@ -12,19 +12,16 @@
#ifndef TAO_PORTABLESERVER_LIFEPSPANSTRATEGYTRANSIENTFACTORYIMPL_H
#define TAO_PORTABLESERVER_LIFEPSPANSTRATEGYTRANSIENTFACTORYIMPL_H
-
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/PortableServer/LifespanStrategyFactory.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "LifespanStrategyFactory.h"
namespace TAO
{
@@ -43,15 +40,11 @@ namespace TAO
LifespanStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyTransientFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyTransientFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyTransientFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyTransientFactoryImpl)
-
-
#include /**/ "ace/post.h"
-
#endif /* TAO_PORTABLESERVER_LIFEPSPANSTRATEGYTRANSIENTFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/Local_Servant_Base.cpp b/TAO/tao/PortableServer/Local_Servant_Base.cpp
index 007b1ca5e05..319d5d22acf 100644
--- a/TAO/tao/PortableServer/Local_Servant_Base.cpp
+++ b/TAO/tao/PortableServer/Local_Servant_Base.cpp
@@ -8,11 +8,9 @@ ACE_RCSID (PortableServer,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Local_Servant_Base.inl"
+# include "Local_Servant_Base.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_Local_ServantBase::_dispatch (TAO_ServerRequest &,
void *
@@ -20,5 +18,3 @@ TAO_Local_ServantBase::_dispatch (TAO_ServerRequest &,
{
ACE_THROW (CORBA::BAD_OPERATION ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Local_Servant_Base.h b/TAO/tao/PortableServer/Local_Servant_Base.h
index dd3d9447932..6c624d77d01 100644
--- a/TAO/tao/PortableServer/Local_Servant_Base.h
+++ b/TAO/tao/PortableServer/Local_Servant_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "tao/PortableServer/Servant_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Local_ServantBase
*
@@ -41,7 +39,7 @@ class TAO_PortableServer_Export TAO_Local_ServantBase
: public virtual TAO_ServantBase
{
protected:
- /// This is an auxiliary method for _this(). Make sure *not* to
+ /// This is an auxiliar method for _this(). Make sure *not* to
/// register with the default POA.
TAO_Stub *_create_stub (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
@@ -51,10 +49,8 @@ protected:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Local_Servant_Base.inl"
+# include "Local_Servant_Base.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Local_Servant_Base.inl b/TAO/tao/PortableServer/Local_Servant_Base.inl
index f811de25b9f..4a426bdaa07 100644
--- a/TAO/tao/PortableServer/Local_Servant_Base.inl
+++ b/TAO/tao/PortableServer/Local_Servant_Base.inl
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Stub *
TAO_Local_ServantBase::_create_stub (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Non_Servant_Upcall.cpp b/TAO/tao/PortableServer/Non_Servant_Upcall.cpp
index 2660f700538..c4ac484a1c5 100644
--- a/TAO/tao/PortableServer/Non_Servant_Upcall.cpp
+++ b/TAO/tao/PortableServer/Non_Servant_Upcall.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Object_Adapter.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "Non_Servant_Upcall.h"
+#include "Object_Adapter.h"
+#include "Root_POA.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Non_Servant_Upcall.inl"
+# include "Non_Servant_Upcall.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (PortableServer,
Non_Servant_Upcall,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -92,4 +90,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Non_Servant_Upcall.h b/TAO/tao/PortableServer/Non_Servant_Upcall.h
index 92b05194d9d..98f3eec8ec3 100644
--- a/TAO/tao/PortableServer/Non_Servant_Upcall.h
+++ b/TAO/tao/PortableServer/Non_Servant_Upcall.h
@@ -15,16 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration
class TAO_Root_POA;
class TAO_Object_Adapter;
@@ -62,16 +58,14 @@ namespace TAO
protected:
TAO_Object_Adapter &object_adapter_;
- TAO_Root_POA &poa_;
+ ::TAO_Root_POA &poa_;
Non_Servant_Upcall *previous_;
};
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Non_Servant_Upcall.inl"
+# include "Non_Servant_Upcall.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Non_Servant_Upcall.inl b/TAO/tao/PortableServer/Non_Servant_Upcall.inl
index 0a9b6f2e8de..75e0ae843af 100644
--- a/TAO/tao/PortableServer/Non_Servant_Upcall.inl
+++ b/TAO/tao/PortableServer/Non_Servant_Upcall.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -16,4 +14,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ORT_Adapter.cpp b/TAO/tao/PortableServer/ORT_Adapter.cpp
new file mode 100644
index 00000000000..5c918bb1a4b
--- /dev/null
+++ b/TAO/tao/PortableServer/ORT_Adapter.cpp
@@ -0,0 +1,9 @@
+// $Id$
+
+#include "ORT_Adapter.h"
+#include "ace/Dynamic_Service.h"
+
+ACE_RCSID(PortableServer,
+ ORT_Adapter,
+ "$Id$")
+
diff --git a/TAO/tao/PortableServer/ORT_Adapter.h b/TAO/tao/PortableServer/ORT_Adapter.h
index 34d89eb42db..8483a3ee8b3 100644
--- a/TAO/tao/PortableServer/ORT_Adapter.h
+++ b/TAO/tao/PortableServer/ORT_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -14,18 +14,17 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/SystemException.h"
-#include "tao/PI_ForwardC.h"
+
#include "ace/Service_Object.h"
#include "ace/Array_Base.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/PI_ForwardC.h"
namespace CORBA
{
@@ -111,7 +110,5 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ORT_ADAPTER_H */
diff --git a/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp b/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp
index 7d4a85297b8..b64dec61851 100644
--- a/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp
+++ b/TAO/tao/PortableServer/ORT_Adapter_Factory.cpp
@@ -1,13 +1,12 @@
// $Id$
-#include "tao/PortableServer/ORT_Adapter_Factory.h"
+#include "ORT_Adapter_Factory.h"
+#include "ace/Dynamic_Service.h"
ACE_RCSID (PortableServer,
ORT_Adapter_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ORT_Adapter_Factory::~ORT_Adapter_Factory (void)
@@ -15,4 +14,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ORT_Adapter_Factory.h b/TAO/tao/PortableServer/ORT_Adapter_Factory.h
index d5c7570f93f..9295cdbed41 100644
--- a/TAO/tao/PortableServer/ORT_Adapter_Factory.h
+++ b/TAO/tao/PortableServer/ORT_Adapter_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -16,17 +16,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
#include "ace/Service_Object.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class ORT_Adapter;
@@ -67,8 +64,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ORT_ADAPTER_FACTORY_H */
diff --git a/TAO/tao/PortableServer/Object_Adapter.cpp b/TAO/tao/PortableServer/Object_Adapter.cpp
index 49c557070c8..6ad3cc7ad62 100644
--- a/TAO/tao/PortableServer/Object_Adapter.cpp
+++ b/TAO/tao/PortableServer/Object_Adapter.cpp
@@ -1,22 +1,20 @@
// $Id$
// -- PortableServer Include --
-#include "tao/PortableServer/Object_Adapter.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/Regular_POA.h"
-#include "tao/PortableServer/Creation_Time.h"
-#include "tao/PortableServer/POA_Guard.h"
-#include "tao/PortableServer/Default_Servant_Dispatcher.h"
-#include "tao/PortableServer/Collocated_Object_Proxy_Broker.h"
-#include "tao/PortableServer/POAManager.h"
-#include "tao/PortableServer/Servant_Base.h"
+#include "Object_Adapter.h"
+#include "Non_Servant_Upcall.h"
+#include "Servant_Upcall.h"
+#include "Root_POA.h"
+#include "Regular_POA.h"
+#include "Creation_Time.h"
+#include "POA_Guard.h"
+#include "Default_Servant_Dispatcher.h"
+#include "Collocated_Object_Proxy_Broker.h"
+#include "POAManager.h"
+#include "Servant_Base.h"
// -- ACE Include --
#include "ace/Auto_Ptr.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
// -- TAO Include --
#include "tao/PortableInterceptorC.h"
@@ -36,16 +34,18 @@
#include "tao/ServerRequestInterceptor_Adapter.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Object_Adapter.i"
+# include "Object_Adapter.i"
#endif /* __ACE_INLINE__ */
-#include "tao/PortableServer/ThreadPolicy.h"
-#include "tao/PortableServer/LifespanPolicy.h"
-#include "tao/PortableServer/IdAssignmentPolicy.h"
-#include "tao/PortableServer/IdUniquenessPolicy.h"
-#include "tao/PortableServer/ImplicitActivationPolicy.h"
-#include "tao/PortableServer/RequestProcessingPolicy.h"
-#include "tao/PortableServer/ServantRetentionPolicy.h"
+#include "ace/OS_NS_string.h"
+
+#include "ThreadPolicy.h"
+#include "LifespanPolicy.h"
+#include "IdAssignmentPolicy.h"
+#include "IdUniquenessPolicy.h"
+#include "ImplicitActivationPolicy.h"
+#include "RequestProcessingPolicy.h"
+#include "ServantRetentionPolicy.h"
ACE_RCSID (PortableServer,
Object_Adapter,
@@ -99,8 +99,6 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Object_Adapter_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/* static */
CORBA::ULong TAO_Object_Adapter::transient_poa_name_size_ = 0;
@@ -166,7 +164,7 @@ TAO_Object_Adapter::TAO_Object_Adapter (const TAO_Server_Strategy_Factory::Activ
new_hint_strategy->object_adapter (this);
- persistent_poa_name_map *ppnm = 0;
+ persistent_poa_name_map *ppnm;
switch (creation_parameters.poa_lookup_strategy_for_persistent_id_policy_)
{
case TAO_LINEAR:
@@ -296,7 +294,7 @@ TAO_Object_Adapter::create_lock (int enable_locking,
#if defined (ACE_HAS_THREADS)
if (enable_locking)
{
- ACE_Lock *the_lock = 0;
+ ACE_Lock *the_lock;
ACE_NEW_RETURN (the_lock,
ACE_Lock_Adapter<TAO_SYNCH_MUTEX> (thread_lock),
0);
@@ -307,7 +305,7 @@ TAO_Object_Adapter::create_lock (int enable_locking,
ACE_UNUSED_ARG (thread_lock);
#endif /* ACE_HAS_THREADS */
- ACE_Lock *the_lock = 0;
+ ACE_Lock *the_lock;
ACE_NEW_RETURN (the_lock,
ACE_Lock_Adapter<ACE_SYNCH_NULL_MUTEX> (),
0);
@@ -357,7 +355,9 @@ TAO_Object_Adapter::dispatch_servant (const TAO::ObjectKey &key,
{
ACE_FUNCTION_TIMEPROBE (TAO_SERVANT_DISPATCH_START);
- do_dispatch (req, servant_upcall ACE_ENV_ARG_PARAMETER);
+ servant_upcall.servant ()->_dispatch (req,
+ &servant_upcall
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (result);
}
@@ -741,7 +741,7 @@ TAO_Object_Adapter::dispatch (TAO::ObjectKey &key,
{
#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
CORBA::OctetSeq_var ocs;
- sri_adapter->tao_ft_interception_point (request,
+ sri_adapter.tao_ft_interception_point (request,
0, // args
0, // nargs
0, // servant_upcall
@@ -883,8 +883,7 @@ TAO_Object_Adapter::create_collocated_object (TAO_Stub *stub,
stub->servant_orb (this->orb_core_.orb ());
// It is ok to create a collocated object even when <sb> is
- // zero. This constructor will set the stub collocated indicator and
- // the strategized proxy broker if required.
+ // zero.
CORBA::Object_ptr x;
ACE_NEW_RETURN (x,
CORBA::Object (stub,
@@ -892,16 +891,20 @@ TAO_Object_Adapter::create_collocated_object (TAO_Stub *stub,
sb),
CORBA::Object::_nil ());
+ // Here we set the strategized Proxy Broker.
+ x->_proxy_broker (the_tao_collocated_object_proxy_broker ());
+
// Success.
return x;
}
CORBA::Long
-TAO_Object_Adapter::initialize_collocated_object (TAO_Stub *stub)
+TAO_Object_Adapter::initialize_collocated_object (TAO_Stub *stub,
+ CORBA::Object_ptr obj)
{
- // If we have been forwarded: use the forwarded profiles
- const TAO_MProfile &mp = stub->forward_profiles () ? *(stub->forward_profiles ())
- : stub->base_profiles ();
+ // @@ What about forwarding. With this approach we are never
+ // forwarded when we use collocation!
+ const TAO_MProfile &mp = stub->base_profiles ();
TAO_ServantBase *sb = this->get_collocated_servant (mp);
@@ -911,14 +914,13 @@ TAO_Object_Adapter::initialize_collocated_object (TAO_Stub *stub)
// It is ok to set the object as a collocated object even when
// <sb> is zero.
- stub->collocated_servant (sb);
+ obj->set_collocated_servant (sb);
- // Mark the stub as collocated. This will set the strategized object
- // proxy broker if required.
- stub->is_collocated (true);
+ // Here we set the strategized Proxy Broker.
+ obj->_proxy_broker (the_tao_collocated_object_proxy_broker ());
- // Return 0 (success) iff we found a servant.
- return ! sb;
+ // Success.
+ return 0;
}
TAO_ServantBase *
@@ -1240,15 +1242,3 @@ TAO_Object_Adapter::servant_dispatcher (TAO_Servant_Dispatcher *dispatcher)
this->servant_dispatcher_ = dispatcher;
}
-void
-TAO_Object_Adapter::do_dispatch (TAO_ServerRequest& req,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL)
-{
- upcall.servant ()->_dispatch(req,
- &upcall
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Object_Adapter.h b/TAO/tao/PortableServer/Object_Adapter.h
index 5ceb0ce6878..a3605dc2f11 100644
--- a/TAO/tao/PortableServer/Object_Adapter.h
+++ b/TAO/tao/PortableServer/Object_Adapter.h
@@ -15,17 +15,17 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Key_Adapters.h"
-#include "tao/PortableServer/poa_macros.h"
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/Default_Policy_Validator.h"
-#include "tao/PortableServer/POA_Policy_Set.h"
+#include "Key_Adapters.h"
+#include "poa_macros.h"
+#include "Servant_Location.h"
+#include "Default_Policy_Validator.h"
+#include "POA_Policy_Set.h"
#include "tao/Adapter.h"
#include "tao/Adapter_Factory.h"
@@ -36,15 +36,13 @@
#include "ace/Condition_Thread_Mutex.h"
#include "ace/Map_T.h"
-#include "tao/PortableServer/Servant_Location.h"
+#include "Servant_Location.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Root_POA;
class TAO_POA_Manager;
class TAO_TSS_Resources;
@@ -172,7 +170,8 @@ public:
virtual CORBA::Object_ptr create_collocated_object (TAO_Stub *,
const TAO_MProfile &);
- virtual CORBA::Long initialize_collocated_object (TAO_Stub *);
+ virtual CORBA::Long initialize_collocated_object (TAO_Stub *,
+ CORBA::Object_ptr);
protected:
@@ -218,10 +217,6 @@ protected:
static ACE_Lock *create_lock (int enable_locking,
TAO_SYNCH_MUTEX &thread_lock);
- virtual void do_dispatch (TAO_ServerRequest& req,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL);
-
public:
/**
@@ -502,14 +497,12 @@ private:
TAO_POA_Policy_Set default_poa_policies_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Object_Adapter.i"
+# include "Object_Adapter.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Object_Adapter.i b/TAO/tao/PortableServer/Object_Adapter.i
index 2fe048e9a5e..ae4008bcc17 100644
--- a/TAO/tao/PortableServer/Object_Adapter.i
+++ b/TAO/tao/PortableServer/Object_Adapter.i
@@ -4,8 +4,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_Policy_Validator &
TAO_Object_Adapter::validator (void)
{
@@ -167,4 +165,3 @@ TAO_Object_Adapter::non_servant_upcall_in_progress (void) const
return this->non_servant_upcall_in_progress_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Object_Adapter_Factory.cpp b/TAO/tao/PortableServer/Object_Adapter_Factory.cpp
index 0e2859d333c..81bc1d4b47b 100644
--- a/TAO/tao/PortableServer/Object_Adapter_Factory.cpp
+++ b/TAO/tao/PortableServer/Object_Adapter_Factory.cpp
@@ -1,10 +1,12 @@
// $Id$
-#include "tao/PortableServer/Object_Adapter_Factory.h"
-#include "tao/PortableServer/Object_Adapter.h"
+#include "Object_Adapter_Factory.h"
+#include "Object_Adapter.h"
#include "tao/ORB_Core.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_Object_Adapter_Factory::TAO_Object_Adapter_Factory (void)
+{
+}
TAO_Adapter*
TAO_Object_Adapter_Factory::create (TAO_ORB_Core *orb_core)
@@ -18,8 +20,6 @@ TAO_Object_Adapter_Factory::create (TAO_ORB_Core *orb_core)
return adapter;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_PortableServer, TAO_Object_Adapter_Factory)
ACE_STATIC_SVC_DEFINE (TAO_Object_Adapter_Factory,
ACE_TEXT ("TAO_Object_Adapter_Factory"),
diff --git a/TAO/tao/PortableServer/Object_Adapter_Factory.h b/TAO/tao/PortableServer/Object_Adapter_Factory.h
index 77266900e27..460fb242519 100644
--- a/TAO/tao/PortableServer/Object_Adapter_Factory.h
+++ b/TAO/tao/PortableServer/Object_Adapter_Factory.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,20 +24,18 @@
#include "tao/Adapter_Factory.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PortableServer_Export TAO_Object_Adapter_Factory
: public TAO_Adapter_Factory
{
public:
+ /// Constructor
+ TAO_Object_Adapter_Factory (void);
// = The TAO_Adapter_Factory methods, please read tao/Adapter.h for
// details.
virtual TAO_Adapter *create (TAO_ORB_Core *orb_core);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_Object_Adapter_Factory)
ACE_FACTORY_DECLARE (TAO_PortableServer, TAO_Object_Adapter_Factory)
diff --git a/TAO/tao/PortableServer/Object_SArg_Traits.h b/TAO/tao/PortableServer/Object_SArg_Traits.h
index 9f88d1f0970..1e60217f11d 100644
--- a/TAO/tao/PortableServer/Object_SArg_Traits.h
+++ b/TAO/tao/PortableServer/Object_SArg_Traits.h
@@ -26,8 +26,6 @@
#include "tao/Pseudo_VarOut_T.h"
#include "tao/Any_Insert_Policy_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
@@ -53,8 +51,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_OBJECT_SARG_TRAITS_H */
diff --git a/TAO/tao/PortableServer/Object_SArgument_T.cpp b/TAO/tao/PortableServer/Object_SArgument_T.cpp
index 598619694c6..2146062474a 100644
--- a/TAO/tao/PortableServer/Object_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Object_SArgument_T.cpp
@@ -9,7 +9,6 @@
#include "tao/PortableServer/Object_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S_ptr,
typename S_var,
@@ -120,6 +119,4 @@ TAO::Ret_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::interceptor_value (
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_OBJECT_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/Object_SArgument_T.h b/TAO/tao/PortableServer/Object_SArgument_T.h
index fd9a6cae8bc..733beda2955 100644
--- a/TAO/tao/PortableServer/Object_SArgument_T.h
+++ b/TAO/tao/PortableServer/Object_SArgument_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// This set of classes is also used by valuetype arguments. If the
// specialization is done using S * for the parameter, the semantics
// are the same as for interfaces, so there's no need for another
@@ -160,8 +158,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Object_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Object_SArgument_T.inl b/TAO/tao/PortableServer/Object_SArgument_T.inl
index 6fcb78ff824..a202807a59d 100644
--- a/TAO/tao/PortableServer/Object_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Object_SArgument_T.inl
@@ -3,8 +3,6 @@
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S_ptr,
typename S_var,
typename Insert_Policy>
@@ -79,5 +77,3 @@ TAO::Ret_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::arg (void)
{
return this->x_.out ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Operation_Table.cpp b/TAO/tao/PortableServer/Operation_Table.cpp
index bf8be18d80d..4d8d3308e46 100644
--- a/TAO/tao/PortableServer/Operation_Table.cpp
+++ b/TAO/tao/PortableServer/Operation_Table.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "tao/PortableServer/Operation_Table.h"
+#include "Operation_Table.h"
#include "tao/ORB.h"
ACE_RCSID(PortableServer,
Operation_Table,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// destructor
TAO_Operation_Table::~TAO_Operation_Table (void)
{
@@ -17,9 +15,8 @@ TAO_Operation_Table::~TAO_Operation_Table (void)
/**************************************************************/
TAO::Operation_Skeletons::Operation_Skeletons (void)
: skel_ptr (0)
- , thruPOA_skel_ptr (0)
- , direct_skel_ptr (0)
+ , thruPOA_skel_ptr (0)
+ , direct_skel_ptr (0)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Operation_Table.h b/TAO/tao/PortableServer/Operation_Table.h
index d573d2c9f8e..2301d7929f6 100644
--- a/TAO/tao/PortableServer/Operation_Table.h
+++ b/TAO/tao/PortableServer/Operation_Table.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,8 +24,6 @@
#include "tao/Object.h"
#include "tao/Collocation_Strategy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ServerRequest;
class TAO_Abstract_ServantBase;
@@ -71,7 +69,6 @@ struct TAO_operation_db_entry
TAO_Collocated_Skeleton direct_skel_ptr;
};
-// --------------------------
namespace TAO
{
@@ -133,7 +130,5 @@ public:
virtual ~TAO_Operation_Table (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_OPTABLE_H */
diff --git a/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp b/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp
index 0df9e27630a..12ff4cf608e 100644
--- a/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp
+++ b/TAO/tao/PortableServer/Operation_Table_Binary_Search.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Operation_Table_Binary_Search.h"
+#include "Operation_Table_Binary_Search.h"
#include "tao/Timeprobe.h"
#include "ace/Log_Msg.h"
@@ -29,7 +29,10 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO_Binary_Search_OpTable::TAO_Binary_Search_OpTable (void)
+{
+}
TAO_Binary_Search_OpTable::~TAO_Binary_Search_OpTable (void)
{
@@ -54,6 +57,7 @@ TAO_Binary_Search_OpTable::find (const char *opname,
return 0;
}
+
int
TAO_Binary_Search_OpTable::find (const char *opname,
TAO_Collocated_Skeleton &skelfunc,
@@ -83,9 +87,8 @@ TAO_Binary_Search_OpTable::find (const char *opname,
int
TAO_Binary_Search_OpTable::bind (const char *,
- const TAO::Operation_Skeletons)
+ const TAO::Operation_Skeletons )
{
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Operation_Table_Binary_Search.h b/TAO/tao/PortableServer/Operation_Table_Binary_Search.h
index 1d8d0a11c02..107be238432 100644
--- a/TAO/tao/PortableServer/Operation_Table_Binary_Search.h
+++ b/TAO/tao/PortableServer/Operation_Table_Binary_Search.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,15 +15,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Operation_Table.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Operation_Table.h"
/**
* @class TAO_Binary_Search_OpTable
@@ -40,6 +38,8 @@ class TAO_PortableServer_Export TAO_Binary_Search_OpTable
: public TAO_Operation_Table
{
public:
+ /// Do nothing constructor.
+ TAO_Binary_Search_OpTable (void);
/// Do nothing destrctor.
virtual ~TAO_Binary_Search_OpTable (void);
@@ -63,7 +63,5 @@ private:
virtual const TAO_operation_db_entry* lookup (const char *str) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_OPERATION_TABLE_BINARY_SEARCH_H */
diff --git a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp
index 21a206d9fba..feea6d0d7e9 100644
--- a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp
+++ b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Operation_Table_Dynamic_Hash.h"
+#include "Operation_Table_Dynamic_Hash.h"
#include "tao/Timeprobe.h"
#include "ace/Log_Msg.h"
@@ -29,8 +29,6 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// constructor
TAO_Dynamic_Hash_OpTable::TAO_Dynamic_Hash_OpTable (
TAO_operation_db_entry const * db,
@@ -130,4 +128,3 @@ TAO_Dynamic_Hash_OpTable::find (const char *opname,
return retval;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h
index 40973757eba..a16c3a3acb3 100644
--- a/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h
+++ b/TAO/tao/PortableServer/Operation_Table_Dynamic_Hash.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,19 +15,17 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Operation_Table.h"
+#include "Operation_Table.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/Synch_Traits.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Dynamic_Hash_OpTable
*
@@ -78,7 +76,5 @@ private:
OP_MAP_MANAGER hash_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_OPERATION_TABLE_DYNAMIC_HASH_H */
diff --git a/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp b/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp
index 0ad27a2c2c8..277f0f35269 100644
--- a/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp
+++ b/TAO/tao/PortableServer/Operation_Table_Linear_Search.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Operation_Table_Linear_Search.h"
+#include "Operation_Table_Linear_Search.h"
#include "tao/Timeprobe.h"
#include "ace/Log_Msg.h"
@@ -31,7 +31,9 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description,
/***************************************************************/
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_Linear_Search_OpTable::TAO_Linear_Search_OpTable (void)
+{
+}
TAO_Linear_Search_OpTable::~TAO_Linear_Search_OpTable (void)
{
@@ -90,4 +92,4 @@ TAO_Linear_Search_OpTable::find (const char *opname,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/PortableServer/Operation_Table_Linear_Search.h b/TAO/tao/PortableServer/Operation_Table_Linear_Search.h
index 1f26bc71a2f..f2055d753d3 100644
--- a/TAO/tao/PortableServer/Operation_Table_Linear_Search.h
+++ b/TAO/tao/PortableServer/Operation_Table_Linear_Search.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,15 +15,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Operation_Table.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Operation_Table.h"
/**
* @class TAO_Linear_Search_OpTable
@@ -36,6 +34,8 @@ class TAO_PortableServer_Export TAO_Linear_Search_OpTable
{
public:
// = Initialization and termination methods.
+ /// Default constructor.
+ TAO_Linear_Search_OpTable (void);
/// Destructor.
~TAO_Linear_Search_OpTable (void);
@@ -59,7 +59,5 @@ private:
virtual const TAO_operation_db_entry* lookup (const char *str) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_OPERATION_TABLE_LINEAR_SEARCH_H */
diff --git a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp
index c0b75b8b6fe..5a6b950399f 100644
--- a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp
+++ b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
+#include "Operation_Table_Perfect_Hash.h"
#include "tao/Timeprobe.h"
#include "ace/Log_Msg.h"
@@ -29,7 +29,10 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Operation_Table_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// Do nothing constructor.
+TAO_Perfect_Hash_OpTable::TAO_Perfect_Hash_OpTable (void)
+{
+}
// Do nothing destrctor.
TAO_Perfect_Hash_OpTable::~TAO_Perfect_Hash_OpTable (void)
@@ -51,7 +54,7 @@ TAO_Perfect_Hash_OpTable::find (const char *opname,
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO_Perfect_Hash_OpTable:find for ")
ACE_TEXT ("operation '%s' (length=%d) failed\n"),
- ACE_TEXT_CHAR_TO_TCHAR (opname ? opname : "<null string>"), length),
+ ACE_TEXT_TO_TCHAR_IN (opname ? opname : "<null string>"), length),
-1);
}
@@ -77,7 +80,7 @@ TAO_Perfect_Hash_OpTable::find (const char *opname,
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO_Perfect_Hash_OpTable:find for ")
ACE_TEXT ("operation '%s' (length=%d) failed\n"),
- ACE_TEXT_CHAR_TO_TCHAR (opname ? opname : "<null string>"), length),
+ ACE_TEXT_TO_TCHAR_IN (opname ? opname : "<null string>"), length),
-1);
}
@@ -100,4 +103,3 @@ TAO_Perfect_Hash_OpTable::bind (const char *,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h
index 00338dcc2c7..5c60c7ad69f 100644
--- a/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h
+++ b/TAO/tao/PortableServer/Operation_Table_Perfect_Hash.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,15 +15,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Operation_Table.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Operation_Table.h"
/**
* @class TAO_Perfect_Hash_OpTable
@@ -41,6 +39,8 @@ class TAO_PortableServer_Export TAO_Perfect_Hash_OpTable
: public TAO_Operation_Table
{
public:
+ /// Do nothing constructor.
+ TAO_Perfect_Hash_OpTable (void);
/// Do nothing destrctor.
virtual ~TAO_Perfect_Hash_OpTable (void);
@@ -68,7 +68,6 @@ private:
unsigned int len) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_OPERATION_TABLE_PERFECT_HASH_H */
diff --git a/TAO/tao/PortableServer/POAManager.cpp b/TAO/tao/PortableServer/POAManager.cpp
index a4c999bbd1a..539f5d0cd9d 100644
--- a/TAO/tao/PortableServer/POAManager.cpp
+++ b/TAO/tao/PortableServer/POAManager.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "tao/PortableServer/POAManager.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/poa_macros.h"
+#include "POAManager.h"
+#include "Root_POA.h"
+#include "poa_macros.h"
#include "tao/Server_Strategy_Factory.h"
#include "tao/ORB_Core.h"
#include "tao/IORInterceptor_Adapter.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/POAManager.i"
+# include "POAManager.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (PortableServer,
POAManager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_POA_Manager::TAO_POA_Manager (TAO_Object_Adapter &object_adapter)
: state_ (PortableServer::POAManager::HOLDING),
lock_ (object_adapter.lock ()),
@@ -53,15 +51,6 @@ TAO_POA_Manager::activate_i (ACE_ENV_SINGLE_ARG_DECL)
else
{
this->state_ = PortableServer::POAManager::ACTIVE;
- // Find the poas that applied the custom servant dispatching
- // strategy to launch the dispatching threads.
-
- for (POA_COLLECTION::iterator iterator = this->poa_collection_.begin ();
- iterator != this->poa_collection_.end ();
- ++iterator)
- {
- (*iterator)->poa_activated_hook ();
- }
}
this->adapter_manager_state_changed (this->state_
@@ -128,10 +117,6 @@ TAO_POA_Manager::deactivate_i (CORBA::Boolean etherealize_objects,
++iterator)
{
TAO_Root_POA *poa = *iterator;
- // Notify the poas that applied the custom servant dispatching
- // strategy to stop the dispatching threads.
- poa->poa_deactivated_hook ();
-
poa->deactivate_all_objects_i (etherealize_objects,
wait_for_completion
ACE_ENV_ARG_PARAMETER);
@@ -154,8 +139,7 @@ TAO_POA_Manager::adapter_manager_state_changed (PortableServer::POAManager::Stat
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- PortableInterceptor::AdapterState adapter_state =
- static_cast<PortableInterceptor::AdapterState> (state);
+ PortableInterceptor::AdapterState adapter_state = state;
TAO_IORInterceptor_Adapter *ior_adapter =
this->object_adapter_.orb_core ().ior_interceptor_adapter ();
@@ -392,4 +376,3 @@ TAO_POA_Manager::_get_orb (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return CORBA::ORB::_duplicate (this->object_adapter_.orb_core ().orb ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POAManager.h b/TAO/tao/PortableServer/POAManager.h
index 056efb7578c..59dd117fcdf 100644
--- a/TAO/tao/PortableServer/POAManager.h
+++ b/TAO/tao/PortableServer/POAManager.h
@@ -16,20 +16,24 @@
#define TAO_POAMANAGER_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/poa_macros.h"
-#include "tao/PortableServer/POAManagerC.h"
+#include "poa_macros.h"
+#include "POAManagerC.h"
// Local Object
#include "tao/LocalObject.h"
#include "tao/PI_ForwardC.h"
#include "ace/Unbounded_Set.h"
+// Forward decl.
+class TAO_Root_POA;
+class TAO_Object_Adapter;
+
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
#if defined(_MSC_VER)
@@ -37,13 +41,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Forward decl.
-class TAO_Root_POA;
-class TAO_Object_Adapter;
-
-
class TAO_PortableServer_Export TAO_POA_Manager :
public PortableServer::POAManager,
public TAO_Local_RefCounted_Object
@@ -157,14 +154,12 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/POAManager.i"
+# include "POAManager.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/POAManager.i b/TAO/tao/PortableServer/POAManager.i
index 19adb23dd8f..c38b1bd02ef 100644
--- a/TAO/tao/PortableServer/POAManager.i
+++ b/TAO/tao/PortableServer/POAManager.i
@@ -5,7 +5,6 @@
#include "tao/Environment.h"
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE ACE_Lock &
TAO_POA_Manager::lock (void)
@@ -128,5 +127,3 @@ TAO_POA_Manager::generate_manager_id (void) const
return id;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POAManagerC.cpp b/TAO/tao/PortableServer/POAManagerC.cpp
index 3c397bb99a2..b29a3593b40 100644
--- a/TAO/tao/PortableServer/POAManagerC.cpp
+++ b/TAO/tao/PortableServer/POAManagerC.cpp
@@ -40,15 +40,13 @@
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-#include "tao/PortableServer/POAManagerC.h"
+#include "POAManagerC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -330,4 +328,3 @@ namespace PortableServer
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POAManagerC.h b/TAO/tao/PortableServer/POAManagerC.h
index 9d767071182..83cbbebcc56 100644
--- a/TAO/tao/PortableServer/POAManagerC.h
+++ b/TAO/tao/PortableServer/POAManagerC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -316,8 +314,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.cpp b/TAO/tao/PortableServer/POA_Cached_Policies.cpp
index 76afbefadbc..0cb18e988c3 100644
--- a/TAO/tao/PortableServer/POA_Cached_Policies.cpp
+++ b/TAO/tao/PortableServer/POA_Cached_Policies.cpp
@@ -1,25 +1,23 @@
-// $Id$
-
-#include "tao/PortableServer/POA_Cached_Policies.h"
-#include "tao/PortableServer/POA_Policy_Set.h"
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
-#include "tao/PortableServer/LifespanPolicyC.h"
-#include "tao/PortableServer/RequestProcessingPolicyC.h"
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
-#include "tao/PortableServer/ThreadPolicyC.h"
+// @(#) $Id$
+
+#include "POA_Cached_Policies.h"
+#include "POA_Policy_Set.h"
+#include "IdAssignmentPolicyC.h"
+#include "IdUniquenessPolicyC.h"
+#include "ImplicitActivationPolicyC.h"
+#include "LifespanPolicyC.h"
+#include "RequestProcessingPolicyC.h"
+#include "ServantRetentionPolicyC.h"
+#include "ThreadPolicyC.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/POA_Cached_Policies.i"
+# include "POA_Cached_Policies.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID(PortableServer,
POA_Cached_Policies,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -58,7 +56,7 @@ namespace TAO
void
Cached_Policies::update_policy (const CORBA::Policy_ptr policy
- ACE_ENV_ARG_DECL)
+ ACE_ENV_ARG_DECL)
{
#if (TAO_HAS_MINIMUM_POA == 0)
@@ -162,5 +160,3 @@ namespace TAO
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.h b/TAO/tao/PortableServer/POA_Cached_Policies.h
index a756f101782..1c5efabd5d8 100644
--- a/TAO/tao/PortableServer/POA_Cached_Policies.h
+++ b/TAO/tao/PortableServer/POA_Cached_Policies.h
@@ -16,21 +16,19 @@
#define TAO_POA_CACHED_POLICIES_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ThreadPolicyC.h"
-#include "tao/PortableServer/LifespanPolicyC.h"
-#include "tao/PortableServer/IdUniquenessPolicyC.h"
-#include "tao/PortableServer/IdAssignmentPolicyC.h"
-#include "tao/PortableServer/ImplicitActivationPolicyC.h"
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
-#include "tao/PortableServer/RequestProcessingPolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ThreadPolicyC.h"
+#include "LifespanPolicyC.h"
+#include "IdUniquenessPolicyC.h"
+#include "IdAssignmentPolicyC.h"
+#include "ImplicitActivationPolicyC.h"
+#include "ServantRetentionPolicyC.h"
+#include "RequestProcessingPolicyC.h"
// Forward references.
class TAO_POA_Policy_Set;
@@ -104,10 +102,8 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/POA_Cached_Policies.i"
+# include "POA_Cached_Policies.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/POA_Cached_Policies.i b/TAO/tao/PortableServer/POA_Cached_Policies.i
index b3699fe3e7d..ab12991fe6e 100644
--- a/TAO/tao/PortableServer/POA_Cached_Policies.i
+++ b/TAO/tao/PortableServer/POA_Cached_Policies.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -81,5 +77,3 @@ namespace TAO
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Current.cpp b/TAO/tao/PortableServer/POA_Current.cpp
index a1e30c3faed..09a8f02134c 100644
--- a/TAO/tao/PortableServer/POA_Current.cpp
+++ b/TAO/tao/PortableServer/POA_Current.cpp
@@ -1,18 +1,20 @@
// $Id$
// -- PortableServer Include --
-#include "tao/PortableServer/POA_Current.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
+#include "POA_Current.h"
+#include "POA_Current_Impl.h"
// -- TAO Include --
#include "tao/TSS_Resources.h"
+#if !defined (__ACE_INLINE__)
+# include "POA_Current.inl"
+#endif /* __ACE_INLINE__ */
+
ACE_RCSID (PortableServer,
POA_Current,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -56,18 +58,6 @@ namespace TAO
return impl->get_servant ();
}
- CORBA::Object_ptr
- POA_Current::get_reference (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableServer::Current::NoContext))
- {
- POA_Current_Impl *impl = this->implementation ();
-
- if (impl == 0)
- ACE_THROW_RETURN (PortableServer::Current::NoContext (),
- 0);
- return impl->get_reference ();
- }
POA_Current_Impl *
POA_Current::implementation (void)
@@ -91,4 +81,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Current.h b/TAO/tao/PortableServer/POA_Current.h
index 4af15a2b241..a8e5583a101 100644
--- a/TAO/tao/PortableServer/POA_Current.h
+++ b/TAO/tao/PortableServer/POA_Current.h
@@ -15,22 +15,20 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/PS_CurrentC.h"
#include "tao/LocalObject.h"
+#include "tao/PortableServer/PS_CurrentC.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -38,10 +36,12 @@ namespace TAO
class POA_Current_Impl;
class TAO_PortableServer_Export POA_Current
- : public PortableServer::Current
- , public TAO_Local_RefCounted_Object
+ : public PortableServer::Current,
+ public TAO_Local_RefCounted_Object
{
public:
+ /// Constructor
+ POA_Current (void);
/**
* Returns the POA on which the current request is being invoked.
@@ -62,19 +62,6 @@ namespace TAO
PortableServer::Current::NoContext));
/**
- * This operation returns a locally manufactured reference to the object
- * in the context of which it is called. If called outside the context
- * of a POA dispatched operation, a NoContext exception is raised.
- * @note This reference is not guaranteed to be identical to the original
- * reference the client used to make the invocation, and calling the
- * Object::is_equivalent operation to compare the two references may not
- * necessarily return true.
- */
- CORBA::Object_ptr get_reference (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableServer::Current::NoContext));
-
- /**
* Returns a reference to the servant that hosts the object in whose
* context it is called. If called outside the context of the POA
* dispatched operation, a NoContext exception is raised
@@ -93,12 +80,14 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
+#if defined (__ACE_INLINE__)
+# include "POA_Current.inl"
+#endif /* __ACE_INLINE__ */
+
#include /**/ "ace/post.h"
#endif /* TAO_POA_CURRENT_H */
diff --git a/TAO/tao/PortableServer/POA_Current.inl b/TAO/tao/PortableServer/POA_Current.inl
new file mode 100644
index 00000000000..4b713846977
--- /dev/null
+++ b/TAO/tao/PortableServer/POA_Current.inl
@@ -0,0 +1,14 @@
+// -*- C++ -*-
+//
+// $Id$
+
+namespace TAO
+{
+ namespace Portable_Server
+ {
+ ACE_INLINE
+ POA_Current::POA_Current (void)
+ {
+ }
+ }
+}
diff --git a/TAO/tao/PortableServer/POA_Current_Factory.cpp b/TAO/tao/PortableServer/POA_Current_Factory.cpp
index 081147aad3c..b32ba5f91b0 100644
--- a/TAO/tao/PortableServer/POA_Current_Factory.cpp
+++ b/TAO/tao/PortableServer/POA_Current_Factory.cpp
@@ -1,10 +1,12 @@
// $Id$
-#include "tao/PortableServer/POA_Current_Factory.h"
-#include "tao/PortableServer/POA_Current.h"
+#include "POA_Current_Factory.h"
+#include "POA_Current.h"
#include "tao/ORB_Core.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_POA_Current_Factory::TAO_POA_Current_Factory (void)
+{
+}
CORBA::Object_ptr
TAO_POA_Current_Factory::create_object (CORBA::ORB_ptr,
@@ -20,8 +22,6 @@ TAO_POA_Current_Factory::create_object (CORBA::ORB_ptr,
return adapter;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_PortableServer, TAO_POA_Current_Factory)
ACE_STATIC_SVC_DEFINE (TAO_POA_Current_Factory,
ACE_TEXT ("TAO_POA_Current_Factory"),
diff --git a/TAO/tao/PortableServer/POA_Current_Factory.h b/TAO/tao/PortableServer/POA_Current_Factory.h
index 6ef224d32fd..c7cbb6d2e2a 100644
--- a/TAO/tao/PortableServer/POA_Current_Factory.h
+++ b/TAO/tao/PortableServer/POA_Current_Factory.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,12 +24,12 @@
#include "tao/Object_Loader.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PortableServer_Export TAO_POA_Current_Factory
: public TAO_Object_Loader
{
public:
+ /// Constructor
+ TAO_POA_Current_Factory (void);
/// Creates a PICurrent and returns it.
virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
@@ -39,8 +39,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_POA_Current_Factory)
ACE_FACTORY_DECLARE (TAO_PortableServer, TAO_POA_Current_Factory)
diff --git a/TAO/tao/PortableServer/POA_Current_Impl.cpp b/TAO/tao/PortableServer/POA_Current_Impl.cpp
index 1c1e81b55c2..3d51448e37f 100644
--- a/TAO/tao/PortableServer/POA_Current_Impl.cpp
+++ b/TAO/tao/PortableServer/POA_Current_Impl.cpp
@@ -1,22 +1,20 @@
// $Id$
// -- PortableServer Include --
-#include "tao/PortableServer/Object_Adapter.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "Object_Adapter.h"
+#include "POA_Current_Impl.h"
+#include "Root_POA.h"
#include "tao/TSS_Resources.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/POA_Current_Impl.inl"
+# include "POA_Current_Impl.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (PortableServer,
POA_Current_IMpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -86,12 +84,6 @@ namespace TAO
return objid;
}
- CORBA::Object_ptr
- POA_Current_Impl::get_reference (void)
- {
- return this->poa_->id_to_reference (this->object_id_);
- }
-
PortableServer::Servant
POA_Current_Impl::get_servant (void)
{
@@ -107,4 +99,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Current_Impl.h b/TAO/tao/PortableServer/POA_Current_Impl.h
index 47f2a03994c..15bf03cb843 100644
--- a/TAO/tao/PortableServer/POA_Current_Impl.h
+++ b/TAO/tao/PortableServer/POA_Current_Impl.h
@@ -15,15 +15,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/PS_ForwardC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PS_ForwardC.h"
namespace TAO
{
@@ -71,22 +69,18 @@ namespace TAO
/**
* Return pointer to the object id through which this was invoked.
* This may be necessary in cases where a <Servant> is serving under
- * the guise of multiple object ids.
+ * the guise of multiple object ids. This has _out semantics Raises
+ * the <CORBA::NoContext> exception.
*/
PortableServer::ObjectId *get_object_id (void);
/**
* Returns a reference to the servant that hosts the object in whose
- * context it is called.
+ * context it is called. If called outside the context of the POA
+ * dispatched operation, a NoContext exception is raised
*/
PortableServer::Servant get_servant (void);
- /**
- * This operation returns a locally manufactured reference to the object
- * in the context of which it is called.
- */
- CORBA::Object_ptr get_reference (void);
-
/// Set the POA implementation.
void poa (::TAO_Root_POA *);
@@ -136,12 +130,6 @@ namespace TAO
void setup (::TAO_Root_POA *impl,
const TAO::ObjectKey &key);
- private:
-
- // = Hidden because we don't allow these
- POA_Current_Impl (const POA_Current_Impl &);
- void operator= (const POA_Current_Impl &);
-
protected:
/// The POA implementation invoking an upcall
::TAO_Root_POA *poa_;
@@ -171,14 +159,15 @@ namespace TAO
/// Pointer to tss resources.
TAO_TSS_Resources *tss_resources_;
+ // = Hidden because we don't allow these
+ POA_Current_Impl (const POA_Current_Impl &);
+ void operator= (const POA_Current_Impl &);
};
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/POA_Current_Impl.inl"
+# include "POA_Current_Impl.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/POA_Current_Impl.inl b/TAO/tao/PortableServer/POA_Current_Impl.inl
index db220558ae6..350d1cf820b 100644
--- a/TAO/tao/PortableServer/POA_Current_Impl.inl
+++ b/TAO/tao/PortableServer/POA_Current_Impl.inl
@@ -4,8 +4,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -83,4 +81,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Guard.cpp b/TAO/tao/PortableServer/POA_Guard.cpp
index a2943714015..cbf2eb0bba7 100644
--- a/TAO/tao/PortableServer/POA_Guard.cpp
+++ b/TAO/tao/PortableServer/POA_Guard.cpp
@@ -1,16 +1,13 @@
// $Id$
-#include "tao/PortableServer/POA_Guard.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "POA_Guard.h"
+#include "Root_POA.h"
#include "tao/ORB_Constants.h"
ACE_RCSID(PortableServer,
POA_Guard,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -46,4 +43,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Guard.h b/TAO/tao/PortableServer/POA_Guard.h
index da0f74dedae..a7347130783 100644
--- a/TAO/tao/PortableServer/POA_Guard.h
+++ b/TAO/tao/PortableServer/POA_Guard.h
@@ -1,29 +1,27 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file POA_Guard.h
*
* $Id$
+ *
*/
//=============================================================================
#ifndef TAO_POA_GUARD_H
#define TAO_POA_GUARD_H
-
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Environment.h"
#include "ace/Guard_T.h"
#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Environment.h"
class TAO_Root_POA;
@@ -51,8 +49,5 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_POA_GUARD_H */
diff --git a/TAO/tao/PortableServer/POA_Policy_Set.cpp b/TAO/tao/PortableServer/POA_Policy_Set.cpp
index 043020de869..e0ee81f34e2 100644
--- a/TAO/tao/PortableServer/POA_Policy_Set.cpp
+++ b/TAO/tao/PortableServer/POA_Policy_Set.cpp
@@ -1,24 +1,23 @@
// @(#) $Id$
-#include "tao/PortableServer/POA_Policy_Set.h"
-#include "tao/PortableServer/POA_Cached_Policies.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "POA_Policy_Set.h"
+#include "POA_Cached_Policies.h"
+#include "PortableServer.h"
#include "tao/Policy_Validator.h"
#include "tao/ORB_Core.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/POA_Policy_Set.i"
+# include "POA_Policy_Set.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (PortableServer,
POA_Policy_Set,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_POA_Policy_Set::TAO_POA_Policy_Set (void)
- : impl_ (TAO_POLICY_POA_SCOPE)
+TAO_POA_Policy_Set::TAO_POA_Policy_Set ()
+ :
+ impl_ (TAO_POLICY_POA_SCOPE)
{
}
@@ -90,5 +89,3 @@ TAO_POA_Policy_Set::validate_policies (TAO_Policy_Validator &validator,
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/POA_Policy_Set.h b/TAO/tao/PortableServer/POA_Policy_Set.h
index 182ad836a8f..46fc0f4b5b7 100644
--- a/TAO/tao/PortableServer/POA_Policy_Set.h
+++ b/TAO/tao/PortableServer/POA_Policy_Set.h
@@ -6,7 +6,8 @@
*
* $Id$
*
- * POA
+ * POA
+ *
*
* @author Irfan Pyarali
*/
@@ -16,7 +17,7 @@
#define TAO_POA_POLICY_SET_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,15 +25,13 @@
#include "tao/Policy_Set.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Policy_Validator;
class TAO_PortableServer_Export TAO_POA_Policy_Set
{
public:
- TAO_POA_Policy_Set (void);
+ TAO_POA_Policy_Set ();
TAO_POA_Policy_Set (const TAO_POA_Policy_Set &rhs);
@@ -73,10 +72,8 @@ protected:
TAO_Policy_Set impl_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/POA_Policy_Set.i"
+# include "POA_Policy_Set.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/POA_Policy_Set.i b/TAO/tao/PortableServer/POA_Policy_Set.i
index 4181baecf48..fee42969600 100644
--- a/TAO/tao/PortableServer/POA_Policy_Set.i
+++ b/TAO/tao/PortableServer/POA_Policy_Set.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_POA_Policy_Set::num_policies (void) const
{
@@ -55,5 +51,3 @@ TAO_POA_Policy_Set::policies (void)
{
return this->impl_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PS_Current.pidl b/TAO/tao/PortableServer/PS_Current.pidl
index 91bd07204c6..a1b7ab68b61 100644
--- a/TAO/tao/PortableServer/PS_Current.pidl
+++ b/TAO/tao/PortableServer/PS_Current.pidl
@@ -9,7 +9,7 @@
* PS_CurrentC.{h,inl,cpp}, using the following command:
*
* tao_idl.exe \
- * -o orig -Gp -Gd -Ge 1 -Sci -Sc -SS -I$(TAO_ROOT)
+ * -o orig -Gp -Gd -Ge 1 -Sci -Sc -GA -I$(TAO_ROOT)
* -Wb,export_macro=TAO_PortableServer_Export \
* -Wb,export_include="portableserver_export.h" \
* -Wb,pre_include="ace/pre.h" \
@@ -21,8 +21,8 @@
#define _PORTABLESERVER_CURRENT_IDL_
///FUZZ: disable check_for_include/
-#include "tao/PortableServer/PS_Forward.pidl"
-#include "tao/Current.pidl"
+#include <tao/PortableServer/PS_Forward.pidl>
+#include <Current.pidl>
#pragma prefix "omg.org"
@@ -43,9 +43,6 @@ module PortableServer
ObjectId get_object_id ()
raises (NoContext);
- Object get_reference ()
- raises (NoContext);
-
Servant get_servant ()
raises (NoContext);
};
diff --git a/TAO/tao/PortableServer/PS_CurrentA.cpp b/TAO/tao/PortableServer/PS_CurrentA.cpp
new file mode 100644
index 00000000000..7142aaed13a
--- /dev/null
+++ b/TAO/tao/PortableServer/PS_CurrentA.cpp
@@ -0,0 +1,224 @@
+// -*- 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/
+// and
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
+//
+// Information about TAO is available at:
+// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
+#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
+#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
+#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "PS_CurrentC.h"
+#include "tao/CDR.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/Any_Impl_T.h"
+#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/struct_typecode.cpp:87
+
+static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_PortableServer_Current_NoContext = 0;
+static TAO::TypeCode::Struct<char const *,
+ CORBA::TypeCode_ptr const *,
+ TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_PortableServer_Current_NoContext (
+ CORBA::tk_except,
+ "IDL:omg.org/PortableServer/Current/NoContext:2.3",
+ "NoContext",
+ _tao_fields_PortableServer_Current_NoContext,
+ 0);
+
+::CORBA::TypeCode_ptr const PortableServer::Current::_tc_NoContext =
+ &_tao_tc_PortableServer_Current_NoContext;
+
+// TAO_IDL - Generated from
+// be\be_visitor_typecode/objref_typecode.cpp:76
+
+static TAO::TypeCode::Objref<char const *,
+ TAO::Null_RefCount_Policy>
+ _tao_tc_PortableServer_Current (
+ CORBA::tk_local_interface,
+ "IDL:omg.org/PortableServer/Current:2.3",
+ "Current");
+
+namespace PortableServer
+{
+ ::CORBA::TypeCode_ptr const _tc_Current =
+ &_tao_tc_PortableServer_Current;
+}
+
+
+
+// TAO_IDL - Generated from
+// be\be_visitor_interface/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableServer::Current>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+ {
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return true;
+ }
+}
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableServer::Current>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Impl_T<PortableServer::Current>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableServer::Current_ptr _tao_elem
+ )
+{
+ PortableServer::Current_ptr _tao_objptr =
+ PortableServer::Current::_duplicate (_tao_elem);
+ _tao_any <<= &_tao_objptr;
+}
+
+// Non-copying insertion.
+void
+operator<<= (
+ CORBA::Any &_tao_any,
+ PortableServer::Current_ptr *_tao_elem
+ )
+{
+ TAO::Any_Impl_T<PortableServer::Current>::insert (
+ _tao_any,
+ PortableServer::Current::_tao_any_destructor,
+ PortableServer::_tc_Current,
+ *_tao_elem
+ );
+}
+
+CORBA::Boolean
+operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableServer::Current_ptr &_tao_elem
+ )
+{
+ return
+ TAO::Any_Impl_T<PortableServer::Current>::extract (
+ _tao_any,
+ PortableServer::Current::_tao_any_destructor,
+ PortableServer::_tc_Current,
+ _tao_elem
+ );
+}
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_cs.cpp:50
+
+namespace TAO
+{
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<PortableServer::Current::NoContext>::marshal_value (TAO_OutputCDR &)
+ {
+ return false;
+ }
+
+ template<>
+ CORBA::Boolean
+ Any_Dual_Impl_T<PortableServer::Current::NoContext>::demarshal_value (TAO_InputCDR &)
+ {
+ return false;
+ }
+}
+
+// Copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ const PortableServer::Current::NoContext &_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<PortableServer::Current::NoContext>::insert_copy (
+ _tao_any,
+ PortableServer::Current::NoContext::_tao_any_destructor,
+ PortableServer::Current::_tc_NoContext,
+ _tao_elem
+ );
+}
+
+// Non-copying insertion.
+void operator<<= (
+ CORBA::Any &_tao_any,
+ PortableServer::Current::NoContext *_tao_elem
+ )
+{
+ TAO::Any_Dual_Impl_T<PortableServer::Current::NoContext>::insert (
+ _tao_any,
+ PortableServer::Current::NoContext::_tao_any_destructor,
+ PortableServer::Current::_tc_NoContext,
+ _tao_elem
+ );
+}
+
+// Extraction to non-const pointer (deprecated).
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ PortableServer::Current::NoContext *&_tao_elem
+ )
+{
+ return _tao_any >>= const_cast<
+ const PortableServer::Current::NoContext *&> (
+ _tao_elem
+ );
+}
+
+// Extraction to const pointer.
+CORBA::Boolean operator>>= (
+ const CORBA::Any &_tao_any,
+ const PortableServer::Current::NoContext *&_tao_elem
+ )
+{
+ return
+ TAO::Any_Dual_Impl_T<PortableServer::Current::NoContext>::extract (
+ _tao_any,
+ PortableServer::Current::NoContext::_tao_any_destructor,
+ PortableServer::Current::_tc_NoContext,
+ _tao_elem
+ );
+}
diff --git a/TAO/tao/PortableServer/PS_CurrentC.cpp b/TAO/tao/PortableServer/PS_CurrentC.cpp
index 1f0d5f29e69..92de45c9df6 100644
--- a/TAO/tao/PortableServer/PS_CurrentC.cpp
+++ b/TAO/tao/PortableServer/PS_CurrentC.cpp
@@ -26,27 +26,20 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:277
+// be\be_codegen.cpp:291
-#include "tao/PortableServer/PS_CurrentC.h"
-#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
-#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
+#include "PS_CurrentC.h"
#include "tao/CDR.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/Any_Impl_T.h"
-#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
#include "ace/OS_NS_string.h"
+#if defined (__BORLANDC__)
+#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
+#endif /* __BORLANDC__ */
+
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -80,20 +73,20 @@ TAO::Objref_Traits<PortableServer::Current>::nil (void)
return PortableServer::Current::_nil ();
}
-::CORBA::Boolean
+CORBA::Boolean
TAO::Objref_Traits<PortableServer::Current>::marshal (
PortableServer::Current_ptr p,
TAO_OutputCDR & cdr
)
{
- return ::CORBA::Object::marshal (p, cdr);
+ return CORBA::Object::marshal (p, cdr);
}
// TAO_IDL - Generated from
// be\be_visitor_exception/exception_cs.cpp:63
PortableServer::Current::NoContext::NoContext (void)
- : ::CORBA::UserException (
+ : CORBA::UserException (
"IDL:omg.org/PortableServer/Current/NoContext:2.3",
"NoContext"
)
@@ -105,7 +98,7 @@ PortableServer::Current::NoContext::~NoContext (void)
}
PortableServer::Current::NoContext::NoContext (const ::PortableServer::Current::NoContext &_tao_excp)
- : ::CORBA::UserException (
+ : CORBA::UserException (
_tao_excp._rep_id (),
_tao_excp._name ()
)
@@ -115,7 +108,7 @@ PortableServer::Current::NoContext::NoContext (const ::PortableServer::Current::
PortableServer::Current::NoContext&
PortableServer::Current::NoContext::operator= (const ::PortableServer::Current::NoContext &_tao_excp)
{
- this->ACE_NESTED_CLASS ( ::CORBA, UserException)::operator= (_tao_excp);
+ this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp);
return *this;
}
@@ -127,28 +120,28 @@ void PortableServer::Current::NoContext::_tao_any_destructor (void *_tao_void_po
}
PortableServer::Current::NoContext *
-PortableServer::Current::NoContext::_downcast ( ::CORBA::Exception *_tao_excp)
+PortableServer::Current::NoContext::_downcast (CORBA::Exception *_tao_excp)
{
return dynamic_cast<NoContext *> (_tao_excp);
}
const PortableServer::Current::NoContext *
-PortableServer::Current::NoContext::_downcast ( ::CORBA::Exception const *_tao_excp)
+PortableServer::Current::NoContext::_downcast (CORBA::Exception const *_tao_excp)
{
return dynamic_cast<const NoContext *> (_tao_excp);
}
-::CORBA::Exception *PortableServer::Current::NoContext::_alloc (void)
+CORBA::Exception *PortableServer::Current::NoContext::_alloc (void)
{
- ::CORBA::Exception *retval = 0;
+ CORBA::Exception *retval = 0;
ACE_NEW_RETURN (retval, ::PortableServer::Current::NoContext, 0);
return retval;
}
-::CORBA::Exception *
+CORBA::Exception *
PortableServer::Current::NoContext::_tao_duplicate (void) const
{
- ::CORBA::Exception *result = 0;
+ CORBA::Exception *result = 0;
ACE_NEW_RETURN (
result,
::PortableServer::Current::NoContext (*this),
@@ -167,7 +160,7 @@ void PortableServer::Current::NoContext::_tao_encode (
ACE_ENV_ARG_DECL
) const
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
void PortableServer::Current::NoContext::_tao_decode (
@@ -175,42 +168,32 @@ void PortableServer::Current::NoContext::_tao_decode (
ACE_ENV_ARG_DECL
)
{
- ACE_THROW ( ::CORBA::MARSHAL ());
+ ACE_THROW (CORBA::MARSHAL ());
}
// TAO extension - the virtual _type method.
-::CORBA::TypeCode_ptr PortableServer::Current::NoContext::_tao_type (void) const
+CORBA::TypeCode_ptr PortableServer::Current::NoContext::_tao_type (void) const
{
return ::PortableServer::Current::_tc_NoContext;
}
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/struct_typecode.cpp:89
-
-static TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const * const _tao_fields_PortableServer_Current_NoContext = 0;
-static TAO::TypeCode::Struct<char const *,
- ::CORBA::TypeCode_ptr const *,
- TAO::TypeCode::Struct_Field<char const *, ::CORBA::TypeCode_ptr const *> const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableServer_Current_NoContext (
- ::CORBA::tk_except,
- "IDL:omg.org/PortableServer/Current/NoContext:2.3",
- "NoContext",
- _tao_fields_PortableServer_Current_NoContext,
- 0);
-
-::CORBA::TypeCode_ptr const PortableServer::Current::_tc_NoContext =
- &_tao_tc_PortableServer_Current_NoContext;
-
PortableServer::Current::Current (void)
{}
PortableServer::Current::~Current (void)
{}
+void
+PortableServer::Current::_tao_any_destructor (void *_tao_void_pointer)
+{
+ Current *_tao_tmp_pointer =
+ static_cast<Current *> (_tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
PortableServer::Current_ptr
PortableServer::Current::_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -221,7 +204,7 @@ PortableServer::Current::_narrow (
PortableServer::Current_ptr
PortableServer::Current::_unchecked_narrow (
- ::CORBA::Object_ptr _tao_objref
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
@@ -247,7 +230,7 @@ PortableServer::Current::_tao_release (Current_ptr obj)
CORBA::release (obj);
}
-::CORBA::Boolean
+CORBA::Boolean
PortableServer::Current::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
@@ -285,27 +268,8 @@ const char* PortableServer::Current::_interface_repository_id (void) const
return "IDL:omg.org/PortableServer/Current:2.3";
}
-::CORBA::Boolean
+CORBA::Boolean
PortableServer::Current::marshal (TAO_OutputCDR &)
{
return false;
}
-
-// TAO_IDL - Generated from
-// be\be_visitor_typecode/objref_typecode.cpp:76
-
-static TAO::TypeCode::Objref<char const *,
- TAO::Null_RefCount_Policy>
- _tao_tc_PortableServer_Current (
- ::CORBA::tk_local_interface,
- "IDL:omg.org/PortableServer/Current:2.3",
- "Current");
-
-namespace PortableServer
-{
- ::CORBA::TypeCode_ptr const _tc_Current =
- &_tao_tc_PortableServer_Current;
-}
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PS_CurrentC.h b/TAO/tao/PortableServer/PS_CurrentC.h
index f897b62f9ce..69ac3faaf4d 100644
--- a/TAO/tao/PortableServer/PS_CurrentC.h
+++ b/TAO/tao/PortableServer/PS_CurrentC.h
@@ -26,10 +26,10 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// be\be_codegen.cpp:154
+// be\be_codegen.cpp:153
-#ifndef _TAO_IDL_PS_CURRENTC_H_
-#define _TAO_IDL_PS_CURRENTC_H_
+#ifndef _TAO_IDL_ORIG_PS_CURRENTC_H_
+#define _TAO_IDL_ORIG_PS_CURRENTC_H_
#include /**/ "ace/pre.h"
@@ -41,13 +41,10 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/PortableServer/portableserver_export.h"
-#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
#include "tao/Object.h"
-#include "tao/PortableServer/PS_ForwardA.h"
-#include "tao/AnyTypeCode/CurrentA.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/PortableServer/PS_ForwardC.h"
@@ -58,16 +55,23 @@
#endif
#define TAO_EXPORT_MACRO TAO_PortableServer_Export
-// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:49
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4250)
+#endif /* _MSC_VER */
+
+#if defined (__BORLANDC__)
+#pragma option push -w-rvl -w-rch -w-ccc -w-inl
+#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+// TAO_IDL - Generated from
+// be\be_visitor_module/module_ch.cpp:48
namespace PortableServer
{
// TAO_IDL - Generated from
- // be\be_interface.cpp:646
+ // be\be_interface.cpp:598
#if !defined (_PORTABLESERVER_CURRENT__VAR_OUT_CH_)
#define _PORTABLESERVER_CURRENT__VAR_OUT_CH_
@@ -108,12 +112,12 @@ namespace PortableServer
static void _tao_release (Current_ptr obj);
static Current_ptr _narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static Current_ptr _unchecked_narrow (
- ::CORBA::Object_ptr obj
+ CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
@@ -122,7 +126,7 @@ namespace PortableServer
return static_cast<Current_ptr> (0);
}
-
+ static void _tao_any_destructor (void *);
// TAO_IDL - Generated from
// be\be_visitor_exception/exception_ch.cpp:53
@@ -130,7 +134,7 @@ namespace PortableServer
#if !defined (_PORTABLESERVER_CURRENT_NOCONTEXT_CH_)
#define _PORTABLESERVER_CURRENT_NOCONTEXT_CH_
- class TAO_PortableServer_Export NoContext : public ::CORBA::UserException
+ class TAO_PortableServer_Export NoContext : public CORBA::UserException
{
public:
@@ -142,12 +146,12 @@ namespace PortableServer
static void _tao_any_destructor (void *);
- static NoContext *_downcast ( ::CORBA::Exception *);
- static const NoContext *_downcast ( ::CORBA::Exception const *);
+ static NoContext *_downcast (CORBA::Exception *);
+ static const NoContext *_downcast (CORBA::Exception const *);
- static ::CORBA::Exception *_alloc (void);
+ static CORBA::Exception *_alloc (void);
- virtual ::CORBA::Exception *_tao_duplicate (void) const;
+ virtual CORBA::Exception *_tao_duplicate (void) const;
virtual void _raise (void) const;
@@ -161,11 +165,14 @@ namespace PortableServer
ACE_ENV_ARG_DECL
);
- virtual ::CORBA::TypeCode_ptr _tao_type (void) const;
+ // TAO_IDL - Generated from
+ // be\be_visitor_exception/exception_ch.cpp:129
+
+ virtual CORBA::TypeCode_ptr _tao_type (void) const;
};
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
+ // be\be_visitor_typecode/typecode_decl.cpp:44
static ::CORBA::TypeCode_ptr const _tc_NoContext;
@@ -178,7 +185,7 @@ namespace PortableServer
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableServer::Current::NoContext
)) = 0;
@@ -189,18 +196,7 @@ namespace PortableServer
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
- ::PortableServer::Current::NoContext
- )) = 0;
-
- // TAO_IDL - Generated from
- // be\be_visitor_operation/operation_ch.cpp:46
-
- virtual ::CORBA::Object_ptr get_reference (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableServer::Current::NoContext
)) = 0;
@@ -211,20 +207,20 @@ namespace PortableServer
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((
- ::CORBA::SystemException,
+ CORBA::SystemException,
::PortableServer::Current::NoContext
)) = 0;
// TAO_IDL - Generated from
// be\be_visitor_interface/interface_ch.cpp:210
- virtual ::CORBA::Boolean _is_a (
+ virtual CORBA::Boolean _is_a (
const char *type_id
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
virtual const char* _interface_repository_id (void) const;
- virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr);
+ virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
protected:
// Abstract or local interface only.
@@ -242,12 +238,12 @@ namespace PortableServer
#endif /* end #if !defined */
// TAO_IDL - Generated from
- // be\be_visitor_typecode/typecode_decl.cpp:49
+ // be\be_visitor_typecode/typecode_decl.cpp:44
extern TAO_PortableServer_Export ::CORBA::TypeCode_ptr const _tc_Current;
// TAO_IDL - Generated from
-// be\be_visitor_module/module_ch.cpp:78
+// be\be_visitor_module/module_ch.cpp:66
} // module PortableServer
@@ -258,8 +254,8 @@ namespace PortableServer
namespace TAO
{
-#if !defined (_PORTABLESERVER_CURRENT__TRAITS_)
-#define _PORTABLESERVER_CURRENT__TRAITS_
+#if !defined (_PORTABLESERVER_CURRENT__TRAITS_CH_)
+#define _PORTABLESERVER_CURRENT__TRAITS_CH_
template<>
struct TAO_PortableServer_Export Objref_Traits< ::PortableServer::Current>
@@ -271,7 +267,7 @@ namespace TAO
::PortableServer::Current_ptr
);
static ::PortableServer::Current_ptr nil (void);
- static ::CORBA::Boolean marshal (
+ static CORBA::Boolean marshal (
::PortableServer::Current_ptr p,
TAO_OutputCDR & cdr
);
@@ -281,9 +277,30 @@ namespace TAO
}
// TAO_IDL - Generated from
-// be\be_codegen.cpp:1040
+// be\be_visitor_interface/any_op_ch.cpp:52
+
+TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::Current_ptr); // copying
+TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::Current_ptr *); // non-copying
+TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::Current_ptr &);
+
+// TAO_IDL - Generated from
+// be\be_visitor_exception/any_op_ch.cpp:52
+
+TAO_PortableServer_Export void operator<<= (CORBA::Any &, const PortableServer::Current::NoContext &); // copying version
+TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::Current::NoContext*); // noncopying version
+TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::Current::NoContext *&); // deprecated
+TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, const PortableServer::Current::NoContext *&);
+
+// TAO_IDL - Generated from
+// be\be_codegen.cpp:955
+
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif /* _MSC_VER */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if defined (__BORLANDC__)
+#pragma option pop
+#endif /* __BORLANDC__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/PS_Forward.pidl b/TAO/tao/PortableServer/PS_Forward.pidl
index f475927eab9..86f8af6f927 100644
--- a/TAO/tao/PortableServer/PS_Forward.pidl
+++ b/TAO/tao/PortableServer/PS_Forward.pidl
@@ -24,7 +24,7 @@
#ifndef _PORTABLESERVER_PS_FORWARD_IDL_
#define _PORTABLESERVER_PS_FORWARD_IDL_
-#include "tao/OctetSeq.pidl"
+#include <OctetSeq.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/PS_ForwardA.cpp b/TAO/tao/PortableServer/PS_ForwardA.cpp
index efaca76332e..777efdd75a0 100644
--- a/TAO/tao/PortableServer/PS_ForwardA.cpp
+++ b/TAO/tao/PortableServer/PS_ForwardA.cpp
@@ -28,12 +28,10 @@
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
-#include "tao/PortableServer/PS_ForwardA.h"
+#include "PS_ForwardA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -53,4 +51,3 @@ namespace PortableServer
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PS_ForwardA.h b/TAO/tao/PortableServer/PS_ForwardA.h
index 047e66c649b..7818c218778 100644
--- a/TAO/tao/PortableServer/PS_ForwardA.h
+++ b/TAO/tao/PortableServer/PS_ForwardA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/PS_ForwardC.h"
+#include "portableserver_export.h"
+#include "PS_ForwardC.h"
#include "tao/AnyTypeCode/OctetSeqA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -56,8 +54,6 @@ namespace PortableServer
} // module PortableServer
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/PS_ForwardC.cpp b/TAO/tao/PortableServer/PS_ForwardC.cpp
index d23e1ebf431..c39046225ac 100644
--- a/TAO/tao/PortableServer/PS_ForwardC.cpp
+++ b/TAO/tao/PortableServer/PS_ForwardC.cpp
@@ -29,18 +29,15 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/PS_ForwardC.h"
+#include "PS_ForwardC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PS_ForwardC.h b/TAO/tao/PortableServer/PS_ForwardC.h
index e05abec2d4c..24cb55a00f1 100644
--- a/TAO/tao/PortableServer/PS_ForwardC.h
+++ b/TAO/tao/PortableServer/PS_ForwardC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Objref_VarOut_T.h"
@@ -52,8 +52,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_PortableServer_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ServantBase;
class TAO_ServantBase_var;
class TAO_Local_ServantBase;
@@ -119,8 +117,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/PolicyS.cpp b/TAO/tao/PortableServer/PolicyS.cpp
index ef2bd9c048b..02b37e7afe3 100644
--- a/TAO/tao/PortableServer/PolicyS.cpp
+++ b/TAO/tao/PortableServer/PolicyS.cpp
@@ -35,7 +35,7 @@
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/Any.h"
-#include "tao/PortableServer/PolicyS.h"
+#include "PolicyS.h"
#include "tao/PortableServer/Operation_Table_Perfect_Hash.h"
#include "tao/PortableServer/Direct_Collocation_Upcall_Wrapper.h"
#include "tao/PortableServer/Upcall_Command.h"
@@ -66,8 +66,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -1084,5 +1082,3 @@ POA_CORBA::Policy::_this (ACE_ENV_SINGLE_ARG_DECL)
#endif /* ifndef */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PolicyS.h b/TAO/tao/PortableServer/PolicyS.h
index 91d1c44b232..8a337b60d65 100644
--- a/TAO/tao/PortableServer/PolicyS.h
+++ b/TAO/tao/PortableServer/PolicyS.h
@@ -55,7 +55,7 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
@@ -65,8 +65,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_CORBA
{
@@ -308,9 +306,7 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:995
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "tao/PortableServer/PolicyS_T.h"
+#include "PolicyS_T.h"
#if defined(_MSC_VER)
diff --git a/TAO/tao/PortableServer/PolicyS_T.cpp b/TAO/tao/PortableServer/PolicyS_T.cpp
index dfe7cbabbdd..a53bc9459b6 100644
--- a/TAO/tao/PortableServer/PolicyS_T.cpp
+++ b/TAO/tao/PortableServer/PolicyS_T.cpp
@@ -31,10 +31,10 @@
#ifndef _TAO_IDL_ORIG_POLICYS_T_CPP_
#define _TAO_IDL_ORIG_POLICYS_T_CPP_
-#include "tao/PortableServer/PolicyS_T.h"
+#include "PolicyS_T.h"
#if !defined (__ACE_INLINE__)
-#include "tao/PortableServer/PolicyS_T.inl"
+#include "PolicyS_T.inl"
#endif /* !defined INLINE */
diff --git a/TAO/tao/PortableServer/PolicyS_T.h b/TAO/tao/PortableServer/PolicyS_T.h
index f4ef428808e..2e8d80a5198 100644
--- a/TAO/tao/PortableServer/PolicyS_T.h
+++ b/TAO/tao/PortableServer/PolicyS_T.h
@@ -39,8 +39,6 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_root/root_sth.cpp:116
@@ -131,14 +129,12 @@ namespace POA_CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:1096
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/PortableServer/PolicyS_T.inl"
+#include "PolicyS_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/PortableServer/PolicyS_T.cpp"
+#include "PolicyS_T.cpp"
#endif /* defined REQUIRED SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/PortableServer/PolicyS_T.inl b/TAO/tao/PortableServer/PolicyS_T.inl
index 4bccdaee36d..42c4ad90eac 100644
--- a/TAO/tao/PortableServer/PolicyS_T.inl
+++ b/TAO/tao/PortableServer/PolicyS_T.inl
@@ -26,8 +26,6 @@
// http://www.cs.wustl.edu/~schmidt/TAO.html
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_interface/tie_si.cpp:96
@@ -169,4 +167,3 @@ void POA_CORBA::Policy_tie<T>::destroy (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Policy_Strategy.h b/TAO/tao/PortableServer/Policy_Strategy.h
index d0854a95849..9498924469a 100644
--- a/TAO/tao/PortableServer/Policy_Strategy.h
+++ b/TAO/tao/PortableServer/Policy_Strategy.h
@@ -14,16 +14,14 @@
#define TAO_POLICY_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/Environment.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Service_Object.h"
#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Environment.h"
class TAO_Root_POA;
@@ -44,7 +42,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_POLICY_STRATEGY_H */
diff --git a/TAO/tao/PortableServer/PortableServer.cpp b/TAO/tao/PortableServer/PortableServer.cpp
index 67d92f9fdbb..2517081b640 100644
--- a/TAO/tao/PortableServer/PortableServer.cpp
+++ b/TAO/tao/PortableServer/PortableServer.cpp
@@ -1,166 +1,163 @@
// $Id$
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Object_Adapter.h"
-#include "tao/PortableServer/Object_Adapter_Factory.h"
-#include "tao/PortableServer/POA_Current_Factory.h"
+#include "PortableServer.h"
+#include "Object_Adapter.h"
+#include "Object_Adapter_Factory.h"
+#include "POA_Current_Factory.h"
-#include "tao/PortableServer/ThreadStrategyFactoryImpl.h"
-#include "tao/PortableServer/LifespanStrategyFactoryImpl.h"
-#include "tao/PortableServer/IdAssignmentStrategyFactoryImpl.h"
-#include "tao/PortableServer/IdUniquenessStrategyFactoryImpl.h"
-#include "tao/PortableServer/ImplicitActivationStrategyFactoryImpl.h"
-#include "tao/PortableServer/RequestProcessingStrategyFactoryImpl.h"
-#include "tao/PortableServer/ServantRetentionStrategyFactoryImpl.h"
+#include "ThreadStrategyFactoryImpl.h"
+#include "LifespanStrategyFactoryImpl.h"
+#include "IdAssignmentStrategyFactoryImpl.h"
+#include "IdUniquenessStrategyFactoryImpl.h"
+#include "ImplicitActivationStrategyFactoryImpl.h"
+#include "RequestProcessingStrategyFactoryImpl.h"
+#include "ServantRetentionStrategyFactoryImpl.h"
-#include "tao/PortableServer/ThreadStrategyORBControl.h"
-#include "tao/PortableServer/ThreadStrategySingle.h"
-#include "tao/PortableServer/ThreadStrategySingleFactoryImpl.h"
+#include "ThreadStrategyORBControl.h"
+#include "ThreadStrategySingle.h"
+#include "ThreadStrategySingleFactoryImpl.h"
-#include "tao/PortableServer/IdAssignmentStrategySystem.h"
-#include "tao/PortableServer/IdAssignmentStrategyUser.h"
+#include "IdAssignmentStrategySystem.h"
+#include "IdAssignmentStrategyUser.h"
-#include "tao/PortableServer/IdUniquenessStrategyMultiple.h"
-#include "tao/PortableServer/IdUniquenessStrategyUnique.h"
+#include "IdUniquenessStrategyMultiple.h"
+#include "IdUniquenessStrategyUnique.h"
-#include "tao/PortableServer/ImplicitActivationStrategyExplicit.h"
-#include "tao/PortableServer/ImplicitActivationStrategyImplicit.h"
+#include "ImplicitActivationStrategyExplicit.h"
+#include "ImplicitActivationStrategyImplicit.h"
-#include "tao/PortableServer/RequestProcessingStrategyAOMOnly.h"
-#include "tao/PortableServer/RequestProcessingStrategyDefaultServant.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantManager.h"
+#include "RequestProcessingStrategyAOMOnly.h"
+#include "RequestProcessingStrategyDefaultServant.h"
+#include "RequestProcessingStrategyServantManager.h"
-#include "tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h"
-#include "tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h"
+#include "ServantRetentionStrategyNonRetainFactoryImpl.h"
+#include "ServantRetentionStrategyRetainFactoryImpl.h"
-#include "tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h"
-#include "tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h"
+#include "RequestProcessingStrategyDefaultServantFI.h"
+#include "RequestProcessingStrategyAOMOnlyFactoryImpl.h"
+#include "RequestProcessingStrategyServantActivatorFI.h"
+#include "RequestProcessingStrategyServantLocatorFI.h"
-#include "tao/PortableServer/IdUniquenessStrategyUniqueFactoryImpl.h"
+#include "IdUniquenessStrategyUniqueFactoryImpl.h"
-#include "tao/PortableServer/LifespanStrategyPersistentFactoryImpl.h"
-#include "tao/PortableServer/LifespanStrategyTransientFactoryImpl.h"
+#include "LifespanStrategyPersistentFactoryImpl.h"
+#include "LifespanStrategyTransientFactoryImpl.h"
ACE_RCSID (PortableServer,
PortableServer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_POA_Initializer::init (void)
{
ACE_Service_Config::process_directive (
- ace_svc_desc_IdAssignmentStrategySystem
+ TAO::Portable_Server::ace_svc_desc_IdAssignmentStrategySystem
);
ACE_Service_Config::process_directive (
- ace_svc_desc_IdAssignmentStrategyUser
+ TAO::Portable_Server::ace_svc_desc_IdAssignmentStrategyUser
);
ACE_Service_Config::process_directive (
- ace_svc_desc_IdUniquenessStrategyMultiple
+ TAO::Portable_Server::ace_svc_desc_IdUniquenessStrategyMultiple
);
ACE_Service_Config::process_directive (
- ace_svc_desc_IdUniquenessStrategyUnique
+ TAO::Portable_Server::ace_svc_desc_IdUniquenessStrategyUnique
);
ACE_Service_Config::process_directive (
- ace_svc_desc_IdUniquenessStrategyUniqueFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_IdUniquenessStrategyUniqueFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_ImplicitActivationStrategyExplicit
+ TAO::Portable_Server::ace_svc_desc_ImplicitActivationStrategyExplicit
);
ACE_Service_Config::process_directive (
- ace_svc_desc_ImplicitActivationStrategyImplicit
+ TAO::Portable_Server::ace_svc_desc_ImplicitActivationStrategyImplicit
);
// Strategy factories
ACE_Service_Config::process_directive (
- ace_svc_desc_ThreadStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_ThreadStrategyFactoryImpl
);
#if (TAO_HAS_MINIMUM_POA == 0)
ACE_Service_Config::process_directive (
- ace_svc_desc_ThreadStrategySingleFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_ThreadStrategySingleFactoryImpl
);
#endif /* TAO_HAS_MINIMUM_POA == 0 */
ACE_Service_Config::process_directive (
- ace_svc_desc_LifespanStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_LifespanStrategyFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_LifespanStrategyPersistentFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_LifespanStrategyPersistentFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_LifespanStrategyTransientFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_LifespanStrategyTransientFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_IdAssignmentStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_IdAssignmentStrategyFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_IdUniquenessStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_IdUniquenessStrategyFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_ImplicitActivationStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_ImplicitActivationStrategyFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_RequestProcessingStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_RequestProcessingStrategyFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_RequestProcessingStrategyAOMOnlyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_RequestProcessingStrategyAOMOnlyFactoryImpl
);
#if (TAO_HAS_MINIMUM_POA == 0)
ACE_Service_Config::process_directive (
- ace_svc_desc_RequestProcessingStrategyDefaultServantFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_RequestProcessingStrategyDefaultServantFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_RequestProcessingStrategyServantActivatorFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_RequestProcessingStrategyServantActivatorFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_RequestProcessingStrategyServantLocatorFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_RequestProcessingStrategyServantLocatorFactoryImpl
);
#endif /* TAO_HAS_MINIMUM_POA == 0 */
ACE_Service_Config::process_directive (
- ace_svc_desc_ServantRetentionStrategyFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_ServantRetentionStrategyFactoryImpl
);
ACE_Service_Config::process_directive (
- ace_svc_desc_ServantRetentionStrategyRetainFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_ServantRetentionStrategyRetainFactoryImpl
);
#if (TAO_HAS_MINIMUM_POA == 0)
ACE_Service_Config::process_directive (
- ace_svc_desc_ServantRetentionStrategyNonRetainFactoryImpl
+ TAO::Portable_Server::ace_svc_desc_ServantRetentionStrategyNonRetainFactoryImpl
);
#endif /* TAO_HAS_MINIMUM_POA == 0 */
// Strategy implementations
ACE_Service_Config::process_directive (
- ace_svc_desc_ThreadStrategyORBControl
+ TAO::Portable_Server::ace_svc_desc_ThreadStrategyORBControl
);
#if (TAO_HAS_MINIMUM_POA == 0)
ACE_Service_Config::process_directive (
- ace_svc_desc_ThreadStrategySingle
+ TAO::Portable_Server::ace_svc_desc_ThreadStrategySingle
);
#endif /* TAO_HAS_MINIMUM_POA == 0 */
@@ -173,5 +170,3 @@ TAO_POA_Initializer::init (void)
ace_svc_desc_TAO_Object_Adapter_Factory
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PortableServer.h b/TAO/tao/PortableServer/PortableServer.h
index 4c27f187332..b5d9c773bdf 100644
--- a/TAO/tao/PortableServer/PortableServer.h
+++ b/TAO/tao/PortableServer/PortableServer.h
@@ -15,16 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_PortableServer_Export TAO_POA_Initializer
{
public:
@@ -35,23 +31,21 @@ public:
static int
TAO_Requires_POA_Initializer = TAO_POA_Initializer::init ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_PORTABLESERVER_SAFE_INCLUDE
-#include "tao/PortableServer/PortableServerC.h"
+#include "PortableServerC.h"
#undef TAO_PORTABLESERVER_SAFE_INCLUDE
-#include "tao/PortableServer/POAManagerC.h"
-#include "tao/PortableServer/PS_CurrentC.h"
-#include "tao/PortableServer/PortableServer_Functions.h"
-#include "tao/PortableServer/PortableServer_WFunctions.h"
-#include "tao/PortableServer/PS_ForwardA.h"
-#include "tao/PortableServer/IdUniquenessPolicyA.h"
-#include "tao/PortableServer/ImplicitActivationPolicyA.h"
-#include "tao/PortableServer/RequestProcessingPolicyA.h"
-#include "tao/PortableServer/ServantRetentionPolicyA.h"
-#include "tao/PortableServer/ThreadPolicyA.h"
-#include "tao/PortableServer/IdAssignmentPolicyA.h"
-#include "tao/PortableServer/LifespanPolicyA.h"
+#include "POAManagerC.h"
+#include "PS_CurrentC.h"
+#include "PortableServer_Functions.h"
+#include "PortableServer_WFunctions.h"
+#include "PS_ForwardA.h"
+#include "IdUniquenessPolicyA.h"
+#include "ImplicitActivationPolicyA.h"
+#include "RequestProcessingPolicyA.h"
+#include "ServantRetentionPolicyA.h"
+#include "ThreadPolicyA.h"
+#include "IdAssignmentPolicyA.h"
+#include "LifespanPolicyA.h"
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/PortableServer.pidl b/TAO/tao/PortableServer/PortableServer.pidl
index 938c7edeaec..fd221867830 100644
--- a/TAO/tao/PortableServer/PortableServer.pidl
+++ b/TAO/tao/PortableServer/PortableServer.pidl
@@ -45,17 +45,17 @@
#define _PORTABLE_SERVER_IDL_
///FUZZ: disable check_for_include/
-#include "tao/Policy_Forward.pidl"
-#include "tao/OctetSeq.pidl"
-#include "tao/orb_types.pidl"
-#include "tao/PortableServer/PS_Forward.pidl"
-#include "tao/PortableServer/IdAssignmentPolicy.pidl"
-#include "tao/PortableServer/IdUniquenessPolicy.pidl"
-#include "tao/PortableServer/ImplicitActivationPolicy.pidl"
-#include "tao/PortableServer/LifespanPolicy.pidl"
-#include "tao/PortableServer/RequestProcessingPolicy.pidl"
-#include "tao/PortableServer/ServantRetentionPolicy.pidl"
-#include "tao/PortableServer/ThreadPolicy.pidl"
+#include <Policy_Forward.pidl>
+#include <OctetSeq.pidl>
+#include <orb_types.pidl>
+#include <tao/PortableServer/PS_Forward.pidl>
+#include <tao/PortableServer/IdAssignmentPolicy.pidl>
+#include <tao/PortableServer/IdUniquenessPolicy.pidl>
+#include <tao/PortableServer/ImplicitActivationPolicy.pidl>
+#include <tao/PortableServer/LifespanPolicy.pidl>
+#include <tao/PortableServer/RequestProcessingPolicy.pidl>
+#include <tao/PortableServer/ServantRetentionPolicy.pidl>
+#include <tao/PortableServer/ThreadPolicy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/PortableServerA.cpp b/TAO/tao/PortableServer/PortableServerA.cpp
index 548d4f7ce54..fefd713bd53 100644
--- a/TAO/tao/PortableServer/PortableServerA.cpp
+++ b/TAO/tao/PortableServer/PortableServerA.cpp
@@ -33,14 +33,12 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "PortableServer.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -1203,5 +1201,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PortableServerC.cpp b/TAO/tao/PortableServer/PortableServerC.cpp
index 6b5bb141a5a..4c59d1769ad 100644
--- a/TAO/tao/PortableServer/PortableServerC.cpp
+++ b/TAO/tao/PortableServer/PortableServerC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/PortableServer/PortableServer.h"
+#include "PortableServer.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "tao/Object_Argument_T.h"
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -1222,5 +1220,3 @@ PortableServer::POA::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PortableServerC.h b/TAO/tao/PortableServer/PortableServerC.h
index 4609975b004..7d21fd57717 100644
--- a/TAO/tao/PortableServer/PortableServerC.h
+++ b/TAO/tao/PortableServer/PortableServerC.h
@@ -44,7 +44,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -83,8 +83,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -1448,8 +1446,6 @@ TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, const
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/PortableServer/PortableServerS.h b/TAO/tao/PortableServer/PortableServerS.h
index acf326b7e64..5b1c718ab1c 100644
--- a/TAO/tao/PortableServer/PortableServerS.h
+++ b/TAO/tao/PortableServer/PortableServerS.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/PortableServerC.h"
+#include "PortableServerC.h"
#include "tao/Policy_ForwardS.h"
#include "tao/OctetSeqS.h"
#include "tao/orb_typesS.h"
@@ -54,8 +54,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_PortableServer
{
@@ -68,8 +66,6 @@ namespace POA_PortableServer
// TAO_IDL - Generated from
// be\be_codegen.cpp:1060
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "PortableServerS.inl"
diff --git a/TAO/tao/PortableServer/PortableServer_Functions.cpp b/TAO/tao/PortableServer/PortableServer_Functions.cpp
index ac70be706c3..23fb82cb0fd 100644
--- a/TAO/tao/PortableServer/PortableServer_Functions.cpp
+++ b/TAO/tao/PortableServer/PortableServer_Functions.cpp
@@ -1,4 +1,4 @@
-#include "tao/PortableServer/PortableServer_Functions.h"
+#include "PortableServer_Functions.h"
ACE_RCSID (PortableServer,
PortableServer_Functions,
@@ -6,8 +6,6 @@ ACE_RCSID (PortableServer,
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
PortableServer::ObjectId *
@@ -56,5 +54,3 @@ namespace PortableServer
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PortableServer_Functions.h b/TAO/tao/PortableServer/PortableServer_Functions.h
index e14222ac6b9..e5de24e99f7 100644
--- a/TAO/tao/PortableServer/PortableServer_Functions.h
+++ b/TAO/tao/PortableServer/PortableServer_Functions.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -40,8 +40,6 @@
#include "tao/PortableServer/PS_ForwardC.h"
#include "ace/OS_NS_wchar.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
/// Utility functions for the other
@@ -52,8 +50,6 @@ namespace PortableServer
const char *id);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_FUNCTIONS_H */
diff --git a/TAO/tao/PortableServer/PortableServer_WFunctions.cpp b/TAO/tao/PortableServer/PortableServer_WFunctions.cpp
index d980f303b74..63b6716fffb 100644
--- a/TAO/tao/PortableServer/PortableServer_WFunctions.cpp
+++ b/TAO/tao/PortableServer/PortableServer_WFunctions.cpp
@@ -1,4 +1,4 @@
-#include "tao/PortableServer/PortableServer_WFunctions.h"
+#include "PortableServer_WFunctions.h"
ACE_RCSID (PortableServer,
PortableServer_WFunctions,
@@ -6,8 +6,6 @@ ACE_RCSID (PortableServer,
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
PortableServer::ObjectId *
@@ -18,7 +16,7 @@ namespace PortableServer
// We DO NOT include the zero terminator, as this is simply an
// artifact of the way strings are stored in C.
//
- u_int string_length = ACE_OS::wslen (string);
+ u_int string_length = ACE_OS::strlen (string);
CORBA::ULong buffer_size = string_length * sizeof (CORBA::WChar);
@@ -68,4 +66,3 @@ namespace PortableServer
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/PortableServer_WFunctions.h b/TAO/tao/PortableServer/PortableServer_WFunctions.h
index 2d6cdcbabb4..b020106a939 100644
--- a/TAO/tao/PortableServer/PortableServer_WFunctions.h
+++ b/TAO/tao/PortableServer/PortableServer_WFunctions.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -40,8 +40,6 @@
#include "tao/PortableServer/PS_ForwardC.h"
#include "ace/OS_NS_wchar.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
TAO_NAMESPACE_STORAGE_CLASS CORBA::WChar* ObjectId_to_wstring (
@@ -51,8 +49,6 @@ namespace PortableServer
const CORBA::WChar *id);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_WFUNCTIONS_H */
diff --git a/TAO/tao/PortableServer/PortableServer_include.pidl b/TAO/tao/PortableServer/PortableServer_include.pidl
index 54132cd083d..dd300389aa6 100644
--- a/TAO/tao/PortableServer/PortableServer_include.pidl
+++ b/TAO/tao/PortableServer/PortableServer_include.pidl
@@ -35,6 +35,6 @@
#define _PORTABLESERVER_INCLUDE_IDL_
///FUZZ: disable check_for_include/
-#include "tao/PortableServer/PortableServer.pidl"
+#include <tao/PortableServer/PortableServer.pidl>
#endif /* _PORTABLESERVER_INCLUDE_IDL_ */
diff --git a/TAO/tao/PortableServer/PortableServer_includeC.h b/TAO/tao/PortableServer/PortableServer_includeC.h
index 8f2a1503f6c..152ccaf4f6a 100644
--- a/TAO/tao/PortableServer/PortableServer_includeC.h
+++ b/TAO/tao/PortableServer/PortableServer_includeC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -55,15 +55,11 @@
// TAO_IDL - Generated from
// be\be_visitor_traits.cpp:61
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
diff --git a/TAO/tao/PortableServer/Regular_POA.cpp b/TAO/tao/PortableServer/Regular_POA.cpp
index 7383d7bd9cf..1b8045b030d 100644
--- a/TAO/tao/PortableServer/Regular_POA.cpp
+++ b/TAO/tao/PortableServer/Regular_POA.cpp
@@ -1,4 +1,4 @@
-#include "tao/PortableServer/Regular_POA.h"
+#include "Regular_POA.h"
ACE_RCSID (PortableServer,
POA,
@@ -6,11 +6,9 @@ ACE_RCSID (PortableServer,
//
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Regular_POA.inl"
+# include "Regular_POA.inl"
#endif /* ! __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Regular_POA::TAO_Regular_POA (const TAO_Root_POA::String &name,
TAO_POA_Manager &poa_manager,
const TAO_POA_Policy_Set &policies,
@@ -69,5 +67,3 @@ TAO_Regular_POA::root_key_type (void)
return TAO_Root_POA::root_key_type ();
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Regular_POA.h b/TAO/tao/PortableServer/Regular_POA.h
index 7a6d3c2289c..516fa3b6f68 100644
--- a/TAO/tao/PortableServer/Regular_POA.h
+++ b/TAO/tao/PortableServer/Regular_POA.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#include "tao/PortableServer/Root_POA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Regular_POA
*
@@ -66,12 +64,11 @@ protected:
TAO_Root_POA *parent_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
// ****************************************************************
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Regular_POA.inl"
+# include "Regular_POA.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Regular_POA.inl b/TAO/tao/PortableServer/Regular_POA.inl
index 04b4b4b091b..fa533b4991e 100644
--- a/TAO/tao/PortableServer/Regular_POA.inl
+++ b/TAO/tao/PortableServer/Regular_POA.inl
@@ -2,13 +2,13 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE PortableServer::POA_ptr
TAO_Regular_POA::the_parent (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return PortableServer::POA::_duplicate (this->parent_);
+ if (this->parent_ != 0)
+ return PortableServer::POA::_duplicate (this->parent_);
+ else
+ return PortableServer::POA::_nil ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicy.cpp b/TAO/tao/PortableServer/RequestProcessingPolicy.cpp
index c3f4f480b8e..ca76ad11887 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicy.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingPolicy.cpp
@@ -1,5 +1,5 @@
-#include "tao/PortableServer/RequestProcessingPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "RequestProcessingPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
RequestProcessingPolicy,
@@ -7,8 +7,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -68,6 +66,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicy.h b/TAO/tao/PortableServer/RequestProcessingPolicy.h
index 0d8d4f7485a..6e9b9703085 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicy.h
+++ b/TAO/tao/PortableServer/RequestProcessingPolicy.h
@@ -14,13 +14,13 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/RequestProcessingPolicyC.h"
+#include "RequestProcessingPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -32,8 +32,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -69,8 +67,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicy.pidl b/TAO/tao/PortableServer/RequestProcessingPolicy.pidl
index 256defab1b9..7c8d7ac787b 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicy.pidl
+++ b/TAO/tao/PortableServer/RequestProcessingPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_REQUESTPROCESSINGPOLICY_IDL_
#define _PORTABLESERVER_REQUESTPROCESSINGPOLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicyA.cpp b/TAO/tao/PortableServer/RequestProcessingPolicyA.cpp
index 5db99f4446e..69e96b2261c 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicyA.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingPolicyA.cpp
@@ -30,7 +30,7 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/RequestProcessingPolicyA.h"
+#include "RequestProcessingPolicyA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -114,6 +112,4 @@ CORBA::Boolean operator>>= (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicyA.h b/TAO/tao/PortableServer/RequestProcessingPolicyA.h
index 71cd9e73205..a00d7522145 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicyA.h
+++ b/TAO/tao/PortableServer/RequestProcessingPolicyA.h
@@ -33,16 +33,14 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/RequestProcessingPolicyC.h"
+#include "portableserver_export.h"
+#include "RequestProcessingPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -67,8 +65,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::RequestProcessingPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::RequestProcessingPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicyC.cpp b/TAO/tao/PortableServer/RequestProcessingPolicyC.cpp
index d980d70fd44..c33d79df47f 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicyC.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingPolicyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/RequestProcessingPolicyC.h"
+#include "RequestProcessingPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -192,6 +190,4 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::RequestProcessin
return _tao_success;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingPolicyC.h b/TAO/tao/PortableServer/RequestProcessingPolicyC.h
index cdac90a297d..ec1286f49ae 100644
--- a/TAO/tao/PortableServer/RequestProcessingPolicyC.h
+++ b/TAO/tao/PortableServer/RequestProcessingPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -237,8 +235,6 @@ TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableSer
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategy.cpp b/TAO/tao/PortableServer/RequestProcessingStrategy.cpp
index 535faabda48..e0874c451eb 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategy.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategy.cpp
@@ -5,23 +5,21 @@
* @file RequestProcessingStrategy.cpp
*
* $Id$
+ *
*/
//=============================================================================
-#include "tao/PortableServer/RequestProcessingStrategy.h"
+#include "RequestProcessingStrategy.h"
ACE_RCSID (PortableServer,
RequestProcessingStrategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
- RequestProcessingStrategy::RequestProcessingStrategy (void)
+ RequestProcessingStrategy::RequestProcessingStrategy()
: poa_ (0)
{
}
@@ -58,4 +56,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategy.h b/TAO/tao/PortableServer/RequestProcessingStrategy.h
index 8c767103d0b..c6029211f5f 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategy.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategy.h
@@ -14,16 +14,14 @@
#define TAO_REQUEST_PROCESSING_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Policy_Strategy.h"
+#include "Policy_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Location.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "PortableServer.h"
+#include "Servant_Location.h"
namespace PortableServer
{
@@ -139,7 +137,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REQUEST_PROCESSING_STRATEGY_H */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp
index 877f8033219..b77993ba572 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.cpp
@@ -1,18 +1,16 @@
// -*- C++ -*-
#include "tao/ORB_Constants.h"
-#include "tao/PortableServer/RequestProcessingStrategyAOMOnly.h"
-#include "tao/PortableServer/ServantManagerC.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "RequestProcessingStrategyAOMOnly.h"
+#include "ServantManagerC.h"
+#include "Non_Servant_Upcall.h"
+#include "Servant_Base.h"
+#include "Root_POA.h"
ACE_RCSID (PortableServer,
Request_Processing,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -182,4 +180,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h
index b8b1b493ad4..f98b135f3ac 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnly.h
@@ -14,26 +14,19 @@
#define TAO_REQUESTPROCESSINGSTRATEGYAOMONLY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
+#include "RequestProcessingStrategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/PortableServer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Servant_Location.h"
+#include "PortableServer.h"
namespace TAO
{
namespace Portable_Server
{
- /**
- * @class RequestProcessingStrategyAOMOnly
- *
- * Request Processing Strategy which only uses the Active Object Map (AOM)
- */
class RequestProcessingStrategyAOMOnly
: public RequestProcessingStrategy
{
@@ -115,7 +108,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REQUESTPROCESSINGSTRATEGYAOMONLY_H */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp
index 820605a1d42..53a356fbf32 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.cpp
@@ -1,17 +1,14 @@
// $Id$
-#include "tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
-#include "tao/PortableServer/RequestProcessingStrategyAOMOnly.h"
+#include "RequestProcessingStrategyAOMOnlyFactoryImpl.h"
+#include "RequestProcessingStrategy.h"
+#include "RequestProcessingStrategyAOMOnly.h"
#include "ace/Dynamic_Service.h"
-#include "ace/Log_Msg.h"
ACE_RCSID (PortableServer,
RequestProcessingStrategyAOMOnlyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -50,20 +47,17 @@ namespace TAO
delete strategy;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ RequestProcessingStrategyAOMOnlyFactoryImpl,
+ ACE_TEXT ("RequestProcessingStrategyAOMOnlyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (RequestProcessingStrategyAOMOnlyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- RequestProcessingStrategyAOMOnlyFactoryImpl,
- ACE_TEXT ("RequestProcessingStrategyAOMOnlyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (RequestProcessingStrategyAOMOnlyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, RequestProcessingStrategyAOMOnlyFactoryImpl)
+ }
+}
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- RequestProcessingStrategyAOMOnlyFactoryImpl,
- TAO::Portable_Server::RequestProcessingStrategyAOMOnlyFactoryImpl)
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h
index 44a9df665af..81e10c20474 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyAOMOnlyFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYAOMONLYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +23,6 @@
#include "ace/Service_Config.h"
#include "tao/PortableServer/RequestProcessingStrategyFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -42,14 +40,11 @@ namespace TAO
RequestProcessingStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyAOMOnlyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyAOMOnlyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyAOMOnlyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyAOMOnlyFactoryImpl)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYAOMONLYFACTORYIMPL_H*/
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp
index 3b86eb66ce7..1d5954cd800 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.cpp
@@ -2,12 +2,12 @@
#include "tao/ORB_Constants.h"
#include "tao/TSS_Resources.h"
-#include "tao/PortableServer/RequestProcessingStrategyDefaultServant.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/ServantManagerC.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
+#include "RequestProcessingStrategyDefaultServant.h"
+#include "Non_Servant_Upcall.h"
+#include "Root_POA.h"
+#include "ServantManagerC.h"
+#include "Servant_Base.h"
+#include "POA_Current_Impl.h"
ACE_RCSID (PortableServer,
Request_Processing,
@@ -15,8 +15,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -282,7 +280,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h
index 26fe17df989..dcb5232e54e 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServant.h
@@ -14,21 +14,19 @@
#define TAO_REQUESTPROCESSINGSTRATEGYDEFAULTSERVANT_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
+#include "RequestProcessingStrategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Base.h"
+#include "Servant_Base.h"
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "Servant_Location.h"
+#include "PortableServer.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Root_POA;
namespace TAO
@@ -115,8 +113,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp
index c1f739832f5..ea8c1b03a3d 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.cpp
@@ -1,19 +1,16 @@
// $Id$
-#include "tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
-#include "tao/PortableServer/RequestProcessingStrategyDefaultServant.h"
+#include "RequestProcessingStrategyDefaultServantFI.h"
+#include "RequestProcessingStrategy.h"
+#include "RequestProcessingStrategyDefaultServant.h"
#include "ace/Dynamic_Service.h"
-#include "ace/Log_Msg.h"
ACE_RCSID (PortableServer,
- RequestProcessingStrategyDefaultServantFI,
+ RequestProcessingStrategyDefaultServantFactoryImpl,
"$Id$")
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -52,24 +49,19 @@ namespace TAO
delete strategy;
}
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DEFINE (
- RequestProcessingStrategyDefaultServantFactoryImpl,
- ACE_TEXT ("RequestProcessingStrategyDefaultServantFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (RequestProcessingStrategyDefaultServantFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- RequestProcessingStrategyDefaultServantFactoryImpl,
- TAO::Portable_Server::RequestProcessingStrategyDefaultServantFactoryImpl)
+ ACE_STATIC_SVC_DEFINE (
+ RequestProcessingStrategyDefaultServantFactoryImpl,
+ ACE_TEXT ("RequestProcessingStrategyDefaultServantFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (RequestProcessingStrategyDefaultServantFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ ACE_FACTORY_DEFINE (ACE_Local_Service, RequestProcessingStrategyDefaultServantFactoryImpl)
+ }
+}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h
index 7328d0bd30a..b02aba40dc3 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYDEFAULTSERVANTFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -44,14 +42,12 @@ namespace TAO
RequestProcessingStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyDefaultServantFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyDefaultServantFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyDefaultServantFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyDefaultServantFactoryImpl)
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h b/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h
index 9ee872f1a90..157321b4152 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,8 +24,6 @@
#include "tao/PortableServer/RequestProcessingPolicyC.h"
#include "tao/PortableServer/ServantRetentionPolicyC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -48,7 +46,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp
index 138fee4eb92..8582dd19f01 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.cpp
@@ -1,19 +1,16 @@
// $Id$
-#include "tao/PortableServer/RequestProcessingStrategyFactoryImpl.h"
-#include "tao/PortableServer/RequestProcessingStrategyAOMOnly.h"
-#include "tao/PortableServer/RequestProcessingStrategyDefaultServant.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantLocator.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantActivator.h"
+#include "RequestProcessingStrategyFactoryImpl.h"
+#include "RequestProcessingStrategyAOMOnly.h"
+#include "RequestProcessingStrategyDefaultServant.h"
+#include "RequestProcessingStrategyServantLocator.h"
+#include "RequestProcessingStrategyServantActivator.h"
#include "ace/Dynamic_Service.h"
-#include "ace/Log_Msg.h"
ACE_RCSID (PortableServer,
RequestProcessingStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -131,20 +128,17 @@ namespace TAO
ACE_CHECK;
}
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ RequestProcessingStrategyFactoryImpl,
+ ACE_TEXT ("RequestProcessingStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (RequestProcessingStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- RequestProcessingStrategyFactoryImpl,
- ACE_TEXT ("RequestProcessingStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (RequestProcessingStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, RequestProcessingStrategyFactoryImpl)
+ }
+}
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- RequestProcessingStrategyFactoryImpl,
- TAO::Portable_Server::RequestProcessingStrategyFactoryImpl)
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.h b/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.h
index fa07f1c30a3..007659174cd 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +23,6 @@
#include "ace/Service_Config.h"
#include "tao/PortableServer/RequestProcessingStrategyFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -41,14 +39,11 @@ namespace TAO
RequestProcessingStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyFactoryImpl)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp
index 666eb25551b..c1ffab9927d 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.cpp
@@ -1,12 +1,12 @@
// $Id$
#include "tao/ORB_Constants.h"
-#include "tao/PortableServer/ServantActivatorC.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantActivator.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
-#include "tao/PortableServer/Servant_Upcall.h"
+#include "ServantActivatorC.h"
+#include "RequestProcessingStrategyServantActivator.h"
+#include "Servant_Base.h"
+#include "Non_Servant_Upcall.h"
+#include "Root_POA.h"
+#include "POA_Current_Impl.h"
+#include "Servant_Upcall.h"
ACE_RCSID (PortableServer,
Request_Processing,
@@ -14,8 +14,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -350,6 +348,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h
index 3108a053031..8130b9eb8c0 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivator.h
@@ -14,19 +14,17 @@
#define TAO_REQUESTPROCESSINGSTRATEGYSERVANTACTIVATOR_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantManager.h"
+#include "RequestProcessingStrategyServantManager.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "Servant_Location.h"
+#include "PortableServer.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
class ServantActivator;
@@ -97,8 +95,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp
index a2b3d222282..766fb256043 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantActivator.h"
+#include "RequestProcessingStrategyServantActivatorFI.h"
+#include "RequestProcessingStrategy.h"
+#include "RequestProcessingStrategyServantActivator.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -12,8 +12,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -64,23 +62,18 @@ namespace TAO
delete strategy;
}
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DEFINE (
- RequestProcessingStrategyServantActivatorFactoryImpl,
- ACE_TEXT ("RequestProcessingStrategyServantActivatorFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (RequestProcessingStrategyServantActivatorFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- RequestProcessingStrategyServantActivatorFactoryImpl,
- TAO::Portable_Server::RequestProcessingStrategyServantActivatorFactoryImpl)
+ ACE_STATIC_SVC_DEFINE (
+ RequestProcessingStrategyServantActivatorFactoryImpl,
+ ACE_TEXT ("RequestProcessingStrategyServantActivatorFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (RequestProcessingStrategyServantActivatorFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ ACE_FACTORY_DEFINE (ACE_Local_Service, RequestProcessingStrategyServantActivatorFactoryImpl)
+ }
+}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h
index ea487fa69d3..cdc19cff125 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantActivatorFI.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYSERVANTACTIVATORFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -44,15 +42,12 @@ namespace TAO
RequestProcessingStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyServantActivatorFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyServantActivatorFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyServantActivatorFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyServantActivatorFactoryImpl)
-
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp
index e8ba2678612..47beac46acc 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.cpp
@@ -1,11 +1,13 @@
+// -*- C++ -*-
+
#include "tao/ORB_Constants.h"
-#include "tao/PortableServer/ServantLocatorC.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantLocator.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Base.h"
+#include "ServantLocatorC.h"
+#include "RequestProcessingStrategyServantLocator.h"
+#include "Root_POA.h"
+#include "POA_Current_Impl.h"
+#include "Servant_Upcall.h"
+#include "Non_Servant_Upcall.h"
+#include "Servant_Base.h"
ACE_RCSID (PortableServer,
Request_Processing,
@@ -13,8 +15,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -253,7 +253,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h
index f4f8b1e0d8f..103ccba19fc 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocator.h
@@ -14,19 +14,17 @@
#define TAO_REQUESTPROCESSINGSTRATEGYSERVANTLOCATOR_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantManager.h"
+#include "RequestProcessingStrategyServantManager.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "Servant_Location.h"
+#include "PortableServer.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
class ServantLocator;
@@ -88,8 +86,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp
index 631d95d573d..bf962eaf46c 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
-#include "tao/PortableServer/RequestProcessingStrategyServantLocator.h"
+#include "RequestProcessingStrategyServantLocatorFI.h"
+#include "RequestProcessingStrategy.h"
+#include "RequestProcessingStrategyServantLocator.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -12,8 +12,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -64,24 +62,19 @@ namespace TAO
delete strategy;
}
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-ACE_STATIC_SVC_DEFINE (
- RequestProcessingStrategyServantLocatorFactoryImpl,
- ACE_TEXT ("RequestProcessingStrategyServantLocatorFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (RequestProcessingStrategyServantLocatorFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- RequestProcessingStrategyServantLocatorFactoryImpl,
- TAO::Portable_Server::RequestProcessingStrategyServantLocatorFactoryImpl)
+ ACE_STATIC_SVC_DEFINE (
+ RequestProcessingStrategyServantLocatorFactoryImpl,
+ ACE_TEXT ("RequestProcessingStrategyServantLocatorFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (RequestProcessingStrategyServantLocatorFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ ACE_FACTORY_DEFINE (ACE_Local_Service, RequestProcessingStrategyServantLocatorFactoryImpl)
+ }
+}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h
index 89e5d4db19b..795a7b9d5b6 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantLocatorFI.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYSERVANTLOCATORFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -44,14 +42,12 @@ namespace TAO
RequestProcessingStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyServantLocatorFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyServantLocatorFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, RequestProcessingStrategyServantLocatorFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, RequestProcessingStrategyServantLocatorFactoryImpl)
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp
index 9cfd35ba5ac..af78da4ca83 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.cpp
@@ -1,8 +1,8 @@
// -*- C++ -*-
-#include "tao/PortableServer/RequestProcessingStrategyServantManager.h"
-#include "tao/PortableServer/ServantManagerC.h"
-#include "tao/PortableServer/Root_POA.h"
+#include "RequestProcessingStrategyServantManager.h"
+#include "ServantManagerC.h"
+#include "Root_POA.h"
#include "tao/ORB_Constants.h"
ACE_RCSID (PortableServer,
@@ -11,8 +11,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -96,7 +94,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h
index 77932c74be9..f68cc5d887d 100644
--- a/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h
+++ b/TAO/tao/PortableServer/RequestProcessingStrategyServantManager.h
@@ -14,19 +14,17 @@
#define TAO_REQUESTPROCESSINGSTRATEGYSERVANTMANAGER_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
+#include "RequestProcessingStrategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "Servant_Location.h"
+#include "PortableServer.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -72,8 +70,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Root_POA.cpp b/TAO/tao/PortableServer/Root_POA.cpp
index c68b5dba54a..ffad80905db 100644
--- a/TAO/tao/PortableServer/Root_POA.cpp
+++ b/TAO/tao/PortableServer/Root_POA.cpp
@@ -1,35 +1,35 @@
// $Id$
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/Regular_POA.h"
-
-#include "tao/PortableServer/ThreadPolicy.h"
-#include "tao/PortableServer/LifespanPolicy.h"
-#include "tao/PortableServer/IdAssignmentPolicy.h"
-#include "tao/PortableServer/IdUniquenessPolicy.h"
-#include "tao/PortableServer/ImplicitActivationPolicy.h"
-#include "tao/PortableServer/RequestProcessingPolicy.h"
-#include "tao/PortableServer/ServantRetentionPolicy.h"
-#include "tao/PortableServer/Active_Object_Map.h"
-#include "tao/PortableServer/Default_Acceptor_Filter.h"
-#include "tao/PortableServer/ORT_Adapter.h"
-#include "tao/PortableServer/ORT_Adapter_Factory.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/AdapterActivatorC.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/POAManager.h"
-#include "tao/PortableServer/ServantManagerC.h"
-#include "tao/PortableServer/poa_macros.h"
-#include "tao/PortableServer/POA_Guard.h"
-#include "tao/PortableServer/Creation_Time.h"
-#include "tao/PortableServer/RequestProcessingStrategy.h"
-#include "tao/PortableServer/LifespanStrategy.h"
-#include "tao/PortableServer/IdUniquenessStrategy.h"
-#include "tao/PortableServer/IdAssignmentStrategy.h"
-#include "tao/PortableServer/ServantRetentionStrategy.h"
-#include "tao/PortableServer/ImplicitActivationStrategy.h"
-#include "tao/PortableServer/ThreadStrategy.h"
+#include "Root_POA.h"
+#include "Regular_POA.h"
+
+#include "ThreadPolicy.h"
+#include "LifespanPolicy.h"
+#include "IdAssignmentPolicy.h"
+#include "IdUniquenessPolicy.h"
+#include "ImplicitActivationPolicy.h"
+#include "RequestProcessingPolicy.h"
+#include "ServantRetentionPolicy.h"
+#include "Active_Object_Map.h"
+#include "Default_Acceptor_Filter.h"
+#include "ORT_Adapter.h"
+#include "ORT_Adapter_Factory.h"
+#include "POA_Current_Impl.h"
+#include "Servant_Upcall.h"
+#include "AdapterActivatorC.h"
+#include "Non_Servant_Upcall.h"
+#include "POAManager.h"
+#include "ServantManagerC.h"
+#include "poa_macros.h"
+#include "POA_Guard.h"
+#include "Creation_Time.h"
+#include "RequestProcessingStrategy.h"
+#include "LifespanStrategy.h"
+#include "IdUniquenessStrategy.h"
+#include "IdAssignmentStrategy.h"
+#include "ServantRetentionStrategy.h"
+#include "ImplicitActivationStrategy.h"
+#include "ThreadStrategy.h"
#include "tao/StringSeqC.h"
#include "tao/PortableInterceptorC.h"
@@ -53,17 +53,14 @@
#include "ace/OS_NS_netdb.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/Log_Msg.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Root_POA.inl"
+# include "Root_POA.inl"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (PortableServer,
- Root_POA,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ POA,
+ "$Id$")
// This is the TAO_Object_key-prefix that is appended to all TAO Object keys.
// It's an array of octets representing ^t^a^o/0 in octal.
@@ -825,10 +822,6 @@ TAO_Root_POA::destroy_i (CORBA::Boolean etherealize_objects,
this->cleanup_in_progress_ = 1;
- // Inform the custom servant dispatching strategy to stop the working
- // threads when the poa is destroyed.
- this->poa_deactivated_hook ();
-
// This operation destroys the POA and all descendant POAs. The POA
// so destroyed (that is, the POA with its name) may be re-created
// later in the same process. (This differs from the
@@ -1117,9 +1110,9 @@ TAO_Root_POA::add_ior_component_to_profile (
{
// Add the given tagged component to all profiles matching the given
// ProfileId.
- bool found_profile = false;
+ int found_profile = 0;
- CORBA::ULong const profile_count = mprofile.profile_count ();
+ const CORBA::ULong profile_count = mprofile.profile_count ();
for (CORBA::ULong i = 0; i < profile_count; ++i)
{
@@ -1131,14 +1124,14 @@ TAO_Root_POA::add_ior_component_to_profile (
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- found_profile = true;
+ found_profile = 1;
}
}
// According to the Portable Interceptor specification, we're
// supposed to throw a CORBA::BAD_PARAM exception if no profile
// matched the given ProfileId.
- if (found_profile == false)
+ if (found_profile == 0)
ACE_THROW (CORBA::BAD_PARAM (CORBA::OMGVMCID | 29,
CORBA::COMPLETED_NO));
}
@@ -1502,8 +1495,7 @@ TAO_Root_POA::reference_to_servant_i (CORBA::Object_ptr reference
}
PortableServer::ObjectId system_id;
- bool const is_generated =
- this->is_poa_generated (reference, system_id ACE_ENV_ARG_PARAMETER);
+ bool is_generated = this->is_poa_generated (reference, system_id ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
if (!is_generated)
@@ -1548,18 +1540,18 @@ TAO_Root_POA::is_poa_generated (CORBA::Object_ptr reference,
ACE_CHECK_RETURN (false);
TAO_Object_Adapter::poa_name poa_system_name;
- CORBA::Boolean is_root = false;
- CORBA::Boolean is_persistent = false;
- CORBA::Boolean is_system_id = false;
+ CORBA::Boolean is_root = 0;
+ CORBA::Boolean is_persistent = 0;
+ CORBA::Boolean is_system_id = 0;
TAO::Portable_Server::Temporary_Creation_Time poa_creation_time;
- int const result = this->parse_key (key.in (),
- poa_system_name,
- system_id,
- is_root,
- is_persistent,
- is_system_id,
- poa_creation_time);
+ int result = this->parse_key (key.in (),
+ poa_system_name,
+ system_id,
+ is_root,
+ is_persistent,
+ is_system_id,
+ poa_creation_time);
if (result != 0 ||
!this->root () &&
poa_system_name != this->system_name () ||
@@ -1598,9 +1590,9 @@ TAO_Root_POA::reference_to_id (CORBA::Object_ptr reference
// reference was not created by this POA, the WrongAdapter exception
// is raised.
PortableServer::ObjectId system_id;
- bool const is_generated = this->is_poa_generated (reference,
- system_id
- ACE_ENV_ARG_PARAMETER);
+ bool is_generated = this->is_poa_generated (reference,
+ system_id
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
if (!is_generated)
@@ -1750,11 +1742,11 @@ TAO_Root_POA::parse_key (const TAO::ObjectKey &key,
char root_key_type = key_data[starting_at];
if (root_key_type == TAO_Root_POA::root_key_char ())
{
- is_root = true;
+ is_root = 1;
}
else if (root_key_type == TAO_Root_POA::non_root_key_char ())
{
- is_root = false;
+ is_root = 0;
}
else
{
@@ -1769,11 +1761,11 @@ TAO_Root_POA::parse_key (const TAO::ObjectKey &key,
char system_id_key_type = key_data[starting_at];
if (system_id_key_type == TAO_Root_POA::system_id_key_char ())
{
- is_system_id = true;
+ is_system_id = 1;
}
else if (system_id_key_type == TAO_Root_POA::user_id_key_char ())
{
- is_system_id = false;
+ is_system_id = 0;
}
else
{
@@ -1788,11 +1780,11 @@ TAO_Root_POA::parse_key (const TAO::ObjectKey &key,
char persistent_key_type = key_data[starting_at];
if (persistent_key_type == TAO_Root_POA::persistent_key_char ())
{
- is_persistent = true;
+ is_persistent = 1;
}
else if (persistent_key_type == TAO_Root_POA::transient_key_char ())
{
- is_persistent = false;
+ is_persistent = 0;
}
else
{
@@ -1842,7 +1834,7 @@ TAO_Root_POA::parse_key (const TAO::ObjectKey &key,
starting_at += sizeof (poa_name_size);
}
- // Grep the name if there is a name
+ // Grep the name if there is aname
if (!is_root)
{
poa_system_name.replace (poa_name_size,
@@ -1891,9 +1883,9 @@ TAO_Root_POA::create_object_key (const PortableServer::ObjectId &id)
TAO::ObjectKey *key = 0;
ACE_NEW_RETURN (key,
TAO::ObjectKey (buffer_size,
- buffer_size,
- buffer,
- 1),
+ buffer_size,
+ buffer,
+ 1),
0);
return key;
@@ -1910,7 +1902,7 @@ TAO_Root_POA::set_id (TAO_Root_POA *parent)
// used, then we need to add the POA name length field to the object
// key. Otherwise, the POA name length can be calculated by looking
// at the remainder after extracting other parts of the key.
- bool const add_poa_name_length =
+ int add_poa_name_length =
this->is_persistent () &&
!this->system_id ();
@@ -1932,14 +1924,14 @@ TAO_Root_POA::set_id (TAO_Root_POA *parent)
// Get the space needed for the lifespan length
// byte.
- CORBA::ULong const lifespan_key_length =
+ CORBA::ULong lifespan_key_length =
this->active_policy_strategies_.lifespan_strategy()->key_length ();
- CORBA::ULong const id_assignment_key_length =
+ CORBA::ULong id_assignment_key_length =
this->active_policy_strategies_.id_assignment_strategy()->key_type_length ();
// Calculate the space required for the POA id.
- CORBA::ULong const buffer_size =
+ CORBA::ULong buffer_size =
prefix_size +
this->root_key_type_length () +
id_assignment_key_length +
@@ -2000,6 +1992,7 @@ TAO_Root_POA::set_id (TAO_Root_POA *parent)
int
TAO_Root_POA::is_poa_generated_id (const PortableServer::ObjectId &id)
{
+
#if defined (POA_NAME_IN_POA_GENERATED_ID)
// Grab the buffer
@@ -2011,6 +2004,7 @@ TAO_Root_POA::is_poa_generated_id (const PortableServer::ObjectId &id)
ACE_OS::strncmp (id_buffer,
this->name_.c_str (),
this->name_.length ()) == 0;
+
#else /* POA_NAME_IN_POA_GENERATED_ID */
ACE_UNUSED_ARG (id);
@@ -2056,9 +2050,9 @@ TAO_Root_POA::parse_ir_object_key (const TAO::ObjectKey &object_key,
PortableServer::ObjectId &user_id)
{
TAO_Object_Adapter::poa_name poa_system_name;
- CORBA::Boolean is_root = false;
- CORBA::Boolean is_persistent = false;
- CORBA::Boolean is_system_id = false;
+ CORBA::Boolean is_root = 0;
+ CORBA::Boolean is_persistent = 0;
+ CORBA::Boolean is_system_id = 0;
TAO::Portable_Server::Temporary_Creation_Time poa_creation_time;
return TAO_Root_POA::parse_key (object_key,
@@ -2143,7 +2137,7 @@ TAO_Root_POA::key_to_object (const TAO::ObjectKey &key,
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"IMR IOR = \n%s\n",
- ACE_TEXT_CHAR_TO_TCHAR (imr_str.in ())));
+ ACE_TEXT_TO_TCHAR_IN (imr_str.in ())));
// Search for "corbaloc:" alone, without the protocol. This code
// should be protocol neutral.
@@ -2176,7 +2170,7 @@ TAO_Root_POA::key_to_object (const TAO::ObjectKey &key,
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"ImR-ified IOR = \n%s\n",
- ACE_TEXT_CHAR_TO_TCHAR (ior.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (ior.c_str ())));
obj =
this->orb_core_.orb ()->string_to_object (ior.c_str ()
@@ -2315,9 +2309,9 @@ save_ior_component_and_profile_id (const IOP::TaggedComponent &component,
// this->tagged_component_id_ is increased, we need to increase the
// size of this->profile_id_array_ also.
- CORBA::ULong const old_len = this->tagged_component_id_.length ();
+ const CORBA::ULong old_len = this->tagged_component_id_.length ();
- CORBA::ULong const new_len = old_len + 1;
+ const CORBA::ULong new_len = old_len + 1;
this->tagged_component_id_.length (new_len);
this->tagged_component_id_[old_len] = component;
@@ -2337,7 +2331,7 @@ TAO_Root_POA::create_stub_object (const TAO::ObjectKey &object_key,
int error = 0;
// Count the number of endpoints.
- size_t const profile_count =
+ size_t profile_count =
acceptor_registry.endpoint_count ();
// Create a profile container and have acceptor registries populate
@@ -2471,18 +2465,6 @@ TAO_Root_POA::find_servant (
ACE_ENV_ARG_PARAMETER);
}
-int
-TAO_Root_POA::find_servant_priority (
- const PortableServer::ObjectId &system_id,
- CORBA::Short &priority
- ACE_ENV_ARG_DECL)
-{
- return this->active_policy_strategies_.servant_retention_strategy()->
- find_servant_priority (system_id,
- priority
- ACE_ENV_ARG_PARAMETER);
-}
-
TAO::ORT_Adapter_Factory *
TAO_Root_POA::ORT_adapter_factory (void)
{
@@ -2532,8 +2514,8 @@ TAO_Root_POA::ORT_adapter_i (void)
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Cannot initialize the "
- "object_reference_template_adapter");
+ "(%P|%t) Cannot initialize the "
+ "object_reference_template_adapter\n");
}
ACE_ENDTRY;
ACE_CHECK_RETURN (0);
@@ -2910,28 +2892,3 @@ TAO_POA_Static_Resources::TAO_POA_Static_Resources (void)
{
}
-void
-TAO_Root_POA::poa_activated_hook ()
-{
-}
-
-void
-TAO_Root_POA::poa_deactivated_hook ()
-{
-}
-
-void
-TAO_Root_POA::servant_activated_hook (PortableServer::Servant,
- const PortableServer::ObjectId&
- ACE_ENV_ARG_DECL)
-{
-}
-
-void
-TAO_Root_POA::servant_deactivated_hook (PortableServer::Servant,
- const PortableServer::ObjectId&
- ACE_ENV_ARG_DECL)
-{
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Root_POA.h b/TAO/tao/PortableServer/Root_POA.h
index 59d8e490c0c..7fcd071f9f7 100644
--- a/TAO/tao/PortableServer/Root_POA.h
+++ b/TAO/tao/PortableServer/Root_POA.h
@@ -17,25 +17,33 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/SString.h"
+#include "ace/Hash_Map_Manager_T.h"
+#include "ace/Array_Base.h"
+#include "ace/Synch_Traits.h"
+#include "ace/Thread_Mutex.h"
+#include "ace/Recursive_Thread_Mutex.h"
+#include "ace/Null_Mutex.h"
+
// Object Adapter
-#include "tao/PortableServer/Object_Adapter.h"
+#include "Object_Adapter.h"
// POA Policy Set
-#include "tao/PortableServer/POA_Policy_Set.h"
+#include "POA_Policy_Set.h"
// Cached POA Policies
-#include "tao/PortableServer/POA_Cached_Policies.h"
-#include "tao/PortableServer/Active_Policy_Strategies.h"
+#include "POA_Cached_Policies.h"
+#include "Active_Policy_Strategies.h"
-#include "tao/PortableServer/ORT_Adapter.h"
+#include "ORT_Adapter.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "PortableServer.h"
// Object_Key
#include "tao/Object_KeyC.h"
@@ -49,14 +57,6 @@
// OctetSeq
#include "tao/OctetSeqC.h"
-#include "ace/SString.h"
-#include "ace/Hash_Map_Manager_T.h"
-#include "ace/Array_Base.h"
-#include "ace/Synch_Traits.h"
-#include "ace/Thread_Mutex.h"
-#include "ace/Recursive_Thread_Mutex.h"
-#include "ace/Null_Mutex.h"
-
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
#if defined(_MSC_VER)
@@ -64,8 +64,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward Declaration
class TAO_Acceptor_Filter;
class TAO_Acceptor_Registry;
@@ -506,19 +504,6 @@ public:
TAO::Portable_Server::POA_Current_Impl &poa_current_impl
ACE_ENV_ARG_DECL);
- /**
- * Find the the servant with ObjectId <system_id>, and retrieve
- * its priority.Usually used in RT CORBA with SERVER_DECLARED
- * priority model.
- *
- * @return -1 if servant does not exist, else 0 indicating the
- * servant exists and priority successfully retrieved.
- */
- int find_servant_priority (
- const PortableServer::ObjectId &system_id,
- CORBA::Short &priority
- ACE_ENV_ARG_DECL);
-
int unbind_using_user_id (const PortableServer::ObjectId &user_id);
void cleanup_servant (
@@ -576,25 +561,6 @@ public:
ACE_ENV_SINGLE_ARG_DECL
);
- /// These hooks are needed by the CSD strategy to override
- /// and no-ops by default.
-
- /// Hook - The POA has been (or is being) activated.
- virtual void poa_activated_hook ();
-
- /// Hook - The POA has been deactivated.
- virtual void poa_deactivated_hook ();
-
- /// Hook - A servant has been activated.
- virtual void servant_activated_hook (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
- /// Hook - A servant has been deactivated.
- virtual void servant_deactivated_hook (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL);
-
protected:
#if (TAO_HAS_MINIMUM_POA == 0)
@@ -1023,8 +989,6 @@ private:
static TAO_POA_Static_Resources* initialization_reference_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
#if defined(_MSC_VER)
@@ -1032,7 +996,7 @@ TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Root_POA.inl"
+# include "Root_POA.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Root_POA.inl b/TAO/tao/PortableServer/Root_POA.inl
index 116d1d99c4f..fa9ba6014e4 100644
--- a/TAO/tao/PortableServer/Root_POA.inl
+++ b/TAO/tao/PortableServer/Root_POA.inl
@@ -5,8 +5,6 @@
// Exception macros
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_Root_POA::cleanup_in_progress (void)
{
@@ -242,5 +240,3 @@ TAO_Root_POA::servant_deactivation_condition (void)
{
return servant_deactivation_condition_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/SArg_Traits_T.h b/TAO/tao/PortableServer/SArg_Traits_T.h
index 09f01b6bef4..4287b2d2765 100644
--- a/TAO/tao/PortableServer/SArg_Traits_T.h
+++ b/TAO/tao/PortableServer/SArg_Traits_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -6,11 +6,11 @@
*
* $Id$
*
- * @author Jeff Parsons
- * @author Carlos O'Ryan
+ * @authors Jeff Parsons and Carlos O'Ryan
*/
//=============================================================================
+
#ifndef TAO_SARG_TRAITS_T_H
#define TAO_SARG_TRAITS_T_H
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -35,8 +33,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SARG_TRAITS_T_H */
diff --git a/TAO/tao/PortableServer/ServantActivator.pidl b/TAO/tao/PortableServer/ServantActivator.pidl
index f84cffaa3b1..b51f5be5e2e 100644
--- a/TAO/tao/PortableServer/ServantActivator.pidl
+++ b/TAO/tao/PortableServer/ServantActivator.pidl
@@ -21,9 +21,9 @@
#define _PORTABLESERVER_SERVANT_ACTIVATOR_IDL_
///FUZZ: disable check_for_include/
-#include "tao/PortableServer/PS_Forward.pidl"
-#include "tao/PortableServer/ServantManager.pidl"
-#include "tao/PortableServer/ForwardRequest.pidl"
+#include <tao/PortableServer/PS_Forward.pidl>
+#include <tao/PortableServer/ServantManager.pidl>
+#include <tao/PortableServer/ForwardRequest.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/ServantActivatorA.cpp b/TAO/tao/PortableServer/ServantActivatorA.cpp
index 2ce0254c337..fb2ece136ab 100644
--- a/TAO/tao/PortableServer/ServantActivatorA.cpp
+++ b/TAO/tao/PortableServer/ServantActivatorA.cpp
@@ -29,15 +29,13 @@
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/ServantActivatorA.h"
+#include "ServantActivatorA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -54,6 +52,4 @@ namespace PortableServer
&_tao_tc_PortableServer_ServantActivator;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantActivatorA.h b/TAO/tao/PortableServer/ServantActivatorA.h
index 31a9823c2c1..da5bc2387bf 100644
--- a/TAO/tao/PortableServer/ServantActivatorA.h
+++ b/TAO/tao/PortableServer/ServantActivatorA.h
@@ -33,8 +33,8 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ServantActivatorC.h"
+#include "portableserver_export.h"
+#include "ServantActivatorC.h"
#include "tao/PortableServer/PS_ForwardA.h"
#include "tao/PortableServer/ServantManagerA.h"
#include "tao/PortableServer/ForwardRequestA.h"
@@ -43,8 +43,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -58,8 +56,6 @@ namespace PortableServer
} // module PortableServer
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ServantActivatorC.cpp b/TAO/tao/PortableServer/ServantActivatorC.cpp
index 2fb05a0669e..2a2333d0567 100644
--- a/TAO/tao/PortableServer/ServantActivatorC.cpp
+++ b/TAO/tao/PortableServer/ServantActivatorC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ServantActivatorC.h"
+#include "ServantActivatorC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
@@ -39,8 +39,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -172,6 +170,4 @@ PortableServer::ServantActivator::marshal (TAO_OutputCDR &)
return false;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantActivatorC.h b/TAO/tao/PortableServer/ServantActivatorC.h
index f86eeef4a4b..53e28b18c8a 100644
--- a/TAO/tao/PortableServer/ServantActivatorC.h
+++ b/TAO/tao/PortableServer/ServantActivatorC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -61,8 +61,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -217,8 +215,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ServantLocator.pidl b/TAO/tao/PortableServer/ServantLocator.pidl
index 69b5961bafe..333fea55271 100644
--- a/TAO/tao/PortableServer/ServantLocator.pidl
+++ b/TAO/tao/PortableServer/ServantLocator.pidl
@@ -25,10 +25,10 @@
#define _PORTABLESERVER_SERVANTLOCATOR_IDL_
///FUZZ: disable check_for_include/
-#include "tao/orb_types.pidl"
-#include "tao/PortableServer/PS_Forward.pidl"
-#include "tao/PortableServer/ServantManager.pidl"
-#include "tao/PortableServer/ForwardRequest.pidl"
+#include <orb_types.pidl>
+#include <tao/PortableServer/PS_Forward.pidl>
+#include <tao/PortableServer/ServantManager.pidl>
+#include <tao/PortableServer/ForwardRequest.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/ServantLocatorA.cpp b/TAO/tao/PortableServer/ServantLocatorA.cpp
index f6afe468d3e..c08d031be92 100644
--- a/TAO/tao/PortableServer/ServantLocatorA.cpp
+++ b/TAO/tao/PortableServer/ServantLocatorA.cpp
@@ -30,15 +30,13 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/PortableServer/ServantLocatorA.h"
+#include "ServantLocatorA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -55,6 +53,4 @@ namespace PortableServer
&_tao_tc_PortableServer_ServantLocator;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantLocatorA.h b/TAO/tao/PortableServer/ServantLocatorA.h
index 4e114ea1a86..223062154e4 100644
--- a/TAO/tao/PortableServer/ServantLocatorA.h
+++ b/TAO/tao/PortableServer/ServantLocatorA.h
@@ -33,8 +33,8 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ServantLocatorC.h"
+#include "portableserver_export.h"
+#include "ServantLocatorC.h"
#include "tao/AnyTypeCode/orb_typesA.h"
#include "tao/PortableServer/PS_ForwardA.h"
#include "tao/PortableServer/ServantManagerA.h"
@@ -44,8 +44,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -59,8 +57,6 @@ namespace PortableServer
} // module PortableServer
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ServantLocatorC.cpp b/TAO/tao/PortableServer/ServantLocatorC.cpp
index b58ab9d6972..e20acbb995d 100644
--- a/TAO/tao/PortableServer/ServantLocatorC.cpp
+++ b/TAO/tao/PortableServer/ServantLocatorC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ServantLocatorC.h"
+#include "ServantLocatorC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
@@ -39,8 +39,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -172,6 +170,4 @@ PortableServer::ServantLocator::marshal (TAO_OutputCDR &)
return false;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantLocatorC.h b/TAO/tao/PortableServer/ServantLocatorC.h
index 378b2df5c80..d0333809f29 100644
--- a/TAO/tao/PortableServer/ServantLocatorC.h
+++ b/TAO/tao/PortableServer/ServantLocatorC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -62,8 +62,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -222,8 +220,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ServantManagerA.cpp b/TAO/tao/PortableServer/ServantManagerA.cpp
index f260c424cdf..16d863620a4 100644
--- a/TAO/tao/PortableServer/ServantManagerA.cpp
+++ b/TAO/tao/PortableServer/ServantManagerA.cpp
@@ -29,15 +29,13 @@
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/ServantManagerA.h"
+#include "ServantManagerA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -54,6 +52,4 @@ namespace PortableServer
&_tao_tc_PortableServer_ServantManager;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantManagerA.h b/TAO/tao/PortableServer/ServantManagerA.h
index 25cb0d6abb9..a3b630bc035 100644
--- a/TAO/tao/PortableServer/ServantManagerA.h
+++ b/TAO/tao/PortableServer/ServantManagerA.h
@@ -33,15 +33,13 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ServantManagerC.h"
+#include "portableserver_export.h"
+#include "ServantManagerC.h"
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -55,8 +53,6 @@ namespace PortableServer
} // module PortableServer
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ServantManagerC.cpp b/TAO/tao/PortableServer/ServantManagerC.cpp
index 2d798612889..a870d15bb09 100644
--- a/TAO/tao/PortableServer/ServantManagerC.cpp
+++ b/TAO/tao/PortableServer/ServantManagerC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ServantManagerC.h"
+#include "ServantManagerC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -166,6 +164,4 @@ PortableServer::ServantManager::marshal (TAO_OutputCDR &)
return false;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantManagerC.h b/TAO/tao/PortableServer/ServantManagerC.h
index 42b1644d5b8..bc6f82dc2ce 100644
--- a/TAO/tao/PortableServer/ServantManagerC.h
+++ b/TAO/tao/PortableServer/ServantManagerC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Object.h"
@@ -56,8 +56,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -184,8 +182,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicy.cpp b/TAO/tao/PortableServer/ServantRetentionPolicy.cpp
index 4bbcdddeb11..9ae6180bbb2 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicy.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionPolicy.cpp
@@ -1,5 +1,5 @@
-#include "tao/PortableServer/ServantRetentionPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "ServantRetentionPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
ServantRetentionPolicy,
@@ -7,8 +7,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -42,7 +40,7 @@ namespace TAO
ServantRetentionPolicy::value (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- return this->value_;
+ return value_;
}
CORBA::PolicyType
@@ -66,6 +64,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicy.h b/TAO/tao/PortableServer/ServantRetentionPolicy.h
index 067b3160089..9495d660701 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicy.h
+++ b/TAO/tao/PortableServer/ServantRetentionPolicy.h
@@ -14,13 +14,13 @@
#define TAO_PORTABLESERVER_SERVANTRETENTIONPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
+#include "ServantRetentionPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -32,8 +32,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -69,8 +67,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicy.pidl b/TAO/tao/PortableServer/ServantRetentionPolicy.pidl
index 6301a5be4ca..fefc5b0efb5 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicy.pidl
+++ b/TAO/tao/PortableServer/ServantRetentionPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_SERVANTRETENTIONPOLICY_IDL_
#define _PORTABLESERVER_SERVANTRETENTIONPOLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicyA.cpp b/TAO/tao/PortableServer/ServantRetentionPolicyA.cpp
index e2474a81437..7fdc593fbac 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicyA.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionPolicyA.cpp
@@ -30,7 +30,7 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/ServantRetentionPolicyA.h"
+#include "ServantRetentionPolicyA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -113,6 +111,4 @@ CORBA::Boolean operator>>= (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicyA.h b/TAO/tao/PortableServer/ServantRetentionPolicyA.h
index ec53d8ff9b0..15576579a76 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicyA.h
+++ b/TAO/tao/PortableServer/ServantRetentionPolicyA.h
@@ -33,8 +33,8 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
+#include "portableserver_export.h"
+#include "ServantRetentionPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
@@ -43,8 +43,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -69,8 +67,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::ServantRetentionPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ServantRetentionPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicyC.cpp b/TAO/tao/PortableServer/ServantRetentionPolicyC.cpp
index fd103bdc342..a1593b6f7a5 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicyC.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionPolicyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
+#include "ServantRetentionPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -192,6 +190,4 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::ServantRetention
return _tao_success;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
diff --git a/TAO/tao/PortableServer/ServantRetentionPolicyC.h b/TAO/tao/PortableServer/ServantRetentionPolicyC.h
index eac58902cca..5aac210495d 100644
--- a/TAO/tao/PortableServer/ServantRetentionPolicyC.h
+++ b/TAO/tao/PortableServer/ServantRetentionPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -232,8 +230,6 @@ namespace TAO
TAO_PortableServer_Export CORBA::Boolean operator<< (TAO_OutputCDR &, PortableServer::ServantRetentionPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ServantRetentionPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
// TAO_IDL - Generated from
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategy.h b/TAO/tao/PortableServer/ServantRetentionStrategy.h
index 7dba84696c7..83529bc8cb8 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategy.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategy.h
@@ -14,18 +14,16 @@
#define TAO_SERVANTRETENTIONSTRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Policy_Strategy.h"
+#include "Policy_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Location.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/ServantRetentionPolicyC.h"
-#include "tao/PortableServer/PortableServer.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Servant_Location.h"
+#include "Servant_Upcall.h"
+#include "ServantRetentionPolicyC.h"
+#include "PortableServer.h"
class TAO_Root_POA;
class TAO_Active_Object_Map;
@@ -55,11 +53,6 @@ namespace TAO
TAO::Portable_Server::POA_Current_Impl &poa_current_impl
ACE_ENV_ARG_DECL) = 0;
- virtual int find_servant_priority (
- const PortableServer::ObjectId &system_id,
- CORBA::Short &priority
- ACE_ENV_ARG_DECL) = 0;
-
virtual PortableServer::ObjectId *activate_object (
PortableServer::Servant servant,
CORBA::Short priority,
@@ -158,7 +151,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVANTRETENTIONSTRATEGY_H */
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h b/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h
index 84d581d0c18..d2331dbd421 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +23,6 @@
#include "tao/PortableServer/StrategyFactory.h"
#include "tao/PortableServer/ServantRetentionPolicyC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -46,7 +44,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
index c1a5c11f000..1e4d947f999 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/PortableServer/ServantRetentionStrategyFactoryImpl.h"
-#include "tao/PortableServer/ServantRetentionStrategy.h"
+#include "ServantRetentionStrategyFactoryImpl.h"
+#include "ServantRetentionStrategy.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -9,8 +9,6 @@ ACE_RCSID (PortableServer,
ServantRetentionStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -77,20 +75,17 @@ namespace TAO
ACE_CHECK;
}
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ServantRetentionStrategyFactoryImpl,
+ ACE_TEXT ("ServantRetentionStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ServantRetentionStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- ServantRetentionStrategyFactoryImpl,
- ACE_TEXT ("ServantRetentionStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ServantRetentionStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ServantRetentionStrategyFactoryImpl)
+ }
+}
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ServantRetentionStrategyFactoryImpl,
- TAO::Portable_Server::ServantRetentionStrategyFactoryImpl)
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.h b/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.h
index b6864c9984e..637569c1c87 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +23,6 @@
#include "ace/Service_Config.h"
#include "tao/PortableServer/ServantRetentionStrategyFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -41,13 +39,11 @@ namespace TAO
ServantRetentionStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ServantRetentionStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ServantRetentionStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ServantRetentionStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ServantRetentionStrategyFactoryImpl)
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp
index 2084a6bebea..fb1cce33769 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.cpp
@@ -9,20 +9,18 @@
*/
//=============================================================================
-#include "tao/PortableServer/ServantRetentionStrategyNonRetain.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/Servant_Base.h"
+#include "ServantRetentionStrategyNonRetain.h"
+#include "Non_Servant_Upcall.h"
+#include "Servant_Upcall.h"
+#include "POA_Current_Impl.h"
+#include "Root_POA.h"
+#include "Servant_Base.h"
#include "tao/debug.h"
ACE_RCSID (PortableServer,
Servant_Retention_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -137,15 +135,6 @@ namespace TAO
return 0;
}
- int
- ServantRetentionStrategyNonRetain::find_servant_priority (
- const PortableServer::ObjectId &/*system_id*/,
- CORBA::Short &/*priority*/
- ACE_ENV_ARG_DECL)
- {
- return -1;
- }
-
int
ServantRetentionStrategyNonRetain::is_servant_in_map (
PortableServer::Servant /*servant*/,
@@ -342,4 +331,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h
index cb5fa9a53c7..0cc33443c9a 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetain.h
@@ -14,15 +14,13 @@
#define TAO_SERVANT_RETENTION_STRATEGY_NON_RETAIN_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/ServantRetentionStrategy.h"
+#include "ServantRetentionStrategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Location.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Servant_Location.h"
class TAO_Root_POA;
@@ -108,11 +106,6 @@ namespace TAO
TAO::Portable_Server::POA_Current_Impl &poa_current_impl
ACE_ENV_ARG_DECL);
- virtual int find_servant_priority (
- const PortableServer::ObjectId &system_id,
- CORBA::Short &priority
- ACE_ENV_ARG_DECL);
-
virtual void deactivate_all_objects (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableServer::POA::WrongPolicy));
@@ -165,7 +158,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVANT_RETENTION_STRATEGY_NON_RETAIN_H */
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp
index bc3a3510554..8703ddb53f6 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h"
-#include "tao/PortableServer/ServantRetentionStrategy.h"
-#include "tao/PortableServer/ServantRetentionStrategyNonRetain.h"
+#include "ServantRetentionStrategyNonRetainFactoryImpl.h"
+#include "ServantRetentionStrategy.h"
+#include "ServantRetentionStrategyNonRetain.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -12,8 +12,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -51,22 +49,18 @@ namespace TAO
delete strategy;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ServantRetentionStrategyNonRetainFactoryImpl,
+ ACE_TEXT ("ServantRetentionStrategyNonRetainFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ServantRetentionStrategyNonRetainFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- ServantRetentionStrategyNonRetainFactoryImpl,
- ACE_TEXT ("ServantRetentionStrategyNonRetainFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ServantRetentionStrategyNonRetainFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ServantRetentionStrategyNonRetainFactoryImpl,
- TAO::Portable_Server::ServantRetentionStrategyNonRetainFactoryImpl)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ServantRetentionStrategyNonRetainFactoryImpl)
+ }
+}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h
index 688e49cbeec..04594be87f6 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyNonRetainFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYNONRETAIN_FACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -43,14 +41,12 @@ namespace TAO
ServantRetentionStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ServantRetentionStrategyNonRetainFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ServantRetentionStrategyNonRetainFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ServantRetentionStrategyNonRetainFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ServantRetentionStrategyNonRetainFactoryImpl)
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp
index ecccbc7eaf5..87cf5b4defe 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.cpp
@@ -11,21 +11,19 @@
#include "tao/ORB_Core.h"
#include "tao/debug.h"
-#include "tao/PortableServer/ServantRetentionStrategyRetain.h"
-#include "tao/PortableServer/Non_Servant_Upcall.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/Active_Object_Map.h"
-#include "tao/PortableServer/Active_Object_Map_Entry.h"
+#include "ServantRetentionStrategyRetain.h"
+#include "Non_Servant_Upcall.h"
+#include "Servant_Upcall.h"
+#include "POA_Current_Impl.h"
+#include "Root_POA.h"
+#include "Active_Object_Map.h"
+#include "Active_Object_Map_Entry.h"
#include "ace/Auto_Ptr.h"
ACE_RCSID (PortableServer,
Servant_Retention_Strategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -107,18 +105,6 @@ namespace TAO
// Decrement the reference count.
CORBA::UShort new_count = --active_object_map_entry->reference_count_;
- // Inform the custom servant dispatching (CSD) strategy that the
- // servant is deactivated. This would be called just once when the
- // servant is deactivated the first time.
- if (active_object_map_entry->deactivated_ == 0)
- {
- this->poa_->servant_deactivated_hook (
- active_object_map_entry->servant_,
- active_object_map_entry->user_id_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-
if (new_count == 0)
{
this->poa_->cleanup_servant (active_object_map_entry->servant_,
@@ -358,44 +344,6 @@ namespace TAO
return servant;
}
- int
- ServantRetentionStrategyRetain::find_servant_priority (
- const PortableServer::ObjectId &system_id,
- CORBA::Short &priority
- ACE_ENV_ARG_DECL)
- {
- PortableServer::ObjectId user_id;
- // If we have the RETAIN policy, convert/transform from system id to
- // user id.
- if (this->active_object_map_->
- find_user_id_using_system_id (system_id,
- user_id) != 0)
- {
- ACE_THROW_RETURN (CORBA::OBJ_ADAPTER (),
- -1);
- }
-
- // If the POA has the RETAIN policy, the POA looks in the Active
- // Object Map to find if there is a servant associated with the
- // Object Id value from the request. If such a servant exists, the
- // POA invokes the appropriate method on the servant.
- PortableServer::Servant servant = 0;
- TAO_Active_Object_Map_Entry *active_object_map_entry = 0;
- int result = this->active_object_map_->
- find_servant_using_system_id_and_user_id (system_id,
- user_id,
- servant,
- active_object_map_entry);
-
- if (result == 0)
- {
- priority = active_object_map_entry->priority_;
- return 0;
- }
-
- return -1;
- }
-
int
ServantRetentionStrategyRetain::is_servant_in_map (
PortableServer::Servant servant,
@@ -609,13 +557,6 @@ namespace TAO
// Everything is finally ok
//
- // Inform the custom servant dispatching (CSD) strategy that the
- // sevant is activated.
- this->poa_->servant_activated_hook (servant,
- user_id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
// ATTENTION: Trick locking here, see class header for details
Non_Servant_Upcall non_servant_upcall (*this->poa_);
ACE_UNUSED_ARG (non_servant_upcall);
@@ -694,13 +635,6 @@ namespace TAO
// Everything is finally ok
//
- // Inform the custom servant dispatching (CSD) strategy that the
- // sevant is activated.
- this->poa_->servant_activated_hook (servant,
- system_id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
// ATTENTION: Trick locking here, see class header for details
Non_Servant_Upcall non_servant_upcall (*this->poa_);
ACE_UNUSED_ARG (non_servant_upcall);
@@ -824,13 +758,6 @@ namespace TAO
// Everything is finally ok
//
- // Inform the custom servant dispatching (CSD) strategy that the
- // sevant is activated.
- this->poa_->servant_activated_hook (servant,
- user_id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
// ATTENTION: Trick locking here, see class header for details
Non_Servant_Upcall non_servant_upcall (*this->poa_);
ACE_UNUSED_ARG (non_servant_upcall);
@@ -853,9 +780,9 @@ namespace TAO
int &wait_occurred_restart_call
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
- PortableServer::POA::ServantAlreadyActive,
- PortableServer::POA::ObjectAlreadyActive,
- PortableServer::POA::WrongPolicy))
+ PortableServer::POA::ServantAlreadyActive,
+ PortableServer::POA::ObjectAlreadyActive,
+ PortableServer::POA::WrongPolicy))
{
// If the POA has the SYSTEM_ID policy and it detects that the
// Object Id value was not generated by the system or for this POA,
@@ -938,13 +865,6 @@ namespace TAO
// Everything is finally ok
//
- // Inform the custom servant dispatching (CSD) strategy that the
- // sevant is activated.
- this->poa_->servant_activated_hook (servant,
- id
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
// ATTENTION: Trick locking here, see class header for details
Non_Servant_Upcall non_servant_upcall (*this->poa_);
ACE_UNUSED_ARG (non_servant_upcall);
@@ -1081,7 +1001,6 @@ namespace TAO
return this->active_object_map_->remaining_activations (servant);
}
-
::PortableServer::ServantRetentionPolicyValue
ServantRetentionStrategyRetain::type() const
{
@@ -1091,4 +1010,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h
index 011d4513fa6..789604bbb9b 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyRetain.h
@@ -14,14 +14,12 @@
#define TAO_SERVANT_RETENTION_STRATEGY_RETAIN_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/ServantRetentionStrategyNonRetain.h"
+#include "ServantRetentionStrategyNonRetain.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Root_POA;
namespace TAO
@@ -105,11 +103,6 @@ namespace TAO
TAO::Portable_Server::POA_Current_Impl &poa_current_impl
ACE_ENV_ARG_DECL);
- virtual int find_servant_priority (
- const PortableServer::ObjectId &system_id,
- CORBA::Short &priority
- ACE_ENV_ARG_DECL);
-
virtual void deactivate_all_objects (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableServer::POA::WrongPolicy));
@@ -188,7 +181,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVANT_RETENTION_STRATEGY_RETAIN_H */
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp b/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp
index f801a3b5e25..476ea401ebf 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h"
-#include "tao/PortableServer/ServantRetentionStrategy.h"
-#include "tao/PortableServer/ServantRetentionStrategyRetain.h"
+#include "ServantRetentionStrategyRetainFactoryImpl.h"
+#include "ServantRetentionStrategy.h"
+#include "ServantRetentionStrategyRetain.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -10,8 +10,6 @@ ACE_RCSID (PortableServer,
ServantRetentionStrategyRetainFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -49,20 +47,17 @@ namespace TAO
delete strategy;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ServantRetentionStrategyRetainFactoryImpl,
+ ACE_TEXT ("ServantRetentionStrategyRetainFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ServantRetentionStrategyRetainFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- ServantRetentionStrategyRetainFactoryImpl,
- ACE_TEXT ("ServantRetentionStrategyRetainFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ServantRetentionStrategyRetainFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ServantRetentionStrategyRetainFactoryImpl)
+ }
+}
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ServantRetentionStrategyRetainFactoryImpl,
- TAO::Portable_Server::ServantRetentionStrategyRetainFactoryImpl)
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h b/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h
index 1dbddfbb378..9fd7a80ee08 100644
--- a/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyRetainFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYRETAIN_FACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +23,6 @@
#include "ace/Service_Config.h"
#include "tao/PortableServer/ServantRetentionStrategyFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -41,14 +39,11 @@ namespace TAO
ServantRetentionStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ServantRetentionStrategyRetainFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ServantRetentionStrategyRetainFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ServantRetentionStrategyRetainFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ServantRetentionStrategyRetainFactoryImpl)
-
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYRETAIN_FACTORYIMPL_H*/
diff --git a/TAO/tao/PortableServer/Servant_Base.cpp b/TAO/tao/PortableServer/Servant_Base.cpp
index a91077fe966..170196e7695 100644
--- a/TAO/tao/PortableServer/Servant_Base.cpp
+++ b/TAO/tao/PortableServer/Servant_Base.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/PortableServer/Servant_Base.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/Operation_Table.h"
-#include "tao/PortableServer/POA_Current_Impl.h"
+#include "Servant_Base.h"
+#include "Root_POA.h"
+#include "Operation_Table.h"
+#include "POA_Current_Impl.h"
#include "tao/Timeprobe.h"
#include "tao/ORB_Core.h"
@@ -23,7 +23,7 @@ ACE_RCSID (PortableServer,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Servant_Base.i"
+# include "Servant_Base.i"
#endif /* ! __ACE_INLINE__ */
#if defined (ACE_ENABLE_TIMEPROBES)
@@ -46,8 +46,6 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Servant_Base_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ServantBase::TAO_ServantBase (void)
: TAO_Abstract_ServantBase ()
, ref_count_ (1)
@@ -479,4 +477,3 @@ TAO_ServantBase_var::_retn (void)
return retval;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Servant_Base.h b/TAO/tao/PortableServer/Servant_Base.h
index 486369efbed..1edd4812af9 100644
--- a/TAO/tao/PortableServer/Servant_Base.h
+++ b/TAO/tao/PortableServer/Servant_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,17 +15,15 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/PS_ForwardC.h"
-#include "tao/Abstract_Servant_Base.h"
+#include "PS_ForwardC.h"
#include "ace/Atomic_Op.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Abstract_Servant_Base.h"
class TAO_Operation_Table;
@@ -219,10 +217,8 @@ private:
TAO_ServantBase *ptr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Servant_Base.i"
+# include "Servant_Base.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Servant_Base.i b/TAO/tao/PortableServer/Servant_Base.i
index a975c809e62..a0f38b795a9 100644
--- a/TAO/tao/PortableServer/Servant_Base.i
+++ b/TAO/tao/PortableServer/Servant_Base.i
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO_ServantBase_var::TAO_ServantBase_var (void)
@@ -42,4 +41,3 @@ TAO_Servant_Hash::operator () (PortableServer::Servant servant) const
return static_cast<u_long> (reinterpret_cast<ptrdiff_t> (servant));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Servant_Dispatcher.cpp b/TAO/tao/PortableServer/Servant_Dispatcher.cpp
index 05f34b15345..f90cb97c96a 100644
--- a/TAO/tao/PortableServer/Servant_Dispatcher.cpp
+++ b/TAO/tao/PortableServer/Servant_Dispatcher.cpp
@@ -1,16 +1,11 @@
-// $Id$
+// @(#) $Id$
-#include "tao/PortableServer/Servant_Dispatcher.h"
+#include "Servant_Dispatcher.h"
ACE_RCSID(PortableServer,
Servant_Dispatcher,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Servant_Dispatcher::~TAO_Servant_Dispatcher (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Servant_Dispatcher.h b/TAO/tao/PortableServer/Servant_Dispatcher.h
index d2741f46546..a71b949d84e 100644
--- a/TAO/tao/PortableServer/Servant_Dispatcher.h
+++ b/TAO/tao/PortableServer/Servant_Dispatcher.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,25 +14,20 @@
#define TAO_SERVANT_DISPATCHER_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/Servant_Upcall.h"
#include "ace/SStringfwd.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Servant_Upcall.h"
// Forward references.
class TAO_POA_Manager;
class TAO_POA_Policy_Set;
class TAO_Root_POA;
+class ACE_Lock;
class TAO_ORB_Core;
class TAO_ServerRequest;
@@ -79,7 +74,5 @@ public:
ACE_ENV_ARG_DECL) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVANT_DISPATCHER_H */
diff --git a/TAO/tao/PortableServer/Servant_Location.h b/TAO/tao/PortableServer/Servant_Location.h
index 7ab08442408..2e533e63a6b 100644
--- a/TAO/tao/PortableServer/Servant_Location.h
+++ b/TAO/tao/PortableServer/Servant_Location.h
@@ -15,14 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
enum TAO_SERVANT_LOCATION
{
TAO_SERVANT_FOUND,
@@ -31,8 +29,6 @@ enum TAO_SERVANT_LOCATION
TAO_SERVANT_NOT_FOUND
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVANT_LOCATION_H */
diff --git a/TAO/tao/PortableServer/Servant_Upcall.cpp b/TAO/tao/PortableServer/Servant_Upcall.cpp
index 5df9cff3d57..5529135be6c 100644
--- a/TAO/tao/PortableServer/Servant_Upcall.cpp
+++ b/TAO/tao/PortableServer/Servant_Upcall.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/PortableServer/Object_Adapter.h"
-#include "tao/PortableServer/Servant_Upcall.h"
-#include "tao/PortableServer/Root_POA.h"
-#include "tao/PortableServer/Default_Servant_Dispatcher.h"
-#include "tao/PortableServer/Collocated_Object_Proxy_Broker.h"
-#include "tao/PortableServer/Active_Object_Map_Entry.h"
-#include "tao/PortableServer/ForwardRequestC.h"
+#include "Object_Adapter.h"
+#include "Servant_Upcall.h"
+#include "Root_POA.h"
+#include "Default_Servant_Dispatcher.h"
+#include "Collocated_Object_Proxy_Broker.h"
+#include "Active_Object_Map_Entry.h"
+#include "ForwardRequestC.h"
// -- TAO Include --
#include "tao/ORB.h"
@@ -14,7 +14,7 @@
#include "tao/debug.h"
#if !defined (__ACE_INLINE__)
-# include "tao/PortableServer/Servant_Upcall.inl"
+# include "Servant_Upcall.inl"
#endif /* __ACE_INLINE__ */
#include "ace/OS_NS_string.h"
@@ -23,8 +23,6 @@ ACE_RCSID (PortableServer,
Servant_Upcall,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -43,8 +41,9 @@ namespace TAO
#endif /* TAO_HAS_MINIMUM_POA == 0 */
active_object_map_entry_ (0)
{
+ TAO_Adapter *adapter = oc->poa_adapter ();
TAO_Object_Adapter *object_adapter =
- dynamic_cast<TAO_Object_Adapter *>(oc->poa_adapter ());
+ dynamic_cast<TAO_Object_Adapter *>(adapter);
this->object_adapter_ = object_adapter;
}
@@ -100,7 +99,7 @@ namespace TAO
ACE_THROW_RETURN (CORBA::OBJ_ADAPTER (),
TAO_Adapter::DS_FAILED);
- // We have acquired the object adapter lock. Record this for later
+ // We have acquired the object adapater lock. Record this for later
// use.
this->state_ = OBJECT_ADAPTER_LOCK_ACQUIRED;
@@ -245,7 +244,7 @@ namespace TAO
ACE_THROW_RETURN (CORBA::OBJ_ADAPTER (),
0);
- // We have acquired the object adapter lock. Record this for later
+ // We have acquired the object adapater lock. Record this for later
// use.
this->state_ = OBJECT_ADAPTER_LOCK_ACQUIRED;
@@ -469,5 +468,3 @@ namespace TAO
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Servant_Upcall.h b/TAO/tao/PortableServer/Servant_Upcall.h
index dff98e83559..b9564e8d7a8 100644
--- a/TAO/tao/PortableServer/Servant_Upcall.h
+++ b/TAO/tao/PortableServer/Servant_Upcall.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,8 +28,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration
class TAO_Root_POA;
class TAO_ServerRequest;
@@ -54,8 +52,7 @@ namespace TAO
*
* @brief This class finds out the POA and the servant to perform an
* upcall. It can only be instantiated without the object
- * adapter's lock held. For each upcall a new instance of this
- * class is created.
+ * adapter's lock held.
*/
class TAO_PortableServer_Export Servant_Upcall
{
@@ -92,7 +89,7 @@ namespace TAO
};
/// Constructor.
- explicit Servant_Upcall (TAO_ORB_Core *orb_core);
+ Servant_Upcall (TAO_ORB_Core *orb_core);
/// Destructor.
~Servant_Upcall (void);
@@ -235,14 +232,12 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-# include "tao/PortableServer/Servant_Upcall.inl"
+# include "Servant_Upcall.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Servant_Upcall.inl b/TAO/tao/PortableServer/Servant_Upcall.inl
index 5f016db3fe6..36c4739f457 100644
--- a/TAO/tao/PortableServer/Servant_Upcall.inl
+++ b/TAO/tao/PortableServer/Servant_Upcall.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -105,4 +103,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Special_Basic_SArgument_T.cpp b/TAO/tao/PortableServer/Special_Basic_SArgument_T.cpp
index f15942d5e54..991f39a5bab 100644
--- a/TAO/tao/PortableServer/Special_Basic_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Special_Basic_SArgument_T.cpp
@@ -12,8 +12,6 @@
// ============================================================
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename to_S,
typename from_S,
@@ -140,6 +138,4 @@ interceptor_value (CORBA::Any *any) const
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_SPECIAL_BASIC_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/Special_Basic_SArgument_T.h b/TAO/tao/PortableServer/Special_Basic_SArgument_T.h
index bb240a0a03f..e7d34f8494b 100644
--- a/TAO/tao/PortableServer/Special_Basic_SArgument_T.h
+++ b/TAO/tao/PortableServer/Special_Basic_SArgument_T.h
@@ -22,9 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -158,8 +155,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Special_Basic_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Special_Basic_SArgument_T.inl b/TAO/tao/PortableServer/Special_Basic_SArgument_T.inl
index 6c3d9685b54..38d18635683 100644
--- a/TAO/tao/PortableServer/Special_Basic_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Special_Basic_SArgument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename to_S,
typename from_S,
@@ -93,4 +91,3 @@ TAO::Ret_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::arg (void)
return this->x_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Special_Basic_SArguments.h b/TAO/tao/PortableServer/Special_Basic_SArguments.h
index f306336fe83..29708781603 100644
--- a/TAO/tao/PortableServer/Special_Basic_SArguments.h
+++ b/TAO/tao/PortableServer/Special_Basic_SArguments.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -6,8 +6,7 @@
*
* $Id$
*
- * @author Jeff Parsons
- * @author Carlos O'Ryan
+ * @authors Jeff Parsons and Carlos O'Ryan
*/
//=============================================================================
@@ -28,7 +27,6 @@
#include "ace/CDR_Stream.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -76,8 +74,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SPECIAL_BASIC_SARGUMENTS_H */
diff --git a/TAO/tao/PortableServer/StrategyFactory.cpp b/TAO/tao/PortableServer/StrategyFactory.cpp
index 58a4bc04c11..98331b770b4 100644
--- a/TAO/tao/PortableServer/StrategyFactory.cpp
+++ b/TAO/tao/PortableServer/StrategyFactory.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "tao/PortableServer/StrategyFactory.h"
+#include "StrategyFactory.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (PortableServer,
StrategyFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -18,5 +16,3 @@ namespace TAO
}
} /* namespace Portable_Server */
} /* namespace TAO */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/StrategyFactory.h b/TAO/tao/PortableServer/StrategyFactory.h
index b441256d214..54546f1f946 100644
--- a/TAO/tao/PortableServer/StrategyFactory.h
+++ b/TAO/tao/PortableServer/StrategyFactory.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file StrategyFactory.h
@@ -12,7 +11,6 @@
#ifndef TAO_PORTABLESERVER_STRATEGYFACTORY_H
#define TAO_PORTABLESERVER_STRATEGYFACTORY_H
-
#include /**/ "ace/pre.h"
#include "ace/Service_Object.h"
@@ -21,16 +19,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
- class StrategyFactory
- : public ACE_Service_Object
+ class StrategyFactory :
+ public ACE_Service_Object
{
public:
virtual ~StrategyFactory (void);
@@ -38,8 +32,5 @@ namespace TAO
} /* namespace Portable_Server */
} /* namespace TAO */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_PORTABLESERVER_STRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/ThreadPolicy.cpp b/TAO/tao/PortableServer/ThreadPolicy.cpp
index 2268a11ae61..a314bcb436d 100644
--- a/TAO/tao/PortableServer/ThreadPolicy.cpp
+++ b/TAO/tao/PortableServer/ThreadPolicy.cpp
@@ -1,5 +1,5 @@
-#include "tao/PortableServer/ThreadPolicy.h"
-#include "tao/PortableServer/PortableServer.h"
+#include "ThreadPolicy.h"
+#include "PortableServer.h"
ACE_RCSID (PortableServer,
ThreadPolicy,
@@ -7,8 +7,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -65,6 +63,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ThreadPolicy.h b/TAO/tao/PortableServer/ThreadPolicy.h
index a85fc863cb1..dc9673f59a7 100644
--- a/TAO/tao/PortableServer/ThreadPolicy.h
+++ b/TAO/tao/PortableServer/ThreadPolicy.h
@@ -14,13 +14,13 @@
#define TAO_PORTABLESERVER_THREADPOLICY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ThreadPolicyC.h"
+#include "ThreadPolicyC.h"
#include "tao/LocalObject.h"
// This is to remove "inherits via dominance" warnings from MSVC.
@@ -32,8 +32,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -69,8 +67,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#if defined(_MSC_VER)
diff --git a/TAO/tao/PortableServer/ThreadPolicy.pidl b/TAO/tao/PortableServer/ThreadPolicy.pidl
index 9f37950dfb4..a86084a88b5 100644
--- a/TAO/tao/PortableServer/ThreadPolicy.pidl
+++ b/TAO/tao/PortableServer/ThreadPolicy.pidl
@@ -17,7 +17,7 @@
#ifndef _PORTABLESERVER_THREAD_POLICY_IDL_
#define _PORTABLESERVER_THREAD_POLICY_IDL_
-#include "tao/Policy.pidl"
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/PortableServer/ThreadPolicyA.cpp b/TAO/tao/PortableServer/ThreadPolicyA.cpp
index db3bb5be86d..87d85d78165 100644
--- a/TAO/tao/PortableServer/ThreadPolicyA.cpp
+++ b/TAO/tao/PortableServer/ThreadPolicyA.cpp
@@ -35,14 +35,12 @@
#include "tao/AnyTypeCode/Enum_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
-#include "tao/PortableServer/ThreadPolicyA.h"
+#include "ThreadPolicyA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/enum_typecode.cpp:34
@@ -116,7 +114,5 @@ CORBA::Boolean operator>>= (
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ThreadPolicyA.h b/TAO/tao/PortableServer/ThreadPolicyA.h
index d0b05bc3667..b74bf2f030e 100644
--- a/TAO/tao/PortableServer/ThreadPolicyA.h
+++ b/TAO/tao/PortableServer/ThreadPolicyA.h
@@ -33,8 +33,8 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
-#include "tao/PortableServer/ThreadPolicyC.h"
+#include "portableserver_export.h"
+#include "ThreadPolicyC.h"
#include "tao/AnyTypeCode/PolicyA.h"
#if (TAO_HAS_MINIMUM_POA == 0)
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:59
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -68,8 +66,6 @@ namespace PortableServer
TAO_PortableServer_Export void operator<<= (CORBA::Any &, PortableServer::ThreadPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, PortableServer::ThreadPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/ThreadPolicyC.cpp b/TAO/tao/PortableServer/ThreadPolicyC.cpp
index 41e88033055..ac2f91049f7 100644
--- a/TAO/tao/PortableServer/ThreadPolicyC.cpp
+++ b/TAO/tao/PortableServer/ThreadPolicyC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:277
-#include "tao/PortableServer/ThreadPolicyC.h"
+#include "ThreadPolicyC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -38,8 +38,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -192,6 +190,4 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, PortableServer::ThreadPolicyValu
return _tao_success;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ThreadPolicyC.h b/TAO/tao/PortableServer/ThreadPolicyC.h
index e0f835a33b7..4af9f727a2b 100644
--- a/TAO/tao/PortableServer/ThreadPolicyC.h
+++ b/TAO/tao/PortableServer/ThreadPolicyC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableServer
{
@@ -232,8 +230,6 @@ namespace TAO
TAO_PortableServer_Export CORBA::Boolean operator<< (TAO_OutputCDR &, PortableServer::ThreadPolicyValue);
TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, PortableServer::ThreadPolicyValue &);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_MINIMUM_CORBA == 0 */
// TAO_IDL - Generated from
diff --git a/TAO/tao/PortableServer/ThreadStrategy.cpp b/TAO/tao/PortableServer/ThreadStrategy.cpp
index c3d6a446a4a..6f1d80b5c36 100644
--- a/TAO/tao/PortableServer/ThreadStrategy.cpp
+++ b/TAO/tao/PortableServer/ThreadStrategy.cpp
@@ -1,20 +1,17 @@
// $Id$
-#include "tao/PortableServer/ThreadStrategy.h"
+#include "ThreadStrategy.h"
ACE_RCSID (PortableServer,
ThreadStrategy,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
void
- ThreadStrategy::strategy_init (TAO_Root_POA * /*poa*/
- ACE_ENV_ARG_DECL_NOT_USED)
+ ThreadStrategy::strategy_init (TAO_Root_POA * /*poa*/ ACE_ENV_ARG_DECL_NOT_USED)
{
}
@@ -25,4 +22,3 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/ThreadStrategy.h b/TAO/tao/PortableServer/ThreadStrategy.h
index 622ad7d3748..fe992cb580e 100644
--- a/TAO/tao/PortableServer/ThreadStrategy.h
+++ b/TAO/tao/PortableServer/ThreadStrategy.h
@@ -14,23 +14,21 @@
#define TAO_THREAD_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/Policy_Strategy.h"
+#include "Policy_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ThreadPolicyC.h"
+#include "ThreadPolicyC.h"
#include "tao/orbconf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
{
- class ThreadStrategy
- : public Policy_Strategy
+ class ThreadStrategy :
+ public Policy_Strategy
{
public:
virtual int enter () = 0;
@@ -46,7 +44,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_THREAD_STRATEGY_H */
diff --git a/TAO/tao/PortableServer/ThreadStrategyFactory.h b/TAO/tao/PortableServer/ThreadStrategyFactory.h
index a22078ed773..5dea79f8b41 100644
--- a/TAO/tao/PortableServer/ThreadStrategyFactory.h
+++ b/TAO/tao/PortableServer/ThreadStrategyFactory.h
@@ -12,18 +12,15 @@
#ifndef TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORY_H
#define TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORY_H
-
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/StrategyFactory.h"
+#include "StrategyFactory.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ThreadPolicyC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ThreadPolicyC.h"
namespace TAO
{
@@ -47,8 +44,5 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORY_H */
diff --git a/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.cpp b/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.cpp
index b21116e42b1..b12fb95bb29 100644
--- a/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/PortableServer/ThreadStrategyFactoryImpl.h"
-#include "tao/PortableServer/ThreadStrategy.h"
+#include "ThreadStrategyFactoryImpl.h"
+#include "ThreadStrategy.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -9,8 +9,6 @@ ACE_RCSID (PortableServer,
ThreadStrategyFactoryImpl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -82,21 +80,17 @@ namespace TAO
}
}
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ThreadStrategyFactoryImpl,
+ ACE_TEXT ("ThreadStrategyFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ThreadStrategyFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- ThreadStrategyFactoryImpl,
- ACE_TEXT ("ThreadStrategyFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ThreadStrategyFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ThreadStrategyFactoryImpl,
- TAO::Portable_Server::ThreadStrategyFactoryImpl)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ThreadStrategyFactoryImpl)
+ }
+}
diff --git a/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.h b/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.h
index cfe8b44147c..9ffb364e529 100644
--- a/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.h
+++ b/TAO/tao/PortableServer/ThreadStrategyFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +23,6 @@
#include "ace/Service_Config.h"
#include "tao/PortableServer/ThreadStrategyFactory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -41,13 +39,11 @@ namespace TAO
ThreadStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategyFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategyFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategyFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategyFactoryImpl)
-
#include /**/ "ace/post.h"
#endif /* TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORYIMPL_H */
diff --git a/TAO/tao/PortableServer/ThreadStrategyORBControl.cpp b/TAO/tao/PortableServer/ThreadStrategyORBControl.cpp
index 44edaa4b6a9..abec20789c5 100644
--- a/TAO/tao/PortableServer/ThreadStrategyORBControl.cpp
+++ b/TAO/tao/PortableServer/ThreadStrategyORBControl.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "tao/PortableServer/ThreadStrategyORBControl.h"
+#include "ThreadStrategyORBControl.h"
#include "ace/Log_Msg.h"
ACE_RCSID (PortableServer,
ThreadStrategyORBControl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -30,21 +28,17 @@ namespace TAO
{
return ::PortableServer::ORB_CTRL_MODEL;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ThreadStrategyORBControl)
+ ACE_STATIC_SVC_DEFINE (
+ ThreadStrategyORBControl,
+ ACE_TEXT ("ThreadStrategyORBControl"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ThreadStrategyORBControl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ThreadStrategyORBControl,
- TAO::Portable_Server::ThreadStrategyORBControl)
-
-ACE_STATIC_SVC_DEFINE (
- ThreadStrategyORBControl,
- ACE_TEXT ("ThreadStrategyORBControl"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ThreadStrategyORBControl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
diff --git a/TAO/tao/PortableServer/ThreadStrategyORBControl.h b/TAO/tao/PortableServer/ThreadStrategyORBControl.h
index d88997c2214..c0f4ff5cd8f 100644
--- a/TAO/tao/PortableServer/ThreadStrategyORBControl.h
+++ b/TAO/tao/PortableServer/ThreadStrategyORBControl.h
@@ -12,20 +12,17 @@
#ifndef TAO_THREADSTRATEGYORBCONTROL_H
#define TAO_THREADSTRATEGYORBCONTROL_H
-
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ThreadStrategy.h"
-#include "tao/orbconf.h"
+#include "ThreadStrategy.h"
#include "ace/Service_Config.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/orbconf.h"
namespace TAO
{
@@ -41,14 +38,11 @@ namespace TAO
virtual ::PortableServer::ThreadPolicyValue type() const;
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategyORBControl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategyORBControl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategyORBControl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategyORBControl)
-
#include /**/ "ace/post.h"
-
#endif /* TAO_THREADSTRATEGYORBCONTROL_H */
diff --git a/TAO/tao/PortableServer/ThreadStrategySingle.cpp b/TAO/tao/PortableServer/ThreadStrategySingle.cpp
index 2a903d2876b..0212e5a092e 100644
--- a/TAO/tao/PortableServer/ThreadStrategySingle.cpp
+++ b/TAO/tao/PortableServer/ThreadStrategySingle.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/ThreadStrategySingle.h"
+#include "ThreadStrategySingle.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -10,8 +10,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -33,22 +31,18 @@ namespace TAO
{
return ::PortableServer::SINGLE_THREAD_MODEL;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ThreadStrategySingle)
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ThreadStrategySingle,
- TAO::Portable_Server::ThreadStrategySingle)
-
-ACE_STATIC_SVC_DEFINE (
- ThreadStrategySingle,
- ACE_TEXT ("ThreadStrategySingle"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ThreadStrategySingle),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
+ ACE_STATIC_SVC_DEFINE (
+ ThreadStrategySingle,
+ ACE_TEXT ("ThreadStrategySingle"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ThreadStrategySingle),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
+ }
+}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ThreadStrategySingle.h b/TAO/tao/PortableServer/ThreadStrategySingle.h
index 0836472a09e..b10a56f0bb4 100644
--- a/TAO/tao/PortableServer/ThreadStrategySingle.h
+++ b/TAO/tao/PortableServer/ThreadStrategySingle.h
@@ -14,16 +14,13 @@
#define TAO_THREADSTRATEGYSINGLE_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/PortableServer/ThreadStrategy.h"
-
-#include "tao/orbconf.h"
-
+#include "ThreadStrategy.h"
#include "ace/Service_Config.h"
// Locking
@@ -32,11 +29,10 @@
#include "ace/Recursive_Thread_Mutex.h"
#include "ace/Null_Mutex.h"
+#include "tao/orbconf.h"
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -53,14 +49,12 @@ namespace TAO
private:
TAO_SYNCH_RECURSIVE_MUTEX lock_;
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategySingle)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategySingle)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategySingle)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategySingle)
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp b/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp
index b718ea02ef2..e5df89cc177 100644
--- a/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp
+++ b/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/PortableServer/ThreadStrategySingleFactoryImpl.h"
-#include "tao/PortableServer/ThreadStrategy.h"
-#include "tao/PortableServer/ThreadStrategySingle.h"
+#include "ThreadStrategySingleFactoryImpl.h"
+#include "ThreadStrategy.h"
+#include "ThreadStrategySingle.h"
#include "ace/Dynamic_Service.h"
#include "ace/Log_Msg.h"
@@ -12,8 +12,6 @@ ACE_RCSID (PortableServer,
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -51,22 +49,18 @@ namespace TAO
delete strategy;
}
- }
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
+ ACE_STATIC_SVC_DEFINE (
+ ThreadStrategySingleFactoryImpl,
+ ACE_TEXT ("ThreadStrategySingleFactory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ThreadStrategySingleFactoryImpl),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0
+ )
-ACE_STATIC_SVC_DEFINE (
- ThreadStrategySingleFactoryImpl,
- ACE_TEXT ("ThreadStrategySingleFactory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ThreadStrategySingleFactoryImpl),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-
-ACE_FACTORY_NAMESPACE_DEFINE (
- ACE_Local_Service,
- ThreadStrategySingleFactoryImpl,
- TAO::Portable_Server::ThreadStrategySingleFactoryImpl)
+ ACE_FACTORY_DEFINE (ACE_Local_Service, ThreadStrategySingleFactoryImpl)
+ }
+}
#endif /* TAO_HAS_MINIMUM_POA == 0 */
diff --git a/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.h b/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.h
index e04f0995a42..260ea7cf4bc 100644
--- a/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.h
+++ b/TAO/tao/PortableServer/ThreadStrategySingleFactoryImpl.h
@@ -14,7 +14,7 @@
#define TAO_PORTABLESERVER_THREADPOLICYSINGLESTRATEGYFACTORYIMPL_H
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#if (TAO_HAS_MINIMUM_POA == 0)
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Portable_Server
@@ -43,14 +41,12 @@ namespace TAO
ThreadStrategy *strategy
ACE_ENV_ARG_DECL);
};
+
+ ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategySingleFactoryImpl)
+ ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategySingleFactoryImpl)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategySingleFactoryImpl)
-ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategySingleFactoryImpl)
-
#endif /* TAO_HAS_MINIMUM_POA == 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/TypeCode_SArg_Traits.h b/TAO/tao/PortableServer/TypeCode_SArg_Traits.h
index 2e0f067d2fd..0314b900e76 100644
--- a/TAO/tao/PortableServer/TypeCode_SArg_Traits.h
+++ b/TAO/tao/PortableServer/TypeCode_SArg_Traits.h
@@ -24,7 +24,6 @@
#include "tao/PortableServer/Object_SArgument_T.h"
#include "tao/Pseudo_VarOut_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -56,8 +55,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TYPECODE_SARG_TRAITS_H */
diff --git a/TAO/tao/PortableServer/UB_String_SArgument_T.cpp b/TAO/tao/PortableServer/UB_String_SArgument_T.cpp
index 7f8db0408f5..c5d7730469f 100644
--- a/TAO/tao/PortableServer/UB_String_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/UB_String_SArgument_T.cpp
@@ -9,7 +9,6 @@
#include "tao/PortableServer/UB_String_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S, typename S_var>
CORBA::Boolean
@@ -100,6 +99,4 @@ TAO::Ret_UB_String_SArgument_T<S,S_var>::interceptor_value (
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_UB_STRING_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/UB_String_SArgument_T.h b/TAO/tao/PortableServer/UB_String_SArgument_T.h
index ac1202a2d4f..3d681d3e0d9 100644
--- a/TAO/tao/PortableServer/UB_String_SArgument_T.h
+++ b/TAO/tao/PortableServer/UB_String_SArgument_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -143,8 +141,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/UB_String_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/UB_String_SArgument_T.inl b/TAO/tao/PortableServer/UB_String_SArgument_T.inl
index b60809e056d..daf8637012c 100644
--- a/TAO/tao/PortableServer/UB_String_SArgument_T.inl
+++ b/TAO/tao/PortableServer/UB_String_SArgument_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S, typename S_var>
ACE_INLINE
TAO::In_UB_String_SArgument_T<S,S_var>::In_UB_String_SArgument_T (void)
@@ -62,4 +58,3 @@ TAO::Ret_UB_String_SArgument_T<S,S_var>::arg (void)
return this->x_.out ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/UB_String_SArguments.h b/TAO/tao/PortableServer/UB_String_SArguments.h
index e86e7c0ae24..fd3440e5804 100644
--- a/TAO/tao/PortableServer/UB_String_SArguments.h
+++ b/TAO/tao/PortableServer/UB_String_SArguments.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -6,8 +6,7 @@
*
* $Id$
*
- * @author Jeff Parsons
- * @author Carlos O'Ryan
+ * @authors Jeff Parsons and Carlos O'Ryan
*/
//=============================================================================
@@ -25,8 +24,6 @@
#include "tao/PortableServer/UB_String_SArgument_T.h"
#include "tao/PortableServer/SArg_Traits_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -52,8 +49,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UB_STRING_SARGUMENTS_H */
diff --git a/TAO/tao/PortableServer/Upcall_Command.cpp b/TAO/tao/PortableServer/Upcall_Command.cpp
index dd6b7d8e85f..ebfa73dac9b 100644
--- a/TAO/tao/PortableServer/Upcall_Command.cpp
+++ b/TAO/tao/PortableServer/Upcall_Command.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/PortableServer/Upcall_Command.h"
+#include "Upcall_Command.h"
ACE_RCSID (PortableServer,
@@ -8,10 +8,6 @@ ACE_RCSID (PortableServer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Upcall_Command::~Upcall_Command (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Upcall_Command.h b/TAO/tao/PortableServer/Upcall_Command.h
index 40c216457f7..700ad64090c 100644
--- a/TAO/tao/PortableServer/Upcall_Command.h
+++ b/TAO/tao/PortableServer/Upcall_Command.h
@@ -16,15 +16,12 @@
#include /**/ "ace/pre.h"
#include "tao/PortableServer/portableserver_export.h"
+#include "ace/CORBA_macros.h"
#ifndef ACE_LACKS_PRAGMA_ONCE
# pragma once
#endif /* !ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-#include "ace/CORBA_macros.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -60,7 +57,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Upcall_Wrapper.cpp b/TAO/tao/PortableServer/Upcall_Wrapper.cpp
index 352332e6cd0..dde1cedfad6 100644
--- a/TAO/tao/PortableServer/Upcall_Wrapper.cpp
+++ b/TAO/tao/PortableServer/Upcall_Wrapper.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/PortableServer/Upcall_Wrapper.h"
-#include "tao/PortableServer/Upcall_Command.h"
+#include "Upcall_Wrapper.h"
+#include "Upcall_Command.h"
#if TAO_HAS_INTERCEPTORS == 1
# include "tao/ServerRequestInterceptor_Adapter.h"
@@ -14,14 +14,12 @@
#include "tao/TAO_Server_Request.h"
#include "tao/CDR.h"
#include "tao/Argument.h"
-#include "tao/operation_details.h"
#include "ace/Log_Msg.h"
ACE_RCSID (PortableServer,
Upcall_Wrapper,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
void
TAO::Upcall_Wrapper::upcall (TAO_ServerRequest & server_request,
@@ -49,32 +47,6 @@ TAO::Upcall_Wrapper::upcall (TAO_ServerRequest & server_request,
#if TAO_HAS_INTERCEPTORS == 1
- // Make sure that, for the collocated case, we use the client-side
- // arguments. For the non-collocated case, we will use the server-side
- // arguments since they got set up in our pre_upcall() method. Note that
- // our pre_upcall() method doesn't get invoked in the collocated case,
- // and is the reason why we need to provide the client-side args instead
- // of the (never set or initialized) server-side args.
- //
- // Before the following logic was added, the
- // $TAO_ROOT/tests/Portable_Interceptors/Collocated/run_test.pl
- // showed that the server-side request interceptor was getting bogus
- // values when it took a look at the request arguments. Some
- // additional testing revealed that this only occurred in the
- // collocated request case.
-
- // By default, we assume that we will use the server-side args.
- TAO::Argument * const * the_args = args;
- size_t the_nargs = nargs;
-
- if (server_request.collocated())
- {
- // It is a collocated request so we need to use the client-side
- // args instead.
- the_args = server_request.operation_details()->args();
- the_nargs = server_request.operation_details()->args_num();
- }
-
TAO::ServerRequestInterceptor_Adapter *interceptor_adapter =
server_request.orb_core ()->serverrequestinterceptor_adapter ();
@@ -85,8 +57,8 @@ TAO::Upcall_Wrapper::upcall (TAO_ServerRequest & server_request,
{
// Invoke intermediate server side interception points.
interceptor_adapter->receive_request (server_request,
- the_args,
- the_nargs,
+ args,
+ nargs,
servant_upcall,
exceptions,
nexceptions
@@ -140,8 +112,8 @@ TAO::Upcall_Wrapper::upcall (TAO_ServerRequest & server_request,
// No location forward by interceptors and successful upcall.
server_request.reply_status (PortableInterceptor::SUCCESSFUL);
interceptor_adapter->send_reply (server_request,
- the_args,
- the_nargs,
+ args,
+ nargs,
servant_upcall,
exceptions,
nexceptions
@@ -164,8 +136,8 @@ TAO::Upcall_Wrapper::upcall (TAO_ServerRequest & server_request,
if (interceptor_adapter != 0)
{
interceptor_adapter->send_exception (server_request,
- the_args,
- the_nargs,
+ args,
+ nargs,
servant_upcall,
exceptions,
nexceptions
@@ -200,8 +172,8 @@ TAO::Upcall_Wrapper::upcall (TAO_ServerRequest & server_request,
if (interceptor_adapter != 0)
{
interceptor_adapter->send_exception (server_request,
- the_args,
- the_nargs,
+ args,
+ nargs,
servant_upcall,
exceptions,
nexceptions
@@ -294,5 +266,3 @@ TAO::Upcall_Wrapper::post_upcall (TAO_OutputCDR & cdr,
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Upcall_Wrapper.h b/TAO/tao/PortableServer/Upcall_Wrapper.h
index f0ba3f1c7e0..c6d62419310 100644
--- a/TAO/tao/PortableServer/Upcall_Wrapper.h
+++ b/TAO/tao/PortableServer/Upcall_Wrapper.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/PortableServer/portableserver_export.h"
+#include "portableserver_export.h"
#ifndef ACE_LACKS_PRAGMA_ONCE
# pragma once
@@ -28,8 +28,6 @@
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ServantBase;
class TAO_ServerRequest;
class TAO_InputCDR;
@@ -124,7 +122,6 @@ namespace TAO
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/PortableServer/Var_Array_SArgument_T.cpp b/TAO/tao/PortableServer/Var_Array_SArgument_T.cpp
index 06a9e5014a4..b7009ed3baa 100644
--- a/TAO/tao/PortableServer/Var_Array_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Var_Array_SArgument_T.cpp
@@ -9,7 +9,6 @@
#include "tao/PortableServer/Var_Array_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S,
typename S_slice,
@@ -161,6 +160,4 @@ TAO::Ret_Var_Array_SArgument_T<S_slice,
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_VAR_ARRAY_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/Var_Array_SArgument_T.h b/TAO/tao/PortableServer/Var_Array_SArgument_T.h
index db7835de063..ab4418314e6 100644
--- a/TAO/tao/PortableServer/Var_Array_SArgument_T.h
+++ b/TAO/tao/PortableServer/Var_Array_SArgument_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -173,8 +171,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Var_Array_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Var_Array_SArgument_T.inl b/TAO/tao/PortableServer/Var_Array_SArgument_T.inl
index bbc5dd80950..30674cca189 100644
--- a/TAO/tao/PortableServer/Var_Array_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Var_Array_SArgument_T.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename S,
typename S_slice,
@@ -116,4 +115,3 @@ TAO::Ret_Var_Array_SArgument_T<S_slice,
return this->x_.out ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/Var_Size_SArgument_T.cpp b/TAO/tao/PortableServer/Var_Size_SArgument_T.cpp
index 33c151f6bb9..64b6229bd10 100644
--- a/TAO/tao/PortableServer/Var_Size_SArgument_T.cpp
+++ b/TAO/tao/PortableServer/Var_Size_SArgument_T.cpp
@@ -10,8 +10,6 @@
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename Insert_Policy>
CORBA::Boolean
@@ -112,6 +110,4 @@ TAO::Ret_Var_Size_SArgument_T<S,S_var,Insert_Policy>::interceptor_value (
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_VAR_SIZE_SARGUMENT_T_CPP */
diff --git a/TAO/tao/PortableServer/Var_Size_SArgument_T.h b/TAO/tao/PortableServer/Var_Size_SArgument_T.h
index 99046ca2655..14585cc096a 100644
--- a/TAO/tao/PortableServer/Var_Size_SArgument_T.h
+++ b/TAO/tao/PortableServer/Var_Size_SArgument_T.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -151,8 +149,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/PortableServer/Var_Size_SArgument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/PortableServer/Var_Size_SArgument_T.inl b/TAO/tao/PortableServer/Var_Size_SArgument_T.inl
index 11d13f2e9e2..7c516b117ec 100644
--- a/TAO/tao/PortableServer/Var_Size_SArgument_T.inl
+++ b/TAO/tao/PortableServer/Var_Size_SArgument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename Insert_Policy>
S const &
@@ -68,4 +66,3 @@ TAO::Ret_Var_Size_SArgument_T<S,S_var,Insert_Policy>::arg (void)
return this->x_.out ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/PortableServer/get_arg.h b/TAO/tao/PortableServer/get_arg.h
index 38c21f200c9..bf7a2fc892f 100644
--- a/TAO/tao/PortableServer/get_arg.h
+++ b/TAO/tao/PortableServer/get_arg.h
@@ -31,7 +31,6 @@
#include "tao/operation_details.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -80,7 +79,7 @@ namespace TAO
size_t i)
{
return
- (details != 0 && details->args () != 0)
+ details
? static_cast<typename TAO::Arg_Traits<T>::in_arg_val *> (
details->args ()[i])->arg ()
: static_cast<typename TAO::SArg_Traits<T>::in_arg_val *> (
@@ -136,8 +135,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_GET_ARG_H*/
diff --git a/TAO/tao/PortableServer/poa_macros.h b/TAO/tao/PortableServer/poa_macros.h
index 4ef9552bfd4..ca9e01b11d8 100644
--- a/TAO/tao/PortableServer/poa_macros.h
+++ b/TAO/tao/PortableServer/poa_macros.h
@@ -1,14 +1,10 @@
-// -*- C++ -*-
-
// $Id$
#ifndef TAO_POA_MACROS_H
#define TAO_POA_MACROS_H
-
#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
#include "ace/CORBA_macros.h"
+#include "tao/orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -39,5 +35,4 @@
ACE_CHECK_RETURN (RETURN)
#include /**/ "ace/post.h"
-
#endif /* TAO_POA_MACROS_H */
diff --git a/TAO/tao/Principal.cpp b/TAO/tao/Principal.cpp
index f7fed0a138c..048c289c0e5 100644
--- a/TAO/tao/Principal.cpp
+++ b/TAO/tao/Principal.cpp
@@ -4,8 +4,8 @@
// All Rights Reserved
// ORB: Principal identifier pseudo-objref
-#include "tao/Principal.h"
-#include "tao/CDR.h"
+#include "Principal.h"
+#include "CDR.h"
#if !defined (__ACE_INLINE__)
#include "tao/Principal.i"
@@ -15,9 +15,6 @@ ACE_RCSID (tao,
Principal,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Principal::Principal (void)
: refcount_ (1)
{
@@ -64,4 +61,3 @@ operator>> (TAO_InputCDR & cdr, CORBA::Principal *& x)
return (CORBA::Boolean) cdr.good_bit ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Principal.h b/TAO/tao/Principal.h
index d080b3f1bb7..4010df0a507 100644
--- a/TAO/tao/Principal.h
+++ b/TAO/tao/Principal.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -18,20 +18,16 @@
#define TAO_PRINCIPAL_H
#include /**/ "ace/pre.h"
-
-#include "tao/CORBA_methods.h"
+#include "ace/Thread_Mutex.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/OctetSeqC.h"
-#include "tao/Pseudo_VarOut_T.h"
-
-#include "ace/Thread_Mutex.h"
#include "ace/Atomic_Op.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "OctetSeqC.h"
+#include "Pseudo_VarOut_T.h"
+#include "CORBA_methods.h"
namespace CORBA
{
@@ -104,8 +100,6 @@ operator<< (TAO_OutputCDR &, CORBA::Principal *);
TAO_Export CORBA::Boolean
operator>> (TAO_InputCDR &, CORBA::Principal *&);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Principal.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Principal.i b/TAO/tao/Principal.i
index 5c7ef0d666a..559ddb82db0 100644
--- a/TAO/tao/Principal.i
+++ b/TAO/tao/Principal.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::Boolean
CORBA::is_nil (CORBA::Principal_ptr principal)
@@ -61,4 +59,3 @@ CORBA::Principal::_nil (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Profile.cpp b/TAO/tao/Profile.cpp
index 9879ff26ef4..c6730ac24cb 100644
--- a/TAO/tao/Profile.cpp
+++ b/TAO/tao/Profile.cpp
@@ -16,7 +16,7 @@
#include "ace/os_include/os_ctype.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Profile.i"
+#include "Profile.i"
#endif /* __ACE_INLINE__ */
@@ -26,9 +26,6 @@ ACE_RCSID (tao,
// ****************************************************************
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Profile::TAO_Profile (CORBA::ULong tag,
TAO_ORB_Core *orb_core,
const TAO::ObjectKey &obj_key,
@@ -88,7 +85,7 @@ CORBA::ULong
TAO_Profile::_incr_refcnt (void)
{
ACE_GUARD_RETURN (ACE_Lock, guard, *this->refcount_lock_, 0);
- return ++this->refcount_;
+ return this->refcount_++;
}
CORBA::ULong
@@ -96,7 +93,7 @@ TAO_Profile::_decr_refcnt (void)
{
{
ACE_GUARD_RETURN (ACE_Lock, mon, *this->refcount_lock_, 0);
- --this->refcount_;
+ this->refcount_--;
if (this->refcount_ != 0)
{
@@ -951,5 +948,3 @@ operator>>(TAO_InputCDR& cdr, TAO_opaque& x)
return (CORBA::Boolean) cdr.good_bit ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Profile.h b/TAO/tao/Profile.h
index cc7fd7fea0a..a19068df002 100644
--- a/TAO/tao/Profile.h
+++ b/TAO/tao/Profile.h
@@ -25,12 +25,7 @@
#include "tao/Refcounted_ObjectKey.h"
#include "tao/Service_Callbacks.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_MProfile;
class TAO_Stub;
class TAO_Endpoint;
@@ -249,7 +244,7 @@ protected:
virtual void create_profile_body (TAO_OutputCDR &cdr) const = 0;
/**
- * Helper for decode(). Decodes endpoints from a tagged component.
+ * Helper for <decode>. Decodes endpoints from a tagged component.
* Decode only if RTCORBA is enabled. Furthermore, we may not find
* TAO_TAG_ENDPOINTS component, e.g., if we are talking to nonRT
* version of TAO or some other ORB. This is not an error, and we
@@ -303,9 +298,9 @@ private:
/// i.e. is not a GIOP 1.0 profile.
void verify_profile_version (ACE_ENV_SINGLE_ARG_DECL);
- // Profiles should not be copied or assigned!
- TAO_Profile (const TAO_Profile&);
- void operator= (const TAO_Profile&);
+ // Profiles should not be copied!
+ ACE_UNIMPLEMENTED_FUNC (TAO_Profile (const TAO_Profile&))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Profile&))
//@@ TAO_PROFILE_SPL_PROTECTED_METHODS_ADD_HOOK
@@ -420,10 +415,8 @@ private:
//@@ TAO_PROFILE_SPL_EXTERN_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Profile.i"
+# include "Profile.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Profile.i b/TAO/tao/Profile.i
index 4cbbee30eb3..dde1611c1da 100644
--- a/TAO/tao/Profile.i
+++ b/TAO/tao/Profile.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_Profile::tag (void) const
{
@@ -63,5 +60,3 @@ TAO_Profile::object_key (void) const
{
return this->ref_object_key_->object_key ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Profile_Transport_Resolver.cpp b/TAO/tao/Profile_Transport_Resolver.cpp
index 2fafd42c511..8c88d2a7db0 100644
--- a/TAO/tao/Profile_Transport_Resolver.cpp
+++ b/TAO/tao/Profile_Transport_Resolver.cpp
@@ -1,33 +1,28 @@
// $Id$
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/Profile.h"
-#include "tao/Stub.h"
-#include "tao/Transport.h"
-#include "tao/Invocation_Endpoint_Selectors.h"
-#include "tao/ORB_Core.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Transport_Cache_Manager.h"
-#include "tao/Endpoint_Selector_Factory.h"
-#include "tao/Codeset_Manager.h"
-#include "tao/Connector_Registry.h"
-#include "tao/Transport_Connector.h"
-#include "tao/Endpoint.h"
-#include "tao/SystemException.h"
+#include "Profile_Transport_Resolver.h"
+#include "Profile.h"
+#include "Transport.h"
+#include "Stub.h"
+#include "Invocation_Endpoint_Selectors.h"
+#include "ORB_Core.h"
+#include "Endpoint_Selector_Factory.h"
+#include "Codeset_Manager.h"
+#include "Connector_Registry.h"
+#include "Transport_Connector.h"
+#include "Endpoint.h"
+#include "SystemException.h"
#include "ace/Countdown_Time.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Profile_Transport_Resolver.inl"
+# include "Profile_Transport_Resolver.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (tao,
Profile_Transport_Resolver,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -220,21 +215,4 @@ namespace TAO
ENOMEM),
CORBA::COMPLETED_NO));
}
-
-
- int
- Profile_Transport_Resolver::find_transport (TAO_Transport_Descriptor_Interface *desc)
- {
- TAO::Transport_Cache_Manager &cache =
- this->profile_->orb_core()->lane_resources ().transport_cache();
-
- // the cache increments the reference count on the transport if the
- // find is successful. Find_transport uses negative logic in its return,
- // 0 for success
- return (cache.find_transport(desc,this->transport_) == 0);
- }
-
-
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Profile_Transport_Resolver.h b/TAO/tao/Profile_Transport_Resolver.h
index 5ec4889a76b..0dd849a04a5 100644
--- a/TAO/tao/Profile_Transport_Resolver.h
+++ b/TAO/tao/Profile_Transport_Resolver.h
@@ -25,16 +25,11 @@
#include "tao/SystemException.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Stub;
class TAO_Profile;
class TAO_Transport;
class TAO_Endpoint;
+class ACE_Time_Value;
class TAO_Transport_Descriptor_Interface;
namespace CORBA
@@ -114,13 +109,6 @@ namespace TAO
/// Accessor for the transport reserved for this invocation.
TAO_Transport *transport (void) const;
- /// See if the transport cache has an available transport and
- /// use that one rather than trying to connect via the connector.
- /// Separating this functionality enables the look up of many
- /// endpoints before trying the more time-consuming trip through
- /// the actual connector.
- int find_transport (TAO_Transport_Descriptor_Interface *);
-
/// Accessor to indicate whether we should block while
/// establishing a connection.
bool blocked_connect (void) const;
@@ -193,10 +181,8 @@ namespace TAO
};
} // TAO namespace end
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Profile_Transport_Resolver.inl"
+# include "Profile_Transport_Resolver.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Profile_Transport_Resolver.inl b/TAO/tao/Profile_Transport_Resolver.inl
index 3617d71e3da..2f35fa34c5b 100644
--- a/TAO/tao/Profile_Transport_Resolver.inl
+++ b/TAO/tao/Profile_Transport_Resolver.inl
@@ -1,10 +1,5 @@
// -*- C++ -*-
-//
// $Id$
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE
@@ -13,12 +8,12 @@ namespace TAO
TAO_Stub *stub,
bool block)
: obj_ (p)
- , stub_ (stub)
- , transport_ (0)
- , profile_ (0)
- , inconsistent_policies_ (0)
- , is_released_ (false)
- , blocked_ (block)
+ , stub_ (stub)
+ , transport_ (0)
+ , profile_ (0)
+ , inconsistent_policies_ (0)
+ , is_released_ (false)
+ , blocked_ (block)
{
}
@@ -72,5 +67,3 @@ namespace TAO
return tmp;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Protocol_Factory.cpp b/TAO/tao/Protocol_Factory.cpp
index 7d67c460789..5271761663e 100644
--- a/TAO/tao/Protocol_Factory.cpp
+++ b/TAO/tao/Protocol_Factory.cpp
@@ -1,14 +1,13 @@
// $Id$
-#include "tao/Protocol_Factory.h"
+#include "Protocol_Factory.h"
+#include "ace/Dynamic_Service.h"
ACE_RCSID (tao,
Protocol_Factory,
"$Id$")
-static const char the_prefix[] = "";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "\0";
TAO_Protocol_Factory::TAO_Protocol_Factory (CORBA::ULong tag)
: tag_ (tag)
@@ -53,7 +52,7 @@ TAO_Protocol_Factory::match_prefix (const ACE_CString & /* prefix */)
const char *
TAO_Protocol_Factory::prefix (void) const
{
- return ::the_prefix;
+ return ::prefix_;
}
char
@@ -62,4 +61,3 @@ TAO_Protocol_Factory::options_delimiter (void) const
return '\0';
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Protocol_Factory.h b/TAO/tao/Protocol_Factory.h
index 7e0bcb71b0c..568be711664 100644
--- a/TAO/tao/Protocol_Factory.h
+++ b/TAO/tao/Protocol_Factory.h
@@ -14,19 +14,16 @@
#define TAO_PROTOCOL_FACTORY_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Basic_Types.h"
-
-#include "ace/Service_Object.h"
#include "ace/SStringfwd.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "TAO_Export.h"
+#include "Basic_Types.h"
class TAO_Acceptor;
class TAO_Connector;
@@ -71,14 +68,10 @@ public:
virtual int requires_explicit_endpoint (void) const = 0;
private:
-
/// IOP protocol tag.
- CORBA::ULong const tag_;
-
+ CORBA::ULong tag_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PROTOCOL_FACTORY_H */
diff --git a/TAO/tao/Protocols_Hooks.cpp b/TAO/tao/Protocols_Hooks.cpp
index 444d92846a6..604e01bf55e 100644
--- a/TAO/tao/Protocols_Hooks.cpp
+++ b/TAO/tao/Protocols_Hooks.cpp
@@ -1,14 +1,12 @@
// $Id$
-#include "tao/Protocols_Hooks.h"
+#include "Protocols_Hooks.h"
#include "ace/Dynamic_Service.h"
ACE_RCSID (tao,
Protocols_Hooks,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_IIOP_Protocol_Properties::TAO_IIOP_Protocol_Properties (void)
: send_buffer_size_ (0),
recv_buffer_size_ (0),
@@ -52,8 +50,8 @@ TAO_SCIOP_Protocol_Properties::TAO_SCIOP_Protocol_Properties (void)
{
}
+/// destructor
TAO_Protocols_Hooks::~TAO_Protocols_Hooks (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Protocols_Hooks.h b/TAO/tao/Protocols_Hooks.h
index ddec97f4919..c176aa2bc44 100644
--- a/TAO/tao/Protocols_Hooks.h
+++ b/TAO/tao/Protocols_Hooks.h
@@ -22,14 +22,11 @@
#include "ace/Service_Object.h"
-#include "tao/TAO_Export.h"
-#include "tao/Basic_Types.h"
-#include "tao/IOP_IORC.h"
+#include "TAO_Export.h"
+#include "Basic_Types.h"
+#include "IOP_IORC.h"
#include "ace/SString.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Policy;
@@ -203,8 +200,6 @@ public:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_PROTOCOLS_HOOKS_H */
diff --git a/TAO/tao/Pseudo_VarOut_T.cpp b/TAO/tao/Pseudo_VarOut_T.cpp
index 9d325bfb89a..5d0a9ebc3cd 100644
--- a/TAO/tao/Pseudo_VarOut_T.cpp
+++ b/TAO/tao/Pseudo_VarOut_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_PSEUDO_VAROUT_T_CPP
-#define TAO_PSEUDO_VAROUT_T_CPP
+#ifndef TAO_PSEUDO_VAROUT_T_C
+#define TAO_PSEUDO_VAROUT_T_C
#include "tao/Pseudo_VarOut_T.h"
@@ -9,7 +9,9 @@
#include "tao/Pseudo_VarOut_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Pseudo_VarOut_T,
+ "$Id$")
template <typename T>
TAO_Pseudo_Var_T<T> &
@@ -23,7 +25,4 @@ TAO_Pseudo_Var_T<T>::operator= (const TAO_Pseudo_Var_T<T> & p)
return *this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_PSEUDO_VAROUT_T_CPP */
+#endif /* TAO_PSEUDO_VAROUT_T_C */
diff --git a/TAO/tao/Pseudo_VarOut_T.h b/TAO/tao/Pseudo_VarOut_T.h
index 431e464d079..4d73bba0c55 100644
--- a/TAO/tao/Pseudo_VarOut_T.h
+++ b/TAO/tao/Pseudo_VarOut_T.h
@@ -42,8 +42,6 @@
#include "tao/varbase.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Pseudo_Var_T
*
@@ -127,8 +125,6 @@ private:
TAO_Pseudo_Out_T<T,T_var> & operator= (const T_var &);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Pseudo_VarOut_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Pseudo_VarOut_T.inl b/TAO/tao/Pseudo_VarOut_T.inl
index 8e5867beac6..7baddc74b88 100644
--- a/TAO/tao/Pseudo_VarOut_T.inl
+++ b/TAO/tao/Pseudo_VarOut_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <typename T>
ACE_INLINE
TAO_Pseudo_Var_T<T>::TAO_Pseudo_Var_T (void)
@@ -173,5 +171,3 @@ TAO_Pseudo_Out_T<T,T_var>::operator-> (void)
{
return this->ptr_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/QtResource_Factory.cpp b/TAO/tao/QtResource_Factory.cpp
index ec50933e935..561fffca095 100644
--- a/TAO/tao/QtResource_Factory.cpp
+++ b/TAO/tao/QtResource_Factory.cpp
@@ -1,17 +1,16 @@
//$Id$
-#include "tao/QtResource_Factory.h"
-#include "tao/debug.h"
+#include "QtResource_Factory.h"
+#include "debug.h"
#include "ace/QtReactor.h"
-ACE_RCSID (TAO_QtResource,
+ACE_RCSID( TAO_QtResource,
QtResource_Factory,
"$Id$");
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
+
QtResource_Factory::QtResource_Factory (QApplication *qapp)
: reactor_impl_ (0)
, qapp_ (qapp)
@@ -44,5 +43,3 @@ namespace TAO
return this->reactor_impl_;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/QtResource_Factory.h b/TAO/tao/QtResource_Factory.h
index ba922a44480..83e37e7a3af 100644
--- a/TAO/tao/QtResource_Factory.h
+++ b/TAO/tao/QtResource_Factory.h
@@ -24,10 +24,9 @@
#include "ace/QtReactor.h"
#include "tao/GUIResource_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
+
/**
* @class QtResource_Factory
*
@@ -62,7 +61,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_QTRESOURCE_FACTORY_H */
diff --git a/TAO/tao/QtResource_Loader.cpp b/TAO/tao/QtResource_Loader.cpp
index a735eaa6d87..70fdae3053c 100644
--- a/TAO/tao/QtResource_Loader.cpp
+++ b/TAO/tao/QtResource_Loader.cpp
@@ -1,14 +1,12 @@
//$Id$
-#include "tao/QtResource_Loader.h"
-#include "tao/ORB_Core.h"
-#include "tao/QtResource_Factory.h"
+#include "QtResource_Loader.h"
+#include "ORB_Core.h"
+#include "QtResource_Factory.h"
ACE_RCSID( TAO_QtResource,
QtResource_Loader,
"$Id$");
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
QtResource_Loader::QtResource_Loader (QApplication *qapp)
@@ -25,5 +23,3 @@ namespace TAO
{
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/QtResource_Loader.h b/TAO/tao/QtResource_Loader.h
index 212f2b51795..14a2e6d84b6 100644
--- a/TAO/tao/QtResource_Loader.h
+++ b/TAO/tao/QtResource_Loader.h
@@ -21,12 +21,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include <qapplication.h>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -47,12 +43,10 @@ namespace TAO
class TAO_QtResource_Export QtResource_Loader
{
public:
- QtResource_Loader (QApplication *qapp);
+ QtResource_Loader (QApplication *qapp);
+
virtual ~QtResource_Loader (void);
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_QTRESOURCE_LOADER_H */
diff --git a/TAO/tao/Queued_Message.cpp b/TAO/tao/Queued_Message.cpp
index c7caef37cc0..0839bda6455 100644
--- a/TAO/tao/Queued_Message.cpp
+++ b/TAO/tao/Queued_Message.cpp
@@ -1,14 +1,12 @@
+// -*- C++ -*-
// $Id$
-#include "tao/Queued_Message.h"
+#include "Queued_Message.h"
ACE_RCSID (tao,
Queued_Message,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Queued_Message::TAO_Queued_Message (TAO_ORB_Core *oc,
ACE_Allocator *alloc,
int is_heap_allocated)
@@ -99,5 +97,3 @@ TAO_Queued_Message::push_front (TAO_Queued_Message *&head,
this->prev_ = 0;
head = this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Queued_Message.h b/TAO/tao/Queued_Message.h
index d2b1ec6c888..c078f01d6b5 100644
--- a/TAO/tao/Queued_Message.h
+++ b/TAO/tao/Queued_Message.h
@@ -23,14 +23,8 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
struct iovec;
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Message_Block;
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
/**
@@ -219,8 +213,6 @@ private:
TAO_Queued_Message *prev_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_QUEUED_MESSAGE_H */
diff --git a/TAO/tao/RTCORBA/Continuous_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Continuous_Priority_Mapping.cpp
index de53baf576f..9c548fafaf6 100644
--- a/TAO/tao/RTCORBA/Continuous_Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Continuous_Priority_Mapping.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/RTCORBA/Continuous_Priority_Mapping.h"
+#include "Continuous_Priority_Mapping.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -8,8 +8,6 @@
ACE_RCSID(RTCORBA, Continuous_Priority_Mapping, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Continuous_Priority_Mapping::TAO_Continuous_Priority_Mapping (int policy)
: policy_ (policy)
{
@@ -47,7 +45,7 @@ TAO_Continuous_Priority_Mapping::to_native (RTCORBA::Priority corba_priority,
current_native_priority = next_native_priority;
}
- native_priority = static_cast<RTCORBA::NativePriority> (current_native_priority);
+ native_priority = current_native_priority;
return 1;
#else
@@ -130,6 +128,4 @@ TAO_Continuous_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priori
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h b/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h
index a2a4b976e7a..a227587ae57 100644
--- a/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Continuous_Priority_Mapping.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Continuous_Priority_Mapping.h
@@ -23,10 +21,8 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/rtcorba_export.h"
-#include "tao/RTCORBA/Priority_Mapping.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "rtcorba_export.h"
+#include "Priority_Mapping.h"
/**
* @class TAO_Continuous_Priority_Mapping
@@ -46,6 +42,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* This class was previously called Direct_Priority_Mapping.
*
* \nosubgrouping
+ *
**/
class TAO_RTCORBA_Export TAO_Continuous_Priority_Mapping
: public TAO_Priority_Mapping
@@ -72,8 +69,6 @@ private:
int max_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/Direct_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Direct_Priority_Mapping.cpp
index 124b0bfefa9..e415bde990a 100644
--- a/TAO/tao/RTCORBA/Direct_Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Direct_Priority_Mapping.cpp
@@ -4,15 +4,13 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Direct_Priority_Mapping.h"
+#include "Direct_Priority_Mapping.h"
#include "ace/Sched_Params.h"
ACE_RCSID(RTCORBA,
Direct_Priority_Mapping,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Direct_Priority_Mapping::TAO_Direct_Priority_Mapping (long)
{
}
@@ -37,6 +35,4 @@ TAO_Direct_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority,
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Direct_Priority_Mapping.h b/TAO/tao/RTCORBA/Direct_Priority_Mapping.h
index ceee55ac971..1195b6e4f4d 100644
--- a/TAO/tao/RTCORBA/Direct_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Direct_Priority_Mapping.h
@@ -1,6 +1,4 @@
-// -*- C++ -*-
-
-// =======================================================================
+//=============================================================================
/**
* @file Direct_Priority_Mapping.h
*
@@ -11,7 +9,6 @@
*
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*/
-// =======================================================================
#ifndef TAO_DIRECT_PRIORITY_MAPPING_H
#define TAO_DIRECT_PRIORITY_MAPPING_H
@@ -19,7 +16,7 @@
#include "tao/orbconf.h"
-#include "tao/RTCORBA/Priority_Mapping.h"
+#include "Priority_Mapping.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +24,6 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Direct_Priority_Mapping
*
@@ -39,7 +34,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_RTCORBA_Export TAO_Direct_Priority_Mapping : public TAO_Priority_Mapping
{
public:
-
+ /// Default constructor
TAO_Direct_Priority_Mapping (long);
/// The destructor
@@ -51,9 +46,9 @@ public:
virtual CORBA::Boolean
to_CORBA (RTCORBA::NativePriority native_priority,
RTCORBA::Priority &corba_priority);
-};
-TAO_END_VERSIONED_NAMESPACE_DECL
+private:
+};
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.cpp
index 68d4353dbd8..084c47418b2 100644
--- a/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.cpp
@@ -5,7 +5,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Linear_Network_Priority_Mapping.h"
+#include "Linear_Network_Priority_Mapping.h"
#include "tao/debug.h"
#include "ace/Sched_Params.h"
@@ -39,7 +39,7 @@ ACE_RCSID (RTCORBA,
#define IPDSFIELD_CE_MASK 0x01
#define IPDSFIELD_DSCP_EF 0x2E
-static int const dscp[] =
+static int dscp [] =
{
IPDSFIELD_DSCP_DEFAULT ,
IPDSFIELD_DSCP_CS1 ,
@@ -65,7 +65,7 @@ static int const dscp[] =
};
/*
-static const char * const dscp_char[]=
+static const char *dscp_char[]=
{
"Normal",
"CS1",
@@ -91,8 +91,6 @@ static const char * const dscp_char[]=
};
*/
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Linear_Network_Priority_Mapping::TAO_Linear_Network_Priority_Mapping (long)
{
}
@@ -137,6 +135,4 @@ TAO_Linear_Network_Priority_Mapping::to_CORBA (RTCORBA::NetworkPriority network_
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h b/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h
index 5c8410bf943..34783c3b1c5 100644
--- a/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Linear_Network_Priority_Mapping.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ============================================================================
@@ -24,8 +22,8 @@
#include "tao/orbconf.h"
-#include "tao/RTCORBA/rtcorba_export.h"
-#include "tao/RTCORBA/Network_Priority_Mapping.h"
+#include "rtcorba_export.h"
+#include "Network_Priority_Mapping.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,8 +31,6 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Linear_Network_Priority_Mapping
*
@@ -46,8 +42,8 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_RTCORBA_Export TAO_Linear_Network_Priority_Mapping : public TAO_Network_Priority_Mapping
{
public:
-
- TAO_Linear_Network_Priority_Mapping (long);
+ /// Default constructor
+ TAO_Linear_Network_Priority_Mapping (long policy);
CORBA::Boolean to_network (RTCORBA::Priority corba_priority,
RTCORBA::NetworkPriority &network_priority);
@@ -56,8 +52,6 @@ public:
RTCORBA::Priority &corba_priority);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/Linear_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Linear_Priority_Mapping.cpp
index f6889d5a7c5..c793c7cfa0d 100644
--- a/TAO/tao/RTCORBA/Linear_Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Linear_Priority_Mapping.cpp
@@ -4,7 +4,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Linear_Priority_Mapping.h"
+#include "Linear_Priority_Mapping.h"
#include "tao/debug.h"
#include "ace/Sched_Params.h"
#include "ace/Log_Msg.h"
@@ -13,14 +13,11 @@ ACE_RCSID (RTCORBA,
Linear_Priority_Mapping,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Linear_Priority_Mapping::TAO_Linear_Priority_Mapping (long policy)
: policy_ (policy)
- , min_ (ACE_Sched_Params::priority_min (this->policy_))
- , max_ (ACE_Sched_Params::priority_max (this->policy_))
{
+ this->min_ = ACE_Sched_Params::priority_min (this->policy_);
+ this->max_ = ACE_Sched_Params::priority_max (this->policy_);
}
TAO_Linear_Priority_Mapping::~TAO_Linear_Priority_Mapping (void)
@@ -28,9 +25,8 @@ TAO_Linear_Priority_Mapping::~TAO_Linear_Priority_Mapping (void)
}
CORBA::Boolean
-TAO_Linear_Priority_Mapping::to_native (
- RTCORBA::Priority corba_priority,
- RTCORBA::NativePriority &native_priority)
+TAO_Linear_Priority_Mapping::to_native (RTCORBA::Priority corba_priority,
+ RTCORBA::NativePriority &native_priority)
{
if (corba_priority < RTCORBA::minPriority
// The line below will always be false unless the value of
@@ -60,11 +56,11 @@ TAO_Linear_Priority_Mapping::to_native (
/ (RTCORBA::maxPriority - RTCORBA::minPriority));
// Now, find the value corresponding to this index.
- native_priority = static_cast<RTCORBA::NativePriority> (this->min_);
+ native_priority = this->min_;
for (int i = 2; i <= native_priority_index; ++i)
{
- native_priority = static_cast<RTCORBA::NativePriority>
- (ACE_Sched_Params::next_priority (this->policy_, native_priority));
+ native_priority = ACE_Sched_Params::next_priority (this->policy_,
+ native_priority);
}
return 1;
@@ -114,9 +110,10 @@ TAO_Linear_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority,
int delta = total - 1;
if (delta != 0)
{
- corba_priority = static_cast<RTCORBA::Priority> (RTCORBA::minPriority
- + ((RTCORBA::maxPriority - RTCORBA::minPriority)
- * (native_priority_index - 1) / delta));
+ corba_priority =
+ RTCORBA::minPriority
+ + ((RTCORBA::maxPriority - RTCORBA::minPriority)
+ * (native_priority_index - 1) / delta);
}
else
{
@@ -163,6 +160,4 @@ TAO_Linear_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority,
#endif /* ACE_WIN32 */
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Linear_Priority_Mapping.h b/TAO/tao/RTCORBA/Linear_Priority_Mapping.h
index 164e7f024b7..bee37377c26 100644
--- a/TAO/tao/RTCORBA/Linear_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Linear_Priority_Mapping.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ============================================================================
@@ -25,8 +23,8 @@
#include "tao/orbconf.h"
-#include "tao/RTCORBA/rtcorba_export.h"
-#include "tao/RTCORBA/Priority_Mapping.h"
+#include "rtcorba_export.h"
+#include "Priority_Mapping.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +32,6 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Linear_Priority_Mapping
*
@@ -55,22 +51,22 @@ public:
/// The destructor
virtual ~TAO_Linear_Priority_Mapping (void);
- virtual CORBA::Boolean to_native (RTCORBA::Priority corba_priority,
- RTCORBA::NativePriority &native_priority);
- virtual CORBA::Boolean to_CORBA (RTCORBA::NativePriority native_priority,
- RTCORBA::Priority &corba_priority);
+ virtual CORBA::Boolean
+ to_native (RTCORBA::Priority corba_priority,
+ RTCORBA::NativePriority &native_priority);
+ virtual CORBA::Boolean
+ to_CORBA (RTCORBA::NativePriority native_priority,
+ RTCORBA::Priority &corba_priority);
private:
/// The scheduling policy
long policy_;
// The range
- int const min_;
- int const max_;
+ int min_;
+ int max_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp
index b53c0995b31..2704acc9628 100644
--- a/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Multi_Priority_Mapping.cpp
@@ -1,4 +1,5 @@
// $Id$
+// Multi_Priority_Mapping.cpp,v 1.0
#include "tao/orbconf.h"
@@ -13,22 +14,20 @@ ACE_RCSID (RTCORBA,
Multi_Priority_Mapping,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Multi_Priority_Mapping::TAO_Multi_Priority_Mapping (
- int base_native_priority,
- int base_corba_priority,
- int priority_spacing,
- int priorities_contiguous,
- int policy)
+TAO_Multi_Priority_Mapping::TAO_Multi_Priority_Mapping (int base_native_priority,
+ int base_corba_priority,
+ int priority_spacing,
+ int priorities_contiguous,
+ int policy)
: base_native_priority_ (base_native_priority)
, base_corba_priority_ (base_corba_priority)
, priority_spacing_ (priority_spacing)
, priorities_contiguous_(priorities_contiguous)
, policy_ (policy)
- , min_ (ACE_Sched_Params::priority_min (this->policy_))
- , max_ (ACE_Sched_Params::priority_max (this->policy_))
{
+ this->min_ = ACE_Sched_Params::priority_min (this->policy_);
+ this->max_ = ACE_Sched_Params::priority_max (this->policy_);
+
if ( this->min_ < this->max_ )
{
if (base_native_priority_ < this->min_)
@@ -92,7 +91,7 @@ TAO_Multi_Priority_Mapping::to_native (RTCORBA::Priority corba_priority,
if (corba_priority == base_corba_priority_)
{
// If this is the highest priority endpoint, then just give it the highest priority corba base priority
- native_priority = static_cast<RTCORBA::NativePriority> (base_native_priority_);
+ native_priority = base_native_priority_;
}
else
{
@@ -100,13 +99,11 @@ TAO_Multi_Priority_Mapping::to_native (RTCORBA::Priority corba_priority,
{
if ( this->min_ < this->max_ )
{
- native_priority = static_cast<RTCORBA::NativePriority>
- (((corba_priority - base_corba_priority_) / priority_spacing_) + base_native_priority_);
+ native_priority = ( (corba_priority - base_corba_priority_) / priority_spacing_ ) + base_native_priority_;
}
else
{
- native_priority = static_cast<RTCORBA::NativePriority>
- (((base_corba_priority_ - corba_priority) / priority_spacing_) + base_native_priority_);
+ native_priority = ( (base_corba_priority_ - corba_priority) / priority_spacing_ ) + base_native_priority_;
}
}
else
@@ -131,10 +128,9 @@ TAO_Multi_Priority_Mapping::to_native (RTCORBA::Priority corba_priority,
last_priority = this->base_native_priority_;
for (int current_ndx = 0; current_ndx < priority_ndx; current_ndx++)
{
- native_priority = static_cast<RTCORBA::NativePriority>
- (ACE_Sched_Params::previous_priority (this->policy_,
- last_priority,
- ACE_SCOPE_THREAD));
+ native_priority = ACE_Sched_Params::previous_priority (this->policy_,
+ last_priority,
+ ACE_SCOPE_THREAD);
}
}
}
@@ -163,7 +159,7 @@ TAO_Multi_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority,
if (native_priority == base_native_priority_)
{
// If this is the highest priority endpoint, then just give it the highest priority corba base priority
- corba_priority = static_cast<RTCORBA::Priority> (base_corba_priority_);
+ corba_priority = base_corba_priority_;
}
else
{
@@ -171,13 +167,11 @@ TAO_Multi_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority,
{
if ( this->min_ < this->max_ )
{
- corba_priority = static_cast<RTCORBA::Priority>
- (((native_priority - base_native_priority_) * priority_spacing_) + base_corba_priority_);
+ corba_priority = ( (native_priority - base_native_priority_) * priority_spacing_ ) + base_corba_priority_;
}
else
{
- corba_priority = static_cast<RTCORBA::Priority>
- (((base_native_priority_ - native_priority) * priority_spacing_) + base_corba_priority_);
+ corba_priority = ( (base_native_priority_ - native_priority) * priority_spacing_ ) + base_corba_priority_;
}
}
else
@@ -230,14 +224,11 @@ TAO_Multi_Priority_Mapping::to_CORBA (RTCORBA::NativePriority native_priority,
priority_ndx++;
}
- corba_priority = static_cast<RTCORBA::Priority>
- (base_corba_priority_ - priority_ndx);
+ corba_priority = base_corba_priority_ - priority_ndx;
}
}
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Multi_Priority_Mapping.h b/TAO/tao/RTCORBA/Multi_Priority_Mapping.h
index a3b3b58ec75..6d5b3623dc7 100644
--- a/TAO/tao/RTCORBA/Multi_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Multi_Priority_Mapping.h
@@ -1,6 +1,5 @@
-// -*- C++ -*-
-
// $Id$
+// Multi_Priority_Mapping.h,v 1.0
// ============================================================================
//
@@ -31,8 +30,6 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Multi_Priority_Mapping
*
@@ -44,8 +41,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* ACE_SCHED_FIFO, ACE_SCHED_RR) and the valid range of CORBA
* priorities (0...32767)
*/
-class TAO_RTCORBA_Export TAO_Multi_Priority_Mapping
-: public TAO_Priority_Mapping
+class TAO_RTCORBA_Export TAO_Multi_Priority_Mapping : public TAO_Priority_Mapping
{
public:
/// Default constructor
@@ -86,13 +82,11 @@ private:
/// The scheduling policy
int policy_;
- int const min_;
- int const max_;
+ int min_;
+ int max_;
// The range
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#endif /* TAO_MULTI_PRIORITY_MAPPING_H */
diff --git a/TAO/tao/RTCORBA/Network_Priority_Mapping.cpp b/TAO/tao/RTCORBA/Network_Priority_Mapping.cpp
index b896b6c61d2..cc7eb22da38 100644
--- a/TAO/tao/RTCORBA/Network_Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Network_Priority_Mapping.cpp
@@ -2,7 +2,7 @@
#include "tao/orbconf.h"
-#include "tao/RTCORBA/Network_Priority_Mapping.h"
+#include "Network_Priority_Mapping.h"
ACE_RCSID(RTCORBA,
Network_Priority_Mapping,
@@ -10,12 +10,8 @@ ACE_RCSID(RTCORBA,
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Network_Priority_Mapping::~TAO_Network_Priority_Mapping (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Network_Priority_Mapping.h b/TAO/tao/RTCORBA/Network_Priority_Mapping.h
index 4fa09f454f4..5c847b1f984 100644
--- a/TAO/tao/RTCORBA/Network_Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Network_Priority_Mapping.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -26,13 +25,11 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Network_Priority_Mapping
*
@@ -54,8 +51,6 @@ public:
RTCORBA::Priority &corba_priority) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.cpp b/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.cpp
index 387adcf5677..80380c5d6ad 100644
--- a/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.cpp
+++ b/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.cpp
@@ -1,24 +1,22 @@
// $Id$
-#include "tao/RTCORBA/Network_Priority_Mapping_Manager.h"
+#include "Network_Priority_Mapping_Manager.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#if ! defined (__ACE_INLINE__)
-#include "tao/RTCORBA/Network_Priority_Mapping_Manager.i"
+#include "Network_Priority_Mapping_Manager.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (RTCORBA,
Network_Priority_Mapping_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Network_Priority_Mapping_Manager::~TAO_Network_Priority_Mapping_Manager (
void
)
{
- delete this->mapping_;
+ delete mapping_;
}
TAO_Network_Priority_Mapping_Manager_ptr
@@ -54,8 +52,5 @@ TAO_Network_Priority_Mapping_Manager::_interface_repository_id (void) const
{
return "IDL:Network_Priority_Mapping_Manager:1.0";
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.h b/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.h
index 7237c16ad55..bd9a33202cd 100644
--- a/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.h
+++ b/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.h
@@ -16,7 +16,7 @@
#include /**/ "ace/pre.h"
#include "tao/orbconf.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,11 +24,9 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Network_Priority_Mapping.h"
+#include "Network_Priority_Mapping.h"
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Network_Priority_Mapping_Manager;
class TAO_Network_Priority_Mapping_Manager_var;
typedef TAO_Network_Priority_Mapping_Manager *TAO_Network_Priority_Mapping_Manager_ptr;
@@ -147,10 +145,8 @@ private:
TAO_Network_Priority_Mapping_Manager_ptr &ptr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/RTCORBA/Network_Priority_Mapping_Manager.i"
+#include "Network_Priority_Mapping_Manager.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.i b/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.i
index 919fecdfcab..6a483ec6cd9 100644
--- a/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.i
+++ b/TAO/tao/RTCORBA/Network_Priority_Mapping_Manager.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// Inline operations for class TAO_Network_Priority_Mapping_Manager_var
// *************************************************************
@@ -211,15 +207,14 @@ TAO_Network_Priority_Mapping_Manager::TAO_Network_Priority_Mapping_Manager (RTCO
ACE_INLINE RTCORBA::NetworkPriorityMapping *
TAO_Network_Priority_Mapping_Manager::mapping (void)
{
- return this->mapping_;
+ return mapping_;
}
ACE_INLINE void
TAO_Network_Priority_Mapping_Manager::mapping (RTCORBA::NetworkPriorityMapping *mapping)
{
- delete this->mapping_;
- this->mapping_ = mapping;
+ delete mapping_;
+ mapping_ = mapping;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/Priority_Mapping.cpp b/TAO/tao/RTCORBA/Priority_Mapping.cpp
index ae4f6ebcf3f..99ad2c6bbfd 100644
--- a/TAO/tao/RTCORBA/Priority_Mapping.cpp
+++ b/TAO/tao/RTCORBA/Priority_Mapping.cpp
@@ -4,18 +4,13 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Priority_Mapping.h"
+#include "Priority_Mapping.h"
ACE_RCSID(RTCORBA,
Priority_Mapping,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Priority_Mapping::~TAO_Priority_Mapping (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Priority_Mapping.h b/TAO/tao/RTCORBA/Priority_Mapping.h
index 10425814b01..0e1bcbce46e 100644
--- a/TAO/tao/RTCORBA/Priority_Mapping.h
+++ b/TAO/tao/RTCORBA/Priority_Mapping.h
@@ -27,11 +27,9 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Priority_Mapping
*
@@ -53,8 +51,6 @@ public:
RTCORBA::Priority &corba_priority) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/Priority_Mapping_Manager.cpp b/TAO/tao/RTCORBA/Priority_Mapping_Manager.cpp
index 47f3804489a..11a7d1c9ed3 100644
--- a/TAO/tao/RTCORBA/Priority_Mapping_Manager.cpp
+++ b/TAO/tao/RTCORBA/Priority_Mapping_Manager.cpp
@@ -1,22 +1,20 @@
// $Id$
-#include "tao/RTCORBA/Priority_Mapping_Manager.h"
+#include "Priority_Mapping_Manager.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#if ! defined (__ACE_INLINE__)
-#include "tao/RTCORBA/Priority_Mapping_Manager.i"
+#include "Priority_Mapping_Manager.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID (RTCORBA,
Priority_Mapping_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Priority_Mapping_Manager::~TAO_Priority_Mapping_Manager (void)
{
- delete this->mapping_;
+ delete mapping_;
}
TAO_Priority_Mapping_Manager_ptr
@@ -48,7 +46,5 @@ TAO_Priority_Mapping_Manager::_interface_repository_id (void) const
return "IDL:Priority_Mapping_Manager:1.0";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Priority_Mapping_Manager.h b/TAO/tao/RTCORBA/Priority_Mapping_Manager.h
index e5b63369e51..3b5d06c7808 100644
--- a/TAO/tao/RTCORBA/Priority_Mapping_Manager.h
+++ b/TAO/tao/RTCORBA/Priority_Mapping_Manager.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Priority_Mapping_Manager.h
@@ -16,7 +15,7 @@
#include /**/ "ace/pre.h"
#include "tao/orbconf.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,11 +23,9 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Priority_Mapping.h"
+#include "Priority_Mapping.h"
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Priority_Mapping_Manager;
class TAO_Priority_Mapping_Manager_var;
typedef TAO_Priority_Mapping_Manager *TAO_Priority_Mapping_Manager_ptr;
@@ -142,10 +139,8 @@ private:
TAO_Priority_Mapping_Manager_ptr &ptr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/RTCORBA/Priority_Mapping_Manager.i"
+#include "Priority_Mapping_Manager.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Priority_Mapping_Manager.i b/TAO/tao/RTCORBA/Priority_Mapping_Manager.i
index 4d8fa4007ab..77eb6dec547 100644
--- a/TAO/tao/RTCORBA/Priority_Mapping_Manager.i
+++ b/TAO/tao/RTCORBA/Priority_Mapping_Manager.i
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// Inline operations for class TAO_Priority_Mapping_Manager_var
// *************************************************************
@@ -211,14 +207,14 @@ TAO_Priority_Mapping_Manager::TAO_Priority_Mapping_Manager (RTCORBA::PriorityMap
ACE_INLINE RTCORBA::PriorityMapping *
TAO_Priority_Mapping_Manager::mapping (void)
{
- return this->mapping_;
+ return mapping_;
}
ACE_INLINE void
TAO_Priority_Mapping_Manager::mapping (RTCORBA::PriorityMapping *mapping)
{
- delete this->mapping_;
- this->mapping_ = mapping;
+ delete mapping_;
+ mapping_ = mapping;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/RTCORBA/RTCORBA.cpp b/TAO/tao/RTCORBA/RTCORBA.cpp
index 3f29493da22..f1bf07f576d 100644
--- a/TAO/tao/RTCORBA/RTCORBA.cpp
+++ b/TAO/tao/RTCORBA/RTCORBA.cpp
@@ -1,20 +1,16 @@
// $Id$
-#include "tao/RTCORBA/RTCORBA.h"
+#include "RTCORBA.h"
#if TAO_HAS_CORBA_MESSAGING == 1
-#include "tao/RTCORBA/RT_ORB_Loader.h"
+#include "RT_ORB_Loader.h"
ACE_RCSID (RTCORBA, RTCORBA, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RTCORBA_Initializer::TAO_RTCORBA_Initializer (void)
{
ACE_Service_Config::process_directive (ace_svc_desc_TAO_RT_ORB_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RTCORBA.h b/TAO/tao/RTCORBA/RTCORBA.h
index ead9d8ce329..f996f03c640 100644
--- a/TAO/tao/RTCORBA/RTCORBA.h
+++ b/TAO/tao/RTCORBA/RTCORBA.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
//=============================================================================
@@ -21,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,8 +29,6 @@
#if TAO_HAS_CORBA_MESSAGING == 1
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTCORBA_Export TAO_RTCORBA_Initializer
{
public:
@@ -42,10 +38,8 @@ public:
static TAO_RTCORBA_Initializer TAO_RTCORBA_initializer;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#endif /* TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RTCORBA.pidl b/TAO/tao/RTCORBA/RTCORBA.pidl
index 703ae6c7732..327f4441339 100644
--- a/TAO/tao/RTCORBA/RTCORBA.pidl
+++ b/TAO/tao/RTCORBA/RTCORBA.pidl
@@ -52,9 +52,9 @@
#ifndef _RT_CORBA_IDL_
#define _RT_CORBA_IDL_
-#include "tao/IOP.pidl"
-#include "tao/TimeBase.pidl"
-#include "tao/Policy.pidl"
+#include <IOP.pidl>
+#include <TimeBase.pidl>
+#include <Policy.pidl>
#pragma prefix "omg.org"
diff --git a/TAO/tao/RTCORBA/RTCORBAA.cpp b/TAO/tao/RTCORBA/RTCORBAA.cpp
index 5f9260f6d8e..586a636e497 100644
--- a/TAO/tao/RTCORBA/RTCORBAA.cpp
+++ b/TAO/tao/RTCORBA/RTCORBAA.cpp
@@ -35,7 +35,7 @@
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
#include "tao/AnyTypeCode/Recursive_Type_TypeCode.h"
-#include "tao/RTCORBA/RTCORBA.h"
+#include "RTCORBA.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
@@ -43,8 +43,6 @@
#include "tao/AnyTypeCode/Any_Basic_Impl_T.h"
#include "tao/AnyTypeCode/IOP_IORA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/alias_typecode.cpp:50
@@ -2467,5 +2465,3 @@ CORBA::Boolean operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/RTCORBAC.cpp b/TAO/tao/RTCORBA/RTCORBAC.cpp
index 59f945ff53b..bcf7695da87 100644
--- a/TAO/tao/RTCORBA/RTCORBAC.cpp
+++ b/TAO/tao/RTCORBA/RTCORBAC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/RTCORBA/RTCORBA.h"
+#include "RTCORBA.h"
#include "tao/CDR.h"
#include "tao/Basic_Arguments.h"
#include "tao/Special_Basic_Arguments.h"
@@ -43,8 +43,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -2783,5 +2781,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_RTCORBA_PriorityBands_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/RTCORBAC.h b/TAO/tao/RTCORBA/RTCORBAC.h
index 036bf70b06a..4b2fd379263 100644
--- a/TAO/tao/RTCORBA/RTCORBAC.h
+++ b/TAO/tao/RTCORBA/RTCORBAC.h
@@ -44,8 +44,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTCORBA/rtcorba_export.h"
-#include "tao/RTCORBA/rtcorba_typedefs.h"
+#include "rtcorba_export.h"
+#include "rtcorba_typedefs.h"
#include "tao/ORB.h"
#include "tao/TimeBaseC.h"
#include "tao/SystemException.h"
@@ -78,8 +78,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace RTCORBA
{
@@ -3500,8 +3498,6 @@ TAO_RTCORBA_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RTCORBA_includeC.h b/TAO/tao/RTCORBA/RTCORBA_includeC.h
index 1b7cc8c0f9a..a37e92f1656 100644
--- a/TAO/tao/RTCORBA/RTCORBA_includeC.h
+++ b/TAO/tao/RTCORBA/RTCORBA_includeC.h
@@ -40,7 +40,7 @@
#include "tao/CDR.h"
#include "tao/Environment.h"
-#include "tao/RTCORBA/RTCORBA.h"
+#include "RTCORBA.h"
#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
@@ -66,8 +66,6 @@
// TAO_IDL - Generated from
// .\be\be_visitor_traits.cpp:50
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
@@ -76,8 +74,6 @@ namespace TAO
// TAO_IDL - Generated from
// w:\ace_wrappers\tao\tao_idl\be\be_visitor_root/cdr_op.cpp:48
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifndef __ACE_INLINE__
// TAO_IDL - Generated from
diff --git a/TAO/tao/RTCORBA/RT_Current.cpp b/TAO/tao/RTCORBA/RT_Current.cpp
index 5c9170dd78e..9bc7068f28c 100644
--- a/TAO/tao/RTCORBA/RT_Current.cpp
+++ b/TAO/tao/RTCORBA/RT_Current.cpp
@@ -2,11 +2,11 @@
// $Id$
//
-#include "tao/RTCORBA/RT_Current.h"
+#include "RT_Current.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Priority_Mapping.h"
+#include "Priority_Mapping.h"
#include "tao/Stub.h"
#include "tao/ORB_Core.h"
@@ -18,8 +18,6 @@ ACE_RCSID (RTCORBA,
RT_Current,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Current::TAO_RT_Current (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core)
{
@@ -67,6 +65,4 @@ TAO_RT_Current::the_priority (RTCORBA::Priority the_priority
ACE_THROW (CORBA::DATA_CONVERSION (1, CORBA::COMPLETED_NO));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_Current.h b/TAO/tao/RTCORBA/RT_Current.h
index 58b994d0bee..eed5b7e39f9 100644
--- a/TAO/tao/RTCORBA/RT_Current.h
+++ b/TAO/tao/RTCORBA/RT_Current.h
@@ -20,7 +20,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#include "tao/LocalObject.h"
@@ -34,8 +34,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Current
*
@@ -44,8 +42,8 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* Allows setting/getting the priority of the current thread.
*/
class TAO_RTCORBA_Export TAO_RT_Current
- : public RTCORBA::Current
- , public TAO_Local_RefCounted_Object
+ : public RTCORBA::Current,
+ public TAO_Local_RefCounted_Object
{
public:
@@ -68,12 +66,10 @@ protected:
private:
/// ORB Core that owns us.
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core *orb_core_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp b/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp
index a74d7ea7277..874795e7a10 100644
--- a/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp
+++ b/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp
@@ -1,10 +1,10 @@
-#include "tao/RTCORBA/RT_Endpoint_Selector_Factory.h"
+#include "RT_Endpoint_Selector_Factory.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h"
-#include "tao/RTCORBA/RT_Endpoint_Utils.h"
-#include "tao/RTCORBA/RT_Stub.h"
+#include "RT_Invocation_Endpoint_Selectors.h"
+#include "RT_Endpoint_Utils.h"
+#include "RT_Stub.h"
#include "tao/Protocols_Hooks.h"
@@ -18,8 +18,6 @@ ACE_RCSID (RTCORBA,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
RT_Endpoint_Selector_Factory::RT_Endpoint_Selector_Factory (void)
{
ACE_NEW (this->rt_invocation_endpoint_selector_,
@@ -37,8 +35,6 @@ RT_Endpoint_Selector_Factory::get_selector (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
return this->rt_invocation_endpoint_selector_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (RT_Endpoint_Selector_Factory,
diff --git a/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.h b/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.h
index f361563ad22..b6b5eca2d76 100644
--- a/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.h
+++ b/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -18,7 +18,7 @@
#define RT_ENDPOINT_SELECTOR_FACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -31,8 +31,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RT_Invocation_Endpoint_Selector;
// ****************************************************************
@@ -67,8 +65,6 @@ private:
TAO_RT_Invocation_Endpoint_Selector *rt_invocation_endpoint_selector_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, RT_Endpoint_Selector_Factory)
ACE_FACTORY_DECLARE (TAO_RTCORBA, RT_Endpoint_Selector_Factory)
diff --git a/TAO/tao/RTCORBA/RT_Endpoint_Utils.cpp b/TAO/tao/RTCORBA/RT_Endpoint_Utils.cpp
index 841c73bc6dc..51be9a65283 100644
--- a/TAO/tao/RTCORBA/RT_Endpoint_Utils.cpp
+++ b/TAO/tao/RTCORBA/RT_Endpoint_Utils.cpp
@@ -1,12 +1,12 @@
-#include "tao/RTCORBA/RT_Endpoint_Utils.h"
+#include "RT_Endpoint_Utils.h"
#include "tao/Profile_Transport_Resolver.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Endpoint_Selector_Factory.h"
-#include "tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h"
+#include "RT_Endpoint_Selector_Factory.h"
+#include "RT_Invocation_Endpoint_Selectors.h"
-#include "tao/RTCORBA/RT_Stub.h"
+#include "RT_Stub.h"
ACE_RCSID (RTCORBA,
RT_Endpoint_Utils,
@@ -14,8 +14,6 @@ ACE_RCSID (RTCORBA,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy *
TAO_RT_Endpoint_Utils::policy (TAO_Cached_Policy_Type type,
TAO::Profile_Transport_Resolver &r
@@ -51,6 +49,4 @@ TAO_RT_Endpoint_Utils::policy (TAO_Cached_Policy_Type type,
return policy;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_Endpoint_Utils.h b/TAO/tao/RTCORBA/RT_Endpoint_Utils.h
index 649c3ca2896..26dd559c5c7 100644
--- a/TAO/tao/RTCORBA/RT_Endpoint_Utils.h
+++ b/TAO/tao/RTCORBA/RT_Endpoint_Utils.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -19,7 +19,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +27,6 @@
#include "tao/Policy_ForwardC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class Profile_Transport_Resolver;
@@ -53,8 +51,6 @@ private:
TAO_RT_Endpoint_Utils ();
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* RT_ENDPOINT_UTILS_H */
diff --git a/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.cpp b/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.cpp
index 6e712fe4fc9..eff4b4a1520 100644
--- a/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.cpp
+++ b/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.cpp
@@ -1,13 +1,13 @@
-#include "tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h"
+#include "RT_Invocation_Endpoint_Selectors.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Policy_i.h"
-#include "tao/RTCORBA/RT_Stub.h"
-#include "tao/RTCORBA/RT_Transport_Descriptor.h"
-#include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
-#include "tao/RTCORBA/RT_Endpoint_Utils.h"
-#include "tao/RTCORBA/RT_Protocols_Hooks.h"
+#include "RT_Policy_i.h"
+#include "RT_Stub.h"
+#include "RT_Transport_Descriptor.h"
+#include "RT_Transport_Descriptor_Property.h"
+#include "RT_Endpoint_Utils.h"
+#include "RT_Protocols_Hooks.h"
#include "tao/Stub.h"
#include "tao/ORB_Core.h"
#include "tao/Profile.h"
@@ -22,8 +22,6 @@ ACE_RCSID (RTCORBA,
RT_Invocation_Endpoint_Selectors,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_RT_Invocation_Endpoint_Selector::select_endpoint (
TAO::Profile_Transport_Resolver *r,
@@ -375,6 +373,4 @@ TAO_RT_Invocation_Endpoint_Selector::endpoint_from_profile (
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h b/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h
index 4c6d75e022e..539cc86f44b 100644
--- a/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h
+++ b/TAO/tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -20,7 +20,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,12 +30,10 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RTCORBA.h"
+#include "RTCORBA.h"
#include "tao/Invocation_Endpoint_Selectors.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Invocation_Endpoint_Selector
*
@@ -45,8 +43,8 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* private connection policy.
*
**/
-class TAO_RTCORBA_Export TAO_RT_Invocation_Endpoint_Selector
- : public TAO_Invocation_Endpoint_Selector
+class TAO_RTCORBA_Export TAO_RT_Invocation_Endpoint_Selector :
+ public TAO_Invocation_Endpoint_Selector
{
public:
@@ -68,8 +66,6 @@ protected:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/RT_Mutex.cpp b/TAO/tao/RTCORBA/RT_Mutex.cpp
index 701505481ee..43dd460981a 100644
--- a/TAO/tao/RTCORBA/RT_Mutex.cpp
+++ b/TAO/tao/RTCORBA/RT_Mutex.cpp
@@ -1,16 +1,18 @@
// $Id$
-#include "tao/RTCORBA/RT_Mutex.h"
+#include "RT_Mutex.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_ORB.h"
+#include "RT_ORB.h"
#include "ace/OS_NS_sys_time.h"
ACE_RCSID(RTCORBA,
RT_Mutex,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_RT_Mutex::TAO_RT_Mutex (void)
+{
+}
TAO_RT_Mutex::~TAO_RT_Mutex (void)
{
@@ -76,7 +78,7 @@ TAO_RT_Mutex::name (void) const
return 0;
}
-///////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
#if (TAO_HAS_NAMED_RT_MUTEXES == 1)
TAO_Named_RT_Mutex::TAO_Named_RT_Mutex (const char *name)
: name_ (name)
@@ -90,8 +92,6 @@ TAO_Named_RT_Mutex::name (void) const
}
#endif /* TAO_HAS_NAMED_RT_MUTEXES == 1 */
-///////////////////////////////////////////////////////////////////////////////
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+////////////////////////////////////////////////////////////////////////////////
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_Mutex.h b/TAO/tao/RTCORBA/RT_Mutex.h
index 2381712964f..c12409e8cd0 100644
--- a/TAO/tao/RTCORBA/RT_Mutex.h
+++ b/TAO/tao/RTCORBA/RT_Mutex.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file RT_Mutex.h
@@ -24,7 +23,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#include "tao/LocalObject.h"
@@ -38,8 +37,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Mutex
*
@@ -56,6 +53,11 @@ class TAO_RTCORBA_Export TAO_RT_Mutex
public TAO_Local_RefCounted_Object
{
public:
+ /// Constructor.
+ TAO_RT_Mutex (void);
+
+ /// Destructor.
+ virtual ~TAO_RT_Mutex (void);
/// Acquire the lock.
virtual void lock (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
@@ -79,11 +81,6 @@ public:
virtual const char *name (void) const;
protected:
-
- /// Destructor.
- virtual ~TAO_RT_Mutex (void);
-
-protected:
/// Synchronization lock.
TAO_SYNCH_MUTEX mu_;
};
@@ -111,8 +108,6 @@ protected:
};
#endif /* TAO_HAS_NAMED_RT_MUTEXES == 1 */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RT_ORB.cpp b/TAO/tao/RTCORBA/RT_ORB.cpp
index 7f6e2cc028b..6d996e8e171 100644
--- a/TAO/tao/RTCORBA/RT_ORB.cpp
+++ b/TAO/tao/RTCORBA/RT_ORB.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/RTCORBA/RT_ORB.h"
+#include "RT_ORB.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Policy_i.h"
-#include "tao/RTCORBA/RT_Mutex.h"
-#include "tao/RTCORBA/Priority_Mapping_Manager.h"
+#include "RT_Policy_i.h"
+#include "RT_Mutex.h"
+#include "Priority_Mapping_Manager.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
#include "tao/RTCORBA/Thread_Pool.h"
@@ -17,20 +17,16 @@ ACE_RCSID(RTCORBA,
RT_ORB,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_RT_ORB::TAO_RT_ORB (TAO_ORB_Core *orb_core,
- ACE_Time_Value const &dynamic_thread_idle_timeout)
+TAO_RT_ORB::TAO_RT_ORB (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core),
mutex_mgr_ (),
- tp_manager_ (0),
- dynamic_thread_idle_timeout_ (dynamic_thread_idle_timeout)
+ tp_manager_ (0)
{
TAO_Thread_Lane_Resources_Manager *thread_lane_resources_manager =
&this->orb_core_->thread_lane_resources_manager ();
TAO_RT_Thread_Lane_Resources_Manager *rt_thread_lane_resources_manager =
- dynamic_cast <TAO_RT_Thread_Lane_Resources_Manager *> (thread_lane_resources_manager);
+ (TAO_RT_Thread_Lane_Resources_Manager *) thread_lane_resources_manager;
this->tp_manager_ =
&rt_thread_lane_resources_manager->tp_manager ();
@@ -370,8 +366,7 @@ TAO_RT_ORB::create_threadpool (CORBA::ULong stacksize,
default_priority,
allow_request_buffering,
max_buffered_requests,
- max_request_buffer_size,
- this->dynamic_thread_idle_timeout_
+ max_request_buffer_size
ACE_ENV_ARG_PARAMETER);
}
@@ -390,8 +385,7 @@ TAO_RT_ORB::create_threadpool_with_lanes (CORBA::ULong stacksize,
allow_borrowing,
allow_request_buffering,
max_buffered_requests,
- max_request_buffer_size,
- this->dynamic_thread_idle_timeout_
+ max_request_buffer_size
ACE_ENV_ARG_PARAMETER);
}
@@ -552,8 +546,6 @@ TAO_RT_ORB::modify_thread_scheduling_policy (CORBA::ORB_ptr orb)
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-///////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_ORB.h b/TAO/tao/RTCORBA/RT_ORB.h
index 612108d048d..9b5daea2202 100644
--- a/TAO/tao/RTCORBA/RT_ORB.h
+++ b/TAO/tao/RTCORBA/RT_ORB.h
@@ -22,7 +22,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#include "tao/LocalObject.h"
@@ -37,8 +37,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward reference for TAO_Named_RT_Mutex_Manager
class TAO_RT_Mutex;
class TAO_Thread_Pool_Manager;
@@ -107,9 +105,8 @@ class TAO_RTCORBA_Export TAO_RT_ORB
public TAO_Local_RefCounted_Object
{
public:
-
/// Constructor.
- TAO_RT_ORB (TAO_ORB_Core *orb_core, ACE_Time_Value const &dynamic_thread_idle_timeout);
+ TAO_RT_ORB (TAO_ORB_Core *orb_core);
/**
* Create a new mutex. Mutexes returned by this method
@@ -305,28 +302,20 @@ public:
static int modify_thread_scheduling_policy (CORBA::ORB_ptr orb);
protected:
-
/// Protected destructor to enforce proper memory management of this
/// reference counted object.
virtual ~TAO_RT_ORB (void);
-protected:
-
/// Reference to our creating ORB Core.
- TAO_ORB_Core * const orb_core_;
+ TAO_ORB_Core *orb_core_;
/// mutex_mgr_ manages the names associated with named mutexes.
TAO_Named_RT_Mutex_Manager mutex_mgr_;
/// Thread Pool Manager
TAO_Thread_Pool_Manager *tp_manager_;
-
- /// Dynamic thread idle timeout
- ACE_Time_Value const dynamic_thread_idle_timeout_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RT_ORBInitializer.cpp b/TAO/tao/RTCORBA/RT_ORBInitializer.cpp
index 464c35660aa..58c599a21ad 100644
--- a/TAO/tao/RTCORBA/RT_ORBInitializer.cpp
+++ b/TAO/tao/RTCORBA/RT_ORBInitializer.cpp
@@ -1,4 +1,4 @@
-#include "tao/RTCORBA/RT_ORBInitializer.h"
+#include "RT_ORBInitializer.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -11,21 +11,21 @@ ACE_RCSID (RTCORBA,
#include "tao/RTCORBA/RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RT_Policy_i.h"
-#include "tao/RTCORBA/RT_PolicyFactory.h"
-#include "tao/RTCORBA/RT_Protocols_Hooks.h"
-#include "tao/RTCORBA/Priority_Mapping_Manager.h"
-#include "tao/RTCORBA/Network_Priority_Mapping_Manager.h"
-#include "tao/RTCORBA/RT_ORB_Loader.h"
-#include "tao/RTCORBA/RT_Stub_Factory.h"
-#include "tao/RTCORBA/RT_Endpoint_Selector_Factory.h"
-#include "tao/RTCORBA/Continuous_Priority_Mapping.h"
-#include "tao/RTCORBA/Linear_Priority_Mapping.h"
-#include "tao/RTCORBA/Direct_Priority_Mapping.h"
-#include "tao/RTCORBA/Linear_Network_Priority_Mapping.h"
-#include "tao/RTCORBA/RT_ORB.h"
-#include "tao/RTCORBA/RT_Current.h"
-#include "tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h"
+#include "RT_Policy_i.h"
+#include "RT_PolicyFactory.h"
+#include "RT_Protocols_Hooks.h"
+#include "Priority_Mapping_Manager.h"
+#include "Network_Priority_Mapping_Manager.h"
+#include "RT_ORB_Loader.h"
+#include "RT_Stub_Factory.h"
+#include "RT_Endpoint_Selector_Factory.h"
+#include "Continuous_Priority_Mapping.h"
+#include "Linear_Priority_Mapping.h"
+#include "Direct_Priority_Mapping.h"
+#include "Linear_Network_Priority_Mapping.h"
+#include "RT_ORB.h"
+#include "RT_Current.h"
+#include "RT_Thread_Lane_Resources_Manager.h"
#include "tao/Exception.h"
#include "tao/ORB_Core.h"
@@ -36,28 +36,24 @@ ACE_RCSID (RTCORBA,
#include "ace/Svc_Conf.h"
#include "ace/Sched_Params.h"
-static const char rt_poa_factory_name[] = "TAO_RT_Object_Adapter_Factory";
-static const ACE_TCHAR rt_poa_factory_directive[] =
+static const char *rt_poa_factory_name = "TAO_RT_Object_Adapter_Factory";
+static const ACE_TCHAR *rt_poa_factory_directive =
ACE_DYNAMIC_SERVICE_DIRECTIVE(
"TAO_RT_Object_Adapter_Factory",
"TAO_RTPortableServer",
"_make_TAO_RT_Object_Adapter_Factory",
"");
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_ORBInitializer::TAO_RT_ORBInitializer (int priority_mapping_type,
int network_priority_mapping_type,
int ace_sched_policy,
long sched_policy,
- long scope_policy,
- ACE_Time_Value const &dynamic_thread_idle_timeout)
+ long scope_policy)
: priority_mapping_type_ (priority_mapping_type),
network_priority_mapping_type_ (network_priority_mapping_type),
ace_sched_policy_ (ace_sched_policy),
sched_policy_ (sched_policy),
- scope_policy_ (scope_policy),
- dynamic_thread_idle_timeout_ (dynamic_thread_idle_timeout)
+ scope_policy_ (scope_policy)
{
}
@@ -89,7 +85,7 @@ TAO_RT_ORBInitializer::pre_init (
// If the application resolves the root POA, make sure we load the RT POA.
TAO_ORB_Core::set_poa_factory (rt_poa_factory_name,
- ACE_TEXT_ALWAYS_CHAR (rt_poa_factory_directive));
+ ACE_TEXT_TO_CHAR_IN (rt_poa_factory_directive));
// Create the initial priority mapping instance.
TAO_Priority_Mapping *pm = 0;
@@ -122,6 +118,7 @@ TAO_RT_ORBInitializer::pre_init (
CORBA::COMPLETED_NO));
ACE_CHECK;
+
TAO_Priority_Mapping_Manager_var safe_manager = manager;
info->register_initial_reference ("PriorityMappingManager",
@@ -187,8 +184,7 @@ TAO_RT_ORBInitializer::pre_init (
// Create the RT_ORB.
CORBA::Object_ptr rt_orb = CORBA::Object::_nil ();
ACE_NEW_THROW_EX (rt_orb,
- TAO_RT_ORB (tao_info->orb_core (),
- dynamic_thread_idle_timeout_),
+ TAO_RT_ORB (tao_info->orb_core ()),
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
TAO::VMCID,
@@ -261,7 +257,7 @@ TAO_RT_ORBInitializer::register_policy_factories (
// Bind the same policy factory to all RTCORBA related policy
// types since a single policy factory is used to create each of
// the different types of RTCORBA policies.
- static CORBA::PolicyType const type[] = {
+ CORBA::PolicyType type[] = {
RTCORBA::PRIORITY_MODEL_POLICY_TYPE,
RTCORBA::THREADPOOL_POLICY_TYPE,
RTCORBA::SERVER_PROTOCOL_POLICY_TYPE,
@@ -273,7 +269,7 @@ TAO_RT_ORBInitializer::register_policy_factories (
const CORBA::PolicyType *end =
type + sizeof (type) / sizeof (type[0]);
- for (CORBA::PolicyType const * i = type;
+ for (CORBA::PolicyType *i = type;
i != end;
++i)
{
@@ -307,6 +303,4 @@ TAO_RT_ORBInitializer::register_policy_factories (
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_ORBInitializer.h b/TAO/tao/RTCORBA/RT_ORBInitializer.h
index c2f04c46c04..be73cbd49d0 100644
--- a/TAO/tao/RTCORBA/RT_ORBInitializer.h
+++ b/TAO/tao/RTCORBA/RT_ORBInitializer.h
@@ -20,7 +20,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -37,12 +37,10 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// RTCORBA ORB initializer.
-class TAO_RT_ORBInitializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
+class TAO_RTCORBA_Export TAO_RT_ORBInitializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
/// Priority mapping types
@@ -62,8 +60,7 @@ public:
int network_priority_mapping_type,
int ace_sched_policy,
long sched_policy,
- long scope_policy,
- ACE_Time_Value const &dynamic_thread_idle_timeout);
+ long scope_policy);
virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
@@ -89,10 +86,10 @@ private:
PortableInterceptor::PolicyFactory_var policy_factory_;
/// Priority mapping type.
- int const priority_mapping_type_;
+ int priority_mapping_type_;
/// Network Priority mapping type.
- int const network_priority_mapping_type_;
+ int network_priority_mapping_type_;
/// Scheduling policy.
/**
@@ -102,7 +99,7 @@ private:
* ACE_Sched_Params::priority_min(). Legal values are ACE_SCHED_RR,
* ACE_SCHED_FIFO, and ACE_SCHED_OTHER.
*/
- int const ace_sched_policy_;
+ int ace_sched_policy_;
/// Scheduling policy flag.
/**
@@ -111,7 +108,7 @@ private:
* thread creation functions. Legal values are THR_SCHED_RR,
* THR_SCHED_FIFO, and THR_SCHED_DEFAULT.
*/
- long const sched_policy_;
+ long sched_policy_;
/// Scheduling scope flag.
/**
@@ -120,20 +117,10 @@ private:
* thread creation functions. Legal values are THR_SCOPE_SYSTEM and
* THR_SCOPE_PROCESS.
*/
- long const scope_policy_;
+ long scope_policy_;
- /// Dynamic thread idle timeout
- /**
- * When using thread pool a certain number of dynamic threads can be created.
- * By default these threads are created when needed but never end, when this
- * timeout is specified the threads end themselves at the moment they
- * have not been serving any requests for the specified amount of time
- */
- ACE_Time_Value const dynamic_thread_idle_timeout_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RT_ORB_Loader.cpp b/TAO/tao/RTCORBA/RT_ORB_Loader.cpp
index 381da1bd572..b395043b553 100644
--- a/TAO/tao/RTCORBA/RT_ORB_Loader.cpp
+++ b/TAO/tao/RTCORBA/RT_ORB_Loader.cpp
@@ -1,21 +1,23 @@
-#include "tao/RTCORBA/RT_ORB_Loader.h"
+#include "RT_ORB_Loader.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_ORBInitializer.h"
+#include "RT_ORBInitializer.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
#include "tao/ORBInitializer_Registry.h"
#include "tao/SystemException.h"
#include "ace/OS_NS_strings.h"
-#include "ace/Arg_Shifter.h"
ACE_RCSID (RTCORBA,
RT_ORB_Loader,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO_RT_ORB_Loader::TAO_RT_ORB_Loader (void)
+{
+}
TAO_RT_ORB_Loader::~TAO_RT_ORB_Loader (void)
{
@@ -27,13 +29,13 @@ TAO_RT_ORB_Loader::init (int argc,
{
ACE_TRACE ("TAO_RT_ORB_Loader::init");
- static bool initialized = false;
+ static int initialized = 0;
// Only allow initialization once.
if (initialized)
return 0;
- initialized = true;
+ initialized = 1;
// Set defaults.
int priority_mapping_type =
@@ -44,113 +46,114 @@ TAO_RT_ORB_Loader::init (int argc,
long sched_policy = THR_SCHED_DEFAULT;
long scope_policy = THR_SCOPE_PROCESS;
int curarg = 0;
- ACE_Time_Value dynamic_thread_idle_timeout;
-
- ACE_Arg_Shifter arg_shifter (argc, argv);
// Parse any service configurator parameters.
- while (arg_shifter.is_anything_left ())
- {
- const ACE_TCHAR *current_arg = 0;
- if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-ORBPriorityMapping"))))
- {
- const ACE_TCHAR *name = current_arg;
- if (ACE_OS::strcasecmp (name,
- ACE_TEXT("continuous")) == 0)
- priority_mapping_type =
- TAO_RT_ORBInitializer::TAO_PRIORITY_MAPPING_CONTINUOUS;
- else if (ACE_OS::strcasecmp (name,
- ACE_TEXT("linear")) == 0)
- priority_mapping_type =
- TAO_RT_ORBInitializer::TAO_PRIORITY_MAPPING_LINEAR;
- else if (ACE_OS::strcasecmp (name,
- ACE_TEXT("direct")) == 0)
- priority_mapping_type =
- TAO_RT_ORBInitializer::TAO_PRIORITY_MAPPING_DIRECT;
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("RT_ORB_Loader - unknown argument")
- ACE_TEXT(" <%s> for -ORBPriorityMapping\n"),
- name));
- arg_shifter.consume_arg ();
- }
- else if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-ORBSchedPolicy"))))
- {
- const ACE_TCHAR *name = current_arg;
- if (ACE_OS::strcasecmp (name,
- ACE_TEXT("SCHED_OTHER")) == 0)
- {
- ace_sched_policy = ACE_SCHED_OTHER;
- sched_policy = THR_SCHED_DEFAULT;
- }
- else if (ACE_OS::strcasecmp (name,
- ACE_TEXT("SCHED_FIFO")) == 0)
- {
- ace_sched_policy = ACE_SCHED_FIFO;
- sched_policy = THR_SCHED_FIFO;
- }
- else if (ACE_OS::strcasecmp (name,
- ACE_TEXT("SCHED_RR")) == 0)
- {
- ace_sched_policy = ACE_SCHED_RR;
- sched_policy = THR_SCHED_RR;
- }
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("RT_ORB_Loader - unknown argument")
- ACE_TEXT(" <%s> for -ORBSchedPolicy\n"),
- name));
- arg_shifter.consume_arg ();
- }
- else if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-ORBScopePolicy"))))
- {
- const ACE_TCHAR *name = current_arg;
- if (ACE_OS::strcasecmp (name,
- ACE_TEXT("SYSTEM")) == 0)
- scope_policy = THR_SCOPE_SYSTEM;
- else if (ACE_OS::strcasecmp (name,
- ACE_TEXT("PROCESS")) == 0)
- scope_policy = THR_SCOPE_PROCESS;
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("RT_ORB_Loader - unknown argument")
- ACE_TEXT(" <%s> for -ORBScopePolicy\n"),
- name));
- arg_shifter.consume_arg ();
- }
- else if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-RTORBNetworkPriorityMapping"))))
- {
- const ACE_TCHAR *name = current_arg;
- if (ACE_OS::strcasecmp (name,
- ACE_TEXT("linear")) == 0)
+ for (curarg = 0; curarg < argc; curarg++)
+ if (ACE_OS::strcasecmp (argv[curarg],
+ ACE_TEXT("-ORBPriorityMapping")) == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ ACE_TCHAR* name = argv[curarg];
+
+ if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("continuous")) == 0)
+ priority_mapping_type =
+ TAO_RT_ORBInitializer::TAO_PRIORITY_MAPPING_CONTINUOUS;
+ else if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("linear")) == 0)
+ priority_mapping_type =
+ TAO_RT_ORBInitializer::TAO_PRIORITY_MAPPING_LINEAR;
+ else if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("direct")) == 0)
+ priority_mapping_type =
+ TAO_RT_ORBInitializer::TAO_PRIORITY_MAPPING_DIRECT;
+ else
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT("RT_ORB_Loader - unknown argument")
+ ACE_TEXT(" <%s> for -ORBPriorityMapping\n"),
+ name));
+ }
+ }
+ else if (ACE_OS::strcasecmp (argv[curarg],
+ ACE_TEXT("-ORBSchedPolicy")) == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ ACE_TCHAR* name = argv[curarg];
+
+ if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("SCHED_OTHER")) == 0)
+ {
+ ace_sched_policy = ACE_SCHED_OTHER;
+ sched_policy = THR_SCHED_DEFAULT;
+ }
+ else if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("SCHED_FIFO")) == 0)
+ {
+ ace_sched_policy = ACE_SCHED_FIFO;
+ sched_policy = THR_SCHED_FIFO;
+ }
+ else if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("SCHED_RR")) == 0)
+ {
+ ace_sched_policy = ACE_SCHED_RR;
+ sched_policy = THR_SCHED_RR;
+ }
+ else
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT("RT_ORB_Loader - unknown argument")
+ ACE_TEXT(" <%s> for -ORBSchedPolicy\n"),
+ name));
+ }
+ }
+ else if (ACE_OS::strcasecmp (argv[curarg],
+ ACE_TEXT("-ORBScopePolicy")) == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ ACE_TCHAR* name = argv[curarg];
+
+ if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("SYSTEM")) == 0)
+ scope_policy = THR_SCOPE_SYSTEM;
+ else if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("PROCESS")) == 0)
+ scope_policy = THR_SCOPE_PROCESS;
+ else
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT("RT_ORB_Loader - unknown argument")
+ ACE_TEXT(" <%s> for -ORBScopePolicy\n"),
+ name));
+ }
+ }
+ else if (ACE_OS::strcasecmp (argv[curarg],
+ ACE_TEXT("-ORBNetworkPriorityMapping")) == 0)
+ {
+ curarg++;
+ if (curarg < argc)
+ {
+ ACE_TCHAR* name = argv[curarg];
+
+ if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("linear")) == 0)
network_priority_mapping_type =
TAO_RT_ORBInitializer::TAO_NETWORK_PRIORITY_MAPPING_LINEAR;
- arg_shifter.consume_arg ();
- }
- else if (0 != (current_arg = arg_shifter.get_the_parameter
- (ACE_TEXT("-RTORBDynamicThreadIdleTimeout"))))
- {
- const ACE_TCHAR *name = current_arg;
- int timeout = ACE_OS::atoi (name);
- dynamic_thread_idle_timeout = ACE_Time_Value (0, timeout);
- arg_shifter.consume_arg ();
- }
+ }
+ }
else
{
- arg_shifter.ignore_arg ();
if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT("RT_ORB_Loader: Unknown option ")
- ACE_TEXT("<%s>.\n"),
- argv[curarg]));
- }
+ {
+ ACE_DEBUG ((LM_ERROR,
+ ACE_TEXT("RT_ORB_Loader: Unknown option ")
+ ACE_TEXT("<%s>.\n"),
+ argv[curarg]));
+ }
}
- }
// Register the ORB initializer.
ACE_TRY_NEW_ENV
@@ -164,8 +167,7 @@ TAO_RT_ORB_Loader::init (int argc,
network_priority_mapping_type,
ace_sched_policy,
sched_policy,
- scope_policy,
- dynamic_thread_idle_timeout),
+ scope_policy),
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
TAO::VMCID,
@@ -192,8 +194,6 @@ TAO_RT_ORB_Loader::init (int argc,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////////////////////////////////////////////
ACE_FACTORY_DEFINE (TAO_RTCORBA, TAO_RT_ORB_Loader)
diff --git a/TAO/tao/RTCORBA/RT_ORB_Loader.h b/TAO/tao/RTCORBA/RT_ORB_Loader.h
index a3e2d4cd375..402c314f403 100644
--- a/TAO/tao/RTCORBA/RT_ORB_Loader.h
+++ b/TAO/tao/RTCORBA/RT_ORB_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,7 +17,7 @@
#define TAO_RT_ORB_LOADER_H
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#include "tao/orbconf.h"
@@ -30,13 +30,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_RTCORBA_Export TAO_RT_ORB_Loader : public ACE_Service_Object
{
public:
+ /// Constructor.
+ TAO_RT_ORB_Loader (void);
/// Destructor.
virtual ~TAO_RT_ORB_Loader (void);
@@ -46,8 +46,6 @@ public:
ACE_TCHAR* []);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, TAO_RT_ORB_Loader)
ACE_FACTORY_DECLARE (TAO_RTCORBA, TAO_RT_ORB_Loader)
diff --git a/TAO/tao/RTCORBA/RT_PolicyFactory.cpp b/TAO/tao/RTCORBA/RT_PolicyFactory.cpp
index cd80662c192..7e5bd32fd68 100644
--- a/TAO/tao/RTCORBA/RT_PolicyFactory.cpp
+++ b/TAO/tao/RTCORBA/RT_PolicyFactory.cpp
@@ -1,4 +1,4 @@
-#include "tao/RTCORBA/RT_PolicyFactory.h"
+#include "RT_PolicyFactory.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -6,13 +6,11 @@ ACE_RCSID (RTCORBA,
RT_PolicyFactory,
"$Id$")
-#include "tao/RTCORBA/RT_Policy_i.h"
+#include "RT_Policy_i.h"
#include "tao/PolicyC.h"
#include "tao/ORB_Constants.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Policy_ptr
TAO_RT_PolicyFactory::create_policy (
CORBA::PolicyType type,
@@ -104,6 +102,4 @@ TAO_RT_PolicyFactory::_create_policy (
CORBA::Policy::_nil ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_PolicyFactory.h b/TAO/tao/RTCORBA/RT_PolicyFactory.h
index 6229e74af12..3fa55b3afe8 100644
--- a/TAO/tao/RTCORBA/RT_PolicyFactory.h
+++ b/TAO/tao/RTCORBA/RT_PolicyFactory.h
@@ -21,7 +21,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -37,10 +37,8 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Policy factory for all RTCORBA related policies.
-class TAO_RT_PolicyFactory
+class TAO_RTCORBA_Export TAO_RT_PolicyFactory
: public PortableInterceptor::PolicyFactory,
public CORBA::LocalObject
{
@@ -58,8 +56,6 @@ public:
CORBA::PolicyError));
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RT_Policy_i.cpp b/TAO/tao/RTCORBA/RT_Policy_i.cpp
index a9f893c31e3..3cd3f89a885 100644
--- a/TAO/tao/RTCORBA/RT_Policy_i.cpp
+++ b/TAO/tao/RTCORBA/RT_Policy_i.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/RTCORBA/RT_Policy_i.h"
+#include "RT_Policy_i.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -18,11 +18,8 @@ ACE_RCSID (RTCORBA,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_PriorityModelPolicy::TAO_PriorityModelPolicy (
- RTCORBA::PriorityModel priority_model,
- RTCORBA::Priority server_priority)
+TAO_PriorityModelPolicy::TAO_PriorityModelPolicy (RTCORBA::PriorityModel priority_model,
+ RTCORBA::Priority server_priority)
: ACE_NESTED_CLASS (CORBA, Object) ()
, ACE_NESTED_CLASS (CORBA, Policy) ()
, ACE_NESTED_CLASS (CORBA, LocalObject) ()
@@ -1405,6 +1402,4 @@ TAO_Protocol_Properties_Factory::create_orb_protocol_property (IOP::ProfileId id
return property;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_Policy_i.h b/TAO/tao/RTCORBA/RT_Policy_i.h
index ed8e1cfe6a4..689ee8e961e 100644
--- a/TAO/tao/RTCORBA/RT_Policy_i.h
+++ b/TAO/tao/RTCORBA/RT_Policy_i.h
@@ -24,7 +24,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#include "tao/LocalObject.h"
@@ -38,8 +38,6 @@
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_PriorityModelPolicy
*
@@ -894,13 +892,10 @@ public:
*/
static RTCORBA::ProtocolProperties *create_orb_protocol_property (IOP::ProfileId id);
-private:
-
+protected:
TAO_Protocol_Properties_Factory (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTCORBA/RT_Protocols_Hooks.cpp b/TAO/tao/RTCORBA/RT_Protocols_Hooks.cpp
index 9dba0b882b0..2f79523a96f 100644
--- a/TAO/tao/RTCORBA/RT_Protocols_Hooks.cpp
+++ b/TAO/tao/RTCORBA/RT_Protocols_Hooks.cpp
@@ -1,10 +1,10 @@
-#include "tao/RTCORBA/RT_Protocols_Hooks.h"
+#include "RT_Protocols_Hooks.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Policy_i.h"
-#include "tao/RTCORBA/Priority_Mapping_Manager.h"
-#include "tao/RTCORBA/RT_Stub.h"
+#include "RT_Policy_i.h"
+#include "Priority_Mapping_Manager.h"
+#include "RT_Stub.h"
#include "tao/Stub.h"
#include "tao/ORB_Core.h"
@@ -26,15 +26,11 @@ ACE_RCSID (RTCORBA,
RT_Protocols_Hooks,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_RT_Protocols_Hooks::TAO_RT_Protocols_Hooks (void)
- : orb_core_ (0)
- , current_ ()
{
}
-
TAO_RT_Protocols_Hooks::~TAO_RT_Protocols_Hooks (void)
{
}
@@ -815,8 +811,6 @@ TAO_RT_Protocols_Hooks::set_thread_native_priority (
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_RT_Protocols_Hooks,
ACE_TEXT ("RT_Protocols_Hooks"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/RTCORBA/RT_Protocols_Hooks.h b/TAO/tao/RTCORBA/RT_Protocols_Hooks.h
index a1542f2e2a8..f5bc260e298 100644
--- a/TAO/tao/RTCORBA/RT_Protocols_Hooks.h
+++ b/TAO/tao/RTCORBA/RT_Protocols_Hooks.h
@@ -1,3 +1,4 @@
+
// -*- C++ -*-
// ===================================================================
@@ -7,6 +8,7 @@
* $Id$
*
* @author Priyanka Gontla <pgontla@ece.uci.edu>
+ *
*/
// ===================================================================
@@ -19,8 +21,8 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/Priority_Mapping_Manager.h"
-#include "tao/RTCORBA/Network_Priority_Mapping_Manager.h"
+#include "Priority_Mapping_Manager.h"
+#include "Network_Priority_Mapping_Manager.h"
#include "tao/Protocols_Hooks.h"
@@ -30,12 +32,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTCORBA_Export TAO_RT_Protocols_Hooks : public TAO_Protocols_Hooks
{
public:
-
/// Constructor
TAO_RT_Protocols_Hooks (void);
@@ -175,8 +174,6 @@ protected:
RTCORBA::ProtocolProperties_ptr protocol_properties
ACE_ENV_ARG_DECL);
-protected:
-
TAO_ORB_Core *orb_core_;
// Save a reference to the priority mapping manager.
@@ -186,8 +183,6 @@ protected:
RTCORBA::Current_var current_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, TAO_RT_Protocols_Hooks)
ACE_FACTORY_DECLARE (TAO_RTCORBA, TAO_RT_Protocols_Hooks)
diff --git a/TAO/tao/RTCORBA/RT_Stub.cpp b/TAO/tao/RTCORBA/RT_Stub.cpp
index fe828a2bb5f..6804f192d18 100644
--- a/TAO/tao/RTCORBA/RT_Stub.cpp
+++ b/TAO/tao/RTCORBA/RT_Stub.cpp
@@ -1,10 +1,10 @@
// $Id$
-#include "tao/RTCORBA/RT_Stub.h"
+#include "RT_Stub.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Policy_i.h"
+#include "RT_Policy_i.h"
#include "tao/ORB_Core.h"
#include "tao/Policy_Set.h"
#include "tao/Policy_Manager.h"
@@ -15,8 +15,6 @@ ACE_RCSID (RTCORBA,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Stub::TAO_RT_Stub (const char *repository_id,
const TAO_MProfile &profiles,
TAO_ORB_Core *orb_core)
@@ -299,6 +297,4 @@ TAO_RT_Stub::effective_client_protocol (ACE_ENV_SINGLE_ARG_DECL)
0);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/RT_Stub.h b/TAO/tao/RTCORBA/RT_Stub.h
index fcaf8a32562..a2c18299ba6 100644
--- a/TAO/tao/RTCORBA/RT_Stub.h
+++ b/TAO/tao/RTCORBA/RT_Stub.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file RT_Stub.h
@@ -23,7 +21,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#include "tao/Stub.h"
@@ -31,14 +29,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward references.
class TAO_PriorityModelPolicy;
class TAO_PriorityBandedConnectionPolicy;
class TAO_ClientProtocolPolicy;
class TAO_PrivateConnectionPolicy;
+
+
/**
* @class TAO_RT_Stub
*
@@ -125,14 +123,17 @@ private:
CORBA::Boolean are_policies_parsed_;
private:
- // = Disallow copying and assignment.
- TAO_RT_Stub (const TAO_RT_Stub &);
- TAO_RT_Stub &operator = (const TAO_RT_Stub &);
-
+ // = Disallow copy constructor and assignment operator.
+ ACE_UNIMPLEMENTED_FUNC (TAO_RT_Stub (const TAO_RT_Stub &))
+ ACE_UNIMPLEMENTED_FUNC (TAO_RT_Stub &operator = (const TAO_RT_Stub &))
+
+#if defined (__GNUG__)
+ // G++ (even 2.6.3) stupidly thinks instances can't be created.
+ // This de-warns.
+ friend class everyone_needs_a_friend;
+#endif /* __GNUG__ */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/RT_Stub_Factory.cpp b/TAO/tao/RTCORBA/RT_Stub_Factory.cpp
index 84f376955cd..b28965a7891 100644
--- a/TAO/tao/RTCORBA/RT_Stub_Factory.cpp
+++ b/TAO/tao/RTCORBA/RT_Stub_Factory.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/RTCORBA/RT_Stub_Factory.h"
+#include "RT_Stub_Factory.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/RT_Stub.h"
+#include "RT_Stub.h"
#include "tao/ORB_Constants.h"
#include "tao/SystemException.h"
@@ -16,8 +16,6 @@ ACE_RCSID (RTCORBA,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Stub_Factory::~TAO_RT_Stub_Factory (void)
{
}
@@ -42,8 +40,6 @@ TAO_RT_Stub_Factory::create_stub (const char *repository_id,
return retval;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_RT_Stub_Factory,
diff --git a/TAO/tao/RTCORBA/RT_Stub_Factory.h b/TAO/tao/RTCORBA/RT_Stub_Factory.h
index 27a8f8cf712..213f88bab1f 100644
--- a/TAO/tao/RTCORBA/RT_Stub_Factory.h
+++ b/TAO/tao/RTCORBA/RT_Stub_Factory.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file RT_Stub_Factory.h
@@ -10,6 +8,7 @@
* This class creates the default stub, that is used in
* plain CORBA.
*
+ *
* @author Angelo Corsaro <corsaro@cs.wustl.edu>
* @author Frank Hunleth <fhunleth@cs.wustl.edu>
*/
@@ -24,7 +23,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -34,8 +33,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Stub_Factory
*
@@ -57,8 +54,6 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, TAO_RT_Stub_Factory)
ACE_FACTORY_DECLARE (TAO_RTCORBA, TAO_RT_Stub_Factory)
diff --git a/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp b/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp
index 1b7aa28ff78..fbde6dd0101 100644
--- a/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp
+++ b/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.cpp
@@ -16,8 +16,6 @@ ACE_RCSID (RTCORBA,
#include "tao/LF_Follower.h"
#include "tao/Leader_Follower.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Thread_Lane_Resources_Manager::TAO_RT_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core)
: TAO_Thread_Lane_Resources_Manager (orb_core),
default_lane_resources_ (0),
@@ -147,8 +145,6 @@ TAO_RT_Thread_Lane_Resources_Manager_Factory::create_thread_lane_resources_manag
return manager;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_RT_Thread_Lane_Resources_Manager_Factory,
ACE_TEXT ("RT_Thread_Lane_Resources_Manager_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h b/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h
index a1cfe5cdbf8..ef95981c8be 100644
--- a/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h
+++ b/TAO/tao/RTCORBA/RT_Thread_Lane_Resources_Manager.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file RT_Thread_Lane_Resources_Manager.h
@@ -26,9 +24,6 @@
#include "tao/Thread_Lane_Resources_Manager.h"
#include "ace/Service_Config.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Thread_Pool_Manager;
/**
@@ -105,8 +100,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, TAO_RT_Thread_Lane_Resources_Manager_Factory)
ACE_FACTORY_DECLARE (TAO_RTCORBA, TAO_RT_Thread_Lane_Resources_Manager_Factory)
diff --git a/TAO/tao/RTCORBA/RT_Transport_Descriptor.cpp b/TAO/tao/RTCORBA/RT_Transport_Descriptor.cpp
index 0058ea2023c..8eb6ded878a 100644
--- a/TAO/tao/RTCORBA/RT_Transport_Descriptor.cpp
+++ b/TAO/tao/RTCORBA/RT_Transport_Descriptor.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "tao/RTCORBA/RT_Transport_Descriptor.h"
+#include "RT_Transport_Descriptor.h"
#include "ace/OS_Memory.h"
#if ! defined (__ACE_INLINE__)
-#include "tao/RTCORBA/RT_Transport_Descriptor.inl"
+#include "RT_Transport_Descriptor.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(RTCORBA, TAO_RT_Transport_Descriptor, "$Id$")
-#include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
+#include "RT_Transport_Descriptor_Property.h"
#include "tao/Endpoint.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Transport_Descriptor::~TAO_RT_Transport_Descriptor ()
{
if (this->delete_properties_ == 1)
@@ -114,5 +112,3 @@ TAO_RT_Transport_Descriptor::hash (void) const
{
return this->endpoint_->hash ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/RT_Transport_Descriptor.h b/TAO/tao/RTCORBA/RT_Transport_Descriptor.h
index bbf8f97ee28..b485d8484a5 100644
--- a/TAO/tao/RTCORBA/RT_Transport_Descriptor.h
+++ b/TAO/tao/RTCORBA/RT_Transport_Descriptor.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_Transport_Descriptor.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_RT_TRANSPORT_DESCRIPTOR_H
@@ -13,18 +14,16 @@
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
+#include "RT_Transport_Descriptor_Property.h"
#include "tao/Transport_Descriptor_Interface.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Transport_Descriptor
*
@@ -69,10 +68,8 @@ private:
int delete_properties_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/RTCORBA/RT_Transport_Descriptor.inl"
+#include "RT_Transport_Descriptor.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/RT_Transport_Descriptor.inl b/TAO/tao/RTCORBA/RT_Transport_Descriptor.inl
index 3afd7b186e8..0c158812e9f 100644
--- a/TAO/tao/RTCORBA/RT_Transport_Descriptor.inl
+++ b/TAO/tao/RTCORBA/RT_Transport_Descriptor.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_RT_Transport_Descriptor::TAO_RT_Transport_Descriptor (TAO_Endpoint *endpoint,
CORBA::Boolean flag)
@@ -20,5 +16,3 @@ TAO_RT_Transport_Descriptor::insert (TAO_RT_Transport_Descriptor_Property *descr
this->property_list_ = descriptor_property;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.cpp b/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.cpp
index 020fe70267a..bc59aab60d0 100644
--- a/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.cpp
+++ b/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.cpp
@@ -1,19 +1,17 @@
// $Id$
-#include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
+#include "RT_Transport_Descriptor_Property.h"
#include "ace/OS_Memory.h"
#if ! defined (__ACE_INLINE__)
-#include "tao/RTCORBA/RT_Transport_Descriptor_Property.inl"
+#include "RT_Transport_Descriptor_Property.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (RTCORBA,
TAO_RT_Transport_Descriptor_Property,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Transport_Descriptor_Property::~TAO_RT_Transport_Descriptor_Property (void)
{
}
@@ -76,5 +74,3 @@ TAO_RT_Transport_Descriptor_Banded_Connection_Property::is_equivalent (const TAO
this->low_priority_ == rhs->low_priority_ &&
this->high_priority_ == rhs->high_priority_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.h b/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.h
index cf38816b4d6..b0645d68e9f 100644
--- a/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.h
+++ b/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.h
@@ -1,11 +1,12 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file RT_Transport_Descriptor_Property.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
+ *
+ *
*/
#ifndef TAO_RT_TRANSPORT_DESCRIPTOR_PROPERTY_H
@@ -13,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTCORBA/rtcorba_export.h"
+#include "rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +24,6 @@
#include "ace/Global_Macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Transport_Descriptor_Property
*
@@ -51,9 +50,9 @@ protected:
TAO_RT_Transport_Descriptor_Property* next_;
private:
- // = Disallow copying and assignment.
- TAO_RT_Transport_Descriptor_Property (const TAO_RT_Transport_Descriptor_Property &);
- TAO_RT_Transport_Descriptor_Property & operator= (const TAO_RT_Transport_Descriptor_Property &);
+ // = Disallow copy constructor and assignment operator.
+ ACE_UNIMPLEMENTED_FUNC (TAO_RT_Transport_Descriptor_Property (const TAO_RT_Transport_Descriptor_Property &))
+ ACE_UNIMPLEMENTED_FUNC (TAO_RT_Transport_Descriptor_Property &operator = (const TAO_RT_Transport_Descriptor_Property &))
};
/**
@@ -94,7 +93,7 @@ private:
};
-/*****************************************************************************/
+/*************************************************************************************************/
/**
* @class TAO_RT_Transport_Descriptor_Banded_Connection_Property
@@ -131,12 +130,10 @@ protected:
CORBA::Short high_priority_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-/*****************************************************************************/
+/*************************************************************************************************/
#if defined (__ACE_INLINE__)
-#include "tao/RTCORBA/RT_Transport_Descriptor_Property.inl"
+#include "RT_Transport_Descriptor_Property.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.inl b/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.inl
index 89c98fe4485..c6646a943fb 100644
--- a/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.inl
+++ b/TAO/tao/RTCORBA/RT_Transport_Descriptor_Property.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_RT_Transport_Descriptor_Property::TAO_RT_Transport_Descriptor_Property (void)
: next_ (0)
@@ -53,5 +49,3 @@ TAO_RT_Transport_Descriptor_Banded_Connection_Property::init (CORBA::Short low_p
this->low_priority_ = low_priority;
this->high_priority_ = high_priority;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTCORBA/Thread_Pool.cpp b/TAO/tao/RTCORBA/Thread_Pool.cpp
index f63d8809bb5..f274fb38a18 100644
--- a/TAO/tao/RTCORBA/Thread_Pool.cpp
+++ b/TAO/tao/RTCORBA/Thread_Pool.cpp
@@ -1,4 +1,4 @@
-#include "tao/RTCORBA/Thread_Pool.h"
+#include "Thread_Pool.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -7,7 +7,7 @@ ACE_RCSID (RTCORBA,
"$Id$")
#if ! defined (__ACE_INLINE__)
-#include "tao/RTCORBA/Thread_Pool.inl"
+#include "Thread_Pool.inl"
#endif /* __ACE_INLINE__ */
#include "tao/Exception.h"
@@ -22,8 +22,6 @@ ACE_RCSID (RTCORBA,
#include "tao/Leader_Follower.h"
#include "ace/Auto_Ptr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_New_Leader_Generator::TAO_RT_New_Leader_Generator (
TAO_Thread_Lane &lane)
: lane_ (lane)
@@ -56,10 +54,14 @@ TAO_Thread_Pool_Threads::svc (void)
TAO_Thread_Pool_Threads::set_tss_resources (orb_core,
this->lane_);
+ CORBA::ORB_ptr orb =
+ orb_core.orb ();
+
ACE_TRY_NEW_ENV
{
- // Do the work
- this->run (orb_core);
+ // Run the ORB.
+ orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
ACE_CATCHANY
{
@@ -75,18 +77,6 @@ TAO_Thread_Pool_Threads::svc (void)
return 0;
}
-int
-TAO_Thread_Pool_Threads::run (TAO_ORB_Core &orb_core ACE_ENV_ARG_PARAMETER)
-{
- CORBA::ORB_ptr orb = orb_core.orb ();
-
- // Run the ORB.
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
void
TAO_Thread_Pool_Threads::set_tss_resources (TAO_ORB_Core &orb_core,
TAO_Thread_Lane &thread_lane)
@@ -99,67 +89,23 @@ TAO_Thread_Pool_Threads::set_tss_resources (TAO_ORB_Core &orb_core,
tss.lane_ = &thread_lane;
}
-TAO_Dynamic_Thread_Pool_Threads::TAO_Dynamic_Thread_Pool_Threads (TAO_Thread_Lane &lane)
- : TAO_Thread_Pool_Threads (lane)
-{
-}
-
-int
-TAO_Dynamic_Thread_Pool_Threads::run (TAO_ORB_Core &orb_core ACE_ENV_ARG_PARAMETER)
-{
- CORBA::ORB_ptr orb = orb_core.orb ();
-
- if (this->lane_.dynamic_thread_idle_timeout () == ACE_Time_Value::zero)
- {
- // No timeout specified, run the ORB until it shutdowns
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- else
- {
- // A timeout is specified, run the ORB in an idle loop, if we
- // don't handle any operations for the given timeout we just
- // exit the loop and this thread ends itself.
- ACE_Time_Value tv (this->lane_.dynamic_thread_idle_timeout ());
- while (!orb_core.has_shutdown () && orb->work_pending (tv))
- {
- orb->perform_work ();
- tv = this->lane_.dynamic_thread_idle_timeout ();
- }
-
- if (TAO_debug_level > 7)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO Process %P Pool %d Lane %d Thread %t\n")
- ACE_TEXT ("Current number of dynamic threads left = %d; ")
- ACE_TEXT ("RTCorba worker thread is ending!\n"),
- this->lane_.pool ().id (),
- this->lane_.id (),
- this->thr_count () - 1));
- }
-
- return 0;
-}
-
TAO_Thread_Lane::TAO_Thread_Lane (TAO_Thread_Pool &pool,
CORBA::ULong id,
CORBA::Short lane_priority,
CORBA::ULong static_threads,
- CORBA::ULong dynamic_threads,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong dynamic_threads
ACE_ENV_ARG_DECL_NOT_USED)
: pool_ (pool),
id_ (id),
lane_priority_ (lane_priority),
- shutdown_ (false),
- static_threads_number_ (static_threads),
- dynamic_threads_number_ (dynamic_threads),
- static_threads_ (*this),
- dynamic_threads_ (*this),
+ static_threads_ (static_threads),
+ dynamic_threads_ (dynamic_threads),
+ current_threads_ (0),
+ threads_ (*this),
new_thread_generator_ (*this),
resources_ (pool.manager ().orb_core (),
&new_thread_generator_),
- native_priority_ (TAO_INVALID_PRIORITY),
- dynamic_thread_idle_timeout_ (dynamic_thread_idle_timeout)
+ native_priority_ (TAO_INVALID_PRIORITY)
{
}
@@ -167,8 +113,14 @@ bool
TAO_Thread_Lane::new_dynamic_thread (void)
{
// Note that we are checking this condition below without the lock
- // held.
- if (this->dynamic_threads_.thr_count () >= this->dynamic_threads_number_)
+ // held. The value of <static_threads> and <dynamic_threads> does
+ // not change, but <current_threads> increases when new dynamic
+ // threads are created. Even if we catch <current_threads> in an
+ // inconsistent state, we will double check later with the lock
+ // held. Therefore, this check should not cause any big problems.
+ if (this->current_threads_ >=
+ this->static_threads_ +
+ this->dynamic_threads_)
return false;
ACE_GUARD_RETURN (ACE_SYNCH_MUTEX,
@@ -179,25 +131,25 @@ TAO_Thread_Lane::new_dynamic_thread (void)
TAO_Thread_Pool_Manager &manager =
this->pool_.manager ();
- if (!manager.orb_core ().has_shutdown () && !this->shutdown_&&
- this->dynamic_threads_.thr_count () < this->dynamic_threads_number_)
+ if (this->current_threads_ <
+ (this->static_threads_ +
+ this->dynamic_threads_) &&
+ !manager.orb_core ().has_shutdown ())
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO Process %P Pool %d Lane %d Thread %t\n")
- ACE_TEXT ("Current number of dynamic threads = %d; ")
- ACE_TEXT ("static threads = %d; max dynamic threads = %d\n")
+ ACE_TEXT ("Current number of threads = %d; ")
+ ACE_TEXT ("static threads = %d; dynamic threads = %d\n")
ACE_TEXT ("No leaders available; creating new leader!\n"),
this->pool_.id (),
this->id_,
- this->dynamic_threads_.thr_count (),
- this->static_threads_number_,
- this->dynamic_threads_number_));
+ this->current_threads_,
+ this->static_threads_,
+ this->dynamic_threads_));
int result =
- this->create_threads_i (this->dynamic_threads_,
- 1,
- THR_BOUND | THR_DETACHED);
+ this->create_dynamic_threads_i (1);
if (result != 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -218,16 +170,16 @@ TAO_Thread_Lane::shutting_down (void)
mon,
this->lock_);
- // We are shutting down, this way we are not creating any more new dynamic
- // threads
- this->shutdown_ = true;
+ // Just set the number of dynamic threads to 0, this means we just can't
+ // create any new one
+ this->dynamic_threads_ = 0;
}
void
TAO_Thread_Lane::validate_and_map_priority (ACE_ENV_SINGLE_ARG_DECL)
{
- // Make sure that static_threads_number_ is not zero.
- if (this->static_threads_number_ == 0)
+ // Make sure that <static_threads_> is not zero.
+ if (this->static_threads_ == 0)
ACE_THROW (CORBA::BAD_PARAM ());
// Check that the priority is in bounds.
@@ -353,8 +305,7 @@ TAO_Thread_Lane::shutdown_reactor (void)
void
TAO_Thread_Lane::wait (void)
{
- this->static_threads_.wait ();
- this->dynamic_threads_.wait ();
+ this->threads_.wait ();
}
int
@@ -363,31 +314,11 @@ TAO_Thread_Lane::is_collocated (const TAO_MProfile &mprofile)
return this->resources_.is_collocated (mprofile);
}
-CORBA::ULong
-TAO_Thread_Lane::current_threads (void) const
-{
- ACE_GUARD_RETURN (ACE_SYNCH_MUTEX,
- mon,
- this->lock_,
- 0);
-
- return (this->static_threads_.thr_count () +
- this->dynamic_threads_.thr_count ());
-}
-
-
int
TAO_Thread_Lane::create_static_threads (void)
{
- ACE_GUARD_RETURN (ACE_SYNCH_MUTEX,
- mon,
- this->lock_,
- 0);
-
// Create static threads.
- return this->create_threads_i (this->static_threads_,
- this->static_threads_number_,
- THR_NEW_LWP | THR_JOINABLE);
+ return this->create_dynamic_threads (this->static_threads_);
}
int
@@ -398,20 +329,17 @@ TAO_Thread_Lane::create_dynamic_threads (CORBA::ULong number_of_threads)
this->lock_,
0);
- return this->create_threads_i (this->dynamic_threads_,
- number_of_threads,
- THR_BOUND | THR_DETACHED);
+ return this->create_dynamic_threads_i (number_of_threads);
}
int
-TAO_Thread_Lane::create_threads_i (TAO_Thread_Pool_Threads &thread_pool,
- CORBA::ULong number_of_threads,
- long thread_flags)
+TAO_Thread_Lane::create_dynamic_threads_i (CORBA::ULong number_of_threads)
{
// Overwritten parameters.
int force_active = 1;
// Default parameters.
+ long default_flags = THR_NEW_LWP | THR_JOINABLE;
int default_grp_id = -1;
ACE_Task_Base *default_task = 0;
ACE_hthread_t *default_thread_handles = 0;
@@ -437,24 +365,27 @@ TAO_Thread_Lane::create_threads_i (TAO_Thread_Pool_Threads &thread_pool,
this->pool ().manager ().orb_core ();
long flags =
- thread_flags |
+ default_flags |
orb_core.orb_params ()->thread_creation_flags ();
// Activate the threads.
int result =
- thread_pool.activate (flags,
- number_of_threads,
- force_active,
- this->native_priority_,
- default_grp_id,
- default_task,
- default_thread_handles,
- default_stack,
- stack_size_array);
+ this->threads_.activate (flags,
+ number_of_threads,
+ force_active,
+ this->native_priority_,
+ default_grp_id,
+ default_task,
+ default_thread_handles,
+ default_stack,
+ stack_size_array);
if (result != 0)
return result;
+ this->current_threads_ +=
+ number_of_threads;
+
return result;
}
@@ -466,8 +397,7 @@ TAO_Thread_Pool::TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager,
CORBA::Short default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
: manager_ (manager),
id_ (id),
@@ -476,7 +406,6 @@ TAO_Thread_Pool::TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager,
allow_request_buffering_ (allow_request_buffering),
max_buffered_requests_ (max_buffered_requests),
max_request_buffer_size_ (max_request_buffer_size),
- dynamic_thread_idle_timeout_ (dynamic_thread_idle_timeout),
lanes_ (0),
number_of_lanes_ (1),
with_lanes_ (false)
@@ -492,8 +421,7 @@ TAO_Thread_Pool::TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager,
0,
default_priority,
static_threads,
- dynamic_threads,
- dynamic_thread_idle_timeout
+ dynamic_threads
ACE_ENV_ARG_PARAMETER);
}
@@ -504,8 +432,7 @@ TAO_Thread_Pool::TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager,
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
: manager_ (manager),
id_ (id),
@@ -514,7 +441,6 @@ TAO_Thread_Pool::TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager,
allow_request_buffering_ (allow_request_buffering),
max_buffered_requests_ (max_buffered_requests),
max_request_buffer_size_ (max_request_buffer_size),
- dynamic_thread_idle_timeout_ (dynamic_thread_idle_timeout),
lanes_ (0),
number_of_lanes_ (lanes.length ()),
with_lanes_ (true)
@@ -534,8 +460,7 @@ TAO_Thread_Pool::TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager,
i,
lanes[i].lane_priority,
lanes[i].static_threads,
- lanes[i].dynamic_threads,
- dynamic_thread_idle_timeout
+ lanes[i].dynamic_threads
ACE_ENV_ARG_PARAMETER);
}
@@ -724,8 +649,7 @@ TAO_Thread_Pool_Manager::create_threadpool (CORBA::ULong stacksize,
RTCORBA::Priority default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -738,8 +662,7 @@ TAO_Thread_Pool_Manager::create_threadpool (CORBA::ULong stacksize,
default_priority,
allow_request_buffering,
max_buffered_requests,
- max_request_buffer_size,
- dynamic_thread_idle_timeout
+ max_request_buffer_size
ACE_ENV_ARG_PARAMETER);
}
@@ -749,8 +672,7 @@ TAO_Thread_Pool_Manager::create_threadpool_with_lanes (CORBA::ULong stacksize,
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -762,8 +684,7 @@ TAO_Thread_Pool_Manager::create_threadpool_with_lanes (CORBA::ULong stacksize,
allow_borrowing,
allow_request_buffering,
max_buffered_requests,
- max_request_buffer_size,
- dynamic_thread_idle_timeout
+ max_request_buffer_size
ACE_ENV_ARG_PARAMETER);
}
@@ -817,8 +738,7 @@ TAO_Thread_Pool_Manager::create_threadpool_i (CORBA::ULong stacksize,
RTCORBA::Priority default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -834,8 +754,7 @@ TAO_Thread_Pool_Manager::create_threadpool_i (CORBA::ULong stacksize,
default_priority,
allow_request_buffering,
max_buffered_requests,
- max_request_buffer_size,
- dynamic_thread_idle_timeout
+ max_request_buffer_size
ACE_ENV_ARG_PARAMETER),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (0);
@@ -850,8 +769,7 @@ TAO_Thread_Pool_Manager::create_threadpool_with_lanes_i (CORBA::ULong stacksize,
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -866,8 +784,7 @@ TAO_Thread_Pool_Manager::create_threadpool_with_lanes_i (CORBA::ULong stacksize,
allow_borrowing,
allow_request_buffering,
max_buffered_requests,
- max_request_buffer_size,
- dynamic_thread_idle_timeout
+ max_request_buffer_size
ACE_ENV_ARG_PARAMETER),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (0);
@@ -950,6 +867,4 @@ TAO_Thread_Pool_Manager::orb_core (void) const
return this->orb_core_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Thread_Pool.h b/TAO/tao/RTCORBA/Thread_Pool.h
index cd0047741e9..d1c5d45a624 100644
--- a/TAO/tao/RTCORBA/Thread_Pool.h
+++ b/TAO/tao/RTCORBA/Thread_Pool.h
@@ -24,7 +24,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_RTCORBA_SAFE_INCLUDE
-#include "tao/RTCORBA/RTCORBAC.h"
+#include "RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
#include "ace/Hash_Map_Manager.h"
@@ -33,8 +33,6 @@
#include "ace/Task.h"
#include "ace/Null_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Thread_Lane;
/**
@@ -66,12 +64,12 @@ private:
/**
* @class TAO_Thread_Pool_Threads
*
- * @brief Class representing a static thread running in a thread lane.
+ * @brief Class representing a thread running in a thread lane.
*
* \nosubgrouping
*
**/
-class TAO_Thread_Pool_Threads : public ACE_Task_Base
+class TAO_RTCORBA_Export TAO_Thread_Pool_Threads : public ACE_Task_Base
{
public:
@@ -88,33 +86,12 @@ public:
static void set_tss_resources (TAO_ORB_Core &orb_core,
TAO_Thread_Lane &thread_lane);
-protected:
- /// Do the real work
- virtual int run (TAO_ORB_Core &orb_core ACE_ENV_ARG_PARAMETER);
+private:
/// Lane to which this thread belongs to.
TAO_Thread_Lane &lane_;
};
-/**
- * @class TAO_Dynamic_Thread_Pool_Threads
- *
- * @brief Class representing a dynamic thread running in a thread lane.
- *
- * \nosubgrouping
- *
- **/
-class TAO_Dynamic_Thread_Pool_Threads : public TAO_Thread_Pool_Threads
-{
-public:
- /// Constructor.
- TAO_Dynamic_Thread_Pool_Threads (TAO_Thread_Lane &lane);
-
-protected:
- /// Do the real work
- virtual int run (TAO_ORB_Core &orb_core ACE_ENV_ARG_PARAMETER);
-};
-
class TAO_Thread_Pool;
/**
@@ -134,8 +111,7 @@ public:
CORBA::ULong id,
CORBA::Short lane_priority,
CORBA::ULong static_threads,
- CORBA::ULong dynamic_threads,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong dynamic_threads
ACE_ENV_ARG_DECL);
/// Destructor.
@@ -187,12 +163,14 @@ public:
CORBA::ULong dynamic_threads (void) const;
CORBA::ULong current_threads (void) const;
+ void current_threads (CORBA::ULong);
CORBA::Short native_priority (void) const;
+ TAO_Thread_Pool_Threads &threads (void);
+
TAO_Thread_Lane_Resources &resources (void);
- ACE_Time_Value const &dynamic_thread_idle_timeout (void) const;
// @}
private:
@@ -200,9 +178,7 @@ private:
/// Validate lane's priority and map it to a native value.
void validate_and_map_priority (ACE_ENV_SINGLE_ARG_DECL);
- int create_threads_i (TAO_Thread_Pool_Threads &thread_pool,
- CORBA::ULong number_of_threads,
- long thread_flags);
+ int create_dynamic_threads_i (CORBA::ULong number_of_threads);
/// Create @a number_of_threads of dynamic threads. Can be called
/// multiple times.
@@ -212,25 +188,21 @@ private:
TAO_Thread_Pool &pool_;
/// The id of this lane
- CORBA::ULong const id_;
+ CORBA::ULong id_;
CORBA::Short lane_priority_;
- /// This boolean is set when we are shutting down, then we will not create
- /// any new dynamic threads
- bool shutdown_;
-
/// Number of static threads
- CORBA::ULong const static_threads_number_;
+ CORBA::ULong static_threads_;
/// Maximum number of threads we are allowed to create
- CORBA::ULong const dynamic_threads_number_;
+ CORBA::ULong dynamic_threads_;
- /// Array with all static threads
- TAO_Thread_Pool_Threads static_threads_;
+ /// Current number of threads
+ CORBA::ULong current_threads_;
- /// Array with all dynamic threads
- TAO_Dynamic_Thread_Pool_Threads dynamic_threads_;
+ /// Array with all threads
+ TAO_Thread_Pool_Threads threads_;
TAO_RT_New_Leader_Generator new_thread_generator_;
@@ -238,10 +210,8 @@ private:
CORBA::Short native_priority_;
- ACE_Time_Value const dynamic_thread_idle_timeout_;
-
/// Lock to guard all members of the lane
- mutable ACE_SYNCH_MUTEX lock_;
+ ACE_SYNCH_MUTEX lock_;
};
class TAO_Thread_Pool_Manager;
@@ -268,8 +238,7 @@ public:
CORBA::Short default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL);
/// Constructor (for pools with lanes).
@@ -280,8 +249,7 @@ public:
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL);
/// Destructor.
@@ -338,7 +306,6 @@ private:
CORBA::Boolean allow_request_buffering_;
CORBA::ULong max_buffered_requests_;
CORBA::ULong max_request_buffer_size_;
- ACE_Time_Value const dynamic_thread_idle_timeout_;
TAO_Thread_Lane **lanes_;
CORBA::ULong number_of_lanes_;
@@ -385,8 +352,7 @@ public:
RTCORBA::Priority default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -397,8 +363,7 @@ public:
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -432,8 +397,7 @@ private:
RTCORBA::Priority default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -443,8 +407,7 @@ private:
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
- CORBA::ULong max_request_buffer_size,
- ACE_Time_Value const &dynamic_thread_idle_timeout
+ CORBA::ULong max_request_buffer_size
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -455,8 +418,6 @@ private:
// @}
-private:
-
TAO_ORB_Core &orb_core_;
THREAD_POOLS thread_pools_;
@@ -464,10 +425,8 @@ private:
ACE_SYNCH_MUTEX lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/RTCORBA/Thread_Pool.inl"
+#include "Thread_Pool.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTCORBA/Thread_Pool.inl b/TAO/tao/RTCORBA/Thread_Pool.inl
index 4dd08236764..e76815436e7 100644
--- a/TAO/tao/RTCORBA/Thread_Pool.inl
+++ b/TAO/tao/RTCORBA/Thread_Pool.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Thread_Lane &
TAO_Thread_Pool_Threads::lane (void) const
@@ -43,28 +39,42 @@ ACE_INLINE
CORBA::ULong
TAO_Thread_Lane::static_threads (void) const
{
- return this->static_threads_number_;
+ return this->static_threads_;
}
ACE_INLINE
CORBA::ULong
TAO_Thread_Lane::dynamic_threads (void) const
{
- return this->dynamic_threads_number_;
+ return this->dynamic_threads_;
}
ACE_INLINE
-TAO_Thread_Lane_Resources &
-TAO_Thread_Lane::resources (void)
+CORBA::ULong
+TAO_Thread_Lane::current_threads (void) const
{
- return this->resources_;
+ return this->current_threads_;
+}
+
+ACE_INLINE
+void
+TAO_Thread_Lane::current_threads (CORBA::ULong current_threads)
+{
+ this->current_threads_ = current_threads;
}
ACE_INLINE
-ACE_Time_Value const &
-TAO_Thread_Lane::dynamic_thread_idle_timeout (void) const
+TAO_Thread_Pool_Threads &
+TAO_Thread_Lane::threads (void)
{
- return this->dynamic_thread_idle_timeout_;
+ return this->threads_;
+}
+
+ACE_INLINE
+TAO_Thread_Lane_Resources &
+TAO_Thread_Lane::resources (void)
+{
+ return this->resources_;
}
ACE_INLINE
@@ -137,4 +147,5 @@ TAO_Thread_Pool::number_of_lanes (void) const
return this->number_of_lanes_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
+
diff --git a/TAO/tao/RTCORBA/rtcorba_typedefs.h b/TAO/tao/RTCORBA/rtcorba_typedefs.h
index 513e1a4169d..d39f5b27a2d 100644
--- a/TAO/tao/RTCORBA/rtcorba_typedefs.h
+++ b/TAO/tao/RTCORBA/rtcorba_typedefs.h
@@ -24,7 +24,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward references.
class TAO_Priority_Mapping_Manager;
@@ -56,7 +55,6 @@ namespace RTCORBA
// End TAO-specific typedef
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /*TAO_RTCORBA_TYPEDEFS_H*/
diff --git a/TAO/tao/RTPortableServer/RTPortableServer.cpp b/TAO/tao/RTPortableServer/RTPortableServer.cpp
index bb1ea26cbdb..a1e3ab95a43 100644
--- a/TAO/tao/RTPortableServer/RTPortableServer.cpp
+++ b/TAO/tao/RTPortableServer/RTPortableServer.cpp
@@ -1,3 +1,5 @@
+/* -*- C++ -*- */
+
// $Id$
// =================================================================
//
@@ -12,8 +14,8 @@
//
// =================================================================
-#include "tao/RTPortableServer/RTPortableServer.h"
-#include "tao/RTPortableServer/RT_Object_Adapter_Factory.h"
+#include "RTPortableServer.h"
+#include "RT_Object_Adapter_Factory.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -21,12 +23,9 @@ ACE_RCSID (RTPortableServer,
RTPortableServer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RTPortableServer_Initializer::TAO_RTPortableServer_Initializer (void)
{
ACE_Service_Config::process_directive (ace_svc_desc_TAO_RT_Object_Adapter_Factory);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RTPortableServer.h b/TAO/tao/RTPortableServer/RTPortableServer.h
index 82e605cccba..8202b682ad6 100644
--- a/TAO/tao/RTPortableServer/RTPortableServer.h
+++ b/TAO/tao/RTPortableServer/RTPortableServer.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file RTPortableServer.h
@@ -15,7 +14,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/orbconf.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -26,8 +25,6 @@
#include "tao/RTCORBA/RTCORBA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTPortableServer_Export TAO_RTPortableServer_Initializer
{
public:
@@ -37,10 +34,8 @@ public:
static TAO_RTPortableServer_Initializer TAO_RTPortableServer_initializer;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_RT_PORTABLESERVER_SAFE_INCLUDE
-#include "tao/RTPortableServer/RTPortableServerC.h"
+#include "RTPortableServerC.h"
#undef TAO_RT_PORTABLESERVER_SAFE_INCLUDE
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RTPortableServerA.cpp b/TAO/tao/RTPortableServer/RTPortableServerA.cpp
index e0e8678f7be..d5d526ece27 100644
--- a/TAO/tao/RTPortableServer/RTPortableServerA.cpp
+++ b/TAO/tao/RTPortableServer/RTPortableServerA.cpp
@@ -30,13 +30,11 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/RTPortableServer/RTPortableServer.h"
+#include "RTPortableServer.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be/be_visitor_typecode/objref_typecode.cpp:76
@@ -129,5 +127,3 @@ operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTPortableServer/RTPortableServerC.cpp b/TAO/tao/RTPortableServer/RTPortableServerC.cpp
index 85e9834111f..cc437d5e9ba 100644
--- a/TAO/tao/RTPortableServer/RTPortableServerC.cpp
+++ b/TAO/tao/RTPortableServer/RTPortableServerC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/RTPortableServer/RTPortableServer.h"
+#include "RTPortableServer.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "ace/OS_NS_string.h"
@@ -41,8 +41,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -193,5 +191,3 @@ RTPortableServer::POA::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTPortableServer/RTPortableServerC.h b/TAO/tao/RTPortableServer/RTPortableServerC.h
index cb6e8d013f8..c6740079e07 100644
--- a/TAO/tao/RTPortableServer/RTPortableServerC.h
+++ b/TAO/tao/RTPortableServer/RTPortableServerC.h
@@ -44,7 +44,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -71,8 +71,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace RTPortableServer
{
@@ -266,8 +264,6 @@ TAO_RTPortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, RTPo
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTPortableServer/RTPortableServerS.h b/TAO/tao/RTPortableServer/RTPortableServerS.h
index 6b5943d104f..253d03db8a3 100644
--- a/TAO/tao/RTPortableServer/RTPortableServerS.h
+++ b/TAO/tao/RTPortableServer/RTPortableServerS.h
@@ -33,7 +33,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTPortableServer/RTPortableServerC.h"
+#include "RTPortableServerC.h"
#include "tao/PortableServer/PortableServer_includeS.h"
#include "tao/RTCORBA/RTCORBA_includeS.h"
@@ -54,8 +54,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_sh.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace POA_RTPortableServer
{
@@ -68,7 +66,6 @@ namespace POA_RTPortableServer
// TAO_IDL - Generated from
// be\be_codegen.cpp:995
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "RTPortableServerS.inl"
diff --git a/TAO/tao/RTPortableServer/RTPortableServer_include.pidl b/TAO/tao/RTPortableServer/RTPortableServer_include.pidl
index 1d5a8883c79..d67a85927c7 100644
--- a/TAO/tao/RTPortableServer/RTPortableServer_include.pidl
+++ b/TAO/tao/RTPortableServer/RTPortableServer_include.pidl
@@ -35,6 +35,6 @@
#define _RTPORTABLESERVER_INCLUDE_IDL_
///FUZZ: disable check_for_include/
-#include "tao/RTPortableServer/RTPortableServer.pidl"
+#include <tao/RTPortableServer/RTPortableServer.pidl>
#endif /* _RTPORTABLESERVER_INCLUDE_IDL_ */
diff --git a/TAO/tao/RTPortableServer/RTPortableServer_includeC.h b/TAO/tao/RTPortableServer/RTPortableServer_includeC.h
index 2b42eb48285..5b6dbc0d6ca 100644
--- a/TAO/tao/RTPortableServer/RTPortableServer_includeC.h
+++ b/TAO/tao/RTPortableServer/RTPortableServer_includeC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/Environment.h"
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_traits.cpp:61
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
@@ -74,8 +72,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTPortableServer/RT_Acceptor_Filters.cpp b/TAO/tao/RTPortableServer/RT_Acceptor_Filters.cpp
index 53444f8e1b4..0ebc6f73ac2 100644
--- a/TAO/tao/RTPortableServer/RT_Acceptor_Filters.cpp
+++ b/TAO/tao/RTPortableServer/RT_Acceptor_Filters.cpp
@@ -1,6 +1,6 @@
-// $Id$
+// @(#) $Id$
-#include "tao/RTPortableServer/RT_Acceptor_Filters.h"
+#include "RT_Acceptor_Filters.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -12,22 +12,18 @@ ACE_RCSID (RTPortableServer,
RT_Acceptor_Filter,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Server_Protocol_Acceptor_Filter::TAO_Server_Protocol_Acceptor_Filter (
- RTCORBA::ProtocolList &protocols)
+TAO_Server_Protocol_Acceptor_Filter::
+TAO_Server_Protocol_Acceptor_Filter (RTCORBA::ProtocolList &protocols)
: protocols_ (protocols)
{
}
int
-TAO_Server_Protocol_Acceptor_Filter::fill_profile (
- const TAO::ObjectKey &object_key,
- TAO_MProfile &mprofile,
- TAO_Acceptor **acceptors_begin,
- TAO_Acceptor **acceptors_end,
- CORBA::Short priority)
+TAO_Server_Protocol_Acceptor_Filter::fill_profile (const TAO::ObjectKey &object_key,
+ TAO_MProfile &mprofile,
+ TAO_Acceptor **acceptors_begin,
+ TAO_Acceptor **acceptors_end,
+ CORBA::Short priority)
{
// RTCORBA 1.0, Section 4.15.1: ServerProtocolPolicy determines
// which protocols get included into IOR and in what order.
@@ -64,6 +60,4 @@ TAO_Server_Protocol_Acceptor_Filter::encode_endpoints (TAO_MProfile &mprofile)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h b/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h
index 6eb39e04677..2a8cfe9fea0 100644
--- a/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h
+++ b/TAO/tao/RTPortableServer/RT_Acceptor_Filters.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file RT_Acceptor_Filters.h
@@ -25,15 +24,13 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/Acceptor_Filter.h"
#define TAO_RTCORBA_SAFE_INCLUDE
#include "tao/RTCORBA/RTCORBAC.h"
#undef TAO_RTCORBA_SAFE_INCLUDE
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
/**
@@ -66,8 +63,6 @@ private:
RTCORBA::ProtocolList &protocols_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTPortableServer/RT_Collocation_Resolver.cpp b/TAO/tao/RTPortableServer/RT_Collocation_Resolver.cpp
index 0eecb7136a9..8dc4a8cfd0b 100644
--- a/TAO/tao/RTPortableServer/RT_Collocation_Resolver.cpp
+++ b/TAO/tao/RTPortableServer/RT_Collocation_Resolver.cpp
@@ -17,8 +17,6 @@ ACE_RCSID(RTPortableServer,
#include "tao/RTCORBA/Thread_Pool.h"
#include "tao/Profile.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Boolean
TAO_RT_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
ACE_ENV_ARG_DECL) const
@@ -26,7 +24,7 @@ TAO_RT_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
// Make sure that the servant is in the same ORB that created this
// object.
if (!object->_is_collocated ())
- return false;
+ return 0;
// Get the orb core.
TAO_ORB_Core *orb_core =
@@ -47,7 +45,7 @@ TAO_RT_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
// If the target POA does not have a dedicated thread pool, then all
// calls to it are collocated.
if (target_thread_pool == 0)
- return true;
+ return 1;
/// Get the ORB_Core's TSS resources.
TAO_ORB_Core_TSS_Resources &tss =
@@ -68,17 +66,17 @@ TAO_RT_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
// different pool than POA. Therefore, this object is not
// collocated.
if (current_thread_pool != target_thread_pool)
- return false;
+ return 0;
// If the current thread and the POA are in the default thread pool,
// then the object is collocated.
if (current_thread_pool == 0)
- return true;
+ return 1;
// If the current thread and the POA are in a thread pool without
// lanes, then the object is collocated.
if (!current_thread_pool->with_lanes ())
- return true;
+ return 1;
// Grab the priority model used by the POA. Note that this cannot
// be NOT_SPECIFIED because NOT_SPECIFIED is not allowed with thread
@@ -90,29 +88,37 @@ TAO_RT_Collocation_Resolver::is_collocated (CORBA::Object_ptr object
// because the current thread is of the correct priority :-) and
// we'll simple use the current thread to run the upcall.
if (priority_model == TAO::Portable_Server::Cached_Policies::CLIENT_PROPAGATED)
- return true;
+ return 1;
- // Find the target servant priority. We are really not interested in the
+ // Locate the target servant. We are really not interested in the
// servant itself but in the priority that this servant will run at.
- CORBA::Short target_priority;
+ // Note that the operation name is bogus: it is not used because the
+ // IMPLICIT_ACTIVATION policy is not allowed with SERVER_DECLARED
+ // policy. Similarly, since there is no implicit activation, there
+ // is no chance of waiting on a condition variable and hence the
+ // <wait_occurred_restart_call_ignored> can be ignored.
+ int wait_occurred_restart_call_ignored = 0;
+
+ poa->locate_servant_i ("operation not used",
+ servant_upcall.system_id_,
+ servant_upcall,
+ servant_upcall.current_context_,
+ wait_occurred_restart_call_ignored
+ ACE_ENV_ARG_PARAMETER);
+ ACE_CHECK_RETURN (0);
- if (-1 == poa->find_servant_priority (servant_upcall.system_id_,
- target_priority
- ACE_ENV_ARG_PARAMETER))
- {
- return false;
- };
+ // Get the priority that the servant will run at.
+ CORBA::Short target_priority =
+ servant_upcall.priority ();
// If it matches the current thread's priority, then we are
// collocated. Otherwise we are not.
if (target_priority == current_thread_lane->lane_priority ())
- return true;
+ return 1;
else
- return false;
+ return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_RT_Collocation_Resolver,
ACE_TEXT ("RT_Collocation_Resolver"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/RTPortableServer/RT_Collocation_Resolver.h b/TAO/tao/RTPortableServer/RT_Collocation_Resolver.h
index 64f3016a4bd..99d89bff36d 100644
--- a/TAO/tao/RTPortableServer/RT_Collocation_Resolver.h
+++ b/TAO/tao/RTPortableServer/RT_Collocation_Resolver.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file RT_Collocation_Resolver.h
@@ -27,8 +25,6 @@
#include "tao/Collocation_Resolver.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Collocation_Resolver
*
@@ -48,8 +44,6 @@ public:
ACE_ENV_ARG_DECL) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTPortableServer, TAO_RT_Collocation_Resolver)
ACE_FACTORY_DECLARE (TAO_RTPortableServer, TAO_RT_Collocation_Resolver)
diff --git a/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.cpp b/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.cpp
index 4dc295d06aa..5246d3c2a0e 100644
--- a/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.cpp
+++ b/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.cpp
@@ -1,21 +1,22 @@
// $Id$
-#include "tao/RTPortableServer/RT_Object_Adapter_Factory.h"
+#include "RT_Object_Adapter_Factory.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#include "tao/PortableServer/Object_Adapter.h"
#include "tao/ORB_Core.h"
-#include "tao/RTPortableServer/RT_Servant_Dispatcher.h"
-#include "tao/RTPortableServer/RT_Policy_Validator.h"
-#include "tao/RTPortableServer/RT_Collocation_Resolver.h"
+#include "RT_Servant_Dispatcher.h"
+#include "RT_Policy_Validator.h"
+#include "RT_Collocation_Resolver.h"
ACE_RCSID (RTPortableServer,
RT_Object_Adapter_Factory,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_RT_Object_Adapter_Factory::TAO_RT_Object_Adapter_Factory (void)
+{
+}
TAO_Adapter*
TAO_RT_Object_Adapter_Factory::create (TAO_ORB_Core *orb_core)
@@ -53,8 +54,6 @@ TAO_RT_Object_Adapter_Factory::create (TAO_ORB_Core *orb_core)
return object_adapter;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DEFINE (TAO_RTPortableServer, TAO_RT_Object_Adapter_Factory)
ACE_STATIC_SVC_DEFINE (TAO_RT_Object_Adapter_Factory,
ACE_TEXT ("TAO_RT_Object_Adapter_Factory"),
diff --git a/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.h b/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.h
index 5749011b0e6..21bd46db733 100644
--- a/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.h
+++ b/TAO/tao/RTPortableServer/RT_Object_Adapter_Factory.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file RT_Object_Adapter_Factory.h
@@ -14,7 +13,7 @@
#define TAO_RT_OBJECT_ADAPTER_FACTORY_H
#include /**/ "ace/pre.h"
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/Adapter_Factory.h"
#include "tao/orbconf.h"
@@ -27,19 +26,17 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTPortableServer_Export TAO_RT_Object_Adapter_Factory
: public TAO_Adapter_Factory
{
public:
+ /// Constructor
+ TAO_RT_Object_Adapter_Factory (void);
/// Create adapter.
virtual TAO_Adapter *create (TAO_ORB_Core *orb_core);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_RT_Object_Adapter_Factory)
ACE_FACTORY_DECLARE (TAO_RTPortableServer, TAO_RT_Object_Adapter_Factory)
diff --git a/TAO/tao/RTPortableServer/RT_POA.cpp b/TAO/tao/RTPortableServer/RT_POA.cpp
index 6d4baacc932..43dd02f08cb 100644
--- a/TAO/tao/RTPortableServer/RT_POA.cpp
+++ b/TAO/tao/RTPortableServer/RT_POA.cpp
@@ -1,10 +1,10 @@
-// $Id$
+// @(#) $Id$
-#include "tao/RTPortableServer/RT_POA.h"
+#include "RT_POA.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTPortableServer/RT_Acceptor_Filters.h"
+#include "RT_Acceptor_Filters.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
@@ -28,15 +28,13 @@
#include "ace/Auto_Ptr.h"
#if !defined (__ACE_INLINE__)
-# include "tao/RTPortableServer/RT_POA.i"
+# include "RT_POA.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (RTPortableServer,
RT_POA,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_POA::TAO_RT_POA (const TAO_Root_POA::String &name,
TAO_POA_Manager &poa_manager,
const TAO_POA_Policy_Set &policies,
@@ -80,7 +78,7 @@ TAO_RT_POA::new_POA (const String &name,
TAO_Object_Adapter *object_adapter
ACE_ENV_ARG_DECL)
{
- TAO_RT_POA *poa = 0;
+ TAO_RT_POA *poa;
ACE_NEW_THROW_EX (poa,
TAO_RT_POA (name,
@@ -953,6 +951,4 @@ TAO_RT_POA::id (ACE_ENV_SINGLE_ARG_DECL)
return this->TAO_Regular_POA::id (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RT_POA.h b/TAO/tao/RTPortableServer/RT_POA.h
index 5ae1c845166..d3bbb2816d9 100644
--- a/TAO/tao/RTPortableServer/RT_POA.h
+++ b/TAO/tao/RTPortableServer/RT_POA.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file RT_POA.h
@@ -17,7 +16,7 @@
#include /**/ "ace/pre.h"
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/PortableServer/Regular_POA.h"
#include "tao/orbconf.h"
@@ -25,7 +24,7 @@
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
#define TAO_RT_PORTABLESERVER_SAFE_INCLUDE
-#include "tao/RTPortableServer/RTPortableServerC.h"
+#include "RTPortableServerC.h"
#undef TAO_RT_PORTABLESERVER_SAFE_INCLUDE
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -39,15 +38,13 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Thread_Pool;
class TAO_Thread_Lane;
class TAO_PriorityBandedConnectionPolicy;
-class TAO_RTPortableServer_Export TAO_RT_POA
- : public virtual RTPortableServer::POA
- , public virtual TAO_Regular_POA
+class TAO_RTPortableServer_Export TAO_RT_POA :
+ public virtual RTPortableServer::POA,
+ public virtual TAO_Regular_POA
{
public:
@@ -313,14 +310,12 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
-# include "tao/RTPortableServer/RT_POA.i"
+# include "RT_POA.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RT_POA.i b/TAO/tao/RTPortableServer/RT_POA.i
index 9197a39d399..a0c51ad2e6d 100644
--- a/TAO/tao/RTPortableServer/RT_POA.i
+++ b/TAO/tao/RTPortableServer/RT_POA.i
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-//
// $Id$
// Exception macros
@@ -7,8 +5,6 @@
#include "tao/PortableServer/POA_Guard.h"
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Object_ptr
TAO_RT_POA::create_reference_with_priority (const char * intf,
RTCORBA::Priority priority
@@ -140,5 +136,3 @@ TAO_RT_POA::thread_pool (void) const
{
return this->thread_pool_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTPortableServer/RT_Policy_Validator.cpp b/TAO/tao/RTPortableServer/RT_Policy_Validator.cpp
index 4e11afb2d2e..cd8d742f2be 100644
--- a/TAO/tao/RTPortableServer/RT_Policy_Validator.cpp
+++ b/TAO/tao/RTPortableServer/RT_Policy_Validator.cpp
@@ -1,4 +1,4 @@
-#include "tao/RTPortableServer/RT_Policy_Validator.h"
+#include "RT_Policy_Validator.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -18,9 +18,6 @@ ACE_RCSID (RTPortableServer,
RT_Policy_Validator,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_POA_RT_Policy_Validator::TAO_POA_RT_Policy_Validator (TAO_ORB_Core &orb_core)
: TAO_Policy_Validator (orb_core),
thread_pool_ (0)
@@ -597,6 +594,4 @@ TAO_POA_RT_Policy_Validator::extract_thread_pool (TAO_ORB_Core &orb_core,
return thread_pool;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RT_Policy_Validator.h b/TAO/tao/RTPortableServer/RT_Policy_Validator.h
index 2f96666c544..2c282de4271 100644
--- a/TAO/tao/RTPortableServer/RT_Policy_Validator.h
+++ b/TAO/tao/RTPortableServer/RT_Policy_Validator.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file RT_Policy_Validator.h
@@ -26,12 +24,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/Policy_Validator.h"
#include "tao/RTCORBA/RTCORBA.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Acceptor_Registry;
class TAO_Thread_Pool;
@@ -93,8 +89,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp b/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp
index 45eebeee97f..e3a557c5768 100644
--- a/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp
+++ b/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.cpp
@@ -1,10 +1,9 @@
-
-#include "tao/RTPortableServer/RT_Servant_Dispatcher.h"
+#include "RT_Servant_Dispatcher.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
-#include "tao/RTPortableServer/RT_POA.h"
-
+#include "RT_POA.h"
+#include "tao/RTCORBA/Thread_Pool.h"
#include "tao/ORB_Core.h"
#include "tao/ORB_Core_TSS_Resources.h"
#include "tao/TAO_Server_Request.h"
@@ -16,18 +15,14 @@
#include "tao/debug.h"
#include "tao/CDR.h"
-#include "tao/RTCORBA/Thread_Pool.h"
-
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_string.h"
+
ACE_RCSID (RTPortableServer,
RT_Servant_Dispatcher,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RT_Servant_Dispatcher::~TAO_RT_Servant_Dispatcher (void)
{
}
@@ -84,7 +79,7 @@ TAO_RT_Servant_Dispatcher::pre_invoke_remote_request (
TAO_Protocols_Hooks *tph =
poa.orb_core ().get_protocols_hooks ();
- const char *priority_model = 0;
+ const char *priority_model;
RTCORBA::Priority target_priority = TAO_INVALID_PRIORITY;
// NOT_SPECIFIED PriorityModel processing.
@@ -174,8 +169,8 @@ TAO_RT_Servant_Dispatcher::pre_invoke_remote_request (
ACE_TEXT ("(%P|%t): %s processing using %s ")
ACE_TEXT ("original thread CORBA/native priority %d/%d ")
ACE_TEXT ("not changed\n"),
- ACE_TEXT_CHAR_TO_TCHAR (priority_model),
- ACE_TEXT_CHAR_TO_TCHAR (thread_pool_id),
+ ACE_TEXT_TO_TCHAR_IN (priority_model),
+ ACE_TEXT_TO_TCHAR_IN (thread_pool_id),
pre_invoke_state.original_CORBA_priority_,
pre_invoke_state.original_native_priority_));
@@ -187,8 +182,8 @@ TAO_RT_Servant_Dispatcher::pre_invoke_remote_request (
ACE_TEXT ("(%P|%t): %s processing using %s ")
ACE_TEXT ("original thread CORBA/native priority ")
ACE_TEXT ("not changed\n"),
- ACE_TEXT_CHAR_TO_TCHAR (priority_model),
- ACE_TEXT_CHAR_TO_TCHAR (thread_pool_id)));
+ ACE_TEXT_TO_TCHAR_IN (priority_model),
+ ACE_TEXT_TO_TCHAR_IN (thread_pool_id)));
#endif /* ACE_HAS_THREADS */
@@ -228,8 +223,8 @@ TAO_RT_Servant_Dispatcher::pre_invoke_remote_request (
ACE_TEXT ("%s processing using %s ")
ACE_TEXT ("(%P|%t): original thread CORBA/native priority %d/%d ")
ACE_TEXT ("temporarily changed to CORBA/native priority %d/%d\n"),
- ACE_TEXT_CHAR_TO_TCHAR (priority_model),
- ACE_TEXT_CHAR_TO_TCHAR (thread_pool_id),
+ ACE_TEXT_TO_TCHAR_IN (priority_model),
+ ACE_TEXT_TO_TCHAR_IN (thread_pool_id),
pre_invoke_state.original_CORBA_priority_,
pre_invoke_state.original_native_priority_,
target_priority,
@@ -245,8 +240,8 @@ TAO_RT_Servant_Dispatcher::pre_invoke_remote_request (
ACE_TEXT ("%s processing using %s ")
ACE_TEXT ("(%P|%t): original thread CORBA/native priority %d/%d ")
ACE_TEXT ("is the same as the target priority\n"),
- ACE_TEXT_CHAR_TO_TCHAR (priority_model),
- ACE_TEXT_CHAR_TO_TCHAR (thread_pool_id),
+ ACE_TEXT_TO_TCHAR_IN (priority_model),
+ ACE_TEXT_TO_TCHAR_IN (thread_pool_id),
pre_invoke_state.original_CORBA_priority_,
pre_invoke_state.original_native_priority_));
}
@@ -363,7 +358,7 @@ TAO_RT_Servant_Dispatcher::post_invoke (TAO_Root_POA &poa,
{
// Eat up the exception.
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught: TAO - "
+ "Exception caught: TAO (%P|%t) - "
"Priority_Model_Processing::"
"~Priority_Model_Processing");
}
@@ -399,6 +394,4 @@ TAO_RT_Servant_Dispatcher::create_Root_POA (const ACE_CString &name,
return poa;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
diff --git a/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.h b/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.h
index 138523ff62a..64c083f008b 100644
--- a/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.h
+++ b/TAO/tao/RTPortableServer/RT_Servant_Dispatcher.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,7 +15,7 @@
#define TAO_RT_SERVANT_DISPATCHER_H
#include /**/ "ace/pre.h"
-#include "tao/RTPortableServer/rtportableserver_export.h"
+#include "rtportableserver_export.h"
#include "tao/orbconf.h"
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
@@ -30,13 +30,12 @@
#include "tao/PortableServer/Servant_Dispatcher.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_RT_Servant_Dispatcher
*
* @brief Concrete instantiation of the Servant_Dispatcher strategy.
*
+ *
*/
class TAO_RTPortableServer_Export TAO_RT_Servant_Dispatcher
: public TAO_Servant_Dispatcher
@@ -72,8 +71,6 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTScheduling/Current.cpp b/TAO/tao/RTScheduling/Current.cpp
index 3ac075d66e0..b9f61a67120 100644
--- a/TAO/tao/RTScheduling/Current.cpp
+++ b/TAO/tao/RTScheduling/Current.cpp
@@ -1,5 +1,5 @@
-#include "tao/RTScheduling/Current.h"
-#include "tao/RTScheduling/Distributable_Thread.h"
+#include "Current.h"
+#include "Distributable_Thread.h"
#include "tao/RTCORBA/Priority_Mapping_Manager.h"
#include "tao/RTCORBA/RT_Current.h"
#include "tao/ORB_Core.h"
@@ -13,7 +13,6 @@ ACE_RCSID (RTScheduling,
Current,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> TAO_RTScheduler_Current::guid_counter;
@@ -26,12 +25,10 @@ TAO_DTId_Hash::operator () (const IdType &id) const
TAO_RTScheduler_Current::TAO_RTScheduler_Current (void)
{
-}
-TAO_RTScheduler_Current::~TAO_RTScheduler_Current (void)
-{
}
+
void
TAO_RTScheduler_Current::init (TAO_ORB_Core* orb
ACE_ENV_ARG_DECL)
@@ -328,19 +325,15 @@ TAO_RTScheduler_Current_i::TAO_RTScheduler_Current_i (
previous_current_ (prev_current),
dt_hash_ (dt_hash)
{
- CORBA::Object_var scheduler_obj =
+ CORBA::Object_ptr scheduler_obj =
orb->object_ref_table ().resolve_initial_reference (
"RTScheduler");
- this->scheduler_ = RTScheduling::Scheduler::_narrow (scheduler_obj.in ()
+ this->scheduler_ = RTScheduling::Scheduler::_narrow (scheduler_obj
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-TAO_RTScheduler_Current_i::~TAO_RTScheduler_Current_i (void)
-{
-}
-
void
TAO_RTScheduler_Current_i::begin_scheduling_segment(
const char * name,
@@ -643,11 +636,6 @@ DTTask::DTTask (//ACE_Thread_Manager *manager,
{
}
-DTTask::~DTTask (void)
-{
- delete this->current_;
-}
-
int
DTTask::svc (void)
{
@@ -685,6 +673,7 @@ DTTask::svc (void)
return 0;
}
+
RTScheduling::Current::IdType *
TAO_RTScheduler_Current_i::id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
@@ -736,9 +725,9 @@ TAO_RTScheduler_Current_i::name (void)
return CORBA::string_dup (this->name_.in ());
}
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
void
TAO_RTScheduler_Current_i::cancel_thread (ACE_ENV_SINGLE_ARG_DECL)
@@ -812,7 +801,7 @@ TAO_RTScheduler_Current_i::id (RTScheduling::Current::IdType guid)
}
void
-TAO_RTScheduler_Current_i::name (const char * name)
+TAO_RTScheduler_Current_i::name (char * name)
{
this->name_ = CORBA::string_dup (name);
}
@@ -991,4 +980,3 @@ const char* TAO_RTScheduler_Current::_interface_repository_id (void) const
return "IDL:TAO_RTScheduler_Current:1.0";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/Current.h b/TAO/tao/RTScheduling/Current.h
index bae9d0e22c7..3486c4bef7c 100644
--- a/TAO/tao/RTScheduling/Current.h
+++ b/TAO/tao/RTScheduling/Current.h
@@ -16,23 +16,23 @@
#include /**/ "ace/pre.h"
-#include "tao/RTScheduling/rtscheduler_export.h"
+#include "rtscheduler_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTScheduling/RTScheduler.h"
+#include "RTScheduler.h"
#include "tao/LocalObject.h"
#include "ace/Hash_Map_Manager_T.h"
#include "ace/Task.h"
#include "ace/Atomic_Op.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_RTScheduler_Current_i;
class TAO_TSS_Resources;
+
/**
* @class TAO_DTId_Hash
*
@@ -83,7 +83,6 @@ class TAO_RTScheduler_Export TAO_RTScheduler_Current
static ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> guid_counter;
TAO_RTScheduler_Current (void);
- virtual ~TAO_RTScheduler_Current (void);
void init (TAO_ORB_Core* orb
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
@@ -258,7 +257,9 @@ class TAO_RTScheduler_Export TAO_RTScheduler_Current_i
TAO_RTScheduler_Current_i* prev_current
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- virtual ~TAO_RTScheduler_Current_i (void);
+ virtual ~TAO_RTScheduler_Current_i (void)
+ {
+ };
virtual RTScheduling::DistributableThread_ptr
spawn (RTScheduling::ThreadAction_ptr start,
@@ -326,7 +327,7 @@ class TAO_RTScheduler_Export TAO_RTScheduler_Current_i
void delete_all_currents (void);
const char* name (void);
- void name (const char *);
+ void name (char *);
TAO_ORB_Core* orb (void);
@@ -363,8 +364,6 @@ public:
CORBA::Policy_ptr sched_param,
CORBA::Policy_ptr implicit_sched_param);
- virtual ~DTTask (void);
-
int activate_task (RTCORBA::Priority base_priority,
CORBA::ULong stack_size
ACE_ENV_ARG_DECL_WITH_DEFAULTS);
@@ -384,8 +383,6 @@ public:
CORBA::Policy_var implicit_sched_param_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_RTSCHEDULER_CURRENT_H*/
diff --git a/TAO/tao/RTScheduling/Distributable_Thread.cpp b/TAO/tao/RTScheduling/Distributable_Thread.cpp
index 87c9e02a245..998aafe3a5d 100644
--- a/TAO/tao/RTScheduling/Distributable_Thread.cpp
+++ b/TAO/tao/RTScheduling/Distributable_Thread.cpp
@@ -1,10 +1,8 @@
//$Id$
-#include "tao/RTScheduling/Distributable_Thread.h"
+#include "Distributable_Thread.h"
#include "tao/ORB_Constants.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DistributableThread::TAO_DistributableThread (void)
:state_ (RTScheduling::DistributableThread::ACTIVE)
{
@@ -49,5 +47,3 @@ TAO_DistributableThread_Factory::create_DT (void)
return DT;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/Distributable_Thread.h b/TAO/tao/RTScheduling/Distributable_Thread.h
index 281eb6984cf..e73799bc15b 100644
--- a/TAO/tao/RTScheduling/Distributable_Thread.h
+++ b/TAO/tao/RTScheduling/Distributable_Thread.h
@@ -1,18 +1,12 @@
-// -*- C++ -*-
-
//$Id$
#ifndef DISTRIBUTABLE_THREAD_H
#define DISTRIBUTABLE_THREAD_H
#include "tao/RTScheduling/RTScheduler.h"
-#include "tao/LocalObject.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-class TAO_RTScheduler_Export TAO_DistributableThread:
- public RTScheduling::DistributableThread,
- public TAO_Local_RefCounted_Object
+class TAO_RTScheduler_Export TAO_DistributableThread
+: public RTScheduling::DistributableThread
{
public:
@@ -38,6 +32,4 @@ public:
static RTScheduling::DistributableThread_ptr create_DT (void);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /*DISTRIBUTABLE_THREAD_H*/
diff --git a/TAO/tao/RTScheduling/RTScheduler.cpp b/TAO/tao/RTScheduling/RTScheduler.cpp
index 15eebbb61fe..82eb86ac5b2 100644
--- a/TAO/tao/RTScheduling/RTScheduler.cpp
+++ b/TAO/tao/RTScheduling/RTScheduler.cpp
@@ -1,15 +1,11 @@
// $Id$
-#include "tao/RTScheduling/RTScheduler.h"
-#include "tao/RTScheduling/RTScheduler_Loader.h"
+#include "RTScheduler.h"
+#include "RTScheduler_Loader.h"
ACE_RCSID (RTScheduler, RTScheduler, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RTScheduler_Initializer::TAO_RTScheduler_Initializer (void)
{
ACE_Service_Config::process_directive (ace_svc_desc_TAO_RTScheduler_Loader);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/RTScheduler.h b/TAO/tao/RTScheduling/RTScheduler.h
index 3dbcb0553b9..92c60b13038 100644
--- a/TAO/tao/RTScheduling/RTScheduler.h
+++ b/TAO/tao/RTScheduling/RTScheduler.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
//=============================================================================
@@ -19,16 +17,13 @@
#define TAO_RTSCHEDULER_H_
#include /**/ "ace/pre.h"
-#include "tao/RTScheduling/rtscheduler_export.h"
+#include "rtscheduler_export.h"
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTScheduler_Export TAO_RTScheduler_Initializer
{
public:
@@ -38,10 +33,8 @@ public:
static TAO_RTScheduler_Initializer TAO_RTScheduler_initializer;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#define TAO_RTSCHEDULER_SAFE_INCLUDE
-#include "tao/RTScheduling/RTSchedulerC.h"
+#include "RTSchedulerC.h"
#undef TAO_RTSCHEDULER_SAFE_INCLUDE
#include /**/ "ace/post.h"
diff --git a/TAO/tao/RTScheduling/RTSchedulerA.cpp b/TAO/tao/RTScheduling/RTSchedulerA.cpp
index 38df96e2be8..a3cfd02e3c4 100644
--- a/TAO/tao/RTScheduling/RTSchedulerA.cpp
+++ b/TAO/tao/RTScheduling/RTSchedulerA.cpp
@@ -25,7 +25,7 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
-#include "tao/RTScheduling/RTScheduler.h"
+#include "RTScheduler.h"
#include "tao/AnyTypeCode/Null_RefCount_Policy.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
@@ -36,8 +36,6 @@
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -270,4 +268,3 @@ namespace RTScheduling
&_tao_tc_RTScheduling_Scheduler;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/RTSchedulerC.cpp b/TAO/tao/RTScheduling/RTSchedulerC.cpp
index 4c493789da4..464069748a1 100644
--- a/TAO/tao/RTScheduling/RTSchedulerC.cpp
+++ b/TAO/tao/RTScheduling/RTSchedulerC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/RTScheduling/RTScheduler.h"
+#include "RTScheduler.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
#include "tao/Var_Size_Argument_T.h"
@@ -42,8 +42,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -944,5 +942,3 @@ RTScheduling::Scheduler::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/RTSchedulerC.h b/TAO/tao/RTScheduling/RTSchedulerC.h
index 5d9d5944fc7..4955b9caf07 100644
--- a/TAO/tao/RTScheduling/RTSchedulerC.h
+++ b/TAO/tao/RTScheduling/RTSchedulerC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTScheduling/rtscheduler_export.h"
+#include "rtscheduler_export.h"
#include "tao/PI_Server/ServerRequestInfoC.h"
#include "tao/PI/ClientRequestInfoC.h"
@@ -81,8 +81,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -1281,8 +1279,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp b/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp
index 574b964f843..f6525b3d5fc 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp
+++ b/TAO/tao/RTScheduling/RTScheduler_Initializer.cpp
@@ -2,8 +2,8 @@
//
// $Id$
-#include "tao/RTScheduling/RTScheduler_Initializer.h"
-#include "tao/RTScheduling/Request_Interceptor.h"
+#include "RTScheduler_Initializer.h"
+#include "Request_Interceptor.h"
ACE_RCSID (TAO, RTScheduler_Initializer, "$Id$")
@@ -18,10 +18,6 @@ ACE_RCSID (TAO, RTScheduler_Initializer, "$Id$")
#include "ace/Service_Repository.h"
#include "ace/Svc_Conf.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-static TAO_RTScheduler_Current_var current_cleanup;
-
void
TAO_RTScheduler_ORB_Initializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr info
@@ -67,18 +63,18 @@ void
CORBA::COMPLETED_NO));
ACE_CHECK;
- current_cleanup = this->current_;
-
this->current_->init (tao_info->orb_core ()
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- CORBA::Object_var current_obj = RTScheduling::Current::_narrow (this->current_
+ CORBA::Object_ptr current_obj = RTScheduling::Current::_narrow (this->current_
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
+ CORBA::Object_var safe_current = current_obj;
+
info->register_initial_reference ("RTScheduler_Current",
- current_obj.in ()
+ current_obj
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -135,6 +131,8 @@ void
manager
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
+
+
}
void
@@ -155,12 +153,12 @@ TAO_RTScheduler_ORB_Initializer::post_init (PortableInterceptor::ORBInitInfo_ptr
ACE_DEBUG ((LM_DEBUG,
"In post_init\n"));
- CORBA::Object_var rt_current_obj = info->resolve_initial_references ("RTCurrent"
+ CORBA::Object_ptr rt_current_obj = info->resolve_initial_references ("RTCurrent"
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- RTCORBA::Current_var rt_current = RTCORBA::Current::_narrow (rt_current_obj.in ()
+ RTCORBA::Current_var rt_current = RTCORBA::Current::_narrow (rt_current_obj
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
@@ -174,5 +172,3 @@ TAO_RTScheduler_ORB_Initializer::post_init (PortableInterceptor::ORBInitInfo_ptr
this->current_->rt_current (rt_current.in ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/RTScheduler_Initializer.h b/TAO/tao/RTScheduling/RTScheduler_Initializer.h
index 8b242f9af9e..075af17a661 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Initializer.h
+++ b/TAO/tao/RTScheduling/RTScheduler_Initializer.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
#include "tao/Basic_Types.h"
-#include "tao/RTScheduling/rtscheduler_export.h"
+#include "rtscheduler_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -33,16 +33,17 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTScheduler_Current;
/// RTCORBA ORB initializer.
-class TAO_RTScheduler_ORB_Initializer
- : public virtual PortableInterceptor::ORBInitializer
- , public virtual TAO_Local_RefCounted_Object
+class TAO_RTScheduler_Export TAO_RTScheduler_ORB_Initializer :
+ public virtual PortableInterceptor::ORBInitializer,
+ public virtual TAO_Local_RefCounted_Object
{
public:
+
+
+
virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
@@ -51,17 +52,14 @@ public:
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
-
- TAO_RTScheduler_Current* current_;
+ TAO_RTScheduler_Current* current_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#include /**/ "ace/post.h"
-#endif /* TAO_RTSCHEDULER_INITIALIZER_H */
+#endif /* TAO_RTSCHEDULER__INITIALIZER_H */
diff --git a/TAO/tao/RTScheduling/RTScheduler_Loader.cpp b/TAO/tao/RTScheduling/RTScheduler_Loader.cpp
index bc4f99432bb..2c0507a1f5b 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Loader.cpp
+++ b/TAO/tao/RTScheduling/RTScheduler_Loader.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/RTScheduling/RTScheduler_Loader.h"
-#include "tao/RTScheduling/RTScheduler_Initializer.h"
+#include "RTScheduler_Loader.h"
+#include "RTScheduler_Initializer.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
@@ -11,10 +11,13 @@
ACE_RCSID (TAO, RTScheduler_Loader, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_RTScheduler_Loader::TAO_RTScheduler_Loader (void)
+{
+}
TAO_RTScheduler_Loader::~TAO_RTScheduler_Loader (void)
{
+
}
int
@@ -69,8 +72,6 @@ TAO_RTScheduler_Loader::init (int,
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////////////////////////////////////////////
ACE_FACTORY_DEFINE (TAO_RTScheduler, TAO_RTScheduler_Loader)
diff --git a/TAO/tao/RTScheduling/RTScheduler_Loader.h b/TAO/tao/RTScheduling/RTScheduler_Loader.h
index 92715d11279..2dc82785123 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Loader.h
+++ b/TAO/tao/RTScheduling/RTScheduler_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -17,22 +17,20 @@
#define TAO_RTSCHEDULER_LOADER_H
#include /**/ "ace/pre.h"
-#include "tao/RTScheduling/rtscheduler_export.h"
+#include "rtscheduler_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_RTScheduler_Export TAO_RTScheduler_Loader : public ACE_Service_Object
{
public:
+ /// Constructor.
+ TAO_RTScheduler_Loader (void);
/// Destructor.
virtual ~TAO_RTScheduler_Loader (void);
@@ -42,8 +40,6 @@ public:
ACE_TCHAR* []);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTScheduler, TAO_RTScheduler_Loader)
ACE_FACTORY_DECLARE (TAO_RTScheduler, TAO_RTScheduler_Loader)
diff --git a/TAO/tao/RTScheduling/RTScheduler_Manager.cpp b/TAO/tao/RTScheduling/RTScheduler_Manager.cpp
index 14c269cab6c..506ebde419e 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Manager.cpp
+++ b/TAO/tao/RTScheduling/RTScheduler_Manager.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/RTScheduling/RTScheduler_Manager.h"
+#include "RTScheduler_Manager.h"
#if ! defined (__ACE_INLINE__)
-#include "tao/RTScheduling/RTScheduler_Manager.i"
+#include "RTScheduler_Manager.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(TAO, RT_ORB, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_RTScheduler_Manager::TAO_RTScheduler_Manager (void)
{
@@ -43,4 +41,3 @@ TAO_RTScheduler_Manager::_interface_repository_id (void) const
return "IDL:RTScheduler_Manager:1.0";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/RTScheduler_Manager.h b/TAO/tao/RTScheduling/RTScheduler_Manager.h
index 908922f6bda..ecb45489a13 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Manager.h
+++ b/TAO/tao/RTScheduling/RTScheduler_Manager.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file RTScheduler_Manager.h
@@ -14,10 +13,9 @@
#ifndef TAO_PRIORITY_MAPPING_MANAGER_H
#define TAO_PRIORITY_MAPPING_MANAGER_H
-#include "tao/RTScheduling/RTScheduler.h"
+#include "RTScheduler.h"
#include "tao/LocalObject.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_RTScheduler_Manager;
class TAO_RTScheduler_Manager_var;
@@ -134,10 +132,8 @@ private:
TAO_RTScheduler_Manager_ptr &ptr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/RTScheduling/RTScheduler_Manager.i"
+#include "RTScheduler_Manager.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_PRIORITY_MAPPING_MANAGER_H */
diff --git a/TAO/tao/RTScheduling/RTScheduler_Manager.i b/TAO/tao/RTScheduling/RTScheduler_Manager.i
index da473a28e64..30ec521e2f9 100644
--- a/TAO/tao/RTScheduling/RTScheduler_Manager.i
+++ b/TAO/tao/RTScheduling/RTScheduler_Manager.i
@@ -5,8 +5,6 @@
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// Inline operations for class TAO_RTScheduler_Manager_var
// *************************************************************
@@ -230,5 +228,3 @@ TAO_RTScheduler_Manager::rtscheduler (RTScheduling::Scheduler_ptr rtscheduler
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/RTScheduler_include.pidl b/TAO/tao/RTScheduling/RTScheduler_include.pidl
index 0c743c6794e..c4bd0ba0195 100644
--- a/TAO/tao/RTScheduling/RTScheduler_include.pidl
+++ b/TAO/tao/RTScheduling/RTScheduler_include.pidl
@@ -32,7 +32,7 @@
#ifndef _RT_SCHEDULER_INCLUDE_IDL_
#define _RT_SCHEDULER_INCLUDE_IDL_
-#include "tao/RTScheduling/RTScheduler.pidl"
+#include "../RTScheduling/RTScheduler.pidl"
#endif /* _RT_SCHEDULER_INCLUDE_IDL_ */
diff --git a/TAO/tao/RTScheduling/RTScheduler_includeA.h b/TAO/tao/RTScheduling/RTScheduler_includeA.h
index c0d1fb47a98..d5d3403e8ef 100644
--- a/TAO/tao/RTScheduling/RTScheduler_includeA.h
+++ b/TAO/tao/RTScheduling/RTScheduler_includeA.h
@@ -66,8 +66,6 @@
// TAO_IDL - Generated from
// C:\ACElatest\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_traits.cpp:58
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
@@ -76,8 +74,6 @@ namespace TAO
// TAO_IDL - Generated from
// C:\ACElatest\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:48
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifndef __ACE_INLINE__
// TAO_IDL - Generated from
diff --git a/TAO/tao/RTScheduling/RTScheduler_includeC.h b/TAO/tao/RTScheduling/RTScheduler_includeC.h
index 41af68734d6..c1624376b4d 100644
--- a/TAO/tao/RTScheduling/RTScheduler_includeC.h
+++ b/TAO/tao/RTScheduling/RTScheduler_includeC.h
@@ -66,8 +66,6 @@
// TAO_IDL - Generated from
// C:\ACElatest\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_traits.cpp:58
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Traits specializations.
namespace TAO
{
@@ -76,8 +74,6 @@ namespace TAO
// TAO_IDL - Generated from
// C:\ACElatest\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_root/cdr_op.cpp:48
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#ifndef __ACE_INLINE__
// TAO_IDL - Generated from
diff --git a/TAO/tao/RTScheduling/RTScheduler_includeS.h b/TAO/tao/RTScheduling/RTScheduler_includeS.h
deleted file mode 100644
index 17b1360599e..00000000000
--- a/TAO/tao/RTScheduling/RTScheduler_includeS.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// -*- 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/
-// and
-// Institute for Software Integrated Systems
-// Vanderbilt University
-// Nashville, TN
-// USA
-// http://www.isis.vanderbilt.edu/
-//
-// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
-
-// Skeleton file generation suppressed with command line option -SS
diff --git a/TAO/tao/RTScheduling/Request_Interceptor.cpp b/TAO/tao/RTScheduling/Request_Interceptor.cpp
index d9cba461f36..7e9a52427c5 100644
--- a/TAO/tao/RTScheduling/Request_Interceptor.cpp
+++ b/TAO/tao/RTScheduling/Request_Interceptor.cpp
@@ -1,14 +1,12 @@
//$Id$
-#include "tao/AnyTypeCode/Any.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-
-#include "tao/RTScheduling/Request_Interceptor.h"
-#include "tao/RTScheduling/Current.h"
-#include "tao/RTScheduling/Distributable_Thread.h"
-
+#include "Request_Interceptor.h"
+#include "Current.h"
+#include "Distributable_Thread.h"
#include "tao/TSS_Resources.h"
#include "tao/debug.h"
+#include "tao/AnyTypeCode/Any.h"
+#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_string.h"
@@ -16,11 +14,14 @@ ACE_RCSID (RTScheduling,
Request_Interceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
const IOP::ServiceId
Client_Interceptor::SchedulingInfo = 30;
+Client_Interceptor::Client_Interceptor (void)
+{
+}
+
void
Client_Interceptor::send_request (PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL)
@@ -103,8 +104,7 @@ Client_Interceptor::send_request (PortableInterceptor::ClientRequestInfo_ptr ri
// Scheduler populates the service context with
// scheduling parameters.
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->send_request (ri);
+ current->scheduler ()->send_request (ri);
// If this is a one way request
if (!ri->response_expected ())
@@ -133,10 +133,8 @@ Client_Interceptor::send_poll (PortableInterceptor::ClientRequestInfo_ptr ri
current = static_cast<TAO_RTScheduler_Current_i *> (tss->rtscheduler_current_impl_);
if (current != 0)
- {
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->send_poll (ri);
- }
+ current->scheduler ()->send_poll (ri);
+
}
void
@@ -154,10 +152,7 @@ Client_Interceptor::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri
current = static_cast<TAO_RTScheduler_Current_i *> (tss->rtscheduler_current_impl_);
if (current != 0)
- {
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->receive_reply (ri);
- }
+ current->scheduler ()->receive_reply (ri);
}
void
@@ -203,7 +198,7 @@ Client_Interceptor::receive_exception (PortableInterceptor::ClientRequestInfo_pt
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"Received Exception %s\n",
- ACE_TEXT_CHAR_TO_TCHAR (id)));
+ ACE_TEXT_TO_TCHAR_IN (id)));
// If the remote host threw a THREAD_CANCELLED
@@ -220,8 +215,7 @@ Client_Interceptor::receive_exception (PortableInterceptor::ClientRequestInfo_pt
{
// Inform scheduler that exception was
// received.
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->receive_exception (ri);
+ current->scheduler ()->receive_exception (ri);
}
}
}
@@ -242,10 +236,8 @@ Client_Interceptor::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri
current = static_cast<TAO_RTScheduler_Current_i *> (tss->rtscheduler_current_impl_);
if (current != 0)
- {
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->receive_other (ri);
- }
+ current->scheduler ()->receive_other (ri);
+
}
char*
@@ -333,12 +325,11 @@ Server_Interceptor::receive_request (PortableInterceptor::ServerRequestInfo_ptr
// Scheduler retrieves scheduling parameters
// from request and populates the out
// parameters.
- RTScheduling::Scheduler_var scheduler = new_current->scheduler();
- scheduler->receive_request (ri,
- guid_var.out (),
- name,
- sched_param,
- implicit_sched_param);
+ new_current->scheduler()->receive_request (ri,
+ guid_var.out (),
+ name,
+ sched_param,
+ implicit_sched_param);
if (guid_var.in () == 0)
{
@@ -420,8 +411,8 @@ Server_Interceptor::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
// Inform scheduler that upcall is complete.
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->send_reply (ri ACE_ENV_ARG_PARAMETER);
+ current->scheduler ()->send_reply (ri
+ ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
current->cleanup_DT ();
@@ -459,8 +450,7 @@ Server_Interceptor::send_exception (PortableInterceptor::ServerRequestInfo_ptr r
if (current != 0)
{
// Inform scheduler that upcall is complete.
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->send_exception (ri);
+ current->scheduler ()->send_exception (ri);
current->cleanup_DT ();
current->cleanup_current ();
@@ -485,8 +475,7 @@ Server_Interceptor::send_other (PortableInterceptor::ServerRequestInfo_ptr ri
if (current != 0)
{
// Inform scheduler that upcall is complete.
- RTScheduling::Scheduler_var scheduler = current->scheduler ();
- scheduler->send_other (ri);
+ current->scheduler ()->send_other (ri);
current->cleanup_DT ();
current->cleanup_current ();
@@ -506,5 +495,3 @@ Server_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/RTScheduling/Request_Interceptor.h b/TAO/tao/RTScheduling/Request_Interceptor.h
index 1a8c74a389a..189b5220d47 100644
--- a/TAO/tao/RTScheduling/Request_Interceptor.h
+++ b/TAO/tao/RTScheduling/Request_Interceptor.h
@@ -5,25 +5,23 @@
#ifndef TAO_RTSCHEDULING_REQUEST_INTERCEPTOR_H
#define TAO_RTSCHEDULING_REQUEST_INTERCEPTOR_H
-#include "tao/RTScheduling/rtscheduler_export.h"
-#include "tao/RTScheduling/RTScheduler.h"
+#include "rtscheduler_export.h"
+#include "RTScheduler.h"
#include "ace/Atomic_Op.h"
-#include "tao/RTScheduling/Current.h"
-#include "tao/LocalObject.h"
+#include "Current.h"
#include "tao/PI/PI.h"
#include "tao/PI_Server/PI_Server.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
extern ACE_Atomic_Op<TAO_SYNCH_MUTEX, long> server_guid_counter;
-class TAO_RTScheduler_Export Client_Interceptor:
- public PortableInterceptor::ClientRequestInterceptor,
- public TAO_Local_RefCounted_Object
+class TAO_RTScheduler_Export Client_Interceptor :
+ public PortableInterceptor::ClientRequestInterceptor
{
public:
+ Client_Interceptor (void);
+
// Client_Interceptor (RTScheduling::Current_ptr current);
virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
@@ -59,8 +57,7 @@ public:
};
class TAO_RTScheduler_Export Server_Interceptor :
- public PortableInterceptor::ServerRequestInterceptor,
- public TAO_Local_RefCounted_Object
+ public PortableInterceptor::ServerRequestInterceptor
{
public:
@@ -103,6 +100,4 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_RTSCHEDULING_REQUEST_INTERCEPTOR_H */
diff --git a/TAO/tao/RTScheduling/ThreadAction.h b/TAO/tao/RTScheduling/ThreadAction.h
index e7b7fc530cd..a6cc2f54ea3 100644
--- a/TAO/tao/RTScheduling/ThreadAction.h
+++ b/TAO/tao/RTScheduling/ThreadAction.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//$Id$
#ifndef TAO_ThreadAction_H
#define TAO_ThreadAction_H
@@ -8,9 +6,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/RTScheduling/RTSchedulerC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "RTSchedulerC.h"
class TAO_RTScheduler_Export TAO_ThreadAction:
public RTScheduling::ThreadAction,
@@ -23,6 +19,4 @@ public RTScheduling::ThreadAction,
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /*TAO_ThreadAction_H*/
diff --git a/TAO/tao/Reactive_Connect_Strategy.cpp b/TAO/tao/Reactive_Connect_Strategy.cpp
index 0883b3ee91c..74bddc34ee6 100644
--- a/TAO/tao/Reactive_Connect_Strategy.cpp
+++ b/TAO/tao/Reactive_Connect_Strategy.cpp
@@ -1,8 +1,8 @@
-#include "tao/Reactive_Connect_Strategy.h"
-#include "tao/Connection_Handler.h"
-#include "tao/ORB_Core.h"
-#include "tao/debug.h"
-#include "tao/Transport.h"
+#include "Reactive_Connect_Strategy.h"
+#include "Connection_Handler.h"
+#include "ORB_Core.h"
+#include "debug.h"
+#include "Transport.h"
#include "ace/Synch_Options.h"
@@ -10,9 +10,6 @@ ACE_RCSID(tao,
Reactive_Connect_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Reactive_Connect_Strategy::TAO_Reactive_Connect_Strategy (
TAO_ORB_Core *orb_core)
: TAO_Connect_Strategy (orb_core)
@@ -92,6 +89,7 @@ TAO_Reactive_Connect_Strategy::wait (TAO_Connection_Handler *ch,
return result;
}
+
int
TAO_Reactive_Connect_Strategy::wait (TAO_Transport *t,
ACE_Time_Value *val)
@@ -102,5 +100,3 @@ TAO_Reactive_Connect_Strategy::wait (TAO_Transport *t,
return this->wait (t->connection_handler (),
val);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Reactive_Connect_Strategy.h b/TAO/tao/Reactive_Connect_Strategy.h
index 305b5e9576e..5550e00380d 100644
--- a/TAO/tao/Reactive_Connect_Strategy.h
+++ b/TAO/tao/Reactive_Connect_Strategy.h
@@ -15,20 +15,15 @@
#include /**/ "ace/pre.h"
-#include "tao/Connect_Strategy.h"
+#include "Connect_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+class TAO_Connector;
class ACE_Time_Value;
class ACE_Synch_Options;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_Connector;
/**
* @class TAO_Reactive_Connect_Strategy
@@ -62,8 +57,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-#endif /* TAO_REACTIVE_CONNECT_STRATEGY_H */
+#endif /*TAO_REACTIVE_CONNECT_STRATEGY_H*/
diff --git a/TAO/tao/Reactive_Flushing_Strategy.cpp b/TAO/tao/Reactive_Flushing_Strategy.cpp
index ab76a31f168..15761dbcb14 100644
--- a/TAO/tao/Reactive_Flushing_Strategy.cpp
+++ b/TAO/tao/Reactive_Flushing_Strategy.cpp
@@ -1,18 +1,15 @@
// -*- C++ -*-
// $Id$
-#include "tao/Reactive_Flushing_Strategy.h"
-#include "tao/Transport.h"
-#include "tao/ORB_Core.h"
-#include "tao/Queued_Message.h"
+#include "Reactive_Flushing_Strategy.h"
+#include "Transport.h"
+#include "ORB_Core.h"
+#include "Queued_Message.h"
ACE_RCSID (tao,
Reactive_Flushing_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO_Reactive_Flushing_Strategy::schedule_output (TAO_Transport *transport)
{
@@ -79,5 +76,3 @@ TAO_Reactive_Flushing_Strategy::flush_transport (TAO_Transport *transport)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Reactive_Flushing_Strategy.h b/TAO/tao/Reactive_Flushing_Strategy.h
index 56896b01f95..27041a0be5a 100644
--- a/TAO/tao/Reactive_Flushing_Strategy.h
+++ b/TAO/tao/Reactive_Flushing_Strategy.h
@@ -15,14 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/Flushing_Strategy.h"
+#include "Flushing_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Reactive_Flushing_Strategy
*
@@ -39,8 +37,6 @@ public:
virtual int flush_transport (TAO_Transport *transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REACTIVE_FLUSHING_STRATEGY_H */
diff --git a/TAO/tao/Refcounted_ObjectKey.cpp b/TAO/tao/Refcounted_ObjectKey.cpp
index 9e8a02109bb..7bafb1bc50b 100644
--- a/TAO/tao/Refcounted_ObjectKey.cpp
+++ b/TAO/tao/Refcounted_ObjectKey.cpp
@@ -1,18 +1,15 @@
//$Id$
-#include "tao/Refcounted_ObjectKey.h"
+#include "Refcounted_ObjectKey.h"
#include "ace/Log_Msg.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Refcounted_ObjectKey.inl"
+#include "Refcounted_ObjectKey.inl"
#endif /* defined INLINE */
ACE_RCSID(tao,
Refcounted_ObjectKey,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Refcounted_ObjectKey::Refcounted_ObjectKey (const TAO::ObjectKey &key)
: object_key_ (key)
, ref_count_ (1)
@@ -37,5 +34,3 @@ TAO::Refcounted_ObjectKey::decr_refcount (void)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Refcounted_ObjectKey.h b/TAO/tao/Refcounted_ObjectKey.h
index 4143f1e8af7..297ec6fd654 100644
--- a/TAO/tao/Refcounted_ObjectKey.h
+++ b/TAO/tao/Refcounted_ObjectKey.h
@@ -23,8 +23,6 @@
#include "tao/Object_KeyC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -65,10 +63,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Refcounted_ObjectKey.inl"
+#include "Refcounted_ObjectKey.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Refcounted_ObjectKey.inl b/TAO/tao/Refcounted_ObjectKey.inl
index be9f8f8496d..c829e6b45b0 100644
--- a/TAO/tao/Refcounted_ObjectKey.inl
+++ b/TAO/tao/Refcounted_ObjectKey.inl
@@ -1,20 +1,15 @@
// -*- C++ -*-
-//
// $Id$
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE long
TAO::Refcounted_ObjectKey::incr_refcount (void)
{
return ++this->ref_count_;
}
+
+
ACE_INLINE const TAO::ObjectKey &
TAO::Refcounted_ObjectKey::object_key (void) const
{
return this->object_key_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Remote_Invocation.cpp b/TAO/tao/Remote_Invocation.cpp
index 1e6ea8b5426..c19332acb84 100644
--- a/TAO/tao/Remote_Invocation.cpp
+++ b/TAO/tao/Remote_Invocation.cpp
@@ -1,21 +1,19 @@
//$Id$
-#include "tao/Remote_Invocation.h"
-#include "tao/Profile.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/Stub.h"
-#include "tao/Transport.h"
-#include "tao/Connection_Handler.h"
-#include "tao/operation_details.h"
-#include "tao/ORB_Core.h"
-#include "tao/Protocols_Hooks.h"
-#include "tao/debug.h"
+#include "Remote_Invocation.h"
+#include "Profile.h"
+#include "Profile_Transport_Resolver.h"
+#include "Stub.h"
+#include "Transport.h"
+#include "Connection_Handler.h"
+#include "operation_details.h"
+#include "ORB_Core.h"
+#include "Protocols_Hooks.h"
+#include "debug.h"
ACE_RCSID (tao,
Remote_Invocation,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Remote_Invocation::Remote_Invocation (
@@ -27,8 +25,7 @@ namespace TAO
resolver.object (),
resolver.stub (),
detail,
- response_expected,
- true /* request_is_remote */ )
+ response_expected)
, resolver_ (resolver)
{
}
@@ -203,5 +200,3 @@ namespace TAO
return TAO_INVOKE_SUCCESS;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Remote_Invocation.h b/TAO/tao/Remote_Invocation.h
index 9bb187a3ea8..555d198afa7 100644
--- a/TAO/tao/Remote_Invocation.h
+++ b/TAO/tao/Remote_Invocation.h
@@ -23,8 +23,6 @@
#include "tao/Invocation_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Target_Specification;
class TAO_OutputCDR;
@@ -95,8 +93,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_REMOTE_INVOCATION_H*/
diff --git a/TAO/tao/Remote_Object_Proxy_Broker.cpp b/TAO/tao/Remote_Object_Proxy_Broker.cpp
index fd4bc75cde0..3ec43f69ed7 100644
--- a/TAO/tao/Remote_Object_Proxy_Broker.cpp
+++ b/TAO/tao/Remote_Object_Proxy_Broker.cpp
@@ -1,11 +1,11 @@
-#include "tao/Remote_Object_Proxy_Broker.h"
-#include "tao/CORBA_String.h"
-#include "tao/UB_String_Arguments.h"
-#include "tao/Special_Basic_Arguments.h"
-#include "tao/Invocation_Adapter.h"
-#include "tao/IFR_Client_Adapter.h"
-#include "tao/ORB_Core.h"
-#include "tao/SystemException.h"
+#include "Remote_Object_Proxy_Broker.h"
+#include "CORBA_String.h"
+#include "UB_String_Arguments.h"
+#include "Special_Basic_Arguments.h"
+#include "Invocation_Adapter.h"
+#include "IFR_Client_Adapter.h"
+#include "ORB_Core.h"
+#include "SystemException.h"
#include "ace/Dynamic_Service.h"
@@ -13,9 +13,6 @@ ACE_RCSID (tao,
Remote_Object_Proxy_Broker,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
CORBA::Boolean
@@ -148,5 +145,3 @@ the_tao_remote_object_proxy_broker (void)
static TAO::Remote_Object_Proxy_Broker the_broker;
return &the_broker;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Remote_Object_Proxy_Broker.h b/TAO/tao/Remote_Object_Proxy_Broker.h
index eab7f29e5b7..9541b56abdb 100644
--- a/TAO/tao/Remote_Object_Proxy_Broker.h
+++ b/TAO/tao/Remote_Object_Proxy_Broker.h
@@ -26,8 +26,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -73,8 +71,6 @@ namespace TAO
TAO::Remote_Object_Proxy_Broker *the_tao_remote_object_proxy_broker (void);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REMOTE_OBJECT_PROXY_BROKER_H */
diff --git a/TAO/tao/Reply_Dispatcher.cpp b/TAO/tao/Reply_Dispatcher.cpp
index 278f4463203..9f8146c7bd7 100644
--- a/TAO/tao/Reply_Dispatcher.cpp
+++ b/TAO/tao/Reply_Dispatcher.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Reply_Dispatcher.h"
+#include "Reply_Dispatcher.h"
ACE_RCSID (tao,
Reply_Dispatcher,
@@ -10,8 +10,6 @@ ACE_RCSID (tao,
#include "tao/Reply_Dispatcher.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Reply_Dispatcher::TAO_Reply_Dispatcher (void)
// Just an invalid reply status.
@@ -23,5 +21,3 @@ TAO_Reply_Dispatcher::TAO_Reply_Dispatcher (void)
TAO_Reply_Dispatcher::~TAO_Reply_Dispatcher (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Reply_Dispatcher.h b/TAO/tao/Reply_Dispatcher.h
index 4f4c16e879b..63cd7683422 100644
--- a/TAO/tao/Reply_Dispatcher.h
+++ b/TAO/tao/Reply_Dispatcher.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward Declarations.
class TAO_GIOP_Message_State;
class TAO_GIOP_Message_Version;
@@ -89,8 +87,6 @@ protected:
CORBA::ULong reply_status_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Reply_Dispatcher.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Reply_Dispatcher.i b/TAO/tao/Reply_Dispatcher.i
index e390ec5911c..549263801ff 100644
--- a/TAO/tao/Reply_Dispatcher.i
+++ b/TAO/tao/Reply_Dispatcher.i
@@ -1,14 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_Reply_Dispatcher::reply_status (void) const
{
return this->reply_status_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Request_Dispatcher.cpp b/TAO/tao/Request_Dispatcher.cpp
index 3663d1ee49e..4e1d483a6c3 100644
--- a/TAO/tao/Request_Dispatcher.cpp
+++ b/TAO/tao/Request_Dispatcher.cpp
@@ -1,15 +1,13 @@
// $Id$
-#include "tao/Request_Dispatcher.h"
-#include "tao/TAO_Server_Request.h"
-#include "tao/ORB_Core.h"
+#include "Request_Dispatcher.h"
+#include "TAO_Server_Request.h"
+#include "ORB_Core.h"
ACE_RCSID (tao,
Request_Dispatcher,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Request_Dispatcher::~TAO_Request_Dispatcher (void)
{
}
@@ -27,5 +25,3 @@ TAO_Request_Dispatcher::dispatch (TAO_ORB_Core *orb_core,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Request_Dispatcher.h b/TAO/tao/Request_Dispatcher.h
index a06f4462c6b..0c6ebba06f3 100644
--- a/TAO/tao/Request_Dispatcher.h
+++ b/TAO/tao/Request_Dispatcher.h
@@ -28,8 +28,6 @@
#include "tao/Pseudo_VarOut_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_ServerRequest;
@@ -61,8 +59,6 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REQUEST_DISPATCHER_H */
diff --git a/TAO/tao/Resource_Factory.cpp b/TAO/tao/Resource_Factory.cpp
index 2f629c3331b..7ab5c57e770 100644
--- a/TAO/tao/Resource_Factory.cpp
+++ b/TAO/tao/Resource_Factory.cpp
@@ -1,8 +1,8 @@
// $Id$
-#include "tao/Resource_Factory.h"
-#include "tao/Protocol_Factory.h"
-#include "tao/orbconf.h"
+#include "Resource_Factory.h"
+#include "Protocol_Factory.h"
+#include "orbconf.h"
#include "ace/ACE.h"
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Protocol_Item::TAO_Protocol_Item (const ACE_CString &name)
: name_ (name),
factory_ (0),
@@ -90,11 +88,6 @@ TAO_Resource_Factory::get_acceptor_registry (void)
return 0;
}
-void
-TAO_Resource_Factory::use_local_memory_pool (bool)
-{
-}
-
ACE_Allocator *
TAO_Resource_Factory::input_cdr_dblock_allocator (void)
{
@@ -223,4 +216,3 @@ TAO_Resource_Factory::load_default_protocols (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Resource_Factory.h b/TAO/tao/Resource_Factory.h
index 128a72667e0..65ec7222957 100644
--- a/TAO/tao/Resource_Factory.h
+++ b/TAO/tao/Resource_Factory.h
@@ -15,26 +15,17 @@
#define TAO_RESOURCE_FACTORY_H
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-#include "ace/Service_Object.h"
#include "ace/Unbounded_Set.h"
#include "ace/SString.h"
#include "ace/CDR_Base.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/TAO_Export.h"
class TAO_Protocol_Factory;
class TAO_Acceptor_Registry;
@@ -45,6 +36,8 @@ class TAO_Connection_Purging_Strategy;
class TAO_LF_Strategy;
class TAO_Codeset_Manager;
+class ACE_Lock;
+
// ****************************************************************
class TAO_Export TAO_Protocol_Item
@@ -69,10 +62,9 @@ public:
void factory (TAO_Protocol_Factory *factory, int owner = 0);
private:
-
- // Disallow copying and assignment.
- TAO_Protocol_Item (const TAO_Protocol_Item&);
- void operator= (const TAO_Protocol_Item&);
+ // Prohibited
+ ACE_UNIMPLEMENTED_FUNC (TAO_Protocol_Item (const TAO_Protocol_Item&))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Protocol_Item&))
private:
/// Protocol factory name.
@@ -153,9 +145,6 @@ public:
/// Return a connector to be utilized.
virtual TAO_Connector_Registry *get_connector_registry (void);
- /// Return the Allocator's memory pool type
- virtual void use_local_memory_pool (bool);
-
/// @name Access the input CDR allocators.
//@{
virtual ACE_Allocator* input_cdr_dblock_allocator (void);
@@ -264,8 +253,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_RESOURCE_FACTORY_H */
diff --git a/TAO/tao/Resume_Handle.cpp b/TAO/tao/Resume_Handle.cpp
index 6ce7297a70f..836e592e6a1 100644
--- a/TAO/tao/Resume_Handle.cpp
+++ b/TAO/tao/Resume_Handle.cpp
@@ -1,20 +1,16 @@
-#include "tao/Resume_Handle.h"
-#include "tao/ORB_Core.h"
-#include "debug.h"
+#include "Resume_Handle.h"
+#include "ORB_Core.h"
#include "ace/Reactor.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Resume_Handle.inl"
+# include "Resume_Handle.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (tao,
- Resume_Handle,
+ACE_RCSID (tao,
+ Resume_Handle,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_Resume_Handle::resume_handle (void)
{
@@ -31,51 +27,3 @@ TAO_Resume_Handle::resume_handle (void)
// Set the flag, so that we dont resume again..
this->flag_ = TAO_HANDLE_ALREADY_RESUMED;
}
-
-void
-TAO_Resume_Handle::handle_input_return_value_hook (int& return_value)
-{
- // RT8248: The return value is only changed from 1 to 0 if:
- // 1) the handle_input return value wants an immediate callback
- // on the handle (i.e. will return "1")
- // 2) this->resume_handle was already called
- // 3) reactor->resume_handler was called by this->resume_handle
- // The value is changed because you can't ask for an immediate callback
- // on a handle that you have already given up ownership of. (RT8248)
- if ( return_value == 1 &&
- this->flag_ == TAO_HANDLE_ALREADY_RESUMED &&
- this->orb_core_ &&
- this->orb_core_->reactor ()->resumable_handler () &&
- this->handle_ != ACE_INVALID_HANDLE)
- {
- // a return value of "1" means "call me back immediately;
- // but we can't "call me back immediately" on an
- // already-resumed handle
- return_value = 0;
-
- if (TAO_debug_level > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - Resume_Handle::handle_input_return_value_hook, "
- "overriding return value of 1 with retval = %d\n",
- return_value));
- }
- }
- else if ( return_value == -1 )
- {
- // this covers the "connection close" case, where you want
- // to leave the handle suspended if you're return -1 to
- // remove the handle from the Reactor. (See ChangeLog entry
- // Fri Dec 16 14:40:54 2005)
- this->flag_ = TAO_HANDLE_LEAVE_SUSPENDED;
-
- if (TAO_debug_level > 6)
- {
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - Resume_Handle::handle_input_return_value_hook, "
- "handle_input returning -1, so handle is not resumed.\n"));
- }
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Resume_Handle.h b/TAO/tao/Resume_Handle.h
index 9fd1f4949e9..44aed27e266 100644
--- a/TAO/tao/Resume_Handle.h
+++ b/TAO/tao/Resume_Handle.h
@@ -15,16 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
/**
@@ -66,19 +62,13 @@ public:
/// Allow the users of this class to change the underlying flag.
void set_flag (TAO_Handle_Resume_Flag fl);
- /// Assignment operator
+ /// Equal to operator..
TAO_Resume_Handle &operator= (const TAO_Resume_Handle &rhs);
/// Resume the handle in the reactor only if the ORB uses a TP
- /// reactor. Else we don't resume the handle.
+ /// reactor. Else we dont resume the handle.
void resume_handle (void);
- // Hook method called at the end of a connection handler's
- // handle_input function. Might override the handle_input
- // return value or change the resume_handler's flag_ value.
- void handle_input_return_value_hook (int& return_value);
-
-
private:
/// Our ORB Core.
@@ -92,10 +82,8 @@ private:
TAO_Handle_Resume_Flag flag_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Resume_Handle.inl"
+# include "Resume_Handle.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Resume_Handle.inl b/TAO/tao/Resume_Handle.inl
index e89466fd4e2..38aae6740f1 100644
--- a/TAO/tao/Resume_Handle.inl
+++ b/TAO/tao/Resume_Handle.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Resume_Handle::TAO_Resume_Handle (TAO_ORB_Core *orb_core,
ACE_HANDLE h)
@@ -18,6 +15,9 @@ TAO_Resume_Handle::~TAO_Resume_Handle (void)
{
if (this->flag_ == TAO_HANDLE_RESUMABLE)
this->resume_handle ();
+
+ this->orb_core_ = 0;
+ this->handle_ = ACE_INVALID_HANDLE;
}
@@ -36,5 +36,3 @@ TAO_Resume_Handle::operator= (const TAO_Resume_Handle &rhs)
return *this;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Seq_Out_T.cpp b/TAO/tao/Seq_Out_T.cpp
index 02bc2c7f89f..89b13ea1890 100644
--- a/TAO/tao/Seq_Out_T.cpp
+++ b/TAO/tao/Seq_Out_T.cpp
@@ -1,12 +1,14 @@
-// $Id$
+#ifndef TAO_SEQ_OUT_T_C
+#define TAO_SEQ_OUT_T_C
-#ifndef TAO_SEQ_OUT_T_CPP
-#define TAO_SEQ_OUT_T_CPP
-
-#include "tao/Seq_Out_T.h"
+#include "Seq_Out_T.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Seq_Out_T.inl"
+#include "Seq_Out_T.inl"
#endif /* __ACE_INLINE__ */
-#endif /* TAO_SEQUENCE_OUT_T_CPP */
+ACE_RCSID (tao,
+ Sequence_Out_T,
+ "$Id$")
+
+#endif /*TAO_SEQUENCE_OUT_T_C*/
diff --git a/TAO/tao/Seq_Out_T.h b/TAO/tao/Seq_Out_T.h
index 1544f24c9ee..895c4f9b62b 100644
--- a/TAO/tao/Seq_Out_T.h
+++ b/TAO/tao/Seq_Out_T.h
@@ -18,7 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Seq_Out_T
@@ -83,11 +82,9 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Seq_Out_T.inl"
+#include "Seq_Out_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/TAO/tao/Seq_Out_T.inl b/TAO/tao/Seq_Out_T.inl
index da3a0e8b95b..c26815ff9cb 100644
--- a/TAO/tao/Seq_Out_T.inl
+++ b/TAO/tao/Seq_Out_T.inl
@@ -1,9 +1,5 @@
// -*- C++ -*-
-//
//$Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T, typename T_var, typename T_elem>
ACE_INLINE
TAO_Seq_Out_T<T,T_var,T_elem>::TAO_Seq_Out_T (T *& p)
@@ -156,5 +152,3 @@ TAO_MngSeq_Out_T<T,T_var,T_elem>::operator[] (CORBA::ULong index)
{
return this->ptr_->operator[] (index);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Seq_Var_T.cpp b/TAO/tao/Seq_Var_T.cpp
index e8e38e2eddb..04d36e7dafa 100644
--- a/TAO/tao/Seq_Var_T.cpp
+++ b/TAO/tao/Seq_Var_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_SEQ_VAR_T_CPP
-#define TAO_SEQ_VAR_T_CPP
+#ifndef TAO_SEQ_VAR_T_C
+#define TAO_SEQ_VAR_T_C
#include "tao/Seq_Var_T.h"
@@ -9,15 +9,26 @@
#include "tao/Seq_Var_T.inl"
#endif /* __ACE_INLINE__ */
-#include "ace/OS_Memory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Seq_VarOut_T,
+ "$Id$")
+
template<typename T, typename T_elem>
TAO_Seq_Var_Base_T<T,T_elem>::TAO_Seq_Var_Base_T (
- const TAO_Seq_Var_Base_T<T,T_elem> & p)
- : ptr_ (p.ptr_ ? new T (*p.ptr_) : 0)
+ const TAO_Seq_Var_Base_T<T,T_elem> & p
+ )
{
+ if (p.ptr_)
+ {
+ ACE_NEW (this->ptr_,
+ T (*p.ptr_));
+ }
+ else
+ {
+ this->ptr_ = 0;
+ }
}
// ****************************************************************************
@@ -25,15 +36,34 @@ TAO_Seq_Var_Base_T<T,T_elem>::TAO_Seq_Var_Base_T (
template<typename T, typename T_elem>
TAO_FixedSeq_Var_T<T,T_elem> &
TAO_FixedSeq_Var_T<T,T_elem>::operator= (
- const TAO_FixedSeq_Var_T<T,T_elem> & p)
+ const TAO_FixedSeq_Var_T<T,T_elem> & p
+ )
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_FixedSeq_Var_T<T,T_elem> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this != &p)
+ {
+ if (p.ptr_ == 0)
+ {
+ delete this->ptr_;
+ this->ptr_ = 0;
+ }
+ else
+ {
+ T * deep_copy = 0;
+ ACE_NEW_RETURN (
+ deep_copy,
+ T (*p.ptr_),
+ *this
+ );
+
+ if (deep_copy != 0)
+ {
+ T * tmp = deep_copy;
+ deep_copy = this->ptr_;
+ this->ptr_ = tmp;
+ delete deep_copy;
+ }
+ }
+ }
return *this;
}
@@ -43,13 +73,13 @@ template<typename T, typename T_elem>
TAO_FixedSeq_Var_T<T,T_elem> &
TAO_FixedSeq_Var_T<T,T_elem>::operator= (const T & p)
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_FixedSeq_Var_T<T,T_elem> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this->ptr_ != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_,
+ T (p),
+ *this);
+ }
return *this;
}
@@ -58,15 +88,35 @@ TAO_FixedSeq_Var_T<T,T_elem>::operator= (const T & p)
template<typename T, typename T_elem>
TAO_VarSeq_Var_T<T,T_elem> &
-TAO_VarSeq_Var_T<T,T_elem>::operator= (const TAO_VarSeq_Var_T<T,T_elem> & p)
+TAO_VarSeq_Var_T<T,T_elem>::operator= (
+ const TAO_VarSeq_Var_T<T,T_elem> & p
+ )
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_VarSeq_Var_T<T,T_elem> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this != &p)
+ {
+ if (p.ptr_ == 0)
+ {
+ delete this->ptr_;
+ this->ptr_ = 0;
+ }
+ else
+ {
+ T * deep_copy = 0;
+ ACE_NEW_RETURN (
+ deep_copy,
+ T (*p.ptr_),
+ *this
+ );
+
+ if (deep_copy != 0)
+ {
+ T * tmp = deep_copy;
+ deep_copy = this->ptr_;
+ this->ptr_ = tmp;
+ delete deep_copy;
+ }
+ }
+ }
return *this;
}
@@ -79,17 +129,33 @@ TAO_MngSeq_Var_T<T,T_elem>::operator= (
const TAO_MngSeq_Var_T<T,T_elem> & p
)
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_MngSeq_Var_T<T,T_elem> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this != &p)
+ {
+ if (p.ptr_ == 0)
+ {
+ delete this->ptr_;
+ this->ptr_ = 0;
+ }
+ else
+ {
+ T * deep_copy = 0;
+ ACE_NEW_RETURN (
+ deep_copy,
+ T (*p.ptr_),
+ *this
+ );
+
+ if (deep_copy != 0)
+ {
+ T * tmp = deep_copy;
+ deep_copy = this->ptr_;
+ this->ptr_ = tmp;
+ delete deep_copy;
+ }
+ }
+ }
return *this;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_SEQ_VAR_T_CPP */
+#endif /* TAO_SEQ_VAR_T_C */
diff --git a/TAO/tao/Seq_Var_T.h b/TAO/tao/Seq_Var_T.h
index 9b3e4f38193..c5c401f8f5b 100644
--- a/TAO/tao/Seq_Var_T.h
+++ b/TAO/tao/Seq_Var_T.h
@@ -19,9 +19,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_Memory.h"
/**
* @class TAO_Seq_Var_Base_T
@@ -86,7 +84,6 @@ public:
TAO_FixedSeq_Var_T & operator= (const TAO_FixedSeq_Var_T<T,T_elem> &);
T_elem & operator[] (CORBA::ULong index);
- const T_elem & operator[] (CORBA::ULong index) const;
// Fixed-size base types only.
TAO_FixedSeq_Var_T & operator= (const T &);
@@ -111,7 +108,6 @@ public:
TAO_VarSeq_Var_T & operator= (const TAO_VarSeq_Var_T<T,T_elem> &);
T_elem & operator[] (CORBA::ULong index);
- const T_elem & operator[] (CORBA::ULong index) const;
// Variable-size base types only.
operator T *& ();
@@ -143,10 +139,10 @@ public:
T_elem operator[] (CORBA::ULong index);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
+
#if defined (__ACE_INLINE__)
-#include "tao/Seq_Var_T.inl"
+#include "Seq_Var_T.inl"
#endif /* defined INLINE */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/TAO/tao/Seq_Var_T.inl b/TAO/tao/Seq_Var_T.inl
index 1d5209183fb..b625dac9a6e 100644
--- a/TAO/tao/Seq_Var_T.inl
+++ b/TAO/tao/Seq_Var_T.inl
@@ -1,8 +1,4 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+//$Id$
template<typename T, typename T_elem>
ACE_INLINE
@@ -152,35 +148,25 @@ TAO_FixedSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index)
return this->ptr_->operator[] (index);
}
-template<typename T, typename T_elem>
-ACE_INLINE
-const T_elem &
-TAO_FixedSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index) const
-{
- return this->ptr_->operator[] (index);
-}
-
// ***************************************************************
template<typename T, typename T_elem>
ACE_INLINE
TAO_VarSeq_Var_T<T,T_elem>::TAO_VarSeq_Var_T (void)
-{
-}
+{}
template<typename T, typename T_elem>
ACE_INLINE
TAO_VarSeq_Var_T<T,T_elem>::TAO_VarSeq_Var_T (T * p)
: TAO_Seq_Var_Base_T<T,T_elem> (p)
-{
-}
+{}
template<typename T, typename T_elem>
TAO_VarSeq_Var_T<T,T_elem>::TAO_VarSeq_Var_T (
- const TAO_VarSeq_Var_T<T,T_elem> & p)
+ const TAO_VarSeq_Var_T<T,T_elem> & p
+ )
: TAO_Seq_Var_Base_T<T,T_elem> (p)
-{
-}
+{}
template<typename T, typename T_elem>
ACE_INLINE
@@ -208,14 +194,6 @@ TAO_VarSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index)
return this->ptr_->operator[] (index);
}
-template<typename T, typename T_elem>
-ACE_INLINE
-const T_elem &
-TAO_VarSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index) const
-{
- return this->ptr_->operator[] (index);
-}
-
// ***************************************************************
template<typename T, typename T_elem>
@@ -227,15 +205,14 @@ template<typename T, typename T_elem>
ACE_INLINE
TAO_MngSeq_Var_T<T,T_elem>::TAO_MngSeq_Var_T (T * p)
: TAO_Seq_Var_Base_T<T,T_elem> (p)
-{
-}
+{}
template<typename T, typename T_elem>
TAO_MngSeq_Var_T<T,T_elem>::TAO_MngSeq_Var_T (
- const TAO_MngSeq_Var_T<T,T_elem> & p)
+ const TAO_MngSeq_Var_T<T,T_elem> & p
+ )
: TAO_Seq_Var_Base_T<T,T_elem> (p)
-{
-}
+{}
template<typename T, typename T_elem>
ACE_INLINE
@@ -262,5 +239,3 @@ TAO_MngSeq_Var_T<T,T_elem>::operator[] (CORBA::ULong index)
{
return this->ptr_->operator[] (index);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Sequence.cpp b/TAO/tao/Sequence.cpp
index 20c274d8a98..0529d2d48dd 100644
--- a/TAO/tao/Sequence.cpp
+++ b/TAO/tao/Sequence.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/Sequence.h"
+#include "Sequence.h"
#if !defined (__ACE_INLINE__)
#include "tao/Sequence.i"
#endif /* __ACE_INLINE__ */
-#include "tao/SystemException.h"
+#include "SystemException.h"
#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
# include "ace/Message_Block.h"
@@ -23,8 +23,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// Operations for class TAO_Base_Sequence
// *************************************************************
@@ -66,7 +64,7 @@ TAO_Base_Sequence::check_bounds (char const * filename,
ACE_ERROR ((LM_ERROR,
"Access error in TAO_Base_Sequence file=%s, line=%u, "
"idx=%u, max=%u\n",
- ACE_TEXT_CHAR_TO_TCHAR (filename),
+ ACE_TEXT_TO_TCHAR_IN (filename),
lineno,
tao_idx,
tao_max));
@@ -1112,5 +1110,3 @@ operator!= (const TAO_Unbounded_Sequence<CORBA::Octet> & lhs,
{
return !(lhs == rhs);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Sequence.h b/TAO/tao/Sequence.h
index 641a2c86f9d..a0e39e1838b 100644
--- a/TAO/tao/Sequence.h
+++ b/TAO/tao/Sequence.h
@@ -25,17 +25,13 @@
#include "tao/orbconf.h"
#include "tao/default_environment.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
}
+class ACE_Message_Block;
+
/**
* @class TAO_Base_Sequence
*
@@ -661,8 +657,6 @@ TAO_Export bool operator!= (const TAO_Unbounded_Sequence<CORBA::Octet> &l,
// ****************************************************************
-TAO_END_VERSIONED_NAMESPACE_DECL
-
/**
* @brief Safe assertions without including Log_Msg.h
*/
diff --git a/TAO/tao/Sequence.i b/TAO/tao/Sequence.i
index 1293e10fe7b..655bf0f4741 100644
--- a/TAO/tao/Sequence.i
+++ b/TAO/tao/Sequence.i
@@ -1,12 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// Operations on the unbounded sequence class.
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Base_Sequence::TAO_Base_Sequence (void)
: maximum_ (0),
@@ -299,5 +295,3 @@ TAO_Unbounded_Sequence<CORBA::Octet>::mb (void) const
return this->mb_;
}
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Sequence_T.cpp b/TAO/tao/Sequence_T.cpp
index 2d57569e8fd..2c5d5bea180 100644
--- a/TAO/tao/Sequence_T.cpp
+++ b/TAO/tao/Sequence_T.cpp
@@ -1,10 +1,10 @@
// $Id$
-#ifndef TAO_SEQUENCE_T_CPP
-#define TAO_SEQUENCE_T_CPP
+#ifndef TAO_SEQUENCE_T_C
+#define TAO_SEQUENCE_T_C
-#include "tao/Sequence_T.h"
-#include "tao/Array_VarOut_T.h"
+#include "Sequence_T.h"
+#include "Array_VarOut_T.h"
#include "ace/OS_Memory.h"
@@ -14,7 +14,9 @@
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Sequence_T,
+ "$Id$")
template <typename T>
TAO_Unbounded_Sequence<T>::TAO_Unbounded_Sequence (
@@ -135,18 +137,6 @@ TAO_Unbounded_Sequence<T>::_deallocate_buffer (void)
this->release_ = 0;
}
-template<typename T>
-void
-TAO_Unbounded_Sequence<T>::_shrink_buffer (CORBA::ULong nl,
- CORBA::ULong ol)
-{
- T * tmp = reinterpret_cast <T *> (this->buffer_);
-
- for (CORBA::ULong i = nl; i < ol; ++i) {
- tmp[i] = T();
- }
-}
-
template <typename T>
T *
TAO_Unbounded_Sequence<T>::get_buffer (CORBA::Boolean orphan)
@@ -331,18 +321,6 @@ TAO_Bounded_Sequence<T, MAX>::_deallocate_buffer (void)
this->release_ = 0;
}
-template<typename T, size_t MAX>
-void
-TAO_Bounded_Sequence<T, MAX>::_shrink_buffer (CORBA::ULong nl,
- CORBA::ULong ol)
-{
- T * tmp = reinterpret_cast <T *> (this->buffer_);
-
- for (CORBA::ULong i = nl; i < ol; ++i) {
- tmp[i] = T();
- }
-}
-
template <typename T, size_t MAX>
T *
TAO_Bounded_Sequence<T, MAX>::get_buffer (CORBA::Boolean orphan)
@@ -2156,6 +2134,4 @@ TAO_Bounded_WString_Sequence<MAX>::replace (CORBA::ULong length,
this->release_ = release;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* tao/TAO_SEQUENCE_T_CPP */
+#endif /* TAO_SEQUENCE_T_C */
diff --git a/TAO/tao/Sequence_T.h b/TAO/tao/Sequence_T.h
index 2f7964a06d0..c3fe5f797e2 100644
--- a/TAO/tao/Sequence_T.h
+++ b/TAO/tao/Sequence_T.h
@@ -23,8 +23,6 @@
#include "tao/Objref_VarOut_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Unbounded_Sequence
*
@@ -84,8 +82,6 @@ public:
/// Implement the TAO_Base_Sequence methods (see Sequence.h)
virtual void _allocate_buffer (CORBA::ULong length);
virtual void _deallocate_buffer (void);
- virtual void _shrink_buffer (CORBA::ULong new_length,
- CORBA::ULong old_length);
// = orbos/98-01-11 proposed extensions.
/**
@@ -193,9 +189,6 @@ public:
/// deallocate the buffer
virtual void _deallocate_buffer (void);
- virtual void _shrink_buffer (CORBA::ULong new_length,
- CORBA::ULong old_length);
-
// = orbos/98-01-11 proposed extensions.
/**
* Allows read-write access to the underlying buffer. If <orphan>
@@ -1205,8 +1198,6 @@ public:
CORBA::Boolean release = 0);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
#if defined (__ACE_INLINE__)
diff --git a/TAO/tao/Sequence_T.i b/TAO/tao/Sequence_T.i
index 960c9ae687a..c1ecd508680 100644
--- a/TAO/tao/Sequence_T.i
+++ b/TAO/tao/Sequence_T.i
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ***************************************************
// Operations on the generic unbounded sequence class.
// ***************************************************
@@ -603,5 +600,3 @@ TAO_Bounded_WString_Sequence (CORBA::ULong length,
: TAO_Bounded_Base_Sequence (MAX, length, value, release)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ServerRequestInterceptor_Adapter.cpp b/TAO/tao/ServerRequestInterceptor_Adapter.cpp
index 7afe711cb85..d92d818b480 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter.cpp
+++ b/TAO/tao/ServerRequestInterceptor_Adapter.cpp
@@ -1,15 +1,14 @@
-#include "tao/ServerRequestInterceptor_Adapter.h"
+#include "ServerRequestInterceptor_Adapter.h"
ACE_RCSID (tao,
ServerRequestInterceptorAdapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO::ServerRequestInterceptor_Adapter::~ServerRequestInterceptor_Adapter (void)
+namespace TAO
{
+ ServerRequestInterceptor_Adapter::~ServerRequestInterceptor_Adapter (void)
+ {
+ }
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
diff --git a/TAO/tao/ServerRequestInterceptor_Adapter.h b/TAO/tao/ServerRequestInterceptor_Adapter.h
index 37907fa1465..791ec6ca2f5 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter.h
+++ b/TAO/tao/ServerRequestInterceptor_Adapter.h
@@ -18,7 +18,7 @@
#include /**/ "ace/pre.h"
-#include "tao/TAO_Export.h"
+#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,12 +27,6 @@
#include "ace/CORBA_macros.h"
#include "tao/SystemException.h"
-#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
-# include "tao/OctetSeqC.h"
-#endif /*TAO_HAS_EXTENDED_FT_INTERCEPTORS*/
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace PortableInterceptor
{
class ServerRequestInterceptor;
@@ -41,11 +35,6 @@ namespace PortableInterceptor
typedef CORBA::Short ReplyStatus;
}
-namespace CORBA
-{
- class PolicyList;
-}
-
class TAO_ServerRequest;
namespace TAO
@@ -152,12 +141,6 @@ namespace TAO
PortableInterceptor::ServerRequestInterceptor_ptr interceptor
ACE_ENV_ARG_DECL) = 0;
- /// Register an interceptor with policies.
- virtual void add_interceptor (
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor,
- const CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL) = 0;
-
virtual void destroy_interceptors (ACE_ENV_SINGLE_ARG_DECL) = 0;
virtual TAO::PICurrent_Impl *allocate_pi_current (void) = 0;
@@ -175,11 +158,9 @@ namespace TAO
TAO_ServerRequest &server_request,
TAO::Upcall_Command &command
ACE_ENV_ARG_DECL) = 0;
- };
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
+};
+}
#include /**/ "ace/post.h"
#endif /* TAO_SERVER_REQUEST_INTERCEPTOR_ADAPTER_H */
diff --git a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp
index 3408f8b97aa..3064718ded8 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp
+++ b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.cpp
@@ -1,14 +1,10 @@
-#include "tao/ServerRequestInterceptor_Adapter_Factory.h"
+#include "ServerRequestInterceptor_Adapter_Factory.h"
ACE_RCSID (tao,
ServerRequestInterceptorAdapterFactory,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ServerRequestInterceptor_Adapter_Factory::~TAO_ServerRequestInterceptor_Adapter_Factory (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h
index e97987173d6..592844d1405 100644
--- a/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h
+++ b/TAO/tao/ServerRequestInterceptor_Adapter_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -23,9 +23,6 @@
#include "tao/SystemException.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class ServerRequestInterceptor_Adapter;
@@ -45,8 +42,6 @@ public:
virtual TAO::ServerRequestInterceptor_Adapter * create (void) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVERREQUESTINTERCEPTOR_ADAPTER_FACTORY_H */
diff --git a/TAO/tao/Server_Strategy_Factory.cpp b/TAO/tao/Server_Strategy_Factory.cpp
index 7b8c1f300c4..504b67b6224 100644
--- a/TAO/tao/Server_Strategy_Factory.cpp
+++ b/TAO/tao/Server_Strategy_Factory.cpp
@@ -7,9 +7,6 @@ ACE_RCSID (tao,
Server_Strategy_Factory,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Server_Strategy_Factory::TAO_Server_Strategy_Factory (void)
: active_object_map_creation_parameters_ ()
{
@@ -74,5 +71,3 @@ TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters::Active_Objec
use_active_hint_in_poa_names_ (1)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Server_Strategy_Factory.h b/TAO/tao/Server_Strategy_Factory.h
index 2e5fdc2800a..644dcf1f6d6 100644
--- a/TAO/tao/Server_Strategy_Factory.h
+++ b/TAO/tao/Server_Strategy_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,10 +21,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/TAO_Export.h"
-#include "tao/Basic_Types.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "TAO_Export.h"
+#include "Basic_Types.h"
class TAO_ORB_Core;
@@ -130,8 +128,6 @@ protected:
Active_Object_Map_Creation_Parameters active_object_map_creation_parameters_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_SERVER_STRATEGY_FACTORY_H */
diff --git a/TAO/tao/Service_Callbacks.cpp b/TAO/tao/Service_Callbacks.cpp
index 97653579a7f..f4b6f228d3a 100644
--- a/TAO/tao/Service_Callbacks.cpp
+++ b/TAO/tao/Service_Callbacks.cpp
@@ -1,16 +1,13 @@
-#include "tao/Service_Callbacks.h"
-#include "tao/ORB_Constants.h"
-#include "tao/SystemException.h"
-#include "tao/Environment.h"
-#include "tao/Invocation_Utils.h"
+#include "Service_Callbacks.h"
+#include "ORB_Constants.h"
+#include "SystemException.h"
+#include "Environment.h"
+#include "Invocation_Utils.h"
ACE_RCSID (tao,
Service_Callbacks,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Service_Callbacks::~TAO_Service_Callbacks (void)
{
}
@@ -59,13 +56,6 @@ TAO_Service_Callbacks::hash_ft (TAO_Profile *,
return 0;
}
-CORBA::Boolean
-TAO_Service_Callbacks::is_permanent_forward_condition (const CORBA::Object_ptr,
- const TAO_Service_Context &) const
-{
- return false;
-}
-
TAO::Invocation_Status
TAO_Service_Callbacks::raise_comm_failure (
IOP::ServiceContextList &,
@@ -93,5 +83,3 @@ TAO_Service_Callbacks::raise_transient_failure (
CORBA::COMPLETED_MAYBE),
TAO::TAO_INVOKE_FAILURE);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Service_Callbacks.h b/TAO/tao/Service_Callbacks.h
index bf317492e76..8e68c9e15c1 100644
--- a/TAO/tao/Service_Callbacks.h
+++ b/TAO/tao/Service_Callbacks.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Service_Callbacks.h
@@ -10,6 +8,7 @@
* of the default functionalities that the ORB provides by the
* services if they have been loaded in to the ORB_Core
*
+ *
* @author Bala Natarajan <bala@cs.wustl.edu>
*/
//=============================================================================
@@ -27,10 +26,6 @@
#include "tao/TAO_Export.h"
#include "tao/Basic_Types.h"
#include "tao/Invocation_Utils.h"
-#include "tao/Object.h"
-#include "tao/Service_Context.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Profile;
class TAO_MProfile;
@@ -63,14 +58,14 @@ class TAO_Export TAO_Service_Callbacks
{
public:
-
+
enum Profile_Equivalence
{
EQUIVALENT,
NOT_EQUIVALENT,
DONT_KNOW
};
-
+
/// Dtor
virtual ~TAO_Service_Callbacks (void);
@@ -100,12 +95,6 @@ public:
virtual CORBA::ULong hash_ft (TAO_Profile *p,
CORBA::ULong m);
- // Verify if condition is given for LOCATION_FORWARD_PERM reply
- virtual CORBA::Boolean is_permanent_forward_condition (const CORBA::Object_ptr obj,
- const TAO_Service_Context &service_context) const;
-
-
-
/// Allow the service layer to decide whether the COMM_FAILURE
/// exception should be thrown or a reinvocation is needed
virtual TAO::Invocation_Status raise_comm_failure (
@@ -121,8 +110,6 @@ public:
ACE_ENV_ARG_DECL);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_SERVICE_CALLBACK_H*/
diff --git a/TAO/tao/Service_Context.cpp b/TAO/tao/Service_Context.cpp
index 9d0a4c1c5e6..b2708c3f4ce 100644
--- a/TAO/tao/Service_Context.cpp
+++ b/TAO/tao/Service_Context.cpp
@@ -1,4 +1,6 @@
+//
// $Id$
+//
#include "tao/Service_Context.h"
#include "tao/CDR.h"
@@ -13,9 +15,6 @@ ACE_RCSID (tao,
Service_Context,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_Service_Context::set_context_i (IOP::ServiceId id,
TAO_OutputCDR &cdr)
@@ -220,5 +219,3 @@ TAO_Service_Context::decode (TAO_InputCDR& cdr)
return 1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Service_Context.h b/TAO/tao/Service_Context.h
index dcf9cebbc4c..348bec7c061 100644
--- a/TAO/tao/Service_Context.h
+++ b/TAO/tao/Service_Context.h
@@ -1,3 +1,4 @@
+// This may look like C, but it's really -*- C++ -*-
// -*- C++ -*-
// ===================================================================
@@ -7,6 +8,7 @@
* $Id$
*
* @author Balachandran Natarajan <bala@cs.wustl.edu>
+ *
*/
// ===================================================================
@@ -21,16 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
- class FW_Server_Request_Wrapper;
- }
-}
-
/**
* @class TAO_Service_Context
*
@@ -60,11 +52,6 @@ namespace TAO
class TAO_Export TAO_Service_Context
{
public:
- /// Declare FW_Server_Request_Wrapper a friend
- /// This friendship makes the FW_Server_Request_Wrapper be able to
- /// clone the TAO_Service_Context data member in TAO_ServerRequest.
- friend class TAO::CSD::FW_Server_Request_Wrapper;
-
/// Constructor
TAO_Service_Context (void);
@@ -150,8 +137,6 @@ private:
IOP::ServiceContextList service_context_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Service_Context.inl"
#endif /* ! __ACE_INLINE__ */
diff --git a/TAO/tao/Service_Context.inl b/TAO/tao/Service_Context.inl
index 1facf7680a7..d7540db80b7 100644
--- a/TAO/tao/Service_Context.inl
+++ b/TAO/tao/Service_Context.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Service_Context::TAO_Service_Context (void)
: service_context_ ()
@@ -39,6 +37,7 @@ TAO_Service_Context::set_context (IOP::ServiceContext &context,
cdr);
}
+
ACE_INLINE int
TAO_Service_Context::is_service_id (IOP::ServiceId id)
{
@@ -53,5 +52,3 @@ TAO_Service_Context::is_service_id (IOP::ServiceId id)
}
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ServicesC.cpp b/TAO/tao/ServicesC.cpp
index 853fbfd293f..765d9c8e576 100644
--- a/TAO/tao/ServicesC.cpp
+++ b/TAO/tao/ServicesC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:288
-#include "tao/ServicesC.h"
+#include "ServicesC.h"
#include "tao/CDR.h"
#include "tao/ORB_Core.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -351,5 +349,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.service_options) &&
(strm >> _tao_aggregate.service_details);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ServicesC.h b/TAO/tao/ServicesC.h
index 524b9bef015..5e24beb739a 100644
--- a/TAO/tao/ServicesC.h
+++ b/TAO/tao/ServicesC.h
@@ -63,8 +63,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -316,8 +314,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::ServiceInformation
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Services_Activate.cpp b/TAO/tao/Services_Activate.cpp
index 22944bd9430..bd5689dc202 100644
--- a/TAO/tao/Services_Activate.cpp
+++ b/TAO/tao/Services_Activate.cpp
@@ -1,13 +1,12 @@
#include "tao/Services_Activate.h"
+#include "ace/Dynamic_Service.h"
ACE_RCSID (tao,
Services_Activate,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Services_Activate::~TAO_Services_Activate (void)
{
+ //no-op
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Services_Activate.h b/TAO/tao/Services_Activate.h
index d1e1905d8f6..582d6d3b94a 100644
--- a/TAO/tao/Services_Activate.h
+++ b/TAO/tao/Services_Activate.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Services_Activate.h
@@ -9,6 +7,7 @@
* This is a generic interface that would be used to activate
* the services that are loaded through the svc.conf file
*
+ *
* @author Bala Natarajan <bala@cs.wustl.edu>
*/
//=============================================================================
@@ -25,8 +24,6 @@
#include "tao/SystemException.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Service_Callbacks;
@@ -57,8 +54,6 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_SERVICES_ACTIVATE_H*/
diff --git a/TAO/tao/ShortSeqC.cpp b/TAO/tao/ShortSeqC.cpp
index 4ebe8407bcb..5b4df566b26 100644
--- a/TAO/tao/ShortSeqC.cpp
+++ b/TAO/tao/ShortSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/ShortSeqC.h"
+#include "ShortSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_ShortSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ShortSeqC.h b/TAO/tao/ShortSeqC.h
index 710cff4afb9..79b6809bd5a 100644
--- a/TAO/tao/ShortSeqC.h
+++ b/TAO/tao/ShortSeqC.h
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -138,8 +136,6 @@ TAO_Export CORBA::Boolean operator>> (
#endif /* _TAO_CDR_OP_CORBA_ShortSeq_H_ */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
diff --git a/TAO/tao/SmartProxies/Smart_Proxies.cpp b/TAO/tao/SmartProxies/Smart_Proxies.cpp
index 10707265d59..91e62e5cafc 100644
--- a/TAO/tao/SmartProxies/Smart_Proxies.cpp
+++ b/TAO/tao/SmartProxies/Smart_Proxies.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/SmartProxies/Smart_Proxies.h"
+#include "Smart_Proxies.h"
ACE_RCSID(SmartProxies, Smart_Proxies, "$Id$")
#if !defined (__ACE_INLINE__)
-#include "tao/SmartProxies/Smart_Proxies.inl"
+#include "Smart_Proxies.inl"
#endif /* defined INLINE */
// Add this line to please the AIX linker, otherwise it complains
diff --git a/TAO/tao/SmartProxies/Smart_Proxies.h b/TAO/tao/SmartProxies/Smart_Proxies.h
index 204702f7ec9..f8810fc8d40 100644
--- a/TAO/tao/SmartProxies/Smart_Proxies.h
+++ b/TAO/tao/SmartProxies/Smart_Proxies.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+// $Id$
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -17,7 +18,7 @@
#define TAO_SMARTPROXIES_H
#include /**/ "ace/pre.h"
-#include "tao/SmartProxies/smartproxies_export.h"
+#include "smartproxies_export.h"
#include "tao/Object.h"
#include "tao/TAO_Singleton.h"
#include "tao/LocalObject.h"
@@ -26,8 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Smart_Proxy_Base
*
@@ -35,9 +34,10 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
*
* Contains the _var pointer to the real proxy.
*/
-class TAO_SmartProxies_Export TAO_Smart_Proxy_Base
- : public TAO_Local_RefCounted_Object
+class TAO_SmartProxies_Export TAO_Smart_Proxy_Base :
+ public TAO_Local_RefCounted_Object
{
+
public:
/// Destructor
virtual ~TAO_Smart_Proxy_Base (void);
@@ -53,10 +53,8 @@ protected:
CORBA::Object_var base_proxy_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/SmartProxies/Smart_Proxies.inl"
+#include "Smart_Proxies.inl"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/SmartProxies/Smart_Proxies.inl b/TAO/tao/SmartProxies/Smart_Proxies.inl
index 232cacd0f34..b75c0a5d096 100644
--- a/TAO/tao/SmartProxies/Smart_Proxies.inl
+++ b/TAO/tao/SmartProxies/Smart_Proxies.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Smart_Proxy_Base::TAO_Smart_Proxy_Base (void)
{
@@ -19,5 +16,3 @@ ACE_INLINE
TAO_Smart_Proxy_Base::~TAO_Smart_Proxy_Base (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Special_Basic_Argument_T.cpp b/TAO/tao/Special_Basic_Argument_T.cpp
index 771abdf72d6..ee973ea75ec 100644
--- a/TAO/tao/Special_Basic_Argument_T.cpp
+++ b/TAO/tao/Special_Basic_Argument_T.cpp
@@ -1,16 +1,17 @@
// $Id$
-#ifndef TAO_SPECIAL_BASIC_ARGUMENT_T_CPP
-#define TAO_SPECIAL_BASIC_ARGUMENT_T_CPP
+#ifndef TAO_SPECIAL_BASIC_ARGUMENT_T_C
+#define TAO_SPECIAL_BASIC_ARGUMENT_T_C
#include "tao/Special_Basic_Argument_T.h"
-#include "tao/CDR.h"
#if !defined (__ACE_INLINE__)
#include "tao/Special_Basic_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Special_Basic_Argument_T,
+ "$Id$")
template<typename S, typename to_S, typename from_S, typename Insert_Policy>
CORBA::Boolean
@@ -108,7 +109,5 @@ TAO::Ret_Special_Basic_Argument_T<S,to_S,from_S,Insert_Policy>::interceptor_valu
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_SPECIAL_BASIC_ARGUMENT_T_CPP */
+#endif /* TAO_SPECIAL_BASIC_ARGUMENT_T_C */
diff --git a/TAO/tao/Special_Basic_Argument_T.h b/TAO/tao/Special_Basic_Argument_T.h
index b3f1df89e3a..e113596d8a3 100644
--- a/TAO/tao/Special_Basic_Argument_T.h
+++ b/TAO/tao/Special_Basic_Argument_T.h
@@ -23,8 +23,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -150,8 +148,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Special_Basic_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Special_Basic_Argument_T.inl b/TAO/tao/Special_Basic_Argument_T.inl
index cf8b7b4e57e..850c2209cbb 100644
--- a/TAO/tao/Special_Basic_Argument_T.inl
+++ b/TAO/tao/Special_Basic_Argument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S, typename to_S, typename from_S, typename Insert_Policy>
ACE_INLINE
TAO::In_Special_Basic_Argument_T<S,to_S,from_S,Insert_Policy>::In_Special_Basic_Argument_T (
@@ -87,4 +85,3 @@ TAO::Ret_Special_Basic_Argument_T<S,to_S,from_S,Insert_Policy>::retn (void)
return this->x_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Special_Basic_Arguments.h b/TAO/tao/Special_Basic_Arguments.h
index ff938db4b58..49e8e16e9e6 100644
--- a/TAO/tao/Special_Basic_Arguments.h
+++ b/TAO/tao/Special_Basic_Arguments.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -6,8 +6,7 @@
*
* $Id$
*
- * @author Jeff Parsons
- * @author Carlos O'Ryan
+ * @authors Jeff Parsons and Carlos O'Ryan
*/
//=============================================================================
@@ -24,9 +23,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Special_Basic_Argument_T.h"
-#include "tao/Arg_Traits_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Arg_Traits_T.h"
namespace TAO
{
@@ -73,8 +70,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/"ace/post.h"
#endif /* TAO_SPECIAL_BASIC_ARGUMENTS_H */
diff --git a/TAO/tao/Strategies.mpc b/TAO/tao/Strategies.mpc
index 256a3ba9f49..2f0f709b8f9 100644
--- a/TAO/tao/Strategies.mpc
+++ b/TAO/tao/Strategies.mpc
@@ -1,7 +1,6 @@
//$Id$
-project : taolib, core, core_anytypecode {
- avoids += ace_for_tao // Requires Unix domain sockets and MEM stuff
+project : taolib, core, acereactorlib_for_tao, acesocketslib_for_tao, acememorylib_for_tao, core_anytypecode {
sharedname = TAO_Strategies
dynamicflags = TAO_STRATEGIES_BUILD_DLL
diff --git a/TAO/tao/Strategies/DIOP_Acceptor.cpp b/TAO/tao/Strategies/DIOP_Acceptor.cpp
index 2e527cea8ec..771ed508113 100644
--- a/TAO/tao/Strategies/DIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/DIOP_Acceptor.cpp
@@ -1,11 +1,11 @@
// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "tao/Strategies/DIOP_Acceptor.h"
+#include "DIOP_Acceptor.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
-#include "tao/Strategies/DIOP_Profile.h"
+#include "DIOP_Profile.h"
#include "tao/MProfile.h"
#include "tao/ORB_Core.h"
#include "tao/debug.h"
@@ -17,7 +17,7 @@
#include "ace/OS_NS_string.h"
#if !defined(__ACE_INLINE__)
-#include "tao/Strategies/DIOP_Acceptor.i"
+#include "DIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
#include "ace/os_include/os_netdb.h"
@@ -26,8 +26,6 @@ ACE_RCSID (Strategies,
DIOP_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DIOP_Acceptor::TAO_DIOP_Acceptor (CORBA::Boolean flag)
: TAO_Acceptor (TAO_TAG_DIOP_PROFILE),
addrs_ (0),
@@ -437,7 +435,7 @@ TAO_DIOP_Acceptor::open_i (const ACE_INET_Addr& addr,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("\nTAO (%P|%t) DIOP_Acceptor::open_i - ")
ACE_TEXT ("listening on: <%s:%u>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->hosts_[i]),
+ ACE_TEXT_TO_TCHAR_IN (this->hosts_[i]),
this->addrs_[i].get_port_number ()));
}
}
@@ -615,8 +613,7 @@ TAO_DIOP_Acceptor::object_key (IOP::TaggedProfile &profile,
profile.profile_data.length ());
#endif /* TAO_NO_COPY_OCTET_SEQUENCES == 1 */
- CORBA::Octet major;
- CORBA::Octet minor = CORBA::Octet();
+ CORBA::Octet major, minor;
// Read the version. We just read it here. We don't*do any*
// processing.
@@ -721,7 +718,7 @@ TAO_DIOP_Acceptor::parse_options (const char *str)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) DIOP option <%s> is ")
ACE_TEXT ("missing a value.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (opt.c_str ())),
+ ACE_TEXT_TO_TCHAR_IN (opt.c_str ())),
-1);
ACE_CString name = opt.substring (0, slot);
@@ -743,13 +740,11 @@ TAO_DIOP_Acceptor::parse_options (const char *str)
else
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) Invalid DIOP option: <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (name.c_str ())),
+ ACE_TEXT_TO_TCHAR_IN (name.c_str ())),
-1);
}
}
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Acceptor.h b/TAO/tao/Strategies/DIOP_Acceptor.h
index 0de8b911e3d..4ff200dc543 100644
--- a/TAO/tao/Strategies/DIOP_Acceptor.h
+++ b/TAO/tao/Strategies/DIOP_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -27,13 +27,11 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Transport_Acceptor.h"
-#include "tao/Strategies/DIOP_Connection_Handler.h"
+#include "DIOP_Connection_Handler.h"
#include "tao/Acceptor_Impl.h"
#include "tao/GIOP_Message_Version.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO DIOP_Acceptor concrete call defination
/**
@@ -178,10 +176,8 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "tao/Strategies/DIOP_Acceptor.i"
+#include "DIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Acceptor.i b/TAO/tao/Strategies/DIOP_Acceptor.i
index 2603d4e7156..9aaf71a3d41 100644
--- a/TAO/tao/Strategies/DIOP_Acceptor.i
+++ b/TAO/tao/Strategies/DIOP_Acceptor.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_INET_Addr&
TAO_DIOP_Acceptor::address (void) const
{
@@ -24,5 +21,3 @@ TAO_DIOP_Acceptor::endpoints (void)
return this->addrs_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/DIOP_Connection_Handler.cpp b/TAO/tao/Strategies/DIOP_Connection_Handler.cpp
index 335567bc4e1..73c80795b50 100644
--- a/TAO/tao/Strategies/DIOP_Connection_Handler.cpp
+++ b/TAO/tao/Strategies/DIOP_Connection_Handler.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Strategies/DIOP_Connection_Handler.h"
+#include "DIOP_Connection_Handler.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
@@ -16,17 +16,14 @@
#include "tao/Protocols_Hooks.h"
#include "tao/Resume_Handle.h"
-#include "tao/Strategies/DIOP_Transport.h"
-#include "tao/Strategies/DIOP_Endpoint.h"
+#include "DIOP_Transport.h"
+#include "DIOP_Endpoint.h"
#include "ace/os_include/netinet/os_tcp.h"
#include "ace/os_include/os_netdb.h"
ACE_RCSID(tao, DIOP_Connect, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DIOP_Connection_Handler::TAO_DIOP_Connection_Handler (ACE_Thread_Manager *t)
: TAO_DIOP_SVC_HANDLER (t, 0 , 0),
TAO_Connection_Handler (0),
@@ -157,7 +154,7 @@ TAO_DIOP_Connection_Handler::open (void*)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("\nTAO (%P|%t) TAO_DIOP_Connection_Handler::open -")
ACE_TEXT("listening on: <%s:%u>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->local_addr_.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN (this->local_addr_.get_host_name ()),
this->local_addr_.get_port_number ()));
}
@@ -168,7 +165,7 @@ TAO_DIOP_Connection_Handler::open (void*)
return -1;
this->state_changed (TAO_LF_Event::LFS_SUCCESS,
- this->orb_core ()->leader_follower ());
+ this->orb_core ()->leader_follower ());
return 0;
}
@@ -182,7 +179,7 @@ TAO_DIOP_Connection_Handler::open_server (void)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("\nTAO (%P|%t) TAO_DIOP_Connection_Handler::open_server -")
ACE_TEXT("listening on %s:%d\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->local_addr_.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN (this->local_addr_.get_host_name ()),
this->local_addr_.get_port_number ()
));
}
@@ -301,6 +298,4 @@ TAO_DIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_prio
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Connection_Handler.h b/TAO/tao/Strategies/DIOP_Connection_Handler.h
index 74c8702113a..933a1f4254d 100644
--- a/TAO/tao/Strategies/DIOP_Connection_Handler.h
+++ b/TAO/tao/Strategies/DIOP_Connection_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -29,12 +29,9 @@
#include "tao/Wait_Strategy.h"
#include "tao/Connection_Handler.h"
-#include "tao/Strategies/DIOP_Transport.h"
+#include "DIOP_Transport.h"
#include "ace/SOCK_Dgram.h"
-#include "tao/Strategies/strategies_export.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "strategies_export.h"
// Forward Decls
class TAO_Pluggable_Messaging;
@@ -49,9 +46,11 @@ class TAO_Pluggable_Messaging;
* The Connection handler which is common for the Acceptor and
* the Connector
*/
-class TAO_Strategies_Export TAO_DIOP_Connection_Handler
- : public TAO_DIOP_SVC_HANDLER
- , public TAO_Connection_Handler
+
+
+class TAO_Strategies_Export TAO_DIOP_Connection_Handler :
+ public TAO_DIOP_SVC_HANDLER,
+ public TAO_Connection_Handler
{
public:
@@ -161,8 +160,6 @@ private:
int dscp_codepoint_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/DIOP_Connector.cpp b/TAO/tao/Strategies/DIOP_Connector.cpp
index a2aecebc2b4..671bac804cb 100644
--- a/TAO/tao/Strategies/DIOP_Connector.cpp
+++ b/TAO/tao/Strategies/DIOP_Connector.cpp
@@ -1,7 +1,7 @@
// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "tao/Strategies/DIOP_Connector.h"
+#include "DIOP_Connector.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
@@ -15,16 +15,13 @@
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_string.h"
-#include "tao/Strategies/DIOP_Profile.h"
+#include "DIOP_Profile.h"
ACE_RCSID (Strategies,
DIOP_Connector,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DIOP_Connector::TAO_DIOP_Connector (CORBA::Boolean flag)
: TAO_Connector (TAO_TAG_DIOP_PROFILE),
lite_flag_ (flag)
@@ -235,11 +232,11 @@ TAO_DIOP_Connector::remote_endpoint (TAO_Endpoint *endpoint)
int
TAO_DIOP_Connector::cancel_svc_handler (
- TAO_Connection_Handler * /* svc_handler */)
+ TAO_Connection_Handler * svc_handler)
{
+ ACE_UNUSED_ARG(svc_handler);
+
+ // Noop
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Connector.h b/TAO/tao/Strategies/DIOP_Connector.h
index d1f8e139fbe..5cec9dbd0c8 100644
--- a/TAO/tao/Strategies/DIOP_Connector.h
+++ b/TAO/tao/Strategies/DIOP_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,14 +22,12 @@
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
#include "tao/Transport_Connector.h"
-#include "tao/Strategies/DIOP_Connection_Handler.h"
+#include "DIOP_Connection_Handler.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Endpoint;
class TAO_DIOP_Endpoint;
@@ -115,8 +113,6 @@ private:
ACE_Null_Mutex > SvcHandlerIterator;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/DIOP_Endpoint.cpp b/TAO/tao/Strategies/DIOP_Endpoint.cpp
index 43657b6d783..f10fb9c0f7e 100644
--- a/TAO/tao/Strategies/DIOP_Endpoint.cpp
+++ b/TAO/tao/Strategies/DIOP_Endpoint.cpp
@@ -2,11 +2,11 @@
// $Id$
-#include "tao/Strategies/DIOP_Endpoint.h"
+#include "DIOP_Endpoint.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
-#include "tao/Strategies/DIOP_Connection_Handler.h"
+#include "DIOP_Connection_Handler.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
@@ -20,13 +20,11 @@ ACE_RCSID (Strategies,
#if !defined (__ACE_INLINE__)
-# include "tao/Strategies/DIOP_Endpoint.i"
+# include "DIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#include "ace/os_include/os_netdb.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DIOP_Endpoint::TAO_DIOP_Endpoint (const ACE_INET_Addr &addr,
int use_dotted_decimal_addresses)
@@ -245,7 +243,4 @@ TAO_DIOP_Endpoint::object_addr (void) const
}
return this->object_addr_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Endpoint.h b/TAO/tao/Strategies/DIOP_Endpoint.h
index a654c95e94a..01a932546b7 100644
--- a/TAO/tao/Strategies/DIOP_Endpoint.h
+++ b/TAO/tao/Strategies/DIOP_Endpoint.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
+
//=============================================================================
/**
@@ -22,14 +23,14 @@
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/CORBA_String.h"
#include "ace/INET_Addr.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_DIOP_Connection_Handler;
@@ -137,10 +138,8 @@ private:
TAO_DIOP_Endpoint *next_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Strategies/DIOP_Endpoint.i"
+# include "DIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Endpoint.i b/TAO/tao/Strategies/DIOP_Endpoint.i
index 03c7835ffbe..3bd443220b5 100644
--- a/TAO/tao/Strategies/DIOP_Endpoint.i
+++ b/TAO/tao/Strategies/DIOP_Endpoint.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const char *
TAO_DIOP_Endpoint::host (void) const
{
@@ -21,5 +18,3 @@ TAO_DIOP_Endpoint::port (CORBA::UShort p)
{
return this->port_ = p;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/DIOP_Factory.cpp b/TAO/tao/Strategies/DIOP_Factory.cpp
index 8c23791d31f..ef5755dde44 100644
--- a/TAO/tao/Strategies/DIOP_Factory.cpp
+++ b/TAO/tao/Strategies/DIOP_Factory.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/Strategies/DIOP_Factory.h"
+#include "DIOP_Factory.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
-#include "tao/Strategies/DIOP_Acceptor.h"
-#include "tao/Strategies/DIOP_Connector.h"
+#include "DIOP_Acceptor.h"
+#include "DIOP_Connector.h"
#include "tao/ORB_Constants.h"
@@ -15,9 +15,7 @@ ACE_RCSID (Strategies,
DIOP_Factory,
"$Id$")
-static const char the_prefix[] = "diop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "diop";
TAO_DIOP_Protocol_Factory::TAO_DIOP_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_DIOP_PROFILE),
@@ -34,13 +32,13 @@ int
TAO_DIOP_Protocol_Factory::match_prefix (const ACE_CString &prefix)
{
// Check for the proper prefix for this protocol.
- return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
+ return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0);
}
const char *
TAO_DIOP_Protocol_Factory::prefix (void) const
{
- return ::the_prefix;
+ return ::prefix_;
}
char
@@ -94,8 +92,6 @@ TAO_DIOP_Protocol_Factory::requires_explicit_endpoint (void) const
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_DIOP_Protocol_Factory,
ACE_TEXT ("DIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Strategies/DIOP_Factory.h b/TAO/tao/Strategies/DIOP_Factory.h
index 6add2587345..5b0313bef84 100644
--- a/TAO/tao/Strategies/DIOP_Factory.h
+++ b/TAO/tao/Strategies/DIOP_Factory.h
@@ -27,15 +27,12 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/Strategies/strategies_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "strategies_export.h"
class TAO_Acceptor;
class TAO_Connector;
-class TAO_Strategies_Export TAO_DIOP_Protocol_Factory
- : public TAO_Protocol_Factory
+class TAO_Strategies_Export TAO_DIOP_Protocol_Factory : public TAO_Protocol_Factory
{
public:
/// Constructor.
@@ -76,8 +73,6 @@ private:
int minor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_DIOP_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_DIOP_Protocol_Factory)
diff --git a/TAO/tao/Strategies/DIOP_Profile.cpp b/TAO/tao/Strategies/DIOP_Profile.cpp
index 19c9432b3a0..af1c9aabad4 100644
--- a/TAO/tao/Strategies/DIOP_Profile.cpp
+++ b/TAO/tao/Strategies/DIOP_Profile.cpp
@@ -1,6 +1,7 @@
+// This may look like C, but it's really -*- C++ -*-
+//
// $Id$
-
-#include "tao/Strategies/DIOP_Profile.h"
+#include "DIOP_Profile.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
@@ -19,9 +20,7 @@ ACE_RCSID (Strategies,
DIOP_Profile,
"$Id$")
-static const char the_prefix[] = "diop";
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+static const char prefix_[] = "diop";
const char TAO_DIOP_Profile::object_key_delimiter_ = '/';
@@ -297,7 +296,7 @@ TAO_DIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
size_t buflen = (8 /* "corbaloc" */ +
1 /* colon separator */ +
- ACE_OS::strlen (::the_prefix) +
+ ACE_OS::strlen (::prefix_) +
1 /* colon separator */ +
1 /* major version */ +
1 /* decimal point */ +
@@ -315,7 +314,7 @@ TAO_DIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_OS::sprintf (buf,
"corbaloc:%s:%c.%c@%s:%d%c%s",
- ::the_prefix,
+ ::prefix_,
digits [this->version_.major],
digits [this->version_.minor],
this->endpoint_.host (),
@@ -329,7 +328,7 @@ TAO_DIOP_Profile::to_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
const char *
TAO_DIOP_Profile::prefix (void)
{
- return ::the_prefix;
+ return ::prefix_;
}
void
@@ -473,6 +472,4 @@ TAO_DIOP_Profile::decode_endpoints (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Profile.h b/TAO/tao/Strategies/DIOP_Profile.h
index 0458ebef6dc..e51bb10e95f 100644
--- a/TAO/tao/Strategies/DIOP_Profile.h
+++ b/TAO/tao/Strategies/DIOP_Profile.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
+
//=============================================================================
/**
@@ -27,9 +28,8 @@
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Strategies/DIOP_Endpoint.h"
+#include "DIOP_Endpoint.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO DIOP_Profile concrete Profile definitions
/**
@@ -122,8 +122,6 @@ protected:
CORBA::ULong count_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/DIOP_Transport.cpp b/TAO/tao/Strategies/DIOP_Transport.cpp
index 876fd01d111..a3a11e887bc 100644
--- a/TAO/tao/Strategies/DIOP_Transport.cpp
+++ b/TAO/tao/Strategies/DIOP_Transport.cpp
@@ -1,12 +1,13 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "tao/Strategies/DIOP_Transport.h"
+#include "DIOP_Transport.h"
#if defined (TAO_HAS_DIOP) && (TAO_HAS_DIOP != 0)
-#include "tao/Strategies/DIOP_Connection_Handler.h"
-#include "tao/Strategies/DIOP_Acceptor.h"
-#include "tao/Strategies/DIOP_Profile.h"
+#include "DIOP_Connection_Handler.h"
+#include "DIOP_Acceptor.h"
+#include "DIOP_Profile.h"
#include "tao/Acceptor_Registry.h"
#include "tao/operation_details.h"
#include "tao/Timeprobe.h"
@@ -22,8 +23,6 @@
ACE_RCSID (tao, DIOP_Transport, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_DIOP_Transport::TAO_DIOP_Transport (TAO_DIOP_Connection_Handler *handler,
TAO_ORB_Core *orb_core,
CORBA::Boolean flag)
@@ -121,7 +120,7 @@ TAO_DIOP_Transport::recv (char *buf,
ACE_DEBUG ((LM_DEBUG,
"TAO_DIOP_Transport::recv_i: received %d bytes from %s:%d %d\n",
n,
- ACE_TEXT_CHAR_TO_TCHAR (from_addr.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN (from_addr.get_host_name ()),
from_addr.get_port_number (),
errno));
}
@@ -167,7 +166,7 @@ TAO_DIOP_Transport::handle_input (TAO_Resume_Handle &rh,
// The buffer on the stack which will be used to hold the input
// messages
- char buf [ACE_MAX_DGRAM_SIZE + ACE_CDR::MAX_ALIGNMENT];
+ char buf [ACE_MAX_DGRAM_SIZE];
#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
(void) ACE_OS::memset (buf,
@@ -212,33 +211,21 @@ TAO_DIOP_Transport::handle_input (TAO_Resume_Handle &rh,
// Set the write pointer in the stack buffer
message_block.wr_ptr (n);
- // Make a node of the message block..
- TAO_Queued_Data qd (&message_block);
- size_t mesg_length;
-
// Parse the incoming message for validity. The check needs to be
// performed by the messaging objects.
- if (this->messaging_object ()->parse_next_message (message_block,
- qd,
- mesg_length) == -1)
+ if (this->parse_incoming_messages (message_block) == -1)
return -1;
- if (qd.missing_data_ == TAO_MISSING_DATA_UNDEFINED)
- {
- // parse/marshal error
- return -1;
- }
-
- if (message_block.length () > mesg_length)
- {
- // we read too much data
- return -1;
- }
-
// NOTE: We are not performing any queueing nor any checking for
// missing data. We are assuming that ALL the data would be got in a
// single read.
+ // Make a node of the message block..
+ TAO_Queued_Data qd (&message_block);
+
+ // Extract the data for the node..
+ this->messaging_object ()->get_message_data (&qd);
+
// Process the message
return this->process_parsed_messages (&qd, rh);
}
@@ -345,10 +332,9 @@ int
TAO_DIOP_Transport::messaging_init (CORBA::Octet major,
CORBA::Octet minor)
{
- this->messaging_object_->init (major, minor);
+ this->messaging_object_->init (major,
+ minor);
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
diff --git a/TAO/tao/Strategies/DIOP_Transport.h b/TAO/tao/Strategies/DIOP_Transport.h
index 7313639fc96..63c79700296 100644
--- a/TAO/tao/Strategies/DIOP_Transport.h
+++ b/TAO/tao/Strategies/DIOP_Transport.h
@@ -1,5 +1,5 @@
+// This may look like C, but it's really -*- C++ -*-
// -*- C++ -*-
-
// ===================================================================
/**
* @file DIOP_Transport.h
@@ -27,13 +27,7 @@
#include "ace/SOCK_Stream.h"
#include "ace/Svc_Handler.h"
-#include "tao/Strategies/strategies_export.h"
-
-#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
-template class TAO_Strategies_Export ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>;
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "strategies_export.h"
// Forward decls.
class TAO_DIOP_Connection_Handler;
@@ -46,6 +40,10 @@ class TAO_Acceptor;
typedef ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>
TAO_DIOP_SVC_HANDLER;
+#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
+template class TAO_Strategies_Export ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>;
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
+
/**
* @class TAO_DIOP_Transport
*
@@ -137,8 +135,6 @@ private:
TAO_Pluggable_Messaging *messaging_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_DIOP && TAO_HAS_DIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.cpp b/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.cpp
index 4a9822dc7b5..d1e9d6940b3 100644
--- a/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.cpp
+++ b/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.cpp
@@ -1,13 +1,10 @@
// $Id$
-#include "tao/Strategies/FIFO_Connection_Purging_Strategy.h"
+#include "FIFO_Connection_Purging_Strategy.h"
#include "tao/Transport.h"
ACE_RCSID(tao, FIFO_Connection_Purging_Strategy, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_FIFO_Connection_Purging_Strategy::TAO_FIFO_Connection_Purging_Strategy (
int cache_maximum)
: TAO_Connection_Purging_Strategy (cache_maximum),
@@ -17,10 +14,12 @@ TAO_FIFO_Connection_Purging_Strategy::TAO_FIFO_Connection_Purging_Strategy (
{
}
+
TAO_FIFO_Connection_Purging_Strategy::~TAO_FIFO_Connection_Purging_Strategy (void)
{
}
+
void
TAO_FIFO_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
{
@@ -32,4 +31,4 @@ TAO_FIFO_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.h b/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.h
index 30ef3794a5c..b69bcff5739 100644
--- a/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.h
+++ b/TAO/tao/Strategies/FIFO_Connection_Purging_Strategy.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// ================================================================
/**
* @file FIFO_Connection_Purging_Strategy.h
@@ -14,7 +12,7 @@
#define TAO_FIFO_PURGING_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/Connection_Purging_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -23,8 +21,6 @@
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_FIFO_Connection_Purging_Strategy
*
@@ -54,7 +50,5 @@ private:
unsigned long order_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_FIFO_PURGING_STRATEGY_H */
diff --git a/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.cpp b/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.cpp
index eab9bc1f9e0..961ba767c8e 100644
--- a/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.cpp
+++ b/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.cpp
@@ -1,13 +1,10 @@
// $Id$
-#include "tao/Strategies/LFU_Connection_Purging_Strategy.h"
+#include "LFU_Connection_Purging_Strategy.h"
#include "tao/Transport.h"
ACE_RCSID(tao, LFU_Connection_Purging_Strategy, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LFU_Connection_Purging_Strategy::TAO_LFU_Connection_Purging_Strategy (
int cache_maximum)
: TAO_Connection_Purging_Strategy (cache_maximum)
@@ -19,10 +16,10 @@ TAO_LFU_Connection_Purging_Strategy::~TAO_LFU_Connection_Purging_Strategy (void)
{
}
+
void
TAO_LFU_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
{
transport->purging_order (transport->purging_order () + 1);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h b/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h
index 98ea59231f9..b2b390c429f 100644
--- a/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h
+++ b/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// ================================================================
/**
* @file LFU_Connection_Purging_Strategy.h
@@ -14,7 +12,7 @@
#define TAO_LFU_PURGING_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/Connection_Purging_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -23,8 +21,6 @@
// ****************************************************************
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LFU_Connection_Purging_Strategy
*
@@ -49,7 +45,5 @@ public:
virtual void update_item (TAO_Transport* transport);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_LFU_PURGING_STRATEGY_H */
diff --git a/TAO/tao/Strategies/LF_Strategy_Null.cpp b/TAO/tao/Strategies/LF_Strategy_Null.cpp
index 67c5f5e0871..d3c740cb9de 100644
--- a/TAO/tao/Strategies/LF_Strategy_Null.cpp
+++ b/TAO/tao/Strategies/LF_Strategy_Null.cpp
@@ -1,16 +1,14 @@
+// -*- C++ -*-
// $Id$
-#include "tao/Strategies/LF_Strategy_Null.h"
+#include "LF_Strategy_Null.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Strategies/LF_Strategy_Null.inl"
+# include "LF_Strategy_Null.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(tao, LF_Strategy_Null, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_LF_Strategy_Null::~TAO_LF_Strategy_Null (void)
{
}
@@ -32,5 +30,3 @@ TAO_LF_Strategy_Null::reset_event_loop_thread (int,
TAO_Leader_Follower &)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/LF_Strategy_Null.h b/TAO/tao/Strategies/LF_Strategy_Null.h
index 18ba5632ad0..746204fd3d0 100644
--- a/TAO/tao/Strategies/LF_Strategy_Null.h
+++ b/TAO/tao/Strategies/LF_Strategy_Null.h
@@ -14,15 +14,13 @@
#define TAO_LF_STRATEGY_NULL_H
#include /**/ "ace/pre.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/LF_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_LF_Strategy_Null
*
@@ -50,10 +48,8 @@ public:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Strategies/LF_Strategy_Null.inl"
+# include "LF_Strategy_Null.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.cpp b/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.cpp
index 181be613d77..930c9c89053 100644
--- a/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.cpp
+++ b/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.cpp
@@ -1,32 +1,31 @@
// $Id$
-#include "tao/Strategies/NULL_Connection_Purging_Strategy.h"
+#include "NULL_Connection_Purging_Strategy.h"
#include "tao/Transport.h"
ACE_RCSID(tao, NULL_Connection_Purging_Strategy, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_NULL_Connection_Purging_Strategy::TAO_NULL_Connection_Purging_Strategy (
int cache_maximum)
: TAO_Connection_Purging_Strategy (cache_maximum)
{
}
+
TAO_NULL_Connection_Purging_Strategy::~TAO_NULL_Connection_Purging_Strategy (void)
{
}
+
void
TAO_NULL_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
{
ACE_UNUSED_ARG (transport);
}
+
int
TAO_NULL_Connection_Purging_Strategy::cache_maximum (void) const
{
return -1;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.h b/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.h
index 37b5c15d268..39804305347 100644
--- a/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.h
+++ b/TAO/tao/Strategies/NULL_Connection_Purging_Strategy.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// ================================================================
/**
* @file NULL_Connection_Purging_Strategy.h
@@ -14,7 +12,7 @@
#define TAO_NULL_PURGING_STRATEGY_H
#include /**/ "ace/pre.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +21,6 @@
#include "tao/Connection_Purging_Strategy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_NULL_Connection_Purging_Strategy
*
@@ -49,7 +45,5 @@ public:
virtual int cache_maximum (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_NULL_PURGING_STRATEGY_H */
diff --git a/TAO/tao/Strategies/OC_Endpoint_Selector_Factory.cpp b/TAO/tao/Strategies/OC_Endpoint_Selector_Factory.cpp
deleted file mode 100644
index 96c1cf8c8b2..00000000000
--- a/TAO/tao/Strategies/OC_Endpoint_Selector_Factory.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// $Id$
-
-#include "tao/Strategies/OC_Endpoint_Selector_Factory.h"
-#include "tao/Strategies/Optimized_Connection_Endpoint_Selector.h"
-#include "ace/Log_Msg.h"
-#include "tao/ORB_Core.h"
-#include "ace/OS.h"
-
-ACE_RCSID (tao,
- OC_Endpoint_Selector_Factory,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_OC_Endpoint_Selector_Factory::TAO_OC_Endpoint_Selector_Factory (void)
- : oc_endpoint_selector_(0)
-{
-}
-
-TAO_OC_Endpoint_Selector_Factory::~TAO_OC_Endpoint_Selector_Factory (void)
-{
- delete this->oc_endpoint_selector_;
-}
-
-int
-TAO_OC_Endpoint_Selector_Factory::init (int argc, ACE_TCHAR *argv[])
-{
- ACE_Time_Value timeout(0,0);
-
- TAO_ORB_Core::set_endpoint_selector_factory ("OC_Endpoint_Selector_Factory");
- for (int count = 0; count < argc; count++)
- {
- if ((ACE_OS::strcasecmp (argv[count],
- ACE_TEXT ("-connect_timeout")) == 0) &&
- count < argc-1)
- {
- count++;
- long ms = ACE_OS::strtol(argv[count],0,10);
- timeout.msec (ms);
- }
- }
-
- ACE_NEW_RETURN (this->oc_endpoint_selector_,
- TAO_Optimized_Connection_Endpoint_Selector(timeout),
- -1);
- return 0;
-}
-
-
-TAO_Invocation_Endpoint_Selector *
-TAO_OC_Endpoint_Selector_Factory::get_selector ( ACE_ENV_SINGLE_ARG_DECL_NOT_USED )
-{
- // Trivial endpoint selector. Just return the default selector.
- return this->oc_endpoint_selector_;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-// ****************************************************************
-
-ACE_STATIC_SVC_DEFINE (TAO_OC_Endpoint_Selector_Factory,
- ACE_TEXT ("OC_Endpoint_Selector_Factory"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (TAO_OC_Endpoint_Selector_Factory),
- ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
- 0)
-ACE_FACTORY_DEFINE (TAO_Strategies, TAO_OC_Endpoint_Selector_Factory)
diff --git a/TAO/tao/Strategies/OC_Endpoint_Selector_Factory.h b/TAO/tao/Strategies/OC_Endpoint_Selector_Factory.h
deleted file mode 100644
index c1cae879efb..00000000000
--- a/TAO/tao/Strategies/OC_Endpoint_Selector_Factory.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OC_Endpoint_Selector_Factory.h
- *
- * $Id$
- *
- * Strategies for selecting profile/endpoint from an IOR for making an
- * invocation.
- *
- * @author Phil Mesnier <mesnier_p@ociweb.com>
- */
-//=============================================================================
-
-
-#ifndef TAO_OC_ENDPOINT_SELECTOR_FACTORY_H
-#define TAO_OC_ENDPOINT_SELECTOR_FACTORY_H
-#include /**/ "ace/pre.h"
-
-
-#include "tao/Strategies/strategies_export.h"
-
-#include "tao/Endpoint_Selector_Factory.h"
-#include "ace/Service_Config.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Forward references
-class TAO_Optimized_Connection_Endpoint_Selector;
-
-// ****************************************************************
-
-/**
- * @class TAO_OC_Endpoint_Selector_Factory
- *
- * @brief Factory for initializing <Endpoint_Selection_State> and
- * obtaining appropriate <Invocation_Endpoint_Selector>.
- *
- * Used by Invocation classes to intialize its endpoint selection
- * strategy and state based on the effective policies.
- * Endpoint selection strategies are stateless objects - all the
- * state they need is contained by Invocation in
- * <Endpoint_Selection_State>. Thus, rather than allocating an
- * endpoint selection strategy object for each Invocation, the
- * factory simply returns the appropriate one from the
- * set preallocated in the ORB_Core. One endpoint selection
- * strategy object can be used by many invocations concurrently.
- */
-class TAO_Strategies_Export TAO_OC_Endpoint_Selector_Factory
- : public TAO_Endpoint_Selector_Factory
-{
-public:
- /// Constructor.
- TAO_OC_Endpoint_Selector_Factory (void);
-
- /// Destructor.
- virtual ~TAO_OC_Endpoint_Selector_Factory (void);
-
-
- virtual int init (int argc, ACE_TCHAR *argv[]);
-
- /// Get an Invocation's endpoint selection strategy and
- /// initialize the endpoint selection state instance.
- virtual TAO_Invocation_Endpoint_Selector *get_selector (
- ACE_ENV_SINGLE_ARG_DECL);
-
-protected:
- /// The possible endpoint selector strategies that can be
- /// returned by this factory
-
- TAO_Optimized_Connection_Endpoint_Selector *oc_endpoint_selector_;
-};
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
-ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Strategies, TAO_OC_Endpoint_Selector_Factory)
-ACE_FACTORY_DECLARE (TAO_Strategies, TAO_OC_Endpoint_Selector_Factory)
-
-#include /**/ "ace/post.h"
-#endif /* TAO_OC_ENDPOINT_SELECTOR_FACTORY_H */
diff --git a/TAO/tao/Strategies/OC_Endpoint_Selector_Loader.cpp b/TAO/tao/Strategies/OC_Endpoint_Selector_Loader.cpp
deleted file mode 100644
index c250cd76240..00000000000
--- a/TAO/tao/Strategies/OC_Endpoint_Selector_Loader.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// $Id$
-
-#include "tao/Strategies/OC_Endpoint_Selector_Loader.h"
-#include "tao/Strategies/OC_Endpoint_Selector_Factory.h"
-
-ACE_RCSID (tao,
- OC_Endpoint_Selector_Loader,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_OC_Endpoint_Selector_Loader::TAO_OC_Endpoint_Selector_Loader (void)
-{
-#if defined (TAO_AS_STATIC_LIBS)
- ACE_Service_Config::process_directive (ace_svc_desc_TAO_OC_Endpoint_Selector_Factory);
-#endif /* TAO_AS_STATIC_LIBS */
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/OC_Endpoint_Selector_Loader.h b/TAO/tao/Strategies/OC_Endpoint_Selector_Loader.h
deleted file mode 100644
index 5edc517027d..00000000000
--- a/TAO/tao/Strategies/OC_Endpoint_Selector_Loader.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OC_Endpoint_Selector_Loader.h
- *
- * $Id$
- *
- * Strategies for selecting profile/endpoint from an IOR for making an
- * invocation.
- *
- * @author Phil Mesnier <mesnier_p@ociweb.com>
- */
-//=============================================================================
-
-
-#ifndef TAO_OC_ENDPOINT_LOADER_H
-#define TAO_OC_ENDPOINT_LOADER_H
-#include /**/ "ace/pre.h"
-
-#include "tao/Strategies/strategies_export.h"
-#include "tao/Strategies/OC_Endpoint_Selector_Factory.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Forward references
-class TAO_Optimized_Connection_Endpoint_Selector;
-
-// ****************************************************************
-
-/**
- * @class TAO_OC_Endpoint_Selector_Loader
- *
- * @brief Static initializer used to ensure the Optimized Connector
- * Endpoint Selector is available for use in static applications
- *
- * This class is not needed when using dynamic linking and the service
- * configuratior. Statically linked applications need to include this
- * header to ensure that all the necessary dependencies are met. In
- * addition, the svc config directive is required for setting any
- * initialization parameters for the endpoint selector.
- *
- */
-class TAO_Strategies_Export TAO_OC_Endpoint_Selector_Loader
-{
-public:
- TAO_OC_Endpoint_Selector_Loader (void);
-};
-
-
-static TAO_OC_Endpoint_Selector_Loader _TAO_oc_endpoint_selector_loader;
-
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* TAO_OC_ENDPOINT_LOADER_H */
diff --git a/TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.cpp b/TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.cpp
deleted file mode 100644
index dae584e8152..00000000000
--- a/TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.cpp
+++ /dev/null
@@ -1,178 +0,0 @@
-// -*- C++ -*-
-
-#include "tao/Strategies/Optimized_Connection_Endpoint_Selector.h"
-
-#include "tao/debug.h"
-#include "tao/Stub.h"
-#include "tao/Profile.h"
-#include "tao/Endpoint.h"
-#include "tao/Base_Transport_Property.h"
-#include "tao/ORB_Core.h"
-#include "tao/Transport.h"
-#include "tao/Profile_Transport_Resolver.h"
-
-ACE_RCSID (tao,
- Invocation_Endpoint_Selectors,
- "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// ****************************************************************
-
-ACE_Time_Value TAO_Optimized_Connection_Endpoint_Selector::timeout_;
-
-TAO_Optimized_Connection_Endpoint_Selector::TAO_Optimized_Connection_Endpoint_Selector (const ACE_Time_Value &tv)
-{
- TAO_Optimized_Connection_Endpoint_Selector::timeout_ = tv;
- if (TAO_debug_level)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO(%P|%t) Optimized Connection Enpoint Selector:")
- ACE_TEXT ("Initializing timeout hook tv = %d sec, %d usec\n"),
- tv.sec(), tv.usec()));
- }
- if (tv > ACE_Time_Value::zero)
- {
- TAO_ORB_Core::connection_timeout_hook
- (TAO_Optimized_Connection_Endpoint_Selector::hook);
- }
-}
-
-TAO_Optimized_Connection_Endpoint_Selector::~TAO_Optimized_Connection_Endpoint_Selector (void)
-{
-}
-
-
-void
-TAO_Optimized_Connection_Endpoint_Selector::hook (TAO_ORB_Core *,
- TAO_Stub *,
- bool &has_timeout,
- ACE_Time_Value &tv)
-{
- has_timeout =
- TAO_Optimized_Connection_Endpoint_Selector::
- timeout_ > ACE_Time_Value::zero;
- if (has_timeout)
- tv = TAO_Optimized_Connection_Endpoint_Selector::timeout_;
-}
-
-int
-TAO_Optimized_Connection_Endpoint_Selector::check_profile (TAO_Profile *p,
- TAO::Profile_Transport_Resolver *r)
-{
- TAO_Endpoint *effective_endpoint = 0;
-
- r->profile(p);
- effective_endpoint = p->endpoint ();
- size_t endpoint_count = p->endpoint_count();
- for (size_t i = 0; i < endpoint_count; ++i)
- {
- TAO_Base_Transport_Property desc (effective_endpoint);
- if (r->find_transport(&desc))
- return 1;
- // Go to the next endpoint in this profile
- effective_endpoint = effective_endpoint->next();
- }
- return 0;
-}
-
-void
-TAO_Optimized_Connection_Endpoint_Selector::select_endpoint
- ( TAO::Profile_Transport_Resolver *r,
- ACE_Time_Value *max_wait_time
- ACE_ENV_ARG_DECL)
-{
- TAO_Stub *stub = r->stub();
- TAO_Profile *p = stub->profile_in_use();
-
- // first, look for the endpoints for the current profile in use.
- // if that is available then go for it.
-
- if (this->check_profile (p, r) != 0)
- return;
-
- // next, look for any other profiles. If the stub has any forward profiles,
- // use those, otherwise look at the base profiles. This separation is
- // necessary to avoid re-using a corbaloc or other previously forwarded
- // profile.
-
- const TAO_MProfile *profiles = stub->forward_profiles();
- if (profiles != 0)
- {
- for (CORBA::ULong count = 0; count < profiles->profile_count(); count++)
- {
- p = const_cast<TAO_Profile *>(profiles->get_profile(count));
- if (this->check_profile (p, r) != 0)
- {
- if (stub->profile_in_use() != p)
- {
- // thread-safe way to coerse stub to this profile.
- stub->reset_profiles();
- while (stub->profile_in_use() != p)
- if (stub->next_profile_retry() == 0)
- break;
- }
- return;
- }
- }
- }
- else
- {
- do
- {
- p = stub->profile_in_use();
- if (this->check_profile(p, r) != 0)
- return;
- }
- while (stub->next_profile_retry () != 0);
- }
-
-
-
- // at this point, we do not have an existing transport, so we must
- // reset the profile list and try establishing connections via the
- // connector(s).
-
- do
- {
- r->profile (r->stub ()->profile_in_use ());
-
- // Check whether we need to do a blocked wait or we have a
- // non-blocked wait and we support that. If this is not the
- // case we can't use this profile so try the next.
- if (r->blocked_connect () ||
- (!r->blocked_connect () && r->profile ()->supports_non_blocking_oneways ()))
- {
- const size_t endpoint_count =
- r->profile ()->endpoint_count ();
-
- TAO_Endpoint *ep =
- r->profile ()->endpoint ();
-
- for (size_t i = 0; i < endpoint_count; ++i)
- {
- TAO_Base_Transport_Property desc (ep);
- const bool retval =
- r->try_connect (&desc,
- max_wait_time
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Check if the connect has completed.
- if (retval)
- return;
-
- // Go to the next endpoint in this profile.
- ep = ep->next ();
- }
- }
- }
- while (r->stub ()->next_profile_retry () != 0);
-
- // If we get here, we completely failed to find an endpoint selector
- // that we know how to use, so throw an exception.
- ACE_THROW (CORBA::TRANSIENT (CORBA::OMGVMCID | 2,
- CORBA::COMPLETED_NO));
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.h b/TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.h
deleted file mode 100644
index 818541916c6..00000000000
--- a/TAO/tao/Strategies/Optimized_Connection_Endpoint_Selector.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Optimized_Connection_Endpoint_Selector.h
- *
- * $Id$
- *
- * Strategies for selecting profile/endpoint from an IOR for making an
- * invocation.
- *
- * @author Phil Mesnier <mesnier_p@ociweb.com>
- */
-//=============================================================================
-
-
-#ifndef TAO_OPTIMIZED_CONNECTION_ENDPOINT_SELECTOR_H
-#define TAO_OPTIMIZED_ENDPOINT_SELECTOR_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/corbafwd.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/Strategies/strategies_export.h"
-
-#include "tao/Invocation_Endpoint_Selectors.h"
-#include "ace/Time_Value.h"
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_GIOP_Invocation;
-class TAO_ORB_Core;
-class TAO_Stub;
-class TAO_Profile;
-
-/**
- * @class TAO_Optimized_Connection_Endpoint_Selector
- *
- * @brief More efficient connection strategy for endpoint selection.
- *
- * This strategy builds on the default by first querying the connection
- * cache for all potential endpoints before iterating over the list to
- * attempt to create new connections.
- */
-
-class TAO_Strategies_Export TAO_Optimized_Connection_Endpoint_Selector :
-public TAO_Default_Endpoint_Selector
-{
-public:
- /// Constructor.
- TAO_Optimized_Connection_Endpoint_Selector (const ACE_Time_Value& tv);
-
- /// Destructor.
- virtual ~TAO_Optimized_Connection_Endpoint_Selector (void);
-
- static void hook (TAO_ORB_Core *,
- TAO_Stub *,
- bool &has_timeout,
- ACE_Time_Value &tv);
-
- virtual void select_endpoint (TAO::Profile_Transport_Resolver *,
- ACE_Time_Value *max_wait_time
- ACE_ENV_ARG_DECL);
-private:
-
- int check_profile (TAO_Profile *,
- TAO::Profile_Transport_Resolver *);
-
- static ACE_Time_Value timeout_;
-};
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* TAO_OPTIMIZED_CONNECTION_ENDPOINT_SELECTOR_H */
diff --git a/TAO/tao/Strategies/SCIOP_Acceptor.cpp b/TAO/tao/Strategies/SCIOP_Acceptor.cpp
index 03574aa5b2b..cd8b50e2502 100644
--- a/TAO/tao/Strategies/SCIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/SCIOP_Acceptor.cpp
@@ -1,5 +1,5 @@
-#include "tao/Strategies/SCIOP_Acceptor.h"
-#include "tao/Strategies/SCIOP_Profile.h"
+#include "SCIOP_Acceptor.h"
+#include "SCIOP_Profile.h"
#if TAO_HAS_SCIOP == 1
@@ -11,16 +11,13 @@
#include "tao/CDR.h"
#if !defined(__ACE_INLINE__)
-#include "tao/Strategies/SCIOP_Acceptor.i"
+#include "SCIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(tao,
SCIOP_Acceptor,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SCIOP_Acceptor::TAO_SCIOP_Acceptor (CORBA::Boolean flag)
: TAO_Acceptor (TAO_TAG_SCIOP_PROFILE),
addrs_ (0),
@@ -610,7 +607,7 @@ TAO_SCIOP_Acceptor::open_i (const ACE_Multihomed_INET_Addr& addr,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("\nTAO (%P|%t) SCIOP_Acceptor::open_i - ")
ACE_TEXT ("listening on: <%s:%u>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(this->hosts_[i]),
+ ACE_TEXT_TO_TCHAR_IN(this->hosts_[i]),
this->addrs_[i].get_port_number ()));
}
}
@@ -1031,6 +1028,4 @@ TAO_SCIOP_Acceptor::parse_options (const char *str)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Acceptor.h b/TAO/tao/Strategies/SCIOP_Acceptor.h
index f81492115c2..a62f9e9d395 100644
--- a/TAO/tao/Strategies/SCIOP_Acceptor.h
+++ b/TAO/tao/Strategies/SCIOP_Acceptor.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ===================================================================
/*
@@ -32,12 +30,10 @@
#include "ace/SOCK_SEQPACK_Acceptor.h"
#include "tao/Transport_Acceptor.h"
-#include "tao/Strategies/SCIOP_Connection_Handler.h"
+#include "SCIOP_Connection_Handler.h"
#include "tao/Acceptor_Impl.h"
#include "tao/GIOP_Message_Version.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO SCIOP_Acceptor concrete call defination
/**
@@ -222,10 +218,8 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(__ACE_INLINE__)
-#include "tao/Strategies/SCIOP_Acceptor.i"
+#include "SCIOP_Acceptor.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Acceptor.i b/TAO/tao/Strategies/SCIOP_Acceptor.i
index a5f51de6042..b6e6b200890 100644
--- a/TAO/tao/Strategies/SCIOP_Acceptor.i
+++ b/TAO/tao/Strategies/SCIOP_Acceptor.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_INET_Addr&
TAO_SCIOP_Acceptor::address (void) const
{
@@ -24,5 +21,3 @@ TAO_SCIOP_Acceptor::endpoints (void)
return this->addrs_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/SCIOP_Connection_Handler.cpp b/TAO/tao/Strategies/SCIOP_Connection_Handler.cpp
index 932a4e6b575..6bb68061112 100644
--- a/TAO/tao/Strategies/SCIOP_Connection_Handler.cpp
+++ b/TAO/tao/Strategies/SCIOP_Connection_Handler.cpp
@@ -1,4 +1,4 @@
-#include "tao/Strategies/SCIOP_Connection_Handler.h"
+#include "SCIOP_Connection_Handler.h"
#if TAO_HAS_SCIOP == 1
@@ -19,8 +19,8 @@
#include "tao/ORB.h"
#include "tao/CDR.h"
#include "tao/Server_Strategy_Factory.h"
-#include "tao/Strategies/SCIOP_Transport.h"
-#include "tao/Strategies/SCIOP_Endpoint.h"
+#include "SCIOP_Transport.h"
+#include "SCIOP_Endpoint.h"
#include "tao/Transport_Cache_Manager.h"
#include "tao/Thread_Lane_Resources.h"
#include "tao/Base_Transport_Property.h"
@@ -32,8 +32,6 @@ ACE_RCSID (tao,
SCIOP_Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SCIOP_Connection_Handler::TAO_SCIOP_Connection_Handler (ACE_Thread_Manager *t)
: TAO_SCIOP_SVC_HANDLER (t, 0 , 0),
TAO_Connection_Handler (0),
@@ -205,7 +203,7 @@ TAO_SCIOP_Connection_Handler::open (void*)
return -1;
this->state_changed (TAO_LF_Event::LFS_SUCCESS,
- this->orb_core ()->leader_follower ());
+ this->orb_core ()->leader_follower ());
return 0;
}
@@ -317,7 +315,7 @@ TAO_SCIOP_Connection_Handler::process_listen_point_list (
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("(%P|%t) Listening port [%d] on [%s]\n"),
listen_point.port,
- ACE_TEXT_CHAR_TO_TCHAR(listen_point.host.in ())));
+ ACE_TEXT_TO_TCHAR_IN(listen_point.host.in ())));
}
// Construct an SCIOP_Endpoint object
@@ -385,6 +383,4 @@ TAO_SCIOP_Connection_Handler::set_dscp_codepoint (CORBA::Boolean set_network_pri
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Connection_Handler.h b/TAO/tao/Strategies/SCIOP_Connection_Handler.h
index 9cfe605b80f..741bb4762e4 100644
--- a/TAO/tao/Strategies/SCIOP_Connection_Handler.h
+++ b/TAO/tao/Strategies/SCIOP_Connection_Handler.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ===================================================================
/**
@@ -29,23 +27,23 @@
#if TAO_HAS_SCIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/Connection_Handler.h"
#include "tao/IIOPC.h"
#include "ace/Svc_Handler.h"
#include "ace/SOCK_SEQPACK_Association.h"
-#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
-template class TAO_Strategies_Export ACE_Svc_Handler<ACE_SOCK_SEQPACK_ASSOCIATION, ACE_NULL_SYNCH>;
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Service Handler for this transport
typedef ACE_Svc_Handler<ACE_SOCK_SEQPACK_ASSOCIATION, ACE_NULL_SYNCH>
TAO_SCIOP_SVC_HANDLER;
+#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
+template class TAO_Strategies_Export ACE_Svc_Handler<ACE_SOCK_SEQPACK_ASSOCIATION, ACE_NULL_SYNCH>;
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
+
+
// Forward Decls
class TAO_Pluggable_Messaging;
@@ -139,8 +137,6 @@ private:
int dscp_codepoint_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SCIOP_Connector.cpp b/TAO/tao/Strategies/SCIOP_Connector.cpp
index 663bccdb60a..60ec25b6100 100644
--- a/TAO/tao/Strategies/SCIOP_Connector.cpp
+++ b/TAO/tao/Strategies/SCIOP_Connector.cpp
@@ -1,5 +1,5 @@
-#include "tao/Strategies/SCIOP_Connector.h"
-#include "tao/Strategies/SCIOP_Profile.h"
+#include "SCIOP_Connector.h"
+#include "SCIOP_Profile.h"
#if TAO_HAS_SCIOP == 1
@@ -24,9 +24,6 @@ ACE_RCSID (TAO,
SCIOP_Connector,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SCIOP_Connector::TAO_SCIOP_Connector (CORBA::Boolean flag)
: TAO_Connector (TAO_TAG_SCIOP_PROFILE),
lite_flag_ (flag),
@@ -162,7 +159,7 @@ TAO_SCIOP_Connector::make_connection_i (TAO::Profile_Transport_Resolver *r,
ACE_DEBUG ((LM_DEBUG,
"TAO (%P|%t) - SCIOP_Connector::make_connection_i, "
"to <%s:%d> which should %s\n",
- ACE_TEXT_CHAR_TO_TCHAR(sciop_endpoint->host()),
+ ACE_TEXT_TO_TCHAR_IN(sciop_endpoint->host()),
sciop_endpoint->port(),
r->blocked_connect () ? ACE_TEXT("block") : ACE_TEXT("nonblock")));
@@ -425,6 +422,5 @@ TAO_SCIOP_Connector::cancel_svc_handler (
return -1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Connector.h b/TAO/tao/Strategies/SCIOP_Connector.h
index 8431309099a..dd6aa57d8c2 100644
--- a/TAO/tao/Strategies/SCIOP_Connector.h
+++ b/TAO/tao/Strategies/SCIOP_Connector.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
//=============================================================================
/**
@@ -30,14 +28,12 @@
#if TAO_HAS_SCIOP == 1
+class TAO_SCIOP_Endpoint;
+
#include "ace/Connector.h"
#include "tao/Transport_Connector.h"
#include "tao/Connector_Impl.h"
-#include "tao/Strategies/SCIOP_Connection_Handler.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class TAO_SCIOP_Endpoint;
+#include "SCIOP_Connection_Handler.h"
// ****************************************************************
@@ -129,8 +125,6 @@ private:
TAO_SCIOP_BASE_CONNECTOR base_connector_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Endpoint.cpp b/TAO/tao/Strategies/SCIOP_Endpoint.cpp
index 136d8927ff2..89ac5c3bd2c 100644
--- a/TAO/tao/Strategies/SCIOP_Endpoint.cpp
+++ b/TAO/tao/Strategies/SCIOP_Endpoint.cpp
@@ -1,4 +1,4 @@
-#include "tao/Strategies/SCIOP_Endpoint.h"
+#include "SCIOP_Endpoint.h"
#if TAO_HAS_SCIOP == 1
@@ -19,10 +19,9 @@ ACE_RCSID (Strategies,
#if !defined (__ACE_INLINE__)
-# include "tao/Strategies/SCIOP_Endpoint.i"
+# include "SCIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_SCIOP_Endpoint::TAO_SCIOP_Endpoint (const ACE_INET_Addr &addr,
int use_dotted_decimal_addresses)
@@ -365,6 +364,4 @@ TAO_SCIOP_Endpoint::preferred_network (void) const
return this->preferred_path_.host.in ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Endpoint.h b/TAO/tao/Strategies/SCIOP_Endpoint.h
index 483d0206c36..0095ccfe186 100644
--- a/TAO/tao/Strategies/SCIOP_Endpoint.h
+++ b/TAO/tao/Strategies/SCIOP_Endpoint.h
@@ -29,13 +29,11 @@
#if TAO_HAS_SCIOP == 1
#include "tao/Endpoint.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/CORBA_String.h"
#include "ace/INET_Addr.h"
#include "tao/IIOP_EndpointsC.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_SCIOP_Connection_Handler;
/**
@@ -162,10 +160,9 @@ private:
TAO_SCIOP_Endpoint *next_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-# include "tao/Strategies/SCIOP_Endpoint.i"
+# include "SCIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Endpoint.i b/TAO/tao/Strategies/SCIOP_Endpoint.i
index 2174f62be7b..fd182741c6b 100644
--- a/TAO/tao/Strategies/SCIOP_Endpoint.i
+++ b/TAO/tao/Strategies/SCIOP_Endpoint.i
@@ -1,8 +1,6 @@
// -*- C++ -*-
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const char *
TAO_SCIOP_Endpoint::host (void) const
{
@@ -20,5 +18,3 @@ TAO_SCIOP_Endpoint::port (CORBA::UShort p)
{
return this->port_ = p;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/SCIOP_Factory.cpp b/TAO/tao/Strategies/SCIOP_Factory.cpp
index c6c0d3a271d..0383f053e2a 100644
--- a/TAO/tao/Strategies/SCIOP_Factory.cpp
+++ b/TAO/tao/Strategies/SCIOP_Factory.cpp
@@ -1,6 +1,6 @@
-#include "tao/Strategies/SCIOP_Factory.h"
-#include "tao/Strategies/SCIOP_Acceptor.h"
-#include "tao/Strategies/SCIOP_Connector.h"
+#include "SCIOP_Factory.h"
+#include "SCIOP_Acceptor.h"
+#include "SCIOP_Connector.h"
#include "ace/OS_NS_strings.h"
#if TAO_HAS_SCIOP == 1
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
static const char prefix_[] = "sciop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SCIOP_Protocol_Factory::TAO_SCIOP_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_SCIOP_PROFILE),
major_ (TAO_DEF_SCIOP_MAJOR),
@@ -81,8 +79,6 @@ TAO_SCIOP_Protocol_Factory::requires_explicit_endpoint (void) const
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_SCIOP_Protocol_Factory,
ACE_TEXT ("SCIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Strategies/SCIOP_Factory.h b/TAO/tao/Strategies/SCIOP_Factory.h
index a81198ab706..7b4a30aab29 100644
--- a/TAO/tao/Strategies/SCIOP_Factory.h
+++ b/TAO/tao/Strategies/SCIOP_Factory.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
//=============================================================================
/**
@@ -25,17 +23,14 @@
#if TAO_HAS_SCIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/Service_Config.h"
#include "tao/Protocol_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
-class TAO_Strategies_Export TAO_SCIOP_Protocol_Factory
-: public TAO_Protocol_Factory
+class TAO_Strategies_Export TAO_SCIOP_Protocol_Factory : public TAO_Protocol_Factory
{
public:
TAO_SCIOP_Protocol_Factory (void);
@@ -67,8 +62,6 @@ private:
int minor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Strategies, TAO_SCIOP_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_SCIOP_Protocol_Factory)
diff --git a/TAO/tao/Strategies/SCIOP_Lite_Factory.cpp b/TAO/tao/Strategies/SCIOP_Lite_Factory.cpp
index e71cb4dd6ce..849981f5e07 100644
--- a/TAO/tao/Strategies/SCIOP_Lite_Factory.cpp
+++ b/TAO/tao/Strategies/SCIOP_Lite_Factory.cpp
@@ -1,6 +1,6 @@
-#include "tao/Strategies/SCIOP_Lite_Factory.h"
-#include "tao/Strategies/SCIOP_Acceptor.h"
-#include "tao/Strategies/SCIOP_Connector.h"
+#include "SCIOP_Lite_Factory.h"
+#include "SCIOP_Acceptor.h"
+#include "SCIOP_Connector.h"
#include "ace/Dynamic_Service.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_strings.h"
@@ -11,8 +11,6 @@ ACE_RCSID(tao, SCIOP_Factory, "$Id$")
static const char prefix_[] = "sciop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SCIOP_Lite_Protocol_Factory::TAO_SCIOP_Lite_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_SCIOP_PROFILE),
major_ (TAO_DEF_SCIOP_MAJOR),
@@ -85,8 +83,6 @@ TAO_SCIOP_Lite_Protocol_Factory::requires_explicit_endpoint (void) const
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_SCIOP_Lite_Protocol_Factory,
ACE_TEXT ("SCIOP_Lite_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Strategies/SCIOP_Lite_Factory.h b/TAO/tao/Strategies/SCIOP_Lite_Factory.h
index c4e05a13bb9..cdade7a16e9 100644
--- a/TAO/tao/Strategies/SCIOP_Lite_Factory.h
+++ b/TAO/tao/Strategies/SCIOP_Lite_Factory.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
//==========================================================================
/**
@@ -25,11 +23,10 @@
#if TAO_HAS_SCIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/Service_Config.h"
#include "tao/Protocol_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Acceptor;
class TAO_Connector;
@@ -68,8 +65,6 @@ private:
int minor_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Strategies, TAO_SCIOP_Lite_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_SCIOP_Lite_Protocol_Factory)
diff --git a/TAO/tao/Strategies/SCIOP_Profile.cpp b/TAO/tao/Strategies/SCIOP_Profile.cpp
index 0a9b1da7693..7c48f8e3f8e 100644
--- a/TAO/tao/Strategies/SCIOP_Profile.cpp
+++ b/TAO/tao/Strategies/SCIOP_Profile.cpp
@@ -1,7 +1,7 @@
// This may look like C, but it's really -*- C++ -*-
// SCIOP_Profile.cpp
-#include "tao/Strategies/SCIOP_Profile.h"
+#include "SCIOP_Profile.h"
#if TAO_HAS_SCIOP == 1
@@ -11,7 +11,7 @@
#include "tao/ORB_Core.h"
#include "tao/debug.h"
#include "tao/StringSeqC.h"
-#include "tao/Strategies/sciop_endpointsC.h"
+#include "sciop_endpointsC.h"
ACE_RCSID(Strategies,
SCIOP_Profile,
@@ -21,14 +21,14 @@ static const char prefix_[] = "sciop";
const char TAO_SCIOP_Profile::object_key_delimiter_ = '/';
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
char
TAO_SCIOP_Profile::object_key_delimiter (void) const
{
return TAO_SCIOP_Profile::object_key_delimiter_;
}
+
+
TAO_SCIOP_Profile::TAO_SCIOP_Profile (const ACE_INET_Addr &addr,
const TAO::ObjectKey &object_key,
const TAO_GIOP_Message_Version &version,
@@ -513,6 +513,4 @@ TAO_SCIOP_Profile::decode_endpoints (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Profile.h b/TAO/tao/Strategies/SCIOP_Profile.h
index c2abcf93a1b..5310af754b0 100644
--- a/TAO/tao/Strategies/SCIOP_Profile.h
+++ b/TAO/tao/Strategies/SCIOP_Profile.h
@@ -26,9 +26,8 @@
#if TAO_HAS_SCIOP == 1
-#include "tao/Strategies/SCIOP_Endpoint.h"
+#include "SCIOP_Endpoint.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO SCIOP_Profile concrete Profile definitions
/**
@@ -134,8 +133,6 @@ protected:
CORBA::ULong count_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SCIOP_Transport.cpp b/TAO/tao/Strategies/SCIOP_Transport.cpp
index 72da213aa93..a5acf0d6395 100644
--- a/TAO/tao/Strategies/SCIOP_Transport.cpp
+++ b/TAO/tao/Strategies/SCIOP_Transport.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/Strategies/SCIOP_Transport.h"
+#include "SCIOP_Transport.h"
#if TAO_HAS_SCIOP == 1
-#include "tao/Strategies/SCIOP_Connection_Handler.h"
-#include "tao/Strategies/SCIOP_Acceptor.h"
-#include "tao/Strategies/SCIOP_Profile.h"
+#include "SCIOP_Connection_Handler.h"
+#include "SCIOP_Acceptor.h"
+#include "SCIOP_Profile.h"
#include "tao/Acceptor_Registry.h"
#include "tao/Thread_Lane_Resources.h"
#include "tao/operation_details.h"
@@ -25,8 +25,6 @@ ACE_RCSID (tao,
SCIOP_Transport,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SCIOP_Transport::TAO_SCIOP_Transport (TAO_SCIOP_Connection_Handler *handler,
TAO_ORB_Core *orb_core,
CORBA::Boolean )
@@ -382,6 +380,4 @@ TAO_SCIOP_Transport::get_listen_point (
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
diff --git a/TAO/tao/Strategies/SCIOP_Transport.h b/TAO/tao/Strategies/SCIOP_Transport.h
index ad07a706b64..e51f42b5778 100644
--- a/TAO/tao/Strategies/SCIOP_Transport.h
+++ b/TAO/tao/Strategies/SCIOP_Transport.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
// $Id$
// ===================================================================
/**
@@ -25,12 +23,10 @@
#if TAO_HAS_SCIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/IIOPC.h"
#include "ace/SOCK_SEQPACK_Association.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class TAO_SCIOP_Connection_Handler;
class TAO_ORB_Core;
@@ -141,8 +137,6 @@ private:
TAO_Pluggable_Messaging *messaging_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SCIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SHMIOP_Acceptor.cpp b/TAO/tao/Strategies/SHMIOP_Acceptor.cpp
index 5de6670b1a1..595f3bb55db 100644
--- a/TAO/tao/Strategies/SHMIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Acceptor.cpp
@@ -1,10 +1,11 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "tao/Strategies/SHMIOP_Acceptor.h"
+#include "SHMIOP_Acceptor.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/SHMIOP_Profile.h"
+#include "SHMIOP_Profile.h"
#include "tao/MProfile.h"
#include "tao/ORB_Core.h"
#include "tao/Server_Strategy_Factory.h"
@@ -19,8 +20,6 @@ ACE_RCSID (Strategies,
SHMIOP_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SHMIOP_Acceptor::TAO_SHMIOP_Acceptor (CORBA::Boolean flag)
: TAO_Acceptor (TAO_TAG_SHMEM_PROFILE),
version_ (TAO_DEF_GIOP_MAJOR, TAO_DEF_GIOP_MINOR),
@@ -206,7 +205,7 @@ TAO_SHMIOP_Acceptor::open (TAO_ORB_Core *orb_core,
return -1; // Port number must consist of digits
if (port)
- this->address_.set (ACE_TEXT_CHAR_TO_TCHAR(port));
+ this->address_.set (ACE_TEXT_TO_TCHAR_IN(port));
return this->open_i (orb_core,
reactor);
@@ -331,7 +330,7 @@ TAO_SHMIOP_Acceptor::open_i (TAO_ORB_Core* orb_core,
ACE_TEXT ("cannot cache hostname\n")));
return -1;
}
- this->host_ = ACE_TEXT_ALWAYS_CHAR(tmp_host);
+ this->host_ = ACE_TEXT_TO_CHAR_OUT(tmp_host);
}
// This avoids having child processes acquire the listen socket thereby
@@ -344,7 +343,7 @@ TAO_SHMIOP_Acceptor::open_i (TAO_ORB_Core* orb_core,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - SHMIOP_Acceptor::open_i, ")
ACE_TEXT ("listening on : <%s:%u>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(this->host_.c_str ()),
+ ACE_TEXT_TO_TCHAR_IN(this->host_.c_str ()),
this->address_.get_port_number ()));
}
return 0;
@@ -478,7 +477,7 @@ TAO_SHMIOP_Acceptor::parse_options (const char *str)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) SHMIOP option <%s> is ")
ACE_TEXT ("missing a value.\n"),
- ACE_TEXT_CHAR_TO_TCHAR(opt.c_str ())),
+ ACE_TEXT_TO_TCHAR_IN(opt.c_str ())),
-1);
ACE_CString name = opt.substring (0, slot);
@@ -500,13 +499,11 @@ TAO_SHMIOP_Acceptor::parse_options (const char *str)
else
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) Invalid SHMIOP option: <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(name.c_str ())),
+ ACE_TEXT_TO_TCHAR_IN(name.c_str ())),
-1);
}
}
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
diff --git a/TAO/tao/Strategies/SHMIOP_Acceptor.h b/TAO/tao/Strategies/SHMIOP_Acceptor.h
index b1db53fd947..ef369ad0f9c 100644
--- a/TAO/tao/Strategies/SHMIOP_Acceptor.h
+++ b/TAO/tao/Strategies/SHMIOP_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// $Id$
// ============================================================================
@@ -31,15 +31,13 @@
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
#include "tao/Transport_Acceptor.h"
-#include "tao/Strategies/SHMIOP_Connection_Handler.h"
+#include "SHMIOP_Connection_Handler.h"
#include "tao/Acceptor_Impl.h"
#include "ace/Acceptor.h"
#include "ace/MEM_Acceptor.h"
#include "tao/GIOP_Message_Version.h"
// TAO SHMIOP_Acceptor concrete call definitions
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_SHMIOP_Acceptor
*
@@ -150,8 +148,6 @@ private:
CORBA::Boolean lite_flag_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SHMIOP_Connection_Handler.cpp b/TAO/tao/Strategies/SHMIOP_Connection_Handler.cpp
index 788407dfd7d..9d384859ff7 100644
--- a/TAO/tao/Strategies/SHMIOP_Connection_Handler.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Connection_Handler.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/Strategies/SHMIOP_Connection_Handler.h"
+#include "SHMIOP_Connection_Handler.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
@@ -13,7 +13,7 @@
#include "tao/Base_Transport_Property.h"
#include "tao/Transport_Cache_Manager.h"
#include "tao/Thread_Lane_Resources.h"
-#include "tao/Strategies/SHMIOP_Endpoint.h"
+#include "SHMIOP_Endpoint.h"
#include "tao/Resume_Handle.h"
#include "tao/Protocols_Hooks.h"
@@ -24,8 +24,6 @@ ACE_RCSID (Strategies,
SHMIOP_Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SHMIOP_Connection_Handler::TAO_SHMIOP_Connection_Handler (ACE_Thread_Manager *t)
: TAO_SHMIOP_SVC_HANDLER (t, 0 , 0),
TAO_Connection_Handler (0)
@@ -159,7 +157,7 @@ TAO_SHMIOP_Connection_Handler::open (void*)
// Not needed, anyway
this->state_changed (TAO_LF_Event::LFS_SUCCESS,
- this->orb_core ()->leader_follower ());
+ this->orb_core ()->leader_follower ());
return 0;
}
@@ -252,6 +250,4 @@ TAO_SHMIOP_Connection_Handler::add_transport_to_cache (void)
this->transport ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /*(TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0) */
diff --git a/TAO/tao/Strategies/SHMIOP_Connection_Handler.h b/TAO/tao/Strategies/SHMIOP_Connection_Handler.h
index 626c424920b..fbfa34bc1fc 100644
--- a/TAO/tao/Strategies/SHMIOP_Connection_Handler.h
+++ b/TAO/tao/Strategies/SHMIOP_Connection_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -28,12 +28,9 @@
#include "ace/Acceptor.h"
#include "tao/Wait_Strategy.h"
#include "tao/Connection_Handler.h"
-#include "tao/Strategies/SHMIOP_Transport.h"
+#include "SHMIOP_Transport.h"
// ****************************************************************
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_SHMIOP_Connection_Handler
*
@@ -42,6 +39,8 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
* The Connection handler which is common for the Acceptor and
* the Connector
*/
+
+
class TAO_Strategies_Export TAO_SHMIOP_Connection_Handler :
public TAO_SHMIOP_SVC_HANDLER,
public TAO_Connection_Handler
@@ -104,8 +103,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SHMIOP_Connector.cpp b/TAO/tao/Strategies/SHMIOP_Connector.cpp
index adba9338dc1..d1490b46eb0 100644
--- a/TAO/tao/Strategies/SHMIOP_Connector.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Connector.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/Strategies/SHMIOP_Connector.h"
+#include "SHMIOP_Connector.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/SHMIOP_Profile.h"
-#include "tao/Strategies/SHMIOP_Endpoint.h"
+#include "SHMIOP_Profile.h"
+#include "SHMIOP_Endpoint.h"
#include "tao/debug.h"
#include "tao/Base_Transport_Property.h"
#include "tao/ORB_Core.h"
@@ -21,8 +21,6 @@ ACE_RCSID (Strategies,
SHMIOP_Connector,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SHMIOP_Connector::TAO_SHMIOP_Connector (CORBA::Boolean flag)
: TAO_Connector (TAO_TAG_SHMEM_PROFILE),
connect_strategy_ (),
@@ -35,6 +33,7 @@ TAO_SHMIOP_Connector::~TAO_SHMIOP_Connector (void)
{
}
+
int
TAO_SHMIOP_Connector::open (TAO_ORB_Core *orb_core)
{
@@ -146,7 +145,7 @@ TAO_SHMIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *,
ACE_DEBUG ((LM_DEBUG,
"TAO (%P|%t) - SHMIOP_Connector::make_connection, "
"making a new connection to <%s:%d>\n",
- ACE_TEXT_CHAR_TO_TCHAR (shmiop_endpoint->host ()),
+ ACE_TEXT_TO_TCHAR_IN (shmiop_endpoint->host ()),
shmiop_endpoint->port ()));
// Get the right synch options
@@ -182,7 +181,7 @@ TAO_SHMIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *,
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) - SHMIOP_Connector::make_connection, ")
ACE_TEXT ("connection to <%s:%u> failed (%p)\n"),
- ACE_TEXT_CHAR_TO_TCHAR (shmiop_endpoint->host ()),
+ ACE_TEXT_TO_TCHAR_IN (shmiop_endpoint->host ()),
shmiop_endpoint->port (),
ACE_TEXT ("errno")));
}
@@ -196,7 +195,7 @@ TAO_SHMIOP_Connector::make_connection (TAO::Profile_Transport_Resolver *,
ACE_DEBUG ((LM_DEBUG,
"TAO (%P|%t) - SHMIOP_Connector::make_connection, "
"new connection to <%s:%d> on Transport[%d]\n",
- ACE_TEXT_CHAR_TO_TCHAR (shmiop_endpoint->host ()),
+ ACE_TEXT_TO_TCHAR_IN (shmiop_endpoint->host ()),
shmiop_endpoint->port (),
svc_handler->peer ().get_handle ()));
@@ -349,6 +348,5 @@ TAO_SHMIOP_Connector::cancel_svc_handler (
return -1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
diff --git a/TAO/tao/Strategies/SHMIOP_Connector.h b/TAO/tao/Strategies/SHMIOP_Connector.h
index 95c1ef4a2f7..d4b41468c55 100644
--- a/TAO/tao/Strategies/SHMIOP_Connector.h
+++ b/TAO/tao/Strategies/SHMIOP_Connector.h
@@ -30,12 +30,10 @@
#include "ace/MEM_Connector.h"
#include "ace/Connector.h"
#include "tao/Transport_Connector.h"
-#include "tao/Strategies/SHMIOP_Connection_Handler.h"
+#include "SHMIOP_Connection_Handler.h"
#include "tao/Resource_Factory.h"
#include "tao/Connector_Impl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_SHMIOP_Endpoint;
// ****************************************************************
@@ -129,8 +127,6 @@ private:
CORBA::Boolean lite_flag_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SHMIOP_Endpoint.cpp b/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
index cf24fcd5fba..8d2ca160b58 100644
--- a/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Endpoint.cpp
@@ -1,10 +1,12 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "tao/Strategies/SHMIOP_Endpoint.h"
+
+#include "SHMIOP_Endpoint.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/SHMIOP_Connection_Handler.h"
+#include "SHMIOP_Connection_Handler.h"
#include "tao/debug.h"
#include "tao/ORB_Constants.h"
@@ -17,13 +19,11 @@ ACE_RCSID (Strategies,
#if !defined (__ACE_INLINE__)
-# include "tao/Strategies/SHMIOP_Endpoint.i"
+# include "SHMIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#include "ace/os_include/os_netdb.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SHMIOP_Endpoint::TAO_SHMIOP_Endpoint (const ACE_MEM_Addr &addr,
int use_dotted_decimal_addresses)
: TAO_Endpoint (TAO_TAG_SHMEM_PROFILE)
@@ -260,7 +260,4 @@ TAO_SHMIOP_Endpoint::object_addr (void) const
return this->object_addr_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
diff --git a/TAO/tao/Strategies/SHMIOP_Endpoint.h b/TAO/tao/Strategies/SHMIOP_Endpoint.h
index bd5b24ffb14..c44a9f6705f 100644
--- a/TAO/tao/Strategies/SHMIOP_Endpoint.h
+++ b/TAO/tao/Strategies/SHMIOP_Endpoint.h
@@ -25,13 +25,12 @@
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
#include "tao/CORBA_String.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/INET_Addr.h"
#include "ace/MEM_Addr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_SHMIOP_Endpoint
@@ -136,10 +135,8 @@ private:
TAO_SHMIOP_Endpoint *next_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Strategies/SHMIOP_Endpoint.i"
+# include "SHMIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
diff --git a/TAO/tao/Strategies/SHMIOP_Endpoint.i b/TAO/tao/Strategies/SHMIOP_Endpoint.i
index e507b39c440..e5a11fae5ab 100644
--- a/TAO/tao/Strategies/SHMIOP_Endpoint.i
+++ b/TAO/tao/Strategies/SHMIOP_Endpoint.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const char *
TAO_SHMIOP_Endpoint::host (void) const
{
@@ -21,5 +18,3 @@ TAO_SHMIOP_Endpoint::port (CORBA::UShort p)
{
return this->port_ = p;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/SHMIOP_Factory.cpp b/TAO/tao/Strategies/SHMIOP_Factory.cpp
index 27cca45b226..6d49937a410 100644
--- a/TAO/tao/Strategies/SHMIOP_Factory.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Factory.cpp
@@ -1,9 +1,9 @@
-#include "tao/Strategies/SHMIOP_Factory.h"
+#include "SHMIOP_Factory.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/SHMIOP_Acceptor.h"
-#include "tao/Strategies/SHMIOP_Connector.h"
+#include "SHMIOP_Acceptor.h"
+#include "SHMIOP_Connector.h"
#include "tao/ORB_Constants.h"
@@ -19,8 +19,6 @@ ACE_RCSID (Strategies,
static const char prefix_[] = "shmiop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SHMIOP_Protocol_Factory::TAO_SHMIOP_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_SHMEM_PROFILE),
major_ (TAO_DEF_GIOP_MAJOR),
@@ -82,12 +80,12 @@ TAO_SHMIOP_Protocol_Factory::init (int argc,
{
const ACE_TCHAR *current_arg = 0;
- if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-MMAPFileSize"))))
+ if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-MMAPFileSize"))))
{
this->min_bytes_ = ACE_OS::atoi (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-MMAPFilePrefix"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT("-MMAPFilePrefix"))))
{
this->mmap_prefix_ = ACE::strnew (current_arg);
arg_shifter.consume_arg ();
@@ -118,8 +116,6 @@ TAO_SHMIOP_Protocol_Factory::requires_explicit_endpoint (void) const
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_SHMIOP_Protocol_Factory,
ACE_TEXT ("SHMIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Strategies/SHMIOP_Factory.h b/TAO/tao/Strategies/SHMIOP_Factory.h
index fff404e0d98..4093b9069e6 100644
--- a/TAO/tao/Strategies/SHMIOP_Factory.h
+++ b/TAO/tao/Strategies/SHMIOP_Factory.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
// $Id$
// ============================================================================
//
@@ -28,17 +27,14 @@
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
#include "tao/Protocol_Factory.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
-class TAO_Strategies_Export TAO_SHMIOP_Protocol_Factory
- : public TAO_Protocol_Factory
+class TAO_Strategies_Export TAO_SHMIOP_Protocol_Factory : public TAO_Protocol_Factory
{
public:
/// Constructor.
@@ -91,8 +87,6 @@ private:
off_t min_bytes_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_SHMIOP_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_SHMIOP_Protocol_Factory)
diff --git a/TAO/tao/Strategies/SHMIOP_Profile.cpp b/TAO/tao/Strategies/SHMIOP_Profile.cpp
index 71a73c4dc7c..db66c5aa82d 100644
--- a/TAO/tao/Strategies/SHMIOP_Profile.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Profile.cpp
@@ -1,4 +1,4 @@
-#include "tao/Strategies/SHMIOP_Profile.h"
+#include "SHMIOP_Profile.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
@@ -20,8 +20,6 @@ ACE_RCSID (Strategies,
static const char prefix_[] = "shmiop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const char TAO_SHMIOP_Profile::object_key_delimiter_ = '/';
char
@@ -511,6 +509,4 @@ TAO_SHMIOP_Profile::decode_endpoints (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
diff --git a/TAO/tao/Strategies/SHMIOP_Profile.h b/TAO/tao/Strategies/SHMIOP_Profile.h
index f71d1546cb1..b7f367aea82 100644
--- a/TAO/tao/Strategies/SHMIOP_Profile.h
+++ b/TAO/tao/Strategies/SHMIOP_Profile.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -27,11 +27,10 @@
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/Profile.h"
-#include "tao/Strategies/SHMIOP_Endpoint.h"
+#include "SHMIOP_Endpoint.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// TAO SHMIOP_Profile concrete Profile definitions
/**
@@ -123,8 +122,6 @@ private:
CORBA::ULong count_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/SHMIOP_Transport.cpp b/TAO/tao/Strategies/SHMIOP_Transport.cpp
index 23e03b8e94b..47fe0a6c898 100644
--- a/TAO/tao/Strategies/SHMIOP_Transport.cpp
+++ b/TAO/tao/Strategies/SHMIOP_Transport.cpp
@@ -1,11 +1,12 @@
+// This may look like C, but it's really -*- C++ -*-
// $Id$
-#include "tao/Strategies/SHMIOP_Transport.h"
+#include "SHMIOP_Transport.h"
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/SHMIOP_Connection_Handler.h"
-#include "tao/Strategies/SHMIOP_Profile.h"
+#include "SHMIOP_Connection_Handler.h"
+#include "SHMIOP_Profile.h"
#include "tao/Timeprobe.h"
#include "tao/CDR.h"
#include "tao/Transport_Mux_Strategy.h"
@@ -19,9 +20,6 @@
ACE_RCSID (Strategies, SHMIOP_Transport, "$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_SHMIOP_Transport::TAO_SHMIOP_Transport (TAO_SHMIOP_Connection_Handler *handler,
TAO_ORB_Core *orb_core,
CORBA::Boolean flag)
@@ -137,135 +135,31 @@ TAO_SHMIOP_Transport::recv (char *buf,
return n;
}
+
int
-TAO_SHMIOP_Transport::handle_input (TAO_Resume_Handle &rh,
- ACE_Time_Value *max_wait_time,
- int)
+TAO_SHMIOP_Transport::consolidate_message (ACE_Message_Block &incoming,
+ ssize_t missing_data,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time)
{
- if (TAO_debug_level > 3)
- {
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - SHMIOP_Transport[%d]::handle_input\n",
- this->id ()));
- }
-
- // The buffer on the stack which will be used to hold the input
- // messages, compensate shrink due to alignment
- char buf [TAO_MAXBUFSIZE + ACE_CDR::MAX_ALIGNMENT];
-
+ // Calculate the actual length of the load that we are supposed to
+ // read which is equal to the <missing_data> + length of the buffer
+ // that we have..
+ size_t payload = missing_data + incoming.length ();
-#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
- (void) ACE_OS::memset (buf,
- '\0',
- sizeof buf);
-#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */
-
- // Create a data block
- ACE_Data_Block db (sizeof (buf),
- ACE_Message_Block::MB_DATA,
- buf,
- this->orb_core_->input_cdr_buffer_allocator (),
- this->orb_core_->locking_strategy (),
- ACE_Message_Block::DONT_DELETE,
- this->orb_core_->input_cdr_dblock_allocator ());
-
- // Create a message block
- ACE_Message_Block message_block (&db,
- ACE_Message_Block::DONT_DELETE,
- this->orb_core_->input_cdr_msgblock_allocator ());
-
-
- // Align the message block
- ACE_CDR::mb_align (&message_block);
-
- const size_t missing_header_data = this->messaging_object ()->header_length ();
-
- if (missing_header_data == 0)
- {
- return -1;
- }
+ // Grow the buffer to the size of the message
+ ACE_CDR::grow (&incoming,
+ payload);
// .. do a read on the socket again.
ssize_t bytes = 0;
// As this used for transports where things are available in one
// shot this looping should not create any problems.
- for (size_t m = missing_header_data;
- m != 0;
- m -= bytes)
- {
- bytes = 0; // reset
-
- // We would have liked to use something like a recv_n ()
- // here. But at the time when the code was written, the MEM_Stream
- // classes had poor support for recv_n (). Till a day when we
- // get proper recv_n (), let us stick with this. The other
- // argument that can be said against this is that, this is the
- // bad layer in which this is being done ie. recv_n is
- // simulated. But...
- bytes = this->recv (message_block.wr_ptr (),
- m,
- max_wait_time);
-
- if (bytes == 0 ||
- bytes == -1)
- {
- return -1;
- }
-
- message_block.wr_ptr (bytes);
- }
-
- TAO_Queued_Data qd (&message_block);
- size_t mesg_length; // not used
-
- // Parse the incoming message for validity. The check needs to be
- // performed by the messaging objects.
- if (this->messaging_object ()->parse_next_message (message_block,
- qd,
- mesg_length) == -1)
- return -1;
-
- if (qd.missing_data_ == TAO_MISSING_DATA_UNDEFINED)
- {
- // parse/marshal error happened
- return -1;
- }
-
- if (message_block.length () > mesg_length)
- {
- // we read too much data
- return -1;
- }
-
- if (message_block.space () < qd.missing_data_)
- {
- const size_t message_size = message_block.length ()
- + qd.missing_data_;
-
- // reallocate buffer with correct size on heap
- if (ACE_CDR::grow (&message_block, message_size) == -1)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- "TAO (%P|%t) - SHMIOP_Transport[%d]::handle_input, "
- "error growing message buffer\n",
- this->id () ));
- }
- return -1;
- }
-
- }
-
- // As this used for transports where things are available in one
- // shot this looping should not create any problems.
- for (size_t n = qd.missing_data_;
+ for (size_t n = missing_data;
n != 0;
n -= bytes)
{
- bytes = 0; // reset
-
// We would have liked to use something like a recv_n ()
// here. But at the time when the code was written, the MEM_Stream
// classes had poor support for recv_n (). Till a day when we
@@ -273,7 +167,7 @@ TAO_SHMIOP_Transport::handle_input (TAO_Resume_Handle &rh,
// argument that can be said against this is that, this is the
// bad layer in which this is being done ie. recv_n is
// simulated. But...
- bytes = this->recv (message_block.wr_ptr (),
+ bytes = this->recv (incoming.wr_ptr (),
n,
max_wait_time);
@@ -283,24 +177,21 @@ TAO_SHMIOP_Transport::handle_input (TAO_Resume_Handle &rh,
return -1;
}
- message_block.wr_ptr (bytes);
-
+ incoming.wr_ptr (bytes);
}
- qd.missing_data_ = 0;
+ TAO_Queued_Data pqd (&incoming);
+
+ // With SHMIOP we would not have any missing data...
+ pqd.missing_data_ = 0;
+
+ this->messaging_object ()->get_message_data (&pqd);
// Now we have a full message in our buffer. Just go ahead and
// process that
- if (this->process_parsed_messages (&qd, rh) == -1)
- {
- return -1;
- }
-
- return 0;
+ return this->process_parsed_messages (&pqd, rh);
}
-
-
int
TAO_SHMIOP_Transport::send_request (TAO_Stub *stub,
TAO_ORB_Core *orb_core,
@@ -367,6 +258,4 @@ TAO_SHMIOP_Transport::messaging_init (CORBA::Octet major,
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
diff --git a/TAO/tao/Strategies/SHMIOP_Transport.h b/TAO/tao/Strategies/SHMIOP_Transport.h
index 6c90b821c4e..a8655d8c1db 100644
--- a/TAO/tao/Strategies/SHMIOP_Transport.h
+++ b/TAO/tao/Strategies/SHMIOP_Transport.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -24,17 +24,11 @@
#if defined (TAO_HAS_SHMIOP) && (TAO_HAS_SHMIOP != 0)
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/Svc_Handler.h"
#include "ace/MEM_Stream.h"
#include "tao/Transport.h"
-#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
-template class TAO_Strategies_Export ACE_Svc_Handler<ACE_MEM_STREAM, ACE_NULL_SYNCH>;
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_SHMIOP_Connection_Handler;
class TAO_Pluggable_Messaging;
class TAO_Target_Specification;
@@ -43,6 +37,10 @@ class Tao_Operation_Details;
typedef ACE_Svc_Handler<ACE_MEM_STREAM, ACE_NULL_SYNCH>
TAO_SHMIOP_SVC_HANDLER;
+#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
+template class TAO_Strategies_Export ACE_Svc_Handler<ACE_MEM_STREAM, ACE_NULL_SYNCH>;
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
+
/**
* @class TAO_SHMIOP_Transport
*
@@ -84,9 +82,11 @@ protected:
size_t len,
const ACE_Time_Value *s = 0);
- virtual int handle_input (TAO_Resume_Handle &rh,
- ACE_Time_Value *max_wait_time,
- int block = 0);
+ virtual int consolidate_message (ACE_Message_Block &incoming,
+ ssize_t missing_data,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time);
+
//@}
public:
@@ -116,8 +116,6 @@ private:
TAO_Pluggable_Messaging *messaging_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_SHMIOP && TAO_HAS_SHMIOP != 0 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/UIOP_Acceptor.cpp b/TAO/tao/Strategies/UIOP_Acceptor.cpp
index 87917221593..4ec98202ca3 100644
--- a/TAO/tao/Strategies/UIOP_Acceptor.cpp
+++ b/TAO/tao/Strategies/UIOP_Acceptor.cpp
@@ -1,8 +1,8 @@
-#include "tao/Strategies/UIOP_Acceptor.h"
+#include "UIOP_Acceptor.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Profile.h"
+#include "UIOP_Profile.h"
#include "tao/MProfile.h"
#include "tao/ORB_Core.h"
#include "tao/Server_Strategy_Factory.h"
@@ -19,8 +19,6 @@ ACE_RCSID (Strategies,
UIOP_Acceptor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIOP_Acceptor::TAO_UIOP_Acceptor (CORBA::Boolean flag)
: TAO_Acceptor (TAO_TAG_UIOP_PROFILE),
base_acceptor_ (),
@@ -479,6 +477,4 @@ TAO_UIOP_Acceptor::parse_options (const char *str)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP == 1 */
diff --git a/TAO/tao/Strategies/UIOP_Acceptor.h b/TAO/tao/Strategies/UIOP_Acceptor.h
index 20de4591230..7610ce7f277 100644
--- a/TAO/tao/Strategies/UIOP_Acceptor.h
+++ b/TAO/tao/Strategies/UIOP_Acceptor.h
@@ -25,7 +25,7 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
# if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Connection_Handler.h"
+#include "UIOP_Connection_Handler.h"
#include "tao/Transport_Acceptor.h"
#include "tao/Acceptor_Impl.h"
@@ -34,8 +34,6 @@
#include "ace/Acceptor.h"
#include "ace/LSOCK_Acceptor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_UIOP_Acceptor
*
@@ -137,8 +135,6 @@ private:
const bool lite_flag_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
# endif /* TAO_HAS_UIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/UIOP_Connection_Handler.cpp b/TAO/tao/Strategies/UIOP_Connection_Handler.cpp
index ada81ab9075..7db6103a5d2 100644
--- a/TAO/tao/Strategies/UIOP_Connection_Handler.cpp
+++ b/TAO/tao/Strategies/UIOP_Connection_Handler.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/Strategies/UIOP_Connection_Handler.h"
+#include "UIOP_Connection_Handler.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Transport.h"
-#include "tao/Strategies/UIOP_Endpoint.h"
+#include "UIOP_Transport.h"
+#include "UIOP_Endpoint.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
#include "tao/ORB.h"
@@ -23,7 +23,6 @@ ACE_RCSID (Strategies,
UIOP_Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_UIOP_Connection_Handler::TAO_UIOP_Connection_Handler (ACE_Thread_Manager *t)
: TAO_UIOP_SVC_HANDLER (t, 0 , 0),
@@ -138,7 +137,7 @@ TAO_UIOP_Connection_Handler::open (void*)
return -1;
this->state_changed (TAO_LF_Event::LFS_SUCCESS,
- this->orb_core ()->leader_follower ());
+ this->orb_core ()->leader_follower ());
return 0;
}
@@ -229,6 +228,4 @@ TAO_UIOP_Connection_Handler::add_transport_to_cache (void)
this->transport ());
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /*TAO_HAS_UIOP == 1*/
diff --git a/TAO/tao/Strategies/UIOP_Connection_Handler.h b/TAO/tao/Strategies/UIOP_Connection_Handler.h
index c2e0078cd00..ca14c8aeb4a 100644
--- a/TAO/tao/Strategies/UIOP_Connection_Handler.h
+++ b/TAO/tao/Strategies/UIOP_Connection_Handler.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -32,9 +32,7 @@
#include "ace/Reactor.h"
#include "tao/Connection_Handler.h"
#include "tao/Wait_Strategy.h"
-#include "tao/Strategies/UIOP_Transport.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "UIOP_Transport.h"
// Forward Decls
class TAO_Pluggable_Messaging;
@@ -88,6 +86,7 @@ public:
const void *act = 0);
//@}
+
/// Add ourselves to Cache.
int add_transport_to_cache (void);
@@ -101,8 +100,6 @@ protected:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/UIOP_Connector.cpp b/TAO/tao/Strategies/UIOP_Connector.cpp
index efce00f17d2..6ce63d9709a 100644
--- a/TAO/tao/Strategies/UIOP_Connector.cpp
+++ b/TAO/tao/Strategies/UIOP_Connector.cpp
@@ -1,8 +1,8 @@
-#include "tao/Strategies/UIOP_Connector.h"
+#include "UIOP_Connector.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Profile.h"
+#include "UIOP_Profile.h"
#include "tao/debug.h"
#include "tao/ORB_Core.h"
#include "tao/Environment.h"
@@ -21,8 +21,6 @@ ACE_RCSID(Strategies,
UIOP_Connector,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIOP_Connector::TAO_UIOP_Connector (CORBA::Boolean flag)
: TAO_Connector (TAO_TAG_UIOP_PROFILE),
connect_strategy_ (),
@@ -397,7 +395,7 @@ TAO_UIOP_Connector::cancel_svc_handler (
TAO_Connection_Handler * svc_handler)
{
TAO_UIOP_Connection_Handler* handler=
- dynamic_cast<TAO_UIOP_Connection_Handler*> (svc_handler);
+ dynamic_cast<TAO_UIOP_Connection_Handler*>(svc_handler);
if (handler)
// Cancel from the connector
@@ -406,6 +404,4 @@ TAO_UIOP_Connector::cancel_svc_handler (
return -1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP == 1 */
diff --git a/TAO/tao/Strategies/UIOP_Connector.h b/TAO/tao/Strategies/UIOP_Connector.h
index 1898316e91a..e53b09b3295 100644
--- a/TAO/tao/Strategies/UIOP_Connector.h
+++ b/TAO/tao/Strategies/UIOP_Connector.h
@@ -31,12 +31,10 @@
#include "ace/LSOCK_Connector.h"
#include "ace/Connector.h"
#include "tao/Transport_Connector.h"
-#include "tao/Strategies/UIOP_Connection_Handler.h"
+#include "UIOP_Connection_Handler.h"
#include "tao/Resource_Factory.h"
#include "tao/Connector_Impl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_UIOP_Endpoint;
class TAO_Endpoint;
@@ -75,7 +73,7 @@ public:
virtual TAO_Profile *corbaloc_scan (const char *str, size_t &len
ACE_ENV_ARG_DECL);
-
+
virtual char object_key_delimiter (void) const;
/// Cancel the passed cvs handler from the connector
@@ -133,8 +131,6 @@ private:
const bool lite_flag_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
# endif /* TAO_HAS_UIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/UIOP_Endpoint.cpp b/TAO/tao/Strategies/UIOP_Endpoint.cpp
index f0ff4199582..d843a8b2d14 100644
--- a/TAO/tao/Strategies/UIOP_Endpoint.cpp
+++ b/TAO/tao/Strategies/UIOP_Endpoint.cpp
@@ -1,5 +1,5 @@
-#include "tao/Strategies/UIOP_Endpoint.h"
-#include "tao/Strategies/UIOP_Connection_Handler.h"
+#include "UIOP_Endpoint.h"
+#include "UIOP_Connection_Handler.h"
#include "tao/ORB_Constants.h"
@@ -15,10 +15,9 @@ ACE_RCSID (Strategies,
#if !defined (__ACE_INLINE__)
-# include "tao/Strategies/UIOP_Endpoint.i"
+# include "UIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_UIOP_Endpoint::TAO_UIOP_Endpoint (const ACE_UNIX_Addr &addr,
CORBA::Short priority)
@@ -103,7 +102,4 @@ TAO_UIOP_Endpoint::hash (void)
return this->hash_val_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP == 1 */
diff --git a/TAO/tao/Strategies/UIOP_Endpoint.h b/TAO/tao/Strategies/UIOP_Endpoint.h
index dfff6c2a1f2..f788dc014d6 100644
--- a/TAO/tao/Strategies/UIOP_Endpoint.h
+++ b/TAO/tao/Strategies/UIOP_Endpoint.h
@@ -24,10 +24,9 @@
# if TAO_HAS_UIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/UNIX_Addr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_UIOP_Endpoint
@@ -92,10 +91,8 @@ private:
TAO_UIOP_Endpoint *next_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Strategies/UIOP_Endpoint.i"
+# include "UIOP_Endpoint.i"
#endif /* __ACE_INLINE__ */
# endif /* TAO_HAS_UIOP == 1 */
diff --git a/TAO/tao/Strategies/UIOP_Endpoint.i b/TAO/tao/Strategies/UIOP_Endpoint.i
index a7a01b59c3d..337bbae6a76 100644
--- a/TAO/tao/Strategies/UIOP_Endpoint.i
+++ b/TAO/tao/Strategies/UIOP_Endpoint.i
@@ -1,23 +1,19 @@
// -*- C++ -*-
-//
// $Id$
# if TAO_HAS_UIOP == 1
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_UNIX_Addr &
TAO_UIOP_Endpoint::object_addr (void) const
{
return this->object_addr_;
}
+
ACE_INLINE const char *
TAO_UIOP_Endpoint::rendezvous_point (void) const
{
return this->object_addr_.get_path_name ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP == 1 */
diff --git a/TAO/tao/Strategies/UIOP_Factory.cpp b/TAO/tao/Strategies/UIOP_Factory.cpp
index b74a464f82c..080f76eccc8 100644
--- a/TAO/tao/Strategies/UIOP_Factory.cpp
+++ b/TAO/tao/Strategies/UIOP_Factory.cpp
@@ -1,12 +1,12 @@
// -*- C++ -*-
// $Id$
-#include "tao/Strategies/UIOP_Factory.h"
+#include "UIOP_Factory.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Acceptor.h"
-#include "tao/Strategies/UIOP_Connector.h"
+#include "UIOP_Acceptor.h"
+#include "UIOP_Connector.h"
#include "tao/ORB_Constants.h"
@@ -20,8 +20,6 @@ ACE_RCSID (Strategies,
static const char prefix_[] = "uiop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIOP_Protocol_Factory::TAO_UIOP_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_UIOP_PROFILE),
major_ (TAO_DEF_GIOP_MAJOR),
@@ -89,8 +87,6 @@ TAO_UIOP_Protocol_Factory::requires_explicit_endpoint (void) const
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_UIOP_Protocol_Factory,
ACE_TEXT ("UIOP_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Strategies/UIOP_Factory.h b/TAO/tao/Strategies/UIOP_Factory.h
index d3ec7616987..6214e67f0a1 100644
--- a/TAO/tao/Strategies/UIOP_Factory.h
+++ b/TAO/tao/Strategies/UIOP_Factory.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
// $Id$
// ============================================================================
//
@@ -29,11 +28,9 @@
# if TAO_HAS_UIOP == 1
#include "tao/Protocol_Factory.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
@@ -78,8 +75,6 @@ private:
// compatibility with old clients.
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_UIOP_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_UIOP_Protocol_Factory)
diff --git a/TAO/tao/Strategies/UIOP_Lite_Factory.cpp b/TAO/tao/Strategies/UIOP_Lite_Factory.cpp
index 8aa707a3472..b86f8fe3856 100644
--- a/TAO/tao/Strategies/UIOP_Lite_Factory.cpp
+++ b/TAO/tao/Strategies/UIOP_Lite_Factory.cpp
@@ -1,9 +1,9 @@
-#include "tao/Strategies/UIOP_Lite_Factory.h"
+#include "UIOP_Lite_Factory.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Acceptor.h"
-#include "tao/Strategies/UIOP_Connector.h"
+#include "UIOP_Acceptor.h"
+#include "UIOP_Connector.h"
#include "tao/ORB_Constants.h"
@@ -18,8 +18,6 @@ ACE_RCSID (Strategies,
static const char prefix_[] = "uiop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIOP_Lite_Protocol_Factory::TAO_UIOP_Lite_Protocol_Factory (void)
: TAO_Protocol_Factory (TAO_TAG_UIOP_PROFILE),
major_ (TAO_DEF_GIOP_MAJOR),
@@ -91,8 +89,6 @@ TAO_UIOP_Lite_Protocol_Factory::requires_explicit_endpoint (void) const
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_UIOP_Lite_Protocol_Factory,
ACE_TEXT ("UIOP_Lite_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/Strategies/UIOP_Lite_Factory.h b/TAO/tao/Strategies/UIOP_Lite_Factory.h
index 9199095b1cc..332506d4dbd 100644
--- a/TAO/tao/Strategies/UIOP_Lite_Factory.h
+++ b/TAO/tao/Strategies/UIOP_Lite_Factory.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
// $Id$
// ============================================================================
//
@@ -29,14 +28,13 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Service_Config.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/Protocol_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Acceptor;
class TAO_Connector;
+
class TAO_Strategies_Export TAO_UIOP_Lite_Protocol_Factory :
public TAO_Protocol_Factory
{
@@ -80,8 +78,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_UIOP_Lite_Protocol_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_UIOP_Lite_Protocol_Factory)
diff --git a/TAO/tao/Strategies/UIOP_Profile.cpp b/TAO/tao/Strategies/UIOP_Profile.cpp
index 853bfc83d9e..76ba5ede816 100644
--- a/TAO/tao/Strategies/UIOP_Profile.cpp
+++ b/TAO/tao/Strategies/UIOP_Profile.cpp
@@ -1,8 +1,8 @@
-#include "tao/Strategies/UIOP_Profile.h"
+#include "UIOP_Profile.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/uiop_endpointsC.h"
+#include "uiop_endpointsC.h"
#include "tao/CDR.h"
#include "tao/Environment.h"
@@ -20,8 +20,6 @@ ACE_RCSID (Strategies,
static const char prefix_[] = "uiop";
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
const char TAO_UIOP_Profile::object_key_delimiter_ = '|';
char
@@ -449,6 +447,4 @@ TAO_UIOP_Profile::decode_endpoints (void)
return 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP == 1 */
diff --git a/TAO/tao/Strategies/UIOP_Profile.h b/TAO/tao/Strategies/UIOP_Profile.h
index fe515c4d388..069c5105965 100644
--- a/TAO/tao/Strategies/UIOP_Profile.h
+++ b/TAO/tao/Strategies/UIOP_Profile.h
@@ -27,14 +27,13 @@
# if TAO_HAS_UIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/Profile.h"
-#include "tao/Strategies/UIOP_Connection_Handler.h"
-#include "tao/Strategies/UIOP_Endpoint.h"
+#include "UIOP_Connection_Handler.h"
+#include "UIOP_Endpoint.h"
#include "ace/UNIX_Addr.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_UIOP_Profile
@@ -121,8 +120,6 @@ private:
CORBA::ULong count_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
# endif /* TAO_HAS_UIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/UIOP_Transport.cpp b/TAO/tao/Strategies/UIOP_Transport.cpp
index 4adc371f55a..df5a0032644 100644
--- a/TAO/tao/Strategies/UIOP_Transport.cpp
+++ b/TAO/tao/Strategies/UIOP_Transport.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/Strategies/UIOP_Transport.h"
+#include "UIOP_Transport.h"
#if TAO_HAS_UIOP == 1
-#include "tao/Strategies/UIOP_Connection_Handler.h"
-#include "tao/Strategies/UIOP_Profile.h"
+#include "UIOP_Connection_Handler.h"
+#include "UIOP_Profile.h"
#include "tao/Timeprobe.h"
#include "tao/CDR.h"
#include "tao/Transport_Mux_Strategy.h"
@@ -20,9 +20,6 @@ ACE_RCSID (Strategies,
UIOP_Transport,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_UIOP_Transport::TAO_UIOP_Transport (TAO_UIOP_Connection_Handler *handler,
TAO_ORB_Core *orb_core,
CORBA::Boolean flag)
@@ -186,6 +183,7 @@ TAO_UIOP_Transport::send_message (TAO_OutputCDR &stream,
return 1;
}
+
int
TAO_UIOP_Transport::messaging_init (CORBA::Octet major,
CORBA::Octet minor)
@@ -195,6 +193,4 @@ TAO_UIOP_Transport::messaging_init (CORBA::Octet major,
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_HAS_UIOP */
diff --git a/TAO/tao/Strategies/UIOP_Transport.h b/TAO/tao/Strategies/UIOP_Transport.h
index 1a7599f45fb..aefcb26ecbc 100644
--- a/TAO/tao/Strategies/UIOP_Transport.h
+++ b/TAO/tao/Strategies/UIOP_Transport.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
// ===================================================================
/**
@@ -25,13 +25,11 @@
# if TAO_HAS_UIOP == 1
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "ace/LSOCK_Acceptor.h"
#include "ace/Svc_Handler.h"
#include "tao/Transport.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class TAO_ORB_Core;
@@ -112,8 +110,6 @@ private:
TAO_Pluggable_Messaging *messaging_object_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
# endif /* TAO_HAS_UIOP == 1 */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Strategies/advanced_resource.cpp b/TAO/tao/Strategies/advanced_resource.cpp
index dc6c0a5886f..62c42275c06 100644
--- a/TAO/tao/Strategies/advanced_resource.cpp
+++ b/TAO/tao/Strategies/advanced_resource.cpp
@@ -1,17 +1,17 @@
// $Id$
#include "ace/Service_Config.h"
-#include "tao/Strategies/advanced_resource.h"
+#include "advanced_resource.h"
-#include "tao/Strategies/UIOP_Factory.h"
-#include "tao/Strategies/SHMIOP_Factory.h"
-#include "tao/Strategies/DIOP_Factory.h"
-#include "tao/Strategies/SCIOP_Factory.h"
+#include "UIOP_Factory.h"
+#include "SHMIOP_Factory.h"
+#include "DIOP_Factory.h"
+#include "SCIOP_Factory.h"
-#include "tao/Strategies/LFU_Connection_Purging_Strategy.h"
-#include "tao/Strategies/FIFO_Connection_Purging_Strategy.h"
-#include "tao/Strategies/NULL_Connection_Purging_Strategy.h"
+#include "LFU_Connection_Purging_Strategy.h"
+#include "FIFO_Connection_Purging_Strategy.h"
+#include "NULL_Connection_Purging_Strategy.h"
-#include "tao/Strategies/LF_Strategy_Null.h"
+#include "LF_Strategy_Null.h"
#include "tao/debug.h"
#include "tao/LRU_Connection_Purging_Strategy.h"
@@ -37,8 +37,6 @@
ACE_RCSID(Strategies, advanced_resource, "$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Resource_Factory_Changer::TAO_Resource_Factory_Changer (void)
{
@@ -130,7 +128,7 @@ TAO_Advanced_Resource_Factory::init (int argc, ACE_TCHAR** argv)
-1);
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBReactorLock"))))
{
ACE_DEBUG ((LM_DEBUG,
@@ -144,7 +142,7 @@ TAO_Advanced_Resource_Factory::init (int argc, ACE_TCHAR** argv)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBReactorType"))))
{
if (ACE_OS::strcasecmp (current_arg,
@@ -186,7 +184,7 @@ TAO_Advanced_Resource_Factory::init (int argc, ACE_TCHAR** argv)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBInputCDRAllocator"))))
{
if (ACE_OS::strcasecmp (current_arg,
@@ -208,7 +206,7 @@ TAO_Advanced_Resource_Factory::init (int argc, ACE_TCHAR** argv)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBAMHResponseHandlerAllocator"))))
{
if (ACE_OS::strcasecmp (current_arg,
@@ -228,7 +226,7 @@ TAO_Advanced_Resource_Factory::init (int argc, ACE_TCHAR** argv)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBAMIResponseHandlerAllocator"))))
{
if (ACE_OS::strcasecmp (current_arg,
@@ -248,7 +246,7 @@ TAO_Advanced_Resource_Factory::init (int argc, ACE_TCHAR** argv)
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT("-ORBReactorThreadQueue"))))
{
if (ACE_OS::strcasecmp (current_arg,
@@ -384,7 +382,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
ACE_ERROR ((LM_ERROR,
ACE_TEXT("TAO (%P|%t) Unable to add ")
ACE_TEXT("<%s> to protocol factory set.\n"),
- ACE_TEXT_CHAR_TO_TCHAR(item->protocol_name ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(item->protocol_name ().c_str ())));
delete item;
@@ -447,7 +445,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
ACE_ERROR ((LM_ERROR,
ACE_TEXT("TAO (%P|%t) Unable to add ")
ACE_TEXT("<%s> to protocol factory set.\n"),
- ACE_TEXT_CHAR_TO_TCHAR(item->protocol_name ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(item->protocol_name ().c_str ())));
delete item;
@@ -510,7 +508,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
ACE_ERROR ((LM_ERROR,
ACE_TEXT("TAO (%P|%t) Unable to add ")
ACE_TEXT("<%s> to protocol factory set.\n"),
- ACE_TEXT_CHAR_TO_TCHAR(item->protocol_name ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(item->protocol_name ().c_str ())));
delete item;
@@ -573,7 +571,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
ACE_ERROR ((LM_ERROR,
ACE_TEXT("TAO (%P|%t) Unable to add ")
ACE_TEXT("<%s> to protocol factory set.\n"),
- ACE_TEXT_CHAR_TO_TCHAR(item->protocol_name ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(item->protocol_name ().c_str ())));
delete item;
@@ -606,7 +604,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT("TAO (%P|%t) Unable to load ")
ACE_TEXT("protocol <%s>, %m\n"),
- ACE_TEXT_CHAR_TO_TCHAR(name.c_str ())),
+ ACE_TEXT_TO_TCHAR_IN(name.c_str ())),
-1);
}
@@ -614,7 +612,7 @@ TAO_Advanced_Resource_Factory::init_protocol_factories (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT("TAO (%P|%t) Loaded protocol <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(name.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(name.c_str ())));
}
}
return 0;
@@ -691,6 +689,9 @@ TAO_Advanced_Resource_Factory::allocate_reactor_impl (void) const
typedef ACE_Malloc<ACE_LOCAL_MEMORY_POOL,ACE_Null_Mutex> NULL_LOCK_MALLOC;
typedef ACE_Allocator_Adapter<NULL_LOCK_MALLOC> NULL_LOCK_ALLOCATOR;
+typedef ACE_Malloc<ACE_LOCAL_MEMORY_POOL,TAO_SYNCH_MUTEX> LOCKED_MALLOC;
+typedef ACE_Allocator_Adapter<LOCKED_MALLOC> LOCKED_ALLOCATOR;
+
ACE_Allocator *
TAO_Advanced_Resource_Factory::input_cdr_dblock_allocator (void)
{
@@ -721,9 +722,12 @@ TAO_Advanced_Resource_Factory::input_cdr_buffer_allocator (void)
NULL_LOCK_ALLOCATOR,
0);
break;
+ case TAO_ALLOCATOR_THREAD_LOCK:
default:
- return
- this->TAO_Default_Resource_Factory::input_cdr_buffer_allocator();
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
+ break;
}
return allocator;
}
@@ -874,8 +878,6 @@ TAO_Advanced_Resource_Factory::report_unsupported_error (
option_name));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_Advanced_Resource_Factory,
diff --git a/TAO/tao/Strategies/advanced_resource.h b/TAO/tao/Strategies/advanced_resource.h
index 98dde1143d3..17c1279003c 100644
--- a/TAO/tao/Strategies/advanced_resource.h
+++ b/TAO/tao/Strategies/advanced_resource.h
@@ -4,7 +4,7 @@
#define TAO_ADVANCED_RESOURCE_H
#include /**/ "ace/pre.h"
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/default_resource.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -13,8 +13,6 @@
#include "tao/ORB_Core.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Connection_Purging_Strategy;
class TAO_Strategies_Export TAO_Resource_Factory_Changer
@@ -134,12 +132,10 @@ protected:
};
-static TAO_Resource_Factory_Changer TAO_changer;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO_Strategies, TAO_Advanced_Resource_Factory)
ACE_FACTORY_DECLARE (TAO_Strategies, TAO_Advanced_Resource_Factory)
+static TAO_Resource_Factory_Changer TAO_changer;
+
#include /**/ "ace/post.h"
#endif /* TAO_ADVANCED_RESOURCE_H */
diff --git a/TAO/tao/Strategies/sciop_endpointsC.cpp b/TAO/tao/Strategies/sciop_endpointsC.cpp
index 7b5dbd4fd68..21e65ac0c8a 100644
--- a/TAO/tao/Strategies/sciop_endpointsC.cpp
+++ b/TAO/tao/Strategies/sciop_endpointsC.cpp
@@ -36,7 +36,7 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/Strategies/sciop_endpointsC.h"
+#include "sciop_endpointsC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -46,8 +46,6 @@
// TAO_IDL - Generated from
// be/be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -266,5 +264,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_TAO_SCIOPEndpointSequence_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/sciop_endpointsC.h b/TAO/tao/Strategies/sciop_endpointsC.h
index 4944c7276c0..4e89a5b4e47 100644
--- a/TAO/tao/Strategies/sciop_endpointsC.h
+++ b/TAO/tao/Strategies/sciop_endpointsC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Sequence_T.h"
@@ -62,8 +62,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_type.cpp:258
@@ -185,8 +183,6 @@ TAO_Strategies_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/Strategies/uiop_endpointsC.cpp b/TAO/tao/Strategies/uiop_endpointsC.cpp
index a9b2ed7f462..c3728f7bf79 100644
--- a/TAO/tao/Strategies/uiop_endpointsC.cpp
+++ b/TAO/tao/Strategies/uiop_endpointsC.cpp
@@ -36,7 +36,7 @@
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
#include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
-#include "tao/Strategies/uiop_endpointsC.h"
+#include "uiop_endpointsC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -46,8 +46,6 @@
// TAO_IDL - Generated from
// be/be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -263,5 +261,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_TAO_UIOPEndpointSequence_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Strategies/uiop_endpointsC.h b/TAO/tao/Strategies/uiop_endpointsC.h
index 1907a64939b..f85b1a69906 100644
--- a/TAO/tao/Strategies/uiop_endpointsC.h
+++ b/TAO/tao/Strategies/uiop_endpointsC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Strategies/strategies_export.h"
+#include "strategies_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Sequence_T.h"
@@ -62,8 +62,6 @@
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_type.cpp:258
@@ -184,8 +182,6 @@ TAO_Strategies_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/StringSeqC.cpp b/TAO/tao/StringSeqC.cpp
index 426787893e4..5e3db1770bc 100644
--- a/TAO/tao/StringSeqC.cpp
+++ b/TAO/tao/StringSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/StringSeqC.h"
+#include "StringSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -162,5 +160,3 @@ return false;
}
#endif /* _TAO_CDR_OP_CORBA_StringSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/StringSeqC.h b/TAO/tao/StringSeqC.h
index 85a6e6bb5ac..9cfebe0ca70 100644
--- a/TAO/tao/StringSeqC.h
+++ b/TAO/tao/StringSeqC.h
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -139,8 +137,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Stub.cpp b/TAO/tao/Stub.cpp
index 67807d51226..5aa6f7ab6db 100644
--- a/TAO/tao/Stub.cpp
+++ b/TAO/tao/Stub.cpp
@@ -8,18 +8,17 @@
// based implementation, and can neither be used by other kinds of
// objref nor have a default implementation.
-#include "tao/Stub.h"
-#include "tao/Profile.h"
-#include "tao/ORB_Core.h"
-#include "tao/Client_Strategy_Factory.h"
-#include "tao/Remote_Object_Proxy_Broker.h"
-#include "tao/Transport_Queueing_Strategies.h"
-#include "tao/debug.h"
-#include "tao/Policy_Manager.h"
-#include "tao/SystemException.h"
+#include "Stub.h"
+#include "Profile.h"
+#include "ORB_Core.h"
+#include "Client_Strategy_Factory.h"
+#include "Transport_Queueing_Strategies.h"
+#include "debug.h"
+#include "Policy_Manager.h"
+#include "SystemException.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Stub.i"
+# include "Stub.i"
#endif /* ! __ACE_INLINE__ */
#include "ace/Auto_Ptr.h"
@@ -29,7 +28,6 @@ ACE_RCSID (tao,
TAO_Stub,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Stub::TAO_Stub (const char *repository_id,
const TAO_MProfile &profiles,
@@ -37,13 +35,9 @@ TAO_Stub::TAO_Stub (const char *repository_id,
: type_id (repository_id)
, orb_core_ (orb_core)
, orb_ ()
- , is_collocated_ (false)
, servant_orb_ ()
- , collocated_servant_ (0)
- , object_proxy_broker_ (the_tao_remote_object_proxy_broker ())
, base_profiles_ ((CORBA::ULong) 0)
, forward_profiles_ (0)
- , forward_profiles_perm_ (0)
, profile_in_use_ (0)
, profile_lock_ptr_ (0)
, profile_success_ (false)
@@ -111,8 +105,7 @@ TAO_Stub::~TAO_Stub (void)
}
void
-TAO_Stub::add_forward_profiles (const TAO_MProfile &mprofiles,
- const CORBA::Boolean permanent_forward)
+TAO_Stub::add_forward_profiles (const TAO_MProfile &mprofiles)
{
// we assume that the profile_in_use_ is being
// forwarded! Grab the lock so things don't change.
@@ -120,14 +113,6 @@ TAO_Stub::add_forward_profiles (const TAO_MProfile &mprofiles,
guard,
*this->profile_lock_ptr_));
- if (permanent_forward)
- {
- // paranoid, reset the bookmark, then clear the forward-stack
- this->forward_profiles_perm_ = 0;
-
- this->reset_forward ();
- }
-
TAO_MProfile *now_pfiles = this->forward_profiles_;
if (now_pfiles == 0)
now_pfiles = &this->base_profiles_;
@@ -135,10 +120,6 @@ TAO_Stub::add_forward_profiles (const TAO_MProfile &mprofiles,
ACE_NEW (this->forward_profiles_,
TAO_MProfile (mprofiles));
- if (permanent_forward)
- // bookmark the new element at bottom of stack
- this->forward_profiles_perm_ = this->forward_profiles_;
-
// forwarded profile points to the new IOR (profiles)
this->profile_in_use_->forward_to (this->forward_profiles_);
@@ -285,25 +266,7 @@ TAO_Stub::get_profile_ior_info (TAO_MProfile &profiles,
return 0;
}
-void
-TAO_Stub::is_collocated (CORBA::Boolean collocated)
-{
- if (this->is_collocated_ != collocated)
- {
- if (collocated &&
- _TAO_Object_Proxy_Broker_Factory_function_pointer != 0)
- {
- this->object_proxy_broker_ =
- _TAO_Object_Proxy_Broker_Factory_function_pointer ();
- }
- else
- {
- this->object_proxy_broker_ =
- the_tao_remote_object_proxy_broker ();
- }
- this->is_collocated_ = collocated;
- }
-}
+
// Quick'n'dirty hash of objref data, for partitioning objrefs into
// sets.
@@ -329,14 +292,14 @@ TAO_Stub::hash (CORBA::ULong max
CORBA::Boolean
TAO_Stub::is_equivalent (CORBA::Object_ptr other_obj)
{
- if (CORBA::is_nil (other_obj))
- return false;
+ if (CORBA::is_nil (other_obj) == 1)
+ return 0;
TAO_Profile *other_profile = other_obj->_stubobj ()->profile_in_use_;
TAO_Profile *this_profile = this->profile_in_use_;
if (other_profile == 0 || this_profile == 0)
- return false;
+ return 0;
// Compare the profiles
return this_profile->is_equivalent (other_profile);
@@ -400,6 +363,7 @@ TAO_Stub::forward_back_one (void)
from->get_current_profile ()->forward_to (0);
this->forward_profiles_ = from;
}
+
}
@@ -617,65 +581,3 @@ TAO_Stub::transport_queueing_strategy (void)
return this->orb_core_->default_transport_queueing_strategy ();
}
-CORBA::Boolean
-TAO_Stub::marshal (TAO_OutputCDR &cdr)
-{
- // do as many outside of locked else-branch as posssible
-
- // STRING, a type ID hint
- if ((cdr << this->type_id.in()) == 0)
- return 0;
-
- if ( ! this->forward_profiles_perm_)
- {
- const TAO_MProfile& mprofile = this->base_profiles_;
-
- CORBA::ULong profile_count = mprofile.profile_count ();
- if ((cdr << profile_count) == 0)
- return 0;
-
- // @@ The MProfile should be locked during this iteration, is there
- // anyway to achieve that?
- for (CORBA::ULong i = 0; i < profile_count; ++i)
- {
- const TAO_Profile* p = mprofile.get_profile (i);
- if (p->encode (cdr) == 0)
- return 0;
- }
- }
- else
- {
- ACE_MT (ACE_GUARD_RETURN (ACE_Lock,
- guard,
- *this->profile_lock_ptr_,
- 0));
-
- ACE_ASSERT(this->forward_profiles_ !=0);
-
- // paranoid - in case of FT the basic_profiles_ would do, too,
- // but might be dated
- const TAO_MProfile& mprofile =
- this->forward_profiles_perm_
- ? *(this->forward_profiles_perm_)
- : this->base_profiles_;
-
- CORBA::ULong profile_count = mprofile.profile_count ();
- if ((cdr << profile_count) == 0)
- return 0;
-
- // @@ The MProfile should be locked during this iteration, is there
- // anyway to achieve that?
- for (CORBA::ULong i = 0; i < profile_count; ++i)
- {
- const TAO_Profile* p = mprofile.get_profile (i);
- if (p->encode (cdr) == 0)
- return 0;
- }
-
- // release ACE_Lock
- }
-
- return (CORBA::Boolean) cdr.good_bit ();
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Stub.h b/TAO/tao/Stub.h
index 63b302b5ebc..ee0a989a50a 100644
--- a/TAO/tao/Stub.h
+++ b/TAO/tao/Stub.h
@@ -33,17 +33,13 @@
# undef IOR
#endif /* HPUX && IOR */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
-class TAO_Abstract_ServantBase;
class TAO_Policy_Set;
class TAO_Profile;
namespace TAO
{
class ObjectKey;
- class Object_Proxy_Broker;
class Transport_Queueing_Strategy;
}
@@ -151,8 +147,6 @@ public:
/// Obtain a pointer to the forwarded profile set
const TAO_MProfile *forward_profiles (void) const;
- /// True if permanent location forward occured, in this case the lock must be set and the
-
// Manage forward and base profiles.
/**
* THREAD SAFE. If forward_profiles is null then this will
@@ -190,15 +184,9 @@ public:
/**
* THREAD SAFE.
* Set the forward_profiles. This object will assume ownership of
- * this TAO_MProfile object!! if permanent_forward is true,
- * currently used profiles will be replaced permanently, otherwise
- * stub may fallback to current profiles later. The flag
- * permanent_forward=true is only valid if currently used profile
- * set represents a GroupObject (IOGR), otherwise this flag will be
- * ignored.
+ * this TAO_MProfile object!!
*/
- void add_forward_profiles (const TAO_MProfile &mprofiles,
- const CORBA::Boolean permanent_forward=false);
+ void add_forward_profiles (const TAO_MProfile &mprofiles);
/**
* THREAD SAFE
@@ -210,12 +198,6 @@ public:
/// Accessor.
TAO_ORB_Core* orb_core (void) const;
- /// Is this stub collocated with the servant?
- CORBA::Boolean is_collocated (void) const;
-
- /// Mutator to mark this stub as being collocated with the servant.
- void is_collocated (CORBA::Boolean);
-
/// This returns a duplicated ORB pointer.
CORBA::ORB_ptr servant_orb_ptr (void);
@@ -230,22 +212,6 @@ public:
*/
void servant_orb (CORBA::ORB_ptr orb);
- /// Mutator for setting the servant in collocated cases.
- void collocated_servant (TAO_Abstract_ServantBase* servant);
-
- /// Accessor for the servant reference in collocated cases.
- TAO_Abstract_ServantBase* collocated_servant (void) const;
-
- /// Mutator for setting the object proxy broker pointer.
- /// CORBA::Objects using this stub will use this for standard calls
- /// like is_a; get_interface; etc...
- void object_proxy_broker (TAO::Object_Proxy_Broker *proxy_broker);
-
- /// Accessor for getting the object proxy broker pointer.
- /// CORBA::Objects using this stub use this for standard calls
- /// like is_a; get_interface; etc...
- TAO::Object_Proxy_Broker *object_proxy_broker (void) const;
-
/**
* Create the IOP::IOR info. We will create the info at most once.
* Get the index of the profile we are using to make the invocation.
@@ -267,10 +233,6 @@ public:
* collocation opportunities that are available to the ORB.
*/
CORBA::Boolean optimize_collocation_objects (void) const;
-
- // needed to avoid copying forward_profiles for thread safety
- CORBA::Boolean marshal (TAO_OutputCDR&);
-
protected:
/// Destructor is to be called only through _decr_refcnt() to
@@ -311,8 +273,8 @@ private:
private:
// = Disallow copy construction and assignment.
- TAO_Stub (const TAO_Stub &);
- TAO_Stub &operator = (const TAO_Stub &);
+ ACE_UNIMPLEMENTED_FUNC (TAO_Stub (const TAO_Stub &))
+ ACE_UNIMPLEMENTED_FUNC (TAO_Stub &operator = (const TAO_Stub &))
protected:
/// Automatically manage the ORB_Core reference count
@@ -338,10 +300,6 @@ protected:
*/
CORBA::ORB_var orb_;
- /// Flag that indicates that this stub is collocated (and that it
- /// belongs to an ORB for which collocation optimisation is active).
- CORBA::Boolean is_collocated_;
-
/**
* If this stub refers to a collocated object then we need to hold on to
* the servant's ORB (which may be different from the client ORB) so that,
@@ -351,18 +309,6 @@ protected:
*/
CORBA::ORB_var servant_orb_;
- /// Servant pointer. It is 0 except for collocated objects.
- TAO_Abstract_ServantBase *collocated_servant_;
-
- /// Pointer to the Proxy Broker
- /**
- * This cached pointer instance takes care of routing the call for
- * standard calls in CORBA::Object like _is_a (), _get_component
- * () etc.
- */
- TAO::Object_Proxy_Broker *object_proxy_broker_;
-
-
/// Ordered list of profiles for this object.
TAO_MProfile base_profiles_;
@@ -370,10 +316,6 @@ protected:
/// linked list of TAO_MProfile objects.
TAO_MProfile *forward_profiles_;
- // The bookmark indicating permanent forward occured,
- // the pointer is used to indentify bottom of stack forward_profiles_
- TAO_MProfile *forward_profiles_perm_;
-
/// This is the profile that we are currently sending/receiving with.
TAO_Profile *profile_in_use_;
@@ -441,8 +383,6 @@ protected:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Stub.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Stub.i b/TAO/tao/Stub.i
index 51bc7a28e27..4f11130af6b 100644
--- a/TAO/tao/Stub.i
+++ b/TAO/tao/Stub.i
@@ -2,10 +2,6 @@
//
// $Id$
-#include "tao/ORB_Core.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
TAO_Stub::reset_base (void)
{
@@ -69,8 +65,7 @@ TAO_Stub::next_forward_profile (void)
TAO_Profile *pfile_next = 0;
while (this->forward_profiles_
- && (pfile_next = this->forward_profiles_->get_next ()) == 0
- && this->forward_profiles_ != this->forward_profiles_perm_) // do not remove permanent forward from bottom of stack
+ && (pfile_next = this->forward_profiles_->get_next ()) == 0)
// that was the last profile. Now we clean up our forward profiles.
// since we own the forward MProfiles, we must delete them when done.
this->forward_back_one ();
@@ -81,62 +76,23 @@ TAO_Stub::next_forward_profile (void)
ACE_INLINE TAO_Profile *
TAO_Stub::next_profile_i (void)
{
- TAO_Profile *pfile_next = 0;
-
- // First handle the case that a permanent forward occured
- if (this->forward_profiles_perm_) // the permanent forward defined
- // at bottom of stack
- // forward_profiles_
- {
- // In case of permanent forward the base_profiles are ingored.
-
- pfile_next = this->next_forward_profile ();
- if (pfile_next == 0)
- {
- // COND: this->forward_profiles_ == this->forward_profiles_perm_
-
- // reached end of list of permanent forward profiles
- // now, reset forward_profiles_perm_
-
- this->forward_profiles_->rewind ();
- this->profile_success_ = false;
- this->set_profile_in_use_i (this->forward_profiles_->get_next());
- }
- else
- this->set_profile_in_use_i (pfile_next);
-
- // We may have been forwarded to / from a collocated situation
- // Check for this and apply / remove optimisation if required.
- this->orb_core_->reinitialize_object (this);
-
- return pfile_next;
- }
- else
+ TAO_Profile *pfile_next = 0;
+ if (this->forward_profiles_)
{
- if (this->forward_profiles_) // Now do the common operation
- {
- pfile_next = this->next_forward_profile ();
- if (pfile_next == 0)
- {
- // Fall back to base profiles
- pfile_next = this->base_profiles_.get_next ();
- }
-
- // We may have been forwarded to / from a collocated situation
- // Check for this and apply / remove optimisation if required.
- this->orb_core_->reinitialize_object (this);
- }
- else
+ pfile_next = this->next_forward_profile ();
+ if (pfile_next == 0)
pfile_next = this->base_profiles_.get_next ();
+ }
+ else
+ pfile_next = this->base_profiles_.get_next ();
- if (pfile_next == 0)
- this->reset_base ();
- else
- this->set_profile_in_use_i (pfile_next);
+ if (pfile_next == 0)
+ this->reset_base ();
+ else
+ this->set_profile_in_use_i (pfile_next);
- return pfile_next;
- }
+ return pfile_next;
}
ACE_INLINE TAO_Profile *
@@ -177,10 +133,6 @@ TAO_Stub::base_profiles (const TAO_MProfile &mprofiles)
0));
// first reset things so we start from scratch!
-
- // @note This reset forward could effect the collocation status
- // but as this method is only used from the Stub ctr, when the status
- // is already correctly set, we don't reinitialise here. sm.
this->reset_forward ();
this->base_profiles_.set (mprofiles);
this->reset_base ();
@@ -198,20 +150,15 @@ TAO_Stub::next_profile_retry (void)
if (this->profile_success_ && this->forward_profiles_)
{
- // We have a forwarded reference that we have managed to *send* a message to
- // previously in the remote path only (but not counting object proxy broker ops).
- // @todo I can see little sense to this. It is at best highly inconsistent. sm.
-
- // In this case we are falling back from the forwarded IOR stright to the base IOR
this->reset_profiles_i ();
- return true;
+ return 1;
}
else if (this->next_profile_i ())
{
- return true;
+ return 1;
}
- return false;
+ return 0;
#if 0
else
{
@@ -224,10 +171,10 @@ TAO_Stub::next_profile_retry (void)
// If the service is loaded and has a profile then try it.
if (prof)
{
- return true;
+ return 1;
}
this->reset_profiles_i ();
- return false;
+ return 0;
}
#endif /*If 0 */
}
@@ -250,12 +197,6 @@ TAO_Stub::forward_profiles (void) const
return this->forward_profiles_;
}
-ACE_INLINE CORBA::Boolean
-TAO_Stub::is_collocated (void) const
-{
- return this->is_collocated_;
-}
-
ACE_INLINE TAO_ORB_Core*
TAO_Stub::orb_core (void) const
{
@@ -282,30 +223,6 @@ TAO_Stub::servant_orb (CORBA::ORB_ptr orb)
this->servant_orb_ = CORBA::ORB::_duplicate (orb);
}
-ACE_INLINE TAO_Abstract_ServantBase *
-TAO_Stub::collocated_servant (void) const
-{
- return collocated_servant_;
-}
-
-ACE_INLINE void
-TAO_Stub::collocated_servant (TAO_Abstract_ServantBase * servant)
-{
- this->collocated_servant_ = servant;
-}
-
-ACE_INLINE TAO::Object_Proxy_Broker *
-TAO_Stub::object_proxy_broker (void) const
-{
- return this->object_proxy_broker_;
-}
-
-ACE_INLINE void
-TAO_Stub::object_proxy_broker (TAO::Object_Proxy_Broker * object_proxy_broker)
-{
- this->object_proxy_broker_ = object_proxy_broker;
-}
-
ACE_INLINE void
TAO_Stub::destroy (void)
{
@@ -396,5 +313,3 @@ TAO_Stub_Auto_Ptr::operator *() const
// @@ Potential problem if this->p_ is zero!
return *this->get ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Stub_Factory.cpp b/TAO/tao/Stub_Factory.cpp
index 4c76edc15c9..8540e33e402 100644
--- a/TAO/tao/Stub_Factory.cpp
+++ b/TAO/tao/Stub_Factory.cpp
@@ -1,15 +1,13 @@
// $Id$
-
-#include "tao/Stub_Factory.h"
+#include "Stub_Factory.h"
+#include "ace/Dynamic_Service.h"
ACE_RCSID (tao,
TAO_Stub_Factory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Stub_Factory::~TAO_Stub_Factory (void)
{
+ // No-Op.
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Stub_Factory.h b/TAO/tao/Stub_Factory.h
index ef42462eac1..4effc5450ac 100644
--- a/TAO/tao/Stub_Factory.h
+++ b/TAO/tao/Stub_Factory.h
@@ -19,19 +19,15 @@
#define TAO_STUB_FACTORY_H_
#include /**/ "ace/pre.h"
-
-#include "tao/TAO_Export.h"
+#include "ace/CORBA_macros.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Service_Object.h"
-#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/TAO_Export.h"
// Forward references
class TAO_MProfile;
@@ -56,7 +52,7 @@ namespace CORBA
class TAO_Export TAO_Stub_Factory : public ACE_Service_Object
{
public:
- /// Destructor.
+ // -- Ctor/Dtor --
virtual ~TAO_Stub_Factory (void);
/// Creates a Stub Object.
@@ -66,7 +62,5 @@ public:
ACE_ENV_ARG_DECL) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_STUB_FACTORY_H_ */
diff --git a/TAO/tao/Synch_Invocation.cpp b/TAO/tao/Synch_Invocation.cpp
index a3f4e5d61b2..f3fe9829901 100644
--- a/TAO/tao/Synch_Invocation.cpp
+++ b/TAO/tao/Synch_Invocation.cpp
@@ -1,22 +1,22 @@
// $Id$
-#include "tao/Synch_Invocation.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/Profile.h"
-#include "tao/Synch_Reply_Dispatcher.h"
-#include "tao/Transport.h"
-#include "tao/Stub.h"
-#include "tao/Bind_Dispatcher_Guard.h"
-#include "tao/operation_details.h"
-#include "tao/Wait_Strategy.h"
-#include "tao/debug.h"
-#include "tao/ORB_Constants.h"
-#include "tao/Messaging_SyncScopeC.h"
-#include "tao/ORB_Core.h"
-#include "tao/Service_Context.h"
+#include "Synch_Invocation.h"
+#include "Profile_Transport_Resolver.h"
+#include "Profile.h"
+#include "Synch_Reply_Dispatcher.h"
+#include "Transport.h"
+#include "Stub.h"
+#include "Bind_Dispatcher_Guard.h"
+#include "operation_details.h"
+#include "Wait_Strategy.h"
+#include "debug.h"
+#include "ORB_Constants.h"
+#include "Messaging_SyncScopeC.h"
+#include "ORB_Core.h"
+#include "Service_Context.h"
#if TAO_HAS_INTERCEPTORS == 1
-# include "tao/PortableInterceptorC.h"
+# include "PortableInterceptorC.h"
#endif /*TAO_HAS_INTERCEPTORS */
#include "ace/Auto_Ptr.h"
@@ -24,7 +24,7 @@
#include "ace/Countdown_Time.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Synch_Invocation.inl"
+# include "Synch_Invocation.inl"
#endif /* __ACE_INLINE__ */
@@ -33,8 +33,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Synch_Twoway_Invocation::Synch_Twoway_Invocation (
@@ -81,6 +79,9 @@ namespace TAO
ACE_TRY
{
TAO_OutputCDR &cdr = this->resolver_.transport ()->out_stream ();
+#if TAO_RESET_OUTPUT_CDR_AFTER_SEND == 1
+ OutputCDR_Auto_Reset cdr_reset(cdr);
+#endif /* TAO_RESET_OUTPUT_CDR_AFTER_SEND */
this->write_header (tspec,
cdr
@@ -337,7 +338,7 @@ namespace TAO
{
(void) bd.unbind_dispatcher ();
this->resolver_.transport ()->close_connection ();
-
+
ACE_TRY
{
return
@@ -402,36 +403,6 @@ namespace TAO
case TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD:
return this->location_forward (cdr
ACE_ENV_ARG_PARAMETER);
- case TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM:
- {
- // Unmarshal the location forward object and set the
- // variable this->forward_to_.
- const Invocation_Status s
- = this->location_forward (cdr
- ACE_ENV_ARG_PARAMETER);
- if (s != TAO_INVOKE_FAILURE)
- {
- // de-marshalling of permanent object reference was successfull
- const CORBA::Boolean permanent_forward_condition =
- this->orb_core ()->is_permanent_forward_condition
- (this->forwarded_to_.in (),
- this->request_service_context ());
-
- if (!permanent_forward_condition)
- {
- // permanent condition not given
- if (TAO_debug_level > 3)
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - Synch_Twoway_Invocation::"
- "check_reply_status: unexpected LOCATION_FORWARD_PERM reply\n"));
-
- ACE_THROW_RETURN (CORBA::INTERNAL (0, CORBA::COMPLETED_NO),
- TAO_INVOKE_FAILURE);
- }
- }
-
- return s;
- }
case TAO_PLUGGABLE_MESSAGE_USER_EXCEPTION:
return this->handle_user_exception (cdr
ACE_ENV_ARG_PARAMETER);
@@ -546,7 +517,7 @@ namespace TAO
ACE_TEXT ("TAO (%P|%t) - Synch_Twoway_Invocation::")
ACE_TEXT ("handle_user_exception - ")
ACE_TEXT ("raising exception %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (buf.in ())));
+ ACE_TEXT_TO_TCHAR_IN (buf.in ())));
}
mon.set_status (TAO_INVOKE_USER_EXCEPTION);
@@ -733,6 +704,9 @@ namespace TAO
this->resolver_.transport ();
TAO_OutputCDR &cdr = transport->out_stream ();
+#if TAO_RESET_OUTPUT_CDR_AFTER_SEND == 1
+ OutputCDR_Auto_Reset cdr_reset(cdr);
+#endif /* TAO_RESET_OUTPUT_CDR_AFTER_SEND */
ACE_TRY
{
@@ -813,5 +787,3 @@ namespace TAO
return s;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Synch_Invocation.h b/TAO/tao/Synch_Invocation.h
index e3441f6b7be..b4ff18b1a1a 100644
--- a/TAO/tao/Synch_Invocation.h
+++ b/TAO/tao/Synch_Invocation.h
@@ -22,15 +22,10 @@
#include "tao/SystemException.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Operation_Details;
class TAO_Synch_Reply_Dispatcher;
class TAO_InputCDR;
+class ACE_Time_Value;
class TAO_Bind_Dispatcher_Guard;
namespace TAO
@@ -205,7 +200,6 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/Synch_Invocation.inl"
diff --git a/TAO/tao/Synch_Invocation.inl b/TAO/tao/Synch_Invocation.inl
index 649d3245412..ccf61f981f2 100644
--- a/TAO/tao/Synch_Invocation.inl
+++ b/TAO/tao/Synch_Invocation.inl
@@ -1,9 +1,5 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE
@@ -26,5 +22,3 @@ namespace TAO
this->status_ = s;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Synch_Queued_Message.cpp b/TAO/tao/Synch_Queued_Message.cpp
index bcafd9afefc..58cbf2afb3e 100644
--- a/TAO/tao/Synch_Queued_Message.cpp
+++ b/TAO/tao/Synch_Queued_Message.cpp
@@ -1,8 +1,8 @@
// "$Id$"
-#include "tao/Synch_Queued_Message.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
+#include "Synch_Queued_Message.h"
+#include "debug.h"
+#include "ORB_Core.h"
#include "ace/Malloc_T.h"
#include "ace/Message_Block.h"
@@ -11,13 +11,11 @@ ACE_RCSID (tao,
Synch_Queued_Message,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Synch_Queued_Message::TAO_Synch_Queued_Message (
- const ACE_Message_Block *contents,
- TAO_ORB_Core *oc,
- ACE_Allocator *alloc,
- int is_heap_allocated)
+TAO_Synch_Queued_Message::
+ TAO_Synch_Queued_Message (const ACE_Message_Block *contents,
+ TAO_ORB_Core *oc,
+ ACE_Allocator *alloc,
+ int is_heap_allocated)
: TAO_Queued_Message (oc, alloc, is_heap_allocated)
, contents_ (const_cast<ACE_Message_Block*> (contents))
, current_block_ (contents_)
@@ -180,5 +178,3 @@ TAO_Synch_Queued_Message::destroy (void)
}
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Synch_Queued_Message.h b/TAO/tao/Synch_Queued_Message.h
index 09b96f3b6ba..f587c87e816 100644
--- a/TAO/tao/Synch_Queued_Message.h
+++ b/TAO/tao/Synch_Queued_Message.h
@@ -15,14 +15,12 @@
#include /**/ "ace/pre.h"
-#include "tao/Queued_Message.h"
+#include "Queued_Message.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Synch_Queued_Message
*
@@ -92,8 +90,6 @@ private:
ACE_Message_Block *current_block_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_QUEUED_MESSAGE_H */
diff --git a/TAO/tao/Synch_Reply_Dispatcher.cpp b/TAO/tao/Synch_Reply_Dispatcher.cpp
index d8f7fd8df1e..d901b7b93e3 100644
--- a/TAO/tao/Synch_Reply_Dispatcher.cpp
+++ b/TAO/tao/Synch_Reply_Dispatcher.cpp
@@ -1,17 +1,15 @@
// $Id$
-#include "tao/Synch_Reply_Dispatcher.h"
-#include "tao/ORB_Core.h"
-#include "tao/Pluggable_Messaging_Utils.h"
-#include "tao/debug.h"
+#include "Synch_Reply_Dispatcher.h"
+#include "ORB_Core.h"
+#include "Pluggable_Messaging_Utils.h"
+#include "debug.h"
ACE_RCSID (tao,
Synch_Reply_Dispatcher,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Synch_Reply_Dispatcher::TAO_Synch_Reply_Dispatcher (
TAO_ORB_Core *orb_core,
@@ -69,40 +67,30 @@ TAO_Synch_Reply_Dispatcher::dispatch_reply (
//this->message_state_.reset (0);
// Transfer the <params.input_cdr_>'s content to this->reply_cdr_
- if (ACE_BIT_DISABLED ((*params.input_cdr_).start()->data_block()->flags(),
+ ACE_Data_Block *db =
+ this->reply_cdr_.clone_from (*params.input_cdr_);
+
+ if (db == 0)
+ {
+ if (TAO_debug_level > 2)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "TAO (%P|%t) - Synch_Reply_Dispatcher::dispatch_reply "
+ "clone_from failed \n"));
+ }
+ return -1;
+ }
+
+ // See whether we need to delete the data block by checking the
+ // flags. We cannot be happy that we initally allocated the
+ // datablocks of the stack. If this method is called twice, as is in
+ // some cases where the same invocation object is used to make two
+ // invocations like forwarding, the release becomes essential.
+ if (ACE_BIT_DISABLED (db->flags (),
ACE_Message_Block::DONT_DELETE))
- {
- // Data block is on the heap, so just duplicate it.
- this->reply_cdr_ = *params.input_cdr_;
- this->reply_cdr_.clr_mb_flags( ACE_Message_Block::DONT_DELETE );
- }
- else
- {
- ACE_Data_Block *db =
- this->reply_cdr_.clone_from (*params.input_cdr_);
-
- if (db == 0)
- {
- if (TAO_debug_level > 2)
- {
- ACE_ERROR ((LM_ERROR,
- "TAO (%P|%t) - Synch_Reply_Dispatcher::dispatch_reply "
- "clone_from failed \n"));
- }
- return -1;
- }
-
- // See whether we need to delete the data block by checking the
- // flags. We cannot be happy that we initally allocated the
- // datablocks of the stack. If this method is called twice, as is in
- // some cases where the same invocation object is used to make two
- // invocations like forwarding, the release becomes essential.
- if (ACE_BIT_DISABLED (db->flags (),
- ACE_Message_Block::DONT_DELETE))
- {
- db->release ();
- }
- }
+ {
+ db->release ();
+ }
this->state_changed (TAO_LF_Event::LFS_SUCCESS,
this->orb_core_->leader_follower ());
@@ -116,5 +104,3 @@ TAO_Synch_Reply_Dispatcher::connection_closed (void)
this->state_changed (TAO_LF_Event::LFS_CONNECTION_CLOSED,
this->orb_core_->leader_follower ());
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Synch_Reply_Dispatcher.h b/TAO/tao/Synch_Reply_Dispatcher.h
index c22e515cd47..6774d5c2d87 100644
--- a/TAO/tao/Synch_Reply_Dispatcher.h
+++ b/TAO/tao/Synch_Reply_Dispatcher.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -6,7 +6,8 @@
*
* $Id$
*
- * Dispatch the reply appropriately.
+ * Dispatch the reply appropriately.
+ *
*
* @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
*/
@@ -26,8 +27,6 @@
#include "tao/LF_Invocation_Event.h"
#include "tao/CDR.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Pluggable_Reply_Params;
namespace IOP
@@ -88,8 +87,6 @@ private:
TAO_InputCDR reply_cdr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_REPLY_DISPATCHER_H */
diff --git a/TAO/tao/SystemException.cpp b/TAO/tao/SystemException.cpp
index 35a47758128..02f3925f834 100644
--- a/TAO/tao/SystemException.cpp
+++ b/TAO/tao/SystemException.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/SystemException.h"
-#include "tao/Environment.h"
-#include "tao/ORB_Constants.h"
-#include "tao/CORBA_String.h"
-#include "tao/CDR.h"
-#include "tao/debug.h"
-#include "tao/AnyTypeCode_Adapter.h"
+#include "SystemException.h"
+#include "Environment.h"
+#include "ORB_Constants.h"
+#include "CORBA_String.h"
+#include "CDR.h"
+#include "debug.h"
+#include "AnyTypeCode_Adapter.h"
#include "ace/Malloc.h"
#include "ace/SString.h"
@@ -30,8 +30,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @name @c errno Encoding
*
@@ -225,7 +223,7 @@ CORBA::SystemException::_tao_print_system_exception (FILE *) const
{
ACE_DEBUG ((LM_ERROR,
ACE_TEXT("(%P|%t) system exception, ID '%s'\n"),
- ACE_TEXT_CHAR_TO_TCHAR (this->_info ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (this->_info ().c_str ())));
}
ACE_CString
@@ -816,11 +814,9 @@ CORBA::SystemException::_tao_get_omg_exception_description (
return "*unknown description*";
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// List of standard/system exceptions ... used to create static
// storage for their typecodes, then later to initialize that storage
@@ -881,7 +877,6 @@ static const char *repo_id_array[] = {
static const CORBA::ULong array_sz =
(sizeof (repo_id_array) / sizeof (char const *)) - 1;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::excp_factory excp_array [] = {
#define TAO_SYSTEM_EXCEPTION(name) \
@@ -980,5 +975,3 @@ CORBA::name ::_tao_create (void) \
STANDARD_EXCEPTION_LIST
#undef TAO_SYSTEM_EXCEPTION
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/SystemException.h b/TAO/tao/SystemException.h
index 2a343346d3a..54a7b4dcf49 100644
--- a/TAO/tao/SystemException.h
+++ b/TAO/tao/SystemException.h
@@ -29,14 +29,12 @@
#include "tao/Exception.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_OutputCDR;
class TAO_InputCDR;
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
// This is already done in orbconf.h. But this file is totally
// decoupled from its contents that we have to do this here. Including
@@ -238,7 +236,6 @@ namespace CORBA
} // End CORBA namespace
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "tao/SystemException.inl"
diff --git a/TAO/tao/SystemException.inl b/TAO/tao/SystemException.inl
index 25409d98218..9366410df75 100644
--- a/TAO/tao/SystemException.inl
+++ b/TAO/tao/SystemException.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
CORBA::SystemException::minor (void) const
{
@@ -112,5 +110,3 @@ CORBA::name ::_tao_any_destructor (void * x) \
TAO_STANDARD_SYSTEM_EXCEPTION_LIST
#undef TAO_SYSTEM_EXCEPTION
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TAO.pidl b/TAO/tao/TAO.pidl
index db7dd9b348a..74fd3f7979c 100644
--- a/TAO/tao/TAO.pidl
+++ b/TAO/tao/TAO.pidl
@@ -28,9 +28,9 @@
#ifndef TAO_TAO_IDL
#define TAO_TAO_IDL
-#include "tao/Policy.pidl"
-#include "tao/TimeBase.pidl"
-#include "tao/Messaging_SyncScope.pidl"
+#include "Policy.pidl"
+#include "TimeBase.pidl"
+#include "Messaging_SyncScope.pidl"
#pragma prefix "tao"
diff --git a/TAO/tao/TAOC.cpp b/TAO/tao/TAOC.cpp
index 11c30f3c6be..9ec2b85fff5 100644
--- a/TAO/tao/TAOC.cpp
+++ b/TAO/tao/TAOC.cpp
@@ -29,15 +29,13 @@
// be\be_codegen.cpp:277
-#include "tao/TAOC.h"
+#include "TAOC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -208,5 +206,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.message_count) &&
(strm >> _tao_aggregate.message_bytes);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TAOC.h b/TAO/tao/TAOC.h
index b417694122b..72e9467c9ef 100644
--- a/TAO/tao/TAOC.h
+++ b/TAO/tao/TAOC.h
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -292,8 +290,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, TAO::BufferingConstraint &
// TAO_IDL - Generated from
// be\be_codegen.cpp:1028
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/TAO_Internal.cpp b/TAO/tao/TAO_Internal.cpp
index 8cb753d3ea4..0a463afe0e3 100644
--- a/TAO/tao/TAO_Internal.cpp
+++ b/TAO/tao/TAO_Internal.cpp
@@ -1,24 +1,24 @@
// $Id$
-#include "tao/TAO_Internal.h"
-#include "tao/default_server.h"
-#include "tao/default_client.h"
-#include "tao/default_resource.h"
-#include "tao/IIOP_Factory.h"
-#include "tao/MCAST_Parser.h"
-#include "tao/CORBANAME_Parser.h"
-#include "tao/CORBALOC_Parser.h"
-#include "tao/FILE_Parser.h"
-#include "tao/DLL_Parser.h"
-#include "tao/ORB_Core.h"
-#include "tao/Adapter_Factory.h"
-#include "tao/Default_Stub_Factory.h"
-#include "tao/Default_Endpoint_Selector_Factory.h"
-#include "tao/Default_Protocols_Hooks.h"
-#include "tao/Default_Thread_Lane_Resources_Manager.h"
-#include "tao/Default_Collocation_Resolver.h"
-#include "tao/debug.h"
-#include "tao/StringSeqC.h"
+#include "TAO_Internal.h"
+#include "default_server.h"
+#include "default_client.h"
+#include "default_resource.h"
+#include "IIOP_Factory.h"
+#include "MCAST_Parser.h"
+#include "CORBANAME_Parser.h"
+#include "CORBALOC_Parser.h"
+#include "FILE_Parser.h"
+#include "DLL_Parser.h"
+#include "ORB_Core.h"
+#include "Adapter_Factory.h"
+#include "Default_Stub_Factory.h"
+#include "Default_Endpoint_Selector_Factory.h"
+#include "Default_Protocols_Hooks.h"
+#include "Default_Thread_Lane_Resources_Manager.h"
+#include "Default_Collocation_Resolver.h"
+#include "debug.h"
+#include "StringSeqC.h"
#include "ace/Dynamic_Service.h"
#include "ace/Arg_Shifter.h"
@@ -87,8 +87,6 @@ namespace
TAO_DEFAULT_CLIENT_STRATEGY_FACTORY_ARGS;
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
TAO::ORB::open_services (int &argc, ACE_TCHAR **argv)
{
@@ -102,7 +100,7 @@ TAO::ORB::open_services (int &argc, ACE_TCHAR **argv)
if (argc > 0 && argv != 0)
{
- argv0 = ACE_TEXT_ALWAYS_CHAR (argv[0]);
+ argv0 = ACE_TEXT_TO_CHAR_OUT (argv[0]);
}
CORBA::ULong len = 0;
@@ -163,7 +161,7 @@ TAO::ORB::open_services (int &argc, ACE_TCHAR **argv)
ACE::debug (1);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter
+ else if ((current_arg = arg_shifter.get_the_parameter
(ACE_TEXT ("-ORBDebugLevel"))))
{
TAO_debug_level =
@@ -183,7 +181,7 @@ TAO::ORB::open_services (int &argc, ACE_TCHAR **argv)
arg_shifter.consume_arg ();
}
// Continue with flags that accept parameters.
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT ("-ORBSvcConfDirective"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT ("-ORBSvcConfDirective"))))
{
len = svc_config_argv.length ();
svc_config_argv.length (len + 2); // 2 arguments to add
@@ -193,11 +191,11 @@ TAO::ORB::open_services (int &argc, ACE_TCHAR **argv)
// configuration information rather than using a svc.conf
// file. Pass the "-S" to the service configurator.
svc_config_argv[len] = CORBA::string_dup ("-S");
- svc_config_argv[len + 1] = CORBA::string_dup (ACE_TEXT_ALWAYS_CHAR(current_arg));
+ svc_config_argv[len + 1] = CORBA::string_dup (current_arg);
arg_shifter.consume_arg ();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT ("-ORBSvcConf"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT ("-ORBSvcConf"))))
{
// Specify the name of the svc.conf file to be used.
@@ -227,17 +225,17 @@ TAO::ORB::open_services (int &argc, ACE_TCHAR **argv)
svc_config_argv.length (len + 2); // 2 arguments to add
svc_config_argv[len] = CORBA::string_dup ("-f");
- svc_config_argv[len + 1] = CORBA::string_dup (ACE_TEXT_ALWAYS_CHAR(current_arg));
+ svc_config_argv[len + 1] = CORBA::string_dup (current_arg);
arg_shifter.consume_arg();
}
- else if (0 != (current_arg = arg_shifter.get_the_parameter (ACE_TEXT ("-ORBServiceConfigLoggerKey"))))
+ else if ((current_arg = arg_shifter.get_the_parameter (ACE_TEXT ("-ORBServiceConfigLoggerKey"))))
{
len = svc_config_argv.length ();
svc_config_argv.length (len + 2); // 2 arguments to add
svc_config_argv[len] = CORBA::string_dup ("-k");
- svc_config_argv[len + 1] = CORBA::string_dup (ACE_TEXT_ALWAYS_CHAR(current_arg));
+ svc_config_argv[len + 1] = CORBA::string_dup (current_arg);
arg_shifter.consume_arg ();
}
@@ -280,8 +278,6 @@ TAO::ORB::default_svc_conf_entries (char const * rf_args,
client_strategy_factory_args = csf_args;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// -----------------------------------------------------
namespace
{
@@ -421,23 +417,22 @@ namespace
if (resource_factory_args != 0)
{
ACE_Service_Config::process_directive (
- ACE_TEXT_CHAR_TO_TCHAR (resource_factory_args));
+ ACE_TEXT_TO_TCHAR_IN (resource_factory_args));
}
if (client_strategy_factory_args != 0)
{
ACE_Service_Config::process_directive (
- ACE_TEXT_CHAR_TO_TCHAR (client_strategy_factory_args));
+ ACE_TEXT_TO_TCHAR_IN (client_strategy_factory_args));
}
if (server_strategy_factory_args != 0)
{
ACE_Service_Config::process_directive (
- ACE_TEXT_CHAR_TO_TCHAR (server_strategy_factory_args));
+ ACE_TEXT_TO_TCHAR_IN (server_strategy_factory_args));
}
return result;
}
}
-// TAO_BEGIN_VERSIONED_NAMESPACE_DECL -- ended prior to anonymous namespace.
diff --git a/TAO/tao/TAO_Internal.h b/TAO/tao/TAO_Internal.h
index e528980821c..f814c3a8c2d 100644
--- a/TAO/tao/TAO_Internal.h
+++ b/TAO/tao/TAO_Internal.h
@@ -17,14 +17,12 @@
#include /**/ "ace/pre.h"
-#include "tao/orbconf.h"
-#include "tao/Versioned_Namespace.h"
+#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -65,7 +63,6 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/TAO/tao/TAO_Server_Request.cpp b/TAO/tao/TAO_Server_Request.cpp
index d49d18f228b..c7075d34bf7 100644
--- a/TAO/tao/TAO_Server_Request.cpp
+++ b/TAO/tao/TAO_Server_Request.cpp
@@ -1,24 +1,24 @@
// $Id$
-#include "tao/TAO_Server_Request.h"
-#include "tao/ORB_Core.h"
-#include "tao/Timeprobe.h"
-#include "tao/debug.h"
-#include "tao/Pluggable_Messaging.h"
-#include "tao/GIOP_Utils.h"
-#include "tao/Stub.h"
-#include "tao/operation_details.h"
-#include "tao/Transport.h"
-#include "tao/CDR.h"
-#include "tao/SystemException.h"
+#include "TAO_Server_Request.h"
+#include "ORB_Core.h"
+#include "Timeprobe.h"
+#include "debug.h"
+#include "Pluggable_Messaging.h"
+#include "GIOP_Utils.h"
+#include "Stub.h"
+#include "operation_details.h"
+#include "Transport.h"
+#include "CDR.h"
+#include "SystemException.h"
#if TAO_HAS_INTERCEPTORS == 1
-#include "tao/PortableInterceptorC.h"
-#include "tao/ServerRequestInterceptor_Adapter.h"
+#include "PortableInterceptorC.h"
+#include "ServerRequestInterceptor_Adapter.h"
#endif
#if !defined (__ACE_INLINE__)
-# include "tao/TAO_Server_Request.i"
+# include "TAO_Server_Request.i"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (tao,
@@ -46,8 +46,6 @@ ACE_TIMEPROBE_EVENT_DESCRIPTIONS (TAO_Server_Request_Timeprobe_Description,
#endif /* ACE_ENABLE_TIMEPROBES */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ServerRequest::TAO_ServerRequest (TAO_Pluggable_Messaging *mesg_base,
TAO_InputCDR &input,
TAO_OutputCDR &output,
@@ -261,14 +259,7 @@ TAO_ServerRequest::init_reply (void)
// Forward exception only.
if (!CORBA::is_nil (this->forward_location_.in ()))
{
- const CORBA::Boolean permanent_forward_condition =
- this->orb_core_->is_permanent_forward_condition (this->forward_location_.in (),
- this->request_service_context ());
-
- reply_params.reply_status_
- = permanent_forward_condition
- ? TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM
- : TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD;
+ reply_params.reply_status_ = TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD;
}
// Any exception at all.
else if (this->exception_type_ == TAO_GIOP_NO_EXCEPTION)
@@ -285,8 +276,7 @@ TAO_ServerRequest::init_reply (void)
reply_params);
// Finish the GIOP Reply header, then marshal the exception.
- if (reply_params.reply_status_ == TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD ||
- reply_params.reply_status_ == TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD_PERM)
+ if (reply_params.reply_status_ == TAO_PLUGGABLE_MESSAGE_LOCATION_FORWARD)
{
// Marshal the forward location pointer.
CORBA::Object_ptr object_ptr = this->forward_location_.in ();
@@ -572,6 +562,4 @@ TAO_ServerRequest::pi_current_copy_callback (void)
return this->pi_current_copy_callback_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_INTERCEPTORS */
+#endif /*TAO_HAS_INTERCEPTORS*/
diff --git a/TAO/tao/TAO_Server_Request.h b/TAO/tao/TAO_Server_Request.h
index c6724852e1b..288fd4a2723 100644
--- a/TAO/tao/TAO_Server_Request.h
+++ b/TAO/tao/TAO_Server_Request.h
@@ -26,28 +26,20 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Tagged_Profile.h"
-#include "tao/Service_Context.h"
-#include "tao/Object.h"
+#include "Tagged_Profile.h"
+#include "Service_Context.h"
+#include "Object.h"
#if TAO_HAS_INTERCEPTORS == 1
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
class PICurrent;
class PICurrent_Impl;
class PICurrent_Copy_Callback;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "tao/PortableInterceptorC.h"
-
+#include "PortableInterceptorC.h"
#endif /* TAO_HAS_INTERCEPTORS == 1 */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Pluggable_Messaging;
class TAO_Transport;
class TAO_AMH_Response_Handler;
@@ -60,14 +52,6 @@ namespace CORBA
class Exception;
}
-namespace TAO
-{
- namespace CSD
- {
- class FW_Server_Request_Wrapper;
- }
-}
-
class TAO_Operation_Details;
/**
@@ -81,12 +65,6 @@ class TAO_Operation_Details;
class TAO_Export TAO_ServerRequest
{
public:
-
- /// Declare FW_Server_Request_Wrapper a friend
- /// This friendship makes the FW_Server_Request_Wrapper be able to
- /// clone the TAO_ServerRequest.
- friend class TAO::CSD::FW_Server_Request_Wrapper;
-
/// Declare TAO_AMH_Response_Handler a friend
/**
* The TAO_AMH_Response_Handler class needs to copy part of the
@@ -341,7 +319,7 @@ private:
/// Used to pad CDR stream if we have used DSI.
ptrdiff_t dsi_nvlist_align_;
- TAO_Operation_Details const * operation_details_;
+ TAO_Operation_Details const * const operation_details_;
/**
* An argument flag to indicate whether there is any data that is
@@ -375,10 +353,8 @@ private:
#endif /* TAO_HAS_INTERCEPTORS == 1 */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/TAO_Server_Request.i"
+# include "TAO_Server_Request.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/TAO_Server_Request.i b/TAO/tao/TAO_Server_Request.i
index 5fc7f50ab9b..a75efcab263 100644
--- a/TAO/tao/TAO_Server_Request.i
+++ b/TAO/tao/TAO_Server_Request.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_ORB_Core *
TAO_ServerRequest::orb_core (void) const
{
@@ -236,5 +234,3 @@ TAO_ServerRequest::reply_status (void)
}
#endif /* TAO_HAS_INTERCEPTORS == 1 */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TAO_Singleton.cpp b/TAO/tao/TAO_Singleton.cpp
index dc8493856a9..13ea18bf273 100644
--- a/TAO/tao/TAO_Singleton.cpp
+++ b/TAO/tao/TAO_Singleton.cpp
@@ -21,7 +21,9 @@
#include "tao/TAO_Singleton.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ TAO_Singleton,
+ "$Id$")
template <class TYPE, class ACE_LOCK> void
TAO_Singleton<TYPE, ACE_LOCK>::dump (void)
@@ -204,6 +206,4 @@ TAO_TSS_Singleton<TYPE, ACE_LOCK>::cleanup (void *)
TAO_TSS_Singleton<TYPE, ACE_LOCK>::instance_i () = 0;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_SINGLETON_CPP */
diff --git a/TAO/tao/TAO_Singleton.h b/TAO/tao/TAO_Singleton.h
index 41d27015cb8..b4c2194f86c 100644
--- a/TAO/tao/TAO_Singleton.h
+++ b/TAO/tao/TAO_Singleton.h
@@ -25,13 +25,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
#include "ace/Cleanup.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Singleton
*
@@ -122,8 +118,6 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/TAO_Singleton.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/TAO_Singleton.inl b/TAO/tao/TAO_Singleton.inl
index bacacea205e..d1d32b6998c 100644
--- a/TAO/tao/TAO_Singleton.inl
+++ b/TAO/tao/TAO_Singleton.inl
@@ -1,10 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructors.
//
// Note: don't explicitly initialize "instance_", because TYPE may not
@@ -19,5 +15,3 @@ template <class TYPE, class ACE_LOCK> ACE_INLINE
TAO_TSS_Singleton<TYPE, ACE_LOCK>::TAO_TSS_Singleton (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TAO_Singleton_Manager.cpp b/TAO/tao/TAO_Singleton_Manager.cpp
index 829f808c51f..fcacaa78283 100644
--- a/TAO/tao/TAO_Singleton_Manager.cpp
+++ b/TAO/tao/TAO_Singleton_Manager.cpp
@@ -28,44 +28,19 @@ ACE_RCSID (tao,
TAO_Singleton_Manager,
"$Id$")
-
-namespace
-{
- // Singleton instance pointer.
- TAO_Singleton_Manager * the_instance = 0;
-}
-
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define TAO_SINGLETON_MANAGER_CLEANUP_DESTROYER_NAME ACE_PREPROC_CONCATENATE(TAO_VERSIONED_NAMESPACE_NAME, _TAO_Singleton_Manager_cleanup_destroyer)
-
-#else
-
-# define TAO_SINGLETON_MANAGER_CLEANUP_DESTROYER_NAME TAO_Singleton_Manager_cleanup_destroyer
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-// Adapter for cleanup, used to register cleanup function with the
-// ACE_Object_Manager.
extern "C" void
-TAO_SINGLETON_MANAGER_CLEANUP_DESTROYER_NAME (void *, void *)
+TAO_Singleton_Manager_cleanup_destroyer (void *, void *)
{
-#if defined (TAO_HAS_VERSIONED_NAMESPACE) \
- && TAO_HAS_VERSIONED_NAMESPACE == 1
- using namespace TAO_VERSIONED_NAMESPACE_NAME;
-#endif /* TAO_HAS_VERSIONED_NAMESPACE */
-
- if (the_instance)
+ if (TAO_Singleton_Manager::instance_)
{
(void) TAO_Singleton_Manager::instance ()->fini ();
}
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+TAO_Singleton_Manager *TAO_Singleton_Manager::instance_ = 0;
+
+void *TAO_Singleton_Manager::preallocated_object[
+ TAO_Singleton_Manager::TAO_PREALLOCATED_OBJECTS] = { 0 };
TAO_Singleton_Manager::TAO_Singleton_Manager (void)
// default_mask_ isn't initialized, because it's defined by <init>.
@@ -80,9 +55,9 @@ TAO_Singleton_Manager::TAO_Singleton_Manager (void)
#endif /* ACE_HAS_EXCEPTIONS */
{
// Be sure that no further instances are created via instance ().
- if (the_instance == 0)
+ if (instance_ == 0)
{
- the_instance = this;
+ instance_ = this;
}
// @@ This is a hack. Allow the TAO_Singleton_Manager to be registered
@@ -127,14 +102,14 @@ TAO_Singleton_Manager::instance (void)
// instances, or before any other threads have been created in the
// process. So, it's not thread safe.
- if (the_instance == 0)
+ if (instance_ == 0)
{
TAO_Singleton_Manager *instance_pointer;
ACE_NEW_RETURN (instance_pointer,
TAO_Singleton_Manager,
0);
- ACE_ASSERT (instance_pointer == the_instance);
+ ACE_ASSERT (instance_pointer == instance_);
instance_pointer->dynamically_allocated_ = 1;
@@ -142,7 +117,7 @@ TAO_Singleton_Manager::instance (void)
}
else
{
- return the_instance;
+ return instance_;
}
}
@@ -170,7 +145,7 @@ TAO_Singleton_Manager::init (int register_with_object_manager)
// initialized.
this->object_manager_state_ = OBJ_MAN_INITIALIZING;
- if (this == the_instance)
+ if (this == instance_)
{
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
// @@ No MT-specific pre-allocated objects.
@@ -210,7 +185,7 @@ TAO_Singleton_Manager::init (int register_with_object_manager)
if (register_with_object_manager == 1
&& ACE_Object_Manager::at_exit (
this,
- (ACE_CLEANUP_FUNC) TAO_SINGLETON_MANAGER_CLEANUP_DESTROYER_NAME,
+ (ACE_CLEANUP_FUNC) TAO_Singleton_Manager_cleanup_destroyer,
0) != 0)
return -1;
@@ -230,7 +205,7 @@ TAO_Singleton_Manager::init (int register_with_object_manager)
int
TAO_Singleton_Manager::fini (void)
{
- if (the_instance == 0 || this->shutting_down_i ())
+ if (instance_ == 0 || this->shutting_down_i ())
// Too late. Or, maybe too early. Either fini () has already
// been called, or init () was never called.
return this->object_manager_state_ == OBJ_MAN_SHUT_DOWN ? 1 : -1;
@@ -254,18 +229,18 @@ TAO_Singleton_Manager::fini (void)
// registration.
this->exit_info_.call_hooks ();
-// // Only clean up preallocated objects when the singleton Instance is being
-// // destroyed.
-// if (this == the_instance)
-// {
-// #if ! defined (ACE_HAS_STATIC_PREALLOCATION)
-// // Cleanup the dynamically preallocated objects.
-// # if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
-// // @@ No MT-specific preallocated objects yet.
-// # endif /* ACE_MT_SAFE */
-// // @@ No preallocated objects yet.
-// #endif /* ! ACE_HAS_STATIC_PREALLOCATION */
-// }
+ // Only clean up preallocated objects when the singleton Instance is being
+ // destroyed.
+ if (this == instance_)
+ {
+#if ! defined (ACE_HAS_STATIC_PREALLOCATION)
+ // Cleanup the dynamically preallocated objects.
+# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
+ // @@ No MT-specific preallocated objects yet.
+# endif /* ACE_MT_SAFE */
+ // @@ No preallocated objects yet.
+#endif /* ! ACE_HAS_STATIC_PREALLOCATION */
+ }
delete this-> default_mask_;
this->default_mask_ = 0;
@@ -291,8 +266,8 @@ TAO_Singleton_Manager::fini (void)
// Indicate that this TAO_Singleton_Manager instance has been shut down.
this->object_manager_state_ = OBJ_MAN_SHUT_DOWN;
- if (this == the_instance)
- the_instance = 0;
+ if (this == instance_)
+ instance_ = 0;
if (this->dynamically_allocated_)
{
@@ -305,18 +280,16 @@ TAO_Singleton_Manager::fini (void)
int
TAO_Singleton_Manager::starting_up (void)
{
- return
- the_instance
- ? the_instance->starting_up_i ()
+ return TAO_Singleton_Manager::instance_
+ ? instance_->starting_up_i ()
: 1;
}
int
TAO_Singleton_Manager::shutting_down (void)
{
- return
- the_instance
- ? the_instance->shutting_down_i ()
+ return TAO_Singleton_Manager::instance_
+ ? instance_->shutting_down_i ()
: 1;
}
@@ -347,7 +320,7 @@ TAO_Singleton_Manager::at_exit_i (void *object,
{
ACE_MT (ACE_GUARD_RETURN (TAO_SYNCH_RECURSIVE_MUTEX,
ace_mon,
- *the_instance->internal_lock_,
+ *instance_->internal_lock_,
-1));
if (this->shutting_down_i ())
@@ -365,5 +338,3 @@ TAO_Singleton_Manager::at_exit_i (void *object,
return this->exit_info_.at_exit_i (object, cleanup_hook, param);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TAO_Singleton_Manager.h b/TAO/tao/TAO_Singleton_Manager.h
index 8d0313f6cb6..891a31ebf0e 100644
--- a/TAO/tao/TAO_Singleton_Manager.h
+++ b/TAO/tao/TAO_Singleton_Manager.h
@@ -28,12 +28,18 @@
#include "tao/orbconf.h"
#include "ace/Object_Manager_Base.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXCEPTIONS)
typedef void (*TAO_unexpected_handler)(void);
#endif /* ACE_HAS_EXCEPTIONS */
+
+/// Adapter for cleanup, used to register cleanup function with the
+/// ACE_Object_Manager.
+extern "C"
+void
+TAO_Singleton_Manager_cleanup_destroyer (void *, void *);
+
+
/**
* @class TAO_Singleton_Manager
*
@@ -53,6 +59,9 @@ typedef void (*TAO_unexpected_handler)(void);
*/
class TAO_Export TAO_Singleton_Manager : public ACE_Object_Manager_Base
{
+
+ friend void TAO_Singleton_Manager_cleanup_destroyer (void *, void *);
+
public:
/// Explicitly initialize.
virtual int init (void);
@@ -77,6 +86,24 @@ public:
/// See ACE_Object_Manager::shutting_down for more information.
static int shutting_down (void);
+ /// Unique identifiers for preallocated Objects.
+ enum Preallocated_Object
+ {
+# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
+ /// @@ No MT-specific preallocated objects (yet). Remove the
+ /// below dummy enum once a preallocated object is added.
+ TAO_EMPTY_PREALLOCATED_OBJECT,
+# else
+ /// Without ACE_MT_SAFE, There are no preallocated objects.
+ /// Make sure that the preallocated_array size is at least one
+ /// by declaring this dummy ...
+ TAO_EMPTY_PREALLOCATED_OBJECT,
+# endif /* ACE_MT_SAFE */
+
+ /// This enum value must be last!
+ TAO_PREALLOCATED_OBJECTS
+ };
+
/// Accesses a default signal set used, for example, in
/// ACE_Sig_Guard methods.
static sigset_t *default_mask (void);
@@ -133,16 +160,13 @@ public:
void _set_unexpected (TAO_unexpected_handler u);
#endif /* ACE_HAS_EXCEPTIONS */
-protected:
-
+private:
/// Force allocation on the heap.
//@{
TAO_Singleton_Manager (void);
~TAO_Singleton_Manager (void);
//@}
-private:
-
/// Disallow copying by not implementing the following ...
//@{
TAO_Singleton_Manager (const TAO_Singleton_Manager &);
@@ -154,6 +178,11 @@ private:
int at_exit_i (void *object, ACE_CLEANUP_FUNC cleanup_hook, void *param);
private:
+ /// Singleton instance pointer.
+ static TAO_Singleton_Manager *instance_;
+
+ /// Table of preallocated objects.
+ static void *preallocated_object[TAO_PREALLOCATED_OBJECTS];
/// Default signal set used, for example, in ACE_Sig_Guard.
sigset_t *default_mask_;
@@ -186,8 +215,6 @@ private:
#endif /* ACE_HAS_EXCEPTIONS */
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/TAO_Singleton_Manager.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/TAO_Singleton_Manager.inl b/TAO/tao/TAO_Singleton_Manager.inl
index a9c35b8fa13..f9f0dd141ce 100644
--- a/TAO/tao/TAO_Singleton_Manager.inl
+++ b/TAO/tao/TAO_Singleton_Manager.inl
@@ -2,29 +2,25 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
int
TAO_Singleton_Manager::at_exit (ACE_Cleanup *object,
- void *param)
+ void *param)
{
return TAO_Singleton_Manager::instance ()->at_exit_i (
object,
- (ACE_CLEANUP_FUNC) ACE_CLEANUP_DESTROYER_NAME,
+ (ACE_CLEANUP_FUNC) ace_cleanup_destroyer,
param);
}
ACE_INLINE
int
TAO_Singleton_Manager::at_exit (void *object,
- ACE_CLEANUP_FUNC cleanup_hook,
- void *param)
+ ACE_CLEANUP_FUNC cleanup_hook,
+ void *param)
{
return TAO_Singleton_Manager::instance ()->at_exit_i (
object,
cleanup_hook,
param);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TSS_Resources.cpp b/TAO/tao/TSS_Resources.cpp
index 73ec7175070..e80f9cab0cc 100644
--- a/TAO/tao/TSS_Resources.cpp
+++ b/TAO/tao/TSS_Resources.cpp
@@ -1,16 +1,14 @@
// $Id$
-#include "tao/TSS_Resources.h"
-#include "tao/GUIResource_Factory.h"
-#include "tao/TAO_Singleton.h"
+#include "TSS_Resources.h"
+#include "GUIResource_Factory.h"
+#include "TAO_Singleton.h"
ACE_RCSID (tao,
TSS_Resources,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_TSS_Resources::TAO_TSS_Resources (void)
: poa_current_impl_ (0)
, rtscheduler_current_impl_ (0)
@@ -47,5 +45,3 @@ template
TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX> *
TAO_TSS_Singleton<TAO_TSS_Resources, TAO_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TSS_Resources.h b/TAO/tao/TSS_Resources.h
index 251c7a26837..a33983a0dc6 100644
--- a/TAO/tao/TSS_Resources.h
+++ b/TAO/tao/TSS_Resources.h
@@ -27,8 +27,6 @@
#include "tao/Policy_Current_Impl.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
namespace TAO
{
@@ -60,8 +58,8 @@ private:
/// Do not copy TSS resources
//@{
- TAO_TSS_Resources (const TAO_TSS_Resources&);
- void operator= (const TAO_TSS_Resources&);
+ ACE_UNIMPLEMENTED_FUNC (TAO_TSS_Resources(const TAO_TSS_Resources&))
+ ACE_UNIMPLEMENTED_FUNC (void operator=(const TAO_TSS_Resources&))
//@}
public:
@@ -107,8 +105,6 @@ public:
TAO::GUIResource_Factory * gui_resource_factory_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TSS_RESOURCES_H */
diff --git a/TAO/tao/Tagged_Components.cpp b/TAO/tao/Tagged_Components.cpp
index 172dde55018..8b2c8490649 100644
--- a/TAO/tao/Tagged_Components.cpp
+++ b/TAO/tao/Tagged_Components.cpp
@@ -13,9 +13,6 @@ ACE_RCSID (tao,
Tagged_Components,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO_Tagged_Components::set_orb_type (CORBA::ULong orb_type)
{
@@ -341,4 +338,3 @@ TAO_Tagged_Components::decode (TAO_InputCDR& cdr)
return 1;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Tagged_Components.h b/TAO/tao/Tagged_Components.h
index 93f2a927bf3..75f756a2093 100644
--- a/TAO/tao/Tagged_Components.h
+++ b/TAO/tao/Tagged_Components.h
@@ -23,9 +23,6 @@
#include "tao/CONV_FRAMEC.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Profile;
/// Tag for storing multiple endpoints within a single profile.
@@ -34,7 +31,7 @@ class TAO_Profile;
* The standard TAG_ALTERNATE_IIOP_ADDRESSES tagged component is the
* portable alternative.
*/
-static const CORBA::ULong TAO_TAG_ENDPOINTS = 0x54414f02U;
+const CORBA::ULong TAO_TAG_ENDPOINTS = 0x54414f02U;
/**
* @class TAO_Tagged_Components
@@ -158,8 +155,6 @@ private:
CORBA::Octet code_sets_set_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Tagged_Components.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Tagged_Components.i b/TAO/tao/Tagged_Components.i
index cb61b5235b4..62ab4a40f05 100644
--- a/TAO/tao/Tagged_Components.i
+++ b/TAO/tao/Tagged_Components.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Tagged_Components::TAO_Tagged_Components (void)
: orb_type_ (0),
@@ -78,5 +76,3 @@ TAO_Tagged_Components::components (void)
{
return this->components_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Tagged_Profile.cpp b/TAO/tao/Tagged_Profile.cpp
index e5bed686c15..cfe643f6066 100644
--- a/TAO/tao/Tagged_Profile.cpp
+++ b/TAO/tao/Tagged_Profile.cpp
@@ -17,8 +17,6 @@ ACE_RCSID (tao,
Tagged_Profile,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Boolean
TAO_Tagged_Profile::extract_object_key (IOP::TaggedProfile &profile)
{
@@ -194,5 +192,3 @@ TAO_Tagged_Profile::unmarshall_ref_addr_i (
return hdr_status;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Tagged_Profile.h b/TAO/tao/Tagged_Profile.h
index 58b0ff93167..5e9e10f8348 100644
--- a/TAO/tao/Tagged_Profile.h
+++ b/TAO/tao/Tagged_Profile.h
@@ -22,19 +22,8 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Object_KeyC.h"
-#include "tao/Versioned_Namespace.h"
#include "ace/SString.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
- namespace CSD
- {
- class FW_Server_Request_Wrapper;
- }
-}
-
/**
* @class TAO_Tagged_Profile
*
@@ -45,12 +34,6 @@ namespace TAO
class TAO_Export TAO_Tagged_Profile
{
public:
-
- /// Declare FW_Server_Request_Wrapper a friend
- /// This friendship makes the FW_Server_Request_Wrapper be able to
- /// clone the TAO_Tagged_Profile data member in TAO_ServerRequest.
- friend class TAO::CSD::FW_Server_Request_Wrapper;
-
/// Ctor
TAO_Tagged_Profile (TAO_ORB_Core *orb_core);
@@ -144,8 +127,6 @@ private:
ACE_CString type_id_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Tagged_Profile.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Tagged_Profile.i b/TAO/tao/Tagged_Profile.i
index 60249f0ef37..52e7b34fae1 100644
--- a/TAO/tao/Tagged_Profile.i
+++ b/TAO/tao/Tagged_Profile.i
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Tagged_Profile::TAO_Tagged_Profile (TAO_ORB_Core *orb_core)
: orb_core_ (orb_core),
@@ -16,6 +13,7 @@ TAO_Tagged_Profile::TAO_Tagged_Profile (TAO_ORB_Core *orb_core)
}
+
ACE_INLINE TAO::ObjectKey &
TAO_Tagged_Profile::object_key (void)
{
@@ -63,5 +61,3 @@ TAO_Tagged_Profile::discriminator (void) const
{
return this->discriminator_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Thread_Lane_Resources.cpp b/TAO/tao/Thread_Lane_Resources.cpp
index 9f639f4b6c4..1168a525d4f 100644
--- a/TAO/tao/Thread_Lane_Resources.cpp
+++ b/TAO/tao/Thread_Lane_Resources.cpp
@@ -17,9 +17,6 @@ ACE_RCSID (tao,
#include "ace/Reactor.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Thread_Lane_Resources::TAO_Thread_Lane_Resources (
TAO_ORB_Core &orb_core,
TAO_New_Leader_Generator *new_leader_generator
@@ -554,5 +551,3 @@ TAO_Thread_Lane_Resources::cleanup_rw_transports (void)
(*handler)->transport ()->remove_reference ();
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Thread_Lane_Resources.h b/TAO/tao/Thread_Lane_Resources.h
index 07ec9a50edc..f0c1a61a07f 100644
--- a/TAO/tao/Thread_Lane_Resources.h
+++ b/TAO/tao/Thread_Lane_Resources.h
@@ -24,14 +24,9 @@
#include "tao/TAO_Export.h"
#include "tao/orbconf.h"
-#include "tao/params.h"
+#include "params.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Acceptor_Registry;
class TAO_Leader_Follower;
@@ -212,8 +207,6 @@ private:
//@}
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_THREAD_LANE_RESOURCES_H */
diff --git a/TAO/tao/Thread_Lane_Resources_Manager.cpp b/TAO/tao/Thread_Lane_Resources_Manager.cpp
index 8a3465d2648..d004966c26b 100644
--- a/TAO/tao/Thread_Lane_Resources_Manager.cpp
+++ b/TAO/tao/Thread_Lane_Resources_Manager.cpp
@@ -10,8 +10,6 @@ ACE_RCSID (tao,
Thread_Lane_Resources_Manager,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Thread_Lane_Resources_Manager::TAO_Thread_Lane_Resources_Manager (TAO_ORB_Core &orb_core)
: orb_core_ (&orb_core),
lf_strategy_ (0)
@@ -35,4 +33,3 @@ TAO_Thread_Lane_Resources_Manager_Factory::~TAO_Thread_Lane_Resources_Manager_Fa
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Thread_Lane_Resources_Manager.h b/TAO/tao/Thread_Lane_Resources_Manager.h
index 47915050b97..cbd6be69009 100644
--- a/TAO/tao/Thread_Lane_Resources_Manager.h
+++ b/TAO/tao/Thread_Lane_Resources_Manager.h
@@ -23,9 +23,6 @@
#include "ace/Service_Object.h"
#include "tao/TAO_Export.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Core;
class TAO_Thread_Lane_Resources;
@@ -107,14 +104,12 @@ public:
virtual ~TAO_Thread_Lane_Resources_Manager_Factory (void);
/// Factory method.
- virtual TAO_Thread_Lane_Resources_Manager *
+ virtual
+ TAO_Thread_Lane_Resources_Manager *
create_thread_lane_resources_manager (TAO_ORB_Core &core) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
#include /**/ "ace/post.h"
#endif /* TAO_THREAD_LANE_RESOURCES_MANAGER_H */
diff --git a/TAO/tao/Thread_Per_Connection_Handler.cpp b/TAO/tao/Thread_Per_Connection_Handler.cpp
index 9cf61f3bfc2..6cd522c8298 100644
--- a/TAO/tao/Thread_Per_Connection_Handler.cpp
+++ b/TAO/tao/Thread_Per_Connection_Handler.cpp
@@ -1,17 +1,15 @@
//$Id$
-#include "tao/Thread_Per_Connection_Handler.h"
-#include "tao/Connection_Handler.h"
-#include "tao/debug.h"
-#include "tao/Transport.h"
-#include "tao/ORB_Core.h"
+#include "Thread_Per_Connection_Handler.h"
+#include "Connection_Handler.h"
+#include "debug.h"
+#include "Transport.h"
+#include "ORB_Core.h"
#include "ace/Flag_Manip.h"
ACE_RCSID (tao,
Thread_Per_Connection_Handler,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Thread_Per_Connection_Handler::TAO_Thread_Per_Connection_Handler (
TAO_Connection_Handler *ch,
TAO_ORB_Core *oc)
@@ -83,5 +81,3 @@ TAO_Thread_Per_Connection_Handler::close (u_long)
return 0;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Thread_Per_Connection_Handler.h b/TAO/tao/Thread_Per_Connection_Handler.h
index cf51317e646..08ed211ae58 100644
--- a/TAO/tao/Thread_Per_Connection_Handler.h
+++ b/TAO/tao/Thread_Per_Connection_Handler.h
@@ -1,4 +1,4 @@
-//x -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,9 +24,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/TAO_Export.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Connection_Handler;
class TAO_ORB_Core;
@@ -80,8 +77,6 @@ private:
TAO_Connection_Handler *ch_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_THREAD_PER_CONNECTION_HANDLER_H*/
diff --git a/TAO/tao/TimeBaseC.cpp b/TAO/tao/TimeBaseC.cpp
index 650026e6abb..aa5a1ecaaa7 100644
--- a/TAO/tao/TimeBaseC.cpp
+++ b/TAO/tao/TimeBaseC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/TimeBaseC.h"
+#include "TimeBaseC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -122,5 +120,3 @@ CORBA::Boolean operator>> (
(strm >> _tao_aggregate.lower_bound) &&
(strm >> _tao_aggregate.upper_bound);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TimeBaseC.h b/TAO/tao/TimeBaseC.h
index 4ff35b6fd42..a5846a67720 100644
--- a/TAO/tao/TimeBaseC.h
+++ b/TAO/tao/TimeBaseC.h
@@ -62,8 +62,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TimeBase
{
@@ -169,8 +167,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, TimeBase::IntervalT &);
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/TkResource_Factory.cpp b/TAO/tao/TkResource_Factory.cpp
index d9d6d3dffeb..765e7a40e02 100644
--- a/TAO/tao/TkResource_Factory.cpp
+++ b/TAO/tao/TkResource_Factory.cpp
@@ -9,13 +9,11 @@ ACE_RCSID( TAO_TkResource,
"$Id$");
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
- TkResource_Factory::TkResource_Factory (void)
- : reactor_impl_ (0)
+ TkResource_Factory::TkResource_Factory ():
+ reactor_impl_( 0 )
{
}
@@ -37,5 +35,3 @@ namespace TAO
return this->reactor_impl_;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TkResource_Factory.h b/TAO/tao/TkResource_Factory.h
index 7fe5bb140ac..e08b436d274 100644
--- a/TAO/tao/TkResource_Factory.h
+++ b/TAO/tao/TkResource_Factory.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -57,8 +55,5 @@ namespace TAO
TAO_SYNCH_MUTEX lock_;
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TKRESOURCE_FACTORY_H */
diff --git a/TAO/tao/TkResource_Loader.cpp b/TAO/tao/TkResource_Loader.cpp
index e8885850e0d..782fbc92bf0 100644
--- a/TAO/tao/TkResource_Loader.cpp
+++ b/TAO/tao/TkResource_Loader.cpp
@@ -1,19 +1,16 @@
//$Id$
-#include "tao/TkResource_Loader.h"
-#include "tao/ORB_Core.h"
-#include "tao/TkResource_Factory.h"
+#include "TkResource_Loader.h"
+#include "ORB_Core.h"
+#include "TkResource_Factory.h"
ACE_RCSID( TAO_TkResource,
TkResource_Loader,
"$Id$");
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
- TkResource_Loader::TkResource_Loader (void)
+ TkResource_Loader::TkResource_Loader ()
{
TkResource_Factory *tmp = 0;
@@ -23,9 +20,7 @@ namespace TAO
TAO_ORB_Core::set_gui_resource_factory( tmp );
}
- TkResource_Loader::~TkResource_Loader (void)
+ TkResource_Loader::~TkResource_Loader ()
{
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TkResource_Loader.h b/TAO/tao/TkResource_Loader.h
index 86122b169d1..9b20a5eac02 100644
--- a/TAO/tao/TkResource_Loader.h
+++ b/TAO/tao/TkResource_Loader.h
@@ -13,19 +13,13 @@
#ifndef TAO_TKRESOURCE_LOADER_H
#define TAO_TKRESOURCE_LOADER_H
-
#include /**/ "ace/pre.h"
-
#include "tao/TAO_TkResource_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -44,17 +38,12 @@ namespace TAO
*/
class TAO_TkResource_Export TkResource_Loader
{
- public:
- TkResource_Loader (void);
-
- virtual ~TkResource_Loader (void);
+ public:
+ TkResource_Loader ( );
+ virtual ~TkResource_Loader ();
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_TKRESOURCE_LOADER_H */
diff --git a/TAO/tao/Transport.cpp b/TAO/tao/Transport.cpp
index 2a1f66c5a78..989fa5624ab 100644
--- a/TAO/tao/Transport.cpp
+++ b/TAO/tao/Transport.cpp
@@ -1,26 +1,26 @@
// $Id$
-#include "tao/Transport.h"
-
-#include "tao/LF_Follower.h"
-#include "tao/Leader_Follower.h"
-#include "tao/Client_Strategy_Factory.h"
-#include "tao/Wait_Strategy.h"
-#include "tao/Transport_Mux_Strategy.h"
-#include "tao/Stub.h"
-#include "tao/Transport_Queueing_Strategies.h"
-#include "tao/Connection_Handler.h"
-#include "tao/Pluggable_Messaging.h"
-#include "tao/Synch_Queued_Message.h"
-#include "tao/Asynch_Queued_Message.h"
-#include "tao/Flushing_Strategy.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/Resume_Handle.h"
-#include "tao/Codeset_Manager.h"
-#include "tao/Codeset_Translator_Base.h"
-#include "tao/debug.h"
-#include "tao/CDR.h"
-#include "tao/ORB_Core.h"
+#include "Transport.h"
+
+#include "LF_Follower.h"
+#include "Leader_Follower.h"
+#include "Client_Strategy_Factory.h"
+#include "Wait_Strategy.h"
+#include "Transport_Mux_Strategy.h"
+#include "Stub.h"
+#include "Transport_Queueing_Strategies.h"
+#include "Connection_Handler.h"
+#include "Pluggable_Messaging.h"
+#include "Synch_Queued_Message.h"
+#include "Asynch_Queued_Message.h"
+#include "Flushing_Strategy.h"
+#include "Thread_Lane_Resources.h"
+#include "Resume_Handle.h"
+#include "Codeset_Manager.h"
+#include "Codeset_Translator_Base.h"
+#include "debug.h"
+#include "CDR.h"
+#include "ORB_Core.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/OS_NS_stdio.h"
@@ -34,7 +34,7 @@
//@@ TAO_TRANSPORT_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
#if !defined (__ACE_INLINE__)
-# include "tao/Transport.inl"
+# include "Transport.inl"
#endif /* __ACE_INLINE__ */
@@ -55,7 +55,7 @@ dump_iov (iovec *iov, int iovcnt, size_t id,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - Transport[%d]::%s, ")
ACE_TEXT ("sending %d buffers\n"),
- id, ACE_TEXT_CHAR_TO_TCHAR (location), iovcnt));
+ id, ACE_TEXT_TO_TCHAR_IN (location), iovcnt));
for (int i = 0; i != iovcnt && 0 < current_transfer; ++i)
{
@@ -70,7 +70,7 @@ dump_iov (iovec *iov, int iovcnt, size_t id,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - Transport[%d]::%s, ")
ACE_TEXT ("buffer %d/%d has %d bytes\n"),
- id, ACE_TEXT_CHAR_TO_TCHAR(location),
+ id, ACE_TEXT_TO_TCHAR_IN(location),
i, iovcnt,
iov_len));
@@ -107,13 +107,11 @@ dump_iov (iovec *iov, int iovcnt, size_t id,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - Transport[%d]::%s, ")
ACE_TEXT ("end of data\n"),
- id, ACE_TEXT_CHAR_TO_TCHAR(location)));
+ id, ACE_TEXT_TO_TCHAR_IN(location)));
ACE_Log_Msg::instance ()->release ();
}
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Transport::TAO_Transport (CORBA::ULong tag,
TAO_ORB_Core *orb_core)
: tag_ (tag)
@@ -181,9 +179,6 @@ TAO_Transport::~TAO_Transport (void)
// By the time the destructor is reached here all the connection stuff
// *must* have been cleaned up.
-
- // The following assert is needed for the test "Bug_2494_Regression".
- // See the bugzilla bug #2494 for details.
ACE_ASSERT (this->head_ == 0);
ACE_ASSERT (this->cache_map_entry_ == 0);
@@ -290,7 +285,7 @@ TAO_Transport::register_handler (void)
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::register_handler\n"),
+ "TAO (%P|%t) - Transport[%d]::register_handler\n",
this->id ()));
}
@@ -332,8 +327,8 @@ TAO_Transport::generate_locate_request (
if (TAO_debug_level > 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::generate_locate_request, ")
- ACE_TEXT ("error while marshalling the LocateRequest header\n"),
+ "TAO (%P|%t) - Transport[%d]::generate_locate_request, "
+ "error while marshalling the LocateRequest header\n",
this->id ()));
}
@@ -365,8 +360,8 @@ TAO_Transport::generate_request_header (
if (TAO_debug_level > 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) - Transport[%d]::generate_request_header, ")
- ACE_TEXT ("error while marshalling the Request header\n"),
+ "(%P|%t) - Transport[%d]::generate_request_header, "
+ "error while marshalling the Request header\n",
this->id()));
}
@@ -401,7 +396,7 @@ TAO_Transport::make_idle (void)
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::make_idle\n"),
+ "TAO (%P|%t) - Transport[%d]::make_idle\n",
this->id ()));
}
@@ -425,7 +420,7 @@ TAO_Transport::handle_output (void)
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_output\n"),
+ "TAO (%P|%t) - Transport[%d]::handle_output\n",
this->id ()));
}
@@ -437,8 +432,8 @@ TAO_Transport::handle_output (void)
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_output, ")
- ACE_TEXT ("drain_queue returns %d/%d\n"),
+ "TAO (%P|%t) - Transport[%d]::handle_output, "
+ "drain_queue returns %d/%d\n",
this->id (),
retval, errno));
}
@@ -487,14 +482,21 @@ TAO_Transport::send_message_block_chain_i (const ACE_Message_Block *mb,
if (n == -1)
{
synch_message.remove_from_list (this->head_, this->tail_);
+ ACE_ASSERT (synch_message.next () == 0);
+ ACE_ASSERT (synch_message.prev () == 0);
return -1; // Error while sending...
}
else if (n == 1)
{
+ ACE_ASSERT (synch_message.all_data_sent ());
+ ACE_ASSERT (synch_message.next () == 0);
+ ACE_ASSERT (synch_message.prev () == 0);
bytes_transferred = total_length;
return 1; // Empty queue, message was sent..
}
+ ACE_ASSERT (n == 0); // Some data sent, but data remains.
+
// Remove the temporary message from the queue...
synch_message.remove_from_list (this->head_, this->tail_);
@@ -514,7 +516,7 @@ TAO_Transport::send_synchronous_message_i (const ACE_Message_Block *mb,
synch_message.push_back (this->head_, this->tail_);
- int const n =
+ int n =
this->send_synch_message_helper_i (synch_message,
max_wait_time);
@@ -523,6 +525,8 @@ TAO_Transport::send_synchronous_message_i (const ACE_Message_Block *mb,
return n;
}
+ ACE_ASSERT (n == 0);
+
// @todo: Check for timeouts!
// if (max_wait_time != 0 && errno == ETIME) return -1;
TAO_Flushing_Strategy *flushing_strategy =
@@ -583,14 +587,21 @@ TAO_Transport::send_synchronous_message_i (const ACE_Message_Block *mb,
if (TAO_debug_level > 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_synchronous_message_i, ")
- ACE_TEXT ("error while flushing message - %m\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::send_synchronous_message_i, "
+ "error while flushing message - %m\n",
+ this->id ()));
}
return -1;
}
+ else
+ {
+ ACE_ASSERT (synch_message.all_data_sent () != 0);
+ }
+
+ ACE_ASSERT (synch_message.next () == 0);
+ ACE_ASSERT (synch_message.prev () == 0);
return 1;
}
@@ -605,7 +616,7 @@ TAO_Transport::send_reply_message_i (const ACE_Message_Block *mb,
synch_message.push_back (this->head_,
this->tail_);
- int const n =
+ int n =
this->send_synch_message_helper_i (synch_message,
max_wait_time);
@@ -614,12 +625,14 @@ TAO_Transport::send_reply_message_i (const ACE_Message_Block *mb,
return n;
}
+ ACE_ASSERT (n == 0);
+
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_reply_message_i, ")
- ACE_TEXT ("preparing to add to queue before leaving \n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::send_reply_message_i, "
+ "preparing to add to queue before leaving \n",
+ this->id ()));
}
// Till this point we shouldn't have any copying and that is the
@@ -638,19 +651,7 @@ TAO_Transport::send_reply_message_i (const ACE_Message_Block *mb,
TAO_Flushing_Strategy *flushing_strategy =
this->orb_core ()->flushing_strategy ();
- int result = flushing_strategy->schedule_output (this);
-
- if (result == -1)
- {
- if (TAO_debug_level > 5)
- {
- ACE_DEBUG ((LM_DEBUG, "TAO (%P|%t) - Transport[%d]::send_reply_"
- "message_i dequeuing msg due to schedule_output "
- "failure\n", this->id ()));
- }
- msg->remove_from_list (this->head_, this->tail_);
- msg->destroy ();
- }
+ (void) flushing_strategy->schedule_output (this);
return 1;
}
@@ -665,15 +666,24 @@ TAO_Transport::send_synch_message_helper_i (TAO_Synch_Queued_Message &synch_mess
if (n == -1)
{
synch_message.remove_from_list (this->head_, this->tail_);
+ ACE_ASSERT (synch_message.next () == 0);
+ ACE_ASSERT (synch_message.prev () == 0);
return -1; // Error while sending...
}
else if (n == 1)
{
+ ACE_ASSERT (synch_message.all_data_sent ());
+ ACE_ASSERT (synch_message.next () == 0);
+ ACE_ASSERT (synch_message.prev () == 0);
return 1; // Empty queue, message was sent..
}
+ ACE_ASSERT (n == 0); // Some data sent, but data remains.
+
if (synch_message.all_data_sent ())
{
+ ACE_ASSERT (synch_message.next () == 0);
+ ACE_ASSERT (synch_message.prev () == 0);
return 1;
}
@@ -693,32 +703,11 @@ TAO_Transport::schedule_output_i (void)
ACE_Event_Handler *eh = this->event_handler_i ();
ACE_Reactor *reactor = eh->reactor ();
- // Check to see if our event handler is still registered with the
- // reactor. It's possible for another thread to have run close_connection()
- // since we last used the event handler.
- ACE_Event_Handler *found = reactor->find_handler (eh->get_handle ());
- if (found != eh)
- {
- if(TAO_debug_level > 3)
- {
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - Transport[%d]::schedule_output_i "
- "event handler not found in reactor, returning -1\n",
- this->id ()));
- }
- if (found)
- {
- found->remove_reference ();
- }
- return -1;
- }
- found->remove_reference ();
-
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::schedule_output_i\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::schedule_output_i\n",
+ this->id ()));
}
return reactor->schedule_wakeup (eh, ACE_Event_Handler::WRITE_MASK);
@@ -733,8 +722,8 @@ TAO_Transport::cancel_output_i (void)
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::cancel_output_i\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::cancel_output_i\n",
+ this->id ()));
}
return reactor->cancel_wakeup (eh, ACE_Event_Handler::WRITE_MASK);
@@ -747,9 +736,9 @@ TAO_Transport::handle_timeout (const ACE_Time_Value & /* current_time */,
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - TAO_Transport[%d]::handle_timeout, ")
- ACE_TEXT ("timer expired\n"),
- this->id ()));
+ "TAO (%P|%t) - TAO_Transport[%d]::handle_timeout, "
+ "timer expired\n",
+ this->id ()));
}
/// This is the only legal ACT in the current configuration....
@@ -776,7 +765,7 @@ int
TAO_Transport::drain_queue (void)
{
ACE_GUARD_RETURN (ACE_Lock, ace_mon, *this->handler_lock_, -1);
- int const retval = this->drain_queue_i ();
+ int retval = this->drain_queue_i ();
if (retval == 1)
{
@@ -799,7 +788,7 @@ TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[])
size_t byte_count = 0;
// ... send the message ...
- ssize_t const retval =
+ ssize_t retval =
this->send (iov, iovcnt, byte_count);
if (TAO_debug_level == 5)
@@ -819,9 +808,9 @@ TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[])
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::drain_queue_helper, ")
- ACE_TEXT ("send() returns 0\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::drain_queue_helper, "
+ "send() returns 0\n",
+ this->id ()));
}
return -1;
}
@@ -830,9 +819,9 @@ TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[])
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::drain_queue_helper, ")
- ACE_TEXT ("error during %p\n"),
- this->id (), ACE_TEXT ("send()")));
+ "TAO (%P|%t) - Transport[%d]::drain_queue_helper, "
+ "error during %p\n",
+ this->id (), ACE_TEXT ("send()")));
}
if (errno == EWOULDBLOCK || errno == EAGAIN)
@@ -845,6 +834,7 @@ TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[])
// ... start over, how do we guarantee progress? Because if
// no bytes are sent send() can only return 0 or -1
+ ACE_ASSERT (byte_count != 0);
// Total no. of bytes sent for a send call
this->sent_byte_count_ += byte_count;
@@ -852,9 +842,9 @@ TAO_Transport::drain_queue_helper (int &iovcnt, iovec iov[])
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::drain_queue_helper, ")
- ACE_TEXT ("byte_count = %d, head_is_empty = %d\n"),
- this->id(), byte_count, (this->head_ == 0)));
+ "TAO (%P|%t) - Transport[%d]::drain_queue_helper, "
+ "byte_count = %d, head_is_empty = %d\n",
+ this->id(), byte_count, (this->head_ == 0)));
}
return 1;
@@ -896,9 +886,9 @@ TAO_Transport::drain_queue_i (void)
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::drain_queue_i, ")
- ACE_TEXT ("helper retval = %d\n"),
- this->id (), retval));
+ "TAO (%P|%t) - Transport[%d]::drain_queue_i, "
+ "helper retval = %d\n",
+ this->id (), retval));
}
if (retval != 1)
@@ -921,9 +911,9 @@ TAO_Transport::drain_queue_i (void)
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::drain_queue_i, ")
- ACE_TEXT ("helper retval = %d\n"),
- this->id (), retval));
+ "TAO (%P|%t) - Transport[%d]::drain_queue_i, "
+ "helper retval = %d\n",
+ this->id (), retval));
}
if (retval != 1)
@@ -954,9 +944,9 @@ TAO_Transport::cleanup_queue_i ()
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::cleanup_queue_i, ")
- ACE_TEXT ("cleaning up complete queue\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::cleanup_queue_i, "
+ "cleaning up complete queue\n",
+ this->id ()));
}
// Cleanup all messages
@@ -967,7 +957,7 @@ TAO_Transport::cleanup_queue_i ()
// @@ This is a good point to insert a flag to indicate that a
// CloseConnection message was successfully received.
i->state_changed (TAO_LF_Event::LFS_CONNECTION_CLOSED,
- this->orb_core_->leader_follower ());
+ this->orb_core_->leader_follower ());
i->remove_from_list (this->head_, this->tail_);
@@ -985,9 +975,9 @@ TAO_Transport::cleanup_queue (size_t byte_count)
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::cleanup_queue, ")
- ACE_TEXT ("byte_count = %d\n"),
- this->id (), byte_count));
+ "TAO (%P|%t) - Transport[%d]::cleanup_queue, "
+ "byte_count = %d\n",
+ this->id (), byte_count));
}
// Update the state of the first message
@@ -996,10 +986,10 @@ TAO_Transport::cleanup_queue (size_t byte_count)
if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::cleanup_queue, ")
- ACE_TEXT ("after transfer, bc = %d, all_sent = %d, ml = %d\n"),
- this->id (), byte_count, i->all_data_sent (),
- i->message_length ()));
+ "TAO (%P|%t) - Transport[%d]::cleanup_queue, "
+ "after transfer, bc = %d, all_sent = %d, ml = %d\n",
+ this->id (), byte_count, i->all_data_sent (),
+ i->message_length ()));
}
// ... if all the data was sent the message must be removed from
@@ -1068,9 +1058,9 @@ TAO_Transport::report_invalid_event_handler (const char *caller)
if (TAO_debug_level > 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::report_invalid_event_handler")
- ACE_TEXT ("(%s) no longer associated with handler [tag=%d]\n"),
- this->id (), ACE_TEXT_CHAR_TO_TCHAR (caller), this->tag_));
+ "TAO (%P|%t) - Transport[%d]::report_invalid_event_handler"
+ "(%s) no longer associated with handler [tag=%d]\n",
+ this->id (), ACE_TEXT_TO_TCHAR_IN (caller), this->tag_));
}
}
@@ -1124,7 +1114,7 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
{
// Let's figure out if the message should be queued without trying
// to send first:
- bool try_sending_first = true;
+ bool try_sending_first = 1;
const bool queue_empty = (this->head_ == 0);
@@ -1148,9 +1138,9 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, ")
- ACE_TEXT ("trying to send the message (ml = %d)\n"),
- this->id (), total_length));
+ "TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, "
+ "trying to send the message (ml = %d)\n",
+ this->id (), total_length));
}
// @@ I don't think we want to hold the mutex here, however if
@@ -1172,10 +1162,10 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
if (TAO_debug_level > 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, ")
- ACE_TEXT ("fatal error in ")
- ACE_TEXT ("send_message_block_chain_i - %m\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, "
+ "fatal error in "
+ "send_message_block_chain_i - %m\n",
+ this->id ()));
}
return -1;
}
@@ -1195,9 +1185,9 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, ")
- ACE_TEXT ("partial send %d / %d bytes\n"),
- this->id (), byte_count, total_length));
+ "TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, "
+ "partial send %d / %d bytes\n",
+ this->id (), byte_count, total_length));
}
// ... part of the data was sent, need to figure out what piece
@@ -1209,6 +1199,7 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
// ... at least some portion of the message block chain should
// remain ...
+ ACE_ASSERT (message_block != 0);
}
// ... either the message must be queued or we need to queue it
@@ -1217,18 +1208,18 @@ TAO_Transport::send_asynchronous_message_i (TAO_Stub *stub,
if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, ")
- ACE_TEXT ("message is queued\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, "
+ "message is queued\n",
+ this->id ()));
}
if (this->queue_message_i(message_block) == -1)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, ")
- ACE_TEXT ("cannot queue message for ")
- ACE_TEXT (" - %m\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::send_asynchronous_message_i, "
+ "cannot queue message for "
+ " - %m\n",
+ this->id ()));
return -1;
}
@@ -1287,13 +1278,13 @@ TAO_Transport::queue_message_i(const ACE_Message_Block *message_block)
int
TAO_Transport::handle_input (TAO_Resume_Handle &rh,
ACE_Time_Value * max_wait_time,
- int /* block */ /* deprecated parameter */ )
+ int /*block*/)
{
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::handle_input\n",
+ this->id ()));
}
// First try to process messages of the head of the incoming queue.
@@ -1306,768 +1297,853 @@ TAO_Transport::handle_input (TAO_Resume_Handle &rh,
if (TAO_debug_level > 2)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input, ")
- ACE_TEXT ("error while parsing the head of the queue\n"),
- this->id()));
-
+ "TAO (%P|%t) - Transport[%d]::handle_input, "
+ "error while parsing the head of the queue\n",
+ this->id()));
}
- return -1;
}
- else
- {
- // retval == 0
- // Processed a message in queue successfully. This
- // thread must return to thread-pool now.
- return 0;
- }
+ return retval;
}
- TAO_Queued_Data *q_data = 0;
+ // If there are no messages then we can go ahead to read from the
+ // handle for further reading..
+
+ // The buffer on the stack which will be used to hold the input
+ // messages
+ char buf [TAO_MAXBUFSIZE];
+
+#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
+ (void) ACE_OS::memset (buf,
+ '\0',
+ sizeof buf);
+#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */
+
+ // Create a data block
+ ACE_Data_Block db (sizeof (buf),
+ ACE_Message_Block::MB_DATA,
+ buf,
+ this->orb_core_->input_cdr_buffer_allocator (),
+ this->orb_core_->locking_strategy (),
+ ACE_Message_Block::DONT_DELETE,
+ this->orb_core_->input_cdr_dblock_allocator ());
+
+ // Create a message block
+ ACE_Message_Block message_block (&db,
+ ACE_Message_Block::DONT_DELETE,
+ this->orb_core_->input_cdr_msgblock_allocator ());
- if (this->incoming_message_stack_.top (q_data) != -1
- && q_data->missing_data_ != TAO_MISSING_DATA_UNDEFINED)
+
+ // Align the message block
+ ACE_CDR::mb_align (&message_block);
+
+ size_t recv_size = 0;
+
+ if (this->orb_core_->orb_params ()->single_read_optimization ())
{
- /* PRE: q_data->missing_data_ > 0 as all QD on stack must be incomplete */
- if (this->handle_input_missing_data (rh, max_wait_time, q_data) == -1)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input, ")
- ACE_TEXT ("error consolidating incoming message\n"),
- this->id ()));
- }
- return -1;
- }
+ recv_size =
+ message_block.space ();
}
else
{
- if (this->handle_input_parse_data (rh, max_wait_time) == -1)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input, ")
- ACE_TEXT ("error parsing incoming message\n"),
- this->id ()));
- }
- return -1;
- }
+ recv_size =
+ this->messaging_object ()->header_length ();
}
- return 0;
-}
-
-int
-TAO_Transport::consolidate_process_message (TAO_Queued_Data *q_data,
- TAO_Resume_Handle &rh)
-{
- // paranoid check
- if (q_data->missing_data_ != 0)
+ // If we have a partial message, copy it into our message block
+ // and clear out the partial message.
+ if (this->partial_message_ != 0 && this->partial_message_->length () != 0)
{
- if (TAO_debug_level > 0)
+ if (message_block.copy (this->partial_message_->rd_ptr (),
+ this->partial_message_->length ()) == 0)
{
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::consolidate_process_message, ")
- ACE_TEXT ("missing data\n"),
- this->id ()));
+ recv_size -= this->partial_message_->length ();
+ this->partial_message_->reset ();
}
- return -1;
- }
-
- if (q_data->more_fragments_ ||
- q_data->msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT)
- {
- // consolidate message on top of stack, only for fragmented messages
- TAO_Queued_Data *new_q_data = 0;
-
- switch (this->messaging_object()->consolidate_fragmented_message (q_data, new_q_data))
+ else
{
- case -1: // error
- return -1;
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "TAO (%P|%t) - Transport[%d]::handle_input, "
+ "unable to copy the partial message\n",
+ this->id ()),
+ -1);
+ }
+ }
- case 0: // returning consolidated message in q_data
- if (!new_q_data)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::consolidate_process_message, ")
- ACE_TEXT ("error, consolidated message is NULL\n"),
- this->id ()));
- }
- return -1;
- }
+ // Saving the size of the received buffer in case any one needs to
+ // get the size of the message thats received in the
+ // context. Obviously the value will be changed for each recv call
+ // and the user is supposed to invoke the accessor only in the
+ // invocation context to get meaningful information.
+ this->recv_buffer_size_ = recv_size;
+ // Read the message into the message block that we have created on
+ // the stack.
+ ssize_t n = this->recv (message_block.wr_ptr (),
+ recv_size,
+ max_wait_time);
- if (this->process_parsed_messages (new_q_data, rh) == -1)
- {
- TAO_Queued_Data::release (new_q_data);
+ // If there is an error return to the reactor..
+ if (n <= 0)
+ {
+ return n;
+ }
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::consolidate_process_message, ")
- ACE_TEXT ("error processing consolidated message\n"),
- this->id ()));
- }
- return -1;
- }
+ if (TAO_debug_level > 2)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::handle_input, "
+ "read %d bytes\n",
+ this->id (), n));
+ }
- TAO_Queued_Data::release (new_q_data);
+ // Set the write pointer in the stack buffer
+ message_block.wr_ptr (n);
- break;
+ // Parse the message and try consolidating the message if
+ // needed.
+ retval = this->parse_consolidate_messages (message_block,
+ rh,
+ max_wait_time);
- case 1: // fragment has been stored in messaging_oject()
- break;
+ if (retval <= 0)
+ {
+ if (retval == -1 && TAO_debug_level > 0)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::handle_input, "
+ "error while parsing and consolidating\n",
+ this->id ()));
}
+ return retval;
}
- else
+
+ if (message_block.length () > 0)
{
- if (this->process_parsed_messages (q_data, rh) == -1)
+ // Make a node of the message block..
+ TAO_Queued_Data qd (&message_block,
+ this->orb_core_->transport_message_buffer_allocator ());
+
+ // Extract the data for the node..
+ this->messaging_object ()->get_message_data (&qd);
+
+ // Check whether the message was fragmented..
+ if (qd.more_fragments_ ||
+ (qd.msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT))
{
- TAO_Queued_Data::release (q_data);
+ // Duplicate the node that we have as the node is on stack..
+ TAO_Queued_Data *nqd =
+ TAO_Queued_Data::duplicate (qd);
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::consolidate_process_message, ")
- ACE_TEXT ("error processing message\n"),
- this->id ()));
- }
- return -1;
+ return this->consolidate_fragments (nqd, rh);
}
- TAO_Queued_Data::release (q_data);
-
+ // Process the message
+ return this->process_parsed_messages (&qd,
+ rh);
}
return 0;
}
int
-TAO_Transport::consolidate_enqueue_message (TAO_Queued_Data *q_data)
+TAO_Transport::parse_consolidate_messages (ACE_Message_Block &block,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time)
{
- // consolidate message on top of stack, only for fragmented messages
-
- // paranoid check
- if (q_data->missing_data_ != 0)
+ // Parse the incoming message for validity. The check needs to be
+ // performed by the messaging objects.
+ switch (this->parse_incoming_messages (block))
{
- return -1;
- }
+ // An error has occurred during message parsing
+ case -1:
+ return -1;
- if (q_data->more_fragments_ ||
- q_data->msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT)
- {
- TAO_Queued_Data *new_q_data = 0;
+ // This message block does not contain enough data to
+ // parse the header. We do not need to grow the partial
+ // message block since we are guaranteed that it can hold
+ // at least a GIOP header plus a GIOP fragment header.
+ case 1:
+ if (this->partial_message_ == 0)
+ {
+ this->allocate_partial_message_block ();
+ }
- switch (this->messaging_object()->consolidate_fragmented_message (q_data, new_q_data))
+ if (this->partial_message_ != 0 &&
+ this->partial_message_->copy (block.rd_ptr (),
+ block.length ()) == 0)
{
- case -1: // error
- return -1;
+ block.rd_ptr (block.length ());
+ return 0;
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "TAO (%P|%t) - Transport[%d]::parse_consolidate_messages, "
+ "unable to save the partial message\n",
+ this->id ()),
+ -1);
+ }
- case 0: // returning consolidated message in new_q_data
- if (!new_q_data)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::consolidate_enqueue_message, ")
- ACE_TEXT ("error, consolidated message is NULL\n"),
- this->id ()));
- }
- return -1;
- }
+ case 0: // The normal case
+ break;
- if (this->incoming_message_queue_.enqueue_tail (new_q_data) != 0)
- {
- TAO_Queued_Data::release (new_q_data);
- return -1;
- }
- break;
+ default:
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "TAO (%P|%t) - Transport[%d]::parse_consolidate_messages, "
+ "impossible return value from parse_incoming_messages\n",
+ this->id ()),
+ -1);
+ }
- case 1: // fragment has been stored in messaging_oject()
- break;
- }
+ // Check whether we have a complete message for processing
+ const ssize_t missing_data = this->missing_data (block);
+
+ if (missing_data < 0)
+ {
+ // If we have more than one message
+ return this->consolidate_extra_messages (block,
+ rh);
}
- else
+ else if (missing_data > 0)
{
- if (this->incoming_message_queue_.enqueue_tail (q_data) != 0)
- {
- TAO_Queued_Data::release (q_data);
- return -1;
- }
+ // If we have missing data then try doing a read or try queueing
+ // them.
+ return this->consolidate_message (block,
+ missing_data,
+ rh,
+ max_wait_time);
}
- return 0; // success
+ return 1;
}
int
-TAO_Transport::handle_input_missing_data (TAO_Resume_Handle &rh,
- ACE_Time_Value * max_wait_time,
- TAO_Queued_Data *q_data)
+TAO_Transport::parse_incoming_messages (ACE_Message_Block &block)
{
- // paranoid check
- if (q_data == 0)
- {
- return -1;
- }
+ // If we have a queue and if the last message is not complete a
+ // complete one, then this read will get us the remaining data. So
+ // do not try to parse the header if we have an incomplete message
+ // in the queue.
+ if (this->incoming_message_queue_.is_tail_complete () != 0)
+ {
+ // As it looks like a new message has been read, process the
+ // message. Call the messaging object to do the parsing..
+ int retval =
+ this->messaging_object ()->parse_incoming_messages (block);
+
+ if (retval == -1 && TAO_debug_level > 2)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::parse_incoming_messages, "
+ "error in incoming message\n",
+ this->id ()));
+ }
- if (TAO_debug_level > 3)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_missing_data_message, ")
- ACE_TEXT ("enter (missing data == %d)\n"),
- this->id (), q_data->missing_data_));
+ return retval;
}
- const size_t recv_size = q_data->missing_data_;
+ return 0;
+}
- // make sure the message_block has enough space
- const size_t message_size = recv_size
- + q_data->msg_block_->length();
- if (q_data->msg_block_->space() < recv_size)
+ssize_t
+TAO_Transport::missing_data (ACE_Message_Block &incoming)
+{
+ // If we have a incomplete message in the queue then find out how
+ // much of data is required to get a complete message.
+ if (this->incoming_message_queue_.is_tail_complete () == 0)
{
- if (ACE_CDR::grow (q_data->msg_block_, message_size) == -1)
- {
- return -1;
- }
+ return this->incoming_message_queue_.missing_data_tail ();
}
- // Saving the size of the received buffer in case any one needs to
- // get the size of the message thats received in the
- // context. Obviously the value will be changed for each recv call
- // and the user is supposed to invoke the accessor only in the
- // invocation context to get meaningful information.
- this->recv_buffer_size_ = recv_size;
-
- // Read the message into the existing message block on heap
- const ssize_t n = this->recv (q_data->msg_block_->wr_ptr(),
- recv_size,
- max_wait_time);
+ return this->messaging_object ()->missing_data (incoming);
+}
- if (n <= 0)
+int
+TAO_Transport::consolidate_message (ACE_Message_Block &incoming,
+ ssize_t missing_data,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time)
+{
+ // Check whether the last message in the queue is complete..
+ if (this->incoming_message_queue_.is_tail_complete () == 0)
{
- return n;
+ return this->consolidate_message_queue (incoming,
+ missing_data,
+ rh,
+ max_wait_time);
}
- if (TAO_debug_level > 3)
+ if (TAO_debug_level > 4)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_missing_data_message, ")
- ACE_TEXT ("read bytes %d\n"),
- this->id (), n));
+ "TAO (%P|%t) - Transport[%d]::consolidate_message\n",
+ this->id ()));
}
- q_data->msg_block_->wr_ptr(n);
- q_data->missing_data_ -= n;
+ // Calculate the actual length of the load that we are supposed to
+ // read which is equal to the <missing_data> + length of the buffer
+ // that we have..
+ const size_t payload = missing_data + incoming.size ();
+
+ // Grow the buffer to the size of the message
+ ACE_CDR::grow (&incoming,
+ payload);
- if (q_data->missing_data_ == 0)
+ ssize_t n = 0;
+
+ // As this used for transports where things are available in one
+ // shot this looping should not create any problems.
+ for (ssize_t bytes = missing_data; bytes != 0; bytes -= n)
{
- // paranoid check
- if (this->incoming_message_stack_.pop (q_data) == -1)
+ // .. do a read on the socket again.
+ n = this->recv (incoming.wr_ptr (),
+ bytes,
+ max_wait_time);
+
+ if (TAO_debug_level > 6)
{
- return -1;
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message, "
+ "read %d bytes on attempt\n",
+ this->id(), n));
}
- if (this->consolidate_process_message (q_data, rh) == -1)
+ if (n == 0 || n == -1)
{
- return -1;
+ break;
}
- }
-
- return 0;
-}
-
-int
-TAO_Transport::handle_input_parse_extra_messages (ACE_Message_Block &message_block)
-{
-
- // store buffer status of last extraction: -1 parse error, 0
- // incomplete message header in buffer, 1 complete messages header
- // parsed
- int buf_status = 0;
-
- TAO_Queued_Data *q_data = 0; // init
+ incoming.wr_ptr (n);
+ missing_data -= n;
+ }
- // parse buffer until all messages have been extracted, consolidate
- // and enqueue complete messages, if the last message being parsed
- // has missin data, it is stays on top of incoming_message_stack.
- while (message_block.length () > 0 &&
- (buf_status = this->messaging_object ()->extract_next_message
- (message_block, q_data)) != -1 &&
- q_data != 0) // paranoid check
+ // If we got an error..
+ if (n == -1)
{
- if (q_data->missing_data_ == 0)
- {
- if (this->consolidate_enqueue_message (q_data) == -1)
- {
- return -1;
- }
- }
- else // incomplete message read, probably the last message in buffer
+ if (TAO_debug_level > 4)
{
- // can not fail
- this->incoming_message_stack_.push (q_data);
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message, "
+ "error while trying to consolidate\n",
+ this->id ()));
}
- q_data = 0; // reset
- } // while
-
- if (buf_status == -1)
- {
return -1;
}
- return 0;
-}
-
-int
-TAO_Transport::handle_input_parse_data (TAO_Resume_Handle &rh,
- ACE_Time_Value * max_wait_time)
-{
+ // If we had gotten a EWOULDBLOCK n would be equal to zero. But we
+ // have to put the message in the queue anyway. So let us proceed
+ // to do that and return...
- if (TAO_debug_level > 3)
+ // Check to see if we have messages in queue or if we have missing
+ // data . AT this point we cannot have have semi-complete messages
+ // in the queue as they would have been taken care before. Put
+ // ourselves in the queue and then try processing one of the
+ // messages..
+ if (missing_data >= 0 ||
+ this->incoming_message_queue_.queue_length () != 0)
{
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_parse_data, ")
- ACE_TEXT ("enter\n"),
- this->id ()));
- }
+ if (missing_data == 0 ||
+ !this->incoming_message_queue_.is_tail_fragmented ())
+ {
+ if (TAO_debug_level > 4)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message, "
+ "queueing up the message\n",
+ this->id ()));
+ }
+ // Get a queued data
+ TAO_Queued_Data *qd =
+ this->make_queued_data (incoming);
- // The buffer on the stack which will be used to hold the input
- // messages, ACE_CDR::MAX_ALIGNMENT compensates the
- // memory-alignment. This improves performance with SUN-Java-ORB-1.4
- // and higher that sends fragmented requests of size 1024 bytes.
- char buf [TAO_MAXBUFSIZE + ACE_CDR::MAX_ALIGNMENT];
+ // Add the missing data to the queue
+ qd->missing_data_ = missing_data;
-#if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE)
- (void) ACE_OS::memset (buf,
- '\0',
- sizeof buf);
-#endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */
-
- // Create a data block
- ACE_Data_Block db (sizeof (buf),
- ACE_Message_Block::MB_DATA,
- buf,
- this->orb_core_->input_cdr_buffer_allocator (),
- this->orb_core_->locking_strategy (),
- ACE_Message_Block::DONT_DELETE,
- this->orb_core_->input_cdr_dblock_allocator ());
-
- // Create a message block
- ACE_Message_Block message_block (&db,
- ACE_Message_Block::DONT_DELETE,
- this->orb_core_->input_cdr_msgblock_allocator ());
+ // Get the rest of the messaging data
+ this->messaging_object ()->get_message_data (qd);
+ // If this is a full GIOP fragment, then we need only
+ // to consolidate the fragments
+ if (missing_data == 0 &&
+ (qd->more_fragments_ ||
+ qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT))
+ {
+ this->consolidate_fragments (qd, rh);
+ }
+ else
+ {
+ // Add it to the tail of the queue..
+ this->incoming_message_queue_.enqueue_tail (qd);
- // Align the message block
- ACE_CDR::mb_align (&message_block);
+ if (this->incoming_message_queue_.is_head_complete ())
+ {
+ return this->process_queue_head (rh);
+ }
+ }
+ }
+ else
+ {
+ // This block of code will only come into play when GIOP
+ // message fragmentation is employed. If we have a fragment
+ // in the message queue, we can only chain message blocks
+ // onto the TAO_Queued_Data for that fragment. Unless we have
+ // a full GIOP fragment, and since we know we're missing data,
+ // we need to save what we have until we can read in some more of
+ // the fragment until we get it all. This bit of data could be
+ // larger than what the partial message block can hold, so we may
+ // need to grow the partial message block.
+ if (this->partial_message_ == 0)
+ {
+ this->allocate_partial_message_block ();
+ }
- size_t recv_size = 0; // Note: unsigned integer
+ if (this->partial_message_ != 0)
+ {
+ const size_t incoming_length = incoming.length ();
+ ACE_CDR::grow (this->partial_message_,
+ incoming_length);
+ if (this->partial_message_->copy (incoming.rd_ptr (),
+ incoming_length) == 0)
+ {
+ incoming.rd_ptr (incoming_length);
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message, "
+ "unable to save the partial message\n",
+ this->id ()),
+ -1);
+ }
+ }
+ else
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message, "
+ "unable to allocate the partial message\n",
+ this->id ()),
+ -1);
+ }
+ }
- // Pointer to newly parsed message
- TAO_Queued_Data *q_data = 0;
+ return 0;
+ }
- // optimizing access of constants
- const size_t header_length =
- this->messaging_object ()->header_length ();
+ // We don't have any missing data. Just make a queued_data node with
+ // the existing message block and send it to the higher layers of
+ // the ORB.
+ TAO_Queued_Data pqd (&incoming,
+ this->orb_core_->transport_message_buffer_allocator ());
+ pqd.missing_data_ = missing_data;
+ this->messaging_object ()->get_message_data (&pqd);
- // paranoid check
- if (header_length > message_block.space ())
+ // Check whether the message was fragmented and try to consolidate
+ // the fragments..
+ if (pqd.more_fragments_ ||
+ (pqd.msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT))
{
- return -1;
- }
+ // Duplicate the queued data as it is on stack..
+ TAO_Queued_Data *nqd = TAO_Queued_Data::duplicate (pqd);
- if (this->orb_core_->orb_params ()->single_read_optimization ())
- {
- recv_size =
- message_block.space ();
+ return this->consolidate_fragments (nqd, rh);
}
- else
+
+ // Now we have a full message in our buffer. Just go ahead and
+ // process that
+ return this->process_parsed_messages (&pqd,
+ rh);
+}
+
+int
+TAO_Transport::consolidate_fragments (TAO_Queued_Data *queueable_message,
+ TAO_Resume_Handle &rh)
+{
+ // Get the version numbers
+ CORBA::Octet major = queueable_message->major_version_;
+ CORBA::Octet minor = queueable_message->minor_version_;
+ CORBA::UShort whole = major << 8 | minor;
+
+ switch(whole)
{
- // Single read optimization has been de-activated. That means
- // that we need to read from transport the GIOP header first
- // before the payload. This codes first checks the incoming
- // stack for partial messages which needs to be
- // consolidated. Otherwise we are in new cycle, reading complete
- // GIOP header of new incoming message.
- if (this->incoming_message_stack_.top (q_data) != -1
- && q_data->missing_data_ == TAO_MISSING_DATA_UNDEFINED)
+ case 0x0100:
+ if (!queueable_message->more_fragments_)
{
- // There is a partial message on incoming_message_stack_
- // whose length is unknown so far. We need to consolidate
- // the GIOP header to get to know the payload size,
- recv_size = header_length - q_data->msg_block_->length ();
+ this->incoming_message_queue_.enqueue_tail (queueable_message);
}
else
{
- // Read amount of data forming GIOP header of new incoming
- // message.
- recv_size = header_length;
+ // Fragments aren't supported in 1.0. This is an error and
+ // we should reject it somehow. What do we do here? Do we throw
+ // an exception to the receiving side? Do we throw an exception
+ // to the sending side?
+ //
+ // At the very least, we need to log the fact that we received
+ // nonsense.
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT("TAO (%P|%t) - ")
+ ACE_TEXT("TAO_Transport::enqueue_incoming_message ")
+ ACE_TEXT("detected a fragmented GIOP 1.0 message\n")),
+ -1);
}
- // POST: 0 <= recv_size <= header_length
+ break;
+ case 0x0101:
+ {
+ // One note is that TAO_Queued_Data contains version numbers,
+ // but doesn't indicate the actual protocol to which those
+ // version numbers refer. That's not a problem, though, because
+ // instances of TAO_Queued_Data live in a queue, and that queue
+ // lives in a particular instance of a Transport, and the
+ // transport instance has an association with a particular
+ // messaging_object. The concrete messaging object embodies a
+ // messaging protocol, and must cover all versions of that
+ // protocol. Therefore, we just need to cover the bases of all
+ // versions of that one protocol.
+
+ // In 1.1, fragments kinda suck because they don't have they're
+ // own message-specific header. Therefore, we have to find the
+ // fragment based on the major and minor version.
+ TAO_Queued_Data* fragment_message_chain =
+ this->incoming_message_queue_.find_fragment_chain (major, minor);
+
+ // Deal with the fragment and the queueable message
+ this->process_fragment (fragment_message_chain,
+ queueable_message,
+ major, minor, rh);
+ break;
+ }
+ case 0x0102:
+ {
+ // In 1.2, we get a little more context. There's a
+ // FRAGMENT message-specific header, and inside that is the
+ // request id with which the fragment is associated.
+ TAO_Queued_Data* fragment_message_chain =
+ this->incoming_message_queue_.find_fragment_chain (
+ queueable_message->request_id_);
+
+ // Deal with the fragment and the queueable message
+ this->process_fragment (fragment_message_chain,
+ queueable_message,
+ major, minor, rh);
+ break;
+ }
+ default:
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT("TAO (%P|%t) - ")
+ ACE_TEXT("TAO_Transport::consolidate_fragments ")
+ ACE_TEXT("can not handle a GIOP %d.%d ")
+ ACE_TEXT("message\n"), major, minor));
+ ACE_HEX_DUMP ((LM_DEBUG,
+ queueable_message->msg_block_->rd_ptr (),
+ queueable_message->msg_block_->length ()));
+ return -1;
}
- // POST: 0 <= recv_size <= message_block->space ()
- // If we have a partial message, copy it into our message block and
- // clear out the partial message.
- if (this->partial_message_ != 0 && this->partial_message_->length () > 0)
+ return 0;
+}
+
+void
+TAO_Transport::process_fragment (TAO_Queued_Data* fragment_message_chain,
+ TAO_Queued_Data* queueable_message,
+ CORBA::Octet major,
+ CORBA::Octet minor,
+ TAO_Resume_Handle &rh)
+{
+ // No fragment was found
+ if (fragment_message_chain == 0)
{
- // (*) Copy back the partial message into current read-buffer,
- // verify that the read-strategy of "recv_size" bytes is not
- // exceeded. The latter check guarantees that recv_size does not
- // roll-over and keeps in range
- // 0<=recv_size<=message_block->space()
- if (this->partial_message_->length () <= recv_size &&
- message_block.copy (this->partial_message_->rd_ptr (),
- this->partial_message_->length ()) == 0)
+ this->incoming_message_queue_.enqueue_tail (queueable_message);
+ }
+ else
+ {
+ if (fragment_message_chain->major_version_ != major ||
+ fragment_message_chain->minor_version_ != minor)
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT("TAO (%P|%t) - ")
+ ACE_TEXT("TAO_Transport::process_fragment ")
+ ACE_TEXT("GIOP versions do not match ")
+ ACE_TEXT("(%d.%d != %d.%d\n"),
+ fragment_message_chain->major_version_,
+ fragment_message_chain->minor_version_,
+ major, minor));
+
+ // Find the last message block in the continuation
+ ACE_Message_Block* mb = fragment_message_chain->msg_block_;
+ while (mb->cont () != 0)
+ mb = mb->cont ();
+
+ // Add the current message block to the end of the chain
+ // after adjusting the read pointer to skip the header(s)
+ const size_t header_adjustment =
+ this->messaging_object ()->header_length () +
+ this->messaging_object ()->fragment_header_length (major, minor);
+ queueable_message->msg_block_->rd_ptr(header_adjustment);
+ mb->cont (queueable_message->msg_block_);
+
+ // Remove our reference to the message block. At this point
+ // the message block of the fragment head owns it as part of a
+ // chain
+ queueable_message->msg_block_ = 0;
+
+ if (!queueable_message->more_fragments_)
{
+ // This is the end of the fragments for this request
+ fragment_message_chain->consolidate ();
- recv_size -= this->partial_message_->length ();
- this->partial_message_->reset ();
- }
- else
- {
- return -1;
+ // Process the queue head to make sure that the newly
+ // consolidated fragments get handled
+ this->process_queue_head (rh);
}
+
+ // Get rid of the queuable message
+ TAO_Queued_Data::release (queueable_message);
}
- // POST: 0 <= recv_size <= buffer_space
+}
- if (0 >= recv_size) // paranoid: the check above (*) guarantees recv_size>=0
+int
+TAO_Transport::consolidate_message_queue (ACE_Message_Block &incoming,
+ ssize_t missing_data,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time)
+{
+ if (TAO_debug_level > 4)
{
- // This event would cause endless looping, trying frequently to
- // read zero bytes from stream. This might happen, if TAOs
- // protocol implementation is not correct and tries to read data
- // beyond header without "single_read_optimazation" being
- // activated.
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_parse_data, ")
- ACE_TEXT ("Error - endless loop detection, closing connection"),
- this->id ()));
- }
- return -1;
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message_queue\n",
+ this->id ()));
}
- // Saving the size of the received buffer in case any one needs to
- // get the size of the message thats received in the
- // context. Obviously the value will be changed for each recv call
- // and the user is supposed to invoke the accessor only in the
- // invocation context to get meaningful information.
- this->recv_buffer_size_ = recv_size;
-
- // Read the message into the message block that we have created on
- // the stack.
- const ssize_t n = this->recv (message_block.wr_ptr (),
- recv_size,
- max_wait_time);
+ // If the queue did not have a complete message put this piece of
+ // message in the queue. We know it did not have a complete
+ // message. That is why we are here.
+ const size_t n =
+ this->incoming_message_queue_.copy_tail (incoming);
- // If there is an error return to the reactor..
- if (n <= 0)
+ if (TAO_debug_level > 6)
{
- return n;
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message_queue, "
+ "copied [%d] bytes to the tail\n",
+ this->id (),
+ n));
}
- if (TAO_debug_level > 3)
+ // Update the missing data...
+ missing_data =
+ this->incoming_message_queue_.missing_data_tail ();
+
+ if (TAO_debug_level > 6)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_parse_data, ")
- ACE_TEXT ("read %d bytes\n"),
- this->id (), n));
+ "TAO (%P|%t) - Transport[%d]::consolidate_message_queue, "
+ "missing [%d] bytes in the tail message\n",
+ this->id (),
+ missing_data));
}
- // Set the write pointer in the stack buffer
- message_block.wr_ptr (n);
-
- //
- // STACK PROCESSING OR MESSAGE CONSOLIDATION
- //
-
- // PRE: data in buffer is aligned && message_block.length() > 0
+ // Move the read pointer of the <incoming> message block to the end
+ // of the copied message and process the remaining portion...
+ incoming.rd_ptr (n);
- if (this->incoming_message_stack_.top (q_data) != -1
- && q_data->missing_data_ == TAO_MISSING_DATA_UNDEFINED)
+ // If we have some more information left in the message block..
+ if (incoming.length ())
{
- //
- // MESSAGE CONSOLIDATION
- //
+ // We may have to parse & consolidate. This part of the message
+ // doesn't seem to be part of the last message in the queue (as
+ // the copy () hasn't taken away this message).
+ const int retval = this->parse_consolidate_messages (incoming,
+ rh,
+ max_wait_time);
- // Partial message on incoming_message_stack_ needs to be
- // consolidated. The message header could not be parsed so far
- // and therefor the message size is unknown yet. Consolidating
- // the message destroys the memory alignment of succeeding
- // messages sharing the buffer, for that reason consolidation
- // and stack based processing are mutial exclusive.
- if (this->messaging_object ()->consolidate_node (q_data,
- message_block) == -1)
+ // If there is an error return
+ if (retval == -1)
{
- if (TAO_debug_level > 0)
+ if (TAO_debug_level)
{
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_parse_data, ")
- ACE_TEXT ("error consolidating message from input buffer\n"),
- this->id () ));
- }
- return -1;
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message_queue, "
+ "error while consolidating, part of the read message\n",
+ this->id ()));
+ }
+ return retval;
}
-
- // Complete message are to be enqueued and later processed
- if (q_data->missing_data_ == 0)
+ else if (retval == 1)
{
- if (this->incoming_message_stack_.pop (q_data) == -1)
- {
- return -1;
- }
+ // If the message in the <incoming> message block has only
+ // one message left we need to process that seperately.
+
+ // Get a queued data
+ TAO_Queued_Data *qd = this->make_queued_data (incoming);
+
+ // Get the rest of the message data
+ this->messaging_object ()->get_message_data (qd);
- if (this->consolidate_enqueue_message (q_data) == -1)
+ // Add the missing data to the queue
+ qd->missing_data_ = 0;
+
+ // Check whether the message was fragmented and try to consolidate
+ // the fragments..
+ if (qd->more_fragments_
+ || (qd->msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT))
{
- return -1;
+ return this->consolidate_fragments (qd, rh);
}
- }
- if (message_block.length () > 0
- && this->handle_input_parse_extra_messages (message_block) == -1)
- {
- return -1;
- }
+ // Add it to the tail of the queue..
+ this->incoming_message_queue_.enqueue_tail (qd);
- // In any case try to process the enqueued messages
- if (this->process_queue_head (rh) == -1)
- {
- return -1;
+ // We should surely have a message in queue now. So just
+ // process that.
+ return this->process_queue_head (rh);
}
- }
- else
- {
- //
- // STACK PROCESSING (critical path)
- //
- // Process the first message in buffer on stack
+ // parse_consolidate_messages () would have processed one of the
+ // messages, so we better return as we dont want to starve other
+ // threads.
+ return 0;
+ }
- // (PRE: first message resides in aligned memory) Make a node of
- // the message-block..
+ // If we still have some missing data..
+ if (missing_data > 0)
+ {
+ // Get the last message from the Queue
+ TAO_Queued_Data *qd =
+ this->incoming_message_queue_.dequeue_tail ();
- TAO_Queued_Data qd (&message_block,
- this->orb_core_->transport_message_buffer_allocator ());
+ if (TAO_debug_level > 5)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message_queue, "
+ "trying recv, again\n",
+ this->id ()));
+ }
- size_t mesg_length = 0;
+ // Try to do a read again. If we have some luck it would be
+ // great..
+ const ssize_t n = this->recv (qd->msg_block_->wr_ptr (),
+ missing_data,
+ max_wait_time);
- if (this->messaging_object ()->parse_next_message (message_block,
- qd,
- mesg_length) == -1
- || (qd.missing_data_ == 0
- && mesg_length > message_block.length ()) )
+ if (TAO_debug_level > 5)
{
- // extracting message failed
- return -1;
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_message_queue, "
+ "recv retval [%d]\n",
+ this->id (),
+ n));
}
- // POST: qd.missing_data_ == 0 --> mesg_length <= message_block.length()
- // This prevents seeking rd_ptr behind the wr_ptr
- if (qd.missing_data_ != 0 ||
- qd.more_fragments_ ||
- qd.msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT)
+ // Error...
+ if (n < 0)
{
- if (qd.missing_data_ == 0)
- {
- // Dealing with a fragment
- TAO_Queued_Data *nqd =
- TAO_Queued_Data::duplicate (qd);
-
- if (nqd == 0)
- {
- return -1;
- }
+ return n;
+ }
- // mark the end of message in new buffer
- char* end_mark = nqd->msg_block_->rd_ptr ()
- + mesg_length;
- nqd->msg_block_->wr_ptr (end_mark);
+ // If we get a EWOULDBLOCK ie. n==0, we should anyway put the
+ // message in queue before returning..
+ // Move the write pointer
+ qd->msg_block_->wr_ptr (n);
- // move the read pointer forward in old buffer
- message_block.rd_ptr (mesg_length);
+ // Decrement the missing data
+ qd->missing_data_ -= n;
- // enqueue the message
- if (this->consolidate_enqueue_message (nqd) == -1)
- {
- return -1;
- }
+ // Now put the TAO_Queued_Data back in the queue
+ this->incoming_message_queue_.enqueue_tail (qd);
- if (message_block.length () > 0
- && this->handle_input_parse_extra_messages (message_block) == -1)
- {
- return -1;
- }
+ // Any way as we have come this far and are about to return,
+ // just try to process a message if it is there in the queue.
+ if (this->incoming_message_queue_.is_head_complete ())
+ {
+ return this->process_queue_head (rh);
+ }
- // In any case try to process the enqueued messages
- if (this->process_queue_head (rh) == -1)
- {
- return -1;
- }
- }
- else if (qd.missing_data_ != TAO_MISSING_DATA_UNDEFINED)
- {
- // Incomplete message, must be the last one in buffer
+ return 0;
+ }
- if (qd.missing_data_ != TAO_MISSING_DATA_UNDEFINED &&
- qd.missing_data_ > message_block.space ())
- {
- // Re-Allocate correct size on heap
- if (ACE_CDR::grow (qd.msg_block_,
- message_block.length ()
- + qd.missing_data_) == -1)
- {
- return -1;
- }
- }
+ // Process a message in the head of the queue if we have one..
+ return this->process_queue_head (rh);
+}
- TAO_Queued_Data *nqd =
- TAO_Queued_Data::duplicate (qd);
- if (nqd == 0)
- {
- return -1;
- }
+int
+TAO_Transport::consolidate_extra_messages (ACE_Message_Block
+ &incoming,
+ TAO_Resume_Handle &rh)
+{
+ if (TAO_debug_level > 4)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_extra_messages\n",
+ this->id ()));
+ }
- // move read-pointer to end of buffer
- message_block.rd_ptr (message_block.length());
+ // Pick the tail of the queue
+ TAO_Queued_Data *tail =
+ this->incoming_message_queue_.dequeue_tail ();
- this->incoming_message_stack_.push (nqd);
- }
- }
- else
+ if (tail)
+ {
+ // If we have a node in the tail, checek to see whether it needs
+ // consolidation. If so, just consolidate it.
+ if (this->messaging_object ()->consolidate_node (tail, incoming) == -1)
{
- //
- // critical path
- //
-
- // We cant process the message on stack right now. First we
- // have got to parse extra messages from message_block,
- // putting them into queue. When this is done we can return
- // to process this message, and notifying other threads to
- // process the messages in queue.
-
- char * end_marker = message_block.rd_ptr ()
- + mesg_length;
-
- if (message_block.length () > mesg_length)
- {
- // There are more message in data stream to be parsed.
- // Safe the rd_ptr to restore later.
- char *rd_ptr_stack_mesg = message_block.rd_ptr ();
-
- // Skip parsed message, jump to next message in buffer
- // PRE: mesg_length <= message_block.length ()
- message_block.rd_ptr (mesg_length);
+ return -1;
+ }
- // Extract remaining messages and enqueue them for later
- // heap processing
- if (this->handle_input_parse_extra_messages (message_block) == -1)
- {
- return -1;
- }
+ // .. put the tail back in queue..
+ this->incoming_message_queue_.enqueue_tail (tail);
+ }
- // correct the end_marker
- end_marker = message_block.rd_ptr ();
+ int retval = 1;
- // Restore rd_ptr
- message_block.rd_ptr (rd_ptr_stack_mesg);
- }
+ if (TAO_debug_level > 6)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Transport[%d]::consolidate_extra_messages, "
+ "extracting extra messages\n",
+ this->id ()));
+ }
- // The following if-else has been copied from
- // process_queue_head(). While process_queue_head()
- // processes message on heap, here we will process a message
- // on stack.
+ // Extract messages..
+ while (retval == 1)
+ {
+ TAO_Queued_Data *q_data = 0;
- // Now that we have one message on stack to be processed,
- // check whether we have one more message in the queue...
- if (this->incoming_message_queue_.queue_length () > 0)
+ retval =
+ this->messaging_object ()->extract_next_message (incoming,
+ q_data);
+ if (q_data)
+ {
+ // If we have read a framented message then...
+ if (q_data->more_fragments_ ||
+ q_data->msg_type_ == TAO_PLUGGABLE_MESSAGE_FRAGMENT)
{
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::handle_input_parse_data, ")
- ACE_TEXT ("notify reactor\n"),
- this->id ()));
-
- }
-
- const int retval = this->notify_reactor ();
-
- if (retval == 1)
- {
- // Let the class know that it doesn't need to resume the
- // handle..
- rh.set_flag (TAO_Resume_Handle::TAO_HANDLE_LEAVE_SUSPENDED);
- }
- else if (retval < 0)
- return -1;
+ this->consolidate_fragments (q_data, rh);
}
else
{
- // As there are no further messages in queue just resume
- // the handle. Set the flag incase someone had reset the flag..
- rh.set_flag (TAO_Resume_Handle::TAO_HANDLE_RESUMABLE);
- }
-
- // PRE: incoming_message_queue is empty
- if (this->process_parsed_messages (&qd,
- rh) == -1)
- {
- return -1;
+ this->incoming_message_queue_.enqueue_tail (q_data);
}
-
- // move the rd_ptr tp position of end_marker
- message_block.rd_ptr (end_marker);
}
}
- // Now that all cases have been processed, there might be kept some data
- // in buffer that needs to be safed for next "handle_input" invocations.
- if (message_block.length () > 0)
- {
- if (this->partial_message_ == 0)
- {
- this->allocate_partial_message_block ();
- }
-
- if (this->partial_message_ != 0 &&
- this->partial_message_->copy (message_block.rd_ptr (),
- message_block.length ()) == 0)
- {
- message_block.rd_ptr (message_block.length ());
- }
- else
- {
- return -1;
- }
- }
-
- return 0;
-}
+ // In case of error return..
+ if (retval == -1)
+ {
+ return retval;
+ }
+ return this->process_queue_head (rh);
+}
int
TAO_Transport::process_parsed_messages (TAO_Queued_Data *qd,
TAO_Resume_Handle &rh)
{
- if (TAO_debug_level > 7)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_parsed_messages, ")
- ACE_TEXT ("entering (missing data == %d)\n"),
- this->id(), qd->missing_data_));
- }
-
// Get the <message_type> that we have received
const TAO_Pluggable_Message_Type t = qd->msg_type_;
@@ -2077,9 +2153,9 @@ TAO_Transport::process_parsed_messages (TAO_Queued_Data *qd,
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_parsed_messages, ")
- ACE_TEXT ("received CloseConnection message - %m\n"),
- this->id()));
+ "TAO (%P|%t) - Transport[%d]::process_parsed_messages, "
+ "received CloseConnection message - %m\n",
+ this->id()));
// Return a "-1" so that the next stage can take care of
// closing connection and the necessary memory management.
@@ -2113,46 +2189,22 @@ TAO_Transport::process_parsed_messages (TAO_Queued_Data *qd,
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_parsed_messages, ")
- ACE_TEXT ("error in process_reply_message - %m\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::process_parsed_messages, "
+ "error in process_reply_message - %m\n",
+ this->id ()));
return -1;
}
}
- else if (t == TAO_PLUGGABLE_MESSAGE_CANCELREQUEST)
- {
- // The associated request might be incomplpete residing
- // fragmented in messaging object. We must make sure the
- // resources allocated by fragments are released.
-
- if (this->messaging_object ()->discard_fragmented_message (qd) == -1)
- {
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_parsed_messages, ")
- ACE_TEXT ("error processing CancelRequest\n"),
- this->id ()));
- }
- }
-
- // We are not able to cancel requests being processed already;
- // this is declared as optional feature by CORBA, and TAO does
- // not support this currently.
-
- // Just continue processing, CancelRequest does not mean to cut
- // off the connection.
- }
else if (t == TAO_PLUGGABLE_MESSAGE_MESSAGERROR)
{
- if (TAO_debug_level > 0)
+ if (TAO_debug_level)
{
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_parsed_messages, ")
- ACE_TEXT ("received MessageError, closing connection\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::process_parsed_messages, "
+ "received MessageError, closing connection\n",
+ this->id ()));
}
return -1;
}
@@ -2161,18 +2213,68 @@ TAO_Transport::process_parsed_messages (TAO_Queued_Data *qd,
return 0;
}
+TAO_Queued_Data *
+TAO_Transport::make_queued_data (ACE_Message_Block &incoming)
+{
+ // Get an instance of TAO_Queued_Data
+ TAO_Queued_Data *qd =
+ TAO_Queued_Data::make_queued_data (
+ this->orb_core_->transport_message_buffer_allocator ());
+
+ // Get the flag for the details of the data block...
+ ACE_Message_Block::Message_Flags flg =
+ incoming.self_flags ();
+
+ if (ACE_BIT_DISABLED (flg,
+ ACE_Message_Block::DONT_DELETE))
+ {
+ // Duplicate the data block before putting it in the queue.
+ qd->msg_block_ = ACE_Message_Block::duplicate (&incoming);
+ }
+ else
+ {
+ // As we are in CORBA mode, all the data blocks would be aligned
+ // on an 8 byte boundary. Hence create a data block for more
+ // than the actual length
+ ACE_Data_Block *db =
+ this->orb_core_->create_input_cdr_data_block (incoming.length ()+
+ ACE_CDR::MAX_ALIGNMENT);
+
+ // Get the allocator..
+ ACE_Allocator *alloc =
+ this->orb_core_->input_cdr_msgblock_allocator ();
+
+ // Make message block..
+ ACE_Message_Block mb (db,
+ 0,
+ alloc);
+
+ // Duplicate the block..
+ qd->msg_block_ = mb.duplicate ();
+
+ // Align the message block
+ ACE_CDR::mb_align (qd->msg_block_);
+
+ // Copy the data..
+ qd->msg_block_->copy (incoming.rd_ptr (),
+ incoming.length ());
+ }
+
+ return qd;
+}
+
int
TAO_Transport::process_queue_head (TAO_Resume_Handle &rh)
{
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_queue_head, %d enqueued\n"),
- this->id (), this->incoming_message_queue_.queue_length () ));
+ "TAO (%P|%t) - Transport[%d]::process_queue_head\n",
+ this->id ()));
}
- // See if message in queue ...
- if (this->incoming_message_queue_.queue_length () > 0)
+ // See if the message in the head of the queue is complete...
+ if (this->incoming_message_queue_.is_head_complete () > 0)
{
// Get the message on the head of the queue..
TAO_Queued_Data *qd =
@@ -2181,21 +2283,21 @@ TAO_Transport::process_queue_head (TAO_Resume_Handle &rh)
if (TAO_debug_level > 3)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_queue_head, ")
- ACE_TEXT ("the size of the queue is [%d]\n"),
- this->id (),
- this->incoming_message_queue_.queue_length()));
+ "TAO (%P|%t) - Transport[%d]::process_queue_head, "
+ "the size of the queue is [%d]\n",
+ this->id (),
+ this->incoming_message_queue_.queue_length()));
}
// Now that we have pulled out out one message out of the queue,
// check whether we have one more message in the queue...
- if (this->incoming_message_queue_.queue_length () > 0)
+ if (this->incoming_message_queue_.is_head_complete () > 0)
{
if (TAO_debug_level > 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::process_queue_head, ")
- ACE_TEXT ("notify reactor\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::process_queue_head, "
+ "notify reactor\n",
+ this->id ()));
}
@@ -2248,9 +2350,9 @@ TAO_Transport::notify_reactor (void)
if (TAO_debug_level > 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::notify_reactor, ")
- ACE_TEXT ("notify to Reactor\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::notify_reactor, "
+ "notify to Reactor\n",
+ this->id ()));
}
@@ -2263,9 +2365,9 @@ TAO_Transport::notify_reactor (void)
// @@todo: need to think about what is the action that
// we can take when we get here.
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::notify_reactor, ")
- ACE_TEXT ("notify to the reactor failed..\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::notify_reactor, "
+ "notify to the reactor failed..\n",
+ this->id ()));
}
return 1;
@@ -2366,10 +2468,10 @@ TAO_Transport::post_open (size_t id)
if (TAO_debug_level > 0)
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("TAO (%P|%t) - Transport[%d]::post_connect , ")
- ACE_TEXT ("could not register the transport ")
- ACE_TEXT ("in the reactor.\n"),
- this->id ()));
+ "TAO (%P|%t) - Transport[%d]::post_connect , "
+ "could not register the transport "
+ "in the reactor.\n",
+ this->id ()));
return false;
}
@@ -2384,11 +2486,7 @@ TAO_Transport::allocate_partial_message_block (void)
{
// This value must be at least large enough to hold a GIOP message
// header plus a GIOP fragment header
- const size_t partial_message_size =
- this->messaging_object ()->header_length ();
- // + this->messaging_object ()->fragment_header_length ();
- // deprecated, conflicts with not-single_read_opt.
-
+ const size_t partial_message_size = 16;
ACE_NEW (this->partial_message_,
ACE_Message_Block (partial_message_size));
}
@@ -2400,5 +2498,3 @@ TAO_Transport::allocate_partial_message_block (void)
*/
//@@ TAO_TRANSPORT_SPL_METHODS_ADD_HOOK
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport.h b/TAO/tao/Transport.h
index f1a9ba45ac0..ca542ee7eb0 100644
--- a/TAO/tao/Transport.h
+++ b/TAO/tao/Transport.h
@@ -18,7 +18,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Transport_Cache_Manager.h"
+#include "Transport_Cache_Manager.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,13 +26,8 @@
#include "tao/Transport_Timer.h"
#include "tao/Incoming_Message_Queue.h"
-#include "tao/Incoming_Message_Stack.h"
#include "ace/Time_Value.h"
-struct iovec;
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Target_Specification;
class TAO_Operation_Details;
@@ -46,6 +41,7 @@ class TAO_Queued_Message;
class TAO_Synch_Queued_Message;
class TAO_Resume_Handle;
class TAO_Stub;
+struct iovec;
namespace TAO
{
@@ -183,20 +179,18 @@ namespace TAO
*
* We solve the problems as follows
*
- * (a) First do a read with the buffer on stack. Query the underlying
- * messaging object whether the message has any incomplete
- * portion. If so, data will be copied into new buffer being able
- * to hold full message and is queued; succeeding events will read
- * data from socket and write directly into this buffer.
- * Otherwise, if if the message in local buffer is complete, we free
- * the handle and then send the message to the higher layers of the
- * ORB for processing.
+ * (a) First do a read with the buffer on stack. Query the underlying
+ * messaging object whether the message has any incomplete
+ * portion. If so, we just grow the buffer for the missing size
+ * and read the rest of the message. We free the handle and then
+ * send the message to the higher layers of the ORB for
+ * processing.
*
- * (b) If buffer with incomplete message has been enqueued, while trying
- * to do the above, the reactor will call us back when the handle
- * becomes read ready. The read-operation will copy data directly
- * into the enqueued buffer. If the message has bee read completely
- * the message is sent to the higher layers of the ORB for processing.
+ * (b) If we block (ie. if we receive a EWOULDBLOCK) while trying to
+ * do the above (ie. trying to read after growing the buffer
+ * size) we put the message in a queue and return back to the
+ * reactor. The reactor would call us back when the handle
+ * becomes read ready.
*
* (c) If we get multiple messages (possible if the client connected
* to the server sends oneways or AMI requests), we parse and
@@ -370,7 +364,9 @@ public:
* transformations of the data, such as SSLIOP or protocols that
* compress the stream.
*
- * @param iov contains the data that must be sent.
+ * @param mblk contains the data that must be sent. For each
+ * message block in the cont() chain all the data between rd_ptr()
+ * and wr_ptr() should be delivered to the remote peer.
*
* @param timeout is the maximum time that the application is
* willing to wait for the data to be sent, useful in platforms that
@@ -393,8 +389,7 @@ public:
* down). In that case, it returns -1 and sets errno to
* <code>ENOENT</code>.
*/
- virtual ssize_t send (iovec *iov,
- int iovcnt,
+ virtual ssize_t send (iovec *iov, int iovcnt,
size_t &bytes_transferred,
const ACE_Time_Value *timeout = 0) = 0;
@@ -463,7 +458,8 @@ public:
* valid certificates. There are no pre_connect_hooks () since the
* transport doesn't exist before a connection establishment. :-)
*
- * @note The methods are not made const with a reason.
+ *
+ * @@NOTE: The methods are not made const with a reason.
*/
virtual bool post_connect_hook (void);
@@ -647,11 +643,60 @@ public:
protected:
+ /// Called by the handle_input_i(). This method is used to parse
+ /// message read by the handle_input_i() call. It also decides
+ /// whether the message needs consolidation before processing.
+ int parse_consolidate_messages (ACE_Message_Block &bl,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *time = 0);
+
+
+ /// Method does parsing of the message if we have a fresh message in
+ /// the @a message_block or just returns if we have read part of the
+ /// previously stored message.
+ int parse_incoming_messages (ACE_Message_Block &message_block);
+
+ /// Return if we have any missing data in the queue of messages
+ /// or determine if we have more information left out in the
+ /// presently read message to make it complete.
+ ssize_t missing_data (ACE_Message_Block &message_block);
+
+ /// Consolidate the currently read message or consolidate the last
+ /// message in the queue. The consolidation of the last message in
+ /// the queue is done by calling consolidate_message_queue ().
+ virtual int consolidate_message (ACE_Message_Block &incoming,
+ ssize_t missing_data,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time);
+
+ /// @@Bala: Docu???
+ int consolidate_fragments (TAO_Queued_Data *qd,
+ TAO_Resume_Handle &rh);
+
+ /// First consolidate the message queue. If the message is still not
+ /// complete, try to read from the handle again to make it
+ /// complete. If these dont help put the message back in the queue
+ /// and try to check the queue if we have message to process. (the
+ /// thread needs to do some work anyway :-))
+ int consolidate_message_queue (ACE_Message_Block &incoming,
+ ssize_t missing_data,
+ TAO_Resume_Handle &rh,
+ ACE_Time_Value *max_wait_time);
+
+ /// Called by parse_consolidate_message () if we have more messages
+ /// in one read. Queue up the messages and try to process one of
+ /// them, atleast at the head of them.
+ int consolidate_extra_messages (ACE_Message_Block &incoming,
+ TAO_Resume_Handle &rh);
+
/// Process the message by sending it to the higher layers of the
/// ORB.
int process_parsed_messages (TAO_Queued_Data *qd,
TAO_Resume_Handle &rh);
+ /// Make a queued data from the @a incoming message block
+ TAO_Queued_Data *make_queued_data (ACE_Message_Block &incoming);
+
/// Implement send_message_shared() assuming the handler_lock_ is
/// held.
int send_message_shared_i (TAO_Stub *stub,
@@ -839,37 +884,10 @@ private:
/// Print out error messages if the event handler is not valid
void report_invalid_event_handler (const char *caller);
- /// Is invoked by handle_input operation. It consolidate message on
- /// top of incoming_message_stack. The amount of missing data is
- /// known and recv operation copies data directly into message buffer,
- /// as much as a single recv-invocation provides.
- int handle_input_missing_data (TAO_Resume_Handle &rh,
- ACE_Time_Value *max_wait_time,
- TAO_Queued_Data *q_data);
-
- /// Is invoked by handle_input operation. It parses new messages from input stream
- /// or consolidates messages whose header has been partially read, the message
- /// size being unknown so far. It parses as much data as a single recv-invocation provides.
- int handle_input_parse_data (TAO_Resume_Handle &rh,
- ACE_Time_Value *max_wait_time);
-
- /// Is invoked by handle_input_parse_data. Parses all messages remaining
- /// in @a message_block.
- int handle_input_parse_extra_messages (ACE_Message_Block &message_block);
-
- /// @return -1 error, otherwise 0
- int consolidate_enqueue_message (TAO_Queued_Data *qd);
-
- /// @return -1 error, otherwise 0
- int consolidate_process_message (TAO_Queued_Data *qd, TAO_Resume_Handle &rh);
-
/*
* Process the message that is in the head of the incoming queue.
* If there are more messages in the queue, this method calls
* this->notify_reactor () to wake up a thread
- * @retval -1 on error
- * @retval 0 if successfully processing enqueued messages
- * @retval 1 if no message present in queue
*/
int process_queue_head (TAO_Resume_Handle &rh);
@@ -882,13 +900,21 @@ private:
/// Assume the lock is held
void send_connection_closed_notifications_i (void);
+ /// Process a non-version specific fragment by either consolidating
+ /// the fragments or enqueuing the queueable message
+ void process_fragment (TAO_Queued_Data* fragment_message,
+ TAO_Queued_Data* queueable_message,
+ CORBA::Octet major,
+ CORBA::Octet minor,
+ TAO_Resume_Handle &rh);
+
/// Allocate a partial message block and store it in our
/// partial_message_ data member.
void allocate_partial_message_block (void);
- // Disallow copying and assignment.
- TAO_Transport (const TAO_Transport&);
- void operator= (const TAO_Transport&);
+ /// Prohibited
+ ACE_UNIMPLEMENTED_FUNC (TAO_Transport (const TAO_Transport&))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const TAO_Transport&))
/*
* Specialization hook to add concrete private methods from
@@ -905,7 +931,7 @@ protected:
/// Global orbcore resource.
TAO_ORB_Core *orb_core_;
- /// Our entry in the cache. We don't own this. It is here for our
+ /// Our entry in the cache. We dont own this. It is here for our
/// convenience. We cannot just change things around.
TAO::Transport_Cache_Manager::HASH_MAP_ENTRY *cache_map_entry_;
@@ -943,14 +969,10 @@ protected:
TAO_Queued_Message *head_;
TAO_Queued_Message *tail_;
- /// Queue of the consolidated, incoming messages..
+ /// Queue of the incoming messages..
TAO_Incoming_Message_Queue incoming_message_queue_;
- /// Stack of incoming fragments, consolidated messages
- /// are going to be enqueued in "incoming_message_queue_"
- TAO::Incoming_Message_Stack incoming_message_stack_;
-
- /// The queue will start draining no later than <queeing_deadline_>
+ /// The queue will start draining no later than <queing_deadline_>
/// *if* the deadline is
ACE_Time_Value current_deadline_;
@@ -1042,10 +1064,8 @@ private:
//@@ TAO_TRANSPORT_SPL_EXTERN_ADD_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Transport.inl"
+# include "Transport.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Transport.inl b/TAO/tao/Transport.inl
index ef9faafb1ac..6c0d7d0093a 100644
--- a/TAO/tao/Transport.inl
+++ b/TAO/tao/Transport.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_Transport::tag (void) const
{
@@ -189,4 +186,4 @@ TAO_Transport::sent_byte_count (void) const
return this->sent_byte_count_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/TAO/tao/Transport_Acceptor.cpp b/TAO/tao/Transport_Acceptor.cpp
index 5fd09d0c402..a4825e9286c 100644
--- a/TAO/tao/Transport_Acceptor.cpp
+++ b/TAO/tao/Transport_Acceptor.cpp
@@ -1,18 +1,17 @@
+// -*- C++ -*-
+//
// $Id$
-#include "tao/Transport_Acceptor.h"
+#include "Transport_Acceptor.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Transport_Acceptor.inl"
+# include "Transport_Acceptor.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (tao,
Acceptor,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Acceptor::TAO_Acceptor (CORBA::ULong tag)
: tag_ (tag)
{
@@ -25,5 +24,3 @@ TAO_Acceptor::~TAO_Acceptor (void)
}
//@@ TAO_ACCEPTOR_SPL_METHODS_ADD_HOOK
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Acceptor.h b/TAO/tao/Transport_Acceptor.h
index f49ac1b4190..ea5df9baf97 100644
--- a/TAO/tao/Transport_Acceptor.h
+++ b/TAO/tao/Transport_Acceptor.h
@@ -27,13 +27,8 @@
#include "tao/Basic_Types.h"
// Forward declarations.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Addr;
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_MProfile;
class TAO_Endpoint;
@@ -144,7 +139,7 @@ public:
private:
/// IOP protocol tag.
- CORBA::ULong const tag_;
+ CORBA::ULong tag_;
/*
* Hook to add data members from concrete acceptor implementations onto
@@ -155,10 +150,8 @@ private:
//@@ TAO_ACCEPTOR_SPL_EXTERN_ADD_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Transport_Acceptor.inl"
+# include "Transport_Acceptor.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Transport_Acceptor.inl b/TAO/tao/Transport_Acceptor.inl
index 7767ec6b43e..7d91a8330a3 100644
--- a/TAO/tao/Transport_Acceptor.inl
+++ b/TAO/tao/Transport_Acceptor.inl
@@ -1,13 +1,7 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::ULong
TAO_Acceptor::tag (void) const
{
return this->tag_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Cache_Manager.cpp b/TAO/tao/Transport_Cache_Manager.cpp
index 67f196cbc05..9a44900fe59 100644
--- a/TAO/tao/Transport_Cache_Manager.cpp
+++ b/TAO/tao/Transport_Cache_Manager.cpp
@@ -1,12 +1,12 @@
//$Id$
-#include "tao/Transport_Cache_Manager.h"
-#include "tao/Transport.h"
-#include "tao/debug.h"
-#include "tao/ORB_Core.h"
-#include "tao/Connection_Purging_Strategy.h"
-#include "tao/Client_Strategy_Factory.h"
-#include "tao/Condition.h"
-#include "tao/Wait_Strategy.h"
+#include "Transport_Cache_Manager.h"
+#include "Transport.h"
+#include "debug.h"
+#include "ORB_Core.h"
+#include "Connection_Purging_Strategy.h"
+#include "Client_Strategy_Factory.h"
+#include "Condition.h"
+#include "Wait_Strategy.h"
#include "ace/ACE.h"
#include "ace/Reactor.h"
@@ -15,13 +15,11 @@
#endif /* __ACE_INLINE__ */
+
ACE_RCSID (tao,
Transport_Cache_Manager,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Transport_Cache_Manager::Transport_Cache_Manager (TAO_ORB_Core &orb_core)
@@ -719,5 +717,3 @@ namespace TAO
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Cache_Manager.h b/TAO/tao/Transport_Cache_Manager.h
index 37a3643fe3e..749cbe9492d 100644
--- a/TAO/tao/Transport_Cache_Manager.h
+++ b/TAO/tao/Transport_Cache_Manager.h
@@ -25,20 +25,15 @@
#include "tao/Cache_Entries.h"
#include "tao/orbconf.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Handle_Set;
-template <class T> class ACE_Unbounded_Set;
-template <class T> class ACE_Unbounded_Set_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Connection_Handler;
class TAO_ORB_Core;
class TAO_Resource_Factory;
class TAO_Connection_Purging_Strategy;
template <class ACE_COND_MUTEX> class TAO_Condition;
+template <class T> class ACE_Unbounded_Set;
+template <class T> class ACE_Unbounded_Set_Iterator;
namespace TAO
{
@@ -264,9 +259,6 @@ namespace TAO
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Transport_Cache_Manager.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Transport_Cache_Manager.inl b/TAO/tao/Transport_Cache_Manager.inl
index ed53a1a4f90..08c81369837 100644
--- a/TAO/tao/Transport_Cache_Manager.inl
+++ b/TAO/tao/Transport_Cache_Manager.inl
@@ -1,10 +1,5 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
//$Id$
-
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
ACE_INLINE int
@@ -153,5 +148,3 @@ namespace TAO
return this->cache_map_;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Connector.cpp b/TAO/tao/Transport_Connector.cpp
index 844e29defa6..f81e882b419 100644
--- a/TAO/tao/Transport_Connector.cpp
+++ b/TAO/tao/Transport_Connector.cpp
@@ -1,37 +1,34 @@
-#include "tao/Transport_Connector.h"
-#include "tao/Transport.h"
-#include "tao/ORB_Core.h"
-#include "tao/MProfile.h"
-#include "tao/Profile.h"
-#include "tao/Environment.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "tao/debug.h"
-#include "tao/Connect_Strategy.h"
-#include "tao/Client_Strategy_Factory.h"
-#include "tao/Connection_Handler.h"
-#include "tao/Profile_Transport_Resolver.h"
-#include "tao/Wait_Strategy.h"
-#include "tao/SystemException.h"
+#include "Transport_Connector.h"
+#include "Transport.h"
+#include "ORB_Core.h"
+#include "MProfile.h"
+#include "Profile.h"
+#include "Environment.h"
+#include "Thread_Lane_Resources.h"
+#include "debug.h"
+#include "Connect_Strategy.h"
+#include "Client_Strategy_Factory.h"
+#include "Connection_Handler.h"
+#include "Profile_Transport_Resolver.h"
+#include "Wait_Strategy.h"
+#include "SystemException.h"
#include "ace/OS_NS_string.h"
//@@ TAO_CONNECTOR_SPL_INCLUDE_ADD_HOOK
#if !defined (__ACE_INLINE__)
-# include "tao/Transport_Connector.inl"
+# include "Transport_Connector.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (tao,
Connector,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Connector
TAO_Connector::TAO_Connector (CORBA::ULong tag)
: active_connect_strategy_ (0),
- tag_ (tag),
+ tag_(tag),
orb_core_ (0)
{
}
@@ -105,7 +102,7 @@ TAO_Connector::make_mprofile (const char *string,
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) - TAO_Connector::make_mprofile ")
ACE_TEXT ("<%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR (string)));
+ ACE_TEXT_TO_TCHAR_IN (string)));
}
ACE_CString ior;
@@ -176,8 +173,8 @@ TAO_Connector::make_mprofile (const char *string,
// `shu/arf'
// `1.1@chicken/arf'
- ssize_t begin = 0;
- ssize_t end = ior_index - 1;
+ int begin = 0;
+ int end = ior_index - 1;
// Initialize the end of the endpoint index
for (CORBA::ULong j = 0; j < profile_count; ++j)
@@ -193,7 +190,7 @@ TAO_Connector::make_mprofile (const char *string,
end = objkey_index; // Handle last endpoint differently
}
- if (end < static_cast<ssize_t> (ior.length ()) && end != ior.npos)
+ if (end < static_cast<int> (ior.length ()) && end != ior.npos)
{
ACE_CString endpoint = ior.substring (begin, end - begin);
@@ -530,5 +527,3 @@ TAO_Connector::check_connection_closure (
}
//@@ TAO_CONNECTOR_SPL_METHODS_ADD_HOOK
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Connector.h b/TAO/tao/Transport_Connector.h
index e29d0b251b3..720aaab0e76 100644
--- a/TAO/tao/Transport_Connector.h
+++ b/TAO/tao/Transport_Connector.h
@@ -23,15 +23,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/TAO_Export.h"
-#include "tao/Basic_Types.h"
+#include "TAO_Export.h"
+#include "Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport_Descriptor_Interface;
class TAO_InputCDR;
class TAO_Endpoint;
@@ -192,7 +187,7 @@ protected:
private:
/// IOP protocol tag.
- CORBA::ULong const tag_;
+ CORBA::ULong tag_;
/// Pointer to our ORB core
TAO_ORB_Core *orb_core_;
@@ -202,10 +197,8 @@ private:
//@@ TAO_CONNECTOR_SPL_EXTERN_ADD_HOOK
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Transport_Connector.inl"
+# include "Transport_Connector.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Transport_Connector.inl b/TAO/tao/Transport_Connector.inl
index 64683bc6a14..c25d96057fb 100644
--- a/TAO/tao/Transport_Connector.inl
+++ b/TAO/tao/Transport_Connector.inl
@@ -1,9 +1,5 @@
// -*- C++ -*-
-//
// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE TAO_ORB_Core *
TAO_Connector::orb_core (void)
{
@@ -21,5 +17,3 @@ TAO_Connector::tag (void) const
{
return this->tag_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Descriptor_Interface.cpp b/TAO/tao/Transport_Descriptor_Interface.cpp
index a58af5ac064..6882cc3b8a6 100644
--- a/TAO/tao/Transport_Descriptor_Interface.cpp
+++ b/TAO/tao/Transport_Descriptor_Interface.cpp
@@ -10,15 +10,11 @@ ACE_RCSID (tao,
Transport_Descriptor_Interface,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-TAO_Transport_Descriptor_Interface::~TAO_Transport_Descriptor_Interface (void)
+TAO_Transport_Descriptor_Interface::
+ ~TAO_Transport_Descriptor_Interface (void)
{
if (this->endpoint_from_heap_)
{
delete this->endpoint_;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Descriptor_Interface.h b/TAO/tao/Transport_Descriptor_Interface.h
index 0934238d072..7eba381787f 100644
--- a/TAO/tao/Transport_Descriptor_Interface.h
+++ b/TAO/tao/Transport_Descriptor_Interface.h
@@ -23,8 +23,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Endpoint;
/**
@@ -86,8 +84,6 @@ protected:
CORBA::Boolean endpoint_from_heap_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/Transport_Descriptor_Interface.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Transport_Descriptor_Interface.inl b/TAO/tao/Transport_Descriptor_Interface.inl
index 6d1bbcb6d56..97bcf5291f4 100644
--- a/TAO/tao/Transport_Descriptor_Interface.inl
+++ b/TAO/tao/Transport_Descriptor_Interface.inl
@@ -1,24 +1,21 @@
-// -*- C++ -*-
-//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
-TAO_Transport_Descriptor_Interface::TAO_Transport_Descriptor_Interface (
- TAO_Endpoint *endpoint,
- CORBA::Boolean flag)
- : endpoint_ (endpoint),
- bidir_flag_ (false),
- endpoint_from_heap_ (flag)
+TAO_Transport_Descriptor_Interface::
+ TAO_Transport_Descriptor_Interface (TAO_Endpoint *endpoint,
+ CORBA::Boolean flag)
+ : endpoint_ (endpoint),
+ bidir_flag_ (0),
+ endpoint_from_heap_ (flag)
{
}
ACE_INLINE
-TAO_Transport_Descriptor_Interface::TAO_Transport_Descriptor_Interface (void)
- : endpoint_ (0),
- bidir_flag_ (false),
- endpoint_from_heap_ (false)
+TAO_Transport_Descriptor_Interface::
+ TAO_Transport_Descriptor_Interface (void)
+ : endpoint_ (0),
+ bidir_flag_ (0),
+ endpoint_from_heap_ (0)
{
}
@@ -35,5 +32,3 @@ TAO_Transport_Descriptor_Interface::set_bidir_flag (CORBA::Boolean flag)
{
this->bidir_flag_ = flag;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Mux_Strategy.cpp b/TAO/tao/Transport_Mux_Strategy.cpp
index beb04aba840..e11ed482657 100644
--- a/TAO/tao/Transport_Mux_Strategy.cpp
+++ b/TAO/tao/Transport_Mux_Strategy.cpp
@@ -6,9 +6,6 @@ ACE_RCSID (tao,
Transport_Mux_Strategy,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Transport_Mux_Strategy::TAO_Transport_Mux_Strategy (
TAO_Transport *transport)
: transport_ (transport)
@@ -19,5 +16,3 @@ TAO_Transport_Mux_Strategy::TAO_Transport_Mux_Strategy (
TAO_Transport_Mux_Strategy::~TAO_Transport_Mux_Strategy (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Mux_Strategy.h b/TAO/tao/Transport_Mux_Strategy.h
index 1dcc0f2ba11..9e019e5311c 100644
--- a/TAO/tao/Transport_Mux_Strategy.h
+++ b/TAO/tao/Transport_Mux_Strategy.h
@@ -23,15 +23,10 @@
#include "tao/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Reply_Dispatcher;
class TAO_Transport;
class TAO_Pluggable_Reply_Params;
+class ACE_Lock;
/**
* @class TAO_Transport_Mux_Strategy
@@ -98,8 +93,6 @@ protected:
ACE_Lock *lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TRANSPORT_MUX_STRATEGY_H */
diff --git a/TAO/tao/Transport_Queueing_Strategies.cpp b/TAO/tao/Transport_Queueing_Strategies.cpp
index 4de33f760dd..17235308f7a 100644
--- a/TAO/tao/Transport_Queueing_Strategies.cpp
+++ b/TAO/tao/Transport_Queueing_Strategies.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/Transport_Queueing_Strategies.h"
-#include "tao/Buffering_Constraint_Policy.h"
-#include "tao/Stub.h"
-#include "tao/debug.h"
+#include "Transport_Queueing_Strategies.h"
+#include "Buffering_Constraint_Policy.h"
+#include "Stub.h"
+#include "debug.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_sys_time.h"
@@ -12,9 +12,6 @@ ACE_RCSID (tao,
Transport_Queueing_Strategies,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
Transport_Queueing_Strategy::~Transport_Queueing_Strategy (void)
@@ -227,5 +224,3 @@ namespace TAO
#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Queueing_Strategies.h b/TAO/tao/Transport_Queueing_Strategies.h
index 56ba66149ee..ad572969725 100644
--- a/TAO/tao/Transport_Queueing_Strategies.h
+++ b/TAO/tao/Transport_Queueing_Strategies.h
@@ -27,13 +27,8 @@
#include "tao/orbconf.h"
#include "tao/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Stub;
+class ACE_Time_Value;
namespace TAO
{
@@ -178,8 +173,6 @@ namespace TAO
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TRANSPORT_QUEUEING_STRATEGY_H */
diff --git a/TAO/tao/Transport_Timer.cpp b/TAO/tao/Transport_Timer.cpp
index 6a704fbd72f..0d592fb8459 100644
--- a/TAO/tao/Transport_Timer.cpp
+++ b/TAO/tao/Transport_Timer.cpp
@@ -1,14 +1,13 @@
+// -*- C++ -*-
// $Id$
-#include "tao/Transport_Timer.h"
-#include "tao/Transport.h"
+#include "Transport_Timer.h"
+#include "Transport.h"
ACE_RCSID (tao,
Transport_Timer,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Transport_Timer::TAO_Transport_Timer (TAO_Transport *transport)
: transport_ (transport)
{
@@ -20,5 +19,3 @@ TAO_Transport_Timer::handle_timeout (const ACE_Time_Value &current_time,
{
return this->transport_->handle_timeout (current_time, act);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Transport_Timer.h b/TAO/tao/Transport_Timer.h
index 50593fff2e4..b951456e0cb 100644
--- a/TAO/tao/Transport_Timer.h
+++ b/TAO/tao/Transport_Timer.h
@@ -20,10 +20,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/TAO_Export.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "TAO_Export.h"
class TAO_Transport;
@@ -54,8 +51,6 @@ private:
TAO_Transport *transport_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TRANSPORT_TIMER_H */
diff --git a/TAO/tao/TypeCodeFactory/Recursive_TypeCode.cpp b/TAO/tao/TypeCodeFactory/Recursive_TypeCode.cpp
index 3a8f77cdb6d..e74548609e5 100644
--- a/TAO/tao/TypeCodeFactory/Recursive_TypeCode.cpp
+++ b/TAO/tao/TypeCodeFactory/Recursive_TypeCode.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/TypeCodeFactory/Recursive_TypeCode.h"
+#include "Recursive_TypeCode.h"
#ifndef __ACE_INLINE__
-# include "tao/TypeCodeFactory/Recursive_TypeCode.inl"
+# include "Recursive_TypeCode.inl"
#endif /* __ACE_INLINE__ */
#include "tao/SystemException.h"
@@ -14,7 +14,6 @@ ACE_RCSID (TypeCodeFactory,
Recursive_TypeCode,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
bool
TAO::TypeCodeFactory::Recursive_TypeCode::tao_marshal (
@@ -277,5 +276,3 @@ TAO::TypeCodeFactory::Recursive_TypeCode::concrete_base_type_i (
return
this->the_typecode_->concrete_base_type (ACE_ENV_SINGLE_ARG_PARAMETER);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TypeCodeFactory/Recursive_TypeCode.h b/TAO/tao/TypeCodeFactory/Recursive_TypeCode.h
index 0f92a9bdc8b..1636cb666ad 100644
--- a/TAO/tao/TypeCodeFactory/Recursive_TypeCode.h
+++ b/TAO/tao/TypeCodeFactory/Recursive_TypeCode.h
@@ -20,8 +20,6 @@
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/True_RefCount_Policy.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace TypeCodeFactory
@@ -120,7 +118,6 @@ namespace TAO
} // End namespace TypeCodeFactory
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#ifdef __ACE_INLINE__
# include "tao/TypeCodeFactory/Recursive_TypeCode.inl"
diff --git a/TAO/tao/TypeCodeFactory/Recursive_TypeCode.inl b/TAO/tao/TypeCodeFactory/Recursive_TypeCode.inl
index 6fa35755fad..a053fbddf5d 100644
--- a/TAO/tao/TypeCodeFactory/Recursive_TypeCode.inl
+++ b/TAO/tao/TypeCodeFactory/Recursive_TypeCode.inl
@@ -2,7 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO::TypeCodeFactory::Recursive_TypeCode::Recursive_TypeCode (char const * id)
@@ -27,5 +26,3 @@ TAO::TypeCodeFactory::Recursive_TypeCode::the_typecode (CORBA::TypeCode_ptr tc)
mutable_kind = tc->kind (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactoryA.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactoryA.cpp
index 5bcf47ab3d8..555d87f9b75 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactoryA.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactoryA.cpp
@@ -30,13 +30,11 @@
#include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
#include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
#include "tao/AnyTypeCode/String_TypeCode_Static.h"
-#include "tao/TypeCodeFactory/TypeCodeFactoryC.h"
+#include "TypeCodeFactoryC.h"
#include "tao/CDR.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// TAO_IDL - Generated from
// be\be_visitor_typecode/objref_typecode.cpp:76
@@ -129,5 +127,3 @@ operator>>= (
_tao_elem
);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp
index aa97c491b4c..abf38c85ea0 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/TypeCodeFactory/TypeCodeFactoryC.h"
+#include "TypeCodeFactoryC.h"
#include "tao/CDR.h"
#include "ace/OS_NS_string.h"
@@ -40,8 +40,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:69
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -188,5 +186,3 @@ CORBA::TypeCodeFactory::marshal (TAO_OutputCDR &)
{
return false;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h
index 8548e8e4cee..a620aa9caec 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactoryC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/TypeCodeFactory/typecodefactory_export.h"
+#include "typecodefactory_export.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
#include "tao/ORB.h"
@@ -68,8 +68,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -456,8 +454,6 @@ TAO_TypeCodeFactory_Export CORBA::Boolean operator>>= (const CORBA::Any &, CORBA
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp
index 29fb9ac421f..3c041038f87 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.cpp
@@ -1,8 +1,8 @@
// $Id$
#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
-#include "tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h"
-#include "tao/TypeCodeFactory/TypeCodeFactory_i.h"
+#include "TypeCodeFactory_Adapter_Impl.h"
+#include "TypeCodeFactory_i.h"
#include "tao/ORB_Core.h"
@@ -12,8 +12,6 @@ ACE_RCSID (TypeCodeFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_TypeCodeFactory_Adapter_Impl::~TAO_TypeCodeFactory_Adapter_Impl (void)
{
}
@@ -409,8 +407,6 @@ TAO_TypeCodeFactory_Adapter_Impl::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_TypeCodeFactory_Adapter_Impl);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (
TAO_TypeCodeFactory_Adapter_Impl,
ACE_TEXT ("Concrete_TypeCodeFactory_Adapter"),
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h
index 5f20f2af5b8..b0d09a41fb4 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Adapter_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,7 +15,7 @@
#define TAO_TYPECODEFACTORY_ADAPTER_IMPL_H
#include /**/ "ace/pre.h"
-#include "tao/TypeCodeFactory/typecodefactory_export.h"
+#include "typecodefactory_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +25,6 @@
#include "ace/Service_Config.h"
#include "tao/default_environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_TypeCodeFactory_Adapter_Impl
*
@@ -250,15 +248,12 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_TypeCodeFactory_Initializer =
- TAO_TypeCodeFactory_Adapter_Impl::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_TypeCodeFactory_Adapter_Impl)
ACE_FACTORY_DECLARE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Adapter_Impl)
+static int
+TAO_Requires_TypeCodeFactory_Initializer =
+ TAO_TypeCodeFactory_Adapter_Impl::Initializer ();
#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
index 36d20aeda87..b6fcd5eb57e 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.cpp
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
// $Id$
// =================================================================
@@ -15,15 +14,10 @@
//
// =================================================================
-#include "tao/TypeCodeFactory/TypeCodeFactory_Loader.h"
-#include "tao/TypeCodeFactory/TypeCodeFactory_i.h"
-#include "ace/Log_Msg.h"
-
-ACE_RCSID(TypeCodeFactory,
- TypeCodeFactory_Loader,
- "$Id$")
+#include "TypeCodeFactory_Loader.h"
+#include "TypeCodeFactory_i.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(TypeCodeFactory, TypeCodeFactory_Loader, "$Id$")
TAO_TypeCodeFactory_Loader::TAO_TypeCodeFactory_Loader (void)
{
@@ -49,9 +43,6 @@ TAO_TypeCodeFactory_Loader::Initializer (void)
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_TypeCodeFactory_Loader);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-
ACE_STATIC_SVC_DEFINE (
TAO_TypeCodeFactory_Loader,
ACE_TEXT ("TypeCodeFactory_Loader"),
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h
index 55a524c32b8..7cef34fafe8 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_Loader.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -14,7 +14,7 @@
#define TAO_TYPECODEFACTORY_LOADER_H
#include /**/ "ace/pre.h"
-#include "tao/TypeCodeFactory/typecodefactory_export.h"
+#include "typecodefactory_export.h"
#include "tao/Object_Loader.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -23,8 +23,6 @@
#include "ace/Service_Config.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_TypeCodeFactory_Loader
*
@@ -49,16 +47,14 @@ public:
static int Initializer (void);
};
-static int
-TAO_Requires_TCF_Initializer = TAO_TypeCodeFactory_Loader::Initializer ();
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE (TAO_TypeCodeFactory_Loader)
ACE_FACTORY_DECLARE (TAO_TypeCodeFactory, TAO_TypeCodeFactory_Loader)
+static int
+TAO_Requires_TCF_Initializer = TAO_TypeCodeFactory_Loader::Initializer ();
+
#define TAO_TYPECODEFACTORY_SAFE_INCLUDE
-#include "tao/TypeCodeFactory/TypeCodeFactoryC.h"
+#include "TypeCodeFactoryC.h"
#undef TAO_TYPECODEFACTORY_SAFE_INCLUDE
#include /**/ "ace/post.h"
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
index 5fb6c575d65..70f43e88f16 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.cpp
@@ -1,7 +1,7 @@
// $Id$
-#include "tao/TypeCodeFactory/Recursive_TypeCode.h"
-#include "tao/TypeCodeFactory/TypeCodeFactory_i.h"
+#include "Recursive_TypeCode.h"
+#include "TypeCodeFactory_i.h"
#include "tao/AnyTypeCode/Marshal.h"
#include "tao/AnyTypeCode/Any_Unknown_IDL_Type.h"
@@ -44,7 +44,6 @@ ACE_RCSID (TypeCodeFactory,
TypeCodeFactory_i,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TCF
{
@@ -204,7 +203,7 @@ TAO_TypeCodeFactory_i::create_union_tc (
{
// 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 (member_name, members[i - 1].name) == 0)
+ if (ACE_OS::strcmp (member_name, members[i - 1].name.in()) == 0)
{
CORBA::Boolean const equiv =
member.type.in ()->equivalent (members[i - 1].type.in ()
@@ -333,8 +332,8 @@ TAO_TypeCodeFactory_i::create_union_tc (
{
// Is this a duplicate case label? If so, skip it - a member
// goes into the TypeCode only once.
- if (ACE_OS::strcmp (member.name,
- members[index - 1].name) == 0)
+ if (ACE_OS::strcmp (member.name.in(),
+ members[index - 1].name.in()) == 0)
{
continue;
}
@@ -2098,5 +2097,3 @@ TAO_TypeCodeFactory_i::make_recursive_tc (CORBA::TCKind kind,
return tc;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h
index e463d0a4169..82a138ef191 100644
--- a/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h
+++ b/TAO/tao/TypeCodeFactory/TypeCodeFactory_i.h
@@ -14,7 +14,7 @@
#define TAO_TYPECODEFACTORY_I_H
#include /**/ "ace/pre.h"
-#include "tao/TypeCodeFactory/TypeCodeFactory_Loader.h"
+#include "TypeCodeFactory_Loader.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,7 +27,6 @@
#pragma warning(disable:4250)
#endif /* _MSC_VER */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -313,8 +312,6 @@ private:
TAO_TypeCodeFactory_i &operator= (const TAO_TypeCodeFactory_i &src);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/TypeCodeFactory_Adapter.h b/TAO/tao/TypeCodeFactory_Adapter.h
index 03bdcd4f455..1e6e09eb1ff 100644
--- a/TAO/tao/TypeCodeFactory_Adapter.h
+++ b/TAO/tao/TypeCodeFactory_Adapter.h
@@ -24,11 +24,7 @@
#include "tao/Environment.h"
#include "tao/Typecode_typesC.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template<class T> class ACE_Array_Base;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -275,8 +271,6 @@ public:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_TYPECODEFACTORY_ADAPTER_H */
diff --git a/TAO/tao/Typecode_typesC.cpp b/TAO/tao/Typecode_typesC.cpp
index bf8cc72d22a..bff34272a23 100644
--- a/TAO/tao/Typecode_typesC.cpp
+++ b/TAO/tao/Typecode_typesC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/Typecode_typesC.h"
+#include "Typecode_typesC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -67,5 +65,3 @@ CORBA::Boolean operator>> (TAO_InputCDR & strm, CORBA::TCKind & _tao_enumerator)
return _tao_success;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Typecode_typesC.h b/TAO/tao/Typecode_typesC.h
index 5c6dfd896d8..3d411afc9e6 100644
--- a/TAO/tao/Typecode_typesC.h
+++ b/TAO/tao/Typecode_typesC.h
@@ -58,8 +58,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -135,8 +133,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::TCKind &);
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/UB_String_Argument_T.cpp b/TAO/tao/UB_String_Argument_T.cpp
index ede48dd16e4..a84a261ed85 100644
--- a/TAO/tao/UB_String_Argument_T.cpp
+++ b/TAO/tao/UB_String_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_UB_STRING_ARGUMENT_T_CPP
-#define TAO_UB_STRING_ARGUMENT_T_CPP
+#ifndef TAO_UB_STRING_ARGUMENT_T_C
+#define TAO_UB_STRING_ARGUMENT_T_C
#include "tao/UB_String_Argument_T.h"
#include "tao/CDR.h"
@@ -10,7 +10,9 @@
#include "tao/UB_String_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ UB_String_Argument_T,
+ "$Id$")
template<typename S, typename Insert_Policy>
CORBA::Boolean
@@ -100,6 +102,4 @@ TAO::Ret_UB_String_Argument_T<S,S_var,Insert_Policy>::interceptor_value (
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_UB_STRING_ARGUMENT_T_CPP */
+#endif /* TAO_UB_STRING_ARGUMENT_T_C */
diff --git a/TAO/tao/UB_String_Argument_T.h b/TAO/tao/UB_String_Argument_T.h
index 5b269e0a570..2b4b3d25214 100644
--- a/TAO/tao/UB_String_Argument_T.h
+++ b/TAO/tao/UB_String_Argument_T.h
@@ -6,8 +6,7 @@
*
* $Id$
*
- * @author Jeff Parsons
- * @author Carlos O'Ryan
+ * @authors Jeff Parsons and Carlos O'Ryan
*/
//=============================================================================
@@ -22,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -149,8 +146,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/UB_String_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/UB_String_Argument_T.inl b/TAO/tao/UB_String_Argument_T.inl
index 370d3931dd9..b6f6a97db6e 100644
--- a/TAO/tao/UB_String_Argument_T.inl
+++ b/TAO/tao/UB_String_Argument_T.inl
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S, typename Insert_Policy>
ACE_INLINE
-TAO::In_UB_String_Argument_T<S,Insert_Policy>::In_UB_String_Argument_T (
- const S * x)
+TAO::In_UB_String_Argument_T<S,Insert_Policy>::In_UB_String_Argument_T (const S * x)
: x_ (x)
{}
@@ -82,4 +77,3 @@ TAO::Ret_UB_String_Argument_T<S,S_var,Insert_Policy>::retn (void)
return this->x_._retn ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/UB_String_Arguments.h b/TAO/tao/UB_String_Arguments.h
index 7e78f4749fa..a5268d9a6d2 100644
--- a/TAO/tao/UB_String_Arguments.h
+++ b/TAO/tao/UB_String_Arguments.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "tao/Arg_Traits_T.h"
#include "tao/Any_Insert_Policy_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -53,7 +51,5 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UB_STRING_ARGUMENTS_H */
diff --git a/TAO/tao/ULongLongSeqC.cpp b/TAO/tao/ULongLongSeqC.cpp
index 08f97a96aed..9b7bed6d5f2 100644
--- a/TAO/tao/ULongLongSeqC.cpp
+++ b/TAO/tao/ULongLongSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/ULongLongSeqC.h"
+#include "ULongLongSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ void CORBA::ULongLongSeq::_tao_any_destructor (
}
#endif /* _TAO_CDR_OP_CORBA_ULongLongSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ULongLongSeqC.h b/TAO/tao/ULongLongSeqC.h
index b77ce3b7af6..9210eeb57fe 100644
--- a/TAO/tao/ULongLongSeqC.h
+++ b/TAO/tao/ULongLongSeqC.h
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -141,8 +139,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/ULongSeqC.cpp b/TAO/tao/ULongSeqC.cpp
index a474b95567f..8fc6a35358a 100644
--- a/TAO/tao/ULongSeqC.cpp
+++ b/TAO/tao/ULongSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:288
-#include "tao/ULongSeqC.h"
+#include "ULongSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_ULongSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/ULongSeqC.h b/TAO/tao/ULongSeqC.h
index f0b8beb805d..07d71927c92 100644
--- a/TAO/tao/ULongSeqC.h
+++ b/TAO/tao/ULongSeqC.h
@@ -60,8 +60,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -146,8 +144,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/UShortSeqC.cpp b/TAO/tao/UShortSeqC.cpp
index aecdf19d4a5..178d8264a70 100644
--- a/TAO/tao/UShortSeqC.cpp
+++ b/TAO/tao/UShortSeqC.cpp
@@ -29,7 +29,7 @@
// be\be_codegen.cpp:291
-#include "tao/UShortSeqC.h"
+#include "UShortSeqC.h"
#include "tao/CDR.h"
#if defined (__BORLANDC__)
@@ -39,8 +39,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -157,5 +155,3 @@ CORBA::Boolean operator>> (
}
#endif /* _TAO_CDR_OP_CORBA_UShortSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/UShortSeqC.h b/TAO/tao/UShortSeqC.h
index 883ac0591c2..33567017495 100644
--- a/TAO/tao/UShortSeqC.h
+++ b/TAO/tao/UShortSeqC.h
@@ -64,8 +64,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -162,8 +160,6 @@ TAO_Export CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/UserException.cpp b/TAO/tao/UserException.cpp
index 638f895b362..0e382b85985 100644
--- a/TAO/tao/UserException.cpp
+++ b/TAO/tao/UserException.cpp
@@ -1,6 +1,6 @@
// $Id$
-#include "tao/UserException.h"
+#include "UserException.h"
#include "ace/SString.h"
#include "ace/OS_NS_string.h"
@@ -14,8 +14,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Virtual. Do not inline.
CORBA::UserException::~UserException (void)
{
@@ -46,5 +44,3 @@ CORBA::UserException::_info (void) const
user_exception_info += "'";
return user_exception_info;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/UserException.h b/TAO/tao/UserException.h
index f3f2dcec89f..79aa80e8766 100644
--- a/TAO/tao/UserException.h
+++ b/TAO/tao/UserException.h
@@ -26,8 +26,6 @@
#include "tao/Exception.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
/**
@@ -80,8 +78,6 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/UserException.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/UserException.inl b/TAO/tao/UserException.inl
index 0e1d3295264..ba01c46e9fd 100644
--- a/TAO/tao/UserException.inl
+++ b/TAO/tao/UserException.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::UserException::UserException (void)
{
@@ -34,5 +32,3 @@ CORBA::UserException::_downcast (CORBA::Exception const * exception)
{
return dynamic_cast<const CORBA::UserException *> (exception);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/Encodable.cpp b/TAO/tao/Utils/Encodable.cpp
index c9c484f549c..7e6aa6c57aa 100644
--- a/TAO/tao/Utils/Encodable.cpp
+++ b/TAO/tao/Utils/Encodable.cpp
@@ -1,11 +1,7 @@
// $Id$
-#include "tao/Utils/Encodable.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "Encodable.h"
TAO_Encodable::~TAO_Encodable (void)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/Encodable.h b/TAO/tao/Utils/Encodable.h
index 15afe05370f..8edb09c43ef 100644
--- a/TAO/tao/Utils/Encodable.h
+++ b/TAO/tao/Utils/Encodable.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -24,9 +23,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Utils/utils_export.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "utils_export.h"
class TAO_OutputCDR;
class TAO_InputCDR;
@@ -55,8 +52,6 @@ public:
virtual CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_ENCODABLE_H_ */
diff --git a/TAO/tao/Utils/Implicit_Deactivator.cpp b/TAO/tao/Utils/Implicit_Deactivator.cpp
index 9e0fb6444f9..e5d3c35d594 100644
--- a/TAO/tao/Utils/Implicit_Deactivator.cpp
+++ b/TAO/tao/Utils/Implicit_Deactivator.cpp
@@ -1,12 +1,9 @@
-#include "tao/Utils/Implicit_Deactivator.h"
+#include "Implicit_Deactivator.h"
#include "tao/PortableServer/Servant_Base.h"
ACE_RCSID (Utils,
Implicit_Deactivator,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO::Utils::Implicit_Deactivation_Functor::operator () (
PortableServer::ServantBase * servant)
@@ -34,5 +31,3 @@ TAO::Utils::Implicit_Deactivation_Functor::operator () (
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/Implicit_Deactivator.h b/TAO/tao/Utils/Implicit_Deactivator.h
index 68077296726..bb172759571 100644
--- a/TAO/tao/Utils/Implicit_Deactivator.h
+++ b/TAO/tao/Utils/Implicit_Deactivator.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Implicit_Deactivator.h
@@ -12,7 +11,7 @@
#ifndef TAO_UTILS_IMPLICIT_DEACTIVATOR_H
#define TAO_UTILS_IMPLICIT_DEACTIVATOR_H
#include /**/ "ace/pre.h"
-#include "tao/Utils/utils_export.h"
+#include "utils_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -22,7 +21,6 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/Auto_Functor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
@@ -57,7 +55,5 @@ namespace TAO
} // namespace Utils
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_UTILS_IMPLICIT_DEACTIVATOR_H*/
diff --git a/TAO/tao/Utils/ORB_Destroyer.cpp b/TAO/tao/Utils/ORB_Destroyer.cpp
index 8b8a74220ff..c3e198c9828 100644
--- a/TAO/tao/Utils/ORB_Destroyer.cpp
+++ b/TAO/tao/Utils/ORB_Destroyer.cpp
@@ -1,12 +1,9 @@
-#include "tao/Utils/ORB_Destroyer.h"
+#include "ORB_Destroyer.h"
ACE_RCSID (Utils,
ORB_Destroyer,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
TAO::Utils::ORB_Destroyer_Functor::operator() (CORBA::ORB_ptr orb)
ACE_THROW_SPEC (())
@@ -23,5 +20,3 @@ TAO::Utils::ORB_Destroyer_Functor::operator() (CORBA::ORB_ptr orb)
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/ORB_Destroyer.h b/TAO/tao/Utils/ORB_Destroyer.h
index 920ba64d3e5..6e414d99ead 100644
--- a/TAO/tao/Utils/ORB_Destroyer.h
+++ b/TAO/tao/Utils/ORB_Destroyer.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file ORB_Destroyer.h
@@ -12,7 +11,7 @@
#ifndef TAO_UTILS_ORB_DESTROYER_H
#define TAO_UTILS_ORB_DESTROYER_H
#include /**/ "ace/pre.h"
-#include "tao/Utils/utils_export.h"
+#include "utils_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,8 +20,6 @@
#include "tao/ORB.h"
#include "ace/Auto_Functor.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Utils
@@ -56,7 +53,5 @@ namespace TAO
} // namespace Utils
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_UTILS_ORB_DESTROYER_H*/
diff --git a/TAO/tao/Utils/ORB_Manager.cpp b/TAO/tao/Utils/ORB_Manager.cpp
index 7485985f09b..08618700659 100644
--- a/TAO/tao/Utils/ORB_Manager.cpp
+++ b/TAO/tao/Utils/ORB_Manager.cpp
@@ -10,7 +10,7 @@
//
// ============================================================================
-#include "tao/Utils/ORB_Manager.h"
+#include "ORB_Manager.h"
#include "tao/PortableServer/POAManagerC.h"
#include "tao/PortableServer/IdAssignmentPolicyC.h"
@@ -25,9 +25,6 @@ ACE_RCSID (PortableServer,
ORB_Manager,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// constructor
TAO_ORB_Manager::TAO_ORB_Manager (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa,
@@ -367,5 +364,3 @@ TAO_ORB_Manager::~TAO_ORB_Manager (void)
}
ACE_ENDTRY;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/ORB_Manager.h b/TAO/tao/Utils/ORB_Manager.h
index 520ca1af26e..a181e1c5d12 100644
--- a/TAO/tao/Utils/ORB_Manager.h
+++ b/TAO/tao/Utils/ORB_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,7 +14,7 @@
#define TAO_ORB_MANAGER_H
#include /**/ "ace/pre.h"
-#include "tao/Utils/utils_export.h"
+#include "utils_export.h"
#include "tao/PortableServer/PortableServer.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -23,8 +23,6 @@
#include "tao/ORB.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_ORB_Manager
*
@@ -251,7 +249,6 @@ protected:
PortableServer::POAManager_var poa_manager_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_ORB_MANAGER_H */
diff --git a/TAO/tao/Utils/PolicyList_Destroyer.cpp b/TAO/tao/Utils/PolicyList_Destroyer.cpp
index 426d841991c..e2aaab09b5e 100644
--- a/TAO/tao/Utils/PolicyList_Destroyer.cpp
+++ b/TAO/tao/Utils/PolicyList_Destroyer.cpp
@@ -1,16 +1,14 @@
-#include "tao/Utils/PolicyList_Destroyer.h"
+#include "PolicyList_Destroyer.h"
#include "tao/Environment.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Utils/PolicyList_Destroyer.inl"
+# include "PolicyList_Destroyer.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Utils,
PolicyList_Deactivator,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer()
ACE_THROW_SPEC (())
{
@@ -37,5 +35,3 @@ TAO::Utils::PolicyList_Destroyer::~PolicyList_Destroyer()
(*this)[i] = CORBA::Policy::_nil();
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/PolicyList_Destroyer.h b/TAO/tao/Utils/PolicyList_Destroyer.h
index ef2ef408805..7fdb607652d 100644
--- a/TAO/tao/Utils/PolicyList_Destroyer.h
+++ b/TAO/tao/Utils/PolicyList_Destroyer.h
@@ -11,7 +11,7 @@
#ifndef TAO_UTILS_POLICYLIST_DESTROYER_H
#define TAO_UTILS_POLICYLIST_DESTROYER_H
#include /**/ "ace/pre.h"
-#include "tao/Utils/utils_export.h"
+#include "utils_export.h"
#include "tao/PolicyC.h"
@@ -19,8 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Utils
@@ -44,10 +42,8 @@ namespace TAO
} // namespace Utils
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Utils/PolicyList_Destroyer.inl"
+# include "PolicyList_Destroyer.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Utils/PolicyList_Destroyer.inl b/TAO/tao/Utils/PolicyList_Destroyer.inl
index a93e6334c87..1bc3d224276 100644
--- a/TAO/tao/Utils/PolicyList_Destroyer.inl
+++ b/TAO/tao/Utils/PolicyList_Destroyer.inl
@@ -1,13 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO::Utils::PolicyList_Destroyer::PolicyList_Destroyer (CORBA::ULong length_hint)
: CORBA::PolicyList(length_hint)
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/RIR_Narrow.cpp b/TAO/tao/Utils/RIR_Narrow.cpp
index fad7ef86477..18299880b5a 100644
--- a/TAO/tao/Utils/RIR_Narrow.cpp
+++ b/TAO/tao/Utils/RIR_Narrow.cpp
@@ -1,15 +1,15 @@
-// $Id$
-
#ifndef TAO_UTILS_RIR_NARROW_CPP
#define TAO_UTILS_RIR_NARROW_CPP
-#include "tao/Utils/RIR_Narrow.h"
+#include "RIR_Narrow.h"
#include "tao/SystemException.h"
#if defined (ACE_HAS_EXCEPTIONS)
#include <stdexcept>
#endif
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (Utils,
+ RIR_Narror,
+ "$Id$")
template<class T> typename TAO::Utils::RIR_Narrow<T>::_ptr_type
TAO::Utils::RIR_Narrow<T>::narrow (CORBA::ORB_ptr orb,
@@ -55,6 +55,4 @@ TAO::Utils::RIR_Narrow<T>::narrow_object (CORBA::Object_ptr object
return narrowed_object._retn ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /*TAO_UTILS_RIR_NARROW_CPP*/
diff --git a/TAO/tao/Utils/RIR_Narrow.h b/TAO/tao/Utils/RIR_Narrow.h
index fdeba60f91e..24a7ad5c089 100644
--- a/TAO/tao/Utils/RIR_Narrow.h
+++ b/TAO/tao/Utils/RIR_Narrow.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file RIR_Narrow.h
@@ -24,8 +23,6 @@
#include "tao/PI/PI.h"
#include "tao/ORB.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Utils
@@ -63,11 +60,8 @@ namespace TAO
} // namespace Utils
} // namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-# include "tao/Utils/RIR_Narrow.cpp"
+# include "RIR_Narrow.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Utils/Servant_Var.cpp b/TAO/tao/Utils/Servant_Var.cpp
index 1506ae356bc..a6f63b15d51 100644
--- a/TAO/tao/Utils/Servant_Var.cpp
+++ b/TAO/tao/Utils/Servant_Var.cpp
@@ -1,10 +1,10 @@
#ifndef TAO_UTILS_SERVANT_VAR_CPP
#define TAO_UTILS_SERVANT_VAR_CPP
-#include "tao/Utils/Servant_Var.h"
+#include "Servant_Var.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Utils/Servant_Var.inl"
+# include "Servant_Var.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Utils,
diff --git a/TAO/tao/Utils/Servant_Var.h b/TAO/tao/Utils/Servant_Var.h
index 9fc8f6cb920..8655ddb9a07 100644
--- a/TAO/tao/Utils/Servant_Var.h
+++ b/TAO/tao/Utils/Servant_Var.h
@@ -21,8 +21,6 @@
#include "ace/CORBA_macros.h"
#include "tao/Environment.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace Utils
@@ -140,7 +138,6 @@ namespace TAO
T * ptr_;
};
-#ifndef ACE_LACKS_MEMBER_TEMPLATES
/// Compare two Servant_Vars for equivalence.
template <class X, class Y>
bool operator==(Servant_Var<X> const & x,
@@ -150,19 +147,16 @@ namespace TAO
template <class X, class Y>
bool operator!=(Servant_Var<X> const & x,
Servant_Var<Y> const & y);
-#endif /* ! ACE_LACKS_MEMBER_TEMPLATES */
} // namespace Utils
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Utils/Servant_Var.inl"
+# include "Servant_Var.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Utils/Servant_Var.cpp"
+#include "Servant_Var.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Utils/Servant_Var.inl b/TAO/tao/Utils/Servant_Var.inl
index be906d9982f..8716ed46cdf 100644
--- a/TAO/tao/Utils/Servant_Var.inl
+++ b/TAO/tao/Utils/Servant_Var.inl
@@ -5,8 +5,6 @@
#include "tao/Exception.h"
#include "ace/Swap.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T>
ACE_INLINE T *
TAO::Utils::Servant_Var<T>::_duplicate (T * p)
@@ -64,16 +62,8 @@ template <class T>
ACE_INLINE typename TAO::Utils::Servant_Var<T> &
TAO::Utils::Servant_Var<T>::operator= (T * p)
{
- if (this->ptr_ != p)
- {
- // This constructor doesn't increase the reference count so we
- // we must check for self-assignment. Otherwise the reference
- // count would be prematurely decremented upon exiting this
- // scope.
- TAO::Utils::Servant_Var<T> tmp (p);
- this->swap (tmp);
- }
-
+ TAO::Utils::Servant_Var<T> tmp (p);
+ this->swap (tmp);
return *this;
}
@@ -127,16 +117,8 @@ template <class T> template <class Y>
ACE_INLINE typename TAO::Utils::Servant_Var<T> &
TAO::Utils::Servant_Var<T>::operator= (Y * p)
{
- if (this->ptr_ != p)
- {
- // This constructor doesn't increase the reference count so we
- // we must check for self-assignment. Otherwise the reference
- // count would be prematurely decremented upon exiting this
- // scope.
- TAO::Utils::Servant_Var<T> tmp (p);
- this->swap (tmp);
- }
-
+ TAO::Utils::Servant_Var<T> tmp (p);
+ this->swap (tmp);
return *this;
}
#endif /* ACE_LACKS_MEMBER_TEMPLATES */
@@ -205,7 +187,6 @@ TAO::Utils::Servant_Var<T>::_retn (void)
return rval;
}
-#ifndef ACE_LACKS_MEMBER_TEMPLATES
template <class X, class Y>
ACE_INLINE bool
operator== (typename TAO::Utils::Servant_Var<X> const & x,
@@ -221,6 +202,3 @@ operator!= (typename TAO::Utils::Servant_Var<X> const & x,
{
return x.in () != y.in ();
}
-#endif /* ! ACE_LACKS_MEMBER_TEMPLATES */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/Server_Main.cpp b/TAO/tao/Utils/Server_Main.cpp
index da47ec1e8df..b1e44418fae 100644
--- a/TAO/tao/Utils/Server_Main.cpp
+++ b/TAO/tao/Utils/Server_Main.cpp
@@ -15,7 +15,13 @@
#ifndef TAO_UTILS_SERVER_MAIN_T_CPP
#define TAO_UTILS_SERVER_MAIN_T_CPP
-#include "tao/Utils/Server_Main.h"
+#include "Server_Main.h"
+
+
+ACE_RCSID (Utils,
+ Server_Main,
+ "$Id$")
+
#include "tao/ORB.h"
@@ -24,8 +30,6 @@
#include "ace/Time_Value.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <typename SERVANT>
TAO::Utils::Server_Main<SERVANT>::Server_Main (const char * name)
: name_(name)
@@ -130,6 +134,4 @@ TAO::Utils::Server_Main<SERVANT>::run (int argc, ACE_TCHAR *argv[])
return result;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif //TAO_UTILS_SERVER_MAIN_T_CPP
diff --git a/TAO/tao/Utils/Server_Main.h b/TAO/tao/Utils/Server_Main.h
index c5d3ea2d825..99016b8052c 100644
--- a/TAO/tao/Utils/Server_Main.h
+++ b/TAO/tao/Utils/Server_Main.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Server_Main.h
@@ -50,18 +49,12 @@
#ifndef TAO_UTILS_SERVANTMAIN_H
#define TAO_UTILS_SERVANTMAIN_H
-#include /**/ "ace/pre.h"
-
-#include "ace/ACE.h"
-
+#include <ace/ACE.h>
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/orbconf.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+#include /**/ <ace/pre.h>
namespace TAO
{
namespace Utils
@@ -85,16 +78,14 @@ namespace TAO
} // namespace UTILS
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-# include "tao/Utils/Server_Main.cpp"
+# include "Server_Main.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
# pragma implementation "Server_Main.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-#include /**/ "ace/post.h"
+#include /**/ <ace/post.h>
#endif //TAO_UTILS_SERVANTMAIN_H
diff --git a/TAO/tao/Utils/Synch_Refcountable.cpp b/TAO/tao/Utils/Synch_Refcountable.cpp
index 4b132799b70..2b79deb80e0 100644
--- a/TAO/tao/Utils/Synch_Refcountable.cpp
+++ b/TAO/tao/Utils/Synch_Refcountable.cpp
@@ -1,7 +1,7 @@
-#include "tao/Utils/Synch_Refcountable.h"
+#include "Synch_Refcountable.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Utils/Synch_Refcountable.inl"
+# include "Synch_Refcountable.inl"
#endif /* __ACE_INLINE__ */
#include "ace/Log_Msg.h"
@@ -10,9 +10,6 @@ ACE_RCSID (Utils,
Synch_Refcountable,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Synch_Refcountable::TAO_Synch_Refcountable (ACE_Lock *lock,
int refcount)
: ACE_Refcountable (refcount)
@@ -25,5 +22,3 @@ TAO_Synch_Refcountable::~TAO_Synch_Refcountable (void)
ACE_ASSERT (this->refcount_ == 0);
delete this->refcount_lock_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Utils/Synch_Refcountable.h b/TAO/tao/Utils/Synch_Refcountable.h
index 3e77a70c4c3..0e18e9402eb 100644
--- a/TAO/tao/Utils/Synch_Refcountable.h
+++ b/TAO/tao/Utils/Synch_Refcountable.h
@@ -1,3 +1,4 @@
+// This may look like C, but it's really
// -*- C++ -*-
//=============================================================================
@@ -22,14 +23,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Utils/utils_export.h"
-#include "tao/Versioned_Namespace.h"
+#include "utils_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Lock;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Synch_Refcountable
@@ -52,10 +48,9 @@ protected:
ACE_Lock *refcount_lock_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
-# include "tao/Utils/Synch_Refcountable.inl"
+# include "Synch_Refcountable.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Utils/Synch_Refcountable.inl b/TAO/tao/Utils/Synch_Refcountable.inl
index 2139918ab50..2f4cc32778d 100644
--- a/TAO/tao/Utils/Synch_Refcountable.inl
+++ b/TAO/tao/Utils/Synch_Refcountable.inl
@@ -1,11 +1,8 @@
// -*- C++ -*-
-//
//$Id$
#include "ace/Guard_T.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
TAO_Synch_Refcountable::increment (void)
{
@@ -25,5 +22,3 @@ TAO_Synch_Refcountable::refcount (void) const
{
return ACE_Refcountable::refcount ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/AbstractBase.cpp b/TAO/tao/Valuetype/AbstractBase.cpp
index 2af762b5c00..e8f0d633759 100644
--- a/TAO/tao/Valuetype/AbstractBase.cpp
+++ b/TAO/tao/Valuetype/AbstractBase.cpp
@@ -1,8 +1,8 @@
// "$Id$"
-#include "tao/Valuetype/AbstractBase.h"
-#include "tao/Valuetype/ValueBase.h"
-#include "tao/Valuetype/ValueFactory.h"
+#include "AbstractBase.h"
+#include "ValueBase.h"
+#include "ValueFactory.h"
#include "tao/Stub.h"
#include "tao/ORB_Core.h"
#include "tao/Profile.h"
@@ -10,15 +10,13 @@
#include "tao/CDR.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Valuetype/AbstractBase.inl"
+# include "AbstractBase.inl"
#endif /* ! __ACE_INLINE__ */
ACE_RCSID (Valuetype,
AbstractBase,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ************************************************************
// These are in CORBA namespace
@@ -427,5 +425,3 @@ CORBA::AbstractBase::equivalent_objref (void)
return this->equivalent_obj_.in ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/AbstractBase.h b/TAO/tao/Valuetype/AbstractBase.h
index cc00f37a969..a57c18bf05d 100644
--- a/TAO/tao/Valuetype/AbstractBase.h
+++ b/TAO/tao/Valuetype/AbstractBase.h
@@ -15,7 +15,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Valuetype/valuetype_export.h"
+#include "valuetype_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,8 +29,6 @@
#include "tao/Pseudo_VarOut_T.h"
#include "ace/CORBA_macros.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Stub;
class TAO_Abstract_ServantBase;
@@ -167,10 +165,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Valuetype/AbstractBase.inl"
+# include "AbstractBase.inl"
#endif /* __ACE_INLINE__) */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Valuetype/AbstractBase.inl b/TAO/tao/Valuetype/AbstractBase.inl
index a983ded4ec8..8bc52ccfce3 100644
--- a/TAO/tao/Valuetype/AbstractBase.inl
+++ b/TAO/tao/Valuetype/AbstractBase.inl
@@ -4,8 +4,6 @@
#include "ace/OS_NS_string.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::AbstractBase_ptr
CORBA::AbstractBase::_nil (void)
@@ -54,5 +52,3 @@ CORBA::AbstractBase::_is_local (void) const
{
return this->is_local_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.cpp b/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.cpp
index a0212ddde94..fc1ea235c85 100644
--- a/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.cpp
+++ b/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.cpp
@@ -1,13 +1,11 @@
//$Id$
-#include "tao/Valuetype/AbstractBase_Invocation_Adapter.h"
-#include "tao/Valuetype/AbstractBase.h"
+#include "AbstractBase_Invocation_Adapter.h"
+#include "AbstractBase.h"
ACE_RCSID (Valuetype,
AbstractBase_Invocation_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
AbstractBase_Invocation_Adapter::AbstractBase_Invocation_Adapter (
@@ -30,5 +28,3 @@ namespace TAO
{
}
} // End namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h b/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h
index afac495a54f..cb510f0ded5 100644
--- a/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h
+++ b/TAO/tao/Valuetype/AbstractBase_Invocation_Adapter.h
@@ -13,7 +13,7 @@
#define TAO_ABSTRACTBASE_INVOCATION_ADAPTER_H
#include /**/ "ace/pre.h"
-#include "tao/Valuetype/valuetype_export.h"
+#include "valuetype_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -21,8 +21,6 @@
#include "tao/Invocation_Adapter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class AbstractBase;
@@ -56,19 +54,14 @@ namespace TAO
TAO::Invocation_Mode mode = TAO_SYNCHRONOUS_INVOCATION);
private:
- // Don't allow default initializations
- AbstractBase_Invocation_Adapter (void);
-
- // Disallow copying and assignment.
- AbstractBase_Invocation_Adapter (const AbstractBase_Invocation_Adapter &);
- AbstractBase_Invocation_Adapter & operator= (
- const AbstractBase_Invocation_Adapter &);
+ /// Dont allow default initializations
+ ACE_UNIMPLEMENTED_FUNC (AbstractBase_Invocation_Adapter (void))
+ ACE_UNIMPLEMENTED_FUNC (AbstractBase_Invocation_Adapter & operator= (
+ const AbstractBase_Invocation_Adapter &))
};
} // End namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
-
-#endif /* TAO_INVOCATION_ADAPTER_H */
+#endif /*TAO_INVOCATION_ADAPTER_H*/
diff --git a/TAO/tao/Valuetype/AbstractBase_T.cpp b/TAO/tao/Valuetype/AbstractBase_T.cpp
index 6b80c96b8b3..03308da8ae6 100644
--- a/TAO/tao/Valuetype/AbstractBase_T.cpp
+++ b/TAO/tao/Valuetype/AbstractBase_T.cpp
@@ -1,14 +1,14 @@
// $Id$
+#ifndef TAO_ABSTRACT_BASE_T_C
+#define TAO_ABSTRACT_BASE_T_C
-#ifndef TAO_ABSTRACT_BASE_T_CPP
-#define TAO_ABSTRACT_BASE_T_CPP
-
-#include "tao/Valuetype/AbstractBase_T.h"
-#include "tao/Valuetype/AbstractBase.h"
+#include "AbstractBase_T.h"
+#include "AbstractBase.h"
#include "tao/Stub.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
+ACE_RCSID (Valuetype,
+ Abstractbase_T,
+ "$Id$")
namespace TAO
{
template<typename T> T *
@@ -102,7 +102,6 @@ namespace TAO
collocated ? 1 : 0,
obj->_servant ()),
CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (proxy);
}
else
{
@@ -114,6 +113,4 @@ namespace TAO
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_ABSTRACT_BASE_T_CPP */
+#endif /*TAO_ABSTRACT_BASE_T_C*/
diff --git a/TAO/tao/Valuetype/AbstractBase_T.h b/TAO/tao/Valuetype/AbstractBase_T.h
index dced03cf334..e7ec925f828 100644
--- a/TAO/tao/Valuetype/AbstractBase_T.h
+++ b/TAO/tao/Valuetype/AbstractBase_T.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class AbstractBase;
@@ -51,10 +49,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Valuetype/AbstractBase_T.cpp"
+#include "AbstractBase_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Valuetype/Sequence_T.cpp b/TAO/tao/Valuetype/Sequence_T.cpp
index d69116d7704..a7c0b243a3b 100644
--- a/TAO/tao/Valuetype/Sequence_T.cpp
+++ b/TAO/tao/Valuetype/Sequence_T.cpp
@@ -1,21 +1,18 @@
// $Id$
-#ifndef TAO_VALUETYPE_SEQUENCE_T_CPP
-#define TAO_VALUETYPE_SEQUENCE_T_CPP
+#ifndef TAO_VALUETYPE_SEQUENCE_T_C
+#define TAO_VALUETYPE_SEQUENCE_T_C
-#include "tao/Valuetype/Sequence_T.h"
+#include "Sequence_T.h"
#if !defined (__ACE_INLINE__)
-#include "tao/Valuetype/Sequence_T.inl"
+#include "Sequence_T.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID (Valuetype,
Sequence_T,
"$Id$")
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// class TAO_Valuetype_Manager
// *************************************************************
@@ -499,6 +496,4 @@ TAO_Bounded_Valuetype_Sequence<T,T_var,MAX>::_shrink_buffer (
}
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_VALUETYPE_SEQUENCE_T_CPP */
+#endif /* TAO_VALUETYPE_SEQUENCE_T_C */
diff --git a/TAO/tao/Valuetype/Sequence_T.h b/TAO/tao/Valuetype/Sequence_T.h
index a893546ac7b..47e9a8274ef 100644
--- a/TAO/tao/Valuetype/Sequence_T.h
+++ b/TAO/tao/Valuetype/Sequence_T.h
@@ -16,14 +16,11 @@
#include /**/ "ace/pre.h"
#include "tao/Sequence.h"
-#include "tao/Valuetype/Value_VarOut_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename T, typename T_var>
class TAO_Unbounded_Valuetype_Sequence;
@@ -236,10 +233,8 @@ public:
CORBA::ULong old_length);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Valuetype/Sequence_T.inl"
+#include "Sequence_T.inl"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -248,7 +243,7 @@ TAO_END_VERSIONED_NAMESPACE_DECL
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Valuetype/Sequence_T.cpp"
+#include "Sequence_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Valuetype/Sequence_T.inl b/TAO/tao/Valuetype/Sequence_T.inl
index 503beaa3ad9..4eb80326837 100644
--- a/TAO/tao/Valuetype/Sequence_T.inl
+++ b/TAO/tao/Valuetype/Sequence_T.inl
@@ -6,8 +6,6 @@
#include "ace/Log_Msg.h" // for ACE_ASSERT
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// *************************************************************
// Inline operations for class TAO_Valuetype_Manager
// *************************************************************
@@ -167,5 +165,3 @@ TAO_Bounded_Valuetype_Sequence<T,T_var,MAX>::operator[] (
T ** const tmp = reinterpret_cast<T ** ACE_CAST_CONST> (this->buffer_);
return TAO_Valuetype_Manager<T,T_var> (tmp + slot, this->release_);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/StringValueC.cpp b/TAO/tao/Valuetype/StringValueC.cpp
index 836192bc71a..bb93ab70c34 100644
--- a/TAO/tao/Valuetype/StringValueC.cpp
+++ b/TAO/tao/Valuetype/StringValueC.cpp
@@ -39,7 +39,7 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/AnyTypeCode/Any_Impl_T.h"
-#include "tao/Valuetype/StringValueC.h"
+#include "StringValueC.h"
#include "tao/Valuetype/ValueFactory.h"
#include "tao/CDR.h"
@@ -48,14 +48,12 @@
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
-#include "tao/Valuetype/StringValueC.inl"
+#include "StringValueC.inl"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// .\be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -80,16 +78,18 @@ namespace CORBA
&_tao_tc_CORBA_StringValue;
}
-// TAO_IDL - Generated from
-// c:\projects\ace_cvs\ace_wrappers\tao\tao_idl\be\be_visitor_valuebox/valuebox_cs.cpp:63
-CORBA::StringValue::~StringValue (void)
-{
-}
+// TAO_IDL - Generated from
+// c:\projects\ace_cvs\ace_wrappers\tao\tao_idl\be\be_visitor_valuebox/valuebox_cs.cpp:63
CORBA::StringValue *
CORBA::StringValue::_downcast (CORBA::ValueBase *v)
{
+ if (v == 0)
+ {
+ return 0;
+ }
+
return dynamic_cast< ::CORBA::StringValue * > (v);
}
@@ -166,13 +166,14 @@ namespace CORBA
// TAO_IDL - Generated from
// c:\projects\ace_cvs\ace_wrappers\tao\tao_idl\be\be_visitor_valuebox/valuebox_cs.cpp:63
-CORBA::WStringValue::~WStringValue (void)
-{
-}
-
CORBA::WStringValue *
CORBA::WStringValue::_downcast (CORBA::ValueBase *v)
{
+ if (v == 0)
+ {
+ return 0;
+ }
+
return dynamic_cast< ::CORBA::WStringValue * > (v);
}
@@ -401,4 +402,3 @@ operator>> (
return CORBA::WStringValue::_tao_unmarshal (strm, _tao_valuebox);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/StringValueC.h b/TAO/tao/Valuetype/StringValueC.h
index a0b9b69b3a8..19a0ffd5d62 100644
--- a/TAO/tao/Valuetype/StringValueC.h
+++ b/TAO/tao/Valuetype/StringValueC.h
@@ -40,7 +40,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Valuetype/valuetype_export.h"
+#include "valuetype_export.h"
#include "tao/Valuetype/ValueBase.h"
#include "tao/CDR.h"
#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
@@ -66,8 +66,6 @@
// TAO_IDL - Generated from
// c:\projects\ace_cvs\ace_wrappers\tao\tao_idl\be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -307,10 +305,8 @@ TAO_Valuetype_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::WStringVa
// TAO_IDL - Generated from
// .\be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/Valuetype/StringValueC.inl"
+#include "StringValueC.inl"
#endif /* defined INLINE */
#if defined(_MSC_VER)
diff --git a/TAO/tao/Valuetype/StringValueC.inl b/TAO/tao/Valuetype/StringValueC.inl
index adf7b097030..493e7c34af6 100644
--- a/TAO/tao/Valuetype/StringValueC.inl
+++ b/TAO/tao/Valuetype/StringValueC.inl
@@ -29,13 +29,15 @@
// TAO_IDL - Generated from
// c:\projects\ace_cvs\ace_wrappers\tao\tao_idl\be\be_visitor_valuebox/valuebox_ci.cpp:332
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
CORBA::StringValue::StringValue (void)
{}
ACE_INLINE
+CORBA::StringValue::~StringValue (void)
+{}
+
+ACE_INLINE
CORBA::StringValue::StringValue (CORBA::Char * val)
{
this->_pd_value = val;
@@ -168,6 +170,10 @@ CORBA::WStringValue::WStringValue (void)
{}
ACE_INLINE
+CORBA::WStringValue::~WStringValue (void)
+{}
+
+ACE_INLINE
CORBA::WStringValue::WStringValue (CORBA::WChar * val)
{
this->_pd_value = val;
@@ -291,4 +297,3 @@ CORBA::WStringValue::_tao_unmarshal_v (TAO_InputCDR & )
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/ValueBase.cpp b/TAO/tao/Valuetype/ValueBase.cpp
index d7c325203d8..b7496f3e6cb 100644
--- a/TAO/tao/Valuetype/ValueBase.cpp
+++ b/TAO/tao/Valuetype/ValueBase.cpp
@@ -5,8 +5,8 @@
#include "tao/AnyTypeCode/Value_TypeCode_Static.h"
#include "tao/AnyTypeCode/TypeCode_Constants.h"
-#include "tao/Valuetype/ValueBase.h"
-#include "tao/Valuetype/ValueFactory.h"
+#include "ValueBase.h"
+#include "ValueFactory.h"
#include "tao/CDR.h"
#include "tao/ORB.h"
@@ -15,7 +15,7 @@
#include "ace/OS_NS_string.h"
#if !defined (__ACE_INLINE__)
-# include "tao/Valuetype/ValueBase.inl"
+# include "ValueBase.inl"
#endif /* ! __ACE_INLINE__ */
@@ -24,8 +24,6 @@ ACE_RCSID (Valuetype,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Static operations in namespace CORBA.
void
@@ -175,6 +173,7 @@ CORBA::ValueBase::_tao_unmarshal (TAO_InputCDR &strm,
// new_object->_tao_unmarshal_v ()
// new_object->_tao_unmarshal_post ()
+// CORBA::ValueBase *base = 0;
CORBA::ValueFactory_var factory;
CORBA::Boolean retval =
CORBA::ValueBase::_tao_unmarshal_pre (strm,
@@ -193,14 +192,14 @@ CORBA::ValueBase::_tao_unmarshal (TAO_InputCDR &strm,
if (new_object == 0)
{
- return false; // %! except.?
+ return 0; // %! except.?
}
retval = new_object->_tao_unmarshal_v (strm);
if (retval == 0)
{
- return false;
+ return 0;
}
}
@@ -240,7 +239,7 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
if (TAO_OBV_GIOP_Flags::is_null_ref (value_tag))
{
valuetype = 0;
- return true;
+ return 1;
// ok, null reference unmarshaled
}
// 2. Now at this point it must be a <value-tag> (error else).
@@ -285,11 +284,11 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
{
CORBA::String_var repo_id_stream;
- CORBA::ULong length = 0;
+ CORBA::ULong length;
if (!strm.read_ulong (length))
{
- return false;
+ return 0;
}
// 'length' may not be the repo id length - it could be the
@@ -301,7 +300,7 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
// Read the negative byte offset
if (!strm.read_long (offset) || offset >= 0)
{
- return false;
+ return 0;
}
// Cribbed from tc_demarshal_indirection in Typecode_CDR_Extraction.cpp
@@ -311,7 +310,7 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
if (!indir_stream.good_bit ())
{
- return false;
+ return 0;
}
indir_stream.read_string(repo_id_stream.inout ());
@@ -325,7 +324,7 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
0);
if (!strm.read_char_array (repo_id_stream.inout (), length))
{
- return false;
+ return 0;
}
}
else if (length == 0)
@@ -337,7 +336,7 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
}
else
{
- return false;
+ return 0;
}
}
@@ -345,17 +344,11 @@ CORBA::ValueBase::_tao_unmarshal_pre (TAO_InputCDR &strm,
orb_core->orb ()->lookup_value_factory (repo_id_stream.in ());
}
- if (factory == 0)
+ if (factory == 0) // %! except.!
{
- if (TAO_debug_level > 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%N:%l) ERROR: OBV factory is null for <%s>!\n"),
- repo_id));
- }
- ACE_THROW_RETURN (CORBA::MARSHAL (CORBA::OMGVMCID | 1,
- CORBA::COMPLETED_MAYBE),
- false);
+ ACE_DEBUG ((LM_ERROR,
+ ACE_TEXT ("(%N:%l) OBV factory is null !!!\n")));
+ return false;
}
return retval;
@@ -616,5 +609,3 @@ namespace TAO
CORBA::remove_ref (p);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/ValueBase.h b/TAO/tao/Valuetype/ValueBase.h
index 55360627f05..745bfad5d53 100644
--- a/TAO/tao/Valuetype/ValueBase.h
+++ b/TAO/tao/Valuetype/ValueBase.h
@@ -41,8 +41,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Valuetype_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class ValueFactoryBase;
@@ -233,6 +231,7 @@ namespace TAO
{
};
+
template<>
struct TAO_Valuetype_Export Value_Traits<CORBA::ValueBase>
{
@@ -245,10 +244,8 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Valuetype/ValueBase.inl"
+# include "ValueBase.inl"
#endif /* __ACE_INLINE__*/
#include /**/ "ace/post.h"
diff --git a/TAO/tao/Valuetype/ValueBase.inl b/TAO/tao/Valuetype/ValueBase.inl
index 2d15b4a0d19..3b7d66658b5 100644
--- a/TAO/tao/Valuetype/ValueBase.inl
+++ b/TAO/tao/Valuetype/ValueBase.inl
@@ -4,8 +4,6 @@
// Detection of flags in the CDR Stream
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE CORBA::Boolean
TAO_OBV_GIOP_Flags::is_null_ref (CORBA::ULong tag)
{
@@ -71,5 +69,3 @@ TAO_OBV_GIOP_Flags::is_end_tag (CORBA::ULong tag)
{
return (0x80000000L < tag);
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/ValueFactory.cpp b/TAO/tao/Valuetype/ValueFactory.cpp
index 473780b8790..37a8bf6cb79 100644
--- a/TAO/tao/Valuetype/ValueFactory.cpp
+++ b/TAO/tao/Valuetype/ValueFactory.cpp
@@ -1,12 +1,10 @@
-#include "tao/Valuetype/ValueFactory.h"
+#include "ValueFactory.h"
#include "ace/Guard_T.h"
ACE_RCSID (Valuetype,
ValueFactory,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Static operations in namespace CORBA.
void
@@ -83,5 +81,3 @@ namespace TAO
CORBA::remove_ref (p);
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype/ValueFactory.h b/TAO/tao/Valuetype/ValueFactory.h
index 0935bba77a4..678a86be8ac 100644
--- a/TAO/tao/Valuetype/ValueFactory.h
+++ b/TAO/tao/Valuetype/ValueFactory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -15,15 +15,14 @@
#include /**/ "ace/pre.h"
-#include "tao/Valuetype/valuetype_export.h"
+#include "valuetype_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Valuetype/Value_VarOut_T.h"
+#include "Value_VarOut_T.h"
-#include "tao/Environment.h"
#include "tao/Basic_Types.h"
#include "tao/orbconf.h"
#include "ace/Synch_Traits.h"
@@ -31,8 +30,7 @@
#include "ace/Null_Mutex.h"
#include "ace/CORBA_macros.h"
#include "ace/Atomic_Op.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Environment.h"
namespace CORBA
{
@@ -51,6 +49,7 @@ namespace CORBA
typedef ValueFactoryBase_var ValueFactory_var;
+
class TAO_Valuetype_Export ValueFactoryBase
{
public:
@@ -94,10 +93,7 @@ namespace TAO
static void release (CORBA::ValueFactoryBase *);
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-// Use this macro for writing code that is independent from
+// Use this macro for writing code that is independend from
// the compiler support of covariant return types of pointers to
// virtual inherited classes.
// (e.g. in egcs-2.90.29 980515 (egcs-1.0.3 release) its not yet implemented)
diff --git a/TAO/tao/Valuetype/ValueFactory_Map.cpp b/TAO/tao/Valuetype/ValueFactory_Map.cpp
index 674c1764bab..520c35c9288 100644
--- a/TAO/tao/Valuetype/ValueFactory_Map.cpp
+++ b/TAO/tao/Valuetype/ValueFactory_Map.cpp
@@ -1,5 +1,5 @@
-#include "tao/Valuetype/ValueFactory_Map.h"
-#include "tao/Valuetype/ValueFactory.h"
+#include "ValueFactory_Map.h"
+#include "ValueFactory.h"
#include "tao/CORBA_String.h"
#include "tao/TAO_Singleton.h"
@@ -9,8 +9,6 @@ ACE_RCSID (Valuetype,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ValueFactory_Map::TAO_ValueFactory_Map (void)
: map_ (TAO_DEFAULT_VALUE_FACTORY_TABLE_SIZE)
{
@@ -117,8 +115,6 @@ TAO_ValueFactory_Map::instance (void)
TAO_Singleton<TAO_ValueFactory_Map, TAO_SYNCH_MUTEX>::instance ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION)
template TAO_Singleton<TAO_ValueFactory_Map, TAO_SYNCH_MUTEX> * TAO_Singleton<TAO_ValueFactory_Map, TAO_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */
diff --git a/TAO/tao/Valuetype/ValueFactory_Map.h b/TAO/tao/Valuetype/ValueFactory_Map.h
index 69966836589..715f41cb3b6 100644
--- a/TAO/tao/Valuetype/ValueFactory_Map.h
+++ b/TAO/tao/Valuetype/ValueFactory_Map.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,10 +22,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "valuetype_export.h"
+
#include "ace/Hash_Map_Manager_T.h"
#include "ace/RW_Thread_Mutex.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
@@ -33,7 +34,7 @@ namespace CORBA
typedef ValueFactoryBase *ValueFactory;
}
-class TAO_ValueFactory_Map
+class TAO_Valuetype_Export TAO_ValueFactory_Map
{
public:
@@ -89,8 +90,6 @@ private:
*/
typedef TAO_ValueFactory_Map TAO_VALUEFACTORY_MAP;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_VALUEFACTORY_MAP_H */
diff --git a/TAO/tao/Valuetype/Value_CORBA_methods.h b/TAO/tao/Valuetype/Value_CORBA_methods.h
index 352c981ac76..e54e1262de7 100644
--- a/TAO/tao/Valuetype/Value_CORBA_methods.h
+++ b/TAO/tao/Valuetype/Value_CORBA_methods.h
@@ -17,7 +17,7 @@
#include /**/ "ace/pre.h"
-#include "tao/Valuetype/valuetype_export.h"
+#include "valuetype_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,8 +30,6 @@
#endif
#define TAO_EXPORT_MACRO TAO_Valuetype_Export
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class ValueBase;
@@ -48,8 +46,6 @@ namespace CORBA
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_VALUETYPE_CORBA_METHODS_H */
diff --git a/TAO/tao/Valuetype/Value_VarOut_T.cpp b/TAO/tao/Valuetype/Value_VarOut_T.cpp
index 5e5049b099f..884ec566468 100644
--- a/TAO/tao/Valuetype/Value_VarOut_T.cpp
+++ b/TAO/tao/Valuetype/Value_VarOut_T.cpp
@@ -6,9 +6,6 @@
#include "tao/Valuetype/Value_VarOut_T.h"
#include "tao/Valuetype/Value_CORBA_methods.h"
-#include <algorithm> /* For std::swap<>() */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template<typename T>
void
@@ -73,25 +70,23 @@ template <typename T>
TAO_Value_Var_T<T> &
TAO_Value_Var_T<T>::operator= (T * p)
{
- if (this->ptr_ != p)
- {
- // This constructor doesn't increase the reference count so we
- // we must check for self-assignment. Otherwise the reference
- // count would be prematurely decremented upon exiting this
- // scope.
- TAO_Value_Var_T<T> tmp (p);
- std::swap (this->ptr_, tmp.ptr_);
- }
-
+ TAO::Value_Traits<T>::remove_ref (this->ptr_);
+ this->ptr_ = p;
+ TAO::Value_Traits<T>::add_ref (p);
return *this;
}
template <typename T>
TAO_Value_Var_T<T> &
-TAO_Value_Var_T<T>::operator= (const TAO_Value_Var_T<T> & p)
+TAO_Value_Var_T<T>::operator= (const TAO_Value_Var_T & p)
{
- TAO_Value_Var_T<T> tmp (p);
- std::swap (this->ptr_, tmp.ptr_);
+ if (this != &p)
+ {
+ TAO::Value_Traits<T>::remove_ref (this->ptr_);
+ T * tmp = p.ptr ();
+ TAO::Value_Traits<T>::add_ref (tmp);
+ this->ptr_ = tmp;
+ }
return *this;
}
@@ -215,6 +210,4 @@ TAO_Value_Out_T<T>::operator-> (void)
return this->ptr_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif /* TAO_VALUE_VAROUT_T_CPP */
diff --git a/TAO/tao/Valuetype/Value_VarOut_T.h b/TAO/tao/Valuetype/Value_VarOut_T.h
index fcc36464fdf..9813e89452c 100644
--- a/TAO/tao/Valuetype/Value_VarOut_T.h
+++ b/TAO/tao/Valuetype/Value_VarOut_T.h
@@ -23,8 +23,6 @@
#include "tao/varbase.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -121,10 +119,8 @@ private:
T *& ptr_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "tao/Valuetype/Value_VarOut_T.cpp"
+#include "Value_VarOut_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
diff --git a/TAO/tao/Valuetype/Valuetype_Adapter_Impl.cpp b/TAO/tao/Valuetype/Valuetype_Adapter_Impl.cpp
index 19a2ec7f52f..279d75c5fc3 100644
--- a/TAO/tao/Valuetype/Valuetype_Adapter_Impl.cpp
+++ b/TAO/tao/Valuetype/Valuetype_Adapter_Impl.cpp
@@ -1,9 +1,9 @@
// $Id$
-#include "tao/Valuetype/Valuetype_Adapter_Impl.h"
-#include "tao/Valuetype/AbstractBase.h"
-#include "tao/Valuetype/ValueBase.h"
-#include "tao/Valuetype/ValueFactory_Map.h"
+#include "Valuetype_Adapter_Impl.h"
+#include "AbstractBase.h"
+#include "ValueBase.h"
+#include "ValueFactory_Map.h"
#include "tao/ORB_Core.h"
@@ -12,7 +12,11 @@ ACE_RCSID (Valuetype,
Valuetype_Adapter_Impl,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO_Valuetype_Adapter_Impl::TAO_Valuetype_Adapter_Impl (void)
+{
+
+}
TAO_Valuetype_Adapter_Impl::~TAO_Valuetype_Adapter_Impl (void)
{
@@ -92,8 +96,6 @@ TAO_Valuetype_Adapter_Impl::Initializer (void)
);
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (
TAO_Valuetype_Adapter_Impl,
ACE_TEXT ("Concrete_Valuetype_Adapter"),
diff --git a/TAO/tao/Valuetype/Valuetype_Adapter_Impl.h b/TAO/tao/Valuetype/Valuetype_Adapter_Impl.h
index e868321588c..a72771e6972 100644
--- a/TAO/tao/Valuetype/Valuetype_Adapter_Impl.h
+++ b/TAO/tao/Valuetype/Valuetype_Adapter_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -22,12 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Valuetype/valuetype_export.h"
+#include "valuetype_export.h"
#include "tao/Valuetype_Adapter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Valuetype_Adapter_Impl
*
@@ -41,7 +39,7 @@ class TAO_Valuetype_Export TAO_Valuetype_Adapter_Impl
: public TAO_Valuetype_Adapter
{
public:
-
+ TAO_Valuetype_Adapter_Impl (void);
virtual ~TAO_Valuetype_Adapter_Impl (void);
virtual CORBA::Object_ptr abstractbase_to_object (
@@ -69,14 +67,12 @@ public:
static int Initializer (void);
};
+ACE_STATIC_SVC_DECLARE (TAO_Valuetype_Adapter_Impl)
+ACE_FACTORY_DECLARE (TAO_Valuetype, TAO_Valuetype_Adapter_Impl)
+
static int
TAO_Requires_Valuetype_Initializer =
TAO_Valuetype_Adapter_Impl::Initializer ();
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-ACE_STATIC_SVC_DECLARE (TAO_Valuetype_Adapter_Impl)
-ACE_FACTORY_DECLARE (TAO_Valuetype, TAO_Valuetype_Adapter_Impl)
-
#include /**/ "ace/post.h"
#endif /* TAO_VALUETYPE_ADAPTER_IMPL_H */
diff --git a/TAO/tao/Valuetype_Adapter.cpp b/TAO/tao/Valuetype_Adapter.cpp
index 42cf8207876..62594d81764 100644
--- a/TAO/tao/Valuetype_Adapter.cpp
+++ b/TAO/tao/Valuetype_Adapter.cpp
@@ -1,4 +1,4 @@
-// $Id$
+// @(#) $Id$
#include "tao/Valuetype_Adapter.h"
@@ -6,10 +6,7 @@ ACE_RCSID (tao,
Valuetype_Adapter,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Valuetype_Adapter::~TAO_Valuetype_Adapter (void)
{
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Valuetype_Adapter.h b/TAO/tao/Valuetype_Adapter.h
index 3dff9f15929..a0386ccf7e6 100644
--- a/TAO/tao/Valuetype_Adapter.h
+++ b/TAO/tao/Valuetype_Adapter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "tao/TAO_Export.h"
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Object;
@@ -78,7 +76,5 @@ public:
virtual CORBA::ValueFactory vf_map_find (const char *) = 0;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_VALUETYPE_ADAPTER_H */
diff --git a/TAO/tao/VarOut_T.cpp b/TAO/tao/VarOut_T.cpp
index 85a31f687e4..618198edfad 100644
--- a/TAO/tao/VarOut_T.cpp
+++ b/TAO/tao/VarOut_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_VAROUT_T_CPP
-#define TAO_VAROUT_T_CPP
+#ifndef TAO_VAROUT_T_C
+#define TAO_VAROUT_T_C
#include "tao/VarOut_T.h"
@@ -9,12 +9,22 @@
#include "tao/VarOut_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ VarOut_T,
+ "$Id$")
template<typename T>
TAO_Var_Base_T<T>::TAO_Var_Base_T (const TAO_Var_Base_T<T> & p)
- : ptr_ (p.ptr_ ? new T (*p.ptr_) : 0)
{
+ if (p.ptr_)
+ {
+ ACE_NEW (this->ptr_,
+ T (*p.ptr_));
+ }
+ else
+ {
+ this->ptr_ = 0;
+ }
}
// *************************************************************
@@ -23,13 +33,29 @@ template<typename T>
TAO_Fixed_Var_T<T> &
TAO_Fixed_Var_T<T>::operator= (const TAO_Fixed_Var_T<T> & p)
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_Fixed_Var_T<T> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this != &p)
+ {
+ if (p.ptr_ == 0)
+ {
+ delete this->ptr_;
+ this->ptr_ = 0;
+ }
+ else
+ {
+ T * deep_copy = 0;
+ ACE_NEW_RETURN (deep_copy,
+ T (*p.ptr_),
+ *this);
+
+ if (deep_copy != 0)
+ {
+ T * tmp = deep_copy;
+ deep_copy = this->ptr_;
+ this->ptr_ = tmp;
+ delete deep_copy;
+ }
+ }
+ }
return *this;
}
@@ -39,13 +65,13 @@ template<typename T>
TAO_Fixed_Var_T<T> &
TAO_Fixed_Var_T<T>::operator= (const T & p)
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_Fixed_Var_T<T> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this->ptr_ != &p)
+ {
+ delete this->ptr_;
+ ACE_NEW_RETURN (this->ptr_,
+ T (p),
+ *this);
+ }
return *this;
}
@@ -56,17 +82,31 @@ template<typename T>
TAO_Var_Var_T<T> &
TAO_Var_Var_T<T>::operator= (const TAO_Var_Var_T<T> & p)
{
- // Strongly exception safe assignment using copy and non-throwing
- // swap technique.
- TAO_Var_Var_T<T> tmp (p);
-
- T * old_ptr = this->ptr_;
- this->ptr_ = tmp.ptr_;
- tmp.ptr_ = old_ptr;
+ if (this != &p)
+ {
+ if (p.ptr_ == 0)
+ {
+ delete this->ptr_;
+ this->ptr_ = 0;
+ }
+ else
+ {
+ T *deep_copy = 0;
+ ACE_NEW_RETURN (deep_copy,
+ T (*p.ptr_),
+ *this);
+
+ if (deep_copy != 0)
+ {
+ T * tmp = deep_copy;
+ deep_copy = this->ptr_;
+ this->ptr_ = tmp;
+ delete deep_copy;
+ }
+ }
+ }
return *this;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_VAROUT_T_CPP */
+#endif /* TAO_VAROUT_T_C */
diff --git a/TAO/tao/VarOut_T.h b/TAO/tao/VarOut_T.h
index 8602661bf48..709f8ba5ddb 100644
--- a/TAO/tao/VarOut_T.h
+++ b/TAO/tao/VarOut_T.h
@@ -21,7 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Var_Base_T
@@ -153,8 +152,6 @@ private:
void operator= (const T_var &);
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/VarOut_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/VarOut_T.inl b/TAO/tao/VarOut_T.inl
index 5368b31ee2f..c1e7af81406 100644
--- a/TAO/tao/VarOut_T.inl
+++ b/TAO/tao/VarOut_T.inl
@@ -1,8 +1,4 @@
-// -*- C++ -*-
-//
-// $Id$
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+//$Id$
template<typename T>
ACE_INLINE
@@ -263,4 +259,3 @@ TAO_Out_T<T,T_var>::operator-> (void)
return this->ptr_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Var_Array_Argument_T.cpp b/TAO/tao/Var_Array_Argument_T.cpp
index e1ad6bdd0ae..97d0b014e02 100644
--- a/TAO/tao/Var_Array_Argument_T.cpp
+++ b/TAO/tao/Var_Array_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_VAR_ARRAY_ARGUMENT_T_CPP
-#define TAO_VAR_ARRAY_ARGUMENT_T_CPP
+#ifndef TAO_VAR_ARRAY_ARGUMENT_T_C
+#define TAO_VAR_ARRAY_ARGUMENT_T_C
#include "tao/Var_Array_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/Var_Array_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Var_Array_Argument_T,
+ "$Id$")
template<typename S,
typename S_slice,
@@ -160,6 +162,4 @@ interceptor_value (CORBA::Any *any) const
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_VAR_ARRAY_ARGUMENT_T_CPP */
+#endif /* TAO_VAR_ARRAY_ARGUMENT_T_C */
diff --git a/TAO/tao/Var_Array_Argument_T.h b/TAO/tao/Var_Array_Argument_T.h
index 8b7ecbbf3c2..75cb050ecc2 100644
--- a/TAO/tao/Var_Array_Argument_T.h
+++ b/TAO/tao/Var_Array_Argument_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -188,8 +186,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Var_Array_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Var_Array_Argument_T.inl b/TAO/tao/Var_Array_Argument_T.inl
index ce041fd3fb0..072b68039fc 100644
--- a/TAO/tao/Var_Array_Argument_T.inl
+++ b/TAO/tao/Var_Array_Argument_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename S_slice,
typename S_forany,
@@ -131,5 +129,3 @@ TAO::Ret_Var_Array_Argument_T<S,S_slice,S_var,S_forany,S_tag,Insert_Policy>::ret
{
return this->x_._retn ();
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Var_Size_Argument_T.cpp b/TAO/tao/Var_Size_Argument_T.cpp
index addbd7f9a2d..290c17b4909 100644
--- a/TAO/tao/Var_Size_Argument_T.cpp
+++ b/TAO/tao/Var_Size_Argument_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef TAO_VAR_SIZE_ARGUMENT_T_CPP
-#define TAO_VAR_SIZE_ARGUMENT_T_CPP
+#ifndef TAO_VAR_SIZE_ARGUMENT_T_C
+#define TAO_VAR_SIZE_ARGUMENT_T_C
#include "tao/Var_Size_Argument_T.h"
@@ -9,7 +9,9 @@
#include "tao/Var_Size_Argument_T.inl"
#endif /* __ACE_INLINE__ */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (tao,
+ Var_Size_Argument_T,
+ "$Id$")
template<typename S,
typename Insert_Policy>
@@ -115,6 +117,4 @@ TAO::Ret_Var_Size_Argument_T<S,S_var,Insert_Policy>::interceptor_value (CORBA::A
#endif /* TAO_HAS_INTERCEPTORS */
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_VAR_SIZE_ARGUMENT_T_CPP */
+#endif /* TAO_VAR_SIZE_ARGUMENT_T_C */
diff --git a/TAO/tao/Var_Size_Argument_T.h b/TAO/tao/Var_Size_Argument_T.h
index 29941828854..fa1afc31536 100644
--- a/TAO/tao/Var_Size_Argument_T.h
+++ b/TAO/tao/Var_Size_Argument_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
/**
@@ -149,8 +147,6 @@ namespace TAO
};
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "tao/Var_Size_Argument_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/Var_Size_Argument_T.inl b/TAO/tao/Var_Size_Argument_T.inl
index e20150b11c7..b5c240dfa8a 100644
--- a/TAO/tao/Var_Size_Argument_T.inl
+++ b/TAO/tao/Var_Size_Argument_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename S,
typename Insert_Policy>
ACE_INLINE
@@ -100,4 +96,3 @@ TAO::Ret_Var_Size_Argument_T<S,S_var,Insert_Policy>::retn (void)
return this->x_._retn ();
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Version.h b/TAO/tao/Version.h
index eb2e501ca95..6f49378a923 100644
--- a/TAO/tao/Version.h
+++ b/TAO/tao/Version.h
@@ -1,9 +1,7 @@
-// -*- C++ -*-
// $Id$
-
-// This is file was automatically generated by $ACE_ROOT/bin/make_release.
+// This is an automatically generated file.
#define TAO_MAJOR_VERSION 1
-#define TAO_MINOR_VERSION 5
-#define TAO_BETA_VERSION 0
-#define TAO_VERSION "1.5"
+#define TAO_MINOR_VERSION 4
+#define TAO_BETA_VERSION 7
+#define TAO_VERSION "1.4.7"
diff --git a/TAO/tao/Versioned_Namespace.h b/TAO/tao/Versioned_Namespace.h
deleted file mode 100644
index 723bd5f10ef..00000000000
--- a/TAO/tao/Versioned_Namespace.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Versioned_Namespace.h
- *
- * $Id$
- *
- * Versioned namespace support.
- *
- * Useful for preventing conflicts when using a third party library.
- *
- * @author Ossama Othman <ossama@dre.vanderbilt.edu>
- */
-//=============================================================================
-
-#ifndef TAO_VERSIONED_NAMESPACE_H
-#define TAO_VERSIONED_NAMESPACE_H
-
-#if !defined (TAO_ORBCONF_H) && !defined (ACE_CONFIG_MACROS_H)
-# error This header is only meant to be included after "tao/orbconf.h".
-#endif /* !TAO_ORBCONF_H */
-
-
-#if !defined (TAO_HAS_VERSIONED_NAMESPACE) \
- && defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1
-# define TAO_HAS_VERSIONED_NAMESPACE 1
-#endif /* !TAO_HAS_VERSIONED_NAMESPACE
- && ACE_HAS_VERSIONED_NAMESPACE == 1*/
-
-#if defined (TAO_HAS_VERSIONED_NAMESPACE) && TAO_HAS_VERSIONED_NAMESPACE == 1 \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-
-# ifndef TAO_VERSIONED_NAMESPACE_NAME
-# include "tao/Version.h"
-
-// Preprocessor symbols will not be expanded if they are
-// concatenated. Force the preprocessor to expand them during the
-// argument prescan by calling a macro that itself calls another that
-// performs the actual concatenation.
-# define TAO_MAKE_VERSIONED_NAMESPACE_NAME_IMPL(MAJOR,MINOR,BETA) TAO_ ## MAJOR ## _ ## MINOR ## _ ## BETA
-# define TAO_MAKE_VERSIONED_NAMESPACE_NAME(MAJOR,MINOR,BETA) TAO_MAKE_VERSIONED_NAMESPACE_NAME_IMPL(MAJOR,MINOR,BETA)
-# define TAO_VERSIONED_NAMESPACE_NAME TAO_MAKE_VERSIONED_NAMESPACE_NAME(TAO_MAJOR_VERSION,TAO_MINOR_VERSION,TAO_BETA_VERSION)
-# endif /* !TAO_VERSIONED_NAMESPACE_NAME */
-
-# define TAO_BEGIN_VERSIONED_NAMESPACE_DECL namespace TAO_VERSIONED_NAMESPACE_NAME {
-# define TAO_END_VERSIONED_NAMESPACE_DECL } \
- using namespace TAO_VERSIONED_NAMESPACE_NAME;
-
-#else
-
-# define TAO_VERSIONED_NAMESPACE_NAME
-
-# define TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-# define TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* TAO_HAS_VERSIONED_NAMESPACE */
-
-#endif /* !TAO_VERSIONED_NAMESPACE_H */
diff --git a/TAO/tao/WCharSeqC.cpp b/TAO/tao/WCharSeqC.cpp
index 6de54e5b49f..7ea50940e52 100644
--- a/TAO/tao/WCharSeqC.cpp
+++ b/TAO/tao/WCharSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/WCharSeqC.h"
+#include "WCharSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -153,5 +151,3 @@ void CORBA::WCharSeq::_tao_any_destructor (
}
#endif /* _TAO_CDR_OP_CORBA_WCharSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/WCharSeqC.h b/TAO/tao/WCharSeqC.h
index 387004f7c3c..53b046ae900 100644
--- a/TAO/tao/WCharSeqC.h
+++ b/TAO/tao/WCharSeqC.h
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -141,8 +139,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/WStringSeqC.cpp b/TAO/tao/WStringSeqC.cpp
index 12ab5b23d1b..1021460a5e3 100644
--- a/TAO/tao/WStringSeqC.cpp
+++ b/TAO/tao/WStringSeqC.cpp
@@ -29,14 +29,12 @@
// be\be_codegen.cpp:277
-#include "tao/WStringSeqC.h"
+#include "WStringSeqC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -162,5 +160,3 @@ return false;
}
#endif /* _TAO_CDR_OP_CORBA_WStringSeq_CPP_ */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/WStringSeqC.h b/TAO/tao/WStringSeqC.h
index 04adbf29512..7a434302f87 100644
--- a/TAO/tao/WStringSeqC.h
+++ b/TAO/tao/WStringSeqC.h
@@ -55,8 +55,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -139,8 +137,6 @@ TAO_Export ::CORBA::Boolean operator>> (
// TAO_IDL - Generated from
// be\be_codegen.cpp:1040
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ifndef */
diff --git a/TAO/tao/Wait_On_LF_No_Upcall.cpp b/TAO/tao/Wait_On_LF_No_Upcall.cpp
index 1a039a0b089..00075a77b84 100644
--- a/TAO/tao/Wait_On_LF_No_Upcall.cpp
+++ b/TAO/tao/Wait_On_LF_No_Upcall.cpp
@@ -5,14 +5,12 @@
#include "tao/Transport.h"
#include "tao/ORB_Core.h"
#include "tao/ORB_Core_TSS_Resources.h"
-#include "tao/debug.h"
+#include "debug.h"
ACE_RCSID(tao,
Wait_On_LF_No_Upcall,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Transport;
namespace TAO
{
@@ -58,13 +56,10 @@ namespace TAO
private:
- Nested_Upcall_Guard (void) {}
-
- /// Disallow copying and assignment.
- Nested_Upcall_Guard (const Nested_Upcall_Guard&);
- Nested_Upcall_Guard & operator= (const Nested_Upcall_Guard&);
+ ACE_UNIMPLEMENTED_FUNC (Nested_Upcall_Guard (void))
- private:
+ ACE_UNIMPLEMENTED_FUNC (Nested_Upcall_Guard (
+ const Nested_Upcall_Guard&))
/// Pointer to the transport that we plan to use.
TAO_Transport* t_;
@@ -105,5 +100,3 @@ namespace TAO
return true;
}
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_On_LF_No_Upcall.h b/TAO/tao/Wait_On_LF_No_Upcall.h
index 8c839eba3bc..d2ea3b899f8 100644
--- a/TAO/tao/Wait_On_LF_No_Upcall.h
+++ b/TAO/tao/Wait_On_LF_No_Upcall.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -13,7 +13,6 @@
#ifndef TAO_WAIT_ON_LF_NO_UPCALL_H
#define TAO_WAIT_ON_LF_NO_UPCALL_H
-
#include /**/ "ace/pre.h"
#include "tao/Wait_On_Leader_Follower.h"
@@ -22,10 +21,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
+
/**
* @class TAO_Wait_On_LF_No_Upcall
*
@@ -56,9 +54,5 @@ namespace TAO
virtual bool can_process_upcalls (void) const;
};
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* TAO_WAIT_ON_LF_NO_UPCALL_H */
diff --git a/TAO/tao/Wait_On_Leader_Follower.cpp b/TAO/tao/Wait_On_Leader_Follower.cpp
index b8935c80af6..82ac698e591 100644
--- a/TAO/tao/Wait_On_Leader_Follower.cpp
+++ b/TAO/tao/Wait_On_Leader_Follower.cpp
@@ -11,8 +11,6 @@ ACE_RCSID (tao,
Wait_On_Leader_Follower,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Wait_On_Leader_Follower::TAO_Wait_On_Leader_Follower (TAO_Transport *transport)
: TAO_Wait_Strategy (transport)
{
@@ -70,5 +68,3 @@ TAO_Wait_On_Leader_Follower::can_process_upcalls (void) const
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_On_Leader_Follower.h b/TAO/tao/Wait_On_Leader_Follower.h
index f775c66d9c0..5db60e5808b 100644
--- a/TAO/tao/Wait_On_Leader_Follower.h
+++ b/TAO/tao/Wait_On_Leader_Follower.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Wait_On_Leader_Follower
*
@@ -57,8 +55,6 @@ public:
virtual bool can_process_upcalls (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_WAIT_ON_LEADER_FOLLOWER_H */
diff --git a/TAO/tao/Wait_On_Reactor.cpp b/TAO/tao/Wait_On_Reactor.cpp
index 9eaf0efcbd2..9168df03344 100644
--- a/TAO/tao/Wait_On_Reactor.cpp
+++ b/TAO/tao/Wait_On_Reactor.cpp
@@ -12,8 +12,6 @@ ACE_RCSID (tao,
Wait_On_Reactor,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Wait_On_Reactor::TAO_Wait_On_Reactor (TAO_Transport *transport)
: TAO_Wait_Strategy (transport)
{
@@ -117,5 +115,3 @@ TAO_Wait_On_Reactor::can_process_upcalls (void) const
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_On_Reactor.h b/TAO/tao/Wait_On_Reactor.h
index 212590b4d56..566a419efd1 100644
--- a/TAO/tao/Wait_On_Reactor.h
+++ b/TAO/tao/Wait_On_Reactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Wait_On_Reactor
*
@@ -49,8 +47,6 @@ public:
virtual bool can_process_upcalls (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_WAIT_ON_REACTOR_H */
diff --git a/TAO/tao/Wait_On_Read.cpp b/TAO/tao/Wait_On_Read.cpp
index 7cd1115fe39..3d17ac729a3 100644
--- a/TAO/tao/Wait_On_Read.cpp
+++ b/TAO/tao/Wait_On_Read.cpp
@@ -1,11 +1,11 @@
// $Id$
-#include "tao/Wait_On_Read.h"
-#include "tao/Transport.h"
-#include "tao/Resume_Handle.h"
-#include "tao/Synch_Reply_Dispatcher.h"
-#include "tao/Client_Strategy_Factory.h"
-#include "tao/ORB_Core.h"
+#include "Wait_On_Read.h"
+#include "Transport.h"
+#include "Resume_Handle.h"
+#include "Synch_Reply_Dispatcher.h"
+#include "Client_Strategy_Factory.h"
+#include "ORB_Core.h"
#include "ace/Reactor.h"
#include "ace/Countdown_Time.h"
@@ -13,8 +13,6 @@ ACE_RCSID (tao,
Wait_On_Read,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Wait_On_Read::TAO_Wait_On_Read (TAO_Transport *transport)
: TAO_Wait_Strategy (transport)
@@ -125,7 +123,7 @@ TAO_Wait_On_Read::register_handler (void)
bool
TAO_Wait_On_Read::non_blocking (void) const
{
- return false;
+ return 0;
}
bool
@@ -138,5 +136,3 @@ TAO_Wait_On_Read::can_process_upcalls (void) const
/*
* End copy hook.
*/
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_On_Read.h b/TAO/tao/Wait_On_Read.h
index c691a668200..e946f07d4a3 100644
--- a/TAO/tao/Wait_On_Read.h
+++ b/TAO/tao/Wait_On_Read.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Wait_On_Read
*
@@ -48,8 +46,6 @@ public:
virtual bool can_process_upcalls (void) const;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_WAIT_ON_READ_H */
diff --git a/TAO/tao/Wait_Strategy.cpp b/TAO/tao/Wait_Strategy.cpp
index efbcc303399..15a48b36b79 100644
--- a/TAO/tao/Wait_Strategy.cpp
+++ b/TAO/tao/Wait_Strategy.cpp
@@ -7,12 +7,9 @@ ACE_RCSID (tao,
"$Id$")
#if !defined (__ACE_INLINE__)
-# include "tao/Wait_Strategy.inl"
+# include "Wait_Strategy.inl"
#endif /* __ACE_INLINE__ */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Constructor.
TAO_Wait_Strategy::TAO_Wait_Strategy (TAO_Transport *transport)
: transport_ (transport),
@@ -37,5 +34,3 @@ TAO_Wait_Strategy::sending_request (TAO_ORB_Core * /* orb_core */,
* Hook to specialize the Wait Strategy
*/
//@@ TAO_WAIT_STRATEGY_SPL_ADD_HOOK
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/Wait_Strategy.h b/TAO/tao/Wait_Strategy.h
index d2818275714..88e80011167 100644
--- a/TAO/tao/Wait_Strategy.h
+++ b/TAO/tao/Wait_Strategy.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -23,12 +23,7 @@
#include "tao/TAO_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_ORB_Core;
class TAO_Transport;
class TAO_Synch_Reply_Dispatcher;
@@ -96,11 +91,9 @@ protected:
int is_registered_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/Wait_Strategy.inl"
+# include "Wait_Strategy.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/WrongTransactionC.cpp b/TAO/tao/WrongTransactionC.cpp
index c051cb19370..3ca279cf001 100644
--- a/TAO/tao/WrongTransactionC.cpp
+++ b/TAO/tao/WrongTransactionC.cpp
@@ -29,13 +29,12 @@
// be\be_codegen.cpp:291
-#include "tao/WrongTransactionC.h"
+#include "WrongTransactionC.h"
#include "tao/CDR.h"
#include "tao/SystemException.h"
#include "ace/OS_NS_string.h"
#include "tao/AnyTypeCode_Adapter.h"
#include "ace/Dynamic_Service.h"
-#include "ace/Log_Msg.h"
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
@@ -44,8 +43,6 @@
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
@@ -189,5 +186,3 @@ CORBA::Boolean operator>> (
{
return true;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/WrongTransactionC.h b/TAO/tao/WrongTransactionC.h
index e64c9dedb4d..a872bfdfaf2 100644
--- a/TAO/tao/WrongTransactionC.h
+++ b/TAO/tao/WrongTransactionC.h
@@ -61,8 +61,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:48
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -133,8 +131,6 @@ TAO_Export CORBA::Boolean operator>> (TAO_InputCDR &, CORBA::WrongTransaction &)
// TAO_IDL - Generated from
// be\be_codegen.cpp:955
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/XtResource_Factory.cpp b/TAO/tao/XtResource_Factory.cpp
index c6afc35a325..5ca19fba0f0 100644
--- a/TAO/tao/XtResource_Factory.cpp
+++ b/TAO/tao/XtResource_Factory.cpp
@@ -1,7 +1,7 @@
//$Id$
-#include "tao/XtResource_Factory.h"
-#include "tao/debug.h"
+#include "XtResource_Factory.h"
+#include "debug.h"
#include "ace/XtReactor.h"
ACE_RCSID( TAO_XtResource,
diff --git a/TAO/tao/XtResource_Loader.cpp b/TAO/tao/XtResource_Loader.cpp
index 5fdc64af074..d2350ddcc00 100644
--- a/TAO/tao/XtResource_Loader.cpp
+++ b/TAO/tao/XtResource_Loader.cpp
@@ -1,7 +1,7 @@
//$Id$
-#include "tao/XtResource_Loader.h"
-#include "tao/ORB_Core.h"
-#include "tao/XtResource_Factory.h"
+#include "XtResource_Loader.h"
+#include "ORB_Core.h"
+#include "XtResource_Factory.h"
ACE_RCSID( TAO_XtResource,
XtResource_Loader,
diff --git a/TAO/tao/corba.h b/TAO/tao/corba.h
index fe1bb730e4f..a21cdf54427 100644
--- a/TAO/tao/corba.h
+++ b/TAO/tao/corba.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
diff --git a/TAO/tao/corbafwd.cpp b/TAO/tao/corbafwd.cpp
new file mode 100644
index 00000000000..bb988ed34ba
--- /dev/null
+++ b/TAO/tao/corbafwd.cpp
@@ -0,0 +1,7 @@
+// $Id$
+
+#include "corbafwd.h"
+
+ACE_RCSID (tao,
+ corbafwd,
+ "$Id$")
diff --git a/TAO/tao/debug.cpp b/TAO/tao/debug.cpp
index 3b2fdad7cb4..d1cfdd93b16 100644
--- a/TAO/tao/debug.cpp
+++ b/TAO/tao/debug.cpp
@@ -11,8 +11,4 @@ ACE_RCSID (tao,
debug,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Export unsigned int TAO_debug_level = 0;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/debug.h b/TAO/tao/debug.h
index 6bd37a2341c..1ca35af44d1 100644
--- a/TAO/tao/debug.h
+++ b/TAO/tao/debug.h
@@ -22,10 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// These are global to simplify is use by other code, very much in
// particular by getopt and related argument-parsing code
//
@@ -38,7 +34,5 @@ extern TAO_Export unsigned int TAO_debug_level;
// debug messages on (1) or off (0)
extern TAO_Export unsigned int TAO_orbdebug;
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_DEBUG_H */
diff --git a/TAO/tao/default_client.cpp b/TAO/tao/default_client.cpp
index bc6d38cf6ab..e2d4b28f9d1 100644
--- a/TAO/tao/default_client.cpp
+++ b/TAO/tao/default_client.cpp
@@ -1,16 +1,16 @@
// $Id$
-#include "tao/default_client.h"
-#include "tao/Wait_On_Read.h"
-#include "tao/Wait_On_Reactor.h"
-#include "tao/Wait_On_Leader_Follower.h"
-#include "tao/Wait_On_LF_No_Upcall.h"
-#include "tao/Exclusive_TMS.h"
-#include "tao/Muxed_TMS.h"
-#include "tao/Blocked_Connect_Strategy.h"
-#include "tao/Reactive_Connect_Strategy.h"
-#include "tao/LF_Connect_Strategy.h"
-#include "tao/orbconf.h"
+#include "default_client.h"
+#include "Wait_On_Read.h"
+#include "Wait_On_Reactor.h"
+#include "Wait_On_Leader_Follower.h"
+#include "Wait_On_LF_No_Upcall.h"
+#include "Exclusive_TMS.h"
+#include "Muxed_TMS.h"
+#include "Blocked_Connect_Strategy.h"
+#include "Reactive_Connect_Strategy.h"
+#include "LF_Connect_Strategy.h"
+#include "orbconf.h"
#include "ace/Lock_Adapter_T.h"
#include "ace/Recursive_Thread_Mutex.h"
@@ -23,8 +23,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Default_Client_Strategy_Factory::TAO_Default_Client_Strategy_Factory (void)
: profile_lock_type_ (TAO_THREAD_LOCK)
, transport_mux_strategy_ (TAO_MUXED_TMS)
@@ -106,8 +104,6 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
else if (ACE_OS::strcasecmp (name,
ACE_TEXT("null")) == 0)
this->profile_lock_type_ = TAO_NULL_LOCK;
- else
- this->report_option_value_error (ACE_TEXT("-ORBIIOPProfileLock"), name);
}
}
@@ -212,14 +208,9 @@ TAO_Default_Client_Strategy_Factory::parse_args (int argc, ACE_TCHAR* argv[])
{
ACE_TCHAR* name = argv[curarg];
- if (ACE_OS::strcmp (name, ACE_TEXT("0")) == 0 ||
- ACE_OS::strcasecmp (name, ACE_TEXT("false")) == 0)
+ if (ACE_OS::strcasecmp (name,
+ ACE_TEXT("false")) == 0)
this->use_cleanup_options_ = false;
- else if (ACE_OS::strcmp (name, ACE_TEXT("1")) == 0 ||
- ACE_OS::strcasecmp (name, ACE_TEXT("true")) == 0)
- this->use_cleanup_options_ = true;
- else
- this->report_option_value_error (ACE_TEXT("-ORBConnectionHandlerCleanup"), name);
}
}
else if (ACE_OS::strncmp (argv[curarg], ACE_TEXT("-ORB"), 4) == 0)
@@ -392,8 +383,6 @@ TAO_Default_Client_Strategy_Factory::use_cleanup_options (void) const
return this->use_cleanup_options_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_Default_Client_Strategy_Factory,
diff --git a/TAO/tao/default_client.h b/TAO/tao/default_client.h
index db6544d166d..0da7020d23a 100644
--- a/TAO/tao/default_client.h
+++ b/TAO/tao/default_client.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "tao/Client_Strategy_Factory.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Default_Client_Strategy_Factory
*
@@ -117,8 +115,6 @@ private:
bool use_cleanup_options_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Client_Strategy_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Client_Strategy_Factory)
diff --git a/TAO/tao/default_environment.h b/TAO/tao/default_environment.h
index a535b1fa05a..45ded1f6f06 100644
--- a/TAO/tao/default_environment.h
+++ b/TAO/tao/default_environment.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
class Environment;
@@ -36,8 +34,6 @@ namespace CORBA
*/
TAO_Export CORBA::Environment& TAO_default_environment (void);
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_DEFAULT_ENVIRONMENT_H */
diff --git a/TAO/tao/default_resource.cpp b/TAO/tao/default_resource.cpp
index 59f2cd93332..bae6bf7ab3d 100644
--- a/TAO/tao/default_resource.cpp
+++ b/TAO/tao/default_resource.cpp
@@ -31,8 +31,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Default_Resource_Factory::TAO_Default_Resource_Factory (void)
: use_locked_data_blocks_ (1)
, parser_names_count_ (0)
@@ -46,11 +44,6 @@ TAO_Default_Resource_Factory::TAO_Default_Resource_Factory (void)
, dynamically_allocated_reactor_ (0)
, options_processed_ (0)
, factory_disabled_ (0)
-#if TAO_USE_LOCAL_MEMORY_POOL == 1
- , use_local_memory_pool_ (true)
-#else
- , use_local_memory_pool_ (false)
-#endif
, cached_connection_lock_type_ (TAO_THREAD_LOCK)
, object_key_table_lock_type_ (TAO_THREAD_LOCK)
, corba_object_lock_type_ (TAO_THREAD_LOCK)
@@ -165,7 +158,7 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
{
TAO_Protocol_Item *item = 0;
ACE_NEW_RETURN (item,
- TAO_Protocol_Item (ACE_TEXT_ALWAYS_CHAR(argv[curarg])),
+ TAO_Protocol_Item (ACE_TEXT_TO_CHAR_IN(argv[curarg])),
-1);
if (pset->insert (item) == -1)
ACE_ERROR ((LM_ERROR,
@@ -319,7 +312,7 @@ TAO_Default_Resource_Factory::init (int argc, ACE_TCHAR *argv[])
if (curarg < argc)
{
- this->add_to_ior_parser_names (ACE_TEXT_ALWAYS_CHAR(argv[curarg]));
+ this->add_to_ior_parser_names (ACE_TEXT_TO_CHAR_IN(argv[curarg]));
}
}
@@ -631,7 +624,7 @@ TAO_Default_Resource_Factory::load_default_protocols (void)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) Unable to add ")
ACE_TEXT ("<%s> to protocol factory set.\n"),
- ACE_TEXT_CHAR_TO_TCHAR (item->protocol_name ().c_str ())));
+ ACE_TEXT_TO_TCHAR_IN (item->protocol_name ().c_str ())));
delete item;
@@ -672,7 +665,7 @@ TAO_Default_Resource_Factory::init_protocol_factories (void)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("TAO (%P|%t) Unable to load ")
ACE_TEXT ("protocol <%s>, %p\n"),
- ACE_TEXT_CHAR_TO_TCHAR(name.c_str ()),
+ ACE_TEXT_TO_TCHAR_IN(name.c_str ()),
ACE_TEXT ("")),
-1);
}
@@ -681,7 +674,7 @@ TAO_Default_Resource_Factory::init_protocol_factories (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("TAO (%P|%t) Loaded protocol <%s>\n"),
- ACE_TEXT_CHAR_TO_TCHAR(name.c_str ())));
+ ACE_TEXT_TO_TCHAR_IN(name.c_str ())));
}
}
@@ -771,32 +764,20 @@ TAO_Default_Resource_Factory::reclaim_reactor (ACE_Reactor *reactor)
}
+#if TAO_USE_LOCAL_MEMORY_POOL == 1
typedef ACE_Malloc<ACE_LOCAL_MEMORY_POOL,TAO_SYNCH_MUTEX> LOCKED_MALLOC;
-typedef ACE_Allocator_Adapter<LOCKED_MALLOC> LOCKED_ALLOCATOR_POOL;
-typedef ACE_New_Allocator LOCKED_ALLOCATOR_NO_POOL;
-
-void
-TAO_Default_Resource_Factory::use_local_memory_pool (bool flag)
-{
- use_local_memory_pool_ = flag;
-}
+typedef ACE_Allocator_Adapter<LOCKED_MALLOC> LOCKED_ALLOCATOR;
+#else
+typedef ACE_New_Allocator LOCKED_ALLOCATOR;
+#endif
ACE_Allocator *
TAO_Default_Resource_Factory::input_cdr_dblock_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -805,18 +786,9 @@ ACE_Allocator *
TAO_Default_Resource_Factory::input_cdr_buffer_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -825,18 +797,9 @@ ACE_Allocator *
TAO_Default_Resource_Factory::input_cdr_msgblock_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -851,19 +814,9 @@ ACE_Allocator*
TAO_Default_Resource_Factory::output_cdr_dblock_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
-
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -871,19 +824,9 @@ ACE_Allocator *
TAO_Default_Resource_Factory::output_cdr_buffer_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
-
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -891,19 +834,9 @@ ACE_Allocator*
TAO_Default_Resource_Factory::output_cdr_msgblock_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
-
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -911,19 +844,9 @@ ACE_Allocator*
TAO_Default_Resource_Factory::amh_response_handler_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
-
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -931,19 +854,9 @@ ACE_Allocator*
TAO_Default_Resource_Factory::ami_response_handler_allocator (void)
{
ACE_Allocator *allocator = 0;
- if (use_local_memory_pool_)
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_POOL,
- 0);
- }
- else
- {
- ACE_NEW_RETURN (allocator,
- LOCKED_ALLOCATOR_NO_POOL,
- 0);
- }
-
+ ACE_NEW_RETURN (allocator,
+ LOCKED_ALLOCATOR,
+ 0);
return allocator;
}
@@ -1170,8 +1083,6 @@ TAO_Default_Resource_Factory::drop_replies_during_shutdown (void) const
return this->drop_replies_;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
ACE_STATIC_SVC_DEFINE (TAO_Default_Resource_Factory,
diff --git a/TAO/tao/default_resource.h b/TAO/tao/default_resource.h
index 2189a8ca7d7..8cbc1344a40 100644
--- a/TAO/tao/default_resource.h
+++ b/TAO/tao/default_resource.h
@@ -24,16 +24,11 @@
#include "tao/Resource_Factory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Reactor_Impl;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
class TAO_Object_Adapter;
class TAO_IOR_Parser;
class TAO_LF_Strategy;
class TAO_Codeset_Descriptor_Base;
+class ACE_Reactor_Impl;
/**
* @class TAO_Default_Resource_Factory
@@ -108,7 +103,6 @@ public:
virtual void reclaim_reactor (ACE_Reactor *);
virtual TAO_Acceptor_Registry *get_acceptor_registry (void);
virtual TAO_Connector_Registry *get_connector_registry (void);
- virtual void use_local_memory_pool (bool);
virtual ACE_Allocator* input_cdr_dblock_allocator (void);
virtual ACE_Allocator* input_cdr_buffer_allocator (void);
virtual ACE_Allocator* input_cdr_msgblock_allocator (void);
@@ -213,10 +207,6 @@ protected:
/// were processed before (or later).
int factory_disabled_;
- /// This flag is used to determine whether the cdr allocators
- /// should use the local memory pool or not.
- bool use_local_memory_pool_;
-
private:
void init_codeset_descriptors (void);
@@ -257,8 +247,6 @@ private:
bool drop_replies_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Resource_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Resource_Factory)
diff --git a/TAO/tao/default_server.cpp b/TAO/tao/default_server.cpp
index 3ebc4dadc7f..c74c5065ef7 100644
--- a/TAO/tao/default_server.cpp
+++ b/TAO/tao/default_server.cpp
@@ -9,8 +9,6 @@ ACE_RCSID (tao,
default_server,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_Default_Server_Strategy_Factory::TAO_Default_Server_Strategy_Factory (void)
: activate_server_connections_ (0),
thread_flags_ (THR_BOUND | THR_DETACHED),
@@ -382,8 +380,6 @@ TAO_Default_Server_Strategy_Factory::report_option_value_error (
option_value, option_name));
}
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (TAO_Default_Server_Strategy_Factory,
ACE_TEXT ("Server_Strategy_Factory"),
ACE_SVC_OBJ_T,
diff --git a/TAO/tao/default_server.h b/TAO/tao/default_server.h
index e346b7eaca2..f8304d430da 100644
--- a/TAO/tao/default_server.h
+++ b/TAO/tao/default_server.h
@@ -25,7 +25,6 @@
#include "ace/Service_Config.h"
#include "ace/Time_Value.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Default_Server_Strategy_Factory
@@ -86,8 +85,6 @@ protected:
ACE_Time_Value thread_per_connection_timeout_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Server_Strategy_Factory)
ACE_FACTORY_DECLARE (TAO, TAO_Default_Server_Strategy_Factory)
diff --git a/TAO/tao/PI_Server/diffs/ServerRequestInterceptor.diff b/TAO/tao/diffs/ServerRequestInterceptor.diff
index f3fc423c81a..f3fc423c81a 100644
--- a/TAO/tao/PI_Server/diffs/ServerRequestInterceptor.diff
+++ b/TAO/tao/diffs/ServerRequestInterceptor.diff
diff --git a/TAO/tao/extra_core.mpb b/TAO/tao/extra_core.mpb
index 704c1ed5f3b..8d7542b0509 100644
--- a/TAO/tao/extra_core.mpb
+++ b/TAO/tao/extra_core.mpb
@@ -3,6 +3,8 @@
feature(!minimum_corba) {
Source_Files(TAO_COMPONENTS) {
+ ClientRequestInterceptor_Adapter.cpp
+ ServerRequestInterceptor_Adapter.cpp
ServicesC.cpp
Dynamic_Adapter.cpp
}
diff --git a/TAO/tao/objectid.h b/TAO/tao/objectid.h
index 40d8f6cad7d..f1be2f0615e 100644
--- a/TAO/tao/objectid.h
+++ b/TAO/tao/objectid.h
@@ -23,10 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
*
* This file is a break away from orbconf.h. Basically orbconf.h is
@@ -107,7 +103,5 @@ namespace TAO
/// No. of services locatable through multicast.
#define TAO_NO_OF_MCAST_SERVICES 4
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /*TAO_OBJECTID_H*/
diff --git a/TAO/tao/operation_details.cpp b/TAO/tao/operation_details.cpp
index faccd9fe89c..c75ced2a83f 100644
--- a/TAO/tao/operation_details.cpp
+++ b/TAO/tao/operation_details.cpp
@@ -1,11 +1,11 @@
//$Id$
-#include "tao/operation_details.h"
-#include "tao/Stub.h"
-#include "tao/ORB_Constants.h"
-#include "tao/Exception_Data.h"
-#include "tao/SystemException.h"
-#include "tao/Argument.h"
+#include "operation_details.h"
+#include "Stub.h"
+#include "ORB_Constants.h"
+#include "Exception_Data.h"
+#include "SystemException.h"
+#include "Argument.h"
#include "ace/OS_NS_string.h"
@@ -17,8 +17,6 @@ ACE_RCSID (tao,
operation_details,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
CORBA::Exception *
TAO_Operation_Details::corba_exception (const char *id
ACE_ENV_ARG_DECL)
@@ -77,4 +75,3 @@ TAO_Operation_Details::demarshal_args (TAO_InputCDR &cdr)
return true;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/operation_details.h b/TAO/tao/operation_details.h
index bc44c92e5f9..8748d0f6147 100644
--- a/TAO/tao/operation_details.h
+++ b/TAO/tao/operation_details.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file operation_details.h
@@ -14,19 +14,16 @@
#include /**/ "ace/pre.h"
-#include "tao/SystemException.h"
+#include "SystemException.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Service_Context.h"
-#include "tao/TimeBaseC.h"
-#include "tao/target_specification.h"
+#include "Service_Context.h"
+#include "target_specification.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Forward declarations
namespace Dynamic
{
@@ -40,14 +37,6 @@ namespace TAO
struct Exception_Data;
}
-namespace TAO
-{
- namespace CSD
- {
- class FW_Server_Request_Wrapper;
- }
-}
-
/**
* @class TAO_Operation_Details
*
@@ -64,11 +53,6 @@ class TAO_Export TAO_Operation_Details
{
public:
- /// Declare FW_Server_Request_Wrapper a friend
- /// This friendship makes the FW_Server_Request_Wrapper be able to
- /// clone the TAO_Operation_Details data member in TAO_ServerRequest.
- friend class TAO::CSD::FW_Server_Request_Wrapper;
-
/// Constructor
TAO_Operation_Details (const char *name,
CORBA::ULong len,
@@ -156,12 +140,6 @@ public:
TAO::Exception_Data const * ex_data (void) const;
- void ft_expiration_time (TimeBase::TimeT time);
- TimeBase::TimeT ft_expiration_time (void) const;
-
- void ft_retention_id (CORBA::Long request_id);
- CORBA::Long ft_retention_id (void) const;
-
private:
/// Name of the operation being invoked.
@@ -203,19 +181,10 @@ private:
/// Count of the exceptions that operations can throw.
CORBA::ULong ex_count_;
-#if TAO_HAS_INTERCEPTORS == 1
- /// FT request expiration time (absolute gregorian)
- TimeBase::TimeT ft_expiration_time_;
-
- /// FT request retention id
- CORBA::Long ft_retention_id_;
-#endif /*TAO_HAS_INTERCEPTORS == 1*/
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-# include "tao/operation_details.i"
+# include "operation_details.i"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/operation_details.i b/TAO/tao/operation_details.i
index a570229cf4b..599d37c767b 100644
--- a/TAO/tao/operation_details.i
+++ b/TAO/tao/operation_details.i
@@ -2,8 +2,6 @@
//
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
TAO_Operation_Details::TAO_Operation_Details (const char *name,
CORBA::ULong len,
@@ -22,10 +20,6 @@ TAO_Operation_Details::TAO_Operation_Details (const char *name,
, num_args_ (num)
, ex_data_ (data)
, ex_count_ (count)
-#if TAO_HAS_INTERCEPTORS == 1
- , ft_expiration_time_ (0)
- , ft_retention_id_ (0)
-#endif /*TAO_HAS_INTERCEPTORS == 1*/
{
}
@@ -170,31 +164,3 @@ TAO_Operation_Details::args_num (void) const
{
return this->num_args_;
}
-
-#if TAO_HAS_INTERCEPTORS == 1
-ACE_INLINE void
-TAO_Operation_Details::ft_expiration_time (TimeBase::TimeT time)
-{
- this->ft_expiration_time_ = time;
-}
-
-ACE_INLINE TimeBase::TimeT
-TAO_Operation_Details::ft_expiration_time (void) const
-{
- return this->ft_expiration_time_;
-}
-
-ACE_INLINE void
-TAO_Operation_Details::ft_retention_id (CORBA::Long request_id)
-{
- this->ft_retention_id_ = request_id;
-}
-
-ACE_INLINE CORBA::Long
-TAO_Operation_Details::ft_retention_id (void) const
-{
- return this->ft_retention_id_;
-}
-#endif /*TAO_HAS_INTERCEPTORS == 1*/
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/orb_typesC.cpp b/TAO/tao/orb_typesC.cpp
index b4bd2cb6e1c..168eeabc2fb 100644
--- a/TAO/tao/orb_typesC.cpp
+++ b/TAO/tao/orb_typesC.cpp
@@ -29,18 +29,14 @@
// be\be_codegen.cpp:288
-#include "tao/orb_typesC.h"
+#include "orb_typesC.h"
#include "tao/CDR.h"
// TAO_IDL - Generated from
// be\be_visitor_arg_traits.cpp:70
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Arg traits specializations.
namespace TAO
{
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/orb_typesC.h b/TAO/tao/orb_typesC.h
index 14555b5a451..17a295fddf6 100644
--- a/TAO/tao/orb_typesC.h
+++ b/TAO/tao/orb_typesC.h
@@ -57,8 +57,6 @@
// TAO_IDL - Generated from
// be\be_visitor_module/module_ch.cpp:49
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace CORBA
{
@@ -105,8 +103,6 @@ namespace TAO
// TAO_IDL - Generated from
// be\be_codegen.cpp:1062
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
diff --git a/TAO/tao/orbconf.h b/TAO/tao/orbconf.h
index ccc3c2259a1..a4bcbd98704 100644
--- a/TAO/tao/orbconf.h
+++ b/TAO/tao/orbconf.h
@@ -19,20 +19,18 @@
#include /**/ "ace/pre.h"
+// "ace/OS.h" is overkill. "ace/Basic_Types.h" is enough. In
+// particular, it is needed for the definition of ACE_LITTLE_ENDIAN.
#include "ace/Basic_Types.h"
#include "ace/Global_Macros.h"
#include "ace/Synch_Traits.h"
+#define TAO_INVALID_PRIORITY -1
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#define TAO_INVALID_PRIORITY -1
-
#if !defined (TAO_REACTOR)
#define TAO_REACTOR ACE_Select_Reactor
#endif /* TAO_REACTOR */
@@ -161,10 +159,36 @@ const size_t TAO_DEFAULT_VALUE_FACTORY_TABLE_SIZE = 128;
#define TAO_MAXBUFSIZE 1024
#endif /* TAO_MAXBUFSIZE */
+/*!
+
+ The number of times the transport will try to re-read before
+ returning control to the reactor when it has an uncompleted
+ message (see TAO_Transport::handle_input()).
+
+ The idea behind re-reading is that more data may have arrived
+ while the transport was busy deciding what to do with the bytes
+ it got, so we should probably try to re-read.
+
+ This value shouldn't be too large, lest the transport starve
+ out other transports while trying to complete its message.
+
+ When choosing a value, think of the type of this as 'unsigned int'.
+ */
+#if !defined(TAO_MAX_TRANSPORT_REREAD_ATTEMPTS)
+#define TAO_MAX_TRANSPORT_REREAD_ATTEMPTS 2
+#endif
+
+// This controls the alignment for TAO structs. It supports built-in
+// types up to and including 16 bytes (128 bits) in size.
+#if !defined (TAO_MAXIMUM_NATIVE_TYPE_SIZE)
+# define TAO_MAXIMUM_NATIVE_TYPE_SIZE 128
+#endif /* TAO_MAXIMUM_NATIVE_TYPE_SIZE */
+
#if !defined (TAO_CONNECTION_PURGING_STRATEGY)
# define TAO_CONNECTION_PURGING_STRATEGY TAO_Resource_Factory::LRU
#endif /* TAO_CONNECTION_PURGING_STRATEGY */
+
#if !defined (TAO_PURGE_PERCENT)
# define TAO_PURGE_PERCENT 20
#endif /* TAO_PURGE_PERCENT */
@@ -186,6 +210,10 @@ const size_t TAO_DEFAULT_VALUE_FACTORY_TABLE_SIZE = 128;
# define TAO_NAMESPACE_INLINE_FUNCTION TAO_NAMESPACE_STORAGE_CLASS
# endif
+// Instead of replacing this with the ACE macro
+// in 20+ files, define it conditionally.
+// The TAO_OutputCDR class uses the ACE macro, which
+// is defined by default.
#if !defined(TAO_NO_COPY_OCTET_SEQUENCES)
# define TAO_NO_COPY_OCTET_SEQUENCES 1
#endif /* TAO_NO_COPY_OCTET_SEQUENCES */
@@ -215,7 +243,7 @@ const size_t TAO_DEFAULT_VALUE_FACTORY_TABLE_SIZE = 128;
// byte first.
// @todo It seems to be that this definition of TAO_ENCAP_BYTE_ORDER
-// should be removed. We have an equivalent ACE definition in
+// should be removed. We have an equivalent ACE definition in
// ACE_CDR_BYTE_ORDER. Today both of them are consistent. It would be
// a havoc if oneday this consistency is gone..
#if defined (ACE_LITTLE_ENDIAN)
@@ -260,6 +288,36 @@ const size_t TAO_DEFAULT_VALUE_FACTORY_TABLE_SIZE = 128;
# pragma warning (disable:4355) /* disable C4355 warning */
#endif /* defined (_MSC_VER) */
+// The IDL compiler can generate the classes corresponding to IDL
+// sequences in two ways:
+// + Use the TAO templates for sequences,
+// i.e. TAO_{Unb,B}ounded_Sequence<>
+// + Explicitly generate code for the sequence.
+//
+// The first approach can (potentially) produce smaller code, because
+// the code for a sequence over a particular type (say sequence<long>)
+// can be shared across multiple IDL files.
+// Unfortunately it is hard to manage the template instantiations on
+// platforms that do not automatically generate them, mainly because
+// it is hard to decide on which generated file are the templates
+// instantiated. Thus the second approach is more convenient for most
+// applications.
+//
+// On platforms that support automatic template instantiation we use
+// the first approach.
+// On platforms that require explicit template instantiations we use
+// explicitly generated code for sequences if the platform does not.
+// If the application requires it (such as embedded systems) the
+// default can be changed, but then the application developer is
+// responsible for instantiating the templates.
+//
+#if defined (AIX) || \
+ (!defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) && \
+ (defined (ACE_HAS_TEMPLATE_SPECIALIZATION) || \
+ (defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) && defined (_UNICOS))))
+#define TAO_USE_SEQUENCE_TEMPLATES
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
// The Root POA default name.
#if !defined (TAO_DEFAULT_ROOTPOA_NAME)
#define TAO_DEFAULT_ROOTPOA_NAME "RootPOA"
@@ -814,7 +872,14 @@ enum TAO_Policy_Scope
# define TAO_USE_LOCAL_MEMORY_POOL 1
#endif /* TAO_USE_LOCAL_MEMORY_POOL */
-TAO_END_VERSIONED_NAMESPACE_DECL
+#if !defined (TAO_RESET_OUTPUT_CDR_AFTER_SEND)
+#define TAO_RESET_OUTPUT_CDR_AFTER_SEND 0
+#endif /* TAO_RESET_OUTPUT_CDR_AFTER_SEND */
+
+/// By default at this moment we use the deprecated exception holder
+/// when the new version is ready we will remove this define.
+#define TAO_HAS_DEPRECATED_EXCEPTION_HOLDER
+
#include /**/ "ace/post.h"
diff --git a/TAO/tao/params.cpp b/TAO/tao/params.cpp
index a20fec5bb2b..7da35340277 100644
--- a/TAO/tao/params.cpp
+++ b/TAO/tao/params.cpp
@@ -15,8 +15,6 @@ ACE_RCSID (tao,
"$Id$")
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
TAO_ORB_Parameters::TAO_ORB_Parameters (void)
: endpoints_map_ (10)
, mcast_discovery_endpoint_ ()
@@ -24,7 +22,6 @@ TAO_ORB_Parameters::TAO_ORB_Parameters (void)
, sock_rcvbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ)
, sock_sndbuf_size_ (ACE_DEFAULT_MAX_SOCKET_BUFSIZ)
, nodelay_ (1)
- , sock_keepalive_ (0)
, cdr_memcpy_tradeoff_ (ACE_DEFAULT_CDR_MEMCPY_TRADEOFF)
, use_lite_protocol_ (0)
, use_dotted_decimal_addresses_ (0)
@@ -305,5 +302,3 @@ TAO_ORB_Parameters::connect_ipv6_only (void) const
return this->connect_ipv6_only_;
}
#endif /* ACE_HAS_IPV6 */
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/params.h b/TAO/tao/params.h
index 3d5d51ff3ef..ef7593e3ab3 100644
--- a/TAO/tao/params.h
+++ b/TAO/tao/params.h
@@ -24,10 +24,8 @@
#include "ace/SString.h"
-#include "tao/objectid.h"
-#include "tao/CORBA_String.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "objectid.h"
+#include "CORBA_String.h"
// Forward decls.
@@ -40,6 +38,7 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_Unbounded_Queue<ACE_CString> TAO_EndpointSet;
typedef ACE_Unbounded_Queue_Const_Iterator<ACE_CString> TAO_EndpointSetIterator;
+
// -------------------------------------------------------------------
/**
@@ -85,10 +84,6 @@ public:
int nodelay (void) const;
void nodelay (int);
- /// Set/Get whether we should set SO_KEEPALIVE on the socket or not.
- int sock_keepalive (void);
- void sock_keepalive (int);
-
/**
* Octet sequences are marshalled without doing any copies, we
* simply append a block to the CDR message block chain. When the
@@ -231,9 +226,6 @@ private:
/// 1 if we're using TCP_NODELAY and 0 otherwise.
int nodelay_;
- /// 1 if we're using SO_KEEPALIV and 0 otherwise (default 0).
- int sock_keepalive_;
-
/// Control the strategy for copying vs. appeding octet sequences in
/// CDR streams.
int cdr_memcpy_tradeoff_;
@@ -321,8 +313,6 @@ private:
bool negotiate_codesets_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "tao/params.i"
#endif /* __ACE_INLINE__ */
diff --git a/TAO/tao/params.i b/TAO/tao/params.i
index f9c2d3e889c..92a8a9e936a 100644
--- a/TAO/tao/params.i
+++ b/TAO/tao/params.i
@@ -2,8 +2,6 @@
//
// $Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
TAO_ORB_Parameters::sock_rcvbuf_size (void) const
{
@@ -139,18 +137,6 @@ TAO_ORB_Parameters::nodelay (int x)
}
ACE_INLINE int
-TAO_ORB_Parameters::sock_keepalive (void)
-{
- return this->sock_keepalive_;
-}
-
-ACE_INLINE void
-TAO_ORB_Parameters::sock_keepalive (int x)
-{
- this->sock_keepalive_ = x;
-}
-
-ACE_INLINE int
TAO_ORB_Parameters::ace_sched_policy (void) const
{
return this->ace_sched_policy_;
@@ -242,5 +228,3 @@ TAO_ORB_Parameters::negotiate_codesets (bool x)
{
this->negotiate_codesets_ = x;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/tao.mpc b/TAO/tao/tao.mpc
index ffdd877612b..b54ca557854 100644
--- a/TAO/tao/tao.mpc
+++ b/TAO/tao/tao.mpc
@@ -29,7 +29,6 @@ project(TAO) : acelib, core, tao_output, taodefaults, pidl, extra_core {
Cleanup_Func_Registry.cpp
Client_Strategy_Factory.cpp
ClientRequestInterceptor_Adapter_Factory.cpp
- ClientRequestInterceptor_Adapter.cpp
Codeset_Manager.cpp
Codeset_Manager_Factory_Base.cpp
Codeset_Translator_Base.cpp
@@ -91,7 +90,6 @@ project(TAO) : acelib, core, tao_output, taodefaults, pidl, extra_core {
IIOP_Transport.cpp
IIOPC.cpp
Incoming_Message_Queue.cpp
- Incoming_Message_Stack.cpp
Invocation_Adapter.cpp
Invocation_Base.cpp
Invocation_Endpoint_Selectors.cpp
@@ -178,7 +176,6 @@ project(TAO) : acelib, core, tao_output, taodefaults, pidl, extra_core {
Resume_Handle.cpp
Sequence.cpp
Server_Strategy_Factory.cpp
- ServerRequestInterceptor_Adapter.cpp
ServerRequestInterceptor_Adapter_Factory.cpp
Service_Callbacks.cpp
Service_Context.cpp
@@ -347,7 +344,6 @@ project(TAO) : acelib, core, tao_output, taodefaults, pidl, extra_core {
IIOP_Profile.h
IIOP_Transport.h
Incoming_Message_Queue.h
- Incoming_Message_Stack.h
Invocation_Adapter.h
Invocation_Base.h
Invocation_Endpoint_Selectors.h
@@ -514,7 +510,6 @@ project(TAO) : acelib, core, tao_output, taodefaults, pidl, extra_core {
VarOut_T.h
Var_Size_Argument_T.h
Version.h
- Versioned_Namespace.h
Wait_On_Leader_Follower.h
Wait_On_LF_No_Upcall.h
Wait_On_Reactor.h
diff --git a/TAO/tao/target_specification.cpp b/TAO/tao/target_specification.cpp
index ca77495c883..d72faa3c200 100644
--- a/TAO/tao/target_specification.cpp
+++ b/TAO/tao/target_specification.cpp
@@ -4,7 +4,7 @@
#include "tao/target_specification.h"
#if !defined (__ACE_INLINE__)
-#include "tao/target_specification.i"
+#include "target_specification.i"
#endif /* !defined INLINE */
ACE_RCSID (tao,
diff --git a/TAO/tao/target_specification.h b/TAO/tao/target_specification.h
index 60c997f0e3c..4a352a6b333 100644
--- a/TAO/tao/target_specification.h
+++ b/TAO/tao/target_specification.h
@@ -35,7 +35,6 @@
# undef IOR
#endif /* HPUX && IOR */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace IOP
{
@@ -128,10 +127,8 @@ private:
CORBA::ULong profile_index_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
-#include "tao/target_specification.i"
+#include "target_specification.i"
#endif /* defined INLINE */
#include /**/ "ace/post.h"
diff --git a/TAO/tao/target_specification.i b/TAO/tao/target_specification.i
index dd1265bf0df..e427b1dd9be 100644
--- a/TAO/tao/target_specification.i
+++ b/TAO/tao/target_specification.i
@@ -1,8 +1,6 @@
-// -*- C++ -*-
-//
+//-*- C++ -*-
//$Id$
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
TAO_Target_Specification::TAO_Target_Specification (void)
@@ -83,5 +81,3 @@ TAO_Target_Specification::specifier (void)
{
return this->specifier_;
}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tao/varbase.h b/TAO/tao/varbase.h
index 58b1a595c87..f2ba8aea77f 100644
--- a/TAO/tao/varbase.h
+++ b/TAO/tao/varbase.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -17,10 +17,6 @@
#define TAO_VARBASE_H
#include /**/ "ace/pre.h"
-#include "tao/Versioned_Namespace.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class TAO_Base_var
*
@@ -43,7 +39,5 @@ private:
};
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* TAO_VARBASE_H */
diff --git a/TAO/tests/AMH_Exceptions/AMH_Exceptions.mpc b/TAO/tests/AMH_Exceptions/AMH_Exceptions.mpc
index 5188e4a669b..31273239815 100644
--- a/TAO/tests/AMH_Exceptions/AMH_Exceptions.mpc
+++ b/TAO/tests/AMH_Exceptions/AMH_Exceptions.mpc
@@ -8,7 +8,6 @@ project(*Server): taoserver, amh, strategies {
}
project(*Client): taoexe, amh, portableserver, strategies {
- after += *Server
Source_Files {
client.cpp
}
diff --git a/TAO/tests/AMH_Exceptions/client.cpp b/TAO/tests/AMH_Exceptions/client.cpp
index 9ff92b2933d..ebc75580c11 100644
--- a/TAO/tests/AMH_Exceptions/client.cpp
+++ b/TAO/tests/AMH_Exceptions/client.cpp
@@ -1,17 +1,20 @@
// $Id$
#include "TestC.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "file://test.ior";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int received_expected_exception = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/tests/AMH_Exceptions/run_test.pl b/TAO/tests/AMH_Exceptions/run_test.pl
index 4c78cd27121..deff794042a 100755
--- a/TAO/tests/AMH_Exceptions/run_test.pl
+++ b/TAO/tests/AMH_Exceptions/run_test.pl
@@ -11,7 +11,7 @@ use lib "../../../bin";
use PerlACE::Run_Test;
# Amount of delay (in seconds) between starting a server and a client.
-$sleeptime = $PerlACE::wait_interval_for_process_creation;
+$sleeptime = 6;
# File used to pass AMH server ior to its clients.
# This file name is hard-coded in the server.cpp and client.cpp files
diff --git a/TAO/tests/AMH_Exceptions/server.cpp b/TAO/tests/AMH_Exceptions/server.cpp
index 05d82934074..c9a412e2c5d 100644
--- a/TAO/tests/AMH_Exceptions/server.cpp
+++ b/TAO/tests/AMH_Exceptions/server.cpp
@@ -3,6 +3,7 @@
#include "ace/OS_NS_stdio.h"
#include "TestS.h"
+#include "ace/Argv_Type_Converter.h"
/***************************/
/*** Servant Declaration ***/
@@ -209,7 +210,7 @@ ST_AMH_Server::write_ior_to_file (CORBA::String_var ior)
{
// If the ior_output_file exists, output the ior to it
FILE *output_file= ACE_OS::fopen (ST_AMH_Server::ior_output_file_,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
{
ACE_ERROR ((LM_ERROR,
@@ -225,9 +226,12 @@ ST_AMH_Server::write_ior_to_file (CORBA::String_var ior)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ST_AMH_Server amh_server (&argc, argv);
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ int& argc2 = convert.get_argc();
+ ST_AMH_Server amh_server (&argc2, convert.get_ASCII_argv());
amh_server.start_orb_and_poa ();
diff --git a/TAO/tests/AMH_Oneway/AMH_Oneway.mpc b/TAO/tests/AMH_Oneway/AMH_Oneway.mpc
index a0a1fbb883e..b42dca05552 100644
--- a/TAO/tests/AMH_Oneway/AMH_Oneway.mpc
+++ b/TAO/tests/AMH_Oneway/AMH_Oneway.mpc
@@ -8,7 +8,6 @@ project(*client) : taoexe, portableserver, amh {
}
project(*server) : taoserver, amh, strategies {
- after += *client
source_files {
server.cpp
}
diff --git a/TAO/tests/AMH_Oneway/client.cpp b/TAO/tests/AMH_Oneway/client.cpp
index ade35e5e386..ba950a012da 100644
--- a/TAO/tests/AMH_Oneway/client.cpp
+++ b/TAO/tests/AMH_Oneway/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "TestC.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "file://test.ior";
int num_calls = 10;
@@ -9,7 +10,8 @@ int num_calls = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "n:");
int c;
while ((c = get_opts ()) != -1)
@@ -25,15 +27,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/AMH_Oneway/run_test.pl b/TAO/tests/AMH_Oneway/run_test.pl
index e092024d923..aacfe3d9128 100755
--- a/TAO/tests/AMH_Oneway/run_test.pl
+++ b/TAO/tests/AMH_Oneway/run_test.pl
@@ -11,7 +11,7 @@ use lib "../../../bin";
use PerlACE::Run_Test;
# Amount of delay (in seconds) between starting a server and a client.
-$sleeptime = $PerlACE::wait_interval_for_process_creation;
+$sleeptime = 6;
# File used to pass AMH server ior to its clients.
# This file name is hard-coded in the server.cpp and client.cpp files
@@ -19,21 +19,11 @@ $iorfile = PerlACE::LocalFile("test.ior");
unlink $iorfile;
-if (PerlACE::is_vxworks_test()) {
- $AMH = new PerlACE::ProcessVX ("server", "");
-}
-else {
- $AMH = new PerlACE::Process ("server", "");
-}
+$AMH = new PerlACE::Process ("server", "");
$CL = new PerlACE::Process ("client", "");
# Run the AMH server.
-$sv = $AMH->Spawn ();
-
-if ($sv != 0) {
- print STDERR "ERROR: AMH server returned $sv\n";
- exit 1;
-}
+$AMH->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile, $sleeptime) == -1) {
print STDERR "ERROR: File containing AMH Server ior,".
@@ -42,7 +32,7 @@ if (PerlACE::waitforfile_timed ($iorfile, $sleeptime) == -1) {
exit 1;
}
-# Run the client.
+# Run the cleint client.
$client = $CL->Spawn ();
@@ -50,7 +40,7 @@ $client = $CL->Spawn ();
$client = $CL->WaitKill (30);
if ($client != 0) {
- print STDERR "ERROR: Client returned $client\n";
+ print STDERR "ERROR: Client returned $amhserver\n";
$status = 1;
}
diff --git a/TAO/tests/AMH_Oneway/server.cpp b/TAO/tests/AMH_Oneway/server.cpp
index 7d75444d7fb..f9825491ecf 100644
--- a/TAO/tests/AMH_Oneway/server.cpp
+++ b/TAO/tests/AMH_Oneway/server.cpp
@@ -4,6 +4,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "TestS.h"
int num_calls = 10; // total calls client is going to make
@@ -15,7 +16,8 @@ int calls_received = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "n:");
int c;
while ((c = get_opts ()) != -1)
@@ -232,7 +234,7 @@ ST_AMH_Server::write_ior_to_file (CORBA::String_var ior)
{
// If the ior_output_file exists, output the ior to it
FILE *output_file= ACE_OS::fopen (ST_AMH_Server::ior_output_file_,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
{
ACE_ERROR ((LM_ERROR,
@@ -248,12 +250,15 @@ ST_AMH_Server::write_ior_to_file (CORBA::String_var ior)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc, argv) != 0)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
- ST_AMH_Server amh_server (&argc, argv);
+ int& argc2 = convert.get_argc();
+ ST_AMH_Server amh_server (&argc2, convert.get_ASCII_argv());
amh_server.start_orb_and_poa ();
diff --git a/TAO/tests/AMI/AMI.mpc b/TAO/tests/AMI/AMI.mpc
index 894442827ba..dcade4b27d7 100644
--- a/TAO/tests/AMI/AMI.mpc
+++ b/TAO/tests/AMI/AMI.mpc
@@ -9,14 +9,12 @@ project(*Server): taoserver, messaging, ami {
}
project(*Client): messaging, taoexe, portableserver, ami {
- after += *Server
Source_Files {
client.cpp
}
}
project(*Simple Client): messaging, taoexe, portableserver, ami {
- after += *Server
Source_Files {
simple_client.cpp
}
diff --git a/TAO/tests/AMI/client.cpp b/TAO/tests/AMI/client.cpp
index dfebe21b163..83b14a82a2c 100644
--- a/TAO/tests/AMI/client.cpp
+++ b/TAO/tests/AMI/client.cpp
@@ -16,6 +16,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "ami_testS.h"
ACE_RCSID (AMI,
@@ -31,7 +32,8 @@ int number_of_replies = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:n:i:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "dk:n:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -110,10 +112,10 @@ public:
out_l));
}
- --number_of_replies;
+ number_of_replies--;
};
- void foo_excep (::Messaging::ExceptionHolder * excep_holder
+ void foo_excep (A::AMI_AMI_TestExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -122,7 +124,7 @@ public:
"Callback method <foo_excep> called: \n"));
ACE_TRY
{
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_foo (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -143,7 +145,7 @@ public:
result));
};
- void get_yadda_excep (::Messaging::ExceptionHolder *
+ void get_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -158,7 +160,7 @@ public:
"Callback method <set_yadda> called: \n"));
};
- void set_yadda_excep (::Messaging::ExceptionHolder *
+ void set_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -177,7 +179,7 @@ public:
"Callback method <set_yadda_excep> called: \n"));
}
- void inout_arg_test_excep (::Messaging::ExceptionHolder *
+ void inout_arg_test_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -188,16 +190,18 @@ public:
Handler handler;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/AMI/run_test.pl b/TAO/tests/AMI/run_test.pl
index 8b43bbe69a4..f3e7493a8fd 100755
--- a/TAO/tests/AMI/run_test.pl
+++ b/TAO/tests/AMI/run_test.pl
@@ -48,23 +48,14 @@ $CL = new PerlACE::Process ("simple_client",
"-ORBsvcconf $client_conf "
. "-ORBdebuglevel $debug_level"
. " -k file://$iorfile "
- . " -i $iterations -d");
+ . " -i $iterations -x -d");
$client = $CL->SpawnWaitKill (60);
-
-$CL2 = new PerlACE::Process ("simple_client",
- "-ORBsvcconf $client_conf"
- . " -ORBCollocation no"
- . " -ORBdebuglevel $debug_level"
- . " -k file://$iorfile "
- . " -i $iterations -x -d");
-$client2 = $CL2->SpawnWaitKill (60);
-
$server = $SV->WaitKill (10);
unlink $iorfile;
-if ($server != 0 || $client != 0 || $client2 != 0) {
+if ($server != 0 || $client != 0) {
exit 1;
}
diff --git a/TAO/tests/AMI/server.cpp b/TAO/tests/AMI/server.cpp
index b2868cd1e58..96b638cb837 100644
--- a/TAO/tests/AMI/server.cpp
+++ b/TAO/tests/AMI/server.cpp
@@ -18,6 +18,7 @@
#include "tao/debug.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(AMI, server, "$Id$")
@@ -26,7 +27,8 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -52,13 +54,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -78,7 +82,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
AMI_Test_i ami_test_i (orb.in ());
@@ -96,7 +100,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/AMI/simple_client.cpp b/TAO/tests/AMI/simple_client.cpp
index 2a22d5164ed..40b67edad4e 100644
--- a/TAO/tests/AMI/simple_client.cpp
+++ b/TAO/tests/AMI/simple_client.cpp
@@ -16,6 +16,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "ami_testS.h"
@@ -31,7 +32,8 @@ int debug = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:i:x");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "dk:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -87,28 +89,27 @@ public:
}
};
- void foo_excep (::Messaging::ExceptionHolder * excep_holder
+ void foo_excep (A::AMI_AMI_TestExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_DEBUG ((LM_DEBUG,
"Callback method <foo_excep> called: \n"
- "Testing proper exception handling ...\n"));
+ "Testing proper exception handling ...\n"));
ACE_TRY
{
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_foo (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCH (A::DidTheRightThing, ex)
{
ACE_DEBUG ((LM_DEBUG,
"... exception received successfully\n"));
- }
+ }
ACE_CATCHANY
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ERROR");
- ACE_ERROR ((LM_ERROR,
+ ACE_DEBUG ((LM_DEBUG,
"... caught the wrong exception -> ERROR\n"));
}
ACE_ENDTRY;
@@ -125,7 +126,7 @@ public:
result));
};
- void get_yadda_excep (::Messaging::ExceptionHolder *
+ void get_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -140,7 +141,7 @@ public:
"Callback method <set_yadda> called: \n"));
};
- void set_yadda_excep (::Messaging::ExceptionHolder *
+ void set_yadda_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -158,7 +159,7 @@ public:
"Callback method <set_yadda_excep> called: \n"));
}
- void inout_arg_test_excep (::Messaging::ExceptionHolder *
+ void inout_arg_test_excep (A::AMI_AMI_TestExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -166,15 +167,16 @@ public:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object_var =
@@ -192,7 +194,7 @@ main (int argc, char *argv[])
poa_manager_var->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// We reuse the object_var smart pointer!
@@ -226,6 +228,7 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+
// Trigger the DidTheRightThing exception on the server side
// by sending 0 to it.
ACE_DEBUG ((LM_DEBUG,
diff --git a/TAO/tests/AMI_Buffering/AMI_Buffering.mpc b/TAO/tests/AMI_Buffering/AMI_Buffering.mpc
index a4156b9a83f..8e9d0e4abb2 100644
--- a/TAO/tests/AMI_Buffering/AMI_Buffering.mpc
+++ b/TAO/tests/AMI_Buffering/AMI_Buffering.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, ami {
}
project(*Client): taoserver, ami {
- after += *Server
exename = client
Source_Files {
Client_Task.cpp
@@ -19,7 +18,6 @@ project(*Client): taoserver, ami {
}
project(*Admin): taoserver, ami {
- after += *Client
exename = admin
Source_Files {
AMI_Buffering_Admin.cpp
diff --git a/TAO/tests/AMI_Buffering/Reply_Handler.cpp b/TAO/tests/AMI_Buffering/Reply_Handler.cpp
index 7c8a210d9d3..7666e09cd4d 100644
--- a/TAO/tests/AMI_Buffering/Reply_Handler.cpp
+++ b/TAO/tests/AMI_Buffering/Reply_Handler.cpp
@@ -16,13 +16,13 @@ Reply_Handler::receive_data (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-Reply_Handler::receive_data_excep (::Messaging::ExceptionHolder *holder
+Reply_Handler::receive_data_excep (Test::AMI_AMI_BufferingExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_receive_data (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -40,13 +40,13 @@ Reply_Handler::sync (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-Reply_Handler::sync_excep (::Messaging::ExceptionHolder *holder
+Reply_Handler::sync_excep (Test::AMI_AMI_BufferingExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_sync (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -64,13 +64,13 @@ Reply_Handler::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-Reply_Handler::shutdown_excep (::Messaging::ExceptionHolder *holder
+Reply_Handler::shutdown_excep (Test::AMI_AMI_BufferingExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/AMI_Buffering/Reply_Handler.h b/TAO/tests/AMI_Buffering/Reply_Handler.h
index 9d73cbcc70d..f36e5734f41 100644
--- a/TAO/tests/AMI_Buffering/Reply_Handler.h
+++ b/TAO/tests/AMI_Buffering/Reply_Handler.h
@@ -19,19 +19,19 @@ public:
// = The skeleton methods
virtual void receive_data (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void receive_data_excep (::Messaging::ExceptionHolder *holder
+ virtual void receive_data_excep (Test::AMI_AMI_BufferingExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void sync (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void sync_excep (::Messaging::ExceptionHolder *holder
+ virtual void sync_excep (Test::AMI_AMI_BufferingExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown_excep (::Messaging::ExceptionHolder *holder
+ virtual void shutdown_excep (Test::AMI_AMI_BufferingExceptionHolder *holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
};
diff --git a/TAO/tests/AMI_Buffering/admin.cpp b/TAO/tests/AMI_Buffering/admin.cpp
index 9c883a1d3f5..4d5dd7deb5a 100644
--- a/TAO/tests/AMI_Buffering/admin.cpp
+++ b/TAO/tests/AMI_Buffering/admin.cpp
@@ -3,6 +3,7 @@
#include "AMI_Buffering_Admin.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(AMI_Buffering, admin, "$Id$")
@@ -11,7 +12,8 @@ const char *ior_output_file = "admin.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +37,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +64,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
AMI_Buffering_Admin *AMI_buffering_admin_impl;
@@ -78,7 +82,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/AMI_Buffering/client.cpp b/TAO/tests/AMI_Buffering/client.cpp
index 6ec3f9364f6..b6a585f75c8 100644
--- a/TAO/tests/AMI_Buffering/client.cpp
+++ b/TAO/tests/AMI_Buffering/client.cpp
@@ -7,6 +7,7 @@
#include "tao/AnyTypeCode/TAOA.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(AMI_Buffering, client, "$Id$")
@@ -40,7 +41,8 @@ const double GIOP_OVERHEAD = 0.9;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:a:i:ctbr");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "k:a:i:ctbr");
int c;
while ((c = get_opts ()) != -1)
@@ -114,13 +116,15 @@ run_buffer_size (CORBA::ORB_ptr orb,
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int test_failed = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -143,7 +147,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/AMI_Buffering/server.cpp b/TAO/tests/AMI_Buffering/server.cpp
index ba5fa487943..625f5f461dc 100644
--- a/TAO/tests/AMI_Buffering/server.cpp
+++ b/TAO/tests/AMI_Buffering/server.cpp
@@ -3,6 +3,7 @@
#include "AMI_Buffering.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(AMI_Buffering, server, "$Id$")
@@ -12,7 +13,8 @@ const char *ior = "file://admin.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:k:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "o:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +43,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -66,7 +70,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
@@ -101,7 +105,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/AMI_Timeouts/client.cpp b/TAO/tests/AMI_Timeouts/client.cpp
index e483bc5d871..8bc203a6169 100644
--- a/TAO/tests/AMI_Timeouts/client.cpp
+++ b/TAO/tests/AMI_Timeouts/client.cpp
@@ -18,6 +18,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI,
client,
@@ -29,7 +30,8 @@ unsigned int msec = 50;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:t:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "dk:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -60,16 +62,18 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/AMI_Timeouts/server.cpp b/TAO/tests/AMI_Timeouts/server.cpp
index b26f765296d..d022b89fcf5 100644
--- a/TAO/tests/AMI_Timeouts/server.cpp
+++ b/TAO/tests/AMI_Timeouts/server.cpp
@@ -16,6 +16,7 @@
#include "timeout_client.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (AMI,
server,
@@ -26,7 +27,8 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -52,13 +54,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -78,7 +82,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Timeout_i timeout_i (orb.in ());
@@ -96,7 +100,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/AMI_Timeouts/timeout_i.cpp b/TAO/tests/AMI_Timeouts/timeout_i.cpp
index ff9fab96bd8..f7812908404 100644
--- a/TAO/tests/AMI_Timeouts/timeout_i.cpp
+++ b/TAO/tests/AMI_Timeouts/timeout_i.cpp
@@ -82,7 +82,7 @@ TimeoutHandler_i::sendTimeToWait (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-TimeoutHandler_i::sendTimeToWait_excep (::Messaging::ExceptionHolder *excep_holder
+TimeoutHandler_i::sendTimeToWait_excep (AMI_TimeoutObjExceptionHolder *excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -90,7 +90,7 @@ TimeoutHandler_i::sendTimeToWait_excep (::Messaging::ExceptionHolder *excep_hold
ACE_TRY
{
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_sendTimeToWait (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCH (CORBA::TIMEOUT, timeout)
diff --git a/TAO/tests/AMI_Timeouts/timeout_i.h b/TAO/tests/AMI_Timeouts/timeout_i.h
index d4082ac05d2..8054d1ac6ff 100644
--- a/TAO/tests/AMI_Timeouts/timeout_i.h
+++ b/TAO/tests/AMI_Timeouts/timeout_i.h
@@ -55,7 +55,7 @@ public:
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void sendTimeToWait_excep (
- ::Messaging::ExceptionHolder * excep_holder
+ AMI_TimeoutObjExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/tests/Abstract_Interface/Abstract_Interface.mpc b/TAO/tests/Abstract_Interface/Abstract_Interface.mpc
index cc0059d58c7..4eeadb14767 100644
--- a/TAO/tests/Abstract_Interface/Abstract_Interface.mpc
+++ b/TAO/tests/Abstract_Interface/Abstract_Interface.mpc
@@ -19,7 +19,6 @@ project(*client) : taoclient, valuetype {
}
project(*server) : taoserver, valuetype {
- after += *client
idlflags += -Sc
IDL_Files {
diff --git a/TAO/tests/Abstract_Interface/client.cpp b/TAO/tests/Abstract_Interface/client.cpp
index 0a26fb84775..13ca7568315 100644
--- a/TAO/tests/Abstract_Interface/client.cpp
+++ b/TAO/tests/Abstract_Interface/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Abstract_Interface,
client,
@@ -23,7 +24,7 @@ test_select which_test = TEST_ALL;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:dsoe");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:dsoe");
int c;
while ((c = get_opts ()) != -1)
@@ -184,19 +185,22 @@ test_exception (base_ptr abs
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::String_var retval;
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
diff --git a/TAO/tests/Abstract_Interface/server.cpp b/TAO/tests/Abstract_Interface/server.cpp
index 6a3c9034587..b8087ab8195 100644
--- a/TAO/tests/Abstract_Interface/server.cpp
+++ b/TAO/tests/Abstract_Interface/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Abstract_Interface,
server,
@@ -13,7 +14,8 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +39,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -104,7 +108,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
@@ -126,7 +130,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/Abstract_Interface/test_i.cpp b/TAO/tests/Abstract_Interface/test_i.cpp
index a3e9072788b..ac6c799d32b 100644
--- a/TAO/tests/Abstract_Interface/test_i.cpp
+++ b/TAO/tests/Abstract_Interface/test_i.cpp
@@ -78,7 +78,7 @@ passer_i::pass_state (base_out outarg
))
{
TreeController_var tc;
- ACE_NEW (tc.inout (),
+ ACE_NEW (tc,
OBV_TreeController);
// Create the root node.
diff --git a/TAO/tests/AlternateIIOP/run_test.pl b/TAO/tests/AlternateIIOP/run_test.pl
index 8471efda5a1..c8734d538a4 100755
--- a/TAO/tests/AlternateIIOP/run_test.pl
+++ b/TAO/tests/AlternateIIOP/run_test.pl
@@ -14,8 +14,8 @@ $status = 0;
@bogus_eps = ("-orbendpoint iiop://localhost:10200/hostname_in_ior=bogus.com",
"-orbendpoint iiop://localhost:10202/hostname_in_ior=bogus.com");
$valid_ep = "-orbendpoint iiop://localhost:10201";
-
-$SV_ALT_IIOP = new PerlACE::Process ("../Hello/server", "-o $iorfile $bogus_eps[0] $valid_ep $bogus_eps[1]");
+print "Running ../Hello/server with -o $iorfile $bogus_eps[0] $valid_ep $bogus_eps[1]\n";
+$SV_ALT_IIOP = new PerlACE::Process ("../Hello/server", "-ORBUseSharedProfile 1 -o $iorfile $bogus_eps[0] $valid_ep $bogus_eps[1]");
$CL_ALT_IIOP = new PerlACE::Process ("../Hello/client", " -k file://$iorfile");
$SV_ALT_IIOP->Spawn ();
diff --git a/TAO/tests/AlternateIIOP/svc.conf b/TAO/tests/AlternateIIOP/svc.conf
deleted file mode 100644
index 03c69cdb546..00000000000
--- a/TAO/tests/AlternateIIOP/svc.conf
+++ /dev/null
@@ -1 +0,0 @@
-dynamic OC_Endpoint_Selector_Factory Service_Object * TAO_Strategies:_make_TAO_OC_Endpoint_Selector_Factory () "-connect_timeout 1300"
diff --git a/TAO/tests/Any/Recursive/RecursiveHello.mpc b/TAO/tests/Any/Recursive/RecursiveHello.mpc
index 739a66df566..8e6644828da 100644
--- a/TAO/tests/Any/Recursive/RecursiveHello.mpc
+++ b/TAO/tests/Any/Recursive/RecursiveHello.mpc
@@ -10,8 +10,7 @@ project(*Server): taoserver, valuetype {
}
project(*Client): taoclient, valuetype, typecodefactory, ifr_client {
- after += *Server
-
+
Source_Files {
TestC.cpp
NonRecursiveC.cpp
diff --git a/TAO/tests/Any/Recursive/Test.idl b/TAO/tests/Any/Recursive/Test.idl
index d1d5e447c36..a097416f9e5 100644
--- a/TAO/tests/Any/Recursive/Test.idl
+++ b/TAO/tests/Any/Recursive/Test.idl
@@ -15,7 +15,6 @@ module Test
{
RecursiveStructSeq recursive_structs;
long i;
- RecursiveStructSeq recursive_structs_second;
};
// --------------------------
@@ -27,58 +26,10 @@ module Test
{
case 0:
RecursiveUnionSeq recursive_unions;
- case 1:
- short a;
- case 2:
- RecursiveUnionSeq recursive_unions_second;
default:
long i;
};
- union RecursiveUnionNoDefault;
- typedef sequence<RecursiveUnionNoDefault> RecursiveUnionSeqNoDefault;
-
- union RecursiveUnionNoDefault switch (short)
- {
- case 0:
- RecursiveUnionSeqNoDefault recursive_unions;
- case 1:
- short a;
- case 2:
- RecursiveUnionSeqNoDefault recursive_unions_second;
- };
-
- // --------------------------
-
- // --------------------------
-
- enum VSort {
- UNKNOWN_TYPE,
- RECURSIVE_TYPE,
- LONG_STYPE,
- BOOL_STYPE
- };
-
- union VSortRecursiveUnion;
- typedef sequence<VSortRecursiveUnion> VSortRecursiveUnionSeq;
- union VSortRecursiveUnion switch (VSort)
- {
- case RECURSIVE_TYPE:
- VSortRecursiveUnionSeq recursive_unions;
- case LONG_STYPE:
- long i;
- };
-
- // --------------------------
-
- union EnumUnion switch (VSort)
- {
- case BOOL_STYPE:
- boolean a;
- case LONG_STYPE:
- long i;
- };
-
// --------------------------
valuetype IndirectlyRecursiveValuetype;
@@ -95,7 +46,6 @@ module Test
valuetype DirectlyRecursiveValuetype
{
public DirectlyRecursiveValuetype recursive_valuetype;
- public DirectlyRecursiveValuetype recursive_valuetype_second;
};
// --------------------------
diff --git a/TAO/tests/Any/Recursive/client.cpp b/TAO/tests/Any/Recursive/client.cpp
index 6bb78f5ed62..963ca14035c 100644
--- a/TAO/tests/Any/Recursive/client.cpp
+++ b/TAO/tests/Any/Recursive/client.cpp
@@ -5,6 +5,7 @@
#include "tao/TypeCodeFactory/TypeCodeFactory_Loader.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include <algorithm>
#include <functional>
@@ -20,7 +21,8 @@ const char * ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_Get_Arg_Opt<char> get_opts (convert.get_argc(), convert.get_ASCII_argv(), "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -168,22 +170,13 @@ recursive_union_test (CORBA::ORB_ptr /* orb */,
"Executing recursive union test\n"));
Test::RecursiveUnion foo;
- Test::EnumUnion foo_enum;
- static CORBA::Long const test_long = 238901;
- CORBA::Any the_any;
-
- // First simple case, just an union with an enum as discriminator
- foo_enum.i (test_long);
- the_any <<= foo_enum;
-
- ::perform_invocation<Test::EnumUnion> (hello,
- the_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
// Non-recursive member case.
+ static CORBA::Long const test_long = 238901;
+
foo.i (test_long);
+ CORBA::Any the_any;
the_any <<= foo;
::perform_invocation<Test::RecursiveUnion> (hello,
@@ -205,38 +198,6 @@ recursive_union_test (CORBA::ORB_ptr /* orb */,
the_any
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
-
- // Recursive member case with no default member
- Test::RecursiveUnionSeqNoDefault seqnodefault;
- seqnodefault.length (2);
- seqnodefault[0].a (37);
- seqnodefault[1].recursive_unions (Test::RecursiveUnionSeqNoDefault ());
-
- Test::RecursiveUnionNoDefault foonodefault;
- foonodefault.recursive_unions (seqnodefault);
-
- the_any <<= foonodefault;
-
- ::perform_invocation<Test::RecursiveUnionNoDefault> (hello,
- the_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Recursive member case with enum .
- Test::VSortRecursiveUnionSeq vsortseq;
- vsortseq.length (2);
- vsortseq[0].i (37);
- vsortseq[1].recursive_unions (Test::VSortRecursiveUnionSeq ());
-
- Test::VSortRecursiveUnion vsort_foo;
- vsort_foo.recursive_unions (vsortseq);
-
- the_any <<= vsort_foo;
-
- ::perform_invocation<Test::VSortRecursiveUnion> (hello,
- the_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
}
@@ -295,14 +256,12 @@ recursive_struct_typecodefactory_test (CORBA::ORB_ptr orb,
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- CORBA::StructMemberSeq members (3);
- members.length (3);
+ CORBA::StructMemberSeq members (2);
+ members.length (2);
members[0].name = "recursive_structs";
members[0].type = seq_tc;
members[1].name = "i";
members[1].type = CORBA::TypeCode::_duplicate (CORBA::_tc_long);
- members[2].name = "recursive_structs_second";
- members[2].type = seq_tc;
CORBA::TypeCode_var struct_tc =
orb->create_struct_tc ("IDL:Test/RecursiveStruct:1.0",
@@ -411,15 +370,17 @@ struct Caller : public std::unary_function<T, void>
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Any/Recursive/server.cpp b/TAO/tests/Any/Recursive/server.cpp
index 177aad4d1d8..b9b071c2cee 100644
--- a/TAO/tests/Any/Recursive/server.cpp
+++ b/TAO/tests/Any/Recursive/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Hello,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/BiDirectional/BiDirectional.mpc b/TAO/tests/BiDirectional/BiDirectional.mpc
index 55e22534e4a..8f1239bb195 100644
--- a/TAO/tests/BiDirectional/BiDirectional.mpc
+++ b/TAO/tests/BiDirectional/BiDirectional.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, anytypecode, minimum_corba, bidir_giop {
project(*Client): taoserver, anytypecode, minimum_corba, bidir_giop {
exename = client
- after += *Server
Source_Files {
test_i.cpp
client.cpp
diff --git a/TAO/tests/BiDirectional/client.cpp b/TAO/tests/BiDirectional/client.cpp
index d775aabc942..47e5dcbda8b 100644
--- a/TAO/tests/BiDirectional/client.cpp
+++ b/TAO/tests/BiDirectional/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -16,7 +17,7 @@ void do_nothing (void)
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,12 +41,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -99,7 +102,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/BiDirectional/run_test_ipv6.pl b/TAO/tests/BiDirectional/run_test_ipv6.pl
index c422afa3a00..b3a3676d4fd 100755
--- a/TAO/tests/BiDirectional/run_test_ipv6.pl
+++ b/TAO/tests/BiDirectional/run_test_ipv6.pl
@@ -14,12 +14,12 @@ $iorfile = PerlACE::LocalFile ("test.ior");
unlink $iorfile;
if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o test.ior -i 100 -ORBConnectIPV6Only 1");
+ $SV = new PerlACE::ProcessVX ("server", "-o test.ior -i 100 -ORBConnectIPV6Only YES");
}
else {
- $SV = new PerlACE::Process ("server", "-o $iorfile -i 100 -ORBConnectIPV6Only 1");
+ $SV = new PerlACE::Process ("server", "-o $iorfile -i 100 -ORBConnectIPV6Only YES");
}
-$CL = new PerlACE::Process ("client", "-k file://$iorfile -ORBConnectIPV6Only 1");
+$CL = new PerlACE::Process ("client", "-k file://$iorfile -ORBConnectIPV6Only YES");
$SV->Spawn ();
diff --git a/TAO/tests/BiDirectional/server.cpp b/TAO/tests/BiDirectional/server.cpp
index 02f3a672f43..d72ee7a91d3 100644
--- a/TAO/tests/BiDirectional/server.cpp
+++ b/TAO/tests/BiDirectional/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -14,7 +15,7 @@ int no_iterations = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -100,7 +103,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in (),
@@ -128,7 +131,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/BiDirectional/test_i.cpp b/TAO/tests/BiDirectional/test_i.cpp
index 88c345394db..8203a116ce5 100644
--- a/TAO/tests/BiDirectional/test_i.cpp
+++ b/TAO/tests/BiDirectional/test_i.cpp
@@ -64,9 +64,6 @@ Simple_Server_i::call_client (ACE_ENV_SINGLE_ARG_DECL)
this->callback_->callback_method (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
- // If the cache size has gotten larger this indicates that
- // the connection isn't being shared properly, i.e., a new
- // connection was created, so we'll abort.
if (this->orb_->orb_core ()->lane_resources ().transport_cache ().current_size () > 1)
{
ACE_ERROR ((LM_ERROR,
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/BiDir_DelayedUpcall.mpc b/TAO/tests/BiDirectional_DelayedUpcall/BiDir_DelayedUpcall.mpc
deleted file mode 100644
index abcf650df1b..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/BiDir_DelayedUpcall.mpc
+++ /dev/null
@@ -1,18 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, minimum_corba, bidir_giop {
- Source_Files {
- test_i.cpp
- server.cpp
- }
-}
-
-project(*Client): taoexe, portableserver, minimum_corba, bidir_giop {
- after += *Server
- Source_Files {
- test_i.cpp
- client.cpp
- }
-}
-
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/README b/TAO/tests/BiDirectional_DelayedUpcall/README
deleted file mode 100644
index 60497253309..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/README
+++ /dev/null
@@ -1,6 +0,0 @@
-# $Id$
-
-This test is similar to the $TAO_ROOT/tests/BiDirectional test. The
-only difference being that the server after it has received the upcall
-it does a bit delayed a bunch of remote calls do the client again
-
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/client.cpp b/TAO/tests/BiDirectional_DelayedUpcall/client.cpp
deleted file mode 100644
index a6b00269d1b..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/client.cpp
+++ /dev/null
@@ -1,173 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "test_i.h"
-#include "ace/High_Res_Timer.h"
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
-#include "tao/AnyTypeCode/Any.h"
-
-ACE_RCSID(BiDirectional, client, "$Id$")
-
-const char *ior = "file://test.ior";
-
-void do_nothing (void)
-{
-}
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Policies for the childPOA to be created.
- CORBA::PolicyList policies (1);
- policies.length (1);
-
- CORBA::Any pol;
- pol <<= BiDirPolicy::BOTH;
- policies[0] =
- orb->create_policy (BiDirPolicy::BIDIRECTIONAL_POLICY_TYPE,
- pol
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Create POA as child of RootPOA with the above policies. This POA
- // will receive request in the same connection in which it sent
- // the request
- PortableServer::POA_var child_poa =
- root_poa->create_POA ("childPOA",
- poa_manager.in (),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Creation of childPOA is over. Destroy the Policy objects.
- for (CORBA::ULong i = 0;
- i < policies.length ();
- ++i)
- {
- policies[i]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object =
- orb->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Simple_Server_var server =
- Simple_Server::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Object reference <%s> is nil\n",
- ior),
- 1);
- }
-
- Callback_i *callback_impl = 0;
- ACE_NEW_THROW_EX (callback_impl,
- Callback_i (orb.in ()),
- CORBA::NO_MEMORY ());
-
- PortableServer::ServantBase_var owner_transfer(callback_impl);
-
- Callback_var callback =
- callback_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Send the calback object to the server
- server->callback_object (callback.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Call the client that will make remote calls to us again, but
- // not directly, but delayed for a second or so.
- CORBA::Long r =
- server->test_method (1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (r != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) unexpected result = %d ",
- r));
- }
-
- // Run now the ORB for 5 seconds
- ACE_Time_Value run_time (5);
- orb->run (run_time ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Shutdown the server
- server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/run_test.pl b/TAO/tests/BiDirectional_DelayedUpcall/run_test.pl
deleted file mode 100755
index ee4c91cce64..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/run_test.pl
+++ /dev/null
@@ -1,48 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$iorfile = PerlACE::LocalFile ("test.ior");
-
-unlink $iorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o test.ior -i 100");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile -i 100");
-}
-$CL = new PerlACE::Process ("client", "-k file://$iorfile");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (20);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (20);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/server.cpp b/TAO/tests/BiDirectional_DelayedUpcall/server.cpp
deleted file mode 100644
index ef4c284f576..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/server.cpp
+++ /dev/null
@@ -1,164 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "test_i.h"
-#include "tao/BiDir_GIOP/BiDirGIOP.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "ace/OS_NS_stdio.h"
-
-ACE_RCSID(BiDirectional, server, "$Id$")
-
-const char *ior_output_file = 0;
-int no_iterations = 10;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
- case 'i':
- no_iterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "-i <no_iterations>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Policies for the childPOA to be created.
- CORBA::PolicyList policies (1);
- policies.length (1);
-
- CORBA::Any pol;
- pol <<= BiDirPolicy::BOTH;
- policies[0] =
- orb->create_policy (BiDirPolicy::BIDIRECTIONAL_POLICY_TYPE,
- pol
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Create POA as child of RootPOA with the above policies. This POA
- // will receive request in the same connection in which it sent
- // the request
- PortableServer::POA_var child_poa =
- root_poa->create_POA ("childPOA",
- poa_manager.in (),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Creation of childPOA is over. Destroy the Policy objects.
- for (CORBA::ULong i = 0;
- i < policies.length ();
- ++i)
- {
- policies[i]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Simple_Server_i *server_impl = 0;
-
- ACE_NEW_THROW_EX (server_impl,
- Simple_Server_i (orb.in (),
- no_iterations),
- CORBA::NO_MEMORY ());
-
- PortableServer::ServantBase_var owner_transfer (server_impl);
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId ("simple_server");
-
- child_poa->activate_object_with_id (id.in (),
- server_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj =
- child_poa->id_to_reference (id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
-
- // If the ior_output_file exists, output the ior to it
- if (ior_output_file != 0)
- {
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- // Run the event loop
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/test.idl b/TAO/tests/BiDirectional_DelayedUpcall/test.idl
deleted file mode 100644
index 47ede657b9a..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/test.idl
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// $Id$
-//
-
-interface Callback
-{
- oneway void shutdown ();
- // A safe way to shutdown the client, using either clean shutdowns
- // or "catastrophic failures".
-
- void callback_method ();
- // A simple remote call
-
-};
-
-interface Simple_Server
-{
- long test_method (in boolean do_callback);
- // Just call a method on the server,
-
- void callback_object (in Callback cb);
- // send the callback object to the server
-
- oneway void shutdown ();
- // A safe way to shutdown the server, it is a oneway function so we
- // will never get a COMM_FAILURE error
-};
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/test_i.cpp b/TAO/tests/BiDirectional_DelayedUpcall/test_i.cpp
deleted file mode 100644
index fceb705f1cc..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/test_i.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-#include "tao/ORB_Core.h"
-#include "tao/debug.h"
-#include "tao/Transport_Cache_Manager.h"
-#include "tao/Thread_Lane_Resources.h"
-#include "ace/Reactor.h"
-
-#if !defined(__ACE_INLINE__)
-#include "test_i.i"
-#endif /* __ACE_INLINE__ */
-
-ACE_RCSID(BiDirectional_NestedUpcall, test_i, "$Id$")
-
-void
-Callback_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG, "Performing clean shutdown\n"));
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
-
-void
-Callback_i::callback_method (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Callback method called \n"));
-}
-
-
-// ****************************************************************
-
-int
-Simple_Server_i::handle_timeout (const ACE_Time_Value &,
- const void *)
-{
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("About to make a remote call in the Upcall \n")));
-
- for (int times = 0;
- times < this->no_iterations_;
- ++times)
- {
- this->callback_->callback_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- if (this->orb_->orb_core ()->lane_resources ().transport_cache ().current_size () > 1)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) The cache has grown, aborting ..\n"));
-
- ACE_OS::abort ();
- }
- }
-
- this->callback_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
-
- return 0;
-}
-
-CORBA::Long
-Simple_Server_i::test_method (CORBA::Boolean do_callback
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (do_callback)
- {
- // Scheduling ourselves for doing the callbacks
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Scheduling for callback\n")));
-
- if (this->orb_->orb_core ()->reactor ()->schedule_timer (this,
- 0,
- ACE_Time_Value (1)) == -1)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) Can't schedule timers, aborting ..\n"));
-
- ACE_OS::abort ();
- }
- }
-
- return 0;
-}
-
-void
-Simple_Server_i::callback_object (Callback_ptr callback
- ACE_ENV_ARG_DECL_NOT_USED )
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Store the callback object
- this->callback_ = Callback::_duplicate (callback);
-}
-
-
-void
-Simple_Server_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (false ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/test_i.h b/TAO/tests/BiDirectional_DelayedUpcall/test_i.h
deleted file mode 100644
index c09b83fe688..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/test_i.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/BiDirectional
-//
-// = FILENAME
-// test_i.h
-//
-// = AUTHOR
-// Balachandran Natarajan <bala@cs.wustl.edu>
-//
-// ============================================================================
-
-#ifndef TAO_BIDIRECTIONAL_TEST_I_H
-#define TAO_BIDIRECTIONAL_TEST_I_H
-
-#include "testS.h"
-#include "ace/Event_Handler.h"
-
-class Callback_i : public virtual POA_Callback
-{
- // = TITLE
- // A callback object to the "client"
- //
- // = DESCRIPTION
- // To test that the server can call the client on the same
- // connection that was established by the client
- //
-public:
- Callback_i (CORBA::ORB_ptr orb);
- // ctor
-
- void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
- // Safe way to shutdown
-
- void callback_method (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
- // The callback method
-
-private:
- CORBA::ORB_var orb_;
- // The orb
-};
-
-class Simple_Server_i : public virtual POA_Simple_Server, ACE_Event_Handler
-{
- // = TITLE
- // Simpler Server implementation
- //
- // = DESCRIPTION
- // Implements the Simple_Server interface in test.idl
- //
-public:
- Simple_Server_i (CORBA::ORB_ptr orb, int no_iterations);
- // ctor
-
- // = The Simple_Server methods.
- CORBA::Long test_method (CORBA::Boolean do_callback
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void callback_object (Callback_ptr callback
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual int handle_timeout (const ACE_Time_Value &current_time,
- const void *act = 0);
-
-private:
- CORBA::ORB_var orb_;
- // The ORB
-
- int flag_;
- // Flag to indicate, whether we are ready for a remote call.
-
- Callback_var callback_;
- // Callback Object
-
- int no_iterations_;
- // Number of times the callback needs to be called
-};
-
-#if defined(__ACE_INLINE__)
-#include "test_i.i"
-#endif /* __ACE_INLINE__ */
-
-#endif /* TAO_BIDIRECTIONAL_TEST_I_H */
diff --git a/TAO/tests/BiDirectional_DelayedUpcall/test_i.i b/TAO/tests/BiDirectional_DelayedUpcall/test_i.i
deleted file mode 100644
index 799be9fdcbe..00000000000
--- a/TAO/tests/BiDirectional_DelayedUpcall/test_i.i
+++ /dev/null
@@ -1,17 +0,0 @@
-// $Id$
-
-ACE_INLINE
-Callback_i::Callback_i (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-ACE_INLINE
-Simple_Server_i::Simple_Server_i (CORBA::ORB_ptr orb,
- int no_iterations)
- : orb_ (CORBA::ORB::_duplicate (orb)),
- flag_ (0),
- callback_ (0),
- no_iterations_ (no_iterations)
-{
-}
diff --git a/TAO/tests/BiDirectional_MultipleORB/destroy.cpp b/TAO/tests/BiDirectional_MultipleORB/destroy.cpp
index d4b0af3a3b9..8bd145f9aa8 100644
--- a/TAO/tests/BiDirectional_MultipleORB/destroy.cpp
+++ b/TAO/tests/BiDirectional_MultipleORB/destroy.cpp
@@ -21,6 +21,7 @@
#include "tao/PortableServer/PortableServer.h"
#include "tao/AnyTypeCode/Any.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(BiDir_Multiple_ORB, destroy, "$Id$")
@@ -107,16 +108,18 @@ test_with_bidir_poa (int argc,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
for (int i=0; i<10; i++)
{
- result = test_with_bidir_poa (argc, argv, "poa_1", 1);
+ result = test_with_bidir_poa (convert.get_argc(), convert.get_ASCII_argv(), "poa_1", 1);
ACE_ASSERT (result == 0);
- result = test_with_bidir_poa (argc, argv, "poa_2", 1);
+ result = test_with_bidir_poa (convert.get_argc(), convert.get_ASCII_argv(), "poa_2", 1);
ACE_ASSERT (result == 0);
}
ACE_DEBUG ((LM_DEBUG, "Completed OK\n"));
diff --git a/TAO/tests/BiDirectional_NestedUpcall/BiDir_NestedUpcall.mpc b/TAO/tests/BiDirectional_NestedUpcall/BiDir_NestedUpcall.mpc
index abcf650df1b..41e4576ab9a 100644
--- a/TAO/tests/BiDirectional_NestedUpcall/BiDir_NestedUpcall.mpc
+++ b/TAO/tests/BiDirectional_NestedUpcall/BiDir_NestedUpcall.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, minimum_corba, bidir_giop {
}
project(*Client): taoexe, portableserver, minimum_corba, bidir_giop {
- after += *Server
Source_Files {
test_i.cpp
client.cpp
diff --git a/TAO/tests/BiDirectional_NestedUpcall/client.cpp b/TAO/tests/BiDirectional_NestedUpcall/client.cpp
index 184e7ebda37..409f9c564f2 100644
--- a/TAO/tests/BiDirectional_NestedUpcall/client.cpp
+++ b/TAO/tests/BiDirectional_NestedUpcall/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "ace/High_Res_Timer.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
@@ -17,7 +18,7 @@ void do_nothing (void)
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -100,7 +103,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
@@ -148,7 +151,7 @@ main (int argc, char *argv[])
r));
}
- // Shutdown the server
+ // Shtdown the server
server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/BiDirectional_NestedUpcall/run_test.pl b/TAO/tests/BiDirectional_NestedUpcall/run_test.pl
index 8137e525c9f..d448613167e 100755
--- a/TAO/tests/BiDirectional_NestedUpcall/run_test.pl
+++ b/TAO/tests/BiDirectional_NestedUpcall/run_test.pl
@@ -13,17 +13,12 @@ $iorfile = PerlACE::LocalFile ("test.ior");
unlink $iorfile;
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::Process ("server", "-o test.ior -i 100");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile -i 100");
-}
+$SV = new PerlACE::Process ("server", "-o $iorfile -i 100");
$CL = new PerlACE::Process ("client", "-k file://$iorfile");
$SV->Spawn ();
-if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
$SV->Kill ();
exit 1;
diff --git a/TAO/tests/BiDirectional_NestedUpcall/server.cpp b/TAO/tests/BiDirectional_NestedUpcall/server.cpp
index ef4c284f576..89a3aab8725 100644
--- a/TAO/tests/BiDirectional_NestedUpcall/server.cpp
+++ b/TAO/tests/BiDirectional_NestedUpcall/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -14,7 +15,7 @@ int no_iterations = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -100,7 +103,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i *server_impl = 0;
@@ -133,7 +136,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Big_AMI/Big_AMI.mpc b/TAO/tests/Big_AMI/Big_AMI.mpc
index 2493ddfb825..d98c87ca241 100644
--- a/TAO/tests/Big_AMI/Big_AMI.mpc
+++ b/TAO/tests/Big_AMI/Big_AMI.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, messaging, ami {
project(*Client): taoserver, messaging, ami {
exename = client
- after += *Server
Source_Files {
client.cpp
}
diff --git a/TAO/tests/Big_AMI/client.cpp b/TAO/tests/Big_AMI/client.cpp
index 23391b5b797..8b80c084e27 100644
--- a/TAO/tests/Big_AMI/client.cpp
+++ b/TAO/tests/Big_AMI/client.cpp
@@ -14,6 +14,7 @@
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Task.h"
#include "ami_testS.h"
@@ -31,7 +32,7 @@ CORBA::ULong payload_size = 128000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "db:k:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "db:k:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -98,7 +99,7 @@ public:
}
};
- void foo_excep (::Messaging::ExceptionHolder * excep_holder
+ void foo_excep (A::AMI_AMI_TestExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -109,7 +110,7 @@ public:
"Testing proper exception handling ...\n"));
ACE_TRY
{
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ excep_holder->raise_foo (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -126,15 +127,16 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object_var =
@@ -152,7 +154,7 @@ main (int argc, char *argv[])
poa_manager_var->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// We reuse the object_var smart pointer!
diff --git a/TAO/tests/Big_AMI/server.cpp b/TAO/tests/Big_AMI/server.cpp
index b2868cd1e58..f8ab2c52740 100644
--- a/TAO/tests/Big_AMI/server.cpp
+++ b/TAO/tests/Big_AMI/server.cpp
@@ -18,6 +18,7 @@
#include "tao/debug.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(AMI, server, "$Id$")
@@ -26,7 +27,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -52,13 +53,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
AMI_Test_i ami_test_i (orb.in ());
@@ -96,7 +99,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Big_Oneways/Big_Oneways.mpc b/TAO/tests/Big_Oneways/Big_Oneways.mpc
index 5cf458a0b1e..85935126945 100644
--- a/TAO/tests/Big_Oneways/Big_Oneways.mpc
+++ b/TAO/tests/Big_Oneways/Big_Oneways.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoexe, portableserver {
- after += *Server
Source_Files {
Peer.cpp
Session.cpp
diff --git a/TAO/tests/Big_Oneways/client.cpp b/TAO/tests/Big_Oneways/client.cpp
index 13465fab43c..2ba99b1d8a8 100644
--- a/TAO/tests/Big_Oneways/client.cpp
+++ b/TAO/tests/Big_Oneways/client.cpp
@@ -3,6 +3,7 @@
#include "Peer.h"
#include "ace/Get_Opt.h"
#include "ace/Thread_Manager.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Oneways, client, "$Id$")
@@ -11,7 +12,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Big_Oneways/server.cpp b/TAO/tests/Big_Oneways/server.cpp
index 9aa9d7a7522..7105cc2c1fc 100644
--- a/TAO/tests/Big_Oneways/server.cpp
+++ b/TAO/tests/Big_Oneways/server.cpp
@@ -4,6 +4,7 @@
#include "Session_Control.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Oneways, server, "$Id$")
@@ -16,7 +17,7 @@ CORBA::ULong thread_count = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:p:b:i:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:p:b:i:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -60,12 +61,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -85,7 +88,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Coordinator *coordinator_impl = 0;
@@ -102,7 +105,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Big_Reply/Big_Reply.mpc b/TAO/tests/Big_Reply/Big_Reply.mpc
index 648403b35a4..59034cf50db 100644
--- a/TAO/tests/Big_Reply/Big_Reply.mpc
+++ b/TAO/tests/Big_Reply/Big_Reply.mpc
@@ -3,7 +3,6 @@
project(*Server): taoserver {
idlflags += -Sa -St
- after += *Client
Source_Files {
Big_Reply_i.cpp
server.cpp
diff --git a/TAO/tests/Big_Reply/client.cpp b/TAO/tests/Big_Reply/client.cpp
index 05651121792..b8fcc5f09d9 100644
--- a/TAO/tests/Big_Reply/client.cpp
+++ b/TAO/tests/Big_Reply/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Muxing, client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,15 +34,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Big_Reply/server.cpp b/TAO/tests/Big_Reply/server.cpp
index b09fbd74a0b..0cf62983ea1 100644
--- a/TAO/tests/Big_Reply/server.cpp
+++ b/TAO/tests/Big_Reply/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "Big_Reply_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Reply, server, "$Id$")
@@ -15,7 +16,7 @@ const CORBA::ULong data_size = 4000000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:s:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:s:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,14 +40,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DEBUG ((LM_DEBUG, "Starting server\n"));
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -67,7 +70,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Big_Reply_i *big_reply_gen;
@@ -90,7 +93,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Big_Request_Muxing/Big_Request_Muxing.mpc b/TAO/tests/Big_Request_Muxing/Big_Request_Muxing.mpc
index 5d5b10de0c1..0931f18f506 100644
--- a/TAO/tests/Big_Request_Muxing/Big_Request_Muxing.mpc
+++ b/TAO/tests/Big_Request_Muxing/Big_Request_Muxing.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
TestC.cpp
Client_Task.cpp
diff --git a/TAO/tests/Big_Request_Muxing/client.cpp b/TAO/tests/Big_Request_Muxing/client.cpp
index eea6aab06f8..23ebddfd0e2 100644
--- a/TAO/tests/Big_Request_Muxing/client.cpp
+++ b/TAO/tests/Big_Request_Muxing/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Messaging/Messaging.h"
ACE_RCSID(Muxing, client, "$Id$")
@@ -17,7 +18,7 @@ static const int MSG_SIZE = 4096;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,17 +42,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DEBUG ((LM_DEBUG, "Starting client\n"));
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Big_Request_Muxing/server.cpp b/TAO/tests/Big_Request_Muxing/server.cpp
index 49e88b06fa6..33928847556 100644
--- a/TAO/tests/Big_Request_Muxing/server.cpp
+++ b/TAO/tests/Big_Request_Muxing/server.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_sys_time.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Request_Muxing, server, "$Id$")
@@ -13,7 +14,7 @@ static int expected = 600;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,14 +40,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DEBUG ((LM_DEBUG, "Starting server\n"));
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -66,7 +69,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Payload_Receiver *payload_receiver_impl;
@@ -84,7 +87,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -109,19 +112,13 @@ main (int argc, char *argv[])
break;
}
- int count = payload_receiver_impl->count();
-
- if (count != expected)
- {
- ACE_DEBUG((LM_DEBUG, "Server waiting for extra messages, "
- "have now %d messages already...\n", count));
+ ACE_DEBUG((LM_DEBUG, "Server waiting for extra messages...\n"));
- ACE_Time_Value tv(5);
- orb->run(tv ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ACE_Time_Value tv(3);
+ orb->run(tv ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- count = payload_receiver_impl->count();
- }
+ int count = payload_receiver_impl->count();
int result = 0;
diff --git a/TAO/tests/Big_Twoways/Big_Twoways.mpc b/TAO/tests/Big_Twoways/Big_Twoways.mpc
index 5cf458a0b1e..85935126945 100644
--- a/TAO/tests/Big_Twoways/Big_Twoways.mpc
+++ b/TAO/tests/Big_Twoways/Big_Twoways.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoexe, portableserver {
- after += *Server
Source_Files {
Peer.cpp
Session.cpp
diff --git a/TAO/tests/Big_Twoways/client.cpp b/TAO/tests/Big_Twoways/client.cpp
index 48013a64c34..53785b9c77b 100644
--- a/TAO/tests/Big_Twoways/client.cpp
+++ b/TAO/tests/Big_Twoways/client.cpp
@@ -3,6 +3,7 @@
#include "Peer.h"
#include "ace/Get_Opt.h"
#include "ace/Thread_Manager.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Oneways, client, "$Id$")
@@ -11,7 +12,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Big_Twoways/server.cpp b/TAO/tests/Big_Twoways/server.cpp
index 55ba8b87c95..ba78958212e 100644
--- a/TAO/tests/Big_Twoways/server.cpp
+++ b/TAO/tests/Big_Twoways/server.cpp
@@ -4,6 +4,7 @@
#include "Session_Control.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Oneways, server, "$Id$")
@@ -16,7 +17,7 @@ CORBA::ULong thread_count = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:p:b:i:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:p:b:i:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -60,12 +61,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -85,7 +88,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Coordinator *coordinator_impl;
@@ -102,7 +105,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Blocking_Sync_None/Blocking_Sync_None.mpc b/TAO/tests/Blocking_Sync_None/Blocking_Sync_None.mpc
index f2870ef39d9..1c10394d0c4 100644
--- a/TAO/tests/Blocking_Sync_None/Blocking_Sync_None.mpc
+++ b/TAO/tests/Blocking_Sync_None/Blocking_Sync_None.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Blocking_Sync_None/client.cpp b/TAO/tests/Blocking_Sync_None/client.cpp
index 2bff1936b7b..bdcce3dfbeb 100644
--- a/TAO/tests/Blocking_Sync_None/client.cpp
+++ b/TAO/tests/Blocking_Sync_None/client.cpp
@@ -5,6 +5,7 @@
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_sys_time.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Blocking_Sync_None, client, "$Id$")
@@ -14,7 +15,7 @@ int iterations = 1000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -43,15 +44,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Blocking_Sync_None/server.cpp b/TAO/tests/Blocking_Sync_None/server.cpp
index a774b6cdf83..938fee7bd19 100644
--- a/TAO/tests/Blocking_Sync_None/server.cpp
+++ b/TAO/tests/Blocking_Sync_None/server.cpp
@@ -3,6 +3,7 @@
#include "Blocking_Sync_None.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Blocking_Sync_None, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Blocking_Sync_None *blocking_sync_none_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1020_Basic_Regression/Bug_1020_Basic_Regression.mpc b/TAO/tests/Bug_1020_Basic_Regression/Bug_1020_Basic_Regression.mpc
index 792a118237c..4c5733dfbee 100644
--- a/TAO/tests/Bug_1020_Basic_Regression/Bug_1020_Basic_Regression.mpc
+++ b/TAO/tests/Bug_1020_Basic_Regression/Bug_1020_Basic_Regression.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
Echo.cpp
Client_Task.cpp
diff --git a/TAO/tests/Bug_1020_Basic_Regression/client.cpp b/TAO/tests/Bug_1020_Basic_Regression/client.cpp
index 7deb646b538..c76cf2a854f 100644
--- a/TAO/tests/Bug_1020_Basic_Regression/client.cpp
+++ b/TAO/tests/Bug_1020_Basic_Regression/client.cpp
@@ -6,6 +6,7 @@
#include "ace/Get_Opt.h"
#include "tao/Messaging/Messaging.h"
#include "tao/AnyTypeCode/Any.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Bug_1020_Basic_Regression,
client,
@@ -16,7 +17,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -104,7 +107,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo> impl;
diff --git a/TAO/tests/Bug_1020_Basic_Regression/server.cpp b/TAO/tests/Bug_1020_Basic_Regression/server.cpp
index 4f62134a66f..722a3727516 100644
--- a/TAO/tests/Bug_1020_Basic_Regression/server.cpp
+++ b/TAO/tests/Bug_1020_Basic_Regression/server.cpp
@@ -4,6 +4,7 @@
#include "tao/ORB_Core.h"
#include "tao/Utils/Servant_Var.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1020_Basic_Regression,
server,
@@ -14,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,12 +40,14 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -67,7 +70,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo_Caller> impl;
@@ -93,7 +96,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1020_Regression/client.cpp b/TAO/tests/Bug_1020_Regression/client.cpp
index 63209f90483..02932c19709 100644
--- a/TAO/tests/Bug_1020_Regression/client.cpp
+++ b/TAO/tests/Bug_1020_Regression/client.cpp
@@ -8,6 +8,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1230_Regression, client, "$Id$")
@@ -26,12 +27,14 @@ public:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -84,7 +87,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo> impl;
@@ -168,7 +171,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1020_Regression/server.cpp b/TAO/tests/Bug_1020_Regression/server.cpp
index e1b7ee43a48..bdef526458d 100644
--- a/TAO/tests/Bug_1020_Regression/server.cpp
+++ b/TAO/tests/Bug_1020_Regression/server.cpp
@@ -6,6 +6,7 @@
#include "tao/Utils/Servant_Var.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Bug_1230_Regression,
server,
@@ -17,12 +18,14 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -49,7 +52,7 @@ main (int argc, char *argv[])
orb->resolve_initial_references ("PolicyCurrent" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Server> impl;
@@ -75,7 +78,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -115,7 +118,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1269_Regression/Bug_1269_Regression.mpc b/TAO/tests/Bug_1269_Regression/Bug_1269_Regression.mpc
index e38622c756d..28f67b75ec0 100644
--- a/TAO/tests/Bug_1269_Regression/Bug_1269_Regression.mpc
+++ b/TAO/tests/Bug_1269_Regression/Bug_1269_Regression.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
Echo.cpp
client.cpp
diff --git a/TAO/tests/Bug_1269_Regression/client.cpp b/TAO/tests/Bug_1269_Regression/client.cpp
index 50b19d24f84..60669529b57 100644
--- a/TAO/tests/Bug_1269_Regression/client.cpp
+++ b/TAO/tests/Bug_1269_Regression/client.cpp
@@ -7,6 +7,7 @@
#include "tao/Utils/Servant_Var.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1269_Regression, client, "$Id$")
@@ -16,12 +17,14 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -74,7 +77,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo> impl;
@@ -146,7 +149,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1269_Regression/server.cpp b/TAO/tests/Bug_1269_Regression/server.cpp
index 2e89b271b31..e741e86a8e3 100644
--- a/TAO/tests/Bug_1269_Regression/server.cpp
+++ b/TAO/tests/Bug_1269_Regression/server.cpp
@@ -5,6 +5,7 @@
#include "tao/Utils/Servant_Var.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1269_Regression, server, "$Id$")
@@ -14,12 +15,14 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -46,7 +49,7 @@ main (int argc, char *argv[])
orb->resolve_initial_references ("PolicyCurrent" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo_Caller> impl;
@@ -72,7 +75,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -110,7 +113,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1269_Regression/shutdown.cpp b/TAO/tests/Bug_1269_Regression/shutdown.cpp
index e48142df37f..a71d5dd6611 100644
--- a/TAO/tests/Bug_1269_Regression/shutdown.cpp
+++ b/TAO/tests/Bug_1269_Regression/shutdown.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1269_Regression, shutdown, "$Id$")
@@ -11,16 +12,18 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1270_Regression/Bug_1270_Regression.mpc b/TAO/tests/Bug_1270_Regression/Bug_1270_Regression.mpc
index 146c41a5026..132b1f49116 100644
--- a/TAO/tests/Bug_1270_Regression/Bug_1270_Regression.mpc
+++ b/TAO/tests/Bug_1270_Regression/Bug_1270_Regression.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
Echo.cpp
client.cpp
@@ -18,7 +17,6 @@ project(*Client): taoclient, messaging {
}
project(*Shutdown): taoexe, messaging {
- after += *Client
Source_Files {
shutdown.cpp
}
diff --git a/TAO/tests/Bug_1270_Regression/client.cpp b/TAO/tests/Bug_1270_Regression/client.cpp
index 8405b2d1c0c..9604b06e19f 100644
--- a/TAO/tests/Bug_1270_Regression/client.cpp
+++ b/TAO/tests/Bug_1270_Regression/client.cpp
@@ -8,6 +8,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1270_Regression, client, "$Id$")
@@ -17,12 +18,14 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -75,7 +78,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo> impl;
@@ -147,7 +150,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1270_Regression/server.cpp b/TAO/tests/Bug_1270_Regression/server.cpp
index 361b06dd275..a25cdfdb5e4 100644
--- a/TAO/tests/Bug_1270_Regression/server.cpp
+++ b/TAO/tests/Bug_1270_Regression/server.cpp
@@ -5,6 +5,7 @@
#include "tao/Utils/Servant_Var.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1270_Regression, server, "$Id$")
@@ -14,12 +15,14 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -46,7 +49,7 @@ main (int argc, char *argv[])
orb->resolve_initial_references ("PolicyCurrent" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo_Caller> impl;
@@ -72,7 +75,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -110,7 +113,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1270_Regression/shutdown.cpp b/TAO/tests/Bug_1270_Regression/shutdown.cpp
index 68026a71eec..36e09239c80 100644
--- a/TAO/tests/Bug_1270_Regression/shutdown.cpp
+++ b/TAO/tests/Bug_1270_Regression/shutdown.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1270_Regression, shutdown, "$Id$")
@@ -11,16 +12,18 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1330_Regression/Bug_1330_Regression.mpc b/TAO/tests/Bug_1330_Regression/Bug_1330_Regression.mpc
index 93a6bb0d168..60296491dbb 100644
--- a/TAO/tests/Bug_1330_Regression/Bug_1330_Regression.mpc
+++ b/TAO/tests/Bug_1330_Regression/Bug_1330_Regression.mpc
@@ -1,15 +1,14 @@
// -*- MPC -*-
// $Id$
-project(*Server): taoserver, iortable {
+project(Bug 1330 Server): taoserver, iortable {
Source_Files {
Test_i.cpp
server.cpp
}
}
-project(*Client): taoclient, anytypecode {
- after += *Server
+project(Bug 1330 Client): taoclient, anytypecode {
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Bug_1330_Regression/client.cpp b/TAO/tests/Bug_1330_Regression/client.cpp
index f317731aeae..3308e1ecef0 100644
--- a/TAO/tests/Bug_1330_Regression/client.cpp
+++ b/TAO/tests/Bug_1330_Regression/client.cpp
@@ -3,6 +3,7 @@
//
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "corbaloc:iiop:localhost:12345/Name\\2dwith\\2dhyphens";
int shutdown_server = 0;
@@ -10,7 +11,7 @@ int shutdown_server = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,16 +37,18 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Bug_1330_Regression/server.cpp b/TAO/tests/Bug_1330_Regression/server.cpp
index 63308e1c36c..213bcede6ac 100644
--- a/TAO/tests/Bug_1330_Regression/server.cpp
+++ b/TAO/tests/Bug_1330_Regression/server.cpp
@@ -3,6 +3,7 @@
//
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "Test_i.h"
#include "tao/IORTable/IORTable.h"
@@ -12,7 +13,7 @@ const char *object_key = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,14 +36,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_i server_impl;
@@ -91,7 +94,7 @@ main (int argc, char *argv[])
adapter->bind("Name-with-hyphens", ior.in());
- FILE *output_file= ACE_OS::fopen ("server.ior", "w");
+ FILE *output_file= ACE_OS::fopen ("server.ior", ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"SERVER (%P): Cannot open output file "
diff --git a/TAO/tests/Bug_1361_Regression/Bug_1361_Regression.mpc b/TAO/tests/Bug_1361_Regression/Bug_1361_Regression.mpc
index f0247d4c080..6b2b0dc5cc1 100644
--- a/TAO/tests/Bug_1361_Regression/Bug_1361_Regression.mpc
+++ b/TAO/tests/Bug_1361_Regression/Bug_1361_Regression.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
Echo.cpp
ORB_Task.cpp
@@ -20,7 +19,6 @@ project(*Client): taoclient, messaging {
}
project(*Shutdown): taoexe, messaging {
- after += *Client
Source_Files {
shutdown.cpp
}
diff --git a/TAO/tests/Bug_1361_Regression/client.cpp b/TAO/tests/Bug_1361_Regression/client.cpp
index 76b98781048..0650e70dd99 100644
--- a/TAO/tests/Bug_1361_Regression/client.cpp
+++ b/TAO/tests/Bug_1361_Regression/client.cpp
@@ -8,6 +8,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1270_Regression, client, "$Id$")
@@ -49,12 +50,14 @@ public:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -107,7 +110,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Echo> impl;
@@ -199,7 +202,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:t:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1361_Regression/server.cpp b/TAO/tests/Bug_1361_Regression/server.cpp
index 5b09f46aa76..66686d9a6b8 100644
--- a/TAO/tests/Bug_1361_Regression/server.cpp
+++ b/TAO/tests/Bug_1361_Regression/server.cpp
@@ -5,6 +5,7 @@
#include "tao/Utils/Servant_Var.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Server_Thread_Pool.h"
#include "ORB_Task.h"
@@ -16,12 +17,14 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -49,7 +52,7 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
ACE_Thread_Manager mymanager;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -125,7 +128,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1361_Regression/shutdown.cpp b/TAO/tests/Bug_1361_Regression/shutdown.cpp
index ba1eb1160f0..416b7099fb6 100644
--- a/TAO/tests/Bug_1361_Regression/shutdown.cpp
+++ b/TAO/tests/Bug_1361_Regression/shutdown.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
@@ -14,18 +15,20 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DEBUG ((LM_DEBUG,
"Starting shutdown\n"));
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
@@ -66,7 +69,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Bug_1476_Regression/Bug_1476_Regression.mpc b/TAO/tests/Bug_1476_Regression/Bug_1476_Regression.mpc
index a149ce848c3..3c891b3c652 100644
--- a/TAO/tests/Bug_1476_Regression/Bug_1476_Regression.mpc
+++ b/TAO/tests/Bug_1476_Regression/Bug_1476_Regression.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
Client_Task.cpp
Server_Task.cpp
diff --git a/TAO/tests/Bug_1476_Regression/client.cpp b/TAO/tests/Bug_1476_Regression/client.cpp
index f08edccd51d..366cef09eab 100644
--- a/TAO/tests/Bug_1476_Regression/client.cpp
+++ b/TAO/tests/Bug_1476_Regression/client.cpp
@@ -3,6 +3,7 @@
#include "Client_Task.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Messaging/Messaging.h"
#include "tao/Transport_Cache_Manager.h"
#include "tao/Transport.h"
@@ -20,7 +21,7 @@ int number_of_client_tasks = 2;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -51,12 +52,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -105,7 +108,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Get the sender reference..
diff --git a/TAO/tests/Bug_1476_Regression/server.cpp b/TAO/tests/Bug_1476_Regression/server.cpp
index b65d5e2333c..71c2912b544 100644
--- a/TAO/tests/Bug_1476_Regression/server.cpp
+++ b/TAO/tests/Bug_1476_Regression/server.cpp
@@ -4,6 +4,7 @@
#include "Server_Task.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Oneways_Invoking_Twoways, server, "$Id$")
@@ -13,7 +14,7 @@ int number_of_oneways = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,12 +40,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -64,7 +67,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Sender_i *sender_impl;
@@ -82,7 +85,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1482_Regression/Bug_1482_Regression.mpc b/TAO/tests/Bug_1482_Regression/Bug_1482_Regression.mpc
deleted file mode 100644
index 26363b5c9bc..00000000000
--- a/TAO/tests/Bug_1482_Regression/Bug_1482_Regression.mpc
+++ /dev/null
@@ -1,20 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, amh, ami, iortable, portableserver {
- Source_Files {
- Hello.cpp
- Server_Task.cpp
- server.cpp
- }
-}
-
-project(*Client): taoserver, amh, ami {
- exename = client
- after += *Server
- Source_Files {
- Client_Task.cpp
- Reply_Handler.cpp
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_1482_Regression/Reply_Handler.cpp b/TAO/tests/Bug_1482_Regression/Reply_Handler.cpp
index 93189526614..1d3676af938 100644
--- a/TAO/tests/Bug_1482_Regression/Reply_Handler.cpp
+++ b/TAO/tests/Bug_1482_Regression/Reply_Handler.cpp
@@ -16,14 +16,14 @@ Reply_Handler::next_prime (CORBA::ULong
void
Reply_Handler::next_prime_excep (
- ::Messaging::ExceptionHolder *ex
+ Test::AMI_HelloExceptionHolder *ex
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- ex->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ex->raise_next_prime (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCH (CORBA::COMM_FAILURE, t)
diff --git a/TAO/tests/Bug_1482_Regression/Reply_Handler.h b/TAO/tests/Bug_1482_Regression/Reply_Handler.h
index 03700034b3e..3656bb8e69a 100644
--- a/TAO/tests/Bug_1482_Regression/Reply_Handler.h
+++ b/TAO/tests/Bug_1482_Regression/Reply_Handler.h
@@ -18,7 +18,7 @@ public:
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- void next_prime_excep (::Messaging::ExceptionHolder * excep_holder
+ void next_prime_excep (Test::AMI_HelloExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/tests/Bug_1482_Regression/client.cpp b/TAO/tests/Bug_1482_Regression/client.cpp
index 78a8635a4e5..e75f546d1ba 100644
--- a/TAO/tests/Bug_1482_Regression/client.cpp
+++ b/TAO/tests/Bug_1482_Regression/client.cpp
@@ -3,6 +3,7 @@
#include "TestS.h"
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/AnyTypeCode/Any.h"
ACE_RCSID(Hello, client, "$Id$")
@@ -12,7 +13,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,15 +37,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Bug_1482_Regression/server.cpp b/TAO/tests/Bug_1482_Regression/server.cpp
index 2204fc213da..39b52cc8afe 100644
--- a/TAO/tests/Bug_1482_Regression/server.cpp
+++ b/TAO/tests/Bug_1482_Regression/server.cpp
@@ -2,6 +2,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Server_Task.h"
ACE_RCSID (LongUpcall_Crash_Test,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1482_Regression/test.mpc b/TAO/tests/Bug_1482_Regression/test.mpc
new file mode 100644
index 00000000000..db29b4062dd
--- /dev/null
+++ b/TAO/tests/Bug_1482_Regression/test.mpc
@@ -0,0 +1,19 @@
+// -*- MPC -*-
+// $Id$
+
+project(Bug_1482_Server): taoserver, amh, ami, iortable, portableserver {
+ Source_Files {
+ Hello.cpp
+ Server_Task.cpp
+ server.cpp
+ }
+}
+
+project(Bug_1482_Client): taoserver, amh, ami {
+ exename = client
+ Source_Files {
+ Client_Task.cpp
+ Reply_Handler.cpp
+ client.cpp
+ }
+}
diff --git a/TAO/tests/Bug_1495_Regression/Bug_1495.mpc b/TAO/tests/Bug_1495_Regression/Bug_1495.mpc
index 7e7cfd67199..17b9c050382 100644
--- a/TAO/tests/Bug_1495_Regression/Bug_1495.mpc
+++ b/TAO/tests/Bug_1495_Regression/Bug_1495.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver, pi_server, interceptors {
project(*Client): taoserver, pi, interceptors {
exename = client
- after += *Server
Source_Files {
test_i.cpp
testC.cpp
diff --git a/TAO/tests/Bug_1495_Regression/Client_Task.cpp b/TAO/tests/Bug_1495_Regression/Client_Task.cpp
index 51150d118a7..4732996c119 100644
--- a/TAO/tests/Bug_1495_Regression/Client_Task.cpp
+++ b/TAO/tests/Bug_1495_Regression/Client_Task.cpp
@@ -44,36 +44,32 @@ Client_Task::svc (void)
return 1;
}
- // Try multiple calls to see if we keep being forwarded
- for (int i = 0; i < 5; i++)
- {
- // call the thread_id function on the test object
- CORBA::Long remote_thread_id;
+ // call the thread_id function on the test object
+ CORBA::Long remote_thread_id;
+
+ server->get_thread_id (remote_thread_id ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- server->get_thread_id (remote_thread_id ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ACE_DEBUG ((LM_INFO,
+ "Remote thread ID was %i\n",
+ remote_thread_id));
+ CORBA::Long mythread_id = (CORBA::Long)ACE_Thread::self();
+ if (mythread_id != remote_thread_id)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ERROR: Failed Bug_1495_Regression test. "
+ "Expected thread id was %i, received %i.\n",
+ mythread_id,
+ remote_thread_id));
+ }
+ else
+ {
ACE_DEBUG ((LM_INFO,
- "Remote thread ID was %i\n",
+ "Passed Bug_1495_Regression test.\n"
+ "Local thread id was %i, received %i.\n",
+ mythread_id,
remote_thread_id));
-
- CORBA::Long mythread_id = (CORBA::Long)ACE_Thread::self();
- if (mythread_id != remote_thread_id)
- {
- ACE_ERROR ((LM_ERROR,
- "ERROR: Failed Bug_1495_Regression test. "
- "Expected thread id was %i, received %i.\n",
- mythread_id,
- remote_thread_id));
- }
- else
- {
- ACE_DEBUG ((LM_INFO,
- "Passed Bug_1495_Regression test.\n"
- "Local thread id was %i, received %i.\n",
- mythread_id,
- remote_thread_id));
- }
}
}
ACE_CATCHANY
diff --git a/TAO/tests/Bug_1495_Regression/Server_Task.cpp b/TAO/tests/Bug_1495_Regression/Server_Task.cpp
index acaf0e35779..1d9720583cd 100644
--- a/TAO/tests/Bug_1495_Regression/Server_Task.cpp
+++ b/TAO/tests/Bug_1495_Regression/Server_Task.cpp
@@ -70,7 +70,7 @@ Server_Task::svc (void)
if (output_ != 0)
{
- FILE *output_file = ACE_OS::fopen (output_, "w");
+ FILE *output_file = ACE_OS::fopen (output_, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/Bug_1495_Regression/Server_Task.h b/TAO/tests/Bug_1495_Regression/Server_Task.h
index b00725ba805..d6f71524d62 100644
--- a/TAO/tests/Bug_1495_Regression/Server_Task.h
+++ b/TAO/tests/Bug_1495_Regression/Server_Task.h
@@ -16,9 +16,7 @@
#include "tao/ORB.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implements the Task to run the process colocated thread.
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/Bug_1495_Regression/Threaded_Client.cpp b/TAO/tests/Bug_1495_Regression/Threaded_Client.cpp
index 99bb3239dfc..ac880e471dd 100644
--- a/TAO/tests/Bug_1495_Regression/Threaded_Client.cpp
+++ b/TAO/tests/Bug_1495_Regression/Threaded_Client.cpp
@@ -22,6 +22,7 @@
#include "ace/Get_Opt.h"
#include "ace/Argv_Type_Converter.h"
#include "ace/Manual_Event.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_input_file = "file://test.ior";
const char *ior_output_file = "thr_server.ior";
@@ -29,7 +30,7 @@ const char *ior_output_file = "thr_server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -56,10 +57,12 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// Parse command line
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
{
return -1;
}
@@ -67,11 +70,10 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_Argv_Type_Converter main_args_s (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (main_args_s.get_argc (),
- main_args_s.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"Server_ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -92,11 +94,9 @@ main (int argc, char *argv[])
// Wait for the server task to activate.
me.wait ();
- ACE_Argv_Type_Converter main_args_c (argc, argv);
-
CORBA::ORB_var corb =
- CORBA::ORB_init (main_args_c.get_argc (),
- main_args_c.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"Client_ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Bug_1495_Regression/Threaded_Server.cpp b/TAO/tests/Bug_1495_Regression/Threaded_Server.cpp
index 95cd68db7e7..fca9f2b82c6 100644
--- a/TAO/tests/Bug_1495_Regression/Threaded_Server.cpp
+++ b/TAO/tests/Bug_1495_Regression/Threaded_Server.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "server_interceptor.h"
#include "Server_ORBInitializer.h"
@@ -17,7 +18,7 @@ const char *ior_input_file = "file://thr_server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:o:");
int c;
@@ -45,8 +46,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Create the ORB initializer.
@@ -63,7 +66,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Now initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"Remote_Server_ORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -89,7 +92,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
@@ -146,7 +149,7 @@ main (int argc, char *argv[])
// Output the server IOR to a file
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/Bug_1495_Regression/run_test.pl b/TAO/tests/Bug_1495_Regression/run_test.pl
index 417ff9437e6..981d1300a59 100755
--- a/TAO/tests/Bug_1495_Regression/run_test.pl
+++ b/TAO/tests/Bug_1495_Regression/run_test.pl
@@ -25,7 +25,7 @@ $SV = new PerlACE::Process ("server", "-o $inputfile -i file://$thrserverfile");
$client = $CL->Spawn ();
-if (PerlACE::waitforfile_timed ($thrserverfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+if (PerlACE::waitforfile_timed ($thrserverfile, 5) == -1) {
print STDERR "ERROR: cannot find file <$thrserverfile>\n";
exit 1;
}
diff --git a/TAO/tests/Bug_1535_Regression/bug_1535_regression.cpp b/TAO/tests/Bug_1535_Regression/bug_1535_regression.cpp
index 1bec57c8fde..4d25d9756f4 100644
--- a/TAO/tests/Bug_1535_Regression/bug_1535_regression.cpp
+++ b/TAO/tests/Bug_1535_Regression/bug_1535_regression.cpp
@@ -5,6 +5,7 @@
#include "tao/Utils/RIR_Narrow.h"
#include "tao/Utils/PolicyList_Destroyer.h"
#include "tao/Utils/Servant_Var.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Bug_1535_Regression,
bug_1535_regression,
@@ -177,15 +178,17 @@ test_create_object_before_POA_reactivation(
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Bug_1551_Regression/Bug_1551_Regression.mpc b/TAO/tests/Bug_1551_Regression/Bug_1551_Regression.mpc
deleted file mode 100644
index 96a4dfabd63..00000000000
--- a/TAO/tests/Bug_1551_Regression/Bug_1551_Regression.mpc
+++ /dev/null
@@ -1,20 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, ami, iortable {
- Source_Files {
- Hello.cpp
- Server_Task.cpp
- server.cpp
- }
-}
-
-project(*Client): taoserver, ami {
- exename = client
- after += *Server
- Source_Files {
- Client_Task.cpp
- Reply_Handler.cpp
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp b/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
index 3596677754b..d9b4db4ff88 100644
--- a/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
+++ b/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp
@@ -31,7 +31,7 @@ Reply_Handler::short_sleep (ACE_ENV_SINGLE_ARG_DECL)
void
Reply_Handler::short_sleep_excep (
- ::Messaging::ExceptionHolder *ex
+ Test::AMI_HelloExceptionHolder *ex
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
@@ -40,7 +40,7 @@ Reply_Handler::short_sleep_excep (
ACE_TRY
{
- ex->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ex->raise_short_sleep (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -65,7 +65,7 @@ Reply_Handler::short_sleep_excep (
void Reply_Handler::
check_counter(ACE_ENV_SINGLE_ARG_DECL)
{
- long count = --counter_;
+ long count = counter_--;
if(count == 0)
{
// ACE_DEBUG((LM_DEBUG, "(%P|%t) Shut down client thread\n"));
diff --git a/TAO/tests/Bug_1551_Regression/Reply_Handler.h b/TAO/tests/Bug_1551_Regression/Reply_Handler.h
index 26ca559dd07..aaadd0582f0 100644
--- a/TAO/tests/Bug_1551_Regression/Reply_Handler.h
+++ b/TAO/tests/Bug_1551_Regression/Reply_Handler.h
@@ -20,7 +20,7 @@ public:
void short_sleep (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- void short_sleep_excep (::Messaging::ExceptionHolder * excep_holder
+ void short_sleep_excep (Test::AMI_HelloExceptionHolder * excep_holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/tests/Bug_1551_Regression/client.cpp b/TAO/tests/Bug_1551_Regression/client.cpp
index a898cdb3398..2dad76c9f7e 100644
--- a/TAO/tests/Bug_1551_Regression/client.cpp
+++ b/TAO/tests/Bug_1551_Regression/client.cpp
@@ -5,6 +5,7 @@
#include "TestS.h"
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/AnyTypeCode/Any.h"
ACE_RCSID(Hello, client, "$Id$")
@@ -16,7 +17,7 @@ int nthreads = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "n:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -44,17 +45,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int retval = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Bug_1551_Regression/server.cpp b/TAO/tests/Bug_1551_Regression/server.cpp
index 5adc91117fd..7c287a4e7e7 100644
--- a/TAO/tests/Bug_1551_Regression/server.cpp
+++ b/TAO/tests/Bug_1551_Regression/server.cpp
@@ -4,6 +4,7 @@
#include "Server_Task.h"
#include "tao/Utils/Servant_Var.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Bug_1XXX_Regression, server, "$Id$")
@@ -16,7 +17,7 @@ int nthreads = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xn:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xn:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -50,12 +51,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -75,7 +78,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Hello> hello_impl(
@@ -90,7 +93,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1551_Regression/test.mpc b/TAO/tests/Bug_1551_Regression/test.mpc
new file mode 100644
index 00000000000..3898d39df22
--- /dev/null
+++ b/TAO/tests/Bug_1551_Regression/test.mpc
@@ -0,0 +1,19 @@
+// -*- MPC -*-
+// $Id$
+
+project(Bug_1551_Server): taoserver, ami, iortable {
+ Source_Files {
+ Hello.cpp
+ Server_Task.cpp
+ server.cpp
+ }
+}
+
+project(Bug_1551_Client): taoserver, ami {
+ exename = client
+ Source_Files {
+ Client_Task.cpp
+ Reply_Handler.cpp
+ client.cpp
+ }
+}
diff --git a/TAO/tests/Bug_1568_Regression/Bug_1568_Regression.mpc b/TAO/tests/Bug_1568_Regression/Bug_1568_Regression.mpc
index d6430831e00..828fa8ce052 100644
--- a/TAO/tests/Bug_1568_Regression/Bug_1568_Regression.mpc
+++ b/TAO/tests/Bug_1568_Regression/Bug_1568_Regression.mpc
@@ -8,7 +8,6 @@ project(*Server): taoserver, amh {
}
project(*Client): taoserver, amh {
- after += *Server
exename = client
Source_Files {
client.cpp
diff --git a/TAO/tests/Bug_1568_Regression/client.cpp b/TAO/tests/Bug_1568_Regression/client.cpp
index 44edda43ee7..5b68f4dc1e7 100644
--- a/TAO/tests/Bug_1568_Regression/client.cpp
+++ b/TAO/tests/Bug_1568_Regression/client.cpp
@@ -9,6 +9,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1568_Regression, client, "$Id$")
@@ -17,7 +18,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,15 +42,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Bug_1568_Regression/server.cpp b/TAO/tests/Bug_1568_Regression/server.cpp
index fce73b267a5..a06917fea9b 100644
--- a/TAO/tests/Bug_1568_Regression/server.cpp
+++ b/TAO/tests/Bug_1568_Regression/server.cpp
@@ -12,6 +12,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1568_Regression, server, "$Id$")
@@ -100,7 +101,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -124,12 +125,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -149,7 +152,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Simple_C> simple_c_impl(
@@ -164,7 +167,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1627_Regression/Bug_1627_Regression.mpc b/TAO/tests/Bug_1627_Regression/Bug_1627_Regression.mpc
deleted file mode 100644
index 93a6bb0d168..00000000000
--- a/TAO/tests/Bug_1627_Regression/Bug_1627_Regression.mpc
+++ /dev/null
@@ -1,17 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, iortable {
- Source_Files {
- Test_i.cpp
- server.cpp
- }
-}
-
-project(*Client): taoclient, anytypecode {
- after += *Server
- Source_Files {
- TestC.cpp
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_1627_Regression/client.cpp b/TAO/tests/Bug_1627_Regression/client.cpp
index f317731aeae..3308e1ecef0 100644
--- a/TAO/tests/Bug_1627_Regression/client.cpp
+++ b/TAO/tests/Bug_1627_Regression/client.cpp
@@ -3,6 +3,7 @@
//
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "corbaloc:iiop:localhost:12345/Name\\2dwith\\2dhyphens";
int shutdown_server = 0;
@@ -10,7 +11,7 @@ int shutdown_server = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,16 +37,18 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Bug_1627_Regression/server.cpp b/TAO/tests/Bug_1627_Regression/server.cpp
index 63308e1c36c..213bcede6ac 100644
--- a/TAO/tests/Bug_1627_Regression/server.cpp
+++ b/TAO/tests/Bug_1627_Regression/server.cpp
@@ -3,6 +3,7 @@
//
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "Test_i.h"
#include "tao/IORTable/IORTable.h"
@@ -12,7 +13,7 @@ const char *object_key = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,14 +36,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_i server_impl;
@@ -91,7 +94,7 @@ main (int argc, char *argv[])
adapter->bind("Name-with-hyphens", ior.in());
- FILE *output_file= ACE_OS::fopen ("server.ior", "w");
+ FILE *output_file= ACE_OS::fopen ("server.ior", ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"SERVER (%P): Cannot open output file "
diff --git a/TAO/tests/Bug_1627_Regression/test.mpc b/TAO/tests/Bug_1627_Regression/test.mpc
new file mode 100644
index 00000000000..66bcbf45c86
--- /dev/null
+++ b/TAO/tests/Bug_1627_Regression/test.mpc
@@ -0,0 +1,16 @@
+// -*- MPC -*-
+// $Id$
+
+project(Bug_1627_Server): taoserver, iortable {
+ Source_Files {
+ Test_i.cpp
+ server.cpp
+ }
+}
+
+project(Bug_1627_Client): taoclient, anytypecode {
+ Source_Files {
+ TestC.cpp
+ client.cpp
+ }
+}
diff --git a/TAO/tests/Bug_1635_Regression/client.cpp b/TAO/tests/Bug_1635_Regression/client.cpp
index 9db84a9a4f5..b5cece3cd35 100644
--- a/TAO/tests/Bug_1635_Regression/client.cpp
+++ b/TAO/tests/Bug_1635_Regression/client.cpp
@@ -2,16 +2,19 @@
// $Id$
//
#include "tao/ORB.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/Bug_1636_Regression/client.cpp b/TAO/tests/Bug_1636_Regression/client.cpp
index 51a28417346..28ae7804af1 100644
--- a/TAO/tests/Bug_1636_Regression/client.cpp
+++ b/TAO/tests/Bug_1636_Regression/client.cpp
@@ -3,15 +3,18 @@
//
#include "tao/DynamicInterface/Request.h"
#include "tao/DynamicAny/DynAnyFactory.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"" /* the ORB name, it can be anything! */
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Bug_1639_Regression/struct_client.cpp b/TAO/tests/Bug_1639_Regression/struct_client.cpp
index 16ba27452ea..7e330f72993 100644
--- a/TAO/tests/Bug_1639_Regression/struct_client.cpp
+++ b/TAO/tests/Bug_1639_Regression/struct_client.cpp
@@ -4,14 +4,16 @@
#include "tao/DynamicAny/DynAnyFactory.h"
#include "structC.h"
#include <ace/streams.h>
+#include "ace/Argv_Type_Converter.h"
using namespace StructTest;
using namespace DynamicAny;
//--------------------------------------------------------------------
-int main (int argc, char * argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR * argv[])
//--------------------------------------------------------------------
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Generic catch handler
try {
@@ -20,7 +22,7 @@ int main (int argc, char * argv[])
// ------------------
CORBA::ORB_var orb; // _var, so we don't need/may not CORBA::release(orb)
try {
- orb = CORBA::ORB_init (argc, argv);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
} catch (...) {
cerr << "Cannot initialize ORB" << endl;
throw;
diff --git a/TAO/tests/Bug_1670_Regression/Bug_1670_Regression.mpc b/TAO/tests/Bug_1670_Regression/Bug_1670_Regression.mpc
index 5e8364ab993..828fa8ce052 100644
--- a/TAO/tests/Bug_1670_Regression/Bug_1670_Regression.mpc
+++ b/TAO/tests/Bug_1670_Regression/Bug_1670_Regression.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, amh {
project(*Client): taoserver, amh {
exename = client
- after += *Server
Source_Files {
client.cpp
}
diff --git a/TAO/tests/Bug_1670_Regression/client.cpp b/TAO/tests/Bug_1670_Regression/client.cpp
index bf5e3b6385c..a21c37f39be 100644
--- a/TAO/tests/Bug_1670_Regression/client.cpp
+++ b/TAO/tests/Bug_1670_Regression/client.cpp
@@ -9,6 +9,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1670_Regression, client, "$Id$")
@@ -17,7 +18,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,15 +42,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Bug_1670_Regression/server.cpp b/TAO/tests/Bug_1670_Regression/server.cpp
index ca6e5d7aebb..8ff6c8633d5 100644
--- a/TAO/tests/Bug_1670_Regression/server.cpp
+++ b/TAO/tests/Bug_1670_Regression/server.cpp
@@ -12,6 +12,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_1670_Regression, server, "$Id$")
@@ -100,7 +101,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -124,12 +125,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -149,7 +152,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TAO::Utils::Servant_Var<Simple_C> simple_c_impl(
@@ -164,7 +167,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_1693_Test/client.cpp b/TAO/tests/Bug_1693_Test/client.cpp
index d95a5916742..44ba0bb5ff6 100644
--- a/TAO/tests/Bug_1693_Test/client.cpp
+++ b/TAO/tests/Bug_1693_Test/client.cpp
@@ -3,20 +3,22 @@
#include "tao/CodecFactory/CodecFactory.h"
#include "testC.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Codec,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
"my_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Bug_1812_Regression/test.cpp b/TAO/tests/Bug_1812_Regression/test.cpp
index d3b463ab1f1..62d9335d9cd 100755
--- a/TAO/tests/Bug_1812_Regression/test.cpp
+++ b/TAO/tests/Bug_1812_Regression/test.cpp
@@ -6,7 +6,7 @@
* This test does not run - successful compile and link == successful test.
*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
return 0;
}
diff --git a/TAO/tests/Bug_1813_Regression/test.cpp b/TAO/tests/Bug_1813_Regression/test.cpp
index d3b463ab1f1..62d9335d9cd 100755
--- a/TAO/tests/Bug_1813_Regression/test.cpp
+++ b/TAO/tests/Bug_1813_Regression/test.cpp
@@ -6,7 +6,7 @@
* This test does not run - successful compile and link == successful test.
*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
return 0;
}
diff --git a/TAO/tests/Bug_1869_Regression/AMI.idl b/TAO/tests/Bug_1869_Regression/AMI.idl
deleted file mode 100644
index d0c2a9eb238..00000000000
--- a/TAO/tests/Bug_1869_Regression/AMI.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-
-module AMI_test {
- interface adder {
- long add(in long a, in long b);
- };
-};
diff --git a/TAO/tests/Bug_1869_Regression/Bug_1869_Regression.mpc b/TAO/tests/Bug_1869_Regression/Bug_1869_Regression.mpc
deleted file mode 100644
index 15f79878b23..00000000000
--- a/TAO/tests/Bug_1869_Regression/Bug_1869_Regression.mpc
+++ /dev/null
@@ -1,14 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, iortable, ami, exceptions {
- Source_Files {
- server.cpp
- }
-}
-
-project(*Client): taoclient, ami, exceptions {
- Source_Files {
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_1869_Regression/client.cpp b/TAO/tests/Bug_1869_Regression/client.cpp
deleted file mode 100644
index b34fc2fa70c..00000000000
--- a/TAO/tests/Bug_1869_Regression/client.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-// $Id$
-
-#include "AMIS.h"
-#include "ace/Task.h"
-#include "ace/OS_NS_unistd.h"
-
-class AdderCallback
- : public POA_AMI_test::AMI_adderHandler,
- public ACE_Task_Base {
-
- public:
- AdderCallback(CORBA::ORB_ptr orb)
- : orb(CORBA::ORB::_duplicate(orb)) {
- activate();
- }
-
- virtual void add (
- CORBA::Long ami_return_val
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
- {
- ACE_DEBUG ((LM_DEBUG, "Return value: %d\n", ami_return_val));
- }
-
- virtual void add_excep (
- ::Messaging::ExceptionHolder *
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
- {
- ACE_DEBUG ((LM_DEBUG, "Caught exception in _excep\n"));
- }
-
- virtual int svc() {
- orb->run();
-
- return 0;
- }
-
- CORBA::ORB_var orb;
-
-};
-
-int main (int argc, char* argv[]) {
-
- try {
-
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- // Get reference to Root POA
- CORBA::Object_var obj
- = orb->resolve_initial_references ("RootPOA");
-
- PortableServer::POA_var rootPOA = PortableServer::POA::_narrow (obj.in ());
-
- // Activate POA manager
- PortableServer::POAManager_var mgr
- = rootPOA->the_POAManager ();
-
- mgr->activate();
-
- // Resolve Adder Reference
- obj = orb->string_to_object("corbaloc:iiop:127.0.0.1:4711/Adder");
- AMI_test::adder_var adder = AMI_test::adder::_narrow(obj.in ());
-
- AdderCallback cb_servant(orb.in ());
-
- while(true) {
- try
- {
- adder->sendc_add(cb_servant._this(), 3, 2);
- }
- catch(...)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Caught exception after sendc_add\n"));
- }
- ACE_OS::sleep (1);
- }
- }
- catch(...)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Caught exception in main\n"));
- return 1;
- }
-
- return 0;
-}
-
-
-
diff --git a/TAO/tests/Bug_1869_Regression/run_test.pl b/TAO/tests/Bug_1869_Regression/run_test.pl
deleted file mode 100644
index 2a6eb183455..00000000000
--- a/TAO/tests/Bug_1869_Regression/run_test.pl
+++ /dev/null
@@ -1,40 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-ORBEndpoint iiop://127.0.0.1:4711");
-}
-else {
- $SV = new PerlACE::Process ("server", "-ORBEndpoint iiop://127.0.0.1:4711");
-}
-$CL = new PerlACE::Process ("client", "");
-
-$SV->Spawn ();
-
-$client = $CL->Spawn (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-sleep (5);
-
-print STDERR "Kill server\n";
-$server = $SV->Kill ();
-
-sleep (5);
-
-print STDERR "Restart server\n";
-$SV->Spawn ();
-
-sleep (30);
-
-exit $status;
diff --git a/TAO/tests/Bug_1869_Regression/server.cpp b/TAO/tests/Bug_1869_Regression/server.cpp
deleted file mode 100644
index 6b741d07984..00000000000
--- a/TAO/tests/Bug_1869_Regression/server.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-// $Id$
-
-#include "AMIS.h"
-#include "tao/IORTable/IORTable.h"
-
-class AdderServant :
- public POA_AMI_test::adder {
-
-public:
- AdderServant (void) {}
-
- virtual ~AdderServant (void) {}
-
- virtual
- CORBA::Long add (
- CORBA::Long a,
- CORBA::Long b
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException
- )) {
- return a + b;
- }
-};
-
-
-int main (int argc, char* argv[]) {
-
- try {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- // Get reference to Root POA
- CORBA::Object_var obj
- = orb->resolve_initial_references ("RootPOA");
-
- PortableServer::POA_var rootPOA = PortableServer::POA::_narrow (obj.in ());
-
- // Activate POA manager
- PortableServer::POAManager_var mgr
- = rootPOA->the_POAManager ();
-
- mgr->activate();
-
- // Create Persistent Lifespan Policy and User Id Policy
- PortableServer::LifespanPolicy_var lifespan =
- rootPOA->create_lifespan_policy(PortableServer::PERSISTENT);
- PortableServer::IdAssignmentPolicy_var idassignment =
- rootPOA->create_id_assignment_policy(PortableServer::USER_ID);
-
- // Stuff them into a policy list
- CORBA::PolicyList policies(2);
- policies.length(2);
- policies[0] = PortableServer::IdAssignmentPolicy::_duplicate(idassignment.in());
- policies[1] = PortableServer::LifespanPolicy::_duplicate(lifespan.in());
-
- // Create the Child POA
- PortableServer::POA_var persistentPOA =
- rootPOA->create_POA("persistentPOA", mgr.in(), policies);
-
- // Policies are no longer needed
- idassignment->destroy();
- lifespan->destroy();
-
- AdderServant servant;
-
- // Create an id
- PortableServer::ObjectId_var oid =
- PortableServer::string_to_ObjectId("Adder");
-
- // Activate the object (with id)
- persistentPOA->activate_object_with_id(oid.in(), & servant);
-
- CORBA::Object_var ref = persistentPOA->id_to_reference(oid.in());
- CORBA::String_var iors = orb->object_to_string(ref.in());
-
- CORBA::Object_var tobj = orb->resolve_initial_references("IORTable");
- IORTable::Table_var table = IORTable::Table::_narrow(tobj.in());
- table->bind("Adder", iors.in ());
-
- orb->run();
- } catch (...) {
- ACE_ERROR ((LM_ERROR, "ERROR: Caught exception in server"));
- return 1;
- }
- return 0;
-}
-
diff --git a/TAO/tests/Bug_2084_Regression/Bug_2084_Regression.mpc b/TAO/tests/Bug_2084_Regression/Bug_2084_Regression.mpc
deleted file mode 100644
index b4263adaa64..00000000000
--- a/TAO/tests/Bug_2084_Regression/Bug_2084_Regression.mpc
+++ /dev/null
@@ -1,6 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver {
- exename = server
-}
diff --git a/TAO/tests/Bug_2084_Regression/Client_Task.cpp b/TAO/tests/Bug_2084_Regression/Client_Task.cpp
deleted file mode 100644
index 1bf4dbf8ace..00000000000
--- a/TAO/tests/Bug_2084_Regression/Client_Task.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-//
-// $Id$
-//
-
-#include "Client_Task.h"
-#include "TestC.h"
-#include "Hello.h"
-#include "tao/ORB_Core.h"
-#include "tao/PortableServer/PortableServer.h"
-
-ACE_RCSID(Bug_2084_Regression,
- Client_Task,
- "$Id$")
-
-Client_Task::Client_Task (const char *ior,
- CORBA::ORB_ptr corb,
- ACE_Thread_Manager *thr_mgr)
- : ACE_Task_Base (thr_mgr)
- , input_ (ior)
- , corb_ (CORBA::ORB::_duplicate (corb))
-
-{
-}
-
-int
-Client_Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var poa_object =
- this->corb_->resolve_initial_references("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Hello *hello_impl = 0;
- ACE_NEW_RETURN (hello_impl,
- Hello (this->corb_.in (),
- ACE_Thread::self ()),
- 1);
-
- PortableServer::ServantBase_var owner_transfer(hello_impl);
-
- Test::Hello_var hello_servant = hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
-
- ACE_DEBUG((LM_DEBUG,"Client (%t) optimize_collocation_objects=%d use_global_collocation=%d\n",
- corb_->orb_core()->optimize_collocation_objects(),
- corb_->orb_core()->use_global_collocation ()));
-
- CORBA::Object_var tmp =
- this->corb_->string_to_object (input_
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::EventNode_var evNode=
- Test::EventNode::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (evNode.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil Test::EventNode reference <%s>\n",
- input_),
- 1);
- }
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Client starting\n"));
-
- evNode->registerHello( hello_servant.in() ACE_ENV_ARG_PARAMETER );
- ACE_TRY_CHECK;
-
- evNode->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-
-}
diff --git a/TAO/tests/Bug_2084_Regression/Client_Task.h b/TAO/tests/Bug_2084_Regression/Client_Task.h
deleted file mode 100644
index 98ea06eca46..00000000000
--- a/TAO/tests/Bug_2084_Regression/Client_Task.h
+++ /dev/null
@@ -1,37 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef COLLOCATED_TEST_CLIENT_TASK_H
-#define COLLOCATED_TEST_CLIENT_TASK_H
-#include /**/ "ace/pre.h"
-#include "ace/Task.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ORB.h"
-
-
-/// Implement a Task to run the client as a thread
-class Client_Task : public ACE_Task_Base
-{
-public:
-
- /// Constructor
- Client_Task (const char *input,
- CORBA::ORB_ptr corb,
- ACE_Thread_Manager *thr_mgr);
-
- /// Thread entry point
- int svc (void);
-
-private:
- const char *input_;
-
- CORBA::ORB_var corb_;
-
-};
-
-#include /**/ "ace/post.h"
-#endif /* COLLOCATED_TEST_CLIENT_TASK_H */
diff --git a/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp b/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp
deleted file mode 100644
index a16745c918a..00000000000
--- a/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp
+++ /dev/null
@@ -1,127 +0,0 @@
-//$Id$
-#include "Server_Task.h"
-#include "Client_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/Argv_Type_Converter.h"
-#include "ace/SString.h"
-#include "ace/Manual_Event.h"
-#include <ace/ARGV.h>
-#include <iostream>
-
-const char *output = "test.ior";
-const char *input = "file://test.ior";
-// static int named_orbs = 0;
-ACE_CString server_orb;
-ACE_CString client_orb;
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:o:n");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- output = get_opts.opt_arg ();
- break;
- case 'k':
- input = get_opts.opt_arg ();
- break;
- case 'n':
- // named_orbs = 1;
- server_orb.set ("server_orb");
- client_orb.set ("client_orb");
- break;
- case '?':
- default:
- // This is a hack but that is okay!
- return 0;
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- if (parse_args (argc,
- argv) == -1)
- return -1;
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
-
- // Keep a copy of the ORB options args
- ACE_ARGV orb_args;
- for (int i = 1; i < argc; ++i)
- {
- if (orb_args.add (argv[i]) == -1)
- return -1;
- }
-
- ACE_Argv_Type_Converter satc (argc, argv);
-
- CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
- server_orb.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Manual_Event me;
- Server_Task server_task (output,
- sorb.in (),
- me,
- ACE_Thread_Manager::instance ());
-
- if (server_task.activate (THR_NEW_LWP | THR_JOINABLE,
- 1,
- 1) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Error activating server task\n"));
- }
-
- // Wait for the server thread to do some processing
- me.wait ();
-
- // This eats all orb-specific options!
- ACE_Argv_Type_Converter catc (argc, argv);
- CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc(),
- catc.get_TCHAR_argv(),
- client_orb.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Client_Task client_task (input,
- corb.in (),
- ACE_Thread_Manager::instance ());
-
- if (client_task.activate (THR_NEW_LWP | THR_JOINABLE,
- 1,
- 1) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Error activating client task\n"));
- }
-
- // Wait for the client and server to finish
- ACE_Thread_Manager::instance ()->wait ();
-
- // Now that all threads have completed we can destroy the ORB
- sorb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- if (server_orb != client_orb)
- {
- corb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- // Ignore exceptions..
- }
- ACE_ENDTRY;
- return 0;
-}
diff --git a/TAO/tests/Bug_2084_Regression/EventNode.cpp b/TAO/tests/Bug_2084_Regression/EventNode.cpp
deleted file mode 100644
index 3ce3f1bf30e..00000000000
--- a/TAO/tests/Bug_2084_Regression/EventNode.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-//
-// $Id$
-//
-#include "EventNode.h"
-#include "tao/ORB_Core.h"
-#include "tao/ORB_Table.h"
-
-ACE_RCSID(EventNode, EventNode, "$Id$")
-
-EventNode::EventNode (CORBA::ORB_ptr orb,
- ACE_thread_t thrid)
- : orb_ (CORBA::ORB::_duplicate (orb))
- , thr_id_ (thrid)
-{
-}
-
-void EventNode::registerHello ( ::Test::Hello_ptr h ACE_ENV_ARG_DECL )
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) EventNode: registerHello will call get_string...\n"));
-
- if (ACE_Thread::self () == this->thr_id_)
- {
- if (this->orb_->orb_core ()->optimize_collocation_objects () &&
- this->orb_->orb_core ()->use_global_collocation ())
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: A remote call has been made "
- " exiting ..\n"));
- ACE_OS::abort ();
- }
- else if (this->orb_->orb_core ()->optimize_collocation_objects () &&
- this->orb_->orb_core ()->use_global_collocation () == 0)
- {
- TAO::ORB_Table * const orb_table =
- TAO::ORB_Table::instance ();
-
- if (orb_table->find ("server_orb") == 0)
- {
- // We are running on a single ORB and this is an error.
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: A remote call has been made "
- " with a single ORB "
- " exiting ..\n"));
- ACE_OS::abort ();
- }
- }
- }
-
- CORBA::String_var str = h->get_string( (::CORBA::Long) ACE_Thread::self() );
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - EventNode: string returned <%s>\n", str.in ()));
-}
-
-void
-EventNode::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/tests/Bug_2084_Regression/EventNode.h b/TAO/tests/Bug_2084_Regression/EventNode.h
deleted file mode 100644
index e2209a632ac..00000000000
--- a/TAO/tests/Bug_2084_Regression/EventNode.h
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef EVENT_NODE_H
-#define EVENT_NODE_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#include "ace/OS.h"
-
-/// Implement the Test::EventNode interface
-class EventNode
- : public virtual POA_Test::EventNode
-{
-public:
- /// Constructor
- EventNode (CORBA::ORB_ptr orb,
- ACE_thread_t thr_id);
-
- // = The skeleton methods
- virtual void registerHello ( ::Test::Hello_ptr h ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC (( CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-
- ACE_thread_t thr_id_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/tests/Bug_2084_Regression/Hello.cpp b/TAO/tests/Bug_2084_Regression/Hello.cpp
deleted file mode 100644
index e19ff455c09..00000000000
--- a/TAO/tests/Bug_2084_Regression/Hello.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// $Id$
-//
-#include "Hello.h"
-#include "tao/ORB_Core.h"
-#include "tao/ORB_Table.h"
-
-ACE_RCSID(Hello, Hello, "$Id$")
-
- Hello::Hello (CORBA::ORB_ptr orb,
- ACE_thread_t thrid)
- : orb_ (CORBA::ORB::_duplicate (orb))
- , thr_id_ (thrid)
-{
-}
-
-char *
-Hello::get_string (::CORBA::Long caller_threadid ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Upcall in process ..\n"));
-
- // Use portable thread IDs
- ACE_Thread_ID this_ID;
- this_ID.id(this->thr_id_);
-
- if ((::CORBA::Long)ACE_Thread::self () != caller_threadid) // this means a remote call was made
- {
- if (this->orb_->orb_core ()->optimize_collocation_objects () &&
- this->orb_->orb_core ()->use_global_collocation ())
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: A remote call has been made "
- " exiting ..\n"));
- ACE_OS::abort ();
- }
- else if (this->orb_->orb_core ()->optimize_collocation_objects () &&
- this->orb_->orb_core ()->use_global_collocation () == 0)
- {
- TAO::ORB_Table * const orb_table =
- TAO::ORB_Table::instance ();
-
- if (orb_table->find ("server_orb") == 0)
- {
- // We are running on a single ORB and this is an error.
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: A remote call has been made "
- " with a single ORB "
- " exiting ..\n"));
- ACE_OS::abort ();
- }
- }
- }
-
- return CORBA::string_dup ("Hello there!");
-}
-
-void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Give the client thread time to return from the collocated
- // call to this method before shutting down the ORB. We sleep
- // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
- ACE_OS::sleep (1);
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/tests/Bug_2084_Regression/Hello.h b/TAO/tests/Bug_2084_Regression/Hello.h
deleted file mode 100644
index 30e9552d68c..00000000000
--- a/TAO/tests/Bug_2084_Regression/Hello.h
+++ /dev/null
@@ -1,38 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef HELLO_H
-#define HELLO_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-#include "ace/OS.h"
-
-/// Implement the Test::Hello interface
-class Hello
- : public virtual POA_Test::Hello
-{
-public:
- /// Constructor
- Hello (CORBA::ORB_ptr orb,
- ACE_thread_t thr_id);
-
- // = The skeleton methods
- virtual char * get_string ( ::CORBA::Long caller_threadid ACE_ENV_ARG_DECL )
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-
- ACE_thread_t thr_id_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/tests/Bug_2084_Regression/Server_Task.cpp b/TAO/tests/Bug_2084_Regression/Server_Task.cpp
deleted file mode 100644
index b5e9fb0ffce..00000000000
--- a/TAO/tests/Bug_2084_Regression/Server_Task.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-//
-// $Id$
-//
-#include "Server_Task.h"
-#include "TestS.h"
-#include "EventNode.h"
-
-#include "ace/Manual_Event.h"
-#include "tao/ORB_Core.h"
-
-ACE_RCSID(Collocated_Test,
- Server_Task,
- "$Id$")
-
-
-Server_Task::Server_Task (const char *output,
- CORBA::ORB_ptr sorb,
- ACE_Manual_Event &me,
- ACE_Thread_Manager *thr_mgr)
- : ACE_Task_Base (thr_mgr)
- , output_ (output)
- , me_ (me)
- , sorb_ (CORBA::ORB::_duplicate (sorb))
-{
-}
-
-int
-Server_Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var poa_object =
- this->sorb_->resolve_initial_references("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- EventNode *evnode_impl = new EventNode(this->sorb_.in(),ACE_Thread::self());
- PortableServer::ServantBase_var owner_transfer(evnode_impl);
- Test::EventNode_var evNode = evnode_impl->_this(ACE_ENV_SINGLE_ARG_PARAMETER);
-
- ACE_DEBUG((LM_DEBUG,"Server (%t) optimize_collocation_objects=%d use_global_collocation=%d\n",
- sorb_->orb_core()->optimize_collocation_objects(),
- sorb_->orb_core()->use_global_collocation ()));
-
- CORBA::String_var ior =
- this->sorb_->object_to_string (evNode.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <this->output_>
- FILE *output_file= ACE_OS::fopen (this->output_,
- "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- this->output_),
- 1);
-
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Signal the main thread before we call orb->run ();
- this->me_.signal ();
-
- this->sorb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
- }
- ACE_CATCH (CORBA::BAD_INV_ORDER, ex)
- {
- // Periodically we get a bad inv order on fast machines.
- // It's a false negative and is safe to ignore.
- ACE_UNUSED_ARG (ex);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2084_Regression/Server_Task.h b/TAO/tests/Bug_2084_Regression/Server_Task.h
deleted file mode 100644
index 60006aae0ba..00000000000
--- a/TAO/tests/Bug_2084_Regression/Server_Task.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef COLLOCATED_SERVER_TASK_H
-#define COLLOCATED_SERVER_TASK_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Task.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/ORB.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-/// Implement a Task to run the server in a single thread
-class Server_Task : public ACE_Task_Base
-{
-public:
- /// Constructor
- Server_Task (const char *output,
- CORBA::ORB_ptr sorb,
- ACE_Manual_Event &me,
- ACE_Thread_Manager *thr_mgr);
-
- /// Thread entry point
- int svc (void);
-
-private:
- /// Output file for IOR
- const char *output_;
-
- /// Manual event to wake up the main thread to create a client
- /// thread.
- ACE_Manual_Event &me_;
-
- CORBA::ORB_var sorb_;
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* COLLOCATED_SERVER_TASK_H */
diff --git a/TAO/tests/Bug_2084_Regression/Test.idl b/TAO/tests/Bug_2084_Regression/Test.idl
deleted file mode 100644
index 37a1ca19b7d..00000000000
--- a/TAO/tests/Bug_2084_Regression/Test.idl
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// $Id$
-//
-
-/// Put the interfaces in a module, to avoid global namespace pollution
-module Test
-{
- /// A very simple interface
- interface Hello
- {
- /// Return a simple string
- string get_string ( in long caller_threadid );
-
- /// A method to shutdown the ORB
- /**
- * This method is used to simplify the test shutdown process
- */
- oneway void shutdown ();
- };
-
- /// The server side
- interface EventNode
- {
- void registerHello( in Hello h );
- oneway void shutdown ();
- };
-};
diff --git a/TAO/tests/Bug_2084_Regression/run_test.pl b/TAO/tests/Bug_2084_Regression/run_test.pl
deleted file mode 100755
index df9a75e42d4..00000000000
--- a/TAO/tests/Bug_2084_Regression/run_test.pl
+++ /dev/null
@@ -1,82 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("test.ior");
-unlink $iorfile;
-$status = 0;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server");
-}
-else {
- $SV = new PerlACE::Process ("server");
-}
-
-print STDERR "======== Running in Default Mode \n";
-$SV->Arguments ("-o $iorfile -k file://$iorfile");
-$sv = $SV->SpawnWaitKill (30);
-
-if ($sv != 0) {
- print STDERR "ERROR in Collocated_Test\n";
- $status = 1;
-}
-unlink $iorfile;
-
-print STDERR "======== Running with per-orb \n";
-$SV->Arguments ("-o $iorfile -k file://$iorfile -ORBCollocation per-orb");
-$sv = $SV->SpawnWaitKill (30);
-
-if ($sv != 0) {
- print STDERR "ERROR in server\n";
- $status = 1;
-}
-unlink $iorfile;
-
-print STDERR "======== Running with no collocation \n";
-$SV->Arguments ("-o $iorfile -k file://$iorfile -ORBCollocation no");
-$sv = $SV->SpawnWaitKill (30);
-
-if ($sv != 0) {
- print STDERR "ERROR in server\n";
- $status = 1;
-}
-unlink $iorfile;
-
-print STDERR "======== Running in default mode and two ORBS \n";
-$SV->Arguments ("-o $iorfile -k file://$iorfile -n ");
-$sv = $SV->SpawnWaitKill (30);
-
-if ($sv != 0) {
- print STDERR "ERROR in server\n";
- $status = 1;
-}
-unlink $iorfile;
-
-print STDERR "======== Running in per-orb mode and two ORBS \n";
-$SV->Arguments ("-o $iorfile -k file://$iorfile -n -ORBCollocation per-orb");
-$sv = $SV->SpawnWaitKill (30);
-
-if ($sv != 0) {
- print STDERR "ERROR in server\n";
- $status = 1;
-}
-unlink $iorfile;
-
-print STDERR "======== Running in no collocation mode and two ORBS \n";
-$SV->Arguments ("-o $iorfile -k file://$iorfile -n -ORBCollocation per-orb");
-$sv = $SV->SpawnWaitKill (30);
-
-if ($sv != 0) {
- print STDERR "ERROR in server\n";
- $status = 1;
-}
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/Bug_2122_Regression/test.cpp b/TAO/tests/Bug_2122_Regression/test.cpp
index 6002cf0c9e9..1bd647775d1 100644
--- a/TAO/tests/Bug_2122_Regression/test.cpp
+++ b/TAO/tests/Bug_2122_Regression/test.cpp
@@ -6,7 +6,7 @@
#include "TestC.h"
-int main( int argc, char* argv[] )
+int ACE_TMAIN( int argc, ACE_TCHAR* argv[] )
{
ACE_UNUSED_ARG( argc ) ;
ACE_UNUSED_ARG( argv ) ;
diff --git a/TAO/tests/Bug_2124_Regression/test.cpp b/TAO/tests/Bug_2124_Regression/test.cpp
index 6002cf0c9e9..1bd647775d1 100644
--- a/TAO/tests/Bug_2124_Regression/test.cpp
+++ b/TAO/tests/Bug_2124_Regression/test.cpp
@@ -6,7 +6,7 @@
#include "TestC.h"
-int main( int argc, char* argv[] )
+int ACE_TMAIN( int argc, ACE_TCHAR* argv[] )
{
ACE_UNUSED_ARG( argc ) ;
ACE_UNUSED_ARG( argv ) ;
diff --git a/TAO/tests/Bug_2126_Regression/test.cpp b/TAO/tests/Bug_2126_Regression/test.cpp
index 6002cf0c9e9..1bd647775d1 100644
--- a/TAO/tests/Bug_2126_Regression/test.cpp
+++ b/TAO/tests/Bug_2126_Regression/test.cpp
@@ -6,7 +6,7 @@
#include "TestC.h"
-int main( int argc, char* argv[] )
+int ACE_TMAIN( int argc, ACE_TCHAR* argv[] )
{
ACE_UNUSED_ARG( argc ) ;
ACE_UNUSED_ARG( argv ) ;
diff --git a/TAO/tests/Bug_2134_Regression/Bug_2134_Regression.mpc b/TAO/tests/Bug_2134_Regression/Bug_2134_Regression.mpc
deleted file mode 100644
index ed86746eeca..00000000000
--- a/TAO/tests/Bug_2134_Regression/Bug_2134_Regression.mpc
+++ /dev/null
@@ -1,10 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project (*Test) : taoserver, iortable {
- exename = server
- avoids += minimum_corba
- Source_Files {
- Hello.cpp
- }
-}
diff --git a/TAO/tests/Bug_2134_Regression/Hello.cpp b/TAO/tests/Bug_2134_Regression/Hello.cpp
deleted file mode 100644
index 53eb63216e5..00000000000
--- a/TAO/tests/Bug_2134_Regression/Hello.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-// $Id$
-
-#include "tao/corba.h"
-#include "tao/IORTable/IORTable.h"
-#include "ace/OS_NS_string.h"
-#include "ace/SString.h"
-
-#include "HelloS.h"
-
-namespace Test
-{
-class Hello_impl: virtual public POA_Test::Hello
-{
-public:
- void say_hello() ACE_THROW_SPEC ((CORBA::SystemException)) { };
-
-};
-}
-
-int main(int argc, char* argv[])
-{
- CORBA::ORB_var orb = CORBA::ORB::_nil();
-
- ACE_TRY_NEW_ENV
- {
- // Initialize the ORB
- orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // create Hello object
- Test::Hello_impl hello_i;
- ACE_TRY_CHECK;
-
- Test::Hello_var hello = hello_i._this ();
- ACE_TRY_CHECK;
-
- // give our object a friendly name
- CORBA::Object_var iorTableObj =
- orb->resolve_initial_references ("IORTable");
- ACE_TRY_CHECK;
-
- IORTable::Table_var iorTable
- = IORTable::Table::_narrow (iorTableObj.in ());
- ACE_TRY_CHECK;
-
- CORBA::String_var ior_string = orb->object_to_string (hello.in ());
- ACE_TRY_CHECK;
-
- iorTable->bind("hello", ior_string.in ());
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "Created binding of name 'hello' in IOR table for IOR:\n%s\n", ior_string.in ()));
-
- // Get the root POA
- CORBA::Object_var obj_root = orb->resolve_initial_references ("RootPOA");
- ACE_TRY_CHECK;
-
- PortableServer::POA_var rootPOA = PortableServer::POA::_narrow (obj_root.in ());
- ACE_TRY_CHECK;
-
- // Activate the POA manager
- PortableServer::POAManager_var poaManager = rootPOA->the_POAManager ();
- ACE_TRY_CHECK;
-
- poaManager->activate ();
- ACE_TRY_CHECK;
-
- // try and access the object with its friendly name
- ACE_CString full_corbaloc (ior_string.in (), 0, 1);
-
- CORBA::ULong first_slash = full_corbaloc.find ("/", 0);
-
- ACE_CString friendly_corbaloc =
- full_corbaloc.substring (0,
- first_slash);
-
- friendly_corbaloc += "/hello";
-
- ACE_DEBUG ((LM_DEBUG, "Trying to access object with object ref:\n%s\n", friendly_corbaloc.c_str ()));
-
- CORBA::Object_var obj = orb->string_to_object (friendly_corbaloc.c_str ());
- ACE_TRY_CHECK;
-
- Test::Hello_var hello2 = Test::Hello::_narrow (obj.in ());
- ACE_TRY_CHECK;
-
- hello2->say_hello ();
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "Test succeeded !!!\n"));
-
- orb->destroy();
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Error - test failed - exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2134_Regression/Hello.idl b/TAO/tests/Bug_2134_Regression/Hello.idl
deleted file mode 100644
index 44f72bfbfbe..00000000000
--- a/TAO/tests/Bug_2134_Regression/Hello.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-
-module Test {
- interface Hello {
- void say_hello();
- };
-};
diff --git a/TAO/tests/Bug_2134_Regression/README b/TAO/tests/Bug_2134_Regression/README
deleted file mode 100644
index e8164d894ef..00000000000
--- a/TAO/tests/Bug_2134_Regression/README
+++ /dev/null
@@ -1,5 +0,0 @@
-# $Id$
-
-This test checks that a collocated object ref bound into the local IOR table can be used.
-
-
diff --git a/TAO/tests/Bug_2134_Regression/run_test.pl b/TAO/tests/Bug_2134_Regression/run_test.pl
deleted file mode 100755
index a5aca85b1b0..00000000000
--- a/TAO/tests/Bug_2134_Regression/run_test.pl
+++ /dev/null
@@ -1,22 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$CL = new PerlACE::Process ("server", "-ORBObjRefStyle URL");
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/TAO/tests/Bug_2144_Regression/test.cpp b/TAO/tests/Bug_2144_Regression/test.cpp
index c7b795b0d04..b8c200f122b 100755
--- a/TAO/tests/Bug_2144_Regression/test.cpp
+++ b/TAO/tests/Bug_2144_Regression/test.cpp
@@ -2,7 +2,7 @@
#include "testC.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
diff --git a/TAO/tests/Bug_2174_Regression/Bug_2174_Regression.mpc b/TAO/tests/Bug_2174_Regression/Bug_2174_Regression.mpc
index c01584c3559..1d3d307ea3e 100644
--- a/TAO/tests/Bug_2174_Regression/Bug_2174_Regression.mpc
+++ b/TAO/tests/Bug_2174_Regression/Bug_2174_Regression.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Bug_2174_Regression/client.cpp b/TAO/tests/Bug_2174_Regression/client.cpp
index dc0b7923d30..9c46c96981b 100644
--- a/TAO/tests/Bug_2174_Regression/client.cpp
+++ b/TAO/tests/Bug_2174_Regression/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_2174_Regression, client, "$Id$")
@@ -12,7 +13,7 @@ int max_timeout = 20;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:l:h:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:l:h:");
int c;
while ((c = get_opts ()) != -1)
@@ -42,15 +43,17 @@ int result = 1;
// 4 : CORBA::OBJECT_NOT_EXIST exception
// 5 : CORBA::TRANSIENT exception
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Bug_2174_Regression/run_test.pl b/TAO/tests/Bug_2174_Regression/run_test.pl
index 02366a5ebb4..bdc879d8a18 100755
--- a/TAO/tests/Bug_2174_Regression/run_test.pl
+++ b/TAO/tests/Bug_2174_Regression/run_test.pl
@@ -13,22 +13,11 @@ unlink $iorfile;
# Test A: object exists (_non_existent() returns false)
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile");
-}
+$SV = new PerlACE::Process ("server", "-o $iorfile");
$CL = new PerlACE::Process ("client", "-k file://$iorfile");
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
-
-if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+$SV->Spawn ();
+if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
$SV->Kill ();
exit 1;
@@ -45,15 +34,10 @@ if ($client != 2) {
# Test B: object does not exist (_non_existent() returns true)
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior -r");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile -r");
-}
+$SV = new PerlACE::Process ("server", "-o $iorfile -r");
$SV->Spawn ();
-if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+if (PerlACE::waitforfile_timed ($iorfile, 5) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
$SV->Kill ();
exit 1;
diff --git a/TAO/tests/Bug_2174_Regression/server.cpp b/TAO/tests/Bug_2174_Regression/server.cpp
index bc39027c4ac..29733de3adb 100644
--- a/TAO/tests/Bug_2174_Regression/server.cpp
+++ b/TAO/tests/Bug_2174_Regression/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Bug_2174_Regression, server, "$Id$")
@@ -12,7 +13,7 @@ bool remove_object = false;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:r");
int c;
while ((c = get_opts ()) != -1)
@@ -41,15 +42,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
@@ -95,7 +98,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_2183_Regression/Bug_2183_Regression.mpc b/TAO/tests/Bug_2183_Regression/Bug_2183_Regression.mpc
index ff28e59983f..62cffce1ede 100755
--- a/TAO/tests/Bug_2183_Regression/Bug_2183_Regression.mpc
+++ b/TAO/tests/Bug_2183_Regression/Bug_2183_Regression.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, strategies {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Bug_2183_Regression/client.cpp b/TAO/tests/Bug_2183_Regression/client.cpp
index 913d3153ae9..5f78dfb98eb 100755
--- a/TAO/tests/Bug_2183_Regression/client.cpp
+++ b/TAO/tests/Bug_2183_Regression/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, client, "client.cpp,v 1.5 2002/01/29 20:21:07 okellogg Exp")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,15 +35,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Bug_2183_Regression/run_test.pl b/TAO/tests/Bug_2183_Regression/run_test.pl
index 483b71e5ebc..a7f866baf63 100755
--- a/TAO/tests/Bug_2183_Regression/run_test.pl
+++ b/TAO/tests/Bug_2183_Regression/run_test.pl
@@ -12,12 +12,7 @@ use PerlACE::Run_Test;
$server_ior_file = PerlACE::LocalFile ("server.ior");
# The client and server processes
-if (PerlACE::is_vxworks_test()) {
- $SERVER = new PerlACE::ProcessVX(PerlACE::LocalFile("server"));
-}
-else {
- $SERVER = new PerlACE::Process(PerlACE::LocalFile("server"));
-}
+$SERVER = new PerlACE::Process(PerlACE::LocalFile("server"));
$perl_executable = $^X;
$perl_executable =~ s/\.exe//g;
$DUMMY_CLIENT = new PerlACE::Process($perl_executable);
@@ -26,20 +21,10 @@ $CLIENT = new PerlACE::Process(PerlACE::LocalFile("client"));
$DUMMY_CLIENT->Arguments("hang_client.pl");
$DUMMY_CLIENT->IgnoreExeSubDir(1);
-if (PerlACE::is_vxworks_test()) {
- $SERVER->Arguments("-o server.ior -ORBEndpoint iiop://:15000 -ORBSvcConf server.conf");
-}
-else {
- $SERVER->Arguments("-o $server_ior_file -ORBEndpoint iiop://:15000 -ORBSvcConf server.conf");
-}
+$SERVER->Arguments("-o $server_ior_file -ORBEndpoint iiop://:15000 -ORBSvcConf server.conf");
# Fire up the server
-$sv = $SERVER->Spawn();
-
-if ($sv != 0) {
- print STDERR "ERROR: server returned $sv\n";
- exit 1;
-}
+$SERVER->Spawn();
# We can wait on the IOR file
if (PerlACE::waitforfile_timed ($server_ior_file, 10) == -1)
diff --git a/TAO/tests/Bug_2183_Regression/server.cpp b/TAO/tests/Bug_2183_Regression/server.cpp
index 4853611a134..05f42b04d89 100755
--- a/TAO/tests/Bug_2183_Regression/server.cpp
+++ b/TAO/tests/Bug_2183_Regression/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Strategies/advanced_resource.h"
ACE_RCSID (Hello,
@@ -14,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,12 +39,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -63,7 +66,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -81,7 +84,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Bug_2186_Regression/Bug_2186_Regression.mpc b/TAO/tests/Bug_2186_Regression/Bug_2186_Regression.mpc
deleted file mode 100644
index 0f6d8164108..00000000000
--- a/TAO/tests/Bug_2186_Regression/Bug_2186_Regression.mpc
+++ /dev/null
@@ -1,18 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, strategies {
- Source_Files {
- Hello.cpp
- server.cpp
- }
-}
-
-project(*Client): taoserver, strategies {
- exename = client
- Source_Files {
- Hello.cpp
- client.cpp
- }
-}
-
diff --git a/TAO/tests/Bug_2186_Regression/Hello.cpp b/TAO/tests/Bug_2186_Regression/Hello.cpp
deleted file mode 100644
index c45f7947354..00000000000
--- a/TAO/tests/Bug_2186_Regression/Hello.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// $Id$
-//
-#include "Hello.h"
-
-ACE_RCSID(Hello, Hello, "$Id$")
-
-Hello::Hello (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-char *
-Hello::get_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Received call back !!!\n"));
- return CORBA::string_dup ("Hello there!");
-}
-
-void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
-
-void
-Hello::request_callback (Test::Hello_ptr call_me ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Making call back !!!\n"));
- ACE_TRY
- {
- CORBA::String_var result = call_me->get_string ();
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception attempting to callback client obj ref: \n");
- ACE_RE_THROW;
- }
- ACE_ENDTRY;
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Call back succeeded !!!\n"));
-}
diff --git a/TAO/tests/Bug_2186_Regression/Hello.h b/TAO/tests/Bug_2186_Regression/Hello.h
deleted file mode 100644
index cf49f8dc3de..00000000000
--- a/TAO/tests/Bug_2186_Regression/Hello.h
+++ /dev/null
@@ -1,36 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef HELLO_H
-#define HELLO_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-/// Implement the Test::Hello interface
-class Hello
- : public virtual POA_Test::Hello
-{
-public:
- /// Constructor
- Hello (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual char * get_string (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void request_callback (Test::Hello_ptr call_me ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/tests/Bug_2186_Regression/README b/TAO/tests/Bug_2186_Regression/README
deleted file mode 100644
index 3cd6316fe16..00000000000
--- a/TAO/tests/Bug_2186_Regression/README
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-This test is the old fave TAO/tests/Hello with some minor(ish) differences.
-
-1/ A ::request_callback method has been added that takes a Hello ref and which prompts a callback to the ::get_string method on that ref.
-2/ The server (only) uses a server.conf file which specifies the wait on read client policy (RW).
-3/ The client now hosts a transient Hello servant too.
-4/ The client calls the servers ::request_callback method passing the reference to the client servant.
-5/ The server will call the client back.
-6/ The client will exit when its ::request_callback call returns.
-
-The script runs the server as:
-
-server -ORBSvcConf server.conf
-
-And then runs the client *TWICE* as:
-
-client -ORBEndpoint iiop://:23232
-
-The regression error output looks like:
-
-[sm@beatrice Bug_2186_Regression]$ ./run_test.pl
-(1310|3077687968) - Sending client obj ref to the server and requesting a callback.
-(1309|3077687968) - Making call back !!!
-(1310|3077687968) - Received call back !!!
-(1309|3077687968) - Call back succeeded !!!
-(1310|3077687968) - Test (client) Succeeded !!!
-(1315|3077687968) - Sending client obj ref to the server and requesting a callback.
-(1309|3077687968) - Making call back !!!
-(1309|3077687968) EXCEPTION, Exception attempting to callback client obj ref:
-
-system exception, ID 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
-TAO exception, minor code = 6 (failed to recv request response; ENOENT), completed = MAYBE
-
-(1315|3077687968) - Test (client) Failed !!!
-(1315|3077687968) EXCEPTION, Exception caught:
-system exception, ID 'IDL:omg.org/CORBA/COMM_FAILURE:1.0'
-TAO exception, minor code = 6 (failed to recv request response; ENOENT), completed = MAYBE
-
-ERROR: REGRESSION - Second client spawn returned 1
-INFO: server being killed.
-
-This demonstrates that dropped connections are written to blindly even after the peer has gone when the RW policy is in effect. If the 'server' is started without the -ORBSvcConf argument then the default client connection handler is used and the test runs suceesfully.
-
-This successful output looks like:
-
-[sm@beatrice Bug_2186_Regression]$ ./run_test.pl
-(1906|3077687968) - Sending client obj ref to the server and requesting a callback.
-(1901|3077687968) - Making call back !!!
-(1906|3077687968) - Received call back !!!
-(1901|3077687968) - Call back succeeded !!!
-(1906|3077687968) - Test (client) Succeeded !!!
-(1911|3077687968) - Sending client obj ref to the server and requesting a callback.
-(1901|3077687968) - Making call back !!!
-(1911|3077687968) - Received call back !!!
-(1901|3077687968) - Call back succeeded !!!
-(1911|3077687968) - Test (client) Succeeded !!!
-INFO: server being killed.
-
-
diff --git a/TAO/tests/Bug_2186_Regression/Test.idl b/TAO/tests/Bug_2186_Regression/Test.idl
deleted file mode 100644
index 0f5412c0210..00000000000
--- a/TAO/tests/Bug_2186_Regression/Test.idl
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// $Id$
-//
-
-/// Put the interfaces in a module, to avoid global namespace pollution
-module Test
-{
- /// A very simple interface
- interface Hello
- {
- /// Return a simple string
- string get_string ();
-
- /// A method to shutdown the ORB
- /**
- * This method is used to simplify the test shutdown process
- */
- oneway void shutdown ();
-
- void request_callback (in Hello call_me);
- };
-};
diff --git a/TAO/tests/Bug_2186_Regression/client.cpp b/TAO/tests/Bug_2186_Regression/client.cpp
deleted file mode 100644
index ca65ab90e14..00000000000
--- a/TAO/tests/Bug_2186_Regression/client.cpp
+++ /dev/null
@@ -1,132 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-
-ACE_RCSID(Hello, client, "$Id$")
-
-const char *server_ior = "file://server.ior";
-const char *ior_output_file = "client.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- server_ior = get_opts.opt_arg ();
- break;
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(hello_impl);
-
- Test::Hello_var hello =
- hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var tmp =
- orb->string_to_object(server_ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_var server =
- Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil Test::Hello reference <%s>\n",
- ior.in ()),
- 1);
- }
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Sending client obj ref to the server and requesting a callback.\n"));
-
- server->request_callback (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Test (client) Succeeded !!!\n"));
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_DEBUG ((LM_ERROR, "(%P|%t) - Test (client) Failed !!!\n"));
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2186_Regression/run_test.pl b/TAO/tests/Bug_2186_Regression/run_test.pl
deleted file mode 100755
index e1790866584..00000000000
--- a/TAO/tests/Bug_2186_Regression/run_test.pl
+++ /dev/null
@@ -1,63 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$port = PerlACE::uniqueid () + 10001;
-
-$serveriorfile = PerlACE::LocalFile ("server.ior");
-unlink $serveriorfile;
-$clientiorfile = PerlACE::LocalFile ("client.ior");
-unlink $clientiorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-ORBSvcConf server.conf");
-}
-else {
- $SV = new PerlACE::Process ("server", "-ORBSvcConf server.conf");
-}
-$CL = new PerlACE::Process ("client", "-ORBEndpoint iiop://:$port");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($serveriorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$serveriorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: First client spawn returned $client. Indicates a problem other than a regression.\n";
- $status = 1;
-}
-
-if ($client == 0) {
- $client = $CL->SpawnWaitKill (300);
-
- if ($client != 0) {
- print STDERR "ERROR: REGRESSION - Second client spawn returned $client\n";
- $status = 1;
- }
-}
-
-$server = $SV->TerminateWaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $serveriorfile;
-unlink $clientiorfile;
-
-exit $status;
diff --git a/TAO/tests/Bug_2186_Regression/server.conf b/TAO/tests/Bug_2186_Regression/server.conf
deleted file mode 100644
index cbb2962f41d..00000000000
--- a/TAO/tests/Bug_2186_Regression/server.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-static Client_Strategy_Factory "-ORBClientConnectionHandler RW -ORBConnectionHandlerCleanup 1"
-
diff --git a/TAO/tests/Bug_2186_Regression/server.cpp b/TAO/tests/Bug_2186_Regression/server.cpp
deleted file mode 100644
index 5c7e9180f09..00000000000
--- a/TAO/tests/Bug_2186_Regression/server.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-
-ACE_RCSID (Hello,
- server,
- "$Id$")
-
-const char *ior_output_file = "server.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(hello_impl);
-
- Test::Hello_var hello =
- hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2201_Regression/Bug_2201_Regression.mpc b/TAO/tests/Bug_2201_Regression/Bug_2201_Regression.mpc
deleted file mode 100644
index 9130c21b40a..00000000000
--- a/TAO/tests/Bug_2201_Regression/Bug_2201_Regression.mpc
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Test): taoclient {
- exename = test
- Source_Files {
- test.cpp
- }
-}
diff --git a/TAO/tests/Bug_2201_Regression/TestData.idl b/TAO/tests/Bug_2201_Regression/TestData.idl
deleted file mode 100644
index 9c205e1df77..00000000000
--- a/TAO/tests/Bug_2201_Regression/TestData.idl
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-
-module SeqTest {
- typedef sequence<long> LongSeq;
-
- struct Node {
- LongSeq ls;
- };
-
- typedef sequence<Node> NodeSeq;
-};
diff --git a/TAO/tests/Bug_2201_Regression/run_test.pl b/TAO/tests/Bug_2201_Regression/run_test.pl
deleted file mode 100755
index fc3d16c5bbf..00000000000
--- a/TAO/tests/Bug_2201_Regression/run_test.pl
+++ /dev/null
@@ -1,27 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("test", "");
-}
-else {
- $SV = new PerlACE::Process ("test", "");
-}
-
-$SV->Spawn ();
-
-$server = $SV->WaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/TAO/tests/Bug_2201_Regression/test.cpp b/TAO/tests/Bug_2201_Regression/test.cpp
deleted file mode 100644
index 1508d989950..00000000000
--- a/TAO/tests/Bug_2201_Regression/test.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// $Id$
-
-#include "ace/Log_Msg.h"
-#include "TestDataC.h"
-
-int
-main (int argc, char *argv[])
-{
- int retval = 0;
-
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- SeqTest::NodeSeq ns;
- ns.length (1);
- ns[0].ls.length (1);
- ns[0].ls[0] = 42;
-
- ns.length (0); // Shrink sequence
- ns.length (1); // Re-grow sequence; should re-initialize meber sequence
- // "as if" default constructed. I.e., the "ls" member
- // should have a length of zero.
-
- if (ns[0].ls.length() == 0) {
- ACE_DEBUG ((LM_DEBUG, "Test passed\n"));
- }
- else {
- ACE_ERROR ((LM_ERROR, "Test failed\n"));
- retval = 1;
- }
-
- return retval;
-}
diff --git a/TAO/tests/Bug_2222_Regression/test.cpp b/TAO/tests/Bug_2222_Regression/test.cpp
index 8e6a7bec7ff..95a11764105 100755
--- a/TAO/tests/Bug_2222_Regression/test.cpp
+++ b/TAO/tests/Bug_2222_Regression/test.cpp
@@ -6,7 +6,7 @@
* This test does not run - successful compile and link == successful test.
*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
Array_Typedef_slice* body3 = Array_Typedef_alloc();
Array_Typedef_slice* body31 = Array_Typedef_dup (body3);
diff --git a/TAO/tests/Bug_2234_Regression/Bug_2234_Regression.mpc b/TAO/tests/Bug_2234_Regression/Bug_2234_Regression.mpc
index 26c4972e1db..6ae49e52085 100644
--- a/TAO/tests/Bug_2234_Regression/Bug_2234_Regression.mpc
+++ b/TAO/tests/Bug_2234_Regression/Bug_2234_Regression.mpc
@@ -14,7 +14,6 @@ project (*client) : taoclient,anytypecode {
}
project (*server) : taoserver,pi_server {
- after += *client
IDL_Files {
Test.idl
}
diff --git a/TAO/tests/Bug_2234_Regression/client.cpp b/TAO/tests/Bug_2234_Regression/client.cpp
index 52180b29d5a..99812f42d3a 100644
--- a/TAO/tests/Bug_2234_Regression/client.cpp
+++ b/TAO/tests/Bug_2234_Regression/client.cpp
@@ -6,12 +6,15 @@
#include "TestC.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
int
-main(
+ACE_TMAIN(
int argc,
- char** argv)
+ ACE_TCHAR** argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
CORBA::Boolean testFailed= 0;
@@ -19,7 +22,7 @@ main(
ACE_TRY
{
CORBA::ORB_var
- orb= CORBA::ORB_init( argc, argv, 0 ACE_ENV_ARG_PARAMETER );
+ orb= CORBA::ORB_init( convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER );
ACE_TRY_CHECK;
CORBA::Object_var
object= orb->string_to_object( "file://server.ior" ACE_ENV_ARG_PARAMETER );
@@ -105,13 +108,13 @@ main(
rVS= foo->TestVarStruct( aVS.in(), bVS.out(), cVS.inout() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG( (LM_INFO, "a is %s, b is %s, c is %s, r is %s: ", aVS->val.in(), bVS->val.in(), cVS->val.in(), rVS->val.in()) );
- if ((0 != *aVS->val) && (0 != ACE_OS::strcmp(aVS->val, "1"))) {
+ if ((0 != *aVS->val) && (0 != ACE_OS::strcmp(aVS->val.in(), "1"))) {
ACE_DEBUG( (LM_ERROR, "a is wrong\n") ); testFailed= 1;}
- else if ((0 != *bVS->val) && (0 != ACE_OS::strcmp(bVS->val, "2"))) {
+ else if ((0 != *bVS->val) && (0 != ACE_OS::strcmp(bVS->val.in(), "2"))) {
ACE_DEBUG( (LM_ERROR, "b is wrong\n") ); testFailed= 1;}
- else if ((0 != *cVS->val) && (0 != ACE_OS::strcmp(cVS->val, "4"))) {
+ else if ((0 != *cVS->val) && (0 != ACE_OS::strcmp(cVS->val.in(), "4"))) {
ACE_DEBUG( (LM_ERROR, "c is wrong\n") ); testFailed= 1;}
- else if ((0 != *rVS->val) && (0 != ACE_OS::strcmp(rVS->val, "7"))) {
+ else if ((0 != *rVS->val) && (0 != ACE_OS::strcmp(rVS->val.in(), "7"))) {
ACE_DEBUG( (LM_ERROR, "r is wrong\n") ); testFailed= 1;}
else
ACE_DEBUG( (LM_INFO, "OK\n") );
@@ -264,22 +267,22 @@ main(
cB,
rB;
ACE_DEBUG( (LM_INFO, "a is ") );
- if ((aB= (aA>>= aL)))
+ if (aB= (aA>>= aL))
ACE_DEBUG( (LM_INFO, "%d", aL) );
else
ACE_DEBUG( (LM_INFO, "?") );
ACE_DEBUG( (LM_INFO, ", b is ") );
- if ((bB= (bA>>= bL)))
+ if (bB= (bA>>= bL))
ACE_DEBUG( (LM_INFO, "%d", bL) );
else
ACE_DEBUG( (LM_INFO, "?") );
ACE_DEBUG( (LM_INFO, ", c is ") );
- if ((cB= (cA>>= cL)))
+ if (cB= (cA>>= cL))
ACE_DEBUG( (LM_INFO, "%d", cL) );
else
ACE_DEBUG( (LM_INFO, "?") );
ACE_DEBUG( (LM_INFO, ", r is ") );
- if ((rB= (rA>>= rL)))
+ if (rB= (rA>>= rL))
ACE_DEBUG( (LM_INFO, "%d", rL) );
else
ACE_DEBUG( (LM_INFO, "?") );
diff --git a/TAO/tests/Bug_2234_Regression/run_test.pl b/TAO/tests/Bug_2234_Regression/run_test.pl
index dcdfcbce7e8..41e141ec41d 100755
--- a/TAO/tests/Bug_2234_Regression/run_test.pl
+++ b/TAO/tests/Bug_2234_Regression/run_test.pl
@@ -14,22 +14,13 @@ $server_ior_file= PerlACE::LocalFile( "server.ior" );
unlink $server_ior_file;
# The client and server processes
-if (PerlACE::is_vxworks_test()) {
- $SERVER= new PerlACE::ProcessVX( PerlACE::LocalFile( "server" ) );
-}
-else {
- $SERVER= new PerlACE::Process( PerlACE::LocalFile( "server" ) );
-}
+$SERVER= new PerlACE::Process( PerlACE::LocalFile( "server" ) );
$CLIENT= new PerlACE::Process( PerlACE::LocalFile( "client" ) );
# Fire up the server
-$sv = $SERVER->Spawn();
+$SERVER->Spawn();
-if ($sv != 0) {
- print STDERR "ERROR: server returned $sv\n";
- exit 1;
-}
# We can wait on the IOR file
if (PerlACE::waitforfile_timed( $server_ior_file, 10 ) == -1)
{
diff --git a/TAO/tests/Bug_2234_Regression/server.cpp b/TAO/tests/Bug_2234_Regression/server.cpp
index deb065f016f..24b0e949b42 100644
--- a/TAO/tests/Bug_2234_Regression/server.cpp
+++ b/TAO/tests/Bug_2234_Regression/server.cpp
@@ -18,6 +18,7 @@
#include "tao/PI_Server/PI_Server.h"
#include "tao/ORBInitializer_Registry.h"
#include "tao/PortableServer/Root_POA.h"
+#include "ace/Argv_Type_Converter.h"
CORBA::ORB_ptr orb;
@@ -676,8 +677,10 @@ private:
AnInterceptor *interceptor_;
};
-int main( int argc, char *argv[] )
+int ACE_TMAIN( int argc, ACE_TCHAR *argv[] )
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
ACE_DEBUG( (LM_INFO, "Server start\n") );
@@ -690,7 +693,7 @@ int main( int argc, char *argv[] )
initialiser= initialiser_p;
PortableInterceptor::register_orb_initializer( initialiser.in() );
- orb= CORBA::ORB_init( argc, argv, 0 ACE_ENV_ARG_PARAMETER );
+ orb= CORBA::ORB_init( convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER );
ACE_TRY_CHECK;
CORBA::Object_var
Object = orb->resolve_initial_references( "RootPOA" ACE_ENV_ARG_PARAMETER );
diff --git a/TAO/tests/Bug_2289_Regression/Bug_2289_Regression.mpc b/TAO/tests/Bug_2289_Regression/Bug_2289_Regression.mpc
deleted file mode 100644
index bf8946a0384..00000000000
--- a/TAO/tests/Bug_2289_Regression/Bug_2289_Regression.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, iortable {
- exename = server
- idlflags += -Gp -Gd -Sa -St
- Source_Files {
- server.cpp
- MyInterfaceImpl.cpp
- }
-}
-
-project(*Client): taoserver, iortable {
- exename = client
- idlflags += -Gp -Gd -Sa -St
- after += *Server
- Source_Files {
- client.cpp
- MyInterfaceImpl.cpp
- }
-}
diff --git a/TAO/tests/Bug_2289_Regression/MyInterfaceImpl.cpp b/TAO/tests/Bug_2289_Regression/MyInterfaceImpl.cpp
deleted file mode 100644
index da5c2832189..00000000000
--- a/TAO/tests/Bug_2289_Regression/MyInterfaceImpl.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// $Id$
-//
-
-#include "MyInterfaceImpl.h"
-
-const char*
-MyInterfaceImpl::my_string = "a string";
-
-MyInterfaceImpl::MyInterfaceImpl (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-CORBA::Boolean
-MyInterfaceImpl::myMethod (const char* mystring ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return mystring == my_string;
-}
-
diff --git a/TAO/tests/Bug_2289_Regression/MyInterfaceImpl.h b/TAO/tests/Bug_2289_Regression/MyInterfaceImpl.h
deleted file mode 100644
index a7f76261396..00000000000
--- a/TAO/tests/Bug_2289_Regression/MyInterfaceImpl.h
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// $Id$
-//
-
-#include "TestS.h"
-
-class MyInterfaceImpl
- : public virtual POA_MyInterface
-{
- public:
- MyInterfaceImpl (CORBA::ORB_ptr orb);
-
- static const char* my_string;
-
- // = The skeleton methods
- virtual CORBA::Boolean myMethod (const char* stringParam ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- CORBA::ORB_var orb_;
-};
diff --git a/TAO/tests/Bug_2289_Regression/README b/TAO/tests/Bug_2289_Regression/README
deleted file mode 100644
index 0e4df56f029..00000000000
--- a/TAO/tests/Bug_2289_Regression/README
+++ /dev/null
@@ -1,26 +0,0 @@
-// $Id$
-
-This test checks that collocation optimisation takes effect after a location forward is received to an in process servant.
-
-It comprises:
-1/ A trivial IDL interface (Test.idl) with a single method that passes a string and returns a boolean, this interface is implemented with a servant (MyInterfaceImpl) that returns true if the address of the string passed matches the address of a static string defined as a public member of the servant.
-2/ A server which initialises a listener and binds a file:// type IOR for the client's servant into its IORTable against a name.
-4/ A client which initialises an in process MyInterfaceImpl servant.
-
-The client uses a corbaloc based on the server's endpoint and the name that its (the client's) reference is bound against in the server IORTable.
-
-Narrowing this results in a remote is_a which causes the server ORB to send a locate_forward to the client directing it to the 'in process' servant.
-
-If the fix is present the client ORB will pass the string by reference and the addresses will be equal in the servant - if the fix is not present it will attempt to marshal and demarshal the string, the addresses will differ, causing the test to fail.
-
-__Regression Output__
-
-[sm@beatrice Bug_2289_Regression]$ ./run_test.pl
-Test failed
-ERROR: Bug #TAO135 Regression failed. Non zero result from client.
-
-__Successful Output__
-
-[sm@beatrice Bug_2289_Regression]$ ./run_test.pl
-Test succeeded
-INFO: /home/sm/doc_cvs/ACE_wrappers/TAO/tests/Bug_2289_Regression/server being killed.
diff --git a/TAO/tests/Bug_2289_Regression/Test.idl b/TAO/tests/Bug_2289_Regression/Test.idl
deleted file mode 100644
index 0a599c8fbd3..00000000000
--- a/TAO/tests/Bug_2289_Regression/Test.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-typedef string MyString;
-
-interface MyInterface
-{
- boolean myMethod (in MyString stringParam);
-};
diff --git a/TAO/tests/Bug_2289_Regression/client.cpp b/TAO/tests/Bug_2289_Regression/client.cpp
deleted file mode 100644
index cb82452c574..00000000000
--- a/TAO/tests/Bug_2289_Regression/client.cpp
+++ /dev/null
@@ -1,145 +0,0 @@
-//
-// $Id$
-//
-#include "TestS.h"
-#include "MyInterfaceImpl.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-
-const char *server_ior = "";
-
-const char *ior_output_file = "client.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- server_ior = get_opts.opt_arg ();
- break;
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- MyInterfaceImpl *test_impl;
- ACE_NEW_RETURN (test_impl,
- MyInterfaceImpl (orb.in ()),
- 1);
-
- PortableServer::ServantBase_var owner_transfer(test_impl);
-
- MyInterface_var test_ref =
- test_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (test_ref.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file != 0)
- {
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK
-
- CORBA::Object_var tmp =
- orb->string_to_object(server_ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- MyInterface_var server =
- MyInterface::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil server reference <%s>\n",
- ior.in()),
- 1);
- }
-
-
- CORBA::Boolean temp = server->myMethod (MyInterfaceImpl::my_string ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (temp)
- {
- ACE_DEBUG ((LM_DEBUG, "Test succeeded\n"));
- }
- else
- {
- ACE_DEBUG ((LM_ERROR, "Test failed\n"));
- result = 1;
- }
-
- //hello->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- //ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return result;
-}
diff --git a/TAO/tests/Bug_2289_Regression/run_test.pl b/TAO/tests/Bug_2289_Regression/run_test.pl
deleted file mode 100755
index f25f0ae4f60..00000000000
--- a/TAO/tests/Bug_2289_Regression/run_test.pl
+++ /dev/null
@@ -1,60 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-# The server IOR file
-$server_ior_file = PerlACE::LocalFile ("server.ior");
-$client_ior_file = PerlACE::LocalFile ("client.ior");
-unlink $server_ior_file;
-unlink $client_ior_file;
-
-# The client and server processes
-if (PerlACE::is_vxworks_test()) {
- $SERVER = new PerlACE::ProcessVX(PerlACE::LocalFile("server"));
-}
-else {
- $SERVER = new PerlACE::Process(PerlACE::LocalFile("server"));
-}
-$CLIENT = new PerlACE::Process(PerlACE::LocalFile("client"));
-
-# We want the server to run on a fixed port
-$port = PerlACE::uniqueid () + 10001; # This can't be 10000 for Chorus 4.0
-
-$SERVER->Arguments("-ORBEndpoint iiop://:$port -ORBDottedDecimalAddresses 1");
-
-# Fire up the server
-$sv = $SERVER->Spawn();
-
-if ($sv != 0) {
- print STDERR "ERROR: server returned $sv\n";
- exit 1;
-}
-
-# We can wait on the IOR file
-if (PerlACE::waitforfile_timed ($server_ior_file, 10) == -1)
-{
- print STDERR "ERROR: cannot find $server_ior_file\n";
- $SERVER->Kill();
- exit 1;
-}
-
-$CLIENT->Arguments("-k corbaloc::127.0.0.1:$port/collocated_ior_bound_in_remote_iortable -ORBDottedDecimalAddresses 1 -ORBCollocationStrategy thru_poa");
-if ($CLIENT->SpawnWaitKill (60) != 0)
-{
- print STDERR "ERROR: Bug 2289 Regression failed. Non zero result from client.\n";
- $SERVER->Kill();
- exit 1;
-}
-
-# Clean up and return
-$SERVER->TerminateWaitKill (5);
-unlink $server_ior_file;
-unlink $client_ior_file;
-exit 0;
diff --git a/TAO/tests/Bug_2289_Regression/server.cpp b/TAO/tests/Bug_2289_Regression/server.cpp
deleted file mode 100644
index 47f749d99bd..00000000000
--- a/TAO/tests/Bug_2289_Regression/server.cpp
+++ /dev/null
@@ -1,142 +0,0 @@
-//
-// $Id$
-//
-
-#include "MyInterfaceImpl.h"
-#include "TestS.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "tao/IORTable/IORTable.h"
-
-ACE_RCSID (Hello,
- server,
- "server.cpp,v 1.6 2003/11/01 11:15:11 dhinton Exp")
-
-const char *ior_output_file = "server.ior";
-
-const char *client_ior = "file://client.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- client_ior = get_opts.opt_arg ();
- break;
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- MyInterfaceImpl *test_impl;
- ACE_NEW_RETURN (test_impl,
- MyInterfaceImpl (orb.in ()),
- 1);
-
- PortableServer::ServantBase_var owner_transfer(test_impl);
-
- MyInterface_var test_ref =
- test_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (test_ref.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file != 0)
- {
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var table_object =
- orb->resolve_initial_references ("IORTable"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- IORTable::Table_var adapter =
- IORTable::Table::_narrow (table_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (adapter.in ()))
- {
- ACE_ERROR ((LM_ERROR, "Nil IORTable\n"));
- }
- else
- {
- adapter->bind ("collocated_ior_bound_in_remote_iortable", client_ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2319_Regression/Bug_2319_Regression.mpc b/TAO/tests/Bug_2319_Regression/Bug_2319_Regression.mpc
deleted file mode 100644
index f362da7ae93..00000000000
--- a/TAO/tests/Bug_2319_Regression/Bug_2319_Regression.mpc
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*server) : taoserver, amh {
- source_files {
- server.cpp
- }
-}
diff --git a/TAO/tests/Bug_2319_Regression/Test.idl b/TAO/tests/Bug_2319_Regression/Test.idl
deleted file mode 100644
index ef304de303a..00000000000
--- a/TAO/tests/Bug_2319_Regression/Test.idl
+++ /dev/null
@@ -1,17 +0,0 @@
-//
-// $Id$
-//
-
-/// A simple module to avoid namespace pollution
-module Test
-{
-
- /// Use a timestamp to measure the roundtrip delay
- typedef unsigned long long Timestamp;
-
- /// Measure roundtrip Delay
- interface Roundtrip
- {
- oneway void test_method (in Timestamp send_time);
- };
-};
diff --git a/TAO/tests/Bug_2319_Regression/run_test.pl b/TAO/tests/Bug_2319_Regression/run_test.pl
deleted file mode 100755
index 1c118935b70..00000000000
--- a/TAO/tests/Bug_2319_Regression/run_test.pl
+++ /dev/null
@@ -1,24 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-# This is a Perl script that tests AMH exceptions
-
-use lib "../../../bin";
-use PerlACE::Run_Test;
-
-$AMH = new PerlACE::Process ("server", "");
-
-# Run the AMH server.
-$AMH->Spawn ();
-
-$amhserver= $AMH->WaitKill (60);
-if ($amhserver != 0) {
- print STDERR "ERROR: AMH Server returned $amhserver\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/TAO/tests/Bug_2319_Regression/server.cpp b/TAO/tests/Bug_2319_Regression/server.cpp
deleted file mode 100644
index fba7b7ed01c..00000000000
--- a/TAO/tests/Bug_2319_Regression/server.cpp
+++ /dev/null
@@ -1,367 +0,0 @@
-
-// $Id$
-
-#include "ace/Thread_Manager.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_unistd.h"
-#include "ace/Get_Opt.h"
-
-#include "TestS.h"
-#include "TestC.h"
-
-int num_calls = 10; // total calls client is going to make
-const int sleep_time = 1; // sleep for 1 sec on each call
-
-// This should equal num_calls within 'sleep * num_calls' seconds
-int calls_received = 0;
-
-const char *ior = "file://test.ior";
-const char *ior_file = "test.ior";
-
-
-
-/***************************/
-/*** Servant Declaration ***/
-/***************************/
-
-class ST_AMH_Servant
- : public virtual POA_Test::AMH_Roundtrip
- {
- public:
-
- ST_AMH_Servant (CORBA::ORB_ptr orb);
-
- void test_method (Test::AMH_RoundtripResponseHandler_ptr _tao_rh,
- Test::Timestamp send_time
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- protected:
- CORBA::ORB_ptr orb_;
- };
-
-
-
-/****************************/
-/**** Server Declaration ****/
-/****************************/
-
-/**
- Class that performs all 'dirty' initialisation work that is common to
- all the AMH servers and 'hides' all the common ORB functions.
- */
-class ST_AMH_Server
- {
- public:
- ST_AMH_Server (int *argc, char **argv);
- virtual ~ST_AMH_Server ();
-
- /// ORB inititalisation stuff
- int start_orb_and_poa (const CORBA::ORB_var &_orb);
-
- /// register the servant with the poa
- virtual void register_servant (ST_AMH_Servant *servant);
-
- /// orb-perform_work () abstraction
- virtual void run_event_loop ();
-
- public:
-
- protected:
- int *argc_;
- char **argv_;
- char *ior_output_file_;
- CORBA::ORB_ptr orb_;
- PortableServer::POA_var root_poa_;
-
- private:
- /// Write servant IOR to file specified with the '-o' option
- int write_ior_to_file (CORBA::String_var ior);
- };
-
-
-
-// ------------------------------------------------------------------------
-// ------------------------------------------------------------------------
-// ------------------------------------------------------------------------
-
-
-
-// ------------------------------------------------------------------------
-//
-int parse_args (int argc, char *argv[])
-{
-ACE_Get_Opt get_opts (argc, argv, "n:");
-int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'n':
- num_calls = ACE_OS::atoi (get_opts.opt_arg ());
- break;
- default:
- break;
- }
- return 0;
-}
-
-
-
-
-/***************************/
-/*** Servant Definition ***/
-/***************************/
-
-// ------------------------------------------------------------------------
-//
-ST_AMH_Servant::ST_AMH_Servant (CORBA::ORB_ptr orb)
- : orb_(CORBA::ORB::_duplicate(orb))
-{
-}
-
-// ------------------------------------------------------------------------
-//
-void
-ST_AMH_Servant::test_method (Test::AMH_RoundtripResponseHandler_ptr _tao_rh,
- Test::Timestamp send_time
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- printf("Recieved Timestamp # %d \n", calls_received);
- ACE_OS::sleep(1);
- calls_received++;
-
- ACE_UNUSED_ARG (send_time);
- ACE_UNUSED_ARG (_tao_rh);
-
- // When _tao_rh destructor is called, it shouldn't send anything to
- // the client as well
-}
-
-
-
-
-
-/*** Server Declaration ***/
-
-// ------------------------------------------------------------------------
-//
-ST_AMH_Server::ST_AMH_Server (int* argc, char **argv)
- : argc_ (argc), argv_ (argv)
-{
- this->ior_output_file_ = const_cast<char*>(ior_file);
-}
-
-// ------------------------------------------------------------------------
-//
-ST_AMH_Server::~ST_AMH_Server ()
-{
- ACE_TRY_NEW_ENV
- {
- this->root_poa_->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- }
- ACE_ENDTRY;
-
-}
-
-// ------------------------------------------------------------------------
-//
-int ST_AMH_Server::start_orb_and_poa (const CORBA::ORB_var &_orb)
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_ = CORBA::ORB::_duplicate(_orb.ptr());
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- this->orb_->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- this->root_poa_ = PortableServer::POA::_narrow (poa_object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- this->root_poa_->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-// ------------------------------------------------------------------------
-//
-void ST_AMH_Server::register_servant (ST_AMH_Servant *servant)
-{
- ACE_TRY_NEW_ENV
- {
- Test::Roundtrip_var roundtrip = servant->_this(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var iorstr = this->orb_->object_to_string(roundtrip.ptr());
- ACE_TRY_CHECK;
-
- (void) this->write_ior_to_file(iorstr);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- }
- ACE_ENDTRY;
-}
-
-// ------------------------------------------------------------------------
-//
-void ST_AMH_Server::run_event_loop ()
-{
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- ACE_Time_Value period (1, 0);
- while (1)
- {
- this->orb_->perform_work (&period);
- ACE_TRY_CHECK;
-
- // when all calls from client have been recieved, exit
- if (calls_received == num_calls )
- return;
- }
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {}
- ACE_ENDTRY;
-}
-
-// ------------------------------------------------------------------------
-//
-int
-ST_AMH_Server::write_ior_to_file (CORBA::String_var iorstr)
-{
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ST_AMH_Server::ior_output_file_, "w");
- if (output_file == 0)
- {
- ACE_ERROR ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ST_AMH_Server::ior_output_file_));
- return -1;
- }
-
- ACE_OS::fprintf (output_file, "%s", iorstr.ptr());
- ACE_OS::fclose (output_file);
- return 0;
-}
-
-
-// ------------------------------------------------------------------------
-//
-static ACE_THR_FUNC_RETURN start_server(void* _arg)
-{
-ST_AMH_Server *amh_server = static_cast<ST_AMH_Server*>(_arg);
- amh_server->run_event_loop();
- return 0;
-}
-
-// ------------------------------------------------------------------------
-//
-static ACE_THR_FUNC_RETURN start_client(void* _arg)
-{
-Test::Roundtrip_var roundtrip(static_cast<Test::Roundtrip_ptr>(_arg));
-
- // Do a couple of calls on the server. If the sever is trying to
- // do something stupid like sending an exception to us, then it
- // won't be able to handle more than 1 request from us.
-Test::Timestamp time = 10;
-
- for (int i = 0; i < num_calls; i++)
- {
- roundtrip->test_method(time);
- ACE_DEBUG ((LM_DEBUG, "Sent call # %d \n", i));
- ACE_TRY_CHECK;
- }
-
- return 0;
-}
-
-
-// ------------------------------------------------------------------------
-//
-int main (int argc, char *argv[])
-{
- if (parse_args (argc, argv) != 0)
- return 1;
-
-ST_AMH_Server amh_server (&argc, argv);
-CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "");
-
- ACE_TRY_CHECK;
-
- amh_server.start_orb_and_poa(orb);
-
-ST_AMH_Servant servant(orb.in());
-
- amh_server.register_servant(&servant);
-
-
-
-CORBA::Object_var object = orb->string_to_object(ior);
- ACE_TRY_CHECK;
-Test::Roundtrip_var roundtrip = Test::Roundtrip::_narrow(object.ptr());
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil(roundtrip.in()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Nil Test::Roundtrip reference <%s>\n",
- ior),
- 1);
- }
-
-
-ACE_thread_t serverThr;
-ACE_thread_t clientThr;
-
- ACE_Thread_Manager::instance()->spawn(start_server,
- (void*)&amh_server,
- THR_NEW_LWP | THR_JOINABLE,
- &serverThr
- );
-
- ACE_Thread_Manager::instance()->spawn(start_client,
- (void*)roundtrip.ptr(),
- THR_NEW_LWP | THR_JOINABLE,
- &clientThr
- );
-
- ACE_Thread_Manager::instance()->join(clientThr);
- printf("End client\n");
- ACE_Thread_Manager::instance()->join(serverThr);
- printf("End server\n");
-
- orb->destroy();
- ACE_TRY_CHECK;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2328_Regression/Bug_2328_Regression.mpc b/TAO/tests/Bug_2328_Regression/Bug_2328_Regression.mpc
deleted file mode 100644
index 5fce9b69306..00000000000
--- a/TAO/tests/Bug_2328_Regression/Bug_2328_Regression.mpc
+++ /dev/null
@@ -1,19 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, codeset {
- idlflags += -Sa -St
- Source_Files {
- Hello.cpp
- server.cpp
- }
-}
-
-project(*Client): taoclient {
- after += *Server
- Source_Files {
- TestC.cpp
- client.cpp
- }
-}
-
diff --git a/TAO/tests/Bug_2328_Regression/Hello.cpp b/TAO/tests/Bug_2328_Regression/Hello.cpp
deleted file mode 100644
index ac4c1c6fe85..00000000000
--- a/TAO/tests/Bug_2328_Regression/Hello.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// $Id$
-//
-#include "Hello.h"
-
-ACE_RCSID(Hello, Hello, "$Id$")
-
-Hello::Hello (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-char *
-Hello::get_string (const char * A, const char * B, const char * C)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_DEBUG ((LM_DEBUG, "Received: <%s>, <%s>, <%s>\n", A, B, C));
- return CORBA::string_dup ("Hello there!");
-}
-
-void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/tests/Bug_2328_Regression/Hello.h b/TAO/tests/Bug_2328_Regression/Hello.h
deleted file mode 100644
index 4ef97cd1b6c..00000000000
--- a/TAO/tests/Bug_2328_Regression/Hello.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef HELLO_H
-#define HELLO_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-/// Implement the Test::Hello interface
-class Hello
- : public virtual POA_Test::Hello
-{
-public:
- /// Constructor
- Hello (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual char * get_string (const char * A, const char * B, const char * C ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/tests/Bug_2328_Regression/README b/TAO/tests/Bug_2328_Regression/README
deleted file mode 100644
index 53f14a09bed..00000000000
--- a/TAO/tests/Bug_2328_Regression/README
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
-
-@page Bug_2328_Regression README File
-
-This test sends 3 strings to the server. The server is using the codeset
-library, the client is configured that it doesn't use it. This gives a marshal
-exception in TAO 1.4.7 because it uses UTF8 Latin1 to demarshal the strings
-which then causes things to go wrong in the stream.
-
- To run the test use the run_test.pl script:
-
-$ ./run_test.pl
-
- the script returns 0 if the test was successful.
-
-*/
diff --git a/TAO/tests/Bug_2328_Regression/Test.idl b/TAO/tests/Bug_2328_Regression/Test.idl
deleted file mode 100644
index 528f0c5485c..00000000000
--- a/TAO/tests/Bug_2328_Regression/Test.idl
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// $Id$
-//
-
-/// Put the interfaces in a module, to avoid global namespace pollution
-module Test
-{
- /// A very simple interface
- interface Hello
- {
- /// Return a simple string
- string get_string (in string A, in string B, in string C);
-
- /// A method to shutdown the ORB
- /**
- * This method is used to simplify the test shutdown process
- */
- oneway void shutdown ();
- };
-};
diff --git a/TAO/tests/Bug_2328_Regression/client.cpp b/TAO/tests/Bug_2328_Regression/client.cpp
deleted file mode 100644
index d39919e7d85..00000000000
--- a/TAO/tests/Bug_2328_Regression/client.cpp
+++ /dev/null
@@ -1,89 +0,0 @@
-// $Id$
-
-#include "TestC.h"
-#include "ace/Get_Opt.h"
-
-ACE_RCSID(Hello, client, "$Id$")
-
-const char *ior = "file://test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_var hello =
- Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (hello.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil Test::Hello reference <%s>\n",
- ior),
- 1);
- }
-
- CORBA::String_var A = CORBA::string_dup ("DKWC");
- CORBA::String_var B = CORBA::string_dup ("kwc");
- CORBA::String_var C = CORBA::string_dup ("MV-files");
- CORBA::String_var the_string =
- hello->get_string (A.in (), B.in (), C.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - string returned <%s>\n",
- the_string.in ()));
-
- hello->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2328_Regression/run_test.pl b/TAO/tests/Bug_2328_Regression/run_test.pl
deleted file mode 100755
index f5831bdb8e9..00000000000
--- a/TAO/tests/Bug_2328_Regression/run_test.pl
+++ /dev/null
@@ -1,49 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile");
-}
-$CL = new PerlACE::Process ("client", " -k file://$iorfile -ORBNegotiateCodesets 0");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/Bug_2328_Regression/server.cpp b/TAO/tests/Bug_2328_Regression/server.cpp
deleted file mode 100644
index 69fe7692d76..00000000000
--- a/TAO/tests/Bug_2328_Regression/server.cpp
+++ /dev/null
@@ -1,116 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "tao/Codeset/Codeset.h"
-
-ACE_RCSID (Hello,
- server,
- "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(hello_impl);
-
- Test::Hello_var hello =
- hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2345_Regression/Bug_2345_Regression.mpc b/TAO/tests/Bug_2345_Regression/Bug_2345_Regression.mpc
deleted file mode 100644
index 7223fb9069c..00000000000
--- a/TAO/tests/Bug_2345_Regression/Bug_2345_Regression.mpc
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server) : taoserver, imr_client, exceptions {
- Source_Files {
- server.cpp
- }
-}
diff --git a/TAO/tests/Bug_2345_Regression/run_test.pl b/TAO/tests/Bug_2345_Regression/run_test.pl
deleted file mode 100755
index fa8e977afd2..00000000000
--- a/TAO/tests/Bug_2345_Regression/run_test.pl
+++ /dev/null
@@ -1,22 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$SV = new PerlACE::Process ("server", "-ORBUseIMR 1 -ORBDefaultInitRef corbaloc:iiop:localhost:12345");
-
-$server = $SV->SpawnWaitKill (30);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/TAO/tests/Bug_2345_Regression/server.cpp b/TAO/tests/Bug_2345_Regression/server.cpp
deleted file mode 100644
index f134a745d3b..00000000000
--- a/TAO/tests/Bug_2345_Regression/server.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// $Id$
-
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/ImR_Client/ImR_Client.h"
-
-int main(int argc, char* argv[])
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB::_nil();
-
- // Initialize the ORB.
- //
- orb = CORBA::ORB_init(argc, argv);
- CORBA::Object_var poa_obj = orb->resolve_initial_references("RootPOA");
- PortableServer::POA_var root_poa = PortableServer::POA::_narrow(poa_obj.in ());
-
- // Create a PERSISTENT POA
- //
- // Create the policy list
- CORBA::PolicyList policies(2);
- policies.length(2);
- policies[0] = root_poa->create_lifespan_policy(PortableServer::PERSISTENT);
- policies[1] = root_poa->create_id_assignment_policy(PortableServer::USER_ID);
-
- // create the poa.
- // for ORBUseIMR=1 -ORBDefaultInitRef corbaloc:iiop:<HOST>:<PORT>
- // this will cause an access violation if no IMR server is found.
- // The access violation WILL NOT HAPPEN if a POAManager is created and
- // given as a parameter to create_POA (instead of a nil POAManager)
- PortableServer::POA_var persistent_poa =
- root_poa->create_POA("myPoa", PortableServer::POAManager::_nil(), policies);
-
- return 0;
- }
- catch (CORBA::Exception&)
- {
- // ... normally print an error here
- }
- return 0;
-}
diff --git a/TAO/tests/Bug_2349_Regression/Bug_2349_Regression.mpc b/TAO/tests/Bug_2349_Regression/Bug_2349_Regression.mpc
deleted file mode 100644
index 3d5cf5b5deb..00000000000
--- a/TAO/tests/Bug_2349_Regression/Bug_2349_Regression.mpc
+++ /dev/null
@@ -1,17 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*server): taoserver, exceptions {
- idlflags += -Sa -St
- Source_Files {
- server.cpp
- }
-}
-
-project(*client): taoclient, exceptions {
- after += *Server
- Source_Files {
- fooC.cpp
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_2349_Regression/client.cpp b/TAO/tests/Bug_2349_Regression/client.cpp
deleted file mode 100644
index c2c7cbc30f5..00000000000
--- a/TAO/tests/Bug_2349_Regression/client.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// $Id$
-
-#include "fooC.h"
-#include "ace/Log_Msg.h"
-
-const char* ior = "file://server.ior";
-
-int
-main (int argc, char** argv)
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- CORBA::Object_var tmp = orb->string_to_object(ior);
-
- foo_var server = foo::_narrow(tmp.in ());
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil foo reference <%s>\n",
- ior),
- 1);
- }
-
- server->shutdown ();
-
- orb->destroy ();
- }
- catch (const CORBA::Exception& ex)
- {
- ex._tao_print_exception ("CORBA::Exception");
- }
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2349_Regression/foo.idl b/TAO/tests/Bug_2349_Regression/foo.idl
deleted file mode 100644
index e954afbb6ea..00000000000
--- a/TAO/tests/Bug_2349_Regression/foo.idl
+++ /dev/null
@@ -1,6 +0,0 @@
-// $Id$
-
-interface foo
-{
- oneway void shutdown ();
-};
diff --git a/TAO/tests/Bug_2349_Regression/run_test.pl b/TAO/tests/Bug_2349_Regression/run_test.pl
deleted file mode 100755
index 356e2015525..00000000000
--- a/TAO/tests/Bug_2349_Regression/run_test.pl
+++ /dev/null
@@ -1,49 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib "$ENV{ACE_ROOT}/bin";
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server");
-}
-else {
- $SV = new PerlACE::Process ("server");
-}
-$CL = new PerlACE::Process ("client");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (10);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/Bug_2349_Regression/server.cpp b/TAO/tests/Bug_2349_Regression/server.cpp
deleted file mode 100644
index 670a5a73f2d..00000000000
--- a/TAO/tests/Bug_2349_Regression/server.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-// $Id$
-
-#include "fooS.h"
-#include "ace/OS_NS_stdio.h"
-
-const char* ior_output_file = "server.ior";
-
-class foo_i: public POA_foo
-{
-public:
- foo_i (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb)) {
- }
-
- void shutdown ()
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- CORBA::ORB_var orb_;
-};
-
-void
-foo_i::shutdown ()
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // This causes an OBJECT_NOT_EXIST exception, but it should
- // be a BAD_INV_ORDER exception.
- this->orb_->destroy ();
-
- // This works as it should.
- //this->orb_->shutdown ();
-}
-
-
-int
-main (int argc, char** argv)
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ());
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager ();
-
- foo_i* server_impl = 0;
- ACE_NEW_RETURN (server_impl,
- foo_i (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(server_impl);
-
- foo_var server = server_impl->_this ();
-
- CORBA::String_var ior =
- orb->object_to_string (server.in ());
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate ();
-
- orb->run ();
-
- root_poa->destroy (1, 1);
- orb->destroy ();
- }
- catch (const CORBA::Exception& ex)
- {
- ex._tao_print_exception ("CORBA::Exception");
- }
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2375_Regression/Bug_2375_Regression.mpc b/TAO/tests/Bug_2375_Regression/Bug_2375_Regression.mpc
deleted file mode 100755
index d428b0fce50..00000000000
--- a/TAO/tests/Bug_2375_Regression/Bug_2375_Regression.mpc
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-project (*Test) : taoserver, valuetype {
- exename = test
- Source_Files {
- test.cpp
- }
-}
diff --git a/TAO/tests/Bug_2375_Regression/README b/TAO/tests/Bug_2375_Regression/README
deleted file mode 100755
index 97b642530a1..00000000000
--- a/TAO/tests/Bug_2375_Regression/README
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-
-A build only test to check that the c++ source produced from an IDL file with a valuetype factory in it compiles OK.
-
-If it builds it's passed.
diff --git a/TAO/tests/Bug_2375_Regression/test.cpp b/TAO/tests/Bug_2375_Regression/test.cpp
deleted file mode 100755
index 2a2d57db0e7..00000000000
--- a/TAO/tests/Bug_2375_Regression/test.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-#include "testC.h"
-class MyTestValuetypeFactory : public TestValuetype_init {
-public:
- virtual TestValuetype* create (::CORBA::Boolean, ::CORBA::Short) {return 0;};
- virtual TAO_OBV_CREATE_RETURN_TYPE (TestValuetype) create_for_unmarshal (void) {return 0;};
-};
-int main (int , char *[]) {
- MyTestValuetypeFactory myFactory;
- return 0;
-}
diff --git a/TAO/tests/Bug_2375_Regression/test.idl b/TAO/tests/Bug_2375_Regression/test.idl
deleted file mode 100755
index a6ee7413825..00000000000
--- a/TAO/tests/Bug_2375_Regression/test.idl
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-valuetype TestValuetype {
- factory create(in boolean b, in short s);
-};
-
diff --git a/TAO/tests/Bug_2399_Regression/Bug_2399_Regression.mpc b/TAO/tests/Bug_2399_Regression/Bug_2399_Regression.mpc
deleted file mode 100644
index 6397809c1be..00000000000
--- a/TAO/tests/Bug_2399_Regression/Bug_2399_Regression.mpc
+++ /dev/null
@@ -1,11 +0,0 @@
-// -*- MPC -*-
-// $Id$
-project (*Test) : taoserver {
- exename = test
- idlflags += -t ./mytmp
-
- Source_Files {
- test.cpp
- }
-}
-
diff --git a/TAO/tests/Bug_2399_Regression/README b/TAO/tests/Bug_2399_Regression/README
deleted file mode 100644
index a4c048250b6..00000000000
--- a/TAO/tests/Bug_2399_Regression/README
+++ /dev/null
@@ -1,8 +0,0 @@
-# $Id$
-
-This is a build only test. A failure in the IDL compilation will probably indicate a regression.
-
-The IDL is compiled with a temporary file location specified using the -t parameter. The location is ./mytmp/.
-
-The file included.idl in ./mytmp/. is uncompilable - the test is intended to prove that it is not getting included instead of the correct included.idl (the one in *this* directory).
-
diff --git a/TAO/tests/Bug_2399_Regression/included.idl b/TAO/tests/Bug_2399_Regression/included.idl
deleted file mode 100644
index ed8e9a102a1..00000000000
--- a/TAO/tests/Bug_2399_Regression/included.idl
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-
-interface Parent
-{
-};
diff --git a/TAO/tests/Bug_2399_Regression/mytmp/included.idl b/TAO/tests/Bug_2399_Regression/mytmp/included.idl
deleted file mode 100644
index df4a6fa7b06..00000000000
--- a/TAO/tests/Bug_2399_Regression/mytmp/included.idl
+++ /dev/null
@@ -1,3 +0,0 @@
-// $Id$
-
-This file should not be compiled at all.
diff --git a/TAO/tests/Bug_2399_Regression/test.cpp b/TAO/tests/Bug_2399_Regression/test.cpp
deleted file mode 100644
index 1b3f75330f2..00000000000
--- a/TAO/tests/Bug_2399_Regression/test.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// $Id$
-
-#include "testC.h"
-
-int
-main (int , char *[])
-{
- return 0;
-}
-
diff --git a/TAO/tests/Bug_2399_Regression/test.idl b/TAO/tests/Bug_2399_Regression/test.idl
deleted file mode 100644
index b0e1cbac672..00000000000
--- a/TAO/tests/Bug_2399_Regression/test.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-
-#include "included.idl"
-
-interface Child : Parent
-{
-};
diff --git a/TAO/tests/Bug_2417_Regression/Bug_2417_Regression.mpc b/TAO/tests/Bug_2417_Regression/Bug_2417_Regression.mpc
deleted file mode 100644
index 27d1cc5fd95..00000000000
--- a/TAO/tests/Bug_2417_Regression/Bug_2417_Regression.mpc
+++ /dev/null
@@ -1,19 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver, messaging, threads {
- Source_Files {
- publisher_impl.cpp
- server.cpp
- }
-}
-
-project(*Client): taoserver, threads {
- exename = client
- after += *Server
- Source_Files {
- subscriber_impl.cpp
- client.cpp
- }
-}
-
diff --git a/TAO/tests/Bug_2417_Regression/client.cpp b/TAO/tests/Bug_2417_Regression/client.cpp
deleted file mode 100644
index df96fb1565d..00000000000
--- a/TAO/tests/Bug_2417_Regression/client.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-// $Id$
-
-#include "subscriber_impl.h"
-#include "publisherC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Task.h"
-
-class ThreadPool : public ACE_Task_Base
-{
-public:
- ThreadPool (CORBA::ORB_ptr orb);
- virtual int svc (void);
-private:
- CORBA::ORB_var orb_;
-};
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "");
- CORBA::Object_var poa_object = orb->resolve_initial_references("RootPOA");
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) Unable to initialize the POA.\n"), 1);
-
- PortableServer::POA_var root_poa = PortableServer::POA::_narrow (poa_object.in ());
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager();
-
- Subscriber_impl subscriber(orb.in ());
- Subscriber_var subscriber_var = subscriber._this();
-
- CORBA::Object_var object = orb->string_to_object("file://ior.out");
- Publisher_var publisher = Publisher::_narrow(object.in());
-
- publisher->subscribe(subscriber_var.in());
-
- poa_manager->activate();
-
- ThreadPool pool (orb.in ());
- if (pool.activate(THR_NEW_LWP | THR_JOINABLE, 5) != 0)
- ACE_ERROR_RETURN ((LM_ERROR, "Cannot activate client threads\n"), 1);
-
- pool.thr_mgr ()->wait ();
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-// ****************************************************************
-
-ThreadPool::ThreadPool(CORBA::ORB_ptr orb)
-: orb_(CORBA::ORB::_duplicate (orb))
-{
-}
-
-int ThreadPool::svc (void)
-{
- try
- {
- this->orb_->run ();
- }
- catch (...)
- {
- }
- return 0;
-}
diff --git a/TAO/tests/Bug_2417_Regression/publisher.idl b/TAO/tests/Bug_2417_Regression/publisher.idl
deleted file mode 100644
index 51fb10a1e23..00000000000
--- a/TAO/tests/Bug_2417_Regression/publisher.idl
+++ /dev/null
@@ -1,10 +0,0 @@
-// $Id$
-
-#include "subscriber.idl"
-
-interface Publisher
-{
- void subscribe(in Subscriber _subscriber);
-
- oneway void shutdown ();
-};
diff --git a/TAO/tests/Bug_2417_Regression/publisher_impl.cpp b/TAO/tests/Bug_2417_Regression/publisher_impl.cpp
deleted file mode 100644
index e62ad292470..00000000000
--- a/TAO/tests/Bug_2417_Regression/publisher_impl.cpp
+++ /dev/null
@@ -1,165 +0,0 @@
-// $Id$
-
-#include "publisher_impl.h"
-#include "ace/OS_NS_sys_time.h"
-#include "ace/Task.h"
-#include "ace/Process_Mutex.h"
-#include "ace/OS_NS_unistd.h"
-#include <vector>
-
-using namespace std;
-
-struct _Subscriber
-{
- Subscriber_var subscriber;
- bool unsubscribed;
- unsigned int count;
-};
-
-class Publisher_impl::Worker : public ACE_Task_Base
-{
-public:
- Worker(Publisher_impl * _owner);
- ~Worker();
- void addSubscriber(Subscriber_ptr subscriber);
- virtual int svc (void);
- void terminate();
-private:
- bool terminated;
- vector<_Subscriber> subscribers;
- ACE_Thread_Mutex mutex;
- Publisher_impl * owner;
-};
-
-Publisher_impl::Worker::Worker(Publisher_impl * _owner)
-: owner(_owner)
-{
- terminated = false;
-}
-
-Publisher_impl::Worker::~Worker()
-{
- terminated = true;
-}
-
-void Publisher_impl::Worker::addSubscriber(Subscriber_ptr subscriber)
-{
- ACE_Guard<ACE_Thread_Mutex> guard(mutex, 1, 1);
- subscribers.push_back(_Subscriber());
- _Subscriber& s = subscribers.back();
- s.unsubscribed = false;
- s.subscriber = Subscriber::_duplicate(subscriber);
- s.count = 0;
-}
-
-int Publisher_impl::Worker::svc (void)
-{
- double data = 0.0;
- bool doShutdown = false;
- unsigned long iteration = 0;
- ACE_Time_Value tv;
- tv.set(0.01);
- while (!terminated)
- {
- data += 0.01;
- ++iteration;
- {
- ACE_Guard<ACE_Thread_Mutex> guard(mutex, 1, 1);
- doShutdown = subscribers.size() > 0;
- for (vector<_Subscriber>::iterator iter = subscribers.begin(); iter != subscribers.end(); ++iter)
- {
- if (!iter->unsubscribed)
- {
- doShutdown = false;
- try
- {
- if (!CORBA::is_nil(iter->subscriber.in ()))
- iter->subscriber->onData(data);
- else
- iter->unsubscribed = true;
- ++iter->count;
- }
- catch (...)
- {
- iter->unsubscribed = true;
- }
- }
- }
- }
- if (iteration % 1000 == 0)
- {
- ACE_Guard<ACE_Thread_Mutex> guard(mutex, 1, 1);
- for (vector<_Subscriber>::iterator iter = subscribers.begin(); iter != subscribers.end(); ++iter)
- {
- if (!iter->unsubscribed)
- {
- try
- {
- iter->subscriber->isAlive();
- }
- catch (...)
- {
- iter->unsubscribed = true;
- }
- }
- }
- }
- if (doShutdown)
- owner->shutdown();
- else
- ACE_OS::sleep(tv);
- }
- return 0;
-}
-
-void Publisher_impl::Worker::terminate()
-{
- terminated = true;
-}
-
-Publisher_impl::Publisher_impl(CORBA::ORB_ptr orb)
-: orb_ (CORBA::ORB::_duplicate (orb))
-{
- worker = new Worker(this);
- worker->activate();
-}
-
-Publisher_impl::~Publisher_impl()
-{
- worker->terminate();
- worker->thr_mgr()->wait();
- delete worker;
-}
-
-void subscribe (
- ::Subscriber_ptr subscriber
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ));
-
-void
-Publisher_impl::subscribe(
- ::Subscriber_ptr subscriber
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ))
-{
- worker->addSubscriber(subscriber);
-}
-
-void
-Publisher_impl::shutdown (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ))
-{
- this->orb_->shutdown (0);
- worker->terminate();
-}
-
diff --git a/TAO/tests/Bug_2417_Regression/publisher_impl.h b/TAO/tests/Bug_2417_Regression/publisher_impl.h
deleted file mode 100644
index 43a62ae54ac..00000000000
--- a/TAO/tests/Bug_2417_Regression/publisher_impl.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// $Id$
-
-#ifndef EXPLOIT_PUBLISHER_IMPL_H
-#define EXPLOIT_PUBLISHER_IMPL_H
-
-#include "publisherS.h"
-#include "subscriberC.h"
-
-class Publisher_impl : public POA_Publisher
-{
- public:
- Publisher_impl(CORBA::ORB_ptr orb);
- ~Publisher_impl();
-
- virtual void subscribe (
- ::Subscriber_ptr subscriber
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ));
-
- virtual void shutdown (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ));
-
- private:
- CORBA::ORB_var orb_;
- class Worker;
- friend class Worker;
- Worker * worker;
-};
-
-#endif
diff --git a/TAO/tests/Bug_2417_Regression/run_test.pl b/TAO/tests/Bug_2417_Regression/run_test.pl
deleted file mode 100755
index 21cd1ff1714..00000000000
--- a/TAO/tests/Bug_2417_Regression/run_test.pl
+++ /dev/null
@@ -1,54 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("ior.out");
-unlink $iorfile;
-$status = 0;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "");
-}
-else {
- $SV = new PerlACE::Process ("server", "");
-}
-
-$CL1 = new PerlACE::Process ("client", "");
-
-$server = $SV->Spawn ();
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
-}
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$CL1->Spawn ();
-
-$client = $CL1->WaitKill (60);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-$server = $SV->WaitKill (35);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-unlink $iorfile;
-
-exit $status
diff --git a/TAO/tests/Bug_2417_Regression/server.cpp b/TAO/tests/Bug_2417_Regression/server.cpp
deleted file mode 100644
index 8a8ba4c1a2c..00000000000
--- a/TAO/tests/Bug_2417_Regression/server.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-// $Id$
-
-#include "publisher_impl.h"
-#include "tao/Messaging/Messaging.h"
-#include "tao/AnyTypeCode/Any.h"
-#include "ace/Get_Opt.h"
-#include "ace/Task.h"
-
-class ThreadPool : public ACE_Task_Base
-{
-public:
- ThreadPool (CORBA::ORB_ptr orb);
- virtual int svc (void);
-private:
- CORBA::ORB_var orb_;
-};
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "");
- CORBA::Object_var poa_object = orb->resolve_initial_references("RootPOA");
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) Unable to initialize the POA.\n"), 1);
-
- PortableServer::POA_var root_poa = PortableServer::POA::_narrow (poa_object.in ());
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager();
-
- Publisher_impl publisher(orb.in ());
- Publisher_var publisher_var = publisher._this();
-
- CORBA::String_var ior = orb->object_to_string(publisher_var.in());
- ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in()));
-
- // output the ior
- FILE *output_file= ACE_OS::fopen ("ior.out", "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output file for writing IOR: ior.out"), 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate();
-
- const CORBA::Object_var pmobj ( orb->resolve_initial_references( "ORBPolicyManager" ) );
- CORBA::PolicyManager_var policy_manager = CORBA::PolicyManager::_narrow( pmobj.in() );
-
- CORBA::Any orb_level;
- orb_level <<= Messaging::SYNC_NONE;
- CORBA::PolicyList policy_list;
- policy_list.length(1);
- policy_list[0] = orb->create_policy(Messaging::SYNC_SCOPE_POLICY_TYPE, orb_level);
- policy_manager->set_policy_overrides(policy_list, CORBA::SET_OVERRIDE);
-
- ThreadPool pool (orb.in ());
- if (pool.activate(THR_NEW_LWP | THR_JOINABLE, 5) != 0)
- ACE_ERROR_RETURN ((LM_ERROR, "Cannot activate client threads\n"), 1);
-
- pool.thr_mgr ()->wait ();
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-// ****************************************************************
-
-ThreadPool::ThreadPool(CORBA::ORB_ptr orb)
-: orb_(CORBA::ORB::_duplicate (orb))
-{
-}
-
-int ThreadPool::svc (void)
-{
- try
- {
- this->orb_->run ();
- }
- catch (...)
- {
- }
- return 0;
-}
diff --git a/TAO/tests/Bug_2417_Regression/subscriber.idl b/TAO/tests/Bug_2417_Regression/subscriber.idl
deleted file mode 100644
index 4bc284d2979..00000000000
--- a/TAO/tests/Bug_2417_Regression/subscriber.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-
-interface Subscriber
-{
- oneway void onData(in double value);
- boolean isAlive();
-};
diff --git a/TAO/tests/Bug_2417_Regression/subscriber_impl.cpp b/TAO/tests/Bug_2417_Regression/subscriber_impl.cpp
deleted file mode 100644
index 61f25e23349..00000000000
--- a/TAO/tests/Bug_2417_Regression/subscriber_impl.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-
-#include "subscriber_impl.h"
-#include "ace/OS_NS_stdio.h"
-
-Subscriber_impl::Subscriber_impl(CORBA::ORB_ptr orb)
-: orb_ (CORBA::ORB::_duplicate (orb))
-, count(0)
-{
-}
-
-Subscriber_impl::~Subscriber_impl()
-{
-}
-
-void
-Subscriber_impl::onData (
- ::CORBA::Double
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ))
-{
- ++count;
- if (count > 100)
- shutdown();
-}
-
-::CORBA::Boolean
-Subscriber_impl::isAlive (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ))
-{
- return true;
-}
-
-void Subscriber_impl::shutdown()
-{
- this->orb_->shutdown (0);
-}
-
diff --git a/TAO/tests/Bug_2417_Regression/subscriber_impl.h b/TAO/tests/Bug_2417_Regression/subscriber_impl.h
deleted file mode 100644
index 4b37f8f7529..00000000000
--- a/TAO/tests/Bug_2417_Regression/subscriber_impl.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// $Id$
-
-#ifndef EXPLOIT_PUBLISHER_IMPL_H
-#define EXPLOIT_PUBLISHER_IMPL_H
-
-#include "subscriberS.h"
-
-class Subscriber_impl : public POA_Subscriber
-{
- public:
- Subscriber_impl(CORBA::ORB_ptr orb);
- ~Subscriber_impl();
-
- virtual void onData (
- ::CORBA::Double value
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ));
- virtual ::CORBA::Boolean isAlive (
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- ::CORBA::SystemException
- ));
-
- void shutdown();
- private:
- CORBA::ORB_var orb_;
- unsigned int count;
-};
-
-#endif
diff --git a/TAO/tests/Bug_2419_Regression/Bug_2419_Regression.mpc b/TAO/tests/Bug_2419_Regression/Bug_2419_Regression.mpc
deleted file mode 100644
index 073f1f25679..00000000000
--- a/TAO/tests/Bug_2419_Regression/Bug_2419_Regression.mpc
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-project (*Client) : taoserver, messaging {
- exename = client
- Source_Files {
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_2419_Regression/README b/TAO/tests/Bug_2419_Regression/README
deleted file mode 100644
index 0adb564c7ae..00000000000
--- a/TAO/tests/Bug_2419_Regression/README
+++ /dev/null
@@ -1,3 +0,0 @@
-// $Id$
-
-This is a build only test - if it compiles it passes. See the bugzilla ticket for details.
diff --git a/TAO/tests/Bug_2419_Regression/abstract_parent.idl b/TAO/tests/Bug_2419_Regression/abstract_parent.idl
deleted file mode 100644
index 84e5521f296..00000000000
--- a/TAO/tests/Bug_2419_Regression/abstract_parent.idl
+++ /dev/null
@@ -1,6 +0,0 @@
-// $Id$
-
-abstract interface abstract_parent
-{
- void method (in abstract_parent aParent);
-};
diff --git a/TAO/tests/Bug_2419_Regression/client.cpp b/TAO/tests/Bug_2419_Regression/client.cpp
deleted file mode 100644
index 326096e87fa..00000000000
--- a/TAO/tests/Bug_2419_Regression/client.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-#include "local_childS.h"
-
-int main (int, char*[])
-{
- return 0;
-}
diff --git a/TAO/tests/Bug_2419_Regression/local_child.idl b/TAO/tests/Bug_2419_Regression/local_child.idl
deleted file mode 100644
index f993399b138..00000000000
--- a/TAO/tests/Bug_2419_Regression/local_child.idl
+++ /dev/null
@@ -1,6 +0,0 @@
-// $Id$
-#include "abstract_parent.idl"
-
-local interface local_child : abstract_parent
-{
-};
diff --git a/TAO/tests/Bug_2424_Regression/Bug_2424_Regression.mpc b/TAO/tests/Bug_2424_Regression/Bug_2424_Regression.mpc
deleted file mode 100644
index 72053dc671f..00000000000
--- a/TAO/tests/Bug_2424_Regression/Bug_2424_Regression.mpc
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-project (*Client) : taoserver {
- exename = client
- Source_Files {
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_2424_Regression/OneLineCosNaming.idl b/TAO/tests/Bug_2424_Regression/OneLineCosNaming.idl
deleted file mode 100644
index 0e5d486d864..00000000000
--- a/TAO/tests/Bug_2424_Regression/OneLineCosNaming.idl
+++ /dev/null
@@ -1,2 +0,0 @@
-// $Id$
-/** * CORBA Common Object Services: Naming Service. * <p> * The detailed specification is available from the * <a href="http://www.omg.org">Object Management Group</a>. * * @author OMG * @version Version 00-11-01 */ module CosNaming { typedef string Istring; struct NameComponent { Istring id; Istring kind; }; typedef sequence <NameComponent> Name; enum BindingType { nobject, ncontext }; struct Binding { Name binding_name; BindingType binding_type; }; typedef sequence <Binding> BindingList; interface BindingIterator; /** * The NamingContext interface provides operations which support the following: * <ul> * <li> binding objects * <li> name resolution * <li> unbinding * <li> creating naming contexts * <li> deleting contexts * <li> listing a naming context * </ul> */ interface NamingContext { enum NotFoundReason { missing_node, not_context, not_object }; /** * Indicates the name does not identify a binding. */ exception NotFound { NotFoundReason why; Name rest_of_name; }; /** * Indicates that the implementation has given up for some reason. The * client, however, may be able to continue the operation at the returned * naming context. */ exception CannotProceed { NamingContext cxt; Name rest_of_name; }; /** * Indicates the name is invalid. (A name of length 0 is invalid; * implementations may place other restrictions on names.) */ exception InvalidName {}; /** * Indicates an object is already bound to the specified name. Only one * object can be bound to a particular name in a context. */ exception AlreadyBound {}; /** * Indicates that a naming context has bindings. */ exception NotEmpty {}; /** * Creates a binding of a name and an object in the naming * context. Naming contexts that are bound using bind do not * participate in name resolution when compound names are passed to be * resolved. A bind operation that is passed a compound name is * defined as follows: * * <pre> * ctx->bind(< c1 ; c2 ; ... ; cn >, obj) := * (ctx->resolve(< c1 ; c2 ; ... ; cn-1 >))->bind(< cn >, obj) * </pre> * * @parm n - binding name. * @parm obj - object to bind. * @raises AlreadyBound - if the name is bound in the context. */ void bind (in Name n, in Object obj) raises (NotFound, CannotProceed, InvalidName, AlreadyBound); /** * Creates a binding of a name and an object in the naming context * even if the name is already bound in the context. Naming contexts * that are bound using rebind do not participate in name resolution * when compound names are passed to be resolved. * * @parm n - binding name. * @parm obj - object to bind. */ void rebind (in Name n, in Object obj) raises (NotFound, CannotProceed, InvalidName); /** * Names an object that is a naming context. Naming contexts that are * bound using bind_context() participate in name resolution when * compound names are passed to be resolved. A bind_context operation * that is passed a compound name is defined as follows: * <pre> * ctx->bind_context(< c1 ; c2 ; ... ; cn >, nc) := * (ctx->resolve(< c1 ; c2 ; ... ; cn-1 >))->bind_context(< cn >, nc) * </pre> * * @parm n - binding name. * @parm nc - naming context to bind. * @raises AlreadyBound - if the name is bound in the context. */ void bind_context (in Name n, in NamingContext nc) raises (NotFound, CannotProceed, InvalidName, AlreadyBound); /** * Creates a binding of a name and a naming context in the naming * context even if the name is already bound in the context. Naming * contexts that are bound using rebind_context() participate in name * resolution when compound names are passed to be resolved. * * @parm n - binding name. * @parm nc - naming context to bind. */ void rebind_context (in Name n, in NamingContext nc) raises (NotFound, CannotProceed, InvalidName); /** * The resolve operation is the process of retrieving an object bound * to a name in a given context. The given name must exactly match the * bound name. The naming service does not return the type of the * object. Clients are responsible for "narrowing" the object to the * appropriate type. That is, clients typically cast the returned * object from Object to a more specialized interface. Names can have * multiple components; therefore, name resolution can traverse * multiple contexts. * A compound resolve is defined as follows: * <pre> * ctx->resolve(< c1 ; c2 ; ... ; cn >) := * ctx->resolve(< c1 ; c2 ; ... ; cn-1 >)->resolve(< cn >) * </pre> * * @parm n - binding name. * @returns bound object. */ Object resolve (in Name n) raises (NotFound, CannotProceed, InvalidName); /** * The unbind operation removes a name binding from a context. * A unbind operation that is passed a compound name is defined as follows: * <pre> * ctx->unbind(< c1 ; c2 ; ... ; cn >) := * (ctx->resolve(< c1 ; c2 ; ... ; cn-1 >))->unbind(< cn >) * </pre> * * @parm n - binding name. */ void unbind (in Name n) raises (NotFound, CannotProceed, InvalidName); /** * This operation returns a naming context implemented by the same * naming server as the context on which the operation was * invoked. The new context is not bound to any name. * * @returns new binding context. */ NamingContext new_context (); /** * This operation creates a new context and binds it to the name * supplied as an argument. The newly-created context is implemented * by the same naming server as the context in which it was bound * (that is, the naming server that implements the context denoted by * the name argument excluding the last component). A bind_new_context * that is passed a compound name is defined as follows: * * <pre> * ctx->bind_new_context(< c1 ; c2 ; ... ; cn >) := * (ctx->resolve(< c1 ; c2 ; ... ; cn-1 >))->bind_new_context(< cn >) * </pre> * * @parm n - binding name. * @returns new binding context. * @raises AlreadyBound - if the name is bound in the context. */ NamingContext bind_new_context (in Name n) raises (NotFound, CannotProceed, InvalidName, AlreadyBound); /** * The destroy operation deletes a naming context. The list operation * allows a client to iterate through a set of bindings in a naming * context. * * @raises NotEmpty - if the naming context contains bindings. */ void destroy () raises (NotEmpty); /** * The list operation returns at most the requested number of bindings in * BindingList bl. * <ul> * <li> If the naming context contains additional bindings, the list * operation returns a BindingIterator with the additional bindings. * <li> If the naming context does not contain additional bindings, the * binding iterator is a nil object reference. * </ul> * * @parm how_many - maximum number of binding to return in bl. * @parm bl - list of bindings. * @parm bi - iterator over remaining bindings. */ void list (in unsigned long how_many, out BindingList bl, out BindingIterator bi); }; /** * The BindingIterator interface allows a client to iterate through the * bindings using the next_one or next_n operations. */ interface BindingIterator { /** * This operation returns the next binding. If there are no more * bindings, false is returned. * * @parm b - next binding. */ boolean next_one (out Binding b); /** * This operation returns at most the requested number of bindings. * * @parm how_many - maximum number of binding to return in bl. * @parm bl - list of bindings. */ boolean next_n (in unsigned long how_many, out BindingList bl); /** * This operation destroys the iterator. */ void destroy (); }; /** * The NamingContextExt Interface provides the extensions to the * NamingContext Interface as proposed by the Interoperable * Naming Service Extension. */ interface NamingContextExt: NamingContext { typedef string StringName; typedef string Address; typedef string URLString; /** * This operation accepts a Name and returns a stringified Name. * * @param n - Name (a sequence of NameComponents) * @raises InvalidName - if the Name is invalid. */ StringName to_string (in Name n) raises (InvalidName); /** * This operation accepts a StringifiedName and returns a Name. * * @param n - a StringifiedName * @raises InvalidName - if the Name is invalid. */ Name to_name (in StringName sn) raises (InvalidName); /** * Indicates a syntactically invalid address component. */ exception InvalidAddress {}; /** * This operation accepts a URL address component and a stringified * name and returns a URL string. * * @param n - a Stringified name. * @raises addr - URL address component. */ URLString to_url (in Address addr, in StringName sn) raises (InvalidAddress, InvalidName); /** * This is a convenience operation that performs a resolve in the same * manner as NamingContext::resolve. * * @param n - a Stringified name. * @raises NotFound, CannotProceed, InvalidName */ Object resolve_str (in StringName n) raises (NotFound, CannotProceed, InvalidName); }; };
diff --git a/TAO/tests/Bug_2424_Regression/README b/TAO/tests/Bug_2424_Regression/README
deleted file mode 100644
index a0e0c8a1dad..00000000000
--- a/TAO/tests/Bug_2424_Regression/README
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-
-This is a compile only test to check that the IDL compiler can deal with IDL containing unfeasibly long lines. If it builds - it's passed.
-
-The file OneLineCosNaming.idl is the complete IDL for the Naming Service, including comments, with all the newlines removed.
diff --git a/TAO/tests/Bug_2424_Regression/client.cpp b/TAO/tests/Bug_2424_Regression/client.cpp
deleted file mode 100644
index 4bca89b3009..00000000000
--- a/TAO/tests/Bug_2424_Regression/client.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-#include "OneLineCosNamingC.h"
-
-int main (int, char*[])
-{
- return 0;
-}
diff --git a/TAO/tests/Bug_2429_Regression/Bug_2429_Regression.mpc b/TAO/tests/Bug_2429_Regression/Bug_2429_Regression.mpc
deleted file mode 100644
index 27af500c3e6..00000000000
--- a/TAO/tests/Bug_2429_Regression/Bug_2429_Regression.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server) : taoserver, messaging {
- exename = server
- idlflags += -Ge 1 -GC
-
- Source_Files {
- server.cpp
- ChildServant.cpp
- }
-}
-
-project(*Client) : taoclient, messaging {
- exename = client
- idlflags += -Ge 1 -GC
-
- Source_Files {
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_2429_Regression/Child.idl b/TAO/tests/Bug_2429_Regression/Child.idl
deleted file mode 100644
index 166b36367ce..00000000000
--- a/TAO/tests/Bug_2429_Regression/Child.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-#include "Parent.idl"
-
-interface Child : Parent
-{
- void childMethod ();
-};
diff --git a/TAO/tests/Bug_2429_Regression/ChildServant.cpp b/TAO/tests/Bug_2429_Regression/ChildServant.cpp
deleted file mode 100644
index f6617bc55d9..00000000000
--- a/TAO/tests/Bug_2429_Regression/ChildServant.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-
-#include "ChildServant.h"
-
-ChildServant::ChildServant(CORBA::ORB_ptr orb)
-: orb_(CORBA::ORB::_duplicate(orb))
-{
-}
-
-void
-ChildServant::childMethod ()
-ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // No-op
-}
-
-void
-ChildServant::parentMethod ()
-ACE_THROW_SPEC((CORBA::SystemException))
-{
- // Just throw an exception
- ACE_THROW (CORBA::INTERNAL ());
-}
-
-void
-ChildServant::shutdown ()
-ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/tests/Bug_2429_Regression/ChildServant.h b/TAO/tests/Bug_2429_Regression/ChildServant.h
deleted file mode 100644
index 55d601d3cc0..00000000000
--- a/TAO/tests/Bug_2429_Regression/ChildServant.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef CHILDSERVANT_H
-#define CHILDSERVANT_H
-
-// $Id$
-
-#include "ChildS.h"
-
-class ChildServant
- : public virtual POA_Child
-{
- public:
- ChildServant (CORBA::ORB_ptr orb);
- virtual void parentMethod ()
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void childMethod ()
- ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void shutdown ()
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- private:
- CORBA::ORB_var orb_;
-};
-
-#endif
diff --git a/TAO/tests/Bug_2429_Regression/Parent.idl b/TAO/tests/Bug_2429_Regression/Parent.idl
deleted file mode 100644
index b142f1939e3..00000000000
--- a/TAO/tests/Bug_2429_Regression/Parent.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-interface Parent
-{
- void parentMethod ();
-
- oneway void shutdown ();
-};
diff --git a/TAO/tests/Bug_2429_Regression/README b/TAO/tests/Bug_2429_Regression/README
deleted file mode 100644
index f5f06b3dffb..00000000000
--- a/TAO/tests/Bug_2429_Regression/README
+++ /dev/null
@@ -1,16 +0,0 @@
-# $Id$
-
-This test makes a call via AMI and then waits to receive a call back. The server throws an exception so the client expects to receive that. The method called is a method inherited from a parent interface (parentMethod).
-
-_Expected Success Result_
-
-Successfully received an Internal Excep*ion as expected.
-event loop finished
-
-_Regression Result_
-
-_Perfect_Hash_OpTable:find for operation 'parentMethod_excep' (length=18) failed
-ERROR: /home/sm/bugs/tao321/client timedout
-ERROR: Regression - Non zero result from client or client timed out.
-
-
diff --git a/TAO/tests/Bug_2429_Regression/client.cpp b/TAO/tests/Bug_2429_Regression/client.cpp
deleted file mode 100644
index ded3a38e9d6..00000000000
--- a/TAO/tests/Bug_2429_Regression/client.cpp
+++ /dev/null
@@ -1,185 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "tao/Messaging/Messaging.h"
-#include "ChildS.h"
-
-class Reply_Handler
- : public POA_AMI_ChildHandler
-{
- public:
- Reply_Handler()
- : parentMethod_count (0),
- parentMethod_excep_count (0)
- {
- }
-
- virtual void
- childMethod (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- }
-
- virtual void
- childMethod_excep (Messaging::ExceptionHolder *
- excep_holder ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- ACE_TRY
- {
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::SystemException, ex)
- {
- ACE_PRINT_EXCEPTION (ex, "Reply_Handler::childMethod_excep: ");
- }
- ACE_ENDTRY;
- }
-
- virtual void
- parentMethod (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- ACE_DEBUG ((LM_DEBUG,
- "client: parentMethod reply %d @ %T\n",
- ++parentMethod_count));
-
- }
-
- virtual void
- parentMethod_excep (Messaging::ExceptionHolder * excep_holder
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException))
- {
- ACE_TRY
- {
- ++parentMethod_excep_count;
- excep_holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::INTERNAL, iex)
- {
- ACE_DEBUG ((LM_DEBUG, "Successfully received an Internal Excep*ion as expected.\n"));
- }
- ACE_CATCH (CORBA::SystemException, ex)
- {
- ACE_PRINT_EXCEPTION (ex, "Reply_Handler::childMethod_excep: ");
- }
- ACE_ENDTRY;
- }
-
- CORBA::ULong reply_count (void) { return parentMethod_count + parentMethod_excep_count; };
-
- private:
- // Count of replies and excep
- CORBA::ULong parentMethod_count;
- CORBA::ULong parentMethod_excep_count;
-};
-
-// Server ior.
-static const char * server_ior = "file://server.ior";
-
-static int
-client_parse_args(int argc, char *argv[])
-{
- ACE_Get_Opt
- get_opts(argc, argv, "f:");
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'f':
- server_ior = get_opts.opt_arg();
- break;
- case '?':
- default:
- ACE_DEBUG((LM_ERROR,
- "usage: %s "
- "-f server IOR file\n"));
- return 1;
- }
- }
-
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main(int argc, char *argv[])
-{
- ACE_DECLARE_NEW_CORBA_ENV;
-
- CORBA::ORB_var orb;
-
- ACE_TRY
- {
- // Initialize the ORB.
- orb = CORBA::ORB_init(argc, argv, 0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Initialize options based on command-line arguments.
- int parse_args_result = client_parse_args(argc, argv);
- if (parse_args_result != 0)
- {
- return 1;
- }
-
- CORBA::Object_var object =
- orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Get an object reference from the nominated file
- object = orb->string_to_object (server_ior);
-
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Child_var child = Child::_narrow (object.in() ACE_ENV_ARG_PARAMETER);
-
- Reply_Handler reply_handler_servant;
-
- AMI_ChildHandler_var reply_handler_object =
- reply_handler_servant._this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Invoke the AMI parentMethod
- child->sendc_parentMethod (reply_handler_object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Loop until all replies have been received.
- while (reply_handler_servant.reply_count () == 0)
- {
- orb->perform_work ();
- }
-
- // Shutdown server.
- child->shutdown ();
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2429_Regression/run_test.pl b/TAO/tests/Bug_2429_Regression/run_test.pl
deleted file mode 100755
index 542e46da4ff..00000000000
--- a/TAO/tests/Bug_2429_Regression/run_test.pl
+++ /dev/null
@@ -1,44 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-#$Id$
-
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-# The server IOR file
-$server_ior_file = PerlACE::LocalFile ("server.ior");
-unlink $server_ior_file;
-
-# The client and server processes
-$SERVER = new PerlACE::Process(PerlACE::LocalFile("server"));
-$CLIENT = new PerlACE::Process(PerlACE::LocalFile("client"));
-
-$SERVER->Arguments("-o $server_ior_file");
-
-# Fire up the server
-$SERVER->Spawn();
-
-# We can wait on the IOR file
-if (PerlACE::waitforfile_timed ($server_ior_file, 10) == -1)
-{
- print STDERR "ERROR: cannot find $server_ior_file\n";
- $SERVER->Kill();
- exit 1;
-}
-
-$CLIENT->Arguments("-f file://$server_ior_file");
-if ($CLIENT->SpawnWaitKill (10) != 0)
-{
- print STDERR "ERROR: Regression - Non zero result from client or client timed out.\n";
- $SERVER->Kill();
- exit 1;
-}
-
-# Clean up and return
-$SERVER->TerminateWaitKill (5);
-unlink $server_ior_file;
-exit 0;
diff --git a/TAO/tests/Bug_2429_Regression/server.cpp b/TAO/tests/Bug_2429_Regression/server.cpp
deleted file mode 100644
index 8059c43febb..00000000000
--- a/TAO/tests/Bug_2429_Regression/server.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-// $Id$
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "ChildServant.h"
-
-const char *ior_output_file = "server.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
-
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references ("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return -1;
-
- ChildServant servant (orb.in ());
-
- Child_var server =
- servant._this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (server.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- -1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- root_poa->destroy (1,
- 1
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2494_Regression/Bug_2494_Regression.mpc b/TAO/tests/Bug_2494_Regression/Bug_2494_Regression.mpc
deleted file mode 100644
index ef312844a93..00000000000
--- a/TAO/tests/Bug_2494_Regression/Bug_2494_Regression.mpc
+++ /dev/null
@@ -1,19 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoexe, portableserver {
- idlflags += -Sc -St
- Source_Files {
- test_i.cpp
- server.cpp
- }
-}
-
-project(*Client): taoexe {
- idlflags += -Sc -St
- after += *Server
- Source_Files {
- testC.cpp
- client.cpp
- }
-}
diff --git a/TAO/tests/Bug_2494_Regression/README b/TAO/tests/Bug_2494_Regression/README
deleted file mode 100644
index 726419360b1..00000000000
--- a/TAO/tests/Bug_2494_Regression/README
+++ /dev/null
@@ -1,34 +0,0 @@
-# $Id$
-
-Description:
-
- This test a modification of MT_Server. In this case the client is also
-multi-threaded. The client sends very large strings to the server, which it
-echoes back, for the sake of keeping the server busy doing I/O. When the
-client is abruptly killed, the server should close the connection and continue
-running.
-
-Expected output:
- The server prints out the IOR of the object it serves and the
-results of server shutdown (aborted or shutdown cleanly).
-
- Regression:
-Activated as
-<IOR:012a2a2a1600000049444c3a53696d706c655f5365727665723a312e30002a2a0100000000000000740000000101022a130000006f6369313332392e6f63697765622e636f6d002a19842a2a1b00000014010f0052535420c93244520b04000000000001000000010000002a020000000000000008000000012a2a2a004f41540100000018000000012a2a2a0100010001000000010001050901010000000000>
-***Client has been killed***
-ACE_ASSERT (32395|3067820976): file Transport.cpp, line 172 assertion
-failed for 'this->head_ == 0'.Aborting...
-ERROR: cannot find file
-</tao_builds/mitza/1.4a/ACE_wrappers/TAO/tests/Bug_2494_Regression/server_terminated>
--- server has not shut down cleanly.
-(perl script returns 1)
-
- Correct run:
-Activated as
-<IOR:012a2a2a1600000049444c3a53696d706c655f5365727665723a312e30002a2a0100000000000000740000000101022a130000006f6369313332392e6f63697765622e636f6d002a34842a2a1b00000014010f0052535488d03244438d04000000000001000000010000002a020000000000000008000000012a2a2a004f41540100000018000000012a2a2a0100010001000000010001050901010000000000>
-***Client has been killed***
-event loop finished
-(perl script returns 0)
-
-How to run:
- Use the run_test.pl script to run it.
diff --git a/TAO/tests/Bug_2494_Regression/client.cpp b/TAO/tests/Bug_2494_Regression/client.cpp
deleted file mode 100644
index 3ec481e7167..00000000000
--- a/TAO/tests/Bug_2494_Regression/client.cpp
+++ /dev/null
@@ -1,137 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "ace/Task.h"
-#include "ace/OS_NS_string.h"
-#include "testC.h"
-
-ACE_RCSID(Bug_2494_Regression, client, "$Id$")
-
-const char *ior = "file://test.ior";
-int nthreads = 5;
-int do_shutdown = 0;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "xk:n:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'x':
- do_shutdown = 1;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'n':
- nthreads = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "[-n <nthreads> | -x]"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-namespace
-{
- const char *twohundredbytes =
- "12345678901234567890123456789012345678901234567890"
- "12345678901234567890123456789012345678901234567890"
- "12345678901234567890123456789012345678901234567890"
- "12345678901234567890123456789012345678901234567890"
- ;
-}
-
-struct Worker : ACE_Task_Base
-{
-
- Worker (Simple_Server_ptr srv)
- : srv_(Simple_Server::_duplicate(srv))
- {
- }
-
- Simple_Server_var srv_;
-
- int svc ()
- {
- char* str = CORBA::string_alloc (200*2000 + 1);
- if (!str) return 1;
- str[0] = CORBA::Char('\0');
- for (int i=0; i < 2000; ++i)
- {
- ACE_OS::strcat(str, twohundredbytes);
- }
-
- while (1)
- {
- try
- {
- const char *ret = srv_->test_method (str);
- ACE_TRY_CHECK;
- if (0 != ACE_OS::strcmp (str, ret)) return 1;
- }
- catch (CORBA::Exception& ex)
- {
- ACE_PRINT_EXCEPTION (ex, "Exception caught:");
- return 1;
- }
- }
- return 0;
- }
-
-};
-
-int
-main (int argc, char *argv[])
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var object = orb->string_to_object (ior);
-
- Simple_Server_var server = Simple_Server::_narrow (object.in ());
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Object reference <%s> is nil\n",
- ior), 1);
- }
-
- if (do_shutdown)
- {
- server->shutdown ();
- }
- else
- {
- Worker wrk (server.in ());
- wrk.activate (THR_NEW_LWP|THR_JOINABLE|THR_INHERIT_SCHED, nthreads);
- wrk.thr_mgr ()->wait ();
- }
- }
- catch (CORBA::Exception& ex)
- {
- ACE_PRINT_EXCEPTION (ex, "Exception caught:");
- return 1;
- }
-
- return 0;
-}
diff --git a/TAO/tests/Bug_2494_Regression/run_test.pl b/TAO/tests/Bug_2494_Regression/run_test.pl
deleted file mode 100755
index b622265a7de..00000000000
--- a/TAO/tests/Bug_2494_Regression/run_test.pl
+++ /dev/null
@@ -1,68 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$srv_threads = '4';
-$cli_threads = '30';
-$iorfile = PerlACE::LocalFile ("test.ior");
-$srvdownfile = PerlACE::LocalFile ("server_terminated");
-
-unlink $iorfile;
-unlink $srvdownfile;
-
-$SV = new PerlACE::Process ("server", "-o $iorfile -n $srv_threads");
-$CL = new PerlACE::Process ("client", "-k file://$iorfile -n $cli_threads");
-$CLS = new PerlACE::Process ("client", "-k file://$iorfile -x");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$CL->Spawn ();
-#Client will not terminate on its own, kill it after 30 seconds
-$CL->TimedWait (30);
-$CL->Kill ();
-
-print "***Client has been killed***\n";
-
-#Server should still be running at this point, now start the client that asks
-#the server to shut itself down
-
-$client = $CLS->SpawnWaitKill (5);
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-#Server should now be shut down
-if (PerlACE::waitforfile_timed ($srvdownfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$srvdownfile>".
- " -- server has not shut down cleanly.\n";
- $SV->Kill ();
- exit 1;
-}
-
-$server = $SV->WaitKill (1);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-unlink $srvdownfile;
-
-exit $status
diff --git a/TAO/tests/Bug_2494_Regression/server.cpp b/TAO/tests/Bug_2494_Regression/server.cpp
deleted file mode 100644
index 8a87e86c160..00000000000
--- a/TAO/tests/Bug_2494_Regression/server.cpp
+++ /dev/null
@@ -1,157 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-#include "ace/Get_Opt.h"
-#include "ace/Task.h"
-
-ACE_RCSID(Bug_2494_Regression, server, "$Id$")
-
-const char *ior_output_file = "file://test.ior";
-int nthreads = 4;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case 'n':
- nthreads = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-class Worker : public ACE_Task_Base
-{
- // = TITLE
- // Run a server thread
- //
- // = DESCRIPTION
- // Use the ACE_Task_Base class to run server threads
- //
-public:
- Worker (CORBA::ORB_ptr orb);
- // ctor
-
- virtual int svc (void);
- // The thread entry point.
-
-private:
- CORBA::ORB_var orb_;
- // The orb
-};
-
-int
-main (int argc, char *argv[])
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ());
-
- PortableServer::POAManager_var poa_manager = root_poa->the_POAManager ();
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Simple_Server_i server_impl (orb.in ());
-
- Simple_Server_var server = server_impl._this ();
-
- CORBA::String_var ior = orb->object_to_string (server.in ());
-
- ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
-
- // If the ior_output_file exists, output the ior to it
- if (ior_output_file != 0)
- {
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- poa_manager->activate ();
-
- Worker worker (orb.in ());
- if (worker.activate (THR_NEW_LWP | THR_JOINABLE,
- nthreads) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot activate client threads\n"),
- 1);
-
- worker.thr_mgr ()->wait ();
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- const char *fname = "server_terminated";
- FILE *output_file= ACE_OS::fopen (fname, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing: ",
- fname),
- 1);
- ACE_OS::fprintf (output_file, "%s", "OK\n");
- ACE_OS::fclose (output_file);
- }
- catch (CORBA::Exception& ex)
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
-
- return 0;
-}
-
-// ****************************************************************
-
-Worker::Worker (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-int
-Worker::svc (void)
-{
- try
- {
- this->orb_->run ();
- }
- catch (CORBA::Exception&)
- {
- }
- return 0;
-}
diff --git a/TAO/tests/Bug_2494_Regression/test.idl b/TAO/tests/Bug_2494_Regression/test.idl
deleted file mode 100644
index 335009e627f..00000000000
--- a/TAO/tests/Bug_2494_Regression/test.idl
+++ /dev/null
@@ -1,10 +0,0 @@
-//
-// $Id$
-//
-
-interface Simple_Server
-{
- string test_method (in string str);
-
- oneway void shutdown ();
-};
diff --git a/TAO/tests/Bug_2494_Regression/test_i.cpp b/TAO/tests/Bug_2494_Regression/test_i.cpp
deleted file mode 100644
index bfccb378f26..00000000000
--- a/TAO/tests/Bug_2494_Regression/test_i.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-#include "tao/debug.h"
-#include "ace/OS_NS_unistd.h"
-
-#if !defined(__ACE_INLINE__)
-#include "test_i.inl"
-#endif /* __ACE_INLINE__ */
-
-ACE_RCSID(Bug_2494_Regression, test_i, "$Id$")
-
-char *
-Simple_Server_i::test_method (const char *x)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Request in thread %t\n"));
- ACE_Time_Value tv (2);
- ACE_OS::sleep (tv);
- return CORBA::string_dup(x);
-}
-
-void
-Simple_Server_i::shutdown ()
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0);
-}
diff --git a/TAO/tests/Bug_2494_Regression/test_i.h b/TAO/tests/Bug_2494_Regression/test_i.h
deleted file mode 100644
index cd8971dc7a6..00000000000
--- a/TAO/tests/Bug_2494_Regression/test_i.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-
-#ifndef TAO_BUG_2494_REGRESSION_TEST_I_H
-#define TAO_BUG_2494_REGRESSION_TEST_I_H
-
-#include "testS.h"
-
-class Simple_Server_i : public POA_Simple_Server
-{
- // = TITLE
- // Simpler Server implementation
- //
- // = DESCRIPTION
- // Implements the Simple_Server interface in test.idl
- //
-public:
- Simple_Server_i (CORBA::ORB_ptr orb);
- // ctor
-
- // = The Simple_Server methods.
- char *test_method (const char *x)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void shutdown ()
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- CORBA::ORB_var orb_;
- // The ORB
-};
-
-#if defined(__ACE_INLINE__)
-#include "test_i.inl"
-#endif /* __ACE_INLINE__ */
-
-#endif /* TAO_BUG_2494_REGRESSION_TEST_I_H */
diff --git a/TAO/tests/Bug_2494_Regression/test_i.inl b/TAO/tests/Bug_2494_Regression/test_i.inl
deleted file mode 100644
index 97524552ff4..00000000000
--- a/TAO/tests/Bug_2494_Regression/test_i.inl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-
-ACE_INLINE
-Simple_Server_i::Simple_Server_i (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
diff --git a/TAO/tests/CDR/alignment.cpp b/TAO/tests/CDR/alignment.cpp
index 70cbd85c629..ba5d61fb1a3 100644
--- a/TAO/tests/CDR/alignment.cpp
+++ b/TAO/tests/CDR/alignment.cpp
@@ -21,7 +21,7 @@
#include "ace/Log_Msg.h"
-int main(int, char*[])
+int ACE_TMAIN(int, ACE_TCHAR*[])
{
int status = 0;
@@ -76,13 +76,13 @@ int main(int, char*[])
ACE_HEX_DUMP ((LM_DEBUG,
j->rd_ptr (),
j->length (),
- "Output CDR stream"));
+ ACE_TEXT("Output CDR stream")));
}
TAO_InputCDR debug (cdr);
ACE_HEX_DUMP ((LM_DEBUG,
debug.rd_ptr (),
debug.length (),
- "Input CDR stream"));
+ ACE_TEXT("Input CDR stream")));
}
}
diff --git a/TAO/tests/CDR/allocator.cpp b/TAO/tests/CDR/allocator.cpp
index dfbae63cc44..1ddb772e30c 100644
--- a/TAO/tests/CDR/allocator.cpp
+++ b/TAO/tests/CDR/allocator.cpp
@@ -26,6 +26,7 @@
#include "ace/Get_Opt.h"
#include "ace/High_Res_Timer.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(CDR, allocator, "$Id$")
@@ -65,10 +66,12 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv());
int tss = 0;
int iterations = 500;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
int quiet = 0;
ACE_RANDR_TYPE seed = time(0);
- ACE_Get_Opt get_opt (argc, argv, "tn:f:m:s:a:b:r:q");
+ ACE_Get_Arg_Opt<char> get_opt (convert.get_argc(), convert.get_ASCII_argv(), "tn:f:m:s:a:b:r:q");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/tests/CDR/basic_types.cpp b/TAO/tests/CDR/basic_types.cpp
index a1035e4c150..f5e57706dea 100644
--- a/TAO/tests/CDR/basic_types.cpp
+++ b/TAO/tests/CDR/basic_types.cpp
@@ -24,6 +24,7 @@
#include "ace/Get_Opt.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CDR,
basic_types,
@@ -212,17 +213,19 @@ test_get (TAO_InputCDR &cdr, const CDR_Test_Types &test_types)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- ACE_Get_Opt get_opt (argc, argv, "dn:l:");
+ ACE_Get_Arg_Opt<char> get_opt (convert.get_argc(), convert.get_ASCII_argv(), "dn:l:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/tests/CDR/growth.cpp b/TAO/tests/CDR/growth.cpp
index cc70e4ea277..755a6d03eb1 100644
--- a/TAO/tests/CDR/growth.cpp
+++ b/TAO/tests/CDR/growth.cpp
@@ -20,6 +20,7 @@
#include "ace/Get_Opt.h"
#include "ace/High_Res_Timer.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB.h"
#include "tao/debug.h"
@@ -63,15 +64,17 @@ test_read (TAO_InputCDR &cdr, int n)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int n = 100;
int low = 64;
int hi = 4096;
int s = 4;
int quiet = 0;
- ACE_Get_Opt get_opt (argc, argv, "dn:l:h:s:q");
+ ACE_Get_Arg_Opt<char> get_opt (convert.get_argc(), convert.get_ASCII_argv(), "dn:l:h:s:q");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/tests/CDR/octet_sequence.cpp b/TAO/tests/CDR/octet_sequence.cpp
index fd8a8026ab5..5f8d00bd1b0 100644
--- a/TAO/tests/CDR/octet_sequence.cpp
+++ b/TAO/tests/CDR/octet_sequence.cpp
@@ -40,7 +40,7 @@ void dump(const char * msg)
m3->data_block()->reference_count()));
}
-int main(int, char*[])
+int ACE_TMAIN(int, ACE_TCHAR*[])
{
// setup mb's
char buf[1024];
diff --git a/TAO/tests/CDR/tc.cpp b/TAO/tests/CDR/tc.cpp
index 0b814f3d523..e52531d641a 100644
--- a/TAO/tests/CDR/tc.cpp
+++ b/TAO/tests/CDR/tc.cpp
@@ -18,12 +18,13 @@
// ============================================================================
#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "tao/ORB.h"
#include "tao/SystemException.h"
#include "tao/debug.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (CDR,
@@ -34,12 +35,14 @@ ACE_RCSID (CDR,
// verify that CDR offers the services needed for Typecode...
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/CSD_TP_Broken.mpc b/TAO/tests/CSD_Strategy_Tests/Broken/CSD_TP_Broken.mpc
deleted file mode 100644
index 016caef75ef..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/CSD_TP_Broken.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_tp_test_exe_b {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(*Client): csd_tp_test_exe_b {
- exename=client_main
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.cpp b/TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.cpp
deleted file mode 100644
index 0fbab91f139..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.cpp
+++ /dev/null
@@ -1,328 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "AppHelper.h"
-#include "OrbRunner.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "Foo_B_ClientEngine.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ClientApp::ClientApp()
-: TestAppBase("TP_Test_3_Client"),
- client_task_ (true), // shutdown orb after client is done.
- num_servants_ (1),
- num_csd_threads_ (1),
- num_orb_threads_ (1),
- ior_("Not Set"),
- client_kind_(0),
- client_id_(0)
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- if (result != 0)
- {
- return result;
- }
- ACE_CHECK_RETURN (-1);
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->client_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_clients(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- this->cleanup();
-
- return this->check_validity () ? 0 : -1;
-}
-
-
-int
-ClientApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheAppShutdown->init(this->orb_.in(), num_servants_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ClientApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ClientApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-}
-
-
-void
-ClientApp::client_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Turn the ior_ into a Foo_B obj ref.
- Foo_B_var foo = RefHelper<Foo_B>::string_to_ref(this->orb_.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- this->servants_.create_and_activate(1, // number of callback servants
- this->poa_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- ServantListType::T_stub_var cb = this->servants_.objref(0);
-
- // Create the ClientEngine object, and give it the Foo_B and Callback object
- // references.
- ClientEngine_Handle engine
- = new Foo_B_ClientEngine(foo.in(), cb.in (), this->client_id_);
- this->client_task_.add_engine(engine.in());
-}
-
-
-void
-ClientApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ClientApp::run_clients(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->client_task_.open() != 0)
- {
- ACE_THROW (TestAppException ());
- }
-}
-
-
-void
-ClientApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-PortableServer::POA_ptr
-ClientApp::create_poa(CORBA::ORB_ptr orb, const char* poa_name ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-void
-ClientApp::cleanup()
-{
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:k:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case 'k':
- result = set_arg(this->client_kind_,
- get_opts.opt_arg(),
- c,
- "client_kind");
- break;
-
- case 'n':
- result = set_arg(this->client_id_,
- get_opts.opt_arg(),
- c,
- "client_id");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-k <client_kind>]\n"
- "\t[-n <client_id>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ClientApp::arg_dependency_checks()
-{
- if (this->ior_ == "Not Set")
- {
- ACE_ERROR((LM_ERROR,
- "Error: Missing required command-line option (-i <ior>).\n"));
- this->usage_statement();
- return -1;
- }
- if (this->client_id_ <= 0)
- {
- ACE_ERROR((LM_ERROR,
- "Error: Invalid command-line option (-n <client id>). \n"
- " The client id should be positive integer. \n"));
- this->usage_statement();
- return -1;
- }
-
- return 0;
-}
-
-
-int
-ClientApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
-bool
-ClientApp::check_validity ()
-{
- // Check whether the clients return any errors.
- if (this->client_task_.failure_count () > 0)
- {
- return false;
- }
-
- return true;
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.h
deleted file mode 100644
index 846384224f5..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/ClientApp.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestAppBase.h"
-#include "ClientEngine.h"
-#include "ServantList_T.h"
-#include "Callback_i.h"
-#include "ClientTask.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/ORB.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void client_setup(ACE_ENV_SINGLE_ARG_DECL);
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_clients(ACE_ENV_SINGLE_ARG_DECL);
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_validity ();
- void cleanup();
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
-
- typedef ServantList<Callback_i> ServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- ServantListType servants_;
-
- ClientTask client_task_;
-
- ACE_CString exe_name_;
-
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
-
- ACE_CString ior_;
- unsigned client_kind_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.cpp b/TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.cpp
deleted file mode 100644
index e48955f8c06..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.cpp
+++ /dev/null
@@ -1,427 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "AppHelper.h"
-#include "OrbRunner.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "Foo_B_SimpleClientEngine.h"
-#include "Callback_i.h"
-#include "ace/OS.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
- : TestAppBase("TP_Test_3_Server"),
- ior_filename_prefix_("foo"),
- num_servants_(1),
- num_csd_threads_(1),
- num_orb_threads_(1),
- num_remote_clients_(1),
- num_collocated_clients_(0),
- collocated_client_kind_(0)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- if (result != 0)
- {
- return result;
- }
- ACE_CHECK_RETURN (-1);
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->servant_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->collocated_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_collocated_clients(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- this->cleanup();
- return this->check_validity () ? 0 : -1;
-}
-
-
-int
-ServerApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- unsigned num_clients = this->num_remote_clients_ +
- this->num_collocated_clients_;
-
- TheAppShutdown->init(this->orb_.in(), num_clients ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ServerApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->num_collocated_clients_ > 0)
- {
- this->cb_poa_ = this->create_poa(this->orb_.in(),
- "CallbackPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-void
-ServerApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
-// We don't apply the strategy for this test to show that the bug isn't
-// part of the CSD ThreadPool Strategy code.
-#if 0
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-#endif
-
- // Use another poa and strategy for callbacks. This would resolve
- // the deadlock situation that happens when having number of csd
- // threads less than number of collocated clients.
- if (this->num_collocated_clients_ > 0)
- {
- this->cb_tp_strategy_ = new TAO::CSD::TP_Strategy();
-// We don't apply the strategy for this test to show that the bug isn't
-// part of the CSD ThreadPool Strategy code.
-#if 0
- if (!this->cb_tp_strategy_->apply_to(this->cb_poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to callback poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-#endif
- }
-}
-
-
-void
-ServerApp::servant_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->foo_servants_.create_and_activate(this->num_servants_,
- this->orb_.in (),
- this->poa_.in (),
- this->ior_filename_prefix_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::collocated_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ == 0)
- return;
-
- this->cb_servants_.create_and_activate(1, // number of callback servants
- this->cb_poa_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CallbackServantListType::T_stub_var cb = this->cb_servants_.objref(0);
-
- unsigned client_id = this->num_remote_clients_;
-
- for (unsigned i = 0; i < this->num_collocated_clients_; i++)
- {
- client_id ++;
- // Dole out the servant object references in a round-robin fashion.
- unsigned servant_index = i % this->num_servants_;
-
- FooServantListType::T_stub_var foo
- = this->foo_servants_.objref(servant_index);
- ClientEngine_Handle engine
- = new Foo_B_SimpleClientEngine(foo.in(), cb.in (), client_id, true);
- this->collocated_client_task_.add_engine(engine.in());
- }
-}
-
-
-void
-ServerApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ > 0)
- {
- if (this->collocated_client_task_.open() == -1)
- {
- ACE_THROW (TestAppException ());
- }
- }
-}
-
-
-void
-ServerApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-void
-ServerApp::cleanup()
-{
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:n:t:r:c:k:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'p':
- this->ior_filename_prefix_ = get_opts.opt_arg();
- break;
-
- case 's':
- result = set_arg(this->num_servants_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 'n':
- result = set_arg(this->num_csd_threads_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 't':
- result = set_arg(this->num_orb_threads_,
- get_opts.opt_arg(),
- c,
- "num_orb_threads",
- 1);
- break;
-
- case 'r':
- result = set_arg(this->num_remote_clients_,
- get_opts.opt_arg(),
- c,
- "num_remote_clients");
- break;
-
- case 'c':
- result = set_arg(this->num_collocated_clients_,
- get_opts.opt_arg(),
- c,
- "num_collocated_clients");
- break;
-
- case 'k':
- result = set_arg(this->collocated_client_kind_,
- get_opts.opt_arg(),
- c,
- "collocated_client_kind");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-p <ior_filename_prefix>]\n"
- "\t[-s <num_servants>]\n"
- "\t[-n <num_csd_threads>]\n"
- "\t[-t <num_orb_threads>]\n"
- "\t[-r <num_remote_clients>]\n"
- "\t[-c <num_collocated_clients>]\n"
- "\t[-k <collocated_client_kind>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ServerApp::arg_dependency_checks()
-{
- return (this->num_remote_clients_
- + this->num_collocated_clients_) > 0 ? 0 : -1;
-}
-
-
-int
-ServerApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
-PortableServer::POA_ptr
-ServerApp::create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-bool
-ServerApp::check_validity ()
-{
- return true;
-#if 0
- // Check whether the clients return any errors.
- if (this->num_collocated_clients_ > 0
- && this->collocated_client_task_.failure_count () > 0)
- {
- return false;
- }
-
- Foo_B_Statistics stats (this->num_remote_clients_,
- this->num_collocated_clients_);
-
- Foo_B_SimpleClientEngine::expected_results (stats);
-
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- this->foo_servants_.servant(i)->gather_stats (stats);
- }
-
- if (this->num_collocated_clients_ > 0)
- {
- this->cb_servants_.servant (0)->gather_stats (stats);
- }
-
- return stats.actual_vs_expected ();
-#endif
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.h b/TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.h
deleted file mode 100644
index c90b7671534..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/ServerApp.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestAppBase.h"
-#include "ServantList_T.h"
-#include "ClientTask.h"
-#include "Foo_B_i.h"
-#include "Callback_i.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void servant_setup(ACE_ENV_SINGLE_ARG_DECL);
- void collocated_setup(ACE_ENV_SINGLE_ARG_DECL);
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL);
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_validity ();
- void cleanup();
-
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
- typedef ServantList<Foo_B_i> FooServantListType;
- typedef ServantList<Callback_i> CallbackServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- PortableServer::POA_var cb_poa_;
- TAO::CSD::TP_Strategy_Handle cb_tp_strategy_;
-
- FooServantListType foo_servants_;
- CallbackServantListType cb_servants_;
-
- ClientTask collocated_client_task_;
-
- ACE_CString exe_name_;
-
- ACE_CString ior_filename_prefix_;
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
- unsigned num_remote_clients_;
- unsigned num_collocated_clients_;
- unsigned collocated_client_kind_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/client_main.cpp b/TAO/tests/CSD_Strategy_Tests/Broken/client_main.cpp
deleted file mode 100644
index 3814bef5ff9..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/client_main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ClientApp)
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/run_test.pl b/TAO/tests/CSD_Strategy_Tests/Broken/run_test.pl
deleted file mode 100755
index 6d3802bc59f..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/run_test.pl
+++ /dev/null
@@ -1,186 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-my $status = 0;
-
-my $iorfname_prefix = "servant";
-my $num_servants = 1;
-my $num_orb_threads = 1;
-my $num_remote_clients = 1;
-my $num_csd_threads = 1;
-my $num_collocated_clients = 0;
-my $collocated_client_kind = 0;
-my $client_kind = 0;
-
-my $i;
-my $j;
-my @iorfile;
-
-my $ARGC = @ARGV;
-
-if ($ARGC > 0)
-{
- if ($ARGC > 1)
- {
- print STDERR "ERROR: Too many command-line arguments for $0.\n";
- exit 1;
- }
-
- my $subtest = $ARGV[0];
-
- if ($subtest eq 'remote')
- {
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'collocated')
- {
- $num_remote_clients = 0;
- $num_collocated_clients = 1;
- $num_csd_threads=1;
- }
- elsif ($subtest eq 'remote_orbthreads')
- {
- $num_orb_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_servants')
- {
- $num_servants = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_csdthreads')
- {
- $num_csd_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'usage')
- {
- print STDOUT "Usage: $0 [<subtest>]\n" .
- "\n" .
- "Supported <subtest> values:\n" .
- "\n" .
- "\tremote\n" .
- "\tcollocated\n" .
- "\tremote_orbthreads\n" .
- "\tremote_servants\n" .
- "\tremote_csdthreads\n" .
- "\tremote_big\n" .
- "\tusage\n" .
- "\n";
- exit 0;
- }
- else
- {
- print STDERR "ERROR: invalid subtest argument for $0: $subtest\n";
- exit 1;
- }
-}
-
-#Delete old ior files.
-for ($i = 0; $i < $num_servants; $i++) {
- my $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
- unlink $iorfile[$i];
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main",
-# "-ORBNegotiateCodesets 0 " .
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-else {
- $SV = new PerlACE::Process("server_main",
-# "-ORBNegotiateCodesets 0 " .
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-
-
-
-$SV->Spawn();
-
-# Wait for the servant ior files created by server.
-for ($i = 0; $i < $num_servants; $i++) {
- if (PerlACE::waitforfile_timed
- ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill();
- $SV->TimedWait(1);
- exit 1;
- }
-}
-
-my $count = 0;
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client_id = $i + 1;
-
- $j = $i % $num_servants;
-
- $CLS[$i] = new PerlACE::Process("client_main",
- "-i file://$iorfile[$j] ".
- "-k $client_kind ".
- "-n $client_id");
- $CLS[$i]->Spawn();
-}
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client = $CLS[$i]->WaitKill(60);
-
- if ($client != 0)
- {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill(60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for ($i = 0; $i < $num_servants; $i++) {
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/Broken/server_main.cpp b/TAO/tests/CSD_Strategy_Tests/Broken/server_main.cpp
deleted file mode 100644
index 82e987f6d41..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/Broken/server_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ServerApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/README b/TAO/tests/CSD_Strategy_Tests/README
deleted file mode 100644
index 4ab0940d42b..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/README
+++ /dev/null
@@ -1,117 +0,0 @@
-This directory contains tests for the Custom Servant Dispatching (CSD)
-feature implemented within TAO. Specifically, these tests use the reference
-implementation CSD Strategy, called the Thread Pool (TP) CSD Strategy.
-
-Each sub-directory should contain its own README file which describes the
-contents of the particular sub-directory in more detail. The following
-is a list of sub-directories located here under the
-$TAO_ROOT/tests/CSD_Strategy_Tests directory:
-
-TP_Test_Lib
------------
-
- This sub-directory contains source code used to build the
- "CSD_TP_Test" library (ie, libCSD_TP_Test.so). This library contains
- infrastructure code used by all of the CSD test applications. The
- purpose of this library is code re-use and ease of maintenance (ie,
- change/fix something in this library, and all applications using it
- will gain the benefit.)
-
-
-TP_Foo_A
---------
-
- This sub-directory contains source code used to build the
- "CSD_TP_Foo_A" library (ie, libCSD_TP_Foo_A.so). This library contains
- one IDL file which declares the "Foo_A" interface. All of the other
- source code in this library is used to support client and/or server
- applications that will use the Foo_A interface.
-
-
-TP_Foo_B
---------
-
- This sub-directory contains source code used to build the
- "CSD_TP_Foo_B" library (ie, libCSD_TP_Foo_B.so). This library contains
- one IDL file which declares the "Foo_B" interface. All of the other
- source code in this library is used to support client and/or server
- applications that will use the Foo_B interface.
-
-
-TP_Foo_C
---------
-
- This sub-directory contains source code used to build the
- "CSD_TP_Foo_C" library (ie, libCSD_TP_Foo_C.so). This library contains
- one IDL file which declares the "Foo_C" interface. All of the other
- source code in this library is used to support client and/or server
- applications that will use the Foo_C interface.
-
-
-TP_Test_1
----------
-
- This sub-directory contains source code that is used to build a
- client application and a server application. These applications
- make use of the Foo_A interface (see the TP_Foo_A directory).
- This particular pair of applications do not use all of the infrastructure
- types made available to them by the TP_Test_Lib.
-
- The TP_Test_1 application code is really more of an example than a test.
- Other test applications (ie, TP_Test_2) do the same thing as TP_Test_1,
- except that the other test applications take advantage of the
- infrastructure types provided by the TP_Test_Lib. Another big difference
- is that the TP_Test_1 does not perform any "actual" vs. "expected"
- results checking - and the other TP tests do perform these checks.
-
-
-TP_Test_2
----------
-
- This sub-directory contains source code that is used to build a
- client application and a server application. These applications
- make use of the Foo_A interface (see the TP_Foo_A directory).
-
- The Foo_A interface is a simple interface with just a few simple
- operations (both one-way and two-way).
-
- Each launched client application (ie, client process) represents a
- "remote" client of a Foo_A servant object that lives in a server
- process. The server application can be instructed, upon start up,
- to use any number of "collocated clients". Each collocated client is
- essentially a new thread in the server process that will perform the
- same logic that is performed by the remote client application.
-
-
-TP_Test_3
----------
-
- This sub-directory contains source code that is used to build a
- client application and a server application. These applications
- make use of the Foo_B interface (see the TP_Foo_B directory).
-
- The Foo_B interface has a rich set of operations, using a wide variety
- of argument types.
-
- The TP_Test_3 applications are nearly identical to their TP_Test_2
- counterparts, except for the fact that Foo_B is the interface type
- used in TP_Test_3, and Foo_A is the interface type used in TP_Test_2.
-
-
-TP_Test_4
----------
-
- This sub-directory contains source code that is used to build a
- client application and a server application. These applications
- make use of the Foo_C interface (see the TP_Foo_C directory).
-
- The Foo_C interface is a simple interface with just a few simple
- operations (both one-way and two-way). It is nearly (if not exactly)
- identical to the Foo_A interface.
-
- The TP_Test_4 applications are nearly identical to the TP_Test_2
- applications with one significant difference: the TP_Test_4 server
- application makes use of the "custom requests" feature provided by
- the CSD Thread Pool Strategy. These custom requests are performed
- by the collocated client code within the server application.
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.cpp
deleted file mode 100644
index db2d1ec202e..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-// $Id$
-#include "AppHelper.h"
-
-void
-AppHelper::ref_to_file(CORBA::ORB_ptr orb,
- CORBA::Object_ptr obj,
- const char* filename
- ACE_ENV_ARG_DECL)
-{
- CORBA::String_var ior = orb->object_to_string(obj);
-
- FILE* ior_file = ACE_OS::fopen(filename, (const ACE_TCHAR *)("w"));
-
- if (ior_file == 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Cannot open output file [%s] to write IOR.",
- filename));
- ACE_THROW (TestAppException());
- }
-
- ACE_OS::fprintf(ior_file, "%s", ior.in());
- ACE_OS::fclose(ior_file);
-}
-
-
-PortableServer::POA_ptr
-AppHelper::create_poa(const char* name,
- PortableServer::POA_ptr root_poa,
- PortableServer::POAManager_ptr mgr,
- CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL)
-{
- PortableServer::POA_var child_poa = root_poa->create_POA(name,
- mgr,
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- if (CORBA::is_nil(child_poa.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to create child POA: %s.\n", name));
- ACE_THROW_RETURN (TestAppException(), PortableServer::POA::_nil ());
- }
-
- return child_poa._retn();
-}
-
-
-CORBA::Object_ptr
-AppHelper::activate_servant(PortableServer::POA_ptr poa,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL)
-{
- // Activate the servant using the Child POA.
- PortableServer::ObjectId_var oid
- = poa->activate_object(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
-
- CORBA::Object_var obj
- = poa->servant_to_reference(servant ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (CORBA::Object::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert servant_to_ref.\n"));
- ACE_THROW_RETURN (TestAppException(), CORBA::Object::_nil ());
- }
-
- return obj._retn();
-}
-
-
-bool
-AppHelper::validate_connection (CORBA::Object_ptr obj)
-{
- for (CORBA::ULong j = 0; j != 100; ++j)
- {
- ACE_TRY_NEW_ENV
- {
-#if (TAO_HAS_CORBA_MESSAGING == 1)
- CORBA::PolicyList_var unused;
- obj->_validate_connection (unused
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#else
- obj->_is_a ("Not_An_IDL_Type"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-#endif /* TAO_HAS_MESSAGING == 1 */
- return true;
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- }
-
- return false;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.h
deleted file mode 100644
index 06a6ac721a2..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppHelper.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// $Id$
-#ifndef APPHELPER_H
-#define APPHELPER_H
-
-#include "CSD_TP_Test_Export.h"
-#include "TestAppExceptionC.h"
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/ORB.h"
-#include "ace/OS.h"
-#include "ace/Log_Msg.h"
-
-
-template <typename T>
-struct RefHelper
-{
- typedef typename T::_ptr_type T_ptr;
- typedef typename T::_var_type T_var;
-
- static T_ptr string_to_ref(CORBA::ORB_ptr orb,
- const char* ior
- ACE_ENV_ARG_DECL)
- {
- CORBA::Object_var obj = orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(T::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to convert IOR string to obj ref.\n"));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- T_var t_obj = T::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN(T::_nil ());
-
- if (CORBA::is_nil(t_obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow obj ref to T interface.\n"));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- return t_obj._retn();
- }
-
- static T_ptr resolve_initial_ref(CORBA::ORB_ptr orb,
- const char* name
- ACE_ENV_ARG_DECL)
- {
- CORBA::Object_var obj
- = orb->resolve_initial_references(name ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (T::_nil ());
-
- if (CORBA::is_nil(obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to resolve initial ref for '%s'.\n",
- name));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- T_var t_obj = T::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (T::_nil ());
-
-
- if (CORBA::is_nil(t_obj.in()))
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to narrow resolved initial ref '%s'.\n",
- name));
- ACE_THROW_RETURN (TestAppException(), T::_nil ());
- }
-
- return t_obj._retn();
- }
-
-};
-
-struct CSD_TP_Test_Export AppHelper
-{
-
- static void ref_to_file(CORBA::ORB_ptr orb,
- CORBA::Object_ptr obj,
- const char* filename
- ACE_ENV_ARG_DECL);
-
- static PortableServer::POA_ptr create_poa
- (const char* name,
- PortableServer::POA_ptr root_poa,
- PortableServer::POAManager_ptr mgr,
- CORBA::PolicyList& policies
- ACE_ENV_ARG_DECL);
-
- static CORBA::Object_ptr activate_servant(PortableServer::POA_ptr poa,
- PortableServer::Servant servant
- ACE_ENV_ARG_DECL);
-
- // This helper method is used because there is a chance that the
- // initial CORBA request made to the target ORB will fail during
- // connection establishment with a TRANSIENT CORBA SystemException.
- // This occurs for some platforms (ie, windows) when several clients
- // make their initial CORBA request to the same ORB at the same time,
- // causing the ORB to attempt to handle several connection establishments
- // at one time. Apparently, under certain conditions, it will throw the
- // TRANSIENT exception to tell the client application to "try again later".
- // The analogy is making a phone call. Sometimes you get a busy tone.
- // This means "try again later".
- // This helper function will retry until the connection establishment
- // works - or until it decides that enough is enough.
- static bool validate_connection (CORBA::Object_ptr obj);
-};
-
-#endif
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.cpp
deleted file mode 100644
index 53dec90290a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_unistd.h"
-
-
-AppShutdown::AppShutdown()
- : num_clients_(0),
- num_clients_shutdown_(0)
-{
-}
-
-
-AppShutdown::~AppShutdown()
-{
-}
-
-
-void
-AppShutdown::init(CORBA::ORB_ptr orb,
- unsigned num_clients
- ACE_ENV_ARG_DECL)
-{
- if ((!CORBA::is_nil(this->orb_.in())) ||
- (CORBA::is_nil(orb)) ||
- (num_clients == 0))
- {
- // Already init()'ed, or bad argument values.
- ACE_THROW(TestAppException());
- }
- else
- {
- this->orb_ = CORBA::ORB::_duplicate(orb);
- this->num_clients_ = num_clients;
- this->num_clients_shutdown_ = 0;
- }
-}
-
-
-void
-AppShutdown::wait ()
-{
- this->orb_shutdown_task_.wait();
-}
-
-
-void
-AppShutdown::client_done()
-{
- if ((this->num_clients_ == 0) || (CORBA::is_nil(this->orb_.in())))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) AppShutdown was never initialized.\n"));
- return;
- }
-
- unsigned cur_shutdown;
-
- {
- GuardType guard(this->lock_);
- cur_shutdown = ++this->num_clients_shutdown_;
- }
-
- if (cur_shutdown == this->num_clients_)
- {
- // Sleep for one second before shutting down the ORB. This
- // is a poor-man version of "wait until the CSD request queue drains".
- ACE_OS::sleep(1);
- this->orb_shutdown_task_.orb(this->orb_.in());
- if (this->orb_shutdown_task_.open(0) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t) AppShutdown failed to create orb "\
- "shutdown thread.\n"));
- return;
- }
- }
-}
-
-
-AppShutdown*
-AppShutdown::instance ()
-{
- static AppShutdown app_shutdown;
- return &app_shutdown;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.h
deleted file mode 100644
index d79c2aababf..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/AppShutdown.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-#ifndef APP_SHUTDOWN_H
-#define APP_SHUTDOWN_H
-
-#include "CSD_TP_Test_Export.h"
-#include "OrbShutdownTask.h"
-#include "tao/ORB.h"
-
-class CSD_TP_Test_Export AppShutdown
-{
- public:
-
- AppShutdown();
- virtual ~AppShutdown();
-
- void init(CORBA::ORB_ptr orb,
- unsigned num_clients
- ACE_ENV_ARG_DECL);
-
- void wait ();
-
- void client_done();
-
- static AppShutdown* instance ();
-
- private:
-
- typedef ACE_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
-
- LockType lock_;
- CORBA::ORB_var orb_;
- unsigned num_clients_;
- unsigned num_clients_shutdown_;
-
- OrbShutdownTask orb_shutdown_task_;
-};
-
-
-#define TheAppShutdown AppShutdown::instance()
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Export.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Export.h
deleted file mode 100644
index 9ebd7dc8f34..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s CSD_TP_Test
-// ------------------------------
-#ifndef CSD_TP_TEST_EXPORT_H
-#define CSD_TP_TEST_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CSD_TP_TEST_HAS_DLL)
-# define CSD_TP_TEST_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CSD_TP_TEST_HAS_DLL */
-
-#if !defined (CSD_TP_TEST_HAS_DLL)
-# define CSD_TP_TEST_HAS_DLL 1
-#endif /* ! CSD_TP_TEST_HAS_DLL */
-
-#if defined (CSD_TP_TEST_HAS_DLL) && (CSD_TP_TEST_HAS_DLL == 1)
-# if defined (CSD_TP_TEST_BUILD_DLL)
-# define CSD_TP_Test_Export ACE_Proper_Export_Flag
-# define CSD_TP_TEST_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_TEST_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CSD_TP_TEST_BUILD_DLL */
-# define CSD_TP_Test_Export ACE_Proper_Import_Flag
-# define CSD_TP_TEST_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_TEST_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CSD_TP_TEST_BUILD_DLL */
-#else /* CSD_TP_TEST_HAS_DLL == 1 */
-# define CSD_TP_Test_Export
-# define CSD_TP_TEST_SINGLETON_DECLARATION(T)
-# define CSD_TP_TEST_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CSD_TP_TEST_HAS_DLL == 1 */
-
-// Set CSD_TP_TEST_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CSD_TP_TEST_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CSD_TP_TEST_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CSD_TP_TEST_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CSD_TP_TEST_NTRACE */
-
-#if (CSD_TP_TEST_NTRACE == 1)
-# define CSD_TP_TEST_TRACE(X)
-#else /* (CSD_TP_TEST_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CSD_TP_TEST_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CSD_TP_TEST_NTRACE == 1) */
-
-#endif /* CSD_TP_TEST_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.mpc
deleted file mode 100644
index 453ea84a1f0..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib.mpc
+++ /dev/null
@@ -1,39 +0,0 @@
-//$Id$
-project : taolib_with_idl, csd_threadpool {
- sharedname = CSD_TP_Test
- dynamicflags = CSD_TP_TEST_BUILD_DLL
- idlflags += -Wb,export_macro=CSD_TP_Test_Export \
- -Wb,export_include=CSD_TP_Test_Export.h
- includes += $(TAO_ROOT)/tao
-
- IDL_Files {
- FooException.idl
- TestAppException.idl
- CancelledException.idl
- CustomException.idl
- }
-
- Source_Files {
- AppHelper.cpp
- AppShutdown.cpp
- ClientEngine.cpp
- ClientTask.cpp
- OrbRunner.cpp
- OrbTask.cpp
- TestAppBase.cpp
- StatisticsHelper.cpp
- OrbShutdownTask.cpp
- FooExceptionC.cpp
- FooExceptionS.cpp
- TestAppExceptionC.cpp
- TestAppExceptionS.cpp
- CancelledExceptionC.cpp
- CancelledExceptionS.cpp
- CustomExceptionC.cpp
- CustomExceptionS.cpp
- }
-
- Template_Files {
- ServantList_T.cpp
- }
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/CancelledException.idl b/TAO/tests/CSD_Strategy_Tests/TP_Common/CancelledException.idl
deleted file mode 100644
index 8f9afcf68de..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/CancelledException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef CANCELAPPXCEPTION_IDL
-#define CANCELAPPXCEPTION_IDL
-
-exception CancelledException {};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.cpp
deleted file mode 100644
index 361bb3cd465..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// $Id$
-#include "ClientEngine.h"
-
-
-ClientEngine::ClientEngine()
-{
-}
-
-
-ClientEngine::~ClientEngine()
-{
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.h
deleted file mode 100644
index 3fdd3efd233..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientEngine.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef CLIENT_ENGINE_H
-#define CLIENT_ENGINE_H
-
-#include "CSD_TP_Test_Export.h"
-#include "tao/Intrusive_Ref_Count_Base_T.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-#include "tao/Environment.h"
-#include "ace/Synch.h"
-#include "ace/CORBA_macros.h"
-
-
-class ClientEngine;
-typedef TAO_Intrusive_Ref_Count_Handle<ClientEngine> ClientEngine_Handle;
-
-
-class CSD_TP_Test_Export ClientEngine : public TAO_Intrusive_Ref_Count_Base<ACE_SYNCH_MUTEX>
-{
- public:
-
- ClientEngine();
- virtual ~ClientEngine();
-
- virtual bool execute(ACE_ENV_SINGLE_ARG_DECL) = 0;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.cpp
deleted file mode 100644
index 00d92a17608..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.cpp
+++ /dev/null
@@ -1,116 +0,0 @@
-// $Id$
-#include "ClientTask.h"
-#include "ClientEngine.h"
-#include "AppShutdown.h"
-#include "ace/SString.h"
-
-
-ClientTask::ClientTask(bool shutdown_after_done)
-: shutdown_after_done_(shutdown_after_done),
- failure_count_(0)
-{
-}
-
-
-ClientTask::~ClientTask()
-{
-}
-
-
-void
-ClientTask::add_engine(ClientEngine* engine)
-{
- // Pass in false so that _add_ref() is called.
- ClientEngine_Handle engine_handle(engine,false);
- this->engines_.push_back(engine_handle);
-}
-
-
-int
-ClientTask::open(void*)
-{
- size_t num_threads = this->engines_.size();
-
- if (num_threads == 0)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) ClientTask cannot activate 0 threads.\n"),
- -1);
- }
-
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, num_threads) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) ClientTask failed to activate "
- "the %d client threads.\n", num_threads),
- -1);
- }
-
- return 0;
-}
-
-
-int
-ClientTask::svc()
-{
- ClientEngine_Handle engine;
-
- {
- GuardType guard(this->lock_);
- this->engines_.get(engine, this->engines_.size() - 1);
- this->engines_.pop_back();
- }
-
- ACE_TRY_NEW_ENV
- {
- bool exec_ret = engine->execute(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- if (exec_ret == false)
- {
- GuardType guard(this->lock_);
- this->failure_count_ ++;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "ClientTask::svc Caught exception from execute():");
-
- GuardType guard(this->lock_);
- this->failure_count_ ++;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) ClientTask::svc caught unknown (...) exception "\
- "in execute() " ));
- GuardType guard(this->lock_);
- this->failure_count_ ++;
- }
- ACE_ENDTRY;
-
- if(this->shutdown_after_done_)
- {
- // This is used to shutdown orb for a client application
- // with an orb running.
- TheAppShutdown->client_done ();
- }
-
- return 0;
-}
-
-
-int
-ClientTask::close(u_long)
-{
- return 0;
-}
-
-
-unsigned
-ClientTask::failure_count () const
-{
- return this->failure_count_;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.h
deleted file mode 100644
index cc3de7ec8a2..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/ClientTask.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ClientTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef CLIENT_TASK_H
-#define CLIENT_TASK_H
-
-#include "CSD_TP_Test_Export.h"
-#include "ClientEngine.h"
-#include "ace/Task.h"
-#include "ace/Vector_T.h"
-#include "ace/Synch.h"
-
-
-class CSD_TP_Test_Export ClientTask : public ACE_Task_Base
-{
- public:
-
- ClientTask(bool shutdown_after_done = false);
- virtual ~ClientTask();
-
- void add_engine(ClientEngine* engine);
-
- virtual int open(void* arg = 0);
- virtual int svc();
- virtual int close(u_long);
-
- unsigned failure_count () const;
-
- private:
-
- typedef ACE_SYNCH_MUTEX LockType;
- typedef ACE_Guard<LockType> GuardType;
-
- typedef ACE_Vector<ClientEngine_Handle> EngineVector;
-
- LockType lock_;
- EngineVector engines_;
- bool shutdown_after_done_;
- unsigned failure_count_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/CustomException.idl b/TAO/tests/CSD_Strategy_Tests/TP_Common/CustomException.idl
deleted file mode 100644
index 794900c41ce..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/CustomException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef CUSTOMEXCEPTION_IDL
-#define CUSTOMEXCEPTION_IDL
-
-exception CustomException {};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/FooException.idl b/TAO/tests/CSD_Strategy_Tests/TP_Common/FooException.idl
deleted file mode 100644
index 4f76953e24c..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/FooException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef FOOEXCEPTION_IDL
-#define FOOEXCEPTION_IDL
-
-exception FooException {};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.cpp
deleted file mode 100644
index 0cc9c9bd5ad..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// $Id$
-#include "OrbRunner.h"
-#include "OrbTask.h"
-#include "TestAppExceptionC.h"
-
-
-OrbRunner::OrbRunner(CORBA::ORB_ptr orb, unsigned num_orb_threads)
- : orb_(CORBA::ORB::_duplicate(orb)),
- num_orb_threads_(num_orb_threads)
-{
-}
-
-
-OrbRunner::~OrbRunner()
-{
-}
-
-
-void
-OrbRunner::run(ACE_ENV_SINGLE_ARG_DECL)
-{
- ACE_ASSERT(this->num_orb_threads_ > 0);
-
- // If the num_orb_threads_ is exactly one, then just use the current
- // (mainline) thread to run the ORB event loop.
- if (this->num_orb_threads_ == 1)
- {
- // Since the num_orb_threads_ is exactly one, we just use the current
- // (mainline) thread to run the ORB event loop.
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- // The num_orb_threads_ is greater than 1, so we will use an OrbTask
- // (active object) to run the ORB event loop in (num_orb_threads_ - 1)
- // threads. We use the current (mainline) thread as the other thread
- // running the ORB event loop.
- OrbTask orb_task(this->orb_.in(), this->num_orb_threads_ - 1);
-
- // Activate the OrbTask worker threads
- if (orb_task.open(0) != 0)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Failed to open the OrbTask.\n"));
- ACE_THROW(TestAppException());
- }
-
- // This will use the current (mainline) thread to run the ORB event loop.
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Now that the current thread has unblocked from running the orb,
- // make sure to wait for all of the worker threads to complete.
- orb_task.wait();
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.h
deleted file mode 100644
index 71c7c4e358c..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbRunner.h
+++ /dev/null
@@ -1,24 +0,0 @@
-// $Id$
-#ifndef ORB_RUNNER_H
-#define ORB_RUNNER_H
-
-#include "CSD_TP_Test_Export.h"
-#include "tao/ORB.h"
-
-class CSD_TP_Test_Export OrbRunner
-{
- public:
-
- OrbRunner(CORBA::ORB_ptr orb, unsigned num_orb_threads = 1);
- virtual ~OrbRunner();
-
- void run(ACE_ENV_SINGLE_ARG_DECL);
-
-
- private:
-
- CORBA::ORB_var orb_;
- unsigned num_orb_threads_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.cpp
deleted file mode 100644
index 79ba1ba3f5e..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbShutdownTask.h"
-#include "ace/CORBA_macros.h"
-#include "ace/OS_NS_unistd.h"
-
-
-OrbShutdownTask::OrbShutdownTask()
-{
-}
-
-
-OrbShutdownTask::~OrbShutdownTask()
-{
-}
-
-
-void
-OrbShutdownTask::orb(CORBA::ORB_ptr orb)
-{
- this->orb_ = CORBA::ORB::_duplicate(orb);
-}
-
-
-int
-OrbShutdownTask::open(void*)
-{
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbShutdownTask failed to open().\n"),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::svc()
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::shutdown() call "
- "in OrbShutdownTask::svc().\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbShutdownTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.h
deleted file mode 100644
index 221251a7d3f..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbShutdownTask.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbShutdownTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_SHUTDOWN_TASK_H
-#define ORB_SHUTDOWN_TASK_H
-
-#include "CSD_TP_Test_Export.h"
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-
-class CSD_TP_Test_Export OrbShutdownTask : public ACE_Task_Base
-{
- public:
-
- OrbShutdownTask();
- virtual ~OrbShutdownTask();
-
- void orb(CORBA::ORB_ptr orb);
-
- virtual int open(void*);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.cpp
deleted file mode 100644
index ff6ad717898..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.cpp
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#include "OrbTask.h"
-#include "ace/CORBA_macros.h"
-
-namespace { enum { MAX_ORB_TASK_WORKER_THREADS = 20 }; }
-
-
-OrbTask::OrbTask(CORBA::ORB_ptr orb, unsigned num_threads)
- : orb_(CORBA::ORB::_duplicate(orb)),
- num_threads_(num_threads)
-{
-}
-
-
-OrbTask::~OrbTask()
-{
-}
-
-
-int
-OrbTask::open(void*)
-{
- if (this->num_threads_ < 1)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is less-than 1.\n",
- this->num_threads_),
- -1);
- }
-
- if (this->num_threads_ > MAX_ORB_TASK_WORKER_THREADS)
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "num_threads_ (%d) is too large. Max is %d.\n",
- this->num_threads_, MAX_ORB_TASK_WORKER_THREADS),
- -1);
- }
-
- if (CORBA::is_nil(this->orb_.in()))
- {
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to open. "
- "ORB object reference is nil.\n"),
- -1);
- }
-
- if (this->activate(THR_NEW_LWP | THR_JOINABLE, this->num_threads_) != 0)
- {
- // Assumes that when activate returns non-zero return code that
- // no threads were activated.
- ACE_ERROR_RETURN((LM_ERROR,
- "(%P|%t) OrbTask failed to activate "
- "(%d) worker threads.\n",
- this->num_threads_),
- -1);
- }
-
- return 0;
-}
-
-
-int
-OrbTask::svc()
-{
- ACE_TRY_NEW_ENV
- {
- this->orb_->run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Exception raised by ORB::run() method. "
- "OrbTask is stopping.\n"));
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-
-int
-OrbTask::close(u_long)
-{
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.h
deleted file mode 100644
index dc01e3ca191..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/OrbTask.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file OrbTask.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef ORB_TASK_H
-#define ORB_TASK_H
-
-#include "CSD_TP_Test_Export.h"
-#include "ace/Task.h"
-#include "tao/ORB.h"
-
-class CSD_TP_Test_Export OrbTask : public ACE_Task_Base
-{
- public:
-
- OrbTask(CORBA::ORB_ptr orb, unsigned num_threads = 1);
- virtual ~OrbTask();
-
- virtual int open(void* x = 0);
- virtual int svc();
- virtual int close(u_long);
-
-
- private:
-
- CORBA::ORB_var orb_;
- unsigned num_threads_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.cpp
deleted file mode 100644
index 2727c975253..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-// $Id$
-#include "ServantList_T.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-
-
-template <typename T>
-ServantList<T>::ServantList()
-{
-}
-
-
-template <typename T>
-ServantList<T>::~ServantList()
-{
-}
-
-
-template <typename T>
-void
-ServantList<T>::create_and_activate(unsigned num_servants,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- const char* ior_fname_prefix
- ACE_ENV_ARG_DECL)
-{
- for (unsigned i = 0; i < num_servants; i++)
- {
- char buf[32];
- ACE_OS::sprintf(buf, "%02d", i + 1);
- ACE_CString filename = ACE_CString(ior_fname_prefix) + "_" + buf + ".ior";
- ServantRecord record;
- record.servant_ = new T();
- record.safe_servant_ = record.servant_;
-
- CORBA::Object_var obj
- = AppHelper::activate_servant(poa,
- record.safe_servant_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- AppHelper::ref_to_file(orb, obj.in(), filename.c_str() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- record.obj_ = T_stub::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(record.obj_.in()))
- {
- ACE_THROW (TestAppException());
- }
-
- this->servant_records_.push_back(record);
- }
-}
-
-
-template <typename T>
-void
-ServantList<T>::create_and_activate(unsigned num_servants,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL)
-{
- for (unsigned i = 0; i < num_servants; i++)
- {
- ServantRecord record;
- record.servant_ = new T();
- record.safe_servant_ = record.servant_;
-
- CORBA::Object_var obj
- = AppHelper::activate_servant(poa,
- record.safe_servant_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- record.obj_ = T_stub::_narrow(obj.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(record.obj_.in()))
- {
- ACE_THROW (TestAppException());
- }
-
- this->servant_records_.push_back(record);
- }
-}
-
-
-// Code for reference - doesn't work right now
-#if 0
-template <typename T>
-void
-ServantList<T>::deactivate(PortableServer::POA_ptr poa)
-{
- ServantRecord record;
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- PortableServer::ObjectId_var id =
- poa->servant_to_id(record.safe_servant_.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- poa->deactivate_object(id.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "ServantList_T::deactivate_servant ()");
- }
- ACE_CATCHALL
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)ServantList_T::deactivate_servant "
- "Caught unknown exception \n"));
- }
- ACE_ENDTRY;
- ACE_CHECK;
-}
-#endif
-
-
-template <typename T>
-typename ServantList<T>::T_stub_ptr
-ServantList<T>::objref(unsigned index)
-{
- return T_stub::_duplicate(this->servant_records_[index].obj_.in());
-}
-
-
-template <typename T>
-T*
-ServantList<T>::servant(unsigned index)
-{
- return this->servant_records_[index].servant_;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.h
deleted file mode 100644
index 3cc61e42905..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/ServantList_T.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// $Id$
-#ifndef SERVANTLIST_T_H
-#define SERVANTLIST_T_H
-
-#include "tao/PortableServer/PortableServer.h"
-#include "tao/PortableServer/Servant_Base.h"
-#include "ace/Vector_T.h"
-
-
-// The T type is a concrete servant type.
-template <class T>
-class ServantList
-{
- public:
-
- typedef typename T::_stub_type T_stub;
- typedef typename T::_stub_ptr_type T_stub_ptr;
- typedef typename T::_stub_var_type T_stub_var;
-
- ServantList();
- ~ServantList();
-
- /// Activate servant and output ior to a file.
- void create_and_activate(unsigned num_servants,
- CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- const char* ior_fname_prefix
- ACE_ENV_ARG_DECL);
-
- /// Activate servant and not output ior to a file.
- void create_and_activate(unsigned num_servants,
- PortableServer::POA_ptr poa
- ACE_ENV_ARG_DECL);
-
- // Code not used and not working right now - possible future addition.
- //void deactivate(PortableServer::POA_ptr poa);
-
- /// Get a (copy) of one of the object references (for a specific servant).
- T_stub_ptr objref(unsigned index);
- /// This doesn't return a copy.
- T* servant(unsigned index);
-
-
- private:
-
- struct ServantRecord
- {
- T* servant_;
- PortableServer::ServantBase_var safe_servant_;
- T_stub_var obj_;
- };
-
- typedef ACE_Vector<ServantRecord> ServantRecordVector;
-
- ServantRecordVector servant_records_;
-};
-
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "ServantList_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("ServantList_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-#endif /* SERVANTLIST_T_H */
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.cpp
deleted file mode 100644
index 456d7025478..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// $Id$
-#include "StatisticsHelper.h"
-
-// swap function for integers
-void swap ( CORBA::Long& x, CORBA::Long& y )
-{
- CORBA::Long temp;
- temp = x;
- x = y;
- y = temp;
-}
-
-
-void sort ( LongVector & vector )
-{
- unsigned size = vector.size ();
-
- if (size > 0)
- {
- unsigned indexOfMin;
- unsigned pass;
- unsigned j;
-
- for ( pass = 0; pass < size - 1; pass++ )
- {
- indexOfMin = pass;
-
- for ( j = pass + 1; j < size; j++ )
- if ( vector[j] < vector[indexOfMin] )
- indexOfMin = j;
-
- swap ( vector[pass], vector[indexOfMin] );
- }
- }
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.h
deleted file mode 100644
index 7f26a4ae165..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/StatisticsHelper.h
+++ /dev/null
@@ -1,24 +0,0 @@
-// $Id$
-#ifndef STATISTICS_HELPER_H
-#define STATISTICS_HELPER_H
-
-#include "CSD_TP_Test_Export.h"
-#include "tao/Basic_Types.h"
-#include "ace/Array.h"
-#include "ace/Vector_T.h"
-#include "ace/SString.h"
-
-
-typedef ACE_Vector< CORBA::Long, 1000 > LongVector;
-typedef ACE_Vector< ACE_CString, 1000 > StringVector;
-typedef ACE_Array< CORBA::Long > LongArray;
-
-
-extern CSD_TP_Test_Export
-void swap ( CORBA::Long& x, CORBA::Long& y );
-
-extern CSD_TP_Test_Export
-void sort ( LongVector & vector );
-
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp
deleted file mode 100644
index f2a2e97b7a2..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#include "TestAppBase.h"
-
-TestAppBase::TestAppBase(const char* name)
- : name_(name)
-{
-}
-
-
-TestAppBase::~TestAppBase()
-{
-}
-
-
-const char*
-TestAppBase::name() const
-{
- return this->name_.c_str();
-}
-
-
-int
-TestAppBase::run(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int rc = this->run_i(argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Convert 1 to 0. Leave 0 and -1 as they are.
- return (rc == 1) ? 0 : rc;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h
deleted file mode 100644
index 5138ffbf84c..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// $Id$
-#ifndef TESTAPPBASE_H
-#define TESTAPPBASE_H
-
-#include "CSD_TP_Test_Export.h"
-#include "ace/SString.h"
-#include "tao/Environment.h"
-#include "ace/CORBA_macros.h"
-
-
-class CSD_TP_Test_Export TestAppBase
-{
- public:
-
- virtual ~TestAppBase();
-
- // Returns 0 for success, and -1 for failure.
- int run(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
- const char* name() const;
-
-
- protected:
-
- TestAppBase(const char* name);
-
- // Returns -1 for failure, 0 for success
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL) = 0;
-
-
- private:
-
- ACE_CString name_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppException.idl b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppException.idl
deleted file mode 100644
index 2ac53939b77..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppException.idl
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#ifndef TESTAPPXCEPTION_IDL
-#define TESTAPPXCEPTION_IDL
-
-exception TestAppException {};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h b/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h
deleted file mode 100644
index 062b6fc0c8e..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppMain.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// $Id$
-#ifndef TESTAPPMAIN_H
-#define TESTAPPMAIN_H
-
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "tao/Exception.h"
-#include "tao/Environment.h"
-
-#define TEST_APP_MAIN(APP_TYPE) \
-int \
-main(int argc, char* argv[]) \
-{ \
- ACE_LOG_MSG->priority_mask(LM_TRACE | \
- LM_DEBUG | \
- LM_INFO | \
- LM_NOTICE | \
- LM_WARNING | \
- LM_ERROR | \
- LM_CRITICAL | \
- LM_ALERT | \
- LM_EMERGENCY, \
- ACE_Log_Msg::PROCESS); \
-\
- APP_TYPE app; \
-\
- ACE_TRY_NEW_ENV \
- { \
- int ret = app.run(argc,argv ACE_ENV_ARG_PARAMETER); \
- ACE_TRY_CHECK; \
- return ret; \
- } \
- ACE_CATCHANY \
- { \
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, \
- "Caught exception:"); \
- } \
- ACE_CATCHALL \
- { \
- ACE_ERROR((LM_ERROR, \
- "(%P|%t) Unknown (...) exception caught in main() " \
- "for App [%d].\n", app.name())); \
- } \
- ACE_ENDTRY; \
- \
- return 1; \
-}
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/CSD_TP_Foo_A_Export.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/CSD_TP_Foo_A_Export.h
deleted file mode 100644
index 9b855c486d8..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/CSD_TP_Foo_A_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s CSD_TP_Foo_A
-// ------------------------------
-#ifndef CSD_TP_FOO_A_EXPORT_H
-#define CSD_TP_FOO_A_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CSD_TP_FOO_A_HAS_DLL)
-# define CSD_TP_FOO_A_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CSD_TP_FOO_A_HAS_DLL */
-
-#if !defined (CSD_TP_FOO_A_HAS_DLL)
-# define CSD_TP_FOO_A_HAS_DLL 1
-#endif /* ! CSD_TP_FOO_A_HAS_DLL */
-
-#if defined (CSD_TP_FOO_A_HAS_DLL) && (CSD_TP_FOO_A_HAS_DLL == 1)
-# if defined (CSD_TP_FOO_A_BUILD_DLL)
-# define CSD_TP_Foo_A_Export ACE_Proper_Export_Flag
-# define CSD_TP_FOO_A_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_FOO_A_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CSD_TP_FOO_A_BUILD_DLL */
-# define CSD_TP_Foo_A_Export ACE_Proper_Import_Flag
-# define CSD_TP_FOO_A_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_FOO_A_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CSD_TP_FOO_A_BUILD_DLL */
-#else /* CSD_TP_FOO_A_HAS_DLL == 1 */
-# define CSD_TP_Foo_A_Export
-# define CSD_TP_FOO_A_SINGLETON_DECLARATION(T)
-# define CSD_TP_FOO_A_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CSD_TP_FOO_A_HAS_DLL == 1 */
-
-// Set CSD_TP_FOO_A_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CSD_TP_FOO_A_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CSD_TP_FOO_A_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CSD_TP_FOO_A_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CSD_TP_FOO_A_NTRACE */
-
-#if (CSD_TP_FOO_A_NTRACE == 1)
-# define CSD_TP_FOO_A_TRACE(X)
-#else /* (CSD_TP_FOO_A_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CSD_TP_FOO_A_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CSD_TP_FOO_A_NTRACE == 1) */
-
-#endif /* CSD_TP_FOO_A_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A.idl b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A.idl
deleted file mode 100644
index e9f3b0345f8..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_A_IDL
-#define FOO_A_IDL
-
-#include "FooException.idl"
-
-interface Foo_A
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, 1 "in" argument
- long op3(in long value);
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. The last client to claim that it is
- /// done will cause the server to shutdown.
- void done();
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.cpp
deleted file mode 100644
index bb0d1cf1bf7..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// $Id$
-#include "Foo_A_ClientEngine.h"
-#include "Foo_A_Statistics.h"
-#include "TestAppExceptionC.h"
-#include "AppHelper.h"
-#include "ace/Log_Msg.h"
-
-Foo_A_ClientEngine::Foo_A_ClientEngine(Foo_A_ptr obj,
- unsigned client_id,
- bool collocated)
- : obj_(Foo_A::_duplicate(obj)),
- client_id_ (client_id),
- collocated_ (collocated)
-{
-}
-
-
-Foo_A_ClientEngine::~Foo_A_ClientEngine()
-{
-}
-
-
-bool
-Foo_A_ClientEngine::execute(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Make sure the connection is established before making
- // remote invocations.
- if (AppHelper::validate_connection (this->obj_.in ()) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_ClientEngine::execute " \
- "client %d connect failed.\n", this->client_id_));
- return false;
- }
-
- // Verify the return values and return the results.
- bool check_validity = true;
-
- CORBA::Long i = this->client_id_;
-
- this->obj_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- this->obj_->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- CORBA::Long value = this->obj_->op3(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- if (value != i)
- {
- check_validity = false;
- }
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- this->obj_->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- }
-
- bool caught_exception = false;
-
- ACE_TRY
- {
- this->obj_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- // Expected
- caught_exception = true;
- }
- ACE_ENDTRY;
-
- if (! caught_exception)
- {
- check_validity = false;
- }
-
- this->obj_->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- return check_validity;
-}
-
-
-void
-Foo_A_ClientEngine::expected_results(Foo_A_Statistics& stats)
-{
- stats.expected(1, 1);
- stats.expected(2, 1);
- stats.expected(3, 1);
- stats.expected(4, 5);
- stats.expected(5, 1);
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.h
deleted file mode 100644
index 4f49888f34f..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_ClientEngine.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_A_ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_A_CLIENT_ENGINE_H
-#define FOO_A_CLIENT_ENGINE_H
-
-#include "CSD_TP_Foo_A_Export.h"
-#include "ClientEngine.h"
-#include "Foo_AC.h"
-
-class Foo_A_Statistics;
-
-class CSD_TP_Foo_A_Export Foo_A_ClientEngine : public ClientEngine
-{
- public:
-
- Foo_A_ClientEngine(Foo_A_ptr obj, unsigned client_id = 0, bool collocated = false);
- virtual ~Foo_A_ClientEngine();
-
- virtual bool execute(ACE_ENV_SINGLE_ARG_DECL);
-
- static void expected_results(Foo_A_Statistics& stats);
-
- private:
-
- Foo_A_var obj_;
- unsigned client_id_;
- bool collocated_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.cpp
deleted file mode 100644
index 1ef8ce83cd7..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-// $Id$
-#include "Foo_A_Statistics.h"
-#include "Foo_A_ClientEngine.h"
-
-Foo_A_Statistics::Foo_A_Statistics(unsigned num_clients)
-: num_clients_ (num_clients)
-{
- for (unsigned i = 0; i < 5; i++)
- {
- this->expected_[i] = 0;
- this->actual_[i] = 0;
- }
-}
-
-
-Foo_A_Statistics::~Foo_A_Statistics()
-{
-}
-
-
-void
-Foo_A_Statistics::expected(unsigned op_num, unsigned count)
-{
- this->expected_[op_num-1] = count * this->num_clients_;
-}
-
-
-void
-Foo_A_Statistics::actual(unsigned op_num, unsigned count)
-{
- this->actual_[op_num-1] += count;
-}
-
-
-void
-Foo_A_Statistics::actual_in_values(unsigned op_num, LongVector lv)
-{
- size_t sz = lv.size();
- for (size_t i = 0; i < sz; i++)
- {
- this->actual_in_values_[op_num-1].push_back (lv[i]);
- }
-}
-
-
-bool
-Foo_A_Statistics::actual_vs_expected()
-{
- Foo_A_Statistics stats (1);
- Foo_A_ClientEngine::expected_results (stats);
-
- for (unsigned i = 0; i < 5; i++)
- {
- if (this->expected_[i] != this->actual_[i])
- {
- return false;
- }
-
- // Verify the "in" values.
- // Skip op1/op5 since they do not have any "in" values.
- if (i % 5 == 0 || i % 5 == 4)
- {
- continue;
- }
-
- unsigned actual_size
- = this->actual_in_values_[i].size ();
- unsigned expected_size
- = this->num_clients_ * stats.expected_[i];
- if (actual_size != expected_size)
- {
- return false;
- }
- sort (this->actual_in_values_[i]);
-
- for (unsigned j = 0; j < actual_size - 1; j++)
- {
- if (this->actual_in_values_[i][j] != this->actual_in_values_[i][j + 1] - 1)
- {
- return false;
- }
- }
- }
- return true;
-}
-
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.h
deleted file mode 100644
index d5bf9ea2c71..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_Statistics.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// $Id$
-#ifndef STATISTICS_A_H
-#define STATISTICS_A_H
-
-#include "CSD_TP_Foo_A_Export.h"
-#include "StatisticsHelper.h"
-
-
-class CSD_TP_Foo_A_Export Foo_A_Statistics
-{
- public:
-
- Foo_A_Statistics(unsigned num_clients);
-
- virtual ~Foo_A_Statistics();
-
- void expected(unsigned op_num, unsigned count);
- void actual(unsigned op_num, unsigned count);
- void actual_in_values(unsigned op_num, LongVector lv);
-
- bool actual_vs_expected();
-
-
- private:
-
- unsigned num_clients_;
-
- unsigned expected_[5];
- unsigned actual_[5];
-
- LongVector actual_in_values_ [5];
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.cpp
deleted file mode 100644
index a3bab7748aa..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-// $Id$
-#include "Foo_A_i.h"
-#include "AppShutdown.h"
-
-
-Foo_A_i::Foo_A_i()
-{
- for (unsigned i = 0; i < 5; i++)
- {
- this->op_count_[i] = 0;
- }
-}
-
-
-Foo_A_i::~Foo_A_i()
-{
-}
-
-
-void
-Foo_A_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[0] ++;
-}
-
-
-void
-Foo_A_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->in_values_[1].push_back (value);
- this->op_count_[1] ++;
-}
-
-
-CORBA::Long
-Foo_A_i::op3(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->in_values_[2].push_back (value);
- this->op_count_[2] ++;
- return value;
-}
-
-
-void
-Foo_A_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->in_values_[3].push_back (value);
- this->op_count_[3] ++;
-}
-
-
-void
-Foo_A_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- this->op_count_[4] ++;
- ACE_THROW (FooException());
-}
-
-
-void
-Foo_A_i::done(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- TheAppShutdown->client_done();
-}
-
-
-void
-Foo_A_i::gather_stats(Foo_A_Statistics& stats)
-{
- for (unsigned i = 0; i < 5; i++)
- {
- stats.actual (i + 1, this->op_count_[i]);
- stats.actual_in_values (i + 1, this->in_values_[i]);
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h
deleted file mode 100644
index 6361baa6ca7..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/Foo_A_i.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// $Id$
-#ifndef FOO_A_I_H
-#define FOO_A_I_H
-
-#include "CSD_TP_Foo_A_Export.h"
-#include "Foo_AS.h"
-#include "Foo_A_Statistics.h"
-
-
-class CSD_TP_Foo_A_Export Foo_A_i : public virtual POA_Foo_A
-{
- public:
-
- Foo_A_i();
- virtual ~Foo_A_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- void gather_stats (Foo_A_Statistics& stats) ;
-
- private:
-
- LongVector in_values_ [5];
- unsigned op_count_ [5];
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/csd_tp_foo_a_lib.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/csd_tp_foo_a_lib.mpc
deleted file mode 100644
index 7f2027a9f5d..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_A/csd_tp_foo_a_lib.mpc
+++ /dev/null
@@ -1,20 +0,0 @@
-//$Id$
-project : csd_tp_test_lib {
- sharedname = CSD_TP_Foo_A
- dynamicflags = CSD_TP_FOO_A_BUILD_DLL
- idlflags += -Wb,export_macro=CSD_TP_Foo_A_Export -Wb,export_include=CSD_TP_Foo_A_Export.h
- includes += $(TAO_ROOT)/tao
-
- IDL_Files {
- Foo_A.idl
- }
-
- Source_Files {
- Foo_AC.cpp
- Foo_AS.cpp
- Foo_A_ClientEngine.cpp
- Foo_A_i.cpp
- Foo_A_Statistics.cpp
- }
-
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/CSD_TP_Foo_B_Export.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/CSD_TP_Foo_B_Export.h
deleted file mode 100644
index c6e2f4cd967..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/CSD_TP_Foo_B_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s CSD_TP_Foo_B
-// ------------------------------
-#ifndef CSD_TP_FOO_B_EXPORT_H
-#define CSD_TP_FOO_B_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CSD_TP_FOO_B_HAS_DLL)
-# define CSD_TP_FOO_B_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CSD_TP_FOO_B_HAS_DLL */
-
-#if !defined (CSD_TP_FOO_B_HAS_DLL)
-# define CSD_TP_FOO_B_HAS_DLL 1
-#endif /* ! CSD_TP_FOO_B_HAS_DLL */
-
-#if defined (CSD_TP_FOO_B_HAS_DLL) && (CSD_TP_FOO_B_HAS_DLL == 1)
-# if defined (CSD_TP_FOO_B_BUILD_DLL)
-# define CSD_TP_Foo_B_Export ACE_Proper_Export_Flag
-# define CSD_TP_FOO_B_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_FOO_B_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CSD_TP_FOO_B_BUILD_DLL */
-# define CSD_TP_Foo_B_Export ACE_Proper_Import_Flag
-# define CSD_TP_FOO_B_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_FOO_B_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CSD_TP_FOO_B_BUILD_DLL */
-#else /* CSD_TP_FOO_B_HAS_DLL == 1 */
-# define CSD_TP_Foo_B_Export
-# define CSD_TP_FOO_B_SINGLETON_DECLARATION(T)
-# define CSD_TP_FOO_B_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CSD_TP_FOO_B_HAS_DLL == 1 */
-
-// Set CSD_TP_FOO_B_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CSD_TP_FOO_B_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CSD_TP_FOO_B_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CSD_TP_FOO_B_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CSD_TP_FOO_B_NTRACE */
-
-#if (CSD_TP_FOO_B_NTRACE == 1)
-# define CSD_TP_FOO_B_TRACE(X)
-#else /* (CSD_TP_FOO_B_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CSD_TP_FOO_B_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CSD_TP_FOO_B_NTRACE == 1) */
-
-#endif /* CSD_TP_FOO_B_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback.idl b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback.idl
deleted file mode 100644
index 49be42260cb..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback.idl
+++ /dev/null
@@ -1,11 +0,0 @@
-// $Id$
-#ifndef CALLBACK_IDL
-#define CALLBACK_IDL
-
-interface Callback
-{
- void test_method();
-};
-
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.cpp
deleted file mode 100644
index 8438b572ce2..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-#include "Callback_i.h"
-
-Callback_i::Callback_i()
- : num_callbacks_(0)
-{
-}
-
-
-Callback_i::~Callback_i ()
-{
-}
-
-
-void
-Callback_i::test_method(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->num_callbacks_ ++;
-}
-
-
-void
-Callback_i::gather_stats(Foo_B_Statistics& stats)
-{
- stats.actual_callbacks(this->num_callbacks_);
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h
deleted file mode 100644
index 8948435ceed..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Callback_i.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// $Id$
-#ifndef CALLBACK_I_H
-#define CALLBACK_I_H
-
-#include "CSD_TP_Foo_B_Export.h"
-#include "CallbackS.h"
-#include "Foo_B_Statistics.h"
-
-
-class CSD_TP_Foo_B_Export Callback_i
- : public virtual POA_Callback
-{
- public:
-
- Callback_i();
-
- virtual ~Callback_i();
-
- virtual void test_method(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- void gather_stats(Foo_B_Statistics& stats);
-
-
- private:
-
- unsigned num_callbacks_;
-};
-
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl
deleted file mode 100644
index 2b6b7382fab..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl
+++ /dev/null
@@ -1,70 +0,0 @@
-// $Id$
-#ifndef FOO_B_IDL
-#define FOO_B_IDL
-
-#include "FooException.idl"
-#include "Callback.idl"
-
-
-typedef sequence<char, 32> Bounded_Var_Size;
-typedef sequence<char> Unbounded_Var_Size;
-typedef long Fixed_Array[20];
-typedef string Var_Array [3];
-
-struct TimeOfDay {
- short hour; // 0 - 23
- short minute; // 0 - 59
- short second; // 0 - 59
-};
-interface Foo_B
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, 1 "in" argument
- long op3(in long value);
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Test fixed size "in" argument and the "inout" parameter.
- boolean op6(in TimeOfDay t,
- inout string message);
-
- /// Callback test.
-
- /// Pass the callback object and the server invoke operation on
- /// the callback object reference.
- void op7 (in Callback cb) raises (FooException);
-
- oneway void test_unbounded_string_arg(in string message);
-
- oneway void test_bounded_string_arg(in string<20> message);
-
- oneway void test_fixed_array_arg(in Fixed_Array message);
-
- oneway void test_var_array_arg(in Var_Array messages);
-
- oneway void test_bounded_var_size_arg(in Bounded_Var_Size message);
-
- oneway void test_unbounded_var_size_arg(in Unbounded_Var_Size message);
-
- oneway void test_fixed_size_arg (in TimeOfDay t);
-
- oneway void test_special_basic_arg(in boolean value, in long client_id);
-
- oneway void test_objref_arg (in Callback cb);
-
- /// Client calls this last. The last client to claim that it is
- /// done will cause the server to shutdown.
- void done();
-};
-
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp
deleted file mode 100644
index 93f48ae9055..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.cpp
+++ /dev/null
@@ -1,210 +0,0 @@
-// $Id$
-#include "Foo_B_ClientEngine.h"
-#include "Callback_i.h"
-#include "Foo_B_Statistics.h"
-#include "TestAppExceptionC.h"
-#include "AppHelper.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS.h"
-
-const char* ONEWAY_ARG_TEST_STR = "TEST";
-
-Foo_B_ClientEngine::Foo_B_ClientEngine(Foo_B_ptr obj,
- Callback_ptr callback,
- unsigned client_id,
- bool collocated)
- : obj_(Foo_B::_duplicate(obj)),
- callback_(Callback::_duplicate(callback)),
- client_id_(client_id),
- collocated_(collocated)
-{
-}
-
-
-Foo_B_ClientEngine::~Foo_B_ClientEngine()
-{
-}
-
-
-bool
-Foo_B_ClientEngine::execute(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Make sure the connection is established before making
- // remote invocations.
- if (AppHelper::validate_connection (this->obj_.in ()) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_ClientEngine::execute " \
- "client %d connect failed.\n", this->client_id_));
- return false;
- }
-
- // Verify the return values and return the results.
- bool check_validity = true;
-
- this->obj_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- this->obj_->op2(this->client_id_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- CORBA::Long value = this->obj_->op3(this->client_id_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- if (value != static_cast<CORBA::Long>(this->client_id_))
- {
- check_validity = false;
- }
-
- for (CORBA::ULong j = 1; j <= 5; j++)
- {
- this->obj_->op4(495 + (this->client_id_ * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- }
-
- bool caught_exception = false;
-
- ACE_TRY
- {
- this->obj_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- // Expected
- caught_exception = true;
- }
- ACE_ENDTRY;
-
- if (! caught_exception)
- {
- check_validity = false;
- }
-
- TimeOfDay t;
- t.hour = 12;
- t.minute = 30;
- t.second = 10;
-
- char test_str [20];
- ACE_OS::sprintf (test_str, "%d %s", this->client_id_, ONEWAY_ARG_TEST_STR);
-
- char buffer [20];
-
- // Two-Way calls with "inout" and fixed size "in" arguments.
- CORBA::String_var message = CORBA::string_dup(test_str);
-
- CORBA::Boolean result = this->obj_->op6( t, message.inout() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- ACE_UNUSED_ARG(result);
-
- ACE_OS::sprintf (buffer, "%d %s %d:%d:%d", this->client_id_, ONEWAY_ARG_TEST_STR,
- t.hour, t.minute, t.second);
-
- if (ACE_OS::strncmp (message.in (), buffer, ACE_OS::strlen (buffer)) != 0)
- {
- check_validity = false;
- }
-
- // Callback test.
- this->obj_->op7 (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- // One-Way calls with various arguments.
- CORBA::String_var ub_string = CORBA::string_dup( test_str );
- this->obj_->test_unbounded_string_arg (ub_string.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- CORBA::String_var bd_string = CORBA::string_dup( test_str );
- this->obj_->test_bounded_string_arg (bd_string.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- Fixed_Array fixed_array;
-
- for (CORBA::ULong m = 0 ; m < 20; m ++)
- {
- fixed_array[m] = this->client_id_ + m;
- }
-
- this->obj_->test_fixed_array_arg (fixed_array ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- Var_Array var_array;
-
- for (CORBA::ULong k = 0; k < 3; k++)
- {
- ACE_OS::sprintf (buffer, "%d %s %d",
- this->client_id_, ONEWAY_ARG_TEST_STR, k);
- var_array[k] = CORBA::string_dup(buffer);
- }
-
- this->obj_->test_var_array_arg (var_array ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- Bounded_Var_Size_var bd_var_size_string = new Bounded_Var_Size();
-
- bd_var_size_string->replace (bd_var_size_string->maximum (),
- ACE_OS::strlen (test_str) + 1,
- test_str);
- this->obj_->test_bounded_var_size_arg (bd_var_size_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- Unbounded_Var_Size_var ub_var_size_string = new Unbounded_Var_Size(100);
- ub_var_size_string->replace (ub_var_size_string->maximum (),
- ACE_OS::strlen (test_str) + 1,
- test_str);
- this->obj_->test_unbounded_var_size_arg (ub_var_size_string.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- this->obj_->test_fixed_size_arg (t ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- this->obj_->test_special_basic_arg (this->client_id_ % 2,
- this->client_id_
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- this->obj_->test_objref_arg (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- // Sleep for 5 seconds before invoking done().
- // This is a workaround with the problem that some oneway requests lost
- // when the server has multiple orb threads.
- ACE_OS::sleep (5);
- this->obj_->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- return check_validity;
-}
-
-
-void
-Foo_B_ClientEngine::expected_results(Foo_B_Statistics& stats)
-{
- stats.expected(1, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected(2, 1, Foo_B_Statistics::FOO_B_STAT_LONG);
- stats.expected(3, 1, Foo_B_Statistics::FOO_B_STAT_LONG);
- stats.expected(4, 5, Foo_B_Statistics::FOO_B_STAT_LONG);
- stats.expected(5, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected(6, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected(7, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected(8, 1, Foo_B_Statistics::FOO_B_STAT_STRING);
- stats.expected(9, 1, Foo_B_Statistics::FOO_B_STAT_STRING);
- stats.expected(10, 1, Foo_B_Statistics::FOO_B_STAT_LONG);
- stats.expected(11, 1, Foo_B_Statistics::FOO_B_STAT_STRING);
- stats.expected(12, 1, Foo_B_Statistics::FOO_B_STAT_STRING);
- stats.expected(13, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected(14, 1, Foo_B_Statistics::FOO_B_STAT_STRING);
- stats.expected(15, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected(16, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
- stats.expected_callbacks (1);
-}
-
-
-unsigned
-Foo_B_ClientEngine::expected_callbacks ()
-{
- return 1;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.h
deleted file mode 100644
index a6e8e51667b..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_ClientEngine.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_B_ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_B_CLIENT_ENGINE_H
-#define FOO_B_CLIENT_ENGINE_H
-
-#include "CSD_TP_Foo_B_Export.h"
-#include "ClientEngine.h"
-#include "Foo_BC.h"
-
-class Foo_B_Statistics;
-class Callback_i;
-
-class CSD_TP_Foo_B_Export Foo_B_ClientEngine : public ClientEngine
-{
- public:
-
- Foo_B_ClientEngine(Foo_B_ptr obj,
- Callback_ptr callback,
- unsigned client_id = 0,
- bool collocated = false);
-
- virtual ~Foo_B_ClientEngine();
-
- virtual bool execute(ACE_ENV_SINGLE_ARG_DECL);
-
- static void expected_results(Foo_B_Statistics& stats);
- static unsigned expected_callbacks ();
-
- private:
-
- Foo_B_var obj_;
- Callback_var callback_;
- unsigned client_id_;
- bool collocated_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.cpp
deleted file mode 100644
index ec2d97c6bdf..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-// $Id$
-#include "Foo_B_SimpleClientEngine.h"
-#include "Callback_i.h"
-#include "Foo_B_Statistics.h"
-#include "TestAppExceptionC.h"
-#include "AppHelper.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS.h"
-
-extern const char* ONEWAY_ARG_TEST_STR;
-
-Foo_B_SimpleClientEngine::Foo_B_SimpleClientEngine(Foo_B_ptr obj,
- Callback_ptr callback,
- unsigned client_id,
- bool collocated)
- : obj_(Foo_B::_duplicate(obj)),
- callback_(Callback::_duplicate(callback)),
- client_id_(client_id),
- collocated_(collocated)
-{
-}
-
-
-Foo_B_SimpleClientEngine::~Foo_B_SimpleClientEngine()
-{
-}
-
-
-bool
-Foo_B_SimpleClientEngine::execute(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Make sure the connection is established before making
- // remote invocations.
- if (AppHelper::validate_connection (this->obj_.in ()) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_SimpleClientEngine::execute " \
- "client %d connect failed.\n", this->client_id_));
- return false;
- }
-
- // Verify the return values and return the results.
- bool check_validity = true;
-
- // Callback test.
- ACE_TRY
- {
- if (CORBA::is_nil(this->callback_.in()))
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_SimpleClientEngine::execute " \
- "The callback_ objref is nil before op7() call!\n"));
- }
-
- this->obj_->op7 (this->callback_.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_SimpleClientEngine::execute " \
- "FooException raised by op7() call.\n"));
- check_validity = false;
- }
- ACE_ENDTRY;
-
- // Tell the servant that this client is done.
- this->obj_->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- return check_validity;
-}
-
-
-void
-Foo_B_SimpleClientEngine::expected_results(Foo_B_Statistics& stats)
-{
- stats.expected(7, 1, Foo_B_Statistics::FOO_B_STAT_NONE);
-}
-
-
-unsigned
-Foo_B_SimpleClientEngine::expected_callbacks ()
-{
- return 1;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.h
deleted file mode 100644
index 38ef6a09bcf..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_SimpleClientEngine.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_B_SimpleClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_B_SIMPLE_CLIENT_ENGINE_H
-#define FOO_B_SIMPLE_CLIENT_ENGINE_H
-
-#include "CSD_TP_Foo_B_Export.h"
-#include "ClientEngine.h"
-#include "Foo_BC.h"
-
-class Foo_B_Statistics;
-class Callback_i;
-
-class CSD_TP_Foo_B_Export Foo_B_SimpleClientEngine : public ClientEngine
-{
- public:
-
- Foo_B_SimpleClientEngine(Foo_B_ptr obj,
- Callback_ptr callback,
- unsigned client_id = 0,
- bool collocated = false);
-
- virtual ~Foo_B_SimpleClientEngine();
-
- virtual bool execute(ACE_ENV_SINGLE_ARG_DECL);
-
- static void expected_results(Foo_B_Statistics& stats);
- static unsigned expected_callbacks ();
-
- private:
-
- Foo_B_var obj_;
- Callback_var callback_;
- unsigned client_id_;
- bool collocated_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp
deleted file mode 100644
index 6cf19e95125..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.cpp
+++ /dev/null
@@ -1,218 +0,0 @@
-// $Id$
-#include "Foo_B_Statistics.h"
-#include "Foo_B_ClientEngine.h"
-
-extern const char* ONEWAY_ARG_TEST_STR;
-extern CORBA::Boolean special_value;
-
-Foo_B_Statistics::Foo_B_Statistics(unsigned num_remote_clients,
- unsigned num_collcated_clients)
-: num_clients_ (num_remote_clients + num_collcated_clients),
- num_collcated_clients_ (num_collcated_clients),
- expected_callbacks_ (0),
- actual_callbacks_ (0),
- servant_error_count_ (0)
-{
- for (unsigned i = 0; i < 16; i++)
- {
- this->expected_op_count_[i] = 0;
- this->actual_op_count_[i] = 0;
- }
-}
-
-
-Foo_B_Statistics::~Foo_B_Statistics()
-{
-}
-
-
-void
-Foo_B_Statistics::expected(unsigned op_num, unsigned count, In_Value_Type type)
-{
- this->expected_op_count_[op_num-1] = count * this->num_clients_;
- this->expected_in_value_type_[op_num-1] = type;
-}
-
-
-void
-Foo_B_Statistics::actual(unsigned op_num, unsigned count)
-{
- this->actual_op_count_[op_num-1] += count;
-}
-
-
-void
-Foo_B_Statistics::actual(unsigned op_num, LongVector lv)
-{
- unsigned sz = lv.size();
- for (unsigned i = 0; i < sz; i++)
- {
- this->actual_in_long_[op_num-1].push_back (lv[i]);
- }
-}
-
-
-void
-Foo_B_Statistics::actual(unsigned op_num, StringVector sv)
-{
- unsigned sz = sv.size();
- for (unsigned i = 0; i < sz; i++)
- {
- this->actual_in_string_[op_num-1].push_back (sv[i]);
- }
-}
-
-
-void
-Foo_B_Statistics::expected_callbacks (unsigned num_cbs)
-{
- expected_callbacks_ = num_cbs * this->num_collcated_clients_;
-}
-
-
-void
-Foo_B_Statistics::actual_callbacks (unsigned num_cbs)
-{
- actual_callbacks_ += num_cbs;
-}
-
-
-void
-Foo_B_Statistics::servant_error_count (unsigned error_count)
-{
- this->servant_error_count_ += error_count;
-}
-
-
-bool
-Foo_B_Statistics::actual_vs_expected()
-{
- bool ret = true;
-
- // Verify the checking results in servant operation code.
- if (this->servant_error_count_ > 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "servant_error_count_=%u\n", servant_error_count_));
- if (ret)
- ret = false;
- }
-
- // Verify the number of callbacks received for the collocated
- // client.
- if (actual_callbacks_ != expected_callbacks_)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "actual_callbacks_=%u expected_callbacks_=%u \n",
- actual_callbacks_, expected_callbacks_));
- if (ret)
- ret = false;
- }
-
- // Verify the number of operations server received.
- for (unsigned int z = 0; z < 16; z++)
- {
- if (this->expected_op_count_[z] != this->actual_op_count_[z])
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "expected_op_count_[%u]=%u actual_op_count_[%u]=%u \n",
- z, expected_op_count_[z], z, actual_op_count_[z]));
- if (ret)
- ret = false;
- }
- }
-
- Foo_B_Statistics stats (1, 0);
- Foo_B_ClientEngine::expected_results (stats);
-
- for (unsigned i = 0; i < 16; i++)
- {
- switch (expected_in_value_type_[i])
- {
- case FOO_B_STAT_LONG:
- {
- unsigned actual_size
- = this->actual_in_long_[i].size ();
- unsigned expected_size
- = this->num_clients_ * stats.expected_op_count_[i];
- if (actual_size != expected_size)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "actual_size=%u expected_size=%u\n", actual_size, expected_size));
- if (ret)
- ret = false;
- }
- sort (this->actual_in_long_[i]);
-
- for (unsigned j = 0; j < actual_size - 1; j++)
- {
- if (this->actual_in_long_[i][j] != this->actual_in_long_[i][j + 1] - 1)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "actual_in_long_[%u][%u]=%d actual_in_long_[%u][%u]=%d\n",
- i, j, actual_in_long_[i][j], i, j+1, actual_in_long_[i][j + 1]));
- if (ret)
- ret = false;
- }
- }
- }
- break;
-
- case FOO_B_STAT_STRING:
- {
- unsigned actual_size
- = this->actual_in_string_[i].size ();
- unsigned expected_size
- = this->num_clients_ * stats.expected_op_count_[i];
- if (actual_size != expected_size)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "actual_size=%u expected_size=%u\n", actual_size, expected_size));
- if (ret)
- ret = false;
- }
-
- LongVector lvec;
- char buffer[50];
-
- for (unsigned k = 0; k < actual_size; k++)
- {
- unsigned client_id;
- sscanf (this->actual_in_string_[i][k].c_str(), "%u %s", &client_id, buffer);
- if (ACE_OS::strcmp (buffer, ONEWAY_ARG_TEST_STR) != 0)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "actual_in_string_[%u][%u]=%s \n",
- i, k, actual_in_string_[i][k].c_str()));
- if (ret)
- ret = false;
- }
- lvec.push_back (client_id);
- }
-
- sort (lvec);
-
- for (unsigned j = 0; j < actual_size - 1; j++)
- {
- if (lvec[j] != lvec[j + 1] - 1)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_Statistics::actual_vs_expected "
- "lvec[%u]=%d lvec[%u]=%d\n",
- j, lvec[j], j+1, lvec[j + 1]));
- if (ret)
- ret = false;
- }
- }
- }
- break;
-
- case FOO_B_STAT_NONE:
- default:
- break;
- }
-
- }
-
- return ret;
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.h
deleted file mode 100644
index cf21382c549..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_Statistics.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-#ifndef STATISTICS_B_H
-#define STATISTICS_B_H
-
-#include "CSD_TP_Foo_B_Export.h"
-#include "StatisticsHelper.h"
-
-
-class CSD_TP_Foo_B_Export Foo_B_Statistics
-{
- public:
-
- enum In_Value_Type
- {
- FOO_B_STAT_NONE,
- FOO_B_STAT_STRING,
- FOO_B_STAT_LONG
- };
-
- Foo_B_Statistics(unsigned num_remote_clients,
- unsigned num_collcated_clients);
-
- virtual ~Foo_B_Statistics();
-
- void expected(unsigned op_num, unsigned count, In_Value_Type type);
- void actual(unsigned op_num, unsigned count);
- void actual(unsigned op_num, LongVector lv);
- void actual(unsigned op_num, StringVector sv);
- void servant_error_count(unsigned error_count);
-
- void expected_callbacks (unsigned num_cbs);
- void actual_callbacks (unsigned num_cbs);
-
- bool actual_vs_expected();
-
-private:
-
- unsigned num_clients_;
- unsigned num_collcated_clients_;
-
- LongVector actual_in_long_ [16];
- StringVector actual_in_string_ [16];
-
- unsigned expected_op_count_[16];
- unsigned actual_op_count_[16];
- unsigned expected_in_value_type_[16];
-
- unsigned expected_callbacks_;
- unsigned actual_callbacks_;
-
- unsigned servant_error_count_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp
deleted file mode 100644
index 5ee8d0b8690..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.cpp
+++ /dev/null
@@ -1,297 +0,0 @@
-// $Id$
-#include "Foo_B_i.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "ace/OS.h"
-#include "ace/SString.h"
-
-
-Foo_B_i::Foo_B_i()
-: error_count_ (0)
-{
- for (unsigned i = 0; i < 16; i++)
- {
- op_count_[i] = 0;
- }
-}
-
-
-Foo_B_i::~Foo_B_i()
-{
-}
-
-
-void
-Foo_B_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[0] ++;
-}
-
-
-void
-Foo_B_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[1] ++;
- this->in_long_[1].push_back (value);
-}
-
-
-CORBA::Long
-Foo_B_i::op3(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[2] ++;
- this->in_long_[2].push_back (value);
- return value;
-}
-
-
-void
-Foo_B_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[3] ++;
- this->in_long_[3].push_back (value);
-}
-
-
-void
-Foo_B_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- this->op_count_[4] ++;
- ACE_THROW (FooException());
-}
-
-
-CORBA::Boolean
-Foo_B_i::op6(const TimeOfDay& t,
- char*& message
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[5] ++;
- char buf [20];
- ACE_OS::sprintf (buf, "%s %d:%d:%d", message, t.hour, t.minute, t.second);
- CORBA::string_free (message);
- message = CORBA::string_dup (buf);
-
- return 1;
-}
-
-
-void
-Foo_B_i::op7(Callback_ptr cb
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException,
- FooException))
-{
- this->op_count_[6] ++;
-
- if (CORBA::is_nil (cb))
- {
- error_count_ ++;
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_i::op7 nil callback error_count %u\n",
- error_count_));
- ACE_THROW (FooException ());
- }
- else
- {
- cb->test_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-void
-Foo_B_i::test_unbounded_string_arg(const char* message
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[7] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_unbounded_string_arg ")
- // ACE_TEXT("got unbounded string %s\n"),
- // message));
- this->in_string_[7].push_back (message);
-}
-
-
-void
-Foo_B_i::test_bounded_string_arg(const char* message
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[8] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_bounded_string_arg ")
- // ACE_TEXT("got bounded string %s\n"),
- // message));
- this->in_string_[8].push_back (message);
-}
-
-
-void
-Foo_B_i::test_fixed_array_arg(const Fixed_Array message
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[9] ++;
-
- for (unsigned i = 0; i < 19; i++)
- {
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_fixed_array_arg ")
- // ACE_TEXT("got fixed array[i] = %d\n"),
- // i, message[i]));
-
- if (message[i] != message[i + 1] -1)
- {
- error_count_ ++;
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_i::test_fixed_array_arg: value checking failed "
- "- message[%u]=%d message[%u]=%d error_count=%u\n",
- i, message[i], i+1, message[i + 1], error_count_));
- break;
- }
- }
-
-
- this->in_long_[9].push_back (message[0]);
-}
-
-
-void
-Foo_B_i::test_bounded_var_size_arg(const Bounded_Var_Size& message
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[10] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_bounded_var_size_arg ")
- // ACE_TEXT("got var array chars %s\n"),
- // message.get_buffer ()));
- this->in_string_[10].push_back (message.get_buffer ());
-}
-
-
-void
-Foo_B_i::test_unbounded_var_size_arg(const Unbounded_Var_Size& message
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[11] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_unbounded_var_size_arg ")
- // ACE_TEXT("got var array chars %s\n"),
- // message.get_buffer ()));
- this->in_string_[11].push_back (message.get_buffer ());
-}
-
-
-void
-Foo_B_i::test_fixed_size_arg(const TimeOfDay& t
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_UNUSED_ARG(t);
-
- this->op_count_[12] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_fixed_size_arg ")
- // ACE_TEXT("got timeofday %d:%d:%d\n"),
- // t.hour, t.minute, t.second));
-}
-
-
-void
-Foo_B_i::test_var_array_arg(const Var_Array messages
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[13] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_var_array_arg ")
- // ACE_TEXT(" %s \n"), messages[0].in ()));
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_var_array_arg ")
- // ACE_TEXT(" %s \n"), messages[1].in ()));
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_var_array_arg ")
- // ACE_TEXT(" %s \n"), messages[2].in ()));
- unsigned cur_client_id = 0;
-
- for (unsigned i = 0 ; i < 3; i ++)
- {
- unsigned client_id = 0;
- unsigned str_id = 0;
- char test_str[20];
- sscanf (messages[i].in (), "%u %s %u", &client_id, test_str, &str_id);
-
- if (str_id != i)
- {
- error_count_ ++;
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_i::test_var_array_arg: str_id checking failed "
- "- str_id=%u i=%u error_count_=%u\n", str_id, i, error_count_));
- }
-
- if (i == 0)
- {
- cur_client_id = client_id;
- }
- else if (client_id != cur_client_id)
- {
- error_count_ ++;
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_i::test_var_array_arg: client_id checking failed "
- "- client_id=%u cur_client_id=%u error_count_=%u\n",
- client_id, cur_client_id, error_count_));
- }
- }
- this->in_string_[13].push_back (messages[0].in ());
-}
-
-
-void
-Foo_B_i::test_special_basic_arg(CORBA::Boolean value,
- CORBA::Long client_id
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->op_count_[14] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_special_basic_arg ")
- // ACE_TEXT(" got special basic arg: %d \n"), value));
-
- CORBA::Boolean expected_special_value = client_id % 2;
- if (expected_special_value != value)
- {
- error_count_ ++;
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_B_i::test_special_basic_arg "
- "value checking failed - client_id %d got value %d error_count=%u\n",
- client_id, value, error_count_));
- }
-}
-
-
-void
-Foo_B_i::test_objref_arg(Callback_ptr cb
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ACE_UNUSED_ARG(cb);
- this->op_count_[15] ++;
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t)Foo_B_i::test_objref_arg ")
- // ACE_TEXT(" got callback object. \n")));
-}
-
-
-void
-Foo_B_i::done(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- TheAppShutdown->client_done();
-}
-
-
-void
-Foo_B_i::gather_stats (Foo_B_Statistics& stats)
-{
- for (unsigned i = 0; i < 16; i++)
- {
- stats.actual (i+1, this->op_count_[i]);
- stats.actual (i+1, this->in_string_[i]);
- stats.actual (i+1, this->in_long_[i]);
- stats.servant_error_count (this->error_count_);
- }
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h
deleted file mode 100644
index 771eb05eca3..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B_i.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// $Id$
-#ifndef FOO_B_I_H
-#define FOO_B_I_H
-
-#include "CSD_TP_Foo_B_Export.h"
-#include "Foo_BS.h"
-#include "Foo_B_Statistics.h"
-
-
-class CSD_TP_Foo_B_Export Foo_B_i : public virtual POA_Foo_B
-{
- public:
-
- Foo_B_i();
- virtual ~Foo_B_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException, FooException));
-
- virtual CORBA::Boolean op6(const TimeOfDay& t,
- char*& message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op7(Callback_ptr cb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException,
- FooException));
-
- virtual void test_unbounded_string_arg(const char* message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_bounded_string_arg(const char* message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_fixed_array_arg(const Fixed_Array message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_var_array_arg(const Var_Array messages
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_bounded_var_size_arg(const Bounded_Var_Size& message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_unbounded_var_size_arg(const Unbounded_Var_Size& message
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_fixed_size_arg(const TimeOfDay& t
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_special_basic_arg(CORBA::Boolean value,
- CORBA::Long client_id
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void test_objref_arg(Callback_ptr cb
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- void gather_stats (Foo_B_Statistics& stats);
-
- private:
-
- LongVector in_long_ [16];
- StringVector in_string_ [16];
- unsigned op_count_ [16];
- unsigned error_count_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/csd_tp_foo_b_lib.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/csd_tp_foo_b_lib.mpc
deleted file mode 100644
index a9503d73c5a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_B/csd_tp_foo_b_lib.mpc
+++ /dev/null
@@ -1,25 +0,0 @@
-//$Id$
-project : csd_tp_test_lib {
- sharedname = CSD_TP_Foo_B
- dynamicflags = CSD_TP_FOO_B_BUILD_DLL
- idlflags += -Wb,export_macro=CSD_TP_Foo_B_Export -Wb,export_include=CSD_TP_Foo_B_Export.h
- includes += $(TAO_ROOT)/tao
-
- IDL_Files {
- Foo_B.idl
- Callback.idl
- }
-
- Source_Files {
- Foo_BC.cpp
- Foo_BS.cpp
- Foo_B_ClientEngine.cpp
- Foo_B_SimpleClientEngine.cpp
- Foo_B_i.cpp
- Foo_B_Statistics.cpp
- Callback_i.cpp
- CallbackC.cpp
- CallbackS.cpp
- }
-
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/CSD_TP_Foo_C_Export.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/CSD_TP_Foo_C_Export.h
deleted file mode 100644
index ef1996b0a26..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/CSD_TP_Foo_C_Export.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-// -*- C++ -*-
-// $Id$
-// Definition for Win32 Export directives.
-// This file is generated automatically by generate_export_file.pl -s CSD_TP_Foo_C
-// ------------------------------
-#ifndef CSD_TP_FOO_C_EXPORT_H
-#define CSD_TP_FOO_C_EXPORT_H
-
-#include "ace/config-all.h"
-
-#if defined (ACE_AS_STATIC_LIBS) && !defined (CSD_TP_FOO_C_HAS_DLL)
-# define CSD_TP_FOO_C_HAS_DLL 0
-#endif /* ACE_AS_STATIC_LIBS && CSD_TP_FOO_C_HAS_DLL */
-
-#if !defined (CSD_TP_FOO_C_HAS_DLL)
-# define CSD_TP_FOO_C_HAS_DLL 1
-#endif /* ! CSD_TP_FOO_C_HAS_DLL */
-
-#if defined (CSD_TP_FOO_C_HAS_DLL) && (CSD_TP_FOO_C_HAS_DLL == 1)
-# if defined (CSD_TP_FOO_C_BUILD_DLL)
-# define CSD_TP_Foo_C_Export ACE_Proper_Export_Flag
-# define CSD_TP_FOO_C_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_FOO_C_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# else /* CSD_TP_FOO_C_BUILD_DLL */
-# define CSD_TP_Foo_C_Export ACE_Proper_Import_Flag
-# define CSD_TP_FOO_C_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
-# define CSD_TP_FOO_C_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* CSD_TP_FOO_C_BUILD_DLL */
-#else /* CSD_TP_FOO_C_HAS_DLL == 1 */
-# define CSD_TP_Foo_C_Export
-# define CSD_TP_FOO_C_SINGLETON_DECLARATION(T)
-# define CSD_TP_FOO_C_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#endif /* CSD_TP_FOO_C_HAS_DLL == 1 */
-
-// Set CSD_TP_FOO_C_NTRACE = 0 to turn on library specific tracing even if
-// tracing is turned off for ACE.
-#if !defined (CSD_TP_FOO_C_NTRACE)
-# if (ACE_NTRACE == 1)
-# define CSD_TP_FOO_C_NTRACE 1
-# else /* (ACE_NTRACE == 1) */
-# define CSD_TP_FOO_C_NTRACE 0
-# endif /* (ACE_NTRACE == 1) */
-#endif /* !CSD_TP_FOO_C_NTRACE */
-
-#if (CSD_TP_FOO_C_NTRACE == 1)
-# define CSD_TP_FOO_C_TRACE(X)
-#else /* (CSD_TP_FOO_C_NTRACE == 1) */
-# if !defined (ACE_HAS_TRACE)
-# define ACE_HAS_TRACE
-# endif /* ACE_HAS_TRACE */
-# define CSD_TP_FOO_C_TRACE(X) ACE_TRACE_IMPL(X)
-# include "ace/Trace.h"
-#endif /* (CSD_TP_FOO_C_NTRACE == 1) */
-
-#endif /* CSD_TP_FOO_C_EXPORT_H */
-
-// End of auto generated file.
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C.idl b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C.idl
deleted file mode 100644
index b7eeea96f33..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C.idl
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-#ifndef FOO_C_IDL
-#define FOO_C_IDL
-
-#include "FooException.idl"
-
-interface Foo_C
-{
- /// void return-type, no arguments
- void op1();
-
- /// void return-type, 1 "in" argument
- void op2(in long value);
-
- /// long return-type, 1 "in" argument
- long op3(in long value);
-
- /// one-way version of op2
- oneway void op4(in long value);
-
- /// Operation that always raises an exception.
- void op5() raises (FooException);
-
- /// Client calls this last. The last client to claim that it is
- /// done will cause the server to shutdown.
- void done();
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.cpp
deleted file mode 100644
index fdd8b4e2671..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-// $Id$
-#include "Foo_C_ClientEngine.h"
-#include "AppHelper.h"
-#include "ace/Log_Msg.h"
-
-
-Foo_C_ClientEngine::Foo_C_ClientEngine(Foo_C_ptr obj,
- unsigned client_id)
- : obj_(Foo_C::_duplicate(obj)),
- client_id_ (client_id)
-{
-}
-
-
-Foo_C_ClientEngine::~Foo_C_ClientEngine()
-{
-}
-
-
-bool
-Foo_C_ClientEngine::execute(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Verify the return values and return the results.
- bool check_validity = true;
-
- // Make sure the connection is established before making
- // remote invocations.
- if (AppHelper::validate_connection (this->obj_.in ()) == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_ClientEngine::execute " \
- "client %d connect failed.\n", this->client_id_));
- return false;
- }
-
- CORBA::Long i = this->client_id_;
-
- this->obj_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- this->obj_->op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- CORBA::Long value = this->obj_->op3(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- if (value != i)
- {
- check_validity = false;
- }
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- this->obj_->op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- }
-
- bool caught_exception = false;
-
- ACE_TRY
- {
- this->obj_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (FooException, ex)
- {
- // Expected
- caught_exception = true;
- }
- ACE_ENDTRY;
-
- if (! caught_exception)
- {
- check_validity = false;
- }
-
- this->obj_->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- return check_validity;
-}
-
-
-void
-Foo_C_ClientEngine::expected_results(Foo_C_Statistics& stats)
-{
- // This ClientEngine is used by remote clients.
- stats.expected(1, 1, true);
- stats.expected(2, 1, true);
- stats.expected(3, 1, true);
- stats.expected(4, 5, true);
- stats.expected(5, 1, true);
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.h
deleted file mode 100644
index 54247223f04..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_ClientEngine.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CLIENT_ENGINE_H
-#define FOO_C_CLIENT_ENGINE_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "ClientEngine.h"
-#include "Foo_CC.h"
-#include "Foo_C_Statistics.h"
-
-
-class CSD_TP_Foo_C_Export Foo_C_ClientEngine : public ClientEngine
-{
- public:
-
- Foo_C_ClientEngine(Foo_C_ptr obj,
- unsigned client_id);
- virtual ~Foo_C_ClientEngine();
-
- virtual bool execute(ACE_ENV_SINGLE_ARG_DECL);
-
- static void expected_results(Foo_C_Statistics& stats);
-
- private:
-
- Foo_C_var obj_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.cpp
deleted file mode 100644
index da6b44f7c71..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-// $Id$
-#include "Foo_C_Custom_ClientEngine.h"
-#include "CustomExceptionC.h"
-#include "ace/Log_Msg.h"
-
-
-Foo_C_Custom_ClientEngine::Foo_C_Custom_ClientEngine
- (Foo_C_i* servant,
- Foo_C_ptr objref,
- TAO::CSD::TP_Strategy* strategy,
- unsigned client_id)
- : proxy_(servant,objref,strategy),
- client_id_(client_id)
-{
-}
-
-
-Foo_C_Custom_ClientEngine::~Foo_C_Custom_ClientEngine()
-{
-}
-
-
-bool
-Foo_C_Custom_ClientEngine::execute(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Make sure the connection is established before making
- // remote invocations.
- if (this->proxy_.validate_connection () == false)
- {
- ACE_ERROR((LM_ERROR, "(%P|%t)Foo_A_ClientEngine::execute " \
- "client %d connect failed.\n", this->client_id_));
- return false;
- }
-
- bool check_validity = true;
- CORBA::Long i = this->client_id_;
-
- this->proxy_.op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- this->proxy_.op2(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- CORBA::Long value = this->proxy_.op3(i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- if (value != i)
- {
- check_validity = false;
- }
-
-
- for (CORBA::Long j = 1; j <= 5; j++)
- {
- this->proxy_.op4(495 + (i * 5) + j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- }
-
- bool caught_exception = false;
- ACE_TRY_EX (op5)
- {
- this->proxy_.op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (op5);
- }
- ACE_CATCH (FooException, ex)
- {
- // Expected
- caught_exception = true;
- }
- ACE_ENDTRY;
-
- if (! caught_exception)
- {
- check_validity = false;
- }
-
- long cust_i = this->client_id_;
-
- this->proxy_.cust_op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- this->proxy_.cust_op2(cust_i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- long cust_value = this->proxy_.cust_op3(cust_i ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- if (cust_value != i)
- {
- check_validity = false;
- }
-
- for (long cust_j = 1; cust_j <= 5; cust_j++)
- {
- this->proxy_.cust_op4(495 + (cust_i * 5) + cust_j ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
- }
-
- caught_exception = false;
-
- ACE_TRY_EX (cust_op5)
- {
- this->proxy_.cust_op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (cust_op5)
- }
- ACE_CATCHANY //(CustomException, ex)
- {
- // Expected
- caught_exception = true;
- }
- ACE_ENDTRY;
-
- if (! caught_exception)
- {
- check_validity = false;
- }
-
- this->proxy_.done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (false);
-
- return check_validity;
-}
-
-
-void
-Foo_C_Custom_ClientEngine::expected_results(Foo_C_Statistics& stats)
-{
- // This ClientEngine is used by collocated clients.
- stats.expected(1, 1, false);
- stats.expected(2, 1, false);
- stats.expected(3, 1, false);
- stats.expected(4, 5, false);
- stats.expected(5, 1, false);
- stats.expected(6, 1, false);
- stats.expected(7, 1, false);
- stats.expected(8, 1, false);
- stats.expected(9, 5, false);
- stats.expected(10, 1, false);
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.h
deleted file mode 100644
index 9d51fcddcea..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_ClientEngine.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_Custom_ClientEngine.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUSTOM_CLIENT_ENGINE_H
-#define FOO_C_CUSTOM_CLIENT_ENGINE_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "ClientEngine.h"
-#include "Foo_C_Custom_Proxy.h"
-
-
-class CSD_TP_Foo_C_Export Foo_C_Custom_ClientEngine : public ClientEngine
-{
- public:
-
- Foo_C_Custom_ClientEngine(Foo_C_i* servant,
- Foo_C_ptr objref,
- TAO::CSD::TP_Strategy* strategy,
- unsigned client_id);
- virtual ~Foo_C_Custom_ClientEngine();
-
- virtual bool execute(ACE_ENV_SINGLE_ARG_DECL);
-
- static void expected_results(Foo_C_Statistics& stats);
-
-
- private:
-
- Foo_C_Custom_Proxy proxy_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.cpp
deleted file mode 100644
index 0fc2e22471a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.cpp
+++ /dev/null
@@ -1,153 +0,0 @@
-// $Id$
-#include "Foo_C_Custom_Proxy.h"
-#include "Foo_C_cust_op1.h"
-#include "Foo_C_cust_op2.h"
-#include "Foo_C_cust_op3.h"
-#include "Foo_C_cust_op4.h"
-#include "Foo_C_cust_op5.h"
-#include "AppHelper.h"
-
-
-Foo_C_Custom_Proxy::Foo_C_Custom_Proxy(Foo_C_i* servant,
- Foo_C_ptr objref,
- TAO::CSD::TP_Strategy* strategy)
- : servant_(servant),
- objref_(Foo_C::_duplicate(objref)),
- strategy_(strategy, false)
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-Foo_C_Custom_Proxy::~Foo_C_Custom_Proxy()
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-bool
-Foo_C_Custom_Proxy::validate_connection ()
-{
- return AppHelper::validate_connection (this->objref_.in ());
-}
-
-
-void
-Foo_C_Custom_Proxy::op1(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->objref_->op1(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_C_Custom_Proxy::op2(CORBA::Long x ACE_ENV_ARG_DECL)
-{
- this->objref_->op2(x ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-CORBA::Long
-Foo_C_Custom_Proxy::op3(CORBA::Long x ACE_ENV_ARG_DECL)
-{
- CORBA::Long result = this->objref_->op3(x ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- return result;
-}
-
-
-void
-Foo_C_Custom_Proxy::op4(CORBA::Long x ACE_ENV_ARG_DECL)
-{
- this->objref_->op4(x ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_C_Custom_Proxy::op5(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->objref_->op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_C_Custom_Proxy::done(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->objref_->done(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_C_Custom_Proxy::cust_op1(ACE_ENV_SINGLE_ARG_DECL)
-{
- Foo_C_cust_op1_Handle op = new Foo_C_cust_op1(this->servant_);
- this->strategy_->custom_synch_request(op.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_C_Custom_Proxy::cust_op2(long x ACE_ENV_ARG_DECL)
-{
- Foo_C_cust_op2_Handle op = new Foo_C_cust_op2(this->servant_, x);
- this->strategy_->custom_synch_request(op.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-long
-Foo_C_Custom_Proxy::cust_op3(long x ACE_ENV_ARG_DECL)
-{
- Foo_C_cust_op3_Handle op = new Foo_C_cust_op3(this->servant_, x);
- this->strategy_->custom_synch_request(op.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- int ret = op->result(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (0);
- return ret;
-}
-
-
-void
-Foo_C_Custom_Proxy::cust_op4(long x ACE_ENV_ARG_DECL)
-{
- Foo_C_cust_op4_Handle op = new Foo_C_cust_op4(this->servant_,x);
- this->strategy_->custom_asynch_request(op.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-Foo_C_Custom_Proxy::cust_op5(ACE_ENV_SINGLE_ARG_DECL)
-{
- Foo_C_cust_op5_Handle op = new Foo_C_cust_op5(this->servant_);
- this->strategy_->custom_synch_request(op.in() ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- op->result(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.h
deleted file mode 100644
index 5cd7eeae55a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Custom_Proxy.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_Custom_Proxy.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUSTOM_PROXY_H
-#define FOO_C_CUSTOM_PROXY_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "ClientEngine.h"
-#include "Foo_C_i.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-
-
-class CSD_TP_Foo_C_Export Foo_C_Custom_Proxy
-{
-public:
-
- Foo_C_Custom_Proxy(Foo_C_i* servant,
- Foo_C_ptr objref,
- TAO::CSD::TP_Strategy* strategy);
- ~Foo_C_Custom_Proxy();
-
- bool validate_connection ();
-
- void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
- void op2(CORBA::Long x ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- CORBA::Long op3(CORBA::Long x ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void op4(CORBA::Long x ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
- void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
- void cust_op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
- void cust_op2(long x ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- long cust_op3(long x ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void cust_op4(long x ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void cust_op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
-private:
- Foo_C_i* servant_;
- Foo_C_var objref_;
- TAO::CSD::TP_Strategy_Handle strategy_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.cpp
deleted file mode 100644
index b832e29d9a1..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-// $Id$
-#include "Foo_C_Statistics.h"
-#include "Foo_C_ClientEngine.h"
-#include "Foo_C_Custom_ClientEngine.h"
-
-Foo_C_Statistics::Foo_C_Statistics(unsigned num_remote_clients,
- unsigned num_collocated_clients)
-: num_remote_clients_ (num_remote_clients),
- num_collocated_clients_ (num_collocated_clients)
-{
- for (unsigned i = 0; i < 10; i++)
- {
- this->expected_[i] = 0;
- this->actual_[i] = 0;
- }
-}
-
-
-Foo_C_Statistics::~Foo_C_Statistics()
-{
-}
-
-
-void
-Foo_C_Statistics::expected(unsigned op_num, unsigned count, bool remote_client)
-{
- if (remote_client)
- {
- this->expected_[op_num-1] += count * this->num_remote_clients_;
- }
- else
- {
- this->expected_[op_num-1] += count * this->num_collocated_clients_;
- }
-}
-
-
-void
-Foo_C_Statistics::actual(unsigned op_num, unsigned count)
-{
- this->actual_[op_num-1] += count;
-}
-
-
-void
-Foo_C_Statistics::actual_in_values(unsigned op_num, LongVector lv)
-{
- size_t sz = lv.size();
- for (size_t i = 0; i < sz; i++)
- {
- this->actual_in_values_[op_num-1].push_back (lv[i]);
- }
-}
-
-
-bool
-Foo_C_Statistics::actual_vs_expected()
-{
- // Get the expected statistics for a single remote client.
- Foo_C_Statistics remote_client_stats (1, 0);
- Foo_C_ClientEngine::expected_results (remote_client_stats);
- // Get the expected statistics for a single collocated client.
- Foo_C_Statistics collocated_client_stats (0, 1);
- Foo_C_Custom_ClientEngine::expected_results (collocated_client_stats);
-
- for (unsigned i = 0; i < 10; i++)
- {
- if (this->expected_[i] != this->actual_[i])
- {
- return false;
- }
-
- // Verify the "in" values.
- // Skip op1/op5 and cust_op1/cust_op5 since they do not have
- // any "in" values.
- if (i % 5 == 0 || i % 5 == 4)
- {
- continue;
- }
-
- unsigned actual_size
- = this->actual_in_values_[i].size ();
- unsigned expected_size
- = this->num_remote_clients_ * remote_client_stats.expected_[i]
- + this->num_collocated_clients_ * collocated_client_stats.expected_[i];
-
- if (actual_size == 0 && expected_size == 0)
- {
- continue;
- }
-
- if (actual_size != expected_size)
- {
- return false;
- }
-
- sort (this->actual_in_values_[i]);
-
- for (unsigned j = 0; j < actual_size - 1; j++)
- {
- if (this->actual_in_values_[i][j] != this->actual_in_values_[i][j + 1] - 1)
- {
- return false;
- }
- }
- }
- return true;
-}
-
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.h
deleted file mode 100644
index 4d7dcff1df9..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_Statistics.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// $Id$
-#ifndef STATISTICS_C_H
-#define STATISTICS_C_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "StatisticsHelper.h"
-
-
-class CSD_TP_Foo_C_Export Foo_C_Statistics
-{
- public:
-
- Foo_C_Statistics(unsigned num_remote_clients,
- unsigned num_collocated_clients);
-
- virtual ~Foo_C_Statistics();
-
- void expected(unsigned op_num, unsigned count, bool remote_client);
- void actual(unsigned op_num, unsigned count);
- void actual_in_values(unsigned op_num, LongVector lv);
-
- bool actual_vs_expected();
-
-
- private:
-
- unsigned num_remote_clients_;
- unsigned num_collocated_clients_;
- unsigned expected_[10];
- unsigned actual_[10];
-
- LongVector actual_in_values_ [10];
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.cpp
deleted file mode 100644
index 3ca92e4af2e..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-// $Id$
-#include "Foo_C_cust_op1.h"
-#include "Foo_C_i.h"
-#include "CancelledExceptionC.h"
-
-
-Foo_C_cust_op1::Foo_C_cust_op1(Foo_C_i* servant)
- : TAO::CSD::TP_Custom_Request_Operation(servant),
- cancelled_(false),
- servant_(servant)
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-Foo_C_cust_op1::~Foo_C_cust_op1()
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-void
-Foo_C_cust_op1::result(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->cancelled_)
- {
- ACE_THROW (CancelledException());
- }
-}
-
-
-void
-Foo_C_cust_op1::execute_i()
-{
- this->servant_->cust_op1();
-}
-
-
-void
-Foo_C_cust_op1::cancel_i()
-{
- this->cancelled_ = true;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.h
deleted file mode 100644
index 553cb27a6d8..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op1.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_cust_op1.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUST_OP1_H
-#define FOO_C_CUST_OP1_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-class Foo_C_i;
-
-class Foo_C_cust_op1;
-typedef TAO_Intrusive_Ref_Count_Handle<Foo_C_cust_op1> Foo_C_cust_op1_Handle;
-
-
-class CSD_TP_Foo_C_Export Foo_C_cust_op1 : public TAO::CSD::TP_Custom_Request_Operation
-{
- public:
-
- Foo_C_cust_op1(Foo_C_i* servant);
- virtual ~Foo_C_cust_op1();
-
- void result(ACE_ENV_SINGLE_ARG_DECL);
-
-
- protected:
- virtual void execute_i();
- virtual void cancel_i();
-
- private:
- bool cancelled_;
- Foo_C_i* servant_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.cpp
deleted file mode 100644
index c0bc62fb2f0..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-// $Id$
-#include "Foo_C_cust_op2.h"
-#include "Foo_C_i.h"
-#include "CancelledExceptionC.h"
-
-
-Foo_C_cust_op2::Foo_C_cust_op2(Foo_C_i* servant, long arg)
- : TAO::CSD::TP_Custom_Request_Operation(servant),
- arg_(arg),
- cancelled_(false),
- servant_(servant)
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-Foo_C_cust_op2::~Foo_C_cust_op2()
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-void
-Foo_C_cust_op2::result(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->cancelled_)
- {
- ACE_THROW (CancelledException());
- }
-}
-
-
-void
-Foo_C_cust_op2::execute_i()
-{
- this->servant_->cust_op2(this->arg_);
-}
-
-
-void
-Foo_C_cust_op2::cancel_i()
-{
- this->cancelled_ = true;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.h
deleted file mode 100644
index 8a319e3b50a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op2.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_cust_op2.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUST_OP2_H
-#define FOO_C_CUST_OP2_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-class Foo_C_i;
-
-class Foo_C_cust_op2;
-typedef TAO_Intrusive_Ref_Count_Handle<Foo_C_cust_op2> Foo_C_cust_op2_Handle;
-
-
-class CSD_TP_Foo_C_Export Foo_C_cust_op2 : public TAO::CSD::TP_Custom_Request_Operation
-{
- public:
-
- Foo_C_cust_op2(Foo_C_i* servant, long arg);
- virtual ~Foo_C_cust_op2();
-
- void result(ACE_ENV_SINGLE_ARG_DECL);
-
-
- protected:
-
- virtual void execute_i();
- virtual void cancel_i();
-
-
- private:
-
- long arg_;
- bool cancelled_;
-
- Foo_C_i* servant_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.cpp
deleted file mode 100644
index b6bfad9dc67..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-// $Id$
-#include "Foo_C_cust_op3.h"
-#include "Foo_C_i.h"
-#include "CancelledExceptionC.h"
-
-
-Foo_C_cust_op3::Foo_C_cust_op3(Foo_C_i* servant, long arg)
- : TAO::CSD::TP_Custom_Request_Operation(servant),
- arg_(arg),
- result_(0),
- cancelled_(false),
- servant_(servant)
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-Foo_C_cust_op3::~Foo_C_cust_op3()
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-long
-Foo_C_cust_op3::result(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->cancelled_)
- {
- ACE_THROW_RETURN (CancelledException(), -1);
- }
-
- return this->result_;
-}
-
-
-void
-Foo_C_cust_op3::execute_i()
-{
- this->result_ = this->servant_->cust_op3(this->arg_);
-}
-
-
-void
-Foo_C_cust_op3::cancel_i()
-{
- this->cancelled_ = true;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.h
deleted file mode 100644
index 7e86e3c8a53..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op3.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_cust_op3.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUST_OP3_H
-#define FOO_C_CUST_OP3_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-class Foo_C_i;
-
-class Foo_C_cust_op3;
-typedef TAO_Intrusive_Ref_Count_Handle<Foo_C_cust_op3> Foo_C_cust_op3_Handle;
-
-
-class CSD_TP_Foo_C_Export Foo_C_cust_op3 : public TAO::CSD::TP_Custom_Request_Operation
-{
- public:
-
- Foo_C_cust_op3(Foo_C_i* servant, long arg);
- virtual ~Foo_C_cust_op3();
-
- long result(ACE_ENV_SINGLE_ARG_DECL);
-
-
- protected:
-
- virtual void execute_i();
- virtual void cancel_i();
-
-
- private:
-
- long arg_;
- long result_;
- bool cancelled_;
-
- Foo_C_i* servant_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.cpp
deleted file mode 100644
index 828e841990f..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-#include "Foo_C_cust_op4.h"
-#include "Foo_C_i.h"
-
-
-Foo_C_cust_op4::Foo_C_cust_op4(Foo_C_i* servant, long arg)
- : TAO::CSD::TP_Custom_Request_Operation(servant),
- arg_(arg),
- servant_(servant)
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-Foo_C_cust_op4::~Foo_C_cust_op4()
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-void
-Foo_C_cust_op4::execute_i()
-{
- this->servant_->cust_op4(this->arg_);
-}
-
-
-void
-Foo_C_cust_op4::cancel_i()
-{
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.h
deleted file mode 100644
index 1f8e5eeb5db..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op4.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_cust_op4.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUST_OP4_H
-#define FOO_C_CUST_OP4_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-class Foo_C_i;
-
-class Foo_C_cust_op4;
-typedef TAO_Intrusive_Ref_Count_Handle<Foo_C_cust_op4> Foo_C_cust_op4_Handle;
-
-
-class CSD_TP_Foo_C_Export Foo_C_cust_op4 : public TAO::CSD::TP_Custom_Request_Operation
-{
- public:
-
- Foo_C_cust_op4(Foo_C_i* servant, long arg);
- virtual ~Foo_C_cust_op4();
-
-
- protected:
-
- virtual void execute_i();
- virtual void cancel_i();
-
-
- private:
-
- long arg_;
-
- Foo_C_i* servant_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp
deleted file mode 100644
index 6f5b6756dda..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.cpp
+++ /dev/null
@@ -1,81 +0,0 @@
-// $Id$
-#include "Foo_C_cust_op5.h"
-#include "Foo_C_i.h"
-#include "CancelledExceptionC.h"
-#include "CustomExceptionC.h"
-
-
-Foo_C_cust_op5::Foo_C_cust_op5(Foo_C_i* servant)
- : TAO::CSD::TP_Custom_Request_Operation(servant),
- exception_(false),
- cancelled_(false),
- servant_(servant)
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_add_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-Foo_C_cust_op5::~Foo_C_cust_op5()
-{
- // This try-catch block is not really necessary, but we have to add it to
- // satisfy the non-exception builds. Since there is actually no exception
- // raised from _add_ref, we just ignore the exception here.
- ACE_TRY_NEW_ENV
- {
- servant_->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHALL
- {
- }
- ACE_ENDTRY;
-}
-
-
-void
-Foo_C_cust_op5::result(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->cancelled_)
- {
- ACE_THROW (CancelledException());
- }
-
- if (this->exception_)
- {
- ACE_THROW (CustomException());
- }
-}
-
-
-void
-Foo_C_cust_op5::execute_i()
-{
- ACE_TRY_NEW_ENV
- {
- this->servant_->cust_op5(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CustomException, ex)
- {
- this->exception_ = true;
- }
- ACE_ENDTRY;
-}
-
-
-void
-Foo_C_cust_op5::cancel_i()
-{
- this->cancelled_ = true;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.h
deleted file mode 100644
index d6963d31bbe..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_cust_op5.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Foo_C_cust_op5.h
- *
- * $Id$
- *
- * @author Tim Bradley <bradley_t@ociweb.com>
- */
-//=============================================================================
-
-#ifndef FOO_C_CUST_OP5_H
-#define FOO_C_CUST_OP5_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Custom_Request_Operation.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-
-class Foo_C_i;
-
-class Foo_C_cust_op5;
-typedef TAO_Intrusive_Ref_Count_Handle<Foo_C_cust_op5> Foo_C_cust_op5_Handle;
-
-
-class CSD_TP_Foo_C_Export Foo_C_cust_op5 : public TAO::CSD::TP_Custom_Request_Operation
-{
- public:
-
- Foo_C_cust_op5(Foo_C_i* servant);
- virtual ~Foo_C_cust_op5();
-
- void result(ACE_ENV_SINGLE_ARG_DECL);
-
-
- protected:
-
- virtual void execute_i();
- virtual void cancel_i();
-
-
- private:
-
- bool exception_;
- bool cancelled_;
-
- Foo_C_i* servant_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.cpp
deleted file mode 100644
index 25fadd9deef..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.cpp
+++ /dev/null
@@ -1,148 +0,0 @@
-// $Id$
-#include "Foo_C_i.h"
-#include "AppShutdown.h"
-#include "CustomExceptionC.h"
-
-
-Foo_C_i::Foo_C_i()
-{
- for (unsigned i = 0; i < 10; i++)
- {
- this->count_[i] = 0;
- }
-}
-
-
-Foo_C_i::~Foo_C_i()
-{
-}
-
-
-void
-Foo_C_i::op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- ++this->count_[0];
-}
-
-
-void
-Foo_C_i::op2(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->in_values_[1].push_back (value);
- ++this->count_[1];
-}
-
-
-CORBA::Long
-Foo_C_i::op3(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->in_values_[2].push_back (value);
- ++this->count_[2];
- return value;
-}
-
-
-void
-Foo_C_i::op4(CORBA::Long value ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- this->in_values_[3].push_back (value);
- ++this->count_[3];
-}
-
-
-void
-Foo_C_i::op5(ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC((CORBA::SystemException, FooException))
-{
- ++this->count_[4];
- ACE_THROW (FooException());
-}
-
-
-void
-Foo_C_i::done(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC((CORBA::SystemException))
-{
- TheAppShutdown->client_done();
-}
-
-
-void
-Foo_C_i::cust_op1(ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-{
- ++this->count_[5];
-}
-
-
-void
-Foo_C_i::cust_op2(long value ACE_ENV_ARG_DECL_NOT_USED)
-{
- this->in_values_[6].push_back (value);
- ++this->count_[6];
-}
-
-
-long
-Foo_C_i::cust_op3(long value ACE_ENV_ARG_DECL_NOT_USED)
-{
- this->in_values_[7].push_back (value);
- ++this->count_[7];
- return value;
-}
-
-
-void
-Foo_C_i::cust_op4(long value ACE_ENV_ARG_DECL_NOT_USED)
-{
- this->in_values_[8].push_back (value);
- ++this->count_[8];
-}
-
-
-void
-Foo_C_i::cust_op5(ACE_ENV_SINGLE_ARG_DECL)
-{
- ++this->count_[9];
- ACE_THROW (CustomException());
-}
-
-
-void
-Foo_C_i::gather_stats(Foo_C_Statistics& stats)
-{
- for (unsigned i = 0; i < 10; i++)
- {
- stats.actual (i + 1, this->count_[i]);
- stats.actual_in_values (i + 1, this->in_values_[i]);
- }
-}
-
-
-void
-Foo_C_i::dump()
-{
- static unsigned id = 0;
-
- ++id;
-
- ACE_DEBUG((LM_DEBUG, "Servant %d Stats:\n", id));
- ACE_DEBUG((LM_DEBUG, "------------------\n"));
-
- unsigned i;
-
- for (i = 0; i < 5; i++)
- {
- ACE_DEBUG((LM_DEBUG, "op%d : %d\n", i+1, this->count_[i]));
- }
-
- for (i = 5; i < 10; i++)
- {
- ACE_DEBUG((LM_DEBUG, "cust_op%d: %d\n", i+1, this->count_[i]));
- }
-
- ACE_DEBUG((LM_DEBUG, "------------------\n"));
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h
deleted file mode 100644
index c58cfb288d4..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/Foo_C_i.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// $Id$
-#ifndef FOO_C_I_H
-#define FOO_C_I_H
-
-#include "CSD_TP_Foo_C_Export.h"
-#include "Foo_CS.h"
-#include "Foo_C_Statistics.h"
-
-
-class CSD_TP_Foo_C_Export Foo_C_i : public virtual POA_Foo_C
-{
- public:
-
- Foo_C_i();
- virtual ~Foo_C_i();
-
- virtual void op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op2(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual CORBA::Long op3(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op4(CORBA::Long value ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- virtual void op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException,
- FooException));
-
- virtual void done(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC((CORBA::SystemException));
-
- void cust_op1(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
- void cust_op2(long value ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- long cust_op3(long value ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void cust_op4(long value ACE_ENV_ARG_DECL_WITH_DEFAULTS);
- void cust_op5(ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
- void gather_stats(Foo_C_Statistics& stats);
-
- void dump();
-
-
- private:
-
- LongVector in_values_ [10];
- unsigned count_[10];
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/csd_tp_foo_c_lib.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/csd_tp_foo_c_lib.mpc
deleted file mode 100644
index bc014925ccf..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Foo_C/csd_tp_foo_c_lib.mpc
+++ /dev/null
@@ -1,27 +0,0 @@
-//$Id$
-project : csd_tp_test_lib {
- sharedname = CSD_TP_Foo_C
- dynamicflags = CSD_TP_FOO_C_BUILD_DLL
- idlflags += -Wb,export_macro=CSD_TP_Foo_C_Export -Wb,export_include=CSD_TP_Foo_C_Export.h
- includes += $(TAO_ROOT)/tao
-
- IDL_Files {
- Foo_C.idl
- }
-
- Source_Files {
- Foo_CC.cpp
- Foo_CS.cpp
- Foo_C_ClientEngine.cpp
- Foo_C_Custom_ClientEngine.cpp
- Foo_C_Custom_Proxy.cpp
- Foo_C_cust_op1.cpp
- Foo_C_cust_op2.cpp
- Foo_C_cust_op3.cpp
- Foo_C_cust_op4.cpp
- Foo_C_cust_op5.cpp
- Foo_C_i.cpp
- Foo_C_Statistics.cpp
- }
-
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/CSD_TP_Test_1.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/CSD_TP_Test_1.mpc
deleted file mode 100644
index 02cac4dc7da..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/CSD_TP_Test_1.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_tp_test_exe_a {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(*Client): csd_tp_test_exe_a {
- exename=client_main
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.cpp
deleted file mode 100644
index d51dfbda1b1..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "Foo_A_ClientEngine.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-
-
-ClientApp::ClientApp()
- : TestAppBase("TP_Test_1_Client")
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- // Initialize the ORB before parsing our own args.
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Returns -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
- // Convert the IOR string to a Foo_A object reference.
- Foo_A_var foo = RefHelper<Foo_A>::string_to_ref(orb.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the appropriate client "engine" object.
- Foo_A_ClientEngine engine(foo.in());
-
- // Execute the client algorithm
- result = engine.execute(ACE_ENV_SINGLE_ARG_PARAMETER) ? 0 : -1;
- ACE_CHECK_RETURN (-1);
-
- return result;
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) usage: %s -i <ior_string>\n",
- argv[0]));
- return 1;
-
- default:
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s -i <ior_string>\n",
- argv[0]));
- return -1;
- }
- }
-
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.h
deleted file mode 100644
index 1af2e9ff6a6..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ClientApp.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestAppBase.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
-
- ACE_CString ior_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp
deleted file mode 100644
index eb0d108bfb1..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.cpp
+++ /dev/null
@@ -1,192 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "Foo_A_i.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-#include "AppShutdown.h"
-#include "ace/Get_Opt.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/Intrusive_Ref_Count_Handle_T.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-ServerApp::ServerApp()
- : TestAppBase("TP_Test_1_Server"),
- num_clients_ (1)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- // Initialize the ORB before parsing our own args.
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Returns -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheAppShutdown->init(orb.in(), num_clients_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Get the Root POA
- PortableServer::POA_var root_poa =
- RefHelper<PortableServer::POA>::resolve_initial_ref(orb.in(),
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var child_poa =
- AppHelper::create_poa("ChildPoa",
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
-
- // Create the thread pool servant dispatching strategy object, and
- // hold it in a (local) smart pointer variable.
- TAO_Intrusive_Ref_Count_Handle<TAO::CSD::TP_Strategy> csd_strategy =
- new TAO::CSD::TP_Strategy();
-
- // Tell the strategy to apply itself to the child poa.
- if (csd_strategy->apply_to(child_poa.in() ACE_ENV_ARG_PARAMETER) == false)
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to child poa.\n"));
- return -1;
- }
- ACE_CHECK_RETURN (-1);
-
- // Create the servant object.
- Foo_A_i* servant = new Foo_A_i();
-
- // Local smart pointer variable to deal with releasing the reference
- // to the servant object when the variable falls out of scope.
- PortableServer::ServantBase_var servant_owner(servant);
-
- // Obtain the object reference using the servant
- CORBA::Object_var obj = AppHelper::activate_servant(child_poa.in(),
- servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Stringify and save the object reference to a file
- AppHelper::ref_to_file(orb.in(),
- obj.in(),
- this->ior_filename_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- // Run the ORB event loop.
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB event loop has completed.\n"));
-
- TheAppShutdown->wait ();
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- ACE_Get_Opt get_opts(argc, argv, "o:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'o':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 'n':
- {
- int tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -n must be followed by an integer "
- "value greater than 0.\n"));
- return -1;
- }
-
- this->num_clients_ = tmp;
- }
- break;
-
- case '?':
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s -o <ior_filename> -n <num_clients>\n",
- argv[0]));
- return 1;
-
- default:
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s -o <ior_filename> -n <num_clients>\n",
- argv[0]));
- return -1;
- }
- }
-
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.h
deleted file mode 100644
index 3bfe10e6f0a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/ServerApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestAppBase.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
-
- ACE_CString ior_filename_;
- unsigned num_clients_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/client_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/client_main.cpp
deleted file mode 100644
index ae98ca0f6ac..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/client_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ClientApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl
deleted file mode 100755
index 1ff6338702b..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl
+++ /dev/null
@@ -1,60 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-$status = 0;
-
-$num_clients=40;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "-o $iorfile -n $num_clients");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "-o $iorfile -n $num_clients");
-}
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- @CLS[$i] = new PerlACE::Process ("client_main", " -i file://$iorfile");
-
- @CLS[$i]->Spawn ();
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- $client = @CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/server_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_1/server_main.cpp
deleted file mode 100644
index 82e987f6d41..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_1/server_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ServerApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/CSD_TP_Test_2.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/CSD_TP_Test_2.mpc
deleted file mode 100644
index 02cac4dc7da..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/CSD_TP_Test_2.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_tp_test_exe_a {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(*Client): csd_tp_test_exe_a {
- exename=client_main
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.cpp
deleted file mode 100644
index 531dba15f17..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.cpp
+++ /dev/null
@@ -1,196 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-#include "Foo_A_ClientEngine.h"
-#include "ace/Get_Opt.h"
-
-
-ClientApp::ClientApp()
- : TestAppBase("TP_Test_2_Client"),
- ior_("Not Set"),
- client_kind_(0),
- client_id_(0)
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- if (result != 0)
- {
- return result;
- }
-
- this->client_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- result = this->run_engine(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->cleanup();
- return result;
-}
-
-
-int
-ClientApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- return this->parse_args(argc, argv);
-}
-
-
-void
-ClientApp::client_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Turn the ior_ into a Foo_A obj ref.
- Foo_A_var foo = RefHelper<Foo_A>::string_to_ref(this->orb_.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Create the ClientEngine object, and give it the Foo_A obj ref.
- this->engine_ = new Foo_A_ClientEngine(foo.in(), this->client_id_);
-}
-
-
-int
-ClientApp::run_engine(ACE_ENV_SINGLE_ARG_DECL)
-{
- bool result = this->engine_->execute(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- return result ? 0 : -1;
-}
-
-
-void
-ClientApp::cleanup()
-{
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:k:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case 'k':
- result = set_arg(this->client_kind_,
- get_opts.opt_arg(),
- c,
- "client_kind");
- break;
-
- case 'n':
- result = set_arg(this->client_id_,
- get_opts.opt_arg(),
- c,
- "client_id");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-k <client_kind>]\n"
- "\t[-n <client_id>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ClientApp::arg_dependency_checks()
-{
- if (this->ior_ == "Not Set")
- {
- ACE_ERROR((LM_ERROR,
- "Error: Missing required command-line option (-i <ior>).\n"));
- this->usage_statement();
- return -1;
- }
-
- if (this->client_id_ <= 0)
- {
- ACE_ERROR((LM_ERROR,
- "Error: Invalid command-line option (-n <client id>). \n"
- " The client id should be positive integer. \n"));
- this->usage_statement();
- return -1;
- }
-
- return 0;
-}
-
-
-int
-ClientApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.h
deleted file mode 100644
index d5bb80cf800..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ClientApp.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestAppBase.h"
-#include "ClientEngine.h"
-#include "tao/ORB.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void client_setup(ACE_ENV_SINGLE_ARG_DECL);
- int run_engine(ACE_ENV_SINGLE_ARG_DECL);
- void cleanup();
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- CORBA::ORB_var orb_;
- ACE_CString exe_name_;
- ACE_CString ior_;
- unsigned client_kind_;
- ClientEngine_Handle engine_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp
deleted file mode 100644
index f291baacad4..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.cpp
+++ /dev/null
@@ -1,375 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "AppHelper.h"
-#include "OrbRunner.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "Foo_A_ClientEngine.h"
-#include "ace/OS.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-ServerApp::ServerApp()
- : TestAppBase("TP_Test_2_Server"),
- ior_filename_prefix_("foo"),
- num_servants_(1),
- num_csd_threads_(1),
- num_orb_threads_(1),
- num_remote_clients_(1),
- num_collocated_clients_(0),
- collocated_client_kind_(0)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- if (result != 0)
- {
- return result;
- }
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->servant_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->collocated_setup();
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_collocated_clients(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- this->cleanup();
- return this->check_validity () ? 0 : -1;
-}
-
-
-int
-ServerApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
-
- if (result != 0)
- {
- return result;
- }
-
- unsigned num_clients = this->num_remote_clients_ +
- this->num_collocated_clients_;
-
- TheAppShutdown->init (this->orb_.in (), num_clients ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ServerApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-}
-
-
-void
-ServerApp::servant_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->servants_.create_and_activate(this->num_servants_,
- this->orb_.in (),
- this->poa_.in (),
- this->ior_filename_prefix_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::collocated_setup()
-{
- int client_id_start = this->num_remote_clients_;
- for (unsigned i = 0; i < this->num_collocated_clients_; i++)
- {
- // Dole out the servant object references in a round-robin fashion.
- unsigned servant_index = i % this->num_servants_;
-
- ServantListType::T_stub_var obj = this->servants_.objref(servant_index);
- ClientEngine_Handle engine = new Foo_A_ClientEngine(obj.in(), ++client_id_start, true);
- this->collocated_client_task_.add_engine(engine.in());
- }
-}
-
-
-void
-ServerApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ > 0)
- {
- if (this->collocated_client_task_.open() == -1)
- {
- ACE_THROW (TestAppException ());
- }
- }
-}
-
-
-void
-ServerApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-void
-ServerApp::cleanup()
-{
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:n:t:r:c:k:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'p':
- this->ior_filename_prefix_ = get_opts.opt_arg();
- break;
-
- case 's':
- result = this->set_arg(this->num_servants_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 'n':
- result = this->set_arg(this->num_csd_threads_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 't':
- result = this->set_arg(this->num_orb_threads_,
- get_opts.opt_arg(),
- c,
- "num_orb_threads",
- 1);
- break;
-
- case 'r':
- result = this->set_arg(this->num_remote_clients_,
- get_opts.opt_arg(),
- c,
- "num_remote_clients");
- break;
-
- case 'c':
- result = this->set_arg(this->num_collocated_clients_,
- get_opts.opt_arg(),
- c,
- "num_collocated_clients");
- break;
-
- case 'k':
- result = this->set_arg(this->collocated_client_kind_,
- get_opts.opt_arg(),
- c,
- "collocated_client_kind");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-p <ior_filename_prefix>]\n"
- "\t[-s <num_servants>]\n"
- "\t[-n <num_csd_threads>]\n"
- "\t[-t <num_orb_threads>]\n"
- "\t[-r <num_remote_clients>]\n"
- "\t[-c <num_collocated_clients>]\n"
- "\t[-k <collocated_client_kind>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ServerApp::arg_dependency_checks()
-{
- return (this->num_remote_clients_
- + this->num_collocated_clients_) > 0 ? 0 : -1;
-}
-
-
-int
-ServerApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
-PortableServer::POA_ptr
-ServerApp::create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-bool
-ServerApp::check_validity ()
-{
- // Check whether the clients return any errors.
- if (this->num_collocated_clients_ > 0
- && this->collocated_client_task_.failure_count () > 0)
- {
- return false;
- }
-
- unsigned num_clients = this->num_remote_clients_ +
- this->num_collocated_clients_;
-
- Foo_A_Statistics stats (num_clients);
-
- Foo_A_ClientEngine::expected_results (stats);
-
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- this->servants_.servant(i)->gather_stats(stats);
- }
-
- return stats.actual_vs_expected ();
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.h
deleted file mode 100644
index 73b5ccbbd94..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/ServerApp.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestAppBase.h"
-#include "Foo_A_i.h"
-#include "ServantList_T.h"
-#include "ClientTask.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void servant_setup(ACE_ENV_SINGLE_ARG_DECL);
- void collocated_setup();
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL);
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_validity ();
- void cleanup();
-
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
- typedef ServantList<Foo_A_i> ServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- ServantListType servants_;
-
- ClientTask collocated_client_task_;
-
- ACE_CString exe_name_;
-
- ACE_CString ior_filename_prefix_;
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
- unsigned num_remote_clients_;
- unsigned num_collocated_clients_;
- unsigned collocated_client_kind_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/client_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/client_main.cpp
deleted file mode 100644
index 3814bef5ff9..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/client_main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ClientApp)
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl
deleted file mode 100755
index 37fd19f21f6..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl
+++ /dev/null
@@ -1,186 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-my $status = 0;
-
-my $iorfname_prefix = "servant";
-my $num_servants = 1;
-my $num_orb_threads = 1;
-my $num_remote_clients = 1;
-my $num_csd_threads = 1;
-my $num_collocated_clients = 0;
-my $collocated_client_kind = 0;
-my $client_kind = 0;
-
-my $i;
-my $j;
-my @iorfile;
-
-my $ARGC = @ARGV;
-
-if ($ARGC > 0)
-{
- if ($ARGC > 1)
- {
- print STDERR "ERROR: Too many command-line arguments for $0.\n";
- exit 1;
- }
-
- my $subtest = $ARGV[0];
-
- if ($subtest eq 'remote')
- {
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'collocated')
- {
- $num_remote_clients = 0;
- $num_collocated_clients = 1;
- }
- elsif ($subtest eq 'remote_orbthreads')
- {
- $num_orb_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_servants')
- {
- $num_servants = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_csdthreads')
- {
- $num_csd_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'usage')
- {
- print STDOUT "Usage: $0 [<subtest>]\n" .
- "\n" .
- "Supported <subtest> values:\n" .
- "\n" .
- "\tremote\n" .
- "\tcollocated\n" .
- "\tremote_orbthreads\n" .
- "\tremote_servants\n" .
- "\tremote_csdthreads\n" .
- "\tremote_big\n" .
- "\tusage\n" .
- "\n";
- exit 0;
- }
- else
- {
- print STDERR "ERROR: invalid subtest argument for $0: $subtest\n";
- exit 1;
- }
-}
-
-#Delete old ior files.
-for ($i = 0; $i < $num_servants; $i++) {
- my $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
- unlink $iorfile[$i];
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-else {
- $SV = new PerlACE::Process("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-
-
-$SV->Spawn();
-
-
-# Wait for the servant ior files created by server.
-for ($i = 0; $i < $num_servants; $i++) {
- if (PerlACE::waitforfile_timed
- ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill();
- $SV->TimedWait(1);
- exit 1;
- }
-}
-
-
-my $count = 0;
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
-
- $client_id = $i+1;
-
- $j = $i % $num_servants;
-
- $CLS[$i] = new PerlACE::Process("client_main",
- "-i file://$iorfile[$j] ".
- "-k $client_kind ".
- "-n $client_id");
-
- $CLS[$i]->Spawn();
-}
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client = $CLS[$i]->WaitKill(60);
-
- if ($client != 0)
- {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill(60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for ($i = 0; $i < $num_servants; $i++) {
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/server_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_2/server_main.cpp
deleted file mode 100644
index 0be257accae..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_2/server_main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ServerApp)
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/CSD_TP_Test_3.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/CSD_TP_Test_3.mpc
deleted file mode 100644
index 016caef75ef..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/CSD_TP_Test_3.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_tp_test_exe_b {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(*Client): csd_tp_test_exe_b {
- exename=client_main
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp
deleted file mode 100644
index 147b5ca43cf..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.cpp
+++ /dev/null
@@ -1,326 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "AppHelper.h"
-#include "OrbRunner.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "Foo_B_ClientEngine.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-ClientApp::ClientApp()
-: TestAppBase("TP_Test_3_Client"),
- client_task_ (true), // shutdown orb after client is done.
- num_servants_ (1),
- num_csd_threads_ (1),
- num_orb_threads_ (1),
- ior_("Not Set"),
- client_kind_(0),
- client_id_(0)
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- if (result != 0)
- {
- return result;
- }
- ACE_CHECK_RETURN (-1);
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->client_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_clients();
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- result = this->check_validity () ? 0 : -1;
- this->cleanup();
-
- return result;
-}
-
-
-int
-ClientApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheAppShutdown->init(this->orb_.in(), num_servants_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ClientApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ClientApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-}
-
-
-void
-ClientApp::client_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Turn the ior_ into a Foo_B obj ref.
- Foo_B_var foo = RefHelper<Foo_B>::string_to_ref(this->orb_.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- this->servants_.create_and_activate(1, // number of callback servants
- this->poa_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- ServantListType::T_stub_var cb = this->servants_.objref(0);
-
- // Create the ClientEngine object, and give it the Foo_B and Callback object
- // references.
- ClientEngine_Handle engine
- = new Foo_B_ClientEngine(foo.in(), cb.in (), this->client_id_);
- this->client_task_.add_engine(engine.in());
-}
-
-
-void
-ClientApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ClientApp::run_clients()
-{
- this->client_task_.open();
-}
-
-
-void
-ClientApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-PortableServer::POA_ptr
-ClientApp::create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-void
-ClientApp::cleanup()
-{
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:k:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case 'k':
- result = set_arg(this->client_kind_,
- get_opts.opt_arg(),
- c,
- "client_kind");
- break;
-
- case 'n':
- result = set_arg(this->client_id_,
- get_opts.opt_arg(),
- c,
- "client_id");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-k <client_kind>]\n"
- "\t[-n <client_id>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ClientApp::arg_dependency_checks()
-{
- if (this->ior_ == "Not Set")
- {
- ACE_ERROR((LM_ERROR,
- "Error: Missing required command-line option (-i <ior>).\n"));
- this->usage_statement();
- return -1;
- }
- if (this->client_id_ <= 0)
- {
- ACE_ERROR((LM_ERROR,
- "Error: Invalid command-line option (-n <client id>). \n"
- " The client id should be positive integer. \n"));
- this->usage_statement();
- return -1;
- }
-
- return 0;
-}
-
-
-int
-ClientApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
-bool
-ClientApp::check_validity ()
-{
- // Check whether the clients return any errors.
- if (this->client_task_.failure_count () > 0)
- {
- return false;
- }
-
- return true;
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.h
deleted file mode 100644
index 2eb6f23bd39..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ClientApp.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestAppBase.h"
-#include "ClientEngine.h"
-#include "ServantList_T.h"
-#include "Callback_i.h"
-#include "ClientTask.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "tao/ORB.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void client_setup(ACE_ENV_SINGLE_ARG_DECL);
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_clients();
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_validity ();
- void cleanup();
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
-
- typedef ServantList<Callback_i> ServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- ServantListType servants_;
-
- ClientTask client_task_;
-
- ACE_CString exe_name_;
-
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
-
- ACE_CString ior_;
- unsigned client_kind_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp
deleted file mode 100644
index 883a0dec322..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.cpp
+++ /dev/null
@@ -1,428 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "AppHelper.h"
-#include "OrbRunner.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "Foo_B_ClientEngine.h"
-#include "Foo_B_ClientEngine.h"
-#include "Callback_i.h"
-#include "ace/OS.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-ServerApp::ServerApp()
- : TestAppBase("TP_Test_3_Server"),
- ior_filename_prefix_("foo"),
- num_servants_(1),
- num_csd_threads_(1),
- num_orb_threads_(1),
- num_remote_clients_(1),
- num_collocated_clients_(0),
- collocated_client_kind_(0)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- if (result != 0)
- {
- return result;
- }
- ACE_CHECK_RETURN (-1);
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->servant_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->collocated_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_collocated_clients(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB event loop has completed.\n"));
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- this->cleanup();
- result = this->check_validity () ? 0 : -1;
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp check_validity returned %d .\n", result));
-
- return result;
-}
-
-
-int
-ServerApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- unsigned num_clients = this->num_remote_clients_ +
- this->num_collocated_clients_;
-
- TheAppShutdown->init(this->orb_.in(), num_clients ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ServerApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (this->num_collocated_clients_ > 0)
- {
- this->cb_poa_ = this->create_poa(this->orb_.in(),
- "CallbackPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-void
-ServerApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-
- // Use another poa and strategy for callbacks. This would resolve
- // the deadlock situation that happens when having number of csd
- // threads less than number of collocated clients.
- if (this->num_collocated_clients_ > 0)
- {
- this->cb_tp_strategy_ = new TAO::CSD::TP_Strategy();
- if (!this->cb_tp_strategy_->apply_to(this->cb_poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to callback poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
- }
-}
-
-
-void
-ServerApp::servant_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->foo_servants_.create_and_activate(this->num_servants_,
- this->orb_.in (),
- this->poa_.in (),
- this->ior_filename_prefix_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::collocated_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ == 0)
- return;
-
- this->cb_servants_.create_and_activate(1, // number of callback servants
- this->cb_poa_.in()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CallbackServantListType::T_stub_var cb = this->cb_servants_.objref(0);
-
- unsigned client_id = this->num_remote_clients_;
-
- for (unsigned i = 0; i < this->num_collocated_clients_; i++)
- {
- client_id ++;
- // Dole out the servant object references in a round-robin fashion.
- unsigned servant_index = i % this->num_servants_;
-
- FooServantListType::T_stub_var foo
- = this->foo_servants_.objref(servant_index);
- ClientEngine_Handle engine
- = new Foo_B_ClientEngine(foo.in(), cb.in (), client_id, true);
- this->collocated_client_task_.add_engine(engine.in());
- }
-}
-
-
-void
-ServerApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ > 0)
- {
- if (this->collocated_client_task_.open() == -1)
- {
- ACE_THROW (TestAppException ());
- }
- }
-}
-
-
-void
-ServerApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-void
-ServerApp::cleanup()
-{
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:n:t:r:c:k:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'p':
- this->ior_filename_prefix_ = get_opts.opt_arg();
- break;
-
- case 's':
- result = set_arg(this->num_servants_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 'n':
- result = set_arg(this->num_csd_threads_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 't':
- result = set_arg(this->num_orb_threads_,
- get_opts.opt_arg(),
- c,
- "num_orb_threads",
- 1);
- break;
-
- case 'r':
- result = set_arg(this->num_remote_clients_,
- get_opts.opt_arg(),
- c,
- "num_remote_clients");
- break;
-
- case 'c':
- result = set_arg(this->num_collocated_clients_,
- get_opts.opt_arg(),
- c,
- "num_collocated_clients");
- break;
-
- case 'k':
- result = set_arg(this->collocated_client_kind_,
- get_opts.opt_arg(),
- c,
- "collocated_client_kind");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-p <ior_filename_prefix>]\n"
- "\t[-s <num_servants>]\n"
- "\t[-n <num_csd_threads>]\n"
- "\t[-t <num_orb_threads>]\n"
- "\t[-r <num_remote_clients>]\n"
- "\t[-c <num_collocated_clients>]\n"
- "\t[-k <collocated_client_kind>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ServerApp::arg_dependency_checks()
-{
- return (this->num_remote_clients_
- + this->num_collocated_clients_) > 0 ? 0 : -1;
-}
-
-
-int
-ServerApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
- return 0;
-}
-
-
-PortableServer::POA_ptr
-ServerApp::create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-bool
-ServerApp::check_validity ()
-{
- // Check whether the clients return any errors.
- if (this->num_collocated_clients_ > 0
- && this->collocated_client_task_.failure_count () > 0)
- {
- return false;
- }
-
- Foo_B_Statistics stats (this->num_remote_clients_,
- this->num_collocated_clients_);
-
- Foo_B_ClientEngine::expected_results (stats);
-
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- this->foo_servants_.servant(i)->gather_stats (stats);
- }
-
- if (this->num_collocated_clients_ > 0)
- {
- this->cb_servants_.servant (0)->gather_stats (stats);
- }
-
- return stats.actual_vs_expected ();
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.h
deleted file mode 100644
index 12af1ec455b..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/ServerApp.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestAppBase.h"
-#include "ServantList_T.h"
-#include "ClientTask.h"
-#include "Foo_B_i.h"
-#include "Callback_i.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void servant_setup(ACE_ENV_SINGLE_ARG_DECL);
- void collocated_setup(ACE_ENV_SINGLE_ARG_DECL);
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL);
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_validity ();
- void cleanup();
-
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
- typedef ServantList<Foo_B_i> FooServantListType;
- typedef ServantList<Callback_i> CallbackServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- PortableServer::POA_var cb_poa_;
- TAO::CSD::TP_Strategy_Handle cb_tp_strategy_;
-
- FooServantListType foo_servants_;
- CallbackServantListType cb_servants_;
-
- ClientTask collocated_client_task_;
-
- ACE_CString exe_name_;
-
- ACE_CString ior_filename_prefix_;
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
- unsigned num_remote_clients_;
- unsigned num_collocated_clients_;
- unsigned collocated_client_kind_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/client_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/client_main.cpp
deleted file mode 100644
index 3814bef5ff9..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/client_main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ClientApp)
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl
deleted file mode 100755
index 13aac1fa8c9..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl
+++ /dev/null
@@ -1,186 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-my $status = 0;
-
-my $iorfname_prefix = "servant";
-my $num_servants = 1;
-my $num_orb_threads = 1;
-my $num_remote_clients = 1;
-my $num_csd_threads = 1;
-my $num_collocated_clients = 0;
-my $collocated_client_kind = 0;
-my $client_kind = 0;
-
-my $i;
-my $j;
-my @iorfile;
-
-my $ARGC = @ARGV;
-
-if ($ARGC > 0)
-{
- if ($ARGC > 1)
- {
- print STDERR "ERROR: Too many command-line arguments for $0.\n";
- exit 1;
- }
-
- my $subtest = $ARGV[0];
-
- if ($subtest eq 'remote')
- {
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'collocated')
- {
- $num_remote_clients = 0;
- $num_collocated_clients = 1;
- $num_csd_threads=1;
- }
- elsif ($subtest eq 'remote_orbthreads')
- {
- $num_orb_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_servants')
- {
- $num_servants = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_csdthreads')
- {
- $num_csd_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'usage')
- {
- print STDOUT "Usage: $0 [<subtest>]\n" .
- "\n" .
- "Supported <subtest> values:\n" .
- "\n" .
- "\tremote\n" .
- "\tcollocated\n" .
- "\tremote_orbthreads\n" .
- "\tremote_servants\n" .
- "\tremote_csdthreads\n" .
- "\tremote_big\n" .
- "\tusage\n" .
- "\n";
- exit 0;
- }
- else
- {
- print STDERR "ERROR: invalid subtest argument for $0: $subtest\n";
- exit 1;
- }
-}
-
-#Delete old ior files.
-for ($i = 0; $i < $num_servants; $i++) {
- my $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
- unlink $iorfile[$i];
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-else {
- $SV = new PerlACE::Process("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-
-
-
-$SV->Spawn();
-
-# Wait for the servant ior files created by server.
-for ($i = 0; $i < $num_servants; $i++) {
- if (PerlACE::waitforfile_timed
- ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill();
- $SV->TimedWait(1);
- exit 1;
- }
-}
-
-my $count = 0;
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client_id = $i + 1;
-
- $j = $i % $num_servants;
-
- $CLS[$i] = new PerlACE::Process("client_main",
- "-i file://$iorfile[$j] ".
- "-k $client_kind ".
- "-n $client_id");
-# print STDERR $CLS[$i]->CommandLine() . "\n";
-
- $CLS[$i]->Spawn();
-}
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client = $CLS[$i]->WaitKill(60);
-
- if ($client != 0)
- {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill(60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for ($i = 0; $i < $num_servants; $i++) {
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/server_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_3/server_main.cpp
deleted file mode 100644
index 82e987f6d41..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_3/server_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ServerApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/CSD_TP_Test_4.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/CSD_TP_Test_4.mpc
deleted file mode 100644
index ca9f92ac607..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/CSD_TP_Test_4.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_tp_test_exe_c {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(*Client): csd_tp_test_exe_c {
- exename=client_main
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.cpp
deleted file mode 100644
index 57520df303c..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.cpp
+++ /dev/null
@@ -1,199 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-#include "Foo_C_ClientEngine.h"
-#include "ace/Get_Opt.h"
-
-
-ClientApp::ClientApp()
- : TestAppBase("TP_Test_4_Client"),
- ior_("Not Set"),
- client_kind_(0),
- client_id_(0)
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- if (result != 0)
- {
- return result;
- }
- ACE_CHECK_RETURN (-1);
-
- this->client_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- result = this->run_engine(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- this->cleanup();
-
- return result;
-}
-
-
-int
-ClientApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- return this->parse_args(argc, argv);
-}
-
-
-void
-ClientApp::client_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- // Turn the ior_ into a Foo_C obj ref.
- Foo_C_var foo = RefHelper<Foo_C>::string_to_ref(this->orb_.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- // Create the ClientEngine object, and give it the Foo_C obj ref.
- this->engine_ = new Foo_C_ClientEngine(foo.in(), this->client_id_);
-}
-
-
-int
-ClientApp::run_engine(ACE_ENV_SINGLE_ARG_DECL)
-{
- bool result = this->engine_->execute(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return result ? 0 : -1;
-}
-
-
-void
-ClientApp::cleanup()
-{
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "i:k:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case 'k':
- result = set_arg(this->client_kind_,
- get_opts.opt_arg(),
- c,
- "client_kind");
- break;
-
- case 'n':
- result = set_arg(this->client_id_,
- get_opts.opt_arg(),
- c,
- "client_id");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ClientApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-i <ior>]\n"
- "\t[-k <client_kind>]\n"
- "\t[-n <client_id>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ClientApp::arg_dependency_checks()
-{
- if (this->ior_ == "Not Set")
- {
- ACE_ERROR((LM_ERROR,
- "Error: Missing required command-line option (-i <ior>).\n"));
- this->usage_statement();
- return -1;
- }
-
- if (this->client_id_ <= 0)
- {
- ACE_ERROR((LM_ERROR,
- "Error: Invalid command-line option (-n <client id>). \n"
- " The client id should be positive integer. \n"));
- this->usage_statement();
- return -1;
- }
-
- return 0;
-}
-
-
-int
-ClientApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
-
- return 0;
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h
deleted file mode 100644
index e2f7bf6fc06..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestAppBase.h"
-#include "ClientEngine.h"
-#include "tao/ORB.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void client_setup(ACE_ENV_SINGLE_ARG_DECL);
- int run_engine(ACE_ENV_SINGLE_ARG_DECL);
- void cleanup();
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- CORBA::ORB_var orb_;
- ACE_CString exe_name_;
- ACE_CString ior_;
- unsigned client_kind_;
- ClientEngine_Handle engine_;
- unsigned client_id_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/README b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/README
deleted file mode 100644
index 100428e0103..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/README
+++ /dev/null
@@ -1,337 +0,0 @@
-// $Id$
-===========================================================================
-Directory: $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Test_4
-
-Uses Libs: $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Test_Lib
- $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Foo_C
-
-===========================================================================
-Executable: server_main
-
-Description: The test server application.
-
-Command-Line:
-
- % server_main [options]
-
- where, [options] includes the following:
-
- -p <ior_filename_prefix>
- -s <num_servants>
- -n <num_csd_threads>
- -t <num_orb_threads>
- -r <num_remote_clients>
- -c <num_collocated_clients>
- -k <collocated_client_kind>
- -?
-
-Command-Line Arguments:
-
- -p <ior_filename_prefix>
-
- If not specified, the <ior_filename_prefix> defaults to "foo".
- This value is used as the prefix for the filename(s) to which
- the server application will write stringified object reference(s).
- Each "IOR file" contains the (stringified) object reference
- associated with a distinct servant object within the server
- application. These files are the way that the client application(s)
- are able to "locate" the object reference(s) upon which they will
- invoke (CORBA) operations. In essence, the filesystem is used
- as a "poor-man" Naming Service.
-
- The filenames are of the form, "prefix_%02d.ior", using a unique
- integer "id" for each file - starting with an "id" of 1. Thus,
- if the server application was told to create 3 servants (via the
- -s <num_servants> option), and the <ior_filename_prefix> is "foo",
- then three files will be written by the server application:
-
- foo_01.ior
- foo_02.ior
- foo_03.ior
-
-
- -s <num_servants>
-
- The <num_servants> must be an integer value greater than 0.
-
- If not specified, the <num_servants> defaults to 1. This is used
- to inform the server application of the number of distinct servant
- objects that it should create.
-
-
- -n <num_csd_threads>
-
- The <num_csd_threads> must be an integer value greater than 0.
-
- If not specified, the <num_csd_threads> defaults to 1. This is
- used to inform the server application of the number of worker
- threads that should be activated by the Thread Pool CSD Strategy.
- The worker threads are responsible for servicing the strategy's
- request queue. This can also be called the "size of the thread
- pool".
-
-
- -t <num_orb_threads>
-
- The <num_orb_threads> must be an integer value greater than 0.
-
- If not specified, the <num_orb_threads> defaults to 1. This option
- is used to tell the server application how many distinct threads
- should be used to run the ORB event loop. The "mainline thread"
- will always run the ORB event loop itself, so that accounts for
- one of the num_orb_threads. If num_orb_threads is greater than 1,
- then (num_orb_threads - 1) threads will be activated by the server
- application, and each of these threads will run the ORB event loop.
- The end result is that there will be <num_orb_threads> distinct
- threads (including the mainline thread) running the ORB event loop.
-
-
- -r <num_remote_clients>
-
- The <num_remote_clients> must be an integer value greater than,
- or equal to, 0. In addition, the sum of the <num_remote_clients>
- and the <num_collocated_clients> (see the -c option) must be
- greater than 0. Both cannot be 0, since the server application
- would interpret this to mean that no clients will ever use it,
- and that's kind of pointless.
-
- If not specified, the <num_remote_clients> defaults to 1. This
- option informs the server application how many remote clients it
- can expect to "hear" from over the course of its lifetime. Each
- distinct test client, remote or collocated, is required to invoke
- the done() operation on one of the servant objects. The server
- application decides to shut itself down gracefully when it has
- received one done() invocation for each remote client and for
- each collocated client. Once all of the expected done() calls
- have been made, the server application assumes that no more clients
- will need its services, and thus it shuts itself down. This is
- used to support the automated test scenarios implemented within
- the run_test.pl script. It provides a way for a test scenario to
- automate the graceful shutdown of the server by telling the server
- how many clients to expect (remote + collocated).
-
-
- -c <num_collocated_clients>
-
- The <num_collocated_clients> must be an integer value greater than,
- or equal to, 0. In addition, the sum of the <num_collocated_clients>
- and the <num_remote_clients> (see the -r option) must be
- greater than 0. Both cannot be 0, since the server application
- would interpret this to mean that no clients will ever use it,
- and that's kind of pointless.
-
- If not specified, the <num_collocated_clients> defaults to 0. This
- option informs the server application how many collocated clients
- should "live", collocated, within the server application. Each
- collocated client will execute its logic in a distinct thread
- within the server application. As an example, if the server
- application was told to use a <num_collocated_clients> value of 40,
- then the server application will activate 40 threads - each
- carrying out the logic of one "client". This client "logic" is
- identical to the logic carried out by a single remote client
- application (client_main) process. As with remote clients,
- each collocated client will invoke the done() operation on
- one of the servants (via an object ref) when the client logic
- has been completed. See the "-r <num_remote_clients>" option
- for more information about the done() operation, and its purpose.
-
- For this particular server application (TP_Test_4), each
- collocated client will perform the normal client logic as well
- as carry out a set of "custom" requests on the collocated servant.
- Custom operations not defined in IDL.
-
-
- -k <collocated_client_kind>
-
- This is reserved for future use. It currently doesn't get used
- for anything.
-
-
- -?
-
- This is used to request the "Usage Statement" for the Server
- Application (ie, "server_main -?" prints the usage statement).
-
-
-===========================================================================
-Executable: client_main
-
-Description: The test client application.
-
-Command-Line:
-
- % client_main [options]
-
- where, [options] includes the following:
-
- -i <ior>
- -n <client_id>
- -k <collocated_client_kind>
- -?
-
-
-Command-Line Arguments:
-
- -i <ior>
-
- The <ior> is required, and must be a valid IOR. In our case, where
- the server application saves stringified object references to files,
- we supply the client application with an <ior> in the following
- form: "file://foo_01.ior". See the server application's description
- of its "-p <ior_filename_prefix>" option for more information.
-
- The client application will use the <ior> to obtain an object
- reference using the CORBA::ORB::string_to_object() method. This
- is the object reference upon which the client logic will invoke
- operations. The object reference will be associated with a
- distinct servant object within the server application.
-
-
- -n <client_id>
-
- The <client_id> is required, and must be an integer value greater
- than 0.
-
- As part of the logic used to check actual vs. expected results,
- each client is assigned a unique id. As a side-note, each
- collocated client within the server application (if there are
- any) will also be assigned a unique client_id. For any given
- test scenario run by the run_test.pl script, each client (remote
- and/or collocated) will be assigned a unique client_id.
-
- The server application assigns client_ids to its collocated clients
- based upon its knowledge of how many remote clients will be used
- in the test scenario (see the "-r <num_remote_clients>" option
- for the server application). The server application assumes that
- the run_test.pl will assign client_ids to remote clients starting
- with 1, and up to the <num_remote_clients>. Thus, the server
- application assigns client_ids to collocated clients starting
- with (<num_remote_clients> + 1), and incrementing by 1 for each
- additional collocated client_id.
-
-
- -k <collocated_client_kind>
-
- This is reserved for future use. It currently doesn't get used
- for anything.
-
-
- -?
-
- This is used to request the "Usage Statement" for the Client
- Application (ie, "client_main -?" prints the usage statement).
-
-
-===========================================================================
-Executable: run_test.pl (PERL script).
-
-Description: Script used to run a specific test scenario. This includes
- the launching of a server application process and client
- applications processes as called for by the specific scenario.
-
-Command-Line:
-
- % run_test.pl <scenario>
-
- where, <scenario> can be one of the following values:
-
- "big"
- "a"
- "b"
-
- If a <scenario> is not specified on the run_test.pl command-line,
- then a default scenario is used.
-
-
-Scenarios:
-
- -----------------------------------------------------------------------
- Default: (when no <scenario> is specified on the command-line)
-
- $iorfname_prefix = "servant";
- $num_servants = 1;
- $num_orb_threads = 1;
- $num_remote_clients = 1;
- $num_csd_threads = 1;
- $num_collocated_clients = 0;
-
- -----------------------------------------------------------------------
- "remote":
-
- Uses the Default values, with the following overrides:
-
- $num_remote_clients = 40;
-
- -----------------------------------------------------------------------
- "collocated":
-
- Uses the Default values, with the following overrides:
-
- $num_remote_clients = 0;
- $num_collocated_clients = 1;
-
- -----------------------------------------------------------------------
- "collocated_big":
-
- Uses the Default values, with the following overrides:
-
- $num_remote_clients = 0;
- $num_csd_threads = 5;
- $num_collocated_clients = 40;
-
- -----------------------------------------------------------------------
- "remote_orbthreads":
-
- Uses the Default values, with the following overrides:
-
- $num_orb_threads = 5;
- $num_remote_clients = 40;
-
- -----------------------------------------------------------------------
- "remote_servants":
-
- Uses the Default values, with the following overrides:
-
- $num_servants = 5;
- $num_remote_clients = 40;
-
- -----------------------------------------------------------------------
- "remote_csdthreads":
-
- Uses the Default values, with the following overrides:
-
- $num_csd_threads = 5;
- $num_remote_clients = 40;
-
- -----------------------------------------------------------------------
- "remote_big":
-
- Uses the Default values, with the following overrides:
-
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
-
- -----------------------------------------------------------------------
- "big":
-
- Uses the Default values, with the following overrides:
-
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- $num_collocated_clients = 40;
-
- -----------------------------------------------------------------------
- "usage":
-
- This is not really a test scenario, but it will cause the
- run_test.pl script to print a "Usage Statement", which includes
- a list of the supported <scenario> values.
-
- -----------------------------------------------------------------------
-
-
-===========================================================================
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp
deleted file mode 100644
index 9ce517c4863..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.cpp
+++ /dev/null
@@ -1,391 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "AppHelper.h"
-#include "OrbRunner.h"
-#include "AppShutdown.h"
-#include "TestAppExceptionC.h"
-#include "Foo_C_Custom_ClientEngine.h"
-#include "Foo_C_ClientEngine.h"
-#include "Foo_C_Statistics.h"
-#include "ace/OS.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-ServerApp::ServerApp()
- : TestAppBase("TP_Test_4_Server"),
- ior_filename_prefix_("foo"),
- num_servants_(1),
- num_csd_threads_(1),
- num_orb_threads_(1),
- num_remote_clients_(1),
- num_collocated_clients_(0),
- collocated_client_kind_(0)
-{
-}
-
-
-ServerApp::~ServerApp()
-{
-}
-
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- int result = this->init(argc, argv ACE_ENV_ARG_PARAMETER);
- if (result != 0)
- {
- return result;
- }
- ACE_CHECK_RETURN (-1);
-
- this->poa_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->csd_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->servant_setup(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->collocated_setup();
- this->poa_activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_collocated_clients(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- this->run_orb_event_loop(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- this->cleanup();
- return this->check_validity () ? 0 : -1;
-}
-
-
-int
-ServerApp::init(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- this->orb_ = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Raises -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- unsigned num_clients = this->num_remote_clients_ +
- this->num_collocated_clients_;
-
- TheAppShutdown->init(this->orb_.in(), num_clients ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return 0;
-}
-
-
-void
-ServerApp::poa_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->poa_ = this->create_poa(this->orb_.in(),
- "ChildPoa"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::csd_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->tp_strategy_ = new TAO::CSD::TP_Strategy(this->num_csd_threads_);
-
- if (!this->tp_strategy_->apply_to(this->poa_.in() ACE_ENV_ARG_PARAMETER))
- {
- ACE_ERROR((LM_ERROR,
- "Failed to apply CSD strategy to poa.\n"));
- ACE_THROW(TestAppException());
- }
- ACE_CHECK;
-}
-
-
-void
-ServerApp::servant_setup(ACE_ENV_SINGLE_ARG_DECL)
-{
- this->servants_.create_and_activate(this->num_servants_,
- this->orb_.in (),
- this->poa_.in (),
- this->ior_filename_prefix_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::collocated_setup()
-{
- int custom_client_id_start = this->num_remote_clients_;
-
- unsigned servant_index = 0;
-
- for (unsigned i = 0; i < this->num_collocated_clients_; i++)
- {
- if (i > 0)
- {
- // Dole out the servant object references in a round-robin fashion.
- servant_index = (servant_index + 1) % this->num_servants_;
- }
-
- ServantListType::T_stub_var obj = this->servants_.objref(servant_index);
-
- ClientEngine_Handle engine =
- new Foo_C_Custom_ClientEngine(this->servants_.servant(servant_index),
- obj.in(),
- this->tp_strategy_.in(),
- ++ custom_client_id_start);
- this->collocated_client_task_.add_engine(engine.in());
- }
-}
-
-
-void
-ServerApp::poa_activate(ACE_ENV_SINGLE_ARG_DECL)
-{
- PortableServer::POAManager_var poa_manager
- = this->poa_->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-}
-
-
-void
-ServerApp::run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL)
-{
- if (this->num_collocated_clients_ > 0)
- {
- if (this->collocated_client_task_.open() == -1)
- {
- ACE_THROW (TestAppException ());
- }
- }
-}
-
-
-void
-ServerApp::run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL)
-{
- OrbRunner orb_runner(this->orb_.in(), this->num_orb_threads_);
- orb_runner.run(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- TheAppShutdown->wait ();
-}
-
-
-void
-ServerApp::cleanup()
-{
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- this->servants_.servant(i)->dump();
- }
-
- // Wait for all of the collocated client task threads to finish.
- if (this->num_collocated_clients_ > 0)
- {
- this->collocated_client_task_.wait();
- }
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- this->exe_name_ = argv[0];
-
- ACE_Get_Opt get_opts(argc, argv, "p:s:n:t:r:c:k:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- int result = 0;
- switch (c)
- {
- case 'p':
- this->ior_filename_prefix_ = get_opts.opt_arg();
- break;
-
- case 's':
- result = this->set_arg(this->num_servants_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 'n':
- result = this->set_arg(this->num_csd_threads_,
- get_opts.opt_arg(),
- c,
- "num_servants",
- 1);
- break;
-
- case 't':
- result = this->set_arg(this->num_orb_threads_,
- get_opts.opt_arg(),
- c,
- "num_orb_threads",
- 1);
- break;
-
- case 'r':
- result = this->set_arg(this->num_remote_clients_,
- get_opts.opt_arg(),
- c,
- "num_remote_clients");
- break;
-
- case 'c':
- result = this->set_arg(this->num_collocated_clients_,
- get_opts.opt_arg(),
- c,
- "num_collocated_clients");
- break;
-
- case 'k':
- result = this->set_arg(this->collocated_client_kind_,
- get_opts.opt_arg(),
- c,
- "collocated_client_kind");
- break;
-
- case '?':
- this->usage_statement();
- return 1;
-
- default:
- this->usage_statement();
- return -1;
- }
-
- if (result != 0)
- {
- return result;
- }
- }
-
- return this->arg_dependency_checks();
-}
-
-void
-ServerApp::usage_statement()
-{
- ACE_ERROR((LM_ERROR,
- "Usage: %s [options]\n\n"
- "OPTIONS:\n\n"
- "\t[-p <ior_filename_prefix>]\n"
- "\t[-s <num_servants>]\n"
- "\t[-n <num_csd_threads>]\n"
- "\t[-t <num_orb_threads>]\n"
- "\t[-r <num_remote_clients>]\n"
- "\t[-c <num_collocated_clients>]\n"
- "\t[-k <collocated_client_kind>]\n"
- "\t[-?]\n\n",
- this->exe_name_.c_str()));
-}
-
-
-int
-ServerApp::arg_dependency_checks()
-{
- return (this->num_remote_clients_
- + this->num_collocated_clients_) > 0 ? 0 : -1;
-}
-
-
-int
-ServerApp::set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min)
-{
- int tmp = ACE_OS::atoi(arg);
-
- if (tmp < min)
- {
- ACE_ERROR((LM_ERROR,
- "Error: -%c <%s> must be integer type with a value of, "
- "at least, %d.\n", opt, name, min));
- this->usage_statement();
- return -1;
- }
-
- value = tmp;
-
- return 0;
-}
-
-
-PortableServer::POA_ptr
-ServerApp::create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL)
-{
- // Get the Root POA.
- PortableServer::POA_var root_poa
- = RefHelper<PortableServer::POA>::resolve_initial_ref(orb,
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var poa
- = AppHelper::create_poa(poa_name,
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (PortableServer::POA::_nil ());
-
- // Give away the child POA_ptr from the POA_var variable.
- return poa._retn();
-}
-
-
-bool
-ServerApp::check_validity ()
-{
- Foo_C_Statistics stats (this->num_remote_clients_,
- this->num_collocated_clients_);
-
- Foo_C_ClientEngine::expected_results (stats);
- Foo_C_Custom_ClientEngine::expected_results (stats);
-
- for (unsigned i = 0; i < this->num_servants_; i++)
- {
- this->servants_.servant(i)->gather_stats(stats);
- }
-
- return stats.actual_vs_expected ();
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.h
deleted file mode 100644
index 99f0af758b5..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ServerApp.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestAppBase.h"
-#include "Foo_C_i.h"
-#include "ServantList_T.h"
-#include "ClientTask.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- // These are all called, in order, by the run_i() method.
- int init(int argc, char* argv[] ACE_ENV_ARG_DECL);
- void poa_setup(ACE_ENV_SINGLE_ARG_DECL);
- void csd_setup(ACE_ENV_SINGLE_ARG_DECL);
- void servant_setup(ACE_ENV_SINGLE_ARG_DECL);
- void collocated_setup();
- void poa_activate(ACE_ENV_SINGLE_ARG_DECL);
- void run_collocated_clients(ACE_ENV_SINGLE_ARG_DECL);
- void run_orb_event_loop(ACE_ENV_SINGLE_ARG_DECL);
- bool check_validity ();
- void cleanup();
-
-
- // Helper methods used by the methods above.
- int parse_args(int argc, char* argv[]);
-
- int set_arg(unsigned& value,
- const char* arg,
- char opt,
- const char* name,
- int min = 0);
-
- void usage_statement();
- int arg_dependency_checks();
-
-
- PortableServer::POA_ptr create_poa(CORBA::ORB_ptr orb,
- const char* poa_name
- ACE_ENV_ARG_DECL);
-
- typedef ServantList<Foo_C_i> ServantListType;
-
- CORBA::ORB_var orb_;
- PortableServer::POA_var poa_;
- TAO::CSD::TP_Strategy_Handle tp_strategy_;
-
- ServantListType servants_;
-
- ClientTask collocated_client_task_;
-
- ACE_CString exe_name_;
-
- ACE_CString ior_filename_prefix_;
- unsigned num_servants_;
- unsigned num_csd_threads_;
- unsigned num_orb_threads_;
- unsigned num_remote_clients_;
- unsigned num_collocated_clients_;
- unsigned collocated_client_kind_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/client_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/client_main.cpp
deleted file mode 100644
index 3814bef5ff9..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/client_main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ClientApp)
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl
deleted file mode 100755
index f50c6616e1e..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl
+++ /dev/null
@@ -1,191 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-my $status = 0;
-
-my $iorfname_prefix = "servant";
-my $num_servants = 1;
-my $num_orb_threads = 1;
-my $num_remote_clients = 1;
-my $num_csd_threads = 1;
-my $num_collocated_clients = 0;
-my $collocated_client_kind = 0;
-my $client_kind = 0;
-
-my $i;
-my $j;
-my @iorfile;
-
-my $ARGC = @ARGV;
-
-if ($ARGC > 0)
-{
- if ($ARGC > 1)
- {
- print STDERR "ERROR: Too many command-line arguments for $0.\n";
- exit 1;
- }
-
- my $subtest = $ARGV[0];
-
- if ($subtest eq 'remote')
- {
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'collocated')
- {
- $num_remote_clients = 0;
- $num_collocated_clients = 1;
- }
- elsif ($subtest eq 'collocated_big')
- {
- $num_remote_clients = 0;
- $num_csd_threads = 5;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'remote_orbthreads')
- {
- $num_orb_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_servants')
- {
- $num_servants = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_csdthreads')
- {
- $num_csd_threads = 5;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'remote_big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- }
- elsif ($subtest eq 'big')
- {
- $num_csd_threads = 5;
- $num_servants = 10;
- $num_orb_threads = 4;
- $num_remote_clients = 40;
- $num_collocated_clients = 40;
- }
- elsif ($subtest eq 'usage')
- {
- print STDOUT "Usage: $0 [<subtest>]\n" .
- "\n" .
- "Supported <subtest> values:\n" .
- "\n" .
- "\tremote\n" .
- "\tcollocated\n" .
- "\tremote_orbthreads\n" .
- "\tremote_servants\n" .
- "\tremote_csdthreads\n" .
- "\tremote_big\n" .
- "\tusage\n" .
- "\n";
- exit 0;
- }
- else
- {
- print STDERR "ERROR: invalid subtest argument for $0: $subtest\n";
- exit 1;
- }
-}
-
-#Delete old ior files.
-for ($i = 0; $i < $num_servants; $i++) {
- my $servant_id = sprintf("%02d", ($i + 1));
- $iorfile[$i] = PerlACE::LocalFile($iorfname_prefix . "_$servant_id.ior");
- unlink $iorfile[$i];
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-
-}
-else {
- $SV = new PerlACE::Process("server_main",
- "-p $iorfname_prefix " .
- "-s $num_servants " .
- "-n $num_csd_threads " .
- "-t $num_orb_threads " .
- "-r $num_remote_clients " .
- "-c $num_collocated_clients " .
- "-k $collocated_client_kind");
-}
-
-
-$SV->Spawn();
-
-# Wait for the servant ior files created by server.
-for ($i = 0; $i < $num_servants; $i++) {
- if (PerlACE::waitforfile_timed
- ($iorfile[$i],
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile[$i]>\n";
- $SV->Kill();
- $SV->TimedWait(1);
- exit 1;
- }
-}
-
-my $count = 0;
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
-
- $client_id = $i+1;
-
- $j = $i % $num_servants;
-
- $CLS[$i] = new PerlACE::Process("client_main",
- "-i file://$iorfile[$j] ".
- "-k $client_kind ".
- "-n $client_id");
-
- $CLS[$i]->Spawn();
-}
-
-for ($i = 0; $i < $num_remote_clients; $i++)
-{
- $client = $CLS[$i]->WaitKill(60);
-
- if ($client != 0)
- {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill(60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-#Delete ior files generated by this run.
-for ($i = 0; $i < $num_servants; $i++) {
- unlink $iorfile[$i];
-}
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/server_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/server_main.cpp
deleted file mode 100644
index 82e987f6d41..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/server_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ServerApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/CSD_TP_Test_Dynamic.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/CSD_TP_Test_Dynamic.mpc
deleted file mode 100644
index 9da402191ea..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/CSD_TP_Test_Dynamic.mpc
+++ /dev/null
@@ -1,21 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): taoserver {
- idlflags += -Sa -St
- Source_Files {
- Hello.cpp
- server.cpp
- }
-}
-
-project(*Client): taoclient {
- after += *Server
- Source_Files {
- TestC.cpp
- client.cpp
- }
-}
-
-
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.cpp
deleted file mode 100644
index 70af3ea8a11..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-//
-// $Id$
-//
-#include "Hello.h"
-
-ACE_RCSID(Hello, Hello, "$Id$")
-
-Hello::Hello (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-char *
-Hello::get_string (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup ("Hello there!");
-}
-
-void
-Hello::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h
deleted file mode 100644
index 1a404058944..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Hello.h
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef HELLO_H
-#define HELLO_H
-#include /**/ "ace/pre.h"
-
-#include "TestS.h"
-
-/// Implement the Test::Hello interface
-class Hello
- : public virtual POA_Test::Hello
-{
-public:
- /// Constructor
- Hello (CORBA::ORB_ptr orb);
-
- // = The skeleton methods
- virtual char * get_string (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- /// Use an ORB reference to conver strings to objects and shutdown
- /// the application.
- CORBA::ORB_var orb_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* HELLO_H */
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/README b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/README
deleted file mode 100644
index a4e3fbcdc2a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/README
+++ /dev/null
@@ -1,37 +0,0 @@
-// $Id$
-===========================================================================
-Directory: $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Test_5
-
-===========================================================================
-
-===========================================================================
-Directory: $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Test_Static
-
-===========================================================================
-This test shows the ThreadPool strategy can automatically apply to the poa
-via service configuration file dynamic directive.
-
-This simple test is a copy of $TAO_ROOT/tests/Hello test. The difference is
-this test contains the svc.conf file to configure the CSD strategies and the
-poas that apply the CSD strategy.
-
-A new TP_Strategy object is created during the initialization of the
-TP_Strategy_Factory service object and it will be automatically applied to
-a poa.
-
-The service configuration file specifies the number of threads that
-the ThreadPool strategy have and also specify which poa the strategy should
-apply to. We can specify multiple ThreadPool strategies and the poas via -CSDtp
-option.
-
-e.g
-dynamic TAO_CSD_TP_Strategy_Factory Service_Object *
-TAO_CSD_ThreadPool:_make_TAO_CSD_TP_Strategy_Factory() "-CSDtp RootPOA:2 -CSDtp childpoa:4"
-
-
-To run the test use the run_test.pl script:
-
-$ ./run_test.pl
-
- the script returns 0 if the test was successful.
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Test.idl b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Test.idl
deleted file mode 100644
index 3c0976e106d..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/Test.idl
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// $Id$
-//
-
-/// Put the interfaces in a module, to avoid global namespace pollution
-module Test
-{
- /// A very simple interface
- interface Hello
- {
- /// Return a simple string
- string get_string ();
-
- /// A method to shutdown the ORB
- /**
- * This method is used to simplify the test shutdown process
- */
- oneway void shutdown ();
- };
-};
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/client.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/client.cpp
deleted file mode 100644
index f85722246b5..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/client.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-// $Id$
-
-#include "TestC.h"
-#include "ace/Get_Opt.h"
-
-ACE_RCSID(Hello, client, "$Id$")
-
-const char *ior = "file://test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "k:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test::Hello_var hello =
- Test::Hello::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (hello.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil Test::Hello reference <%s>\n",
- ior),
- 1);
- }
-
- CORBA::String_var the_string =
- hello->get_string (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) - string returned <%s>\n",
- the_string.in ()));
-
- hello->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl
deleted file mode 100755
index de69f709455..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl
+++ /dev/null
@@ -1,49 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile");
-}
-$CL = new PerlACE::Process ("client", " -k file://$iorfile");
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (300);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (10);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/server.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/server.cpp
deleted file mode 100644
index bd2b023e2b7..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/server.cpp
+++ /dev/null
@@ -1,119 +0,0 @@
-// $Id$
-
-#include "Hello.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/Thread_Manager.h"
-
-ACE_RCSID (Hello,
- server,
- "$Id$")
-
-const char *ior_output_file = "test.ior";
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile>"
- "\n",
- argv [0]),
- -1);
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) != 0)
- return 1;
-
- Hello *hello_impl;
- ACE_NEW_RETURN (hello_impl,
- Hello (orb.in ()),
- 1);
- PortableServer::ServantBase_var owner_transfer(hello_impl);
-
- Test::Hello_var hello =
- hello_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (hello.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/svc.conf b/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/svc.conf
deleted file mode 100644
index e59fb4ac94c..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/svc.conf
+++ /dev/null
@@ -1 +0,0 @@
-dynamic TAO_CSD_TP_Strategy_Factory Service_Object * TAO_CSD_ThreadPool:_make_TAO_CSD_TP_Strategy_Factory() "-CSDtp RootPOA:2"
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/CSD_TP_Test_Static.mpc b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/CSD_TP_Test_Static.mpc
deleted file mode 100644
index afd9e5d8e68..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/CSD_TP_Test_Static.mpc
+++ /dev/null
@@ -1,22 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): csd_tp_test_exe_a {
- exename=server_main
-
- Source_Files {
- ServerApp.cpp
- server_main.cpp
- }
-}
-
-project(*Client): csd_tp_test_exe_a {
- exename=client_main
- after += *Server
-
- Source_Files {
- ClientApp.cpp
- client_main.cpp
- }
-}
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.cpp
deleted file mode 100644
index 38dd8c26647..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "Foo_A_ClientEngine.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-ClientApp::ClientApp()
- : TestAppBase("TP_Test_1_Client"),
- ior_ ("file://test.ior")
-{
-}
-
-
-ClientApp::~ClientApp()
-{
-}
-
-
-int
-ClientApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- // Initialize the ORB before parsing our own args.
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Returns -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
- // Convert the IOR string to a Foo_A object reference.
- Foo_A_var foo = RefHelper<Foo_A>::string_to_ref(orb.in(),
- this->ior_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the appropriate client "engine" object.
- Foo_A_ClientEngine engine(foo.in());
-
- // Execute the client algorithm
- result = engine.execute(ACE_ENV_SINGLE_ARG_PARAMETER) ? 0 : -1;
- ACE_CHECK_RETURN (-1);
-
- return result;
-}
-
-
-int
-ClientApp::parse_args(int argc, char* argv[])
-{
- ACE_Get_Opt get_opts(argc, argv, "i:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'i':
- this->ior_ = get_opts.opt_arg();
- break;
-
- case '?':
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) usage: %s -i <ior_string>\n",
- argv[0]));
- return 1;
-
- default:
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s -i <ior_string>\n",
- argv[0]));
- return -1;
- }
- }
-
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.h
deleted file mode 100644
index 1af2e9ff6a6..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ClientApp.h
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-#ifndef CLIENTAPP_H
-#define CLIENTAPP_H
-
-#include "TestAppBase.h"
-#include "ace/SString.h"
-
-
-class ClientApp : public TestAppBase
-{
- public:
-
- ClientApp();
- virtual ~ClientApp();
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
-
- ACE_CString ior_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/README b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/README
deleted file mode 100644
index 8090bdb87ce..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/README
+++ /dev/null
@@ -1,38 +0,0 @@
-// $Id$
-===========================================================================
-Directory: $TAO_ROOT/tests/CSD_Strategy_Tests/TP_Test_Static
-
-===========================================================================
-This test shows the ThreadPool strategy can automatically apply to the poa
-via service configuration file static directive.
-
-This simple test is a copy of TP_Test_1. The difference is the test
-application does not need to create the TP_Strategy object and apply to the
-poa. A new TP_Strategy object is created during the initialization of the
-TP_Strategy_Factory service object and it will be automatically applied to
-a poa.
-
-The application needs to include the following two files to force the
-TAO_CSD_ORB_Loader and TAO_CSD_TP_Strategy_Factory service objects register
-with the service repository before initializing the services specified in
-.conf file.
-
-#include "tao/CSD_Framework/CSD_ORB_Loader.h"
-#include "tao/CSD_ThreadPool/CSD_TP_Strategy_Factory.h"
-
-
-The service configuration file specifies the number of threads that
-the ThreadPool strategy have and also specify which poa the strategy should
-apply to. We can specify multiple ThreadPool strategies and the poas via -CSDtp
-option.
-
-e.g
-static TAO_CSD_TP_Strategy_Factory "-CSDtp RootPOA:2 -CSDtp ChildPoa:3"
-
-
-To run the test use the run_test.pl script:
-
-$ ./run_test.pl
-
- the script returns 0 if the test was successful.
-
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp
deleted file mode 100644
index c4af3802881..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.cpp
+++ /dev/null
@@ -1,175 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "Foo_A_i.h"
-#include "AppHelper.h"
-#include "TestAppExceptionC.h"
-#include "AppShutdown.h"
-#include "ace/Get_Opt.h"
-// To force static load the service.
-#include "tao/PI/PI.h"
-#include "tao/CSD_ThreadPool/CSD_ThreadPool.h"
-
-
-ServerApp::ServerApp()
- : TestAppBase("TP_Test_1_Server"),
- ior_filename_ ("test.ior"),
- num_clients_ (1)
-{
-}
-
-ServerApp::~ServerApp()
-{
-}
-
-int
-ServerApp::run_i(int argc, char* argv[] ACE_ENV_ARG_DECL)
-{
- // Initialize the ORB before parsing our own args.
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Parse the command-line args for this application.
- // * Returns -1 if problems are encountered.
- // * Returns 1 if the usage statement was explicitly requested.
- // * Returns 0 otherwise.
- int result = this->parse_args(argc, argv);
- if (result != 0)
- {
- return result;
- }
-
- TheAppShutdown->init(orb.in(), num_clients_ ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Get the Root POA
- PortableServer::POA_var root_poa =
- RefHelper<PortableServer::POA>::resolve_initial_ref(orb.in(),
- "RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Get the POAManager from the Root POA.
- PortableServer::POAManager_var poa_manager
- = root_poa->the_POAManager(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the child POA Policies.
- CORBA::PolicyList policies(0);
- policies.length(0);
-
- // Create the child POA
- PortableServer::POA_var child_poa =
- AppHelper::create_poa("ChildPoa",
- root_poa.in(),
- poa_manager.in(),
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the servant object.
- Foo_A_i* servant = new Foo_A_i();
-
- // Local smart pointer variable to deal with releasing the reference
- // to the servant object when the variable falls out of scope.
- PortableServer::ServantBase_var servant_owner(servant);
-
- // Obtain the object reference using the servant
- CORBA::Object_var obj = AppHelper::activate_servant(child_poa.in(),
- servant
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Stringify and save the object reference to a file
- AppHelper::ref_to_file(orb.in(),
- obj.in(),
- this->ior_filename_.c_str()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Activate the POA Manager
- poa_manager->activate(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is ready. Running the ORB event loop.\n"));
-
- // Run the ORB event loop.
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp ORB event loop has completed.\n"));
-
- TheAppShutdown->wait ();
-
- // Calling wait on ACE_Thread_Manager singleton to avoid the problem
- // that the main thread might exit before all CSD Threads exit.
-
- // Wait for all CSD task threads exit.
- ACE_Thread_Manager::instance ()->wait ();
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the Root POA.\n"));
-
- root_poa->destroy(1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp is destroying the ORB.\n"));
-
- orb->destroy(ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- ACE_DEBUG((LM_DEBUG,
- "(%P|%t) ServerApp has completed running successfully.\n"));
-
- return 0;
-}
-
-
-int
-ServerApp::parse_args(int argc, char* argv[])
-{
- ACE_Get_Opt get_opts(argc, argv, "o:n:");
-
- int c;
-
- while ((c = get_opts()) != -1)
- {
- switch (c)
- {
- case 'o':
- this->ior_filename_ = get_opts.opt_arg();
- break;
-
- case 'n':
- {
- int tmp = ACE_OS::atoi(get_opts.opt_arg());
- if (tmp < 1)
- {
- ACE_ERROR((LM_ERROR,
- "(%P|%t) Error. -n must be followed by an integer "
- "value greater than 0.\n"));
- return -1;
- }
-
- this->num_clients_ = tmp;
- }
- break;
-
- case '?':
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s -o <ior_filename> -n <num_clients>\n",
- argv[0]));
- return 1;
-
- default:
- ACE_ERROR((LM_ERROR,
- "(%P|%t) usage: %s -o <ior_filename> -n <num_clients>\n",
- argv[0]));
- return -1;
- }
- }
-
- return 0;
-}
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.h
deleted file mode 100644
index 3bfe10e6f0a..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/ServerApp.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-#ifndef SERVERAPP_H
-#define SERVERAPP_H
-
-#include "TestAppBase.h"
-#include "ace/SString.h"
-
-
-class ServerApp : public TestAppBase
-{
- public:
-
- ServerApp();
- virtual ~ServerApp();
-
-
- protected:
-
- virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL);
-
-
- private:
-
- int parse_args(int argc, char* argv[]);
-
- ACE_CString ior_filename_;
- unsigned num_clients_;
-};
-
-#endif
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/client_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/client_main.cpp
deleted file mode 100644
index ae98ca0f6ac..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/client_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ClientApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ClientApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl
deleted file mode 100755
index 7e34ffa58ba..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl
+++ /dev/null
@@ -1,61 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$iorfile = PerlACE::LocalFile ("server.ior");
-unlink $iorfile;
-$status = 0;
-
-$num_clients=40;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server_main", "-o $iorfile -n $num_clients");
-}
-else {
- $SV = new PerlACE::Process ("server_main", "-o $iorfile -n $num_clients");
-}
-
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile,
- $PerlACE::wait_interval_for_process_creation) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill (); $SV->TimedWait (1);
- exit 1;
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- @CLS[$i] = new PerlACE::Process ("client_main", " -i file://$iorfile");
-
- @CLS[$i]->Spawn ();
-}
-
-for ($i = 0; $i < $num_clients; $i++) {
-
- $client = @CLS[$i]->WaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client $i returned $client\n";
- $status = 1;
- }
-}
-
-
-$server = $SV->WaitKill (60);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/server_main.cpp b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/server_main.cpp
deleted file mode 100644
index 82e987f6d41..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/server_main.cpp
+++ /dev/null
@@ -1,5 +0,0 @@
-// $Id$
-#include "ServerApp.h"
-#include "TestAppMain.h"
-
-TEST_APP_MAIN(ServerApp)
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/svc.conf b/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/svc.conf
deleted file mode 100644
index a274350e4ac..00000000000
--- a/TAO/tests/CSD_Strategy_Tests/TP_Test_Static/svc.conf
+++ /dev/null
@@ -1 +0,0 @@
-static TAO_CSD_TP_Strategy_Factory "-CSDtp ChildPoa:2"
diff --git a/TAO/tests/Cache_Growth_Test/Cache_Growth_Test.mpc b/TAO/tests/Cache_Growth_Test/Cache_Growth_Test.mpc
index e64ad8d08a8..8e25b42d362 100644
--- a/TAO/tests/Cache_Growth_Test/Cache_Growth_Test.mpc
+++ b/TAO/tests/Cache_Growth_Test/Cache_Growth_Test.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Cache_Growth_Test/client.cpp b/TAO/tests/Cache_Growth_Test/client.cpp
index 167a3e08b27..34aa000975b 100644
--- a/TAO/tests/Cache_Growth_Test/client.cpp
+++ b/TAO/tests/Cache_Growth_Test/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, client, "$Id$")
@@ -11,7 +12,7 @@ int do_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x");
int c;
while ((c = get_opts ()) != -1)
@@ -40,15 +41,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Cache_Growth_Test/server.cpp b/TAO/tests/Cache_Growth_Test/server.cpp
index ef867fc77aa..90a69070b33 100644
--- a/TAO/tests/Cache_Growth_Test/server.cpp
+++ b/TAO/tests/Cache_Growth_Test/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/CallbackTest/CallbackTest.mpc b/TAO/tests/CallbackTest/CallbackTest.mpc
index 9bf640dd2b3..006030800af 100644
--- a/TAO/tests/CallbackTest/CallbackTest.mpc
+++ b/TAO/tests/CallbackTest/CallbackTest.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, portableserver, messaging {
- after += *Server
Source_Files {
Callback.cpp
client.cpp
diff --git a/TAO/tests/CallbackTest/client.cpp b/TAO/tests/CallbackTest/client.cpp
index c83089e148d..22cddc5edb9 100644
--- a/TAO/tests/CallbackTest/client.cpp
+++ b/TAO/tests/CallbackTest/client.cpp
@@ -5,6 +5,7 @@
#include "tao/Messaging/Messaging.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Crashed_Callback, client, "$Id$")
@@ -13,7 +14,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,12 +37,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -94,7 +97,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
}
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/CallbackTest/run_test_ipv6.pl b/TAO/tests/CallbackTest/run_test_ipv6.pl
index d015ffcec7c..582838d1a6e 100755
--- a/TAO/tests/CallbackTest/run_test_ipv6.pl
+++ b/TAO/tests/CallbackTest/run_test_ipv6.pl
@@ -13,12 +13,12 @@ unlink $iorfile;
$status = 0;
if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o server.ior -ORBConnectIPV6Only 1");
+ $SV = new PerlACE::ProcessVX ("server", "-o server.ior -ORBConnectIPV6Only YES");
}
else {
- $SV = new PerlACE::Process ("server", "-o $iorfile -ORBConnectIPV6Only 1");
+ $SV = new PerlACE::Process ("server", "-o $iorfile -ORBConnectIPV6Only YES");
}
-$CL = new PerlACE::Process ("client", " -k file://$iorfile -ORBConnectIPV6Only 1");
+$CL = new PerlACE::Process ("client", " -k file://$iorfile -ORBConnectIPV6Only YES");
$SV->Spawn ();
diff --git a/TAO/tests/CallbackTest/server.cpp b/TAO/tests/CallbackTest/server.cpp
index 07c1e010f40..3663887055e 100644
--- a/TAO/tests/CallbackTest/server.cpp
+++ b/TAO/tests/CallbackTest/server.cpp
@@ -6,6 +6,7 @@
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Crashed_Callback, server, "$Id$")
@@ -14,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -95,7 +98,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
}
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Service *service_impl;
@@ -113,7 +116,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Client_Leaks/Client_Leaks.mpc b/TAO/tests/Client_Leaks/Client_Leaks.mpc
index a83a41950f3..41961bc999f 100644
--- a/TAO/tests/Client_Leaks/Client_Leaks.mpc
+++ b/TAO/tests/Client_Leaks/Client_Leaks.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
Client_Task.cpp
@@ -21,7 +20,6 @@ project(*Client): taoclient, anytypecode {
project(*Child): taoserver {
exename = child
- after += *Client
Source_Files {
Process.cpp
child.cpp
diff --git a/TAO/tests/Client_Leaks/Process_Factory.cpp b/TAO/tests/Client_Leaks/Process_Factory.cpp
index f1039150d26..055556764e8 100644
--- a/TAO/tests/Client_Leaks/Process_Factory.cpp
+++ b/TAO/tests/Client_Leaks/Process_Factory.cpp
@@ -39,9 +39,11 @@ Process_Factory::create_new_process (ACE_ENV_SINGLE_ARG_DECL)
this->orb_->object_to_string (startup_callback.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (Test::Process::_nil ());
- const char* argv[3] = {
- "child",
- ior.in (),
+ ACE::String_Conversion::Convert_In<ACE_TCHAR, ACE_ANTI_TCHAR > tchar_ior( ior.in () );
+
+ const ACE_TCHAR* argv[3] = {
+ ACE_TEXT("child"),
+ tchar_ior.c_str (),
0};
ACE_Process_Options options;
diff --git a/TAO/tests/Client_Leaks/child.cpp b/TAO/tests/Client_Leaks/child.cpp
index 4ee5c104d0b..a3fd2feee89 100644
--- a/TAO/tests/Client_Leaks/child.cpp
+++ b/TAO/tests/Client_Leaks/child.cpp
@@ -2,16 +2,19 @@
#include "Process.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Client_Leaks, server, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (argc < 2)
@@ -27,7 +30,7 @@ main (int argc, char *argv[])
}
CORBA::Object_var object =
- orb->string_to_object (argv[1] ACE_ENV_ARG_PARAMETER);
+ orb->string_to_object (ACE_TEXT_TO_CHAR_IN(argv[1]) ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Test::Startup_Callback_var startup_callback =
Test::Startup_Callback::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
diff --git a/TAO/tests/Client_Leaks/client.cpp b/TAO/tests/Client_Leaks/client.cpp
index a06c49b3e8a..a0f4eef3b79 100644
--- a/TAO/tests/Client_Leaks/client.cpp
+++ b/TAO/tests/Client_Leaks/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Client_Leaks, client, "$Id$")
@@ -12,7 +13,7 @@ int threads = 12;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -46,15 +47,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Client_Leaks/server.cpp b/TAO/tests/Client_Leaks/server.cpp
index 4260fbfd963..84ffa7a213b 100644
--- a/TAO/tests/Client_Leaks/server.cpp
+++ b/TAO/tests/Client_Leaks/server.cpp
@@ -3,6 +3,7 @@
#include "Process_Factory.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Client_Leaks, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Process_Factory *process_factory_impl;
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/CodeSets/simple/CodeSets_simple.mpc b/TAO/tests/CodeSets/simple/CodeSets_simple.mpc
index a0a9ca666ce..ce9259b4c2c 100644
--- a/TAO/tests/CodeSets/simple/CodeSets_simple.mpc
+++ b/TAO/tests/CodeSets/simple/CodeSets_simple.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*client) : taoclient, anytypecode {
- after += *server
IDL_Files {
simple.idl
}
diff --git a/TAO/tests/CodeSets/simple/client.cpp b/TAO/tests/CodeSets/simple/client.cpp
index edf6a3ab091..445b884b223 100644
--- a/TAO/tests/CodeSets/simple/client.cpp
+++ b/TAO/tests/CodeSets/simple/client.cpp
@@ -25,6 +25,7 @@
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
wchar_t *
make_wstring (const char *str)
@@ -33,11 +34,11 @@ make_wstring (const char *str)
if (str == 0)
return 0;
- size_t len = strlen (str) + 1;
+ int len = strlen (str) + 1;
wchar_t *wstr = new wchar_t[len];
ACE_DEBUG ((LM_DEBUG,
"make_wstring: str = %s\n",str));
- for (size_t i = 0; i < len; i++)
+ for (int i = 0; i < len; i++)
{
char *t = const_cast<char *> (str);
wstr[i] = static_cast<wchar_t> (*(t + i));
@@ -50,16 +51,18 @@ make_wstring (const char *str)
// ------------------------------------------------------------
// Client
// ------------------------------------------------------------
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
char buf[1000];
int error_count = 0;
ACE_TRY_NEW_ENV
{
// Init the orb
- CORBA::ORB_var orb= CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb= CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -71,7 +74,7 @@ int main (int argc, char *argv[])
}
else
{
- ACE_OS::strcpy (buf, argv[1]);
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_CHAR_IN(argv[1]));
}
// The first arg should be the IOR
@@ -89,7 +92,7 @@ int main (int argc, char *argv[])
const char *any_string = "Any World";
CORBA::Any inarg;
- inarg <<= any_string;
+ inarg <<= CORBA::string_dup (any_string);
CORBA::Any_var outarg;
// Invoke the call.
@@ -118,15 +121,11 @@ int main (int argc, char *argv[])
{
++error_count;
}
-#if defined (ACE_HAS_WCHAR)
- wchar_t *wide_string = ACE_OS::strdup(ACE_TEXT_ALWAYS_WCHAR ("Wide String"));
+
+ wchar_t *wide_string = ACE_OS::strdup(ACE_TEXT_TO_WCHAR_IN ("Wide String"));
wchar_t *wide_reply = server->op2 (wide_string);
ACE_DEBUG ((LM_DEBUG,
"sent %W, got %W\n", wide_string, wide_reply));
-
- ACE_OS::free (wide_string);
- CORBA::wstring_free (wide_reply);
-#endif /* ACE_HAS_WCHAR */
}
ACE_CATCHANY
{
diff --git a/TAO/tests/CodeSets/simple/server.cpp b/TAO/tests/CodeSets/simple/server.cpp
index d8a23526773..9789decdc5a 100644
--- a/TAO/tests/CodeSets/simple/server.cpp
+++ b/TAO/tests/CodeSets/simple/server.cpp
@@ -24,6 +24,7 @@
#include "ace/streams.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
// ------------------------------------------------------------
// Servant for associated CORBA object
@@ -50,7 +51,7 @@ public:
ACE_NEW_RETURN (out_ptr,
CORBA::Any,
0);
- (*out_ptr) <<= any_str;
+ (*out_ptr) <<= CORBA::string_dup (any_str);
outany = out_ptr;
return CORBA::string_dup (name);
@@ -67,14 +68,15 @@ public:
// ------------------------------------------------------------
// Main routine
// ------------------------------------------------------------
-int main(int argc, char *argv[])
+int ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
// Init the orb
- CORBA::ORB_var orb= CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb= CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -119,7 +121,7 @@ int main(int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file= ACE_OS::fopen ("server.ior", "w");
+ FILE *output_file= ACE_OS::fopen ("server.ior", ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Codec/Codec.mpc b/TAO/tests/Codec/Codec.mpc
index aea55d91e36..8c4e0b18f2f 100644
--- a/TAO/tests/Codec/Codec.mpc
+++ b/TAO/tests/Codec/Codec.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Client): taoclient, codecfactory, codeset {
+project(*Client): taoclient, codecfactory {
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Codec/client.cpp b/TAO/tests/Codec/client.cpp
index a5d874386e6..ad6178f880e 100644
--- a/TAO/tests/Codec/client.cpp
+++ b/TAO/tests/Codec/client.cpp
@@ -1,9 +1,9 @@
// -*- C++ -*-
#include "tao/CodecFactory/CodecFactory.h"
-#include "tao/Codeset/Codeset.h"
#include "testC.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Log_Msg.h"
@@ -64,133 +64,24 @@ verify_data (Foo::Bar *original, Foo::Bar *extracted)
if (original->A != extracted->A
|| original->B != extracted->B
|| original->C != extracted->C
- || (ACE_OS::strcmp (original->D, extracted->D) != 0)
- || (ACE_OS::strcmp (original->E, extracted->E) != 0))
+ || (ACE_OS::strcmp (original->D.in(), extracted->D.in()) != 0)
+ || (ACE_OS::strcmp (original->E.in(), extracted->E.in()) != 0))
return -1;
return 0;
}
int
-test_codec (IOP::Codec_ptr codec)
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- // ----------------------------------------------------------
+ ACE_Argv_Type_Converter convert (argc, argv);
- // Test values to be placed in the test structure.
- const CORBA::Long A = 1010;
- const CORBA::Long B = -3427;
- const CORBA::ULongLong C = ACE_UINT64_LITERAL (2001);
- const CORBA::Char D[] = "I'm Batman.";
- const CORBA::WChar* E = gen_wstring (25);
-
- // Create the structure to be encoded.
- Foo::Bar value;
- value.A = A;
- value.B = B;
- value.C = C;
- value.D = CORBA::string_dup (D);
- value.E = CORBA::wstring_dup (E);
-
- CORBA::Any data;
- data <<= value;
-
- // ----------------------------------------------------------
-
- CORBA::OctetSeq_var encoded_data;
- CORBA::Any_var decoded_data;
- Foo::Bar *extracted_value = 0;
-
- // Encode the structure into an octet sequence using the CDR
- // enscapsulation Codec.
-
- ACE_DEBUG ((LM_DEBUG,
- "Testing CDR encapsulation Codec encode()/decode()\n"
- "=================================================\n"));
-
- // Start out with the encode() method, i.e. the one that
- // includes the TypeCode in the CDR encapsulation.
- encoded_data = codec->encode (data
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if ((reinterpret_cast<ptrdiff_t> (encoded_data->get_buffer ())
- % ACE_CDR::MAX_ALIGNMENT) == 0)
- ACE_DEBUG ((LM_DEBUG,
- "\nData for decoding are already aligned "
- "on MAX_ALIGNMENT.\n\n"));
- // Extract the data from the octet sequence.
- decoded_data = codec->decode (encoded_data.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (!(decoded_data.in() >>= extracted_value))
- ACE_ERROR_RETURN ((LM_ERROR,
- "ERROR: Unable to extract decoded data "
- "from Any\n"),
- -1);
-
- // Verify that the extracted data matches the data that was
- // originally encoded into the octet sequence.
- if (::verify_data (&value, extracted_value) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "ERROR: Data extracted using "
- "IOP::Codec::decode() does not match "
- "original data.\n"),
- -1);
-
- ACE_DEBUG ((LM_DEBUG,
- "Testing CDR encapsulation Codec "
- "encode_value()/decode_value()\n"
- "================================"
- "=============================\n"));
-
- // Now use the encode_value() method, i.e. the one that does
- // *not* include the TypeCode in the CDR encapsulation.
- encoded_data = codec->encode_value (data
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if ((reinterpret_cast<ptrdiff_t> (encoded_data->get_buffer ())
- % ACE_CDR::MAX_ALIGNMENT) == 0)
- ACE_DEBUG ((LM_WARNING,
- "\n"
- "WARNING: Data to be decoded is already aligned "
- "on MAX_ALIGNMENT.\n\n"));
-
- // Extract the data from the octet sequence.
- decoded_data = codec->decode_value (encoded_data.in (),
- Foo::_tc_Bar
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (!(decoded_data.in() >>= extracted_value))
- ACE_ERROR_RETURN ((LM_ERROR,
- "ERROR: Unable to extract decoded data "
- "from Any\n"),
- -1);
-
- // Verify that the extracted data matches the data that was
- // originally encoded into the octet sequence.
- if (::verify_data (&value, extracted_value) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "ERROR: Data extracted using "
- "IOP::Codec::decode_value() does not match "
- "original data.\n"),
- -1);
-
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- int retval = 0;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"my_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -206,23 +97,6 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- // Set up a structure that contains information necessary to
- // create a GIOP 1.1 CDR encapsulation Codec.
- IOP::Encoding_1_2 encoding_1_2;
- encoding_1_2.format = IOP::ENCODING_CDR_ENCAPS;
- encoding_1_2.major_version = 1;
- encoding_1_2.minor_version = 2;
- encoding_1_2.char_codeset = 0x00010001U;
- encoding_1_2.wchar_codeset = 0x00010109U;
-
- // Obtain the CDR encapsulation Codec.
- IOP::Codec_var codec_1_2 =
- codec_factory->create_codec_with_codesets (encoding_1_2
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- retval = test_codec (codec_1_2.in ());
-
// ----------------------------------------------------------
// Set up a structure that contains information necessary to
@@ -238,8 +112,110 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- retval = test_codec (codec.in ());
- }
+ // ----------------------------------------------------------
+
+ // Test values to be placed in the test structure.
+ const CORBA::Long A = 1010;
+ const CORBA::Long B = -3427;
+ const CORBA::ULongLong C = ACE_UINT64_LITERAL (2001);
+ const CORBA::Char D[] = "I'm Batman.";
+ const CORBA::WChar* E = gen_wstring (25);
+
+ // Create the structure to be encoded.
+ Foo::Bar value;
+ value.A = A;
+ value.B = B;
+ value.C = C;
+ value.D = CORBA::string_dup (D);
+ value.E = CORBA::wstring_dup (E);
+
+ CORBA::Any data;
+ data <<= value;
+
+ // ----------------------------------------------------------
+
+ CORBA::OctetSeq_var encoded_data;
+ CORBA::Any_var decoded_data;
+ Foo::Bar *extracted_value;
+
+ // Encode the structure into an octet sequence using the CDR
+ // enscapsulation Codec.
+
+ ACE_DEBUG ((LM_DEBUG,
+ "Testing CDR encapsulation Codec encode()/decode()\n"
+ "=================================================\n"));
+
+ // Start out with the encode() method, i.e. the one that
+ // includes the TypeCode in the CDR encapsulation.
+ encoded_data = codec->encode (data
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if ((reinterpret_cast<ptrdiff_t> (encoded_data->get_buffer ())
+ % ACE_CDR::MAX_ALIGNMENT) == 0)
+ ACE_DEBUG ((LM_DEBUG,
+ "\nData for decoding are already aligned "
+ "on MAX_ALIGNMENT.\n\n"));
+ // Extract the data from the octet sequence.
+ decoded_data = codec->decode (encoded_data.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (!(decoded_data.in() >>= extracted_value))
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ERROR: Unable to extract decoded data "
+ "from Any\n"),
+ -1);
+
+ // Verify that the extracted data matches the data that was
+ // originally encoded into the octet sequence.
+ if (::verify_data (&value, extracted_value) != 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ERROR: Data extracted using "
+ "IOP::Codec::decode() does not match "
+ "original data.\n"),
+ -1);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "Testing CDR encapsulation Codec "
+ "encode_value()/decode_value()\n"
+ "================================"
+ "=============================\n"));
+
+ // Now use the encode_value() method, i.e. the one that does
+ // *not* include the TypeCode in the CDR encapsulation.
+ encoded_data = codec->encode_value (data
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if ((reinterpret_cast<ptrdiff_t> (encoded_data->get_buffer ())
+ % ACE_CDR::MAX_ALIGNMENT) == 0)
+ ACE_DEBUG ((LM_WARNING,
+ "\n"
+ "WARNING: Data to be decoded is already aligned "
+ "on MAX_ALIGNMENT.\n\n"));
+
+ // Extract the data from the octet sequence.
+ decoded_data = codec->decode_value (encoded_data.in (),
+ Foo::_tc_Bar
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (!(decoded_data.in() >>= extracted_value))
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ERROR: Unable to extract decoded data "
+ "from Any\n"),
+ -1);
+
+ // Verify that the extracted data matches the data that was
+ // originally encoded into the octet sequence.
+ if (::verify_data (&value, extracted_value) != 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "ERROR: Data extracted using "
+ "IOP::Codec::decode_value() does not match "
+ "original data.\n"),
+ -1);
+ }
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
@@ -250,5 +226,5 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Codec test passed.\n"));
- return retval;
+ return 0;
}
diff --git a/TAO/tests/Collocation/Collocation.cpp b/TAO/tests/Collocation/Collocation.cpp
index 19bd6433a70..97b96e9b207 100644
--- a/TAO/tests/Collocation/Collocation.cpp
+++ b/TAO/tests/Collocation/Collocation.cpp
@@ -2,16 +2,19 @@
#include "Collocation_Tester.h"
#include "tao/Strategies/advanced_resource.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Collocation, main, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
Collocation_Test coll_test;
- coll_test.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ coll_test.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
coll_test.run (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/tests/Collocation/Collocation.mpc b/TAO/tests/Collocation/Collocation.mpc
index 2bb76c43a80..5a0b503aac4 100644
--- a/TAO/tests/Collocation/Collocation.mpc
+++ b/TAO/tests/Collocation/Collocation.mpc
@@ -3,11 +3,7 @@
project(*Test Stub): taolib_with_idl {
sharedname = Collocation_Test_Stub
- idlflags += -Wb,skel_export_macro=Diamond_Export \
- -Wb,stub_export_macro=MY_Stub_Export \
- -Wb,skel_export_include=diamond_export.h \
- -Wb,stub_export_include=stub_export.h \
- -Gd -St -Sa
+ idlflags += -Wb,skel_export_macro=Diamond_Export -Wb,stub_export_macro=MY_Stub_Export -Wb,skel_export_include=diamond_export.h -Wb,stub_export_include=stub_export.h -Gd -St -Sa
dynamicflags = MY_STUB_BUILD_DLL
Source_Files {
@@ -19,11 +15,7 @@ project(*Diamond) : taolib_with_idl, portableserver {
after += Collocation_Test_Stub
sharedname = Collocation_Diamond
libs += Collocation_Test_Stub
- idlflags += -Wb,skel_export_macro=Diamond_Export \
- -Wb,stub_export_macro=MY_Stub_Export \
- -Wb,skel_export_include=diamond_export.h \
- -Wb,stub_export_include=stub_export.h \
- -Gd -St -Sa
+ idlflags += -Wb,skel_export_macro=Diamond_Export -Wb,stub_export_macro=MY_Stub_Export -Wb,skel_export_include=diamond_export.h -Wb,stub_export_include=stub_export.h -Gd -St -Sa
dynamicflags = DIAMOND_BUILD_DLL
Source_Files {
diff --git a/TAO/tests/CollocationLockup/AB.idl b/TAO/tests/CollocationLockup/AB.idl
deleted file mode 100644
index 92b2822b872..00000000000
--- a/TAO/tests/CollocationLockup/AB.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-interface A {
-};
-
-interface B {
- A makeA ();
-};
diff --git a/TAO/tests/CollocationLockup/CollocationLockup.cpp b/TAO/tests/CollocationLockup/CollocationLockup.cpp
deleted file mode 100644
index eb391916472..00000000000
--- a/TAO/tests/CollocationLockup/CollocationLockup.cpp
+++ /dev/null
@@ -1,144 +0,0 @@
-// $Id$
-
-/**
- * CollocationLockup.cpp
- * This is regression test against bug #2130.
- * It tests a deadlock between a thread making a collocated invocation
- * (which holds a lock on the ORB core and attempts to lock the POA) and a
- * thread activating a servant (which locks the POA and attempts to lock the
- * ORB core).
- *
- * This test was developed from a test submitted by Rick Marlborough for bug
- * #2297 and refined by Paul Calabrese.
- */
-
-#include "ABS.h"
-#include "SimpleNamingServiceC.h"
-
-#include "ace/Thread_Manager.h"
-#include "ace/SString.h"
-
-namespace
-{
- const size_t N_THREADS = 20;
- const size_t N_ITERATIONS = 100;
- const char* nameString = "myBobject";
-
- CORBA::ORB_var g_pOrb;
- PortableServer::POA_var g_pPoa;
- SimpleNamingService_var g_pNameService;
-}
-
-class A_i : public virtual POA_A
-{
-};
-
-class B_i : public virtual POA_B
-{
-public:
- virtual A_ptr
- makeA () ACE_THROW_SPEC ((CORBA::SystemException))
- {
- A_i* servant = new A_i;
- g_pPoa->activate_object (servant);
- CORBA::Object_var obj = g_pPoa->servant_to_reference (servant);
- return A::_narrow (obj.in ());
- }
-};
-
-// Thread for ORB->run()
-ACE_THR_FUNC_RETURN OrbRunThread (void*);
-
-// Thread to run the test
-ACE_THR_FUNC_RETURN TestThread (void*);
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- try
- {
- ACE_Thread_Manager threads;
-
- // Normal corba init
- g_pOrb = CORBA::ORB_init (argc, argv, "");
-
- CORBA::Object_var pPoaObj =
- g_pOrb->resolve_initial_references ("RootPOA");
- g_pPoa = PortableServer::POA::_narrow (pPoaObj.in ());
- PortableServer::POAManager_var pMgr = g_pPoa->the_POAManager ();
- pMgr->activate ();
-
- CORBA::Object_var pNSObj =
- g_pOrb->resolve_initial_references ("SimpleNamingService");
- g_pNameService = SimpleNamingService::_narrow (pNSObj.in ());
-
- if (CORBA::is_nil (g_pNameService.in ()))
- {
- ACE_DEBUG ((LM_ERROR,
- "ERROR: Could not locate the Simple Naming Service\n"));
- return 1;
- }
-
- ACE_Thread::spawn (OrbRunThread, 0, THR_NEW_LWP | THR_DETACHED);
-
- // Setup
- B_i* servant = new B_i;
- g_pPoa->activate_object (servant);
- CORBA::Object_var b = g_pPoa->servant_to_reference (servant);
-
- g_pNameService->bind (b.in ());
-
- //Start threads
- threads.spawn_n (N_THREADS, TestThread);
- ACE_DEBUG ((LM_INFO, "All threads spawned.\n"));
-
- } //destructor of ACE_Thread_Manager = implicit join
- catch (CORBA::Exception& ex)
- {
- ACE_DEBUG ((LM_ERROR, "Corba Exception: %s\n", ex._info ().c_str ()));
- return 1;
- }
-
- g_pOrb->shutdown (0);
-
- return 0;
-}
-
-ACE_THR_FUNC_RETURN
-OrbRunThread (void*)
-{
- try
- {
- g_pOrb->run ();
- }
- catch (CORBA::Exception& ex)
- {
- ACE_DEBUG ((LM_ERROR,
- "In OrbRunThread: Corba Exception: %s\n",
- ex._info ().c_str ()));
- }
- return 0;
-}
-
-ACE_THR_FUNC_RETURN
-TestThread (void*)
-{
- try
- {
- for (size_t i (0); i < N_ITERATIONS; ++i)
- {
- CORBA::Object_var obj = g_pNameService->resolve ();
- B_var b = B::_narrow (obj.in ());
- b->makeA ();
- if (i % 50 == 0)
- ACE_DEBUG ((LM_INFO, "collocated call returned\n"));
- }
- }
- catch (CORBA::Exception& ex)
- {
- ACE_DEBUG ((LM_ERROR,
- "In TestThread: Corba Exception: %s\n",
- ex._info ().c_str ()));
- }
- return 0;
-}
diff --git a/TAO/tests/CollocationLockup/CollocationLockup.mpc b/TAO/tests/CollocationLockup/CollocationLockup.mpc
deleted file mode 100644
index c02d02f27f7..00000000000
--- a/TAO/tests/CollocationLockup/CollocationLockup.mpc
+++ /dev/null
@@ -1,27 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project: taoexe, portableserver {
- idlflags += -Sc -St
- exename = CollocationLockup
-
- Source_Files {
- ABC.cpp
- ABS.cpp
- SimpleNamingServiceC.cpp
- CollocationLockup.cpp
- }
-}
-
-project(*SimpleNamingService): taoexe, portableserver {
- idlflags += -Sc -St
- exename = SimpleNamingService
-
- IDL_Files {
- SimpleNamingService.idl
- }
-
- Source_Files {
- SimpleNamingService.cpp
- }
-}
diff --git a/TAO/tests/CollocationLockup/SimpleNamingService.cpp b/TAO/tests/CollocationLockup/SimpleNamingService.cpp
deleted file mode 100644
index c21e466fec7..00000000000
--- a/TAO/tests/CollocationLockup/SimpleNamingService.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-// $Id$
-
-/**
- * SimpleNamingService.cpp
- * This is part of the regression test against bug #2130.
- * See CollocationLockup.cpp for a description of the test.
- */
-
-#include "SimpleNamingServiceS.h"
-
-#include "ace/String_Base.h"
-#include "ace/streams.h"
-
-namespace
-{
- const char* iorFileName = "SimpleNamingService.ior";
-}
-
-class SimpleNamingService_i : public virtual POA_SimpleNamingService
-{
-public:
-
- virtual void
- bind (CORBA::Object_ptr obj) ACE_THROW_SPEC ((CORBA::SystemException))
- {
- obj_ = CORBA::Object::_duplicate (obj);
- }
-
-
- virtual CORBA::Object_ptr
- resolve () ACE_THROW_SPEC ((CORBA::SystemException))
- {
- return CORBA::Object::_duplicate (obj_.in ());
- }
-
-private:
-
- CORBA::Object_var obj_;
-
-};
-
-int
-ACE_TMAIN (int argc, ACE_TCHAR *argv[])
-{
- try
- {
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "");
-
- CORBA::Object_var pPoaObj =
- orb->resolve_initial_references ("RootPOA");
- PortableServer::POA_var poa =
- PortableServer::POA::_narrow (pPoaObj.in ());
- PortableServer::POAManager_var pMgr = poa->the_POAManager ();
- pMgr->activate ();
-
- SimpleNamingService_i* servant = new SimpleNamingService_i;
- PortableServer::ObjectId_var oid = poa->activate_object (servant);
- CORBA::Object_var obj = poa->id_to_reference (oid.in ());
- CORBA::String_var str = orb->object_to_string (obj.in ());
-
- ofstream iorFile (iorFileName);
- iorFile << str.in () << endl;
- iorFile.close ();
-
- orb->run ();
- }
- catch (CORBA::Exception& ex)
- {
- ACE_DEBUG ((LM_ERROR, "Corba Exception: %s\n", ex._info ().c_str ()));
- return 1;
- }
-
- return 0;
-}
diff --git a/TAO/tests/CollocationLockup/SimpleNamingService.idl b/TAO/tests/CollocationLockup/SimpleNamingService.idl
deleted file mode 100644
index e76b077308f..00000000000
--- a/TAO/tests/CollocationLockup/SimpleNamingService.idl
+++ /dev/null
@@ -1,9 +0,0 @@
-// $Id$
-
-/// This is a degenerate Naming Service that only binds one object
-interface SimpleNamingService {
-
- void bind (in Object o);
- Object resolve ();
-
-};
diff --git a/TAO/tests/CollocationLockup/run_test.pl b/TAO/tests/CollocationLockup/run_test.pl
deleted file mode 100755
index 49c9c408a61..00000000000
--- a/TAO/tests/CollocationLockup/run_test.pl
+++ /dev/null
@@ -1,61 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-use strict;
-
-# Amount of delay (in seconds) between starting a server and a client
-# to allow proper server initialization.
-my $sleeptime = 10;
-
-# Variables for command-line arguments to client and server
-# executables.
-my $iorbase = "SimpleNamingService.ior";
-my $iorfile = PerlACE::LocalFile ($iorbase);
-
-my $status = 0;
-
-my $NS = new PerlACE::Process ("SimpleNamingService");
-
-unlink $iorfile;
-
-$NS->Spawn ();
-
-if (PerlACE::waitforfile_timed ($iorfile, $sleeptime) == -1) {
- print STDERR "ERROR: cannot find IOR file <$iorfile>\n";
- $NS->Kill ();
- exit 1;
-}
-
-my $CL;
-if (PerlACE::is_vxworks_test()) {
- $CL = new PerlACE::ProcessVX ("CollocationLockup",
- "-ORBInitRef " .
- "SimpleNamingService=file://$iorbase");
-}
-else {
- $CL = new PerlACE::Process ("CollocationLockup",
- "-ORBInitRef " .
- "SimpleNamingService=file://$iorfile");
-}
-
-# In testing on various platforms, the builds with the bug failed before
-# 20 seconds and when the bug was fixed it returned before 20 seconds.
-my $client = $CL->SpawnWaitKill (20);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$NS->Kill ();
-
-unlink $iorfile;
-
-exit $status;
diff --git a/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp b/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
index f4e4a6b9615..82ef56a5b5c 100644
--- a/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
+++ b/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp
@@ -16,7 +16,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -43,19 +43,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -76,10 +76,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Collocation_Exception_Test/Server_Task.cpp b/TAO/tests/Collocation_Exception_Test/Server_Task.cpp
index 746c3ff7758..9e6a33cc62c 100644
--- a/TAO/tests/Collocation_Exception_Test/Server_Task.cpp
+++ b/TAO/tests/Collocation_Exception_Test/Server_Task.cpp
@@ -66,7 +66,7 @@ Server_Task::svc (void)
// Output the IOR to the <this->output_>
FILE *output_file= ACE_OS::fopen (this->output_,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Collocation_Exception_Test/Server_Task.h b/TAO/tests/Collocation_Exception_Test/Server_Task.h
index 60006aae0ba..4f2307adc30 100644
--- a/TAO/tests/Collocation_Exception_Test/Server_Task.h
+++ b/TAO/tests/Collocation_Exception_Test/Server_Task.h
@@ -15,9 +15,7 @@
#include "tao/ORB.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp b/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
index f36e0cd48f9..deddc432a54 100644
--- a/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
+++ b/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp
@@ -18,7 +18,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o:n:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o:n:m:");
int c;
while ((c = get_opts ()) != -1)
@@ -68,19 +68,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -101,10 +101,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Collocation_Oneway_Tests/Server_Task.cpp b/TAO/tests/Collocation_Oneway_Tests/Server_Task.cpp
index 746c3ff7758..9e6a33cc62c 100644
--- a/TAO/tests/Collocation_Oneway_Tests/Server_Task.cpp
+++ b/TAO/tests/Collocation_Oneway_Tests/Server_Task.cpp
@@ -66,7 +66,7 @@ Server_Task::svc (void)
// Output the IOR to the <this->output_>
FILE *output_file= ACE_OS::fopen (this->output_,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Collocation_Oneway_Tests/Server_Task.h b/TAO/tests/Collocation_Oneway_Tests/Server_Task.h
index 60006aae0ba..4f2307adc30 100644
--- a/TAO/tests/Collocation_Oneway_Tests/Server_Task.h
+++ b/TAO/tests/Collocation_Oneway_Tests/Server_Task.h
@@ -15,9 +15,7 @@
#include "tao/ORB.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/Collocation_Opportunities/Collocation_Opportunities.cpp b/TAO/tests/Collocation_Opportunities/Collocation_Opportunities.cpp
index 28aa663f7aa..4e1784befd7 100644
--- a/TAO/tests/Collocation_Opportunities/Collocation_Opportunities.cpp
+++ b/TAO/tests/Collocation_Opportunities/Collocation_Opportunities.cpp
@@ -2,6 +2,7 @@
#include "testS.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/Object_Adapter.h"
#include "tao/PortableServer/POA_Current.h"
#include "tao/PortableServer/POA_Current_Impl.h"
@@ -136,13 +137,15 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Collocation_Tests/Collocated_Test.cpp b/TAO/tests/Collocation_Tests/Collocated_Test.cpp
index f807f7bf5b3..4bb7e2021a9 100644
--- a/TAO/tests/Collocation_Tests/Collocated_Test.cpp
+++ b/TAO/tests/Collocation_Tests/Collocated_Test.cpp
@@ -14,7 +14,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o:n");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o:n");
int c;
while ((c = get_opts ()) != -1)
@@ -41,19 +41,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -74,10 +74,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Collocation_Tests/Server_Task.cpp b/TAO/tests/Collocation_Tests/Server_Task.cpp
index 85d842d34a0..db0c583eea3 100644
--- a/TAO/tests/Collocation_Tests/Server_Task.cpp
+++ b/TAO/tests/Collocation_Tests/Server_Task.cpp
@@ -66,7 +66,7 @@ Server_Task::svc (void)
// Output the IOR to the <this->output_>
FILE *output_file= ACE_OS::fopen (this->output_,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Collocation_Tests/Server_Task.h b/TAO/tests/Collocation_Tests/Server_Task.h
index 60006aae0ba..4f2307adc30 100644
--- a/TAO/tests/Collocation_Tests/Server_Task.h
+++ b/TAO/tests/Collocation_Tests/Server_Task.h
@@ -15,9 +15,7 @@
#include "tao/ORB.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/Connect_Strategy_Test/Connect_Strategy_Test.mpc b/TAO/tests/Connect_Strategy_Test/Connect_Strategy_Test.mpc
index e64ad8d08a8..8e25b42d362 100644
--- a/TAO/tests/Connect_Strategy_Test/Connect_Strategy_Test.mpc
+++ b/TAO/tests/Connect_Strategy_Test/Connect_Strategy_Test.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Connect_Strategy_Test/client.cpp b/TAO/tests/Connect_Strategy_Test/client.cpp
index 07d0572d547..0db98cfb3cd 100644
--- a/TAO/tests/Connect_Strategy_Test/client.cpp
+++ b/TAO/tests/Connect_Strategy_Test/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Connect_Strategy_Test,
client,
@@ -12,7 +13,7 @@ int do_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:x:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,15 +40,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Connect_Strategy_Test/server.cpp b/TAO/tests/Connect_Strategy_Test/server.cpp
index acd62195b16..770744b45c8 100644
--- a/TAO/tests/Connect_Strategy_Test/server.cpp
+++ b/TAO/tests/Connect_Strategy_Test/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Connect_Strategy_Test,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Connection_Failure/client.cpp b/TAO/tests/Connection_Failure/client.cpp
index c9759652961..f650c3c2540 100644
--- a/TAO/tests/Connection_Failure/client.cpp
+++ b/TAO/tests/Connection_Failure/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "tao/SystemException.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Log_Msg.h"
@@ -13,12 +14,14 @@ const char *ior =
"corbaloc:iiop:192.3.47/10007/RandomObject";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Connection_Purging/Connection_Purging.mpc b/TAO/tests/Connection_Purging/Connection_Purging.mpc
index 321e97dff47..ad230187aa7 100644
--- a/TAO/tests/Connection_Purging/Connection_Purging.mpc
+++ b/TAO/tests/Connection_Purging/Connection_Purging.mpc
@@ -9,7 +9,6 @@ project(*Server): strategies, taoserver {
}
project(*Client): strategies, taoclient {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Connection_Purging/client.cpp b/TAO/tests/Connection_Purging/client.cpp
index 3ef97cea443..8dcbc9f0559 100644
--- a/TAO/tests/Connection_Purging/client.cpp
+++ b/TAO/tests/Connection_Purging/client.cpp
@@ -4,13 +4,14 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
#include "tao/Strategies/advanced_resource.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,15 +35,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
int done = 0;
diff --git a/TAO/tests/Connection_Purging/server.cpp b/TAO/tests/Connection_Purging/server.cpp
index 0a9c8394ebf..a4c7201b235 100644
--- a/TAO/tests/Connection_Purging/server.cpp
+++ b/TAO/tests/Connection_Purging/server.cpp
@@ -3,13 +3,14 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "tao/Strategies/advanced_resource.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_output_file = "server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,12 +34,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -58,7 +61,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
test_i *test_impl;
@@ -76,7 +79,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Connection_Timeout/Connection_Timeout.mpc b/TAO/tests/Connection_Timeout/Connection_Timeout.mpc
index 7ae4e1c4bf3..c1e095ba54b 100644
--- a/TAO/tests/Connection_Timeout/Connection_Timeout.mpc
+++ b/TAO/tests/Connection_Timeout/Connection_Timeout.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*client): taoclient, messaging, portableserver {
- avoids += ace_for_tao
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Connection_Timeout/client.cpp b/TAO/tests/Connection_Timeout/client.cpp
index d1bab792c95..07d91311a93 100644
--- a/TAO/tests/Connection_Timeout/client.cpp
+++ b/TAO/tests/Connection_Timeout/client.cpp
@@ -3,6 +3,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
#include "ace/Profile_Timer.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Messaging/Messaging.h"
#include "tao/AnyTypeCode/Any.h"
@@ -17,7 +18,7 @@ TimeBase::TimeT timeout_period = 1000000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -107,17 +108,19 @@ test_timeout (CORBA::Object_ptr object ACE_ENV_ARG_DECL)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int retval = 1;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Crash_On_Write/Crash_On_Write.mpc b/TAO/tests/Crash_On_Write/Crash_On_Write.mpc
index 2398d1eac4c..5dc777cfcad 100644
--- a/TAO/tests/Crash_On_Write/Crash_On_Write.mpc
+++ b/TAO/tests/Crash_On_Write/Crash_On_Write.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Crash_On_Write/client.cpp b/TAO/tests/Crash_On_Write/client.cpp
index 92fc7daaf0b..e12430079d2 100644
--- a/TAO/tests/Crash_On_Write/client.cpp
+++ b/TAO/tests/Crash_On_Write/client.cpp
@@ -3,6 +3,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Crash_On_Write, client, "$Id$")
@@ -12,7 +13,7 @@ int iterations = 2000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -60,15 +61,17 @@ single_iteration (Test::Oneway_Receiver_ptr oneway_receiver
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Crash_On_Write/server.cpp b/TAO/tests/Crash_On_Write/server.cpp
index 8c25517be99..43faafae42b 100644
--- a/TAO/tests/Crash_On_Write/server.cpp
+++ b/TAO/tests/Crash_On_Write/server.cpp
@@ -3,6 +3,7 @@
#include "Oneway_Receiver.h"
#include "Crash_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Crash_On_Write, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Oneway_Receiver *oneway_receiver_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -91,7 +94,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Create a separate thread to crash the server.
- Crash_Task crash_task (ACE_Thread_Manager::instance (), ACE_Time_Value(20));
+ Crash_Task crash_task (ACE_Thread_Manager::instance (), 20);
if (crash_task.activate () == -1)
{
diff --git a/TAO/tests/Crashed_Callback/Crashed_Callback.mpc b/TAO/tests/Crashed_Callback/Crashed_Callback.mpc
index 34711dbef67..b7c2b164029 100644
--- a/TAO/tests/Crashed_Callback/Crashed_Callback.mpc
+++ b/TAO/tests/Crashed_Callback/Crashed_Callback.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): taoclient, portableserver, messaging {
- after += *Server
Source_Files {
Crashed_Callback.cpp
client.cpp
diff --git a/TAO/tests/Crashed_Callback/client.cpp b/TAO/tests/Crashed_Callback/client.cpp
index 4f020c7d89c..f7db7164d1d 100644
--- a/TAO/tests/Crashed_Callback/client.cpp
+++ b/TAO/tests/Crashed_Callback/client.cpp
@@ -5,6 +5,7 @@
#include "tao/Messaging/Messaging.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Crashed_Callback, client, "$Id$")
@@ -13,7 +14,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,12 +37,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -94,7 +97,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
}
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Crashed_Callback/server.cpp b/TAO/tests/Crashed_Callback/server.cpp
index 11b8a975a14..1f81584fba8 100644
--- a/TAO/tests/Crashed_Callback/server.cpp
+++ b/TAO/tests/Crashed_Callback/server.cpp
@@ -6,6 +6,7 @@
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Crashed_Callback, server, "$Id$")
@@ -14,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -95,7 +98,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
}
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Service *service_impl;
@@ -113,7 +116,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/DLL_ORB/DLL_ORB.mpc b/TAO/tests/DLL_ORB/DLL_ORB.mpc
index 34ed08c9359..f7eb4ab9597 100644
--- a/TAO/tests/DLL_ORB/DLL_ORB.mpc
+++ b/TAO/tests/DLL_ORB/DLL_ORB.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Test_Client_Module): taolib_with_idl, anytypecode {
+project(*Test Client Module): taolib_with_idl, anytypecode {
sharedname = Test_Client_Module
dynamicflags = TEST_CLIENT_MODULE_BUILD_DLL
@@ -11,10 +11,9 @@ project(*Test_Client_Module): taolib_with_idl, anytypecode {
}
}
-project(*Test_Server_Module) : taolib_with_idl, portableserver {
+project(*Test Server Module) : taolib_with_idl, portableserver {
sharedname = Test_Server_Module
dynamicflags = TEST_SERVER_MODULE_BUILD_DLL
- after += *Test_CLient_Module
Source_Files {
Test_Server_Module.cpp
diff --git a/TAO/tests/DLL_ORB/Test_Client_Module.cpp b/TAO/tests/DLL_ORB/Test_Client_Module.cpp
index 1aa4db4d534..9deb390c8ee 100644
--- a/TAO/tests/DLL_ORB/Test_Client_Module.cpp
+++ b/TAO/tests/DLL_ORB/Test_Client_Module.cpp
@@ -5,6 +5,7 @@
#include "tao/StringSeqC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (DLL_ORB,
Test_Client_Module,
@@ -16,7 +17,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +40,7 @@ parse_args (int argc, char *argv[])
int
-Test_Client_Module::init (int argc, ACE_TCHAR *argv[])
+Test_Client_Module::init (int argc, char *argv[])
{
// -----------------------------------------------------------------
// Pre-ORB initialization steps necessary for proper DLL ORB
diff --git a/TAO/tests/DLL_ORB/Test_Client_Module.h b/TAO/tests/DLL_ORB/Test_Client_Module.h
index bd649692068..38f1638da5b 100644
--- a/TAO/tests/DLL_ORB/Test_Client_Module.h
+++ b/TAO/tests/DLL_ORB/Test_Client_Module.h
@@ -40,7 +40,7 @@ class Test_Client_Module_Export Test_Client_Module : public ACE_Task_Base
public:
/// Initializes object when dynamic linking occurs.
- virtual int init (int argc, ACE_TCHAR *argv[]);
+ virtual int init (int argc, char *argv[]);
/// Terminates object when dynamic unlinking occurs.
virtual int fini (void);
diff --git a/TAO/tests/DLL_ORB/Test_Server_Module.cpp b/TAO/tests/DLL_ORB/Test_Server_Module.cpp
index b48c4c8704b..09604d041e7 100644
--- a/TAO/tests/DLL_ORB/Test_Server_Module.cpp
+++ b/TAO/tests/DLL_ORB/Test_Server_Module.cpp
@@ -11,6 +11,7 @@ ACE_RCSID (DLL_ORB,
"$Id$")
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_file = "test.ior";
@@ -18,7 +19,7 @@ const char *ior_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,7 +40,7 @@ parse_args (int argc, char *argv[])
}
int
-Test_Server_Module::init (int argc, ACE_TCHAR *argv[])
+Test_Server_Module::init (int argc, char *argv[])
{
// -----------------------------------------------------------------
// Pre-ORB initialization steps necessary for proper DLL ORB
@@ -131,7 +132,7 @@ Test_Server_Module::init (int argc, ACE_TCHAR *argv[])
ior.in ()));
// Write IOR to a file.
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file <%s> for writing "
diff --git a/TAO/tests/DLL_ORB/Test_Server_Module.h b/TAO/tests/DLL_ORB/Test_Server_Module.h
index f525f46716b..d1faee6c35d 100644
--- a/TAO/tests/DLL_ORB/Test_Server_Module.h
+++ b/TAO/tests/DLL_ORB/Test_Server_Module.h
@@ -40,7 +40,7 @@ class Test_Server_Module_Export Test_Server_Module : public ACE_Task_Base
public:
/// Initializes object when dynamic linking occurs.
- virtual int init (int argc, ACE_TCHAR *argv[]);
+ virtual int init (int argc, char *argv[]);
/// Terminates object when dynamic unlinking occurs.
virtual int fini (void);
diff --git a/TAO/tests/DLL_ORB/client.cpp b/TAO/tests/DLL_ORB/client.cpp
index 3ba5a6ded57..029f6520d55 100644
--- a/TAO/tests/DLL_ORB/client.cpp
+++ b/TAO/tests/DLL_ORB/client.cpp
@@ -15,7 +15,7 @@
#include "ace/Thread_Manager.h"
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
// Process a Service Configurator directive that will cause the test
// client module to be dynamically loaded.
diff --git a/TAO/tests/DLL_ORB/server.cpp b/TAO/tests/DLL_ORB/server.cpp
index c54ec7f983a..bcdd71b484d 100644
--- a/TAO/tests/DLL_ORB/server.cpp
+++ b/TAO/tests/DLL_ORB/server.cpp
@@ -15,7 +15,7 @@
#include "ace/Thread_Manager.h"
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
// Process a Service Configurator directive that will cause the test
// server module to be dynamically loaded.
diff --git a/TAO/tests/DSI_Gateway/DSI_Gateway.mpc b/TAO/tests/DSI_Gateway/DSI_Gateway.mpc
index c5deacad25b..6a8245f178e 100644
--- a/TAO/tests/DSI_Gateway/DSI_Gateway.mpc
+++ b/TAO/tests/DSI_Gateway/DSI_Gateway.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, messaging, minimum_corba, dynamicinterface {
}
project(*Client): taoclient, messaging, minimum_corba, dynamicinterface {
- after += *Server
Source_Files {
testC.cpp
client.cpp
@@ -17,7 +16,6 @@ project(*Client): taoclient, messaging, minimum_corba, dynamicinterface {
}
project(*Gateway): taoexe, portableserver, messaging, minimum_corba, dynamicinterface {
- after += *Client
Source_Files {
test_dsi.cpp
gateway.cpp
diff --git a/TAO/tests/DSI_Gateway/client.cpp b/TAO/tests/DSI_Gateway/client.cpp
index 4919809f944..bd74da8d4df 100644
--- a/TAO/tests/DSI_Gateway/client.cpp
+++ b/TAO/tests/DSI_Gateway/client.cpp
@@ -4,6 +4,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(DSI_Gateway, client, "$Id$")
@@ -16,7 +17,7 @@ int test_system_exception = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xusk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xusk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -61,15 +62,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
diff --git a/TAO/tests/DSI_Gateway/gateway.cpp b/TAO/tests/DSI_Gateway/gateway.cpp
index 4aade2c1f03..6cc2ae79484 100644
--- a/TAO/tests/DSI_Gateway/gateway.cpp
+++ b/TAO/tests/DSI_Gateway/gateway.cpp
@@ -3,6 +3,7 @@
#include "test_dsi.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(DSI_Gateway, server, "$Id$")
@@ -14,7 +15,7 @@ const char *ior_output_file = "gateway.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -54,12 +55,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -84,7 +87,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
@@ -115,7 +118,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/DSI_Gateway/server.cpp b/TAO/tests/DSI_Gateway/server.cpp
index dfe1919fe78..a0ecf51d0af 100644
--- a/TAO/tests/DSI_Gateway/server.cpp
+++ b/TAO/tests/DSI_Gateway/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(DSI_Gateway, server, "$Id$")
@@ -13,7 +14,7 @@ int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -68,7 +71,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
@@ -88,7 +91,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/DynAny_Test/data.h b/TAO/tests/DynAny_Test/data.h
index 4cd12f257e3..af90ae98ed8 100644
--- a/TAO/tests/DynAny_Test/data.h
+++ b/TAO/tests/DynAny_Test/data.h
@@ -12,7 +12,7 @@
//=============================================================================
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
#include "tao/ORB.h"
#include "tao/Object.h"
diff --git a/TAO/tests/DynAny_Test/driver.cpp b/TAO/tests/DynAny_Test/driver.cpp
index 5eae425f78a..cbea23a5fef 100644
--- a/TAO/tests/DynAny_Test/driver.cpp
+++ b/TAO/tests/DynAny_Test/driver.cpp
@@ -24,13 +24,16 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Driver driver;
// initialize the driver
- if (driver.init (argc, argv) == -1)
+ if (driver.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) driver.cpp - "
"Driver initialization failed\n"),
@@ -106,7 +109,7 @@ Driver::parse_args (int argc, char* argv[])
argv [0]),
-1);
- ACE_Get_Opt get_opts (argc, argv, "t:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:d");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/DynAny_Test/test_dynsequence.cpp b/TAO/tests/DynAny_Test/test_dynsequence.cpp
index 57f58e40bc4..48390372deb 100644
--- a/TAO/tests/DynAny_Test/test_dynsequence.cpp
+++ b/TAO/tests/DynAny_Test/test_dynsequence.cpp
@@ -248,7 +248,7 @@ Test_DynSequence::run_test (void)
DynAnyTests::test_seq *ts_out;
out_any1.in () >>= ts_out;
- if (!ACE_OS::strcmp ((*ts_out)[0U], data.m_string1))
+ if (!ACE_OS::strcmp ((*ts_out)[0U].in(), data.m_string1))
{
ACE_DEBUG ((LM_DEBUG,
"++ OK ++\n"));
diff --git a/TAO/tests/DynAny_Test/test_dynstruct.cpp b/TAO/tests/DynAny_Test/test_dynstruct.cpp
index c5d5d9780e8..2960758f42e 100644
--- a/TAO/tests/DynAny_Test/test_dynstruct.cpp
+++ b/TAO/tests/DynAny_Test/test_dynstruct.cpp
@@ -375,7 +375,7 @@ Test_DynStruct::run_test (void)
CORBA::ULong index = 2;
- if (ACE_OS::strcmp (gm[index].id, "es"))
+ if (ACE_OS::strcmp (gm[index].id.in(), "es"))
{
++this->error_count_;
}
diff --git a/TAO/tests/Explicit_Event_Loop/Explicit_Event_Loop.mpc b/TAO/tests/Explicit_Event_Loop/Explicit_Event_Loop.mpc
index 6da42a65f4b..62136abbcaf 100644
--- a/TAO/tests/Explicit_Event_Loop/Explicit_Event_Loop.mpc
+++ b/TAO/tests/Explicit_Event_Loop/Explicit_Event_Loop.mpc
@@ -8,7 +8,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
timeC.cpp
client.cpp
diff --git a/TAO/tests/Explicit_Event_Loop/client.cpp b/TAO/tests/Explicit_Event_Loop/client.cpp
index 174fa2dc97c..bb3c9fa085e 100644
--- a/TAO/tests/Explicit_Event_Loop/client.cpp
+++ b/TAO/tests/Explicit_Event_Loop/client.cpp
@@ -22,6 +22,7 @@
#include "timeC.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
// The following header is #included automatically by ACE+TAO.
// Therefore, they don't need to be included explicitly.
@@ -29,14 +30,16 @@
//#include <iomanip.h>
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -50,7 +53,7 @@ main (int argc, char *argv[])
}
// Destringify argv[1].
- CORBA::Object_var obj = orb->string_to_object (argv[1]
+ CORBA::Object_var obj = orb->string_to_object (ACE_TEXT_TO_CHAR_IN(argv[1])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Explicit_Event_Loop/server.cpp b/TAO/tests/Explicit_Event_Loop/server.cpp
index 498c465ec22..c7c60d65c57 100644
--- a/TAO/tests/Explicit_Event_Loop/server.cpp
+++ b/TAO/tests/Explicit_Event_Loop/server.cpp
@@ -24,6 +24,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_output_file = "server.ior";
int done = 0;
@@ -31,7 +32,7 @@ int done = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -83,19 +84,21 @@ void do_something_else()
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize orb
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
@@ -136,7 +139,7 @@ main (int argc, char *argv[])
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/Exposed_Policies/Exposed_Policies.mpc b/TAO/tests/Exposed_Policies/Exposed_Policies.mpc
index 6e9c5283fe0..6eca87854c2 100644
--- a/TAO/tests/Exposed_Policies/Exposed_Policies.mpc
+++ b/TAO/tests/Exposed_Policies/Exposed_Policies.mpc
@@ -12,7 +12,6 @@ project(*Server): strategies, rt_server {
project(*Client): strategies, rt_server {
exename = client
- after += *Server
Source_Files {
CounterC.cpp
diff --git a/TAO/tests/Exposed_Policies/Policy_Tester.cpp b/TAO/tests/Exposed_Policies/Policy_Tester.cpp
index 217eacdae41..8918ae6cc86 100644
--- a/TAO/tests/Exposed_Policies/Policy_Tester.cpp
+++ b/TAO/tests/Exposed_Policies/Policy_Tester.cpp
@@ -69,7 +69,7 @@ Policy_Tester::init (int argc,
// Here we parse the command line paramether passed
// to the application.
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
@@ -138,7 +138,7 @@ Policy_Tester::check_reference (CORBA::Object_ptr object,
{
if (CORBA::is_nil (object))
{
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (msg)));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT_TO_TCHAR_IN (msg)));
return 0;
}
return 1;
@@ -233,7 +233,7 @@ Policy_Tester::create_objects (ACE_ENV_SINGLE_ARG_DECL)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Activated as <%s>\n"), ior.in ()));
- FILE *output_file = ACE_OS::fopen (this->rt_poa_properties_->ior_source (), "w");
+ FILE *output_file = ACE_OS::fopen (this->rt_poa_properties_->ior_source (), ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("Cannot open output file for writing IOR: %s"),
@@ -278,7 +278,7 @@ Policy_Tester::create_objects (ACE_ENV_SINGLE_ARG_DECL)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Activated as <%s>\n"), o_ior.in ()));
- output_file = ACE_OS::fopen (this->rt_object_properties_->ior_source (), "w");
+ output_file = ACE_OS::fopen (this->rt_object_properties_->ior_source (), ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Exposed_Policies/Policy_Verifier.cpp b/TAO/tests/Exposed_Policies/Policy_Verifier.cpp
index 4541f43613c..280217d99a9 100644
--- a/TAO/tests/Exposed_Policies/Policy_Verifier.cpp
+++ b/TAO/tests/Exposed_Policies/Policy_Verifier.cpp
@@ -26,7 +26,7 @@ Policy_Verifier::init (int argc,
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (false);
- ACE_Arg_Shifter arg_shifter (argc, argv);
+ ACE_TArg_Shifter<char> arg_shifter (argc, argv);
while (arg_shifter.is_anything_left ())
{
@@ -260,7 +260,7 @@ Policy_Verifier::check_reference (CORBA::Object_ptr object,
{
if (CORBA::is_nil (object))
{
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (msg)));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT_TO_TCHAR_IN (msg)));
return 0;
}
return 1;
diff --git a/TAO/tests/Exposed_Policies/RT_Properties.cpp b/TAO/tests/Exposed_Policies/RT_Properties.cpp
index 4a23c92f0f5..fd4523b3b31 100644
--- a/TAO/tests/Exposed_Policies/RT_Properties.cpp
+++ b/TAO/tests/Exposed_Policies/RT_Properties.cpp
@@ -24,7 +24,7 @@ RT_Properties *
RT_Properties::read_from (const char *file_name
ACE_ENV_ARG_DECL)
{
- FILE *fp = ACE_OS::fopen (file_name, "r");
+ FILE *fp = ACE_OS::fopen (file_name, ACE_TEXT("r"));
RT_Properties *rt_properties;
diff --git a/TAO/tests/Exposed_Policies/client.cpp b/TAO/tests/Exposed_Policies/client.cpp
index 80bc23f24f3..b8df1e7a00b 100644
--- a/TAO/tests/Exposed_Policies/client.cpp
+++ b/TAO/tests/Exposed_Policies/client.cpp
@@ -8,12 +8,15 @@
#include "Policy_Verifier.h"
#include "tao/Strategies/advanced_resource.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(tao, client, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_DECLARE_NEW_CORBA_ENV;
@@ -21,7 +24,7 @@ main (int argc, char *argv[])
{
Policy_Verifier policy_verifier;
- bool retval = policy_verifier.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ bool retval = policy_verifier.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval)
diff --git a/TAO/tests/Exposed_Policies/server.cpp b/TAO/tests/Exposed_Policies/server.cpp
index ecc7d20d022..c8582a8fb27 100644
--- a/TAO/tests/Exposed_Policies/server.cpp
+++ b/TAO/tests/Exposed_Policies/server.cpp
@@ -14,20 +14,23 @@
#include "Policy_Tester.h"
#include "tao/Strategies/advanced_resource.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(tao, server, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
Policy_Tester policy_tester;
- int result = policy_tester.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int result = policy_tester.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (result != 0)
diff --git a/TAO/tests/FL_Cube/FL_Cube.mpc b/TAO/tests/FL_Cube/FL_Cube.mpc
index 9f8856707ff..89af20e2099 100644
--- a/TAO/tests/FL_Cube/FL_Cube.mpc
+++ b/TAO/tests/FL_Cube/FL_Cube.mpc
@@ -8,7 +8,6 @@ project(*client) : taoclient, portableserver, tao_flresource {
}
project(*server) : taoserver, tao_flresource {
- after += *client
source_files {
server.cpp
test_i.cpp
diff --git a/TAO/tests/FL_Cube/client.cpp b/TAO/tests/FL_Cube/client.cpp
index 3d6b5a7abdf..ea6d1e66b09 100644
--- a/TAO/tests/FL_Cube/client.cpp
+++ b/TAO/tests/FL_Cube/client.cpp
@@ -2,6 +2,7 @@
#include "tao/FlResource_Loader.h"
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(FL_Cube, client, "$Id$")
@@ -27,7 +28,7 @@ public:
void show (void);
// Call show on all the window objects
- void parse_args (int argc, char *argv[]
+ void parse_args (int argc, ACE_TCHAR *argv[]
ACE_ENV_ARG_DECL);
private:
@@ -51,14 +52,16 @@ private:
// The server.
};
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
TAO::FlResource_Loader fl_loader;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Fl_Window window (300, 100);
@@ -71,7 +74,7 @@ int main (int argc, char* argv[])
client.show ();
- client.parse_args (argc, argv ACE_ENV_ARG_PARAMETER);
+ client.parse_args (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Fl::run ();
@@ -166,12 +169,12 @@ Client::y_changed (void)
}
void
-Client::parse_args (int argc, char *argv[]
+Client::parse_args (int argc, ACE_TCHAR *argv[]
ACE_ENV_ARG_DECL)
{
const char *ior = "file://test.ior";
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/FL_Cube/server.cpp b/TAO/tests/FL_Cube/server.cpp
index f3c3a235446..eaaddbdcac2 100644
--- a/TAO/tests/FL_Cube/server.cpp
+++ b/TAO/tests/FL_Cube/server.cpp
@@ -2,6 +2,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/FlResource_Loader.h"
ACE_RCSID(FL_Cube, server, "$Id$")
@@ -13,7 +14,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,8 +38,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Fl_Window window(300, 300);
TAO::FlResource_Loader fl_loader;
@@ -51,10 +54,10 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
char* targv[] = { argv[0] };
@@ -94,7 +97,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Faults/Faults.mpc b/TAO/tests/Faults/Faults.mpc
index 0bc0ae29bce..e52be673239 100644
--- a/TAO/tests/Faults/Faults.mpc
+++ b/TAO/tests/Faults/Faults.mpc
@@ -15,7 +15,6 @@ project(*Server): taoserver, minimum_corba {
}
project(*Middle): taoexe, portableserver, minimum_corba {
- after += *Server
IDL_Files {
test.idl
}
@@ -29,7 +28,6 @@ project(*Middle): taoexe, portableserver, minimum_corba {
}
project(*Client): taoexe, portableserver, minimum_corba {
- after += *Middle
IDL_Files {
test.idl
}
@@ -56,7 +54,6 @@ project(*Ping): taoexe, portableserver, minimum_corba {
}
project(*Pong): taoexe, portableserver, minimum_corba {
- after += *Ping
IDL_Files {
ping.idl
}
diff --git a/TAO/tests/Faults/client.cpp b/TAO/tests/Faults/client.cpp
index d7f4cf4e6e0..efc1e3c6fad 100644
--- a/TAO/tests/Faults/client.cpp
+++ b/TAO/tests/Faults/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
ACE_RCSID(Failure, client, "$Id$")
@@ -16,7 +17,7 @@ int do_crash = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "acszxk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "acszxk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -66,12 +67,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -94,7 +97,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Faults/middle.cpp b/TAO/tests/Faults/middle.cpp
index 8791dfa0c45..6244e071191 100644
--- a/TAO/tests/Faults/middle.cpp
+++ b/TAO/tests/Faults/middle.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Failure, middle, "$Id$")
@@ -13,7 +14,7 @@ int niterations = 10;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -47,12 +48,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -75,7 +78,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
@@ -115,7 +118,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Faults/ping.cpp b/TAO/tests/Faults/ping.cpp
index d113c4a8a84..b9a2e3038c0 100644
--- a/TAO/tests/Faults/ping.cpp
+++ b/TAO/tests/Faults/ping.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "ping_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Faults, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "ping.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -86,7 +89,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
PingObject_i *server_impl = 0;
@@ -110,7 +113,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Faults/pong.cpp b/TAO/tests/Faults/pong.cpp
index fbc0b86a42f..4bfc38f4c3a 100644
--- a/TAO/tests/Faults/pong.cpp
+++ b/TAO/tests/Faults/pong.cpp
@@ -4,6 +4,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Faults, server, "$Id$")
@@ -15,7 +16,7 @@ const char* ior = "file://ping.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:p:k:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:p:k:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -111,12 +112,14 @@ run_client (CORBA::ORB_ptr orb,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -161,7 +164,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Faults/server.cpp b/TAO/tests/Faults/server.cpp
index 530af043ca7..e044871662f 100644
--- a/TAO/tests/Faults/server.cpp
+++ b/TAO/tests/Faults/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Failure, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -63,7 +66,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i *server_impl;
@@ -89,7 +92,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/File_IO/File_IO.mpc b/TAO/tests/File_IO/File_IO.mpc
index 0f597f3533e..7d29aa811f5 100644
--- a/TAO/tests/File_IO/File_IO.mpc
+++ b/TAO/tests/File_IO/File_IO.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, minimum_corba {
}
project(*Client): taoclient, anytypecode, minimum_corba {
- after += *Server
Source_Files {
FileC.cpp
client.cpp
diff --git a/TAO/tests/File_IO/File_i.cpp b/TAO/tests/File_IO/File_i.cpp
index 2e74de2a9f9..fd9c97a8d60 100644
--- a/TAO/tests/File_IO/File_i.cpp
+++ b/TAO/tests/File_IO/File_i.cpp
@@ -194,7 +194,7 @@ FileImpl::Descriptor::read (CORBA::Long num_bytes
ACE_CHECK_RETURN (0);
CORBA::Octet *buffer = File::Descriptor::DataBuffer::allocbuf (num_bytes);
- ssize_t length = ACE_OS::read (file_descriptor, buffer, num_bytes);
+ int length = ACE_OS::read (file_descriptor, buffer, num_bytes);
if (length > 0)
return new File::Descriptor::DataBuffer (length,
diff --git a/TAO/tests/File_IO/client.cpp b/TAO/tests/File_IO/client.cpp
index 189a81e3d59..71ba4ae5186 100644
--- a/TAO/tests/File_IO/client.cpp
+++ b/TAO/tests/File_IO/client.cpp
@@ -22,6 +22,7 @@
#include "ace/OS.h"
#include "ace/SString.h"
#include "ace/Thread_Manager.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Default_Servant, client, "client.cpp,v 1.8 2001/03/26 21:16:52 coryan Exp")
@@ -36,7 +37,7 @@ static CORBA::ORB_var orb;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "t:dk:f:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:dk:f:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -166,18 +167,20 @@ MTTEST (void *args)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the command-line arguments to get the IOR
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
// parse args should catch this, but just in case...
if (iorfile == 0)
diff --git a/TAO/tests/File_IO/server.cpp b/TAO/tests/File_IO/server.cpp
index 7d73730e5dc..d3581a7a951 100644
--- a/TAO/tests/File_IO/server.cpp
+++ b/TAO/tests/File_IO/server.cpp
@@ -7,6 +7,7 @@
#include "ace/Task.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_fcntl.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (File_IO,
server,
@@ -40,7 +41,7 @@ private:
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "o:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:d");
int c;
while ((c = get_opts ()) != -1)
@@ -69,8 +70,10 @@ parse_args (int argc, char **argv)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_HANDLE handle = ACE_OS::open ("big.txt",
O_RDWR | O_CREAT,
ACE_DEFAULT_FILE_PERMS);
@@ -83,10 +86,10 @@ main (int argc, char *argv[])
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0 ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
@@ -173,7 +176,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG,"%s\n",
file_system_ior.in ()));
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Forwarding/Forwarding.mpc b/TAO/tests/Forwarding/Forwarding.mpc
index c0830f61571..d3e679e33b7 100644
--- a/TAO/tests/Forwarding/Forwarding.mpc
+++ b/TAO/tests/Forwarding/Forwarding.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, iortable {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Forwarding/client.cpp b/TAO/tests/Forwarding/client.cpp
index 7d6eee99bb3..c7e570001a6 100644
--- a/TAO/tests/Forwarding/client.cpp
+++ b/TAO/tests/Forwarding/client.cpp
@@ -3,6 +3,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Forwarding, client, "$Id$")
@@ -14,7 +15,7 @@ int do_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -64,15 +65,17 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Worker worker (orb.in ());
diff --git a/TAO/tests/Forwarding/server.cpp b/TAO/tests/Forwarding/server.cpp
index 788a56c975a..3fb553b5c32 100644
--- a/TAO/tests/Forwarding/server.cpp
+++ b/TAO/tests/Forwarding/server.cpp
@@ -4,6 +4,7 @@
#include "tao/IORTable/IORTable.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Forwarding, server, "$Id$")
@@ -12,7 +13,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,12 +37,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -89,7 +92,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/GIOP_Fragments/Java_Big_Reply/client.cpp b/TAO/tests/GIOP_Fragments/Java_Big_Reply/client.cpp
index e900b46cdc1..4c4115929bf 100644
--- a/TAO/tests/GIOP_Fragments/Java_Big_Reply/client.cpp
+++ b/TAO/tests/GIOP_Fragments/Java_Big_Reply/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Muxing, client, "$Id$")
@@ -11,7 +12,7 @@ static size_t nthreads = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,15 +39,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/GIOP_Fragments/Java_Big_Request/server.cpp b/TAO/tests/GIOP_Fragments/Java_Big_Request/server.cpp
index cbe3a65d928..3e4ecbd082f 100644
--- a/TAO/tests/GIOP_Fragments/Java_Big_Request/server.cpp
+++ b/TAO/tests/GIOP_Fragments/Java_Big_Request/server.cpp
@@ -3,6 +3,7 @@
#include "Payload_Receiver.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Request_Muxing, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,13 +35,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Payload_Receiver *payload_receiver_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/GIOP_Fragments/PMB_With_Fragments/server.cpp b/TAO/tests/GIOP_Fragments/PMB_With_Fragments/server.cpp
index 166b514f35c..772d50d03e7 100644
--- a/TAO/tests/GIOP_Fragments/PMB_With_Fragments/server.cpp
+++ b/TAO/tests/GIOP_Fragments/PMB_With_Fragments/server.cpp
@@ -3,6 +3,7 @@
#include "Payload_Receiver.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Big_Request_Muxing, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,13 +35,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
PortableServer::LifespanPolicy_var lifespan =
@@ -96,7 +99,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Hang_Shutdown/Hang.mpc b/TAO/tests/Hang_Shutdown/Hang.mpc
index 9d58d8df81e..511bc4d5827 100644
--- a/TAO/tests/Hang_Shutdown/Hang.mpc
+++ b/TAO/tests/Hang_Shutdown/Hang.mpc
@@ -10,8 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- avoids += ace_for_tao
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Hang_Shutdown/Test.idl b/TAO/tests/Hang_Shutdown/Test.idl
index 0ea5055f05a..bef07d739ae 100644
--- a/TAO/tests/Hang_Shutdown/Test.idl
+++ b/TAO/tests/Hang_Shutdown/Test.idl
@@ -1,11 +1,13 @@
// $Id$
-module Test
+module TAO
{
- interface Hang
- {
- void send_stuff (in string foo,
- in boolean flag);
- };
+ module Test
+ {
+ interface Hang
+ {
+ void send_stuff (in string foo,
+ in boolean flag);
+ };
+ };
};
-
diff --git a/TAO/tests/Hang_Shutdown/client.cpp b/TAO/tests/Hang_Shutdown/client.cpp
index 066461f895a..d33581c0f18 100644
--- a/TAO/tests/Hang_Shutdown/client.cpp
+++ b/TAO/tests/Hang_Shutdown/client.cpp
@@ -5,263 +5,271 @@
#include "ace/OS.h"
#include "ace/Task.h"
#include "ace/Profile_Timer.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, client, "$Id$")
-namespace Test
-{
- const char *ior = "file://server.ior";
- ACE_Profile_Timer profile_timer;
- bool blocked = false;
- bool
- parse_args (int argc, char *argv[])
+namespace TAO
+{
+ namespace Test
{
- ACE_Get_Opt get_opts (argc, argv, "b:k:");
- int c;
+ const char *ior = "file://server.ior";
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'b':
+ ACE_Profile_Timer profile_timer;
+ bool blocked = false;
+
+ bool
+ parse_args (int argc, char *argv[])
+ {
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:k:");
+ int c;
+
+ while ((c = get_opts ()) != -1)
+ switch (c)
{
- int tmp =
- ACE_OS::atoi (get_opts.opt_arg ());
+ case 'b':
+ {
+ int tmp =
+ ACE_OS::atoi (get_opts.opt_arg ());
- if (tmp)
- blocked = true;
- else
- blocked = false;
+ if (tmp)
+ blocked = true;
+ else
+ blocked = false;
+ }
+ break;
+ case 'k':
+ {
+ ior = get_opts.opt_arg ();
+ }
+ break;
+ case '?':
+ default:
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "usage: %s "
+ "-k <ior> "
+ "\n",
+ argv [0]),
+ false);
}
- break;
- case 'k':
+
+ // Indicates sucessful parsing of the command line
+ return true;
+ }
+
+ class Client_Task : public ACE_Task_Base
+ {
+ public:
+ Client_Task (Hang_ptr h)
+ : h_ (Hang::_duplicate (h))
+ {}
+
+ virtual int svc (void)
+ {
+ ACE_DECLARE_NEW_CORBA_ENV;
+
+ ACE_TRY
{
- ior = get_opts.opt_arg ();
+ this->h_->send_stuff ("Testing",
+ false
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ this->h_->send_stuff ("Testing",
+ false
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ this->h_->send_stuff ("Testing",
+ true
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "\n",
- argv [0]),
- false);
- }
+ ACE_CATCH (CORBA::COMM_FAILURE, f)
+ {
+ ACE_UNUSED_ARG (f);
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Caught COMM_FAILURE Exception \n"));
- // Indicates sucessful parsing of the command line
- return true;
- }
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) This is expected \n"));
- class Client_Task : public ACE_Task_Base
- {
- public:
- Client_Task (Hang_ptr h)
- : h_ (Hang::_duplicate (h))
- {}
+ return 0;
+ }
+ ACE_CATCH (CORBA::Exception, ex)
+ {
+ ex._tao_print_exception ("Caught CORBA Exception \n");
+
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Error in test \n"));
+
+ return -1;
+ }
+ ACE_CATCHALL
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Caught a C++ exception \n"));
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Error in test \n"));
+
+ return -1;
+ }
+ ACE_ENDTRY;
+
+ return 0;
+ }
- virtual int svc (void)
+ private:
+ Hang_var h_;
+ };
+
+ class Shutdown_Task : public ACE_Task_Base
{
- ACE_DECLARE_NEW_CORBA_ENV;
+ public:
+ Shutdown_Task (CORBA::ORB_ptr o)
+ : o_ (CORBA::ORB::_duplicate (o))
+ {}
- ACE_TRY
- {
- this->h_->send_stuff ("Testing",
- false
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ virtual int svc (void)
+ {
+ ACE_DECLARE_NEW_CORBA_ENV;
- this->h_->send_stuff ("Testing",
- false
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ ACE_TRY
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Calling shutdown \n"));
- this->h_->send_stuff ("Testing",
- true
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::COMM_FAILURE, f)
- {
- ACE_UNUSED_ARG (f);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Caught COMM_FAILURE Exception \n"));
+ // Just wait for the main thread to start sening out
+ // messages
+ ACE_OS::sleep (4);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) This is expected \n"));
+ // Start the timer
+ profile_timer.start ();
- return 0;
- }
- ACE_CATCH (CORBA::Exception, ex)
- {
- ex._tao_print_exception ("Caught CORBA Exception \n");
+ this->o_->shutdown (blocked
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) Error in test \n"));
+ // Stop the timer
+ profile_timer.stop ();
- return -1;
- }
- ACE_CATCHALL
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Caught a C++ exception \n"));
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) Error in test \n"));
+ // Get the elampsed time
+ ACE_Profile_Timer::ACE_Elapsed_Time el;
+ profile_timer.elapsed_time (el);
- return -1;
- }
- ACE_ENDTRY;
+ // The elapsed time is in secs
+ if (el.real_time > 1)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) ERROR: Too long to shutdown \n"));
- return 0;
- }
+ return 0;
+ }
+ }
+ ACE_CATCHALL
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Caught exception during shutdown \n"));
- private:
- Hang_var h_;
- };
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Error in test \n"));
+ return -1;
+ }
+ ACE_ENDTRY;
- class Shutdown_Task : public ACE_Task_Base
- {
- public:
- Shutdown_Task (CORBA::ORB_ptr o)
- : o_ (CORBA::ORB::_duplicate (o))
- {}
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Returning from shutdown \n"));
+ return 0;
+ }
+ private:
+ CORBA::ORB_var o_;
+ };
- virtual int svc (void)
+ static int
+ try_main (int argc, char *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Calling shutdown \n"));
+ CORBA::ORB_var orb =
+ CORBA::ORB_init (argc,
+ argv,
+ ""
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- // Just wait for the main thread to start sening out
- // messages
- ACE_OS::sleep (4);
+ if (parse_args (argc, argv) == false)
+ return -1;
- // Start the timer
- profile_timer.start ();
+ CORBA::Object_var tmp =
+ orb->string_to_object (ior
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- this->o_->shutdown (blocked
- ACE_ENV_ARG_PARAMETER);
+ Hang_var test =
+ Hang::_narrow (tmp.in ()
+ ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- // Stop the timer
- profile_timer.stop ();
+ if (CORBA::is_nil (test.in ()))
+ {
+ ACE_ERROR_RETURN ((LM_DEBUG,
+ "Nil test reference <%s>\n",
+ ior),
+ 1);
+ }
- // Get the elampsed time
- ACE_Profile_Timer::ACE_Elapsed_Time el;
- profile_timer.elapsed_time (el);
+ Client_Task ct (test.in ());
- // The elapsed time is in secs
- if (el.real_time > 1)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Too long to shutdown \n"));
+ if (ct.activate (THR_NEW_LWP | THR_JOINABLE, 1) != 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot activate client threads\n"),
+ 1);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) Activating shutdown thread \n"));
+
+ Shutdown_Task st (orb.in ());
+
+ if (st.activate (THR_NEW_LWP | THR_JOINABLE, 1) != 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot activate shutdown threads\n"),
+ 1);
+
+ ACE_Thread_Manager::instance ()->wait ();
+
+ orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
- return 0;
- }
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "CORBA Exception caught \n");
+ ACE_ERROR ((LM_ERROR,
+ "(%P|%t) Eror in test \n"));
+ return -1;
}
ACE_CATCHALL
{
ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Caught exception during shutdown \n"));
-
- ACE_ERROR ((LM_ERROR,
"(%P|%t) Error in test \n"));
return -1;
}
ACE_ENDTRY;
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Returning from shutdown \n"));
return 0;
}
- private:
- CORBA::ORB_var o_;
- };
-
- static int
- try_main (int argc, char *argv[])
- {
- ACE_DECLARE_NEW_CORBA_ENV;
-
- ACE_TRY
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (parse_args (argc, argv) == false)
- return -1;
-
- CORBA::Object_var tmp =
- orb->string_to_object (ior
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Hang_var test =
- Hang::_narrow (tmp.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (test.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil test reference <%s>\n",
- ior),
- 1);
- }
-
- Client_Task ct (test.in ());
-
- if (ct.activate (THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot activate client threads\n"),
- 1);
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Activating shutdown thread \n"));
-
- Shutdown_Task st (orb.in ());
-
- if (st.activate (THR_NEW_LWP | THR_JOINABLE, 1) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot activate shutdown threads\n"),
- 1);
-
- ACE_Thread_Manager::instance ()->wait ();
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "CORBA Exception caught \n");
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) Eror in test \n"));
- return -1;
- }
- ACE_CATCHALL
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) Error in test \n"));
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
}
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- return Test::try_main (argc, argv);
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ return TAO::Test::try_main (convert.get_argc(), convert.get_ASCII_argv());
}
diff --git a/TAO/tests/Hang_Shutdown/server.cpp b/TAO/tests/Hang_Shutdown/server.cpp
index 4f17562b879..c745517bb13 100644
--- a/TAO/tests/Hang_Shutdown/server.cpp
+++ b/TAO/tests/Hang_Shutdown/server.cpp
@@ -3,102 +3,106 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
-namespace Test
+namespace TAO
{
- const char *ior_output_file = "server.ior";
-
- static int
- try_main (int argc,
- char *argv[])
+ namespace Test
{
- ACE_DECLARE_NEW_CORBA_ENV;
-
- ACE_TRY
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA"
+ const char *ior_output_file = "server.ior";
+
+ static int
+ try_main (int argc,
+ char *argv[])
+ {
+ ACE_DECLARE_NEW_CORBA_ENV;
+
+ ACE_TRY
+ {
+ CORBA::ORB_var orb =
+ CORBA::ORB_init (argc,
+ argv,
+ ""
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ CORBA::Object_var poa_object =
+ orb->resolve_initial_references("RootPOA"
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ PortableServer::POA_var root_poa =
+ PortableServer::POA::_narrow (poa_object.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (root_poa.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Panic: nil RootPOA\n"),
- 1);
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- test_i *test_impl;
- ACE_NEW_RETURN (test_impl,
- test_i (),
- 1);
- PortableServer::ServantBase_var owner_transfer (test_impl);
-
- Hang_var test =
- test_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- orb->object_to_string (test.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- ior_output_file),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Time_Value tv (10);
-
- orb->run (&tv);
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) server - event loop finished\n"));
-
- root_poa->destroy (1,
- 1
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught CORBA exception \n");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (root_poa.in ()))
+ ACE_ERROR_RETURN ((LM_ERROR,
+ " (%P|%t) Panic: nil RootPOA\n"),
+ 1);
+
+ PortableServer::POAManager_var poa_manager =
+ root_poa->the_POAManager ();
+
+ test_i *test_impl;
+ ACE_NEW_RETURN (test_impl,
+ test_i (),
+ 1);
+ PortableServer::ServantBase_var owner_transfer (test_impl);
+
+ Hang_var test =
+ test_impl->_this ();
+
+ CORBA::String_var ior =
+ orb->object_to_string (test.in ()
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ // If the ior_output_file exists, output the ior to it
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
+ if (output_file == 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "Cannot open output file for writing IOR: %s",
+ ior_output_file),
+ 1);
+ ACE_OS::fprintf (output_file, "%s", ior.in ());
+ ACE_OS::fclose (output_file);
+
+ poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ ACE_Time_Value tv (10);
+
+ orb->run (&tv);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) server - event loop finished\n"));
+
+ root_poa->destroy (1,
+ 1
+ ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
+ "Caught CORBA exception \n");
+ return -1;
+ }
+ ACE_ENDTRY;
+
+ return 0;
+ }
}
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- return Test::try_main (argc, argv);
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ return TAO::Test::try_main (convert.get_argc(), convert.get_ASCII_argv());
}
diff --git a/TAO/tests/Hang_Shutdown/test_i.h b/TAO/tests/Hang_Shutdown/test_i.h
index 28f6ef82e23..1368f3c36c8 100644
--- a/TAO/tests/Hang_Shutdown/test_i.h
+++ b/TAO/tests/Hang_Shutdown/test_i.h
@@ -9,33 +9,36 @@
#include "ace/OS_NS_unistd.h"
-namespace Test
+namespace TAO
{
- class test_i
- : public virtual POA_Test::Hang
+ namespace Test
{
- public:
- // = The skeleton methods
- virtual void send_stuff (const char* str,
- CORBA::Boolean flag
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
+ class test_i
+ : public virtual POA_TAO::Test::Hang
{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) - [%C]\n", str));
+ public:
+ // = The skeleton methods
+ virtual void send_stuff (const char* str,
+ CORBA::Boolean flag
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "(%P|%t) - [%C]\n", str));
- if (flag)
- {
- ACE_OS::sleep (10);
+ if (flag)
+ {
+ ACE_OS::sleep (10);
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) - Returning from send_stuff\n", str));
- }
+ ACE_DEBUG ((LM_DEBUG,
+ "TAO (%P|%t) - Returning from send_stuff\n", str));
+ }
- return;
- }
- private:
- };
+ return;
+ }
+ private:
+ };
+ }
}
#include /**/ "ace/post.h"
diff --git a/TAO/tests/Hello/Hello.mpc b/TAO/tests/Hello/Hello.mpc
index 9a1892855d9..9ea6c4b127b 100644
--- a/TAO/tests/Hello/Hello.mpc
+++ b/TAO/tests/Hello/Hello.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Hello/client.cpp b/TAO/tests/Hello/client.cpp
index f85722246b5..3aa48460088 100644
--- a/TAO/tests/Hello/client.cpp
+++ b/TAO/tests/Hello/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,15 +35,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Hello/server.cpp b/TAO/tests/Hello/server.cpp
index 177aad4d1d8..b9b071c2cee 100644
--- a/TAO/tests/Hello/server.cpp
+++ b/TAO/tests/Hello/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Hello,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/ICMG_Any_Bug/Hello.mpc b/TAO/tests/ICMG_Any_Bug/Hello.mpc
index a41e64733b8..654e32854cd 100644
--- a/TAO/tests/ICMG_Any_Bug/Hello.mpc
+++ b/TAO/tests/ICMG_Any_Bug/Hello.mpc
@@ -10,7 +10,6 @@ project(ICMG_Any_Bug_Hello_Server): taoserver {
}
project(ICMG_Any_Bug_Hello_Client): taoclient, ifr_client, dynamicinterface, minimum_corba {
- after += ICMG_Any_Bug_Hello_Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/ICMG_Any_Bug/client.cpp b/TAO/tests/ICMG_Any_Bug/client.cpp
index 3457c09156a..fb34f948f97 100755
--- a/TAO/tests/ICMG_Any_Bug/client.cpp
+++ b/TAO/tests/ICMG_Any_Bug/client.cpp
@@ -4,6 +4,7 @@
#include "TestC.h"
#include "tao/ORB.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include <string>
ACE_RCSID (ICMG_Any_Bug,
@@ -15,7 +16,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,15 +40,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/ICMG_Any_Bug/server.cpp b/TAO/tests/ICMG_Any_Bug/server.cpp
index e32f495349a..255b2b423d7 100755
--- a/TAO/tests/ICMG_Any_Bug/server.cpp
+++ b/TAO/tests/ICMG_Any_Bug/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ICMG_Any_Bug,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/IDL_Test/array.idl b/TAO/tests/IDL_Test/array.idl
index 2ec2f9c01a4..a9b40470990 100644
--- a/TAO/tests/IDL_Test/array.idl
+++ b/TAO/tests/IDL_Test/array.idl
@@ -9,7 +9,7 @@
// array.idl
//
// = DESCRIPTION
-// This file contains examples of IDL code that has
+// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
@@ -40,16 +40,16 @@ typedef wrap outside_array[10];
// Once a problem with expressions in the brackets,
// as well as the typedef'd/anonymous thing.
-interface tdef
+interface tdef
{
const short byteslen = 12;
typedef octet Bytes[byteslen + 1];
- struct bytes_or_longs
+ struct bytes_or_longs
{
Bytes the_bytes; // typedef'd
long Longs[byteslen]; // anonymous
- };
+ };
};
// To test that all the octet arrays build and link as
@@ -61,7 +61,7 @@ module ABCModule
octet rmtNodeId[22];
octet rmtDetails[22];
};
-
+
struct bbbBubBubBubBaby
{
octet rmtNodeId[22];
@@ -91,22 +91,20 @@ module string_array
// Checks code generation for arrays and typedefs of arrays
// when they are not declared globally or inside a module.
-interface testdata
+interface testdata
{
typedef char Arraychar[2];
typedef Arraychar ArrayDeChar;
- struct struct2
+ struct struct2
{
Arraychar field_1;
ArrayDeChar field_2;
};
typedef sequence<Arraychar> ArraycharList;
- typedef sequence<Arraychar,10> BdArraycharList;
typedef sequence<ArrayDeChar> ArrayDeCharList;
- typedef sequence<ArrayDeChar,10> BdArrayDeCharList;
};
// Tests for explicit conversion of slice pointer to the
@@ -148,19 +146,6 @@ module bug_2126
case TRUE: MyStruct second_union_struct_member;
case FALSE: long wibble;
};
-
- typedef FirstUnion BdFirstUnionArray[2];
-
- struct BdMyStruct
- {
- BdFirstUnionArray my_struct_foo;
- };
-
- union BdSecondUnion switch (boolean)
- {
- case TRUE: BdMyStruct second_union_struct_member;
- case FALSE: long wibble;
- };
};
diff --git a/TAO/tests/IDL_Test/constants.idl b/TAO/tests/IDL_Test/constants.idl
index 4d95752d59e..1d48889517c 100644
--- a/TAO/tests/IDL_Test/constants.idl
+++ b/TAO/tests/IDL_Test/constants.idl
@@ -9,7 +9,7 @@
// constants.idl
//
// = DESCRIPTION
-// This file contains examples of IDL code that has
+// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
@@ -48,8 +48,6 @@ const char fivebits = '\x32';
const char maybe_minus = '\xAf';
const char max_char_hex = '\xff';
-// const wstring wstr = L"wstr";
-
// unsigned longs greater than LONG_MAX
const unsigned long in_range = 3222111000;
@@ -74,22 +72,22 @@ const unsigned long drink = 1000000000 << 2;
// An enum of one type cannot be assigned to an constant of another
// enum type, but it's ok if one is a typedef of the other.
-module m_a
+module m_a
{
enum enum_a { value_1, value_2, value_3, value_4, value_5 };
};
-module m_b
+module m_b
{
typedef m_a::enum_a enum_b;
};
-module problems
+module problems
{
const m_b::enum_b bconst = m_a::value_2;
};
-// In a class, string constants cannot be declared inline, but
+// In a class, string constants cannot be declared inline, but
// arithmetic types can be.
module ClassConstants
{
@@ -97,14 +95,12 @@ module ClassConstants
{
const long iface_long = 55;
const string iface_str = "iface_str";
-// const wstring iface_wstr = L"iface_wstr";
};
-
+
valuetype Vt
{
const double vt_long = 66.66;
const string vt_str = "vt_str";
-// const wstring vt_wstr = L"vt_wstr";
};
};
diff --git a/TAO/tests/IDL_Test/included.idl b/TAO/tests/IDL_Test/included.idl
index a8da94acedc..6dd51822749 100644
--- a/TAO/tests/IDL_Test/included.idl
+++ b/TAO/tests/IDL_Test/included.idl
@@ -9,7 +9,7 @@
// included.idl
//
// = DESCRIPTION
-// This file contains examples of IDL code that has
+// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
@@ -23,7 +23,7 @@
#define IDL_TEST_INCLUDED_IDL
// Included in IDL file 'including.idl'.
-module Aok
+module Aok
{
typedef sequence<double> Seq1Type;
typedef long Me;
@@ -31,16 +31,9 @@ module Aok
enum Agog
{
- Agog1,
- Agog2,
+ Agog1,
+ Agog2,
Agog3
};
-// This valuetype is used in a sequence in the including file,
-// and tests that Value_VarOut_T.h is included early enough.
-module VT_Def
-{
- valuetype VT {};
-};
-
#endif /* IDL_TEST_INCLUDED_IDL */
diff --git a/TAO/tests/IDL_Test/including.idl b/TAO/tests/IDL_Test/including.idl
index 431f8903c9c..f4bc66f3953 100644
--- a/TAO/tests/IDL_Test/including.idl
+++ b/TAO/tests/IDL_Test/including.idl
@@ -9,7 +9,7 @@
// including.idl
//
// = DESCRIPTION
-// This file contains examples of IDL code that has
+// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
@@ -24,12 +24,12 @@
#include "included.idl"
-enum choice
+enum choice
{
dog
};
-union myUnion switch (choice)
+union myUnion switch (choice)
{
// Typedef is in included file
case dog: Aok::Seq1Type cat;
@@ -50,23 +50,19 @@ union Bog switch (Agog)
// scope doesn't apply here, because Me is not
// defined in the struct, only referenced.
interface iface
-{
+{
enum postal
{
ME,
- TAO_FE // FE is #defined on HP-UX 10.20, so I prefix it with TAO
+ TAO_FE // FE is #defined on HP-UX 10.20, so I prefix it with TAO
};
-
+
struct using_incl
{
Aok::Me field1;
- };
+ };
};
-module VT_Test
-{
- typedef sequence<VT_Def::VT> VTSeq;
-};
#endif /* IDL_TEST_INCLUDING_IDL */
diff --git a/TAO/tests/IDL_Test/interface.idl b/TAO/tests/IDL_Test/interface.idl
index 966a1fd80b9..28e428251be 100644
--- a/TAO/tests/IDL_Test/interface.idl
+++ b/TAO/tests/IDL_Test/interface.idl
@@ -9,7 +9,7 @@
// interface.idl
//
// = DESCRIPTION
-// This file contains examples of IDL code that has
+// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
@@ -21,7 +21,7 @@
-// Used to be a problem in the get() and set()
+// Used to be a problem in the get() and set()
// generated code.
interface Base
@@ -38,7 +38,7 @@ interface Derived : Base
// foo's scope.
module foo_mod
{
- struct date
+ struct date
{
short month;
};
@@ -71,10 +71,6 @@ interface child : mother, father
{
};
-interface try
-{
-};
-
// Definition below in file.
interface later;
@@ -82,11 +78,11 @@ typedef boolean Bool;
interface later_user
{
- later op (in later inarg,
+ later op (in later inarg,
inout later inoutarg,
out later outarg);
-
+
// Not a clash with the C++ keyword because they are case sensitive,
// but the Arg_Traits<> specialization parameter (ACE_InputCDR::to_boolean)
// needs the unaliased type name to work.
@@ -106,7 +102,7 @@ interface later {};
// somewhere other than the scope where the
// lookup starts.
-interface Begin
+interface Begin
{
typedef long Value;
};
@@ -115,11 +111,11 @@ interface Middle : Begin
{
};
-interface End : Middle
+interface End : Middle
{
};
-interface Client
+interface Client
{
attribute End::Value v;
};
@@ -141,53 +137,31 @@ module ParamMod
{
ParameterTester objref;
};
-
+
typedef sequence<ParameterTester> object_seq_type;
-
+
typedef ParameterTester object_array_type[5];
- struct object_struct_type
+ struct object_struct_type
{
octet o1;
ParameterTester p1;
- long l1;
+ long l1;
};
-
+
union object_union_type switch (long)
{
case 0: string str;
case 1: ParameterTester pt;
};
-
+
object_seq_type parameter_tester_op (
in object_struct_type inarg,
inout object_array_type inoutarg,
out object_union_type outarg
)
- raises (object_excep_type);
- };
-};
-
-local interface testlocal
-{
-};
-
-interface A {
- union U switch(boolean)
- {
- case TRUE: A aa;
+ raises (object_excep_type);
};
};
-module M
-{
- interface A;
-};
-
-module M
-{
- interface A;
-
- interface A {};
-};
-
+
diff --git a/TAO/tests/IDL_Test/main.cpp b/TAO/tests/IDL_Test/main.cpp
index 2c39344eabf..3cf1d731fdb 100644
--- a/TAO/tests/IDL_Test/main.cpp
+++ b/TAO/tests/IDL_Test/main.cpp
@@ -26,6 +26,7 @@
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/AnyTypeCode/Any.h"
class hello_i : public virtual POA_hello
@@ -85,14 +86,16 @@ struct something_handler : public POA_bug_1985_c::d::AMI_somethingHandler
};
int
-main (int argc , char *argv[])
+ACE_TMAIN (int argc , ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int error_count = 0;
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/IDL_Test/sequence.idl b/TAO/tests/IDL_Test/sequence.idl
index 9c3b32da80e..9cbd802c9b4 100644
--- a/TAO/tests/IDL_Test/sequence.idl
+++ b/TAO/tests/IDL_Test/sequence.idl
@@ -9,7 +9,7 @@
// sequence.idl
//
// = DESCRIPTION
-// This file contains examples of IDL code that has
+// This file contains examples of IDL code that has
// caused problems in the past for the TAO IDL
// compiler. This test is to make sure the problems
// stay fixed.
@@ -28,19 +28,13 @@ typedef sequence<CORBA::OctetSeq> OctetSeqSeq;
// Bounded string elements of a sequence,
// require the use of CORBA_Any::to_char.
-interface seqTest
+interface seqTest
{
typedef sequence< string<12> > dozens;
void send_dozen (inout dozens bouquets);
};
-local interface seqLocal
-{
-};
-
-typedef sequence<seqLocal> seqLocalSeq;
-
// Anonymous sequence members must be unique types even if the
// sequence itself is not, so the member name has been
// incorported into the sequence class name. #if !defined guards
@@ -60,7 +54,7 @@ struct nestedSeqStruct
};
// Tests deeply nested recursive type.
-module Deployment
+module Deployment
{
struct ComponentPackageDescription;
diff --git a/TAO/tests/IORManipulation/IORTest.cpp b/TAO/tests/IORManipulation/IORTest.cpp
index 29313aad9b1..098c4411bb4 100644
--- a/TAO/tests/IORManipulation/IORTest.cpp
+++ b/TAO/tests/IORManipulation/IORTest.cpp
@@ -13,6 +13,7 @@
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/IORManipulation/IORManip_Loader.h"
@@ -23,8 +24,10 @@ ACE_RCSID (IORManipluation,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// The variable is declared volatile because, some compilers
// optimizes this the wrong way. A case is point is the CC compiler
// on IRIX.
@@ -37,8 +40,8 @@ main (int argc, char *argv[])
ACE_TRY
{
// Retrieve the ORB.
- CORBA::ORB_var orb_ = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb_ = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/IOR_Endpoint_Hostnames/generate_ior.cpp b/TAO/tests/IOR_Endpoint_Hostnames/generate_ior.cpp
index b4058e4deef..49601f81dca 100644
--- a/TAO/tests/IOR_Endpoint_Hostnames/generate_ior.cpp
+++ b/TAO/tests/IOR_Endpoint_Hostnames/generate_ior.cpp
@@ -6,17 +6,20 @@
#include "tao/corba.h"
#include "tao/PortableServer/PortableServer.h"
+#include "ace/Argv_Type_Converter.h"
#include "bogus_i.h"
ACE_RCSID (IOR_Endpoint_Hostnames, generate_ior, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp b/TAO/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp
index c6f463d08bf..efd40b3bf20 100644
--- a/TAO/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp
+++ b/TAO/tests/IOR_Endpoint_Hostnames/list_interfaces.cpp
@@ -13,7 +13,7 @@
ACE_RCSID (IOR_Endpoint_Hostnames, list_interfaces, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
diff --git a/TAO/tests/IPV6/IPV6_Hello.mpc b/TAO/tests/IPV6/IPV6_Hello.mpc
index 9a1892855d9..9ea6c4b127b 100644
--- a/TAO/tests/IPV6/IPV6_Hello.mpc
+++ b/TAO/tests/IPV6/IPV6_Hello.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/IPV6/client.cpp b/TAO/tests/IPV6/client.cpp
index 77a6ec4190b..1f736d6527d 100644
--- a/TAO/tests/IPV6/client.cpp
+++ b/TAO/tests/IPV6/client.cpp
@@ -3,6 +3,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
#include "ace/SString.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Hello, client, "$Id$")
@@ -13,7 +14,7 @@ bool expect_error = false;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x");
int c;
while ((c = get_opts ()) != -1)
@@ -41,15 +42,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/IPV6/run_test.pl b/TAO/tests/IPV6/run_test.pl
index 82d3ef36246..fc6aea9ecbd 100755
--- a/TAO/tests/IPV6/run_test.pl
+++ b/TAO/tests/IPV6/run_test.pl
@@ -24,25 +24,25 @@ $clt_arg = "-k file://$iorfile ";
@configurations =
(
{
- description => "Testing server with '-ORBConnectIPV6Only 1'.\n",
- server => "$srv_arg -ORBConnectIPV6Only 1",
+ description => "Testing server with '-ORBConnectIPV6Only YES'.\n",
+ server => "$srv_arg -ORBConnectIPV6Only YES",
client => "$clt_arg",
error => 0,
url => 0,
url_address => "",
},
{
- description => "Testing client with '-ORBPreferIPV6Interfaces 1'.\n",
+ description => "Testing client with '-ORBPreferIPV6Interfaces YES'.\n",
server => "$srv_arg ",
- client => "$clt_arg -ORBPreferIPV6Interfaces 1",
+ client => "$clt_arg -ORBPreferIPV6Interfaces YES",
error => 0,
url => 0,
url_address => "",
},
{
- description => "Testing IPV4 server with client with '-ORBConnectIPV6Only 1'.\n",
+ description => "Testing IPV4 server with client with '-ORBConnectIPV6Only YES'.\n",
server => "$srv_arg -ORBListenEndpoints iiop://127.0.0.1",
- client => "$clt_arg -x -ORBConnectIPV6Only 1",
+ client => "$clt_arg -x -ORBConnectIPV6Only YES",
error => 1,
url => 0,
url_address => "",
@@ -73,7 +73,7 @@ $clt_arg = "-k file://$iorfile ";
},
{
description => "Testing IPV6Only server with client and IPV4-forced URL",
- server => "$srv_arg -ORBConnectIPV6Only 1 -ORBObjRefStyle url",
+ server => "$srv_arg -ORBConnectIPV6Only YES -ORBObjRefStyle url",
client => "-x",
error => 1,
url => 1,
diff --git a/TAO/tests/IPV6/server.cpp b/TAO/tests/IPV6/server.cpp
index 177aad4d1d8..b9b071c2cee 100644
--- a/TAO/tests/IPV6/server.cpp
+++ b/TAO/tests/IPV6/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Hello,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/InterOp-Naming/INS_test_client.cpp b/TAO/tests/InterOp-Naming/INS_test_client.cpp
index ffc40b2331e..d234d5e80b7 100644
--- a/TAO/tests/InterOp-Naming/INS_test_client.cpp
+++ b/TAO/tests/InterOp-Naming/INS_test_client.cpp
@@ -7,18 +7,21 @@
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int i = 0;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Retrieve a reference to the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -34,7 +37,7 @@ main (int argc, char *argv[])
for (i = 1; i < argc; ++i)
{
- if (ACE_OS::strcmp (argv[i], "-l") == 0)
+ if (ACE_OS::strcmp (argv[i], ACE_TEXT("-l")) == 0)
{
// List initial services
CORBA::ORB::ObjectIdList_var list =
@@ -69,7 +72,7 @@ main (int argc, char *argv[])
}
else
{
- objref = orb->resolve_initial_references (argv[i] ACE_ENV_ARG_PARAMETER);
+ objref = orb->resolve_initial_references (ACE_TEXT_TO_CHAR_IN(argv[i]) ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (CORBA::is_nil (objref.in ()))
diff --git a/TAO/tests/InterOp-Naming/INS_test_server.cpp b/TAO/tests/InterOp-Naming/INS_test_server.cpp
index c45f732a26f..f0d12921979 100644
--- a/TAO/tests/InterOp-Naming/INS_test_server.cpp
+++ b/TAO/tests/InterOp-Naming/INS_test_server.cpp
@@ -5,8 +5,9 @@
// This is the main driver program for the INS test server.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Server_i server;
@@ -15,8 +16,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
- if (server.init (argc,
- argv
+ if (server.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER) == -1)
return 1;
else
diff --git a/TAO/tests/InterOp-Naming/InterOp-Naming.mpc b/TAO/tests/InterOp-Naming/InterOp-Naming.mpc
index 163fd3de1c3..5604fafaf7b 100644
--- a/TAO/tests/InterOp-Naming/InterOp-Naming.mpc
+++ b/TAO/tests/InterOp-Naming/InterOp-Naming.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver, utils, iortable {
project(*Client): taoclient, anytypecode {
exename = INS_test_client
- after += *Server
Source_Files {
INSC.cpp
INS_test_client.cpp
diff --git a/TAO/tests/InterOp-Naming/Server_i.cpp b/TAO/tests/InterOp-Naming/Server_i.cpp
index ec60caff7ea..343dd6d4835 100644
--- a/TAO/tests/InterOp-Naming/Server_i.cpp
+++ b/TAO/tests/InterOp-Naming/Server_i.cpp
@@ -25,7 +25,7 @@ Server_i::~Server_i (void)
int
Server_i::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, "do:ni:");
+ ACE_Get_Arg_Opt<char> get_opts (this->argc_, this->argv_, "do:ni:");
int c = 0;
while ((c = get_opts ()) != -1)
@@ -35,7 +35,7 @@ Server_i::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
diff --git a/TAO/tests/InterOp-Naming/Server_i.h b/TAO/tests/InterOp-Naming/Server_i.h
index 7df2f070c41..62abca27e44 100644
--- a/TAO/tests/InterOp-Naming/Server_i.h
+++ b/TAO/tests/InterOp-Naming/Server_i.h
@@ -22,6 +22,7 @@
#include "tao/Utils/ORB_Manager.h"
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
#include "INS_i.h"
class Server_i
diff --git a/TAO/tests/Leader_Followers/Leader_Followers.mpc b/TAO/tests/Leader_Followers/Leader_Followers.mpc
index a3b794ac88f..c82979d0e98 100644
--- a/TAO/tests/Leader_Followers/Leader_Followers.mpc
+++ b/TAO/tests/Leader_Followers/Leader_Followers.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, strategies {
}
project(*Client): taoclient, strategies {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Leader_Followers/client.cpp b/TAO/tests/Leader_Followers/client.cpp
index 1711b12b175..a25eb1a6a08 100644
--- a/TAO/tests/Leader_Followers/client.cpp
+++ b/TAO/tests/Leader_Followers/client.cpp
@@ -17,6 +17,7 @@
#include "ace/Read_Buffer.h"
#include "ace/Task.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "tao/Strategies/advanced_resource.h"
@@ -45,7 +46,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:c:e:w:t:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:c:e:w:t:x");
int c;
while ((c = get_opts ()) != -1)
@@ -236,22 +237,24 @@ private:
};
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/Leader_Followers/server.cpp b/TAO/tests/Leader_Followers/server.cpp
index 42575677363..492e3ad5a04 100644
--- a/TAO/tests/Leader_Followers/server.cpp
+++ b/TAO/tests/Leader_Followers/server.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/Strategies/advanced_resource.h"
@@ -15,7 +16,7 @@ int number_of_event_loop_threads = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "e:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "e:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -80,13 +81,15 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -108,7 +111,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -124,7 +127,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/LongUpcalls/AMI_Manager.cpp b/TAO/tests/LongUpcalls/AMI_Manager.cpp
index 01b2d58bb9e..e244be88a2e 100644
--- a/TAO/tests/LongUpcalls/AMI_Manager.cpp
+++ b/TAO/tests/LongUpcalls/AMI_Manager.cpp
@@ -162,13 +162,13 @@ Controller_Handler::worker_started (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
void
Controller_Handler::worker_started_excep
- (::Messaging::ExceptionHolder* h
+ (Test::AMI_ControllerExceptionHolder* h
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- h->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ h->raise_worker_started (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
@@ -190,13 +190,13 @@ Controller_Handler::worker_finished (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
void
Controller_Handler::worker_finished_excep
- (::Messaging::ExceptionHolder *h
+ (Test::AMI_ControllerExceptionHolder *h
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- h->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ h->raise_worker_finished (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/LongUpcalls/AMI_Manager.h b/TAO/tests/LongUpcalls/AMI_Manager.h
index 5d7d6a82eec..9e1d360e5e8 100644
--- a/TAO/tests/LongUpcalls/AMI_Manager.h
+++ b/TAO/tests/LongUpcalls/AMI_Manager.h
@@ -63,12 +63,12 @@ public:
virtual void worker_started (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void worker_started_excep (::Messaging::ExceptionHolder*
+ virtual void worker_started_excep (Test::AMI_ControllerExceptionHolder*
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void worker_finished (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void worker_finished_excep (::Messaging::ExceptionHolder*
+ virtual void worker_finished_excep (Test::AMI_ControllerExceptionHolder*
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/tests/LongUpcalls/LongUpcalls.mpc b/TAO/tests/LongUpcalls/LongUpcalls.mpc
index 13a0c026057..5bd663d16e0 100644
--- a/TAO/tests/LongUpcalls/LongUpcalls.mpc
+++ b/TAO/tests/LongUpcalls/LongUpcalls.mpc
@@ -10,24 +10,21 @@ project(*Server): taoserver, messaging, ami {
}
project(*Client): messaging, taoexe, portableserver, ami {
- after += *Server
Source_Files {
Controller.cpp
blocking_client.cpp
}
}
-project(*AMI_Server): taoserver, messaging, ami {
+project(*AMI Server): taoserver, messaging, ami {
exename = ami_server
- after += *Client
Source_Files {
AMI_Manager.cpp
ami_server.cpp
}
}
-project(*AMI_Client): messaging, taoexe, portableserver, ami {
- after += *AMI_Server
+project(*AMI Client): messaging, taoexe, portableserver, ami {
Source_Files {
Controller.cpp
Manager_Handler.cpp
diff --git a/TAO/tests/LongUpcalls/Manager_Handler.cpp b/TAO/tests/LongUpcalls/Manager_Handler.cpp
index c1532a2eb86..4223798dc86 100644
--- a/TAO/tests/LongUpcalls/Manager_Handler.cpp
+++ b/TAO/tests/LongUpcalls/Manager_Handler.cpp
@@ -34,13 +34,13 @@ Manager_Handler::start_workers (ACE_ENV_SINGLE_ARG_DECL)
}
void
-Manager_Handler::start_workers_excep (::Messaging::ExceptionHolder * holder
+Manager_Handler::start_workers_excep (Test::AMI_ManagerExceptionHolder * holder
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_TRY
{
- holder->raise_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
+ holder->raise_start_workers (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/LongUpcalls/Manager_Handler.h b/TAO/tests/LongUpcalls/Manager_Handler.h
index 8ee1d472c2e..742f4c76ca3 100644
--- a/TAO/tests/LongUpcalls/Manager_Handler.h
+++ b/TAO/tests/LongUpcalls/Manager_Handler.h
@@ -19,7 +19,7 @@ public:
// = The skeleton methods
virtual void start_workers (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
- virtual void start_workers_excep (::Messaging::ExceptionHolder *holder
+ virtual void start_workers_excep (Test::AMI_ManagerExceptionHolder*
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
diff --git a/TAO/tests/LongUpcalls/ami_client.cpp b/TAO/tests/LongUpcalls/ami_client.cpp
index e22153a203d..db3afd7db23 100644
--- a/TAO/tests/LongUpcalls/ami_client.cpp
+++ b/TAO/tests/LongUpcalls/ami_client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Controller.h"
#include "Manager_Handler.h"
@@ -11,7 +12,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Controller controller_impl;
diff --git a/TAO/tests/LongUpcalls/ami_server.cpp b/TAO/tests/LongUpcalls/ami_server.cpp
index ed7307129f9..5946477e568 100644
--- a/TAO/tests/LongUpcalls/ami_server.cpp
+++ b/TAO/tests/LongUpcalls/ami_server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "AMI_Manager.h"
ACE_RCSID(LongUpcalls, ami_server, "$Id$")
@@ -10,7 +11,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,12 +34,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -58,7 +61,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
AMI_Manager manager_impl (orb.in ());
@@ -72,7 +75,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/LongUpcalls/blocking_client.cpp b/TAO/tests/LongUpcalls/blocking_client.cpp
index b914c957950..6eda0fc867d 100644
--- a/TAO/tests/LongUpcalls/blocking_client.cpp
+++ b/TAO/tests/LongUpcalls/blocking_client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Controller.h"
ACE_RCSID(LongUpcalls, blocking_client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,12 +34,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
@@ -58,7 +61,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Controller controller_impl;
diff --git a/TAO/tests/LongUpcalls/blocking_server.cpp b/TAO/tests/LongUpcalls/blocking_server.cpp
index eb5c55c3bf0..2fb3ea014f1 100644
--- a/TAO/tests/LongUpcalls/blocking_server.cpp
+++ b/TAO/tests/LongUpcalls/blocking_server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Manager.h"
ACE_RCSID(LongUpcalls, blocking_server, "$Id$")
@@ -10,7 +11,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,12 +34,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -58,7 +61,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Manager manager_impl (orb.in ());
@@ -72,7 +75,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MProfile/MProfile.mpc b/TAO/tests/MProfile/MProfile.mpc
index e48d767fd5c..40f7a4677d8 100644
--- a/TAO/tests/MProfile/MProfile.mpc
+++ b/TAO/tests/MProfile/MProfile.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, iormanip {
}
project(*Client): taoclient, iormanip {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/MProfile/client.cpp b/TAO/tests/MProfile/client.cpp
index b25b828894c..46e8d32920d 100644
--- a/TAO/tests/MProfile/client.cpp
+++ b/TAO/tests/MProfile/client.cpp
@@ -4,6 +4,7 @@
#include "ace/SString.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
ACE_RCSID(MT_Server, client, "$Id$")
@@ -16,7 +17,7 @@ const char *name = "file://amba.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:m:");
int c;
while ((c = get_opts ()) != -1)
@@ -53,17 +54,19 @@ run_test (Simple_Server_ptr server
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Primary server
diff --git a/TAO/tests/MProfile/server.cpp b/TAO/tests/MProfile/server.cpp
index 12aea589a09..66753633013 100644
--- a/TAO/tests/MProfile/server.cpp
+++ b/TAO/tests/MProfile/server.cpp
@@ -4,6 +4,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, server, "$Id$")
@@ -12,7 +13,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -64,7 +67,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -82,7 +85,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MProfile_Connection_Timeout/MProfile_Connection_Timeout.mpc b/TAO/tests/MProfile_Connection_Timeout/MProfile_Connection_Timeout.mpc
index e4abfd734d6..cb84adb7841 100644
--- a/TAO/tests/MProfile_Connection_Timeout/MProfile_Connection_Timeout.mpc
+++ b/TAO/tests/MProfile_Connection_Timeout/MProfile_Connection_Timeout.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver, messaging, iormanip {
}
project(*Client): taoclient, messaging, iormanip {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/MProfile_Connection_Timeout/client.cpp b/TAO/tests/MProfile_Connection_Timeout/client.cpp
index 5425b2e0ddd..0152c2d6a75 100644
--- a/TAO/tests/MProfile_Connection_Timeout/client.cpp
+++ b/TAO/tests/MProfile_Connection_Timeout/client.cpp
@@ -3,6 +3,7 @@
#include "tao/IORManipulation/IORManip_Loader.h"
#include "ace/SString.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "tao/TimeBaseC.h"
#include "tao/Messaging/Messaging.h"
@@ -21,7 +22,7 @@ TimeBase::TimeT timeout_period = 1000000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:m:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:m:");
int c;
while ((c = get_opts ()) != -1)
@@ -58,17 +59,19 @@ run_test (Simple_Server_ptr server
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Primary server
diff --git a/TAO/tests/MProfile_Connection_Timeout/server.cpp b/TAO/tests/MProfile_Connection_Timeout/server.cpp
index 9daac4d75f7..a8e06ff8f47 100644
--- a/TAO/tests/MProfile_Connection_Timeout/server.cpp
+++ b/TAO/tests/MProfile_Connection_Timeout/server.cpp
@@ -1,8 +1,9 @@
// $Id$
-#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
+#include "ace/Get_Opt.h"
ACE_RCSID(MProfile_Connection_Timeout,
server,
@@ -13,7 +14,7 @@ int orb_run = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:r");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:r");
int c;
while ((c = get_opts ()) != -1)
@@ -39,12 +40,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -68,7 +71,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -86,7 +89,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MProfile_Forwarding/MProfile_Forwarding.mpc b/TAO/tests/MProfile_Forwarding/MProfile_Forwarding.mpc
index d6f4df5acc4..e38b68ca361 100644
--- a/TAO/tests/MProfile_Forwarding/MProfile_Forwarding.mpc
+++ b/TAO/tests/MProfile_Forwarding/MProfile_Forwarding.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, minimum_corba {
project(*Client): taoclient, anytypecode, minimum_corba {
exename = client
- after += *Server
Source_Files {
testC.cpp
client.cpp
@@ -19,7 +18,6 @@ project(*Client): taoclient, anytypecode, minimum_corba {
project(*Manager): taoserver, minimum_corba, iormanip {
exename = manager
- after += *Client
Source_Files {
testC.cpp
Servant_Locator.cpp
diff --git a/TAO/tests/MProfile_Forwarding/Manager.cpp b/TAO/tests/MProfile_Forwarding/Manager.cpp
index 7336bc42523..625b9c8c052 100644
--- a/TAO/tests/MProfile_Forwarding/Manager.cpp
+++ b/TAO/tests/MProfile_Forwarding/Manager.cpp
@@ -6,6 +6,7 @@
#include "ace/SString.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
const char *first_ior = 0;
const char *second_ior = 0;
@@ -15,7 +16,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "a:b:c:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:b:c:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -50,9 +51,11 @@ parse_args (int argc, char *argv[])
int
-main (int argc,
- char *argv[])
+ACE_TMAIN (int argc,
+ ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
Manager manager;
@@ -60,12 +63,11 @@ main (int argc,
ACE_TRY
{
// Initilaize the ORB, POA etc.
- manager.init (argc,
- argv
+ manager.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
manager.activate_servant (ACE_ENV_SINGLE_ARG_PARAMETER);
@@ -280,7 +282,7 @@ Manager::make_iors_register (ACE_ENV_SINGLE_ARG_DECL)
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MProfile_Forwarding/client.cpp b/TAO/tests/MProfile_Forwarding/client.cpp
index 610899838a9..31c2d829d59 100644
--- a/TAO/tests/MProfile_Forwarding/client.cpp
+++ b/TAO/tests/MProfile_Forwarding/client.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
#include "testC.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, client, "$Id$")
@@ -12,7 +13,7 @@ const char *ior_input_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,17 +40,19 @@ run_test (Simple_Server_ptr server
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
CORBA::Object_var objref =
diff --git a/TAO/tests/MProfile_Forwarding/server.cpp b/TAO/tests/MProfile_Forwarding/server.cpp
index 04c27ae739f..0c473d95b42 100755
--- a/TAO/tests/MProfile_Forwarding/server.cpp
+++ b/TAO/tests/MProfile_Forwarding/server.cpp
@@ -4,6 +4,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, server, "$Id$")
@@ -12,7 +13,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -64,7 +67,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -82,7 +85,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MT_BiDir/MT_BiDir.mpc b/TAO/tests/MT_BiDir/MT_BiDir.mpc
index ab023c419a3..db3f6d32dbf 100644
--- a/TAO/tests/MT_BiDir/MT_BiDir.mpc
+++ b/TAO/tests/MT_BiDir/MT_BiDir.mpc
@@ -13,7 +13,6 @@ project(*Server): taoexe, portableserver, minimum_corba, bidir_giop {
}
project(*Client): taoexe, portableserver, minimum_corba, bidir_giop {
- after += *Server
Source_Files {
ReceiverC.cpp
ReceiverS.cpp
diff --git a/TAO/tests/MT_BiDir/Sender_i.h b/TAO/tests/MT_BiDir/Sender_i.h
index 91b4b729db0..cda5d4bf54e 100644
--- a/TAO/tests/MT_BiDir/Sender_i.h
+++ b/TAO/tests/MT_BiDir/Sender_i.h
@@ -1,6 +1,6 @@
-// -*- C++ -*-
//
// $Id$
+//
#ifndef MT_BIDIR_RECEIVER_H
#define MT_BIDIR_RECEIVER_H
@@ -8,9 +8,7 @@
#include "SenderS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/**
* Simply print count how many bytes were received.
diff --git a/TAO/tests/MT_BiDir/Server_Task.h b/TAO/tests/MT_BiDir/Server_Task.h
index 42686741b21..20d4142c2dd 100644
--- a/TAO/tests/MT_BiDir/Server_Task.h
+++ b/TAO/tests/MT_BiDir/Server_Task.h
@@ -16,10 +16,7 @@
#include "tao/ORB.h"
class Sender_i;
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the experiments using multiple threads.
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/MT_BiDir/client.cpp b/TAO/tests/MT_BiDir/client.cpp
index 23566a7d242..afe9c19c52b 100644
--- a/TAO/tests/MT_BiDir/client.cpp
+++ b/TAO/tests/MT_BiDir/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Receiver_i.h"
#include "SenderC.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
@@ -14,7 +15,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,17 +38,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/MT_BiDir/server.cpp b/TAO/tests/MT_BiDir/server.cpp
index 7aeeeecdbc8..d5c3ae6d26f 100644
--- a/TAO/tests/MT_BiDir/server.cpp
+++ b/TAO/tests/MT_BiDir/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Sender_i.h"
#include "tao/BiDir_GIOP/BiDirGIOP.h"
#include "tao/AnyTypeCode/Any.h"
@@ -23,7 +24,7 @@ static int no_clients = 2;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:i:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:i:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -55,15 +56,17 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
@@ -149,7 +152,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MT_Client/MT_Client.mpc b/TAO/tests/MT_Client/MT_Client.mpc
index 1974ade69bd..2d52b489a66 100644
--- a/TAO/tests/MT_Client/MT_Client.mpc
+++ b/TAO/tests/MT_Client/MT_Client.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/MT_Client/client.cpp b/TAO/tests/MT_Client/client.cpp
index aaab6575632..0bbd22344ac 100644
--- a/TAO/tests/MT_Client/client.cpp
+++ b/TAO/tests/MT_Client/client.cpp
@@ -4,6 +4,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, client, "$Id$")
@@ -15,7 +16,7 @@ int server_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -76,15 +77,17 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/MT_Client/orb_creation.cpp b/TAO/tests/MT_Client/orb_creation.cpp
index 6a6f1db233d..afeb58353a0 100644
--- a/TAO/tests/MT_Client/orb_creation.cpp
+++ b/TAO/tests/MT_Client/orb_creation.cpp
@@ -3,6 +3,7 @@
#include "testC.h"
#include "tao/debug.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Task.h"
ACE_RCSID(MT_Client, orb_creation, "$Id$")
@@ -14,7 +15,7 @@ int niterations = 5;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -69,15 +70,17 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "");
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "");
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
@@ -144,7 +147,7 @@ Client::svc (void)
CORBA::String_var argv0 = CORBA::string_dup ("dummy_argv");
char* argv[1] = { argv0.inout () };
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object =
diff --git a/TAO/tests/MT_Client/server.cpp b/TAO/tests/MT_Client/server.cpp
index bf5e6312642..ee5ece94ffa 100644
--- a/TAO/tests/MT_Client/server.cpp
+++ b/TAO/tests/MT_Client/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MT_Server/MT_Server.mpc b/TAO/tests/MT_Server/MT_Server.mpc
index bfb96e8b536..4c15c26f959 100644
--- a/TAO/tests/MT_Server/MT_Server.mpc
+++ b/TAO/tests/MT_Server/MT_Server.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/MT_Server/client.cpp b/TAO/tests/MT_Server/client.cpp
index 3948231f376..b84f7d4ff82 100644
--- a/TAO/tests/MT_Server/client.cpp
+++ b/TAO/tests/MT_Server/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
ACE_RCSID(MT_Server, client, "$Id$")
@@ -13,7 +14,7 @@ int do_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -46,15 +47,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/MT_Server/server.cpp b/TAO/tests/MT_Server/server.cpp
index 982fc2cbc28..9fafa11b188 100644
--- a/TAO/tests/MT_Server/server.cpp
+++ b/TAO/tests/MT_Server/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, server, "$Id$")
@@ -13,7 +14,7 @@ int nthreads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -61,12 +62,14 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -86,7 +89,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -104,7 +107,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/MT_Timeout/MT_Timeout.mpc b/TAO/tests/MT_Timeout/MT_Timeout.mpc
index 634030e4814..71d75c1743c 100644
--- a/TAO/tests/MT_Timeout/MT_Timeout.mpc
+++ b/TAO/tests/MT_Timeout/MT_Timeout.mpc
@@ -10,7 +10,6 @@ project(*Server): messaging, taoserver {
}
project(*Client): messaging, taoexe, portableserver {
- after += *Server
Source_Files {
TestC.cpp
Client_Task.cpp
diff --git a/TAO/tests/MT_Timeout/client.cpp b/TAO/tests/MT_Timeout/client.cpp
index 21262fc921d..d00712c2a34 100644
--- a/TAO/tests/MT_Timeout/client.cpp
+++ b/TAO/tests/MT_Timeout/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Client_Leaks, client, "$Id$")
@@ -12,7 +13,7 @@ int threads = 4;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -46,15 +47,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/MT_Timeout/server.cpp b/TAO/tests/MT_Timeout/server.cpp
index c3a5b91ae3e..9a48ddc7a06 100644
--- a/TAO/tests/MT_Timeout/server.cpp
+++ b/TAO/tests/MT_Timeout/server.cpp
@@ -3,6 +3,7 @@
#include "Sleep_Service.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Timeout, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Sleep_Service *sleep_service_impl;
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -91,7 +94,7 @@ main (int argc, char *argv[])
Server_Task server_task (ACE_Thread_Manager::instance (),
orb.in (),
- ACE_Time_Value(240));
+ 240);
if (server_task.activate (THR_NEW_LWP | THR_JOINABLE, 8, 1) == -1)
{
diff --git a/TAO/tests/Multiple/Multiple.mpc b/TAO/tests/Multiple/Multiple.mpc
index 47b388a8e0f..2584e88308f 100644
--- a/TAO/tests/Multiple/Multiple.mpc
+++ b/TAO/tests/Multiple/Multiple.mpc
@@ -13,7 +13,6 @@ project(*Server): taoserver {
project(*Client): taoexe, portableserver {
idlflags += -Gd
- after += *Server
Source_Files {
Multiple_Impl.cpp
diff --git a/TAO/tests/Multiple/client.cpp b/TAO/tests/Multiple/client.cpp
index 8a2d499abce..37dadd157cf 100644
--- a/TAO/tests/Multiple/client.cpp
+++ b/TAO/tests/Multiple/client.cpp
@@ -1,17 +1,20 @@
// $Id$
# include "Collocation_Tester.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (tests, client, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// ORB Initialization
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "TAO" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "TAO" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object;
diff --git a/TAO/tests/Multiple/server.cpp b/TAO/tests/Multiple/server.cpp
index fcaa75221f3..0b251b2bfd6 100644
--- a/TAO/tests/Multiple/server.cpp
+++ b/TAO/tests/Multiple/server.cpp
@@ -2,18 +2,20 @@
#include "Multiple_Impl.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (tests, server, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Orb Initialization
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "TAO" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "TAO" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var object;
@@ -49,7 +51,7 @@ int main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen ("s.ior", "w");
+ FILE *output_file= ACE_OS::fopen ("s.ior", ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Multiple_Inheritance/Multiple_Inheritance.mpc b/TAO/tests/Multiple_Inheritance/Multiple_Inheritance.mpc
index f818ca1c940..db84416b4cc 100644
--- a/TAO/tests/Multiple_Inheritance/Multiple_Inheritance.mpc
+++ b/TAO/tests/Multiple_Inheritance/Multiple_Inheritance.mpc
@@ -8,7 +8,6 @@ project(*Server): taoserver, utils {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
Multiple_InheritanceC.cpp
client.cpp
diff --git a/TAO/tests/Multiple_Inheritance/client.cpp b/TAO/tests/Multiple_Inheritance/client.cpp
index 8406386f614..9d9ef382b00 100644
--- a/TAO/tests/Multiple_Inheritance/client.cpp
+++ b/TAO/tests/Multiple_Inheritance/client.cpp
@@ -21,6 +21,7 @@
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Multiple_Inheritance, client, "$Id$")
@@ -30,7 +31,7 @@ static char *ior_input_file = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:f:");
int c;
while ((c = get_opts ()) != -1)
@@ -69,18 +70,20 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the command-line arguments to get the IOR
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
// If ior_input_file exists, Read the file, and get the IOR
// else, it must have been specified on the command line
diff --git a/TAO/tests/Multiple_Inheritance/server.cpp b/TAO/tests/Multiple_Inheritance/server.cpp
index d29978c9163..87645cb5598 100644
--- a/TAO/tests/Multiple_Inheritance/server.cpp
+++ b/TAO/tests/Multiple_Inheritance/server.cpp
@@ -5,6 +5,7 @@
#include "tao/Utils/ORB_Manager.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Multiple_Inheritance, server, "$Id$")
@@ -20,7 +21,7 @@ Multiple_Inheritance_i::Multiple_Inheritance_i (void)
int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -44,8 +45,10 @@ parse_args (int argc, char **argv)
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Multiple_Inheritance_i servant;
TAO_ORB_Manager orb_manager;
@@ -53,13 +56,12 @@ main (int argc, char **argv)
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- orb_manager.init_child_poa (argc,
- argv,
+ orb_manager.init_child_poa (convert.get_argc(), convert.get_ASCII_argv(),
"child_poa"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::String_var ior =
@@ -74,7 +76,7 @@ main (int argc, char **argv)
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Muxed_GIOP_Versions/Muxed_GIOP_Versions.mpc b/TAO/tests/Muxed_GIOP_Versions/Muxed_GIOP_Versions.mpc
index bfb96e8b536..4c15c26f959 100644
--- a/TAO/tests/Muxed_GIOP_Versions/Muxed_GIOP_Versions.mpc
+++ b/TAO/tests/Muxed_GIOP_Versions/Muxed_GIOP_Versions.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Muxed_GIOP_Versions/client.cpp b/TAO/tests/Muxed_GIOP_Versions/client.cpp
index 6a9cb60d163..0440c4eb180 100644
--- a/TAO/tests/Muxed_GIOP_Versions/client.cpp
+++ b/TAO/tests/Muxed_GIOP_Versions/client.cpp
@@ -4,6 +4,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, client, "client.cpp,v 1.16 2002/01/29 20:21:08 okellogg Exp")
@@ -16,7 +17,7 @@ int server_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "l:k:n:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "l:k:n:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -80,15 +81,17 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Muxed_GIOP_Versions/server.cpp b/TAO/tests/Muxed_GIOP_Versions/server.cpp
index e911f5aa83c..26137e62112 100644
--- a/TAO/tests/Muxed_GIOP_Versions/server.cpp
+++ b/TAO/tests/Muxed_GIOP_Versions/server.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ace/Synch_T.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Server, server, "server.cpp,v 1.7 2002/01/29 20:21:08 okellogg Exp")
@@ -17,7 +18,7 @@ int nclient_threads = nthreads;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "c:l:i:o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "c:l:i:o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -120,12 +121,14 @@ private:
/***************************************************/
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -145,7 +148,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i *server_impl = 0;
@@ -168,7 +171,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"(%P|%t) Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Muxing/Muxing.mpc b/TAO/tests/Muxing/Muxing.mpc
index 1d115e8dc19..2824b800b03 100644
--- a/TAO/tests/Muxing/Muxing.mpc
+++ b/TAO/tests/Muxing/Muxing.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
Client_Task.cpp
diff --git a/TAO/tests/Muxing/client.cpp b/TAO/tests/Muxing/client.cpp
index 01e0b962d78..9b1be08b07a 100644
--- a/TAO/tests/Muxing/client.cpp
+++ b/TAO/tests/Muxing/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Muxing, client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,15 +34,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Muxing/server.cpp b/TAO/tests/Muxing/server.cpp
index 06a120b2183..c467615ebdb 100644
--- a/TAO/tests/Muxing/server.cpp
+++ b/TAO/tests/Muxing/server.cpp
@@ -3,6 +3,7 @@
#include "Receiver.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Muxing, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Receiver *receiver_impl;
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Native_Exceptions/Native_Exceptions.mpc b/TAO/tests/Native_Exceptions/Native_Exceptions.mpc
index 1b292027ede..397406b1347 100644
--- a/TAO/tests/Native_Exceptions/Native_Exceptions.mpc
+++ b/TAO/tests/Native_Exceptions/Native_Exceptions.mpc
@@ -2,6 +2,7 @@
// $Id$
project(*Server): taoserver, anytypecode, exceptions {
+ idlflags = -Ge 0 -Sc -Sa -St
Source_Files {
test_i.cpp
server.cpp
@@ -9,7 +10,7 @@ project(*Server): taoserver, anytypecode, exceptions {
}
project(*Client): taoclient, anytypecode, exceptions {
- after += *Server
+ idlflags = -Ge 0 -Sc -Sa -St
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Native_Exceptions/client.cpp b/TAO/tests/Native_Exceptions/client.cpp
index 67811435ae2..7f7d110f6ca 100644
--- a/TAO/tests/Native_Exceptions/client.cpp
+++ b/TAO/tests/Native_Exceptions/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
ACE_RCSID(Native_Exceptions, client, "$Id$")
@@ -11,7 +12,7 @@ int niterations = 100;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,14 +41,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "");
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "");
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Native_Exceptions/server.cpp b/TAO/tests/Native_Exceptions/server.cpp
index 6e41137344e..5df8a0576f6 100644
--- a/TAO/tests/Native_Exceptions/server.cpp
+++ b/TAO/tests/Native_Exceptions/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Native_Exceptions, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "");
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "");
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA");
@@ -51,7 +54,7 @@ main (int argc, char *argv[])
PortableServer::POAManager_var poa_manager =
root_poa->the_POAManager ();
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -67,7 +70,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.mpc b/TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.mpc
index 35e6a89edfd..c8a1b7d2075 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.mpc
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/MT_Client_Test.mpc
@@ -1,15 +1,14 @@
// -*- MPC -*-
// $Id$
-project(*Nested_Upcall_Server): taoserver, utils {
+project(*Nested Upcall Server): taoserver, utils {
Source_Files {
MT_Object_i.cpp
server.cpp
}
}
-project(*Nested_Upcall_Client): taoexe, utils, portableserver {
- after += *Nested_Upcall_Server
+project(*Nested Upcall Client): taoexe, utils, portableserver {
Source_Files {
MT_Object_i.cpp
local_server.cpp
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/client.cpp b/TAO/tests/NestedUpcall/MT_Client_Test/client.cpp
index ba1c615cd55..59ba502b682 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/client.cpp
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/client.cpp
@@ -25,6 +25,7 @@
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_fcntl.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client_Test, client, "$Id$")
@@ -87,7 +88,7 @@ MT_Client::read_ior (char *filename)
int
MT_Client::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "df:g:h:i:n:s:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:g:h:i:n:s:");
int c;
int result;
@@ -285,15 +286,16 @@ MT_Client::init (int argc, char **argv,
// This function runs the test.
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
TAO_ORB_Manager orb_manager;
- int r = orb_manager.init (argc,
- argv
+ int r = orb_manager.init (convert.get_argc(), convert.get_ASCII_argv()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -308,15 +310,15 @@ main (int argc, char **argv)
int threads = 1;
for (i = 0; i < argc; i++)
- if (ACE_OS::strcmp (argv[i], "-n") == 0)
+ if (ACE_OS::strcmp (argv[i], ACE_TEXT("-n")) == 0)
threads = ACE_OS::atoi(argv[i + 1]);
// create a separate server thread
ACE_Thread_Manager server_thr_mgr;
// starting the server thread
MT_Server_Task *server = new MT_Server_Task (&server_thr_mgr,
- argc,
- argv,
+ convert.get_argc(),
+ convert.get_ASCII_argv(),
&orb_manager);
if (server->activate () != 0)
{
@@ -331,7 +333,7 @@ main (int argc, char **argv)
MT_Client_Task **clients = new MT_Client_Task*[threads];
for (i = 0; i < threads; i++)
- clients[i] = new MT_Client_Task (argc, argv, i);
+ clients[i] = new MT_Client_Task (convert.get_argc(), convert.get_ASCII_argv(), i);
for (i = 0; i < threads; i++)
if (clients[i]->activate () != 0)
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/client.h b/TAO/tests/NestedUpcall/MT_Client_Test/client.h
index 0422ed8d7aa..482c71c2f2b 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/client.h
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/client.h
@@ -21,6 +21,7 @@
#define MT_CLIENT_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/local_server.cpp b/TAO/tests/NestedUpcall/MT_Client_Test/local_server.cpp
index 36e81ffa7c3..078ced7852a 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/local_server.cpp
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/local_server.cpp
@@ -87,7 +87,7 @@ MT_Server::read_ior (char *filename)
int
MT_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "d:f:g:h:i:n:s:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "d:f:g:h:i:n:s:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/local_server.h b/TAO/tests/NestedUpcall/MT_Client_Test/local_server.h
index 01c4d33b760..bdd85598880 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/local_server.h
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/local_server.h
@@ -30,10 +30,9 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_ORB_Manager;
-TAO_END_VERSIONED_NAMESPACE_DECL
class MT_Server
{
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/server.cpp b/TAO/tests/NestedUpcall/MT_Client_Test/server.cpp
index c3e0377bee6..3a8020259a5 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/server.cpp
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/server.cpp
@@ -31,7 +31,7 @@ MT_Object_Server::MT_Object_Server (void)
int
MT_Object_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "do:m");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "do:m");
int c;
while ((c = get_opts ()) != -1)
@@ -41,7 +41,7 @@ MT_Object_Server::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
@@ -124,8 +124,10 @@ MT_Object_Server::~MT_Object_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
MT_Object_Server MT_Object_Server;
ACE_DEBUG ((LM_DEBUG,
@@ -134,7 +136,7 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int r = MT_Object_Server.init (argc,argv ACE_ENV_ARG_PARAMETER);
+ int r = MT_Object_Server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (r == -1)
diff --git a/TAO/tests/NestedUpcall/MT_Client_Test/server.h b/TAO/tests/NestedUpcall/MT_Client_Test/server.h
index 8d57cc0d23e..37d4369c2e4 100644
--- a/TAO/tests/NestedUpcall/MT_Client_Test/server.h
+++ b/TAO/tests/NestedUpcall/MT_Client_Test/server.h
@@ -22,6 +22,7 @@
#define MT_CLIENT_TEST_MT_OBJECT_SERVER_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tests/NestedUpcall/Simple/Simple.mpc b/TAO/tests/NestedUpcall/Simple/Simple.mpc
index 766f62db832..c809e1301ee 100644
--- a/TAO/tests/NestedUpcall/Simple/Simple.mpc
+++ b/TAO/tests/NestedUpcall/Simple/Simple.mpc
@@ -1,15 +1,14 @@
// -*- MPC -*-
// $Id$
-project(*Nested_Upcall_Server): taoexe, portableserver {
+project(*Nested Upcall Server): taoexe, portableserver {
Source_Files {
server_i.cpp
server.cpp
}
}
-project(*Nested_Upcall_Client): taoexe, portableserver {
- after += *Nested_Upcall_Server
+project(*Nested Upcall Client): taoexe, portableserver {
Source_Files {
client_i.cpp
client.cpp
diff --git a/TAO/tests/NestedUpcall/Simple/client.cpp b/TAO/tests/NestedUpcall/Simple/client.cpp
index 33dc4890f6a..22e8ce0c447 100644
--- a/TAO/tests/NestedUpcall/Simple/client.cpp
+++ b/TAO/tests/NestedUpcall/Simple/client.cpp
@@ -3,6 +3,7 @@
#include "client_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Simple, client, "$Id$")
@@ -67,7 +68,7 @@ static int
parse_args (int argc,
char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "qxn:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "qxn:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -113,19 +114,20 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc,
- argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/NestedUpcall/Simple/server.cpp b/TAO/tests/NestedUpcall/Simple/server.cpp
index f9f3763ca91..95db8076d74 100644
--- a/TAO/tests/NestedUpcall/Simple/server.cpp
+++ b/TAO/tests/NestedUpcall/Simple/server.cpp
@@ -3,6 +3,7 @@
#include "server_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Simple, server, "$Id$")
@@ -50,7 +51,7 @@ Server_Task::svc (void)
static int
write_ior_to_file (const char *ior)
{
- FILE *output_file = ACE_OS::fopen (ior_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output files for writing IOR: %s\n",
@@ -79,7 +80,7 @@ static int
parse_args (int argc,
char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "q:f:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "q:f:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -113,19 +114,20 @@ parse_args (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc,
- argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/NestedUpcall/Simple/simple-client.cpp b/TAO/tests/NestedUpcall/Simple/simple-client.cpp
index a014035dc5e..49096c9d7a9 100644
--- a/TAO/tests/NestedUpcall/Simple/simple-client.cpp
+++ b/TAO/tests/NestedUpcall/Simple/simple-client.cpp
@@ -3,6 +3,7 @@
#include "client_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Simple, client, "$Id$")
@@ -72,7 +73,7 @@ static int
parse_args (int argc,
char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "qxn:k:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "qxn:k:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -122,19 +123,20 @@ parse_args (int argc,
}
int
-main (int argc,
+ACE_TMAIN (int argc,
char **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc,
- argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/TT.mpc b/TAO/tests/NestedUpcall/Triangle_Test/TT.mpc
index e8b0864ecd5..7480edb1f1c 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/TT.mpc
+++ b/TAO/tests/NestedUpcall/Triangle_Test/TT.mpc
@@ -1,23 +1,21 @@
// -*- MPC -*-
// $Id$
-project(*Nested_Upcall_Server_A): taoexe, utils, portableserver {
+project(*Nested Upcall Server_A): taoexe, utils, portableserver {
Source_Files {
Object_A_i.cpp
server_A.cpp
}
}
-project(*Nested_Upcall_Server_B): taoexe, utils, portableserver {
- after += *Nested_Upcal_Server_A
+project(*Nested Upcall Server_B): taoexe, utils, portableserver {
Source_Files {
Object_B_i.cpp
server_B.cpp
}
}
-project(*Nested_Upcall_Initiator): taoexe, utils, portableserver {
- after += *Nested_Upcall_Server_B
+project(*Nested Upcall Initiator): taoexe, utils, portableserver {
Source_Files {
Initiator_i.cpp
initiator.cpp
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp b/TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp
index 6e653ca4040..75baea08e6a 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp
+++ b/TAO/tests/NestedUpcall/Triangle_Test/initiator.cpp
@@ -76,7 +76,7 @@ Initiator_Server::read_ior (char *filename, unsigned int A_B)
int
Initiator_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "df:g:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "df:g:");
int c, result;
while ((c = get_opts ()) != -1)
@@ -289,8 +289,10 @@ Initiator_Server::~Initiator_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DEBUG ((LM_DEBUG,
"\n \t NestedUpCalls.Triangle_Test: Initiator Server \n \n"));
@@ -300,7 +302,7 @@ main (int argc, char *argv[])
Initiator_Server initiator_Server;
int retval =
- initiator_Server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ initiator_Server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval == -1)
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/initiator.h b/TAO/tests/NestedUpcall/Triangle_Test/initiator.h
index 137f31e0dc6..6767a94dc09 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/initiator.h
+++ b/TAO/tests/NestedUpcall/Triangle_Test/initiator.h
@@ -22,6 +22,7 @@
#define _TRIANGLE_TEST_INITITATOR_SERVER_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp b/TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp
index 8ab9fe10dfe..038f5d4cc04 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp
+++ b/TAO/tests/NestedUpcall/Triangle_Test/server_A.cpp
@@ -31,7 +31,7 @@ Object_A_Server::Object_A_Server (void)
int
Object_A_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,7 +41,7 @@ Object_A_Server::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
@@ -118,8 +118,10 @@ Object_A_Server::~Object_A_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Object_A_Server object_A_Server;
ACE_DEBUG ((LM_DEBUG,
@@ -129,7 +131,7 @@ main (int argc, char *argv[])
ACE_TRY
{
int retval =
- object_A_Server.init (argc,argv ACE_ENV_ARG_PARAMETER);
+ object_A_Server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval == -1)
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/server_A.h b/TAO/tests/NestedUpcall/Triangle_Test/server_A.h
index 842cae01b00..1cbe49354d1 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/server_A.h
+++ b/TAO/tests/NestedUpcall/Triangle_Test/server_A.h
@@ -22,6 +22,7 @@
#define _TRIANGLE_TEST_OBJECT_A_SERVER_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp b/TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp
index 47837342aaa..617c682e34b 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp
+++ b/TAO/tests/NestedUpcall/Triangle_Test/server_B.cpp
@@ -31,7 +31,7 @@ Object_B_Server::Object_B_Server (void)
int
Object_B_Server::parse_args (void)
{
- ACE_Get_Opt get_opts (argc_, argv_, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (argc_, argv_, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,7 +41,7 @@ Object_B_Server::parse_args (void)
TAO_debug_level++;
break;
case 'o': // output the IOR to a file.
- this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), "w");
+ this->ior_output_file_ = ACE_OS::fopen (get_opts.opt_arg (), ACE_TEXT("w"));
if (this->ior_output_file_ == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Unable to open %s for writing: %p\n",
@@ -118,8 +118,10 @@ Object_B_Server::~Object_B_Server (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Object_B_Server object_B_Server;
ACE_DEBUG ((LM_DEBUG,
@@ -128,7 +130,7 @@ main (int argc, char *argv[])
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- int retval = object_B_Server.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ int retval = object_B_Server.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (retval == -1)
diff --git a/TAO/tests/NestedUpcall/Triangle_Test/server_B.h b/TAO/tests/NestedUpcall/Triangle_Test/server_B.h
index 3661f99bd71..95424f009b8 100644
--- a/TAO/tests/NestedUpcall/Triangle_Test/server_B.h
+++ b/TAO/tests/NestedUpcall/Triangle_Test/server_B.h
@@ -22,6 +22,7 @@
#define _TRIANGLE_TEST_OBJECT_B_SERVER_H
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
diff --git a/TAO/tests/Nested_Event_Loop/Nested_Event_Loop.mpc b/TAO/tests/Nested_Event_Loop/Nested_Event_Loop.mpc
index 50ef58ea252..47fc97557a4 100644
--- a/TAO/tests/Nested_Event_Loop/Nested_Event_Loop.mpc
+++ b/TAO/tests/Nested_Event_Loop/Nested_Event_Loop.mpc
@@ -9,7 +9,6 @@ project(*Server): strategies, taoexe, portableserver {
}
project(*Client): strategies, taoexe, portableserver {
- after += *Server
Source_Files {
test_i.cpp
client.cpp
diff --git a/TAO/tests/Nested_Event_Loop/client.cpp b/TAO/tests/Nested_Event_Loop/client.cpp
index ac198b31bd6..52984478707 100644
--- a/TAO/tests/Nested_Event_Loop/client.cpp
+++ b/TAO/tests/Nested_Event_Loop/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/Strategies/advanced_resource.h"
@@ -24,7 +25,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:d:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:d:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -68,22 +69,24 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/Nested_Event_Loop/server.cpp b/TAO/tests/Nested_Event_Loop/server.cpp
index 134bd31f46a..581c618b7bd 100644
--- a/TAO/tests/Nested_Event_Loop/server.cpp
+++ b/TAO/tests/Nested_Event_Loop/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "tao/Strategies/advanced_resource.h"
@@ -12,7 +13,7 @@ const char *ior_output_file = "ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,13 +37,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
server_i servant (orb.in ());
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.cpp b/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.cpp
index 2d1c7cbbb59..7f1b10dea24 100644
--- a/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.cpp
+++ b/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.cpp
@@ -10,11 +10,11 @@
ACE_RCSID(Nested_Upcall_Crash, Clock_Ticks, "$Id$")
-long
+int
Clock_Ticks::get_hz (void)
{
#if defined(_SC_CLK_TCK)
- long r = ACE_OS::sysconf(_SC_CLK_TCK);
+ int r = ACE_OS::sysconf(_SC_CLK_TCK);
if(r != -1)
return r;
#endif /* _SC_CLK_TCK */
diff --git a/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.h b/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.h
index 162dec87a9f..98e700da93b 100644
--- a/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.h
+++ b/TAO/tests/Nested_Upcall_Crash/Clock_Ticks.h
@@ -14,7 +14,7 @@
namespace Clock_Ticks
{
/// Return the number of clock ticks per second
- long get_hz (void);
+ int get_hz (void);
/// Return the number of microseconds per tick
int get_usecs_per_tick (void);
diff --git a/TAO/tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc b/TAO/tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc
index 68469dc0fff..ade0f5e574f 100644
--- a/TAO/tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc
+++ b/TAO/tests/Nested_Upcall_Crash/Nested_Upcall_Crash.mpc
@@ -15,7 +15,6 @@ project(*Server): taoserver, messaging {
project(*Scavenger): taoserver, messaging {
exename = scavenger
- after += *Server
Source_Files {
scavenger.cpp
}
@@ -23,7 +22,6 @@ project(*Scavenger): taoserver, messaging {
project(*Client): taoserver, messaging {
exename = client
- after += *Scavenger
Source_Files {
Clock_Ticks.cpp
Client_Peer.cpp
diff --git a/TAO/tests/Nested_Upcall_Crash/client.cpp b/TAO/tests/Nested_Upcall_Crash/client.cpp
index 0bafc403012..da732aee0c2 100644
--- a/TAO/tests/Nested_Upcall_Crash/client.cpp
+++ b/TAO/tests/Nested_Upcall_Crash/client.cpp
@@ -7,6 +7,7 @@
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Nested_Upcall_Crash, client, "$Id$")
@@ -30,12 +31,14 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -88,7 +91,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Client_Peer *impl;
@@ -155,7 +158,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Nested_Upcall_Crash/scavenger.cpp b/TAO/tests/Nested_Upcall_Crash/scavenger.cpp
index d2b7c7d3981..5091945dbde 100644
--- a/TAO/tests/Nested_Upcall_Crash/scavenger.cpp
+++ b/TAO/tests/Nested_Upcall_Crash/scavenger.cpp
@@ -5,6 +5,7 @@
#include "tao/AnyTypeCode/Any.h"
#include "tao/ORB_Core.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Nested_Upcall_Crash, scavenger, "$Id$")
@@ -14,14 +15,16 @@ int
parse_args (int argc, char *argv[]);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int ret_val = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -57,7 +60,7 @@ main (int argc, char *argv[])
policies[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
@@ -104,7 +107,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Nested_Upcall_Crash/server.cpp b/TAO/tests/Nested_Upcall_Crash/server.cpp
index 0b7eb0628fe..c1a244f1615 100644
--- a/TAO/tests/Nested_Upcall_Crash/server.cpp
+++ b/TAO/tests/Nested_Upcall_Crash/server.cpp
@@ -8,6 +8,7 @@
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
#include "ace/OS_NS_time.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Nested_Upcall_Crash,
server,
@@ -33,12 +34,14 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -94,7 +97,7 @@ main (int argc, char *argv[])
seed = (ACE_RANDR_TYPE) ACE_OS::gethrtime ();
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
ACE_DEBUG ((LM_DEBUG, "SEED = %u\n", seed));
@@ -115,7 +118,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -161,7 +164,7 @@ main (int argc, char *argv[])
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:s:b:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:s:b:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/No_Server_MT_Connect_Test/No_Server_Connect_Test.mpc b/TAO/tests/No_Server_MT_Connect_Test/No_Server_Connect_Test.mpc
index bfb96e8b536..4c15c26f959 100644
--- a/TAO/tests/No_Server_MT_Connect_Test/No_Server_Connect_Test.mpc
+++ b/TAO/tests/No_Server_MT_Connect_Test/No_Server_Connect_Test.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/No_Server_MT_Connect_Test/client.cpp b/TAO/tests/No_Server_MT_Connect_Test/client.cpp
index 4034e1245c9..b9eb181f305 100644
--- a/TAO/tests/No_Server_MT_Connect_Test/client.cpp
+++ b/TAO/tests/No_Server_MT_Connect_Test/client.cpp
@@ -4,6 +4,7 @@
#include "tao/debug.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, client, "$Id$")
@@ -15,7 +16,7 @@ int server_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -72,15 +73,17 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/No_Server_MT_Connect_Test/server.cpp b/TAO/tests/No_Server_MT_Connect_Test/server.cpp
index bf5e6312642..ee5ece94ffa 100644
--- a/TAO/tests/No_Server_MT_Connect_Test/server.cpp
+++ b/TAO/tests/No_Server_MT_Connect_Test/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(MT_Client, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/OBV/Any/AnyS_impl.cpp b/TAO/tests/OBV/Any/AnyS_impl.cpp
index aae537cf474..fa0778e6315 100644
--- a/TAO/tests/OBV/Any/AnyS_impl.cpp
+++ b/TAO/tests/OBV/Any/AnyS_impl.cpp
@@ -16,16 +16,15 @@ Test_impl::get_something (
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- CORBA::Any_ptr ret_val_ptr = 0;
- ACE_NEW_RETURN (ret_val_ptr, CORBA::Any, 0);
- CORBA::Any_var ret_val = ret_val_ptr;
+ CORBA::Any_var ret_val;
+ ACE_NEW_RETURN (ret_val, CORBA::Any, 0);
const CORBA::ULong magic = 3145;
if (need_vb)
{
OBV_AnyTest::VB_var vb;
- ACE_NEW_RETURN (vb.inout (), OBV_OBV_AnyTest::VB, 0);
+ ACE_NEW_RETURN (vb, OBV_OBV_AnyTest::VB, 0);
vb->id (magic);
@@ -34,7 +33,7 @@ Test_impl::get_something (
else
{
OBV_AnyTest::VA_var va;
- ACE_NEW_RETURN (va.inout (), OBV_OBV_AnyTest::VA, 0);
+ ACE_NEW_RETURN (va, OBV_OBV_AnyTest::VA, 0);
va->id (magic);
diff --git a/TAO/tests/OBV/Any/OBV_Any.mpc b/TAO/tests/OBV/Any/OBV_Any.mpc
index d49a9b37b23..568259acf4e 100644
--- a/TAO/tests/OBV/Any/OBV_Any.mpc
+++ b/TAO/tests/OBV/Any/OBV_Any.mpc
@@ -9,7 +9,6 @@ project(*Server): taoexe, portableserver, valuetype {
}
project(*Client): taoexe, valuetype {
- after += *Server
Source_Files {
AnyC.cpp
client.cpp
diff --git a/TAO/tests/OBV/Any/client.cpp b/TAO/tests/OBV/Any/client.cpp
index 9f03f474b9e..db5be17d3ea 100644
--- a/TAO/tests/OBV/Any/client.cpp
+++ b/TAO/tests/OBV/Any/client.cpp
@@ -2,6 +2,7 @@
#include "AnyC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Any, client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,18 +35,20 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - test started.\n"));
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Create and register factories.
@@ -94,8 +97,8 @@ main (int argc, char *argv[])
// Do local test
OBV_AnyTest::VA_var va1, va2;
- ACE_NEW_RETURN (va1.inout (), OBV_OBV_AnyTest::VA, 1);
- ACE_NEW_RETURN (va2.inout (), OBV_OBV_AnyTest::VA, 1);
+ ACE_NEW_RETURN (va1, OBV_OBV_AnyTest::VA, 1);
+ ACE_NEW_RETURN (va2, OBV_OBV_AnyTest::VA, 1);
const CORBA::ULong magic = 3145;
diff --git a/TAO/tests/OBV/Any/server.cpp b/TAO/tests/OBV/Any/server.cpp
index aadb21d4cd5..f16fe8a83a0 100644
--- a/TAO/tests/OBV/Any/server.cpp
+++ b/TAO/tests/OBV/Any/server.cpp
@@ -3,6 +3,7 @@
#include "AnyS_impl.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Any, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_impl *test_impl;
@@ -79,7 +82,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s.",
diff --git a/TAO/tests/OBV/Collocated/Forward/Client_Task.cpp b/TAO/tests/OBV/Collocated/Forward/Client_Task.cpp
index 3c8697e8415..e85e098ae6e 100644
--- a/TAO/tests/OBV/Collocated/Forward/Client_Task.cpp
+++ b/TAO/tests/OBV/Collocated/Forward/Client_Task.cpp
@@ -79,14 +79,14 @@ Client_Task::svc (void)
// Now build simple graph (tree in our case).
TreeController_var tc;
- ACE_NEW_RETURN (tc.inout (),
+ ACE_NEW_RETURN (tc,
OBV_TreeController,
1);
// Create the root node.
{
StringNode_var sn;
- ACE_NEW_RETURN (sn.inout (),
+ ACE_NEW_RETURN (sn,
OBV_StringNode,
1);
sn->name ((const char*)("RootNode"));
@@ -95,7 +95,7 @@ Client_Task::svc (void)
// Create the left leaf.
{
StringNode_var dummy;
- ACE_NEW_RETURN (dummy.inout (),
+ ACE_NEW_RETURN (dummy,
OBV_StringNode,
1);
dummy->name ((const char*)("LeftNode"));
@@ -105,7 +105,7 @@ Client_Task::svc (void)
// Create the right leaf.
{
StringNode_var dummy;
- ACE_NEW_RETURN (dummy.inout (),
+ ACE_NEW_RETURN (dummy,
OBV_StringNode,
1);
dummy->name ((const char*)("RightNode"));
@@ -118,14 +118,14 @@ Client_Task::svc (void)
// Make copy
TreeController_var tc_copy;
- ACE_NEW_RETURN (tc_copy.inout (),
+ ACE_NEW_RETURN (tc_copy,
OBV_TreeController,
1);
// Create the root node.
{
StringNode_var sn;
- ACE_NEW_RETURN (sn.inout (),
+ ACE_NEW_RETURN (sn,
OBV_StringNode,
1);
sn->name ((const char*)("RootNode"));
@@ -134,7 +134,7 @@ Client_Task::svc (void)
// Create the left leaf.
{
StringNode_var dummy;
- ACE_NEW_RETURN (dummy.inout (),
+ ACE_NEW_RETURN (dummy,
OBV_StringNode,
1);
dummy->name ((const char*)("LeftNode"));
@@ -144,7 +144,7 @@ Client_Task::svc (void)
// Create the right leaf.
{
StringNode_var dummy;
- ACE_NEW_RETURN (dummy.inout (),
+ ACE_NEW_RETURN (dummy,
OBV_StringNode,
1);
dummy->name ((const char*)("RightNode"));
@@ -164,7 +164,7 @@ Client_Task::svc (void)
TreeController_var tc_result =
test->reflect (tc.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
-
+
// The following two ifs will fail until bug 1390 is fixed.
if (is_equal_tree (tc.in (), tc_result.in ()))
{
diff --git a/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp b/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp
index be09bb0c6db..a95296343b2 100644
--- a/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp
+++ b/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp
@@ -14,7 +14,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o:n");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o:n");
int c;
while ((c = get_opts ()) != -1)
@@ -41,19 +41,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -74,10 +74,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/OBV/Collocated/Forward/Server_Task.cpp b/TAO/tests/OBV/Collocated/Forward/Server_Task.cpp
index 79efb6141fb..a7f1f49e0dc 100644
--- a/TAO/tests/OBV/Collocated/Forward/Server_Task.cpp
+++ b/TAO/tests/OBV/Collocated/Forward/Server_Task.cpp
@@ -98,7 +98,7 @@ Server_Task::svc (void)
ACE_TRY_CHECK;
// If the this->output_ exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (this->output_, "w");
+ FILE *output_file= ACE_OS::fopen (this->output_, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/OBV/Collocated/Forward/Server_Task.h b/TAO/tests/OBV/Collocated/Forward/Server_Task.h
index 60006aae0ba..4f2307adc30 100644
--- a/TAO/tests/OBV/Collocated/Forward/Server_Task.h
+++ b/TAO/tests/OBV/Collocated/Forward/Server_Task.h
@@ -15,9 +15,7 @@
#include "tao/ORB.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/OBV/Factory/OBV_Factory.mpc b/TAO/tests/OBV/Factory/OBV_Factory.mpc
index e257b945987..cc812c1eebe 100644
--- a/TAO/tests/OBV/Factory/OBV_Factory.mpc
+++ b/TAO/tests/OBV/Factory/OBV_Factory.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Server): taoserver, valuetype {
+project(*Server): taoexe, portableserver, valuetype {
Source_Files {
FactoryC_impl.cpp
FactoryS_impl.cpp
@@ -9,8 +9,7 @@ project(*Server): taoserver, valuetype {
}
}
-project(*Client): taoclient, valuetype {
- after += *Server
+project(*Client): taoexe, valuetype {
Source_Files {
FactoryC.cpp
FactoryC_impl.cpp
diff --git a/TAO/tests/OBV/Factory/client.cpp b/TAO/tests/OBV/Factory/client.cpp
index 2b6a232470a..187913bb64f 100644
--- a/TAO/tests/OBV/Factory/client.cpp
+++ b/TAO/tests/OBV/Factory/client.cpp
@@ -3,6 +3,7 @@
#include "FactoryC.h"
#include "FactoryC_impl.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Factory, client, "$Id$")
@@ -11,7 +12,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,74 +35,22 @@ parse_args (int argc, char *argv[])
return 0;
}
-bool
-no_factory (OBV_FactoryTest::Test_ptr test)
-{
- bool succeed = false;
- ACE_TRY_NEW_ENV
- {
- // Calling this without a factory registred should give a marshal
- // exception with minor code 1
- OBV_FactoryTest::BaseValue_var base_value =
- test->get_base_value (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (CORBA::MARSHAL, ex)
- {
- if ((ex.minor() & 0xFFFU) == 1)
- {
- succeed = true;
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
-
- if (!succeed)
- {
- ACE_ERROR ((LM_ERROR,
- "(%t) ERROR, no_factory failed\n"));
- }
-
- return succeed;
-}
-
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
- return 1;
-
- // Obtain reference to the object
- CORBA::Object_var tmp =
- orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- OBV_FactoryTest::Test_var test =
- OBV_FactoryTest::Test::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (test.in ()))
- {
- ACE_ERROR_RETURN ((LM_DEBUG,
- "Nil OBV_FactoryTest::Test reference <%s>\n",
- ior),
- 1);
- }
-
- // Check if we get the correct exception with minor code because no
- // factory has been set.
- if (!no_factory (test.in ()))
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Create factories.
+
OBV_FactoryTest::BaseValue_init *base_factory = 0;
ACE_NEW_RETURN (base_factory,
OBV_FactoryTest::BaseValue_init,
@@ -113,6 +62,8 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
base_factory->_remove_ref (); // release ownership
+
+
OBV_FactoryTest::Value1_init *value1_factory = 0;
ACE_NEW_RETURN (value1_factory,
OBV_FactoryTest::Value1_init,
@@ -124,6 +75,8 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
value1_factory->_remove_ref ();
+
+
OBV_FactoryTest::Value2_init *value2_factory = 0;
ACE_NEW_RETURN (value2_factory,
Value2_init_impl,
@@ -135,6 +88,24 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
value2_factory->_remove_ref ();
+
+ // Obtain reference to the object
+ CORBA::Object_var tmp =
+ orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ OBV_FactoryTest::Test_var test =
+ OBV_FactoryTest::Test::_narrow(tmp.in () ACE_ENV_ARG_PARAMETER);
+ ACE_TRY_CHECK;
+
+ if (CORBA::is_nil (test.in ()))
+ {
+ ACE_ERROR_RETURN ((LM_DEBUG,
+ "Nil OBV_FactoryTest::Test reference <%s>\n",
+ ior),
+ 1);
+ }
+
// Now perform the test. I don't check return values.
// I just hope to get MARSHAL.
OBV_FactoryTest::BaseValue_var base_value =
diff --git a/TAO/tests/OBV/Factory/server.cpp b/TAO/tests/OBV/Factory/server.cpp
index 5f6788e57d4..abca3cf7603 100644
--- a/TAO/tests/OBV/Factory/server.cpp
+++ b/TAO/tests/OBV/Factory/server.cpp
@@ -3,6 +3,7 @@
#include "FactoryS_impl.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Factory, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_impl *test_impl;
@@ -79,7 +82,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/OBV/Forward/OBV_Forward.mpc b/TAO/tests/OBV/Forward/OBV_Forward.mpc
index ee6e2623910..a2e1bc181e0 100644
--- a/TAO/tests/OBV/Forward/OBV_Forward.mpc
+++ b/TAO/tests/OBV/Forward/OBV_Forward.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Server): taoserver, valuetype {
+project(*Server): taoexe, portableserver, valuetype {
IDL_Files {
TreeBase.idl
TreeController.idl
@@ -13,8 +13,7 @@ project(*Server): taoserver, valuetype {
}
}
-project(*Client): taoclient, valuetype {
- after += *Server
+project(*Client): taoexe, valuetype {
Source_Files {
TreeBaseC.cpp
TreeControllerC.cpp
diff --git a/TAO/tests/OBV/Forward/client.cpp b/TAO/tests/OBV/Forward/client.cpp
index b61d1544147..0ef9d60f494 100644
--- a/TAO/tests/OBV/Forward/client.cpp
+++ b/TAO/tests/OBV/Forward/client.cpp
@@ -6,6 +6,7 @@
#include "TreeNodeC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Forward, client, "$Id$")
@@ -14,7 +15,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -80,15 +81,17 @@ dump_tree (TreeController *tc)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// All factories are kindly provided by
@@ -151,14 +154,14 @@ main (int argc, char *argv[])
// Now build simple graph (tree in our case).
TreeController_var tc;
- ACE_NEW_RETURN (tc.inout (),
+ ACE_NEW_RETURN (tc,
OBV_TreeController,
1);
// Create the root node.
{
StringNode_var sn;
- ACE_NEW_RETURN (sn.inout (),
+ ACE_NEW_RETURN (sn,
OBV_StringNode,
1);
sn->name ((const char*)("RootNode"));
@@ -167,7 +170,7 @@ main (int argc, char *argv[])
// Create the left leaf.
{
StringNode_var dummy;
- ACE_NEW_RETURN (dummy.inout (),
+ ACE_NEW_RETURN (dummy,
OBV_StringNode,
1);
dummy->name ((const char*)("LeftNode"));
@@ -177,7 +180,7 @@ main (int argc, char *argv[])
// Create the right leaf.
{
StringNode_var dummy;
- ACE_NEW_RETURN (dummy.inout (),
+ ACE_NEW_RETURN (dummy,
OBV_StringNode,
1);
dummy->name ((const char*)("RightNode"));
diff --git a/TAO/tests/OBV/Forward/server.cpp b/TAO/tests/OBV/Forward/server.cpp
index bf17c26cc87..74ddd5cdfd2 100644
--- a/TAO/tests/OBV/Forward/server.cpp
+++ b/TAO/tests/OBV/Forward/server.cpp
@@ -7,6 +7,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Forward, server, "$Id$")
@@ -15,7 +16,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,12 +40,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// All factories are kindly provided by
@@ -105,7 +108,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_impl *test_impl;
@@ -123,7 +126,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/OBV/Supports/Supports_Test.mpc b/TAO/tests/OBV/Supports/Supports_Test.mpc
index 7d9df51c0b7..3de931f13dd 100644
--- a/TAO/tests/OBV/Supports/Supports_Test.mpc
+++ b/TAO/tests/OBV/Supports/Supports_Test.mpc
@@ -1,6 +1,7 @@
// $Id$
project(*Server): taoserver, valuetype, strategies {
+ exename = server
// This is just a dummy_label to prevent the test from being compiled
// in MPC builds
requires += dummy_label
@@ -19,7 +20,6 @@ project(*Server): taoserver, valuetype, strategies {
project(*Client): taoclient, taoserver, valuetype {
exename = client
- after += *Server
// This is just a dummy_label to prevent the test from being compiled
// in MPC builds
requires += dummy_label
diff --git a/TAO/tests/OBV/Supports/Supports_Test_impl.h b/TAO/tests/OBV/Supports/Supports_Test_impl.h
index 9d0932b1d87..8fed369a9ab 100644
--- a/TAO/tests/OBV/Supports/Supports_Test_impl.h
+++ b/TAO/tests/OBV/Supports/Supports_Test_impl.h
@@ -5,6 +5,7 @@
#include "Supports_TestS.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
/**
* \class node_impl
diff --git a/TAO/tests/OBV/Supports/client.cpp b/TAO/tests/OBV/Supports/client.cpp
index 076d397dfa4..b04321e8fb7 100644
--- a/TAO/tests/OBV/Supports/client.cpp
+++ b/TAO/tests/OBV/Supports/client.cpp
@@ -9,7 +9,7 @@ int id = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,15 +37,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/OBV/Supports/server.cpp b/TAO/tests/OBV/Supports/server.cpp
index f92eee137c5..189dbdc8da8 100644
--- a/TAO/tests/OBV/Supports/server.cpp
+++ b/TAO/tests/OBV/Supports/server.cpp
@@ -6,12 +6,14 @@
const char * ior_output_file = "test.ior";
int
-main (int argc, char * argv[])
+ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object = orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
@@ -62,7 +64,7 @@ main (int argc, char * argv[])
CORBA::String_var ior = orb->object_to_string (a_test ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE * output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE * output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0) ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output file for writing IOR: %s", ior_output_file), 1);
diff --git a/TAO/tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc b/TAO/tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc
index f9e3d32dc18..ac045461c97 100644
--- a/TAO/tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc
+++ b/TAO/tests/OBV/TC_Alignment/OBV_TC_Alignment.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Server): taoserver, valuetype {
+project(*Server): taoexe, portableserver, valuetype {
Source_Files {
testS.cpp
testC.cpp
@@ -10,8 +10,7 @@ project(*Server): taoserver, valuetype {
}
}
-project(*Client): taoclient, valuetype {
- after += *Server
+project(*Client): taoexe, valuetype {
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/OBV/TC_Alignment/client.cpp b/TAO/tests/OBV/TC_Alignment/client.cpp
index 25da5405c51..6dddb8bb67d 100644
--- a/TAO/tests/OBV/TC_Alignment/client.cpp
+++ b/TAO/tests/OBV/TC_Alignment/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (TC_Alignment,
client,
@@ -126,7 +127,7 @@ run_test (test_ptr objref,
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "dk:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "dk:x");
int c;
while ((c = get_opts ()) != -1)
@@ -160,17 +161,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
{
return 1;
}
diff --git a/TAO/tests/OBV/TC_Alignment/server.cpp b/TAO/tests/OBV/TC_Alignment/server.cpp
index ba59b23fa58..7f1cc43354d 100644
--- a/TAO/tests/OBV/TC_Alignment/server.cpp
+++ b/TAO/tests/OBV/TC_Alignment/server.cpp
@@ -2,6 +2,7 @@
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (TC_Alignment,
server,
@@ -10,13 +11,15 @@ ACE_RCSID (TC_Alignment,
const char *ior_output_file = "test.ior";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
{
diff --git a/TAO/tests/OBV/TC_Alignment/test_i.cpp b/TAO/tests/OBV/TC_Alignment/test_i.cpp
index b495f0bd3c1..daa27007ebd 100644
--- a/TAO/tests/OBV/TC_Alignment/test_i.cpp
+++ b/TAO/tests/OBV/TC_Alignment/test_i.cpp
@@ -2,8 +2,8 @@
#include "test_i.h"
-ACE_RCSID (TC_Alignment,
- test_i,
+ACE_RCSID (TC_Alignment,
+ test_i,
"$Id$")
test_i::test_i (CORBA::ORB_ptr orb)
@@ -16,11 +16,10 @@ test_i::get_value (CORBA::Long offset
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- CORBA::Any_ptr retval_ptr = 0;
- ACE_NEW_THROW_EX (retval_ptr,
+ CORBA::Any_var retval;
+ ACE_NEW_THROW_EX (retval,
CORBA::Any,
CORBA::NO_MEMORY ());
- CORBA::Any_var retval = retval_ptr;
switch (offset)
{
@@ -75,5 +74,5 @@ void
test_i::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- this->orb_->shutdown ();
+ this->orb_->destroy ();
}
diff --git a/TAO/tests/OBV/ValueBox/Test_impl.cpp b/TAO/tests/OBV/ValueBox/Test_impl.cpp
index 2c74111f3f3..de55b910cc5 100644
--- a/TAO/tests/OBV/ValueBox/Test_impl.cpp
+++ b/TAO/tests/OBV/ValueBox/Test_impl.cpp
@@ -268,7 +268,7 @@ Test_impl::array_op1 (::VBlongarray * p1,
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- long array_len = sizeof(LongArray) / sizeof(CORBA::Long);
+ long array_len = sizeof(LongArray) / sizeof(long);
for (long i=0; i<array_len; i++)
{
@@ -294,7 +294,7 @@ Test_impl::array_op2 (const ::LongArray p1,
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- long array_len = sizeof(LongArray) / sizeof(CORBA::Long);
+ long array_len = sizeof(LongArray) / sizeof(long);
long i;
for (i=0; i<array_len; i++)
diff --git a/TAO/tests/OBV/ValueBox/client.cpp b/TAO/tests/OBV/ValueBox/client.cpp
index 27e63f25ec2..d7f198751d3 100644
--- a/TAO/tests/OBV/ValueBox/client.cpp
+++ b/TAO/tests/OBV/ValueBox/client.cpp
@@ -2,6 +2,7 @@
#include "valueboxC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(ValueBox,
client,
@@ -13,7 +14,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -545,7 +546,7 @@ int test_boxed_sequence (void)
VBseqlong (),
1);
- VBseqlong *temp = 0;
+ VBseqlong *temp;
ACE_NEW_RETURN (temp,
VBseqlong (),
1);
@@ -562,7 +563,7 @@ int test_boxed_sequence (void)
longarray[2] = 303;
// Create a sequence
- TDseqlong *temp2 = 0;
+ TDseqlong *temp2;
ACE_NEW_RETURN (temp2,
TDseqlong(10, 3, longarray, 1),
1);
@@ -610,6 +611,7 @@ int test_boxed_sequence (void)
// release
vbseqlong1->_remove_ref ();
+ vbseqlong3->_remove_ref ();
vbseqlong4->_remove_ref ();
return fail;
@@ -729,11 +731,10 @@ int test_boxed_struct (void)
1);
// Test boxed copy ctor.
- VBfixed_struct1* valuebox2_ptr = 0;
- ACE_NEW_RETURN (valuebox2_ptr,
+ VBfixed_struct1_var valuebox2;
+ ACE_NEW_RETURN (valuebox2,
VBfixed_struct1 (*valuebox1),
1);
- VBfixed_struct1_var valuebox2 = valuebox2_ptr;
VERIFY (valuebox1->l () == valuebox2->l ());
VERIFY ((valuebox1->abstruct ()).s1 == (valuebox2->abstruct ()).s1 );
@@ -792,8 +793,9 @@ int test_boxed_struct (void)
}
//
- // valuebox1 and valuebox3 must be explicitly removed.
+ // valuebox1, valuebox2, and valuebox3 must be explicitly removed.
CORBA::remove_ref (valuebox1);
+ CORBA::remove_ref (valuebox2);
CORBA::remove_ref (valuebox3);
//
@@ -1440,19 +1442,20 @@ int test_boxed_union_invocations (Test * test_object)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Test_var test_object;
CORBA::ORB_var orb;
-
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY_EX (init)
{
- orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK_EX (init);
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Obtain reference to the object.
diff --git a/TAO/tests/OBV/ValueBox/server.cpp b/TAO/tests/OBV/ValueBox/server.cpp
index 4eaa84c6db0..a3b3911538f 100644
--- a/TAO/tests/OBV/ValueBox/server.cpp
+++ b/TAO/tests/OBV/ValueBox/server.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(ValueBox,
server,
@@ -14,7 +15,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,12 +39,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -63,7 +66,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_impl *test_impl;
@@ -81,7 +84,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/OBV/ValueBox/valuebox.mpc b/TAO/tests/OBV/ValueBox/valuebox.mpc
index 64145b1880f..9d07560ab99 100644
--- a/TAO/tests/OBV/ValueBox/valuebox.mpc
+++ b/TAO/tests/OBV/ValueBox/valuebox.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project(*Server): taoserver, valuetype {
+project(*Server): taoexe, portableserver, valuetype {
IDL_Files {
vb_basic.idl
vb_struct.idl
@@ -22,8 +22,7 @@ project(*Server): taoserver, valuetype {
}
}
-project(*Client): taoclient, valuetype {
- after += *Server
+project(*Client): taoexe, valuetype {
Source_Files {
vb_basicC.cpp
vb_structC.cpp
diff --git a/TAO/tests/ORB_destroy/ORB_destroy.cpp b/TAO/tests/ORB_destroy/ORB_destroy.cpp
index a1d4a89b03e..fa42a5dc9b5 100644
--- a/TAO/tests/ORB_destroy/ORB_destroy.cpp
+++ b/TAO/tests/ORB_destroy/ORB_destroy.cpp
@@ -20,6 +20,7 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(ORB_destroy, ORB_destroy, "$Id$")
@@ -136,66 +137,68 @@ test_with_funky_poa_manager (int argc,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int result = 0;
- result = test_with_regular_poa_manager (argc, argv,
+ result = test_with_regular_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_nothing_with_poa_manager",
0, 0);
ACE_ASSERT (result == 0);
- result = test_with_regular_poa_manager (argc, argv,
+ result = test_with_regular_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_poa_with_poa_manager",
0, 1);
ACE_ASSERT (result == 0);
- result = test_with_regular_poa_manager (argc, argv,
+ result = test_with_regular_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_orb_with_poa_manager",
1, 0);
ACE_ASSERT (result == 0);
- result = test_with_regular_poa_manager (argc, argv,
+ result = test_with_regular_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_poa_and_orb_with_poa_manager",
1, 1);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_nothing_without_poa_manager",
0, 0, 0);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_poa_without_poa_manager",
0, 1, 0);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_orb_without_poa_manager",
1, 0, 0);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_poa_and_orb_without_poa_manager",
1, 1, 0);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_nothing_with_funky_poa_manager",
0, 0, 1);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_poa_with_funky_poa_manager",
0, 1, 1);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_orb_with_funky_poa_manager",
1, 0, 1);
ACE_ASSERT (result == 0);
- result = test_with_funky_poa_manager (argc, argv,
+ result = test_with_funky_poa_manager (convert.get_argc(), convert.get_ASCII_argv(),
"destroy_poa_and_orb_with_funky_poa_manager",
1, 1, 1);
ACE_ASSERT (result == 0);
diff --git a/TAO/tests/ORB_init/ORB_init.cpp b/TAO/tests/ORB_init/ORB_init.cpp
index 345f699a8eb..a64fe55a4b2 100644
--- a/TAO/tests/ORB_init/ORB_init.cpp
+++ b/TAO/tests/ORB_init/ORB_init.cpp
@@ -6,6 +6,7 @@
#include "tao/SystemException.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ORB_init,
ORB_init,
@@ -19,8 +20,10 @@ static const char IOR[] =
"IOR:010000001600000049444c3a43756269745f466163746f72793a312e30000000010000000000000090000000010102cd14000000616e647572696c2e6563652e7563692e6564750057fecdcd2d00000014010f004e5550000000130000000001000000006368696c645f706f61000000000001000000666163746f7279cdcdcd03000000000000000800000001cdcdcd004f4154010000001400000001cdcdcd01000100000000000901010000000000004f41540400000001cd0000";
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb;
ACE_DECLARE_NEW_CORBA_ENV;
@@ -31,7 +34,7 @@ main (int argc, char *argv[])
CORBA::ORB_ptr my_orb = CORBA::ORB::_nil();
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, orbid ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), orbid ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
my_orb = orb.in ();
@@ -48,7 +51,7 @@ main (int argc, char *argv[])
// used in that scope.
// -------------------------------------------------------------
- orb = CORBA::ORB_init (argc, argv, orbid ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), orbid ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// This isn't portable, but TAO implements an ORB_ptr as a
@@ -86,7 +89,7 @@ main (int argc, char *argv[])
orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb = CORBA::ORB_init (argc, argv, orbid ACE_ENV_ARG_PARAMETER);
+ orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), orbid ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// This isn't portable, but TAO implements an ORB_ptr as a
@@ -131,11 +134,11 @@ main (int argc, char *argv[])
// clean-up.
// -------------------------------------------------------------
CORBA::ORB_var orb2 =
- CORBA::ORB_init (argc, argv, "ORB number 2" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "ORB number 2" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::ORB_var orb3 =
- CORBA::ORB_init (argc, argv, "ORB number 3" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "ORB number 3" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// -------------------------------------------------------------
diff --git a/TAO/tests/ORB_init/Portspan/server.cpp b/TAO/tests/ORB_init/Portspan/server.cpp
index e93543879ed..91c160c3fec 100644
--- a/TAO/tests/ORB_init/Portspan/server.cpp
+++ b/TAO/tests/ORB_init/Portspan/server.cpp
@@ -1,14 +1,17 @@
// $Id$
#include "simpleI.h"
+#include "ace/Argv_Type_Converter.h"
int
-main( int argc, char *argv[] )
+ACE_TMAIN( int argc, ACE_TCHAR *argv[] )
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, ""
+ CORBA::ORB_var orb = CORBA::ORB_init(convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/ORB_shutdown/server.cpp b/TAO/tests/ORB_shutdown/server.cpp
index 1ab5469ae50..3b76f18f439 100644
--- a/TAO/tests/ORB_shutdown/server.cpp
+++ b/TAO/tests/ORB_shutdown/server.cpp
@@ -3,18 +3,21 @@
#include "Foo_Bar.h"
#include "ace/Time_Value.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Hello,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/ORT/ORT_test_IORInterceptor.h b/TAO/tests/ORT/ORT_test_IORInterceptor.h
index 65ef1bf0f4e..cdea1c0d380 100644
--- a/TAO/tests/ORT/ORT_test_IORInterceptor.h
+++ b/TAO/tests/ORT/ORT_test_IORInterceptor.h
@@ -31,7 +31,7 @@
#endif /* _MSC_VER */
class ORT_test_IORInterceptor
- : public virtual PortableInterceptor::IORInterceptor_3_0,
+ : public virtual PortableInterceptor::IORInterceptor,
public virtual TAO_Local_RefCounted_Object
{
public:
diff --git a/TAO/tests/ORT/ServerRequestInterceptor.cpp b/TAO/tests/ORT/ServerRequestInterceptor.cpp
index 831c09fa69f..4a75bc70ec4 100644
--- a/TAO/tests/ORT/ServerRequestInterceptor.cpp
+++ b/TAO/tests/ORT/ServerRequestInterceptor.cpp
@@ -115,7 +115,7 @@ ServerRequestInterceptor::receive_request (
// Make sure the name of the RootPOA is the first in the AdapterName
// sequence.
- ACE_ASSERT (ACE_OS::strcmp ("RootPOA", name[(CORBA::ULong) 0]) == 0);
+ ACE_ASSERT (ACE_OS::strcmp ("RootPOA", name[(CORBA::ULong) 0].in()) == 0);
CORBA::String_var orb_id = ri->orb_id (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
diff --git a/TAO/tests/ORT/client.cpp b/TAO/tests/ORT/client.cpp
index a1f0d2219a7..3c883a87b1a 100644
--- a/TAO/tests/ORT/client.cpp
+++ b/TAO/tests/ORT/client.cpp
@@ -3,6 +3,7 @@
#include "ORT_testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ORT,
client,
@@ -13,7 +14,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,16 +35,18 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "client_sum_orb" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "client_sum_orb" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var obj =
diff --git a/TAO/tests/ORT/server.cpp b/TAO/tests/ORT/server.cpp
index d8656cc7c94..373f1dbbb05 100644
--- a/TAO/tests/ORT/server.cpp
+++ b/TAO/tests/ORT/server.cpp
@@ -5,6 +5,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (ORT,
server,
@@ -16,7 +17,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,8 +40,10 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -57,13 +60,13 @@ int main (int argc, char *argv[])
ACE_TRY_CHECK;
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"ORT Test ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::Object_var obj =
@@ -144,7 +147,7 @@ int main (int argc, char *argv[])
// Dump it to a file.
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing "
diff --git a/TAO/tests/Object_Loader/Loader.cpp b/TAO/tests/Object_Loader/Loader.cpp
index 73ae41e115f..6b1ae9300b5 100644
--- a/TAO/tests/Object_Loader/Loader.cpp
+++ b/TAO/tests/Object_Loader/Loader.cpp
@@ -12,7 +12,7 @@ Loader::Loader (void)
CORBA::Object_ptr
Loader::create_object (CORBA::ORB_ptr orb,
int,
- char * []
+ ACE_TCHAR * []
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
diff --git a/TAO/tests/Object_Loader/Loader.h b/TAO/tests/Object_Loader/Loader.h
index 73b4c5708f4..f9620f082da 100644
--- a/TAO/tests/Object_Loader/Loader.h
+++ b/TAO/tests/Object_Loader/Loader.h
@@ -32,7 +32,7 @@ public:
virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
int argc,
- char *argv []
+ ACE_TCHAR *argv []
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException));
// Create a new instance
diff --git a/TAO/tests/Object_Loader/Object_Loader.mpc b/TAO/tests/Object_Loader/Object_Loader.mpc
index a008ebf89a3..93ce5b41681 100644
--- a/TAO/tests/Object_Loader/Object_Loader.mpc
+++ b/TAO/tests/Object_Loader/Object_Loader.mpc
@@ -12,7 +12,6 @@ project(*Test): taolib_with_idl, portableserver {
}
project(*Driver): taoexe, portableserver {
- after += *Test
Source_Files {
TestC.cpp
driver.cpp
diff --git a/TAO/tests/Object_Loader/driver.cpp b/TAO/tests/Object_Loader/driver.cpp
index e7e9b391e0d..36a4ed78746 100644
--- a/TAO/tests/Object_Loader/driver.cpp
+++ b/TAO/tests/Object_Loader/driver.cpp
@@ -9,7 +9,7 @@
#include "ace/OS_NS_stdio.h"
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
int niterations = 10;
int norbs = 10;
diff --git a/TAO/tests/Objref_Sequence_Test/Objref_Sequence_Test.mpc b/TAO/tests/Objref_Sequence_Test/Objref_Sequence_Test.mpc
index 650b6c70356..fcf4ac7709c 100644
--- a/TAO/tests/Objref_Sequence_Test/Objref_Sequence_Test.mpc
+++ b/TAO/tests/Objref_Sequence_Test/Objref_Sequence_Test.mpc
@@ -8,7 +8,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Objref_Sequence_Test/client.cpp b/TAO/tests/Objref_Sequence_Test/client.cpp
index 3fb96a60ce4..470d3ae3616 100644
--- a/TAO/tests/Objref_Sequence_Test/client.cpp
+++ b/TAO/tests/Objref_Sequence_Test/client.cpp
@@ -1,13 +1,14 @@
//$Id$
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -32,22 +33,22 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv [])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ACE_DECLARE_NEW_CORBA_ENV;
-
+ ACE_Argv_Type_Converter convert (argc, argv);
+ ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
// Connect to the server
diff --git a/TAO/tests/Objref_Sequence_Test/server.cpp b/TAO/tests/Objref_Sequence_Test/server.cpp
index 3890ff162fb..f4c918d9e64 100644
--- a/TAO/tests/Objref_Sequence_Test/server.cpp
+++ b/TAO/tests/Objref_Sequence_Test/server.cpp
@@ -2,6 +2,7 @@
#include "TestS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
/// Implement the Server Interface
class ServerServant :
@@ -123,7 +124,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -147,20 +148,20 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv [])
-
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_TRY
{
// Initialize the broker
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -205,7 +206,7 @@ main (int argc, char *argv [])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/OctetSeq/OctetSeq.cpp b/TAO/tests/OctetSeq/OctetSeq.cpp
index 995499aca20..666cce2c1e6 100644
--- a/TAO/tests/OctetSeq/OctetSeq.cpp
+++ b/TAO/tests/OctetSeq/OctetSeq.cpp
@@ -20,6 +20,7 @@
#include "ace/Get_Opt.h"
#include "ace/High_Res_Timer.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB.h"
#include "tao/CDR.h"
@@ -161,13 +162,15 @@ run (char* buf, size_t bufsize,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -179,7 +182,8 @@ main (int argc, char *argv[])
int quiet = 0;
- ACE_Get_Opt get_opt (argc, argv, "qn:l:h:s:");
+ ACE_Get_Arg_Opt<char> get_opt (convert.get_argc(),
+ convert.get_ASCII_argv(), "qn:l:h:s:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/tests/OctetSeq/OctetSeq.mpc b/TAO/tests/OctetSeq/OctetSeq.mpc
index 4a526ffae60..f022a840487 100644
--- a/TAO/tests/OctetSeq/OctetSeq.mpc
+++ b/TAO/tests/OctetSeq/OctetSeq.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*Server): taoserver {
- avoids += ace_for_tao
Source_Files {
test_i.cpp
server.cpp
@@ -10,8 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- avoids += ace_for_tao
- after += *Server
Source_Files {
testC.cpp
client.cpp
@@ -20,7 +17,6 @@ project(*Client): taoclient, anytypecode {
project(*OctetSeq): taoclient, anytypecode {
exename = OctetSeq
- after += *Client
Source_Files {
testC.cpp
OctetSeq.cpp
diff --git a/TAO/tests/OctetSeq/client.cpp b/TAO/tests/OctetSeq/client.cpp
index e781734a4b2..f6be23d2614 100644
--- a/TAO/tests/OctetSeq/client.cpp
+++ b/TAO/tests/OctetSeq/client.cpp
@@ -5,6 +5,7 @@
#include "testC.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(OctetSeq, client, "$Id$")
@@ -16,7 +17,7 @@ int verbose = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "vk:i:s:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "vk:i:s:");
int c;
while ((c = get_opts ()) != -1)
@@ -55,15 +56,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/OctetSeq/server.cpp b/TAO/tests/OctetSeq/server.cpp
index 59e56b30f2d..e4d125e7c8d 100644
--- a/TAO/tests/OctetSeq/server.cpp
+++ b/TAO/tests/OctetSeq/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (OctetSeq,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,12 +37,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
{
@@ -81,7 +84,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Oneway_Buffering/Oneway_Buffering.mpc b/TAO/tests/Oneway_Buffering/Oneway_Buffering.mpc
index ee95112f143..0ac9fd7eafc 100644
--- a/TAO/tests/Oneway_Buffering/Oneway_Buffering.mpc
+++ b/TAO/tests/Oneway_Buffering/Oneway_Buffering.mpc
@@ -18,7 +18,6 @@ project(*Server): messaging, taoexe, portableserver {
// succeeds.
project(*Client): messaging, taoexe, portableserver {
requires += corba_messaging
- after += *Server
Source_Files {
TestC.cpp
@@ -27,7 +26,6 @@ project(*Client): messaging, taoexe, portableserver {
}
project(*Admin): messaging, taoexe, portableserver {
- after += *Client
Source_Files {
Oneway_Buffering_Admin.cpp
admin.cpp
diff --git a/TAO/tests/Oneway_Buffering/admin.cpp b/TAO/tests/Oneway_Buffering/admin.cpp
index 4ab858a5e46..a78e49916a6 100644
--- a/TAO/tests/Oneway_Buffering/admin.cpp
+++ b/TAO/tests/Oneway_Buffering/admin.cpp
@@ -3,6 +3,7 @@
#include "Oneway_Buffering_Admin.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Oneway_Buffering, admin, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "admin.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Oneway_Buffering_Admin *oneway_buffering_admin_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Oneway_Buffering/client.cpp b/TAO/tests/Oneway_Buffering/client.cpp
index ca1b240ca78..c4a059307a2 100644
--- a/TAO/tests/Oneway_Buffering/client.cpp
+++ b/TAO/tests/Oneway_Buffering/client.cpp
@@ -7,6 +7,7 @@
#include "tao/AnyTypeCode/TAOA.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_sys_time.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Oneway_Buffering, client, "$Id$")
@@ -37,7 +38,7 @@ const double GIOP_OVERHEAD = 0.9;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:a:i:ctbr");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:a:i:ctbr");
int c;
while ((c = get_opts ()) != -1)
@@ -112,16 +113,18 @@ run_buffer_size (CORBA::ORB_ptr orb,
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int test_failed = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Oneway_Buffering/server.cpp b/TAO/tests/Oneway_Buffering/server.cpp
index 6997308857d..b154924c82d 100644
--- a/TAO/tests/Oneway_Buffering/server.cpp
+++ b/TAO/tests/Oneway_Buffering/server.cpp
@@ -3,6 +3,7 @@
#include "Oneway_Buffering.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Oneway_Buffering, server, "$Id$")
@@ -12,7 +13,7 @@ const char *ior = "file://admin.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:k:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,12 +42,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -66,7 +69,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
@@ -101,7 +104,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Oneways_Invoking_Twoways/Oneways_Invoking_Twoways.mpc b/TAO/tests/Oneways_Invoking_Twoways/Oneways_Invoking_Twoways.mpc
index bd6dfbc4ff5..7aef588b5f2 100644
--- a/TAO/tests/Oneways_Invoking_Twoways/Oneways_Invoking_Twoways.mpc
+++ b/TAO/tests/Oneways_Invoking_Twoways/Oneways_Invoking_Twoways.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver {
}
project(*Client): taoexe, portableserver {
- after += *Server
Source_Files {
Client_Task.cpp
Server_Task.cpp
diff --git a/TAO/tests/Oneways_Invoking_Twoways/client.cpp b/TAO/tests/Oneways_Invoking_Twoways/client.cpp
index 9d2b4cc90e8..5d8f4ccfb3a 100644
--- a/TAO/tests/Oneways_Invoking_Twoways/client.cpp
+++ b/TAO/tests/Oneways_Invoking_Twoways/client.cpp
@@ -4,6 +4,7 @@
#include "Client_Task.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Muxing, client, "$Id$")
@@ -12,7 +13,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Get the sender reference..
diff --git a/TAO/tests/Oneways_Invoking_Twoways/server.cpp b/TAO/tests/Oneways_Invoking_Twoways/server.cpp
index 2c3131b2cda..7a492e3a9cb 100644
--- a/TAO/tests/Oneways_Invoking_Twoways/server.cpp
+++ b/TAO/tests/Oneways_Invoking_Twoways/server.cpp
@@ -3,6 +3,7 @@
#include "Sender_i.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Oneways_Invoking_Twoways, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Sender_i *sender_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/POA/Current/Current.cpp b/TAO/tests/POA/Current/Current.cpp
index cfb3e541f38..af24e291645 100644
--- a/TAO/tests/POA/Current/Current.cpp
+++ b/TAO/tests/POA/Current/Current.cpp
@@ -21,18 +21,21 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Deactivate_Object/server.cpp b/TAO/tests/POA/Deactivate_Object/server.cpp
index 13749603e33..bcebec6eda2 100644
--- a/TAO/tests/POA/Deactivate_Object/server.cpp
+++ b/TAO/tests/POA/Deactivate_Object/server.cpp
@@ -2,18 +2,21 @@
#include "Hello.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Hello,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/POA/Default_Servant/Default_Servant.cpp b/TAO/tests/POA/Default_Servant/Default_Servant.cpp
index d0de0aad007..32b5fc7a95e 100644
--- a/TAO/tests/POA/Default_Servant/Default_Servant.cpp
+++ b/TAO/tests/POA/Default_Servant/Default_Servant.cpp
@@ -19,6 +19,7 @@
#include "testS.h"
#include "ace/SString.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/ServantManagerC.h"
class test_i : public POA_test
@@ -148,15 +149,17 @@ test_reference_to_servant_active_object(PortableServer::POA_ptr root_poa
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Etherealization/Etherealization.cpp b/TAO/tests/POA/Etherealization/Etherealization.cpp
index 1471f38f8b3..5a81ea19892 100644
--- a/TAO/tests/POA/Etherealization/Etherealization.cpp
+++ b/TAO/tests/POA/Etherealization/Etherealization.cpp
@@ -19,6 +19,7 @@
#include "testS.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/ServantActivatorC.h"
class test_i : public POA_test
@@ -117,15 +118,17 @@ Servant_Activator::etherealize (const PortableServer::ObjectId &id,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Excessive_Object_Deactivations/Excessive_Object_Deactivations.cpp b/TAO/tests/POA/Excessive_Object_Deactivations/Excessive_Object_Deactivations.cpp
index 7880507c3fa..211c3874891 100644
--- a/TAO/tests/POA/Excessive_Object_Deactivations/Excessive_Object_Deactivations.cpp
+++ b/TAO/tests/POA/Excessive_Object_Deactivations/Excessive_Object_Deactivations.cpp
@@ -20,6 +20,7 @@
//=========================================================================
#include "testS.h"
+#include "ace/Argv_Type_Converter.h"
class test_i : public POA_test
{
@@ -170,15 +171,16 @@ test_object_deactivation (PortableServer::POA_ptr poa,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Identity/Identity.cpp b/TAO/tests/POA/Identity/Identity.cpp
index 1f3265ec6c4..17e6339a4cf 100644
--- a/TAO/tests/POA/Identity/Identity.cpp
+++ b/TAO/tests/POA/Identity/Identity.cpp
@@ -18,6 +18,7 @@
#include "testS.h"
#include "tao/ORB_Core.h"
#include "tao/Server_Strategy_Factory.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Identity, Identity, "$Id$")
@@ -694,13 +695,15 @@ test_poas (CORBA::ORB_ptr orb,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, 0
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), 0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp b/TAO/tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp
index 11d740642cd..59ede0a423d 100644
--- a/TAO/tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp
+++ b/TAO/tests/POA/MT_Servant_Locator/MT_Servant_Locator.cpp
@@ -20,6 +20,7 @@
#include "testS.h"
#include "ace/Task.h"
#include "ace/Auto_Event.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/ServantLocatorC.h"
#include "tao/CDR.h"
@@ -246,15 +247,17 @@ overwrite_servant_manager (PortableServer::POA_ptr poa)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int retval = 0;
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp b/TAO/tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp
index 70b54317789..d834e09eb39 100644
--- a/TAO/tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp
+++ b/TAO/tests/POA/Nested_Non_Servant_Upcalls/Nested_Non_Servant_Upcalls.cpp
@@ -20,6 +20,7 @@
#include "testS.h"
#include "ace/Task.h"
#include "ace/Auto_Event.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/ServantActivatorC.h"
class test_i :
@@ -217,13 +218,15 @@ Servant_Activator::etherealize (const PortableServer::ObjectId &,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp b/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
index 11aa293619d..1814d839680 100644
--- a/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
+++ b/TAO/tests/POA/Non_Servant_Upcalls/Non_Servant_Upcalls.cpp
@@ -20,6 +20,7 @@
//=========================================================================
#include "testS.h"
+#include "ace/Argv_Type_Converter.h"
// This is to remove "inherits via dominance" warnings from MSVC.
// MSVC is being a little too paranoid.
@@ -74,13 +75,15 @@ test_i::~test_i (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Object_Reactivation/Object_Reactivation.cpp b/TAO/tests/POA/Object_Reactivation/Object_Reactivation.cpp
index 0c5c38a7ddf..01c8588bb8d 100644
--- a/TAO/tests/POA/Object_Reactivation/Object_Reactivation.cpp
+++ b/TAO/tests/POA/Object_Reactivation/Object_Reactivation.cpp
@@ -23,13 +23,14 @@
#include "ace/SString.h"
#include "ace/Auto_Event.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
static int debug = 1;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "d:");
int c;
while ((c = get_opts ()) != -1)
@@ -211,21 +212,23 @@ Deactivator::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int parse_args_result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp b/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp
index a35208aa000..952869c6d6f 100644
--- a/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp
+++ b/TAO/tests/POA/POA_Destruction/POA_Destruction.cpp
@@ -18,6 +18,7 @@
//=========================================================================
#include "testS.h"
+#include "ace/Argv_Type_Converter.h"
class test_i : public POA_test
{
@@ -42,15 +43,16 @@ test_i::destroy_poa (ACE_ENV_SINGLE_ARG_DECL)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Persistent_ID/Persistent_ID.mpc b/TAO/tests/POA/Persistent_ID/Persistent_ID.mpc
index de531ab3649..735ef5e6ed2 100644
--- a/TAO/tests/POA/Persistent_ID/Persistent_ID.mpc
+++ b/TAO/tests/POA/Persistent_ID/Persistent_ID.mpc
@@ -9,7 +9,6 @@ project(POA_server*): taoserver {
project(POA_client*): taoserver {
exename = client
- after += POA_server*
Source_Files {
client.cpp
}
diff --git a/TAO/tests/POA/Persistent_ID/client.cpp b/TAO/tests/POA/Persistent_ID/client.cpp
index 45519fdd154..1188073b165 100644
--- a/TAO/tests/POA/Persistent_ID/client.cpp
+++ b/TAO/tests/POA/Persistent_ID/client.cpp
@@ -17,6 +17,7 @@
#include "ace/Get_Opt.h"
#include "testC.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Generic_Servant, client, "$Id$")
@@ -26,7 +27,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x");
int c;
while ((c = get_opts ()) != -1)
@@ -59,21 +60,23 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int parse_args_result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/POA/Persistent_ID/server.cpp b/TAO/tests/POA/Persistent_ID/server.cpp
index 15f8272c1a9..a39d1917712 100644
--- a/TAO/tests/POA/Persistent_ID/server.cpp
+++ b/TAO/tests/POA/Persistent_ID/server.cpp
@@ -21,6 +21,7 @@
#include "testS.h"
#include "ace/OS_NS_stdio.h"
#include "tao/PortableServer/PortableServer.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Explicit_Activation, server, "$Id$")
@@ -130,15 +131,6 @@ test_i::create_POA (ACE_ENV_SINGLE_ARG_DECL)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (test::_nil ());
- // Destroy the policies
- for (CORBA::ULong i = 0;
- i < policies.length ();
- ++i)
- {
- policies[i]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- }
-
test_i *servant =
new test_i (this->orb_.in (),
this->child_poa_.in ());
@@ -181,7 +173,7 @@ const char *ior_file = "ior";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "f:");
int c;
while ((c = get_opts ()) != -1)
@@ -208,7 +200,7 @@ static int
write_ior_to_file (const char *ior)
{
FILE *output_file =
- ACE_OS::fopen (ior_file, "w");
+ ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output files for writing IOR: %s\n",
@@ -233,20 +225,22 @@ write_ior_to_file (const char *ior)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- int result = parse_args (argc, argv);
+ int result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/POA/Policies/Policies.cpp b/TAO/tests/POA/Policies/Policies.cpp
index 095c1dca356..1fdf375e3ea 100644
--- a/TAO/tests/POA/Policies/Policies.cpp
+++ b/TAO/tests/POA/Policies/Policies.cpp
@@ -24,18 +24,22 @@
#include "tao/PI_Server/PI_Server.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/Reference_Counting/test.cpp b/TAO/tests/POA/Reference_Counting/test.cpp
index bd7b83a4082..015b2c47415 100644
--- a/TAO/tests/POA/Reference_Counting/test.cpp
+++ b/TAO/tests/POA/Reference_Counting/test.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "HelloS.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Reference_Counting,
test,
@@ -37,12 +38,14 @@ getRefCount (PortableServer::ServantBase * sb ACE_ENV_ARG_DECL)
}
int
-main (int argc, char * argv[])
+ACE_TMAIN (int argc, ACE_TCHAR * argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/POA/Single_Threaded_POA/Single_Threaded_POA.cpp b/TAO/tests/POA/Single_Threaded_POA/Single_Threaded_POA.cpp
index f841fcdfdfd..35e01a574f4 100644
--- a/TAO/tests/POA/Single_Threaded_POA/Single_Threaded_POA.cpp
+++ b/TAO/tests/POA/Single_Threaded_POA/Single_Threaded_POA.cpp
@@ -22,6 +22,7 @@
#include "testS.h"
#include "ace/Task.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
class test_i : public virtual POA_test
{
@@ -111,13 +112,15 @@ Worker::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB first.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/POA/wait_for_completion/wait_for_completion.cpp b/TAO/tests/POA/wait_for_completion/wait_for_completion.cpp
index 8b945a68c1b..d970ca71dad 100644
--- a/TAO/tests/POA/wait_for_completion/wait_for_completion.cpp
+++ b/TAO/tests/POA/wait_for_completion/wait_for_completion.cpp
@@ -17,6 +17,7 @@
//=========================================================================
#include "testS.h"
+#include "ace/Argv_Type_Converter.h"
class test_i : public POA_test
{
@@ -84,23 +85,23 @@ init_orb (int argc,
}
int
-main (int argc,
- char **argv)
+ACE_TMAIN (int argc,
+ ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
PortableServer::POA_var first_poa =
- init_orb (argc,
- argv,
+ init_orb (convert.get_argc(), convert.get_ASCII_argv(),
"first ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
PortableServer::POA_var second_poa =
- init_orb (argc,
- argv,
+ init_orb (convert.get_argc(), convert.get_ASCII_argv(),
"second ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Param_Test/Param_Test.mpc b/TAO/tests/Param_Test/Param_Test.mpc
index 4ad4fa1ba44..6124582c733 100644
--- a/TAO/tests/Param_Test/Param_Test.mpc
+++ b/TAO/tests/Param_Test/Param_Test.mpc
@@ -9,9 +9,8 @@ project(*Server): taoserver, minimum_corba {
}
project(*Client): taoserver, minimum_corba, dynamicinterface {
- avoids += ace_for_tao
- exename = client
- after += *Server
+ exename = client
+ after += Param_Test_Server
Source_Files {
any.cpp
@@ -60,7 +59,7 @@ project(*Client): taoserver, minimum_corba, dynamicinterface {
project(*Anyop): taoserver, minimum_corba {
exename = anyop
- after += *Client
+ after += Param_Test_Client
Source_Files {
param_testC.cpp
diff --git a/TAO/tests/Param_Test/anyop.cpp b/TAO/tests/Param_Test/anyop.cpp
index c15ba6afd10..886a06bd0ff 100644
--- a/TAO/tests/Param_Test/anyop.cpp
+++ b/TAO/tests/Param_Test/anyop.cpp
@@ -25,25 +25,28 @@
#include "tao/Object_T.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Param_Test,
anyop,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int n = 1024;
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- ACE_Get_Opt get_opt (argc, argv, "dn:");
+ ACE_Get_Arg_Opt<char> get_opt (convert.get_argc(), convert.get_ASCII_argv(), "dn:");
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/TAO/tests/Param_Test/bd_str_seq.cpp b/TAO/tests/Param_Test/bd_str_seq.cpp
index 5d542556fa8..3c85b5c2747 100644
--- a/TAO/tests/Param_Test/bd_str_seq.cpp
+++ b/TAO/tests/Param_Test/bd_str_seq.cpp
@@ -150,9 +150,9 @@ Test_Bounded_String_Sequence::check_validity (void)
// lengths are same. Now compare the contents
for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
{
- if (ACE_OS::strcmp(this->in_[i], this->inout_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->out_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->ret_[i]))
+ if (ACE_OS::strcmp(this->in_[i].in(), this->inout_[i].in()) ||
+ ACE_OS::strcmp(this->in_[i].in(), this->out_[i].in()) ||
+ ACE_OS::strcmp(this->in_[i].in(), this->ret_[i].in()))
// not equal
flag = 0;
}
diff --git a/TAO/tests/Param_Test/complex_any.cpp b/TAO/tests/Param_Test/complex_any.cpp
index 0dd6c1199fe..6f1d268c760 100644
--- a/TAO/tests/Param_Test/complex_any.cpp
+++ b/TAO/tests/Param_Test/complex_any.cpp
@@ -257,8 +257,8 @@ Test_Complex_Any::comp_engine (const CORBA::AnySeq *level2_in_seq,
if (!((*level3_test_seq)[j] >>= level4_test_struct))
return 0;
- if (ACE_OS::strcmp (level4_in_struct->level5_string,
- level4_test_struct->level5_string))
+ if (ACE_OS::strcmp (level4_in_struct->level5_string.in(),
+ level4_test_struct->level5_string.in()))
{
ACE_DEBUG ((LM_DEBUG,
"mismatch of level 5 string values\n"));
@@ -288,8 +288,8 @@ Test_Complex_Any::comp_engine (const CORBA::AnySeq *level2_in_seq,
if (!((*level7_test_any) >>= level8_test_struct))
return 0;
- if (ACE_OS::strcmp (level8_in_struct->level9_string,
- level8_test_struct->level9_string))
+ if (ACE_OS::strcmp (level8_in_struct->level9_string.in(),
+ level8_test_struct->level9_string.in()))
{
ACE_DEBUG ((LM_DEBUG,
"mismatch of level 9 string values\n"));
diff --git a/TAO/tests/Param_Test/driver.cpp b/TAO/tests/Param_Test/driver.cpp
index 45a45f49b38..6a2152ffc86 100644
--- a/TAO/tests/Param_Test/driver.cpp
+++ b/TAO/tests/Param_Test/driver.cpp
@@ -21,6 +21,7 @@
#include "results.h"
#include "tests.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Param_Test,
driver,
@@ -28,13 +29,15 @@ ACE_RCSID (Param_Test,
// This function runs the test (main program)
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// get an instance of the driver object
Driver drv;
// initialize the driver
- if (drv.init (argc, argv) == -1)
+ if (drv.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) driver.cpp - "
"Driver initialization failed\n"),
diff --git a/TAO/tests/Param_Test/nested_struct.cpp b/TAO/tests/Param_Test/nested_struct.cpp
index b48b8ef65ed..0b208edd2e3 100644
--- a/TAO/tests/Param_Test/nested_struct.cpp
+++ b/TAO/tests/Param_Test/nested_struct.cpp
@@ -168,9 +168,9 @@ Test_Nested_Struct::check_validity (void)
// lengths are same. Now compare the contents
for (CORBA::ULong i=0; i < this->in_.vs.seq.length () && flag; i++)
{
- if (ACE_OS::strcmp (this->in_.vs.seq[i], this->inout_->vs.seq[i]) ||
- ACE_OS::strcmp (this->in_.vs.seq[i], this->out_->vs.seq[i]) ||
- ACE_OS::strcmp (this->in_.vs.seq[i], this->ret_->vs.seq[i]))
+ if (ACE_OS::strcmp (this->in_.vs.seq[i].in(), this->inout_->vs.seq[i].in()) ||
+ ACE_OS::strcmp (this->in_.vs.seq[i].in(), this->out_->vs.seq[i].in()) ||
+ ACE_OS::strcmp (this->in_.vs.seq[i].in(), this->ret_->vs.seq[i].in()))
// not equal
flag = 0;
}
diff --git a/TAO/tests/Param_Test/objref_struct.cpp b/TAO/tests/Param_Test/objref_struct.cpp
index c299f461a8a..7c4e4079c52 100644
--- a/TAO/tests/Param_Test/objref_struct.cpp
+++ b/TAO/tests/Param_Test/objref_struct.cpp
@@ -194,9 +194,9 @@ Test_Objref_Struct::check_validity (void)
Coffee::Desc_var s_ret = this->ret_->y->description (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (ACE_OS::strcmp (s_in->name, s_out->name) != 0
- || ACE_OS::strcmp (s_in->name, s_inout->name) != 0
- || ACE_OS::strcmp (s_in->name, s_ret->name) != 0 )
+ if (ACE_OS::strcmp (s_in->name.in(), s_out->name.in()) != 0
+ || ACE_OS::strcmp (s_in->name.in(), s_inout->name.in()) != 0
+ || ACE_OS::strcmp (s_in->name.in(), s_ret->name.in()) != 0 )
{
return 0;
}
diff --git a/TAO/tests/Param_Test/options.cpp b/TAO/tests/Param_Test/options.cpp
index e295371820b..af30c16083f 100644
--- a/TAO/tests/Param_Test/options.cpp
+++ b/TAO/tests/Param_Test/options.cpp
@@ -22,6 +22,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_fcntl.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Param_Test,
options,
@@ -47,7 +48,7 @@ Options::~Options (void)
int
Options::parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "xdn:f:i:t:k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xdn:f:i:t:k:");
int c;
int result;
diff --git a/TAO/tests/Param_Test/results.h b/TAO/tests/Param_Test/results.h
index 7c7857acd6c..e75bf267210 100644
--- a/TAO/tests/Param_Test/results.h
+++ b/TAO/tests/Param_Test/results.h
@@ -28,12 +28,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class Environment;
}
-TAO_END_VERSIONED_NAMESPACE_DECL
class Results
{
diff --git a/TAO/tests/Param_Test/run_test.pl b/TAO/tests/Param_Test/run_test.pl
index 9b3b96bc124..e70233ece97 100755
--- a/TAO/tests/Param_Test/run_test.pl
+++ b/TAO/tests/Param_Test/run_test.pl
@@ -76,35 +76,28 @@ foreach $type (@types) {
print STDERR "==== Testing $type === wait....\n";
- $server = $SV->Spawn ();
+ $SV->Spawn ();
- if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
+ if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) {
+ print STDERR "ERROR: cannot find file <$iorfile>\n";
+ $SV->Kill ();
+ exit 1;
+ }
+
+ $CL->Arguments ("$debug -f $iorfile -i $invocation -t $type -n $num -x");
+
+ $client = $CL->SpawnWaitKill (60);
+
+ if ($client != 0) {
+ print STDERR "ERROR: client returned $client\n";
$status = 1;
}
- else
- {
- if (PerlACE::waitforfile_timed ($iorfile, 15) == -1) {
- print STDERR "ERROR: cannot find file <$iorfile>\n";
- $SV->Kill ();
- exit 1;
- }
-
- $CL->Arguments ("$debug -f $iorfile -i $invocation -t $type -n $num -x");
-
- $client = $CL->SpawnWaitKill (60);
-
- if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
- }
-
- $server = $SV->WaitKill (10);
+
+ $server = $SV->WaitKill (10);
- if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
- }
+ if ($server != 0) {
+ print STDERR "ERROR: server returned $server\n";
+ $status = 1;
}
unlink $iorfile;
diff --git a/TAO/tests/Param_Test/server.cpp b/TAO/tests/Param_Test/server.cpp
index c66e703967f..4b610be96fd 100644
--- a/TAO/tests/Param_Test/server.cpp
+++ b/TAO/tests/Param_Test/server.cpp
@@ -18,6 +18,7 @@
#include "ace/Get_Opt.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Param_Test,
server,
@@ -30,7 +31,7 @@ static const char *ior_output_filename = "test.ior";
static int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "do:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "do:");
int c;
while ((c = get_opts ()) != -1)
@@ -56,8 +57,10 @@ parse_args (int argc, char *argv[])
// Standard command line parsing utilities used.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
PortableServer::POA_var oa_ptr;
Param_Test_i *param_test = 0;
@@ -66,7 +69,7 @@ main (int argc, char *argv[])
{
const char *orb_name = "";
CORBA::ORB_var orb_ptr =
- CORBA::ORB_init (argc, argv, orb_name ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), orb_name ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var temp; // holder for the myriad of times we get
@@ -112,7 +115,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Parse remaining command line and verify parameters.
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
// initialize a param_test target object and register it with the object
// adapter
@@ -149,7 +152,7 @@ main (int argc, char *argv[])
str.in ()));
}
- ior_output_file = ACE_OS::fopen (ior_output_filename, "w");
+ ior_output_file = ACE_OS::fopen (ior_output_filename, ACE_TEXT("w"));
if (ior_output_file == 0)
{
diff --git a/TAO/tests/Param_Test/ub_str_seq.cpp b/TAO/tests/Param_Test/ub_str_seq.cpp
index 730701506f0..ba7ed77ef62 100644
--- a/TAO/tests/Param_Test/ub_str_seq.cpp
+++ b/TAO/tests/Param_Test/ub_str_seq.cpp
@@ -152,9 +152,9 @@ Test_String_Sequence::check_validity (void)
// lengths are same. Now compare the contents
for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
{
- if (ACE_OS::strcmp(this->in_[i], this->inout_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->out_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->ret_[i]))
+ if (ACE_OS::strcmp(this->in_[i].in(), this->inout_[i].in()) ||
+ ACE_OS::strcmp(this->in_[i].in(), this->out_[i].in()) ||
+ ACE_OS::strcmp(this->in_[i].in(), this->ret_[i].in()))
// not equal
flag = 0;
}
diff --git a/TAO/tests/Param_Test/var_struct.cpp b/TAO/tests/Param_Test/var_struct.cpp
index 679ed7b3db3..35874446813 100644
--- a/TAO/tests/Param_Test/var_struct.cpp
+++ b/TAO/tests/Param_Test/var_struct.cpp
@@ -166,15 +166,15 @@ Test_Var_Struct::check_validity (void)
if (this->in_.dbl == this->inout_->dbl &&
this->in_.dbl == this->out_->dbl &&
this->in_.dbl == this->ret_->dbl &&
- (!ACE_OS::strcmp (this->in_.dummy1, this->inout_->dummy1)) &&
- (!ACE_OS::strcmp (this->in_.dummy1, this->out_->dummy1)) &&
- (!ACE_OS::strcmp (this->in_.dummy1, this->ret_->dummy1)) &&
+ (!ACE_OS::strcmp (this->in_.dummy1.in(), this->inout_->dummy1.in())) &&
+ (!ACE_OS::strcmp (this->in_.dummy1.in(), this->out_->dummy1.in())) &&
+ (!ACE_OS::strcmp (this->in_.dummy1.in(), this->ret_->dummy1.in())) &&
this->in_.boole == this->inout_->boole &&
this->in_.boole == this->out_->boole &&
this->in_.boole == this->ret_->boole &&
- (!ACE_OS::strcmp (this->in_.dummy2, this->inout_->dummy2)) &&
- (!ACE_OS::strcmp (this->in_.dummy2, this->out_->dummy2)) &&
- (!ACE_OS::strcmp (this->in_.dummy2, this->ret_->dummy2)) &&
+ (!ACE_OS::strcmp (this->in_.dummy2.in(), this->inout_->dummy2.in())) &&
+ (!ACE_OS::strcmp (this->in_.dummy2.in(), this->out_->dummy2.in())) &&
+ (!ACE_OS::strcmp (this->in_.dummy2.in(), this->ret_->dummy2.in())) &&
this->in_.shrt == this->inout_->shrt &&
this->in_.shrt == this->out_->shrt &&
this->in_.shrt == this->ret_->shrt &&
@@ -186,9 +186,9 @@ Test_Var_Struct::check_validity (void)
// lengths are same. Now compare the contents
for (CORBA::ULong i=0; i < this->in_.seq.length () && flag; i++)
{
- if (ACE_OS::strcmp (this->in_.seq[i], this->inout_->seq[i]) ||
- ACE_OS::strcmp (this->in_.seq[i], this->out_->seq[i]) ||
- ACE_OS::strcmp (this->in_.seq[i], this->ret_->seq[i]))
+ if (ACE_OS::strcmp (this->in_.seq[i].in(), this->inout_->seq[i].in()) ||
+ ACE_OS::strcmp (this->in_.seq[i].in(), this->out_->seq[i].in()) ||
+ ACE_OS::strcmp (this->in_.seq[i].in(), this->ret_->seq[i].in()))
// not equal
flag = 0;
}
diff --git a/TAO/tests/Permanent_Forward/Permanent_Forward.mpc b/TAO/tests/Permanent_Forward/Permanent_Forward.mpc
deleted file mode 100755
index ab5cf4db05d..00000000000
--- a/TAO/tests/Permanent_Forward/Permanent_Forward.mpc
+++ /dev/null
@@ -1,6 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*StubTest) : taoexe, iormanip {
- exename = StubTest
-}
diff --git a/TAO/tests/Permanent_Forward/README b/TAO/tests/Permanent_Forward/README
deleted file mode 100755
index 283aa20a87d..00000000000
--- a/TAO/tests/Permanent_Forward/README
+++ /dev/null
@@ -1,3 +0,0 @@
-This program tests the various forward and forward-permanent
-combinations possible in applications. The tests operates directly on
-Objects and TAO_Stub interfaces.
diff --git a/TAO/tests/Permanent_Forward/StubTest.cpp b/TAO/tests/Permanent_Forward/StubTest.cpp
deleted file mode 100755
index 21fbd5409bd..00000000000
--- a/TAO/tests/Permanent_Forward/StubTest.cpp
+++ /dev/null
@@ -1,371 +0,0 @@
-// $Id$
-
-//========================================================================
-/**
- * @file StubTest.cpp
- *
- * This program tests the basic functionality of the TAO_Stub in case
- * of permanent_forward
- *
- * @author Frank Rehberger
- */
-//=========================================================================
-
-
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-#include "tao/ORB.h"
-#include "tao/Environment.h"
-#include "tao/SystemException.h"
-#include "tao/Object.h"
-#include "tao/Stub.h"
-#include "tao/Profile.h"
-#include "tao/IIOP_Profile.h"
-
-#ifndef FRANKS_ASSERT
-#define FRANKS_ASSERT(X) \
- ((X) \
- ? static_cast<void>(0) \
- : ACE_VERSIONED_NAMESPACE_NAME::__ace_assert(__FILE__, __LINE__, ACE_TEXT_CHAR_TO_TCHAR (#X)))
-#endif
-
-ACE_RCSID (Permanent_Forward,
- StubTest,
- "$Id$")
-
-static bool
-is_endpoint (TAO_Profile *profile, const char *host, unsigned short port)
- {
- TAO_IIOP_Profile *iiop = dynamic_cast<TAO_IIOP_Profile*> (profile);
- TAO_Endpoint *endpoint = iiop->endpoint ();
- TAO_IIOP_Endpoint *iiop_endpoint = dynamic_cast<TAO_IIOP_Endpoint*> (endpoint);
- const char * endpoint_host = iiop_endpoint->host();
- unsigned short endpoint_port = iiop_endpoint->port();
-
- bool retval =
- ACE_OS::strcmp (endpoint_host, host)==0
- && endpoint_port == port;
-
- return retval;
- }
-
-static bool
-equal_endpoint (TAO_Profile *profile, TAO_Profile *other)
- {
- TAO_IIOP_Profile *iiop = dynamic_cast<TAO_IIOP_Profile*> (profile);
- TAO_Endpoint *endpoint = iiop->endpoint ();
- TAO_IIOP_Endpoint *iiop_endpoint = dynamic_cast<TAO_IIOP_Endpoint*> (endpoint);
- const char * endpoint_host = iiop_endpoint->host();
- unsigned short endpoint_port = iiop_endpoint->port();
-
- TAO_IIOP_Profile *other_iiop = dynamic_cast<TAO_IIOP_Profile*> (other);
- TAO_Endpoint *other_endpoint = other_iiop->endpoint ();
- TAO_IIOP_Endpoint *other_iiop_endpoint = dynamic_cast<TAO_IIOP_Endpoint*> (other_endpoint);
- const char * other_endpoint_host = other_iiop_endpoint->host();
- unsigned short other_endpoint_port = other_iiop_endpoint->port();
-
- bool retval =
- ACE_OS::strcmp (endpoint_host, other_endpoint_host)==0
- && endpoint_port == other_endpoint_port;
-
- return retval;
- }
-
-static bool
-marshaled_equal_to_other (CORBA::ORB_ptr orb, CORBA::Object_ptr obj, TAO_MProfile *other_mprofile)
-{
- CORBA::String_var str = orb->object_to_string (obj ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj_copy = orb->string_to_object (str.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_Stub *stub_copy = obj_copy->_stubobj ();
- TAO_MProfile *copy_mprofile = &(stub_copy->base_profiles ());
-
- if ( copy_mprofile->size() != other_mprofile->size())
- return false;
-
- for (size_t i=0; i<copy_mprofile->size(); ++i)
- {
- TAO_Profile *copy_profile = copy_mprofile->get_profile (i);
- TAO_Profile *other_profile = other_mprofile->get_profile (i);
-
- if ( ! equal_endpoint (copy_profile, other_profile) )
- return false;
- }
-
- return true;
-}
-
-static void
-test_forward_permanent (CORBA::ORB_ptr orb)
-{
- CORBA::Object_var obj1 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:1111,iiop:192.168.1.3:1111/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // the permanent profile
- CORBA::Object_var obj4 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:4444,iiop:192.168.1.3:4444/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_Stub *stub1 = obj1->_stubobj ();
- TAO_Stub *stub4 = obj4->_stubobj ();
-
- TAO_Profile *profile = NULL;
-
- profile = stub1->profile_in_use ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 1111));
-
- // ----- forward to obj2 permanently
- stub1->add_forward_profiles (stub4->base_profiles(), true /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 4444));
-
- // ----- stringified object reference must be equal to obj4->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub4->base_profiles())) );
-
- // ----- consume second profile of obj2
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.3", 4444));
-
-
- // ----- reached end, next_profile() must yield NULL
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (profile == NULL);
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-}
-
-static void
-test_forward_permanent_mix (CORBA::ORB_ptr orb)
-{
- CORBA::Object_var obj1 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:1111,iiop:192.168.1.3:1111/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj2 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:2222,iiop:192.168.1.3:2222/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj3 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:3333,iiop:192.168.1.3:3333/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj4 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:4444,iiop:192.168.1.3:4444/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj5 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:5555,iiop:192.168.1.3:5555/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_Stub *stub1 = obj1->_stubobj ();
- TAO_Stub *stub2 = obj2->_stubobj ();
- TAO_Stub *stub3 = obj3->_stubobj ();
- TAO_Stub *stub4 = obj4->_stubobj ();
- TAO_Stub *stub5 = obj5->_stubobj ();
-
- TAO_Profile *profile = NULL;
-
- profile = stub1->profile_in_use ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 1111));
-
- // ----- forward to obj2
- stub1->add_forward_profiles (stub2->base_profiles(), false /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 2222));
-
- // ----- forward to obj3
- stub1->add_forward_profiles (stub3->base_profiles(), false /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 3333));
-
- // ----- stringified object reference must be equal to obj1->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub1->base_profiles())) );
-
- // ----- forward to obj4 permanently
- stub1->add_forward_profiles (stub4->base_profiles(), true /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 4444));
-
- // ----- stringified object reference must be equal to obj4->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub4->base_profiles())) );
-
- // ----- consume second profile from obj4
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.3", 4444));
-
- // ----- forward to obj2
- stub1->add_forward_profiles (stub2->base_profiles(), false /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 2222));
-
- // ----- forward to obj3
- stub1->add_forward_profiles (stub3->base_profiles(), false /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 3333));
-
- // ----- stringified object reference must be equal to obj4->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub4->base_profiles())) );
-
- // ----- forward to obj5 permanently
- stub1->add_forward_profiles (stub5->base_profiles(), true /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 5555));
-
- // ----- stringified object reference must be equal to obj5->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub5->base_profiles())) );
-
- // ----- consume second profile from obj5
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.3", 5555));
-
- // ----- stringified object reference must be equal to obj1->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub5->base_profiles())) );
-
- // reached end of profiles, next_profile must return NULL
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (profile == NULL);
-}
-
-static void
-test_forward (CORBA::ORB_ptr orb)
-{
- CORBA::Object_var obj1 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:1111,iiop:192.168.1.3:1111/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj2 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:2222,iiop:192.168.1.3:2222/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var obj3 = orb->string_to_object ("corbaloc:iiop:192.168.1.2:3333,iiop:192.168.1.3:3333/NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- TAO_Stub *stub1 = obj1->_stubobj ();
- TAO_Stub *stub2 = obj2->_stubobj ();
- TAO_Stub *stub3 = obj3->_stubobj ();
-
- TAO_Profile *profile = NULL;
-
- profile = stub1->profile_in_use ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 1111));
-
- // ----- forward to obj2
- stub1->add_forward_profiles (stub2->base_profiles(), false /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 2222));
-
- // ----- forward to obj3
-
- stub1->add_forward_profiles (stub3->base_profiles(), false /* permanent */ );
-
- FRANKS_ASSERT (stub1->forward_profiles () != NULL);
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.2", 3333));
-
- // ----- stringified object reference must be equal to obj1->base_prpfiles().
- FRANKS_ASSERT (marshaled_equal_to_other (orb, obj1.in (), &(stub1->base_profiles())) );
-
- // ----- consume second profile of obj3
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.3", 3333));
-
- // ----- consume second profile of obj2
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.3", 2222));
-
- // ----- consume second profile of obj1
-
- profile = stub1->next_profile ();
-
- FRANKS_ASSERT (is_endpoint (profile, "192.168.1.3", 1111));
-
- FRANKS_ASSERT (stub1->forward_profiles () == NULL);
-
- // ----- reached end, next_profile() must yield NULL
-
- profile = stub1->next_profile ();
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_DEBUG ((LM_DEBUG, "---------------------------------------------\n"));
- ACE_DEBUG ((LM_DEBUG, "Running the Stub Tests.\n"));
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- // Retrieve the ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- test_forward (orb.in());
- test_forward_permanent (orb.in());
- test_forward_permanent_mix (orb.in());
- }
- ACE_CATCH (CORBA::SystemException, sysex)
- {
- ACE_PRINT_EXCEPTION (sysex,
- "Unexpected system Exception!!\n");
- return -1;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Unexpected ACE_CATCHANY Exception!\n");
- return -1;
- }
- ACE_ENDTRY;
-
- ACE_DEBUG ((LM_DEBUG, "Stub Tests Successfully Completed!\n"));
- ACE_DEBUG ((LM_DEBUG, "---------------------------------------------\n"));
-
- return 0;
-}
diff --git a/TAO/tests/Permanent_Forward/run_test.pl b/TAO/tests/Permanent_Forward/run_test.pl
deleted file mode 100755
index 60c2fb9ac3d..00000000000
--- a/TAO/tests/Permanent_Forward/run_test.pl
+++ /dev/null
@@ -1,25 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-if (PerlACE::is_vxworks_test()) {
- $T = new PerlACE::ProcessVX ("StubTest");
-}
-else {
- $T = new PerlACE::Process ("StubTest");
-}
-
-$test = $T->SpawnWaitKill (20);
-
-if ($test != 0) {
- print STDERR "ERROR: test returned $test\n";
- exit 1;
-}
-
-exit 0;
diff --git a/TAO/tests/Policies/Manipulation.cpp b/TAO/tests/Policies/Manipulation.cpp
index d3f78ece1b0..28cb1b58941 100644
--- a/TAO/tests/Policies/Manipulation.cpp
+++ b/TAO/tests/Policies/Manipulation.cpp
@@ -10,6 +10,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ace/OS_NS_time.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Policies, Manipulation, "$Id$")
@@ -19,7 +20,7 @@ int niterations = 100;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "n:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -81,15 +82,17 @@ private:
};
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.cpp b/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.cpp
index 3dc6be77b96..d1778da8bb6 100644
--- a/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.cpp
+++ b/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.cpp
@@ -27,7 +27,7 @@ Echo_Handler::echo_operation (char const *
}
void
-Echo_Handler::echo_operation_excep (::Messaging::ExceptionHolder *
+Echo_Handler::echo_operation_excep (Test::AMI_EchoExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC((CORBA::SystemException))
{
@@ -40,7 +40,7 @@ Echo_Handler::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
}
void
-Echo_Handler::shutdown_excep (::Messaging::ExceptionHolder *
+Echo_Handler::shutdown_excep (Test::AMI_EchoExceptionHolder *
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC((CORBA::SystemException))
{
diff --git a/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.h b/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.h
index 76517aa76f2..8ecb15d64f1 100644
--- a/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.h
+++ b/TAO/tests/Portable_Interceptors/AMI/Echo_Handler.h
@@ -20,12 +20,12 @@ public:
virtual void echo_operation(char const * retval
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC((CORBA::SystemException));
- virtual void echo_operation_excep(::Messaging::ExceptionHolder * h
+ virtual void echo_operation_excep(Test::AMI_EchoExceptionHolder * h
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC((CORBA::SystemException));
virtual void shutdown(ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC((CORBA::SystemException));
- virtual void shutdown_excep(::Messaging::ExceptionHolder * h
+ virtual void shutdown_excep(Test::AMI_EchoExceptionHolder * h
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC((CORBA::SystemException));
diff --git a/TAO/tests/Portable_Interceptors/AMI/PI_AMI.mpc b/TAO/tests/Portable_Interceptors/AMI/PI_AMI.mpc
index f55237bc40f..e53f00164a1 100644
--- a/TAO/tests/Portable_Interceptors/AMI/PI_AMI.mpc
+++ b/TAO/tests/Portable_Interceptors/AMI/PI_AMI.mpc
@@ -13,7 +13,6 @@ project(*Client) : taoserver, ami, pi, interceptors {
project(*server) : taoserver, ami, pi_server, interceptors {
exename = server
- after += *Client
source_files {
server.cpp
Server_Interceptor.cpp
diff --git a/TAO/tests/Portable_Interceptors/AMI/client.cpp b/TAO/tests/Portable_Interceptors/AMI/client.cpp
index 571ccf476a0..dce0f615d48 100644
--- a/TAO/tests/Portable_Interceptors/AMI/client.cpp
+++ b/TAO/tests/Portable_Interceptors/AMI/client.cpp
@@ -6,6 +6,7 @@
#include "ace/Get_Opt.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include <iostream>
ACE_RCSID (AMI,
@@ -20,7 +21,7 @@ const unsigned long ITERATIONS = 100;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -50,8 +51,10 @@ static void test_ami (CORBA::ORB_ptr orb,
Test::Echo_ptr echo
ACE_ENV_ARG_DECL);
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
{
@@ -63,10 +66,10 @@ main (int argc, char *argv[])
}
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
diff --git a/TAO/tests/Portable_Interceptors/AMI/server.cpp b/TAO/tests/Portable_Interceptors/AMI/server.cpp
index 0c52ac89b18..3b3d86fec08 100644
--- a/TAO/tests/Portable_Interceptors/AMI/server.cpp
+++ b/TAO/tests/Portable_Interceptors/AMI/server.cpp
@@ -5,6 +5,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Portable_Interceptors,
@@ -17,7 +18,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -41,8 +42,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
{
@@ -54,7 +57,7 @@ main (int argc, char *argv[])
}
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -74,7 +77,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Echo *echo_impl;
@@ -92,7 +95,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/AdvSlot/AdvSlot.mpc b/TAO/tests/Portable_Interceptors/AdvSlot/AdvSlot.mpc
deleted file mode 100644
index d53cfd5839c..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlot/AdvSlot.mpc
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-project(*idl): taoidldefaults {
- IDL_Files {
- StateTransfer.idl
- }
- custom_only = 1
-}
-
-project(*Server): taoserver, pi_server, exceptions {
- after += *idl
- Source_Files {
- StateTransferS.cpp
- StateTransferC.cpp
- server.cpp
- }
- IDL_Files {
- }
-}
-
-project(*Client): taoclient, exceptions {
- after += *idl
- Source_Files {
- StateTransferC.cpp
- client.cpp
- }
- IDL_Files {
- }
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlot/StateTransfer.idl b/TAO/tests/Portable_Interceptors/AdvSlot/StateTransfer.idl
deleted file mode 100644
index 663d4c57cbc..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlot/StateTransfer.idl
+++ /dev/null
@@ -1,12 +0,0 @@
-// file : StateTransfer.idl
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-interface StateTransfer
-{
- short
- number ();
-
- oneway void
- shutdown ();
-};
diff --git a/TAO/tests/Portable_Interceptors/AdvSlot/client.cpp b/TAO/tests/Portable_Interceptors/AdvSlot/client.cpp
deleted file mode 100644
index 0a9b7436bf1..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlot/client.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "StateTransferC.h"
-
-int
-main (int argc, char *argv[])
-{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- if (argc != 2)
- {
- ACE_DEBUG ((LM_ERROR, "Usage: %s <ior>\n", argv[0]));
- return -1;
- }
-
- CORBA::Object_var obj = orb->string_to_object (argv[1]);
- StateTransfer_var server = StateTransfer::_narrow (obj.in ());
-
- CORBA::Short n = server->number ();
-
- ACE_DEBUG ((LM_ERROR, "Got number %d\n", n));
-
- server->shutdown ();
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlot/run_test.pl b/TAO/tests/Portable_Interceptors/AdvSlot/run_test.pl
deleted file mode 100755
index 2cfe882b1b5..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlot/run_test.pl
+++ /dev/null
@@ -1,50 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$file = PerlACE::LocalFile ("server.ior");
-
-unlink $file;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "");
-}
-else {
- $SV = new PerlACE::Process ("server", "");
-}
-$CL = new PerlACE::Process ("client", "file://$file");
-
-print STDERR "\n\n==== Running advanced slot test\n";
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($file, 15) == -1) {
- print STDERR "ERROR: cannot find file <$file>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (60);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $file;
-
-exit $status;
diff --git a/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp b/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp
deleted file mode 100644
index 6c5f5825295..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlot/server.cpp
+++ /dev/null
@@ -1,199 +0,0 @@
-// author : Boris Kolpackov <boris@kolpackov.net>
-// cvs-id : $Id$
-
-#include "tao/LocalObject.h"
-#include "tao/ORBInitializer_Registry.h"
-
-#include "tao/PI/PI.h"
-#include "tao/PI_Server/PI_Server.h"
-
-#include "ace/OS_NS_stdio.h"
-
-#include "StateTransferS.h"
-
-using namespace CORBA;
-using namespace PortableServer;
-using namespace PortableInterceptor;
-
-//
-//
-PortableInterceptor::SlotId slot_id;
-
-
-//
-//
-class StateTransferImpl: public virtual POA_StateTransfer
-{
-public:
- StateTransferImpl (ORB_ptr orb)
- : orb_ (ORB::_duplicate (orb))
- {
- }
-
- virtual Short
- number () throw (SystemException)
- {
- // Prepare state update.
- //
- Any state;
- CORBA::Long number = 5;
- state <<= number;
-
- Object_var obj (orb_->resolve_initial_references ("PICurrent"));
- PortableInterceptor::Current_var pic (
- PortableInterceptor::Current::_narrow (obj.in ()));
-
- pic->set_slot (slot_id, state);
-
- return 1;
- }
-
- virtual void
- shutdown () throw (SystemException)
- {
- ACE_DEBUG ((LM_DEBUG, "Server is shutting down.\n"));
- this->orb_->shutdown (0);
- }
-
-private:
- ORB_var orb_;
-};
-
-
-//
-//
-class ReplicaController: public virtual ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- virtual char*
- name () throw (SystemException)
- {
- return string_dup ("ReplicaController");
- }
-
- virtual void
- destroy () throw (SystemException)
- {
- }
-
-#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
- virtual void
- tao_ft_interception_point (ServerRequestInfo_ptr, OctetSeq_out)
- throw (SystemException, ForwardRequest)
- {
- }
-#endif /*TAO_HAS_EXTENDED_FT_INTERCEPTORS*/
-
- virtual void
- receive_request_service_contexts (ServerRequestInfo_ptr)
- throw (SystemException, ForwardRequest)
- {
- }
-
- virtual void
- receive_request (ServerRequestInfo_ptr)
- throw (SystemException, ForwardRequest)
- {
- }
-
- virtual void
- send_reply (ServerRequestInfo_ptr ri) throw (SystemException)
- {
- Any_var state (ri->get_slot (slot_id));
- CORBA::Long n (0);
- state >>= n;
-
- if (n == 5)
- ACE_DEBUG ((LM_DEBUG, "State value is correctly %d.\n", n));
- else
- ACE_ERROR ((LM_ERROR, "ERROR: State value is incorrectly %d.\n", n));
- }
-
- virtual void
- send_exception (ServerRequestInfo_ptr)
- throw (SystemException, ForwardRequest)
- {
- }
-
- virtual void
- send_other (ServerRequestInfo_ptr) throw (SystemException, ForwardRequest)
- {
- }
-};
-
-
-//
-//
-class ORB_Initializer : public virtual ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- virtual void
- pre_init (ORBInitInfo_ptr) throw (SystemException)
- {
- }
-
- virtual void
- post_init (ORBInitInfo_ptr info) throw (SystemException)
- {
- slot_id = info->allocate_slot_id ();
- ACE_DEBUG ((LM_DEBUG, "Allocated slot with id %d.\n", slot_id));
-
-
- ServerRequestInterceptor_var interceptor (new ReplicaController ());
- info->add_server_request_interceptor (interceptor.in ());
- }
-};
-
-int
-main (int argc, char *argv[])
-{
- ORBInitializer_var orb_initializer (new ORB_Initializer ());
- register_orb_initializer (orb_initializer.in ());
-
- ORB_var orb (ORB_init (argc, argv));
-
- Object_var obj (orb->resolve_initial_references ("RootPOA"));
-
- POA_var root_poa (POA::_narrow (obj.in ()));
- POAManager_var poa_manager (root_poa->the_POAManager ());
-
- StateTransferImpl* impl = new StateTransferImpl (orb.in ());
- ServantBase_var impl_var (impl);
-
- StateTransfer_var ref (impl->_this ());
- String_var ior (orb->object_to_string (ref.in ()));
-
- poa_manager->activate ();
-
-
- // Dump the ior.
- //
- FILE *output_file= ACE_OS::fopen ("server.ior", "w");
- if (output_file == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file <%s> for writing "
- "IOR: %s",
- ior.in ()),
- 1);
- }
-
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- ACE_DEBUG ((LM_DEBUG, "Server is ready, IOR is in 'server.ior'\n"));
-
-
- // Run the ORB event loop.
- //
- orb->run ();
-
- root_poa->destroy (1, 1);
- orb->destroy ();
-
- ACE_DEBUG ((LM_DEBUG, "Event loop finished.\n"));
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/AdvSlotDblCpy.mpc b/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/AdvSlotDblCpy.mpc
deleted file mode 100644
index 0242f6d3360..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/AdvSlotDblCpy.mpc
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-project(*idl): taoidldefaults {
- IDL_Files {
- InvokeMe.idl
- }
- custom_only = 1
-}
-
-project(*Server): taoserver, pi_server, exceptions {
- after += *idl
- Source_Files {
- InvokeMeS.cpp
- InvokeMeC.cpp
- server.cpp
- }
- IDL_Files {
- }
-}
-
-project(*Client): taoclient, exceptions {
- after += *idl
- Source_Files {
- InvokeMeC.cpp
- client.cpp
- }
- IDL_Files {
- }
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/InvokeMe.idl b/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/InvokeMe.idl
deleted file mode 100644
index a6f58fd0b93..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/InvokeMe.idl
+++ /dev/null
@@ -1,12 +0,0 @@
-// file : StateTransfer.idl
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-interface InvokeMe
-{
- void
- invoke_me ();
-
- oneway void
- shutdown ();
-};
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/README b/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/README
deleted file mode 100644
index 0ccccc13a8c..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/README
+++ /dev/null
@@ -1,60 +0,0 @@
-The test should complete without exceptions or asserts.
-
-This test checks that simply calling GetSlot works at every
-Server side interception point.
-
-This used to trigger the following assert in the send_reply
-interception point if the slot had not actually been updated
-after the RSC->TSC logical copy that occurs after the
-"receive_request_service_contexts" (such as in the
-"receive_request" or the actual IDL interface implementation
-code) before the logical copy TSC->RSC that then occurs
-before the "send_reply" interception point.
-
-send_reply -> get_slot(TSC) -> long (62) SERVER
-send_reply -> get_slot(RSC)
-ACE_ASSERT: file ...\TAO\tao\PI\PICurrent_Impl.cpp, line 53
-assertion failed for 'this->lc_slot_table_ !=
-&this->slot_table_'.Aborting...
-
-This test also checks that the set_slot(RSC) does not effect
-the TSC that exists before the first logical copy (at the end
-of receive_request_service_contexts) and after the second
-logical copy that occurs after the IDL interface implimentation
-call (i.e. during send_reply).
-
-The run should look like this:
-
-Allocated slot with id 0.
-Server is ready, IOR is in 'server.ior'
-SERVER receive_request_service_contexts -> get_slot(TSC) -> is EMPTY -> OK
-SERVER receive_request_service_contexts -> get_slot(RSC) -> is EMPTY -> OK
-SERVER receive_request_service_contexts -> set_slot(RSC) -> long (62)
-SERVER receive_request_service_contexts -> get_slot(TSC) -> is EMPTY -> OK
-SERVER receive_request_service_contexts -> get_slot(RSC) -> is long (62) -> OK
-SERVER receive_request -> get_slot(TSC) -> is long (62) -> OK
-SERVER receive_request -> get_slot(RSC) -> is long (62) -> OK
-invoke_me
-SERVER send_reply -> get_slot(TSC) -> is long (62) -> OK
-SERVER send_reply -> get_slot(RSC) -> is long (62) -> OK
-SERVER send_reply -> set_slot(RSC) -> long (63)
-SERVER send_reply -> get_slot(TSC) -> is long (62) -> OK
-SERVER send_reply -> get_slot(RSC) -> is long (63) -> OK
-
-SERVER receive_request_service_contexts -> get_slot(TSC) -> is long (62) -> OK
-SERVER receive_request_service_contexts -> get_slot(RSC) -> is EMPTY -> OK
-SERVER receive_request_service_contexts -> set_slot(RSC) -> long (62)
-SERVER receive_request_service_contexts -> get_slot(TSC) -> is long (62) -> OK
-SERVER receive_request_service_contexts -> get_slot(RSC) -> is long (62) -> OK
-SERVER receive_request -> get_slot(TSC) -> is long (62) -> OK
-SERVER receive_request -> get_slot(RSC) -> is long (62) -> OK
-invoke_me
-SERVER send_reply -> get_slot(TSC) -> is long (62) -> OK
-SERVER send_reply -> get_slot(RSC) -> is long (62) -> OK
-SERVER send_reply -> set_slot(RSC) -> long (63)
-SERVER send_reply -> get_slot(TSC) -> is long (62) -> OK
-SERVER send_reply -> get_slot(RSC) -> is long (63) -> OK
-
-
-Server is shutting down.
-Event loop finished.
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp b/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp
deleted file mode 100644
index 8a959137c9a..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/client.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "InvokeMeC.h"
-
-namespace
-{
- class always
- {
- const InvokeMe_ptr server_;
- public:
- always(const InvokeMe_ptr x):server_(x) {}
- ~always()
- {
- ACE_DEBUG ((LM_DEBUG, "\n"));
- server_->shutdown ();
- }
- };
-}
-
-int
-main (int argc, char *argv[])
-{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- if (argc != 2)
- {
- ACE_DEBUG ((LM_ERROR, "Usage: %s <ior>\n", argv[0]));
- return -1;
- }
-
- CORBA::Object_var obj = orb->string_to_object (argv[1]);
- InvokeMe_var server = InvokeMe::_narrow (obj.in ());
-
- always Shutdown( server.in () ); // When goes out of scope!
- server->invoke_me ();
- ACE_DEBUG ((LM_DEBUG, "\n"));
- server->invoke_me ();
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/run_test.pl b/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/run_test.pl
deleted file mode 100755
index 6adfc99fd7b..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/run_test.pl
+++ /dev/null
@@ -1,50 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$file = PerlACE::LocalFile ("server.ior");
-
-unlink $file;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "");
-}
-else {
- $SV = new PerlACE::Process ("server", "");
-}
-$CL = new PerlACE::Process ("client", "file://$file");
-
-print STDERR "\n\n==== Running advanced slot double copy test\n";
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($file, 15) == -1) {
- print STDERR "ERROR: cannot find file <$file>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (60);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $file;
-
-exit $status;
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp b/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp
deleted file mode 100644
index 729804b2872..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotDblCpy/server.cpp
+++ /dev/null
@@ -1,326 +0,0 @@
-// author : Boris Kolpackov <boris@kolpackov.net>
-// cvs-id : $Id$
-
-#include "tao/AnyTypeCode/AnyTypeCode_methods.h"
-
-#include "tao/PI/PI.h"
-#include "tao/PI_Server/PI_Server.h"
-
-#include "tao/LocalObject.h"
-#include "tao/ORBInitializer_Registry.h"
-
-#include "ace/OS_NS_stdio.h"
-
-#include "InvokeMeS.h"
-
-using namespace CORBA;
-using namespace PortableServer;
-using namespace PortableInterceptor;
-
-namespace
-{
- PortableInterceptor::SlotId slot_id;
-
- CORBA::Long getMySlot(
- PortableInterceptor::ServerRequestInfo_ptr ri,
- PortableInterceptor::Current_ptr pi_current,
- const char *location,
- const CORBA::Long correctTSCvalue,
- const CORBA::Long correctRSCvalue)
- {
- CORBA::Long number= 0;
- CORBA::String_var
- op= ri->operation ();
-
- const bool correctOperation=
- (0 == ACE_OS::strcmp( op.in (), "invoke_me" ));
-
- if (correctOperation)
- {
- CORBA::Any_var data;
-
- ACE_DEBUG ((LM_DEBUG, "SERVER %s -> get_slot(TSC) -> is ", location));
- data= pi_current->get_slot( slot_id );
- CORBA::TypeCode_var
- tc= data->type();
- if (tc->kind() == CORBA::tk_null)
- {
- ACE_DEBUG ((LM_DEBUG, "EMPTY -> "));
- if (0 != correctTSCvalue)
- {
- ACE_DEBUG ((LM_DEBUG, "WRONG\n"));
- throw INTERNAL ();
- }
- ACE_DEBUG ((LM_DEBUG, "OK\n"));
- }
- else if (data.in() >>= number)
- {
- ACE_DEBUG ((LM_DEBUG, "long (%d) -> ", number));
- if ((0 != correctTSCvalue) && (correctTSCvalue != number))
- {
- ACE_DEBUG ((LM_DEBUG, "WRONG\n"));
- throw INTERNAL ();
- }
- ACE_DEBUG ((LM_DEBUG, "OK\n"));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "UNKNOWN TYPE\n"));
- throw INTERNAL ();
- }
-
- ACE_DEBUG ((LM_DEBUG, "SERVER %s -> get_slot(RSC) -> is ", location));
- data= ri->get_slot( slot_id );
-
- tc= data->type();
- if (tc->kind() == CORBA::tk_null)
- {
- ACE_DEBUG ((LM_DEBUG, "EMPTY -> "));
- if (0 != correctRSCvalue)
- {
- ACE_DEBUG ((LM_DEBUG, "WRONG\n"));
- throw INTERNAL ();
- }
- ACE_DEBUG ((LM_DEBUG, "OK\n"));
-#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
- number= 61;
-#else
- number= 62;
-#endif /* TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1 */
- }
- else if (data.in() >>= number)
- {
- ACE_DEBUG ((LM_DEBUG, "long (%d) -> ", number));
- if ((0 != correctRSCvalue) && (correctRSCvalue != number))
- {
- ACE_DEBUG ((LM_DEBUG, "WRONG\n"));
- throw INTERNAL ();
- }
- ACE_DEBUG ((LM_DEBUG, "OK\n"));
- ++number;
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "WRONG TYPE\n"));
- throw INTERNAL();
- }
- }
-
- return number;
- }
-
- void getAndSetMySlot(
- PortableInterceptor::ServerRequestInfo_ptr ri,
- PortableInterceptor::Current_ptr pi_current,
- const char *location,
- const CORBA::Long correctTSCvalue,
- const CORBA::Long correctRSCvalue)
- {
- const CORBA::Long number=
- getMySlot(
- ri,
- pi_current,
- location,
- correctTSCvalue,
- correctRSCvalue );
-
- if (number && (0 != ACE_OS::strcmp( location, "receive_request" )))
- {
- // Insert data into the RSC (request scope current).
- CORBA::Any data;
- data <<= number;
-
- ACE_DEBUG ((LM_DEBUG, "SERVER %s -> set_slot(RSC)", location));
- ri->set_slot( slot_id, data );
-
- ACE_DEBUG ((LM_DEBUG, " -> long (%d)\n", number));
-
- getMySlot(
- ri,
- pi_current,
- location,
- correctTSCvalue,
- number );
- }
- }
-}
-
-//
-//
-class InvokeMeImpl: public virtual POA_InvokeMe
-{
-public:
- InvokeMeImpl (ORB_ptr orb)
- : orb_ (ORB::_duplicate (orb))
- {
- }
-
- virtual void invoke_me() throw (SystemException)
- {
- ACE_DEBUG ((LM_DEBUG, "invoke_me\n"));
- }
-
- virtual void
- shutdown () throw (SystemException)
- {
- ACE_DEBUG ((LM_DEBUG, "\nServer is shutting down.\n"));
- this->orb_->shutdown (0);
- }
-
-private:
- ORB_var orb_;
-};
-
-
-//
-//
-class ReplicaController: public virtual ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
- PortableInterceptor::Current_ptr pi_current_;
-public:
- ReplicaController ( PortableInterceptor::Current_ptr pi_current )
- : pi_current_( pi_current )
- {
- }
-
- virtual char*
- name () throw (SystemException)
- {
- return string_dup ("ReplicaController");
- }
-
- virtual void
- destroy () throw (SystemException)
- {
- }
-
-#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
- virtual void
- tao_ft_interception_point (ServerRequestInfo_ptr ri, OctetSeq_out)
- throw (SystemException, ForwardRequest)
- {
- getAndSetMySlot( ri, this->pi_current_, "tao_ft_interception_point", 0, 0 );
- }
-#endif /*TAO_HAS_EXTENDED_FT_INTERCEPTORS*/
-
- virtual void
- receive_request_service_contexts (ServerRequestInfo_ptr ri)
- throw (SystemException, ForwardRequest)
- {
-#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
- getAndSetMySlot( ri, this->pi_current_, "receive_request_service_contexts", 0, 61 );
-#else
- getAndSetMySlot( ri, this->pi_current_, "receive_request_service_contexts", 0, 0 );
-#endif /* TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1 */
- }
-
- virtual void
- receive_request (ServerRequestInfo_ptr ri)
- throw (SystemException, ForwardRequest)
- {
- getAndSetMySlot( ri, this->pi_current_, "receive_request", 62, 62 );
- }
-
- virtual void
- send_reply (ServerRequestInfo_ptr ri) throw (SystemException)
- {
- getAndSetMySlot( ri, this->pi_current_, "send_reply", 62, 62 );
- }
-
- virtual void
- send_exception (ServerRequestInfo_ptr ri)
- throw (SystemException, ForwardRequest)
- {
- getAndSetMySlot( ri, this->pi_current_, "send_exception", 62, 62 );
- }
-
- virtual void
- send_other (ServerRequestInfo_ptr ri)
- throw (SystemException, ForwardRequest)
- {
- getAndSetMySlot( ri, this->pi_current_, "send_other", 62, 62 );
- }
-};
-
-
-//
-//
-class ORB_Initializer : public virtual ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- virtual void
- pre_init (ORBInitInfo_ptr) throw (SystemException)
- {
- }
-
- virtual void
- post_init (ORBInitInfo_ptr info) throw (SystemException)
- {
- CORBA::Object_var obj =
- info->resolve_initial_references ("PICurrent");
-
- PortableInterceptor::Current_var pi_current =
- PortableInterceptor::Current::_narrow (obj.in ());
-
- slot_id = info->allocate_slot_id ();
- ACE_DEBUG ((LM_DEBUG, "Allocated slot with id %d.\n", slot_id));
-
- ServerRequestInterceptor_var
- interceptor (new ReplicaController (pi_current.in ()));
- info->add_server_request_interceptor (interceptor.in ());
- }
-};
-
-int
-main (int argc, char *argv[])
-{
- ORBInitializer_var orb_initializer (new ORB_Initializer ());
- register_orb_initializer (orb_initializer.in ());
-
- ORB_var orb (ORB_init (argc, argv));
-
- Object_var obj (orb->resolve_initial_references ("RootPOA"));
-
- POA_var root_poa (POA::_narrow (obj.in ()));
- POAManager_var poa_manager (root_poa->the_POAManager ());
-
- InvokeMeImpl* impl = new InvokeMeImpl (orb.in ());
- ServantBase_var impl_var (impl);
-
- InvokeMe_var ref (impl->_this ());
- String_var ior (orb->object_to_string (ref.in ()));
-
- poa_manager->activate ();
-
-
- // Dump the ior.
- //
- FILE *output_file= ACE_OS::fopen ("server.ior", "w");
- if (output_file == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file <%s> for writing "
- "IOR: %s",
- ior.in ()),
- 1);
- }
-
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- ACE_DEBUG ((LM_DEBUG, "Server is ready, IOR is in 'server.ior'\n"));
-
-
- // Run the ORB event loop.
- //
- orb->run ();
-
- root_poa->destroy (1, 1);
- orb->destroy ();
-
- ACE_DEBUG ((LM_DEBUG, "Event loop finished.\n"));
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotExt/AdvSlotExt.mpc b/TAO/tests/Portable_Interceptors/AdvSlotExt/AdvSlotExt.mpc
deleted file mode 100644
index d53cfd5839c..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotExt/AdvSlotExt.mpc
+++ /dev/null
@@ -1,28 +0,0 @@
-// $Id$
-project(*idl): taoidldefaults {
- IDL_Files {
- StateTransfer.idl
- }
- custom_only = 1
-}
-
-project(*Server): taoserver, pi_server, exceptions {
- after += *idl
- Source_Files {
- StateTransferS.cpp
- StateTransferC.cpp
- server.cpp
- }
- IDL_Files {
- }
-}
-
-project(*Client): taoclient, exceptions {
- after += *idl
- Source_Files {
- StateTransferC.cpp
- client.cpp
- }
- IDL_Files {
- }
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotExt/StateTransfer.idl b/TAO/tests/Portable_Interceptors/AdvSlotExt/StateTransfer.idl
deleted file mode 100644
index 663d4c57cbc..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotExt/StateTransfer.idl
+++ /dev/null
@@ -1,12 +0,0 @@
-// file : StateTransfer.idl
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-interface StateTransfer
-{
- short
- number ();
-
- oneway void
- shutdown ();
-};
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotExt/client.cpp b/TAO/tests/Portable_Interceptors/AdvSlotExt/client.cpp
deleted file mode 100644
index 0a9b7436bf1..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotExt/client.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "StateTransferC.h"
-
-int
-main (int argc, char *argv[])
-{
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- if (argc != 2)
- {
- ACE_DEBUG ((LM_ERROR, "Usage: %s <ior>\n", argv[0]));
- return -1;
- }
-
- CORBA::Object_var obj = orb->string_to_object (argv[1]);
- StateTransfer_var server = StateTransfer::_narrow (obj.in ());
-
- CORBA::Short n = server->number ();
-
- ACE_DEBUG ((LM_ERROR, "Got number %d\n", n));
-
- server->shutdown ();
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotExt/run_test.pl b/TAO/tests/Portable_Interceptors/AdvSlotExt/run_test.pl
deleted file mode 100755
index 2cfe882b1b5..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotExt/run_test.pl
+++ /dev/null
@@ -1,50 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-$file = PerlACE::LocalFile ("server.ior");
-
-unlink $file;
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "");
-}
-else {
- $SV = new PerlACE::Process ("server", "");
-}
-$CL = new PerlACE::Process ("client", "file://$file");
-
-print STDERR "\n\n==== Running advanced slot test\n";
-
-$SV->Spawn ();
-
-if (PerlACE::waitforfile_timed ($file, 15) == -1) {
- print STDERR "ERROR: cannot find file <$file>\n";
- $SV->Kill ();
- exit 1;
-}
-
-$client = $CL->SpawnWaitKill (60);
-
-if ($client != 0) {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-unlink $file;
-
-exit $status;
diff --git a/TAO/tests/Portable_Interceptors/AdvSlotExt/server.cpp b/TAO/tests/Portable_Interceptors/AdvSlotExt/server.cpp
deleted file mode 100644
index 1a1256f6ad7..00000000000
--- a/TAO/tests/Portable_Interceptors/AdvSlotExt/server.cpp
+++ /dev/null
@@ -1,242 +0,0 @@
-// author : Boris Kolpackov <boris@kolpackov.net>
-// cvs-id : $Id$
-
-#include "tao/LocalObject.h"
-#include "tao/ORBInitializer_Registry.h"
-
-#include "tao/PI/PI.h"
-#include "tao/PI_Server/PI_Server.h"
-
-#include "ace/OS_NS_stdio.h"
-
-#include "StateTransferS.h"
-
-using namespace CORBA;
-using namespace PortableServer;
-using namespace PortableInterceptor;
-
-//
-//
-PortableInterceptor::SlotId slot_id;
-
-
-//
-//
-class StateTransferImpl: public virtual POA_StateTransfer
-{
-public:
- StateTransferImpl (ORB_ptr orb)
- : orb_ (ORB::_duplicate (orb))
- {
- }
-
- virtual Short
- number () throw (SystemException)
- {
- // Prepare state update.
- //
- Any state;
- CORBA::Long number = 5;
- state <<= number;
-
- Object_var obj (orb_->resolve_initial_references ("PICurrent"));
- PortableInterceptor::Current_var pic (
- PortableInterceptor::Current::_narrow (obj.in ()));
-
- pic->set_slot (slot_id, state);
-
- return 1;
- }
-
- virtual void
- shutdown () throw (SystemException)
- {
- ACE_DEBUG ((LM_DEBUG, "Server is shutting down.\n"));
- this->orb_->shutdown (0);
- }
-
-private:
- ORB_var orb_;
-};
-
-
-//
-//
-class ReplicaController: public virtual ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- ReplicaController (PortableInterceptor::Current_ptr pi_current)
- : pi_current_ (PortableInterceptor::Current::_duplicate (pi_current))
- {
- }
-
- virtual char*
- name () throw (SystemException)
- {
- return string_dup ("ReplicaController");
- }
-
- virtual void
- destroy () throw (SystemException)
- {
- }
-
-#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1
- virtual void
- tao_ft_interception_point (ServerRequestInfo_ptr, OctetSeq_out)
- throw (SystemException, ForwardRequest)
- {
- }
-#endif /*TAO_HAS_EXTENDED_FT_INTERCEPTORS*/
-
- virtual void
- receive_request_service_contexts (ServerRequestInfo_ptr)
- throw (SystemException, ForwardRequest)
- {
- }
-
- virtual void
- receive_request (ServerRequestInfo_ptr ri)
- throw (SystemException, ForwardRequest)
- {
- Any state;
- CORBA::Long number = 5;
- state <<= number;
-
- // After we have set things to TSC, change the value in RSC, at this
- // moment no copy should be done anymore.
- pi_current_->set_slot (slot_id, state);
- CORBA::Long number6 = 6;
- state <<= number6;
- ri->set_slot (slot_id, state);
-
- Any_var state_get (pi_current_->get_slot (slot_id));
- CORBA::Long n (0);
- state_get >>= n;
-
- if (n == 5)
- ACE_DEBUG ((LM_DEBUG, "State value is correctly %d.\n", n));
- else
- ACE_ERROR ((LM_ERROR, "ERROR: State value is incorrectly %d.\n", n));
- }
-
- virtual void
- send_reply (ServerRequestInfo_ptr ri) throw (SystemException)
- {
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
-
- if (ACE_OS::strcmp (op.in (), "number") != 0)
- return; // Don't mess with PICurrent if not invoking test method.
-
- Any_var state (ri->get_slot (slot_id));
- CORBA::Long n (0);
- state >>= n;
-
- if (n == 5)
- ACE_DEBUG ((LM_DEBUG, "State value is correctly %d.\n", n));
- else
- ACE_ERROR ((LM_ERROR, "ERROR: State value is incorrectly %d.\n", n));
- }
-
- virtual void
- send_exception (ServerRequestInfo_ptr)
- throw (SystemException, ForwardRequest)
- {
- }
-
- virtual void
- send_other (ServerRequestInfo_ptr) throw (SystemException, ForwardRequest)
- {
- }
- PortableInterceptor::Current_var pi_current_;
-};
-
-
-//
-//
-class ORB_Initializer : public virtual ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- virtual void
- pre_init (ORBInitInfo_ptr) throw (SystemException)
- {
- }
-
- virtual void
- post_init (ORBInitInfo_ptr info) throw (SystemException)
- {
- slot_id = info->allocate_slot_id ();
- ACE_DEBUG ((LM_DEBUG, "Allocated slot with id %d.\n", slot_id));
-
- CORBA::Object_var obj =
- info->resolve_initial_references ("PICurrent");
-
- PortableInterceptor::Current_var pi_current =
- PortableInterceptor::Current::_narrow (obj.in ());
-
- if (CORBA::is_nil (pi_current.in ()))
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Could not resolve PICurrent object.\n"));
-
- ACE_THROW (CORBA::INTERNAL ());
- }
-
- ServerRequestInterceptor_var interceptor (new ReplicaController (pi_current.in ()));
- info->add_server_request_interceptor (interceptor.in ());
- }
-};
-
-int
-main (int argc, char *argv[])
-{
- ORBInitializer_var orb_initializer (new ORB_Initializer ());
- register_orb_initializer (orb_initializer.in ());
-
- ORB_var orb (ORB_init (argc, argv));
-
- Object_var obj (orb->resolve_initial_references ("RootPOA"));
-
- POA_var root_poa (POA::_narrow (obj.in ()));
- POAManager_var poa_manager (root_poa->the_POAManager ());
-
- StateTransferImpl* impl = new StateTransferImpl (orb.in ());
- ServantBase_var impl_var (impl);
-
- StateTransfer_var ref (impl->_this ());
- String_var ior (orb->object_to_string (ref.in ()));
-
- poa_manager->activate ();
-
-
- // Dump the ior.
- //
- FILE *output_file= ACE_OS::fopen ("server.ior", "w");
- if (output_file == 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file <%s> for writing "
- "IOR: %s",
- ior.in ()),
- 1);
- }
-
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
-
- ACE_DEBUG ((LM_DEBUG, "Server is ready, IOR is in 'server.ior'\n"));
-
-
- // Run the ORB event loop.
- //
- orb->run ();
-
- root_poa->destroy (1, 1);
- orb->destroy ();
-
- ACE_DEBUG ((LM_DEBUG, "Event loop finished.\n"));
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Benchmark/Interceptor_Type.cpp b/TAO/tests/Portable_Interceptors/Benchmark/Interceptor_Type.cpp
index 4d79250c2cb..1f6c8ba7482 100644
--- a/TAO/tests/Portable_Interceptors/Benchmark/Interceptor_Type.cpp
+++ b/TAO/tests/Portable_Interceptors/Benchmark/Interceptor_Type.cpp
@@ -16,13 +16,13 @@ void get_interceptor_type (int argc, char *argv[],
{
if (ACE_OS_String::strcmp (argv[i], "-r") == 0)
{
- if (ACE_OS_String::strcmp (argv[i+1], ACE_TEXT ("none")) == 0)
+ if (ACE_OS_String::strcmp (argv[i+1], "none") == 0)
interceptor_type = IT_NONE;
- if (ACE_OS_String::strcmp (argv[i+1], ACE_TEXT ("noop")) == 0)
+ if (ACE_OS_String::strcmp (argv[i+1], "noop") == 0)
interceptor_type = IT_NOOP;
- if (ACE_OS_String::strcmp (argv[i+1], ACE_TEXT ("context")) == 0)
+ if (ACE_OS_String::strcmp (argv[i+1], "context") == 0)
interceptor_type = IT_CONTEXT;
- if (ACE_OS_String::strcmp (argv[i+1], ACE_TEXT ("dynamic")) == 0)
+ if (ACE_OS_String::strcmp (argv[i+1], "dynamic") == 0)
interceptor_type = IT_DYNAMIC;
}
}
diff --git a/TAO/tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc b/TAO/tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc
index 59737568104..44a76c957f7 100644
--- a/TAO/tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc
+++ b/TAO/tests/Portable_Interceptors/Benchmark/PI_Benchmark.mpc
@@ -13,7 +13,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
client_interceptors.cpp
diff --git a/TAO/tests/Portable_Interceptors/Benchmark/client.cpp b/TAO/tests/Portable_Interceptors/Benchmark/client.cpp
index a874f7d3121..fe89e466e8b 100644
--- a/TAO/tests/Portable_Interceptors/Benchmark/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Benchmark/client.cpp
@@ -10,6 +10,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Benchmark,
client,
@@ -22,7 +23,7 @@ int register_interceptor = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ef:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ef:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -158,8 +159,10 @@ run_test (Test_Interceptors::Secure_Vault_ptr server
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
+ ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
@@ -181,7 +184,7 @@ main (int argc, char *argv[])
}
int interceptor_type;
- get_interceptor_type (argc, argv, interceptor_type);
+ get_interceptor_type (convert.get_argc(), convert.get_ASCII_argv(), interceptor_type);
ACE_TRY_NEW_ENV
{
@@ -198,10 +201,10 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/Benchmark/marker.cpp b/TAO/tests/Portable_Interceptors/Benchmark/marker.cpp
index dda5ff3c73b..1f4be34e3e7 100644
--- a/TAO/tests/Portable_Interceptors/Benchmark/marker.cpp
+++ b/TAO/tests/Portable_Interceptors/Benchmark/marker.cpp
@@ -30,13 +30,13 @@ Marker::dump_stats (const char* msg,
switch (which_method)
{
case 1: // method ready
- this->throughput_method_ready_.dump_results (msg, gsf);
+ this->throughput_method_ready_.dump_results (ACE_TEXT_TO_TCHAR_IN(msg), gsf);
break;
case 2: // method authentciate
- this->throughput_method_authenticate_.dump_results (msg, gsf);
+ this->throughput_method_authenticate_.dump_results (ACE_TEXT_TO_TCHAR_IN(msg), gsf);
break;
case 3: // method update_records
- this->throughput_method_update_records_.dump_results (msg, gsf);
+ this->throughput_method_update_records_.dump_results (ACE_TEXT_TO_TCHAR_IN(msg), gsf);
break;
default:
break;
diff --git a/TAO/tests/Portable_Interceptors/Benchmark/server.cpp b/TAO/tests/Portable_Interceptors/Benchmark/server.cpp
index c556aed2940..03cb740a662 100644
--- a/TAO/tests/Portable_Interceptors/Benchmark/server.cpp
+++ b/TAO/tests/Portable_Interceptors/Benchmark/server.cpp
@@ -8,6 +8,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Benchmark, server, "$Id$")
@@ -17,7 +18,7 @@ int register_interceptor = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,10 +41,12 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int interceptor_type;
- get_interceptor_type (argc, argv, interceptor_type);
+ get_interceptor_type (convert.get_argc(), convert.get_ASCII_argv(), interceptor_type);
ACE_TRY_NEW_ENV
{
@@ -60,10 +63,10 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
@@ -113,7 +116,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc b/TAO/tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc
index 2e992878fcb..1a864c9e26f 100644
--- a/TAO/tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc
+++ b/TAO/tests/Portable_Interceptors/Bug_1559/Bug_1559.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
Client_ORBInitializer.cpp
diff --git a/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp b/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp
index 09231faacf2..0f94ba59f5c 100644
--- a/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "Client_ORBInitializer.h"
#include "tao/ORBInitializer_Registry.h"
@@ -12,7 +13,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ef:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ef:");
int c;
while ((c = get_opts ()) != -1)
@@ -76,8 +77,10 @@ run_test (Test_Interceptors::Visual_ptr server
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
PortableInterceptor::ORBInitializer_ptr temp_initializer;
@@ -93,10 +96,10 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/Bug_1559/server.cpp b/TAO/tests/Portable_Interceptors/Bug_1559/server.cpp
index 35f0c3ada75..81e0b7e9aee 100644
--- a/TAO/tests/Portable_Interceptors/Bug_1559/server.cpp
+++ b/TAO/tests/Portable_Interceptors/Bug_1559/server.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "Server_ORBInitializer.h"
#include "tao/ORBInitializer_Registry.h"
@@ -15,7 +16,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,8 +39,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
Server_ORBInitializer * temp_initializer = 0;
@@ -56,7 +59,7 @@ main (int argc, char *argv[])
// Now we can create the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -79,7 +82,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Visual_i server_impl (orb.in ());
@@ -136,7 +139,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp b/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp
index 2b3ff3f6fbb..934d4d279d9 100644
--- a/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp
@@ -1,14 +1,17 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "Client_ORBInitializer.h"
#include "tao/ORBInitializer_Registry.h"
ACE_RCSID(Interceptors, client, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Client_ORBInitializer* initializer1 = 0;
Client_ORBInitializer* initializer2 = 0;
bool caught_exception = false;
@@ -38,7 +41,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp
index 1aaceae2c8c..894d6616e48 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp
+++ b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp
@@ -9,6 +9,7 @@
#include "ace/Argv_Type_Converter.h"
#include "ace/SString.h"
#include "ace/Manual_Event.h"
+#include "ace/Argv_Type_Converter.h"
const char *output = "test.ior";
const char *input = "file://test.ior";
@@ -17,7 +18,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o");
int c;
while ((c = get_opts ()) != -1)
@@ -39,10 +40,11 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
server_orb.set ("server_orb");
@@ -64,10 +66,9 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- ACE_Argv_Type_Converter satc (argc, argv);
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -88,10 +89,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -109,9 +109,6 @@ main (int argc, char *argv[])
ACE_Thread_Manager::instance ()->wait ();
- sorb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
CORBA::ULong number_called =
Echo_Server_Request_Interceptor::server_interceptor_check_;
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp
index a9db6a71b8a..939313f9865 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp
+++ b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.cpp
@@ -76,7 +76,7 @@ Server_Task::svc (void)
// If the ior_output_file exists, output the ior to it
if (output_ != 0)
{
- FILE *output_file= ACE_OS::fopen (this->output_, "w");
+ FILE *output_file= ACE_OS::fopen (this->output_, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -96,6 +96,9 @@ Server_Task::svc (void)
root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+
+ this->sorb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.h b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.h
index 2101f9a9a15..7bac19ca641 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.h
+++ b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Server_Task.h
@@ -15,9 +15,7 @@
#include "ace/Task.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/test_i.cpp b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/test_i.cpp
index 949bea21eb6..3f4b1a38bb3 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/test_i.cpp
+++ b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/test_i.cpp
@@ -1,7 +1,6 @@
// $Id$
#include "test_i.h"
-#include "ace/OS_NS_unistd.h"
ACE_RCSID(Dynamic, test_i, "$Id$")
@@ -52,9 +51,5 @@ Visual_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- // Give the client thread time to return from the collocated
- // call to this method before shutting down the ORB. We sleep
- // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
- ACE_OS::sleep (1);
this->orb_->shutdown ();
}
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp
index 27644baab31..5f337e514d2 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp
+++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp
@@ -7,6 +7,7 @@
#include "ace/Argv_Type_Converter.h"
#include "ace/SString.h"
#include "ace/Manual_Event.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "interceptors.h"
#include "Collocated_ORBInitializer.h"
@@ -19,7 +20,7 @@ ACE_CString client_orb;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:o");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:o");
int c;
while ((c = get_opts ()) != -1)
@@ -41,10 +42,11 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc,
- argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
server_orb.set ("server_orb");
@@ -65,11 +67,9 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- ACE_Argv_Type_Converter satc (argc, argv);
-
CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
server_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -91,10 +91,9 @@ main (int argc, char *argv[])
// Wait for the server thread to do some processing
me.wait ();
- ACE_Argv_Type_Converter catc (argc, argv);
CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
client_orb.c_str ()
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.cpp b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.cpp
index 1133217c973..69e1e5cb96b 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.cpp
+++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.cpp
@@ -69,7 +69,7 @@ Server_Task::svc (void)
// If the ior_output_file exists, output the ior to it
if (output_ != 0)
{
- FILE *output_file= ACE_OS::fopen (output_, "w");
+ FILE *output_file= ACE_OS::fopen (output_, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.h b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.h
index e048b0f737d..2d0c8fbdb2b 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.h
+++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Server_Task.h
@@ -13,9 +13,7 @@
#include "tao/ORB.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp
index c51e4c75a58..ade05ba7202 100644
--- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp
+++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/test_i.cpp
@@ -51,6 +51,6 @@ Visual_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
- this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+ this->orb_->shutdown (1 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
diff --git a/TAO/tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc b/TAO/tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc
index a55faf91bbf..88fa97fd7ba 100644
--- a/TAO/tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc
+++ b/TAO/tests/Portable_Interceptors/Dynamic/PI_Dynamic.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
client_interceptor.cpp
diff --git a/TAO/tests/Portable_Interceptors/Dynamic/client.cpp b/TAO/tests/Portable_Interceptors/Dynamic/client.cpp
index c3d906faeb3..d506f6b6adc 100644
--- a/TAO/tests/Portable_Interceptors/Dynamic/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Dynamic/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "Echo_Client_ORBInitializer.h"
@@ -16,7 +17,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ef:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ef:");
int c;
while ((c = get_opts ()) != -1)
@@ -97,8 +98,10 @@ run_test (Test_Interceptors::Visual_ptr server
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
#if TAO_HAS_INTERCEPTORS == 1
@@ -117,10 +120,10 @@ main (int argc, char *argv[])
#endif /* TAO_HAS_INTERCEPTORS == 1 */
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/Dynamic/server.cpp b/TAO/tests/Portable_Interceptors/Dynamic/server.cpp
index 2197bc560bb..16795ae9459 100644
--- a/TAO/tests/Portable_Interceptors/Dynamic/server.cpp
+++ b/TAO/tests/Portable_Interceptors/Dynamic/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "Echo_Server_ORBInitializer.h"
#include "ace/OS_NS_stdio.h"
@@ -16,7 +17,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,8 +40,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
#if TAO_HAS_INTERCEPTORS == 1
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
#endif /* TAO_HAS_INTERCEPTORS == 1 */
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -82,7 +85,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Visual_i server_impl (orb.in ());
@@ -111,7 +114,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp
index 3e1cf79ca24..9bf6e9024a2 100644
--- a/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp
+++ b/TAO/tests/Portable_Interceptors/Dynamic/server_interceptor.cpp
@@ -1,12 +1,12 @@
// $Id$
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-
#include "server_interceptor.h"
#include "testC.h"
+#include "tao/AnyTypeCode/DynamicC.h"
+#include "tao/AnyTypeCode/TypeCode.h"
+#include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h"
+
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
diff --git a/TAO/tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc b/TAO/tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc
index 57393219165..37b911f8198 100644
--- a/TAO/tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc
+++ b/TAO/tests/Portable_Interceptors/ForwardRequest/PI_ForwardRequest.mpc
@@ -2,6 +2,7 @@
// $Id$
project(*Server): taoserver, valuetype, pi, pi_server, interceptors {
+ idlflags += -DCORBA3
Source_Files {
test_i.cpp
@@ -12,8 +13,8 @@ project(*Server): taoserver, valuetype, pi, pi_server, interceptors {
}
project(*Client): taoclient, valuetype, pi, pi_server, interceptors {
- after += *Server
-
+ idlflags += -DCORBA3
+
Source_Files {
testC.cpp
Client_ORBInitializer.cpp
diff --git a/TAO/tests/Portable_Interceptors/ForwardRequest/client.cpp b/TAO/tests/Portable_Interceptors/ForwardRequest/client.cpp
index c04cfbaf890..1fea9ed48aa 100644
--- a/TAO/tests/Portable_Interceptors/ForwardRequest/client.cpp
+++ b/TAO/tests/Portable_Interceptors/ForwardRequest/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "Client_ORBInitializer.h"
@@ -22,7 +23,7 @@ parse_args (int argc, char *argv[])
"Wrong number of arguments.\n"),
-1);
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -48,8 +49,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_DECLARE_NEW_CORBA_ENV;
@@ -70,13 +73,13 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
#endif /* TAO_HAS_INTERCEPTORS == 1 */
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"Client ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Start out with the first IOR. Interaction with the second
diff --git a/TAO/tests/Portable_Interceptors/ForwardRequest/server.cpp b/TAO/tests/Portable_Interceptors/ForwardRequest/server.cpp
index 286a18b98c0..22b93a566d1 100644
--- a/TAO/tests/Portable_Interceptors/ForwardRequest/server.cpp
+++ b/TAO/tests/Portable_Interceptors/ForwardRequest/server.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "Server_ORBInitializer.h"
@@ -24,7 +25,7 @@ parse_args (int argc, char *argv[])
"Wrong number of arguments.\n"),
-1);
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
int ior_count = 1;
@@ -58,8 +59,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
#endif /* TAO_HAS_INTERCEPTORS == 1 */
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "Server ORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "Server ORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -97,7 +100,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::PolicyList policies; // Empty policy list.
@@ -186,7 +189,7 @@ main (int argc, char *argv[])
// Write each IOR to a file.
// IOR 1
- FILE *output_file= ACE_OS::fopen (ior1_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior1_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file <%s> for writing "
@@ -197,7 +200,7 @@ main (int argc, char *argv[])
ACE_OS::fclose (output_file);
// IOR 2
- output_file= ACE_OS::fopen (ior2_file, "w");
+ output_file= ACE_OS::fopen (ior2_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.cpp b/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.cpp
index 2bf02d1ef30..6cfa38f8bde 100644
--- a/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.cpp
+++ b/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_ClientRequestInterceptor.cpp
@@ -3,7 +3,7 @@
#include "ace/Log_Msg.h"
-#include "tao/AnyTypeCode/TypeCode_Constants.h"
+#include "tao/AnyTypeCode/TC_Constants_Forward.h"
ACE_RCSID (IORInterceptor,
FOO_ClientRequestInterceptor,
diff --git a/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h b/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h
index 699083a8fde..3470e22c973 100644
--- a/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h
+++ b/TAO/tests/Portable_Interceptors/IORInterceptor/FOO_IORInterceptor.h
@@ -42,7 +42,7 @@
* properly.
*/
class FOO_IORInterceptor
- : public virtual PortableInterceptor::IORInterceptor_3_0,
+ : public virtual PortableInterceptor::IORInterceptor,
public virtual TAO_Local_RefCounted_Object
{
public:
diff --git a/TAO/tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc b/TAO/tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc
index fddc7298207..26777d6f625 100644
--- a/TAO/tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc
+++ b/TAO/tests/Portable_Interceptors/IORInterceptor/PI_IORInterceptor.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver, iorinterceptor, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
FOO_Client_ORBInitializer.cpp
diff --git a/TAO/tests/Portable_Interceptors/IORInterceptor/client.cpp b/TAO/tests/Portable_Interceptors/IORInterceptor/client.cpp
index a482b81963e..dd87bbcbc9a 100644
--- a/TAO/tests/Portable_Interceptors/IORInterceptor/client.cpp
+++ b/TAO/tests/Portable_Interceptors/IORInterceptor/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "FOO_Client_ORBInitializer.h"
@@ -16,7 +17,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,8 +38,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -58,10 +61,10 @@ main (int argc, char *argv[])
#endif /* TAO_HAS_INTERCEPTORS == 1 */
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "client_orb" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "client_orb" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var obj =
diff --git a/TAO/tests/Portable_Interceptors/IORInterceptor/server.cpp b/TAO/tests/Portable_Interceptors/IORInterceptor/server.cpp
index a91cf021548..2830c220741 100644
--- a/TAO/tests/Portable_Interceptors/IORInterceptor/server.cpp
+++ b/TAO/tests/Portable_Interceptors/IORInterceptor/server.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "FOO_IORInterceptor_ORBInitializer.h"
@@ -17,7 +18,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -40,8 +41,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -61,8 +64,8 @@ main (int argc, char *argv[])
#endif /* TAO_HAS_INTERCEPTORS == 1 */
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"test_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -88,7 +91,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i server_impl (orb.in ());
@@ -115,7 +118,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the IOR to it.
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing "
@@ -130,10 +133,6 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
ACE_DEBUG ((LM_INFO, "Event loop finished.\n"));
-
- // The interceptors will be destroyed when we call this
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
}
ACE_CATCHANY
{
diff --git a/TAO/tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc b/TAO/tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc
index 600ba5c118b..90a4632fc2b 100644
--- a/TAO/tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc
+++ b/TAO/tests/Portable_Interceptors/ORB_Shutdown/PI_ORB_Shutdown.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
testC.cpp
diff --git a/TAO/tests/Portable_Interceptors/ORB_Shutdown/client.cpp b/TAO/tests/Portable_Interceptors/ORB_Shutdown/client.cpp
index ca70543c315..be930e9932e 100644
--- a/TAO/tests/Portable_Interceptors/ORB_Shutdown/client.cpp
+++ b/TAO/tests/Portable_Interceptors/ORB_Shutdown/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
@@ -15,7 +16,7 @@ const char *ior = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,18 +40,20 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"Client ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/ORB_Shutdown/server.cpp b/TAO/tests/Portable_Interceptors/ORB_Shutdown/server.cpp
index 000fda92d76..ce7eff2c135 100644
--- a/TAO/tests/Portable_Interceptors/ORB_Shutdown/server.cpp
+++ b/TAO/tests/Portable_Interceptors/ORB_Shutdown/server.cpp
@@ -1,4 +1,5 @@
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "Server_ORBInitializer.h"
@@ -18,7 +19,7 @@ const char *ior_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,8 +40,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
#endif /* TAO_HAS_INTERCEPTORS == 1 */
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "Server ORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "Server ORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -83,7 +86,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -102,7 +105,7 @@ main (int argc, char *argv[])
ior.in ()));
// Write IOR to a file.
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file <%s> for writing "
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc b/TAO/tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc
index 39a60cd5c75..fcb0a6c8382 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc
+++ b/TAO/tests/Portable_Interceptors/PICurrent/PI_PICurrent.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
ClientORBInitializer.cpp
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp b/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp
index a76d1d5b774..d3c5ed1d9b8 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp
+++ b/TAO/tests/Portable_Interceptors/PICurrent/ServerRequestInterceptor.cpp
@@ -80,60 +80,11 @@ ServerRequestInterceptor::receive_request_service_contexts (
void
ServerRequestInterceptor::receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
+ PortableInterceptor::ServerRequestInfo_ptr
+ ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
{
- ACE_TRY
- {
- CORBA::Any new_data;
- CORBA::Long number = 19;
- new_data <<= number;
-
- // Set a value in RSC, this should not effect TSC anymore
- ri->set_slot (this->slot_id_,
- new_data
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Now retrieve the data from the TSC again. It should not have
- // changed to the new value
- CORBA::Any_var data2 =
- this->pi_current_->get_slot (this->slot_id_
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Long number2 = 0;
- if ((data2.in () >>= number2)
- && number == number2)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: TSC was modified because "
- "RSC was modified.\n"));
-
- ACE_TRY_THROW (CORBA::INTERNAL ());
- }
- }
- ACE_CATCH (PortableInterceptor::InvalidSlot, ex)
- {
- ACE_PRINT_EXCEPTION (ex,
- "Exception thrown in "
- "send_reply()\n");
-
- ACE_DEBUG ((LM_DEBUG,
- "Invalid slot: %u\n",
- this->slot_id_));
-
- ACE_TRY_THROW (CORBA::INTERNAL ());
- }
- ACE_ENDTRY;
- ACE_CHECK;
-
- ACE_DEBUG ((LM_INFO,
- "(%P|%t) Server side RSC/TSC semantics appear "
- "to be correct.\n"));
-
}
void
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/client.cpp b/TAO/tests/Portable_Interceptors/PICurrent/client.cpp
index 4325478fd98..ec44721b6da 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/client.cpp
+++ b/TAO/tests/Portable_Interceptors/PICurrent/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "ClientORBInitializer.h"
@@ -17,7 +18,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -38,8 +39,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -57,13 +60,13 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"client_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Get the PICurrent object.
diff --git a/TAO/tests/Portable_Interceptors/PICurrent/server.cpp b/TAO/tests/Portable_Interceptors/PICurrent/server.cpp
index 3e0b650480f..3fac7025e6a 100644
--- a/TAO/tests/Portable_Interceptors/PICurrent/server.cpp
+++ b/TAO/tests/Portable_Interceptors/PICurrent/server.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "ServerORBInitializer.h"
@@ -20,7 +21,7 @@ extern PortableInterceptor::SlotId slot_id;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -43,8 +44,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -61,8 +64,8 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"test_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -88,7 +91,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
obj = orb->resolve_initial_references ("PICurrent" ACE_ENV_ARG_PARAMETER);
@@ -130,7 +133,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the IOR to it.
if (ior_output_file != 0)
{
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing "
@@ -144,9 +147,6 @@ main (int argc, char *argv[])
orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
ACE_DEBUG ((LM_INFO, "Event loop finished.\n"));
}
ACE_CATCHANY
diff --git a/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.cpp b/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.cpp
index 5c9cae1b492..c2231d58046 100644
--- a/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.cpp
+++ b/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.cpp
@@ -76,3 +76,29 @@ IORInterceptor::establish_components (
ACE_CHECK;
}
+void
+IORInterceptor::components_established (
+ PortableInterceptor::IORInfo_ptr
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+
+}
+
+void
+IORInterceptor::adapter_manager_state_changed (
+ PortableInterceptor::AdapterManagerId,
+ PortableInterceptor::AdapterState
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+}
+
+void
+IORInterceptor:: adapter_state_changed (
+ const PortableInterceptor::ObjectReferenceTemplateSeq &,
+ PortableInterceptor::AdapterState
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+}
diff --git a/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.h b/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.h
index c2ab7cf6602..503c7390a10 100644
--- a/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.h
+++ b/TAO/tests/Portable_Interceptors/PolicyFactory/IORInterceptor.h
@@ -70,6 +70,23 @@ public:
PortableInterceptor::IORInfo_ptr info
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual void components_established (
+ PortableInterceptor::IORInfo_ptr info
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual void adapter_manager_state_changed (
+ PortableInterceptor::AdapterManagerId id,
+ PortableInterceptor::AdapterState state
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual void adapter_state_changed (
+ const PortableInterceptor::ObjectReferenceTemplateSeq & templates,
+ PortableInterceptor::AdapterState state
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException));
//@}
protected:
diff --git a/TAO/tests/Portable_Interceptors/PolicyFactory/run_test.pl b/TAO/tests/Portable_Interceptors/PolicyFactory/run_test.pl
index 58fa821c094..77a14c57980 100755
--- a/TAO/tests/Portable_Interceptors/PolicyFactory/run_test.pl
+++ b/TAO/tests/Portable_Interceptors/PolicyFactory/run_test.pl
@@ -22,7 +22,7 @@ print STDERR "\n\n==== Running PolicyFactory test\n";
$SV->Spawn ();
-$server = $SV->WaitKill (30);
+$server = $SV->WaitKill (5);
if ($server != 0) {
print STDERR "ERROR: server returned $server\n";
diff --git a/TAO/tests/Portable_Interceptors/PolicyFactory/server.cpp b/TAO/tests/Portable_Interceptors/PolicyFactory/server.cpp
index 1a52aa6b982..5023dabe538 100644
--- a/TAO/tests/Portable_Interceptors/PolicyFactory/server.cpp
+++ b/TAO/tests/Portable_Interceptors/PolicyFactory/server.cpp
@@ -7,14 +7,17 @@
#include "tao/PortableServer/PortableServer.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (PolicyFactory,
server,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -31,8 +34,8 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"test_orb"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp
deleted file mode 100644
index fca62b6fe50..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-//
-// $Id$
-//
-
-#include "Client_Task.h"
-#include "testC.h"
-#include "interceptors.h"
-
-ACE_RCSID(Muxing, Client_Task, "$Id$")
-
-Client_Task::Client_Task (const char *ior,
- CORBA::ORB_ptr corb,
- ACE_Thread_Manager *thr_mgr)
- : ACE_Task_Base (thr_mgr)
- , input_ (ior)
- , corb_ (CORBA::ORB::_duplicate (corb))
-
-{
-}
-
-int
-Client_Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
-
- CORBA::Object_var object =
- corb_->string_to_object (input_ ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test_Interceptors::Visual_var server =
- Test_Interceptors::Visual::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Object reference <%s> is nil\n",
- this->input_),
- 1);
- }
-
- run_test (server.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught in client task:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-
-}
-
-
-void
-Client_Task::run_test (Test_Interceptors::Visual_ptr server
- ACE_ENV_ARG_DECL)
-{
- server->normal (10 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long one = 1, two = 1;
- (void) server->calculate (one,
- two
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_TRY
- {
- (void) server->user (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (Test_Interceptors::Silly, userex)
- {
- ACE_DEBUG ((LM_DEBUG, "As expected, Caught Silly\n"));
- }
- ACE_ENDTRY;
- ACE_CHECK;
-
- ACE_TRY_EX (SYS)
- {
- server->system (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (SYS);
- }
- ACE_CATCH (CORBA::INV_OBJREF, sysex)
- {
- ACE_DEBUG ((LM_DEBUG, "As expected, Caught CORBA::INV_OBJREF\n"));
- }
- ACE_ENDTRY;
- ACE_CHECK;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.h
deleted file mode 100644
index 49074e04e89..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.h
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef COLLOCATED_TEST_CLIENT_TASK_H
-#define COLLOCATED_TEST_CLIENT_TASK_H
-#include /**/ "ace/pre.h"
-#include "ace/Task.h"
-#include "testS.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ORB.h"
-
-
-/// Implement a Task to run the client as a thread
-class Client_Task : public ACE_Task_Base
-{
-public:
-
- /// Constructor
- Client_Task (const char *input,
- CORBA::ORB_ptr corb,
- ACE_Thread_Manager *thr_mgr);
-
- /// Thread entry point
- int svc (void);
-
- void run_test (Test_Interceptors::Visual_ptr server
- ACE_ENV_ARG_DECL);
-
- /// The status of the svc loop
- int status (void) const;
-
-private:
- const char *input_;
-
- CORBA::ORB_var corb_;
-
- int status_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* COLLOCATED_TEST_CLIENT_TASK_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp
deleted file mode 100644
index 41d8c39fec7..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp
+++ /dev/null
@@ -1,226 +0,0 @@
-//$Id$
-#include "Server_Task.h"
-#include "Client_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/Argv_Type_Converter.h"
-#include "ace/SString.h"
-#include "ace/Manual_Event.h"
-#include "Echo_Collocated_ORBInitializer.h"
-#include "tao/ORBInitializer_Registry.h"
-#include "interceptors.h"
-
-const char *output = "test.ior";
-const char *input = "file://test.ior";
-
-ACE_CString server_proc_mode_str;
-ACE_CString client_proc_mode_str;
-ACE_CString server_orb;
-ACE_CString client_orb;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "s:c:k:o");
- int c;
-
- server_proc_mode_str.set ("LOCAL_AND_REMOTE");
- client_proc_mode_str.set ("LOCAL_AND_REMOTE");
-
- while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 's':
- server_proc_mode_str.set (get_opts.opt_arg ());
- break;
- case 'c':
- client_proc_mode_str.set (get_opts.opt_arg ());
- break;
- case 'o':
- output = get_opts.opt_arg ();
- break;
- case 'k':
- input = get_opts.opt_arg ();
- break;
- case '?':
- default:
- return 0;
- }
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- if (parse_args (argc,
- argv) == -1)
- return -1;
-
- server_orb.set ("server_orb");
- client_orb.set ("client_orb");
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- PortableInterceptor::ORBInitializer_ptr temp_initializer =
- PortableInterceptor::ORBInitializer::_nil ();
-
- // Set up our default expectations.
- CORBA::ULong expected_server_interceptor_check = 10;
- CORBA::ULong expected_client_interceptor_check = 10;
-
- PortableInterceptor::ProcessingMode client_proc_mode =
- PortableInterceptor::LOCAL_AND_REMOTE;
-
- if (client_proc_mode_str == "LOCAL_ONLY")
- {
- client_proc_mode = PortableInterceptor::LOCAL_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_ONLY for client-side ProcessingMode.\n"));
- }
- else if (client_proc_mode_str == "REMOTE_ONLY")
- {
- client_proc_mode = PortableInterceptor::REMOTE_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using REMOTE_ONLY for client-side ProcessingMode.\n"));
-
- // Since all of the calls are collocated, setting the client-side
- // ProcessingMode to REMOTE_ONLY will cause the client request
- // interceptor to not fire. Thus, we expect 0 calls on the
- // client interceptor.
- expected_client_interceptor_check = 0;
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_AND_REMOTE for client-side ProcessingMode.\n"));
- }
-
- PortableInterceptor::ProcessingMode server_proc_mode =
- PortableInterceptor::LOCAL_AND_REMOTE;
-
- if (server_proc_mode_str == "LOCAL_ONLY")
- {
- server_proc_mode = PortableInterceptor::LOCAL_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_ONLY for server-side ProcessingMode.\n"));
- }
- else if (server_proc_mode_str == "REMOTE_ONLY")
- {
- server_proc_mode = PortableInterceptor::REMOTE_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using REMOTE_ONLY for server-side ProcessingMode.\n"));
-
- // Since all of the calls are collocated, setting the server-side
- // ProcessingMode to REMOTE_ONLY will cause the server request
- // interceptor to not fire. Thus, we expect 0 calls on the
- // server interceptor.
- expected_server_interceptor_check = 0;
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_AND_REMOTE for server-side ProcessingMode.\n"));
- }
-
- ACE_NEW_RETURN (temp_initializer,
- Echo_Collocated_ORBInitializer (server_proc_mode,
- client_proc_mode),
- -1); // No exceptions yet!
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Argv_Type_Converter satc (argc, argv);
- CORBA::ORB_var sorb =
- CORBA::ORB_init (satc.get_argc (),
- satc.get_TCHAR_argv (),
- server_orb.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Manual_Event me;
- Server_Task server_task (output,
- sorb.in (),
- me,
- ACE_Thread_Manager::instance ());
-
- if (server_task.activate (THR_NEW_LWP | THR_JOINABLE,
- 1,
- 1) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Error activating server task\n"));
- }
-
- // Wait for the server thread to do some processing
- me.wait ();
-
- ACE_Argv_Type_Converter catc (argc, argv);
- CORBA::ORB_var corb =
- CORBA::ORB_init (catc.get_argc (),
- catc.get_TCHAR_argv (),
- client_orb.c_str ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Client_Task client_task (input,
- corb.in (),
- ACE_Thread_Manager::instance ());
-
- if (client_task.activate (THR_NEW_LWP | THR_JOINABLE,
- 1,
- 1) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Error activating client task\n"));
- }
-
- ACE_Thread_Manager::instance ()->wait ();
-
- sorb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- bool failed_check = false;
-
- CORBA::ULong number_called =
- Echo_Server_Request_Interceptor::server_interceptor_check_;
-
- if (number_called != expected_server_interceptor_check)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Server-Side Interceptors not "
- "called properly, called %d times, expected %d.\n",
- number_called, expected_server_interceptor_check));
- failed_check = true;
- }
-
- number_called =
- Echo_Client_Request_Interceptor::client_interceptor_check_;
-
- if (number_called != expected_client_interceptor_check)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR:Client-Side Interceptors not called "
- "properly, called %d times, expected %d.\n",
- number_called, expected_client_interceptor_check));
- failed_check = true;
- }
-
- if (failed_check)
- {
- return 1;
- }
- }
- ACE_CATCHANY
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Some exception was caught in main().\n"));
- return 1;
- }
- ACE_ENDTRY;
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.cpp
deleted file mode 100644
index b9773fde351..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.cpp
+++ /dev/null
@@ -1,138 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "Echo_Collocated_ORBInitializer.h"
-#include "interceptors.h"
-#include "tao/PI/ORBInitInfo.h"
-#include "tao/ORB_Core.h"
-#include "ace/OS_NS_string.h"
-
-Echo_Collocated_ORBInitializer::Echo_Collocated_ORBInitializer (
- PortableInterceptor::ProcessingMode server_proc_mode,
- PortableInterceptor::ProcessingMode client_proc_mode)
- : server_processing_mode_(server_proc_mode),
- client_processing_mode_(client_proc_mode)
-{
-}
-
-void
-Echo_Collocated_ORBInitializer::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Collocated_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- CORBA::String_var orb_id =
- info->orb_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // TAO-Specific way to get to the ORB Core (and thus, the ORB).
- TAO_ORBInitInfo_var tao_info =
- TAO_ORBInitInfo::_narrow (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::ORB_var orb = CORBA::ORB::_duplicate(tao_info->orb_core()->orb());
-
- if (CORBA::is_nil(orb.in()))
- {
- ACE_THROW (CORBA::INTERNAL ());
- ACE_CHECK;
- }
-
- PortableInterceptor::ORBInitInfo_3_1_var info_3_1 =
- PortableInterceptor::ORBInitInfo_3_1::_narrow(info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(info_3_1.in()))
- {
- ACE_THROW (CORBA::INTERNAL ());
- ACE_CHECK;
- }
-
- if (!ACE_OS::strcmp (orb_id.in (), "client_orb"))
- {
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
- PortableInterceptor::ClientRequestInterceptor::_nil ();
-
- // Install the Echo client request interceptor
- ACE_NEW_THROW_EX (interceptor,
- Echo_Client_Request_Interceptor,
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-
- PortableInterceptor::ClientRequestInterceptor_var
- client_interceptor = interceptor;
-
- CORBA::Any client_proc_mode_as_any;
- client_proc_mode_as_any <<= this->client_processing_mode_;
-
- CORBA::PolicyList policy_list (1);
-
- policy_list.length (1);
- policy_list[0] =
- orb->create_policy (PortableInterceptor::PROCESSING_MODE_POLICY_TYPE,
- client_proc_mode_as_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- info_3_1->add_client_request_interceptor_with_policy (
- client_interceptor.in (),
- policy_list
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- policy_list[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- policy_list[0] = CORBA::Policy::_nil ();
- }
- else if (!ACE_OS::strcmp (orb_id.in (), "server_orb"))
- {
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor =
- PortableInterceptor::ServerRequestInterceptor::_nil ();
-
- // Install the Echo server request interceptor
- ACE_NEW_THROW_EX (interceptor,
- Echo_Server_Request_Interceptor,
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-
- PortableInterceptor::ServerRequestInterceptor_var
- server_interceptor = interceptor;
-
- CORBA::Any server_proc_mode_as_any;
- server_proc_mode_as_any <<= this->server_processing_mode_;
-
- CORBA::PolicyList policy_list (1);
-
- policy_list.length (1);
- policy_list[0] =
- orb->create_policy (PortableInterceptor::PROCESSING_MODE_POLICY_TYPE,
- server_proc_mode_as_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- info_3_1->add_server_request_interceptor_with_policy (
- server_interceptor.in (),
- policy_list
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- policy_list[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- policy_list[0] = CORBA::Policy::_nil ();
- }
- else
- {
- }
-}
-
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.h
deleted file mode 100644
index 57d361b7b9a..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Echo_Collocated_ORBInitializer.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TAO_ECHO_CLIENT_ORB_INITIALIZER_H
-#define TAO_ECHO_CLIENT_ORB_INITIALIZER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PI/PI.h"
-#include "tao/PI/ProcessingModePolicyC.h"
-#include "tao/LocalObject.h"
-
-// This is to remove "inherits via dominance" warnings from MSVC.
-// MSVC is being a little too paranoid.
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-/// Echo client ORB initializer.
-class Echo_Collocated_ORBInitializer :
- public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- Echo_Collocated_ORBInitializer
- (PortableInterceptor::ProcessingMode server_proc_mode,
- PortableInterceptor::ProcessingMode client_proc_mode);
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
-
- PortableInterceptor::ProcessingMode server_processing_mode_;
- PortableInterceptor::ProcessingMode client_processing_mode_;
-};
-
-#if defined (_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_ECHO_CLIENT_ORB_INITIALIZER_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/PI_ProcMode_Collocated.mpc b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/PI_ProcMode_Collocated.mpc
deleted file mode 100644
index 0e1f9788ad5..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/PI_ProcMode_Collocated.mpc
+++ /dev/null
@@ -1,16 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Collocated): taoserver, pi, pi_server, interceptors {
- exename = PI_ProcMode_Collocated_Test
- Source_Files {
- testC.cpp
- testS.cpp
- test_i.cpp
- interceptors.cpp
- Echo_Collocated_ORBInitializer.cpp
- Collocated_Test.cpp
- Client_Task.cpp
- Server_Task.cpp
- }
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp
deleted file mode 100644
index a9db6a71b8a..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.cpp
+++ /dev/null
@@ -1,109 +0,0 @@
-//
-// $Id$
-//
-#include "Server_Task.h"
-#include "test_i.h"
-#include "interceptors.h"
-
-#include "ace/Manual_Event.h"
-
-ACE_RCSID(Collocated_Test,
- Server_Task,
- "$Id$")
-
-
-Server_Task::Server_Task (const char *output,
- CORBA::ORB_ptr sorb,
- ACE_Manual_Event &me,
- ACE_Thread_Manager *thr_mgr)
- : ACE_Task_Base (thr_mgr)
- , output_ (output)
- , me_ (me)
- , sorb_ (CORBA::ORB::_duplicate (sorb))
-{
-}
-
-int
-Server_Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
-
- CORBA::Object_var poa_object =
- sorb_->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Visual_i * server_impl = 0;
- ACE_NEW_RETURN (server_impl, Visual_i (sorb_.in ()), 1);
-
- PortableServer::ObjectId_var id =
- root_poa->activate_object (server_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var test_obj =
- root_poa->id_to_reference (id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test_Interceptors::Visual_var server =
- Test_Interceptors::Visual::_narrow (test_obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- this->sorb_->object_to_string (server.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "Test_Interceptors::Visual: <%s>\n", ior.in ()));
-
- // If the ior_output_file exists, output the ior to it
- if (output_ != 0)
- {
- FILE *output_file= ACE_OS::fopen (this->output_, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- this->output_),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- // Signal the main thread before we call orb->run ();
- this->me_.signal ();
-
- this->sorb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught in server task:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.h
deleted file mode 100644
index 2f63a0724de..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Server_Task.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef COLLOCATED_SERVER_TASK_H
-#define COLLOCATED_SERVER_TASK_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Task.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/ORB.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-/// Implement a Task to run the server in a single thread
-class Server_Task : public ACE_Task_Base
-{
-public:
- /// Constructor
- Server_Task (const char *output,
- CORBA::ORB_ptr sorb,
- ACE_Manual_Event &me,
- ACE_Thread_Manager *thr_mgr);
-
- /// Thread entry point
- int svc (void);
-
- /// The status of the svc loop
- int status (void) const;
-
-private:
- /// Output file for IOR
- const char *output_;
-
- /// Manual event to wake up the main thread to create a client
- /// thread.
- ACE_Manual_Event &me_;
-
- CORBA::ORB_var sorb_;
-
- int status_;
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* COLLOCATED_SERVER_TASK_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.cpp
deleted file mode 100644
index 2082c0d81c9..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.cpp
+++ /dev/null
@@ -1,395 +0,0 @@
-// $Id$
-
-#include "interceptors.h"
-#include "tao/PI/ClientRequestInfoC.h"
-#include "tao/PI_Server/ServerRequestInfoC.h"
-#include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-
-ACE_RCSID (Dynamic,
- interceptors,
- "$Id$")
-
-const char *request_msg = "The Echo_Request_Interceptor request message";
-const char *reply_msg = "The Echo_Request_Interceptor reply message";
-CORBA::ULong Echo_Client_Request_Interceptor::client_interceptor_check_ = 0;
-CORBA::ULong Echo_Server_Request_Interceptor::server_interceptor_check_ = 0;
-
-Echo_Client_Request_Interceptor::Echo_Client_Request_Interceptor (void)
- : myname_ ("Echo_Client_Interceptor")
-{
-}
-
-Echo_Client_Request_Interceptor::~Echo_Client_Request_Interceptor ()
-{
-}
-
-char *
-Echo_Client_Request_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup (this->myname_);
-}
-
-void
-Echo_Client_Request_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Client_Request_Interceptor::send_poll (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED
- )
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Do nothing
-}
-
-void
-Echo_Client_Request_Interceptor::send_request (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- CORBA::String_var op =
- ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- client_interceptor_check_++;
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::send_request\n"));
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::send_request from "
- "\"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
-
- ACE_DEBUG ((LM_DEBUG,
- "The arg is %d\n",
- param));
- }
-}
-
-void
-Echo_Client_Request_Interceptor::receive_other (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- client_interceptor_check_++;
- }
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::receive_other "
- "from \"%s\"\n",
- op.in ()));
-}
-
-void
-Echo_Client_Request_Interceptor::receive_reply (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- client_interceptor_check_++;
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::receive_reply "
- "from \"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
-
- }
- else if (ACE_OS::strcmp (op.in (), "calculate") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param1, param2, result;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i++].argument >>= param1;
- paramlist[i].argument >>= param2;
-
- CORBA::Any_var result_any = ri->result (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- (result_any.in ()) >>= result;
-
- ACE_DEBUG ((LM_DEBUG,
- "The result of calculate is %d + %d = %d\n",
- param1,
- param2,
- result));
- }
-}
-
-void
-Echo_Client_Request_Interceptor::receive_exception (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- client_interceptor_check_++;
- }
-
- CORBA::String_var exception_id =
- ri->received_exception_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::received_exception "
- "from \"%s\"\n",
- op.in ()));
-
- ACE_DEBUG ((LM_DEBUG,
- "Exception ID = %s\n",
- exception_id.in ()));
-}
-
-Echo_Server_Request_Interceptor::Echo_Server_Request_Interceptor (void)
- : myname_ ("Echo_Server_Interceptor")
-{
-}
-
-Echo_Server_Request_Interceptor::~Echo_Server_Request_Interceptor ()
-{
-}
-
-char *
-Echo_Server_Request_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup (this->myname_);
-}
-
-void
-Echo_Server_Request_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Server_Request_Interceptor::receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-Echo_Server_Request_Interceptor::receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- ++server_interceptor_check_;
- }
-
- PortableInterceptor::ObjectId_var test_oid =
- ri->object_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Server_Request_Interceptor::receive_request from \"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
-
- ACE_DEBUG ((LM_DEBUG,
- "The arg is %d\n",
- param));
-
- }
-
- CORBA::String_var tmdi =
- ri->target_most_derived_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Target most derived interface: %s\n",
- tmdi.in ()));
-}
-
-void
-Echo_Server_Request_Interceptor::send_reply (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- ++server_interceptor_check_;
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Server_Request_Interceptor::send_reply from \"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
- ACE_DEBUG ((LM_DEBUG,
- "The arg is %d\n",
- param));
- }
-
- if (ACE_OS::strcmp (op.in (), "calculate") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param1, param2, result = 0;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i++].argument >>= param1;
- paramlist[i].argument >>= param2;
-
- CORBA::Any_var result_any = ri->result (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- (result_any.in ()) >>= result;
-
- ACE_DEBUG ((LM_DEBUG,
- "The result of calculate is %d + %d = %d\n",
- param1,
- param2,
- result));
- }
-}
-
-void
-Echo_Server_Request_Interceptor::send_exception (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Do not count the _is_a calls
- if (ACE_OS::strcmp (op.in (), "_is_a") != 0)
- {
- ++server_interceptor_check_;
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Server_Request_Interceptor::send_exception "
- "from \"%s\"\n",
- op.in ()));
-
-
- CORBA::Any_var any =
- ri->sending_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::TypeCode_var type = any->type ();
-
- const char *exception_id = type->id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Exception ID = %s\n",
- exception_id));
-}
-
-void
-Echo_Server_Request_Interceptor::send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- ++server_interceptor_check_;
-
- // Do Nothing
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.h
deleted file mode 100644
index c136eb18144..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/interceptors.h
+++ /dev/null
@@ -1,138 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TAO_INTERCEPTORS_H
-#define TAO_INTERCEPTORS_H
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/PI.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PI_Server/PI_Server.h"
-#include "tao/LocalObject.h"
-
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-class Echo_Client_Request_Interceptor
- : public virtual PortableInterceptor::ClientRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
- // = Client-side echo interceptor. For checking interceptor visually only.
-public:
-
- Echo_Client_Request_Interceptor (void);
- // ctor.
- virtual ~Echo_Client_Request_Interceptor ();
- // dtor.
-
- virtual char * name (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
- // Canonical name of the interceptor.
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void send_poll (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- virtual void receive_other (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- PortableInterceptor::ForwardRequest
- ));
-
- virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void receive_exception (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- // Some identifiers that are used for error checking
- static CORBA::ULong client_interceptor_check_;
-private:
- const char *myname_;
-};
-
-class Echo_Server_Request_Interceptor
- : public PortableInterceptor::ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
- // = Server-side echo interceptor. For checking interceptor visually only.
-public:
- Echo_Server_Request_Interceptor (void);
- // cotr.
- ~Echo_Server_Request_Interceptor ();
- // dotr.
-
- virtual char * name (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
- // Canonical name of the interceptor.
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- PortableInterceptor::ForwardRequest
- ));
-
- virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- virtual void send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- PortableInterceptor::ForwardRequest
- ));
-
- // Some identifiers that are used for error checking
- static CORBA::ULong server_interceptor_check_;
-
-private:
- const char *myname_;
-};
-
-#if defined (_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* TAO_INTERCEPTORS_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl
deleted file mode 100755
index e877773b96e..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl
+++ /dev/null
@@ -1,134 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../../bin';
-use PerlACE::Run_Test;
-
-sub get_test_modes
-{
- my $testid = shift;
-
- my $client_mode = "LOCAL_AND_REMOTE";
- my $server_mode = "LOCAL_AND_REMOTE";
-
- # There are Nine Permutations.
- if ($testid == 1)
- {
- $client_mode = "LOCAL_AND_REMOTE";
- $server_mode = "LOCAL_AND_REMOTE";
- }
- elsif ($testid == 2)
- {
- $client_mode = "LOCAL_AND_REMOTE";
- $server_mode = "LOCAL_ONLY";
- }
- elsif ($testid == 3)
- {
- $client_mode = "LOCAL_AND_REMOTE";
- $server_mode = "REMOTE_ONLY";
- }
- elsif ($testid == 4)
- {
- $client_mode = "LOCAL_ONLY";
- $server_mode = "LOCAL_AND_REMOTE";
- }
- elsif ($testid == 5)
- {
- $client_mode = "LOCAL_ONLY";
- $server_mode = "LOCAL_ONLY";
- }
- elsif ($testid == 6)
- {
- $client_mode = "LOCAL_ONLY";
- $server_mode = "REMOTE_ONLY";
- }
- elsif ($testid == 7)
- {
- $client_mode = "REMOTE_ONLY";
- $server_mode = "LOCAL_AND_REMOTE";
- }
- elsif ($testid == 8)
- {
- $client_mode = "REMOTE_ONLY";
- $server_mode = "LOCAL_ONLY";
- }
- elsif ($testid == 9)
- {
- $client_mode = "REMOTE_ONLY";
- $server_mode = "REMOTE_ONLY";
- }
- else
- {
- print STDERR "ERROR: invalid testid: $testid\n";
- exit 1;
- }
-
- return ($client_mode, $server_mode);
-}
-
-my $status = 0;
-my $file = PerlACE::LocalFile ("test.ior");
-
-my $testid;
-
-for ($testid = 1; $testid <= 9; ++$testid)
-{
- unlink $file;
-
- my $client_mode;
- my $server_mode;
-
- ($client_mode, $server_mode) = get_test_modes($testid);
-
- my $SV;
- if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("PI_ProcMode_Collocated_Test",
- "-c $client_mode " .
- "-s $server_mode " .
- "-ORBobjrefstyle url");
- }
- else {
- $SV = new PerlACE::Process ("PI_ProcMode_Collocated_Test",
- "-c $client_mode " .
- "-s $server_mode " .
- "-ORBobjrefstyle url");
- }
-
- print STDERR "\n\n==== Starting test variant #$testid\n\n";
-
- $SV->Spawn ();
-
- if (PerlACE::waitforfile_timed ($file, 15) == -1) {
- print STDERR "ERROR: cannot find file <$file>\n";
- $SV->Kill ();
- exit 1;
- }
-
- my $collocated = $SV->WaitKill (5);
-
- if ($collocated != 0) {
- print STDERR "ERROR: PI_ProcMode_Collocated_Test returned $collocated\n";
- print STDERR "ERROR: For client-side mode [$client_mode],\n";
- print STDERR "ERROR: and server-side mode [$server_mode].\n";
- $status = 1;
- print STDERR "\nTest variant #$testid of 9 failed!\n\n";
- }
- else {
- print STDERR "\nTest variant #$testid of 9 passed!\n\n";
- }
-}
-
-unlink $file;
-
-if ($status == 0) {
- print STDERR "\n==== All 9 test variants were successful!\n";
-}
-else {
- print STDERR "\n==== One or more of the 9 test variants failed!\n";
-}
-
-exit $status;
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test.idl b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test.idl
deleted file mode 100644
index 07ed4dee088..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Portable_Interceptors
-//
-// = FILENAME
-// test.idl
-//
-// = DESCRIPTION
-// Simple IDL file to test portable interceptor support.
-//
-// = AUTHORS
-// Nanbor Wang <nanbor@cs.wustl.edu>
-//
-// ============================================================================
-
-module Test_Interceptors
-{
- exception Silly
- {};
-
- interface Visual
- {
- void normal (in long arg);
- // Normal operation.
-
- long calculate (in long one, in long two);
- // Normal operation with a return val.
-
- void user ()
- raises (Silly);
- // throws a user exception.
-
- void system ();
- // thows a system exception.
-
- oneway void shutdown ();
- // shutdown the ORB
- };
-};
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp
deleted file mode 100644
index 31585a94528..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-#include "ace/OS_NS_unistd.h"
-
-ACE_RCSID(Dynamic, test_i, "$Id$")
-
-Visual_i::Visual_i (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
- // ctor
-
-void
-Visual_i::normal (CORBA::Long
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::normal called with %d\n", arg));
-}
-
-CORBA::Long
-Visual_i::calculate (CORBA::Long one,
- CORBA::Long two
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::calculate\n"));
- return (one + two);
-}
-
-void
-Visual_i::user (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,Test_Interceptors::Silly))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwning Silly\n"));
- ACE_THROW (Test_Interceptors::Silly ());
-}
-
-void
-Visual_i::system (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing INV_OBJREF\n"));
- ACE_THROW (CORBA::INV_OBJREF ());
-}
-
-void
-Visual_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // Give the client thread time to return from the collocated
- // call to this method before shutting down the ORB. We sleep
- // to avoid BAD_INV_ORDER exceptions on fast dual processor machines.
- ACE_OS::sleep(1);
- this->orb_->shutdown ();
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h
deleted file mode 100644
index f31756fb10a..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/test_i.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Portable_Interceptors/Dynamic
-//
-// = FILENAME
-// test_i.h
-//
-// = AUTHOR
-// Nanbor Wang
-//
-// ============================================================================
-
-#ifndef TAO_INTERCEPTOR_TEST_I_H
-#define TAO_INTERCEPTOR_TEST_I_H
-
-#include "testS.h"
-
-class Visual_i : public POA_Test_Interceptors::Visual
-{
- // = DESCRIPTION
- // Implements the Visual interface in test.idl
-
-public:
- Visual_i (CORBA::ORB_ptr orb);
- // ctor
-
- void normal (CORBA::Long arg
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- CORBA::Long calculate (
- CORBA::Long one,
- CORBA::Long two
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void user (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,Test_Interceptors::Silly));
-
- void system (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- CORBA::ORB_var orb_;
- // The ORB pointer (for shutdown.)
-};
-
-#endif /* TAO_INTERCEPTOR_TEST_I_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp
deleted file mode 100644
index 0990fd47209..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-//
-// $Id$
-//
-
-#include "Client_Task.h"
-#include "testC.h"
-#include "client_interceptor.h"
-
-ACE_RCSID(Remote, Client_Task, "$Id$")
-
-Client_Task::Client_Task (const char *ior,
- CORBA::ORB_ptr corb,
- ACE_Thread_Manager *thr_mgr)
- : ACE_Task_Base (thr_mgr)
- , input_ (ior)
- , corb_ (CORBA::ORB::_duplicate (corb))
-
-{
-}
-
-int
-Client_Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
-
- CORBA::Object_var object =
- corb_->string_to_object (input_ ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test_Interceptors::Visual_var server =
- Test_Interceptors::Visual::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (server.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Object reference <%s> is nil\n",
- this->input_),
- 1);
- }
-
- run_test (server.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- server->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught in client task:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-
-}
-
-
-void
-Client_Task::run_test (Test_Interceptors::Visual_ptr server
- ACE_ENV_ARG_DECL)
-{
- server->normal (10 ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long one = 1, two = 1;
- (void) server->calculate (one,
- two
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_TRY
- {
- (void) server->user (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCH (Test_Interceptors::Silly, userex)
- {
- ACE_DEBUG ((LM_DEBUG, "As expected, Caught Silly\n"));
- }
- ACE_ENDTRY;
- ACE_CHECK;
-
- ACE_TRY_EX (SYS)
- {
- server->system (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK_EX (SYS);
- }
- ACE_CATCH (CORBA::INV_OBJREF, sysex)
- {
- ACE_DEBUG ((LM_DEBUG, "As expected, Caught CORBA::INV_OBJREF\n"));
- }
- ACE_ENDTRY;
- ACE_CHECK;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.h
deleted file mode 100644
index 3678e806775..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.h
+++ /dev/null
@@ -1,45 +0,0 @@
-//
-// $Id$
-//
-
-#ifndef TEST_CLIENT_TASK_H
-#define TEST_CLIENT_TASK_H
-#include /**/ "ace/pre.h"
-#include "ace/Task.h"
-#include "testS.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ORB.h"
-
-
-/// Implement a Task to run the client as a thread
-class Client_Task : public ACE_Task_Base
-{
-public:
-
- /// Constructor
- Client_Task (const char *input,
- CORBA::ORB_ptr corb,
- ACE_Thread_Manager *thr_mgr);
-
- /// Thread entry point
- int svc (void);
-
- void run_test (Test_Interceptors::Visual_ptr server
- ACE_ENV_ARG_DECL);
-
- /// The status of the svc loop
- int status (void) const;
-
-private:
- const char *input_;
-
- CORBA::ORB_var corb_;
-
- int status_;
-};
-
-#include /**/ "ace/post.h"
-#endif /* TEST_CLIENT_TASK_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp
deleted file mode 100644
index 15751d6f087..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "Echo_Client_ORBInitializer.h"
-#include "client_interceptor.h"
-#include "tao/PI/ORBInitInfo.h"
-#include "tao/ORB_Core.h"
-#include "ace/OS_NS_string.h"
-
-Echo_Client_ORBInitializer::Echo_Client_ORBInitializer (
- PortableInterceptor::ProcessingMode proc_mode)
- : processing_mode_(proc_mode)
-{
-}
-
-void
-Echo_Client_ORBInitializer::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Client_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // TAO-Specific way to get to the ORB Core (and thus, the ORB).
- TAO_ORBInitInfo_var tao_info =
- TAO_ORBInitInfo::_narrow (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::ORB_var orb = CORBA::ORB::_duplicate(tao_info->orb_core()->orb());
-
- if (CORBA::is_nil(orb.in()))
- {
- ACE_THROW (CORBA::INTERNAL ());
- ACE_CHECK;
- }
-
- PortableInterceptor::ORBInitInfo_3_1_var info_3_1 =
- PortableInterceptor::ORBInitInfo_3_1::_narrow(info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(info_3_1.in()))
- {
- ACE_THROW (CORBA::INTERNAL ());
- ACE_CHECK;
- }
-
- PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
- PortableInterceptor::ClientRequestInterceptor::_nil ();
-
- // Install the Echo client request interceptor
- ACE_NEW_THROW_EX (interceptor,
- Echo_Client_Request_Interceptor,
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-
- PortableInterceptor::ClientRequestInterceptor_var
- client_interceptor = interceptor;
-
- CORBA::Any client_proc_mode_as_any;
- client_proc_mode_as_any <<= this->processing_mode_;
-
- CORBA::PolicyList policy_list (1);
-
- policy_list.length (1);
- policy_list[0] =
- orb->create_policy (PortableInterceptor::PROCESSING_MODE_POLICY_TYPE,
- client_proc_mode_as_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- info_3_1->add_client_request_interceptor_with_policy (
- client_interceptor.in (),
- policy_list
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- policy_list[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- policy_list[0] = CORBA::Policy::_nil ();
-}
-
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.h
deleted file mode 100644
index 58506555153..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TAO_ECHO_CLIENT_ORB_INITIALIZER_H
-#define TAO_ECHO_CLIENT_ORB_INITIALIZER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-
-#include "tao/PI/PI.h"
-#include "tao/PI/ProcessingModePolicyC.h"
-#include "tao/LocalObject.h"
-
-// This is to remove "inherits via dominance" warnings from MSVC.
-// MSVC is being a little too paranoid.
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-/// Echo client ORB initializer.
-class Echo_Client_ORBInitializer :
- public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- Echo_Client_ORBInitializer
- (PortableInterceptor::ProcessingMode proc_mode);
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
-
- PortableInterceptor::ProcessingMode processing_mode_;
-};
-
-#if defined (_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_ECHO_CLIENT_ORB_INITIALIZER_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.cpp
deleted file mode 100644
index 9136e25e126..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#include "Echo_Server_ORBInitializer.h"
-#include "server_interceptor.h"
-#include "tao/PI/ORBInitInfo.h"
-#include "tao/ORB_Core.h"
-#include "ace/OS_NS_string.h"
-
-Echo_Server_ORBInitializer::Echo_Server_ORBInitializer (
- PortableInterceptor::ProcessingMode proc_mode)
- : processing_mode_(proc_mode)
-{
-}
-
-void
-Echo_Server_ORBInitializer::pre_init (
- PortableInterceptor::ORBInitInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Server_ORBInitializer::post_init (
- PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- CORBA::String_var orb_id =
- info->orb_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- // TAO-Specific way to get to the ORB Core (and thus, the ORB).
- TAO_ORBInitInfo_var tao_info =
- TAO_ORBInitInfo::_narrow (info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::ORB_var orb = CORBA::ORB::_duplicate(tao_info->orb_core()->orb());
-
- if (CORBA::is_nil(orb.in()))
- {
- ACE_THROW (CORBA::INTERNAL ());
- ACE_CHECK;
- }
-
- PortableInterceptor::ORBInitInfo_3_1_var info_3_1 =
- PortableInterceptor::ORBInitInfo_3_1::_narrow(info
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- if (CORBA::is_nil(info_3_1.in()))
- {
- ACE_THROW (CORBA::INTERNAL ());
- ACE_CHECK;
- }
-
- PortableInterceptor::ServerRequestInterceptor_ptr interceptor =
- PortableInterceptor::ServerRequestInterceptor::_nil ();
-
- // Install the Echo server request interceptor
- ACE_NEW_THROW_EX (interceptor,
- Echo_Server_Request_Interceptor,
- CORBA::NO_MEMORY ());
- ACE_CHECK;
-
- PortableInterceptor::ServerRequestInterceptor_var
- server_interceptor = interceptor;
-
- CORBA::Any proc_mode_as_any;
- proc_mode_as_any <<= this->processing_mode_;
-
- CORBA::PolicyList policy_list (1);
-
- policy_list.length (1);
- policy_list[0] =
- orb->create_policy (PortableInterceptor::PROCESSING_MODE_POLICY_TYPE,
- proc_mode_as_any
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- info_3_1->add_server_request_interceptor_with_policy (
- server_interceptor.in (),
- policy_list
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-
- policy_list[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
- policy_list[0] = CORBA::Policy::_nil ();
-}
-
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.h
deleted file mode 100644
index f3af07cc4ae..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Server_ORBInitializer.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TAO_ECHO_SERVER_ORB_INITIALIZER_H
-#define TAO_ECHO_SERVER_ORB_INITIALIZER_H
-
-#include /**/ "ace/pre.h"
-
-#include "tao/orbconf.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PI/PI.h"
-#include "tao/PI/ProcessingModePolicyC.h"
-#include "tao/LocalObject.h"
-
-// This is to remove "inherits via dominance" warnings from MSVC.
-// MSVC is being a little too paranoid.
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-/// Echo client ORB initializer.
-class Echo_Server_ORBInitializer :
- public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
-
- Echo_Server_ORBInitializer
- (PortableInterceptor::ProcessingMode proc_mode);
-
- virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
-
- PortableInterceptor::ProcessingMode processing_mode_;
-};
-
-#if defined (_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-
-#include /**/ "ace/post.h"
-
-#endif /* TAO_ECHO_SERVER_ORB_INITIALIZER_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/PI_ProcMode_Remote.mpc b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/PI_ProcMode_Remote.mpc
deleted file mode 100644
index deab03af74f..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/PI_ProcMode_Remote.mpc
+++ /dev/null
@@ -1,26 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*RemoteServer): taoserver, pi_server, interceptors {
- exename = PI_ProcMode_Remote_TestServer
- Source_Files {
- testC.cpp
- testS.cpp
- test_i.cpp
- server_interceptor.cpp
- Echo_Server_ORBInitializer.cpp
- server_main.cpp
- Server_Task.cpp
- }
-}
-
-project(*RemoteClient): taoclient, portableserver, pi, interceptors {
- exename = PI_ProcMode_Remote_TestClient
- Source_Files {
- testC.cpp
- client_interceptor.cpp
- Echo_Client_ORBInitializer.cpp
- client_main.cpp
- Client_Task.cpp
- }
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.cpp
deleted file mode 100644
index 7fbab820892..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-//
-// $Id$
-//
-#include "Server_Task.h"
-#include "test_i.h"
-#include "server_interceptor.h"
-
-#include "ace/Manual_Event.h"
-
-ACE_RCSID(Remote,
- Server_Task,
- "$Id$")
-
-
-Server_Task::Server_Task (const char *output,
- CORBA::ORB_ptr sorb,
- ACE_Manual_Event &me,
- ACE_Thread_Manager *thr_mgr)
- : ACE_Task_Base (thr_mgr)
- , output_ (output)
- , me_ (me)
- , sorb_ (CORBA::ORB::_duplicate (sorb))
-{
-}
-
-int
-Server_Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
-
- CORBA::Object_var poa_object =
- sorb_->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (CORBA::is_nil (poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Visual_i * server_impl = 0;
- ACE_NEW_RETURN (server_impl, Visual_i (sorb_.in ()), 1);
-
- PortableServer::ObjectId_var id =
- root_poa->activate_object (server_impl
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var test_obj =
- root_poa->id_to_reference (id.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Test_Interceptors::Visual_var server =
- Test_Interceptors::Visual::_narrow (test_obj.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- this->sorb_->object_to_string (server.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "Test_Interceptors::Visual: <%s>\n", ior.in ()));
-
- // If the ior_output_file exists, output the ior to it
- if (output_ != 0)
- {
- FILE *output_file= ACE_OS::fopen (this->output_, "w");
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- this->output_),
- 1);
- ACE_OS::fprintf (output_file, "%s", ior.in ());
- ACE_OS::fclose (output_file);
- }
-
- // Signal the main thread before we call orb->run ();
- this->me_.signal ();
-
- this->sorb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG, "event loop finished\n"));
-
- root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->sorb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught in server task:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.h
deleted file mode 100644
index 6b7b9404bd5..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Server_Task.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TEST_SERVER_TASK_H
-#define TEST_SERVER_TASK_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Task.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/ORB.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Manual_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-/// Implement a Task to run the server in a single thread
-class Server_Task : public ACE_Task_Base
-{
-public:
- /// Constructor
- Server_Task (const char *output,
- CORBA::ORB_ptr sorb,
- ACE_Manual_Event &me,
- ACE_Thread_Manager *thr_mgr);
-
- /// Thread entry point
- int svc (void);
-
- /// The status of the svc loop
- int status (void) const;
-
-private:
- /// Output file for IOR
- const char *output_;
-
- /// Manual event to wake up the main thread to create a client
- /// thread.
- ACE_Manual_Event &me_;
-
- CORBA::ORB_var sorb_;
-
- int status_;
-};
-
-#include /**/ "ace/post.h"
-
-#endif /* COLLOCATED_SERVER_TASK_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.cpp
deleted file mode 100644
index 399025fa883..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.cpp
+++ /dev/null
@@ -1,184 +0,0 @@
-// $Id$
-
-#include "client_interceptor.h"
-#include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-
-ACE_RCSID (Remote,
- client_interceptor,
- "$Id$")
-
-const char *request_msg = "The Echo_Client_Request_Interceptor request message";
-const char *reply_msg = "The Echo_Client_Request_Interceptor reply message";
-CORBA::ULong Echo_Client_Request_Interceptor::client_interceptor_check_ = 0;
-
-Echo_Client_Request_Interceptor::Echo_Client_Request_Interceptor (void)
- : myname_ ("Echo_Client_Interceptor")
-{
-}
-
-Echo_Client_Request_Interceptor::~Echo_Client_Request_Interceptor ()
-{
-}
-
-char *
-Echo_Client_Request_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup (this->myname_);
-}
-
-void
-Echo_Client_Request_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Client_Request_Interceptor::send_poll (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED
- )
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Do nothing
-}
-
-void
-Echo_Client_Request_Interceptor::send_request (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- client_interceptor_check_++;
-
- CORBA::String_var op =
- ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::send_request\n"));
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::send_request from "
- "\"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
-
- ACE_DEBUG ((LM_DEBUG,
- "The arg is %d\n",
- param));
- }
-}
-
-void
-Echo_Client_Request_Interceptor::receive_other (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- client_interceptor_check_++;
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::receive_other "
- "from \"%s\"\n",
- op.in ()));
-}
-
-void
-Echo_Client_Request_Interceptor::receive_reply (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- client_interceptor_check_++;
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::receive_reply "
- "from \"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
-
- }
- else if (ACE_OS::strcmp (op.in (), "calculate") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param1, param2, result;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i++].argument >>= param1;
- paramlist[i].argument >>= param2;
-
- CORBA::Any_var result_any = ri->result (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- (result_any.in ()) >>= result;
-
- ACE_DEBUG ((LM_DEBUG,
- "The result of calculate is %d + %d = %d\n",
- param1,
- param2,
- result));
- }
-}
-
-void
-Echo_Client_Request_Interceptor::receive_exception (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- client_interceptor_check_++;
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::String_var exception_id =
- ri->received_exception_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Client_Request_Interceptor::received_exception "
- "from \"%s\"\n",
- op.in ()));
-
- ACE_DEBUG ((LM_DEBUG,
- "Exception ID = %s\n",
- exception_id.in ()));
-}
-
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.h
deleted file mode 100644
index fc49396097a..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_interceptor.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TAO_CLIENT_INTERCEPTOR_H
-#define TAO_CLIENT_INTERCEPTOR_H
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/PI.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/LocalObject.h"
-
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-class Echo_Client_Request_Interceptor
- : public virtual PortableInterceptor::ClientRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
- // = Client-side echo interceptor. For checking interceptor visually only.
-public:
-
- Echo_Client_Request_Interceptor (void);
- // ctor.
- virtual ~Echo_Client_Request_Interceptor ();
- // dtor.
-
- virtual char * name (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
- // Canonical name of the interceptor.
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void send_poll (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- virtual void receive_other (
- PortableInterceptor::ClientRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- PortableInterceptor::ForwardRequest
- ));
-
- virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void receive_exception (
- PortableInterceptor::ClientRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- // Some identifiers that are used for error checking
- static CORBA::ULong client_interceptor_check_;
-private:
- const char *myname_;
-};
-
-#if defined (_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* TAO_CLIENT_INTERCEPTOR_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp
deleted file mode 100644
index 78a62bdf25e..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-//$Id$
-#include "Client_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/Argv_Type_Converter.h"
-#include "ace/SString.h"
-#include "ace/Manual_Event.h"
-#include "Echo_Client_ORBInitializer.h"
-#include "tao/ORBInitializer_Registry.h"
-#include "client_interceptor.h"
-
-const char *input = "file://test.ior";
-
-ACE_CString proc_mode_str;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "p:k:");
- int c;
-
- proc_mode_str.set ("LOCAL_AND_REMOTE");
-
- while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'p':
- proc_mode_str.set (get_opts.opt_arg ());
- break;
- case 'k':
- input = get_opts.opt_arg ();
- break;
- case '?':
- default:
- return 0;
- }
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- if (parse_args (argc,
- argv) == -1)
- return -1;
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- PortableInterceptor::ORBInitializer_ptr temp_initializer =
- PortableInterceptor::ORBInitializer::_nil ();
-
- // Set up our default expectations.
- CORBA::ULong expected_interceptor_check = 12;
-
- PortableInterceptor::ProcessingMode proc_mode =
- PortableInterceptor::LOCAL_AND_REMOTE;
-
- if (proc_mode_str == "LOCAL_ONLY")
- {
- proc_mode = PortableInterceptor::LOCAL_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_ONLY for client-side ProcessingMode.\n"));
-
- // Since all of the calls are remote, setting the client-side
- // ProcessingMode to LOCAL_ONLY will cause the client request
- // interceptor to not fire. Thus, we expect 0 calls on the
- // client interceptor.
- expected_interceptor_check = 0;
- }
- else if (proc_mode_str == "REMOTE_ONLY")
- {
- proc_mode = PortableInterceptor::REMOTE_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using REMOTE_ONLY for client-side ProcessingMode.\n"));
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_AND_REMOTE for client-side ProcessingMode.\n"));
- }
-
- ACE_NEW_RETURN (temp_initializer,
- Echo_Client_ORBInitializer (proc_mode),
- -1); // No exceptions yet!
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Argv_Type_Converter atc (argc, argv);
- CORBA::ORB_var orb =
- CORBA::ORB_init (atc.get_argc (),
- atc.get_TCHAR_argv (),
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- Client_Task client_task (input,
- orb.in (),
- ACE_Thread_Manager::instance ());
-
- if (client_task.activate (THR_NEW_LWP | THR_JOINABLE,
- 1,
- 1) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Error activating client task\n"));
- }
-
- ACE_Thread_Manager::instance ()->wait ();
-
- CORBA::ULong number_called =
- Echo_Client_Request_Interceptor::client_interceptor_check_;
-
- if (number_called != expected_interceptor_check)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR:Client-Side Interceptors not called "
- "properly, called %d times, expected %d.\n",
- number_called, expected_interceptor_check));
- return 1;
- }
- }
- ACE_CATCHANY
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Some exception was caught in main().\n"));
- return 1;
- }
- ACE_ENDTRY;
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl
deleted file mode 100755
index b04af3c2968..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl
+++ /dev/null
@@ -1,154 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../../bin';
-use PerlACE::Run_Test;
-
-sub get_test_modes
-{
- my $testid = shift;
-
- my $client_mode = "LOCAL_AND_REMOTE";
- my $server_mode = "LOCAL_AND_REMOTE";
-
- # There are Nine Permutations.
- if ($testid == 1)
- {
- $client_mode = "LOCAL_AND_REMOTE";
- $server_mode = "LOCAL_AND_REMOTE";
- }
- elsif ($testid == 2)
- {
- $client_mode = "LOCAL_AND_REMOTE";
- $server_mode = "LOCAL_ONLY";
- }
- elsif ($testid == 3)
- {
- $client_mode = "LOCAL_AND_REMOTE";
- $server_mode = "REMOTE_ONLY";
- }
- elsif ($testid == 4)
- {
- $client_mode = "LOCAL_ONLY";
- $server_mode = "LOCAL_AND_REMOTE";
- }
- elsif ($testid == 5)
- {
- $client_mode = "LOCAL_ONLY";
- $server_mode = "LOCAL_ONLY";
- }
- elsif ($testid == 6)
- {
- $client_mode = "LOCAL_ONLY";
- $server_mode = "REMOTE_ONLY";
- }
- elsif ($testid == 7)
- {
- $client_mode = "REMOTE_ONLY";
- $server_mode = "LOCAL_AND_REMOTE";
- }
- elsif ($testid == 8)
- {
- $client_mode = "REMOTE_ONLY";
- $server_mode = "LOCAL_ONLY";
- }
- elsif ($testid == 9)
- {
- $client_mode = "REMOTE_ONLY";
- $server_mode = "REMOTE_ONLY";
- }
- else
- {
- print STDERR "ERROR: invalid testid: $testid\n";
- exit 1;
- }
-
- return ($client_mode, $server_mode);
-}
-
-my $status = 0;
-my $file = PerlACE::LocalFile ("test.ior");
-
-my $testid;
-
-for ($testid = 1; $testid <= 9; ++$testid)
-{
- unlink $file;
-
- my $client_mode;
- my $server_mode;
-
- ($client_mode, $server_mode) = get_test_modes($testid);
-
- my $SV;
- if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("PI_ProcMode_Remote_TestServer",
- "-p $server_mode " .
- "-ORBobjrefstyle url");
- }
- else {
- $SV = new PerlACE::Process ("PI_ProcMode_Remote_TestServer",
- "-p $server_mode " .
- "-ORBobjrefstyle url");
- }
-
- print STDERR "\n\n==== Starting test variant #$testid\n\n";
-
- $server = $SV->Spawn ();
-
- if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- exit 1;
- }
-
- if (PerlACE::waitforfile_timed ($file, 15) == -1) {
- print STDERR "ERROR: cannot find file <$file>\n";
- $SV->Kill ();
- exit 1;
- }
-
- my $CLIENT;
- $CLIENT = new PerlACE::Process ("PI_ProcMode_Remote_TestClient",
- "-p $client_mode " .
- "-ORBobjrefstyle url");
-
- my $client_status = $CLIENT->SpawnWaitKill (5);
-
- if ($client_status != 0) {
- print STDERR "ERROR: PI_ProcMode_TestClient returned $client_status\n";
- print STDERR "ERROR: For client-side mode [$client_mode],\n";
- print STDERR "ERROR: and server-side mode [$server_mode].\n";
- $status = 1;
- }
-
- my $server_status = $SV->WaitKill (5);
-
- if ($server_status != 0) {
- print STDERR "ERROR: PI_ProcMode_TestServer returned $server_status\n";
- print STDERR "ERROR: For client-side mode [$client_mode],\n";
- print STDERR "ERROR: and server-side mode [$server_mode].\n";
- $status = 1;
- }
-
- if (($server_status == 0) && ($client_status == 0)) {
- print STDERR "\n==== Test variant #$testid (of 9) passed!\n";
- }
- else {
- print STDERR "\n==== Test variant #$testid (of 9) failed!\n";
- }
-}
-
-unlink $file;
-
-if ($status == 0) {
- print STDERR "\n==== All 9 test variants were successful!\n";
-}
-else {
- print STDERR "\n==== One or more of the 9 test variants failed!\n";
-}
-
-exit $status;
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp
deleted file mode 100644
index a1928755bec..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.cpp
+++ /dev/null
@@ -1,192 +0,0 @@
-// $Id$
-
-#include "server_interceptor.h"
-#include "tao/AnyTypeCode/AnyTypeCode_Adapter_Impl.h"
-#include "tao/AnyTypeCode/DynamicC.h"
-#include "tao/AnyTypeCode/TypeCode.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-
-ACE_RCSID (Remote,
- server_interceptor,
- "$Id$")
-
-const char *request_msg = "The Echo_Server_Request_Interceptor request message";
-const char *reply_msg = "The Echo_Server_Request_Interceptor reply message";
-CORBA::ULong Echo_Server_Request_Interceptor::server_interceptor_check_ = 0;
-
-Echo_Server_Request_Interceptor::Echo_Server_Request_Interceptor (void)
- : myname_ ("Echo_Server_Interceptor")
-{
-}
-
-Echo_Server_Request_Interceptor::~Echo_Server_Request_Interceptor ()
-{
-}
-
-char *
-Echo_Server_Request_Interceptor::name (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- return CORBA::string_dup (this->myname_);
-}
-
-void
-Echo_Server_Request_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
-}
-
-void
-Echo_Server_Request_Interceptor::receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
-}
-
-void
-Echo_Server_Request_Interceptor::receive_request (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- ++server_interceptor_check_;
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- PortableInterceptor::ObjectId_var test_oid =
- ri->object_id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Server_Request_Interceptor::receive_request from \"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
-
- ACE_DEBUG ((LM_DEBUG,
- "The arg is %d\n",
- param));
-
- }
-
- CORBA::String_var tmdi =
- ri->target_most_derived_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Target most derived interface: %s\n",
- tmdi.in ()));
-}
-
-void
-Echo_Server_Request_Interceptor::send_reply (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- ++server_interceptor_check_;
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Server_Request_Interceptor::send_reply from \"%s\"\n",
- op.in ()));
-
- if (ACE_OS::strcmp (op.in (), "normal") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i].argument >>= param;
- ACE_DEBUG ((LM_DEBUG,
- "The arg is %d\n",
- param));
- }
-
- if (ACE_OS::strcmp (op.in (), "calculate") == 0)
- {
- Dynamic::ParameterList_var paramlist =
- ri->arguments (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::Long param1, param2, result = 0;
- CORBA::ULong i = 0; // index -- explicitly used to avoid
- // overloaded operator ambiguity.
- paramlist[i++].argument >>= param1;
- paramlist[i].argument >>= param2;
-
- CORBA::Any_var result_any = ri->result (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- (result_any.in ()) >>= result;
-
- ACE_DEBUG ((LM_DEBUG,
- "The result of calculate is %d + %d = %d\n",
- param1,
- param2,
- result));
- }
-}
-
-void
-Echo_Server_Request_Interceptor::send_exception (
- PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- ++server_interceptor_check_;
-
- CORBA::String_var op = ri->operation (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Echo_Server_Request_Interceptor::send_exception "
- "from \"%s\"\n",
- op.in ()));
-
-
- CORBA::Any_var any =
- ri->sending_exception (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- CORBA::TypeCode_var type = any->type ();
-
- const char *exception_id = type->id (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Exception ID = %s\n",
- exception_id));
-}
-
-void
-Echo_Server_Request_Interceptor::send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest))
-{
- ++server_interceptor_check_;
-
- // Do Nothing
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.h
deleted file mode 100644
index 1c6f50936a3..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_interceptor.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-#ifndef TAO_SERVER_INTERCEPTOR_H
-#define TAO_SERVER_INTERCEPTOR_H
-#include /**/ "ace/pre.h"
-
-#include "tao/PI/PI.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/PI_Server/PI_Server.h"
-#include "tao/LocalObject.h"
-
-#if defined(_MSC_VER)
-#pragma warning(push)
-#pragma warning(disable:4250)
-#endif /* _MSC_VER */
-
-class Echo_Server_Request_Interceptor
- : public PortableInterceptor::ServerRequestInterceptor,
- public virtual TAO_Local_RefCounted_Object
-{
- // = Server-side echo interceptor. For checking interceptor visually only.
-public:
- Echo_Server_Request_Interceptor (void);
- // cotr.
- ~Echo_Server_Request_Interceptor ();
- // dotr.
-
- virtual char * name (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
- // Canonical name of the interceptor.
-
- virtual void destroy (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void receive_request_service_contexts (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- PortableInterceptor::ForwardRequest
- ));
-
- virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- PortableInterceptor::ForwardRequest));
-
- virtual void send_other (
- PortableInterceptor::ServerRequestInfo_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS
- )
- ACE_THROW_SPEC ((
- CORBA::SystemException,
- PortableInterceptor::ForwardRequest
- ));
-
- // Some identifiers that are used for error checking
- static CORBA::ULong server_interceptor_check_;
-
-private:
- const char *myname_;
-};
-
-#if defined (_MSC_VER)
-#pragma warning(pop)
-#endif /* _MSC_VER */
-
-#include /**/ "ace/post.h"
-#endif /* TAO_SERVER_INTERCEPTOR_H */
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp
deleted file mode 100644
index 720d51ab9ad..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp
+++ /dev/null
@@ -1,138 +0,0 @@
-//$Id$
-#include "Server_Task.h"
-#include "ace/Get_Opt.h"
-#include "ace/Argv_Type_Converter.h"
-#include "ace/SString.h"
-#include "ace/Manual_Event.h"
-#include "Echo_Server_ORBInitializer.h"
-#include "tao/ORBInitializer_Registry.h"
-#include "server_interceptor.h"
-
-const char *output = "test.ior";
-
-ACE_CString proc_mode_str;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "p:o:");
- int c;
-
- proc_mode_str.set ("LOCAL_AND_REMOTE");
-
- while ((c = get_opts ()) != -1)
- {
- switch (c)
- {
- case 'p':
- proc_mode_str.set (get_opts.opt_arg ());
- break;
- case 'o':
- output = get_opts.opt_arg ();
- break;
- case '?':
- default:
- return 0;
- }
- }
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- if (parse_args (argc,
- argv) == -1)
- return -1;
-
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
- {
- PortableInterceptor::ORBInitializer_ptr temp_initializer =
- PortableInterceptor::ORBInitializer::_nil ();
-
- // Set up our default expectations.
- CORBA::ULong expected_interceptor_check = 12;
-
- PortableInterceptor::ProcessingMode proc_mode =
- PortableInterceptor::LOCAL_AND_REMOTE;
-
- if (proc_mode_str == "LOCAL_ONLY")
- {
- proc_mode = PortableInterceptor::LOCAL_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_ONLY for server-side ProcessingMode.\n"));
-
- // Since all of the calls are remote, setting the server-side
- // ProcessingMode to LOCAL_ONLY will cause the server request
- // interceptor to not fire. Thus, we expect 0 calls on the
- // server interceptor.
- expected_interceptor_check = 0;
- }
- else if (proc_mode_str == "REMOTE_ONLY")
- {
- proc_mode = PortableInterceptor::REMOTE_ONLY;
- ACE_DEBUG((LM_DEBUG,
- "Using REMOTE_ONLY for server-side ProcessingMode.\n"));
- }
- else
- {
- ACE_DEBUG((LM_DEBUG,
- "Using LOCAL_AND_REMOTE for server-side ProcessingMode.\n"));
- }
-
- ACE_NEW_RETURN (temp_initializer,
- Echo_Server_ORBInitializer (proc_mode),
- -1); // No exceptions yet!
- PortableInterceptor::ORBInitializer_var orb_initializer =
- temp_initializer;
-
- PortableInterceptor::register_orb_initializer (orb_initializer.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Argv_Type_Converter atc (argc, argv);
- CORBA::ORB_var orb =
- CORBA::ORB_init (atc.get_argc (),
- atc.get_TCHAR_argv (),
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Manual_Event me;
- Server_Task server_task (output,
- orb.in (),
- me,
- ACE_Thread_Manager::instance ());
-
- if (server_task.activate (THR_NEW_LWP | THR_JOINABLE,
- 1,
- 1) == -1)
- {
- ACE_ERROR ((LM_ERROR, "Error activating server task\n"));
- }
-
- ACE_Thread_Manager::instance ()->wait ();
-
- CORBA::ULong number_called =
- Echo_Server_Request_Interceptor::server_interceptor_check_;
-
- if (number_called != expected_interceptor_check)
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Server-Side Interceptors not "
- "called properly, called %d times, expected %d.\n",
- number_called, expected_interceptor_check));
- return 1;
- }
- }
- ACE_CATCHANY
- {
- ACE_ERROR ((LM_ERROR,
- "(%P|%t) ERROR: Some exception was caught in main().\n"));
- return 1;
- }
- ACE_ENDTRY;
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test.idl b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test.idl
deleted file mode 100644
index 07ed4dee088..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test.idl
+++ /dev/null
@@ -1,42 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Portable_Interceptors
-//
-// = FILENAME
-// test.idl
-//
-// = DESCRIPTION
-// Simple IDL file to test portable interceptor support.
-//
-// = AUTHORS
-// Nanbor Wang <nanbor@cs.wustl.edu>
-//
-// ============================================================================
-
-module Test_Interceptors
-{
- exception Silly
- {};
-
- interface Visual
- {
- void normal (in long arg);
- // Normal operation.
-
- long calculate (in long one, in long two);
- // Normal operation with a return val.
-
- void user ()
- raises (Silly);
- // throws a user exception.
-
- void system ();
- // thows a system exception.
-
- oneway void shutdown ();
- // shutdown the ORB
- };
-};
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.cpp
deleted file mode 100644
index bf5fe31c9f8..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-
-ACE_RCSID(Remote, test_i, "$Id$")
-
-Visual_i::Visual_i (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
- // ctor
-
-void
-Visual_i::normal (CORBA::Long
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::normal called with %d\n", arg));
-}
-
-CORBA::Long
-Visual_i::calculate (CORBA::Long one,
- CORBA::Long two
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::calculate\n"));
- return (one + two);
-}
-
-void
-Visual_i::user (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException,Test_Interceptors::Silly))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwning Silly\n"));
- ACE_THROW (Test_Interceptors::Silly ());
-}
-
-void
-Visual_i::system (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing INV_OBJREF\n"));
- ACE_THROW (CORBA::INV_OBJREF ());
-}
-
-void
-Visual_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->_remove_ref (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
-
- this->orb_->shutdown ();
-}
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h
deleted file mode 100644
index f31756fb10a..00000000000
--- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/test_i.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Portable_Interceptors/Dynamic
-//
-// = FILENAME
-// test_i.h
-//
-// = AUTHOR
-// Nanbor Wang
-//
-// ============================================================================
-
-#ifndef TAO_INTERCEPTOR_TEST_I_H
-#define TAO_INTERCEPTOR_TEST_I_H
-
-#include "testS.h"
-
-class Visual_i : public POA_Test_Interceptors::Visual
-{
- // = DESCRIPTION
- // Implements the Visual interface in test.idl
-
-public:
- Visual_i (CORBA::ORB_ptr orb);
- // ctor
-
- void normal (CORBA::Long arg
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- CORBA::Long calculate (
- CORBA::Long one,
- CORBA::Long two
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void user (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException,Test_Interceptors::Silly));
-
- void system (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
-private:
- CORBA::ORB_var orb_;
- // The ORB pointer (for shutdown.)
-};
-
-#endif /* TAO_INTERCEPTOR_TEST_I_H */
diff --git a/TAO/tests/Portable_Interceptors/Recursive_ORBInitializer/client.cpp b/TAO/tests/Portable_Interceptors/Recursive_ORBInitializer/client.cpp
index 9f716e09ada..086c11dab54 100644
--- a/TAO/tests/Portable_Interceptors/Recursive_ORBInitializer/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Recursive_ORBInitializer/client.cpp
@@ -2,14 +2,17 @@
#include "Client_ORBInitializer.h"
#include "tao/ORBInitializer_Registry.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Recursive_ORBInitializer,
client,
"$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Client_ORBInitializer* initializer1 = 0;
Client_ORBInitializer* initializer2 = 0;
@@ -34,11 +37,11 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::ORB_var orb2 =
- CORBA::ORB_init (argc, argv, "SecondORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "SecondORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/Portable_Interceptors/Register_Initial_References/run_test.pl b/TAO/tests/Portable_Interceptors/Register_Initial_References/run_test.pl
index 30bc0d981cf..f40037e01d2 100755
--- a/TAO/tests/Portable_Interceptors/Register_Initial_References/run_test.pl
+++ b/TAO/tests/Portable_Interceptors/Register_Initial_References/run_test.pl
@@ -16,7 +16,7 @@ else {
}
print STDERR "\n==== Running Register_Initial_References test ====\n";
-$server = $SV->SpawnWaitKill (30);
+$server = $SV->SpawnWaitKill (5);
if ($server != 0) {
print STDERR "ERROR: server returned $server\n";
diff --git a/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp b/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp
index efac5ba2c36..dc86ff0da19 100644
--- a/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp
+++ b/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp
@@ -3,6 +3,7 @@
#include "Server_ORBInitializer.h"
#include "tao/ORBInitializer_Registry.h"
#include "test_i.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Recursive_ORBInitializer,
server,
@@ -107,8 +108,10 @@ int test_orb (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Server_ORBInitializer *initializer = 0;
int retval = 0;
@@ -122,7 +125,7 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
retval = test_orb (orb.in () ACE_ENV_ARG_PARAMETER);
@@ -133,7 +136,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var second_orb =
- CORBA::ORB_init (argc, argv, "SecondORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "SecondORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
ACE_CATCHANY
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc
index ee81ede8553..15ecab48119 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/PI_Request_Interceptor_Flow.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
Client_ORBInitializer.cpp
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp
index 52caf89e452..fc04648f4d0 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "Client_ORBInitializer.h"
@@ -21,7 +22,7 @@ parse_args (int argc, char *argv[])
"Wrong number of arguments.\n"),
-1);
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -154,8 +155,10 @@ server_test (Test_ptr server ACE_ENV_ARG_DECL)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -172,13 +175,13 @@ main (int argc, char *argv[])
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"Client ORB"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/server.cpp b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/server.cpp
index 6e4fa0d21d3..96db670ab05 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/server.cpp
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/server.cpp
@@ -1,6 +1,7 @@
// -*- C++ -*-
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "Server_ORBInitializer.h"
@@ -21,7 +22,7 @@ parse_args (int argc, char *argv[])
"Wrong number of arguments.\n"),
-1);
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -44,8 +45,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "Server ORB" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "Server ORB" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -81,7 +84,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (::parse_args (argc, argv) != 0)
+ if (::parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -101,7 +104,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Write IOR to a file.
- FILE *output_file= ACE_OS::fopen (ior_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file <%s> for writing "
diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl
index 036fe0dd66e..b536954c01f 100644
--- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl
+++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/test.idl
@@ -12,7 +12,7 @@
*/
//=============================================================================
-#include "tao/ULongSeq.pidl"
+#include <ULongSeq.pidl>
interface Test
{
diff --git a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
index 2e992878fcb..1a864c9e26f 100644
--- a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
+++ b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/PI_Svc_Context_Manip.mpc
@@ -11,7 +11,6 @@ project(*Server): taoserver, pi_server, interceptors {
}
project(*Client): taoclient, pi, interceptors {
- after += *Server
Source_Files {
testC.cpp
Client_ORBInitializer.cpp
diff --git a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp
index 80c6cfad678..aa55664e5fe 100644
--- a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp
+++ b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "Client_ORBInitializer.h"
@@ -13,7 +14,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "ef:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ef:");
int c;
while ((c = get_opts ()) != -1)
@@ -77,8 +78,10 @@ run_test (Test_Interceptors::Visual_ptr server
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
PortableInterceptor::ORBInitializer_ptr temp_initializer;
@@ -94,10 +97,10 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp
index bb361528705..e425cd68c56 100644
--- a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp
+++ b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "test_i.h"
#include "Server_ORBInitializer.h"
@@ -16,7 +17,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -39,8 +40,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
PortableInterceptor::ORBInitializer_ptr temp_initializer;
@@ -57,7 +60,7 @@ main (int argc, char *argv[])
// Now we can create the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Visual_i server_impl (orb.in ());
@@ -111,7 +114,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Portable_Interceptors/Slot/PI_Slot.mpc b/TAO/tests/Portable_Interceptors/Slot/PI_Slot.mpc
deleted file mode 100644
index 2ae15155c7b..00000000000
--- a/TAO/tests/Portable_Interceptors/Slot/PI_Slot.mpc
+++ /dev/null
@@ -1,7 +0,0 @@
-// $Id$
-
-project(*driver): orbsvcsexe, pi_server, interceptors {
- Source_Files {
- driver.cpp
- }
-}
diff --git a/TAO/tests/Portable_Interceptors/Slot/driver.cpp b/TAO/tests/Portable_Interceptors/Slot/driver.cpp
deleted file mode 100644
index b7d2b320500..00000000000
--- a/TAO/tests/Portable_Interceptors/Slot/driver.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-// file : Slot/driver.cpp
-// author : Boris Kolpackov <boris@kolpackov.net>
-// cvs-id : $Id$
-
-#include "tao/PI/PI.h"
-#include "tao/LocalObject.h"
-#include "tao/ORBInitializer_Registry.h"
-
-PortableInterceptor::SlotId slot_id;
-
-class ORB_Initializer : public virtual PortableInterceptor::ORBInitializer,
- public virtual TAO_Local_RefCounted_Object
-{
-public:
- virtual void
- pre_init (PortableInterceptor::ORBInitInfo_ptr) throw (CORBA::SystemException)
- {
- }
-
- virtual void
- post_init (PortableInterceptor::ORBInitInfo_ptr info) throw (CORBA::SystemException)
- {
- slot_id = info->allocate_slot_id ();
- ACE_DEBUG ((LM_DEBUG, "Allocated slot with id %d.\n", slot_id));
- }
-};
-
-int
-main (int argc, char *argv[])
-{
-
- try
- {
- PortableInterceptor::ORBInitializer_var orb_initializer = new ORB_Initializer ();
- PortableInterceptor::register_orb_initializer (orb_initializer.in ());
-
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
-
- CORBA::Object_var pic_obj = orb->resolve_initial_references ("PICurrent");
- PortableInterceptor::Current_var pic (
- PortableInterceptor::Current::_narrow (pic_obj.in ()));
-
- CORBA::Any in;
- in <<= CORBA::ULong (1);
- pic->set_slot (slot_id, in);
-
- CORBA::ULong v (0);
- CORBA::Any_var out = pic->get_slot (slot_id);
- out >>= v;
-
- if (v != 1)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Slot value was not preserved.\n"));
- return 1;
- }
- }
- catch (PortableInterceptor::InvalidSlot const&)
- {
- ACE_ERROR ((LM_ERROR, "ERROR: Caught InvalidSlot exception.\n"));
- return 1;
- }
-
- return 0;
-}
diff --git a/TAO/tests/Portable_Interceptors/Slot/run_test.pl b/TAO/tests/Portable_Interceptors/Slot/run_test.pl
deleted file mode 100755
index f6cd92fdcf5..00000000000
--- a/TAO/tests/Portable_Interceptors/Slot/run_test.pl
+++ /dev/null
@@ -1,26 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-if (PerlACE::is_vxworks_test()) {
- $CL = new PerlACE::ProcessVX ("driver");
-}
-else {
- $CL = new PerlACE::Process ("driver");
-}
-print STDERR "\n==== Running Slot test ====\n";
-
-$client = $CL->SpawnWaitKill (5);
-
-if ($client != 0) {
- print STDERR "ERROR: driver returned $client\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/TAO/tests/QtTests/QtTests.mpc b/TAO/tests/QtTests/QtTests.mpc
index 95dad19f581..ff027308cb8 100644
--- a/TAO/tests/QtTests/QtTests.mpc
+++ b/TAO/tests/QtTests/QtTests.mpc
@@ -14,8 +14,7 @@ project(*server): taoserver, tao_qtresource {
}
}
-project(*client): taoclient, anytypecode, tao_qtresource {
- after += *server
+project(*client): taoclient, tao_qtresource {
MOC_Files {
client.h
diff --git a/TAO/tests/QtTests/client.cpp b/TAO/tests/QtTests/client.cpp
index 165651a0181..607144fa3d4 100755
--- a/TAO/tests/QtTests/client.cpp
+++ b/TAO/tests/QtTests/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/QtResource_Loader.h"
ACE_RCSID(QtTests, client, "$Id$")
@@ -9,8 +10,10 @@ ACE_RCSID(QtTests, client, "$Id$")
#include "client.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
QApplication app (argc, argv);
TAO::QtResource_Loader qt_resources (&app);
@@ -19,12 +22,12 @@ main (int argc, char *argv[])
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Client client (orb.in (), app);
- client.parse_args (argc, argv ACE_ENV_ARG_PARAMETER);
+ client.parse_args (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Creates the Qt widgets
@@ -69,7 +72,7 @@ Client::parse_args (int argc,
{
const char *ior = "file://test.ior";
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/QtTests/client.h b/TAO/tests/QtTests/client.h
index e4b50c40a70..7982dc17fff 100755
--- a/TAO/tests/QtTests/client.h
+++ b/TAO/tests/QtTests/client.h
@@ -40,7 +40,7 @@ public:
void show (void);
- void parse_args (int argc, char *argv[]
+ void parse_args (int argc, ACE_TCHAR *argv[]
ACE_ENV_ARG_DECL);
QVBox box_;
diff --git a/TAO/tests/QtTests/server.cpp b/TAO/tests/QtTests/server.cpp
index 718c1947c7c..5aa794dd458 100755
--- a/TAO/tests/QtTests/server.cpp
+++ b/TAO/tests/QtTests/server.cpp
@@ -2,6 +2,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (QtTests, server, "$Id$")
@@ -21,7 +22,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -47,10 +48,12 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// We do the command line parsing first
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Qt specific stuff for running with TAO...
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -117,7 +120,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Queued_Message_Test/Queued_Message_Test.cpp b/TAO/tests/Queued_Message_Test/Queued_Message_Test.cpp
index 077d93b4596..7f1b44056fc 100644
--- a/TAO/tests/Queued_Message_Test/Queued_Message_Test.cpp
+++ b/TAO/tests/Queued_Message_Test/Queued_Message_Test.cpp
@@ -16,6 +16,7 @@
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_stdlib.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (tests,
Queued_Message_Test,
@@ -33,8 +34,7 @@ create_new_message (void)
ACE_Message_Block mb (block_size);
mb.wr_ptr (block_size);
- return new TAO_Asynch_Queued_Message (&mb, TAO_ORB_Core_instance (),
- 0, 1);
+ return new TAO_Asynch_Queued_Message (&mb, TAO_ORB_Core_instance ());
}
/// Add a new message at the tail of the queue.
@@ -88,9 +88,8 @@ static void del_message (TAO_Queued_Message *&head,
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
-
// Initialize a random seed to get better coverage.
// @@ The random seed and default values should be configurable
// using command line options.
diff --git a/TAO/tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp b/TAO/tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
index 8dd1103b673..5e4f933adbb 100644
--- a/TAO/tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
+++ b/TAO/tests/RTCORBA/Activate_Object_Multiple_ORBs/test.cpp
@@ -21,7 +21,7 @@ public:
};
-int main(int, char**)
+int ACE_TMAIN(int, ACE_TCHAR**)
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
diff --git a/TAO/tests/RTCORBA/Banded_Connections/RTCORBA_Banded_Conn.mpc b/TAO/tests/RTCORBA/Banded_Connections/RTCORBA_Banded_Conn.mpc
index b62ff14a3d9..78e08a31786 100644
--- a/TAO/tests/RTCORBA/Banded_Connections/RTCORBA_Banded_Conn.mpc
+++ b/TAO/tests/RTCORBA/Banded_Connections/RTCORBA_Banded_Conn.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server {
}
project(*Client): rt_client {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Banded_Connections/client.cpp b/TAO/tests/RTCORBA/Banded_Connections/client.cpp
index 248fb4b0f2e..db79df757f8 100644
--- a/TAO/tests/RTCORBA/Banded_Connections/client.cpp
+++ b/TAO/tests/RTCORBA/Banded_Connections/client.cpp
@@ -3,6 +3,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/ORB_Core.h"
#include "../check_supported_priorities.cpp"
@@ -14,7 +15,7 @@ const char *ior2 = "file://test2.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "n:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "n:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -314,22 +315,23 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Banded_Connections/run_test.pl b/TAO/tests/RTCORBA/Banded_Connections/run_test.pl
index 20bd0533f96..ab526f9b9d9 100755
--- a/TAO/tests/RTCORBA/Banded_Connections/run_test.pl
+++ b/TAO/tests/RTCORBA/Banded_Connections/run_test.pl
@@ -50,7 +50,7 @@ else {
$CL = new PerlACE::Process ("client", "-n file://$iorfile1 -o file://$iorfile2");
$SV->Spawn();
-if (PerlACE::waitforfile_timed ($iorfile2, $PerlACE::wait_interval_for_process_creation) == -1)
+if (PerlACE::waitforfile_timed ($iorfile2, 10) == -1)
{
$server = $SV->TimedWait (1);
if ($server == 2)
diff --git a/TAO/tests/RTCORBA/Banded_Connections/server.cpp b/TAO/tests/RTCORBA/Banded_Connections/server.cpp
index b45fef9cba9..deac22c02b8 100644
--- a/TAO/tests/RTCORBA/Banded_Connections/server.cpp
+++ b/TAO/tests/RTCORBA/Banded_Connections/server.cpp
@@ -3,6 +3,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTPortableServer/RTPortableServer.h"
#include "../check_supported_priorities.cpp"
@@ -134,7 +135,7 @@ const char *ior_output_file2 = "test2.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "b:o:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:o:n:");
int c;
while ((c = get_opts ()) != -1)
@@ -174,7 +175,7 @@ get_priority_bands (RTCORBA::PriorityBands &bands)
// Read bands from a file.
//
FILE* file =
- ACE_OS::fopen (bands_file, "r");
+ ACE_OS::fopen (bands_file, ACE_TEXT("r"));
if (file == 0)
return -1;
@@ -257,7 +258,7 @@ create_object (PortableServer::POA_ptr poa,
if (filename != 0)
{
FILE *output_file =
- ACE_OS::fopen (filename, "w");
+ ACE_OS::fopen (filename, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -344,24 +345,25 @@ poa_creation_exception_test (PortableServer::POA_ptr root_poa,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb;
ACE_TRY_NEW_ENV
{
// Initialize ORB.
orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
int result =
- parse_args (argc,
- argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc b/TAO/tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
index 9f0ce92c6ea..23d288d93b3 100644
--- a/TAO/tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
+++ b/TAO/tests/RTCORBA/Client_Propagated/RTCORBA_Client_Propagated.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server {
}
project(*Client): rt_client, interceptors {
- after += *Server
Source_Files {
testC.cpp
interceptors.cpp
diff --git a/TAO/tests/RTCORBA/Client_Propagated/client.cpp b/TAO/tests/RTCORBA/Client_Propagated/client.cpp
index dc1fe8657cd..26baadf06fb 100644
--- a/TAO/tests/RTCORBA/Client_Propagated/client.cpp
+++ b/TAO/tests/RTCORBA/Client_Propagated/client.cpp
@@ -8,6 +8,7 @@
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTCORBA/Priority_Mapping_Manager.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "../check_supported_priorities.cpp"
const char *ior = "file://test.ior";
@@ -15,7 +16,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -188,8 +189,10 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Register the interceptors to check for the RTCORBA
@@ -208,10 +211,10 @@ main (int argc, char *argv[])
// Initialize and obtain reference to the Test object.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/tests/RTCORBA/Client_Propagated/server.cpp b/TAO/tests/RTCORBA/Client_Propagated/server.cpp
index 463429c1312..c2e235e93b3 100644
--- a/TAO/tests/RTCORBA/Client_Propagated/server.cpp
+++ b/TAO/tests/RTCORBA/Client_Propagated/server.cpp
@@ -3,6 +3,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTPortableServer/RTPortableServer.h"
@@ -85,7 +86,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -200,7 +201,7 @@ Task::svc (void)
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -253,18 +254,20 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Standard initialization:
// parse arguments and get all the references (ORB,
// RootPOA, RTORB, RTCurrent, POAManager).
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/tests/RTCORBA/Client_Protocol/RTCORBA_Client_Protocol.mpc b/TAO/tests/RTCORBA/Client_Protocol/RTCORBA_Client_Protocol.mpc
index e51a077e7fe..596601d6e07 100644
--- a/TAO/tests/RTCORBA/Client_Protocol/RTCORBA_Client_Protocol.mpc
+++ b/TAO/tests/RTCORBA/Client_Protocol/RTCORBA_Client_Protocol.mpc
@@ -8,7 +8,6 @@ project(*Server): strategies, rt_server {
}
project(*Client): strategies, rt_client {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Client_Protocol/client.cpp b/TAO/tests/RTCORBA/Client_Protocol/client.cpp
index 2ef31055c8f..f72f52a5388 100644
--- a/TAO/tests/RTCORBA/Client_Protocol/client.cpp
+++ b/TAO/tests/RTCORBA/Client_Protocol/client.cpp
@@ -3,6 +3,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/Strategies/advanced_resource.h"
@@ -14,7 +15,7 @@ CORBA::ULong protocol_type = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "s:c:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "s:c:p:");
int c, result;
while ((c = get_opts ()) != -1)
@@ -87,19 +88,21 @@ exception_test (Test_ptr server,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB, resolve references and parse arguments.
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RTORB.
diff --git a/TAO/tests/RTCORBA/Client_Protocol/run_test.pl b/TAO/tests/RTCORBA/Client_Protocol/run_test.pl
index 9b548f0ff8b..353569681aa 100755
--- a/TAO/tests/RTCORBA/Client_Protocol/run_test.pl
+++ b/TAO/tests/RTCORBA/Client_Protocol/run_test.pl
@@ -48,7 +48,7 @@ $CL = new PerlACE::Process ("client", $client_args);
$SV->Spawn ();
-if (PerlACE::waitforfile_timed ($iorfile2, $PerlACE::wait_interval_for_process_creation) == -1) {
+if (PerlACE::waitforfile_timed ($iorfile2, 10) == -1) {
print STDERR "ERROR: cannot find file <$iorfile2>\n";
$SV->Kill ();
exit 1;
diff --git a/TAO/tests/RTCORBA/Client_Protocol/server.cpp b/TAO/tests/RTCORBA/Client_Protocol/server.cpp
index 6b4cc59125f..d8d8a93df56 100644
--- a/TAO/tests/RTCORBA/Client_Protocol/server.cpp
+++ b/TAO/tests/RTCORBA/Client_Protocol/server.cpp
@@ -2,6 +2,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTCORBA/RT_Policy_i.h"
#include "tao/RTPortableServer/RTPortableServer.h"
@@ -59,7 +60,7 @@ CORBA::ULong protocol_type = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "s:c:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "s:c:p:");
int c, result;
while ((c = get_opts ()) != -1)
@@ -137,7 +138,7 @@ create_object (PortableServer::POA_ptr poa,
// Print ior to the file.
if (filename != 0)
{
- FILE *output_file= ACE_OS::fopen (filename, "w");
+ FILE *output_file= ACE_OS::fopen (filename, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -151,17 +152,19 @@ create_object (PortableServer::POA_ptr poa,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RTORB.
diff --git a/TAO/tests/RTCORBA/Collocation/Collocation.cpp b/TAO/tests/RTCORBA/Collocation/Collocation.cpp
index fa40bd0ca34..4d0803b8e08 100644
--- a/TAO/tests/RTCORBA/Collocation/Collocation.cpp
+++ b/TAO/tests/RTCORBA/Collocation/Collocation.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "ace/Array_Base.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "tao/RTCORBA/Thread_Pool.h"
#include "testS.h"
@@ -916,13 +917,15 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/RTCORBA/Destroy_Thread_Pool/Destroy_Thread_Pool.cpp b/TAO/tests/RTCORBA/Destroy_Thread_Pool/Destroy_Thread_Pool.cpp
index ed68835f061..3f5810bc95b 100644
--- a/TAO/tests/RTCORBA/Destroy_Thread_Pool/Destroy_Thread_Pool.cpp
+++ b/TAO/tests/RTCORBA/Destroy_Thread_Pool/Destroy_Thread_Pool.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB.h"
#include "tao/RTCORBA/RTCORBA.h"
@@ -19,7 +20,7 @@ static int iterations = 5;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:");
int c;
while ((c = get_opts ()) != -1)
@@ -89,13 +90,15 @@ create_threadpool_with_lanes (RTCORBA::RTORB_ptr rt_orb
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -125,7 +128,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Diffserv/RTCORBA_Diffserv.mpc b/TAO/tests/RTCORBA/Diffserv/RTCORBA_Diffserv.mpc
index 85cadf3219a..7138aa20720 100644
--- a/TAO/tests/RTCORBA/Diffserv/RTCORBA_Diffserv.mpc
+++ b/TAO/tests/RTCORBA/Diffserv/RTCORBA_Diffserv.mpc
@@ -9,7 +9,6 @@ project(*client) : taoexe, portableserver, rtcorba, minimum_corba {
}
project(*server) : taoexe, rtportableserver, rtcorba, minimum_corba {
- after += *client
source_files {
server.cpp
Custom_Network_Priority_Mapping.cpp
diff --git a/TAO/tests/RTCORBA/Diffserv/client.cpp b/TAO/tests/RTCORBA/Diffserv/client.cpp
index 1956eb1e5ac..a7c39a1d357 100644
--- a/TAO/tests/RTCORBA/Diffserv/client.cpp
+++ b/TAO/tests/RTCORBA/Diffserv/client.cpp
@@ -6,6 +6,7 @@
#include "tao/RTCORBA/Network_Priority_Mapping.h"
#include "Custom_Network_Priority_Mapping.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Policy_Manager.h"
static const char *ior = "file://simple_servant.ior";
@@ -130,7 +131,7 @@ change_network_priority (int enable_network_priority,
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:n:p:x:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:n:p:x:");
int c;
while ((c = get_opts ()) != -1)
@@ -183,15 +184,17 @@ toggle (int &i)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Initialize and obtain reference to the Test object.
diff --git a/TAO/tests/RTCORBA/Diffserv/server.cpp b/TAO/tests/RTCORBA/Diffserv/server.cpp
index cee01e1b4f7..6acc390f714 100644
--- a/TAO/tests/RTCORBA/Diffserv/server.cpp
+++ b/TAO/tests/RTCORBA/Diffserv/server.cpp
@@ -3,6 +3,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTPortableServer/RTPortableServer.h"
#include "tao/RTCORBA/Network_Priority_Mapping_Manager.h"
@@ -52,7 +53,7 @@ static RTCORBA::Priority corba_priority = RTCORBA::minPriority;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "p:");
int c;
while ((c = get_opts ()) != -1)
@@ -97,26 +98,28 @@ create_object (PortableServer::POA_ptr poa,
orb->object_to_string (object.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- FILE *output_file= ACE_OS::fopen (filename, "w");
+ FILE *output_file= ACE_OS::fopen (filename, ACE_TEXT("w"));
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::Object_var object;
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), ""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RootPOA.
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README
deleted file mode 100644
index 95b07c46c2c..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/README
+++ /dev/null
@@ -1,10 +0,0 @@
-$Id$
-
-Description:
-This is a simple test for a RT thread-pool server. It creates a
-server process with multiple thread pools, POAs, and servants. The
-test also spawns multiple clients for each servant. The servants with
-multiple threads in their thread-pool respond faster than the servants
-with a single thread thread-pool.
-
-See run_test.pl to see how to run this test. \ No newline at end of file
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/RT_Dynamic_Thread_Pool.mpc b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/RT_Dynamic_Thread_Pool.mpc
deleted file mode 100644
index ebf79370785..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/RT_Dynamic_Thread_Pool.mpc
+++ /dev/null
@@ -1,18 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(*Server): strategies, rt_server, minimum_corba {
- Source_Files {
- test_i.cpp
- server.cpp
- }
-}
-
-project(*Client): strategies, rt_client, minimum_corba {
- after += *Server
- Source_Files {
- testC.cpp
- client.cpp
- }
-}
-
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/client.cpp b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/client.cpp
deleted file mode 100644
index abe1dd456ec..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/client.cpp
+++ /dev/null
@@ -1,225 +0,0 @@
-// $Id$
-
-#include "ace/Get_Opt.h"
-#include "testC.h"
-#include "tao/RTCORBA/RTCORBA.h"
-#include "tao/ORB_Core.h"
-#include "ace/Task.h"
-#include "ace/OS_NS_unistd.h"
- #include "../check_supported_priorities.cpp"
-
-ACE_RCSID(Thread_Pool, client, "$Id$")
-
-const char *ior = "file://ior_1";
-int iterations = 6;
-int shutdown_server = 0;
-bool decreased = false;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'x':
- shutdown_server = 1;
- break;
-
- case 'k':
- ior = get_opts.opt_arg ();
- break;
-
- case 'i':
- iterations = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-k <ior> "
- "-i <iterations> "
- "-x [shutdown server] "
- "\n",
- argv [0]),
- -1);
- }
-
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-class Task : public ACE_Task_Base
-{
-public:
-
- Task (ACE_Thread_Manager &thread_manager,
- CORBA::ORB_ptr orb);
-
- int svc (void);
-
- CORBA::ORB_var orb_;
-
-};
-
-Task::Task (ACE_Thread_Manager &thread_manager,
- CORBA::ORB_ptr orb)
- : ACE_Task_Base (&thread_manager),
- orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-int
-Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var object =
- this->orb_->string_to_object (ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- test_var test =
- test::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- pid_t pid =
- ACE_OS::getpid ();
-
- CORBA::Long tc = 0;
-
- for (int i = 0; i != iterations; ++i)
- {
- CORBA::Long mtc = 0;
- CORBA::Long r =
- test->method (pid,
- i,
- mtc
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Each 2 iterations sleep 5 seconds
- if (i % 2 == 0)
- ACE_OS::sleep (5);
-
- ACE_ASSERT (r == i);
- // Assert disappears on with optimizations on.
- ACE_UNUSED_ARG (r);
-
- if (mtc > tc)
- {
- // Number of threads increased, so store this.
- ACE_DEBUG ((LM_DEBUG, "Thread count increased to %d\n", mtc));
- tc = mtc;
- }
- else if (mtc < tc)
- {
- // Number of threads decreased!
- ACE_DEBUG ((LM_DEBUG, "Thread count decreased to %d\n", mtc));
- decreased = true;
- tc = mtc;
- }
- }
-
- ACE_OS::sleep (10);
-
- CORBA::Long end = 0;
- CORBA::Long re =
- test->method (pid,
- 0,
- end
- ACE_ENV_ARG_PARAMETER);
-
- ACE_ASSERT (re == 0);
- // Assert disappears on with optimizations on.
- ACE_UNUSED_ARG (re);
-
- if (end != 0)
- {
- ACE_ERROR ((LM_ERROR, "Dynamic thread count should be 0, not %d\n", end));
- }
-
- if (shutdown_server)
- {
- test->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- int result =
- parse_args (argc, argv);
- if (result != 0)
- return result;
-
- // Thread Manager for managing task.
- ACE_Thread_Manager thread_manager;
-
- // Create task.
- Task task (thread_manager,
- orb.in ());
-
- // Task activation flags.
- long flags =
- THR_NEW_LWP |
- THR_JOINABLE |
- orb->orb_core ()->orb_params ()->thread_creation_flags ();
-
- // Activate task.
- result =
- task.activate (flags);
- if (result == -1)
- {
- if (errno == EPERM)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot create thread with scheduling policy %s\n"
- "because the user does not have the appropriate privileges, terminating program....\n"
- "Check svc.conf options and/or run as root\n",
- sched_policy_name (orb->orb_core ()->orb_params ()->ace_sched_policy ())),
- 2);
- }
- else
- // Unexpected error.
- ACE_ASSERT (0);
- }
-
- // Wait for task to exit.
- result =
- thread_manager.wait ();
- ACE_ASSERT (result != -1);
-
- if (decreased == false)
- {
- ACE_ERROR_RETURN ((LM_ERROR, "ERROR: Number of threads didn't decrease\n"), -1);
- }
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf
deleted file mode 100644
index 41c1919a08a..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-# Option for platforms where direct mapping doesn't work
-static RT_ORB_Loader "-ORBPriorityMapping continuous -RTORBDynamicThreadIdleTimeout 1000000"
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf.xml b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf.xml
deleted file mode 100644
index bbb864e64b0..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/continuous.conf.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version='1.0'?>
-<!-- Converted from continuous.conf by svcconf-convert.pl -->
-<ACE_Svc_Conf>
- <!-- Option for platforms where direct mapping doesn't work -->
- <static id="RT_ORB_Loader" params="-ORBPriorityMapping continuous -RTORBDynamicThreadIdleTimeout 1000000"/>
-</ACE_Svc_Conf>
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/run_test.pl b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/run_test.pl
deleted file mode 100644
index 2059c01b04f..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/run_test.pl
+++ /dev/null
@@ -1,117 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../../bin';
-use PerlACE::Run_Test;
-
-$number_of_clients = 1;
-$status = 0;
-$continuous = ($^O eq 'hpux');
-
-@configurations =
- (
- {
- file => "ior_3",
- description => "Invoking methods on servant in second RT thread pool (with lanes)",
- },
- );
-
-for $test (@configurations)
-{
- unlink $test->{file};
-}
-
-sub run_clients
-{
- my @parms = @_;
- $arg = $parms[0];
- $clients = $parms[1];
-
- for ($i = 0; $i < $clients; $i++)
- {
- $CL[$i] = new PerlACE::Process ("client", $arg);
- $CL[$i]->Spawn ();
- }
-
- for ($i = 0; $i < $clients; $i++)
- {
- $client = $CL[$i]->WaitKill (120);
- if ($client != 0)
- {
- print STDERR "ERROR: client returned $client\n";
- $status = 1;
- goto kill_server;
- }
- }
-}
-
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server");
-}
-else {
- $SV = new PerlACE::Process ("server");
-}
-
-if ($continuous) {
- $SV->Arguments ("-ORBSvcConf continuous$PerlACE::svcconf_ext");
-}
- $SV->Arguments ("-ORBDebugLevel 10 -ORBLogFile server.log");
-
-$SV->Spawn ();
-
-for $test (@configurations)
-{
- if (PerlACE::waitforfile_timed ($test->{file}, 10) == -1)
- {
- $server = $SV->TimedWait (1);
- if ($server == 2)
- {
- # Mark as no longer running to avoid errors on exit.
- $SV->{RUNNING} = 0;
- exit $status;
- }
- else
- {
- print STDERR "ERROR: cannot find ior file: $test->{file}\n";
- $status = 1;
- goto kill_server;
- }
- }
- }
-
-for $test (@configurations)
- {
- print STDERR "\n*************************************************************\n";
- print STDERR "$test->{description}\n";
- print STDERR "*************************************************************\n\n";
-
- run_clients ("-k file://".PerlACE::LocalFile($test->{file}), $number_of_clients);
- }
-
-print STDERR "\n************************\n";
-print STDERR "Shutting down the server\n";
-print STDERR "************************\n\n";
-
-run_clients ("-k file://".PerlACE::LocalFile($configurations[0]->{file})." -i 0 -x", 1);
-
-kill_server:
-
-$server = $SV->WaitKill (5);
-
-if ($server != 0)
- {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
- }
-
-for $test (@configurations)
- {
- unlink $test->{file};
- }
-
-exit $status
-
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp
deleted file mode 100644
index ea5dc6db558..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/server.cpp
+++ /dev/null
@@ -1,397 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-#include "ace/Get_Opt.h"
-#include "ace/OS_NS_unistd.h"
-#include "tao/ORB_Core.h"
-#include "ace/Task.h"
-#include "tao/RTPortableServer/RTPortableServer.h"
-#include "../check_supported_priorities.cpp"
-
-ACE_RCSID(Thread_Pool, server, "$Id$")
-
-const char *ior_output_file = "ior";
-int ior_count = 1;
-CORBA::ULong static_threads = 1;
-CORBA::ULong dynamic_threads = 25;
-long nap_time = 1000;
-
-int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "o:s:d:t:h");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'o':
- ior_output_file = get_opts.opt_arg ();
- break;
-
- case 's':
- static_threads = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case 'd':
- dynamic_threads = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case 't':
- nap_time = ACE_OS::atoi (get_opts.opt_arg ());
- break;
-
- case 'h':
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s "
- "-o <iorfile> "
- "-s <static_threads> "
- "-d <dynamic_threads> "
- "-t <nap_time> "
- "\n",
- argv [0]),
- -1);
- }
-
- // Indicates sucessful parsing of the command line
- return 0;
-}
-
-int
-write_ior_to_file (CORBA::ORB_ptr orb,
- test_ptr test
- ACE_ENV_ARG_DECL)
-{
- CORBA::String_var ior =
- orb->object_to_string (test
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- char filename[BUFSIZ];
- ACE_OS::sprintf (filename,
- "%s_%d",
- ior_output_file,
- ior_count++);
-
- FILE *output_file =
- ACE_OS::fopen (filename,
- "w");
-
- if (output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open output file for writing IOR: %s",
- filename),
- -1);
-
- ACE_OS::fprintf (output_file,
- "%s",
- ior.in ());
-
- ACE_OS::fclose (output_file);
-
- return 0;
-}
-
-int
-create_POA_and_register_servant (CORBA::Policy_ptr threadpool_policy,
- const char *poa_name,
- PortableServer::POAManager_ptr poa_manager,
- PortableServer::POA_ptr root_poa,
- CORBA::ORB_ptr orb,
- RTCORBA::RTORB_ptr rt_orb
- ACE_ENV_ARG_DECL)
-{
- // Policies for the firstPOA to be created.
- CORBA::PolicyList policies (3); policies.length (3);
-
- // Implicit_activation policy.
- policies[0] =
- root_poa->create_implicit_activation_policy
- (PortableServer::IMPLICIT_ACTIVATION
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Thread pool policy.
- policies[1] =
- CORBA::Policy::_duplicate (threadpool_policy);
-
- // Priority Model policy.
- policies[2] =
- rt_orb->create_priority_model_policy (RTCORBA::CLIENT_PROPAGATED,
- 0
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Create the POA under the RootPOA.
- PortableServer::POA_var poa =
- root_poa->create_POA (poa_name,
- poa_manager,
- policies
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- // Creation of POAs is over. Destroy the Policy objects.
- for (CORBA::ULong i = 0;
- i < policies.length ();
- ++i)
- {
- policies[i]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
- }
-
- test_i *servant =
- new test_i (orb,
- poa.in (),
- nap_time);
-
- PortableServer::ServantBase_var safe_servant (servant);
- ACE_UNUSED_ARG (safe_servant);
-
- test_var test =
- servant->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- int result =
- write_ior_to_file (orb,
- test.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK_RETURN (-1);
-
- return result;
-}
-
-class Task : public ACE_Task_Base
-{
-public:
-
- Task (ACE_Thread_Manager &thread_manager,
- CORBA::ORB_ptr orb);
-
- int svc (void);
-
- CORBA::ORB_var orb_;
-
-};
-
-Task::Task (ACE_Thread_Manager &thread_manager,
- CORBA::ORB_ptr orb)
- : ACE_Task_Base (&thread_manager),
- orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
-int
-Task::svc (void)
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::Object_var object =
- this->orb_->resolve_initial_references ("RootPOA"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- object =
- this->orb_->resolve_initial_references ("RTORB"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- RTCORBA::RTORB_var rt_orb =
- RTCORBA::RTORB::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- object =
- this->orb_->resolve_initial_references ("RTCurrent"
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- RTCORBA::Current_var current =
- RTCORBA::Current::_narrow (object.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- RTCORBA::Priority default_thread_priority =
- current->the_priority (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- test_i servant (this->orb_.in (),
- root_poa.in (),
- nap_time);
- test_var test =
- servant._this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- int result =
- write_ior_to_file (this->orb_.in (),
- test.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- if (result != 0)
- return result;
-
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::ULong stacksize = 0;
- CORBA::Boolean allow_request_buffering = 0;
- CORBA::ULong max_buffered_requests = 0;
- CORBA::ULong max_request_buffer_size = 0;
-
- RTCORBA::ThreadpoolId threadpool_id_1 =
- rt_orb->create_threadpool (stacksize,
- static_threads,
- dynamic_threads,
- default_thread_priority,
- allow_request_buffering,
- max_buffered_requests,
- max_request_buffer_size
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Policy_var threadpool_policy_1 =
- rt_orb->create_threadpool_policy (threadpool_id_1
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Boolean allow_borrowing = 0;
- RTCORBA::ThreadpoolLanes lanes (1);
- lanes.length (1);
-
- lanes[0].lane_priority = default_thread_priority;
- lanes[0].static_threads = static_threads;
- lanes[0].dynamic_threads = dynamic_threads;
-
- RTCORBA::ThreadpoolId threadpool_id_2 =
- rt_orb->create_threadpool_with_lanes (stacksize,
- lanes,
- allow_borrowing,
- allow_request_buffering,
- max_buffered_requests,
- max_request_buffer_size
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Policy_var threadpool_policy_2 =
- rt_orb->create_threadpool_policy (threadpool_id_2
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- result =
- create_POA_and_register_servant (threadpool_policy_1.in (),
- "first_poa",
- poa_manager.in (),
- root_poa.in (),
- this->orb_.in (),
- rt_orb.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- if (result != 0)
- return result;
-
- result =
- create_POA_and_register_servant (threadpool_policy_2.in (),
- "second_poa",
- poa_manager.in (),
- root_poa.in (),
- this->orb_.in (),
- rt_orb.in ()
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- if (result != 0)
- return result;
-
- this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- this->orb_->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
- ""
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- int result =
- parse_args (argc, argv);
- if (result != 0)
- return result;
-
- // Make sure we can support multiple priorities that are required
- // for this test.
- if (!check_supported_priorities (orb.in ()))
- return 2;
-
- // Thread Manager for managing task.
- ACE_Thread_Manager thread_manager;
-
- // Create task.
- Task task (thread_manager,
- orb.in ());
-
- // Task activation flags.
- long flags =
- THR_NEW_LWP |
- THR_JOINABLE |
- orb->orb_core ()->orb_params ()->thread_creation_flags ();
-
- // Activate task.
- result =
- task.activate (flags);
- if (result == -1)
- {
- if (errno == EPERM)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot create thread with scheduling policy %s\n"
- "because the user does not have the appropriate privileges, terminating program....\n"
- "Check svc.conf options and/or run as root\n",
- sched_policy_name (orb->orb_core ()->orb_params ()->ace_sched_policy ())),
- 2);
- }
- else
- // Unexpected error.
- ACE_ASSERT (0);
- }
-
- // Wait for task to exit.
- result =
- thread_manager.wait ();
- ACE_ASSERT (result != -1);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught");
- return -1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf
deleted file mode 100644
index c288d674567..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf
+++ /dev/null
@@ -1 +0,0 @@
-static RT_ORB_Loader "-RTORBDynamicThreadIdleTimeout 1000000"
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf.xml b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf.xml
deleted file mode 100644
index 0908328040b..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/svc.conf.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version='1.0'?>
-<!-- Converted from svc.conf by svcconf-convert.pl -->
-<ACE_Svc_Conf>
- <static RT_ORB_Loader "-RTORBDynamicThreadIdleTimeout 1000000">
-</ACE_Svc_Conf>
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test.idl b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test.idl
deleted file mode 100644
index 3bc8f9af25c..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test.idl
+++ /dev/null
@@ -1,12 +0,0 @@
-//
-// $Id$
-//
-
-interface test
-{
- long method (in long client_id,
- in long iteration,
- out long thread_count);
-
- oneway void shutdown ();
-};
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.cpp b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.cpp
deleted file mode 100644
index 6fbd244dd26..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-#include "ace/OS_NS_unistd.h"
-#include "tao/ORB_Core.h"
-#include "tao/RTCORBA/Thread_Pool.h"
-
-ACE_RCSID(Thread_Pools, test_i, "$Id$")
-
-test_i::test_i (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- long msec_sleep)
- : orb_ (CORBA::ORB::_duplicate (orb)),
- poa_ (PortableServer::POA::_duplicate (poa)),
- nap_time_ ()
-{
- this->nap_time_.msec (msec_sleep);
-}
-
-CORBA::Long
-test_i::method (CORBA::Long client_id,
- CORBA::Long iteration,
- CORBA::Long_out thread_count
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- // Get the ORB_Core's TSS resources.
- TAO_ORB_Core_TSS_Resources *tss =
- this->orb_->orb_core ()->get_tss_resources ();
-
- /// Get the lane attribute in TSS.
- TAO_Thread_Lane *lane =
- static_cast <TAO_Thread_Lane *> (tss->lane_);
-
- if (lane)
- ACE_DEBUG ((LM_DEBUG,
- "Request in thread %t (pool id = %d; lane id = %d) for client %d iteration %d\n",
- lane->pool ().id (),
- lane->id (),
- client_id,
- iteration));
- else
- ACE_DEBUG ((LM_DEBUG,
- "Request in thread %t (default thread pool) for client %d iteration %d\n",
- client_id,
- iteration));
-
- ACE_OS::sleep (this->nap_time_);
-
- if (lane)
- thread_count = lane->current_threads ();
- else
- thread_count = 0;
-
- return iteration;
-}
-
-PortableServer::POA_ptr
-test_i::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
-{
- return PortableServer::POA::_duplicate (this->poa_.in ());
-}
-
-void
-test_i::shutdown (ACE_ENV_SINGLE_ARG_DECL)
- ACE_THROW_SPEC ((CORBA::SystemException))
-{
- this->orb_->shutdown (0
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
-}
diff --git a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h b/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h
deleted file mode 100644
index 7951ca0854c..00000000000
--- a/TAO/tests/RTCORBA/Dynamic_Thread_Pool/test_i.h
+++ /dev/null
@@ -1,45 +0,0 @@
-//=============================================================================
-/**
- * @file test_i.h
- *
- * $Id$
- *
- * @author Irfan Pyarali
- */
-// ===================================================================
-
-#include "testS.h"
-
-class test_i :
- public POA_test
-{
-public:
- /// Constructor.
- test_i (CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- long msec_sleep);
-
- /// Test method.
- CORBA::Long method (CORBA::Long client_id,
- CORBA::Long iteration,
- CORBA::Long_out thread_count
- ACE_ENV_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Shutdown the server.
- void shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Our POA.
- PortableServer::POA_ptr _default_POA (ACE_ENV_SINGLE_ARG_DECL);
-
-private:
- /// ORB.
- CORBA::ORB_var orb_;
-
- /// Our POA.
- PortableServer::POA_var poa_;
-
- /// Time spent in executing the upcall.
- ACE_Time_Value nap_time_;
-};
diff --git a/TAO/tests/RTCORBA/Explicit_Binding/RTCORBA_Explicit_Binding.mpc b/TAO/tests/RTCORBA/Explicit_Binding/RTCORBA_Explicit_Binding.mpc
index a77351b5090..10ba9a8a48f 100644
--- a/TAO/tests/RTCORBA/Explicit_Binding/RTCORBA_Explicit_Binding.mpc
+++ b/TAO/tests/RTCORBA/Explicit_Binding/RTCORBA_Explicit_Binding.mpc
@@ -8,7 +8,6 @@ project(*Server): strategies, rt_server, minimum_corba {
}
project(*Client): strategies, rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Explicit_Binding/client.cpp b/TAO/tests/RTCORBA/Explicit_Binding/client.cpp
index 25e0135f39b..108318bbe63 100644
--- a/TAO/tests/RTCORBA/Explicit_Binding/client.cpp
+++ b/TAO/tests/RTCORBA/Explicit_Binding/client.cpp
@@ -3,6 +3,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Strategies/advanced_resource.h"
#include "tao/RTCORBA/RTCORBA.h"
@@ -11,7 +12,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -46,19 +47,21 @@ check_for_nil (CORBA::Object_ptr obj, const char *msg)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB, parse arguments, and resolve references.
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RTORB.
diff --git a/TAO/tests/RTCORBA/Explicit_Binding/run_test.pl b/TAO/tests/RTCORBA/Explicit_Binding/run_test.pl
index 288bd3ddc2e..9317cc84307 100755
--- a/TAO/tests/RTCORBA/Explicit_Binding/run_test.pl
+++ b/TAO/tests/RTCORBA/Explicit_Binding/run_test.pl
@@ -21,7 +21,7 @@ $CL = new PerlACE::Process ("client", "-o file://$iorfile -ORBdebuglevel 1");
$SV->Spawn ();
-if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+if (PerlACE::waitforfile_timed ($iorfile, 10) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
$SV->Kill ();
exit 1;
diff --git a/TAO/tests/RTCORBA/Explicit_Binding/server.cpp b/TAO/tests/RTCORBA/Explicit_Binding/server.cpp
index 7c434d0c2e5..0a02b151a7f 100644
--- a/TAO/tests/RTCORBA/Explicit_Binding/server.cpp
+++ b/TAO/tests/RTCORBA/Explicit_Binding/server.cpp
@@ -2,6 +2,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/Strategies/advanced_resource.h"
#include "tao/RTCORBA/RTCORBA.h"
@@ -56,7 +57,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -119,7 +120,7 @@ create_object (PortableServer::POA_ptr poa,
// Print ior to the file.
if (filename != 0)
{
- FILE *output_file= ACE_OS::fopen (filename, "w");
+ FILE *output_file= ACE_OS::fopen (filename, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -133,17 +134,19 @@ create_object (PortableServer::POA_ptr poa,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RootPOA.
diff --git a/TAO/tests/RTCORBA/Linear_Priority/RTCORBA_Linear_Priority.mpc b/TAO/tests/RTCORBA/Linear_Priority/RTCORBA_Linear_Priority.mpc
index 87178218057..0f82a323a72 100644
--- a/TAO/tests/RTCORBA/Linear_Priority/RTCORBA_Linear_Priority.mpc
+++ b/TAO/tests/RTCORBA/Linear_Priority/RTCORBA_Linear_Priority.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server, minimum_corba {
}
project(*Client): rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Linear_Priority/client.cpp b/TAO/tests/RTCORBA/Linear_Priority/client.cpp
index 6588b34f7a4..b2fd947d35c 100644
--- a/TAO/tests/RTCORBA/Linear_Priority/client.cpp
+++ b/TAO/tests/RTCORBA/Linear_Priority/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/ORB_Core.h"
@@ -20,7 +21,7 @@ static const char *bands_file = "empty_file";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "b:d:p:k:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:d:p:k:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -320,19 +321,21 @@ Task::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Linear_Priority/server.cpp b/TAO/tests/RTCORBA/Linear_Priority/server.cpp
index 9129c0f3ee9..9b43e744902 100644
--- a/TAO/tests/RTCORBA/Linear_Priority/server.cpp
+++ b/TAO/tests/RTCORBA/Linear_Priority/server.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "testS.h"
#include "tao/RTPortableServer/RTPortableServer.h"
@@ -79,7 +80,7 @@ static const char *lanes_file = "lanes";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "b:d:l:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:d:l:");
int c;
while ((c = get_opts ()) != -1)
@@ -119,7 +120,7 @@ write_iors_to_file (CORBA::Object_ptr object,
ACE_ENV_ARG_DECL)
{
FILE *file =
- ACE_OS::fopen (filename, "w");
+ ACE_OS::fopen (filename, ACE_TEXT("w"));
ACE_ASSERT (file != 0);
CORBA::String_var ior =
@@ -285,19 +286,21 @@ Task::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/RTCORBA_MT_Client_Proto_Prio.mpc b/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/RTCORBA_MT_Client_Proto_Prio.mpc
index a77351b5090..10ba9a8a48f 100644
--- a/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/RTCORBA_MT_Client_Proto_Prio.mpc
+++ b/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/RTCORBA_MT_Client_Proto_Prio.mpc
@@ -8,7 +8,6 @@ project(*Server): strategies, rt_server, minimum_corba {
}
project(*Client): strategies, rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp b/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
index de8d374edf7..a57ced26bb6 100644
--- a/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
+++ b/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/client.cpp
@@ -6,6 +6,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
#include "ace/Barrier.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "../check_supported_priorities.cpp"
#include "tao/Strategies/advanced_resource.h"
@@ -56,7 +57,7 @@ CORBA::ULong protocol2 = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:a:b:e:f:n:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:a:b:e:f:n:");
int c, result;
while ((c = get_opts ()) != -1)
@@ -291,19 +292,21 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB, resolve references and parse arguments.
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp b/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
index 893dbddf688..9886dd12c91 100644
--- a/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
+++ b/TAO/tests/RTCORBA/MT_Client_Protocol_Priority/server.cpp
@@ -3,6 +3,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTPortableServer/RTPortableServer.h"
@@ -56,7 +57,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -178,7 +179,7 @@ Task::svc (void)
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -210,17 +211,19 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/tests/RTCORBA/ORB_init/ORB_init.cpp b/TAO/tests/RTCORBA/ORB_init/ORB_init.cpp
index 9277febd56e..3bd37675c75 100644
--- a/TAO/tests/RTCORBA/ORB_init/ORB_init.cpp
+++ b/TAO/tests/RTCORBA/ORB_init/ORB_init.cpp
@@ -4,6 +4,7 @@
#include "tao/ORB.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
int
test_multiple_orbs (const char *test_name,
@@ -77,16 +78,17 @@ test_multiple_orbs (const char *test_name,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int iterations = 5;
int rt_orb = 0;
int destroy = 0;
int result =
test_multiple_orbs ("non-RT ORBs, disable destroy",
- argc,
- argv,
+ convert.get_argc(), convert.get_ASCII_argv(),
iterations,
rt_orb,
destroy);
@@ -97,8 +99,7 @@ main (int argc, char *argv[])
result =
test_multiple_orbs ("non-RT ORBs, enable destroy",
- argc,
- argv,
+ convert.get_argc(), convert.get_ASCII_argv(),
iterations,
rt_orb,
destroy);
@@ -109,8 +110,7 @@ main (int argc, char *argv[])
result =
test_multiple_orbs ("RT ORBs, disable destroy",
- argc,
- argv,
+ convert.get_argc(), convert.get_ASCII_argv(),
iterations,
rt_orb,
destroy);
@@ -121,8 +121,7 @@ main (int argc, char *argv[])
result =
test_multiple_orbs ("RT ORBs, enable destroy",
- argc,
- argv,
+ convert.get_argc(), convert.get_ASCII_argv(),
iterations,
rt_orb,
destroy);
diff --git a/TAO/tests/RTCORBA/Persistent_IOR/RTCORBA_Persistent_IOR.mpc b/TAO/tests/RTCORBA/Persistent_IOR/RTCORBA_Persistent_IOR.mpc
index 87178218057..0f82a323a72 100644
--- a/TAO/tests/RTCORBA/Persistent_IOR/RTCORBA_Persistent_IOR.mpc
+++ b/TAO/tests/RTCORBA/Persistent_IOR/RTCORBA_Persistent_IOR.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server, minimum_corba {
}
project(*Client): rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Persistent_IOR/client.cpp b/TAO/tests/RTCORBA/Persistent_IOR/client.cpp
index 6e9b26cbec7..60696914f2b 100644
--- a/TAO/tests/RTCORBA/Persistent_IOR/client.cpp
+++ b/TAO/tests/RTCORBA/Persistent_IOR/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
static int iterations = 5;
@@ -11,7 +12,7 @@ static const char *ior = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -50,19 +51,21 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Persistent_IOR/server.cpp b/TAO/tests/RTCORBA/Persistent_IOR/server.cpp
index d75fb4a6afd..36b3636782e 100644
--- a/TAO/tests/RTCORBA/Persistent_IOR/server.cpp
+++ b/TAO/tests/RTCORBA/Persistent_IOR/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testS.h"
#include "tao/RTPortableServer/RTPortableServer.h"
#include "ace/OS_NS_stdio.h"
@@ -76,7 +77,7 @@ static CORBA::ULong max_request_buffer_size = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "a:p:t:d:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "a:p:t:d:");
int c;
while ((c = get_opts ()) != -1)
@@ -122,7 +123,7 @@ write_iors_to_file (CORBA::Object_ptr object,
ACE_ENV_ARG_DECL)
{
FILE *file =
- ACE_OS::fopen (filename, "w");
+ ACE_OS::fopen (filename, ACE_TEXT("w"));
ACE_ASSERT (file != 0);
CORBA::String_var ior =
@@ -341,19 +342,21 @@ create_poa_with_tp_and_persistent_policy (CORBA::ORB_ptr orb,
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Policies/Policies.cpp b/TAO/tests/RTCORBA/Policies/Policies.cpp
index 63d97ab4717..8f7fb12eda8 100644
--- a/TAO/tests/RTCORBA/Policies/Policies.cpp
+++ b/TAO/tests/RTCORBA/Policies/Policies.cpp
@@ -23,18 +23,21 @@
#include "tao/AnyTypeCode/Any.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB first.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/RTCORBA/Policy_Combinations/RTCORBA_Policy_Combinations.mpc b/TAO/tests/RTCORBA/Policy_Combinations/RTCORBA_Policy_Combinations.mpc
index c7a5f0c3229..49d690018fd 100644
--- a/TAO/tests/RTCORBA/Policy_Combinations/RTCORBA_Policy_Combinations.mpc
+++ b/TAO/tests/RTCORBA/Policy_Combinations/RTCORBA_Policy_Combinations.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server, minimum_corba {
}
project(*Client): rt_client {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Policy_Combinations/client.cpp b/TAO/tests/RTCORBA/Policy_Combinations/client.cpp
index 56f29a399f9..a09d06cec4d 100644
--- a/TAO/tests/RTCORBA/Policy_Combinations/client.cpp
+++ b/TAO/tests/RTCORBA/Policy_Combinations/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "tao/ORB_Core.h"
#include "tao/RTCORBA/RTCORBA.h"
@@ -15,7 +16,7 @@ static RTCORBA::Priority default_thread_priority;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:x");
int c;
while ((c = get_opts ()) != -1)
@@ -140,19 +141,21 @@ Task::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Policy_Combinations/run_test.pl b/TAO/tests/RTCORBA/Policy_Combinations/run_test.pl
index 0c424ce42f1..1f0077fcdd8 100755
--- a/TAO/tests/RTCORBA/Policy_Combinations/run_test.pl
+++ b/TAO/tests/RTCORBA/Policy_Combinations/run_test.pl
@@ -60,7 +60,7 @@ $SV->Spawn ();
for $file (@iorfiles)
{
$file = PerlACE::LocalFile($file);
- if (PerlACE::waitforfile_timed ($file, $PerlACE::wait_interval_for_process_creation) == -1)
+ if (PerlACE::waitforfile_timed ($file, 10) == -1)
{
$server = $SV->TimedWait (1);
if ($server == 2)
diff --git a/TAO/tests/RTCORBA/Policy_Combinations/server.cpp b/TAO/tests/RTCORBA/Policy_Combinations/server.cpp
index db378d994bd..38c44df730a 100644
--- a/TAO/tests/RTCORBA/Policy_Combinations/server.cpp
+++ b/TAO/tests/RTCORBA/Policy_Combinations/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testS.h"
#include "tao/ORB_Core.h"
#include "ace/Task.h"
@@ -115,7 +116,7 @@ static CORBA::Boolean allow_borrowing = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "s:c:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "s:c:");
int c;
while ((c = get_opts ()) != -1)
@@ -150,7 +151,7 @@ write_iors_to_file (CORBA::Object_ptr object,
ACE_ENV_ARG_DECL)
{
FILE *file =
- ACE_OS::fopen (filename, "w");
+ ACE_OS::fopen (filename, ACE_TEXT("w"));
ACE_ASSERT (file != 0);
CORBA::String_var ior =
@@ -906,19 +907,21 @@ Task::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/Priority_Inversion_With_Bands.mpc b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/Priority_Inversion_With_Bands.mpc
index ebf79370785..4cb4bcb6c23 100644
--- a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/Priority_Inversion_With_Bands.mpc
+++ b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/Priority_Inversion_With_Bands.mpc
@@ -9,7 +9,6 @@ project(*Server): strategies, rt_server, minimum_corba {
}
project(*Client): strategies, rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
index d33a71f3f25..e4e15b61b13 100644
--- a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
+++ b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/ORB_Core.h"
@@ -17,7 +18,7 @@ static int make_banded_invocations = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "b:k:i:w:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:k:i:w:");
int c;
while ((c = get_opts ()) != -1)
@@ -193,16 +194,18 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl
index 1afb4f6f967..158192e3461 100755
--- a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl
+++ b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl
@@ -63,7 +63,7 @@ sub run_test
for $test (@configurations)
{
- if (PerlACE::waitforfile_timed (PerlACE::LocalFile($test->{file}),$PerlACE::wait_interval_for_process_creation ) == -1)
+ if (PerlACE::waitforfile_timed (PerlACE::LocalFile($test->{file}), 10) == -1)
{
$server = $SV->TimedWait (1);
if ($server == 2)
diff --git a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
index e8259069e76..f20c8f967db 100644
--- a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
+++ b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/server.cpp
@@ -2,6 +2,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "ace/Task.h"
#include "tao/RTPortableServer/RTPortableServer.h"
@@ -19,7 +20,7 @@ static RTCORBA::Priority high_priority;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:s:d:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:s:d:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -74,7 +75,7 @@ write_ior_to_file (CORBA::ORB_ptr orb,
FILE *output_file =
ACE_OS::fopen (filename,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -320,19 +321,20 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Private_Connection/RTCORBA_Private_Connection.mpc b/TAO/tests/RTCORBA/Private_Connection/RTCORBA_Private_Connection.mpc
index 87178218057..0f82a323a72 100644
--- a/TAO/tests/RTCORBA/Private_Connection/RTCORBA_Private_Connection.mpc
+++ b/TAO/tests/RTCORBA/Private_Connection/RTCORBA_Private_Connection.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server, minimum_corba {
}
project(*Client): rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Private_Connection/client.cpp b/TAO/tests/RTCORBA/Private_Connection/client.cpp
index a1b7369b55d..7d06914f2cb 100644
--- a/TAO/tests/RTCORBA/Private_Connection/client.cpp
+++ b/TAO/tests/RTCORBA/Private_Connection/client.cpp
@@ -3,6 +3,7 @@
#include "testC.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior1 = "file://test1.ior";
const char *ior2 = "file://test2.ior";
@@ -10,7 +11,7 @@ const char *ior2 = "file://test2.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:p:");
int c;
while ((c = get_opts ()) != -1)
@@ -49,19 +50,21 @@ check_for_nil (CORBA::Object_ptr obj, const char *msg)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB, resolve references and parse arguments.
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RTORB.
diff --git a/TAO/tests/RTCORBA/Private_Connection/server.cpp b/TAO/tests/RTCORBA/Private_Connection/server.cpp
index 07a844b3abb..b6b1b2a6b3d 100644
--- a/TAO/tests/RTCORBA/Private_Connection/server.cpp
+++ b/TAO/tests/RTCORBA/Private_Connection/server.cpp
@@ -5,6 +5,7 @@
#include "tao/RTPortableServer/RTPortableServer.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
class Test_i : public POA_Test
{
@@ -56,7 +57,7 @@ const char *ior_output_file2 = "test2.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:p:");
int c;
while ((c = get_opts ()) != -1)
@@ -124,7 +125,7 @@ create_object (PortableServer::POA_ptr poa,
// Print ior to the file.
if (filename != 0)
{
- FILE *output_file= ACE_OS::fopen (filename, "w");
+ FILE *output_file= ACE_OS::fopen (filename, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -138,17 +139,19 @@ create_object (PortableServer::POA_ptr poa,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RootPOA.
diff --git a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/PaE_Selection.mpc b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/PaE_Selection.mpc
index 4d9a96b12f0..81a533380b3 100644
--- a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/PaE_Selection.mpc
+++ b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/PaE_Selection.mpc
@@ -6,7 +6,6 @@ project(*Server): rt_server, strategies, portableserver, minimum_corba {
}
project(*Client): rt_client, strategies, portableserver, minimum_corba {
- after += *Server
Source_Files {
client.cpp
}
diff --git a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
index 61acf71eab9..854d6424214 100644
--- a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
+++ b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp
@@ -16,6 +16,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/Strategies/advanced_resource.h"
@@ -36,7 +37,7 @@ static const char *bands_file = "empty_file";
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "b:d:i:k:p:t:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:d:i:k:p:t:x");
int c;
while ((c = get_opts ()) != -1)
@@ -559,21 +560,23 @@ Task::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int parse_args_result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl
index a58c5f6427c..bfc0b0ebaef 100755
--- a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl
+++ b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl
@@ -98,7 +98,7 @@ sub run_server
$SV = new PerlACE::Process ("server", "$server_args");
$SV->Spawn ();
- if (PerlACE::waitforfile_timed ($iorfile,$PerlACE::wait_interval_for_process_creation ) == -1)
+ if (PerlACE::waitforfile_timed ($iorfile, 10) == -1)
{
check_supported_priorities ($SV);
print STDERR "ERROR: cannot find ior file: $iorfile\n";
diff --git a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
index 234e6d3ef58..45f83161426 100644
--- a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
+++ b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/ORB_Core.h"
#include "tao/RTCORBA/Thread_Pool.h"
#include "tao/RTPortableServer/RTPortableServer.h"
@@ -98,7 +99,7 @@ test_i::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "b:d:l:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "b:d:l:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -151,7 +152,7 @@ write_iors_to_file (CORBA::Object_ptr object,
ior_file_count++;
FILE *file =
- ACE_OS::fopen (filename, "w");
+ ACE_OS::fopen (filename, ACE_TEXT("w"));
ACE_ASSERT (file != 0);
CORBA::String_var ior =
@@ -390,19 +391,21 @@ Task::svc (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/RTMutex/server.cpp b/TAO/tests/RTCORBA/RTMutex/server.cpp
index 425db1603fb..ea53f988992 100644
--- a/TAO/tests/RTCORBA/RTMutex/server.cpp
+++ b/TAO/tests/RTCORBA/RTMutex/server.cpp
@@ -6,6 +6,7 @@
#include "ace/High_Res_Timer.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
static int test_try_lock_flag =
#if defined (ACE_HAS_MUTEX_TIMEOUTS) && !defined (ACE_HAS_WTHREADS)
@@ -23,7 +24,7 @@ static int test_try_lock_flag =
static int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "t");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "t");
int c;
while ((c = get_opts ()) != -1)
@@ -498,16 +499,18 @@ test_mutex_try_lock (RTCORBA::RTORB_ptr rt_orb)
#endif /* ACE_HAS_THREADS */
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// ORB.
- CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// RTORB.
diff --git a/TAO/tests/RTCORBA/Server_Declared/RTCORBA_Server_Declared.mpc b/TAO/tests/RTCORBA/Server_Declared/RTCORBA_Server_Declared.mpc
index b62ff14a3d9..78e08a31786 100644
--- a/TAO/tests/RTCORBA/Server_Declared/RTCORBA_Server_Declared.mpc
+++ b/TAO/tests/RTCORBA/Server_Declared/RTCORBA_Server_Declared.mpc
@@ -8,7 +8,6 @@ project(*Server): rt_server {
}
project(*Client): rt_client {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Server_Declared/client.cpp b/TAO/tests/RTCORBA/Server_Declared/client.cpp
index 9ac3ce834d6..e8d5090c754 100644
--- a/TAO/tests/RTCORBA/Server_Declared/client.cpp
+++ b/TAO/tests/RTCORBA/Server_Declared/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
const char *ior1 = "file://test1.ior";
@@ -10,7 +11,7 @@ const char *ior2 = "file://test2.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "p:o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "p:o:");
int c;
while ((c = get_opts ()) != -1)
@@ -77,19 +78,21 @@ check_policy (Test_ptr server
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB, resolve references and parse arguments.
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Test object 1.
diff --git a/TAO/tests/RTCORBA/Server_Declared/server.cpp b/TAO/tests/RTCORBA/Server_Declared/server.cpp
index 6594427f846..adb805bb7df 100644
--- a/TAO/tests/RTCORBA/Server_Declared/server.cpp
+++ b/TAO/tests/RTCORBA/Server_Declared/server.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "tao/ORB_Core.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/RTPortableServer/RTPortableServer.h"
#include "../check_supported_priorities.cpp"
@@ -87,7 +88,7 @@ CORBA::Short object_priority = -1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "p:o:a:b:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "p:o:a:b:");
int c, result;
while ((c = get_opts ()) != -1)
@@ -191,7 +192,7 @@ create_object (RTPortableServer::POA_ptr poa,
// Print ior to the file.
if (filename != 0)
{
- FILE *output_file= ACE_OS::fopen (filename, "w");
+ FILE *output_file= ACE_OS::fopen (filename, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
@@ -325,17 +326,19 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse arguments.
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
// Make sure we can support multiple priorities that are required
diff --git a/TAO/tests/RTCORBA/Server_Protocol/RTCORBA_Server_Protocol.mpc b/TAO/tests/RTCORBA/Server_Protocol/RTCORBA_Server_Protocol.mpc
index a77351b5090..10ba9a8a48f 100644
--- a/TAO/tests/RTCORBA/Server_Protocol/RTCORBA_Server_Protocol.mpc
+++ b/TAO/tests/RTCORBA/Server_Protocol/RTCORBA_Server_Protocol.mpc
@@ -8,7 +8,6 @@ project(*Server): strategies, rt_server, minimum_corba {
}
project(*Client): strategies, rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Server_Protocol/client.cpp b/TAO/tests/RTCORBA/Server_Protocol/client.cpp
index 7dd24cdb9b5..71c63370691 100644
--- a/TAO/tests/RTCORBA/Server_Protocol/client.cpp
+++ b/TAO/tests/RTCORBA/Server_Protocol/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/Strategies/advanced_resource.h"
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,16 +34,18 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize and obtain reference to the Test object.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::Object_var object =
diff --git a/TAO/tests/RTCORBA/Server_Protocol/run_test.pl b/TAO/tests/RTCORBA/Server_Protocol/run_test.pl
index 8921a85c6ec..6e1cafa833b 100755
--- a/TAO/tests/RTCORBA/Server_Protocol/run_test.pl
+++ b/TAO/tests/RTCORBA/Server_Protocol/run_test.pl
@@ -79,7 +79,7 @@ foreach $o (@server_opts) {
$SV->Spawn ();
- if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+ if (PerlACE::waitforfile_timed ($iorfile, 10) == -1) {
print STDERR "ERROR: cannot find IOR file <$iorfile>\n";
$SV->Kill (); $SV->TimedWait (1);
exit 1;
diff --git a/TAO/tests/RTCORBA/Server_Protocol/server.cpp b/TAO/tests/RTCORBA/Server_Protocol/server.cpp
index 5ca5342d11e..459bb286b5a 100644
--- a/TAO/tests/RTCORBA/Server_Protocol/server.cpp
+++ b/TAO/tests/RTCORBA/Server_Protocol/server.cpp
@@ -7,6 +7,7 @@
#include "tao/ORB_Core.h"
#include "tao/Policy_Set.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/PortableServer/Root_POA.h"
class Test_i : public POA_Test
@@ -50,7 +51,7 @@ CORBA::ULong protocol_type = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:p:");
int c, result;
while ((c = get_opts ()) != -1)
@@ -240,15 +241,17 @@ check_server_protocol_at_root_poa (CORBA::ORB_ptr /*orb*/,
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
CORBA::Object_var object =
@@ -340,7 +343,7 @@ main (int argc, char *argv[])
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/RTCORBA/Thread_Pool/RTCORBA_Thread_Pool.mpc b/TAO/tests/RTCORBA/Thread_Pool/RTCORBA_Thread_Pool.mpc
index ebf79370785..4cb4bcb6c23 100644
--- a/TAO/tests/RTCORBA/Thread_Pool/RTCORBA_Thread_Pool.mpc
+++ b/TAO/tests/RTCORBA/Thread_Pool/RTCORBA_Thread_Pool.mpc
@@ -9,7 +9,6 @@ project(*Server): strategies, rt_server, minimum_corba {
}
project(*Client): strategies, rt_client, minimum_corba {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/RTCORBA/Thread_Pool/client.cpp b/TAO/tests/RTCORBA/Thread_Pool/client.cpp
index 727015a2353..5797909b3e5 100644
--- a/TAO/tests/RTCORBA/Thread_Pool/client.cpp
+++ b/TAO/tests/RTCORBA/Thread_Pool/client.cpp
@@ -6,6 +6,7 @@
#include "tao/ORB_Core.h"
#include "ace/Task.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
#include "../check_supported_priorities.cpp"
ACE_RCSID(Thread_Pool, client, "$Id$")
@@ -17,7 +18,7 @@ int shutdown_server = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "xk:i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "xk:i:");
int c;
while ((c = get_opts ()) != -1)
@@ -118,16 +119,18 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/Thread_Pool/run_test.pl b/TAO/tests/RTCORBA/Thread_Pool/run_test.pl
index 2dcbc7246bf..df32e821eef 100755
--- a/TAO/tests/RTCORBA/Thread_Pool/run_test.pl
+++ b/TAO/tests/RTCORBA/Thread_Pool/run_test.pl
@@ -72,7 +72,7 @@ $SV->Spawn ();
for $test (@configurations)
{
- if (PerlACE::waitforfile_timed ($test->{file}, $PerlACE::wait_interval_for_process_creation) == -1)
+ if (PerlACE::waitforfile_timed ($test->{file}, 10) == -1)
{
$server = $SV->TimedWait (1);
if ($server == 2)
diff --git a/TAO/tests/RTCORBA/Thread_Pool/server.cpp b/TAO/tests/RTCORBA/Thread_Pool/server.cpp
index 5dd811de9bd..f652cb7c279 100644
--- a/TAO/tests/RTCORBA/Thread_Pool/server.cpp
+++ b/TAO/tests/RTCORBA/Thread_Pool/server.cpp
@@ -5,6 +5,7 @@
#include "ace/OS_NS_unistd.h"
#include "tao/ORB_Core.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTPortableServer/RTPortableServer.h"
#include "../check_supported_priorities.cpp"
@@ -19,7 +20,7 @@ long nap_time = 1000;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:s:d:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:s:d:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -76,7 +77,7 @@ write_ior_to_file (CORBA::ORB_ptr orb,
FILE *output_file =
ACE_OS::fopen (filename,
- "w");
+ ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -329,19 +330,21 @@ Task::svc (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/RTCORBA/common_args.cpp b/TAO/tests/RTCORBA/common_args.cpp
index 3085aa72bcb..73d51851c4e 100644
--- a/TAO/tests/RTCORBA/common_args.cpp
+++ b/TAO/tests/RTCORBA/common_args.cpp
@@ -20,7 +20,7 @@ get_priority_bands (const char *test_type,
// Read bands from a file.
//
FILE* file =
- ACE_OS::fopen (bands_file, "r");
+ ACE_OS::fopen (bands_file, ACE_TEXT("r"));
if (file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -119,7 +119,7 @@ get_values (const char *test_type,
// Read lanes from a file.
//
FILE* file =
- ACE_OS::fopen (file_name, "r");
+ ACE_OS::fopen (file_name, ACE_TEXT("r"));
if (file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/RTScheduling/Current/Thread_Task.cpp b/TAO/tests/RTScheduling/Current/Thread_Task.cpp
index a12629ada7b..ecbe671a9b8 100644
--- a/TAO/tests/RTScheduling/Current/Thread_Task.cpp
+++ b/TAO/tests/RTScheduling/Current/Thread_Task.cpp
@@ -4,13 +4,9 @@
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_unistd.h"
-Thread_Task::Thread_Task (CORBA::ORB_ptr orb)
- : orb_ (CORBA::ORB::_duplicate (orb))
-{
-}
-
int
-Thread_Task::activate_task (int thr_count)
+Thread_Task::activate_task (CORBA::ORB_ptr orb,
+ int thr_count)
{
ACE_TRY_NEW_ENV
@@ -25,11 +21,13 @@ Thread_Task::activate_task (int thr_count)
active_thread_count_ = thr_count;
- CORBA::Object_var current_obj = this->orb_->resolve_initial_references ("RTScheduler_Current"
+ this->orb_ = CORBA::ORB::_duplicate (orb);
+
+ CORBA::Object_ptr current_obj = this->orb_->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- this->current_ = RTScheduling::Current::_narrow (current_obj.in ()
+ this->current_ = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -138,7 +136,7 @@ Thread_Task::svc (void)
ACE_TRY_CHECK;
- RTScheduling::Current::NameList_var segment_name_list =
+ RTScheduling::Current::NameList* segment_name_list =
this->current_->current_scheduling_segment_names (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/RTScheduling/Current/Thread_Task.h b/TAO/tests/RTScheduling/Current/Thread_Task.h
index a6ae16092a1..56d29e51ca0 100644
--- a/TAO/tests/RTScheduling/Current/Thread_Task.h
+++ b/TAO/tests/RTScheduling/Current/Thread_Task.h
@@ -10,9 +10,9 @@
class Thread_Task : public ACE_Task <ACE_SYNCH>
{
public:
- Thread_Task (CORBA::ORB_ptr orb);
- int activate_task (int thr_count);
+ int activate_task (CORBA::ORB_ptr orb,
+ int thr_count);
~Thread_Task (void);
diff --git a/TAO/tests/RTScheduling/Current/run_test.pl b/TAO/tests/RTScheduling/Current/run_test.pl
index 0b4a6b57f9d..b8673381da4 100755
--- a/TAO/tests/RTScheduling/Current/run_test.pl
+++ b/TAO/tests/RTScheduling/Current/run_test.pl
@@ -19,7 +19,7 @@ else {
print STDERR "Starting Current Test\n";
-$test = $CL->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation);
+$test = $CL->SpawnWaitKill (10);
if ($test != 0) {
print STDERR "ERROR: test returned $test\n";
diff --git a/TAO/tests/RTScheduling/Current/test.cpp b/TAO/tests/RTScheduling/Current/test.cpp
index ffcf6dbf8a3..cbc7a8592ac 100644
--- a/TAO/tests/RTScheduling/Current/test.cpp
+++ b/TAO/tests/RTScheduling/Current/test.cpp
@@ -3,24 +3,27 @@
#include "Thread_Task.h"
#include "../Scheduler.h"
#include "tao/RTScheduling/RTScheduler_Manager.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::Object_var manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
+ CORBA::Object_ptr manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj.in ()
+ TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -28,9 +31,10 @@ main (int argc, char* argv [])
manager->rtscheduler (&scheduler);
- Thread_Task task (orb.in ());
+ Thread_Task task;
- task.activate_task (4);
+ task.activate_task (orb.in (),
+ 4);
orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/RTScheduling/DT_Spawn/Thread_Action.h b/TAO/tests/RTScheduling/DT_Spawn/Thread_Action.h
index 556e23bd2f9..137bcc7126a 100644
--- a/TAO/tests/RTScheduling/DT_Spawn/Thread_Action.h
+++ b/TAO/tests/RTScheduling/DT_Spawn/Thread_Action.h
@@ -5,12 +5,11 @@
#include "tao/RTScheduling/RTScheduler.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
-#include "ace/SString.h"
class Data
{
public:
- ACE_CString data;
+ char* data;
RTScheduling::Current_var current;
};
@@ -41,7 +40,7 @@ Test_Thread_Action::_cxx_do (CORBA::VoidData data
Data* tmp = (Data*) data;
ACE_DEBUG ((LM_DEBUG,
"Test_Thread_Action::do %s\n",
- tmp->data.c_str ()));
+ tmp->data));
size_t count = 0;
ACE_OS::memcpy (&count,
@@ -52,7 +51,7 @@ Test_Thread_Action::_cxx_do (CORBA::VoidData data
"The spawned DT Guid is %d\n",
count));
- RTScheduling::Current::NameList_var segment_name_list =
+ RTScheduling::Current::NameList* segment_name_list =
tmp->current->current_scheduling_segment_names (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
@@ -64,6 +63,6 @@ Test_Thread_Action::_cxx_do (CORBA::VoidData data
{
ACE_DEBUG ((LM_DEBUG,
"%s\n",
- (*segment_name_list) [i].in ()));
+ CORBA::string_dup ((*segment_name_list) [i])));
}
}
diff --git a/TAO/tests/RTScheduling/DT_Spawn/run_test.pl b/TAO/tests/RTScheduling/DT_Spawn/run_test.pl
index bd859750add..6d0b579fe3b 100755
--- a/TAO/tests/RTScheduling/DT_Spawn/run_test.pl
+++ b/TAO/tests/RTScheduling/DT_Spawn/run_test.pl
@@ -19,7 +19,7 @@ else {
print STDERR "Starting Current Test\n";
-$test = $CL->SpawnWaitKill ($PerlACE::wait_interval_for_process_creation);
+$test = $CL->SpawnWaitKill (10);
if ($test != 0) {
print STDERR "ERROR: test returned $test\n";
diff --git a/TAO/tests/RTScheduling/DT_Spawn/test.cpp b/TAO/tests/RTScheduling/DT_Spawn/test.cpp
index fab57bcd8ce..2f73288cd1a 100644
--- a/TAO/tests/RTScheduling/DT_Spawn/test.cpp
+++ b/TAO/tests/RTScheduling/DT_Spawn/test.cpp
@@ -5,10 +5,13 @@
#include "Thread_Action.h"
#include "ace/Thread_Manager.h"
#include "ace/SString.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb;
RTScheduling::Current_var current;
@@ -20,17 +23,17 @@ main (int argc, char* argv [])
ACE_TRY_NEW_ENV
{
- orb = CORBA::ORB_init (argc,
- argv,
+ orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::Object_var manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
+ CORBA::Object_ptr manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj.in ()
+ TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -38,15 +41,14 @@ main (int argc, char* argv [])
ACE_NEW_RETURN (scheduler,
TAO_Scheduler (orb.in ()),
-1);
- RTScheduling::Scheduler_var safe_scheduler = scheduler;
-
+
manager->rtscheduler (scheduler);
- CORBA::Object_var current_obj = orb->resolve_initial_references ("RTScheduler_Current"
+ CORBA::Object_ptr current_obj = orb->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- current = RTScheduling::Current::_narrow (current_obj.in ()
+ current = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -99,12 +101,11 @@ main (int argc, char* argv [])
//Initialize data to be passed to the Thread_Action::do method
Data spawn_data;
- spawn_data.data = "Harry Potter";
+ spawn_data.data = CORBA::string_dup ("Harry Potter");
spawn_data.current = RTScheduling::Current::_duplicate (current.in ());
ACE_DEBUG ((LM_DEBUG,
"Spawning a new DT...\n"));
- RTScheduling::DistributableThread_var dt =
current->spawn (&thread_action,
&spawn_data,
"Chamber of Secrets",
diff --git a/TAO/tests/RTScheduling/Scheduler.cpp b/TAO/tests/RTScheduling/Scheduler.cpp
index 885e7ba2fd7..31e4d368509 100644
--- a/TAO/tests/RTScheduling/Scheduler.cpp
+++ b/TAO/tests/RTScheduling/Scheduler.cpp
@@ -3,16 +3,17 @@
#include "Scheduler.h"
#include "tao/ORB.h"
#include "ace/Atomic_Op.h"
+#include "ace/Argv_Type_Converter.h"
#include "tao/RTScheduling/Request_Interceptor.h"
TAO_Scheduler::TAO_Scheduler (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL)
{
- CORBA::Object_var current_obj =
+ CORBA::Object_ptr current_obj =
orb->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
- current_ = RTScheduling::Current::_narrow (current_obj.in ()
+ current_ = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
@@ -145,14 +146,23 @@ TAO_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr reque
ACE_THROW_SPEC ((CORBA::SystemException,
PortableInterceptor::ForwardRequest))
{
- IOP::ServiceContext_var serv_cxt;
+ IOP::ServiceContext* serv_cxt = 0;
ACE_TRY
{
serv_cxt = request_info->get_request_service_context (Server_Interceptor::SchedulingInfo
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
+ }
+ ACE_CATCHANY
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "Invalid Service Context\n"));
+ }
+ ACE_ENDTRY;
+ if (serv_cxt != 0)
+ {
size_t gu_id;
ACE_OS::memcpy (&gu_id,
serv_cxt->context_data.get_buffer (),
@@ -173,12 +183,6 @@ TAO_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr reque
guid_out.ptr () = guid;
}
- ACE_CATCHANY
- {
- ACE_DEBUG ((LM_DEBUG,
- "Invalid Service Context\n"));
- }
- ACE_ENDTRY;
}
void
diff --git a/TAO/tests/RTScheduling/Scheduling_Interceptor/Scheduler_Interceptor.mpc b/TAO/tests/RTScheduling/Scheduling_Interceptor/Scheduler_Interceptor.mpc
index a9fce2cd532..08e00e4c333 100644
--- a/TAO/tests/RTScheduling/Scheduling_Interceptor/Scheduler_Interceptor.mpc
+++ b/TAO/tests/RTScheduling/Scheduling_Interceptor/Scheduler_Interceptor.mpc
@@ -9,7 +9,6 @@ project(*Server): rtscheduling_server {
}
project(*Client) : rtscheduling_client {
- after += *Server
Source_Files {
../Scheduler.cpp
testC.cpp
diff --git a/TAO/tests/RTScheduling/Scheduling_Interceptor/run_test.pl b/TAO/tests/RTScheduling/Scheduling_Interceptor/run_test.pl
index 2e3bec9cb61..2f3e20805c6 100755
--- a/TAO/tests/RTScheduling/Scheduling_Interceptor/run_test.pl
+++ b/TAO/tests/RTScheduling/Scheduling_Interceptor/run_test.pl
@@ -28,7 +28,7 @@ print STDERR "Starting Server\n";
$SV->Spawn ();
-if (PerlACE::waitforfile_timed ($iorfile, $PerlACE::wait_interval_for_process_creation) == -1) {
+if (PerlACE::waitforfile_timed ($iorfile, 10) == -1) {
print STDERR "ERROR: cannot find file <$iorfile>\n";
$SV->Kill ();
exit 1;
diff --git a/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp b/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp
index 14c947939fb..81c167219a1 100644
--- a/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp
+++ b/TAO/tests/RTScheduling/Scheduling_Interceptor/test_client.cpp
@@ -3,16 +3,17 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/SString.h"
ACE_CString ior = "file://test.ior";
int
parse_args (int argc,
- ACE_TCHAR* argv [])
+ char* argv [])
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c= opts ()) != -1)
@@ -21,7 +22,7 @@ parse_args (int argc,
{
case 'f':
ior = "file://";
- ior += opts.opt_arg ();
+ ior += ACE_TEXT_TO_CHAR_IN(opts.opt_arg ());
break;
default:
ACE_DEBUG ((LM_DEBUG, "Unknown Option\n"));
@@ -31,44 +32,40 @@ parse_args (int argc,
return 0;
}
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb;
test_var server;
- RTScheduling::Scheduler_var safe_scheduler;
-
ACE_TRY_NEW_ENV
{
- orb = CORBA::ORB_init (argc,
- argv,
+ orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) == -1)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return (-1);
- CORBA::Object_var manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
+ CORBA::Object_ptr manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj.in ()
+ TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- TAO_Scheduler* scheduler;
- ACE_NEW_RETURN (scheduler,
- TAO_Scheduler (orb.in ()),
- -1);
- safe_scheduler = scheduler;
+ TAO_Scheduler scheduler (orb.in ());
- manager->rtscheduler (scheduler);
+ manager->rtscheduler (&scheduler);
CORBA::Object_var object =
@@ -88,11 +85,11 @@ main (int argc, char* argv [])
1);
}
- CORBA::Object_var current_obj = orb->resolve_initial_references ("RTScheduler_Current"
+ CORBA::Object_ptr current_obj = orb->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- RTScheduling::Current_var current = RTScheduling::Current::_narrow (current_obj.in ()
+ RTScheduling::Current_var current = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/RTScheduling/Scheduling_Interceptor/test_server.cpp b/TAO/tests/RTScheduling/Scheduling_Interceptor/test_server.cpp
index 73e333552ca..34a8a5f485e 100644
--- a/TAO/tests/RTScheduling/Scheduling_Interceptor/test_server.cpp
+++ b/TAO/tests/RTScheduling/Scheduling_Interceptor/test_server.cpp
@@ -4,7 +4,9 @@
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "testS.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
const char* filename = "test.ior";
@@ -60,10 +62,10 @@ private:
int
parse_args (int argc,
- ACE_TCHAR* argv [])
+ char* argv [])
{
// Parse command line arguments
- ACE_Get_Opt opts (argc, argv, "f:");
+ ACE_Get_Arg_Opt<char> opts (argc, argv, "f:");
int c;
while ((c= opts ()) != -1)
@@ -82,18 +84,20 @@ parse_args (int argc,
}
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
CORBA::Object_var object =
orb->resolve_initial_references ("RootPOA"
@@ -112,11 +116,11 @@ main (int argc, char* argv[])
poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- CORBA::Object_var current_obj = orb->resolve_initial_references ("RTScheduler_Current"
+ CORBA::Object_ptr current_obj = orb->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- RTScheduling::Current_var current = RTScheduling::Current::_narrow (current_obj.in ()
+ RTScheduling::Current_var current = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -155,11 +159,11 @@ main (int argc, char* argv[])
"IOR = %s\n",
ior.in ()));
- CORBA::Object_var manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
+ CORBA::Object_ptr manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj.in ()
+ TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -169,7 +173,7 @@ main (int argc, char* argv[])
// Print ior to the file.
if (filename != 0)
{
- FILE* output_file = ACE_OS::fopen (filename, "w");
+ FILE* output_file = ACE_OS::fopen (filename, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp b/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp
index 9ad3f1430d0..97b36cd3e73 100644
--- a/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp
+++ b/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.cpp
@@ -29,11 +29,11 @@ Thread_Task::activate_task (CORBA::ORB_ptr orb)
this->orb_ = CORBA::ORB::_duplicate (orb);
- CORBA::Object_var current_obj = this->orb_->resolve_initial_references ("RTScheduler_Current"
+ CORBA::Object_ptr current_obj = this->orb_->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- this->current_ = RTScheduling::Current::_narrow (current_obj.in ()
+ this->current_ = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -58,9 +58,9 @@ Thread_Task::activate_task (CORBA::ORB_ptr orb)
return 0;
}
-#if defined (THREAD_CANCELLED)
+#if defined (ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO)
#undef THREAD_CANCELLED
-#endif /* THREAD_CANCELLED */
+#endif /* ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO */
int
Thread_Task::svc (void)
@@ -102,7 +102,7 @@ Thread_Task::svc (void)
{
ACE_GUARD_RETURN (ACE_Lock, ace_mon, *shutdown_lock_,-1);
- RTScheduling::Current::NameList_var name_list = this->current_->current_scheduling_segment_names (ACE_ENV_SINGLE_ARG_PARAMETER);
+ RTScheduling::Current::NameList* name_list = this->current_->current_scheduling_segment_names (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
ACE_DEBUG ((LM_DEBUG,
diff --git a/TAO/tests/RTScheduling/Thread_Cancel/test.cpp b/TAO/tests/RTScheduling/Thread_Cancel/test.cpp
index 42a390c4b01..1accc821d78 100644
--- a/TAO/tests/RTScheduling/Thread_Cancel/test.cpp
+++ b/TAO/tests/RTScheduling/Thread_Cancel/test.cpp
@@ -5,24 +5,27 @@
#include "../Scheduler.h"
#include "tao/RTScheduling/RTScheduler_Manager.h"
#include "tao/ORB_Core.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- CORBA::Object_var manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
+ CORBA::Object_ptr manager_obj = orb->resolve_initial_references ("RTSchedulerManager"
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
- TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj.in ()
+ TAO_RTScheduler_Manager_var manager = TAO_RTScheduler_Manager::_narrow (manager_obj
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (-1);
@@ -44,11 +47,11 @@ main (int argc, char* argv [])
ACE_DEBUG ((LM_DEBUG,
"Cancelling Threads.....\n"));
- CORBA::Object_var current_obj = orb->resolve_initial_references ("RTScheduler_Current"
+ CORBA::Object_ptr current_obj = orb->resolve_initial_references ("RTScheduler_Current"
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- RTScheduling::Current_var current = RTScheduling::Current::_narrow (current_obj.in ()
+ RTScheduling::Current_var current = RTScheduling::Current::_narrow (current_obj
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
diff --git a/TAO/tests/RTScheduling/VoidData/test.h b/TAO/tests/RTScheduling/VoidData/test.h
index ae4181971a9..eebc6831b49 100644
--- a/TAO/tests/RTScheduling/VoidData/test.h
+++ b/TAO/tests/RTScheduling/VoidData/test.h
@@ -11,7 +11,7 @@ class test_impl :public test
{
ACE_DEBUG ((LM_DEBUG,
"Void Data Passed to method %d\n",
- *(int*)something));
+ (int*)something));
}
};
diff --git a/TAO/tests/RTScheduling/VoidData/test_client.cpp b/TAO/tests/RTScheduling/VoidData/test_client.cpp
index 087080ddbba..a23809b233b 100644
--- a/TAO/tests/RTScheduling/VoidData/test_client.cpp
+++ b/TAO/tests/RTScheduling/VoidData/test_client.cpp
@@ -2,22 +2,30 @@
#include "tao/RTScheduling/RTScheduler.h"
#include "testC.h"
#include "test.h"
+#include "ace/Argv_Type_Converter.h"
int
-main (int argc, char* argv [])
+ACE_TMAIN (int argc, ACE_TCHAR* argv [])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
CORBA::ORB_var orb;
ACE_TRY_NEW_ENV
{
- orb = CORBA::ORB_init (argc,
- argv,
+ orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- test_impl foo_i;
+ test_ptr foo_i;
+
+ ACE_NEW_RETURN (foo_i,
+ test_impl,
+ -1);
+
int something = 28;
- foo_i.bar ((CORBA::VoidData) &something);
+ foo_i->bar ((CORBA::VoidData) &something);
}
ACE_CATCHANY
{
diff --git a/TAO/tests/Reliable_Oneways/Reliable_Oneways.mpc b/TAO/tests/Reliable_Oneways/Reliable_Oneways.mpc
index 2141f3040f5..c7d61fe00e7 100644
--- a/TAO/tests/Reliable_Oneways/Reliable_Oneways.mpc
+++ b/TAO/tests/Reliable_Oneways/Reliable_Oneways.mpc
@@ -10,7 +10,6 @@ project(*Server): taoserver, messaging {
}
project(*Client): messaging, taoexe, portableserver {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Reliable_Oneways/client.cpp b/TAO/tests/Reliable_Oneways/client.cpp
index 259e1be4ea6..409878116e0 100644
--- a/TAO/tests/Reliable_Oneways/client.cpp
+++ b/TAO/tests/Reliable_Oneways/client.cpp
@@ -5,6 +5,7 @@
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_sys_time.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Reliable_Oneways, client, "$Id$")
@@ -26,7 +27,7 @@ int failed_calls = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:ntsr");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:ntsr");
int c;
while ((c = get_opts ()) != -1)
@@ -81,15 +82,17 @@ void run_test_sync_none (Test::Oneway_Receiver_ptr oneway_receiver
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Reliable_Oneways/server.cpp b/TAO/tests/Reliable_Oneways/server.cpp
index a278c9a515b..7b12832e874 100644
--- a/TAO/tests/Reliable_Oneways/server.cpp
+++ b/TAO/tests/Reliable_Oneways/server.cpp
@@ -3,6 +3,7 @@
#include "Oneway_Receiver.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Reliable_Oneways, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,12 +36,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Oneway_Receiver *oneway_receiver_impl;
@@ -78,7 +81,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Sequence_Unit_Tests/Bounded_Simple_Types.cpp b/TAO/tests/Sequence_Unit_Tests/Bounded_Simple_Types.cpp
index 031694cff9a..3cc70a8306f 100644
--- a/TAO/tests/Sequence_Unit_Tests/Bounded_Simple_Types.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/Bounded_Simple_Types.cpp
@@ -18,7 +18,7 @@ struct Foo
CORBA::ULong const TEST_INT_MAX = 32;
CORBA::ULong const TEST_FOO_MAX = 64;
-int main(int,char*[])
+int ACE_TMAIN(int,ACE_TCHAR*[])
{
typedef TAO::bounded_value_sequence<int,TEST_INT_MAX> int_sequence;
diff --git a/TAO/tests/Sequence_Unit_Tests/Bounded_String.cpp b/TAO/tests/Sequence_Unit_Tests/Bounded_String.cpp
index 856bdf4798d..97288ba1bfb 100644
--- a/TAO/tests/Sequence_Unit_Tests/Bounded_String.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/Bounded_String.cpp
@@ -13,7 +13,7 @@
CORBA::ULong const MAXIMUM = 42;
typedef TAO::bounded_string_sequence<MAXIMUM> s_sequence;
-int main(int,char*[])
+int ACE_TMAIN(int,ACE_TCHAR*[])
{
s_sequence a;
s_sequence b(a);
diff --git a/TAO/tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc b/TAO/tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc
index 6ea3c96afaf..293d9655ecd 100644
--- a/TAO/tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc
+++ b/TAO/tests/Sequence_Unit_Tests/Sequence_Unit_Tests.mpc
@@ -1,19 +1,13 @@
// -*- MPC -*-
// $Id$
-project(*UB_Simple_Types) : taoexe {
+project(*Unbounded_Simple_Types) : taoexe {
Source_Files {
Unbounded_Simple_Types.cpp
}
}
-project(*Unbounded_Octet) : taoexe {
- Source_Files {
- Unbounded_Octet.cpp
- }
-}
-
-project(*B_Simple_Types) : taoexe {
+project(*Bounded_Simple_Types) : taoexe {
Source_Files {
Bounded_Simple_Types.cpp
}
@@ -31,7 +25,7 @@ project(*Bounded_String) : taoexe {
}
}
-project(*Obj_Ref_Seq_Elem): taoexe, boost_unit_test_framework {
+project(*Object_Reference_Sequence_Element): taoexe, boost_unit_test_framework {
exename = object_reference_sequence_element_ut
Source_Files {
mock_reference.cpp
@@ -39,7 +33,7 @@ project(*Obj_Ref_Seq_Elem): taoexe, boost_unit_test_framework {
}
}
-project(*UB_Obj_Ref_Seq): taoexe, boost_unit_test_framework {
+project(*Unbounded_Object_Reference_Sequence): taoexe, boost_unit_test_framework {
exename = unbounded_object_reference_sequence_ut
Source_Files {
mock_reference.cpp
@@ -47,49 +41,7 @@ project(*UB_Obj_Ref_Seq): taoexe, boost_unit_test_framework {
}
}
-project(*UB_Sequence_CDR): taoexe, boost_unit_test_framework {
- exename = unbounded_sequence_cdr_ut
- Source_Files {
- mock_reference.cpp
- mock_stream.cpp
- unbounded_sequence_cdr_ut.cpp
- }
-}
-
-project(*B_Sequence_CDR): taoexe, boost_unit_test_framework {
- exename = bounded_sequence_cdr_ut
- Source_Files {
- mock_reference.cpp
- mock_stream.cpp
- bounded_sequence_cdr_ut.cpp
- }
-}
-
-project(*UB_Fwd_Ob_Ref_Seq): taoexe, boost_unit_test_framework {
- exename = unbounded_fwd_object_reference_sequence_ut
- Source_Files {
- fwd_mock_reference.cpp
- unbounded_fwd_object_reference_sequence_ut.cpp
- }
-}
-
-project(*UB_Octet_Sequence): taoexe, boost_unit_test_framework {
- exename = unbounded_octet_sequence_ut
- Source_Files {
- mock_reference.cpp
- unbounded_octet_sequence_ut.cpp
- }
-}
-
-project(*UB_Oct_Seq_No_Cpy): taoexe, boost_unit_test_framework {
- exename = unbounded_octet_sequence_no_copy_ut
- Source_Files {
- mock_reference.cpp
- unbounded_octet_sequence_nocopy_ut.cpp
- }
-}
-
-project(*B_Obj_Ref_Seq): taoexe, boost_unit_test_framework {
+project(*Bounded_Object_Reference_Sequence): taoexe, boost_unit_test_framework {
exename = bounded_object_reference_sequence_ut
Source_Files {
mock_reference.cpp
@@ -97,42 +49,42 @@ project(*B_Obj_Ref_Seq): taoexe, boost_unit_test_framework {
}
}
-project(*String_Seq_Elem): taoexe, boost_unit_test_framework {
+project(*String_Sequence_Element): taoexe, boost_unit_test_framework {
exename = string_sequence_element_ut
Source_Files {
string_sequence_element_ut.cpp
}
}
-project(*UB_String_Seq): taoexe, boost_unit_test_framework {
+project(*Unbounded_String_Sequence): taoexe, boost_unit_test_framework {
exename = unbounded_string_sequence_ut
Source_Files {
unbounded_string_sequence_ut.cpp
}
}
-project(*B_String_Seq): taoexe, boost_unit_test_framework {
+project(*Bounded_String_Sequence): taoexe, boost_unit_test_framework {
exename = bounded_string_sequence_ut
Source_Files {
bounded_string_sequence_ut.cpp
}
}
-project(*Test_Alloc_Traits): taoexe, boost_unit_test_framework {
+project(*Testing_Allocation_Traits): taoexe, boost_unit_test_framework {
exename = testing_allocation_traits_ut
Source_Files {
testing_allocation_traits_ut.cpp
}
}
-project(*UB_Value_Sequence): taoexe, boost_unit_test_framework {
+project(*Unbounded_Value_Sequence): taoexe, boost_unit_test_framework {
exename = unbounded_value_sequence_ut
Source_Files {
unbounded_value_sequence_ut.cpp
}
}
-project(*B_Value_Sequence): taoexe, boost_unit_test_framework {
+project(*Bounded_Value_Sequence): taoexe, boost_unit_test_framework {
exename = bounded_value_sequence_ut
Source_Files {
bounded_value_sequence_ut.cpp
diff --git a/TAO/tests/Sequence_Unit_Tests/Unbounded_Octet.cpp b/TAO/tests/Sequence_Unit_Tests/Unbounded_Octet.cpp
deleted file mode 100644
index a54b22a0dcf..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/Unbounded_Octet.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * @file
- *
- * @brief Smoke test (basically just compile) the unbounded sequences
- * for octets.
- *
- * $Id$
- *
- * @author Johnny Willemsen <jwillemsen@remedy.nl>
- */
-#include "tao/Basic_Types.h"
-#include "unbounded_octet_sequence.hpp"
-
-typedef TAO::unbounded_value_sequence <CORBA::Octet> s_sequence;
-
-int main(int,char*[])
-{
- s_sequence a;
- s_sequence b(23);
-
- s_sequence c(32, 0, s_sequence::allocbuf(32), true);
- a = b;
-
- a.length(c.maximum());
- if (a.release())
- {
- b.length(a.length());
- }
- a[0] = 'a';
- b[0] = a[0];
-
- s_sequence const & d = a;
- c[0] = d[0];
-
- b.replace(64, 0, s_sequence::allocbuf(64), true);
-
- CORBA::Octet const * x = d.get_buffer();
- if (x != 0)
- {
- s_sequence::freebuf(a.get_buffer(true));
- }
- x = b.get_buffer();
-
- if (d.length())
- {
- s_sequence::freebuf(s_sequence::allocbuf(64));
- }
-
- s_sequence e(c);
-
- return 0;
-}
diff --git a/TAO/tests/Sequence_Unit_Tests/Unbounded_Simple_Types.cpp b/TAO/tests/Sequence_Unit_Tests/Unbounded_Simple_Types.cpp
index 77e1c588c73..691227f5716 100644
--- a/TAO/tests/Sequence_Unit_Tests/Unbounded_Simple_Types.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/Unbounded_Simple_Types.cpp
@@ -15,7 +15,7 @@ struct Foo
int x;
};
-int main(int,char*[])
+int ACE_TMAIN(int,ACE_TCHAR*[])
{
typedef TAO::unbounded_value_sequence<int> int_sequence;
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_basic_string_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_basic_string_sequence.hpp
index 8225e59f89a..08ddd2e618f 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_basic_string_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_basic_string_sequence.hpp
@@ -14,8 +14,6 @@
#include "generic_sequence.hpp"
#include "string_sequence_element.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -101,5 +99,4 @@ private:
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_bounded_basic_string_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence.hpp
index 184b8f7df6a..4e5c4518fe8 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence.hpp
@@ -14,21 +14,18 @@
#include "generic_sequence.hpp"
#include "object_reference_sequence_element.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
-template<typename object_t, typename object_t_var, CORBA::ULong MAX>
+template<typename object_t, CORBA::ULong MAX>
class bounded_object_reference_sequence
{
public:
typedef object_t object_type;
typedef object_type * value_type;
typedef object_type const * const_value_type;
- typedef object_t_var object_type_var;
- typedef details::object_reference_traits<object_type,object_type_var,true> element_traits;
+ typedef details::object_reference_traits<object_type,true> element_traits;
typedef details::bounded_reference_allocation_traits<value_type,element_traits,MAX,true> allocation_traits;
typedef details::object_reference_sequence_element<element_traits> element_type;
@@ -98,5 +95,4 @@ private:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_bounded_object_reference_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp
index 27618373268..348334a9fd8 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_object_reference_sequence_ut.cpp
@@ -21,13 +21,13 @@
#include <boost/weak_ptr.hpp>
using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
+using namespace TAO;
CORBA::ULong const TMAX = 64;
struct Tester
{
- typedef bounded_object_reference_sequence<mock_reference,mock_reference_var,TMAX> tested_sequence;
+ typedef bounded_object_reference_sequence<mock_reference,TMAX> tested_sequence;
typedef tested_sequence::value_type value_type;
typedef tested_sequence::const_value_type const_value_type;
@@ -396,15 +396,15 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded object reference sequence unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("unbounded object reference sequence unit test"));
boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_reference_allocation_traits.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_reference_allocation_traits.hpp
index 193a6657f7a..5805e84a27b 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_reference_allocation_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_reference_allocation_traits.hpp
@@ -13,8 +13,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -60,5 +58,4 @@ struct bounded_reference_allocation_traits
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_bounded_reference_allocation_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr.hpp
deleted file mode 100644
index fba15efe71f..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr.hpp
+++ /dev/null
@@ -1,59 +0,0 @@
-#ifndef guard_bounded_sequence_cdr
-#define guard_bounded_sequence_cdr
-/**
- * @file
- *
- * @brief Extract the sequence
- *
- * $Id$
- *
- * @author Carlos O'Ryan
- * @author Johnny Willemsen
- */
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO {
- namespace details {
- template <typename stream, typename sequence>
- bool extract_bounded_sequence(stream & strm, sequence & target) {
- ::CORBA::ULong new_length;
- if (!(strm >> new_length)) {
- return false;
- }
- if (new_length > strm.length()) {
- return false;
- }
- if (new_length > target.maximum ()) {
- return false;
- }
- sequence tmp;
- tmp.length(new_length);
- typename sequence::value_type * buffer = tmp.get_buffer();
- for(CORBA::ULong i = 0; i < new_length; ++i) {
- if (!(strm >> buffer[i])) {
- return false;
- }
- }
- tmp.swap(target);
- return true;
- }
-
- template <typename stream, typename sequence>
- bool insert_bounded_sequence(stream & strm, const sequence & source) {
- const ::CORBA::ULong length = source.length ();
- if (!(strm << length)) {
- return false;
- }
- for(CORBA::ULong i = 0; i < length; ++i) {
- if (!(strm << source[i])) {
- return false;
- }
- }
- return true;
- }
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif /* guard_bounded_sequence_cdr */
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr_ut.cpp b/TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr_ut.cpp
deleted file mode 100644
index a600c585ce8..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/bounded_sequence_cdr_ut.cpp
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * @file
- *
- * @brief Unit test for bounded sequences of object references.
- *
- * $Id$
- *
- * @author Carlos O'Ryan
- */
-#include "testing_object_reference_traits.hpp"
-#include "object_reference_traits.hpp"
-#include "testing_allocation_traits.hpp"
-#include "testing_range_checking.hpp"
-
-#include "mock_reference.hpp"
-#include "mock_stream.hpp"
-
-#include "bounded_object_reference_sequence.hpp"
-#include "bounded_sequence_cdr.hpp"
-
-#include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
-using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
-
-CORBA::ULong const TMAX = 64;
-
-typedef bounded_object_reference_sequence<mock_reference, mock_reference_var,TMAX> tested_sequence;
-
-CORBA::Boolean operator<< (mock_stream &strm, const tested_sequence &sequence)
-{
- return TAO::details::insert_bounded_sequence(strm, sequence);
-}
-
-CORBA::Boolean operator>> (mock_stream &strm, tested_sequence &sequence)
-{
- return TAO::details::extract_bounded_sequence(strm, sequence);
-}
-
-struct Tester
-{
- typedef tested_sequence::value_type value_type;
- typedef tested_sequence::const_value_type const_value_type;
-
- typedef tested_sequence::element_traits tested_element_traits;
- typedef tested_sequence::allocation_traits tested_allocation_traits;
- typedef TAO::details::range_checking<value_type,true> range;
-
- value_type * alloc_and_init_buffer()
- {
- value_type * buf = tested_sequence::allocbuf(8);
- buf[0] = mock_reference::allocate(1);
- buf[1] = mock_reference::allocate(4);
- buf[2] = mock_reference::allocate(9);
- buf[3] = mock_reference::allocate(16);
-
- return buf;
- }
-
- void check_values(tested_sequence const & a)
- {
- BOOST_CHECK_EQUAL( 1, a[0]->id());
- BOOST_CHECK_EQUAL( 4, a[1]->id());
- BOOST_CHECK_EQUAL( 9, a[2]->id());
- BOOST_CHECK_EQUAL(16, a[3]->id());
- }
-
- void test_stream()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls s(mock_reference::serialize_calls);
- {
- tested_sequence a;
- a.replace(4, buffer, false);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(64), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(false, a.release());
- check_values(a);
-
- mock_stream stream;
- stream << a;
- BOOST_CHECK_MESSAGE(s.expect(4), s);
- }
- tested_sequence::freebuf(buffer);
- }
-
- void add_all(test_suite * ts)
- {
- boost::shared_ptr<Tester> shared_this(self_);
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_stream,
- shared_this));
- }
-
- static boost::shared_ptr<Tester> allocate()
- {
- boost::shared_ptr<Tester> ptr(new Tester);
- ptr->self_ = ptr;
-
- return ptr;
- }
-
-private:
- Tester() {}
-
- boost::weak_ptr<Tester> self_;
-};
-
-ACE_Proper_Export_Flag test_suite *
-init_unit_test_suite(int, char*[])
-{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded object reference sequence unit test");
-
- boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
-
- return ts;
-}
-
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
index c42738744bc..afc33e73fb2 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence.hpp
@@ -12,8 +12,6 @@
#include "bounded_basic_string_sequence.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -37,5 +35,4 @@ public:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_bounded_string_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp
index 2007046a08c..b3c14646fd1 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_string_sequence_ut.cpp
@@ -28,7 +28,7 @@
#include <sstream>
using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
+using namespace TAO;
CORBA::ULong const MAXIMUM = 32;
@@ -89,30 +89,6 @@ struct Tester
BOOST_CHECK(helper::compare(16, a[3]));
}
- void test_regression_2201()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- expected_calls r(tested_element_traits::release_calls);
- {
- tested_sequence a(4, buffer);
- BOOST_CHECK_EQUAL(CORBA::ULong(MAXIMUM), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(false, a.release());
- a.length (3);
- BOOST_CHECK_EQUAL(CORBA::ULong(3), a.length());
- a.length (4);
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK(helper::compare_empty(a[3]));
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- BOOST_CHECK_MESSAGE(r.expect(MAXIMUM), r);
- }
-
void test_buffer_constructor_default()
{
value_type * buffer = alloc_and_init_buffer();
@@ -268,7 +244,7 @@ struct Tester
{
value_type * buffer = alloc_and_init_buffer();
tested_sequence a(4, buffer, false);
- BOOST_CHECK(0 == a.get_buffer(true));
+ BOOST_CHECK_EQUAL(static_cast<value_type*>(0), a.get_buffer(true));
tested_sequence::freebuf(buffer);
}
@@ -286,7 +262,6 @@ struct Tester
BOOST_CHECK_EQUAL(CORBA::ULong(MAXIMUM), b.maximum());
BOOST_CHECK_EQUAL(CORBA::ULong(0), b.length());
BOOST_CHECK(0 != b.get_buffer());
- BOOST_CHECK_EQUAL(true, b.release());
BOOST_CHECK_MESSAGE(c.expect(0), c);
@@ -317,10 +292,6 @@ struct Tester
shared_this));
ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_regression_2201,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
&Tester::test_buffer_constructor_default,
shared_this));
ts->add(BOOST_CLASS_TEST_CASE(
@@ -367,25 +338,25 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("bounded string sequence unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("bounded string sequence unit test"));
{
typedef TAO::bounded_string_sequence<MAXIMUM> s_sequence;
typedef Tester<s_sequence> nTester;
boost::shared_ptr<nTester> tester(nTester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
typedef TAO::bounded_wstring_sequence<MAXIMUM> w_sequence;
typedef Tester<w_sequence> wTester;
boost::shared_ptr<wTester> tester(wTester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_value_allocation_traits.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_value_allocation_traits.hpp
index e7727f449de..00beac8a06b 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_value_allocation_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_value_allocation_traits.hpp
@@ -13,8 +13,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -55,5 +53,4 @@ struct bounded_value_allocation_traits
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_bounded_value_allocation_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence.hpp
index 994122e22ce..8f02e5df604 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence.hpp
@@ -1,5 +1,5 @@
-#ifndef guard_bounded_value_sequence_hpp
-#define guard_bounded_value_sequence_hpp
+#ifndef guard_unbounded_value_sequence_hpp
+#define guard_unbounded_value_sequence_hpp
/**
* @file
*
@@ -15,8 +15,6 @@
#include "value_traits.hpp"
#include "generic_sequence.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -24,8 +22,9 @@ template<class T, CORBA::ULong MAX>
class bounded_value_sequence
{
public:
+ // static CORBA::ULong const MAXIMUM = MAX;
+
typedef T value_type;
- typedef T element_type;
typedef T const const_value_type;
typedef details::bounded_value_allocation_traits<value_type,MAX,true> allocation_traits;
@@ -93,6 +92,4 @@ private:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif // guard_bounded_string_sequence_hpp
+#endif // guard_unbounded_string_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp
index 87ccb341040..4cfa00aa292 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_value_sequence_ut.cpp
@@ -20,7 +20,7 @@
#include <boost/weak_ptr.hpp>
using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
+using namespace TAO;
CORBA::ULong const MAXIMUM = 32;
@@ -64,35 +64,6 @@ struct Tester
return buf;
}
- void test_regression_2201 ()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(32, buffer);
- BOOST_CHECK_EQUAL(CORBA::ULong(32), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(32), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(int( 1), a[0]);
- BOOST_CHECK_EQUAL(int( 4), a[1]);
- BOOST_CHECK_EQUAL(int( 9), a[2]);
- BOOST_CHECK_EQUAL(int(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- a.length (3);
- BOOST_CHECK_EQUAL(CORBA::ULong(32), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(3), a.length());
- a.length (4);
- BOOST_CHECK_EQUAL(CORBA::ULong(32), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(int( 0), a[3]);
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
void test_buffer_constructor_default()
{
value_type * buffer = alloc_and_init_buffer();
@@ -251,7 +222,7 @@ struct Tester
{
value_type * buffer = alloc_and_init_buffer();
tested_sequence a(4, buffer, false);
- BOOST_CHECK(0 == a.get_buffer(true));
+ BOOST_CHECK_EQUAL(static_cast<int*>(0), a.get_buffer(true));
tested_sequence::freebuf(buffer);
}
@@ -268,7 +239,6 @@ struct Tester
BOOST_CHECK_EQUAL(MAXIMUM, b.maximum());
BOOST_CHECK_EQUAL(0UL, b.length());
BOOST_CHECK(0 != b.get_buffer());
- BOOST_CHECK_EQUAL(true, b.release());
BOOST_CHECK_MESSAGE(c.expect(1), c);
@@ -291,10 +261,6 @@ struct Tester
shared_this));
ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_regression_2201,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
&Tester::test_buffer_constructor_default,
shared_this));
ts->add(BOOST_CLASS_TEST_CASE(
@@ -338,23 +304,23 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded value sequence unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("unbounded value sequence unit test"));
{
boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
typedef value_sequence_tester<tested_sequence,tested_allocation_traits> common;
boost::shared_ptr<common> tester(common::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/bounded_wstring_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/bounded_wstring_sequence.hpp
index 8fff36ae5ea..f83938ce0d3 100644
--- a/TAO/tests/Sequence_Unit_Tests/bounded_wstring_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/bounded_wstring_sequence.hpp
@@ -10,11 +10,8 @@
* @author Carlos O'Ryan
*/
-
#include "bounded_basic_string_sequence.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -38,5 +35,4 @@ public:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_bounded_wstring_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.cpp b/TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.cpp
deleted file mode 100644
index 0dfe597f7a1..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * @file
- *
- * $Id$
- *
- * @author Carlos O'Ryan <coryan@atdesk.com>
- */
-#include "fwd_mock_reference.hpp"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-fwd_mock_reference *
-TAO::Objref_Traits<fwd_mock_reference>::duplicate (
- fwd_mock_reference_ptr
- )
-{
- return 0;
-}
-
-void
-TAO::Objref_Traits<fwd_mock_reference>::release (
- fwd_mock_reference_ptr
- )
-{
-}
-
-fwd_mock_reference_ptr
-TAO::Objref_Traits<fwd_mock_reference>::nil (void)
-{
- return 0;
-}
-
-CORBA::Boolean
-TAO::Objref_Traits<fwd_mock_reference>::marshal (
- fwd_mock_reference_ptr,
- TAO_OutputCDR &
- )
-{
- return true;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.hpp b/TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.hpp
deleted file mode 100644
index a808d674fc4..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/fwd_mock_reference.hpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef guard_fwd_mock_reference_hpp
-#define guard_fwd_mock_reference_hpp
-/**
- * @file
- *
- * @brief Mock an forward declared object reference so we can test the sequences
- * in isolation.
- *
- * $Id$
- *
- * @author Johnny Willemsen <jwillemsen@remedy.nl>
- */
-#include "ace/config-all.h"
-
-#include "testing_counters.hpp"
-
-#include "tao/Objref_VarOut_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class fwd_mock_reference;
-typedef fwd_mock_reference * fwd_mock_reference_ptr;
-typedef TAO_Objref_Var_T<fwd_mock_reference> fwd_mock_reference_var;
-typedef TAO_Objref_Out_T<fwd_mock_reference> fwd_mock_reference_out;
-
-namespace TAO
-{
-template<>
-struct Objref_Traits< fwd_mock_reference>
-{
- static fwd_mock_reference_ptr duplicate (fwd_mock_reference_ptr);
- static void release (fwd_mock_reference_ptr);
- static fwd_mock_reference_ptr nil (void);
- static CORBA::Boolean marshal (const fwd_mock_reference_ptr p, TAO_OutputCDR & cdr);
-};
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif // guard_fwd_mock_reference_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/generic_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/generic_sequence.hpp
index a5b933f9855..ecf6a102d06 100644
--- a/TAO/tests/Sequence_Unit_Tests/generic_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/generic_sequence.hpp
@@ -22,7 +22,7 @@
*
* Oh, and let us not forget the type that the sequences encapsulates.
*
- * The intent is not for sequences to simply derive or instantiate this
+ * The intent is not for sequences to simply derive or intantiate this
* type. Instead, different each sequence type is written using
* composition. They instantiate a generic sequence with the correct
* traits, and implement the adapt the generic sequence interface to
@@ -60,8 +60,6 @@
#include <algorithm>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -259,5 +257,4 @@ private:
} // namespace details
} // namespace CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_generic_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/mock_reference.cpp b/TAO/tests/Sequence_Unit_Tests/mock_reference.cpp
index 47343eb366f..4c72a54f449 100644
--- a/TAO/tests/Sequence_Unit_Tests/mock_reference.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/mock_reference.cpp
@@ -7,12 +7,8 @@
*/
#include "mock_reference.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
call_counter mock_reference::duplicate_calls;
call_counter mock_reference::release_calls;
-call_counter mock_reference::serialize_calls;
-call_counter mock_reference::deserialize_calls;
mock_reference::
~mock_reference()
@@ -53,46 +49,3 @@ void CORBA::release(mock_reference * r)
{
mock_reference::_tao_release(r);
}
-
-mock_reference *
-TAO::Objref_Traits<mock_reference>::duplicate (
- mock_reference_ptr p
- )
-{
- return mock_reference::_duplicate (p);
-}
-
-void
-TAO::Objref_Traits<mock_reference>::release (
- mock_reference_ptr p
- )
-{
- CORBA::release (p);
-}
-
-mock_reference_ptr
-TAO::Objref_Traits<mock_reference>::nil (void)
-{
- return mock_reference::_nil ();
-}
-
-CORBA::Boolean
-TAO::Objref_Traits<mock_reference>::marshal (
- mock_reference_ptr,
- TAO_OutputCDR &
- )
-{
- return true;
-}
-
-CORBA::Boolean operator<< (mock_stream &, const mock_reference *)
-{
- mock_reference::serialize_calls ();
- return true;
-}
-CORBA::Boolean operator>> (mock_stream &, mock_reference *&)
-{
- mock_reference::deserialize_calls ();
- return true;
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tests/Sequence_Unit_Tests/mock_reference.hpp b/TAO/tests/Sequence_Unit_Tests/mock_reference.hpp
index 7be04979980..d0583ca6843 100644
--- a/TAO/tests/Sequence_Unit_Tests/mock_reference.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/mock_reference.hpp
@@ -14,9 +14,6 @@
#include "testing_counters.hpp"
-#include "tao/Basic_Types.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declare the class a CORBA::release function for it. That
// avoids having to introduce CORBA::Object into the tests.
// Ideally the T_var and T_out types should accept mock objects
@@ -27,20 +24,11 @@ namespace CORBA
void release(mock_reference*);
}
-class mock_stream;
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#include "tao/Objref_VarOut_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "tao/Pseudo_VarOut_T.h"
-typedef mock_reference *mock_reference_ptr;
-typedef TAO_Objref_Var_T<mock_reference> mock_reference_var;
-typedef TAO_Objref_Out_T<mock_reference> mock_reference_out;
/**
- * @class mock_reference
+ * @class
*
* @brief Implement a concrete class with the right interface for an
* object reference.
@@ -50,8 +38,8 @@ class mock_reference
public:
virtual ~mock_reference();
- typedef mock_reference_var _var_type;
- typedef mock_reference_out _out_type;
+ typedef TAO_Pseudo_Var_T<mock_reference> _var_type;
+ typedef TAO_Pseudo_Out_T<mock_reference,_var_type> _out_type;
static mock_reference * allocate(int id);
static mock_reference * _nil();
@@ -60,8 +48,6 @@ public:
static mock_reference * _duplicate(mock_reference * rhs);
static call_counter release_calls;
static void _tao_release(mock_reference * rhs);
- static call_counter serialize_calls;
- static call_counter deserialize_calls;
inline bool operator==(mock_reference const & rhs) const
{
@@ -79,8 +65,6 @@ public:
}
private:
- mock_reference ();
-
inline mock_reference(int id)
: id_(id)
{}
@@ -89,19 +73,8 @@ private:
int id_;
};
-CORBA::Boolean operator<< (mock_stream &, const mock_reference *);
-CORBA::Boolean operator>> (mock_stream &, mock_reference *&);
+typedef mock_reference * mock_reference_ptr;
+typedef mock_reference::_var_type mock_reference_var;
+typedef mock_reference::_out_type mock_reference_out;
-namespace TAO
-{
- template<>
- struct Objref_Traits< mock_reference>
- {
- static mock_reference_ptr duplicate (mock_reference_ptr);
- static void release (mock_reference_ptr);
- static mock_reference_ptr nil (void);
- static CORBA::Boolean marshal (mock_reference_ptr p, TAO_OutputCDR & cdr);
- };
-}
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_mock_reference_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/mock_stream.cpp b/TAO/tests/Sequence_Unit_Tests/mock_stream.cpp
deleted file mode 100644
index e5437a1a51e..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/mock_stream.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * @file
- *
- * $Id$
- *
- * @author Carlos O'Ryan <coryan@atdesk.com>
- */
-#include "mock_stream.hpp"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-call_counter mock_stream::serialize_calls;
-call_counter mock_stream::deserialize_calls;
-
-mock_stream::
-~mock_stream()
-{
-}
-
-CORBA::ULong
-mock_stream::length () const
-{
- return 100;
-}
-
-CORBA::Boolean operator<< (mock_stream &, const CORBA::ULong)
-{
- return true;
-}
-CORBA::Boolean operator>> (mock_stream &, CORBA::ULong &)
-{
- return true;
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
diff --git a/TAO/tests/Sequence_Unit_Tests/mock_stream.hpp b/TAO/tests/Sequence_Unit_Tests/mock_stream.hpp
deleted file mode 100644
index 8bd2ef1a5d1..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/mock_stream.hpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef guard_mock_stream_hpp
-#define guard_mock_stream_hpp
-/**
- * @file
- *
- * @brief Mock an stream
- *
- * $Id$
- *
- * @author Johnny Willemsen
- */
-#include "ace/config-all.h"
-
-#include "testing_counters.hpp"
-#include "tao/Basic_Types.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class mock_stream
- *
- * @brief Implement a concrete class with the right interface for a stream.
- */
-class mock_stream
-{
-public:
- ~mock_stream();
-
- CORBA::ULong length () const;
-
- static call_counter serialize_calls;
- static call_counter deserialize_calls;
-};
-
-CORBA::Boolean operator<< (mock_stream &, const CORBA::ULong);
-CORBA::Boolean operator>> (mock_stream &, CORBA::ULong &);
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-
-#endif // guard_mock_stream_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element.hpp b/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element.hpp
index ec6a58ad65e..f99bf34c37d 100644
--- a/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element.hpp
@@ -12,8 +12,6 @@
*/
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -122,5 +120,4 @@ private:
} // namespace details
} // namespace CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_object_reference_sequence_element_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp b/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp
index ade2691d8b4..c509972baed 100644
--- a/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/object_reference_sequence_element_ut.cpp
@@ -20,13 +20,13 @@
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO::details;
+using namespace TAO::details;
using namespace boost::unit_test_framework;
struct Tester
{
- typedef object_reference_traits<mock_reference,mock_reference_var,true> tested_element_traits;
+ typedef object_reference_traits<mock_reference,true> tested_element_traits;
typedef object_reference_sequence_element<tested_element_traits> tested_element;
typedef mock_reference * reference_type;
typedef tested_element_traits::object_type_var reference_var;
@@ -58,7 +58,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(1), r);
BOOST_CHECK_MESSAGE(mr.expect(1), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -94,7 +94,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(2), r);
BOOST_CHECK_MESSAGE(mr.expect(2), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -131,7 +131,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(1), r);
BOOST_CHECK_MESSAGE(mr.expect(1), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -168,7 +168,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(2), r);
BOOST_CHECK_MESSAGE(mr.expect(2), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -207,7 +207,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(3), r);
BOOST_CHECK_MESSAGE(mr.expect(3), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -242,7 +242,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(1), r);
BOOST_CHECK_MESSAGE(mr.expect(1), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -279,7 +279,7 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(2), r);
BOOST_CHECK_MESSAGE(mr.expect(2), mr);
}
-
+
BOOST_CHECK_MESSAGE(d.expect(0), d);
BOOST_CHECK_MESSAGE(r.expect(0), r);
BOOST_CHECK_MESSAGE(md.expect(0), md);
@@ -327,16 +327,16 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("object reference sequence element unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("object reference sequence element unit test"));
boost::shared_ptr<Tester > mock_reference_tester(
Tester::allocate());
- mock_reference_tester->add_all(ts);
+ mock_reference_tester->add_all(ts.get());
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/object_reference_traits.hpp b/TAO/tests/Sequence_Unit_Tests/object_reference_traits.hpp
index 780a530ea00..0075f4a1ff3 100644
--- a/TAO/tests/Sequence_Unit_Tests/object_reference_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/object_reference_traits.hpp
@@ -4,7 +4,7 @@
* @file
*
* @brief Implement the element manipulation traits for object
- * reference types.
+ * reference types.
*
* $Id$
*
@@ -15,20 +15,19 @@
#include <algorithm>
#include <functional>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
{
-template<class object_t, class object_t_var, class derived>
+template<class object_t, class derived>
struct object_reference_traits_decorator
{
typedef object_t object_type;
typedef object_type * value_type;
typedef object_type const * const_value_type;
- typedef object_t_var object_type_var;
+
+ typedef typename object_type::_var_type object_type_var;
inline static void zero_range(
object_type ** begin, object_type ** end)
@@ -64,21 +63,14 @@ struct object_reference_traits_decorator
}
};
-template<typename object_t, typename object_t_var, bool dummy>
+template<typename object_t, bool dummy>
struct object_reference_traits
- : public object_reference_traits_base<object_t, object_t_var>
- , public object_reference_traits_decorator<object_t, object_t_var, object_reference_traits<object_t,object_t_var,dummy> >
+ : public object_reference_traits_base<object_t>
+ , public object_reference_traits_decorator<object_t, object_reference_traits<object_t,dummy> >
{
-#if defined __BORLANDC__ && __BORLANDC__ < 0x580
- typedef object_t object_type;
- typedef object_type * value_type;
- typedef object_type const * const_value_type;
- typedef object_t_var object_type_var;
-#endif
};
} // namespace details
} // namespace CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_object_reference_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/object_reference_traits_base.hpp b/TAO/tests/Sequence_Unit_Tests/object_reference_traits_base.hpp
index b048719abc5..a05b224f327 100644
--- a/TAO/tests/Sequence_Unit_Tests/object_reference_traits_base.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/object_reference_traits_base.hpp
@@ -1,5 +1,5 @@
-#ifndef object_reference_traits_base_hpp
-#define object_reference_traits_base_hpp
+#ifndef guard_string_traits_base_hpp
+#define guard_string_traits_base_hpp
/**
* @file
*
@@ -10,36 +10,33 @@
* @author Carlos O'Ryan
*/
-#include "tao/Objref_VarOut_T.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
{
-template<typename object_t, typename object_t_var>
+template<typename object_t>
struct object_reference_traits_base
{
typedef object_t object_type;
typedef object_type * value_type;
typedef object_type const * const_value_type;
- typedef object_t_var object_type_var;
+
+ typedef typename object_type::_var_type object_type_var;
inline static void release(object_type * object)
{
- TAO::Objref_Traits<object_type>::release(object);
+ object_type::_tao_release(object);
}
inline static object_type * duplicate(object_type * object)
{
- return TAO::Objref_Traits<object_type>::duplicate(object);
+ return object_type::_duplicate(object);
}
inline static object_type * nil()
{
- return TAO::Objref_Traits<object_type>::nil();
+ return object_type::_nil();
}
inline static object_type * default_initializer()
@@ -51,5 +48,4 @@ struct object_reference_traits_base
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif // object_reference_traits_base_hpp
+#endif // guard_string_traits_base_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/range_checking.hpp b/TAO/tests/Sequence_Unit_Tests/range_checking.hpp
index 85a71af0abc..1d73739ea70 100644
--- a/TAO/tests/Sequence_Unit_Tests/range_checking.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/range_checking.hpp
@@ -13,15 +13,13 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
{
/**
- * @struct range_checking
+ * @struct
*
* @brief Configurable traits to tradeoff safety vs. performance in
* the implementation of TAO sequences.
@@ -91,7 +89,7 @@ namespace details
* };
* </PRE>
*
- *
+ *
*
* @todo There is no control on a per-sequence type basis, only on a
* per-underlying type basis, for example, the following two IDL
@@ -141,7 +139,6 @@ struct range_checking
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#if defined(TAO_USER_DEFINED_SEQUENCE_RANGE_CHECKING_INCLUDE)
# include TAO_USER_DEFINED_SEQUENCE_RANGE_CHECKING_INCLUDE
#endif // TAO_USER_DEFINED_SEQUENCE_RANGE_CHECKING_INCLUDE
diff --git a/TAO/tests/Sequence_Unit_Tests/run_test.pl b/TAO/tests/Sequence_Unit_Tests/run_test.pl
index 9d1e5babf6e..5e408d66ef2 100755
--- a/TAO/tests/Sequence_Unit_Tests/run_test.pl
+++ b/TAO/tests/Sequence_Unit_Tests/run_test.pl
@@ -17,15 +17,9 @@ my @tests = qw(unbounded_value_sequence_ut
unbounded_string_sequence_ut
bounded_string_sequence_ut
testing_allocation_traits_ut
- unbounded_octet_sequence_ut
- unbounded_octet_sequence_no_copy_ut
object_reference_sequence_element_ut
unbounded_object_reference_sequence_ut
- unbounded_fwd_object_reference_sequence_ut
bounded_object_reference_sequence_ut
- bounded_sequence_cdr_ut
- unbounded_sequence_cdr_ut
- Unbounded_Octet
Unbounded_Simple_Types
Bounded_Simple_Types
Unbounded_String
@@ -63,7 +57,7 @@ foreach my $process (@tests) {
$final_result = 1;
next;
}
- $result = $P->WaitKill(10);
+ $result = $P->WaitKill(30);
if ($result != 0) {
print "FAILED\n";
$final_result = 1;
diff --git a/TAO/tests/Sequence_Unit_Tests/string_sequence_element.hpp b/TAO/tests/Sequence_Unit_Tests/string_sequence_element.hpp
index 9ce72bb0ece..5ccac25610c 100644
--- a/TAO/tests/Sequence_Unit_Tests/string_sequence_element.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/string_sequence_element.hpp
@@ -13,8 +13,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -119,5 +117,4 @@ private:
} // namespace details
} // namespace CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_string_sequence_element_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp b/TAO/tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp
index fde7f00ee63..229cdf36d1f 100644
--- a/TAO/tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/string_sequence_element_ut.cpp
@@ -21,7 +21,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO::details;
+using namespace TAO::details;
using namespace boost::unit_test_framework;
@@ -381,20 +381,20 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("string sequence element unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("string sequence element unit test"));
boost::shared_ptr<Tester<char> > char_tester(
Tester<char>::allocate());
- char_tester->add_all(ts);
+ char_tester->add_all(ts.get());
boost::shared_ptr<Tester<CORBA::WChar> > wchar_tester(
Tester<CORBA::WChar>::allocate());
- wchar_tester->add_all(ts);
+ wchar_tester->add_all(ts.get());
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/string_traits.hpp b/TAO/tests/Sequence_Unit_Tests/string_traits.hpp
index 71d4f2fb7b6..143b4948d15 100644
--- a/TAO/tests/Sequence_Unit_Tests/string_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/string_traits.hpp
@@ -15,8 +15,6 @@
#include <algorithm>
#include <functional>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -72,5 +70,4 @@ struct string_traits
} // namespace details
} // namespace CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_string_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/string_traits_base.hpp b/TAO/tests/Sequence_Unit_Tests/string_traits_base.hpp
index 1dacb6f09be..b6a1e0be936 100644
--- a/TAO/tests/Sequence_Unit_Tests/string_traits_base.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/string_traits_base.hpp
@@ -14,8 +14,6 @@
#include "tao/CORBA_String.h"
#include "tao/Managed_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -58,13 +56,8 @@ struct string_traits_base<CORBA::WChar>
inline static char_type * default_initializer()
{
-#if defined(ACE_HAS_WCHAR) || defined(ACE_HAS_XPG4_MULTIBYTE_CHAR)
- return CORBA::wstring_dup(L"");
-#else
-#warning "platform not configured with native wchar_t support"
- CORBA::WChar empty[] = { 0 };
+ static CORBA::WChar empty[] = { 0 };
return CORBA::wstring_dup(empty);
-#endif /* 0 */
}
inline static char_type * duplicate(char_type const * s)
@@ -81,5 +74,4 @@ struct string_traits_base<CORBA::WChar>
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_string_traits_base_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits.hpp b/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits.hpp
index ba578e0f756..2c771853502 100644
--- a/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits.hpp
@@ -54,7 +54,6 @@ testing_allocation_traits<T,base>::freebuf_calls;
template<typename T, class base> call_counter
testing_allocation_traits<T,base>::default_buffer_allocation_calls;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
namespace details
@@ -86,6 +85,5 @@ struct bounded_reference_allocation_traits<T,reference_traits,MAX,true>
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_testing_allocation_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp b/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
index de4426c4f16..f74c9b81809 100644
--- a/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
@@ -17,7 +17,7 @@
try { statement; } catch(...) { \
BOOST_ERROR("unexpected exception raised"); }
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO::details;
+using namespace TAO::details;
using namespace boost::unit_test_framework;
@@ -172,30 +172,30 @@ private:
struct Foo { int y; };
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("testing allocation traits unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("testing allocation traits unit test"));
{
boost::shared_ptr<Tester<int> > tester(
Tester<int>::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
boost::shared_ptr<Tester<Foo> > tester(
Tester<Foo>::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
boost::shared_ptr<Tester<char*> > tester(
Tester<char*>::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/testing_object_reference_traits.hpp b/TAO/tests/Sequence_Unit_Tests/testing_object_reference_traits.hpp
index c13d4f5371f..6abe33f9dc0 100644
--- a/TAO/tests/Sequence_Unit_Tests/testing_object_reference_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/testing_object_reference_traits.hpp
@@ -4,7 +4,7 @@
* @file
*
* @brief Specialize the object reference traits so they can be used
- * in testing.
+ * in testing.
*
* $Id$
*
@@ -15,18 +15,18 @@
#include "testing_counters.hpp"
#include "object_reference_traits.hpp"
-template<typename object_t, typename object_t_var>
+template<typename object_t>
struct testing_object_reference_traits
- : public TAO::details::object_reference_traits_base<object_t, object_t_var>
- , public TAO::details::object_reference_traits_decorator<object_t, object_t_var, testing_object_reference_traits<object_t, object_t_var> >
+ : public TAO::details::object_reference_traits_base<object_t>
+ , public TAO::details::object_reference_traits_decorator<object_t, testing_object_reference_traits<object_t> >
{
static call_counter default_initializer_calls;
static call_counter duplicate_calls;
static call_counter release_calls;
typedef object_t object_type;
- typedef object_t_var object_type_var;
- typedef TAO::details::object_reference_traits<object_t,object_t_var,false> real_traits;
+ typedef typename object_type::_var_type object_type_var;
+ typedef TAO::details::object_reference_traits<object_t,false> real_traits;
static object_type * default_initializer()
{
@@ -47,29 +47,27 @@ struct testing_object_reference_traits
}
};
-template<typename object_t,typename object_t_var> call_counter
-testing_object_reference_traits<object_t,object_t_var>::default_initializer_calls;
+template<typename object_t> call_counter
+testing_object_reference_traits<object_t>::default_initializer_calls;
-template<typename object_t,typename object_t_var> call_counter
-testing_object_reference_traits<object_t,object_t_var>::duplicate_calls;
+template<typename object_t> call_counter
+testing_object_reference_traits<object_t>::duplicate_calls;
-template<typename object_t,typename object_t_var> call_counter
-testing_object_reference_traits<object_t,object_t_var>::release_calls;
+template<typename object_t> call_counter
+testing_object_reference_traits<object_t>::release_calls;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
namespace details
{
-template<typename object_t, typename object_t_var>
-struct object_reference_traits<object_t,object_t_var,true>
- : public testing_object_reference_traits<object_t,object_t_var>
+template<typename object_t>
+struct object_reference_traits<object_t,true>
+ : public testing_object_reference_traits<object_t>
{
};
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_testing_object_reference_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/testing_range_checking.hpp b/TAO/tests/Sequence_Unit_Tests/testing_range_checking.hpp
index b60024b914a..3588260dafe 100644
--- a/TAO/tests/Sequence_Unit_Tests/testing_range_checking.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/testing_range_checking.hpp
@@ -53,7 +53,6 @@ struct testing_range_checking
}
};
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
namespace details
@@ -68,5 +67,4 @@ struct range_checking<T,true>
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_testing_range_checking_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/testing_string_traits.hpp b/TAO/tests/Sequence_Unit_Tests/testing_string_traits.hpp
index 861bdbc07bf..ec9a1222218 100644
--- a/TAO/tests/Sequence_Unit_Tests/testing_string_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/testing_string_traits.hpp
@@ -76,7 +76,6 @@ testing_string_traits<charT>::not_released_from_const_calls;
template<typename charT> call_counter
testing_string_traits<charT>::not_released_from_managed_calls;
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
namespace details
@@ -96,6 +95,5 @@ struct string_traits<CORBA::WChar,true>
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_testing_string_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_basic_string_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_basic_string_sequence.hpp
index b8e2191d860..4caf7ce4f39 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_basic_string_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_basic_string_sequence.hpp
@@ -14,8 +14,6 @@
#include "generic_sequence.hpp"
#include "string_sequence_element.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -104,5 +102,4 @@ private:
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_basic_string_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_fwd_object_reference_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_fwd_object_reference_sequence_ut.cpp
deleted file mode 100644
index e9eae26609c..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_fwd_object_reference_sequence_ut.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * @file
- *
- * @brief Unit test for unbounded sequences of forward declared object
- * references.
- *
- * $Id$
- *
- * @author Johnny Willemsen <jwillemsen@remedy.nl>
- */
-#include "testing_object_reference_traits.hpp"
-//#include "object_reference_traits.hpp"
-#include "testing_allocation_traits.hpp"
-#include "testing_range_checking.hpp"
-
-#include "fwd_mock_reference.hpp"
-
-#include "unbounded_object_reference_sequence.hpp"
-
-#include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
-using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
-
-struct Tester
-{
- typedef unbounded_object_reference_sequence<fwd_mock_reference, fwd_mock_reference_var> tested_sequence;
- typedef tested_sequence::value_type value_type;
- typedef tested_sequence::const_value_type const_value_type;
-
- typedef tested_sequence::element_traits tested_element_traits;
- typedef tested_sequence::allocation_traits tested_allocation_traits;
- typedef TAO::details::range_checking<value_type,true> range;
-
- void test_default_constructor()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- expected_calls i(tested_element_traits::default_initializer_calls);
- {
- tested_sequence x;
-
- BOOST_CHECK_EQUAL(CORBA::ULong(0), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(0), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- BOOST_CHECK_MESSAGE(i.expect(0), i);
- }
-
- void add_all(test_suite * ts)
- {
- boost::shared_ptr<Tester> shared_this(self_);
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_default_constructor,
- shared_this));
- }
-
- static boost::shared_ptr<Tester> allocate()
- {
- boost::shared_ptr<Tester> ptr(new Tester);
- ptr->self_ = ptr;
-
- return ptr;
- }
-
-private:
- Tester() {}
-
- boost::weak_ptr<Tester> self_;
-};
-
-ACE_Proper_Export_Flag test_suite *
-init_unit_test_suite(int, char*[])
-{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded object reference sequence unit test");
-
- boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
-
- return ts;
-}
-
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence.hpp
index 4d095a7b9e8..23ebd2c28b1 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence.hpp
@@ -14,12 +14,10 @@
#include "generic_sequence.hpp"
#include "object_reference_sequence_element.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
-template<typename object_t, typename object_t_var>
+template<typename object_t>
class unbounded_object_reference_sequence
{
public:
@@ -27,7 +25,7 @@ public:
typedef object_type * value_type;
typedef object_type const * const_value_type;
- typedef details::object_reference_traits<object_type,object_t_var,true> element_traits;
+ typedef details::object_reference_traits<object_type,true> element_traits;
typedef details::unbounded_reference_allocation_traits<value_type,element_traits,true> allocation_traits;
typedef details::object_reference_sequence_element<element_traits> element_type;
@@ -101,5 +99,4 @@ private:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_object_reference_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp
index 4854282e479..9ed96956648 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_object_reference_sequence_ut.cpp
@@ -21,11 +21,11 @@
#include <boost/weak_ptr.hpp>
using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
+using namespace TAO;
struct Tester
{
- typedef unbounded_object_reference_sequence<mock_reference, mock_reference_var> tested_sequence;
+ typedef unbounded_object_reference_sequence<mock_reference> tested_sequence;
typedef tested_sequence::value_type value_type;
typedef tested_sequence::const_value_type const_value_type;
@@ -505,15 +505,15 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded object reference sequence unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("unbounded object reference sequence unit test"));
boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp
deleted file mode 100644
index 043f24add9a..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence.hpp
+++ /dev/null
@@ -1,284 +0,0 @@
-#ifndef guard_unbounded_octet_sequence_hpp
-#define guard_unbounded_octet_sequence_hpp
-/**
- * @file
- *
- * @brief Implement octet sequences
- *
- * $Id$
- *
- * @author Johnny Willemsen
- */
-#include "tao/orbconf.h"
-
-#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
-
-#include "unbounded_value_allocation_traits.hpp"
-#include "value_traits.hpp"
-#include "unbounded_value_sequence.hpp"
-#include "range_checking.hpp"
-
-#include "tao/Basic_Types.h"
-#include "ace/Message_Block.h"
-#include "ace/OS_Memory.h"
-#include "ace/OS_NS_string.h"
-
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace TAO
-{
-template<>
-class unbounded_value_sequence<CORBA::Octet>
-{
-public:
- typedef CORBA::Octet value_type;
- typedef CORBA::Octet element_type;
- typedef CORBA::Octet const const_value_type;
-
- typedef details::unbounded_value_allocation_traits<value_type,true> allocation_traits;
- typedef details::value_traits<value_type,true> element_traits;
- typedef details::generic_sequence<value_type, allocation_traits, element_traits> implementation_type;
- typedef details::range_checking<value_type,true> range;
-
- inline unbounded_value_sequence<CORBA::Octet>()
- : maximum_ (allocation_traits::default_maximum())
- , length_ (0)
- , buffer_ (allocation_traits::default_buffer_allocation())
- , release_ (true)
- , mb_ (0)
- {}
- inline explicit unbounded_value_sequence<CORBA::Octet>(CORBA::ULong maximum)
- : maximum_(maximum)
- , length_(0)
- , buffer_(allocbuf(maximum_))
- , release_(true)
- , mb_ (0)
- {}
- inline unbounded_value_sequence<CORBA::Octet>(
- CORBA::ULong maximum,
- CORBA::ULong length,
- value_type * data,
- CORBA::Boolean release = false)
- : maximum_ (maximum),
- length_ (length),
- buffer_ (data),
- release_ (release),
- mb_ (0)
- {}
- inline ~unbounded_value_sequence<CORBA::Octet>() {
- if (mb_)
- ACE_Message_Block::release (mb_);
- if (release_)
- freebuf(buffer_);
- }
- /// Create a sequence of octets from a single message block (i.e. it
- /// ignores any chaining in the meesage block).
- inline unbounded_value_sequence<CORBA::Octet> (CORBA::ULong length,
- const ACE_Message_Block* mb)
- : maximum_ (length)
- , length_ (length)
- , buffer_ (reinterpret_cast <CORBA::Octet *>(mb->rd_ptr ()))
- , release_ (false)
- , mb_(0) {
- // Get the message block flags.
- ACE_Message_Block::Message_Flags flg = mb->self_flags ();
-
- // If the DONT_DELETE flag is disabled just a duplicate would
- // help. If the DONT_DELETE flag is enabled a deep copy is needed as
- // the contents would be on stack. Just incrementing the ref count
- // on the stack based data block would only crash the program when
- // the stack unwinds
- if (ACE_BIT_DISABLED (flg,
- ACE_Message_Block::DONT_DELETE))
- {
- this->mb_ = ACE_Message_Block::duplicate (mb);
- }
- else
- {
- // As we are in CORBA mode, all the data blocks would be aligned
- // on an 8 byte boundary
- ACE_Message_Block msgb (*mb,
- ACE_CDR::MAX_ALIGNMENT);
-
- // Get the base pointer of the incoming message block
- char *start = ACE_ptr_align_binary (mb->base (),
- ACE_CDR::MAX_ALIGNMENT);
-
- // Get the read and write displacements in the incoming stream
- size_t rd_pos = mb->rd_ptr () - start;
- size_t wr_pos = mb->wr_ptr () - start;
-
- this->mb_ = ACE_Message_Block::duplicate (&msgb);
-
- this->mb_->rd_ptr (rd_pos);
- this->mb_->wr_ptr (wr_pos);
- }
- }
- inline CORBA::ULong maximum() const {
- return maximum_;
- }
- inline CORBA::Boolean release() const {
- return release_;
- }
- inline CORBA::ULong length() const {
- return length_;
- }
- inline void length(CORBA::ULong length) {
- if (length <= maximum_ || length <= length_)
- {
- if (length_ < length)
- {
- // TODO This code does not provide the strong-exception
- // guarantee, but it does provide the weak-exception
- // guarantee. The problem would appear when
- // initialize_range() raises an exception after several
- // elements have been modified. One could argue that
- // this problem is irrelevant, as the elements already
- // modified are unreachable to conforming applications.
- element_traits::initialize_range(
- buffer_ + length_, buffer_ + length);
- }
- length_ = length;
- return;
- }
-
- unbounded_value_sequence<CORBA::Octet> tmp(length);
- tmp.length_ = length;
- element_traits::copy_range(
- buffer_, buffer_ + length_, tmp.buffer_);
- element_traits::initialize_range(
- tmp.buffer_ + length_, tmp.buffer_ + length);
- swap(tmp);
- }
- inline value_type const & operator[](CORBA::ULong i) const {
- range::check(i, length_, maximum_, "operator[]() const");
- return buffer_[i];
- }
- inline value_type & operator[](CORBA::ULong i) {
- range::check(i, length_, maximum_, "operator[]() non-const");
- return buffer_[i];
- }
- inline void replace(
- CORBA::ULong maximum,
- CORBA::ULong length,
- value_type * data,
- CORBA::Boolean release = false) {
- unbounded_value_sequence<CORBA::Octet> tmp(maximum, length, data, release);
- swap(tmp);
- }
- inline value_type const * get_buffer() const {
- if (buffer_ == 0)
- {
- buffer_ = allocbuf(maximum_);
- }
- return buffer_;
- }
- inline value_type * get_buffer(CORBA::Boolean orphan = false) {
- if (orphan && !release_)
- {
- return 0;
- }
- if (buffer_ == 0)
- {
- buffer_ = allocbuf(maximum_);
- }
- if (!orphan)
- {
- return buffer_;
- }
-
- unbounded_value_sequence<CORBA::Octet> tmp;
- swap(tmp);
- tmp.release_ = false;
-
- return tmp.buffer_;
- }
- inline void swap(unbounded_value_sequence & rhs) throw() {
- std::swap (mb_, rhs.mb_);
- std::swap (maximum_, rhs.maximum_);
- std::swap (length_, rhs.length_);
- std::swap (buffer_, rhs.buffer_);
- std::swap (release_, rhs.release_);
- }
- static value_type * allocbuf(CORBA::ULong maximum) {
- return allocation_traits::allocbuf(maximum);
- }
- static void freebuf(value_type * buffer) {
- allocation_traits::freebuf(buffer);
- }
-
- /// Returns the underlying message block, the caller must *not*
- /// release the copy.
- inline ACE_Message_Block* mb (void) const {
- return mb_;
- }
-
- /// Replaces the current buffer with <mb>, using only <length> bytes.
- /// It takes a duplicate of <mb> so the user still owns it.
- inline void replace (CORBA::ULong length, const ACE_Message_Block* mb) {
- unbounded_value_sequence<CORBA::Octet> s (length, mb);
- swap (s);
- }
-
- unbounded_value_sequence<CORBA::Octet> (
- const unbounded_value_sequence<CORBA::Octet> &rhs)
- : maximum_ (0)
- , length_ (0)
- , buffer_(0)
- , release_(false)
- , mb_ (0)
- {
- unbounded_value_sequence<CORBA::Octet> tmp(rhs.maximum_);
- tmp.length_ = rhs.length_;
- if (rhs.mb_ == 0)
- {
- ACE_OS::memcpy (tmp.buffer_,
- rhs.buffer_,
- rhs.length_);
- }
- else
- {
- size_t offset = 0;
- for (const ACE_Message_Block *i = rhs.mb_; i != 0; i = i->cont ())
- {
- ACE_OS::memcpy (tmp.buffer_ + offset,
- i->rd_ptr (),
- i->length ());
-
- offset += i->length ();
- }
- }
- swap(tmp);
- }
-
- unbounded_value_sequence<CORBA::Octet> &
- operator= (const unbounded_value_sequence<CORBA::Octet> & rhs)
- {
- unbounded_value_sequence<CORBA::Octet> tmp(rhs);
- swap(tmp);
- return * this;
- }
-
-private:
- /// The maximum number of elements the buffer can contain.
- CORBA::ULong maximum_;
-
- /// The current number of elements in the buffer.
- CORBA::ULong length_;
-
- /// The buffer with all the elements, casting must be done in derived
- /// classes.
- mutable value_type * buffer_;
-
- /// If true then the sequence should release the buffer when it is
- /// destroyed.
- CORBA::Boolean release_;
- ACE_Message_Block* mb_;
-};
-
-} // namespace TAO
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif
-
-#endif // guard_unbounded_octet_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp
deleted file mode 100644
index b8f36f065cc..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_nocopy_ut.cpp
+++ /dev/null
@@ -1,487 +0,0 @@
-/**
- * @file
- *
- * @brief Unit test for unbounded sequences of octet types using the TAO
- * specific no copy specialization
- *
- * $Id$
- *
- * @author Johnny Willemsen
- */
-#include "testing_allocation_traits.hpp"
-#include "testing_range_checking.hpp"
-
-#include "unbounded_octet_sequence.hpp"
-
-#include "value_sequence_tester.hpp"
-
-#include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
-#include "tao/Basic_Types.h"
-#include "tao/CDR.h"
-
-using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
-
-typedef unbounded_value_sequence<CORBA::Octet> tested_sequence;
-typedef tested_sequence::element_traits tested_element_traits;
-typedef tested_sequence::allocation_traits tested_allocation_traits;
-typedef details::range_checking<CORBA::Octet,true> range;
-
-struct Tester
-{
- typedef tested_sequence::value_type value_type;
-
- void test_copy_constructor_from_ulong()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- x.length(8);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
-
- tested_sequence y(x);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), y.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), y.length());
- BOOST_CHECK_EQUAL(true, y.release());
- }
- BOOST_CHECK_MESSAGE(f.expect(2), f);
- }
-
- void test_assignment_from_ulong()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
- x.length(8);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
-
- tested_sequence y;
- BOOST_CHECK_MESSAGE(a.expect(0), a);
-
- y = x;
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), y.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), y.length());
- BOOST_CHECK_EQUAL(true, y.release());
- }
- BOOST_CHECK_MESSAGE(f.expect(2), f);
- }
-
- void test_ulong_constructor()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(0), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_exception_in_ulong_constructor()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_allocation_traits::allocbuf_calls.failure_countdown(1);
- BOOST_CHECK_THROW(tested_sequence x(16), testing_exception);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- }
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- }
-
- void test_set_length_less_than_maximum()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
-
- x.length(8);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_set_length_more_than_maximum()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
-
- x.length(32);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(32), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(32), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_exception_in_set_length()
- {
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x;
-
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- tested_allocation_traits::allocbuf_calls.failure_countdown(1);
- BOOST_CHECK_THROW(x.length(8), testing_exception);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- }
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- value_type * alloc_and_init_buffer()
- {
- value_type * buf = tested_sequence::allocbuf(8);
- buf[0] = 1; buf[1] = 4; buf[2] = 9; buf[3] = 16;
-
- return buf;
- }
-
- ACE_Message_Block * alloc_and_init_mb()
- {
- char buf[8];
- sprintf (buf, "%s", "testing ");
- size_t n = (strlen (buf) + 1) * sizeof (char);
- ACE_Message_Block * mb = new ACE_Message_Block (n);
- mb->copy ((char *) buf, n);
-
- return mb;
- }
-
- void test_buffer_constructor_default()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_buffer_constructor_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer, false);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_buffer_constructor_true()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(true, a.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_replace_default()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a;
- a.replace(8, 4, buffer);
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_replace_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
-
- {
- tested_sequence a;
- a.replace(8, 4, buffer, false);
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_replace_true()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
-
- {
- tested_sequence a;
- a.replace(8, 4, buffer, true);
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(true, a.release());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_get_buffer_default()
- {
- value_type * buffer = alloc_and_init_buffer();
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(a.get_buffer(), buffer);
- }
-
- void test_get_buffer_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(a.get_buffer(), buffer);
- }
-
- void test_get_buffer_true_with_release_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- tested_sequence a(8, 4, buffer, false);
- BOOST_CHECK(0 == a.get_buffer(true));
- tested_sequence::freebuf(buffer);
- }
-
- void test_get_buffer_true_with_release_true()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(buffer, a.get_buffer(true));
-
- tested_sequence const & b = a;
- BOOST_CHECK_EQUAL(0UL, b.maximum());
- BOOST_CHECK_EQUAL(0UL, b.length());
- BOOST_CHECK(0 != b.get_buffer());
- BOOST_CHECK_EQUAL(true, b.release());
-
- BOOST_CHECK_MESSAGE(c.expect(1), c);
-
- BOOST_CHECK(buffer != b.get_buffer());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_no_copy_octet()
- {
-#if (TAO_NO_COPY_OCTET_SEQUENCES == 1)
- ACE_Message_Block * mb = alloc_and_init_mb();
- tested_sequence a (8, mb);
- BOOST_CHECK_EQUAL(CORBA::Octet( 't'), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 'g'), a[6]);
-
- char upperbuf[256];
- sprintf (upperbuf, "%s", "THIS IS A TEST");
- size_t n = (strlen (upperbuf) + 1) * sizeof (char);
- ACE_Message_Block * upper_mb = 0;
- ACE_NEW (upper_mb,
- ACE_Message_Block (n));
- // Copy buf into the Message_Block and update the wr_ptr ().
- upper_mb->copy ((char *) upperbuf, n);
- a.replace (n, upper_mb);
- BOOST_CHECK_EQUAL(CORBA::Octet( 'T'), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 'S'), a[6]);
-#endif
- }
-
- void add_all(test_suite * ts)
- {
- boost::shared_ptr<Tester> shared_this(self_);
-
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_no_copy_octet,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_ulong_constructor,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_copy_constructor_from_ulong,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_assignment_from_ulong,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_exception_in_ulong_constructor,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_set_length_less_than_maximum,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_set_length_more_than_maximum,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_exception_in_set_length,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_buffer_constructor_default,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_buffer_constructor_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_buffer_constructor_true,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_replace_default,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_replace_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_replace_true,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_get_buffer_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_get_buffer_true_with_release_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_get_buffer_true_with_release_true,
- shared_this));
-
- }
-
- static boost::shared_ptr<Tester> allocate()
- {
- boost::shared_ptr<Tester> ptr(new Tester);
- ptr->self_ = ptr;
-
- return ptr;
- }
-
-private:
- Tester() {}
-
- boost::weak_ptr<Tester> self_;
-};
-
-ACE_Proper_Export_Flag test_suite *
-init_unit_test_suite(int, char*[])
-{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded no copy octet sequence unit test");
-
- {
- boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
- }
-
- {
- typedef value_sequence_tester<tested_sequence,tested_allocation_traits> common;
- boost::shared_ptr<common> tester(common::allocate());
- tester->add_all(ts);
- }
-
- return ts;
-}
-
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp
deleted file mode 100644
index 39a358d53fc..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_octet_sequence_ut.cpp
+++ /dev/null
@@ -1,450 +0,0 @@
-/**
- * @file
- *
- * @brief Unit test for unbounded sequences of octet types
- *
- * $Id$
- *
- * @author Johnny Willemsen
- */
-
-#include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
-#include "testing_allocation_traits.hpp"
-#include "testing_range_checking.hpp"
-
-#include "unbounded_value_sequence.hpp"
-
-#include "value_sequence_tester.hpp"
-
-#include "tao/Basic_Types.h"
-#include "tao/CDR.h"
-
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
-using namespace boost::unit_test_framework;
-
-typedef unbounded_value_sequence<CORBA::Octet> tested_sequence;
-typedef tested_sequence::element_traits tested_element_traits;
-typedef tested_sequence::allocation_traits tested_allocation_traits;
-typedef details::range_checking<CORBA::Octet,true> range;
-
-struct Tester
-{
- typedef tested_sequence::value_type value_type;
-
- void test_copy_constructor_from_ulong()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- x.length(8);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
-
- tested_sequence y(x);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), y.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), y.length());
- BOOST_CHECK_EQUAL(true, y.release());
- }
- BOOST_CHECK_MESSAGE(f.expect(2), f);
- }
-
- void test_assignment_from_ulong()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
- x.length(8);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
-
- tested_sequence y;
- BOOST_CHECK_MESSAGE(a.expect(0), a);
-
- y = x;
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), y.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), y.length());
- BOOST_CHECK_EQUAL(true, y.release());
- }
- BOOST_CHECK_MESSAGE(f.expect(2), f);
- }
-
- void test_ulong_constructor()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(0), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_exception_in_ulong_constructor()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_allocation_traits::allocbuf_calls.failure_countdown(1);
- BOOST_CHECK_THROW(tested_sequence x(16), testing_exception);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- }
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- }
-
- void test_set_length_less_than_maximum()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
-
- x.length(8);
- BOOST_CHECK_EQUAL(CORBA::ULong(16), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(8), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_set_length_more_than_maximum()
- {
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x(16);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
-
- x.length(32);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(32), x.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(32), x.length());
- BOOST_CHECK_EQUAL(true, x.release());
- }
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_exception_in_set_length()
- {
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence x;
-
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- tested_allocation_traits::allocbuf_calls.failure_countdown(1);
- BOOST_CHECK_THROW(x.length(8), testing_exception);
- BOOST_CHECK_MESSAGE(a.expect(1), a);
- }
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- value_type * alloc_and_init_buffer()
- {
- value_type * buf = tested_sequence::allocbuf(8);
- buf[0] = 1; buf[1] = 4; buf[2] = 9; buf[3] = 16;
-
- return buf;
- }
-
- void test_buffer_constructor_default()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_buffer_constructor_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer, false);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_buffer_constructor_true()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(true, a.release());
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_replace_default()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a;
- a.replace(8, 4, buffer);
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_replace_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
-
- {
- tested_sequence a;
- a.replace(8, 4, buffer, false);
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
- void test_replace_true()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
-
- {
- tested_sequence a;
- a.replace(8, 4, buffer, true);
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(CORBA::Octet( 1), a[0]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 4), a[1]);
- BOOST_CHECK_EQUAL(CORBA::Octet( 9), a[2]);
- BOOST_CHECK_EQUAL(CORBA::Octet(16), a[3]);
- BOOST_CHECK_EQUAL(true, a.release());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- }
-
- void test_get_buffer_default()
- {
- value_type * buffer = alloc_and_init_buffer();
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(a.get_buffer(), buffer);
- }
-
- void test_get_buffer_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(a.get_buffer(), buffer);
- }
-
- void test_get_buffer_true_with_release_false()
- {
- value_type * buffer = alloc_and_init_buffer();
- tested_sequence a(8, 4, buffer, false);
- BOOST_CHECK(0 == a.get_buffer(true));
- tested_sequence::freebuf(buffer);
- }
-
- void test_get_buffer_true_with_release_true()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls c(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer, true);
- BOOST_CHECK_EQUAL(buffer, a.get_buffer(true));
-
- tested_sequence const & b = a;
- BOOST_CHECK_EQUAL(0UL, b.maximum());
- BOOST_CHECK_EQUAL(0UL, b.length());
- BOOST_CHECK(0 != b.get_buffer());
- BOOST_CHECK_EQUAL(true, b.release());
-
- BOOST_CHECK_MESSAGE(c.expect(1), c);
-
- BOOST_CHECK(buffer != b.get_buffer());
- }
- BOOST_CHECK_MESSAGE(c.expect(0), c);
- BOOST_CHECK_MESSAGE(f.expect(1), f);
- tested_sequence::freebuf(buffer);
- }
-
- void add_all(test_suite * ts)
- {
- boost::shared_ptr<Tester> shared_this(self_);
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_ulong_constructor,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_copy_constructor_from_ulong,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_assignment_from_ulong,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_exception_in_ulong_constructor,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_set_length_less_than_maximum,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_set_length_more_than_maximum,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_exception_in_set_length,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_buffer_constructor_default,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_buffer_constructor_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_buffer_constructor_true,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_replace_default,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_replace_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_replace_true,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_get_buffer_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_get_buffer_true_with_release_false,
- shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_get_buffer_true_with_release_true,
- shared_this));
-
- }
-
- static boost::shared_ptr<Tester> allocate()
- {
- boost::shared_ptr<Tester> ptr(new Tester);
- ptr->self_ = ptr;
-
- return ptr;
- }
-
-private:
- Tester() {}
-
- boost::weak_ptr<Tester> self_;
-};
-
-using namespace boost::unit_test_framework;
-
-ACE_Proper_Export_Flag test_suite *
-init_unit_test_suite(int, char*[])
-{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded octet sequence unit test");
-
- {
- boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
- }
-
- {
- typedef value_sequence_tester<tested_sequence,tested_allocation_traits> common;
- boost::shared_ptr<common> tester(common::allocate());
- tester->add_all(ts);
- }
-
- return ts;
-}
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_reference_allocation_traits.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_reference_allocation_traits.hpp
index 2c5a2da2da2..0d3406acc11 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_reference_allocation_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_reference_allocation_traits.hpp
@@ -13,8 +13,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -64,5 +62,4 @@ struct unbounded_reference_allocation_traits
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_reference_allocation_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr.hpp
deleted file mode 100644
index fd1e9aac05b..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef guard_unbounded_sequence_cdr
-#define guard_unbounded_sequence_cdr
-/**
- * @file
- *
- * @brief Extract the sequence
- *
- * $Id$
- *
- * @author Carlos O'Ryan
- * @author Johnny Willemsen
- */
-
-#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-namespace TAO {
- namespace details {
- template <typename stream, typename sequence>
- bool extract_unbounded_sequence(stream & strm, sequence & target) {
- ::CORBA::ULong new_length;
- if (!(strm >> new_length)) {
- return false;
- }
- if (new_length > strm.length()) {
- return false;
- }
- sequence tmp(new_length);
- tmp.length(new_length);
- typename sequence::value_type * buffer = tmp.get_buffer();
- for(CORBA::ULong i = 0; i < new_length; ++i) {
- if (!(strm >> buffer[i])) {
- return false;
- }
- }
- tmp.swap(target);
- return true;
- }
-
- template <typename stream, typename sequence>
- bool insert_unbounded_sequence(stream & strm, const sequence & source) {
- const CORBA::ULong length = source.length ();
- if (!(strm << length)) {
- return false;
- }
- for(CORBA::ULong i = 0; i < length; ++i) {
- if (!(strm << source[i])) {
- return false;
- }
- }
- return true;
- }
- }
-}
-
-TAO_END_VERSIONED_NAMESPACE_DECL
-#endif /* guard_unbounded_sequence_cdr */
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr_ut.cpp
deleted file mode 100644
index 1a8dffbd1e9..00000000000
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_sequence_cdr_ut.cpp
+++ /dev/null
@@ -1,123 +0,0 @@
-/**
- * @file
- *
- * @brief Unit test for unbounded sequences of object references.
- *
- * $Id$
- *
- * @author Carlos O'Ryan
- */
-#include "testing_object_reference_traits.hpp"
-#include "object_reference_traits.hpp"
-#include "testing_allocation_traits.hpp"
-#include "testing_range_checking.hpp"
-
-#include "mock_reference.hpp"
-#include "mock_stream.hpp"
-
-#include "unbounded_object_reference_sequence.hpp"
-#include "unbounded_sequence_cdr.hpp"
-
-#include <boost/test/unit_test.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
-
-using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
-
-typedef unbounded_object_reference_sequence<mock_reference, mock_reference_var> tested_sequence;
-
-CORBA::Boolean operator<< (mock_stream &strm, const tested_sequence &sequence)
-{
- return TAO::details::insert_unbounded_sequence(strm, sequence);
-}
-
-CORBA::Boolean operator>> (mock_stream &strm, tested_sequence &sequence)
-{
- return TAO::details::extract_unbounded_sequence(strm, sequence);
-}
-
-struct Tester
-{
- typedef tested_sequence::value_type value_type;
- typedef tested_sequence::const_value_type const_value_type;
-
- typedef tested_sequence::element_traits tested_element_traits;
- typedef tested_sequence::allocation_traits tested_allocation_traits;
- typedef TAO::details::range_checking<value_type,true> range;
-
- value_type * alloc_and_init_buffer()
- {
- value_type * buf = tested_sequence::allocbuf(8);
- buf[0] = mock_reference::allocate(1);
- buf[1] = mock_reference::allocate(4);
- buf[2] = mock_reference::allocate(9);
- buf[3] = mock_reference::allocate(16);
-
- return buf;
- }
-
- void check_values(tested_sequence const & a)
- {
- BOOST_CHECK_EQUAL( 1, a[0]->id());
- BOOST_CHECK_EQUAL( 4, a[1]->id());
- BOOST_CHECK_EQUAL( 9, a[2]->id());
- BOOST_CHECK_EQUAL(16, a[3]->id());
- }
-
- void test_stream()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls s(mock_reference::serialize_calls);
- {
- tested_sequence a;
- a.replace(8, 4, buffer, false);
-
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(false, a.release());
- check_values(a);
-
- mock_stream stream;
- stream << a;
- BOOST_CHECK_MESSAGE(s.expect(4), s);
- }
- tested_sequence::freebuf(buffer);
- }
-
- void add_all(test_suite * ts)
- {
- boost::shared_ptr<Tester> shared_this(self_);
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_stream,
- shared_this));
- }
-
- static boost::shared_ptr<Tester> allocate()
- {
- boost::shared_ptr<Tester> ptr(new Tester);
- ptr->self_ = ptr;
-
- return ptr;
- }
-
-private:
- Tester() {}
-
- boost::weak_ptr<Tester> self_;
-};
-
-ACE_Proper_Export_Flag test_suite *
-init_unit_test_suite(int, char*[])
-{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded object reference sequence unit test");
-
- boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
-
- return ts;
-}
-
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence.hpp
index c54a430b494..5da4cb24829 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence.hpp
@@ -11,8 +11,6 @@
*/
#include "unbounded_basic_string_sequence.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -38,5 +36,4 @@ public:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_string_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp
index 61c93488a50..d6c1df23649 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_string_sequence_ut.cpp
@@ -22,7 +22,7 @@
#include <boost/weak_ptr.hpp>
using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
+using namespace TAO;
template<class tested_sequence>
struct Tester
@@ -382,7 +382,7 @@ struct Tester
{
value_type * buffer = alloc_and_init_buffer();
tested_sequence a(8, 4, buffer, false);
- BOOST_CHECK(0 == a.get_buffer(true));
+ BOOST_CHECK_EQUAL(static_cast<value_type*>(0), a.get_buffer(true));
tested_sequence::freebuf(buffer);
}
@@ -400,7 +400,6 @@ struct Tester
BOOST_CHECK_EQUAL(0UL, b.maximum());
BOOST_CHECK_EQUAL(0UL, b.length());
BOOST_CHECK(0 != b.get_buffer());
- BOOST_CHECK_EQUAL(true, b.release());
BOOST_CHECK_MESSAGE(c.expect(1), c);
@@ -412,32 +411,6 @@ struct Tester
BOOST_CHECK_MESSAGE(r.expect(8), r);
}
- void test_regression_2201()
- {
- value_type * buffer = alloc_and_init_buffer();
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- expected_calls r(tested_element_traits::release_calls);
- {
- tested_sequence a(8, 4, buffer);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(false, a.release());
- check_values(a);
- a.length (3);
- BOOST_CHECK_EQUAL(CORBA::ULong(3), a.length());
- a.length (4);
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK(helper::compare_empty(a[3]));
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- BOOST_CHECK_MESSAGE(r.expect(8), r);
- }
-
-
void add_all(test_suite * ts)
{
typedef string_sequence_tester<tested_sequence> common;
@@ -500,9 +473,6 @@ struct Tester
ts->add(BOOST_CLASS_TEST_CASE(
&Tester::test_get_buffer_true_with_release_true,
shared_this));
- ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_regression_2201,
- shared_this));
}
static boost::shared_ptr<Tester> allocate()
@@ -519,24 +489,24 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded string sequence unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("unbounded string sequence unit test"));
{
typedef Tester<unbounded_string_sequence> nTester;
boost::shared_ptr<nTester> tester(nTester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
typedef Tester<unbounded_wstring_sequence> wTester;
boost::shared_ptr<wTester> tester(wTester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_value_allocation_traits.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_value_allocation_traits.hpp
index 7b6b3598bf7..f61e9271d1a 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_value_allocation_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_value_allocation_traits.hpp
@@ -13,8 +13,6 @@
#include "tao/Basic_Types.h"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -49,5 +47,4 @@ struct unbounded_value_allocation_traits
} // namespace details
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_value_allocation_traits_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp
index 4702561423a..409db4dd883 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence.hpp
@@ -15,8 +15,6 @@
#include "value_traits.hpp"
#include "generic_sequence.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -25,7 +23,6 @@ class unbounded_value_sequence
{
public:
typedef T value_type;
- typedef T element_type;
typedef T const const_value_type;
typedef details::unbounded_value_allocation_traits<value_type,true> allocation_traits;
@@ -35,7 +32,7 @@ public:
inline unbounded_value_sequence()
: impl_()
{}
- inline explicit unbounded_value_sequence(CORBA::ULong maximum)
+ inline /* explicit */ unbounded_value_sequence(CORBA::ULong maximum)
: impl_(maximum)
{}
inline unbounded_value_sequence(
@@ -93,6 +90,5 @@ private:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_string_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp b/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp
index 3a2fb4bb193..6607e0f16c0 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_value_sequence_ut.cpp
@@ -20,7 +20,7 @@
#include <boost/weak_ptr.hpp>
using namespace boost::unit_test_framework;
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO;
+using namespace TAO;
typedef unbounded_value_sequence<int> tested_sequence;
typedef tested_sequence::element_traits tested_element_traits;
@@ -162,33 +162,6 @@ struct Tester
return buf;
}
- void test_regression_2201 ()
- {
- value_type * buffer = alloc_and_init_buffer();
-
- expected_calls a(tested_allocation_traits::allocbuf_calls);
- expected_calls f(tested_allocation_traits::freebuf_calls);
- {
- tested_sequence a(8, 4, buffer);
- BOOST_CHECK_EQUAL(CORBA::ULong(8), a.maximum());
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(buffer, a.get_buffer());
- BOOST_CHECK_EQUAL(int( 1), a[0]);
- BOOST_CHECK_EQUAL(int( 4), a[1]);
- BOOST_CHECK_EQUAL(int( 9), a[2]);
- BOOST_CHECK_EQUAL(int(16), a[3]);
- BOOST_CHECK_EQUAL(false, a.release());
- a.length (3);
- BOOST_CHECK_EQUAL(CORBA::ULong(3), a.length());
- a.length (4);
- BOOST_CHECK_EQUAL(CORBA::ULong(4), a.length());
- BOOST_CHECK_EQUAL(int(0), a[3]);
- }
- BOOST_CHECK_MESSAGE(a.expect(0), a);
- BOOST_CHECK_MESSAGE(f.expect(0), f);
- tested_sequence::freebuf(buffer);
- }
-
void test_buffer_constructor_default()
{
value_type * buffer = alloc_and_init_buffer();
@@ -347,7 +320,7 @@ struct Tester
{
value_type * buffer = alloc_and_init_buffer();
tested_sequence a(8, 4, buffer, false);
- BOOST_CHECK(0 == a.get_buffer(true));
+ BOOST_CHECK_EQUAL(static_cast<int*>(0), a.get_buffer(true));
tested_sequence::freebuf(buffer);
}
@@ -364,7 +337,6 @@ struct Tester
BOOST_CHECK_EQUAL(0UL, b.maximum());
BOOST_CHECK_EQUAL(0UL, b.length());
BOOST_CHECK(0 != b.get_buffer());
- BOOST_CHECK_EQUAL(true, b.release());
BOOST_CHECK_MESSAGE(c.expect(1), c);
@@ -408,10 +380,6 @@ struct Tester
shared_this));
ts->add(BOOST_CLASS_TEST_CASE(
- &Tester::test_regression_2201 ,
- shared_this));
-
- ts->add(BOOST_CLASS_TEST_CASE(
&Tester::test_buffer_constructor_default,
shared_this));
ts->add(BOOST_CLASS_TEST_CASE(
@@ -455,23 +423,23 @@ private:
boost::weak_ptr<Tester> self_;
};
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("unbounded value sequence unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("unbounded value sequence unit test"));
{
boost::shared_ptr<Tester> tester(Tester::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
typedef value_sequence_tester<tested_sequence,tested_allocation_traits> common;
boost::shared_ptr<common> tester(common::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
- return ts;
+ return ts.release();
}
diff --git a/TAO/tests/Sequence_Unit_Tests/unbounded_wstring_sequence.hpp b/TAO/tests/Sequence_Unit_Tests/unbounded_wstring_sequence.hpp
index 50a503e62b3..27b8e611167 100644
--- a/TAO/tests/Sequence_Unit_Tests/unbounded_wstring_sequence.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/unbounded_wstring_sequence.hpp
@@ -11,8 +11,6 @@
*/
#include "unbounded_basic_string_sequence.hpp"
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
@@ -38,5 +36,4 @@ public:
} // namespace TAO
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_unbounded_wstring_sequence_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/value_sequence_tester.hpp b/TAO/tests/Sequence_Unit_Tests/value_sequence_tester.hpp
index 02e88aad88e..2d936090ff6 100644
--- a/TAO/tests/Sequence_Unit_Tests/value_sequence_tester.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/value_sequence_tester.hpp
@@ -9,20 +9,16 @@
*
* @author Carlos O'Ryan
*/
-#include "tao/Basic_Types.h"
#include <boost/test/unit_test.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class tested_sequence,
class tested_allocation_traits>
struct value_sequence_tester
{
typedef typename tested_sequence::value_type value_type;
- typedef typename tested_sequence::const_value_type const_value_type;
void test_default_constructor()
{
@@ -70,7 +66,7 @@ struct value_sequence_tester
x.length(8);
tested_sequence const & y = x;
- const_value_type & z = y[4];
+ int const & z = y[4];
BOOST_CHECK_EQUAL(z, y[4]);
}
@@ -80,7 +76,7 @@ struct value_sequence_tester
x.length(8);
tested_sequence const & y = x;
- const_value_type & z = y[4];
+ int const & z = y[4];
x[4] = 4;
BOOST_CHECK_EQUAL(4, x[4]);
BOOST_CHECK_EQUAL(4, y[4]);
@@ -265,5 +261,4 @@ private:
boost::weak_ptr<value_sequence_tester> self_;
};
-TAO_END_VERSIONED_NAMESPACE_DECL
#endif // guard_value_sequence_tester_hpp
diff --git a/TAO/tests/Sequence_Unit_Tests/value_traits.hpp b/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
index 91bb20e8696..b491b8bdabd 100644
--- a/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
+++ b/TAO/tests/Sequence_Unit_Tests/value_traits.hpp
@@ -10,12 +10,9 @@
*
* @author Carlos O'Ryan
*/
-#include "tao/Basic_Types.h"
#include <algorithm>
-TAO_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace TAO
{
namespace details
@@ -28,16 +25,12 @@ struct value_traits
typedef T const const_value_type;
inline static void zero_range(
- value_type * begin , value_type * end)
- {
- std::fill(begin, end, value_type ());
- }
+ value_type * /* begin */, value_type * /* end */)
+ {}
inline static void initialize_range(
- value_type * begin, value_type * end)
- {
- std::fill(begin, end, value_type ());
- }
+ value_type * /* begin */, value_type * /* end */)
+ {}
inline static void copy_range(
value_type * begin, value_type * end, value_type *dst)
@@ -49,6 +42,4 @@ struct value_traits
} // namespace details
} // namespace CORBA
-TAO_END_VERSIONED_NAMESPACE_DECL
-
#endif // guard_value_traits_hpp
diff --git a/TAO/tests/Servant_To_Reference_Test/server.cpp b/TAO/tests/Servant_To_Reference_Test/server.cpp
index 65139d0cd63..fa92caadb7f 100644
--- a/TAO/tests/Servant_To_Reference_Test/server.cpp
+++ b/TAO/tests/Servant_To_Reference_Test/server.cpp
@@ -4,6 +4,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Hello,
server,
@@ -75,7 +76,7 @@ MT_Task::svc (void)
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -99,12 +100,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -124,7 +127,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
One_Impl *one_impl;
diff --git a/TAO/tests/Server_Connection_Purging/Server_Connection_Purging.mpc b/TAO/tests/Server_Connection_Purging/Server_Connection_Purging.mpc
index a50eda03b14..99546099606 100644
--- a/TAO/tests/Server_Connection_Purging/Server_Connection_Purging.mpc
+++ b/TAO/tests/Server_Connection_Purging/Server_Connection_Purging.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Server_Connection_Purging/client.cpp b/TAO/tests/Server_Connection_Purging/client.cpp
index 80d03ad751b..f6307a02c90 100644
--- a/TAO/tests/Server_Connection_Purging/client.cpp
+++ b/TAO/tests/Server_Connection_Purging/client.cpp
@@ -4,6 +4,7 @@
#include "ace/SOCK_Connector.h"
#include "ace/TP_Reactor.h"
#include "ace/Reactor.h"
+#include "ace/Argv_Type_Converter.h"
const char *host = "localhost";
static int port = 10008;
@@ -13,7 +14,7 @@ int purged_handles = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "h:p:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "h:p:");
int c;
while ((c = get_opts ()) != -1)
@@ -70,9 +71,11 @@ Purging_Handler::handle_close (ACE_HANDLE h,
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- if (parse_args (argc, argv) == -1)
+ ACE_Argv_Type_Converter convert (argc, argv);
+
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) == -1)
return -1;
ACE_Select_Reactor sr;
diff --git a/TAO/tests/Server_Connection_Purging/server.cpp b/TAO/tests/Server_Connection_Purging/server.cpp
index 52c7b5e6395..431410e2ee5 100644
--- a/TAO/tests/Server_Connection_Purging/server.cpp
+++ b/TAO/tests/Server_Connection_Purging/server.cpp
@@ -3,13 +3,14 @@
#include "Test_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
const char *ior_output_file = "server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "");
int c;
while ((c = get_opts ()) != -1)
@@ -28,14 +29,16 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -55,7 +58,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
test_i *test_impl;
@@ -73,7 +76,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Server_Leaks/Server_Leaks.mpc b/TAO/tests/Server_Leaks/Server_Leaks.mpc
index 4517bde0f91..6e565915472 100644
--- a/TAO/tests/Server_Leaks/Server_Leaks.mpc
+++ b/TAO/tests/Server_Leaks/Server_Leaks.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Server_Leaks/client.cpp b/TAO/tests/Server_Leaks/client.cpp
index c8263903192..aee5f7f75b7 100644
--- a/TAO/tests/Server_Leaks/client.cpp
+++ b/TAO/tests/Server_Leaks/client.cpp
@@ -2,6 +2,7 @@
#include "TestC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Server_Leaks, client, "$Id$")
@@ -11,7 +12,7 @@ int do_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x");
int c;
while ((c = get_opts ()) != -1)
@@ -40,15 +41,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Server_Leaks/server.cpp b/TAO/tests/Server_Leaks/server.cpp
index 0a037cdb95d..dd1e9ca6d17 100644
--- a/TAO/tests/Server_Leaks/server.cpp
+++ b/TAO/tests/Server_Leaks/server.cpp
@@ -3,6 +3,7 @@
#include "Ping_Service.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Server_Leaks, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Ping_Service *ping_service_impl;
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Server_Port_Zero/server.cpp b/TAO/tests/Server_Port_Zero/server.cpp
index 4375a5c4b06..4b151115b64 100644
--- a/TAO/tests/Server_Port_Zero/server.cpp
+++ b/TAO/tests/Server_Port_Zero/server.cpp
@@ -3,6 +3,7 @@
#include "Hello.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Server_Port_Zero,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -37,12 +38,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -62,7 +65,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Hello *hello_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Output the IOR to the <ior_output_file>
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Single_Read/Single_Read.mpc b/TAO/tests/Single_Read/Single_Read.mpc
index bfb96e8b536..4c15c26f959 100644
--- a/TAO/tests/Single_Read/Single_Read.mpc
+++ b/TAO/tests/Single_Read/Single_Read.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Single_Read/client.cpp b/TAO/tests/Single_Read/client.cpp
index 7e69d9350cf..7e50c036384 100644
--- a/TAO/tests/Single_Read/client.cpp
+++ b/TAO/tests/Single_Read/client.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
ACE_RCSID(Timed_Buffered_Oneways, client, "$Id$")
@@ -23,7 +24,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:i:d:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:i:d:x");
int c;
while ((c = get_opts ()) != -1)
@@ -69,22 +70,24 @@ parse_args (int argc, char **argv)
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/Single_Read/server.cpp b/TAO/tests/Single_Read/server.cpp
index 20af40930ea..7726dbc073a 100644
--- a/TAO/tests/Single_Read/server.cpp
+++ b/TAO/tests/Single_Read/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Timed_Buffered_Oneways, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,13 +36,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -76,7 +79,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Smart_Proxies/Benchmark/client.cpp b/TAO/tests/Smart_Proxies/Benchmark/client.cpp
index 44b0573c343..6867bd8560d 100644
--- a/TAO/tests/Smart_Proxies/Benchmark/client.cpp
+++ b/TAO/tests/Smart_Proxies/Benchmark/client.cpp
@@ -25,6 +25,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_errno.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Benchmark,
client,
@@ -47,7 +48,7 @@ class Marker
ACE_UINT32 gsf)
{
// Print stats
- this->throughput_.dump_results (msg, gsf);
+ this->throughput_.dump_results (ACE_TEXT_TO_TCHAR_IN(msg), gsf);
}
void sample (ACE_hrtime_t throughput_diff,
ACE_hrtime_t latency_diff)
@@ -66,7 +67,7 @@ class Marker
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:n:r:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:n:r:");
int c;
while ((c = get_opts ()) != -1)
@@ -95,8 +96,10 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int priority =
(ACE_Sched_Params::priority_min (ACE_SCHED_FIFO)
+ ACE_Sched_Params::priority_max (ACE_SCHED_FIFO)) / 2;
@@ -120,13 +123,13 @@ main (int argc, char *argv[])
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Smart_Proxies/Benchmark/server.cpp b/TAO/tests/Smart_Proxies/Benchmark/server.cpp
index ca2acbcbec2..53416a8fc49 100644
--- a/TAO/tests/Smart_Proxies/Benchmark/server.cpp
+++ b/TAO/tests/Smart_Proxies/Benchmark/server.cpp
@@ -19,6 +19,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Benchmark, server, "$Id$")
@@ -76,7 +77,7 @@ static const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -99,17 +100,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -145,7 +148,7 @@ main (int argc, char *argv[])
if (ior_output_file != 0)
{
FILE *output_file =
- ACE_OS::fopen (ior_output_file, "w");
+ ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Smart_Proxies/Collocation/main.cpp b/TAO/tests/Smart_Proxies/Collocation/main.cpp
index dff11cb451f..d0b32c908a6 100644
--- a/TAO/tests/Smart_Proxies/Collocation/main.cpp
+++ b/TAO/tests/Smart_Proxies/Collocation/main.cpp
@@ -2,16 +2,19 @@
#include "Coll_Tester.h"
#include "tao/Strategies/advanced_resource.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Collocation, main, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
Collocation_Test coll_test;
ACE_TRY_NEW_ENV
{
- coll_test.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ coll_test.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
coll_test.run (ACE_ENV_SINGLE_ARG_PARAMETER);
diff --git a/TAO/tests/Smart_Proxies/On_Demand/client.cpp b/TAO/tests/Smart_Proxies/On_Demand/client.cpp
index 2ba4e74ca80..953737c9b28 100644
--- a/TAO/tests/Smart_Proxies/On_Demand/client.cpp
+++ b/TAO/tests/Smart_Proxies/On_Demand/client.cpp
@@ -20,6 +20,7 @@
#include "ace/Get_Opt.h"
#include "testC.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Smart_Proxy, client, "$Id$")
@@ -28,7 +29,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:");
int c;
while ((c = get_opts ()) != -1)
@@ -51,18 +52,20 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Smart_Proxies/On_Demand/server.cpp b/TAO/tests/Smart_Proxies/On_Demand/server.cpp
index 5f0ebde1ffa..ba4cf4591d8 100644
--- a/TAO/tests/Smart_Proxies/On_Demand/server.cpp
+++ b/TAO/tests/Smart_Proxies/On_Demand/server.cpp
@@ -19,6 +19,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Smart_Proxy, server, "$Id$")
@@ -74,7 +75,7 @@ static const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -97,17 +98,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -143,7 +146,7 @@ main (int argc, char *argv[])
if (ior_output_file != 0)
{
FILE *output_file =
- ACE_OS::fopen (ior_output_file, "w");
+ ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Smart_Proxies/Policy/client.cpp b/TAO/tests/Smart_Proxies/Policy/client.cpp
index 6a0bb7ee459..e8853ed58ea 100644
--- a/TAO/tests/Smart_Proxies/Policy/client.cpp
+++ b/TAO/tests/Smart_Proxies/Policy/client.cpp
@@ -20,6 +20,7 @@
#include "ace/OS_NS_string.h"
#include "testC.h"
#include "Smart_Proxy_Impl.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Smart_Proxy, client, "$Id$")
@@ -30,7 +31,7 @@ int one_shot_factory = 1;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:j:f:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:j:f:");
int c;
while ((c = get_opts ()) != -1)
@@ -105,18 +106,20 @@ return 0;
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// To use the smart proxy it is necessary to allocate the
diff --git a/TAO/tests/Smart_Proxies/Policy/server.cpp b/TAO/tests/Smart_Proxies/Policy/server.cpp
index 7e000c323d3..aa32dd1a5b3 100644
--- a/TAO/tests/Smart_Proxies/Policy/server.cpp
+++ b/TAO/tests/Smart_Proxies/Policy/server.cpp
@@ -19,6 +19,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Smart_Proxy, server, "$Id$")
@@ -74,7 +75,7 @@ static const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -97,17 +98,19 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -143,7 +146,7 @@ main (int argc, char *argv[])
if (ior_output_file != 0)
{
FILE *output_file =
- ACE_OS::fopen (ior_output_file, "w");
+ ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Smart_Proxies/Smart_Proxies.mpc b/TAO/tests/Smart_Proxies/Smart_Proxies.mpc
index 473bc9b4087..d9d43ad9a29 100644
--- a/TAO/tests/Smart_Proxies/Smart_Proxies.mpc
+++ b/TAO/tests/Smart_Proxies/Smart_Proxies.mpc
@@ -8,7 +8,6 @@ project(*Server): taoserver, smart_proxies {
}
project(*Client): taoclient, portableserver, smart_proxies {
- after += *Server
Source_Files {
testC.cpp
Smart_Proxy_Impl.cpp
diff --git a/TAO/tests/Smart_Proxies/client.cpp b/TAO/tests/Smart_Proxies/client.cpp
index 158621d0a73..94dd6b472c0 100644
--- a/TAO/tests/Smart_Proxies/client.cpp
+++ b/TAO/tests/Smart_Proxies/client.cpp
@@ -21,6 +21,7 @@
#include "Smart_Proxy_Impl.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Smart_Proxy, client, "$Id$")
@@ -29,7 +30,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:");
int c;
while ((c = get_opts ()) != -1)
@@ -52,18 +53,20 @@ parse_args (int argc, char *argv[])
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Smart_Proxies/dtor/client.cpp b/TAO/tests/Smart_Proxies/dtor/client.cpp
index 5091bce84b5..9429a29675d 100644
--- a/TAO/tests/Smart_Proxies/dtor/client.cpp
+++ b/TAO/tests/Smart_Proxies/dtor/client.cpp
@@ -3,6 +3,7 @@
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
#include "Smart_Proxy_Impl.h"
@@ -12,7 +13,7 @@ bool dtor_called;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "i:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "i:");
int c;
while ((c = get_opts ()) != -1)
@@ -33,17 +34,19 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var obj = orb->string_to_object (ior
diff --git a/TAO/tests/Smart_Proxies/dtor/run_test.pl b/TAO/tests/Smart_Proxies/dtor/run_test.pl
index c6e2ba1ddbf..1c38e185287 100755
--- a/TAO/tests/Smart_Proxies/dtor/run_test.pl
+++ b/TAO/tests/Smart_Proxies/dtor/run_test.pl
@@ -13,22 +13,12 @@ $iorfile = PerlACE::LocalFile ("test.ior");
unlink $iorfile;
-if (PerlACE::is_vxworks_test()) {
- $SV = new PerlACE::ProcessVX ("server", "-o test.ior");
-}
-else {
- $SV = new PerlACE::Process ("server", "-o $iorfile");
-}
+$SV = new PerlACE::Process ("server", "-o $iorfile");
$CL = new PerlACE::Process ("client", "-i file://$iorfile");
print STDERR "\nrunning Smart Proxy test consisting of the client and the server\n\n";
-$svr = $SV->Spawn ();
-
-if ($svr != 0) {
- print STDERR "ERROR: server returned $svr\n";
- exit 1;
-}
+$SV->Spawn ();
if (PerlACE::waitforfile_timed ($iorfile,
$PerlACE::wait_interval_for_process_creation) == -1) {
diff --git a/TAO/tests/Smart_Proxies/dtor/server.cpp b/TAO/tests/Smart_Proxies/dtor/server.cpp
index fa9eadf988b..d37451d330e 100644
--- a/TAO/tests/Smart_Proxies/dtor/server.cpp
+++ b/TAO/tests/Smart_Proxies/dtor/server.cpp
@@ -3,6 +3,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
class Test_i: public virtual POA_Test
{
@@ -45,7 +46,7 @@ static const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -67,19 +68,21 @@ parse_args (int argc, char *argv[])
return 0;
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Obtain RootPOA.
@@ -120,7 +123,7 @@ int main (int argc, char* argv[])
if (ior_output_file != 0)
{
FILE *output_file =
- ACE_OS::fopen (ior_output_file, "w");
+ ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Smart_Proxies/server.cpp b/TAO/tests/Smart_Proxies/server.cpp
index 0fc44b24f0f..1e8efa70908 100644
--- a/TAO/tests/Smart_Proxies/server.cpp
+++ b/TAO/tests/Smart_Proxies/server.cpp
@@ -19,6 +19,7 @@
#include "testS.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Smart_Proxy, server, "$Id$")
@@ -74,7 +75,7 @@ static const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -97,19 +98,21 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
- CORBA::ORB_var orb = CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb = CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Test_i servant (orb.in ());
@@ -143,7 +146,7 @@ main (int argc, char *argv[])
if (ior_output_file != 0)
{
FILE *output_file =
- ACE_OS::fopen (ior_output_file, "w");
+ ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Stack_Recursion/Stack_Recursion.mpc b/TAO/tests/Stack_Recursion/Stack_Recursion.mpc
index ce10971c433..253a61435dc 100644
--- a/TAO/tests/Stack_Recursion/Stack_Recursion.mpc
+++ b/TAO/tests/Stack_Recursion/Stack_Recursion.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
TestC.cpp
client.cpp
diff --git a/TAO/tests/Stack_Recursion/client.cpp b/TAO/tests/Stack_Recursion/client.cpp
index b9db252871c..d5525d9bae9 100644
--- a/TAO/tests/Stack_Recursion/client.cpp
+++ b/TAO/tests/Stack_Recursion/client.cpp
@@ -2,6 +2,7 @@
#include "Client_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Stack_Recursion,
client,
@@ -12,7 +13,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,15 +36,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Stack_Recursion/server.cpp b/TAO/tests/Stack_Recursion/server.cpp
index 03dc154d085..0295980af7c 100644
--- a/TAO/tests/Stack_Recursion/server.cpp
+++ b/TAO/tests/Stack_Recursion/server.cpp
@@ -3,6 +3,7 @@
#include "Sender.h"
#include "Server_Task.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Stack_Recursion,
server,
@@ -13,7 +14,7 @@ const char *ior_output_file = "test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,12 +37,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -61,7 +64,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Sender *sender_impl;
@@ -80,7 +83,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Strategies/Strategies.mpc b/TAO/tests/Strategies/Strategies.mpc
index 32f5969e832..94da5a64615 100644
--- a/TAO/tests/Strategies/Strategies.mpc
+++ b/TAO/tests/Strategies/Strategies.mpc
@@ -9,7 +9,6 @@ project(*Server): strategies, messaging, taoexe, portableserver {
}
project(*Client): strategies, messaging, taoexe, portableserver {
- after += *Server
Source_Files {
simple_testC.cpp
client.cpp
diff --git a/TAO/tests/Strategies/client.cpp b/TAO/tests/Strategies/client.cpp
index a554f94fea5..5cf2094c1a7 100644
--- a/TAO/tests/Strategies/client.cpp
+++ b/TAO/tests/Strategies/client.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
#include "simple_testC.h"
ACE_RCSID(tests, client, "$Id$")
@@ -12,7 +13,7 @@ int server_shutdown = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x");
int c;
while ((c = get_opts ()) != -1)
@@ -62,15 +63,17 @@ Client::Client ()
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Strategies/server.cpp b/TAO/tests/Strategies/server.cpp
index 9e1de742de4..06c4a905ae0 100644
--- a/TAO/tests/Strategies/server.cpp
+++ b/TAO/tests/Strategies/server.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "simple_test_i.h"
ACE_RCSID(tests, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
Simple_Server_i server_impl (orb.in ());
@@ -77,7 +80,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Timed_Buffered_Oneways/Timed_Buffered_Oneways.mpc b/TAO/tests/Timed_Buffered_Oneways/Timed_Buffered_Oneways.mpc
index 1bd7978c70a..cabea05ca6b 100644
--- a/TAO/tests/Timed_Buffered_Oneways/Timed_Buffered_Oneways.mpc
+++ b/TAO/tests/Timed_Buffered_Oneways/Timed_Buffered_Oneways.mpc
@@ -9,7 +9,6 @@ project(*Server): messaging, taoexe, portableserver {
}
project(*Client): messaging, taoexe, portableserver {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Timed_Buffered_Oneways/client.cpp b/TAO/tests/Timed_Buffered_Oneways/client.cpp
index 9878f57d8b8..f4720bbfd22 100644
--- a/TAO/tests/Timed_Buffered_Oneways/client.cpp
+++ b/TAO/tests/Timed_Buffered_Oneways/client.cpp
@@ -23,6 +23,7 @@
#include "ace/Get_Opt.h"
#include "ace/Read_Buffer.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Timed_Buffered_Oneways, client, "$Id$")
@@ -54,7 +55,7 @@ static int shutdown_server = 0;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "ek:i:d:t:w:z:x");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "ek:i:d:t:w:z:x");
int c;
while ((c = get_opts ()) != -1)
@@ -237,22 +238,24 @@ setup_buffering_constraints (CORBA::ORB_ptr orb
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Initialize the ORB.
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Initialize options based on command-line arguments.
- int parse_args_result = parse_args (argc, argv);
+ int parse_args_result = parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (parse_args_result != 0)
return parse_args_result;
diff --git a/TAO/tests/Timed_Buffered_Oneways/server.cpp b/TAO/tests/Timed_Buffered_Oneways/server.cpp
index 20af40930ea..7726dbc073a 100644
--- a/TAO/tests/Timed_Buffered_Oneways/server.cpp
+++ b/TAO/tests/Timed_Buffered_Oneways/server.cpp
@@ -3,6 +3,7 @@
#include "ace/Get_Opt.h"
#include "test_i.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Timed_Buffered_Oneways, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -35,13 +36,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -60,7 +63,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
test_i servant (orb.in ());
@@ -76,7 +79,7 @@ main (int argc, char *argv[])
ACE_DEBUG ((LM_DEBUG, "Activated as <%s>\n", ior.in ()));
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Timeout/Timeout.mpc b/TAO/tests/Timeout/Timeout.mpc
index 5826c607d6e..926002380e8 100644
--- a/TAO/tests/Timeout/Timeout.mpc
+++ b/TAO/tests/Timeout/Timeout.mpc
@@ -9,7 +9,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, messaging {
- after += *Server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/Timeout/client.cpp b/TAO/tests/Timeout/client.cpp
index 7d0ff876ea7..f07ee0b618a 100644
--- a/TAO/tests/Timeout/client.cpp
+++ b/TAO/tests/Timeout/client.cpp
@@ -5,6 +5,7 @@
#include "tao/Messaging/Messaging.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Timeout, client, "$Id$")
@@ -15,7 +16,7 @@ int max_timeout = 20;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:l:h:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:l:h:");
int c;
while ((c = get_opts ()) != -1)
@@ -86,15 +87,17 @@ send_echo (CORBA::ORB_ptr orb,
}
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var object =
diff --git a/TAO/tests/Timeout/server.cpp b/TAO/tests/Timeout/server.cpp
index 3fd05a6c9db..2c5a8ebf7d6 100644
--- a/TAO/tests/Timeout/server.cpp
+++ b/TAO/tests/Timeout/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Timeout, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -36,15 +37,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var poa_object =
@@ -79,7 +82,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Two_Objects/First_i.cpp b/TAO/tests/Two_Objects/First_i.cpp
index b275e55e0be..6e0c6e2c465 100644
--- a/TAO/tests/Two_Objects/First_i.cpp
+++ b/TAO/tests/Two_Objects/First_i.cpp
@@ -7,9 +7,8 @@
#include "tao/debug.h"
#include "tao/Transport_Cache_Manager.h"
#include "ace/Synch.h"
-#include "ace/Auto_Event.h"
-ACE_RCSID(Test, First_i, "$Id$")
+ACE_RCSID(Test, Test, "$Id$")
First_i::First_i (CORBA::ORB_ptr orb, ACE_Auto_Event &two_way_done)
: orb_ (CORBA::ORB::_duplicate (orb)),
diff --git a/TAO/tests/Two_Objects/First_i.h b/TAO/tests/Two_Objects/First_i.h
index 6fa70f53749..9273bf283cb 100644
--- a/TAO/tests/Two_Objects/First_i.h
+++ b/TAO/tests/Two_Objects/First_i.h
@@ -1,16 +1,13 @@
-// -*- C++ -*-
//
// $Id$
+//
#ifndef TAO_TWO_OBJECTS_FIRST_I_H
#define TAO_TWO_OBJECTS_FIRST_I_H
#include "Two_ObjectsS.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Auto_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/Auto_Event.h"
/// Implement the Two_Objects_Test::First interface
class First_i
diff --git a/TAO/tests/Two_Objects/Object_Factory_i.h b/TAO/tests/Two_Objects/Object_Factory_i.h
index fbfd2ef094c..2eab1c9966f 100644
--- a/TAO/tests/Two_Objects/Object_Factory_i.h
+++ b/TAO/tests/Two_Objects/Object_Factory_i.h
@@ -1,6 +1,6 @@
-// -*- C++ -*-
//
// $Id$
+//
#ifndef OBJECT_FACTORY_I_H
#define OBJECT_FACTORY_I_H
@@ -9,8 +9,7 @@
#include "First_i.h"
#include "Second_i.h"
-#include "ace/Auto_Event.h"
-
+class ACE_Event;
/// Implement the MTServer::Test interface
class Object_Factory_i
diff --git a/TAO/tests/Two_Objects/Second_i.h b/TAO/tests/Two_Objects/Second_i.h
index aa0375c9b2f..30a6f0d2e09 100644
--- a/TAO/tests/Two_Objects/Second_i.h
+++ b/TAO/tests/Two_Objects/Second_i.h
@@ -1,15 +1,13 @@
-// -*- C++ -*-
//
// $Id$
+//
#ifndef TAO_TWO_OBJECTS_SECOND_I_H
#define TAO_TWO_OBEJCTS_SECOND_I_H
#include "Two_ObjectsS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Auto_Event;
-ACE_END_VERSIONED_NAMESPACE_DECL
/// Implement the POA_Two_Objects_Test::Second interface
class Second_i
diff --git a/TAO/tests/Two_Objects/Two_Objects.mpc b/TAO/tests/Two_Objects/Two_Objects.mpc
index 1dbe304222f..de36db49c6a 100644
--- a/TAO/tests/Two_Objects/Two_Objects.mpc
+++ b/TAO/tests/Two_Objects/Two_Objects.mpc
@@ -12,7 +12,6 @@ project(*Server): taoserver {
}
project(*Client): taoclient, anytypecode {
- after += *Server
Source_Files {
Two_ObjectsC.cpp
client.cpp
diff --git a/TAO/tests/Two_Objects/client.cpp b/TAO/tests/Two_Objects/client.cpp
index d93a387409a..2a0d3b7a888 100644
--- a/TAO/tests/Two_Objects/client.cpp
+++ b/TAO/tests/Two_Objects/client.cpp
@@ -2,6 +2,7 @@
#include "Two_ObjectsC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Test, client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://test.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "r:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "r:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,8 +35,10 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// Used to declare the CORBA::Environment variable
ACE_DECLARE_NEW_CORBA_ENV;
@@ -43,11 +46,11 @@ main (int argc, char *argv[])
{
// Initialize the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Parse the arguments
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
// Convert the ior string to an object reference.
diff --git a/TAO/tests/Two_Objects/server.cpp b/TAO/tests/Two_Objects/server.cpp
index 639cb344ab8..b05eaea3dca 100644
--- a/TAO/tests/Two_Objects/server.cpp
+++ b/TAO/tests/Two_Objects/server.cpp
@@ -4,6 +4,7 @@
#include "Object_Factory_i.h"
#include "ace/Get_Opt.h"
#include "ace/Task.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Test, server, "$Id$")
@@ -16,7 +17,7 @@ int timeout = 30; //default timeout for ORB is 30 sec
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:n:l:t:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:n:l:t:");
int c;
while ((c = get_opts ()) != -1)
@@ -55,13 +56,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
// Initialize the ORB
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
// Get initial reference to the Root POA
@@ -85,7 +88,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// Parse the arguments
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
ACE_DEBUG(( LM_DEBUG, "ior file = %s\t#threads = %d\t"
@@ -111,7 +114,7 @@ main (int argc, char *argv[])
ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/TAO/tests/Typedef_String_Array/client.cpp b/TAO/tests/Typedef_String_Array/client.cpp
index 4637dc4b943..2579a631234 100644
--- a/TAO/tests/Typedef_String_Array/client.cpp
+++ b/TAO/tests/Typedef_String_Array/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(StringArray, client, "$Id$")
@@ -10,7 +11,7 @@ const char *ior = "file://server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,15 +35,17 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
CORBA::Object_var tmp =
diff --git a/TAO/tests/Typedef_String_Array/server.cpp b/TAO/tests/Typedef_String_Array/server.cpp
index 51f5f7792af..646f695570c 100644
--- a/TAO/tests/Typedef_String_Array/server.cpp
+++ b/TAO/tests/Typedef_String_Array/server.cpp
@@ -2,6 +2,7 @@
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
#include "testImpl.h"
ACE_RCSID(MT_Client, server, "$Id$")
@@ -11,7 +12,7 @@ const char *ior_output_file = "server.ior";
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -34,12 +35,14 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
ACE_TRY_NEW_ENV
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -59,7 +62,7 @@ main (int argc, char *argv[])
root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
TestImpl test_impl (orb.in ());
@@ -76,7 +79,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Typedef_String_Array/typedef_string_array.mpc b/TAO/tests/Typedef_String_Array/typedef_string_array.mpc
index a28ade36239..3124c65910a 100644
--- a/TAO/tests/Typedef_String_Array/typedef_string_array.mpc
+++ b/TAO/tests/Typedef_String_Array/typedef_string_array.mpc
@@ -9,7 +9,6 @@ project(*server): taoserver {
}
project(*client): taoclient, anytypecode {
- after += *server
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc b/TAO/tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc
index 0fe69a4a621..91fc9d79183 100644
--- a/TAO/tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc
+++ b/TAO/tests/UNKNOWN_Exception/UNKNOWN_Exception.mpc
@@ -2,13 +2,14 @@
// $Id$
project(*Server): taoserver, exceptions {
+ idlflags = -Ge 0
Source_Files {
server.cpp
}
}
project(*Client): taoclient, anytypecode, exceptions {
- after += *Server
+ idlflags = -Ge 0
Source_Files {
testC.cpp
client.cpp
diff --git a/TAO/tests/UNKNOWN_Exception/client.cpp b/TAO/tests/UNKNOWN_Exception/client.cpp
index 548b4b99e94..5735c1278ff 100644
--- a/TAO/tests/UNKNOWN_Exception/client.cpp
+++ b/TAO/tests/UNKNOWN_Exception/client.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testC.h"
ACE_RCSID (UNKNOWN_Exception, client, "$Id$")
@@ -11,7 +12,7 @@ static int shutdown_server = 1;
static int
parse_args (int argc, char **argv)
{
- ACE_Get_Opt get_opts (argc, argv, "k:x:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:x:");
int c;
while ((c = get_opts ()) != -1)
@@ -42,17 +43,19 @@ parse_args (int argc, char **argv)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
0);
int result =
- parse_args (argc, argv);
+ parse_args (convert.get_argc(), convert.get_ASCII_argv());
if (result != 0)
return result;
diff --git a/TAO/tests/UNKNOWN_Exception/server.cpp b/TAO/tests/UNKNOWN_Exception/server.cpp
index 2beb08f85fa..0d5321adee3 100644
--- a/TAO/tests/UNKNOWN_Exception/server.cpp
+++ b/TAO/tests/UNKNOWN_Exception/server.cpp
@@ -1,6 +1,7 @@
// $Id$
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "testS.h"
#include "tao/PortableServer/Root_POA.h"
#include "ace/OS_NS_stdio.h"
@@ -160,7 +161,7 @@ test_factory_i::shutdown (void)
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -184,13 +185,15 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
"");
CORBA::Object_var poa_object =
@@ -202,7 +205,7 @@ main (int argc, char *argv[])
PortableServer::POAManager_var poa_manager =
root_poa->the_POAManager ();
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return -1;
{
@@ -218,7 +221,7 @@ main (int argc, char *argv[])
CORBA::String_var ior =
orb->object_to_string (test_factory.in ());
- FILE *output_file = ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file = ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tests/Xt_Stopwatch/Client.h b/TAO/tests/Xt_Stopwatch/Client.h
index 978e0f3c3b1..69f573d0d52 100644
--- a/TAO/tests/Xt_Stopwatch/Client.h
+++ b/TAO/tests/Xt_Stopwatch/Client.h
@@ -47,7 +47,7 @@ public:
void add_callback (Control &);
// Adds the callbacks to the GUI underneath.....
- void parse_args (int argc, char *argv[]
+ void parse_args (int argc, ACE_TCHAR *argv[]
ACE_ENV_ARG_DECL);
private:
diff --git a/TAO/tests/Xt_Stopwatch/Xt_Stopwatch.mpc b/TAO/tests/Xt_Stopwatch/Xt_Stopwatch.mpc
index cbfa1580e94..d98e1e04898 100644
--- a/TAO/tests/Xt_Stopwatch/Xt_Stopwatch.mpc
+++ b/TAO/tests/Xt_Stopwatch/Xt_Stopwatch.mpc
@@ -11,7 +11,6 @@ project(*Server): taoexe, portableserver, tao_xtresource, ace_motif {
}
project(*Client): taoexe, tao_xtresource, ace_motif {
- after += *Server
Source_Files {
testC.cpp
Control.cpp
diff --git a/TAO/tests/Xt_Stopwatch/client.cpp b/TAO/tests/Xt_Stopwatch/client.cpp
index 713ddb68f84..e1a40aeb2b1 100644
--- a/TAO/tests/Xt_Stopwatch/client.cpp
+++ b/TAO/tests/Xt_Stopwatch/client.cpp
@@ -2,6 +2,7 @@
#include "testC.h"
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Xt_Stopwatch, client, "$Id$")
@@ -10,8 +11,10 @@ ACE_RCSID(Xt_Stopwatch, client, "$Id$")
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
XtAppContext app;
Widget toplevel = XtAppInitialize (&app,
"Start & Stop",
@@ -32,12 +35,12 @@ main (int argc, char *argv[])
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
Client client (orb.in ());
- client.parse_args (argc, argv ACE_ENV_ARG_PARAMETER);
+ client.parse_args (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
client.add_callback (control);
@@ -72,7 +75,7 @@ Client::parse_args (int argc,
{
const char *ior = "file://test.ior";
- ACE_Get_Opt get_opts (argc, argv, "k:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:");
int c;
while ((c = get_opts ()) != -1)
diff --git a/TAO/tests/Xt_Stopwatch/server.cpp b/TAO/tests/Xt_Stopwatch/server.cpp
index 374dcb368f0..0301e39050d 100644
--- a/TAO/tests/Xt_Stopwatch/server.cpp
+++ b/TAO/tests/Xt_Stopwatch/server.cpp
@@ -3,6 +3,7 @@
#include "test_i.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID (Xt_Stopwatch,
server,
@@ -18,7 +19,7 @@ const char *ior_output_file = 0;
int
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:");
int c;
while ((c = get_opts ()) != -1)
@@ -42,10 +43,12 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// We do the command line parsing first
- if (parse_args (argc, argv) != 0)
+ if (parse_args (convert.get_argc(), convert.get_ASCII_argv()) != 0)
return 1;
XtAppContext app;
@@ -68,7 +71,7 @@ main (int argc, char *argv[])
ACE_TRY
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (convert.get_argc(), convert.get_ASCII_argv(), "" ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
CORBA::Object_var poa_object =
@@ -108,7 +111,7 @@ main (int argc, char *argv[])
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
{
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
if (output_file == 0)
ACE_ERROR_RETURN ((LM_ERROR,
"Cannot open output file for writing IOR: %s",
diff --git a/TAO/tools.mwc b/TAO/tools.mwc
new file mode 100644
index 00000000000..724c562ca33
--- /dev/null
+++ b/TAO/tools.mwc
@@ -0,0 +1,5 @@
+workspace {
+ ../ace
+ ../apps/gperf
+ TAO_IDL
+}
diff --git a/TAO/utils/NamingViewer/BindDialog.cpp b/TAO/utils/NamingViewer/BindDialog.cpp
index a7a0c2b7cdb..7d0af9359eb 100644
--- a/TAO/utils/NamingViewer/BindDialog.cpp
+++ b/TAO/utils/NamingViewer/BindDialog.cpp
@@ -54,11 +54,11 @@ void CBindDialog::OnViewior()
try
{
UpdateData();
- m_Object = m_pORB->string_to_object(ACE_TEXT_ALWAYS_CHAR (m_IOR));
+ m_Object = m_pORB->string_to_object(ACE_TEXT_TO_CHAR_IN (m_IOR));
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
return;
}
ViewIORDialog Dialog(m_pORB, m_Object);
@@ -87,15 +87,15 @@ void CBindDialog::OnOK()
// TODO: Add extra validation here
UpdateData();
m_Name.length(1);
- m_Name[0].id = CORBA::string_dup(ACE_TEXT_ALWAYS_CHAR (m_ID));
- m_Name[0].kind = CORBA::string_dup(ACE_TEXT_ALWAYS_CHAR (m_Kind));
+ m_Name[0].id = CORBA::string_dup(m_ID);
+ m_Name[0].kind = CORBA::string_dup(m_Kind);
try
{
- m_Object = m_pORB->string_to_object(ACE_TEXT_ALWAYS_CHAR (m_IOR));
+ m_Object = m_pORB->string_to_object(ACE_TEXT_TO_CHAR_IN (m_IOR));
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("Invalid IOR"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("Invalid IOR"));
return;
}
CDialog::OnOK();
diff --git a/TAO/utils/NamingViewer/BindNewContext.cpp b/TAO/utils/NamingViewer/BindNewContext.cpp
index a846fa6cf3c..f0deb874b4e 100644
--- a/TAO/utils/NamingViewer/BindNewContext.cpp
+++ b/TAO/utils/NamingViewer/BindNewContext.cpp
@@ -48,7 +48,7 @@ void CBindNewContext::OnOK()
// TODO: Add extra validation here
UpdateData();
m_Name.length(1);
- m_Name[0].id = CORBA::string_dup(ACE_TEXT_ALWAYS_CHAR (m_ID));
- m_Name[0].kind = CORBA::string_dup(ACE_TEXT_ALWAYS_CHAR (m_Kind));
+ m_Name[0].id = CORBA::string_dup(m_ID);
+ m_Name[0].kind = CORBA::string_dup(m_Kind);
CDialog::OnOK();
}
diff --git a/TAO/utils/NamingViewer/NamingTreeCtrl.cpp b/TAO/utils/NamingViewer/NamingTreeCtrl.cpp
index 112d769ee01..fcbbb7e3903 100644
--- a/TAO/utils/NamingViewer/NamingTreeCtrl.cpp
+++ b/TAO/utils/NamingViewer/NamingTreeCtrl.cpp
@@ -186,7 +186,7 @@ void CNamingTreeCtrl::ListContext(HTREEITEM hItem)
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -237,7 +237,7 @@ void CNamingTreeCtrl::OnContextPopupUnbind()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -286,7 +286,7 @@ void CNamingTreeCtrl::OnContextPopupDestroy()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -317,7 +317,7 @@ void CNamingTreeCtrl::OnContextPopupBindContext()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -343,7 +343,7 @@ void CNamingTreeCtrl::OnContextPopupBindobject()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -381,7 +381,7 @@ void CNamingTreeCtrl::OnContextpopupBindnewcontext()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -418,7 +418,7 @@ void CNamingTreeCtrl::OnCopy()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -461,7 +461,7 @@ void CNamingTreeCtrl::OnObjectpopupUnbind()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
@@ -513,7 +513,7 @@ void CNamingTreeCtrl::ListBindingList(HTREEITEM hItem, CosNaming::NamingContext_
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
diff --git a/TAO/utils/NamingViewer/NamingViewer.cpp b/TAO/utils/NamingViewer/NamingViewer.cpp
index 2f86a0d3a4a..d5025fc2186 100644
--- a/TAO/utils/NamingViewer/NamingViewer.cpp
+++ b/TAO/utils/NamingViewer/NamingViewer.cpp
@@ -57,7 +57,7 @@ BOOL CNamingViewerApp::InitInstance()
#endif
// Parse command line arguments so we can initialize ORB with them
- ACE_ARGV Argv(ACE_TEXT_CHAR_TO_TCHAR(m_lpCmdLine));
+ ACE_ARGV Argv(ACE_TEXT_TO_TCHAR_IN(m_lpCmdLine));
ACE::init();
{
diff --git a/TAO/utils/NamingViewer/NamingViewerDlg.cpp b/TAO/utils/NamingViewer/NamingViewerDlg.cpp
index 0e7520cf8db..2a27722a583 100644
--- a/TAO/utils/NamingViewer/NamingViewerDlg.cpp
+++ b/TAO/utils/NamingViewer/NamingViewerDlg.cpp
@@ -219,7 +219,7 @@ void CNamingViewerDlg::OnSelectNs()
}
try
{
- CORBA::Object_var Object = m_pORB->string_to_object(ACE_TEXT_ALWAYS_CHAR (Dialog.GetIOR()));
+ CORBA::Object_var Object = m_pORB->string_to_object(ACE_TEXT_TO_CHAR_IN (Dialog.GetIOR()));
m_RootContext = CosNaming::NamingContext::_narrow(Object);
m_Server = Dialog.GetName();
UpdateData(FALSE);
@@ -227,7 +227,7 @@ void CNamingViewerDlg::OnSelectNs()
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
diff --git a/TAO/utils/NamingViewer/ViewIORDialog.cpp b/TAO/utils/NamingViewer/ViewIORDialog.cpp
index f7724f02d70..4c9cfc22537 100644
--- a/TAO/utils/NamingViewer/ViewIORDialog.cpp
+++ b/TAO/utils/NamingViewer/ViewIORDialog.cpp
@@ -69,12 +69,12 @@ void ViewIORDialog::OnApply()
UpdateData();
try
{
- m_Object = m_pORB->string_to_object(ACE_TEXT_ALWAYS_CHAR (m_IOR));
+ m_Object = m_pORB->string_to_object(ACE_TEXT_TO_CHAR_IN (m_IOR));
DecodeIOR();
}
catch(CORBA::Exception& ex)
{
- MessageBox(ACE_TEXT_CHAR_TO_TCHAR (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
+ MessageBox(ACE_TEXT_TO_TCHAR_IN (ex._rep_id()), ACE_TEXT ("CORBA::Exception"));
}
}
diff --git a/TAO/utils/catior/Makefile.am b/TAO/utils/catior/Makefile.am
index 9fab743729d..628ec431bcd 100644
--- a/TAO/utils/catior/Makefile.am
+++ b/TAO/utils/catior/Makefile.am
@@ -24,9 +24,7 @@ catior_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
+ -I$(TAO_BUILDDIR)
catior_SOURCES = \
catior.cpp
@@ -35,7 +33,6 @@ catior_LDADD = \
$(TAO_BUILDDIR)/tao/libTAO_RTCORBA.la \
$(TAO_BUILDDIR)/tao/libTAO_PI.la \
$(TAO_BUILDDIR)/tao/libTAO_CodecFactory.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
$(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
$(TAO_BUILDDIR)/tao/libTAO.la \
$(ACE_BUILDDIR)/ace/libACE.la
diff --git a/TAO/utils/catior/catior.cpp b/TAO/utils/catior/catior.cpp
index 4a53e5683d3..ca13c9d0cf1 100644
--- a/TAO/utils/catior/catior.cpp
+++ b/TAO/utils/catior/catior.cpp
@@ -18,27 +18,25 @@
//
// ============================================================================
+#include "ace/Codeset_Registry.h"
+#include "ace/Get_Opt.h"
+#include "ace/streams.h"
+#include "ace/OS_NS_ctype.h"
+#include "ace/OS_NS_stdio.h"
+#include "ace/Argv_Type_Converter.h"
+#include "tao/corba.h"
+#include "tao/IIOP_Profile.h"
#include "tao/Messaging_PolicyValueC.h"
#include "tao/Messaging/Messaging_RT_PolicyC.h"
#include "tao/Messaging/Messaging_SyncScope_PolicyC.h"
#include "tao/Messaging/Messaging_No_ImplC.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "tao/AnyTypeCode/Marshal.h"
-#include "tao/IIOP_Profile.h"
-#include "tao/ORB_Constants.h"
#include "tao/Transport_Acceptor.h"
#include "tao/IIOP_EndpointsC.h"
-#include "tao/CDR.h"
-#include "ace/Codeset_Registry.h"
-#include "ace/Get_Opt.h"
-#include "ace/streams.h"
-#include "ace/OS_NS_ctype.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/Argv_Type_Converter.h"
-#include "ace/Log_Msg.h"
-#include "orbsvcs/CosNamingC.h"
-CORBA::Boolean
+
+static CORBA::Boolean
catiiop (char* string
ACE_ENV_ARG_DECL)
{
@@ -83,6 +81,7 @@ catiiop (char* string
// Pull off the "hostname:port/" part of the objref Get host and
// port.
CORBA::UShort port_number;
+ char* hostname;
char *cp = ACE_OS::strchr (string, ':');
if (cp == 0)
@@ -90,9 +89,9 @@ catiiop (char* string
ACE_THROW_RETURN (CORBA::DATA_CONVERSION (), 0);
}
- CORBA::String_var hostname = CORBA::string_alloc (1 + cp - string);
+ hostname = CORBA::string_alloc (1 + cp - string);
- for (cp = hostname.inout ();
+ for (cp = hostname;
*string != ':';
*cp++ = *string++)
continue;
@@ -104,6 +103,7 @@ catiiop (char* string
if (cp == 0)
{
+ CORBA::string_free (hostname);
ACE_THROW_RETURN (CORBA::DATA_CONVERSION (), 0);
}
@@ -112,10 +112,11 @@ catiiop (char* string
ACE_DEBUG ((LM_DEBUG,
"Host Name:\t%s\n",
- hostname.in ()));
+ hostname));
ACE_DEBUG ((LM_DEBUG,
"Port Number:\t%d\n",
port_number));
+ CORBA::string_free (hostname);
// Parse the object key.
// dump the object key to stdout
@@ -127,32 +128,32 @@ catiiop (char* string
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_iiop_profile (TAO_InputCDR& cdr);
-CORBA::Boolean
+static CORBA::Boolean
cat_sciop_profile (TAO_InputCDR& cdr);
-CORBA::Boolean
+static CORBA::Boolean
cat_uiop_profile (TAO_InputCDR& cdr);
-CORBA::Boolean
+static CORBA::Boolean
cat_shmiop_profile (TAO_InputCDR& cdr);
-CORBA::Boolean
+static CORBA::Boolean
cat_nskpw_profile (TAO_InputCDR& cdr);
static CORBA::Boolean
cat_nskfs_profile (TAO_InputCDR& cdr);
-CORBA::Boolean
+static CORBA::Boolean
cat_octet_seq (const char *object_name,
TAO_InputCDR& stream);
-CORBA::Boolean
+static CORBA::Boolean
cat_profile_helper(TAO_InputCDR& stream, const char *protocol);
-CORBA::Boolean
+static CORBA::Boolean
catior (char* str
ACE_ENV_ARG_DECL_NOT_USED)
{
@@ -204,9 +205,9 @@ catior (char* str
// First, read the type hint. This will be the type_id encoded in an
// object reference.
- CORBA::String_var type_hint;
+ char* type_hint;
- if (!(stream >> type_hint.inout ()))
+ if (!(stream >> type_hint))
{
ACE_DEBUG ((LM_DEBUG,
"cannot read type id\n"));
@@ -215,7 +216,10 @@ catior (char* str
ACE_DEBUG ((LM_DEBUG,
"The Type Id:\t\"%s\"\n",
- type_hint.in ()));
+ type_hint));
+
+ // Release any memory associated with the type_hint.
+ CORBA::string_free (type_hint);
// Read the profiles, discarding all until an IIOP profile comes by.
// Once we see an IIOP profile, ignore any further ones.
@@ -332,7 +336,7 @@ catior (char* str
// : IR_server
// : interface_marker
-CORBA::Boolean
+static CORBA::Boolean
catpoop (char* string
ACE_ENV_ARG_DECL)
{
@@ -457,290 +461,81 @@ ACE_TMAIN (int argcw, ACE_TCHAR *argvw[])
argcon.get_ASCII_argv (),
"TAO" ACE_ENV_ARG_PARAMETER);
CORBA::Boolean b = 0;
- CORBA::Boolean have_argument = 0;
int opt;
- ACE_Get_Opt get_opt (argcon.get_argc (), argcon.get_TCHAR_argv (),
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argcon.get_argc (), argcon.get_TCHAR_argv (),
ACE_TEXT ("f:n:x"));
while ((opt = get_opt ()) != EOF)
{
- // some arguments have been supplied
- have_argument = 1;
switch (opt)
{
case 'n':
- {
- // Read the CosName from the NamingService convert the
- // object_ptr to a CORBA::String_var via the call to
- // object_to_string.
- ACE_DEBUG ((LM_DEBUG,
- "opening a connection to the NamingService\n"
- "resolving the CosName %s\n",
- get_opt.opt_arg ()));
-
- CORBA::Object_var server_object;
-
- ACE_TRY
- {
- // Find the Naming Service.
- CORBA::Object_var naming_context_object =
- orb_var->resolve_initial_references ("NameService"
- ACE_ENV_ARG_PARAMETER);
- CosNaming::NamingContextExt_var naming_context =
- CosNaming::NamingContextExt::_narrow (naming_context_object.in ()
- ACE_ENV_ARG_PARAMETER);
-
- if (CORBA::is_nil (naming_context.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "NameService cannot be resolved\n"),
- -1);
- }
-
- CosNaming::Name *name =
- naming_context->to_name (get_opt.opt_arg ()
- ACE_ENV_ARG_PARAMETER);
-
- ACE_TRY_EX (RESOLUTION)
- {
- server_object = naming_context->resolve (*name
- ACE_ENV_ARG_PARAMETER);
- if (CORBA::is_nil (server_object.in ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "name %s is not resolved to a valid object\n"),
- -1);
- }
- }
- ACE_CATCH (const CosNaming::NamingContext::NotFound, nf)
- {
- const char *reason;
-
- switch (nf.why)
- {
- case CosNaming::NamingContext::missing_node:
- reason = "missing node";
- break;
- case CosNaming::NamingContext::not_context:
- reason = "not context";
- break;
- case CosNaming::NamingContext::not_object:
- reason = "not object";
- break;
- default:
- reason = "not known";
- break;
- }
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s cannot be resolved, exception reason = %s\n",
- get_opt.opt_arg (),
- reason),
- -1);
- }
- ACE_CATCH (const CosNaming::NamingContext::InvalidName, in)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s cannot be resolved, exception reason = "
- "Invalid Name"
- "\n",
- get_opt.opt_arg ()),
- -1);
- }
- ACE_CATCH (const CosNaming::NamingContext::CannotProceed, cp)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s cannot be resolved, exception reason = "
- "Cannot Proceed"
- "\n",
- get_opt.opt_arg ()),
- -1);
- }
- ACE_CATCHANY
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s cannot be resolved, exception reason = "
- "Unexpected Exception"
- "\n",
- argvw[0]),
- -1);
- }
- ACE_ENDTRY;
-
- ACE_CString aString;
-
- aString = orb_var->object_to_string (server_object.in ()
- ACE_ENV_ARG_PARAMETER);
-
- ACE_DEBUG ((LM_DEBUG,
- "\nhere is the IOR\n%s\n\n",
- aString.rep ()));
-
- char* str;
- if (aString.find ("IOR:") == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "decoding an IOR:\n"));
-
- // Strip the IOR: off the string.
- ACE_CString prefix = "IOR:";
- size_t prefixLength = prefix.length ();
-
- ACE_CString subString =
- aString.substring (prefixLength,
- aString.length () - prefixLength);
- subString[subString.length ()] = '\0';
- str = subString.rep ();
- b = catior (str ACE_ENV_ARG_PARAMETER);
- }
- else if (aString.find ("iiop:") == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "decoding an IIOP URL IOR\n"));
-
- ACE_CString prefix = "IIOP:";
- size_t prefixLength = prefix.length ();
-
- ACE_CString subString =
- aString.substring (prefixLength,
- aString.length () - prefixLength);
- //subString[subString.length () - 1] = '\0';
- str = subString.rep ();
- b = catiiop (str ACE_ENV_ARG_PARAMETER);
- }
- else if (aString.find (":IR:") > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "decoding an POOP IOR\n"));
-
- str = aString.rep ();
- b = catpoop (str ACE_ENV_ARG_PARAMETER);
- }
- else
- ACE_ERROR ((LM_ERROR,
- "Don't know how to decode this IOR\n"));
- }
- ACE_CATCHANY
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s cannot be resolved, exception reason = "
- "Unexpected Exception"
- "\n",
- argvw[0]),
- -1);
- }
- ACE_ENDTRY;
-
- if (b == 1)
- ACE_DEBUG ((LM_DEBUG,
- "catior returned true\n"));
- else
- ACE_DEBUG ((LM_DEBUG,
- "catior returned false\n"));
- break;
- }
+ // Read the CosName from the NamingService convert the
+ // object_ptr to a CORBA::String_var via the call to
+ // object_to_string.
+ ACE_DEBUG ((LM_DEBUG,
+ "opening a connection to the NamingService\n"
+ "resolving the CosName %s\n",
+ get_opt.opt_arg ()));
+ break;
case 'f':
{
- int have_some_input = 0;
- int decode_pass_count = 0;
-
// Read the file into a CORBA::String_var.
ACE_DEBUG ((LM_DEBUG,
"reading the file %s\n",
get_opt.opt_arg ()));
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- ifstream ifstr (get_opt.opt_arg ());
+ ifstream ifstr (ACE_TEXT_TO_CHAR_IN(get_opt.opt_arg ()));
if (!ifstr.good ())
{
ifstr.close ();
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s "
- "-f %s "
- "\n"
- "Invalid IOR file nominated"
- "\n",
- argvw[0],
- get_opt.opt_arg ()),
- -1);
+ return -1;
}
+ int have_some_input = 0;
while (!ifstr.eof())
{
char ch;
ACE_CString aString;
- have_some_input = 0;
-
while (!ifstr.eof ())
{
ifstr.get (ch);
- if (ifstr.eof () || ch == '\n' || ch == '\r')
+ if (ch == '\n' || ifstr.eof ())
break;
aString += ch;
- have_some_input++;
+ have_some_input = 1;
}
#else
FILE* ifstr = ACE_OS::fopen (get_opt.opt_arg (), ACE_TEXT ("r"));
- if (!ifstr || ferror (ifstr))
+ if (ifstr && !ferror (ifstr))
{
if (ifstr)
- {
ACE_OS::fclose (ifstr);
- }
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s "
- "-f %s "
- "\n"
- "Invalid IOR file nominated"
- "\n",
- argvw[0],
- get_opt.opt_arg ()),
- -1);
+ return -1;
}
+ int have_some_input = 0;
while (!feof (ifstr))
{
char ch;
ACE_CString aString;
- have_some_input = 0;
-
while (!feof (ifstr))
{
ch = ACE_OS::fgetc (ifstr);
- if (ch == EOF || ch == '\n' || ch == '\r')
+ if (ch == '\n' || ch == EOF)
break;
aString += ch;
- have_some_input++;
+ have_some_input = 1;
}
#endif /* !defined (ACE_LACKS_IOSTREAM_TOTALLY) */
if (have_some_input == 0 || !aString.length())
- {
- if (!decode_pass_count)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s "
- "-f %s "
- "\n"
- "Empty IOR file nominated"
- "\n",
- argvw[0],
- get_opt.opt_arg ()),
- -1);
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "catior returned true\n"));
- return 0; // All done now
- }
- }
-
- decode_pass_count++;
-
+ break;
ACE_DEBUG ((LM_DEBUG,
"\nhere is the IOR\n%s\n\n",
aString.rep ()));
@@ -804,98 +599,58 @@ ACE_TMAIN (int argcw, ACE_TCHAR *argvw[])
break;
case 'x':
{
- int have_some_input = 0;
- int decode_pass_count = 0;
-
- // Read the input into a CORBA::String_var.
+ // Read the file into a CORBA::String_var.
ACE_DEBUG ((LM_DEBUG,
"reading from stdin\n"));
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
if (!cin.good ())
{
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s "
- "-x"
- "\n"
- "Invalid input stream"
- "\n",
- argvw[0]),
- -1);
+ return -1;
}
+ int have_some_input = 0;
while (!cin.eof())
{
char ch;
ACE_CString aString;
- have_some_input = 0;
-
while (!cin.eof ())
{
cin.get (ch);
- if (cin.eof () || ch == '\n' || ch == '\r')
+ if (ch == '\n' || cin.eof ())
break;
aString += ch;
- have_some_input++;
+ have_some_input = 1;
}
#else
FILE* ifstr = stdin;
- if (!ifstr || ferror (ifstr))
+ if (ifstr && !ferror (ifstr))
{
if (ifstr)
- {
ACE_OS::fclose (ifstr);
- }
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s "
- "-x"
- "\n"
- "Invalid input stream"
- "\n",
- argvw[0]),
- -1);
+ return -1;
}
+ int have_some_input = 0;
while (!feof (ifstr))
{
char ch;
ACE_CString aString;
- have_some_input = 0;
-
while (!feof (ifstr))
{
ch = ACE_OS::fgetc (ifstr);
- if (ch == EOF || ch == '\n' || ch == '\r')
+ if (ch == '\n' || ch == EOF)
break;
aString += ch;
- have_some_input++;
+ have_some_input = 1;
}
#endif /* !defined (ACE_LACKS_IOSTREAM_TOTALLY) */
if (have_some_input == 0)
- {
- if (!decode_pass_count)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%s "
- "-x"
- "\n"
- "Empty input stream"
- "\n",
- argvw[0]),
- -1);
- }
- else
- {
- return 0; // All done now
- }
- }
-
- decode_pass_count++;
-
+ break;
ACE_DEBUG ((LM_DEBUG,
"\nhere is the IOR\n%s\n\n",
aString.rep ()));
@@ -968,23 +723,11 @@ ACE_TMAIN (int argcw, ACE_TCHAR *argvw[])
}
}
- // check that some relevant arguments have been supplied
- if (have_argument == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Usage: %s "
- "-f filename "
- "-n CosName "
- "\n"
- "Reads an IOR "
- "and dumps the contents to stdout "
- "\n",
- argvw[0]),
- 1);
return 0;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_tag_orb_type (TAO_InputCDR& stream) {
CORBA::ULong length = 0;
if (stream.read_ulong (length) == 0)
@@ -995,29 +738,23 @@ cat_tag_orb_type (TAO_InputCDR& stream) {
CORBA::ULong orbtype;
- if (!(stream2 >> orbtype))
- return false;
-
- if (orbtype == TAO_ORB_TYPE)
- {
- ACE_DEBUG ((LM_DEBUG,
- "%I ORB Type: 0x%x (TAO)\n",
- orbtype));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "%I ORB Type: 0x%x\n",
- orbtype));
- }
+ stream2 >> orbtype;
+ if (orbtype == TAO_ORB_TYPE) {
+ ACE_DEBUG ((LM_DEBUG,
+ "%I ORB Type: %d (TAO)\n",
+ orbtype));
+ } else {
+ ACE_DEBUG ((LM_DEBUG,
+ "%I ORB Type: %d\n",
+ orbtype));
+ }
- return true;
+ return 1;
}
-CORBA::Boolean
-cat_tao_tag_endpoints (TAO_InputCDR& stream)
-{
+static CORBA::Boolean
+cat_tao_tag_endpoints (TAO_InputCDR& stream) {
CORBA::ULong length = 0;
if (stream.read_ulong (length) == 0)
return 1;
@@ -1044,7 +781,7 @@ cat_tao_tag_endpoints (TAO_InputCDR& stream)
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_tag_alternate_endpoints (TAO_InputCDR& stream) {
CORBA::ULong length = 0;
if (stream.read_ulong (length) == 0)
@@ -1063,7 +800,7 @@ cat_tag_alternate_endpoints (TAO_InputCDR& stream) {
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_tag_policies (TAO_InputCDR& stream) {
CORBA::ULong length = 0;
if (stream.read_ulong (length) == 0)
@@ -1204,7 +941,7 @@ cat_tag_policies (TAO_InputCDR& stream) {
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_octet_seq (const char *object_name,
TAO_InputCDR& stream)
{
@@ -1252,7 +989,7 @@ cat_octet_seq (const char *object_name,
{
char c = objKey[i];
int tmp = (unsigned char) c; // isprint doesn't work with negative vals.(except EOF)
- if (ACE_OS::ace_isprint (static_cast<ACE_TCHAR> (tmp)))
+ if (ACE_OS::ace_isprint (tmp))
ACE_DEBUG ((LM_DEBUG, "%c", c));
else
ACE_DEBUG ((LM_DEBUG, "."));
@@ -1264,7 +1001,7 @@ cat_octet_seq (const char *object_name,
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_object_key (TAO_InputCDR& stream)
{
// ... and object key.
@@ -1275,126 +1012,110 @@ cat_object_key (TAO_InputCDR& stream)
ACE_CString
_find_info (CORBA::ULong id)
{
- ACE_CString locale = "";
- ACE_Codeset_Registry::registry_to_locale (id, locale, 0, 0);
- return locale;
+ ACE_CString locale="";
+ ACE_Codeset_Registry::registry_to_locale(id, locale, NULL, NULL);
+ return locale;
}
-void displayHex (TAO_InputCDR & str)
+void displayHex( TAO_InputCDR &str )
{
- if (str.good_bit () == 0)
+ if (str.good_bit () == 0 )
return;
- TAO_InputCDR clone_str (str);
+ TAO_InputCDR clone_str( str );
CORBA::ULong theSetId ;
- if (!str.read_ulong (theSetId))
- {
- ACE_ERROR ((LM_ERROR,
- "Unable to read codeset ID.\n"));
- return;
- }
+ str.read_ulong(theSetId);
ACE_DEBUG ((LM_DEBUG," Hex - %x", theSetId));
- ACE_DEBUG ((LM_DEBUG,"\tDescription - "));
- ACE_CString theDescr = _find_info (theSetId);
+ ACE_DEBUG ((LM_DEBUG," Description - "));
+ ACE_CString theDescr = _find_info ( theSetId );
- if (theDescr.length () == 0)
- ACE_DEBUG ((LM_DEBUG," Unknown CodeSet \n "));
- else
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" %s \n"), theDescr.c_str ()));
+ if( theDescr.length() == 0 )
+ {
+ ACE_DEBUG ((LM_DEBUG," Unknown CodeSet \n "));
+ return;
+ }
+
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" %s \n"), theDescr.c_str()));
}
-CORBA::Boolean
-cat_codeset_info (TAO_InputCDR& cdr)
+static CORBA::Boolean
+cat_codeset_info(TAO_InputCDR& stream)
{
- CORBA::ULong length = 0;
- if (cdr.read_ulong (length) == 0)
- return false;
-
- TAO_InputCDR stream (cdr, length);
- cdr.skip_bytes(length);
-
- ACE_DEBUG ((LM_DEBUG, "\tComponent length: %u \n", length));
-
- ACE_DEBUG ((LM_DEBUG,
- "\tComponent byte order:\t%s Endian\n",
- (stream.byte_order () ? "Little" : "Big")));
-
- // CodesetId for char
- // CORBA::ULong c_ncsId;
- ACE_DEBUG ((LM_DEBUG, "\tNative CodeSet for char: "));
- displayHex (stream);
-
- // number of Conversion Codesets for char
- CORBA::ULong c_ccslen = 0;
-
- if (!(stream >> c_ccslen))
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read number of conversion codesets "
- "for char.\n"),
- false);
-
- ACE_DEBUG ((LM_DEBUG, "\tNumber of CCS for char %u \n", c_ccslen));
-
- if (c_ccslen)
- ACE_DEBUG ((LM_DEBUG, "\tConversion Codesets for char are: \n"));
-
- // Loop through and display them
- CORBA::ULong index = 0;
- for ( ; index < c_ccslen; ++index)
- {
- // CodesetId for char
- ACE_DEBUG ((LM_DEBUG, "\t%u) ", index + 1L));
- displayHex (stream);
- }
-
- // CodesetId for wchar
- ACE_DEBUG ((LM_DEBUG, "\tNative CodeSet for wchar: "));
- displayHex (stream);
-
- // number of Conversion Codesets for wchar
- CORBA::ULong w_ccslen=0;
-
- if (!(stream >> w_ccslen))
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read number of conversion codesets "
- "for wchar.\n"),
- false);
+ // Component Length
+ CORBA::ULong compLen=0L;
+ stream >> compLen;
+ ACE_DEBUG ((LM_DEBUG, "\tComponent Length %u \n", compLen));
- ACE_DEBUG ((LM_DEBUG, "\tNumber of CCS for wchar %u \n", w_ccslen));
+ // Byte Order
+ CORBA::ULong byteOrder;
+ stream >> byteOrder;
- if (w_ccslen)
- ACE_DEBUG ((LM_DEBUG, "\tConversion Codesets for wchar are: \n"));
-
- // Loop through and display them
- for (index = 0; index < w_ccslen; ++index)
- {
- ACE_DEBUG ((LM_DEBUG, "\t %u) ", index + 1L));
- displayHex (stream);
- }
- return true;
+ if (byteOrder)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "\tThe Component Byte Order:\tLittle Endian\n"));
+ }
+ else
+ ACE_DEBUG ((LM_DEBUG,
+ "\tThe Component Byte Order:\tBig Endian\n"));
+
+ // CodesetId for char
+ // CORBA::ULong c_ncsId;
+ ACE_DEBUG ((LM_DEBUG, "\tNative CodeSet for char: "));
+ displayHex (stream);
+
+ // number of Conversion Codesets for char
+ CORBA::ULong c_ccslen=0;
+ stream >> c_ccslen;
+ ACE_DEBUG ((LM_DEBUG, "\tNumber of CCS for char %u \n", c_ccslen));
+
+ if (c_ccslen)
+ ACE_DEBUG ((LM_DEBUG, "\tConversion Codesets for char are: \n"));
+
+ // Loop through and display them
+ CORBA::ULong index = 0;
+ for ( ; index < c_ccslen; ++index)
+ {
+ // CodesetId for char
+ ACE_DEBUG ((LM_DEBUG, "\t%u) ", index + 1L));
+ displayHex (stream);
+ }
+
+ // CodesetId for wchar
+ ACE_DEBUG ((LM_DEBUG, "\tNative CodeSet for wchar: "));
+ displayHex (stream);
+
+ // number of Conversion Codesets for char
+ CORBA::ULong w_ccslen=0;
+ stream >> w_ccslen;
+ ACE_DEBUG ((LM_DEBUG, "\tNumber of CCS for wchar %u \n", w_ccslen));
+
+ if (w_ccslen)
+ ACE_DEBUG ((LM_DEBUG, "\tConversion Codesets for wchar are: \n"));
+
+ // Loop through and display them
+ for (index = 0; index < w_ccslen; ++index)
+ {
+ ACE_DEBUG ((LM_DEBUG, "\t %u) ", index + 1L));
+ displayHex (stream);
+ }
+ return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_tagged_components (TAO_InputCDR& stream)
{
// ... and object key.
CORBA::ULong len;
- if (!(stream >> len))
- return false;
+ stream >> len;
for (CORBA::ULong i = 0;
i != len;
++i)
{
CORBA::ULong tag;
- if (!(stream >> tag))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read component tag.\n"),
- false);
- }
-
+ stream >> tag;
ACE_DEBUG ((LM_DEBUG,
"%I The component <%d> ID is ", i+1, tag));
@@ -1436,7 +1157,7 @@ cat_tagged_components (TAO_InputCDR& stream)
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_profile_helper (TAO_InputCDR& stream,
const char *protocol)
{
@@ -1465,8 +1186,7 @@ cat_profile_helper (TAO_InputCDR& stream,
//
// XXX this doesn't actually go back and skip the whole
// encapsulation...
- CORBA::Octet iiop_version_major;
- CORBA::Octet iiop_version_minor = CORBA::Octet();
+ CORBA::Octet iiop_version_major, iiop_version_minor;
if (! (str.read_octet (iiop_version_major)
&& iiop_version_major == 1
&& str.read_octet (iiop_version_minor)
@@ -1488,23 +1208,23 @@ cat_profile_helper (TAO_InputCDR& stream,
// Get host and port.
CORBA::UShort port_number;
- CORBA::String_var hostname;
- if (!(str >> hostname.inout ()))
+ char* hostname;
+ if ((str >> hostname) == 0)
{
ACE_DEBUG ((LM_DEBUG,
"%I problem decoding hostname\n"));
return 1;
}
- if (!(str >> port_number))
- return false;
+ str >> port_number;
ACE_DEBUG ((LM_DEBUG,
"%I Host Name:\t%s\n",
- hostname.in ()));
+ hostname));
ACE_DEBUG ((LM_DEBUG,
"%I Port Number:\t%d\n",
port_number));
+ CORBA::string_free (hostname);
if (cat_object_key (str) == 0)
return 0;
@@ -1521,19 +1241,19 @@ cat_profile_helper (TAO_InputCDR& stream,
return 0;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_iiop_profile (TAO_InputCDR& stream)
{
return cat_profile_helper (stream, "IIOP");
}
-CORBA::Boolean
+static CORBA::Boolean
cat_shmiop_profile (TAO_InputCDR& stream)
{
return cat_profile_helper (stream, "SHMIOP");
}
-CORBA::Boolean
+static CORBA::Boolean
cat_uiop_profile (TAO_InputCDR& stream)
{
// OK, we've got a UIOP profile. It's going to be encapsulated
@@ -1557,8 +1277,7 @@ cat_uiop_profile (TAO_InputCDR& stream)
//
// XXX this doesn't actually go back and skip the whole
// encapsulation...
- CORBA::Octet uiop_version_major;
- CORBA::Octet uiop_version_minor = CORBA::Octet();
+ CORBA::Octet uiop_version_major, uiop_version_minor;
// It appears that as of April 2002 UIOP version is 1.2
if (! (str.read_octet (uiop_version_major)
&& uiop_version_major == 1
@@ -1595,7 +1314,7 @@ cat_uiop_profile (TAO_InputCDR& stream)
return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_sciop_profile (TAO_InputCDR& stream)
{
// OK, we've got an SCIOP profile.
@@ -1620,8 +1339,7 @@ cat_sciop_profile (TAO_InputCDR& stream)
//
// XXX this doesn't actually go back and skip the whole
// encapsulation...
- CORBA::Octet iiop_version_major;
- CORBA::Octet iiop_version_minor = CORBA::Octet();
+ CORBA::Octet iiop_version_major, iiop_version_minor;
if (! (str.read_octet (iiop_version_major)
&& iiop_version_major == 1
&& str.read_octet (iiop_version_minor)
@@ -1642,57 +1360,53 @@ cat_sciop_profile (TAO_InputCDR& stream)
// Get host and port.
CORBA::UShort port_number;
CORBA::UShort max_streams;
+ char* hostname;
CORBA::ULong addresses;
- if (!(str >> addresses))
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to decode number of addresses\n."),
- false);
+ str >> addresses;
ACE_DEBUG ((LM_DEBUG,
"%I Addresses:\t%d\n",
addresses));
- for (CORBA::ULong i = 0; i < addresses; ++i)
- {
- CORBA::String_var hostname;
- if (!(str >> hostname.inout ()))
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%I problem decoding hostname\n"),
- false);
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "%I Host Name:\t%s\n",
- hostname.in ()));
- }
+ for (unsigned int i=0; i< addresses; i++) {
+ if ((str >> hostname) == 0)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "%I problem decoding hostname\n"));
+ return 1;
+ }
+ ACE_DEBUG ((LM_DEBUG,
+ "%I Host Name:\t%s\n",
+ hostname));
+ CORBA::string_free (hostname);
+ }
- if (!(str >> port_number))
- return false;
+ str >> port_number;
ACE_DEBUG ((LM_DEBUG,
"%I Port Number:\t%d\n",
port_number));
- if (!(str >> max_streams))
- return false;
+ str >> max_streams;
ACE_DEBUG ((LM_DEBUG,
"%I Max Streams:\t%d\n",
max_streams));
- if (cat_object_key (str) == 0
- || // Unlike IIOP (1.0), SCIOP always has tagged_components.
- cat_tagged_components (str) == 0)
- return false;
+ if (cat_object_key (str) == 0)
+ return 0;
- return true;
+ // Unlike IIOP (1.0), SCIOP always has tagged_components.
+ if (cat_tagged_components (str) == 0)
+ return 0;
+
+ return 1;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_nsk_profile_helper (TAO_InputCDR& stream,
const char *protocol)
{
@@ -1721,8 +1435,7 @@ cat_nsk_profile_helper (TAO_InputCDR& stream,
//
// XXX this doesn't actually go back and skip the whole
// encapsulation...
- CORBA::Octet iiop_version_major;
- CORBA::Octet iiop_version_minor = CORBA::Octet();
+ CORBA::Octet iiop_version_major, iiop_version_minor;
if (! (str.read_octet (iiop_version_major)
&& iiop_version_major == 1
&& str.read_octet (iiop_version_minor)
@@ -1772,13 +1485,13 @@ cat_nsk_profile_helper (TAO_InputCDR& stream,
return 0;
}
-CORBA::Boolean
+static CORBA::Boolean
cat_nskpw_profile (TAO_InputCDR& stream)
{
return cat_nsk_profile_helper (stream, "NSKPW");
}
-CORBA::Boolean
+static CORBA::Boolean
cat_nskfs_profile (TAO_InputCDR& stream)
{
return cat_nsk_profile_helper (stream, "NSKFS");
diff --git a/TAO/utils/catior/catior.mpc b/TAO/utils/catior/catior.mpc
index 749849fa3af..d46f13a598a 100644
--- a/TAO/utils/catior/catior.mpc
+++ b/TAO/utils/catior/catior.mpc
@@ -1,7 +1,5 @@
// $Id$
-project : namingexe, rtcorba, core {
- libpaths += $(ACE_ROOT)/lib
- libpaths += $(ACE_ROOT)/ace
- exename = catior
- install = $(ACE_ROOT)/bin
+project : taoexe, rtcorba, core {
+ install = $(ACE_ROOT)/bin
+ exename = catior
}
diff --git a/TAO/utils/nslist/nsadd.cpp b/TAO/utils/nslist/nsadd.cpp
index 1394726c5d2..f69511d3d0a 100644
--- a/TAO/utils/nslist/nsadd.cpp
+++ b/TAO/utils/nslist/nsadd.cpp
@@ -104,7 +104,7 @@ ACE_TMAIN (int argcw, ACE_TCHAR *argvw[])
CORBA::Object_var obj;
if (ior)
{
- obj = orb->string_to_object (ACE_TEXT_ALWAYS_CHAR (ior) ACE_ENV_ARG_PARAMETER);
+ obj = orb->string_to_object (ACE_TEXT_TO_CHAR_IN (ior) ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
}
@@ -122,7 +122,7 @@ ACE_TMAIN (int argcw, ACE_TCHAR *argvw[])
return 1;
}
char buf[BUFSIZ];
- ACE_OS::strcpy (buf, ACE_TEXT_ALWAYS_CHAR (name));
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_CHAR_IN (name));
char *bp = &buf[0];
char *cp = 0;
int ntoks = 0;
diff --git a/TAO/utils/nslist/nsdel.cpp b/TAO/utils/nslist/nsdel.cpp
index 48add17f564..886ce591fb8 100644
--- a/TAO/utils/nslist/nsdel.cpp
+++ b/TAO/utils/nslist/nsdel.cpp
@@ -84,7 +84,7 @@ ACE_TMAIN (int argcw, ACE_TCHAR *argvw[])
// make a copy
char buf[BUFSIZ];
- ACE_OS::strcpy (buf, ACE_TEXT_ALWAYS_CHAR (name));
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_CHAR_IN (name));
char *bp = &buf[0];
char *cp = 0;
int ntoks = 0;
diff --git a/TAO/utils/nslist/nslist.cpp b/TAO/utils/nslist/nslist.cpp
index 80dabc861b4..d305fee2971 100644
--- a/TAO/utils/nslist/nslist.cpp
+++ b/TAO/utils/nslist/nslist.cpp
@@ -117,7 +117,7 @@ show_chunk (CosNaming::NamingContext_ptr nc,
"",
bl[i].binding_name[0].id.in ()));
- if (ACE_OS::strlen (bl[i].binding_name[0].kind) > 0)
+ if (ACE_OS::strlen (bl[i].binding_name[0].kind.in()) > 0)
ACE_DEBUG ((LM_DEBUG,
"(%s)",
bl[i].binding_name[0].kind.in ()));
diff --git a/TAO/utils/wxNamingViewer/wxNamingViewer.cpp b/TAO/utils/wxNamingViewer/wxNamingViewer.cpp
index a2a61b35140..a580e5b6be5 100644
--- a/TAO/utils/wxNamingViewer/wxNamingViewer.cpp
+++ b/TAO/utils/wxNamingViewer/wxNamingViewer.cpp
@@ -6,7 +6,6 @@
//
// $Id$
-#include "ace/Init_ACE.h"
#include "pch.h"
#include "wx/resource.h"
#include "wxNamingViewerFrame.h"
diff --git a/TAO/utils/wxNamingViewer/wxNamingViewerFrame.cpp b/TAO/utils/wxNamingViewer/wxNamingViewerFrame.cpp
index 0d88b76a8e9..f8e11f06a4e 100644
--- a/TAO/utils/wxNamingViewer/wxNamingViewerFrame.cpp
+++ b/TAO/utils/wxNamingViewer/wxNamingViewerFrame.cpp
@@ -8,7 +8,7 @@
#include "wxNamingViewerFrame.h"
#include "wx/clipbrd.h"
-#include "orbsvcs/Naming/Naming_Client.h"
+#include "orbsvcs/Naming/Naming_Server.h"
#include "wxNamingViewer.h"
#include "wxSelectNSDialog.h"
#include "ace/SString.h"
diff --git a/THANKS b/THANKS
index 4b96f1791ab..cc3b747fa5e 100644
--- a/THANKS
+++ b/THANKS
@@ -1135,7 +1135,7 @@ Mike Anderson <manderson at sonusnet dot com>
David Singer <David_P_Singer at res dot raytheon dot com>
Nick Lin <nicklin at vantech dot com dot tw>
Ron Hashimshony <Ron at bandwiz dot com>
-Max Khon <mkhon at swsoft dot com>
+Max Khon <fjoe at iclub dot nsu dot ru>
Jonas Nordin <jonas dot nordin at syncom dot se>
Jonathan Stockdale <Jonathan dot Stockdale at locusdialogue dot com>
Jean-Francois Daune <Daune at IBA dot be>
@@ -1248,7 +1248,7 @@ Wayne Erchak <wayne at stentor dot com>
Yew Khong See <seeyk at yahoo dot com>
Greg Thompson <gregt at ot dot com dot au>
Mike Pyle <mike dot pyle at burning-glass dot com>
-Kobi Cohen-Arazi <kobi.cohenarazi at gmail dot com>
+Kobi Cohen-Arazi <kobi-co at barak-online dot net>
Israel Illescas Gomez <illescas at dycsa dot es>
Brodie Thiesfield <brodie dot thiesfield at activesky dot com>
Erik Toubro Nielsen <enielsen at mdsproteomics dot dk>
@@ -1724,7 +1724,7 @@ Karim Fodil-Lemelin <kfl at xiphos dot ca>
Wenlong Tang <tang_long at hotmail dot com>
Manish Jain <majain at hss dot hns dot com>
Robin Farine <robin dot farine at acn-group dot ch>
-Roland Schimmack <Roland dot Schimmack at gmx dot de>
+Roland Schimmack <SC at ProCom dot de>
Roy Pollock <rpollock at ghs dot com>
Eric Held <Eric dot Held at harris dot com>
Kees van Marle <kvmarle at remedy dot nl>
@@ -1798,7 +1798,7 @@ Brad Orner <bradley_p_orner at raytheon dot com>
Michelangelo Nottoli <m dot nottoli at acsys dot it>
Peter Bekiesch <peter dot bekiesch at dtmgmbh dot de>
Martin Kaul <mkaul at leuze dot de>
-Lukas Gruetzmacher <gruetzmacher at ais-dresden dot de>
+Gruetzmacher Lukas <gruetzmacher at ais-dresden dot de>
Robert Schiele <robert dot schiele at t-online dot de>
Matthew Grosso <mgrosso at acm dot org>
Akim Boyko <akim at sitech dot com dot ua>
@@ -1995,7 +1995,7 @@ Mark Callaghan <mdcallag at gmail dot com>
Hanson Lu <suf_lu at yahoo dot com>
Gavin Yu <songtaoyu at lucent dot com>
Srikanth Gopal <sriki_666 at yahoo dot com>
-Like Ma <likemartinma at gmail dot com>
+Like Ma <likemartinma at 163 dot com>
Alvin Msg <alvin dot msg at gmail dot com>
Angela Ziegenhorn <Angela dot Ziegenhorn at veritas dot com>
Sam Mesh <sam dot mesh at gmail dot com>
@@ -2024,81 +2024,10 @@ Paul Friberg <p dot friberg at isti dot com>
Zachi Klopman <zklopman at gmail dot com>
Jin Zhi Ye <jinzhiye at kedacom dot com>
David Carlton <david dot carlton at sun dot com>
-Feng Li <fengli at gmail dot com>
+Felix Li <fengli at gmail dot com>
Michael van der Westhuizen <r1mikey at gmail dot com>
Jan Zima <Jan dot Zima at sofis dot cz>
Francesco Salvestrini <f dot salvestrini at nextworks dot it>
-Sandeep Deshpande <sandeep dot bvb at gmail dot com>
-Hubert Talbot <Hubert dot Talbot at criq dot qc dot ca>
-Oh Yoon Sik <boom at estsoft dot com>
-Anton Bakanovskiy <Anton dot Bakanovskiy at bercut dot ru>
-Toha Bakanovsky <im-scooter at yandex dot ru>
-David Faure <dfaure at klaralvdalens-datakonsult dot se>
-Robert Hancock <hancockr at shaw dot ca>
-Peter Oslej <peter dot oslej at vrm dot sk>
-Yongming Wang <wangym at gmail dot com>
-Vadim Iosevich <viosevich at gmail dot com>
-Mike Knight <mike dot knight at compuware dot com>
-Nathan Anderson <nathan dot l dot anderson at lmco dot com>
-Eyal Car <eyal_car at hotmail dot com>
-Jonathan Sprinkle <sprinkle at eecs dot berkeley dot edu>
-Vladimir Panov <gbr at voidland dot org>
-Volker Lukas <vlukas at gmx dot de>
-Bryan Cassell <BryanCassell dot iti-team dot com>
-Guy Peleg <guy dot peleg at amdocs dot com>
-Wallace Zhang <zhangw at ociweb dot com>
-Richard Ward <richard_ward at symantec dot com>
-Alan Stokes <alan at alanstokes dot org dot uk>
-Rick Taylor <rick at tropicalstormsoftware dot com>
-Tobias Herzke <tobias dot herzke at uni-oldenburg dot de>
-Paul Felix <pef at fluent dot com>
-Jan Ohlenburg <jan dot ohlenburg at fit dot fraunhofer dot de>.
-Eric Tiangang <tgliu at utstar dot com>
-David Hawkins <dwh at ovro dot caltech dot edu>
-Michael Klein <michael dot klein at fazi dot de>
-Sandro Santos Andrade <sandros at dcc dot ufba dot br>
-Richard Spence <richard dot spence dot extern at icn dot siemens dot de>
-Thomas E Lackey <telackey at bozemanpass dot com>
-luxi78 at gmail dot com
-John Lilley <jlilley at datalever dot com>
-Abdullah Sowayan <abdullah dot sowayan at lmco dot com>
-Nathan Bamford <nbamford at datalever dot com>
-Zoltan Molnar <zolmol at isis dot vanderbilt dot edu>
-William Byrne <williamb at codics dot com>
-Karl Schmitt <Karl dot Schmitt at dfs dot de>
-Ron DeAngelis <rdeangel at rite-solutions dot com>
-Alex Sheh <ASHEH at euphonix dot com>
-Daniel Wagner <__daniel___ at icg do tu-graz dot ac dot at>
-Nemoy Michael <michaeln at sintecmedia dot com>
-Marc Brown <mbrown at fisheyesoftware dot com>
-Andrew Keane <andrew at keaneville dot com>
-Martin Kolleck
-Tino Riethmueller
-Adam Mitz <mitza at ociweb dot com>
-Frank Rehberger <frehberger at prismtech dot com>
-Aaron Scamehorn <aaron dot scamehorn at cogcap dot com>
-Alan Kierstead <ackierstead at fedex dot com>
-Sven-Uwe Sieler-Hornke <sven-uwe dot sieler-hornke at investment-cybernetics dot de>
-Spencer Vanroekel <Spencer dot Vanroekel at Siemens dot com>
-Dan Pozdol <dpozdol at wolve dot com>
-Yauheni Akhotnikau <eao197 at intervale dot ru>
-Axter <google at axter dot com>
-Roopa Pundaleeka <roopa at txcorp dot com>
-JR Andreassen <janrune at io doc com>
-Mockey Chen <mockey dot chen @ google dot com>
-Vincent Joseph <deskamess at yahoo dot com>
-qwerty <qwerty0987654321 at mail dot ru>
-Yuan <yuanhp_china at hotmail dot com>
-Adrian Tulloch <my-ace-sub at reyes-tulloch dot com>
-Dmitriy Kuznetsov <dk3 at garant dot ru>
-Steve Orner <saorner at rdainc dot com>
-Bob Ronak <ronak2121 at gmail dot com>
-Aleksandar Vukajlovic <vukajlo at finsoft dot co dot yu>
-Ignacio Alvarez <support at xentient dot com>
-Sergey Zubarev <sergant128 at mail dot ru>
-Qingbo Cai <qingbo dot cai at case dot edu>
-David White <david dot white dot 7 at gmail dot com>
-Jason Zhang <zzm9981 at 163.com>
I would particularly like to thank Paul Stephenson, who worked with me
at Ericsson in the early 1990's. Paul devised the recursive Makefile
@@ -2125,3 +2054,4 @@ for instructions on submitting suggestions or fixes.
Douglas C. Schmidt
d.schmidt at vanderbilt.edu
+
diff --git a/VERSION b/VERSION
index 27799962787..74919456395 100644
--- a/VERSION
+++ b/VERSION
@@ -1,4 +1,4 @@
-This is ACE version 5.5, released Sun Mar 05 11:10:32 2006.
+This is ACE version 5.4.7, released Fri Aug 05 07:37:20 2005.
If you have any problems with or questions about ACE, please send
email to the ACE mailing list (ace-users@cs.wustl.edu), using the form
@@ -9,4 +9,3 @@ please do one of the following:
contents "subscribe ace-users" to majordomo@cs.wustl.edu.
2) Or, monitor the comp.soft-sys.ace newsgroup for responses.
-
diff --git a/ace/ACE.cpp b/ace/ACE.cpp
index 3e900bc24ef..d94fabfaf69 100644
--- a/ace/ACE.cpp
+++ b/ace/ACE.cpp
@@ -23,9 +23,9 @@
#include "ace/OS_NS_ctype.h"
#include "ace/OS_TLI.h"
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+#if defined (VXWORKS)
extern "C" int maxFiles;
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
#if !defined (__ACE_INLINE__)
#include "ace/ACE.inl"
@@ -41,9 +41,6 @@ ACE_RCSID (ace,
"$Id$")
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
// private:
@@ -214,7 +211,7 @@ ACE::select (int width,
#if !defined (ACE_WIN32)
if (result > 0)
readfds.sync ((ACE_HANDLE) width);
-#endif /* ACE_WIN32 */
+#endif /* ACE_WIN64 */
return result;
}
@@ -353,7 +350,6 @@ ACE::hash_pjw (const char *str)
return ACE::hash_pjw (str, ACE_OS::strlen (str));
}
-#if defined (ACE_HAS_WCHAR)
u_long
ACE::hash_pjw (const wchar_t *str, size_t len)
{
@@ -383,7 +379,6 @@ ACE::hash_pjw (const wchar_t *str)
{
return ACE::hash_pjw (str, ACE_OS::strlen (str));
}
-#endif /* ACE_HAS_WCHAR */
#if !defined (ACE_HAS_WINCE)
ACE_TCHAR *
@@ -622,7 +617,7 @@ ACE::recv_n_i (ACE_HANDLE handle,
{
// Try to transfer as much of the remaining data as possible.
n = ACE_OS::recv (handle,
- static_cast <char *> (buf) + bytes_transferred,
+ (char *) buf + bytes_transferred,
len - bytes_transferred,
flags);
// Check EOF.
@@ -681,7 +676,7 @@ ACE::recv_n_i (ACE_HANDLE handle,
// Since the socket is in non-blocking mode, this call will not
// block.
n = ACE_OS::recv (handle,
- static_cast <char *> (buf) + bytes_transferred,
+ (char *) buf + bytes_transferred,
len - bytes_transferred,
flags);
@@ -861,7 +856,7 @@ ACE::recv_n_i (ACE_HANDLE handle,
{
// Try to transfer as much of the remaining data as possible.
n = ACE::recv_i (handle,
- static_cast <char *> (buf) + bytes_transferred,
+ (char *) buf + bytes_transferred,
len - bytes_transferred);
// Check EOF.
if (n == 0)
@@ -919,7 +914,7 @@ ACE::recv_n_i (ACE_HANDLE handle,
// Since the socket is in non-blocking mode, this call will not
// block.
n = ACE::recv_i (handle,
- static_cast <char *> (buf) + bytes_transferred,
+ (char *) buf + bytes_transferred,
len - bytes_transferred);
// Check for errors.
@@ -1205,7 +1200,7 @@ ACE::recv_n (ACE_HANDLE handle,
this_rd_ptr += this_chunk_length;
// Increment iovec counter.
- ++iovcnt;
+ iovcnt++;
// The buffer is full make a OS call. @@ TODO find a way to
// find ACE_IOV_MAX for platforms that do not define it rather
@@ -2014,7 +2009,7 @@ ACE::write_n (ACE_HANDLE handle,
this_block_ptr += this_chunk_length;
// Increment iovec counter.
- ++iovcnt;
+ iovcnt++;
// The buffer is full make a OS call. @@ TODO find a way to
// find ACE_IOV_MAX for platforms that do not define it rather
@@ -2112,7 +2107,7 @@ ACE::send_n (ACE_HANDLE handle,
this_block_ptr += this_chunk_length;
// Increment iovec counter.
- ++iovcnt;
+ iovcnt++;
// The buffer is full make a OS call. @@ TODO find a way to
// find ACE_IOV_MAX for platforms that do not define it rather
@@ -2406,7 +2401,7 @@ ACE::format_hexdump (const char *buffer,
{
ACE_OS::sprintf (obuf,
ACE_LIB_TEXT (" "));
- ++obuf;
+ obuf++;
}
textver[j] = ACE_OS::ace_isprint (c) ? c : '.';
}
@@ -2434,7 +2429,7 @@ ACE::format_hexdump (const char *buffer,
{
ACE_OS::sprintf (obuf,
ACE_LIB_TEXT (" "));
- ++obuf;
+ obuf++;
}
textver[i] = ACE_OS::ace_isprint (c) ? c : '.';
}
@@ -2659,7 +2654,7 @@ ACE::handle_timed_complete (ACE_HANDLE h,
need_to_check = 1;
known_failure = 1;
}
-#elif defined (ACE_VXWORKS)
+#elif defined (VXWORKS)
ACE_UNUSED_ARG (is_tli);
// Force the check on VxWorks. The read handle for "h" is not set,
@@ -2810,6 +2805,7 @@ ACE::handle_timed_accept (ACE_HANDLE listener,
/* NOTREACHED */
}
}
+ ACE_NOTREACHED (return 0);
}
// Make the current process a UNIX daemon. This is based on Stevens
@@ -2940,7 +2936,7 @@ ACE::max_handles (void)
#if defined (_SC_OPEN_MAX)
return ACE_OS::sysconf (_SC_OPEN_MAX);
-#elif defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+#elif defined (VXWORKS)
return maxFiles;
#elif defined (FD_SETSIZE)
return FD_SETSIZE;
@@ -3330,7 +3326,6 @@ ACE::strndup (const char *str, size_t n)
return ACE_OS::strsncpy (s, str, len + 1);
}
-#if defined (ACE_HAS_WCHAR)
wchar_t *
ACE::strndup (const wchar_t *str, size_t n)
{
@@ -3352,7 +3347,6 @@ ACE::strndup (const wchar_t *str, size_t n)
0);
return ACE_OS::strsncpy (s, str, len + 1);
}
-#endif /* ACE_HAS_WCHAR */
char *
ACE::strnnew (const char *str, size_t n)
@@ -3375,7 +3369,6 @@ ACE::strnnew (const char *str, size_t n)
return ACE_OS::strsncpy (s, str, len + 1);
}
-#if defined (ACE_HAS_WCHAR)
wchar_t *
ACE::strnnew (const wchar_t *str, size_t n)
{
@@ -3396,7 +3389,6 @@ ACE::strnnew (const wchar_t *str, size_t n)
0);
return ACE_OS::strsncpy (s, str, len + 1);
}
-#endif /* ACE_HAS_WCHAR */
const char *
ACE::strend (const char *s)
@@ -3407,7 +3399,6 @@ ACE::strend (const char *s)
return s;
}
-#if defined ACE_HAS_WCHAR
const wchar_t *
ACE::strend (const wchar_t *s)
{
@@ -3416,7 +3407,6 @@ ACE::strend (const wchar_t *s)
return s;
}
-#endif
char *
ACE::strnew (const char *s)
@@ -3433,7 +3423,6 @@ ACE::strnew (const char *s)
return ACE_OS::strcpy (t, s);
}
-#if defined (ACE_HAS_WCHAR)
wchar_t *
ACE::strnew (const wchar_t *s)
{
@@ -3448,7 +3437,18 @@ ACE::strnew (const wchar_t *s)
else
return ACE_OS::strcpy (t, s);
}
-#endif /* ACE_HAS_WCHAR */
+
+void
+ACE::strdelete (char *s)
+{
+ delete [] s;
+}
+
+void
+ACE::strdelete (wchar_t *s)
+{
+ delete [] s;
+}
inline static bool equal_char(char a, char b, bool case_sensitive)
{
@@ -3503,6 +3503,3 @@ ACE::wild_match(const char* str, const char* pat, bool case_sensitive)
return *p == '\0';
}
-
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ACE.h b/ace/ACE.h
index ecafe8a3c36..12b4934bcf5 100644
--- a/ace/ACE.h
+++ b/ace/ACE.h
@@ -35,6 +35,11 @@
#include "ace/Sock_Connect.h"
#include "ace/Default_Constants.h"
+// Forward declarations.
+class ACE_Time_Value;
+class ACE_Message_Block;
+class ACE_Handle_Set;
+
#if defined (CYGWIN32)
// Include math.h. math.h defines a macro log2 that conflicts with ACE::log2()
// which seems to only cause a problem on cygwin. Insuring that math.h is
@@ -54,13 +59,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Forward declarations.
-class ACE_Time_Value;
-class ACE_Message_Block;
-class ACE_Handle_Set;
/**
* @namespace ACE
@@ -100,7 +98,7 @@ namespace ACE
/// Check if error indicates the process being out of handles (file
/// descriptors).
extern ACE_Export int out_of_handles (int error);
-
+
/// Simple wildcard matching function supporting '*' and '?'
/// return true if string s matches pattern.
extern ACE_Export bool wild_match(const char* s, const char* pattern, bool case_sensitive = true);
@@ -417,7 +415,7 @@ namespace ACE
extern ACE_Export char *strnew (const char *s);
/// Delete the memory allocated by @c strnew.
- ACE_NAMESPACE_INLINE_FUNCTION void strdelete (char *s);
+ extern ACE_Export void strdelete (char *s);
/// Create a fresh new copy of @a str, up to @a n chars long. Uses
/// @c ACE_OS::malloc to allocate the new string.
@@ -427,19 +425,16 @@ namespace ACE
/// @c ACE_OS::malloc to allocate the new string.
extern ACE_Export char *strnnew (const char *str, size_t n);
-#if defined (ACE_HAS_WCHAR)
extern ACE_Export const wchar_t *strend (const wchar_t *s);
extern ACE_Export wchar_t *strnew (const wchar_t *s);
- ACE_NAMESPACE_INLINE_FUNCTION void strdelete (wchar_t *s);
+ extern ACE_Export void strdelete (wchar_t *s);
extern ACE_Export wchar_t *strndup (const wchar_t *str, size_t n);
extern ACE_Export wchar_t *strnnew (const wchar_t *str, size_t n);
-#endif /* ACE_HAS_WCHAR */
-
/**
* On Windows, determines if a specified pathname ends with ".exe"
* (not case sensitive). If on Windows and there is no ".exe" suffix,
@@ -497,10 +492,7 @@ namespace ACE
* if @a avoid_zombies == 0 call @c ACE_OS::fork directly, else
* create an orphan process that's inherited by the init process;
* init cleans up when the orphan process terminates so we don't
- * create zombies. Returns -1 on failure and either the child PID
- * on success if @a avoid_zombies == 0 or 1 on success if @a
- * avoid_zombies != 0 (this latter behavior is a known bug that
- * needs to be fixed).
+ * create zombies.
*/
extern ACE_Export pid_t fork (
const ACE_TCHAR *program_name = ACE_LIB_TEXT ("<unknown>"),
@@ -536,13 +528,11 @@ namespace ACE
/// Computes the hash value of {str} using the "Hash PJW" routine.
extern ACE_Export u_long hash_pjw (const char *str, size_t len);
-#if defined (ACE_HAS_WCHAR)
/// Computes the hash value of {str} using the "Hash PJW" routine.
extern ACE_Export u_long hash_pjw (const wchar_t *str);
/// Computes the hash value of {str} using the "Hash PJW" routine.
extern ACE_Export u_long hash_pjw (const wchar_t *str, size_t len);
-#endif /* ACE_HAS_WCHAR */
/// Computes CRC-CCITT for the string.
extern ACE_Export ACE_UINT16 crc_ccitt(const char *str);
@@ -632,7 +622,7 @@ namespace ACE
ACE_NAMESPACE_INLINE_FUNCTION u_long log2 (u_long num);
/// Hex conversion utility.
- ACE_NAMESPACE_INLINE_FUNCTION ACE_TCHAR nibble2hex (u_int n);
+ ACE_NAMESPACE_INLINE_FUNCTION char nibble2hex (u_int n);
/// Convert a hex character to its byte representation.
ACE_NAMESPACE_INLINE_FUNCTION u_char hex2byte (ACE_TCHAR c);
@@ -826,9 +816,6 @@ namespace ACE
}
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/ACE.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ACE.inl b/ace/ACE.inl
index f4e3c2e0cb2..1462d083e53 100644
--- a/ace/ACE.inl
+++ b/ace/ACE.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_unistd.h"
@@ -7,10 +6,6 @@
#include "ace/os_include/os_ctype.h"
#include "ace/OS_NS_sys_socket.h"
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-
// Wrappers for methods that have been moved to ACE_OS.
ACE_INLINE ssize_t
@@ -271,20 +266,6 @@ ACE::handle_exception_ready (ACE_HANDLE handle,
}
ACE_INLINE void
-ACE::strdelete (char *s)
-{
- delete [] s;
-}
-
-#if defined (ACE_HAS_WCHAR)
-ACE_INLINE void
-ACE::strdelete (wchar_t *s)
-{
- delete [] s;
-}
-#endif /* ACE_HAS_WCHAR */
-
-ACE_INLINE void
ACE::unique_name (const void *object,
ACE_TCHAR *name,
size_t length)
@@ -303,7 +284,7 @@ ACE::log2 (u_long num)
return log;
}
-ACE_INLINE ACE_TCHAR
+ACE_INLINE char
ACE::nibble2hex (u_int n)
{
// Hexadecimal characters.
@@ -312,9 +293,9 @@ ACE::nibble2hex (u_int n)
// loads of warnings when inlining.
// problem (incorrect warning leftover from older GNU) has been reported as
// TSR to Windriver.
- const ACE_TCHAR hex_chars[] = ACE_LIB_TEXT ("0123456789abcdef");
+ const char hex_chars[] = "0123456789abcdef";
#else
- static const ACE_TCHAR hex_chars[] = ACE_LIB_TEXT ("0123456789abcdef");
+ static const char hex_chars[] = "0123456789abcdef";
#endif
// @@ UNICODE does this work?
@@ -331,6 +312,3 @@ ACE::hex2byte (ACE_TCHAR c)
else
return (u_char) (10 + c - ACE_LIB_TEXT ('A'));
}
-
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ACE.pc.in b/ace/ACE.pc.in
index 90b2a9eebd7..b5c4d91f3f1 100644
--- a/ace/ACE.pc.in
+++ b/ace/ACE.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: ACE
Description: ADAPTIVE Communication Environment
Version: @VERSION@
-Libs: -L${libdir} -lACE @LIBS@
+Libs: -L${libdir} -lACE
Cflags: -I${includedir}
diff --git a/ace/ACE_Memory_export.h b/ace/ACE_Memory_export.h
new file mode 100644
index 00000000000..20edd951d96
--- /dev/null
+++ b/ace/ACE_Memory_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s ACE_Memory
+// ------------------------------
+#ifndef ACE_MEMORY_EXPORT_H
+#define ACE_MEMORY_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (ACE_MEMORY_HAS_DLL)
+# define ACE_MEMORY_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && ACE_MEMORY_HAS_DLL */
+
+#if !defined (ACE_MEMORY_HAS_DLL)
+# define ACE_MEMORY_HAS_DLL 1
+#endif /* ! ACE_MEMORY_HAS_DLL */
+
+#if defined (ACE_MEMORY_HAS_DLL) && (ACE_MEMORY_HAS_DLL == 1)
+# if defined (ACE_MEMORY_BUILD_DLL)
+# define ACE_Memory_Export ACE_Proper_Export_Flag
+# define ACE_MEMORY_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define ACE_MEMORY_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* ACE_MEMORY_BUILD_DLL */
+# define ACE_Memory_Export ACE_Proper_Import_Flag
+# define ACE_MEMORY_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define ACE_MEMORY_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* ACE_MEMORY_BUILD_DLL */
+#else /* ACE_MEMORY_HAS_DLL == 1 */
+# define ACE_Memory_Export
+# define ACE_MEMORY_SINGLETON_DECLARATION(T)
+# define ACE_MEMORY_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* ACE_MEMORY_HAS_DLL == 1 */
+
+// Set ACE_MEMORY_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (ACE_MEMORY_NTRACE)
+# if (ACE_NTRACE == 1)
+# define ACE_MEMORY_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define ACE_MEMORY_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !ACE_MEMORY_NTRACE */
+
+#if (ACE_MEMORY_NTRACE == 1)
+# define ACE_MEMORY_TRACE(X)
+#else /* (ACE_MEMORY_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define ACE_MEMORY_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (ACE_MEMORY_NTRACE == 1) */
+
+#endif /* ACE_MEMORY_EXPORT_H */
+
+// End of auto generated file.
diff --git a/ace/ACE_Reactor_export.h b/ace/ACE_Reactor_export.h
new file mode 100644
index 00000000000..8ec100011e8
--- /dev/null
+++ b/ace/ACE_Reactor_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s ACE_Reactor
+// ------------------------------
+#ifndef ACE_REACTOR_EXPORT_H
+#define ACE_REACTOR_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (ACE_REACTOR_HAS_DLL)
+# define ACE_REACTOR_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && ACE_REACTOR_HAS_DLL */
+
+#if !defined (ACE_REACTOR_HAS_DLL)
+# define ACE_REACTOR_HAS_DLL 1
+#endif /* ! ACE_REACTOR_HAS_DLL */
+
+#if defined (ACE_REACTOR_HAS_DLL) && (ACE_REACTOR_HAS_DLL == 1)
+# if defined (ACE_REACTOR_BUILD_DLL)
+# define ACE_Reactor_Export ACE_Proper_Export_Flag
+# define ACE_REACTOR_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define ACE_REACTOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* ACE_REACTOR_BUILD_DLL */
+# define ACE_Reactor_Export ACE_Proper_Import_Flag
+# define ACE_REACTOR_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define ACE_REACTOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* ACE_REACTOR_BUILD_DLL */
+#else /* ACE_REACTOR_HAS_DLL == 1 */
+# define ACE_Reactor_Export
+# define ACE_REACTOR_SINGLETON_DECLARATION(T)
+# define ACE_REACTOR_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* ACE_REACTOR_HAS_DLL == 1 */
+
+// Set ACE_REACTOR_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (ACE_REACTOR_NTRACE)
+# if (ACE_NTRACE == 1)
+# define ACE_REACTOR_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define ACE_REACTOR_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !ACE_REACTOR_NTRACE */
+
+#if (ACE_REACTOR_NTRACE == 1)
+# define ACE_REACTOR_TRACE(X)
+#else /* (ACE_REACTOR_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define ACE_REACTOR_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (ACE_REACTOR_NTRACE == 1) */
+
+#endif /* ACE_REACTOR_EXPORT_H */
+
+// End of auto generated file.
diff --git a/ace/ACE_Sockets_export.h b/ace/ACE_Sockets_export.h
new file mode 100644
index 00000000000..1c57c959dc9
--- /dev/null
+++ b/ace/ACE_Sockets_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s ACE_Sockets
+// ------------------------------
+#ifndef ACE_SOCKETS_EXPORT_H
+#define ACE_SOCKETS_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (ACE_SOCKETS_HAS_DLL)
+# define ACE_SOCKETS_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && ACE_SOCKETS_HAS_DLL */
+
+#if !defined (ACE_SOCKETS_HAS_DLL)
+# define ACE_SOCKETS_HAS_DLL 1
+#endif /* ! ACE_SOCKETS_HAS_DLL */
+
+#if defined (ACE_SOCKETS_HAS_DLL) && (ACE_SOCKETS_HAS_DLL == 1)
+# if defined (ACE_SOCKETS_BUILD_DLL)
+# define ACE_Sockets_Export ACE_Proper_Export_Flag
+# define ACE_SOCKETS_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define ACE_SOCKETS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* ACE_SOCKETS_BUILD_DLL */
+# define ACE_Sockets_Export ACE_Proper_Import_Flag
+# define ACE_SOCKETS_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define ACE_SOCKETS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* ACE_SOCKETS_BUILD_DLL */
+#else /* ACE_SOCKETS_HAS_DLL == 1 */
+# define ACE_Sockets_Export
+# define ACE_SOCKETS_SINGLETON_DECLARATION(T)
+# define ACE_SOCKETS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* ACE_SOCKETS_HAS_DLL == 1 */
+
+// Set ACE_SOCKETS_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (ACE_SOCKETS_NTRACE)
+# if (ACE_NTRACE == 1)
+# define ACE_SOCKETS_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define ACE_SOCKETS_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !ACE_SOCKETS_NTRACE */
+
+#if (ACE_SOCKETS_NTRACE == 1)
+# define ACE_SOCKETS_TRACE(X)
+#else /* (ACE_SOCKETS_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define ACE_SOCKETS_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (ACE_SOCKETS_NTRACE == 1) */
+
+#endif /* ACE_SOCKETS_EXPORT_H */
+
+// End of auto generated file.
diff --git a/ace/ACE_Threads_export.h b/ace/ACE_Threads_export.h
new file mode 100644
index 00000000000..d19193d9127
--- /dev/null
+++ b/ace/ACE_Threads_export.h
@@ -0,0 +1,58 @@
+
+// -*- C++ -*-
+// $Id$
+// Definition for Win32 Export directives.
+// This file is generated automatically by generate_export_file.pl -s ACE_Threads
+// ------------------------------
+#ifndef ACE_THREADS_EXPORT_H
+#define ACE_THREADS_EXPORT_H
+
+#include "ace/config-all.h"
+
+#if defined (ACE_AS_STATIC_LIBS) && !defined (ACE_THREADS_HAS_DLL)
+# define ACE_THREADS_HAS_DLL 0
+#endif /* ACE_AS_STATIC_LIBS && ACE_THREADS_HAS_DLL */
+
+#if !defined (ACE_THREADS_HAS_DLL)
+# define ACE_THREADS_HAS_DLL 1
+#endif /* ! ACE_THREADS_HAS_DLL */
+
+#if defined (ACE_THREADS_HAS_DLL) && (ACE_THREADS_HAS_DLL == 1)
+# if defined (ACE_THREADS_BUILD_DLL)
+# define ACE_Threads_Export ACE_Proper_Export_Flag
+# define ACE_THREADS_SINGLETON_DECLARATION(T) ACE_EXPORT_SINGLETON_DECLARATION (T)
+# define ACE_THREADS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# else /* ACE_THREADS_BUILD_DLL */
+# define ACE_Threads_Export ACE_Proper_Import_Flag
+# define ACE_THREADS_SINGLETON_DECLARATION(T) ACE_IMPORT_SINGLETON_DECLARATION (T)
+# define ACE_THREADS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* ACE_THREADS_BUILD_DLL */
+#else /* ACE_THREADS_HAS_DLL == 1 */
+# define ACE_Threads_Export
+# define ACE_THREADS_SINGLETON_DECLARATION(T)
+# define ACE_THREADS_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#endif /* ACE_THREADS_HAS_DLL == 1 */
+
+// Set ACE_THREADS_NTRACE = 0 to turn on library specific tracing even if
+// tracing is turned off for ACE.
+#if !defined (ACE_THREADS_NTRACE)
+# if (ACE_NTRACE == 1)
+# define ACE_THREADS_NTRACE 1
+# else /* (ACE_NTRACE == 1) */
+# define ACE_THREADS_NTRACE 0
+# endif /* (ACE_NTRACE == 1) */
+#endif /* !ACE_THREADS_NTRACE */
+
+#if (ACE_THREADS_NTRACE == 1)
+# define ACE_THREADS_TRACE(X)
+#else /* (ACE_THREADS_NTRACE == 1) */
+# if !defined (ACE_HAS_TRACE)
+# define ACE_HAS_TRACE
+# endif /* ACE_HAS_TRACE */
+# define ACE_THREADS_TRACE(X) ACE_TRACE_IMPL(X)
+# include "ace/Trace.h"
+#endif /* (ACE_THREADS_NTRACE == 1) */
+
+#endif /* ACE_THREADS_EXPORT_H */
+
+// End of auto generated file.
diff --git a/ace/ACE_crc32.cpp b/ace/ACE_crc32.cpp
index f9e91c652ce..1320ed59085 100644
--- a/ace/ACE_crc32.cpp
+++ b/ace/ACE_crc32.cpp
@@ -104,9 +104,6 @@ namespace
#define COMPUTE(var, ch) (var) = (crc_table[(var ^ ch) & 0xFF] ^ (var >> 8))
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_UINT32
ACE::crc32 (const char *string)
{
@@ -146,7 +143,7 @@ ACE::crc32 (const iovec *iov, int len, ACE_UINT32 crc)
for (int i = 0; i < len; ++i)
{
for (const char *p = (const char *) iov[i].iov_base,
- *e = (const char *) iov[i].iov_base + iov[i].iov_len;
+ *e = (const char *) iov[i].iov_base + iov[i].iov_len;
p != e;
++p)
COMPUTE (crc, *p);
@@ -155,7 +152,4 @@ ACE::crc32 (const iovec *iov, int len, ACE_UINT32 crc)
return ~crc;
}
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#undef COMPUTE
diff --git a/ace/ACE_crc_ccitt.cpp b/ace/ACE_crc_ccitt.cpp
index f591b53aa10..e81f3419831 100644
--- a/ace/ACE_crc_ccitt.cpp
+++ b/ace/ACE_crc_ccitt.cpp
@@ -71,9 +71,6 @@ namespace
#define COMPUTE(var, ch) (var) = (crc_table[(var ^ ch) & 0xFF] ^ (var >> 8))
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_UINT16
ACE::crc_ccitt (const char *string)
{
@@ -113,7 +110,7 @@ ACE::crc_ccitt (const iovec *iov, int len, ACE_UINT16 crc)
for (int i = 0; i < len; ++i)
{
for (const char *p = (const char *) iov[i].iov_base,
- *e = (const char *) iov[i].iov_base + iov[i].iov_len;
+ *e = (const char *) iov[i].iov_base + iov[i].iov_len;
p != e;
++p)
COMPUTE (crc, *p);
@@ -122,7 +119,4 @@ ACE::crc_ccitt (const iovec *iov, int len, ACE_UINT16 crc)
return ~crc;
}
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#undef COMPUTE
diff --git a/ace/ACE_export.h b/ace/ACE_export.h
index e14f71bad90..ac0722f3d90 100644
--- a/ace/ACE_export.h
+++ b/ace/ACE_export.h
@@ -52,21 +52,13 @@
#if defined (__ACE_INLINE__)
# if defined (_MSC_VER) || defined (__MINGW32__) || defined (CYGWIN32) || \
- (defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x560) || \
- (defined (__HP_aCC) && (__HP_aCC >= 60500))
+ (defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x560)
# define ACE_NAMESPACE_INLINE_FUNCTION inline
# else
# define ACE_NAMESPACE_INLINE_FUNCTION ACE_NAMESPACE_STORAGE_CLASS inline
# endif
-# define ACE_INLINE_TEMPLATE_FUNCTION inline
#else
# define ACE_NAMESPACE_INLINE_FUNCTION ACE_NAMESPACE_STORAGE_CLASS
-// Microsoft Visual C++ will accept 'extern'; others refuse.
-# if defined (_MSC_VER) || defined (__BORLANDC__)
-# define ACE_INLINE_TEMPLATE_FUNCTION ACE_Export
-# else
-# define ACE_INLINE_TEMPLATE_FUNCTION
-# endif
#endif
#endif /* ACE_EXPORT_H */
diff --git a/ace/ARGV.cpp b/ace/ARGV.cpp
index d0299a407b0..8109c3c215c 100644
--- a/ace/ARGV.cpp
+++ b/ace/ARGV.cpp
@@ -1,3 +1,4 @@
+// ARGV.cpp
// $Id$
// Transforms a string BUF into an ARGV-style vector of strings.
@@ -15,9 +16,6 @@
ACE_RCSID(ace, ARGV, "$Id$")
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_ARGV)
void
@@ -66,7 +64,7 @@ ACE_ARGV::argv_to_string (ACE_TCHAR **argv, ACE_TCHAR *&buf)
}
ACE_ARGV::ACE_ARGV (const ACE_TCHAR buf[],
- int substitute_env_args)
+ int substitute_env_args)
: substitute_env_args_ (substitute_env_args),
state_ (TO_PTR_ARRAY),
argc_ (0),
@@ -93,7 +91,7 @@ ACE_ARGV::ACE_ARGV (const ACE_TCHAR buf[],
}
ACE_ARGV::ACE_ARGV (ACE_TCHAR *argv[],
- int substitute_env_args)
+ int substitute_env_args)
: substitute_env_args_ (substitute_env_args),
state_ (TO_STRING),
argc_ (0),
@@ -199,7 +197,7 @@ ACE_ARGV::add (const ACE_TCHAR *next_arg)
if (this->argv_ != 0)
{
for (int i = 0; this->argv_[i] != 0; i++)
- ACE_OS::free ((void *) this->argv_[i]);
+ ACE_OS::free ((void *) this->argv_[i]);
delete [] this->argv_;
this->argv_ = 0;
@@ -256,7 +254,7 @@ ACE_ARGV::create_buf_from_queue (void)
// Get an iterator over the queue
ACE_Unbounded_Queue_Iterator<ACE_TCHAR *> iter (this->queue_);
- ACE_TCHAR **arg = 0;
+ ACE_TCHAR **arg;
ACE_TCHAR *ptr = this->buf_;
size_t len;
int more = 0;
@@ -279,7 +277,7 @@ ACE_ARGV::create_buf_from_queue (void)
// Put in an argument separating space.
if (more != 0)
- *ptr++ = ' ';
+ *ptr++ = ' ';
}
// Put in the NUL terminator
@@ -297,6 +295,3 @@ template class ACE_Node<ACE_TCHAR *>;
#pragma instantiate ACE_Unbounded_Queue_Iterator<ACE_TCHAR *>
#pragma instantiate ACE_Node<ACE_TCHAR *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ARGV.h b/ace/ARGV.h
index f7c0468b151..9cb3ff73474 100644
--- a/ace/ARGV.h
+++ b/ace/ARGV.h
@@ -23,24 +23,22 @@
#include "ace/Unbounded_Queue.h"
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
- * @class ACE_ARGV
+ * @class ACE_TARGV
*
* @brief Builds a counted argument vector (ala argc/argv) from either
* a string or a set of separate tokens. Can substitute environment
* variable values for tokens that are environment variable references.
*/
-class ACE_Export ACE_ARGV
+template < typename CHAR_TYPE = char >
+class ACE_TARGV
{
public:
// = Initialization and termination.
/**
* Splits the specified string into an argument vector, split at whitespace.
*
- * @param buf An ACE_TCHAR array to split into tokens for the vector.
+ * @param buf An CHAR_TYPE array to split into tokens for the vector.
*
* @param substitute_env_args If non-zero, any token that is an
* an environment variable reference ($VAR) will have
@@ -51,57 +49,57 @@ public:
* references within a token. For example, @c $HOME/file will
* not substitute the value of the HOME environment variable.
*/
- ACE_ARGV (const ACE_TCHAR buf[],
+ ACE_TARGV (const CHAR_TYPE buf[],
int substitute_env_args = 1);
/**
* Converts @a argv into a linear string. If @a substitute_env_args
* is enabled then we'll substitute the environment variables for
* each $ENV encountered in the string. The <buf> operation is not
- * allowed on an ACE_ARGV created this way.
+ * allowed on an ACE_TARGV created this way.
*/
- ACE_ARGV (ACE_TCHAR *argv[],
+ ACE_TARGV (CHAR_TYPE *argv[],
int substitute_env_args = 1);
/**
- * Creates an ACE_ARGV which is the concatenation of the first_argv
+ * Creates an ACE_TARGV which is the concatenation of the first_argv
* and the second argv. The argv arguments should be null pointer
* terminated.
*/
- ACE_ARGV (ACE_TCHAR *first_argv[],
- ACE_TCHAR *second_argv[],
+ ACE_TARGV (CHAR_TYPE *first_argv[],
+ CHAR_TYPE *second_argv[],
int substitute_env_args =1);
/**
- * Entry point for creating an ACE_TCHAR *[] command line
+ * Entry point for creating an CHAR_TYPE *[] command line
* iteratively via the <add> method. When this constructor is used,
* the <ITERATIVE> state is enabled. The <argv> and <buf> methods
* are allowed, and the result is recreated when called multiple
* times. The subscript operator is not allowed.
*/
- ACE_ARGV (int substitute_env_args = 1);
+ ACE_TARGV (int substitute_env_args = 1);
/// Destructor.
- ~ACE_ARGV (void);
+ ~ACE_TARGV (void);
// = Accessor arguments.
/// Returns the <index>th string in the ARGV array.
- const ACE_TCHAR *operator[] (size_t index);
+ const CHAR_TYPE *operator[] (size_t index);
/**
* Returns the @c argv array. Caller should not delete this memory
- * since the ACE_ARGV destructor will delete it. If the caller
+ * since the ACE_TARGV destructor will delete it. If the caller
* modifies the array in the iterative mode, the changes are not
* saved to the queue.
*/
- ACE_TCHAR **argv (void);
+ CHAR_TYPE **argv (void);
/// Returns @c argc.
int argc (void) const;
/// Returns the @c buf. Caller should not delete this memory since
- /// the ACE_ARGV destructor will delete it.
- const ACE_TCHAR *buf (void);
+ /// the ACE_TARGV destructor will delete it.
+ const CHAR_TYPE *buf (void);
/// Dump the state of an object.
void dump (void) const;
@@ -114,45 +112,45 @@ public:
/// assume ownership of managing its memory, i.e., the caller is
/// responsible for memory management. Returns -1 on failure and 0
/// on success.
- int add (const ACE_TCHAR *next_arg);
+ int add (const CHAR_TYPE *next_arg);
/**
* Add another @a argv array. The @a argv parameter must be NULL
* terminated. This only works in the <ITERATIVE> state. Returns
* -1 on failure and 0 on success.
*/
- int add (ACE_TCHAR *argv[]);
+ int add (CHAR_TYPE *argv[]);
- /// What state is this ACE_ARGV in?
+ /// What state is this ACE_TARGV in?
int state (void) const;
// These are the states possible via the different constructors.
enum States
{
- /// ACE_ARGV converts buf[] to ACE_TCHAR *argv[]
+ /// ACE_TARGV converts buf[] to CHAR_TYPE *argv[]
TO_STRING = 1,
- /// ACE_ARGV converts ACE_TCHAR *argv[] to buf[]
+ /// ACE_TARGV converts CHAR_TYPE *argv[] to buf[]
TO_PTR_ARRAY = 2,
- /// Builds buf[] or ACE_TCHAR *argv[] iteratively with <add>.
+ /// Builds buf[] or CHAR_TYPE *argv[] iteratively with <add>.
ITERATIVE = 3
};
private:
/// Copy Constructor not implemented
- ACE_ARGV (const ACE_ARGV&);
+ ACE_TARGV (const ACE_TARGV&);
/// Assignment '=' operator not implemented
- ACE_ARGV operator= (const ACE_ARGV&);
+ ACE_TARGV operator= (const ACE_TARGV&);
/// Creates buf_ from the queue, deletes previous buf_.
int create_buf_from_queue (void);
- /// Converts buf_ into the ACE_TCHAR *argv[] format.
+ /// Converts buf_ into the CHAR_TYPE *argv[] format.
int string_to_argv (void);
/// Returns the string created from argv in buf and
/// returns the number of arguments.
- int argv_to_string (ACE_TCHAR **argv, ACE_TCHAR *&buf);
+ int argv_to_string (CHAR_TYPE **argv, CHAR_TYPE *&buf);
/// Replace args with environment variable values?
int substitute_env_args_;
@@ -164,10 +162,10 @@ private:
int argc_;
/// The array of string arguments.
- ACE_TCHAR **argv_;
+ CHAR_TYPE **argv_;
/// Buffer containing the <argv> contents.
- ACE_TCHAR *buf_;
+ CHAR_TYPE *buf_;
/// Total length of the arguments in the queue, not counting
/// separating spaces
@@ -175,15 +173,12 @@ private:
/// Queue which keeps user supplied arguments. This is only
/// active in the "iterative" mode.
- ACE_Unbounded_Queue<ACE_TCHAR *> queue_;
+ ACE_Unbounded_Queue<CHAR_TYPE *> queue_;
};
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
+typedef ACE_TARGV<ACE_TCHAR> ACE_ARGV;
-#if defined (__ACE_INLINE__)
#include "ace/ARGV.inl"
-#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* ACE_ARGUMENT_VECTOR_H */
diff --git a/ace/ARGV.inl b/ace/ARGV.inl
index 47711a486ee..168dd3da866 100644
--- a/ace/ARGV.inl
+++ b/ace/ARGV.inl
@@ -2,44 +2,316 @@
// $Id$
#include "ace/Global_Macros.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_NS_unistd.h"
+#include "ace/OS_NS_string.h"
+#include "ace/OS_Memory.h"
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+template < typename CHAR_TYPE > void
+ACE_TARGV<CHAR_TYPE>::dump (void) const
+{
+#if defined (ACE_HAS_DUMP)
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::dump");
+
+ ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("argc_ = %d"), this->argc_));
+
+ ACE_TARGV *this_obj = const_cast<ACE_TARGV *> (this);
+
+ for (int i = 0; i < this->argc_; i++)
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_LIB_TEXT ("\nargv_[%i] = %s"),
+ i,
+ this_obj->argv ()[i]));
+
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nbuf = %s\n"), this->buf_));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n")));
+ ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
+#endif /* ACE_HAS_DUMP */
+}
+
+// Creates this->argv_ out of this->buf_. New memory is allocated for
+// each element of the array. This is used by the array-to-string
+// style constructor and for creating this->argv_ when in iterative
+// mode.
+
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::string_to_argv (void)
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::string_to_argv");
+
+ return ACE_OS::string_to_argv (this->buf_,
+ this->argc_,
+ this->argv_,
+ this->substitute_env_args_);
+}
+
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::argv_to_string (CHAR_TYPE **argv, CHAR_TYPE *&buf)
+{
+ return ACE_OS::argv_to_string (argv, buf);
+}
+
+template < typename CHAR_TYPE >
+ACE_TARGV<CHAR_TYPE>::ACE_TARGV (const CHAR_TYPE buf[],
+ int substitute_env_args)
+ : substitute_env_args_ (substitute_env_args),
+ state_ (TO_PTR_ARRAY),
+ argc_ (0),
+ argv_ (0),
+ buf_ (0),
+ length_ (0),
+ queue_ ()
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::ACE_TARGV CHAR_TYPE[] to CHAR_TYPE *[]");
+
+ if (buf == 0 || buf[0] == 0)
+ return;
+
+ // Make an internal copy of the string.
+ ACE_NEW (this->buf_,
+ CHAR_TYPE[ACE_OS::strlen (buf) + 1]);
+ ACE_OS::strcpy (this->buf_, buf);
+
+ // Create this->argv_.
+ if (this->string_to_argv () == -1)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%p\n"),
+ ACE_LIB_TEXT ("string_to_argv")));
+}
+
+template < typename CHAR_TYPE >
+ACE_TARGV<CHAR_TYPE>::ACE_TARGV (CHAR_TYPE *argv[],
+ int substitute_env_args)
+ : substitute_env_args_ (substitute_env_args),
+ state_ (TO_STRING),
+ argc_ (0),
+ argv_ (0),
+ buf_ (0),
+ length_ (0),
+ queue_ ()
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::ACE_TARGV CHAR_TYPE*[] to CHAR_TYPE[]");
+
+ if (argv == 0 || argv[0] == 0)
+ return;
+
+ this->argc_ = ACE_OS::argv_to_string (argv, this->buf_, substitute_env_args);
+}
+
+template < typename CHAR_TYPE >
+ACE_TARGV<CHAR_TYPE>::ACE_TARGV (CHAR_TYPE *first_argv[],
+ CHAR_TYPE *second_argv[],
+ int substitute_env_args)
+ : substitute_env_args_ (substitute_env_args),
+ state_ (TO_STRING),
+ argc_ (0),
+ argv_ (0),
+ buf_ (0),
+ length_ (0),
+ queue_ ()
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::ACE_TARGV CHAR_TYPE*[] + CHAR_TYPE *[] to CHAR_TYPE[]");
+
+ int first_argc;
+ int second_argc;
+
+ CHAR_TYPE *first_buf;
+ CHAR_TYPE *second_buf;
+
+ // convert the first argv to a string
+ first_argc = this->argv_to_string (first_argv, first_buf);
+
+ // convert the second argv to a string
+ second_argc = this->argv_to_string (second_argv, second_buf);
+
+ // Add the number of arguments in both the argvs.
+ this->argc_ = first_argc + second_argc;
+
+ size_t buf_len =
+ ACE_OS::strlen (first_buf) + ACE_OS::strlen (second_buf) + 1;
+
+ // Allocate memory to the lenght of the combined argv string.
+ ACE_NEW (this->buf_,
+ CHAR_TYPE[buf_len + 1]);
+
+ // copy the first argv string to the buffer
+ ACE_OS::strcpy (this->buf_, first_buf);
+
+ // concatenate the second argv string to the buffer
+ ACE_OS::strcat (this->buf_, second_buf);
+
+ // Delete the first and second buffers
+
+ delete [] first_buf;
+
+ delete [] second_buf;
+}
+
+template < typename CHAR_TYPE >
+ACE_TARGV<CHAR_TYPE>::ACE_TARGV (int substitute_env_args)
+ : substitute_env_args_ (substitute_env_args),
+ state_ (ITERATIVE),
+ argc_ (0),
+ argv_ (0),
+ buf_ (0),
+ length_ (0),
+ queue_ ()
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::ACE_TARGV Iterative");
+
+ // Nothing to do yet -- the user puts in arguments via add ()
+}
+
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::add (const CHAR_TYPE *next_arg)
+{
+ // Only allow this to work in the "iterative" verion -- the
+ // ACE_TARGVs created with the one argument constructor.
+ if (this->state_ != ITERATIVE)
+ {
+ errno = EINVAL;
+ return -1;
+ }
+
+ // Put the new argument at the end of the queue.
+ if (this->queue_.enqueue_tail (const_cast <CHAR_TYPE *> (next_arg)) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_LIB_TEXT ("Can't add more to ARGV queue")),
+ -1);
+
+ this->length_ += ACE_OS::strlen (next_arg);
+
+ this->argc_++;
+
+ // Wipe argv_ and buf_ away so that they will be recreated if the
+ // user calls argv () or buf ().
+ if (this->argv_ != 0)
+ {
+ for (int i = 0; this->argv_[i] != 0; i++)
+ ACE_OS::free ((void *) this->argv_[i]);
+
+ delete [] this->argv_;
+ this->argv_ = 0;
+ }
+
+ delete [] this->buf_;
+ this->buf_ = 0;
+
+ return 0;
+}
+
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::add (CHAR_TYPE *argv[])
+{
+ for (int i = 0; argv[i] != 0; i++)
+ if (this->add (argv[i]) == -1)
+ return -1;
+
+ return 0;
+}
+
+// Free up argv_ and buf_
+template < typename CHAR_TYPE >
+ACE_TARGV<CHAR_TYPE>::~ACE_TARGV (void)
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::~ACE_TARGV");
+
+ if (this->argv_ != 0)
+ for (int i = 0; this->argv_[i] != 0; i++)
+ ACE_OS::free ((void *) this->argv_[i]);
+
+ delete [] this->argv_;
+ delete [] this->buf_;
+}
+
+// Create buf_ out of the queue_. This is only used in the
+// "iterative" mode.
+
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::create_buf_from_queue (void)
+{
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::create_buf_from_queue");
+
+ // If the are no arguments, don't do anything
+ if (this->argc_ <= 0)
+ return -1;
+
+ delete [] this->buf_;
+
+ ACE_NEW_RETURN (this->buf_,
+ CHAR_TYPE[this->length_ + this->argc_],
+ -1);
+
+ // Get an iterator over the queue
+ ACE_Unbounded_Queue_Iterator<CHAR_TYPE *> iter (this->queue_);
+
+ CHAR_TYPE **arg;
+ CHAR_TYPE *ptr = this->buf_;
+ size_t len;
+ int more = 0;
+
+ while (!iter.done ())
+ {
+ // Get next argument from the queue.
+ iter.next (arg);
+
+ more = iter.advance ();
+
+ len = ACE_OS::strlen (*arg);
+
+ // Copy the argument into buf_
+ ACE_OS::memcpy ((void *) ptr,
+ (const void *) (*arg),
+ len * sizeof (CHAR_TYPE));
+ // Move the pointer down.
+ ptr += len;
+
+ // Put in an argument separating space.
+ if (more != 0)
+ *ptr++ = ' ';
+ }
+
+ // Put in the NUL terminator
+ *ptr = '\0';
+
+ return 0;
+}
// Return the number of args
-ACE_INLINE int
-ACE_ARGV::argc (void) const
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::argc (void) const
{
- ACE_TRACE ("ACE_ARGV::argc");
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::argc");
return this->argc_;
}
-// Return the state of this ACE_ARGV
-ACE_INLINE int
-ACE_ARGV::state(void) const
+// Return the state of this ACE_TARGV
+template < typename CHAR_TYPE > int
+ACE_TARGV<CHAR_TYPE>::state(void) const
{
- ACE_TRACE ("ACE_ARGV::state");
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::state");
return this->state_;
}
// Return the arguments in a space-separated string
-ACE_INLINE const ACE_TCHAR *
-ACE_ARGV::buf (void)
+template < typename CHAR_TYPE > const CHAR_TYPE *
+ACE_TARGV<CHAR_TYPE>::buf (void)
{
- ACE_TRACE ("ACE_ARGV::buf");
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::buf");
if (this->buf_ == 0 && this->state_ == ITERATIVE)
this->create_buf_from_queue ();
- return (const ACE_TCHAR *) this->buf_;
+ return (const CHAR_TYPE *) this->buf_;
}
// Return the arguments in an entry-per-argument array
-ACE_INLINE ACE_TCHAR **
-ACE_ARGV::argv (void)
+template < typename CHAR_TYPE > CHAR_TYPE **
+ACE_TARGV<CHAR_TYPE>::argv (void)
{
- ACE_TRACE ("ACE_ARGV::argv");
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::argv");
// Try to create the argv_ if it isn't there
if (this->argv_ == 0)
@@ -49,25 +321,22 @@ ACE_ARGV::argv (void)
// Convert buf_ to argv_
if (this->string_to_argv () == -1)
- return (ACE_TCHAR **) 0;
+ return (CHAR_TYPE **) 0;
}
- return (ACE_TCHAR **) this->argv_;
+ return (CHAR_TYPE **) this->argv_;
}
// Subscript operator.
-ACE_INLINE const ACE_TCHAR *
-ACE_ARGV::operator[] (size_t i)
+template < typename CHAR_TYPE > const CHAR_TYPE *
+ACE_TARGV<CHAR_TYPE>::operator[] (size_t i)
{
- ACE_TRACE ("ACE_ARGV::operator[]");
+ ACE_TRACE ("ACE_TARGV<CHAR_TYPE>::operator[]");
// Don't go out of bounds.
if (i >= static_cast<size_t> (this->argc_))
return 0;
- return (const ACE_TCHAR *) this->argv ()[i];
+ return (const CHAR_TYPE *) this->argv ()[i];
}
-
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ATM_Acceptor.cpp b/ace/ATM_Acceptor.cpp
index 1210917a0c5..41273857113 100644
--- a/ace/ATM_Acceptor.cpp
+++ b/ace/ATM_Acceptor.cpp
@@ -14,10 +14,6 @@ ACE_RCSID(ace, ATM_Acceptor, "$Id$")
#include "ace/ATM_Acceptor.inl"
#endif /* __ACE_INLINE__ */
-
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Put the actual definitions of the ACE_ATM_Request and
// ACE_ATM_Request_Queue classes here to hide them from clients...
@@ -302,8 +298,4 @@ ACE_ATM_Acceptor::accept (ACE_ATM_Stream &new_sap,
#endif /* ACE_HAS_FORE_ATM_XTI */
}
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
#endif /* ACE_HAS_ATM */
diff --git a/ace/ATM_Acceptor.h b/ace/ATM_Acceptor.h
index 2f48f07638f..6305013601f 100644
--- a/ace/ATM_Acceptor.h
+++ b/ace/ATM_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -33,21 +33,14 @@
#if defined (ACE_HAS_FORE_ATM_WS2) || defined (ACE_HAS_LINUX_ATM)
#include "ace/SOCK_Acceptor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_SOCK_Acceptor ATM_Acceptor;
-ACE_END_VERSIONED_NAMESPACE_DECL
#elif defined (ACE_HAS_FORE_ATM_XTI)
#include "ace/TLI_Acceptor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_TLI_Acceptor ATM_Acceptor;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif // ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
-class ACE_Time_Value;
+class ACE_Time_Value
/**
* @class ACE_ATM_Acceptor
@@ -82,8 +75,8 @@ public:
// = Passive connection acceptance method.
- /// Accept a new data transfer connection. A @a timeout of 0 means
- /// block forever, a @a timeout of {0, 0} means poll. @a restart == 1
+ /// Accept a new data transfer connection. A <timeout> of 0 means
+ /// block forever, a <timeout> of {0, 0} means poll. <restart> == 1
/// means "restart if interrupted."
int accept (ACE_ATM_Stream &new_sap,
ACE_Addr *remote_addr = 0,
@@ -110,10 +103,6 @@ private:
ATM_Acceptor acceptor_;
};
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (__ACE_INLINE__)
#include "ace/ATM_Acceptor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ATM_Acceptor.inl b/ace/ATM_Acceptor.inl
index b63b68a9621..ba0630dd6d6 100644
--- a/ace/ATM_Acceptor.inl
+++ b/ace/ATM_Acceptor.inl
@@ -1,9 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ATM_Acceptor.i
ACE_INLINE void
ACE_ATM_Acceptor::dump (void) const
@@ -37,6 +35,3 @@ ACE_ATM_Acceptor::close (void)
return 0;
#endif // ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM
}
-
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ATM_Addr.cpp b/ace/ATM_Addr.cpp
index 1c30b7f7a9a..17cb7ef87c6 100644
--- a/ace/ATM_Addr.cpp
+++ b/ace/ATM_Addr.cpp
@@ -17,8 +17,6 @@
ACE_RCSID(ace, ATM_Addr, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_ATM_Addr)
#if defined (ACE_HAS_FORE_ATM_XTI) || defined (ACE_HAS_FORE_ATM_WS2)
@@ -323,7 +321,7 @@ ACE_ATM_Addr::string_to_addr (const ACE_TCHAR sap[])
== SOCKET_ERROR) {
ACE_OS::printf ("Error: WSALookupServiceBeginW failed! %d\n",
::WSAGetLastError ());
- return -1;
+ return -1;
}
dwValue = sizeof (WSAQUERYSETW);
@@ -333,7 +331,7 @@ ACE_ATM_Addr::string_to_addr (const ACE_TCHAR sap[])
if (WSAGetLastError () != WSA_E_NO_MORE) {
ACE_OS::printf ("Error: WSALookupServiceNextW failed! %d\n",
::WSAGetLastError ());
- return -1;
+ return -1;
}
}
@@ -400,11 +398,11 @@ ACE_ATM_Addr::addr_to_string (ACE_TCHAR addr[],
int i;
if (addrlen < ATM_ADDR_SIZE + 1)
- return -1;
+ return -1;
for (i = 0; i < ATM_ADDR_SIZE; i++) {
buffer[ i * 3 ] = '\0';
- ACE_OS::sprintf (buffer, ACE_LIB_TEXT ("%s%02x."),
+ ACE_OS::sprintf (buffer, ACE_LIB_TEXT ("%s%02x."),
buffer,
atm_addr_.satm_number.Addr[ i ]);
}
@@ -517,6 +515,4 @@ ACE_ATM_Addr::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ATM */
diff --git a/ace/ATM_Addr.h b/ace/ATM_Addr.h
index c3f112e8c1c..f498d12baf4 100644
--- a/ace/ATM_Addr.h
+++ b/ace/ATM_Addr.h
@@ -26,21 +26,14 @@
#include "ace/Addr.h"
#if defined (ACE_HAS_FORE_ATM_XTI)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ATMSAPAddress ATM_Addr;
-ACE_END_VERSIONED_NAMESPACE_DECL
#elif defined (ACE_HAS_FORE_ATM_WS2)
#define FORE_NAME_SPACE NS_ALL
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef struct sockaddr_atm ATM_Addr;
-ACE_END_VERSIONED_NAMESPACE_DECL
#elif defined (ACE_HAS_LINUX_ATM)
#include /**/ "atm.h"
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//pbrandao:as Linux has this 2 structs separeted we "link it" here
typedef struct _linux_atm_addr
{
@@ -184,10 +177,6 @@ private:
ATM_Addr atm_addr_;
};
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (__ACE_INLINE__)
#include "ace/ATM_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ATM_Addr.inl b/ace/ATM_Addr.inl
index 8120c6d11d5..e2cf062a706 100644
--- a/ace/ATM_Addr.inl
+++ b/ace/ATM_Addr.inl
@@ -2,7 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE u_char
ACE_ATM_Addr::get_selector (void) const
@@ -33,5 +32,3 @@ ACE_ATM_Addr::set_selector (u_char selector)
ACE_UNUSED_ARG (selector);
#endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ATM_Connector.cpp b/ace/ATM_Connector.cpp
index bff8ddad5bd..07811ffc264 100644
--- a/ace/ATM_Connector.cpp
+++ b/ace/ATM_Connector.cpp
@@ -12,9 +12,6 @@ ACE_RCSID(ace, ATM_Connector, "$Id$")
#include "ace/ATM_Connector.inl"
#endif /* __ACE_INLINE__ */
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_ATM_Connector)
ACE_ATM_Connector::ACE_ATM_Connector (void)
@@ -132,7 +129,4 @@ ACE_ATM_Connector::connect (ACE_ATM_Stream &new_stream,
#endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
}
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ATM */
diff --git a/ace/ATM_Connector.h b/ace/ATM_Connector.h
index 8ac6b970439..151f3e9978b 100644
--- a/ace/ATM_Connector.h
+++ b/ace/ATM_Connector.h
@@ -28,20 +28,12 @@
#if defined (ACE_WIN32) || defined (ACE_HAS_LINUX_ATM)
#include "ace/SOCK_Connector.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_SOCK_Connector ATM_Connector;
-ACE_END_VERSIONED_NAMESPACE_DECL
#else
#include "ace/XTI_ATM_Mcast.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_XTI_ATM_Mcast ATM_Connector;
-// Open versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_ATM_Connector
*
@@ -157,9 +149,6 @@ private:
ATM_Connector connector_;
};
-// Open versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/ATM_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ATM_Connector.inl b/ace/ATM_Connector.inl
index f301aa781f5..50bde9ce55f 100644
--- a/ace/ATM_Connector.inl
+++ b/ace/ATM_Connector.inl
@@ -1,9 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ATM_Connector.i
ACE_INLINE void
ACE_ATM_Connector::dump (void) const
@@ -14,13 +12,13 @@ ACE_ATM_Connector::dump (void) const
}
ACE_INLINE
-ACE_ATM_Connector::ACE_ATM_Connector (ACE_ATM_Stream &new_stream,
- const ACE_ATM_Addr &remote_sap,
+ACE_ATM_Connector::ACE_ATM_Connector (ACE_ATM_Stream &new_stream,
+ const ACE_ATM_Addr &remote_sap,
ACE_ATM_Params params,
ACE_ATM_QoS options,
ACE_Time_Value *timeout,
- const ACE_ATM_Addr &local_sap,
- int reuse_addr,
+ const ACE_ATM_Addr &local_sap,
+ int reuse_addr,
int flags,
int perms)
{
@@ -31,11 +29,11 @@ ACE_ATM_Connector::ACE_ATM_Connector (ACE_ATM_Stream &new_stream,
options,
timeout,
local_sap,
- reuse_addr,
+ reuse_addr,
flags,
perms) == ACE_INVALID_HANDLE
&& timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
- ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"),
+ ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_ATM_Stream::ACE_ATM_Stream")));
}
@@ -43,9 +41,9 @@ ACE_ATM_Connector::ACE_ATM_Connector (ACE_ATM_Stream &new_stream,
ACE_INLINE
int
-ACE_ATM_Connector::complete (ACE_ATM_Stream &new_stream,
- ACE_ATM_Addr *remote_sap,
- ACE_Time_Value *tv)
+ACE_ATM_Connector::complete (ACE_ATM_Stream &new_stream,
+ ACE_ATM_Addr *remote_sap,
+ ACE_Time_Value *tv)
{
ACE_TRACE ("ACE_ATM_Connector::complete");
#if defined (ACE_HAS_ATM)
@@ -82,18 +80,18 @@ ACE_ATM_Connector::add_leaf (ACE_ATM_Stream &current_stream,
&cqos,
0,
(JL_SENDER_ONLY));
-
+
ACE_OS::printf( "ATM_Connector::add_leaf: connecting...\n" );
ACE_HANDLE result = ACE_OS::join_leaf(current_stream.get_handle(),
- (struct sockaddr *)saddr,
+ (struct sockaddr *)saddr,
addr_len,
qos_params);
-
- if ( result == ACE_INVALID_HANDLE )
- ACE_OS::printf( "ATM_Connector(add_leaf): connection failed, %d\n",
+
+ if ( result == ACE_INVALID_HANDLE )
+ ACE_OS::printf( "ATM_Connector(add_leaf): connection failed, %d\n",
::WSAGetLastError());
-
+
return (result != ACE_INVALID_HANDLE);
#elif defined (ACE_HAS_LINUX_ATM)
ACE_OS::printf("ATM_Connector(add_leaf): not yet implemented in Linux \n");
@@ -118,15 +116,13 @@ int
ACE_ATM_Connector::reset_new_handle (ACE_HANDLE handle)
{
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
- // Reset the event association
+ // Reset the event association
return ::WSAEventSelect ((SOCKET) handle,
0,
- 0);
+ 0);
#else /* !defined ACE_HAS_WINSOCK2 */
ACE_UNUSED_ARG (handle);
return 0;
#endif /* ACE_WIN32 */
}
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ATM_Params.cpp b/ace/ATM_Params.cpp
index cc6ec674ece..1777616858d 100644
--- a/ace/ATM_Params.cpp
+++ b/ace/ATM_Params.cpp
@@ -2,19 +2,15 @@
#include "ace/ATM_Params.h"
-#if defined (ACE_HAS_ATM)
-
ACE_RCSID(ace, ATM_Params, "$Id$")
+#if defined (ACE_HAS_ATM)
+
#if !defined (__ACE_INLINE__)
#include "ace/ATM_Params.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_ATM_Params)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ATM */
diff --git a/ace/ATM_Params.h b/ace/ATM_Params.h
index 2ae36a6a4a4..1056c1bb728 100644
--- a/ace/ATM_Params.h
+++ b/ace/ATM_Params.h
@@ -49,8 +49,6 @@ typedef int Param_Info;
typedef int Param_Udata;
#endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_ATM_Params
*
@@ -203,8 +201,6 @@ private:
int oflag_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/ATM_Params.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ATM_Params.inl b/ace/ATM_Params.inl
index 5d60f6ba920..4006d4d00b5 100644
--- a/ace/ATM_Params.inl
+++ b/ace/ATM_Params.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ATM_Params.i
ACE_INLINE void
ACE_ATM_Params::dump (void) const
@@ -97,7 +96,7 @@ ACE_ATM_Params::set_type (int type)
}
ACE_INLINE
-ACE_Protocol_Info*
+ACE_Protocol_Info*
ACE_ATM_Params::get_protocol_info( void )
{
ACE_TRACE ("ACE_ATM_Params::get_protocol_info");
@@ -105,7 +104,7 @@ ACE_ATM_Params::get_protocol_info( void )
}
ACE_INLINE
-void
+void
ACE_ATM_Params::set_protocol_info( ACE_Protocol_Info *protocol_info )
{
ACE_TRACE ("ACE_ATM_Params::set_protocol_info");
@@ -113,7 +112,7 @@ ACE_ATM_Params::set_protocol_info( ACE_Protocol_Info *protocol_info )
}
ACE_INLINE
-ACE_SOCK_GROUP
+ACE_SOCK_GROUP
ACE_ATM_Params::get_sock_group( void )
{
ACE_TRACE ("ACE_ATM_Params::get_sock_group");
@@ -121,7 +120,7 @@ ACE_ATM_Params::get_sock_group( void )
}
ACE_INLINE
-void
+void
ACE_ATM_Params::set_sock_group( ACE_SOCK_GROUP g )
{
ACE_TRACE ("ACE_ATM_Params::set_sock_group");
@@ -129,7 +128,7 @@ ACE_ATM_Params::set_sock_group( ACE_SOCK_GROUP g )
}
ACE_INLINE
-u_long
+u_long
ACE_ATM_Params::get_flags( void )
{
ACE_TRACE ("ACE_ATM_Params::get_flags");
@@ -137,7 +136,7 @@ ACE_ATM_Params::get_flags( void )
}
ACE_INLINE
-void
+void
ACE_ATM_Params::set_flags( u_long flags)
{
ACE_TRACE ("ACE_ATM_Params::set_flags");
@@ -232,4 +231,3 @@ ACE_ATM_Params::set_oflag (int oflag)
oflag_ = oflag;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ATM_QoS.cpp b/ace/ATM_QoS.cpp
index 814834571cf..6d713cf8579 100644
--- a/ace/ATM_QoS.cpp
+++ b/ace/ATM_QoS.cpp
@@ -10,8 +10,6 @@ ACE_RCSID(ace, ATM_QoS, "$Id$")
#include "ace/ATM_QoS.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_FORE_ATM_XTI) || defined (ACE_HAS_FORE_ATM_WS2)
#define BHLI_MAGIC "FORE_ATM"
// This is line rate in cells/s for an OC-3 MM interface.
@@ -155,25 +153,25 @@ ACE_ATM_QoS::ACE_ATM_QoS(int rate,
+ sizeof( ATM_QOS_CLASS_IE );
ACE_OS::memcpy(ie_ptr->IE, &ie_qos, sizeof(ATM_QOS_CLASS_IE));
- // qos_.SendingFlowspec.TokenRate = 0xffffffff;
- // qos_.SendingFlowspec.TokenBucketSize = 0xffffffff;
- // qos_.SendingFlowspec.PeakBandwidth = 0xffffffff;
- // qos_.SendingFlowspec.Latency = 0xffffffff;
- // qos_.SendingFlowspec.DelayVariation = 0xffffffff;
- // qos_.SendingFlowspec.ServiceType = SERVICETYPE_BESTEFFORT;
+ // qos_.SendingFlowspec.TokenRate = 0xffffffff;
+ // qos_.SendingFlowspec.TokenBucketSize = 0xffffffff;
+ // qos_.SendingFlowspec.PeakBandwidth = 0xffffffff;
+ // qos_.SendingFlowspec.Latency = 0xffffffff;
+ // qos_.SendingFlowspec.DelayVariation = 0xffffffff;
+ // qos_.SendingFlowspec.ServiceType = SERVICETYPE_BESTEFFORT;
// This will most probably be ignored by the service provider.
- // qos_.SendingFlowspec.MaxSduSize = 0xffffffff;
- // qos_.SendingFlowspec.MinimumPolicedSize = 0xffffffff;
-
- // qos_.ReceivingFlowspec.TokenRate = 0xffffffff;
- // qos_.ReceivingFlowspec.TokenBucketSize = 0xffffffff;
- // qos_.ReceivingFlowspec.PeakBandwidth = 0xffffffff;
- // qos_.ReceivingFlowspec.Latency = 0xffffffff;
- // qos_.ReceivingFlowspec.DelayVariation = 0xffffffff;
- // qos_.ReceivingFlowspec.ServiceType = SERVICETYPE_BESTEFFORT;
+ // qos_.SendingFlowspec.MaxSduSize = 0xffffffff;
+ // qos_.SendingFlowspec.MinimumPolicedSize = 0xffffffff;
+
+ // qos_.ReceivingFlowspec.TokenRate = 0xffffffff;
+ // qos_.ReceivingFlowspec.TokenBucketSize = 0xffffffff;
+ // qos_.ReceivingFlowspec.PeakBandwidth = 0xffffffff;
+ // qos_.ReceivingFlowspec.Latency = 0xffffffff;
+ // qos_.ReceivingFlowspec.DelayVariation = 0xffffffff;
+ // qos_.ReceivingFlowspec.ServiceType = SERVICETYPE_BESTEFFORT;
// This will most probably be ignored by the service provider.
- // qos_.ReceivingFlowspec.MaxSduSize = 0xffffffff;
- // qos_.ReceivingFlowspec.MinimumPolicedSize = 0;
+ // qos_.ReceivingFlowspec.MaxSduSize = 0xffffffff;
+ // qos_.ReceivingFlowspec.MinimumPolicedSize = 0;
ACE_Flow_Spec send_fspec( 0xffffffff,
0xffffffff,
@@ -348,7 +346,7 @@ ACE_ATM_QoS::set_cbr_rate (int rate,
// Peak bandwidth is in bytes/sec. The rate is specified in cells/sec so
// we need to convert from cells/sec to bytes/sec (i.e., multiply by 53).
qos_.SendingFlowspec.PeakBandwidth = rate * BYTES_PER_ATM_CELL;
- qos_.SendingFlowspec.Latency = -1; // we don't care too much
+ qos_.SendingFlowspec.Latency = -1; // we don't care too much
qos_.SendingFlowspec.DelayVariation = -1; // we don't care too much
// no provider-specific data allowed on ATM
qos_.ProviderSpecific.buf=0;
@@ -480,7 +478,7 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
// signal the UNI 3.1 Calling Party ID Information Element.
t_atm_addr *source_addr;
- popt->len = sizeof (struct t_opthdr) + sizeof (t_atm_addr);
+ popt->len = sizeof (struct t_opthdr) + sizeof (t_atm_addr);
popt->level = T_ATM_SIGNALING;
popt->name = T_ATM_ORIG_ADDR;
popt->status = 0;
@@ -532,7 +530,7 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
struct t_atm_traffic *traffic;
// T_ATM_BEARER_CAP: Broadband bearer capability
- popt->len = sizeof (struct t_opthdr) + sizeof (struct t_atm_bearer);
+ popt->len = sizeof (struct t_opthdr) + sizeof (struct t_atm_bearer);
popt->level = T_ATM_SIGNALING;
popt->name = T_ATM_BEARER_CAP;
popt->status = 0;
@@ -548,7 +546,7 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
}
else
{
- bearer->traffic_type = 0; // UBR
+ bearer->traffic_type = 0; // UBR
bearer->timing_requirements = 0;
}
bearer->clipping_susceptibility = T_ATM_NULL;
@@ -561,7 +559,7 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
popt = T_OPT_NEXTHDR (buf, info.options, popt);
// T_ATM_TRAFFIC: traffic descriptor
- popt->len = sizeof (struct t_opthdr) + sizeof (struct t_atm_traffic);
+ popt->len = sizeof (struct t_opthdr) + sizeof (struct t_atm_traffic);
popt->level = T_ATM_SIGNALING;
popt->name = T_ATM_TRAFFIC;
popt->status = 0;
@@ -578,13 +576,13 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
traffic->forward.tagging = T_NO;
traffic->backward.PCR_high_priority = T_ATM_ABSENT;
- traffic->backward.PCR_all_traffic =
+ traffic->backward.PCR_all_traffic =
(ACE_BIT_ENABLED (flags, OPT_FLAGS_PMP))
? 0 : qos_cells ? qos_cells : LINE_RATE;
traffic->backward.SCR_high_priority = T_ATM_ABSENT;
- traffic->backward.SCR_all_traffic = T_ATM_ABSENT;
+ traffic->backward.SCR_all_traffic = T_ATM_ABSENT;
traffic->backward.MBS_high_priority = T_ATM_ABSENT;
- traffic->backward.MBS_all_traffic = T_ATM_ABSENT;
+ traffic->backward.MBS_all_traffic = T_ATM_ABSENT;
traffic->backward.tagging = T_NO;
traffic->best_effort = qos_cells ? T_NO : T_YES;
@@ -599,7 +597,7 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
struct t_atm_qos *qos;
// T_ATM_QOS: Quality of Service
- popt->len = sizeof (struct t_opthdr) + sizeof (struct t_atm_qos);
+ popt->len = sizeof (struct t_opthdr) + sizeof (struct t_atm_qos);
popt->level = T_ATM_SIGNALING;
popt->name = T_ATM_QOS;
popt->status = 0;
@@ -625,7 +623,5 @@ ACE_ATM_QoS::construct_options (ACE_HANDLE fd,
#endif /* ACE_HAS_FORE_ATM_WS2 */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ATM */
diff --git a/ace/ATM_QoS.h b/ace/ATM_QoS.h
index 41a4dafab6e..c29962d80fc 100644
--- a/ace/ATM_QoS.h
+++ b/ace/ATM_QoS.h
@@ -24,28 +24,18 @@
#if defined (ACE_HAS_ATM)
#if defined (ACE_HAS_FORE_ATM_WS2)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// just map to WS2 GQOS struct
typedef ACE_QoS ATM_QoS;
-ACE_END_VERSIONED_NAMESPACE_DECL
#elif defined (ACE_HAS_FORE_ATM_XTI)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef struct netbuf ATM_QoS;
-ACE_END_VERSIONED_NAMESPACE_DECL
#elif defined (ACE_HAS_LINUX_ATM)
#include /**/ "atm.h"
#include "ace/ATM_Params.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef struct atm_qos ATM_QoS;
-ACE_END_VERSIONED_NAMESPACE_DECL
#else
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef int ATM_QoS;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_FORE_ATM_WS2 || ACE_HAS_FORE_ATM_XTI || ACE_HAS_LINUX_ATM */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_ATM_QoS
*
@@ -104,8 +94,6 @@ private:
ATM_QoS qos_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/ATM_QoS.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ATM_QoS.inl b/ace/ATM_QoS.inl
index 283baa3f560..ac5b7de890f 100644
--- a/ace/ATM_QoS.inl
+++ b/ace/ATM_QoS.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ATM_QoS.i
ACE_INLINE void
ACE_ATM_QoS::dump (void) const
@@ -25,5 +24,3 @@ ACE_ATM_QoS::get_qos (void)
ACE_TRACE ("ACE_ATM_QoS::get_qos");
return qos_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ATM_Stream.cpp b/ace/ATM_Stream.cpp
index c6de5d4b533..898a627c694 100644
--- a/ace/ATM_Stream.cpp
+++ b/ace/ATM_Stream.cpp
@@ -10,8 +10,6 @@ ACE_RCSID (ace, ATM_Stream, "$Id$")
#include "ace/ATM_Stream.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_ATM_Stream)
char*
@@ -285,6 +283,4 @@ ACE_ATM_Stream::get_vpi_vci (ACE_UINT16 &vpi,
#endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ATM */
diff --git a/ace/ATM_Stream.h b/ace/ATM_Stream.h
index e1bb9257c9e..7741eeab366 100644
--- a/ace/ATM_Stream.h
+++ b/ace/ATM_Stream.h
@@ -28,18 +28,12 @@
#if defined (ACE_WIN32)
#include "ace/SOCK_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_SOCK_Stream ATM_Stream;
-ACE_END_VERSIONED_NAMESPACE_DECL
#else
#include "ace/TLI_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_TLI_Stream ATM_Stream;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_ATM_Stream
*
@@ -96,8 +90,6 @@ private:
ATM_Stream stream_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/ATM_Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/ATM_Stream.inl b/ace/ATM_Stream.inl
index b796af474e7..9c11fd93b7c 100644
--- a/ace/ATM_Stream.inl
+++ b/ace/ATM_Stream.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ATM_Stream.i
ACE_INLINE void
ACE_ATM_Stream::dump (void) const
@@ -130,4 +129,3 @@ ACE_ATM_Stream::send_n (const void *buf,
#endif /* ACE_HAS_FORE_ATM_XTI */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Acceptor.cpp b/ace/Acceptor.cpp
index 8dfb0662c49..bd6435f1a77 100644
--- a/ace/Acceptor.cpp
+++ b/ace/Acceptor.cpp
@@ -19,8 +19,6 @@ ACE_RCSID (ace,
Acceptor,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Acceptor)
template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> void
@@ -1223,6 +1221,4 @@ ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::operator ACE_PEER_ACCEPT
return (ACE_PEER_ACCEPTOR &) this->peer_acceptor_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_ACCEPTOR_CPP */
diff --git a/ace/Acceptor.h b/ace/Acceptor.h
index a1ebcd9c055..138c6766de3 100644
--- a/ace/Acceptor.h
+++ b/ace/Acceptor.h
@@ -24,7 +24,6 @@
#include "ace/Strategies_T.h"
#include "ace/Synch_Options.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Acceptor
@@ -65,37 +64,16 @@ public:
int use_select = 1);
/**
- * Open the contained @c PEER_ACCEPTOR object to begin listening, and
- * register with the specified reactor for accept events. An
- * acceptor can only listen to one port at a time, so make sure to
- * @c close() the acceptor before calling @c open() again.
- *
- * The @c PEER_ACCEPTOR handle is put into non-blocking mode as a
- * safeguard against the race condition that can otherwise occur
- * between the time when the passive-mode socket handle is "ready"
- * and when the actual @c accept() call is made. During this
- * interval, the client can shutdown the connection, in which case,
- * the @c accept() call can hang.
- *
- * @param local_addr The address to listen at.
- * @param reactor Pointer to the ACE_Reactor instance to register
- * this object with. The default is the singleton.
- * @param flags Flags to control what mode an accepted socket
- * will be put into after it is accepted. The only
- * legal value for this argument is @c ACE_NONBLOCK,
- * which enables non-blocking mode on the accepted
- * peer stream object in @c SVC_HANDLER. The default
- * is 0.
- * @param use_select Affects behavior when called back by the reactor
- * when a connection can be accepted. If non-zero,
- * this object will accept all pending connections,
- * intead of just the one that triggered the reactor
- * callback. Uses ACE_OS::select() internally to
- * detect any remaining acceptable connections.
- * The default is 1.
- * @param reuse_addr Passed to the @c PEER_ACCEPTOR::open() method with
- * @p local_addr. Generally used to request that the
- * OS allow reuse of the listen port. The default is 1.
+ * Initialize and register {this} with the Reactor and listen for
+ * connection requests at the designated {local_addr}. {flags}
+ * indicates how {SVC_HANDLER}'s should be initialized prior to
+ * being activated. Right now, the only flag that is processed is
+ * {ACE_NONBLOCK}, which enabled non-blocking I/O on the
+ * {SVC_HANDLER} when it is opened. If {use_select} is non-zero
+ * then {select} is used to determine when to break out of the
+ * {accept} loop. {reuse_addr} is passed down to the
+ * {PEER_ACCEPTOR}. If it is non-zero this will allow the OS to
+ * reuse this listen port.
*/
ACE_Acceptor (const ACE_PEER_ACCEPTOR_ADDR &local_addr,
ACE_Reactor * = ACE_Reactor::instance (),
@@ -105,9 +83,7 @@ public:
/**
* Open the contained @c PEER_ACCEPTOR object to begin listening, and
- * register with the specified reactor for accept events. An
- * acceptor can only listen to one port at a time, so make sure to
- * @c close() the acceptor before calling @c open() again.
+ * register with the specified reactor for accept events.
*
* The @c PEER_ACCEPTOR handle is put into non-blocking mode as a
* safeguard against the race condition that can otherwise occur
@@ -668,8 +644,6 @@ private:
int delete_concurrency_strategy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Acceptor.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Activation_Queue.cpp b/ace/Activation_Queue.cpp
index 20a1c48df47..74aba6c7734 100644
--- a/ace/Activation_Queue.cpp
+++ b/ace/Activation_Queue.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (ace,
Activation_Queue,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Activation_Queue::dump (void) const
{
@@ -110,5 +108,3 @@ ACE_Activation_Queue::enqueue (ACE_Method_Request *mr,
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Activation_Queue.h b/ace/Activation_Queue.h
index 26d51c9dcf1..9a370d2cdf6 100644
--- a/ace/Activation_Queue.h
+++ b/ace/Activation_Queue.h
@@ -16,7 +16,13 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -28,10 +34,9 @@
/// Define to be compatible with the terminology in the POSA2 book!
#define ACE_Activation_List ACE_Activation_Queue
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Method_Request;
+
/**
* @class ACE_Activation_Queue
*
@@ -47,7 +52,7 @@ class ACE_Method_Request;
*
* @sa ACE_Method_Request
*/
-class ACE_Export ACE_Activation_Queue
+class ACE_Threads_Export ACE_Activation_Queue
{
public:
// = Initialization and termination methods.
@@ -111,8 +116,7 @@ public:
* earlier, however, if queue is closed, deactivated, or when
* a signal occurs.
*
- * @retval >0 The number of method requests on the queue after adding
- * the specified request.
+ * @retval 0 on success.
* @retval -1 if an error occurs; errno contains further information. If
* the specified timeout elapses, errno will be @c EWOULDBLOCK.
*/
@@ -140,14 +144,7 @@ public:
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
-private:
-
- // = Prevent copying and assignment.
- ACE_Activation_Queue (const ACE_Activation_Queue &);
- void operator= (const ACE_Activation_Queue &);
-
protected:
-
/// Stores the Method_Requests.
ACE_Message_Queue<ACE_SYNCH> *queue_;
@@ -155,20 +152,21 @@ protected:
int delete_queue_;
private:
-
/// Allocation strategy of the queue.
ACE_Allocator *allocator_;
/// Allocation strategy of the message blocks.
ACE_Allocator *data_block_allocator_;
+ // = Prevent assignment and initialization.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Activation_Queue &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Activation_Queue (const ACE_Activation_Queue &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Activation_Queue.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* ACE_ACTIVATION_QUEUE_H */
+
diff --git a/ace/Activation_Queue.inl b/ace/Activation_Queue.inl
index 466635d859c..b4b9283bced 100644
--- a/ace/Activation_Queue.inl
+++ b/ace/Activation_Queue.inl
@@ -1,23 +1,22 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Activation_Queue.i
ACE_INLINE size_t
-ACE_Activation_Queue::method_count (void) const
+ACE_Activation_Queue::method_count (void) const
{
return queue_->message_count ();
}
-ACE_INLINE int
-ACE_Activation_Queue::is_full (void) const
+ACE_INLINE int
+ACE_Activation_Queue::is_full (void) const
{
return queue_->is_full ();
-}
+}
-ACE_INLINE int
-ACE_Activation_Queue::is_empty (void) const
+ACE_INLINE int
+ACE_Activation_Queue::is_empty (void) const
{
return queue_->is_empty ();
}
@@ -28,10 +27,8 @@ ACE_Activation_Queue::queue (void) const
return queue_;
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Activation_Queue::queue (ACE_Message_Queue<ACE_SYNCH> *q)
{
queue_ = q;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Active_Map_Manager.cpp b/ace/Active_Map_Manager.cpp
index 6f4b66191c7..47e734d044d 100644
--- a/ace/Active_Map_Manager.cpp
+++ b/ace/Active_Map_Manager.cpp
@@ -7,3 +7,4 @@ ACE_RCSID(ace, Active_Map_Manager, "$Id$")
#if !defined (__ACE_INLINE__)
#include "ace/Active_Map_Manager.inl"
#endif /* __ACE_INLINE__ */
+
diff --git a/ace/Active_Map_Manager.h b/ace/Active_Map_Manager.h
index 7e3bb348058..7764ba11aa1 100644
--- a/ace/Active_Map_Manager.h
+++ b/ace/Active_Map_Manager.h
@@ -23,8 +23,6 @@
#include "ace/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Active_Map_Manager_Key
*
@@ -103,8 +101,6 @@ private:
key_data key_data_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Active_Map_Manager.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Active_Map_Manager.inl b/ace/Active_Map_Manager.inl
index 652cf7c1f71..491b25430b7 100644
--- a/ace/Active_Map_Manager.inl
+++ b/ace/Active_Map_Manager.inl
@@ -4,8 +4,6 @@
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Active_Map_Manager_Key::ACE_Active_Map_Manager_Key (void)
{
@@ -91,5 +89,3 @@ ACE_Active_Map_Manager_Key::encode (void *data) const
&this->key_data_,
sizeof this->key_data_);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Active_Map_Manager_T.cpp b/ace/Active_Map_Manager_T.cpp
index b8cd14446ac..b4fbf30cfa5 100644
--- a/ace/Active_Map_Manager_T.cpp
+++ b/ace/Active_Map_Manager_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_ACTIVE_MAP_MANAGER_T_CPP
-#define ACE_ACTIVE_MAP_MANAGER_T_CPP
+#ifndef ACE_ACTIVE_MAP_MANAGER_T_C
+#define ACE_ACTIVE_MAP_MANAGER_T_C
#include "ace/Active_Map_Manager_T.h"
@@ -13,10 +13,8 @@
#include "ace/Active_Map_Manager_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Active_Map_Manager_T, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Active_Map_Manager)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_ACTIVE_MAP_MANAGER_T_CPP */
+#endif /* ACE_ACTIVE_MAP_MANAGER_T_C */
diff --git a/ace/Active_Map_Manager_T.h b/ace/Active_Map_Manager_T.h
index 2194f8194de..f3e90b3f744 100644
--- a/ace/Active_Map_Manager_T.h
+++ b/ace/Active_Map_Manager_T.h
@@ -24,8 +24,6 @@
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Active_Map_Manager
*
@@ -193,8 +191,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (ACE_Active_Map_Manager (const ACE_Active_Map_Manager<T> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Active_Map_Manager_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Active_Map_Manager_T.inl b/ace/Active_Map_Manager_T.inl
index 124f76c48c4..fd9ff0df6c6 100644
--- a/ace/Active_Map_Manager_T.inl
+++ b/ace/Active_Map_Manager_T.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE int
ACE_Active_Map_Manager<T>::bind (ACE_Active_Map_Manager_Key &key,
T *&internal_value)
@@ -307,5 +304,3 @@ ACE_Active_Map_Manager<T>::rend (void)
{
return ACE_AMM_BASE::rend ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Addr.cpp b/ace/Addr.cpp
index 6b4e3770f33..a627d8262c0 100644
--- a/ace/Addr.cpp
+++ b/ace/Addr.cpp
@@ -15,8 +15,6 @@ ACE_RCSID (ace,
#include "ace/Log_Msg.h"
#include "ace/os_include/sys/os_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Note: this object requires static construction and destruction.
/* static */
const ACE_Addr ACE_Addr::sap_any (AF_ANY, -1);
@@ -68,5 +66,3 @@ ACE_Addr::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Addr.h b/ace/Addr.h
index 53fba544456..654b1fc4355 100644
--- a/ace/Addr.h
+++ b/ace/Addr.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Addr
*
@@ -93,8 +91,6 @@ protected:
int addr_size_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Addr.inl b/ace/Addr.inl
index 3780e04b6aa..34457d86612 100644
--- a/ace/Addr.inl
+++ b/ace/Addr.inl
@@ -4,20 +4,19 @@
// Return the address of the address.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE bool
ACE_Addr::operator == (const ACE_Addr &sap) const
{
return (sap.addr_type_ == this->addr_type_ &&
- sap.addr_size_ == this->addr_size_ );
+ sap.addr_size_ == this->addr_size_ );
}
ACE_INLINE bool
ACE_Addr::operator != (const ACE_Addr &sap) const
{
return (sap.addr_type_ != this->addr_type_ ||
- sap.addr_size_ != this->addr_size_ );
+ sap.addr_size_ != this->addr_size_ );
}
// Return the size of the address.
@@ -57,5 +56,3 @@ ACE_Addr::hash (void) const
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Arg_Shifter.cpp b/ace/Arg_Shifter.cpp
index 3c2ebd9fe08..e24baecc6eb 100644
--- a/ace/Arg_Shifter.cpp
+++ b/ace/Arg_Shifter.cpp
@@ -7,206 +7,3 @@
ACE_RCSID (ace,
Arg_Shifter,
"$Id$")
-
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Arg_Shifter::ACE_Arg_Shifter (int& argc,
- const ACE_TCHAR** argv,
- const ACE_TCHAR** temp)
- : argc_ (argc),
- total_size_ (argc),
- temp_ (temp),
- argv_ (argv),
- current_index_ (0),
- back_ (argc - 1),
- front_ (0)
-{
- this->init ();
-}
-
-ACE_Arg_Shifter::ACE_Arg_Shifter (int& argc,
- ACE_TCHAR** argv,
- ACE_TCHAR** temp)
- : argc_ (argc),
- total_size_ (argc),
- temp_ ((const ACE_TCHAR **) temp),
- argv_ ((const ACE_TCHAR **) argv),
- current_index_ (0),
- back_ (argc - 1),
- front_ (0)
-{
- this->init ();
-}
-
-void
-ACE_Arg_Shifter::init (void)
-{
- // If not provided with one, allocate a temporary array.
- if (this->temp_ == 0)
- ACE_NEW (this->temp_,
- const ACE_TCHAR *[this->total_size_]);
-
- if (this->temp_ != 0)
- {
- // Fill the temporary array.
- this->argc_ = 0;
- for (int i = 0; i < this->total_size_; i++)
- {
- this->temp_[i] = this->argv_[i];
- this->argv_[i] = 0;
- }
- }
- else
- {
- // Allocation failed, prohibit iteration.
- this->current_index_ = this->argc_;
- this->front_ = this->argc_;
- }
-}
-
-ACE_Arg_Shifter::~ACE_Arg_Shifter (void)
-{
- // Delete the temporary vector.
- delete [] temp_;
-}
-
-const ACE_TCHAR *
-ACE_Arg_Shifter::get_current (void) const
-{
- const ACE_TCHAR * retval = 0;
-
- if (this->is_anything_left ())
- retval = this->temp_[current_index_];
-
- return retval;
-}
-
-const ACE_TCHAR *
-ACE_Arg_Shifter::get_the_parameter (const ACE_TCHAR *flag)
-{
- // the return 0's abound because this method
- // would otherwise be a deep if { } else { }
-
- // check to see if any arguments still exist
- if (!this->is_anything_left())
- return 0;
-
- // check to see if the flag is the argument
- int offset = this->cur_arg_strncasecmp (flag);
- if (offset == -1)
- return 0;
-
- if (offset == 0)
- {
- this->consume_arg ();
-
- if (!this->is_parameter_next())
- {
- return 0;
- }
- }
- // the paramter is in the middle somewhere...
- return this->temp_[current_index_] + offset;
-}
-
-int
-ACE_Arg_Shifter::cur_arg_strncasecmp (const ACE_TCHAR *flag)
-{
- // Check for a current argument
- if (this->is_anything_left())
- {
- size_t flag_length = ACE_OS::strlen (flag);
-
- // Check for presence of the flag
- if (ACE_OS::strncasecmp(this->temp_[current_index_],
- flag,
- flag_length) == 0)
- {
- if (ACE_OS::strlen(temp_[current_index_]) ==
- flag_length)
- {
- // match and lengths are equal
- return 0;
- }
- else
- {
- // matches, with more info to boot!
- size_t remaining = ACE_OS::strspn
- (this->temp_[current_index_] + flag_length,
- ACE_LIB_TEXT (" ")) + flag_length;
- return static_cast<int> (remaining);
- }
- }
- }
- // failure
- return -1;
-}
-
-int
-ACE_Arg_Shifter::consume_arg (int number)
-{
- int retval = 0;
-
- // Stick knowns at the end of the vector (consumed).
- if (this->is_anything_left() >= number)
- {
- for (int i = 0, j = this->back_ - (number - 1);
- i < number;
- ++i, ++j, ++this->current_index_)
- this->argv_[j] = this->temp_[this->current_index_];
-
- this->back_ -= number;
- retval = 1;
- }
-
- return retval;
-}
-
-int
-ACE_Arg_Shifter::ignore_arg (int number)
-{
- int retval = 0;
-
- // Keep unknowns at the head of the vector.
- if (this->is_anything_left () >= number)
- {
- for (int i = 0;
- i < number;
- i++, this->current_index_++, this->front_++)
- this->argv_[this->front_] = this->temp_[this->current_index_];
-
- retval = 1;
- this->argc_ += number;
- }
-
- return retval;
-}
-
-int
-ACE_Arg_Shifter::is_anything_left (void) const
-{
- return this->total_size_ - this->current_index_;
-}
-
-int
-ACE_Arg_Shifter::is_option_next (void) const
-{
- return this->is_anything_left () &&
- this->temp_[this->current_index_][0] == '-';
-}
-
-int
-ACE_Arg_Shifter::is_parameter_next (void) const
-{
- return this->is_anything_left ()
- && this->temp_[this->current_index_][0] != '-';
-}
-
-int
-ACE_Arg_Shifter::num_ignored_args (void) const
-{
- return this->front_;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Arg_Shifter.h b/ace/Arg_Shifter.h
index b75537a1338..dbae5593674 100644
--- a/ace/Arg_Shifter.h
+++ b/ace/Arg_Shifter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Arg_Shifter
*
@@ -39,7 +37,8 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* has placed all the unknown arguments in their original order at
* the front of original @a argv.
*/
-class ACE_Export ACE_Arg_Shifter
+template < typename CHAR_TYPE = char >
+class ACE_TArg_Shifter
{
public:
// = Initialization and termination methods.
@@ -57,28 +56,28 @@ public:
* @param argv The argument vector to shift. The string pointers in
* the vector will be reordered to place the @a argc unconsumed
* arguments at the front of the vector.
- * @param temp A vector of @c ACE_TCHAR pointers at least @a argc
+ * @param temp A vector of @c CHAR_TYPE pointers at least @a argc
* elements long. The vector will be used for argument shifting as
* the specified @a argv vector is consumed. The vector must not
* be modified while this object exists. If this argument is 0
* (the default) the object will allocate and free the temporary
* vector transparently.
*/
- ACE_Arg_Shifter (int& argc,
- const ACE_TCHAR **argv,
- const ACE_TCHAR **temp = 0);
+ ACE_TArg_Shifter (int& argc,
+ const CHAR_TYPE **argv,
+ const CHAR_TYPE **temp = 0);
/// Same behavior as the preceding constructor, but without the
/// "const" qualifier.
- ACE_Arg_Shifter (int& argc,
- ACE_TCHAR **argv,
- ACE_TCHAR **temp = 0);
+ ACE_TArg_Shifter (int& argc,
+ CHAR_TYPE **argv,
+ CHAR_TYPE **temp = 0);
/// Destructor.
- ~ACE_Arg_Shifter (void);
+ ~ACE_TArg_Shifter (void);
/// Get the current head of the vector.
- const ACE_TCHAR *get_current (void) const;
+ const CHAR_TYPE *get_current (void) const;
/**
* If the @a flag matches the current_arg of arg shifter
@@ -112,7 +111,7 @@ public:
* together '-foobarflagVALUE', the flag is NOT consumed
* and the cur arg is left pointing to the entire flag/value pair
*/
- const ACE_TCHAR *get_the_parameter (const ACE_TCHAR* flag);
+ const CHAR_TYPE *get_the_parameter (const CHAR_TYPE* flag);
/**
* Check if the current argument matches (case insensitive) <flag>
@@ -143,7 +142,7 @@ public:
* Case C: If neither of Case A or B is met (no match)
* then -1 is returned
*/
- int cur_arg_strncasecmp (const ACE_TCHAR *flag);
+ int cur_arg_strncasecmp (const CHAR_TYPE *flag);
/// Consume @a number argument(s) by sticking them/it on the end of
/// the vector.
@@ -169,10 +168,10 @@ public:
private:
/// Copy Constructor should not be used.
- ACE_Arg_Shifter (const ACE_Arg_Shifter&);
+ ACE_TArg_Shifter (const ACE_TArg_Shifter&);
/// Assignment '=' operator should not be used.
- ACE_Arg_Shifter operator= (const ACE_Arg_Shifter&);
+ ACE_TArg_Shifter operator= (const ACE_TArg_Shifter&);
/// Refactor the constructor logic.
void init (void);
@@ -184,10 +183,10 @@ private:
int total_size_;
/// The temporary array over which we traverse.
- const ACE_TCHAR **temp_;
+ const CHAR_TYPE **temp_;
/// The array in which the arguments are reordered.
- const ACE_TCHAR **argv_;
+ const CHAR_TYPE **argv_;
/// The element in <temp_> we're currently examining.
int current_index_;
@@ -201,7 +200,9 @@ private:
int front_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+typedef ACE_TArg_Shifter< ACE_TCHAR > ACE_Arg_Shifter;
+
+#include "ace/Arg_Shifter.inl"
#include /**/ "ace/post.h"
diff --git a/ace/Arg_Shifter.inl b/ace/Arg_Shifter.inl
new file mode 100644
index 00000000000..42e882556c8
--- /dev/null
+++ b/ace/Arg_Shifter.inl
@@ -0,0 +1,221 @@
+#include "ace/Arg_Shifter.h"
+#include "ace/OS_NS_string.h"
+#include "ace/OS_NS_strings.h"
+#include "ace/OS_Errno.h"
+#include "ace/OS_Memory.h"
+
+ACE_RCSID (ace,
+ Arg_Shifter,
+ "$Id$")
+
+template < typename CHAR_TYPE >
+ACE_TArg_Shifter<CHAR_TYPE>::ACE_TArg_Shifter (int& argc,
+ const CHAR_TYPE** argv,
+ const CHAR_TYPE** temp)
+ : argc_ (argc),
+ total_size_ (argc),
+ temp_ (temp),
+ argv_ (argv),
+ current_index_ (0),
+ back_ (argc - 1),
+ front_ (0)
+{
+ this->init ();
+}
+
+template < typename CHAR_TYPE >
+ACE_TArg_Shifter<CHAR_TYPE>::ACE_TArg_Shifter (int& argc,
+ CHAR_TYPE** argv,
+ CHAR_TYPE** temp)
+ : argc_ (argc),
+ total_size_ (argc),
+ temp_ ((const CHAR_TYPE **) temp),
+ argv_ ((const CHAR_TYPE **) argv),
+ current_index_ (0),
+ back_ (argc - 1),
+ front_ (0)
+{
+ this->init ();
+}
+
+template < typename CHAR_TYPE >
+void
+ACE_TArg_Shifter<CHAR_TYPE>::init (void)
+{
+ // If not provided with one, allocate a temporary array.
+ if (this->temp_ == 0)
+ ACE_NEW (this->temp_,
+ const CHAR_TYPE *[this->total_size_]);
+
+ if (this->temp_ != 0)
+ {
+ // Fill the temporary array.
+ this->argc_ = 0;
+ for (int i = 0; i < this->total_size_; i++)
+ {
+ this->temp_[i] = this->argv_[i];
+ this->argv_[i] = 0;
+ }
+ }
+ else
+ {
+ // Allocation failed, prohibit iteration.
+ this->current_index_ = this->argc_;
+ this->front_ = this->argc_;
+ }
+}
+
+template < typename CHAR_TYPE >
+ACE_TArg_Shifter<CHAR_TYPE>::~ACE_TArg_Shifter (void)
+{
+ // Delete the temporary vector.
+ delete [] temp_;
+}
+
+template < typename CHAR_TYPE >
+const CHAR_TYPE *
+ACE_TArg_Shifter<CHAR_TYPE>::get_current (void) const
+{
+ const CHAR_TYPE * retval = 0;
+
+ if (this->is_anything_left ())
+ retval = this->temp_[current_index_];
+
+ return retval;
+}
+
+template < typename CHAR_TYPE >
+const CHAR_TYPE *
+ACE_TArg_Shifter<CHAR_TYPE>::get_the_parameter (const CHAR_TYPE *flag)
+{
+ // the return 0's abound because this method
+ // would otherwise be a deep if { } else { }
+
+ // check to see if any arguments still exist
+ if (!this->is_anything_left())
+ return 0;
+
+ // check to see if the flag is the argument
+ int offset = this->cur_arg_strncasecmp (flag);
+ if (offset == -1)
+ return 0;
+
+ if (offset == 0)
+ {
+ this->consume_arg ();
+
+ if (!this->is_parameter_next())
+ {
+ return 0;
+ }
+ }
+ // the paramter is in the middle somewhere...
+ return this->temp_[current_index_] + offset;
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::cur_arg_strncasecmp (const CHAR_TYPE *flag)
+{
+ // Check for a current argument
+ if (this->is_anything_left())
+ {
+ size_t flag_length = ACE_OS::strlen (flag);
+
+ // Check for presence of the flag
+ if (ACE_OS::strncasecmp(this->temp_[current_index_],
+ flag,
+ flag_length) == 0)
+ {
+ if (ACE_OS::strlen(temp_[current_index_]) ==
+ flag_length)
+ {
+ // match and lengths are equal
+ return 0;
+ }
+ else
+ {
+ // matches, with more info to boot!
+ CHAR_TYPE space[2] = { ' ', 0 };
+ size_t remaining = ACE_OS::strspn
+ (this->temp_[current_index_] + flag_length,
+ space) + flag_length;
+ return static_cast<int> (remaining);
+ }
+ }
+ }
+ // failure
+ return -1;
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::consume_arg (int number)
+{
+ int retval = 0;
+
+ // Stick knowns at the end of the vector (consumed).
+ if (this->is_anything_left() >= number)
+ {
+ for (int i = 0, j = this->back_ - (number - 1);
+ i < number;
+ ++i, ++j, ++this->current_index_)
+ this->argv_[j] = this->temp_[this->current_index_];
+
+ this->back_ -= number;
+ retval = 1;
+ }
+
+ return retval;
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::ignore_arg (int number)
+{
+ int retval = 0;
+
+ // Keep unknowns at the head of the vector.
+ if (this->is_anything_left () >= number)
+ {
+ for (int i = 0;
+ i < number;
+ i++, this->current_index_++, this->front_++)
+ this->argv_[this->front_] = this->temp_[this->current_index_];
+
+ retval = 1;
+ this->argc_ += number;
+ }
+
+ return retval;
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::is_anything_left (void) const
+{
+ return this->total_size_ - this->current_index_;
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::is_option_next (void) const
+{
+ return this->is_anything_left () &&
+ this->temp_[this->current_index_][0] == '-';
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::is_parameter_next (void) const
+{
+ return this->is_anything_left ()
+ && this->temp_[this->current_index_][0] != '-';
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_TArg_Shifter<CHAR_TYPE>::num_ignored_args (void) const
+{
+ return this->front_;
+}
diff --git a/ace/Argv_Type_Converter.cpp b/ace/Argv_Type_Converter.cpp
index 2fca97a0671..044f734d7d9 100644
--- a/ace/Argv_Type_Converter.cpp
+++ b/ace/Argv_Type_Converter.cpp
@@ -13,57 +13,47 @@ ACE_RCSID (ace,
#include "ace/OS_NS_string.h"
#include "ace/OS_Errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_USES_WCHAR)
ACE_Argv_Type_Converter::ACE_Argv_Type_Converter (int &argc, wchar_t** argv)
- : saved_argc_ (argc)
- , char_argv_ (0)
- , wchar_argv_ (argv)
- , before_pass_argc_ (argc)
- , original_type_ (1)
- , wchar_passed_ (0)
- , char_passed_ (0)
+: saved_argc_ (argc)
+, char_argv_ (0)
+, wchar_argv_ (argv)
+, before_pass_argc_ (argc)
+, original_type_wchar_ (true)
+, wchar_passed_ (false)
+, char_passed_ (false)
{
this->initialize ();
for (int i = 0; i < argc; ++i)
{
this->char_argv_[i] =
- ACE_OS::strdup (ACE_TEXT_ALWAYS_CHAR (argv[i]));
+ ACE::String_Conversion::Convert_Out< char >( argv[i] ).c_str();
}
}
-#endif // ACE_USES_WCHAR
ACE_Argv_Type_Converter::ACE_Argv_Type_Converter (int &argc, char** argv)
- : saved_argc_(argc)
- , char_argv_(argv)
-#if defined (ACE_USES_WCHAR)
- , wchar_argv_(0)
- , before_pass_argc_(argc)
- , original_type_(0)
- , wchar_passed_(0)
- , char_passed_(0)
+: saved_argc_(argc)
+, char_argv_(argv)
+, wchar_argv_(false)
+, before_pass_argc_(argc)
+, original_type_wchar_(false)
+, wchar_passed_(false)
+, char_passed_(false)
{
this->initialize();
for (int i = 0; i < argc; ++i)
{
this->wchar_argv_[i] =
- ACE_OS::strdup (ACE_TEXT_ANTI_TO_TCHAR (argv[i]));
+ ACE::String_Conversion::Convert_Out< wchar_t >( argv[i] ).c_str();
}
}
-#else
-{
-}
-#endif // ACE_USES_WCHAR
ACE_Argv_Type_Converter::~ACE_Argv_Type_Converter (void)
{
-#if defined (ACE_USES_WCHAR)
// selectively delete the 'copy' of argv
- if (this->original_type_)
+ if (this->original_type_wchar_)
{
// if original type is wchar_t
if (this->char_passed_)
@@ -72,7 +62,7 @@ ACE_Argv_Type_Converter::~ACE_Argv_Type_Converter (void)
}
for (int i = 0; i < this->before_pass_argc_; ++i)
{
- ACE_OS::free (this->char_argv_[i]);
+ ACE::String_Conversion::Convert_Out<char>::free( this->char_argv_[i] );
}
delete [] this->char_argv_;
}
@@ -84,18 +74,16 @@ ACE_Argv_Type_Converter::~ACE_Argv_Type_Converter (void)
}
for (int i = 0; i < this->before_pass_argc_; ++i)
{
- ACE_OS::free (this->wchar_argv_[i]);
+ ACE::String_Conversion::Convert_Out<wchar_t>::free( this->wchar_argv_[i] );
}
delete [] this->wchar_argv_;
}
-#endif // ACE_USES_WCHAR
}
-#if defined (ACE_USES_WCHAR)
void
ACE_Argv_Type_Converter::initialize (void)
{
- if (this->original_type_)
+ if (this->original_type_wchar_)
{ // make a copy of argv in 'char' type
// Create one more argv entry than original argc for the NULL.
ACE_NEW (char_argv_, char*[this->saved_argc_ + 1]);
@@ -120,14 +108,14 @@ ACE_Argv_Type_Converter::align_char_with_wchar (void)
{
// if n'th entries of both argv lists are different
if (ACE_OS::strcmp(this->char_argv_[wchar_argv_index],
- ACE_TEXT_ALWAYS_CHAR (match_argv)) != 0)
+ ACE_TEXT_TO_CHAR_IN (match_argv)) != 0)
{
// loop through the wchar argv list entries that are after
// wchar_argv_index
for (int i = wchar_argv_index + 1; i < before_pass_argc_; ++i)
{
if (ACE_OS::strcmp (this->char_argv_[i],
- ACE_TEXT_ALWAYS_CHAR (match_argv))
+ ACE_TEXT_TO_CHAR_IN (match_argv))
== 0)
{
// swap the pointers in the char argv list
@@ -156,7 +144,7 @@ ACE_Argv_Type_Converter::align_wchar_with_char (void)
{
// if n'th entries of both argv lists are different
if (ACE_OS::strcmp (
- ACE_TEXT_ALWAYS_CHAR (this->wchar_argv_[char_argv_index]),
+ ACE_TEXT_TO_CHAR_IN (this->wchar_argv_[char_argv_index]),
match_argv) != 0)
{
// loop through the wchar argv list entries that are after
@@ -164,7 +152,7 @@ ACE_Argv_Type_Converter::align_wchar_with_char (void)
for (int i = char_argv_index + 1; i < this->before_pass_argc_; ++i)
{
if (ACE_OS::strcmp (
- ACE_TEXT_ALWAYS_CHAR(this->wchar_argv_[i]),
+ ACE_TEXT_TO_CHAR_IN(this->wchar_argv_[i]),
match_argv) == 0) {
// swap the pointers in the char argv list
wchar_t* temp = this->wchar_argv_[char_argv_index];
@@ -188,23 +176,20 @@ ACE_Argv_Type_Converter::cleanup (void)
for (int i = this->saved_argc_; i < this->before_pass_argc_; ++i)
{
// Check whether it's ours to delete.
- if (original_type_ == 1)
+ if (original_type_wchar_ == true)
{
- ACE_OS::free (this->char_argv_[i]);
+ ACE::String_Conversion::Convert_Out<char>::free( this->char_argv_[i] );
this->char_argv_[i] = 0;
}
else
{
- ACE_OS::free (this->wchar_argv_[i]);
+ ACE::String_Conversion::Convert_Out<wchar_t>::free( this->wchar_argv_[i] );
this->wchar_argv_[i] = 0;
}
}
this->before_pass_argc_ = this->saved_argc_;
- this->wchar_passed_ = 0;
- this->char_passed_ = 0;
+ this->wchar_passed_ = false;
+ this->char_passed_ = false;
}
-#endif // ACE_USES_WCHAR
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Argv_Type_Converter.h b/ace/Argv_Type_Converter.h
index 89ba35c6220..7cc09f4974b 100644
--- a/ace/Argv_Type_Converter.h
+++ b/ace/Argv_Type_Converter.h
@@ -22,7 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Argv_Type_Converter
@@ -42,15 +41,16 @@ public:
ACE_Argv_Type_Converter (int &argc, char** argv);
-#if defined (ACE_USES_WCHAR)
ACE_Argv_Type_Converter (int &argc, wchar_t** argv);
-#endif // ACE_USES_WCHAR
~ACE_Argv_Type_Converter (void);
/// Returns the pointer of converted command line.
ACE_TCHAR** get_TCHAR_argv (void);
+ /// Returns the pointer of converted command line.
+ wchar_t** get_Wide_argv (void);
+
/// Returns the pointer of ASCII (char) command line.
char** get_ASCII_argv (void);
@@ -65,8 +65,6 @@ private:
/// Assignment '=' operator should not be used.
ACE_Argv_Type_Converter operator= (const ACE_Argv_Type_Converter&);
-#if defined (ACE_USES_WCHAR)
-
/// Perform common initialization for two Ctor's.
void initialize (void);
@@ -80,17 +78,15 @@ private:
/// Clean up removed (comsumed) argv entries and reset the pass flags.
void cleanup (void);
-#endif // ACE_USES_WCHAR
private:
/// Original number of input paramter, same as 'argc'.
int &saved_argc_;
- /// Data member pointer that contains converted argv in ACE_ANTI_TCHAR.
+ /// Data member pointer that contains converted argv in char.
char** char_argv_;
-#if defined (ACE_USES_WCHAR)
- /// Data member pointer that contains converted argv in ACE_TCHAR.
+ /// Data member pointer that contains converted argv in wchar_t.
wchar_t** wchar_argv_;
/// argc value before any argv has been passed.
@@ -98,18 +94,15 @@ private:
/// FALSE represents original argv passed in is char, and TRUE
/// represents wchar_t.
- const int original_type_;
+ const bool original_type_wchar_;
/// TRUE indicates wchar_t type argv has been passed.
- int wchar_passed_;
+ bool wchar_passed_;
/// TRUE indicates char type argv has been passed.
- int char_passed_;
-#endif /* ACE_USES_WCHAR */
+ bool char_passed_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Argv_Type_Converter.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Argv_Type_Converter.inl b/ace/Argv_Type_Converter.inl
index f56c83146b3..fcb0c1d6263 100644
--- a/ace/Argv_Type_Converter.inl
+++ b/ace/Argv_Type_Converter.inl
@@ -2,12 +2,20 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE ACE_TCHAR**
ACE_Argv_Type_Converter::get_TCHAR_argv (void)
{
#if defined (ACE_USES_WCHAR)
+ return get_Wide_argv ();
+#else
+ return get_ASCII_argv ();
+#endif
+}
+
+ACE_INLINE wchar_t**
+ACE_Argv_Type_Converter::get_Wide_argv (void)
+{
if (this->char_passed_)
{
this->align_wchar_with_char ();
@@ -15,22 +23,17 @@ ACE_Argv_Type_Converter::get_TCHAR_argv (void)
this->wchar_passed_ = true;
return this->wchar_argv_;
-#else
- return this->char_argv_;
-#endif // ACE_USES_WCHAR
}
ACE_INLINE char**
ACE_Argv_Type_Converter::get_ASCII_argv (void)
{
-#if defined (ACE_USES_WCHAR)
if (this->wchar_passed_)
{
this->align_char_with_wchar ();
}
- this->char_passed_ = 1;
-#endif // ACE_USES_WCHAR
+ this->char_passed_ = true;
return this->char_argv_;
}
@@ -40,5 +43,3 @@ ACE_Argv_Type_Converter::get_argc (void)
{
return this->saved_argc_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Array.h b/ace/Array.h
index c3159cd7a89..be28d342eef 100644
--- a/ace/Array.h
+++ b/ace/Array.h
@@ -6,9 +6,7 @@
*
* $Id$
*
- * @deprecated
- *
- * @note This file has been deprecated and will soon go away. You
+ * NOTE: this file has been deprecated and will soon go away. You
* should directly include "Containers_T.h" instead.
*
* @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
diff --git a/ace/Array_Base.cpp b/ace/Array_Base.cpp
index 66f3ae7ec59..a054d900045 100644
--- a/ace/Array_Base.cpp
+++ b/ace/Array_Base.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_ARRAY_BASE_CPP
-#define ACE_ARRAY_BASE_CPP
+#ifndef ACE_ARRAY_BASE_C
+#define ACE_ARRAY_BASE_C
#include "ace/Array_Base.h"
@@ -21,9 +21,13 @@
#include "ace/os_include/os_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ Array_Base,
+ "$Id$")
+
// Dynamically initialize an array.
+
template <class T>
ACE_Array_Base<T>::ACE_Array_Base (size_t size,
ACE_Allocator *alloc)
@@ -206,6 +210,4 @@ ACE_Array_Iterator<T>::next (T *&item)
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_ARRAY_BASE_CPP */
+#endif /* ACE_ARRAY_BASE_C */
diff --git a/ace/Array_Base.h b/ace/Array_Base.h
index dd02278dc90..7b785e404b7 100644
--- a/ace/Array_Base.h
+++ b/ace/Array_Base.h
@@ -22,8 +22,6 @@
#include "ace/Global_Macros.h"
#include "ace/Malloc_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
template <class T> class ACE_Array_Iterator;
@@ -119,7 +117,7 @@ public:
*/
int max_size (size_t new_size);
-protected:
+private:
/// Returns 1 if <slot> is within range, i.e., 0 >= <slot> <
/// <cur_size_>, else returns 0.
int in_range (size_t slot) const;
@@ -192,8 +190,6 @@ private:
ACE_Array_Base<T> &array_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Array_Base.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Array_Base.inl b/ace/Array_Base.inl
index 3afc27e69b8..f5698deb9eb 100644
--- a/ace/Array_Base.inl
+++ b/ace/Array_Base.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// Clean up the array (e.g., delete dynamically allocated memory).
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE
ACE_Array_Base<T>::~ACE_Array_Base (void)
{
@@ -87,5 +84,3 @@ ACE_Array_Iterator<T>::done (void) const
return this->current_ >= array_.size ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Array_Map.cpp b/ace/Array_Map.cpp
index e525890d8d4..01fbf4cdcae 100644
--- a/ace/Array_Map.cpp
+++ b/ace/Array_Map.cpp
@@ -11,7 +11,6 @@
#include <algorithm>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#ifndef ACE_LACKS_MEMBER_TEMPLATES
template<typename Key, typename Value, class EqualTo>
@@ -282,6 +281,4 @@ operator< (ACE_Array_Map<Key, Value, EqualTo> const & lhs,
rhs.begin (), rhs.end ());
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_ARRAY_MAP_CPP */
diff --git a/ace/Array_Map.h b/ace/Array_Map.h
index 6ad91b152c8..5952397aa2e 100644
--- a/ace/Array_Map.h
+++ b/ace/Array_Map.h
@@ -32,7 +32,6 @@
#include <iterator>
#include <functional>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Array_Map
@@ -112,7 +111,7 @@ public:
typedef std::reverse_iterator<iterator, value_type> reverse_iterator;
typedef std::reverse_iterator<const_iterator,
value_type const> const_reverse_iterator;
-#elif defined (__SUNPRO_CC) && __SUNPRO_CC <= 0x580 \
+#elif defined (__SUNPRO_CC) && __SUNPRO_CC <= 0x570 \
&& defined (_RWSTD_NO_CLASS_PARTIAL_SPEC)
typedef std::reverse_iterator<iterator,
std::input_iterator_tag,
@@ -301,8 +300,6 @@ bool operator< (ACE_Array_Map<Key, Value, EqualTo> const & lhs,
// --------------------------------------------------------------
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#ifdef __ACE_INLINE__
# include "ace/Array_Map.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Array_Map.inl b/ace/Array_Map.inl
index 85cb1554c2f..3c423390241 100644
--- a/ace/Array_Map.inl
+++ b/ace/Array_Map.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename Key, typename Value, class EqualTo>
ACE_INLINE
ACE_Array_Map<Key, Value, EqualTo>::ACE_Array_Map (
@@ -120,5 +118,3 @@ ACE_Array_Map<Key, Value, EqualTo>::operator[] (
iterator i = (this->insert (value_type (k, data_type ()))).first;
return (*i).second;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Assert.cpp b/ace/Assert.cpp
deleted file mode 100644
index c46d30793ab..00000000000
--- a/ace/Assert.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-// $Id$
-
-#include "ace/Assert.h"
-#include "ace/Log_Msg.h"
-
-ACE_RCSID(ace, Assert, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// The following ASSERT macro is courtesy of Alexandre Karev
-// <akg@na47sun05.cern.ch>.
-void
-__ace_assert(const char *file, int line, const ACE_TCHAR *expression)
-{
- int error = ACE_Log_Msg::last_error_adapter ();
- ACE_Log_Msg *log = ACE_Log_Msg::instance ();
-
- log->set (file, line, -1, error, log->restart (),
- log->msg_ostream (), log->msg_callback ());
-
- log->log (LM_ERROR, ACE_LIB_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), expression, -1);
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Assert.h b/ace/Assert.h
deleted file mode 100644
index a8830394d52..00000000000
--- a/ace/Assert.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Assert.h
- *
- * $Id$
- *
- * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
- */
-//=============================================================================
-
-#ifndef ACE_ASSERT_H
-#define ACE_ASSERT_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/ACE_export.h"
-
-#include "ace/config-all.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-ACE_Export void __ace_assert(const char *file, int line, const ACE_TCHAR *expression);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_NDEBUG)
-#define ACE_ASSERT(x) \
- (static_cast<void>(0))
-#else
-#define ACE_ASSERT(X) \
- ((X) \
- ? static_cast<void>(0) \
- : ACE_VERSIONED_NAMESPACE_NAME::__ace_assert(__FILE__, __LINE__, ACE_TEXT_CHAR_TO_TCHAR (#X)))
-#endif /* ACE_NDEBUG */
-
-#include /**/ "ace/post.h"
-
-#endif /* ACE_ASSERT */
diff --git a/ace/Asynch_Acceptor.cpp b/ace/Asynch_Acceptor.cpp
index 374658afefe..6bf4ab5c313 100644
--- a/ace/Asynch_Acceptor.cpp
+++ b/ace/Asynch_Acceptor.cpp
@@ -24,8 +24,6 @@ ACE_RCSID(ace, Asynch_Acceptor, "$Id$")
#include "ace/SOCK_Stream.h"
#include "ace/Sock_Connect.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class HANDLER>
ACE_Asynch_Acceptor<HANDLER>::ACE_Asynch_Acceptor (void)
: listen_handle_ (ACE_INVALID_HANDLE),
@@ -174,7 +172,7 @@ ACE_Asynch_Acceptor<HANDLER>::open (const ACE_INET_Addr &address,
return 0;
}
-template <class HANDLER> int
+template <class HANDLER> void
ACE_Asynch_Acceptor<HANDLER>::set_handle (ACE_HANDLE listen_handle)
{
ACE_TRACE ("ACE_Asynch_Acceptor<>::set_handle");
@@ -187,11 +185,9 @@ ACE_Asynch_Acceptor<HANDLER>::set_handle (ACE_HANDLE listen_handle)
this->listen_handle_,
0,
this->proactor ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_LIB_TEXT ("%p\n"),
- ACE_LIB_TEXT ("ACE_Asynch_Accept::open")),
- -1);
- return 0;
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%p\n"),
+ ACE_LIB_TEXT ("ACE_Asynch_Accept::open")));
}
template <class HANDLER> ACE_HANDLE
@@ -371,13 +367,14 @@ ACE_Asynch_Acceptor<HANDLER>::cancel (void)
// ERROR_OPERATION_ABORTED. All completion notifications for the I/O
// operations will occur normally.
#if (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) \
- && ( defined (_MSC_VER) || (defined (__BORLANDC__)))
+ && ( defined (_MSC_VER) \
+ || (defined (__BORLANDC__) && (__BORLANDC__ >= 0x530)))
return (int) ::CancelIo (this->listen_handle_);
#else
// Supported now
return this->asynch_accept_.cancel();
-#endif /* (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) && ((defined (_MSC_VER)) || (defined (__BORLANDC__))) */
+#endif /* (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) && ((defined (_MSC_VER)) || (defined (__BORLANDC__) && (__BORLANDC__ >= 0x530))) */
}
template <class HANDLER> void
@@ -521,7 +518,5 @@ ACE_Asynch_Acceptor<HANDLER>::should_reissue_accept (void)
return this->reissue_accept_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 || ACE_HAS_AIO_CALLS */
#endif /* ACE_ASYNCH_ACCEPTOR_C */
diff --git a/ace/Asynch_Acceptor.h b/ace/Asynch_Acceptor.h
index e8cb490794d..27efe871c0f 100644
--- a/ace/Asynch_Acceptor.h
+++ b/ace/Asynch_Acceptor.h
@@ -26,8 +26,6 @@
#include "ace/Default_Constants.h"
#include "ace/Asynch_IO.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
class ACE_Message_Block;
class ACE_INET_Addr;
@@ -72,7 +70,7 @@ public:
* associated @c ACE_Service_Handler::addresses() method
* after any call to @c validate_new_connection() and prior
* to the @c open() hook method call.
- * @param backlog Optional, defaulting to @c ACE_DEFAULT_ASYNCH_BACKLOG (which
+ * @param backlog Optional, defaulting to @c ACE_DEFAULT_BACKLOG (which
* can be adjusted in your platform's @c config.h file).
* Specifies the listening backlog for the listening socket.
* @param reuse_addr Optional, indicates whether the @c SO_REUSEADDR
@@ -109,7 +107,7 @@ public:
virtual int open (const ACE_INET_Addr &address,
size_t bytes_to_read = 0,
int pass_addresses = 0,
- int backlog = ACE_DEFAULT_ASYNCH_BACKLOG,
+ int backlog = ACE_DEFAULT_BACKLOG,
int reuse_addr = 1,
ACE_Proactor *proactor = 0,
int validate_new_connection = 0,
@@ -125,7 +123,7 @@ public:
* closed and the all outstanding asynchronous operations have
* either completed or have been canceled on the old listen handle.
*/
- virtual int set_handle (ACE_HANDLE handle);
+ virtual void set_handle (ACE_HANDLE handle);
/// This initiates a new asynchronous accept operation.
/**
@@ -281,8 +279,6 @@ private:
int addr_family_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Asynch_Acceptor.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Asynch_Connector.cpp b/ace/Asynch_Connector.cpp
index 65b23f9a60c..1fbbcc512e7 100644
--- a/ace/Asynch_Connector.cpp
+++ b/ace/Asynch_Connector.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#ifndef ACE_ASYNCH_CONNECTOR_CPP
-#define ACE_ASYNCH_CONNECTOR_CPP
+#ifndef ACE_ASYNCH_CONNECTOR_C
+#define ACE_ASYNCH_CONNECTOR_C
#include "ace/Asynch_Connector.h"
@@ -9,6 +10,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+ACE_RCSID(ace, Asynch_Connector, "$Id$")
+
#if (defined (ACE_WIN32) || defined (ACE_HAS_AIO_CALLS)) && !defined(ACE_HAS_WINCE)
// This only works on platforms that support async I/O.
@@ -19,8 +22,6 @@
#include "ace/Message_Block.h"
#include "ace/INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class HANDLER>
ACE_Asynch_Connector<HANDLER>::ACE_Asynch_Connector (void)
: pass_addresses_ (0),
@@ -290,7 +291,5 @@ ACE_Asynch_Connector<HANDLER>::validate_new_connection (int new_value)
this->validate_new_connection_ = new_value;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 || ACE_HAS_AIO_CALLS */
-#endif /* ACE_ASYNCH_CONNECTOR_CPP */
+#endif /* ACE_ASYNCH_CONNECTOR_C */
diff --git a/ace/Asynch_Connector.h b/ace/Asynch_Connector.h
index 06e9bb41382..d7bf516cecf 100644
--- a/ace/Asynch_Connector.h
+++ b/ace/Asynch_Connector.h
@@ -26,8 +26,6 @@
#include "ace/Asynch_IO.h"
#include "ace/INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
class ACE_Message_Block;
@@ -157,8 +155,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Asynch_Connector.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Asynch_IO.cpp b/ace/Asynch_IO.cpp
index 00c5f482a76..58ddd94bd54 100644
--- a/ace/Asynch_IO.cpp
+++ b/ace/Asynch_IO.cpp
@@ -12,8 +12,6 @@ ACE_RCSID(ace, Asynch_IO, "$Id$")
#include "ace/INET_Addr.h"
#include "ace/Asynch_IO_Impl.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
size_t
ACE_Asynch_Result::bytes_transferred (void) const
{
@@ -1337,5 +1335,3 @@ template class ACE_Refcounted_Auto_Ptr<ACE_Handler::Proxy, ACE_SYNCH_MUTEX>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Refcounted_Auto_Ptr<ACE_Handler::Proxy, ACE_SYNCH_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Asynch_IO.h b/ace/Asynch_IO.h
index e4733562440..b1822e82c3c 100644
--- a/ace/Asynch_IO.h
+++ b/ace/Asynch_IO.h
@@ -47,8 +47,6 @@
#include "ace/os_include/sys/os_socket.h"
#include "ace/os_include/sys/os_types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_WIN32) && ! defined (ACE_HAS_WINCE) \
&& ! defined (ACE_HAS_PHARLAP)
typedef TRANSMIT_FILE_BUFFERS ACE_TRANSMIT_FILE_BUFFERS;
@@ -301,17 +299,9 @@ public:
/**
* Initializes the factory with information which will be used with
- * each asynchronous call.
- *
- * @arg handler The ACE_Handler that will be called to handle completions
- * for operations initiated using this factory.
- * @arg handle The handle that future read operations will use.
- * If handle == @c ACE_INVALID_HANDLE,
- * ACE_Handler::handle() will be called on @ handler
- * to get the correct handle.
- *
- * @retval 0 for success.
- * @retval -1 for failure; consult @c errno for further information.
+ * each asynchronous call. If ({handle} == ACE_INVALID_HANDLE),
+ * {ACE_Handler::handle} will be called on the {handler} to get the
+ * correct handle.
*/
int open (ACE_Handler &handler,
ACE_HANDLE handle = ACE_INVALID_HANDLE,
@@ -462,7 +452,7 @@ public:
int priority = 0,
int signal_number = ACE_SIGRTMIN);
-#if (defined (ACE_WIN32) && !defined (ACE_HAS_WINCE) && (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0))
+#if (defined (ACE_WIN32) && !defined (ACE_HAS_WINCE))
/**
* Same as above but with gather support, through chaining of composite
* message blocks using the continuation field.
@@ -472,10 +462,10 @@ public:
const void *act = 0,
int priority = 0,
int signal_number = ACE_SIGRTMIN);
-#endif /* (defined (ACE_WIN32) && !defined (ACE_HAS_WINCE) && (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) */
+#endif /* (defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) */
/// Return the underlying implementation class.
- /// @todo (this should be protected...)
+ // (this should be protected...)
virtual ACE_Asynch_Operation_Impl *implementation (void) const;
protected:
@@ -593,7 +583,7 @@ public:
/**
* Same as above but with scatter support, through chaining of composite
* message blocks using the continuation field.
- * @note In win32 Each data block payload must be at least the size of a system
+ * NOTE: In win32 Each data block payload must be at least the size of a system
* memory page and must be aligned on a system memory page size boundary
*/
int readv (ACE_Message_Block &message_block,
@@ -727,7 +717,7 @@ public:
/**
* Same as above but with gather support, through chaining of composite
* message blocks using the continuation field.
- * @note In win32 Each data block payload must be at least the size of a system
+ * NOTE: In win32 Each data block payload must be at least the size of a system
* memory page and must be aligned on a system memory page size boundary
*/
int writev (ACE_Message_Block &message_block,
@@ -1671,8 +1661,6 @@ public:
virtual void act (const void *);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 || ACE_HAS_AIO_CALLS*/
#include /**/ "ace/post.h"
#endif /* ACE_ASYNCH_IO_H */
diff --git a/ace/Asynch_IO_Impl.cpp b/ace/Asynch_IO_Impl.cpp
index 8dba289d6ec..8b52d7eab9a 100644
--- a/ace/Asynch_IO_Impl.cpp
+++ b/ace/Asynch_IO_Impl.cpp
@@ -10,8 +10,6 @@
#include "ace/Asynch_IO_Impl.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Asynch_Result_Impl::~ACE_Asynch_Result_Impl (void)
{
}
@@ -112,6 +110,7 @@ ACE_Asynch_Write_Dgram_Result_Impl::ACE_Asynch_Write_Dgram_Result_Impl (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+
#endif /* ACE_WIN32 || ACE_HAS_WINCE */
diff --git a/ace/Asynch_IO_Impl.h b/ace/Asynch_IO_Impl.h
index e0e4326009f..a6feb00fbf7 100644
--- a/ace/Asynch_IO_Impl.h
+++ b/ace/Asynch_IO_Impl.h
@@ -36,8 +36,6 @@
#include "ace/Asynch_IO.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
class ACE_Proactor_Impl;
@@ -307,7 +305,7 @@ public:
/**
* Same as above but with scatter support, through chaining of composite
* message blocks using the continuation field.
- * @note In win32 Each data block payload must be at least the size of a system
+ * NOTE: In win32 Each data block payload must be at least the size of a system
* memory page and must be aligned on a system memory page size boundary
*/
virtual int readv (ACE_Message_Block &message_block,
@@ -396,7 +394,7 @@ public:
/**
* Same as above but with gather support, through chaining of composite
* message blocks using the continuation field.
- * @note In win32 Each data block payload must be at least the size of a system
+ * NOTE: In win32 Each data block payload must be at least the size of a system
* memory page and must be aligned on a system memory page size boundary
*/
virtual int writev (ACE_Message_Block &message_block,
@@ -814,8 +812,6 @@ protected:
ACE_Asynch_Write_Dgram_Result_Impl (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Asynch_IO_Impl.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Asynch_IO_Impl.inl b/ace/Asynch_IO_Impl.inl
index 495a768a972..3d61fae7942 100644
--- a/ace/Asynch_IO_Impl.inl
+++ b/ace/Asynch_IO_Impl.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Asynch_Result_Impl::ACE_Asynch_Result_Impl (void)
{
@@ -102,5 +98,3 @@ ACE_Asynch_Transmit_File_Result_Impl::ACE_Asynch_Transmit_File_Result_Impl (void
: ACE_Asynch_Result_Impl ()
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Asynch_Pseudo_Task.cpp b/ace/Asynch_Pseudo_Task.cpp
index b3e25ef0298..ce936471e52 100644
--- a/ace/Asynch_Pseudo_Task.cpp
+++ b/ace/Asynch_Pseudo_Task.cpp
@@ -7,8 +7,6 @@
ACE_RCSID(ace, Asynch_Pseudo_Task, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Asynch_Pseudo_Task::ACE_Asynch_Pseudo_Task()
: select_reactor_ (), // should be initialized before reactor_
reactor_ (&select_reactor_, 0) // don't delete implementation
@@ -20,7 +18,7 @@ ACE_Asynch_Pseudo_Task::~ACE_Asynch_Pseudo_Task()
this->stop();
}
-int
+int
ACE_Asynch_Pseudo_Task::start (void)
{
if (this->reactor_.initialized () == 0)
@@ -32,10 +30,10 @@ ACE_Asynch_Pseudo_Task::start (void)
return this->activate () == -1 ? -1 : 0; // If started, return 0
}
-int
+int
ACE_Asynch_Pseudo_Task::stop (void)
{
- if (this->thr_count () == 0) // already stopped
+ if (this->thr_count () == 0) // already stopped
return 0;
if (this->reactor_.end_reactor_event_loop () == -1)
@@ -49,7 +47,7 @@ ACE_Asynch_Pseudo_Task::stop (void)
int
ACE_Asynch_Pseudo_Task::svc (void)
{
-#if !defined (ACE_WIN32)
+#if !defined (ACE_WIN32)
sigset_t RT_signals;
@@ -94,7 +92,7 @@ ACE_Asynch_Pseudo_Task::register_io_handler (ACE_HANDLE handle,
ACE_LIB_TEXT ("register_io_handler (suspended)")));
this->reactor_.remove_handler (handle,
ACE_Event_Handler::ALL_EVENTS_MASK
- | ACE_Event_Handler::DONT_CALL);
+ | ACE_Event_Handler::DONT_CALL);
return -1;
}
@@ -128,5 +126,3 @@ ACE_Asynch_Pseudo_Task::resume_io_handler (ACE_HANDLE handle)
{
return this->reactor_.resume_handler (handle);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Asynch_Pseudo_Task.h b/ace/Asynch_Pseudo_Task.h
index 7fc68e16b70..a20570737b5 100644
--- a/ace/Asynch_Pseudo_Task.h
+++ b/ace/Asynch_Pseudo_Task.h
@@ -25,8 +25,6 @@
#include "ace/Select_Reactor.h"
#include "ace/Task.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
* Specialization hook to replace the Reactor with the
* concrete Reactor implementation, e.g., select_st,
@@ -65,8 +63,6 @@ protected:
ACE_Reactor reactor_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_ASYNCH_PSEUDO_TASK_H */
diff --git a/ace/Atomic_Op.cpp b/ace/Atomic_Op.cpp
index 8737981a794..eee9f742d2c 100644
--- a/ace/Atomic_Op.cpp
+++ b/ace/Atomic_Op.cpp
@@ -179,8 +179,7 @@ multi_cpu_exchange_add (volatile long *value, long rhs)
} // end namespace
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
+
long (*ACE_Atomic_Op<ACE_Thread_Mutex, long>::increment_fn_) (volatile long *) = 0;
long (*ACE_Atomic_Op<ACE_Thread_Mutex, long>::decrement_fn_) (volatile long *) = 0;
long (*ACE_Atomic_Op<ACE_Thread_Mutex, long>::exchange_fn_) (volatile long *, long) = 0;
@@ -247,6 +246,4 @@ ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_BUILTIN_ATOMIC_OP */
diff --git a/ace/Atomic_Op.h b/ace/Atomic_Op.h
index 991625cd32f..968ed3d49b5 100644
--- a/ace/Atomic_Op.h
+++ b/ace/Atomic_Op.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -44,9 +44,6 @@
#endif /* ACE_HAS_THREADS */
#if defined (ACE_HAS_BUILTIN_ATOMIC_OP)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Atomic_Op<ACE_Thread_Mutex, long>
*
@@ -64,7 +61,7 @@ public:
ACE_Atomic_Op (void);
/// Initialize <value_> to c.
- ACE_Atomic_Op (const long &c);
+ ACE_Atomic_Op (long c);
/// Manage copying...
ACE_Atomic_Op (const ACE_Atomic_Op<ACE_Thread_Mutex, long> &c);
@@ -128,13 +125,10 @@ public:
static void init_functions (void);
private:
-
// This function cannot be supported by this template specialization.
// If you need access to an underlying lock, use the ACE_Atomic_Op_Ex
// template instead.
- ACE_Thread_Mutex &mutex (void);
-
-private:
+ ACE_UNIMPLEMENTED_FUNC (ACE_Thread_Mutex &mutex (void))
/// Current object decorated by the atomic op.
volatile long value_;
@@ -163,7 +157,7 @@ public:
ACE_Atomic_Op (void);
/// Initialize <value_> to c.
- ACE_Atomic_Op (const unsigned long &c);
+ ACE_Atomic_Op (unsigned long c);
/// Manage copying...
ACE_Atomic_Op (const ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long> &c);
@@ -227,13 +221,10 @@ public:
static void init_functions (void);
private:
-
// This function cannot be supported by this template specialization.
// If you need access to an underlying lock, use the ACE_Atomic_Op_Ex
// template instead.
- ACE_Thread_Mutex &mutex (void);
-
-private:
+ ACE_UNIMPLEMENTED_FUNC (ACE_Thread_Mutex &mutex (void))
/// Current object decorated by the atomic op.
volatile unsigned long value_;
@@ -245,8 +236,6 @@ private:
static long (*exchange_add_fn_) (volatile long *, long);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_BUILTIN_ATOMIC_OP */
#if defined (__ACE_INLINE__)
diff --git a/ace/Atomic_Op.inl b/ace/Atomic_Op.inl
index 007f653bbfa..7c481b206ad 100644
--- a/ace/Atomic_Op.inl
+++ b/ace/Atomic_Op.inl
@@ -5,8 +5,6 @@
#if defined (ACE_HAS_BUILTIN_ATOMIC_OP)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Atomic_Op<ACE_Thread_Mutex, long>::ACE_Atomic_Op (void)
: value_ (0)
@@ -14,7 +12,7 @@ ACE_Atomic_Op<ACE_Thread_Mutex, long>::ACE_Atomic_Op (void)
}
ACE_INLINE
-ACE_Atomic_Op<ACE_Thread_Mutex, long>::ACE_Atomic_Op (const long &c)
+ACE_Atomic_Op<ACE_Thread_Mutex, long>::ACE_Atomic_Op (long c)
: value_ (c)
{
}
@@ -159,7 +157,7 @@ ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>::ACE_Atomic_Op (void)
}
ACE_INLINE
-ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>::ACE_Atomic_Op (const unsigned long &c)
+ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>::ACE_Atomic_Op (unsigned long c)
: value_ (c)
{
}
@@ -296,6 +294,4 @@ ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>::value_i (void)
return this->value_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_BUILTIN_ATOMIC_OP */
diff --git a/ace/Atomic_Op_T.cpp b/ace/Atomic_Op_T.cpp
index d31e49e081a..cfa7b1b316e 100644
--- a/ace/Atomic_Op_T.cpp
+++ b/ace/Atomic_Op_T.cpp
@@ -1,5 +1,5 @@
-#ifndef ACE_ATOMIC_OP_T_CPP
-#define ACE_ATOMIC_OP_T_CPP
+#ifndef ACE_ATOMIC_OP_T_C
+#define ACE_ATOMIC_OP_T_C
#include "ace/Atomic_Op_T.h"
#include "ace/Log_Msg.h"
@@ -12,7 +12,6 @@
#include "ace/Atomic_Op_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Atomic_Op_Ex)
ACE_ALLOC_HOOK_DEFINE(ACE_Atomic_Op)
@@ -72,6 +71,4 @@ ACE_Atomic_Op<ACE_LOCK, TYPE>::ACE_Atomic_Op (const TYPE &c)
// ACE_TRACE ("ACE_Atomic_Op<ACE_LOCK, TYPE>::ACE_Atomic_Op");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_ATOMIC_OP_T_CPP */
+#endif /* ACE_ATOMIC_OP_T_C */
diff --git a/ace/Atomic_Op_T.h b/ace/Atomic_Op_T.h
index 89703186356..b87c1db1d4c 100644
--- a/ace/Atomic_Op_T.h
+++ b/ace/Atomic_Op_T.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Atomic_Op_Ex
*
@@ -112,7 +110,7 @@ public:
* Returns a reference to the underlying <ACE_LOCK>. This makes it
* possible to acquire the lock explicitly, which can be useful in
* some cases if you instantiate the <ACE_Atomic_Op_Ex> with an
- * <ACE_Recursive_Mutex> or <ACE_Process_Mutex>. @note the right
+ * <ACE_Recursive_Mutex> or <ACE_Process_Mutex>. NOTE: the right
* name would be lock_, but HP/C++ will choke on that!
*/
ACE_LOCK &mutex (void);
@@ -236,7 +234,6 @@ private:
ACE_Atomic_Op_Ex <ACE_LOCK, TYPE> impl_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "ace/Atomic_Op_T.inl"
diff --git a/ace/Atomic_Op_T.inl b/ace/Atomic_Op_T.inl
index 41b7ccd2af0..4a236220741 100644
--- a/ace/Atomic_Op_T.inl
+++ b/ace/Atomic_Op_T.inl
@@ -4,8 +4,6 @@
#include "ace/Guard_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//
// ACE_Atomic_Op_Ex inline functions
//
@@ -279,5 +277,3 @@ ACE_Atomic_Op<ACE_LOCK, TYPE>::value_i (void)
{
return this->impl_.value_i ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Auto_Event.cpp b/ace/Auto_Event.cpp
index 9e106ac8119..67444d3c886 100644
--- a/ace/Auto_Event.cpp
+++ b/ace/Auto_Event.cpp
@@ -6,11 +6,8 @@
#include "ace/Auto_Event.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (ace,
- Auto_Event,
- "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Auto_Event, "$Id$")
ACE_Auto_Event::ACE_Auto_Event (int initial_state,
int type,
@@ -19,12 +16,11 @@ ACE_Auto_Event::ACE_Auto_Event (int initial_state,
: ACE_Event (0,
initial_state,
type,
- ACE_TEXT_CHAR_TO_TCHAR (name),
+ ACE_TEXT_TO_TCHAR_IN (name),
arg)
{
}
-#if defined (ACE_HAS_WCHAR)
ACE_Auto_Event::ACE_Auto_Event (int initial_state,
int type,
const wchar_t *name,
@@ -32,11 +28,10 @@ ACE_Auto_Event::ACE_Auto_Event (int initial_state,
: ACE_Event (0,
initial_state,
type,
- ACE_TEXT_WCHAR_TO_TCHAR (name),
+ ACE_TEXT_TO_TCHAR_IN (name),
arg)
{
}
-#endif /* ACE_HAS_WCHAR */
void
ACE_Auto_Event::dump (void) const
@@ -45,5 +40,3 @@ ACE_Auto_Event::dump (void) const
ACE_Event::dump ();
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Auto_Event.h b/ace/Auto_Event.h
index d7279a13150..50e6aedf88c 100644
--- a/ace/Auto_Event.h
+++ b/ace/Auto_Event.h
@@ -24,8 +24,6 @@
#include "ace/Event.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Auto_Event
*
@@ -39,19 +37,17 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Auto_Event : public ACE_Event
{
public:
- /// Constructor which will create auto event
+ /// constructor which will create auto event
ACE_Auto_Event (int initial_state = 0,
int type = USYNC_THREAD,
const char *name = 0,
void *arg = 0);
-#if defined (ACE_HAS_WCHAR)
- /// Constructor which will create auto event (wchar_t version)
+ /// constructor which will create auto event (wchar_t version)
ACE_Auto_Event (int initial_state,
int type,
const wchar_t *name,
void *arg = 0);
-#endif /* ACE_HAS_WCHAR */
/// Default dtor.
~ACE_Auto_Event (void);
@@ -63,8 +59,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Auto_Event.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Auto_Event.inl b/ace/Auto_Event.inl
index 80048c29b99..e8858bfa4a6 100644
--- a/ace/Auto_Event.inl
+++ b/ace/Auto_Event.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Auto_Event::~ACE_Auto_Event (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Auto_Functor.cpp b/ace/Auto_Functor.cpp
index 91dbad1952b..af1ff0142ce 100644
--- a/ace/Auto_Functor.cpp
+++ b/ace/Auto_Functor.cpp
@@ -1,5 +1,3 @@
-// $Id$
-
#ifndef ACE_AUTO_FUNCTOR_CPP
#define ACE_AUTO_FUNCTOR_CPP
@@ -9,7 +7,7 @@
# include "ace/Auto_Functor.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Auto_Functor, "$Id$")
template<typename X, typename Functor>
ACE_Utils::Auto_Functor<X,Functor>::~Auto_Functor()
@@ -37,6 +35,4 @@ ACE_Utils::Auto_Functor<X,Functor>::reset(X * p, Functor f)
f_ = f;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /*ACE_AUTO_FUNCTOR_CPP*/
diff --git a/ace/Auto_Functor.h b/ace/Auto_Functor.h
index b9bcf8342b1..8a5f9f2ed71 100644
--- a/ace/Auto_Functor.h
+++ b/ace/Auto_Functor.h
@@ -20,8 +20,6 @@
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_Utils
{
/**
@@ -129,9 +127,7 @@ private:
Functor f_;
};
-} // namespace ACE_Utils
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+} // namespace TAO
#if defined(__ACE_INLINE__)
# include "ace/Auto_Functor.inl"
diff --git a/ace/Auto_Functor.inl b/ace/Auto_Functor.inl
index 31c2dc25f97..6364894bc86 100644
--- a/ace/Auto_Functor.inl
+++ b/ace/Auto_Functor.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<typename X, typename Functor> ACE_INLINE
ACE_Utils::Auto_Functor_Ref<X,Functor>::
Auto_Functor_Ref(X * p, Functor f)
@@ -145,5 +141,3 @@ ACE_Utils::Auto_Functor<X,Functor>::operator ACE_Utils::Auto_Functor_Ref<X,Funct
}
#endif /* ACE_LACKS_MEMBER_TEMPLATES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Auto_IncDec_T.cpp b/ace/Auto_IncDec_T.cpp
index cf33efd7d6e..c4e689e3ab2 100644
--- a/ace/Auto_IncDec_T.cpp
+++ b/ace/Auto_IncDec_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_AUTO_INCDEC_T_CPP
-#define ACE_AUTO_INCDEC_T_CPP
+#ifndef ACE_AUTO_INCDEC_T_C
+#define ACE_AUTO_INCDEC_T_C
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -10,12 +10,12 @@
#include "ace/Auto_IncDec_T.h"
#include "ace/Log_Msg.h"
+ACE_RCSID(ace, Auto_IncDec_T, "Auto_IncDec_T.cpp, by Edan Ayal")
+
#if !defined (__ACE_INLINE__)
#include "ace/Auto_IncDec_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Auto_IncDec)
template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> void
@@ -29,6 +29,4 @@ ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_AUTO_INCDEC_T_CPP */
+#endif /* ACE_AUTO_INCDEC_T_C */
diff --git a/ace/Auto_IncDec_T.h b/ace/Auto_IncDec_T.h
index 2aeefe27247..a9092c7c122 100644
--- a/ace/Auto_IncDec_T.h
+++ b/ace/Auto_IncDec_T.h
@@ -24,8 +24,6 @@
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Auto_IncDec
*
@@ -64,10 +62,9 @@ private:
ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Auto_IncDec_T.inl"
+// On non-Win32 platforms, this code will be inlined
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/ace/Auto_IncDec_T.inl b/ace/Auto_IncDec_T.inl
index 51daac0e84d..96658ed76c5 100644
--- a/ace/Auto_IncDec_T.inl
+++ b/ace/Auto_IncDec_T.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implicitly and automatically increment the counter.
template <class ACE_SAFELY_INCREMENTABLE_DECREMENTABLE> ACE_INLINE
@@ -22,4 +19,3 @@ ACE_Auto_IncDec<ACE_SAFELY_INCREMENTABLE_DECREMENTABLE>::~ACE_Auto_IncDec (void)
--this->counter_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Auto_Ptr.cpp b/ace/Auto_Ptr.cpp
index 3ac8e73cb86..9c2827504c9 100644
--- a/ace/Auto_Ptr.cpp
+++ b/ace/Auto_Ptr.cpp
@@ -1,7 +1,8 @@
+// Auto_Ptr.cpp
// $Id$
-#ifndef ACE_AUTO_PTR_CPP
-#define ACE_AUTO_PTR_CPP
+#if !defined (ACE_AUTO_PTR_C)
+#define ACE_AUTO_PTR_C
#include "ace/Auto_Ptr.h"
@@ -11,12 +12,9 @@
ACE_RCSID(ace, Auto_Ptr, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Auto_Basic_Ptr)
-ACE_ALLOC_HOOK_DEFINE(ACE_Auto_Basic_Array_Ptr)
-ACE_END_VERSIONED_NAMESPACE_DECL
+ACE_ALLOC_HOOK_DEFINE(ACE_Auto_Basic_Array_Ptr)
#if defined (__MINGW32__)
# if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && \
@@ -29,4 +27,4 @@ template alloc;
# endif /* ACE_HAS_STANDARD_CPP_LIBRARY != 0 */
#endif /* __MINGW32__ */
-#endif /* ACE_AUTO_PTR_CPP */
+#endif /* ACE_AUTO_PTR_C */
diff --git a/ace/Auto_Ptr.h b/ace/Auto_Ptr.h
index 5fe2908937f..1f0d93062dc 100644
--- a/ace/Auto_Ptr.h
+++ b/ace/Auto_Ptr.h
@@ -32,9 +32,6 @@
# pragma warning(disable: 4284)
#endif /* _MSC_VER */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Auto_Basic_Ptr
*
@@ -68,8 +65,6 @@ protected:
X *p_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if !defined (ACE_LACKS_AUTO_PTR) && \
defined (ACE_HAS_STANDARD_CPP_LIBRARY) && \
(ACE_HAS_STANDARD_CPP_LIBRARY != 0)
@@ -98,7 +93,6 @@ public:
#endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @brief Implements the draft C++ standard auto_ptr abstraction.
@@ -169,24 +163,17 @@ public:
X *operator-> () const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Some platforms have an older version of auto_ptr
// support, which lacks reset, and cannot be disabled
// easily. Portability to these platforms requires
// use of the following ACE_AUTO_PTR_RESET macro.
-//
-// Note that this macro correctly handles the case where NEWPTR may be
-// a call to operator new(), e.g. "new foo", by making sure it is only
-// evaluated once.
# if defined (ACE_AUTO_PTR_LACKS_RESET)
# define ACE_AUTO_PTR_RESET(AUTOPTR,NEWPTR,TYPE) \
do { \
- TYPE * tmp_ptr = NEWPTR; \
- if (tmp_ptr != AUTOPTR.get ()) \
+ if (NEWPTR != AUTOPTR.get ()) \
{ \
- delete AUTOPTR.release (); \
- AUTOPTR = auto_ptr<TYPE> (tmp_ptr); \
+ AUTOPTR.release (); \
+ AUTOPTR = auto_ptr<TYPE> (NEWPTR); \
} \
} while (0)
# else /* ! ACE_AUTO_PTR_LACKS_RESET */
diff --git a/ace/Auto_Ptr.inl b/ace/Auto_Ptr.inl
index 57adb236261..ce4d53a490c 100644
--- a/ace/Auto_Ptr.inl
+++ b/ace/Auto_Ptr.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/Global_Macros.h"
+// Auto_Ptr.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/Global_Macros.h"
template<class X> ACE_INLINE void
ACE_Auto_Basic_Ptr<X>::dump (void) const
@@ -168,4 +167,3 @@ ACE_Auto_Array_Ptr<X>::operator->() const
return this->get ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Barrier.cpp b/ace/Barrier.cpp
index 739e249cd76..6637f1ec638 100644
--- a/ace/Barrier.cpp
+++ b/ace/Barrier.cpp
@@ -9,17 +9,12 @@
#endif /* __ACE_INLINE__ */
#include "ace/Guard_T.h"
-#include "ace/OS_NS_errno.h"
#if defined (ACE_HAS_DUMP)
# include "ace/Log_Msg.h"
#endif /* ACE_HAS_DUMP */
-ACE_RCSID (ace,
- Barrier,
- "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Barrier, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Sub_Barrier)
@@ -74,7 +69,7 @@ ACE_Barrier::ACE_Barrier (unsigned int count,
sub_barrier_1_ (count, lock_, name, arg),
sub_barrier_2_ (count, lock_, name, arg)
{
- ACE_TRACE ("ACE_Barrier::ACE_Barrier");
+// ACE_TRACE ("ACE_Barrier::ACE_Barrier");
this->sub_barrier_[0] = &this->sub_barrier_1_;
this->sub_barrier_[1] = &this->sub_barrier_2_;
}
@@ -82,7 +77,7 @@ ACE_Barrier::ACE_Barrier (unsigned int count,
int
ACE_Barrier::wait (void)
{
- ACE_TRACE ("ACE_Barrier::wait");
+// ACE_TRACE ("ACE_Barrier::wait");
ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, this->lock_, -1);
ACE_Sub_Barrier *sbp =
@@ -90,18 +85,14 @@ ACE_Barrier::wait (void)
// Check for shutdown...
if (sbp == 0)
- {
- errno = ESHUTDOWN;
- return -1;
- }
-
- int retval = 0;
+ return -1;
if (sbp->running_threads_ == 1)
{
// We're the last running thread, so swap generations and tell
// all the threads waiting on the barrier to continue on their
// way.
+
sbp->running_threads_ = this->count_;
// Swap generations.
this->current_generation_ = 1 - this->current_generation_;
@@ -114,43 +105,8 @@ ACE_Barrier::wait (void)
// Block until all the other threads wait().
while (sbp->running_threads_ != this->count_)
sbp->barrier_finished_.wait ();
-
- // We're awake and the count has completed. See if it completed
- // because all threads hit the barrier, or because the barrier
- // was shut down.
- if (this->sub_barrier_[this->current_generation_] == 0)
- {
- errno = ESHUTDOWN;
- retval = -1;
- }
- }
-
- return retval;
-}
-
-int
-ACE_Barrier::shutdown (void)
-{
- ACE_TRACE ("ACE_Barrier::shutdown");
- ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, this->lock_, -1);
-
- ACE_Sub_Barrier *sbp =
- this->sub_barrier_[this->current_generation_];
-
- // Check for shutdown...
- if (sbp == 0)
- {
- errno = ESHUTDOWN;
- return -1;
}
- // Flag the shutdown
- this->sub_barrier_[0] = 0;
- this->sub_barrier_[1] = 0;
- // Tell all the threads waiting on the barrier to continue on their way.
- sbp->running_threads_ = this->count_;
- sbp->barrier_finished_.broadcast ();
-
return 0;
}
@@ -192,6 +148,4 @@ ACE_Process_Barrier::dump (void) const
}
#endif /* 0 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/Barrier.h b/ace/Barrier.h
index 7939aed1d24..1bc2514c1de 100644
--- a/ace/Barrier.h
+++ b/ace/Barrier.h
@@ -16,27 +16,31 @@
#define ACE_BARRIER_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/config-all.h"
+#include "ace/OS_NS_errno.h"
// ACE platform supports some form of threading.
#if !defined (ACE_HAS_THREADS)
-#include "ace/OS_NS_errno.h"
+#include "ace/config-all.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Barrier
*
* @brief This is a no-op to make ACE "syntactically consistent."
*/
-class ACE_Export ACE_Barrier
+class ACE_Threads_Export ACE_Barrier
{
public:
ACE_Barrier (unsigned int, const ACE_TCHAR * = 0, void * = 0) {}
@@ -45,15 +49,11 @@ public:
void dump (void) const {}
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#else /* ACE_HAS_THREADS */
#include "ace/Condition_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-struct ACE_Export ACE_Sub_Barrier
+struct ACE_Threads_Export ACE_Sub_Barrier
{
// = Initialization.
ACE_Sub_Barrier (unsigned int count,
@@ -93,7 +93,7 @@ struct ACE_Export ACE_Sub_Barrier
* SunOpsis Vol. 4, No. 1 by Richard Marejka
* (Richard.Marejka@canada.sun.com).
*/
-class ACE_Export ACE_Barrier
+class ACE_Threads_Export ACE_Barrier
{
public:
/// Initialize the barrier to synchronize @a count threads.
@@ -106,20 +106,8 @@ public:
/// Block the caller until all @c count threads have called @c wait and
/// then allow all the caller threads to continue in parallel.
- ///
- /// @retval 0 after successfully waiting for all threads to wait. -1 if
- /// an error occurs or the barrier is shut down (@sa shutdown ()).
int wait (void);
- /// Shut the barrier down, aborting the wait of all waiting threads.
- /// Any threads waiting on the barrier when it is shut down will return with
- /// value -1, errno ESHUTDOWN.
- ///
- /// @retval 0 for success, -1 if already shut down.
- ///
- /// @since ACE beta 5.4.9.
- int shutdown (void);
-
/// Dump the state of an object.
void dump (void) const;
@@ -164,7 +152,7 @@ private:
* This class is just a simple wrapper for ACE_Barrier that
* selects the USYNC_PROCESS variant for the locks.
*/
-class ACE_Export ACE_Process_Barrier : public ACE_Barrier
+class ACE_Threads_Export ACE_Process_Barrier : public ACE_Barrier
{
public:
/// Create a Process_Barrier, passing in the optional <name>.
@@ -186,7 +174,7 @@ public:
* This class is just a simple wrapper for ACE_Barrier that
* selects the USYNC_THREAD variant for the locks.
*/
-class ACE_Export ACE_Thread_Barrier : public ACE_Barrier
+class ACE_Threads_Export ACE_Thread_Barrier : public ACE_Barrier
{
public:
/// Create a Thread_Barrier, passing in the optional @a name.
@@ -202,8 +190,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Barrier.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Barrier.inl b/ace/Barrier.inl
index 9ab5c9fb111..bb7a483b3e3 100644
--- a/ace/Barrier.inl
+++ b/ace/Barrier.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Sub_Barrier::~ACE_Sub_Barrier (void)
{
@@ -18,5 +15,3 @@ ACE_INLINE
ACE_Thread_Barrier::~ACE_Thread_Barrier (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Base_Thread_Adapter.cpp b/ace/Base_Thread_Adapter.cpp
index 23e3556fd9a..5aa59b6a113 100644
--- a/ace/Base_Thread_Adapter.cpp
+++ b/ace/Base_Thread_Adapter.cpp
@@ -2,9 +2,7 @@
#include "ace/Base_Thread_Adapter.h"
-ACE_RCSID (ace,
- Base_Thread_Adapter,
- "$Id$")
+ACE_RCSID(ace, Base_Thread_Adapter, "$Id$")
#if !defined (ACE_HAS_INLINED_OSCALLS)
# include "ace/Base_Thread_Adapter.inl"
@@ -14,8 +12,6 @@ ACE_RCSID (ace,
# include "ace/OS_NS_Thread.h"
#endif /* ACE_HAS_TSS_EMULATION */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INIT_LOG_MSG_HOOK ACE_Base_Thread_Adapter::init_log_msg_hook_ = 0;
ACE_INHERIT_LOG_MSG_HOOK ACE_Base_Thread_Adapter::inherit_log_msg_hook_ = 0;
ACE_CLOSE_LOG_MSG_HOOK ACE_Base_Thread_Adapter::close_log_msg_hook_ = 0;
@@ -87,16 +83,14 @@ ACE_Base_Thread_Adapter::thr_desc_log_msg (void)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Run the thread entry point for the <ACE_Thread_Adapter>. This must
// be an extern "C" to make certain compilers happy...
#if defined (ACE_PSOS)
extern "C" void
-ACE_THREAD_ADAPTER_NAME (unsigned long args)
+ace_thread_adapter (unsigned long args)
{
- ACE_OS_TRACE ("ACE_THREAD_ADAPTER_NAME");
+ ACE_OS_TRACE ("ace_thread_adapter");
#if defined (ACE_HAS_TSS_EMULATION)
// As early as we can in the execution of the new thread, allocate
@@ -106,7 +100,7 @@ ACE_THREAD_ADAPTER_NAME (unsigned long args)
ACE_TSS_Emulation::tss_open (ts_storage);
#endif /* ACE_HAS_TSS_EMULATION */
- ACE_Base_Thread_Adapter * const thread_args =
+ ACE_Base_Thread_Adapter *thread_args =
static_cast<ACE_Base_Thread_Adapter *> (args);
// Invoke the user-supplied function with the args.
@@ -114,9 +108,9 @@ ACE_THREAD_ADAPTER_NAME (unsigned long args)
}
#else /* ! defined (ACE_PSOS) */
extern "C" ACE_THR_FUNC_RETURN
-ACE_THREAD_ADAPTER_NAME (void *args)
+ace_thread_adapter (void *args)
{
- ACE_OS_TRACE ("ACE_THREAD_ADAPTER_NAME");
+ ACE_OS_TRACE ("ace_thread_adapter");
#if defined (ACE_HAS_TSS_EMULATION)
// As early as we can in the execution of the new thread, allocate
@@ -126,7 +120,7 @@ ACE_THREAD_ADAPTER_NAME (void *args)
ACE_TSS_Emulation::tss_open (ts_storage);
#endif /* ACE_HAS_TSS_EMULATION */
- ACE_Base_Thread_Adapter * const thread_args =
+ ACE_Base_Thread_Adapter *thread_args =
static_cast<ACE_Base_Thread_Adapter *> (args);
#ifdef ACE_USES_GPROF
diff --git a/ace/Base_Thread_Adapter.h b/ace/Base_Thread_Adapter.h
index 66848a365e3..cd82e2b45ac 100644
--- a/ace/Base_Thread_Adapter.h
+++ b/ace/Base_Thread_Adapter.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Base_Thread_Adapter.h
@@ -27,31 +25,14 @@
#include "os_include/sys/os_time.h"
#endif // ACE_USES_GPROF
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define ACE_THREAD_ADAPTER_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ace_thread_adapter)
-
-#else
-
-# define ACE_THREAD_ADAPTER_NAME ace_thread_adapter
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
// Run the thread entry point for the ACE_Thread_Adapter. This must
// be an extern "C" to make certain compilers happy...
-
#if defined (ACE_PSOS)
-extern "C" void ACE_THREAD_ADAPTER_NAME (unsigned long args);
+extern "C" void ace_thread_adapter (unsigned long args);
#else /* ! defined (ACE_PSOS) */
-extern "C" ACE_Export ACE_THR_FUNC_RETURN ACE_THREAD_ADAPTER_NAME (void *args);
+extern "C" ACE_Export ACE_THR_FUNC_RETURN ace_thread_adapter (void *args);
#endif /* ACE_PSOS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_OS_Thread_Descriptor
*
@@ -127,7 +108,7 @@ protected:
/// Constructor.
ACE_Base_Thread_Adapter (ACE_THR_FUNC user_func,
void *arg,
- ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME,
+ ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ace_thread_adapter,
ACE_OS_Thread_Descriptor *td = 0
# if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
, ACE_SEH_EXCEPT_HANDLER selector = 0
@@ -182,10 +163,11 @@ protected:
struct itimerval itimer_;
#endif // ACE_USES_GPROF
+ /// Friend declaration to avoid compiler warning: only defines a private
+ /// destructor and has no friends.
+ friend class ACE_Thread_Adapter_Has_Private_Destructor;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/Base_Thread_Adapter.inl b/ace/Base_Thread_Adapter.inl
index 7fa3959034b..814c50e610d 100644
--- a/ace/Base_Thread_Adapter.inl
+++ b/ace/Base_Thread_Adapter.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE long
ACE_OS_Thread_Descriptor::flags (void) const
{
@@ -36,7 +32,6 @@ ACE_Base_Thread_Adapter::entry_point (void)
{
return this->entry_point_;
}
-
#ifdef ACE_USES_GPROF
ACE_INLINE itimerval*
ACE_Base_Thread_Adapter::timerval (void)
@@ -44,5 +39,3 @@ ACE_Base_Thread_Adapter::timerval (void)
return &(this->itimer_);
}
#endif // ACE_USES_GPROF
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Based_Pointer_Repository.cpp b/ace/Based_Pointer_Repository.cpp
index 73d3db464b3..2973da69ee8 100644
--- a/ace/Based_Pointer_Repository.cpp
+++ b/ace/Based_Pointer_Repository.cpp
@@ -7,8 +7,6 @@
#include "ace/Synch_Traits.h"
#include "ace/RW_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Based_Pointer_Repository_Rep
*
@@ -131,5 +129,3 @@ template class ACE_Map_Iterator_Base<void *, size_t, ACE_Null_Mutex>;
template ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX> *
ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Based_Pointer_Repository.h b/ace/Based_Pointer_Repository.h
index 5d0b1b8fe41..586bfcf79be 100644
--- a/ace/Based_Pointer_Repository.h
+++ b/ace/Based_Pointer_Repository.h
@@ -16,19 +16,21 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+# define ACE_MEMORY_SINGLETON_DECLARE ACE_SINGLETON_DECLARE
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Singleton.h"
#include "ace/Synch_Traits.h"
#include "ace/os_include/os_stddef.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl., using the "Cheshire Cat" technique.
class ACE_Based_Pointer_Repository_Rep;
@@ -38,10 +40,10 @@ class ACE_Based_Pointer_Repository_Rep;
* @brief Maps pointers to the base address of the region to which each
* pointer belongs.
*/
-class ACE_Export ACE_Based_Pointer_Repository
+class ACE_Memory_Export ACE_Based_Pointer_Repository
{
public:
- // = Use ACE_Null_Mutex to allow locking while iterating.
+ // = Use <ACE_Null_Mutex> to allow locking while iterating.
// = Initialization and termination methods.
ACE_Based_Pointer_Repository (void);
@@ -49,9 +51,9 @@ public:
// = Search structure methods.
/**
- * Return the appropriate @a base_addr region that contains @a addr.
- * Returns 1 on success and 0 if the @a addr isn't contained in any
- * @a base_addr region.
+ * Return the appropriate <base_addr> region that contains <addr>.
+ * Returns 1 on success and 0 if the <addr> isn't contained in any
+ * <base_addr> region.
*/
int find (void *addr,
void *&base_addr);
@@ -75,16 +77,17 @@ private:
// ----------------------------------
+#include "ace/Singleton.h"
+
/// Declare a process wide singleton
-ACE_SINGLETON_DECLARE (ACE_Singleton,
- ACE_Based_Pointer_Repository,
- ACE_SYNCH_RW_MUTEX)
+ACE_MEMORY_SINGLETON_DECLARE (ACE_Singleton,
+ ACE_Based_Pointer_Repository,
+ ACE_SYNCH_RW_MUTEX)
/// Provide a Singleton access point to the based pointer repository.
typedef ACE_Singleton<ACE_Based_Pointer_Repository, ACE_SYNCH_RW_MUTEX>
ACE_BASED_POINTER_REPOSITORY;
-ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/ace/Based_Pointer_T.cpp b/ace/Based_Pointer_T.cpp
index 2155bc3a734..c648d28834f 100644
--- a/ace/Based_Pointer_T.cpp
+++ b/ace/Based_Pointer_T.cpp
@@ -13,8 +13,6 @@
#include "ace/Based_Pointer_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class CONCRETE>
ACE_Based_Pointer<CONCRETE>::ACE_Based_Pointer (void)
{
@@ -116,6 +114,4 @@ ACE_Based_Pointer<CONCRETE>::ACE_Based_Pointer (const ACE_Based_Pointer<CONCRETE
ACE_ASSERT (0); // not implemented.
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_BASED_POINTER_T_CPP */
diff --git a/ace/Based_Pointer_T.h b/ace/Based_Pointer_T.h
index 1d778639211..91ebfc778cd 100644
--- a/ace/Based_Pointer_T.h
+++ b/ace/Based_Pointer_T.h
@@ -27,8 +27,6 @@
#pragma warning(disable: 4284)
#endif /* _MSC_VER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Based_Pointer_Basic
*
@@ -160,15 +158,15 @@ class ACE_Based_Pointer : public ACE_Based_Pointer_Basic<CONCRETE>
{
public:
// = Initialization method.
- /// Constructor. See constructor for ACE_Based_Pointer_Basic for
+ /// Constructor. See constructor for <ACE_Based_Pointer_Basic> for
/// details.
ACE_Based_Pointer (void);
/// Initialize this object using the <initial> pointer. See
- /// constructor for ACE_Based_Pointer_Basic for details.
+ /// constructor for <ACE_Based_Pointer_Basic> for details.
ACE_Based_Pointer (CONCRETE *initial);
- /// Initialize this object with known @a base_addr. @a dummy is
+ /// Initialize this object with known <base_addr>. <dummy> is
/// a dummy value used to resolve overload ambiguity and it
/// otherwise ignored.
ACE_Based_Pointer (const void *base_addr, int dummy);
@@ -186,8 +184,6 @@ public:
CONCRETE *operator-> (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Based_Pointer_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Based_Pointer_T.inl b/ace/Based_Pointer_T.inl
index 4d6b86e0c41..b45e14073e3 100644
--- a/ace/Based_Pointer_T.inl
+++ b/ace/Based_Pointer_T.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#define ACE_COMPUTE_BASED_POINTER(P) (((char *) (P) - (P)->base_offset_) + (P)->target_)
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class CONCRETE> ACE_INLINE CONCRETE *
ACE_Based_Pointer<CONCRETE>::operator->(void)
{
@@ -135,5 +132,3 @@ ACE_Based_Pointer<CONCRETE>::operator= (const ACE_Based_Pointer<CONCRETE> &rhs)
ACE_TRACE ("ACE_Based_Pointer<CONCRETE>::operator=");
*this = rhs.addr ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Basic_Stats.cpp b/ace/Basic_Stats.cpp
index f81b29bfcaa..ed0be542095 100644
--- a/ace/Basic_Stats.cpp
+++ b/ace/Basic_Stats.cpp
@@ -7,11 +7,7 @@
#include "ace/Basic_Stats.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID(ace,
- Basic_Stats,
- "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Basic_Stats, "$Id$")
void
ACE_Basic_Stats::accumulate (const ACE_Basic_Stats &rhs)
@@ -32,7 +28,7 @@ ACE_Basic_Stats::accumulate (const ACE_Basic_Stats &rhs)
if (this->min_ > rhs.min_)
{
this->min_ = rhs.min_;
- this->min_at_ = rhs.min_at_;
+ this->min_at_ = rhs.min_at_;
}
if (this->max_ < rhs.max_)
{
@@ -46,7 +42,7 @@ ACE_Basic_Stats::accumulate (const ACE_Basic_Stats &rhs)
}
void
-ACE_Basic_Stats::dump_results (const ACE_TCHAR *msg,
+ACE_Basic_Stats::dump_results (const char *msg,
ACE_UINT32 sf) const
{
#ifndef ACE_NLOGGING
@@ -73,4 +69,30 @@ ACE_Basic_Stats::dump_results (const ACE_TCHAR *msg,
#endif /* ACE_NLOGGING */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+void
+ACE_Basic_Stats::dump_results (const wchar_t *msg,
+ ACE_UINT32 sf) const
+{
+#ifndef ACE_NLOGGING
+ if (this->samples_count () == 0u)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_LIB_TEXT ("%s : no data collected\n"), msg));
+ return;
+ }
+
+ ACE_UINT64 avg = this->sum_ / this->samples_count_;
+
+ ACE_UINT64 l_min = this->min_ / sf;
+ ACE_UINT64 l_max = this->max_ / sf;
+ ACE_UINT64 l_avg = avg / sf;
+
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_LIB_TEXT ("%s latency : %Q[%d]/%Q/%Q[%d] (min/avg/max)\n"),
+ msg,
+ l_min, this->min_at_,
+ l_avg,
+ l_max, this->max_at_));
+
+#endif /* ACE_NLOGGING */
+}
diff --git a/ace/Basic_Stats.h b/ace/Basic_Stats.h
index 2dc50694e63..ffbd7ce1df6 100644
--- a/ace/Basic_Stats.h
+++ b/ace/Basic_Stats.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Collect basic stats about a series of samples
/**
* Compute the average and standard deviation (aka jitter) for an
@@ -55,7 +53,10 @@ public:
* high resolution timer samples are acquired in clock ticks, but often
* presented in microseconds.
*/
- void dump_results (const ACE_TCHAR *msg,
+ void dump_results (const char *msg,
+ ACE_UINT32 scale_factor) const;
+
+ void dump_results (const wchar_t *msg,
ACE_UINT32 scale_factor) const;
/// The number of samples
@@ -77,8 +78,6 @@ public:
ACE_UINT64 sum_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Basic_Stats.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Basic_Stats.inl b/ace/Basic_Stats.inl
index bbdce099907..b2fd80d121a 100644
--- a/ace/Basic_Stats.inl
+++ b/ace/Basic_Stats.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Basic_Stats::ACE_Basic_Stats (void)
: samples_count_ (0)
@@ -49,5 +45,3 @@ ACE_Basic_Stats::sample (ACE_UINT64 value)
this->sum_ += value;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Basic_Types.cpp b/ace/Basic_Types.cpp
index 6300cf7bb5d..b31658212a0 100644
--- a/ace/Basic_Types.cpp
+++ b/ace/Basic_Types.cpp
@@ -19,8 +19,6 @@ ACE_RCSID (ace,
# include "ace/streams.h"
# endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_U_LongLong::output (FILE *file) const
{
@@ -133,7 +131,6 @@ operator<< (ostream& os, const ACE_U_LongLong& ll)
}
# endif
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_LACKS_LONGLONG_T */
diff --git a/ace/Basic_Types.h b/ace/Basic_Types.h
index abde82d342c..cf08f81b4a0 100644
--- a/ace/Basic_Types.h
+++ b/ace/Basic_Types.h
@@ -14,7 +14,6 @@
*
* Sizes of built-in types:
* - ACE_SIZEOF_CHAR
- * - ACE_SIZEOF_WCHAR
* - ACE_SIZEOF_SHORT
* - ACE_SIZEOF_INT
* - ACE_SIZEOF_LONG
@@ -33,7 +32,7 @@
* - ACE_INT32
* - ACE_UINT32
* - ACE_UINT64
- * (@note ACE_INT64 is partly defined, there is no ACE_LongLong for
+ * (Note: ACE_INT64 is partly defined, there is no ACE_LongLong for
* platforms that don't have a native 8-byte integer type.)
*
* Byte-order (endian-ness) determination:
@@ -83,23 +82,6 @@
// A char always has 1 byte, by definition.
# define ACE_SIZEOF_CHAR 1
-// Unfortunately, there isn't a portable way to determine the size of a wchar.
-// So we just define them on a platform basis. If the platform doesn't
-// define it and it's an XPG4 system, assume wchar_t is 4 bytes. Some code
-// uses ACE_SIZEOF_WCHAR in preprocessor statements, so sizeof() isn't valid.
-// If the platform config doesn't set this, and this guess is wrong,
-// Basic_Types_Test should catch the inconsistency.
-# if defined (ACE_HAS_WCHAR)
-# if !defined (ACE_SIZEOF_WCHAR)
-# if defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
-# define ACE_SIZEOF_WCHAR 4
-# else
-// 0 so the Basic_Types test will catch this.
-# define ACE_SIZEOF_WCHAR 0
-# endif /* ACE_HAS_XPG4_MULTIBYTE_CHAR */
-# endif /* !ACE_SIZEOF_WCHAR */
-# endif /* ACE_HAS_WCHAR */
-
// The number of bytes in a short.
# if !defined (ACE_SIZEOF_SHORT)
# if (USHRT_MAX) == 255U
@@ -169,99 +151,97 @@
# endif /* !defined (ACE_SIZEOF_LONG_LONG) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// The sizes of the commonly implemented types are now known. Set up
// typedefs for whatever we can. Some of these are needed for certain
// cases of ACE_UINT64, so do them before the 64-bit stuff.
#if defined (ACE_INT8_TYPE)
- typedef ACE_INT8_TYPE ACE_INT8;
+ typedef ACE_INT8_TYPE ACE_INT8;
#elif defined (ACE_HAS_INT8_T)
- typedef int8_t ACE_INT8;
+ typedef int8_t ACE_INT8;
#elif !defined (ACE_LACKS_SIGNED_CHAR)
- typedef signed char ACE_INT8;
+ typedef signed char ACE_INT8;
#else
- typedef char ACE_INT8;
+ typedef char ACE_INT8;
#endif /* defined (ACE_INT8_TYPE) */
#if defined (ACE_UINT8_TYPE)
- typedef ACE_UINT8_TYPE ACE_UINT8;
+ typedef ACE_UINT8_TYPE ACE_UINT8;
#elif defined (ACE_HAS_UINT8_T)
- typedef uint8_t ACE_UINT8;
+ typedef uint8_t ACE_UINT8;
#else
- typedef unsigned char ACE_UINT8;
+ typedef unsigned char ACE_UINT8;
#endif /* defined (ACE_UINT8_TYPE) */
#if defined (ACE_INT16_TYPE)
- typedef ACE_INT16_TYPE ACE_INT16;
+ typedef ACE_INT16_TYPE ACE_INT16;
#elif defined (ACE_HAS_INT16_T)
- typedef int16_t ACE_INT16;
+ typedef int16_t ACE_INT16;
#elif ACE_SIZEOF_SHORT == 2
- typedef short ACE_INT16;
+ typedef short ACE_INT16;
#elif ACE_SIZEOF_INT == 2
- typedef int ACE_INT16;
+ typedef int ACE_INT16;
#else
# error Have to add to the ACE_INT16 type setting
#endif /* defined (ACE_INT16_TYPE) */
#if defined (ACE_UINT16_TYPE)
- typedef ACE_UINT16_TYPE ACE_UINT16;
+ typedef ACE_UINT16_TYPE ACE_UINT16;
#elif defined (ACE_HAS_UINT16_T)
- typedef uint16_t ACE_UINT16;
+ typedef uint16_t ACE_UINT16;
#elif ACE_SIZEOF_SHORT == 2
- typedef unsigned short ACE_UINT16;
+ typedef unsigned short ACE_UINT16;
#elif ACE_SIZEOF_INT == 2
- typedef unsigned int ACE_UINT16;
+ typedef unsigned int ACE_UINT16;
#else
# error Have to add to the ACE_UINT16 type setting
#endif /* defined (ACE_UINT16_TYPE) */
#if defined (ACE_INT32_TYPE)
- typedef ACE_INT32_TYPE ACE_INT32;
+ typedef ACE_INT32_TYPE ACE_INT32;
#elif defined (ACE_HAS_INT32_T)
- typedef int32_t ACE_INT32;
+ typedef int32_t ACE_INT32;
#elif ACE_SIZEOF_INT == 4
- typedef int ACE_INT32;
+ typedef int ACE_INT32;
#elif ACE_SIZEOF_LONG == 4
- typedef long ACE_INT32;
+ typedef long ACE_INT32;
#else
# error Have to add to the ACE_INT32 type setting
#endif /* defined (ACE_INT32_TYPE) */
#if defined (ACE_UINT32_TYPE)
- typedef ACE_UINT32_TYPE ACE_UINT32;
+ typedef ACE_UINT32_TYPE ACE_UINT32;
#elif defined (ACE_HAS_UINT32_T)
- typedef uint32_t ACE_UINT32;
+ typedef uint32_t ACE_UINT32;
#elif ACE_SIZEOF_INT == 4
- typedef unsigned int ACE_UINT32;
+ typedef unsigned int ACE_UINT32;
#elif ACE_SIZEOF_LONG == 4
- typedef unsigned long ACE_UINT32;
+ typedef unsigned long ACE_UINT32;
#else
# error Have to add to the ACE_UINT32 type setting
#endif /* defined (ACE_UINT32_TYPE) */
#if defined (ACE_INT64_TYPE)
- typedef ACE_INT64_TYPE ACE_INT64;
+ typedef ACE_INT64_TYPE ACE_INT64;
#elif defined (ACE_HAS_INT64_T)
- typedef int64_t ACE_INT64;
+ typedef int64_t ACE_INT64;
#elif ACE_SIZEOF_LONG == 8
- typedef long ACE_INT64;
+ typedef long ACE_INT64;
#elif !defined (ACE_LACKS_LONGLONG_T) && ACE_SIZEOF_LONG_LONG == 8
- typedef long long ACE_INT64;
+ typedef long long ACE_INT64;
#endif /* defined (ACE_INT64_TYPE) */
#if !(defined (ACE_LACKS_LONGLONG_T) || defined (ACE_LACKS_UNSIGNEDLONGLONG_T))
/* See matching #if around ACE_U_LongLong class declaration below */
# if defined (ACE_UINT64_TYPE)
- typedef ACE_UINT64_TYPE ACE_UINT64;
+ typedef ACE_UINT64_TYPE ACE_UINT64;
# elif defined (ACE_HAS_UINT64_T)
- typedef uint64_t ACE_UINT64;
+ typedef uint64_t ACE_UINT64;
# elif ACE_SIZEOF_LONG == 8
- typedef unsigned long ACE_UINT64;
+ typedef unsigned long ACE_UINT64;
# elif ACE_SIZEOF_LONG_LONG == 8
- typedef unsigned long long ACE_UINT64;
+ typedef unsigned long long ACE_UINT64;
# endif /* defined (ACE_UINT64_TYPE) */
#endif /* !(ACE_LACKS_LONGLONG_T || ACE_LACKS_UNSIGNEDLONGLONG_T) */
@@ -271,17 +251,6 @@ typedef ACE_UINT16 ACE_USHORT16; // @@ Backward compatibility.
// Define a generic byte for use in codecs
typedef unsigned char ACE_Byte;
-// Define a pseudo wide character type when wchar is not supported so we
-// can support basic wide character string operations.
-
-# if defined (ACE_HAS_WCHAR) || defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
-# define ACE_WINT_T wint_t
-# define ACE_WCHAR_T wchar_t
-# else
-# define ACE_WINT_T ACE_UINT16
-# define ACE_WCHAR_T ACE_UINT16
-# endif /* ACE_HAS_WCHAR */
-
// The number of bytes in a void *.
# ifndef ACE_SIZEOF_VOID_P
# define ACE_SIZEOF_VOID_P ACE_SIZEOF_LONG
@@ -290,11 +259,14 @@ typedef unsigned char ACE_Byte;
// Type for doing arithmetic on pointers ... as elsewhere, we assume
// that unsigned versions of a type are the same size as the signed
// version of the same type.
+// NOTE! ptr_arith_t is an ACE-defined type and should not be used.
+// It has been superseded by the standard type ptrdiff_t. This definition
+// is simply a placeholder til all ptr_arith_t usage can be expunged from
+// ACE and TAO.
# if defined (ACE_HAS_WINCE) && (_WIN32_WCE < 400)
-typedef unsigned long ptrdiff_t; // evc3, PocketPC don't defined ptrdiff_t
+typedef unsigned long ptrdiff_t; // evc3, PocketPC don't defined ptrdiff_t
# endif
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+typedef ptrdiff_t ptr_arith_t;
// Byte-order (endian-ness) determination.
# if defined (BYTE_ORDER)
@@ -386,8 +358,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
// Forward declaration for streams
# include "ace/iosfwd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_U_LongLong
*
@@ -537,7 +507,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
double for_alignment_;
};
- // @note the following four accessors are inlined here in
+ // NOTE: the following four accessors are inlined here in
// order to minimize the extent of the data_ struct. It's
// only used here; the .i and .cpp files use the accessors.
@@ -553,7 +523,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/// Internal utility function to hide access through struct.
ACE_UINT32 &l_ () { return data_.lo_; }
- // @note the above four accessors are inlined here in
+ // NOTE: the above four accessors are inlined here in
// order to minimize the extent of the data_ struct. It's
// only used here; the .i and .cpp files use the accessors.
@@ -579,8 +549,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ostream &operator<< (ostream &, const ACE_U_LongLong &);
#endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# endif /* ACE_LACKS_LONGLONG_T */
// Conversions from ACE_UINT64 to ACE_UINT32. ACE_CU64_TO_CU32 should
@@ -684,27 +652,34 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#if !defined (ACE_UINT64_FORMAT_SPECIFIER)
# if defined (PRIu64)
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%") ACE_LIB_TEXT (PRIu64)
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%" PRIu64
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
# elif ACE_SIZEOF_LONG == 8
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%lu"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
# else
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%llu")
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%llu"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
# endif /* defined (PRIu64) */
#endif /* ACE_UINT64_FORMAT_SPECIFIER */
#if !defined (ACE_SSIZE_T_FORMAT_SPECIFIER)
# if defined (ACE_WIN64)
-# define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64d")
+# define ACE_SSIZE_T_FORMAT_SPECIFIER_A "%I64d"
+# define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SSIZE_T_FORMAT_SPECIFIER_A)
# else
-# define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%d")
+# define ACE_SSIZE_T_FORMAT_SPECIFIER_A "%d"
+# define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SSIZE_T_FORMAT_SPECIFIER_A)
# endif /* ACE_WIN64 */
#endif /* ACE_SSIZE_T_FORMAT_SPECIFIER */
#if !defined (ACE_SIZE_T_FORMAT_SPECIFIER)
# if defined (ACE_WIN64)
-# define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+# define ACE_SIZE_T_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
# else
-# define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%u")
+# define ACE_SIZE_T_FORMAT_SPECIFIER_A "%u"
+# define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
# endif /* ACE_WIN64 */
#endif /* ACE_SIZE_T_FORMAT_SPECIFIER */
@@ -772,7 +747,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#define ACE_INT16_MAX 0x7FFF
#define ACE_INT16_MIN -(ACE_INT16_MAX)-1
#define ACE_UINT16_MAX 0xFFFF
-#define ACE_WCHAR_MAX ACE_UINT16_MAX
#define ACE_INT32_MAX 0x7FFFFFFF
#define ACE_INT32_MIN -(ACE_INT32_MAX)-1
#define ACE_UINT32_MAX 0xFFFFFFFF
diff --git a/ace/Basic_Types.inl b/ace/Basic_Types.inl
index 15f9a9a1ab6..20d01562575 100644
--- a/ace/Basic_Types.inl
+++ b/ace/Basic_Types.inl
@@ -4,8 +4,6 @@
# if !defined (ACE_LACKS_LONGLONG_T) && defined (ACE_LACKS_UNSIGNEDLONGLONG_T)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementation for ACE_U_LongLong when we have signed long long
// but no unsigned long long.
@@ -136,7 +134,7 @@ ACE_U_LongLong::operator>= (const ACE_U_LongLong &n) const
{
if (data_ == n.data_) return true;
- return data_ > n.data_;
+ return data_ > n.data_;
}
ACE_INLINE bool
@@ -421,12 +419,8 @@ ACE_U_LongLong::operator/ (const int n) const
}
#endif
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#elif defined (ACE_LACKS_LONGLONG_T)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_U_LongLong::ACE_U_LongLong (const ACE_UINT32 lo, const ACE_UINT32 hi)
{
@@ -949,6 +943,4 @@ ACE_U_LongLong::operator/ (const int n) const
}
#endif /* ACE_SIZEOF_INT != 4 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_LONGLONG_T || ACE_LACKS_UNSIGNEDLONGLONG_T */
diff --git a/ace/Bound_Ptr.h b/ace/Bound_Ptr.h
index c80fe91dc65..833ab3fe84e 100644
--- a/ace/Bound_Ptr.h
+++ b/ace/Bound_Ptr.h
@@ -23,8 +23,6 @@
#include "ace/Auto_Ptr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Bound_Ptr_Counter
*
@@ -335,8 +333,6 @@ private:
X *ptr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include "ace/Bound_Ptr.inl"
#include /**/ "ace/post.h"
diff --git a/ace/Bound_Ptr.inl b/ace/Bound_Ptr.inl
index 7f6797156f9..f95b7c94f59 100644
--- a/ace/Bound_Ptr.inl
+++ b/ace/Bound_Ptr.inl
@@ -8,8 +8,6 @@
# include "ace/Log_Msg.h"
#endif /* ACE_NEW_THROWS_EXCEPTIONS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACE_LOCK> inline ACE_Bound_Ptr_Counter<ACE_LOCK> *
ACE_Bound_Ptr_Counter<ACE_LOCK>::internal_create (int init_obj_ref_count)
{
@@ -484,5 +482,3 @@ ACE_Weak_Bound_Ptr<X, ACE_LOCK>::remove_ref ()
}
return new_obj_ref_count;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/CDR_Base.cpp b/ace/CDR_Base.cpp
index e4382bff196..7f3c7d5c05f 100644
--- a/ace/CDR_Base.cpp
+++ b/ace/CDR_Base.cpp
@@ -12,8 +12,6 @@ ACE_RCSID (ace,
CDR_Base,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//
// See comments in CDR_Base.inl about optimization cases for swap_XX_array.
//
@@ -23,7 +21,7 @@ ACE_CDR::swap_2_array (const char* orig, char* target, size_t n)
{
// ACE_ASSERT(n > 0); The caller checks that n > 0
- // We pretend that AMD64/GNU G++ systems have a Pentium CPU to
+ // We pretend that AMD64/GNU G++ systems have a Pentium CPU to
// take advantage of the inline assembly implementation.
// Later, we try to read in 32 or 64 bit chunks,
@@ -289,7 +287,7 @@ ACE_CDR::swap_4_array (const char* orig, char* target, size_t n)
register unsigned long b =
* reinterpret_cast<const long*> (orig + 8);
-#if defined(__amd64__) && defined(__GNUC__)
+#if defined(__amd64__) && defined(__GNUC__)
asm ("bswapq %1" : "=r" (a) : "0" (a));
asm ("bswapq %1" : "=r" (b) : "0" (b));
asm ("rol $32, %1" : "=r" (a) : "0" (a));
@@ -484,12 +482,8 @@ ACE_CDR::swap_16_array (const char* orig, char* target, size_t n)
void
ACE_CDR::mb_align (ACE_Message_Block *mb)
{
-#if !defined (ACE_CDR_IGNORE_ALIGNMENT)
char *start = ACE_ptr_align_binary (mb->base (),
ACE_CDR::MAX_ALIGNMENT);
-#else
- char *start = mb->base ();
-#endif /* ACE_CDR_IGNORE_ALIGNMENT */
mb->rd_ptr (start);
mb->wr_ptr (start);
}
@@ -548,19 +542,17 @@ ACE_CDR::consolidate (ACE_Message_Block *dst,
+ ACE_CDR::MAX_ALIGNMENT);
dst->size (newsize);
-#if !defined (ACE_CDR_IGNORE_ALIGNMENT)
// We must copy the contents of <src> into the new buffer, but
// respecting the alignment.
ptrdiff_t srcalign =
ptrdiff_t(src->rd_ptr ()) % ACE_CDR::MAX_ALIGNMENT;
ptrdiff_t dstalign =
ptrdiff_t(dst->rd_ptr ()) % ACE_CDR::MAX_ALIGNMENT;
- ptrdiff_t offset = srcalign - dstalign;
+ int offset = srcalign - dstalign;
if (offset < 0)
offset += ACE_CDR::MAX_ALIGNMENT;
- dst->rd_ptr (static_cast<size_t> (offset));
+ dst->rd_ptr (offset);
dst->wr_ptr (dst->rd_ptr ());
-#endif /* ACE_CDR_IGNORE_ALIGNMENT */
for (const ACE_Message_Block* i = src;
i != 0;
@@ -622,5 +614,3 @@ ACE_CDR::Float::operator!= (const ACE_CDR::Float & /* rhs */) const
return false;
}
#endif /* _UNICOS */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/CDR_Base.h b/ace/CDR_Base.h
index 04468fa07b1..6b163161f6f 100644
--- a/ace/CDR_Base.h
+++ b/ace/CDR_Base.h
@@ -45,7 +45,6 @@
# include "ace/If_Then_Else.h"
#endif /* !_MSC_VER || _MSC_VER >= 1310 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Message_Block;
@@ -182,9 +181,15 @@ public:
bool,
unsigned char>::result_type Boolean;
# endif /* _MSC_VER <= 1310 */
+
+# if !defined (ACE_CDR_WCHAR_OVERRIDE) || defined(ACE_USES_WCHAR)
+# undef ACE_CDR_WCHAR_OVERRIDE
+# define ACE_CDR_WCHAR_OVERRIDE wchar_t
+# endif
+
typedef unsigned char Octet;
typedef char Char;
- typedef ACE_WCHAR_T WChar;
+ typedef ACE_CDR_WCHAR_OVERRIDE WChar;
typedef ACE_INT16 Short;
typedef ACE_UINT16 UShort;
typedef ACE_INT32 Long;
@@ -304,8 +309,6 @@ public:
#endif /* ACE_CDR_GIOP_MINOR_VERSION */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/CDR_Base.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/CDR_Base.inl b/ace/CDR_Base.inl
index 84e14344cc5..6d6222ff40d 100644
--- a/ace/CDR_Base.inl
+++ b/ace/CDR_Base.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//
// The ACE_CDR::swap_X and ACE_CDR::swap_X_array routines are broken
// in 4 cases for optimization:
@@ -99,7 +97,7 @@ ACE_CDR::swap_4 (const char* orig, char* target)
ACE_INLINE void
ACE_CDR::swap_8 (const char* orig, char* target)
{
-#if defined(__amd64__) && defined(__GNUG__)
+#if defined(__amd64__) && defined(__GNUG__)
register unsigned long x =
* reinterpret_cast<const unsigned long*> (orig);
asm ("bswapq %1" : "=r" (x) : "0" (x));
@@ -198,6 +196,4 @@ ACE_CDR::next_size (size_t minsize)
return newsize;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
diff --git a/ace/CDR_Size.cpp b/ace/CDR_Size.cpp
index 3f2829cc909..e63d22c53be 100644
--- a/ace/CDR_Size.cpp
+++ b/ace/CDR_Size.cpp
@@ -9,8 +9,6 @@ ACE_RCSID (ace,
CDR_Size,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_CDR::Boolean
ACE_SizeCDR::write_wchar (ACE_CDR::WChar x)
{
@@ -243,5 +241,3 @@ operator<< (ACE_SizeCDR &ss, const ACE_CString &x)
ss.write_string (x);
return ss.good_bit ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/CDR_Size.h b/ace/CDR_Size.h
index f2bf59ce98c..b52b04486c7 100644
--- a/ace/CDR_Size.h
+++ b/ace/CDR_Size.h
@@ -36,8 +36,6 @@
#include "ace/SStringfwd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SizeCDR
*
@@ -89,7 +87,7 @@ public:
const ACE_CDR::WChar *x);
//@}
- /// @note the portion written starts at <x> and ends
+ /// Note: the portion written starts at <x> and ends
/// at <x + length>.
/// The length is *NOT* stored into the CDR stream.
//@{ @name Array write operations
@@ -174,19 +172,16 @@ protected:
ACE_CDR::Octet minor_version_;
};
+
// @@ This operator should not be inlined since they force SString.h
// to be included in this header.
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
const ACE_CString &x);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/CDR_Size.inl"
#else /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Not used by CORBA or TAO
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
ACE_CDR::Char x);
@@ -231,11 +226,8 @@ extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_SizeCDR &ss,
const ACE_CDR::WChar* x);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* __ACE_INLINE__ */
-
#include /**/ "ace/post.h"
#endif /* ACE_CDR_SIZE_H */
diff --git a/ace/CDR_Size.inl b/ace/CDR_Size.inl
index 4c835067ce8..7697b9abdf7 100644
--- a/ace/CDR_Size.inl
+++ b/ace/CDR_Size.inl
@@ -4,7 +4,6 @@
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_SizeCDR::ACE_SizeCDR (ACE_CDR::Octet major_version,
@@ -416,5 +415,3 @@ operator<< (ACE_SizeCDR &ss, ACE_OutputCDR::from_wstring x)
(ACE_CDR::Boolean) (ss.good_bit () && (!x.bound_ || len <= x.bound_));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/CDR_Stream.cpp b/ace/CDR_Stream.cpp
index a30ac546b08..12a57ee11e3 100644
--- a/ace/CDR_Stream.cpp
+++ b/ace/CDR_Stream.cpp
@@ -12,8 +12,6 @@ ACE_RCSID (ace,
// ****************************************************************
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int ACE_OutputCDR::wchar_maxbytes_ = sizeof (ACE_CDR::WChar);
ACE_OutputCDR::ACE_OutputCDR (size_t size,
@@ -35,9 +33,7 @@ ACE_OutputCDR::ACE_OutputCDR (size_t size,
ACE_Time_Value::max_time,
data_block_allocator,
message_block_allocator),
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
current_alignment_ (0),
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
current_is_writable_ (true),
do_byte_swap_ (byte_order != ACE_CDR_BYTE_ORDER),
good_bit_ (true),
@@ -71,9 +67,7 @@ ACE_OutputCDR::ACE_OutputCDR (char *data, size_t size,
ACE_Time_Value::max_time,
data_block_allocator,
message_block_allocator),
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
current_alignment_ (0),
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
current_is_writable_ (true),
do_byte_swap_ (byte_order != ACE_CDR_BYTE_ORDER),
good_bit_ (true),
@@ -94,9 +88,7 @@ ACE_OutputCDR::ACE_OutputCDR (ACE_Message_Block *data,
ACE_CDR::Octet major_version,
ACE_CDR::Octet minor_version)
: start_ (data->data_block ()->duplicate ()),
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
current_alignment_ (0),
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
current_is_writable_ (true),
do_byte_swap_ (byte_order != ACE_CDR_BYTE_ORDER),
good_bit_ (true),
@@ -137,12 +129,8 @@ ACE_OutputCDR::grow_and_adjust (size_t size,
size_t cursize = this->current_->size ();
if (this->current_->cont () != 0)
cursize = this->current_->cont ()->size ();
- size_t minsize = size;
-
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
- minsize += ACE_CDR::MAX_ALIGNMENT;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
+ size_t minsize = size + ACE_CDR::MAX_ALIGNMENT;
// Make sure that there is enough room for <minsize> bytes, but
// also make it bigger than whatever our current size is.
if (minsize < cursize)
@@ -151,7 +139,7 @@ ACE_OutputCDR::grow_and_adjust (size_t size,
const size_t newsize = ACE_CDR::next_size (minsize);
this->good_bit_ = false;
- ACE_Message_Block* tmp = 0;
+ ACE_Message_Block* tmp;
ACE_NEW_RETURN (tmp,
ACE_Message_Block (newsize,
ACE_Message_Block::MB_DATA,
@@ -166,19 +154,17 @@ ACE_OutputCDR::grow_and_adjust (size_t size,
-1);
this->good_bit_ = true;
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
// The new block must start with the same alignment as the
// previous block finished.
ptrdiff_t tmpalign =
ptrdiff_t(tmp->rd_ptr ()) % ACE_CDR::MAX_ALIGNMENT;
ptrdiff_t curalign =
ptrdiff_t(this->current_alignment_) % ACE_CDR::MAX_ALIGNMENT;
- ptrdiff_t offset = curalign - tmpalign;
+ int offset = curalign - tmpalign;
if (offset < 0)
offset += ACE_CDR::MAX_ALIGNMENT;
- tmp->rd_ptr (static_cast<size_t> (offset));
+ tmp->rd_ptr (offset);
tmp->wr_ptr (tmp->rd_ptr ());
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
// grow the chain and set the current block.
tmp->cont (this->current_->cont ());
@@ -201,7 +187,7 @@ ACE_OutputCDR::write_wchar (ACE_CDR::WChar x)
return (this->good_bit_ = false);
}
if (static_cast<ACE_CDR::Short> (major_version_) == 1
- && static_cast<ACE_CDR::Short> (minor_version_) == 2)
+ && static_cast<ACE_CDR::Short> (minor_version_) == 2)
{
ACE_CDR::Octet len =
static_cast<ACE_CDR::Octet> (ACE_OutputCDR::wchar_maxbytes_);
@@ -210,24 +196,24 @@ ACE_OutputCDR::write_wchar (ACE_CDR::WChar x)
if (ACE_OutputCDR::wchar_maxbytes_ == sizeof(ACE_CDR::WChar))
return
this->write_octet_array (
- reinterpret_cast<const ACE_CDR::Octet*> (&x),
- static_cast<ACE_CDR::ULong> (len));
+ reinterpret_cast<const ACE_CDR::Octet*> (&x),
+ static_cast<ACE_CDR::ULong> (len));
else
if (ACE_OutputCDR::wchar_maxbytes_ == 2)
{
ACE_CDR::Short sx = static_cast<ACE_CDR::Short> (x);
return
this->write_octet_array (
- reinterpret_cast<const ACE_CDR::Octet*> (&sx),
- static_cast<ACE_CDR::ULong> (len));
+ reinterpret_cast<const ACE_CDR::Octet*> (&sx),
+ static_cast<ACE_CDR::ULong> (len));
}
else
{
ACE_CDR::Octet ox = static_cast<ACE_CDR::Octet> (x);
return
this->write_octet_array (
- reinterpret_cast<const ACE_CDR::Octet*> (&ox),
- static_cast<ACE_CDR::ULong> (len));
+ reinterpret_cast<const ACE_CDR::Octet*> (&ox),
+ static_cast<ACE_CDR::ULong> (len));
}
}
}
@@ -324,7 +310,7 @@ ACE_OutputCDR::write_wstring (ACE_CDR::ULong len,
}
else if (this->write_ulong (1))
return this->write_wchar (0);
- return (this->good_bit_ = false);
+ return (this->good_bit_ = false);
}
ACE_CDR::Boolean
@@ -361,7 +347,7 @@ ACE_OutputCDR::write_octet_array_mb (const ACE_Message_Block* mb)
continue;
}
- ACE_Message_Block* cont = 0;
+ ACE_Message_Block* cont;
this->good_bit_ = false;
ACE_NEW_RETURN (cont,
ACE_Message_Block (i->data_block ()->duplicate ()),
@@ -378,10 +364,8 @@ ACE_OutputCDR::write_octet_array_mb (const ACE_Message_Block* mb)
this->current_->cont (cont);
this->current_ = cont;
this->current_is_writable_ = false;
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
this->current_alignment_ =
(this->current_alignment_ + cont->length ()) % ACE_CDR::MAX_ALIGNMENT;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
}
else
{
@@ -739,14 +723,10 @@ ACE_InputCDR::ACE_InputCDR (const ACE_InputCDR& rhs,
wchar_translator_ (rhs.wchar_translator_)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
// Align the base pointer assuming that the incoming stream is also
// aligned the way we are aligned
char *incoming_start = ACE_ptr_align_binary (rhs.start_.base (),
ACE_CDR::MAX_ALIGNMENT);
-#else
- char *incoming_start = rhs.start_.base ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
const size_t newpos =
(rhs.start_.rd_ptr() - incoming_start) + offset;
@@ -773,14 +753,10 @@ ACE_InputCDR::ACE_InputCDR (const ACE_InputCDR& rhs,
wchar_translator_ (rhs.wchar_translator_)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
// Align the base pointer assuming that the incoming stream is also
// aligned the way we are aligned
char *incoming_start = ACE_ptr_align_binary (rhs.start_.base (),
ACE_CDR::MAX_ALIGNMENT);
-#else
- char *incoming_start = rhs.start_.base ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
const size_t newpos =
rhs.start_.rd_ptr() - incoming_start;
@@ -811,12 +787,8 @@ ACE_InputCDR::ACE_InputCDR (const ACE_InputCDR& rhs)
char_translator_ (rhs.char_translator_),
wchar_translator_ (rhs.wchar_translator_)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
char *buf = ACE_ptr_align_binary (rhs.start_.base (),
ACE_CDR::MAX_ALIGNMENT);
-#else
- char *buf = rhs.start_.base ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
size_t rd_offset = rhs.start_.rd_ptr () - buf;
size_t wr_offset = rhs.start_.wr_ptr () - buf;
@@ -1669,5 +1641,3 @@ operator>> (ACE_InputCDR &is, ACE_CString &x)
is.read_string (x);
return is.good_bit ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/CDR_Stream.h b/ace/CDR_Stream.h
index 3c245ab945b..4a7c93b43fe 100644
--- a/ace/CDR_Stream.h
+++ b/ace/CDR_Stream.h
@@ -19,16 +19,6 @@
* Those assumptions are pretty good these days, with Crays beign
* the only known exception.
*
- * Optimizations
- * -------------
- * ACE_LACKS_CDR_ALIGNMENT
- * @author Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
- *
- * CDR stream ignores alignment when marshaling data. Use this option
- * only when ACE_DISABLE_SWAP_ON_READ can be enabled. This option requires
- * ACE CDR engine to do both marshaling and demarshaling.
- *
- *
* @author TAO version by Aniruddha Gokhale <gokhale@cs.wustl.edu>
* @author Carlos O'Ryan <coryan@cs.wustl.edu>
* @author ACE version by Jeff Parsons <parsons@cs.wustl.edu>
@@ -62,8 +52,6 @@
#endif /* ! ACE_LITTLE_ENDIAN */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Char_Codeset_Translator;
class ACE_WChar_Codeset_Translator;
@@ -229,7 +217,7 @@ public:
const ACE_CDR::WChar *x);
//@}
- /// @note the portion written starts at <x> and ends
+ /// Note: the portion written starts at <x> and ends
/// at <x + length>.
/// The length is *NOT* stored into the CDR stream.
//@{ @name Array write operations
@@ -301,7 +289,7 @@ public:
/**
* Return the start of the message block chain for this CDR stream.
- * @note The complete CDR stream is represented by a chain of
+ * NOTE: The complete CDR stream is represented by a chain of
* message blocks.
*/
const ACE_Message_Block *begin (void) const;
@@ -313,14 +301,14 @@ public:
const ACE_Message_Block *current (void) const;
/**
- * Access the underlying buffer (read only). @note This
+ * Access the underlying buffer (read only). NOTE: This
* method only returns a pointer to the first block in the
* chain.
*/
const char *buffer (void) const;
/**
- * Return the start and size of the internal buffer.@note This
+ * Return the start and size of the internal buffer.NOTE: This
* method only returns information about the first block in the
* chain.
*/
@@ -443,7 +431,6 @@ private:
/// The current block in the chain were we are writing.
ACE_Message_Block *current_;
-#if !defined (ACE_LACKS_CDR_IALIGNMENT)
/**
* The current alignment as measured from the start of the buffer.
* Usually this coincides with the alignment of the buffer in
@@ -453,7 +440,6 @@ private:
* the stolen message block.
*/
size_t current_alignment_;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
/**
* Is the current block writable. When we steal a buffer from the
@@ -501,6 +487,20 @@ protected:
static int wchar_maxbytes_;
};
+/**
+* @class OutputCDR_Auto_Reset
+*
+* @brief This class will call the reset() method on an
+* output CDR when it goes out of scope.
+*/
+class OutputCDR_Auto_Reset {
+public:
+ OutputCDR_Auto_Reset (ACE_OutputCDR& cdr);
+ ~OutputCDR_Auto_Reset (void);
+private:
+ ACE_OutputCDR& cdr_;
+};
+
// ****************************************************************
@@ -1174,14 +1174,10 @@ extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is,
ACE_CString &x);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/CDR_Stream.inl"
#else /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Not used by CORBA or TAO
extern ACE_Export ACE_CDR::Boolean operator<< (ACE_OutputCDR &os,
ACE_CDR::Char x);
@@ -1268,8 +1264,6 @@ extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is,
extern ACE_Export ACE_CDR::Boolean operator>> (ACE_InputCDR &is,
ACE_CDR::WChar*& x);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/ace/CDR_Stream.inl b/ace/CDR_Stream.inl
index cbcb6638bf1..6d68e938d15 100644
--- a/ace/CDR_Stream.inl
+++ b/ace/CDR_Stream.inl
@@ -7,8 +7,6 @@
// ****************************************************************
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// implementing the special types
ACE_INLINE
ACE_OutputCDR::from_boolean::from_boolean (ACE_CDR::Boolean b)
@@ -155,10 +153,7 @@ ACE_OutputCDR::reset (void)
this->current_ = &this->start_;
this->current_is_writable_ = true;
ACE_CDR::mb_align (&this->start_);
-
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
this->current_alignment_ = 0;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
// It is tempting not to remove the memory, but we need to do so to
// release any potential user buffers chained in the continuation
@@ -170,6 +165,7 @@ ACE_OutputCDR::reset (void)
ACE_Message_Block::release (cont);
this->start_.cont (0);
}
+
}
// Encode the CDR stream.
@@ -177,8 +173,7 @@ ACE_OutputCDR::reset (void)
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_octet (ACE_CDR::Octet x)
{
- const void *temp = &x;
- return this->write_1 (reinterpret_cast<const ACE_CDR::Octet *> (temp));
+ return this->write_1 (reinterpret_cast<const ACE_CDR::Octet *> (&x));
}
ACE_INLINE ACE_CDR::Boolean
@@ -191,74 +186,62 @@ ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_char (ACE_CDR::Char x)
{
if (this->char_translator_ == 0)
- {
- const void *temp = &x;
- return this->write_1 (reinterpret_cast<const ACE_CDR::Octet*> (temp));
- }
+ return this->write_1 (reinterpret_cast<const ACE_CDR::Octet*> (&x));
return this->char_translator_->write_char (*this, x);
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_short (ACE_CDR::Short x)
{
- const void *temp = &x;
- return this->write_2 (reinterpret_cast<const ACE_CDR::UShort*> (temp));
+ return this->write_2 (reinterpret_cast<const ACE_CDR::UShort*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_ushort (ACE_CDR::UShort x)
{
- const void *temp = &x;
- return this->write_2 (reinterpret_cast<const ACE_CDR::UShort*> (temp));
+ return this->write_2 (reinterpret_cast<const ACE_CDR::UShort*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_long (ACE_CDR::Long x)
{
- const void *temp = &x;
- return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (temp));
+ return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_ulong (ACE_CDR::ULong x)
{
- const void *temp = &x;
- return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (temp));
+ return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_longlong (const ACE_CDR::LongLong &x)
{
- const void *temp = &x;
- return this->write_8 (reinterpret_cast<const ACE_CDR::ULongLong*> (temp));
+ return this->write_8 (reinterpret_cast<const ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_ulonglong (const ACE_CDR::ULongLong &x)
{
- const void *temp = &x;
- return this->write_8 (reinterpret_cast<const ACE_CDR::ULongLong*> (temp));
+ return this->write_8 (reinterpret_cast<const ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_float (ACE_CDR::Float x)
{
- const void *temp = &x;
- return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (temp));
+ return this->write_4 (reinterpret_cast<const ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_double (const ACE_CDR::Double &x)
{
- const void *temp = &x;
- return this->write_8 (reinterpret_cast<const ACE_CDR::ULongLong*> (temp));
+ return this->write_8 (reinterpret_cast<const ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_OutputCDR::write_longdouble (const ACE_CDR::LongDouble &x)
{
- const void *temp = &x;
- return this->write_16 (reinterpret_cast<const ACE_CDR::LongDouble*> (temp));
+ return this->write_16 (reinterpret_cast<const ACE_CDR::LongDouble*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
@@ -433,24 +416,17 @@ ACE_OutputCDR::adjust (size_t size,
if (!this->current_is_writable_)
return this->grow_and_adjust (size, align, buf);
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
const size_t offset =
ACE_align_binary (this->current_alignment_, align)
- this->current_alignment_;
buf = this->current_->wr_ptr () + offset;
-#else
- buf = this->current_->wr_ptr ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
-
char *end = buf + size;
if (end <= this->current_->end () &&
end >= buf)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
this->current_alignment_ += offset + size;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
this->current_->wr_ptr (end);
return 0;
}
@@ -542,26 +518,14 @@ ACE_OutputCDR::reset_byte_order (int byte_order)
ACE_INLINE size_t
ACE_OutputCDR::current_alignment (void) const
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
return this->current_alignment_;
-#else
- // Default value set to 0
- return 0;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
}
ACE_INLINE int
ACE_OutputCDR::align_write_ptr (size_t alignment)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
char *dummy;
return this->adjust (0, alignment, dummy);
-#else
- ACE_UNUSED_ARG (alignment);
- // A return value of -1 from this function is used
- // to indicate failure, returning 0
- return 0;
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
}
ACE_INLINE ACE_Char_Codeset_Translator *
@@ -614,10 +578,7 @@ ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_char (ACE_CDR::Char &x)
{
if (this->char_translator_ == 0)
- {
- void *temp = &x;
- return this->read_1 (reinterpret_cast<ACE_CDR::Octet*> (temp));
- }
+ return this->read_1 (reinterpret_cast<ACE_CDR::Octet*> (&x));
return this->char_translator_->read_char (*this, x);
}
@@ -625,67 +586,58 @@ ACE_InputCDR::read_char (ACE_CDR::Char &x)
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_short (ACE_CDR::Short &x)
{
- void *temp = &x;
- return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (temp));
+ return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_ushort (ACE_CDR::UShort &x)
{
- void *temp = &x;
- return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (temp));
+ return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_long (ACE_CDR::Long &x)
{
- void *temp = &x;
- return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (temp));
+ return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_ulong (ACE_CDR::ULong &x)
{
- void *temp = &x;
- return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (temp));
+ return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_longlong (ACE_CDR::LongLong &x)
{
- void *temp = &x;
- return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (temp));
+ return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_ulonglong (ACE_CDR::ULongLong &x)
{
- void *temp = &x;
- return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (temp));
+ return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_float (ACE_CDR::Float &x)
{
- void *temp = &x;
- return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (temp));
+ return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_double (ACE_CDR::Double &x)
{
- void *temp = &x;
- return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (temp));
+ return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::read_longdouble (ACE_CDR::LongDouble &x)
{
- void *temp = &x;
- return this->read_16 (reinterpret_cast<ACE_CDR::LongDouble*> (temp));
+ return this->read_16 (reinterpret_cast<ACE_CDR::LongDouble*> (&x));
}
ACE_INLINE size_t
@@ -922,8 +874,7 @@ ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_char (void)
{
ACE_CDR::Char x;
- void *temp = &x;
- return this->read_1 (reinterpret_cast<ACE_CDR::Octet*> (temp));
+ return this->read_1 (reinterpret_cast<ACE_CDR::Octet*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
@@ -945,48 +896,42 @@ ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_short (void)
{
ACE_CDR::Short x;
- void *temp = &x;
- return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (temp));
+ return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_ushort (void)
{
ACE_CDR::UShort x;
- void *temp = &x;
- return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (temp));
+ return this->read_2 (reinterpret_cast<ACE_CDR::UShort*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_long (void)
{
ACE_CDR::Long x;
- void *temp = &x;
- return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (temp));
+ return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_ulong (void)
{
ACE_CDR::ULong x;
- void *temp = &x;
- return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (temp));
+ return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_longlong (void)
{
ACE_CDR::LongLong x;
- void *temp = &x;
- return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (temp));
+ return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_ulonglong (void)
{
ACE_CDR::ULongLong x;
- void *temp = &x;
- return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (temp));
+ return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
@@ -995,24 +940,21 @@ ACE_InputCDR::skip_float (void)
// Changing this removes the warning for GHS and it
// stops the compiler from getting an internal error.
ACE_CDR::ULong value;
- void *temp = &value;
- return this->read_4 (reinterpret_cast<ACE_CDR::ULong*> (temp));
+ return this->read_4 (&value);
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_double (void)
{
double x;
- void *temp = &x;
- return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (temp));
+ return this->read_8 (reinterpret_cast<ACE_CDR::ULongLong*> (&x));
}
ACE_INLINE ACE_CDR::Boolean
ACE_InputCDR::skip_longdouble (void)
{
ACE_CDR::LongDouble x;
- void *temp = &x;
- return this->read_16 (reinterpret_cast<ACE_CDR::LongDouble*> (temp));
+ return this->read_16 (reinterpret_cast<ACE_CDR::LongDouble*> (&x));
}
ACE_INLINE char*
@@ -1044,12 +986,7 @@ ACE_InputCDR::adjust (size_t size,
size_t align,
char*& buf)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
buf = ACE_ptr_align_binary (this->rd_ptr (), align);
-#else
- buf = this->rd_ptr ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
-
char *end = buf + size;
if (end <= this->wr_ptr ())
{
@@ -1059,9 +996,6 @@ ACE_InputCDR::adjust (size_t size,
this->good_bit_ = false;
return -1;
-#if defined (ACE_LACKS_CDR_ALIGNMENT)
- ACE_UNUSED_ARG (align);
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
}
ACE_INLINE int
@@ -1502,12 +1436,8 @@ ACE_InputCDR::byte_order (void) const
ACE_INLINE int
ACE_InputCDR::align_read_ptr (size_t alignment)
{
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
char *buf = ACE_ptr_align_binary (this->rd_ptr (),
alignment);
-#else
- char *buf = this->rd_ptr ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
if (buf <= this->wr_ptr ())
{
@@ -1740,4 +1670,14 @@ ACE_WChar_Codeset_Translator::minor_version (ACE_OutputCDR& output)
return output.minor_version_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+ACE_INLINE
+OutputCDR_Auto_Reset::OutputCDR_Auto_Reset (ACE_OutputCDR& cdr)
+ : cdr_ (cdr)
+{
+}
+
+ACE_INLINE
+OutputCDR_Auto_Reset::~OutputCDR_Auto_Reset (void)
+{
+ cdr_.reset ();
+}
diff --git a/ace/CE_Screen_Output.cpp b/ace/CE_Screen_Output.cpp
index 3afc5325d9a..f4d69659532 100644
--- a/ace/CE_Screen_Output.cpp
+++ b/ace/CE_Screen_Output.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/CE_Screen_Output.h"
@@ -5,8 +6,6 @@
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_CE_Screen_Output::ACE_CE_Screen_Output(HWND hEdit)
: handler_(hEdit)
, pFile_(0)
@@ -77,13 +76,13 @@ ACE_CE_Screen_Output& ACE_CE_Screen_Output::operator << (const ACE_TCHAR* output
ACE_CE_Screen_Output& ACE_CE_Screen_Output::operator << (ACE_ANTI_TCHAR* output)
{
- *this << ACE_TEXT_CHAR_TO_TCHAR(output);
+ *this << ACE_TEXT_TO_TCHAR_IN(output);
return *this;
}
ACE_CE_Screen_Output& ACE_CE_Screen_Output::operator << (const ACE_ANTI_TCHAR* output)
{
- *this << ACE_TEXT_CHAR_TO_TCHAR(output);
+ *this << ACE_TEXT_TO_TCHAR_IN(output);
return *this;
}
@@ -153,6 +152,4 @@ ACE_CE_Screen_Output& ACE_CE_Screen_Output::operator << (FILE* pFile)
return *this;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif // ACE_HAS_WINCE
diff --git a/ace/CE_Screen_Output.h b/ace/CE_Screen_Output.h
index 48e9d54cb13..5252b810fb1 100644
--- a/ace/CE_Screen_Output.h
+++ b/ace/CE_Screen_Output.h
@@ -24,13 +24,8 @@
#include "ace/Log_Msg_Callback.h"
#include "ace/Log_Record.h"
-namespace
-{
- const ACE_TCHAR endl[] = ACE_LIB_TEXT("\r\n");
- const ACE_TCHAR tab[] = ACE_LIB_TEXT("\t");
-}
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+const ACE_TCHAR endl[] = ACE_LIB_TEXT("\r\n");
+const ACE_TCHAR tab[] = ACE_LIB_TEXT("\t");
/**
* @class ACE_CE_Screen_Output
@@ -92,7 +87,7 @@ public:
private:
- ACE_CE_Screen_Output (ACE_CE_Screen_Output&);
+ ACE_CE_Screen_Output(ACE_CE_Screen_Output&);
private:
@@ -103,7 +98,5 @@ private:
FILE* pFile_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif // ACE_HAS_WINCE
#endif // ACE_CE_SCREEN_OUTPUT_H
diff --git a/ace/Cache_Map_Manager_T.cpp b/ace/Cache_Map_Manager_T.cpp
index effa6f7d208..f2e6c88a273 100644
--- a/ace/Cache_Map_Manager_T.cpp
+++ b/ace/Cache_Map_Manager_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_CACHE_MAP_MANAGER_T_CPP
-#define ACE_CACHE_MAP_MANAGER_T_CPP
+#ifndef ACE_CACHE_MAP_MANAGER_T_C
+#define ACE_CACHE_MAP_MANAGER_T_C
#include "ace/Cache_Map_Manager_T.h"
@@ -16,7 +16,7 @@
#include "ace/Cache_Map_Manager_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Cache_Map_Manager_T, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Cache_Map_Manager)
@@ -24,8 +24,8 @@ ACE_ALLOC_HOOK_DEFINE(ACE_Cache_Map_Iterator)
ACE_ALLOC_HOOK_DEFINE(ACE_Cache_Map_Reverse_Iterator)
-#define ACE_T1 class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES
-#define ACE_T2 KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES
+#define ACE_T1 class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES
+#define ACE_T2 KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES
template <ACE_T1>
ACE_Cache_Map_Manager<ACE_T2>::ACE_Cache_Map_Manager (CACHING_STRATEGY &caching_s,
@@ -415,6 +415,4 @@ ACE_Cache_Map_Iterator<KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES>
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_CACHE_MAP_MANAGER_T_CPP */
+#endif /* ACE_CACHE_MAP_MANAGER_T_C */
diff --git a/ace/Cache_Map_Manager_T.h b/ace/Cache_Map_Manager_T.h
index ad014e696e2..cd981a8d702 100644
--- a/ace/Cache_Map_Manager_T.h
+++ b/ace/Cache_Map_Manager_T.h
@@ -25,8 +25,6 @@
#include "ace/Global_Macros.h"
#include "ace/Pair_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
class ACE_Allocator;
@@ -57,7 +55,7 @@ class ACE_Cache_Map_Reverse_Iterator;
* isn't efficient. Locking has to be provided by the
* application.
*/
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES>
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES>
class ACE_Cache_Map_Manager
{
public:
@@ -65,7 +63,7 @@ public:
// = Traits.
typedef KEY key_type;
typedef VALUE mapped_type;
- typedef CMAP_TYPE map_type;
+ typedef MAP map_type;
typedef CACHING_STRATEGY caching_strategy_type;
typedef ITERATOR_IMPL ITERATOR_IMPLEMENTATION;
@@ -113,7 +111,7 @@ public:
int close (void);
/**
- * Associate <key> with <value>. If <key> is already in the CMAP_TYPE
+ * Associate <key> with <value>. If <key> is already in the MAP
* then the ENTRY is not changed. Returns 0 if a new entry is bound
* successfully, returns 1 if an attempt is made to bind an existing
* entry, and returns -1 if failures occur.
@@ -123,7 +121,7 @@ public:
/**
* Lookup entry<key,value> in the cache. If it is not found, returns -1.
- * If the <key> is located in the CMAP_TYPE object, the CACHING_STRATEGY is
+ * If the <key> is located in the MAP object, the CACHING_STRATEGY is
* notified of it via notify_find (int result, ATTRIBUTES &attribute).
* If notify_find also returns 0 (success), then this function returns
* 0 (success) and sets the cached value in <value>.
@@ -133,7 +131,7 @@ public:
/**
* Lookup entry<key,value> in the cache. If it is not found, returns -1.
- * If the <key> is located in the CMAP_TYPE object, the CACHING_STRATEGY is
+ * If the <key> is located in the MAP object, the CACHING_STRATEGY is
* notified of it via notify_find (int result, ATTRIBUTES &attribute).
* If notify_find also returns 0 (success), then this function returns
* 0 (success).
@@ -214,7 +212,7 @@ public:
REVERSE_ITERATOR rend (void);
/// The map managed by the Cache_Map_Manager.
- CMAP_TYPE &map (void);
+ MAP &map (void);
/// The caching strategy used on the cache.
CACHING_STRATEGY &caching_strategy (void);
@@ -222,7 +220,7 @@ public:
protected:
/// The underlying map which needs to be cached.
- CMAP_TYPE map_;
+ MAP map_;
/// The strategy to be followed for caching entries in the map.
CACHING_STRATEGY &caching_strategy_;
@@ -230,8 +228,8 @@ protected:
private:
// = Disallow these operations.
- ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES> &))
- ACE_UNIMPLEMENTED_FUNC (ACE_Cache_Map_Manager (const ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES> &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES> &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Cache_Map_Manager (const ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES> &))
};
@@ -386,8 +384,6 @@ protected:
REVERSE_IMPLEMENTATION reverse_iterator_implementation_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Cache_Map_Manager_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Cache_Map_Manager_T.inl b/ace/Cache_Map_Manager_T.inl
index ba30c528dd6..ca559696665 100644
--- a/ace/Cache_Map_Manager_T.inl
+++ b/ace/Cache_Map_Manager_T.inl
@@ -2,58 +2,56 @@
//
//$Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE int
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::purge (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE int
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::purge (void)
{
return this->caching_strategy ().caching_utility ().clear_cache (this->map_,
this->caching_strategy ().purge_percent ());
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE size_t
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::current_size (void) const
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE size_t
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::current_size (void) const
{
return this->map_.current_size ();
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE size_t
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::total_size (void) const
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE size_t
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::total_size (void) const
{
return this->map_.total_size ();
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE CMAP_TYPE &
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::map (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE MAP &
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::map (void)
{
return this->map_;
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE CACHING_STRATEGY &
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::caching_strategy (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE CACHING_STRATEGY &
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::caching_strategy (void)
{
return this->caching_strategy_;
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Iterator<KEY, VALUE, ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::begin (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Iterator<KEY, VALUE, ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::begin (void)
{
return ITERATOR (this->map_.begin ());
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Iterator<KEY, VALUE, ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::end (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Iterator<KEY, VALUE, ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::end (void)
{
return ITERATOR (this->map_.end ());
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Reverse_Iterator<KEY, VALUE, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::rbegin (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Reverse_Iterator<KEY, VALUE, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::rbegin (void)
{
return REVERSE_ITERATOR (this->map_.rbegin ());
}
-template <class KEY, class VALUE, class CMAP_TYPE, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Reverse_Iterator<KEY, VALUE, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
-ACE_Cache_Map_Manager<KEY, VALUE, CMAP_TYPE, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::rend (void)
+template <class KEY, class VALUE, class MAP, class ITERATOR_IMPL, class REVERSE_ITERATOR_IMPL, class CACHING_STRATEGY, class ATTRIBUTES> ACE_INLINE ACE_Cache_Map_Reverse_Iterator<KEY, VALUE, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>
+ACE_Cache_Map_Manager<KEY, VALUE, MAP, ITERATOR_IMPL, REVERSE_ITERATOR_IMPL, CACHING_STRATEGY, ATTRIBUTES>::rend (void)
{
return REVERSE_ITERATOR (this->map_.rend ());
}
@@ -242,4 +240,3 @@ ACE_Cache_Map_Reverse_Iterator<KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRAT
return this->reverse_iterator_implementation_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Cached_Connect_Strategy_T.cpp b/ace/Cached_Connect_Strategy_T.cpp
index 706142c640d..f44f3209987 100644
--- a/ace/Cached_Connect_Strategy_T.cpp
+++ b/ace/Cached_Connect_Strategy_T.cpp
@@ -1,7 +1,7 @@
//$Id$
-#ifndef ACE_CACHED_CONNECT_STRATEGY_T_CPP
-#define ACE_CACHED_CONNECT_STRATEGY_T_CPP
+#ifndef CACHED_CONNECT_STRATEGY_T_C
+#define CACHED_CONNECT_STRATEGY_T_C
#include "ace/Cached_Connect_Strategy_T.h"
@@ -16,11 +16,11 @@
#include "ace/WFMO_Reactor.h"
#include "ace/Pair_T.h"
+ACE_RCSID(ace, Cached_Connect_Strategy_T, "$Id$")
+
#define ACE_T1 class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class CACHING_STRATEGY, class ATTRIBUTES, class MUTEX
#define ACE_T2 SVC_HANDLER, ACE_PEER_CONNECTOR_2, CACHING_STRATEGY, ATTRIBUTES, MUTEX
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <ACE_T1>
ACE_Cached_Connect_Strategy_Ex<ACE_T2>::ACE_Cached_Connect_Strategy_Ex
(CACHING_STRATEGY &caching_s,
@@ -275,7 +275,7 @@ ACE_Cached_Connect_Strategy_Ex<ACE_T2>::cached_connect (SVC_HANDLER *&sh,
// for the <Connector> to notify the cache of the completion of
// connect().
- if (errno == EWOULDBLOCK || errno == ETIMEDOUT)
+ if (errno == EWOULDBLOCK)
errno = ENOTSUP;
else if (ACE::out_of_handles (errno) || errno == EADDRINUSE)
{
@@ -296,7 +296,7 @@ ACE_Cached_Connect_Strategy_Ex<ACE_T2>::cached_connect (SVC_HANDLER *&sh,
flags,
perms) == -1)
{
- if (errno == EWOULDBLOCK || errno == ETIMEDOUT)
+ if (errno == EWOULDBLOCK)
errno = ENOTSUP;
return -1;
}
@@ -726,9 +726,7 @@ ACE_Bounded_Cached_Connect_Strategy<ACE_T2>::find_or_create_svc_handler_i
ACE_ALLOC_HOOK_DEFINE(ACE_Bounded_Cached_Connect_Strategy)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#undef ACE_T1
#undef ACE_T2
-#endif /* ACE_CACHED_CONNECT_STRATEGY_T_CPP */
+#endif /* CACHED_CONNECT_STRATEGY_T_C */
diff --git a/ace/Cached_Connect_Strategy_T.h b/ace/Cached_Connect_Strategy_T.h
index f04392846cb..8c051a240d2 100644
--- a/ace/Cached_Connect_Strategy_T.h
+++ b/ace/Cached_Connect_Strategy_T.h
@@ -30,8 +30,6 @@
// For linkers which cant grok long names...
#define ACE_Cached_Connect_Strategy_Ex ACCSE
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Cached_Connect_Strategy_Ex
*
@@ -248,7 +246,6 @@ protected:
size_t max_size_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Cached_Connect_Strategy_T.cpp"
diff --git a/ace/Caching_Strategies_T.cpp b/ace/Caching_Strategies_T.cpp
index db2f9067ec9..7adf976162f 100644
--- a/ace/Caching_Strategies_T.cpp
+++ b/ace/Caching_Strategies_T.cpp
@@ -1,7 +1,7 @@
//$Id$
-#ifndef ACE_CACHING_STRATEGIES_T_CPP
-#define ACECACHING_STRATEGIES_T_CPP
+#ifndef CACHING_STRATEGIES_T_C
+#define CACHING_STRATEGIES_T_C
#include "ace/Caching_Strategies_T.h"
#include "ace/Log_Msg.h"
@@ -14,7 +14,7 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Caching_Strategies_T, "$Id$")
template<class ATTRIBUTES, class CACHING_UTILITY>
ACE_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY>::~ACE_Caching_Strategy (void)
@@ -54,6 +54,4 @@ ACE_ALLOC_HOOK_DEFINE(ACE_LFU_Caching_Strategy)
ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Caching_Strategy)
ACE_ALLOC_HOOK_DEFINE(ACE_Null_Caching_Strategy)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_CACHING_STRATEGIES_T_CPP */
+#endif /* CACHING_STRATEGIES_T_C */
diff --git a/ace/Caching_Strategies_T.h b/ace/Caching_Strategies_T.h
index 74f7ff2b1fe..cbf1157a96e 100644
--- a/ace/Caching_Strategies_T.h
+++ b/ace/Caching_Strategies_T.h
@@ -29,8 +29,6 @@
// For linkers that cant grok long names.
#define ACE_Caching_Strategy ACS
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Caching_Strategy
*
@@ -533,8 +531,6 @@ private:
CACHING_UTILITY caching_utility_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Caching_Strategies_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Caching_Strategies_T.inl b/ace/Caching_Strategies_T.inl
index cbe5f9c35ff..12e82be947b 100644
--- a/ace/Caching_Strategies_T.inl
+++ b/ace/Caching_Strategies_T.inl
@@ -1,13 +1,10 @@
-// -*-C++-*-
-//
+/* -*-C++-*- */
//$Id$
//////////////////////////////////////////////////////////////////////////////////
#include "ace/OS_Memory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class ATTRIBUTES, class CACHING_UTILITY, class IMPLEMENTATION> ACE_INLINE
ACE_Caching_Strategy_Adapter<ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION>::ACE_Caching_Strategy_Adapter (IMPLEMENTATION *implementation,
int delete_implementation)
@@ -460,6 +457,4 @@ ACE_Null_Caching_Strategy<ATTRIBUTES, CACHING_UTILITY>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
//////////////////////////////////////////////////////////////////////////////////
diff --git a/ace/Caching_Utility_T.cpp b/ace/Caching_Utility_T.cpp
index c1b5e52993a..767adb3c07d 100644
--- a/ace/Caching_Utility_T.cpp
+++ b/ace/Caching_Utility_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_CACHING_UTILITY_T_CPP
-#define ACE_CACHING_UTILITY_T_CPP
+#ifndef CACHING_UTILITY_T_C
+#define CACHING_UTILITY_T_C
#include "ace/Caching_Utility_T.h"
@@ -11,11 +11,12 @@
#include "ace/Min_Max.h"
#include "ace/OS_Memory.h"
+// #include "ace/Strategies.h"
#include "ace/Recyclable.h"
-//////////////////////////////////////////////////////////////////////////////
+ACE_RCSID(ace, Caching_Utility_T, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+//////////////////////////////////////////////////////////////////////////////
template <class KEY, class VALUE, class CONTAINER, class ITERATOR, class ATTRIBUTES>
ACE_Pair_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES>::ACE_Pair_Caching_Utility (ACE_Cleanup_Strategy<KEY, VALUE, CONTAINER> *cleanup_strategy,
@@ -494,6 +495,4 @@ ACE_Null_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES>::minimum (
ACE_UNUSED_ARG (value_to_remove);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_CACHING_UTILITY_T_CPP */
+#endif /* CACHING_UTILITY_T_C */
diff --git a/ace/Caching_Utility_T.h b/ace/Caching_Utility_T.h
index 0112e3f2b7d..03b95ce3cd1 100644
--- a/ace/Caching_Utility_T.h
+++ b/ace/Caching_Utility_T.h
@@ -27,8 +27,6 @@
// For linkers that cant grok long names.
#define ACE_Pair_Caching_Utility APUTIL
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Pair_Caching_Utility
*
@@ -36,7 +34,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*
* This class defines the methods commonly used by the different
* caching strategies. For instance: <clear_cache> method which
- * decides and purges the entry from the container. @note This
+ * decides and purges the entry from the container. Note: This
* class helps in the caching_strategies using a container
* containing entries of <KEY, ACE_Pair<VALUE, attributes>>
* kind. The attributes helps in deciding the entries to be
@@ -92,7 +90,7 @@ protected:
*
* This class defines the methods commonly used by the different
* caching strategies. For instance: <clear_cache> method which
- * decides and purges the entry from the container. @note This
+ * decides and purges the entry from the container. Note: This
* class helps in the caching_strategies using a container
* containing entries of <KEY, Svc_Handler> kind. The attributes
* helps in deciding the entries to be purged. The
@@ -151,7 +149,7 @@ private:
*
* This class defines the methods commonly used by the different
* caching strategies. For instance: clear_cache () method which
- * decides and purges the entry from the container. @note This
+ * decides and purges the entry from the container. Note: This
* class helps in the caching_strategies using a container
* containing entries of <Refcounted_KEY,
* Recyclable_Connection_Handler> kind. The attributes helps in
@@ -217,7 +215,7 @@ private:
*
* This class defines the methods commonly used by the different
* caching strategies. For instance: <clear_cache> method which
- * decides and purges the entry from the container. @note This
+ * decides and purges the entry from the container. Note: This
* class helps in the caching_strategies using a container
* containing entries of <KEY, HANDLER> kind where the HANDLER
* contains the caching attributes which help in deciding the
@@ -280,7 +278,7 @@ private:
*
* This class defines the methods commonly used by the different
* caching strategies. For instance: <clear_cache> method which
- * decides and purges the entry from the container. @note This
+ * decides and purges the entry from the container. Note: This
* class is be used with the Null_Caching_Strategy. The
* Cleanup_Strategy is the callback class to which the entries to
* be cleaned up will be delegated.
@@ -303,7 +301,7 @@ public:
/**
* Purge entries from the <container>. The Cleanup_Strategy will do
* the actual job of cleanup once the entries to be cleaned up are
- * decided. @note Here it is a no-op.
+ * decided. Note: Here it is a no-op.
*/
int clear_cache (CONTAINER &container,
double purge_percent);
@@ -314,7 +312,7 @@ protected:
* Find the entry with minimum caching attributes. This is handler
* specific since this utility is to be used very specifically for
* handler who have caching_attributes for server side acched
- * connection management.@note Here it is a no-op.
+ * connection management.Note: Here it is a no-op.
*/
void minimum (CONTAINER &container,
KEY *&key_to_remove,
@@ -332,8 +330,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (ACE_Null_Caching_Utility (const ACE_Null_Caching_Utility<KEY,VALUE,CONTAINER,ITERATOR,ATTRIBUTES> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Caching_Utility_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Capabilities.cpp b/ace/Capabilities.cpp
index 279c373d161..2af1ef65954 100644
--- a/ace/Capabilities.cpp
+++ b/ace/Capabilities.cpp
@@ -16,7 +16,6 @@ ACE_RCSID (ace,
#define ACE_ESC ((ACE_TCHAR)0x1b)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_CapEntry::~ACE_CapEntry (void)
{
@@ -103,11 +102,11 @@ ACE_Capabilities::parse (const ACE_TCHAR *buf, int &cap)
void
ACE_Capabilities::resetcaps (void)
{
- for (CAPABILITIES_MAP::ITERATOR iter (this->caps_);
+ for (MAP::ITERATOR iter (this->caps_);
!iter.done ();
iter.advance ())
{
- CAPABILITIES_MAP::ENTRY *entry = 0;
+ MAP::ENTRY *entry = 0;
iter.next (entry);
delete entry->int_id_;
}
@@ -321,8 +320,8 @@ ACE_Capabilities::getent (const ACE_TCHAR *fname, const ACE_TCHAR *name)
int done;
ACE_TString line;
-
- while (0 == (done = (this->getline (fp, line) == -1))
+
+ while (!(done = (this->getline (fp, line) == -1))
&& is_empty (line.c_str ()))
continue;
@@ -331,7 +330,7 @@ ACE_Capabilities::getent (const ACE_TCHAR *fname, const ACE_TCHAR *name)
ACE_TString newline;
ACE_TString description;
- while (0 == (done = (this->getline (fp, newline) == -1)))
+ while (!(done = (this->getline (fp, newline) == -1)))
if (is_line (newline.c_str ()))
description += newline;
else
@@ -365,5 +364,3 @@ template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_TString,ACE_CapEntry*,ACE_Ha
#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_TString,ACE_CapEntry*,ACE_Hash<ACE_TString>,ACE_Equal_To<ACE_TString>,ACE_Null_Mutex>
#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_TString,ACE_CapEntry*,ACE_Hash<ACE_TString>,ACE_Equal_To<ACE_TString>,ACE_Null_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Capabilities.h b/ace/Capabilities.h
index 5beee751e23..902dc31a540 100644
--- a/ace/Capabilities.h
+++ b/ace/Capabilities.h
@@ -27,8 +27,6 @@
#include "ace/SString.h"
#include "ace/Functor_String.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_CapEntry
*
@@ -135,7 +133,7 @@ class ACE_Export ACE_Capabilities
{
public:
- typedef ACE_Hash_Map_Manager_Ex<ACE_TString, ACE_CapEntry *, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_Null_Mutex> CAPABILITIES_MAP;
+ typedef ACE_Hash_Map_Manager_Ex<ACE_TString, ACE_CapEntry *, ACE_Hash<ACE_TString>, ACE_Equal_To<ACE_TString>, ACE_Null_Mutex> MAP;
/// The Constructor
ACE_Capabilities (void);
@@ -182,7 +180,7 @@ protected:
private:
/// This is the set of ACE_CapEntry.
- CAPABILITIES_MAP caps_;
+ MAP caps_;
};
@@ -206,8 +204,6 @@ is_line (const ACE_TCHAR *line)
}
#endif /* ACE_IS_SPLITTING */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Capabilities.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Capabilities.inl b/ace/Capabilities.inl
index 053e0ecf7b6..ca168c0491a 100644
--- a/ace/Capabilities.inl
+++ b/ace/Capabilities.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_CapEntry::ACE_CapEntry (int captype)
: captype_ (captype)
@@ -48,5 +46,3 @@ ACE_BoolCapEntry::getval (void) const
{
return val_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Cleanup.cpp b/ace/Cleanup.cpp
index 7bc3c29e523..9e51dd6cf70 100644
--- a/ace/Cleanup.cpp
+++ b/ace/Cleanup.cpp
@@ -1,10 +1,9 @@
+// -*- C++ -*-
// $Id$
#include "ace/Cleanup.h"
-ACE_RCSID (ace,
- Cleanup,
- "$Id$")
+ACE_RCSID(ace, Cleanup, "$Id$")
#if !defined (ACE_HAS_INLINED_OSCALLS)
# include "ace/Cleanup.inl"
@@ -12,8 +11,6 @@ ACE_RCSID (ace,
#include "ace/OS_Memory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Cleanup::cleanup (void *)
{
@@ -28,7 +25,7 @@ ACE_Cleanup::~ACE_Cleanup (void)
/*****************************************************************************/
extern "C" void
-ACE_CLEANUP_DESTROYER_NAME (ACE_Cleanup *object, void *param)
+ace_cleanup_destroyer (ACE_Cleanup *object, void *param)
{
object->cleanup (param);
}
@@ -166,7 +163,7 @@ ACE_OS_Exit_Info::find (void *object)
}
void
-ACE_OS_Exit_Info::call_hooks (void)
+ACE_OS_Exit_Info::call_hooks ()
{
// Call all registered cleanup hooks, in reverse order of
// registration.
@@ -175,12 +172,10 @@ ACE_OS_Exit_Info::call_hooks (void)
iter = iter->next_)
{
ACE_Cleanup_Info &info = iter->cleanup_info_;
- if (info.cleanup_hook_ == reinterpret_cast<ACE_CLEANUP_FUNC> (
- ACE_CLEANUP_DESTROYER_NAME))
+ if (info.cleanup_hook_ == reinterpret_cast<ACE_CLEANUP_FUNC> (ace_cleanup_destroyer))
// The object is an ACE_Cleanup.
- ACE_CLEANUP_DESTROYER_NAME (
- reinterpret_cast<ACE_Cleanup *> (info.object_),
- info.param_);
+ ace_cleanup_destroyer (reinterpret_cast<ACE_Cleanup *> (info.object_),
+ info.param_);
else if (info.object_ == &ace_exit_hook_marker)
// The hook is an ACE_EXIT_HOOK.
(* reinterpret_cast<ACE_EXIT_HOOK> (info.cleanup_hook_)) ();
@@ -188,5 +183,3 @@ ACE_OS_Exit_Info::call_hooks (void)
(*info.cleanup_hook_) (info.object_, info.param_);
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Cleanup.h b/ace/Cleanup.h
index d288225a0a5..4cf7629ac4a 100644
--- a/ace/Cleanup.h
+++ b/ace/Cleanup.h
@@ -26,26 +26,6 @@
# endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/ACE_export.h"
-
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# include "ace/Global_Macros.h"
-
-# define ACE_CLEANUP_DESTROYER_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ace_cleanup_destroyer)
-
-#else
-
-# define ACE_CLEANUP_DESTROYER_NAME ace_cleanup_destroyer
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Cleanup
*
@@ -66,7 +46,7 @@ public:
// Adapter for cleanup, used by ACE_Object_Manager.
extern "C" ACE_Export
-void ACE_CLEANUP_DESTROYER_NAME (ACE_Cleanup *, void *param = 0);
+void ace_cleanup_destroyer (ACE_Cleanup *, void *param = 0);
/**
* @class ACE_Cleanup_Info
@@ -133,8 +113,6 @@ private:
ACE_Cleanup_Info_Node *registered_objects_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/Cleanup.inl b/ace/Cleanup.inl
index 02d3c223f8d..841c715bf1a 100644
--- a/ace/Cleanup.inl
+++ b/ace/Cleanup.inl
@@ -1,12 +1,7 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Cleanup::ACE_Cleanup (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Cleanup_Strategies_T.cpp b/ace/Cleanup_Strategies_T.cpp
index 10804ba21ca..5b9425ee5da 100644
--- a/ace/Cleanup_Strategies_T.cpp
+++ b/ace/Cleanup_Strategies_T.cpp
@@ -1,7 +1,7 @@
//$Id$
-#ifndef ACE_CLEANUP_STRATEGIES_T_CPP
-#define ACE_CLEANUP_STRATEGIES_T_CPP
+#ifndef CLEANUP_STRATEGIES_T_C
+#define CLEANUP_STRATEGIES_T_C
#include "ace/Cleanup_Strategies_T.h"
@@ -9,8 +9,6 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
////////////////////////////////////////////////////////////////////////////
template <class KEY, class VALUE, class CONTAINER>
@@ -21,18 +19,19 @@ ACE_Cleanup_Strategy<KEY, VALUE, CONTAINER>::~ACE_Cleanup_Strategy (void)
template <class KEY, class VALUE, class CONTAINER> int
ACE_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (CONTAINER &container,
KEY *key,
- VALUE *)
+ VALUE *value)
{
+ ACE_UNUSED_ARG (value);
+
return container.unbind (*key);
}
////////////////////////////////////////////////////////////////////////////
template <class KEY, class VALUE, class CONTAINER> int
-ACE_Recyclable_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (
- CONTAINER &container,
- KEY *key,
- VALUE *)
+ACE_Recyclable_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (CONTAINER &container,
+ KEY *key,
+ VALUE *)
{
VALUE value;
@@ -49,12 +48,9 @@ ACE_Recyclable_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (
/////////////////////////////////////////////////////////////////////////////
template <class KEY, class VALUE, class CONTAINER> int
-ACE_Refcounted_Recyclable_Handler_Cleanup_Strategy<KEY,
- VALUE,
- CONTAINER>::cleanup (
- CONTAINER &,
- KEY *,
- VALUE *value)
+ACE_Refcounted_Recyclable_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (CONTAINER &,
+ KEY *,
+ VALUE *value)
{
return value->first ()->handle_close_i ();
}
@@ -62,10 +58,9 @@ ACE_Refcounted_Recyclable_Handler_Cleanup_Strategy<KEY,
////////////////////////////////////////////////////////////////////////////
template <class KEY, class VALUE, class CONTAINER> int
-ACE_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (
- CONTAINER &container,
- KEY *key,
- VALUE *value)
+ACE_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (CONTAINER &container,
+ KEY *key,
+ VALUE *value)
{
// Remove the item from cache only if the handler isnt in use.
if ((*value)->active () == 0)
@@ -83,13 +78,15 @@ ACE_Handler_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (
////////////////////////////////////////////////////////////////////////////
template <class KEY, class VALUE, class CONTAINER> int
-ACE_Null_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (CONTAINER &,
- KEY *,
- VALUE *)
+ACE_Null_Cleanup_Strategy<KEY, VALUE, CONTAINER>::cleanup (CONTAINER &container,
+ KEY *key,
+ VALUE *value)
{
+ ACE_UNUSED_ARG (container);
+ ACE_UNUSED_ARG (key);
+ ACE_UNUSED_ARG (value);
+
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_CLEANUP_STRATEGIES_T_CPP */
+#endif /* CLEANUP_STRATEGIES_T_C */
diff --git a/ace/Cleanup_Strategies_T.h b/ace/Cleanup_Strategies_T.h
index d31a812d70c..989b6a2c629 100644
--- a/ace/Cleanup_Strategies_T.h
+++ b/ace/Cleanup_Strategies_T.h
@@ -24,8 +24,6 @@
// For linkers that cant grok long names.
#define ACE_Cleanup_Strategy ACLE
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Cleanup_Strategy
*
@@ -59,7 +57,7 @@ public:
*
* The entry to be cleaned up is removed from the container.
* Here, since we are dealing with svc_handlers specifically, we
- * perform a couple of extra operations. @note To be used when
+ * perform a couple of extra operations. Note: To be used when
* the handler is recyclable.
*/
template <class KEY, class VALUE, class CONTAINER>
@@ -106,7 +104,7 @@ public:
*
* The entry to be cleaned up is removed from the container.
* Here, since we are dealing with svc_handlers specifically, we
- * perform a couple of extra operations. @note This cleanup strategy
+ * perform a couple of extra operations. Note: This cleanup strategy
* should be used in the case when the handler has the caching
* attributes.
*/
@@ -141,8 +139,6 @@ public:
virtual int cleanup (CONTAINER &container, KEY *key, VALUE *value);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Cleanup_Strategies_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Codecs.cpp b/ace/Codecs.cpp
index d28cda908d1..8e717cb4533 100644
--- a/ace/Codecs.cpp
+++ b/ace/Codecs.cpp
@@ -7,28 +7,14 @@ ACE_RCSID (ace,
Codecs,
"$Id$")
-namespace
-{
- // Just in case ...
-#undef alphabet
-#undef pad
-#undef max_columns
-
- // Symbols which form the Base64 alphabet (Defined as per RFC 2045)
- ACE_Byte const alphabet[] =
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+const ACE_Byte ACE_Base64::alphabet_[] =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
- // The padding character used in the encoding
- ACE_Byte const pad = '=';
+const ACE_Byte ACE_Base64::pad_ = '=';
- // Number of columns per line of encoded output (Can have a maximum
- // value of 76).
- int const max_columns = 72;
-}
+int ACE_Base64::init_ = 0;
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-bool ACE_Base64::init_ = false;
+int ACE_Base64::max_columns_ = 72;
ACE_Byte ACE_Base64::decoder_[256];
@@ -48,7 +34,7 @@ ACE_Base64::encode (const ACE_Byte* input,
ACE_Byte* result = 0;
size_t length = ((input_len + 2) / 3) * 4;
- size_t num_lines = length / max_columns + 1;
+ size_t num_lines = length / ACE_Base64::max_columns_ + 1;
length += num_lines + 1;
ACE_NEW_RETURN (result, ACE_Byte[length], 0);
@@ -64,12 +50,12 @@ ACE_Base64::encode (const ACE_Byte* input,
if (char_count == 3)
{
- result[pos++] = alphabet[bits >> 18];
- result[pos++] = alphabet[(bits >> 12) & 0x3f];
- result[pos++] = alphabet[(bits >> 6) & 0x3f];
- result[pos++] = alphabet[bits & 0x3f];
+ result[pos++] = ACE_Base64::alphabet_[bits >> 18];
+ result[pos++] = ACE_Base64::alphabet_[(bits >> 12) & 0x3f];
+ result[pos++] = ACE_Base64::alphabet_[(bits >> 6) & 0x3f];
+ result[pos++] = ACE_Base64::alphabet_[bits & 0x3f];
cols += 4;
- if (cols == max_columns) {
+ if (cols == ACE_Base64::max_columns_) {
result[pos++] = '\n';
cols = 0;
}
@@ -85,17 +71,17 @@ ACE_Base64::encode (const ACE_Byte* input,
if (char_count != 0)
{
bits <<= (16 - (8 * char_count));
- result[pos++] = alphabet[bits >> 18];
- result[pos++] = alphabet[(bits >> 12) & 0x3f];
+ result[pos++] = ACE_Base64::alphabet_[bits >> 18];
+ result[pos++] = ACE_Base64::alphabet_[(bits >> 12) & 0x3f];
if (char_count == 1)
{
- result[pos++] = pad;
- result[pos++] = pad;
+ result[pos++] = pad_;
+ result[pos++] = pad_;
}
else
{
- result[pos++] = alphabet[(bits >> 6) & 0x3f];
- result[pos++] = pad;
+ result[pos++] = ACE_Base64::alphabet_[(bits >> 6) & 0x3f];
+ result[pos++] = pad_;
}
if (cols > 0)
result[pos++] = '\n';
@@ -113,7 +99,7 @@ ACE_Base64::length (const ACE_Byte* input)
ACE_Byte* ptr = const_cast<ACE_Byte*> (input);
while (*ptr != 0 &&
- (member_[*(ptr)] == 1 || *ptr == pad
+ (member_[*(ptr)] == 1 || *ptr == pad_
|| ACE_OS::ace_isspace (*ptr)))
ptr++;
size_t len = ptr - input;
@@ -136,7 +122,7 @@ ACE_Base64::decode (const ACE_Byte* input, size_t* output_len)
ACE_Byte* ptr = const_cast<ACE_Byte*> (input);
while (*ptr != 0 &&
- (member_[*(ptr)] == 1 || *ptr == pad
+ (member_[*(ptr)] == 1 || *ptr == pad_
|| ACE_OS::ace_isspace (*ptr)))
ptr++;
size_t input_len = ptr - input;
@@ -148,7 +134,7 @@ ACE_Base64::decode (const ACE_Byte* input, size_t* output_len)
size_t i = 0;
for (; i < input_len; ++i)
{
- if (input[i] == pad)
+ if (input[i] == pad_)
break;
if (!ACE_Base64::member_[input[i]])
continue;
@@ -157,9 +143,9 @@ ACE_Base64::decode (const ACE_Byte* input, size_t* output_len)
if (char_count == 4)
{
- result[pos++] = static_cast<ACE_Byte> (bits >> 16);
- result[pos++] = static_cast<ACE_Byte> ((bits >> 8) & 0xff);
- result[pos++] = static_cast<ACE_Byte> (bits & 0xff);
+ result[pos++] = bits >> 16;
+ result[pos++] = (bits >> 8) & 0xff;
+ result[pos++] = bits & 0xff;
bits = 0;
char_count = 0;
}
@@ -190,11 +176,11 @@ ACE_Base64::decode (const ACE_Byte* input, size_t* output_len)
errors++;
break;
case 2:
- result[pos++] = static_cast<ACE_Byte> (bits >> 10);
+ result[pos++] = bits >> 10;
break;
case 3:
- result[pos++] = static_cast<ACE_Byte> (bits >> 16);
- result[pos++] = static_cast<ACE_Byte> ((bits >> 8) & 0xff);
+ result[pos++] = bits >> 16;
+ result[pos++] = (bits >> 8) & 0xff;
break;
}
}
@@ -214,14 +200,12 @@ ACE_Base64::init ()
{
if (!ACE_Base64::init_)
{
- for (ACE_Byte i = 0; i < sizeof (alphabet); ++i)
+ for (ACE_Byte i = 0; i < sizeof (ACE_Base64::alphabet_); ++i)
{
- ACE_Base64::decoder_[alphabet[i]] = i;
- ACE_Base64::member_ [alphabet[i]] = 1;
+ ACE_Base64::decoder_[ACE_Base64::alphabet_[i]] = i;
+ ACE_Base64::member_[ACE_Base64::alphabet_[i]] = 1;
}
- ACE_Base64::init_ = true;
+ ACE_Base64::init_ = 1;
}
return;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Codecs.h b/ace/Codecs.h
index 3159a312c95..899092b29aa 100644
--- a/ace/Codecs.h
+++ b/ace/Codecs.h
@@ -1,6 +1,5 @@
// -*- C++ -*-
-//=============================================================================
/**
* @file Codecs.h
*
@@ -14,25 +13,18 @@
* One: Format of Internet Message Bodies.
*
*/
-//=============================================================================
#ifndef ACE_CODECS_H
#define ACE_CODECS_H
-
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#include "ace/Basic_Types.h"
+#include "ace/Global_Macros.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Basic_Types.h"
-#include "ace/Global_Macros.h"
-
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Base64
*
@@ -45,6 +37,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*/
class ACE_Export ACE_Base64
{
+ friend class ace_dewarn_gplusplus;
public:
//@{
@@ -84,21 +77,17 @@ public:
//@}
-protected:
-
- // Prevent default construction.
- ACE_Base64 (void) {}
-
private:
- // Preventing copying and assignment.
- ACE_Base64 (ACE_Base64 const &);
- ACE_Base64 & operator= (ACE_Base64 const &);
-
/// Initialize the tables for encoding/decoding.
- static void init (void);
+ static void init();
-private:
+ // Prevent construction in any form
+ ACE_UNIMPLEMENTED_FUNC (ACE_Base64 ())
+ ACE_UNIMPLEMENTED_FUNC (ACE_Base64 (const ACE_Base64&))
+
+ /// Symbols which form the Base64 alphabet (Defined as per RFC 2045)
+ static const ACE_Byte alphabet_[];
/// Alphabet used for decoding i.e decoder_[alphabet_[i = 0..63]] = i
static ACE_Byte decoder_[];
@@ -107,13 +96,16 @@ private:
/// member_[alphabet_[0..63]] = 1
static ACE_Byte member_[];
+ /// The padding character used in the encoding
+ static const ACE_Byte pad_;
+
/// Boolean to denote whether initialization is complete
- static bool init_;
+ static int init_;
-};
+ /// Number of columns per line of encoded output (Can have a max value of 76)
+ static int max_columns_;
-ACE_END_VERSIONED_NAMESPACE_DECL
+};
#include /**/ "ace/post.h"
-
#endif /* ACE_CODECS_H */
diff --git a/ace/Codeset_IBM1047.cpp b/ace/Codeset_IBM1047.cpp
index 469c15089c4..aeda9a3c43e 100644
--- a/ace/Codeset_IBM1047.cpp
+++ b/ace/Codeset_IBM1047.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
// ============================================================================
@@ -21,57 +22,10 @@
#if defined(ACE_MVS)
-ACE_RCSID (ace,
- Codeset_IBM1047,
- "$Id$")
+ACE_RCSID(ace, Codeset_IBM1047, "$Id$")
// ****************************************************************
-namespace
-{
- char const to_IBM1047[] =
- {
- "\x00\x01\x02\x03\x37\x2D\x2E\x2F\x16\x05\x25\x0B\x0C\x0D\x0E\x0F" // 00-0F
- "\x10\x11\x12\x13\x3C\x3D\x32\x26\x18\x19\x3F\x27\x22\x1D\x35\x1F" // 10-1F
- "\x40\x5A\x7F\x7B\x5B\x6C\x50\x7D\x4D\x5D\x5C\x4E\x6B\x60\x4B\x61" // 20-2F
- "\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\x7A\x5E\x4C\x7E\x6E\x6F" // 30-3F
- "\x7C\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xD1\xD2\xD3\xD4\xD5\xD6" // 40-4F
- "\xD7\xD8\xD9\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xAD\xE0\xBD\x5F\x6D" // 50-5F
- "\x79\x81\x82\x83\x84\x85\x86\x87\x88\x89\x91\x92\x93\x94\x95\x96" // 60-6F
- "\x97\x98\x99\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xC0\x4F\xD0\xA1\x07" // 70-7F
- "\x43\x20\x21\x1C\x23\xEB\x24\x9B\x71\x28\x38\x49\x90\xBA\xEC\xDF" // 80-8F
- "\x45\x29\x2A\x9D\x72\x2B\x8A\x9A\x67\x56\x64\x4A\x53\x68\x59\x46" // 90-9F
- "\xEA\xDA\x2C\xDE\x8B\x55\x41\xFE\x58\x51\x52\x48\x69\xDB\x8E\x8D" // A0-AF
- "\x73\x74\x75\xFA\x15\xB0\xB1\xB3\xB4\xB5\x6A\xB7\xB8\xB9\xCC\xBC" // B0-BF
- "\xAB\x3E\x3B\x0A\xBF\x8F\x3A\x14\xA0\x17\xCB\xCA\x1A\x1B\x9C\x04" // C0-CF
- "\x34\xEF\x1E\x06\x08\x09\x77\x70\xBE\xBB\xAC\x54\x63\x65\x66\x62" // D0-DF
- "\x30\x42\x47\x57\xEE\x33\xB6\xE1\xCD\xED\x36\x44\xCE\xCF\x31\xAA" // E0-EF
- "\xFC\x9E\xAE\x8C\xDD\xDC\x39\xFB\x80\xAF\xFD\x78\x76\xB2\x9F\xFF" // F0-FF
-};
-
- char const from_IBM1047[] =
- {
- "\x00\x01\x02\x03\xCF\x09\xD3\x7F\xD4\xD5\xC3\x0B\x0C\x0D\x0E\x0F" // 00-0F
- "\x10\x11\x12\x13\xC7\xB4\x08\xC9\x18\x19\xCC\xCD\x83\x1D\xD2\x1F" // 10-1F
- "\x81\x82\x1C\x84\x86\x0A\x17\x1B\x89\x91\x92\x95\xA2\x05\x06\x07" // 20-2F
- "\x20\xEE\x16\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\xC1\x1A" // 30-3F
- "\x20\xA6\xE1\x80\xEB\x90\x9F\xE2\xAB\x8B\x9B\x2E\x3C\x28\x2B\x7C" // 40-4F
- "\x26\xA9\xAA\x9C\xDB\xA5\x99\xE3\xA8\x9E\x21\x24\x2A\x29\x3B\x5E" // 50-5F
- "\x2D\x2F\xDF\xDC\x9A\xDD\xDE\x98\x9D\xAC\xBA\x2C\x25\x5F\x3E\x3F" // 60-6F
- "\xD7\x88\x94\xB0\xB1\xB2\xFC\xD6\xFB\x60\x3A\x23\x40\x27\x3D\x22" // 70-7F
- "\xF8\x61\x62\x63\x64\x65\x66\x67\x68\x69\x96\xA4\xF3\xAF\xAE\xC5" // 80-8F
- "\x8C\x6A\x6B\x6C\x6D\x6E\x6F\x70\x71\x72\x97\x87\xCE\x93\xF1\xFE" // 90-9F
- "\xC8\x7E\x73\x74\x75\x76\x77\x78\x79\x7A\xEF\xC0\xDA\x5B\xF2\xF9" // A0-AF
- "\xB5\xB6\xFD\xB7\xB8\xB9\xE6\xBB\xBC\xBD\x8D\xD9\xBF\x5D\xD8\xC4" // B0-BF
- "\x7B\x41\x42\x43\x44\x45\x46\x47\x48\x49\xCB\xCA\xBE\xE8\xEC\xED" // C0-CF
- "\x7D\x4A\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\xA1\xAD\xF5\xF4\xA3\x8F" // D0-DF
- "\x5C\xE7\x53\x54\x55\x56\x57\x58\x59\x5A\xA0\x85\x8E\xE9\xE4\xD1" // E0-EF
- "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\xB3\xF7\xF0\xFA\xA7\xFF" // F0-FF
- };
-}
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_IBM1047_ISO8859::ACE_IBM1047_ISO8859 (void)
{
}
@@ -98,7 +52,7 @@ ACE_IBM1047_ISO8859::read_char (ACE_InputCDR &in,
{
if (this->read_1 (in, reinterpret_cast<ACE_CDR::Octet*> (&x)))
{
- x = to_IBM1047[x];
+ x = ACE_to_IBM1047[x];
return 1;
}
return 0;
@@ -140,7 +94,7 @@ ACE_IBM1047_ISO8859::read_char_array (ACE_InputCDR& in,
len))
{
for (ACE_CDR::ULong i = 0; i != len; ++i)
- x[i] = to_IBM1047[x[i]];
+ x[i] = ACE_to_IBM1047[x[i]];
return 1;
}
@@ -154,7 +108,7 @@ ACE_IBM1047_ISO8859::write_char (ACE_OutputCDR& out,
{
return
this->write_1 (out,
- reinterpret_cast<const ACE_CDR::Octet*> (&from_IBM1047[x]));
+ reinterpret_cast<const ACE_CDR::Octet*> (&ACE_from_IBM1047[x]));
}
ACE_CDR::Boolean
@@ -178,7 +132,7 @@ ACE_IBM1047_ISO8859::write_char_array (ACE_OutputCDR& out,
ACE_OS::memcpy (buf, x, len);
for (ACE_CDR::ULong i = 0; i != len; ++i)
- buf[i] = from_IBM1047[buf[i]];
+ buf[i] = ACE_from_IBM1047[buf[i]];
return 1;
}
@@ -216,7 +170,7 @@ ACE_ISO8859_IBM1047::read_char (ACE_InputCDR& in,
{
if (this->read_1 (in, reinterpret_cast<ACE_CDR::Octet*> (&x)))
{
- x = from_IBM1047[x];
+ x = ACE_from_IBM1047[x];
return 1;
}
return 0;
@@ -258,7 +212,7 @@ ACE_ISO8859_IBM1047::read_char_array (ACE_InputCDR &in,
len))
{
for (ACE_CDR::ULong i = 0; i != len; ++i)
- x[i] = from_IBM1047[x[i]];
+ x[i] = ACE_from_IBM1047[x[i]];
return 1;
}
@@ -272,7 +226,7 @@ ACE_ISO8859_IBM1047::write_char (ACE_OutputCDR &out,
{
return
this->write_1 (out,
- reinterpret_cast<const ACE_CDR::Octet *> (&to_IBM1047[x]));
+ reinterpret_cast<const ACE_CDR::Octet *> (&ACE_to_IBM1047[x]));
}
ACE_CDR::Boolean
@@ -298,7 +252,7 @@ ACE_ISO8859_IBM1047::write_char_array (ACE_OutputCDR &out,
ACE_OS::memcpy (buf, x, len);
for (ACE_CDR::ULong i = 0; i != len; ++i)
- buf[i] = to_IBM1047[buf[i]];
+ buf[i] = ACE_to_IBM1047[buf[i]];
return 1;
}
@@ -307,11 +261,49 @@ ACE_ISO8859_IBM1047::write_char_array (ACE_OutputCDR &out,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// ****************************************************************
+char ACE_to_IBM1047[257] =
+{
+ "\x00\x01\x02\x03\x37\x2D\x2E\x2F\x16\x05\x25\x0B\x0C\x0D\x0E\x0F" // 00-0F
+ "\x10\x11\x12\x13\x3C\x3D\x32\x26\x18\x19\x3F\x27\x22\x1D\x35\x1F" // 10-1F
+ "\x40\x5A\x7F\x7B\x5B\x6C\x50\x7D\x4D\x5D\x5C\x4E\x6B\x60\x4B\x61" // 20-2F
+ "\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\x7A\x5E\x4C\x7E\x6E\x6F" // 30-3F
+ "\x7C\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xD1\xD2\xD3\xD4\xD5\xD6" // 40-4F
+ "\xD7\xD8\xD9\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xAD\xE0\xBD\x5F\x6D" // 50-5F
+ "\x79\x81\x82\x83\x84\x85\x86\x87\x88\x89\x91\x92\x93\x94\x95\x96" // 60-6F
+ "\x97\x98\x99\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xC0\x4F\xD0\xA1\x07" // 70-7F
+ "\x43\x20\x21\x1C\x23\xEB\x24\x9B\x71\x28\x38\x49\x90\xBA\xEC\xDF" // 80-8F
+ "\x45\x29\x2A\x9D\x72\x2B\x8A\x9A\x67\x56\x64\x4A\x53\x68\x59\x46" // 90-9F
+ "\xEA\xDA\x2C\xDE\x8B\x55\x41\xFE\x58\x51\x52\x48\x69\xDB\x8E\x8D" // A0-AF
+ "\x73\x74\x75\xFA\x15\xB0\xB1\xB3\xB4\xB5\x6A\xB7\xB8\xB9\xCC\xBC" // B0-BF
+ "\xAB\x3E\x3B\x0A\xBF\x8F\x3A\x14\xA0\x17\xCB\xCA\x1A\x1B\x9C\x04" // C0-CF
+ "\x34\xEF\x1E\x06\x08\x09\x77\x70\xBE\xBB\xAC\x54\x63\x65\x66\x62" // D0-DF
+ "\x30\x42\x47\x57\xEE\x33\xB6\xE1\xCD\xED\x36\x44\xCE\xCF\x31\xAA" // E0-EF
+ "\xFC\x9E\xAE\x8C\xDD\xDC\x39\xFB\x80\xAF\xFD\x78\x76\xB2\x9F\xFF" // F0-FF
+};
+
+char ACE_from_IBM1047[257] =
+{
+ "\x00\x01\x02\x03\xCF\x09\xD3\x7F\xD4\xD5\xC3\x0B\x0C\x0D\x0E\x0F" // 00-0F
+ "\x10\x11\x12\x13\xC7\xB4\x08\xC9\x18\x19\xCC\xCD\x83\x1D\xD2\x1F" // 10-1F
+ "\x81\x82\x1C\x84\x86\x0A\x17\x1B\x89\x91\x92\x95\xA2\x05\x06\x07" // 20-2F
+ "\x20\xEE\x16\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\xC1\x1A" // 30-3F
+ "\x20\xA6\xE1\x80\xEB\x90\x9F\xE2\xAB\x8B\x9B\x2E\x3C\x28\x2B\x7C" // 40-4F
+ "\x26\xA9\xAA\x9C\xDB\xA5\x99\xE3\xA8\x9E\x21\x24\x2A\x29\x3B\x5E" // 50-5F
+ "\x2D\x2F\xDF\xDC\x9A\xDD\xDE\x98\x9D\xAC\xBA\x2C\x25\x5F\x3E\x3F" // 60-6F
+ "\xD7\x88\x94\xB0\xB1\xB2\xFC\xD6\xFB\x60\x3A\x23\x40\x27\x3D\x22" // 70-7F
+ "\xF8\x61\x62\x63\x64\x65\x66\x67\x68\x69\x96\xA4\xF3\xAF\xAE\xC5" // 80-8F
+ "\x8C\x6A\x6B\x6C\x6D\x6E\x6F\x70\x71\x72\x97\x87\xCE\x93\xF1\xFE" // 90-9F
+ "\xC8\x7E\x73\x74\x75\x76\x77\x78\x79\x7A\xEF\xC0\xDA\x5B\xF2\xF9" // A0-AF
+ "\xB5\xB6\xFD\xB7\xB8\xB9\xE6\xBB\xBC\xBD\x8D\xD9\xBF\x5D\xD8\xC4" // B0-BF
+ "\x7B\x41\x42\x43\x44\x45\x46\x47\x48\x49\xCB\xCA\xBE\xE8\xEC\xED" // C0-CF
+ "\x7D\x4A\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\xA1\xAD\xF5\xF4\xA3\x8F" // D0-DF
+ "\x5C\xE7\x53\x54\x55\x56\x57\x58\x59\x5A\xA0\x85\x8E\xE9\xE4\xD1" // E0-EF
+ "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\xB3\xF7\xF0\xFA\xA7\xFF" // F0-FF
+};
+
#elif defined (__HP_aCC)
// Make aC++ stop complaining about an empty translation unit
-static int const shut_up_aCC = 0;
+static int shut_up_aCC = 0;
#endif /* ACE_MVS */
diff --git a/ace/Codeset_IBM1047.h b/ace/Codeset_IBM1047.h
index 9f9231a41a9..ca788435be6 100644
--- a/ace/Codeset_IBM1047.h
+++ b/ace/Codeset_IBM1047.h
@@ -29,7 +29,8 @@
#include "ace/CDR_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+extern ACE_Export char ACE_to_IBM1047[257];
+extern ACE_Export char ACE_from_IBM1047[257];
// ****************************************************************
@@ -119,10 +120,7 @@ public:
virtual ACE_CDR::ULong tcs ();
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_MVS */
#include /**/ "ace/post.h"
-
#endif /* ACE_CODESET_IMB1047_H */
diff --git a/ace/Codeset_Registry.cpp b/ace/Codeset_Registry.cpp
index 5d3c6abb59b..6cdb913bce4 100644
--- a/ace/Codeset_Registry.cpp
+++ b/ace/Codeset_Registry.cpp
@@ -21,11 +21,8 @@
#include "ace/Codeset_Registry.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID (ace,
- Codeset_Registry,
- "$Id$")
+ACE_RCSID(ace, Codeset_Registry, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int
ACE_Codeset_Registry::locale_to_registry_i (const ACE_CString &locale,
@@ -33,7 +30,7 @@ ACE_Codeset_Registry::locale_to_registry_i (const ACE_CString &locale,
ACE_CDR::UShort *num_sets,
ACE_CDR::UShort **char_sets)
{
- registry_entry const * element = 0;
+ registry_entry* element = 0;
for (size_t i = 0; element == 0 && i < num_registry_entries_; i++)
if (ACE_OS::strcmp(registry_db_[i].loc_name_,locale.c_str()) == 0)
element = &registry_db_[i];
@@ -45,8 +42,8 @@ ACE_Codeset_Registry::locale_to_registry_i (const ACE_CString &locale,
if (char_sets != 0)
{
ACE_NEW_RETURN (*char_sets,ACE_CDR::UShort[element->num_sets_],0);
- ACE_OS::memcpy (*char_sets,
- element->char_sets_,
+ ACE_OS::memcpy (element->char_sets_,
+ *char_sets,
element->num_sets_ * sizeof (ACE_CDR::UShort));
}
return 1;
@@ -58,7 +55,7 @@ ACE_Codeset_Registry::registry_to_locale_i (ACE_CDR::ULong codeset_id,
ACE_CDR::UShort *num_sets,
ACE_CDR::UShort **char_sets)
{
- registry_entry const * element = 0;
+ registry_entry* element = 0;
for (size_t i = 0; element == 0 && i < num_registry_entries_; i++)
if (codeset_id == registry_db_[i].codeset_id_)
element = &registry_db_[i];
@@ -70,8 +67,8 @@ ACE_Codeset_Registry::registry_to_locale_i (ACE_CDR::ULong codeset_id,
if (char_sets != 0)
{
ACE_NEW_RETURN (*char_sets,ACE_CDR::UShort[element->num_sets_],0);
- ACE_OS::memcpy (*char_sets,
- element->char_sets_,
+ ACE_OS::memcpy (element->char_sets_,
+ *char_sets,
element->num_sets_ * sizeof (ACE_CDR::UShort));
}
return 1;
@@ -81,8 +78,8 @@ int
ACE_Codeset_Registry::is_compatible_i (ACE_CDR::ULong codeset_id,
ACE_CDR::ULong other)
{
- registry_entry const * lhs = 0;
- registry_entry const * rhs = 0;
+ registry_entry* lhs = 0;
+ registry_entry* rhs = 0;
for (size_t i = 0; (lhs == 0 || rhs == 0) && i < num_registry_entries_; i++)
{
if (codeset_id == registry_db_[i].codeset_id_)
@@ -109,5 +106,3 @@ ACE_Codeset_Registry::get_max_bytes_i (ACE_CDR::ULong codeset_id)
return registry_db_[i].max_bytes_;
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Codeset_Registry.h b/ace/Codeset_Registry.h
index eb8d013d4af..5ed68e35d0b 100644
--- a/ace/Codeset_Registry.h
+++ b/ace/Codeset_Registry.h
@@ -37,33 +37,31 @@
#include /**/ <dce/rpc.h>
#endif /* ACE_HAS_DCE_CODESET_REGISTRY */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Codeset_Registry
{
public:
- /// Based on a locale string, find the registry value and optional codeset
- /// collection. This wraps the dce_cs_loc_to_rgy function, or emulates it.
+ // based on a locale string, find the registry value and optional codeset
+ // collection. This wraps the dce_cs_loc_to_rgy function, or emulates it.
static int locale_to_registry (const ACE_CString &locale,
ACE_CDR::ULong &codeset_id,
ACE_CDR::UShort * = 0,
ACE_CDR::UShort ** = 0);
- /// Based on a registry value, find the locale string and optional codeset
- /// collection. This wraps the dce_cs_rgy_to_loc function, or emulates it.
+ // based on a registry value, find the locale string and optional codeset
+ // collection. This wraps the dce_cs_rgy_to_loc function, or emulates it.
static int registry_to_locale (ACE_CDR::ULong codeset_id,
ACE_CString &locale,
ACE_CDR::UShort * = 0,
ACE_CDR::UShort ** = 0);
- /// Tell if two codesets are compatible. This wraps the
- /// rpc_cs_char_set_compat_check function.
+ // tell if two codesets are compatible. This wraps the
+ //rpc_cs_char_set_compat_check function.
static int is_compatible (ACE_CDR::ULong codeset_id,
ACE_CDR::ULong other);
- /// Return the max number of bytes required to represent a single character.
- /// This wraps the rpc_rgy_get_max_bytes function.
+ // return the max number of bytes required to represent a single character.
+ // This wraps the rpc_rgy_get_max_bytes function.
static ACE_CDR::Short get_max_bytes (ACE_CDR::ULong codeset_id);
enum {max_charsets_ = 5};
@@ -78,8 +76,8 @@ protected:
} registry_entry;
private:
- static size_t const num_registry_entries_;
- static registry_entry const registry_db_[];
+ static size_t num_registry_entries_;
+ static registry_entry registry_db_[];
static int locale_to_registry_i (const ACE_CString &locale,
ACE_CDR::ULong &codeset_id,
@@ -94,8 +92,6 @@ private:
static ACE_CDR::Short get_max_bytes_i (ACE_CDR::ULong codeset_id);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Codeset_Registry.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Codeset_Registry.inl b/ace/Codeset_Registry.inl
index d24e07cc83b..47aaf7280ca 100644
--- a/ace/Codeset_Registry.inl
+++ b/ace/Codeset_Registry.inl
@@ -14,8 +14,6 @@
*/
//=============================================================================
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
int
ACE_Codeset_Registry::locale_to_registry(const ACE_CString &locale,
@@ -67,8 +65,8 @@ ACE_Codeset_Registry::registry_to_locale(ACE_CDR::ULong codeset_id,
#endif /* ACE_HAS_DCE_CODESET_REGISTRY */
}
-// Tell if two codesets are compatible. This wraps the
-// rpc_cs_char_set_compat_check function.
+// tell if two codesets are compatible. This wraps the
+//rpc_cs_char_set_compat_check function.
ACE_INLINE
int
ACE_Codeset_Registry::is_compatible (ACE_CDR::ULong codeset_id,
@@ -83,7 +81,7 @@ ACE_Codeset_Registry::is_compatible (ACE_CDR::ULong codeset_id,
#endif /* ACE_HAS_DCE_CODESET_REGISTRY */
}
-// Return the max number of bytes required to represent a single character.
+// return the max number of bytes required to represent a single character.
// This wraps the rpc_rgy_get_max_bytes function.
ACE_INLINE
ACE_CDR::Short
@@ -98,5 +96,3 @@ ACE_Codeset_Registry::get_max_bytes (ACE_CDR::ULong codeset_id)
return ACE_Codeset_Registry::get_max_bytes_i (codeset_id);
#endif /* ACE_HAS_DCE_CODESET_REGISTRY */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Codeset_Registry_db.cpp b/ace/Codeset_Registry_db.cpp
index cd6e29760af..7386ba39e5e 100644
--- a/ace/Codeset_Registry_db.cpp
+++ b/ace/Codeset_Registry_db.cpp
@@ -12,9 +12,7 @@
#include "ace/Codeset_Registry.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Codeset_Registry::registry_entry const
+ACE_Codeset_Registry::registry_entry
ACE_Codeset_Registry::registry_db_[] =
{
{"ISO 8859-1:1987; Latin Alphabet No. 1","ASCII",0x00010001,1,{0x0011},1},
@@ -23,6 +21,4 @@ ACE_Codeset_Registry::registry_db_[] =
{"ISO/IEC 10646-1:1993; UTF-16, UCS Transformation Format 16-bit form","Unicode",0x00010109,1,{0x1000},2}
};
-size_t const ACE_Codeset_Registry::num_registry_entries_ = 4;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+size_t ACE_Codeset_Registry::num_registry_entries_ = 4;
diff --git a/ace/Condition_Recursive_Thread_Mutex.cpp b/ace/Condition_Recursive_Thread_Mutex.cpp
index 06301818247..fa364a6a03e 100644
--- a/ace/Condition_Recursive_Thread_Mutex.cpp
+++ b/ace/Condition_Recursive_Thread_Mutex.cpp
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Condition_Recursive_Thread_Mutex.cpp
*
@@ -18,8 +17,6 @@
# include "ace/Log_Msg.h"
#endif /* ACE_HAS_DUMP */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_Condition<ACE_Recursive_Thread_Mutex>::remove (void)
{
@@ -124,6 +121,4 @@ ACE_Condition_Recursive_Thread_Mutex::ACE_Condition_Recursive_Thread_Mutex (
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_HAS_THREADS */
+#endif /* ACD_HAS_THREADS */
diff --git a/ace/Condition_Recursive_Thread_Mutex.h b/ace/Condition_Recursive_Thread_Mutex.h
index 0c4607a5c2e..21a24557fc5 100644
--- a/ace/Condition_Recursive_Thread_Mutex.h
+++ b/ace/Condition_Recursive_Thread_Mutex.h
@@ -27,9 +27,8 @@
#else /* ACE_HAS_THREADS */
#include "ace/Recursive_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-template <class ACE_LOCK> class ACE_Condition;
+template <class ACE_LOCK>
+class ACE_Condition;
/**
* @class ACE_Condition<ACE_Recursive_Thread_Mutex>
@@ -87,19 +86,15 @@ public:
void dump (void) const;
private:
-
- // = Prevent assignment and copying.
- void operator= (const ACE_Condition<ACE_Recursive_Thread_Mutex> &);
- ACE_Condition (const ACE_Condition<ACE_Recursive_Thread_Mutex> &);
-
-private:
-
/// A normal (i.e., non-recursive) condition variable.
ACE_cond_t cond_;
/// Reference to the recursive mutex.
ACE_Recursive_Thread_Mutex &mutex_;
+ // = Prevent assignment and initialization.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Condition<ACE_Recursive_Thread_Mutex> &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Condition (const ACE_Condition<ACE_Recursive_Thread_Mutex> &))
};
class ACE_Export ACE_Condition_Recursive_Thread_Mutex
@@ -110,8 +105,6 @@ public:
ACE_Condition_Recursive_Thread_Mutex (ACE_Recursive_Thread_Mutex &m);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_HAS_THREADS */
#include /**/ "ace/post.h"
diff --git a/ace/Condition_T.cpp b/ace/Condition_T.cpp
index c2d4375486e..456482d91ef 100644
--- a/ace/Condition_T.cpp
+++ b/ace/Condition_T.cpp
@@ -1,24 +1,23 @@
// $Id$
-#ifndef ACE_CONDITION_T_CPP
-#define ACE_CONDITION_T_CPP
+#ifndef ACE_CONDITION_T_C
+#define ACE_CONDITION_T_C
#include "ace/Condition_T.h"
+#include "ace/Log_Msg.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if defined (ACE_HAS_THREADS)
+ACE_RCSID(ace, Condition_T, "$Id$")
-#include "ace/Log_Msg.h"
+#if defined (ACE_HAS_THREADS)
#if !defined (__ACE_INLINE__)
#include "ace/Condition_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Condition)
template <class MUTEX> void
@@ -191,9 +190,6 @@ ACE_Condition<MUTEX>::wait (const ACE_Time_Value *abstime)
// ACE_TRACE ("ACE_Condition<MUTEX>::wait");
return this->wait (this->mutex_, abstime);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
-#endif /* ACE_CONDITION_T_CPP */
+#endif /* ACE_CONDITION_T_C */
diff --git a/ace/Condition_T.h b/ace/Condition_T.h
index e5ec5fcaab7..6d85c4b3519 100644
--- a/ace/Condition_T.h
+++ b/ace/Condition_T.h
@@ -14,7 +14,6 @@
#ifndef ACE_CONDITION_T_H
#define ACE_CONDITION_T_H
-
#include /**/ "ace/pre.h"
#include "ace/OS_NS_Thread.h"
@@ -26,8 +25,6 @@
#if defined (ACE_HAS_THREADS) /* ACE platform supports some form of threading. */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -159,8 +156,6 @@ public:
// Declare the dynamic allocation hooks.
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Condition_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Condition_T.inl b/ace/Condition_T.inl
index b787569a764..cb927320208 100644
--- a/ace/Condition_T.inl
+++ b/ace/Condition_T.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class MUTEX> ACE_INLINE int
ACE_Condition<MUTEX>::remove (void)
{
@@ -82,5 +79,3 @@ ACE_Condition<MUTEX>::broadcast (void)
#endif /* CHORUS */
return ACE_OS::cond_broadcast (&this->cond_);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Condition_Thread_Mutex.cpp b/ace/Condition_Thread_Mutex.cpp
index 7907b717f73..a04e2b30847 100644
--- a/ace/Condition_Thread_Mutex.cpp
+++ b/ace/Condition_Thread_Mutex.cpp
@@ -21,8 +21,6 @@
ACE_RCSID(ace, Condition_Thread_Mutex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Condition_Thread_Mutex)
void
@@ -135,6 +133,4 @@ ACE_Condition_Thread_Mutex::broadcast (void)
return ACE_OS::cond_broadcast (&this->cond_);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/Condition_Thread_Mutex.h b/ace/Condition_Thread_Mutex.h
index 01a465e8f33..7b30fba8079 100644
--- a/ace/Condition_Thread_Mutex.h
+++ b/ace/Condition_Thread_Mutex.h
@@ -29,8 +29,6 @@
#include "ace/Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
class ACE_Export ACE_Condition_Attributes
@@ -178,8 +176,6 @@ public:
};
#endif /* 0 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Condition_Thread_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Condition_Thread_Mutex.inl b/ace/Condition_Thread_Mutex.inl
index 3e12c9c911a..ff15f94ad04 100644
--- a/ace/Condition_Thread_Mutex.inl
+++ b/ace/Condition_Thread_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Condition_Attributes::ACE_Condition_Attributes (int type)
{
@@ -70,5 +67,3 @@ ACE_Process_Condition<MUTEX>::ACE_Process_Condition (MUTEX &m,
// ACE_TRACE ("ACE_Process_Condition<MUTEX>::ACE_Process_Condition");
}
#endif /* 0 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Configuration.cpp b/ace/Configuration.cpp
index 24a27647cc1..468f1b9e9dc 100644
--- a/ace/Configuration.cpp
+++ b/ace/Configuration.cpp
@@ -12,18 +12,16 @@
# include "ace/OS_NS_unistd.h"
#endif /* ACE_LACKS_ACCESS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-# if defined (ACE_HAS_THREADS)
+
+#if defined (ACE_HAS_THREADS)
// ACE_SYNCH_MUTEX should not be used in the template instantiations
// because the resulting template instantiation for the
// single-threaded case already exists in ACE.
template class ACE_Allocator_Adapter<ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Thread_Mutex> >;
template class ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Thread_Mutex>;
template class ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Thread_Mutex, ACE_Control_Block>;
-# endif /* ACE_HAS_THREADS */
-
+#endif /* ACE_HAS_THREADS */
template class ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Section_IntId>;
template class ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId>;
template class ACE_Hash_Map_Entry<ACE_Configuration_ExtId, int>;
@@ -52,15 +50,14 @@ template class ACE_Hash_Map_With_Allocator<ACE_Configuration_ExtId, int>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-# if defined (ACE_HAS_THREADS)
+#if defined (ACE_HAS_THREADS)
// ACE_SYNCH_MUTEX should not be used in the template instantiations
// because the resulting template instantiation for the
// single-threaded case already exists in ACE.
#pragma instantiate ACE_Allocator_Adapter<ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Thread_Mutex> >
#pragma instantiate ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Thread_Mutex>
#pragma instantiate ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Thread_Mutex, ACE_Control_Block>
-# endif /* ACE_HAS_THREADS */
-
+#endif /* ACE_HAS_THREADS */
#pragma instantiate ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Section_IntId>
#pragma instantiate ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId>
#pragma instantiate ACE_Hash_Map_Entry<ACE_Configuration_ExtId, int>
@@ -1784,7 +1781,7 @@ ACE_Configuration_Heap::remove_section (const ACE_Configuration_Section_Key& key
VALUE_HASH::ITERATOR value_iter = value_hash_map->begin ();
while (!value_iter.done ())
{
- VALUE_HASH::ENTRY* value_entry = 0;
+ VALUE_HASH::ENTRY* value_entry;
if (!value_iter.next (value_entry))
return 1;
@@ -1844,7 +1841,7 @@ ACE_Configuration_Heap::enumerate_values (const ACE_Configuration_Section_Key& k
}
// Get the next entry
- ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId>* entry = 0;
+ ACE_Hash_Map_Entry<ACE_Configuration_ExtId, ACE_Configuration_Value_IntId>* entry;
if (!pKey->value_iter_->next (entry))
return 1;
@@ -1887,7 +1884,7 @@ ACE_Configuration_Heap::enumerate_sections (const ACE_Configuration_Section_Key&
}
// Get the next entry
- ACE_Hash_Map_Entry<ACE_Configuration_ExtId, int>* entry = 0;
+ ACE_Hash_Map_Entry<ACE_Configuration_ExtId, int>* entry;
if (!pKey->section_iter_->next (entry))
return 1;
@@ -2260,5 +2257,3 @@ ACE_Configuration_Heap::remove_value (const ACE_Configuration_Section_Key& key,
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Configuration.h b/ace/Configuration.h
index b1ca0f6a9d9..96ba0153409 100644
--- a/ace/Configuration.h
+++ b/ace/Configuration.h
@@ -53,8 +53,6 @@
#define ACE_DEFAULT_CONFIG_SECTION_SIZE 16
#endif /* ACE_DEFAULT_CONFIG_SECTION_SIZE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Section_Key_Internal
*
@@ -700,8 +698,8 @@ public:
ACE_Configuration_Section_IntId (void);
/// Named ctor
- ACE_Configuration_Section_IntId (VALUE_MAP* value_hash_map,
- SUBSECTION_MAP* section_hash_map);
+ explicit ACE_Configuration_Section_IntId (VALUE_MAP* value_hash_map,
+ SUBSECTION_MAP* section_hash_map);
/// Copy ctor
ACE_Configuration_Section_IntId (const ACE_Configuration_Section_IntId& rhs);
@@ -777,7 +775,7 @@ protected:
* representation of a configuraiton database. A persistent heap
* may be used to store configurations persistently
*
- * @note Before using this class you must call one of the open methods.
+ * Note: Before using this class you must call one of the open methods.
*
* @todo
* - Need to investigate what happens if memory mapped file gets mapped to
@@ -886,7 +884,5 @@ private:
size_t default_map_size_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_CONFIGURATION_H */
diff --git a/ace/Configuration_Import_Export.cpp b/ace/Configuration_Import_Export.cpp
index 76ad0f051d9..da1ea7d660e 100644
--- a/ace/Configuration_Import_Export.cpp
+++ b/ace/Configuration_Import_Export.cpp
@@ -5,8 +5,6 @@
#include "ace/OS_NS_ctype.h"
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Config_ImpExp_Base::ACE_Config_ImpExp_Base (ACE_Configuration& config)
: config_ (config)
{
@@ -123,7 +121,7 @@ ACE_Registry_ImpExp::import_config (const ACE_TCHAR* filename)
{
// number type
ACE_TCHAR* endptr = 0;
- unsigned long value = ACE_OS::strtoul (end + 6, &endptr, 16);
+ u_int value = ACE_OS::strtoul (end + 6, &endptr, 16);
if (config_.set_integer_value (section, name, value))
{
ACE_OS::fclose (in);
@@ -646,5 +644,3 @@ ACE_Ini_ImpExp::squish (ACE_TCHAR *src)
return cp;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Configuration_Import_Export.h b/ace/Configuration_Import_Export.h
index 41dc401e0c7..d2ac9eeb566 100644
--- a/ace/Configuration_Import_Export.h
+++ b/ace/Configuration_Import_Export.h
@@ -32,8 +32,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Config_ImpExp_Base
*
@@ -209,7 +207,5 @@ private:
ACE_Ini_ImpExp& operator= (const ACE_Ini_ImpExp&);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_CONFIGURATION_IMPORT_EXPORT_H */
diff --git a/ace/Connection_Recycling_Strategy.cpp b/ace/Connection_Recycling_Strategy.cpp
index c5bc6910d21..351dde2ea52 100644
--- a/ace/Connection_Recycling_Strategy.cpp
+++ b/ace/Connection_Recycling_Strategy.cpp
@@ -4,10 +4,10 @@
ACE_RCSID(ace, Connection_Recycling_Strategy, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_Connection_Recycling_Strategy::ACE_Connection_Recycling_Strategy (void)
+{
+}
ACE_Connection_Recycling_Strategy::~ACE_Connection_Recycling_Strategy (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Connection_Recycling_Strategy.h b/ace/Connection_Recycling_Strategy.h
index 786835ef6b7..bbe4f7b48ce 100644
--- a/ace/Connection_Recycling_Strategy.h
+++ b/ace/Connection_Recycling_Strategy.h
@@ -19,13 +19,15 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+
/**
* @class ACE_Connection_Recycling_Strategy
*
* @brief Defines the interface for a connection recycler.
*/
+
class ACE_Export ACE_Connection_Recycling_Strategy
{
public:
@@ -54,10 +56,12 @@ public:
virtual int cleanup_hint (const void *recycling_act,
void **act_holder = 0) = 0;
+protected:
+ /// Default ctor.
+ ACE_Connection_Recycling_Strategy (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-#include /**/ "ace/post.h"
+#include /**/ "ace/post.h"
#endif /*ACE_CONNECTION_RECYCLING_STRATEGY*/
diff --git a/ace/Connector.cpp b/ace/Connector.cpp
index f588b605462..c4a40988e59 100644
--- a/ace/Connector.cpp
+++ b/ace/Connector.cpp
@@ -1,10 +1,10 @@
+// Connector.cpp
// $Id$
-#ifndef ACE_CONNECTOR_CPP
-#define ACE_CONNECTOR_CPP
+#ifndef ACE_CONNECTOR_C
+#define ACE_CONNECTOR_C
#include "ace/Connector.h"
-#include "ace/ACE.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_fcntl.h" /* Has ACE_NONBLOCK */
@@ -13,7 +13,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Connector, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Connector)
@@ -66,6 +66,46 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
+template <class SVC_HANDLER> SVC_HANDLER *
+ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::close (void)
+{
+ // @@ TODO: This method should be removed after a couple of betas.
+ SVC_HANDLER *svc_handler = 0;
+
+ // Make sure that we haven't already initialized the Svc_Handler.
+ if (this->svc_handler_)
+ {
+ // Exclusive access to the Reactor.
+ ACE_GUARD_RETURN (ACE_Lock, ace_mon, this->reactor ()->lock (), 0);
+
+ // Double check.
+ if (this->svc_handler_)
+ {
+ // Remember the Svc_Handler.
+ svc_handler = this->svc_handler_;
+
+ // Remove from Reactor.
+ this->reactor ()->remove_handler
+ (this->svc_handler_->get_handle (),
+ ACE_Event_Handler::ALL_EVENTS_MASK);
+
+ // Cancel timer.
+ this->reactor ()->cancel_timer
+ (this->timer_id (), 0, 0);
+
+ // Remove this handle from the set of non-blocking handles
+ // in the Connector.
+ this->connector_.non_blocking_handles ().clr_bit
+ (this->svc_handler_->get_handle ());
+
+ // We are done. Don't initialize the Svc_Handler again.
+ this->svc_handler_ = 0;
+ }
+ }
+
+ return svc_handler;
+}
+
template <class SVC_HANDLER> bool
ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::close (SVC_HANDLER *&sh)
{
@@ -86,12 +126,14 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::close (SVC_HANDLER *&sh)
// Remember the Svc_Handler.
sh = this->svc_handler_;
- ACE_HANDLE h = sh->get_handle ();
+
this->svc_handler_ = 0;
- // Remove this handle from the set of non-blocking handles
- // in the Connector.
- this->connector_.non_blocking_handles ().remove (h);
+ // Remove from Reactor.
+ if (this->reactor ()->remove_handler (
+ sh->get_handle (),
+ ACE_Event_Handler::ALL_EVENTS_MASK) == -1)
+ return false;
// Cancel timer.
if (this->reactor ()->cancel_timer (this->timer_id (),
@@ -99,11 +141,10 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::close (SVC_HANDLER *&sh)
0) == -1)
return false;
- // Remove from Reactor.
- if (this->reactor ()->remove_handler (
- h,
- ACE_Event_Handler::ALL_EVENTS_MASK) == -1)
- return false;
+ // Remove this handle from the set of non-blocking handles
+ // in the Connector.
+ this->connector_.non_blocking_handles ().clr_bit
+ (sh->get_handle ());
}
return true;
@@ -118,18 +159,21 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_timeout
// This method is called if a connection times out before completing.
ACE_TRACE ("ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_timeout");
- SVC_HANDLER *svc_handler = 0;
- int retval = this->close (svc_handler) ? 0 : -1;
+ SVC_HANDLER *svc_handler =
+ this->close ();
+
+ if (svc_handler == 0)
+ return 0;
// Forward to the SVC_HANDLER the <arg> that was passed in as a
// magic cookie during ACE_Connector::connect(). This gives the
// SVC_HANDLER an opportunity to take corrective action (e.g., wait
// a few milliseconds and try to reconnect again.
- if (svc_handler != 0 && svc_handler->handle_timeout (tv, arg) == -1)
+ if (svc_handler->handle_timeout (tv, arg) == -1)
svc_handler->handle_close (svc_handler->get_handle (),
ACE_Event_Handler::TIMER_MASK);
- return retval;
+ return 0;
}
@@ -140,14 +184,16 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_input (ACE_HANDLE)
// establishment.
ACE_TRACE ("ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_input");
- SVC_HANDLER *svc_handler = 0;
- int retval = this->close (svc_handler) ? 0 : -1;
+ SVC_HANDLER *svc_handler =
+ this->close ();
+
+ if (svc_handler == 0)
+ return 0;
// Close Svc_Handler.
- if (svc_handler != 0)
- svc_handler->close (0);
+ svc_handler->close (0);
- return retval;
+ return 0;
}
template <class SVC_HANDLER> int
@@ -156,15 +202,16 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_output (ACE_HANDLE handle)
// Called when a connection is establishment asynchronous.
ACE_TRACE ("ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_output");
- // Grab the connector ref before smashing ourselves in close().
- ACE_Connector_Base<SVC_HANDLER> &connector = this->connector_;
- SVC_HANDLER *svc_handler = 0;
- int retval = this->close (svc_handler) ? 0 : -1;
+ SVC_HANDLER *svc_handler =
+ this->close ();
+
+ if (svc_handler == 0)
+ return 0;
- if (svc_handler != 0)
- connector.initialize_svc_handler (handle, svc_handler);
+ this->connector_.initialize_svc_handler (handle,
+ svc_handler);
- return retval;
+ return 0;
}
template <class SVC_HANDLER> int
@@ -173,6 +220,7 @@ ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_exception (ACE_HANDLE h)
// On Win32, the except mask must also be set for asynchronous
// connects.
ACE_TRACE ("ACE_NonBlocking_Connect_Handler<SVC_HANDLER>::handle_exception");
+
return this->handle_output (h);
}
@@ -369,7 +417,7 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::connect_i
if (this->make_svc_handler (sh) == -1)
return -1;
- ACE_Time_Value *timeout = 0;
+ ACE_Time_Value *timeout;
int use_reactor = synch_options[ACE_Synch_Options::USE_REACTOR];
if (use_reactor)
@@ -481,7 +529,6 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::cancel (SVC_HANDLER *sh)
if (handler == 0)
return -1;
- // find_handler() increments handler's refcount; ensure we decrement it.
ACE_Event_Handler_var safe_handler (handler);
NBCH *nbch =
@@ -536,24 +583,25 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::nonblocking_connect
goto reactor_registration_failure;
// Add handle to non-blocking handle set.
- this->non_blocking_handles ().insert (handle);
+ this->non_blocking_handles ().set_bit (handle);
// If we're starting connection under timer control then we need to
// schedule a timeout with the ACE_Reactor.
tv = const_cast<ACE_Time_Value *> (synch_options.time_value ());
- if (tv != 0)
- {
- timer_id =
- this->reactor ()->schedule_timer (nbch,
- synch_options.arg (),
- *tv);
- if (timer_id == -1)
- goto timer_registration_failure;
-
- // Remember timer id.
- nbch->timer_id (timer_id);
- }
+ if (tv == 0)
+ return 0;
+
+ timer_id =
+ this->reactor ()->schedule_timer (nbch,
+ synch_options.arg (),
+ *tv);
+ if (timer_id == -1)
+ goto timer_registration_failure;
+
+ // Remember timer id.
+ nbch->timer_id (timer_id);
+ // Everything was successful.
return 0;
// Undo previous actions using the ol' "goto label and fallthru"
@@ -564,7 +612,7 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::nonblocking_connect
this->reactor ()->remove_handler (handle, mask);
// Remove handle from the set of non-blocking handles.
- this->non_blocking_handles ().remove (handle);
+ this->non_blocking_handles ().clr_bit (handle);
/* FALLTHRU */
@@ -633,7 +681,7 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::reactor (void) const
return this->reactor_;
}
-template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ACE_Unbounded_Set<ACE_HANDLE> &
+template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ACE_Handle_Set &
ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::non_blocking_handles (void)
{
return this->non_blocking_handles_;
@@ -643,7 +691,7 @@ template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> int
ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::close (void)
{
// If there are no non-blocking handle pending, return immediately.
- if (this->non_blocking_handles ().size () == 0)
+ if (this->non_blocking_handles ().num_set () == 0)
return 0;
// Exclusive access to the Reactor.
@@ -652,41 +700,28 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::close (void)
// Go through all the non-blocking handles. It is necessary to
// create a new iterator each time because we remove from the handle
// set when we cancel the Svc_Handler.
- ACE_HANDLE *handle = 0;
while (1)
{
- ACE_Unbounded_Set_Iterator<ACE_HANDLE>
- iterator (this->non_blocking_handles ());
- if (!iterator.next (handle))
+ ACE_Handle_Set_Iterator iterator (this->non_blocking_handles ());
+ ACE_HANDLE handle = iterator ();
+
+ if (handle == ACE_INVALID_HANDLE)
break;
ACE_Event_Handler *handler =
- this->reactor ()->find_handler (*handle);
- if (handler == 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%t: Connector::close h %d, no handler\n"),
- *handle));
- // Remove handle from the set of non-blocking handles.
- this->non_blocking_handles ().remove (*handle);
- continue;
- }
+ this->reactor ()->find_handler (handle);
+
+ ACE_ASSERT (handler != 0);
- // find_handler() incremented handler's refcount; ensure it's decremented
ACE_Event_Handler_var safe_handler (handler);
- NBCH *nbch = dynamic_cast<NBCH *> (handler);
- if (nbch == 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%t: Connector::close h %d handler %@ ")
- ACE_LIB_TEXT ("not a legit handler\n"),
- *handle,
- handler));
- // Remove handle from the set of non-blocking handles.
- this->non_blocking_handles ().remove (*handle);
- continue;
- }
- SVC_HANDLER *svc_handler = nbch->svc_handler ();
+
+ NBCH *nbch =
+ dynamic_cast<NBCH *> (handler);
+
+ ACE_ASSERT (nbch != 0);
+
+ SVC_HANDLER *svc_handler =
+ nbch->svc_handler ();
// Cancel the non-blocking connection.
this->cancel (svc_handler);
@@ -959,6 +994,4 @@ ACE_Strategy_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::concurrency_strategy
return this->concurrency_strategy_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_CONNECTOR_C */
diff --git a/ace/Connector.h b/ace/Connector.h
index 516fc8a775d..c82593dcb69 100644
--- a/ace/Connector.h
+++ b/ace/Connector.h
@@ -23,9 +23,7 @@
#include "ace/Strategies_T.h"
#include "ace/Synch_Options.h"
-#include "ace/Unbounded_Set.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/Handle_Set.h"
/**
* @class ACE_Connector_Base
@@ -49,7 +47,7 @@ public:
/// Return the handle set representing the non-blocking connects in
/// progress.
- virtual ACE_Unbounded_Set<ACE_HANDLE> &non_blocking_handles (void) = 0;
+ virtual ACE_Handle_Set &non_blocking_handles (void) = 0;
};
/**
@@ -67,13 +65,17 @@ public:
SVC_HANDLER *,
long timer_id);
+ /// Close up and return underlying SVC_HANDLER *.
+ /** @deprecated: This should be deprecated sooner or later. The next
+ * method should be used.
+ */
+ SVC_HANDLER *close (void);
+
/// Close up and return underlying SVC_HANDLER through @c sh.
/**
* If the return value is true the close was performed succesfully,
- * implying that this object was removed from the reactor and thereby
- * (by means of reference counting decremented to 0) deleted.
- * If the return value is false, the close was not successful.
- * The @c sh does not have any connection to the return
+ * and if the return value is false, the close was not
+ * successfull. The @c sh does not have any connection to the return
* value. The argument will return a valid svc_handler object if a
* valid one exists within the object. Returning a valid svc_handler
* pointer also invalidates the svc_handler contained in this
@@ -172,7 +174,7 @@ public:
/**
* Initialize a connector. @a flags indicates how <SVC_HANDLER>'s
* should be initialized prior to being activated. Right now, the
- * only flag that is processed is ACE_NONBLOCK, which enabled
+ * only flag that is processed is <ACE_NONBLOCK>, which enabled
* non-blocking I/O on the <SVC_HANDLER> when it is opened.
*/
ACE_Connector (ACE_Reactor *r = ACE_Reactor::instance (),
@@ -181,7 +183,7 @@ public:
/**
* Initialize a connector. @a flags indicates how <SVC_HANDLER>'s
* should be initialized prior to being activated. Right now, the
- * only flag that is processed is ACE_NONBLOCK, which enabled
+ * only flag that is processed is <ACE_NONBLOCK>, which enabled
* non-blocking I/O on the <SVC_HANDLER> when it is opened.
*/
virtual int open (ACE_Reactor *r = ACE_Reactor::instance (),
@@ -197,7 +199,7 @@ public:
* using <synch_options>. If the caller wants to designate the
* selected <local_addr> they can (and can also insist that the
* <local_addr> be reused by passing a value <reuse_addr> ==
- * 1). @a flags and <perms> can be used to pass any flags that are
+ * 1). <flags> and <perms> can be used to pass any flags that are
* needed to perform specific operations such as opening a file
* within connect with certain permissions. If the connection fails
* the <close> hook on the <svc_handler> will be called
@@ -345,7 +347,7 @@ protected:
/// Return the handle set representing the non-blocking connects in
/// progress.
- ACE_Unbounded_Set<ACE_HANDLE> &non_blocking_handles (void);
+ ACE_Handle_Set &non_blocking_handles (void);
// = Dynamic linking hooks.
/// Default version does no work and returns -1. Must be overloaded
@@ -374,7 +376,7 @@ private:
/**
* Flags that indicate how <SVC_HANDLER>'s should be initialized
* prior to being activated. Right now, the only flag that is
- * processed is ACE_NONBLOCK, which enabled non-blocking I/O on
+ * processed is <ACE_NONBLOCK>, which enabled non-blocking I/O on
* the <SVC_HANDLER> when it is opened.
*/
int flags_;
@@ -383,7 +385,7 @@ private:
ACE_Reactor *reactor_;
/// Handle set representing the non-blocking connects in progress.
- ACE_Unbounded_Set<ACE_HANDLE> non_blocking_handles_;
+ ACE_Handle_Set non_blocking_handles_;
};
@@ -428,9 +430,9 @@ public:
SUPER;
/**
- * Initialize a connector. @a flags indicates how <SVC_HANDLER>'s
+ * Initialize a connector. <flags> indicates how <SVC_HANDLER>'s
* should be initialized prior to being activated. Right now, the
- * only flag that is processed is ACE_NONBLOCK, which enabled
+ * only flag that is processed is <ACE_NONBLOCK>, which enabled
* non-blocking I/O on the <SVC_HANDLER> when it is opened.
*/
ACE_Strategy_Connector (ACE_Reactor *r = ACE_Reactor::instance (),
@@ -440,9 +442,9 @@ public:
int flags = 0);
/**
- * Initialize a connector. @a flags indicates how <SVC_HANDLER>'s
+ * Initialize a connector. <flags> indicates how <SVC_HANDLER>'s
* should be initialized prior to being activated. Right now, the
- * only flag that is processed is ACE_NONBLOCK, which enabled
+ * only flag that is processed is <ACE_NONBLOCK>, which enabled
* non-blocking I/O on the <SVC_HANDLER> when it is opened.
* Default strategies would be created and used.
*/
@@ -450,9 +452,9 @@ public:
int flags);
/**
- * Initialize a connector. @a flags indicates how <SVC_HANDLER>'s
+ * Initialize a connector. <flags> indicates how <SVC_HANDLER>'s
* should be initialized prior to being activated. Right now, the
- * only flag that is processed is ACE_NONBLOCK, which enabled
+ * only flag that is processed is <ACE_NONBLOCK>, which enabled
* non-blocking I/O on the <SVC_HANDLER> when it is opened.
*/
virtual int open (ACE_Reactor *r = ACE_Reactor::instance (),
@@ -558,8 +560,6 @@ protected:
int delete_concurrency_strategy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Connector.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Container_Instantiations.cpp b/ace/Container_Instantiations.cpp
index 031a262808d..9b45dacf6e4 100644
--- a/ace/Container_Instantiations.cpp
+++ b/ace/Container_Instantiations.cpp
@@ -1,9 +1,6 @@
// $Id$
#include "ace/CDR_Base.h"
#include "ace/Unbounded_Queue.h"
-#include "ace/Unbounded_Set.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Instantiations of templates with basic data types that can be used
// across ACE+TAO.
@@ -12,17 +9,11 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template class ACE_Node<ACE_INT32>;
template class ACE_Unbounded_Queue<ACE_INT32>;
template class ACE_Unbounded_Queue_Iterator<ACE_INT32>;
-template class ACE_Unbounded_Set<ACE_HANDLE>;
-template class ACE_Unbounded_Set_Iterator<ACE_HANDLE>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Node<ACE_INT32>
-#pragma instantiate ACE_Unbounded_Queue<ACE_INT32>
-#pragma instantiate ACE_Unbounded_Queue_Iterator<ACE_INT32>
-#pragma instantiate ACE_Unbounded_Set<ACE_HANDLE>
-#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_HANDLE>
+#pragma instantiate ACE_Node<ACE_INT32>;
+#pragma instantiate ACE_Unbounded_Queue<ACE_INT32>;
+#pragma instantiate ACE_Unbounded_Queue_Iterator<ACE_INT32>;
#endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Containers.cpp b/ace/Containers.cpp
index e9c497f92ff..63faaef39bd 100644
--- a/ace/Containers.cpp
+++ b/ace/Containers.cpp
@@ -10,8 +10,6 @@ ACE_RCSID (ace,
#include "ace/Containers.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Double_Linked_List<ACE_DLList_Node>;
template class ACE_Double_Linked_List_Iterator_Base<ACE_DLList_Node>;
@@ -24,4 +22,3 @@ template class ACE_Double_Linked_List_Reverse_Iterator<ACE_DLList_Node>;
#pragma instantiate ACE_Double_Linked_List_Reverse_Iterator<ACE_DLList_Node>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Containers.h b/ace/Containers.h
index f8e4cda2d02..b5356ecdf3e 100644
--- a/ace/Containers.h
+++ b/ace/Containers.h
@@ -21,12 +21,15 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+template <class T>
+class ACE_Double_Linked_List;
-template <class T> class ACE_Double_Linked_List;
-template <class T> class ACE_Double_Linked_List_Iterator_Base;
-template <class T> class ACE_Double_Linked_List_Iterator;
-template <class T> class ACE_Double_Linked_List_Reverse_Iterator;
+template <class T>
+class ACE_Double_Linked_List_Iterator_Base;
+template <class T>
+class ACE_Double_Linked_List_Iterator;
+template <class T>
+class ACE_Double_Linked_List_Reverse_Iterator;
/**
* @class ACE_DLList_Node
@@ -45,6 +48,7 @@ public:
ACE_DLList_Node (void *&i,
ACE_DLList_Node *n = 0,
ACE_DLList_Node *p = 0);
+ ~ACE_DLList_Node (void);
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -58,8 +62,6 @@ protected:
ACE_DLList_Node (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Containers.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Containers.inl b/ace/Containers.inl
index ebc0b96bf7e..1312f2a47a6 100644
--- a/ace/Containers.inl
+++ b/ace/Containers.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_DLList_Node::ACE_DLList_Node (void)
: item_ (0),
@@ -22,4 +19,7 @@ ACE_DLList_Node::ACE_DLList_Node (void *&i,
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+ACE_INLINE
+ACE_DLList_Node::~ACE_DLList_Node (void)
+{
+}
diff --git a/ace/Containers_T.cpp b/ace/Containers_T.cpp
index 80d9ca7f206..1b7ecfca264 100644
--- a/ace/Containers_T.cpp
+++ b/ace/Containers_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_CONTAINERS_T_CPP
-#define ACE_CONTAINERS_T_CPP
+#ifndef ACE_CONTAINERS_T_C
+#define ACE_CONTAINERS_T_C
#include "ace/Log_Msg.h"
#include "ace/Malloc_Base.h"
@@ -17,7 +17,9 @@
#include "ace/Containers_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ Containers_T,
+ "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Bounded_Stack)
@@ -1932,6 +1934,5 @@ ACE_Array<T>::operator== (const ACE_Array<T> &s) const
// ****************************************************************
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_CONTAINERS_T_CPP */
+#endif /* ACE_CONTAINERS_T_C */
diff --git a/ace/Containers_T.h b/ace/Containers_T.h
index e34a0bf781e..fdbf7d6bec1 100644
--- a/ace/Containers_T.h
+++ b/ace/Containers_T.h
@@ -36,8 +36,6 @@
// Backwards compatibility, please include "ace/Unbounded_Queue.h" directly.
#include "ace/Unbounded_Queue.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Allocator;
@@ -604,9 +602,8 @@ protected:
// = Iteration methods.
/**
* Move to the first element of the list. Returns 0 if the list is
- * empty, else 1.
- * @note the head of the ACE_DLList is actually a null entry, so the
- * first element is actually the 2n'd entry
+ * empty, else 1. Note: the head of the ACE_DLList is actually a
+ * null entry, so the first element is actually the 2n'd entry
*/
int go_head (void);
@@ -1064,6 +1061,7 @@ public:
/// Delegates to ACE_Double_Linked_List.
int remove (ACE_DLList_Node *n);
+
// = Initialization and termination methods.
/// Delegates to ACE_Double_Linked_List.
@@ -1232,23 +1230,23 @@ public:
protected:
// = Initialization method.
ACE_Fixed_Set_Iterator_Base (ACE_Fixed_Set<T, ACE_SIZE> &s);
-
+
/// Set we are iterating over.
ACE_Fixed_Set<T, ACE_SIZE> &s_;
/// How far we've advanced over the set.
ssize_t next_;
-
+
/// The number of non free items that the iterator had pointed at.
size_t iterated_items_;
-
+
/// Dump the state of an object.
void dump_i (void) const;
-
+
/// Pass back the {next_item} that hasn't been seen in the Set.
/// Returns 0 when all items have been seen, else 1.
int next_i (T *&next_item);
-};
+};
/**
* @class ACE_Fixed_Set_Iterator
@@ -1273,12 +1271,12 @@ public:
/// Dump the state of an object.
void dump (void) const;
-
+
/// Remove the item where the itearetor is located at.
/// Returns 1 if it removes a item, else 0.
/// Pass back the removed {item}.
int remove (T *&item);
-
+
/// STL-like iterator dereference operator: returns a reference
/// to the node underneath the iterator.
T & operator* (void);
@@ -1309,7 +1307,7 @@ public:
/// Dump the state of an object.
void dump (void) const;
-
+
/// STL-like iterator dereference operator: returns a reference
/// to the node underneath the iterator.
const T & operator* (void) const ;
@@ -2007,8 +2005,6 @@ public:
bool operator!= (const ACE_Array<T> &s) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Containers_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Containers_T.inl b/ace/Containers_T.inl
index 425d6e167e8..885345ba9a8 100644
--- a/ace/Containers_T.inl
+++ b/ace/Containers_T.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE int
ACE_Bounded_Stack<T>::is_empty (void) const
{
@@ -350,7 +347,7 @@ ACE_DLList<T>::remove (ACE_DLList_Node *n)
}
template <class T> ACE_INLINE
-ACE_DLList<T>::ACE_DLList (ACE_Allocator *alloc)
+ACE_DLList<T>::ACE_DLList (ACE_Allocator *alloc )
: ACE_DLList_Base (alloc)
{
}
@@ -475,5 +472,3 @@ ACE_DLList_Reverse_Iterator<T>::dump (void) const
ACE_Double_Linked_List_Reverse_Iterator <ACE_DLList_Node>::dump ();
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Copy_Disabled.cpp b/ace/Copy_Disabled.cpp
index d2fb124a182..4d2ffb94db7 100644
--- a/ace/Copy_Disabled.cpp
+++ b/ace/Copy_Disabled.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file Copy_Disabled.cpp
*
@@ -14,10 +15,7 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Copy_Disabled::ACE_Copy_Disabled (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Copy_Disabled.h b/ace/Copy_Disabled.h
index 512b96c9dcf..583bc683062 100644
--- a/ace/Copy_Disabled.h
+++ b/ace/Copy_Disabled.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Copy_Disabled
*
@@ -49,7 +47,6 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_Copy_Disabled
{
public:
-
/// Default constructor
ACE_Copy_Disabled (void);
@@ -58,8 +55,6 @@ private:
ACE_Copy_Disabled &operator= (const ACE_Copy_Disabled &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_COPY_DISABLED_H */
diff --git a/ace/Countdown_Time.cpp b/ace/Countdown_Time.cpp
index fb03f0465e0..b8556633cb1 100644
--- a/ace/Countdown_Time.cpp
+++ b/ace/Countdown_Time.cpp
@@ -5,8 +5,6 @@ ACE_RCSID (ace,
Countdown_Time,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Countdown_Time::ACE_Countdown_Time (ACE_Time_Value *max_wait_time)
: max_wait_time_ (max_wait_time),
stopped_ (0)
@@ -62,5 +60,3 @@ ACE_Countdown_Time::update (void)
{
return this->stop () == 0 && this->start ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Countdown_Time.h b/ace/Countdown_Time.h
index 248e2d19951..374f8d00140 100644
--- a/ace/Countdown_Time.h
+++ b/ace/Countdown_Time.h
@@ -23,8 +23,6 @@
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Countdown_Time
*
@@ -73,8 +71,6 @@ private:
ACE_Countdown_Time &operator= (const ACE_Countdown_Time &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_COUNTDOWN_TIME_H */
diff --git a/ace/DEV.cpp b/ace/DEV.cpp
index 1ae27fc558e..932d7644ad5 100644
--- a/ace/DEV.cpp
+++ b/ace/DEV.cpp
@@ -1,5 +1,7 @@
+// DEV.cpp
// $Id$
+
#include "ace/DEV.h"
#include "ace/OS_NS_unistd.h"
@@ -10,8 +12,6 @@
ACE_RCSID(ace, DEV, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_DEV)
void
@@ -39,5 +39,3 @@ ACE_DEV::close (void)
this->set_handle (ACE_INVALID_HANDLE);
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV.h b/ace/DEV.h
index 8b0c585ddf7..69a92aaad1b 100644
--- a/ace/DEV.h
+++ b/ace/DEV.h
@@ -36,8 +36,6 @@
#define ACE_DEV_STREAM ACE_DEV_IO, ACE_DEV_Addr
#endif /* ACE_TEMPLATE_TYPEDEFS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_DEV
*
@@ -68,8 +66,6 @@ protected:
ACE_DEV (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/DEV.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/DEV.inl b/ace/DEV.inl
index e00f4fc705e..91246710423 100644
--- a/ace/DEV.inl
+++ b/ace/DEV.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_DEV::disable (int signum) const
{
@@ -14,5 +11,3 @@ ACE_DEV::disable (int signum) const
return ACE_IO_SAP::disable (signum) ;
#endif /* ACE_WIN32 */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV_Addr.cpp b/ace/DEV_Addr.cpp
index f7e5503b1eb..16b7536e0b0 100644
--- a/ace/DEV_Addr.cpp
+++ b/ace/DEV_Addr.cpp
@@ -1,3 +1,4 @@
+// DEV_Addr.cpp
// $Id$
#include "ace/DEV_Addr.h"
@@ -12,8 +13,6 @@ ACE_RCSID (ace,
DEV_Addr,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_DEV_Addr)
// Transform the current address into string format.
@@ -57,7 +56,7 @@ ACE_DEV_Addr::ACE_DEV_Addr (void)
ACE_TRACE ("ACE_DEV_Addr::ACE_DEV_Addr");
(void) ACE_OS::memset ((void *) &this->devname_,
- 0, sizeof this->devname_);
+ 0, sizeof this->devname_);
}
int
@@ -105,4 +104,3 @@ ACE_DEV_Addr::operator= (const ACE_DEV_Addr &sa)
return *this;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV_Addr.h b/ace/DEV_Addr.h
index 0646260c8f9..eba31734c2b 100644
--- a/ace/DEV_Addr.h
+++ b/ace/DEV_Addr.h
@@ -23,8 +23,6 @@
#include "ace/os_include/os_dirent.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_DEV_Addr
*
@@ -79,8 +77,6 @@ private:
ACE_TCHAR devname_[DEVNAME_LENGTH];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/DEV_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/DEV_Addr.inl b/ace/DEV_Addr.inl
index 820b961d1d0..059c81111a8 100644
--- a/ace/DEV_Addr.inl
+++ b/ace/DEV_Addr.inl
@@ -6,8 +6,6 @@
#include "ace/Global_Macros.h"
#include "ace/os_include/sys/os_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
ACE_DEV_Addr::set (const ACE_TCHAR *devname)
{
@@ -35,7 +33,7 @@ ACE_DEV_Addr::operator != (const ACE_DEV_Addr &sap) const
{
ACE_TRACE ("ACE_DEV_Addr::operator !=");
- return !((*this) == sap); // This is lazy, of course... ;-).
+ return !((*this) == sap); // This is lazy, of course... ;-).
}
// Return the path name used for the rendezvous point.
@@ -47,5 +45,3 @@ ACE_DEV_Addr::get_path_name (void) const
return this->devname_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV_Connector.cpp b/ace/DEV_Connector.cpp
index a1fef807057..5c577754481 100644
--- a/ace/DEV_Connector.cpp
+++ b/ace/DEV_Connector.cpp
@@ -1,3 +1,4 @@
+// DEV_Connector.cpp
// $Id$
#include "ace/DEV_Connector.h"
@@ -14,8 +15,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_DEV_Connector)
void
@@ -49,5 +48,3 @@ ACE_DEV_Connector::connect (ACE_DEV_IO &new_io,
new_io.addr_ = remote_sap; // class copy.
return handle == ACE_INVALID_HANDLE ? -1 : 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV_Connector.h b/ace/DEV_Connector.h
index 2d57f836b24..858cd5d0369 100644
--- a/ace/DEV_Connector.h
+++ b/ace/DEV_Connector.h
@@ -22,9 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_DEV_Connector
*
@@ -100,8 +97,6 @@ public:
typedef ACE_DEV_IO PEER_STREAM;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/DEV_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/DEV_Connector.inl b/ace/DEV_Connector.inl
index 13ceeba1d75..798639197b4 100644
--- a/ace/DEV_Connector.inl
+++ b/ace/DEV_Connector.inl
@@ -1,26 +1,23 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Creates a Local ACE_DEV.
ACE_INLINE
ACE_DEV_Connector::ACE_DEV_Connector (ACE_DEV_IO &new_io,
- const ACE_DEV_Addr &remote_sap,
- ACE_Time_Value *timeout,
- const ACE_Addr &local_sap,
- int reuse_addr,
- int flags,
- int perms)
+ const ACE_DEV_Addr &remote_sap,
+ ACE_Time_Value *timeout,
+ const ACE_Addr &local_sap,
+ int reuse_addr,
+ int flags,
+ int perms)
{
ACE_TRACE ("ACE_DEV_Connector::ACE_DEV_Connector");
if (this->connect (new_io, remote_sap, timeout, local_sap,
- reuse_addr, flags, perms) == ACE_IO_SAP::INVALID_HANDLE
+ reuse_addr, flags, perms) == ACE_IO_SAP::INVALID_HANDLE
&& timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("address %s, %p\n"),
- remote_sap.get_path_name (), ACE_LIB_TEXT ("ACE_DEV_IO")));
+ remote_sap.get_path_name (), ACE_LIB_TEXT ("ACE_DEV_IO")));
}
ACE_INLINE int
@@ -31,4 +28,3 @@ ACE_DEV_Connector::reset_new_handle (ACE_HANDLE handle)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV_IO.cpp b/ace/DEV_IO.cpp
index f5367d1d5cd..fb025287df0 100644
--- a/ace/DEV_IO.cpp
+++ b/ace/DEV_IO.cpp
@@ -1,3 +1,4 @@
+// DEV_IO.cpp
// $Id$
#include "ace/DEV_IO.h"
@@ -9,9 +10,6 @@
ACE_RCSID(ace, DEV_IO, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_DEV_IO)
// Return the local endpoint address.
@@ -127,5 +125,3 @@ ACE_DEV_IO::recv (size_t n, ...) const
va_end (argp);
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DEV_IO.h b/ace/DEV_IO.h
index fd2a0e2c5b8..69e584a401b 100644
--- a/ace/DEV_IO.h
+++ b/ace/DEV_IO.h
@@ -28,8 +28,6 @@
#include "ace/os_include/os_stdio.h"
#include "ace/os_include/sys/os_uio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -175,8 +173,6 @@ private:
ACE_DEV_Addr addr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/DEV_IO.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/DEV_IO.inl b/ace/DEV_IO.inl
index cb9392e2bf3..3724c7cc492 100644
--- a/ace/DEV_IO.inl
+++ b/ace/DEV_IO.inl
@@ -1,7 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// DEV_IO.i
+
#include "ace/OS_NS_sys_uio.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_Memory.h"
@@ -11,8 +12,6 @@
// Send exactly N bytes from BUF to this device. Keeping trying until
// this many bytes are sent.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_DEV_IO::send_n (const void *buf, size_t n) const
{
@@ -24,7 +23,7 @@ ACE_DEV_IO::send_n (const void *buf, size_t n) const
// this many bytes are received.
ACE_INLINE ssize_t
-ACE_DEV_IO::recv_n (void *buf,
+ACE_DEV_IO::recv_n (void *buf,
size_t n,
const ACE_Time_Value *timeout,
size_t *bytes_transferred) const
@@ -122,5 +121,3 @@ ACE_DEV_IO::send (const ACE_Str_Buf *cntl, const ACE_Str_Buf *data, int flags) c
return ACE_OS::putmsg (this->get_handle (), (strbuf *) cntl, (strbuf *) data, flags);
}
#endif /* ACE_HAS_STREAM_PIPES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DLL.cpp b/ace/DLL.cpp
index 00363d51bbf..7a8df6573a7 100644
--- a/ace/DLL.cpp
+++ b/ace/DLL.cpp
@@ -11,8 +11,6 @@
ACE_RCSID(ace, DLL, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructor. Also, by default, the object will be closed
// before it is destroyed.
@@ -136,7 +134,7 @@ ACE_DLL::open_i (const ACE_TCHAR *dll_filename,
if (!this->dll_name_)
this->dll_name_ = ACE::strnew (dll_filename);
-
+
this->open_mode_ = open_mode;
this->close_handle_on_destruction_ = close_handle_on_destruction;
@@ -240,5 +238,3 @@ ACE_DLL::set_handle (ACE_SHLIB_HANDLE handle,
return this->open_i (temp, 1, close_handle_on_destruction, handle);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DLL.h b/ace/DLL.h
index 022521ae6a7..3554b558542 100644
--- a/ace/DLL.h
+++ b/ace/DLL.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/Global_Macros.h"
#include "ace/os_include/os_dlfcn.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_DLL_Handle;
/**
@@ -34,7 +32,7 @@ class ACE_DLL_Handle;
* @brief Provides an abstract interface for handling various DLL
* operations.
*
- * This class is a wrapper over the various methods for utilizing
+ * This class is an wrapper over the various methods for utilizing
* a dynamically linked library (DLL), which is called a shared
* library on some platforms. Operations open(), close(), and
* symbol() have been implemented to help opening/closing and
@@ -45,36 +43,18 @@ class ACE_Export ACE_DLL
public:
// = Initialization and termination methods.
- /**
- * Default constructor. By default, the close() operation on the
- * object will be invoked before it is destroyed.
- * @param close_handle_on_destruction Indicates whether or not the
- * close() method will be called to close an open DLL when this
- * object is destroyed. By default, close() will be called.
- * Set this parameter to 0 for situations where the DLL's lifetime
- * is controlled in a scope other than that of this ACE_DLL object.
- * For example, termination by ACE_DLL_Manager via ACE::fini().
- */
+ /// Default constructor. By default, the close() operation on the
+ /// object will be invoked before it is destroyed.
explicit ACE_DLL (int close_handle_on_destruction = 1);
/**
- * This constructor performs the actions of open() during construction.
- * @param dll_name The name or path of the DLL to load.
- * @param open_mode Flags to alter the actions taken when loading the DLL.
- * The possible values are:
- * @li @c RTLD_LAZY (this the default): loads identifier symbols but
- * not the symbols for functions, which are loaded dynamically
- * on-demand.
- * @li @c RTLD_NOW: performs all necessary relocations when
- * @a dll_name is first loaded
- * @li RTLD_GLOBAL: makes symbols available for relocation
- * processing of any other DLLs.
- * @param close_handle_on_destruction Indicates whether or not the
- * close() method will be called to close an open DLL when this
- * object is destroyed. By default, close() will be called.
- * Set this parameter to 0 for situations where the DLL's lifetime
- * is controlled in a scope other than that of this ACE_DLL object.
- * For example, termination by ACE_DLL_Manager via ACE::fini().
+ * This constructor opens and dynamically links @a dll_name. The
+ * default mode is <RTLD_LAZY>, which loads identifier symbols but
+ * not the symbols for functions, which are loaded dynamically
+ * on-demand. Other supported modes include: <RTLD_NOW>, which
+ * performs all necessary relocations when @a dll_name is first
+ * loaded and <RTLD_GLOBAL>, which makes symbols available for
+ * relocation processing of any other DLLs.
*/
explicit ACE_DLL (const ACE_TCHAR *dll_name,
int open_mode = ACE_DEFAULT_SHLIB_MODE,
@@ -84,23 +64,16 @@ public:
ACE_DLL (const ACE_DLL &);
/**
- * This method opens and dynamically links a specified DLL.
- * @param dll_name The name or path of the DLL to load.
- * @param open_mode Flags to alter the actions taken when loading the DLL.
- * The possible values are:
- * @li @c RTLD_LAZY (this the default): loads identifier symbols but
- * not the symbols for functions, which are loaded dynamically
- * on-demand.
- * @li @c RTLD_NOW: performs all necessary relocations when
- * @a dll_name is first loaded
- * @li RTLD_GLOBAL: makes symbols available for relocation
- * processing of any other DLLs.
- * @param close_handle_on_destruction Indicates whether or not the
- * close() method will be called to close an open DLL when this
- * object is destroyed. By default, close() will be called.
- * Set this parameter to 0 for situations where the DLL's lifetime
- * is controlled in a scope other than that of this ACE_DLL object.
- * For example, termination by ACE_DLL_Manager via ACE::fini().
+ * This method opens and dynamically links @a dll_name. The default
+ * mode is <RTLD_LAZY>, which loads identifier symbols but not the
+ * symbols for functions, which are loaded dynamically on-demand.
+ * Other supported modes include: <RTLD_NOW>, which performs all
+ * necessary relocations when @a dll_name>is first loaded and
+ * <RTLD_GLOBAL>, which makes symbols available for relocation
+ * processing of any other DLLs.
+ * @param dll_name The name of the dll.
+ * @param open_mode How the dll is opened.
+ * @param close_handle_on_destruction Close the handle when object is destroyed.
* @retval -1 On failure
* @retval 0 On success.
*/
@@ -113,21 +86,16 @@ public:
/**
* Called when the DLL object is destroyed -- invokes close() if the
- * @a close_handle_on_destruction flag was set to non-zero in the
- * constructor or open() method.
+ * <close_handle_on_destruction> flag is set in the constructor or open()
+ * method.
*/
~ACE_DLL (void);
- /**
- * Look up a named symbol in the DLL. DLL must be successfully opened
- * before calling symbol().
- * @param symbol_name The symbol name to look up.
- * @param ignore_errors If set to 1, allows you to probe a dll without
- * generating error messages in the log. Handy for determining
- * the capabilities of a library.
- * @return Returns the value of @a symbol_name if it is a valid symbol
- * in the DLL. Otherwise, returns 0.
- */
+ /// If @a symbol_name is in the symbol table of the DLL a pointer to
+ /// the @a symbol_name is returned. Otherwise, returns 0. Setting
+ /// ignore_errors = 1 allows you to probe a dll without generating
+ /// error messages in the log. Handy for determining the capabilities
+ /// of a library.
void *symbol (const ACE_TCHAR *symbol_name, int ignore_errors = 0);
/// Returns a pointer to a string explaining that an error occured. You
@@ -145,7 +113,7 @@ public:
/// Set the handle for the DLL object. By default, the close()
//operation on / the object will be invoked before it is destroyed.
- int set_handle (ACE_SHLIB_HANDLE handle,
+ int set_handle (ACE_SHLIB_HANDLE handle,
int close_handle_on_destruction = 1);
private:
@@ -156,11 +124,6 @@ private:
ACE_SHLIB_HANDLE handle = 0);
- // Disallow assignment since we don't handle it.
- void operator= (const ACE_DLL &);
-
-private:
-
/// Open mode.
int open_mode_;
@@ -178,9 +141,9 @@ private:
/// Flag to record if the last operation had an error.
int error_;
+ // = Disallow copying and assignment since we don't handle these.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_DLL &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_DLL_H */
diff --git a/ace/DLL_Manager.cpp b/ace/DLL_Manager.cpp
index b30e30d46d5..cbbb10545fe 100644
--- a/ace/DLL_Manager.cpp
+++ b/ace/DLL_Manager.cpp
@@ -14,14 +14,11 @@
#include "ace/OS_NS_dlfcn.h"
#include "ace/OS_NS_string.h"
-ACE_RCSID (ace,
- DLL_Manager,
- "DLL_Manager.cpp,v 4.23 2003/11/05 23:30:46 shuston Exp")
+ACE_RCSID (ace, DLL_Manager,
+ "DLL_Manager.cpp,v 4.23 2003/11/05 23:30:46 shuston Exp")
/******************************************************************/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
sig_atomic_t ACE_DLL_Handle::open_called_ = 0;
ACE_DLL_Handle::ACE_DLL_Handle (void)
@@ -706,5 +703,3 @@ template class ACE_Auto_Basic_Ptr<ACE_TString>;
# pragma instantiate ACE_Auto_Basic_Ptr<ACE_TString>
# endif /* ACE_LACKS_AUTO_PTR */
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/DLL_Manager.h b/ace/DLL_Manager.h
index 2bde7161251..856fbe4e861 100644
--- a/ace/DLL_Manager.h
+++ b/ace/DLL_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -32,9 +32,6 @@
#define ACE_DEFAULT_DLL_MANAGER_SIZE 1024
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_DLL_Handle
*
@@ -51,12 +48,12 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* extracting symbol information from a DLL, respectively.
*
* Most of this class came from the original ACE_DLL class.
- * ACE_DLL is now just an interface that passed all it's calls
- * either directly or via ACE_DLL_Manager to this class for
- * execution.
+ * ACE_DLL is now just an interface that passed all it's calls
+ * either directly or via ACE_DLL_Manager to this class for
+ * execution.
*
*/
-class ACE_DLL_Handle
+class ACE_Export ACE_DLL_Handle
{
public:
@@ -70,42 +67,41 @@ public:
const ACE_TCHAR *dll_name () const;
/**
- * This method opens and dynamically links @a dll_name. The default
+ * This method opens and dynamically links <dll_name>. The default
* mode is <RTLD_LAZY>, which loads identifier symbols but not the
* symbols for functions, which are loaded dynamically on-demand.
* Other supported modes include: <RTLD_NOW>, which performs all
- * necessary relocations when @a dll_name is first loaded and
+ * necessary relocations when <dll_name> is first loaded and
* <RTLD_GLOBAL>, which makes symbols available for relocation
* processing of any other DLLs. Returns -1 on failure and 0 on
* success.
*/
- int open (const ACE_TCHAR *dll_name,
+ int open (const ACE_TCHAR *dll_name,
int open_mode,
ACE_SHLIB_HANDLE handle);
/// Call to close the DLL object. If unload = 0, it only decrements
- /// the refcount, but if unload = 1, then it will actually unload
+ /// the refcount, but if unload = 1, then it will actually unload
/// the library when the refcount == 0;
int close (int unload = 0);
/// Return the current refcount.
sig_atomic_t refcount (void) const;
- /// If @a symbol_name is in the symbol table of the DLL a pointer to
- /// the @a symbol_name is returned. Otherwise, returns 0. Set the
+ /// If <symbol_name> is in the symbol table of the DLL a pointer to
+ /// the <symbol_name> is returned. Otherwise, returns 0. Set the
/// ignore_errors flag to supress logging errors if symbol_name isn't
/// found. This is nice if you just want to probe a dll to see what's
/// available, since missing functions in that case aren't really errors.
void *symbol (const ACE_TCHAR *symbol_name, int ignore_errors = 0);
/**
- * Return the handle to the caller. If @a become_owner is non-0 then
+ * Return the handle to the caller. If <become_owner> is non-0 then
* caller assumes ownership of the handle so we decrement the retcount.
*/
ACE_SHLIB_HANDLE get_handle (int become_owner = 0);
-
+
private:
-
/// Returns a pointer to a string explaining why <symbol> or <open>
/// failed. This is used internal to print out the error to the log,
/// but since this object is shared, we can't store or return the error
@@ -118,12 +114,6 @@ private:
void get_dll_names (const ACE_TCHAR *dll_name,
ACE_Array<ACE_TString> &try_names);
- // Disallow copying and assignment since we don't handle them.
- ACE_DLL_Handle (const ACE_DLL_Handle &);
- void operator= (const ACE_DLL_Handle &);
-
-private:
-
// Keep track of how many ACE_DLL objects have a reference to this
// dll.
sig_atomic_t refcount_;
@@ -144,6 +134,11 @@ private:
/// Synchronization variable for the MT_SAFE Repository
ACE_Thread_Mutex lock_;
#endif /* ACE_MT_SAFE */
+
+ // = Disallow copying and assignment since we don't handle these.
+ ACE_UNIMPLEMENTED_FUNC (ACE_DLL_Handle (const ACE_DLL_Handle &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_DLL_Handle &))
+
};
class ACE_Framework_Repository;
@@ -151,10 +146,10 @@ class ACE_Framework_Repository;
/**
* @class ACE_DLL_Manager
*
- * @brief This class is a singleton and serves as a factory and
- * repository for instances of ACE_DLL_Handle.
+ * @brief This class is a singleton and serves as a factory and
+ * repository for instances of ACE_DLL_Handle.
*
- * This class is a singleton whose lifetime is managed by the
+ * This class is a singleton whose lifetime is managed by the
* ACE_Framework_Repository. Although it is normally meant to be
* used directly only by ACE_DLL, applications can call the unload_policy()
* methods in order get/set the the dll unload policy. Unload policies include
@@ -162,28 +157,30 @@ class ACE_Framework_Repository;
* by using the ACE_DLL_UNLOAD_POLICY macro found in config-all.h. If a dll
* choses to set an unload policy, it will be used when the per-dll policy
* (the default) is in effect. If the per-dll policy is in effect and a dll
- * has not chosen to set a policy, the current per-process policy will be
- * used.
+ * has not chosen to set a policy, the current per-process policy will be
+ * used.
*
* The following policy macros are provided in config-all.h:
*
- * ACE_DLL_UNLOAD_POLICY_PER_PROCESS - Per-process policy that unloads dlls
+ * ACE_DLL_UNLOAD_POLICY_PER_PROCESS - Per-process policy that unloads dlls
* eagerly.
- *
- * ACE_DLL_UNLOAD_POLICY_PER_DLL - Apply policy on a per-dll basis. If the
- * dll doesn't use one of the macros below, the current per-process policy
+ *
+ * ACE_DLL_UNLOAD_POLICY_PER_DLL - Apply policy on a per-dll basis. If the
+ * dll doesn't use one of the macros below, the current per-process policy
* will be used.
*
- * ACE_DLL_UNLOAD_POLICY_LAZY - Don't unload dll when refcount reaches
+ * ACE_DLL_UNLOAD_POLICY_LAZY - Don't unload dll when refcount reaches
* zero, i.e., wait for either an explicit unload request or program exit.
*
- * ACE_DLL_UNLOAD_POLICY_DEFAULT - Default policy allows dlls to control
+ * ACE_DLL_UNLOAD_POLICY_DEFAULT - Default policy allows dlls to control
* their own destinies, but will unload those that don't make a choice eagerly.
*
*/
class ACE_Export ACE_DLL_Manager
{
public:
+ // This if to silence the compiler warnings, even though ACE_Framework_Repository
+ // always uses the instance method.
friend class ACE_Framework_Repository;
enum
@@ -194,10 +191,10 @@ public:
/// Return a unique instance
static ACE_DLL_Manager *instance (int size = ACE_DLL_Manager::DEFAULT_SIZE);
- /// Factory for ACE_DLL_Handle objects. If one already exits,
+ /// Factory for ACE_DLL_Handle objects. If one already exits,
/// its refcount is incremented.
- ACE_DLL_Handle *open_dll (const ACE_TCHAR *dll_name,
- int openmode,
+ ACE_DLL_Handle *open_dll (const ACE_TCHAR *dll_name,
+ int openmode,
ACE_SHLIB_HANDLE handle);
/// Close the underlying dll. Decrements the refcount.
@@ -206,19 +203,12 @@ public:
/// Returns the current per-process UNLOAD_POLICY.
u_long unload_policy (void) const;
- /// Set the per-process UNLOAD_POLICY. If the policy is changed from
+ /// Set the per-process UNLOAD_POLICY. If the policy is changed from
/// LAZY to EAGER, then it will also unload any dlls with zero
/// refcounts.
void unload_policy (u_long unload_policy);
protected:
-
- /// Default constructor.
- ACE_DLL_Manager (int size = ACE_DLL_Manager::DEFAULT_SIZE);
-
- /// Destructor.
- ~ACE_DLL_Manager (void);
-
// Allocate handle_vector_.
int open (int size);
@@ -232,16 +222,15 @@ protected:
int unload_dll (ACE_DLL_Handle *dll_handle, int force_unload = 0);
private:
+ /// Default constructor.
+ ACE_DLL_Manager (int size = ACE_DLL_Manager::DEFAULT_SIZE);
+
+ /// Destructor.
+ ~ACE_DLL_Manager (void);
/// Close the singleton instance.
static void close_singleton (void);
- // Disallow copying and assignment since we don't handle these.
- ACE_DLL_Manager (const ACE_DLL_Manager &);
- void operator= (const ACE_DLL_Manager &);
-
-private:
-
/// Vector containing all loaded handle objects.
ACE_DLL_Handle **handle_vector_;
@@ -254,7 +243,7 @@ private:
/// Unload strategy.
u_long unload_policy_;
- /// Pointer to a process-wide <ACE_DLL_Manager>.
+ /// Pointer to a process-wide <ACE_DLL_Manager>.
static ACE_DLL_Manager *instance_;
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
@@ -262,9 +251,10 @@ private:
ACE_Thread_Mutex lock_;
#endif /* ACE_MT_SAFE */
+ // = Disallow copying and assignment since we don't handle these.
+ ACE_UNIMPLEMENTED_FUNC (ACE_DLL_Manager (const ACE_DLL_Manager &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_DLL_Manager &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_DLL_MANAGER_H */
diff --git a/ace/Date_Time.h b/ace/Date_Time.h
index 7efd047cafd..d11af119f9d 100644
--- a/ace/Date_Time.h
+++ b/ace/Date_Time.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -115,8 +113,6 @@ private:
long wday_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Date_Time.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Date_Time.inl b/ace/Date_Time.inl
index dfb0d239bc3..4dbc8ecc657 100644
--- a/ace/Date_Time.inl
+++ b/ace/Date_Time.inl
@@ -1,14 +1,13 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// Date_Time.i
+
#include "ace/Global_Macros.h"
#include "ace/Time_Value.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/OS_NS_time.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
ACE_Date_Time::update (const ACE_Time_Value& timevalue)
{
@@ -215,5 +214,3 @@ ACE_Date_Time::weekday (long wday)
ACE_TRACE ("ACE_Date_Time::weekday");
wday_ = wday;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Default_Constants.h b/ace/Default_Constants.h
index 945e9ff3513..85820e5d603 100644
--- a/ace/Default_Constants.h
+++ b/ace/Default_Constants.h
@@ -51,7 +51,8 @@
#endif /* ACE_DEFAULT_PAGEFILE_POOL_CHUNK */
#if !defined (ACE_DEFAULT_PAGEFILE_POOL_NAME)
-#define ACE_DEFAULT_PAGEFILE_POOL_NAME ACE_LIB_TEXT ("Default_ACE_Pagefile_Memory_Pool")
+#define ACE_DEFAULT_PAGEFILE_POOL_NAME_A "Default_ACE_Pagefile_Memory_Pool"
+#define ACE_DEFAULT_PAGEFILE_POOL_NAME ACE_LIB_TEXT (ACE_DEFAULT_PAGEFILE_POOL_NAME_A)
#endif /* ACE_DEFAULT_PAGEFILE_POOL_NAME */
#if !defined (ACE_DEFAULT_MESSAGE_BLOCK_PRIORITY)
@@ -74,10 +75,6 @@
# define ACE_DEFAULT_BACKLOG 5
# endif /* ACE_DEFAULT_BACKLOG */
-# if !defined (ACE_DEFAULT_ASYNCH_BACKLOG)
-# define ACE_DEFAULT_ASYNCH_BACKLOG 5
-# endif /* ACE_DEFAULT_ASYNCH_BACKLOG */
-
# if !defined (ACE_DEFAULT_THREADS)
# define ACE_DEFAULT_THREADS 1
# endif /* ACE_DEFAULT_THREADS */
@@ -124,7 +121,8 @@
# endif /* ACE_DEFAULT_MAX_SOCKET_BUFSIZ */
# if !defined (ACE_DEFAULT_SERVER_PORT_STR)
-# define ACE_DEFAULT_SERVER_PORT_STR ACE_LIB_TEXT("20002")
+# define ACE_DEFAULT_SERVER_PORT_STR_A "20002"
+# define ACE_DEFAULT_SERVER_PORT_STR ACE_LIB_TEXT(ACE_DEFAULT_SERVER_PORT_STR_A)
# endif /* ACE_DEFAULT_SERVER_PORT_STR */
// Used for the Service_Directory test
@@ -199,9 +197,11 @@
// Used by the FIFO tests and the Client_Logging_Handler netsvc.
# if !defined (ACE_DEFAULT_RENDEZVOUS)
# if defined (ACE_HAS_STREAM_PIPES)
-# define ACE_DEFAULT_RENDEZVOUS ACE_LIB_TEXT("/tmp/fifo.ace")
+# define ACE_DEFAULT_RENDEZVOUS_A "/tmp/fifo.ace"
+# define ACE_DEFAULT_RENDEZVOUS ACE_LIB_TEXT(ACE_DEFAULT_RENDEZVOUS_A)
# else
-# define ACE_DEFAULT_RENDEZVOUS ACE_LIB_TEXT("localhost:20010")
+# define ACE_DEFAULT_RENDEZVOUS_A "localhost:20010"
+# define ACE_DEFAULT_RENDEZVOUS ACE_LIB_TEXT(ACE_DEFAULT_RENDEZVOUS_A)
# endif /* ACE_HAS_STREAM_PIPES */
# endif /* ACE_DEFAULT_RENDEZVOUS */
@@ -213,23 +213,27 @@
# if !defined (ACE_DEFAULT_LOGGER_KEY)
# if defined (ACE_HAS_STREAM_PIPES)
-# define ACE_DEFAULT_LOGGER_KEY ACE_LIB_TEXT ("/tmp/server_daemon")
+# define ACE_DEFAULT_LOGGER_KEY_A "/tmp/server_daemon"
+# define ACE_DEFAULT_LOGGER_KEY ACE_LIB_TEXT (ACE_DEFAULT_LOGGER_KEY_A)
# else
-# define ACE_DEFAULT_LOGGER_KEY ACE_LIB_TEXT ("localhost:20012")
+# define ACE_DEFAULT_LOGGER_KEY_A "localhost:20012"
+# define ACE_DEFAULT_LOGGER_KEY ACE_LIB_TEXT (ACE_DEFAULT_LOGGER_KEY_A)
# endif /* ACE_HAS_STREAM_PIPES */
# endif /* ACE_DEFAULT_LOGGER_KEY */
// The way to specify the local host for loopback IP. This is usually
// "localhost" but it may need changing on some platforms.
# if !defined (ACE_LOCALHOST)
-# define ACE_LOCALHOST ACE_LIB_TEXT ("localhost")
+# define ACE_LOCALHOST_A "localhost"
+# define ACE_LOCALHOST ACE_LIB_TEXT (ACE_LOCALHOST_A)
# endif
// This specification for an IPv6 localhost should work on all platforms
// supporting IPv6
# if defined (ACE_HAS_IPV6)
# if !defined (ACE_IPV6_LOCALHOST)
-# define ACE_IPV6_LOCALHOST ACE_LIB_TEXT ("::1")
+# define ACE_IPV6_LOCALHOST_A "::1"
+# define ACE_IPV6_LOCALHOST ACE_LIB_TEXT (ACE_IPV6_LOCALHOST_A)
# endif /* ACE_IPV6_LOCALHOST*/
#endif /* ACE_HAS_IPV6 */
@@ -237,14 +241,17 @@
// supporting IPv6
# if defined (ACE_HAS_IPV6)
# if !defined (ACE_IPV6_ANY)
-# define ACE_IPV6_ANY ACE_LIB_TEXT ("::")
+# define ACE_IPV6_ANY_A "::"
+# define ACE_IPV6_ANY ACE_LIB_TEXT (ACE_IPV6_ANY_A)
# endif /* ACE_IPV6_ANY*/
#endif /* ACE_HAS_IPV6 */
# if !defined (ACE_DEFAULT_SERVER_HOST)
# if defined (ACE_HAS_IPV6)
+# define ACE_DEFAULT_SERVER_HOST_A ACE_IPV6_LOCALHOST_A
# define ACE_DEFAULT_SERVER_HOST ACE_IPV6_LOCALHOST
# else /*ACE_HAS_IPV6*/
+# define ACE_DEFAULT_SERVER_HOST_A ACE_LOCALHOST_A
# define ACE_DEFAULT_SERVER_HOST ACE_LOCALHOST
# endif /*ACE_HAS_IPV6*/
# endif /* ACE_DEFAULT_SERVER_HOST */
@@ -431,10 +438,8 @@
#endif /* ACE_WIN32 */
// Define the Wide character and normal versions of some of the string macros
-#if defined (ACE_HAS_WCHAR)
# define ACE_DIRECTORY_SEPARATOR_STR_W ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_STR_A)
# define ACE_DIRECTORY_SEPARATOR_CHAR_W ACE_TEXT_WIDE(ACE_DIRECTORY_SEPARATOR_CHAR_A)
-#endif /* ACE_HAS_WCHAR */
#define ACE_DIRECTORY_SEPARATOR_STR ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_STR_A)
#define ACE_DIRECTORY_SEPARATOR_CHAR ACE_LIB_TEXT (ACE_DIRECTORY_SEPARATOR_CHAR_A)
@@ -447,7 +452,7 @@
# define ACE_MAX_DEFAULT_PORT 65535
#endif /* ACE_MAX_DEFAULT_PORT */
-// Default number of ACE_Event_Handlers supported by
+// Default number of <ACE_Event_Handler>s supported by
// <ACE_Timer_Heap>.
# if !defined (ACE_DEFAULT_TIMERS)
# define ACE_DEFAULT_TIMERS _POSIX_TIMER_MAX
@@ -467,10 +472,8 @@
#endif /* ACE_WIN32 */
// Define the Wide character and normal versions of some of the string macros
-#if defined (ACE_HAS_WCHAR)
# define ACE_PLATFORM_W ACE_TEXT_WIDE(ACE_PLATFORM_A)
# define ACE_PLATFORM_EXE_SUFFIX_W ACE_TEXT_WIDE(ACE_PLATFORM_EXE_SUFFIX_A)
-#endif /* ACE_HAS_WCHAR */
#define ACE_PLATFORM ACE_LIB_TEXT (ACE_PLATFORM_A)
#define ACE_PLATFORM_EXE_SUFFIX ACE_LIB_TEXT (ACE_PLATFORM_EXE_SUFFIX_A)
@@ -486,7 +489,8 @@
# endif /* __MINGW32__ */
#else /* !ACE_WIN32 */
# if !defined (ACE_LD_SEARCH_PATH)
-# define ACE_LD_SEARCH_PATH ACE_LIB_TEXT ("LD_LIBRARY_PATH")
+# define ACE_LD_SEARCH_PATH_A "LD_LIBRARY_PATH"
+# define ACE_LD_SEARCH_PATH ACE_LIB_TEXT (ACE_LD_SEARCH_PATH_A)
# endif /* ACE_LD_SEARCH_PATH */
# if !defined (ACE_LD_SEARCH_PATH_SEPARATOR_STR)
# define ACE_LD_SEARCH_PATH_SEPARATOR_STR ACE_LIB_TEXT (":")
@@ -505,9 +509,11 @@
// Used for dynamic linking
# if !defined (ACE_DEFAULT_SVC_CONF)
# if (ACE_USES_CLASSIC_SVC_CONF == 1)
-# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT (".\\svc.conf")
+# define ACE_DEFAULT_SVC_CONF_A ".\\svc.conf"
+# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT (ACE_DEFAULT_SVC_CONF_A)
# else
-# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT (".\\svc.conf.xml")
+# define ACE_DEFAULT_SVC_CONF_A ".\\svc.conf.xml"
+# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT (ACE_DEFAULT_SVC_CONF_A)
# endif /* ACE_USES_CLASSIC_SVC_CONF ==1 */
# endif /* ACE_DEFAULT_SVC_CONF */
#endif /* ACE_WIN32 */
@@ -515,14 +521,17 @@
// Used for dynamic linking.
#if !defined (ACE_DEFAULT_SVC_CONF)
# if (ACE_USES_CLASSIC_SVC_CONF == 1)
-# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT ("./svc.conf")
+# define ACE_DEFAULT_SVC_CONF_A "./svc.conf"
+# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT (ACE_DEFAULT_SVC_CONF_A)
# else
-# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT ("./svc.conf.xml")
+# define ACE_DEFAULT_SVC_CONF_A "./svc.conf.xml"
+# define ACE_DEFAULT_SVC_CONF ACE_LIB_TEXT (ACE_DEFAULT_SVC_CONF_A)
# endif /* ACE_USES_CLASSIC_SVC_CONF ==1 */
#endif /* ACE_DEFAULT_SVC_CONF */
#if !defined (ACE_LOGGER_KEY)
-# define ACE_LOGGER_KEY ACE_LIB_TEXT ("/tmp/server_daemon")
+# define ACE_LOGGER_KEY_A "/tmp/server_daemon"
+# define ACE_LOGGER_KEY ACE_LIB_TEXT (ACE_LOGGER_KEY_A)
#endif /* ACE_LOGGER_KEY */
// Theses defines are used by the ACE Name Server.
@@ -542,16 +551,12 @@
# else /* ACE_WIN32 */
# define ACE_DEFAULT_NAMESPACE_DIR_A "/tmp"
# endif /* ACE_WIN32 */
-# if defined (ACE_HAS_WCHAR)
# define ACE_DEFAULT_NAMESPACE_DIR_W ACE_TEXT_WIDE(ACE_DEFAULT_NAMESPACE_DIR_A)
-# endif /* ACE_HAS_WCHAR */
# define ACE_DEFAULT_NAMESPACE_DIR ACE_LIB_TEXT(ACE_DEFAULT_NAMESPACE_DIR_A)
#endif /* ACE_LEGACY_MODE */
-#if defined (ACE_HAS_WCHAR)
# define ACE_DEFAULT_LOCALNAME_W ACE_TEXT_WIDE(ACE_DEFAULT_LOCALNAME_A)
# define ACE_DEFAULT_GLOBALNAME_W ACE_TEXT_WIDE(ACE_DEFAULT_GLOBALNAME_A)
-#endif /* ACE_HAS_WCHAR */
#define ACE_DEFAULT_LOCALNAME ACE_LIB_TEXT (ACE_DEFAULT_LOCALNAME_A)
#define ACE_DEFAULT_GLOBALNAME ACE_LIB_TEXT (ACE_DEFAULT_GLOBALNAME_A)
diff --git a/ace/Dev_Poll_Reactor.cpp b/ace/Dev_Poll_Reactor.cpp
index 6c986b6cd9f..803dd2f4e32 100644
--- a/ace/Dev_Poll_Reactor.cpp
+++ b/ace/Dev_Poll_Reactor.cpp
@@ -40,8 +40,6 @@ ACE_RCSID (ace,
#include "ace/os_include/os_poll.h"
#include "ace/OS_NS_sys_mman.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Dev_Poll_Reactor_Notify::ACE_Dev_Poll_Reactor_Notify (void)
: dp_reactor_ (0)
, notification_pipe_ ()
@@ -95,9 +93,6 @@ ACE_Dev_Poll_Reactor_Notify::open (ACE_Reactor_Impl *r,
if (free_queue_.enqueue_head (temp + i) == -1)
return -1;
- if (ACE::set_flags (this->notification_pipe_.write_handle (),
- ACE_NONBLOCK) == -1)
- return -1;
#endif /* ACE_HAS_REACTOR_NOTIFICATION_QUEUE */
// Set the read handle into non-blocking mode since we need to
@@ -433,7 +428,7 @@ ACE_Dev_Poll_Reactor_Notify::dispatch_notify (ACE_Notification_Buffer &buffer)
default:
// Should we bail out if we get an invalid mask?
ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("dispatch_notify invalid mask = %d\n"),
+ ACE_LIB_TEXT ("invalid mask = %d\n"),
buffer.mask_));
}
if (result == -1)
@@ -671,11 +666,9 @@ ACE_Dev_Poll_Reactor_Handler_Repository::find (ACE_HANDLE handle,
if (this->handle_in_range (handle))
{
eh = this->handlers_[handle].event_handler;
- if (eh != 0)
- {
- if (index_p != 0)
- *index_p = handle;
- }
+
+ if (eh != 0 && index_p != 0)
+ *index_p = handle;
else
errno = ENOENT;
}
@@ -699,22 +692,18 @@ ACE_Dev_Poll_Reactor_Handler_Repository::bind (
this->handlers_[handle].event_handler = event_handler;
this->handlers_[handle].mask = mask;
- event_handler->add_reference ();
return 0;
}
int
-ACE_Dev_Poll_Reactor_Handler_Repository::unbind (ACE_HANDLE handle,
- bool decr_refcnt)
+ACE_Dev_Poll_Reactor_Handler_Repository::unbind (ACE_HANDLE handle)
{
ACE_TRACE ("ACE_Dev_Poll_Reactor_Handler_Repository::unbind");
if (this->find (handle) == 0)
return -1;
- if (decr_refcnt)
- this->handlers_[handle].event_handler->remove_reference ();
this->handlers_[handle].event_handler = 0;
this->handlers_[handle].mask = ACE_Event_Handler::NULL_MASK;
this->handlers_[handle].suspended = 0;
@@ -917,11 +906,10 @@ ACE_Dev_Poll_Reactor::open (size_t size,
else if (this->notify_handler_->open (this,
0,
disable_notify_pipe) == -1
- || (disable_notify_pipe == 0
- && this->register_handler_i (
- this->notify_handler_->notify_handle (),
- this->notify_handler_,
- ACE_Event_Handler::READ_MASK)) == -1)
+ || this->register_handler_i (
+ this->notify_handler_->notify_handle (),
+ this->notify_handler_,
+ ACE_Event_Handler::READ_MASK) == -1)
result = -1;
this->size_ = size;
@@ -1107,11 +1095,14 @@ ACE_Dev_Poll_Reactor::work_pending_i (ACE_Time_Value * max_wait_time)
this->size_,
static_cast<int> (timeout));
- if (nfds > 0)
- {
- this->start_pevents_ = this->events_;
- this->end_pevents_ = this->start_pevents_ + nfds;
- }
+ // all detected events are put in this->events_:
+ this->start_pevents_ = this->events_;
+
+ // If nfds == 0 then end_pevents_ == start_pevents_ meaning that there is
+ // no work pending. If nfds > 0 then there is work pending.
+ // Otherwise an error occurred.
+ if (nfds > -1)
+ this->end_pevents_ = this->start_pevents_ + nfds;
#else
@@ -1183,8 +1174,6 @@ ACE_Dev_Poll_Reactor::handle_events_i (ACE_Time_Value *max_wait_time,
do
{
result = this->work_pending_i (max_wait_time);
- if (result == -1)
- ACE_ERROR((LM_ERROR, "%t: %p\n", "work_pending_i"));
}
while (result == -1 && this->restart_ != 0 && errno == EINTR);
@@ -1352,6 +1341,9 @@ ACE_Dev_Poll_Reactor::dispatch_io_event (Token_Guard &guard)
short &revents = pfds->revents;
#endif /* ACE_HAS_EVENT_POLL */
+ if (revents == 0)
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) disp h %d events 0x%x\n"),
+ handle, (int)revents));
// Figure out what to do first in order to make it easier to manage
// the bit twiddling and possible pfds increment before releasing
// the token for dispatch.
@@ -1384,7 +1376,7 @@ ACE_Dev_Poll_Reactor::dispatch_io_event (Token_Guard &guard)
}
else
{
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%t) dispatch_io h %d unknown events 0x%x\n"), handle, revents));
+ ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("(%t) dispatch_io h %d unknown events 0x%x\n"), handle, revents));
// ACE_ASSERT (0);
}
@@ -1402,52 +1394,51 @@ ACE_Dev_Poll_Reactor::dispatch_io_event (Token_Guard &guard)
*/
ACE_Event_Handler *eh = this->handler_rep_.find (handle);
- if (eh)
- {
- // Modify the reference count in an exception-safe way.
- // Note that eh could be the notify handler. It's not strictly
- // necessary to manage its refcount, but since we don't enable
- // the counting policy, it won't do much. Management of the
- // notified handlers themselves is done in the notify handler.
- ACE_Dev_Poll_Handler_Guard eh_guard (eh);
-
- // Release the reactor token before upcall.
- guard.release_token ();
-
- // Dispatch the detected event
- if (disp_out)
- {
- const int status =
- this->upcall (eh, &ACE_Event_Handler::handle_output, handle);
-
- if (status < 0)
- // Note that the token is reacquired in remove_handler().
- this->remove_handler (handle, ACE_Event_Handler::WRITE_MASK);
- return 1;
- }
-
- if (disp_exc)
- {
- const int status =
- this->upcall (eh, &ACE_Event_Handler::handle_exception, handle);
-
- if (status < 0)
- // Note that the token is reacquired in remove_handler().
- this->remove_handler (handle, ACE_Event_Handler::EXCEPT_MASK);
- return 1;
- }
-
- if (disp_in)
- {
- const int status =
- this->upcall (eh, &ACE_Event_Handler::handle_input, handle);
-
- if (status < 0)
- // Note that the token is reacquired in remove_handler().
- this->remove_handler (handle, ACE_Event_Handler::READ_MASK);
- return 1;
- }
- } // The reactor token is reacquired upon leaving this scope.
+ {
+ // Modify the reference count in an exception-safe way.
+ // Note that eh could be the notify handler. It's not strictly
+ // necessary to manage its refcount, but since we don't enable
+ // the counting policy, it won't do much. Management of the
+ // notified handlers themselves is done in the notify handler.
+ ACE_Dev_Poll_Handler_Guard eh_guard (eh);
+
+ // Release the reactor token before upcall.
+ guard.release_token ();
+
+ // Dispatch the detected event
+ if (disp_out)
+ {
+ const int status =
+ this->upcall (eh, &ACE_Event_Handler::handle_output, handle);
+
+ if (status < 0)
+ // Note that the token is reacquired in remove_handler().
+ this->remove_handler (handle, ACE_Event_Handler::WRITE_MASK);
+ return 1;
+ }
+
+ if (disp_exc)
+ {
+ const int status =
+ this->upcall (eh, &ACE_Event_Handler::handle_exception, handle);
+
+ if (status < 0)
+ // Note that the token is reacquired in remove_handler().
+ this->remove_handler (handle, ACE_Event_Handler::EXCEPT_MASK);
+ return 1;
+ }
+
+ if (disp_in)
+ {
+ const int status =
+ this->upcall (eh, &ACE_Event_Handler::handle_input, handle);
+
+ if (status < 0)
+ // Note that the token is reacquired in remove_handler().
+ this->remove_handler (handle, ACE_Event_Handler::READ_MASK);
+ return 1;
+ }
+ } // The reactor token is reacquired upon leaving this scope.
}
return 0;
@@ -1533,6 +1524,7 @@ ACE_Dev_Poll_Reactor::register_handler_i (ACE_HANDLE handle,
if (this->handler_rep_.find (handle) == 0)
{
+ ACE_DEBUG ((LM_DEBUG, "Need to add handle %d\n", handle));
// Handler not present in the repository. Bind it.
if (this->handler_rep_.bind (handle, event_handler, mask) != 0)
return -1;
@@ -1540,7 +1532,7 @@ ACE_Dev_Poll_Reactor::register_handler_i (ACE_HANDLE handle,
#if defined (ACE_HAS_EVENT_POLL)
struct epoll_event epev;
- ACE_OS::memset (&epev, 0, sizeof (epev));
+
static const int op = EPOLL_CTL_ADD;
epev.events = this->reactor_mask_to_poll_event (mask);
@@ -1560,8 +1552,13 @@ ACE_Dev_Poll_Reactor::register_handler_i (ACE_HANDLE handle,
// Handler is already present in the repository, so register it
// again, possibly for different event. Add new mask to the
// current one.
+ ACE_DEBUG ((LM_DEBUG, "Adding mask 0x%x for handle %d\n", mask, handle));
if (this->mask_ops_i (handle, mask, ACE_Reactor::ADD_MASK) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "mask_ops_i"), -1);
+ {
+ ACE_ERROR ((LM_ERROR, "%p\n", "mask_ops_i"));
+ (void) this->handler_rep_.unbind (handle);
+ return -1;
+ }
}
#ifndef ACE_HAS_EVENT_POLL
@@ -1576,6 +1573,7 @@ ACE_Dev_Poll_Reactor::register_handler_i (ACE_HANDLE handle,
if (ACE_OS::write (this->poll_fd_, &pfd, sizeof (pfd)) != sizeof (pfd))
{
(void) this->handler_rep_.unbind (handle);
+
return -1;
}
#endif /*ACE_HAS_EVENT_POLL*/
@@ -1698,22 +1696,27 @@ ACE_Dev_Poll_Reactor::remove_handler_i (ACE_HANDLE handle,
ACE_Event_Handler *eh = this->handler_rep_.find (handle);
- if (eh == 0 ||
- this->mask_ops_i (handle, mask, ACE_Reactor::CLR_MASK) == -1)
+ if (eh == 0
+ || this->mask_ops_i (handle, mask, ACE_Reactor::CLR_MASK) == -1)
return -1;
- // Check for ref counting now - handle_close() may delete eh.
- int requires_reference_counting =
- eh->reference_counting_policy ().value () ==
- ACE_Event_Handler::Reference_Counting_Policy::ENABLED;
+ // If there are no longer any outstanding events on the given handle
+ // then remove it from the handler repository.
+ if (this->handler_rep_.mask (handle) == ACE_Event_Handler::NULL_MASK
+ && this->handler_rep_.unbind (handle) != 0)
+ return -1;
if (ACE_BIT_DISABLED (mask, ACE_Event_Handler::DONT_CALL))
- (void) eh->handle_close (handle, mask);
+ {
+ // Release the lock during the "close" upcall.
+ ACE_Reverse_Lock<ACE_Dev_Poll_Reactor_Token> reverse_lock (this->token_);
+ ACE_GUARD_RETURN (ACE_Reverse_Lock<ACE_Dev_Poll_Reactor_Token>,
+ reverse_guard,
+ reverse_lock,
+ -1);
- // If there are no longer any outstanding events on the given handle
- // then remove it from the handler repository.
- if (this->handler_rep_.mask (handle) == ACE_Event_Handler::NULL_MASK)
- this->handler_rep_.unbind (handle, requires_reference_counting);
+ (void) eh->handle_close (handle, mask);
+ }
// Note the fact that we've changed the state of the wait_set,
// i.e. the "interest set," which is used by the dispatching loop to
@@ -1867,7 +1870,7 @@ ACE_Dev_Poll_Reactor::suspend_handler_i (ACE_HANDLE handle)
#if defined (ACE_HAS_EVENT_POLL)
struct epoll_event epev;
- ACE_OS::memset (&epev, 0, sizeof (epev));
+
static const int op = EPOLL_CTL_DEL;
epev.events = 0;
@@ -1977,7 +1980,7 @@ ACE_Dev_Poll_Reactor::resume_handler_i (ACE_HANDLE handle)
#if defined (ACE_HAS_EVENT_POLL)
struct epoll_event epev;
- ACE_OS::memset (&epev, 0, sizeof (epev));
+
static const int op = EPOLL_CTL_ADD;
epev.events = this->reactor_mask_to_poll_event (mask);
@@ -2175,10 +2178,7 @@ ACE_Dev_Poll_Reactor::find_handler (ACE_HANDLE handle)
{
ACE_MT (ACE_READ_GUARD_RETURN (ACE_Dev_Poll_Reactor_Token, mon, this->token_, 0));
- ACE_Event_Handler *event_handler = this->handler_rep_.find (handle);
- if (event_handler)
- event_handler->add_reference ();
- return event_handler;
+ return this->handler_rep_.find (handle);
}
int
@@ -2422,7 +2422,7 @@ ACE_Dev_Poll_Reactor::mask_ops_i (ACE_HANDLE handle,
#elif defined (ACE_HAS_EVENT_POLL)
struct epoll_event epev;
- ACE_OS::memset (&epev, 0, sizeof (epev));
+
int op;
// ACE_Event_Handler::NULL_MASK ???
@@ -2597,10 +2597,7 @@ ACE_Dev_Poll_Reactor::Token_Guard::acquire_quietly (ACE_Time_Value *max_wait)
if (errno == ETIME)
return 0;
else
- {
- ACE_ERROR ((LM_ERROR, "%t: %p\n", "token acquire_read"));
- return -1;
- }
+ return -1;
}
// We got the token and so let us mark ourselves as owner
@@ -2658,6 +2655,4 @@ template class ACE_Reverse_Lock<ACE_Dev_Poll_Reactor_Token>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_EVENT_POLL || ACE_HAS_DEV_POLL */
diff --git a/ace/Dev_Poll_Reactor.h b/ace/Dev_Poll_Reactor.h
index 78b0949b7d3..38ca44218f3 100644
--- a/ace/Dev_Poll_Reactor.h
+++ b/ace/Dev_Poll_Reactor.h
@@ -19,7 +19,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_REACTOR_BUILD_DLL
+# include "ace/ACE_Reactor_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Reactor_Export ACE_Export
+#endif /* ACE_REACTOR_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -57,17 +62,14 @@
# include "ace/Unbounded_Queue.h"
#endif /* ACE_HAS_REACTOR_NOTIFICATION_QUEUE */
+// Forward declarations
+class ACE_Sig_Handler;
+class ACE_Dev_Poll_Reactor;
+
#if defined (ACE_HAS_DEV_POLL)
struct pollfd;
-#elif defined (ACE_HAS_EVENT_POLL)
-struct epoll_event;
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Forward declarations
-class ACE_Sig_Handler;
-class ACE_Dev_Poll_Reactor;
/**
* @class ACE_Dev_Poll_Event_Tuple
@@ -379,9 +381,8 @@ public:
ACE_Event_Handler *handler,
ACE_Reactor_Mask mask);
- /// Remove the binding for @c ACE_HANDLE; optionally decrement the associated
- /// handler's reference count.
- int unbind (ACE_HANDLE handle, bool decr_refcnt = true);
+ /// Remove the binding of @c ACE_HANDLE in accordance with the <mask>.
+ int unbind (ACE_HANDLE handle);
/// Remove all the (@c ACE_HANDLE, @c ACE_Event_Handler) tuples.
int unbind_all (void);
@@ -471,7 +472,7 @@ typedef ACE_Noop_Token ACE_DEV_POLL_TOKEN;
#endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
typedef ACE_Reactor_Token_T<ACE_DEV_POLL_TOKEN> ACE_Dev_Poll_Reactor_Token;
-class ACE_Export ACE_Dev_Poll_Reactor : public ACE_Reactor_Impl
+class ACE_Reactor_Export ACE_Dev_Poll_Reactor : public ACE_Reactor_Impl
{
public:
@@ -842,7 +843,7 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. Returns the number of notifications
+ * <ACE_Event_Handler> object. Returns the number of notifications
* purged. Returns -1 on error.
*/
virtual int purge_pending_notifications (ACE_Event_Handler * = 0,
@@ -1178,14 +1179,14 @@ protected:
/// Constructor that will grab the token for us
Token_Guard (ACE_Dev_Poll_Reactor_Token &token);
- /// Destructor. This will release the token if it hasn't been
+ /// Destructor. This will release the token if it hasnt been
/// released till this point
~Token_Guard (void);
/// Release the token ..
void release_token (void);
- /// Returns whether the thread that created this object owns the
+ /// Returns whether the thread that created this object ownes the
/// token or not.
int is_owner (void);
@@ -1202,20 +1203,18 @@ protected:
int acquire (ACE_Time_Value *max_wait = 0);
private:
-
- Token_Guard (void);
-
- private:
-
/// The Reactor token.
ACE_Dev_Poll_Reactor_Token &token_;
/// Flag that indicate whether the thread that created this object
/// owns the token or not. A value of 0 indicates that this class
- /// hasn't got the token (and hence the thread) and a value of 1
+ /// hasnt got the token (and hence the thread) and a value of 1
/// vice-versa.
int owner_;
+ private:
+
+ ACE_UNIMPLEMENTED_FUNC (Token_Guard (void))
};
};
@@ -1268,7 +1267,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "ace/Dev_Poll_Reactor.inl"
diff --git a/ace/Dev_Poll_Reactor.inl b/ace/Dev_Poll_Reactor.inl
index b7034e07333..0d99c764c01 100644
--- a/ace/Dev_Poll_Reactor.inl
+++ b/ace/Dev_Poll_Reactor.inl
@@ -4,8 +4,6 @@
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Dev_Poll_Event_Tuple::ACE_Dev_Poll_Event_Tuple (void)
: event_handler (0),
@@ -224,5 +222,3 @@ ACE_Dev_Poll_Reactor::Token_Guard::is_owner (void)
{
return this->owner_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dirent.h b/ace/Dirent.h
index c31f8cc20cb..5cda1c442fb 100644
--- a/ace/Dirent.h
+++ b/ace/Dirent.h
@@ -25,8 +25,6 @@
#include "ace/OS_NS_dirent.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Dirent
*
@@ -70,15 +68,15 @@ public:
* update the st_atime field of the directory each time the
* directory is actually read.
*/
- ACE_DIRENT *read (void);
+ dirent *read (void);
/**
* Has the equivalent functionality as <readdir> except that an
* <entry> and <result> buffer must be supplied by the caller to
* store the result.
*/
- int read (struct ACE_DIRENT *entry,
- struct ACE_DIRENT **result);
+ int read (struct dirent *entry,
+ struct dirent **result);
// = Manipulators.
/// Returns the current location associated with the directory
@@ -112,8 +110,6 @@ private:
ACE_DIR *dirp_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Dirent.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Dirent.inl b/ace/Dirent.inl
index 0a8f0b9e6e4..c75c79fd320 100644
--- a/ace/Dirent.inl
+++ b/ace/Dirent.inl
@@ -1,18 +1,15 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
-ACE_Dirent::open (const ACE_TCHAR *dirname)
+ACE_Dirent::open (const ACE_TCHAR *dirname)
{
// If the directory stream is already open, close it to prevent
// possible resource leaks.
- if (this->dirp_ != 0)
+ if (this->dirp_ != 0)
{
ACE_OS::closedir (this->dirp_);
this->dirp_ = 0;
@@ -26,38 +23,38 @@ ACE_Dirent::open (const ACE_TCHAR *dirname)
return 0;
}
-ACE_INLINE
+ACE_INLINE
ACE_Dirent::ACE_Dirent (void)
: dirp_ (0)
{
}
-ACE_INLINE
-ACE_Dirent::ACE_Dirent (const ACE_TCHAR *dirname)
+ACE_INLINE
+ACE_Dirent::ACE_Dirent (const ACE_TCHAR *dirname)
: dirp_ (0)
{
if (this->open (dirname) == -1)
ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%p\n"),
+ ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_Dirent::ACE_Dirent")));
}
-ACE_INLINE
+ACE_INLINE
ACE_Dirent::~ACE_Dirent (void)
{
if (this->dirp_ != 0)
ACE_OS::closedir (this->dirp_);
}
-ACE_INLINE ACE_DIRENT *
+ACE_INLINE dirent *
ACE_Dirent::read (void)
{
return this->dirp_ ? ACE_OS::readdir (this->dirp_) : 0;
}
ACE_INLINE int
-ACE_Dirent::read (struct ACE_DIRENT *entry,
- struct ACE_DIRENT **result)
+ACE_Dirent::read (struct dirent *entry,
+ struct dirent **result)
{
return this->dirp_
? ACE_OS::readdir_r (this->dirp_, entry, result)
@@ -67,7 +64,7 @@ ACE_Dirent::read (struct ACE_DIRENT *entry,
ACE_INLINE void
ACE_Dirent::close (void)
{
- if (this->dirp_ != 0)
+ if (this->dirp_ != 0)
{
ACE_OS::closedir (this->dirp_);
@@ -96,4 +93,3 @@ ACE_Dirent::tell (void)
return this->dirp_ ? ACE_OS::telldir (this->dirp_) : 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dirent_Selector.cpp b/ace/Dirent_Selector.cpp
index 0788c8d891b..c4690ee88e4 100644
--- a/ace/Dirent_Selector.cpp
+++ b/ace/Dirent_Selector.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (ace,
Dirent_Selector,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Construction/Destruction
ACE_Dirent_Selector::ACE_Dirent_Selector (void)
@@ -31,9 +29,9 @@ ACE_Dirent_Selector::~ACE_Dirent_Selector (void)
int
ACE_Dirent_Selector::open (const ACE_TCHAR *dir,
- int (*sel)(const ACE_DIRENT *d),
- int (*cmp) (const ACE_DIRENT **d1,
- const ACE_DIRENT **d2))
+ int (*sel)(const dirent *d),
+ int (*cmp) (const dirent **d1,
+ const dirent **d2))
{
n_ = ACE_OS::scandir (dir, &this->namelist_, sel, cmp);
return n_;
@@ -56,5 +54,3 @@ ACE_Dirent_Selector::close (void)
this->namelist_ = 0;
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dirent_Selector.h b/ace/Dirent_Selector.h
index 89b2eead630..8985e4a930a 100644
--- a/ace/Dirent_Selector.h
+++ b/ace/Dirent_Selector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/os_include/os_dirent.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Dirent_Selector
*
@@ -45,7 +43,7 @@ public:
int length (void) const;
/// Return the entry at @a index.
- ACE_DIRENT *operator[] (const int index) const;
+ dirent *operator[] (const int index) const;
/// Free up resources.
int close (void);
@@ -53,19 +51,17 @@ public:
/// Open the directory @a dir and populate the <namelist_> array with
/// directory entries that match the @a selector and @a comparator.
int open (const ACE_TCHAR *dir,
- int (*selector)(const ACE_DIRENT *d) = 0,
- int (*comparator)(const ACE_DIRENT **d1, const ACE_DIRENT **d2) = 0);
+ int (*selector)(const dirent *d) = 0,
+ int (*comparator)(const dirent **d1, const dirent **d2) = 0);
protected:
/// Ptr to the namelist array.
- ACE_DIRENT **namelist_;
+ dirent **namelist_;
- /// Number of entries in the array.
+ /// # of entries in the array.
int n_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Dirent_Selector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Dirent_Selector.inl b/ace/Dirent_Selector.inl
index 7c42f46b9be..894971076ed 100644
--- a/ace/Dirent_Selector.inl
+++ b/ace/Dirent_Selector.inl
@@ -1,19 +1,14 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Dirent_Selector::length (void) const
{
return n_;
}
-ACE_INLINE ACE_DIRENT *
+ACE_INLINE dirent *
ACE_Dirent_Selector::operator[] (const int n) const
{
return this->namelist_[n];
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dump.cpp b/ace/Dump.cpp
index b601496f3b6..380be07f857 100644
--- a/ace/Dump.cpp
+++ b/ace/Dump.cpp
@@ -8,8 +8,6 @@
ACE_RCSID(ace, Dump, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implementations (very simple for now...)
ACE_Dumpable::~ACE_Dumpable (void)
@@ -137,5 +135,3 @@ ACE_ODB::remove_object (const void *this_ptr)
}
ACE_ODB *ACE_ODB::instance_ = 0;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dump.h b/ace/Dump.h
index 7c792f0db66..aff3faab9a9 100644
--- a/ace/Dump.h
+++ b/ace/Dump.h
@@ -58,8 +58,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Dumpable
*
@@ -163,8 +161,6 @@ private:
int current_size_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Include the templates classes at this point.
#include "ace/Dump_T.h"
diff --git a/ace/Dump_T.cpp b/ace/Dump_T.cpp
index 3c789497eee..fe83085ee1a 100644
--- a/ace/Dump_T.cpp
+++ b/ace/Dump_T.cpp
@@ -1,9 +1,8 @@
// Dump_T.cpp
-//
// $Id$
-#ifndef ACE_DUMP_T_CPP
-#define ACE_DUMP_T_CPP
+#ifndef ACE_DUMP_T_C
+#define ACE_DUMP_T_C
#include "ace/Dump_T.h"
#include "ace/Global_Macros.h"
@@ -13,7 +12,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Dump_T, "$Id$")
template <class Concrete>
ACE_Dumpable_Adapter<Concrete>::~ACE_Dumpable_Adapter (void)
@@ -43,6 +42,4 @@ ACE_Dumpable_Adapter<Concrete>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_DUMP_T_CPP */
+#endif /* ACE_DUMP_T_C */
diff --git a/ace/Dump_T.h b/ace/Dump_T.h
index 561569765a4..7595526a562 100644
--- a/ace/Dump_T.h
+++ b/ace/Dump_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Dumpable_Adapter
*
@@ -55,8 +53,6 @@ private:
const Concrete *this_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Some useful macros for conditionally compiling this feature...
#if defined (ACE_NDEBUG)
#define ACE_REGISTER_OBJECT(CLASS)
diff --git a/ace/Dynamic.cpp b/ace/Dynamic.cpp
index 4e9f3fb26c5..fbab1172542 100644
--- a/ace/Dynamic.cpp
+++ b/ace/Dynamic.cpp
@@ -1,3 +1,4 @@
+// Dynamic.cpp
// $Id$
#include "ace/Dynamic.h"
@@ -12,10 +13,8 @@
ACE_RCSID(ace, Dynamic, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Dynamic::ACE_Dynamic (void)
- : is_dynamic_ (false)
+ : is_dynamic_ (0)
{
ACE_TRACE ("ACE_Dynamic::ACE_Dynamic");
}
@@ -44,5 +43,3 @@ template ACE_TSS_Singleton<ACE_Dynamic, ACE_Null_Mutex> *
ACE_TSS_Singleton<ACE_Dynamic, ACE_Null_Mutex>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dynamic.h b/ace/Dynamic.h
index 3c9f9aced43..d6c3ab9466b 100644
--- a/ace/Dynamic.h
+++ b/ace/Dynamic.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Dynamic
*
@@ -48,8 +46,8 @@ public:
*/
void set (void);
- /// @c true if we were allocated dynamically, else @c false.
- bool is_dynamic (void);
+ /// 1 if we were allocated dynamically, else 0.
+ int is_dynamic (void);
/// Resets state flag.
void reset (void);
@@ -62,11 +60,9 @@ private:
* method is usually called in operator new and then checked and
* reset in the constructor.
*/
- bool is_dynamic_;
+ int is_dynamic_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Dynamic.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Dynamic.inl b/ace/Dynamic.inl
index 3f506bc51f4..9d1595441d6 100644
--- a/ace/Dynamic.inl
+++ b/ace/Dynamic.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Dynamic.i
ACE_INLINE
ACE_Dynamic::~ACE_Dynamic (void)
@@ -14,11 +13,11 @@ ACE_INLINE void
ACE_Dynamic::set (void)
{
// ACE_TRACE ("ACE_Dynamic::set");
- this->is_dynamic_ = true;
+ this->is_dynamic_ = 1;
}
-ACE_INLINE bool
-ACE_Dynamic::is_dynamic (void)
+ACE_INLINE int
+ACE_Dynamic::is_dynamic ()
{
// ACE_TRACE ("ACE_Dynamic::is_dynamic");
return this->is_dynamic_;
@@ -28,7 +27,5 @@ ACE_INLINE void
ACE_Dynamic::reset (void)
{
// ACE_TRACE ("ACE_Dynamic::reset");
- this->is_dynamic_ = false;
+ this->is_dynamic_ = 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dynamic_Service.cpp b/ace/Dynamic_Service.cpp
index dd0d8d0c679..9178889675c 100644
--- a/ace/Dynamic_Service.cpp
+++ b/ace/Dynamic_Service.cpp
@@ -1,7 +1,8 @@
+// Dynamic_Service.cpp
// $Id$
-#ifndef ACE_DYNAMIC_SERVICE_CPP
-#define ACE_DYNAMIC_SERVICE_CPP
+#ifndef ACE_DYNAMIC_SERVICE_C
+#define ACE_DYNAMIC_SERVICE_C
#include "ace/Dynamic_Service.h"
@@ -15,16 +16,14 @@
#include "ace/Dynamic_Service.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE> TYPE *
ACE_Dynamic_Service<TYPE>::instance (const ACE_TCHAR *name)
{
- ACE_Service_Object * svc_obj =
+ ACE_Service_Object *svc_obj =
static_cast<ACE_Service_Object *> (ACE_Dynamic_Service_Base::instance (name));
return dynamic_cast<TYPE *> (svc_obj);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Dynamic_Service, "$Id$")
-#endif /* ACE_DYNAMIC_SERVICE_CPP */
+#endif /* ACE_DYNAMIC_SERVICE_C */
diff --git a/ace/Dynamic_Service.h b/ace/Dynamic_Service.h
index d913f1a750d..2b678fb70f1 100644
--- a/ace/Dynamic_Service.h
+++ b/ace/Dynamic_Service.h
@@ -24,8 +24,6 @@
#include "ace/Dynamic_Service_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Service_Object;
/**
@@ -42,16 +40,12 @@ class ACE_Dynamic_Service : public ACE_Dynamic_Service_Base
{
public:
/// Return instance using @a name to search the Service_Repository.
- static TYPE* instance (const ACE_TCHAR *name);
+ static TYPE* instance (const char *name);
-#if defined (ACE_USES_WCHAR)
/// Return instance using @a name to search the Service_Repository.
- static TYPE* instance (const ACE_ANTI_TCHAR *name);
-#endif // ACE_USES_WCHAR
+ static TYPE* instance (const wchar_t *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Dynamic_Service.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Dynamic_Service.inl b/ace/Dynamic_Service.inl
index 50bce680a39..3387ca51abb 100644
--- a/ace/Dynamic_Service.inl
+++ b/ace/Dynamic_Service.inl
@@ -1,15 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_USES_WCHAR)
template <class TYPE> ACE_INLINE TYPE *
ACE_Dynamic_Service<TYPE>::instance (const ACE_ANTI_TCHAR *name)
{
- return instance (ACE_TEXT_CHAR_TO_TCHAR (name));
+ return instance (ACE_TEXT_TO_TCHAR_IN (name));
}
-#endif // ACE_USES_WCHAR
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dynamic_Service_Base.cpp b/ace/Dynamic_Service_Base.cpp
index bec17fb079f..4f62b6de092 100644
--- a/ace/Dynamic_Service_Base.cpp
+++ b/ace/Dynamic_Service_Base.cpp
@@ -9,7 +9,6 @@ ACE_RCSID (ace,
Dynamic_Service_Base,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
void
ACE_Dynamic_Service_Base::dump (void) const
@@ -40,8 +39,6 @@ ACE_Dynamic_Service_Base::instance (const ACE_TCHAR *name)
if (type == 0)
return 0;
- void * const obj = type->object ();
+ void *obj = type->object ();
return obj;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Dynamic_Service_Base.h b/ace/Dynamic_Service_Base.h
index 17b7c5dda2f..2b80085f0e7 100644
--- a/ace/Dynamic_Service_Base.h
+++ b/ace/Dynamic_Service_Base.h
@@ -22,7 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Dynamic_Service_Base
@@ -43,7 +42,5 @@ protected:
static void* instance (const ACE_TCHAR *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_DYNAMIC_SERVICE_BASE_H */
diff --git a/ace/Encoding_Converter.cpp b/ace/Encoding_Converter.cpp
deleted file mode 100644
index 60e561ea534..00000000000
--- a/ace/Encoding_Converter.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// $Id$
-#include "ace/Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Encoding_Converter::~ACE_Encoding_Converter (void)
-{
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
diff --git a/ace/Encoding_Converter.h b/ace/Encoding_Converter.h
deleted file mode 100644
index 72cce176244..00000000000
--- a/ace/Encoding_Converter.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// -*- C++ -*-
-
-//=========================================================================
-/**
- * @file Encoding_Converter.h
- *
- * $Id$
- *
- * This class is the base class for all encoding converters that convert
- * to and from UTF-8.
- *
- * @author Chad Elliott <elliott_c@ociweb.com>
- */
-//=========================================================================
-
-#ifndef ACE_ENCODING_CONVERTER_H
-#define ACE_ENCODING_CONVERTER_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Basic_Types.h"
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/ACE_export.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/** The base class for all ACE UTF Encoding Converters.
- * This class provides a generic interface that is used to implement
- * various UTF encoding conversion classes.
- */
-class ACE_Export ACE_Encoding_Converter
-{
-public:
- /// This enum describes the various states that can be returned
- /// from the to_utf8() and from_utf8() methods which depends on
- /// both the source buffer and the size of the target buffer.
- enum Result {CONVERSION_OK,
- SOURCE_EXHAUSTED,
- TARGET_EXHAUSTED,
- SOURCE_ILLEGAL
- };
-
- /// This destructor is here (and virtual) because we have virtual
- /// functions.
- virtual ~ACE_Encoding_Converter (void);
-
- /// Convert the source (which can be in any encoding) to UTF-8 and
- /// store it in the provided target buffer.
- virtual Result to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool strict = true) = 0;
-
- /// Convert the UTF-8 source into an alternate encoding and store it
- /// in the provided target buffer.
- virtual Result from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict = true) = 0;
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
-
-#include /**/ "ace/post.h"
-
-#endif /* ACE_ENCODING_CONVERTER_H */
diff --git a/ace/Encoding_Converter_Factory.cpp b/ace/Encoding_Converter_Factory.cpp
deleted file mode 100644
index d0c99599870..00000000000
--- a/ace/Encoding_Converter_Factory.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-// $Id$
-#include "ace/Encoding_Converter_Factory.h"
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/UTF32_Encoding_Converter.h"
-#include "ace/UTF16_Encoding_Converter.h"
-#include "ace/UTF8_Encoding_Converter.h"
-#include "ace/OS_Memory.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Encoding_Converter*
-ACE_Encoding_Converter_Factory::create (
- const ACE_Byte* source,
- size_t source_size,
- ACE_Encoding_Converter_Factory::Encoding_Hint hint)
-{
-#if defined (ACE_BIG_ENDIAN)
- bool convert_for_bigendian = true;
-#else
- bool convert_for_bigendian = false;
-#endif /* ACE_BIG_ENDIAN */
- ACE_Encoding_Converter* converter = 0;
-
- switch (hint)
- {
- case ACE_UTF_32BE:
- ACE_NEW_RETURN (converter,
- ACE_UTF32_Encoding_Converter (!convert_for_bigendian),
- 0);
- break;
- case ACE_UTF_32LE:
- ACE_NEW_RETURN (converter,
- ACE_UTF32_Encoding_Converter (convert_for_bigendian),
- 0);
- break;
- case ACE_UTF_16BE:
- ACE_NEW_RETURN (converter,
- ACE_UTF16_Encoding_Converter (!convert_for_bigendian),
- 0);
- break;
- case ACE_UTF_16LE:
- ACE_NEW_RETURN (converter,
- ACE_UTF16_Encoding_Converter (convert_for_bigendian),
- 0);
- break;
- case ACE_UTF_8:
- ACE_NEW_RETURN (converter,
- ACE_UTF8_Encoding_Converter,
- 0);
- break;
- default:
- // First check for ASCII since much of ASCII text will appear to
- // convert from UTF-16 to UTF-8.
- converter = ACE_UTF8_Encoding_Converter::encoded (source, source_size);
- if (converter != 0)
- return converter;
-
- // Check for UTF-32
- converter = ACE_UTF32_Encoding_Converter::encoded (source, source_size);
- if (converter != 0)
- return converter;
-
- // Check for UTF-16
- converter = ACE_UTF16_Encoding_Converter::encoded (source, source_size);
- if (converter != 0)
- return converter;
- }
-
- return converter;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
diff --git a/ace/Encoding_Converter_Factory.h b/ace/Encoding_Converter_Factory.h
deleted file mode 100644
index c4505ec8300..00000000000
--- a/ace/Encoding_Converter_Factory.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// -*- C++ -*-
-
-//=========================================================================
-/**
- * @file Encoding_Converter_Factory.h
- *
- * $Id$
- *
- * This class can be used to create encoding converters of various types.
- *
- * @author Chad Elliott <elliott_c@ociweb.com>
- */
-//=========================================================================
-
-#ifndef ACE_ENCODING_CONVERTER_FACTORY_H
-#define ACE_ENCODING_CONVERTER_FACTORY_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Basic_Types.h"
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/ACE_export.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ACE_Encoding_Converter;
-
-/** Create an encoding converter based on the source or hint.
- * This class allows users to avoid knowing any concrete converter types.
- */
-class ACE_Export ACE_Encoding_Converter_Factory
-{
-public:
- /// This enum is used to tell what type of converter to create.
- enum Encoding_Hint { ACE_UTF_32BE, ACE_UTF_32LE,
- ACE_UTF_16BE, ACE_UTF_16LE,
- ACE_UTF_8, ACE_NONE
- };
-
- /// Create an encoding converter based on the source. If a hint is
- /// given, it just creates the specified type of converter without looking
- /// at the source.
- static ACE_Encoding_Converter* create (const ACE_Byte* source,
- size_t source_size,
- Encoding_Hint hint = ACE_NONE);
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
-
-#include /**/ "ace/post.h"
-
-#endif /* ACE_ENCODING_CONVERTER_FACTORY_H */
diff --git a/ace/Env_Value_T.cpp b/ace/Env_Value_T.cpp
index 788bf125fc5..dcab4e0522c 100644
--- a/ace/Env_Value_T.cpp
+++ b/ace/Env_Value_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_ENV_VALUE_T_CPP
-#define ACE_ENV_VALUE_T_CPP
+#if !defined (ACE_ENV_VALUE_T_C)
+#define ACE_ENV_VALUE_T_C
#include "ace/Env_Value_T.h"
@@ -9,4 +9,6 @@
#include "ace/Env_Value_T.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_ENV_VALUE_T_CPP */
+ACE_RCSID(ace, Env_Value_T, "$Id$")
+
+#endif /* ACE_ENV_VALUE_T_C */
diff --git a/ace/Env_Value_T.h b/ace/Env_Value_T.h
index 0a01705dfbb..a88cca9d7e6 100644
--- a/ace/Env_Value_T.h
+++ b/ace/Env_Value_T.h
@@ -27,8 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Env_Value
*
@@ -79,8 +77,6 @@ private:
/// Function to convert a string @a s into type @c T.
template <class T> void ACE_Convert (const ACE_TCHAR *s, T &t);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Env_Value_T.inl"
#endif /* __ACE_INLINE__ */
@@ -89,75 +85,73 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#include "ace/Env_Value_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-template <> inline void
+// Default calls a CTOR on type T of the form 'T::T(const char*)', but
+// users can feel free to create their own specialized conversion
+// functions if necessary, as shown below. Note that for 'char*' the
+// default is used because a simple cast will be performed and no
+// conversion will be necessary.
+
+template <class T> inline void
+ACE_Convert (const ACE_TCHAR *s, T &t)
+{
+ t = T (s);
+}
+
+inline void
ACE_Convert (const ACE_TCHAR *s, ACE_TCHAR *&v)
{
v = (ACE_TCHAR *) s;
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, const ACE_TCHAR *&v)
{
v = (const ACE_TCHAR *) s;
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, short &si)
{
si = static_cast<short> (ACE_OS::strtol (s, 0, 10));
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, u_short &us)
{
us = static_cast <u_short> (ACE_OS::strtol (s, 0, 10));
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, u_int &i)
{
i = static_cast<u_int> (ACE_OS::strtol (s, 0, 10));
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, long &l)
{
l = ACE_OS::strtol (s, 0, 10);
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, int &i)
{
i = static_cast<int> (ACE_OS::strtol (s, 0, 10));
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, u_long &ul)
{
ul = ACE_OS::strtoul (s, 0, 10);
}
-template <> inline void
+inline void
ACE_Convert (const ACE_TCHAR *s, double &d)
{
d = ACE_OS::strtod (s, 0);
}
-// Default calls a CTOR on type T of the form 'T::T(const char*)', but
-// users can feel free to create their own specialized conversion
-// functions if necessary, as shown above. Note that for 'char*' the
-// default is used because a simple cast will be performed and no
-// conversion will be necessary.
-template <class T> inline void
-ACE_Convert (const ACE_TCHAR *s, T &t)
-{
- t = T (s);
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Env_Value_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
diff --git a/ace/Env_Value_T.inl b/ace/Env_Value_T.inl
index 63fe8df1f29..6df7d7a8ce4 100644
--- a/ace/Env_Value_T.inl
+++ b/ace/Env_Value_T.inl
@@ -1,7 +1,5 @@
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE
ACE_Env_Value<T>::operator T (void)
{
@@ -27,34 +25,26 @@ template <class T> ACE_INLINE void
ACE_Env_Value<T>::open (const ACE_TCHAR *varname,
const T &defval)
{
- this->varname_ = varname;
- this->value_ = defval;
+ varname_ = varname;
+ value_ = defval;
this->fetch_value ();
}
template <class T> ACE_INLINE void
ACE_Env_Value<T>::fetch_value (void)
{
-#if defined (ACE_WIN32)
const ACE_TCHAR *env = ACE_OS::getenv (this->varname_);
if (env != 0)
ACE_Convert (env, value_);
-#else
- char *nenv = ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (this->varname_));
- if (nenv != 0)
- ACE_Convert (ACE_TEXT_CHAR_TO_TCHAR (nenv), this->value_);
-#endif
}
template <class T> ACE_INLINE const ACE_TCHAR*
ACE_Env_Value<T>::varname (void) const
{
- return this->varname_;
+ return varname_;
}
template <class T> ACE_INLINE
ACE_Env_Value<T>::~ACE_Env_Value (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Event.cpp b/ace/Event.cpp
index bc21465d27a..fde6f78840c 100644
--- a/ace/Event.cpp
+++ b/ace/Event.cpp
@@ -10,8 +10,6 @@
ACE_RCSID(ace, Event, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Event::ACE_Event (int manual_reset,
int initial_state,
int type,
@@ -87,5 +85,3 @@ ACE_Event::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Event.h b/ace/Event.h
index c4457a7dd9c..1a0070c2970 100644
--- a/ace/Event.h
+++ b/ace/Event.h
@@ -24,8 +24,6 @@
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Event
*
@@ -132,8 +130,6 @@ private:
const ACE_Event &operator= (const ACE_Event &rhs);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Event.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Event.inl b/ace/Event.inl
index 188d7c202cf..fdb9b491650 100644
--- a/ace/Event.inl
+++ b/ace/Event.inl
@@ -1,8 +1,6 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_event_t
ACE_Event::handle (void) const
{
@@ -15,4 +13,3 @@ ACE_Event::handle (ACE_event_t new_handle)
this->handle_ = new_handle;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Event_Handler.cpp b/ace/Event_Handler.cpp
index ccbe06b813f..5ea84a6c9a3 100644
--- a/ace/Event_Handler.cpp
+++ b/ace/Event_Handler.cpp
@@ -6,8 +6,6 @@
#include "ace/OS_Errno.h"
#include "ace/Reactor.h"
#include "ace/Thread_Manager.h"
-/* Need to see if ACE_HAS_BUILTIN_ATOMIC_OP defined */
-#include "ace/Atomic_Op.h"
#if !defined (__ACE_INLINE__)
#include "ace/Event_Handler.inl"
@@ -15,17 +13,15 @@
ACE_RCSID(ace, Event_Handler, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Implement conceptually abstract virtual functions in the base class
// so derived classes don't have to implement unused ones.
ACE_Event_Handler::ACE_Event_Handler (ACE_Reactor *r,
int p)
- : reference_count_ (1),
- priority_ (p),
- reactor_ (r),
- reference_counting_policy_ (Reference_Counting_Policy::DISABLED)
+ : reference_count_ (1)
+ , priority_ (p)
+ , reactor_ (r)
+ , reference_counting_policy_ (Reference_Counting_Policy::DISABLED)
{
// ACE_TRACE ("ACE_Event_Handler::ACE_Event_Handler");
}
@@ -248,21 +244,23 @@ ACE_Event_Handler::reference_counting_policy (void)
return this->reference_counting_policy_;
}
-//#if !defined (ACE_HAS_WINCE)
+#if !defined (ACE_HAS_WINCE)
ACE_THR_FUNC_RETURN
ACE_Event_Handler::read_adapter (void *args)
{
ACE_Event_Handler *this_ptr = static_cast<ACE_Event_Handler *> (args);
- ACE_Reactor *r = this_ptr->reactor ();
- while (this_ptr->handle_input (ACE_STDIN) != -1)
+ ACE_HANDLE handle = this_ptr->get_handle ();
+ if (handle == ACE_INVALID_HANDLE)
+ handle = ACE_STDIN;
+
+ while (this_ptr->handle_input (handle) != -1)
continue;
- this_ptr->handle_close (ACE_STDIN, ACE_Event_Handler::READ_MASK);
- // It's possible for handle_close() to "delete this" so we need to
- // cache the reactor pointer and use it here.
- r->notify ();
+ this_ptr->handle_close (handle,
+ ACE_Event_Handler::READ_MASK);
+ this_ptr->reactor ()->notify ();
return 0;
}
@@ -306,7 +304,7 @@ ACE_Event_Handler::remove_stdin_handler (ACE_Reactor *reactor,
#endif /* ACE_WIN32 */
}
-//#endif /* ACE_HAS_WINCE */
+#endif /* ACE_HAS_WINCE */
ACE_Event_Handler_var::ACE_Event_Handler_var (void)
: ptr_ (0)
@@ -406,17 +404,3 @@ ACE_Notification_Buffer::ACE_Notification_Buffer (ACE_Event_Handler *eh,
{
ACE_TRACE ("ACE_Notification_Buffer::ACE_Notification_Buffer");
}
-
-// ACE_HAS_BUILTIN_ATOMIC_OP triggers specialization of these, so the
-// instantiations aren't needed here.
-#if !defined (ACE_HAS_BUILTIN_ATOMIC_OP)
-# if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Atomic_Op<ACE_SYNCH_MUTEX, long>;
-template class ACE_Atomic_Op_Ex<ACE_SYNCH_MUTEX, long>;
-# elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-# pragma instantiate ACE_Atomic_Op<ACE_SYNCH_MUTEX, long>
-# pragma instantiate ACE_Atomic_Op_Ex<ACE_SYNCH_MUTEX, long>
-# endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-#endif /* ACE_HAS_BUILTIN_ATOMIC_OP */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Event_Handler.h b/ace/Event_Handler.h
index b6b066cb379..c0aea234a72 100644
--- a/ace/Event_Handler.h
+++ b/ace/Event_Handler.h
@@ -24,8 +24,6 @@
#include "ace/Atomic_Op.h"
#include "ace/Synch_Traits.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
class ACE_Message_Block;
class ACE_Reactor;
@@ -125,7 +123,7 @@ public:
virtual int handle_exit (ACE_Process *);
/// Called when a <handle_*()> method returns -1 or when the
- /// <remove_handler> method is called on an ACE_Reactor. The
+ /// <remove_handler> method is called on an <ACE_Reactor>. The
/// <close_mask> indicates which event has triggered the
/// <handle_close> method callback on a particular <handle>.
virtual int handle_close (ACE_HANDLE handle,
@@ -145,18 +143,16 @@ public:
/// The application takes responsibility of resuming the handler
ACE_APPLICATION_RESUMES_HANDLER
};
- /**
- * Called to figure out whether the handler needs to resumed by the
+ /* Called to figure out whether the handler needs to resumed by the
* reactor or the application can take care of it. The default
* value of 0 would be returned which would allow the reactor to
* take care of resumption of the handler. The application can
* return a value more than zero and decide to resume the handler
* themseleves.
- *
- * @note This method is only useful for the ACE_TP_Reactor. Sad
- * that we have to have this method in a class that is supposed to
- * be used across different components in ACE.
*/
+ // @@ NOTE: This method is only useful for the ACE_TP_Reactor. Sad
+ // that we have to have this method in a class that is supposed to
+ // be used across different componets in ACE.
virtual int resume_handler (void);
virtual int handle_qos (ACE_HANDLE = ACE_INVALID_HANDLE);
@@ -172,14 +168,14 @@ public:
/// Get only the reactor's timer related interface.
virtual ACE_Reactor_Timer_Interface *reactor_timer_interface (void) const;
- //#if !defined (ACE_HAS_WINCE)
+#if !defined (ACE_HAS_WINCE)
/**
* Used to read from non-socket ACE_HANDLEs in our own thread to
* work around Win32 limitations that don't allow us to <select> on
* non-sockets (such as ACE_STDIN). This is commonly used in
* situations where the Reactor is used to demultiplex read events
* on ACE_STDIN on UNIX. Note that <event_handler> must be a
- * subclass of ACE_Event_Handler. If the <get_handle> method of
+ * subclass of <ACE_Event_Handler>. If the <get_handle> method of
* this event handler returns <ACE_INVALID_HANDLE> we default to
* reading from ACE_STDIN.
*/
@@ -198,7 +194,7 @@ public:
/// Performs the inverse of the <register_stdin_handler> method.
static int remove_stdin_handler (ACE_Reactor *reactor,
ACE_Thread_Manager *thr_mgr);
- //#endif /* ACE_HAS_WINCE */
+#endif /* ACE_HAS_WINCE */
/// Reference count type.
typedef long Reference_Count;
@@ -380,8 +376,6 @@ public:
ACE_Reactor_Mask mask_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Event_Handler.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Event_Handler.inl b/ace/Event_Handler.inl
index 75f2cd12aa5..d07de45a072 100644
--- a/ace/Event_Handler.inl
+++ b/ace/Event_Handler.inl
@@ -1,12 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Notification_Buffer::~ACE_Notification_Buffer (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Event_Handler_T.cpp b/ace/Event_Handler_T.cpp
index 51a03f62310..cbe9676a58e 100644
--- a/ace/Event_Handler_T.cpp
+++ b/ace/Event_Handler_T.cpp
@@ -17,7 +17,6 @@
#include "ace/Event_Handler_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Event_Handler_T)
@@ -118,8 +117,6 @@ ACE_Event_Handler_T<T>::handle_signal (int signum, siginfo_t *s, ucontext_t *u)
return this->sig_handler_ == 0 ? 0 : (this->op_handler_->*sig_handler_) (signum, s, u);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TEMPLATE_TYPEDEFS */
#endif /* ACE_EVENT_HANDLER_T_CPP */
diff --git a/ace/Event_Handler_T.h b/ace/Event_Handler_T.h
index 71c97bcf4a8..1352a65d486 100644
--- a/ace/Event_Handler_T.h
+++ b/ace/Event_Handler_T.h
@@ -22,8 +22,6 @@
#if defined (ACE_HAS_TEMPLATE_TYPEDEFS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Event_Handler_T
*
@@ -172,8 +170,6 @@ protected:
GET_HANDLE get_handle_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Event_Handler_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Event_Handler_T.inl b/ace/Event_Handler_T.inl
index 5d2e31ab81e..f5d85f862b5 100644
--- a/ace/Event_Handler_T.inl
+++ b/ace/Event_Handler_T.inl
@@ -2,9 +2,9 @@
//
// $Id$
+
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template<class T> ACE_INLINE void
ACE_Event_Handler_T<T>::op_handler (T *op)
@@ -131,5 +131,3 @@ ACE_Event_Handler_T<T>::sig_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::SIG_HA
ACE_TRACE ("ACE_Event_Handler_T<T>::sig_handler");
this->sig_handler_ = h;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO.cpp b/ace/FIFO.cpp
index 3f2a4c5115b..89c6019e449 100644
--- a/ace/FIFO.cpp
+++ b/ace/FIFO.cpp
@@ -1,3 +1,4 @@
+// FIFO.cpp
// $Id$
#include "ace/FIFO.h"
@@ -14,8 +15,6 @@
ACE_RCSID(ace, FIFO, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FIFO)
void
@@ -31,7 +30,7 @@ ACE_FIFO::dump (void) const
}
int
-ACE_FIFO::open (const ACE_TCHAR *r, int flags, mode_t perms,
+ACE_FIFO::open (const ACE_TCHAR *r, int flags, int perms,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO::open");
@@ -53,8 +52,8 @@ ACE_FIFO::open (const ACE_TCHAR *r, int flags, mode_t perms,
}
ACE_FIFO::ACE_FIFO (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
+ int flags,
+ int perms,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO::ACE_FIFO");
@@ -80,5 +79,3 @@ ACE_FIFO::close (void)
}
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO.h b/ace/FIFO.h
index 066e3e98035..1b88db74a1d 100644
--- a/ace/FIFO.h
+++ b/ace/FIFO.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//==========================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/IPC_SAP.h"
#include "ace/os_include/os_limits.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FIFO
*
@@ -41,7 +39,7 @@ class ACE_Export ACE_FIFO : public ACE_IPC_SAP
public:
/// Open up the named pipe on the <rendezvous> in accordance with the
/// flags.
- int open (const ACE_TCHAR *rendezvous, int flags, mode_t perms,
+ int open (const ACE_TCHAR *rendezvous, int flags, int perms,
LPSECURITY_ATTRIBUTES sa = 0);
/// Close down the ACE_FIFO without removing the rendezvous point.
@@ -67,7 +65,7 @@ protected:
/// Open up the named pipe on the <rendezvous> in accordance with the
/// flags.
- ACE_FIFO (const ACE_TCHAR *rendezvous, int flags, mode_t perms,
+ ACE_FIFO (const ACE_TCHAR *rendezvous, int flags, int perms,
LPSECURITY_ATTRIBUTES sa = 0);
private:
@@ -75,8 +73,6 @@ private:
ACE_TCHAR rendezvous_[MAXPATHLEN + 1];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FIFO.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FIFO.inl b/ace/FIFO.inl
index 149ed11318b..0c91ceaca3f 100644
--- a/ace/FIFO.inl
+++ b/ace/FIFO.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/OS_NS_unistd.h"
+// FIFO.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_unistd.h"
ACE_INLINE int
ACE_FIFO::get_local_addr (const ACE_TCHAR *&r) const
@@ -18,8 +17,6 @@ ACE_INLINE int
ACE_FIFO::remove (void)
{
ACE_TRACE ("ACE_FIFO::remove");
- int const result = this->close ();
+ int result = this->close ();
return ACE_OS::unlink (this->rendezvous_) == -1 || result == -1 ? -1 : 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Recv.cpp b/ace/FIFO_Recv.cpp
index 50a39067bb0..4aa92e29acd 100644
--- a/ace/FIFO_Recv.cpp
+++ b/ace/FIFO_Recv.cpp
@@ -1,3 +1,4 @@
+// FIFO_Recv.cpp
// $Id$
#include "ace/FIFO_Recv.h"
@@ -10,8 +11,6 @@
ACE_RCSID(ace, FIFO_Recv, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Recv)
void
@@ -44,9 +43,9 @@ ACE_FIFO_Recv::close (void)
int
ACE_FIFO_Recv::open (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
- int persistent,
+ int flags,
+ int perms,
+ int persistent,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Recv::open");
@@ -56,7 +55,7 @@ ACE_FIFO_Recv::open (const ACE_TCHAR *fifo_name,
else if (this->disable (ACE_NONBLOCK) == -1)
return -1;
else if (persistent
- && (this->aux_handle_ = ACE_OS::open (fifo_name, O_WRONLY, 0, sa)) == ACE_INVALID_HANDLE)
+ && (this->aux_handle_ = ACE_OS::open (fifo_name, O_WRONLY, 0, sa)) == ACE_INVALID_HANDLE)
return -1;
else
return this->get_handle () == ACE_INVALID_HANDLE ? -1 : 0;
@@ -69,20 +68,18 @@ ACE_FIFO_Recv::ACE_FIFO_Recv (void)
}
ACE_FIFO_Recv::ACE_FIFO_Recv (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
- int persistent,
+ int flags,
+ int perms,
+ int persistent,
LPSECURITY_ATTRIBUTES sa)
: aux_handle_ (ACE_INVALID_HANDLE)
{
ACE_TRACE ("ACE_FIFO_Recv::ACE_FIFO_Recv");
if (this->ACE_FIFO_Recv::open (fifo_name,
- flags,
- perms,
- persistent,
+ flags,
+ perms,
+ persistent,
sa) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_FIFO_Recv")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Recv.h b/ace/FIFO_Recv.h
index fc4ec2222f3..ea1b391edb9 100644
--- a/ace/FIFO_Recv.h
+++ b/ace/FIFO_Recv.h
@@ -25,8 +25,6 @@
#include "ace/os_include/os_fcntl.h"
#include "ace/Default_Constants.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FIFO_Recv
*
@@ -43,14 +41,14 @@ public:
/// Open up a bytestream named pipe for reading.
ACE_FIFO_Recv (const ACE_TCHAR *rendezvous,
int flags = O_CREAT | O_RDONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
int persistent = 1,
LPSECURITY_ATTRIBUTES sa = 0);
/// Open up a bytestream named pipe for reading.
int open (const ACE_TCHAR *rendezvous,
int flags = O_CREAT | O_RDONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
int persistent = 1,
LPSECURITY_ATTRIBUTES sa = 0);
@@ -74,8 +72,6 @@ private:
ACE_HANDLE aux_handle_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FIFO_Recv.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FIFO_Recv.inl b/ace/FIFO_Recv.inl
index b5cf96cb56d..5817a486624 100644
--- a/ace/FIFO_Recv.inl
+++ b/ace/FIFO_Recv.inl
@@ -1,12 +1,11 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// FIFO_Recv.i
+
#include "ace/ACE.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_FIFO_Recv::recv (void *buf, size_t len)
{
@@ -20,5 +19,3 @@ ACE_FIFO_Recv::recv_n (void *buf, size_t n)
ACE_TRACE ("ACE_FIFO_Recv::recv_n");
return ACE::recv_n (this->get_handle (), buf, n);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Recv_Msg.cpp b/ace/FIFO_Recv_Msg.cpp
index 7aa5b1d6721..de6055f5707 100644
--- a/ace/FIFO_Recv_Msg.cpp
+++ b/ace/FIFO_Recv_Msg.cpp
@@ -1,3 +1,4 @@
+// FIFO_Recv_Msg.cpp
// $Id$
#include "ace/FIFO_Recv_Msg.h"
@@ -10,8 +11,6 @@
ACE_RCSID(ace, FIFO_Recv_Msg, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Recv_Msg)
void
@@ -29,17 +28,17 @@ ACE_FIFO_Recv_Msg::dump (void) const
int
ACE_FIFO_Recv_Msg::open (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
- int persistent,
+ int flags,
+ int perms,
+ int persistent,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Recv_Msg::open");
return ACE_FIFO_Recv::open (fifo_name,
- flags,
- perms,
- persistent,
+ flags,
+ perms,
+ persistent,
sa);
}
@@ -49,19 +48,17 @@ ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (void)
}
ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
- int persistent,
+ int flags,
+ int perms,
+ int persistent,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg");
if (this->ACE_FIFO_Recv_Msg::open (fifo_name,
- flags,
- perms,
- persistent,
+ flags,
+ perms,
+ persistent,
sa) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_FIFO_Recv_Msg")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Recv_Msg.h b/ace/FIFO_Recv_Msg.h
index b1c7afe3eb3..cc35bc22423 100644
--- a/ace/FIFO_Recv_Msg.h
+++ b/ace/FIFO_Recv_Msg.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls
class ACE_Str_Buf;
@@ -52,14 +50,14 @@ public:
/// Open up a record-oriented named pipe for reading.
ACE_FIFO_Recv_Msg (const ACE_TCHAR *rendezvous,
int flags = O_CREAT | O_RDONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
int persistent = 1,
LPSECURITY_ATTRIBUTES sa = 0);
/// Open up a record-oriented named pipe for reading.
int open (const ACE_TCHAR *rendezvous,
int flags = O_CREAT | O_RDONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
int persistent = 1,
LPSECURITY_ATTRIBUTES sa = 0);
@@ -128,8 +126,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FIFO_Recv_Msg.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FIFO_Recv_Msg.inl b/ace/FIFO_Recv_Msg.inl
index bab21a7e20e..c5a81e02a62 100644
--- a/ace/FIFO_Recv_Msg.inl
+++ b/ace/FIFO_Recv_Msg.inl
@@ -2,6 +2,8 @@
//
// $Id$
+// FIFO_Recv_Msg.i
+
#include "ace/Min_Max.h"
#include "ace/OS_NS_stropts.h"
@@ -9,8 +11,6 @@
#include "ace/OS_NS_unistd.h"
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_FIFO_Recv_Msg::recv (ACE_Str_Buf &recv_msg)
{
@@ -26,8 +26,8 @@ ACE_FIFO_Recv_Msg::recv (ACE_Str_Buf &recv_msg)
return recv_msg.len;
#else /* Do the ol' 2-read trick... */
if (ACE_OS::read (this->get_handle (),
- (char *) &recv_msg.len,
- sizeof recv_msg.len) != sizeof recv_msg.len)
+ (char *) &recv_msg.len,
+ sizeof recv_msg.len) != sizeof recv_msg.len)
return -1;
else
{
@@ -77,8 +77,8 @@ ACE_FIFO_Recv_Msg::recv (void *buf, size_t max_len)
#if defined (ACE_HAS_STREAM_PIPES)
ACE_INLINE ssize_t
ACE_FIFO_Recv_Msg::recv (ACE_Str_Buf *data,
- ACE_Str_Buf *cntl,
- int *flags)
+ ACE_Str_Buf *cntl,
+ int *flags)
{
ACE_TRACE ("ACE_FIFO_Recv_Msg::recv");
if (ACE_OS::getmsg (this->get_handle (),
@@ -92,9 +92,9 @@ ACE_FIFO_Recv_Msg::recv (ACE_Str_Buf *data,
ACE_INLINE ssize_t
ACE_FIFO_Recv_Msg::recv (int *band,
- ACE_Str_Buf *data,
- ACE_Str_Buf *cntl,
- int *flags)
+ ACE_Str_Buf *data,
+ ACE_Str_Buf *cntl,
+ int *flags)
{
ACE_TRACE ("ACE_FIFO_Recv_Msg::recv");
if (ACE_OS::getpmsg (this->get_handle (),
@@ -107,5 +107,3 @@ ACE_FIFO_Recv_Msg::recv (int *band,
return (cntl == 0 ? 0 : cntl->len) + (data == 0 ? 0 : data->len);
}
#endif /* ACE_HAS_STREAM_PIPES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Send.cpp b/ace/FIFO_Send.cpp
index c29871430ed..9e347ef67ee 100644
--- a/ace/FIFO_Send.cpp
+++ b/ace/FIFO_Send.cpp
@@ -1,3 +1,4 @@
+// FIFO_Send.cpp
// $Id$
#include "ace/FIFO_Send.h"
@@ -9,8 +10,6 @@
ACE_RCSID(ace, FIFO_Send, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Send)
void
@@ -30,7 +29,7 @@ ACE_FIFO_Send::ACE_FIFO_Send (void)
int
ACE_FIFO_Send::open (const ACE_TCHAR *rendezvous_name,
int flags,
- mode_t perms,
+ int perms,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Send::open");
@@ -42,7 +41,7 @@ ACE_FIFO_Send::open (const ACE_TCHAR *rendezvous_name,
ACE_FIFO_Send::ACE_FIFO_Send (const ACE_TCHAR *fifo_name,
int flags,
- mode_t perms,
+ int perms,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Send::ACE_FIFO_Send");
@@ -54,5 +53,3 @@ ACE_FIFO_Send::ACE_FIFO_Send (const ACE_TCHAR *fifo_name,
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_FIFO_Send::ACE_FIFO_Send")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Send.h b/ace/FIFO_Send.h
index 45e02c87c38..125f1a42e15 100644
--- a/ace/FIFO_Send.h
+++ b/ace/FIFO_Send.h
@@ -25,8 +25,6 @@
#include "ace/os_include/os_fcntl.h"
#include "ace/Default_Constants.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FIFO_Send
*
@@ -42,13 +40,13 @@ public:
/// Open up a bytestream named pipe for writing.
ACE_FIFO_Send (const ACE_TCHAR *rendezvous,
int flags = O_WRONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
/// Open up a bytestream named pipe for writing.
int open (const ACE_TCHAR *rendezvous,
int flags = O_WRONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
/// Send <buf> of up to <len> bytes.
@@ -64,8 +62,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FIFO_Send.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FIFO_Send.inl b/ace/FIFO_Send.inl
index 12491058e2c..eb503d9b831 100644
--- a/ace/FIFO_Send.inl
+++ b/ace/FIFO_Send.inl
@@ -1,12 +1,11 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// FIFO_Send.i
+
#include "ace/ACE.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_FIFO_Send::send (const void *buf, size_t len)
{
@@ -20,5 +19,3 @@ ACE_FIFO_Send::send_n (const void *buf, size_t n)
ACE_TRACE ("ACE_FIFO_Send::send_n");
return ACE::send_n (this->get_handle (), buf, n);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Send_Msg.cpp b/ace/FIFO_Send_Msg.cpp
index f39c5d865e9..1575f7ae98c 100644
--- a/ace/FIFO_Send_Msg.cpp
+++ b/ace/FIFO_Send_Msg.cpp
@@ -11,8 +11,6 @@
ACE_RCSID(ace, FIFO_Send_Msg, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Send_Msg)
void
@@ -59,8 +57,8 @@ ACE_FIFO_Send_Msg::ACE_FIFO_Send_Msg (void)
int
ACE_FIFO_Send_Msg::open (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
+ int flags,
+ int perms,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Send_Msg::open");
@@ -68,13 +66,11 @@ ACE_FIFO_Send_Msg::open (const ACE_TCHAR *fifo_name,
}
ACE_FIFO_Send_Msg::ACE_FIFO_Send_Msg (const ACE_TCHAR *fifo_name,
- int flags,
- mode_t perms,
+ int flags,
+ int perms,
LPSECURITY_ATTRIBUTES sa)
{
ACE_TRACE ("ACE_FIFO_Send_Msg::ACE_FIFO_Send_Msg");
if (this->ACE_FIFO_Send_Msg::open (fifo_name, flags, perms, sa) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_FIFO_Send_Msg")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FIFO_Send_Msg.h b/ace/FIFO_Send_Msg.h
index 8272ec6c819..b7f0e104177 100644
--- a/ace/FIFO_Send_Msg.h
+++ b/ace/FIFO_Send_Msg.h
@@ -25,8 +25,6 @@
# include "ace/OS_NS_stropts.h"
#endif /* ACE_HAS_STREAM_PIPES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward Decls
class ACE_Str_Buf;
@@ -46,13 +44,13 @@ public:
/// Open up a record-oriented named pipe for writing.
ACE_FIFO_Send_Msg (const ACE_TCHAR *rendezvous,
int flags = O_WRONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
/// Open up a record-oriented named pipe for writing.
int open (const ACE_TCHAR *rendezvous,
int flags = O_WRONLY,
- mode_t perms = ACE_DEFAULT_FILE_PERMS,
+ int perms = ACE_DEFAULT_FILE_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
/// Send <buf> of up to <len> bytes.
@@ -81,8 +79,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FIFO_Send_Msg.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FIFO_Send_Msg.inl b/ace/FIFO_Send_Msg.inl
index 74392656597..34bb88aabc3 100644
--- a/ace/FIFO_Send_Msg.inl
+++ b/ace/FIFO_Send_Msg.inl
@@ -4,8 +4,6 @@
#include "ace/OS_NS_stropts.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_FIFO_Send_Msg::send (const void *buf, size_t len)
{
@@ -18,8 +16,8 @@ ACE_FIFO_Send_Msg::send (const void *buf, size_t len)
#if defined (ACE_HAS_STREAM_PIPES)
ACE_INLINE ssize_t
ACE_FIFO_Send_Msg::send (const ACE_Str_Buf *data,
- const ACE_Str_Buf *cntl,
- int flags)
+ const ACE_Str_Buf *cntl,
+ int flags)
{
ACE_TRACE ("ACE_FIFO_Send_Msg::send");
if (ACE_OS::putmsg (this->get_handle (),
@@ -33,9 +31,9 @@ ACE_FIFO_Send_Msg::send (const ACE_Str_Buf *data,
ACE_INLINE ssize_t
ACE_FIFO_Send_Msg::send (int band,
- const ACE_Str_Buf *data,
- const ACE_Str_Buf *cntl,
- int flags)
+ const ACE_Str_Buf *data,
+ const ACE_Str_Buf *cntl,
+ int flags)
{
ACE_TRACE ("ACE_FIFO_Send_Msg::send");
@@ -49,5 +47,3 @@ ACE_FIFO_Send_Msg::send (int band,
return (cntl == 0 ? 0 : cntl->len) + (data == 0 ? 0 : data->len);
}
#endif /* ACE_HAS_STREAM_PIPES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE.cpp b/ace/FILE.cpp
index d2578b42a04..de7c294cc6e 100644
--- a/ace/FILE.cpp
+++ b/ace/FILE.cpp
@@ -15,8 +15,6 @@
ACE_RCSID(ace, FILE, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FILE)
void
@@ -147,5 +145,3 @@ ACE_FILE::unlink (void)
return ACE_OS::unlink (this->addr_.get_path_name ());
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE.h b/ace/FILE.h
index ba791f46428..9291e24dd61 100644
--- a/ace/FILE.h
+++ b/ace/FILE.h
@@ -35,8 +35,6 @@
#define ACE_FILE_STREAM ACE_FILE_IO, ACE_FILE_Addr
#endif /* ACE_TEMPLATE_TYPEDEFS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FILE_Info
*
@@ -129,8 +127,6 @@ protected:
ACE_FILE_Addr addr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FILE.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FILE.inl b/ace/FILE.inl
index fdd65029d3a..934f5d7aa98 100644
--- a/ace/FILE.inl
+++ b/ace/FILE.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_FILE::disable (int signum) const
{
@@ -15,4 +12,3 @@ ACE_FILE::disable (int signum) const
#endif /* ACE_WIN32 */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE_Addr.cpp b/ace/FILE_Addr.cpp
index 09d87c0d9b1..6378b9aefa5 100644
--- a/ace/FILE_Addr.cpp
+++ b/ace/FILE_Addr.cpp
@@ -13,8 +13,6 @@
ACE_RCSID(ace, FILE_Addr, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FILE_Addr)
ACE_FILE_Addr::ACE_FILE_Addr (void)
@@ -125,4 +123,3 @@ ACE_FILE_Addr::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE_Addr.h b/ace/FILE_Addr.h
index 815319a834b..c1955e7994a 100644
--- a/ace/FILE_Addr.h
+++ b/ace/FILE_Addr.h
@@ -24,8 +24,6 @@
#include "ace/Flag_Manip.h"
#include "ace/os_include/os_dirent.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FILE_Addr
*
@@ -80,8 +78,6 @@ private:
ACE_TCHAR filename_[MAXPATHLEN + 1];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FILE_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FILE_Addr.inl b/ace/FILE_Addr.inl
index e03cd2ab156..cf6432bcefa 100644
--- a/ace/FILE_Addr.inl
+++ b/ace/FILE_Addr.inl
@@ -5,8 +5,6 @@
#include "ace/SString.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Compare two addresses for equality.
ACE_INLINE bool
@@ -20,7 +18,7 @@ ACE_FILE_Addr::operator == (const ACE_FILE_Addr &sap) const
ACE_INLINE bool
ACE_FILE_Addr::operator != (const ACE_FILE_Addr &sap) const
{
- return !((*this) == sap); // This is lazy, of course... ;-)
+ return !((*this) == sap); // This is lazy, of course... ;-)
}
// Return the path name used for the rendezvous point.
@@ -30,5 +28,3 @@ ACE_FILE_Addr::get_path_name (void) const
{
return this->filename_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE_Connector.cpp b/ace/FILE_Connector.cpp
index c3991c309ea..b1854e54b17 100644
--- a/ace/FILE_Connector.cpp
+++ b/ace/FILE_Connector.cpp
@@ -11,8 +11,6 @@
ACE_RCSID(ace, FILE_Connector, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FILE_Connector)
void
@@ -67,7 +65,7 @@ ACE_FILE_Connector::connect (ACE_FILE_IO &new_io,
handle = ACE_OS::mkstemp (filename); // mkstemp() replaces "XXXXXX"
if (handle == ACE_INVALID_HANDLE
- || new_io.addr_.set (ACE_TEXT_CHAR_TO_TCHAR (filename)) != 0)
+ || new_io.addr_.set (ACE_TEXT_TO_TCHAR_IN (filename)) != 0)
return -1;
new_io.set_handle (handle);
@@ -86,5 +84,3 @@ ACE_FILE_Connector::connect (ACE_FILE_IO &new_io,
new_io.set_handle (handle);
return handle == ACE_INVALID_HANDLE ? -1 : 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE_Connector.h b/ace/FILE_Connector.h
index 038f97ee5a1..f59f13f4413 100644
--- a/ace/FILE_Connector.h
+++ b/ace/FILE_Connector.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FILE_Connector
*
@@ -105,8 +103,6 @@ public:
typedef ACE_FILE_IO PEER_STREAM;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FILE_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FILE_Connector.inl b/ace/FILE_Connector.inl
index 7fbc9db5b33..5a3e909072d 100644
--- a/ace/FILE_Connector.inl
+++ b/ace/FILE_Connector.inl
@@ -1,23 +1,22 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-// Creates a Local ACE_FILE.
+// FILE_Connector.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Creates a Local ACE_FILE.
ACE_INLINE
ACE_FILE_Connector::ACE_FILE_Connector (ACE_FILE_IO &new_io,
- const ACE_FILE_Addr &remote_sap,
- ACE_Time_Value *timeout,
- const ACE_Addr &local_sap,
- int reuse_addr,
- int flags,
- int perms)
+ const ACE_FILE_Addr &remote_sap,
+ ACE_Time_Value *timeout,
+ const ACE_Addr &local_sap,
+ int reuse_addr,
+ int flags,
+ int perms)
{
ACE_TRACE ("ACE_FILE_Connector::ACE_FILE_Connector");
if (this->connect (new_io, remote_sap, timeout, local_sap,
- reuse_addr, flags, perms) == ACE_IO_SAP::INVALID_HANDLE
+ reuse_addr, flags, perms) == ACE_IO_SAP::INVALID_HANDLE
&& timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("address %s, %p\n"),
@@ -32,5 +31,3 @@ ACE_FILE_Connector::reset_new_handle (ACE_HANDLE handle)
// Nothing to do here since the handle is not a socket
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE_IO.cpp b/ace/FILE_IO.cpp
index 29d818f4f10..7528447b7fd 100644
--- a/ace/FILE_IO.cpp
+++ b/ace/FILE_IO.cpp
@@ -1,3 +1,4 @@
+// FILE_IO.cpp
// $Id$
#include "ace/FILE_IO.h"
@@ -5,7 +6,6 @@
#include "ace/Log_Msg.h"
#include "ace/OS_NS_sys_stat.h"
#include "ace/OS_Memory.h"
-#include "ace/Truncate.h"
#if !defined (__ACE_INLINE__)
#include "ace/FILE_IO.inl"
@@ -13,8 +13,6 @@
ACE_RCSID(ace, FILE_IO, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_FILE_IO)
void
@@ -46,7 +44,7 @@ ACE_FILE_IO::send (size_t n, ...) const
{
ACE_TRACE ("ACE_FILE_IO::send");
va_list argp;
- int total_tuples = ACE_Utils::Truncate (n / 2);
+ size_t total_tuples = n / 2;
iovec *iovp = 0;
#if defined (ACE_HAS_ALLOCA)
iovp = (iovec *) alloca (total_tuples * sizeof (iovec));
@@ -58,7 +56,7 @@ ACE_FILE_IO::send (size_t n, ...) const
va_start (argp, n);
- for (int i = 0; i < total_tuples; i++)
+ for (size_t i = 0; i < total_tuples; i++)
{
iovp[i].iov_base = va_arg (argp, char *);
iovp[i].iov_len = va_arg (argp, int);
@@ -85,7 +83,7 @@ ACE_FILE_IO::recv (size_t n, ...) const
{
ACE_TRACE ("ACE_FILE_IO::recv");
va_list argp;
- int total_tuples = ACE_Utils::Truncate (n / 2);
+ size_t total_tuples = n / 2;
iovec *iovp = 0;
#if defined (ACE_HAS_ALLOCA)
iovp = (iovec *) alloca (total_tuples * sizeof (iovec));
@@ -97,7 +95,7 @@ ACE_FILE_IO::recv (size_t n, ...) const
va_start (argp, n);
- for (int i = 0; i < total_tuples; i++)
+ for (size_t i = 0; i < total_tuples; i++)
{
iovp[i].iov_base = va_arg (argp, char *);
iovp[i].iov_len = va_arg (argp, int);
@@ -138,5 +136,3 @@ ACE_FILE_IO::recvv (iovec *io_vec)
else
return length;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FILE_IO.h b/ace/FILE_IO.h
index ada2266c618..0bc7c98e187 100644
--- a/ace/FILE_IO.h
+++ b/ace/FILE_IO.h
@@ -30,8 +30,6 @@
# include "ace/OS_NS_stropts.h"
#endif /* ACE_HAS_STREAM_PIPES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_Message_Block;
class ACE_Time_Value;
@@ -160,8 +158,6 @@ public:
typedef ACE_FILE_Addr PEER_ADDR;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/FILE_IO.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/FILE_IO.inl b/ace/FILE_IO.inl
index 7db33a0c717..a55024798b0 100644
--- a/ace/FILE_IO.inl
+++ b/ace/FILE_IO.inl
@@ -1,13 +1,12 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// FILE_IO.i
+
#include "ace/ACE.h"
#include "ace/OS_NS_sys_uio.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_FILE_IO::sendv_n (const iovec iov[], int n) const
{
@@ -148,5 +147,3 @@ ACE_FILE_IO::recv (void *buf, size_t n,
}
#endif /* ACE_HAS_STREAM_PIPES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/File_Lock.cpp b/ace/File_Lock.cpp
index 038e0224820..5f227e5c4e8 100644
--- a/ace/File_Lock.cpp
+++ b/ace/File_Lock.cpp
@@ -9,8 +9,6 @@
ACE_RCSID(ace, File_Lock, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_File_Lock)
void
@@ -69,4 +67,14 @@ ACE_File_Lock::~ACE_File_Lock (void)
this->remove (this->unlink_in_destructor_);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+// These are instantiated both with and without ACE_HAS_THREADS.
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+
+// template class ACE_Guard<ACE_File_Lock>;
+
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+
+// #pragma instantiate ACE_Guard<ACE_File_Lock>
+
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/ace/File_Lock.h b/ace/File_Lock.h
index 686fee3e0df..4fc5ee2889e 100644
--- a/ace/File_Lock.h
+++ b/ace/File_Lock.h
@@ -14,7 +14,12 @@
#define ACE_FILE_LOCK_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,8 +27,6 @@
#include "ace/OS_NS_stdio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_File_Lock
*
@@ -32,7 +35,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* Allows us to "adapt" the UNIX file locking mechanisms to work
* with all of our Guard stuff...
*/
-class ACE_Export ACE_File_Lock
+class ACE_Threads_Export ACE_File_Lock
{
public:
/**
@@ -55,7 +58,7 @@ public:
int unlink_in_destructor = 1);
/// Open the <filename> with <flags> and <mode> and set the result to
- /// <handle_>.
+ /// <handle_>.
int open (const ACE_TCHAR *filename,
int flags,
mode_t mode = 0);
@@ -120,11 +123,11 @@ public:
*/
int tryacquire_read (short whence = 0, off_t start = 0, off_t len = 1);
- /// Get underlying ACE_HANDLE for the file.
+ /// Get underlying <ACE_HANDLE> for the file.
ACE_HANDLE get_handle (void) const;
/**
- * Set underlying ACE_HANDLE. Note that this method assumes
+ * Set underlying <ACE_HANDLE>. Note that this method assumes
* ownership of the <handle> and will close it down in <remove>. If
* you want the <handle> to stay open when <remove> is called make
* sure to call <dup> on the <handle> before closing it. You are
@@ -160,8 +163,6 @@ private:
ACE_File_Lock (const ACE_File_Lock &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/File_Lock.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/File_Lock.inl b/ace/File_Lock.inl
index be9c149b8d8..a0dc79dcc7b 100644
--- a/ace/File_Lock.inl
+++ b/ace/File_Lock.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_File_Lock::acquire_read (short whence, off_t start, off_t len)
{
@@ -90,5 +87,3 @@ ACE_File_Lock::set_handle (ACE_HANDLE h)
this->lock_.handle_ = h;
this->removed_ = 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Filecache.cpp b/ace/Filecache.cpp
index e709b2bf358..ace8bc594a4 100644
--- a/ace/Filecache.cpp
+++ b/ace/Filecache.cpp
@@ -42,8 +42,6 @@ ACE_RCSID (ace,
// static const int WCOPY_FLAGS = O_RDWR | O_CREAT | O_TRUNC;
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// static data members
ACE_Filecache *ACE_Filecache::cvf_ = 0;
@@ -761,5 +759,3 @@ template class ACE_Hash_Map_Reverse_Iterator_Ex<const ACE_TCHAR *, ACE_Filecache
#pragma instantiate ACE_Hash_Map_Iterator_Ex<const ACE_TCHAR *, ACE_Filecache_Object *, ACE_Hash<const ACE_TCHAR *>, ACE_Equal_To<const ACE_TCHAR *>, ACE_Null_Mutex>
#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<const ACE_TCHAR *, ACE_Filecache_Object *, ACE_Hash<const ACE_TCHAR *>, ACE_Equal_To<const ACE_TCHAR *>, ACE_Null_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Filecache.h b/ace/Filecache.h
index f6c1bef7b3b..c6986bd465d 100644
--- a/ace/Filecache.h
+++ b/ace/Filecache.h
@@ -28,8 +28,6 @@
#include "ace/RW_Thread_Mutex.h"
#include "ace/OS_NS_sys_stat.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
enum ACE_Filecache_Flag
{
ACE_NOMAP = 0,
@@ -346,7 +344,6 @@ private:
ACE_SYNCH_RW_MUTEX &lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
diff --git a/ace/FlReactor.cpp b/ace/FlReactor.cpp
index f45ce67a994..1eed0acf20d 100644
--- a/ace/FlReactor.cpp
+++ b/ace/FlReactor.cpp
@@ -6,14 +6,12 @@ ACE_RCSID(ace, FlReactor, "$Id$")
#include /**/ <FL/Fl.h>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_FlReactor)
// Must be called with lock held
ACE_FlReactor::ACE_FlReactor (size_t size,
- int restart,
- ACE_Sig_Handler *h)
+ int restart,
+ ACE_Sig_Handler *h)
: ACE_Select_Reactor (size, restart, h)
{
// When the ACE_Select_Reactor is constructed it creates the notify
@@ -42,7 +40,7 @@ ACE_FlReactor::~ACE_FlReactor (void)
int
ACE_FlReactor::wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &handle_set,
- ACE_Time_Value *max_wait_time)
+ ACE_Time_Value *max_wait_time)
{
ACE_TRACE ("ACE_FlReactor::wait_for_multiple_events");
int nfound;
@@ -126,9 +124,9 @@ ACE_FlReactor::fl_io_proc (int fd, void* reactor)
wait_set.ex_mask_.set_bit (handle);
int result = ACE_OS::select (fd + 1,
- wait_set.rd_mask_,
- wait_set.wr_mask_,
- wait_set.ex_mask_, &zero);
+ wait_set.rd_mask_,
+ wait_set.wr_mask_,
+ wait_set.ex_mask_, &zero);
ACE_Select_Reactor_Handle_Set dispatch_set;
@@ -136,11 +134,11 @@ ACE_FlReactor::fl_io_proc (int fd, void* reactor)
if (result > 0)
{
if (wait_set.rd_mask_.is_set (handle))
- dispatch_set.rd_mask_.set_bit (handle);
+ dispatch_set.rd_mask_.set_bit (handle);
if (wait_set.wr_mask_.is_set (handle))
- dispatch_set.wr_mask_.set_bit (handle);
+ dispatch_set.wr_mask_.set_bit (handle);
if (wait_set.ex_mask_.is_set (handle))
- dispatch_set.ex_mask_.set_bit (handle);
+ dispatch_set.ex_mask_.set_bit (handle);
self->dispatch (1, dispatch_set);
}
@@ -160,8 +158,8 @@ ACE_FlReactor::fl_timeout_proc (void* reactor)
int
ACE_FlReactor::register_handler_i (ACE_HANDLE handle,
- ACE_Event_Handler *handler,
- ACE_Reactor_Mask mask)
+ ACE_Event_Handler *handler,
+ ACE_Reactor_Mask mask)
{
ACE_TRACE ("ACE_FlReactor::register_handler_i");
@@ -197,8 +195,8 @@ ACE_FlReactor::register_handler_i (ACE_HANDLE handle,
int
ACE_FlReactor::register_handler_i (const ACE_Handle_Set &handles,
- ACE_Event_Handler *handler,
- ACE_Reactor_Mask mask)
+ ACE_Event_Handler *handler,
+ ACE_Reactor_Mask mask)
{
return ACE_Select_Reactor::register_handler_i (handles,
handler,
@@ -207,7 +205,7 @@ ACE_FlReactor::register_handler_i (const ACE_Handle_Set &handles,
int
ACE_FlReactor::remove_handler_i (ACE_HANDLE handle,
- ACE_Reactor_Mask mask)
+ ACE_Reactor_Mask mask)
{
ACE_TRACE ("ACE_FlReactor::remove_handler_i");
@@ -225,10 +223,10 @@ ACE_FlReactor::remove_handler_i (ACE_HANDLE handle,
int
ACE_FlReactor::remove_handler_i (const ACE_Handle_Set &handles,
- ACE_Reactor_Mask mask)
+ ACE_Reactor_Mask mask)
{
return ACE_Select_Reactor::remove_handler_i (handles,
- mask);
+ mask);
}
// The following function ensures there's an Fl timeout for the first
@@ -273,9 +271,9 @@ ACE_FlReactor::reset_timer_interval
long
ACE_FlReactor::schedule_timer (ACE_Event_Handler *event_handler,
- const void *arg,
+ const void *arg,
const ACE_Time_Value &delay,
- const ACE_Time_Value &interval)
+ const ACE_Time_Value &interval)
{
ACE_TRACE ("ACE_FlReactor::schedule_timer");
ACE_MT (ACE_GUARD_RETURN (ACE_Select_Reactor_Token, ace_mon, this->token_, -1));
@@ -295,12 +293,12 @@ ACE_FlReactor::schedule_timer (ACE_Event_Handler *event_handler,
int
ACE_FlReactor::cancel_timer (ACE_Event_Handler *handler,
- int dont_call_handle_close)
+ int dont_call_handle_close)
{
ACE_TRACE ("ACE_FlReactor::cancel_timer");
if (ACE_Select_Reactor::cancel_timer (handler,
- dont_call_handle_close) == -1)
+ dont_call_handle_close) == -1)
return -1;
else
{
@@ -311,14 +309,14 @@ ACE_FlReactor::cancel_timer (ACE_Event_Handler *handler,
int
ACE_FlReactor::cancel_timer (long timer_id,
- const void **arg,
- int dont_call_handle_close)
+ const void **arg,
+ int dont_call_handle_close)
{
ACE_TRACE ("ACE_FlReactor::cancel_timer");
if (ACE_Select_Reactor::cancel_timer (timer_id,
- arg,
- dont_call_handle_close) == -1)
+ arg,
+ dont_call_handle_close) == -1)
return -1;
else
{
@@ -326,5 +324,3 @@ ACE_FlReactor::cancel_timer (long timer_id,
return 0;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/FlReactor.h b/ace/FlReactor.h
index 75d88b0ab5c..b1813fdd9bd 100644
--- a/ace/FlReactor.h
+++ b/ace/FlReactor.h
@@ -28,8 +28,6 @@
#include "ace/ACE_FlReactor_export.h"
#include "ace/Select_Reactor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_FlReactor
*
@@ -104,7 +102,5 @@ private:
ACE_FlReactor &operator = (const ACE_FlReactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_FLREACTOR_H */
diff --git a/ace/Flag_Manip.cpp b/ace/Flag_Manip.cpp
index ee074a2d10d..e1b1c25b7a6 100644
--- a/ace/Flag_Manip.cpp
+++ b/ace/Flag_Manip.cpp
@@ -19,8 +19,6 @@ ACE_RCSID (ace,
Flag_Manip,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Flags are file status flags to turn on.
int
@@ -34,7 +32,7 @@ ACE::set_flags (ACE_HANDLE handle, int flags)
// nonblocking argument (1)
// blocking: (0)
{
- int nonblock = 1;
+ u_long nonblock = 1;
return ACE_OS::ioctl (handle, FIONBIO, &nonblock);
}
default:
@@ -70,7 +68,7 @@ ACE::clr_flags (ACE_HANDLE handle, int flags)
// nonblocking argument (1)
// blocking: (0)
{
- int nonblock = 0;
+ u_long nonblock = 0;
return ACE_OS::ioctl (handle, FIONBIO, &nonblock);
}
default:
@@ -91,5 +89,3 @@ ACE::clr_flags (ACE_HANDLE handle, int flags)
return 0;
#endif /* ACE_LACKS_FCNTL */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Flag_Manip.h b/ace/Flag_Manip.h
index e1f3fc1d997..28646f98350 100644
--- a/ace/Flag_Manip.h
+++ b/ace/Flag_Manip.h
@@ -31,7 +31,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
@@ -48,8 +47,6 @@ namespace ACE
ACE_NAMESPACE_INLINE_FUNCTION int get_flags (ACE_HANDLE handle);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Flag_Manip.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Flag_Manip.inl b/ace/Flag_Manip.inl
index da24f2a1282..0009be56695 100644
--- a/ace/Flag_Manip.inl
+++ b/ace/Flag_Manip.inl
@@ -1,19 +1,17 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/OS_NS_fcntl.h"
+// Return flags currently associated with handle.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_fcntl.h"
-// Return flags currently associated with handle.
ACE_INLINE int
ACE::get_flags (ACE_HANDLE handle)
{
ACE_TRACE ("ACE::get_flags");
#if defined (ACE_LACKS_FCNTL)
- // ACE_OS::fcntl is not supported. It
+ // ACE_OS::fcntl is not supported, e.g., on VxWorks. It
// would be better to store ACE's notion of the flags
// associated with the handle, but this works for now.
ACE_UNUSED_ARG (handle);
@@ -22,5 +20,3 @@ ACE::get_flags (ACE_HANDLE handle)
return ACE_OS::fcntl (handle, F_GETFL, 0);
#endif /* ACE_LACKS_FCNTL */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Framework_Component.cpp b/ace/Framework_Component.cpp
index 17c112f06c9..6b035cc922e 100644
--- a/ace/Framework_Component.cpp
+++ b/ace/Framework_Component.cpp
@@ -15,8 +15,6 @@
ACE_RCSID(ace, Framework_Component, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Framework_Component::~ACE_Framework_Component (void)
{
ACE_TRACE ("ACE_Framework_Component::~ACE_Framework_Component");
@@ -276,5 +274,3 @@ ACE_Framework_Repository::ACE_Framework_Repository (int size)
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_Framework_Repository")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Framework_Component.h b/ace/Framework_Component.h
index d0d2e6f89e2..318867773ba 100644
--- a/ace/Framework_Component.h
+++ b/ace/Framework_Component.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Framework_Component.h
@@ -9,7 +8,7 @@
* A prototype mechanism that allows framework components, singletons
* such as ACE_Reactor, ACE_Proactor, etc, to be registered with a
* central repository managed by the <ACE_Object_Manager> or
- * ACE_Service_Config that will handle destruction.
+ * <ACE_Service_Config> that will handle destruction.
*
* This technique obviates changing ACE_Object_Manager and
* ACE_Service_Config everytime a new framework is added. Which also
@@ -48,8 +47,6 @@
#define ACE_DEFAULT_FRAMEWORK_REPOSITORY_SIZE 1024
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Framework_Component
*
@@ -74,11 +71,6 @@ protected:
virtual ~ACE_Framework_Component (void);
private:
- // No copy possible
- ACE_Framework_Component (const ACE_Framework_Component &);
- void operator= (const ACE_Framework_Component &);
-
-private:
/// Pointer to the actual component.
const void *this_;
@@ -152,13 +144,12 @@ public:
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
-protected:
+private:
+ // = Initialization and termination methods.
/// Initialize the repository.
ACE_Framework_Repository (int size = ACE_Framework_Repository::DEFAULT_SIZE);
-private:
-
/// Actually removes the dll components, must be called with locks held.
int remove_dll_components_i (const ACE_TCHAR *dll_name);
@@ -166,12 +157,6 @@ private:
/// order.
void compact (void);
- /// Disallow copying and assignment.
- ACE_Framework_Repository (const ACE_Framework_Repository &);
- ACE_Framework_Repository &operator= (const ACE_Framework_Repository &);
-
-private:
-
/// Contains all the framework components.
ACE_Framework_Component **component_vector_;
@@ -195,10 +180,11 @@ private:
ACE_Thread_Mutex lock_;
#endif /* ACE_MT_SAFE */
+ /// Don't allow these to be called.
+ ACE_UNIMPLEMENTED_FUNC (ACE_Framework_Repository (const ACE_Framework_Repository &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Framework_Repository &operator= (const ACE_Framework_Repository &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Framework_Component.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Framework_Component.inl b/ace/Framework_Component.inl
index 6e6146114f7..2d3662642bd 100644
--- a/ace/Framework_Component.inl
+++ b/ace/Framework_Component.inl
@@ -1,14 +1,13 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// Framework_Component.inl
+
#include "ace/ACE.h"
#include "ace/Guard_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
-ACE_Framework_Component::ACE_Framework_Component (void *_this,
+ACE_INLINE
+ACE_Framework_Component::ACE_Framework_Component (void *_this,
const ACE_TCHAR *dll_name,
const ACE_TCHAR *name)
: this_ (_this),
@@ -35,5 +34,3 @@ ACE_Framework_Repository::total_size (void) const
ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, -1));
return this->total_size_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Framework_Component_T.cpp b/ace/Framework_Component_T.cpp
index 509d6609daf..cbaf65463d8 100644
--- a/ace/Framework_Component_T.cpp
+++ b/ace/Framework_Component_T.cpp
@@ -1,11 +1,11 @@
+// Framework_Component_T.cpp
// $Id$
-
#ifndef ACE_FRAMEWORK_COMPONENT_T_CPP
#define ACE_FRAMEWORK_COMPONENT_T_CPP
#include "ace/Framework_Component_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Framework_Component_T, "$Id$")
template <class Concrete>
ACE_Framework_Component_T<Concrete>::ACE_Framework_Component_T (Concrete *concrete)
@@ -28,6 +28,4 @@ ACE_Framework_Component_T<Concrete>::close_singleton (void)
Concrete::close_singleton ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_FRAMEWORK_COMPONENT_T_CPP */
+#endif /*ACE_FRAWORK_COMPONENT_T_CPP*/
diff --git a/ace/Framework_Component_T.h b/ace/Framework_Component_T.h
index 13440ea88ae..226fabbd432 100644
--- a/ace/Framework_Component_T.h
+++ b/ace/Framework_Component_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Framework_Component_T.h
@@ -19,8 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Framework_Component_T
*
@@ -50,8 +47,6 @@ public:
void close_singleton (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// This macro should be called in the instance() method
// of the Concrete class that will be managed. Along
// with the appropriate template instantiation.
diff --git a/ace/Free_List.cpp b/ace/Free_List.cpp
index 60dfabafb1c..d0d24e2ba05 100644
--- a/ace/Free_List.cpp
+++ b/ace/Free_List.cpp
@@ -10,11 +10,13 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+// Empty constructor
template <class T>
ACE_Free_List<T>::~ACE_Free_List (void)
{
+ // Nothing
}
// Default constructor that takes in a preallocation number
@@ -55,13 +57,13 @@ ACE_Locked_Free_List<T, ACE_LOCK>::~ACE_Locked_Free_List (void)
// elements withing and it pasts the high water mark, delete the
// element)
-template <class T, class ACE_LOCK> void
+template <class T, class ACE_LOCK> void
ACE_Locked_Free_List<T, ACE_LOCK>::add (T *element)
{
ACE_MT (ACE_GUARD (ACE_LOCK, ace_mon, this->mutex_));
// Check to see that we not at the high water mark.
- if (this->mode_ == ACE_PURE_FREE_LIST
+ if (this->mode_ == ACE_PURE_FREE_LIST
|| this->size_ < this->hwm_)
{
element->set_next (this->free_list_);
@@ -100,7 +102,7 @@ ACE_Locked_Free_List<T, ACE_LOCK>::remove (void)
// Returns the current size of the free list
-template <class T, class ACE_LOCK> size_t
+template <class T, class ACE_LOCK> size_t
ACE_Locked_Free_List<T, ACE_LOCK>::size (void)
{
return this->size_;
@@ -108,7 +110,7 @@ ACE_Locked_Free_List<T, ACE_LOCK>::size (void)
// Resizes the free list to <newsize>
-template <class T, class ACE_LOCK> void
+template <class T, class ACE_LOCK> void
ACE_Locked_Free_List<T, ACE_LOCK>::resize (size_t newsize)
{
ACE_MT (ACE_GUARD (ACE_LOCK, ace_mon, this->mutex_));
@@ -118,7 +120,7 @@ ACE_Locked_Free_List<T, ACE_LOCK>::resize (size_t newsize)
// Check to see if we grow or shrink
if (newsize < this->size_)
this->dealloc (this->size_ - newsize);
- else
+ else
this->alloc (newsize - this->size_);
}
@@ -152,6 +154,4 @@ ACE_Locked_Free_List<T, ACE_LOCK>::dealloc (size_t n)
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_FREE_LIST_CPP */
diff --git a/ace/Free_List.h b/ace/Free_List.h
index d16b5e92945..b229406c991 100644
--- a/ace/Free_List.h
+++ b/ace/Free_List.h
@@ -24,8 +24,6 @@
#include "ace/Default_Constants.h"
#include "ace/os_include/os_stddef.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Free_List
*
@@ -98,14 +96,14 @@ public:
/// Returns the current size of the free list.
virtual size_t size (void);
- /// Resizes the free list to @a newsize.
+ /// Resizes the free list to <newsize>.
virtual void resize (size_t newsize);
protected:
- /// Allocates @a n extra nodes for the freelist.
+ /// Allocates <n> extra nodes for the freelist.
virtual void alloc (size_t n);
- /// Removes and frees @a n nodes from the freelist.
+ /// Removes and frees <n> nodes from the freelist.
virtual void dealloc (size_t n);
/// Free list operation mode, either ACE_FREE_LIST_WITH_POOL or
@@ -127,7 +125,7 @@ protected:
/// Keeps track of the size of the list.
size_t size_;
- /// Synchronization variable for ACE_Timer_Queue.
+ /// Synchronization variable for <ACE_Timer_Queue>.
ACE_LOCK mutex_;
private:
@@ -136,8 +134,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Locked_Free_List<T, ACE_LOCK> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Free_List.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Functor.cpp b/ace/Functor.cpp
index 3e943fe3d54..b42375de277 100644
--- a/ace/Functor.cpp
+++ b/ace/Functor.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -28,6 +29,9 @@
//
// ============================================================================
+#if !defined (ACE_FUNCTOR_C)
+#define ACE_FUNCTOR_C
+
#include "ace/Functor_T.h"
#include "ace/Functor.h"
@@ -37,10 +41,12 @@
ACE_RCSID(ace, Functor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Command_Base::~ACE_Command_Base (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+#endif /* ACE_FUNCTOR_C */
diff --git a/ace/Functor.h b/ace/Functor.h
index 01967e5f977..22f160adef5 100644
--- a/ace/Functor.h
+++ b/ace/Functor.h
@@ -41,8 +41,6 @@
#include "ace/ACE_export.h"
#include "ace/Basic_Types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////////////////////////////////////////////
// GOF Command Pattern Classes and Template Specializations //
//////////////////////////////////////////////////////////////
@@ -127,7 +125,6 @@ public:
unsigned long operator () (unsigned char t) const;
};
-#if 0
// @@ ADD HASHES FOR ACE TYPES
/**
@@ -196,117 +193,6 @@ public:
};
// @@ DONE ADDING HASHES FOR ACE TYPES
-#endif
-
-/**
- * @class ACE_Hash<short>
- *
- * @brief Function object for hashing a short number
- */
-template<>
-class ACE_Export ACE_Hash<short>
-{
-public:
- /// Simply returns t
- unsigned long operator () (short t) const;
-};
-
-/**
- * @class ACE_Hash<unsigned short>
- *
- * @brief Function object for hashing an unsigned short number
- */
-template<>
-class ACE_Export ACE_Hash<unsigned short>
-{
-public:
- /// Simply returns t
- unsigned long operator () (unsigned short t) const;
-};
-
-/**
- * @class ACE_Hash<int>
- *
- * @brief Function object for hashing an int number
- */
-template<>
-class ACE_Export ACE_Hash<int>
-{
-public:
- /// Simply returns t
- unsigned long operator () (int t) const;
-};
-
-/**
- * @class ACE_Hash<unsigned int>
- *
- * @brief Function object for hashing an unsigned int number
- */
-template<>
-class ACE_Export ACE_Hash<unsigned int>
-{
-public:
- /// Simply returns t
- unsigned long operator () (unsigned int t) const;
-};
-
-/**
- * @class ACE_Hash<long>
- *
- * @brief Function object for hashing a long number
- */
-template<>
-class ACE_Export ACE_Hash<long>
-{
-public:
- /// Simply returns t
- unsigned long operator () (long t) const;
-};
-
-/**
- * @class ACE_Hash<unsigned long>
- *
- * @brief Function object for hashing an unsigned long number
- */
-template<>
-class ACE_Export ACE_Hash<unsigned long>
-{
-public:
- /// Simply returns t
- unsigned long operator () (unsigned long t) const;
-};
-
-#if !defined (ACE_LACKS_LONGLONG_T) && (ACE_SIZEOF_LONG < 8)
-/**
- * @class ACE_Hash<ACE_INT64>
- *
- * @brief Function object for hashing a signed 64-bit number
- */
-template<>
-class ACE_Export ACE_Hash<ACE_INT64>
-{
-public:
- /// Simply returns t
- unsigned long operator () (ACE_INT64 t) const;
-};
-#endif /* !ACE_LACKS_LONGLONG_T && ACE_SIZEOF_LONG < 8 */
-
-// We can do this even if ACE_LACKS_UNSIGNEDLONGLONG_T because there's an
-// emulation for it in ACE_U_LongLong.
-#if (ACE_SIZEOF_LONG < 8)
-/**
- * @class ACE_Hash<ACE_UINT64>
- *
- * @brief Function object for hashing an unsigned 64-bit number
- */
-template<>
-class ACE_Export ACE_Hash<ACE_UINT64>
-{
-public:
- /// Simply returns t
- unsigned long operator () (const ACE_UINT64 &t) const;
-};
-#endif /* ACE_SIZEOF_LONG < 8 */
/**
* @class ACE_Hash<const char *>
@@ -480,9 +366,7 @@ public:
const char *rhs) const;
};
-#if defined (ACE_HAS_WCHAR)
-
-# if ! defined (ACE_LACKS_NATIVE_WCHAR_T)
+# if ! defined (ACE_LACKS_BUILTIN_WCHAR_T)
/**
* @class ACE_Hash<wchar_t>
*
@@ -495,7 +379,7 @@ public:
/// Simply returns t
unsigned long operator () (wchar_t t) const;
};
-# endif /* ACE_LACKS_NATIVE_WCHAR_T */
+# endif /* ACE_LACKS_BUILTIN_WCHAR_T */
/**
* @class ACE_Hash<const wchar_t *>
*
@@ -581,10 +465,6 @@ public:
const wchar_t *rhs) const;
};
-#endif // ACE_HAS_WCHAR
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Functor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Functor.inl b/ace/Functor.inl
index 84e38313b02..99bc0af7216 100644
--- a/ace/Functor.inl
+++ b/ace/Functor.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -8,7 +7,7 @@
// ace
//
// = FILENAME
-// Functor.inl
+// Functor.i
//
// = DESCRIPTION
// Inlinable method definitions for non-templatized classes
@@ -33,8 +32,6 @@
#include "ace/ACE.h"
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//////////////////////////////////////////////////////////////
// GOF Command Pattern Classes and Template Specializations //
//////////////////////////////////////////////////////////////
@@ -56,13 +53,13 @@ ACE_Hash<char>::operator () (char t) const
return t;
}
-#if defined (ACE_HAS_WCHAR) && ! defined (ACE_LACKS_NATIVE_WCHAR_T)
+#if !defined (ACE_LACKS_BUILTIN_WCHAR_T)
ACE_INLINE unsigned long
ACE_Hash<wchar_t>::operator () (wchar_t t) const
{
return t;
}
-#endif /* ACE_HAS_WCHAR && ! ACE_LACKS_NATIVE_WCHAR_T */
+#endif /* ACE_LACKS_BUILTIN_WCHAR_T */
ACE_INLINE unsigned long
ACE_Hash<signed char>::operator () (signed char t) const
@@ -76,7 +73,6 @@ ACE_Hash<unsigned char>::operator () (unsigned char t) const
return t;
}
-#if 0
ACE_INLINE unsigned long
ACE_Hash<ACE_INT16>::operator () (ACE_INT16 t) const
{
@@ -110,64 +106,7 @@ ACE_Hash<ACE_UINT64>::operator () (ACE_UINT64 t) const
return static_cast<unsigned long> (t);
#endif /* ACE_SIZEOF_LONG */
}
-#endif
-
-ACE_INLINE unsigned long
-ACE_Hash<short>::operator () (short t) const
-{
- return static_cast<unsigned long> (t);
-}
-
-ACE_INLINE unsigned long
-ACE_Hash<unsigned short>::operator () (unsigned short t) const
-{
- return static_cast<unsigned long> (t);
-}
-
-ACE_INLINE unsigned long
-ACE_Hash<int>::operator () (int t) const
-{
- return static_cast<unsigned long> (t);
-}
-
-ACE_INLINE unsigned long
-ACE_Hash<unsigned int>::operator () (unsigned int t) const
-{
- return static_cast<unsigned long> (t);
-}
-
-ACE_INLINE unsigned long
-ACE_Hash<long>::operator () (long t) const
-{
- return static_cast<unsigned long> (t);
-}
-
-ACE_INLINE unsigned long
-ACE_Hash<unsigned long>::operator () (unsigned long t) const
-{
- return t;
-}
-
-// This #if needs to match the one in Functor.h
-#if !defined (ACE_LACKS_LONGLONG_T) && (ACE_SIZEOF_LONG < 8)
-ACE_INLINE unsigned long
-ACE_Hash<ACE_INT64>::operator () (ACE_INT64 t) const
-{
- return static_cast<unsigned long> (t);
-}
-#endif /* !ACE_LACKS_LONGLONG_T && ACE_SIZEOF_LONG < 8 */
-#if (ACE_SIZEOF_LONG < 8)
-ACE_INLINE unsigned long
-ACE_Hash<ACE_UINT64>::operator () (const ACE_UINT64 &t) const
-{
-#if (ACE_SIZEOF_LONG == 4)
- return ACE_U64_TO_U32 (t);
-#else
- return static_cast<unsigned long> (t);
-#endif /* ACE_SIZEOF_LONG */
-}
-#endif /* !ACE_LACKS_UNSIGNEDLONGLONG_T */
ACE_INLINE unsigned long
ACE_Hash<const char *>::operator () (const char *t) const
@@ -243,9 +182,6 @@ ACE_Less_Than<char *>::operator () (const char *lhs, const char *rhs) const
return (ACE_OS::strcmp (lhs, rhs) < 0) ? 1 : 0;
}
-
-#if defined (ACE_HAS_WCHAR)
-
ACE_INLINE unsigned long
ACE_Hash<const wchar_t *>::operator () (const wchar_t *t) const
{
@@ -284,6 +220,3 @@ ACE_Less_Than<wchar_t *>::operator () (const wchar_t *lhs, const wchar_t *rhs) c
return (ACE_OS::strcmp (lhs, rhs) < 0) ? 1 : 0;
}
-#endif // ACE_HAS_WCHAR
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Functor_String.h b/ace/Functor_String.h
index 6c68b026bd1..2e84295ef76 100644
--- a/ace/Functor_String.h
+++ b/ace/Functor_String.h
@@ -11,6 +11,7 @@
* could be placed in Functor.h. But we don't want to couple string
* types to the rest of ACE+TAO. Hence they are placed in a seperate
* file.
+ *
*/
//==========================================================================
#ifndef ACE_FUNCTOR_STRING_H
@@ -26,8 +27,6 @@
#include "ace/ACE_export.h"
#include "ace/SStringfwd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
////////////////////////////////////////////////////////////
// STL-style Functor Classes and Template Specializations //
////////////////////////////////////////////////////////////
@@ -83,9 +82,6 @@ public:
const ACE_CString &rhs) const;
};
-
-#if defined (ACE_USES_WCHAR)
-
/**
* @class ACE_Equal_To<ACE_WString>
*
@@ -129,10 +125,6 @@ public:
const ACE_WString &rhs) const;
};
-#endif /*ACE_USES_WCHAR*/
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Functor_String.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Functor_String.inl b/ace/Functor_String.inl
index 82e8775a718..e2fcf99a036 100644
--- a/ace/Functor_String.inl
+++ b/ace/Functor_String.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/ACE.h"
#include "ace/String_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE unsigned long
ACE_Hash<ACE_CString>::operator () (const ACE_CString &t) const
{
@@ -29,7 +26,6 @@ ACE_Less_Than<ACE_CString>::operator () (const ACE_CString &lhs,
}
-#if defined (ACE_USES_WCHAR)
ACE_INLINE unsigned long
ACE_Hash<ACE_WString>::operator () (const ACE_WString &t) const
{
@@ -51,6 +47,3 @@ ACE_Less_Than<ACE_WString>::operator () (const ACE_WString &lhs,
return (lhs < rhs);
}
-#endif /*ACE_USES_WCHAR*/
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Functor_T.cpp b/ace/Functor_T.cpp
index 53e8f170fc1..c29f9029f75 100644
--- a/ace/Functor_T.cpp
+++ b/ace/Functor_T.cpp
@@ -1,7 +1,8 @@
+/* -*- C++ -*- */
// $Id$
-#ifndef ACE_FUNCTOR_T_CPP
-#define ACE_FUNCTOR_T_CPP
+#ifndef ACE_FUNCTOR_T_C
+#define ACE_FUNCTOR_T_C
#include "ace/Functor_T.h"
@@ -13,7 +14,7 @@
#include "ace/Functor_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Functor_T, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Command_Callback)
@@ -44,6 +45,5 @@ ACE_Command_Callback<RECEIVER, ACTION>::execute (void *arg)
return (receiver_.*action_) (arg);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_FUNCTOR_T_CPP */
+#endif /* ACE_FUNCTOR_T_C */
diff --git a/ace/Functor_T.h b/ace/Functor_T.h
index 554820e3c0b..e960cad0d26 100644
--- a/ace/Functor_T.h
+++ b/ace/Functor_T.h
@@ -37,9 +37,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Functor_String.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
///////////////////////////////////
// GOF Command Pattern Templates //
///////////////////////////////////
@@ -139,8 +136,6 @@ public:
const TYPE &rhs) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Functor_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Functor_T.inl b/ace/Functor_T.inl
index 6441c091b76..51caa11825d 100644
--- a/ace/Functor_T.inl
+++ b/ace/Functor_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE> ACE_INLINE unsigned long
ACE_Hash<TYPE>::operator () (const TYPE &t) const
{
@@ -38,5 +36,3 @@ ACE_Less_Than<TYPE>::operator () (const TYPE &lhs,
{
return lhs < rhs;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Future.cpp b/ace/Future.cpp
index 3ca6f8225ba..2dc0fa5ddb8 100644
--- a/ace/Future.cpp
+++ b/ace/Future.cpp
@@ -16,8 +16,6 @@ ACE_RCSID (ace, Future, "$Id$")
# include "ace/Guard_T.h"
# include "ace/Recursive_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T>
ACE_Future_Holder<T>::ACE_Future_Holder (void)
{
@@ -427,8 +425,5 @@ ACE_Future<T>::get_rep ()
return this->future_rep_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
-
#endif /* ACE_FUTURE_CPP */
diff --git a/ace/Future.h b/ace/Future.h
index 607ac6e8d75..9d1e0f7800b 100644
--- a/ace/Future.h
+++ b/ace/Future.h
@@ -30,8 +30,6 @@
#include "ace/Recursive_Thread_Mutex.h"
#include "ace/Condition_Recursive_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
template <class T> class ACE_Future_Holder;
template <class T> class ACE_Future_Observer;
@@ -124,7 +122,7 @@ private:
/**
* Attaches the specified observer to a subject (i.e., the <ACE_Future_Rep>).
* The update method of the specified subject will be invoked with a copy of
- * the written-to ACE_Future as input when the result gets set.
+ * the written-to <ACE_Future> as input when the result gets set.
*
* Returns 0 if the observer is successfully attached, 1 if the
* observer is already attached, and -1 if failures occur.
@@ -208,7 +206,7 @@ private:
int ref_count_;
typedef ACE_Future_Observer<T>
- OBSERVER;
+ OBSERVER;
typedef ACE_Unbounded_Set<OBSERVER *>
OBSERVER_COLLECTION;
@@ -373,8 +371,6 @@ private:
FUTURE_REP *future_rep_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Future.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Future_Set.cpp b/ace/Future_Set.cpp
index d9b9e2a1ac9..feac0b0d54f 100644
--- a/ace/Future_Set.cpp
+++ b/ace/Future_Set.cpp
@@ -1,3 +1,4 @@
+// Future.cpp
// $Id$
#ifndef ACE_FUTURE_SET_CPP
@@ -9,9 +10,9 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if defined (ACE_HAS_THREADS)
+ACE_RCSID (ace, Future_Set, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_THREADS)
template <class T>
ACE_Future_Set<T>::ACE_Future_Set (ACE_Message_Queue<ACE_SYNCH> *new_queue)
@@ -118,8 +119,8 @@ ACE_Future_Set<T>::next_readable (ACE_Future<T> &future,
// Remove the hash map entry with the specified future rep from our map.
FUTURE_HOLDER *future_holder;
- if (this->future_map_.find (future_rep,
- future_holder) != -1)
+ if ( this->future_map_.find (future_rep,
+ future_holder) != -1 )
{
future = future_holder->item_;
this->future_map_.unbind (future_rep);
@@ -130,7 +131,5 @@ ACE_Future_Set<T>::next_readable (ACE_Future<T> &future,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
#endif /* ACE_FUTURE_SET_CPP */
diff --git a/ace/Future_Set.h b/ace/Future_Set.h
index b51d1958c8b..fcd17324d46 100644
--- a/ace/Future_Set.h
+++ b/ace/Future_Set.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,8 +26,6 @@
#if defined (ACE_HAS_THREADS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Future_Set
*
@@ -76,17 +74,17 @@ public:
/**
* Wait up to <tv> time to get the <value>. Note that <tv> must be
* specified in absolute time rather than relative time.); get the
- * next ACE_Future that is readable. If <tv> = 0, the will block
+ * next <ACE_Future> that is readable. If <tv> = 0, the will block
* forever.
*
* If a readable future becomes available, then the input
- * ACE_Future object param will be assigned with it and 1 will
- * be returned. If the ACE_Future_Set is empty (i.e. see definition
- * of ACE_Future_Set::is_empty()), then 0 is returned.
+ * <ACE_Future> object param will be assigned with it and 1 will
+ * be returned. If the <ACE_Future_Set> is empty (i.e. see definition
+ * of <ACE_Future_Set::is_empty>), then 0 is returned.
*
- * When a readable ACE_Future object is retrieved via the
- * ACE_Future_Set::next_readable() method, the ACE_Future_Set will
- * remove that ACE_Future object from its list of subjects.
+ * When a readable <ACE_Future> object is retrieved via the
+ * <ACE_Future_Set::next_readable> method, the <ACE_Future_Set> will
+ * remove that <ACE_Future> object from its list of subjects.
*/
int next_readable (ACE_Future<T> &result,
ACE_Time_Value *tv = 0);
@@ -117,7 +115,7 @@ private:
FUTURE_HOLDER *,
FUTURE_REP_HASH,
FUTURE_REP_COMPARE,
- ACE_Null_Mutex> FUTURE_HASH_MAP;
+ ACE_Null_Mutex> FUTURE_HASH_MAP;
/// Map of <ACE_Futures>, subjects, which have not been written to by
/// client's writer thread.
@@ -131,8 +129,6 @@ private:
int delete_queue_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Future_Set.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Get_Opt.cpp b/ace/Get_Opt.cpp
index c2b56b4fd53..52c9ad67b26 100644
--- a/ace/Get_Opt.cpp
+++ b/ace/Get_Opt.cpp
@@ -2,18 +2,6 @@
#include "ace/Get_Opt.h"
-#if !defined (__ACE_INLINE__)
-#include "ace/Get_Opt.inl"
-#endif /* __ACE_INLINE__ */
-
-#include "ace/ACE.h"
-#include "ace/Log_Msg.h"
-#include "ace/SString.h"
-#include "ace/OS_Memory.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_ctype.h"
-#include "ace/OS_NS_stdlib.h"
-
ACE_RCSID (ace,
Get_Opt,
"$Id$")
@@ -87,665 +75,3 @@ ACE_RCSID (ace,
* POSSIBILITY OF SUCH DAMAGE.
*/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_ALLOC_HOOK_DEFINE(ACE_Get_Opt)
-
-ACE_Get_Opt::ACE_Get_Opt (int argc,
- ACE_TCHAR **argv,
- const ACE_TCHAR *optstring,
- int skip,
- int report_errors,
- int ordering,
- int long_only)
- : argc_ (argc),
- argv_ (argv),
- optind (skip),
- opterr (report_errors),
- optarg (0),
- optstring_ (0),
- long_only_ (long_only),
- has_colon_ (0),
- last_option_ (0),
- nextchar_ (0),
- optopt_ (0),
- ordering_ (ordering),
- nonopt_start_ (optind),
- nonopt_end_ (optind),
- long_option_ (0)
-{
- ACE_TRACE ("ACE_Get_Opt::ACE_Get_Opt");
-
- ACE_NEW (this->optstring_, ACE_TString (optstring));
- ACE_NEW (this->last_option_, ACE_TString (ACE_LIB_TEXT ("")));
-
- // First check to see if POSIXLY_CORRECT was set.
- // Win32 is the only platform capable of wide-char env var.
-#if defined (ACE_WIN32)
- const ACE_TCHAR *env_check = ACE_LIB_TEXT ("POSIXLY_CORRECT");
-#else
- const char *env_check = "POSIXLY_CORRECT";
-#endif
- if (ACE_OS::getenv (env_check) != 0)
- this->ordering_ = REQUIRE_ORDER;
-
- // Now, check to see if any or the following were passed at
- // the begining of optstring: '+' same as POSIXLY_CORRECT;
- // '-' turns off POSIXLY_CORRECT; or ':' which signifies we
- // should return ':' if a parameter is missing for an option.
- // We use a loop here, since a combination of "{+|-}:" in any
- // order should be legal.
- int done = 0;
- int offset = 0;
- while (!done)
- {
- switch (optstring[offset++])
- {
- case '+':
- this->ordering_ = REQUIRE_ORDER;
- break;
- case '-':
- this->ordering_ = RETURN_IN_ORDER;
- break;
- case ':':
- this->has_colon_ = 1;
- break;
- default:
- // Quit as soon as we see something else...
- done = 1;
- break;
- }
- }
-}
-
-ACE_Get_Opt::~ACE_Get_Opt (void)
-{
- ACE_TRACE ("ACE_Get_Opt::~ACE_Get_Opt");
-
- size_t i = 0;
- size_t size = this->long_opts_.size ();
- ACE_Get_Opt_Long_Option *option = 0;
- for (i = 0; i < size; ++i)
- {
- int retval = this->long_opts_.get (option, i);
- if (retval != 0)
- {
- // Should never happen.
- retval = 0;
- continue;
- }
- if (option)
- {
- delete option;
- option = 0;
- }
- }
- delete this->optstring_;
- delete this->last_option_;
-}
-
-int
-ACE_Get_Opt::nextchar_i (void)
-{
- ACE_TRACE ("ACE_Get_Opt::nextchar_i");
-
- if (this->ordering_ == PERMUTE_ARGS)
- if (this->permute () == EOF)
- return EOF;
-
- // Update scanning pointer.
- if (this->optind >= this->argc_)
- {
- // We're done...
- this->nextchar_ = 0;
- return EOF;
- }
- else if (*(this->nextchar_ = this->argv_[this->optind]) != '-'
- || this->nextchar_[1] == '\0')
- {
- // We didn't get an option.
-
- if (this->ordering_ == REQUIRE_ORDER
- || this->ordering_ == PERMUTE_ARGS)
- // If we permuted or require the options to be in order, we're done.
- return EOF;
-
- // It must be RETURN_IN_ORDER...
- this->optarg = this->argv_[this->optind++];
- this->nextchar_ = 0;
- return 1;
- }
- else if (this->nextchar_[1] != 0
- && *++this->nextchar_ == '-'
- && this->nextchar_[1] == 0)
- {
- // Found "--" so we're done...
- ++this->optind;
- this->nextchar_ = 0;
- return EOF;
- }
-
- // If it's a long option, and we allow long options advance nextchar_.
- if (*this->nextchar_ == '-' && this->long_opts_.size () != 0)
- this->nextchar_++;
-
- return 0;
-}
-
-int
-ACE_Get_Opt::long_option_i (void)
-{
- ACE_TRACE ("ACE_Get_Opt::long_option_i");
-
- ACE_Get_Opt_Long_Option *p;
- ACE_TCHAR *s = this->nextchar_;
- int hits = 0;
- int exact = 0;
- ACE_Get_Opt_Long_Option *pfound = 0;
- int indfound = 0;
-
- // Advance to the end of the long option name so we can use
- // it to get the length for a string compare.
- while (*s && *s != '=')
- s++;
-
- size_t len = s - this->nextchar_;
- // set last_option_ to nextchar_, up to the '='.
- this->last_option (ACE_TString (this->nextchar_, len));
-
- size_t size = this->long_opts_.size ();
- u_int option_index = 0;
- for (option_index = 0; option_index < size ; option_index++)
- {
- p = this->long_opts_[option_index];
- ACE_ASSERT (p);
-
- if (!ACE_OS::strncmp (p->name_, this->nextchar_, len))
- {
- // Got at least a partial match.
- pfound = p;
- indfound = option_index;
- hits += 1;
- if (len == ACE_OS::strlen(p->name_))
- {
- // And in fact, it's an exact match, so let's use it.
- exact = 1;
- break;
- }
- }
- }
-
- if ((hits > 1) && !exact)
- {
- // Great, we found a match, but unfortunately we found more than
- // one and it wasn't exact.
- if (this->opterr)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%s: option `%s' is ambiguous\n"),
- this->argv_[0], this->argv_[this->optind]));
- this->nextchar_ = 0;
- this->optind++;
- return '?';
- }
-
- if (pfound != 0)
- {
- // Okay, we found a good one (either a single hit or an exact match).
- option_index = indfound;
- this->optind++;
- if (*s)
- {
- // s must point to '=' which means there's an argument (well
- // close enough).
- if (pfound->has_arg_ != NO_ARG)
- // Good, we want an argument and here it is.
- this->optarg = ++s;
- else
- {
- // Whoops, we've got what looks like an argument, but we
- // don't want one.
- if (this->opterr)
- ACE_ERROR
- ((LM_ERROR,
- ACE_LIB_TEXT ("%s: long option `--%s' doesn't allow ")
- ACE_LIB_TEXT ("an argument\n"),
- this->argv_[0], pfound->name_));
- // The spec doesn't cover this, so we keep going and the program
- // doesn't know we ignored an argument if opt_err is off!!!
- }
- }
- else if (pfound->has_arg_ == ARG_REQUIRED)
- {
- // s didn't help us, but we need an argument. Note that
- // optional arguments for long options must use the "=" syntax,
- // so we won't get here in that case.
- if (this->optind < this->argc_)
- // We still have some elements left, so use the next one.
- this->optarg = this->argv_[this->optind++];
- else
- {
- // All out of elements, so we have to punt...
- if (this->opterr)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%s: long option '--%s' requires ")
- ACE_LIB_TEXT ("an argument\n"),
- this->argv_[0], pfound->name_));
- this->nextchar_ = 0;
- this->optopt_ = pfound->val_; // Remember matching short equiv
- return this->has_colon_ ? ':' : '?';
- }
- }
- this->nextchar_ = 0;
- this->long_option_ = pfound;
- // Since val_ has to be either a valid short option or 0, this works
- // great. If the user really wants to know if a long option was passed.
- this->optopt_ = pfound->val_;
- return pfound->val_;
- }
- if (!this->long_only_ || this->argv_[this->optind][1] == '-'
- || this->optstring_->find (*this->nextchar_) == ACE_TString::npos)
- {
- // Okay, we couldn't find a long option. If it isn't long_only (which
- // means try the long first, and if not found try the short) or a long
- // signature was passed, e.g. "--", or it's not a short (not sure when
- // this could happen) it's an error.
- if (this->opterr)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%s: illegal long option '--%s'\n"),
- this->argv_[0], this->nextchar_));
- this->nextchar_ = 0;
- this->optind++;
- return '?';
- }
- return this->short_option_i ();
-}
-
-int
-ACE_Get_Opt::short_option_i (void)
-{
- ACE_TRACE ("ACE_Get_Opt::short_option_i");
-
- /* Look at and handle the next option-character. */
- ACE_TCHAR opt = *this->nextchar_++;
- // Set last_option_ to opt
- this->last_option (opt);
-
- ACE_TCHAR *oli = 0;
- oli =
- const_cast<ACE_TCHAR*> (ACE_OS::strchr (this->optstring_->c_str (), opt));
-
- /* Increment `optind' when we start to process its last character. */
- if (*this->nextchar_ == '\0')
- ++this->optind;
-
- if (oli == 0 || opt == ':')
- {
- if (this->opterr)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%s: illegal short option -- %c\n"),
- this->argv_[0], opt));
- return '?';
- }
- if (opt == 'W' && oli[1] == ';')
- {
- if (this->nextchar_[0] == 0)
- this->nextchar_ = this->argv_[this->optind];
- return long_option_i ();
- }
- this->optopt_ = oli[0]; // Remember the option that matched
- if (oli[1] == ':')
- {
- if (oli[2] == ':')
- {
- // Takes an optional argument, and since short option args must
- // must follow directly in the same argument, a NULL nextchar_
- // means we didn't get one.
- if (*this->nextchar_ != '\0')
- {
- this->optarg = this->nextchar_;
- this->optind++;
- }
- else
- this->optarg = 0;
- this->nextchar_ = 0;
- }
- else
- {
- // Takes a required argument.
- if (*this->nextchar_ != '\0')
- {
- // Found argument in same argv-element.
- this->optarg = this->nextchar_;
- this->optind++;
- }
- else if (this->optind == this->argc_)
- {
- // Ran out of arguments before finding required argument.
- if (this->opterr)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%s: short option requires ")
- ACE_LIB_TEXT ("an argument -- %c\n"),
- this->argv_[0], opt));
- opt = this->has_colon_ ? ':' : '?';
- }
- else
- // Use the next argv-element as the argument.
- this->optarg = this->argv_[this->optind++];
- this->nextchar_ = 0;
- }
- }
- return opt;
-}
-
-int
-ACE_Get_Opt::operator () (void)
-{
- ACE_TRACE ("ACE_Get_Opt_Long::operator");
-
- // First of all, make sure we reinitialize any pointers..
- this->optarg = 0;
- this->long_option_ = 0;
-
- if (this->argv_ == 0)
- {
- // It can happen, e.g., on VxWorks.
- this->optind = 0;
- return -1;
- }
-
- // We check this because we can string short options together if the
- // preceding one doesn't take an argument.
- if (this->nextchar_ == 0 || *this->nextchar_ == '\0')
- {
- int retval = this->nextchar_i ();
- if (retval != 0)
- return retval;
- }
-
- if (((this->argv_[this->optind][0] == '-')
- && (this->argv_[this->optind][1] == '-')) || this->long_only_)
- return this->long_option_i ();
-
- return this->short_option_i ();
-}
-
-int
-ACE_Get_Opt::long_option (const ACE_TCHAR *name,
- OPTION_ARG_MODE has_arg)
-{
- ACE_TRACE ("ACE_Get_Opt::long_option (const ACE_TCHAR *name, OPTION_ARG_MODE has_arg)");
- return this->long_option (name, 0, has_arg);
-}
-
-int
-ACE_Get_Opt::long_option (const ACE_TCHAR *name,
- int short_option,
- OPTION_ARG_MODE has_arg)
-{
- ACE_TRACE ("ACE_Get_Opt::long_option (const ACE_TCHAR *name, int short_option, OPTION_ARG_MODE has_arg)");
-
- // We only allow valid alpha-numeric characters as short options.
- // If short_options is not a valid alpha-numeric, we can still return it
- // when the long option is found, but won't allow the caller to pass it on
- // the command line (how could they?). The special case is 0, but since
- // we always return it, we let the caller worry about that.
-#if defined (_MSC_VER) && (_MSC_VER >= 1300)
- // For MSVC 7.x, we need to prevent "illegal" character getting into
- // isalnum, otherwise, it will crash the program.
- if (short_option > 0 &&
- short_option < 256 &&
- ACE_OS::ace_isalnum (static_cast<char> (short_option)) != 0)
-#else
- if (ACE_OS::ace_isalnum (short_option) != 0)
-#endif /* _MSC_VER && _MSC_VER >= 1300 */
- {
- // If the short_option already exists, make sure it matches, otherwise
- // add it.
- ACE_TCHAR *s = 0;
- if ((s = const_cast<ACE_TCHAR*> (
- ACE_OS::strchr (this->optstring_->c_str (),
- short_option))) != 0)
- {
- // Short option exists, so verify the argument options
- if (s[1] == ':')
- {
- if (s[2] == ':')
- {
- if (has_arg != ARG_OPTIONAL)
- {
- if (this->opterr)
- ACE_ERROR
- ((LM_ERROR,
- ACE_LIB_TEXT ("Existing short option '%c' takes ")
- ACE_LIB_TEXT ("optional argument; adding %s ")
- ACE_LIB_TEXT ("requires ARG_OPTIONAL\n"),
- short_option, name));
- return -1;
- }
- }
- else
- if (has_arg != ARG_REQUIRED)
- {
- if (this->opterr)
- ACE_ERROR
- ((LM_ERROR,
- ACE_LIB_TEXT ("Existing short option '%c' requires ")
- ACE_LIB_TEXT ("an argument; adding %s ")
- ACE_LIB_TEXT ("requires ARG_REQUIRED\n"),
- short_option, name));
- return -1;
- }
- }
- else if (has_arg != NO_ARG)
- {
- if (this->opterr)
- ACE_ERROR
- ((LM_ERROR,
- ACE_LIB_TEXT ("Existing short option '%c' does not ")
- ACE_LIB_TEXT ("accept an argument; adding %s ")
- ACE_LIB_TEXT ("requires NO_ARG\n"),
- short_option, name));
- return -1;
- }
- }
- else
- {
- // Didn't find short option, so add it...
- *this->optstring_ += (ACE_TCHAR) short_option;
- if (has_arg == ARG_REQUIRED)
- *this->optstring_ += ACE_LIB_TEXT (":");
- else if (has_arg == ARG_OPTIONAL)
- *this->optstring_ += ACE_LIB_TEXT ("::");
- }
- }
-
- ACE_Get_Opt_Long_Option *option =
- new ACE_Get_Opt_Long_Option (name, has_arg, short_option);
-
- if (!option)
- return -1;
-
- // Add to array
- size_t size = this->long_opts_.size ();
- if (this->long_opts_.size (size + 1) != 0
- || this->long_opts_.set (option, size) != 0)
- {
- delete option;
- ACE_ERROR_RETURN
- ((LM_ERROR, ACE_LIB_TEXT ("Could not add long option to array.\n")),
- -1);
- }
- return 0;
-}
-
-const ACE_TCHAR*
-ACE_Get_Opt::long_option (void) const
-{
- ACE_TRACE ("ACE_Get_Opt::long_option (void)");
- if (this->long_option_)
- return this->long_option_->name_;
- return 0;
-}
-
-const ACE_TCHAR*
-ACE_Get_Opt::last_option (void) const
-{
- return this->last_option_->c_str ();
-}
-
-void
-ACE_Get_Opt::last_option (const ACE_TString &last_option)
-{
- *this->last_option_ = last_option;
-}
-
-void
-ACE_Get_Opt::dump (void) const
-{
-#if defined (ACE_HAS_DUMP)
- ACE_TRACE ("ACE_Get_Opt::dump");
-
- ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n")
- ACE_LIB_TEXT ("opstring_ = %s\n")
- ACE_LIB_TEXT ("long_only_ = %d\n")
- ACE_LIB_TEXT ("has_colon_ = %d\n")
- ACE_LIB_TEXT ("last_option_ = %s\n")
- ACE_LIB_TEXT ("nextchar_ = %s\n")
- ACE_LIB_TEXT ("optopt_ = %c\n")
- ACE_LIB_TEXT ("ordering_ = %d\n"),
- this->optstring_->c_str (),
- this->long_only_,
- this->has_colon_,
- this->last_option_->c_str (),
- this->nextchar_,
- this->optopt_,
- this->ordering_));
-
- // now loop through the
- size_t size = this->long_opts_.size ();
- for (u_int i = 0; i < size ; ++i)
- {
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n")
- ACE_LIB_TEXT ("long_option name_ = %s\n")
- ACE_LIB_TEXT ("has_arg_ = %d\n")
- ACE_LIB_TEXT ("val_ = %d\n"),
- this->long_opts_[i]->name_,
- this->long_opts_[i]->has_arg_,
- this->long_opts_[i]->val_));
- }
- ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
-#endif /* ACE_HAS_DUMP */
-}
-
-void
-ACE_Get_Opt::permute_args (void)
-{
- ACE_TRACE ("ACE_Get_Opt::permute_args");
-
- u_long cyclelen, i, j, ncycle, nnonopts, nopts;
- u_long opt_end = this->optind;
- int cstart, pos = 0;
- ACE_TCHAR *swap = 0;
-
- nnonopts = this->nonopt_end_ - this->nonopt_start_;
- nopts = opt_end - this->nonopt_end_;
- ncycle = ACE::gcd (nnonopts, nopts);
- cyclelen = (opt_end - this->nonopt_start_) / ncycle;
-
- this->optind = this->optind - nnonopts;
-
- for (i = 0; i < ncycle; i++)
- {
- cstart = this->nonopt_end_ + i;
- pos = cstart;
- for (j = 0; j < cyclelen; j++)
- {
- if (pos >= this->nonopt_end_)
- pos -= nnonopts;
- else
- pos += nopts;
- swap = this->argv_[pos];
-
- ((ACE_TCHAR **)this->argv_)[pos] = argv_[cstart];
-
- ((ACE_TCHAR **)this->argv_)[cstart] = swap;
- }
- }
-}
-
-int
-ACE_Get_Opt::permute (void)
-{
- ACE_TRACE ("ACE_Get_Opt::permute");
-
- if (this->nonopt_start_ != this->nonopt_end_
- && this->nonopt_start_ != this->optind)
- this->permute_args ();
-
- this->nonopt_start_ = this->optind;
-
- // Skip over args untill we find the next option.
- while (this->optind < this->argc_
- && (this->argv_[this->optind][0] != '-'
- || this->argv_[this->optind][1] == '\0'))
- this->optind++;
-
- // Got an option, so mark this as the end of the non options.
- this->nonopt_end_ = this->optind;
-
- if (this->optind != this->argc_
- && ACE_OS::strcmp (this->argv_[this->optind],
- ACE_LIB_TEXT ("--")) == 0)
- {
- // We found the marker for the end of the options.
- this->optind++;
-
- if (this->nonopt_start_ != this->nonopt_end_
- && this->nonopt_end_ != this->optind)
- this->permute_args ();
- }
-
- if (this->optind == this->argc_)
- {
- if (this->nonopt_start_ != this->nonopt_end_)
- this->optind = this->nonopt_start_;
- return EOF;
- }
- return 0;
-}
-
-const ACE_TCHAR *
-ACE_Get_Opt::optstring (void) const
-{
- return this->optstring_->c_str ();
-}
-
-ACE_Get_Opt::ACE_Get_Opt_Long_Option::ACE_Get_Opt_Long_Option (
- const ACE_TCHAR *name,
- int has_arg,
- int val)
- : name_ (ACE::strnew (name)),
- has_arg_ (has_arg),
- val_ (val)
-{}
-
-ACE_Get_Opt::ACE_Get_Opt_Long_Option::~ACE_Get_Opt_Long_Option (void)
-{
- // MSVC++ 6 can't deal with deleting a const ACE_TCHAR *.
-#if defined (_MSC_VER) && _MSC_VER < 1300
- delete [] const_cast <ACE_TCHAR *> (this->name_);
-#else
- delete [] this->name_;
-#endif /* _MSC_VER < 1300 */
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Array<ACE_Get_Opt::ACE_Get_Opt_Long_Option *>;
-template class ACE_Array_Base<ACE_Get_Opt::ACE_Get_Opt_Long_Option *>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Array<ACE_Get_Opt::ACE_Get_Opt_Long_Option *>
-#pragma instantiate ACE_Array_Base<ACE_Get_Opt::ACE_Get_Opt_Long_Option *>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Get_Opt.h b/ace/Get_Opt.h
index 73a18f6a051..c47951a3271 100644
--- a/ace/Get_Opt.h
+++ b/ace/Get_Opt.h
@@ -26,24 +26,26 @@
#undef optarg
#undef opterr
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
* These definitions are for backward compatibility with previous versions.
- * of ACE_Get_Opt.
+ * of ACE_Get_Arg_Opt.
*/
/**
- * @class ACE_Get_Opt
+ * @class ACE_Get_Arg_Opt
*
* @brief Iterator for parsing command-line arguments.
*
* This is a C++ wrapper for getopt(3c) and getopt_long(3c).
*/
-class ACE_Export ACE_Get_Opt
+template < typename CHAR_TYPE = char >
+class ACE_Get_Arg_Opt
{
public:
+ typedef CHAR_TYPE Char;
+ typedef ACE_String_Base<Char> String;
+
/// Mutually exclusive ordering values.
enum
{
@@ -169,16 +171,16 @@ public:
* xxx" will only find "xxx" as the argument for @e c if @a optstring is
* specified as @c "abc:" not @c "abc::".
*/
- ACE_Get_Opt (int argc,
- ACE_TCHAR **argv,
- const ACE_TCHAR *optstring = ACE_LIB_TEXT (""),
+ ACE_Get_Arg_Opt (int argc,
+ Char **argv,
+ const Char *optstring = 0,
int skip_args = 1,
int report_errors = 0,
int ordering = PERMUTE_ARGS,
int long_only = 0);
/// Default dtor.
- ~ACE_Get_Opt (void);
+ ~ACE_Get_Arg_Opt (void);
/**
* Scan elements of @a argv (whose length is @a argc) for short option
@@ -218,12 +220,14 @@ public:
*/
int operator () (void);
+ static int eof();
+
/**
* For communication from @c operator() to the caller. When
* @c operator() finds an option that takes an argument, the argument
* value is returned from this method, otherwise it returns 0.
*/
- ACE_TCHAR *opt_arg (void) const;
+ Char *opt_arg (void) const;
/**
* Returns the most recently matched option character. Especially
@@ -231,7 +235,7 @@ public:
* that's required, since this allows the caller to learn what option
* was specified without its required argument.
*/
- int opt_opt (void);
+ Char opt_opt (void);
/**
* Index in @a argv of the next element to be scanned. This is used
@@ -258,7 +262,7 @@ public:
* @retval 0 Success
* @retval -1 The long option can not be added.
*/
- int long_option (const ACE_TCHAR *name,
+ int long_option (const Char *name,
OPTION_ARG_MODE has_arg = NO_ARG);
/// Adds a long option with a corresponding short option.
@@ -275,32 +279,32 @@ public:
* @retval 0 Success
* @retval -1 The long option can not be added.
*/
- int long_option (const ACE_TCHAR *name,
+ int long_option (const Char *name,
int short_option,
OPTION_ARG_MODE has_arg = NO_ARG);
/// Returns the name of the long option found on the last call to
/// @c operator() or 0 if none was found.
- const ACE_TCHAR *long_option (void) const;
+ const Char *long_option (void) const;
/// The number of arguments in the internal @c argv_.
int argc (void) const;
/// Accessor for the internal @c argv_ pointer.
- ACE_TCHAR **argv (void) const;
+ Char **argv (void) const;
/// Accessor for the @c last_option that was processed. This allows
/// applications to know if the found option was a short or long
/// option, and is especially useful in cases where it was invalid
/// and the caller wants to print out the invalid value.
- const ACE_TCHAR *last_option (void) const;
+ const Char *last_option (void) const;
/// Dump the state of an object.
void dump (void) const;
/// Return the @a optstring. This is handy to verify that calls to
/// long_option added short options as expected.
- const ACE_TCHAR *optstring (void) const;
+ const Char *optstring (void) const;
public:
/*
@@ -325,7 +329,7 @@ public:
* write code that relies on this member being public; use the
* @c argv() accessor method instead.
*/
- ACE_TCHAR **argv_;
+ Char **argv_;
/// Index in @c argv_ of the next element to be scanned.
/**
@@ -354,28 +358,28 @@ public:
* write code that relies on this member being public; use the
* @c opt_arg() accessor method instead.
*/
- ACE_TCHAR *optarg;
+ Char *optarg;
private:
/**
* @class ACE_Get_Opt_Long_Option This class is for internal use
- * in the ACE_Get_Opt class, and is inaccessible to users.
+ * in the ACE_Get_Arg_Opt class, and is inaccessible to users.
*/
class ACE_Get_Opt_Long_Option
{
public:
/// ctor
- ACE_Get_Opt_Long_Option (const ACE_TCHAR *name,
+ ACE_Get_Opt_Long_Option (const Char *name,
int has_arg,
int val = 0);
- /// Dtor.
+ /// Default dtor.
~ACE_Get_Opt_Long_Option (void);
bool operator < (const ACE_Get_Opt_Long_Option &rhs);
/// Long option name.
- const ACE_TCHAR *name_;
+ const Char *name_;
/// Contains value for <OPTION_ARG_MODE>.
int has_arg_;
@@ -390,7 +394,7 @@ private:
};
/// Updates nextchar_.
- int nextchar_i (void);
+ Char nextchar_i (void);
/// Handles long options.
int long_option_i (void);
@@ -407,16 +411,10 @@ private:
int permute (void);
/// Set last_option.
- void last_option (const ACE_TString &s);
-
- // Disallow copying and assignment.
- ACE_Get_Opt (const ACE_Get_Opt &);
- ACE_Get_Opt &operator= (const ACE_Get_Opt &);
-
-private:
+ void last_option (const String &s);
/// Holds the option string.
- ACE_TString *optstring_;
+ String *optstring_;
/// Treat all options as long options.
int long_only_;
@@ -428,7 +426,7 @@ private:
/// This is the last option, short or long, that was processed. This
/// is handy to have in cases where the option passed was invalid.
- ACE_TString *last_option_;
+ String *last_option_;
/**
* The next char to be scanned in the option-element in which the
@@ -437,7 +435,7 @@ private:
* If this is zero, or a null string, it means resume the scan
* by advancing to the next <argv>-element.
*/
- ACE_TCHAR *nextchar_;
+ Char *nextchar_;
/// Most recently matched short option character.
int optopt_;
@@ -462,13 +460,13 @@ private:
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
+ ACE_UNIMPLEMENTED_FUNC (ACE_Get_Arg_Opt (const ACE_Get_Arg_Opt<CHAR_TYPE> &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Get_Arg_Opt &operator= (const ACE_Get_Arg_Opt<CHAR_TYPE> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+typedef ACE_Get_Arg_Opt< ACE_TCHAR > ACE_Get_Opt;
-#if defined (__ACE_INLINE__)
#include "ace/Get_Opt.inl"
-#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* ACE_GET_OPT_H */
diff --git a/ace/Get_Opt.inl b/ace/Get_Opt.inl
index cbe5f167e55..1db0c562aee 100644
--- a/ace/Get_Opt.inl
+++ b/ace/Get_Opt.inl
@@ -2,42 +2,740 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/ACE.h"
+#include "ace/Log_Msg.h"
+#include "ace/SString.h"
+#include "ace/OS_Memory.h"
+#include "ace/OS_NS_string.h"
+#include "ace/OS_NS_ctype.h"
+#include "ace/OS_NS_stdlib.h"
-ACE_INLINE bool
-ACE_Get_Opt::ACE_Get_Opt_Long_Option::operator < (const ACE_Get_Opt_Long_Option &rhs)
+ACE_ALLOC_HOOK_DEFINE(ACE_Get_Arg_Opt)
+
+template < typename CHAR_TYPE >
+ACE_Get_Arg_Opt<CHAR_TYPE>::ACE_Get_Arg_Opt (int argc,
+ Char **argv,
+ const Char *optstring,
+ int skip,
+ int report_errors,
+ int ordering,
+ int long_only)
+ : argc_ (argc),
+ argv_ (argv),
+ optind (skip),
+ opterr (report_errors),
+ optarg (0),
+ optstring_ (0),
+ long_only_ (long_only),
+ has_colon_ (0),
+ last_option_ (0),
+ nextchar_ (0),
+ optopt_ (0),
+ ordering_ (ordering),
+ nonopt_start_ (optind),
+ nonopt_end_ (optind),
+ long_option_ (0)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::ACE_Get_Arg_Opt");
+
+ if ( optstring != 0 )
+ ACE_NEW (this->optstring_, String (optstring));
+ else
+ ACE_NEW (this->optstring_, String);
+ ACE_NEW (this->last_option_, String);
+
+ // First check to see if POSIXLY_CORRECT was set.
+ // Win32 is the only platform capable of wide-char env var.
+#if defined (ACE_WIN32)
+ const ACE_TCHAR *env_check = ACE_LIB_TEXT ("POSIXLY_CORRECT");
+#else
+ const char *env_check = "POSIXLY_CORRECT";
+#endif
+ if (ACE_OS::getenv (env_check) != 0)
+ this->ordering_ = REQUIRE_ORDER;
+
+ // Now, check to see if any or the following were passed at
+ // the begining of optstring: '+' same as POSIXLY_CORRECT;
+ // '-' turns off POSIXLY_CORRECT; or ':' which signifies we
+ // should return ':' if a parameter is missing for an option.
+ // We use a loop here, since a combination of "{+|-}:" in any
+ // order should be legal.
+ int done = 0;
+ int offset = 0;
+ while (!done)
+ {
+ switch (optstring[offset++])
+ {
+ case ACE_LIB_TEXT('+'):
+ this->ordering_ = REQUIRE_ORDER;
+ break;
+ case ACE_LIB_TEXT('-'):
+ this->ordering_ = RETURN_IN_ORDER;
+ break;
+ case ACE_LIB_TEXT(':'):
+ this->has_colon_ = 1;
+ break;
+ default:
+ // Quit as soon as we see something else...
+ done = 1;
+ break;
+ }
+ }
+}
+
+template < typename CHAR_TYPE >
+ACE_Get_Arg_Opt<CHAR_TYPE>::~ACE_Get_Arg_Opt (void)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::~ACE_Get_Arg_Opt");
+
+ size_t i = 0;
+ size_t size = this->long_opts_.size ();
+ ACE_Get_Opt_Long_Option *option = 0;
+ for (i = 0; i < size; ++i)
+ {
+ int retval = this->long_opts_.get (option, i);
+ if (retval != 0)
+ {
+ // Should never happen.
+ retval = 0;
+ continue;
+ }
+ if (option)
+ {
+ delete option;
+ option = 0;
+ }
+ }
+ delete this->optstring_;
+ delete this->last_option_;
+}
+
+template < typename CHAR_TYPE >
+typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char
+ACE_Get_Arg_Opt<CHAR_TYPE>::nextchar_i (void)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::nextchar_i");
+
+ if (this->ordering_ == PERMUTE_ARGS)
+ if (this->permute () == eof())
+ return eof();
+
+ // Update scanning pointer.
+ if (this->optind >= this->argc_)
+ {
+ // We're done...
+ this->nextchar_ = 0;
+ return eof();
+ }
+ else if (*(this->nextchar_ = this->argv_[this->optind]) != ACE_LIB_TEXT('-')
+ || this->nextchar_[1] == ACE_LIB_TEXT('\0'))
+ {
+ // We didn't get an option.
+
+ if (this->ordering_ == REQUIRE_ORDER
+ || this->ordering_ == PERMUTE_ARGS)
+ // If we permuted or require the options to be in order, we're done.
+ return eof();
+
+ // It must be RETURN_IN_ORDER...
+ this->optarg = this->argv_[this->optind++];
+ this->nextchar_ = 0;
+ return 1;
+ }
+ else if (this->nextchar_[1] != 0
+ && *++this->nextchar_ == ACE_LIB_TEXT('-')
+ && this->nextchar_[1] == ACE_LIB_TEXT('\0'))
+ {
+ // Found "--" so we're done...
+ ++this->optind;
+ this->nextchar_ = 0;
+ return eof();
+ }
+
+ // If it's a long option, and we allow long options advance nextchar_.
+ if (*this->nextchar_ == ACE_LIB_TEXT('-') && this->long_opts_.size () != 0)
+ this->nextchar_++;
+
+ return ACE_LIB_TEXT('\0');
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::long_option_i (void)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::long_option_i");
+
+ ACE_Get_Opt_Long_Option *p;
+ Char *s = this->nextchar_;
+ int hits = 0;
+ int exact = 0;
+ ACE_Get_Opt_Long_Option *pfound = 0;
+ int indfound = 0;
+
+ // Advance to the end of the long option name so we can use
+ // it to get the length for a string compare.
+ while (*s && *s != ACE_LIB_TEXT('='))
+ s++;
+
+ size_t len = s - this->nextchar_;
+ // set last_option_ to nextchar_, up to the '='.
+ this->last_option (String (this->nextchar_, len));
+
+ size_t size = this->long_opts_.size ();
+ u_int option_index = 0;
+ for (option_index = 0; option_index < size ; option_index++)
+ {
+ p = this->long_opts_[option_index];
+ ACE_ASSERT (p);
+
+ if (!ACE_OS::strncmp (p->name_, this->nextchar_, len))
+ {
+ // Got at least a partial match.
+ pfound = p;
+ indfound = option_index;
+ hits += 1;
+ if (len == ACE_OS::strlen(p->name_))
+ {
+ // And in fact, it's an exact match, so let's use it.
+ exact = 1;
+ break;
+ }
+ }
+ }
+
+ if ((hits > 1) && !exact)
+ {
+ // Great, we found a match, but unfortunately we found more than
+ // one and it wasn't exact.
+ if (this->opterr)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%s: option `%s' is ambiguous\n"),
+ this->argv_[0], this->argv_[this->optind]));
+ this->nextchar_ = 0;
+ this->optind++;
+ return ACE_LIB_TEXT('?');
+ }
+
+ if (pfound != 0)
+ {
+ // Okay, we found a good one (either a single hit or an exact match).
+ option_index = indfound;
+ this->optind++;
+ if (*s)
+ {
+ // s must point to '=' which means there's an argument (well
+ // close enough).
+ if (pfound->has_arg_ != NO_ARG)
+ // Good, we want an argument and here it is.
+ this->optarg = ++s;
+ else
+ {
+ // Whoops, we've got what looks like an argument, but we
+ // don't want one.
+ if (this->opterr)
+ ACE_ERROR
+ ((LM_ERROR,
+ ACE_LIB_TEXT ("%s: long option `--%s' doesn't allow ")
+ ACE_LIB_TEXT ("an argument\n"),
+ this->argv_[0], pfound->name_));
+ // The spec doesn't cover this, so we keep going and the program
+ // doesn't know we ignored an argument if opt_err is off!!!
+ }
+ }
+ else if (pfound->has_arg_ == ARG_REQUIRED)
+ {
+ // s didn't help us, but we need an argument. Note that
+ // optional arguments for long options must use the "=" syntax,
+ // so we won't get here in that case.
+ if (this->optind < this->argc_)
+ // We still have some elements left, so use the next one.
+ this->optarg = this->argv_[this->optind++];
+ else
+ {
+ // All out of elements, so we have to punt...
+ if (this->opterr)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%s: long option '--%s' requires ")
+ ACE_LIB_TEXT ("an argument\n"),
+ this->argv_[0], pfound->name_));
+ this->nextchar_ = 0;
+ this->optopt_ = pfound->val_; // Remember matching short equiv
+ return this->has_colon_ ? ACE_LIB_TEXT(':') : ACE_LIB_TEXT('?');
+ }
+ }
+ this->nextchar_ = 0;
+ this->long_option_ = pfound;
+ // Since val_ has to be either a valid short option or 0, this works
+ // great. If the user really wants to know if a long option was passed.
+ this->optopt_ = pfound->val_;
+ return pfound->val_;
+ }
+ if (!this->long_only_ || this->argv_[this->optind][1] == ACE_LIB_TEXT('-')
+ || this->optstring_->find (*this->nextchar_) == String::npos)
+ {
+ // Okay, we couldn't find a long option. If it isn't long_only (which
+ // means try the long first, and if not found try the short) or a long
+ // signature was passed, e.g. "--", or it's not a short (not sure when
+ // this could happen) it's an error.
+ if (this->opterr)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%s: illegal long option '--%s'\n"),
+ this->argv_[0], this->nextchar_));
+ this->nextchar_ = 0;
+ this->optind++;
+ return ACE_LIB_TEXT('?');
+ }
+ return this->short_option_i ();
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::short_option_i (void)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::short_option_i");
+
+ /* Look at and handle the next option-character. */
+ Char opt = *this->nextchar_++;
+ // Set last_option_ to opt
+ this->last_option (opt);
+
+ Char *oli = 0;
+ oli =
+ const_cast<Char*> (ACE_OS::strchr (this->optstring_->c_str (), opt));
+
+ /* Increment `optind' when we start to process its last character. */
+ if (*this->nextchar_ == ACE_LIB_TEXT('\0'))
+ ++this->optind;
+
+ if (oli == 0 || opt == ACE_LIB_TEXT(':'))
+ {
+ if (this->opterr)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%s: illegal short option -- %c\n"),
+ this->argv_[0], opt));
+ return ACE_LIB_TEXT('?');
+ }
+ if (opt == ACE_LIB_TEXT('W') && oli[1] == ACE_LIB_TEXT(';'))
+ {
+ if (this->nextchar_[0] == 0)
+ this->nextchar_ = this->argv_[this->optind];
+ return long_option_i ();
+ }
+ this->optopt_ = oli[0]; // Remember the option that matched
+ if (oli[1] == ACE_LIB_TEXT(':'))
+ {
+ if (oli[2] == ACE_LIB_TEXT(':'))
+ {
+ // Takes an optional argument, and since short option args must
+ // must follow directly in the same argument, a NULL nextchar_
+ // means we didn't get one.
+ if (*this->nextchar_ != ACE_LIB_TEXT('\0'))
+ {
+ this->optarg = this->nextchar_;
+ this->optind++;
+ }
+ else
+ this->optarg = 0;
+ this->nextchar_ = 0;
+ }
+ else
+ {
+ // Takes a required argument.
+ if (*this->nextchar_ != ACE_LIB_TEXT('\0'))
+ {
+ // Found argument in same argv-element.
+ this->optarg = this->nextchar_;
+ this->optind++;
+ }
+ else if (this->optind == this->argc_)
+ {
+ // Ran out of arguments before finding required argument.
+ if (this->opterr)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("%s: short option requires ")
+ ACE_LIB_TEXT ("an argument -- %c\n"),
+ this->argv_[0], opt));
+ opt = this->has_colon_ ? ACE_LIB_TEXT(':') : ACE_LIB_TEXT('?');
+ }
+ else
+ // Use the next argv-element as the argument.
+ this->optarg = this->argv_[this->optind++];
+ this->nextchar_ = 0;
+ }
+ }
+ return opt;
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::operator () (void)
+{
+ ACE_TRACE ("ACE_Get_Opt_Long::operator");
+
+ // First of all, make sure we reinitialize any pointers..
+ this->optarg = 0;
+ this->long_option_ = 0;
+
+ if (this->argv_ == 0)
+ {
+ // It can happen, e.g., on VxWorks.
+ this->optind = 0;
+ return -1;
+ }
+
+ // We check this because we can string short options together if the
+ // preceding one doesn't take an argument.
+ if (this->nextchar_ == 0 || *this->nextchar_ == ACE_LIB_TEXT('\0'))
+ {
+ int retval = this->nextchar_i ();
+ if (retval != 0)
+ return retval;
+ }
+
+ if (((this->argv_[this->optind][0] == ACE_LIB_TEXT('-'))
+ && (this->argv_[this->optind][1] == ACE_LIB_TEXT('-'))) || this->long_only_)
+ return this->long_option_i ();
+
+ return this->short_option_i ();
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::long_option (const Char *name,
+ OPTION_ARG_MODE has_arg)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::long_option (const Char *name, OPTION_ARG_MODE has_arg)");
+ return this->long_option (name, 0, has_arg);
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::long_option (const Char *name,
+ int short_option,
+ OPTION_ARG_MODE has_arg)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::long_option (const Char *name, int short_option, OPTION_ARG_MODE has_arg)");
+
+ // We only allow valid alpha-numeric characters as short options.
+ // If short_options is not a valid alpha-numeric, we can still return it
+ // when the long option is found, but won't allow the caller to pass it on
+ // the command line (how could they?). The special case is 0, but since
+ // we always return it, we let the caller worry about that.
+#if defined (_MSC_VER) && (_MSC_VER >= 1300)
+ // For MSVC 7.x, we need to prevent "illegal" character getting into
+ // isalnum, otherwise, it will crash the program.
+ if (short_option > 0 &&
+ short_option < 256 &&
+ ACE_OS::ace_isalnum (short_option) != 0)
+#else
+ if (ACE_OS::ace_isalnum (short_option) != 0)
+#endif /* _MSC_VER && _MSC_VER >= 1300 */
+ {
+ // If the short_option already exists, make sure it matches, otherwise
+ // add it.
+ Char *s = 0;
+ if ((s = const_cast<Char*> (
+ ACE_OS::strchr (this->optstring_->c_str (),
+ short_option))) != 0)
+ {
+ // Short option exists, so verify the argument options
+ if (s[1] == ACE_LIB_TEXT(':'))
+ {
+ if (s[2] == ACE_LIB_TEXT(':'))
+ {
+ if (has_arg != ARG_OPTIONAL)
+ {
+ if (this->opterr)
+ ACE_ERROR
+ ((LM_ERROR,
+ ACE_LIB_TEXT ("Existing short option '%c' takes ")
+ ACE_LIB_TEXT ("optional argument; adding %s ")
+ ACE_LIB_TEXT ("requires ARG_OPTIONAL\n"),
+ short_option, name));
+ return -1;
+ }
+ }
+ else
+ if (has_arg != ARG_REQUIRED)
+ {
+ if (this->opterr)
+ ACE_ERROR
+ ((LM_ERROR,
+ ACE_LIB_TEXT ("Existing short option '%c' requires ")
+ ACE_LIB_TEXT ("an argument; adding %s ")
+ ACE_LIB_TEXT ("requires ARG_REQUIRED\n"),
+ short_option, name));
+ return -1;
+ }
+ }
+ else if (has_arg != NO_ARG)
+ {
+ if (this->opterr)
+ ACE_ERROR
+ ((LM_ERROR,
+ ACE_LIB_TEXT ("Existing short option '%c' does not ")
+ ACE_LIB_TEXT ("accept an argument; adding %s ")
+ ACE_LIB_TEXT ("requires NO_ARG\n"),
+ short_option, name));
+ return -1;
+ }
+ }
+ else
+ {
+ // Didn't find short option, so add it...
+ *this->optstring_ += (Char) short_option;
+ if (has_arg == ARG_REQUIRED)
+ {
+ Char delim[3] = { ':', '\0' };
+ *this->optstring_ += delim;
+ }
+ else if (has_arg == ARG_OPTIONAL)
+ {
+ Char delim[3] = { ':', ':', '\0' };
+ *this->optstring_ += delim;
+ }
+ }
+ }
+
+ ACE_Get_Opt_Long_Option *option =
+ new ACE_Get_Opt_Long_Option (name, has_arg, short_option);
+
+ if (!option)
+ return -1;
+
+ // Add to array
+ size_t size = this->long_opts_.size ();
+ if (this->long_opts_.size (size + 1) != 0
+ || this->long_opts_.set (option, size) != 0)
+ {
+ delete option;
+ ACE_ERROR_RETURN
+ ((LM_ERROR, ACE_LIB_TEXT ("Could not add long option to array.\n")),
+ -1);
+ }
+ return 0;
+}
+
+template < typename CHAR_TYPE >
+const typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char*
+ACE_Get_Arg_Opt<CHAR_TYPE>::long_option (void) const
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::long_option (void)");
+ if (this->long_option_)
+ return this->long_option_->name_;
+ return 0;
+}
+
+template < typename CHAR_TYPE >
+const typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char*
+ACE_Get_Arg_Opt<CHAR_TYPE>::last_option (void) const
+{
+ return this->last_option_->c_str ();
+}
+
+template < typename CHAR_TYPE >
+void
+ACE_Get_Arg_Opt<CHAR_TYPE>::last_option (const typename ACE_Get_Arg_Opt<CHAR_TYPE>::String &last_option)
+{
+ *this->last_option_ = last_option;
+}
+
+template < typename CHAR_TYPE >
+void
+ACE_Get_Arg_Opt<CHAR_TYPE>::dump (void) const
+{
+#if defined (ACE_HAS_DUMP)
+ ACE_TRACE ("ACE_Get_Arg_Opt::dump");
+
+ ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n")
+ ACE_LIB_TEXT ("opstring_ = %s\n")
+ ACE_LIB_TEXT ("long_only_ = %d\n")
+ ACE_LIB_TEXT ("has_colon_ = %d\n")
+ ACE_LIB_TEXT ("last_option_ = %s\n")
+ ACE_LIB_TEXT ("nextchar_ = %s\n")
+ ACE_LIB_TEXT ("optopt_ = %c\n")
+ ACE_LIB_TEXT ("ordering_ = %d\n"),
+ this->optstring_->c_str (),
+ this->long_only_,
+ this->has_colon_,
+ this->last_option_->c_str (),
+ this->nextchar_,
+ this->optopt_,
+ this->ordering_));
+
+ // now loop through the
+ size_t size = this->long_opts_.size ();
+ for (u_int i = 0; i < size ; ++i)
+ {
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n")
+ ACE_LIB_TEXT ("long_option name_ = %s\n")
+ ACE_LIB_TEXT ("has_arg_ = %d\n")
+ ACE_LIB_TEXT ("val_ = %d\n"),
+ this->long_opts_[i]->name_,
+ this->long_opts_[i]->has_arg_,
+ this->long_opts_[i]->val_));
+ }
+ ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
+#endif /* ACE_HAS_DUMP */
+}
+
+template < typename CHAR_TYPE >
+void
+ACE_Get_Arg_Opt<CHAR_TYPE>::permute_args (void)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::permute_args");
+
+ int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos;
+ Char *swap;
+ int opt_end = this->optind;
+
+ nnonopts = this->nonopt_end_ - this->nonopt_start_;
+ nopts = opt_end - this->nonopt_end_;
+ ncycle = ACE::gcd (nnonopts, nopts);
+ cyclelen = (opt_end - this->nonopt_start_) / ncycle;
+
+ this->optind = this->optind - nnonopts;
+
+ for (i = 0; i < ncycle; i++)
+ {
+ cstart = this->nonopt_end_ + i;
+ pos = cstart;
+ for (j = 0; j < cyclelen; j++)
+ {
+ if (pos >= this->nonopt_end_)
+ pos -= nnonopts;
+ else
+ pos += nopts;
+ swap = this->argv_[pos];
+
+ ((Char **)this->argv_)[pos] = argv_[cstart];
+
+ ((Char **)this->argv_)[cstart] = swap;
+ }
+ }
+}
+
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::permute (void)
+{
+ ACE_TRACE ("ACE_Get_Arg_Opt::permute");
+
+ if (this->nonopt_start_ != this->nonopt_end_
+ && this->nonopt_start_ != this->optind)
+ this->permute_args ();
+
+ this->nonopt_start_ = this->optind;
+
+ // Skip over args untill we find the next option.
+ while (this->optind < this->argc_
+ && (this->argv_[this->optind][0] != ACE_LIB_TEXT('-')
+ || this->argv_[this->optind][1] == ACE_LIB_TEXT('\0')))
+ this->optind++;
+
+ // Got an option, so mark this as the end of the non options.
+ this->nonopt_end_ = this->optind;
+
+ const Char doubleDash[] = { '-', '-', 0 };
+ if (this->optind != this->argc_
+ && ACE_OS::strcmp (this->argv_[this->optind],
+ doubleDash) == 0)
+ {
+ // We found the marker for the end of the options.
+ this->optind++;
+
+ if (this->nonopt_start_ != this->nonopt_end_
+ && this->nonopt_end_ != this->optind)
+ this->permute_args ();
+ }
+
+ if (this->optind == this->argc_)
+ {
+ if (this->nonopt_start_ != this->nonopt_end_)
+ this->optind = this->nonopt_start_;
+ return eof();
+ }
+ return 0;
+}
+
+template < typename CHAR_TYPE >
+const typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char *
+ACE_Get_Arg_Opt<CHAR_TYPE>::optstring (void) const
+{
+ return this->optstring_->c_str ();
+}
+
+template < typename CHAR_TYPE >
+ACE_Get_Arg_Opt<CHAR_TYPE>::ACE_Get_Opt_Long_Option::ACE_Get_Opt_Long_Option (
+ const Char *name,
+ int has_arg,
+ int val)
+ : name_ (ACE::strnew (name)),
+ has_arg_ (has_arg),
+ val_ (val)
+{}
+
+template < typename CHAR_TYPE >
+ACE_Get_Arg_Opt<CHAR_TYPE>::ACE_Get_Opt_Long_Option::~ACE_Get_Opt_Long_Option (void)
+{
+ // MSVC++ 6 can't deal with deleting a const Char *.
+#if defined (_MSC_VER) && _MSC_VER < 1300
+ delete [] const_cast <Char *> (this->name_);
+#else
+ delete [] this->name_;
+#endif /* _MSC_VER < 1300 */
+}
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::eof()
+{
+ // Since EOF may or may not be -1,
+ // we have to use EOF to maintain
+ // backwards compatibility.
+ return EOF;
+}
+
+// Accessors
+
+template < typename CHAR_TYPE >
+bool
+ACE_Get_Arg_Opt<CHAR_TYPE>::ACE_Get_Opt_Long_Option::operator < (const ACE_Get_Opt_Long_Option &rhs)
{
return this->name_ < rhs.name_;
}
-ACE_INLINE int
-ACE_Get_Opt::argc (void) const
+template < typename CHAR_TYPE >
+int
+ACE_Get_Arg_Opt<CHAR_TYPE>::argc (void) const
{
return this->argc_;
}
-ACE_INLINE ACE_TCHAR **
-ACE_Get_Opt::argv (void) const
+template < typename CHAR_TYPE >
+typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char **
+ACE_Get_Arg_Opt<CHAR_TYPE>::argv (void) const
{
return this->argv_;
}
-ACE_INLINE ACE_TCHAR*
-ACE_Get_Opt::opt_arg (void) const
+template < typename CHAR_TYPE >
+typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char*
+ACE_Get_Arg_Opt<CHAR_TYPE>::opt_arg (void) const
{
return this->optarg;
}
-ACE_INLINE int
-ACE_Get_Opt::opt_opt (void)
+template < typename CHAR_TYPE >
+typename ACE_Get_Arg_Opt<CHAR_TYPE>::Char
+ACE_Get_Arg_Opt<CHAR_TYPE>::opt_opt (void)
{
return this->optopt_;
}
-ACE_INLINE int &
-ACE_Get_Opt::opt_ind (void)
+template < typename CHAR_TYPE >
+int &
+ACE_Get_Arg_Opt<CHAR_TYPE>::opt_ind (void)
{
return this->optind;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Global_Macros.h b/ace/Global_Macros.h
index 9b6579f87de..83ea5603395 100644
--- a/ace/Global_Macros.h
+++ b/ace/Global_Macros.h
@@ -28,7 +28,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/config-lite.h"
-#include "ace/Assert.h" // For ACE_ASSERT
// Start Global Macros
# define ACE_BEGIN_DUMP ACE_LIB_TEXT ("\n====\n(%P|%t|%x)\n")
@@ -49,9 +48,6 @@
# if defined (_DEBUG) && !defined (ACE_HAS_WINCE) && !defined (__BORLANDC__)
# include /**/ <crtdbg.h>
-// Open versioned namespace, if enabled by the user.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_No_Heap_Check
{
public:
@@ -62,10 +58,6 @@ public:
private:
int old_state;
};
-
-// Close versioned namespace, if enabled by the user.
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# define ACE_NO_HEAP_CHECK ACE_No_Heap_Check ____no_heap;
# else /* !_DEBUG */
# define ACE_NO_HEAP_CHECK
@@ -78,7 +70,7 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# define ACE_ITOA(X) #X
// Create a string of a server address with a "host:port" format.
-# define ACE_SERVER_ADDRESS(H,P) H ACE_TEXT(":") P
+# define ACE_SERVER_ADDRESS(H,P) H ACE_LIB_TEXT(":") P
// A couple useful inline functions for checking whether bits are
// enabled or disabled.
@@ -594,27 +586,6 @@ static ACE_Static_Svc_##SERVICE_CLASS ace_static_svc_##SERVICE_CLASS;
#endif /* !ACE_LACKS_STATIC_CONSTRUCTORS */
-// Preprocessor symbols will not be expanded if they are
-// concatenated. Force the preprocessor to expand them during the
-// argument prescan by calling a macro that itself calls another that
-// performs the actual concatenation.
-#define ACE_PREPROC_CONCATENATE_IMPL(A,B) A ## B
-#define ACE_PREPROC_CONCATENATE(A,B) ACE_PREPROC_CONCATENATE_IMPL(A,B)
-
-#if defined (ACE_HAS_VERSIONED_NAMESPACE) && ACE_HAS_VERSIONED_NAMESPACE == 1
-// Preprocessor symbols will not be expanded if they are
-// concatenated. Force the preprocessor to expand them during the
-// argument prescan by calling a macro that itself calls another that
-// performs the actual concatenation.
-# define ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(PREFIX,VERSIONED_NAMESPACE,SERVICE_CLASS) PREFIX ## _ ## VERSIONED_NAMESPACE ## _ ## SERVICE_CLASS
-#else
-# define ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(PREFIX,VERSIONED_NAMESPACE,SERVICE_CLASS) PREFIX ## _ ## SERVICE_CLASS
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-#define ACE_MAKE_SVC_CONFIG_FACTORY_NAME(VERSIONED_NAMESPACE,SERVICE_CLASS) ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(_make,VERSIONED_NAMESPACE,SERVICE_CLASS)
-#define ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(VERSIONED_NAMESPACE,SERVICE_CLASS) ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(_gobble,VERSIONED_NAMESPACE,SERVICE_CLASS)
-
-
/// Declare the factory method used to create dynamically loadable
/// services.
/**
@@ -631,20 +602,9 @@ static ACE_Static_Svc_##SERVICE_CLASS ace_static_svc_##SERVICE_CLASS;
* implements the service.
*
*/
-#if defined (_MSC_VER) && _MSC_VER <= 1200
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-/**
- * @todo Remove this macro once we drop MSVC++ 6 support.
- */
-# define ACE_FACTORY_DECLARE(CLS,SERVICE_CLASS) \
-extern "C" CLS##_Export ACE_Service_Object * \
-_make_ ## SERVICE_CLASS (ACE_Service_Object_Exterminator *);
-#else
-# define ACE_FACTORY_DECLARE(CLS,SERVICE_CLASS) \
-extern "C" CLS##_Export ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object * \
-ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (ACE_Service_Object_Exterminator *);
-#endif /* _MSC_VER <= 1200*/
+#define ACE_FACTORY_DECLARE(CLS,SERVICE_CLASS) \
+extern "C" CLS##_Export ACE_Service_Object *\
+_make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *);
/// Define the factory method (and destructor) for a dynamically
/// loadable service.
@@ -662,42 +622,19 @@ ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (AC
*/
# define ACE_Local_Service_Export
-#if defined (_MSC_VER) && _MSC_VER <= 1200
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-/**
- * @todo Remove this macro once we drop MSVC++ 6 support.
- */
# define ACE_FACTORY_DEFINE(CLS,SERVICE_CLASS) \
-void _gobble_ ## SERVICE_CLASS (void *p) { \
- ACE_Service_Object * _p = \
- static_cast<ACE_Service_Object *> (p); \
+void _gobble_##SERVICE_CLASS (void *p) { \
+ ACE_Service_Object *_p = static_cast<ACE_Service_Object *> (p); \
ACE_ASSERT (_p != 0); \
delete _p; } \
extern "C" CLS##_Export ACE_Service_Object *\
-_make_ ## SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \
-{ \
- ACE_TRACE (#SERVICE_CLASS); \
- if (gobbler != 0) \
- *gobbler = (ACE_Service_Object_Exterminator) _gobble_ ## SERVICE_CLASS; \
- return new SERVICE_CLASS; \
-}
-#else
-# define ACE_FACTORY_DEFINE(CLS,SERVICE_CLASS) \
-void ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (void *p) { \
- ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object * _p = \
- static_cast< ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *> (p); \
- ACE_ASSERT (_p != 0); \
- delete _p; } \
-extern "C" CLS##_Export ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *\
-ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (ACE_Service_Object_Exterminator *gobbler) \
+_make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \
{ \
ACE_TRACE (#SERVICE_CLASS); \
if (gobbler != 0) \
- *gobbler = (ACE_Service_Object_Exterminator) ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS); \
+ *gobbler = (ACE_Service_Object_Exterminator) _gobble_##SERVICE_CLASS; \
return new SERVICE_CLASS; \
}
-#endif /* _MSC_VER <= 1200 */
/**
* For service classes scoped within namespaces, use this macro in
@@ -725,58 +662,26 @@ ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (AC
* this will ensure unique generated signatures for the various C
* style functions.
*/
-#if defined (_MSC_VER) && _MSC_VER <= 1200
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-/**
- * @todo Remove this macro once we drop MSVC++ 6 support.
- */
# define ACE_FACTORY_NAMESPACE_DEFINE(CLS,SERVICE_CLASS,NAMESPACE_CLASS) \
-void _gobble_ ## SERVICE_CLASS (void *p) { \
- ACE_Service_Object * _p = \
- static_cast<ACE_Service_Object *> (p); \
+void _gobble_##SERVICE_CLASS (void *p) { \
+ ACE_Service_Object *_p = static_cast<ACE_Service_Object *> (p); \
ACE_ASSERT (_p != 0); \
delete _p; } \
extern "C" CLS##_Export ACE_Service_Object *\
-_make_ ## SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \
-{ \
- ACE_TRACE (#SERVICE_CLASS); \
- if (gobbler != 0) \
- *gobbler = (ACE_Service_Object_Exterminator) _gobble_ ## SERVICE_CLASS; \
- return new NAMESPACE_CLASS; \
-}
-#else
-# define ACE_FACTORY_NAMESPACE_DEFINE(CLS,SERVICE_CLASS,NAMESPACE_CLASS) \
-void ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (void *p) { \
- ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object * _p = \
- static_cast< ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *> (p); \
- ACE_ASSERT (_p != 0); \
- delete _p; } \
-extern "C" CLS##_Export ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *\
-ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (ACE_Service_Object_Exterminator *gobbler) \
+_make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \
{ \
ACE_TRACE (#SERVICE_CLASS); \
if (gobbler != 0) \
- *gobbler = (ACE_Service_Object_Exterminator) ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS); \
+ *gobbler = (ACE_Service_Object_Exterminator) _gobble_##SERVICE_CLASS; \
return new NAMESPACE_CLASS; \
}
-#endif /* _MSC_VER <= 1200 */
/// The canonical name for a service factory method
-#if defined (_MSC_VER) && _MSC_VER <= 1200
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-/**
- * @todo Remove this macro once we drop MSVC++ 6 support.
- */
-# define ACE_SVC_NAME(SERVICE_CLASS) _make_ ## SERVICE_CLASS
-#else
-# define ACE_SVC_NAME(SERVICE_CLASS) ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS)
-#endif /* ACE_SVC_NAME */
+#define ACE_SVC_NAME(SERVICE_CLASS) _make_##SERVICE_CLASS
/// The canonical way to invoke (i.e. construct) a service factory
/// method.
-#define ACE_SVC_INVOKE(SERVICE_CLASS) ACE_SVC_NAME(SERVICE_CLASS) (0)
+#define ACE_SVC_INVOKE(SERVICE_CLASS) _make_##SERVICE_CLASS (0)
//@}
@@ -942,9 +847,15 @@ ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (AC
# define ACE_SEH_EXCEPT(X) while (0)
# define ACE_SEH_FINALLY if (1)
# elif defined(__BORLANDC__)
-# define ACE_SEH_TRY try
-# define ACE_SEH_EXCEPT(X) __except(X)
-# define ACE_SEH_FINALLY __finally
+# if (__BORLANDC__ >= 0x0530) /* Borland C++ Builder 3.0 */
+# define ACE_SEH_TRY try
+# define ACE_SEH_EXCEPT(X) __except(X)
+# define ACE_SEH_FINALLY __finally
+# else
+# define ACE_SEH_TRY if (1)
+# define ACE_SEH_EXCEPT(X) while (0)
+# define ACE_SEH_FINALLY if (1)
+# endif
# elif defined (__IBMCPP__) && (__IBMCPP__ >= 400)
# define ACE_SEH_TRY if (1)
# define ACE_SEH_EXCEPT(X) while (0)
diff --git a/ace/Guard_T.cpp b/ace/Guard_T.cpp
index bd60ebd2356..00cbfb4ebf1 100644
--- a/ace/Guard_T.cpp
+++ b/ace/Guard_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_GUARD_T_CPP
-#define ACE_GUARD_T_CPP
+#ifndef ACE_GUARD_T_C
+#define ACE_GUARD_T_C
#include "ace/Guard_T.h"
@@ -9,6 +9,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+ACE_RCSID(ace, Guard_T, "$Id$")
+
#if !defined (__ACE_INLINE__)
#include "ace/Guard_T.inl"
#endif /* __ACE_INLINE__ */
@@ -18,9 +20,6 @@
#endif /* ACE_HAS_DUMP */
// ****************************************************************
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ACE_ALLOC_HOOK_DEFINE(ACE_Guard)
template <class ACE_LOCK> void
@@ -56,6 +55,4 @@ ACE_Read_Guard<ACE_LOCK>::dump (void) const
ACE_Guard<ACE_LOCK>::dump ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_GUARD_T_CPP */
+#endif /* ACE_GUARD_T_C */
diff --git a/ace/Guard_T.h b/ace/Guard_T.h
index d7eedef2715..552385b298e 100644
--- a/ace/Guard_T.h
+++ b/ace/Guard_T.h
@@ -25,8 +25,6 @@
#include "ace/Global_Macros.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Guard
*
@@ -47,7 +45,7 @@ public:
ACE_Guard (ACE_LOCK &l);
/// Implicitly and automatically acquire (or try to acquire) the
- /// lock. If @a block is non-0 then <acquire> the <ACE_LOCK>, else
+ /// lock. If <block> is non-0 then <acquire> the <ACE_LOCK>, else
/// <tryacquire> it.
ACE_Guard (ACE_LOCK &l, int block);
@@ -110,7 +108,7 @@ private:
/**
* @class ACE_Write_Guard
*
- * @brief This class is similar to class ACE_Guard, though it
+ * @brief This class is similar to class <ACE_Guard>, though it
* acquires/releases a write lock automatically (naturally, the
* <ACE_LOCK> it is instantiated with must support the appropriate
* API).
@@ -154,7 +152,7 @@ public:
/**
* @class ACE_Read_Guard
*
- * @brief This class is similar to class ACE_Guard, though it
+ * @brief This class is similar to class <ACE_Guard>, though it
* acquires/releases a read lock automatically (naturally, the
* <ACE_LOCK> it is instantiated with must support the appropriate
* API).
@@ -344,11 +342,8 @@ public:
// ACE_ALLOC_HOOK_DECLARE;
// Declare the dynamic allocation hooks.
};
-
#endif /* !(defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION))) */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Guard_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Guard_T.inl b/ace/Guard_T.inl
index 8c2e281f447..0ce34431d2c 100644
--- a/ace/Guard_T.inl
+++ b/ace/Guard_T.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/RW_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACE_LOCK> ACE_INLINE int
ACE_Guard<ACE_LOCK>::acquire (void)
{
@@ -167,5 +164,3 @@ ACE_Read_Guard<ACE_LOCK>::ACE_Read_Guard (ACE_LOCK &m,
else
this->tryacquire_read ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Handle_Gobbler.h b/ace/Handle_Gobbler.h
index 36c16b56ed7..8b3e472e7b8 100644
--- a/ace/Handle_Gobbler.h
+++ b/ace/Handle_Gobbler.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Handle_Gobbler
*
@@ -47,7 +44,7 @@ public:
*/
inline int consume_handles (size_t n_handles_to_keep_available);
- /// Free up @a n_handles.
+ /// Free up <n_handles>.
inline int free_handles (size_t n_handles);
/// All remaining handles are closed.
@@ -61,8 +58,6 @@ private:
HANDLE_SET handle_set_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include "ace/Handle_Gobbler.inl"
#include /**/ "ace/post.h"
diff --git a/ace/Handle_Gobbler.inl b/ace/Handle_Gobbler.inl
index 6b51908e45e..12887593086 100644
--- a/ace/Handle_Gobbler.inl
+++ b/ace/Handle_Gobbler.inl
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-//
// $Id$
// Since this is only included in Handle_Gobbler.h, these should be
@@ -9,8 +7,6 @@
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_fcntl.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
inline void
ACE_Handle_Gobbler::close_remaining_handles (void)
{
@@ -93,5 +89,3 @@ ACE_Handle_Gobbler::consume_handles (size_t n_handles_to_keep_available)
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Handle_Ops.cpp b/ace/Handle_Ops.cpp
index eae24314864..eb373af8020 100644
--- a/ace/Handle_Ops.cpp
+++ b/ace/Handle_Ops.cpp
@@ -10,9 +10,6 @@ ACE_RCSID (ace,
Handle_Ops,
"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_HANDLE
ACE::handle_timed_open (ACE_Time_Value *timeout,
const ACE_TCHAR *name,
@@ -46,5 +43,3 @@ ACE::handle_timed_open (ACE_Time_Value *timeout,
else
return ACE_OS::open (name, flags, perms, sa);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Handle_Ops.h b/ace/Handle_Ops.h
index de6918753a9..7f50eba8270 100644
--- a/ace/Handle_Ops.h
+++ b/ace/Handle_Ops.h
@@ -6,7 +6,9 @@
*
* $Id$
*
- * Handle operations.
+ * This class consolidates the operations on the Handles.
+ *
+ * @author Priyanka Gontla <pgontla@ece.uci.edu>
*/
//=============================================================================
@@ -23,8 +25,6 @@
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
// = Operations on HANDLEs.
@@ -43,8 +43,6 @@ namespace ACE
LPSECURITY_ATTRIBUTES sa = 0);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_HANDLE_OPS_H */
diff --git a/ace/Handle_Set.cpp b/ace/Handle_Set.cpp
index 3b76da06460..a24605a5367 100644
--- a/ace/Handle_Set.cpp
+++ b/ace/Handle_Set.cpp
@@ -11,8 +11,6 @@
ACE_RCSID(ace, Handle_Set, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Handle_Set)
// ACE_MSB_MASK is only used here.
@@ -237,13 +235,13 @@ ACE_Handle_Set::set_max (ACE_HANDLE current_max)
for (fd_mask val = maskp[i];
(val & ACE_MSB_MASK) != 0;
val = (val << 1))
- ++this->max_handle_;
+ this->max_handle_++;
#elif 1 /* !defined(ACE_HAS_BIG_FD_SET) */
this->max_handle_ = ACE_MULT_BY_WORDSIZE (i);
for (fd_mask val = maskp[i];
(val & ~1) != 0; // This obscure code is needed since "bit 0" is in location 1...
val = (val >> 1) & ACE_MSB_MASK)
- ++this->max_handle_;
+ this->max_handle_++;
#else
register u_long val = this->mask_.fds_bits[i];
this->max_handle_ = ACE_MULT_BY_WORDSIZE (i)
@@ -574,5 +572,3 @@ ACE_Handle_Set_Iterator::reset_state (void)
}
#endif /* !ACE_WIN32 && !ACE_HAS_BIG_FD_SET */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Handle_Set.h b/ace/Handle_Set.h
index 2e944bc5b97..d732dfe4ef5 100644
--- a/ace/Handle_Set.h
+++ b/ace/Handle_Set.h
@@ -40,8 +40,6 @@
# define ACE_DEFAULT_SELECT_REACTOR_SIZE ACE_FD_SETSIZE
#endif /* ACE_DEFAULT_SELECT_REACTOR_SIZE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Handle_Set
*
@@ -173,7 +171,7 @@ private:
/**
* @class ACE_Handle_Set_Iterator
*
- * @brief Iterator for the ACE_Handle_Set abstraction.
+ * @brief Iterator for the <ACE_Handle_Set> abstraction.
*/
class ACE_Export ACE_Handle_Set_Iterator
{
@@ -189,7 +187,7 @@ public:
void reset_state (void);
/**
- * "Next" operator. Returns the next unseen ACE_HANDLE in the
+ * "Next" operator. Returns the next unseen <ACE_HANDLE> in the
* <Handle_Set> up to <handle_set_.max_handle_>). When all the
* handles have been seen returns <ACE_INVALID_HANDLE>. Advances
* the iterator automatically, so you need not call <operator++>
@@ -199,7 +197,6 @@ public:
/// This is a no-op and no longer does anything. It's only here for
/// backwards compatibility.
- /// @deprecated
void operator++ (void);
/// Dump the state of an object.
@@ -239,8 +236,6 @@ private:
#endif /* !ACE_WIN32 && !ACE_HAS_BIG_FD_SET */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Handle_Set.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Handle_Set.inl b/ace/Handle_Set.inl
index b6f77cfac93..d00fb384863 100644
--- a/ace/Handle_Set.inl
+++ b/ace/Handle_Set.inl
@@ -1,7 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// Handle_Set.i
#include "ace/Log_Msg.h"
// todo: This should be cleaned up a bit.
@@ -21,8 +21,6 @@
# include "ace/os_include/os_strings.h"
#endif /* ACE_HAS_STRINGS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Initialize the bitmask to all 0s and reset the associated fields.
ACE_INLINE void
@@ -102,7 +100,7 @@ ACE_Handle_Set::set_bit (ACE_HANDLE handle)
#if defined (ACE_WIN32)
FD_SET ((SOCKET) handle,
&this->mask_);
- ++this->size_;
+ this->size_++;
#else /* ACE_WIN32 */
#if defined (ACE_HAS_BIG_FD_SET)
if (this->size_ == 0)
@@ -114,7 +112,7 @@ ACE_Handle_Set::set_bit (ACE_HANDLE handle)
FD_SET (handle,
&this->mask_);
- ++this->size_;
+ this->size_++;
if (handle > this->max_handle_)
this->max_handle_ = handle;
@@ -134,7 +132,7 @@ ACE_Handle_Set::clr_bit (ACE_HANDLE handle)
{
FD_CLR ((ACE_SOCKET) handle,
&this->mask_);
- --this->size_;
+ this->size_--;
#if !defined (ACE_WIN32)
if (handle == this->max_handle_)
@@ -186,5 +184,3 @@ ACE_INLINE
ACE_Handle_Set_Iterator::~ACE_Handle_Set_Iterator (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Hash_Cache_Map_Manager_T.cpp b/ace/Hash_Cache_Map_Manager_T.cpp
index 5baac0ae1a0..72b84d88715 100644
--- a/ace/Hash_Cache_Map_Manager_T.cpp
+++ b/ace/Hash_Cache_Map_Manager_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_HASH_CACHE_MAP_MANAGER_T_CPP
-#define ACE_HASH_CACHE_MAP_MANAGER_T_CPP
+#ifndef ACE_HASH_CACHE_MAP_MANAGER_T_C
+#define ACE_HASH_CACHE_MAP_MANAGER_T_C
#include "ace/Hash_Cache_Map_Manager_T.h"
@@ -13,7 +13,7 @@
#include "ace/Hash_Cache_Map_Manager_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Hash_Cache_Map_Manager_T, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Hash_Cache_Map_Manager)
@@ -224,9 +224,7 @@ ACE_Hash_Cache_Map_Manager<ACE_T2>::unbind (CACHE_ENTRY *entry)
return unbind_result;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#undef ACE_T1
#undef ACE_T2
-#endif /* ACE_HASH_CACHE_MAP_MANAGER_T_CPP */
+#endif /* ACE_HASH_CACHE_MAP_MANAGER_T_C */
diff --git a/ace/Hash_Cache_Map_Manager_T.h b/ace/Hash_Cache_Map_Manager_T.h
index 023e9d17568..26ccbf78432 100644
--- a/ace/Hash_Cache_Map_Manager_T.h
+++ b/ace/Hash_Cache_Map_Manager_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -13,7 +13,6 @@
#ifndef HASH_CACHE_MAP_MANAGER_T_H
#define HASH_CACHE_MAP_MANAGER_T_H
-
#include /**/ "ace/pre.h"
#include "ace/Hash_Map_Manager_T.h"
@@ -25,8 +24,6 @@
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
class ACE_Allocator;
@@ -194,8 +191,6 @@ protected:
typedef ACE_CACHE_MAP_MANAGER ACE_HCMM_BASE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Hash_Cache_Map_Manager_T.inl"
@@ -210,5 +205,4 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
-
#endif /* HASH_CACHE_MAP_MANAGER_T_H */
diff --git a/ace/Hash_Cache_Map_Manager_T.inl b/ace/Hash_Cache_Map_Manager_T.inl
index 0388abd6c6e..84d40bffbb6 100644
--- a/ace/Hash_Cache_Map_Manager_T.inl
+++ b/ace/Hash_Cache_Map_Manager_T.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#define ACE_T1 class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS, class CACHING_STRATEGY, class ATTRIBUTES
#define ACE_T2 KEY, VALUE, HASH_KEY, COMPARE_KEYS, CACHING_STRATEGY, ATTRIBUTES
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <ACE_T1> ACE_INLINE int
ACE_Hash_Cache_Map_Manager<ACE_T2>::bind (const KEY &key,
const VALUE &value)
@@ -67,7 +64,5 @@ ACE_Hash_Cache_Map_Manager<ACE_T2>::unbind (const KEY &key,
value);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#undef ACE_T1
#undef ACE_T2
diff --git a/ace/Hash_Map_Manager.cpp b/ace/Hash_Map_Manager.cpp
new file mode 100644
index 00000000000..4378551c7f8
--- /dev/null
+++ b/ace/Hash_Map_Manager.cpp
@@ -0,0 +1,19 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// Hash_Map_Manager.cpp
+//
+// = AUTHOR
+// Douglas C. Schmidt <schmidt@cs.wustl.edu>
+//
+// ============================================================================
+
+#include "ace/Hash_Map_Manager.h"
+
+ACE_RCSID(ace, Hash_Map_Manager, "$Id$")
+
diff --git a/ace/Hash_Map_Manager.h b/ace/Hash_Map_Manager.h
index ad9cc390295..4468cda5af0 100644
--- a/ace/Hash_Map_Manager.h
+++ b/ace/Hash_Map_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -6,8 +6,6 @@
*
* $Id$
*
- * Backward compatibility header.
- *
* @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
*/
//=============================================================================
diff --git a/ace/Hash_Map_Manager_T.cpp b/ace/Hash_Map_Manager_T.cpp
index 448bcb1293e..4d442a61234 100644
--- a/ace/Hash_Map_Manager_T.cpp
+++ b/ace/Hash_Map_Manager_T.cpp
@@ -38,7 +38,7 @@
#include "ace/Malloc_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Hash_Map_Manager_T, "$Id$")
template <class EXT_ID, class INT_ID>
ACE_Hash_Map_Entry<EXT_ID, INT_ID>::ACE_Hash_Map_Entry (ACE_Hash_Map_Entry<EXT_ID, INT_ID> *next,
@@ -518,6 +518,4 @@ ACE_Hash_Map_Const_Iterator_Base_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_
return this->index_ >= 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HASH_MAP_MANAGER_T_CPP */
diff --git a/ace/Hash_Map_Manager_T.h b/ace/Hash_Map_Manager_T.h
index 34533e1d311..eefd5862f89 100644
--- a/ace/Hash_Map_Manager_T.h
+++ b/ace/Hash_Map_Manager_T.h
@@ -24,8 +24,6 @@
#include "ace/Functor_T.h"
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Hash_Map_Entry
*
@@ -310,8 +308,8 @@ public:
* possible to acquire the lock explicitly, which can be useful in
* some cases if you instantiate the <ACE_Atomic_Op> with an
* <ACE_Recursive_Mutex> or <ACE_Process_Mutex>, or if you need to
- * guard the state of an iterator.
- * @note The right name would be <lock>, but HP/C++ will choke on that!
+ * guard the state of an iterator. NOTE: the right name would be
+ * <lock>, but HP/C++ will choke on that!
*/
ACE_LOCK &mutex (void);
@@ -417,8 +415,8 @@ protected:
int unbind_i (ACE_Hash_Map_Entry<EXT_ID, INT_ID> *entry);
/**
- * Resize the map. Must be called with locks held.
- * @note This method should never be called more than once or else all the
+ * Resize the map. Must be called with locks held. Note, that this
+ * method should never be called more than once or else all the
* hashing will get screwed up as the size will change.
*/
int create_buckets (size_t size);
@@ -466,19 +464,12 @@ private:
/// Total size of the hash table.
size_t total_size_;
- /// Current number of entries in the table
- /// @note That this can be larger than <total_size_> due to the
- /// bucket chaining).
+ /// Current number of entries in the table (note that this can be
+ /// larger than <total_size_> due to the bucket chaining).
size_t cur_size_;
// = Disallow these operations.
- // Hack alert... Sun C++ 5.4 can't hack explicit templates with this
- // in place. Please remove this when taking out explicit templates.
-#if !(defined (__SUNPRO_CC) && (__SUNPRO_CC <= 0x540) && \
- defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION))
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK> &))
-#endif /* __SUNPRO_CC <= 0x540 && !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
ACE_UNIMPLEMENTED_FUNC (ACE_Hash_Map_Manager_Ex (const ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK> &))
};
@@ -619,7 +610,7 @@ protected:
* <ACE_Hash_Map_Manager_Ex> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Hash_Map_Manager_Ex>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Hash_Map_Manager_Ex>'s
* internal lock, which is accessible via its <mutex> method.
*/
template <class EXT_ID, class INT_ID, class HASH_KEY, class COMPARE_KEYS, class ACE_LOCK>
@@ -665,7 +656,7 @@ public:
* <ACE_Hash_Map_Manager_Ex> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Hash_Map_Manager_Ex>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Hash_Map_Manager_Ex>'s
* internal lock, which is accessible via its <mutex> method.
*/
template <class EXT_ID, class INT_ID, class HASH_KEY, class COMPARE_KEYS, class ACE_LOCK>
@@ -713,7 +704,7 @@ public:
* <ACE_Hash_Map_Manager_Ex> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Hash_Map_Manager_Ex>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Hash_Map_Manager_Ex>'s
* internal lock, which is accessible via its <mutex> method.
*
* Note that a creation method for this new iterator cannot be added
@@ -784,7 +775,7 @@ protected:
* <ACE_Hash_Map_Manager_Ex> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Hash_Map_Manager_Ex>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Hash_Map_Manager_Ex>'s
* internal lock, which is accessible via its <mutex> method.
*/
template <class EXT_ID, class INT_ID, class HASH_KEY, class COMPARE_KEYS, class ACE_LOCK>
@@ -943,8 +934,6 @@ public:
operator= (const ACE_Hash_Map_Reverse_Iterator_Ex<EXT_ID, INT_ID, ACE_Hash<EXT_ID>, ACE_Equal_To<EXT_ID>, ACE_LOCK> &base);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
// Include ace/Hash_Map_Manager_T.i on all platforms excluding SunCC.
// This nonsense is necessary since SunCC (version 4.2) cannot inline
diff --git a/ace/Hash_Map_Manager_T.inl b/ace/Hash_Map_Manager_T.inl
index 6dd3626dea3..05383a07e69 100644
--- a/ace/Hash_Map_Manager_T.inl
+++ b/ace/Hash_Map_Manager_T.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Guard_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class EXT_ID, class INT_ID, class HASH_KEY, class COMPARE_KEYS, class ACE_LOCK> ACE_INLINE
ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK>::ACE_Hash_Map_Manager_Ex (size_t size,
ACE_Allocator *alloc)
@@ -983,5 +980,3 @@ ACE_Hash_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK>::operator= (const ACE_Ha
return *this;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Hash_Map_With_Allocator_T.cpp b/ace/Hash_Map_With_Allocator_T.cpp
index 9927147e865..20587b9d7ba 100644
--- a/ace/Hash_Map_With_Allocator_T.cpp
+++ b/ace/Hash_Map_With_Allocator_T.cpp
@@ -1,3 +1,4 @@
+// Hash_Map_With_Allocator_T.cpp
// $Id$
#ifndef ACE_HASH_MAP_WITH_ALLOCATOR_T_CPP
@@ -13,8 +14,6 @@
#include "ace/Hash_Map_With_Allocator_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class EXT_ID, class INT_ID>
ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::ACE_Hash_Map_With_Allocator (ACE_Allocator *alloc)
: ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, ACE_Hash<EXT_ID>, ACE_Equal_To<EXT_ID>, ACE_Null_Mutex> (alloc)
@@ -30,6 +29,4 @@ ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::ACE_Hash_Map_With_Allocator (size_t
ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::ACE_Hash_Map_With_Allocator");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HASH_MAP_WITH_ALLOCATOR_T_CPP */
diff --git a/ace/Hash_Map_With_Allocator_T.h b/ace/Hash_Map_With_Allocator_T.h
index 088956b48a1..6ae11547c0c 100644
--- a/ace/Hash_Map_With_Allocator_T.h
+++ b/ace/Hash_Map_With_Allocator_T.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Hash_Map_With_Allocator_T.h
@@ -22,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Hash_Map_With_Allocator
*
@@ -56,9 +53,9 @@ public:
ACE_Allocator *alloc);
// = The following methods are Proxies to the corresponding methods
- // in ACE_Hash_Map_Manager. Each method sets the allocator to
+ // in <ACE_Hash_Map_Manager>. Each method sets the allocator to
// the one specified by the invoking entity, and then calls the
- // corresponding method in ACE_Hash_Map_Manager to do the
+ // corresponding method in <ACE_Hash_Map_Manager> to do the
// actual work.
int bind (const EXT_ID &,
@@ -82,15 +79,13 @@ public:
INT_ID &,
ACE_Allocator *alloc);
- /// Returns 0 if the @a ext_id is in the mapping, otherwise -1.
- int find (const EXT_ID &ext_id,
+ /// Returns 0 if the <ext_id> is in the mapping, otherwise -1.
+ int find (const EXT_ID &,
ACE_Allocator *alloc);
int close (ACE_Allocator *alloc);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Hash_Map_With_Allocator_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Hash_Map_With_Allocator_T.inl b/ace/Hash_Map_With_Allocator_T.inl
index 67f2f8247f8..5b8c42dde3d 100644
--- a/ace/Hash_Map_With_Allocator_T.inl
+++ b/ace/Hash_Map_With_Allocator_T.inl
@@ -1,8 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Hash_Map_With_Allocator_T.i
+
template <class EXT_ID, class INT_ID> ACE_INLINE int
ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::close (ACE_Allocator *alloc)
@@ -71,5 +71,3 @@ ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::find (const EXT_ID &ext_id,
this->allocator_ = alloc;
return this->find_i (ext_id);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Hashable.cpp b/ace/Hashable.cpp
index cab51f7aa26..fca05cf96c5 100644
--- a/ace/Hashable.cpp
+++ b/ace/Hashable.cpp
@@ -12,8 +12,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Hashable::~ACE_Hashable (void)
{
}
@@ -28,9 +26,7 @@ ACE_Hashable::hash (void) const
// relative to the simple comparison.
if (this->hash_value_ == 0)
- this->hash_value_ = this->hash_i ();
+ (const_cast <ACE_Hashable *> (this))->hash_value_ = this->hash_i ();
return this->hash_value_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Hashable.h b/ace/Hashable.h
index 1a4a7011c28..3544feb5290 100644
--- a/ace/Hashable.h
+++ b/ace/Hashable.h
@@ -21,7 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Hashable
@@ -50,11 +49,10 @@ protected:
protected:
/// Pre-computed hash-value.
- mutable unsigned long hash_value_;
+ unsigned long hash_value_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "ace/Hashable.inl"
diff --git a/ace/Hashable.inl b/ace/Hashable.inl
index 7ec54ea1337..55f28b31da4 100644
--- a/ace/Hashable.inl
+++ b/ace/Hashable.inl
@@ -3,12 +3,8 @@
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Hashable::ACE_Hashable (void)
: hash_value_ (0)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/High_Res_Timer.cpp b/ace/High_Res_Timer.cpp
index 7bfd15db279..e0f7813329a 100644
--- a/ace/High_Res_Timer.cpp
+++ b/ace/High_Res_Timer.cpp
@@ -23,12 +23,8 @@
ACE_RCSID(ace, High_Res_Timer, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_High_Res_Timer)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// For Intel platforms, a scale factor is required for
// ACE_OS::gethrtime. We'll still set this to one to prevent division
// by zero errors.
@@ -40,34 +36,23 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/Recursive_Thread_Mutex.h"
# include "ace/Object_Manager.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Initialize the global_scale_factor_ to 1. The first
// ACE_High_Res_Timer instance construction will override this
// value.
/* static */
ACE_UINT32 ACE_High_Res_Timer::global_scale_factor_ = 1u;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#else /* ! (ACE_WIN32 || ACE_HAS_POWERPC_TIMER || \
ACE_HAS_PENTIUM || ACE_HAS_ALPHA_TIMER) ||
ACE_HAS_HI_RES_TIMER */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// A scale_factor of 1000 converts nanosecond ticks to microseconds.
// That is, on these platforms, 1 tick == 1 nanosecond.
/* static */
ACE_UINT32 ACE_High_Res_Timer::global_scale_factor_ = 1000u;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ! (ACE_WIN32 || ACE_HAS_POWERPC_TIMER || \
ACE_HAS_PENTIUM || ACE_HAS_ALPHA_TIMER) ||
ACE_HAS_HI_RES_TIMER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// This is used to tell if the global_scale_factor_ has been
// set, and if high resolution timers are supported.
/* static */
@@ -386,9 +371,15 @@ ACE_High_Res_Timer::elapsed_time (struct timespec &elapsed_time) const
// Get just the microseconds (dropping any left over nanoseconds).
ACE_UINT32 useconds = (ACE_UINT32) (elapsed / global_scale_factor ());
+#if ! defined(ACE_HAS_BROKEN_TIMESPEC_MEMBERS)
elapsed_time.tv_sec = (time_t) (useconds / ACE_ONE_SECOND_IN_USECS);
// Transforms one second in microseconds into nanoseconds.
elapsed_time.tv_nsec = (time_t) ((useconds % ACE_ONE_SECOND_IN_USECS) * 1000u + nseconds);
+#else
+ elapsed_time.ts_sec = (time_t) (useconds / ACE_ONE_SECOND_IN_USECS);
+ // Transforms one second in microseconds into nanoseconds.
+ elapsed_time.ts_nsec = (time_t) ((useconds % ACE_ONE_SECOND_IN_USECS) * 1000u + nseconds);
+#endif /* ACE_HAS_BROKEN_TIMESPEC_MEMBERS */
}
#endif /* ACE_HAS_POSIX_TIME */
@@ -521,12 +512,12 @@ ACE_High_Res_Timer::print_total (const ACE_TCHAR *str,
#endif /* !ACE_HAS_WINCE */
int
-ACE_High_Res_Timer::get_env_global_scale_factor (const ACE_TCHAR *env)
+ACE_High_Res_Timer::get_env_global_scale_factor (const char *env)
{
#if !defined (ACE_HAS_WINCE)
if (env != 0)
{
- const char *env_value = ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (env));
+ const char *env_value = ACE_OS::getenv (env);
if (env_value != 0)
{
int value = ACE_OS::atoi (env_value);
@@ -542,5 +533,3 @@ ACE_High_Res_Timer::get_env_global_scale_factor (const ACE_TCHAR *env)
#endif /* !ACE_HAS_WINCE */
return -1;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/High_Res_Timer.h b/ace/High_Res_Timer.h
index 4e1bd89cf43..705165547f7 100644
--- a/ace/High_Res_Timer.h
+++ b/ace/High_Res_Timer.h
@@ -24,8 +24,6 @@
#include "ace/OS_NS_time.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_High_Res_Timer
*
@@ -70,9 +68,9 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* different implementation depending on the used windows HAL
* (Hardware Abstraction Layer). On some it uses the PC "timer chip"
* while it uses RDTSC on others.
- * @note The elapsed time calculations in the print methods use
+ * NOTE: the elapsed time calculations in the print methods use
* ACE_hrtime_t values. Those methods do _not_ check for overflow!
- * @note Gabe <begeddov@proaxis.com> raises this issue regarding
+ * NOTE: Gabe <begeddov@proaxis.com> raises this issue regarding
* <ACE_OS::gethrtime>: on multi-processors, the processor that
* you query for your <timer.stop> value might not be the one
* you queried for <timer.start>. Its not clear how much
@@ -133,13 +131,12 @@ public:
/**
* Sets the global_scale_factor to the value in the <env>
- * environment variable. Returns 0 on success, -1 on failure.
- * @note If @a env points to string "0" (value zero), this call will fail.
+ * environment variable. Returns 0 on success, -1 on failure. Note
+ * if @a env points to string "0" (value zero), this call will fail.
* This is basically a no-op on CE because there is no concept of
* environment variable on CE.
*/
- static int get_env_global_scale_factor (const ACE_TCHAR *env
- = ACE_LIB_TEXT ("ACE_SCALE_FACTOR"));
+ static int get_env_global_scale_factor (const char *env = "ACE_SCALE_FACTOR");
/**
* Set (and return, for info) the global scale factor by sleeping
@@ -215,8 +212,8 @@ public:
// @@ WINCE These two functions are currently not supported on Windows CE.
// However, we should probably use the handle and ACE_Log_Msg to
// print out the result.
- /// Print total time.
- /// @note only use <print_total> if incremental timings had been used!
+ /// Print total time. NOTE: only use <print_total> if incremental
+ /// timings had been used!
void print_total (const ACE_TCHAR *message,
const int iterations = 1,
ACE_HANDLE handle = ACE_STDOUT) const;
@@ -312,8 +309,6 @@ private:
static int global_scale_factor_status_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/High_Res_Timer.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/High_Res_Timer.inl b/ace/High_Res_Timer.inl
index 1b37f522439..49fff1aabe4 100644
--- a/ace/High_Res_Timer.inl
+++ b/ace/High_Res_Timer.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*- */
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Global_Macros.h"
@@ -8,11 +7,9 @@
# include "ace/OS_NS_sys_time.h"
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Be very careful before changing the calculations inside
+// Be very carefull before changing the calculations inside
// ACE_High_Res_Timer. The precision matters and we are using integer
-// calculations not floating point. Also look closely at the emulated 64
+// calculations not floating point. Also look good at the emulated 64
// bit int class (inside Basic_Types{h,i,cpp} before changing
// anything. It's operator/ only returns 32 bits not 64 bits, among
// other things.
@@ -173,5 +170,3 @@ ACE_High_Res_Timer::global_scale_factor (ACE_UINT32 gsf)
{
global_scale_factor_ = gsf;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/ICMP_Socket.cpp b/ace/ICMP_Socket.cpp
index 2904524d25c..52ae288631b 100644
--- a/ace/ICMP_Socket.cpp
+++ b/ace/ICMP_Socket.cpp
@@ -9,14 +9,15 @@
#include "ace/OS_NS_netdb.h"
#include "ace/OS_NS_sys_socket.h"
+#if !defined (__ACE_INLINE__)
+# include "ace/ICMP_Socket.inl"
+#endif /* !__ACE_INLINE__ */
+
ACE_RCSID (ace,
ICMP_Socket,
"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_ICMP_Socket)
@@ -181,6 +182,4 @@ ACE_ICMP_Socket::calculate_checksum (unsigned short * paddress,
return (answer);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ICMP_SUPPORT == 1 */
diff --git a/ace/ICMP_Socket.h b/ace/ICMP_Socket.h
index 77e2a018984..795817f65db 100644
--- a/ace/ICMP_Socket.h
+++ b/ace/ICMP_Socket.h
@@ -28,10 +28,8 @@
#include "ace/Time_Value.h"
#include "ace/os_include/netinet/os_in.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
- * @class ACE_ICMP_Socket
+ * @class ICMP_Socket
*
* @brief An abstract class that forms the basis for usage of the ICMP
* protocol (that is, support for things such as ping).
@@ -41,6 +39,8 @@ class ACE_Export ACE_ICMP_Socket : public ACE_SOCK
public:
// = Initialization methods.
+ ~ACE_ICMP_Socket (void);
+
/**
* @name Data transfer routines.
*
@@ -101,7 +101,9 @@ protected:
int len);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+# include "ace/ICMP_Socket.inl"
+#endif /* __ACE_INLINE__ */
#endif /* ACE_HAS_ICMP_SUPPORT == 1 */
diff --git a/ace/ICMP_Socket.inl b/ace/ICMP_Socket.inl
new file mode 100644
index 00000000000..bda45ff8c61
--- /dev/null
+++ b/ace/ICMP_Socket.inl
@@ -0,0 +1,9 @@
+// -*- C++ -*-
+//
+// $Id$
+
+ACE_INLINE
+ACE_ICMP_Socket::~ACE_ICMP_Socket (void)
+{
+ ACE_TRACE ("ACE_ICMP_Socket::~ACE_ICMP_Socket");
+}
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index 78e0557c9a5..420172707af 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -22,8 +22,6 @@ ACE_RCSID (ace,
INET_Addr,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_INET_Addr)
// Transform the current address into string format.
@@ -37,10 +35,9 @@ ACE_INET_Addr::addr_to_string (ACE_TCHAR s[],
// XXX Can we (should we) include the scope id for IPv6 addresses?
- size_t const total_len =
- (ipaddr_format == 0
- ? ACE_OS::strlen (this->get_host_name ())
- : ACE_OS::strlen (this->get_host_addr ()))
+ size_t total_len = (ipaddr_format == 0 ?
+ ACE_OS::strlen (this->get_host_name ()) :
+ ACE_OS::strlen (this->get_host_addr ()))
+ ACE_OS::strlen ("65536") // Assume the max port number.
+ sizeof (':')
+ sizeof ('\0'); // For trailing '\0'.
@@ -51,7 +48,7 @@ ACE_INET_Addr::addr_to_string (ACE_TCHAR s[],
{
ACE_OS::sprintf (s,
ACE_LIB_TEXT ("%s:%d"),
- ACE_TEXT_CHAR_TO_TCHAR (ipaddr_format == 0
+ ACE_TEXT_TO_TCHAR_IN (ipaddr_format == 0
? this->get_host_name ()
: this->get_host_addr ()),
this->get_port_number ());
@@ -114,7 +111,7 @@ ACE_INET_Addr::hash (void) const
}
ACE_INET_Addr::ACE_INET_Addr (void)
- : ACE_Addr (this->determine_type (), sizeof (inet_addr_))
+ : ACE_Addr (this->determine_type(), sizeof (inet_addr_))
{
// ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr");
this->reset ();
@@ -184,7 +181,7 @@ ACE_INET_Addr::string_to_addr (const char s[])
char *endp = 0;
u_short port =
static_cast<u_short> (ACE_OS::strtol (ip_addr, &endp, 10));
- if (*endp == '\0') // strtol scanned the entire string - all digits
+ if (port > 0 && *endp == '\0')
result = this->set (port, ACE_UINT32 (INADDR_ANY));
else // port name
result = this->set (ip_addr, ACE_UINT32 (INADDR_ANY));
@@ -195,7 +192,7 @@ ACE_INET_Addr::string_to_addr (const char s[])
char *endp = 0;
u_short port = static_cast<u_short> (ACE_OS::strtol (port_p, &endp, 10));
- if (*endp == '\0') // strtol scanned the entire string - all digits
+ if (port > 0 && *endp == '\0')
result = this->set (port, ip_addr);
else
result = this->set (port_p, ip_addr);
@@ -220,7 +217,6 @@ ACE_INET_Addr::ACE_INET_Addr (const char address[])
this->set (address);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INET_Addr::ACE_INET_Addr (const wchar_t address[])
: ACE_Addr (this->determine_type(), sizeof (inet_addr_))
{
@@ -229,8 +225,6 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t address[])
this->set (address);
}
-#endif /* ACE_HAS_WCHAR */
-
// Copy constructor.
ACE_INET_Addr::ACE_INET_Addr (const ACE_INET_Addr &sa)
@@ -313,7 +307,7 @@ ACE_INET_Addr::set (u_short port_number,
// IPv6 not supported... insure the family is set to IPv4
address_family = AF_INET;
this->set_type (address_family);
- this->inet_addr_.in4_.sin_family = static_cast<short> (address_family);
+ this->inet_addr_.in4_.sin_family = address_family;
struct in_addr addrv4;
if (ACE_OS::inet_aton (host_name,
&addrv4) == 1)
@@ -322,7 +316,7 @@ ACE_INET_Addr::set (u_short port_number,
encode);
else
{
-# if (defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)) || defined (CHORUS)
+# if defined (VXWORKS) || defined (CHORUS)
hostent *hp = ACE_OS::gethostbyname (host_name);
# else
hostent hentry;
@@ -331,7 +325,7 @@ ACE_INET_Addr::set (u_short port_number,
hostent *hp = ACE_OS::gethostbyname_r (host_name, &hentry,
buf, &h_error);
-# endif /* ACE_VXWORKS */
+# endif /* VXWORKS */
if (hp == 0)
{
@@ -411,7 +405,7 @@ ACE_INET_Addr::set (const char port_name[],
int address_family = PF_UNSPEC;
# if defined (ACE_HAS_IPV6)
- if (ACE_OS::strcmp (ACE_TEXT_CHAR_TO_TCHAR(protocol), ACE_LIB_TEXT ("tcp6")) == 0)
+ if (ACE_OS::strcmp (ACE_TEXT_TO_TCHAR_IN(protocol), ACE_LIB_TEXT ("tcp6")) == 0)
address_family = AF_INET6;
# endif /* ACE_HAS_IPV6 */
@@ -463,12 +457,11 @@ ACE_INET_Addr::ACE_INET_Addr (u_short port_number,
#else /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr: %p\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((host_name == 0) ?
+ ACE_TEXT_TO_TCHAR_IN ((host_name == 0) ?
"<unknown>" : host_name)));
#endif /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INET_Addr::ACE_INET_Addr (u_short port_number,
const wchar_t host_name[],
int address_family)
@@ -489,12 +482,11 @@ ACE_INET_Addr::ACE_INET_Addr (u_short port_number,
#else /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr: %p\n"),
- ACE_TEXT_WCHAR_TO_TCHAR ((host_name == 0) ?
+ ACE_TEXT_TO_TCHAR_IN ((host_name == 0) ?
ACE_TEXT_WIDE ("<unknown>") :
host_name)));
#endif /* ! defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
}
-#endif /* ACE_HAS_WCHAR */
// Creates a ACE_INET_Addr from a sockaddr_in structure.
@@ -617,7 +609,6 @@ ACE_INET_Addr::ACE_INET_Addr (const char port_name[],
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr")));
}
-#if defined (ACE_HAS_WCHAR)
ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[],
const wchar_t host_name[],
const wchar_t protocol[])
@@ -631,7 +622,6 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[],
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr")));
}
-#endif /* ACE_HAS_WCHAR */
// Creates a ACE_INET_Addr from a PORT_NAME and an Internet address.
@@ -649,7 +639,6 @@ ACE_INET_Addr::ACE_INET_Addr (const char port_name[],
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr")));
}
-#if defined (ACE_HAS_WCHAR)
ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[],
ACE_UINT32 inet_address,
const wchar_t protocol[])
@@ -663,7 +652,6 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[],
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("ACE_INET_Addr::ACE_INET_Addr")));
}
-#endif /* ACE_HAS_WCHAR */
ACE_INET_Addr::~ACE_INET_Addr (void)
{
@@ -702,7 +690,6 @@ ACE_INET_Addr::get_host_name (char hostname[],
return result;
}
-#if defined (ACE_HAS_WCHAR)
int
ACE_INET_Addr::get_host_name (wchar_t hostname[],
size_t len) const
@@ -720,12 +707,10 @@ ACE_INET_Addr::get_host_name (wchar_t hostname[],
// And copy it over, if successful
if (result == 0)
- ACE_OS::strcpy (hostname,
- ACE_Ascii_To_Wide (char_hostname).wchar_rep ());
+ ACE_OS::string_copy( hostname, char_hostname, MAXHOSTNAMELEN + 1 );
return result;
}
-#endif /* ACE_HAS_WCHAR */
// Return the character representation of the hostname.
@@ -782,7 +767,7 @@ ACE_INET_Addr::get_host_name_i (char hostname[], size_t len) const
}
else
{
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
+#if defined (VXWORKS)
ACE_UNUSED_ARG (len);
int error =
::hostGetByAddr ((int) this->inet_addr_.in4_.sin_addr.s_addr,
@@ -831,7 +816,7 @@ ACE_INET_Addr::get_host_name_i (char hostname[], size_t len) const
ACE_OS::strcpy (hostname, hp->h_name);
return 0;
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
}
}
@@ -859,9 +844,6 @@ int ACE_INET_Addr::set_address (const char *ip_addr,
if (this->get_type () == AF_INET && map == 0) {
this->base_set (AF_INET, sizeof (this->inet_addr_.in4_));
-#ifdef ACE_HAS_SOCKADDR_IN_SIN_LEN
- this->inet_addr_.in4_.sin_len = sizeof (this->inet_addr_.in4_);
-#endif
this->inet_addr_.in4_.sin_family = AF_INET;
this->set_size (sizeof (this->inet_addr_.in4_));
ACE_OS::memcpy (&this->inet_addr_.in4_.sin_addr,
@@ -873,9 +855,6 @@ int ACE_INET_Addr::set_address (const char *ip_addr,
{
// this->set_type (AF_INET);
this->base_set (AF_INET, sizeof (this->inet_addr_.in4_));
-#ifdef ACE_HAS_SOCKADDR_IN_SIN_LEN
- this->inet_addr_.in4_.sin_len = sizeof (this->inet_addr_.in4_);
-#endif
this->inet_addr_.in4_.sin_family = AF_INET;
this->set_size (sizeof (this->inet_addr_.in4_));
ACE_OS::memcpy (&this->inet_addr_.in4_.sin_addr,
@@ -886,9 +865,6 @@ int ACE_INET_Addr::set_address (const char *ip_addr,
else
{
this->base_set (AF_INET6, sizeof (this->inet_addr_.in6_));
-#ifdef ACE_HAS_SOCKADDR_IN6_SIN6_LEN
- this->inet_addr_.in6_.sin6_len = sizeof (this->inet_addr_.in6_);
-#endif
this->inet_addr_.in6_.sin6_family = AF_INET6;
this->set_size (sizeof (this->inet_addr_.in6_));
if (ip4 == INADDR_ANY)
@@ -1030,7 +1006,7 @@ ACE_INET_Addr::get_host_addr (char *dst, int size) const
}
#endif /* ACE_HAS_IPV6 */
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
ACE_UNUSED_ARG (dst);
ACE_UNUSED_ARG (size);
@@ -1043,7 +1019,7 @@ ACE_INET_Addr::get_host_addr (char *dst, int size) const
inet_ntoa_b(this->inet_addr_.in4_.sin_addr, ncthis->buf_);
ACE_OS::strsncpy (dst, &buf_[0], size);
return &buf_[0];
-#else /* ACE_VXWORKS */
+#else /* VXWORKS */
char *ch = ACE_OS::inet_ntoa (this->inet_addr_.in4_.sin_addr);
ACE_OS::strsncpy (dst, ch, size);
return ch;
@@ -1059,7 +1035,7 @@ ACE_INET_Addr::get_host_addr (void) const
static char buf[INET6_ADDRSTRLEN];
return this->get_host_addr (buf, INET6_ADDRSTRLEN);
#else /* ACE_HAS_IPV6 */
-# if defined (ACE_VXWORKS)
+# if defined (VXWORKS)
// It would be nice to be able to encapsulate this into
// ACE_OS::inet_ntoa(), but that would lead to either inefficiencies
// on vxworks or lack of thread safety.
@@ -1068,9 +1044,9 @@ ACE_INET_Addr::get_host_addr (void) const
ACE_INET_Addr *ncthis = const_cast<ACE_INET_Addr *> (this);
inet_ntoa_b (this->inet_addr_.in4_.sin_addr, ncthis->buf_);
return &buf_[0];
-# else /* ACE_VXWORKS */
+# else /* VXWORKS */
return ACE_OS::inet_ntoa (this->inet_addr_.in4_.sin_addr);
-# endif /* !ACE_VXWORKS */
+# endif /* !VXWORKS */
#endif /* !ACE_HAS_IPV6 */
}
@@ -1101,5 +1077,3 @@ ACE_INET_Addr::get_ip_address (void) const
#endif /* ACE_HAS_IPV6 */
return ntohl (ACE_UINT32 (this->inet_addr_.in4_.sin_addr.s_addr));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/INET_Addr.h b/ace/INET_Addr.h
index 5dbc2e2274c..6cdc1ae62cb 100644
--- a/ace/INET_Addr.h
+++ b/ace/INET_Addr.h
@@ -27,8 +27,6 @@
# include /**/ "inetLib.h"
#endif /* VXWORKS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_INET_Addr
*
@@ -46,10 +44,10 @@ public:
/// Copy constructor.
ACE_INET_Addr (const ACE_INET_Addr &);
- /// Creates an ACE_INET_Addr from a sockaddr_in structure.
+ /// Creates an <ACE_INET_Addr> from a sockaddr_in structure.
ACE_INET_Addr (const sockaddr_in *, int len);
- /// Creates an ACE_INET_Addr from a <port_number> and the remote
+ /// Creates an <ACE_INET_Addr> from a <port_number> and the remote
/// <host_name>. The port number is assumed to be in host byte order.
/// To set a port already in network byte order, please @see set().
/// Use address_family to select IPv6 (PF_INET6) vs. IPv4 (PF_INET).
@@ -58,7 +56,7 @@ public:
int address_family = AF_UNSPEC);
/**
- * Initializes an ACE_INET_Addr from the <address>, which can be
+ * Initializes an <ACE_INET_Addr> from the <address>, which can be
* "ip-number:port-number" (e.g., "tango.cs.wustl.edu:1234" or
* "128.252.166.57:1234"). If there is no ':' in the <address> it
* is assumed to be a port number, with the IP address being
@@ -67,22 +65,22 @@ public:
explicit ACE_INET_Addr (const char address[]);
/**
- * Creates an ACE_INET_Addr from a <port_number> and an Internet
+ * Creates an <ACE_INET_Addr> from a <port_number> and an Internet
* <ip_addr>. This method assumes that <port_number> and <ip_addr>
* are in host byte order. If you have addressing information in
* network byte order, @see set().
*/
- explicit ACE_INET_Addr (u_short port_number,
- ACE_UINT32 ip_addr = INADDR_ANY);
+ ACE_INET_Addr (u_short port_number,
+ ACE_UINT32 ip_addr = INADDR_ANY);
- /// Uses <getservbyname> to create an ACE_INET_Addr from a
+ /// Uses <getservbyname> to create an <ACE_INET_Addr> from a
/// <port_name>, the remote <host_name>, and the <protocol>.
ACE_INET_Addr (const char port_name[],
const char host_name[],
const char protocol[] = "tcp");
/**
- * Uses <getservbyname> to create an ACE_INET_Addr from a
+ * Uses <getservbyname> to create an <ACE_INET_Addr> from a
* <port_name>, an Internet <ip_addr>, and the <protocol>. This
* method assumes that <ip_addr> is in host byte order.
*/
@@ -90,7 +88,6 @@ public:
ACE_UINT32 ip_addr,
const char protocol[] = "tcp");
-#if defined (ACE_HAS_WCHAR)
ACE_INET_Addr (u_short port_number,
const wchar_t host_name[],
int address_family = AF_UNSPEC);
@@ -104,7 +101,6 @@ public:
ACE_INET_Addr (const wchar_t port_name[],
ACE_UINT32 ip_addr,
const wchar_t protocol[] = ACE_TEXT_WIDE ("tcp"));
-#endif /* ACE_HAS_WCHAR */
/// Default dtor.
~ACE_INET_Addr (void);
@@ -113,11 +109,11 @@ public:
// These methods are useful after the object has been constructed.
- /// Initializes from another ACE_INET_Addr.
+ /// Initializes from another <ACE_INET_Addr>.
int set (const ACE_INET_Addr &);
/**
- * Initializes an ACE_INET_Addr from a <port_number> and the
+ * Initializes an <ACE_INET_Addr> from a <port_number> and the
* remote <host_name>. If <encode> is non-zero then <port_number> is
* converted into network byte order, otherwise it is assumed to be
* in network byte order already and are passed straight through.
@@ -131,7 +127,7 @@ public:
int address_family = AF_UNSPEC);
/**
- * Initializes an ACE_INET_Addr from a @a port_number and an Internet
+ * Initializes an <ACE_INET_Addr> from a @a port_number and an Internet
* @a ip_addr. If @a encode is non-zero then the port number and IP address
* are converted into network byte order, otherwise they are assumed to be
* in network byte order already and are passed straight through.
@@ -144,14 +140,14 @@ public:
int encode = 1,
int map = 0);
- /// Uses <getservbyname> to initialize an ACE_INET_Addr from a
+ /// Uses <getservbyname> to initialize an <ACE_INET_Addr> from a
/// <port_name>, the remote <host_name>, and the <protocol>.
int set (const char port_name[],
const char host_name[],
const char protocol[] = "tcp");
/**
- * Uses <getservbyname> to initialize an ACE_INET_Addr from a
+ * Uses <getservbyname> to initialize an <ACE_INET_Addr> from a
* <port_name>, an <ip_addr>, and the <protocol>. This assumes that
* <ip_addr> is already in network byte order.
*/
@@ -160,7 +156,7 @@ public:
const char protocol[] = "tcp");
/**
- * Initializes an ACE_INET_Addr from the <addr>, which can be
+ * Initializes an <ACE_INET_Addr> from the <addr>, which can be
* "ip-number:port-number" (e.g., "tango.cs.wustl.edu:1234" or
* "128.252.166.57:1234"). If there is no ':' in the <address> it
* is assumed to be a port number, with the IP address being
@@ -168,11 +164,10 @@ public:
*/
int set (const char addr[]);
- /// Creates an ACE_INET_Addr from a sockaddr_in structure.
+ /// Creates an <ACE_INET_Addr> from a sockaddr_in structure.
int set (const sockaddr_in *,
int len);
-#if defined (ACE_HAS_WCHAR)
int set (u_short port_number,
const wchar_t host_name[],
int encode = 1,
@@ -187,7 +182,6 @@ public:
const wchar_t protocol[] = ACE_TEXT_WIDE ("tcp"));
int set (const wchar_t addr[]);
-#endif /* ACE_HAS_WCHAR */
/// Return a pointer to the underlying network address.
virtual void *get_addr (void) const;
@@ -200,7 +194,7 @@ public:
virtual void set_addr (void *, int len, int map);
/**
- * Transform the current ACE_INET_Addr address into string format.
+ * Transform the current <ACE_INET_Addr> address into string format.
* If <ipaddr_format> is non-0 this produces "ip-number:port-number"
* (e.g., "128.252.166.57:1234"), whereas if <ipaddr_format> is 0
* this produces "ip-name:port-number" (e.g.,
@@ -212,7 +206,7 @@ public:
int ipaddr_format = 1) const;
/**
- * Initializes an ACE_INET_Addr from the @a address, which can be
+ * Initializes an <ACE_INET_Addr> from the <address>, which can be
* "ip-addr:port-number" (e.g., "tango.cs.wustl.edu:1234"),
* "ip-addr:port-name" (e.g., "tango.cs.wustl.edu:telnet"),
* "ip-number:port-number" (e.g., "128.252.166.57:1234"), or
@@ -222,12 +216,6 @@ public:
*/
virtual int string_to_addr (const char address[]);
-#if defined (ACE_HAS_WCHAR)
- /*
- virtual int string_to_addr (const char address[]);
- */
-#endif /* ACE_HAS_WCHAR */
-
/**
* Sets the port number without affecting the host name. If
* <encode> is enabled then <port_number> is converted into network
@@ -273,10 +261,8 @@ public:
int get_host_name (char hostname[],
size_t hostnamelen) const;
-#if defined (ACE_HAS_WCHAR)
int get_host_name (wchar_t hostname[],
size_t hostnamelen) const;
-#endif /* ACE_HAS_WCHAR */
/**
* Return the character representation of the hostname (this version
@@ -358,13 +344,11 @@ private:
#endif /* ACE_HAS_IPV6 */
} inet_addr_;
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
char buf_[INET_ADDR_LEN];
#endif
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/INET_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/INET_Addr.inl b/ace/INET_Addr.inl
index 583f3a8747e..63c8f480c4b 100644
--- a/ace/INET_Addr.inl
+++ b/ace/INET_Addr.inl
@@ -7,27 +7,16 @@
#include "ace/Global_Macros.h"
#include "ace/OS_NS_arpa_inet.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE void
ACE_INET_Addr::reset (void)
{
ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_));
if (this->get_type() == AF_INET)
- {
-#ifdef ACE_HAS_SOCKADDR_IN_SIN_LEN
- this->inet_addr_.in4_.sin_len = sizeof (this->inet_addr_.in4_);
-#endif
- this->inet_addr_.in4_.sin_family = AF_INET;
- }
+ this->inet_addr_.in4_.sin_family = AF_INET;
#if defined (ACE_HAS_IPV6)
else if (this->get_type() == AF_INET6)
- {
-#ifdef ACE_HAS_SOCKADDR_IN6_SIN6_LEN
- this->inet_addr_.in6_.sin6_len = sizeof (this->inet_addr_.in6_);
-#endif
- this->inet_addr_.in6_.sin6_family = AF_INET6;
- }
+ this->inet_addr_.in6_.sin6_family = AF_INET6;
#endif /* ACE_HAS_IPV6 */
}
@@ -40,9 +29,8 @@ ACE_INET_Addr::determine_type (void) const
# else
return AF_INET6;
# endif /* ACE_USES_IPV4_IPV6_MIGRATION */
-#else
- return AF_INET;
#endif /* ACE_HAS_IPV6 */
+ return AF_INET;
}
ACE_INLINE void *
@@ -120,7 +108,6 @@ ACE_INET_Addr::operator < (const ACE_INET_Addr &rhs) const
&& this->get_port_number () < rhs.get_port_number ());
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_INET_Addr::set (u_short port_number,
const wchar_t host_name[],
@@ -128,7 +115,7 @@ ACE_INET_Addr::set (u_short port_number,
int address_family)
{
return this->set (port_number,
- ACE_Wide_To_Ascii (host_name).char_rep (),
+ ACE_TEXT_TO_CHAR_IN (host_name),
encode,
address_family);
}
@@ -138,9 +125,9 @@ ACE_INET_Addr::set (const wchar_t port_name[],
const wchar_t host_name[],
const wchar_t protocol[])
{
- return this->set (ACE_Wide_To_Ascii (port_name).char_rep (),
- ACE_Wide_To_Ascii (host_name).char_rep (),
- ACE_Wide_To_Ascii (protocol).char_rep ());
+ return this->set (ACE_TEXT_TO_CHAR_IN (port_name),
+ ACE_TEXT_TO_CHAR_IN (host_name),
+ ACE_TEXT_TO_CHAR_IN (protocol));
}
ACE_INLINE int
@@ -148,19 +135,17 @@ ACE_INET_Addr::set (const wchar_t port_name[],
ACE_UINT32 ip_addr,
const wchar_t protocol[])
{
- return this->set (ACE_Wide_To_Ascii (port_name).char_rep (),
+ return this->set (ACE_TEXT_TO_CHAR_IN (port_name),
ip_addr,
- ACE_Wide_To_Ascii (protocol).char_rep ());
+ ACE_TEXT_TO_CHAR_IN (protocol));
}
ACE_INLINE int
ACE_INET_Addr::set (const wchar_t addr[])
{
- return this->set (ACE_Wide_To_Ascii (addr).char_rep ());
+ return this->set (ACE_TEXT_TO_CHAR_IN (addr));
}
-#endif /* ACE_HAS_WCHAR */
-
// Return @c true if the IP address is INADDR_ANY or IN6ADDR_ANY.
ACE_INLINE bool
ACE_INET_Addr::is_any (void) const
@@ -217,4 +202,3 @@ ACE_INET_Addr::is_ipv4_compat_ipv6 (void) const
}
#endif /* ACE_HAS_IPV6 */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/IOStream.cpp b/ace/IOStream.cpp
index 23790425eeb..1ad5c0f3aca 100644
--- a/ace/IOStream.cpp
+++ b/ace/IOStream.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_IOSTREAM_CPP
-#define ACE_IOSTREAM_CPP
+#if !defined (ACE_IOSTREAM_C)
+#define ACE_IOSTREAM_C
#include "ace/IOStream.h"
@@ -86,8 +86,6 @@ ACE_RCSID(ace, IOStream, "$Id$")
// function will be invoked by the first >>. Since it returns
// a myiostream&, the second >> will be invoked as desired. */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_HANDLE
ACE_Streambuf::get_handle (void)
{
@@ -659,7 +657,5 @@ u_char ACE_Streambuf::timeout (void)
return rval;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_LACKS_ACE_IOSTREAM */
-#endif /* ACE_IOSTREAM_CPP */
+#endif /* ACE_IOSTREAM_C */
diff --git a/ace/IOStream.h b/ace/IOStream.h
index 49c0612da13..66aa738227a 100644
--- a/ace/IOStream.h
+++ b/ace/IOStream.h
@@ -40,26 +40,18 @@
# if defined (ACE_HAS_STRING_CLASS)
# if defined (ACE_WIN32) && defined (_MSC_VER)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef CString ACE_IOStream_String;
-ACE_END_VERSIONED_NAMESPACE_DECL
# else
# if !defined (ACE_HAS_STDCPP_STL_INCLUDES)
#include /**/ <String.h>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef String ACE_IOStream_String;
-ACE_END_VERSIONED_NAMESPACE_DECL
# else
# include /**/ <string>
# if defined(ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef std::string ACE_IOStream_String;
-ACE_END_VERSIONED_NAMESPACE_DECL
# else
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef string ACE_IOStream_String;
-ACE_END_VERSIONED_NAMESPACE_DECL
# endif /* ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB */
# endif /* ! ACE_HAS_STDCPP_STL_INCLUDES */
# endif /* ACE_WIN32 && defined (_MSC_VER) */
@@ -72,8 +64,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# endif /* __DECCXX_VER < 50700000 */
# endif /* __DECCXX_VER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Quoted_String : public ACE_IOStream_String
{
public:
@@ -98,15 +88,11 @@ public:
# endif /* ACE_WIN32 && defined (_MSC_VER) */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# endif /* ACE_HAS_STRING_CLASS */
# include "ace/Time_Value.h"
# include "ace/os_include/sys/os_types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Streambuf
*
@@ -216,8 +202,8 @@ public:
/// Query the streambuf for the size of its buffers.
u_int streambuf_size (void);
- /// Did we take an error because of an IO operation timeout?
- /// @note Invoking this resets the flag.
+ /// Did we take an error because of an IO operation timeout? Note:
+ /// Invoking this resets the flag.
u_char timeout (void);
protected:
@@ -356,8 +342,6 @@ protected:
# endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
///////////////////////////////////////////////////////////////////////////
// These typedefs are provided by G++ (on some systems?) without the
diff --git a/ace/IOStream_T.cpp b/ace/IOStream_T.cpp
index 082274256fe..237ce56b8bc 100644
--- a/ace/IOStream_T.cpp
+++ b/ace/IOStream_T.cpp
@@ -16,8 +16,6 @@
#include "ace/IOStream_T.inl"
#endif /* !__ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// We will be given a STREAM by the iostream object which creates us.
// See the ACE_IOStream template for how that works. Like other
// streambuf objects, we can be input-only, output-only or both.
@@ -240,8 +238,6 @@ operator<< (STREAM &stream,
return stream;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_STRING_CLASS */
#endif /* ACE_LACKS_ACE_IOSTREAM */
#endif /* ACE_IOSTREAM_T_CPP */
diff --git a/ace/IOStream_T.h b/ace/IOStream_T.h
index 4460ef4be9e..e6577e041d8 100644
--- a/ace/IOStream_T.h
+++ b/ace/IOStream_T.h
@@ -9,8 +9,8 @@
* @author James CE Johnson <jcej@lads.com>
* @author Jim Crossley <jim@lads.com>
*
- * This file should not be included directly by application
- * code. Instead, it should include "ace/IOStream.h". That's because
+ * This file should not be #included directly by application
+ * code. Instead, it should #include "ace/IOStream.h". That's because
* we only put some conditional compilations in that file.
*/
//=============================================================================
@@ -28,14 +28,13 @@
#if !defined (ACE_LACKS_ACE_IOSTREAM)
# include "ace/INET_Addr.h"
+# include "ace/Handle_Set.h"
# include "ace/Global_Macros.h"
# if defined (ACE_LACKS_IOSTREAM_FX)
# include "ace/os_include/os_ctype.h"
# endif /**/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_STRING_CLASS)
template <class STREAM> STREAM & operator>> (STREAM &stream, ACE_Quoted_String &str);
template <class STREAM> STREAM & operator<< (STREAM &stream, ACE_Quoted_String &str);
@@ -278,8 +277,6 @@ protected:
ACE_INET_Addr peer_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (__ACE_INLINE__)
# include "ace/IOStream_T.inl"
# endif /* __ACE_INLINE__ */
diff --git a/ace/IOStream_T.inl b/ace/IOStream_T.inl
index 73e00fa7bbf..9d2fd414ca1 100644
--- a/ace/IOStream_T.inl
+++ b/ace/IOStream_T.inl
@@ -1,13 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/Handle_Set.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_sys_select.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class STREAM> ACE_INLINE int
ACE_IOStream<STREAM>::eof (void) const
{
@@ -117,5 +113,3 @@ ACE_SOCK_Dgram_SC<STREAM>::get_remote_addr (ACE_INET_Addr &addr) const
addr = peer_;
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/IO_Cntl_Msg.cpp b/ace/IO_Cntl_Msg.cpp
index aab5bd3c124..3fac7c4abe6 100644
--- a/ace/IO_Cntl_Msg.cpp
+++ b/ace/IO_Cntl_Msg.cpp
@@ -1,3 +1,4 @@
+// IO_Cntl_Msg.cpp
// $Id$
#include "ace/IO_Cntl_Msg.h"
@@ -15,8 +16,6 @@ ACE_RCSID(ace, IO_Cntl_Msg, "$Id$")
#include "ace/Intrusive_List.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl
template <class SYNCH> class ACE_Module;
@@ -44,8 +43,5 @@ private:
ACE_Module *mod_lower_;
int count_;
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/ace/IO_Cntl_Msg.h b/ace/IO_Cntl_Msg.h
index c3101c7fac4..95277235643 100644
--- a/ace/IO_Cntl_Msg.h
+++ b/ace/IO_Cntl_Msg.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_IO_Cntl_Msg
*
@@ -101,8 +99,6 @@ private:
int rval_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/IO_Cntl_Msg.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/IO_Cntl_Msg.inl b/ace/IO_Cntl_Msg.inl
index 0fbf4190f35..215ea8caf8c 100644
--- a/ace/IO_Cntl_Msg.inl
+++ b/ace/IO_Cntl_Msg.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_IO_Cntl_Msg::ACE_IO_Cntl_Msg (ACE_IO_Cntl_Cmds c)
{
@@ -58,4 +55,3 @@ ACE_IO_Cntl_Msg::rval (int r)
this->rval_ = r;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/IO_SAP.cpp b/ace/IO_SAP.cpp
index d65bc34c091..b5c45f1b128 100644
--- a/ace/IO_SAP.cpp
+++ b/ace/IO_SAP.cpp
@@ -1,3 +1,4 @@
+// IO_SAP.cpp
// $Id$
#include "ace/IO_SAP.h"
@@ -14,8 +15,6 @@
ACE_RCSID(ace, IO_SAP, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_IO_SAP)
// This is the do-nothing constructor. It does not perform a
@@ -138,5 +137,3 @@ ACE_IO_SAP::disable (int value) const
}
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/IO_SAP.h b/ace/IO_SAP.h
index b4ed13e451c..50d530de4ae 100644
--- a/ace/IO_SAP.h
+++ b/ace/IO_SAP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,9 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_IO_SAP
*
@@ -86,8 +83,6 @@ private:
static pid_t pid_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/IO_SAP.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/IO_SAP.inl b/ace/IO_SAP.inl
index 9d7d244e4db..d120cd91b17 100644
--- a/ace/IO_SAP.inl
+++ b/ace/IO_SAP.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/OS_NS_stropts.h"
+// IO_SAP.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_stropts.h"
ACE_INLINE
ACE_IO_SAP::~ACE_IO_SAP (void)
@@ -39,4 +38,4 @@ ACE_IO_SAP::control (int cmd, void *arg) const
return ACE_OS::ioctl (this->handle_, cmd, arg);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/IPC_SAP.cpp b/ace/IPC_SAP.cpp
index 5e6f5d3199b..a67e8a2bd95 100644
--- a/ace/IPC_SAP.cpp
+++ b/ace/IPC_SAP.cpp
@@ -14,8 +14,6 @@
ACE_RCSID(ace, IPC_SAP, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_IPC_SAP)
void
@@ -59,7 +57,7 @@ ACE_IPC_SAP::enable (int value) const
{
// nonblocking argument (1)
// blocking: (0)
- int nonblock = 1;
+ u_long nonblock = 1;
return ACE_OS::ioctl (this->handle_,
FIONBIO,
&nonblock);
@@ -131,7 +129,7 @@ ACE_IPC_SAP::disable (int value) const
// nonblocking argument (1)
// blocking: (0)
{
- int nonblock = 0;
+ u_long nonblock = 0;
return ACE_OS::ioctl (this->handle_,
FIONBIO,
&nonblock);
@@ -189,5 +187,3 @@ ACE_IPC_SAP::disable (int value) const
#endif /* ! ACE_WIN32 && ! VXWORKS */
/* NOTREACHED */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/IPC_SAP.h b/ace/IPC_SAP.h
index 98aa2bbf450..72828c8f74c 100644
--- a/ace/IPC_SAP.h
+++ b/ace/IPC_SAP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_IPC_SAP
*
@@ -32,6 +30,8 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_IPC_SAP
{
public:
+ /// Default dtor.
+ ~ACE_IPC_SAP (void);
/// Interface for <ioctl>.
int control (int cmd, void *) const;
@@ -65,19 +65,10 @@ public:
ACE_ALLOC_HOOK_DECLARE;
protected:
-
// = Ensure that ACE_IPC_SAP is an abstract base class.
/// Default constructor.
ACE_IPC_SAP (void);
- /// Protected destructor.
- /**
- * Not a virtual destructor. Protected destructor to prevent
- * operator delete() from being called through a base class
- * ACE_IPC_SAP pointer/reference.
- */
- ~ACE_IPC_SAP (void);
-
private:
/// Underlying I/O handle.
ACE_HANDLE handle_;
@@ -86,8 +77,6 @@ private:
static pid_t pid_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/IPC_SAP.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/IPC_SAP.inl b/ace/IPC_SAP.inl
index 0adcb6e9b09..69a5befa3b1 100644
--- a/ace/IPC_SAP.inl
+++ b/ace/IPC_SAP.inl
@@ -1,10 +1,11 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// IPC_SAP.i
+
#include "ace/OS_NS_stropts.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Used to return the underlying handle_.
ACE_INLINE
ACE_IPC_SAP::~ACE_IPC_SAP (void)
@@ -36,5 +37,3 @@ ACE_IPC_SAP::control (int cmd, void *arg) const
ACE_TRACE ("ACE_IPC_SAP::control");
return ACE_OS::ioctl (this->handle_, cmd, arg);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/If_Then_Else.h b/ace/If_Then_Else.h
index 163219e206b..e9ca33a0631 100644
--- a/ace/If_Then_Else.h
+++ b/ace/If_Then_Else.h
@@ -17,10 +17,6 @@
#ifndef ACE_IF_THEN_ELSE_H
#define ACE_IF_THEN_ELSE_H
-#include "ace/config-lite.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
@@ -84,6 +80,4 @@ namespace ACE
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_IF_THEN_ELSE_H */
diff --git a/ace/Init_ACE.cpp b/ace/Init_ACE.cpp
index f997c09d4f8..d1f098438bc 100644
--- a/ace/Init_ACE.cpp
+++ b/ace/Init_ACE.cpp
@@ -7,8 +7,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
unsigned int ACE::init_fini_count_ = 0;
int
@@ -41,5 +39,3 @@ ACE::fini (void)
// application!
return -1;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Init_ACE.h b/ace/Init_ACE.h
index df2cea0c62f..4d9d14da998 100644
--- a/ace/Init_ACE.h
+++ b/ace/Init_ACE.h
@@ -8,6 +8,8 @@
*
* Initialize ACE library services. Can be called only once per
* program invocation.
+ *
+ * @author Priyanka Gontla <pgontla@ece.uci.edu>
*/
//=============================================================================
@@ -23,8 +25,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
+/**
+ * @class ACE_Init_ACE
+ *
+ * @brief
+ *
+ */
namespace ACE
{
/**
@@ -55,8 +61,6 @@ namespace ACE
extern unsigned int init_fini_count_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_INIT_ACE_H */
diff --git a/ace/Intrusive_List.cpp b/ace/Intrusive_List.cpp
index 4a374c9b045..7a23921288b 100644
--- a/ace/Intrusive_List.cpp
+++ b/ace/Intrusive_List.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_INTRUSIVE_LIST_CPP
-#define ACE_INTRUSIVE_LIST_CPP
+#ifndef ACE_INTRUSIVE_LIST_C
+#define ACE_INTRUSIVE_LIST_C
#include "ace/Intrusive_List.h"
@@ -13,7 +13,7 @@
#include "ace/Intrusive_List.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Intrusive_List, "$Id$")
template <class T>
ACE_Intrusive_List<T>::ACE_Intrusive_List (void)
@@ -148,6 +148,4 @@ ACE_Intrusive_List<T>::check_invariants (void)
}
#endif /* 0 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_INTRUSIVE_LIST_CPP */
+#endif /* ACE_INTRUSIVE_LIST_C */
diff --git a/ace/Intrusive_List.h b/ace/Intrusive_List.h
index fee24290712..a19e641c17d 100644
--- a/ace/Intrusive_List.h
+++ b/ace/Intrusive_List.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Intrusive_List
*
@@ -119,8 +117,6 @@ private:
T *tail_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Intrusive_List.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Intrusive_List.inl b/ace/Intrusive_List.inl
index 56371fdd030..2c513b4584f 100644
--- a/ace/Intrusive_List.inl
+++ b/ace/Intrusive_List.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T> ACE_INLINE int
ACE_Intrusive_List<T>::empty (void) const
{
@@ -21,5 +17,3 @@ ACE_Intrusive_List<T>::tail (void) const
{
return this->tail_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Intrusive_List_Node.cpp b/ace/Intrusive_List_Node.cpp
index cd39a0cc91e..58002653d2e 100644
--- a/ace/Intrusive_List_Node.cpp
+++ b/ace/Intrusive_List_Node.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_INTRUSIVE_LIST_NODE_CPP
-#define ACE_INTRUSIVE_LIST_NODE_CPP
+#ifndef ACE_INTRUSIVE_LIST_NODE_C
+#define ACE_INTRUSIVE_LIST_NODE_C
#include "ace/Intrusive_List_Node.h"
@@ -13,7 +13,7 @@
#include "ace/Intrusive_List_Node.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Intrusive_List_Node, "$Id$")
template<class T>
ACE_Intrusive_List_Node<T>::ACE_Intrusive_List_Node (void)
@@ -22,6 +22,4 @@ ACE_Intrusive_List_Node<T>::ACE_Intrusive_List_Node (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_INTRUSIVE_LIST_NODE_CPP */
+#endif /* ACE_INTRUSIVE_LIST_NODE_C */
diff --git a/ace/Intrusive_List_Node.h b/ace/Intrusive_List_Node.h
index 161a359f226..b37b1c0204b 100644
--- a/ace/Intrusive_List_Node.h
+++ b/ace/Intrusive_List_Node.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Intrusive_List_Node
*
@@ -67,8 +65,6 @@ private:
T *next_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Intrusive_List_Node.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Intrusive_List_Node.inl b/ace/Intrusive_List_Node.inl
index 0672be2f345..e7f2c5ee3eb 100644
--- a/ace/Intrusive_List_Node.inl
+++ b/ace/Intrusive_List_Node.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T> ACE_INLINE T*
ACE_Intrusive_List_Node<T>::prev (void) const
{
@@ -27,5 +23,3 @@ ACE_Intrusive_List_Node<T>::next (T *x)
{
this->next_ = x;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/LOCK_SOCK_Acceptor.cpp b/ace/LOCK_SOCK_Acceptor.cpp
index 183338b7efa..7c3f1763f14 100644
--- a/ace/LOCK_SOCK_Acceptor.cpp
+++ b/ace/LOCK_SOCK_Acceptor.cpp
@@ -6,7 +6,7 @@
#include "ace/Guard_T.h"
#include "ace/LOCK_SOCK_Acceptor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, LOCK_SOCK_Acceptor, "$Id$")
template <class ACE_LOCK> int
ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::accept (ACE_SOCK_Stream &stream,
@@ -30,6 +30,4 @@ ACE_LOCK_SOCK_Acceptor<ACE_LOCK>::lock (void)
return this->lock_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LOCK_SOCK_ACCEPTOR_CPP */
diff --git a/ace/LOCK_SOCK_Acceptor.h b/ace/LOCK_SOCK_Acceptor.h
index ae7775d3039..36a0afe19c8 100644
--- a/ace/LOCK_SOCK_Acceptor.h
+++ b/ace/LOCK_SOCK_Acceptor.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_LOCK_SOCK_Acceptor
*
@@ -53,8 +50,6 @@ protected:
ACE_LOCK lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/LOCK_SOCK_Acceptor.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/LSOCK.cpp b/ace/LSOCK.cpp
index a1b210424ea..694744f01be 100644
--- a/ace/LSOCK.cpp
+++ b/ace/LSOCK.cpp
@@ -13,8 +13,6 @@ ACE_RCSID(ace, LSOCK, "$Id$")
#include "ace/LSOCK.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK)
void
@@ -175,7 +173,4 @@ ACE_LSOCK::recv_handle (ACE_HANDLE &handle, char *pbuf, ssize_t *len) const
return ACE_INVALID_HANDLE;
}
#endif /* ACE_HAS_MSG */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/LSOCK.h b/ace/LSOCK.h
index fc9183a604d..18921ef6d2f 100644
--- a/ace/LSOCK.h
+++ b/ace/LSOCK.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,15 +31,13 @@
#include "ace/SOCK.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_LSOCK
*
* @brief Create a Local ACE_SOCK, which is used for passing file
* descriptors.
*/
-class ACE_Export ACE_LSOCK
+class ACE_Sockets_Export ACE_LSOCK
{
public:
#if defined (ACE_HAS_MSG)
@@ -73,8 +76,6 @@ private:
ACE_HANDLE aux_handle_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/LSOCK.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/LSOCK.inl b/ace/LSOCK.inl
index 5dbbb0626a1..fcd0e6887fc 100644
--- a/ace/LSOCK.inl
+++ b/ace/LSOCK.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Simple-minded constructor.
ACE_INLINE
@@ -39,5 +36,3 @@ ACE_LSOCK::ACE_LSOCK (ACE_HANDLE handle)
{
ACE_TRACE ("ACE_LSOCK::ACE_LSOCK");
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/LSOCK_Acceptor.cpp b/ace/LSOCK_Acceptor.cpp
index ee154e3e087..e8674429e77 100644
--- a/ace/LSOCK_Acceptor.cpp
+++ b/ace/LSOCK_Acceptor.cpp
@@ -10,8 +10,6 @@
ACE_RCSID(ace, LSOCK_Acceptor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Acceptor)
// Return the local endpoint address.
@@ -49,50 +47,50 @@ ACE_LSOCK_Acceptor::ACE_LSOCK_Acceptor (void)
int
ACE_LSOCK_Acceptor::open (const ACE_Addr &remote_sap,
- int reuse_addr,
- int protocol_family,
- int backlog,
- int protocol)
+ int reuse_addr,
+ int protocol_family,
+ int backlog,
+ int protocol)
{
ACE_TRACE ("ACE_LSOCK_Acceptor::open");
this->local_addr_ = *((ACE_UNIX_Addr *) &remote_sap); // This is a gross hack...
return ACE_SOCK_Acceptor::open (remote_sap, reuse_addr,
- protocol_family, backlog, protocol);
+ protocol_family, backlog, protocol);
}
// General purpose routine for performing server ACE_SOCK creation.
ACE_LSOCK_Acceptor::ACE_LSOCK_Acceptor (const ACE_Addr &remote_sap,
- int reuse_addr,
- int protocol_family,
- int backlog,
- int protocol)
+ int reuse_addr,
+ int protocol_family,
+ int backlog,
+ int protocol)
{
ACE_TRACE ("ACE_LSOCK_Acceptor::ACE_LSOCK_Acceptor");
if (this->open (remote_sap,
- reuse_addr,
- protocol_family,
- backlog,
- protocol) == -1)
+ reuse_addr,
+ protocol_family,
+ backlog,
+ protocol) == -1)
ACE_ERROR ((LM_ERROR,
- "ACE_LSOCK_Acceptor::ACE_LSOCK_Acceptor"));
+ "ACE_LSOCK_Acceptor::ACE_LSOCK_Acceptor"));
}
// General purpose routine for accepting new connections.
int
ACE_LSOCK_Acceptor::accept (ACE_LSOCK_Stream &new_stream,
- ACE_Addr *remote_addr,
- ACE_Time_Value *timeout,
- int restart,
+ ACE_Addr *remote_addr,
+ ACE_Time_Value *timeout,
+ int restart,
int reset_new_handle) const
{
ACE_TRACE ("ACE_LSOCK_Acceptor::accept");
int in_blocking_mode = 0;
if (this->shared_accept_start (timeout,
- restart,
- in_blocking_mode) == -1)
+ restart,
+ in_blocking_mode) == -1)
return -1;
else
{
@@ -100,30 +98,30 @@ ACE_LSOCK_Acceptor::accept (ACE_LSOCK_Stream &new_stream,
int len = 0;
if (remote_addr != 0)
- {
- len = remote_addr->get_size ();
- addr = (sockaddr *) remote_addr->get_addr ();
- }
+ {
+ len = remote_addr->get_size ();
+ addr = (sockaddr *) remote_addr->get_addr ();
+ }
do
- new_stream.set_handle (ACE_OS::accept (this->get_handle (),
- addr,
- &len));
+ new_stream.set_handle (ACE_OS::accept (this->get_handle (),
+ addr,
+ &len));
while (new_stream.get_handle () == ACE_INVALID_HANDLE
- && restart != 0
- && errno == EINTR
- && timeout == 0);
+ && restart != 0
+ && errno == EINTR
+ && timeout == 0);
// Reset the size of the addr, which is only necessary for UNIX
// domain sockets.
if (new_stream.get_handle () != ACE_INVALID_HANDLE
- && remote_addr != 0)
- remote_addr->set_size (len);
+ && remote_addr != 0)
+ remote_addr->set_size (len);
}
return this->shared_accept_finish (new_stream,
- in_blocking_mode,
- reset_new_handle);
+ in_blocking_mode,
+ reset_new_handle);
}
// Close down the UNIX domain stream and remove the rendezvous point
@@ -138,6 +136,4 @@ ACE_LSOCK_Acceptor::remove (void)
|| result == -1 ? -1 : 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/LSOCK_Acceptor.h b/ace/LSOCK_Acceptor.h
index 8fec44e0f22..cc7c1dca103 100644
--- a/ace/LSOCK_Acceptor.h
+++ b/ace/LSOCK_Acceptor.h
@@ -27,8 +27,6 @@
#include "ace/UNIX_Addr.h"
#include "ace/LSOCK_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_Reactor;
@@ -38,7 +36,7 @@ class ACE_Reactor;
* @brief Defines the format and interface for the acceptor side of the
* local ACE_SOCK ACE_Stream.
*/
-class ACE_Export ACE_LSOCK_Acceptor : public ACE_SOCK_Acceptor
+class ACE_Sockets_Export ACE_LSOCK_Acceptor : public ACE_SOCK_Acceptor
{
public:
// = Initialization methods.
@@ -88,8 +86,6 @@ private:
ACE_UNIX_Addr local_addr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
#include /**/ "ace/post.h"
#endif /* ACE_LOCAL_SOCK_ACCEPTOR_H */
diff --git a/ace/LSOCK_CODgram.cpp b/ace/LSOCK_CODgram.cpp
index 17f80b9836f..4e58022b36c 100644
--- a/ace/LSOCK_CODgram.cpp
+++ b/ace/LSOCK_CODgram.cpp
@@ -1,3 +1,4 @@
+// LSOCK_CODgram.cpp
// $Id$
#include "ace/LSOCK_CODgram.h"
@@ -11,8 +12,6 @@ ACE_RCSID(ace, LSOCK_CODgram, "$Id$")
#include "ace/LSOCK_CODgram.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_CODgram)
void
@@ -32,13 +31,13 @@ ACE_LSOCK_CODgram::dump (void) const
int
ACE_LSOCK_CODgram::open (const ACE_Addr &remote,
- const ACE_Addr &local,
- int protocol_family,
- int protocol)
+ const ACE_Addr &local,
+ int protocol_family,
+ int protocol)
{
ACE_TRACE ("ACE_LSOCK_CODgram::open");
if (ACE_SOCK_CODgram::open (remote, local, protocol_family,
- protocol) == -1)
+ protocol) == -1)
return -1;
ACE_LSOCK::set_handle (this->get_handle ());
return 0;
@@ -47,16 +46,13 @@ ACE_LSOCK_CODgram::open (const ACE_Addr &remote,
/* Create a local ACE_SOCK datagram. */
ACE_LSOCK_CODgram::ACE_LSOCK_CODgram (const ACE_Addr &remote,
- const ACE_Addr &local,
- int protocol_family,
- int protocol)
+ const ACE_Addr &local,
+ int protocol_family,
+ int protocol)
{
ACE_TRACE ("ACE_LSOCK_CODgram::ACE_LSOCK_CODgram");
if (this->open (remote, local, protocol_family,
- protocol) == -1)
+ protocol) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_LSOCK_CODgram")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/LSOCK_CODgram.h b/ace/LSOCK_CODgram.h
index 3f017e8816b..e0c8cfc6dfb 100644
--- a/ace/LSOCK_CODgram.h
+++ b/ace/LSOCK_CODgram.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,15 +27,13 @@
#include "ace/SOCK_CODgram.h"
#include "ace/Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_LSOCK_CODgram
*
* @brief Defines the member functions for the <ACE_LSOCK> connected
* datagram abstraction.
*/
-class ACE_Export ACE_LSOCK_CODgram : public ACE_SOCK_CODgram, public ACE_LSOCK
+class ACE_Sockets_Export ACE_LSOCK_CODgram : public ACE_SOCK_CODgram, public ACE_LSOCK
{
public:
// = Initialization methods.
@@ -67,8 +65,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/LSOCK_CODgram.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/LSOCK_CODgram.inl b/ace/LSOCK_CODgram.inl
index d27ee2fd881..48c7280459f 100644
--- a/ace/LSOCK_CODgram.inl
+++ b/ace/LSOCK_CODgram.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Do nothing constructor.
ACE_INLINE
@@ -26,5 +23,3 @@ ACE_LSOCK_CODgram::get_handle (void) const
ACE_TRACE ("ACE_LSOCK_CODgram::get_handle");
return this->ACE_SOCK_CODgram::get_handle ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/LSOCK_Connector.cpp b/ace/LSOCK_Connector.cpp
index f495744b1b8..4b29ff1e0cf 100644
--- a/ace/LSOCK_Connector.cpp
+++ b/ace/LSOCK_Connector.cpp
@@ -11,8 +11,6 @@ ACE_RCSID(ace, LSOCK_Connector, "$Id$")
#include "ace/LSOCK_Connector.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Connector)
void
@@ -34,16 +32,16 @@ ACE_LSOCK_Connector::ACE_LSOCK_Connector (void)
// Establish a connection.
ACE_LSOCK_Connector::ACE_LSOCK_Connector (ACE_LSOCK_Stream &new_stream,
- const ACE_UNIX_Addr &remote_sap,
- ACE_Time_Value *timeout,
- const ACE_Addr &local_sap,
- int reuse_addr,
- int flags,
- int perms)
+ const ACE_UNIX_Addr &remote_sap,
+ ACE_Time_Value *timeout,
+ const ACE_Addr &local_sap,
+ int reuse_addr,
+ int flags,
+ int perms)
: ACE_SOCK_Connector (new_stream,
remote_sap,
timeout,
- local_sap,
+ local_sap,
reuse_addr,
flags,
perms)
@@ -54,6 +52,4 @@ ACE_LSOCK_Connector::ACE_LSOCK_Connector (ACE_LSOCK_Stream &new_stream,
new_stream.set_handle (new_stream.get_handle ());
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/LSOCK_Connector.h b/ace/LSOCK_Connector.h
index a362a1587d4..558fc4a8f81 100644
--- a/ace/LSOCK_Connector.h
+++ b/ace/LSOCK_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,15 +26,13 @@
#include "ace/LSOCK_Stream.h"
#include "ace/UNIX_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_LSOCK_Connector
*
* @brief Defines the format and interface for the connector side of
* the <ACE_LSOCK_Stream>.
*/
-class ACE_Export ACE_LSOCK_Connector : public ACE_SOCK_Connector
+class ACE_Sockets_Export ACE_LSOCK_Connector : public ACE_SOCK_Connector
{
public:
// = Initialization methods.
@@ -80,8 +78,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/LSOCK_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/LSOCK_Connector.inl b/ace/LSOCK_Connector.inl
index f9cdffbf6dc..3638a687297 100644
--- a/ace/LSOCK_Connector.inl
+++ b/ace/LSOCK_Connector.inl
@@ -1,27 +1,24 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Establish a connection.
+
ACE_INLINE int
ACE_LSOCK_Connector::connect (ACE_LSOCK_Stream &new_stream,
- const ACE_UNIX_Addr &remote_sap,
- ACE_Time_Value *timeout,
- const ACE_Addr &local_sap,
- int reuse_addr,
- int flags,
- int perms)
+ const ACE_UNIX_Addr &remote_sap,
+ ACE_Time_Value *timeout,
+ const ACE_Addr &local_sap,
+ int reuse_addr,
+ int flags,
+ int perms)
{
ACE_TRACE ("ACE_LSOCK_Connector::connect");
int result = ACE_SOCK_Connector::connect (new_stream, remote_sap,
- timeout, local_sap,
- reuse_addr, flags, perms);
+ timeout, local_sap,
+ reuse_addr, flags, perms);
if (result != -1)
// This is necessary due to the weird inheritance relationships of ACE_LSOCK_Stream.
new_stream.set_handle (new_stream.get_handle ());
return result;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/LSOCK_Dgram.cpp b/ace/LSOCK_Dgram.cpp
index 3c65d24b88c..9b4cebddc89 100644
--- a/ace/LSOCK_Dgram.cpp
+++ b/ace/LSOCK_Dgram.cpp
@@ -11,8 +11,6 @@ ACE_RCSID(ace, LSOCK_Dgram, "$Id$")
#include "ace/LSOCK_Dgram.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Dgram)
void
@@ -39,13 +37,13 @@ ACE_LSOCK_Dgram::ACE_LSOCK_Dgram (void)
int
ACE_LSOCK_Dgram::open (const ACE_Addr &local,
- int protocol_family,
- int protocol)
+ int protocol_family,
+ int protocol)
{
ACE_TRACE ("ACE_LSOCK_Dgram::open");
if (ACE_SOCK_Dgram::open (local,
protocol_family,
- protocol) == -1)
+ protocol) == -1)
return -1;
ACE_LSOCK::set_handle (this->ACE_SOCK_Dgram::get_handle ());
return 0;
@@ -54,18 +52,16 @@ ACE_LSOCK_Dgram::open (const ACE_Addr &local,
// Create a local ACE_SOCK datagram.
ACE_LSOCK_Dgram::ACE_LSOCK_Dgram (const ACE_Addr &local,
- int protocol_family,
- int protocol)
+ int protocol_family,
+ int protocol)
{
ACE_TRACE ("ACE_LSOCK_Dgram::ACE_LSOCK_Dgram");
if (this->open (local,
protocol_family,
- protocol) == -1)
+ protocol) == -1)
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_LSOCK_Dgram")));
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/LSOCK_Dgram.h b/ace/LSOCK_Dgram.h
index 4a1b43eaf8c..4d6939e1c73 100644
--- a/ace/LSOCK_Dgram.h
+++ b/ace/LSOCK_Dgram.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -26,14 +27,12 @@
#include "ace/SOCK_Dgram.h"
#include "ace/LSOCK.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_LSOCK_Dgram
*
* @brief Create a Local ACE_SOCK datagram.
*/
-class ACE_Export ACE_LSOCK_Dgram : public ACE_SOCK_Dgram, public ACE_LSOCK
+class ACE_Sockets_Export ACE_LSOCK_Dgram : public ACE_SOCK_Dgram, public ACE_LSOCK
{
public:
// = Initialization methods.
@@ -63,8 +62,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/LSOCK_Dgram.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/LSOCK_Dgram.inl b/ace/LSOCK_Dgram.inl
index 2c29136e06d..14c415ceaa8 100644
--- a/ace/LSOCK_Dgram.inl
+++ b/ace/LSOCK_Dgram.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// LSOCK_Dgram.i
ACE_INLINE void
ACE_LSOCK_Dgram::set_handle (ACE_HANDLE h)
@@ -19,4 +18,3 @@ ACE_LSOCK_Dgram::get_handle (void) const
return this->ACE_SOCK_Dgram::get_handle ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/LSOCK_Stream.cpp b/ace/LSOCK_Stream.cpp
index 6ac123661cf..51cbaa74db0 100644
--- a/ace/LSOCK_Stream.cpp
+++ b/ace/LSOCK_Stream.cpp
@@ -1,3 +1,4 @@
+// LSOCK_Stream.cpp
// $Id$
#include "ace/LSOCK_Stream.h"
@@ -12,8 +13,6 @@ ACE_RCSID(ace, LSOCK_Stream, "$Id$")
#include "ace/LSOCK_Stream.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_LSOCK_Stream)
int
@@ -92,7 +91,7 @@ ACE_LSOCK_Stream::send_msg (const iovec iov[],
#endif /* ACE_HAS_4_4BSD_SENDMSG_RECVMSG */
return ACE_OS::sendmsg (this->ACE_SOCK_Stream::get_handle (),
- &send_msg, 0);
+ &send_msg, 0);
}
// Read a readv-style vector of buffers, along with an open I/O
@@ -100,8 +99,8 @@ ACE_LSOCK_Stream::send_msg (const iovec iov[],
ssize_t
ACE_LSOCK_Stream::recv_msg (iovec iov[],
- size_t n,
- ACE_HANDLE &handle)
+ size_t n,
+ ACE_HANDLE &handle)
{
ACE_TRACE ("ACE_LSOCK_Stream::recv_msg");
msghdr recv_msg;
@@ -119,7 +118,7 @@ ACE_LSOCK_Stream::recv_msg (iovec iov[],
recv_msg.msg_control = cmsgbuf;
recv_msg.msg_controllen = sizeof cmsgbuf;
ssize_t result = ACE_OS::recvmsg (this->ACE_SOCK_Stream::get_handle (),
- &recv_msg, 0);
+ &recv_msg, 0);
handle = *(ACE_HANDLE*) CMSG_DATA (cmsgptr) ;
return result;
#else
@@ -127,11 +126,8 @@ ACE_LSOCK_Stream::recv_msg (iovec iov[],
recv_msg.msg_accrightslen = sizeof handle;
return ACE_OS::recvmsg (this->ACE_SOCK_Stream::get_handle (),
- &recv_msg, 0);
+ &recv_msg, 0);
#endif /* ACE_HAS_4_4BSD_SENDMSG_RECVMSG */
}
#endif /* ACE_HAS_MSG */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/LSOCK_Stream.h b/ace/LSOCK_Stream.h
index 68c43a4c221..639047db334 100644
--- a/ace/LSOCK_Stream.h
+++ b/ace/LSOCK_Stream.h
@@ -27,14 +27,12 @@
#include "ace/UNIX_Addr.h"
#include "ace/LSOCK.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_LSOCK_Stream
*
* @brief Create a Local ACE_SOCK stream.
*/
-class ACE_Export ACE_LSOCK_Stream : public ACE_SOCK_Stream, public ACE_LSOCK
+class ACE_Sockets_Export ACE_LSOCK_Stream : public ACE_SOCK_Stream, public ACE_LSOCK
{
public:
// = Send/recv methods.
@@ -71,8 +69,6 @@ public:
int get_remote_addr (ACE_Addr &) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/LSOCK_Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/LSOCK_Stream.inl b/ace/LSOCK_Stream.inl
index bf7e45b376d..7b94768e3c7 100644
--- a/ace/LSOCK_Stream.inl
+++ b/ace/LSOCK_Stream.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Sets both the file descriptors... Overrides handle from the base
// classes.
@@ -22,4 +19,5 @@ ACE_LSOCK_Stream::get_handle (void) const
return this->ACE_SOCK_Stream::get_handle ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+
diff --git a/ace/Lib_Find.cpp b/ace/Lib_Find.cpp
index 546b1469f8d..9c6ae0faff6 100644
--- a/ace/Lib_Find.cpp
+++ b/ace/Lib_Find.cpp
@@ -25,8 +25,6 @@ extern "C" int LIB$FIND_IMAGE_SYMBOL(...);
ACE_RCSID(ace, Lib_Find, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if ! defined (ACE_PSOS_DIAB_MIPS)
int
ACE::ldfind (const ACE_TCHAR* filename,
@@ -320,9 +318,8 @@ ACE::ldfind (const ACE_TCHAR* filename,
# else
// Wide-char, non-Windows only offers char * getenv. So capture
// it, translate to wide-char, and continue.
- ACE_Ascii_To_Wide wide_ldpath
- (ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (ACE_LD_SEARCH_PATH)));
- ld_path = wide_ldpath.wchar_rep ();
+ ACE::String_Conversion::Convert_In< ACE_TCHAR, ACE_ANTI_TCHAR > wide_ldpath(ACE_OS::getenv (ACE_LD_SEARCH_PATH_A));
+ ld_path = const_cast<ACE_TCHAR*>(wide_ldpath.c_str ());
# endif /* ACE_WIN32 || !ACE_USES_WCHAR */
# endif /* ACE_DEFAULT_LD_SEARCH_PATH */
@@ -563,7 +560,7 @@ ACE::get_temp_dir (ACE_TCHAR *buffer, size_t buffer_len)
}
else
{
- ACE_OS::strcpy (buffer, ACE_TEXT_CHAR_TO_TCHAR (tmpdir));
+ ACE_OS::string_copy (buffer, tmpdir, buffer_len);
// Add a trailing slash because we cannot assume there is already one
// at the end. And having an extra one should not cause problems.
@@ -654,7 +651,6 @@ ACE::strsplit_r (char *str,
return result;
}
-#if defined (ACE_HAS_WCHAR)
wchar_t *
ACE::strsplit_r (wchar_t *str,
const wchar_t *token,
@@ -704,6 +700,3 @@ ACE::strrepl (wchar_t *s, wchar_t search, wchar_t replace)
return replaced;
}
-#endif /* ACE_HAS_WCHAR */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Lib_Find.h b/ace/Lib_Find.h
index 418de3751de..17d28284f14 100644
--- a/ace/Lib_Find.h
+++ b/ace/Lib_Find.h
@@ -8,6 +8,8 @@
* libraries.
*
* $Id$
+ *
+ * @author Priyanka Gontla <pgontla@ece.uci.edu>
*/
//=============================================================================
@@ -19,7 +21,6 @@
#include "ace/ACE_export.h"
#include "ace/os_include/os_stdio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
@@ -88,7 +89,6 @@ namespace ACE
const char *token,
char *&next_start);
-#if defined (ACE_HAS_WCHAR)
/// As strrepl, but for wide characters.
extern ACE_Export size_t strrepl (wchar_t *s,
wchar_t search,
@@ -98,11 +98,7 @@ namespace ACE
extern ACE_Export wchar_t *strsplit_r (wchar_t *s,
const wchar_t *token,
wchar_t *&next_start);
-#endif /* ACE_HAS_WCHAR */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_LIB_FIND_H */
-
diff --git a/ace/Local_Memory_Pool.cpp b/ace/Local_Memory_Pool.cpp
index c1b9c922145..c7029c0c951 100644
--- a/ace/Local_Memory_Pool.cpp
+++ b/ace/Local_Memory_Pool.cpp
@@ -8,8 +8,6 @@
ACE_RCSID(ace, Local_Memory_Pool, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Local_Memory_Pool)
void
@@ -150,5 +148,3 @@ template class ACE_Unbounded_Set_Iterator<char *>;
#pragma instantiate ACE_Unbounded_Set<char *>
#pragma instantiate ACE_Unbounded_Set_Iterator<char *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Local_Memory_Pool.h b/ace/Local_Memory_Pool.h
index caf22055273..f5762b9bc14 100644
--- a/ace/Local_Memory_Pool.h
+++ b/ace/Local_Memory_Pool.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/Unbounded_Set.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Local_Memory_Pool_Options
*
@@ -127,7 +125,5 @@ protected:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_LOCAL_MEMORY_POOL_H */
diff --git a/ace/Local_Name_Space.cpp b/ace/Local_Name_Space.cpp
index dfca822630b..27ee8c84ddf 100644
--- a/ace/Local_Name_Space.cpp
+++ b/ace/Local_Name_Space.cpp
@@ -1,5 +1,4 @@
#include "ace/Local_Name_Space.h"
-#include "ace/ACE.h"
#include "ace/RW_Process_Mutex.h"
#include "ace/SString.h"
#include "ace/OS_NS_string.h"
@@ -8,15 +7,13 @@ ACE_RCSID (ace,
Local_Name_Space,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_NS_String::~ACE_NS_String (void)
{
if (this->delete_rep_)
delete [] this->rep_;
}
-ACE_WCHAR_T *
+wchar_t *
ACE_NS_String::fast_rep (void) const
{
ACE_TRACE ("ACE_NS_String::fast_rep");
@@ -27,7 +24,7 @@ ACE_NS_String::operator ACE_NS_WString () const
{
ACE_TRACE ("ACE_NS_String::operator ACE_NS_WString");
return ACE_NS_WString (this->rep_,
- (this->len_ / sizeof (ACE_WCHAR_T)) - 1);
+ (this->len_ / sizeof (wchar_t)) - 1);
}
size_t
@@ -42,7 +39,7 @@ ACE_NS_String::char_rep (void) const
{
ACE_TRACE ("ACE_NS_String::char_rep");
ACE_NS_WString w_string (this->rep_,
- (this->len_ / sizeof (ACE_WCHAR_T)) - 1);
+ (this->len_ / sizeof (wchar_t)) - 1);
return w_string.char_rep ();
}
@@ -55,7 +52,7 @@ ACE_NS_String::ACE_NS_String (void)
}
ACE_NS_String::ACE_NS_String (const ACE_NS_WString &s)
- : len_ ((s.length () + 1) * sizeof (ACE_WCHAR_T)),
+ : len_ ((s.length () + 1) * sizeof (wchar_t)),
rep_ (s.rep ()),
delete_rep_ (1)
{
@@ -76,8 +73,8 @@ ACE_NS_String::strstr (const ACE_NS_String &s) const
else
{
// They're smaller than we are...
- const size_t len = (this->len_ - s.len_) / sizeof (ACE_WCHAR_T);
- const size_t pat_len = s.len_ / sizeof (ACE_WCHAR_T) - 1;
+ const size_t len = (this->len_ - s.len_) / sizeof (wchar_t);
+ const size_t pat_len = s.len_ / sizeof (wchar_t) - 1;
for (size_t i = 0; i <= len; ++i)
{
@@ -112,8 +109,8 @@ ACE_NS_String::operator != (const ACE_NS_String &s) const
return !this->operator == (s);
}
-ACE_NS_String::ACE_NS_String (ACE_WCHAR_T *dst,
- const ACE_WCHAR_T *src,
+ACE_NS_String::ACE_NS_String (wchar_t *dst,
+ const wchar_t *src,
size_t bytes)
: len_ (bytes),
rep_ (dst),
@@ -127,13 +124,11 @@ u_long
ACE_NS_String::hash (void) const
{
return ACE::hash_pjw
- (reinterpret_cast<char *> (const_cast<ACE_WCHAR_T *> (this->rep_)),
+ (reinterpret_cast<char *> (const_cast<wchar_t *> (this->rep_)),
this->len_);
}
ACE_NS_Internal::ACE_NS_Internal (void)
- : value_ (),
- type_ ()
{
}
@@ -217,4 +212,3 @@ template class ACE_Write_Guard<ACE_RW_Process_Mutex>;
#pragma instantiate ACE_Write_Guard<ACE_RW_Process_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Local_Name_Space.h b/ace/Local_Name_Space.h
index 728ac8afb1c..ae08bd37917 100644
--- a/ace/Local_Name_Space.h
+++ b/ace/Local_Name_Space.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_NS_WString;
/**
@@ -44,8 +42,8 @@ public:
ACE_NS_String (void);
/// Initialization method.
- ACE_NS_String (ACE_WCHAR_T *dst,
- const ACE_WCHAR_T *src,
+ ACE_NS_String (wchar_t *dst,
+ const wchar_t *src,
size_t len);
/// Converts an ACE_NS_WString to an ACE_NS_String;
@@ -73,7 +71,7 @@ public:
size_t len (void) const;
/// Returns the underlying representation.
- ACE_WCHAR_T *fast_rep (void) const;
+ wchar_t *fast_rep (void) const;
/// Returns a hash value for this string.
u_long hash (void) const;
@@ -83,7 +81,7 @@ private:
size_t len_;
/// This actually points into shared/persistent memory.
- ACE_WCHAR_T *rep_;
+ wchar_t *rep_;
/// Should rep_ be deleted when destructed (only used
/// for WString conversions)
@@ -122,8 +120,6 @@ private:
const char *type_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Include the ACE_Local_Name_Space templates stuff at this point.
#include "ace/Local_Name_Space_T.h"
diff --git a/ace/Local_Name_Space_T.cpp b/ace/Local_Name_Space_T.cpp
index 1523370d947..674c774e153 100644
--- a/ace/Local_Name_Space_T.cpp
+++ b/ace/Local_Name_Space_T.cpp
@@ -1,5 +1,3 @@
-// $Id$
-
#ifndef ACE_LOCAL_NAME_SPACE_T_CPP
#define ACE_LOCAL_NAME_SPACE_T_CPP
@@ -16,7 +14,10 @@
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ Local_Name_Space_T,
+ "$Id$")
+
template <class ALLOCATOR>
ACE_Name_Space_Map<ALLOCATOR>::ACE_Name_Space_Map (ALLOCATOR *alloc)
@@ -138,8 +139,8 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::shared_bind_i (
{
ACE_TRACE ("ACE_Local_Name_Space::shared_bind_i");
- const size_t name_len = (name.length () + 1) * sizeof (ACE_WCHAR_T);
- const size_t value_len = (value.length () + 1) * sizeof (ACE_WCHAR_T);
+ const size_t name_len = (name.length () + 1) * sizeof (wchar_t);
+ const size_t value_len = (value.length () + 1) * sizeof (wchar_t);
const size_t type_len = ACE_OS::strlen (type) + 1;
const size_t total_len = name_len + value_len + type_len;
char *ptr = (char *) this->allocator_->malloc (total_len);
@@ -150,12 +151,12 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::shared_bind_i (
{
// Note that the value_rep *must* come first to make sure we can
// retrieve this pointer later on in unbind().
- ACE_WCHAR_T *value_rep = (ACE_WCHAR_T *) (ptr);
- ACE_WCHAR_T *name_rep = (ACE_WCHAR_T *) (ptr + value_len);
+ wchar_t *value_rep = (wchar_t *) (ptr);
+ wchar_t *name_rep = (wchar_t *) (ptr + value_len);
char *new_type = (char *) (ptr + value_len + name_len);
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> name_urep (name.rep ());
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> value_urep (value.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> name_urep (name.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> value_urep (value.rep ());
ACE_NS_String new_name (name_rep, name_urep.get (), name_len);
ACE_NS_String new_value (value_rep, value_urep.get (), value_len);
@@ -324,7 +325,7 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::resolve_i (
value = nbc_string;
// Gets type and then the actual reprsentation which is a
- // ACE_WCHAR_T
+ // wchar_t
const char *temp = ns_internal.type ();
size_t len = ACE_OS::strlen (ns_internal.type ());
@@ -817,7 +818,7 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::dump_i (void) const
#endif /* ! ACE_NLOGGING */
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("key=%s\nvalue=%s\ntype=%s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (key), ACE_TEXT_CHAR_TO_TCHAR (value), ACE_TEXT_CHAR_TO_TCHAR (type)));
+ ACE_TEXT_TO_TCHAR_IN (key), ACE_TEXT_TO_TCHAR_IN (value), ACE_TEXT_TO_TCHAR_IN (type)));
// We need to delete key and value since char_rep allocates
// memory for them
delete [] key;
@@ -964,6 +965,4 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LOCAL_NAME_SPACE_T_CPP */
diff --git a/ace/Local_Name_Space_T.h b/ace/Local_Name_Space_T.h
index 14ed9377b30..97602b7019f 100644
--- a/ace/Local_Name_Space_T.h
+++ b/ace/Local_Name_Space_T.h
@@ -27,29 +27,19 @@
#include "ace/Local_Name_Space.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// A short-hand name for our set of name/value/type tuples passed back
/// to callers.
typedef ACE_Unbounded_Set<ACE_NS_WString> ACE_WSTRING_SET;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Simplify later usage by defining typedefs.
#if (1)
# include "ace/Hash_Map_Manager_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_Hash_Map_Manager_Ex<ACE_NS_String, ACE_NS_Internal, ACE_Hash<ACE_NS_String>, ACE_Equal_To<ACE_NS_String>, ACE_Null_Mutex> MAP_MANAGER;
-ACE_END_VERSIONED_NAMESPACE_DECL
#else
# include "ace/Map_Manager.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_Map_Manager<ACE_NS_String, ACE_NS_Internal, ACE_Null_Mutex> MAP_MANAGER;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* 0 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// @deprecated Deprecated typedefs. Use the map's traits instead.
typedef MAP_MANAGER::ITERATOR MAP_ITERATOR;
typedef MAP_MANAGER::ENTRY MAP_ENTRY;
@@ -266,8 +256,6 @@ private:
ACE_LOCK *lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Local_Name_Space_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Local_Tokens.cpp b/ace/Local_Tokens.cpp
index c2a174930ec..c575ac63735 100644
--- a/ace/Local_Tokens.cpp
+++ b/ace/Local_Tokens.cpp
@@ -17,8 +17,6 @@ ACE_RCSID (ace,
Local_Tokens,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Tokens::dump (void) const
{
@@ -1640,6 +1638,4 @@ template class ACE_Node <ACE_TPQ_Entry *>;
#pragma instantiate ACE_Node <ACE_TPQ_Entry *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Local_Tokens.h b/ace/Local_Tokens.h
index 1351f73f49f..6e68856d02e 100644
--- a/ace/Local_Tokens.h
+++ b/ace/Local_Tokens.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -67,8 +67,6 @@
# define ACE_NO_TSS_TOKENS 1
#endif /* !(defined (ACE_HAS_THREADS) && defined (ACE_HAS_THREAD_SPECIFIC_STORAGE)) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// 1.
/**
* @class ACE_TOKEN_CONST
@@ -79,8 +77,9 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* this class is necessary to fight the compiler with order of
* declaration errors.
*/
-namespace ACE_TOKEN_CONST
+class ACE_Export ACE_TOKEN_CONST
{
+public:
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
// ACE platform supports some form of threading.
typedef ACE_Condition_Thread_Mutex COND_VAR;
@@ -91,7 +90,7 @@ namespace ACE_TOKEN_CONST
typedef ACE_Null_Mutex MUTEX;
typedef ACE_Guard<ACE_Null_Mutex> GUARD;
#endif /* ACE_HAS_THREADS */
-}
+};
// Forward decl.
class ACE_Token_Proxy;
@@ -106,7 +105,7 @@ class ACE_Token_Proxy;
*/
class ACE_Export ACE_TPQ_Entry
{
- friend class ACE_Token_Manager;
+friend class ACE_Token_Manager;
public:
typedef void (*PTVF) (void *);
@@ -358,15 +357,15 @@ protected:
* Not a public interface.
* Currently, I don't see a reason for providing an abstract
* interface at this level of the library. As of yet, no one
- * uses ACE_Tokens derivatives through this abstract interface
- * except for ACE_Token_Manager. It only uses the statistical
+ * uses <ACE_Tokens> derivatives through this abstract interface
+ * except for <ACE_Token_Manager>. It only uses the statistical
* methods which are shared by all Tokens. For that reason, it
* still makes since to have a common base class. However,
* acquire, renew, and release do not need to have matching
* interfaces throughout all Tokens.
* To add a new type of token (e.g. semaphore), this class must
* be subtyped to define the new semantics. See
- * ACE_Token_Manager for details.
+ * <ACE_Token_Manager> for details.
*/
class ACE_Export ACE_Tokens
{
@@ -1110,8 +1109,6 @@ protected:
ACE_Tokens *create_token (const ACE_TCHAR *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
#if defined (__ACE_INLINE__)
diff --git a/ace/Local_Tokens.inl b/ace/Local_Tokens.inl
index ddbbf0343cf..3008f25c69a 100644
--- a/ace/Local_Tokens.inl
+++ b/ace/Local_Tokens.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// ************************************************************
ACE_INLINE int
@@ -284,6 +281,4 @@ ACE_Token_Name::operator== (const ACE_Token_Name &rhs) const
return (ACE_OS::strcmp (this->token_name_, rhs.name ()) == 0);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Lock.cpp b/ace/Lock.cpp
index dca934b8067..e0ea8397846 100644
--- a/ace/Lock.cpp
+++ b/ace/Lock.cpp
@@ -8,8 +8,6 @@
ACE_RCSID(ace, Lock, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Lock::~ACE_Lock (void)
{
}
@@ -84,5 +82,3 @@ ACE_Adaptive_Lock::dump (void) const
// return this->lock_->dump ();
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Lock.h b/ace/Lock.h
index 3a8eac292e4..68bacb35dd8 100644
--- a/ace/Lock.h
+++ b/ace/Lock.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Lock
*
@@ -151,8 +149,6 @@ protected:
ACE_Lock *lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Lock.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Lock.inl b/ace/Lock.inl
index 7e4842a0e33..bd6d1585cc9 100644
--- a/ace/Lock.inl
+++ b/ace/Lock.inl
@@ -1,12 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Lock::ACE_Lock (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Lock_Adapter_T.cpp b/ace/Lock_Adapter_T.cpp
index ec0c013a220..d71a1fbd2fc 100644
--- a/ace/Lock_Adapter_T.cpp
+++ b/ace/Lock_Adapter_T.cpp
@@ -14,7 +14,6 @@
#include "ace/Lock_Adapter_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// This constructor isn't inlined, because SunPRO C++ 4.2 + patch
// 104631-07 has trouble compiling TAO with it inline.
@@ -112,6 +111,4 @@ ACE_Lock_Adapter<ACE_LOCKING_MECHANISM>::tryacquire_write_upgrade (void)
return this->lock_->tryacquire_write_upgrade ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LOCK_ADAPTER_T_CPP */
diff --git a/ace/Lock_Adapter_T.h b/ace/Lock_Adapter_T.h
index 93ee250de4b..76445506e0a 100644
--- a/ace/Lock_Adapter_T.h
+++ b/ace/Lock_Adapter_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Lock_Adapter
*
@@ -105,8 +103,6 @@ private:
int delete_lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Lock_Adapter_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Lock_Adapter_T.inl b/ace/Lock_Adapter_T.inl
index f3b09bc0ab7..2ecd393d56d 100644
--- a/ace/Lock_Adapter_T.inl
+++ b/ace/Lock_Adapter_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACE_LOCKING_MECHANISM>
ACE_INLINE
ACE_Lock_Adapter<ACE_LOCKING_MECHANISM>::ACE_Lock_Adapter (
@@ -12,5 +10,3 @@ ACE_Lock_Adapter<ACE_LOCKING_MECHANISM>::ACE_Lock_Adapter (
delete_lock_ (0)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp
index 771f6ab9fd2..cbb5c22b008 100644
--- a/ace/Log_Msg.cpp
+++ b/ace/Log_Msg.cpp
@@ -43,8 +43,6 @@
ACE_RCSID(ace, Log_Msg, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Log_Msg)
// only used here... dhinton
@@ -60,11 +58,11 @@ ACE_ALLOC_HOOK_DEFINE(ACE_Log_Msg)
# if defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || \
defined (ACE_HAS_TSS_EMULATION)
-static ACE_thread_key_t the_log_msg_tss_key = 0;
-
ACE_thread_key_t *log_msg_tss_key (void)
{
- return &the_log_msg_tss_key;
+ static ACE_thread_key_t key = 0;
+
+ return &key;
}
# endif /* ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION */
@@ -242,7 +240,7 @@ ACE_Log_Msg_Manager::close (void)
# endif /* ACE_HAS_THR_C_DEST */
LOCAL_EXTERN_PREFIX
void
-ACE_TSS_CLEANUP_NAME (void *ptr)
+ACE_TSS_cleanup (void *ptr)
{
#if !defined(ACE_USE_ONE_SHOT_AT_THREAD_EXIT)
// Delegate to thr_desc if this not has terminated
@@ -309,7 +307,7 @@ ACE_Log_Msg::instance (void)
{
ACE_NO_HEAP_CHECK;
if (ACE_Thread::keycreate (log_msg_tss_key (),
- &ACE_TSS_CLEANUP_NAME) != 0)
+ &ACE_TSS_cleanup) != 0)
{
if (1 == ACE_OS_Object_Manager::starting_up())
//This function is called before ACE_OS_Object_Manager is
@@ -493,32 +491,6 @@ ACE_Log_Msg::close (void)
// already deleted by ACE_TSS_Cleanup::exit (), so we
// don't want to access it again.
key_created_ = 0;
-#ifdef ACE_HAS_BROKEN_THREAD_KEYFREE
- // for some systems, e.g. LynxOS, we need to ensure that
- // any registered thread destructor action for this thread
- // is disabled. Otherwise in the event of a dynamic library
- // unload of libACE, by a program not linked with libACE,
- // ACE_TSS_cleanup will be invoked after libACE has been unloaded.
-
- ACE_Log_Msg *tss_log_msg = 0;
-
- // Get the tss_log_msg from thread-specific storage.
- if ( ACE_Thread::getspecific (*(log_msg_tss_key ()),
- ACE_reinterpret_cast (void **, &tss_log_msg)) != -1
- && tss_log_msg)
- {
- // we haven't been cleaned up
- ACE_TSS_cleanup(tss_log_msg);
-
- if ( ACE_Thread::setspecific( (*log_msg_tss_key()),
- (void *)NULL ) != 0 )
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%P|%t) ACE_Log_Msg::close failed to ACE_Thread::setspecific to NULL\n")));
- }
-
- }
-#endif /* ACE_HAS_BROKEN_THREAD_KEYFREE */
}
ACE_OS::thread_mutex_unlock (lock);
@@ -655,7 +627,6 @@ ACE_Log_Msg::ACE_Log_Msg (void)
: status_ (0),
errnum_ (0),
linenum_ (0),
- msg_ (0),
restart_ (1), // Restart by default...
ostream_ (0),
msg_callback_ (0),
@@ -695,8 +666,6 @@ ACE_Log_Msg::ACE_Log_Msg (void)
this->timestamp_ = 2;
}
}
-
- ACE_NEW_NORETURN (this->msg_, ACE_TCHAR[ACE_MAXLOGMSGLEN+1]);
}
ACE_Log_Msg::~ACE_Log_Msg (void)
@@ -765,8 +734,6 @@ ACE_Log_Msg::~ACE_Log_Msg (void)
ostream_ = 0;
}
#endif
-
- delete[] this->msg_;
}
// Open the sender-side of the message queue.
@@ -929,8 +896,8 @@ ACE_Log_Msg::open (const ACE_TCHAR *prog_name,
* 'X': print as a hex number
* 'w': print a wide character
* 'W': print out a wide character string.
- * 'z': print an ACE_OS::WChar character
- * 'Z': print an ACE_OS::WChar character string
+ * 'z': print an wchar_t character
+ * 'Z': print an wchar_t character string
* '%': format a single percent sign, '%'
*/
ssize_t
@@ -952,7 +919,6 @@ ACE_Log_Msg::log (ACE_Log_Priority log_priority,
return result;
}
-#if defined (ACE_HAS_WCHAR)
/**
* Since this is the ANTI_TCHAR version, we need to convert
* the format string over.
@@ -968,14 +934,13 @@ ACE_Log_Msg::log (ACE_Log_Priority log_priority,
va_start (argp, format_str);
- ssize_t result = this->log (ACE_TEXT_ANTI_TO_TCHAR (format_str),
+ ssize_t result = this->log (ACE_TEXT_TO_TCHAR_IN (format_str),
log_priority,
argp);
va_end (argp);
return result;
}
-#endif /* ACE_HAS_WCHAR */
ssize_t
ACE_Log_Msg::log (const ACE_TCHAR *format_str,
@@ -1210,12 +1175,12 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
if (can_check)
this_len = ACE_OS::snprintf (bp, bspace, format,
this->file () ?
- ACE_TEXT_CHAR_TO_TCHAR (this->file ())
+ ACE_TEXT_TO_TCHAR_IN (this->file ())
: ACE_LIB_TEXT ("<unknown file>"));
else
this_len = ACE_OS::sprintf (bp, format,
this->file () ?
- ACE_TEXT_CHAR_TO_TCHAR (this->file ())
+ ACE_TEXT_TO_TCHAR_IN (this->file ())
: ACE_LIB_TEXT ("<unknown file>"));
ACE_UPDATE_COUNT (bspace, this_len);
break;
@@ -1271,11 +1236,11 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
if (can_check)
this_len = ACE_OS::snprintf
(bp, bspace, format, va_arg (argp, ACE_TCHAR *),
- ACE_TEXT_CHAR_TO_TCHAR (msg));
+ ACE_TEXT_TO_TCHAR_IN (msg));
else
this_len = ACE_OS::sprintf
(bp, format, va_arg (argp, ACE_TCHAR *),
- ACE_TEXT_CHAR_TO_TCHAR (msg));
+ ACE_TEXT_TO_TCHAR_IN (msg));
#if defined (ACE_WIN32)
}
else
@@ -1379,10 +1344,10 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
#endif
if (can_check)
this_len = ACE_OS::snprintf
- (bp, bspace, format, ACE_TEXT_CHAR_TO_TCHAR (msg));
+ (bp, bspace, format, ACE_TEXT_TO_TCHAR_IN (msg));
else
this_len = ACE_OS::sprintf
- (bp, format, ACE_TEXT_CHAR_TO_TCHAR (msg));
+ (bp, format, ACE_TEXT_TO_TCHAR_IN (msg));
#if defined (ACE_WIN32)
}
else
@@ -1685,69 +1650,68 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
#if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
wchar_t *str = va_arg (argp, wchar_t *);
ACE_OS::strcpy (fp, ACE_LIB_TEXT ("ls"));
+ if (can_check)
+ this_len = ACE_OS::snprintf
+ (bp, bspace, format, str ? str : ACE_LIB_TEXT ("(null)"));
+ else
+ this_len = ACE_OS::sprintf
+ (bp, format, str ? str : ACE_LIB_TEXT ("(null)"));
#else /* ACE_WIN32 && ACE_USES_WCHAR */
ACE_TCHAR *str = va_arg (argp, ACE_TCHAR *);
ACE_OS::strcpy (fp, ACE_LIB_TEXT ("s"));
-#endif /* ACE_WIN32 && ACE_USES_WCHAR */
if (can_check)
this_len = ACE_OS::snprintf
(bp, bspace, format, str ? str : ACE_LIB_TEXT ("(null)"));
else
this_len = ACE_OS::sprintf
(bp, format, str ? str : ACE_LIB_TEXT ("(null)"));
+#endif /* ACE_WIN32 && ACE_USES_WCHAR */
ACE_UPDATE_COUNT (bspace, this_len);
}
break;
case 'C': // Char string, Unicode for Win32/WCHAR
- {
- ACE_TCHAR *cstr = va_arg (argp, ACE_TCHAR *);
#if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
- ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
+ ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
#else /* ACE_WIN32 && ACE_USES_WCHAR */
- ACE_OS::strcpy (fp, ACE_LIB_TEXT ("s"));
+ ACE_OS::strcpy (fp, ACE_LIB_TEXT ("s"));
#endif /* ACE_WIN32 && ACE_USES_WCHAR */
- if (can_check)
- this_len = ACE_OS::snprintf
- (bp, bspace, format, cstr ? cstr : ACE_LIB_TEXT ("(null)"));
- else
- this_len = ACE_OS::sprintf
- (bp, format, cstr ? cstr : ACE_LIB_TEXT ("(null)"));
- ACE_UPDATE_COUNT (bspace, this_len);
- }
+ if (can_check)
+ this_len = ACE_OS::snprintf
+ (bp, bspace, format, va_arg (argp, ACE_TCHAR *));
+ else
+ this_len = ACE_OS::sprintf
+ (bp, format, va_arg (argp, ACE_TCHAR *));
+ ACE_UPDATE_COUNT (bspace, this_len);
break;
case 'W':
- {
#if defined (ACE_WIN32)
- ACE_TCHAR *wstr = va_arg (argp, ACE_TCHAR *);
# if defined (ACE_USES_WCHAR)
- ACE_OS::strcpy (fp, ACE_LIB_TEXT ("s"));
+ ACE_OS::strcpy (fp, ACE_LIB_TEXT ("s"));
# else /* ACE_USES_WCHAR */
- ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
+ ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
# endif /* ACE_USES_WCHAR */
- if (can_check)
- this_len = ACE_OS::snprintf
- (bp, bspace, format, wstr ? wstr : ACE_LIB_TEXT ("(null)"));
- else
- this_len = ACE_OS::sprintf
- (bp, format, wstr ? wstr : ACE_LIB_TEXT ("(null)"));
-#elif defined (ACE_HAS_WCHAR)
- wchar_t *wchar_str = va_arg (argp, wchar_t *);
+ if (can_check)
+ this_len = ACE_OS::snprintf
+ (bp, bspace, format, va_arg (argp, ACE_TCHAR *));
+ else
+ this_len = ACE_OS::sprintf
+ (bp, format, va_arg (argp, ACE_TCHAR *));
+#else
# if defined (HPUX)
- ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
+ ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
# else
- ACE_OS::strcpy (fp, ACE_LIB_TEXT ("ls"));
+ ACE_OS::strcpy (fp, ACE_LIB_TEXT ("ls"));
# endif /* HPUX */
- if (can_check)
- this_len = ACE_OS::snprintf
- (bp, bspace, format, wchar_str);
- else
- this_len = ACE_OS::sprintf
- (bp, format, wchar_str);
-#endif /* ACE_WIN32 / ACE_HAS_WCHAR */
- ACE_UPDATE_COUNT (bspace, this_len);
- }
+ if (can_check)
+ this_len = ACE_OS::snprintf
+ (bp, bspace, format, va_arg (argp, wchar_t *));
+ else
+ this_len = ACE_OS::sprintf
+ (bp, format, va_arg (argp, wchar_t *));
+#endif /* ACE_WIN32 */
+ ACE_UPDATE_COUNT (bspace, this_len);
break;
case 'w': // Wide character
@@ -1787,7 +1751,7 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
ACE_UPDATE_COUNT (bspace, this_len);
break;
- case 'z': // ACE_OS::WChar character
+ case 'z': // wchar_t character
{
// On some platforms sizeof (wchar_t) can be 2
// on the others 4 ...
@@ -1816,14 +1780,14 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
break;
}
- case 'Z': // ACE_OS::WChar character string
+ case 'Z': // wchar_t character string
{
- ACE_OS::WChar *wchar_str = va_arg (argp, ACE_OS::WChar*);
+ wchar_t *wchar_str = va_arg (argp, wchar_t*);
if (wchar_str == 0)
break;
wchar_t *wchar_t_str = 0;
- if (sizeof (ACE_OS::WChar) != sizeof (wchar_t))
+ if (sizeof (wchar_t) != sizeof (wchar_t))
{
size_t len = ACE_OS::wslen (wchar_str) + 1;
ACE_NEW_NORETURN(wchar_t_str, wchar_t[len]);
@@ -1846,19 +1810,19 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
# else /* ACE_USES_WCHAR */
ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
# endif /* ACE_USES_WCHAR */
-#elif defined (ACE_HAS_WCHAR)
+#else
# if defined (HPUX)
ACE_OS::strcpy (fp, ACE_LIB_TEXT ("S"));
# else
ACE_OS::strcpy (fp, ACE_LIB_TEXT ("ls"));
# endif /* HPUX */
-#endif /* ACE_WIN32 / ACE_HAS_WCHAR */
+#endif /* ACE_WIN32 */
if (can_check)
this_len = ACE_OS::snprintf
(bp, bspace, format, wchar_t_str);
else
this_len = ACE_OS::sprintf (bp, format, wchar_t_str);
- if(sizeof(ACE_OS::WChar) != sizeof(wchar_t))
+ if(sizeof(wchar_t) != sizeof(wchar_t))
{
delete wchar_t_str;
}
@@ -2004,7 +1968,7 @@ ACE_Log_Msg::log (const ACE_TCHAR *format_str,
// Check that memory was not corrupted, if it corrupted we can't log anything
// anymore because all our members could be corrupted.
- if (bp >= (this->msg_ + ACE_MAXLOGMSGLEN+1))
+ if (bp >= this->msg_ + sizeof this->msg_)
{
abort_prog = 1;
ACE_OS::fprintf (stderr,
@@ -2190,12 +2154,11 @@ ACE_Log_Msg::log_hexdump (ACE_Log_Priority log_priority,
if (this->log_priority_enabled (log_priority) == 0)
return 0;
- ACE_TCHAR* buf = 0;
- const size_t buf_sz =
- ACE_Log_Record::MAXLOGMSGLEN - ACE_Log_Record::VERBOSE_LEN - 58;
- ACE_NEW_RETURN (buf, ACE_TCHAR[buf_sz], -1);
+ ACE_TCHAR buf[ACE_Log_Record::MAXLOGMSGLEN -
+ ACE_Log_Record::VERBOSE_LEN - 58];
+ // 58 for the HEXDUMP header;
- ACE_TCHAR *msg_buf = 0;
+ ACE_TCHAR *msg_buf;
const size_t text_sz = text ? ACE_OS::strlen(text) : 0;
ACE_NEW_RETURN (msg_buf,
ACE_TCHAR[text_sz + 58],
@@ -2204,7 +2167,7 @@ ACE_Log_Msg::log_hexdump (ACE_Log_Priority log_priority,
buf[0] = 0; // in case size = 0
const size_t len = ACE::format_hexdump
- (buffer, size, buf, buf_sz / sizeof (ACE_TCHAR) - text_sz);
+ (buffer, size, buf, sizeof (buf) / sizeof (ACE_TCHAR) - text_sz);
int sz = 0;
@@ -2484,7 +2447,7 @@ void
ACE_Log_Msg::msg (const ACE_TCHAR *m)
{
ACE_OS::strsncpy (this->msg_, m,
- ((ACE_MAXLOGMSGLEN+1) / sizeof (ACE_TCHAR)));
+ (sizeof this->msg_ / sizeof (ACE_TCHAR)));
}
ACE_Log_Msg_Callback *
@@ -2591,7 +2554,6 @@ ACE_Log_Msg::log_priority_enabled (ACE_Log_Priority log_priority,
return this->log_priority_enabled (log_priority);
}
-#if defined (ACE_USES_WCHAR)
int
ACE_Log_Msg::log_priority_enabled (ACE_Log_Priority log_priority,
const wchar_t *,
@@ -2599,7 +2561,6 @@ ACE_Log_Msg::log_priority_enabled (ACE_Log_Priority log_priority,
{
return this->log_priority_enabled (log_priority);
}
-#endif /* ACE_USES_WCHAR */
// ****************************************************************
@@ -2686,5 +2647,3 @@ ACE_Log_Msg::inherit_hook (ACE_OS_Thread_Descriptor *thr_desc,
# endif /* ACE_PSOS */
#endif /* ! ACE_THREADS_DONT_INHERIT_LOG_MSG && ! ACE_HAS_MINIMAL_ACE_OS */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Log_Msg.h b/ace/Log_Msg.h
index 0a9b9be3f9f..9d4b878d375 100644
--- a/ace/Log_Msg.h
+++ b/ace/Log_Msg.h
@@ -25,9 +25,20 @@
#include "ace/Log_Priority.h"
#include "ace/os_include/os_limits.h"
-// The ACE_ASSERT macro used to be defined here, include ace/Assert.h
-// for backwards compatibility.
-#include "ace/Assert.h"
+// The following ASSERT macro is courtesy of Alexandre Karev
+// <akg@na47sun05.cern.ch>.
+#if defined (ACE_NDEBUG)
+#define ACE_ASSERT(x)
+#elif !defined (ACE_ASSERT)
+#define ACE_ASSERT(X) \
+ do { if(!(X)) { \
+ int __ace_error = ACE_Log_Msg::last_error_adapter (); \
+ ACE_Log_Msg *ace___ = ACE_Log_Msg::instance (); \
+ ace___->set (__FILE__, __LINE__, -1, __ace_error, ace___->restart (), \
+ ace___->msg_ostream (), ace___->msg_callback ()); \
+ ace___->log (LM_ERROR, ACE_LIB_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), ACE_TEXT_TO_TCHAR_IN (#X), -1); \
+ } } while (0)
+#endif /* ACE_NDEBUG */
#if defined (ACE_NLOGGING)
#define ACE_HEX_DUMP(X) do {} while (0)
@@ -102,8 +113,6 @@
# undef THREAD
#endif /* THREAD */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Log_Msg_Callback;
class ACE_Log_Msg_Backend;
@@ -338,7 +347,7 @@ public:
* allow "chaining". Note that as opposed to ACE_Log_Msg_Callback,
* ACE_Log_Msg_Backend is a per-process entity.
*
- * @note Be aware that because of the current architecture there is
+ * Note: Be aware that because of the current architecture there is
* no guarantee that open (), reset () and close () will be called
* on a backend object.
*
@@ -379,19 +388,19 @@ public:
// because the *semantics* have changed (the objects are no longer
// TSS).
/// Get TSS exception action.
- /// @note The action is no longer TSS, they are global!
+ /// NOTE: The action is no longer TSS, they are global!
ACE_SEH_EXCEPT_HANDLER seh_except_selector (void);
/// Set TSS exception action.
- /// @note The action is no longer TSS, they are global!
+ /// NOTE: The action is no longer TSS, they are global!
ACE_SEH_EXCEPT_HANDLER seh_except_selector (ACE_SEH_EXCEPT_HANDLER);
/// Get TSS exception handler.
- /// @note The handler is no longer TSS, they are global!
+ /// NOTE: The handler is no longer TSS, they are global!
ACE_SEH_EXCEPT_HANDLER seh_except_handler (void);
/// Set TSS exception handler.
- /// @note The handler is no longer TSS, they are global!
+ /// NOTE: The handler is no longer TSS, they are global!
ACE_SEH_EXCEPT_HANDLER seh_except_handler (ACE_SEH_EXCEPT_HANDLER);
#endif /* ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS && ACE_LEGACY_MODE */
@@ -425,7 +434,6 @@ public:
const char *,
...);
-#if defined (ACE_USES_WCHAR)
// We are not using ACE_TCHAR for this since ACE_HEX_DUMP
// doesn't take in a ACE_TCHAR. log_hexdump takes in a char
// string, so this must be able to take in a char string even
@@ -434,7 +442,6 @@ public:
int log_priority_enabled (ACE_Log_Priority log_priority,
const wchar_t *,
...);
-#endif /* ACE_USES_WCHAR */
/// Optimize reading of the pid (avoids a system call if the value is
/// cached...).
@@ -504,15 +511,13 @@ public:
* - 'W': print a wide character string
* - 'x': print as a hex number
* - 'X': print as a hex number
- * - 'z': print an ACE_OS::WChar character
- * - 'Z': print an ACE_OS::WChar character string
+ * - 'z': print an wchar_t character
+ * - 'Z': print an wchar_t character string
* - '%': print out a single percent sign, '%'
*/
- ssize_t log (ACE_Log_Priority priority, const ACE_TCHAR *format, ...);
+ ssize_t log (ACE_Log_Priority priority, const char *format, ...);
-#if defined (ACE_HAS_WCHAR)
- ssize_t log (ACE_Log_Priority priority, const ACE_ANTI_TCHAR *format, ...);
-#endif /* ACE_HAS_WCHAR */
+ ssize_t log (ACE_Log_Priority priority, const wchar_t *format, ...);
/**
* An alternative logging mechanism that makes it possible to
@@ -580,7 +585,7 @@ private:
/// The log message, which resides in thread-specific storage. Note
/// that only the current log message is stored here -- it will be
/// overwritten by the subsequent call to log().
- ACE_TCHAR* msg_; // Add one for NUL-terminator.
+ ACE_TCHAR msg_[ACE_MAXLOGMSGLEN + 1]; // Add one for NUL-terminator.
/// Indicates whether we should restart system calls that are
/// interrupted.
@@ -692,8 +697,6 @@ private:
ACE_Log_Msg (const ACE_Log_Msg &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
# if defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || \
defined (ACE_HAS_TSS_EMULATION)
@@ -703,25 +706,9 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# else
# define LOCAL_EXTERN_PREFIX
# endif /* ACE_HAS_THR_C_DEST */
-
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define ACE_TSS_CLEANUP_NAME ACE_PREPROC_CONCATENATE(ACE_,ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _TSS_cleanup))
-
-#else
-
-# define ACE_TSS_CLEANUP_NAME ACE_TSS_cleanup
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
LOCAL_EXTERN_PREFIX
void
-ACE_TSS_CLEANUP_NAME (void *ptr);
+ACE_TSS_cleanup (void *ptr);
# endif /* ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION */
#endif /* ACE_MT_SAFE */
diff --git a/ace/Log_Msg_Backend.cpp b/ace/Log_Msg_Backend.cpp
index de9b9c22b7b..8e4ae6208f3 100644
--- a/ace/Log_Msg_Backend.cpp
+++ b/ace/Log_Msg_Backend.cpp
@@ -4,11 +4,6 @@
ACE_RCSID(ace, Log_Msg_Backend, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Log_Msg_Backend::~ACE_Log_Msg_Backend (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Log_Msg_Backend.h b/ace/Log_Msg_Backend.h
index 6203287011d..50392cd92cf 100644
--- a/ace/Log_Msg_Backend.h
+++ b/ace/Log_Msg_Backend.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Log_Record;
/**
@@ -62,7 +60,5 @@ public:
virtual int log (ACE_Log_Record &log_record) = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_LOG_MSG_BACKEND_H */
diff --git a/ace/Log_Msg_Callback.cpp b/ace/Log_Msg_Callback.cpp
index 2fcf5206dd1..c2ab8da127c 100644
--- a/ace/Log_Msg_Callback.cpp
+++ b/ace/Log_Msg_Callback.cpp
@@ -4,10 +4,6 @@
ACE_RCSID(ace, Log_Msg_Callback, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Log_Msg_Callback::~ACE_Log_Msg_Callback (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Log_Msg_Callback.h b/ace/Log_Msg_Callback.h
index 2d3af46a1b3..4de1b85bb8a 100644
--- a/ace/Log_Msg_Callback.h
+++ b/ace/Log_Msg_Callback.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Log_Record;
/**
@@ -49,7 +47,7 @@ class ACE_Log_Record;
* is spawned because it might have been allocated off of the
* stack of the original thread, in which case all hell would
* break loose... Therefore, you'll need to reset these in each
- * new thread.
+ * new thread.
*/
class ACE_Export ACE_Log_Msg_Callback
{
@@ -63,7 +61,5 @@ public:
virtual void log (ACE_Log_Record &log_record) = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_LOG_MSG_CALLBACK_H */
diff --git a/ace/Log_Msg_IPC.cpp b/ace/Log_Msg_IPC.cpp
index e6da947d80e..aa410e3150d 100644
--- a/ace/Log_Msg_IPC.cpp
+++ b/ace/Log_Msg_IPC.cpp
@@ -5,8 +5,6 @@
ACE_RCSID(ace, Log_Msg_IPC, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Log_Msg_IPC::ACE_Log_Msg_IPC (void)
{
}
@@ -70,5 +68,3 @@ ACE_Log_Msg_IPC::log (ACE_Log_Record &log_record)
log_record.length ());
#endif /* ACE_HAS_STREAM_PIPES */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Log_Msg_IPC.h b/ace/Log_Msg_IPC.h
index 2b05c02de02..fa7f90ba59f 100644
--- a/ace/Log_Msg_IPC.h
+++ b/ace/Log_Msg_IPC.h
@@ -25,22 +25,16 @@
// problems it can't be...
#if defined (ACE_HAS_STREAM_PIPES)
# include "ace/SPIPE_Connector.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_SPIPE_Stream ACE_LOG_MSG_IPC_STREAM;
typedef ACE_SPIPE_Connector ACE_LOG_MSG_IPC_CONNECTOR;
typedef ACE_SPIPE_Addr ACE_LOG_MSG_IPC_ADDR;
-ACE_END_VERSIONED_NAMESPACE_DECL
#else
# include "ace/SOCK_Connector.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_SOCK_Stream ACE_LOG_MSG_IPC_STREAM;
typedef ACE_SOCK_Connector ACE_LOG_MSG_IPC_CONNECTOR;
typedef ACE_INET_Addr ACE_LOG_MSG_IPC_ADDR;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_STREAM_PIPES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Defines the interfaces for ACE_Log_Msg backend.
/**
* Implement an ACE_Log_Msg_Backend that logs to a remote logging
@@ -65,7 +59,5 @@ private:
ACE_LOG_MSG_IPC_STREAM message_queue_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_LOG_MSG_H */
diff --git a/ace/Log_Msg_NT_Event_Log.cpp b/ace/Log_Msg_NT_Event_Log.cpp
index 8053624283c..1d51bbad03b 100644
--- a/ace/Log_Msg_NT_Event_Log.cpp
+++ b/ace/Log_Msg_NT_Event_Log.cpp
@@ -12,8 +12,6 @@
ACE_RCSID(ace, Log_Msg_NT_Event_Log, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Log_Msg_NT_Event_Log::ACE_Log_Msg_NT_Event_Log (void)
: evlog_handle_(0)
{
@@ -155,6 +153,4 @@ ACE_Log_Msg_NT_Event_Log::log (ACE_Log_Record &log_record)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_LOG_MSG_NT_EVENT_LOG */
diff --git a/ace/Log_Msg_NT_Event_Log.h b/ace/Log_Msg_NT_Event_Log.h
index 3edc049aea3..f4c975011f8 100644
--- a/ace/Log_Msg_NT_Event_Log.h
+++ b/ace/Log_Msg_NT_Event_Log.h
@@ -24,8 +24,6 @@
#include "ace/Log_Msg_Backend.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Log_Msg_NT_Event_Log
*
@@ -64,8 +62,6 @@ private:
HANDLE evlog_handle_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_LOG_MSG_NT_EVENT_LOG */
#include /**/ "ace/post.h"
diff --git a/ace/Log_Msg_UNIX_Syslog.cpp b/ace/Log_Msg_UNIX_Syslog.cpp
index 23b90ef3c34..4a685231f32 100644
--- a/ace/Log_Msg_UNIX_Syslog.cpp
+++ b/ace/Log_Msg_UNIX_Syslog.cpp
@@ -11,8 +11,6 @@
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_syslog.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// NOTE:
// The ACE_Log_Msg_UNIX_Syslog class can use the openlog(),
// setlogmask(), syslog() and closelog() routines in a thread safe
@@ -43,15 +41,10 @@ ACE_Log_Msg_UNIX_Syslog::open (const ACE_TCHAR * logger_key)
// options LOG_CONS and LOG_PID to be set. There really should be a
// logging strategy option to control the syslog log options,
// however, we'll take the easy way out for now.
-#if defined (ACE_USES_WCHAR)
- openlog (ACE_TEXT_ALWAYS_CHAR (logger_key),
- LOG_CONS|LOG_PID,
- ACE_DEFAULT_SYSLOG_FACILITY);
-#else
- openlog (const_cast<char *> (logger_key),
+ // const_cast?
+ ::openlog (const_cast<char *>(ACE_TEXT_TO_CHAR_IN(logger_key)),
LOG_CONS|LOG_PID,
ACE_DEFAULT_SYSLOG_FACILITY);
-#endif /* ACE_USES_WCHAR */
// Enable logging of all syslog priorities. If logging of all
// priorities is not desired, use the ACE_Log_Msg::priority_mask()
@@ -117,12 +110,12 @@ ACE_Log_Msg_UNIX_Syslog::log (ACE_Log_Record &log_record)
ACE_Log_Record::priority_name(ACE_Log_Priority(log_record.type()));
syslog (syslog_priority,
"%s: %s: %s",
- ACE_TEXT_ALWAYS_CHAR (date_and_time),
- ACE_TEXT_ALWAYS_CHAR (prio_name),
- ACE_TEXT_ALWAYS_CHAR (line));
+ ACE_TEXT_TO_CHAR_IN (date_and_time),
+ ACE_TEXT_TO_CHAR_IN (prio_name),
+ ACE_TEXT_TO_CHAR_IN (line));
}
else // No formatting required.
- syslog (syslog_priority, "%s", ACE_TEXT_ALWAYS_CHAR (line));
+ syslog (syslog_priority, "%s", ACE_TEXT_TO_CHAR_IN (line));
}
return 0;
@@ -202,6 +195,4 @@ ACE_Log_Msg_UNIX_Syslog::convert_log_mask (int lm_mask)
return syslog_mask;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* !ACE_LACKS_UNIX_SYSLOG */
+#endif /* !defined (ACE_LACKS_UNIX_SYSLOG) */
diff --git a/ace/Log_Msg_UNIX_Syslog.h b/ace/Log_Msg_UNIX_Syslog.h
index 0031e043431..78ed77bfcd4 100644
--- a/ace/Log_Msg_UNIX_Syslog.h
+++ b/ace/Log_Msg_UNIX_Syslog.h
@@ -24,8 +24,6 @@
#include "ace/Log_Msg_Backend.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Log_Msg_UNIX_Syslog
*
@@ -68,8 +66,6 @@ private:
int convert_log_mask (int lm_mask);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_LACKS_UNIX_SYSLOG */
#include /**/ "ace/post.h"
diff --git a/ace/Log_Priority.h b/ace/Log_Priority.h
index c1084bbeee5..d648dff381b 100644
--- a/ace/Log_Priority.h
+++ b/ace/Log_Priority.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -12,23 +12,16 @@
#ifndef ACE_LOG_PRIORITY_H
#define ACE_LOG_PRIORITY_H
-
#include /**/ "ace/pre.h"
-#include "ace/config-lite.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
- * @enum ACE_Log_Priority
- *
* @brief This data type indicates the relative priorities of the
- * logging messages, from lowest to highest priority.
+ * logging messages, from lowest to highest priority.
*
* These values are defined using powers of two so that it's
* possible to form a mask to turn them on or off dynamically.
* We only use 12 bits, however, so users are free to use the
- * remaining 19 bits to define their own priority masks.
+ * remaining 19 bits to define their own priority masks.
*/
enum ACE_Log_Priority
{
@@ -79,7 +72,5 @@ enum ACE_Log_Priority
LM_ENSURE_32_BITS = 0x7FFFFFFF
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_LOG_PRIORITY_H */
diff --git a/ace/Log_Record.cpp b/ace/Log_Record.cpp
index 3239252a00e..11b24b7b8d2 100644
--- a/ace/Log_Record.cpp
+++ b/ace/Log_Record.cpp
@@ -16,58 +16,50 @@
# include "ace/streams.h"
#endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-#include "ace/OS_Memory.h"
-
ACE_RCSID(ace, Log_Record, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Log_Record)
-namespace
+const ACE_TCHAR *ACE_Log_Record::priority_names_[] =
{
- // Symbolic names for the <ACE_Log_Priority> enumerators.
- ACE_TCHAR const * ace_priority_names[] =
- {
- ACE_LIB_TEXT ("LM_SHUTDOWN"),
- ACE_LIB_TEXT ("LM_TRACE"),
- ACE_LIB_TEXT ("LM_DEBUG"),
- ACE_LIB_TEXT ("LM_INFO"),
- ACE_LIB_TEXT ("LM_NOTICE"),
- ACE_LIB_TEXT ("LM_WARNING"),
- ACE_LIB_TEXT ("LM_STARTUP"),
- ACE_LIB_TEXT ("LM_ERROR"),
- ACE_LIB_TEXT ("LM_CRITICAL"),
- ACE_LIB_TEXT ("LM_ALERT"),
- ACE_LIB_TEXT ("LM_EMERGENCY"),
- ACE_LIB_TEXT ("LM_UNK(04000)"),
- ACE_LIB_TEXT ("LM_UNK(010000)"),
- ACE_LIB_TEXT ("LM_UNK(020000)"),
- ACE_LIB_TEXT ("LM_UNK(040000)"),
- ACE_LIB_TEXT ("LM_UNK(0100000)"),
- ACE_LIB_TEXT ("LM_UNK(0200000)"),
- ACE_LIB_TEXT ("LM_UNK(0400000)"),
- ACE_LIB_TEXT ("LM_UNK(01000000)"),
- ACE_LIB_TEXT ("LM_UNK(02000000)"),
- ACE_LIB_TEXT ("LM_UNK(04000000)"),
- ACE_LIB_TEXT ("LM_UNK(010000000)"),
- ACE_LIB_TEXT ("LM_UNK(020000000)"),
- ACE_LIB_TEXT ("LM_UNK(040000000)"),
- ACE_LIB_TEXT ("LM_UNK(0100000000)"),
- ACE_LIB_TEXT ("LM_UNK(0200000000)"),
- ACE_LIB_TEXT ("LM_UNK(0400000000)"),
- ACE_LIB_TEXT ("LM_UNK(01000000000)"),
- ACE_LIB_TEXT ("LM_UNK(02000000000)"),
- ACE_LIB_TEXT ("LM_UNK(04000000000)"),
- ACE_LIB_TEXT ("LM_UNK(010000000000)"),
- ACE_LIB_TEXT ("LM_UNK(020000000000)")
- };
-}
+ ACE_LIB_TEXT ("LM_SHUTDOWN"),
+ ACE_LIB_TEXT ("LM_TRACE"),
+ ACE_LIB_TEXT ("LM_DEBUG"),
+ ACE_LIB_TEXT ("LM_INFO"),
+ ACE_LIB_TEXT ("LM_NOTICE"),
+ ACE_LIB_TEXT ("LM_WARNING"),
+ ACE_LIB_TEXT ("LM_STARTUP"),
+ ACE_LIB_TEXT ("LM_ERROR"),
+ ACE_LIB_TEXT ("LM_CRITICAL"),
+ ACE_LIB_TEXT ("LM_ALERT"),
+ ACE_LIB_TEXT ("LM_EMERGENCY"),
+ ACE_LIB_TEXT ("LM_UNK(04000)"),
+ ACE_LIB_TEXT ("LM_UNK(010000)"),
+ ACE_LIB_TEXT ("LM_UNK(020000)"),
+ ACE_LIB_TEXT ("LM_UNK(040000)"),
+ ACE_LIB_TEXT ("LM_UNK(0100000)"),
+ ACE_LIB_TEXT ("LM_UNK(0200000)"),
+ ACE_LIB_TEXT ("LM_UNK(0400000)"),
+ ACE_LIB_TEXT ("LM_UNK(01000000)"),
+ ACE_LIB_TEXT ("LM_UNK(02000000)"),
+ ACE_LIB_TEXT ("LM_UNK(04000000)"),
+ ACE_LIB_TEXT ("LM_UNK(010000000)"),
+ ACE_LIB_TEXT ("LM_UNK(020000000)"),
+ ACE_LIB_TEXT ("LM_UNK(040000000)"),
+ ACE_LIB_TEXT ("LM_UNK(0100000000)"),
+ ACE_LIB_TEXT ("LM_UNK(0200000000)"),
+ ACE_LIB_TEXT ("LM_UNK(0400000000)"),
+ ACE_LIB_TEXT ("LM_UNK(01000000000)"),
+ ACE_LIB_TEXT ("LM_UNK(02000000000)"),
+ ACE_LIB_TEXT ("LM_UNK(04000000000)"),
+ ACE_LIB_TEXT ("LM_UNK(010000000000)"),
+ ACE_LIB_TEXT ("LM_UNK(020000000000)")
+};
const ACE_TCHAR *
ACE_Log_Record::priority_name (ACE_Log_Priority p)
{
- return ace_priority_names[ACE::log2 (p)];
+ return ACE_Log_Record::priority_names_[ACE::log2 (p)];
}
void
@@ -75,7 +67,7 @@ ACE_Log_Record::priority_name (ACE_Log_Priority p,
const ACE_TCHAR *name)
{
// Name must be a statically allocated string
- ace_priority_names[ACE::log2 (p)] = name;
+ ACE_Log_Record::priority_names_[ACE::log2 (p)] = name;
}
u_long
@@ -120,7 +112,7 @@ ACE_Log_Record::msg_data (const ACE_TCHAR *data)
{
// ACE_TRACE ("ACE_Log_Record::msg_data");
ACE_OS::strsncpy (this->msg_data_, data,
- (MAXLOGMSGLEN / sizeof (ACE_TCHAR)));
+ (sizeof this->msg_data_ / sizeof (ACE_TCHAR)));
this->round_up ();
}
@@ -134,7 +126,6 @@ ACE_Log_Record::ACE_Log_Record (ACE_Log_Priority lp,
pid_ (ACE_UINT32 (p))
{
// ACE_TRACE ("ACE_Log_Record::ACE_Log_Record");
- ACE_NEW_NORETURN (this->msg_data_, ACE_TCHAR[MAXLOGMSGLEN]);
}
ACE_Log_Record::ACE_Log_Record (ACE_Log_Priority lp,
@@ -147,7 +138,6 @@ ACE_Log_Record::ACE_Log_Record (ACE_Log_Priority lp,
pid_ (ACE_UINT32 (p))
{
// ACE_TRACE ("ACE_Log_Record::ACE_Log_Record");
- ACE_NEW_NORETURN (this->msg_data_, ACE_TCHAR[MAXLOGMSGLEN]);
}
void
@@ -155,7 +145,7 @@ ACE_Log_Record::round_up (void)
{
// ACE_TRACE ("ACE_Log_Record::round_up");
// Determine the length of the payload.
- size_t len = (sizeof (*this) - MAXLOGMSGLEN)
+ size_t len = (sizeof (*this) - sizeof (this->msg_data_))
+ (sizeof (ACE_TCHAR) * ((ACE_OS::strlen (this->msg_data_) + 1)));
// Round up to the alignment.
@@ -172,7 +162,6 @@ ACE_Log_Record::ACE_Log_Record (void)
pid_ (0)
{
// ACE_TRACE ("ACE_Log_Record::ACE_Log_Record");
- ACE_NEW_NORETURN (this->msg_data_, ACE_TCHAR[MAXLOGMSGLEN]);
}
int
@@ -201,7 +190,7 @@ ACE_Log_Record::format_msg (const ACE_TCHAR host_name[],
|| ACE_BIT_ENABLED (verbose_flag,
ACE_Log_Msg::VERBOSE_LITE))
{
- time_t const now = this->secs_;
+ time_t now = this->secs_;
ACE_TCHAR ctp[26]; // 26 is a magic number...
if (ACE_OS::ctime_r (&now, ctp, sizeof ctp) == 0)
@@ -256,9 +245,7 @@ ACE_Log_Record::print (const ACE_TCHAR host_name[],
u_long verbose_flag,
FILE *fp)
{
- ACE_TCHAR* verbose_msg = 0;
- ACE_NEW_RETURN (verbose_msg,ACE_TCHAR[MAXVERBOSELOGMSGLEN], -1);
-
+ ACE_TCHAR verbose_msg [MAXVERBOSELOGMSGLEN];
int result = this->format_msg (host_name,
verbose_flag,
verbose_msg);
@@ -279,8 +266,6 @@ ACE_Log_Record::print (const ACE_TCHAR host_name[],
}
}
- delete[] verbose_msg;
-
return result;
}
@@ -291,23 +276,17 @@ ACE_Log_Record::print (const ACE_TCHAR host_name[],
u_long verbose_flag,
ACE_OSTREAM_TYPE &s)
{
- ACE_TCHAR* verbose_msg = 0;
- ACE_NEW_RETURN (verbose_msg,ACE_TCHAR[MAXVERBOSELOGMSGLEN], -1);
-
- int const result = this->format_msg (host_name, verbose_flag, verbose_msg);
+ ACE_TCHAR verbose_msg [MAXVERBOSELOGMSGLEN];
+ int result = this->format_msg (host_name, verbose_flag, verbose_msg);
if (result == 0)
{
// Since ostream expects only chars, we cannot pass wchar_t's
- s << ACE_TEXT_ALWAYS_CHAR (verbose_msg);
+ s << ACE_TEXT_TO_CHAR_IN (verbose_msg);
s.flush ();
}
- delete[] verbose_msg;
-
return result;
}
#endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Log_Record.h b/ace/Log_Record.h
index ef6b8104711..8e7ff3980a0 100644
--- a/ace/Log_Record.h
+++ b/ace/Log_Record.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -29,8 +29,6 @@
#include "ace/Basic_Types.h"
#include "ace/iosfwd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/// Defines the structure of an ACE logging record.
@@ -40,7 +38,7 @@ public:
enum
{
/// Maximum size of a logging message.
- MAXLOGMSGLEN = ACE_MAXLOGMSGLEN+1,
+ MAXLOGMSGLEN = ACE_MAXLOGMSGLEN,
/// Most restrictive alignment.
ALIGN_WORDB = 8,
@@ -58,6 +56,8 @@ public:
/**
* Create a <Log_Record> and set its priority, time stamp, and
* process id.
+ * Create a <Log_Record> and set its priority, time stamp, and
+ * process id.
*/
ACE_Log_Record (void);
ACE_Log_Record (ACE_Log_Priority lp,
@@ -140,7 +140,7 @@ public:
ACE_Time_Value time_stamp (void) const;
/// Set the time stamp of the <Log_Record>.
- void time_stamp (const ACE_Time_Value &ts);
+ void time_stamp (const ACE_Time_Value &);
/// Get the process id of the <Log_Record>.
long pid (void) const;
@@ -187,12 +187,12 @@ private:
ACE_UINT32 pid_;
/// Logging record data
- ACE_TCHAR* msg_data_; // Add one for NUL-terminator.
+ ACE_TCHAR msg_data_[MAXLOGMSGLEN + 1]; // Add one for NUL-terminator.
+ /// Symbolic names for the <ACE_Log_Priority> enums.
+ static const ACE_TCHAR *priority_names_[];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Log_Record.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Log_Record.inl b/ace/Log_Record.inl
index b31af15384a..0b81be7c7ec 100644
--- a/ace/Log_Record.inl
+++ b/ace/Log_Record.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Global_Macros.h"
@@ -7,13 +6,9 @@
#include "ace/Time_Value.h"
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Log_Record::~ACE_Log_Record (void)
{
- if (this->msg_data_)
- delete[] this->msg_data_;
}
ACE_INLINE void
@@ -113,5 +108,3 @@ ACE_Log_Record::msg_data_len (void) const
ACE_TRACE ("ACE_Log_Record::msg_data_len");
return ACE_OS::strlen (this->msg_data_) + 1;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Logging_Strategy.cpp b/ace/Logging_Strategy.cpp
index 8e393a81e31..9814deb25de 100644
--- a/ace/Logging_Strategy.cpp
+++ b/ace/Logging_Strategy.cpp
@@ -20,8 +20,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Parse the string containing (thread) priorities and set them
// accordingly.
@@ -154,7 +152,7 @@ ACE_Logging_Strategy::parse_args (int argc, ACE_TCHAR *argv[])
this->interval_ = ACE_DEFAULT_LOGFILE_POLL_INTERVAL;
this->max_size_ = 0;
- ACE_Get_Opt get_opt (argc, argv,
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv,
ACE_LIB_TEXT ("f:i:k:m:n:N:op:s:t:w"), 0);
for (int c; (c = get_opt ()) != -1; )
@@ -346,7 +344,7 @@ ACE_Logging_Strategy::init (int argc, ACE_TCHAR *argv[])
{
ACE_NEW_RETURN
(output_file,
- ofstream (ACE_TEXT_ALWAYS_CHAR (this->filename_)),
+ ofstream (ACE_TEXT_TO_CHAR_IN (this->filename_)),
-1);
delete_ostream = 1;
}
@@ -354,7 +352,7 @@ ACE_Logging_Strategy::init (int argc, ACE_TCHAR *argv[])
{
ACE_NEW_RETURN
(output_file,
- ofstream (ACE_TEXT_ALWAYS_CHAR (this->filename_),
+ ofstream (ACE_TEXT_TO_CHAR_IN (this->filename_),
ios::app | ios::out),
-1);
delete_ostream = 1;
@@ -362,7 +360,7 @@ ACE_Logging_Strategy::init (int argc, ACE_TCHAR *argv[])
if (output_file->rdstate () != ios::goodbit)
{
- if (delete_ostream)
+ if (delete_ostream)
delete output_file;
return -1;
}
@@ -439,7 +437,7 @@ ACE_Logging_Strategy::handle_timeout (const ACE_Time_Value &,
this->log_msg_->msg_ostream (output_file);
#else
- output_file->open (ACE_TEXT_ALWAYS_CHAR (this->filename_),
+ output_file->open (ACE_TEXT_TO_CHAR_IN (this->filename_),
ios::out);
#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
@@ -532,7 +530,7 @@ ACE_Logging_Strategy::handle_timeout (const ACE_Time_Value &,
this->log_msg_->msg_ostream (output_file);
#else
- output_file->open (ACE_TEXT_ALWAYS_CHAR (this->filename_),
+ output_file->open (ACE_TEXT_TO_CHAR_IN (this->filename_),
ios::out);
#endif /* ACE_LACKS_IOSTREAM_TOTALLY */
@@ -549,10 +547,9 @@ ACE_Logging_Strategy::log_msg (ACE_Log_Msg *log_msg)
this->log_msg_ = log_msg;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// The following is a "Factory" used by the ACE_Service_Config and
// svc.conf file to dynamically initialize the state of the
// Logging_Strategy.
ACE_FACTORY_DEFINE (ACE, ACE_Logging_Strategy)
+
diff --git a/ace/Logging_Strategy.h b/ace/Logging_Strategy.h
index d8ee19bba76..b4123221622 100644
--- a/ace/Logging_Strategy.h
+++ b/ace/Logging_Strategy.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -6,8 +6,8 @@
*
* $Id$
*
- * @author Prashant Jain <pjain@cs.wustl.edu>
- * @author Orlando Ribeiro <oribeiro@inescporto.pt>
+ * @author Prashant Jain <pjain@cs.wustl.edu> and
+ * Orlando Ribeiro <oribeiro@inescporto.pt>
*/
//=============================================================================
@@ -25,8 +25,6 @@
#define ACE_DEFAULT_LOGFILE_POLL_INTERVAL 600 /* Seconds */
#endif /* ACE_DEFAULT_LOGFILE_POLL_INTERVAL */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Logging_Strategy
*
@@ -64,10 +62,10 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* to set the reactor used by @c ACE_Logging_Strategy to something
* other than the singleton reactor you'll need to get a pointer to
* the @c ACE_Logging_Strategy instance and do this
- *
+ *
* ACE_Reactor my_reactor;
* ACE_Logging_Strategy *logging_strategy = ...... // Get instance.
- *
+ *
* logging_strategy->reactor (&my_reactor);
*
* and then logging_strategy will use your reactor. If you're
@@ -183,8 +181,6 @@ protected:
ACE_Log_Msg *log_msg_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (ACE, ACE_Logging_Strategy)
#endif /* ACE_LOGGING_STRATEGY_H */
diff --git a/ace/MEM_Acceptor.cpp b/ace/MEM_Acceptor.cpp
index 08ec50034f4..3f1b9828576 100644
--- a/ace/MEM_Acceptor.cpp
+++ b/ace/MEM_Acceptor.cpp
@@ -1,3 +1,4 @@
+// MEM_Acceptor.cpp
// $Id$
#include "ace/MEM_Acceptor.h"
@@ -15,8 +16,6 @@
ACE_RCSID(ace, MEM_Acceptor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Acceptor)
void
@@ -176,7 +175,7 @@ ACE_MEM_Acceptor::accept (ACE_MEM_Stream &new_stream,
// Protocol negociation:
// Tell the client side what level of signaling strategy
// we support.
- ACE_MEM_IO::Signal_Strategy client_signaling =
+ ACE_INT16 client_signaling =
#if defined (ACE_WIN32) || !defined (_ACE_USE_SV_SEM)
this->preferred_strategy_;
#else
@@ -261,6 +260,4 @@ ACE_MEM_Acceptor::shared_accept_finish (ACE_MEM_Stream new_stream,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
diff --git a/ace/MEM_Acceptor.h b/ace/MEM_Acceptor.h
index 7b085f825ca..a33cb5f5dce 100644
--- a/ace/MEM_Acceptor.h
+++ b/ace/MEM_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,7 +14,12 @@
#define ACE_MEM_ACCEPTOR_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#include "ace/SOCK_Acceptor.h"
@@ -31,8 +36,6 @@
#include "ace/OS_QoS.h"
#endif // ACE_HAS_WINCE
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_Reactor;
@@ -51,7 +54,7 @@ class ACE_Reactor;
* if so desired. (Currently, using UNIX-domain sockets, i.e.,
* ACE_LSOCK_*, with this class will not work.)
*/
-class ACE_Export ACE_MEM_Acceptor : public ACE_SOCK_Acceptor
+class ACE_Memory_Export ACE_MEM_Acceptor : public ACE_SOCK_Acceptor
{
public:
// = Initialization methods.
@@ -180,8 +183,6 @@ private:
ACE_MEM_IO::Signal_Strategy preferred_strategy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/MEM_Acceptor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/MEM_Acceptor.inl b/ace/MEM_Acceptor.inl
index 388e1541cdf..d7e3f66f18f 100644
--- a/ace/MEM_Acceptor.inl
+++ b/ace/MEM_Acceptor.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_MEM_Acceptor::open (const ACE_Addr &local_sap,
ACE_Protocol_Info *protocolinfo,
@@ -99,5 +96,3 @@ ACE_MEM_Acceptor::malloc_options (void)
return this->malloc_options_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MEM_Addr.cpp b/ace/MEM_Addr.cpp
index 42fed32e400..e4ad1f353f0 100644
--- a/ace/MEM_Addr.cpp
+++ b/ace/MEM_Addr.cpp
@@ -16,10 +16,8 @@
#include "ace/os_include/os_netdb.h"
ACE_RCSID (ace,
- MEM_Addr,
- "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ MEM_Addr,
+ "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Addr)
@@ -165,6 +163,4 @@ ACE_MEM_Addr::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
diff --git a/ace/MEM_Addr.h b/ace/MEM_Addr.h
index 3d50e5d06b3..497443de8d6 100644
--- a/ace/MEM_Addr.h
+++ b/ace/MEM_Addr.h
@@ -15,7 +15,12 @@
#define ACE_MEM_ADDR_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,15 +30,13 @@
#include "ace/INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_MEM_Addr
*
* @brief Defines a C++ wrapper facade for the shared memory transport
* address family format.
*/
-class ACE_Export ACE_MEM_Addr : public ACE_Addr
+class ACE_Memory_Export ACE_MEM_Addr : public ACE_Addr
{
public:
// = Initialization methods.
@@ -57,7 +60,7 @@ public:
/// Default initialization routine.
int initialize_local (u_short port);
- /// Check if @a sap designates an endpoint on the same host.
+ /// Check if @a sap designate an enpoint withing the same host.
int same_host (const ACE_INET_Addr& sap);
// These methods are useful after the object has been constructed.
@@ -144,8 +147,6 @@ private:
ACE_INET_Addr internal_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/MEM_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/MEM_Addr.inl b/ace/MEM_Addr.inl
index ca2c0de2089..dd52742637d 100644
--- a/ace/MEM_Addr.inl
+++ b/ace/MEM_Addr.inl
@@ -5,7 +5,6 @@
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Set the port number.
@@ -107,5 +106,3 @@ ACE_MEM_Addr::operator != (const ACE_INET_Addr &sap) const
ACE_TRACE ("ACE_MEM_Addr::operator !=");
return !((*this) == sap);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MEM_Connector.cpp b/ace/MEM_Connector.cpp
index a2e33cedc81..b2ffb2b3fc1 100644
--- a/ace/MEM_Connector.cpp
+++ b/ace/MEM_Connector.cpp
@@ -11,8 +11,6 @@ ACE_RCSID(ace, MEM_Connector, "$Id$")
#include "ace/MEM_Connector.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Connector)
void
@@ -73,9 +71,9 @@ ACE_MEM_Connector::connect (ACE_MEM_Stream &new_stream,
ACE_LIB_TEXT ("(%P|%t) MEM_Connector can't connect ")
ACE_LIB_TEXT ("to %s:%d which is not a local endpoint ")
ACE_LIB_TEXT ("(local address is %s:%d)\n"),
- ACE_TEXT_CHAR_TO_TCHAR (remote_sap.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN (remote_sap.get_host_name ()),
remote_sap.get_port_number (),
- ACE_TEXT_CHAR_TO_TCHAR (this->address_.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN (this->address_.get_host_name ()),
this->address_.get_port_number ()),
-1);
else
@@ -144,6 +142,4 @@ ACE_MEM_Connector::connect (ACE_MEM_Stream &new_stream,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
diff --git a/ace/MEM_Connector.h b/ace/MEM_Connector.h
index 78fae54d0c1..868cec68656 100644
--- a/ace/MEM_Connector.h
+++ b/ace/MEM_Connector.h
@@ -14,7 +14,13 @@
#define ACE_MEM_CONNECTOR_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
+#include "ace/SOCK_Connector.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -22,19 +28,16 @@
#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
-#include "ace/SOCK_Connector.h"
#include "ace/MEM_Stream.h"
#include "ace/MEM_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_MEM_Connector
*
* @brief Defines the format and interface for connecting to a peer
* on a @c ACE_MEM_Stream object.
*/
-class ACE_Export ACE_MEM_Connector : public ACE_SOCK_Connector
+class ACE_Memory_Export ACE_MEM_Connector : public ACE_SOCK_Connector
{
public:
// = Initialization methods.
@@ -167,8 +170,6 @@ private:
ACE_MEM_IO::Signal_Strategy preferred_strategy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/MEM_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/MEM_Connector.inl b/ace/MEM_Connector.inl
index 024ab5d8b5b..15bf7c9ee75 100644
--- a/ace/MEM_Connector.inl
+++ b/ace/MEM_Connector.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-// Establish a connection.
+// MEM_Connector.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Establish a connection.
ACE_INLINE ACE_MEM_IO::Signal_Strategy
ACE_MEM_Connector::preferred_strategy (void) const
@@ -26,5 +25,3 @@ ACE_MEM_Connector::malloc_options (void)
return this->malloc_options_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MEM_IO.cpp b/ace/MEM_IO.cpp
index 7a9616f5220..a3ebd3a839e 100644
--- a/ace/MEM_IO.cpp
+++ b/ace/MEM_IO.cpp
@@ -12,11 +12,9 @@
ACE_RCSID(ace, MEM_IO, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_IO)
-ACE_Reactive_MEM_IO::~ACE_Reactive_MEM_IO (void)
+ACE_Reactive_MEM_IO::~ACE_Reactive_MEM_IO ()
{
}
@@ -273,6 +271,8 @@ ACE_MT_MEM_IO::recv_buf (ACE_MEM_SAP_Node *&buf,
return buf->size ();
return -1;
}
+
+ ACE_NOTREACHED (return 0;)
}
ssize_t
@@ -432,11 +432,11 @@ ACE_MEM_IO::recvv (iovec *io_vec,
break;
}
- int inlen;
+ u_long inlen;
if (ACE_OS::ioctl (this->get_handle (),
FIONREAD,
- &inlen) == -1)
+ (u_long *) &inlen) == -1)
return -1;
else if (inlen > 0)
{
@@ -536,6 +536,4 @@ ACE_MEM_IO::recv (size_t n, ...) const
}
#endif /* 0 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
diff --git a/ace/MEM_IO.h b/ace/MEM_IO.h
index 595caf0ff6f..ecf4588f2ba 100644
--- a/ace/MEM_IO.h
+++ b/ace/MEM_IO.h
@@ -15,24 +15,27 @@
#define ACE_MEM_IO_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#include "ace/SOCK.h"
#include "ace/MEM_SAP.h"
+#include "ace/Memory_Pool.h"
#include "ace/Message_Block.h"
#include "ace/Process_Semaphore.h"
#include "ace/Process_Mutex.h"
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
-class ACE_Export ACE_Reactive_MEM_IO : public ACE_MEM_SAP
+class ACE_Memory_Export ACE_Reactive_MEM_IO : public ACE_MEM_SAP
{
public:
ACE_Reactive_MEM_IO (void);
@@ -52,7 +55,7 @@ public:
/**
* Fetch location of next available data into <recv_buffer_>.
* As this operation read the address of the data off the socket
- * using ACE::recv, @a timeout only applies to ACE::recv.
+ * using ACE::recv, <timeout> only applies to ACE::recv.
*/
virtual ssize_t recv_buf (ACE_MEM_SAP_Node *&buf,
int flags,
@@ -75,7 +78,7 @@ public:
};
#if defined (ACE_WIN32) || !defined (_ACE_USE_SV_SEM)
-class ACE_Export ACE_MT_MEM_IO : public ACE_MEM_SAP
+class ACE_Memory_Export ACE_MT_MEM_IO : public ACE_MEM_SAP
{
public:
typedef struct
@@ -167,7 +170,7 @@ private:
* the other end. The receiving side then reverses the
* procedures and copies the information into user buffer.
*/
-class ACE_Export ACE_MEM_IO : public ACE_SOCK
+class ACE_Memory_Export ACE_MEM_IO : public ACE_SOCK
{
public:
// = Initialization and termination methods.
@@ -298,8 +301,6 @@ private:
ssize_t cur_offset_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/MEM_IO.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/MEM_IO.inl b/ace/MEM_IO.inl
index 07f13764e94..7d4685334cf 100644
--- a/ace/MEM_IO.inl
+++ b/ace/MEM_IO.inl
@@ -1,9 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// MEM_IO.i
+
+#include "ace/OS_NS_string.h"
ACE_INLINE
ACE_Reactive_MEM_IO::ACE_Reactive_MEM_IO ()
@@ -229,5 +229,3 @@ ACE_MEM_IO::send (const void *buf,
ACE_TRACE ("ACE_MEM_IO::send");
return this->send (buf, len, 0, timeout);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MEM_SAP.cpp b/ace/MEM_SAP.cpp
index b663fd7aca5..f1e79c29851 100644
--- a/ace/MEM_SAP.cpp
+++ b/ace/MEM_SAP.cpp
@@ -10,8 +10,6 @@
ACE_RCSID(ace, MEM_SAP, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_IPC_SAP)
void
@@ -107,5 +105,3 @@ template class ACE_Based_Pointer_Basic<ACE_MEM_SAP_Node>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MEM_SAP.h b/ace/MEM_SAP.h
index e33c6b77104..dcbad75b584 100644
--- a/ace/MEM_SAP.h
+++ b/ace/MEM_SAP.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -10,12 +10,19 @@
*/
//=============================================================================
+
#ifndef ACE_MEM_SAP_H
#define ACE_MEM_SAP_H
-
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
+
+#include "ace/PI_Malloc.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,13 +31,10 @@
// MEM_SAP requries position independent pointers to work
#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
-#include "ace/PI_Malloc.h"
#include "ace/Malloc_T.h"
#include "ace/MMAP_Memory_Pool.h"
#include "ace/Process_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_MEM_SAP;
class ACE_Reactive_MEM_IO;
class ACE_MT_MEM_IO;
@@ -39,7 +43,7 @@ class ACE_MEM_IO;
// Internal data structure
// MEM_SAP uses to queue up
// data.
-class ACE_MEM_SAP_Node
+class ACE_Memory_Export ACE_MEM_SAP_Node
{
public:
// friend class ACE_MEM_SAP;
@@ -76,7 +80,7 @@ public:
* @brief Defines the methods of shared memory management for
* shared memory transport.
*/
-class ACE_Export ACE_MEM_SAP
+class ACE_Memory_Export ACE_MEM_SAP
{
public:
// = Initialization and termination methods.
@@ -103,7 +107,7 @@ public:
/**
* Fetch location of next available data into <recv_buffer_>.
* As this operation read the address of the data off the socket
- * using ACE::recv, @a timeout only applies to ACE::recv.
+ * using ACE::recv, <timeout> only applies to ACE::recv.
*/
virtual ssize_t recv_buf (ACE_MEM_SAP_Node *&buf,
int flags,
@@ -156,8 +160,6 @@ protected:
ACE_MEM_SAP (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/MEM_SAP.inl"
#endif /* __ACE_INLINE__ */
@@ -165,5 +167,4 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
#include /**/ "ace/post.h"
-
#endif /* ACE_SOCK_IO_H */
diff --git a/ace/MEM_SAP.inl b/ace/MEM_SAP.inl
index 3c2a4eb9d9a..e687618b7f8 100644
--- a/ace/MEM_SAP.inl
+++ b/ace/MEM_SAP.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/RW_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_MEM_SAP_Node::ACE_MEM_SAP_Node (size_t cap)
: capacity_ (cap),
@@ -60,5 +57,3 @@ ACE_MEM_SAP::release_buffer (ACE_MEM_SAP_Node *buf)
this->shm_malloc_->free (buf);
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MEM_Stream.cpp b/ace/MEM_Stream.cpp
index 0e8edb9ced7..dc32670142a 100644
--- a/ace/MEM_Stream.cpp
+++ b/ace/MEM_Stream.cpp
@@ -1,3 +1,4 @@
+// MEM_Stream.cpp
// $Id$
#include "ace/MEM_Stream.h"
@@ -10,8 +11,6 @@
ACE_RCSID(ace, MEM_Stream, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Stream)
void
@@ -42,6 +41,4 @@ ACE_MEM_Stream::close (void)
return ACE_SOCK::close ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
diff --git a/ace/MEM_Stream.h b/ace/MEM_Stream.h
index 6b4ff4cdd41..e513be87387 100644
--- a/ace/MEM_Stream.h
+++ b/ace/MEM_Stream.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -29,17 +29,15 @@
# define ACE_MEM_STREAM_MIN_BUFFER 4096
#endif /* ACE_MEM_STREAM_MIN_BUFFER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_MEM_Acceptor;
class ACE_MEM_Connector;
/**
* @class ACE_MEM_Stream
*
- * @brief Defines the methods in the ACE_MEM_Stream abstraction.
+ * @brief Defines the methods in the <ACE_MEM_Stream> abstraction.
*
- * This adds additional wrapper methods atop the ACE_MEM_IO
+ * This adds additional wrapper methods atop the <ACE_MEM_IO>
* class. Notice that ACE_MEM_Stream can only send messages no bigger
* than the underlying MMAP file size minus sizeof (ACE_MEM_SAP_Node).
* The size of the MMAP file is default to ACE_MEM_STREAM_MIN_BUFFER.
@@ -50,7 +48,7 @@ class ACE_MEM_Connector;
* @c ACE_MEM_Acceptor::init_buffer_size (size_t size);
* before establishing a connection.
*/
-class ACE_Export ACE_MEM_Stream : public ACE_MEM_IO
+class ACE_Memory_Export ACE_MEM_Stream : public ACE_MEM_IO
{
public:
@@ -61,7 +59,7 @@ public:
/// Constructor.
ACE_MEM_Stream (void);
- /// Constructor (sets the underlying ACE_HANDLE with <h>).
+ /// Constructor (sets the underlying <ACE_HANDLE> with <h>).
ACE_MEM_Stream (ACE_HANDLE h);
/// Destructor.
@@ -146,8 +144,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/MEM_Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/MEM_Stream.inl b/ace/MEM_Stream.inl
index c29459ed35c..df33caaf630 100644
--- a/ace/MEM_Stream.inl
+++ b/ace/MEM_Stream.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/MEM_Stream.h"
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_MEM_Stream::ACE_MEM_Stream (void)
{
@@ -176,5 +173,3 @@ ACE_MEM_Stream::recv_urg (void *ptr,
timeout);
}
#endif /* 0 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MMAP_Memory_Pool.cpp b/ace/MMAP_Memory_Pool.cpp
index 6ddec5d7621..3329c3f5292 100644
--- a/ace/MMAP_Memory_Pool.cpp
+++ b/ace/MMAP_Memory_Pool.cpp
@@ -15,8 +15,6 @@
ACE_RCSID(ace, MMAP_Memory_Pool, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_MMAP_Memory_Pool)
void
@@ -532,5 +530,3 @@ ACE_Lite_MMAP_Memory_Pool::sync (void *, size_t, int)
ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync");
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/MMAP_Memory_Pool.h b/ace/MMAP_Memory_Pool.h
index 0b81e015896..63da965b80d 100644
--- a/ace/MMAP_Memory_Pool.h
+++ b/ace/MMAP_Memory_Pool.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +32,6 @@
#include "ace/Signal.h"
#include "ace/Mem_Map.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_MMAP_Memory_Pool_Options
*
@@ -37,7 +40,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* This should be a nested class, but that breaks too many
* compilers.
*/
-class ACE_Export ACE_MMAP_Memory_Pool_Options
+class ACE_Memory_Export ACE_MMAP_Memory_Pool_Options
{
public:
enum
@@ -125,7 +128,7 @@ private:
* @brief Make a memory pool that is based on @c mmap(2). This
* implementation allows memory to be shared between processes.
*/
-class ACE_Export ACE_MMAP_Memory_Pool : public ACE_Event_Handler
+class ACE_Memory_Export ACE_MMAP_Memory_Pool : public ACE_Event_Handler
{
public:
typedef ACE_MMAP_Memory_Pool_Options OPTIONS;
@@ -276,7 +279,7 @@ protected:
* every update. Naturally, this trades off increased
* performance for less reliability if the machine crashes.
*/
-class ACE_Export ACE_Lite_MMAP_Memory_Pool : public ACE_MMAP_Memory_Pool
+class ACE_Memory_Export ACE_Lite_MMAP_Memory_Pool : public ACE_MMAP_Memory_Pool
{
public:
/// Initialize the pool.
@@ -293,7 +296,5 @@ public:
virtual int sync (void *addr, size_t len, int flags = MS_SYNC);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_MMAP_MEMORY_POOL_H */
diff --git a/ace/Makefile.am b/ace/Makefile.am
index 93728f9e355..1a418763551 100644
--- a/ace/Makefile.am
+++ b/ace/Makefile.am
@@ -2,11 +2,6 @@
##
## $Id$
##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ./bin/mwc.pl -type automake -noreldefs ACE.mwc
includedir = @includedir@/ace
pkgconfigdir = @libdir@/pkgconfig
@@ -20,16 +15,10 @@ SUBDIRS = \
QoS \
SSL
-CLEANFILES =
-lib_LTLIBRARIES =
-nobase_include_HEADERS =
-pkgconfig_DATA =
## Makefile.ACE.am
-if !BUILD_ACE_FOR_TAO
-
-lib_LTLIBRARIES += libACE.la
+lib_LTLIBRARIES = libACE.la
libACE_la_CPPFLAGS = \
-I$(ACE_ROOT) \
@@ -42,7 +31,6 @@ libACE_la_SOURCES = \
ACE.cpp \
ACE_crc32.cpp \
ACE_crc_ccitt.cpp \
- ARGV.cpp \
ATM_Acceptor.cpp \
ATM_Addr.cpp \
ATM_Connector.cpp \
@@ -54,7 +42,6 @@ libACE_la_SOURCES = \
Addr.cpp \
Arg_Shifter.cpp \
Argv_Type_Converter.cpp \
- Assert.cpp \
Asynch_IO.cpp \
Asynch_IO_Impl.cpp \
Asynch_Pseudo_Task.cpp \
@@ -66,8 +53,8 @@ libACE_la_SOURCES = \
Basic_Stats.cpp \
Basic_Types.cpp \
CDR_Base.cpp \
- CDR_Size.cpp \
CDR_Stream.cpp \
+ CDR_Size.cpp \
Capabilities.cpp \
Cleanup.cpp \
Codecs.cpp \
@@ -96,8 +83,6 @@ libACE_la_SOURCES = \
Dump.cpp \
Dynamic.cpp \
Dynamic_Service_Base.cpp \
- Encoding_Converter.cpp \
- Encoding_Converter_Factory.cpp \
Event.cpp \
Event_Handler.cpp \
FIFO.cpp \
@@ -118,6 +103,7 @@ libACE_la_SOURCES = \
Get_Opt.cpp \
Handle_Ops.cpp \
Handle_Set.cpp \
+ Hash_Map_Manager.cpp \
Hashable.cpp \
High_Res_Timer.cpp \
ICMP_Socket.cpp \
@@ -289,7 +275,8 @@ libACE_la_SOURCES = \
Sock_Connect.cpp \
Stats.cpp \
String_Base_Const.cpp \
- Svc_Conf_Lexer.cpp \
+ Svc_Conf_Lexer_Guard.cpp \
+ Svc_Conf_l.cpp \
Svc_Conf_y.cpp \
Synch_Options.cpp \
System_Time.cpp \
@@ -327,9 +314,6 @@ libACE_la_SOURCES = \
UPIPE_Acceptor.cpp \
UPIPE_Connector.cpp \
UPIPE_Stream.cpp \
- UTF16_Encoding_Converter.cpp \
- UTF32_Encoding_Converter.cpp \
- UTF8_Encoding_Converter.cpp \
UUID.cpp \
WFMO_Reactor.cpp \
WIN32_Asynch_IO.cpp \
@@ -341,7 +325,7 @@ libACE_la_SOURCES = \
libACE_la_LDFLAGS = \
-version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
-nobase_include_HEADERS += \
+nobase_include_HEADERS = \
ACE.h \
ACE.inl \
ACE_export.h \
@@ -380,7 +364,6 @@ nobase_include_HEADERS += \
Array_Map.cpp \
Array_Map.h \
Array_Map.inl \
- Assert.h \
Asynch_Acceptor.cpp \
Asynch_Acceptor.h \
Asynch_Connector.cpp \
@@ -421,10 +404,10 @@ nobase_include_HEADERS += \
Bound_Ptr.inl \
CDR_Base.h \
CDR_Base.inl \
- CDR_Size.h \
- CDR_Size.inl \
CDR_Stream.h \
CDR_Stream.inl \
+ CDR_Size.h \
+ CDR_Size.inl \
CORBA_macros.h \
Cache_Map_Manager_T.cpp \
Cache_Map_Manager_T.h \
@@ -492,8 +475,6 @@ nobase_include_HEADERS += \
Dynamic_Service.h \
Dynamic_Service.inl \
Dynamic_Service_Base.h \
- Encoding_Converter.h \
- Encoding_Converter_Factory.h \
Env_Value_T.cpp \
Env_Value_T.h \
Env_Value_T.inl \
@@ -571,6 +552,7 @@ nobase_include_HEADERS += \
High_Res_Timer.h \
High_Res_Timer.inl \
ICMP_Socket.h \
+ ICMP_Socket.inl \
INET_Addr.h \
INET_Addr.inl \
IOStream.h \
@@ -763,6 +745,7 @@ nobase_include_HEADERS += \
OS_NS_sys_uio.h \
OS_NS_sys_uio.inl \
OS_NS_sys_utsname.h \
+ OS_NS_sys_utsname.inl \
OS_NS_sys_wait.h \
OS_NS_sys_wait.inl \
OS_NS_time.h \
@@ -843,9 +826,9 @@ nobase_include_HEADERS += \
Recyclable.inl \
Refcountable.h \
Refcountable.inl \
- Refcounted_Auto_Ptr.cpp \
Refcounted_Auto_Ptr.h \
Refcounted_Auto_Ptr.inl \
+ Refcounted_Auto_Ptr.cpp \
Registry.h \
Registry_Name_Space.h \
Remote_Name_Space.h \
@@ -917,6 +900,7 @@ nobase_include_HEADERS += \
Service_Config.h \
Service_Config.inl \
Service_Manager.h \
+ Service_Manager.inl \
Service_Object.h \
Service_Object.inl \
Service_Repository.h \
@@ -955,7 +939,7 @@ nobase_include_HEADERS += \
String_Base.inl \
String_Base_Const.h \
Svc_Conf.h \
- Svc_Conf_Lexer.h \
+ Svc_Conf_Lexer_Guard.h \
Svc_Conf_Tokens.h \
Svc_Handler.cpp \
Svc_Handler.h \
@@ -963,6 +947,7 @@ nobase_include_HEADERS += \
Swap.inl \
Synch.h \
Synch_Options.h \
+ Synch_Options.inl \
Synch_T.cpp \
Synch_T.h \
Synch_Traits.h \
@@ -977,6 +962,7 @@ nobase_include_HEADERS += \
TP_Reactor.h \
TP_Reactor.inl \
TSS_Adapter.h \
+ TSS_Adapter.inl \
TSS_T.cpp \
TSS_T.h \
TSS_T.inl \
@@ -1043,7 +1029,6 @@ nobase_include_HEADERS += \
Token_Request_Reply.h \
Token_Request_Reply.inl \
Trace.h \
- Truncate.h \
Typed_SV_Message.cpp \
Typed_SV_Message.h \
Typed_SV_Message.inl \
@@ -1059,10 +1044,6 @@ nobase_include_HEADERS += \
UPIPE_Connector.inl \
UPIPE_Stream.h \
UPIPE_Stream.inl \
- UTF16_Encoding_Converter.h \
- UTF16_Encoding_Converter.inl \
- UTF32_Encoding_Converter.h \
- UTF8_Encoding_Converter.h \
UUID.h \
UUID.inl \
Unbounded_Queue.cpp \
@@ -1076,7 +1057,6 @@ nobase_include_HEADERS += \
Vector_T.h \
Vector_T.inl \
Version.h \
- Versioned_Namespace.h \
WFMO_Reactor.h \
WFMO_Reactor.inl \
WIN32_Asynch_IO.h \
@@ -1090,7 +1070,6 @@ nobase_include_HEADERS += \
config-all.h \
config-borland-common.h \
config-lite.h \
- config-macros.h \
config-minimal.h \
config-win32-borland.h \
config-win32-common.h \
@@ -1180,7 +1159,6 @@ nobase_include_HEADERS += \
os_include/sys/os_socket.h \
os_include/sys/os_stat.h \
os_include/sys/os_statvfs.h \
- os_include/sys/os_sysctl.h \
os_include/sys/os_time.h \
os_include/sys/os_timeb.h \
os_include/sys/os_times.h \
@@ -1194,17 +1172,11 @@ nobase_include_HEADERS += \
streams.h \
svc_export.h
-pkgconfig_DATA += \
- ACE.pc
-
-CLEANFILES += \
- ACE.pc
+pkgconfig_DATA = ACE.pc
ACE.pc: ${top_builddir}/config.status ${srcdir}/ACE.pc.in
${top_builddir}/config.status --file $@:${srcdir}/ACE.pc.in
-endif !BUILD_ACE_FOR_TAO
-
EXTRA_DIST = \
ACE.pc.in \
ace.rc
@@ -1221,28 +1193,22 @@ lib_LTLIBRARIES += libACE_FlReactor.la
libACE_FlReactor_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
- $(ACE_FLTK_CPPFLAGS) \
-DACE_FLREACTOR_BUILD_DLL
libACE_FlReactor_la_SOURCES = \
FlReactor.cpp
libACE_FlReactor_la_LDFLAGS = \
- -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@ $(ACE_FLTK_LDFLAGS)
+ -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
libACE_FlReactor_la_LIBADD = \
- libACE.la \
- $(ACE_FLTK_LIBS)
+ libACE.la
nobase_include_HEADERS += \
ACE_FlReactor_export.h \
FlReactor.h
-pkgconfig_DATA += \
- ACE_FlReactor.pc
-
-CLEANFILES += \
- ACE_FlReactor.pc
+pkgconfig_DATA += ACE_FlReactor.pc
ACE_FlReactor.pc: ${top_builddir}/config.status ${srcdir}/ACE_FlReactor.pc.in
${top_builddir}/config.status --file $@:${srcdir}/ACE_FlReactor.pc.in
@@ -1262,18 +1228,19 @@ if BUILD_QT
BUILT_SOURCES = \
QtReactor_moc.cpp
-CLEANFILES += \
+CLEANFILES = \
QtReactor_moc.cpp
QtReactor_moc.cpp: $(srcdir)/QtReactor.h
- $(QTDIR)/bin/moc -o QtReactor_moc.cpp $(srcdir)/QtReactor.h
+ $(QTDIR)/bin/moc $(srcdir)/QtReactor.h -o QtReactor_moc.cpp
lib_LTLIBRARIES += libACE_QtReactor.la
libACE_QtReactor_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
- $(ACE_QT_CPPFLAGS) \
+ -I$(QTDIR)/include \
+ -DQT_THREAD_SUPPORT \
-DACE_QTREACTOR_BUILD_DLL
libACE_QtReactor_la_SOURCES = \
@@ -1281,21 +1248,17 @@ libACE_QtReactor_la_SOURCES = \
QtReactor_moc.cpp
libACE_QtReactor_la_LDFLAGS = \
- -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@ $(ACE_QT_LDFLAGS)
+ -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
libACE_QtReactor_la_LIBADD = \
libACE.la \
- $(ACE_QT_LIBS)
+ -lqt-mt
nobase_include_HEADERS += \
ACE_QtReactor_export.h \
QtReactor.h
-pkgconfig_DATA += \
- ACE_QtReactor.pc
-
-CLEANFILES += \
- ACE_QtReactor.pc
+pkgconfig_DATA += ACE_QtReactor.pc
ACE_QtReactor.pc: ${top_builddir}/config.status ${srcdir}/ACE_QtReactor.pc.in
${top_builddir}/config.status --file $@:${srcdir}/ACE_QtReactor.pc.in
@@ -1315,30 +1278,22 @@ lib_LTLIBRARIES += libACE_TkReactor.la
libACE_TkReactor_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
- $(ACE_TK_CPPFLAGS) \
- $(ACE_TCL_CPPFLAGS) \
-DACE_TKREACTOR_BUILD_DLL
libACE_TkReactor_la_SOURCES = \
TkReactor.cpp
libACE_TkReactor_la_LDFLAGS = \
- -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@ $(ACE_TK_LDFLAGS) $(ACE_TCL_LDFLAGS)
+ -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
libACE_TkReactor_la_LIBADD = \
- libACE.la \
- $(ACE_TK_LIBS) \
- $(ACE_TCL_LIBS)
+ libACE.la
nobase_include_HEADERS += \
ACE_TkReactor_export.h \
TkReactor.h
-pkgconfig_DATA += \
- ACE_TkReactor.pc
-
-CLEANFILES += \
- ACE_TkReactor.pc
+pkgconfig_DATA += ACE_TkReactor.pc
ACE_TkReactor.pc: ${top_builddir}/config.status ${srcdir}/ACE_TkReactor.pc.in
${top_builddir}/config.status --file $@:${srcdir}/ACE_TkReactor.pc.in
@@ -1359,30 +1314,22 @@ lib_LTLIBRARIES += libACE_XtReactor.la
libACE_XtReactor_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
- $(ACE_X11_CPPFLAGS) \
- $(ACE_XT_CPPFLAGS) \
-DACE_XTREACTOR_BUILD_DLL
libACE_XtReactor_la_SOURCES = \
XtReactor.cpp
libACE_XtReactor_la_LDFLAGS = \
- -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@ $(ACE_X11_LDFLAGS) $(ACE_XT_LDFLAGS)
+ -version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
libACE_XtReactor_la_LIBADD = \
- libACE.la \
- $(ACE_XT_LIBS) \
- $(ACE_X11_LIBS)
+ libACE.la
nobase_include_HEADERS += \
ACE_XtReactor_export.h \
XtReactor.h
-pkgconfig_DATA += \
- ACE_XtReactor.pc
-
-CLEANFILES += \
- ACE_XtReactor.pc
+pkgconfig_DATA += ACE_XtReactor.pc
ACE_XtReactor.pc: ${top_builddir}/config.status ${srcdir}/ACE_XtReactor.pc.in
${top_builddir}/config.status --file $@:${srcdir}/ACE_XtReactor.pc.in
diff --git a/ace/Malloc.cpp b/ace/Malloc.cpp
index 644f8543a4c..6ef923634ba 100644
--- a/ace/Malloc.cpp
+++ b/ace/Malloc.cpp
@@ -16,8 +16,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Process-wide ACE_Allocator.
ACE_Allocator *ACE_Allocator::allocator_ = 0;
@@ -123,6 +121,14 @@ ACE_Control_Block::ACE_Name_Node::ACE_Name_Node (const char *name,
next->prev_ = this;
}
+ACE_Control_Block::ACE_Name_Node::ACE_Name_Node (const ACE_Name_Node &)
+{
+ ACE_TRACE ("ACE_Control_Block::ACE_Name_Node::ACE_Name_Node");
+#if !defined (ACE_PSOS)
+ ACE_ASSERT (!"not implemented!");
+#endif /* ! ACE_PSOS */
+}
+
const char *
ACE_Control_Block::ACE_Name_Node::name (void) const
{
@@ -130,6 +136,14 @@ ACE_Control_Block::ACE_Name_Node::name (void) const
return c;
}
+void
+ACE_Control_Block::ACE_Name_Node::name (const char *)
+{
+#if !defined (ACE_PSOS)
+ ACE_ASSERT (!"not implemented!");
+#endif /* ! ACE_PSOS */
+}
+
ACE_Control_Block::ACE_Malloc_Header::ACE_Malloc_Header (void)
: next_block_ (0),
size_ (0)
@@ -191,5 +205,3 @@ template class ACE_Atomic_Op_Ex<ACE_PROCESS_MUTEX, int>;
#pragma instantiate ACE_Atomic_Op_Ex<ACE_PROCESS_MUTEX, int>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /*ACE_HAS_MALLOC_STATS*/
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Malloc.h b/ace/Malloc.h
index 5362c0baaf6..d19a5f12ebb 100644
--- a/ace/Malloc.h
+++ b/ace/Malloc.h
@@ -33,9 +33,6 @@
# define ACE_PROCESS_MUTEX ACE_SV_Semaphore_Simple
# endif /* ACE_HAS_THREADS */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Atomic_Op<ACE_PROCESS_MUTEX, int> ACE_INT;
/******************************************************************
@@ -201,9 +198,6 @@ struct ACE_Export ACE_Malloc_Stats
/// Number of blocks in use
ACE_INT ninuse_;
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# define ACE_MALLOC_STATS(X) X
#else
# define ACE_MALLOC_STATS(X)
@@ -218,8 +212,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# define ACE_MALLOC_PADDING 1
#endif /* ACE_MALLOC_PADDING */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
union ACE_max_align_info
{
int (*i)();
@@ -309,6 +301,9 @@ public:
char *pointer,
ACE_Name_Node *head);
+ /// Copy constructor.
+ ACE_Name_Node (const ACE_Name_Node &);
+
/// Constructor.
ACE_Name_Node (void);
@@ -323,6 +318,9 @@ public:
/// Return a pointer to the name of this node.
const char *name (void) const;
+ /// Assign a name;
+ void name (const char *);
+
/// Name of the Node.
char *name_;
@@ -337,9 +335,6 @@ public:
/// Dump the state of the object.
void dump (void) const;
- private:
- /// Copy constructor.
- ACE_Name_Node (const ACE_Name_Node &);
};
/// Print out a bunch of size info for debugging.
@@ -385,8 +380,6 @@ public:
void dump (void) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Malloc.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Malloc.inl b/ace/Malloc.inl
index fdfbd1a612d..76722f13fb7 100644
--- a/ace/Malloc.inl
+++ b/ace/Malloc.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Control_Block::ACE_Name_Node::~ACE_Name_Node (void)
{
@@ -22,5 +19,3 @@ ACE_Control_Block::ACE_Name_Node::init_ptr
{
*ptr = init;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Malloc_Allocator.cpp b/ace/Malloc_Allocator.cpp
index deeaffc54eb..ec12aa32954 100644
--- a/ace/Malloc_Allocator.cpp
+++ b/ace/Malloc_Allocator.cpp
@@ -1,5 +1,16 @@
// $Id$
+// FILENAME
+// Malloc_Allocator.cpp
+//
+// AUTHOR
+// Priyanka Gontla <pgontla@uci.edu>
+//
+// ==========================================================================
+
+#if !defined (ACE_MALLOC_ALLOCATOR_CPP)
+#define ACE_MALLOC_ALLOCATOR_CPP
+
#include "ace/Malloc_Allocator.h"
#include "ace/Object_Manager.h"
@@ -14,8 +25,6 @@
ACE_RCSID (ace, Malloc_Allocator, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Allocator *
ACE_Allocator::instance (void)
{
@@ -358,4 +367,4 @@ ACE_Static_Allocator_Base::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_MALLOC_ALLOCATOR_CPP */
diff --git a/ace/Malloc_Allocator.h b/ace/Malloc_Allocator.h
index f70555a74da..4fecb2a3d6a 100644
--- a/ace/Malloc_Allocator.h
+++ b/ace/Malloc_Allocator.h
@@ -34,8 +34,6 @@
#endif /* ACE_HAS_MALLOC_STATS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_New_Allocator
*
@@ -135,8 +133,6 @@ protected:
size_t offset_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Malloc_Allocator.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Malloc_Allocator.inl b/ace/Malloc_Allocator.inl
index 87a96099c1a..7ec860c8591 100644
--- a/ace/Malloc_Allocator.inl
+++ b/ace/Malloc_Allocator.inl
@@ -1,16 +1,11 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
-ACE_Static_Allocator_Base::ACE_Static_Allocator_Base (char * buffer,
+ACE_Static_Allocator_Base::ACE_Static_Allocator_Base (char *buffer,
size_t size)
: buffer_ (buffer),
size_ (size),
offset_ (0)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Malloc_Base.h b/ace/Malloc_Base.h
index 491e832d59a..34605eb05bf 100644
--- a/ace/Malloc_Base.h
+++ b/ace/Malloc_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -25,8 +25,6 @@
#include "ace/os_include/sys/os_mman.h"
#include "ace/os_include/sys/os_types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// The definition of this class is located in Malloc.cpp.
/**
@@ -158,7 +156,5 @@ private:
static int delete_allocator_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_MALLOC_BASE_H */
diff --git a/ace/Malloc_Instantiations.cpp b/ace/Malloc_Instantiations.cpp
index 5eea274f6bb..90ffee4b1f1 100644
--- a/ace/Malloc_Instantiations.cpp
+++ b/ace/Malloc_Instantiations.cpp
@@ -1,12 +1,7 @@
// $Id$
-#include "ace/Local_Memory_Pool.h"
-#include "ace/Malloc_T.h"
+#include "ace/Malloc.h"
#include "ace/Null_Mutex.h"
-#include "ace/Synch_Traits.h"
-#include "ace/Thread_Mutex.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
@@ -37,5 +32,3 @@ template class ACE_Allocator_Adapter<ACE_Malloc<ACE_LOCAL_MEMORY_POOL, ACE_Null_
# endif /* ACE_HAS_THREADS */
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Malloc_T.cpp b/ace/Malloc_T.cpp
index 63e33324201..599191272ed 100644
--- a/ace/Malloc_T.cpp
+++ b/ace/Malloc_T.cpp
@@ -17,8 +17,6 @@
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T, class ACE_LOCK>
ACE_Cached_Allocator<T, ACE_LOCK>::ACE_Cached_Allocator (size_t n_chunks)
: pool_ (0),
@@ -80,8 +78,7 @@ ACE_Cached_Allocator<T, ACE_LOCK>::calloc (size_t nbytes,
// addr() call is really not absolutely necessary because of the way
// ACE_Cached_Mem_Pool_Node's internal structure arranged.
void *ptr = this->free_list_.remove ()->addr ();
- if (ptr != 0)
- ACE_OS::memset (ptr, initial_value, sizeof (T));
+ ACE_OS::memset (ptr, initial_value, sizeof (T));
return ptr;
}
@@ -153,8 +150,7 @@ ACE_Dynamic_Cached_Allocator<ACE_LOCK>::calloc (size_t nbytes,
// addr() call is really not absolutely necessary because of the way
// ACE_Cached_Mem_Pool_Node's internal structure arranged.
void *ptr = this->free_list_.remove ()->addr ();
- if (ptr != 0)
- ACE_OS::memset (ptr, initial_value, chunk_size_);
+ ACE_OS::memset (ptr, initial_value, chunk_size_);
return ptr;
}
@@ -294,19 +290,17 @@ ACE_Allocator_Adapter<MALLOC>::protect (void *addr, size_t len, int flags)
template <class MALLOC>
ACE_Allocator_Adapter<MALLOC>::ACE_Allocator_Adapter (const char *pool_name)
- : allocator_ (ACE_TEXT_CHAR_TO_TCHAR (pool_name))
+ : allocator_ (ACE_TEXT_TO_TCHAR_IN (pool_name))
{
ACE_TRACE ("ACE_Allocator_Adapter<MALLOC>::ACE_Allocator_Adapter");
}
-#if defined (ACE_HAS_WCHAR)
template <class MALLOC>
ACE_Allocator_Adapter<MALLOC>::ACE_Allocator_Adapter (const wchar_t *pool_name)
- : allocator_ (ACE_TEXT_WCHAR_TO_TCHAR (pool_name))
+ : allocator_ (ACE_TEXT_TO_TCHAR_IN (pool_name))
{
ACE_TRACE ("ACE_Allocator_Adapter<MALLOC>::ACE_Allocator_Adapter");
}
-#endif /* ACE_HAS_WCHAR */
template <class MALLOC>
ACE_Allocator_Adapter<MALLOC>::~ACE_Allocator_Adapter (void)
@@ -1255,6 +1249,4 @@ ACE_Malloc_FIFO_Iterator_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::start (void)
return this->curr_ != 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_MALLOC_T_CPP */
+#endif /* ACE_MALLOC_T_C */
diff --git a/ace/Malloc_T.h b/ace/Malloc_T.h
index 021a13c2e58..241d1529f49 100644
--- a/ace/Malloc_T.h
+++ b/ace/Malloc_T.h
@@ -16,7 +16,6 @@
#include /**/ "ace/pre.h"
#include "ace/Malloc.h" /* Need ACE_Control_Block */
-#include "ace/Malloc_Base.h" /* Need ACE_Allocator */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +25,6 @@
#include "ace/Free_List.h"
#include "ace/Guard_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Cached_Mem_Pool_Node
*
@@ -238,14 +235,13 @@ public:
ACE_Allocator_Adapter (const char *pool_name,
const char *lock_name,
MEMORY_POOL_OPTIONS options = 0)
- : allocator_ (ACE_TEXT_CHAR_TO_TCHAR (pool_name),
- ACE_TEXT_CHAR_TO_TCHAR (lock_name),
+ : allocator_ (ACE_TEXT_TO_TCHAR_IN (pool_name),
+ ACE_TEXT_TO_TCHAR_IN (lock_name),
options)
{
ACE_TRACE ("ACE_Allocator_Adapter<MALLOC>::ACE_Allocator_Adapter");
}
-#if defined (ACE_HAS_WCHAR)
/**
* Note that @a pool_name should be located in
* a directory with the appropriate visibility and protection so
@@ -261,13 +257,12 @@ public:
ACE_Allocator_Adapter (const wchar_t *pool_name,
const wchar_t *lock_name,
MEMORY_POOL_OPTIONS options = 0)
- : allocator_ (ACE_TEXT_WCHAR_TO_TCHAR (pool_name),
- ACE_TEXT_WCHAR_TO_TCHAR (lock_name),
+ : allocator_ (ACE_TEXT_TO_TCHAR_IN (pool_name),
+ ACE_TEXT_TO_TCHAR_IN (lock_name),
options)
{
ACE_TRACE ("ACE_Allocator_Adapter<MALLOC>::ACE_Allocator_Adapter");
}
-#endif /* ACE_HAS_WCHAR */
/// Destructor.
virtual ~ACE_Allocator_Adapter (void);
@@ -891,8 +886,6 @@ public:
ACE_LOCK * operator () (const ACE_TCHAR *myname);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Malloc_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Malloc_T.inl b/ace/Malloc_T.inl
index 2de748456af..ff9fc26f4be 100644
--- a/ace/Malloc_T.inl
+++ b/ace/Malloc_T.inl
@@ -4,8 +4,6 @@
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE T *
ACE_Cached_Mem_Pool_Node<T>::addr (void)
{
@@ -169,6 +167,7 @@ ACE_Malloc_FIFO_Iterator<ACE_MEM_POOL_2, ACE_LOCK>::ACE_Malloc_FIFO_Iterator (AC
}
+
#if 0
template <ACE_MEM_POOL_1, class ACE_LOCK, class ACE_CB> ACE_INLINE void
ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::init_malloc_header_ptr (void* ptr)
@@ -179,6 +178,4 @@ ACE_Malloc_T<ACE_MEM_POOL_2, ACE_LOCK, ACE_CB>::init_malloc_header_ptr (void* pt
ACE_UNUSED_ARG (ptr);
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
}
-#endif /* 0 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif
diff --git a/ace/Managed_Object.cpp b/ace/Managed_Object.cpp
index 53381f88a7e..cd798b2216d 100644
--- a/ace/Managed_Object.cpp
+++ b/ace/Managed_Object.cpp
@@ -13,13 +13,11 @@
#include "ace/Managed_Object.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Managed_Object, "$Id$")
template <class TYPE>
ACE_Cleanup_Adapter<TYPE>::~ACE_Cleanup_Adapter (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_MANAGED_OBJECT_CPP */
diff --git a/ace/Managed_Object.h b/ace/Managed_Object.h
index b700a59cf13..041e7c2d82a 100644
--- a/ace/Managed_Object.h
+++ b/ace/Managed_Object.h
@@ -24,8 +24,6 @@
#include "ace/Object_Manager.h"
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Cleanup_Adapter
*
@@ -117,7 +115,7 @@ public:
// Get the preallocated object identified by "id". Returns a
// pointer to the object. Beware: no error indication is provided,
// because it can _only_ be used for accessing preallocated objects.
- // @note The function definition is inlined here so that it compiles
+ // Note: the function definition is inlined here so that it compiles
// on AIX 4.1 w/xlC v. 3.01.
static TYPE *get_preallocated_array (ACE_Object_Manager::Preallocated_Array identifier)
@@ -135,21 +133,17 @@ public:
// Get the preallocated array identified by "id". Returns a
// pointer to the array. Beware: no error indication is provided,
// because it can _only_ be used for accessing preallocated arrays.
- // @note The function definition is inlined here so that it compiles
+ // Note: the function definition is inlined here so that it compiles
// on AIX 4.1 w/xlC v. 3.01.
-protected:
-
+private:
// Disallow instantiation of this class.
ACE_UNIMPLEMENTED_FUNC (ACE_Managed_Object (void))
-
-private:
-
ACE_UNIMPLEMENTED_FUNC (ACE_Managed_Object (const ACE_Managed_Object<TYPE> &))
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Managed_Object<TYPE> &))
-};
-ACE_END_VERSIONED_NAMESPACE_DECL
+ friend class this_prevents_compiler_warning_about_only_private_constructors;
+};
#if defined (__ACE_INLINE__)
#include "ace/Managed_Object.inl"
diff --git a/ace/Managed_Object.inl b/ace/Managed_Object.inl
index 0619691d8a6..d4dd6043418 100644
--- a/ace/Managed_Object.inl
+++ b/ace/Managed_Object.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE>
ACE_INLINE
ACE_Cleanup_Adapter<TYPE>::ACE_Cleanup_Adapter (void)
@@ -19,5 +16,3 @@ ACE_Cleanup_Adapter<TYPE>::object (void)
{
return this->object_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Manual_Event.cpp b/ace/Manual_Event.cpp
index 57543a6d840..3864da3e06e 100644
--- a/ace/Manual_Event.cpp
+++ b/ace/Manual_Event.cpp
@@ -9,8 +9,6 @@
ACE_RCSID(ace, Manual_Event, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Manual_Event::ACE_Manual_Event (int initial_state,
int type,
const char *name,
@@ -18,12 +16,11 @@ ACE_Manual_Event::ACE_Manual_Event (int initial_state,
: ACE_Event (1,
initial_state,
type,
- ACE_TEXT_CHAR_TO_TCHAR (name),
+ ACE_TEXT_TO_TCHAR_IN (name),
arg)
{
}
-#if defined (ACE_HAS_WCHAR)
ACE_Manual_Event::ACE_Manual_Event (int initial_state,
int type,
const wchar_t *name,
@@ -31,11 +28,10 @@ ACE_Manual_Event::ACE_Manual_Event (int initial_state,
: ACE_Event (1,
initial_state,
type,
- ACE_TEXT_WCHAR_TO_TCHAR (name),
+ ACE_TEXT_TO_TCHAR_IN (name),
arg)
{
}
-#endif /* ACE_HAS_WCHAR */
void
ACE_Manual_Event::dump (void) const
@@ -45,4 +41,3 @@ ACE_Manual_Event::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Manual_Event.h b/ace/Manual_Event.h
index 77de173788e..888df828cc9 100644
--- a/ace/Manual_Event.h
+++ b/ace/Manual_Event.h
@@ -24,8 +24,6 @@
#include "ace/Event.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Manual_Event
*
@@ -45,13 +43,11 @@ public:
const char *name = 0,
void *arg = 0);
-#if defined (ACE_HAS_WCHAR)
/// constructor which will create manual event (wchar_t version)
ACE_Manual_Event (int initial_state,
int type,
const wchar_t *name,
void *arg = 0);
-#endif /* ACE_HAS_WCHAR */
/// Default dtor.
~ACE_Manual_Event (void);
@@ -63,8 +59,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Manual_Event.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Manual_Event.inl b/ace/Manual_Event.inl
index 42bf94f6404..1e4d560a855 100644
--- a/ace/Manual_Event.inl
+++ b/ace/Manual_Event.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Manual_Event::~ACE_Manual_Event (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Map.cpp b/ace/Map.cpp
new file mode 100644
index 00000000000..1faa6c18f23
--- /dev/null
+++ b/ace/Map.cpp
@@ -0,0 +1,19 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// Map.cpp
+//
+// = AUTHOR
+// Irfan Pyarali
+//
+// ============================================================================
+
+#include "ace/Map_T.h"
+
+ACE_RCSID(ace, Map, "$Id$")
+
diff --git a/ace/Map.h b/ace/Map.h
index 0e7c00b30b5..1da1db7a4a5 100644
--- a/ace/Map.h
+++ b/ace/Map.h
@@ -6,8 +6,6 @@
*
* $Id$
*
- * Backward compatibility header.
- *
* @author Irfan Pyarali
*/
//=============================================================================
diff --git a/ace/Map_Manager.cpp b/ace/Map_Manager.cpp
index f39124ce9d9..5c6267f2b5f 100644
--- a/ace/Map_Manager.cpp
+++ b/ace/Map_Manager.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_MAP_MANAGER_CPP
-#define ACE_MAP_MANAGER_CPP
+#ifndef ACE_MAP_MANAGER_C
+#define ACE_MAP_MANAGER_C
#include "ace/Map_Manager.h"
@@ -15,14 +15,20 @@
#include "ace/Map_Manager.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Map_Manager, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Entry)
+
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Manager)
+
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Const_Iterator_Base)
+
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Iterator_Base)
+
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Const_Iterator)
+
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Iterator)
+
ACE_ALLOC_HOOK_DEFINE(ACE_Map_Reverse_Iterator)
template <class EXT_ID, class INT_ID, class ACE_LOCK> int
@@ -696,6 +702,4 @@ ACE_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_MAP_MANAGER_CPP */
+#endif /* ACE_MAP_MANAGER_C */
diff --git a/ace/Map_Manager.h b/ace/Map_Manager.h
index e4f52edc099..1cf39698914 100644
--- a/ace/Map_Manager.h
+++ b/ace/Map_Manager.h
@@ -21,11 +21,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/Log_Msg.h"
#include "ace/Basic_Types.h"
-#include "ace/Global_Macros.h"
-#include "ace/Default_Constants.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declaration.
class ACE_Allocator;
@@ -264,8 +261,8 @@ public:
* possible to acquire the lock explicitly, which can be useful in
* some cases if you instantiate the <ACE_Atomic_Op> with an
* <ACE_Recursive_Mutex> or <ACE_Process_Mutex>, or if you need to
- * guard the state of an iterator.
- * @note The right name would be <lock>, but HP/C++ will choke on that!
+ * guard the state of an iterator. NOTE: the right name would be
+ * <lock>, but HP/C++ will choke on that!
*/
ACE_LOCK &mutex (void);
@@ -567,7 +564,7 @@ protected:
* <ACE_Map_Manager> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Map_Manager>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Map_Manager>'s
* internal lock, which is accessible via its <mutex> method.
*/
template <class EXT_ID, class INT_ID, class ACE_LOCK>
@@ -614,7 +611,7 @@ public:
* <ACE_Map_Manager> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Map_Manager>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Map_Manager>'s
* internal lock, which is accessible via its <mutex> method.
*/
template <class EXT_ID, class INT_ID, class ACE_LOCK>
@@ -661,7 +658,7 @@ public:
* <ACE_Map_Manager> it is iterating upon since locking is
* inherently inefficient and/or error-prone within an STL-style
* iterator. If you require locking, you can explicitly use an
- * ACE_Guard or ACE_Read_Guard on the <ACE_Map_Manager>'s
+ * <ACE_Guard> or <ACE_Read_Guard> on the <ACE_Map_Manager>'s
* internal lock, which is accessible via its <mutex> method.
*/
template <class EXT_ID, class INT_ID, class ACE_LOCK>
@@ -699,8 +696,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Map_Manager.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Map_Manager.inl b/ace/Map_Manager.inl
index c40a72d79f1..7ef6fdfbf3b 100644
--- a/ace/Map_Manager.inl
+++ b/ace/Map_Manager.inl
@@ -3,9 +3,6 @@
// $Id$
#include "ace/Guard_T.h"
-#include "ace/Log_Msg.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
# if ! defined (ACE_HAS_BROKEN_NOOP_DTORS)
template <class EXT_ID, class INT_ID> ACE_INLINE
@@ -717,5 +714,3 @@ ACE_Map_Reverse_Iterator<EXT_ID, INT_ID, ACE_LOCK>::operator-- (int)
--*this;
return retv;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Map_T.cpp b/ace/Map_T.cpp
index 2487481edc3..8aab011ffef 100644
--- a/ace/Map_T.cpp
+++ b/ace/Map_T.cpp
@@ -13,8 +13,6 @@
#include "ace/Map_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class KEY, class VALUE>
ACE_Map<KEY, VALUE>::~ACE_Map (void)
{
@@ -1338,6 +1336,4 @@ ACE_Map_Manager_Adapter<KEY, VALUE, KEY_GENERATOR>::rend_impl (void)
return temp;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_MAP_T_CPP */
diff --git a/ace/Map_T.h b/ace/Map_T.h
index 942b8bf1156..9ff658d4a7d 100644
--- a/ace/Map_T.h
+++ b/ace/Map_T.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Noop_Key_Generator
*
@@ -1593,8 +1591,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (ACE_Map_Manager_Adapter (const ACE_Map_Manager_Adapter<KEY, VALUE, KEY_GENERATOR> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Map_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Map_T.inl b/ace/Map_T.inl
index 8dea4a198b3..91a9f678ccc 100644
--- a/ace/Map_T.inl
+++ b/ace/Map_T.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE int
ACE_Noop_Key_Generator<T>::operator() (T &)
{
@@ -411,5 +408,3 @@ ACE_Map_Manager_Adapter<KEY, VALUE, KEY_GENERATOR>::key_generator (void)
{
return this->key_generator_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Mem_Map.cpp b/ace/Mem_Map.cpp
index 3202d04bc06..086051a79d9 100644
--- a/ace/Mem_Map.cpp
+++ b/ace/Mem_Map.cpp
@@ -23,8 +23,6 @@
ACE_RCSID(ace, Mem_Map, "Mem_Map.cpp,v 4.39 2003/11/01 11:15:13 dhinton Exp")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Mem_Map)
#if defined (ACE_USE_MAPPING_NAME)
@@ -125,7 +123,7 @@ ACE_Mem_Map::map_it (ACE_HANDLE handle,
if (result == -1)
return -1;
#else
- off_t result = ACE_OS::filesize (this->handle_);
+ long result = ACE_OS::filesize (this->handle_);
#endif /* CHORUS */
// At this point we know <result> is not negative...
@@ -394,5 +392,3 @@ ACE_Mem_Map::remove (void)
else
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Mem_Map.h b/ace/Mem_Map.h
index c72093faf40..8f270f633ac 100644
--- a/ace/Mem_Map.h
+++ b/ace/Mem_Map.h
@@ -15,7 +15,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +32,6 @@
#include "ace/os_include/os_fcntl.h"
#include "ace/Default_Constants.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Mem_Map
*
@@ -37,7 +40,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* This class works with both the mmap(2) UNIX system and the
* Win32 family of memory mapping system calls.
*/
-class ACE_Export ACE_Mem_Map
+class ACE_Memory_Export ACE_Mem_Map
{
public:
// = Initialization and termination methods.
@@ -45,7 +48,7 @@ public:
/// Default constructor.
ACE_Mem_Map (void);
- /// Map a file from an open file descriptor @a handle. This function
+ /// Map a file from an open file descriptor <handle>. This function
/// will lookup the length of the file if it is not given.
ACE_Mem_Map (ACE_HANDLE handle,
int length = -1,
@@ -55,7 +58,7 @@ public:
off_t offset = 0,
LPSECURITY_ATTRIBUTES sa = 0);
- /// Map a file specified by @a file_name.
+ /// Map a file specified by <file_name>.
ACE_Mem_Map (const ACE_TCHAR *filename,
int len = -1,
int flags = O_RDWR | O_CREAT,
@@ -66,7 +69,7 @@ public:
off_t offset = 0,
LPSECURITY_ATTRIBUTES sa = 0);
- /// Map a file from an open file descriptor @a handle. This function
+ /// Map a file from an open file descriptor <handle>. This function
/// will lookup the length of the file if it is not given.
int map (ACE_HANDLE handle,
int length = -1,
@@ -175,23 +178,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
private:
-
- /// This method does the dirty work of actually calling ::mmap to map
- /// the file into memory.
- int map_it (ACE_HANDLE handle,
- int len = -1,
- int prot = PROT_RDWR,
- int share = MAP_SHARED,
- void *addr = 0,
- off_t offset = 0,
- LPSECURITY_ATTRIBUTES sa = 0);
-
- // = Disallow copying and assignment.
- ACE_Mem_Map (const ACE_Mem_Map &);
- void operator = (const ACE_Mem_Map &);
-
-private:
-
/// Base address of the memory-mapped file.
void *base_addr_;
@@ -216,9 +202,20 @@ private:
/// if we opened the file.
int close_handle_;
-};
+ /// This method does the dirty work of actually calling ::mmap to map
+ /// the file into memory.
+ int map_it (ACE_HANDLE handle,
+ int len = -1,
+ int prot = PROT_RDWR,
+ int share = MAP_SHARED,
+ void *addr = 0,
+ off_t offset = 0,
+ LPSECURITY_ATTRIBUTES sa = 0);
-ACE_END_VERSIONED_NAMESPACE_DECL
+ // = Disallow copying and assignment.
+ ACE_UNIMPLEMENTED_FUNC (ACE_Mem_Map (const ACE_Mem_Map &))
+ ACE_UNIMPLEMENTED_FUNC (void operator = (const ACE_Mem_Map &))
+};
#if defined (__ACE_INLINE__)
#include "ace/Mem_Map.inl"
diff --git a/ace/Mem_Map.inl b/ace/Mem_Map.inl
index 0d67cfc5b02..3293b9a1365 100644
--- a/ace/Mem_Map.inl
+++ b/ace/Mem_Map.inl
@@ -1,13 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_mman.h"
#include "ace/OS_NS_sys_stat.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_HANDLE
ACE_Mem_Map::handle (void) const
{
@@ -257,5 +253,3 @@ ACE_Mem_Map::close_handle (void)
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Message_Block.cpp b/ace/Message_Block.cpp
index dc1bfd8f6c7..6dfce19a0ec 100644
--- a/ace/Message_Block.cpp
+++ b/ace/Message_Block.cpp
@@ -16,8 +16,6 @@ ACE_RCSID (ace,
Message_Block,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_Message_Block)
#if defined (ACE_ENABLE_TIMEPROBES)
@@ -584,14 +582,10 @@ ACE_Message_Block::ACE_Message_Block (const ACE_Message_Block &mb,
mb.message_block_allocator_) == -1)
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("ACE_Message_Block")));
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
+
// Align ourselves
char *start = ACE_ptr_align_binary (this->base (),
align);
-#else
- char *start = this->base ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
-
// Set our rd & wr pointers
this->rd_ptr (start);
this->wr_ptr (start);
@@ -615,25 +609,17 @@ ACE_Message_Block::ACE_Message_Block (const ACE_Message_Block &mb,
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("ACE_Message_Block")));
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
// Align ourselves
char *start = ACE_ptr_align_binary (this->base (),
align);
-#else
- char *start = this->base ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
-
// Set our rd & wr pointers
this->rd_ptr (start);
this->wr_ptr (start);
-#if !defined (ACE_LACKS_CDR_ALIGNMENT)
// Get the alignment offset of the incoming ACE_Message_Block
start = ACE_ptr_align_binary (mb.base (),
align);
-#else
- start = mb.base ();
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
+
// Actual offset for the incoming message block assuming that it
// is also aligned to the same "align" byte
@@ -648,9 +634,6 @@ ACE_Message_Block::ACE_Message_Block (const ACE_Message_Block &mb,
// to do what it wants
}
-#if defined (ACE_LACKS_CDR_ALIGNMENT)
- ACE_UNUSED_ARG (align);
-#endif /* ACE_LACKS_CDR_ALIGNMENT */
}
int
@@ -1382,5 +1365,3 @@ template class ACE_Guard <ACE_Lock>;
// #pragma instantiate ACE_Malloc <ACE_LOCAL_MEMORY_POOL, ACE_Null_Mutex>
// #pragma instantiate ACE_Allocator_Adapter <ACE_Malloc <ACE_LOCAL_MEMORY_POOL, ACE_Null_Mutex> >
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Message_Block.h b/ace/Message_Block.h
index 20b20810587..f5111c199db 100644
--- a/ace/Message_Block.h
+++ b/ace/Message_Block.h
@@ -26,8 +26,6 @@
#include "ace/Global_Macros.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
class ACE_Allocator;
class ACE_Data_Block;
@@ -523,25 +521,25 @@ public:
size_t space (void) const;
//@}
- // = ACE_Data_Block methods.
+ // = <ACE_Data_Block> methods.
/**
- * Get a pointer to the data block. Note that the ACE_Message_Block
+ * Get a pointer to the data block. Note that the <ACE_Message_Block>
* still references the block; this call does not change the reference
* count.
*/
ACE_Data_Block *data_block (void) const;
/**
- * Set a new data block pointer. The original ACE_Data_Block is released
+ * Set a new data block pointer. The original <ACE_Data_Block> is released
* as a result of this call. If you need to keep the original block, call
- * <replace_data_block> instead. Upon return, this ACE_Message_Block
- * holds a pointer to the new ACE_Data_Block, taking over the reference
+ * <replace_data_block> instead. Upon return, this <ACE_Message_Block>
+ * holds a pointer to the new <ACE_Data_Block>, taking over the reference
* you held on it prior to the call.
*/
void data_block (ACE_Data_Block *);
- /// Set a new data block pointer. A pointer to the original ACE_Data_Block
+ /// Set a new data block pointer. A pointer to the original <ACE_Data_Block>
/// is returned, and not released (as it is with <data_block>).
ACE_Data_Block *replace_data_block (ACE_Data_Block*);
@@ -552,14 +550,14 @@ public:
/// Set the continuation field.
void cont (ACE_Message_Block *);
- // = Pointer to the <Message_Block> directly ahead in the ACE_Message_Queue.
+ // = Pointer to the <Message_Block> directly ahead in the <ACE_Message_Queue>.
/// Get link to next message.
ACE_Message_Block *next (void) const;
/// Set link to next message.
void next (ACE_Message_Block *);
- // = Pointer to the <Message_Block> directly behind in the ACE_Message_Queue.
+ // = Pointer to the <Message_Block> directly behind in the <ACE_Message_Queue>.
/// Get link to prev message.
ACE_Message_Block *prev (void) const;
@@ -666,7 +664,7 @@ private:
* @class ACE_Data_Block
*
* @brief Stores the data payload that is accessed via one or more
- * ACE_Message_Block's.
+ * <ACE_Message_Block>s.
*
* This data structure is reference counted to maximize
* sharing. It also contains the <locking_strategy_> (which
@@ -824,25 +822,25 @@ protected:
// = Strategies.
/**
- * Pointer to the allocator defined for this ACE_Data_Block. Note
+ * Pointer to the allocator defined for this <ACE_Data_Block>. Note
* that this pointer is shared by all owners of this
- * ACE_Data_Block.
+ * <ACE_Data_Block>.
*/
ACE_Allocator *allocator_strategy_;
/**
* Pointer to the locking strategy defined for this
- * ACE_Data_Block. This is used to protect regions of code that
- * access shared ACE_Data_Block state. Note that this lock is
- * shared by all owners of the ACE_Data_Block's data.
+ * <ACE_Data_Block>. This is used to protect regions of code that
+ * access shared <ACE_Data_Block> state. Note that this lock is
+ * shared by all owners of the <ACE_Data_Block>'s data.
*/
ACE_Lock *locking_strategy_;
/**
- * Reference count for this ACE_Data_Block, which is used to avoid
+ * Reference count for this <ACE_Data_Block>, which is used to avoid
* deep copies (i.e., <clone>). Note that this pointer value is
* shared by all owners of the <Data_Block>'s data, i.e., all the
- * ACE_Message_Blocks.
+ * <ACE_Message_Block>s.
*/
int reference_count_;
@@ -859,9 +857,9 @@ private:
* @class ACE_Dynamic_Message_Strategy
*
* @brief An abstract base class which provides dynamic priority
- * evaluation methods for use by the ACE_Dynamic_Message_Queue
+ * evaluation methods for use by the <ACE_Dynamic_Message_Queue>
* class or any other class which needs to manage the priorities
- * of a collection of ACE_Message_Block's dynamically.
+ * of a collection of <ACE_Message_Block>s dynamically.
*
* Methods for deadline and laxity based priority evaluation are
* provided. These methods assume a specific partitioning of
@@ -1035,8 +1033,6 @@ public:
virtual void dump (void) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Message_Block.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Message_Block.inl b/ace/Message_Block.inl
index 2f67cc25078..b1d5152fbe7 100644
--- a/ace/Message_Block.inl
+++ b/ace/Message_Block.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Message_Block.i
ACE_INLINE ACE_Data_Block *
ACE_Message_Block::data_block (void) const
@@ -622,5 +621,3 @@ ACE_Dynamic_Message_Strategy::priority_status (ACE_Message_Block & mb,
return status;
}
// returns the priority status of the message
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Message_Block_T.cpp b/ace/Message_Block_T.cpp
index 4c20ed48a6b..70621872a19 100644
--- a/ace/Message_Block_T.cpp
+++ b/ace/Message_Block_T.cpp
@@ -1,7 +1,9 @@
// $Id$
-#ifndef ACE_MESSAGE_BLOCK_T_CPP
-#define ACE_MESSAGE_BLOCK_T_CPP
+#if !defined (ACE_MESSAGE_BLOCK_T_C)
+#define ACE_MESSAGE_BLOCK_T_C
+
+ACE_RCSID(ace, Message_Block_T, "$Id$")
#include "ace/Malloc_Base.h" /* Need ACE_Allocator */
@@ -11,8 +13,6 @@
#include "ace/os_include/os_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class L>
ACE_Locked_Data_Block<L>::~ACE_Locked_Data_Block (void)
{
@@ -46,6 +46,4 @@ ACE_Locked_Data_Block<ACE_LOCK>::clone_nocopy (ACE_Message_Block::Message_Flags
return nb;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_MESSAGE_BLOCK_T_CPP */
+#endif /* ACE_MESSAGE_BLOCK_T_C */
diff --git a/ace/Message_Block_T.h b/ace/Message_Block_T.h
index c1b4818a880..f2f1732c56a 100644
--- a/ace/Message_Block_T.h
+++ b/ace/Message_Block_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Locked_Data_Block
*
@@ -69,8 +67,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (ACE_Locked_Data_Block (const ACE_Locked_Data_Block<ACE_LOCK> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Message_Block_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Message_Block_T.inl b/ace/Message_Block_T.inl
index 6829bd6c360..279dcaa704d 100644
--- a/ace/Message_Block_T.inl
+++ b/ace/Message_Block_T.inl
@@ -1,8 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Message_Block_T.i
+
template<class ACE_LOCK> ACE_INLINE
ACE_Locked_Data_Block<ACE_LOCK>::ACE_Locked_Data_Block (void)
@@ -27,5 +27,3 @@ ACE_Locked_Data_Block (size_t size,
data_block_allocator)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Message_Queue.cpp b/ace/Message_Queue.cpp
index 4e4cc1a461d..019835e1cef 100644
--- a/ace/Message_Queue.cpp
+++ b/ace/Message_Queue.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Message_Queue_Base::~ACE_Message_Queue_Base (void)
{
}
@@ -371,8 +369,9 @@ ACE_Message_Queue_Vx::wait_not_empty_cond (ACE_Guard<ACE_Null_Mutex> &mon,
#if ! defined (ACE_NEEDS_FUNC_DEFINITIONS)
int
ACE_Message_Queue_Vx::peek_dequeue_head (ACE_Message_Block *&,
- ACE_Time_Value *)
+ ACE_Time_Value *tv)
{
+ ACE_UNUSED_ARG (tv);
ACE_NOTSUP_RETURN (-1);
}
#endif /* ! ACE_NEEDS_FUNC_DEFINITIONS */
@@ -432,11 +431,11 @@ ACE_Message_Queue_NT::enqueue (ACE_Message_Block *new_item,
size_t mlength = new_item->total_length ();
// Note - we send ACTIVATED in the 3rd arg to tell the completion
// routine it's _NOT_ being woken up because of deactivate().
-#if defined (_MSC_VER) && (_MSC_VER < 1300)
- DWORD state_to_post;
-#else
+#if defined (ACE_WIN64)
ULONG_PTR state_to_post;
-#endif
+#else
+ DWORD state_to_post;
+#endif /* ACE_WIN64 */
state_to_post = ACE_Message_Queue_Base::ACTIVATED;
if (::PostQueuedCompletionStatus (this->completion_port_,
static_cast<DWORD> (msize),
@@ -446,7 +445,7 @@ ACE_Message_Queue_NT::enqueue (ACE_Message_Block *new_item,
// Update the states once I succeed.
this->cur_bytes_ += msize;
this->cur_length_ += mlength;
- return ACE_Utils::Truncate (++this->cur_count_);
+ return ++this->cur_count_;
}
}
else
@@ -475,11 +474,11 @@ ACE_Message_Queue_NT::dequeue (ACE_Message_Block *&first_item,
++this->cur_thrs_; // Increase the waiting thread count.
}
-#if defined (_MSC_VER) && (_MSC_VER < 1300)
- DWORD queue_state;
-#else
+#if defined (ACE_WIN64)
ULONG_PTR queue_state;
-#endif
+#else
+ DWORD queue_state;
+#endif /* ACE_WIN64 */
DWORD msize;
// Get a message from the completion port.
int retv = ::GetQueuedCompletionStatus (this->completion_port_,
@@ -497,7 +496,7 @@ ACE_Message_Queue_NT::dequeue (ACE_Message_Block *&first_item,
--this->cur_count_;
this->cur_bytes_ -= msize;
this->cur_length_ -= first_item->total_length ();
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
else // Woken up by deactivate () or pulse ().
errno = ESHUTDOWN;
@@ -606,5 +605,3 @@ ACE_Message_Queue_NT::dump (void) const
}
#endif /* ACE_WIN32 && ACE_HAS_WINNT4 != 0 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Message_Queue.h b/ace/Message_Queue.h
index e33563bc4a8..0abb4156312 100644
--- a/ace/Message_Queue.h
+++ b/ace/Message_Queue.h
@@ -22,8 +22,6 @@
#include "ace/IO_Cntl_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class ACE_Notification_Strategy;
template <ACE_SYNCH_DECL> class ACE_Message_Queue_Iterator;
@@ -32,7 +30,7 @@ template <ACE_SYNCH_DECL> class ACE_Message_Queue_Reverse_Iterator;
/**
* @class ACE_Message_Queue_Base
*
- * @brief Base class for ACE_Message_Queue, which is the central
+ * @brief Base class for <ACE_Message_Queue>, which is the central
* queueing facility for messages in the ACE framework.
*
* For all the <ACE_Time_Value> pointer parameters the caller will
@@ -90,7 +88,7 @@ public:
// = Enqueue and dequeue methods.
/**
- * Retrieve the first ACE_Message_Block without removing it. Note
+ * Retrieve the first <ACE_Message_Block> without removing it. Note
* that <timeout> uses <{absolute}> time rather than <{relative}>
* time. If the <timeout> elapses without receiving a message -1 is
* returned and <errno> is set to <EWOULDBLOCK>. If the queue is
@@ -208,20 +206,17 @@ public:
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
-private:
- // = Disallow copying and assignment.
- ACE_Message_Queue_Base (const ACE_Message_Queue_Base &);
- void operator= (const ACE_Message_Queue_Base &);
-
protected:
/// Indicates the state of the queue, which can be
/// <ACTIVATED>, <DEACTIVATED>, or <PULSED>.
int state_;
+private:
+ // = Disallow these operations.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Message_Queue_Base &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Message_Queue_Base (const ACE_Message_Queue_Base &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Include the templates here.
#include "ace/Message_Queue_T.h"
@@ -230,8 +225,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/Null_Mutex.h"
# include "ace/Null_Condition.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Message_Queue_Vx
*
@@ -242,7 +235,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* on the native MsgQ implementation to take care of that. The
* only system calls that it uses are VxWorks msgQLib calls, so
* it is suitable for use in interrupt service routines.
- * @note *Many* ACE_Message_Queue features are not supported with
+ * NOTE: *Many* ACE_Message_Queue features are not supported with
* this specialization, including:
* * The two size arguments to the constructor and <open> are
* interpreted differently. The first is interpreted as the
@@ -259,7 +252,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* * <peek_dequeue_head>.
* * <ACE_Message_Queue_Iterators>.
* * The ability to change low and high water marks after creation.
- * * <Message_Block> chains. The continuation field of ACE_Message_Block
+ * * <Message_Block> chains. The continuation field of <ACE_Message_Block>
* * is ignored; only the first block of a fragment chain is
* * recognized.
*/
@@ -395,16 +388,6 @@ protected:
MSG_Q_ID msgq (void);
private:
-
- // Disallow copying and assignment.
- ACE_Message_Queue_Vx (const ACE_Message_Queue_Vx &);
- void operator= (const ACE_Message_Queue_Vx &);
-
- ACE_UNIMPLEMENTED_FUNC (virtual int peek_dequeue_head
- (ACE_Message_Block *&first_item,
- ACE_Time_Value *tv = 0))
-
-private:
/// Maximum number of messages that can be queued.
int max_messages_;
@@ -414,14 +397,16 @@ private:
/// Native message queue options.
int options_;
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+ // = Disallow these operations.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Message_Queue_Vx &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Message_Queue_Vx (const ACE_Message_Queue_Vx &))
+ ACE_UNIMPLEMENTED_FUNC (virtual int peek_dequeue_head
+ (ACE_Message_Block *&first_item,
+ ACE_Time_Value *tv = 0))
+};
#endif /* VXWORKS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32) && (ACE_HAS_WINNT4 != 0)
/**
* @class ACE_Message_Queue_NT
@@ -430,11 +415,11 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*
* Implementation of a strip-downed ACE_Message_Queue using NT's
* IO completion port mechanism.
- * @note *Many* ACE_Message_Queue features are not supported with
+ * NOTE: *Many* ACE_Message_Queue features are not supported with
* this implementation, including:
* * <open> method have different signatures.
- * * <dequeue_head> *requires* that the ACE_Message_Block
- * pointer argument point to an ACE_Message_Block that was
+ * * <dequeue_head> *requires* that the <ACE_Message_Block>
+ * pointer argument point to an <ACE_Message_Block> that was
* allocated by the caller.
* * <peek_dequeue_head>.
* * <ACE_Message_Queue_Iterators>.
@@ -580,12 +565,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
private:
-
- // Disallow copying and assignment.
- ACE_Message_Queue_NT (const ACE_Message_Queue_NT &);
- void operator= (const ACE_Message_Queue_NT &);
-
-private:
// = Internal states.
/// Maximum threads that can be released (and run) concurrently.
@@ -613,10 +592,12 @@ private:
/// Underlying NT IoCompletionPort.
ACE_HANDLE completion_port_;
+ // = Disallow these operations.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Message_Queue_NT &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Message_Queue_NT (const ACE_Message_Queue_NT &))
};
#endif /* ACE_WIN32 && ACE_HAS_WINNT4 != 0 */
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "ace/Message_Queue.inl"
diff --git a/ace/Message_Queue.inl b/ace/Message_Queue.inl
index 4ae6c43f3eb..4280f5b1c5b 100644
--- a/ace/Message_Queue.inl
+++ b/ace/Message_Queue.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Message_Queue_Base::ACE_Message_Queue_Base (void)
{
@@ -139,5 +136,3 @@ ACE_Message_Queue_NT::notification_strategy (ACE_Notification_Strategy *)
}
#endif /* ACE_WIN32 && ACE_HAS_WINNT4 != 0 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Message_Queue_T.cpp b/ace/Message_Queue_T.cpp
index 9bfcd5cc5f2..9fc5ad5ec92 100644
--- a/ace/Message_Queue_T.cpp
+++ b/ace/Message_Queue_T.cpp
@@ -14,9 +14,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Notification_Strategy.h"
-#include "ace/Truncate.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Message_Queue)
ACE_ALLOC_HOOK_DEFINE(ACE_Dynamic_Message_Queue)
@@ -848,7 +845,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::flush_i (void)
// and <release> their memory.
for (this->tail_ = 0; this->head_ != 0; )
{
- ++number_flushed;
+ number_flushed++;
size_t mb_bytes = 0;
size_t mb_length = 0;
@@ -857,7 +854,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::flush_i (void)
// Subtract off all of the bytes associated with this message.
this->cur_bytes_ -= mb_bytes;
this->cur_length_ -= mb_length;
- --this->cur_count_;
+ this->cur_count_--;
ACE_Message_Block *temp = this->head_;
this->head_ = this->head_->next ();
@@ -978,48 +975,35 @@ ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_tail_i (ACE_Message_Block *new_item)
if (new_item == 0)
return -1;
- // Update the queued size and length, taking into account any chained
- // blocks (total_size_and_length() counts all continuation blocks).
- // Keep count of how many blocks we're adding and, if there is a chain of
- // blocks, find the end in seq_tail and be sure they're properly
- // back-connected along the way.
- ACE_Message_Block *seq_tail = new_item;
- ++this->cur_count_;
- new_item->total_size_and_length (this->cur_bytes_,
- this->cur_length_);
- while (seq_tail->next () != 0)
- {
- seq_tail->next ()->prev (seq_tail);
- seq_tail = seq_tail->next ();
- ++this->cur_count_;
- seq_tail->total_size_and_length (this->cur_bytes_,
- this->cur_length_);
- }
-
// List was empty, so build a new one.
if (this->tail_ == 0)
{
this->head_ = new_item;
- this->tail_ = seq_tail;
- // seq_tail->next (0); This is a condition of the while() loop above.
+ this->tail_ = new_item;
+ new_item->next (0);
new_item->prev (0);
}
// Link at the end.
else
{
- // seq_tail->next (0); This is a condition of the while() loop above.
+ new_item->next (0);
this->tail_->next (new_item);
new_item->prev (this->tail_);
- this->tail_ = seq_tail;
+ this->tail_ = new_item;
}
+ // Make sure to count all the bytes in a composite message!!!
+ new_item->total_size_and_length (this->cur_bytes_,
+ this->cur_length_);
+ this->cur_count_++;
+
if (this->signal_dequeue_waiters () == -1)
return -1;
else
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
-// Actually put the node(s) at the head (no locking)
+// Actually put the node at the head (no locking)
template <ACE_SYNCH_DECL> int
ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_head_i (ACE_Message_Block *new_item)
@@ -1029,38 +1013,25 @@ ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_head_i (ACE_Message_Block *new_item)
if (new_item == 0)
return -1;
- // Update the queued size and length, taking into account any chained
- // blocks (total_size_and_length() counts all continuation blocks).
- // Keep count of how many blocks we're adding and, if there is a chain of
- // blocks, find the end in seq_tail and be sure they're properly
- // back-connected along the way.
- ACE_Message_Block *seq_tail = new_item;
- ++this->cur_count_;
- new_item->total_size_and_length (this->cur_bytes_,
- this->cur_length_);
- while (seq_tail->next () != 0)
- {
- seq_tail->next ()->prev (seq_tail);
- seq_tail = seq_tail->next ();
- ++this->cur_count_;
- seq_tail->total_size_and_length (this->cur_bytes_,
- this->cur_length_);
- }
-
new_item->prev (0);
- seq_tail->next (this->head_);
+ new_item->next (this->head_);
if (this->head_ != 0)
- this->head_->prev (seq_tail);
+ this->head_->prev (new_item);
else
- this->tail_ = seq_tail;
+ this->tail_ = new_item;
this->head_ = new_item;
+ // Make sure to count all the bytes in a composite message!!!
+ new_item->total_size_and_length (this->cur_bytes_,
+ this->cur_length_);
+ this->cur_count_++;
+
if (this->signal_dequeue_waiters () == -1)
return -1;
else
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
// Actually put the node at its proper position relative to its
@@ -1074,12 +1045,6 @@ ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_i (ACE_Message_Block *new_item)
if (new_item == 0)
return -1;
- // Since this method uses enqueue_head_i() and enqueue_tail_i() for
- // special situations, and this method doesn't support enqueueing
- // chains of blocks off the 'next' pointer, make sure the new_item's
- // next pointer is 0.
- new_item->next (0);
-
if (this->head_ == 0)
// Check for simple case of an empty queue, where all we need to
// do is insert <new_item> into the head.
@@ -1126,12 +1091,12 @@ ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_i (ACE_Message_Block *new_item)
// Make sure to count all the bytes in a composite message!!!
new_item->total_size_and_length (this->cur_bytes_,
this->cur_length_);
- ++this->cur_count_;
+ this->cur_count_++;
if (this->signal_dequeue_waiters () == -1)
return -1;
else
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
// Actually put the node at its proper position relative to its
@@ -1146,12 +1111,6 @@ ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_deadline_i (ACE_Message_Block *new_ite
if (new_item == 0)
return -1;
- // Since this method uses enqueue_head_i() and enqueue_tail_i() for
- // special situations, and this method doesn't support enqueueing
- // chains of blocks off the 'next' pointer, make sure the new_item's
- // next pointer is 0.
- new_item->next (0);
-
if (this->head_ == 0)
// Check for simple case of an empty queue, where all we need to
// do is insert <new_item> into the head.
@@ -1193,7 +1152,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::enqueue_deadline_i (ACE_Message_Block *new_ite
// Make sure to count all the bytes in a composite message!!!
new_item->total_size_and_length (this->cur_bytes_,
this->cur_length_);
- ++this->cur_count_;
+ this->cur_count_++;
if (this->signal_dequeue_waiters () == -1)
return -1;
@@ -1232,7 +1191,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_head_i (ACE_Message_Block *&first_item
// Subtract off all of the bytes associated with this message.
this->cur_bytes_ -= mb_bytes;
this->cur_length_ -= mb_length;
- --this->cur_count_;
+ this->cur_count_--;
if (this->cur_count_ == 0 && this->head_ == this->tail_)
this->head_ = this->tail_ = 0;
@@ -1247,7 +1206,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_head_i (ACE_Message_Block *&first_item
&& this->signal_enqueue_waiters () == -1)
return -1;
else
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
// Get the earliest (i.e., FIFO) ACE_Message_Block with the lowest
@@ -1308,7 +1267,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_prio_i (ACE_Message_Block *&dequeued)
// Subtract off all of the bytes associated with this message.
this->cur_bytes_ -= mb_bytes;
this->cur_length_ -= mb_length;
- --this->cur_count_;
+ this->cur_count_--;
if (this->cur_count_ == 0 && this->head_ == this->tail_)
this->head_ = this->tail_ = 0;
@@ -1323,7 +1282,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_prio_i (ACE_Message_Block *&dequeued)
&& this->signal_enqueue_waiters () == -1)
return -1;
else
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
// Actually get the last ACE_Message_Block (no locking, so must be
@@ -1357,7 +1316,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_tail_i (ACE_Message_Block *&dequeued)
// Subtract off all of the bytes associated with this message.
this->cur_bytes_ -= mb_bytes;
this->cur_length_ -= mb_length;
- --this->cur_count_;
+ this->cur_count_--;
if (this->cur_count_ == 0 && this->head_ == this->tail_)
this->head_ = this->tail_ = 0;
@@ -1372,7 +1331,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_tail_i (ACE_Message_Block *&dequeued)
&& this->signal_enqueue_waiters () == -1)
return -1;
else
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
// Actually get the ACE_Message_Block with the lowest deadline time
@@ -1426,7 +1385,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::dequeue_deadline_i (ACE_Message_Block *&dequeu
// Subtract off all of the bytes associated with this message.
this->cur_bytes_ -= mb_bytes;
this->cur_length_ -= mb_length;
- --this->cur_count_;
+ this->cur_count_--;
if (this->cur_count_ == 0 && this->head_ == this->tail_)
this->head_ = this->tail_ = 0;
@@ -1468,7 +1427,7 @@ ACE_Message_Queue<ACE_SYNCH_USE>::peek_dequeue_head (ACE_Message_Block *&first_i
return -1;
first_item = this->head_;
- return ACE_Utils::Truncate (this->cur_count_);
+ return this->cur_count_;
}
template <ACE_SYNCH_DECL> int
@@ -1910,7 +1869,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE>::remove_messages (ACE_Message_Block *&l
temp1 != 0;
temp1 = temp1->next ())
{
- --this->cur_count_;
+ this->cur_count_--;
size_t mb_bytes = 0;
size_t mb_length = 0;
@@ -2130,7 +2089,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE>::enqueue_i (ACE_Message_Block *new_item
mb_length);
this->cur_bytes_ += mb_bytes;
this->cur_length_ += mb_length;
- ++this->cur_count_;
+ this->cur_count_++;
if (this->signal_dequeue_waiters () == -1)
return -1;
@@ -2319,7 +2278,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE>::dequeue_head_i (ACE_Message_Block *&fi
// Subtract off all of the bytes associated with this message.
this->cur_bytes_ -= mb_bytes;
this->cur_length_ -= mb_length;
- --this->cur_count_;
+ this->cur_count_--;
// Only signal enqueueing threads if we've fallen below the low
// water mark.
@@ -2704,7 +2663,4 @@ ACE_Message_Queue_Factory<ACE_SYNCH_USE>::create_NT_message_queue (size_t max_th
#endif /* ACE_WIN32 && ACE_HAS_WINNT4 != 0 */
#endif /* defined (VXWORKS) */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_MESSAGE_QUEUE_T_CPP */
diff --git a/ace/Message_Queue_T.h b/ace/Message_Queue_T.h
index 46ef61c79c7..6bd8186fd84 100644
--- a/ace/Message_Queue_T.h
+++ b/ace/Message_Queue_T.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (VXWORKS)
class ACE_Message_Queue_Vx;
#endif /* defined (VXWORKS) */
@@ -35,19 +33,14 @@ class ACE_Message_Queue_NT;
/**
* @class ACE_Message_Queue
*
- * @brief A message queueing facility with parameterized synchronization
- * capability. ACE_Message_Queue is modeled after the queueing facilities
- * in System V STREAMs.
- *
- * ACE_Message_Queue is the primary queueing facility for
- * messages in the ACE framework. It's one template argument parameterizes
- * the queue's synchronization. The argument specifies a synchronization
- * strategy. The two main strategies available for ACE_SYNCH_DECL are:
- * -# ACE_MT_SYNCH: all operations are thread-safe
- * -# ACE_NULL_SYNCH: no synchronization and no locking overhead
+ * @brief A threaded message queueing facility, modeled after the
+ * queueing facilities in System V STREAMs.
*
- * All data passing through ACE_Message_Queue is in the form of
- * ACE_Message_Block objects. @sa ACE_Message_Block.
+ * An <ACE_Message_Queue> is the central queueing facility for
+ * messages in the ACE framework. If <ACE_SYNCH_DECL> is
+ * <ACE_MT_SYNCH> then all operations are thread-safe.
+ * Otherwise, if it's <ACE_NULL_SYNCH> then there's no locking
+ * overhead.
*/
template <ACE_SYNCH_DECL>
class ACE_Message_Queue : public ACE_Message_Queue_Base
@@ -63,91 +56,83 @@ public:
REVERSE_ITERATOR;
// = Initialization and termination methods.
- //@{
/**
- * Initialize an ACE_Message_Queue.
- *
- * @param hwm High water mark. Determines how many bytes can be stored in a
- * queue before it's considered full. Supplier threads must block
- * until the queue is no longer full.
- * @param lwm Low water mark. Determines how many bytes must be in the queue
- * before supplier threads are allowed to enqueue additional
- * data. By default, the @a hwm equals @a lwm, which means
- * that suppliers will be able to enqueue new messages as soon as
- * a consumer removes any message from the queue. Making the low
- * water mark smaller than the high water mark forces consumers to
- * drain more messages from the queue before suppliers can enqueue
- * new messages, which can minimize the "silly window syndrome."
- * @param ns Notification strategy. Pointer to an object conforming to the
- * ACE_Notification_Strategy interface. If set, the object's
- * notify(void) method will be called each time data is added to
- * this ACE_Message_Queue. @see ACE_Reactor_Notification_Strategy.
+ * Initialize an <ACE_Message_Queue>. The <high_water_mark>
+ * determines how many bytes can be stored in a queue before it's
+ * considered "full." Supplier threads must block until the queue
+ * is no longer full. The <low_water_mark> determines how many
+ * bytes must be in the queue before supplier threads are allowed to
+ * enqueue additional <ACE_Message_Block>s. By default, the
+ * <high_water_mark> equals the <low_water_mark>, which means that
+ * suppliers will be able to enqueue new messages as soon as a
+ * consumer removes any message from the queue. Making the
+ * <low_water_mark> smaller than the <high_water_mark> forces
+ * consumers to drain more messages from the queue before suppliers
+ * can enqueue new messages, which can minimize the "silly window
+ * syndrome."
+ */
+ ACE_Message_Queue (size_t high_water_mark = ACE_Message_Queue_Base::DEFAULT_HWM,
+ size_t low_water_mark = ACE_Message_Queue_Base::DEFAULT_LWM,
+ ACE_Notification_Strategy * = 0);
+
+ /**
+ * Initialize an <ACE_Message_Queue>. The <high_water_mark>
+ * determines how many bytes can be stored in a queue before it's
+ * considered "full." Supplier threads must block until the queue
+ * is no longer full. The <low_water_mark> determines how many
+ * bytes must be in the queue before supplier threads are allowed to
+ * enqueue additional <ACE_Message_Block>s. By default, the
+ * <high_water_mark> equals the <low_water_mark>, which means that
+ * suppliers will be able to enqueue new messages as soon as a
+ * consumer removes any message from the queue. Making the
+ * <low_water_mark> smaller than the <high_water_mark> forces
+ * consumers to drain more messages from the queue before suppliers
+ * can enqueue new messages, which can minimize the "silly window
+ * syndrome."
*/
- ACE_Message_Queue (size_t hwm = ACE_Message_Queue_Base::DEFAULT_HWM,
- size_t lwm = ACE_Message_Queue_Base::DEFAULT_LWM,
- ACE_Notification_Strategy *ns = 0);
virtual int open (size_t hwm = ACE_Message_Queue_Base::DEFAULT_HWM,
size_t lwm = ACE_Message_Queue_Base::DEFAULT_LWM,
- ACE_Notification_Strategy *ns = 0);
- //@}
+ ACE_Notification_Strategy * = 0);
- /// Releases all resources from the message queue and marks it deactivated.
- /// @sa flush().
- ///
- /// @retval The number of messages released from the queue; -1 on error.
+ /// Release all resources from the message queue and mark it as deactivated.
+ /// Returns the number of messages released from the queue.
virtual int close (void);
- /// Releases all resources from the message queue and marks it deactivated.
+ /// Release all resources from the message queue and mark it as deactivated.
virtual ~ACE_Message_Queue (void);
- /// Releases all resources from the message queue but does not mark it
- /// deactivated.
- /// @sa close().
+ /// Release all resources from the message queue but do not mark it
+ /// as deactivated.
/**
* This method holds the queue lock during this operation.
*
- * @return The number of messages flushed; -1 on error.
+ * @return The number of messages flushed.
*/
virtual int flush (void);
/// Release all resources from the message queue but do not mark it
/// as deactivated.
/**
- * @pre The caller must be holding the queue lock before calling this
+ * The caller must be holding the queue lock before calling this
* method.
*
* @return The number of messages flushed.
*/
virtual int flush_i (void);
- /** @name Enqueue and dequeue methods
- *
- * The enqueue and dequeue methods accept a timeout value passed as
- * an ACE_Time_Value *. In all cases, if the timeout pointer is 0,
- * the caller will block until action is possible. If the timeout pointer
- * is non-zero, the call will wait (if needed, subject to water mark
- * settings) until the absolute time specified in the referenced
- * ACE_Time_Value object is reached. If the time is reached before the
- * desired action is possible, the method will return -1 with errno set
- * to @c EWOULDBLOCK. Regardless of the timeout setting, however,
- * these methods will also fail and return -1 when the queue is closed,
- * deactivated, pulsed, or when a signal occurs.
- *
- * See C++NPv2 Section 6.2 and APG Section 12.3 for a fuller treatment of
- * ACE_Message_Queue, enqueueing, dequeueing, and how these operations are
- * affected by queue state transitions.
- */
- //@{
+ // = Enqueue and dequeue methods.
+
+ // For the following enqueue and dequeue methods if <timeout> == 0,
+ // the caller will block until action is possible, else will wait
+ // until the absolute time specified in *<timeout> elapses). These
+ // calls will return, however, when queue is closed, deactivated,
+ // when a signal occurs, or if the time specified in timeout
+ // elapses, (in which case errno = EWOULDBLOCK).
+
/**
* Retrieve a pointer to the first ACE_Message_Block in the queue
* without removing it.
*
- * @note Because the block whose pointer is returned is still on the queue,
- * another thread may dequeue the referenced block at any time,
- * including before the calling thread examines the peeked-at block.
- * Be very careful with this method in multithreaded queueing
- * situations.
- *
* @param first_item Reference to an ACE_Message_Block * that will
* point to the first block on the queue. The block
* remains on the queue until this or another thread
@@ -156,9 +141,9 @@ public:
* for a block to be queued.
*
* @retval >0 The number of ACE_Message_Blocks on the queue.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * @retval -1 On failure. errno holds the reason. If EWOULDBLOCK,
+ * the timeout elapsed. If ESHUTDOWN, the queue was
+ * deactivated or pulsed.
*/
virtual int peek_dequeue_head (ACE_Message_Block *&first_item,
ACE_Time_Value *timeout = 0);
@@ -177,161 +162,112 @@ public:
*
* @retval >0 The number of ACE_Message_Blocks on the queue after adding
* the specified block.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * @retval -1 On failure. errno holds the reason. If EWOULDBLOCK,
+ * the timeout elapsed. If ESHUTDOWN, the queue was
+ * deactivated or pulsed.
*/
virtual int enqueue_prio (ACE_Message_Block *new_item,
ACE_Time_Value *timeout = 0);
/**
- * Enqueue an ACE_Message_Block into the queue in accordance with the
- * block's deadline time. FIFO order is maintained when messages of
- * the same deadline time are inserted consecutively.
- *
- * @param new_item Pointer to an ACE_Message_Block that will be
- * added to the queue. The block's @c msg_deadline_time()
- * method will be called to obtain the relative queueing
- * position.
- * @param timeout The absolute time the caller will wait until
- * for the block to be queued.
- *
- * @retval >0 The number of ACE_Message_Blocks on the queue after adding
- * the specified block.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Enqueue an <ACE_Message_Block *> into the <Message_Queue> in
+ * accordance with its <msg_deadline_time>. FIFO
+ * order is maintained when messages of the same deadline time are
+ * inserted consecutively. Note that <timeout> uses <{absolute}>
+ * time rather than <{relative}> time. If the <timeout> elapses
+ * without receiving a message -1 is returned and <errno> is set to
+ * <EWOULDBLOCK>. If the queue is deactivated -1 is returned and
+ * <errno> is set to <ESHUTDOWN>. Otherwise, returns -1 on failure,
+ * else the number of items still on the queue.
*/
virtual int enqueue_deadline (ACE_Message_Block *new_item,
ACE_Time_Value *timeout = 0);
/**
- * @deprecated This is an alias for enqueue_prio(). It's only here for
+ * This is an alias for <enqueue_prio>. It's only here for
* backwards compatibility and will go away in a subsequent release.
- * Please use enqueue_prio() instead.
+ * Please use <enqueue_prio> instead. Note that <timeout> uses
+ * <{absolute}> time rather than <{relative}> time.
*/
virtual int enqueue (ACE_Message_Block *new_item,
ACE_Time_Value *timeout = 0);
/**
- * Enqueue one or more ACE_Message_Block objects at the tail of the queue.
- * If the @a new_item @c next() pointer is non-zero, it is assumed to be the
- * start of a series of ACE_Message_Block objects connected via their
- * @c next() pointers. The series of blocks will be added to the queue in
- * the same order they are passed in as.
- *
- * @param new_item Pointer to an ACE_Message_Block that will be
- * added to the queue. If the block's @c next() pointer
- * is non-zero, all blocks chained from the @c next()
- * pointer are enqueued as well.
- * @param timeout The absolute time the caller will wait until
- * for the block to be queued.
- *
- * @retval >0 The number of ACE_Message_Blocks on the queue after adding
- * the specified block(s).
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Enqueue an <ACE_Message_Block *> at the end of the queue. Note
+ * that <timeout> uses <{absolute}> time rather than <{relative}>
+ * time. If the <timeout> elapses without receiving a message -1 is
+ * returned and <errno> is set to <EWOULDBLOCK>. If the queue is
+ * deactivated -1 is returned and <errno> is set to <ESHUTDOWN>.
+ * Otherwise, returns -1 on failure, else the number of items still
+ * on the queue.
*/
virtual int enqueue_tail (ACE_Message_Block *new_item,
ACE_Time_Value *timeout = 0);
/**
- * Enqueue one or more ACE_Message_Block objects at the head of the queue.
- * If the @a new_item @c next() pointer is non-zero, it is assumed to be the
- * start of a series of ACE_Message_Block objects connected via their
- * @c next() pointers. The series of blocks will be added to the queue in
- * the same order they are passed in as.
- *
- * @param new_item Pointer to an ACE_Message_Block that will be
- * added to the queue. If the block's @c next() pointer
- * is non-zero, all blocks chained from the @c next()
- * pointer are enqueued as well.
- * @param timeout The absolute time the caller will wait until
- * for the block to be queued.
- *
- * @retval >0 The number of ACE_Message_Blocks on the queue after adding
- * the specified block(s).
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Enqueue an <ACE_Message_Block *> at the head of the queue. Note
+ * that <timeout> uses <{absolute}> time rather than <{relative}>
+ * time. If the <timeout> elapses without receiving a message -1 is
+ * returned and <errno> is set to <EWOULDBLOCK>. If the queue is
+ * deactivated -1 is returned and <errno> is set to <ESHUTDOWN>.
+ * Otherwise, returns -1 on failure, else the number of items still
+ * on the queue.
*/
virtual int enqueue_head (ACE_Message_Block *new_item,
ACE_Time_Value *timeout = 0);
- /// This method is an alias for the dequeue_head() method.
+ /// This method is an alias for the following <dequeue_head> method.
virtual int dequeue (ACE_Message_Block *&first_item,
ACE_Time_Value *timeout = 0);
/**
- * Dequeue the ACE_Message_Block at the head of the queue and return
- * a pointer to the dequeued block.
- *
- * @param first_item Reference to an ACE_Message_Block * that will
- * be set to the address of the dequeued block.
- * @param timeout The absolute time the caller will wait until
- * for a block to be dequeued.
- *
- * @retval >=0 The number of ACE_Message_Blocks remaining in the queue.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Dequeue and return the <ACE_Message_Block *> at the head of the
+ * queue. Note that <timeout> uses <{absolute}> time rather than
+ * <{relative}> time. If the <timeout> elapses without receiving a
+ * message -1 is returned and <errno> is set to <EWOULDBLOCK>. If
+ * the queue is deactivated -1 is returned and <errno> is set to
+ * <ESHUTDOWN>. Otherwise, returns -1 on failure, else the number
+ * of items still on the queue.
*/
virtual int dequeue_head (ACE_Message_Block *&first_item,
ACE_Time_Value *timeout = 0);
/**
- * Dequeue the ACE_Message_Block that has the lowest priority (preserves
- * FIFO order for messages with the same priority) and return a pointer
- * to the dequeued block.
- *
- * @param first_item Reference to an ACE_Message_Block * that will
- * be set to the address of the dequeued block.
- * @param timeout The absolute time the caller will wait until
- * for a block to be dequeued.
- *
- * @retval >=0 The number of ACE_Message_Blocks remaining in the queue.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Dequeue and return earliest the <ACE_Message_Block *> that has
+ * the lowest priority (i.e., preserves FIFO order for messages with
+ * the same priority). Note that <timeout> uses <{absolute}> time
+ * rather than <{relative}> time. If the <timeout> elapses without
+ * receiving a message -1 is returned and <errno> is set to
+ * <EWOULDBLOCK>. If the queue is deactivated -1 is returned and
+ * <errno> is set to <ESHUTDOWN>. Otherwise, returns -1 on failure,
+ * else the number of items still on the queue.
*/
virtual int dequeue_prio (ACE_Message_Block *&first_item,
ACE_Time_Value *timeout = 0);
/**
- * Dequeue the ACE_Message_Block at the tail of the queue and return
- * a pointer to the dequeued block.
- *
- * @param dequeued Reference to an ACE_Message_Block * that will
- * be set to the address of the dequeued block.
- * @param timeout The absolute time the caller will wait until
- * for a block to be dequeued.
- *
- * @retval >=0 The number of ACE_Message_Blocks remaining in the queue.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Dequeue and return the <ACE_Message_Block *> at the tail of the
+ * queue. Note that <timeout> uses <{absolute}> time rather than
+ * <{relative}> time. If the <timeout> elapses without receiving a
+ * message -1 is returned and <errno> is set to <EWOULDBLOCK>. If
+ * the queue is deactivated -1 is returned and <errno> is set to
+ * <ESHUTDOWN>. Otherwise, returns -1 on failure, else the number
+ * of items still on the queue.
*/
virtual int dequeue_tail (ACE_Message_Block *&dequeued,
ACE_Time_Value *timeout = 0);
/**
- * Dequeue the ACE_Message_Block with the earliest deadline time and return
- * a pointer to the dequeued block.
- *
- * @param dequeued Reference to an ACE_Message_Block * that will
- * be set to the address of the dequeued block.
- * @param timeout The absolute time the caller will wait until
- * for a block to be dequeued.
- *
- * @retval >=0 The number of ACE_Message_Blocks remaining in the queue.
- * @retval -1 On failure. errno holds the reason. Common errno values are:
- * - EWOULDBLOCK: the timeout elapsed
- * - ESHUTDOWN: the queue was deactivated or pulsed
+ * Dequeue and return the <ACE_Message_Block *> with the lowest
+ * deadline time. Note that <timeout> uses <{absolute}> time rather than
+ * <{relative}> time. If the <timeout> elapses without receiving a
+ * message -1 is returned and <errno> is set to <EWOULDBLOCK>. If
+ * the queue is deactivated -1 is returned and <errno> is set to
+ * <ESHUTDOWN>. Otherwise, returns -1 on failure, else the number
+ * of items still on the queue.
*/
virtual int dequeue_deadline (ACE_Message_Block *&dequeued,
ACE_Time_Value *timeout = 0);
- //@}
// = Check if queue is full/empty.
/// True if queue is full, else false.
@@ -339,10 +275,7 @@ public:
/// True if queue is empty, else false.
virtual int is_empty (void);
- /** @name Queue statistics methods
- */
- //@{
-
+ // = Queue statistic methods.
/**
* Number of total bytes on the queue, i.e., sum of the message
* block sizes.
@@ -373,12 +306,7 @@ public:
*/
virtual void message_length (size_t new_length);
- //@}
-
-
- /** @name Water mark (flow control) methods
- */
- //@{
+ // = Flow control methods.
/**
* Get high watermark.
@@ -397,17 +325,11 @@ public:
/**
* Set the low watermark, which determines how many bytes must be in
* the queue before supplier threads are allowed to enqueue
- * additional ACE_Message_Blocks.
+ * additional <ACE_Message_Block>s.
*/
virtual void low_water_mark (size_t lwm);
- //@}
- /** @name Activation and queue state methods
- * See C++NPv2 Section 6.2 and APG Section 12.3 for a fuller treatment of
- * queue states and transitions and how the transitions affect message
- * enqueueing and dequeueing operations.
- */
- //@{
+ // = Activation control methods.
/**
* Deactivate the queue and wakeup all threads waiting on the queue
@@ -441,11 +363,8 @@ public:
/// Returns true if the state of the queue is <DEACTIVATED>,
/// but false if the queue's is <ACTIVATED> or <PULSED>.
virtual int deactivated (void);
- //@}
- /** @name Notification strategy methods
- */
- //@{
+ // = Notification hook.
/**
* This hook is automatically invoked by <enqueue_head>,
@@ -464,9 +383,8 @@ public:
/// Set the notification strategy for the <Message_Queue>
virtual void notification_strategy (ACE_Notification_Strategy *s);
- //@}
- /// Returns a reference to the lock used by the ACE_Message_Queue.
+ /// Returns a reference to the lock used by the <ACE_Message_Queue>.
virtual ACE_SYNCH_MUTEX_T &lock (void);
/// Dump the state of an object.
@@ -480,7 +398,7 @@ protected:
// These routines assume that locks are held by the corresponding
// public methods. Since they are virtual, you can change the
- // queueing mechanism by subclassing from ACE_Message_Queue.
+ // queueing mechanism by subclassing from <ACE_Message_Queue>.
/// Enqueue an <ACE_Message_Block *> in accordance with its priority.
virtual int enqueue_i (ACE_Message_Block *new_item);
@@ -576,7 +494,7 @@ protected:
size_t cur_length_;
/// Current number of messages in the queue.
- size_t cur_count_;
+ int cur_count_;
/// The notification strategy used when a new message is enqueued.
ACE_Notification_Strategy *notification_strategy_;
@@ -605,7 +523,7 @@ typedef ACE_Message_Queue<ACE_SYNCH> ACE_DEFAULT_MESSAGE_QUEUE_TYPE;
/**
* @class ACE_Message_Queue_Iterator
*
- * @brief Iterator for the ACE_Message_Queue.
+ * @brief Iterator for the <ACE_Message_Queue>.
*/
template <ACE_SYNCH_DECL>
class ACE_Message_Queue_Iterator
@@ -643,7 +561,7 @@ private:
/**
* @class ACE_Message_Queue_Reverse_Iterator
*
- * @brief Reverse Iterator for the ACE_Message_Queue.
+ * @brief Reverse Iterator for the <ACE_Message_Queue>.
*/
template <ACE_SYNCH_DECL>
class ACE_Message_Queue_Reverse_Iterator
@@ -681,7 +599,7 @@ private:
/**
* @class ACE_Dynamic_Message_Queue
*
- * @brief A derived class which adapts the ACE_Message_Queue
+ * @brief A derived class which adapts the <ACE_Message_Queue>
* class in order to maintain dynamic priorities for enqueued
* <ACE_Message_Blocks> and manage the queue order according
* to these dynamic priorities.
@@ -949,7 +867,7 @@ public:
* queueing facilities in System V STREAMs.
*
* An <ACE_Message_Queue_Ex> is a strongly-typed version of the
- * ACE_Message_Queue. If
+ * <ACE_Message_Queue>. If
* <ACE_SYNCH_DECL> is <ACE_MT_SYNCH> then all operations are
* thread-safe. Otherwise, if it's <ACE_NULL_SYNCH> then there's no
* locking overhead.
@@ -981,12 +899,12 @@ public:
// = Initialization and termination methods.
/**
- * Initialize an ACE_Message_Queue. The <high_water_mark>
+ * Initialize an <ACE_Message_Queue>. The <high_water_mark>
* determines how many bytes can be stored in a queue before it's
* considered "full." Supplier threads must block until the queue
* is no longer full. The <low_water_mark> determines how many
* bytes must be in the queue before supplier threads are allowed to
- * enqueue additional ACE_Message_Blocks. By default, the
+ * enqueue additional <ACE_Message_Block>s. By default, the
* <high_water_mark> equals the <low_water_mark>, which means that
* suppliers will be able to enqueue new messages as soon as a
* consumer removes any message from the queue. Making the
@@ -1000,12 +918,12 @@ public:
ACE_Notification_Strategy * = 0);
/**
- * Initialize an ACE_Message_Queue. The <high_water_mark>
+ * Initialize an <ACE_Message_Queue>. The <high_water_mark>
* determines how many bytes can be stored in a queue before it's
* considered "full." Supplier threads must block until the queue
* is no longer full. The <low_water_mark> determines how many
* bytes must be in the queue before supplier threads are allowed to
- * enqueue additional ACE_Message_Blocks. By default, the
+ * enqueue additional <ACE_Message_Block>s. By default, the
* <high_water_mark> equals the <low_water_mark>, which means that
* suppliers will be able to enqueue new messages as soon as a
* consumer removes any message from the queue. Making the
@@ -1029,10 +947,9 @@ public:
/// messages flushed.
virtual int flush (void);
- /// Release all resources from the message queue but do not mark it as
- /// deactivated. This method does not hold the queue lock during this
- /// operation, i.e., it assume the lock is held externally.
- /// Returns the number of messages flushed.
+ /// Release all resources from the message queue but do not mark it as deactivated.
+ /// This method does not hold the queue lock during this operation, i.e., it assume
+ /// the lock is held externally. Returns the number of messages flushed.
virtual int flush_i (void);
// = Enqueue and dequeue methods.
@@ -1293,12 +1210,10 @@ public:
ACE_ALLOC_HOOK_DECLARE;
protected:
- /// Implement this via an ACE_Message_Queue.
+ /// Implement this via an <ACE_Message_Queue>.
ACE_Message_Queue<ACE_SYNCH_USE> queue_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Message_Queue_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Method_Object.h b/ace/Method_Object.h
index ffabf82d454..eee59175ea5 100644
--- a/ace/Method_Object.h
+++ b/ace/Method_Object.h
@@ -26,13 +26,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Maintain backwards compatibility so that Steve Huston doesn't go
// postal... ;-)
typedef ACE_Method_Request ACE_Method_Object;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_METHOD_OBJECT_H */
diff --git a/ace/Method_Request.cpp b/ace/Method_Request.cpp
index 283a087905f..3215e1042d2 100644
--- a/ace/Method_Request.cpp
+++ b/ace/Method_Request.cpp
@@ -4,8 +4,6 @@ ACE_RCSID (ace,
Method_Request,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Method_Request::ACE_Method_Request (unsigned long prio)
: priority_ (prio)
{
@@ -26,5 +24,3 @@ ACE_Method_Request::priority (unsigned long prio)
{
this->priority_ = prio;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Method_Request.h b/ace/Method_Request.h
index e6b4564f91b..ca048863079 100644
--- a/ace/Method_Request.h
+++ b/ace/Method_Request.h
@@ -17,7 +17,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +30,6 @@
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Method_Request
*
@@ -42,7 +45,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*
* @sa ACE_Activation_Queue
*/
-class ACE_Export ACE_Method_Request
+class ACE_Threads_Export ACE_Method_Request
{
public:
// = Initialization and termination methods.
@@ -81,20 +84,15 @@ public:
*/
virtual int call (void) = 0;
-private:
-
- /// Disallow copying and assignment.
- ACE_Method_Request (const ACE_Method_Request &);
- void operator= (const ACE_Method_Request &);
-
protected:
/// The priority of the request.
unsigned long priority_;
+private:
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Method_Request &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Method_Request (const ACE_Method_Request &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_METHOD_REQUEST_H */
diff --git a/ace/Metrics_Cache_T.cpp b/ace/Metrics_Cache_T.cpp
index 3868df80269..de520773da7 100644
--- a/ace/Metrics_Cache_T.cpp
+++ b/ace/Metrics_Cache_T.cpp
@@ -1,19 +1,14 @@
// $Id$
-#ifndef ACE_METRICS_CACHE_CPP
-#define ACE_METRICS_CACHE_CPP
+#ifndef METRICS_CACHE_CPP
+#define METRICS_CACHE_CPP
//#define ACE_BUILD_DLL
-#include "ace/Metrics_Cache_T.h"
-
#if defined (ACE_COMPILE_TIMEPROBES)
#include "ace/Metrics_Cache.h"
-
-#if !defined (__ACE_INLINE__)
-#include "ace/Metrics_Cache_T.inl"
-#endif /* __ACE_INLINE__ */
+#include "ace/Metrics_Cache_T.h"
// Const strings for timeprobe event type descriptions.
@@ -25,7 +20,6 @@ static const char * event_description_strings [] =
"resume"
};
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/////////////////////////////////
// class ACE_Metrics_Timeprobe //
@@ -64,8 +58,8 @@ ACE_Metrics_Timeprobe (ALLOCATOR *alloc,
const char *name,
u_long size)
:
- ACE_Timeprobe_Ex<ACE_LOCK, ALLOCATOR> (size),
- id_ (id),
+ ACE_Timeprobe_Ex<ACE_LOCK, ALLOCATOR> (size),
+ id_ (id),
name_ (0)
{
if (name == 0)
@@ -101,11 +95,11 @@ ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::~ACE_Metrics_Timeprobe ()
template <class ACE_LOCK, class ALLOCATOR>
int
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::is_event (const ACE_Metrics_Timeprobe<ACE_LOCK,
- ALLOCATOR>::
- ACE_METRICS_TIMEPROBE_DATA_TYPE &t,
+ ALLOCATOR>::
+ ACE_METRICS_TIMEPROBE_DATA_TYPE &t,
ACE_Metrics_Timeprobe<ACE_LOCK,
- ALLOCATOR>::
- event_id id)
+ ALLOCATOR>::
+ event_id id)
{
return (t.event_.event_number_ == (u_long) id) ? 1 : 0;
}
@@ -232,8 +226,16 @@ flush_ACE_Metrics_Cache ()
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+#if !defined (__ACE_INLINE__)
+#include "ace/Metrics_Cache_T.inl"
+#endif /* __ACE_INLINE__ */
#endif /* defined (ACE_COMPILE_TIMEPROBES) */
-#endif /* ACE_METRICS_CACHE_CPP */
+#endif /* METRICS_CACHE_CPP */
+
+
+
+
+
diff --git a/ace/Metrics_Cache_T.h b/ace/Metrics_Cache_T.h
index 8d6c44acd13..d101ae734b8 100644
--- a/ace/Metrics_Cache_T.h
+++ b/ace/Metrics_Cache_T.h
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
//=============================================================================
/**
* @file Metrics_Cache_T.h
@@ -11,8 +9,8 @@
//=============================================================================
-#ifndef ACE_METRICS_CACHE_T_H
-#define ACE_METRICS_CACHE_T_H
+#ifndef METRICS_CACHE_T_H
+#define METRICS_CACHE_T_H
#include "ace/config-all.h"
@@ -32,8 +30,6 @@
#define METRICS_DEFAULT_TIMEPROBE_TABLE_SIZE METRICS_MIN_TIMEPROBE_TABLE_SIZE
#define METRICS_DEFAULT_TIMEPROBE_COUNT 6
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Metrics_Timeprobe
*
@@ -224,8 +220,6 @@ private:
void operator = (const ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR> &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Metrics_Cache_T.inl"
#endif /* __ACE_INLINE__ */
@@ -240,4 +234,4 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* defined (ACE_COMPILE_TIMEPROBES) */
-#endif /* ACE_METRICS_CACHE_T_H */
+#endif /* METRICS_CACHE_T_H */
diff --git a/ace/Metrics_Cache_T.inl b/ace/Metrics_Cache_T.inl
index e0f542ab366..6d48c917059 100644
--- a/ace/Metrics_Cache_T.inl
+++ b/ace/Metrics_Cache_T.inl
@@ -1,11 +1,7 @@
-// -*- C++ -*-
-//
// $Id$
-
-#ifndef ACE_METRICS_CACHE_T_INL
-#define ACE_METRICS_CACHE_T_INL
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+\
+#ifndef METRICS_CACHE_T_I
+#define METRICS_CACHE_T_I
/////////////////////////////
// Class ACE_Metrics_Cache //
@@ -18,8 +14,8 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_enqueue_start (u_long i)
{
if (i < this->probe_set_size_)
{
- u_long & count =
- this->enqueue_count_ [this->supplier_index_] [i];
+ u_long & count =
+ this->enqueue_count_ [this->supplier_index_] [i];
++count;
if (! this->interval_initialized_)
@@ -27,15 +23,15 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_enqueue_start (u_long i)
this->interval_initialized_ = 1;
ACE_hrtime_t hrtime_now = ACE_OS::gethrtime ();
ACE_High_Res_Timer::hrtime_to_tv (this->interval_start_,
- hrtime_now);
+ hrtime_now);
this->interval_end_.set (this->interval_start_.sec(),
this->interval_start_.usec());
}
-
+
// Take the metrics timeprobe last, to avoid measuring the above
// metrics processing.
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
- this->enqueue_probes_ [this->supplier_index_][i];
+ this->enqueue_probes_ [this->supplier_index_][i];
probe->
timeprobe (ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::WORK_START);
}
@@ -51,13 +47,13 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_enqueue_stop (u_long i)
// Take the metrics timeprobe first, to avoid measuring the below
// metrics processing.
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
- this->enqueue_probes_ [this->supplier_index_][i];
+ this->enqueue_probes_ [this->supplier_index_][i];
probe->
timeprobe (ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::WORK_STOP);
ACE_hrtime_t hrtime_now = ACE_OS::gethrtime ();
ACE_High_Res_Timer::hrtime_to_tv (this->interval_end_,
- hrtime_now);
+ hrtime_now);
u_long & count = enqueue_count_ [this->supplier_index_][i];
++count;
@@ -75,8 +71,8 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_enqueue_suspend (u_long i)
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
this->enqueue_probes_ [this->supplier_index_][i];
probe->
- timeprobe (ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::WORK_SUSPEND);
- u_long & count =
+ timeprobe (ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::WORK_SUSPEND);
+ u_long & count =
this->enqueue_count_ [this->supplier_index_] [i];
++count;
}
@@ -89,11 +85,11 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_enqueue_resume (u_long i)
{
if (i < this->probe_set_size_)
{
- u_long & count =
- this->enqueue_count_ [this->supplier_index_] [i];
+ u_long & count =
+ this->enqueue_count_ [this->supplier_index_] [i];
++count;
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
- this->enqueue_probes_ [this->supplier_index_][i];
+ this->enqueue_probes_ [this->supplier_index_][i];
probe->
timeprobe (ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::WORK_RESUME);
}
@@ -107,7 +103,7 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_dequeue_start (u_long i)
if (i < this->probe_set_size_)
{
u_long & count =
- this->dequeue_count_ [this->supplier_index_] [i];
+ this->dequeue_count_ [this->supplier_index_] [i];
++count;
if (! this->interval_initialized_)
@@ -115,7 +111,7 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_dequeue_start (u_long i)
this->interval_initialized_ = 1;
ACE_hrtime_t hrtime_now = ACE_OS::gethrtime ();
ACE_High_Res_Timer::hrtime_to_tv (this->interval_start_,
- hrtime_now);
+ hrtime_now);
this->interval_end_.set (this->interval_start_.sec(),
this->interval_start_.usec());
}
@@ -140,12 +136,12 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_dequeue_stop (u_long i)
// metrics processing below.
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
this->dequeue_probes_ [this->supplier_index_][i];
-
+
probe->timeprobe (ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR>::WORK_STOP);
ACE_hrtime_t hrtime_now = ACE_OS::gethrtime ();
ACE_High_Res_Timer::hrtime_to_tv (this->interval_end_,
- hrtime_now);
+ hrtime_now);
u_long & count = dequeue_count_ [this->supplier_index_] [i];
++count;
@@ -160,7 +156,7 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_dequeue_suspend (u_long i)
if (i < this->probe_set_size_)
{
u_long & count =
- this->dequeue_count_ [this->supplier_index_] [i];
+ this->dequeue_count_ [this->supplier_index_] [i];
++count;
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
this->dequeue_probes_ [this->supplier_index_][i];
@@ -176,8 +172,8 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_dequeue_resume (u_long i)
{
if (i < this->probe_set_size_)
{
- u_long & count =
- this->dequeue_count_ [this->supplier_index_] [i];
+ u_long & count =
+ this->dequeue_count_ [this->supplier_index_] [i];
++count;
ACE_Metrics_Timeprobe<ACE_LOCK, ALLOCATOR> * probe =
this->dequeue_probes_ [this->supplier_index_][i];
@@ -188,7 +184,7 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::report_dequeue_resume (u_long i)
template <class ACE_LOCK, class ALLOCATOR>
-ACE_INLINE void
+ACE_INLINE void
ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::reset_base_statistics ()
{
this->interval_initialized_ = 0;
@@ -204,7 +200,7 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::reset_base_statistics ()
this->enqueue_probes_ [this->consumer_index_][i];
probe->reset ();
probe =
- this->dequeue_probes_ [this->consumer_index_][i];
+ this->dequeue_probes_ [this->consumer_index_][i];
probe->reset ();
}
}
@@ -222,19 +218,17 @@ ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::flip_supplier_and_consumer ()
}
template <class ACE_LOCK, class ALLOCATOR>
-ACE_INLINE void
+ACE_INLINE void
ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::metrics_enabled(int enabled)
{
metrics_enabled_ = enabled;
}
template <class ACE_LOCK, class ALLOCATOR>
-ACE_INLINE int
+ACE_INLINE int
ACE_Metrics_Cache<ACE_LOCK, ALLOCATOR>::metrics_enabled(void) const
{
return metrics_enabled_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_METRICS_CACHE_T_INL */
+#endif /* METRICS_CACHE_T_I */
diff --git a/ace/Min_Max.h b/ace/Min_Max.h
index 7bff181088e..e961b510ee8 100644
--- a/ace/Min_Max.h
+++ b/ace/Min_Max.h
@@ -24,9 +24,6 @@
# endif /* ACE_LACKS_PRAGMA_ONCE */
# if !defined (ACE_LACKS_MIN_MAX_TEMPLATES)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T>
inline const T &
ace_min (const T &t1, const T &t2)
@@ -61,9 +58,6 @@ ace_range (const T &min, const T &max, const T &val)
{
return ace_min (ace_max (min, val), max);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# else
// These macros should only be used if a C++ compiler can't grok the
// inline templates
diff --git a/ace/Module.cpp b/ace/Module.cpp
index 20e5638e367..ef101352e0b 100644
--- a/ace/Module.cpp
+++ b/ace/Module.cpp
@@ -1,7 +1,8 @@
+// Module.cpp
// $Id$
-#ifndef ACE_MODULE_CPP
-#define ACE_MODULE_CPP
+#ifndef ACE_MODULE_C
+#define ACE_MODULE_C
#include "ace/Module.h"
@@ -15,7 +16,7 @@
#include "ace/Module.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Module, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Module)
@@ -267,7 +268,4 @@ ACE_Module<ACE_SYNCH_USE>::close_i (int which,
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_MODULE_CPP */
+#endif /* ACE_MODULE_C */
diff --git a/ace/Module.h b/ace/Module.h
index c7a99de92f1..a3e6f4126b8 100644
--- a/ace/Module.h
+++ b/ace/Module.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//==========================================================================
/**
* @file Module.h
@@ -24,8 +23,6 @@
#include "ace/Task_T.h"
#include "ace/os_include/os_dirent.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Module_Base
*
@@ -75,12 +72,14 @@ template <ACE_SYNCH_DECL>
class ACE_Module : public ACE_Module_Base
{
public:
+ friend class ACE_Shutup_GPlusPlus; // Turn off g++ warning
+
// = Initialization and termination methods.
/// Create an empty Module.
ACE_Module (void);
/// Shutdown the Module.
- virtual ~ACE_Module (void);
+ ~ACE_Module (void);
/// Create an initialized module with @a module_name as its identity
/// and @a reader and @a writer as its tasks.
@@ -117,7 +116,7 @@ public:
ACE_Task<ACE_SYNCH_USE> *writer (void);
/**
- * Set the writer task. @a flags can be used to indicate that the
+ * Set the writer task. <flags> can be used to indicate that the
* module should delete the writer during a call to close or to the
* destructor. If a previous writer exists, it is closed. It may
* also be deleted, depending on the old flags_ value. Should not
@@ -129,7 +128,7 @@ public:
ACE_Task<ACE_SYNCH_USE> *reader (void);
/**
- * Set the reader task. @a flags can be used to indicate that the
+ * Set the reader task. <flags> can be used to indicate that the
* module should delete the reader during a call to close or to the
* destructor. If a previous reader exists, it is closed. It may
* also be deleted, depending on the old flags_ value. Should not
@@ -193,8 +192,6 @@ private:
int flags_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Module.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Module.inl b/ace/Module.inl
index 483d436aa69..ba93e8e5df7 100644
--- a/ace/Module.inl
+++ b/ace/Module.inl
@@ -1,11 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// Module.i
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <ACE_SYNCH_DECL> ACE_INLINE void *
ACE_Module<ACE_SYNCH_USE>::arg (void) const
{
@@ -36,7 +34,7 @@ ACE_Module<ACE_SYNCH_USE>::name (const ACE_TCHAR *n)
template <ACE_SYNCH_DECL> ACE_INLINE ACE_Task<ACE_SYNCH_USE> *
ACE_Module<ACE_SYNCH_USE>::writer (void)
-{
+{
ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::writer");
return this->q_pair_[1];
}
@@ -56,10 +54,10 @@ ACE_Module<ACE_SYNCH_USE>::next (void)
}
template <ACE_SYNCH_DECL> ACE_INLINE void
-ACE_Module<ACE_SYNCH_USE>::next (ACE_Module<ACE_SYNCH_USE> *m)
+ACE_Module<ACE_SYNCH_USE>::next (ACE_Module<ACE_SYNCH_USE> *m)
{
ACE_TRACE ("ACE_Module<ACE_SYNCH_USE>::next");
this->next_ = m;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/Msg_WFMO_Reactor.cpp b/ace/Msg_WFMO_Reactor.cpp
index ee6fe44c144..dfe86740efc 100644
--- a/ace/Msg_WFMO_Reactor.cpp
+++ b/ace/Msg_WFMO_Reactor.cpp
@@ -10,8 +10,6 @@ ACE_RCSID(ace, Msg_WFMO_Reactor, "$Id$")
#include "ace/Msg_WFMO_Reactor.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Msg_WFMO_Reactor::ACE_Msg_WFMO_Reactor (ACE_Sig_Handler *sh,
ACE_Timer_Queue *tq)
: ACE_WFMO_Reactor (sh, tq)
@@ -89,6 +87,4 @@ ACE_Msg_WFMO_Reactor::poll_remaining_handles (DWORD slot)
QS_ALLINPUT);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 && !ACE_LACKS_MSG_WFMO */
diff --git a/ace/Msg_WFMO_Reactor.h b/ace/Msg_WFMO_Reactor.h
index d86258bb690..af6c2bad214 100644
--- a/ace/Msg_WFMO_Reactor.h
+++ b/ace/Msg_WFMO_Reactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -16,7 +16,12 @@
#define ACE_MSG_WFMO_REACTOR_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_REACTOR_BUILD_DLL
+# include "ace/ACE_Reactor_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Reactor_Export ACE_Export
+#endif /* ACE_REACTOR_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -26,8 +31,6 @@
#include "ace/WFMO_Reactor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Msg_WFMO_Reactor
*
@@ -39,7 +42,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* its ability to react on Windows messages. It is needed when
* the task should serve also as a COM/DCOM server.
*/
-class ACE_Export ACE_Msg_WFMO_Reactor : public ACE_WFMO_Reactor
+class ACE_Reactor_Export ACE_Msg_WFMO_Reactor : public ACE_WFMO_Reactor
{
public:
// = Initialization and termination methods.
@@ -76,7 +79,7 @@ public:
*
* <MsgWaitForMultipleObjects> is used as the demultiplexing call
*
- * Returns the total number of ACE_Event_Handlers that were
+ * Returns the total number of <ACE_Event_Handler>s that were
* dispatched, 0 if the <max_wait_time> elapsed without dispatching
* any handlers, or -1 if an error occurs.
*
@@ -108,13 +111,11 @@ protected:
virtual int dispatch_window_messages (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_WIN32 && !ACE_LACKS_MSG_WFMO */
#if defined (__ACE_INLINE__)
#include "ace/Msg_WFMO_Reactor.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_WIN32 && !ACE_LACKS_MSG_WFMO */
-
#include /**/ "ace/post.h"
#endif /* ACE_MSG_WFMO_REACTOR_H */
diff --git a/ace/Msg_WFMO_Reactor.inl b/ace/Msg_WFMO_Reactor.inl
index be021dc58a5..c8d7f25c8d7 100644
--- a/ace/Msg_WFMO_Reactor.inl
+++ b/ace/Msg_WFMO_Reactor.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if defined (ACE_WIN32) && !defined (ACE_LACKS_MSG_WFMO)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Msg_WFMO_Reactor::handle_events (ACE_Time_Value &how_long)
{
@@ -30,6 +27,4 @@ ACE_Msg_WFMO_Reactor::alertable_handle_events (ACE_Time_Value *how_long)
return this->event_handling (how_long, MWMO_ALERTABLE);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 && !ACE_LACKS_MSG_WFMO */
diff --git a/ace/Multihomed_INET_Addr.cpp b/ace/Multihomed_INET_Addr.cpp
index 33430262e9d..15d985c3265 100644
--- a/ace/Multihomed_INET_Addr.cpp
+++ b/ace/Multihomed_INET_Addr.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (ace,
Multihomed_INET_Addr,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Multihomed_INET_Addr)
// Default constructor
@@ -55,7 +53,7 @@ ACE_Multihomed_INET_Addr::ACE_Multihomed_INET_Addr(u_short port_number,
if (ret) {
ACE_DEBUG ((LM_DEBUG,
ACE_LIB_TEXT ("Invalid INET addr (%s:%u) will be ignored\n"),
- ACE_TEXT_CHAR_TO_TCHAR (secondary_host_names[i]), port_number));
+ ACE_TEXT_TO_TCHAR_IN (secondary_host_names[i]), port_number));
this->secondaries_.size(this->secondaries_.size() - 1);
}
else
@@ -66,7 +64,6 @@ ACE_Multihomed_INET_Addr::ACE_Multihomed_INET_Addr(u_short port_number,
return;
}
-#if defined (ACE_HAS_WCHAR)
ACE_Multihomed_INET_Addr::ACE_Multihomed_INET_Addr(u_short port_number,
const wchar_t host_name[],
int encode,
@@ -91,7 +88,7 @@ ACE_Multihomed_INET_Addr::ACE_Multihomed_INET_Addr(u_short port_number,
if (ret) {
ACE_DEBUG ((LM_DEBUG,
ACE_LIB_TEXT ("Invalid INET addr (%s:%u) will be ignored\n"),
- ACE_TEXT_WCHAR_TO_TCHAR (secondary_host_names[i]), port_number));
+ ACE_TEXT_TO_TCHAR_IN (secondary_host_names[i]), port_number));
this->secondaries_.size(this->secondaries_.size() - 1);
}
else
@@ -101,7 +98,6 @@ ACE_Multihomed_INET_Addr::ACE_Multihomed_INET_Addr(u_short port_number,
return;
}
-#endif /* ACE_HAS_WCHAR */
ACE_Multihomed_INET_Addr::ACE_Multihomed_INET_Addr(u_short port_number,
ACE_UINT32 primary_ip_addr,
@@ -162,7 +158,6 @@ ACE_Multihomed_INET_Addr::set (u_short port_number,
return ACE_INET_Addr::set(port_number, host_name, encode, address_family);
}
-#if defined (ACE_HAS_WCHAR)
//
// WCHAR version of ::set
//
@@ -189,7 +184,6 @@ ACE_Multihomed_INET_Addr::set (u_short port_number,
return ACE_INET_Addr::set(port_number, host_name, encode, address_family);
}
-#endif /* ACE_HAS_WCHAR */
int
ACE_Multihomed_INET_Addr::set (u_short port_number,
@@ -305,6 +299,4 @@ template class ACE_Array<ACE_INET_Addr>;
#pragma instantiate ACE_Array_Base<ACE_INET_Addr>
#pragma instantiate ACE_Array<ACE_INET_Addr>
-#endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /*ACE_HAS_TEMPLATE_INSTANTIATION*/
diff --git a/ace/Multihomed_INET_Addr.h b/ace/Multihomed_INET_Addr.h
index a7a838395db..6ff13a74c00 100644
--- a/ace/Multihomed_INET_Addr.h
+++ b/ace/Multihomed_INET_Addr.h
@@ -15,7 +15,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,7 +29,6 @@
#include "ace/INET_Addr.h"
#include "ace/Containers_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Multihomed_INET_Addr
@@ -32,7 +36,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* @brief Extends ACE_INET_Addr with support for multi-homed
* addresses.
*/
-class ACE_Export ACE_Multihomed_INET_Addr : public ACE_INET_Addr
+class ACE_Sockets_Export ACE_Multihomed_INET_Addr : public ACE_INET_Addr
{
public:
// = Initialization methods.
@@ -81,7 +85,6 @@ public:
const ACE_UINT32 *secondary_ip_addrs = 0,
size_t size = 0);
-#if defined (ACE_HAS_WCHAR)
/**
* WCHAR versions of the methods that take char's as arguments.
*/
@@ -98,8 +101,6 @@ public:
const wchar_t *(secondary_host_names[]) = 0,
size_t size = 0);
-#endif /* ACE_HAS_WCHAR */
-
/// Use compiler-generated copy constructor.
/// Use compiler-generated assignment operator.
@@ -187,8 +188,6 @@ private:
ACE_Array<ACE_INET_Addr> secondaries_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/Multihomed_INET_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Multihomed_INET_Addr.inl b/ace/Multihomed_INET_Addr.inl
index 50f67c01191..71ec578a177 100644
--- a/ace/Multihomed_INET_Addr.inl
+++ b/ace/Multihomed_INET_Addr.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Accessor implementations
ACE_INLINE
size_t
@@ -11,5 +8,3 @@ ACE_Multihomed_INET_Addr::get_num_secondary_addresses() const
{
return this->secondaries_.size();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Multiplexor.h b/ace/Multiplexor.h
index 6afb5a653c5..12336afaac9 100644
--- a/ace/Multiplexor.h
+++ b/ace/Multiplexor.h
@@ -10,6 +10,7 @@
* Note that these classes have never been implemented due to lack
* of need.
*
+ *
* @author Doug Schmidt
*/
//=============================================================================
@@ -19,21 +20,17 @@
#define ACE_MULTIPLEXOR_H
#include /**/ "ace/pre.h"
-#include "ace/config-all.h"
+#include "ace/Module.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if defined (ACE_HAS_THREADS)
-
-#if 0
-
-#include "ace/Module.h"
#include "ace/Map_Manager.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_THREADS)
+#if 0
/**
* @class ACE_Driver
*
@@ -73,8 +70,6 @@ public:
virtual int unlink_from_below (ACE_Module *mod);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Multiplexor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Multiplexor.inl b/ace/Multiplexor.inl
index 76e9d267006..18e022ac911 100644
--- a/ace/Multiplexor.inl
+++ b/ace/Multiplexor.inl
@@ -1,11 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// Multiplexor.i
#if 0
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
Driver::link_from_below (ACE_Module *stream_head)
{
@@ -90,6 +88,4 @@ ACE_Multiplexor::unlink_from_below (ACE_Module *)
return -1;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* 0 */
diff --git a/ace/Mutex.cpp b/ace/Mutex.cpp
index 83261c5d39d..a427703eca5 100644
--- a/ace/Mutex.cpp
+++ b/ace/Mutex.cpp
@@ -15,7 +15,6 @@ ACE_RCSID (ace,
Mutex,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Mutex)
@@ -121,5 +120,3 @@ ACE_Mutex::~ACE_Mutex (void)
// ACE_TRACE ("ACE_Mutex::~ACE_Mutex");
this->remove ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Mutex.h b/ace/Mutex.h
index 278e0a9ab9d..bcd62c12b63 100644
--- a/ace/Mutex.h
+++ b/ace/Mutex.h
@@ -29,14 +29,9 @@
# define ACE_DEFAULT_MUTEX_A "ACE_MUTEX"
# endif /* ACE_DEFAULT_MUTEX_A */
-# if defined (ACE_HAS_WCHAR)
-# define ACE_DEFAULT_MUTEX_W ACE_TEXT_WIDE(ACE_DEFAULT_MUTEX_A)
-# endif /* ACE_HAS_WCHAR */
-
+# define ACE_DEFAULT_MUTEX_W ACE_TEXT_WIDE(ACE_DEFAULT_MUTEX_A)
# define ACE_DEFAULT_MUTEX ACE_LIB_TEXT (ACE_DEFAULT_MUTEX_A)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -179,8 +174,6 @@ private:
ACE_Mutex (const ACE_Mutex &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Mutex.inl b/ace/Mutex.inl
index 26fb51a0c50..a038aa6d9be 100644
--- a/ace/Mutex.inl
+++ b/ace/Mutex.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_sys_mman.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Mutex::acquire_read (void)
{
@@ -171,5 +168,3 @@ ACE_Mutex::remove (void)
#endif /* CHORUS || ACE_HAS_PTHREADS || ACE_HAS_STHREADS */
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/NT_Service.cpp b/ace/NT_Service.cpp
index 0a1e249cb4f..7a60f27fdaf 100644
--- a/ace/NT_Service.cpp
+++ b/ace/NT_Service.cpp
@@ -14,8 +14,6 @@
#include "ace/Service_Object.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_NT_Service)
// ACE_NT_Service destructor.
@@ -613,6 +611,4 @@ ACE_NT_Service::wait_for_service_state (DWORD desired_state,
return;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 && !ACE_HAS_PHARLAP */
diff --git a/ace/NT_Service.h b/ace/NT_Service.h
index 6eba99986a4..e7be7c68047 100644
--- a/ace/NT_Service.h
+++ b/ace/NT_Service.h
@@ -38,8 +38,6 @@
#define ACE_NT_SERVICE_START_TIMEOUT 5000
#endif /* ACE_NT_SERVICE_TIMEOUT */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_NT_Service
*
@@ -369,8 +367,6 @@ protected:
ACE_OS_Log_Msg_Attributes log_msg_attributes_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// These macros help to get things set up correctly at compile time
// and to take most of the grudge work out of creating the proper
// functions and doing the registrations.
@@ -420,7 +416,7 @@ extern VOID WINAPI ace_nt_svc_main_##SVCNAME (DWORD dwArgc, \
#define ACE_NT_SERVICE_RUN(SVCNAME, SVCINSTANCE, RET) \
ACE_TEXT_SERVICE_TABLE_ENTRY _ace_nt_svc_table[2] = \
{ \
- ACE_NT_SERVICE_ENTRY(ACE_TEXT (#SVCNAME), SVCNAME), \
+ ACE_NT_SERVICE_ENTRY(ACE_LIB_TEXT (#SVCNAME), SVCNAME), \
{ 0, 0 } \
}; \
_ace_nt_svc_obj_##SVCNAME = SVCINSTANCE; \
diff --git a/ace/NT_Service.inl b/ace/NT_Service.inl
index bd9b7ea5b63..a1a9e9469b8 100644
--- a/ace/NT_Service.inl
+++ b/ace/NT_Service.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_NT_Service::ACE_NT_Service (DWORD start_timeout,
DWORD service_type,
@@ -81,5 +78,3 @@ ACE_NT_Service::svc_handle(const SERVICE_STATUS_HANDLE new_svc_handle)
this->svc_handle_ = new_svc_handle;
return;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Name_Proxy.cpp b/ace/Name_Proxy.cpp
index 82d0bd27eca..5a3e61cbb16 100644
--- a/ace/Name_Proxy.cpp
+++ b/ace/Name_Proxy.cpp
@@ -1,3 +1,4 @@
+// Name_Proxy.cpp
// $Id$
#include "ace/Name_Proxy.h"
@@ -6,8 +7,6 @@
ACE_RCSID(ace, Name_Proxy, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Name_Proxy::dump (void) const
{
@@ -34,7 +33,7 @@ ACE_Name_Proxy::ACE_Name_Proxy (void)
int
ACE_Name_Proxy::open (const ACE_INET_Addr &remote_addr,
- ACE_Synch_Options& options)
+ ACE_Synch_Options& options)
{
ACE_TRACE ("ACE_Name_Proxy::open");
ACE_Time_Value *timeout = 0;
@@ -155,7 +154,7 @@ ACE_Name_Proxy::recv_reply (ACE_Name_Request &reply)
default:
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p got %d bytes, expected %d bytes\n"),
- ACE_LIB_TEXT ("recv failed"),
+ ACE_LIB_TEXT ("recv failed"),
n,
sizeof (ACE_UINT32)));
// FALLTHROUGH
@@ -172,14 +171,14 @@ ACE_Name_Proxy::recv_reply (ACE_Name_Request &reply)
// @@ beware of blocking read!!!.
n = this->peer_.recv ((void *) (((char *) &reply)
+ sizeof (ACE_UINT32)),
- length - sizeof (ACE_UINT32));
+ length - sizeof (ACE_UINT32));
// Subtract off the size of the part we skipped over...
if (n != ssize_t (length - sizeof (ACE_UINT32)))
{
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p expected %d, got %d\n"),
- ACE_LIB_TEXT ("invalid length"),
+ ACE_LIB_TEXT ("invalid length"),
length,
n));
return -1;
@@ -205,5 +204,3 @@ ACE_Name_Proxy::~ACE_Name_Proxy (void)
ACE_TRACE ("ACE_Name_Proxy::~ACE_Name_Proxy");
this->peer_.close ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Name_Proxy.h b/ace/Name_Proxy.h
index 16411b17334..594df3c3c2a 100644
--- a/ace/Name_Proxy.h
+++ b/ace/Name_Proxy.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -34,8 +34,6 @@
#include "ace/Name_Request_Reply.h"
#include "ace/Event_Handler.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Name_Proxy
*
@@ -95,7 +93,5 @@ private:
ACE_Name_Proxy &operator= (const ACE_Name_Proxy &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NAME_PROXY_H */
diff --git a/ace/Name_Request_Reply.cpp b/ace/Name_Request_Reply.cpp
index f92bbf3c15d..a9f4ecd3e3c 100644
--- a/ace/Name_Request_Reply.cpp
+++ b/ace/Name_Request_Reply.cpp
@@ -8,7 +8,6 @@ ACE_RCSID (ace,
Name_Request_Reply,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Default "do nothing" constructor.
@@ -21,9 +20,9 @@ ACE_Name_Request::ACE_Name_Request (void)
ACE_Name_Request::ACE_Name_Request (
ACE_INT32 t, // Type of request.
- const ACE_WCHAR_T name[], // Name
+ const wchar_t name[], // Name
const ACE_UINT32 name_length, // size in bytes
- const ACE_WCHAR_T value[], //
+ const wchar_t value[], //
const ACE_UINT32 value_length, // size in bytes
const char type[], //
const ACE_UINT32 type_length, // size in bytes
@@ -52,8 +51,8 @@ ACE_Name_Request::ACE_Name_Request (
// Set up pointers and copy name value and type into request.
this->name_ = this->transfer_.data_;
- this->value_ = &this->name_[name_length / sizeof (ACE_WCHAR_T) ];
- this->type_ = (char *)(&this->value_[value_length / sizeof (ACE_WCHAR_T)]); //
+ this->value_ = &this->name_[name_length / sizeof (wchar_t) ];
+ this->type_ = (char *)(&this->value_[value_length / sizeof (wchar_t)]); //
(void) ACE_OS::memcpy (this->name_,
name,
@@ -199,7 +198,7 @@ ACE_Name_Request::timeout (const ACE_Time_Value timeout)
// = Set/get the name
-const ACE_WCHAR_T *
+const wchar_t *
ACE_Name_Request::name (void) const
{
ACE_TRACE ("ACE_Name_Request::name");
@@ -207,7 +206,7 @@ ACE_Name_Request::name (void) const
}
void
-ACE_Name_Request::name (const ACE_WCHAR_T *t)
+ACE_Name_Request::name (const wchar_t *t)
{
ACE_TRACE ("ACE_Name_Request::name");
(void) ACE_OS::memcpy (this->name_,
@@ -217,7 +216,7 @@ ACE_Name_Request::name (const ACE_WCHAR_T *t)
// = Set/get the value
-const ACE_WCHAR_T *
+const wchar_t *
ACE_Name_Request::value (void) const
{
ACE_TRACE ("ACE_Name_Request::value");
@@ -225,7 +224,7 @@ ACE_Name_Request::value (void) const
}
void
-ACE_Name_Request::value (const ACE_WCHAR_T *c)
+ACE_Name_Request::value (const wchar_t *c)
{
ACE_TRACE ("ACE_Name_Request::value");
@@ -265,7 +264,7 @@ ACE_Name_Request::encode (void *&buf)
size_t nv_data_len =
(this->transfer_.name_len_ + this->transfer_.value_len_)
- / sizeof (ACE_WCHAR_T);
+ / sizeof (wchar_t);
for (size_t i = 0; i < nv_data_len; i++)
this->transfer_.data_[i] =
@@ -303,15 +302,15 @@ ACE_Name_Request::decode (void)
size_t nv_data_len =
(this->transfer_.name_len_ + this->transfer_.value_len_)
- / sizeof (ACE_WCHAR_T);
+ / sizeof (wchar_t);
for (size_t i = 0; i < nv_data_len; i++)
this->transfer_.data_[i] =
ntohs (this->transfer_.data_[i]);
this->name_ = this->transfer_.data_;
- this->value_ = &this->name_[this->transfer_.name_len_ / sizeof (ACE_WCHAR_T)];
- this->type_ = (char *)(&this->value_[this->transfer_.value_len_ / sizeof (ACE_WCHAR_T)]);
+ this->value_ = &this->name_[this->transfer_.name_len_ / sizeof (wchar_t)];
+ this->type_ = (char *)(&this->value_[this->transfer_.value_len_ / sizeof (wchar_t)]);
this->type_[this->transfer_.type_len_] = '\0';
// Decode the variable-sized portion.
@@ -564,5 +563,3 @@ ACE_Name_Reply::dump (void) const
}
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Name_Request_Reply.h b/ace/Name_Request_Reply.h
index 07e4b61d95b..f5704b7472b 100644
--- a/ace/Name_Request_Reply.h
+++ b/ace/Name_Request_Reply.h
@@ -27,8 +27,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -73,9 +71,9 @@ public:
/// Create a ACE_Name_Request message.
ACE_Name_Request (ACE_INT32 msg_type, // Type of request.
- const ACE_WCHAR_T name[], //
+ const wchar_t name[], //
const ACE_UINT32 name_length,
- const ACE_WCHAR_T value[],
+ const wchar_t value[],
const ACE_UINT32 value_length,
const char type[],
const ACE_UINT32 type_length,
@@ -102,12 +100,12 @@ public:
void timeout (const ACE_Time_Value timeout);
// = Set/get the name
- const ACE_WCHAR_T *name (void) const;
- void name (const ACE_WCHAR_T *);
+ const wchar_t *name (void) const;
+ void name (const wchar_t *);
// = Set/get the value
- const ACE_WCHAR_T *value (void) const;
- void value (const ACE_WCHAR_T *);
+ const wchar_t *value (void) const;
+ void value (const wchar_t *);
// = Set/get the type
const char *type (void) const;
@@ -169,17 +167,17 @@ private:
/// The data portion contains the <name_>
/// followed by the <value_>
/// followed by the <type_>.
- ACE_WCHAR_T data_[MAX_NAME_LENGTH + MAXPATHLEN + MAXPATHLEN + 2];
+ wchar_t data_[MAX_NAME_LENGTH + MAXPATHLEN + MAXPATHLEN + 2];
};
/// Transfer buffer.
Transfer transfer_;
/// Pointer to the beginning of the name in this->data_.
- ACE_WCHAR_T *name_;
+ wchar_t *name_;
/// Pointer to the beginning of the value in this->data_;
- ACE_WCHAR_T *value_;
+ wchar_t *value_;
/// Pointer to the beginning of the type in this->data_;
char *type_;
@@ -258,8 +256,6 @@ private:
Transfer transfer_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NAME_REQUEST_REPLY_H */
diff --git a/ace/Name_Space.cpp b/ace/Name_Space.cpp
index 2f15a9e71d3..b3939f4095e 100644
--- a/ace/Name_Space.cpp
+++ b/ace/Name_Space.cpp
@@ -7,12 +7,8 @@
ACE_RCSID(ace, Name_Space, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Name_Binding::ACE_Name_Binding (void)
- : name_ (),
- value_ (),
- type_ (ACE_OS::strdup (""))
+ : type_ (ACE_OS::strdup (""))
{
ACE_TRACE ("ACE_Name_Binding::ACE_Name_Binding");
}
@@ -69,5 +65,3 @@ ACE_Name_Space::~ACE_Name_Space (void)
{
ACE_TRACE ("ACE_Name_Space::~ACE_Name_Space");
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Name_Space.h b/ace/Name_Space.h
index 18bda096326..aedaf801276 100644
--- a/ace/Name_Space.h
+++ b/ace/Name_Space.h
@@ -25,8 +25,6 @@
#include "ace/SString.h"
#include "ace/Unbounded_Set.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Unbounded_Set<ACE_NS_WString> ACE_WSTRING_SET;
/**
@@ -159,8 +157,6 @@ public:
virtual void dump (void) const = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NAME_SPACE_H */
diff --git a/ace/Naming_Context.cpp b/ace/Naming_Context.cpp
index 281fbfdfe84..a6c5df58573 100644
--- a/ace/Naming_Context.cpp
+++ b/ace/Naming_Context.cpp
@@ -5,7 +5,7 @@
#include "ace/Remote_Name_Space.h"
#include "ace/Local_Name_Space_T.h"
#include "ace/Registry_Name_Space.h"
-#include "ace/MMAP_Memory_Pool.h"
+#include "ace/Memory_Pool.h"
#include "ace/RW_Process_Mutex.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
@@ -16,13 +16,25 @@
ACE_RCSID(ace, Naming_Context, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Make life easier later on...
typedef ACE_Local_Name_Space <ACE_MMAP_MEMORY_POOL, ACE_RW_Process_Mutex> LOCAL_NAME_SPACE;
typedef ACE_Local_Name_Space <ACE_LITE_MMAP_MEMORY_POOL, ACE_RW_Process_Mutex> LITE_LOCAL_NAME_SPACE;
+// The following Factory is used by the ACE_Service_Config and
+// svc.conf file to dynamically initialize the state of the Name
+// Server client.
+
+ACE_FACTORY_DEFINE (ACE, ACE_Naming_Context)
+ACE_STATIC_SVC_DEFINE (ACE_Naming_Context,
+ ACE_LIB_TEXT ("ACE_Naming_Context"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (ACE_Naming_Context),
+ ACE_Service_Type::DELETE_THIS |
+ ACE_Service_Type::DELETE_OBJ,
+ 0)
+ACE_STATIC_SVC_REQUIRE (ACE_Naming_Context)
+
// The ACE_Naming_Context static service object is now defined
// by the ACE_Object_Manager, in Object_Manager.cpp.
@@ -600,7 +612,7 @@ ACE_Name_Options::parse_args (int argc, ACE_TCHAR *argv[])
// clean it up in the destructor).
this->database (this->process_name ());
- ACE_Get_Opt get_opt (argc, argv, ACE_LIB_TEXT ("b:c:dh:l:P:p:s:T:vr"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_LIB_TEXT ("b:c:dh:l:P:p:s:T:vr"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -691,19 +703,3 @@ template class ACE_Name_Space_Map <ACE_Allocator_Adapter <ACE_Malloc <ACE_LITE_M
#pragma instantiate ACE_Name_Space_Map <ACE_Allocator_Adapter <ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_RW_Process_Mutex> > >
#pragma instantiate ACE_Name_Space_Map <ACE_Allocator_Adapter <ACE_Malloc <ACE_LITE_MMAP_MEMORY_POOL, ACE_RW_Process_Mutex> > >
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-// The following Factory is used by the ACE_Service_Config and
-// svc.conf file to dynamically initialize the state of the Name
-// Server client.
-
-ACE_FACTORY_DEFINE (ACE, ACE_Naming_Context)
-ACE_STATIC_SVC_DEFINE (ACE_Naming_Context,
- ACE_LIB_TEXT ("ACE_Naming_Context"),
- ACE_SVC_OBJ_T,
- &ACE_SVC_NAME (ACE_Naming_Context),
- ACE_Service_Type::DELETE_THIS |
- ACE_Service_Type::DELETE_OBJ,
- 0)
-ACE_STATIC_SVC_REQUIRE (ACE_Naming_Context)
diff --git a/ace/Naming_Context.h b/ace/Naming_Context.h
index 7bef675b23f..e66783f48ca 100644
--- a/ace/Naming_Context.h
+++ b/ace/Naming_Context.h
@@ -26,8 +26,6 @@
#include "ace/Name_Space.h"
#include "ace/os_include/os_netdb.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl
class ACE_Name_Options;
class ACE_Static_Svc_Descriptor;
@@ -374,8 +372,6 @@ private:
ACE_Naming_Context::Context_Scope_Type context_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
ACE_FACTORY_DECLARE (ACE, ACE_Naming_Context)
ACE_STATIC_SVC_DECLARE_EXPORT (ACE, ACE_Naming_Context)
diff --git a/ace/Node.cpp b/ace/Node.cpp
index 8976a9c379e..91e989d739b 100644
--- a/ace/Node.cpp
+++ b/ace/Node.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_NODE_CPP
-#define ACE_NODE_CPP
+#ifndef ACE_NODE_C
+#define ACE_NODE_C
#include "ace/Node.h"
@@ -9,7 +9,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Node, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Node)
@@ -43,6 +43,4 @@ ACE_Node<T>::ACE_Node (const ACE_Node<T> &s)
// ACE_TRACE ("ACE_Node<T>::ACE_Node");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_NODE_CPP */
+#endif /* ACE_NODE_C */
diff --git a/ace/Node.h b/ace/Node.h
index 6ec514d8141..607d0b6f137 100644
--- a/ace/Node.h
+++ b/ace/Node.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
template <class T> class ACE_Unbounded_Set;
template <class T> class ACE_Unbounded_Set_Iterator;
@@ -61,11 +59,7 @@ private:
ACE_Node (const T &i, ACE_Node<T> *n);
ACE_Node (ACE_Node<T> *n = 0, int = 0);
ACE_Node (const ACE_Node<T> &n);
-private:
- /// Not possible
- void operator= (const ACE_Node<T> &);
-private:
/// Pointer to next element in the list of <ACE_Node>s.
ACE_Node<T> *next_;
@@ -73,8 +67,6 @@ private:
T item_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Node.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Notification_Strategy.cpp b/ace/Notification_Strategy.cpp
index f12bf3a569e..77d5dc235b0 100644
--- a/ace/Notification_Strategy.cpp
+++ b/ace/Notification_Strategy.cpp
@@ -6,8 +6,6 @@
ACE_RCSID(ace, Strategies, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Notification_Strategy::ACE_Notification_Strategy (ACE_Event_Handler *eh,
ACE_Reactor_Mask mask)
: eh_ (eh),
@@ -18,5 +16,3 @@ ACE_Notification_Strategy::ACE_Notification_Strategy (ACE_Event_Handler *eh,
ACE_Notification_Strategy::~ACE_Notification_Strategy (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Notification_Strategy.h b/ace/Notification_Strategy.h
index 751868152b4..07e1a179563 100644
--- a/ace/Notification_Strategy.h
+++ b/ace/Notification_Strategy.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Notification_Strategy.h
@@ -19,8 +18,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
class ACE_Reactor;
@@ -67,7 +64,6 @@ protected:
ACE_Reactor_Mask mask_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "ace/Notification_Strategy.inl"
diff --git a/ace/Notification_Strategy.inl b/ace/Notification_Strategy.inl
index 47479030ab6..fac4b0cd3b6 100644
--- a/ace/Notification_Strategy.inl
+++ b/ace/Notification_Strategy.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
//$Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_Event_Handler *
ACE_Notification_Strategy::event_handler (void)
{
@@ -27,5 +24,3 @@ ACE_Notification_Strategy::mask (ACE_Reactor_Mask m)
{
this->mask_ = m;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Null_Barrier.h b/ace/Null_Barrier.h
index 9b3bc16912a..0c5f5609972 100644
--- a/ace/Null_Barrier.h
+++ b/ace/Null_Barrier.h
@@ -16,8 +16,6 @@
#define ACE_NULL_BARRIER_H
#include /**/ "ace/pre.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// All methods in this class are inline, so there is no
// need to import or export on Windows. -- CAE 12/18/2003
@@ -53,7 +51,5 @@ private:
ACE_Null_Barrier (const ACE_Null_Barrier &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NULL_BARRIER_H */
diff --git a/ace/Null_Condition.h b/ace/Null_Condition.h
index a72df210a51..eb1fa10e436 100644
--- a/ace/Null_Condition.h
+++ b/ace/Null_Condition.h
@@ -26,14 +26,12 @@
#include "ace/os_include/os_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
* @class ACE_Null_Condition
*
- * @brief Implement a do nothing ACE_Condition variable wrapper,
+ * @brief Implement a do nothing <ACE_Condition> variable wrapper,
* i.e., all methods are no ops. This class is necessary since
* some C++ compilers are *very* lame...
*/
@@ -79,7 +77,5 @@ private:
ACE_Null_Condition (const ACE_Null_Condition &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NULL_CONDITION_H */
diff --git a/ace/Null_Mutex.h b/ace/Null_Mutex.h
index 022cc034df6..a0c9bf8d374 100644
--- a/ace/Null_Mutex.h
+++ b/ace/Null_Mutex.h
@@ -27,9 +27,6 @@
#include "ace/Global_Macros.h"
#include "ace/OS_Memory.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -122,8 +119,8 @@ class ACE_Guard;
/**
* @class ACE_Guard<ACE_Null_Mutex>
*
- * @brief Template specialization of ACE_Guard for the
- * ACE_Null_Mutex.
+ * @brief Template specialization of <ACE_Guard> for the
+ * <ACE_Null_Mutex>.
*
* This specialization is useful since it helps to speedup
* performance of the "Null_Mutex" considerably.
@@ -149,11 +146,9 @@ public:
void dump (void) const {}
private:
-
- // Disallow copying and assignment.
- ACE_Guard (const ACE_Guard<ACE_Null_Mutex> &);
- void operator= (const ACE_Guard<ACE_Null_Mutex> &);
-
+ // = Prevent assignment and initialization.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Guard<ACE_Null_Mutex> &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Guard (const ACE_Guard<ACE_Null_Mutex> &))
};
template <class ACE_LOCK>
@@ -220,7 +215,5 @@ public:
}
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NULL_MUTEX_H */
diff --git a/ace/Null_Semaphore.h b/ace/Null_Semaphore.h
index 9124f46cf73..43349202541 100644
--- a/ace/Null_Semaphore.h
+++ b/ace/Null_Semaphore.h
@@ -24,14 +24,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
* @class ACE_Null_Semaphore
*
- * @brief Implement a do nothing ACE_Semaphore, i.e., all the methods are
+ * @brief Implement a do nothing <ACE_Semaphore>, i.e., all the methods are
* no ops.
*
* Although the methods are no-ops, the return values are different for
@@ -98,7 +96,5 @@ public:
//ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_NULL_SEMAPHORE_H */
diff --git a/ace/OS.h b/ace/OS.h
index 4f2fe57d8e4..66f43169957 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -76,12 +76,8 @@
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Timeout_Manager;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Here are all ACE-specific default constants, needed throughout ACE
// and its applications. The values can be over written by user
// specific values in config.h files.
@@ -332,9 +328,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/os_include/os_syslog.h"
# endif /* !defined (ACE_WIN32) && !defined (ACE_LACKS_UNIX_SYSLOG) */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @namespace ACE_OS
*
@@ -343,7 +336,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* efficient system programs on Win32, POSIX and other versions
* of UNIX, and various real-time operating systems.
*
- * This namespace encapsulates the differences between various OS
+ * This class encapsulates the differences between various OS
* platforms. When porting ACE to a new platform, this class is
* the place to focus on. Once this file is ported to a new
* platform, pretty much everything else comes for "free." See
@@ -354,10 +347,13 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*/
namespace ACE_OS
{
+
+
+
// = A set of wrappers for miscellaneous operations.
-} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+} /* namespace ACE_OS */
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
diff --git a/ace/OS_Errno.cpp b/ace/OS_Errno.cpp
index 8170ef82466..7e1d6f93cc0 100644
--- a/ace/OS_Errno.cpp
+++ b/ace/OS_Errno.cpp
@@ -20,8 +20,6 @@ ACE_RCSID(ace, OS_Errno, "$Id$")
#include "ace/OS_Memory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_CE_Errno *ACE_CE_Errno::instance_ = 0;
DWORD ACE_CE_Errno::errno_key_ = 0xffffffff;
@@ -41,6 +39,4 @@ ACE_CE_Errno::fini ()
ACE_CE_Errno::instance_ = 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_WINCE_BROKEN_ERRNO */
diff --git a/ace/OS_Errno.h b/ace/OS_Errno.h
index e92837af318..82446047842 100644
--- a/ace/OS_Errno.h
+++ b/ace/OS_Errno.h
@@ -22,8 +22,6 @@
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Errno_Guard
*
@@ -83,8 +81,6 @@ private:
int error_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Inlining this class on debug builds with gcc on Solaris can cause
// deadlocks during static initialization.
#if defined (ACE_HAS_INLINED_OSCALLS) && \
diff --git a/ace/OS_Errno.inl b/ace/OS_Errno.inl
index 2fe5e6c54e2..9330c37deb4 100644
--- a/ace/OS_Errno.inl
+++ b/ace/OS_Errno.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Errno_Guard::ACE_Errno_Guard (ACE_ERRNO_TYPE &errno_ref,
int error)
@@ -63,5 +60,3 @@ ACE_Errno_Guard::operator!= (int error)
{
return this->error_ != error;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_Log_Msg_Attributes.h b/ace/OS_Log_Msg_Attributes.h
index 5da968d0ba7..f86011147ea 100644
--- a/ace/OS_Log_Msg_Attributes.h
+++ b/ace/OS_Log_Msg_Attributes.h
@@ -24,18 +24,13 @@
#include "ace/os_include/os_stdio.h"
#include "ace/iosfwd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
+/// The attributes required by ACE_Log_Msg.
/**
- * @class ACE_OS_Log_Msg_Attributes
- *
- * @brief The attributes required by ACE_Log_Msg.
- *
* When a new thread is created the TSS resources for the Log_Msg
* class in the new thread may be inherited by the creator thread.
* The base_attributes are encapsulated in this class to simplify their
* manipulation and destruction.
- * @par
+ *
* The contents of the class must be made available to the OS layer,
* because they are part of the thread descriptor.
*/
@@ -76,8 +71,6 @@ private:
ACE_OS_Log_Msg_Attributes &operator= (const ACE_OS_Log_Msg_Attributes &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_Log_Msg_Attributes.inl b/ace/OS_Log_Msg_Attributes.inl
index 29725ef4d7c..3ece871ea06 100644
--- a/ace/OS_Log_Msg_Attributes.inl
+++ b/ace/OS_Log_Msg_Attributes.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_OS_Log_Msg_Attributes::ACE_OS_Log_Msg_Attributes (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_Memory.h b/ace/OS_Memory.h
index 8e19803100f..f11aca10679 100644
--- a/ace/OS_Memory.h
+++ b/ace/OS_Memory.h
@@ -38,9 +38,8 @@
//
// For completeness' sake, you should probably put
// #define ACE_HAS_STRDUP_EMULATION
-// #define ACE_HAS_WCSDUP_EMULATION
-// too, so that you guarantee that strdup() and wcsdup() call your
-// desired mallocator and not the system mallocator.
+// too, so that you guarantee that strdup() calls your desired mallocator
+// and not the system mallocator.
//
#if !defined (ACE_MALLOC_FUNC)
# define ACE_MALLOC_FUNC ::malloc
@@ -55,16 +54,12 @@
# define ACE_REALLOC_FUNC ::realloc
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_OLD_MALLOC)
-typedef char * ACE_MALLOC_T;
+typedef char *ACE_MALLOC_T;
#else
-typedef void * ACE_MALLOC_T;
+typedef void *ACE_MALLOC_T;
#endif /* ACE_HAS_OLD_MALLOC */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// ============================================================================
// ACE_NEW macros
//
diff --git a/ace/OS_NS_Thread.cpp b/ace/OS_NS_Thread.cpp
index 7a9f9041fd3..8240709353f 100644
--- a/ace/OS_NS_Thread.cpp
+++ b/ace/OS_NS_Thread.cpp
@@ -24,9 +24,9 @@ ACE_RCSID (ace,
#include "ace/Guard_T.h"
extern "C" void
-ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME (void *args)
+ace_mutex_lock_cleanup_adapter (void *args)
{
- ACE_VERSIONED_NAMESPACE_NAME::ACE_OS::mutex_lock_cleanup (args);
+ ACE_OS::mutex_lock_cleanup (args);
}
@@ -87,8 +87,6 @@ HANDLE WINAPI __IBMCPP__beginthreadex(void *stack,
/*****************************************************************************/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Thread_ID::to_string (char *thr_string) const
{
@@ -781,40 +779,26 @@ TSS_Cleanup_Instance::TSS_Cleanup_Instance (Purpose purpose)
}
}
-TSS_Cleanup_Instance::~TSS_Cleanup_Instance (void)
+TSS_Cleanup_Instance::~TSS_Cleanup_Instance()
{
- // Variable to hold the mutex_ to delete outside the scope of the
- // guard.
- ACE_Thread_Mutex *del_mutex = 0;
-
- // scope the guard
- {
- ACE_Guard<ACE_Thread_Mutex> guard (*mutex_);
- if (ptr_ != 0)
- {
- if (ACE_BIT_ENABLED (flags_, FLAG_DELETING))
- {
- ACE_ASSERT(instance_ == 0);
- ACE_ASSERT(reference_count_ == 0);
- delete ptr_;
- del_mutex = mutex_ ;
- mutex_ = 0;
- }
- else
- {
- ACE_ASSERT (reference_count_ > 0);
- --reference_count_;
- if (reference_count_ == 0 && instance_ == NULL)
- condition_->signal ();
- }
- }
- }// end of guard scope
-
- if (del_mutex != 0)
+ ACE_Guard<ACE_Thread_Mutex> guard(*mutex_);
+ if (ptr_ != 0)
{
- delete condition_;
- condition_ = 0;
- delete del_mutex;
+ if (ACE_BIT_ENABLED (flags_,FLAG_DELETING))
+ {
+ ACE_ASSERT(instance_ == 0);
+ ACE_ASSERT(reference_count_ == 0);
+ delete ptr_;
+ }
+ else
+ {
+ ACE_ASSERT (reference_count_ > 0);
+ --reference_count_;
+ if (reference_count_ == 0 && instance_ == NULL)
+ {
+ condition_->signal();
+ }
+ }
}
}
@@ -925,7 +909,7 @@ ACE_TSS_Cleanup::thread_exit (void)
extern "C" void
ACE_TSS_Cleanup_keys_destroyer (void *tss_keys)
{
- delete static_cast <ACE_TSS_Keys *> (tss_keys);
+ delete reinterpret_cast <ACE_TSS_Keys *> (tss_keys);
}
ACE_TSS_Cleanup::ACE_TSS_Cleanup (void)
@@ -1318,7 +1302,6 @@ ACE_OS::cond_init (ACE_cond_t *cv,
ACE_OS::cond_init (cv, static_cast<short> (attributes.type), name, arg);
}
-# if defined (ACE_HAS_WCHAR)
int
ACE_OS::cond_init (ACE_cond_t *cv,
ACE_condattr_t &attributes,
@@ -1327,7 +1310,6 @@ ACE_OS::cond_init (ACE_cond_t *cv,
return
ACE_OS::cond_init (cv, static_cast<short> (attributes.type), name, arg);
}
-# endif /* ACE_HAS_WCHAR */
int
ACE_OS::cond_init (ACE_cond_t *cv, short type, const char *name, void *arg)
@@ -1358,7 +1340,6 @@ ACE_OS::cond_init (ACE_cond_t *cv, short type, const char *name, void *arg)
# endif /* ACE_HAS_THREADS */
}
-# if defined (ACE_HAS_WCHAR)
int
ACE_OS::cond_init (ACE_cond_t *cv, short type, const wchar_t *name, void *arg)
{
@@ -1387,7 +1368,6 @@ ACE_OS::cond_init (ACE_cond_t *cv, short type, const wchar_t *name, void *arg)
ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_THREADS */
}
-# endif /* ACE_HAS_WCHAR */
int
ACE_OS::cond_signal (ACE_cond_t *cv)
@@ -1999,7 +1979,7 @@ ACE_OS::mutex_init (ACE_mutex_t *m,
::CreateMutexW (ACE_OS::default_win32_security_attributes_r
(sa, &sa_buffer, &sd_buffer),
FALSE,
- ACE_Ascii_To_Wide (name).wchar_rep ());
+ ACE_TEXT_TO_WCHAR_IN (name));
# else /* ACE_HAS_WINCE */
m->proc_mutex_ =
::CreateMutexA (ACE_OS::default_win32_security_attributes_r
@@ -2152,7 +2132,6 @@ ACE_OS::mutex_destroy (ACE_mutex_t *m)
#endif /* ACE_HAS_THREADS */
}
-#if defined (ACE_HAS_WCHAR)
int
ACE_OS::mutex_init (ACE_mutex_t *m,
int lock_scope,
@@ -2189,13 +2168,12 @@ ACE_OS::mutex_init (ACE_mutex_t *m,
#else /* ACE_HAS_THREADS && ACE_HAS_WTHREADS */
return ACE_OS::mutex_init (m,
lock_scope,
- ACE_Wide_To_Ascii (name).char_rep (),
+ ACE_TEXT_TO_CHAR_IN (name),
attributes,
sa,
lock_type);
#endif /* ACE_HAS_THREADS && ACE_HAS_WTHREADS */
}
-#endif /* ACE_HAS_WCHAR */
int
ACE_OS::mutex_lock (ACE_mutex_t *m)
@@ -2663,7 +2641,7 @@ ACE_OS::event_destroy (ACE_event_t *event)
# endif
ACE_OS::munmap (event->eventdata_,
sizeof (ACE_eventdata_t));
- ACE_OS::shm_unlink (ACE_TEXT_CHAR_TO_TCHAR(event->name_));
+ ACE_OS::shm_unlink (ACE_TEXT_TO_TCHAR_IN(event->name_));
ACE_OS::free (event->name_);
return r1 != 0 || r2 != 0 ? -1 : 0;
}
@@ -2752,7 +2730,7 @@ ACE_OS::event_init (ACE_event_t *event,
(sa, &sa_buffer, &sd_buffer),
manual_reset,
initial_state,
- ACE_Ascii_To_Wide (name).wchar_rep ());
+ ACE_TEXT_TO_WCHAR_IN (name));
# else /* ACE_HAS_WINCE */
*event = ::CreateEventA (ACE_OS::default_win32_security_attributes_r
(sa, &sa_buffer, &sd_buffer),
@@ -2773,13 +2751,13 @@ ACE_OS::event_init (ACE_event_t *event,
{
int owner = 0;
// Let's see if the shared memory entity already exists.
- ACE_HANDLE fd = ACE_OS::shm_open (ACE_TEXT_CHAR_TO_TCHAR (name),
+ ACE_HANDLE fd = ACE_OS::shm_open (ACE_TEXT_TO_TCHAR_IN (name),
O_RDWR | O_CREAT | O_EXCL,
ACE_DEFAULT_FILE_PERMS);
if (fd == ACE_INVALID_HANDLE)
{
if (errno == EEXIST)
- fd = ACE_OS::shm_open (ACE_TEXT_CHAR_TO_TCHAR (name),
+ fd = ACE_OS::shm_open (ACE_TEXT_TO_TCHAR_IN (name),
O_RDWR | O_CREAT,
ACE_DEFAULT_FILE_PERMS);
if (fd == ACE_INVALID_HANDLE) // Still can't get it.
@@ -2807,7 +2785,7 @@ ACE_OS::event_init (ACE_event_t *event,
if (evtdata == MAP_FAILED)
{
if (owner)
- ACE_OS::shm_unlink (ACE_TEXT_CHAR_TO_TCHAR (name));
+ ACE_OS::shm_unlink (ACE_TEXT_TO_TCHAR_IN (name));
return -1;
}
@@ -2816,7 +2794,7 @@ ACE_OS::event_init (ACE_event_t *event,
event->name_ = ACE_OS::strdup (name);
if (event->name_ == 0)
{
- ACE_OS::shm_unlink (ACE_TEXT_CHAR_TO_TCHAR (name));
+ ACE_OS::shm_unlink (ACE_TEXT_TO_TCHAR_IN (name));
return -1;
}
event->eventdata_ = evtdata;
@@ -4003,19 +3981,19 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
#endif /* ! defined (ACE_NO_THREAD_ADAPTER) */
- ACE_Base_Thread_Adapter *thread_args = 0;
+ ACE_Base_Thread_Adapter *thread_args;
if (thread_adapter == 0)
#if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
ACE_NEW_RETURN (thread_args,
ACE_OS_Thread_Adapter (func, args,
- (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME,
+ (ACE_THR_C_FUNC) ace_thread_adapter,
ACE_OS_Object_Manager::seh_except_selector(),
ACE_OS_Object_Manager::seh_except_handler()),
-1);
#else
ACE_NEW_RETURN (thread_args,
ACE_OS_Thread_Adapter (func, args,
- (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME),
+ (ACE_THR_C_FUNC) ace_thread_adapter),
-1);
#endif /* ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS */
@@ -4399,22 +4377,6 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
}
# endif /* !ACE_LACKS_THREAD_PROCESS_SCOPING */
-# ifdef ACE_HAS_PTHREAD_ATTR_SETCREATESUSPEND_NP
- if (ACE_BIT_ENABLED (flags, THR_SUSPENDED))
- {
- if (ACE_ADAPT_RETVAL(::pthread_attr_setcreatesuspend_np(&attr), result) != 0)
- {
-
-# if defined (ACE_HAS_PTHREADS_DRAFT4)
- ::pthread_attr_delete (&attr);
-# else /* ACE_HAS_PTHREADS_DRAFT4 */
- ::pthread_attr_destroy (&attr);
-# endif /* ACE_HAS_PTHREADS_DRAFT4 */
- return -1;
- }
- }
-# endif /* !ACE_HAS_PTHREAD_ATTR_SETCREATESUSPEND_NP */
-
if (ACE_BIT_ENABLED (flags, THR_NEW_LWP))
{
// Increment the number of LWPs by one to emulate the
@@ -4825,9 +4787,9 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
return -1;
else
{
- if (! thr_id_provided && thr_id)
+ if (! thr_id_provided && thr_id)
{
- if (*thr_id && (*thr_id)[0] == ACE_THR_ID_ALLOCATED)
+ if (*thr_id && (*thr_id)[0] == ACE_THR_ID_ALLOCATED)
// *thr_id was allocated by the Thread_Manager. ::taskTcb
// (int tid) returns the address of the WIND_TCB (task
// control block). According to the ::taskSpawn()
@@ -4835,12 +4797,12 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
// pStackBase, but is that of the current task? If so, it
// might be a bit quicker than this extraction of the tcb
// . . .
- ACE_OS::strsncpy (*thr_id + 1, ::taskName (tid), 10);
+ ACE_OS::strsncpy (*thr_id + 1, ::taskTcb (tid)->name, 10);
else
// *thr_id was not allocated by the Thread_Manager.
// Pass back the task name in the location pointed to
// by thr_id.
- *thr_id = ::taskName (tid);
+ *thr_id = ::taskTcb (tid)->name;
}
// else if the thr_id was provided, there's no need to overwrite
// it with the same value (string). If thr_id is 0, then we can't
@@ -5028,99 +4990,6 @@ ACE_OS::thr_key_detach (ACE_thread_key_t key, void *)
}
int
-ACE_OS::thr_get_affinity (ACE_hthread_t thr_id,
- size_t cpu_set_size,
- cpu_set_t * cpu_mask)
-{
-#if defined (ACE_HAS_PTHREAD_GETAFFINITY_NP)
- // Handle of the thread, which is NPTL thread-id, normally a big number
- if (::pthread_getaffinity_np (thr_id,
- cpu_set_size,
- cpu_mask) != 0)
- {
- return -1;
- }
- return 0;
-#elif defined (ACE_HAS_2_PARAM_SCHED_GETAFFINITY)
- // The process-id is expected as <thr_id>, which can be a thread-id of
- // linux-thread, thus making binding to cpu of that particular thread only.
- // If you are using this flag for NPTL-threads, however, please pass as a
- // thr_id process id obtained by ACE_OS::getpid ()
- ACE_UNUSED_ARG (cpu_set_size);
- if (::sched_getaffinity(thr_id,
- cpu_mask) == -1)
- {
- return -1;
- }
- return 0;
-#elif defined (ACE_HAS_SCHED_GETAFFINITY)
- // The process-id is expected as <thr_id>, which can be a thread-id of
- // linux-thread, thus making binding to cpu of that particular thread only.
- // If you are using this flag for NPTL-threads, however, please pass as a
- // thr_id process id obtained by ACE_OS::getpid ()
- if (::sched_getaffinity(thr_id,
- cpu_set_size,
- cpu_mask) == -1)
- {
- return -1;
- }
- return 0;
-#else
- ACE_UNUSED_ARG (thr_id);
- ACE_UNUSED_ARG (cpu_set_size);
- ACE_UNUSED_ARG (cpu_mask);
- ACE_NOTSUP_RETURN (-1);
-#endif
-}
-
-int
-ACE_OS::thr_set_affinity (ACE_hthread_t thr_id,
- size_t cpu_set_size,
- const cpu_set_t * cpu_mask)
-{
-#if defined (ACE_HAS_PTHREAD_SETAFFINITY_NP)
- if (::pthread_setaffinity_np (thr_id,
- cpu_set_size,
- cpu_mask) != 0)
- {
- return -1;
- }
- return 0;
-#elif defined (ACE_HAS_2_PARAM_SCHED_SETAFFINITY)
- // The process-id is expected as <thr_id>, which can be a thread-id of
- // linux-thread, thus making binding to cpu of that particular thread only.
- // If you are using this flag for NPTL-threads, however, please pass as a
- // thr_id process id obtained by ACE_OS::getpid (), but whole process will bind your CPUs
- //
- ACE_UNUSED_ARG (cpu_set_size);
- if (::sched_setaffinity (thr_id,
- cpu_mask) == -1)
- {
- return -1;
- }
- return 0;
-#elif defined (ACE_HAS_SCHED_SETAFFINITY)
- // The process-id is expected as <thr_id>, which can be a thread-id of
- // linux-thread, thus making binding to cpu of that particular thread only.
- // If you are using this flag for NPTL-threads, however, please pass as a
- // thr_id process id obtained by ACE_OS::getpid (), but whole process will bind your CPUs
- //
- if (::sched_setaffinity (thr_id,
- cpu_set_size,
- cpu_mask) == -1)
- {
- return -1;
- }
- return 0;
-#else
- ACE_UNUSED_ARG (thr_id);
- ACE_UNUSED_ARG (cpu_set_size);
- ACE_UNUSED_ARG (cpu_mask);
- ACE_NOTSUP_RETURN (-1);
-#endif
-}
-
-int
ACE_OS::thr_key_used (ACE_thread_key_t key)
{
#if defined (ACE_WIN32) || defined (ACE_HAS_TSS_EMULATION) || (defined (ACE_PSOS) && defined (ACE_PSOS_HAS_TSS))
@@ -5251,12 +5120,8 @@ ACE_OS::thr_keycreate (ACE_thread_key_t *key,
else
return -1;
/* NOTREACHED */
-# elif defined (ACE_HAS_THREAD_SPECIFIC_STORAGE)
+# else /* ACE_HAS_TSS_EMULATION */
return ACE_OS::thr_keycreate_native (key, dest);
-# else
- ACE_UNUSED_ARG (key);
- ACE_UNUSED_ARG (dest);
- ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_TSS_EMULATION */
# else /* ACE_HAS_THREADS */
ACE_UNUSED_ARG (key);
@@ -5319,11 +5184,8 @@ ACE_OS::thr_keyfree (ACE_thread_key_t key)
return cleanup->free_key (key);
}
return -1;
-# elif defined (ACE_HAS_THREAD_SPECIFIC_STORAGE)
+# else /* ACE_HAS_TSS_EMULATION */
return ACE_OS::thr_keyfree_native (key);
-# else
- ACE_UNUSED_ARG (key);
- ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_TSS_EMULATION */
# else /* ACE_HAS_THREADS */
ACE_UNUSED_ARG (key);
@@ -5392,7 +5254,7 @@ ACE_OS::thr_setspecific_native (ACE_OS_thread_key_t key, void *data)
ACE_OSCALL_RETURN (::pthread_setspecific (key, data), int, -1);
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_setspecific (key, data),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_setspecific (key, data),
result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4, 6 */
@@ -5474,12 +5336,8 @@ ACE_OS::thr_setspecific (ACE_thread_key_t key, void *data)
return -1;
}
return -1;
-# elif defined (ACE_HAS_THREAD_SPECIFIC_STORAGE)
- return ACE_OS::thr_setspecific_native (key, data);
# else /* ACE_HAS_TSS_EMULATION */
- ACE_UNUSED_ARG (key);
- ACE_UNUSED_ARG (data);
- ACE_NOTSUP_RETURN (-1);
+ return ACE_OS::thr_setspecific_native (key, data);
# endif /* ACE_HAS_TSS_EMULATION */
# else /* ACE_HAS_THREADS */
ACE_UNUSED_ARG (key);
@@ -5508,7 +5366,6 @@ ACE_OS::unique_name (const void *object,
length);
}
-#if defined (ACE_USES_WCHAR)
void
ACE_OS::unique_name (const void *object,
wchar_t *name,
@@ -5521,20 +5378,16 @@ ACE_OS::unique_name (const void *object,
// <object>.
wchar_t temp_name[ACE_UNIQUE_NAME_LEN];
ACE_OS::sprintf (temp_name,
- ACE_LIB_TEXT ("%p%d"),
+ ACE_TEXT_WIDE ("%p%d"),
object,
static_cast <int> (ACE_OS::getpid ()));
ACE_OS::strsncpy (name,
temp_name,
length);
}
-#endif
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# include /**/ <usrLib.h> /* for ::sp() */
-# include /**/ <sysLib.h> /* for ::sysClkRateGet() */
// This global function can be used from the VxWorks shell to pass
// arguments to a C main () function.
@@ -5545,8 +5398,8 @@ ACE_END_VERSIONED_NAMESPACE_DECL
int
spa (FUNCPTR entry, ...)
{
- static const unsigned int ACE_MAX_ARGS = 10;
- static char *argv[ACE_MAX_ARGS];
+ static const unsigned int MAX_ARGS = 10;
+ static char *argv[MAX_ARGS];
va_list pvar;
unsigned int argc;
@@ -5562,7 +5415,7 @@ spa (FUNCPTR entry, ...)
// number of arguments would have to be passed.
va_start (pvar, entry);
- for (argc = 1; argc <= ACE_MAX_ARGS; ++argc)
+ for (argc = 1; argc <= MAX_ARGS; ++argc)
{
argv[argc] = va_arg (pvar, char *);
@@ -5570,18 +5423,18 @@ spa (FUNCPTR entry, ...)
break;
}
- if (argc > ACE_MAX_ARGS && argv[argc-1] != 0)
+ if (argc > MAX_ARGS && argv[argc-1] != 0)
{
// try to read another arg, and warn user if the limit was exceeded
if (va_arg (pvar, char *) != 0)
ACE_OS::fprintf (stderr, "spa(): number of arguments limited to %d\n",
- ACE_MAX_ARGS);
+ MAX_ARGS);
}
else
{
// fill unused argv slots with 0 to get rid of leftovers
// from previous invocations
- for (unsigned int i = argc; i <= ACE_MAX_ARGS; ++i)
+ for (unsigned int i = argc; i <= MAX_ARGS; ++i)
argv[i] = 0;
}
@@ -5677,8 +5530,8 @@ int
spae (FUNCPTR entry, ...)
{
static const int WINDSH_ARGS = 10;
- static const int ACE_MAX_ARGS = 128;
- static char* argv[ACE_MAX_ARGS] = { "ace_main", 0 };
+ static const int MAX_ARGS = 128;
+ static char* argv[MAX_ARGS] = { "ace_main", 0 };
va_list pvar;
int argc = 1;
@@ -5692,12 +5545,12 @@ spae (FUNCPTR entry, ...)
for (char* str = va_arg (pvar, char*);
str != 0 && i < WINDSH_ARGS; str = va_arg (pvar, char*), ++i)
{
- add_to_argv(argc, argv, ACE_MAX_ARGS, str);
+ add_to_argv(argc, argv, MAX_ARGS, str);
}
// fill unused argv slots with 0 to get rid of leftovers
// from previous invocations
- for (i = argc; i < ACE_MAX_ARGS; ++i)
+ for (i = argc; i < MAX_ARGS; ++i)
argv[i] = 0;
// The hard-coded options are what ::sp () uses, except for the
@@ -5731,8 +5584,8 @@ int
spaef (FUNCPTR entry, ...)
{
static const int WINDSH_ARGS = 10;
- static const int ACE_MAX_ARGS = 128;
- static char* argv[ACE_MAX_ARGS] = { "ace_main", 0 };
+ static const int MAX_ARGS = 128;
+ static char* argv[MAX_ARGS] = { "ace_main", 0 };
va_list pvar;
int argc = 1;
@@ -5746,12 +5599,12 @@ spaef (FUNCPTR entry, ...)
for (char* str = va_arg (pvar, char*);
str != 0 && i < WINDSH_ARGS; str = va_arg (pvar, char*), ++i)
{
- add_to_argv(argc, argv, ACE_MAX_ARGS, str);
+ add_to_argv(argc, argv, MAX_ARGS, str);
}
// fill unused argv slots with 0 to get rid of leftovers
// from previous invocations
- for (i = argc; i < ACE_MAX_ARGS; ++i)
+ for (i = argc; i < MAX_ARGS; ++i)
argv[i] = 0;
int ret = entry (argc, argv);
@@ -5782,18 +5635,18 @@ _vx_call_entry(FUNCPTR entry, int argc, char* argv[])
int
vx_execae (FUNCPTR entry, char* arg, int prio, int opt, int stacksz, ...)
{
- static const int ACE_MAX_ARGS = 128;
- static char* argv[ACE_MAX_ARGS] = { "ace_main", 0 };
+ static const int MAX_ARGS = 128;
+ static char* argv[MAX_ARGS] = { "ace_main", 0 };
int argc = 1;
// Peel off arguments to run_main () and put into argv.
if (arg)
- add_to_argv(argc, argv, ACE_MAX_ARGS, arg);
+ add_to_argv(argc, argv, MAX_ARGS, arg);
// fill unused argv slots with 0 to get rid of leftovers
// from previous invocations
- for (int i = argc; i < ACE_MAX_ARGS; ++i)
+ for (int i = argc; i < MAX_ARGS; ++i)
argv[i] = 0;
// The hard-coded options are what ::sp () uses, except for the
@@ -5815,7 +5668,7 @@ vx_execae (FUNCPTR entry, char* arg, int prio, int opt, int stacksz, ...)
// successful
return ret > 0 ? _vx_call_rc : 255;
}
-#endif /* ACE_VXWORKS && !__RTP__ */
+#endif /* VXWORKS */
#if defined (__DGUX) && defined (ACE_HAS_THREADS) && defined (_POSIX4A_DRAFT10_SOURCE)
extern "C" int __d6_sigwait (sigset_t *set);
diff --git a/ace/OS_NS_Thread.h b/ace/OS_NS_Thread.h
index 021f664c2ab..745f5c730d1 100644
--- a/ace/OS_NS_Thread.h
+++ b/ace/OS_NS_Thread.h
@@ -29,7 +29,6 @@
# include "ace/Basic_Types.h"
# include "ace/Default_Constants.h"
# include "ace/os_include/os_pthread.h"
-# include "ace/os_include/os_sched.h"
# include "ace/Base_Thread_Adapter.h"
# include "ace/os_include/sys/os_sem.h"
# include "ace/os_include/os_semaphore.h"
@@ -55,8 +54,6 @@
# include /**/ <sys/tspriocntl.h>
# endif /* ACE_HAS_PRIOCNTL */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_PSOS)
// Use pSOS semaphores, wrapped . . .
typedef struct
@@ -118,8 +115,6 @@ typedef DWORD ACE_OS_thread_key_t;
# endif /* ! ACE_HAS_TSS_EMULATION */
# endif /* ACE_WIN32 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if !defined (ACE_HAS_POSIX_SEM) && defined (ACE_USES_FIFO_SEM)
extern "C" {
@@ -155,9 +150,6 @@ extern "C" {
# if defined (ACE_HAS_PTHREADS)
// moved to pthread.h
# elif defined (ACE_HAS_STHREADS)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Solaris threads, without PTHREADS.
// Typedefs to help compatibility with Windows NT and Pthreads.
typedef thread_t ACE_thread_t;
@@ -189,8 +181,6 @@ struct ACE_Export ACE_mutexattr_t
typedef ACE_thread_t ACE_hthread_t;
typedef ACE_mutex_t ACE_thread_mutex_t;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# define THR_CANCEL_DISABLE 0
# define THR_CANCEL_ENABLE 0
# define THR_CANCEL_DEFERRED 0
@@ -202,8 +192,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# elif defined (ACE_PSOS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Some versions of pSOS provide native mutex support. For others,
// implement ACE_thread_mutex_t and ACE_mutex_t using pSOS semaphores.
// Either way, the types are all u_longs.
@@ -245,8 +233,6 @@ typedef u_int ACE_OS_thread_key_t;
typedef ACE_OS_thread_key_t ACE_thread_key_t;
# endif /* ! ACE_HAS_TSS_EMULATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# define THR_CANCEL_DISABLE 0 /* thread can never be cancelled */
# define THR_CANCEL_ENABLE 0 /* thread can be cancelled */
# define THR_CANCEL_DEFERRED 0 /* cancellation deferred to cancellation point */
@@ -282,12 +268,10 @@ ACE_END_VERSIONED_NAMESPACE_DECL
/* #define T_NOFPU 0x00000000 Not using FPU */
/* #define T_FPU 0x00000002 Using FPU bit */
-# elif defined (ACE_VXWORKS)
+# elif defined (VXWORKS)
# include /**/ <sysLib.h> // for sysClkRateGet()
-# if !defined (__RTP__)
-# include /**/ <taskLib.h>
-# include /**/ <taskHookLib.h>
-# endif
+# include /**/ <taskLib.h>
+# include /**/ <taskHookLib.h>
// make sure these are included for VXWORKS.
// @todo move these to a common place, perhaps the top of the file.
@@ -306,9 +290,7 @@ ACE_END_VERSIONED_NAMESPACE_DECL
// task options: the other options are either obsolete, internal, or for
// Fortran or Ada support
# define VX_UNBREAKABLE 0x0002 /* breakpoints ignored */
-# if !defined (VX_FP_TASK)
-# define VX_FP_TASK 0x0008 /* floating point coprocessor */
-# endif
+# define VX_FP_TASK 0x0008 /* floating point coprocessor */
# define VX_PRIVATE_ENV 0x0080 /* private environment support */
# define VX_NO_STACK_FILL 0x0100 /* do not stack fill for
checkstack () */
@@ -335,8 +317,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# define USYNC_PROCESS 1 /* It's all global on VxWorks
(without MMU option). */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef SEM_ID ACE_mutex_t;
// Implement ACE_thread_mutex_t with ACE_mutex_t because there's just
// one process . . .
@@ -366,16 +346,12 @@ typedef u_int ACE_OS_thread_key_t;
typedef ACE_OS_thread_key_t ACE_thread_key_t;
# endif /* ! ACE_HAS_TSS_EMULATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Marker for ACE_Thread_Manager to indicate that it allocated
// an ACE_thread_t. It is placed at the beginning of the ID.
# define ACE_THR_ID_ALLOCATED '\022'
# elif defined (ACE_HAS_WTHREADS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef CRITICAL_SECTION ACE_thread_mutex_t;
typedef struct
@@ -420,8 +396,6 @@ public:
# endif /* ACE_USES_WINCE_SEMA_SIMULATION */
# endif /* defined (ACE_WIN32) */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// These need to be different values, neither of which can be 0...
# define USYNC_THREAD 1
# define USYNC_PROCESS 2
@@ -449,9 +423,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
// takes care of it) unless we're on Windows. Win32 mutexes, semaphores,
// and condition variables are not yet supported in PACE.
# if defined (ACE_LACKS_COND_T)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_cond_t
*
@@ -510,15 +481,10 @@ struct ACE_Export ACE_mutexattr_t
{
int type;
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# endif /* ACE_LACKS_COND_T */
# if defined (ACE_LACKS_RWLOCK_T) && !defined (ACE_HAS_PTHREADS_UNIX98_EXT)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_rwlock_t
*
@@ -558,18 +524,11 @@ public:
/// Condition for the upgrading reader
ACE_cond_t waiting_important_writer_;
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# elif defined (ACE_HAS_PTHREADS_UNIX98_EXT)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef pthread_rwlock_t ACE_rwlock_t;
-ACE_END_VERSIONED_NAMESPACE_DECL
# elif defined (ACE_HAS_STHREADS)
# include /**/ <synch.h>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef rwlock_t ACE_rwlock_t;
-ACE_END_VERSIONED_NAMESPACE_DECL
# endif /* ACE_LACKS_RWLOCK_T */
// Define some default thread priorities on all threaded platforms, if
@@ -619,9 +578,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
// and recursive_mutex_cond_relock() methods to maintain the expected
// state when the wait finishes.
# if defined (ACE_HAS_RECURSIVE_MUTEXES)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_thread_mutex_t ACE_recursive_thread_mutex_t;
# if defined (ACE_WIN32)
// Windows has recursive mutexes, but doesn't have condition variables,
@@ -637,13 +593,7 @@ struct ACE_recursive_mutex_state
// No need for special handling; just need a type for method signatures.
typedef int ACE_recursive_mutex_state;
# endif /* ACE_WIN32 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# else
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_recursive_thread_mutex_t
*
@@ -678,9 +628,6 @@ struct ACE_recursive_mutex_state
int nesting_level_;
ACE_thread_t owner_id_;
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# endif /* ACE_HAS_RECURSIVE_MUTEXES */
# else /* !ACE_HAS_THREADS, i.e., the OS/platform doesn't support threading. */
@@ -747,8 +694,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# define THR_SCOPE_SYSTEM 0
# endif /* ! THR_SCOPE_SYSTEM */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// These are dummies needed for class OS.h
typedef int ACE_cond_t;
struct ACE_Export ACE_condattr_t
@@ -778,8 +723,6 @@ typedef unsigned int ACE_OS_thread_key_t;
typedef ACE_OS_thread_key_t ACE_thread_key_t;
# endif /* ! ACE_HAS_TSS_EMULATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Ensure that ACE_THR_PRI_FIFO_DEF and ACE_THR_PRI_OTHER_DEF are
// defined on non-threaded platforms, to support application source
// code compatibility. ACE_THR_PRI_FIFO_DEF should be used by
@@ -794,8 +737,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# endif /* ACE_HAS_THREADS ***********************************************/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Thread_ID
*
@@ -852,14 +793,14 @@ private:
typedef int ACE_Sched_Priority;
# if !defined (ACE_DEFAULT_SYNCH_TYPE)
-# if defined (ACE_VXWORKS)
+# if defined (VXWORKS)
// Types include these options: SEM_Q_PRIORITY, SEM_Q_FIFO,
// SEM_DELETE_SAFE, and SEM_INVERSION_SAFE. SEM_Q_FIFO is
// used as the default because that is VxWorks' default.
# define ACE_DEFAULT_SYNCH_TYPE SEM_Q_FIFO
# else
# define ACE_DEFAULT_SYNCH_TYPE USYNC_THREAD
-# endif /* ACE_VXWORKS */
+# endif /* VXWORKS */
#endif /* ! ACE_DEFAULT_SYNCH_TYPE */
// forward declaration
@@ -955,7 +896,7 @@ public:
* address on success. Returns 0 if local TSS had already been
* setup for this thread. There is no corresponding tss_close ()
* because it is not needed.
- * @note tss_open () is called by ACE for threads that it spawns.
+ * NOTE: tss_open () is called by ACE for threads that it spawns.
* If your application spawns threads without using ACE, and it uses
* ACE's TSS emulation, each of those threads should call tss_open
* (). See the ace_thread_adapter () implementation for an example.
@@ -1162,43 +1103,24 @@ private:
# define ACE_KEY_INDEX(OBJ,KEY) u_int OBJ = KEY
# endif /* ACE_HAS_NONSCALAR_THREAD_KEY_T */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ace_mutex_lock_cleanup_adapter)
-
-#else
-
-# define ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME ace_mutex_lock_cleanup_adapter
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
# if defined (ACE_HAS_THR_C_FUNC)
// This is necessary to work around nasty problems with MVS C++.
-extern "C" ACE_Export void ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME (void *args);
-# define ACE_PTHREAD_CLEANUP_PUSH(A) pthread_cleanup_push (ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME, (void *) A);
+extern "C" ACE_Export void ace_mutex_lock_cleanup_adapter (void *args);
+# define ACE_PTHREAD_CLEANUP_PUSH(A) pthread_cleanup_push (ace_mutex_lock_cleanup_adapter, (void *) A);
# define ACE_PTHREAD_CLEANUP_POP(A) pthread_cleanup_pop(A)
# elif defined (ACE_HAS_PTHREADS) && !defined (ACE_LACKS_PTHREAD_CLEANUP)
// Though we are defining a extern "C" function to match the prototype of
// pthread_cleanup_push, it is undone by the Solaris header file
// /usr/include/pthread.h. So this macro generates a warning under Solaris
// with SunCC. This is a bug in the Solaris header file.
-extern "C" ACE_Export void ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME (void *args);
-# define ACE_PTHREAD_CLEANUP_PUSH(A) pthread_cleanup_push (ACE_MUTEX_LOCK_CLEANUP_ADAPTER_NAME, (void *) A);
+extern "C" ACE_Export void ace_mutex_lock_cleanup_adapter (void *args);
+# define ACE_PTHREAD_CLEANUP_PUSH(A) pthread_cleanup_push (ace_mutex_lock_cleanup_adapter, (void *) A);
# define ACE_PTHREAD_CLEANUP_POP(A) pthread_cleanup_pop(A)
# else
# define ACE_PTHREAD_CLEANUP_PUSH(A)
# define ACE_PTHREAD_CLEANUP_POP(A)
# endif /* ACE_HAS_THR_C_FUNC */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if !defined (ACE_WIN32)
// forward decl's
class ACE_event_t;
@@ -1282,7 +1204,6 @@ namespace ACE_OS {
const char *name = 0,
void *arg = 0);
-# if defined (ACE_HAS_WCHAR)
# if defined (ACE_LACKS_COND_T) && ! defined (ACE_PSOS_DIAB_MIPS)
extern ACE_Export
# else
@@ -1302,7 +1223,6 @@ namespace ACE_OS {
ACE_condattr_t &attributes,
const wchar_t *name,
void *arg = 0);
-# endif /* ACE_HAS_WCHAR */
#if defined (ACE_LACKS_COND_T) && ! defined (ACE_PSOS_DIAB_MIPS)
extern ACE_Export
@@ -1361,7 +1281,6 @@ namespace ACE_OS {
void *arg = 0,
LPSECURITY_ATTRIBUTES sa = 0);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int event_init (ACE_event_t *event,
int manual_reset,
@@ -1370,7 +1289,6 @@ namespace ACE_OS {
const wchar_t *name,
void *arg = 0,
LPSECURITY_ATTRIBUTES sa = 0);
-# endif /* ACE_HAS_WCHAR */
extern ACE_Export
int event_pulse (ACE_event_t *event);
@@ -1411,7 +1329,6 @@ namespace ACE_OS {
LPSECURITY_ATTRIBUTES sa = 0,
int lock_type = 0);
-#if defined (ACE_HAS_WCHAR)
extern ACE_Export
int mutex_init (ACE_mutex_t *m,
int lock_scope,
@@ -1419,7 +1336,6 @@ namespace ACE_OS {
ACE_mutexattr_t *arg = 0,
LPSECURITY_ATTRIBUTES sa = 0,
int lock_type = 0);
-#endif /* ACE_HAS_WCHAR */
/// Win32 note: Abandoned mutexes are not treated differently. 0 is
/// returned since the calling thread does get the ownership.
@@ -1576,7 +1492,6 @@ namespace ACE_OS {
int max = 0x7fffffff,
LPSECURITY_ATTRIBUTES sa = 0);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int sema_init (ACE_sema_t *s,
u_int count,
@@ -1585,7 +1500,6 @@ namespace ACE_OS {
void *arg = 0,
int max = 0x7fffffff,
LPSECURITY_ATTRIBUTES sa = 0);
-# endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int sema_post (ACE_sema_t *s);
@@ -1747,40 +1661,7 @@ namespace ACE_OS {
ACE_THR_FUNC_RETURN *status);
/**
- * Get the thread affinity
- *
- * @param thr_id For NPTL-threads, when ACE_HAS_PTHREAD_SETAFFINITY_NP
- * defined, this is the thread-id. For linux-threads, when
- * ACE_HAS_SCHED_SETAFFINITY defined, it expects a process-id. Since for
- * linux-threads a thread is seen as a process, it does the job.
- * @param cpu_set_size The size of the cpu_mask
- * @param cpu_mask Is a bitmask of CPUs to bind to, e.g value 1 binds the
- * thread to the "CPU 0", etc
- */
- extern ACE_Export
- int thr_get_affinity (ACE_hthread_t id,
- size_t cpu_set_size,
- cpu_set_t * cpu_mask);
-
-
- /**
- * Set the thread affinity
- *
- * @param thr_id For NPTL-threads, when ACE_HAS_PTHREAD_SETAFFINITY_NP
- * defined, this is the thread-id. For linux-threads, when
- * ACE_HAS_SCHED_SETAFFINITY defined, it expects a process-id. Since for
- * linux-threads a thread is seen as a process, it does the job.
- * @param cpu_set_size The size of the cpu_mask
- * @param cpu_mask Is a bitmask of CPUs to bind to, e.g value 1 binds the
- * thread to the "CPU 0", etc
- */
- extern ACE_Export
- int thr_set_affinity (ACE_hthread_t thr_id,
- size_t cpu_set_size,
- const cpu_set_t * cpu_mask);
-
- /**
- * @note the "inst" arg is deprecated. It will be ignored.
+ * @note the "inst" arge is deprecated. It will be ignored.
*/
extern ACE_Export
int thr_key_detach (ACE_thread_key_t key, void * inst);
@@ -1897,13 +1778,11 @@ namespace ACE_OS {
const char *name = 0,
ACE_mutexattr_t *arg = 0);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int thread_mutex_init (ACE_thread_mutex_t *m,
int lock_type,
const wchar_t *name,
ACE_mutexattr_t *arg = 0);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int thread_mutex_lock (ACE_thread_mutex_t *m);
@@ -1936,15 +1815,13 @@ namespace ACE_OS {
void unique_name (const void *object,
char *name,
size_t length);
-#if defined (ACE_USES_WCHAR)
+
extern ACE_Export
void unique_name (const void *object,
wchar_t *name,
size_t length);
-#endif /* ACE_USES_WCHAR */
-} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
+} /* namespace ACE_OS */
#if !defined (ACE_WIN32)
@@ -1994,8 +1871,6 @@ extern "C"
} ACE_eventdata_t;
}
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_event_t
*
@@ -2032,14 +1907,10 @@ protected:
#endif
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_OS_Thread_Mutex_Guard
*
@@ -2132,8 +2003,6 @@ protected:
const ACE_OS_Recursive_Thread_Mutex_Guard &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// used in time and unistd
# define ACE_OS_GUARD \
ACE_OS_Thread_Mutex_Guard ace_os_guard__ (*(ACE_thread_mutex_t *) \
diff --git a/ace/OS_NS_Thread.inl b/ace/OS_NS_Thread.inl
index b839a53ce94..d81b0c88966 100644
--- a/ace/OS_NS_Thread.inl
+++ b/ace/OS_NS_Thread.inl
@@ -23,8 +23,6 @@
# include /**/ <sys/priocntl.h>
#endif /* ACE_HAS_PRIOCNTL */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*****************************************************************************/
#if defined (ACE_LACKS_COND_T) && defined (ACE_HAS_THREADS)
@@ -44,7 +42,7 @@ ACE_INLINE
void **&
ACE_TSS_Emulation::tss_base ()
{
-# if defined (ACE_VXWORKS)
+# if defined (VXWORKS)
return (void **&) taskIdCurrent->ACE_VXWORKS_SPARE;
# elif defined (ACE_PSOS)
// not supported
@@ -53,7 +51,7 @@ ACE_TSS_Emulation::tss_base ()
# else
// Uh oh.
ACE_NOTSUP_RETURN (0);
-# endif /* ACE_VXWORKS */
+# endif /* VXWORKS */
}
# endif /* ! ACE_HAS_THREAD_SPECIFIC_STORAGE */
@@ -85,7 +83,7 @@ ACE_TSS_Emulation::ts_object (const ACE_thread_key_t key)
t_getreg (0, PSOS_TASK_REG_TSS, &tss_base);
return ((void **) tss_base)[key_index];
# else
-# if defined (ACE_VXWORKS)
+# if defined (VXWORKS)
/* If someone wants tss_base make sure they get one. This
gets used if someone spawns a VxWorks task directly, not
through ACE. The allocated array will never be deleted! */
@@ -118,10 +116,10 @@ ACE_OS::thr_equal (ACE_thread_t t1, ACE_thread_t t2)
{
#if defined (ACE_HAS_PTHREADS)
# if defined (pthread_equal)
- // If it's a macro we can't say "pthread_equal"...
+ // If it's a macro we can't say "::pthread_equal"...
return pthread_equal (t1, t2);
# else
- return pthread_equal (t1, t2);
+ return ::pthread_equal (t1, t2);
# endif /* pthread_equal */
#elif defined (VXWORKS)
return ! ACE_OS::strcmp (t1, t2);
@@ -145,9 +143,9 @@ ACE_OS::condattr_destroy (ACE_condattr_t &attributes)
# if defined (ACE_HAS_PTHREADS)
# if defined (ACE_HAS_PTHREADS_DRAFT4)
- pthread_condattr_delete (&attributes);
+ ::pthread_condattr_delete (&attributes);
# else
- pthread_condattr_destroy (&attributes);
+ ::pthread_condattr_destroy (&attributes);
# endif /* ACE_HAS_PTHREADS_DRAFT4 */
# elif defined (ACE_HAS_STHREADS)
@@ -175,20 +173,20 @@ ACE_OS::condattr_init (ACE_condattr_t &attributes,
if (
# if defined (ACE_HAS_PTHREADS_DRAFT4)
- pthread_condattr_create (&attributes) == 0
+ ::pthread_condattr_create (&attributes) == 0
# elif defined (ACE_HAS_PTHREADS_STD) || defined (ACE_HAS_PTHREADS_DRAFT7)
- ACE_ADAPT_RETVAL (pthread_condattr_init (&attributes), result) == 0
+ ACE_ADAPT_RETVAL(::pthread_condattr_init (&attributes), result) == 0
# if defined (_POSIX_THREAD_PROCESS_SHARED) && !defined (ACE_LACKS_CONDATTR_PSHARED)
- && ACE_ADAPT_RETVAL (pthread_condattr_setpshared (&attributes, type),
- result) == 0
+ && ACE_ADAPT_RETVAL(::pthread_condattr_setpshared (&attributes, type),
+ result) == 0
# endif /* _POSIX_THREAD_PROCESS_SHARED && ! ACE_LACKS_CONDATTR_PSHARED */
# else /* this is draft 6 */
- pthread_condattr_init (&attributes) == 0
+ ::pthread_condattr_init (&attributes) == 0
# if !defined (ACE_LACKS_CONDATTR_PSHARED)
- && pthread_condattr_setpshared (&attributes, type) == 0
+ && ::pthread_condattr_setpshared (&attributes, type) == 0
# endif /* ACE_LACKS_CONDATTR_PSHARED */
# if defined (ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP)
- && pthread_condattr_setkind_np (&attributes, type) == 0
+ && ::pthread_condattr_setkind_np (&attributes, type) == 0
# endif /* ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP */
# endif /* ACE_HAS_PTHREADS_DRAFT4 */
)
@@ -231,10 +229,10 @@ ACE_OS::cond_broadcast (ACE_cond_t *cv)
# if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
- ACE_OSCALL_RETURN (pthread_cond_broadcast (cv), int, -1);
+ ACE_OSCALL_RETURN (::pthread_cond_broadcast (cv), int, -1);
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_cond_broadcast (cv),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_cond_broadcast (cv),
result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4 || ACE_HAS_PTHREADS_DRAFT6 */
@@ -261,10 +259,10 @@ ACE_OS::cond_destroy (ACE_cond_t *cv)
# if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
- ACE_OSCALL_RETURN (pthread_cond_destroy (cv), int, -1);
+ ACE_OSCALL_RETURN (::pthread_cond_destroy (cv), int, -1);
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_cond_destroy (cv), result), int, -1);
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_cond_destroy (cv), result), int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4 || ACE_HAS_PTHREADS_DRAFT6 */
# elif defined (ACE_HAS_STHREADS)
int result;
@@ -295,11 +293,11 @@ ACE_OS::cond_init (ACE_cond_t *cv,
if (
# if defined (ACE_HAS_PTHREADS_DRAFT4)
- pthread_cond_init (cv, attributes) == 0
+ ::pthread_cond_init (cv, attributes) == 0
# elif defined (ACE_HAS_PTHREADS_STD) || defined (ACE_HAS_PTHREADS_DRAFT7)
- ACE_ADAPT_RETVAL (pthread_cond_init (cv, &attributes), result) == 0
+ ACE_ADAPT_RETVAL(::pthread_cond_init (cv, &attributes), result) == 0
# else /* this is draft 6 */
- pthread_cond_init (cv, &attributes) == 0
+ ::pthread_cond_init (cv, &attributes) == 0
# endif /* ACE_HAS_PTHREADS_DRAFT4 */
)
result = 0;
@@ -331,24 +329,20 @@ ACE_OS::cond_init (ACE_cond_t *cv,
# endif /* ACE_HAS_THREADS */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::cond_init (ACE_cond_t *cv,
ACE_condattr_t &attributes,
const wchar_t *name,
void *arg)
{
- return ACE_OS::cond_init (cv, attributes, ACE_Wide_To_Ascii (name).char_rep (), arg);
+ return ACE_OS::cond_init (cv, attributes, ACE_TEXT_TO_CHAR_IN (name), arg);
}
-#endif /* ACE_HAS_WCHAR */
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::cond_init (ACE_cond_t *cv, short type, const wchar_t *name, void *arg)
{
- return ACE_OS::cond_init (cv, type, ACE_Wide_To_Ascii (name).char_rep (), arg);
+ return ACE_OS::cond_init (cv, type, ACE_TEXT_TO_CHAR_IN (name), arg);
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::cond_signal (ACE_cond_t *cv)
@@ -357,10 +351,10 @@ ACE_OS::cond_signal (ACE_cond_t *cv)
# if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
- ACE_OSCALL_RETURN (pthread_cond_signal (cv), int, -1);
+ ACE_OSCALL_RETURN (::pthread_cond_signal (cv), int, -1);
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_cond_signal (cv), result),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_cond_signal (cv), result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4 || ACE_HAS_PTHREADS_DRAFT6 */
# elif defined (ACE_HAS_STHREADS)
@@ -385,10 +379,10 @@ ACE_OS::cond_wait (ACE_cond_t *cv,
# if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
- ACE_OSCALL_RETURN (pthread_cond_wait (cv, external_mutex), int, -1);
+ ACE_OSCALL_RETURN (::pthread_cond_wait (cv, external_mutex), int, -1);
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_cond_wait (cv, external_mutex), result),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_cond_wait (cv, external_mutex), result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4 || ACE_HAS_PTHREADS_DRAFT6 */
# elif defined (ACE_HAS_STHREADS)
@@ -425,12 +419,12 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv,
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
if (timeout == 0)
- ACE_OSCALL (pthread_cond_wait (cv, external_mutex),
+ ACE_OSCALL (::pthread_cond_wait (cv, external_mutex),
int, -1, result);
else
{
-# if defined (ACE_LYNXOS_MAJOR) && (ACE_LYNXOS_MAJOR == 3) && (ACE_LYNXOS_MINOR == 0)
+# if defined (__Lynx__)
// Note that we must convert between absolute time (which is
// passed as a parameter) and relative time (which is what the
// LynxOS pthread_cond_timedwait expects). This differs from 1003.4a
@@ -438,20 +432,20 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv,
timespec_t relative_time = *timeout - ACE_OS::gettimeofday ();
- ACE_OSCALL (pthread_cond_timedwait (cv, external_mutex,
+ ACE_OSCALL (::pthread_cond_timedwait (cv, external_mutex,
&relative_time),
int, -1, result);
# else
- ACE_OSCALL (pthread_cond_timedwait (cv, external_mutex,
+ ACE_OSCALL (::pthread_cond_timedwait (cv, external_mutex,
(ACE_TIMESPEC_PTR) &ts),
int, -1, result);
-# endif /* ACE_LYNXOS_MAJOR ... */
+# endif /* __Lynx__ */
}
# else
ACE_OSCALL (ACE_ADAPT_RETVAL (timeout == 0
- ? pthread_cond_wait (cv, external_mutex)
- : pthread_cond_timedwait (cv, external_mutex,
+ ? ::pthread_cond_wait (cv, external_mutex)
+ : ::pthread_cond_timedwait (cv, external_mutex,
(ACE_TIMESPEC_PTR) &ts),
result),
int, -1, result);
@@ -525,7 +519,6 @@ ACE_OS::mutex_lock (ACE_mutex_t *m,
return timeout == 0 ? ACE_OS::mutex_lock (m) : ACE_OS::mutex_lock (m, *timeout);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::event_init (ACE_event_t *event,
int manual_reset,
@@ -554,12 +547,11 @@ ACE_OS::event_init (ACE_event_t *event,
manual_reset,
initial_state,
type,
- ACE_Wide_To_Ascii (name).char_rep (),
+ ACE_TEXT_TO_CHAR_IN (name),
arg,
sa);
#endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE long
ACE_OS::priority_control (ACE_idtype_t idtype, ACE_id_t identifier, int cmd, void *arg)
@@ -597,26 +589,9 @@ ACE_OS::recursive_mutex_cond_unlock (ACE_recursive_thread_mutex_t *m,
// need to release the lock one fewer times than this thread has acquired
// it. Remember how many times, and reacquire it that many more times when
// the condition is signaled.
- //
- // For WinCE, the situation is a bit trickier. CE doesn't have
- // RecursionCount, and LockCount is not an indicator of recursion on WinCE;
- // instead, see when it's unlocked by watching the OwnerThread, which will
- // change to something other than the current thread when it's been
- // unlocked "enough" times. Note that checking for 0 (unlocked) is not
- // sufficient. Another thread may acquire the lock between our unlock and
- // checking the OwnerThread. So grab our thread ID value first, then
- // compare to it in the loop condition.
-# if defined (ACE_HAS_WINCE)
- ACE_thread_t me = ACE_OS::thr_self ();
-# endif /* ACE_HAS_WINCE */
-
state.relock_count_ = 0;
while (m->LockCount > 0
-# if defined (ACE_HAS_WINCE)
- // Although this is a thread ID, OwnerThread's type is HANDLE.
- // Not sure if this is a problem, but it appears to work.
- && m->OwnerThread == (HANDLE)me
-# else
+# if !defined (ACE_HAS_WINCE) /* WinCE doesn't have RecursionCount */
&& m->RecursionCount > 1
# endif
)
@@ -1317,7 +1292,7 @@ ACE_OS::rwlock_init (ACE_rwlock_t *rw,
int status;
pthread_rwlockattr_t attr;
pthread_rwlockattr_init (&attr);
-# if !defined (ACE_LACKS_RWLOCKATTR_PSHARED)
+# if !defined(ACE_LACKS_RWLOCKATTR_PSHARED)
pthread_rwlockattr_setpshared (&attr, (type == USYNC_THREAD ?
PTHREAD_PROCESS_PRIVATE :
PTHREAD_PROCESS_SHARED));
@@ -1344,10 +1319,6 @@ ACE_OS::sema_destroy (ACE_sema_t *s)
ACE_OS_TRACE ("ACE_OS::sema_destroy");
# if defined (ACE_HAS_POSIX_SEM)
int result;
-# if !defined (ACE_HAS_POSIX_SEM_TIMEOUT)
- ACE_OS::mutex_destroy (&s->lock_);
- ACE_OS::cond_destroy (&s->count_nonzero_);
-# endif /* !ACE_HAS_POSIX_SEM_TIMEOUT */
# if defined (ACE_LACKS_NAMED_POSIX_SEM)
if (s->name_)
{
@@ -1435,44 +1406,24 @@ ACE_OS::sema_init (ACE_sema_t *s,
{
ACE_OS_TRACE ("ACE_OS::sema_init");
#if defined (ACE_HAS_POSIX_SEM)
+ ACE_UNUSED_ARG (arg);
ACE_UNUSED_ARG (max);
ACE_UNUSED_ARG (sa);
s->name_ = 0;
-# if defined (ACE_HAS_POSIX_SEM_TIMEOUT)
- ACE_UNUSED_ARG (arg);
-# else
- int result = -1;
-
- if (ACE_OS::mutex_init (&s->lock_, type, name,
- (ACE_mutexattr_t *) arg) == 0
- && ACE_OS::cond_init (&s->count_nonzero_, (short)type, name, arg) == 0
- && ACE_OS::mutex_lock (&s->lock_) == 0)
- {
- if (ACE_OS::mutex_unlock (&s->lock_) == 0)
- result = 0;
- }
-
- if (result == -1)
- {
- ACE_OS::mutex_destroy (&s->lock_);
- ACE_OS::cond_destroy (&s->count_nonzero_);
- return result;
- }
-# endif /* ACE_HAS_POSIX_SEM_TIMEOUT */
# if defined (ACE_LACKS_NAMED_POSIX_SEM)
s->new_sema_ = 0;
if (type == USYNC_PROCESS)
{
// Let's see if it already exists.
- ACE_HANDLE fd = ACE_OS::shm_open (ACE_TEXT_CHAR_TO_TCHAR (name),
+ ACE_HANDLE fd = ACE_OS::shm_open (ACE_TEXT_TO_TCHAR_IN(name),
O_RDWR | O_CREAT | O_EXCL,
ACE_DEFAULT_FILE_PERMS);
if (fd == ACE_INVALID_HANDLE)
{
if (errno == EEXIST)
- fd = ACE_OS::shm_open (ACE_TEXT_CHAR_TO_TCHAR (name),
+ fd = ACE_OS::shm_open (ACE_TEXT_TO_TCHAR_IN(name),
O_RDWR | O_CREAT,
ACE_DEFAULT_FILE_PERMS);
else
@@ -1581,7 +1532,7 @@ ACE_OS::sema_init (ACE_sema_t *s,
s->fd_[0] = s->fd_[1] = ACE_INVALID_HANDLE;
bool creator = false;
- if (ACE_OS::mkfifo (ACE_TEXT_CHAR_TO_TCHAR (name), mode) < 0)
+ if (ACE_OS::mkfifo (ACE_TEXT_TO_TCHAR_IN(name), mode) < 0)
{
if (errno != EEXIST) /* already exists OK else ERR */
return -1;
@@ -1589,7 +1540,7 @@ ACE_OS::sema_init (ACE_sema_t *s,
ACE_stat fs;
if (ACE_OS::stat (name, &fs))
return -1;
- if (!S_ISFIFO (fs.st_mode))
+ if (!S_ISFIFO(fs.st_mode))
{
// existing file is not a FIFO
errno = EEXIST;
@@ -1614,23 +1565,23 @@ ACE_OS::sema_init (ACE_sema_t *s,
if ((s->fd_[0] = ACE_OS::open (name, O_RDONLY | O_NONBLOCK)) == ACE_INVALID_HANDLE
|| (s->fd_[1] = ACE_OS::open (name, O_WRONLY | O_NONBLOCK)) == ACE_INVALID_HANDLE)
- return (-1);
+ return(-1);
/* turn off nonblocking for fd_[0] */
if ((flags = ACE_OS::fcntl (s->fd_[0], F_GETFL, 0)) < 0)
- return (-1);
+ return(-1);
flags &= ~O_NONBLOCK;
if (ACE_OS::fcntl (s->fd_[0], F_SETFL, flags) < 0)
- return (-1);
+ return(-1);
//if (s->name_ && count)
if (creator && count)
{
char c = 1;
- for (u_int i=0; i<count ;++i)
- if (ACE_OS::write (s->fd_[1], &c, sizeof (char)) != 1)
- return (-1);
+ for(u_int i=0; i<count ;++i)
+ if (ACE_OS::write (s->fd_[1], &c, sizeof(char)) != 1)
+ return(-1);
}
// In the case of processscope semaphores we can already unlink the FIFO now that
@@ -1644,7 +1595,7 @@ ACE_OS::sema_init (ACE_sema_t *s,
ACE_OS::unlink (name);
}
- return (0);
+ return(0);
#elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_STHREADS)
ACE_UNUSED_ARG (name);
@@ -1759,7 +1710,6 @@ ACE_OS::sema_init (ACE_sema_t *s,
#endif /* ACE_HAS_POSIX_SEM */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::sema_init (ACE_sema_t *s,
u_int count,
@@ -1824,35 +1774,21 @@ ACE_OS::sema_init (ACE_sema_t *s,
# endif /* ACE_USES_WINCE_SEMA_SIMULATION */
# else /* ACE_HAS_WTHREADS */
// Just call the normal char version.
- return ACE_OS::sema_init (s, count, type, ACE_Wide_To_Ascii (name).char_rep (), arg, max, sa);
+ return ACE_OS::sema_init (s, count, type, ACE_TEXT_TO_CHAR_IN (name), arg, max, sa);
# endif /* ACE_HAS_WTHREADS */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::sema_post (ACE_sema_t *s)
{
ACE_OS_TRACE ("ACE_OS::sema_post");
# if defined (ACE_HAS_POSIX_SEM)
-# if defined (ACE_HAS_POSIX_SEM_TIMEOUT)
ACE_OSCALL_RETURN (::sem_post (s->sema_), int, -1);
-# else
- int result = -1;
-
- if (ACE_OS::mutex_lock (&s->lock_) == 0)
- {
- if (::sem_post (s->sema_) == 0)
- result = ACE_OS::cond_signal (&s->count_nonzero_);
-
- ACE_OS::mutex_unlock (&s->lock_);
- }
- return result;
-# endif /* ACE_HAS_POSIX_SEM_TIMEOUT */
# elif defined (ACE_USES_FIFO_SEM)
char c = 1;
- if (ACE_OS::write (s->fd_[1], &c, sizeof (char)) == sizeof (char))
- return (0);
- return (-1);
+ if (ACE_OS::write (s->fd_[1], &c, sizeof(char)) == sizeof(char))
+ return(0);
+ return(-1);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_STHREADS)
int result;
@@ -1945,13 +1881,13 @@ ACE_OS::sema_trywait (ACE_sema_t *s)
/* turn on nonblocking for s->fd_[0] */
if ((flags = ACE_OS::fcntl (s->fd_[0], F_GETFL, 0)) < 0)
- return (-1);
+ return(-1);
flags |= O_NONBLOCK;
if (ACE_OS::fcntl (s->fd_[0], F_SETFL, flags) < 0)
- return (-1);
+ return(-1);
// read sets errno to EAGAIN if no input
- rc = ACE_OS::read (s->fd_[0], &c, sizeof (char));
+ rc = ACE_OS::read (s->fd_[0], &c, sizeof(char));
/* turn off nonblocking for fd_[0] */
if ((flags = ACE_OS::fcntl (s->fd_[0], F_GETFL, 0)) >= 0)
@@ -2075,9 +2011,9 @@ ACE_OS::sema_wait (ACE_sema_t *s)
ACE_OSCALL_RETURN (::sem_wait (s->sema_), int, -1);
# elif defined (ACE_USES_FIFO_SEM)
char c;
- if (ACE_OS::read (s->fd_[0], &c, sizeof (char)) == 1)
- return (0);
- return (-1);
+ if (ACE_OS::read (s->fd_[0], &c, sizeof(char)) == 1)
+ return(0);
+ return(-1);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_STHREADS)
int result;
@@ -2195,52 +2131,9 @@ ACE_OS::sema_wait (ACE_sema_t *s, ACE_Time_Value &tv)
errno = ETIME; /* POSIX returns ETIMEDOUT but we need ETIME */
return rc;
# else
- int result = 0;
- bool expired = false;
- ACE_Errno_Guard error (errno);
-
- ACE_PTHREAD_CLEANUP_PUSH (&s->lock_);
-
- if (ACE_OS::mutex_lock (&s->lock_) != 0)
- result = -2;
- else
- {
- bool finished = true;
- do
- {
- result = ACE_OS::sema_trywait (s);
- if (result == -1 && errno == EAGAIN)
- expired = ACE_OS::gettimeofday () > tv;
- else
- expired = false;
-
- finished = result != -1 || expired ||
- (result == -1 && errno != EAGAIN);
- if (!finished)
- {
- if (ACE_OS::cond_timedwait (&s->count_nonzero_,
- &s->lock_,
- &tv) == -1)
- {
- error = errno;
- result = -1;
- break;
- }
- }
- } while (!finished);
-
- if (expired)
- error = ETIME;
-
-# if defined (ACE_LACKS_COND_TIMEDWAIT_RESET)
- tv = ACE_OS::gettimeofday ();
-# endif /* ACE_LACKS_COND_TIMEDWAIT_RESET */
- }
-
- if (result != -2)
- ACE_OS::mutex_unlock (&s->lock_);
- ACE_PTHREAD_CLEANUP_POP (0);
- return result < 0 ? -1 : result;
+ ACE_UNUSED_ARG (s);
+ ACE_UNUSED_ARG (tv);
+ ACE_NOTSUP_RETURN (-1);
# endif /* !ACE_HAS_POSIX_SEM_TIMEOUT */
# elif defined (ACE_USES_FIFO_SEM)
int rc;
@@ -2265,7 +2158,7 @@ ACE_OS::sema_wait (ACE_sema_t *s, ACE_Time_Value &tv)
}
// try to read the signal *but* do *not* block
- if (rc == 1 && ACE_OS::sema_trywait (s) == 0)
+ if (rc == 1 && ACE_OS::sema_trywait(s) == 0)
return (0);
// we were woken for input but someone beat us to it
@@ -2276,7 +2169,7 @@ ACE_OS::sema_wait (ACE_sema_t *s, ACE_Time_Value &tv)
// make sure errno is set right
errno = ETIME;
- return (-1);
+ return(-1);
# elif defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_STHREADS)
ACE_UNUSED_ARG (s);
@@ -2426,14 +2319,14 @@ ACE_OS::sema_wait (ACE_sema_t *s, ACE_Time_Value &tv)
// the system call expects).
ACE_Time_Value relative_time (tv - ACE_OS::gettimeofday ());
- u_long ticks = relative_time.sec () * KC_TICKS2SEC +
+ u_long ticks = relative_time.sec() * KC_TICKS2SEC +
relative_time.usec () * KC_TICKS2SEC /
ACE_ONE_SECOND_IN_USECS;
- if (ticks == 0)
+ if(ticks == 0)
ACE_OSCALL_RETURN (::sm_p (s->sema_, SM_NOWAIT, 0), int, -1); //no timeout
else
ACE_OSCALL_RETURN (::sm_p (s->sema_, SM_WAIT, ticks), int, -1);
-# elif defined (ACE_VXWORKS)
+# elif defined (VXWORKS)
// Note that we must convert between absolute time (which is
// passed as a parameter) and relative time (which is what
// the system call expects).
@@ -2441,7 +2334,7 @@ ACE_OS::sema_wait (ACE_sema_t *s, ACE_Time_Value &tv)
int ticks_per_sec = ::sysClkRateGet ();
- int ticks = relative_time.sec () * ticks_per_sec +
+ int ticks = relative_time.sec() * ticks_per_sec +
relative_time.usec () * ticks_per_sec / ACE_ONE_SECOND_IN_USECS;
if (::semTake (s->sema_, ticks) == ERROR)
{
@@ -2558,7 +2451,7 @@ ACE_OS::sigwait (sigset_t *sset, int *sig)
ACE_UNUSED_ARG (sset);
ACE_NOTSUP_RETURN (-1);
# elif defined (ACE_HAS_STHREADS)
- # if (_POSIX_C_SOURCE - 0 >= 199506L) || defined (_POSIX_PTHREAD_SEMANTICS)
+ # if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS)
errno = ::sigwait (sset, sig);
return errno == 0 ? *sig : -1;
#else
@@ -2580,20 +2473,20 @@ ACE_OS::sigwait (sigset_t *sset, int *sig)
errno = ::_Psigwait (sset, sig);
return errno == 0 ? *sig : -1;
# else /* ! __Lynx __ && ! (DIGITAL_UNIX && __DECCXX_VER) */
-# if (defined (ACE_HAS_PTHREADS_DRAFT4) || (defined (ACE_HAS_PTHREADS_DRAFT6)) && !defined (ACE_HAS_FSU_PTHREADS)) || (defined (_UNICOS) && _UNICOS == 9)
+# if (defined (ACE_HAS_PTHREADS_DRAFT4) || (defined (ACE_HAS_PTHREADS_DRAFT6)) && !defined(ACE_HAS_FSU_PTHREADS)) || (defined (_UNICOS) && _UNICOS == 9)
# if defined (HPUX_10)
*sig = cma_sigwait (sset);
# else
*sig = ::sigwait (sset);
# endif /* HPUX_10 */
return *sig;
-# elif defined (ACE_HAS_FSU_PTHREADS)
+# elif defined(ACE_HAS_FSU_PTHREADS)
return ::sigwait (sset, sig);
-# elif defined (CYGWIN32)
+# elif defined(CYGWIN32)
// Cygwin has sigwait definition, but it is not implemented
ACE_UNUSED_ARG (sset);
ACE_NOTSUP_RETURN (-1);
-# elif defined (ACE_TANDEM_T1248_PTHREADS)
+# elif defined(ACE_TANDEM_T1248_PTHREADS)
errno = ::spt_sigwait (sset, sig);
return errno == 0 ? *sig : -1;
# else /* this is draft 7 or std */
@@ -2642,24 +2535,12 @@ ACE_OS::thr_cancel (ACE_thread_t thr_id)
#if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS) && !defined (ACE_LACKS_PTHREAD_CANCEL)
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
-# ifdef pthread_cancel
- // If it's a macro we can't say "pthread_cancel"...
- ACE_OSCALL_RETURN (pthread_cancel (thr_id), int, -1);
-# else
- ACE_OSCALL_RETURN (pthread_cancel (thr_id), int, -1);
-# endif /* pthread_cancel */
+ ACE_OSCALL_RETURN (::pthread_cancel (thr_id), int, -1);
# else
int result;
-# ifdef pthread_cancel
- // If it's a macro we can't say "pthread_cancel"...
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_cancel (thr_id),
- result),
- int, -1);
-# else
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_cancel (thr_id),
- result),
- int, -1);
-# endif /* pthread_cancel */
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_cancel (thr_id),
+ result),
+ int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4 || ACE_HAS_PTHREADS_DRAFT6 */
# elif defined (VXWORKS)
ACE_hthread_t tid;
@@ -2684,10 +2565,10 @@ ACE_OS::thr_cmp (ACE_hthread_t t1, ACE_hthread_t t2)
{
#if defined (ACE_HAS_PTHREADS)
# if defined (pthread_equal)
- // If it's a macro we can't say "pthread_equal"...
+ // If it's a macro we can't say "::pthread_equal"...
return pthread_equal (t1, t2);
# else
- return pthread_equal (t1, t2);
+ return ::pthread_equal (t1, t2);
# endif /* pthread_equal */
#else /* For STHREADS, WTHREADS, and VXWORKS ... */
// Hum, Do we need to treat WTHREAD differently?
@@ -2750,7 +2631,7 @@ ACE_OS::thr_getconcurrency (void)
# if defined (ACE_HAS_STHREADS)
return ::thr_getconcurrency ();
# elif defined (ACE_HAS_PTHREADS) && defined (ACE_HAS_PTHREAD_GETCONCURRENCY)
- return pthread_getconcurrency ();
+ return ::pthread_getconcurrency ();
# else
ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_STHREADS */
@@ -2770,7 +2651,7 @@ ACE_OS::thr_getprio (ACE_hthread_t ht_id, int &priority, int &policy)
# if defined (ACE_HAS_PTHREADS_DRAFT4)
int result;
- result = pthread_getprio (ht_id);
+ result = ::pthread_getprio (ht_id);
if (result != -1)
{
priority = result;
@@ -2783,7 +2664,7 @@ ACE_OS::thr_getprio (ACE_hthread_t ht_id, int &priority, int &policy)
pthread_attr_t attr;
if (pthread_getschedattr (ht_id, &attr) == 0)
{
- priority = pthread_attr_getprio (&attr);
+ priority = pthread_attr_getprio(&attr);
return 0;
}
return -1;
@@ -2792,7 +2673,7 @@ ACE_OS::thr_getprio (ACE_hthread_t ht_id, int &priority, int &policy)
struct sched_param param;
int result;
- ACE_OSCALL (ACE_ADAPT_RETVAL (pthread_getschedparam (ht_id, &policy, &param),
+ ACE_OSCALL (ACE_ADAPT_RETVAL (::pthread_getschedparam (ht_id, &policy, &param),
result), int,
-1, result);
priority = param.sched_priority;
@@ -2806,7 +2687,7 @@ ACE_OS::thr_getprio (ACE_hthread_t ht_id, int &priority, int &policy)
priority = ::GetThreadPriority (ht_id);
- DWORD priority_class = ::GetPriorityClass (::GetCurrentProcess ());
+ DWORD priority_class = ::GetPriorityClass (::GetCurrentProcess());
if (priority_class == 0 && (error = ::GetLastError ()) != NO_ERROR)
ACE_FAIL_RETURN (-1);
@@ -2909,12 +2790,8 @@ ACE_OS::thr_getspecific (ACE_thread_key_t key, void **data)
*data = ACE_TSS_Emulation::ts_object (key);
return 0;
}
-# elif defined (ACE_HAS_THREAD_SPECIFIC_STORAGE)
+# else /* ACE_HAS_TSS_EMULATION */
return ACE_OS::thr_getspecific_native (key, data);
-#else
- ACE_UNUSED_ARG (key);
- ACE_UNUSED_ARG (data);
- ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_TSS_EMULATION */
#else
ACE_UNUSED_ARG (key);
@@ -2939,11 +2816,11 @@ ACE_OS::thr_join (ACE_hthread_t thr_handle,
int ace_result;
# if defined (ACE_LACKS_NULL_PTHREAD_STATUS)
void *temp;
- ACE_OSCALL (pthread_join (thr_handle,
+ ACE_OSCALL (::pthread_join (thr_handle,
status == 0 ? &temp : status),
int, -1, ace_result);
# else
- ACE_OSCALL (pthread_join (thr_handle, status), int, -1, ace_result);
+ ACE_OSCALL (::pthread_join (thr_handle, status), int, -1, ace_result);
# endif /* ACE_LACKS_NULL_PTHREAD_STATUS */
// Joinable threads need to be detached after joining on Pthreads
// draft 4 (at least) to reclaim thread storage.
@@ -2954,9 +2831,9 @@ ACE_OS::thr_join (ACE_hthread_t thr_handle,
// a junker to scribble on.
ACE_thread_t junker;
cma_handle_assign (&thr_handle, &junker);
- pthread_detach (&junker);
+ ::pthread_detach (&junker);
# else
- pthread_detach (&thr_handle);
+ ::pthread_detach (&thr_handle);
# endif /* HPUX_10 */
# endif /* ACE_HAS_PTHREADS_DRAFT4 */
@@ -2964,7 +2841,7 @@ ACE_OS::thr_join (ACE_hthread_t thr_handle,
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_join (thr_handle, status), result),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_join (thr_handle, status), result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4, 6 */
# elif defined (ACE_HAS_WTHREADS)
@@ -3014,14 +2891,14 @@ ACE_OS::thr_join (ACE_thread_t waiter_id,
# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_HAS_PTHREADS_DRAFT6)
# if defined (ACE_LACKS_NULL_PTHREAD_STATUS)
void *temp;
- ACE_OSCALL_RETURN (pthread_join (waiter_id,
+ ACE_OSCALL_RETURN (::pthread_join (waiter_id,
status == 0 ? &temp : status), int, -1);
# else
- ACE_OSCALL_RETURN (pthread_join (waiter_id, status), int, -1);
+ ACE_OSCALL_RETURN (::pthread_join (waiter_id, status), int, -1);
# endif
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_join (waiter_id, status), result),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_join (waiter_id, status), result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4, 6 */
# elif defined (ACE_HAS_WTHREADS)
@@ -3053,13 +2930,13 @@ ACE_OS::thr_kill (ACE_thread_t thr_id, int signum)
ACE_OS_TRACE ("ACE_OS::thr_kill");
#if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS)
-# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined (ACE_LACKS_PTHREAD_KILL)
+# if defined (ACE_HAS_PTHREADS_DRAFT4) || defined(ACE_LACKS_PTHREAD_KILL)
ACE_UNUSED_ARG (signum);
ACE_UNUSED_ARG (thr_id);
ACE_NOTSUP_RETURN (-1);
# else
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_kill (thr_id, signum),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_kill (thr_id, signum),
result),
int, -1);
# endif /* ACE_HAS_PTHREADS_DRAFT4 */
@@ -3201,11 +3078,11 @@ ACE_OS::thr_setcancelstate (int new_state, int *old_state)
*old_state = old;
return 0;
# elif defined (ACE_HAS_PTHREADS_DRAFT6)
- ACE_UNUSED_ARG (old_state);
+ ACE_UNUSED_ARG(old_state);
ACE_OSCALL_RETURN (pthread_setintr (new_state), int, -1);
# else /* this is draft 7 or std */
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_setcancelstate (new_state,
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_setcancelstate (new_state,
old_state),
result),
int, -1);
@@ -3238,17 +3115,17 @@ ACE_OS::thr_setcanceltype (int new_type, int *old_type)
# if defined (ACE_HAS_PTHREADS) && !defined (ACE_LACKS_PTHREAD_CANCEL)
# if defined (ACE_HAS_PTHREADS_DRAFT4)
int old;
- old = pthread_setasynccancel (new_type);
+ old = pthread_setasynccancel(new_type);
if (old == -1)
return -1;
*old_type = old;
return 0;
# elif defined (ACE_HAS_PTHREADS_DRAFT6)
- ACE_UNUSED_ARG (old_type);
+ ACE_UNUSED_ARG(old_type);
ACE_OSCALL_RETURN (pthread_setintrtype (new_type), int, -1);
# else /* this is draft 7 or std */
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_setcanceltype (new_type,
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_setcanceltype (new_type,
old_type),
result),
int, -1);
@@ -3277,9 +3154,9 @@ ACE_OS::thr_setconcurrency (int hint)
int, -1);
# elif defined (ACE_HAS_PTHREADS) && defined (ACE_HAS_PTHREAD_SETCONCURRENCY)
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_setconcurrency (hint),
- result),
- int, -1);
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_setconcurrency (hint),
+ result),
+ int, -1);
# else
ACE_UNUSED_ARG (hint);
ACE_NOTSUP_RETURN (-1);
@@ -3301,7 +3178,7 @@ ACE_OS::thr_setprio (ACE_hthread_t ht_id, int priority, int policy)
# if defined (ACE_HAS_PTHREADS_DRAFT4)
int result;
- result = pthread_setprio (ht_id, priority);
+ result = ::pthread_setprio (ht_id, priority);
return (result == -1 ? -1 : 0);
# elif defined (ACE_HAS_PTHREADS_DRAFT6)
pthread_attr_t attr;
@@ -3320,7 +3197,7 @@ ACE_OS::thr_setprio (ACE_hthread_t ht_id, int priority, int policy)
// pthread_getschedparam().
if (policy == -1)
{
- ACE_OSCALL (ACE_ADAPT_RETVAL (pthread_getschedparam (ht_id, &policy, &param),
+ ACE_OSCALL (ACE_ADAPT_RETVAL (::pthread_getschedparam (ht_id, &policy, &param),
result),
int, -1, result);
if (result == -1)
@@ -3329,7 +3206,7 @@ ACE_OS::thr_setprio (ACE_hthread_t ht_id, int priority, int policy)
param.sched_priority = priority;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_setschedparam (ht_id,
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_setschedparam (ht_id,
policy,
&param),
result),
@@ -3394,7 +3271,7 @@ ACE_OS::thr_sigsetmask (int how,
// Draft 4 and 6 implementations will sometimes have a sigprocmask () that
// modifies the calling thread's mask only. If this is not so for your
// platform, define ACE_LACKS_PTHREAD_THR_SIGSETMASK.
-# elif defined (ACE_HAS_PTHREADS_DRAFT4) || \
+# elif defined(ACE_HAS_PTHREADS_DRAFT4) || \
defined (ACE_HAS_PTHREADS_DRAFT6) || (defined (_UNICOS) && _UNICOS == 9)
ACE_OSCALL_RETURN (::sigprocmask (how, nsm, osm), int, -1);
# elif !defined (ACE_LACKS_PTHREAD_SIGMASK)
@@ -3407,7 +3284,7 @@ ACE_OS::thr_sigsetmask (int how,
/* Don't know if anyt platform actually needs this... */
// as far as I can tell, this is now pthread_sigaction() -- jwr
int result;
- ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (pthread_sigaction (how, nsm, osm),
+ ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_sigaction (how, nsm, osm),
result), int, -1);
#endif /* 0 */
@@ -3505,9 +3382,9 @@ ACE_OS::thr_testcancel (void)
#if defined (ACE_HAS_THREADS)
# if defined (ACE_HAS_PTHREADS) && !defined (ACE_LACKS_PTHREAD_CANCEL)
#if defined(ACE_HAS_PTHREADS_DRAFT6)
- pthread_testintr ();
+ ::pthread_testintr ();
#else /* ACE_HAS_PTHREADS_DRAFT6 */
- pthread_testcancel ();
+ ::pthread_testcancel ();
#endif /* !ACE_HAS_PTHREADS_DRAFT6 */
# elif defined (ACE_HAS_STHREADS)
# elif defined (ACE_HAS_WTHREADS)
@@ -3529,9 +3406,9 @@ ACE_OS::thr_yield (void)
// Note - this is a POSIX.4 function - not a POSIX.1c function...
::sched_yield ();
# elif defined (ACE_HAS_PTHREADS_DRAFT6)
- pthread_yield (0);
+ ::pthread_yield (0);
# else /* Draft 4 and 7 */
- pthread_yield ();
+ ::pthread_yield ();
# endif /* ACE_HAS_PTHREADS_STD */
# elif defined (ACE_HAS_STHREADS)
::thr_yield ();
@@ -3603,7 +3480,6 @@ ACE_OS::thread_mutex_init (ACE_thread_mutex_t *m,
#endif /* ACE_HAS_THREADS */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::thread_mutex_init (ACE_thread_mutex_t *m,
int lock_type,
@@ -3637,7 +3513,6 @@ ACE_OS::thread_mutex_init (ACE_thread_mutex_t *m,
#endif /* ACE_HAS_THREADS */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::thread_mutex_lock (ACE_thread_mutex_t *m)
@@ -3885,5 +3760,3 @@ ACE_Thread_ID::operator!= (const ACE_Thread_ID &rhs) const
{
return !(*this == rhs);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_arpa_inet.cpp b/ace/OS_NS_arpa_inet.cpp
index 94c54edfe4f..6d6ffaeb0ee 100644
--- a/ace/OS_NS_arpa_inet.cpp
+++ b/ace/OS_NS_arpa_inet.cpp
@@ -9,8 +9,6 @@ ACE_RCSID(ace, OS_NS_arpa_inet, "$Id$")
# include "ace/OS_NS_arpa_inet.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_OS::inet_aton (const char *host_name, struct in_addr *addr)
{
@@ -36,7 +34,7 @@ ACE_OS::inet_aton (const char *host_name, struct in_addr *addr)
addr->s_addr = ip_addr; // Network byte ordered
return 1;
}
-#elif defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x620)
+#elif defined (VXWORKS)
// inet_aton() returns OK (0) on success and ERROR (-1) on failure.
// Must reset errno first. Refer to WindRiver SPR# 34949, SPR# 36026
::errnoSet(0);
@@ -68,5 +66,3 @@ ACE_OS::inet_ntoa (const struct in_addr addr)
return addrstr;
}
#endif /* defined (ACE_PSOS) */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_arpa_inet.h b/ace/OS_NS_arpa_inet.h
index 9b7a7028975..b6032d61338 100644
--- a/ace/OS_NS_arpa_inet.h
+++ b/ace/OS_NS_arpa_inet.h
@@ -33,8 +33,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
@@ -64,8 +62,6 @@ namespace ACE_OS {
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_arpa_inet.inl b/ace/OS_NS_arpa_inet.inl
index b81b2c88059..31a6b9a3f34 100644
--- a/ace/OS_NS_arpa_inet.inl
+++ b/ace/OS_NS_arpa_inet.inl
@@ -5,8 +5,6 @@
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_stdio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE unsigned long
ACE_OS::inet_addr (const char *name)
{
@@ -121,5 +119,3 @@ ACE_OS::inet_pton (int family, const char *strptr, void *addrptr)
ACE_NOTSUP_RETURN(-1);
#endif /* ACE_HAS_IPV6 */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_ctype.h b/ace/OS_NS_ctype.h
index 32abbe0e053..e9c04c00311 100644
--- a/ace/OS_NS_ctype.h
+++ b/ace/OS_NS_ctype.h
@@ -32,9 +32,8 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS {
+namespace ACE_OS
+{
// these are non-standard names...
@@ -49,75 +48,69 @@ namespace ACE_OS {
//@{
/// Returns true if the character is an alphanumeric character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isalnum (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isalnum (CHAR_TYPE c);
/// Returns true if the character is an alphabetic character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isalpha (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isalpha (CHAR_TYPE c);
/// Returns true if the character is a control character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_iscntrl (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_iscntrl (CHAR_TYPE c);
/// Returns true if the character is a decimal-digit character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isdigit (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isdigit (CHAR_TYPE c);
/// Returns true if the character is a printable character other than a space.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isgraph (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isgraph (CHAR_TYPE c);
/// Returns true if the character is a lowercase character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_islower (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_islower (CHAR_TYPE c);
/// Returns true if the character is a printable character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isprint (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isprint (CHAR_TYPE c);
/// Returns true if the character is a punctuation character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_ispunct (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_ispunct (CHAR_TYPE c);
/// Returns true if the character is a space character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isspace (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isspace (CHAR_TYPE c);
/// Returns true if the character is an uppercase character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isupper (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isupper (CHAR_TYPE c);
/// Returns true if the character is a hexadecimal-digit character.
- ACE_NAMESPACE_INLINE_FUNCTION
- int ace_isxdigit (ACE_TCHAR c);
+ template <typename CHAR_TYPE> inline
+ int ace_isxdigit (CHAR_TYPE c);
/// Converts a character to lower case (char version).
ACE_NAMESPACE_INLINE_FUNCTION
int ace_tolower (int c);
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_TOWLOWER)
/// Converts a character to lower case (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wint_t ace_towlower (wint_t c);
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_TOWLOWER */
/// Converts a character to upper case (char version).
ACE_NAMESPACE_INLINE_FUNCTION
int ace_toupper (int c);
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_TOWUPPER)
/// Converts a character to upper case (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wint_t ace_towupper (wint_t c);
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_TOWUPPER */
//@}
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
@@ -126,5 +119,7 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/OS_NS_ctype.inl"
# endif /* ACE_HAS_INLINED_OSCALLS */
+#include "ace/OS_NS_ctype_T.inl"
+
# include /**/ "ace/post.h"
#endif /* ACE_OS_NS_CTYPE_H */
diff --git a/ace/OS_NS_ctype.inl b/ace/OS_NS_ctype.inl
index e7199338653..e0235d5285d 100644
--- a/ace/OS_NS_ctype.inl
+++ b/ace/OS_NS_ctype.inl
@@ -1,123 +1,8 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/os_include/os_ctype.h"
-#if defined ACE_HAS_WCHAR
-# include "ace/os_include/os_wctype.h"
-#endif /* ACE_HAS_WCHAR */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE int
-ACE_OS::ace_isalnum (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswalnum (c);
-#else /* ACE_USES_WCHAR */
- return isalnum ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isalpha (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswalpha (c);
-#else /* ACE_USES_WCHAR */
- return isalpha ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_iscntrl (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswcntrl (c);
-#else /* ACE_USES_WCHAR */
- return iscntrl ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isdigit (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswdigit (c);
-#else /* ACE_USES_WCHAR */
- return isdigit ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isgraph (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswgraph (c);
-#else /* ACE_USES_WCHAR */
- return isgraph ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_islower (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswlower (c);
-#else /* ACE_USES_WCHAR */
- return islower ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isprint (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswprint (c);
-#else /* ACE_USES_WCHAR */
- return isprint ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_ispunct (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswpunct (c);
-#else /* ACE_USES_WCHAR */
- return ispunct ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isspace (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswspace (c);
-#else /* ACE_USES_WCHAR */
- return isspace ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isupper (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswupper (c);
-#else /* ACE_USES_WCHAR */
- return isupper ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
-
-ACE_INLINE int
-ACE_OS::ace_isxdigit (ACE_TCHAR c)
-{
-#if defined (ACE_USES_WCHAR)
- return iswxdigit (c);
-#else /* ACE_USES_WCHAR */
- return isxdigit ((unsigned char) c);
-#endif /* ACE_USES_WCHAR */
-}
+#include "ace/os_include/os_wctype.h"
ACE_INLINE int
ACE_OS::ace_tolower (int c)
@@ -125,13 +10,16 @@ ACE_OS::ace_tolower (int c)
return tolower (c);
}
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_TOWLOWER)
ACE_INLINE wint_t
ACE_OS::ace_towlower (wint_t c)
{
- return towlower (c);
+ #if !defined (ACE_LACKS_TOWLOWER)
+ return towlower (c);
+ #else
+ ACE_UNUSED_ARG( c );
+ ACE_NOTSUP_RETURN (0);
+ #endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_TOWLOWER */
ACE_INLINE int
ACE_OS::ace_toupper (int c)
@@ -139,12 +27,14 @@ ACE_OS::ace_toupper (int c)
return toupper (c);
}
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_TOWUPPER)
ACE_INLINE wint_t
ACE_OS::ace_towupper (wint_t c)
{
- return towupper (c);
+ #if !defined (ACE_LACKS_TOWUPPER)
+ return towupper (c);
+ #else
+ ACE_UNUSED_ARG( c );
+ ACE_NOTSUP_RETURN (0);
+ #endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_TOWUPPER */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_ctype_T.inl b/ace/OS_NS_ctype_T.inl
new file mode 100644
index 00000000000..69e56ca5005
--- /dev/null
+++ b/ace/OS_NS_ctype_T.inl
@@ -0,0 +1,169 @@
+// -*- C++ -*-
+// $Id$
+
+#include "ace/os_include/os_ctype.h"
+#include "ace/os_include/os_wctype.h"
+
+namespace ACE_OS
+{
+
+// For the time being we are safe lumping the wchar specializations
+// with ACE_USES_WCHAR. When the time comes that they are needed
+// outside of a "wide" build, then we will need to us appropriate
+// ACE_LACKS_XXXX.
+
+template <typename CHAR_TYPE> inline int
+ace_isalnum (CHAR_TYPE c)
+{
+ return isalnum (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isalnum (wchar_t c)
+{
+ return iswalnum (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isalpha (CHAR_TYPE c)
+{
+ return isalpha (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isalpha (wchar_t c)
+{
+ return iswalpha (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_iscntrl (CHAR_TYPE c)
+{
+ return iscntrl (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_iscntrl (wchar_t c)
+{
+ return iswcntrl (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isdigit (CHAR_TYPE c)
+{
+ return isdigit (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isdigit (wchar_t c)
+{
+ return iswdigit (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isgraph (CHAR_TYPE c)
+{
+ return isgraph (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isgraph (wchar_t c)
+{
+ return iswgraph (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_islower (CHAR_TYPE c)
+{
+ return islower (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_islower (wchar_t c)
+{
+ return iswlower (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isprint (CHAR_TYPE c)
+{
+ return isprint (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isprint (wchar_t c)
+{
+ return iswprint (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_ispunct (CHAR_TYPE c)
+{
+ return ispunct (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_ispunct (wchar_t c)
+{
+ return iswpunct (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isspace (CHAR_TYPE c)
+{
+ return isspace (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isspace (wchar_t c)
+{
+ return iswspace (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isupper (CHAR_TYPE c)
+{
+ return isupper (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isupper (wchar_t c)
+{
+ return iswupper (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+template <typename CHAR_TYPE> inline int
+ace_isxdigit (CHAR_TYPE c)
+{
+ return isxdigit (static_cast<unsigned char> (c));
+}
+
+#if defined (ACE_USES_WCHAR)
+template <> inline int
+ace_isxdigit (wchar_t c)
+{
+ return iswxdigit (c);
+}
+#endif /* ACE_USES_WCHAR */
+
+}
diff --git a/ace/OS_NS_dirent.cpp b/ace/OS_NS_dirent.cpp
index 9b58d284683..57446ce5364 100644
--- a/ace/OS_NS_dirent.cpp
+++ b/ace/OS_NS_dirent.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_dirent.h"
@@ -41,8 +42,6 @@ extern "C"
# endif /* INVALID_SET_FILE_POINTER */
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_OS::closedir_emulation (ACE_DIR *d)
{
@@ -122,7 +121,7 @@ ACE_OS::opendir_emulation (const ACE_TCHAR *filename)
#endif /* WIN32 && ACE_LACKS_OPENDIR */
}
-struct ACE_DIRENT *
+dirent *
ACE_OS::readdir_emulation (ACE_DIR *d)
{
#if defined (ACE_WIN32) && defined (ACE_LACKS_READDIR)
@@ -153,8 +152,8 @@ ACE_OS::readdir_emulation (ACE_DIR *d)
if (d->current_handle_ != INVALID_HANDLE_VALUE)
{
- d->dirent_ = (ACE_DIRENT *)
- ACE_OS::malloc (sizeof (ACE_DIRENT));
+ d->dirent_ = (dirent *)
+ ACE_OS::malloc (sizeof (dirent));
if (d->dirent_ != 0)
{
@@ -162,7 +161,7 @@ ACE_OS::readdir_emulation (ACE_DIR *d)
ACE_OS::malloc ((ACE_OS::strlen (d->fdata_.cFileName) + 1)
* sizeof (ACE_TCHAR));
ACE_OS::strcpy (d->dirent_->d_name, d->fdata_.cFileName);
- d->dirent_->d_reclen = sizeof (ACE_DIRENT);
+ d->dirent_->d_reclen = sizeof (dirent);
}
return d->dirent_;
@@ -177,10 +176,10 @@ ACE_OS::readdir_emulation (ACE_DIR *d)
int
ACE_OS::scandir_emulation (const ACE_TCHAR *dirname,
- ACE_DIRENT **namelist[],
- int (*selector) (const ACE_DIRENT *entry),
- int (*comparator) (const ACE_DIRENT **f1,
- const ACE_DIRENT **f2))
+ dirent **namelist[],
+ int (*selector) (const dirent *entry),
+ int (*comparator) (const dirent **f1,
+ const dirent **f2))
{
ACE_DIR *dirp = ACE_OS::opendir (dirname);
@@ -190,8 +189,8 @@ ACE_OS::scandir_emulation (const ACE_TCHAR *dirname,
else if (namelist == 0)
return -1;
- ACE_DIRENT **vector = 0;
- ACE_DIRENT *dp = 0;
+ dirent **vector = 0;
+ dirent *dp;
int arena_size = 0;
int nfiles = 0;
@@ -208,14 +207,14 @@ ACE_OS::scandir_emulation (const ACE_TCHAR *dirname,
// If we get here, we have a dirent that the user likes.
if (nfiles == arena_size)
{
- ACE_DIRENT **newv = 0;
+ dirent **newv;
if (arena_size == 0)
arena_size = 10;
else
arena_size *= 2;
- newv = (ACE_DIRENT **) ACE_OS::realloc (vector,
- arena_size * sizeof (ACE_DIRENT *));
+ newv = (dirent **) ACE_OS::realloc (vector,
+ arena_size * sizeof (dirent *));
if (newv == 0)
{
fail = 1;
@@ -225,12 +224,12 @@ ACE_OS::scandir_emulation (const ACE_TCHAR *dirname,
}
#if defined (ACE_LACKS_STRUCT_DIR)
- ACE_DIRENT *newdp = (ACE_DIRENT *) ACE_OS::malloc (sizeof (ACE_DIRENT));
+ dirent *newdp = (dirent *) ACE_OS::malloc (sizeof (dirent));
#else
size_t dsize =
- sizeof (ACE_DIRENT) +
+ sizeof (dirent) +
((ACE_OS::strlen (dp->d_name) + 1) * sizeof (ACE_TCHAR));
- ACE_DIRENT *newdp = (ACE_DIRENT *) ACE_OS::malloc (dsize);
+ dirent *newdp = (dirent *) ACE_OS::malloc (dsize);
#endif /* ACE_LACKS_STRUCT_DIR */
if (newdp == 0)
@@ -257,7 +256,7 @@ ACE_OS::scandir_emulation (const ACE_TCHAR *dirname,
ACE_OS::strcpy (newdp->d_name, dp->d_name);
vector[nfiles++] = newdp;
#else
- vector[nfiles++] = (ACE_DIRENT *) ACE_OS::memcpy (newdp, dp, dsize);
+ vector[nfiles++] = (dirent *) ACE_OS::memcpy (newdp, dp, dsize);
#endif /* ACE_LACKS_STRUCT_DIR */
}
@@ -282,10 +281,8 @@ ACE_OS::scandir_emulation (const ACE_TCHAR *dirname,
if (comparator)
ACE_OS::qsort (*namelist,
nfiles,
- sizeof (ACE_DIRENT *),
+ sizeof (dirent *),
(ACE_SCANDIR_COMPARATOR) comparator);
return nfiles;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_dirent.h b/ace/OS_NS_dirent.h
index 6def1696ac0..c5bf0efd859 100644
--- a/ace/OS_NS_dirent.h
+++ b/ace/OS_NS_dirent.h
@@ -33,8 +33,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
@@ -44,22 +42,22 @@ namespace ACE_OS {
ACE_DIR *opendir (const ACE_TCHAR *filename);
ACE_NAMESPACE_INLINE_FUNCTION
- struct ACE_DIRENT *readdir (ACE_DIR *);
+ dirent *readdir (ACE_DIR *);
ACE_NAMESPACE_INLINE_FUNCTION
int readdir_r (ACE_DIR *dirp,
- struct ACE_DIRENT *entry,
- struct ACE_DIRENT **result);
+ struct dirent *entry,
+ struct dirent **result);
ACE_NAMESPACE_INLINE_FUNCTION
void rewinddir (ACE_DIR *);
ACE_NAMESPACE_INLINE_FUNCTION
int scandir (const ACE_TCHAR *dirname,
- struct ACE_DIRENT **namelist[],
- int (*selector) (const struct ACE_DIRENT *filename),
- int (*comparator) (const struct ACE_DIRENT **f1,
- const struct ACE_DIRENT **f2));
+ struct dirent **namelist[],
+ int (*selector) (const struct dirent *filename),
+ int (*comparator) (const struct dirent **f1,
+ const struct dirent **f2));
ACE_NAMESPACE_INLINE_FUNCTION
void seekdir (ACE_DIR *,
@@ -74,21 +72,19 @@ namespace ACE_OS {
extern ACE_Export
int scandir_emulation (const ACE_TCHAR *dirname,
- ACE_DIRENT **namelist[],
- int (*selector)(const ACE_DIRENT *entry),
- int (*comparator)(const ACE_DIRENT **f1,
- const ACE_DIRENT**f2));
+ dirent **namelist[],
+ int (*selector)(const dirent *entry),
+ int (*comparator)(const dirent **f1,
+ const dirent**f2));
extern ACE_Export
void closedir_emulation (ACE_DIR *);
extern ACE_Export
- struct ACE_DIRENT *readdir_emulation (ACE_DIR *);
+ dirent *readdir_emulation (ACE_DIR *);
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_dirent.inl b/ace/OS_NS_dirent.inl
index ff562717cb9..7d2b7bfb288 100644
--- a/ace/OS_NS_dirent.inl
+++ b/ace/OS_NS_dirent.inl
@@ -1,16 +1,10 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_Memory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
-
ACE_INLINE void
-closedir (ACE_DIR *d)
+ACE_OS::closedir (ACE_DIR *d)
{
#if defined (ACE_HAS_DIRENT)
# if defined (ACE_PSOS)
@@ -26,8 +20,6 @@ closedir (ACE_DIR *d)
ACE_OS::closedir_emulation (d);
delete [] d->directory_name_;
delete d;
-# elif defined (ACE_HAS_WCLOSEDIR) && defined (ACE_USES_WCHAR)
- ::wclosedir (d);
# else /* ACE_WIN32 && ACE_LACKS_CLOSEDIR */
::closedir (d);
# endif /* ACE_WIN32 && ACE_LACKS_CLOSEDIR */
@@ -39,13 +31,13 @@ closedir (ACE_DIR *d)
}
ACE_INLINE ACE_DIR *
-opendir (const ACE_TCHAR *filename)
+ACE_OS::opendir (const ACE_TCHAR *filename)
{
#if defined (ACE_HAS_DIRENT)
# if defined (ACE_PSOS)
// The pointer to the <ACE_DIR> buffer *must* be passed to
// <ACE_OS::closedir> to free it and avoid a memory leak.
- ACE_DIR *dir = 0;
+ ACE_DIR *dir;
u_long result;
ACE_NEW_RETURN (dir, ACE_DIR, 0);
result = ::open_dir (const_cast<ACE_TCHAR *> (filename), &dir->xdir);
@@ -59,12 +51,10 @@ opendir (const ACE_TCHAR *filename)
# else /* ! ACE_PSOS */
# if defined (ACE_WIN32) && defined (ACE_LACKS_OPENDIR)
return ::ACE_OS::opendir_emulation (filename);
-# elif defined (ACE_HAS_WOPENDIR) && defined (ACE_USES_WCHAR)
- return ::wopendir (filename);
# elif defined (ACE_HAS_NONCONST_OPENDIR)
return ::opendir (const_cast<char *> (filename));
# else /* ! ACE_WIN32 && ACE_LACKS_OPENDIR */
- return ::opendir (ACE_TEXT_ALWAYS_CHAR (filename));
+ return ::opendir (ACE_TEXT_TO_CHAR_IN (filename));
# endif /* ACE_WIN32 && ACE_LACKS_OPENDIR */
# endif /* ACE_PSOS */
#else
@@ -73,9 +63,8 @@ opendir (const ACE_TCHAR *filename)
#endif /* ACE_HAS_DIRENT */
}
-ACE_INLINE
-struct ACE_DIRENT *
-readdir (ACE_DIR *d)
+ACE_INLINE struct dirent *
+ACE_OS::readdir (ACE_DIR *d)
{
#if defined (ACE_HAS_DIRENT)
# if defined (ACE_PSOS)
@@ -92,8 +81,6 @@ readdir (ACE_DIR *d)
# else /* ! ACE_PSOS */
# if defined (ACE_WIN32) && defined (ACE_LACKS_READDIR)
return ACE_OS::readdir_emulation (d);
-# elif defined (ACE_HAS_WREADDIR) && defined (ACE_USES_WCHAR)
- return ::wreaddir (d);
# else /* ACE_WIN32 && ACE_LACKS_READDIR */
return ::readdir (d);
# endif /* ACE_WIN32 && ACE_LACKS_READDIR */
@@ -105,9 +92,9 @@ readdir (ACE_DIR *d)
}
ACE_INLINE int
-readdir_r (ACE_DIR *dirp,
- struct ACE_DIRENT *entry,
- struct ACE_DIRENT **result)
+ACE_OS::readdir_r (ACE_DIR *dirp,
+ struct dirent *entry,
+ struct dirent **result)
{
#if !defined (ACE_HAS_REENTRANT_FUNCTIONS)
ACE_UNUSED_ARG (entry);
@@ -136,7 +123,7 @@ readdir_r (ACE_DIR *dirp,
*result = entry;
return ::readdir_r (dirp, entry);
#elif defined(__GNUC__) && defined (_AIX)
- return ::readdir_r (dirp, entry, result);
+ return ::readdir_r (dirp, entry, result);
# else
// <result> had better not be 0!
*result = ::readdir_r (dirp, entry);
@@ -153,14 +140,12 @@ readdir_r (ACE_DIR *dirp,
}
ACE_INLINE void
-rewinddir (ACE_DIR *d)
+ACE_OS::rewinddir (ACE_DIR *d)
{
#if defined (ACE_HAS_DIRENT)
# if defined (ACE_LACKS_SEEKDIR)
# if defined (ACE_LACKS_REWINDDIR)
ACE_UNUSED_ARG (d);
-# elif defined (ACE_HAS_WREWINDDIR) && defined (ACE_USES_WCHAR)
- ::wrewinddir (d);
# else /* ! defined (ACE_LACKS_REWINDDIR) */
::rewinddir (d);
# endif /* ! defined (ACE_LACKS_REWINDDIR) */
@@ -175,14 +160,14 @@ rewinddir (ACE_DIR *d)
}
ACE_INLINE int
-scandir (const ACE_TCHAR *dirname,
- struct ACE_DIRENT **namelist[],
- int (*selector)(const struct ACE_DIRENT *),
- int (*comparator) (const struct ACE_DIRENT **f1,
- const struct ACE_DIRENT **f2))
+ACE_OS::scandir (const ACE_TCHAR *dirname,
+ struct dirent **namelist[],
+ int (*selector)(const struct dirent *),
+ int (*comparator) (const struct dirent **f1,
+ const struct dirent **f2))
{
#if defined (ACE_HAS_SCANDIR)
- return ::scandir (ACE_TEXT_ALWAYS_CHAR (dirname),
+ return ::scandir (ACE_TEXT_TO_CHAR_IN (dirname),
namelist,
selector,
# if defined (ACE_SCANDIR_CMP_USES_VOIDPTR)
@@ -194,9 +179,8 @@ scandir (const ACE_TCHAR *dirname,
return ACE_OS::scandir_emulation (dirname, namelist, selector, comparator);
#endif /* ACE_HAS_SCANDIR */
}
-
ACE_INLINE void
-seekdir (ACE_DIR *d, long loc)
+ACE_OS::seekdir (ACE_DIR *d, long loc)
{
#if defined (ACE_HAS_DIRENT) && !defined (ACE_LACKS_SEEKDIR)
::seekdir (d, loc);
@@ -207,7 +191,7 @@ seekdir (ACE_DIR *d, long loc)
}
ACE_INLINE long
-telldir (ACE_DIR *d)
+ACE_OS::telldir (ACE_DIR *d)
{
#if defined (ACE_HAS_DIRENT) && !defined (ACE_LACKS_TELLDIR)
return ::telldir (d);
@@ -216,7 +200,3 @@ telldir (ACE_DIR *d)
ACE_NOTSUP_RETURN (-1);
#endif /* ! ACE_HAS_DIRENT || ACE_LACKS_TELLDIR */
}
-
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_dlfcn.cpp b/ace/OS_NS_dlfcn.cpp
index 67cae58a1fe..d0707dde1c2 100644
--- a/ace/OS_NS_dlfcn.cpp
+++ b/ace/OS_NS_dlfcn.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_dlfcn.h"
diff --git a/ace/OS_NS_dlfcn.h b/ace/OS_NS_dlfcn.h
index ac92efbbe46..6bcaac31488 100644
--- a/ace/OS_NS_dlfcn.h
+++ b/ace/OS_NS_dlfcn.h
@@ -33,8 +33,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
//@{ @name A set of wrappers for explicit dynamic linking.
@@ -55,8 +53,6 @@ namespace ACE_OS {
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_dlfcn.inl b/ace/OS_NS_dlfcn.inl
index 6c4caeaf3e8..542660d66d9 100644
--- a/ace/OS_NS_dlfcn.inl
+++ b/ace/OS_NS_dlfcn.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_macros.h"
@@ -20,8 +19,6 @@
# include "ace/OS_NS_string.h"
#endif /* ACE_USES_ASM_SYMBOL_IN_DLSYM */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::dlclose (ACE_SHLIB_HANDLE handle)
{
@@ -89,12 +86,12 @@ ACE_OS::dlerror (void)
# if defined (ACE_USES_WCHAR)
const size_t BufLen = 256;
static wchar_t buf[BufLen];
- ACE_OS::strncpy (buf, ACE_TEXT_CHAR_TO_TCHAR (err), BufLen);
+ ACE_OS::string_copy (buf, err, BufLen);
return buf;
# else
return const_cast <char *> (err);
# endif /* ACE_USES_WCHAR */
-# elif defined (__hpux) || defined (ACE_VXWORKS)
+# elif defined (__hpux) || defined (VXWORKS)
ACE_OSCALL_RETURN (::strerror(errno), char *, 0);
# elif defined (ACE_WIN32)
static ACE_TCHAR buf[128];
@@ -115,23 +112,32 @@ ACE_OS::dlerror (void)
# endif /* ACE_HAS_SVR4_DYNAMIC_LINKING */
}
+# if defined (ACE_HAS_CHARPTR_DL)
+typedef ACE_TCHAR * ACE_DL_TYPE;
+# else
+typedef const ACE_TCHAR * ACE_DL_TYPE;
+# endif /* ACE_HAS_CHARPTR_DL */
+
ACE_INLINE ACE_SHLIB_HANDLE
ACE_OS::dlopen (const ACE_TCHAR *fname,
int mode)
{
ACE_OS_TRACE ("ACE_OS::dlopen");
+ // Get the correct OS type.
+ ACE_DL_TYPE filename = const_cast<ACE_DL_TYPE> (fname);
+
# if defined (ACE_HAS_SVR4_DYNAMIC_LINKING)
void *handle;
# if defined (ACE_HAS_SGIDLADD)
ACE_OSCALL
- (::sgidladd (ACE_TEXT_ALWAYS_CHAR (fname), mode), void *, 0, handle);
+ (::sgidladd (ACE_TEXT_TO_CHAR_IN (filename), mode), void *, 0, handle);
# elif defined (_M_UNIX)
ACE_OSCALL
- (::_dlopen (ACE_TEXT_ALWAYS_CHAR (fname), mode), void *, 0, handle);
+ (::_dlopen (ACE_TEXT_TO_CHAR_IN (filename), mode), void *, 0, handle);
# else
ACE_OSCALL
- (::dlopen (ACE_TEXT_ALWAYS_CHAR (fname), mode), void *, 0, handle);
+ (::dlopen (ACE_TEXT_TO_CHAR_IN (filename), mode), void *, 0, handle);
# endif /* ACE_HAS_SGIDLADD */
# if !defined (ACE_HAS_AUTOMATIC_INIT_FINI)
if (handle != 0)
@@ -154,18 +160,18 @@ ACE_OS::dlopen (const ACE_TCHAR *fname,
# elif defined (ACE_WIN32)
ACE_UNUSED_ARG (mode);
- ACE_WIN32CALL_RETURN (ACE_TEXT_LoadLibrary (fname), ACE_SHLIB_HANDLE, 0);
+ ACE_WIN32CALL_RETURN (ACE_TEXT_LoadLibrary (filename), ACE_SHLIB_HANDLE, 0);
# elif defined (__hpux)
# if defined(__GNUC__) || __cplusplus >= 199707L
- ACE_OSCALL_RETURN (::shl_load(fname, mode, 0L), ACE_SHLIB_HANDLE, 0);
+ ACE_OSCALL_RETURN (::shl_load(filename, mode, 0L), ACE_SHLIB_HANDLE, 0);
# else
- ACE_OSCALL_RETURN (::cxxshl_load(fname, mode, 0L), ACE_SHLIB_HANDLE, 0);
+ ACE_OSCALL_RETURN (::cxxshl_load(filename, mode, 0L), ACE_SHLIB_HANDLE, 0);
# endif /* aC++ vs. Hp C++ */
-# elif defined (ACE_VXWORKS) && !defined (__RTP__)
- MODULE* handle = 0;
+# elif defined (VXWORKS)
+ MODULE* handle;
// Open readonly
- ACE_HANDLE filehandle = ACE_OS::open (fname,
+ ACE_HANDLE filehandle = ACE_OS::open (filename,
O_RDONLY,
ACE_DEFAULT_FILE_PERMS);
@@ -179,8 +185,8 @@ ACE_OS::dlopen (const ACE_TCHAR *fname,
if ( (loaderror != 0) && (handle != 0) )
{
// ouch something went wrong most likely unresolved externals
- if (handle)
- ::unldByModuleId ( handle, 0 );
+ if (handle)
+ ::unldByModuleId ( handle, 0 );
handle = 0;
}
}
@@ -191,7 +197,7 @@ ACE_OS::dlopen (const ACE_TCHAR *fname,
}
return handle;
# else
- ACE_UNUSED_ARG (fname);
+ ACE_UNUSED_ARG (filename);
ACE_UNUSED_ARG (mode);
ACE_NOTSUP_RETURN (0);
# endif /* ACE_HAS_SVR4_DYNAMIC_LINKING */
@@ -210,24 +216,15 @@ ACE_OS::dlsym (ACE_SHLIB_HANDLE handle,
#endif /* ACE_HAS_DLSYM_SEGFAULT_ON_INVALID_HANDLE */
// Get the correct OS type.
+ // Define symbolname
#if defined (ACE_HAS_WINCE)
- // CE (at least thru Pocket PC 2003) offers GetProcAddressW, not ...A, so
- // we always need a wide-char string.
- const wchar_t *symbolname = 0;
-# if defined (ACE_USES_WCHAR)
- symbolname = sname;
-# else
- ACE_Ascii_To_Wide sname_xlate (sname);
- symbolname = sname_xlate.wchar_rep ();
-# endif /* ACE_USES_WCHAR */
-#elif defined (ACE_USES_WCHAR)
- // WinCE is WCHAR always; other platforms need a char * symbol name
- ACE_Wide_To_Ascii w_sname (sname);
- char *symbolname = w_sname.char_rep ();
-#elif defined (ACE_VXWORKS)
- char *symbolname = const_cast<char *> (sname);
+ // WinCE expects a wchar
+ ACE::String_Conversion::Convert_In< wchar_t, char > convert (sname);
+ const wchar_t *symbolname = convert.c_str();
#else
- const char *symbolname = sname;
+ // Otherwise we make certain we have an ANSI char version
+ ACE::String_Conversion::Convert_In< char, wchar_t > convert (sname);
+ const char *symbolname = convert.c_str();
#endif /* ACE_HAS_WINCE */
# if defined (ACE_HAS_SVR4_DYNAMIC_LINKING)
@@ -260,7 +257,7 @@ ACE_OS::dlsym (ACE_SHLIB_HANDLE handle,
ACE_OSCALL (::shl_findsym(&_handle, symbolname, TYPE_UNDEFINED, &value), int, -1, status);
return status == 0 ? value : 0;
-# elif defined (ACE_VXWORKS) && !defined (__RTP__)
+# elif defined (VXWORKS)
// For now we use the VxWorks global symbol table
// which resolves the most recently loaded symbols .. which resolve mostly what we want..
@@ -280,5 +277,3 @@ ACE_OS::dlsym (ACE_SHLIB_HANDLE handle,
# endif /* ACE_HAS_SVR4_DYNAMIC_LINKING */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_errno.h b/ace/OS_NS_errno.h
index 740a176f706..a3fcaabfb7c 100644
--- a/ace/OS_NS_errno.h
+++ b/ace/OS_NS_errno.h
@@ -33,8 +33,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
@@ -86,8 +84,6 @@ private:
# define ACE_ERRNO_TYPE int
#endif /* ACE_HAS_WINCE_BROKEN_ERRNO */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_errno.inl b/ace/OS_NS_errno.inl
index b8d82f3fd24..63eaaba1c14 100644
--- a/ace/OS_NS_errno.inl
+++ b/ace/OS_NS_errno.inl
@@ -1,11 +1,8 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/config-all.h" /* Need ACE_TRACE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::last_error (void)
{
@@ -97,5 +94,3 @@ ACE_CE_Errno::operator= (int x)
}
#endif /* ACE_HAS_WINCE_BROKEN_ERRNO */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_fcntl.cpp b/ace/OS_NS_fcntl.cpp
index 1d9d5bf2bcc..8c69f8b8b51 100644
--- a/ace/OS_NS_fcntl.cpp
+++ b/ace/OS_NS_fcntl.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_fcntl.h"
@@ -13,8 +14,6 @@ ACE_RCSID(ace, OS_NS_fcntl, "$Id$")
#include "ace/OS_NS_macros.h"
#include "ace/Object_Manager_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_HANDLE
ACE_OS::open (const char *filename,
int mode,
@@ -81,7 +80,7 @@ ACE_OS::open (const char *filename,
SECURITY_DESCRIPTOR sd_buffer;
#if defined (ACE_HAS_WINCE)
- ACE_HANDLE h = ::CreateFileW (ACE_Ascii_To_Wide (filename).wchar_rep (),
+ ACE_HANDLE h = ::CreateFileW (ACE_TEXT_TO_WCHAR_IN (filename),
access,
shared_mode,
ACE_OS::default_win32_security_attributes_r
@@ -168,7 +167,6 @@ ACE_OS::open (const char *filename,
#endif /* ACE_WIN32 */
}
-#if defined (ACE_HAS_WCHAR)
ACE_HANDLE
ACE_OS::open (const wchar_t *filename,
int mode,
@@ -260,12 +258,9 @@ ACE_OS::open (const wchar_t *filename,
return h;
#else /* ACE_WIN32 */
// Just emulate with ascii version
- return ACE_OS::open (ACE_Wide_To_Ascii (filename).char_rep (),
+ return ACE_OS::open (ACE_TEXT_TO_CHAR_IN (filename),
mode,
perms,
sa);
#endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_fcntl.h b/ace/OS_NS_fcntl.h
index 9334a1a075e..08bb4230d73 100644
--- a/ace/OS_NS_fcntl.h
+++ b/ace/OS_NS_fcntl.h
@@ -34,8 +34,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
@@ -71,18 +69,14 @@ namespace ACE_OS {
int mode,
int perms = ACE_DEFAULT_OPEN_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
-#if defined (ACE_HAS_WCHAR)
+
extern ACE_Export
ACE_HANDLE open (const wchar_t *filename,
int mode,
int perms = ACE_DEFAULT_OPEN_PERMS,
LPSECURITY_ATTRIBUTES sa = 0);
-#endif /* ACE_HAS_WCHAR */
-
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_fcntl.inl b/ace/OS_NS_fcntl.inl
index 6714b0fe389..0e541c90575 100644
--- a/ace/OS_NS_fcntl.inl
+++ b/ace/OS_NS_fcntl.inl
@@ -1,11 +1,8 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::fcntl (ACE_HANDLE handle, int cmd, long arg)
{
@@ -19,5 +16,3 @@ ACE_OS::fcntl (ACE_HANDLE handle, int cmd, long arg)
ACE_OSCALL_RETURN (::fcntl (handle, cmd, arg), int, -1);
# endif /* ACE_LACKS_FCNTL */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_math.cpp b/ace/OS_NS_math.cpp
index 85e2e92c034..dc009cad8ba 100644
--- a/ace/OS_NS_math.cpp
+++ b/ace/OS_NS_math.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_math.h"
diff --git a/ace/OS_NS_math.h b/ace/OS_NS_math.h
index 55ff1edc2e5..370a65026f2 100644
--- a/ace/OS_NS_math.h
+++ b/ace/OS_NS_math.h
@@ -32,10 +32,7 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
/// This method computes the largest integral value not greater than x.
ACE_NAMESPACE_INLINE_FUNCTION
@@ -45,9 +42,8 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
double ceil (double x);
-} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
+} /* namespace ACE_OS */
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
diff --git a/ace/OS_NS_math.inl b/ace/OS_NS_math.inl
index 0637272006b..6a55a57480a 100644
--- a/ace/OS_NS_math.inl
+++ b/ace/OS_NS_math.inl
@@ -1,35 +1,24 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
ACE_INLINE double
floor (double x)
{
// This method computes the largest integral value not greater than x.
- if(x > 0)
- return static_cast<long> (x);
- else if (static_cast<long> (x) == x)
- return x;
- else
- return static_cast<long>(x) - 1;
+ return double (static_cast<long> (x));
}
ACE_INLINE double
ceil (double x)
{
// This method computes the smallest integral value not less than x.
- if (x < 0)
- return static_cast<long> (x);
- else if (static_cast<long> (x) == x)
- return x;
+ const double floor = ACE_OS::floor (x);
+ if (floor == x)
+ return floor;
else
- return static_cast<long> (x) + 1;
+ return floor + 1;
}
} // ACE_OS namespace
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_netdb.cpp b/ace/OS_NS_netdb.cpp
index 23add1d1497..163c33208b4 100644
--- a/ace/OS_NS_netdb.cpp
+++ b/ace/OS_NS_netdb.cpp
@@ -17,9 +17,7 @@ ACE_RCSID(ace, OS_NS_netdb, "$Id$")
#include "ace/OS_NS_stropts.h"
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
+#if defined (VXWORKS)
struct hostent *
ACE_OS::gethostbyaddr (const char *addr, int length, int type)
@@ -58,10 +56,6 @@ ACE_OS::gethostbyaddr (const char *addr, int length, int type)
return &ret;
}
-#endif /* ACE_VXWORKS && ACE_LACKS_GETHOSTBYADDR */
-
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
-
struct hostent *
ACE_OS::gethostbyaddr_r (const char *addr, int length, int type,
hostent *result, ACE_HOSTENT_DATA buffer,
@@ -112,10 +106,6 @@ ACE_OS::gethostbyaddr_r (const char *addr, int length, int type,
return result;
}
-#endif /* ACE_VXWORKS && ACE_LACKS_GETHOSTBYADDR */
-
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
-
struct hostent *
ACE_OS::gethostbyname (const char *name)
{
@@ -145,10 +135,6 @@ ACE_OS::gethostbyname (const char *name)
return &ret;
}
-#endif /* ACE_VXWORKS && ACE_LACKS_GETHOSTBYNAME */
-
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
-
struct hostent *
ACE_OS::gethostbyname_r (const char *name, hostent *result,
ACE_HOSTENT_DATA buffer,
@@ -197,9 +183,7 @@ ACE_OS::gethostbyname_r (const char *name, hostent *result,
return result;
}
-#endif /* ACE_VXWORKS && ACE_LACKS_GETHOSTBYNAME*/
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* VXWORKS */
// Include if_arp so that getmacaddr can use the
// arp structure.
@@ -207,8 +191,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include /**/ <net/if_arp.h>
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_OS::getmacaddress (struct macaddr_node_t *node)
{
@@ -325,14 +307,14 @@ ACE_OS::getmacaddress (struct macaddr_node_t *node)
(struct sockaddr_in *)&(ar.arp_pa);
ACE_OS::memset (&ar,
- 0,
- sizeof (struct arpreq));
+ 0,
+ sizeof (struct arpreq));
psa->sin_family = AF_INET;
ACE_OS::memcpy (&(psa->sin_addr),
- *paddrs,
- sizeof (struct in_addr));
+ *paddrs,
+ sizeof (struct in_addr));
if (ACE_OS::ioctl (handle,
SIOCGARP,
@@ -385,14 +367,9 @@ ACE_OS::getmacaddress (struct macaddr_node_t *node)
#endif
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) && defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
# include "ace/OS_NS_Thread.h"
# include "ace/Object_Manager_Base.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_OS::netdb_acquire (void)
{
@@ -408,8 +385,4 @@ ACE_OS::netdb_release (void)
ACE_OS_Object_Manager::preallocated_object[
ACE_OS_Object_Manager::ACE_OS_MONITOR_LOCK]);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# endif /* defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS) */
-
diff --git a/ace/OS_NS_netdb.h b/ace/OS_NS_netdb.h
index ead7b769b3b..f25d97c9426 100644
--- a/ace/OS_NS_netdb.h
+++ b/ace/OS_NS_netdb.h
@@ -15,7 +15,7 @@
//=============================================================================
#ifndef ACE_OS_NS_NETDB_H
-#define ACE_OS_NS_NETDB_H
+# define ACE_OS_NS_NETDB_H
# include /**/ "ace/pre.h"
@@ -33,25 +33,22 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+namespace ACE_OS {
-namespace ACE_OS
-{
-
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
- extern ACE_Export
+#if defined (VXWORKS)
+ extern ACE_Export
#else
ACE_NAMESPACE_INLINE_FUNCTION
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
struct hostent *gethostbyaddr (const char *addr,
int length,
int type);
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR)
- extern ACE_Export
+#if defined (VXWORKS)
+ extern ACE_Export
#else
ACE_NAMESPACE_INLINE_FUNCTION
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
struct hostent *gethostbyaddr_r (const char *addr,
int length,
int type,
@@ -59,29 +56,37 @@ namespace ACE_OS
ACE_HOSTENT_DATA buffer,
int *h_errnop);
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
- extern ACE_Export
+#if defined (VXWORKS)
+ extern ACE_Export
#else
ACE_NAMESPACE_INLINE_FUNCTION
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
struct hostent *gethostbyname (const char *name);
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME)
- extern ACE_Export
+#if defined (VXWORKS)
+ extern ACE_Export
#else
ACE_NAMESPACE_INLINE_FUNCTION
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
struct hostent *gethostbyname_r (const char *name,
struct hostent *result,
ACE_HOSTENT_DATA buffer,
int *h_errnop);
+#if defined (VXWORKS)
+ extern ACE_Export
+#else
ACE_NAMESPACE_INLINE_FUNCTION
+#endif /* VXWORKS */
struct hostent *getipnodebyaddr (const void *src, size_t len,
int family);
+#if defined (VXWORKS)
+ extern ACE_Export
+#else
ACE_NAMESPACE_INLINE_FUNCTION
+#endif /* VXWORKS */
struct hostent *getipnodebyname (const char *name, int family,
int flags = 0);
@@ -93,7 +98,7 @@ namespace ACE_OS
unsigned char node[6];
};
- extern ACE_Export
+ extern ACE_Export
int getmacaddress (struct macaddr_node_t *node);
ACE_NAMESPACE_INLINE_FUNCTION
@@ -123,17 +128,15 @@ namespace ACE_OS
ACE_SERVENT_DATA buf);
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) && defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
- extern ACE_Export
+ extern ACE_Export
int netdb_acquire (void);
- extern ACE_Export
+ extern ACE_Export
int netdb_release (void);
# endif /* defined (ACE_MT_SAFE) && ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_netdb.inl b/ace/OS_NS_netdb.inl
index e1caa25eb6d..fed8aa4ebbb 100644
--- a/ace/OS_NS_netdb.inl
+++ b/ace/OS_NS_netdb.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_macros.h"
@@ -40,15 +39,13 @@
# endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
#endif /* ACE_LACKS_NETDB_REENTRANT_FUNCTIONS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if !(defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR))
+#if !defined (VXWORKS)
ACE_INLINE struct hostent *
ACE_OS::gethostbyaddr (const char *addr, int length, int type)
{
ACE_OS_TRACE ("ACE_OS::gethostbyaddr");
-# if defined (ACE_LACKS_GETHOSTBYADDR)
+# if defined (ACE_PSOS)
ACE_UNUSED_ARG (addr);
ACE_UNUSED_ARG (length);
ACE_UNUSED_ARG (type);
@@ -68,10 +65,6 @@ ACE_OS::gethostbyaddr (const char *addr, int length, int type)
# endif /* ACE_HAS_NONCONST_GETBY */
}
-#endif
-
-#if !(defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYADDR))
-
ACE_INLINE struct hostent *
ACE_OS::gethostbyaddr_r (const char *addr,
int length,
@@ -152,15 +145,11 @@ ACE_OS::gethostbyaddr_r (const char *addr,
# endif /* defined (ACE_HAS_REENTRANT_FUNCTIONS) && !defined (UNIXWARE) */
}
-#endif
-
-#if !(defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME))
-
ACE_INLINE struct hostent *
ACE_OS::gethostbyname (const char *name)
{
ACE_OS_TRACE ("ACE_OS::gethostbyname");
-# if defined (ACE_LACKS_GETHOSTBYNAME)
+# if defined (ACE_PSOS)
ACE_UNUSED_ARG (name);
ACE_NOTSUP_RETURN (0);
# elif defined (ACE_HAS_NONCONST_GETBY)
@@ -174,10 +163,6 @@ ACE_OS::gethostbyname (const char *name)
# endif /* ACE_HAS_NONCONST_GETBY */
}
-#endif
-
-#if !(defined (ACE_VXWORKS) && defined (ACE_LACKS_GETHOSTBYNAME))
-
ACE_INLINE struct hostent *
ACE_OS::gethostbyname_r (const char *name,
struct hostent *result,
@@ -185,7 +170,7 @@ ACE_OS::gethostbyname_r (const char *name,
int *h_errnop)
{
ACE_OS_TRACE ("ACE_OS::gethostbyname_r");
-#if defined (ACE_LACKS_GETHOSTBYNAME)
+#if defined (ACE_PSOS)
ACE_UNUSED_ARG (name);
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
@@ -257,8 +242,6 @@ ACE_OS::gethostbyname_r (const char *name,
# endif /* defined (ACE_HAS_REENTRANT_FUNCTIONS) && !defined (UNIXWARE) */
}
-#endif
-
ACE_INLINE struct hostent *
ACE_OS::getipnodebyaddr (const void *src, size_t len, int family)
{
@@ -327,10 +310,12 @@ ACE_OS::getipnodebyname (const char *name, int family, int flags)
# endif /* ACE_PSOS */
}
+#endif /* ! VXWORKS */
+
ACE_INLINE struct protoent *
ACE_OS::getprotobyname (const char *name)
{
-#if defined (ACE_LACKS_GETPROTOBYNAME)
+#if defined (VXWORKS) || defined (ACE_HAS_WINCE) || (defined (ghs) && defined (__Chorus)) || defined (ACE_PSOS)
ACE_UNUSED_ARG (name);
ACE_NOTSUP_RETURN (0);
#elif defined (ACE_HAS_NONCONST_GETBY)
@@ -341,7 +326,7 @@ ACE_OS::getprotobyname (const char *name)
ACE_SOCKCALL_RETURN (::getprotobyname (name),
struct protoent *,
0);
-#endif /* ACE_LACKS_GETPROTOBYNAME */
+#endif /* VXWORKS */
}
ACE_INLINE struct protoent *
@@ -349,7 +334,7 @@ ACE_OS::getprotobyname_r (const char *name,
struct protoent *result,
ACE_PROTOENT_DATA buffer)
{
-#if defined (ACE_LACKS_GETPROTOBYNAME)
+#if defined (VXWORKS) || defined (ACE_HAS_WINCE) || (defined (ghs) && defined (__Chorus)) || defined (ACE_PSOS)
ACE_UNUSED_ARG (name);
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
@@ -402,13 +387,13 @@ ACE_OS::getprotobyname_r (const char *name,
ACE_INLINE struct protoent *
ACE_OS::getprotobynumber (int proto)
{
-#if defined (ACE_LACKS_GETPROTOBYNUMBER)
+#if defined (VXWORKS) || defined (ACE_HAS_WINCE) || (defined (ghs) && defined (__Chorus)) || defined (ACE_PSOS)
ACE_UNUSED_ARG (proto);
ACE_NOTSUP_RETURN (0);
#else
ACE_SOCKCALL_RETURN (::getprotobynumber (proto),
struct protoent *, 0);
-#endif /* ACE_LACKS_GETPROTOBYNUMBER */
+#endif /* VXWORKS */
}
ACE_INLINE struct protoent *
@@ -416,7 +401,7 @@ ACE_OS::getprotobynumber_r (int proto,
struct protoent *result,
ACE_PROTOENT_DATA buffer)
{
-#if defined (ACE_LACKS_GETPROTOBYNUMBER)
+#if defined (VXWORKS) || defined (ACE_HAS_WINCE) || (defined (ghs) && defined (__Chorus)) || defined (ACE_PSOS)
ACE_UNUSED_ARG (proto);
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
@@ -541,5 +526,3 @@ ACE_OS::getservbyname_r (const char *svc,
0);
#endif /* defined (ACE_HAS_REENTRANT_FUNCTIONS) && !defined (UNIXWARE) */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_poll.cpp b/ace/OS_NS_poll.cpp
index 5ffdc327eb7..c109c2f097e 100644
--- a/ace/OS_NS_poll.cpp
+++ b/ace/OS_NS_poll.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_poll.h"
diff --git a/ace/OS_NS_poll.h b/ace/OS_NS_poll.h
index 6d8f5c38346..43fe0a2f2fb 100644
--- a/ace/OS_NS_poll.h
+++ b/ace/OS_NS_poll.h
@@ -33,12 +33,9 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int poll (struct pollfd *pollfds,
@@ -52,8 +49,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_poll.inl b/ace/OS_NS_poll.inl
index ab1b2d8b54e..8d808fbd6f5 100644
--- a/ace/OS_NS_poll.inl
+++ b/ace/OS_NS_poll.inl
@@ -1,12 +1,9 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/Time_Value.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::poll (struct pollfd *pollfds,
unsigned long len,
@@ -41,5 +38,3 @@ ACE_OS::poll (struct pollfd *pollfds,
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_POLL */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_pwd.cpp b/ace/OS_NS_pwd.cpp
index 7888142f39f..61da06a1e7c 100644
--- a/ace/OS_NS_pwd.cpp
+++ b/ace/OS_NS_pwd.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_pwd.h"
diff --git a/ace/OS_NS_pwd.h b/ace/OS_NS_pwd.h
index b8360dc3d1d..9c61269f00b 100644
--- a/ace/OS_NS_pwd.h
+++ b/ace/OS_NS_pwd.h
@@ -15,7 +15,7 @@
//=============================================================================
#ifndef ACE_OS_NS_PWD_H
-#define ACE_OS_NS_PWD_H
+# define ACE_OS_NS_PWD_H
# include /**/ "ace/pre.h"
@@ -39,10 +39,7 @@
struct passwd;
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
//@{ @name A set of wrappers for password routines.
@@ -67,8 +64,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_pwd.inl b/ace/OS_NS_pwd.inl
index d25d3b2173c..62f5e1813f8 100644
--- a/ace/OS_NS_pwd.inl
+++ b/ace/OS_NS_pwd.inl
@@ -1,11 +1,8 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Accessors to PWD file.
ACE_INLINE void
@@ -117,5 +114,3 @@ ACE_OS::setpwent (void)
::setpwent ();
#endif /* ! ACE_LACKS_PWD_FUNCTIONS */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_regex.cpp b/ace/OS_NS_regex.cpp
index dfefedf5231..88fc9f3beb4 100644
--- a/ace/OS_NS_regex.cpp
+++ b/ace/OS_NS_regex.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_regex.h"
diff --git a/ace/OS_NS_regex.h b/ace/OS_NS_regex.h
index 434224af16e..ac311494088 100644
--- a/ace/OS_NS_regex.h
+++ b/ace/OS_NS_regex.h
@@ -32,10 +32,7 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
// non=standard..
//@{ @name A set of wrappers for regular expressions.
@@ -51,8 +48,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_regex.inl b/ace/OS_NS_regex.inl
index 884bd88c718..b1f445f0e67 100644
--- a/ace/OS_NS_regex.inl
+++ b/ace/OS_NS_regex.inl
@@ -1,12 +1,9 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
#include "ace/os_include/os_regex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE char *
ACE_OS::compile (const char *instring, char *expbuf, char *endbuf)
{
@@ -36,4 +33,3 @@ ACE_OS::step (const char *str, char *expbuf)
#endif /* ACE_HAS_REGEX */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_signal.cpp b/ace/OS_NS_signal.cpp
index ab65f204095..3dc5e1c56fe 100644
--- a/ace/OS_NS_signal.cpp
+++ b/ace/OS_NS_signal.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_signal.h"
@@ -21,6 +22,3 @@ siginfo_t::siginfo_t (ACE_HANDLE *handles)
{
}
#endif /* ACE_HAS_SIGINFO_T */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_signal.h b/ace/OS_NS_signal.h
index 116f86dd2a2..74351b3a192 100644
--- a/ace/OS_NS_signal.h
+++ b/ace/OS_NS_signal.h
@@ -68,25 +68,6 @@ extern "C"
}
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// This hack is needed to get around an odd and hard-to-reproduce problem
-// with HP aC++. If struct sigaction is defined extern "C" and the sigaction
-// function in namespace ACE_OS, the compiler sometimes gets confused.
-// If we help it with this typedef, it's fine. User code should not use
-// the ACE typedef - it will be removed without warning as soon as we can
-// either drop support for the broken compilers or figure out how to reproduce
-// it so it can be reported to HP and fixed.
-// There's a similar hack in OS_TLI.h for struct t_optmgmt.
-// Also see ChangeLog entries:
-// Mon Jan 23 16:35:40 UTC 2006 Steve Huston <shuston@riverace.com>
-// Mon Jan 23 22:08:56 UTC 2006 Steve Huston <shuston@riverace.com>
-#if defined (__HP_aCC) && (__HP_aCC <= 36500)
-typedef extern "C" struct sigaction ACE_SIGACTION;
-#else
-typedef struct sigaction ACE_SIGACTION;
-#endif
-
namespace ACE_OS {
//@{ @name A set of wrappers for Signals.
@@ -102,8 +83,8 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int sigaction (int signum,
- const ACE_SIGACTION *nsa,
- ACE_SIGACTION *osa);
+ const struct sigaction *nsa,
+ struct sigaction *osa);
ACE_NAMESPACE_INLINE_FUNCTION
int sigaddset (sigset_t *s,
@@ -139,8 +120,6 @@ namespace ACE_OS {
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_signal.inl b/ace/OS_NS_signal.inl
index a56956e4aa0..a2159ad2604 100644
--- a/ace/OS_NS_signal.inl
+++ b/ace/OS_NS_signal.inl
@@ -1,32 +1,28 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_macros.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_INLINE int
kill (pid_t pid, int signum)
{
ACE_OS_TRACE ("ACE_OS::kill");
-#if defined (ACE_LACKS_KILL)
+#if defined (ACE_WIN32) || defined (CHORUS) || defined (ACE_PSOS)
ACE_UNUSED_ARG (pid);
ACE_UNUSED_ARG (signum);
ACE_NOTSUP_RETURN (-1);
#else
ACE_OSCALL_RETURN (::kill (pid, signum), int, -1);
-#endif /* ACE_LACKS_KILL */
+#endif /* ACE_WIN32 || CHORUS || ACE_PSOS */
}
ACE_INLINE int
pthread_sigmask (int how, const sigset_t *nsp, sigset_t *osp)
{
-#if defined (ACE_HAS_PTHREADS_STD) && !defined (ACE_LACKS_PTHREAD_SIGMASK)
+#if defined (ACE_HAS_PTHREADS_STD) && !defined (ACE_LACKS_PTHREAD_SIGMASK)
int result;
ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_sigmask (how, nsp, osp),
result),
@@ -41,7 +37,7 @@ pthread_sigmask (int how, const sigset_t *nsp, sigset_t *osp)
}
ACE_INLINE int
-sigaction (int signum, const ACE_SIGACTION *nsa, ACE_SIGACTION *osa)
+sigaction (int signum, const struct sigaction *nsa, struct sigaction *osa)
{
ACE_OS_TRACE ("ACE_OS::sigaction");
if (signum == 0)
@@ -60,7 +56,8 @@ sigaction (int signum, const ACE_SIGACTION *nsa, ACE_SIGACTION *osa)
else
osa->sa_handler = ::signal (signum, nsa->sa_handler);
return osa->sa_handler == SIG_ERR ? -1 : 0;
-#elif defined (ACE_LACKS_SIGACTION)
+#elif defined (CHORUS) || defined (ACE_HAS_WINCE) || defined(ACE_PSOS)
+ ACE_UNUSED_ARG (signum);
ACE_UNUSED_ARG (nsa);
ACE_UNUSED_ARG (osa);
ACE_NOTSUP_RETURN (-1);
@@ -274,5 +271,3 @@ sigsuspend (const sigset_t *sigset)
}
} /* end namespace ACE_OS */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_stdio.cpp b/ace/OS_NS_stdio.cpp
index 46b30ef5fdb..6e3a45cd926 100644
--- a/ace/OS_NS_stdio.cpp
+++ b/ace/OS_NS_stdio.cpp
@@ -14,10 +14,8 @@ ACE_RCSID (ace,
# if defined (ACE_WIN32)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
OSVERSIONINFO ACE_OS::win32_versioninfo_;
HINSTANCE ACE_OS::win32_resource_module_;
-ACE_END_VERSIONED_NAMESPACE_DECL
# if defined (ACE_HAS_DLL) && (ACE_HAS_DLL == 1) && !defined (ACE_HAS_WINCE)
// This function is called by the OS when the ACE DLL is loaded. We
@@ -40,8 +38,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID)
# endif /* ACE_HAS_DLL && ACE_HAS_DLL == 1 */
# endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_OS::ace_flock_t::dump (void) const
{
@@ -136,9 +132,9 @@ ACE_OS::fopen (const char *filename,
if (fd != -1)
{
# if defined (__BORLANDC__) && !defined (ACE_USES_WCHAR)
- FILE *fp = ::_fdopen (fd, const_cast<ACE_TCHAR *> (mode));
+ FILE *fp = ::_fdopen (fd, const_cast<char *> (mode));
# elif defined (__BORLANDC__) && defined (ACE_USES_WCHAR)
- FILE *fp = ::_wfdopen (fd, const_cast<ACE_TCHAR *> (mode));
+ FILE *fp = ::_wfdopen (fd, const_cast<wchar_t *> (mode));
# elif defined (ACE_USES_WCHAR)
FILE *fp = ::_wfdopen (fd, mode);
# else
@@ -159,7 +155,6 @@ ACE_OS::fopen (const char *filename,
return 0;
}
-#if defined (ACE_HAS_WCHAR)
FILE *
ACE_OS::fopen (const wchar_t *filename,
const ACE_TCHAR *mode)
@@ -206,7 +201,6 @@ ACE_OS::fopen (const wchar_t *filename,
}
return 0;
}
-#endif /* ACE_HAS_WCHAR */
#endif /* ACE_WIN32 */
@@ -222,7 +216,6 @@ ACE_OS::fprintf (FILE *fp, const char *format, ...)
return result;
}
-#if defined (ACE_HAS_WCHAR)
int
ACE_OS::fprintf (FILE *fp, const wchar_t *format, ...)
{
@@ -243,7 +236,6 @@ ACE_OS::fprintf (FILE *fp, const wchar_t *format, ...)
# endif /* ACE_HAS_VFWPRINTF */
}
-#endif /* ACE_HAS_WCHAR */
// The following *printf functions aren't inline because
@@ -302,8 +294,6 @@ ACE_OS::snprintf (char *buf, size_t maxlen, const char *format, ...)
#endif /* ACE_HAS_SNPRINTF */
}
-#if defined (ACE_HAS_WCHAR)
-
int
ACE_OS::snprintf (wchar_t *buf, size_t maxlen, const wchar_t *format, ...)
{
@@ -347,7 +337,6 @@ ACE_OS::snprintf (wchar_t *buf, size_t maxlen, const wchar_t *format, ...)
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_SNPRINTF */
}
-#endif /* ACE_HAS_WCHAR */
int
ACE_OS::sprintf (char *buf, const char *format, ...)
@@ -362,7 +351,6 @@ ACE_OS::sprintf (char *buf, const char *format, ...)
return result;
}
-#if defined (ACE_HAS_WCHAR)
int
ACE_OS::sprintf (wchar_t *buf, const wchar_t *format, ...)
{
@@ -401,6 +389,4 @@ ACE_OS::sprintf (wchar_t *buf, const wchar_t *format, ...)
# endif /* XPG5 || ACE_HAS_DINKUM_STL */
}
-#endif /* ACE_HAS_WCHAR */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_stdio.h b/ace/OS_NS_stdio.h
index c2ad103bc5c..45d4cc99c3c 100644
--- a/ace/OS_NS_stdio.h
+++ b/ace/OS_NS_stdio.h
@@ -54,8 +54,6 @@ inline void __ace_clearerr(FILE *stream)
# endif /* defined (clearerr) */
# endif /* !ACE_LACKS_CLEARERR */
-#if !defined (ACE_LACKS_CUSERID) && !defined(ACE_HAS_ALT_CUSERID) \
- && !defined(ACE_WIN32) && !defined (VXWORKS)
/// Helper for the ACE_OS::cuserid() function
/**
* On some platforms cuserid is a macro. Defining ACE_OS::cuserid()
@@ -70,6 +68,8 @@ inline void __ace_clearerr(FILE *stream)
* probably need to move some of it off into some sort of emulation
* function.
*/
+#if !defined (ACE_LACKS_CUSERID) && !defined(ACE_HAS_ALT_CUSERID) \
+ && !defined(ACE_WIN32) && !defined (VXWORKS)
inline char *ace_cuserid(char *user)
{
return cuserid(user);
@@ -94,8 +94,6 @@ struct flock
# endif /* ! VXWORKS */
# endif /* ACE_LACKS_FILELOCKS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
/**
@@ -151,11 +149,10 @@ namespace ACE_OS {
char *cuserid (char *user,
size_t maxlen = ACE_MAX_USERID);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *cuserid (wchar_t *user,
size_t maxlen = ACE_MAX_USERID);
-# endif /* ACE_HAS_WCHAR */
+
# endif /* ACE_LACKS_CUSERID */
//@}
@@ -181,10 +178,8 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
char *fgets (char *buf, int size, FILE *fp);
-# if defined (ACE_HAS_WCHAR) && !defined(ACE_LACKS_FGETWS)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *fgets (wchar_t *buf, int size, FILE *fp);
-# endif /* ACE_HAS_WCHAR && !ACE_LACKS_FGETWS */
//@{ @name A set of wrappers for file locks.
@@ -245,14 +240,12 @@ namespace ACE_OS {
#endif /* ACE_WIN32 */
FILE *fopen (const char *filename, const ACE_TCHAR *mode);
-#if defined (ACE_HAS_WCHAR)
#if defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)
extern ACE_Export
#else
ACE_NAMESPACE_INLINE_FUNCTION
#endif /* ACE_WIN32 */
FILE *fopen (const wchar_t *filename, const ACE_TCHAR *mode);
-#endif /* ACE_HAS_WCHAR */
#if defined (ACE_WIN32)
/// Default Win32 Security Attributes definition.
@@ -295,20 +288,16 @@ namespace ACE_OS {
extern ACE_Export
int fprintf (FILE *fp, const char *format, ...);
-# if defined (ACE_HAS_WCHAR)
extern ACE_Export
int fprintf (FILE *fp, const wchar_t *format, ...);
-# endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int fputs (const char *s,
FILE *stream);
-# if defined (ACE_HAS_WCHAR) && !defined(ACE_LACKS_FPUTWS)
ACE_NAMESPACE_INLINE_FUNCTION
int fputs (const wchar_t *s,
FILE *stream);
-# endif /* ACE_HAS_WCHAR && !ACE_LACKS_FPUTWS */
ACE_NAMESPACE_INLINE_FUNCTION
size_t fread (void *ptr,
@@ -341,10 +330,8 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
void perror (const char *s);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
void perror (const wchar_t *s);
-#endif /* ACE_HAS_WCHAR */
extern ACE_Export
int printf (const char *format, ...);
@@ -352,22 +339,18 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int puts (const char *s);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int puts (const wchar_t *s);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int rename (const char *old_name,
const char *new_name,
int flags = -1);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int rename (const wchar_t *old_name,
const wchar_t *new_name,
int flags = -1);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
void rewind (FILE *fp);
@@ -375,28 +358,22 @@ namespace ACE_OS {
extern ACE_Export
int snprintf (char *buf, size_t maxlen, const char *format, ...);
-# if defined (ACE_HAS_WCHAR)
extern ACE_Export
int snprintf (wchar_t *buf, size_t maxlen, const wchar_t *format,...);
-# endif /* ACE_HAS_WCHAR */
extern ACE_Export
int sprintf (char *buf, const char *format, ...);
-# if defined (ACE_HAS_WCHAR)
extern ACE_Export
int sprintf (wchar_t *buf, const wchar_t *format, ...);
-# endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
char *tempnam (const char *dir = 0,
const char *pfx = 0);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *tempnam (const wchar_t *dir,
const wchar_t *pfx = 0);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int vsprintf (char *buffer, const char *format, va_list argptr);
@@ -404,18 +381,14 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int vsnprintf (char *buffer, size_t maxlen, const char *format, va_list argptr);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int vsprintf (wchar_t *buffer, const wchar_t *format, va_list argptr);
ACE_NAMESPACE_INLINE_FUNCTION
int vsnprintf (wchar_t *buffer, size_t maxlen, const wchar_t *format, va_list argptr);
-# endif /* ACE_HAS_WCHAR */
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_stdio.inl b/ace/OS_NS_stdio.inl
index d3f2c08c99e..607d974d972 100644
--- a/ace/OS_NS_stdio.inl
+++ b/ace/OS_NS_stdio.inl
@@ -35,8 +35,6 @@ fileno (FILE *fp)
/*****************************************************************************/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32)
ACE_INLINE void
ACE_OS::flock_adjust_params (ACE_OS::ace_flock_t *lock,
@@ -134,8 +132,7 @@ ACE_OS::flock_init (ACE_OS::ace_flock_t *lock,
ACE_HANDLE,
ACE_INVALID_HANDLE,
lock->handle_);
- if (lock->handle_ != ACE_INVALID_HANDLE)
- lock->lockname_ = ACE_OS::strdup (name);
+ lock->lockname_ = ACE_OS::strdup (name);
return lock->handle_ == ACE_INVALID_HANDLE ? -1 : 0;
}
else
@@ -495,7 +492,7 @@ ACE_INLINE char *
ACE_OS::cuserid (char *user, size_t maxlen)
{
ACE_OS_TRACE ("ACE_OS::cuserid");
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
ACE_UNUSED_ARG (maxlen);
if (user == 0)
{
@@ -589,7 +586,6 @@ ACE_OS::cuserid (char *user, size_t maxlen)
#endif /* VXWORKS */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::cuserid (wchar_t *user, size_t maxlen)
{
@@ -600,14 +596,14 @@ ACE_OS::cuserid (wchar_t *user, size_t maxlen)
else
return user;
# else /* ACE_WIN32 */
- char *char_user;
+ char *char_user = 0;
wchar_t *result = 0;
ACE_NEW_RETURN (char_user, char[maxlen + 1], 0);
if (ACE_OS::cuserid (char_user, maxlen))
{
- ACE_OS::strcpy (user, ACE_Ascii_To_Wide (char_user).wchar_rep ());
+ ACE_OS::string_copy (user, char_user, maxlen + 1);
result = user;
}
@@ -616,7 +612,6 @@ ACE_OS::cuserid (wchar_t *user, size_t maxlen)
return result;
# endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
#endif /* ACE_LACKS_CUSERID */
ACE_INLINE int
@@ -631,9 +626,9 @@ ACE_OS::fdopen (ACE_HANDLE handle, const ACE_TCHAR *mode)
{
ACE_OS_TRACE ("ACE_OS::fdopen");
# if defined (ACE_HAS_WINCE)
- ACE_OSCALL_RETURN (::_wfdopen (handle, ACE_TEXT_ALWAYS_WCHAR (mode)),
- FILE*,
- 0);
+ ACE_OSCALL_RETURN (::_wfdopen (handle, ACE_TEXT_TO_WCHAR_IN (mode)),
+ FILE*,
+ 0);
# elif defined (ACE_WIN32)
// kernel file handle -> FILE* conversion...
// Options: _O_APPEND, _O_RDONLY and _O_TEXT are lost
@@ -648,10 +643,8 @@ ACE_OS::fdopen (ACE_HANDLE handle, const ACE_TCHAR *mode)
if (crt_handle != -1)
{
-# if defined(ACE_HAS_NONCONST_FDOPEN) && !defined (ACE_USES_WCHAR)
- file = ::_fdopen (crt_handle, const_cast<ACE_TCHAR *> (mode));
-# elif defined (ACE_HAS_NONCONST_FDOPEN) && defined (ACE_USES_WCHAR)
- file = ::_wfdopen (crt_handle, const_cast<ACE_TCHAR *> (mode));
+# if defined(__BORLANDC__) /* VSB */
+ file = ::_fdopen (crt_handle, (char *) mode);
# elif defined (ACE_USES_WCHAR)
file = ::_wfdopen (crt_handle, mode);
# else
@@ -678,7 +671,7 @@ ACE_OS::fdopen (ACE_HANDLE handle, const ACE_TCHAR *mode)
ACE_NOTSUP_RETURN (0);
# else
ACE_OSCALL_RETURN
- (::fdopen (handle, ACE_TEXT_ALWAYS_CHAR (mode)), FILE *, 0);
+ (::fdopen (handle, ACE_TEXT_TO_CHAR_IN (mode)), FILE *, 0);
# endif /* ACE_HAS_WINCE */
}
@@ -716,14 +709,19 @@ ACE_OS::fgets (char *buf, int size, FILE *fp)
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::fgets (buf, size, fp), char *, 0);
}
-#if defined (ACE_HAS_WCHAR) && !defined(ACE_LACKS_FGETWS)
ACE_INLINE wchar_t *
ACE_OS::fgets (wchar_t *buf, int size, FILE *fp)
{
+#if !defined(ACE_LACKS_FGETWS)
ACE_OS_TRACE ("ACE_OS::fgets");
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::fgetws (buf, size, fp), wchar_t *, 0);
+#else
+ ACE_UNUSED_ARG( buf );
+ ACE_UNUSED_ARG( size );
+ ACE_UNUSED_ARG( fp );
+ ACE_NOTSUP_RETURN (0);
+#endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_FGETWS */
#if !(defined (ACE_WIN32) && !defined (ACE_HAS_WINCE))
// Win32 PC implementation of fopen () is in OS_NS_stdio.cpp.
@@ -732,25 +730,23 @@ ACE_OS::fopen (const char *filename, const ACE_TCHAR *mode)
{
ACE_OS_TRACE ("ACE_OS::fopen");
ACE_OSCALL_RETURN
- (::fopen (filename, ACE_TEXT_ALWAYS_CHAR (mode)), FILE *, 0);
+ (::fopen (filename, ACE_TEXT_TO_CHAR_IN (mode)), FILE *, 0);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE FILE *
ACE_OS::fopen (const wchar_t *filename, const ACE_TCHAR *mode)
{
ACE_OS_TRACE ("ACE_OS::fopen");
#if defined (ACE_HAS_WINCE)
ACE_OSCALL_RETURN
- (::_wfopen (filename, ACE_TEXT_ALWAYS_WCHAR (mode)), FILE *, 0);
+ (::_wfopen (filename, ACE_TEXT_TO_WCHAR_IN (mode)), FILE *, 0);
#else
// Non-Windows doesn't use wchar_t file systems.
- ACE_Wide_To_Ascii n_filename (filename);
ACE_OSCALL_RETURN
- (::fopen (n_filename.char_rep (), ACE_TEXT_ALWAYS_CHAR (mode)), FILE*, 0);
+ (::fopen (ACE_TEXT_TO_CHAR_IN (filename),
+ ACE_TEXT_TO_CHAR_IN (mode)), FILE*, 0);
#endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
#endif /* ACE_WIN32 */
@@ -761,14 +757,18 @@ ACE_OS::fputs (const char *s, FILE *stream)
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::fputs (s, stream), int, -1);
}
-#if defined (ACE_HAS_WCHAR) && !defined(ACE_LACKS_FPUTWS)
ACE_INLINE int
ACE_OS::fputs (const wchar_t *s, FILE *stream)
{
+#if !defined(ACE_LACKS_FPUTWS)
ACE_OS_TRACE ("ACE_OS::fputs");
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::fputws (s, stream), int, -1);
+#else
+ ACE_UNUSED_ARG( s );
+ ACE_UNUSED_ARG( stream );
+ ACE_NOTSUP_RETURN (-1);
+#endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_FPUTWS */
ACE_INLINE size_t
ACE_OS::fread (void *ptr, size_t size, size_t nelems, FILE *fp)
@@ -784,14 +784,14 @@ ACE_OS::freopen (const ACE_TCHAR *filename, const ACE_TCHAR *mode, FILE* stream)
{
ACE_OS_TRACE ("ACE_OS::freopen");
#if defined (ACE_WIN32) && (defined(ACE_USES_WCHAR) || defined(ACE_HAS_WINCE))
- ACE_OSCALL_RETURN (::_wfreopen (ACE_TEXT_ALWAYS_WCHAR (filename),
- ACE_TEXT_ALWAYS_WCHAR (mode),
- stream),
- FILE *, 0);
+ ACE_OSCALL_RETURN (::_wfreopen (ACE_TEXT_TO_WCHAR_IN (filename),
+ ACE_TEXT_TO_WCHAR_IN (mode),
+ stream),
+ FILE *, 0);
#else
ACE_OSCALL_RETURN
- (ACE_STD_NAMESPACE::freopen (ACE_TEXT_ALWAYS_CHAR (filename),
- ACE_TEXT_ALWAYS_CHAR (mode),
+ (ACE_STD_NAMESPACE::freopen (ACE_TEXT_TO_CHAR_IN (filename),
+ ACE_TEXT_TO_CHAR_IN (mode),
stream),
FILE *, 0);
#endif /* ACE_WIN32 && ACE_USES_WCHAR */
@@ -856,7 +856,6 @@ ACE_OS::perror (const char *s)
#endif /* ACE_HAS_WINCE */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE void
ACE_OS::perror (const wchar_t *s)
{
@@ -867,11 +866,9 @@ ACE_OS::perror (const wchar_t *s)
#elif defined (ACE_WIN32)
::_wperror (s);
#else
- ACE_Wide_To_Ascii n_s (s);
- ::perror (n_s.char_rep ());
+ ::perror (ACE_TEXT_TO_CHAR_IN (s));
#endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::puts (const char *s)
@@ -880,7 +877,6 @@ ACE_OS::puts (const char *s)
ACE_OSCALL_RETURN (::puts (s), int, -1);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::puts (const wchar_t *s)
{
@@ -889,11 +885,9 @@ ACE_OS::puts (const wchar_t *s)
ACE_OSCALL_RETURN (::_putws (s), int, -1);
#else /* ACE_WIN32 */
// There's no putws()...
- ACE_Wide_To_Ascii n_s (s);
- ACE_OSCALL_RETURN (::puts (n_s.char_rep ()), int, -1);
+ ACE_OSCALL_RETURN (::puts (ACE_TEXT_TO_CHAR_IN (s)), int, -1);
#endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::rename (const char *old_name,
@@ -908,8 +902,8 @@ ACE_OS::rename (const char *old_name,
# elif defined (ACE_HAS_WINCE)
// Win CE is always wide-char.
ACE_UNUSED_ARG (flags);
- if (0 != MoveFile (ACE_TEXT_CHAR_TO_TCHAR (old_name),
- ACE_TEXT_CHAR_TO_TCHAR (new_name)))
+ if (0 != MoveFile (ACE_TEXT_TO_TCHAR_IN (old_name),
+ ACE_TEXT_TO_TCHAR_IN (new_name)))
ACE_FAIL_RETURN (-1);
return 0;
# elif defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 == 1)
@@ -928,7 +922,6 @@ ACE_OS::rename (const char *old_name,
# endif /* ACE_LACKS_RENAME */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::rename (const wchar_t *old_name,
const wchar_t *new_name,
@@ -958,12 +951,10 @@ ACE_OS::rename (const wchar_t *old_name,
ACE_UNUSED_ARG (flags);
ACE_OSCALL_RETURN (::_wrename (old_name, new_name), int, -1);
# else /* ACE_LACKS_RENAME */
- ACE_Wide_To_Ascii nold_name (old_name);
- ACE_Wide_To_Ascii nnew_name (new_name);
- return ACE_OS::rename (nold_name.char_rep (), nnew_name.char_rep (), flags);
+ return ACE_OS::rename (ACE_TEXT_TO_CHAR_IN (old_name),
+ ACE_TEXT_TO_CHAR_IN (new_name), flags);
# endif /* ACE_LACKS_RENAME */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE void
ACE_OS::rewind (FILE *fp)
@@ -972,9 +963,8 @@ ACE_OS::rewind (FILE *fp)
ACE_OS_TRACE ("ACE_OS::rewind");
::rewind (fp);
#else
- // This isn't perfect since it doesn't reset EOF, but it's probably
- // the closest we can get on WINCE.
- (void) fseek (fp, 0L, SEEK_SET);
+ // In WinCE, "FILE *" is actually a HANDLE.
+ ::SetFilePointer (fp, 0L, 0L, FILE_BEGIN);
#endif /* ACE_HAS_WINCE */
}
@@ -990,14 +980,13 @@ ACE_OS::tempnam (const char *dir, const char *pfx)
// pSOS only considers the directory prefix
ACE_UNUSED_ARG (pfx);
ACE_OSCALL_RETURN (::tmpnam (const_cast <char *> (dir)), char *, 0);
-#elif defined (ACE_HAS_NONCONST_TEMPNAM)
- ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::tempnam (const_cast <char *> (dir), const_cast<char *> (pfx)), char *, 0);
+#elif (defined (ACE_WIN32) && ((defined (__BORLANDC__) && (__BORLANDC__ < 0x600)) || defined (__DMC__)))
+ ACE_OSCALL_RETURN (::_tempnam (const_cast <char *> (dir), const_cast<char *> (pfx)), char *, 0);
#else /* ACE_LACKS_TEMPNAM */
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::tempnam (dir, pfx), char *, 0);
#endif /* ACE_LACKS_TEMPNAM */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::tempnam (const wchar_t *dir, const wchar_t *pfx)
{
@@ -1007,32 +996,25 @@ ACE_OS::tempnam (const wchar_t *dir, const wchar_t *pfx)
ACE_UNUSED_ARG (pfx);
ACE_NOTSUP_RETURN (0);
#elif defined(ACE_WIN32)
-# if defined (ACE_HAS_NONCONST_TEMPNAM)
+# if (defined (__BORLANDC__) && (__BORLANDC__ < 0x600)) || defined (__DMC__)
ACE_OSCALL_RETURN (::_wtempnam (const_cast <wchar_t*> (dir), const_cast <wchar_t*> (pfx)), wchar_t *, 0);
# else
ACE_OSCALL_RETURN (::_wtempnam (dir, pfx), wchar_t *, 0);
-# endif /* __BORLANDC__ */
-#else /* ACE_LACKS_TEMPNAM */
+# endif // __BORLANDC__
+#else // ACE_LACKS_TEMPNAM
// No native wide-char support; convert to narrow and call the char* variant.
- char *ndir = ACE_Wide_To_Ascii (dir).char_rep ();
- char *npfx = ACE_Wide_To_Ascii (pfx).char_rep ();
- char *name = ACE_OS::tempnam (ndir, npfx);
+ char *name = ACE_OS::tempnam (ACE_TEXT_TO_CHAR_IN (dir),
+ ACE_TEXT_TO_CHAR_IN (pfx));
// ACE_OS::tempnam returns a pointer to a malloc()-allocated space.
// Convert that string to wide-char and free() the original.
- wchar_t *wname = 0;
if (name != 0)
{
- size_t namelen = ACE_OS::strlen (name) + 1;
- wname = reinterpret_cast<wchar_t *>
- (ACE_OS::malloc (namelen * sizeof (wchar_t)));
- if (wname != 0)
- ACE_OS::strcpy (wname, ACE_Ascii_To_Wide (name).wchar_rep ());
- ACE_OS::free (name);
+ ::free( name );
+ return ACE_TEXT_TO_MALLOC_WCHAR_OUT( name );
}
- return wname;
+ return 0;
#endif /* ACE_LACKS_TEMPNAM */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::vsprintf (char *buffer, const char *format, va_list argptr)
@@ -1074,7 +1056,6 @@ ACE_OS::vsnprintf (char *buffer, size_t maxlen, const char *format, va_list ap)
#endif /* ACE_HAS_SNPRINTF */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::vsprintf (wchar_t *buffer, const wchar_t *format, va_list argptr)
{
@@ -1103,9 +1084,7 @@ ACE_OS::vsprintf (wchar_t *buffer, const wchar_t *format, va_list argptr)
# endif /* XPG5 || ACE_HAS_DINKUM_STL */
}
-#endif /* ACE_HAS_WCHAR */
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::vsnprintf (wchar_t *buffer, size_t maxlen, const wchar_t *format, va_list ap)
{
@@ -1115,22 +1094,6 @@ ACE_OS::vsnprintf (wchar_t *buffer, size_t maxlen, const wchar_t *format, va_lis
return vswprintf (buffer, maxlen, format, ap);
-# elif defined (ACE_WIN32)
-
- int result =
- ACE_SPRINTF_ADAPTER (::_vsnwprintf (buffer, maxlen, format, ap));
-
- // Win32 doesn't regard a full buffer with no 0-terminate as an
- // overrun.
- if (result == static_cast<int> (maxlen))
- result = -1;
-
- // Win32 doesn't 0-terminate the string if it overruns maxlen.
- if (result == -1)
- buffer[maxlen-1] = '\0';
-
- return result;
-
# else
ACE_UNUSED_ARG (buffer);
@@ -1141,7 +1104,6 @@ ACE_OS::vsnprintf (wchar_t *buffer, size_t maxlen, const wchar_t *format, va_lis
# endif /* platforms with a variant of vswprintf */
}
-#endif /* ACE_HAS_WCHAR */
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
#if defined (ACE_WIN32)
@@ -1214,5 +1176,3 @@ ACE_OS::default_win32_security_attributes_r (LPSECURITY_ATTRIBUTES sa,
#endif /* ACE_WIN32 */
#endif
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_stdlib.cpp b/ace/OS_NS_stdlib.cpp
index 9a0370921f5..2bb6e1b1070 100644
--- a/ace/OS_NS_stdlib.cpp
+++ b/ace/OS_NS_stdlib.cpp
@@ -25,13 +25,11 @@ ACE_RCSID (ace,
# include "ace/OS_NS_fcntl.h"
# include "ace/OS_NS_ctype.h"
# include "ace/OS_NS_sys_time.h"
-# if !defined (ACE_HAS_WINCE) && !(defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x551)) && !defined (max)
+# if !defined (ACE_HAS_WINCE) && !defined (ACE_VXWORKS) && !defined (max)
# include /**/ <limits>
# endif
#endif /* ACE_LACKS_MKSTEMP */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_EXIT_HOOK ACE_OS::exit_hook_ = 0;
void *
@@ -159,7 +157,7 @@ ACE_OS::itoa_emulation (int value, char *string, int radix)
}
#endif /* !ACE_HAS_ITOA */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_ITOW)
+#if defined (ACE_LACKS_ITOW)
wchar_t *
ACE_OS::itow_emulation (int value, wchar_t *string, int radix)
{
@@ -209,7 +207,7 @@ ACE_OS::itow_emulation (int value, wchar_t *string, int radix)
return string;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_ITOW */
+#endif /* ACE_LACKS_ITOW */
void *
ACE_OS::malloc (size_t nbytes)
@@ -337,10 +335,8 @@ ACE_OS::realpath (const char *file_name,
dest = rpath;
}
-#if !defined (ACE_LACKS_SYMLINKS)
char expand_buf[PATH_MAX]; // Extra buffer needed to expand symbolic links
int nlinks = 0;
-#endif
while (*file_name)
{
@@ -626,7 +622,7 @@ ACE_OS::mkstemp_emulation (ACE_TCHAR * s)
// greatly slowing down this mkstemp() implementation. It is more
// practical to limit the search space to UTF-8 / ASCII characters
// (i.e. 127 characters).
-# if defined (ACE_HAS_WINCE) || (defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x551)) || defined (max)
+# if defined (ACE_HAS_WINCE) || defined (ACE_VXWORKS) || defined (max)
static float const MAX_VAL = static_cast<float> (127);
#else
static float const MAX_VAL =
@@ -689,5 +685,3 @@ ACE_OS::mkstemp_emulation (ACE_TCHAR * s)
return ACE_INVALID_HANDLE;
}
#endif /* ACE_LACKS_MKSTEMP */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_stdlib.h b/ace/OS_NS_stdlib.h
index 8e0747b7ffd..fd3a125790e 100644
--- a/ace/OS_NS_stdlib.h
+++ b/ace/OS_NS_stdlib.h
@@ -50,8 +50,6 @@ extern "C" {
}
#endif /* ACE_WIN32 && _MSC_VER */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
/** @name Non-standard functions
@@ -74,10 +72,8 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int atoi (const char *s);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int atoi (const wchar_t *s);
-# endif /* ACE_HAS_WCHAR */
// atop not in spec
# if defined (atop)
@@ -87,10 +83,8 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
void *atop (const char *s);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
void *atop (const wchar_t *s);
-# endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
void *bsearch (const void *key,
@@ -111,10 +105,8 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
char *getenv (const char *symbol);
-# if defined (ACE_HAS_WCHAR) && defined (ACE_WIN32)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *getenv (const wchar_t *symbol);
-# endif /* ACE_HAS_WCHAR && ACE_WIN32 */
// not in spec
extern ACE_Export
@@ -125,11 +117,9 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
char *itoa (int value, char *string, int radix);
-#if defined (ACE_HAS_WCHAR)
/// Converts an integer to a string.
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *itoa (int value, wchar_t *string, int radix);
-#endif /* ACE_HAS_WCHAR */
#if !defined (ACE_HAS_ITOA)
/// Emulated itoa - Converts an integer to a string.
@@ -137,11 +127,11 @@ namespace ACE_OS {
char *itoa_emulation (int value, char *string, int radix);
#endif /* !ACE_HAS_ITOA */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_ITOW)
+#if defined (ACE_LACKS_ITOW)
/// Emulated itow - Converts an integer to a string.
extern ACE_Export
wchar_t *itow_emulation (int value, wchar_t *string, int radix);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_ITOW */
+#endif /* ACE_LACKS_ITOW */
extern ACE_Export
void *malloc (size_t);
@@ -149,40 +139,31 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE mkstemp (char *s);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE mkstemp (wchar_t *s);
-# endif /* ACE_HAS_WCHAR */
#if defined (ACE_LACKS_MKSTEMP)
extern ACE_Export
ACE_HANDLE mkstemp_emulation (ACE_TCHAR * s);
#endif /* ACE_LACKS_MKSTEMP */
-#if !defined (ACE_LACKS_MKTEMP)
ACE_NAMESPACE_INLINE_FUNCTION
char *mktemp (char *s);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *mktemp (wchar_t *s);
-# endif /* ACE_HAS_WCHAR */
-#else
- extern ACE_Export
- ACE_TCHAR *mktemp (ACE_TCHAR *s);
-#endif /* !ACE_LACKS_MSTEMP */
ACE_NAMESPACE_INLINE_FUNCTION
int putenv (const char *string);
-#if defined (ACE_HAS_WCHAR) && defined (ACE_WIN32)
+#if defined (ACE_WIN32)
// Windows is the only platform that supports a wchar_t environment.
// Since other platforms make @a string part of the environment, it's
// a certain memory leak to copy and transform wchar_t to char for
// emulating this, so it's not attempted.
ACE_NAMESPACE_INLINE_FUNCTION
int putenv (const wchar_t *string);
-#endif /* ACE_HAS_WCHAR && ACE_WIN32 */
+#endif /* ACE_WIN32 */
ACE_NAMESPACE_INLINE_FUNCTION
void qsort (void *base,
@@ -207,10 +188,8 @@ namespace ACE_OS {
# endif /* !ACE_LACKS_REALPATH */
char *realpath (const char *file_name, char *resolved_name);
-# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *realpath (const wchar_t *file_name, wchar_t *resolved_name);
-# endif /* ACE_HAS_WCHAR */
#endif /* ACE_HAS_WINCE */
// exit_hook and set_exit_hook not in spec
@@ -234,21 +213,17 @@ namespace ACE_OS {
double strtod (const char *s, char **endptr);
#endif /* !ACE_LACKS_STRTOD */
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOD)
/// Converts a string to a double value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
double strtod (const wchar_t *s, wchar_t **endptr);
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOD */
/// Converts a string to a long value (char version).
ACE_NAMESPACE_INLINE_FUNCTION
long strtol (const char *s, char **ptr, int base);
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOL)
/// Converts a string to a long value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
long strtol (const wchar_t *s, wchar_t **ptr, int base);
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOL */
#if defined (ACE_LACKS_STRTOL)
extern ACE_Export
@@ -259,11 +234,9 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
unsigned long strtoul (const char *s, char **ptr, int base);
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOUL)
/// Converts a string to an unsigned long value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
unsigned long strtoul (const wchar_t *s, wchar_t **ptr, int base);
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOUL */
#if defined (ACE_LACKS_STRTOUL)
extern ACE_Export
@@ -275,9 +248,10 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int system (const ACE_TCHAR *s);
+
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_stdlib_base.inl"
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
diff --git a/ace/OS_NS_stdlib.inl b/ace/OS_NS_stdlib.inl
index 0762d7443f5..92ac34984cc 100644
--- a/ace/OS_NS_stdlib.inl
+++ b/ace/OS_NS_stdlib.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/config-all.h" /* Need ACE_TRACE */
@@ -8,6 +7,8 @@
#include "ace/Global_Macros.h"
#include "ace/os_include/os_errno.h"
#include "ace/os_include/os_search.h"
+#include "ace/os_include/os_limits.h"
+//#include "ace/TSS_T.h"
#if defined(ACE_WCHAR_IN_STD_NAMESPACE)
# define ACE_WCHAR_STD_NAMESPACE std
@@ -15,8 +16,6 @@
# define ACE_WCHAR_STD_NAMESPACE ACE_STD_NAMESPACE
#endif /* ACE_WCHAR_IN_STD_NAMESPACE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Doesn't need a macro since it *never* returns!
ACE_INLINE void
@@ -65,17 +64,15 @@ ACE_OS::atoi (const char *s)
ACE_OSCALL_RETURN (::atoi (s), int, -1);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::atoi (const wchar_t *s)
{
#if defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_wtoi (s), int, -1);
#else /* ACE_WIN32 */
- return ACE_OS::atoi (ACE_Wide_To_Ascii(s).char_rep());
+ return ACE_OS::atoi (ACE_TEXT_TO_CHAR_IN (s));
#endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
#if defined (atop)
# undef atop
@@ -98,7 +95,6 @@ ACE_OS::atop (const char *s)
return p;
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE void *
ACE_OS::atop (const wchar_t *s)
{
@@ -110,7 +106,6 @@ ACE_OS::atop (const wchar_t *s)
void *p = reinterpret_cast<void *> (ip);
return p;
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE void *
ACE_OS::bsearch (const void *key,
@@ -138,23 +133,39 @@ ACE_OS::getenv (const char *symbol)
#if defined (ACE_LACKS_ENV)
ACE_UNUSED_ARG (symbol);
ACE_NOTSUP_RETURN (0);
+#elif defined (ACE_PSOS)
+ ACE_UNUSED_ARG (symbol);
+ ACE_NOTSUP_RETURN (0);
#else /* ACE_PSOS */
ACE_OSCALL_RETURN (::getenv (symbol), char *, 0);
#endif /* ACE_LACKS_ENV */
}
-#if defined (ACE_HAS_WCHAR) && defined (ACE_WIN32)
ACE_INLINE wchar_t *
ACE_OS::getenv (const wchar_t *symbol)
{
#if defined (ACE_LACKS_ENV)
ACE_UNUSED_ARG (symbol);
ACE_NOTSUP_RETURN (0);
-#else
+#elif defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_wgetenv (symbol), wchar_t *, 0);
+#else
+// Including ACE_TSS_T.h causes error!
+/*
+ wchar_t* init = 0;
+ static ACE_TSS< wchar_t* > wvalue (&init);
+ ACE::String_Conversion::Allocator_malloc<wchar_t>().free(*wvalue);
+ *wvalue.ts_object() = ACE_TEXT_TO_MALLOC_WCHAR_OUT (
+ ACE_OS::getenv (ACE_TEXT_TO_CHAR_IN (symbol)));
+ return *wvalue;
+*/
+ static wchar_t* wvalue = 0;
+ ACE::String_Conversion::Allocator_malloc<wchar_t>().free(wvalue);
+ wvalue = ACE_TEXT_TO_MALLOC_WCHAR_OUT (
+ ACE_OS::getenv (ACE_TEXT_TO_CHAR_IN (symbol)));
+ return wvalue;
#endif /* ACE_LACKS_ENV */
}
-#endif /* ACE_HAS_WCHAR && ACE_WIN32 */
ACE_INLINE char *
ACE_OS::itoa (int value, char *string, int radix)
@@ -168,7 +179,6 @@ ACE_OS::itoa (int value, char *string, int radix)
#endif /* !ACE_HAS_ITOA */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::itoa (int value, wchar_t *string, int radix)
{
@@ -178,7 +188,6 @@ ACE_OS::itoa (int value, wchar_t *string, int radix)
return ::_itow (value, string, radix);
#endif /* ACE_LACKS_ITOW */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE ACE_HANDLE
ACE_OS::mkstemp (char *s)
@@ -186,54 +195,56 @@ ACE_OS::mkstemp (char *s)
#if !defined (ACE_LACKS_MKSTEMP)
return ::mkstemp (s);
#else
- return ACE_OS::mkstemp_emulation (ACE_TEXT_CHAR_TO_TCHAR (s));
+ return ACE_OS::mkstemp_emulation (ACE_TEXT_TO_TCHAR_INOUT (s) );
#endif /* !ACE_LACKS_MKSTEMP */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE ACE_HANDLE
ACE_OS::mkstemp (wchar_t *s)
{
+ s[0] = 0;
# if !defined (ACE_LACKS_MKSTEMP)
- return ::mkstemp (ACE_TEXT_WCHAR_TO_TCHAR (ACE_TEXT_ALWAYS_CHAR (s)));
+ ACE::String_Conversion::Convert_InOut<char, wchar_t> convert( s, PATH_MAX );
+ return ::mkstemp (convert.c_str());
# else
- return ACE_OS::mkstemp_emulation (ACE_TEXT_WCHAR_TO_TCHAR (s));
+ ACE::String_Conversion::Convert_InOut<ACE_TCHAR, ACE_ANTI_TCHAR> convert( s, PATH_MAX );
+ return ACE_OS::mkstemp_emulation (convert.c_str());
# endif /* !ACE_LACKS_MKSTEMP */
}
-#endif /* ACE_HAS_WCHAR */
-#if !defined (ACE_LACKS_MKTEMP)
+
ACE_INLINE char *
ACE_OS::mktemp (char *s)
{
# if defined (ACE_WIN32)
return ::_mktemp (s);
-# else /* ACE_WIN32 */
+# elif !defined (ACE_LACKS_MKTEMP)
return ::mktemp (s);
-# endif /* ACE_WIN32 */
+# else
+ ACE_UNUSED_ARG( s );
+ ACE_NOTSUP_RETURN (0);
+# endif
}
-# if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::mktemp (wchar_t *s)
{
-# if defined (ACE_WIN32)
+#if defined (ACE_LACKS_MKTEMP)
+ ACE_UNUSED_ARG( s );
+ ACE_NOTSUP_RETURN (0);
+#elif defined (ACE_WIN32)
return ::_wmktemp (s);
-# else
+#else
// For narrow-char filesystems, we must convert the wide-char input to
// a narrow-char string for mktemp(), then convert the name back to
// wide-char for the caller.
- ACE_Wide_To_Ascii narrow_s (s);
- if (::mktemp (narrow_s.char_rep ()) == 0)
+ s[0] = 0;
+ ACE::String_Conversion::Convert_InOut<char, wchar_t> convert( s, PATH_MAX );
+ if (::mktemp (convert.c_str()) == 0)
return 0;
- ACE_Ascii_To_Wide wide_s (narrow_s.char_rep ());
- ACE_OS::strcpy (s, wide_s.wchar_rep ());
return s;
-# endif
+#endif
}
-# endif /* ACE_HAS_WCHAR */
-
-#endif /* !ACE_LACKS_MKTEMP */
#if defined(INTEGRITY)
extern "C" {
@@ -249,7 +260,7 @@ ACE_OS::putenv (const char *string)
// WinCE and pSOS don't have the concept of environment variables.
ACE_UNUSED_ARG (string);
ACE_NOTSUP_RETURN (-1);
-#elif defined (ACE_LACKS_ENV) || defined (ACE_LACKS_PUTENV)
+#elif defined (ACE_LACKS_ENV)
ACE_UNUSED_ARG (string);
ACE_NOTSUP_RETURN (0);
#else /* ! ACE_HAS_WINCE && ! ACE_PSOS */
@@ -257,7 +268,7 @@ ACE_OS::putenv (const char *string)
#endif /* ACE_HAS_WINCE */
}
-#if defined (ACE_HAS_WCHAR) && defined (ACE_WIN32)
+#if defined (ACE_WIN32)
ACE_INLINE int
ACE_OS::putenv (const wchar_t *string)
{
@@ -270,7 +281,7 @@ ACE_OS::putenv (const wchar_t *string)
ACE_OSCALL_RETURN (::_wputenv (string), int, -1);
#endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR && ACE_WIN32 */
+#endif /* ACE_WIN32 */
ACE_INLINE void
ACE_OS::qsort (void *base,
@@ -357,7 +368,6 @@ ACE_OS::realpath (const char *file_name,
}
# endif /* !ACE_LACKS_REALPATH */
-# if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::realpath (const wchar_t *file_name,
wchar_t *resolved_name)
@@ -365,18 +375,15 @@ ACE_OS::realpath (const wchar_t *file_name,
# if defined (ACE_WIN32)
return ::_wfullpath (resolved_name, file_name, PATH_MAX);
# else /* ACE_WIN32 */
- ACE_Wide_To_Ascii n_file_name (file_name);
char n_resolved[PATH_MAX];
- if (0 != ACE_OS::realpath (n_file_name.char_rep (), n_resolved))
+ if (0 != ACE_OS::realpath ( ACE_TEXT_TO_CHAR_IN (file_name), n_resolved))
{
- ACE_Ascii_To_Wide w_resolved (n_resolved);
- ACE_OS::strcpy (resolved_name, w_resolved.wchar_rep ());
+ ACE_OS::string_copy (resolved_name, n_resolved, PATH_MAX);
return resolved_name;
}
return 0;
# endif /* ! ACE_WIN32 */
}
-# endif /* ACE_HAS_WCHAR */
#endif /* ACE_HAS_WINCE */
ACE_INLINE ACE_EXIT_HOOK
@@ -419,8 +426,8 @@ ACE_OS::strenvdup (const ACE_TCHAR *str)
# else
// Use char * for environment on non-Windows.
char *temp = 0;
- if ((temp = ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (&str[1]))) != 0)
- return ACE_OS::strdup (ACE_TEXT_CHAR_TO_TCHAR (temp));
+ if ((temp = ACE_OS::getenv (ACE_TEXT_TO_CHAR_IN(&str[1]))) != 0)
+ return ACE_OS::strdup (ACE_TEXT_TO_TCHAR_IN (temp));
# endif /* ACE_WIN32 */
return ACE_OS::strdup (str);
}
@@ -437,13 +444,16 @@ ACE_OS::strtod (const char *s, char **endptr)
}
#endif /* !ACE_LACKS_STRTOD */
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOD)
ACE_INLINE double
ACE_OS::strtod (const wchar_t *s, wchar_t **endptr)
{
- return ACE_WCHAR_STD_NAMESPACE::wcstod (s, endptr);
+ #if !defined (ACE_LACKS_WCSTOD)
+ return ACE_WCHAR_STD_NAMESPACE::wcstod (s, endptr);
+ #else
+ ACE_UNUSED_ARG( s );
+ ACE_NOTSUP_RETURN (0);
+ #endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOD */
ACE_INLINE long
ACE_OS::strtol (const char *s, char **ptr, int base)
@@ -455,13 +465,18 @@ ACE_OS::strtol (const char *s, char **ptr, int base)
#endif /* ACE_LACKS_STRTOL */
}
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOL)
ACE_INLINE long
ACE_OS::strtol (const wchar_t *s, wchar_t **ptr, int base)
{
+#if !defined (ACE_LACKS_WCSTOL)
return ACE_WCHAR_STD_NAMESPACE::wcstol (s, ptr, base);
+#else
+ ACE_UNUSED_ARG( s );
+ ACE_UNUSED_ARG( ptr );
+ ACE_UNUSED_ARG( base );
+ ACE_NOTSUP_RETURN (0);
+#endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOL */
ACE_INLINE unsigned long
ACE_OS::strtoul (const char *s, char **ptr, int base)
@@ -473,19 +488,24 @@ ACE_OS::strtoul (const char *s, char **ptr, int base)
#endif /* ACE_LACKS_STRTOUL */
}
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOUL)
ACE_INLINE unsigned long
ACE_OS::strtoul (const wchar_t *s, wchar_t **ptr, int base)
{
+#if !defined (ACE_LACKS_WCSTOUL)
return ACE_WCHAR_STD_NAMESPACE::wcstoul (s, ptr, base);
+#else
+ ACE_UNUSED_ARG( s );
+ ACE_UNUSED_ARG( ptr );
+ ACE_UNUSED_ARG( base );
+ ACE_NOTSUP_RETURN (0);
+#endif
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOUL */
ACE_INLINE int
ACE_OS::system (const ACE_TCHAR *s)
{
// ACE_OS_TRACE ("ACE_OS::system");
-#if defined (ACE_LACKS_SYSTEM)
+#if defined (CHORUS) || defined (ACE_HAS_WINCE) || defined(ACE_PSOS)
ACE_UNUSED_ARG (s);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
@@ -493,8 +513,6 @@ ACE_OS::system (const ACE_TCHAR *s)
#elif defined(ACE_TANDEM_T1248_PTHREADS)
ACE_OSCALL_RETURN (::spt_system (s), int, -1);
#else
- ACE_OSCALL_RETURN (::system (ACE_TEXT_ALWAYS_CHAR (s)), int, -1);
-#endif /* ACE_LACKS_SYSTEM */
+ ACE_OSCALL_RETURN (::system (ACE_TEXT_TO_CHAR_IN (s)), int, -1);
+#endif /* !CHORUS */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_stdlib_base.cpp b/ace/OS_NS_stdlib_base.cpp
new file mode 100644
index 00000000000..a0c8a6de8a0
--- /dev/null
+++ b/ace/OS_NS_stdlib_base.cpp
@@ -0,0 +1,12 @@
+/* -*- C++ -*- */
+// $Id$
+
+// We must include this before "ace/OS_NS_stdlib_base.h", so that
+// "ace/OS_NS_stdlib_base.h" gets the ACE_LACKS* #defines
+#include "ace/config-all.h"
+
+#include "ace/OS_NS_stdlib_base.h"
+
+namespace ACE_OS
+{
+}
diff --git a/ace/OS_NS_stdlib_base.h b/ace/OS_NS_stdlib_base.h
new file mode 100644
index 00000000000..85cdefe0b17
--- /dev/null
+++ b/ace/OS_NS_stdlib_base.h
@@ -0,0 +1,40 @@
+/* -*- C++ -*- */
+// $Id$
+#ifndef OS_NS_STDLIB_BASE_H
+#define OS_NS_STDLIB_BASE_H
+
+#include <stdlib.h>
+// Standard library includes for wide functions declared in ace_wchar.h
+// Do not include any ACE header files because this file is included from
+// ace_wchar.h which is included at the config.h level.
+
+namespace ACE_OS
+{
+
+/// Finds the contents of the strings (emulated version).
+template <typename DCHAR, typename SCHAR> inline
+size_t string_copy (DCHAR* s, const SCHAR* t, size_t len);
+
+/// Finds the contents of the strings (wide to char version).
+#if !defined(ACE_LACKS_WCSTOMBS)
+template <> inline
+size_t string_copy (char* s, const wchar_t* t, size_t len);
+#endif
+
+/// Finds the contents of the strings (char to wide version).
+#if !defined(ACE_LACKS_MBSTOWCS)
+template <> inline
+size_t string_copy (wchar_t* s, const char* t, size_t len);
+#endif
+
+inline size_t mbstowcs (wchar_t* dest, const char* src, size_t size)
+ { return ACE_OS::string_copy( dest, src, size ); }
+
+inline size_t wcstombs (char* dest, const wchar_t* src, size_t size)
+ { return ACE_OS::string_copy( dest, src, size ); }
+
+}
+
+#include "ace/OS_NS_stdlib_base.inl"
+
+#endif
diff --git a/ace/OS_NS_stdlib_base.inl b/ace/OS_NS_stdlib_base.inl
new file mode 100644
index 00000000000..5ee64c03421
--- /dev/null
+++ b/ace/OS_NS_stdlib_base.inl
@@ -0,0 +1,90 @@
+/* -*- C++ -*- */
+// $Id$
+
+// Standard library includes for wide functions declared in ace_wchar.h
+
+#ifndef OS_NS_STDLIB_BASE_INL
+#define OS_NS_STDLIB_BASE_INL
+
+#include "OS_NS_string_base.h"
+
+namespace ACE_OS
+{
+
+template <typename DCHAR, typename SCHAR> inline
+size_t string_copy (DCHAR* dest, const SCHAR* src, size_t len)
+{
+ // We must have a source and a valid length with a dest
+ if ( src == 0 || ( dest != 0 && static_cast<signed int>(len) < 0 ) )
+ {
+ return -1;
+ }
+ // If we perform a copy
+ if ( dest != 0 )
+ {
+ if (len != 0)
+ {
+ DCHAR* d = dest;
+ const SCHAR* s = src;
+ do
+ {
+ if ((*d++ = static_cast<DCHAR>(*s++)) == 0)
+ {
+ // NUL pad the remaining n-1 bytes
+ while (--len != 0)
+ *d++ = 0;
+ break;
+ }
+ } while (--len != 0);
+ return static_cast<size_t>( d - dest );
+ }
+ return 0;
+ }
+ // Otherwise just calc length
+ return ACE_OS::strlen( src );
+}
+
+#if !defined(ACE_LACKS_WCSTOMBS)
+template <> inline
+size_t string_copy (char* s, const wchar_t* t, size_t len)
+{
+#if defined(ACE_WIN32)
+ // When VC6 support is dropped use wcstombs
+ if ( t == 0 )
+ return -1;
+ int size = ::WideCharToMultiByte(
+ CP_OEMCP, 0,
+ t, -1,
+ s, (s ? len : 0),
+ 0, 0 );
+ // wcstombs returns len NOT size when dest == 0
+ return ( s == 0 ? size - 1 : size );
+#else
+ return ::wcstombs( s, t, len );
+#endif
+}
+#endif /* !ACE_LACKS_WCSTOMBS */
+
+#if !defined(ACE_LACKS_MBSTOWCS)
+template <> inline
+size_t string_copy (wchar_t* s, const char* t, size_t len)
+{
+#if defined(ACE_WIN32)
+ // When VC6 support is dropped use mbstowcs
+ if ( t == 0 )
+ return -1;
+ int size = ::MultiByteToWideChar(
+ CP_OEMCP, 0,
+ t, -1,
+ s, (s ? len : 0) );
+ // mbstowcs returns len NOT size when dest == 0
+ return ( s == 0 ? size - 1 : size );
+#else
+ return ::mbstowcs( s, t, len );
+#endif
+}
+#endif
+
+}
+
+#endif
diff --git a/ace/OS_NS_string.cpp b/ace/OS_NS_string.cpp
index a5c1a822774..15fa83612f1 100644
--- a/ace/OS_NS_string.cpp
+++ b/ace/OS_NS_string.cpp
@@ -12,16 +12,12 @@ ACE_RCSID (ace,
# include "ace/OS_NS_string.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-#if defined (ACE_HAS_WCHAR)
# include "ace/OS_NS_stdlib.h"
-#endif /* ACE_HAS_WCHAR */
#if !defined (ACE_LACKS_STRERROR)
# include "ace/OS_NS_stdio.h"
#endif /* ACE_LACKS_STRERROR */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined (ACE_HAS_MEMCHR)
const void *
ACE_OS::memchr_emulation (const void *s, int c, size_t len)
@@ -39,25 +35,24 @@ ACE_OS::memchr_emulation (const void *s, int c, size_t len)
}
#endif /*ACE_HAS_MEMCHR*/
-#if (defined (ACE_LACKS_STRDUP) && !defined (ACE_STRDUP_EQUIVALENT)) \
- || defined (ACE_HAS_STRDUP_EMULATION)
char *
-ACE_OS::strdup_emulation (const char *s)
+ACE_OS::strdup (const char *s)
{
+#if defined (ACE_HAS_STRDUP_EMULATION)
char *t = (char *) ACE_OS::malloc (ACE_OS::strlen (s) + 1);
if (t == 0)
return 0;
return ACE_OS::strcpy (t, s);
+#else
+ return ACE_STD_NAMESPACE::strdup (s);
+#endif /* ACE_HAS_STRDUP_EMULATION */
}
-#endif /* (ACE_LACKS_STRDUP && !ACE_STRDUP_EQUIVALENT) || ... */
-#if defined (ACE_HAS_WCHAR)
-#if (defined (ACE_LACKS_WCSDUP) && !defined (ACE_WCSDUP_EQUIVALENT)) \
- || defined (ACE_HAS_WCSDUP_EMULATION)
wchar_t *
-ACE_OS::strdup_emulation (const wchar_t *s)
+ACE_OS::strdup (const wchar_t *s)
{
+# if defined (ACE_LACKS_WCSDUP)
wchar_t *buffer =
(wchar_t *) ACE_OS::malloc ((ACE_OS::strlen (s) + 1)
* sizeof (wchar_t));
@@ -65,9 +60,16 @@ ACE_OS::strdup_emulation (const wchar_t *s)
return 0;
return ACE_OS::strcpy (buffer, s);
+# elif defined (ACE_WCSDUP_EQUIVALENT)
+ return ACE_WCSDUP_EQUIVALENT (s);
+# else /* ACE_LACKS_WCSDUP */
+# if defined (__MINGW32__)
+ return ::wcsdup (const_cast<wchar_t*> (s));
+# else /* __MINGW32__ */
+ return ::wcsdup (s);
+# endif /* __MINGW32__ */
+# endif /* ACE_LACKS_WCSDUP */
}
-#endif /* (ACE_LACKS_WCSDUP && !ACE_WCSDUP_EQUIVALENT) || ... */
-#endif /* ACE_HAS_WCHAR */
char *
ACE_OS::strecpy (char *s, const char *t)
@@ -81,7 +83,6 @@ ACE_OS::strecpy (char *s, const char *t)
return dscan;
}
-#if defined (ACE_HAS_WCHAR)
wchar_t *
ACE_OS::strecpy (wchar_t *s, const wchar_t *t)
{
@@ -93,7 +94,6 @@ ACE_OS::strecpy (wchar_t *s, const wchar_t *t)
return dscan;
}
-#endif /* ACE_HAS_WCHAR */
char *
ACE_OS::strerror (int errnum)
@@ -103,9 +103,7 @@ ACE_OS::strerror (int errnum)
if (ACE::is_sock_error (errnum))
{
const ACE_TCHAR *errortext = ACE::sock_error (errnum);
- ACE_OS::strncpy (ret_errortext,
- ACE_TEXT_ALWAYS_CHAR (errortext),
- sizeof (ret_errortext));
+ ACE_OS::string_copy (ret_errortext, errortext, sizeof (ret_errortext));
return ret_errortext;
}
#if defined (ACE_LACKS_STRERROR)
@@ -120,7 +118,7 @@ ACE_OS::strerror (int errnum)
ACE_Errno_Guard g (errno);
errno = 0;
char *errmsg = ::strerror (errnum);
- if (errno == EINVAL || errmsg == 0 || errmsg[0] == 0)
+ if (errno == EINVAL || ACE_OS::strlen (errmsg) == 0)
{
ACE_OS::sprintf (ret_errortext, "Unknown error %d", errnum);
errmsg = ret_errortext;
@@ -151,11 +149,11 @@ ACE_OS::strnchr (const char *s, int c, size_t len)
return 0;
}
-const ACE_WCHAR_T *
-ACE_OS::strnchr (const ACE_WCHAR_T *s, ACE_WCHAR_T c, size_t len)
+const wchar_t *
+ACE_OS::strnchr (const wchar_t *s, wint_t c, size_t len)
{
for (size_t i = 0; i < len; ++i)
- if (s[i] == c)
+ if (s[i] == static_cast<wchar_t> (c))
return s + i;
return 0;
@@ -184,8 +182,8 @@ ACE_OS::strnstr (const char *s1, const char *s2, size_t len2)
return 0;
}
-const ACE_WCHAR_T *
-ACE_OS::strnstr (const ACE_WCHAR_T *s1, const ACE_WCHAR_T *s2, size_t len2)
+const wchar_t *
+ACE_OS::strnstr (const wchar_t *s1, const wchar_t *s2, size_t len2)
{
// Substring length
const size_t len1 = ACE_OS::strlen (s1);
@@ -199,7 +197,7 @@ ACE_OS::strnstr (const ACE_WCHAR_T *s1, const ACE_WCHAR_T *s2, size_t len2)
for (size_t i = 0; i <= len; i++)
{
- if (ACE_OS::memcmp (s1 + i, s2, len2 * sizeof (ACE_WCHAR_T)) == 0)
+ if (ACE_OS::memcmp (s1 + i, s2, len2 * sizeof (wchar_t)) == 0)
// Found a match! Return the index.
return s1 + i;
}
@@ -311,11 +309,11 @@ ACE_OS::strsncpy (char *dst, const char *src, size_t maxlen)
return dst;
}
-ACE_WCHAR_T *
-ACE_OS::strsncpy (ACE_WCHAR_T *dst, const ACE_WCHAR_T *src, size_t maxlen)
+wchar_t *
+ACE_OS::strsncpy (wchar_t *dst, const wchar_t *src, size_t maxlen)
{
- register ACE_WCHAR_T *rdst = dst;
- register const ACE_WCHAR_T *rsrc = src;
+ register wchar_t *rdst = dst;
+ register const wchar_t *rsrc = src;
register size_t rmaxlen = maxlen;
if (rmaxlen > 0)
@@ -377,11 +375,11 @@ ACE_OS::strtok_r_emulation (char *s, const char *tokens, char **lasts)
}
#endif /* !ACE_HAS_REENTRANT_FUNCTIONS */
-# if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSTOK)
+# if defined (ACE_LACKS_WCSTOK)
wchar_t*
-ACE_OS::strtok_r_emulation (ACE_WCHAR_T *s,
- const ACE_WCHAR_T *tokens,
- ACE_WCHAR_T **lasts)
+ACE_OS::strtok_r_emulation (wchar_t *s,
+ const wchar_t *tokens,
+ wchar_t **lasts)
{
if (s == 0)
s = *lasts;
@@ -400,6 +398,4 @@ ACE_OS::strtok_r_emulation (ACE_WCHAR_T *s,
*lasts = s + l_sub;
return s ;
}
-# endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSTOK */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+# endif /* ACE_LACKS_WCSTOK */
diff --git a/ace/OS_NS_string.h b/ace/OS_NS_string.h
index 5e4da3db673..f6a3945d271 100644
--- a/ace/OS_NS_string.h
+++ b/ace/OS_NS_string.h
@@ -15,7 +15,7 @@
//=============================================================================
#ifndef ACE_OS_NS_STRING_H
-#define ACE_OS_NS_STRING_H
+# define ACE_OS_NS_STRING_H
# include /**/ "ace/pre.h"
@@ -24,9 +24,6 @@
# if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
# endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Basic_Types.h" // to get ACE_WCHAR_T,
- // should be in os_stddef.h or not used like this.
#include "ace/ACE_export.h"
#if defined (ACE_EXPORT_MACRO)
@@ -34,8 +31,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
/** @name Functions from <cstring>
@@ -75,7 +70,6 @@ namespace ACE_OS {
* On certain platforms this results in better performance.
* This is determined and set via autoconf.
*/
- extern ACE_Export
void *fast_memcpy (void *t, const void *s, size_t len);
#endif
@@ -91,97 +85,63 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
char *strcat (char *s, const char *t);
-#if defined (ACE_HAS_WCHAR)
/// Appends a string to another string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *strcat (wchar_t *s, const wchar_t *t);
-#endif /* ACE_HAS_WCHAR */
/// Finds the first occurance of a character in a string (const char
/// version).
ACE_NAMESPACE_INLINE_FUNCTION
const char *strchr (const char *s, int c);
-#if defined (ACE_HAS_WCHAR)
/// Finds the first occurance of a character in a string (const wchar_t
/// version).
ACE_NAMESPACE_INLINE_FUNCTION
- const wchar_t *strchr (const wchar_t *s, wchar_t c);
-#endif /* ACE_HAS_WCHAR */
+ const wchar_t *strchr (const wchar_t *s, wint_t c);
/// Finds the first occurance of a character in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strchr (char *s, int c);
-#if defined (ACE_HAS_WCHAR)
/// Finds the first occurance of a character in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- wchar_t *strchr (wchar_t *s, wchar_t c);
-#endif /* ACE_HAS_WCHAR */
-
- /// Compares two strings (char version).
- ACE_NAMESPACE_INLINE_FUNCTION
- int strcmp (const char *s, const char *t);
-
- /// Compares two strings (wchar_t version).
- ACE_NAMESPACE_INLINE_FUNCTION
- int strcmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t);
+ wchar_t *strchr (wchar_t *s, wint_t c);
/// Copies a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strcpy (char *s, const char *t);
-#if defined (ACE_HAS_WCHAR)
/// Copies a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *strcpy (wchar_t *s, const wchar_t *t);
-#endif /* ACE_HAS_WCHAR */
/// Searches for the first substring without any of the specified
/// characters and returns the size of the substring (char version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t strcspn (const char *s, const char *reject);
-#if defined (ACE_HAS_WCHAR)
/// Searches for the first substring without any of the specified
/// characters and returns the size of the substring (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t strcspn (const wchar_t *s, const wchar_t *reject);
-#endif /* ACE_HAS_WCHAR */
/// Returns a malloced duplicated string (char version).
- ACE_NAMESPACE_INLINE_FUNCTION
- char *strdup (const char *s);
-
-#if (defined (ACE_LACKS_STRDUP) && !defined(ACE_STRDUP_EQUIVALENT)) \
- || defined (ACE_HAS_STRDUP_EMULATION)
extern ACE_Export
- char *strdup_emulation (const char *s);
-#endif
+ char *strdup (const char *s);
-#if defined (ACE_HAS_WCHAR)
/// Returns a malloced duplicated string (wchar_t version).
- ACE_NAMESPACE_INLINE_FUNCTION
- wchar_t *strdup (const wchar_t *s);
-
-#if (defined (ACE_LACKS_WCSDUP) && !defined(ACE_WCSDUP_EQUIVALENT)) \
- || defined (ACE_HAS_WCSDUP_EMULATION)
extern ACE_Export
- wchar_t *strdup_emulation (const wchar_t *s);
-#endif
-#endif /* ACE_HAS_WCHAR */
+ wchar_t *strdup (const wchar_t *s);
/// Copies a string, but returns a pointer to the end of the
/// copied region (char version).
extern ACE_Export
char *strecpy (char *des, const char *src);
-#if defined (ACE_HAS_WCHAR)
/// Copies a string, but returns a pointer to the end of the
/// copied region (wchar_t version).
extern ACE_Export
wchar_t *strecpy (wchar_t *s, const wchar_t *t);
-#endif /* ACE_HAS_WCHAR */
/*
** Returns a system error message. If the supplied errnum is out of range,
@@ -197,39 +157,31 @@ namespace ACE_OS {
char *strerror_emulation (int errnum);
#endif /* ACE_LACKS_STRERROR */
- /// Finds the length of a string (char version).
- ACE_NAMESPACE_INLINE_FUNCTION
- size_t strlen (const char *s);
-
- /// Finds the length of a string (ACE_WCHAR_T version).
- ACE_NAMESPACE_INLINE_FUNCTION
- size_t strlen (const ACE_WCHAR_T *s);
-
/// Appends part of a string to another string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strncat (char *s, const char *t, size_t len);
/// Appends part of a string to another string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- ACE_WCHAR_T *strncat (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len);
+ wchar_t *strncat (wchar_t *s, const wchar_t *t, size_t len);
/// Finds the first occurance of a character in an array (const char
/// version).
extern ACE_Export
const char *strnchr (const char *s, int c, size_t len);
- /// Finds the first occurance of a character in an array (const ACE_WCHAR_T
+ /// Finds the first occurance of a character in an array (const wchar_t
/// version).
extern ACE_Export
- const ACE_WCHAR_T *strnchr (const ACE_WCHAR_T *s, ACE_WCHAR_T c, size_t len);
+ const wchar_t *strnchr (const wchar_t *s, wint_t c, size_t len);
/// Finds the first occurance of a character in an array (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strnchr (char *s, int c, size_t len);
- /// Finds the first occurance of a character in an array (ACE_WCHAR_T version).
+ /// Finds the first occurance of a character in an array (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- ACE_WCHAR_T *strnchr (ACE_WCHAR_T *s, ACE_WCHAR_T c, size_t len);
+ wchar_t *strnchr (wchar_t *s, wint_t c, size_t len);
/// Compares two arrays (char version).
ACE_NAMESPACE_INLINE_FUNCTION
@@ -237,15 +189,7 @@ namespace ACE_OS {
/// Compares two arrays (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- int strncmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len);
-
- /// Copies an array (char version)
- ACE_NAMESPACE_INLINE_FUNCTION
- char *strncpy (char *s, const char *t, size_t len);
-
- /// Copies an array (ACE_WCHAR_T version)
- ACE_NAMESPACE_INLINE_FUNCTION
- ACE_WCHAR_T *strncpy (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len);
+ int strncmp (const wchar_t *s, const wchar_t *t, size_t len);
/// Finds the length of a limited-length string (char version).
/**
@@ -259,7 +203,7 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
size_t strnlen (const char *s, size_t maxlen);
- /// Finds the length of a limited-length string (ACE_WCHAR_T version).
+ /// Finds the length of a limited-length string (wchar_t version).
/**
* @param s The character string to find the length of.
* @param maxlen The maximum number of characters that will be
@@ -269,7 +213,7 @@ namespace ACE_OS {
* is located, else @arg maxlen.
*/
ACE_NAMESPACE_INLINE_FUNCTION
- size_t strnlen (const ACE_WCHAR_T *s, size_t maxlen);
+ size_t strnlen (const wchar_t *s, size_t maxlen);
/// Finds the first occurance of a substring in an array (const char
/// version).
@@ -279,8 +223,8 @@ namespace ACE_OS {
/// Finds the first occurance of a substring in an array (const wchar_t
/// version).
extern ACE_Export
- const ACE_WCHAR_T *strnstr (const ACE_WCHAR_T *s,
- const ACE_WCHAR_T *t,
+ const wchar_t *strnstr (const wchar_t *s,
+ const wchar_t *t,
size_t len);
/// Finds the first occurance of a substring in an array (char version).
@@ -289,27 +233,23 @@ namespace ACE_OS {
/// Finds the first occurance of a substring in an array (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- ACE_WCHAR_T *strnstr (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len);
+ wchar_t *strnstr (wchar_t *s, const wchar_t *t, size_t len);
/// Searches for characters in a string (const char version).
ACE_NAMESPACE_INLINE_FUNCTION
const char *strpbrk (const char *s1, const char *s2);
-#if defined (ACE_HAS_WCHAR)
/// Searches for characters in a string (const wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t *strpbrk (const wchar_t *s1, const wchar_t *s2);
-#endif /* ACE_HAS_WCHAR */
/// Searches for characters in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strpbrk (char *s1, const char *s2);
-#if defined (ACE_HAS_WCHAR)
/// Searches for characters in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *strpbrk (wchar_t *s1, const wchar_t *s2);
-#endif /* ACE_HAS_WCHAR */
#if defined (ACE_LACKS_STRPBRK)
/// Emulated strpbrk - Searches for characters in a string.
@@ -323,22 +263,18 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
const char *strrchr (const char *s, int c);
-#if defined (ACE_HAS_WCHAR)
/// Finds the last occurance of a character in a string (const wchar_t
/// version).
ACE_NAMESPACE_INLINE_FUNCTION
- const wchar_t *strrchr (const wchar_t *s, wchar_t c);
-#endif /* ACE_HAS_WCHAR */
+ const wchar_t *strrchr (const wchar_t *s, wint_t c);
/// Finds the last occurance of a character in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strrchr (char *s, int c);
-#if defined (ACE_HAS_WCHAR)
/// Finds the last occurance of a character in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- wchar_t *strrchr (wchar_t *s, wchar_t c);
-#endif /* ACE_HAS_WCHAR */
+ wchar_t *strrchr (wchar_t *s, wint_t c);
#if defined (ACE_LACKS_STRRCHR)
/// Emulated strrchr (char version) - Finds the last occurance of a
@@ -390,8 +326,8 @@ namespace ACE_OS {
* strncpy() is needed.
*/
extern ACE_Export
- ACE_WCHAR_T *strsncpy (ACE_WCHAR_T *dst,
- const ACE_WCHAR_T *src,
+ wchar_t *strsncpy (wchar_t *dst,
+ const wchar_t *src,
size_t maxlen);
/// Searches for the first substring containing only the specified
@@ -399,12 +335,10 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
size_t strspn (const char *s1, const char *s2);
-#if defined (ACE_HAS_WCHAR)
/// Searches for the first substring containing only the specified
/// characters and returns the size of the substring (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t strspn (const wchar_t *s1, const wchar_t *s2);
-#endif /* ACE_HAS_WCHAR */
#if defined (ACE_LACKS_STRSPN)
/// Emulated wcsspn.
@@ -418,32 +352,26 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
const char *strstr (const char *s, const char *t);
-#if defined (ACE_HAS_WCHAR)
/// Finds the first occurance of a substring in a string (const wchar_t
/// version).
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t *strstr (const wchar_t *s, const wchar_t *t);
-#endif /* ACE_HAS_WCHAR */
/// Finds the first occurance of a substring in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strstr (char *s, const char *t);
-#if defined (ACE_HAS_WCHAR)
/// Finds the first occurance of a substring in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *strstr (wchar_t *s, const wchar_t *t);
-#endif /* ACE_HAS_WCHAR */
/// Finds the next token in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
char *strtok (char *s, const char *tokens);
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOK)
/// Finds the next token in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *strtok (wchar_t *s, const wchar_t *tokens);
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOK */
//@}
@@ -451,11 +379,9 @@ namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
char *strtok_r (char *s, const char *tokens, char **lasts);
-#if defined (ACE_HAS_WCHAR)
/// Finds the next token in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
- wchar_t *strtok_r (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts);
-#endif // ACE_HAS_WCHAR
+ wchar_t *strtok_r (wchar_t *s, const wchar_t *tokens, wchar_t **lasts);
#if !defined (ACE_HAS_REENTRANT_FUNCTIONS)
/// Emulated strtok_r.
@@ -463,15 +389,15 @@ namespace ACE_OS {
char *strtok_r_emulation (char *s, const char *tokens, char **lasts);
#endif /* !ACE_HAS_REENTRANT_FUNCTIONS */
-# if defined (ACE_HAS_WCHAR) && defined(ACE_LACKS_WCSTOK)
+# if defined(ACE_LACKS_WCSTOK)
/// Emulated strtok_r (wchar_t version).
extern ACE_Export
- wchar_t *strtok_r_emulation (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts);
-# endif // ACE_HAS_WCHAR && ACE_LACKS_WCSTOK
+ wchar_t *strtok_r_emulation (wchar_t *s, const wchar_t *tokens, wchar_t **lasts);
+# endif // ACE_LACKS_WCSTOK
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_string_base.h"
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
diff --git a/ace/OS_NS_string.inl b/ace/OS_NS_string.inl
index 38e42378157..38d465820e4 100644
--- a/ace/OS_NS_string.inl
+++ b/ace/OS_NS_string.inl
@@ -7,8 +7,6 @@
#include "ace/OS_NS_wchar.h"
#include "ace/os_include/os_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const void *
ACE_OS::memchr (const void *s, int c, size_t len)
{
@@ -61,7 +59,6 @@ ACE_OS::strcat (char *s, const char *t)
return ::strcat (s, t);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::strcat (wchar_t *s, const wchar_t *t)
{
@@ -71,7 +68,6 @@ ACE_OS::strcat (wchar_t *s, const wchar_t *t)
return ::wcscat (s, t);
# endif /* ACE_LACKS_WCSCAT */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE const char *
ACE_OS::strchr (const char *s, int c)
@@ -83,9 +79,8 @@ ACE_OS::strchr (const char *s, int c)
#endif /* ACE_LACKS_STRCHR */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE const wchar_t *
-ACE_OS::strchr (const wchar_t *s, wchar_t c)
+ACE_OS::strchr (const wchar_t *s, wint_t c)
{
# if defined (ACE_LACKS_WCSCHR)
return ACE_OS::wcschr_emulation (s, c);
@@ -93,7 +88,6 @@ ACE_OS::strchr (const wchar_t *s, wchar_t c)
return ::wcschr (s, c);
# endif /* ACE_LACKS_WCSCHR */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE char *
ACE_OS::strchr (char *s, int c)
@@ -101,31 +95,13 @@ ACE_OS::strchr (char *s, int c)
return ::strchr (s, c);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
-ACE_OS::strchr (wchar_t *s, wchar_t c)
+ACE_OS::strchr (wchar_t *s, wint_t c)
{
return
- const_cast<wchar_t *> (ACE_OS::strchr (const_cast<const wchar_t *> (s),
+ const_cast<wchar_t *> (ACE_OS::strchr (static_cast<const wchar_t *> (s),
c));
}
-#endif /* ACE_HAS_WCHAR */
-
-ACE_INLINE int
-ACE_OS::strcmp (const char *s, const char *t)
-{
- return ::strcmp (s, t);
-}
-
-ACE_INLINE int
-ACE_OS::strcmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t)
-{
-# if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSCMP)
- return ACE_OS::wcscmp_emulation (s, t);
-# else /* !ACE_HAS_WCHAR || ACE_LACKS_WCSCMP */
- return ::wcscmp (s, t);
-# endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSCMP */
-}
ACE_INLINE char *
ACE_OS::strcpy (char *s, const char *t)
@@ -133,7 +109,6 @@ ACE_OS::strcpy (char *s, const char *t)
return ::strcpy (s, t);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::strcpy (wchar_t *s, const wchar_t *t)
{
@@ -143,7 +118,6 @@ ACE_OS::strcpy (wchar_t *s, const wchar_t *t)
return ::wcscpy (s, t);
# endif /* ACE_LACKS_WCSCPY */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE size_t
ACE_OS::strcspn (const char *s, const char *reject)
@@ -151,7 +125,6 @@ ACE_OS::strcspn (const char *s, const char *reject)
return ::strcspn (s, reject);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE size_t
ACE_OS::strcspn (const wchar_t *s, const wchar_t *reject)
{
@@ -161,55 +134,6 @@ ACE_OS::strcspn (const wchar_t *s, const wchar_t *reject)
return ::wcscspn (s, reject);
# endif /* ACE_LACKS_WCSCSPN */
}
-#endif /* ACE_HAS_WCHAR */
-
-ACE_INLINE char *
-ACE_OS::strdup (const char *s)
-{
-# if (defined (ACE_LACKS_STRDUP) && !defined(ACE_STRDUP_EQUIVALENT)) \
- || defined (ACE_HAS_STRDUP_EMULATION)
- return ACE_OS::strdup_emulation (s);
-# elif defined (ACE_STRDUP_EQUIVALENT)
- return ACE_STRDUP_EQUIVALENT (s);
-# elif defined (ACE_HAS_NONCONST_STRDUP)
- return ::strdup (const_cast<char *> (s));
-#else
- return ::strdup (s);
-# endif /* (ACE_LACKS_STRDUP && !ACE_STRDUP_EQUIVALENT) || ... */
-}
-
-#if defined (ACE_HAS_WCHAR)
-ACE_INLINE wchar_t *
-ACE_OS::strdup (const wchar_t *s)
-{
-# if (defined (ACE_LACKS_WCSDUP) && !defined (ACE_WCSDUP_EQUIVALENT)) \
- || defined (ACE_HAS_WCSDUMP_EMULATION)
- return ACE_OS::strdup_emulation (s);
-# elif defined (ACE_WCSDUP_EQUIVALENT)
- return ACE_WCSDUP_EQUIVALENT (s);
-# elif defined (ACE_HAS_NONCONST_WCSDUP)
- return ::wcsdup (const_cast<wchar_t*> (s));
-# else
- return ::wcsdup (s);
-# endif /* (ACE_LACKS_WCSDUP && !ACE_WCSDUP_EQUIVALENT) || ... */
-}
-#endif /* ACE_HAS_WCHAR */
-
-ACE_INLINE size_t
-ACE_OS::strlen (const char *s)
-{
- return ::strlen (s);
-}
-
-ACE_INLINE size_t
-ACE_OS::strlen (const ACE_WCHAR_T *s)
-{
-# if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSLEN)
- return ACE_OS::wcslen_emulation (s);
-# else /* !ACE_HAS_WCHAR || ACE_LACKS_WCSLEN */
- return ::wcslen (s);
-# endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSLEN */
-}
ACE_INLINE char *
ACE_OS::strncat (char *s, const char *t, size_t len)
@@ -217,14 +141,14 @@ ACE_OS::strncat (char *s, const char *t, size_t len)
return ::strncat (s, t, len);
}
-ACE_INLINE ACE_WCHAR_T *
-ACE_OS::strncat (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
+ACE_INLINE wchar_t *
+ACE_OS::strncat (wchar_t *s, const wchar_t *t, size_t len)
{
-# if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCAT)
+# if defined (ACE_LACKS_WCSNCAT)
return ACE_OS::wcsncat_emulation (s, t, len);
-# else /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCAT */
+# else /* ACE_LACKS_WCSNCAT */
return ::wcsncat (s, t, len);
-# endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCAT */
+# endif /* ACE_LACKS_WCSNCAT */
}
ACE_INLINE char *
@@ -240,12 +164,12 @@ ACE_OS::strnchr (char *s, int c, size_t len)
#endif
}
-ACE_INLINE ACE_WCHAR_T *
-ACE_OS::strnchr (ACE_WCHAR_T *s, ACE_WCHAR_T c, size_t len)
+ACE_INLINE wchar_t *
+ACE_OS::strnchr (wchar_t *s, wint_t c, size_t len)
{
return
- const_cast<ACE_WCHAR_T *> (ACE_OS::strnchr (
- const_cast<const ACE_WCHAR_T *> (s),
+ const_cast<wchar_t *> (ACE_OS::strnchr (
+ static_cast<const wchar_t *> (s),
c,
len));
}
@@ -257,29 +181,13 @@ ACE_OS::strncmp (const char *s, const char *t, size_t len)
}
ACE_INLINE int
-ACE_OS::strncmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
+ACE_OS::strncmp (const wchar_t *s, const wchar_t *t, size_t len)
{
-# if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCMP)
+# if defined (ACE_LACKS_WCSNCMP)
return ACE_OS::wcsncmp_emulation (s, t, len);
-# else /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCMP */
+# else /* ACE_LACKS_WCSNCMP */
return ::wcsncmp (s, t, len);
-# endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCMP */
-}
-
-ACE_INLINE char *
-ACE_OS::strncpy (char *s, const char *t, size_t len)
-{
- return ::strncpy (s, t, len);
-}
-
-ACE_INLINE ACE_WCHAR_T *
-ACE_OS::strncpy (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
-{
-# if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCPY)
- return ACE_OS::wcsncpy_emulation (s, t, len);
-# else /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCPY */
- return ::wcsncpy (s, t, len);
-# endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCPY */
+# endif /* ACE_LACKS_WCSNCMP */
}
ACE_INLINE size_t
@@ -297,9 +205,9 @@ ACE_OS::strnlen (const char *s, size_t maxlen)
}
ACE_INLINE size_t
-ACE_OS::strnlen (const ACE_WCHAR_T *s, size_t maxlen)
+ACE_OS::strnlen (const wchar_t *s, size_t maxlen)
{
-#if defined (ACE_HAS_WCHAR) && defined (ACE_HAS_WCSNLEN)
+#if defined (ACE_HAS_WCSNLEN)
return wcsnlen (s, maxlen);
#else /* ACE_HAS_WCSNLEN */
size_t i;
@@ -321,12 +229,12 @@ ACE_OS::strnstr (char *s, const char *t, size_t len)
#endif
}
-ACE_INLINE ACE_WCHAR_T *
-ACE_OS::strnstr (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
+ACE_INLINE wchar_t *
+ACE_OS::strnstr (wchar_t *s, const wchar_t *t, size_t len)
{
return
- const_cast<ACE_WCHAR_T *> (ACE_OS::strnstr (
- static_cast<const ACE_WCHAR_T *> (s),
+ const_cast<wchar_t *> (ACE_OS::strnstr (
+ static_cast<const wchar_t *> (s),
t,
len));
}
@@ -341,7 +249,6 @@ ACE_OS::strpbrk (const char *s1, const char *s2)
#endif /* ACE_LACKS_STRPBRK */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE const wchar_t *
ACE_OS::strpbrk (const wchar_t *s, const wchar_t *t)
{
@@ -351,7 +258,6 @@ ACE_OS::strpbrk (const wchar_t *s, const wchar_t *t)
return ::wcspbrk (s, t);
# endif /* ACE_LACKS_WCSPBRK */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE char *
ACE_OS::strpbrk (char *s1, const char *s2)
@@ -363,14 +269,12 @@ ACE_OS::strpbrk (char *s1, const char *s2)
#endif /* ACE_LACKS_STRPBRK */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::strpbrk (wchar_t *s, const wchar_t *t)
{
return const_cast<wchar_t *> (ACE_OS::strpbrk (
- const_cast<const wchar_t *> (s), t));
+ static_cast<const wchar_t *> (s), t));
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE const char *
ACE_OS::strrchr (const char *s, int c)
@@ -382,17 +286,15 @@ ACE_OS::strrchr (const char *s, int c)
#endif /* ! ACE_LACKS_STRRCHR */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE const wchar_t *
-ACE_OS::strrchr (const wchar_t *s, wchar_t c)
+ACE_OS::strrchr (const wchar_t *s, wint_t c)
{
#if defined (ACE_LACKS_WCSRCHR)
return ACE_OS::wcsrchr_emulation (s, c);
#else /* ! ACE_LACKS_WCSRCHR */
- return const_cast <const wchar_t *> (::wcsrchr (s, c));
+ return (const wchar_t *) ::wcsrchr (s, c);
#endif /* ! ACE_LACKS_WCSRCHR */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE char *
ACE_OS::strrchr (char *s, int c)
@@ -404,14 +306,12 @@ ACE_OS::strrchr (char *s, int c)
#endif /* ! ACE_LACKS_STRRCHR */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
-ACE_OS::strrchr (wchar_t *s, wchar_t c)
+ACE_OS::strrchr (wchar_t *s, wint_t c)
{
return const_cast<wchar_t *> (ACE_OS::strrchr (
- const_cast<const wchar_t *> (s), c));
+ static_cast<const wchar_t *> (s), c));
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE size_t
ACE_OS::strspn (const char *s, const char *t)
@@ -423,7 +323,6 @@ ACE_OS::strspn (const char *s, const char *t)
#endif /* ACE_LACKS_STRSPN */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE size_t
ACE_OS::strspn (const wchar_t *s, const wchar_t *t)
{
@@ -433,7 +332,6 @@ ACE_OS::strspn (const wchar_t *s, const wchar_t *t)
return ::wcsspn (s, t);
# endif /* ACE_LACKS_WCSSPN */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE const char *
ACE_OS::strstr (const char *s, const char *t)
@@ -441,19 +339,17 @@ ACE_OS::strstr (const char *s, const char *t)
return (const char *) ::strstr (s, t);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE const wchar_t *
ACE_OS::strstr (const wchar_t *s, const wchar_t *t)
{
# if defined (ACE_LACKS_WCSSTR)
return ACE_OS::wcsstr_emulation (s, t);
# elif defined (HPUX)
- return const_cast <const wchar_t *> (::wcswcs (s, t));
+ return (const wchar_t *) ::wcswcs (s, t);
# else /* ACE_LACKS_WCSSTR */
- return const_cast <const wchar_t *> (::wcsstr (s, t));
+ return (const wchar_t *) ::wcsstr (s, t);
# endif /* ACE_LACKS_WCSSTR */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE char *
ACE_OS::strstr (char *s, const char *t)
@@ -461,7 +357,6 @@ ACE_OS::strstr (char *s, const char *t)
return ::strstr (s, t);
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::strstr (wchar_t *s, const wchar_t *t)
{
@@ -473,7 +368,6 @@ ACE_OS::strstr (wchar_t *s, const wchar_t *t)
return ::wcsstr (s, t);
# endif /* ACE_LACKS_WCSSTR */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE char *
ACE_OS::strtok (char *s, const char *tokens)
@@ -481,18 +375,20 @@ ACE_OS::strtok (char *s, const char *tokens)
return ::strtok (s, tokens);
}
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOK)
ACE_INLINE wchar_t *
ACE_OS::strtok (wchar_t *s, const wchar_t *tokens)
{
#if defined (ACE_HAS_3_PARAM_WCSTOK)
static wchar_t *lasts;
return ::wcstok (s, tokens, &lasts);
-#else
+#elif !defined (ACE_LACKS_WCSTOK)
return ::wcstok (s, tokens);
+#else
+ ACE_UNUSED_ARG( s );
+ ACE_UNUSED_ARG( tokens );
+ ACE_NOTSUP_RETURN (0);
#endif /* ACE_HAS_3_PARAM_WCSTOK */
}
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOK */
ACE_INLINE char *
ACE_OS::strtok_r (char *s, const char *tokens, char **lasts)
@@ -504,9 +400,8 @@ ACE_OS::strtok_r (char *s, const char *tokens, char **lasts)
#endif /* (ACE_HAS_REENTRANT_FUNCTIONS) */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t*
-ACE_OS::strtok_r (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts)
+ACE_OS::strtok_r (wchar_t *s, const wchar_t *tokens, wchar_t **lasts)
{
#if defined (ACE_LACKS_WCSTOK)
return ACE_OS::strtok_r_emulation (s, tokens, lasts);
@@ -519,6 +414,3 @@ ACE_OS::strtok_r (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts
# endif /* ACE_HAS_3_PARAM_WCSTOK */
#endif /* ACE_LACKS_WCSTOK */
}
-#endif // ACE_HAS_WCHAR
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_string_base.cpp b/ace/OS_NS_string_base.cpp
new file mode 100644
index 00000000000..f129f36ba61
--- /dev/null
+++ b/ace/OS_NS_string_base.cpp
@@ -0,0 +1,12 @@
+/* -*- C++ -*- */
+// $Id$
+
+// We must include this before "ace/OS_NS_string_base.h", so that
+// "ace/OS_NS_string_base.h" gets the ACE_LACKS* #defines
+#include "ace/config-all.h"
+
+#include "ace/OS_NS_string_base.h"
+
+namespace ACE_OS
+{
+}
diff --git a/ace/OS_NS_string_base.h b/ace/OS_NS_string_base.h
new file mode 100644
index 00000000000..76360ca7719
--- /dev/null
+++ b/ace/OS_NS_string_base.h
@@ -0,0 +1,89 @@
+/* -*- C++ -*- */
+// $Id$
+#ifndef OS_NS_STRING_BASE_H
+#define OS_NS_STRING_BASE_H
+
+#include "ace/config-lite.h"
+
+#include <string.h>
+// Standard library includes for wide functions declared in ace_wchar.h
+// Do not include any ACE header files because this file is included from
+// ace_wchar.h which is included at the config.h level.
+
+namespace ACE_OS
+{
+
+/// Finds the length of a string (emulated version).
+template <typename CHAR> inline
+size_t strlen (const CHAR* s);
+
+/// Finds the length of a string (char version).
+template <> inline
+size_t strlen (const char* s);
+
+/// Finds the length of a string (wchar_t version).
+#if !defined (ACE_LACKS_WCSLEN)
+template <> inline
+size_t strlen (const wchar_t* s);
+#endif /* !ACE_LACKS_WCSLEN */
+
+/// Copies an array (emulated version)
+/// This method intentionally specifies
+/// a uniform type for source and destination
+/// Use ACE_OS::string_copy if the types may
+/// not be uniform.
+template <typename CHAR> inline
+CHAR* strncpy (CHAR* dest, const CHAR* src, size_t len);
+
+/// Copies an array (char version)
+template <> inline
+char* strncpy (char* dest, const char* src, size_t len);
+
+/// Copies an array (wchar_t version)
+#if !defined (ACE_LACKS_WCSNCPY)
+template <> inline
+wchar_t* strncpy (wchar_t* dest, const wchar_t* src, size_t len);
+#endif /* !ACE_LACKS_WCSNCPY */
+
+/// Compares two strings (emulated version).
+/// This method intentionally specifies
+/// a uniform type for source and destination.
+/// The user has to specify the conversion is they differ.
+template < typename CHAR > inline
+int strcmp (const CHAR *lhs, const CHAR *rhs);
+
+/// Compares two strings (char version).
+template <> inline
+int strcmp (const char *lhs, const char *rhs);
+
+ /// Compares two strings (wchar_t version).
+#if !defined (ACE_LACKS_WCSCMP)
+template <> inline
+int strcmp (const wchar_t *lhs, const wchar_t *rhs);
+#endif /* !ACE_LACKS_WCSCMP */
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+// Emulation
+#if defined (ACE_LACKS_WCSLEN)
+ /// Emulated wcslen - Returns the length of a string.
+ size_t
+ wcslen_emulation (const wchar_t* string)
+ { return ACE_OS::strlen( string ); }
+#endif /* ACE_LACKS_WCSLEN */
+
+#if defined (ACE_LACKS_WCSNCPY)
+ /// Emulated wcsncpy - Copies an array.
+ wchar_t *
+ wcsncpy_emulation (wchar_t *destination,
+ const wchar_t *source,
+ size_t len)
+ { return ACE_OS::strncpy( destination, source, len ); }
+#endif /* ACE_LACKS_WCSNCPY */
+
+#endif
+
+}
+
+#include "ace/OS_NS_string_base.inl"
+
+#endif
diff --git a/ace/OS_NS_string_base.inl b/ace/OS_NS_string_base.inl
new file mode 100644
index 00000000000..06a6e614694
--- /dev/null
+++ b/ace/OS_NS_string_base.inl
@@ -0,0 +1,97 @@
+/* -*- C++ -*- */
+// $Id$
+
+#ifndef OS_NS_STRING_BASE_INL
+#define OS_NS_STRING_BASE_INL
+
+#include <string.h>
+
+namespace ACE_OS
+{
+
+template <typename CHAR> inline
+size_t strlen (const CHAR* s)
+{
+ const CHAR* string = s;
+ for (; *string; ++string) continue;
+ return (string - s);
+}
+
+template <> inline
+size_t strlen (const char* s)
+{
+ return ::strlen (s);
+}
+
+#if !defined (ACE_LACKS_WCSLEN)
+template <> inline
+size_t strlen (const wchar_t* s)
+{
+ return ::wcslen (s);
+}
+#endif /* !ACE_LACKS_WCSLEN */
+
+template <typename CHAR> inline
+CHAR* strncpy (CHAR* dest, const CHAR* src, size_t len)
+{
+ if (len != 0)
+ {
+ CHAR* d = dest;
+ const CHAR* s = src;
+ do
+ {
+ if ((*d++ = *s++) == 0)
+ {
+ // NUL pad the remaining n-1 bytes
+ while (--len != 0)
+ *d++ = 0;
+ break;
+ }
+ } while (--len != 0);
+ }
+ return dest;
+}
+
+template <> inline
+char* strncpy (char* dest, const char* src, size_t len)
+{
+ return ::strncpy (dest, src, len);
+}
+
+#if !defined (ACE_LACKS_WCSNCPY)
+template <> inline
+wchar_t* strncpy (wchar_t* dest, const wchar_t* src, size_t len)
+{
+ return ::wcsncpy (dest, src, len);
+}
+#endif /* !ACE_LACKS_WCSNCPY */
+
+template < typename CHAR > inline
+int strcmp (const CHAR *lhs, const CHAR *rhs)
+{
+// we need static casts!
+ while (*lhs == *rhs++)
+ if (*lhs++ == 0)
+ return (0);
+ return (*lhs - *--rhs);
+}
+
+/// Compares two strings (char version).
+template <> inline
+int strcmp (const char *lhs, const char *rhs)
+{
+ return ::strcmp (lhs, rhs);
+}
+
+/// Compares two strings (wchar_t version).
+#if !defined (ACE_LACKS_WCSCMP)
+template <> inline
+int strcmp (const wchar_t *lhs, const wchar_t *rhs)
+{
+ return ::wcscmp (lhs, rhs);
+}
+#endif /* !ACE_LACKS_WCSCMP */
+
+}
+
+#endif
diff --git a/ace/OS_NS_strings.cpp b/ace/OS_NS_strings.cpp
index 50c5630c9d2..67ca3a809b8 100644
--- a/ace/OS_NS_strings.cpp
+++ b/ace/OS_NS_strings.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_strings.h"
@@ -12,8 +13,6 @@ ACE_RCSID(ace, OS_NS_strings, "$Id$")
# include "ace/OS_NS_ctype.h"
#endif /* ACE_LACKS_STRCASECMP */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_LACKS_STRCASECMP)
int
ACE_OS::strcasecmp_emulation (const char *s, const char *t)
@@ -80,5 +79,3 @@ ACE_OS::strncasecmp_emulation (const char *s,
return ACE_OS::ace_tolower (*scan1) - ACE_OS::ace_tolower (*scan2);
}
#endif /* ACE_LACKS_STRCASECMP */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_strings.h b/ace/OS_NS_strings.h
index 70d8e17cf5b..f52eb603661 100644
--- a/ace/OS_NS_strings.h
+++ b/ace/OS_NS_strings.h
@@ -15,7 +15,7 @@
//=============================================================================
#ifndef ACE_OS_NS_STRINGS_H
-#define ACE_OS_NS_STRINGS_H
+# define ACE_OS_NS_STRINGS_H
# include /**/ "ace/pre.h"
@@ -33,32 +33,25 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
-namespace ACE_OS
-{
+namespace ACE_OS {
/// Compares two strings (case insensitive const char version).
ACE_NAMESPACE_INLINE_FUNCTION
int strcasecmp (const char *s, const char *t);
-#if defined (ACE_HAS_WCHAR)
/// Compares two strings (case insensitive const wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
int strcasecmp (const wchar_t *s, const wchar_t *t);
-#endif /* ACE_HAS_WCHAR */
/// Compares two arrays (case insensitive const char version).
ACE_NAMESPACE_INLINE_FUNCTION
int strncasecmp (const char *s, const char *t, size_t len);
-#if defined (ACE_HAS_WCHAR)
/// Compares two arrays (case insensitive const wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
int strncasecmp (const wchar_t *s, const wchar_t *t, size_t len);
-#endif /* ACE_HAS_WCHAR */
#if defined (ACE_LACKS_STRCASECMP)
/// Emulated strcasecmp - Performs a case insensitive comparison of strings.
@@ -72,8 +65,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_strings.inl b/ace/OS_NS_strings.inl
index 2b2012b2f38..115489ea9f5 100644
--- a/ace/OS_NS_strings.inl
+++ b/ace/OS_NS_strings.inl
@@ -1,12 +1,7 @@
// -*- C++ -*-
-//
// $Id$
-#if defined (ACE_HAS_WCHAR)
# include "ace/OS_NS_wchar.h"
-#endif /* ACE_HAS_WCHAR */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE int
ACE_OS::strcasecmp (const char *s, const char *t)
@@ -20,7 +15,6 @@ ACE_OS::strcasecmp (const char *s, const char *t)
#endif /* ACE_LACKS_STRCASECMP */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::strcasecmp (const wchar_t *s, const wchar_t *t)
{
@@ -30,7 +24,6 @@ ACE_OS::strcasecmp (const wchar_t *s, const wchar_t *t)
return ::_wcsicmp (s, t);
# endif /* ACE_LACKS_WCSICMP */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::strncasecmp (const char *s, const char *t, size_t len)
@@ -44,7 +37,6 @@ ACE_OS::strncasecmp (const char *s, const char *t, size_t len)
#endif /* ACE_LACKS_STRCASECMP */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::strncasecmp (const wchar_t *s, const wchar_t *t, size_t len)
{
@@ -54,6 +46,4 @@ ACE_OS::strncasecmp (const wchar_t *s, const wchar_t *t, size_t len)
return ::_wcsnicmp (s, t, len);
#endif /* ACE_LACKS_WCSNICMP */
}
-#endif /* ACE_HAS_WCHAR */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_stropts.cpp b/ace/OS_NS_stropts.cpp
index f19056ec381..a8f4710a1f7 100644
--- a/ace/OS_NS_stropts.cpp
+++ b/ace/OS_NS_stropts.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_stropts.h"
@@ -8,8 +9,6 @@ ACE_RCSID(ace, OS_NS_stropts, "$Id$")
# include "ace/OS_NS_stropts.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_OS::ioctl (ACE_HANDLE socket,
unsigned long io_control_code,
@@ -47,7 +46,7 @@ ACE_OS::ioctl (ACE_HANDLE socket,
# endif /* ACE_HAS_WINSOCK2 */
}
-#if !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500))
+#if !defined (ACE_HAS_WINCE)
int
ACE_OS::ioctl (ACE_HANDLE socket,
unsigned long io_control_code,
@@ -190,6 +189,4 @@ ACE_OS::ioctl (ACE_HANDLE socket,
ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_WINSOCK2 */
}
-#endif /* !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500)) */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_HAS_WINCE */
diff --git a/ace/OS_NS_stropts.h b/ace/OS_NS_stropts.h
index ce9a6ba23ba..9b1f6fc2f56 100644
--- a/ace/OS_NS_stropts.h
+++ b/ace/OS_NS_stropts.h
@@ -15,7 +15,7 @@
//=============================================================================
#ifndef ACE_OS_NS_STROPTS_H
-#define ACE_OS_NS_STROPTS_H
+# define ACE_OS_NS_STROPTS_H
# include /**/ "ace/pre.h"
@@ -38,8 +38,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
typedef WSAPROTOCOL_INFO ACE_Protocol_Info;
@@ -115,7 +113,7 @@ namespace ACE_OS {
void * = 0);
/// QoS-enabled <ioctl>.
- extern ACE_Export
+ extern ACE_Export
int ioctl (ACE_HANDLE socket,
unsigned long io_control_code,
void *in_buffer_p,
@@ -126,10 +124,10 @@ namespace ACE_OS {
ACE_OVERLAPPED *overlapped,
ACE_OVERLAPPED_COMPLETION_FUNC func);
-#if !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500))
+#if !defined (ACE_HAS_WINCE)
/// QoS-enabled <ioctl> when the I/O control code is either
/// SIO_SET_QOS or SIO_GET_QOS.
- extern ACE_Export
+ extern ACE_Export
int ioctl (ACE_HANDLE socket,
unsigned long io_control_code,
ACE_QoS &ace_qos,
@@ -138,7 +136,7 @@ namespace ACE_OS {
unsigned long buffer = 0,
ACE_OVERLAPPED *overlapped = 0,
ACE_OVERLAPPED_COMPLETION_FUNC func = 0);
-#endif /* !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500)) */
+#endif /* ACE_HAS_WINCE */
ACE_NAMESPACE_INLINE_FUNCTION
int isastream (ACE_HANDLE handle);
@@ -158,8 +156,6 @@ namespace ACE_OS {
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_stropts.inl b/ace/OS_NS_stropts.inl
index 59f1035074e..38663c67cba 100644
--- a/ace/OS_NS_stropts.inl
+++ b/ace/OS_NS_stropts.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/os_include/os_errno.h"
@@ -9,8 +8,6 @@
#include "ace/OS_Memory.h"
#include "ace/OS_QoS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_LACKS_CONST_STRBUF_PTR)
typedef struct strbuf *ACE_STRBUF_TYPE;
#else
@@ -114,7 +111,7 @@ ACE_OS::ioctl (ACE_HANDLE handle,
#if defined (ACE_WIN32)
ACE_SOCKET sock = (ACE_SOCKET) handle;
ACE_SOCKCALL_RETURN (::ioctlsocket (sock, cmd, reinterpret_cast<unsigned long *> (val)), int, -1);
-#elif defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x620)
+#elif defined (VXWORKS)
ACE_OSCALL_RETURN (::ioctl (handle, cmd, reinterpret_cast<int> (val)),
int, -1);
#elif defined (ACE_PSOS)
@@ -199,5 +196,3 @@ ACE_OS::putpmsg (ACE_HANDLE handle,
return ACE_OS::putmsg (handle, ctl, data, flags);
#endif /* ACE_HAS_STREAM_PIPES */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_mman.cpp b/ace/OS_NS_sys_mman.cpp
index 5b1f5712186..5a9c10ce148 100644
--- a/ace/OS_NS_sys_mman.cpp
+++ b/ace/OS_NS_sys_mman.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_mman.h"
diff --git a/ace/OS_NS_sys_mman.h b/ace/OS_NS_sys_mman.h
index 6315c32bbff..1ce8939525f 100644
--- a/ace/OS_NS_sys_mman.h
+++ b/ace/OS_NS_sys_mman.h
@@ -35,10 +35,7 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
//@{ @name A set of wrappers for memory mapped files.
ACE_NAMESPACE_INLINE_FUNCTION
@@ -83,8 +80,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_mman.inl b/ace/OS_NS_sys_mman.inl
index eb7449779fb..f199ee118c8 100644
--- a/ace/OS_NS_sys_mman.inl
+++ b/ace/OS_NS_sys_mman.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_fcntl.h"
@@ -12,8 +11,6 @@
# include "ace/OS_NS_sys_stat.h"
#endif /* __Lynx__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_VOIDPTR_MMAP)
// Needed for some odd OS's (e.g., SGI).
typedef void *ACE_MMAP_TYPE;
@@ -308,9 +305,9 @@ ACE_OS::shm_open (const ACE_TCHAR *filename,
ACE_OS_TRACE ("ACE_OS::shm_open");
# if defined (ACE_HAS_SHM_OPEN)
ACE_UNUSED_ARG (sa);
- ACE_OSCALL_RETURN (::shm_open (ACE_TEXT_ALWAYS_CHAR(filename), mode, perms), ACE_HANDLE, ACE_INVALID_HANDLE);
+ ACE_OSCALL_RETURN (::shm_open (ACE_TEXT_TO_CHAR_IN(filename), mode, perms), ACE_HANDLE, ACE_INVALID_HANDLE);
# elif defined (ACE_OPENVMS)
- ACE_OSCALL_RETURN (::open (filename, mode, perms, ACE_TEXT("shr=get,put,upd")), ACE_HANDLE, ACE_INVALID_HANDLE);
+ ACE_OSCALL_RETURN (::open (filename, mode, perms, ACE_LIB_TEXT("shr=get,put,upd")), ACE_HANDLE, ACE_INVALID_HANDLE);
# else /* ! ACE_HAS_SHM_OPEN */
// Just use ::open.
return ACE_OS::open (filename, mode, perms, sa);
@@ -322,11 +319,10 @@ ACE_OS::shm_unlink (const ACE_TCHAR *path)
{
ACE_OS_TRACE ("ACE_OS::shm_unlink");
# if defined (ACE_HAS_SHM_OPEN)
- ACE_OSCALL_RETURN (::shm_unlink (ACE_TEXT_ALWAYS_CHAR(path)), int, -1);
+ ACE_OSCALL_RETURN (::shm_unlink (ACE_TEXT_TO_CHAR_IN(path)), int, -1);
# else /* ! ACE_HAS_SHM_OPEN */
// Just use ::unlink.
return ACE_OS::unlink (path);
# endif /* ACE_HAS_SHM_OPEN */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_msg.cpp b/ace/OS_NS_sys_msg.cpp
index 328f3ec6975..917121a8680 100644
--- a/ace/OS_NS_sys_msg.cpp
+++ b/ace/OS_NS_sys_msg.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_msg.h"
diff --git a/ace/OS_NS_sys_msg.h b/ace/OS_NS_sys_msg.h
index 4dcd9be5461..37b4743d43b 100644
--- a/ace/OS_NS_sys_msg.h
+++ b/ace/OS_NS_sys_msg.h
@@ -33,8 +33,6 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
//@{ @name A set of wrappers for System V message queues.
@@ -63,8 +61,6 @@ namespace ACE_OS {
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_msg.inl b/ace/OS_NS_sys_msg.inl
index 129b4c389c1..7f71a4a75cc 100644
--- a/ace/OS_NS_sys_msg.inl
+++ b/ace/OS_NS_sys_msg.inl
@@ -1,11 +1,8 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::msgctl (int msqid, int cmd, struct msqid_ds *val)
{
@@ -74,5 +71,3 @@ ACE_OS::msgsnd (int int_id, const void *buf, size_t len, int flags)
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_SYSV_IPC */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_resource.cpp b/ace/OS_NS_sys_resource.cpp
index 44a1e9584c0..3499e4bfc5c 100644
--- a/ace/OS_NS_sys_resource.cpp
+++ b/ace/OS_NS_sys_resource.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_resource.h"
diff --git a/ace/OS_NS_sys_resource.h b/ace/OS_NS_sys_resource.h
index 3c73ad0ab9d..7486dd2a1c7 100644
--- a/ace/OS_NS_sys_resource.h
+++ b/ace/OS_NS_sys_resource.h
@@ -33,10 +33,7 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int getrlimit (int resource,
@@ -53,8 +50,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_resource.inl b/ace/OS_NS_sys_resource.inl
index 50d696b2059..ea6fc92849d 100644
--- a/ace/OS_NS_sys_resource.inl
+++ b/ace/OS_NS_sys_resource.inl
@@ -1,12 +1,9 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::getrlimit (int resource, struct rlimit *rl)
{
@@ -55,8 +52,8 @@ ACE_OS::getrusage (int who, struct rusage *ru)
# endif /* ACE_HAS_RUSAGE_WHO_ENUM */
# endif /* ACE_WIN32 */
#else
- ACE_UNUSED_ARG (who);
- ACE_UNUSED_ARG (ru);
+ who = who;
+ ru = ru;
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_SYSCALL_GETRUSAGE */
}
@@ -79,9 +76,9 @@ ACE_OS::setrlimit (int resource, const struct rlimit *rl)
), int, -1);
# else
ACE_OSCALL_RETURN (::setrlimit ((ACE_HAS_RLIMIT_RESOURCE_ENUM) resource,
- rl
+ resource,
), int, -1);
-# endif /* ACE_HAS_NONCONST_SETRLIMIT */
+# endif /* ACE_HAS_NONCONST_SETRLIMIT */
# else /* ACE_HAS_RLIMIT_RESOURCE_ENUM */
# if defined (ACE_HAS_NONCONST_SETRLIMIT)
ACE_OSCALL_RETURN (::setrlimit (resource, const_cast<struct rlimit *>(rl)
@@ -89,8 +86,7 @@ ACE_OS::setrlimit (int resource, const struct rlimit *rl)
# else
ACE_OSCALL_RETURN (::setrlimit (resource, rl), int, -1);
# endif /* ACE_HAS_NONCONST_SETRLIMIT */
-# endif /* ACE_HAS_RLIMIT_RESOURCE_ENUM */
+# endif /* ACE_HAS_RLIMIT_RESOURCE_ENUM */
#endif /* ACE_LACKS_RLIMIT */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_select.cpp b/ace/OS_NS_sys_select.cpp
index eafd1f2caae..fb2bc11b1b2 100644
--- a/ace/OS_NS_sys_select.cpp
+++ b/ace/OS_NS_sys_select.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_select.h"
diff --git a/ace/OS_NS_sys_select.h b/ace/OS_NS_sys_select.h
index 443d594ae09..1a33c485e56 100644
--- a/ace/OS_NS_sys_select.h
+++ b/ace/OS_NS_sys_select.h
@@ -40,12 +40,10 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
-namespace ACE_OS
-{
+namespace ACE_OS {
+
// Should be moved to cpp or inl.
ACE_NAMESPACE_INLINE_FUNCTION
int select (int width,
@@ -63,8 +61,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_select.inl b/ace/OS_NS_sys_select.inl
index 11d1fba8cae..a46dc4bc800 100644
--- a/ace/OS_NS_sys_select.inl
+++ b/ace/OS_NS_sys_select.inl
@@ -1,13 +1,10 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_macros.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// It would be really cool to add another version of select that would
// function like the one we're defending against below!
ACE_INLINE int
@@ -19,7 +16,7 @@ ACE_OS::select (int width,
#if defined (ACE_HAS_NONCONST_SELECT_TIMEVAL)
// We must defend against non-conformity!
timeval copy;
- timeval *timep = 0;
+ timeval *timep;
if (timeout != 0)
{
@@ -79,4 +76,3 @@ ACE_OS::select (int width,
#undef ___ACE_TIMEOUT
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_shm.cpp b/ace/OS_NS_sys_shm.cpp
index 16b10605b82..5feb509e5db 100644
--- a/ace/OS_NS_sys_shm.cpp
+++ b/ace/OS_NS_sys_shm.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_shm.h"
diff --git a/ace/OS_NS_sys_shm.h b/ace/OS_NS_sys_shm.h
index df39efdfd60..de1214a9bb1 100644
--- a/ace/OS_NS_sys_shm.h
+++ b/ace/OS_NS_sys_shm.h
@@ -33,15 +33,12 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
//@{ @name A set of wrappers for System V shared memory.
ACE_NAMESPACE_INLINE_FUNCTION
void *shmat (int int_id,
- const void *shmaddr,
+ void *shmaddr,
int shmflg);
ACE_NAMESPACE_INLINE_FUNCTION
@@ -50,7 +47,7 @@ namespace ACE_OS
struct shmid_ds *buf);
ACE_NAMESPACE_INLINE_FUNCTION
- int shmdt (const void *shmaddr);
+ int shmdt (void *shmaddr);
ACE_NAMESPACE_INLINE_FUNCTION
int shmget (key_t key,
@@ -60,8 +57,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_shm.inl b/ace/OS_NS_sys_shm.inl
index ef7fef59847..1df7d9c7764 100644
--- a/ace/OS_NS_sys_shm.inl
+++ b/ace/OS_NS_sys_shm.inl
@@ -1,21 +1,14 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void *
-ACE_OS::shmat (int int_id, const void *shmaddr, int shmflg)
+ACE_OS::shmat (int int_id, void *shmaddr, int shmflg)
{
ACE_OS_TRACE ("ACE_OS::shmat");
#if defined (ACE_HAS_SYSV_IPC)
-# if defined (ACE_HAS_CHARPTR_SHMAT)
- ACE_OSCALL_RETURN (::shmat (int_id, static_cast <char*> (const_cast <void *>(shmaddr)), shmflg), void *, (void *) -1);
-# else
- ACE_OSCALL_RETURN (::shmat (int_id, shmaddr, shmflg), void *, (void *) -1);
-# endif /* ACE_HAS_CHARPTR_SHMAT */
+ ACE_OSCALL_RETURN (::shmat (int_id, static_cast <char *> (shmaddr), shmflg), void *, (void *) -1);
#else
ACE_UNUSED_ARG (int_id);
ACE_UNUSED_ARG (shmaddr);
@@ -41,16 +34,11 @@ ACE_OS::shmctl (int int_id, int cmd, struct shmid_ds *buf)
}
ACE_INLINE int
-ACE_OS::shmdt (const void *shmaddr)
+ACE_OS::shmdt (void *shmaddr)
{
ACE_OS_TRACE ("ACE_OS::shmdt");
#if defined (ACE_HAS_SYSV_IPC)
-# if defined (ACE_HAS_CHARPTR_SHMDT)
- ACE_OSCALL_RETURN (::shmdt (
- static_cast <char*> (const_cast <void *>(shmaddr))), int, -1);
-# else
- ACE_OSCALL_RETURN (::shmdt (shmaddr), int, -1);
-# endif /* ACE_HAS_CHARPTR_SHMDT */
+ ACE_OSCALL_RETURN (::shmdt ((char *) shmaddr), int, -1);
#else
ACE_UNUSED_ARG (shmaddr);
@@ -72,5 +60,3 @@ ACE_OS::shmget (key_t key, size_t size, int flags)
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_SYSV_IPC */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_socket.cpp b/ace/OS_NS_sys_socket.cpp
index f0ff6acc5d7..78ea8a5fcfd 100644
--- a/ace/OS_NS_sys_socket.cpp
+++ b/ace/OS_NS_sys_socket.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_socket.h"
@@ -8,13 +9,11 @@ ACE_RCSID(ace, OS_NS_sys_socket, "$Id$")
# include "ace/OS_NS_sys_socket.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32)
int ACE_OS::socket_initialized_;
#endif /* ACE_WIN32 */
-#if !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500))
+#if !defined (ACE_HAS_WINCE)
ACE_HANDLE
ACE_OS::accept (ACE_HANDLE handle,
struct sockaddr *addr,
@@ -95,7 +94,7 @@ ACE_OS::join_leaf (ACE_HANDLE socket,
ACE_NOTSUP_RETURN (ACE_INVALID_HANDLE);
# endif /* ACE_HAS_WINSOCK2 */
}
-#endif /* !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500)) */
+#endif // ACE_HAS_WINCE
int
ACE_OS::socket_init (int version_high, int version_low)
@@ -158,4 +157,3 @@ ACE_OS::socket_fini (void)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_socket.h b/ace/OS_NS_sys_socket.h
index 6c1103e0052..c984c30758a 100644
--- a/ace/OS_NS_sys_socket.h
+++ b/ace/OS_NS_sys_socket.h
@@ -60,13 +60,10 @@
#define ACE_SHUTDOWN_BOTH 2
#endif /* SD_BOTH */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Accept_QoS_Params;
class ACE_QoS_Params;
-namespace ACE_OS
-{
+namespace ACE_OS {
# if defined (ACE_WIN32)
/// Keeps track of whether we've already initialized WinSock...
@@ -80,7 +77,7 @@ namespace ACE_OS
struct sockaddr *addr,
int *addrlen);
-#if !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500))
+#if !defined (ACE_HAS_WINCE)
/**
* QoS-enabled <accept>, which passes <qos_params> to <accept>. If
* the OS platform doesn't support QoS-enabled <accept> then the
@@ -91,7 +88,7 @@ namespace ACE_OS
struct sockaddr *addr,
int *addrlen,
const ACE_Accept_QoS_Params &qos_params);
-#endif /* !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500)) */
+#endif // ACE_HAS_WINCE
ACE_NAMESPACE_INLINE_FUNCTION
int bind (ACE_HANDLE s,
@@ -108,7 +105,7 @@ namespace ACE_OS
struct sockaddr *addr,
int addrlen);
-#if !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500))
+#if !defined (ACE_HAS_WINCE)
/**
* QoS-enabled <connect>, which passes <qos_params> to <connect>.
* If the OS platform doesn't support QoS-enabled <connect> then the
@@ -119,7 +116,7 @@ namespace ACE_OS
const sockaddr *addr,
int addrlen,
const ACE_QoS_Params &qos_params);
-#endif /* !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500)) */
+#endif // ACE_HAS_WINCE
/// Retrieve information about available transport protocols
/// installed on the local machine. Windows specific...
@@ -144,14 +141,14 @@ namespace ACE_OS
char *optval,
int *optlen);
-#if !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500))
+#if !defined (ACE_HAS_WINCE)
/// Joins a leaf node into a QoS-enabled multi-point session.
extern ACE_Export
ACE_HANDLE join_leaf (ACE_HANDLE socket,
const sockaddr *name,
int namelen,
const ACE_QoS_Params &qos_params);
-#endif /* !(defined (ACE_HAS_WINCE) && (UNDER_CE < 500)) */
+#endif // ACE_HAS_WINCE
ACE_NAMESPACE_INLINE_FUNCTION
int listen (ACE_HANDLE handle,
@@ -288,8 +285,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_socket.inl b/ace/OS_NS_sys_socket.inl
index b7b3c8d3151..801e6858d02 100644
--- a/ace/OS_NS_sys_socket.inl
+++ b/ace/OS_NS_sys_socket.inl
@@ -15,8 +15,6 @@
#include "ace/OS_NS_string.h"
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_VOIDPTR_SOCKOPT)
typedef void *ACE_SOCKOPT_TYPE1;
#elif defined (ACE_HAS_CHARPTR_SOCKOPT)
@@ -78,7 +76,7 @@ ACE_OS::accept (ACE_HANDLE handle,
addr = (sockaddr *) &fake_addr;
*addrlen = sizeof fake_addr;
}
-# endif /* ACE_HAS_BROKEN_ACCEPT_ADDR */
+# endif /* VXWORKS */
ACE_HANDLE ace_result = ::accept ((ACE_SOCKET) handle,
addr,
(ACE_SOCKET_LEN *) addrlen);
@@ -637,7 +635,7 @@ ACE_OS::sendto (ACE_HANDLE handle,
int addrlen)
{
ACE_OS_TRACE ("ACE_OS::sendto");
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
ACE_SOCKCALL_RETURN (::sendto ((ACE_SOCKET) handle,
const_cast <char *> (buf),
len,
@@ -673,7 +671,7 @@ ACE_OS::sendto (ACE_HANDLE handle,
addrlen),
ssize_t, -1);
# endif /* ACE_WIN32 */
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
}
ACE_INLINE ssize_t
@@ -849,22 +847,13 @@ ACE_OS::setsockopt (ACE_HANDLE handle,
}
#endif /*ACE_HAS_WINSOCK2*/
- int result;
- ACE_SOCKCALL (::setsockopt ((ACE_SOCKET) handle,
- level,
- optname,
- (ACE_SOCKOPT_TYPE1) optval,
- optlen),
- int,
- -1,
- result);
-#if defined (WSAEOPNOTSUPP)
- if (result == -1 && errno == WSAEOPNOTSUPP)
-#else
- if (result == -1)
-#endif /* WSAEOPNOTSUPP */
- errno = ENOTSUP;
- return result;
+ ACE_SOCKCALL_RETURN (::setsockopt ((ACE_SOCKET) handle,
+ level,
+ optname,
+ (ACE_SOCKOPT_TYPE1) optval,
+ optlen),
+ int,
+ -1);
}
ACE_INLINE int
@@ -965,5 +954,3 @@ ACE_OS::if_freenameindex (struct if_nameindex *ptr)
::if_freenameindex (ptr);
}
#endif /* __linux__ && ACE_HAS_IPV6 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_stat.cpp b/ace/OS_NS_sys_stat.cpp
index a372f414075..fa50a6b040d 100644
--- a/ace/OS_NS_sys_stat.cpp
+++ b/ace/OS_NS_sys_stat.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_stat.h"
diff --git a/ace/OS_NS_sys_stat.h b/ace/OS_NS_sys_stat.h
index 76f029245cc..fbb7312cb78 100644
--- a/ace/OS_NS_sys_stat.h
+++ b/ace/OS_NS_sys_stat.h
@@ -34,16 +34,13 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_WIN32) && !defined (ACE_HAS_WINCE) && !defined (__BORLANDC__) && !defined(__IBMCPP__)
typedef struct _stat ACE_stat;
# else
typedef struct stat ACE_stat;
# endif /* ACE_WIN32 */
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE creat (const ACE_TCHAR *filename,
@@ -53,10 +50,11 @@ namespace ACE_OS
// non-standard
ACE_NAMESPACE_INLINE_FUNCTION
- off_t filesize (ACE_HANDLE handle);
+ long filesize (ACE_HANDLE handle);
ACE_NAMESPACE_INLINE_FUNCTION
- off_t filesize (const ACE_TCHAR *handle);
+ long filesize (const ACE_TCHAR *handle);
+
//@}
@@ -68,21 +66,17 @@ namespace ACE_OS
int lstat (const char *,
ACE_stat *);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int lstat (const wchar_t *,
ACE_stat *);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int mkdir (const char *path,
mode_t mode = ACE_DEFAULT_DIR_PERMS);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int mkdir (const wchar_t *path,
mode_t mode = ACE_DEFAULT_DIR_PERMS);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int mkfifo (const ACE_TCHAR *file,
@@ -91,18 +85,14 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
int stat (const char *file, ACE_stat *);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int stat (const wchar_t *file, ACE_stat *);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
mode_t umask (mode_t cmask);
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_stat.inl b/ace/OS_NS_sys_stat.inl
index 448cfcd3246..382863a2f59 100644
--- a/ace/OS_NS_sys_stat.inl
+++ b/ace/OS_NS_sys_stat.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_unistd.h"
@@ -7,10 +6,7 @@
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_INLINE ACE_HANDLE
creat (const ACE_TCHAR *filename, mode_t mode)
@@ -22,12 +18,16 @@ namespace ACE_OS
ACE_OSCALL_RETURN(::create_f((char *)filename, 1024,
S_IRUSR | S_IWUSR | S_IXUSR),
ACE_HANDLE, ACE_INVALID_HANDLE);
-#elif defined(ACE_PSOS_TM) || defined (ACE_PSOS)
+#elif defined(ACE_PSOS_TM)
+ ACE_UNUSED_ARG (filename);
+ ACE_UNUSED_ARG (mode);
+ ACE_NOTSUP_RETURN (-1);
+#elif defined(ACE_PSOS)
ACE_UNUSED_ARG (filename);
ACE_UNUSED_ARG (mode);
ACE_NOTSUP_RETURN (-1);
#else
- ACE_OSCALL_RETURN (::creat (ACE_TEXT_ALWAYS_CHAR (filename), mode),
+ ACE_OSCALL_RETURN (::creat (ACE_TEXT_TO_CHAR_IN (filename), mode),
ACE_HANDLE, ACE_INVALID_HANDLE);
#endif /* ACE_WIN32 */
}
@@ -111,19 +111,19 @@ namespace ACE_OS
// This function returns the number of bytes in the file referenced by
// FD.
- ACE_INLINE off_t
+ ACE_INLINE long
filesize (ACE_HANDLE handle)
{
ACE_OS_TRACE ("ACE_OS::filesize");
#if defined (ACE_WIN32)
- ACE_WIN32CALL_RETURN (::GetFileSize (handle, 0), off_t, -1);
+ ACE_WIN32CALL_RETURN (::GetFileSize (handle, 0), long, -1);
#else /* !ACE_WIN32 */
ACE_stat sb;
- return ACE_OS::fstat (handle, &sb) == -1 ? -1 : sb.st_size;
+ return ACE_OS::fstat (handle, &sb) == -1 ? -1 : (long) sb.st_size;
#endif /* ACE_WIN32 */
}
- ACE_INLINE off_t
+ ACE_INLINE long
filesize (const ACE_TCHAR *filename)
{
ACE_OS_TRACE ("ACE_OS::filesize");
@@ -131,7 +131,7 @@ namespace ACE_OS
ACE_HANDLE h = ACE_OS::open (filename, O_RDONLY);
if (h != ACE_INVALID_HANDLE)
{
- off_t size = ACE_OS::filesize (h);
+ long size = ACE_OS::filesize (h);
ACE_OS::close (h);
return size;
}
@@ -154,7 +154,6 @@ namespace ACE_OS
# endif /* ACE_LACKS_LSTAT */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
lstat (const wchar_t *file, ACE_stat *stp)
{
@@ -162,10 +161,9 @@ namespace ACE_OS
# if defined (ACE_LACKS_LSTAT)
return ACE_OS::stat (file, stp);
# else
- return ACE_OS::lstat (ACE_Wide_To_Ascii (file).char_rep (), stp);
+ return ACE_OS::lstat (ACE_TEXT_TO_CHAR_IN (file), stp);
# endif /* ACE_LACKS_LSTAT */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
mkdir (const char *path, mode_t mode)
@@ -211,10 +209,10 @@ namespace ACE_OS
#elif defined (ACE_WIN32) && defined (__IBMCPP__) && (__IBMCPP__ >= 400)
ACE_UNUSED_ARG (mode);
- ACE_OSCALL_RETURN (::_mkdir (const_cast <char *> (path)), int, -1);
+ ACE_OSCALL_RETURN (::_mkdir ((char *) path), int, -1);
#elif defined (ACE_HAS_WINCE)
ACE_UNUSED_ARG (mode);
- ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::CreateDirectory (ACE_TEXT_CHAR_TO_TCHAR (path), 0),
+ ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::CreateDirectory (ACE_TEXT_TO_TCHAR_IN (path), 0),
ace_result_),
int, -1);
#elif defined (ACE_MKDIR_LACKS_MODE)
@@ -225,8 +223,6 @@ namespace ACE_OS
#endif /* ACE_PSOS_LACKS_PHILE */
}
-#if defined (ACE_HAS_WCHAR)
-
ACE_INLINE int
mkdir (const wchar_t *path, mode_t mode)
{
@@ -239,12 +235,10 @@ namespace ACE_OS
ACE_UNUSED_ARG (mode);
ACE_OSCALL_RETURN (::_wmkdir (path), int, -1);
#else
- return ACE_OS::mkdir (ACE_Wide_To_Ascii (path).char_rep (), mode);
+ return ACE_OS::mkdir (ACE_TEXT_TO_CHAR_IN (path), mode);
#endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
-
ACE_INLINE int
mkfifo (const ACE_TCHAR *file, mode_t mode)
{
@@ -254,7 +248,7 @@ namespace ACE_OS
ACE_UNUSED_ARG (mode);
ACE_NOTSUP_RETURN (-1);
#else
- ACE_OSCALL_RETURN (::mkfifo (ACE_TEXT_ALWAYS_CHAR (file), mode), int, -1);
+ ACE_OSCALL_RETURN (::mkfifo (ACE_TEXT_TO_CHAR_IN (file), mode), int, -1);
#endif /* ACE_LACKS_MKFIFO */
}
@@ -275,7 +269,7 @@ namespace ACE_OS
HANDLE fhandle;
- fhandle = ::FindFirstFile (ACE_TEXT_CHAR_TO_TCHAR (file), &fdata);
+ fhandle = ::FindFirstFile (ACE_TEXT_TO_TCHAR_IN (file), &fdata);
if (fhandle == INVALID_HANDLE_VALUE)
{
ACE_OS::set_errno_to_last_error ();
@@ -309,7 +303,6 @@ namespace ACE_OS
#endif /* ACE_HAS_NONCONST_STAT */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
stat (const wchar_t *file, ACE_stat *stp)
{
@@ -343,11 +336,9 @@ namespace ACE_OS
#elif defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_wstat (file, (struct _stat *) stp), int, -1);
#else /* ACE_HAS_WINCE */
- ACE_Wide_To_Ascii nfile (file);
- return ACE_OS::stat (nfile.char_rep (), stp);
+ return ACE_OS::stat (ACE_TEXT_TO_CHAR_IN (file), stp);
#endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE mode_t
umask (mode_t cmask)
@@ -356,7 +347,7 @@ namespace ACE_OS
# if defined (ACE_LACKS_UMASK)
ACE_UNUSED_ARG (cmask);
ACE_NOTSUP_RETURN ((mode_t)-1);
-# elif defined (ACE_WIN32) && !defined (__BORLANDC__)
+# elif defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_umask (cmask), mode_t, -1);
# else
return ::umask (cmask); // This call shouldn't fail...
@@ -364,5 +355,3 @@ namespace ACE_OS
}
} // ACE_OS namespace
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_time.cpp b/ace/OS_NS_sys_time.cpp
index be0a28d76b7..2109fa005e0 100644
--- a/ace/OS_NS_sys_time.cpp
+++ b/ace/OS_NS_sys_time.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_time.h"
diff --git a/ace/OS_NS_sys_time.h b/ace/OS_NS_sys_time.h
index 2bbcb30415f..23be37b8d29 100644
--- a/ace/OS_NS_sys_time.h
+++ b/ace/OS_NS_sys_time.h
@@ -33,10 +33,7 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
#if defined (ACE_WIN32) && defined (_WIN32_WCE)
// Something is a bit brain-damaged here and I'm not sure what... this code
// compiled before the OS reorg for ACE 5.4. Since then it hasn't - eVC
@@ -46,17 +43,13 @@ namespace ACE_OS
// - Steve Huston, 23-Aug-2004
extern "C++" {
#endif
-
ACE_NAMESPACE_INLINE_FUNCTION
ACE_Time_Value gettimeofday (void);
-
#if defined (ACE_WIN32) && defined (_WIN32_WCE)
}
#endif
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_time.inl b/ace/OS_NS_sys_time.inl
index 59f513aebcb..6aec9b145dc 100644
--- a/ace/OS_NS_sys_time.inl
+++ b/ace/OS_NS_sys_time.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/os_include/sys/os_time.h"
@@ -9,8 +8,6 @@
# include "ace/OS_NS_time.h"
#endif /* VXWORKS || CHORUS || ACE_PSOS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32) && defined (_WIN32_WCE)
// Something is a bit brain-damaged here and I'm not sure what... this code
// compiled before the OS reorg for ACE 5.4. Since then it hasn't - eVC
@@ -83,7 +80,7 @@ ACE_OS::gettimeofday (void)
#endif /* 0 */
#if !defined (ACE_HAS_WINCE)&& !defined (ACE_WIN32)
if (result == -1)
- return ACE_Time_Value (-1);
+ return -1;
else
return ACE_Time_Value (tv);
#endif // !defined (ACE_HAS_WINCE)&& !defined (ACE_WIN32)
@@ -92,5 +89,3 @@ ACE_OS::gettimeofday (void)
#if defined (ACE_WIN32) && defined (_WIN32_WCE)
}
#endif
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_uio.cpp b/ace/OS_NS_sys_uio.cpp
index 708ea5701a3..5b7563dc7fd 100644
--- a/ace/OS_NS_sys_uio.cpp
+++ b/ace/OS_NS_sys_uio.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_uio.h"
@@ -12,8 +13,6 @@ ACE_RCSID(ace, OS_NS_sys_uio, "$Id$")
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_LACKS_READV)
// "Fake" readv for operating systems without it. Note that this is
@@ -126,5 +125,3 @@ ACE_OS::writev_emulation (ACE_HANDLE handle, const iovec *iov, int n)
return bytes_sent;
}
# endif /* ACE_LACKS_WRITEV */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_uio.h b/ace/OS_NS_sys_uio.h
index 597a06919d9..2978b95501f 100644
--- a/ace/OS_NS_sys_uio.h
+++ b/ace/OS_NS_sys_uio.h
@@ -33,10 +33,7 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t readv (ACE_HANDLE handle,
@@ -66,8 +63,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_uio.inl b/ace/OS_NS_sys_uio.inl
index b8d112bba84..c216e9d0a8f 100644
--- a/ace/OS_NS_sys_uio.inl
+++ b/ace/OS_NS_sys_uio.inl
@@ -4,8 +4,6 @@
#include "ace/os_include/os_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ssize_t
ACE_OS::readv (ACE_HANDLE handle,
const iovec *iov,
@@ -18,11 +16,11 @@ ACE_OS::readv (ACE_HANDLE handle,
-1);
#else /* ACE_LACKS_READV */
#if defined (ACE_HAS_NONCONST_READV)
- ACE_OSCALL_RETURN (::readv (handle,
- const_cast<iovec *>(iov),
+ ACE_OSCALL_RETURN (::readv (handle,
+ const_cast<iovec *>(iov),
iovlen), ssize_t, -1);
#else
- ACE_OSCALL_RETURN (::readv (handle,
+ ACE_OSCALL_RETURN (::readv (handle,
iov,
iovlen), ssize_t, -1);
#endif /* ACE_HAS_NONCONST_READV */
@@ -51,5 +49,3 @@ ACE_OS::writev (ACE_HANDLE handle,
#endif /* ACE_HAS_NONCONST_WRITEV */
#endif /* ACE_LACKS_WRITEV */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_sys_utsname.cpp b/ace/OS_NS_sys_utsname.cpp
index ea4e96c1348..be9c24a089c 100644
--- a/ace/OS_NS_sys_utsname.cpp
+++ b/ace/OS_NS_sys_utsname.cpp
@@ -1,27 +1,32 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_utsname.h"
ACE_RCSID(ace, OS_NS_sys_utsname, "$Id$")
+#if !defined (ACE_HAS_INLINED_OSCALLS)
+# include "ace/OS_NS_sys_utsname.inl"
+#endif /* ACE_HAS_INLINED_OS_CALLS */
+
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_UNAME)
+#if defined (VXWORKS)
// for sysBspRev(), sysModel()
-# include /**/ <sysLib.h>
-#endif /* ACE_VXWORKS && ACE_LACKS_UNAME */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+# include /**/ <sysLib.h>
+#endif /* VXWORKS */
+#if defined (ACE_WIN32) || defined (VXWORKS) || defined (CHORUS) || defined (ACE_PSOS)
+// Don't inline on those platforms because this function contains
+// string literals, and some compilers, e.g., g++, don't handle those
+// efficiently in unused inline functions.
int
ACE_OS::uname (ACE_utsname *name)
{
ACE_OS_TRACE ("ACE_OS::uname");
-#if !defined (ACE_LACKS_UNAME)
- ACE_OSCALL_RETURN (::uname (name), int, -1);
-#elif defined (ACE_WIN32)
+# if defined (ACE_WIN32)
size_t maxnamelen = sizeof name->nodename;
ACE_OS::strcpy (name->sysname,
ACE_LIB_TEXT ("Win32"));
@@ -133,20 +138,6 @@ ACE_OS::uname (ACE_utsname *name)
sinfo.wProcessorLevel);
break;
# endif
-# if defined PROCESSOR_ARCHITECTURE_AMD64
- case PROCESSOR_ARCHITECTURE_AMD64:
- ACE_OS::strcpy (processor, ACE_LIB_TEXT ("x64"));
- ACE_OS::sprintf (subtype, ACE_LIB_TEXT ("%d"),
- sinfo.wProcessorLevel);
- break;
-# endif
-# if defined PROCESSOR_ARCHITECTURE_IA32_ON_WIN64
- case PROCESSOR_ARCHITECTURE_IA32_ON_WIN64:
- ACE_OS::strcpy (processor, ACE_LIB_TEXT ("WOW64"));
- ACE_OS::sprintf (subtype, ACE_LIB_TEXT ("%d"),
- sinfo.wProcessorLevel);
- break;
-# endif
# if defined PROCESSOR_ARCHITECTURE_ARM
case PROCESSOR_ARCHITECTURE_ARM:
ACE_OS::strcpy (processor, ACE_LIB_TEXT ("ARM"));
@@ -214,7 +205,7 @@ ACE_OS::uname (ACE_utsname *name)
return ACE_OS::hostname (name->nodename, maxnamelen);
# endif /* ACE_LACKS_HOSTNAME */
-#elif defined (ACE_VXWORKS)
+# elif defined (VXWORKS)
size_t maxnamelen = sizeof name->nodename;
ACE_OS::strcpy (name->sysname, "VxWorks");
ACE_OS::strcpy (name->release, "???");
@@ -222,7 +213,7 @@ ACE_OS::uname (ACE_utsname *name)
ACE_OS::strcpy (name->machine, sysModel ());
return ACE_OS::hostname (name->nodename, maxnamelen);
-#elif defined (CHORUS)
+# elif defined (CHORUS)
size_t maxnamelen = sizeof name->nodename;
ACE_OS::strcpy (name->sysname, "CHORUS/ClassiX");
ACE_OS::strcpy (name->release, "???");
@@ -239,18 +230,7 @@ ACE_OS::uname (ACE_utsname *name)
ACE_OS::strcpy (name->release, "???");
ACE_OS::strcpy (name->version, buf);
ACE_OS::strcpy (name->machine, "PPC 405"); // a bit of a hack
-#elif defined (INTEGRITY)
- if(!name) {
- errno = EFAULT;
- return -1;
- }
- strcpy(name->sysname,"INTEGRITY");
- int status = gethostname(name->nodename,_SYS_NMLN);
- strcpy(name->release,"4.0");
- strcpy(name->version,"4.0.9");
- strcpy(name->machine,"a standard name");
- return status;
+
#endif /* ACE_WIN32 */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_WIN32 || VXWORKS */
diff --git a/ace/OS_NS_sys_utsname.h b/ace/OS_NS_sys_utsname.h
index 968c9ee28a8..b65268a37f4 100644
--- a/ace/OS_NS_sys_utsname.h
+++ b/ace/OS_NS_sys_utsname.h
@@ -39,7 +39,6 @@
# if !defined (_SYS_NMLN)
# define _SYS_NMLN SYS_NMLN
# endif /* _SYS_NMLN */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
struct ACE_utsname
{
ACE_TCHAR sysname[_SYS_NMLN];
@@ -48,24 +47,29 @@ struct ACE_utsname
ACE_TCHAR version[_SYS_NMLN];
ACE_TCHAR machine[_SYS_NMLN];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
# else
# include "ace/os_include/sys/os_utsname.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef struct utsname ACE_utsname;
-ACE_END_VERSIONED_NAMESPACE_DECL
# endif /* ACE_LACKS_UTSNAME_T */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
+#if !defined (ACE_WIN32) && !defined (VXWORKS) && !defined (CHORUS) && !defined (ACE_PSOS)
+ ACE_NAMESPACE_INLINE_FUNCTION
+#else
extern ACE_Export
+#endif /* ! ACE_WIN32 && ! VXWORKS && ! CHORUS */
int uname (ACE_utsname *name);
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
+# if defined (ACE_HAS_INLINED_OSCALLS)
+# if defined (ACE_INLINE)
+# undef ACE_INLINE
+# endif /* ACE_INLINE */
+# define ACE_INLINE inline
+# include "ace/OS_NS_sys_utsname.inl"
+# endif /* ACE_HAS_INLINED_OSCALLS */
# include /**/ "ace/post.h"
#endif /* ACE_OS_NS_SYS_UTSNAME_H */
diff --git a/ace/OS_NS_sys_utsname.inl b/ace/OS_NS_sys_utsname.inl
new file mode 100644
index 00000000000..eb660f2cad6
--- /dev/null
+++ b/ace/OS_NS_sys_utsname.inl
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#include "ace/os_include/os_errno.h"
+
+namespace ACE_OS
+{
+#if !defined (ACE_WIN32) && !defined (VXWORKS) && !defined (CHORUS) && !defined (ACE_PSOS)
+// Don't inline on those platforms because this function contains
+// string literals, and some compilers, e.g., g++, don't handle those
+// efficiently in unused inline functions.
+ ACE_INLINE int
+ uname (ACE_utsname *name)
+ {
+#if defined (INTEGRITY)
+ if(!name) {
+ errno = EFAULT;
+ return -1;
+ }
+ strcpy(name->sysname,"INTEGRITY");
+ int status = gethostname(name->nodename,_SYS_NMLN);
+ strcpy(name->release,"4.0");
+ strcpy(name->version,"4.0.9");
+ strcpy(name->machine,"a standard name");
+ return status;
+#else
+ ACE_OS_TRACE ("ACE_OS::uname");
+ ACE_OSCALL_RETURN (::uname (name), int, -1);
+#endif
+ }
+#endif /* ! ACE_WIN32 && ! VXWORKS && ! CHORUS */
+} // namespace ACE_OS
diff --git a/ace/OS_NS_sys_wait.cpp b/ace/OS_NS_sys_wait.cpp
index 0e0e6abcbe1..0a1b8ee4d50 100644
--- a/ace/OS_NS_sys_wait.cpp
+++ b/ace/OS_NS_sys_wait.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_sys_wait.h"
diff --git a/ace/OS_NS_sys_wait.h b/ace/OS_NS_sys_wait.h
index 58113c7d5b1..5fccad22916 100644
--- a/ace/OS_NS_sys_wait.h
+++ b/ace/OS_NS_sys_wait.h
@@ -33,23 +33,20 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+namespace ACE_OS {
-namespace ACE_OS
-{
-
- /// Calls OS @c ::wait function, so it's only portable to UNIX/POSIX
+ /// Calls OS <::wait> function, so it's only portable to UNIX/POSIX
/// platforms.
ACE_NAMESPACE_INLINE_FUNCTION
pid_t wait (int * = 0);
/**
- * Calls @c ::WaitForSingleObject on Win32 and ACE::waitpid ()
- * otherwise. Returns the passed in @a pid_t on success and -1 on
+ * Calls <::WaitForSingleObject> on Win32 and <ACE::waitpid>
+ * otherwise. Returns the passed in <pid_t> on success and -1 on
* failure.
- * On Win32, @a pid is ignored if the @a handle is not equal to 0.
- * Passing the process @a handle is prefer on Win32 because using
- * @a pid to wait on the project doesn't always work correctly
+ * On Win32, <pid> is ignored if the <handle> is not equal to 0.
+ * Passing the process <handle> is prefer on Win32 because using
+ * <pid> to wait on the project doesn't always work correctly
* if the waited process has already terminated.
*/
ACE_NAMESPACE_INLINE_FUNCTION
@@ -59,11 +56,11 @@ namespace ACE_OS
ACE_HANDLE handle = 0);
/**
- * Calls @c ::waitpid on UNIX/POSIX platforms and @c ::await on
- * Chorus. Does not work on Vxworks 5.5.x, or pSoS.
- * On Win32, @a pid is ignored if the @a handle is not equal to 0.
- * Passing the process @a handle is prefer on Win32 because using
- * @a pid to wait on the project doesn't always work correctly
+ * Calls <::waitpid> on UNIX/POSIX platforms and <::await> on
+ * Chorus. Does not work on Vxworks, or pSoS.
+ * On Win32, <pid> is ignored if the <handle> is not equal to 0.
+ * Passing the process <handle> is prefer on Win32 because using
+ * <pid> to wait on the project doesn't always work correctly
* if the waited process has already terminated.
*/
ACE_NAMESPACE_INLINE_FUNCTION
@@ -74,8 +71,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_sys_wait.inl b/ace/OS_NS_sys_wait.inl
index d8d3247cbcf..85afcb961ce 100644
--- a/ace/OS_NS_sys_wait.inl
+++ b/ace/OS_NS_sys_wait.inl
@@ -1,12 +1,9 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_errno.h"
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE pid_t
ACE_OS::wait (int *status)
{
@@ -112,4 +109,4 @@ ACE_OS::wait (pid_t pid,
handle);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/OS_NS_time.cpp b/ace/OS_NS_time.cpp
index 70b783c7fac..1ff3be39f7f 100644
--- a/ace/OS_NS_time.cpp
+++ b/ace/OS_NS_time.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_time.h"
@@ -17,42 +18,26 @@ ACE_RCSID(ace, OS_NS_time, "$Id$")
#if defined (ACE_HAS_WINCE)
# include "ace/OS_NS_stdio.h" /* Need ACE_OS::sprintf() */
-
-namespace
-{
- ACE_TCHAR const * const ACE_OS_day_of_week_name[] =
- {
- ACE_LIB_TEXT ("Sun"),
- ACE_LIB_TEXT ("Mon"),
- ACE_LIB_TEXT ("Tue"),
- ACE_LIB_TEXT ("Wed"),
- ACE_LIB_TEXT ("Thu"),
- ACE_LIB_TEXT ("Fri"),
- ACE_LIB_TEXT ("Sat")
- };
-
- ACE_TCHAR const * const ACE_OS_month_name[] =
- {
- ACE_LIB_TEXT ("Jan"),
- ACE_LIB_TEXT ("Feb"),
- ACE_LIB_TEXT ("Mar"),
- ACE_LIB_TEXT ("Apr"),
- ACE_LIB_TEXT ("May"),
- ACE_LIB_TEXT ("Jun"),
- ACE_LIB_TEXT ("Jul"),
- ACE_LIB_TEXT ("Aug"),
- ACE_LIB_TEXT ("Sep"),
- ACE_LIB_TEXT ("Oct"),
- ACE_LIB_TEXT ("Nov"),
- ACE_LIB_TEXT ("Dec")
- };
-
- static ACE_TCHAR const ACE_OS_CTIME_R_FMTSTR[] = ACE_LIB_TEXT ("%3s %3s %02d %02d:%02d:%02d %04d\n");
-} /* end blank namespace */
+const ACE_TCHAR *ACE_OS::day_of_week_name[7] =
+ {ACE_LIB_TEXT ("Sun"),
+ ACE_LIB_TEXT ("Mon"),
+ ACE_LIB_TEXT ("Tue"),
+ ACE_LIB_TEXT ("Wed"),
+ ACE_LIB_TEXT ("Thu"),
+ ACE_LIB_TEXT ("Fri"),
+ ACE_LIB_TEXT ("Sat")};
+
+const ACE_TCHAR *ACE_OS::month_name[12] =
+ {ACE_LIB_TEXT ("Jan"), ACE_LIB_TEXT ("Feb"),
+ ACE_LIB_TEXT ("Mar"), ACE_LIB_TEXT ("Apr"),
+ ACE_LIB_TEXT ("May"), ACE_LIB_TEXT ("Jun"),
+ ACE_LIB_TEXT ("Jul"), ACE_LIB_TEXT ("Aug"),
+ ACE_LIB_TEXT ("Sep"), ACE_LIB_TEXT ("Oct"),
+ ACE_LIB_TEXT ("Nov"), ACE_LIB_TEXT ("Dec") };
+
+static const ACE_TCHAR *ACE_OS_CTIME_R_FMTSTR = ACE_LIB_TEXT ("%3s %3s %02d %02d:%02d:%02d %04d\n");
#endif /* ACE_HAS_WINCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_PSOS)
// bit masks and shifts for prying info out of the pSOS time encoding
@@ -252,8 +237,8 @@ ACE_OS::ctime_r (const time_t *clock, ACE_TCHAR *buf, int buflen)
FileTimeToLocalFileTime (&file_time, &localtime);
FileTimeToSystemTime (&localtime, &systime);
ACE_OS::sprintf (buf, ACE_OS_CTIME_R_FMTSTR,
- ACE_OS_day_of_week_name[systime.wDayOfWeek],
- ACE_OS_month_name[systime.wMonth - 1],
+ ACE_OS::day_of_week_name[systime.wDayOfWeek],
+ ACE_OS::month_name[systime.wMonth - 1],
systime.wDay,
systime.wHour,
systime.wMinute,
@@ -462,7 +447,7 @@ ACE_OS::localtime_r (const time_t *t, struct tm *res)
res->tm_mday = systime.wDay;
res->tm_min = systime.wMinute;
- res->tm_mon = systime.wMonth - 1;
+ res->tm_mon = systime.wMonth;
res->tm_sec = systime.wSecond;
res->tm_wday = systime.wDayOfWeek;
res->tm_yday = __mon_yday[iLeap][systime.wMonth] + systime.wDay;
@@ -806,5 +791,3 @@ ACE_OS::strptime_getnum (char *buf,
}
# endif /* ACE_LACKS_NATIVE_STRPTIME */
#endif /* ACE_HAS_STRPTIME */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_time.h b/ace/OS_NS_time.h
index a0be9688f7a..a9a4186a928 100644
--- a/ace/OS_NS_time.h
+++ b/ace/OS_NS_time.h
@@ -40,8 +40,6 @@
# undef asctime_r
# endif /* ACE_HAS_BROKEN_R_ROUTINES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Type-safe, and unsigned.
static const ACE_UINT32 ACE_U_ONE_SECOND_IN_MSECS = 1000U;
static const ACE_UINT32 ACE_U_ONE_SECOND_IN_USECS = 1000000U;
@@ -156,14 +154,14 @@ inline long ace_timezone()
#elif defined (ACE_HAS_TIMEZONE_GETTIMEOFDAY)
// The XPG/POSIX specification does not require gettimeofday to
// set the timezone struct (it leaves the behavior of passing a
- // non-null struct undefined).
+ // non-null struct undefined).
long result = 0;
struct timeval time;
struct timezone zone;
ACE_UNUSED_ARG (result);
ACE_OSCALL (::gettimeofday (&time, &zone), int, -1, result);
return zone.tz_minuteswest * 60;
-#else
+#else
ACE_NOTSUP_RETURN (0);
#endif
}
@@ -215,6 +213,7 @@ typedef long long ACE_hrtime_t;
# endif /* ! ACE_HAS_HI_RES_TIMER || ACE_LACKS_LONGLONG_T */
# endif /* ACE_WIN32 */
+
# if defined (ACE_HRTIME_T_IS_BASIC_TYPE)
# define ACE_HRTIME_CONVERSION(VAL) (VAL)
# define ACE_HRTIME_TO_U64(VAL) ACE_U_LongLong(VAL)
@@ -223,8 +222,14 @@ typedef long long ACE_hrtime_t;
# define ACE_HRTIME_TO_U64(VAL) (VAL)
# endif
-namespace ACE_OS
-{
+
+namespace ACE_OS {
+
+# if defined (ACE_HAS_WINCE)
+ /// Supporting data for ctime and ctime_r functions on WinCE.
+ const ACE_TCHAR *day_of_week_name[];
+ const ACE_TCHAR *month_name[];
+# endif /* ACE_HAS_WINCE */
# if defined (CHORUS) && !defined (CHORUS_4)
// We must format this code as follows to avoid confusing OSE.
@@ -260,7 +265,7 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
int clock_settime (clockid_t,
- const struct timespec *);
+ const struct timespec *);
ACE_NAMESPACE_INLINE_FUNCTION
ACE_TCHAR *ctime (const time_t *t);
@@ -351,19 +356,6 @@ namespace ACE_OS
//@}
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && defined (ghs) \
- && defined (ACE_HAS_PENTIUM) \
- && !defined (ACE_WIN32)
-#define ACE_GETHRTIME_NAME ACE_PREPROC_CONCATENATE(ACE_,ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _gethrtime))
-#else
-# define ACE_GETHRTIME_NAME ACE_gethrtime
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_time.inl b/ace/OS_NS_time.inl
index 99ca079478c..b9243532d15 100644
--- a/ace/OS_NS_time.inl
+++ b/ace/OS_NS_time.inl
@@ -1,5 +1,4 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_string.h"
@@ -7,8 +6,7 @@
#include "ace/Time_Value.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_time.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+//#include "ace/TSS_T.h"
ACE_INLINE char *
ACE_OS::asctime (const struct tm *t)
@@ -115,24 +113,31 @@ ACE_OS::ctime (const time_t *t)
#elif defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
ACE_OSCALL_RETURN (::_wctime (t), wchar_t *, 0);
#else
-# if defined (ACE_USES_WCHAR) /* Not Win32, else it would do the above */
+# if defined (ACE_USES_WCHAR) // Wide and not Win32
char *narrow_time;
ACE_OSCALL (::ctime (t), char *, 0, narrow_time);
if (narrow_time == 0)
return 0;
- // ACE_Ascii_To_Wide::convert allocates (via new []) a wchar_t[]. If
+ // ACE_TEXT_TO_MALLOC_WCHAR_OUT allocates (via malloc) a wchar_t[]. If
// we've done this before, free the previous one. Yes, this leaves a
// small memory leak (26 characters) but there's no way around this
// that I know of. (Steve Huston, 12-Feb-2003).
- static wchar_t *wide_time = 0;
- if (wide_time != 0)
- delete [] wide_time;
- wide_time = ACE_Ascii_To_Wide::convert (narrow_time);
+// Including ACE_TSS_T.h causes error!
+/*
+ wchar_t* init = 0;
+ static ACE_TSS< wchar_t* > wide_time (&init);
+ ACE::String_Conversion::Allocator_malloc<wchar_t>().free(*wide_time);
+ *wide_time.ts_object() = ACE_TEXT_TO_MALLOC_WCHAR_OUT (narrow_time);
+ return *wide_time;
+*/
+ static wchar_t* wide_time = 0;
+ ACE::String_Conversion::Allocator_malloc<wchar_t>().free(wide_time);
+ wide_time = ACE_TEXT_TO_MALLOC_WCHAR_OUT (narrow_time);
return wide_time;
# else
ACE_OSCALL_RETURN (::ctime (t), char *, 0);
-# endif /* ACE_USES_WCHAR */
-# endif /* ACE_HAS_BROKEN_CTIME */
+# endif // ACE_USES_WCHAR
+# endif // ACE_HAS_BROKEN_CTIME
}
#if !defined (ACE_HAS_WINCE) /* CE version in OS.cpp */
@@ -178,8 +183,7 @@ ACE_OS::ctime_r (const time_t *t, ACE_TCHAR *buf, int buflen)
return 0;
# if defined (ACE_USES_WCHAR)
- ACE_Ascii_To_Wide wide_buf (bufp);
- ACE_OS_String::strcpy (buf, wide_buf.wchar_rep ());
+ ACE_OS::string_copy (buf, bufp, buflen);
return buf;
# else
return bufp;
@@ -219,7 +223,7 @@ ACE_OS::difftime (time_t t1, time_t t0)
#endif /* ! ACE_LACKS_DIFFTIME */
#if defined (ghs) && defined (ACE_HAS_PENTIUM) && !defined (ACE_WIN32)
- extern "C" ACE_hrtime_t ACE_GETHRTIME_NAME ();
+ extern "C" ACE_hrtime_t ACE_gethrtime ();
#endif /* ghs && ACE_HAS_PENTIUM */
ACE_INLINE ACE_hrtime_t
@@ -240,7 +244,7 @@ ACE_OS::gethrtime (const ACE_HRTimer_Op op)
#elif defined (ghs) && defined (ACE_HAS_PENTIUM) && !defined (ACE_WIN32)
ACE_UNUSED_ARG (op);
// Use .obj/gethrtime.o, which was compiled with g++.
- return ACE_GETHRTIME_NAME ();
+ return ACE_gethrtime ();
#elif (defined(__KCC) || defined (__GNUG__) || defined (__INTEL_COMPILER)) && !defined (ACE_WIN32) && !defined(ACE_VXWORKS) && defined (ACE_HAS_PENTIUM)
ACE_UNUSED_ARG (op);
# if defined (ACE_LACKS_LONGLONG_T)
@@ -360,12 +364,7 @@ ACE_OS::gethrtime (const ACE_HRTimer_Op op)
ACE_UNUSED_ARG (op);
struct timespec ts;
- ACE_OS::clock_gettime (
-#if defined (ACE_HAS_CLOCK_GETTIME_MONOTONIC)
- CLOCK_MONOTONIC,
-#endif /* !ACE_HAS_CLOCK_GETTIME_MONOTONIC */
- CLOCK_REALTIME,
- &ts);
+ ACE_OS::clock_gettime (CLOCK_REALTIME, &ts);
// Carefully create the return value to avoid arithmetic overflow
// if ACE_hrtime_t is ACE_U_LongLong.
@@ -484,8 +483,13 @@ ACE_OS::nanosleep (const struct timespec *requested,
ACE_UNUSED_ARG (remaining);
// Convert into seconds and microseconds.
- ACE_Time_Value tv (requested->tv_sec,
+# if ! defined(ACE_HAS_BROKEN_TIMESPEC_MEMBERS)
+ ACE_Time_Value tv (static_cast<long>(requested->tv_sec),
requested->tv_nsec / 1000);
+# else
+ ACE_Time_Value tv (requested->ts_sec,
+ requested->ts_nsec / 1000);
+# endif /* ACE_HAS_BROKEN_TIMESPEC_MEMBERS */
return ACE_OS::sleep (tv);
#endif /* ACE_HAS_CLOCK_GETTIME */
}
@@ -558,4 +562,3 @@ ACE_OS::tzset (void)
# endif /* ACE_HAS_WINCE && !VXWORKS && !ACE_PSOS && !__rtems__ && !ACE_HAS_DINKUM_STL */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_unistd.cpp b/ace/OS_NS_unistd.cpp
index e23686974c7..5bddc627589 100644
--- a/ace/OS_NS_unistd.cpp
+++ b/ace/OS_NS_unistd.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_NS_unistd.h"
@@ -16,7 +17,11 @@ ACE_RCSID(ace, OS_NS_unistd, "$Id$")
#include "ace/OS_NS_Thread.h"
#include "ace/Object_Manager_Base.h"
#include "ace/os_include/sys/os_pstat.h"
-#include "ace/os_include/sys/os_sysctl.h"
+
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+// for sysctl(), used by ACE_OS::num_processors()
+#include <sys/sysctl.h>
+#endif
#if defined (ACE_NEEDS_FTRUNCATE)
extern "C" int
@@ -34,8 +39,6 @@ ftruncate (ACE_HANDLE handle, long len)
/*****************************************************************************/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_OS::argv_to_string (ACE_TCHAR **argv,
ACE_TCHAR *&buf,
@@ -54,7 +57,7 @@ ACE_OS::argv_to_string (ACE_TCHAR **argv,
// Account for environment variables.
if (substitute_env_args && argv[i][0] == ACE_LIB_TEXT ('$'))
{
-# if defined (ACE_WIN32) || !defined (ACE_HAS_WCHAR)
+# if defined (ACE_WIN32)
ACE_TCHAR *temp = 0;
// Win32 is the only platform with a wide-char ACE_OS::getenv().
if ((temp = ACE_OS::getenv (&argv[i][1])) != 0)
@@ -62,17 +65,17 @@ ACE_OS::argv_to_string (ACE_TCHAR **argv,
else
buf_len += ACE_OS::strlen (argv[i]);
# else
- // This is an ACE_HAS_WCHAR platform and not ACE_WIN32.
+ // This is not ACE_WIN32.
// Convert the env variable name for getenv(), then add
// the length of the returned char *string. Later, when we
// actually use the returned env variable value, convert it
// as well.
- char *ctemp = ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (&argv[i][1]));
+ char *ctemp = ACE_OS::getenv (ACE_TEXT_TO_CHAR_IN (&argv[i][1]));
if (ctemp == 0)
buf_len += ACE_OS::strlen (argv[i]);
else
buf_len += ACE_OS::strlen (ctemp);
-# endif /* ACE_WIN32 || !ACE_HAS_WCHAR */
+# endif /* ACE_WIN32 */
}
else
#endif /* ACE_LACKS_ENV */
@@ -101,7 +104,7 @@ ACE_OS::argv_to_string (ACE_TCHAR **argv,
// Account for environment variables.
if (substitute_env_args && argv[j][0] == ACE_LIB_TEXT ('$'))
{
-# if defined (ACE_WIN32) || !defined (ACE_HAS_WCHAR)
+# if defined (ACE_WIN32)
// Win32 is the only platform with a wide-char ACE_OS::getenv().
ACE_TCHAR *temp = ACE_OS::getenv (&argv[j][1]);
if (temp != 0)
@@ -109,15 +112,15 @@ ACE_OS::argv_to_string (ACE_TCHAR **argv,
else
end = ACE_OS::strecpy (end, argv[j]);
# else
- // This is an ACE_HAS_WCHAR platform and not ACE_WIN32.
+ // This is not ACE_WIN32.
// Convert the env variable name for getenv(), then convert
// the returned char *string back to wchar_t.
- char *ctemp = ACE_OS::getenv (ACE_TEXT_ALWAYS_CHAR (&argv[j][1]));
+ char *ctemp = ACE_OS::getenv (ACE_TEXT_TO_CHAR_IN (&argv[j][1]));
if (ctemp == 0)
end = ACE_OS::strecpy (end, argv[j]);
else
- end = ACE_OS::strecpy (end, ACE_TEXT_CHAR_TO_TCHAR (ctemp));
-# endif /* ACE_WIN32 || !ACE_HAS_WCHAR */
+ end = ACE_OS::strecpy (end, ACE_TEXT_TO_TCHAR_IN (ctemp));
+# endif /* ACE_WIN32 */
}
else
#endif /* ACE_LACKS_ENV */
@@ -248,7 +251,7 @@ ACE_OS::fork_exec (ACE_TCHAR *argv[])
// narrow char strings for execv().
char **cargv;
int arg_count;
-# endif /* ACE_HAS_WCHAR */
+# endif /* ACE_USES_WCHAR */
switch (result)
{
@@ -267,7 +270,7 @@ ACE_OS::fork_exec (ACE_TCHAR *argv[])
--arg_count; // Back to 0-indexed
cargv[arg_count] = 0;
while (--arg_count >= 0)
- cargv[arg_count] = ACE_Wide_To_Ascii::convert (argv[arg_count]);
+ cargv[arg_count] = ACE_TEXT_TO_CHAR_OUT(argv[arg_count]); // memory allocated!
// Don't worry about freeing the cargv or the strings it points to.
// Either the process will be replaced, or we'll exit.
if (ACE_OS::execv (cargv[0], cargv) == -1)
@@ -282,7 +285,7 @@ ACE_OS::fork_exec (ACE_TCHAR *argv[])
// If the execv fails, this child needs to exit.
ACE_OS::exit (errno);
}
-# endif /* ACE_HAS_WCHAR */
+# endif /* ACE_USES_WCHAR */
default:
// Server process. The fork succeeded.
@@ -298,17 +301,17 @@ ACE_OS::num_processors (void)
#if defined (ACE_HAS_PHARLAP)
return 1;
-#elif defined (ACE_WIN32)
+#elif defined (ACE_WIN32) || defined (ACE_WIN64)
SYSTEM_INFO sys_info;
::GetSystemInfo (&sys_info);
return sys_info.dwNumberOfProcessors;
-#elif defined (_SC_NPROCESSORS_CONF)
+#elif defined (linux) || defined (sun) || defined (DIGITAL_UNIX) || defined (CYGWIN32)
return ::sysconf (_SC_NPROCESSORS_CONF);
-#elif defined (ACE_HAS_SYSCTL)
+#elif defined(__FreeBSD__) || defined (__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
int num_processors;
int mib[2] = { CTL_HW, HW_NCPU };
size_t len = sizeof (num_processors);
-
+
sysctl(mib, 2, &num_processors, &len, NULL, 0);
return num_processors;
#else
@@ -323,25 +326,25 @@ ACE_OS::num_processors_online (void)
#if defined (ACE_HAS_PHARLAP)
return 1;
-#elif defined (ACE_WIN32)
+#elif defined (ACE_WIN32) || defined (ACE_WIN64)
SYSTEM_INFO sys_info;
::GetSystemInfo (&sys_info);
return sys_info.dwNumberOfProcessors;
-#elif defined (_SC_NPROCESSORS_ONLN)
+#elif defined (linux) || defined (sun) || defined (DIGITAL_UNIX) || defined (CYGWIN32)
return ::sysconf (_SC_NPROCESSORS_ONLN);
-#elif defined (ACE_HAS_SYSCTL)
- int num_processors;
- int mib[2] = { CTL_HW, HW_NCPU };
- size_t len = sizeof (num_processors);
-
- sysctl(mib, 2, &num_processors, &len, NULL, 0);
- return num_processors;
#elif defined (__hpux)
struct pst_dynamic psd;
if (::pstat_getdynamic (&psd, sizeof (psd), (size_t) 1, 0) != -1)
return psd.psd_proc_cnt;
else
return -1;
+#elif defined(__FreeBSD__) || defined (__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+ int num_processors;
+ int mib[2] = { CTL_HW, HW_NCPU };
+ size_t len = sizeof (num_processors);
+
+ sysctl(mib, 2, &num_processors, &len, NULL, 0);
+ return num_processors;
#else
ACE_NOTSUP_RETURN (-1);
#endif
@@ -616,135 +619,6 @@ ACE_OS::pwrite (ACE_HANDLE handle,
# endif /* ACE_HAD_P_READ_WRITE */
}
-int
-ACE_OS::string_to_argv (ACE_TCHAR *buf,
- int &argc,
- ACE_TCHAR **&argv,
- int substitute_env_args)
-{
- // Reset the number of arguments
- argc = 0;
-
- if (buf == 0)
- return -1;
-
- ACE_TCHAR *cp = buf;
-
- // First pass: count arguments.
-
- // '#' is the start-comment token..
- while (*cp != ACE_LIB_TEXT ('\0') && *cp != ACE_LIB_TEXT ('#'))
- {
- // Skip whitespace..
- while (ACE_OS::ace_isspace (*cp))
- cp++;
-
- // Increment count and move to next whitespace..
- if (*cp != ACE_LIB_TEXT ('\0'))
- argc++;
-
- while (*cp != ACE_LIB_TEXT ('\0') && !ACE_OS::ace_isspace (*cp))
- {
- // Grok quotes....
- if (*cp == ACE_LIB_TEXT ('\'') || *cp == ACE_LIB_TEXT ('"'))
- {
- ACE_TCHAR quote = *cp;
-
- // Scan past the string..
- for (cp++; *cp != ACE_LIB_TEXT ('\0') && *cp != quote; cp++)
- continue;
-
- // '\0' implies unmatched quote..
- if (*cp == ACE_LIB_TEXT ('\0'))
- {
- argc--;
- break;
- }
- else
- cp++;
- }
- else
- cp++;
- }
- }
-
- // Second pass: copy arguments.
- ACE_TCHAR arg[ACE_DEFAULT_ARGV_BUFSIZ];
- ACE_TCHAR *argp = arg;
-
- // Make sure that the buffer we're copying into is always large
- // enough.
- if (cp - buf >= ACE_DEFAULT_ARGV_BUFSIZ)
- ACE_NEW_RETURN (argp,
- ACE_TCHAR[cp - buf + 1],
- -1);
-
- // Make a new argv vector of argc + 1 elements.
- ACE_NEW_RETURN (argv,
- ACE_TCHAR *[argc + 1],
- -1);
-
- ACE_TCHAR *ptr = buf;
-
- for (int i = 0; i < argc; i++)
- {
- // Skip whitespace..
- while (ACE_OS::ace_isspace (*ptr))
- ptr++;
-
- // Copy next argument and move to next whitespace..
- cp = argp;
- while (*ptr != ACE_LIB_TEXT ('\0') && !ACE_OS::ace_isspace (*ptr))
- if (*ptr == ACE_LIB_TEXT ('\'') || *ptr == ACE_LIB_TEXT ('"'))
- {
- ACE_TCHAR quote = *ptr++;
-
- while (*ptr != ACE_LIB_TEXT ('\0') && *ptr != quote)
- *cp++ = *ptr++;
-
- if (*ptr == quote)
- ptr++;
- }
- else
- *cp++ = *ptr++;
-
- *cp = ACE_LIB_TEXT ('\0');
-
-#if !defined (ACE_LACKS_ENV)
- // Check for environment variable substitution here.
- if (substitute_env_args) {
- argv[i] = ACE_OS::strenvdup(argp);
-
- if (argv[i] == 0)
- {
- if (argp != arg)
- delete [] argp;
- errno = ENOMEM;
- return -1;
- }
- }
- else
-#endif /* ACE_LACKS_ENV */
- {
- argv[i] = ACE_OS::strdup(argp);
-
- if (argv[i] == 0)
- {
- if (argp != arg)
- delete [] argp;
- errno = ENOMEM;
- return -1;
- }
- }
- }
-
- if (argp != arg)
- delete [] argp;
-
- argv[argc] = 0;
- return 0;
-}
-
// Write <len> bytes from <buf> to <handle> (uses the <write>
// system call on UNIX and the <WriteFile> call on Win32).
@@ -773,4 +647,3 @@ ACE_OS::write_n (ACE_HANDLE handle,
return bytes_transferred;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_unistd.h b/ace/OS_NS_unistd.h
index 680c97b7aed..1e4d5cb16eb 100644
--- a/ace/OS_NS_unistd.h
+++ b/ace/OS_NS_unistd.h
@@ -41,24 +41,19 @@
extern "C" ACE_Export int ftruncate (ACE_HANDLE handle, long len);
#endif /* ACE_NEEDS_FTRUNCATE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_OS
-{
+namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
int access (const char *path, int amode);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int access (const wchar_t *path, int amode);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
unsigned int alarm (u_int secs);
ACE_NAMESPACE_INLINE_FUNCTION
- long allocation_granularity (void);
+ int allocation_granularity (void);
// used by ARGV::argv_to_string() and ACE_OS::fork_exec()
extern ACE_Export
@@ -70,19 +65,15 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
int chdir (const char *path);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int chdir (const wchar_t *path);
-#endif /* ACE_HAS_WCHAR */
#endif /* ACE_LACKS_CHDIR */
ACE_NAMESPACE_INLINE_FUNCTION
int rmdir (const char *path);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int rmdir (const wchar_t *path);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int close (ACE_HANDLE handle);
@@ -144,18 +135,13 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
char *getcwd (char *, size_t);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *getcwd (wchar_t *, size_t);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
gid_t getgid (void);
ACE_NAMESPACE_INLINE_FUNCTION
- gid_t getegid (void);
-
- ACE_NAMESPACE_INLINE_FUNCTION
int getopt (int argc,
char *const *argv,
const char *optstring);
@@ -175,19 +161,14 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
uid_t getuid (void);
- ACE_NAMESPACE_INLINE_FUNCTION
- uid_t geteuid (void);
-
// should call gethostname()
ACE_NAMESPACE_INLINE_FUNCTION
int hostname (char *name,
size_t maxnamelen);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int hostname (wchar_t *name,
size_t maxnamelen);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
int isatty (int handle);
@@ -261,15 +242,12 @@ namespace ACE_OS
size_t bufsiz);
ACE_NAMESPACE_INLINE_FUNCTION
- void *sbrk (ptrdiff_t brk);
+ void *sbrk (int brk);
ACE_NAMESPACE_INLINE_FUNCTION
int setgid (gid_t);
ACE_NAMESPACE_INLINE_FUNCTION
- int setegid (gid_t);
-
- ACE_NAMESPACE_INLINE_FUNCTION
int setpgid (pid_t pid, pid_t pgid);
ACE_NAMESPACE_INLINE_FUNCTION
@@ -285,19 +263,16 @@ namespace ACE_OS
int setuid (uid_t);
ACE_NAMESPACE_INLINE_FUNCTION
- int seteuid (uid_t);
-
- ACE_NAMESPACE_INLINE_FUNCTION
int sleep (u_int seconds);
ACE_NAMESPACE_INLINE_FUNCTION
int sleep (const ACE_Time_Value &tv);
// used by ARGV::string_to_argv
- extern ACE_Export
- int string_to_argv (ACE_TCHAR *buf,
+ template <typename CHAR_TYPE>
+ int string_to_argv (CHAR_TYPE *buf,
int &argc,
- ACE_TCHAR **&argv,
+ CHAR_TYPE **&argv,
int substitute_env_args = 1);
ACE_NAMESPACE_INLINE_FUNCTION
@@ -316,20 +291,18 @@ namespace ACE_OS
int truncate (const ACE_TCHAR *filename, off_t length);
ACE_NAMESPACE_INLINE_FUNCTION
- u_long ualarm (u_long usecs,
- u_long interval = 0);
+ u_int ualarm (u_int usecs,
+ u_int interval = 0);
ACE_NAMESPACE_INLINE_FUNCTION
- u_long ualarm (const ACE_Time_Value &tv,
- const ACE_Time_Value &tv_interval = ACE_Time_Value::zero);
+ u_int ualarm (const ACE_Time_Value &tv,
+ const ACE_Time_Value &tv_interval = ACE_Time_Value::zero);
ACE_NAMESPACE_INLINE_FUNCTION
int unlink (const char *path);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int unlink (const wchar_t *path);
-#endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t write (ACE_HANDLE handle,
@@ -357,8 +330,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
@@ -367,5 +338,7 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/OS_NS_unistd.inl"
# endif /* ACE_HAS_INLINED_OSCALLS */
+#include "ace/OS_NS_unistd_T.inl"
+
# include /**/ "ace/post.h"
#endif /* ACE_OS_NS_UNISTD_H */
diff --git a/ace/OS_NS_unistd.inl b/ace/OS_NS_unistd.inl
index b961b822551..e26afd6076b 100644
--- a/ace/OS_NS_unistd.inl
+++ b/ace/OS_NS_unistd.inl
@@ -9,7 +9,6 @@
#include "ace/OS_NS_fcntl.h"
#include "ace/Default_Constants.h"
#include "ace/OS_Memory.h"
-#include "ace/Truncate.h"
#if defined (ACE_HAS_CLOCK_GETTIME)
# include "ace/os_include/os_time.h"
@@ -19,29 +18,20 @@
# include "ace/OS_NS_stdio.h"
#endif /* ACE_LACKS_ACCESS */
-#if defined (ACE_VXWORKS) || defined (ACE_HAS_WINCE)
+#if defined (VXWORKS) || defined (ACE_HAS_WINCE)
# include "ace/os_include/os_unistd.h"
-# if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
-# if defined (__RTP__)
-# include "ace/os_include/os_strings.h"
-# else
-# include "ace/os_include/os_string.h"
-# endif
-# endif
#endif /* VXWORKS || ACE_HAS_WINCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_OS::access (const char *path, int amode)
{
ACE_OS_TRACE ("ACE_OS::access");
#if defined (ACE_LACKS_ACCESS)
-# if defined (ACE_HAS_WINCE) || defined (ACE_VXWORKS)
+# if defined (ACE_HAS_WINCE) || defined (VXWORKS)
// @@ WINCE: There should be a Win32 API that can do this.
// Hard coded read access here.
ACE_UNUSED_ARG (amode);
- FILE* handle = ACE_OS::fopen (ACE_TEXT_CHAR_TO_TCHAR(path),
+ FILE* handle = ACE_OS::fopen (ACE_TEXT_TO_TCHAR_IN(path),
ACE_LIB_TEXT ("r"));
if (handle != 0)
{
@@ -62,29 +52,27 @@ ACE_OS::access (const char *path, int amode)
#endif /* ACE_LACKS_ACCESS */
}
-
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::access (const wchar_t *path, int amode)
{
#if defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)
ACE_OSCALL_RETURN (::_waccess (path, amode), int, -1);
#else /* ACE_WIN32 && !ACE_HAS_WINCE */
- return ACE_OS::access (ACE_Wide_To_Ascii (path).char_rep (), amode);
+ return ACE_OS::access (ACE_TEXT_TO_CHAR_IN (path), amode);
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE u_int
ACE_OS::alarm (u_int secs)
{
ACE_OS_TRACE ("ACE_OS::alarm");
-#if defined (ACE_LACKS_ALARM)
+#if defined (ACE_WIN32) || defined (VXWORKS) || defined (CHORUS) || defined (ACE_PSOS)
ACE_UNUSED_ARG (secs);
+
ACE_NOTSUP_RETURN (0);
#else
return ::alarm (secs);
-#endif /* ACE_LACKS_ALARM */
+#endif /* ACE_WIN32 || VXWORKS || CHORUS || ACE_PSOS */
}
ACE_INLINE long
@@ -105,13 +93,13 @@ ACE_OS::getpagesize (void)
#endif /* ACE_WIN32 */
}
-ACE_INLINE long
+ACE_INLINE int
ACE_OS::allocation_granularity (void)
{
#if defined (ACE_WIN32)
SYSTEM_INFO sys_info;
::GetSystemInfo (&sys_info);
- return sys_info.dwAllocationGranularity;
+ return (int) sys_info.dwAllocationGranularity;
#else
return ACE_OS::getpagesize ();
#endif /* ACE_WIN32 */
@@ -147,17 +135,15 @@ ACE_OS::chdir (const char *path)
#endif /* ACE_HAS_NONCONST_CHDIR */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::chdir (const wchar_t *path)
{
#if defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_wchdir (path), int, -1);
#else /* ACE_WIN32 */
- return ACE_OS::chdir (ACE_Wide_To_Ascii (path).char_rep ());
+ return ACE_OS::chdir (ACE_TEXT_TO_CHAR_IN (path));
#endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
#endif /* ACE_LACKS_CHDIR */
ACE_INLINE int
@@ -201,7 +187,7 @@ ACE_OS::rmdir (const char *path)
#elif defined (ACE_WIN32) && defined (__IBMCPP__) && (__IBMCPP__ >= 400)
ACE_OSCALL_RETURN (::_rmdir ((char *) path), int, -1);
#elif defined (ACE_HAS_WINCE)
- ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::RemoveDirectory (ACE_TEXT_CHAR_TO_TCHAR (path)),
+ ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::RemoveDirectory (ACE_TEXT_TO_TCHAR_IN (path)),
ace_result_),
int, -1);
#else
@@ -209,7 +195,6 @@ ACE_OS::rmdir (const char *path)
#endif /* ACE_PSOS_LACKS_PHILE */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::rmdir (const wchar_t *path)
{
@@ -220,11 +205,9 @@ ACE_OS::rmdir (const wchar_t *path)
#elif defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_wrmdir (path), int, -1);
#else
- ACE_Wide_To_Ascii n_path (path);
- return ACE_OS::rmdir (n_path.char_rep ());
+ return ACE_OS::rmdir (ACE_TEXT_TO_CHAR_IN (path));
#endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
// @todo: which 4 and why??? dhinton
// NOTE: The following four function definitions must appear before
@@ -266,7 +249,7 @@ ACE_OS::dup (ACE_HANDLE handle)
else
ACE_FAIL_RETURN (ACE_INVALID_HANDLE);
/* NOTREACHED */
-#elif defined (ACE_LACKS_DUP)
+#elif defined (VXWORKS) || defined (ACE_PSOS)
ACE_UNUSED_ARG (handle);
ACE_NOTSUP_RETURN (-1);
#elif defined (ACE_HAS_WINCE)
@@ -313,12 +296,7 @@ ACE_OS::execv (const char *path,
# elif defined (__MINGW32__)
return ::_execv (path, (char *const *) argv);
# else
- // Why this odd-looking code? If execv() returns at all, it's an error.
- // Windows defines this as returning an intptr_t rather than a simple int,
- // and the conversion triggers compile warnings. So just return -1 if
- // the call returns.
- ::_execv (path, (const char *const *) argv);
- return -1;
+ return ::_execv (path, (const char *const *) argv);
# endif /* __BORLANDC__ */
#else
ACE_OSCALL_RETURN (::execv (path, argv), int, -1);
@@ -349,12 +327,7 @@ ACE_OS::execve (const char *path,
# elif defined (__MINGW32__)
return ::_execve (path, (char *const *) argv, (char *const *) envp);
# else
- // Why this odd-looking code? If execv() returns at all, it's an error.
- // Windows defines this as returning an intptr_t rather than a simple int,
- // and the conversion triggers compile warnings. So just return -1 if
- // the call returns.
- ::_execve (path, (const char *const *) argv, (const char *const *) envp);
- return -1;
+ return ::_execve (path, (const char *const *) argv, (const char *const *) envp);
# endif /* __BORLANDC__ */
#else
ACE_OSCALL_RETURN (::execve (path, argv, envp), int, -1);
@@ -383,12 +356,7 @@ ACE_OS::execvp (const char *file,
# elif defined (__MINGW32__)
return ::_execvp (file, (char *const *) argv);
# else
- // Why this odd-looking code? If execv() returns at all, it's an error.
- // Windows defines this as returning an intptr_t rather than a simple int,
- // and the conversion triggers compile warnings. So just return -1 if
- // the call returns.
- ::_execvp (file, (const char *const *) argv);
- return -1;
+ return ::_execvp (file, (const char *const *) argv);
# endif /* __BORLANDC__ */
#else
ACE_OSCALL_RETURN (::execvp (file, argv), int, -1);
@@ -540,7 +508,6 @@ ACE_OS::getcwd (char *buf, size_t size)
#endif /* ACE_PSOS_LACKS_PHILE */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wchar_t *
ACE_OS::getcwd (wchar_t *buf, size_t size)
{
@@ -551,52 +518,39 @@ ACE_OS::getcwd (wchar_t *buf, size_t size)
# elif defined (ACE_WIN32)
return ::_wgetcwd (buf, static_cast<int> (size));
# else
- char *narrow_buf = new char[size];
- char *result = 0;
- result = ACE_OS::getcwd (narrow_buf, size);
- ACE_Ascii_To_Wide wide_buf (result);
- delete [] narrow_buf;
- if (result != 0)
- ACE_OS::strsncpy (buf, wide_buf.wchar_rep (), size);
- return result == 0 ? 0 : buf;
+ buf[0]=0;
+ ACE::String_Conversion::Convert_InOut< char, wchar_t > convert( buf, size );
+ char* result = ACE_OS::getcwd( convert.c_str(), convert.size() );
+ return ( result ? buf : 0 );
# endif /* ACE_WIN32 */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE gid_t
ACE_OS::getgid (void)
{
ACE_OS_TRACE ("ACE_OS::getgid");
-#if defined (ACE_LACKS_GETGID)
- ACE_NOTSUP_RETURN (static_cast<gid_t> (-1));
-# else
- ACE_OSCALL_RETURN (::getgid (), gid_t, static_cast<gid_t> (-1));
-# endif /* ACE_LACKS_GETGID */
-}
-
-ACE_INLINE gid_t
-ACE_OS::getegid (void)
-{
- ACE_OS_TRACE ("ACE_OS::getegid");
-#if defined (ACE_LACKS_GETEGID)
+#if defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY)
+ // getgid() is not supported: just one user anyways
+ return 0;
+# elif defined (ACE_WIN32) || defined (CHORUS)
ACE_NOTSUP_RETURN (static_cast<gid_t> (-1));
# else
- ACE_OSCALL_RETURN (::getegid (), gid_t, static_cast<gid_t> (-1));
-# endif /* ACE_LACKS_GETEGID */
+ ACE_OSCALL_RETURN (::getgid (), gid_t, (gid_t) -1);
+# endif /* VXWORKS || ACE_PSOS */
}
ACE_INLINE int
ACE_OS::getopt (int argc, char *const *argv, const char *optstring)
{
ACE_OS_TRACE ("ACE_OS::getopt");
-#if defined (ACE_LACKS_GETOPT)
+#if defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY) || defined (ACE_WIN32)
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
ACE_UNUSED_ARG (optstring);
ACE_NOTSUP_RETURN (-1);
# else
ACE_OSCALL_RETURN (::getopt (argc, argv, optstring), int, -1);
-# endif /* ACE_LACKS_GETOPT */
+# endif /* VXWORKS */
}
ACE_INLINE pid_t
@@ -606,6 +560,10 @@ ACE_OS::getpgid (pid_t pid)
#if defined (ACE_LACKS_GETPGID)
ACE_UNUSED_ARG (pid);
ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // getpgid() is not supported, only one process anyway.
+ ACE_UNUSED_ARG (pid);
+ return 0;
#elif defined (linux) && __GLIBC__ > 1 && __GLIBC_MINOR__ >= 0
// getpgid() is from SVR4, which appears to be the reason why GLIBC
// doesn't enable its prototype by default.
@@ -614,7 +572,7 @@ ACE_OS::getpgid (pid_t pid)
ACE_OSCALL_RETURN (::__getpgid (pid), pid_t, -1);
#else
ACE_OSCALL_RETURN (::getpgid (pid), pid_t, -1);
-#endif /* ACE_LACKS_GETPGID */
+#endif /* ACE_WIN32 */
}
ACE_INLINE pid_t
@@ -623,8 +581,9 @@ ACE_OS::getpid (void)
// ACE_OS_TRACE ("ACE_OS::getpid");
#if defined (ACE_WIN32)
return ::GetCurrentProcessId ();
-#elif defined (ACE_LACKS_GETPID)
- ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // getpid() is not supported: just one process anyways
+ return 0;
#elif defined (CHORUS)
return (pid_t) (::agetId ());
#else
@@ -638,6 +597,9 @@ ACE_OS::getppid (void)
ACE_OS_TRACE ("ACE_OS::getppid");
#if defined (ACE_LACKS_GETPPID)
ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // getppid() is not supported, only one process anyway.
+ return 0;
#else
ACE_OSCALL_RETURN (::getppid (), pid_t, -1);
#endif /* ACE_LACKS_GETPPID */
@@ -647,22 +609,14 @@ ACE_INLINE uid_t
ACE_OS::getuid (void)
{
ACE_OS_TRACE ("ACE_OS::getuid");
-#if defined (ACE_LACKS_GETUID)
- ACE_NOTSUP_RETURN (static_cast<uid_t> (-1));
-# else
- ACE_OSCALL_RETURN (::getuid (), uid_t, static_cast<uid_t> (-1));
-# endif /* ACE_LACKS_GETUID*/
-}
-
-ACE_INLINE uid_t
-ACE_OS::geteuid (void)
-{
- ACE_OS_TRACE ("ACE_OS::geteuid");
-#if defined (ACE_LACKS_GETEUID)
+#if defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY)
+ // getuid() is not supported: just one user anyways
+ return 0;
+# elif defined (ACE_WIN32) || defined (CHORUS)
ACE_NOTSUP_RETURN (static_cast<uid_t> (-1));
# else
- ACE_OSCALL_RETURN (::geteuid (), uid_t, (uid_t) -1);
-# endif /* ACE_LACKS_GETEUID */
+ ACE_OSCALL_RETURN (::getuid (), uid_t, (uid_t) -1);
+# endif /* VXWORKS || ACE_PSOS */
}
ACE_INLINE int
@@ -681,10 +635,10 @@ ACE_OS::hostname (char name[], size_t maxnamelen)
ACE_UNUSED_ARG (maxnamelen);
ACE_NOTSUP_RETURN (-1);
# endif /* ACE_HAS_PHARLAP_RT */
-#elif defined (ACE_VXWORKS) || defined (ACE_HAS_WINCE)
+#elif defined (VXWORKS) || defined (ACE_HAS_WINCE)
ACE_OSCALL_RETURN (::gethostname (name, maxnamelen), int, -1);
#elif defined (ACE_WIN32)
- if (::gethostname (name, ACE_Utils::Truncate (maxnamelen)) == 0)
+ if (::gethostname (name, maxnamelen) == 0)
{
return 0;
}
@@ -721,7 +675,6 @@ ACE_OS::hostname (char name[], size_t maxnamelen)
#endif /* ACE_HAS_PHARLAP */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::hostname (wchar_t name[], size_t maxnamelen)
{
@@ -731,19 +684,11 @@ ACE_OS::hostname (wchar_t name[], size_t maxnamelen)
ace_result_), int, -1);
#else /* ACE_WIN32 && !ACE_HAS_WINCE */
// Emulate using the char version
- char *char_name = 0;
- int result = 0;
-
- ACE_NEW_RETURN (char_name, char[maxnamelen], -1);
-
- result = ACE_OS::hostname(char_name, maxnamelen);
- ACE_OS::strcpy (name, ACE_Ascii_To_Wide (char_name).wchar_rep ());
-
- delete [] char_name;
- return result;
+ name[0]=0;
+ ACE::String_Conversion::Convert_InOut< char, wchar_t > convert (name, maxnamelen);
+ return ACE_OS::hostname (convert.c_str(), convert.size());
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_OS::isatty (int handle)
@@ -757,7 +702,7 @@ ACE_OS::isatty (int handle)
# else
ACE_OS_TRACE ("ACE_OS::isatty");
ACE_OSCALL_RETURN (::isatty (handle), int, -1);
-# endif /* ACE_LACKS_ISATTY */
+# endif /* defined (ACE_LACKS_ISATTY) */
}
#if defined (ACE_WIN32)
@@ -895,7 +840,7 @@ ACE_OS::read (ACE_HANDLE handle, void *buf, size_t len)
ssize_t result;
# if defined (ACE_HAS_CHARPTR_SOCKOPT)
- ACE_OSCALL (::read (handle, static_cast <char *> (buf), len), ssize_t, -1, result);
+ ACE_OSCALL (::read (handle, (char *) buf, len), ssize_t, -1, result);
# else
ACE_OSCALL (::read (handle, buf, len), ssize_t, -1, result);
# endif /* ACE_HAS_CHARPTR_SOCKOPT */
@@ -957,24 +902,39 @@ ACE_OS::readlink (const char *path, char *buf, size_t bufsiz)
# endif /* ACE_LACKS_READLINK */
}
+#if !defined (ACE_WIN32)
+
ACE_INLINE int
ACE_OS::pipe (ACE_HANDLE fds[])
{
ACE_OS_TRACE ("ACE_OS::pipe");
-# if defined (ACE_LACKS_PIPE)
+# if defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY)
ACE_UNUSED_ARG (fds);
ACE_NOTSUP_RETURN (-1);
-# elif defined (ACE_WIN32)
+# else
+ ACE_OSCALL_RETURN (::pipe (fds), int, -1);
+# endif /* VXWORKS || ACE_PSOS */
+}
+
+#else /* ACE_WIN32 */
+
+ACE_INLINE int
+ACE_OS::pipe (ACE_HANDLE fds[])
+{
+# if !defined (ACE_HAS_WINCE) && !defined (__IBMCPP__)
+ ACE_OS_TRACE ("ACE_OS::pipe");
ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL
(::CreatePipe (&fds[0], &fds[1], 0, 0),
ace_result_), int, -1);
# else
- ACE_OSCALL_RETURN (::pipe (fds), int, -1);
-# endif /* ACE_LACKS_PIPE */
+ ACE_NOTSUP_RETURN (-1);
+# endif /* ACE_HAS_WINCE && !__IBMCPP__ */
}
+#endif /* !ACE_WIN32 */
+
ACE_INLINE void *
-ACE_OS::sbrk (ptrdiff_t brk)
+ACE_OS::sbrk (int brk)
{
#if defined (ACE_LACKS_SBRK)
ACE_UNUSED_ARG (brk);
@@ -988,24 +948,16 @@ ACE_INLINE int
ACE_OS::setgid (gid_t gid)
{
ACE_OS_TRACE ("ACE_OS::setgid");
-#if defined (ACE_LACKS_SETGID)
+#if defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY)
+ // setgid() is not supported: just one user anyways
ACE_UNUSED_ARG (gid);
- ACE_NOTSUP_RETURN (-1);
-# else
- ACE_OSCALL_RETURN (::setgid (gid), int, -1);
-# endif /* ACE_LACKS_SETGID */
-}
-
-ACE_INLINE int
-ACE_OS::setegid (gid_t gid)
-{
- ACE_OS_TRACE ("ACE_OS::setegid");
-#if defined (ACE_LACKS_SETEGID)
+ return 0;
+# elif defined (ACE_WIN32) || defined (CHORUS)
ACE_UNUSED_ARG (gid);
ACE_NOTSUP_RETURN (-1);
# else
- ACE_OSCALL_RETURN (::setegid (gid), int, -1);
-# endif /* ACE_LACKS_SETEGID */
+ ACE_OSCALL_RETURN (::setgid (gid), int, -1);
+# endif /* VXWORKS || ACE_PSOS */
}
ACE_INLINE int
@@ -1016,6 +968,11 @@ ACE_OS::setpgid (pid_t pid, pid_t pgid)
ACE_UNUSED_ARG (pid);
ACE_UNUSED_ARG (pgid);
ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // <setpgid> is not supported, only one process anyway.
+ ACE_UNUSED_ARG (pid);
+ ACE_UNUSED_ARG (pgid);
+ return 0;
#else
ACE_OSCALL_RETURN (::setpgid (pid, pgid), int, -1);
#endif /* ACE_LACKS_SETPGID */
@@ -1029,9 +986,14 @@ ACE_OS::setregid (gid_t rgid, gid_t egid)
ACE_UNUSED_ARG (rgid);
ACE_UNUSED_ARG (egid);
ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // <setregid> is not supported, only one process anyway.
+ ACE_UNUSED_ARG (rgid);
+ ACE_UNUSED_ARG (egid);
+ return 0;
#else
ACE_OSCALL_RETURN (::setregid (rgid, egid), int, -1);
-#endif /* ACE_LACKS_SETREGID */
+#endif /* ACE_WIN32 */
}
ACE_INLINE int
@@ -1042,6 +1004,11 @@ ACE_OS::setreuid (uid_t ruid, uid_t euid)
ACE_UNUSED_ARG (ruid);
ACE_UNUSED_ARG (euid);
ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // <setpgid> is not supported, only one process anyway.
+ ACE_UNUSED_ARG (ruid);
+ ACE_UNUSED_ARG (euid);
+ return 0;
#else
ACE_OSCALL_RETURN (::setreuid (ruid, euid), int, -1);
#endif /* ACE_LACKS_SETREUID */
@@ -1053,6 +1020,9 @@ ACE_OS::setsid (void)
ACE_OS_TRACE ("ACE_OS::setsid");
#if defined (ACE_LACKS_SETSID)
ACE_NOTSUP_RETURN (-1);
+#elif defined (VXWORKS) || defined (ACE_PSOS)
+ // <setsid> is not supported, only one process anyway.
+ return 0;
#else
ACE_OSCALL_RETURN (::setsid (), int, -1);
# endif /* ACE_LACKS_SETSID */
@@ -1062,24 +1032,16 @@ ACE_INLINE int
ACE_OS::setuid (uid_t uid)
{
ACE_OS_TRACE ("ACE_OS::setuid");
-#if defined (ACE_LACKS_SETUID)
+#if defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY)
+ // setuid() is not supported: just one user anyways
ACE_UNUSED_ARG (uid);
- ACE_NOTSUP_RETURN (-1);
-# else
- ACE_OSCALL_RETURN (::setuid (uid), int, -1);
-# endif /* ACE_LACKS_SETUID */
-}
-
-ACE_INLINE int
-ACE_OS::seteuid (uid_t uid)
-{
- ACE_OS_TRACE ("ACE_OS::seteuid");
-#if defined (ACE_LACKS_SETEUID)
+ return 0;
+# elif defined (ACE_WIN32) || defined(CHORUS)
ACE_UNUSED_ARG (uid);
ACE_NOTSUP_RETURN (-1);
# else
- ACE_OSCALL_RETURN (::seteuid (uid), int, -1);
-# endif /* ACE_LACKS_SETEUID */
+ ACE_OSCALL_RETURN (::setuid (uid), int, -1);
+# endif /* VXWORKS || ACE_PSOS */
}
ACE_INLINE int
@@ -1169,12 +1131,12 @@ ACE_INLINE long
ACE_OS::sysconf (int name)
{
ACE_OS_TRACE ("ACE_OS::sysconf");
-#if defined (ACE_LACKS_SYSCONF)
+#if defined (ACE_WIN32) || defined (VXWORKS) || defined (ACE_PSOS) || defined (INTEGRITY)
ACE_UNUSED_ARG (name);
ACE_NOTSUP_RETURN (-1);
#else
ACE_OSCALL_RETURN (::sysconf (name), long, -1);
-#endif /* ACE_LACKS_SYSCONF */
+#endif /* ACE_WIN32 || VXWORKS || ACE_PSOS */
}
ACE_INLINE long
@@ -1220,7 +1182,7 @@ ACE_OS::truncate (const ACE_TCHAR *filename,
/* NOTREACHED */
#elif !defined (ACE_LACKS_TRUNCATE)
ACE_OSCALL_RETURN
- (::truncate (ACE_TEXT_ALWAYS_CHAR (filename), offset), int, -1);
+ (::truncate (ACE_TEXT_TO_CHAR_IN (filename), offset), int, -1);
#else
ACE_UNUSED_ARG (filename);
ACE_UNUSED_ARG (offset);
@@ -1228,8 +1190,8 @@ ACE_OS::truncate (const ACE_TCHAR *filename,
#endif /* ACE_WIN32 */
}
-ACE_INLINE u_long
-ACE_OS::ualarm (u_long usecs, u_long interval)
+ACE_INLINE u_int
+ACE_OS::ualarm (u_int usecs, u_int interval)
{
ACE_OS_TRACE ("ACE_OS::ualarm");
@@ -1245,15 +1207,15 @@ ACE_OS::ualarm (u_long usecs, u_long interval)
#endif /* ACE_HAS_UALARM */
}
-ACE_INLINE u_long
+ACE_INLINE u_int
ACE_OS::ualarm (const ACE_Time_Value &tv,
const ACE_Time_Value &tv_interval)
{
ACE_OS_TRACE ("ACE_OS::ualarm");
#if defined (ACE_HAS_UALARM)
- u_long usecs = (tv.sec () * ACE_ONE_SECOND_IN_USECS) + tv.usec ();
- u_long interval = (tv_interval.sec () * ACE_ONE_SECOND_IN_USECS) + tv_interval.usec ();
+ u_int usecs = (tv.sec () * ACE_ONE_SECOND_IN_USECS) + tv.usec ();
+ u_int interval = (tv_interval.sec () * ACE_ONE_SECOND_IN_USECS) + tv_interval.usec ();
return ::ualarm (usecs, interval);
#elif !defined (ACE_LACKS_UNIX_SIGNALS)
ACE_UNUSED_ARG (tv_interval);
@@ -1280,7 +1242,7 @@ ACE_OS::unlink (const char *path)
int, -1);
# elif defined (ACE_HAS_WINCE)
// @@ The problem is, DeleteFile is not actually equals to unlink. ;(
- ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::DeleteFile (ACE_TEXT_CHAR_TO_TCHAR (path)), ace_result_),
+ ACE_WIN32CALL_RETURN (ACE_ADAPT_RETVAL (::DeleteFile (ACE_TEXT_TO_TCHAR_IN (path)), ace_result_),
int, -1);
# elif defined (ACE_LACKS_UNLINK)
ACE_UNUSED_ARG (path);
@@ -1290,7 +1252,6 @@ ACE_OS::unlink (const char *path)
# endif /* ACE_HAS_NONCONST_UNLINK */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE int
ACE_OS::unlink (const wchar_t *path)
{
@@ -1302,11 +1263,9 @@ ACE_OS::unlink (const wchar_t *path)
# elif defined (ACE_WIN32)
ACE_OSCALL_RETURN (::_wunlink (path), int, -1);
# else
- ACE_Wide_To_Ascii npath (path);
- return ACE_OS::unlink (npath.char_rep ());
+ return ACE_OS::unlink (ACE_TEXT_TO_CHAR_IN (path));
# endif /* ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE ssize_t
ACE_OS::write (ACE_HANDLE handle, const void *buf, size_t nbyte)
@@ -1336,9 +1295,9 @@ ACE_OS::write (ACE_HANDLE handle, const void *buf, size_t nbyte)
# endif /* defined (ACE_PSOS_LACKS_PHILE) */
#else
# if defined (ACE_PSOS)
- ACE_OSCALL_RETURN (::write_f(handle, const_cast <void *> (buf), nbyte), ssize_t, -1);
+ ACE_OSCALL_RETURN (::write_f(handle, (void *) buf, nbyte), ssize_t, -1);
# elif defined (ACE_HAS_CHARPTR_SOCKOPT)
- ACE_OSCALL_RETURN (::write (handle, static_cast <char *> (const_cast <void *> (buf)), nbyte), ssize_t, -1);
+ ACE_OSCALL_RETURN (::write (handle, (char *) buf, nbyte), ssize_t, -1);
# else
ACE_OSCALL_RETURN (::write (handle, buf, nbyte), ssize_t, -1);
# endif /* ACE_PSOS */
@@ -1365,5 +1324,3 @@ ACE_OS::write (ACE_HANDLE handle,
return ACE_OS::write (handle, buf, nbyte);
#endif /* ACE_WIN32 */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_unistd_T.inl b/ace/OS_NS_unistd_T.inl
new file mode 100644
index 00000000000..b56eb16a3c4
--- /dev/null
+++ b/ace/OS_NS_unistd_T.inl
@@ -0,0 +1,140 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#include "ace/OS_NS_ctype.h"
+#include "ace/Default_Constants.h"
+#include "ace/os_include/os_errno.h"
+#include "ace/OS_Memory.h"
+
+template <typename CHAR_TYPE> int
+ACE_OS::string_to_argv (CHAR_TYPE *buf,
+ int &argc,
+ CHAR_TYPE **&argv,
+ int substitute_env_args)
+{
+ // Reset the number of arguments
+ argc = 0;
+
+ if (buf == 0)
+ return -1;
+
+ CHAR_TYPE *cp = buf;
+
+ // First pass: count arguments.
+
+ // '#' is the start-comment token..
+ while (*cp != CHAR_TYPE ('\0') && *cp != CHAR_TYPE ('#'))
+ {
+ // Skip whitespace..
+ while (ACE_OS::ace_isspace (*cp))
+ cp++;
+
+ // Increment count and move to next whitespace..
+ if (*cp != CHAR_TYPE ('\0'))
+ argc++;
+
+ while (*cp != CHAR_TYPE ('\0') && !ACE_OS::ace_isspace (*cp))
+ {
+ // Grok quotes....
+ if (*cp == CHAR_TYPE ('\'') || *cp == CHAR_TYPE ('"'))
+ {
+ CHAR_TYPE quote = *cp;
+
+ // Scan past the string..
+ for (cp++; *cp != CHAR_TYPE ('\0') && *cp != quote; cp++)
+ continue;
+
+ // '\0' implies unmatched quote..
+ if (*cp == CHAR_TYPE ('\0'))
+ {
+ argc--;
+ break;
+ }
+ else
+ cp++;
+ }
+ else
+ cp++;
+ }
+ }
+
+ // Second pass: copy arguments.
+ CHAR_TYPE arg[ACE_DEFAULT_ARGV_BUFSIZ];
+ CHAR_TYPE *argp = arg;
+
+ // Make sure that the buffer we're copying into is always large
+ // enough.
+ if (cp - buf >= ACE_DEFAULT_ARGV_BUFSIZ)
+ ACE_NEW_RETURN (argp,
+ CHAR_TYPE[cp - buf + 1],
+ -1);
+
+ // Make a new argv vector of argc + 1 elements.
+ ACE_NEW_RETURN (argv,
+ CHAR_TYPE *[argc + 1],
+ -1);
+
+ CHAR_TYPE *ptr = buf;
+
+ for (int i = 0; i < argc; i++)
+ {
+ // Skip whitespace..
+ while (ACE_OS::ace_isspace (*ptr))
+ ptr++;
+
+ // Copy next argument and move to next whitespace..
+ cp = argp;
+ while (*ptr != CHAR_TYPE ('\0') && !ACE_OS::ace_isspace (*ptr))
+ if (*ptr == CHAR_TYPE ('\'') || *ptr == CHAR_TYPE ('"'))
+ {
+ CHAR_TYPE quote = *ptr++;
+
+ while (*ptr != CHAR_TYPE ('\0') && *ptr != quote)
+ *cp++ = *ptr++;
+
+ if (*ptr == quote)
+ ptr++;
+ }
+ else
+ *cp++ = *ptr++;
+
+ *cp = CHAR_TYPE ('\0');
+
+#if !defined (ACE_LACKS_ENV)
+ // Check for environment variable substitution here.
+ if (substitute_env_args)
+ {
+ ACE_TCHAR* dup = ACE_OS::strenvdup(ACE_TEXT_TO_TCHAR_IN(argp));
+ argv[i] = ACE::String_Conversion::Convert_Out< CHAR_TYPE >(dup).c_str();
+ delete[] dup;
+
+ if (argv[i] == 0)
+ {
+ if (argp != arg)
+ delete [] argp;
+ errno = ENOMEM;
+ return -1;
+ }
+ }
+ else
+#endif /* ACE_LACKS_ENV */
+ {
+ argv[i] = ACE_OS::strdup(argp);
+
+ if (argv[i] == 0)
+ {
+ if (argp != arg)
+ delete [] argp;
+ errno = ENOMEM;
+ return -1;
+ }
+ }
+ }
+
+ if (argp != arg)
+ delete [] argp;
+
+ argv[argc] = 0;
+ return 0;
+}
diff --git a/ace/OS_NS_wchar.cpp b/ace/OS_NS_wchar.cpp
index bc6fd7bae93..b92b8d1f562 100644
--- a/ace/OS_NS_wchar.cpp
+++ b/ace/OS_NS_wchar.cpp
@@ -1,17 +1,16 @@
+// -*- C++ -*-
// $Id$
-#include "ace/OS_NS_wchar.h"
+# include "ace/OS_NS_wchar.h"
-ACE_RCSID(ace, OS_NS_wchar, "$Id$")
+ACE_RCSID(ace, OS_NS_wchar_t, "$Id$")
#if !defined (ACE_HAS_INLINED_OSCALLS)
# include "ace/OS_NS_wchar.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-#if defined (ACE_HAS_WCHAR)
-# include "ace/OS_NS_ctype.h"
-# include "ace/OS_NS_string.h"
-#endif /* ACE_HAS_WCHAR */
+#include "ace/OS_NS_ctype.h"
+#include "ace/OS_NS_string.h"
// The following wcs*_emulation methods were created based on BSD code:
/*-
@@ -50,9 +49,7 @@ ACE_RCSID(ace, OS_NS_wchar, "$Id$")
* SUCH DAMAGE.
*/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCAT)
+#if defined (ACE_LACKS_WCSCAT)
wchar_t *
ACE_OS::wcscat_emulation (wchar_t *destination,
const wchar_t *source)
@@ -63,9 +60,9 @@ ACE_OS::wcscat_emulation (wchar_t *destination,
while ((*destination++ = *source++));
return save;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCAT */
+#endif /* ACE_LACKS_WCSCAT */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCHR)
+#if defined (ACE_LACKS_WCSCHR)
wchar_t *
ACE_OS::wcschr_emulation (const wchar_t *string, wint_t c)
{
@@ -75,21 +72,21 @@ ACE_OS::wcschr_emulation (const wchar_t *string, wint_t c)
return 0;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCHR */
+#endif /* ACE_LACKS_WCSCHR */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSCMP)
+#if defined (ACE_LACKS_WCSCMP)
int
-ACE_OS::wcscmp_emulation (const ACE_WCHAR_T *string1,
- const ACE_WCHAR_T *string2)
+ACE_OS::wcscmp_emulation (const wchar_t *string1,
+ const wchar_t *string2)
{
while (*string1 == *string2++)
if (*string1++ == 0)
return (0);
return (*string1 - *--string2);
}
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSCMP */
+#endif /* ACE_LACKS_WCSCMP */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCPY)
+#if defined (ACE_LACKS_WCSCPY)
wchar_t *
ACE_OS::wcscpy_emulation (wchar_t *destination,
const wchar_t *source)
@@ -99,9 +96,9 @@ ACE_OS::wcscpy_emulation (wchar_t *destination,
for (; (*destination = *source); ++source, ++destination);
return save;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCPY */
+#endif /* ACE_LACKS_WCSCPY */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCSPN)
+#if defined (ACE_LACKS_WCSCSPN)
size_t
ACE_OS::wcscspn_emulation (const wchar_t *s, const wchar_t *reject)
{
@@ -121,9 +118,9 @@ ACE_OS::wcscspn_emulation (const wchar_t *s, const wchar_t *reject)
return count;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCSPN */
+#endif /* ACE_LACKS_WCSCSPN */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSICMP)
+#if defined (ACE_LACKS_WCSICMP)
int
ACE_OS::wcsicmp_emulation (const wchar_t *s, const wchar_t *t)
{
@@ -151,31 +148,31 @@ ACE_OS::wcsicmp_emulation (const wchar_t *s, const wchar_t *t)
else
return ACE_OS::ace_tolower (*scan1) - ACE_OS::ace_towlower (*scan2);
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSICMP */
+#endif /* ACE_LACKS_WCSICMP */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSLEN)
+#if defined (ACE_LACKS_WCSLEN)
size_t
-ACE_OS::wcslen_emulation (const ACE_WCHAR_T *string)
+ACE_OS::wcslen_emulation (const wchar_t *string)
{
- const ACE_WCHAR_T *s;
+ const wchar_t *s;
for (s = string; *s; ++s)
continue;
return s - string;
}
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSLEN */
+#endif /* ACE_LACKS_WCSLEN */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCAT)
-ACE_WCHAR_T *
-ACE_OS::wcsncat_emulation (ACE_WCHAR_T *destination,
- const ACE_WCHAR_T *source,
+#if defined (ACE_LACKS_WCSNCAT)
+wchar_t *
+ACE_OS::wcsncat_emulation (wchar_t *destination,
+ const wchar_t *source,
size_t count)
{
if (count != 0)
{
- ACE_WCHAR_T *d = destination;
- const ACE_WCHAR_T *s = source;
+ wchar_t *d = destination;
+ const wchar_t *s = source;
while (*d != 0)
d++;
@@ -193,12 +190,12 @@ ACE_OS::wcsncat_emulation (ACE_WCHAR_T *destination,
return destination;
}
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSCAT */
+#endif /* ACE_LACKS_WCSCAT */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCMP)
+#if defined (ACE_LACKS_WCSNCMP)
int
-ACE_OS::wcsncmp_emulation (const ACE_WCHAR_T *s1,
- const ACE_WCHAR_T *s2,
+ACE_OS::wcsncmp_emulation (const wchar_t *s1,
+ const wchar_t *s2,
size_t len)
{
if (len == 0)
@@ -214,18 +211,18 @@ ACE_OS::wcsncmp_emulation (const ACE_WCHAR_T *s1,
return 0;
}
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCMP */
+#endif /* ACE_LACKS_WCSNCMP */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCPY)
-ACE_WCHAR_T *
-ACE_OS::wcsncpy_emulation (ACE_WCHAR_T *destination,
- const ACE_WCHAR_T *source,
+#if defined (ACE_LACKS_WCSNCPY)
+wchar_t *
+ACE_OS::wcsncpy_emulation (wchar_t *destination,
+ const wchar_t *source,
size_t len)
{
if (len != 0)
{
- ACE_WCHAR_T *d = destination;
- const ACE_WCHAR_T *s = source;
+ wchar_t *d = destination;
+ const wchar_t *s = source;
do
{
@@ -241,9 +238,9 @@ ACE_OS::wcsncpy_emulation (ACE_WCHAR_T *destination,
return destination;
}
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCPY */
+#endif /* ACE_LACKS_WCSNCPY */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSNICMP)
+#if defined (ACE_LACKS_WCSNICMP)
int
ACE_OS::wcsnicmp_emulation (const wchar_t *s,
const wchar_t *t,
@@ -278,9 +275,9 @@ ACE_OS::wcsnicmp_emulation (const wchar_t *s,
else
return ACE_OS::ace_towlower (*scan1) - ACE_OS::ace_towlower (*scan2);
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSNICMP */
+#endif /* ACE_LACKS_WCSNICMP */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSPBRK)
+#if defined (ACE_LACKS_WCSPBRK)
wchar_t *
ACE_OS::wcspbrk_emulation (const wchar_t *string,
const wchar_t *charset)
@@ -297,9 +294,9 @@ ACE_OS::wcspbrk_emulation (const wchar_t *string,
return 0;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSPBRK */
+#endif /* ACE_LACKS_WCSPBRK */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSRCHR)
+#if defined (ACE_LACKS_WCSRCHR)
const wchar_t *
ACE_OS::wcsrchr_emulation (const wchar_t *s, wint_t c)
{
@@ -327,9 +324,9 @@ ACE_OS::wcsrchr_emulation (wchar_t *s, wint_t c)
return p;
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSRCHR */
+#endif /* ACE_LACKS_WCSRCHR */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSSPN)
+#if defined (ACE_LACKS_WCSSPN)
size_t
ACE_OS::wcsspn_emulation (const wchar_t *string,
const wchar_t *charset)
@@ -346,9 +343,9 @@ cont:
goto cont;
return (p - 1 - string);
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSSPN */
+#endif /* ACE_LACKS_WCSSPN */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSSTR)
+#if defined (ACE_LACKS_WCSSTR)
wchar_t *
ACE_OS::wcsstr_emulation (const wchar_t *string,
const wchar_t *charset)
@@ -372,6 +369,5 @@ ACE_OS::wcsstr_emulation (const wchar_t *string,
return const_cast<wchar_t *> (string);
}
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSSTR */
+#endif /* ACE_LACKS_WCSSTR */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_NS_wchar.h b/ace/OS_NS_wchar.h
index 55999db6e59..d886dbcbdab 100644
--- a/ace/OS_NS_wchar.h
+++ b/ace/OS_NS_wchar.h
@@ -2,7 +2,7 @@
//=============================================================================
/**
- * @file OS_NS_wchar.h
+ * @file OS_NS_wchar_t.h
*
* $Id$
*
@@ -14,8 +14,8 @@
*/
//=============================================================================
-#ifndef ACE_OS_NS_WCHAR_H
-# define ACE_OS_NS_WCHAR_H
+#ifndef ACE_OS_NS_wchar_t_H
+# define ACE_OS_NS_wchar_t_H
# include /**/ "ace/pre.h"
@@ -25,10 +25,9 @@
# pragma once
# endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/os_include/os_wchar.h"
+#include "ace/ace_wchar.h"
#include "ace/Basic_Types.h"
#include "ace/ACE_export.h"
-#include "ace/ace_wchar.h" // include for the time being, but this code needs to be moved. dhinton
#include "ace/os_include/os_errno.h"
@@ -37,105 +36,98 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+namespace ACE_OS {
-namespace ACE_OS
-{
-
- typedef ACE_WCHAR_T WChar;
-
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wint_t fgetwc (FILE* fp);
-#endif /* ACE_HAS_WCHAR */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCAT)
+#if defined (ACE_LACKS_WCSCAT)
/// Emulated wcscat - Appends a string.
extern ACE_Export
wchar_t *wcscat_emulation (wchar_t *destination,
const wchar_t *source);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCAT */
+#endif /* ACE_LACKS_WCSCAT */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCHR)
+#if defined (ACE_LACKS_WCSCHR)
/// Emulated wcschr - Finds a character in a string.
extern ACE_Export
wchar_t *wcschr_emulation (const wchar_t *string, wint_t c);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCHR */
+#endif /* ACE_LACKS_WCSCHR */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSCMP)
+#if defined (ACE_LACKS_WCSCMP)
/// Emulated wcscmp - Compares strings.
extern ACE_Export
- int wcscmp_emulation (const ACE_WCHAR_T *string1, const ACE_WCHAR_T *string2);
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSCMP */
+ int wcscmp_emulation (const wchar_t *string1, const wchar_t *string2);
+#endif /* ACE_LACKS_WCSCMP */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCPY)
+#if defined (ACE_LACKS_WCSCPY)
/// Emulated wcscpy - Copies a string.
extern ACE_Export
wchar_t *wcscpy_emulation (wchar_t *destination,
const wchar_t *source);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCPY */
+#endif /* ACE_LACKS_WCSCPY */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSCSPN)
+#if defined (ACE_LACKS_WCSCSPN)
/// Emulated wcscspn.
extern ACE_Export
size_t wcscspn_emulation (const wchar_t *string,
const wchar_t *reject);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSCSPN */
+#endif /* ACE_LACKS_WCSCSPN */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSICMP)
+#if defined (ACE_LACKS_WCSICMP)
/// Emulated wcsicmp - Performs a case insensitive comparison of strings.
extern ACE_Export
int wcsicmp_emulation (const wchar_t *string1,
const wchar_t *string2);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSICMP */
+#endif /* ACE_LACKS_WCSICMP */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSLEN)
+#if defined (ACE_LACKS_WCSLEN)
/// Emulated wcslen - Returns the length of a string.
extern ACE_Export
- size_t wcslen_emulation (const ACE_WCHAR_T *string);
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSLEN */
+ size_t wcslen_emulation (const wchar_t *string);
+#endif /* ACE_LACKS_WCSLEN */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCAT)
+#if defined (ACE_LACKS_WCSNCAT)
/// Emulated wcscat - Appends a string.
extern ACE_Export
- ACE_WCHAR_T *wcsncat_emulation (ACE_WCHAR_T *destination,
- const ACE_WCHAR_T *source,
+ wchar_t *wcsncat_emulation (wchar_t *destination,
+ const wchar_t *source,
size_t count);
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSCAT */
+#endif /* ACE_LACKS_WCSCAT */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCMP)
+#if defined (ACE_LACKS_WCSNCMP)
/// Emulated wcsncmp - Compares two arrays.
extern ACE_Export
- int wcsncmp_emulation (const ACE_WCHAR_T *string1,
- const ACE_WCHAR_T *string2,
+ int wcsncmp_emulation (const wchar_t *string1,
+ const wchar_t *string2,
size_t len);
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCMP */
+#endif /* ACE_LACKS_WCSNCMP */
-#if !defined (ACE_HAS_WCHAR) || defined (ACE_LACKS_WCSNCPY)
+#if defined (ACE_LACKS_WCSNCPY)
/// Emulated wcsncpy - Copies an array.
extern ACE_Export
- ACE_WCHAR_T *wcsncpy_emulation (ACE_WCHAR_T *destination,
- const ACE_WCHAR_T *source,
+ wchar_t *wcsncpy_emulation (wchar_t *destination,
+ const wchar_t *source,
size_t len);
-#endif /* !ACE_HAS_WCHAR || ACE_LACKS_WCSNCPY */
+#endif /* ACE_LACKS_WCSNCPY */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSNICMP)
+#if defined (ACE_LACKS_WCSNICMP)
/// Emulated wcsnicmp - Performs a case insensitive comparison of two
/// arrays
extern ACE_Export
int wcsnicmp_emulation (const wchar_t *string1,
const wchar_t *string2,
size_t len);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSNICMP */
+#endif /* ACE_LACKS_WCSNICMP */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSPBRK)
+#if defined (ACE_LACKS_WCSPBRK)
/// Emulated wcspbrk - Searches for characters in a string.
extern ACE_Export
wchar_t *wcspbrk_emulation (const wchar_t *string,
const wchar_t *charset);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSPBRK */
+#endif /* ACE_LACKS_WCSPBRK */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSRCHR)
+#if defined (ACE_LACKS_WCSRCHR)
/// Emulated wcsrchr (wchar_t version) - Finds the last occurance of a
/// character in a string.
extern ACE_Export
@@ -145,48 +137,44 @@ namespace ACE_OS
/// character in a string.
extern ACE_Export
const wchar_t *wcsrchr_emulation (const wchar_t *string, wint_t c);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSRCHR */
+#endif /* ACE_LACKS_WCSRCHR */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSSPN)
+#if defined (ACE_LACKS_WCSSPN)
/// Emulated wcsspn.
extern ACE_Export
size_t wcsspn_emulation (const wchar_t *string,
const wchar_t *charset);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSSPN */
+#endif /* ACE_LACKS_WCSSPN */
-#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_WCSSTR)
+#if defined (ACE_LACKS_WCSSTR)
/// Emulated wcsstr - Performs a case insensitive comparison of two strings.
extern ACE_Export
wchar_t *wcsstr_emulation (const wchar_t *string,
const wchar_t *charset);
-#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSSTR */
+#endif /* ACE_LACKS_WCSSTR */
// these are named wrong. should be wcslen, etc... dhinton
ACE_NAMESPACE_INLINE_FUNCTION
- u_int wslen (const WChar *);
+ u_int wslen (const wchar_t *);
ACE_NAMESPACE_INLINE_FUNCTION
- WChar *wscpy (WChar *,
- const WChar *);
+ wchar_t *wscpy (wchar_t *,
+ const wchar_t *);
ACE_NAMESPACE_INLINE_FUNCTION
- int wscmp (const WChar *,
- const WChar *);
+ int wscmp (const wchar_t *,
+ const wchar_t *);
ACE_NAMESPACE_INLINE_FUNCTION
- int wsncmp (const WChar *,
- const WChar *,
+ int wsncmp (const wchar_t *,
+ const wchar_t *,
size_t len);
-#if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
wint_t ungetwc (wint_t c, FILE* fp);
-#endif /* ACE_HAS_WCHAR */
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_NS_wchar.inl b/ace/OS_NS_wchar.inl
index 7f2abac8d8f..e7c44bd8b8f 100644
--- a/ace/OS_NS_wchar.inl
+++ b/ace/OS_NS_wchar.inl
@@ -1,10 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wint_t
ACE_OS::fgetwc (FILE* fp)
{
@@ -15,10 +11,9 @@ ACE_OS::fgetwc (FILE* fp)
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::fgetwc (fp), wint_t, WEOF);
# endif /* ACE_LACKS_FGETWC */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE u_int
-ACE_OS::wslen (const WChar *s)
+ACE_OS::wslen (const wchar_t *s)
{
u_int len = 0;
@@ -28,10 +23,10 @@ ACE_OS::wslen (const WChar *s)
return len;
}
-ACE_INLINE ACE_OS::WChar *
-ACE_OS::wscpy (WChar *dest, const WChar *src)
+ACE_INLINE wchar_t *
+ACE_OS::wscpy (wchar_t *dest, const wchar_t *src)
{
- WChar *original_dest = dest;
+ wchar_t *original_dest = dest;
while ((*dest++ = *src++) != 0)
continue;
@@ -40,10 +35,10 @@ ACE_OS::wscpy (WChar *dest, const WChar *src)
}
ACE_INLINE int
-ACE_OS::wscmp (const WChar *s, const WChar *t)
+ACE_OS::wscmp (const wchar_t *s, const wchar_t *t)
{
- const WChar *scan1 = s;
- const WChar *scan2 = t;
+ const wchar_t *scan1 = s;
+ const wchar_t *scan2 = t;
while (*scan1 != 0 && *scan1 == *scan2)
{
@@ -55,10 +50,10 @@ ACE_OS::wscmp (const WChar *s, const WChar *t)
}
ACE_INLINE int
-ACE_OS::wsncmp (const WChar *s, const WChar *t, size_t len)
+ACE_OS::wsncmp (const wchar_t *s, const wchar_t *t, size_t len)
{
- const WChar *scan1 = s;
- const WChar *scan2 = t;
+ const wchar_t *scan1 = s;
+ const wchar_t *scan2 = t;
while (len != 0 && *scan1 != 0 && *scan1 == *scan2)
{
@@ -70,7 +65,6 @@ ACE_OS::wsncmp (const WChar *s, const WChar *t, size_t len)
return len == 0 ? 0 : *scan1 - *scan2;
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE wint_t
ACE_OS::ungetwc (wint_t c, FILE* fp)
{
@@ -82,6 +76,4 @@ ACE_OS::ungetwc (wint_t c, FILE* fp)
ACE_OSCALL_RETURN (ACE_STD_NAMESPACE::ungetwc (c, fp), wint_t, WEOF);
# endif /* ACE_LACKS_FGETWC */
}
-#endif /* ACE_HAS_WCHAR */
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_QoS.cpp b/ace/OS_QoS.cpp
index 0b2c23f11c6..8240231b9c5 100644
--- a/ace/OS_QoS.cpp
+++ b/ace/OS_QoS.cpp
@@ -13,8 +13,6 @@
#include "ace/OS_QoS.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Flow_Spec::ACE_Flow_Spec (unsigned long token_rate,
unsigned long token_bucket_size,
unsigned long peak_bandwidth,
@@ -472,5 +470,3 @@ ACE_Accept_QoS_Params::callback_data (unsigned long cd)
{
this->callback_data_ = cd;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_QoS.h b/ace/OS_QoS.h
index c8df7c58eec..7a58dec9a6c 100644
--- a/ace/OS_QoS.h
+++ b/ace/OS_QoS.h
@@ -5,9 +5,9 @@
* @file OS_QoS.h
*
* $Id$
- *
+ *
* @brief Contains OS specific data structures for QoS networking.
- *
+ *
* @author Craig Rodrigues <crodrigu@bbn.com>
*/
//=============================================================================
@@ -25,8 +25,6 @@
#include "ace/os_include/sys/os_uio.h"
#include "ace/OS_NS_stropts.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 != 0)
#if defined (ACE_HAS_WINSOCK2_GQOS)
typedef SERVICETYPE ACE_SERVICE_TYPE;
@@ -386,7 +384,6 @@ private:
unsigned long callback_data_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* ACE_OS_QOS_H */
diff --git a/ace/OS_TLI.h b/ace/OS_TLI.h
index e81b00d6074..130c276904e 100644
--- a/ace/OS_TLI.h
+++ b/ace/OS_TLI.h
@@ -147,25 +147,6 @@ extern "C" {
# endif /* ACE_HAS_XTI || ACE_HAS_TLI */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// This hack is needed to get around an odd and hard-to-reproduce problem
-// with HP aC++. If struct sigaction is defined extern "C" and the sigaction
-// function in namespace ACE_OS, the compiler sometimes gets confused.
-// If we help it with this typedef, it's fine. User code should not use
-// the ACE typedef - it will be removed without warning as soon as we can
-// either drop support for the broken compilers or figure out how to reproduce
-// it so it can be reported to HP and fixed.
-// There's a similar hack in OS_TLI.h for struct t_optmgmt.
-// Also see ChangeLog entries:
-// Mon Jan 23 16:35:40 UTC 2006 Steve Huston <shuston@riverace.com>
-// Mon Jan 23 22:08:56 UTC 2006 Steve Huston <shuston@riverace.com>
-#if defined (__HP_aCC) && (__HP_aCC <= 36500)
-typedef extern "C" struct t_optmgmt ACE_TOPTMGMT;
-#else
-typedef struct t_optmgmt ACE_TOPTMGMT;
-#endif
-
/**
* @namespace ACE_OS
*
@@ -233,8 +214,8 @@ namespace ACE_OS
ACE_NAMESPACE_INLINE_FUNCTION
int t_optmgmt (ACE_HANDLE handle,
- ACE_TOPTMGMT *req,
- ACE_TOPTMGMT *ret);
+ struct t_optmgmt *req,
+ struct t_optmgmt *ret);
ACE_NAMESPACE_INLINE_FUNCTION
int t_rcv (ACE_HANDLE fildes,
@@ -279,8 +260,6 @@ namespace ACE_OS
} /* namespace ACE_OS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/OS_TLI.inl b/ace/OS_TLI.inl
index 563ba8311db..307a53f6fa0 100644
--- a/ace/OS_TLI.inl
+++ b/ace/OS_TLI.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_OS {
ACE_INLINE int
@@ -231,7 +228,7 @@ t_open (char *path, int oflag, struct t_info *info)
}
ACE_INLINE int
-t_optmgmt (ACE_HANDLE handle, ACE_TOPTMGMT *req, ACE_TOPTMGMT *ret)
+t_optmgmt (ACE_HANDLE handle, struct t_optmgmt *req, struct t_optmgmt *ret)
{
#if defined (ACE_HAS_TLI)
ACE_OSCALL_RETURN (::t_optmgmt (handle, req, ret), int, -1);
@@ -386,5 +383,3 @@ t_unbind (ACE_HANDLE handle)
}
} /* end namespace ACE_OS */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_Thread_Adapter.cpp b/ace/OS_Thread_Adapter.cpp
index 1bdeacc24ee..1f7e94a2890 100644
--- a/ace/OS_Thread_Adapter.cpp
+++ b/ace/OS_Thread_Adapter.cpp
@@ -11,8 +11,6 @@ ACE_RCSID (ace,
#include "ace/Global_Macros.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_OS_Thread_Adapter::ACE_OS_Thread_Adapter (
ACE_THR_FUNC user_func
, void *arg
@@ -173,5 +171,3 @@ ACE_OS_Thread_Adapter::invoke (void)
return status;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/OS_Thread_Adapter.h b/ace/OS_Thread_Adapter.h
index 3776339b2a7..73ad99989e6 100644
--- a/ace/OS_Thread_Adapter.h
+++ b/ace/OS_Thread_Adapter.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +21,6 @@
#include "ace/ACE_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_OS_Thread_Adapter
*
@@ -45,7 +42,7 @@ public:
/// Constructor.
ACE_OS_Thread_Adapter (ACE_THR_FUNC user_func,
void *arg,
- ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME
+ ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ace_thread_adapter
# if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
, ACE_SEH_EXCEPT_HANDLER selector = 0
, ACE_SEH_EXCEPT_HANDLER handler = 0
@@ -59,14 +56,15 @@ public:
*/
virtual ACE_THR_FUNC_RETURN invoke (void);
-protected:
-
- /// Ensure that this object is allocated on the heap.
+private:
+ /// Ensure that this object must be allocated on the heap.
~ACE_OS_Thread_Adapter (void);
+private:
+ /// Friend declaration to avoid compiler warning: only defines a private
+ /// destructor and has no friends.
+ friend class ACE_Thread_Adapter_Has_Private_Destructor;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_THREAD_ADAPTER_H */
diff --git a/ace/OS_main.cpp b/ace/OS_main.cpp
index 65087b8057b..5d8c43ac716 100644
--- a/ace/OS_main.cpp
+++ b/ace/OS_main.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/OS_main.h"
@@ -25,7 +26,7 @@ ACE_RCSID(ace, OS_main, "$Id$")
# if !defined (ACE_WIN32)
-# if !(defined (ACE_VXWORKS) && !defined (__RTP__))
+# if !defined (ACE_VXWORKS)
/* forward declaration */
extern int ace_main_i (int, char *[]);
# endif
@@ -69,9 +70,7 @@ ACE_MAIN () /* user's entry point, e.g., "main" w/out argc, argv */
# endif /* ACE_PSOSIM */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-# if defined (ACE_VXWORKS) && !defined (__RTP__)
+# if defined (ACE_VXWORKS)
ace_main_proc_ptr vx_ace_main_i_ptr = 0;
int ace_os_main_i (int argc, char *argv[]) /* user's entry point, e.g., main */
@@ -79,7 +78,7 @@ int ace_os_main_i (int argc, char *argv[]) /* user's entry point, e.g., main */
ACE_MAIN_OBJECT_MANAGER
return vx_ace_main_i_ptr ? (*vx_ace_main_i_ptr) (argc, argv) : (-1); /* what the user calls "main" */
}
-# else /* !ACE_VXWORKS && !__RTP__ */
+# else /* !ACE_VXWORKS */
int ace_os_main_i (int argc, char *argv[]) /* user's entry point, e.g., main */
{
ACE_MAIN_OBJECT_MANAGER
@@ -87,12 +86,8 @@ int ace_os_main_i (int argc, char *argv[]) /* user's entry point, e.g., main */
}
# endif
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# elif !defined (ACE_HAS_WINCE)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
int ACE_Main_Base::run (int argc, ACE_TCHAR *argv[])
{
@@ -119,8 +114,6 @@ ace_os_main_i (ACE_Main_Base &mbase, int argc, char *argv[]) /* user's entry poi
}
# endif /* ACE_WIN32 && ACE_USES_WCHAR */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# else /* ACE_HAS_WINCE */
// CE only gets a command line string; no argv. So we need to convert it
@@ -129,8 +122,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/ACE.h"
# include "ace/ARGV.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int ACE_Main_Base::run (HINSTANCE,
HINSTANCE,
LPWSTR lpCmdLine,
@@ -138,7 +129,7 @@ int ACE_Main_Base::run (HINSTANCE,
{
ACE_TCHAR cmdline[1024];
ACE_OS::strcpy (cmdline, ACE_LIB_TEXT ("program "));
- ACE_OS::strcat (cmdline, ACE_TEXT_WCHAR_TO_TCHAR (lpCmdLine));
+ ACE_OS::strcat (cmdline, ACE_TEXT_TO_TCHAR_IN (lpCmdLine));
ACE_ARGV ce_argv (cmdline);
ACE::init ();
ACE_MAIN_OBJECT_MANAGER
@@ -146,8 +137,6 @@ int ACE_Main_Base::run (HINSTANCE,
ACE::fini ();
return i;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
# endif /* !ACE_HAS_WINCE */
-
# endif /* ACE_HAS_NONSTATIC_OBJECT_MANAGER && !ACE_HAS_WINCE && !ACE_DOESNT_INSTANTIATE_NONSTATIC_OBJECT_MANAGER */
diff --git a/ace/OS_main.h b/ace/OS_main.h
index 58e02261a03..a47e4b069e2 100644
--- a/ace/OS_main.h
+++ b/ace/OS_main.h
@@ -67,9 +67,7 @@
|| (defined (ACE_PSOS) && defined (ACE_PSOS_LACKS_ARGC_ARGV))
# define main \
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL \
ace_os_main_i (int, char *[]); \
-ACE_END_VERSIONED_NAMESPACE_DECL \
ACE_MAIN () /* user's entry point, e.g., "main" w/out argc, argv */ \
{ \
ace_os_main_i (argc, argv); /* what the user calls "main" */ \
@@ -77,16 +75,14 @@ ACE_MAIN () /* user's entry point, e.g., "main" w/out argc, argv */ \
int \
ace_main_i
-# elif defined (ACE_VXWORKS) && !defined (__RTP__)
+# elif defined (ACE_VXWORKS)
typedef int (*ace_main_proc_ptr)(int, char *[]);
extern ace_main_proc_ptr vx_ace_main_i_ptr;
# define main \
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL \
ace_os_main_i (int, char *[]); \
-ACE_END_VERSIONED_NAMESPACE_DECL \
int ace_main_i(int, char *[]); \
int \
ACE_MAIN (int argc, char *argv[]) /* user's entry point, e.g., main */ \
@@ -100,9 +96,7 @@ ace_main_i
# elif !defined (ACE_WIN32)
# define main \
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL \
ace_os_main_i (int, char *[]); \
-ACE_END_VERSIONED_NAMESPACE_DECL \
int \
ACE_MAIN (int argc, char *argv[]) /* user's entry point, e.g., main */ \
{ \
@@ -114,9 +108,6 @@ ace_main_i
# elif !defined (ACE_HAS_WINCE)
# if defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Main_Base
{
public:
@@ -124,8 +115,6 @@ public:
virtual int run_i (int, ACE_TCHAR *[]) = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# define wmain \
ace_wmain_i (int, ACE_TCHAR *[]); \
ACE_Export int ace_os_wmain_i (ACE_Main_Base&, int, ACE_TCHAR *[]); \
@@ -145,8 +134,6 @@ ace_wmain_i
# else /* ! (ACE_WIN32 && ACE_USES_WCHAR) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Main_Base
{
public:
@@ -154,18 +141,14 @@ public:
virtual int run_i (int, char *[]) = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# define main \
ace_main_i (int, char *[]); \
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL \
ACE_Export int ace_os_main_i (ACE_Main_Base&, int, char *[]); \
class ACE_Main : public ACE_Main_Base {int run_i (int, char *[]);}; \
inline int ACE_Main::run_i (int argc, char *argv[]) \
{ \
return ace_main_i (argc, argv); \
} \
-ACE_END_VERSIONED_NAMESPACE_DECL \
int \
ACE_MAIN (int argc, char *argv[]) /* user's entry point, e.g., wmain */ \
{ \
@@ -179,8 +162,6 @@ ace_main_i
# else /* ACE_HAS_WINCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Main_Base
{
public:
@@ -188,8 +169,6 @@ public:
virtual int run_i (int, ACE_TCHAR *[]) = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_TMAIN) // Use WinMain on CE; others give warning/error.
# undef ACE_TMAIN
# endif // ACE_TMAIN
diff --git a/ace/Obchunk.cpp b/ace/Obchunk.cpp
index 0d1de440fcb..60a7f9b7a37 100644
--- a/ace/Obchunk.cpp
+++ b/ace/Obchunk.cpp
@@ -8,8 +8,6 @@
ACE_RCSID(ace, Obchunk, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Obchunk)
void
@@ -32,5 +30,3 @@ ACE_Obchunk::ACE_Obchunk (size_t size)
next_ (0)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Obchunk.h b/ace/Obchunk.h
index 9690c39f9d1..d901c030dd2 100644
--- a/ace/Obchunk.h
+++ b/ace/Obchunk.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Obchunk.h
@@ -21,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Obchunk
*
@@ -67,8 +64,6 @@ public:
char contents_[4];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Obchunk.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Obchunk.inl b/ace/Obchunk.inl
index 4853b0e12aa..bffb7626155 100644
--- a/ace/Obchunk.inl
+++ b/ace/Obchunk.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Obchunk::~ACE_Obchunk (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Object_Manager.cpp b/ace/Object_Manager.cpp
index e05477198eb..73327e35002 100644
--- a/ace/Object_Manager.cpp
+++ b/ace/Object_Manager.cpp
@@ -49,8 +49,6 @@ ACE_RCSID(ace, Object_Manager, "$Id$")
# define ACE_APPLICATION_PREALLOCATED_ARRAY_DELETIONS
#endif /* ACE_APPLICATION_PREALLOCATED_ARRAY_DELETIONS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Singleton pointer.
ACE_Object_Manager *ACE_Object_Manager::instance_ = 0;
@@ -88,7 +86,7 @@ void *ACE_Object_Manager::preallocated_array[
preallocated_array[ID] = array_p;\
}
# define ACE_DELETE_PREALLOCATED_OBJECT(TYPE, ID)\
- ACE_CLEANUP_DESTROYER_NAME (\
+ ace_cleanup_destroyer (\
(ACE_Cleanup_Adapter<TYPE> *) preallocated_object[ID], 0);\
preallocated_object[ID] = 0;
# define ACE_DELETE_PREALLOCATED_ARRAY(TYPE, ID, COUNT)\
@@ -114,6 +112,13 @@ private:
ACE_Static_Svc_Descriptor ace_svc_desc_ACE_Service_Manager;
};
+// We can't use the ACE_SVC_FACTORY_DECLARE macro here because this
+// needs to be in the ACE_Export context rather than the
+// ACE_Svc_Export context.
+//extern "C" ACE_Export
+//ACE_Service_Object *
+//_make_ACE_Service_Manager (ACE_Service_Object_Exterminator *);
+
ACE_Object_Manager_Preallocations::ACE_Object_Manager_Preallocations (void)
{
ACE_STATIC_SVC_DEFINE (ACE_Service_Manager_initializer,
@@ -876,5 +881,3 @@ ACE_Static_Object_Lock::cleanup_lock (void)
# pragma instantiate ACE_Cleanup_Adapter<ACE_SYNCH_RW_MUTEX>
# pragma instantiate ACE_Managed_Object<ACE_SYNCH_RW_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Object_Manager.h b/ace/Object_Manager.h
index efa9e9376b7..0144bb203ca 100644
--- a/ace/Object_Manager.h
+++ b/ace/Object_Manager.h
@@ -24,32 +24,20 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_Object_Manager_Preallocations;
class ACE_Sig_Adapter;
class ACE_Sig_Set;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Mutex;
class ACE_Null_Mutex;
class ACE_Thread_Mutex;
class ACE_Recursive_Thread_Mutex;
class ACE_RW_Thread_Mutex;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# include "ace/Recursive_Thread_Mutex.h"
#endif /* ACE_MT_SAFE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// only used by ACE_OS_Object_Manager::ctor
# if defined (ACE_WIN32)
// Default WIN32 structured exception handler.
@@ -158,7 +146,7 @@ template <class T> class ACE_Cleanup_Adapter;
* With ACE_HAS_NONSTATIC_OBJECT_MANAGER enabled, the ACE
* library has no static objects that require destruction.
* However, there are two drawbacks to using it:
- * 1) main (int, char *[]) must be declared with arguments, even
+ * 1) ACE_TMAIN (int, ACE_TCHAR *[]) must be declared with arguments, even
* if they're not used. All of ACE is converted to this, so
* just applications have to be concerned with it.
* 2) If there any static objects that depend on those that are
@@ -346,7 +334,7 @@ public:
// use by ACE_Singleton _only_.
/**
- * Accesses an ACE_Null_Mutex to be used for construction of
+ * Accesses an <ACE_Null_Mutex> to be used for construction of
* <ACE_Singletons>. Returns 0, and the lock in the argument, on
* success; returns -1 on failure.
*/
@@ -367,7 +355,7 @@ public:
static int get_singleton_lock (ACE_Mutex *&);
/**
- * Accesses a recursive ACE_Recursive_Thread_Mutex to be used for
+ * Accesses a recursive <ACE_Recursive_Thread_Mutex> to be used for
* construction of <ACE_Singletons>. Returns 0, and the lock in the
* argument, on success; returns -1 on failure.
*/
@@ -435,7 +423,6 @@ private:
ACE_Object_Manager &operator= (const ACE_Object_Manager &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#include "ace/Static_Object_Lock.h"
@@ -449,10 +436,10 @@ ACE_END_VERSIONED_NAMESPACE_DECL
// We can't use the ACE_SVC_FACTORY_DECLARE macro here because this
// needs to be in the ACE_Export context rather than the
// ACE_Svc_Export context.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Service_Object;
-ACE_END_VERSIONED_NAMESPACE_DECL
-ACE_FACTORY_DECLARE (ACE, ACE_Service_Manager)
+extern "C" ACE_Export
+ACE_Service_Object *
+_make_ACE_Service_Manager (ACE_Service_Object_Exterminator *);
#endif /* ! ACE_LACKS_ACE_SVCCONF */
diff --git a/ace/Object_Manager.inl b/ace/Object_Manager.inl
index bb95a485fdc..19ba4079a9c 100644
--- a/ace/Object_Manager.inl
+++ b/ace/Object_Manager.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
int
ACE_Object_Manager::at_exit (ACE_Cleanup *object,
@@ -11,7 +8,7 @@ ACE_Object_Manager::at_exit (ACE_Cleanup *object,
{
return ACE_Object_Manager::instance ()->at_exit_i (
object,
- (ACE_CLEANUP_FUNC) ACE_CLEANUP_DESTROYER_NAME,
+ (ACE_CLEANUP_FUNC) ace_cleanup_destroyer,
param);
}
@@ -36,5 +33,3 @@ ACE_Object_Manager::default_mask (void)
return
*reinterpret_cast<ACE_Sig_Set *> (ACE_OS_Object_Manager::default_mask ());
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Object_Manager_Base.cpp b/ace/Object_Manager_Base.cpp
index f61247558e9..720e362e922 100644
--- a/ace/Object_Manager_Base.cpp
+++ b/ace/Object_Manager_Base.cpp
@@ -1,3 +1,4 @@
+// -*- C++ -*-
// $Id$
#include "ace/Object_Manager_Base.h"
@@ -10,8 +11,6 @@ ACE_RCSID(ace, Object_Manager_Base, "$Id$")
#include "ace/OS_NS_signal.h"
#include "ace/OS_NS_stdio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
int ACE_SEH_Default_Exception_Selector (void *)
{
@@ -409,7 +408,7 @@ ACE_OS_Object_Manager::print_error_message (unsigned int line_number,
#if !defined (ACE_HAS_WINCE)
fprintf (stderr, "ace/OS.cpp, line %u: %s ",
line_number,
- ACE_TEXT_ALWAYS_CHAR (message));
+ ACE_TEXT_TO_CHAR_IN (message));
perror ("failed");
#else
// @@ Need to use the following information.
@@ -502,5 +501,3 @@ ACE_OS_Object_Manager_Manager::~ACE_OS_Object_Manager_Manager (void)
static ACE_OS_Object_Manager_Manager ACE_OS_Object_Manager_Manager_instance;
#endif /* ! ACE_HAS_NONSTATIC_OBJECT_MANAGER */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Object_Manager_Base.h b/ace/Object_Manager_Base.h
index 83f5d91354c..4188e008835 100644
--- a/ace/Object_Manager_Base.h
+++ b/ace/Object_Manager_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -29,8 +29,6 @@
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_signal.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Object_Manager;
class ACE_OS_Object_Manager_Manager;
class ACE_TSS_Cleanup;
@@ -250,7 +248,5 @@ public:
friend void ACE_OS_Object_Manager_Internal_Exit_Hook ();
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_OBJECT_MANAGER_BASE_H */
diff --git a/ace/Obstack.cpp b/ace/Obstack.cpp
index 792a398ba8a..d794f1263fe 100644
--- a/ace/Obstack.cpp
+++ b/ace/Obstack.cpp
@@ -4,12 +4,8 @@
ACE_RCSID(ace, Obstack, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Obstack_T<char>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Obstack_T<char>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Obstack.h b/ace/Obstack.h
index 511f7715f69..6312ecb7fc1 100644
--- a/ace/Obstack.h
+++ b/ace/Obstack.h
@@ -19,13 +19,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_SINGLETON_DECLARATION (ACE_Obstack_T <char>;)
typedef ACE_Obstack_T<char> ACE_Obstack;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_OBSTACK_H */
diff --git a/ace/Obstack_T.cpp b/ace/Obstack_T.cpp
index f7b781eee21..e6baeb61e41 100644
--- a/ace/Obstack_T.cpp
+++ b/ace/Obstack_T.cpp
@@ -15,8 +15,6 @@
#include "ace/Obstack_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Obstack_T)
template <class CHAR> void
@@ -203,6 +201,4 @@ ACE_Obstack_T<CHAR>::release (void)
this->curr_->block_ = this->curr_->cur_ = this->curr_->contents_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_OBSTACK_T_CPP */
diff --git a/ace/Obstack_T.h b/ace/Obstack_T.h
index 3e24ab31925..d070b011bea 100644
--- a/ace/Obstack_T.h
+++ b/ace/Obstack_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,12 +22,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// #include "ace/Basic_Types.h"
class ACE_Allocator;
/**
- * @class ACE_Obstack_T
+ * @class ACE_Obstack
*
* @brief Define a simple "mark and release" memory allocation utility.
*
@@ -116,8 +116,6 @@ protected:
class ACE_Obchunk *curr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Obstack_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Obstack_T.inl b/ace/Obstack_T.inl
index 92c90cd44d9..57e049ef1ea 100644
--- a/ace/Obstack_T.inl
+++ b/ace/Obstack_T.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class CHAR> ACE_INLINE size_t
ACE_Obstack_T<CHAR>::length () const
{
@@ -33,5 +29,3 @@ ACE_Obstack_T<CHAR>::freeze (void)
this->curr_->block_ = this->curr_->cur_;
return retv;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/PI_Malloc.cpp b/ace/PI_Malloc.cpp
index 46ff39867d6..fbe0d925e6f 100644
--- a/ace/PI_Malloc.cpp
+++ b/ace/PI_Malloc.cpp
@@ -17,8 +17,6 @@ ACE_RCSID (ace,
#include "ace/Process_Mutex.h"
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_PI_Control_Block::ACE_Malloc_Header::dump (void) const
{
@@ -174,8 +172,6 @@ template class ACE_Based_Pointer<ACE_PI_Control_Block::ACE_Name_Node>;
#pragma instantiate ACE_Based_Pointer<ACE_PI_Control_Block::ACE_Name_Node>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1*/
#endif /* ACE_PI_MALLOC_CPP */
diff --git a/ace/PI_Malloc.h b/ace/PI_Malloc.h
index b3937a7ff85..6306b76708c 100644
--- a/ace/PI_Malloc.h
+++ b/ace/PI_Malloc.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,13 +32,11 @@
#include "ace/Malloc.h"
#include "ace/Based_Pointer_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// prepare for position independent malloc
/**
* @class ACE_PI_Control_Block
*
- * @brief This information is stored in memory allocated by the Memory_Pool.
+ * @brief This information is stored in memory allocated by the <Memory_Pool>.
*
* This class implements the control block structure that can be
* used in a "position indepent" fashion, i.e., you don't need to
@@ -41,7 +44,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* processes sharing the memory. The tradoff of this flexibility
* is more expensive malloc/free operations.
*/
-class ACE_Export ACE_PI_Control_Block
+class ACE_Memory_Export ACE_PI_Control_Block
{
public:
class ACE_Malloc_Header;
@@ -54,11 +57,11 @@ public:
/**
* @class ACE_Malloc_Header
*
- * @brief This is the control block header. It's used by ACE_Malloc
+ * @brief This is the control block header. It's used by <ACE_Malloc>
* to keep track of each chunk of data when it's in the free
* list or in use.
*/
- class ACE_Export ACE_Malloc_Header
+ class ACE_Memory_Export ACE_Malloc_Header
{
public:
ACE_Malloc_Header (void);
@@ -83,23 +86,20 @@ public:
void dump (void) const;
private:
-
- // Disallow assignment.
- void operator= (const ACE_Malloc_Header &);
-
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Malloc_Header &))
};
/**
* @class ACE_Name_Node
*
- * @brief This class supports "named memory regions" within ACE_Malloc.
+ * @brief This class supports "named memory regions" within <ACE_Malloc>.
*
* Internally, the named memory regions are stored as a
- * doubly-linked list within the Memory_Pool. This makes
+ * doubly-linked list within the <Memory_Pool>. This makes
* it easy to iterate over the items in the list in both FIFO
* and LIFO order.
*/
- class ACE_Export ACE_Name_Node
+ class ACE_Memory_Export ACE_Name_Node
{
public:
// = Initialization methods.
@@ -145,9 +145,7 @@ public:
void dump (void) const;
private:
-
- // Disallow assignment.
- void operator= (const ACE_Name_Node &);
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Name_Node &))
};
/// Print out a bunch of size info for debugging.
@@ -194,13 +192,9 @@ public:
void dump (void) const;
private:
-
- // Disallow assignment.
- void operator= (const ACE_Control_Block &);
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Control_Block &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/PI_Malloc.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/PI_Malloc.inl b/ace/PI_Malloc.inl
index 1cb78d466e1..b082b523618 100644
--- a/ace/PI_Malloc.inl
+++ b/ace/PI_Malloc.inl
@@ -1,11 +1,6 @@
-// -*- C++ -*-
-//
// $Id$
#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_PI_Control_Block::ACE_Name_Node::~ACE_Name_Node (void)
{
@@ -26,8 +21,5 @@ ACE_PI_Control_Block::ACE_Name_Node::init_ptr
new ((void *) ptr) NAME_NODE_PTR (base_addr, 0);
*ptr = init;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
diff --git a/ace/POSIX_Asynch_IO.cpp b/ace/POSIX_Asynch_IO.cpp
index c0ab5c0052f..9013b577e33 100644
--- a/ace/POSIX_Asynch_IO.cpp
+++ b/ace/POSIX_Asynch_IO.cpp
@@ -19,8 +19,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
size_t
ACE_POSIX_Asynch_Result::bytes_transferred (void) const
{
@@ -120,7 +118,9 @@ ACE_POSIX_Asynch_Result::ACE_POSIX_Asynch_Result
u_long offset_high,
int priority,
int signal_number)
- : handler_proxy_ (handler_proxy),
+ : ACE_Asynch_Result_Impl (),
+ aiocb (),
+ handler_proxy_ (handler_proxy),
act_ (act),
bytes_transferred_ (0),
success_ (0),
@@ -206,7 +206,8 @@ ACE_POSIX_Asynch_Operation::~ACE_POSIX_Asynch_Operation (void)
}
ACE_POSIX_Asynch_Operation::ACE_POSIX_Asynch_Operation (ACE_POSIX_Proactor *posix_proactor)
- : posix_proactor_ (posix_proactor),
+ : ACE_Asynch_Operation_Impl (),
+ posix_proactor_ (posix_proactor),
handle_ (ACE_INVALID_HANDLE)
{
}
@@ -240,7 +241,9 @@ ACE_POSIX_Asynch_Read_Stream_Result::ACE_POSIX_Asynch_Read_Stream_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Read_Stream_Result_Impl (),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number),
message_block_ (message_block)
{
@@ -282,7 +285,9 @@ ACE_POSIX_Asynch_Read_Stream_Result::~ACE_POSIX_Asynch_Read_Stream_Result (void)
// ************************************************************
ACE_POSIX_Asynch_Read_Stream::ACE_POSIX_Asynch_Read_Stream (ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Read_Stream_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor)
{
}
@@ -317,7 +322,7 @@ ACE_POSIX_Asynch_Read_Stream::read (ACE_Message_Block &message_block,
signal_number),
-1);
- int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::ACE_OPCODE_READ);
+ int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::READ);
if (return_val == -1)
delete result;
@@ -357,7 +362,9 @@ ACE_POSIX_Asynch_Write_Stream_Result::ACE_POSIX_Asynch_Write_Stream_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Write_Stream_Result_Impl (),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number),
message_block_ (message_block)
{
@@ -400,7 +407,9 @@ ACE_POSIX_Asynch_Write_Stream_Result::~ACE_POSIX_Asynch_Write_Stream_Result (voi
// *********************************************************************
ACE_POSIX_Asynch_Write_Stream::ACE_POSIX_Asynch_Write_Stream (ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Write_Stream_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor)
{
}
@@ -435,7 +444,7 @@ ACE_POSIX_Asynch_Write_Stream::write (ACE_Message_Block &message_block,
signal_number),
-1);
- int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::ACE_OPCODE_WRITE);
+ int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::WRITE);
if (return_val == -1)
delete result;
@@ -459,7 +468,10 @@ ACE_POSIX_Asynch_Read_File_Result::ACE_POSIX_Asynch_Read_File_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Read_Stream_Result (handler_proxy,
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Read_Stream_Result_Impl (),
+ ACE_Asynch_Read_File_Result_Impl (),
+ ACE_POSIX_Asynch_Read_Stream_Result (handler_proxy,
handle,
message_block,
bytes_to_read,
@@ -509,7 +521,10 @@ ACE_POSIX_Asynch_Read_File_Result::~ACE_POSIX_Asynch_Read_File_Result (void)
// *********************************************************************
ACE_POSIX_Asynch_Read_File::ACE_POSIX_Asynch_Read_File (ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Read_Stream (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Read_Stream_Impl (),
+ ACE_Asynch_Read_File_Impl (),
+ ACE_POSIX_Asynch_Read_Stream (posix_proactor)
{
}
@@ -548,7 +563,7 @@ ACE_POSIX_Asynch_Read_File::read (ACE_Message_Block &message_block,
signal_number),
-1);
- int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::ACE_OPCODE_READ);
+ int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::READ);
if (return_val == -1)
delete result;
@@ -586,7 +601,10 @@ ACE_POSIX_Asynch_Write_File_Result::ACE_POSIX_Asynch_Write_File_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Write_Stream_Result (handler_proxy,
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Write_Stream_Result_Impl (),
+ ACE_Asynch_Write_File_Result_Impl (),
+ ACE_POSIX_Asynch_Write_Stream_Result (handler_proxy,
handle,
message_block,
bytes_to_write,
@@ -636,7 +654,10 @@ ACE_POSIX_Asynch_Write_File_Result::~ACE_POSIX_Asynch_Write_File_Result (void)
// *********************************************************************
ACE_POSIX_Asynch_Write_File::ACE_POSIX_Asynch_Write_File (ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Write_Stream (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Write_Stream_Impl (),
+ ACE_Asynch_Write_File_Impl (),
+ ACE_POSIX_Asynch_Write_Stream (posix_proactor)
{
}
@@ -675,7 +696,7 @@ ACE_POSIX_Asynch_Write_File::write (ACE_Message_Block &message_block,
signal_number),
-1);
- int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::ACE_OPCODE_WRITE);
+ int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::WRITE);
if (return_val == -1)
delete result;
@@ -738,7 +759,9 @@ ACE_POSIX_Asynch_Accept_Result::ACE_POSIX_Asynch_Accept_Result
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Accept_Result_Impl (),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number),
message_block_ (message_block),
listen_handle_ (listen_handle)
@@ -778,7 +801,9 @@ ACE_POSIX_Asynch_Accept_Result::~ACE_POSIX_Asynch_Accept_Result (void)
// *********************************************************************
ACE_POSIX_Asynch_Accept::ACE_POSIX_Asynch_Accept (ACE_POSIX_Proactor * posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor),
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Accept_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor),
flg_open_ (false)
{
}
@@ -1155,7 +1180,10 @@ ACE_POSIX_Asynch_Connect_Result::ACE_POSIX_Asynch_Connect_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Connect_Result_Impl (),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number)
{
this->aio_fildes = connect_handle;
@@ -1190,7 +1218,9 @@ ACE_POSIX_Asynch_Connect_Result::~ACE_POSIX_Asynch_Connect_Result (void)
// *********************************************************************
ACE_POSIX_Asynch_Connect::ACE_POSIX_Asynch_Connect (ACE_POSIX_Proactor * posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor),
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Connect_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor),
flg_open_ (false)
{
}
@@ -1667,7 +1697,10 @@ ACE_POSIX_Asynch_Transmit_File_Result::ACE_POSIX_Asynch_Transmit_File_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Transmit_File_Result_Impl (),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, offset, offset_high, priority, signal_number),
socket_ (socket),
header_and_trailer_ (header_and_trailer),
@@ -2054,7 +2087,9 @@ ACE_POSIX_Asynch_Transmit_Handler::initiate_read_file (void)
// *********************************************************************
ACE_POSIX_Asynch_Transmit_File::ACE_POSIX_Asynch_Transmit_File (ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Transmit_File_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor)
{
}
@@ -2117,8 +2152,8 @@ ACE_POSIX_Asynch_Transmit_File::transmit_file (ACE_HANDLE file,
ACE_POSIX_Asynch_Transmit_Handler *transmit_handler = 0;
ACE_NEW_RETURN (transmit_handler,
- ACE_POSIX_Asynch_Transmit_Handler (this->posix_proactor (),
- result),
+ ::ACE_POSIX_Asynch_Transmit_Handler (this->posix_proactor (),
+ result),
-1);
ssize_t return_val = transmit_handler->transmit ();
@@ -2193,7 +2228,10 @@ ACE_POSIX_Asynch_Read_Dgram_Result::ACE_POSIX_Asynch_Read_Dgram_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Read_Dgram_Result_Impl(),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number),
bytes_to_read_ (bytes_to_read),
message_block_ (message_block),
@@ -2275,7 +2313,10 @@ ACE_POSIX_Asynch_Write_Dgram_Result::ACE_POSIX_Asynch_Write_Dgram_Result
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+
+ : ACE_Asynch_Result_Impl (),
+ ACE_Asynch_Write_Dgram_Result_Impl(),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number),
bytes_to_write_ (bytes_to_write),
message_block_ (message_block),
@@ -2349,7 +2390,7 @@ ACE_POSIX_Asynch_Read_Dgram::recv (ACE_Message_Block *message_block,
signal_number),
-1);
- int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::ACE_OPCODE_READ);
+ int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::READ);
if (return_val == -1)
delete result;
@@ -2357,7 +2398,9 @@ ACE_POSIX_Asynch_Read_Dgram::recv (ACE_Message_Block *message_block,
}
ACE_POSIX_Asynch_Read_Dgram::ACE_POSIX_Asynch_Read_Dgram (ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Read_Dgram_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor)
{
}
@@ -2398,7 +2441,7 @@ ACE_POSIX_Asynch_Write_Dgram::send (ACE_Message_Block *message_block,
signal_number),
-1);
- int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::ACE_OPCODE_WRITE);
+ int return_val = proactor->start_aio (result, ACE_POSIX_Proactor::WRITE);
if (return_val == -1)
delete result;
@@ -2407,7 +2450,9 @@ ACE_POSIX_Asynch_Write_Dgram::send (ACE_Message_Block *message_block,
ACE_POSIX_Asynch_Write_Dgram::ACE_POSIX_Asynch_Write_Dgram
(ACE_POSIX_Proactor *posix_proactor)
- : ACE_POSIX_Asynch_Operation (posix_proactor)
+ : ACE_Asynch_Operation_Impl (),
+ ACE_Asynch_Write_Dgram_Impl (),
+ ACE_POSIX_Asynch_Operation (posix_proactor)
{
}
@@ -2447,8 +2492,8 @@ template class ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_POSIX_Asynch_Connect_Res
#pragma instantiate ACE_Map_Const_Iterator<ACE_HANDLE, ACE_POSIX_Asynch_Connect_Result *, ACE_SYNCH_NULL_MUTEX>
#pragma instantiate ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_POSIX_Asynch_Connect_Result *, ACE_SYNCH_NULL_MUTEX>
+
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_AIO_CALLS */
diff --git a/ace/POSIX_Asynch_IO.h b/ace/POSIX_Asynch_IO.h
index 57eb53e169c..e25219070c4 100644
--- a/ace/POSIX_Asynch_IO.h
+++ b/ace/POSIX_Asynch_IO.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -40,8 +40,6 @@
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
class ACE_POSIX_Proactor;
class ACE_Proactor_Impl;
@@ -1298,7 +1296,5 @@ protected:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_AIO_CALLS */
#endif /* ACE_POSIX_ASYNCH_IO_H */
diff --git a/ace/POSIX_CB_Proactor.cpp b/ace/POSIX_CB_Proactor.cpp
index 708fdcf8b5d..0c4df22b45e 100644
--- a/ace/POSIX_CB_Proactor.cpp
+++ b/ace/POSIX_CB_Proactor.cpp
@@ -7,13 +7,12 @@
#include "ace/Task_T.h"
#include "ace/Log_Msg.h"
#include "ace/Object_Manager.h"
-#include "ace/OS_NS_sys_time.h"
+
ACE_RCSID (ace,
POSIX_CB_Proactor,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_POSIX_CB_Proactor::ACE_POSIX_CB_Proactor (size_t max_aio_operations)
: ACE_POSIX_AIOCB_Proactor (max_aio_operations,
@@ -179,6 +178,4 @@ ACE_POSIX_CB_Proactor::handle_events_i (u_long milli_seconds)
return ret_aio + ret_que > 0 ? 1 : 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_AIO_CALLS && !__Lynx__ && !__FreeBSD__ */
diff --git a/ace/POSIX_CB_Proactor.h b/ace/POSIX_CB_Proactor.h
index 5328d5b1cac..6021b32a04f 100644
--- a/ace/POSIX_CB_Proactor.h
+++ b/ace/POSIX_CB_Proactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,12 +27,10 @@
#include "ace/POSIX_Proactor.h"
-#if defined(AIX) || defined(sun) || defined(__APPLE__) || defined (ACE_VXWORKS)
+#if defined(AIX) || defined(sun) || defined(__APPLE__)
typedef union sigval sigval_t;
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_POSIX_CB_Proactor
*
@@ -94,7 +92,5 @@ protected:
ACE_SYNCH_SEMAPHORE sema_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_AIO_CALLS && !__Lynx__ && !__FreeBSD__ */
#endif /* ACE_POSIX_CB_PROACTOR_H*/
diff --git a/ace/POSIX_Proactor.cpp b/ace/POSIX_Proactor.cpp
index 1664200ecf6..f6bd0c26f86 100644
--- a/ace/POSIX_Proactor.cpp
+++ b/ace/POSIX_Proactor.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
// $Id$
#include "ace/POSIX_Proactor.h"
@@ -26,9 +27,6 @@
#endif /* sun */
// *********************************************************************
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_POSIX_Wakeup_Completion
*
@@ -36,7 +34,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* ACE_Proactor interface to wake up all the threads blocking
* for completions.
*/
-class ACE_POSIX_Wakeup_Completion : public ACE_POSIX_Asynch_Result
+class ACE_Export ACE_POSIX_Wakeup_Completion : public ACE_POSIX_Asynch_Result
{
public:
/// Constructor.
@@ -508,7 +506,7 @@ ACE_POSIX_Proactor::create_asynch_timer
int priority,
int signal_number)
{
- ACE_POSIX_Asynch_Timer *implementation;
+ ACE_Asynch_Result_Impl *implementation;
ACE_NEW_RETURN (implementation,
ACE_POSIX_Asynch_Timer (handler_proxy,
act,
@@ -626,7 +624,7 @@ ACE_POSIX_Proactor::get_impl_type (void)
* message block to another <accept>, we update <wr_ptr> and put
* it in its initial position.
*/
-class ACE_AIOCB_Notify_Pipe_Manager : public ACE_Handler
+class ACE_Export ACE_AIOCB_Notify_Pipe_Manager : public ACE_Handler
{
public:
/// Constructor. You need the posix proactor because you need to call
@@ -1319,11 +1317,11 @@ ACE_POSIX_AIOCB_Proactor::start_aio (ACE_POSIX_Asynch_Result *result,
// Save operation code in the aiocb
switch (op)
{
- case ACE_POSIX_Proactor::ACE_OPCODE_READ:
+ case ACE_POSIX_Proactor::READ:
result->aio_lio_opcode = LIO_READ;
break;
- case ACE_POSIX_Proactor::ACE_OPCODE_WRITE:
+ case ACE_POSIX_Proactor::WRITE:
result->aio_lio_opcode = LIO_WRITE;
break;
@@ -1700,7 +1698,7 @@ ACE_POSIX_Proactor::Proactor_Type
ACE_POSIX_SIG_Proactor::get_impl_type (void)
{
return PROACTOR_SIG;
-}
+}
int
ACE_POSIX_SIG_Proactor::handle_events (ACE_Time_Value &wait_time)
@@ -2005,7 +2003,8 @@ ACE_POSIX_Asynch_Timer::ACE_POSIX_Asynch_Timer
ACE_HANDLE event,
int priority,
int signal_number)
- : ACE_POSIX_Asynch_Result
+ : ACE_Asynch_Result_Impl (),
+ ACE_POSIX_Asynch_Result
(handler_proxy, act, event, 0, 0, priority, signal_number),
time_ (tv)
{
@@ -2058,6 +2057,5 @@ ACE_POSIX_Wakeup_Completion::complete (size_t /* bytes_transferred */,
handler->handle_wakeup ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_AIO_CALLS */
diff --git a/ace/POSIX_Proactor.h b/ace/POSIX_Proactor.h
index c3902161e9f..0bacb0ee2db 100644
--- a/ace/POSIX_Proactor.h
+++ b/ace/POSIX_Proactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -36,8 +36,6 @@
#define ACE_AIO_MAX_SIZE 2048
#define ACE_AIO_DEFAULT_SIZE 1024
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_POSIX_Proactor
*
@@ -94,8 +92,8 @@ public:
};
enum Opcode {
- ACE_OPCODE_READ = 1,
- ACE_OPCODE_WRITE = 2
+ READ = 1,
+ WRITE = 2
};
virtual Proactor_Type get_impl_type (void);
@@ -651,8 +649,6 @@ protected:
ACE_Time_Value time_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/POSIX_Proactor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/POSIX_Proactor.inl b/ace/POSIX_Proactor.inl
index ae5f727c2a8..eb358c0b8ae 100644
--- a/ace/POSIX_Proactor.inl
+++ b/ace/POSIX_Proactor.inl
@@ -2,12 +2,8 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE
+ACE_INLINE
ACE_Asynch_Pseudo_Task& ACE_POSIX_Proactor::get_asynch_pseudo_task (void)
{
return this->pseudo_task_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Pagefile_Memory_Pool.cpp b/ace/Pagefile_Memory_Pool.cpp
index 125dd041f9e..365140b6ed1 100644
--- a/ace/Pagefile_Memory_Pool.cpp
+++ b/ace/Pagefile_Memory_Pool.cpp
@@ -29,13 +29,10 @@ ACE_RCSID(ace, Pagefile_Memory_Pool, "$Id$")
#else //if !defined (ACE_HAS_WINCE)
#define ACE_MAP_FILE(_hnd, _access, _offHigh, _offLow, _nBytes, _baseAdd)\
MapViewOfFile (_hnd, _access, _offHigh, _offLow, _nBytes)
-#endif /* !ACE_HAS_WINCE */
+#endif /* !defined (ACE_HAS_WINCE) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Pagefile_Memory_Pool_Options::ACE_Pagefile_Memory_Pool_Options (
- void *base_addr,
- size_t max_size)
+ACE_Pagefile_Memory_Pool_Options::ACE_Pagefile_Memory_Pool_Options (void *base_addr,
+ size_t max_size)
: base_addr_ (base_addr),
max_size_ (max_size)
{
@@ -69,7 +66,7 @@ ACE_Pagefile_Memory_Pool::ACE_Pagefile_Memory_Pool (const ACE_TCHAR *backing_sto
{
this->local_cb_.req_base_ = 0;
this->local_cb_.mapped_base_ = 0;
- this->local_cb_.sh_.max_size_ =
+ this->local_cb_.sh_.max_size_ =
this->round_to_chunk_size (page_size_) ;
this->local_cb_.sh_.mapped_size_ = 0;
this->local_cb_.sh_.free_offset_ =
@@ -379,7 +376,5 @@ ACE_Pagefile_Memory_Pool::map (int &first_time,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
diff --git a/ace/Pagefile_Memory_Pool.h b/ace/Pagefile_Memory_Pool.h
index eab04d23849..472e1a8731d 100644
--- a/ace/Pagefile_Memory_Pool.h
+++ b/ace/Pagefile_Memory_Pool.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,8 +32,6 @@
#include "ace/ACE.h"
#include "ace/os_include/sys/os_mman.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Pagefile_Memory_Pool_Options
*
@@ -37,13 +40,12 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* This should be a nested class, but that breaks too many
* compilers.
*/
-class ACE_Export ACE_Pagefile_Memory_Pool_Options
+class ACE_Memory_Export ACE_Pagefile_Memory_Pool_Options
{
public:
/// Initialization method.
- ACE_Pagefile_Memory_Pool_Options (
- void *base_addr = ACE_DEFAULT_PAGEFILE_POOL_BASE,
- size_t max_size = ACE_DEFAULT_PAGEFILE_POOL_SIZE);
+ ACE_Pagefile_Memory_Pool_Options (void *base_addr = ACE_DEFAULT_PAGEFILE_POOL_BASE,
+ size_t max_size = ACE_DEFAULT_PAGEFILE_POOL_SIZE);
/// Base address of the memory-mapped backing store.
void *base_addr_;
@@ -58,7 +60,7 @@ public:
* @brief Make a memory pool that is based on "anonymous" memory
* regions allocated from the Win32 page file.
*/
-class ACE_Export ACE_Pagefile_Memory_Pool
+class ACE_Memory_Export ACE_Pagefile_Memory_Pool
{
public:
typedef ACE_Pagefile_Memory_Pool_Options OPTIONS;
@@ -189,8 +191,6 @@ private:
ACE_TCHAR backing_store_name_[MAXPATHLEN];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
#if defined (__ACE_INLINE__)
diff --git a/ace/Pagefile_Memory_Pool.inl b/ace/Pagefile_Memory_Pool.inl
index cf54da23f29..db8d7a00aa4 100644
--- a/ace/Pagefile_Memory_Pool.inl
+++ b/ace/Pagefile_Memory_Pool.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if defined (ACE_WIN32)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE size_t
ACE_Pagefile_Memory_Pool::round_to_chunk_size (size_t nbytes)
{
@@ -48,7 +45,4 @@ ACE_Pagefile_Memory_Pool::base_addr (void) const
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
diff --git a/ace/Pair.cpp b/ace/Pair.cpp
new file mode 100644
index 00000000000..fce14f96302
--- /dev/null
+++ b/ace/Pair.cpp
@@ -0,0 +1,19 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// ace
+//
+// = FILENAME
+// Pair.cpp
+//
+// = AUTHOR
+// Irfan Pyarali
+//
+// ============================================================================
+
+#include "ace/Pair_T.h"
+
+ACE_RCSID(ace, Pair, "$Id$")
+
diff --git a/ace/Pair.h b/ace/Pair.h
index be0a78a87d9..b4a865c35f4 100644
--- a/ace/Pair.h
+++ b/ace/Pair.h
@@ -6,8 +6,6 @@
*
* $Id$
*
- * ACE_Pair<> convenience header.
- *
* @author Irfan Pyarali
*/
//=============================================================================
diff --git a/ace/Pair_T.cpp b/ace/Pair_T.cpp
index fd38f8236ef..eb4e10b33ac 100644
--- a/ace/Pair_T.cpp
+++ b/ace/Pair_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_PAIR_T_CPP
-#define ACE_PAIR_T_CPP
+#ifndef ACE_PAIR_T_C
+#define ACE_PAIR_T_C
#include "ace/Pair_T.h"
@@ -13,4 +13,6 @@
#include "ace/Pair_T.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_PAIR_T_CPP */
+ACE_RCSID(ace, Pair_T, "$Id$")
+
+#endif /* ACE_PAIR_T_C */
diff --git a/ace/Pair_T.h b/ace/Pair_T.h
index 8c8c89f5c2e..37147794fd9 100644
--- a/ace/Pair_T.h
+++ b/ace/Pair_T.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Pair
*
@@ -111,8 +109,6 @@ protected:
T2 &second_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Pair_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Pair_T.inl b/ace/Pair_T.inl
index 4ce4a4acae4..dafbb222cca 100644
--- a/ace/Pair_T.inl
+++ b/ace/Pair_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T1, class T2> ACE_INLINE
ACE_Pair<T1, T2>::ACE_Pair (const T1 &t1,
const T2 &t2)
@@ -86,5 +84,3 @@ ACE_Reference_Pair<T1, T2>::operator== (const ACE_Reference_Pair<T1, T2> &rhs) c
return (this->first_ == rhs.first_ &&
this->second_ == rhs.second_);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Parse_Node.cpp b/ace/Parse_Node.cpp
index dbd32d86357..7a599303ae0 100644
--- a/ace/Parse_Node.cpp
+++ b/ace/Parse_Node.cpp
@@ -15,13 +15,12 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_Stream_Node)
// Provide the class hierarchy that defines the parse tree of Service
// Nodes.
+
void
ACE_Stream_Node::dump (void) const
{
@@ -358,7 +357,6 @@ ACE_Location_Node::dump (void) const
ACE_Location_Node::ACE_Location_Node (void)
: pathname_ (0),
- dll_ (),
symbol_ (0)
{
ACE_TRACE ("ACE_Location_Node::ACE_Location_Node");
@@ -495,73 +493,13 @@ ACE_Function_Node::dump (void) const
ACE_Function_Node::ACE_Function_Node (const ACE_TCHAR *path,
const ACE_TCHAR *func_name)
- : function_name_ (make_func_name (func_name))
+ : function_name_ (ACE::strnew (func_name))
{
ACE_TRACE ("ACE_Function_Node::ACE_Function_Node");
this->pathname (ACE::strnew (path));
this->must_delete_ = 1;
}
-ACE_TCHAR *
-ACE_Function_Node::make_func_name (ACE_TCHAR const * func_name)
-{
- // Preprocessor symbols will not be expanded if they are
- // stringified. Force the preprocessor to expand them during the
- // argument prescan by calling a macro that itself calls another
- // that performs the actual stringification.
-#if defined (ACE_HAS_VERSIONED_NAMESPACE) && ACE_HAS_VERSIONED_NAMESPACE == 1
-# define ACE_MAKE_VERSIONED_NAMESPACE_NAME_STRING_IMPL(NAME) #NAME
-# define ACE_MAKE_VERSIONED_NAMESPACE_NAME_STRING(NAME) ACE_MAKE_VERSIONED_NAMESPACE_NAME_STRING_IMPL(NAME)
-# define ACE_VERSIONED_NAMESPACE_NAME_STRING ACE_MAKE_VERSIONED_NAMESPACE_NAME_STRING(ACE_VERSIONED_NAMESPACE_NAME)
-
- // Check if function is using the ACE naming convention. If so,
- // it is likely that the ACE factory function macros
- // (e.g. ACE_FACTORY_DECLARE) were used to declare and define it, so
- // mangle the function name to include the ACE versioned namespace
- // name as is done in the ACE macros. Otherwise, leave the function
- // name as is.
-
- static ACE_TCHAR const make_prefix[] = ACE_LIB_TEXT ("_make_");
- static size_t const make_prefix_len =
- sizeof (make_prefix) / sizeof (make_prefix[0]) - 1;
-
- if (ACE_OS::strncmp (make_prefix, func_name, make_prefix_len) == 0)
- {
- static ACE_TCHAR const versioned_namespace_name[] =
- ACE_LIB_TEXT (ACE_VERSIONED_NAMESPACE_NAME_STRING) ACE_LIB_TEXT("_") ;
-
- // Null terminator included in versioned_namespace_name_len since
- // it is static constant.
- static size_t const versioned_namespace_name_len =
- sizeof (versioned_namespace_name)
- / sizeof (versioned_namespace_name[0]); // - 1;
-
- size_t const len =
- ACE_OS::strlen (func_name)
- + versioned_namespace_name_len;
- // + 1; // Null terminator.
-
- ACE_TCHAR * mangled_func_name;
- ACE_NEW_RETURN (mangled_func_name,
- ACE_TCHAR[len],
- 0);
-
- ACE_Auto_Basic_Array_Ptr<ACE_TCHAR> safe (mangled_func_name);
-
- ACE_OS::snprintf (mangled_func_name,
- len,
- ACE_LIB_TEXT ("%s%s%s"),
- make_prefix,
- versioned_namespace_name,
- func_name + make_prefix_len);
-
- return safe.release ();
- }
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
- return ACE::strnew (func_name);
-}
-
void *
ACE_Function_Node::symbol (int & yyerrno,
ACE_Service_Object_Exterminator *gobbler)
@@ -746,6 +684,4 @@ ACE_Static_Function_Node::~ACE_Static_Function_Node (void)
delete[] const_cast<ACE_TCHAR *> (this->function_name_);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_USES_CLASSIC_SVC_CONF == 1 */
diff --git a/ace/Parse_Node.h b/ace/Parse_Node.h
index 55d1ff6e34b..5e4116e1ccf 100644
--- a/ace/Parse_Node.h
+++ b/ace/Parse_Node.h
@@ -26,7 +26,6 @@
#include "ace/DLL.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/// Forward declarations.
class ACE_Service_Config;
@@ -308,28 +307,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
private:
-
- /// Return mangled function name that takes into account ACE
- /// versioned namespace.
- /**
- * This function embeds the ACE versioned namespace name into the
- * original function name if versioned namespace support has been
- * enabled and the original function name conforms to the ACE
- * Service Object factory function naming conventions. For example
- * "@c _make_Foo" becomes "@c make_ACE_5_4_7_Foo".
- * @par
- * If versioned namespace support is disabled or the factory
- * function name does conform to ACE conventions, no mangling will
- * occur and the verbatim function name is returned.
- *
- * @return Function name that takes into account versioned namespace
- * name. Caller is responsible for calling operator
- * delete[] or ACE::strdelete() on the returned string.
- */
- ACE_TCHAR * make_func_name (ACE_TCHAR const * func_name);
-
-private:
-
/// Name of the function that we're parsing.
const ACE_TCHAR *function_name_;
};
@@ -392,8 +369,6 @@ private:
/// program.
extern ACE_Service_Config *ace_this_svc;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_USES_CLASSIC_SVC_CONF == 1 */
#include /**/ "ace/post.h"
diff --git a/ace/Ping_Socket.cpp b/ace/Ping_Socket.cpp
index 23bff4cb52a..9d1254a1bc3 100644
--- a/ace/Ping_Socket.cpp
+++ b/ace/Ping_Socket.cpp
@@ -19,12 +19,8 @@ ACE_RCSID (ace,
Ping_Socket,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_Ping_Socket)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
//---------------------------------------------------------------------------
// Better to arrange some os_include/netinet/ip.h and
// os_include/netinet/icmp.h files ?
@@ -78,8 +74,6 @@ struct icmp
#endif /* #if ! defined (ACE_WIN32) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int const ICMP_MIN = 8; // Minimal size of ICMP packet, header only
int const ICMP_DATA_LENGTH = 56; // For ICMP data with Echo request
ACE_Time_Value const ACE_Ping_Socket::time_default_ (0, 500000);
@@ -368,6 +362,4 @@ ACE_Ping_Socket::make_echo_check (ACE_INET_Addr & remote_addr,
return this->receive_echo_reply (timeout);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_ICMP_SUPPORT == 1 */
diff --git a/ace/Ping_Socket.h b/ace/Ping_Socket.h
index dc473495f67..943cd8d55a8 100644
--- a/ace/Ping_Socket.h
+++ b/ace/Ping_Socket.h
@@ -26,8 +26,6 @@
#include "ace/ICMP_Socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_INET_Addr;
/**
@@ -106,8 +104,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/Ping_Socket.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Ping_Socket.inl b/ace/Ping_Socket.inl
index c331b21cea7..27507dacdce 100644
--- a/ace/Ping_Socket.inl
+++ b/ace/Ping_Socket.inl
@@ -2,12 +2,8 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE char *
ACE_Ping_Socket::icmp_recv_buff (void)
{
return this->icmp_recv_buff_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Pipe.cpp b/ace/Pipe.cpp
index 3d91ce9ecce..9a94c458130 100644
--- a/ace/Pipe.cpp
+++ b/ace/Pipe.cpp
@@ -19,8 +19,6 @@
ACE_RCSID(ace, Pipe, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Pipe::dump (void) const
{
@@ -46,14 +44,9 @@ ACE_Pipe::open (int buffer_size)
ACE_SOCK_Stream reader;
ACE_SOCK_Stream writer;
int result = 0;
-# if defined (ACE_WIN32)
- ACE_INET_Addr local_any (static_cast<u_short> (0), ACE_LOCALHOST);
-# else
- ACE_Addr local_any = ACE_Addr::sap_any;
-# endif /* ACE_WIN32 */
// Bind listener to any port and then find out what the port was.
- if (acceptor.open (local_any) == -1
+ if (acceptor.open (ACE_Addr::sap_any) == -1
|| acceptor.get_local_addr (my_addr) == -1)
result = -1;
else
@@ -340,5 +333,3 @@ ACE_Pipe::recv (size_t n, ...) const
va_end (argp);
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Pipe.h b/ace/Pipe.h
index 7f208615da9..f8f103dd9f0 100644
--- a/ace/Pipe.h
+++ b/ace/Pipe.h
@@ -26,8 +26,6 @@
#include "ace/OS_NS_sys_uio.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_Message_Block;
class ACE_Time_Value;
@@ -39,7 +37,7 @@ class ACE_Time_Value;
*
* This class is designed to work with select()-based demuxers, such
* as the ACE_Select_Reactor, which is why it uses sockets on Windows
- * rather than Win32 pipes (which aren't select()'able).
+ * rather than Win32 pipes (which aren't select()'able).
*/
class ACE_Export ACE_Pipe
{
@@ -154,8 +152,6 @@ private:
ACE_HANDLE handles_[2];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Pipe.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Pipe.inl b/ace/Pipe.inl
index 17b532ed632..c5e31cc7061 100644
--- a/ace/Pipe.inl
+++ b/ace/Pipe.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Global_Macros.h"
#include "ace/ACE.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Pipe::~ACE_Pipe (void)
{
@@ -45,17 +42,17 @@ ACE_Pipe::sendv_n (const iovec iov[], int n) const
ACE_INLINE ssize_t
ACE_Pipe::send_n (const ACE_Message_Block *message_block,
- const ACE_Time_Value *timeout,
- size_t *bytes_transferred)
+ const ACE_Time_Value *timeout,
+ size_t *bytes_transferred)
{
ACE_TRACE ("ACE_Pipe::send_n");
+ ACE_UNUSED_ARG (timeout);
#if defined (ACE_WIN32)
return ACE::send_n (this->write_handle (),
message_block,
timeout,
bytes_transferred);
#else
- ACE_UNUSED_ARG (timeout);
return ACE::write_n (this->write_handle (),
message_block,
bytes_transferred);
@@ -127,9 +124,9 @@ ACE_Pipe::send (const void *buf, size_t n) const
{
ACE_TRACE ("ACE_Pipe::send");
#if defined (ACE_WIN32)
- return ACE_OS::send (this->write_handle (), static_cast <const char *> (buf), n);
+ return ACE_OS::send (this->write_handle (), (const char *) buf, n);
#else
- return ACE_OS::write (this->write_handle (), static_cast <const char *> (buf), n);
+ return ACE_OS::write (this->write_handle (), (const char *) buf, n);
#endif /* ACE_WIN32 */
}
@@ -138,9 +135,9 @@ ACE_Pipe::recv (void *buf, size_t n) const
{
ACE_TRACE ("ACE_Pipe::recv");
#if defined (ACE_WIN32)
- return ACE_OS::recv (this->read_handle (), static_cast <char *> (buf), n);
+ return ACE_OS::recv (this->read_handle (), (char *) buf, n);
#else
- return ACE_OS::read (this->read_handle (), static_cast <char *> (buf), n);
+ return ACE_OS::read (this->read_handle (), (char *) buf, n);
#endif /* ACE_WIN32 */
}
@@ -168,21 +165,19 @@ ACE_Pipe::recv (iovec iov[], int n) const
ACE_INLINE ssize_t
ACE_Pipe::send (const void *buf, size_t n,
- ACE_OVERLAPPED *overlapped) const
+ ACE_OVERLAPPED *overlapped) const
{
ACE_TRACE ("ACE_Pipe::send");
return ACE_OS::write (this->write_handle (),
- static_cast <const char *> (buf), n,
+ (const char *) buf, n,
overlapped);
}
ACE_INLINE ssize_t
ACE_Pipe::recv (void *buf, size_t n,
- ACE_OVERLAPPED *overlapped) const
+ ACE_OVERLAPPED *overlapped) const
{
ACE_TRACE ("ACE_Pipe::recv");
- return ACE_OS::read (this->read_handle (), static_cast <char *> (buf), n,
+ return ACE_OS::read (this->read_handle (), (char *) buf, n,
overlapped);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Priority_Reactor.cpp b/ace/Priority_Reactor.cpp
index 5e26b62948c..8a996fdf79e 100644
--- a/ace/Priority_Reactor.cpp
+++ b/ace/Priority_Reactor.cpp
@@ -5,8 +5,6 @@
ACE_RCSID(ace, Priority_Reactor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_Unbounded_Queue_Iterator<ACE_Event_Tuple> QUEUE_ITERATOR;
// Its iterator.
@@ -196,5 +194,3 @@ template class ACE_Cached_Mem_Pool_Node<ACE_Node<ACE_Event_Tuple> >;
#pragma instantiate ACE_Free_List<ACE_Cached_Mem_Pool_Node<ACE_Node<ACE_Event_Tuple> > >
#pragma instantiate ACE_Cached_Mem_Pool_Node<ACE_Node<ACE_Event_Tuple> >
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Priority_Reactor.h b/ace/Priority_Reactor.h
index 24a04166d88..dde598daa9e 100644
--- a/ace/Priority_Reactor.h
+++ b/ace/Priority_Reactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -14,7 +14,12 @@
#define ACE_PRIORITY_REACTOR_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_REACTOR_BUILD_DLL
+# include "ace/ACE_Reactor_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Reactor_Export ACE_Export
+#endif /* ACE_REACTOR_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -23,8 +28,6 @@
#include "ace/Select_Reactor.h"
#include "ace/Unbounded_Queue.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Priority_Reactor
*
@@ -34,7 +37,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* Select_Reactor by taking advantage of the priority method on
* ACE_Event_Handler.
*/
-class ACE_Export ACE_Priority_Reactor : public ACE_Select_Reactor
+class ACE_Reactor_Export ACE_Priority_Reactor : public ACE_Select_Reactor
{
public:
// = Initialization and termination methods.
@@ -93,7 +96,5 @@ private:
ACE_Priority_Reactor &operator = (const ACE_Priority_Reactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_PRIORITY_REACTOR_H */
diff --git a/ace/Proactor.cpp b/ace/Proactor.cpp
index 45f34ade7f1..c8012d7727b 100644
--- a/ace/Proactor.cpp
+++ b/ace/Proactor.cpp
@@ -38,8 +38,6 @@ ACE_RCSID (ace,
#include "ace/Auto_Event.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Process-wide ACE_Proactor.
ACE_Proactor *ACE_Proactor::proactor_ = 0;
@@ -138,7 +136,7 @@ ACE_Proactor_Timer_Handler::svc (void)
if (absolute_time > cur_time)
relative_time = absolute_time - cur_time;
else
- relative_time = ACE_Time_Value::zero;
+ relative_time = 0;
// Block for relative time.
result = this->timer_event_.wait (&relative_time, 0);
@@ -237,8 +235,7 @@ ACE_Proactor_Handle_Timeout_Upcall::timeout (TIMER_QUEUE &,
auto_ptr<ACE_Asynch_Result_Impl> safe_asynch_timer (asynch_timer);
// Post a completion.
- if (-1 == safe_asynch_timer->post_completion
- (this->proactor_->implementation ()))
+ if (asynch_timer->post_completion (this->proactor_->implementation ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_LIB_TEXT ("Failure in dealing with timers: ")
ACE_LIB_TEXT ("PostQueuedCompletionStatus failed\n")),
@@ -1192,15 +1189,12 @@ template class auto_ptr<ACE_Asynch_Result_Impl>;
#pragma instanstiate auto_ptr<ACE_Asynch_Result_Impl>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#else /* !ACE_WIN32 || !ACE_HAS_AIO_CALLS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Proactor *
-ACE_Proactor::instance (size_t /* threads */)
+ACE_Proactor::instance (size_t threads)
{
+ ACE_UNUSED_ARG (threads);
return 0;
}
@@ -1242,6 +1236,4 @@ ACE_Proactor::event_loop_done (void)
return sig_atomic_t (1);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 || ACE_HAS_AIO_CALLS*/
diff --git a/ace/Proactor.h b/ace/Proactor.h
index ad88b4ee36b..8ed6aa83a02 100644
--- a/ace/Proactor.h
+++ b/ace/Proactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -37,8 +37,6 @@
# include "ace/Timer_Heap.h"
# include "ace/Timer_Wheel.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_Proactor_Impl;
class ACE_Proactor_Timer_Handler;
@@ -46,7 +44,7 @@ class ACE_Proactor_Timer_Handler;
/**
* @class ACE_Proactor_Handle_Timeout_Upcall
*
- * @brief Functor for ACE_Timer_Queue.
+ * @brief Functor for <ACE_Timer_Queue>.
*
* This class implements the functor required by the Timer
* Queue to call <handle_timeout> on ACE_Handlers.
@@ -240,7 +238,7 @@ public:
static int reset_event_loop (void);
/**
- * The singleton proactor is used by the ACE_Service_Config.
+ * The singleton proactor is used by the <ACE_Service_Config>.
* Therefore, we must check for the reconfiguration request and
* handle it after handling an event.
*/
@@ -635,8 +633,6 @@ private:
ACE_Proactor &operator= (const ACE_Proactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (__ACE_INLINE__)
# include "ace/Proactor.inl"
# endif /* __ACE_INLINE__ */
@@ -646,8 +642,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/os_include/os_stddef.h"
# include "ace/os_include/os_signal.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
class ACE_Export ACE_Proactor
@@ -656,7 +650,6 @@ public:
class Timer_Queue {};
ACE_Proactor (size_t /* number_of_threads */ = 0,
Timer_Queue * /* tq */ = 0) {}
- virtual ~ACE_Proactor (void) {}
virtual int handle_events (void) { return -1; }
virtual int handle_events (ACE_Time_Value &) { return -1; }
@@ -682,8 +675,6 @@ public:
static sig_atomic_t event_loop_done (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS*/
#include /**/ "ace/post.h"
diff --git a/ace/Proactor.inl b/ace/Proactor.inl
index 37b887c14d6..c4c29697efc 100644
--- a/ace/Proactor.inl
+++ b/ace/Proactor.inl
@@ -1,14 +1,11 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Proactor::run_event_loop (void)
{
ACE_TRACE ("ACE_Proactor::run_event_loop");
- ACE_Proactor * const p = ACE_Proactor::instance ();
+ ACE_Proactor *p = ACE_Proactor::instance ();
if (p == 0)
return -1;
@@ -20,12 +17,12 @@ ACE_INLINE int
ACE_Proactor::run_event_loop (ACE_Time_Value &tv)
{
ACE_TRACE ("ACE_Proactor::run_event_loop (tv)");
- ACE_Proactor * const p = ACE_Proactor::instance ();
+ ACE_Proactor *p = ACE_Proactor::instance ();
if (p == 0)
return -1;
- return p->proactor_run_event_loop
+ return p->proactor_run_event_loop
(tv, ACE_Proactor::check_reconfiguration);
}
@@ -33,7 +30,7 @@ ACE_INLINE int
ACE_Proactor::reset_event_loop(void)
{
ACE_TRACE ("ACE_Proactor::reset_event_loop");
- ACE_Proactor * const p = ACE_Proactor::instance ();
+ ACE_Proactor *p = ACE_Proactor::instance ();
if (p == 0)
return -1;
@@ -45,7 +42,7 @@ ACE_INLINE int
ACE_Proactor::end_event_loop (void)
{
ACE_TRACE ("ACE_Proactor::end_event_loop");
- ACE_Proactor * const p = ACE_Proactor::instance ();
+ ACE_Proactor *p = ACE_Proactor::instance ();
if (p == 0)
return -1;
@@ -57,7 +54,7 @@ ACE_INLINE int
ACE_Proactor::event_loop_done (void)
{
ACE_TRACE ("ACE_Proactor::event_loop_done");
- ACE_Proactor * const p = ACE_Proactor::instance ();
+ ACE_Proactor *p = ACE_Proactor::instance ();
if (p == 0)
return -1;
@@ -69,12 +66,10 @@ ACE_INLINE int
ACE_Proactor::post_wakeup_completions (int how_many)
{
ACE_TRACE ("ACE_Proactor::post_wakeup_completions");
- ACE_Proactor * const p = ACE_Proactor::instance ();
+ ACE_Proactor *p = ACE_Proactor::instance ();
if (p == 0)
return -1;
return p->proactor_post_wakeup_completions (how_many);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Proactor_Impl.cpp b/ace/Proactor_Impl.cpp
index 0ab848c5920..9d8a3b08377 100644
--- a/ace/Proactor_Impl.cpp
+++ b/ace/Proactor_Impl.cpp
@@ -3,19 +3,15 @@
#include "ace/Proactor_Impl.h"
ACE_RCSID (ace,
- Proactor_Impl,
- "$Id$")
+ Proactor_Impl,
+ "$Id$")
#if ((defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) || (defined (ACE_HAS_AIO_CALLS)))
// This only works on Win32 platforms and on Unix platforms supporting
// aio calls.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Proactor_Impl::~ACE_Proactor_Impl (void)
+ACE_Proactor_Impl::~ACE_Proactor_Impl()
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif
diff --git a/ace/Proactor_Impl.h b/ace/Proactor_Impl.h
index 847bc694a10..262d3e66da3 100644
--- a/ace/Proactor_Impl.h
+++ b/ace/Proactor_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "ace/Reactor.h"
#include "ace/Countdown_Time.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Proactor_Impl
*
@@ -49,13 +47,13 @@ public:
/// Close the IO completion port.
virtual int close (void) = 0;
- /// This method adds the @a handle to the I/O completion port. This
+ /// This method adds the <handle> to the I/O completion port. This
/// function is a no-op function for Unix systems.
virtual int register_handle (ACE_HANDLE handle,
- const void *completion_key) = 0;
+ const void *completion_key) = 0;
/**
- * Dispatch a single set of events. If @a wait_time elapses before
+ * Dispatch a single set of events. If <wait_time> elapses before
* any events occur, return 0. Return 1 on success i.e., when a
* completion is dispatched, non-zero (-1) on errors and errno is
* set accordingly.
@@ -251,15 +249,13 @@ public:
int signal_number = 0) = 0;
/**
- * Post @a how_many completions to the completion port so that all
+ * Post <how_many> completions to the completion port so that all
* threads can wake up. This is used in conjunction with the
* <run_event_loop>.
*/
virtual int post_wakeup_completions (int how_many) = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* (ACE_WIN32 && ACE_HAS_WINCE) || ACE_HAS_AIO_CALLS */
#include /**/ "ace/post.h"
#endif /* ACE_PROACTOR_IMPL_H */
diff --git a/ace/Process.cpp b/ace/Process.cpp
index 1aa0adbd4e9..c505feaa874 100644
--- a/ace/Process.cpp
+++ b/ace/Process.cpp
@@ -31,7 +31,6 @@ sigchld_nop (int, siginfo_t *, ucontext_t *)
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Process::ACE_Process (void)
:
@@ -350,8 +349,8 @@ ACE_Process::spawn (ACE_Process_Options &options)
// releasing any of the converted string memory since this
// process will either exec() or exit() shortly.
# if defined (ACE_USES_WCHAR)
- ACE_Wide_To_Ascii n_procname (options.process_name ());
- const char *procname = n_procname.char_rep ();
+ ACE::String_Conversion::Convert_In< char, wchar_t > n_procname (options.process_name ());
+ const char *procname = n_procname.c_str ();
wchar_t * const *wargv = options.command_line_argv ();
size_t vcount, i;
@@ -359,8 +358,9 @@ ACE_Process::spawn (ACE_Process_Options &options)
;
char **procargv = new char *[vcount + 1]; // Need 0 at the end
procargv[vcount] = 0;
+
for (i = 0; i < vcount; ++i)
- procargv[i] = ACE_Wide_To_Ascii::convert (wargv[i]);
+ procargv[i] = ACE_TEXT_TO_CHAR_OUT (wargv[i]); // memory allocated!
wargv = options.env_argv ();
for (vcount = 0; wargv[vcount] != 0; ++vcount)
@@ -368,7 +368,7 @@ ACE_Process::spawn (ACE_Process_Options &options)
char **procenv = new char *[vcount + 1]; // Need 0 at the end
procenv[vcount] = 0;
for (i = 0; i < vcount; ++i)
- procenv[i] = ACE_Wide_To_Ascii::convert (wargv[i]);
+ procenv[i] = ACE_TEXT_TO_CHAR_OUT (wargv[i]); // memory allocated!
# else
const char *procname = options.process_name ();
char *const *procargv = options.command_line_argv ();
@@ -963,7 +963,7 @@ ACE_Process_Options::command_line (const ACE_TCHAR *format, ...)
return 0;
}
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_HAS_WINCE)
+#if !defined (ACE_HAS_WINCE)
/**
* @note Not available on Windows CE because it doesn't have a char version of
* vsprintf.
@@ -989,14 +989,14 @@ ACE_Process_Options::command_line (const ACE_ANTI_TCHAR *format, ...)
va_end (argp);
ACE_OS::strcpy (this->command_line_buf_,
- ACE_TEXT_ANTI_TO_TCHAR (anti_clb));
+ ACE_TEXT_TO_TCHAR_IN (anti_clb));
delete [] anti_clb;
command_line_argv_calculated_ = 0;
return 0;
}
-#endif /* ACE_HAS_WCHAR && !ACE_HAS_WINCE */
+#endif /* !ACE_HAS_WINCE */
ACE_TCHAR *
ACE_Process_Options::env_buf (void)
@@ -1111,6 +1111,10 @@ ACE_Process_Options::passed_handles (ACE_Handle_Set &set) const
return 1;
}
+ACE_Managed_Process::ACE_Managed_Process (void)
+{
+}
+
ACE_Managed_Process::~ACE_Managed_Process (void)
{
}
@@ -1120,5 +1124,3 @@ ACE_Managed_Process::unmanage (void)
{
delete this;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process.h b/ace/Process.h
index 98582720e1c..d273d6d9cb7 100644
--- a/ace/Process.h
+++ b/ace/Process.h
@@ -15,7 +15,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,8 +30,6 @@
#include "ace/Global_Macros.h"
#include "ace/os_include/sys/os_types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration
class ACE_Time_Value;
@@ -49,7 +52,7 @@ class ACE_Time_Value;
* then, the <spawn> is using the <execvp> which searches for the
* program file in the PATH variable.
*/
-class ACE_Export ACE_Process_Options
+class ACE_Threads_Export ACE_Process_Options
{
public:
enum
@@ -128,10 +131,8 @@ public:
/// be <= MAXPATHLEN.
void working_directory (const char *wd);
-#if defined (ACE_HAS_WCHAR)
/// wchar_t version of working_directory
void working_directory (const wchar_t *wd);
-#endif /* ACE_HAS_WCHAR */
/**
* Set the command-line arguments. @a format can use any printf
@@ -144,10 +145,10 @@ public:
*/
int command_line (const ACE_TCHAR *format, ...);
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_HAS_WINCE)
+#if !defined (ACE_HAS_WINCE)
/// Anti-TChar version of command_line ()
int command_line (const ACE_ANTI_TCHAR *format, ...);
-#endif /* ACE_HAS_WCHAR && !ACE_HAS_WINCE */
+#endif /* !ACE_HAS_WINCE */
/// Same as above in argv format. @a argv must be null terminated.
int command_line (const ACE_TCHAR * const argv[]);
@@ -437,7 +438,7 @@ protected:
* then, the <spawn> is using the <execvp> which searches for the
* program file in the PATH variable.
*/
-class ACE_Export ACE_Process
+class ACE_Threads_Export ACE_Process
{
public:
friend class ACE_Process_Manager;
@@ -456,11 +457,9 @@ public:
virtual int prepare (ACE_Process_Options &options);
/**
- * Launch a new process as described by @a options. On success,
- * returns 1 if the option avoid_zombies is set, else returns the
- * process id of the newly spawned child. Returns -1 on
- * failure. This will be fixed in the future versions of ACE when
- * the process id of the child will be returned regardless of the option.
+ * Launch a new process as described by @a options. Returns the
+ * process id of the newly spawned child on success or -1 on
+ * failure.
*/
virtual pid_t spawn (ACE_Process_Options &options);
@@ -497,7 +496,7 @@ public:
* If <status> != 0, it points to an integer where the function
* stores the child's exit status.
*
- * @note On UNIX platforms this function uses <ualarm>, i.e., it
+ * NOTE: on UNIX platforms this function uses <ualarm>, i.e., it
* overwrites any existing alarm. In addition, it steals all
* <SIGCHLD>s during the timeout period, which will break another
* <ACE_Process_Manager> in the same process that's expecting
@@ -549,12 +548,6 @@ public:
PROCESS_INFORMATION process_info (void);
#endif /* ACE_WIN32 */
-private:
-
- // Disallow copying and assignment since we don't support this (yet).
- ACE_Process (const ACE_Process &);
- void operator= (const ACE_Process &);
-
protected:
/// Set this process' <exit_code_>. ACE_Process_Manager uses this
/// method to set the <exit_code_> after successfully waiting for
@@ -574,6 +567,9 @@ protected:
/// Handle duplicates made for the child process.
ACE_Handle_Set dup_handles_;
+ // = Disallow copying and assignment since we don't support this (yet).
+ ACE_UNIMPLEMENTED_FUNC (ACE_Process (const ACE_Process &))
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Process &))
};
@@ -586,22 +582,22 @@ protected:
* @arg unmanage() method that deletes the instance.
* This class is only valid for use as a dynamically-allocated object!
*/
-class ACE_Export ACE_Managed_Process : public ACE_Process
+class ACE_Threads_Export ACE_Managed_Process : public ACE_Process
{
public:
+ ACE_Managed_Process ();
/// Cleanup by deleting @c this.
virtual void unmanage (void);
-protected:
-
+private:
/// Make sure that we're allocated dynamically!
virtual ~ACE_Managed_Process (void);
+ /// Keep G++ happy...
+ friend class ace_dewarn_gplusplus;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Process.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Process.inl b/ace/Process.inl
index 3b9b18f6429..b8a0d721a7b 100644
--- a/ace/Process.inl
+++ b/ace/Process.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/ACE.h"
@@ -8,8 +7,6 @@
#include "ace/OS_NS_pwd.h"
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32)
ACE_INLINE PROCESS_INFORMATION
@@ -250,7 +247,7 @@ ACE_INLINE int
ACE_Process_Options::setreugid (const ACE_TCHAR* user)
{
#if !defined (ACE_LACKS_PWD_FUNCTIONS)
- struct passwd *ent = ACE_OS::getpwnam (ACE_TEXT_ALWAYS_CHAR (user));
+ struct passwd *ent = ACE_OS::getpwnam (ACE_TEXT_TO_CHAR_IN (user));
if (ent != 0)
{
@@ -342,23 +339,21 @@ ACE_INLINE void
ACE_Process_Options::working_directory (const char *wd)
{
#if !defined(ACE_HAS_WINCE)
- ACE_OS::strcpy (working_directory_, ACE_TEXT_CHAR_TO_TCHAR (wd));
+ ACE_OS::strcpy (working_directory_, ACE_TEXT_TO_TCHAR_IN (wd));
#else
ACE_UNUSED_ARG (wd);
#endif /* !ACE_HAS_WINCE */
}
-#if defined (ACE_HAS_WCHAR)
ACE_INLINE void
ACE_Process_Options::working_directory (const wchar_t *wd)
{
#if !defined(ACE_HAS_WINCE)
- ACE_OS::strcpy (working_directory_, ACE_TEXT_WCHAR_TO_TCHAR (wd));
+ ACE_OS::strcpy (working_directory_, ACE_TEXT_TO_TCHAR_IN (wd));
#else
ACE_UNUSED_ARG (wd);
#endif /* !ACE_HAS_WINCE */
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE void
ACE_Process_Options::process_name (const ACE_TCHAR *p)
@@ -380,33 +375,35 @@ ACE_Process_Options::process_name (void)
// under CE. They are not empty on most other platforms.
ACE_INLINE int
-ACE_Process_Options::setenv (ACE_TCHAR * /* envp */[])
+ACE_Process_Options::setenv (ACE_TCHAR *envp[])
{
+ ACE_UNUSED_ARG (envp);
return -1;
}
ACE_INLINE int
-ACE_Process_Options::setenv (const ACE_TCHAR * /* format */, ...)
+ACE_Process_Options::setenv (const ACE_TCHAR *format, ...)
{
return -1;
}
ACE_INLINE int
-ACE_Process_Options::setenv (const ACE_TCHAR * /* variable_name */,
- const ACE_TCHAR * /* format */,
+ACE_Process_Options::setenv (const ACE_TCHAR *variable_name,
+ const ACE_TCHAR *format,
...)
{
return -1;
}
ACE_INLINE int
-ACE_Process_Options::set_handles (ACE_HANDLE /* std_in */,
- ACE_HANDLE /* std_out */,
- ACE_HANDLE /* std_err */)
+ACE_Process_Options::set_handles (ACE_HANDLE std_in,
+ ACE_HANDLE std_out,
+ ACE_HANDLE std_err)
{
+ ACE_UNUSED_ARG (std_in);
+ ACE_UNUSED_ARG (std_out);
+ ACE_UNUSED_ARG (std_err);
return -1;
}
#endif /* ACE_HAS_WINCE */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp
index 9589885ca84..bcadb08c49e 100644
--- a/ace/Process_Manager.cpp
+++ b/ace/Process_Manager.cpp
@@ -32,8 +32,6 @@ ACE_Process_Manager_cleanup (void *instance, void *arg)
}
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Process_Manager::cleanup (void *, void *)
{
@@ -419,15 +417,14 @@ ACE_Process_Manager::register_handler (ACE_Event_Handler *eh,
// Create a new process.
pid_t
-ACE_Process_Manager::spawn (ACE_Process_Options &options,
- ACE_Event_Handler *event_handler)
+ACE_Process_Manager::spawn (ACE_Process_Options &options)
{
ACE_Process *process;
ACE_NEW_RETURN (process,
ACE_Managed_Process,
ACE_INVALID_PID);
- pid_t pid = spawn (process, options, event_handler);
+ pid_t pid = spawn (process, options);
if (pid == ACE_INVALID_PID || pid == 0)
delete process;
@@ -438,8 +435,7 @@ ACE_Process_Manager::spawn (ACE_Process_Options &options,
pid_t
ACE_Process_Manager::spawn (ACE_Process *process,
- ACE_Process_Options &options,
- ACE_Event_Handler *event_handler)
+ ACE_Process_Options &options)
{
ACE_TRACE ("ACE_Process_Manager::spawn");
@@ -452,7 +448,7 @@ ACE_Process_Manager::spawn (ACE_Process *process,
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex,
ace_mon, this->lock_, -1));
- if (this->append_proc (process, event_handler) == -1)
+ if (this->append_proc (process) == -1)
// bad news: spawned, but not registered in table.
return ACE_INVALID_PID;
@@ -464,8 +460,7 @@ ACE_Process_Manager::spawn (ACE_Process *process,
int
ACE_Process_Manager::spawn_n (size_t n,
ACE_Process_Options &options,
- pid_t *child_pids,
- ACE_Event_Handler *event_handler)
+ pid_t *child_pids)
{
ACE_TRACE ("ACE_Process_Manager::spawn_n");
@@ -479,7 +474,7 @@ ACE_Process_Manager::spawn_n (size_t n,
i < n;
i++)
{
- pid_t pid = this->spawn (options, event_handler);
+ pid_t pid = this->spawn (options);
if (pid == ACE_INVALID_PID || pid == 0)
// We're in the child or something's gone wrong.
return pid;
@@ -494,8 +489,7 @@ ACE_Process_Manager::spawn_n (size_t n,
// Must be called with locks held.
int
-ACE_Process_Manager::append_proc (ACE_Process *proc,
- ACE_Event_Handler *event_handler)
+ACE_Process_Manager::append_proc (ACE_Process *proc)
{
ACE_TRACE ("ACE_Process_Manager::append_proc");
@@ -514,7 +508,7 @@ ACE_Process_Manager::append_proc (ACE_Process *proc,
this->process_table_[this->current_count_];
proc_desc.process_ = proc;
- proc_desc.exit_notify_ = event_handler;
+ proc_desc.exit_notify_ = 0;
#if defined (ACE_WIN32)
// If we have a Reactor, then we're supposed to reap Processes
@@ -534,8 +528,7 @@ ACE_Process_Manager::append_proc (ACE_Process *proc,
// allow them to be inserted twice).
int
-ACE_Process_Manager::insert_proc (ACE_Process *proc,
- ACE_Event_Handler *event_handler)
+ACE_Process_Manager::insert_proc (ACE_Process *proc)
{
ACE_TRACE ("ACE_Process_Manager::insert_proc");
@@ -544,7 +537,7 @@ ACE_Process_Manager::insert_proc (ACE_Process *proc,
if (this->find_proc (proc->getpid ()) != -1)
return -1;
- return this->append_proc (proc, event_handler);
+ return this->append_proc (proc);
}
// Remove a process from the pool.
@@ -774,7 +767,7 @@ ACE_Process_Manager::wait (pid_t pid,
{
// Wait for any Process spawned by this Process_Manager.
#if defined (ACE_WIN32)
- HANDLE *handles = 0;
+ HANDLE *handles;
ACE_NEW_RETURN (handles,
HANDLE[this->current_count_],
@@ -984,5 +977,3 @@ ACE_Process_Manager::notify_proc_handler (size_t i,
return 0;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process_Manager.h b/ace/Process_Manager.h
index 8d50e29a2a1..6a122b7b395 100644
--- a/ace/Process_Manager.h
+++ b/ace/Process_Manager.h
@@ -15,7 +15,13 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,8 +35,6 @@
# include "ace/Recursive_Thread_Mutex.h"
#endif /* ACE_HAS_THREADS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Reactor;
/**
@@ -39,7 +43,7 @@ class ACE_Reactor;
* @brief Information describing each process that's controlled by an
* \<ACE_Process_Manager\>.
*/
-class ACE_Export ACE_Process_Descriptor
+class ACE_Threads_Export ACE_Process_Descriptor
{
private:
friend class ACE_Process_Manager;
@@ -93,8 +97,8 @@ private:
* <Process> exits, or when any <Process> without a specific
* <Event_Handler> exits. When a <Process> exits, the
* appropriate <Event_Handler>'s <handle_input> is called; the
- * ACE_HANDLE passed is either the Process' HANDLE (on Win32),
- * or its pid cast to an ACE_HANDLE (on unix).
+ * <ACE_HANDLE> passed is either the Process' HANDLE (on Win32),
+ * or its pid cast to an <ACE_HANDLE> (on unix).
* It is also possible to call the <Process_Manager::wait>
* functions even though the <Process_Manager> is registered with
* a <Reactor>.
@@ -121,7 +125,7 @@ private:
* + The <handle_input> method collects all available exit
* statuses.
*/
-class ACE_Export ACE_Process_Manager : protected ACE_Event_Handler
+class ACE_Threads_Export ACE_Process_Manager : protected ACE_Event_Handler
{
public:
friend class ACE_Process_Control;
@@ -138,7 +142,7 @@ public:
* needed. If a non-NULL <reactor> is provided, this
* <ACE_Process_Manager> uses it to notify an application when a
* process it controls exits. By default, however, we don't use an
- * ACE_Reactor.
+ * <ACE_Reactor>.
*/
ACE_Process_Manager (size_t size = ACE_Process_Manager::DEFAULT_SIZE,
ACE_Reactor *reactor = 0);
@@ -149,7 +153,7 @@ public:
* needed. If a non-NULL <reactor> is provided, this
* <ACE_Process_Manager> uses it to notify an application when a
* process it controls exits. By default, however, we don't use an
- * ACE_Reactor.
+ * <ACE_Reactor>.
*/
int open (size_t size = DEFAULT_SIZE,
ACE_Reactor *r = 0);
@@ -179,38 +183,30 @@ public:
// = Process creation methods.
/**
- * Create a new process by passing <options> to <proc.spawn>.
- * Register <event_handler> to be called back when the process exits.
- *
- * On success, returns the process id of the child that was created.
+ * Create a new process by passing <options> to <proc.spawn>. On
+ * success, returns the process id of the child that was created.
* On failure, returns ACE_INVALID_PID.
*/
pid_t spawn (ACE_Process *proc,
- ACE_Process_Options &options,
- ACE_Event_Handler *event_handler = 0);
+ ACE_Process_Options &options);
/**
- * Create a new process by passing <options> to <ACE_Process::spawn>.
- * Register <event_handler> to be called back when the process exits.
- *
- * On success, returns the process id of the child that was created.
- * On failure, returns ACE_INVALID_PID.
+ * Create a new process by passing <options> to
+ * <ACE_Process::spawn>. On success, returns the process id of the
+ * child that was created. On failure, returns ACE_INVALID_PID.
*/
- pid_t spawn (ACE_Process_Options &options,
- ACE_Event_Handler *event_handler = 0);
+ pid_t spawn (ACE_Process_Options &options);
/**
* Create <n> new processes by passing <options> to
* <ACE_Process::spawn>, which is called <n> times. If <child_pids>
* is non-0 it is expected to be an array of <n> <pid_t>'s, which
* are filled in with the process ids of each newly created process.
- * Register <event_handler> to be called back when each process exits.
* Returns 0 on success and -1 on failure.
*/
int spawn_n (size_t n,
ACE_Process_Options &options,
- pid_t *child_pids = 0,
- ACE_Event_Handler *event_Handler = 0);
+ pid_t *child_pids = 0);
// = Process synchronization operations.
@@ -252,7 +248,6 @@ public:
ACE_exitcode *status = 0);
/**
- * @deprecated
* Reap the result of a single process by calling <ACE_OS::waitpid>,
* therefore, this method is not portable to Win32. If the child is
* successfully reaped, <remove> is called automatically. This
@@ -268,11 +263,6 @@ public:
* Register an Event_Handler to be called back when the specified
* process exits. If pid == ACE_INVALID_PID this handler is called
* when any process with no specific handler exits.
- *
- * @note In multi-threaded applications, there is a race condition
- * if a process exits between the time it is spawned and when its
- * handler is registered. To avoid this, register the handler at
- * the time the process is spawned.
*/
int register_handler (ACE_Event_Handler *event_handler,
pid_t pid = ACE_INVALID_PID);
@@ -367,18 +357,14 @@ private:
/// Insert a process in the table (checks for duplicates). Omitting
/// the process handle won't work on Win32...
- /// Register <event_handler> to be called back when the process exits.
- int insert_proc (ACE_Process *process,
- ACE_Event_Handler *event_handler = 0);
+ int insert_proc (ACE_Process *process);
/**
* Append information about a process, i.e., its <process_id> in the
* <process_table_>. Each entry is added at the end, growing the
* table if necessary.
- * Register <event_handler> to be called back when the process exits.
*/
- int append_proc (ACE_Process *process,
- ACE_Event_Handler *event_handler = 0);
+ int append_proc (ACE_Process *process);
/// Actually removes the process at index <n> from the table. This method
/// must be called with locks held.
@@ -416,8 +402,6 @@ private:
#endif /* ACE_HAS_THREADS */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Process_Manager.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Process_Manager.inl b/ace/Process_Manager.inl
index 248acd4c8e0..c6ee1f25260 100644
--- a/ace/Process_Manager.inl
+++ b/ace/Process_Manager.inl
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE size_t
ACE_Process_Manager::managed (void) const
{
return current_count_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process_Mutex.cpp b/ace/Process_Mutex.cpp
index 558585a8ce5..0810ec1af50 100644
--- a/ace/Process_Mutex.cpp
+++ b/ace/Process_Mutex.cpp
@@ -13,8 +13,6 @@
ACE_RCSID(ace, Process_Mutex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Process_Mutex)
void
@@ -40,7 +38,7 @@ ACE_Process_Mutex::unique_name (void)
ACE_Process_Mutex::ACE_Process_Mutex (const char *name, void *arg, mode_t mode)
#if defined (_ACE_USE_SV_SEM)
- : lock_ (name ? name : ACE_TEXT_ALWAYS_CHAR (this->unique_name ()),
+ : lock_ (name ? name : ACE_TEXT_TO_CHAR_IN (this->unique_name ()),
ACE_SV_Semaphore_Complex::ACE_CREATE,
1,
1,
@@ -48,7 +46,7 @@ ACE_Process_Mutex::ACE_Process_Mutex (const char *name, void *arg, mode_t mode)
#else
: lock_ (USYNC_PROCESS,
name ?
- ACE_TEXT_CHAR_TO_TCHAR (name) : this->unique_name (),
+ ACE_TEXT_TO_TCHAR_IN (name) : this->unique_name (),
(ACE_mutexattr_t *) arg,
mode)
#endif /* _ACE_USE_SV_SEM */
@@ -58,14 +56,13 @@ ACE_Process_Mutex::ACE_Process_Mutex (const char *name, void *arg, mode_t mode)
#endif /* !_ACE_USE_SV_SEM */
}
-#if defined (ACE_HAS_WCHAR)
ACE_Process_Mutex::ACE_Process_Mutex (const wchar_t *name,
void *arg,
mode_t mode)
#if defined (_ACE_USE_SV_SEM)
: lock_ (name ?
- ACE_Wide_To_Ascii (name).char_rep () :
- ACE_TEXT_ALWAYS_CHAR (this->unique_name ()),
+ ACE_TEXT_TO_CHAR_IN (name) :
+ ACE_TEXT_TO_CHAR_IN (this->unique_name ()),
ACE_SV_Semaphore_Complex::ACE_CREATE,
1,
1,
@@ -73,7 +70,7 @@ ACE_Process_Mutex::ACE_Process_Mutex (const wchar_t *name,
#else
: lock_ (USYNC_PROCESS,
name ?
- ACE_TEXT_WCHAR_TO_TCHAR (name) : this->unique_name (),
+ ACE_TEXT_TO_TCHAR_IN (name) : this->unique_name (),
(ACE_mutexattr_t *) arg,
mode)
#endif /* _ACE_USE_SV_SEM */
@@ -82,7 +79,7 @@ ACE_Process_Mutex::ACE_Process_Mutex (const wchar_t *name,
ACE_UNUSED_ARG (arg);
#endif /* _ACE_USE_SV_SEM */
}
-#endif /* ACE_HAS_WCHAR */
+
ACE_Process_Mutex::~ACE_Process_Mutex (void)
{
}
@@ -101,5 +98,3 @@ template class ACE_Malloc_Lock_Adapter_T<ACE_Process_Mutex>;
#pragma instantiate ACE_Malloc_Lock_Adapter_T<ACE_Process_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process_Mutex.h b/ace/Process_Mutex.h
index 130f59980f1..262525f7bed 100644
--- a/ace/Process_Mutex.h
+++ b/ace/Process_Mutex.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//=============================================================================
/**
* @file Process_Mutex.h
@@ -37,8 +36,6 @@
# include "ace/Mutex.h"
#endif /* ACE_HAS_SYSV_IPC && !ACE_USES_MUTEX_FOR_PROCESS_MUTEX */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
class ACE_Time_Value;
@@ -90,8 +87,6 @@ public:
ACE_Process_Mutex (const char *name = 0,
void *arg = 0,
mode_t mode = ACE_DEFAULT_FILE_PERMS);
-
-#if defined (ACE_HAS_WCHAR)
/**
* Create a Process_Mutex, passing in the optional @c name. (@c wchar_t
* version)
@@ -109,7 +104,6 @@ public:
ACE_Process_Mutex (const wchar_t *name,
void *arg = 0,
mode_t mode = ACE_DEFAULT_FILE_PERMS);
-#endif /* ACE_HAS_WCHAR */
~ACE_Process_Mutex (void);
@@ -205,8 +199,6 @@ private:
#endif /* _ACE_USE_SV_SEM */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Process_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Process_Mutex.inl b/ace/Process_Mutex.inl
index 6c19e8d6757..bf2c8c29ef6 100644
--- a/ace/Process_Mutex.inl
+++ b/ace/Process_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined (_ACE_USE_SV_SEM)
ACE_INLINE const ACE_mutex_t &
ACE_Process_Mutex::lock (void) const
@@ -114,5 +111,3 @@ ACE_Process_Mutex::tryacquire_write_upgrade (void)
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process_Semaphore.cpp b/ace/Process_Semaphore.cpp
index 952f20a99f6..7e3bdb7f90c 100644
--- a/ace/Process_Semaphore.cpp
+++ b/ace/Process_Semaphore.cpp
@@ -12,8 +12,6 @@
ACE_RCSID(ace, Process_Semaphore, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Process_Semaphore::dump (void) const
{
@@ -32,7 +30,7 @@ ACE_Process_Semaphore::ACE_Process_Semaphore (u_int count,
#if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM) || defined (ACE_PSOS)
: lock_ (count, USYNC_PROCESS, name, arg, max)
#else
- : lock_ (ACE_TEXT_ALWAYS_CHAR (name),
+ : lock_ (ACE_TEXT_TO_CHAR_IN (name),
ACE_SV_Semaphore_Complex::ACE_CREATE,
count)
#endif /* ACE_WIN32 || ACE_HAS_POSIX_SEM || ACE_PSOS */
@@ -42,10 +40,10 @@ ACE_Process_Semaphore::ACE_Process_Semaphore (u_int count,
// ACE_TRACE ("ACE_Process_Semaphore::ACE_Process_Semaphore");
}
-// ACE_Process_Semaphore::~ACE_Process_Semaphore (void)
-// {
-// // ACE_TRACE ("ACE_Process_Semaphore::~ACE_Process_Semaphore");
-// }
+ACE_Process_Semaphore::~ACE_Process_Semaphore (void)
+{
+ // ACE_TRACE ("ACE_Process_Semaphore::~ACE_Process_Semaphore");
+}
// Explicitly destroy the semaphore.
@@ -113,4 +111,3 @@ ACE_Malloc_Lock_Adapter_T<ACE_Process_Semaphore>::operator () (const ACE_TCHAR *
return p;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Process_Semaphore.h b/ace/Process_Semaphore.h
index d9b813b4d4d..295c79d5ce0 100644
--- a/ace/Process_Semaphore.h
+++ b/ace/Process_Semaphore.h
@@ -18,7 +18,13 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -30,15 +36,13 @@
# include "ace/Semaphore.h"
#endif /* !(ACE_WIN32 || ACE_HAS_POSIX_SEM || ACE_PSOS) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Process_Semaphore
*
* @brief Wrapper for Dijkstra style general semaphores that work
* across processes.
*/
-class ACE_Export ACE_Process_Semaphore
+class ACE_Threads_Export ACE_Process_Semaphore
{
public:
/// Initialize the semaphore, with an initial value of @a count and a
@@ -53,7 +57,7 @@ public:
* If you want to remove the semaphore, you must call the <remove>
* method explicitly.
*/
- // ~ACE_Process_Semaphore (void);
+ ~ACE_Process_Semaphore (void);
/**
* Explicitly destroy the semaphore. Note that only one thread
@@ -151,15 +155,12 @@ template <class T> class ACE_Malloc_Lock_Adapter_T;
* the standard form used by other lock strategy classes.
*/
template<>
-class ACE_Export ACE_Malloc_Lock_Adapter_T<ACE_Process_Semaphore>
+class ACE_Threads_Export ACE_Malloc_Lock_Adapter_T<ACE_Process_Semaphore>
{
public:
ACE_Process_Semaphore * operator () (const ACE_TCHAR *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (__ACE_INLINE__)
#include "ace/Process_Semaphore.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Process_Semaphore.inl b/ace/Process_Semaphore.inl
index 98c29c9b9b6..8470291233c 100644
--- a/ace/Process_Semaphore.inl
+++ b/ace/Process_Semaphore.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32) || defined (ACE_HAS_POSIX_SEM) || defined (ACE_PSOS)
ACE_INLINE const ACE_sema_t &
ACE_Process_Semaphore::lock (void) const
@@ -62,5 +59,3 @@ ACE_Process_Semaphore::tryacquire_write_upgrade (void)
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Profile_Timer.cpp b/ace/Profile_Timer.cpp
index 1198d64de05..c3fe6f5e0d6 100644
--- a/ace/Profile_Timer.cpp
+++ b/ace/Profile_Timer.cpp
@@ -11,15 +11,12 @@
ACE_RCSID(ace, Profile_Timer, "$Id$")
+ACE_ALLOC_HOOK_DEFINE(ACE_Profile_Timer)
+
#if (defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)) && !defined (ACE_WIN32)
#include "ace/OS_NS_stdio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_ALLOC_HOOK_DEFINE(ACE_Profile_Timer)
-
-
void
ACE_Profile_Timer::dump (void) const
{
@@ -264,12 +261,8 @@ ACE_Profile_Timer::elapsed_time (ACE_Elapsed_Time &et)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#elif defined (ACE_WIN32) /* defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Profile_Timer::dump (void) const
{
@@ -345,16 +338,10 @@ ACE_Profile_Timer::elapsed_rusage (ACE_Profile_Timer::Rusage &usage)
ACE_TRACE ("ACE_Profile_Timer::elapsed_rusage");
# if defined (ACE_HAS_GETRUSAGE)
- // Use ACE_Time_Value's as intermediate because the type of ru_utime can
- // be multiple types and using the - operator is not safe when this are
- // 64bit FILETIMEs on Windows
- ACE_Time_Value end_ru_utime (this->end_usage_.ru_utime);
- ACE_Time_Value begin_ru_utime (this->begin_usage_.ru_utime);
- usage.ru_utime = end_ru_utime - begin_ru_utime;
-
- ACE_Time_Value end_ru_stime (this->end_usage_.ru_stime);
- ACE_Time_Value begin_ru_stime (this->begin_usage_.ru_stime);
- usage.ru_stime = end_ru_stime - begin_ru_stime;
+ usage.ru_utime =
+ this->end_usage_.ru_utime - this->begin_usage_.ru_utime;
+ usage.ru_stime =
+ this->end_usage_.ru_stime - this->begin_usage_.ru_stime;
# else /* ACE_HAS_GETRUSAGE */
usage = 0;
# endif /* ACE_HAS_GETRUSAGE */
@@ -380,12 +367,8 @@ ACE_Profile_Timer::subtract (timeval &tdiff, timeval &t1, timeval &t0)
}
# endif /* ACE_HAS_GETRUSAGE */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#else
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Profile_Timer::dump (void) const
{
@@ -441,7 +424,5 @@ ACE_Profile_Timer::elapsed_rusage (ACE_Profile_Timer::Rusage &usage)
usage = 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* defined (ACE_HAS_PRUSAGE_T) ||
defined (ACE_HAS_GETRUSAGE) && !defined (ACE_WIN32) */
diff --git a/ace/Profile_Timer.h b/ace/Profile_Timer.h
index 3740d99002c..e7475a0c586 100644
--- a/ace/Profile_Timer.h
+++ b/ace/Profile_Timer.h
@@ -23,8 +23,6 @@
#include "ace/High_Res_Timer.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Profile_Timer
*
@@ -132,8 +130,6 @@ private:
#endif /* ACE_WIN32 || !ACE_HAS_PRUSAGE_T && !ACE_HAS_GETRUSAGE */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/Profile_Timer.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Profile_Timer.inl b/ace/Profile_Timer.inl
index 6ef5aa45af3..6256ad61868 100644
--- a/ace/Profile_Timer.inl
+++ b/ace/Profile_Timer.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_sys_time.h"
@@ -9,9 +8,8 @@
#if (defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)) && !defined (ACE_WIN32)
# if defined (ACE_HAS_PRUSAGE_T)
-# include "ace/OS_NS_stropts.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+# include "ace/OS_NS_stropts.h"
ACE_INLINE int
ACE_Profile_Timer::start (void)
@@ -31,13 +29,7 @@ ACE_Profile_Timer::stop (void)
PIOCUSAGE,
&this->end_usage_);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# elif defined (ACE_HAS_GETRUSAGE)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Profile_Timer::start (void)
{
@@ -60,14 +52,10 @@ ACE_Profile_Timer::stop (void)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# endif /* ACE_HAS_PRUSAGE_T */
#elif defined (ACE_WIN32)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Profile_Timer::~ACE_Profile_Timer (void)
{
@@ -97,12 +85,8 @@ ACE_Profile_Timer::stop (void)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#else
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Profile_Timer::start (void)
{
@@ -124,6 +108,4 @@ ACE_Profile_Timer::~ACE_Profile_Timer (void)
{
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE) */
diff --git a/ace/QoS/QoS_Decorator.cpp b/ace/QoS/QoS_Decorator.cpp
index 90cc748e856..5db08066010 100644
--- a/ace/QoS/QoS_Decorator.cpp
+++ b/ace/QoS/QoS_Decorator.cpp
@@ -3,9 +3,7 @@
#include "QoS_Decorator.h"
-ACE_RCSID(ace, QoS_Decorator, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, QoS_Decorator, "$Id $")
ACE_ALLOC_HOOK_DEFINE(ACE_QOS_DECORATOR)
@@ -161,5 +159,3 @@ ACE_QoS_Event_Handler::handle_input (ACE_HANDLE fd)
{
return this->decorator_base_->handle_qos (fd);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QoS/QoS_Decorator.h b/ace/QoS/QoS_Decorator.h
index 512912e7c3b..cf062216ec4 100644
--- a/ace/QoS/QoS_Decorator.h
+++ b/ace/QoS/QoS_Decorator.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,7 +26,7 @@
#include "SOCK_Dgram_Mcast_QoS.h"
#include "ACE_QoS_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(QOS_Decorator, QOS_Decorator, "$Id$")
/**
* @class ACE_QoS_Decorator_Base
@@ -173,7 +173,5 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* QOS_DECORATOR_H */
diff --git a/ace/QoS/QoS_Manager.cpp b/ace/QoS/QoS_Manager.cpp
index 5d3b33e0260..7e698b0cad2 100644
--- a/ace/QoS/QoS_Manager.cpp
+++ b/ace/QoS/QoS_Manager.cpp
@@ -4,9 +4,7 @@
#include "QoS_Manager.h"
#include "ace/Log_Msg.h"
-ACE_RCSID(ace, QoS_Manager, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, QoS_Manager, "$Id $")
ACE_ALLOC_HOOK_DEFINE(ACE_QOS_MANAGER)
@@ -47,5 +45,3 @@ template class ACE_Unbounded_Set_Iterator<ACE_QoS_Session *>;
#pragma instantiate ACE_Unbounded_Set<ACE_QoS_Session *>
#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_QoS_Session *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QoS/QoS_Manager.h b/ace/QoS/QoS_Manager.h
index 8a0b52c9943..1c1bce7df53 100644
--- a/ace/QoS/QoS_Manager.h
+++ b/ace/QoS/QoS_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,9 +26,6 @@
#include "ACE_QoS_Export.h"
#include "QoS_Session.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_QoS_Manager
*
@@ -68,7 +65,5 @@ private:
ACE_QOS_SESSION_SET qos_session_set_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_QOS_MANAGER_H */
diff --git a/ace/QoS/QoS_Session.h b/ace/QoS/QoS_Session.h
index 3e08bbc69ce..780a80b5a80 100644
--- a/ace/QoS/QoS_Session.h
+++ b/ace/QoS/QoS_Session.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_SOCK;
class ACE_QoS_Manager;
@@ -177,7 +175,5 @@ protected:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_QOS_SESSION_H */
diff --git a/ace/QoS/QoS_Session_Factory.cpp b/ace/QoS/QoS_Session_Factory.cpp
index 89a8fbcc913..bb72c0f492f 100644
--- a/ace/QoS/QoS_Session_Factory.cpp
+++ b/ace/QoS/QoS_Session_Factory.cpp
@@ -7,8 +7,6 @@
ACE_RCSID(ace, QoS_Session_Factory, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_QoS_Session_Factory)
#if defined(ACE_HAS_RAPI)
@@ -101,5 +99,3 @@ ACE_QoS_Session_Factory::remove_session (ACE_QoS_Session *qos_session)
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QoS/QoS_Session_Factory.h b/ace/QoS/QoS_Session_Factory.h
index 0559dce4220..2e80e338d3e 100644
--- a/ace/QoS/QoS_Session_Factory.h
+++ b/ace/QoS/QoS_Session_Factory.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/Containers_T.h"
#include "ACE_QoS_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declare this, so the factory uses only references to this.
class ACE_QoS_Session;
@@ -90,7 +88,5 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_QOS_SESSION_FACTORY_H */
diff --git a/ace/QoS/QoS_Session_Impl.cpp b/ace/QoS/QoS_Session_Impl.cpp
index 09014ae50c2..6ed1ae63587 100644
--- a/ace/QoS/QoS_Session_Impl.cpp
+++ b/ace/QoS/QoS_Session_Impl.cpp
@@ -13,39 +13,41 @@
ACE_RCSID(ace, QoS_Session_Impl, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_QoS_Session_Impl)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_RAPI)
#include "rapi_err.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int ACE_RAPI_Session::rsvp_error = 0;
// Call back function used by RAPI to report RSVP events. This
// function translates the RAPI QoS parameters into the more generic
// ACE_QoS parameters for the underlying RAPI session.
int
-rsvp_callback (rapi_sid_t /* sid */,
+rsvp_callback (rapi_sid_t sid,
rapi_eventinfo_t eventype,
- int /* style_id */,
+ int style_id,
int errcode,
int errvalue,
sockaddr * errnode,
- u_char /* errflags */,
- int /* filter_spec_no */,
- rapi_filter_t * /* filter_spec_list */,
+ u_char errflags,
+ int filter_spec_no,
+ rapi_filter_t *filter_spec_list,
int flow_spec_no,
rapi_flowspec_t *flow_spec_list,
- int /* ad_spec_no */,
- rapi_adspec_t * /* ad_spec_list */,
+ int ad_spec_no,
+ rapi_adspec_t *ad_spec_list,
void *args
)
{
+ ACE_UNUSED_ARG (sid);
+ ACE_UNUSED_ARG (style_id);
+ ACE_UNUSED_ARG (filter_spec_no);
+ ACE_UNUSED_ARG (filter_spec_list);
+ ACE_UNUSED_ARG (ad_spec_no);
+ ACE_UNUSED_ARG (ad_spec_list);
+ ACE_UNUSED_ARG (errflags);
+
if (args == 0)
ACE_DEBUG ((LM_DEBUG,
"Argument in the call back function is null\n\n"));
@@ -54,7 +56,7 @@ rsvp_callback (rapi_sid_t /* sid */,
qos_flowspecx_t *csxp = 0;
- if (!flow_spec_list)
+ if(!flow_spec_list)
{
ACE_DEBUG ((LM_DEBUG,
"(%N|%l) Null flow_spec_list\n"));
@@ -311,10 +313,12 @@ ACE_RAPI_Session::rsvp_event_type (ACE_QoS_Session::RSVP_Event_Type event_type)
}
int
-ACE_RAPI_Session::qos (ACE_SOCK * /* socket */,
- ACE_QoS_Manager * /* qos_manager */,
+ACE_RAPI_Session::qos (ACE_SOCK *socket,
+ ACE_QoS_Manager *qos_manager,
const ACE_QoS &ace_qos)
{
+ ACE_UNUSED_ARG (socket);
+ ACE_UNUSED_ARG (qos_manager);
// If sender : call sending_qos ()
// If receiver : call receiving_qos ()
@@ -627,12 +631,8 @@ ACE_RAPI_Session::init_flowspec_simplified(const ACE_Flow_Spec &flow_spec)
return flowsp;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_RAPI */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// This is a GQoS session ID generator.
int ACE_GQoS_Session::GQoS_session_id = 0;
@@ -720,5 +720,3 @@ ACE_GQoS_Session::rsvp_event_type (ACE_QoS_Session::RSVP_Event_Type event_type)
{
this->rsvp_event_type_ = event_type;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QoS/QoS_Session_Impl.h b/ace/QoS/QoS_Session_Impl.h
index 193c537a74c..5b2ac9e829d 100644
--- a/ace/QoS/QoS_Session_Impl.h
+++ b/ace/QoS/QoS_Session_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,8 +27,6 @@
#define DEFAULT_SOURCE_SENDER_PORT 10001
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_RAPI_Session
*
@@ -148,12 +146,8 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_RAPI */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_GQoS_Session
*
@@ -255,8 +249,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "QoS_Session_Impl.i"
#endif /* __ACE_INLINE__ */
diff --git a/ace/QoS/QoS_Session_Impl.i b/ace/QoS/QoS_Session_Impl.i
index b3971b46d52..fe701b32aa2 100644
--- a/ace/QoS/QoS_Session_Impl.i
+++ b/ace/QoS/QoS_Session_Impl.i
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// QoS_Session_Impl.i
#if defined (ACE_HAS_RAPI)
@@ -225,5 +224,3 @@ ACE_GQoS_Session::version (void)
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QoS/SOCK_Dgram_Mcast_QoS.cpp b/ace/QoS/SOCK_Dgram_Mcast_QoS.cpp
index 548c56bef12..1b6ef84a413 100644
--- a/ace/QoS/SOCK_Dgram_Mcast_QoS.cpp
+++ b/ace/QoS/SOCK_Dgram_Mcast_QoS.cpp
@@ -23,7 +23,6 @@ ACE_RCSID (QoS,
SOCK_Dgram_Mcast_QoS,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Dgram_Mcast_QoS)
@@ -134,8 +133,7 @@ ACE_SOCK_Dgram_Mcast_QoS::subscribe_ifs (const ACE_INET_Addr &mcast_addr,
if (this->subscribe (mcast_addr,
qos_params,
reuse_addr,
- ACE_TEXT_CHAR_TO_TCHAR
- (if_addrs[if_cnt].get_host_addr()),
+ ACE_TEXT_TO_TCHAR_IN (if_addrs[if_cnt].get_host_addr()),
protocol_family,
protocol,
protocolinfo) == 0)
@@ -254,5 +252,3 @@ ACE_SOCK_Dgram_Mcast_QoS::subscribe (const ACE_INET_Addr &mcast_addr,
return 0;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QoS/SOCK_Dgram_Mcast_QoS.h b/ace/QoS/SOCK_Dgram_Mcast_QoS.h
index 032bbe22f11..5da29c71d4b 100644
--- a/ace/QoS/SOCK_Dgram_Mcast_QoS.h
+++ b/ace/QoS/SOCK_Dgram_Mcast_QoS.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SOCK_Dgram_Mcast_QoS
*
@@ -132,8 +130,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "SOCK_Dgram_Mcast_QoS.i"
#endif /* __ACE_INLINE__ */
diff --git a/ace/QoS/SOCK_Dgram_Mcast_QoS.i b/ace/QoS/SOCK_Dgram_Mcast_QoS.i
index 9e2347669c5..5bf7c57a5ac 100644
--- a/ace/QoS/SOCK_Dgram_Mcast_QoS.i
+++ b/ace/QoS/SOCK_Dgram_Mcast_QoS.i
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_SOCK_Dgram_Mcast_QoS::~ACE_SOCK_Dgram_Mcast_QoS (void)
{
@@ -53,5 +50,3 @@ ACE_SOCK_Dgram_Mcast_QoS::qos_manager (void)
{
return this->qos_manager_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QtReactor.cpp b/ace/QtReactor.cpp
index d859d843188..10f66e42021 100644
--- a/ace/QtReactor.cpp
+++ b/ace/QtReactor.cpp
@@ -1,9 +1,5 @@
//$Id$
-
#include "ace/QtReactor.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_QtReactor)
// Must be called with lock held
@@ -153,7 +149,7 @@ ACE_QtReactor::read_event (int p_handle)
ACE_Reactor_Mask mask = 0;
mask = mask_ops( handle, mask, ACE_Reactor::GET_MASK );
if ( -1 != mask )
- set_enable_flag_by_mask ( 1, handle, mask);
+ set_enable_flag_by_mask ( 1, handle, mask);
#endif /* ACE_QTREACTOR_CLEAR_PENDING_EVENTS */
}
@@ -182,7 +178,7 @@ ACE_QtReactor::write_event (int p_handle)
ACE_Reactor_Mask mask = 0;
mask = mask_ops( handle, mask, ACE_Reactor::GET_MASK );
if ( -1 != mask )
- set_enable_flag_by_mask ( 1, handle, mask);
+ set_enable_flag_by_mask ( 1, handle, mask);
#endif /* ACE_QTREACTOR_CLEAR_PENDING_EVENTS */
}
@@ -212,7 +208,7 @@ ACE_QtReactor::exception_event (int p_handle)
ACE_Reactor_Mask mask = 0;
mask = mask_ops( handle, mask, ACE_Reactor::GET_MASK );
if ( -1 != mask )
- set_enable_flag_by_mask ( 1, handle, mask);
+ set_enable_flag_by_mask ( 1, handle, mask);
#endif /* ACE_QTREACTOR_CLEAR_PENDING_EVENTS */
}
@@ -592,9 +588,8 @@ ACE_QtReactor::QtWaitForMultipleEvents (int width,
// mbrudka: who needs wait_for_multiple_events? It seems it's cargo load now!
int
-ACE_QtReactor::wait_for_multiple_events (
- ACE_Select_Reactor_Handle_Set &handle_set,
- ACE_Time_Value *max_wait_time)
+ACE_QtReactor::wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &handle_set,
+ ACE_Time_Value *max_wait_time)
{
ACE_TRACE ("ACE_QtReactor::wait_for_multiple_events");
@@ -639,5 +634,3 @@ template class ACE_Map_Reverse_Iterator<ACE_HANDLE, QSocketNotifier *, ACE_Null_
#pragma instantiate ACE_Map_Iterator<ACE_HANDLE, QSocketNotifier *, ACE_Null_Mutex>
#pragma instantiate ACE_Map_Reverse_Iterator<ACE_HANDLE, QSocketNotifier *, ACE_Null_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/QtReactor.h b/ace/QtReactor.h
index c3ccb82f7f3..f15e45bcbf6 100644
--- a/ace/QtReactor.h
+++ b/ace/QtReactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -13,26 +13,24 @@
#ifndef ACE_QTREACTOR_H
#define ACE_QTREACTOR_H
-
#include /**/ "ace/pre.h"
+
+#include "ace/Select_Reactor.h"
#include "ace/ACE_QtReactor_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/Select_Reactor.h"
#include "ace/Map_Manager.h"
-// QT toolkit specific includes.
+// Qttoolkit specific includes.
#include /**/ <qapplication.h>
#include /**/ <qobject.h>
#include /**/ <qsocketnotifier.h>
#include /**/ <qtimer.h>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_QtReactor
*
@@ -81,9 +79,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* it is not clear if the leak is introduced by QtReactor, or rather incorrect
* memory management in QtReactor_Test.
*/
-class ACE_QtReactor_Export ACE_QtReactor
- : public QObject,
- public ACE_Select_Reactor
+class ACE_QtReactor_Export ACE_QtReactor : public QObject, public ACE_Select_Reactor
{
Q_OBJECT
@@ -216,7 +212,5 @@ private slots:
void timeout_event (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_QTREACTOR_H */
diff --git a/ace/RB_Tree.cpp b/ace/RB_Tree.cpp
index a93b6967145..909d8f386e5 100644
--- a/ace/RB_Tree.cpp
+++ b/ace/RB_Tree.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_RB_TREE_CPP
-#define ACE_RB_TREE_CPP
+#ifndef ACE_RB_TREE_C
+#define ACE_RB_TREE_C
#include "ace/Global_Macros.h"
#include "ace/RB_Tree.h"
@@ -17,7 +17,9 @@
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ RB_Tree,
+ "$Id$")
// Constructor.
@@ -542,12 +544,12 @@ void ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::delete_children_i
{
this->delete_children_i (parent->left ());
this->delete_children_i (parent->right ());
- ACE_DES_FREE_TEMPLATE2
+ ACE_DES_FREE_TEMPLATE2
(parent->left (),
this->allocator_->free,
ACE_RB_Tree_Node,
EXT_ID, INT_ID);
- ACE_DES_FREE_TEMPLATE2
+ ACE_DES_FREE_TEMPLATE2
(parent->right (),
this->allocator_->free,
ACE_RB_Tree_Node,
@@ -643,7 +645,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
// The right subtree is empty: insert new node there.
ACE_RB_Tree_Node<EXT_ID, INT_ID> *tmp = 0;
- ACE_NEW_MALLOC_RETURN
+ ACE_NEW_MALLOC_RETURN
(tmp,
(reinterpret_cast<ACE_RB_Tree_Node<EXT_ID, INT_ID>*>
(this->allocator_->malloc (sizeof (*tmp)))),
@@ -677,7 +679,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
{
// The left subtree is empty: insert new node there.
ACE_RB_Tree_Node<EXT_ID, INT_ID> *tmp = 0;
- ACE_NEW_MALLOC_RETURN
+ ACE_NEW_MALLOC_RETURN
(tmp,
(reinterpret_cast<ACE_RB_Tree_Node<EXT_ID, INT_ID>*>
(this->allocator_->malloc (sizeof (*tmp)))),
@@ -701,7 +703,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
{
// The tree is empty: insert at the root and color the root
// black.
- ACE_NEW_MALLOC_RETURN
+ ACE_NEW_MALLOC_RETURN
(this->root_,
(reinterpret_cast<ACE_RB_Tree_Node<EXT_ID, INT_ID>*>
(this->allocator_->malloc (sizeof (ACE_RB_Tree_Node<EXT_ID, INT_ID>)))),
@@ -710,7 +712,8 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
this->root_->color (ACE_RB_Tree_Node_Base::BLACK);
++current_size_;
return &this->root_->item ();
- }
+ }
+ return 0;
}
// Inserts a *copy* of the key and the item into the tree: both the
@@ -759,7 +762,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
{
// The right subtree is empty: insert new node there.
ACE_RB_Tree_Node<EXT_ID, INT_ID> *tmp = 0;
- ACE_NEW_MALLOC_RETURN
+ ACE_NEW_MALLOC_RETURN
(tmp,
(reinterpret_cast<ACE_RB_Tree_Node<EXT_ID, INT_ID>*>
(this->allocator_->malloc (sizeof (*tmp)))),
@@ -793,7 +796,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
{
// The left subtree is empty: insert new node there.
ACE_RB_Tree_Node<EXT_ID, INT_ID> *tmp = 0;
- ACE_NEW_MALLOC_RETURN
+ ACE_NEW_MALLOC_RETURN
(tmp,
(reinterpret_cast<ACE_RB_Tree_Node<EXT_ID, INT_ID>*>
(this->allocator_->malloc (sizeof (*tmp)))),
@@ -815,7 +818,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::insert_i (const EXT_ID &k,
else
{
// The tree is empty: insert at the root and color the root black.
- ACE_NEW_MALLOC_RETURN
+ ACE_NEW_MALLOC_RETURN
(this->root_,
(reinterpret_cast<ACE_RB_Tree_Node<EXT_ID, INT_ID>*>
(this->allocator_->malloc (sizeof (ACE_RB_Tree_Node<EXT_ID, INT_ID>)))),
@@ -1196,6 +1199,5 @@ ACE_RB_Tree_Reverse_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::~ACE_RB_Tr
ACE_TRACE ("ACE_RB_Tree_Reverse_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::~ACE_RB_Tree_Reverse_Iterator");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* !ACE_RB_TREE_CPP */
+#endif /* !defined (ACE_RB_TREE_C) */
diff --git a/ace/RB_Tree.h b/ace/RB_Tree.h
index 5c63d0b51ee..fa6b88726cb 100644
--- a/ace/RB_Tree.h
+++ b/ace/RB_Tree.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
template <class EXT_ID, class INT_ID, class COMPARE_KEYS, class ACE_LOCK>
class ACE_RB_Tree_Iterator_Base;
@@ -153,9 +151,9 @@ protected:
* a future version of ACE. Please migrate your code
* to the appropriate public methods indicated in the
* method deprecation comments.
- * This class uses an ACE_Allocator to allocate memory. The
+ * This class uses an <ACE_Allocator> to allocate memory. The
* user can make this a persistent class by providing an
- * ACE_Allocator with a persistable memory pool.
+ * <ACE_Allocator> with a persistable memory pool.
*
* <b> Requirements and Performance Characteristics</b>
* - Internal Structure:
@@ -225,7 +223,7 @@ public:
// = insertion, removal, and search methods.
/**
- * Associate @a ext_id with @a int_id. If @a ext_id is already in the
+ * Associate <ext_id> with <int_id>. If <ext_id> is already in the
* tree then the <ACE_RB_Tree_Node> is not changed. Returns 0 if a
* new entry is bound successfully, returns 1 if an attempt is made
* to bind an existing entry, and returns -1 if failures occur.
@@ -244,8 +242,8 @@ public:
/**
- * Associate @a ext_id with @a int_id if and only if @a ext_id is not
- * in the tree. If @a ext_id is already in the tree then the @a int_id
+ * Associate <ext_id> with <int_id> if and only if <ext_id> is not
+ * in the tree. If <ext_id> is already in the tree then the <int_id>
* parameter is assigned the existing value in the tree. Returns 0
* if a new entry is bound successfully, returns 1 if an attempt is
* made to bind an existing entry, and returns -1 if failures occur.
@@ -263,7 +261,7 @@ public:
ACE_RB_Tree_Node<EXT_ID, INT_ID> *&entry);
/**
- * Reassociate @a ext_id with @a int_id. If @a ext_id is not in the
+ * Reassociate <ext_id> with <int_id>. If <ext_id> is not in the
* tree then behaves just like <bind>. Returns 0 if a new entry is
* bound successfully, returns 1 if an existing entry was rebound,
* and returns -1 if failures occur.
@@ -281,9 +279,9 @@ public:
ACE_RB_Tree_Node<EXT_ID, INT_ID> *&entry);
/**
- * Associate @a ext_id with @a int_id. If @a ext_id is not in the tree
+ * Associate <ext_id> with <int_id>. If <ext_id> is not in the tree
* then behaves just like <bind>. Otherwise, store the old value of
- * @a int_id into the "out" parameter and rebind the new parameters.
+ * <int_id> into the "out" parameter and rebind the new parameters.
* Returns 0 if a new entry is bound successfully, returns 1 if an
* existing entry was rebound, and returns -1 if failures occur.
*/
@@ -302,9 +300,9 @@ public:
ACE_RB_Tree_Node<EXT_ID, INT_ID> *&entry);
/**
- * Associate @a ext_id with @a int_id. If @a ext_id is not in the tree
+ * Associate <ext_id> with <int_id>. If <ext_id> is not in the tree
* then behaves just like <bind>. Otherwise, store the old values
- * of @a ext_id and @a int_id into the "out" parameters and rebind the
+ * of <ext_id> and <int_id> into the "out" parameters and rebind the
* new parameters. This is very useful if you need to have an
* atomic way of updating <ACE_RB_Tree_Nodes> and you also need
* full control over memory allocation. Returns 0 if a new entry is
@@ -327,24 +325,24 @@ public:
INT_ID &old_int_id,
ACE_RB_Tree_Node<EXT_ID, INT_ID> *&entry);
- /// Locate @a ext_id and pass out parameter via @a int_id. If found,
+ /// Locate <ext_id> and pass out parameter via <int_id>. If found,
/// return 0, returns -1 if not found.
int find (const EXT_ID &ext_id,
INT_ID &int_id);
- /// Locate @a ext_id and pass out parameter via <entry>. If found,
+ /// Locate <ext_id> and pass out parameter via <entry>. If found,
/// return 0, returns -1 if not found.
int find (const EXT_ID &ext_id,
ACE_RB_Tree_Node<EXT_ID, INT_ID> *&entry);
/**
- * Unbind (remove) the @a ext_id from the tree. Don't return the
- * @a int_id to the caller (this is useful for collections where the
- * @c int_ids are *not* dynamically allocated...)
+ * Unbind (remove) the <ext_id> from the tree. Don't return the
+ * <int_id> to the caller (this is useful for collections where the
+ * <int_id>s are *not* dynamically allocated...)
*/
int unbind (const EXT_ID &ext_id);
- /// Break any association of @a ext_id. Returns the value of @a int_id
+ /// Break any association of <ext_id>. Returns the value of <int_id>
/// in case the caller needs to deallocate memory.
int unbind (const EXT_ID &ext_id,
INT_ID &int_id);
@@ -372,8 +370,8 @@ public:
* possible to acquire the lock explicitly, which can be useful in
* some cases if you instantiate the <ACE_Atomic_Op> with an
* <ACE_Recursive_Mutex> or <ACE_Process_Mutex>, or if you need to
- * guard the state of an iterator.
- * @note The right name would be <lock>, but HP/C++ will choke on that!
+ * guard the state of an iterator. NOTE: the right name would be
+ * <lock>, but HP/C++ will choke on that!
*/
ACE_LOCK &mutex (void);
@@ -410,7 +408,7 @@ public:
*
* @deprecated signature will change to become
* int find (const EXT_ID &ext_id); which will return
- * 0 if the @a ext_id is in the tree, otherwise -1.
+ * 0 if the <ext_id> is in the tree, otherwise -1.
*/
INT_ID* find (const EXT_ID &k);
@@ -420,7 +418,7 @@ public:
* for copy construction. The default implementation also requires that
* the key type support well defined < semantics. This method returns a
* pointer to the inserted item copy, or 0 if an error occurred.
- * @note If an identical key already exists in the tree, no new item
+ * NOTE: if an identical key already exists in the tree, no new item
* is created, and the returned pointer addresses the existing item
* associated with the existing key.
* @deprecated
@@ -524,7 +522,7 @@ protected:
* for copy construction. The default implementation also requires that
* the key type support well defined < semantics. This method returns a
* pointer to the inserted item copy, or 0 if an error occurred.
- * @note If an identical key already exists in the tree, no new item
+ * NOTE: if an identical key already exists in the tree, no new item
* is created, and the returned pointer addresses the existing item
* associated with the existing key.
*/
@@ -882,8 +880,6 @@ public:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/RB_Tree.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/RB_Tree.inl b/ace/RB_Tree.inl
index ba41725319c..cad46c4cbc3 100644
--- a/ace/RB_Tree.inl
+++ b/ace/RB_Tree.inl
@@ -6,8 +6,6 @@
#include "ace/Malloc_Base.h"
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/////////////////////////////////////////////////////
// template class ACE_RB_Tree_Node<EXT_ID, INT_ID> //
/////////////////////////////////////////////////////
@@ -655,7 +653,7 @@ ACE_RB_Tree<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::find (const EXT_ID &k)
this->lock_,
reinterpret_cast<INT_ID*> (0L));
- ACE_RB_Tree_Node<EXT_ID, INT_ID> *entry = 0;
+ ACE_RB_Tree_Node<EXT_ID, INT_ID> *entry;
int result = this->find_i (k, entry);
return (result == 0) ? &(entry->item ()) : 0;
}
@@ -1153,5 +1151,3 @@ ACE_RB_Tree_Reverse_Iterator<EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK>::next (ACE_
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/README b/ace/README
index b3ee57dd2b7..64a40549f41 100644
--- a/ace/README
+++ b/ace/README
@@ -153,7 +153,6 @@ ACE_THREAD_MANAGER_USES_SAFE_SPAWN Disable the "check before lock" feature
macro avoids a potential race condition
on platforms with aggressive read/write
reordering.
-ACE_HAS_CPU_SET_T Platform delivers cpu_set_t.
ACE_HAS_PRIOCNTL OS has priocntl (2).
ACE_HAS_RECURSIVE_MUTEXES Mutexes are inherently recursive
(e.g., Win32)
@@ -261,6 +260,12 @@ ACE_HAS_BROKEN_T_ERROR Compiler/platform has the wrong
prototype for t_error(), i.e.,
t_error(char *) rather than
t_error(const char *).
+ACE_HAS_BROKEN_TIMESPEC_MEMBERS platform define struct
+ timespec members as ts_sec and
+ ts_nsec instead of tv_sec and
+ tv_nsec. This is highly
+ non-portable. Currently only
+ FreeBSD 2.1.x uses it.
ACE_HAS_BSTRING Platform has <bstring.h>
(which contains bzero()
prototype)
@@ -278,9 +283,7 @@ ACE_HAS_CHARPTR_SPRINTF sprintf() returns char *
rather than int (e.g., SunOS
4.x)
ACE_HAS_CLOCK_GETTIME Platform supports POSIX.1b
- clock_gettime () at least for clock-id CLOCK_REALTIME
-ACE_HAS_CLOCK_GETTIME_MONOTONIC Platform supports POSIX.1b
- clock_gettime () with the clock-id CLOCK_MONOTONIC
+ clock_gettime ()
ACE_HAS_CLOCK_SETTIME Platform supports POSIX.1b
clock_settime ()
ACE_HAS_CONFLICTING_XTI_MACROS OS's XTI header file defines some
@@ -481,6 +484,11 @@ ACE_HAS_POSIX_SEM_TIMEOUT Platform supports timed wait operation
on POSIX realtime semaphores.
ACE_HAS_POSIX_TIME Platform supports the POSIX
struct timespec type
+ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO
+ LynxOS defines THREAD_CANCELLED macro
+ in system headers. This macro must be
+ undefined to avoid compilation errors
+ in TAO code.
ACE_HAS_PROC_FS Platform supports the /proc
file system and defines tid_t
in <sys/procfs.h>
@@ -505,8 +513,6 @@ ACE_HAS_PTHREADS_STD Platform supports POSIX.1c-1995 threads
Pthreads).
ACE_HAS_PTHREADS_UNIX98_EXT Platform has the UNIX98 extensions to
Pthreads (rwlocks)
-ACE_HAS_PTHREAD_ATTR_SETCREATESUSPEND_NP Platform has
- pthread_attr_setcreatesuspend_np().
ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP Platform has pthread_condattr_setkind_np().
ACE_HAS_PTHREAD_MUTEXATTR_SETKIND_NP Platform has
pthread_mutexattr_setkind_np().
@@ -569,13 +575,11 @@ ACE_HAS_SIG_ATOMIC_T Compiler/platform defines the
sig_atomic_t typedef
ACE_HAS_SIG_C_FUNC Compiler requires extern "C"
functions for signals.
+ACE_HAS_SIN_LEN Platform supports new BSD
+ inet_addr len field.
ACE_HAS_SIZET_SOCKET_LEN OS/compiler uses size_t *
rather than int * for socket
lengths
-ACE_HAS_SOCKADDR_IN_SIN_LEN Platform has sin_len member in struct
- sockaddr_in.
-ACE_HAS_SOCKADDR_IN6_SIN_LEN Platform has sin6_len member in struct
- sockaddr_in6.
ACE_HAS_SOCKADDR_MSG_NAME Platform requires (struct
sockaddr *) for msg_name field
of struct msghdr.
@@ -596,14 +600,9 @@ ACE_HAS_STANDARD_CPP_LIBRARY Platform/compiler supports
Standard C++ Library
ACE_HAS_STRBUF_T Compiler/platform supports
struct strbuf
-ACE_HAS_STRDUP_EMULATION Use ACE's strdup() emulation (even
- if platform has a native strdup()).
- This is useful if you need control
- over what memory allocator is used.
-ACE_HAS_WCSDUP_EMULATION Use ACE's wcsdup() emulation (even
- if platform has a native wcsdup()).
- This is useful if you need control
- over what memory allocator is used.
+ACE_HAS_STRDUP_EMULATION Platform/compiler lacks
+ strdup() (e.g., VxWorks,
+ Chorus, WinCE)
ACE_HAS_STRNLEN Platform supports strnlen(3).
ACE_HAS_STREAMS Platform supports STREAMS
ACE_HAS_STREAM_PIPES Platform supports STREAM pipes
@@ -717,21 +716,15 @@ ACE_HAS_UNION_WAIT The wait() system call takes a
ACE_HAS_UNIXWARE_SVR4_SIGNAL_T Has inconsistent SVR4 signal
stuff, but not the same as the
other platforms
+ACE_HAS_USING_KEYWORD Compiler supports the new
+ using keyword for C++
+ namespaces.
ACE_HAS_VALGRIND Running with valgrind
ACE_HAS_VERBOSE_NOTSUP Prints out console message in
ACE_NOTSUP. Useful for
tracking down origin of
ACE_NOTSUP.
-ACE_HAS_VERSIONED_NAMESPACE Wrap all library code within a
- "versioned namespace" to
- prevent symbol conflicts with
- other versions of ACE shared
- libraries in third party
- libraries. Default namespace
- name may be overridden by
- defining preprocessor symbol
- ACE_VERSIONED_NAMESPACE_NAME
- to desired name.
+
ACE_LACKS_INTMAX_T Platform lacks the intmax_t type
ACE_LACKS_UINTMAX_T Platform lacks the uintmax_t type.
ACE_LACKS_INTPTR_T Platform lacks the intptr_t type
@@ -977,7 +970,6 @@ ACE_LACKS_NEW_H OS doesn't have, or we don't want to
use, new.h.
ACE_LACKS_NULL_PTHREAD_STATUS OS requires non-null status pointer
for ::pthread_join ().
-ACE_LACKS_NUMERIC_LIMITS Platform lacks std::numeric_limits<>.
ACE_LACKS_PERFECT_MULTICAST_FILTERING Platform lacks IGMPv3 "perfect" filtering
of multicast dgrams at the socket level.
If == 1, ACE_SOCK_Dgram_Mcast will bind
@@ -998,7 +990,7 @@ ACE_LACKS_PUTENV_PROTOTYPE Platform/compiler lacks the
LynxOS)
ACE_LACKS_PWD_REENTRANT_FUNCTIONS Platform lacks getpwnam_r()
methods (e.g., SGI 6.2).
-ACE_LACKS_SID Platform lacks setsid()
+ACE_LACKS_SID Platform lacks setsid
ACE_LACKS_QSORT Compiler/platform lacks the
standard C library qsort()
function
@@ -1051,14 +1043,14 @@ ACE_LACKS_SIGSET Platform lacks signal sets
(e.g., Chorus and Win32)
ACE_LACKS_NATIVE_STRPTIME Platform/compiler lacks the strptime()
function.
-ACE_LACKS_STRCHR Platform/compiler lacks strchr()
-ACE_LACKS_WCSCHR Platform/compiler lacks wcschr()
-ACE_LACKS_STRDUP Platform/compiler lacks strdup()
-ACE_LACKS_WCSDUP Platform/compiler lacks wcsdup()
-ACE_LACKS_STRRCHR Platform/compiler lacks strrchr()
-ACE_LACKS_WCSRCHR Platform/compiler lacks wcsrchr()
+ACE_LACKS_STRRCHR Platform/compiler lacks
+ strrchr () function.
+ACE_LACKS_WCSRCHR Platform/compiler lacks wcsrchr ()
+ function
ACE_LACKS_SWAB Platform/compiler lacks
swab () function.
+ACE_LACKS_SYSTIME_H <time.h> doesn't automatically
+ #include /**/ <sys/time.h>
ACE_LACKS_SYS_MSG_H Platform lacks sys/msg.h
(e.g., Chorus and VxWorks)
ACE_LACKS_SYS_PARAM_H Platform lacks <sys/param.h>
@@ -1138,7 +1130,6 @@ ACE_LACKS_UNSIGNEDLONGLONG_T Compiler/platform does not
long datatype.
ACE_LACKS_UTSNAME_T Platform lacks struct utsname
(e.g., Win32 and VxWorks)
-ACE_LACKS_UNAME Platform lacks uname calls
ACE_LACKS_WAIT The platform lacks wait
ACE_LACKS_WILDCARD_BIND The bind() call will not
select the port if it's 0.
diff --git a/ace/RW_Mutex.cpp b/ace/RW_Mutex.cpp
index 54a9b17047d..cde11394329 100644
--- a/ace/RW_Mutex.cpp
+++ b/ace/RW_Mutex.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file RW_Mutex.cpp
*
@@ -20,8 +21,6 @@
ACE_RCSID(ace, RW_Mutex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_RW_Mutex::dump (void) const
{
@@ -50,6 +49,4 @@ ACE_RW_Mutex::~ACE_RW_Mutex (void)
this->remove ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/RW_Mutex.h b/ace/RW_Mutex.h
index 1e920cf3a65..fe20c589b25 100644
--- a/ace/RW_Mutex.h
+++ b/ace/RW_Mutex.h
@@ -28,8 +28,6 @@
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_RW_Mutex
*
@@ -128,8 +126,6 @@ private:
ACE_RW_Mutex (const ACE_RW_Mutex &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/RW_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/RW_Mutex.inl b/ace/RW_Mutex.inl
index 47b95a3bb94..4d5fb16be2c 100644
--- a/ace/RW_Mutex.inl
+++ b/ace/RW_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_rwlock_t &
ACE_RW_Mutex::lock (void) const
{
@@ -79,5 +76,3 @@ ACE_RW_Mutex::release (void)
// ACE_TRACE ("ACE_RW_Mutex::release");
return ACE_OS::rw_unlock (&this->lock_);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/RW_Process_Mutex.cpp b/ace/RW_Process_Mutex.cpp
index 858c5f24bfa..a0d0b15a2af 100644
--- a/ace/RW_Process_Mutex.cpp
+++ b/ace/RW_Process_Mutex.cpp
@@ -16,8 +16,6 @@ ACE_RCSID(ace, RW_Process_Mutex, "$Id$")
#include "ace/OS_NS_fcntl.h"
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_RW_Process_Mutex)
const ACE_TCHAR *
@@ -29,7 +27,7 @@ ACE_RW_Process_Mutex::unique_name (void)
ACE_RW_Process_Mutex::ACE_RW_Process_Mutex (const ACE_TCHAR *name,
int flags,
- mode_t mode )
+ mode_t mode )
: lock_ (name ? name : this->unique_name (), flags, mode)
{
// ACE_TRACE ("ACE_RW_Process_Mutex::ACE_RW_Process_Mutex");
@@ -65,5 +63,3 @@ template class ACE_Malloc_Lock_Adapter_T<ACE_RW_Process_Mutex>;
#pragma instantiate ACE_Malloc_Lock_Adapter_T<ACE_RW_Process_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/RW_Process_Mutex.h b/ace/RW_Process_Mutex.h
index a34b6f9f404..cee7a1a6cb5 100644
--- a/ace/RW_Process_Mutex.h
+++ b/ace/RW_Process_Mutex.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
//=============================================================================
/**
* @file RW_Process_Mutex.h
@@ -24,8 +23,6 @@
#include "ace/Default_Constants.h"
#include "ace/OS_NS_fcntl.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_RW_Process_Mutex
*
@@ -36,16 +33,16 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* used between separate processes, rather than threads in the
* same process. This isn't a limitation of ACE, it's simply
* the file lock semantics on UNIX and Win32.
- * \todo For systems with pthread_rwlockattr_setpshared one
+ * \todo For systems with pthread_rwlockattr_setpshared one
* may consider using them to make the mutex faster.
*/
-class ACE_Export ACE_RW_Process_Mutex
+class ACE_Threads_Export ACE_RW_Process_Mutex
{
public:
/// Create a readers/writer <Process_Mutex>, passing in the optional
- /// <name>, <flags> and <mode> \sa ACE_File_Lock.
- /// If not specified, a name is generated and flags and mode are set
- /// to default platform values.
+ /// <name>, <flags> and <mode> \sa ACE_File_Lock.
+ /// If not specified, a name is generated and flags and mode are set
+ /// to default platform values.
#if defined (ACE_WIN32)
ACE_RW_Process_Mutex (const ACE_TCHAR *name = 0,
int flags = O_CREAT|O_RDWR,
@@ -53,7 +50,7 @@ public:
#else
ACE_RW_Process_Mutex (const ACE_TCHAR *name = 0,
int flags = O_CREAT|O_RDWR,
- mode_t mode = S_IRUSR | S_IWUSR );
+ mode_t mode = S_IRUSR | S_IWUSR );
#endif /* ACE_WIN32 */
~ACE_RW_Process_Mutex (void);
@@ -123,8 +120,6 @@ private:
ACE_File_Lock lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/RW_Process_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/RW_Process_Mutex.inl b/ace/RW_Process_Mutex.inl
index e3bced0449c..cc59bb9fc17 100644
--- a/ace/RW_Process_Mutex.inl
+++ b/ace/RW_Process_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Explicitly destroy the mutex.
ACE_INLINE int
ACE_RW_Process_Mutex::remove (void)
@@ -73,5 +70,3 @@ ACE_RW_Process_Mutex::lock (void) const
// ACE_TRACE ("ACE_RW_Process_Mutex::lock");
return this->lock_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/RW_Thread_Mutex.cpp b/ace/RW_Thread_Mutex.cpp
index af60621e8df..1f6ae3153eb 100644
--- a/ace/RW_Thread_Mutex.cpp
+++ b/ace/RW_Thread_Mutex.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file RW_Thread_Mutex.cpp
*
@@ -20,8 +21,6 @@
ACE_RCSID(ace, RW_Thread_Mutex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_RW_Thread_Mutex)
ACE_RW_Thread_Mutex::ACE_RW_Thread_Mutex (const ACE_TCHAR *name,
@@ -52,6 +51,4 @@ template class ACE_Write_Guard<ACE_RW_Thread_Mutex>;
#pragma instantiate ACE_Write_Guard<ACE_RW_Thread_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/RW_Thread_Mutex.h b/ace/RW_Thread_Mutex.h
index 9f5f43f93c4..171006ad11a 100644
--- a/ace/RW_Thread_Mutex.h
+++ b/ace/RW_Thread_Mutex.h
@@ -29,8 +29,6 @@
#include "ace/RW_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_RW_Thread_Mutex
*
@@ -62,8 +60,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/RW_Thread_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/RW_Thread_Mutex.inl b/ace/RW_Thread_Mutex.inl
index 9f4d315df4a..82b4beb7f15 100644
--- a/ace/RW_Thread_Mutex.inl
+++ b/ace/RW_Thread_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_RW_Thread_Mutex::tryacquire_write_upgrade (void)
{
@@ -15,5 +12,3 @@ ACE_INLINE
ACE_RW_Thread_Mutex::~ACE_RW_Thread_Mutex (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor.cpp b/ace/Reactor.cpp
index 6a667f679c0..d7fd9abd919 100644
--- a/ace/Reactor.cpp
+++ b/ace/Reactor.cpp
@@ -2,6 +2,7 @@
#include "ace/Reactor.h"
+
//#if !defined (ACE_HAS_WINCE)
# if !defined (ACE_LACKS_ACE_SVCCONF)
# include "ace/Service_Config.h"
@@ -59,8 +60,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Reactor)
ACE_Reactor::ACE_Reactor (ACE_Reactor_Impl *impl,
@@ -328,6 +327,8 @@ ACE_Reactor::run_alertable_reactor_event_loop (ACE_Time_Value &tv,
else if (result <= 0)
return result;
}
+
+ ACE_NOTREACHED (return 0;)
}
int
@@ -948,5 +949,3 @@ template class ACE_Framework_Component_T<ACE_Reactor>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Framework_Component_T<ACE_Reactor>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor.h b/ace/Reactor.h
index 1875482644e..a4055932def 100644
--- a/ace/Reactor.h
+++ b/ace/Reactor.h
@@ -30,8 +30,6 @@
// Event_Handler.h contains the definition of ACE_Reactor_Mask
#include "ace/Event_Handler.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Reactor_Impl;
class ACE_Handle_Set;
class ACE_Sig_Action;
@@ -40,7 +38,7 @@ class ACE_Sig_Set;
/*
* Hook to specialize the Reactor implementation with the concrete
- * Reactor type, for exmaple, select, thread pool reactor known
+ * Reactor type, for exmaple, select, thread pool reactor known
* at compile time.
*/
//@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
@@ -50,7 +48,7 @@ class ACE_Sig_Set;
*
* @brief The responsibility of this class is to forward all methods to
* its delegation/implementation class, e.g.,
- * ACE_Select_Reactor or ACE_WFMO_Reactor.
+ * <ACE_Select_Reactor> or <ACE_WFMO_Reactor>.
*/
class ACE_Export ACE_Reactor : public ACE_Reactor_Timer_Interface
{
@@ -80,11 +78,11 @@ public:
*/
typedef int (*REACTOR_EVENT_HOOK)(ACE_Reactor *);
- /// Get pointer to a process-wide ACE_Reactor.
+ /// Get pointer to a process-wide <ACE_Reactor>.
static ACE_Reactor *instance (void);
/**
- * Set pointer to a process-wide ACE_Reactor and return existing
+ * Set pointer to a process-wide <ACE_Reactor> and return existing
* pointer. If <delete_reactor> != 0 then we'll delete the Reactor
* at destruction time.
*/
@@ -164,7 +162,7 @@ public:
static void reset_event_loop (void);
/**
- * The singleton reactor is used by the ACE_Service_Config.
+ * The singleton reactor is used by the <ACE_Service_Config>.
* Therefore, we must check for the reconfiguration request and
* handle it after handling an event.
*/
@@ -213,9 +211,9 @@ public:
virtual void reset_reactor_event_loop (void);
/**
- * Create the Reactor using @a implementation. The flag
- * @a delete_implementation tells the Reactor whether or not to
- * delete the @a implementation on destruction.
+ * Create the Reactor using <implementation>. The flag
+ * <delete_implementation> tells the Reactor whether or not to
+ * delete the <implementation> on destruction.
*/
ACE_Reactor (ACE_Reactor_Impl *implementation = 0,
int delete_implementation = 0);
@@ -228,8 +226,8 @@ public:
virtual ~ACE_Reactor (void);
/**
- * Initialize the ACE_Reactor to manage <max_number_of_handles>.
- * If <restart> is non-0 then the ACE_Reactor's <handle_events>
+ * Initialize the <ACE_Reactor> to manage <max_number_of_handles>.
+ * If <restart> is non-0 then the <ACE_Reactor>'s <handle_events>
* method will be restarted automatically when <EINTR> occurs. If
* <signal_handler> or <timer_queue> are non-0 they are used as the
* signal handler and timer queue, respectively.
@@ -273,7 +271,7 @@ public:
* application wishes to handle events for some fixed amount of
* time.
*
- * Returns the total number of timers and I/O ACE_Event_Handlers
+ * Returns the total number of timers and I/O <ACE_Event_Handler>s
* that were dispatched, 0 if the <max_wait_time> elapsed without
* dispatching any handlers, or -1 if an error occurs.
*
@@ -384,12 +382,12 @@ public:
/**
* Register handler for signals.
*
- * Register @a new_sh to handle the signal @a signum using the
- * @a new_disp. Returns the @a old_sh that was previously registered
- * (if any), along with the @a old_disp of the signal handler.
+ * Register <new_sh> to handle the signal <signum> using the
+ * <new_disp>. Returns the <old_sh> that was previously registered
+ * (if any), along with the <old_disp> of the signal handler.
*
- * Reactor will call ACE_Event_Handler::add_reference() on @a new_sh
- * and ACE_Event_Handler::remove_reference() on @a old_sh.
+ * Reactor will call ACE_Event_Handler::add_reference() on <new_sh>
+ * and ACE_Event_Handler::remove_reference() on <old_sh>.
*/
virtual int register_handler (int signum,
ACE_Event_Handler *new_sh,
@@ -548,19 +546,16 @@ public:
* @see cancel_timer()
* @see reset_timer_interval()
*
- * @param event_handler Event handler to schedule on reactor
- * @param arg Argument passed to the handle_timeout() method of
- * event_handler
- * @param delay Time interval after which the timer will expire
- * @param interval Time interval after which the timer will be automatically
- * rescheduled
+ * @param event_handler event handler to schedule on reactor
+ * @param arg argument passed to the handle_timeout() method of event_handler
+ * @param delay time interval after which the timer will expire
+ * @param interval time interval after which the timer will be automatically rescheduled
* @return -1 on failure, a timer_id value on success
*/
virtual long schedule_timer (ACE_Event_Handler *event_handler,
const void *arg,
const ACE_Time_Value &delay,
- const ACE_Time_Value &interval =
- ACE_Time_Value::zero);
+ const ACE_Time_Value &interval = ACE_Time_Value::zero);
/**
* Reset recurring timer interval.
@@ -579,12 +574,12 @@ public:
/**
* Cancel timer.
*
- * Cancel timer associated with @a timer_id that was returned from
+ * Cancel timer associated with <timer_id> that was returned from
* the schedule_timer() method. If arg is non-NULL then it will be
* set to point to the ``magic cookie'' argument passed in when the
* handler was registered. This makes it possible to free up the
* memory and avoid memory leaks. Returns 1 if cancellation
- * succeeded and 0 if the @a timer_id wasn't found.
+ * succeeded and 0 if the <timer_id> wasn't found.
*
* On successful cancellation, ACE_Event_Handler::handle_close()
* will be called with <ACE_Event_Handler::TIMER_MASK>.
@@ -624,8 +619,8 @@ public:
virtual int schedule_wakeup (ACE_Event_Handler *event_handler,
ACE_Reactor_Mask masks_to_be_added);
- /// Add @a masks_to_be_added to the @a handle's entry. <event_handler>
- /// associated with @a handle must already have been registered.
+ /// Add <masks_to_be_added> to the <handle>'s entry. <event_handler>
+ /// associated with <handle> must already have been registered.
/// Note that this call does not cause the Reactor to re-examine
/// its set of handlers - the new masks will be noticed the next
/// time the Reactor waits for activity. If there is no other
@@ -720,14 +715,13 @@ public:
* be called.
*/
virtual int purge_pending_notifications (ACE_Event_Handler *eh,
- ACE_Reactor_Mask =
- ACE_Event_Handler::ALL_EVENTS_MASK);
+ ACE_Reactor_Mask = ACE_Event_Handler::ALL_EVENTS_MASK);
// = Assorted helper methods.
/**
- * Return the Event_Handler associated with @a handle. Return 0 if
- * @a handle is not registered.
+ * Return the Event_Handler associated with <handle>. Return 0 if
+ * <handle> is not registered.
*
* Reactor will call ACE_Event_Handler::add_reference() on the
* handler before returning it.
@@ -735,12 +729,12 @@ public:
virtual ACE_Event_Handler *find_handler (ACE_HANDLE handle);
/**
- * Check to see if @a handle is associated with a valid Event_Handler
- * bound to @a mask. Return the @c event_handler associated with this
- * @a handler if @a event_handler != 0.
+ * Check to see if <handle> is associated with a valid Event_Handler
+ * bound to <mask>. Return the <event_handler> associated with this
+ * <handler> if <event_handler> != 0.
*
* Reactor will call ACE_Event_Handler::add_reference() on the
- * handler before returning it if @a event_handler != 0.
+ * handler before returning it if <event_handler> != 0.
*/
virtual int handler (ACE_HANDLE handle,
ACE_Reactor_Mask mask,
@@ -749,7 +743,7 @@ public:
/**
* Check to see if @a signum is associated with a valid Event_Handler
* bound to a signal. Return the <event_handler> associated with
- * this <handler> if @a event_handler != 0.
+ * this <handler> if <event_handler> != 0.
*/
virtual int handler (int signum,
ACE_Event_Handler **event_handler = 0);
@@ -790,13 +784,13 @@ public:
// = Low-level wait_set mask manipulation methods.
/// GET/SET/ADD/CLR the dispatch mask "bit" bound with the
- /// @a event_handler and @a mask.
+ /// <event_handler> and <mask>.
virtual int mask_ops (ACE_Event_Handler *event_handler,
ACE_Reactor_Mask mask,
int ops);
- /// GET/SET/ADD/CLR the dispatch MASK "bit" bound with the @a handle
- /// and @a mask.
+ /// GET/SET/ADD/CLR the dispatch MASK "bit" bound with the <handle>
+ /// and <mask>.
virtual int mask_ops (ACE_HANDLE handle,
ACE_Reactor_Mask mask,
int ops);
@@ -847,7 +841,7 @@ protected:
/// the implementation instance
int delete_implementation_;
- /// Pointer to a process-wide ACE_Reactor singleton.
+ /// Pointer to a process-wide <ACE_Reactor> singleton.
static ACE_Reactor *reactor_;
/// Must delete the <reactor_> singleton if non-0.
@@ -858,9 +852,6 @@ protected:
ACE_Reactor &operator = (const ACE_Reactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (__ACE_INLINE__)
#include "ace/Reactor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Reactor.inl b/ace/Reactor.inl
index 9b1344465ba..49132e29733 100644
--- a/ace/Reactor.inl
+++ b/ace/Reactor.inl
@@ -7,12 +7,10 @@
/*
* Hook to specialize the Reactor with the concrete implementation
- * known at compile time.
+ * known at compile time.
*/
//@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Reactor::run_event_loop (void)
{
@@ -97,5 +95,3 @@ ACE_Reactor::event_loop_done (void)
ACE_TRACE ("ACE_Reactor::event_loop_done");
return ACE_Reactor::instance ()->reactor_event_loop_done ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor_Impl.cpp b/ace/Reactor_Impl.cpp
index 96411b8b0c6..556d25c4ee5 100644
--- a/ace/Reactor_Impl.cpp
+++ b/ace/Reactor_Impl.cpp
@@ -3,13 +3,9 @@
#include "ace/Reactor_Impl.h"
ACE_RCSID (ace,
- Reactor_Impl,
- "$Id$")
+ Reactor_Impl,
+ "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Reactor_Impl::~ACE_Reactor_Impl (void)
+ACE_Reactor_Impl::~ACE_Reactor_Impl()
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor_Impl.h b/ace/Reactor_Impl.h
index 51cca18517e..cfe7e943828 100644
--- a/ace/Reactor_Impl.h
+++ b/ace/Reactor_Impl.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,8 +27,6 @@
#include "ace/Event_Handler.h"
#include "ace/Countdown_Time.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls
class ACE_Handle_Set;
class ACE_Reactor_Impl;
@@ -110,7 +108,7 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. Returns the number of notifications
+ * <ACE_Event_Handler> object. Returns the number of notifications
* purged. Returns -1 on error.
*/
virtual int purge_pending_notifications (ACE_Event_Handler * = 0,
@@ -152,7 +150,7 @@ public:
/// Set a user-specified timer queue.
virtual int timer_queue (ACE_Timer_Queue *tq) = 0;
- /// Return the current ACE_Timer_Queue.
+ /// Return the current <ACE_Timer_Queue>.
virtual ACE_Timer_Queue *timer_queue (void) const = 0;
/// Close down and release all resources.
@@ -179,7 +177,7 @@ public:
* application wishes to handle events for some fixed amount of
* time.
*
- * Returns the total number of ACE_Event_Handlers that were
+ * Returns the total number of <ACE_Event_Handler>s that were
* dispatched, 0 if the <max_wait_time> elapsed without dispatching
* any handlers, or -1 if an error occurs.
*
@@ -469,7 +467,7 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. Returns the number of notifications
+ * <ACE_Event_Handler> object. Returns the number of notifications
* purged. Returns -1 on error.
*/
virtual int purge_pending_notifications (ACE_Event_Handler * = 0,
@@ -563,7 +561,5 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_REACTOR_IMPL_H */
diff --git a/ace/Reactor_Notification_Strategy.cpp b/ace/Reactor_Notification_Strategy.cpp
index a029e2c10c2..c902f30b929 100644
--- a/ace/Reactor_Notification_Strategy.cpp
+++ b/ace/Reactor_Notification_Strategy.cpp
@@ -7,12 +7,9 @@
ACE_RCSID(ace, Reactor_Notification_Strategy, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_Reactor_Notification_Strategy::ACE_Reactor_Notification_Strategy (
- ACE_Reactor *reactor,
- ACE_Event_Handler *eh,
- ACE_Reactor_Mask mask)
+ACE_Reactor_Notification_Strategy::ACE_Reactor_Notification_Strategy (ACE_Reactor *reactor,
+ ACE_Event_Handler *eh,
+ ACE_Reactor_Mask mask)
: ACE_Notification_Strategy (eh, mask),
reactor_ (reactor)
{
@@ -34,5 +31,3 @@ ACE_Reactor_Notification_Strategy::notify (ACE_Event_Handler *eh,
{
return this->reactor_->notify (eh, mask);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor_Notification_Strategy.h b/ace/Reactor_Notification_Strategy.h
index 5d38f5609a6..4a38f37ec25 100644
--- a/ace/Reactor_Notification_Strategy.h
+++ b/ace/Reactor_Notification_Strategy.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -11,7 +11,6 @@
//=============================================================================
#ifndef ACE_REACTOR_NOTIFICATION_STRATEGY_H
#define ACE_REACTOR_NOTIFICATION_STRATEGY_H
-
#include /**/ "ace/pre.h"
#include "ace/Notification_Strategy.h"
@@ -20,14 +19,12 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Reactor_Notification_Strategy
*
* @brief Used to notify an ACE_Reactor
*
- * Integrates the ACE_Message_Queue notification into the
+ * Integrates the <ACE_Message_Queue> notification into the
* <ACE_Reactor::notify> method.
*/
class ACE_Export ACE_Reactor_Notification_Strategy : public ACE_Notification_Strategy
@@ -56,12 +53,9 @@ protected:
ACE_Reactor *reactor_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Reactor_Notification_Strategy.inl"
#endif /* __ACE_INLINE __ */
#include /**/ "ace/post.h"
-
#endif /*ACE_REACTOR_NOTIFICATION_STRATEGY_H */
diff --git a/ace/Reactor_Notification_Strategy.inl b/ace/Reactor_Notification_Strategy.inl
index 328c2687a77..260ec1d960a 100644
--- a/ace/Reactor_Notification_Strategy.inl
+++ b/ace/Reactor_Notification_Strategy.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_Reactor *
ACE_Reactor_Notification_Strategy::reactor (void)
{
@@ -15,5 +12,3 @@ ACE_Reactor_Notification_Strategy::reactor (ACE_Reactor *r)
{
this->reactor_ = r;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor_Timer_Interface.cpp b/ace/Reactor_Timer_Interface.cpp
index 6c07f21ac86..ea457c207a9 100644
--- a/ace/Reactor_Timer_Interface.cpp
+++ b/ace/Reactor_Timer_Interface.cpp
@@ -6,11 +6,6 @@ ACE_RCSID (ace,
Reactor_Timer_Interface,
"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Reactor_Timer_Interface::~ACE_Reactor_Timer_Interface()
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor_Timer_Interface.h b/ace/Reactor_Timer_Interface.h
index d370a128df2..91638c9c2bd 100644
--- a/ace/Reactor_Timer_Interface.h
+++ b/ace/Reactor_Timer_Interface.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Event_Handler;
/**
@@ -53,8 +51,6 @@ public:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_REACTOR_TIMER_INTERFACE_H */
diff --git a/ace/Reactor_Token_T.cpp b/ace/Reactor_Token_T.cpp
index 358b0b14f65..ede9bba4a1f 100644
--- a/ace/Reactor_Token_T.cpp
+++ b/ace/Reactor_Token_T.cpp
@@ -3,7 +3,9 @@
#include "ace/Log_Msg.h"
#include "ace/Reactor_Token_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ Reactor_Token_T,
+ "$Id$")
template <class ACE_TOKEN_TYPE> void
ACE_Reactor_Token_T<ACE_TOKEN_TYPE>::dump (void) const
@@ -66,5 +68,3 @@ ACE_Reactor_Token_T<ACE_TOKEN_TYPE>::sleep_hook (void)
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("sleep_hook failed")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Reactor_Token_T.h b/ace/Reactor_Token_T.h
index 9ed4c671d52..8d71bbb420f 100644
--- a/ace/Reactor_Token_T.h
+++ b/ace/Reactor_Token_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -18,7 +18,6 @@
#include "ace/Reactor_Impl.h"
#include "ace/Token.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Reactor_Token_T
@@ -54,12 +53,10 @@ template <class ACE_TOKEN_TYPE>
class ACE_Reactor_Token_T : public ACE_TOKEN_TYPE
{
public:
- /**
- * @todo After ACE 5.5.1, change ACE_Token::FIFO to ACE_TOKEN_TYPE::FIFO.
- * This is only like this to work around MSVC 6 problems.
- */
+ // *** After ACE 5.5.1, change ACE_Token::FIFO to ACE_TOKEN_TYPE::FIFO.
+ // **** This is only like this to work around MSVC 6 problems.
ACE_Reactor_Token_T (ACE_Reactor_Impl &r,
- int s_queue = ACE_Token::FIFO);
+ int s_queue = ACE_Token::FIFO);
ACE_Reactor_Token_T (int s_queue = ACE_Token::FIFO);
virtual ~ACE_Reactor_Token_T (void);
@@ -83,7 +80,11 @@ private:
ACE_Reactor_Impl *reactor_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+// There's no Reactor_Token_T.inl, but if there was, here's where it would
+// get included.
+#if 0 // defined (__ACE_INLINE__)
+#include "ace/Reactor_Token_T.inl"
+#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Reactor_Token_T.cpp"
diff --git a/ace/Read_Buffer.cpp b/ace/Read_Buffer.cpp
index 9401048f148..c6645957729 100644
--- a/ace/Read_Buffer.cpp
+++ b/ace/Read_Buffer.cpp
@@ -15,9 +15,6 @@
ACE_RCSID(ace, Read_Buffer, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Read_Buffer::dump (void) const
{
@@ -172,5 +169,3 @@ ACE_Read_Buffer::rec_read (int term, int search, int replace)
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Read_Buffer.h b/ace/Read_Buffer.h
index 11176ef34df..f1075c70901 100644
--- a/ace/Read_Buffer.h
+++ b/ace/Read_Buffer.h
@@ -25,8 +25,6 @@
#include "ace/Global_Macros.h"
#include "ace/os_include/os_stdio.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Allocator;
/**
@@ -82,7 +80,7 @@ public:
size_t replaced (void) const;
/// Returns the size of the allocated buffer obtained during a
- /// @c read, not including the null terminator.
+ /// <read>, not including the null terminator.
size_t size (void) const;
/// Returns a pointer to its allocator.
@@ -92,12 +90,6 @@ public:
void dump (void) const;
private:
-
- // Disallow copying and assignment...
- void operator= (const ACE_Read_Buffer &);
- ACE_Read_Buffer (const ACE_Read_Buffer &);
-
-private:
/// Recursive helper method that does the work...
char *rec_read (int term, int search, int replace);
@@ -117,10 +109,11 @@ private:
/// Pointer to the allocator.
ACE_Allocator *allocator_;
+ // = Disallow copying and assignment...
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Read_Buffer &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Read_Buffer (const ACE_Read_Buffer &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/Read_Buffer.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Read_Buffer.inl b/ace/Read_Buffer.inl
index 1517e9c17e3..3534c62db2e 100644
--- a/ace/Read_Buffer.inl
+++ b/ace/Read_Buffer.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Accessor to the number of bytes in the buffer.
ACE_INLINE size_t
@@ -29,4 +26,3 @@ ACE_Read_Buffer::alloc (void) const
return this->allocator_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Recursive_Thread_Mutex.cpp b/ace/Recursive_Thread_Mutex.cpp
index ccb59b1064d..15a809ed898 100644
--- a/ace/Recursive_Thread_Mutex.cpp
+++ b/ace/Recursive_Thread_Mutex.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file Recursive_Thread_Mutex.cpp
*
@@ -20,8 +21,6 @@
ACE_RCSID(ace, Recursive_Thread_Mutex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Recursive_Thread_Mutex)
ACE_Recursive_Thread_Mutex::ACE_Recursive_Thread_Mutex (const ACE_TCHAR *name,
@@ -92,11 +91,8 @@ ACE_Recursive_Thread_Mutex::get_nesting_level (void)
#elif defined (ACE_HAS_RECURSIVE_MUTEXES)
// Nothing inside of a CRITICAL_SECTION object should ever be
// accessed directly. It is documented to change at any time.
-# if defined (ACE_WIN64) && !defined(_M_AMD64)
- // Things are different on Windows XP 64-bit. However, as of Feb 2006
- // Windows XP 64-bit edition on Intel EM64T w/ VC8, LockCount is
- // decremented at first acquire and then doesn't change. RecursionCount,
- // however, works the same as Win32, below.
+# if defined (ACE_WIN64)
+ // Things are different on Windows XP 64-bit
return this->lock_.LockCount + 1;
# elif defined (ACE_WIN32)
// This is really a Win32-ism...
@@ -146,6 +142,4 @@ ACE_Recursive_Thread_Mutex::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/Recursive_Thread_Mutex.h b/ace/Recursive_Thread_Mutex.h
index e5ad28df15c..3732ff42334 100644
--- a/ace/Recursive_Thread_Mutex.h
+++ b/ace/Recursive_Thread_Mutex.h
@@ -29,8 +29,6 @@
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Recursive_Thread_Mutex
*
@@ -103,7 +101,7 @@ public:
int tryacquire_write (void);
/**
- * This is only here to make the ACE_Recursive_Thread_Mutex
+ * This is only here to make the <ACE_Recursive_Thread_Mutex>
* interface consistent with the other synchronization APIs.
* Assumes the caller has already acquired the mutex using one of
* the above calls, and returns 0 (success) always.
@@ -160,8 +158,6 @@ private:
ACE_Recursive_Thread_Mutex (const ACE_Recursive_Thread_Mutex &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Recursive_Thread_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Recursive_Thread_Mutex.inl b/ace/Recursive_Thread_Mutex.inl
index 5046cd01ec4..a1d84584315 100644
--- a/ace/Recursive_Thread_Mutex.inl
+++ b/ace/Recursive_Thread_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_recursive_thread_mutex_t &
ACE_Recursive_Thread_Mutex::mutex (void)
{
@@ -60,6 +57,3 @@ ACE_Recursive_Thread_Mutex::tryacquire_write_upgrade (void)
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
diff --git a/ace/Recyclable.cpp b/ace/Recyclable.cpp
index 5da42cc8d15..483852486f1 100644
--- a/ace/Recyclable.cpp
+++ b/ace/Recyclable.cpp
@@ -8,7 +8,6 @@
ACE_RCSID(ace, Recyclable, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Recyclable::ACE_Recyclable (ACE_Recyclable_State initial_state)
: recycle_state_ (initial_state)
@@ -18,5 +17,3 @@ ACE_Recyclable::ACE_Recyclable (ACE_Recyclable_State initial_state)
ACE_Recyclable::~ACE_Recyclable (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Recyclable.h b/ace/Recyclable.h
index 2c3d088cacd..709c9d45a3f 100644
--- a/ace/Recyclable.h
+++ b/ace/Recyclable.h
@@ -19,7 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/// States of a recyclable object.
enum ACE_Recyclable_State
@@ -63,17 +62,13 @@ public:
void recycle_state (ACE_Recyclable_State new_state);
protected:
-
- /// Constructor.
+ /// Protected constructor.
ACE_Recyclable (ACE_Recyclable_State initial_state);
-protected:
-
/// Our state.
ACE_Recyclable_State recycle_state_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "ace/Recyclable.inl"
diff --git a/ace/Recyclable.inl b/ace/Recyclable.inl
index ef096ff62be..c9a4318b2dc 100644
--- a/ace/Recyclable.inl
+++ b/ace/Recyclable.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
//$Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
ACE_INLINE ACE_Recyclable_State
ACE_Recyclable::recycle_state (void) const
@@ -13,8 +12,8 @@ ACE_Recyclable::recycle_state (void) const
ACE_INLINE void
ACE_Recyclable::recycle_state (ACE_Recyclable_State new_state)
{
- if (this->recycle_state_ != ACE_RECYCLABLE_CLOSED)
- this->recycle_state_ = new_state;
-}
+ if (this->recycle_state_ == ACE_RECYCLABLE_CLOSED)
+ return;
-ACE_END_VERSIONED_NAMESPACE_DECL
+ this->recycle_state_ = new_state;
+}
diff --git a/ace/Refcountable.cpp b/ace/Refcountable.cpp
index 902e4362f65..0c77633f4d1 100644
--- a/ace/Refcountable.cpp
+++ b/ace/Refcountable.cpp
@@ -11,10 +11,7 @@ ACE_RCSID (ace,
Refcountable,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Refcountable::~ACE_Refcountable (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Refcountable.h b/ace/Refcountable.h
index 192243bd256..8f1bc155705 100644
--- a/ace/Refcountable.h
+++ b/ace/Refcountable.h
@@ -20,8 +20,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Refcountable
*
@@ -47,8 +45,6 @@ protected:
int refcount_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Refcountable.inl"
diff --git a/ace/Refcountable.inl b/ace/Refcountable.inl
index 993af65d452..1d9a03fb66a 100644
--- a/ace/Refcountable.inl
+++ b/ace/Refcountable.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
//$Id$
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Refcountable::ACE_Refcountable (int refcount)
: refcount_ (refcount)
@@ -27,5 +23,3 @@ ACE_Refcountable::refcount (void) const
{
return this->refcount_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Refcounted_Auto_Ptr.cpp b/ace/Refcounted_Auto_Ptr.cpp
index 7dd9d862b64..8abc1d7768d 100644
--- a/ace/Refcounted_Auto_Ptr.cpp
+++ b/ace/Refcounted_Auto_Ptr.cpp
@@ -5,14 +5,10 @@
#include "ace/Refcounted_Auto_Ptr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class X, class ACE_LOCK>
ACE_Refcounted_Auto_Ptr<X, ACE_LOCK>::~ACE_Refcounted_Auto_Ptr (void)
{
AUTO_REFCOUNTED_PTR_REP::detach (rep_);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_REFCOUNTED_AUTO_PTR_CPP */
diff --git a/ace/Refcounted_Auto_Ptr.h b/ace/Refcounted_Auto_Ptr.h
index d480c125c68..adac3dd7cd3 100644
--- a/ace/Refcounted_Auto_Ptr.h
+++ b/ace/Refcounted_Auto_Ptr.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
template <class X, class ACE_LOCK> class ACE_Refcounted_Auto_Ptr_Rep;
template <class X, class ACE_LOCK> class ACE_Refcounted_Auto_Ptr;
@@ -190,8 +188,6 @@ private:
~ACE_Refcounted_Auto_Ptr_Rep (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include "ace/Refcounted_Auto_Ptr.inl"
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
diff --git a/ace/Refcounted_Auto_Ptr.inl b/ace/Refcounted_Auto_Ptr.inl
index 3635393ecfa..e0dfaa2e63c 100644
--- a/ace/Refcounted_Auto_Ptr.inl
+++ b/ace/Refcounted_Auto_Ptr.inl
@@ -5,8 +5,6 @@
#include "ace/Guard_T.h"
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class X, class ACE_LOCK> inline int
ACE_Refcounted_Auto_Ptr_Rep<X, ACE_LOCK>::count (void) const
{
@@ -214,5 +212,3 @@ ACE_Refcounted_Auto_Ptr<X, ACE_LOCK>::operator = (const ACE_Refcounted_Auto_Ptr<
AUTO_REFCOUNTED_PTR_REP::assign (this->rep_,
AUTO_REFCOUNTED_PTR_REP::attach (r.rep_));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Registry.cpp b/ace/Registry.cpp
index 93636f7d3fa..dcac2651071 100644
--- a/ace/Registry.cpp
+++ b/ace/Registry.cpp
@@ -25,9 +25,9 @@ ACE_RCSID (ace,
} while (0)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_TCHAR const ACE_Registry::STRING_SEPARATOR[] = ACE_LIB_TEXT ("\\");
+// Separator for components in a name
+/* static */
+const ACE_TCHAR *ACE_Registry::STRING_SEPARATOR = ACE_LIB_TEXT ("\\");
bool
ACE_Registry::Name_Component::operator== (const Name_Component &rhs) const
@@ -623,7 +623,7 @@ ACE_Registry::make_string (const Name &const_name)
{
if (iterator != name.begin ())
// If this is not the first component, we will add separators
- string += STRING_SEPARATOR;
+ string += ACE_Registry::STRING_SEPARATOR;
const Name_Component &component = *iterator;
// Add to string
string += component.id_;
@@ -646,7 +646,7 @@ ACE_Registry::make_name (const ACE_TString &string)
{
Name_Component component;
// Find the separator
- new_position = string.find (STRING_SEPARATOR, new_position);
+ new_position = string.find (ACE_Registry::STRING_SEPARATOR, new_position);
if (new_position != ACE_TString::npos)
// If we have not gone past the end
{
@@ -655,7 +655,7 @@ ACE_Registry::make_name (const ACE_TString &string)
new_position - last_position);
// Skip past the seperator
new_position +=
- ACE_OS::strlen (STRING_SEPARATOR);
+ ACE_OS::strlen (ACE_Registry::STRING_SEPARATOR);
}
else
{
@@ -1150,6 +1150,4 @@ template class ACE_Unbounded_Set_Iterator<ACE_Registry::Name_Component>;
#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Registry::Name_Component>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
diff --git a/ace/Registry.h b/ace/Registry.h
index 6050b17ee6a..f4c311b0a60 100644
--- a/ace/Registry.h
+++ b/ace/Registry.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,8 +27,6 @@
#include "ace/Containers.h"
#include "ace/SString.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Registry
*
@@ -62,7 +60,7 @@ public:
typedef ACE_Unbounded_Set<Name_Component> Name;
/// Separator for components in a name
- static const ACE_TCHAR STRING_SEPARATOR[];
+ static const ACE_TCHAR *STRING_SEPARATOR;
/// Convert a @a name to a @c string
static ACE_TString make_string (const Name &name);
@@ -353,7 +351,7 @@ public:
int flush (void);
/// Close the handle of the context
- /// @note <close> does not call <flush>
+ /// Note: <close> does not call <flush>
int close (void);
// Accessors
@@ -563,8 +561,6 @@ private:
typedef ACE_Registry::Binding Binding;
#endif /* ACE_HAS_BROKEN_NESTED_TEMPLATES */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
#include /**/ "ace/post.h"
#endif /* ACE_REGISTRY_H */
diff --git a/ace/Registry_Name_Space.cpp b/ace/Registry_Name_Space.cpp
index e382af8482e..a2322c29a8a 100644
--- a/ace/Registry_Name_Space.cpp
+++ b/ace/Registry_Name_Space.cpp
@@ -7,8 +7,6 @@ ACE_RCSID(ace, Registry_Name_Space, "$Id$")
#if (defined (ACE_WIN32) && defined (UNICODE))
// This only works on Win32 platforms when UNICODE is turned on
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Registry_Name_Space::ACE_Registry_Name_Space (void)
{
}
@@ -82,7 +80,7 @@ ACE_Registry_Name_Space::bind (const ACE_NS_WString &name,
#else
return this->context_.bind (name.char_rep(),
object);
-#endif /* ACE_HAS_WCHAR */
+#endif /* ACE_USES_WCHAR */
}
@@ -288,6 +286,5 @@ ACE_Registry_Name_Space::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_WIN32 && UNICODE */
diff --git a/ace/Registry_Name_Space.h b/ace/Registry_Name_Space.h
index cfd16ddec7e..7635b0bafbe 100644
--- a/ace/Registry_Name_Space.h
+++ b/ace/Registry_Name_Space.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/*-*- C++ -*- */
//=============================================================================
/**
@@ -28,8 +28,6 @@
#include "ace/Naming_Context.h"
#include "ace/Name_Space.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Registry_Name_Space
*
@@ -131,10 +129,6 @@ private:
ACE_Registry::Naming_Context context_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 && UNICODE */
-
#include /**/ "ace/post.h"
-
#endif /* ACE_REGISTRY_NAME_SPACE_H */
diff --git a/ace/Remote_Name_Space.cpp b/ace/Remote_Name_Space.cpp
index 6190237c1a8..12808ef2e62 100644
--- a/ace/Remote_Name_Space.cpp
+++ b/ace/Remote_Name_Space.cpp
@@ -8,8 +8,6 @@ ACE_RCSID (ace,
Remote_Name_Space,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_Remote_Name_Space::open (const ACE_TCHAR *servername, u_short port)
{
@@ -46,12 +44,12 @@ ACE_Remote_Name_Space::bind (const ACE_NS_WString &name,
const char *type)
{
ACE_TRACE ("ACE_Remote_Name_Space::bind");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> name_urep (name.rep ());
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> value_urep (value.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> name_urep (name.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> value_urep (value.rep ());
ACE_UINT32 name_len =
- static_cast<ACE_UINT32> (name.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (name.length () * sizeof (wchar_t));
ACE_UINT32 value_len =
- static_cast<ACE_UINT32> (value.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (value.length () * sizeof (wchar_t));
ACE_UINT32 type_len =
static_cast<ACE_UINT32> (ACE_OS::strlen (type));
ACE_Name_Request request (ACE_Name_Request::BIND,
@@ -70,12 +68,12 @@ ACE_Remote_Name_Space::rebind (const ACE_NS_WString &name,
const char *type)
{
ACE_TRACE ("ACE_Remote_Name_Space::rebind");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> name_urep (name.rep ());
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> value_urep (value.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> name_urep (name.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> value_urep (value.rep ());
ACE_UINT32 name_len =
- static_cast<ACE_UINT32> (name.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (name.length () * sizeof (wchar_t));
ACE_UINT32 value_len =
- static_cast<ACE_UINT32> (value.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (value.length () * sizeof (wchar_t));
ACE_UINT32 type_len =
static_cast<ACE_UINT32> (ACE_OS::strlen (type));
ACE_Name_Request request (ACE_Name_Request::REBIND,
@@ -94,9 +92,9 @@ ACE_Remote_Name_Space::resolve (const ACE_NS_WString &name,
char *&type)
{
ACE_TRACE ("ACE_Remote_Name_Space::resolve");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> name_urep (name.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> name_urep (name.rep ());
ACE_UINT32 name_len =
- static_cast<ACE_UINT32> (name.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (name.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::RESOLVE,
name_urep.get (),
name_len,
@@ -110,7 +108,7 @@ ACE_Remote_Name_Space::resolve (const ACE_NS_WString &name,
if (this->ns_proxy_.recv_reply (reply) == -1)
return -1;
- ACE_NS_WString temp (reply.value (), reply.value_len () / sizeof (ACE_WCHAR_T));
+ ACE_NS_WString temp (reply.value (), reply.value_len () / sizeof (wchar_t));
value = temp;
ACE_NEW_RETURN (type,
char[reply.type_len () + 1],
@@ -123,9 +121,9 @@ int
ACE_Remote_Name_Space::unbind (const ACE_NS_WString &name)
{
ACE_TRACE ("ACE_Remote_Name_Space::unbind");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> name_urep (name.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> name_urep (name.rep ());
ACE_UINT32 name_len =
- static_cast<ACE_UINT32> (name.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (name.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::UNBIND,
name_urep.get (),
name_len,
@@ -138,9 +136,9 @@ ACE_Remote_Name_Space::list_names (ACE_WSTRING_SET &set,
const ACE_NS_WString &pattern)
{
ACE_TRACE ("ACE_Remote_Name_Space::list_names");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> pattern_urep (pattern.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> pattern_urep (pattern.rep ());
ACE_UINT32 pattern_len =
- static_cast<ACE_UINT32> (pattern.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (pattern.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::LIST_NAMES,
pattern_urep.get (),
pattern_len,
@@ -160,7 +158,7 @@ ACE_Remote_Name_Space::list_names (ACE_WSTRING_SET &set,
if (reply.msg_type () != ACE_Name_Request::MAX_ENUM)
{
ACE_NS_WString name (reply.name (),
- reply.name_len () / sizeof (ACE_WCHAR_T));
+ reply.name_len () / sizeof (wchar_t));
set.insert (name);
}
}
@@ -172,9 +170,9 @@ ACE_Remote_Name_Space::list_values (ACE_WSTRING_SET &set,
const ACE_NS_WString &pattern)
{
ACE_TRACE ("ACE_Remote_Name_Space::list_values");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> pattern_urep (pattern.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> pattern_urep (pattern.rep ());
ACE_UINT32 pattern_len =
- static_cast<ACE_UINT32> (pattern.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (pattern.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::LIST_VALUES,
pattern_urep.get (),
pattern_len,
@@ -194,7 +192,7 @@ ACE_Remote_Name_Space::list_values (ACE_WSTRING_SET &set,
if (reply.msg_type () != ACE_Name_Request::MAX_ENUM)
{
ACE_NS_WString value (reply.value (),
- reply.value_len () / sizeof (ACE_WCHAR_T));
+ reply.value_len () / sizeof (wchar_t));
set.insert (value);
}
}
@@ -207,9 +205,9 @@ ACE_Remote_Name_Space::list_types (ACE_WSTRING_SET &set,
const ACE_NS_WString &pattern)
{
ACE_TRACE ("ACE_Remote_Name_Space::list_types");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> pattern_urep (pattern.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> pattern_urep (pattern.rep ());
ACE_UINT32 pattern_len =
- static_cast<ACE_UINT32> (pattern.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (pattern.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::LIST_TYPES,
pattern_urep.get (),
pattern_len,
@@ -242,9 +240,9 @@ ACE_Remote_Name_Space::list_name_entries (ACE_BINDING_SET &set,
const ACE_NS_WString &pattern)
{
ACE_TRACE ("ACE_Remote_Name_Space::list_name_entries");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> pattern_urep (pattern.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> pattern_urep (pattern.rep ());
ACE_UINT32 pattern_len =
- static_cast<ACE_UINT32> (pattern.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (pattern.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::LIST_NAME_ENTRIES,
pattern_urep.get (),
pattern_len,
@@ -265,9 +263,9 @@ ACE_Remote_Name_Space::list_name_entries (ACE_BINDING_SET &set,
if (reply.msg_type () != ACE_Name_Request::MAX_ENUM)
{
ACE_NS_WString name (reply.name (),
- reply.name_len () / sizeof (ACE_WCHAR_T));
+ reply.name_len () / sizeof (wchar_t));
ACE_NS_WString value (reply.value (),
- reply.value_len () / sizeof (ACE_WCHAR_T));
+ reply.value_len () / sizeof (wchar_t));
ACE_Name_Binding entry (name,
value,
reply.type ());
@@ -283,9 +281,9 @@ ACE_Remote_Name_Space::list_value_entries (ACE_BINDING_SET &set,
const ACE_NS_WString &pattern)
{
ACE_TRACE ("ACE_Remote_Name_Space::list_value_entries");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> pattern_urep (pattern.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> pattern_urep (pattern.rep ());
ACE_UINT32 pattern_len =
- static_cast<ACE_UINT32> (pattern.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (pattern.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::LIST_VALUE_ENTRIES,
pattern_urep.get (),
pattern_len,
@@ -306,9 +304,9 @@ ACE_Remote_Name_Space::list_value_entries (ACE_BINDING_SET &set,
if (reply.msg_type () != ACE_Name_Request::MAX_ENUM)
{
ACE_NS_WString name (reply.name (),
- reply.name_len () / sizeof (ACE_WCHAR_T));
+ reply.name_len () / sizeof (wchar_t));
ACE_NS_WString value (reply.value (),
- reply.value_len () / sizeof (ACE_WCHAR_T));
+ reply.value_len () / sizeof (wchar_t));
ACE_Name_Binding entry (name,
value,
reply.type());
@@ -324,9 +322,9 @@ ACE_Remote_Name_Space::list_type_entries (ACE_BINDING_SET &set,
const ACE_NS_WString &pattern)
{
ACE_TRACE ("ACE_Remote_Name_Space::list_type_entries");
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> pattern_urep (pattern.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> pattern_urep (pattern.rep ());
ACE_UINT32 pattern_len =
- static_cast<ACE_UINT32> (pattern.length () * sizeof (ACE_WCHAR_T));
+ static_cast<ACE_UINT32> (pattern.length () * sizeof (wchar_t));
ACE_Name_Request request (ACE_Name_Request::LIST_TYPE_ENTRIES,
pattern_urep.get (),
pattern_len,
@@ -347,9 +345,9 @@ ACE_Remote_Name_Space::list_type_entries (ACE_BINDING_SET &set,
if (reply.msg_type () != ACE_Name_Request::MAX_ENUM)
{
ACE_NS_WString name (reply.name (),
- reply.name_len () / sizeof (ACE_WCHAR_T));
+ reply.name_len () / sizeof (wchar_t));
ACE_NS_WString value (reply.value (),
- reply.value_len () / sizeof (ACE_WCHAR_T));
+ reply.value_len () / sizeof (wchar_t));
ACE_Name_Binding entry (name,
value,
reply.type ());
@@ -378,9 +376,7 @@ ACE_Remote_Name_Space::dump (void) const
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T>;
+template class ACE_Auto_Basic_Array_Ptr<wchar_t>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T>
+#pragma instantiate ACE_Auto_Basic_Array_Ptr<wchar_t>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Remote_Name_Space.h b/ace/Remote_Name_Space.h
index a58ca4e83af..95c0d9c4531 100644
--- a/ace/Remote_Name_Space.h
+++ b/ace/Remote_Name_Space.h
@@ -25,7 +25,6 @@
#include "ace/Name_Proxy.h"
#include "ace/Name_Space.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_NS_WString;
@@ -140,8 +139,6 @@ private:
ACE_Name_Proxy ns_proxy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_REMOTE_NAME_SPACE_H */
diff --git a/ace/Remote_Tokens.cpp b/ace/Remote_Tokens.cpp
index c5a25346f7c..f80fe9a3bf8 100644
--- a/ace/Remote_Tokens.cpp
+++ b/ace/Remote_Tokens.cpp
@@ -1,3 +1,4 @@
+// Remote_Tokens.cpp
// $Id$
#include "ace/Remote_Tokens.h"
@@ -22,8 +23,6 @@ ACE_RCSID (ace,
#define ACE_TSS_CONNECTION_MUTEX ACE_Null_Mutex
#endif /* ACE_MT_SAFE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Make a typedef to simplify access to the Singleton below.
typedef ACE_Singleton<ACE_TSS_Connection, ACE_TSS_CONNECTION_MUTEX> ACE_Token_Connections;
@@ -111,8 +110,8 @@ ACE_Remote_Token_Proxy::~ACE_Remote_Token_Proxy (void)
int
ACE_Remote_Token_Proxy::open (const ACE_TCHAR *name,
- int ignore_deadlock,
- int debug)
+ int ignore_deadlock,
+ int debug)
{
ACE_TRACE ("ACE_Remote_Token_Proxy::open");
ignore_shadow_deadlock_ = ignore_deadlock;
@@ -145,7 +144,7 @@ ACE_Remote_Token_Proxy::initiate_connection (void)
int
ACE_Remote_Token_Proxy::request_reply (ACE_Token_Request &request,
- ACE_Synch_Options &)
+ ACE_Synch_Options &)
{
ACE_TRACE ("ACE_Remote_Token_Proxy::request_reply");
void *buffer;
@@ -170,68 +169,68 @@ ACE_Remote_Token_Proxy::request_reply (ACE_Token_Request &request,
// Receive reply via blocking read.
if (peer->recv (&reply, sizeof reply) != sizeof reply)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("recv failed")), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("recv failed")), -1);
if (reply.decode () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("decode failed")), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("decode failed")), -1);
errno = int (reply.errnum ());
if (errno != 0)
- ACE_RETURN (-1);
+ ACE_RETURN (-1);
else
- return 0;
+ return 0;
}
}
int
ACE_Remote_Token_Proxy::acquire (int notify,
- void (*sleep_hook)(void *),
- ACE_Synch_Options &options)
+ void (*sleep_hook)(void *),
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Remote_Token_Proxy::acquire");
// First grab the local shadow mutex.
if (ACE_Token_Proxy::acquire (notify,
- sleep_hook,
- ACE_Synch_Options::asynch) == -1)
+ sleep_hook,
+ ACE_Synch_Options::asynch) == -1)
{
// Acquire failed, deal with it...
switch (errno)
- {
- case EWOULDBLOCK :
- // Whoah, we detected wouldblock via the shadow mutex!
- if (debug_)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) shadow: acquire will block, owner is %s\n"),
- this->token_->owner_id ()));
- // No error, but would block,
- break;
-
- case EDEADLK :
- if (debug_)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) shadow: deadlock detected\n")));
-
- if (ignore_shadow_deadlock_)
- break;
- else
- {
- errno = EDEADLK;
- ACE_RETURN (-1);
- }
-
- default :
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_LIB_TEXT ("(%t) %p shadow acquire failed\n"),
- ACE_LIB_TEXT ("ACE_Remote_Token_Proxy")),
- -1);
- }
+ {
+ case EWOULDBLOCK :
+ // Whoah, we detected wouldblock via the shadow mutex!
+ if (debug_)
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) shadow: acquire will block, owner is %s\n"),
+ this->token_->owner_id ()));
+ // No error, but would block,
+ break;
+
+ case EDEADLK :
+ if (debug_)
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) shadow: deadlock detected\n")));
+
+ if (ignore_shadow_deadlock_)
+ break;
+ else
+ {
+ errno = EDEADLK;
+ ACE_RETURN (-1);
+ }
+
+ default :
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_LIB_TEXT ("(%t) %p shadow acquire failed\n"),
+ ACE_LIB_TEXT ("ACE_Remote_Token_Proxy")),
+ -1);
+ }
}
ACE_Token_Request request (token_->type (),
- this->type (),
- ACE_Token_Request::ACQUIRE,
- this->name (),
- this->client_id (),
- options);
+ this->type (),
+ ACE_Token_Request::ACQUIRE,
+ this->name (),
+ this->client_id (),
+ options);
request.notify (notify);
@@ -267,51 +266,51 @@ ACE_Remote_Token_Proxy::tryacquire (void (*sleep_hook)(void *))
if (ACE_Token_Proxy::tryacquire (sleep_hook) == -1)
{
if (debug_)
- {
+ {
// Save/restore errno.
ACE_Errno_Guard error (errno);
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_LIB_TEXT ("shadow try acquire failed\n")));
- }
+ }
return -1;
}
ACE_Token_Request request (token_->type (),
- this->type (),
- ACE_Token_Request::TRY_ACQUIRE,
- this->name (),
- this->client_id (),
- ACE_Synch_Options::synch);
+ this->type (),
+ ACE_Token_Request::TRY_ACQUIRE,
+ this->name (),
+ this->client_id (),
+ ACE_Synch_Options::synch);
return this->request_reply (request,
- ACE_Synch_Options::synch);
+ ACE_Synch_Options::synch);
}
int
ACE_Remote_Token_Proxy::renew (int requeue_position,
- ACE_Synch_Options &options)
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Remote_Token_Proxy::renew");
if (ACE_Token_Proxy::renew (requeue_position,
- ACE_Synch_Options::asynch) == -1)
+ ACE_Synch_Options::asynch) == -1)
{
// Check for error.
if (errno != EWOULDBLOCK)
- return -1;
+ return -1;
else if (debug_)
- ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) shadow: renew would block. owner %s.\n"),
- this->token_->owner_id ()));
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_LIB_TEXT ("(%t) shadow: renew would block. owner %s.\n"),
+ this->token_->owner_id ()));
}
ACE_Token_Request request (token_->type (),
- this->type (),
- ACE_Token_Request::RENEW,
- this->name (),
- this->client_id (),
- options);
+ this->type (),
+ ACE_Token_Request::RENEW,
+ this->name (),
+ this->client_id (),
+ options);
request.requeue_position (requeue_position);
@@ -331,7 +330,7 @@ ACE_Remote_Token_Proxy::renew (int requeue_position,
else
{
if (debug_)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) renewed %s remotely.\n"), this->name ()));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) renewed %s remotely.\n"), this->name ()));
// Make sure that the local shadow reflects our new ownership.
token_->make_owner (waiter_);
return result;
@@ -344,11 +343,11 @@ ACE_Remote_Token_Proxy::release (ACE_Synch_Options &options)
ACE_TRACE ("ACE_Remote_Token_Proxy::release");
ACE_Token_Request request (token_->type (),
- this->type (),
- ACE_Token_Request::RELEASE,
- this->name (),
- this->client_id (),
- options);
+ this->type (),
+ ACE_Token_Request::RELEASE,
+ this->name (),
+ this->client_id (),
+ options);
int result = this->request_reply (request, options);
if (result == 0)
@@ -375,8 +374,8 @@ ACE_Remote_Token_Proxy::token_acquired (ACE_TPQ_Entry *)
{
ACE_TRACE ("ACE_Remote_Token_Proxy::token_acquired");
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) %s shadow token %s acquired\n"),
- this->client_id (),
- this->name ()));
+ this->client_id (),
+ this->name ()));
// ACE_Token_Proxy::token_acquired (vp);
}
@@ -410,8 +409,8 @@ ACE_Remote_Mutex::clone (void) const
ACE_Token_Proxy *temp;
ACE_NEW_RETURN (temp,
ACE_Remote_Mutex (this->name (),
- ignore_deadlock_,
- debug_),
+ ignore_deadlock_,
+ debug_),
0);
return temp;
}
@@ -461,8 +460,8 @@ ACE_Remote_RLock::clone (void) const
ACE_Token_Proxy *temp = 0;
ACE_NEW_RETURN (temp,
ACE_Remote_RLock (this->name (),
- ignore_deadlock_,
- debug_),
+ ignore_deadlock_,
+ debug_),
0);
return temp;
}
@@ -530,6 +529,4 @@ template class ACE_Singleton <ACE_TSS_Connection, ACE_TSS_CONNECTION_MUTEX>;
#pragma instantiate ACE_Singleton <ACE_TSS_Connection, ACE_TSS_CONNECTION_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Remote_Tokens.h b/ace/Remote_Tokens.h
index ec39d3d26eb..d9310592f7f 100644
--- a/ace/Remote_Tokens.h
+++ b/ace/Remote_Tokens.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -13,7 +13,6 @@
#ifndef ACE_REMOTE_MUTEX_H
#define ACE_REMOTE_MUTEX_H
-
#include /**/ "ace/pre.h"
#include "ace/INET_Addr.h"
@@ -30,8 +29,6 @@
#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Remote_Token_Proxy
*
@@ -309,8 +306,6 @@ private:
void operator= (const ACE_TSS_Connection &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
#if defined (__ACE_INLINE__)
@@ -318,5 +313,4 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
-
#endif /* ACE_REMOTE_TOKEN_H */
diff --git a/ace/Remote_Tokens.inl b/ace/Remote_Tokens.inl
index 50487075225..004fe75b7d4 100644
--- a/ace/Remote_Tokens.inl
+++ b/ace/Remote_Tokens.inl
@@ -4,8 +4,6 @@
#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Remote_Mutex::ACE_Remote_Mutex (void)
{
@@ -14,8 +12,8 @@ ACE_Remote_Mutex::ACE_Remote_Mutex (void)
ACE_INLINE
ACE_Remote_Mutex::ACE_Remote_Mutex (const ACE_TCHAR *token_name,
- int ignore_deadlock,
- int debug)
+ int ignore_deadlock,
+ int debug)
{
ACE_TRACE ("ACE_Remote_Mutex::ACE_Remote_Mutex");
this->open (token_name, ignore_deadlock, debug);
@@ -25,8 +23,8 @@ ACE_Remote_Mutex::ACE_Remote_Mutex (const ACE_TCHAR *token_name,
ACE_INLINE
ACE_Remote_RLock::ACE_Remote_RLock (const ACE_TCHAR *token_name,
- int ignore_deadlock,
- int debug)
+ int ignore_deadlock,
+ int debug)
{
ACE_TRACE ("ACE_Remote_RLock::ACE_Remote_RLock");
this->open (token_name, ignore_deadlock, debug);
@@ -36,13 +34,11 @@ ACE_Remote_RLock::ACE_Remote_RLock (const ACE_TCHAR *token_name,
ACE_INLINE
ACE_Remote_WLock::ACE_Remote_WLock (const ACE_TCHAR *token_name,
- int ignore_deadlock,
- int debug)
+ int ignore_deadlock,
+ int debug)
{
ACE_TRACE ("ACE_Remote_WLock::ACE_Remote_WLock");
this->open (token_name, ignore_deadlock, debug);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Reverse_Lock_T.cpp b/ace/Reverse_Lock_T.cpp
index 348c81da62a..0dc093cf7a5 100644
--- a/ace/Reverse_Lock_T.cpp
+++ b/ace/Reverse_Lock_T.cpp
@@ -13,7 +13,6 @@
#include "ace/Reverse_Lock_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class ACE_LOCKING_MECHANISM>
ACE_Reverse_Lock<ACE_LOCKING_MECHANISM>::~ACE_Reverse_Lock (void)
@@ -88,6 +87,4 @@ ACE_Reverse_Lock<ACE_LOCKING_MECHANISM>::tryacquire_write_upgrade (void)
ACE_NOTSUP_RETURN (-1);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_REVERSE_LOCK_T_CPP */
diff --git a/ace/Reverse_Lock_T.h b/ace/Reverse_Lock_T.h
index 5bd1d3a6b8f..29f23b08c08 100644
--- a/ace/Reverse_Lock_T.h
+++ b/ace/Reverse_Lock_T.h
@@ -22,12 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
- * @namespace ACE_Acquire_Method
+ * @class ACE_Acquire_Method
*
- * @brief An enum namespace.
+ * @brief An enum class.
*
* These enums should have been inside the reverse lock class, but
* some lame compilers cannot handle enums inside template classes.
@@ -40,19 +38,16 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* represented here because we have to make sure that the release()
* method on the reverse lock acquires a lock on the real lock.
**/
-namespace ACE_Acquire_Method
+class ACE_Acquire_Method
{
+public:
enum METHOD_TYPE
{
ACE_REGULAR,
ACE_READ,
ACE_WRITE
};
-}
-
-#if defined (ACE_LYNXOS_MAJOR) && (ACE_LYNXOS_MAJOR < 4)
- using namespace ACE_Acquire_Method;
-#endif
+};
/**
* @class ACE_Reverse_Lock
@@ -82,14 +77,8 @@ public:
// = Initialization/Finalization methods.
/// Constructor. All locking requests will be forwarded to <lock>.
-#if defined (ACE_LYNXOS_MAJOR) && (ACE_LYNXOS_MAJOR < 4)
- // Make LynxOS 3.x buggy compiler happy
- ACE_Reverse_Lock (ACE_LOCKING_MECHANISM &lock,
- METHOD_TYPE acquire_method = ACE_REGULAR);
-#else
ACE_Reverse_Lock (ACE_LOCKING_MECHANISM &lock,
ACE_Acquire_Method::METHOD_TYPE acquire_method = ACE_Acquire_Method::ACE_REGULAR);
-#endif
/// Destructor. If <lock_> was not passed in by the user, it will be
/// deleted.
@@ -131,8 +120,6 @@ private:
ACE_Acquire_Method::METHOD_TYPE acquire_method_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Reverse_Lock_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Reverse_Lock_T.inl b/ace/Reverse_Lock_T.inl
index 0f8598ffd23..84533466663 100644
--- a/ace/Reverse_Lock_T.inl
+++ b/ace/Reverse_Lock_T.inl
@@ -5,8 +5,6 @@
#include "ace/config-all.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACE_LOCKING_MECHANISM> ACE_INLINE
ACE_Reverse_Lock<ACE_LOCKING_MECHANISM>::ACE_Reverse_Lock (
ACE_LOCKING_MECHANISM &lock,
@@ -15,5 +13,3 @@ ACE_Reverse_Lock<ACE_LOCKING_MECHANISM>::ACE_Reverse_Lock (
acquire_method_ (acquire_method)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK.cpp b/ace/SOCK.cpp
index f6618cdada4..64bb4bc0210 100644
--- a/ace/SOCK.cpp
+++ b/ace/SOCK.cpp
@@ -1,3 +1,4 @@
+// SOCK.cpp
// $Id$
#include "ace/SOCK.h"
@@ -9,8 +10,6 @@
ACE_RCSID(ace, SOCK, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK)
void
@@ -181,5 +180,3 @@ ACE_SOCK::ACE_SOCK (int type,
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_SOCK::ACE_SOCK")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK.h b/ace/SOCK.h
index 8348d0f35d8..d9bfd0c5eec 100644
--- a/ace/SOCK.h
+++ b/ace/SOCK.h
@@ -24,8 +24,6 @@
#include "ace/IPC_SAP.h"
#include "ace/OS_NS_stropts.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SOCK
*
@@ -41,6 +39,8 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_SOCK : public ACE_IPC_SAP
{
public:
+ /// Default ctor/dtor.
+ ~ACE_SOCK (void);
/// Wrapper around the <setsockopt> system call.
int set_option (int level,
@@ -96,7 +96,6 @@ public:
int reuse_addr);
protected:
-
/// Constructor with arguments to call the BSD-style <socket> system
/// call (no QoS).
ACE_SOCK (int type,
@@ -118,18 +117,8 @@ protected:
/// from being defined.
ACE_SOCK (void);
- /// Protected destructor.
- /**
- * Not a virtual destructor. Protected destructor to prevent
- * operator delete() from being called through a base class ACE_SOCK
- * pointer/reference.
- */
- ~ACE_SOCK (void);
-
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK.inl b/ace/SOCK.inl
index c57fa36dfec..f35fda782d1 100644
--- a/ace/SOCK.inl
+++ b/ace/SOCK.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/OS_NS_sys_socket.h"
+// SOCK.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_sys_socket.h"
ACE_INLINE
ACE_SOCK::~ACE_SOCK (void)
@@ -14,26 +13,24 @@ ACE_SOCK::~ACE_SOCK (void)
ACE_INLINE int
ACE_SOCK::set_option (int level,
- int option,
- void *optval,
- int optlen) const
+ int option,
+ void *optval,
+ int optlen) const
{
ACE_TRACE ("ACE_SOCK::set_option");
return ACE_OS::setsockopt (this->get_handle (), level,
- option, (char *) optval, optlen);
+ option, (char *) optval, optlen);
}
// Provides access to the ACE_OS::getsockopt system call.
ACE_INLINE int
ACE_SOCK::get_option (int level,
- int option,
- void *optval,
- int *optlen) const
+ int option,
+ void *optval,
+ int *optlen) const
{
ACE_TRACE ("ACE_SOCK::get_option");
return ACE_OS::getsockopt (this->get_handle (), level,
- option, (char *) optval, optlen);
+ option, (char *) optval, optlen);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Acceptor.cpp b/ace/SOCK_Acceptor.cpp
index 9a103d3f662..ffb187b5e17 100644
--- a/ace/SOCK_Acceptor.cpp
+++ b/ace/SOCK_Acceptor.cpp
@@ -1,9 +1,9 @@
+// SOCK_Acceptor.cpp
// $Id$
#include "ace/SOCK_Acceptor.h"
#include "ace/Log_Msg.h"
-#include "ace/OS_Errno.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_sys_socket.h"
#include "ace/os_include/os_fcntl.h"
@@ -18,8 +18,6 @@
ACE_RCSID(ace, SOCK_Acceptor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Acceptor)
// Do nothing routine for constructor.
@@ -287,7 +285,6 @@ ACE_SOCK_Acceptor::shared_open (const ACE_Addr &local_sap,
|| ACE_OS::listen (this->get_handle (),
backlog) == -1)
{
- ACE_Errno_Guard g (errno); // Preserve across close() below.
error = 1;
this->close ();
}
@@ -404,5 +401,3 @@ ACE_SOCK_Acceptor::close (void)
{
return ACE_SOCK::close ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Acceptor.h b/ace/SOCK_Acceptor.h
index 4341698c7c9..bad9010bfcc 100644
--- a/ace/SOCK_Acceptor.h
+++ b/ace/SOCK_Acceptor.h
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
class ACE_Accept_QoS_Params;
@@ -168,8 +166,6 @@ private:
int get_remote_addr (ACE_Addr &) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_Acceptor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_Acceptor.inl b/ace/SOCK_Acceptor.inl
index a4456ed3ab6..db6fa00f4ba 100644
--- a/ace/SOCK_Acceptor.inl
+++ b/ace/SOCK_Acceptor.inl
@@ -1,13 +1,10 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_SOCK_Acceptor::~ACE_SOCK_Acceptor (void)
{
ACE_TRACE ("ACE_SOCK_Acceptor::~ACE_SOCK_Acceptor");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/SOCK_CODgram.cpp b/ace/SOCK_CODgram.cpp
index 8bacd9d1220..766819b1eb1 100644
--- a/ace/SOCK_CODgram.cpp
+++ b/ace/SOCK_CODgram.cpp
@@ -1,3 +1,4 @@
+// SOCK_CODgram.cpp
// $Id$
#include "ace/SOCK_CODgram.h"
@@ -10,8 +11,6 @@
ACE_RCSID(ace, SOCK_CODgram, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_CODgram)
void
@@ -25,12 +24,12 @@ ACE_SOCK_CODgram::dump (void) const
// Here's the general-purpose constructor.
ACE_SOCK_CODgram::ACE_SOCK_CODgram (const ACE_Addr &remote, const ACE_Addr &local,
- int protocol_family, int protocol,
- int reuse_addr)
+ int protocol_family, int protocol,
+ int reuse_addr)
{
ACE_TRACE ("ACE_SOCK_CODgram::ACE_SOCK_CODgram");
if (this->open (remote, local,
- protocol_family, protocol, reuse_addr) == -1)
+ protocol_family, protocol, reuse_addr) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"), ACE_LIB_TEXT ("ACE_SOCK_CODgram")));
}
@@ -40,73 +39,71 @@ ACE_SOCK_CODgram::ACE_SOCK_CODgram (const ACE_Addr &remote, const ACE_Addr &loca
1. remote == ACE_Addr::sap_any && local == ACE_Addr::sap_any
if protocol_family == PF_INET then
- bind the local address to a randomly generated port number...
+ bind the local address to a randomly generated port number...
2. remote == ACE_Addr::sap_any && local != ACE_Addr::sap_any
we are just binding the local address
- (used primarily by servers)
+ (used primarily by servers)
3. remote != ACE_Addr::sap_any && local == ACE_Addr::sap_any
we are connecting to the remote address
- (used primarily by clients)
+ (used primarily by clients)
4. remote != ACE_Addr::sap_any && local != ACE_Addr::sap_any
we are binding to the local address
- and connecting to the remote address
+ and connecting to the remote address
*/
int
ACE_SOCK_CODgram::open (const ACE_Addr &remote, const ACE_Addr &local,
- int protocol_family, int protocol,
- int reuse_addr)
+ int protocol_family, int protocol,
+ int reuse_addr)
{
ACE_TRACE ("ACE_SOCK_CODgram::open");
if (ACE_SOCK::open (SOCK_DGRAM, protocol_family,
- protocol, reuse_addr) == -1)
+ protocol, reuse_addr) == -1)
return -1;
else
{
int error = 0;
if (local == ACE_Addr::sap_any && remote == ACE_Addr::sap_any)
- {
- // Assign an arbitrary port number from the transient range!!
+ {
+ // Assign an arbitrary port number from the transient range!!
- if (protocol_family == PF_INET
- && ACE::bind_port (this->get_handle ()) == -1)
- error = 1;
- }
+ if (protocol_family == PF_INET
+ && ACE::bind_port (this->get_handle ()) == -1)
+ error = 1;
+ }
// We are binding just the local address.
else if (local != ACE_Addr::sap_any && remote == ACE_Addr::sap_any)
- {
- if (ACE_OS::bind (this->get_handle (), (sockaddr *) local.get_addr (),
- local.get_size ()) == -1)
- error = 1;
- }
+ {
+ if (ACE_OS::bind (this->get_handle (), (sockaddr *) local.get_addr (),
+ local.get_size ()) == -1)
+ error = 1;
+ }
// We are connecting to the remote address.
else if (local == ACE_Addr::sap_any && remote != ACE_Addr::sap_any)
- {
- if (ACE_OS::connect (this->get_handle (), (sockaddr *) remote.get_addr (),
- remote.get_size ()) == -1)
- error = 1;
- }
+ {
+ if (ACE_OS::connect (this->get_handle (), (sockaddr *) remote.get_addr (),
+ remote.get_size ()) == -1)
+ error = 1;
+ }
// We are binding to the local address and connecting to the
// remote addresses.
else
- {
- if (ACE_OS::bind (this->get_handle (), (sockaddr *) local.get_addr (),
- local.get_size ()) == -1
- || ACE_OS::connect (this->get_handle (), (sockaddr *) remote.get_addr (),
- remote.get_size ()) == -1)
- error = 1;
- }
+ {
+ if (ACE_OS::bind (this->get_handle (), (sockaddr *) local.get_addr (),
+ local.get_size ()) == -1
+ || ACE_OS::connect (this->get_handle (), (sockaddr *) remote.get_addr (),
+ remote.get_size ()) == -1)
+ error = 1;
+ }
if (error)
- {
- this->close ();
- this->set_handle (ACE_INVALID_HANDLE);
- }
+ {
+ this->close ();
+ this->set_handle (ACE_INVALID_HANDLE);
+ }
return error ? -1 : 0;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_CODgram.h b/ace/SOCK_CODgram.h
index 007f7352c97..7381b33f8f4 100644
--- a/ace/SOCK_CODgram.h
+++ b/ace/SOCK_CODgram.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -15,7 +15,13 @@
#define ACE_SOCK_CODGRAM_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
+
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,15 +31,13 @@
#include "ace/Addr.h"
#include "ace/INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SOCK_CODgram
*
* @brief Defines the member functions for the ACE_SOCK connected
* datagram abstraction.
*/
-class ACE_Export ACE_SOCK_CODgram : public ACE_SOCK_IO
+class ACE_Sockets_Export ACE_SOCK_CODgram : public ACE_SOCK_IO
{
public:
// = Initialization methods.
@@ -68,8 +72,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_CODgram.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_CODgram.inl b/ace/SOCK_CODgram.inl
index de7b0570973..a921bb5df5a 100644
--- a/ace/SOCK_CODgram.inl
+++ b/ace/SOCK_CODgram.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// SOCK_CODgram.i
ACE_INLINE
ACE_SOCK_CODgram::ACE_SOCK_CODgram (void)
@@ -16,4 +15,4 @@ ACE_SOCK_CODgram::~ACE_SOCK_CODgram (void)
ACE_TRACE ("ACE_SOCK_CODgram::~ACE_SOCK_CODgram");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/SOCK_Connector.cpp b/ace/SOCK_Connector.cpp
index dbbe3cb539c..86c09b92f1d 100644
--- a/ace/SOCK_Connector.cpp
+++ b/ace/SOCK_Connector.cpp
@@ -1,3 +1,4 @@
+// SOCK_Connector.cpp
// $Id$
#include "ace/SOCK_Connector.h"
@@ -17,8 +18,6 @@
ACE_RCSID(ace, SOCK_Connector, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Connector)
void
@@ -326,5 +325,3 @@ ACE_SOCK_Connector::ACE_SOCK_Connector (ACE_SOCK_Stream &new_stream,
ACE_LIB_TEXT ("ACE_SOCK_Connector::ACE_SOCK_Connector")));
}
#endif // ACE_HAS_WINCE
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Connector.h b/ace/SOCK_Connector.h
index a829634f6fc..c3395fd3c82 100644
--- a/ace/SOCK_Connector.h
+++ b/ace/SOCK_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_QoS_Params;
class ACE_Time_Value;
@@ -319,8 +317,6 @@ protected:
int result);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_Connector.inl b/ace/SOCK_Connector.inl
index bdbf5cd19f6..423ffcd942e 100644
--- a/ace/SOCK_Connector.inl
+++ b/ace/SOCK_Connector.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// SOCK_Connector.i
// This constructor is used by a client when it wants to connect to
// the specified REMOTE_SAP address using a blocking open.
@@ -34,5 +33,3 @@ ACE_SOCK_Connector::reset_new_handle (ACE_HANDLE handle)
return 0;
#endif /* ACE_WIN32 */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Dgram.cpp b/ace/SOCK_Dgram.cpp
index 5c4a04c5397..64c4bd35b27 100644
--- a/ace/SOCK_Dgram.cpp
+++ b/ace/SOCK_Dgram.cpp
@@ -28,8 +28,6 @@ ACE_RCSID (ace,
#define IMR_MULTIADDR imr_multiaddr
#endif /* ! defined (IMR_MULTIADDR) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_SOCK_Dgram)
void
@@ -86,11 +84,10 @@ ACE_SOCK_Dgram::recv (iovec *io_vec,
sockaddr *saddr = (sockaddr *) addr.get_addr ();
int addr_len = addr.get_size ();
- int inlen;
+ u_long inlen;
if (ACE_OS::ioctl (this->get_handle (),
- FIONREAD,
- &inlen) == -1)
+ FIONREAD, (u_long *) &inlen) == -1)
return -1;
else if (inlen > 0)
{
@@ -620,7 +617,7 @@ ACE_SOCK_Dgram::make_multicast_ifaddr (ip_mreq *ret_mreq,
// Look up the interface by number, not name.
if_address.ifr_ifno = ACE_OS::atoi (net_if);
#else
- ACE_OS::strcpy (if_address.ifr_name, ACE_TEXT_ALWAYS_CHAR (net_if));
+ ACE_OS::string_copy (if_address.ifr_name, net_if, sizeof(if_address.ifr_name));
#endif /* defined (ACE_PSOS) */
if (ACE_OS::ioctl (this->get_handle (),
@@ -663,7 +660,7 @@ ACE_SOCK_Dgram::make_multicast_ifaddr6 (ipv6_mreq *ret_mreq,
#if defined(__linux__)
if (net_if != 0)
{
- lmreq.ipv6mr_interface = ACE_OS::if_nametoindex (ACE_TEXT_ALWAYS_CHAR(net_if));
+ lmreq.ipv6mr_interface = ACE_OS::if_nametoindex (ACE_TEXT_TO_CHAR_IN(net_if));
}
else
#elif defined (ACE_WIN32)
@@ -707,10 +704,11 @@ ACE_SOCK_Dgram::make_multicast_ifaddr6 (ipv6_mreq *ret_mreq,
{
if ((num_if && pAddrs->Ipv6IfIndex == static_cast<unsigned int>(if_ix))
|| (!num_if &&
- (ACE_OS::strcmp (ACE_TEXT_ALWAYS_CHAR (net_if),
- pAddrs->AdapterName) == 0
- || ACE_OS::strcmp (ACE_TEXT_ALWAYS_CHAR (net_if),
- ACE_Wide_To_Ascii (pAddrs->FriendlyName).char_rep()) == 0)))
+ // Do we need these conversions?
+ (ACE_OS::strcmp (ACE_TEXT_TO_CHAR_IN (net_if),
+ ACE_TEXT_TO_CHAR_IN (pAddrs->AdapterName)) == 0
+ || ACE_OS::strcmp (ACE_TEXT_TO_CHAR_IN (net_if),
+ ACE_TEXT_TO_CHAR_IN (pAddrs->FriendlyName)) == 0)))
{
lmreq.ipv6mr_interface = pAddrs->Ipv6IfIndex;
break;
@@ -737,5 +735,3 @@ ACE_SOCK_Dgram::make_multicast_ifaddr6 (ipv6_mreq *ret_mreq,
return 0;
}
#endif /* __linux__ && ACE_HAS_IPV6 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Dgram.h b/ace/SOCK_Dgram.h
index c78b731db40..f07b77c85bb 100644
--- a/ace/SOCK_Dgram.h
+++ b/ace/SOCK_Dgram.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "ace/Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -229,8 +227,6 @@ private:
int get_remote_addr (ACE_Addr &) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_Dgram.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_Dgram.inl b/ace/SOCK_Dgram.inl
index 55343b13668..8e7cd56aa69 100644
--- a/ace/SOCK_Dgram.inl
+++ b/ace/SOCK_Dgram.inl
@@ -1,13 +1,10 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// SOCK_Dgram.i
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Here's the simple-minded constructor.
ACE_INLINE
@@ -26,18 +23,18 @@ ACE_SOCK_Dgram::~ACE_SOCK_Dgram (void)
ACE_INLINE ssize_t
ACE_SOCK_Dgram::send (const void *buf,
- size_t n,
- const ACE_Addr &addr,
- int flags) const
+ size_t n,
+ const ACE_Addr &addr,
+ int flags) const
{
ACE_TRACE ("ACE_SOCK_Dgram::send");
sockaddr *saddr = (sockaddr *) addr.get_addr ();
int len = addr.get_size ();
return ACE_OS::sendto (this->get_handle (),
- (const char *) buf,
+ (const char *) buf,
n,
flags,
- (struct sockaddr *) saddr,
+ (struct sockaddr *) saddr,
len);
}
@@ -45,19 +42,19 @@ ACE_SOCK_Dgram::send (const void *buf,
ACE_INLINE ssize_t
ACE_SOCK_Dgram::recv (void *buf,
- size_t n,
- ACE_Addr &addr,
- int flags) const
+ size_t n,
+ ACE_Addr &addr,
+ int flags) const
{
ACE_TRACE ("ACE_SOCK_Dgram::recv");
sockaddr *saddr = (sockaddr *) addr.get_addr ();
int addr_len = addr.get_size ();
ssize_t status = ACE_OS::recvfrom (this->get_handle (),
- (char *) buf,
+ (char *) buf,
n,
flags,
- (sockaddr *) saddr,
+ (sockaddr *) saddr,
&addr_len);
addr.set_size (addr_len);
addr.set_type (reinterpret_cast<sockaddr_in *> (saddr)->sin_family);
@@ -81,7 +78,7 @@ ACE_SOCK_Dgram::send (const iovec buffers[],
buffer_count,
number_of_bytes_sent,
flags,
- (const sockaddr *) saddr,
+ (const sockaddr *) saddr,
len,
overlapped,
func);
@@ -101,11 +98,11 @@ ACE_SOCK_Dgram::recv (iovec buffers[],
int addr_len = addr.get_size ();
ssize_t status = ACE_OS::recvfrom (this->get_handle (),
- buffers,
+ buffers,
buffer_count,
number_of_bytes_recvd,
flags,
- (sockaddr *) saddr,
+ (sockaddr *) saddr,
&addr_len,
overlapped,
func);
@@ -118,9 +115,9 @@ ACE_SOCK_Dgram::recv (iovec buffers[],
ACE_INLINE ssize_t
ACE_SOCK_Dgram::send (const void *buf,
- size_t n,
- const ACE_Addr &addr,
- int flags,
+ size_t n,
+ const ACE_Addr &addr,
+ int flags,
ACE_OVERLAPPED *overlapped,
ACE_OVERLAPPED_COMPLETION_FUNC func) const
{
@@ -143,9 +140,9 @@ ACE_SOCK_Dgram::send (const void *buf,
ACE_INLINE ssize_t
ACE_SOCK_Dgram::recv (void *buf,
- size_t n,
- ACE_Addr &addr,
- int flags,
+ size_t n,
+ ACE_Addr &addr,
+ int flags,
ACE_OVERLAPPED *overlapped,
ACE_OVERLAPPED_COMPLETION_FUNC func) const
{
@@ -163,5 +160,3 @@ ACE_SOCK_Dgram::recv (void *buf,
overlapped,
func);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Dgram_Bcast.cpp b/ace/SOCK_Dgram_Bcast.cpp
index 4138d067c37..8dbac334cc5 100644
--- a/ace/SOCK_Dgram_Bcast.cpp
+++ b/ace/SOCK_Dgram_Bcast.cpp
@@ -15,8 +15,6 @@
ACE_RCSID(ace, SOCK_Dgram_Bcast, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Dgram_Bcast)
ACE_Bcast_Node::ACE_Bcast_Node (ACE_INET_Addr &addr,
@@ -146,7 +144,7 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
// Get host ip address
if (host_name)
{
- hostent *hp = ACE_OS::gethostbyname (ACE_TEXT_ALWAYS_CHAR (host_name));
+ hostent *hp = ACE_OS::gethostbyname (ACE_TEXT_TO_CHAR_IN (host_name));
if (hp == 0)
return -1;
@@ -174,7 +172,7 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
There are addresses longer than sizeof (struct sockaddr) eg. IPv6
or QNX::links. In this case address does not fit into struct ifreq.
The code below could be applied everywhere, but not every system
- provides sockaddr.sa_len field.
+ provides sockaddr.sa_len field.
*/
for (int nbytes = ifc.ifc_len; nbytes >= (int) sizeof (struct ifreq) &&
((ifr->ifr_addr.sa_len > sizeof (struct sockaddr)) ?
@@ -227,8 +225,8 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
(char *) &flags) == -1)
{
ACE_ERROR ((LM_ERROR, "%p [%s]\n",
- "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get interface flags)",
- flags.ifr_name));
+ "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get interface flags)",
+ flags.ifr_name));
continue;
}
@@ -236,8 +234,8 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
IFF_UP) == 0)
{
ACE_ERROR ((LM_ERROR, "%p [%s]\n",
- "ACE_SOCK_Dgram_Bcast::mk_broadcast: Network interface is not up",
- flags.ifr_name));
+ "ACE_SOCK_Dgram_Bcast::mk_broadcast: Network interface is not up",
+ flags.ifr_name));
continue;
}
@@ -252,8 +250,8 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name)
SIOCGIFBRDADDR,
(char *) &if_req) == -1)
ACE_ERROR ((LM_ERROR, "%p [%s]\n",
- "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get broadaddr)",
- flags.ifr_name));
+ "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get broadaddr)",
+ flags.ifr_name));
else
{
ACE_INET_Addr addr (reinterpret_cast <sockaddr_in *>
@@ -376,5 +374,3 @@ ACE_SOCK_Dgram_Bcast::send (const iovec iov[],
return ACE_SOCK_Dgram::send (iov, n, addr, flags);
}
#endif /* ACE_HAS_MSG */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Dgram_Bcast.h b/ace/SOCK_Dgram_Bcast.h
index de0c80cb9e9..c9a7662ffb7 100644
--- a/ace/SOCK_Dgram_Bcast.h
+++ b/ace/SOCK_Dgram_Bcast.h
@@ -15,7 +15,12 @@
#define ACE_SOCK_DGRAM_BCAST_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -24,14 +29,12 @@
#include "ace/SOCK_Dgram.h"
#include "ace/INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Bcast_Node
*
* @brief Linked list of broadcast interfaces.
*/
-class ACE_Export ACE_Bcast_Node
+class ACE_Sockets_Export ACE_Bcast_Node
{
public:
/// Default constructor.
@@ -54,7 +57,7 @@ public:
* @brief Defines the member functions for the ACE_SOCK datagram
* abstraction.
*/
-class ACE_Export ACE_SOCK_Dgram_Bcast : public ACE_SOCK_Dgram
+class ACE_Sockets_Export ACE_SOCK_Dgram_Bcast : public ACE_SOCK_Dgram
{
public:
// = Initialization and termination methods.
@@ -130,8 +133,6 @@ private:
int get_remote_addr (ACE_Addr &) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_Dgram_Bcast.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_Dgram_Bcast.inl b/ace/SOCK_Dgram_Bcast.inl
index 00bb342be5e..85c3312ef9d 100644
--- a/ace/SOCK_Dgram_Bcast.inl
+++ b/ace/SOCK_Dgram_Bcast.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Bcast_Node::~ACE_Bcast_Node (void)
{
@@ -22,16 +19,16 @@ ACE_SOCK_Dgram_Bcast::~ACE_SOCK_Dgram_Bcast (void)
ACE_INLINE ssize_t
ACE_SOCK_Dgram_Bcast::send (const void *buf,
- size_t n,
- const ACE_Addr &addr,
- int flags) const
+ size_t n,
+ const ACE_Addr &addr,
+ int flags) const
{
ACE_TRACE ("ACE_SOCK_Dgram_Bcast::send");
sockaddr *saddr = (sockaddr *) addr.get_addr ();
int len = addr.get_size ();
return ACE_OS::sendto (this->get_handle (), (const char *) buf, n, flags,
- (struct sockaddr *) saddr, len);
+ (struct sockaddr *) saddr, len);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/SOCK_Dgram_Mcast.cpp b/ace/SOCK_Dgram_Mcast.cpp
index 5f325a7e519..b11c5fd0ac7 100644
--- a/ace/SOCK_Dgram_Mcast.cpp
+++ b/ace/SOCK_Dgram_Mcast.cpp
@@ -32,8 +32,6 @@ ACE_RCSID (ace,
#define IMR_MULTIADDR imr_multiaddr
#endif /* ! defined (IMR_MULTIADDR) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Helper (inline) functions.
class ACE_SDM_helpers
{
@@ -49,8 +47,9 @@ public:
ACE_OS::strcpy (ret_string, ACE_LIB_TEXT ("<?>"));
else
{
- ACE_TCHAR *pc = ACE_OS::strrchr (ret_string, ACE_LIB_TEXT (':'));
- if (clip_portnum && pc)
+ ACE_TCHAR *pc;
+ if (clip_portnum
+ && (pc = ACE_OS::strrchr (ret_string, ACE_LIB_TEXT (':'))))
*pc = ACE_LIB_TEXT ('\0'); // clip port# info.
}
}
@@ -273,7 +272,7 @@ ACE_SOCK_Dgram_Mcast::subscribe_ifs (const ACE_INET_Addr &mcast_addr,
while (intf[index].if_index != 0 || intf[index].if_name != 0)
{
if (this->join (mcast_addr, reuse_addr,
- ACE_TEXT_CHAR_TO_TCHAR(intf[index].if_name)) == 0)
+ ACE_TEXT_TO_TCHAR_IN(intf[index].if_name)) == 0)
++nr_subscribed;
++index;
@@ -314,7 +313,7 @@ ACE_SOCK_Dgram_Mcast::subscribe_ifs (const ACE_INET_Addr &mcast_addr,
while (pAddrs)
{
if (this->join (mcast_addr, reuse_addr,
- ACE_TEXT_CHAR_TO_TCHAR(pAddrs->AdapterName)) == 0)
+ ACE_TEXT_TO_TCHAR_IN(pAddrs->AdapterName)) == 0)
++nr_subscribed;
pAddrs = pAddrs->Next;
@@ -365,8 +364,7 @@ ACE_SOCK_Dgram_Mcast::subscribe_ifs (const ACE_INET_Addr &mcast_addr,
continue;
if (this->subscribe (mcast_addr,
reuse_addr,
- ACE_TEXT_CHAR_TO_TCHAR
- (if_addrs[if_cnt].get_host_addr ())) == 0)
+ ACE_TEXT_TO_TCHAR_IN(if_addrs[if_cnt].get_host_addr ())) == 0)
++nr_subscribed;
}
}
@@ -416,8 +414,7 @@ ACE_SOCK_Dgram_Mcast::subscribe_ifs (const ACE_INET_Addr &mcast_addr,
continue;
if (this->subscribe (mcast_addr,
reuse_addr,
- ACE_TEXT_CHAR_TO_TCHAR
- (if_addrs[if_cnt].get_host_addr ())) == 0)
+ ACE_TEXT_TO_TCHAR_IN (if_addrs[if_cnt].get_host_addr ())) == 0)
++nr_subscribed;
}
}
@@ -657,7 +654,7 @@ ACE_SOCK_Dgram_Mcast::unsubscribe_ifs (const ACE_INET_Addr &mcast_addr,
int index = 0;
while (intf[index].if_index != 0 || intf[index].if_name != 0)
{
- if (this->leave (mcast_addr, ACE_TEXT_CHAR_TO_TCHAR(intf[index].if_name)) == 0)
+ if (this->leave (mcast_addr, ACE_TEXT_TO_TCHAR_IN(intf[index].if_name)) == 0)
++nr_unsubscribed;
++index;
@@ -697,7 +694,7 @@ ACE_SOCK_Dgram_Mcast::unsubscribe_ifs (const ACE_INET_Addr &mcast_addr,
while (pAddrs)
{
- if (this->leave (mcast_addr, ACE_TEXT_CHAR_TO_TCHAR(pAddrs->AdapterName)) == 0)
+ if (this->leave (mcast_addr, ACE_TEXT_TO_TCHAR_IN(pAddrs->AdapterName)) == 0)
++nr_unsubscribed;
pAddrs = pAddrs->Next;
@@ -750,8 +747,7 @@ ACE_SOCK_Dgram_Mcast::unsubscribe_ifs (const ACE_INET_Addr &mcast_addr,
if (if_addrs[if_cnt].get_type () != AF_INET || if_addrs[if_cnt].is_loopback ())
continue;
if (this->leave (mcast_addr,
- ACE_TEXT_CHAR_TO_TCHAR
- (if_addrs[if_cnt].get_host_addr ())) == 0)
+ ACE_TEXT_TO_TCHAR_IN (if_addrs[if_cnt].get_host_addr ())) == 0)
++nr_unsubscribed;
}
}
@@ -799,8 +795,7 @@ ACE_SOCK_Dgram_Mcast::unsubscribe_ifs (const ACE_INET_Addr &mcast_addr,
if (if_addrs[if_cnt].is_loopback ())
continue;
if (this->leave (mcast_addr,
- ACE_TEXT_CHAR_TO_TCHAR
- (if_addrs[if_cnt].get_host_addr ())) == 0)
+ ACE_TEXT_TO_TCHAR_IN (if_addrs[if_cnt].get_host_addr ())) == 0)
++nr_unsubscribed;
}
}
@@ -989,5 +984,3 @@ ACE_SOCK_Dgram_Mcast::clear_subs_list (void)
#endif /* ACE_SOCK_DGRAM_MCAST_DUMPABLE */
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Dgram_Mcast.h b/ace/SOCK_Dgram_Mcast.h
index 1c4437a9226..bfd47c52f36 100644
--- a/ace/SOCK_Dgram_Mcast.h
+++ b/ace/SOCK_Dgram_Mcast.h
@@ -19,7 +19,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -37,8 +42,6 @@
# endif /* ACE_SDM_LOCK */
#endif /* ACE_SOCK_DGRAM_MCAST_DUMPABLE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SOCK_Dgram_Mcast
*
@@ -91,7 +94,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* alphanumeric form and <subscribe> will convert them into numbers via
* <ACE_OS::atoi>.
*/
-class ACE_Export ACE_SOCK_Dgram_Mcast : public ACE_SOCK_Dgram
+class ACE_Sockets_Export ACE_SOCK_Dgram_Mcast : public ACE_SOCK_Dgram
{
public:
@@ -100,7 +103,7 @@ public:
*
* These control per-instance optional functionality. They are set via
* optional constructor arguments.
- * @note Certain option values are not valid for all environments (see
+ * Note: Certain option values are not valid for all environments (see
* comments in source file for environment-specific restrictions). Default
* values are always valid values for the compilation environment.
*/
@@ -407,8 +410,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_Dgram_Mcast.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_Dgram_Mcast.inl b/ace/SOCK_Dgram_Mcast.inl
index bf3574cfd54..3244f21b078 100644
--- a/ace/SOCK_Dgram_Mcast.inl
+++ b/ace/SOCK_Dgram_Mcast.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_SOCK_Dgram_Mcast::set_option (int option,
char optval)
@@ -48,5 +45,3 @@ ACE_SOCK_Dgram_Mcast::send (const iovec iov[],
this->send_addr_,
flags);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_IO.cpp b/ace/SOCK_IO.cpp
index b3a1d5de90b..844a70ef877 100644
--- a/ace/SOCK_IO.cpp
+++ b/ace/SOCK_IO.cpp
@@ -1,3 +1,4 @@
+// SOCK_IO.cpp
// $Id$
#include "ace/SOCK_IO.h"
@@ -6,7 +7,6 @@
#include "ace/OS_NS_sys_select.h"
#include "ace/OS_NS_sys_socket.h"
#include "ace/OS_Memory.h"
-#include "ace/Truncate.h"
#if !defined (__ACE_INLINE__)
#include "ace/SOCK_IO.inl"
@@ -14,8 +14,6 @@
ACE_RCSID(ace, SOCK_IO, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_IO)
void
@@ -69,26 +67,20 @@ ACE_SOCK_IO::recvv (iovec *io_vec,
break;
}
- int inlen = 0;
+ u_long inlen;
if (ACE_OS::ioctl (this->get_handle (),
FIONREAD,
- &inlen) == -1)
+ (u_long *) &inlen) == -1)
return -1;
else if (inlen > 0)
{
ACE_NEW_RETURN (io_vec->iov_base,
char[inlen],
-1);
- // It's ok to blindly cast this value since 'inlen' is an int and, thus,
- // we can't get more than that back. Besides, if the recv() fails, we
- // don't want that value cast to unsigned and returned.
- ssize_t recv_len = this->recv (io_vec->iov_base, inlen);
- if (recv_len > 0)
- // u_long is the Windows type; size_t is everyone else's. A u_long
- // should go into a size_t anywhere without an issue.
- io_vec->iov_len = static_cast<u_long> (recv_len);
- return recv_len;
+ io_vec->iov_len = this->recv (io_vec->iov_base,
+ inlen);
+ return io_vec->iov_len;
}
else
return 0;
@@ -110,8 +102,8 @@ ACE_SOCK_IO::send (size_t n, ...) const
ACE_TRACE ("ACE_SOCK_IO::send");
va_list argp;
- int total_tuples = ACE_Utils::Truncate<size_t> (n / 2);
- iovec *iovp = 0;
+ int total_tuples = static_cast<int> (n) / 2;
+ iovec *iovp;
#if defined (ACE_HAS_ALLOCA)
iovp = (iovec *) alloca (total_tuples * sizeof (iovec));
#else
@@ -150,7 +142,7 @@ ACE_SOCK_IO::recv (size_t n, ...) const
ACE_TRACE ("ACE_SOCK_IO::recv");
va_list argp;
- int total_tuples = ACE_Utils::Truncate<size_t> (n / 2);
+ int total_tuples = static_cast<int> (n / 2);
iovec *iovp;
#if defined (ACE_HAS_ALLOCA)
iovp = (iovec *) alloca (total_tuples * sizeof (iovec));
@@ -177,5 +169,3 @@ ACE_SOCK_IO::recv (size_t n, ...) const
va_end (argp);
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_IO.h b/ace/SOCK_IO.h
index 746a414f6a2..650095ebf39 100644
--- a/ace/SOCK_IO.h
+++ b/ace/SOCK_IO.h
@@ -23,8 +23,6 @@
#include "ace/ACE.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SOCK_IO
*
@@ -70,12 +68,6 @@ public:
const ACE_Time_Value *timeout = 0) const;
/// Recv an <iovec> of size <n> from the connected socket.
- /**
- * @note The value of @a n will be silently reduced to the maximum
- * value an @c int can hold if needed. This is due to the underlying
- * system calls on many OSes limiting the number of @c iovec structures
- * that can be passed in one call.
- */
ssize_t recvv (iovec iov[],
size_t n,
const ACE_Time_Value *timeout = 0) const;
@@ -121,12 +113,6 @@ public:
const ACE_Time_Value *timeout = 0) const;
/// Send an <iovec> of size <n> to the connected socket.
- /**
- * @note The value of @a n will be silently reduced to the maximum
- * value an @c int can hold if needed. This is due to the underlying
- * system calls on many OSes limiting the number of @c iovec structures
- * that can be passed in one call.
- */
ssize_t sendv (const iovec iov[],
size_t n,
const ACE_Time_Value *timeout = 0) const;
@@ -152,8 +138,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_IO.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_IO.inl b/ace/SOCK_IO.inl
index f1aec4af3b8..96950c2cd99 100644
--- a/ace/SOCK_IO.inl
+++ b/ace/SOCK_IO.inl
@@ -1,11 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_unistd.h"
-#include "ace/Truncate.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Send an n byte message to the connected socket.
@@ -55,7 +51,7 @@ ACE_SOCK_IO::recvv (iovec iov[],
ACE_TRACE ("ACE_SOCK_IO::recvv");
return ACE::recvv (this->get_handle (),
iov,
- ACE_Utils::Truncate<size_t> (n),
+ n,
timeout);
}
@@ -66,7 +62,7 @@ ACE_SOCK_IO::recv (iovec iov[],
{
ACE_TRACE ("ACE_SOCK_IO::recv");
return this->recvv (iov,
- n,
+ static_cast<int> (n),
timeout);
}
@@ -125,7 +121,7 @@ ACE_SOCK_IO::sendv (const iovec iov[],
ACE_TRACE ("ACE_SOCK_IO::sendv");
return ACE::sendv (this->get_handle (),
iov,
- ACE_Utils::Truncate<size_t> (n),
+ n,
timeout);
}
@@ -147,9 +143,7 @@ ACE_SOCK_IO::send (const void *buf,
{
ACE_TRACE ("ACE_SOCK_IO::send");
return ACE_OS::write (this->get_handle (),
- buf,
+ (const char *) buf,
n,
overlapped);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_SEQPACK_Acceptor.cpp b/ace/SOCK_SEQPACK_Acceptor.cpp
index 69d832c41d0..7ec5fadbbde 100644
--- a/ace/SOCK_SEQPACK_Acceptor.cpp
+++ b/ace/SOCK_SEQPACK_Acceptor.cpp
@@ -15,8 +15,6 @@
ACE_RCSID(ace, SOCK_SEQPACK_Acceptor, "SOCK_SEQPACK_Acceptor.cpp,v 4.30 2002/03/08 23:18:09 spark Exp")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_SEQPACK_Acceptor)
// Do nothing routine for constructor.
@@ -593,4 +591,3 @@ ACE_SOCK_SEQPACK_Acceptor::close (void)
return ACE_SOCK::close ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_SEQPACK_Acceptor.h b/ace/SOCK_SEQPACK_Acceptor.h
index 10d626e03d8..ae04541b404 100644
--- a/ace/SOCK_SEQPACK_Acceptor.h
+++ b/ace/SOCK_SEQPACK_Acceptor.h
@@ -18,16 +18,20 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
+
+#include "ace/SOCK_SEQPACK_Association.h"
+#include "ace/Multihomed_INET_Addr.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/SOCK_SEQPACK_Association.h"
-#include "ace/Multihomed_INET_Addr.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
@@ -42,7 +46,7 @@ class ACE_Time_Value;
* Therefore, by inheriting from <ACE_SOCK>, <ACE_SOCK_SEQPACK_Acceptor>
* gets its very own socket.
*/
-class ACE_Export ACE_SOCK_SEQPACK_Acceptor : public ACE_SOCK
+class ACE_Sockets_Export ACE_SOCK_SEQPACK_Acceptor : public ACE_SOCK
{
public:
// = Initialization and termination methods.
@@ -179,8 +183,6 @@ private:
int get_remote_addr (ACE_Addr &) const;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_SEQPACK_Acceptor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_SEQPACK_Acceptor.inl b/ace/SOCK_SEQPACK_Acceptor.inl
index 0a0b591d75f..39c1700b53c 100644
--- a/ace/SOCK_SEQPACK_Acceptor.inl
+++ b/ace/SOCK_SEQPACK_Acceptor.inl
@@ -1,13 +1,10 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_SOCK_SEQPACK_Acceptor::~ACE_SOCK_SEQPACK_Acceptor (void)
{
ACE_TRACE ("ACE_SOCK_SEQPACK_Acceptor::~ACE_SOCK_SEQPACK_Acceptor");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+
diff --git a/ace/SOCK_SEQPACK_Association.cpp b/ace/SOCK_SEQPACK_Association.cpp
index 820bd0fb78f..45eed58d1a4 100644
--- a/ace/SOCK_SEQPACK_Association.cpp
+++ b/ace/SOCK_SEQPACK_Association.cpp
@@ -13,8 +13,6 @@
ACE_RCSID(ace, SOCK_SEQPACK_Association, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_SEQPACK_Association)
void
@@ -343,5 +341,3 @@ template class ACE_Auto_Basic_Array_Ptr<sockaddr_in>;
#pragma instantiate ACE_Auto_Array_Ptr<sockaddr_in>
#pragma instantiate ACE_Auto_Basic_Array_Ptr<sockaddr_in>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_SEQPACK_Association.h b/ace/SOCK_SEQPACK_Association.h
index 600744bdb5b..c2b25065827 100644
--- a/ace/SOCK_SEQPACK_Association.h
+++ b/ace/SOCK_SEQPACK_Association.h
@@ -20,17 +20,21 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
+
+#include "ace/SOCK_IO.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/SOCK_IO.h"
#include "ace/Multihomed_INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_Message_Block;
@@ -75,14 +79,14 @@ class ACE_Message_Block;
* will result in <send> getting called on Win32 platforms, and
* <write> getting called on non-Win32 platforms.
*/
-class ACE_Export ACE_SOCK_SEQPACK_Association : public ACE_SOCK_IO
+class ACE_Sockets_Export ACE_SOCK_SEQPACK_Association : public ACE_SOCK_IO
{
public:
// Initialization and termination methods.
/// Constructor.
ACE_SOCK_SEQPACK_Association (void);
- /// Constructor (sets the underlying ACE_HANDLE with <h>).
+ /// Constructor (sets the underlying <ACE_HANDLE> with <h>).
ACE_SOCK_SEQPACK_Association (ACE_HANDLE h);
/// Destructor.
@@ -191,8 +195,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_SEQPACK_Association.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_SEQPACK_Association.inl b/ace/SOCK_SEQPACK_Association.inl
index a156a946257..3c33c96968e 100644
--- a/ace/SOCK_SEQPACK_Association.inl
+++ b/ace/SOCK_SEQPACK_Association.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/SOCK_SEQPACK_Association.h"
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_SOCK_SEQPACK_Association::ACE_SOCK_SEQPACK_Association (void)
{
@@ -173,5 +170,3 @@ ACE_SOCK_SEQPACK_Association::recv_urg (void *ptr,
MSG_OOB,
timeout);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_SEQPACK_Connector.cpp b/ace/SOCK_SEQPACK_Connector.cpp
index 128beb23f22..b7cb5471755 100644
--- a/ace/SOCK_SEQPACK_Connector.cpp
+++ b/ace/SOCK_SEQPACK_Connector.cpp
@@ -20,8 +20,6 @@
ACE_RCSID(ace, SOCK_SEQPACK_Connector, "SOCK_SEQPACK_Connector.cpp,v 4.35 2002/03/08 23:18:09 spark Exp")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_SEQPACK_Connector)
void
@@ -168,14 +166,14 @@ ACE_SOCK_SEQPACK_Connector::shared_connect_start (ACE_SOCK_SEQPACK_Association &
// get sockaddr_in for the local handle
if (ACE_OS::getsockname(new_association.get_handle (),
reinterpret_cast<sockaddr *> (&portst),
- &sn))
+ &sn))
{
ACE_Errno_Guard error (errno);
- new_association.close ();
+ new_association.close ();
return -1;
}
- // set the local port # assigned by the os to every secondary addr
+ // set the local port # assigned by the os to every secondary addr
for (size_t i = 1; i < num_addresses; i++)
{
local_inet_addrs[i].sin_port = portst.sin_port;
@@ -200,7 +198,7 @@ ACE_SOCK_SEQPACK_Connector::shared_connect_start (ACE_SOCK_SEQPACK_Association &
return -1;
}
- delete [] local_sockaddr;
+ delete [] local_sockaddr;
}
#else
@@ -439,5 +437,3 @@ ACE_SOCK_SEQPACK_Connector::ACE_SOCK_SEQPACK_Connector (ACE_SOCK_SEQPACK_Associa
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_SOCK_SEQPACK_Connector::ACE_SOCK_SEQPACK_Connector")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_SEQPACK_Connector.h b/ace/SOCK_SEQPACK_Connector.h
index 7a567c47ec0..3c913d3ff82 100644
--- a/ace/SOCK_SEQPACK_Connector.h
+++ b/ace/SOCK_SEQPACK_Connector.h
@@ -9,7 +9,7 @@
* @author Patrick J. Lardieri <plardier@atl.lmco.com>
* @author Gaurav Naik, Lockheed Martin ATL
* @author based on SOCK_STREAM_Connector
- * by Douglas C. Schmidt <schmidt@dre.vanderbilt.edu>
+ * by Douglas C. Schmidt <schmidt@cs.wustl.edu>
*
*/
//=============================================================================
@@ -19,7 +19,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
#include "ace/SOCK_SEQPACK_Association.h"
#include "ace/Multihomed_INET_Addr.h"
@@ -28,8 +33,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_Time_Value;
@@ -48,7 +51,7 @@ class ACE_Time_Value;
* this is that @c ACE_SOCK_SEQPACK_Connector objects do not store state so
* they can be used reentrantly in multithreaded programs.
*/
-class ACE_Export ACE_SOCK_SEQPACK_Connector
+class ACE_Sockets_Export ACE_SOCK_SEQPACK_Connector
{
public:
// = Initialization and termination methods.
@@ -320,8 +323,6 @@ protected:
int result);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_SEQPACK_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_SEQPACK_Connector.inl b/ace/SOCK_SEQPACK_Connector.inl
index a89c41f4069..6450abb6ce9 100644
--- a/ace/SOCK_SEQPACK_Connector.inl
+++ b/ace/SOCK_SEQPACK_Connector.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// This constructor is used by a client when it wants to connect to
// the specified REMOTE_SAP address using a blocking open.
@@ -34,5 +31,3 @@ ACE_SOCK_SEQPACK_Connector::reset_new_handle (ACE_HANDLE handle)
return 0;
#endif /* ACE_WIN32 */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Stream.cpp b/ace/SOCK_Stream.cpp
index 2254f553413..ea794662356 100644
--- a/ace/SOCK_Stream.cpp
+++ b/ace/SOCK_Stream.cpp
@@ -1,3 +1,4 @@
+// SOCK_Stream.cpp
// $Id$
#include "ace/SOCK_Stream.h"
@@ -8,8 +9,6 @@
ACE_RCSID(ace, SOCK_Stream, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Stream)
void
@@ -27,4 +26,3 @@ ACE_SOCK_Stream::close (void)
return ACE_SOCK::close ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SOCK_Stream.h b/ace/SOCK_Stream.h
index 9537162a4d3..5cf0fadb8e8 100644
--- a/ace/SOCK_Stream.h
+++ b/ace/SOCK_Stream.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,8 +22,6 @@
#include "ace/INET_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_Message_Block;
@@ -81,22 +79,8 @@ public:
/// Destructor.
~ACE_SOCK_Stream (void);
- /** @name Counted send/receive methods
- *
- * The counted send/receive methods attempt to send a specified number of
- * bytes even if they must block and retry the operation in order to
- * transfer the entire amount. The time spent blocking for the entire
- * transfer can be limited by a specified ACE_Time_Value object which is
- * a relative time (i.e., a fixed amount of time, not an absolute time
- * of day). These methods return the count of transferred bytes, or -1
- * if an error occurs or the operation times out. In error or timeout
- * situations it's possible that some data was transferred before the error
- * or timeout. The @c bytes_transferred parameter is used to obtain the
- * count of bytes transferred before the error or timeout occurred. If the
- * total specified number of bytes is transferred without error, the
- * method return value should equal the value of @c bytes_transferred.
- */
- //@{
+ // = I/O functions.
+
/// Try to recv exactly @a len bytes into @a buf from the connected socket.
ssize_t recv_n (void *buf,
size_t len,
@@ -142,8 +126,6 @@ public:
const ACE_Time_Value *timeout = 0,
size_t *bytes_transferred = 0) const;
- //@}
-
// = Send/receive ``urgent'' data (see TCP specs...).
ssize_t send_urg (const void *ptr,
size_t len = sizeof (char),
@@ -177,8 +159,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SOCK_Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SOCK_Stream.inl b/ace/SOCK_Stream.inl
index ed5e8b231b8..5ba88bc55c5 100644
--- a/ace/SOCK_Stream.inl
+++ b/ace/SOCK_Stream.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/SOCK_Stream.h"
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_SOCK_Stream::ACE_SOCK_Stream (void)
{
@@ -173,5 +170,3 @@ ACE_SOCK_Stream::recv_urg (void *ptr,
MSG_OOB,
timeout);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE.cpp b/ace/SPIPE.cpp
index b6b1300b26d..f69c8b63b33 100644
--- a/ace/SPIPE.cpp
+++ b/ace/SPIPE.cpp
@@ -10,8 +10,6 @@
ACE_RCSID(ace, SPIPE, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SPIPE)
// This is the do-nothing constructor.
@@ -78,5 +76,3 @@ ACE_SPIPE::set_duplex_handle (ACE_HANDLE handle)
this->duplex_pipe_handle_ = handle;
}
#endif /* ACE_HAS_STREAM_PIPES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE.h b/ace/SPIPE.h
index 99bc370b84d..61278aac517 100644
--- a/ace/SPIPE.h
+++ b/ace/SPIPE.h
@@ -23,8 +23,6 @@
#include "ace/SPIPE_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SPIPE
*
@@ -106,8 +104,6 @@ protected:
ACE_SPIPE_Addr local_addr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SPIPE.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SPIPE.inl b/ace/SPIPE.inl
index 45814117a51..2912e4d7493 100644
--- a/ace/SPIPE.inl
+++ b/ace/SPIPE.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_SPIPE::disable (int signum) const
{
@@ -15,4 +12,3 @@ ACE_SPIPE::disable (int signum) const
#endif /* ACE_WIN32 */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Acceptor.cpp b/ace/SPIPE_Acceptor.cpp
index a9303f0897d..84e3d517b2c 100644
--- a/ace/SPIPE_Acceptor.cpp
+++ b/ace/SPIPE_Acceptor.cpp
@@ -1,3 +1,4 @@
+// SPIPE_Acceptor.cpp
// $Id$
#include "ace/SPIPE_Acceptor.h"
@@ -11,8 +12,6 @@
ACE_RCSID(ace, SPIPE_Acceptor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_SPIPE_Acceptor::ACE_SPIPE_Acceptor (void)
#if (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0))
: sa_ (0), pipe_handle_ (ACE_INVALID_HANDLE)
@@ -183,16 +182,9 @@ ACE_SPIPE_Acceptor::close (void)
ACE_TRACE ("ACE_SPIPE_Acceptor::close");
#if (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0))
-
- // Check to see if we have a valid pipe; if not, nothing to do.
- if (this->pipe_handle_ == ACE_INVALID_HANDLE)
- return -1;
-
- // Substitute the pipe handle back in so it's closed properly in the
- // ACE_OS wrapper. But leave the pipe_handle_ value so we can clean up the
- // hanging overlapped operation afterwards.
+ // Substitute the pipe handle back in so it's closed properly.
this->set_handle (this->pipe_handle_);
-
+ this->pipe_handle_ = ACE_INVALID_HANDLE;
#endif /* ACE_WIN32 */
// This behavior is shared by UNIX and Win32...
@@ -201,29 +193,7 @@ ACE_SPIPE_Acceptor::close (void)
#if defined (ACE_HAS_STREAM_PIPES)
ACE_OS::fdetach (this->local_addr_.get_path_name ());
-#elif (defined (ACE_WIN32) && defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0))
-
- // open () started the Connect in asynchronous mode, and accept() restarts
- // the ConnectNamedPipe in overlapped mode. To avoid leaving a hanging
- // overlapped operation that'll write into members of this object,
- // wait for the event in the OVERLAPPED structure to be signalled.
- if (this->already_connected_ == 0)
- {
- if (this->event_.wait () != -1)
- {
- // Should be here with the ConnectNamedPipe operation complete.
- // Steal the already_connected_ flag to record the results.
- DWORD unused;
- ::GetOverlappedResult (this->pipe_handle_,
- &this->overlapped_,
- &unused,
- FALSE);
- }
- this->pipe_handle_ = ACE_INVALID_HANDLE;
- this->already_connected_ = 0;
- }
#endif /* ACE_HAS_STREAM_PIPES */
-
return result;
}
@@ -332,5 +302,3 @@ ACE_SPIPE_Acceptor::accept (ACE_SPIPE_Stream &new_io,
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_STREAM_PIPES */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Acceptor.h b/ace/SPIPE_Acceptor.h
index 6e0bb7ed8aa..0b73d2be05d 100644
--- a/ace/SPIPE_Acceptor.h
+++ b/ace/SPIPE_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "ace/Manual_Event.h"
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SPIPE_Acceptor
*
@@ -43,7 +41,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*
* @warning Works on non-Windows platforms only when @c ACE_HAS_STREAM_PIPES
* is defined.
- *
+ *
*/
class ACE_Export ACE_SPIPE_Acceptor : public ACE_SPIPE
{
@@ -162,7 +160,5 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SPIPE_ACCEPTOR_H */
diff --git a/ace/SPIPE_Addr.cpp b/ace/SPIPE_Addr.cpp
index b4ec63e4fc3..beb73d68b2d 100644
--- a/ace/SPIPE_Addr.cpp
+++ b/ace/SPIPE_Addr.cpp
@@ -1,3 +1,4 @@
+// SPIPE_Addr.cpp
// $Id$
#include "ace/SPIPE_Addr.h"
@@ -11,8 +12,6 @@
ACE_RCSID(ace, SPIPE_Addr, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SPIPE_Addr)
void
@@ -30,8 +29,8 @@ ACE_SPIPE_Addr::set_addr (void *addr, int len)
this->ACE_Addr::base_set (AF_SPIPE, len);
ACE_OS::memcpy ((void *) &this->SPIPE_addr_,
- (void *) addr,
- len);
+ (void *) addr,
+ len);
}
// Return the address.
@@ -50,7 +49,7 @@ ACE_SPIPE_Addr::ACE_SPIPE_Addr (void)
{
(void) ACE_OS::memset ((void *) &this->SPIPE_addr_,
0,
- sizeof this->SPIPE_addr_);
+ sizeof this->SPIPE_addr_);
}
int
@@ -96,8 +95,8 @@ ACE_SPIPE_Addr::ACE_SPIPE_Addr (const ACE_SPIPE_Addr &sa)
int
ACE_SPIPE_Addr::set (const ACE_TCHAR *addr,
- gid_t gid,
- uid_t uid)
+ gid_t gid,
+ uid_t uid)
{
int len = sizeof (this->SPIPE_addr_.uid_);
len += sizeof (this->SPIPE_addr_.gid_);
@@ -157,11 +156,9 @@ ACE_SPIPE_Addr::set (const ACE_TCHAR *addr,
// Create a ACE_Addr from a ACE_SPIPE pathname.
ACE_SPIPE_Addr::ACE_SPIPE_Addr (const ACE_TCHAR *addr,
- gid_t gid,
- uid_t uid)
+ gid_t gid,
+ uid_t uid)
: ACE_Addr (AF_SPIPE, sizeof this->SPIPE_addr_)
{
this->set (addr, gid, uid);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Addr.h b/ace/SPIPE_Addr.h
index e6791a8c656..ffc150b98cd 100644
--- a/ace/SPIPE_Addr.h
+++ b/ace/SPIPE_Addr.h
@@ -1,5 +1,4 @@
// -*- C++ -*-
-
//==========================================================================
/**
* @file SPIPE_Addr.h
@@ -26,8 +25,6 @@
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_dirent.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SPIPE_Addr
*
@@ -112,8 +109,6 @@ private:
// Contents of an SPIPE address.
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SPIPE_Addr.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SPIPE_Addr.inl b/ace/SPIPE_Addr.inl
index ea4c71ef682..1c2858bc399 100644
--- a/ace/SPIPE_Addr.inl
+++ b/ace/SPIPE_Addr.inl
@@ -5,7 +5,6 @@
#include "ace/SString.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Compare two addresses for equality.
@@ -21,7 +20,7 @@ ACE_SPIPE_Addr::operator == (const ACE_SPIPE_Addr &sap) const
ACE_INLINE bool
ACE_SPIPE_Addr::operator != (const ACE_SPIPE_Addr &sap) const
{
- return !((*this) == sap); // This is lazy, of course... ;-)
+ return !((*this) == sap); // This is lazy, of course... ;-)
}
// Return the path name used for the rendezvous point.
@@ -55,5 +54,3 @@ ACE_SPIPE_Addr::group_id (gid_t gid)
{
this->SPIPE_addr_.gid_ = gid;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Connector.cpp b/ace/SPIPE_Connector.cpp
index c7c9a0c10dc..b715aa67690 100644
--- a/ace/SPIPE_Connector.cpp
+++ b/ace/SPIPE_Connector.cpp
@@ -12,8 +12,6 @@
ACE_RCSID(ace, SPIPE_Connector, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SPIPE_Connector)
// Creates a Local ACE_SPIPE.
@@ -158,5 +156,3 @@ ACE_SPIPE_Connector::connect (ACE_SPIPE_Stream &new_io,
return handle == ACE_INVALID_HANDLE ? -1 : 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Connector.h b/ace/SPIPE_Connector.h
index f9fc2455ecc..7648e63b4a4 100644
--- a/ace/SPIPE_Connector.h
+++ b/ace/SPIPE_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SPIPE_Connector
*
@@ -108,8 +106,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SPIPE_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SPIPE_Connector.inl b/ace/SPIPE_Connector.inl
index bbec9b8f468..4ca09d7887e 100644
--- a/ace/SPIPE_Connector.inl
+++ b/ace/SPIPE_Connector.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_SPIPE_Connector::reset_new_handle (ACE_HANDLE handle)
{
@@ -12,4 +9,3 @@ ACE_SPIPE_Connector::reset_new_handle (ACE_HANDLE handle)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Stream.cpp b/ace/SPIPE_Stream.cpp
index fcc695d6271..40d96974ceb 100644
--- a/ace/SPIPE_Stream.cpp
+++ b/ace/SPIPE_Stream.cpp
@@ -1,3 +1,4 @@
+// SPIPE_Stream.cpp
// $Id$
#include "ace/SPIPE_Stream.h"
@@ -9,8 +10,6 @@
ACE_RCSID(ace, SPIPE_Stream, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SPIPE_Stream)
void
@@ -100,5 +99,3 @@ ACE_SPIPE_Stream::recv (size_t n, ...) const
va_end (argp);
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SPIPE_Stream.h b/ace/SPIPE_Stream.h
index 9a94216ae40..5146217c529 100644
--- a/ace/SPIPE_Stream.h
+++ b/ace/SPIPE_Stream.h
@@ -24,8 +24,6 @@
#include "ace/ACE.h"
#include "ace/OS_NS_stropts.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SPIPE_Stream
*
@@ -161,8 +159,6 @@ private:
ACE_SPIPE_Addr remote_addr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SPIPE_Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SPIPE_Stream.inl b/ace/SPIPE_Stream.inl
index dbc3725782c..11b8fef5a9e 100644
--- a/ace/SPIPE_Stream.inl
+++ b/ace/SPIPE_Stream.inl
@@ -1,7 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// SPIPE_Stream.i
+
#include "ace/OS_NS_sys_uio.h"
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_unistd.h"
@@ -9,8 +10,6 @@
#include "ace/OS_NS_sys_socket.h"
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Create an ACE_SPIPE_Stream.
ACE_INLINE int
@@ -273,5 +272,3 @@ ACE_SPIPE_Stream::sendv (const iovec iov[],
n);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
diff --git a/ace/SSL/ACE_SSL.pc.in b/ace/SSL/ACE_SSL.pc.in
index 51c04a18ff1..944adafc5e6 100644
--- a/ace/SSL/ACE_SSL.pc.in
+++ b/ace/SSL/ACE_SSL.pc.in
@@ -7,5 +7,5 @@ Name: ACE_SSL
Description: ACE SSL Library
Requires: ACE
Version: @VERSION@
-Libs: -L${libdir} @ACE_TLS_LDFLAGS@ -lACE_SSL @ACE_TLS_LIBS@
-Cflags: -I${includedir} @ACE_TLS_CPPFLAGS@
+Libs: -L${libdir} -lACE_SSL
+Cflags: -I${includedir}
diff --git a/ace/SSL/SSL_Asynch_BIO.cpp b/ace/SSL/SSL_Asynch_BIO.cpp
index 9d4c75ad930..93dedffa878 100644
--- a/ace/SSL/SSL_Asynch_BIO.cpp
+++ b/ace/SSL/SSL_Asynch_BIO.cpp
@@ -1,57 +1,14 @@
// -*- C++ -*-
+#include "ace/OS_NS_string.h"
#include "SSL_Asynch_BIO.h"
-
-#if OPENSSL_VERSION_NUMBER > 0x0090581fL && ((defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) || (defined (ACE_HAS_AIO_CALLS)))
-
#include "SSL_Asynch_Stream.h"
-#include "ace/OS_NS_string.h"
-
ACE_RCSID (ACE_SSL,
SSL_Asynch_BIO,
"$Id$")
-
-#if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define ACE_ASYNCH_BIO_WRITE_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_Asynch_BIO_write)
-# define ACE_ASYNCH_BIO_READ_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_Asynch_BIO_read)
-# define ACE_ASYNCH_BIO_PUTS_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_Asynch_BIO_puts)
-# define ACE_ASYNCH_BIO_CTRL_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_Asynch_BIO_ctrl)
-# define ACE_ASYNCH_BIO_NEW_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_Asynch_BIO_new)
-# define ACE_ASYNCH_BIO_FREE_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_Asynch_BIO_free)
-#else
-
-# define ACE_ASYNCH_BIO_WRITE_NAME ACE_Asynch_BIO_write
-# define ACE_ASYNCH_BIO_READ_NAME ACE_Asynch_BIO_read
-# define ACE_ASYNCH_BIO_PUTS_NAME ACE_Asynch_BIO_puts
-# define ACE_ASYNCH_BIO_CTRL_NAME ACE_Asynch_BIO_ctrl
-# define ACE_ASYNCH_BIO_NEW_NAME ACE_Asynch_BIO_new
-# define ACE_ASYNCH_BIO_FREE_NAME ACE_Asynch_BIO_free
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
-/**
- * @name OpenSSL BIO Helper Methods for use with ACE's Asynchronous
- * SSL I/O support.
- */
-//@{
-extern "C"
-{
- int ACE_ASYNCH_BIO_WRITE_NAME (BIO *pBIO, const char *buf, int len);
- int ACE_ASYNCH_BIO_READ_NAME (BIO *pBIO, char *buf, int len);
- int ACE_ASYNCH_BIO_PUTS_NAME (BIO *pBIO, const char *str);
- long ACE_ASYNCH_BIO_CTRL_NAME (BIO *pBIO, int cmd, long arg1, void *arg2);
- int ACE_ASYNCH_BIO_NEW_NAME (BIO *pBIO);
- int ACE_ASYNCH_BIO_FREE_NAME (BIO *pBIO);
-}
-//@}
+#if OPENSSL_VERSION_NUMBER > 0x0090581fL && ((defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) || (defined (ACE_HAS_AIO_CALLS)))
#define BIO_TYPE_ACE ( 21 | BIO_TYPE_SOURCE_SINK )
@@ -59,22 +16,26 @@ static BIO_METHOD methods_ACE =
{
BIO_TYPE_ACE, // BIO_TYPE_PROXY_SERVER,
"ACE_Asynch_BIO",
- ACE_ASYNCH_BIO_WRITE_NAME,
- ACE_ASYNCH_BIO_READ_NAME,
- ACE_ASYNCH_BIO_PUTS_NAME,
- NULL, /* ACE_ASYNCH_BIO_GETS_NAME, */
- ACE_ASYNCH_BIO_CTRL_NAME,
- ACE_ASYNCH_BIO_NEW_NAME,
- ACE_ASYNCH_BIO_FREE_NAME,
+ ACE_Asynch_BIO_write,
+ ACE_Asynch_BIO_read,
+ ACE_Asynch_BIO_puts,
+ NULL, /* ACE_Asynch_BIO_gets, */
+ ACE_Asynch_BIO_ctrl,
+ ACE_Asynch_BIO_new,
+ ACE_Asynch_BIO_free,
NULL
};
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+BIO_METHOD *
+BIO_s_ACE_Asynch (void)
+{
+ return (&methods_ACE);
+}
BIO *
-ACE_SSL_make_BIO (void * ssl_asynch_stream)
+BIO_new_ACE_Asynch (void *ssl_asynch_stream)
{
- BIO * const pBIO = BIO_new (&methods_ACE);
+ BIO * pBIO = BIO_new (BIO_s_ACE_Asynch ());
if (pBIO)
BIO_ctrl (pBIO,
@@ -85,41 +46,8 @@ ACE_SSL_make_BIO (void * ssl_asynch_stream)
return pBIO;
}
-/**
- * @struct @c ACE_SSL_Asynch_Stream_Accessor
- *
- * @brief Privileged @c ACE_SSL_Asynch_Stream accessor.
- *
- * This structure is a @c friend to the @c ACE_SSL_Asynch_Stream
- * class so that it can gain access to the protected
- * ssl_bio_{read,write}() methods in that class. It is full declared
- * in this implementation file to hide its interface from users to
- * prevent potential abuse of the friend relationship between it and
- * the @c ACE_SSL_Asynch_Stream class.
- */
-struct ACE_SSL_Asynch_Stream_Accessor
-{
- static int read (ACE_SSL_Asynch_Stream * stream,
- char * buf,
- size_t len,
- int & errval)
- {
- return stream->ssl_bio_read (buf, len, errval);
- }
-
- static int write (ACE_SSL_Asynch_Stream * stream,
- const char * buf,
- size_t len,
- int & errval)
- {
- return stream->ssl_bio_write (buf, len, errval);
- }
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
int
-ACE_ASYNCH_BIO_NEW_NAME (BIO * pBIO)
+ACE_Asynch_BIO_new (BIO *pBIO)
{
pBIO->init = 0; // not initialized
pBIO->num = 0; // still zero ( we can use it )
@@ -130,30 +58,37 @@ ACE_ASYNCH_BIO_NEW_NAME (BIO * pBIO)
}
int
-ACE_ASYNCH_BIO_FREE_NAME (BIO * pBIO)
+ACE_Asynch_BIO_free (BIO *pBIO)
{
- if (pBIO && pBIO->shutdown)
+ if (pBIO == 0)
+ return 0;
+
+ if (pBIO->shutdown)
{
pBIO->ptr = 0;
pBIO->init = 0;
pBIO->num = 0;
pBIO->flags = 0;
-
- return 1;
}
- return 0;
+ return 1;
}
int
-ACE_ASYNCH_BIO_READ_NAME (BIO * pBIO, char * buf, int len)
+ACE_Asynch_BIO_read (BIO * pBIO, char * buf, int len)
{
BIO_clear_retry_flags (pBIO);
- ACE_SSL_Asynch_Stream * const p_stream =
+ ACE_SSL_Asynch_Stream * p_stream =
static_cast<ACE_SSL_Asynch_Stream *> (pBIO->ptr);
- if (pBIO->init == 0 || p_stream == 0 || buf == 0 || len <= 0)
+ if (pBIO->init == 0 || p_stream == 0)
+ return -1;
+
+ if (buf == 0)
+ return -1;
+
+ if (len <= 0 )
return -1;
BIO_clear_retry_flags (pBIO);
@@ -161,10 +96,9 @@ ACE_ASYNCH_BIO_READ_NAME (BIO * pBIO, char * buf, int len)
int errval = 0;
int retval =
- ACE_SSL_Asynch_Stream_Accessor::read (p_stream,
- buf,
- len,
- errval);
+ p_stream->ssl_bio_read (buf,
+ len,
+ errval);
if (retval >= 0)
return retval;
@@ -176,14 +110,20 @@ ACE_ASYNCH_BIO_READ_NAME (BIO * pBIO, char * buf, int len)
}
int
-ACE_ASYNCH_BIO_WRITE_NAME (BIO * pBIO, const char * buf, int len)
+ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, int len)
{
BIO_clear_retry_flags (pBIO);
ACE_SSL_Asynch_Stream * p_stream =
static_cast<ACE_SSL_Asynch_Stream *> (pBIO->ptr);
- if (pBIO->init == 0 || p_stream == 0 || buf == 0 || len <= 0)
+ if (pBIO->init == 0 || p_stream == 0)
+ return -1;
+
+ if (buf == 0)
+ return -1;
+
+ if (len <= 0)
return -1;
BIO_clear_retry_flags (pBIO);
@@ -191,10 +131,9 @@ ACE_ASYNCH_BIO_WRITE_NAME (BIO * pBIO, const char * buf, int len)
int errval = 0;
int retval =
- ACE_SSL_Asynch_Stream_Accessor::write (p_stream,
- buf,
- len,
- errval);
+ p_stream->ssl_bio_write (buf,
+ len,
+ errval);
if (retval >= 0)
return retval;
@@ -206,7 +145,7 @@ ACE_ASYNCH_BIO_WRITE_NAME (BIO * pBIO, const char * buf, int len)
}
long
-ACE_ASYNCH_BIO_CTRL_NAME (BIO * pBIO, int cmd, long num, void *ptr)
+ACE_Asynch_BIO_ctrl (BIO * pBIO, int cmd, long num, void *ptr)
{
long ret = 1;
@@ -248,12 +187,13 @@ ACE_ASYNCH_BIO_CTRL_NAME (BIO * pBIO, int cmd, long num, void *ptr)
return ret;
}
+
int
-ACE_ASYNCH_BIO_PUTS_NAME (BIO *pBIO, const char *str)
+ACE_Asynch_BIO_puts (BIO *pBIO, const char *str)
{
- size_t const n = ACE_OS::strlen (str);
+ size_t n = ACE_OS::strlen (str);
- return ACE_ASYNCH_BIO_WRITE_NAME (pBIO, str, n);
+ return ACE_Asynch_BIO_write (pBIO, str, n);
}
#endif /* OPENSSL_VERSION_NUMBER > 0x0090581fL && (ACE_WIN32 ||
diff --git a/ace/SSL/SSL_Asynch_BIO.h b/ace/SSL/SSL_Asynch_BIO.h
index 22c6202754b..d6cf4e571e4 100644
--- a/ace/SSL/SSL_Asynch_BIO.h
+++ b/ace/SSL/SSL_Asynch_BIO.h
@@ -23,16 +23,25 @@
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-// This must be included before any <openssl> include on LynxOS
-#include "ace/os_include/os_stdio.h"
-
#include <openssl/bio.h>
#if OPENSSL_VERSION_NUMBER > 0x0090581fL && ((defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) || (defined (ACE_HAS_AIO_CALLS)))
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-extern BIO * ACE_SSL_make_BIO (void * ssl_asynch_stream);
-ACE_END_VERSIONED_NAMESPACE_DECL
+/**
+ * @name OpenSSL BIO Helper Methods for use with ACE's Asynchronous
+ * SSL I/O support.
+ */
+//@{
+extern "C"
+{
+ int ACE_Asynch_BIO_write (BIO *pBIO, const char *buf, int len);
+ int ACE_Asynch_BIO_read (BIO *pBIO, char *buf, int len);
+ int ACE_Asynch_BIO_puts (BIO *pBIO, const char *str);
+ long ACE_Asynch_BIO_ctrl (BIO *pBIO, int cmd, long arg1, void *arg2);
+ int ACE_Asynch_BIO_new (BIO *pBIO);
+ int ACE_Asynch_BIO_free (BIO *pBIO);
+}
+//@}
#endif /* OPENSSL_VERSION_NUMBER > 0x0090581fL (ACE_WIN32 ||
ACE_HAS_AIO_CALLS) */
diff --git a/ace/SSL/SSL_Asynch_Stream.cpp b/ace/SSL/SSL_Asynch_Stream.cpp
index 23ab69059fd..2903fe7ba39 100644
--- a/ace/SSL/SSL_Asynch_Stream.cpp
+++ b/ace/SSL/SSL_Asynch_Stream.cpp
@@ -1,3 +1,5 @@
+// -*- C++ -*-
+
#include "SSL_Asynch_Stream.h"
ACE_RCSID (ACE_SSL,
@@ -8,9 +10,25 @@ ACE_RCSID (ACE_SSL,
#if OPENSSL_VERSION_NUMBER > 0x0090581fL && ((defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) || (defined (ACE_HAS_AIO_CALLS)))
#if defined (ACE_WIN32)
+
+# define A_RESULT ACE_WIN32_Asynch_Result
+# define ARS_RESULT ACE_WIN32_Asynch_Read_Stream_Result
+# define AWS_RESULT ACE_WIN32_Asynch_Write_Stream_Result
+
+# define ERR_CANCELED ERROR_OPERATION_ABORTED
+
# include "ace/WIN32_Proactor.h"
+
#else
+
+# define A_RESULT ACE_POSIX_Asynch_Result
+# define ARS_RESULT ACE_POSIX_Asynch_Read_Stream_Result
+# define AWS_RESULT ACE_POSIX_Asynch_Write_Stream_Result
+
+# define ERR_CANCELED ECANCELED
+
# include "ace/POSIX_Proactor.h"
+
#endif /* ACE_WIN32 */
#include "ace/OS_NS_string.h"
@@ -18,7 +36,27 @@ ACE_RCSID (ACE_SSL,
#include <openssl/err.h>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ************************************************************
+// SSL Asynchronous Write Result
+// ************************************************************
+
+class ACE_SSL_Export ACE_SSL_Asynch_Write_Stream_Result:
+ public AWS_RESULT
+{
+ /// Factory class will have special permissions.
+ friend class ACE_SSL_Asynch_Stream;
+
+protected:
+
+ ACE_SSL_Asynch_Write_Stream_Result (ACE_Handler &handler,
+ ACE_HANDLE handle,
+ ACE_Message_Block &message_block,
+ size_t bytes_to_read,
+ const void* act,
+ ACE_HANDLE event,
+ int priority,
+ int signal_number);
+};
ACE_SSL_Asynch_Write_Stream_Result::ACE_SSL_Asynch_Write_Stream_Result
(ACE_Handler & handler,
@@ -42,6 +80,29 @@ ACE_SSL_Asynch_Write_Stream_Result::ACE_SSL_Asynch_Write_Stream_Result
{
}
+// ************************************************************
+// SSL Asynchronous Read Result
+// ************************************************************
+class ACE_SSL_Export ACE_SSL_Asynch_Read_Stream_Result:
+ public ARS_RESULT
+{
+ /// Factory class will have special permissions.
+ friend class ACE_SSL_Asynch_Stream;
+
+protected:
+
+ ACE_SSL_Asynch_Read_Stream_Result (ACE_Handler &handler,
+ ACE_HANDLE handle,
+ ACE_Message_Block &message_block,
+ size_t bytes_to_read,
+ const void* act,
+ ACE_HANDLE event,
+ int priority,
+ int signal_number);
+};
+
+
+
ACE_SSL_Asynch_Read_Stream_Result::ACE_SSL_Asynch_Read_Stream_Result
(ACE_Handler & handler,
ACE_HANDLE handle,
@@ -64,7 +125,23 @@ ACE_SSL_Asynch_Read_Stream_Result::ACE_SSL_Asynch_Read_Stream_Result
{
}
-ACE_SSL_Asynch_Result::ACE_SSL_Asynch_Result (ACE_Handler & handler)
+
+// ************************************************************
+// Faked Result. It is used for close notification
+// ************************************************************
+class ACE_SSL_Asynch_Result : public A_RESULT
+{
+public:
+ ACE_SSL_Asynch_Result (ACE_Handler & handler);
+
+ void complete (size_t bytes_transferred,
+ int success,
+ const void * completion_key,
+ u_long error);
+};
+
+ACE_SSL_Asynch_Result::ACE_SSL_Asynch_Result
+ (ACE_Handler & handler)
: A_RESULT (handler.proxy (),
0, // act,
ACE_INVALID_HANDLE,
@@ -86,7 +163,7 @@ ACE_SSL_Asynch_Result::complete (size_t /* bytes_transferred */,
}
// ************************************************************
-// ACE_SSL_Asynch_Stream Constructor / Destructor
+// ACE_SSL_Asynch_Stream Constructor / Desctructor
// ************************************************************
ACE_SSL_Asynch_Stream::ACE_SSL_Asynch_Stream (
ACE_SSL_Asynch_Stream::Stream_Type s_type,
@@ -121,8 +198,8 @@ ACE_SSL_Asynch_Stream::ACE_SSL_Asynch_Stream (
if (this->ssl_ == 0)
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("- cannot allocate new SSL structure")
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("- cannot allocate new SSL structure")
));
::SSL_set_verify (this->ssl_,
@@ -141,11 +218,12 @@ ACE_SSL_Asynch_Stream::~ACE_SSL_Asynch_Stream (void)
if (this->flags_ & SF_STREAM_OPEN) // open
if ((this->flags_ & SF_DELETE_ENABLE) == 0) // but ..
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT("ACE_SSL_Asynch_Stream::DTOR-")
- ACE_TEXT("possible access violation ")
- ACE_TEXT("if proactor still handles events\n")));
+ ACE_LIB_TEXT("ACE_SSL_Asynch_Stream::DTOR-")
+ ACE_LIB_TEXT("possible access violation ")
+ ACE_LIB_TEXT("if proactor still handles events\n")));
::SSL_free (this->ssl_);
+ this->ssl_ = 0;
// Was honestly copied from ACE_SSL_SOCK_Stream :)
@@ -232,22 +310,22 @@ ACE_SSL_Asynch_Stream::open (ACE_Handler & handler,
if (this->flags_ & SF_STREAM_OPEN)
ACE_ERROR_RETURN
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
- ACE_TEXT ("- already opened")),
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
+ ACE_LIB_TEXT ("- already opened")),
-1);
if (this->ssl_ == 0)
ACE_ERROR_RETURN
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
- ACE_TEXT ("- SSL structure is absent")),
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
+ ACE_LIB_TEXT ("- SSL structure is absent")),
-1);
if (handle == ACE_INVALID_HANDLE)
ACE_ERROR_RETURN
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
- ACE_TEXT ("- invalid handle")),
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
+ ACE_LIB_TEXT ("- invalid handle")),
-1);
@@ -270,13 +348,13 @@ ACE_SSL_Asynch_Stream::open (ACE_Handler & handler,
this->proactor_) != 0)
return -1;
- this->bio_ = ACE_SSL_make_BIO (this);
+ this->bio_ = ::BIO_new_ACE_Asynch (this);
if (this->bio_ == 0)
ACE_ERROR_RETURN
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
- ACE_TEXT ("- cannot allocate new BIO structure")),
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
+ ACE_LIB_TEXT ("- cannot allocate new BIO structure")),
-1);
::SSL_set_bio (this->ssl_ , this->bio_ , this->bio_);
@@ -294,8 +372,8 @@ ACE_SSL_Asynch_Stream::open (ACE_Handler & handler,
default:
ACE_ERROR_RETURN
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
- ACE_TEXT ("- invalid stream type")),
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream::open() %p\n"),
+ ACE_LIB_TEXT ("- invalid stream type")),
-1);
}
@@ -306,6 +384,13 @@ ACE_SSL_Asynch_Stream::open (ACE_Handler & handler,
return 0;
}
+void
+ACE_SSL_Asynch_Stream::open (ACE_HANDLE new_handle,
+ ACE_Message_Block &block)
+{
+ ACE_Service_Handler::open (new_handle,
+ block);
+}
// ************************************************************
// Asynch_Operation interface
@@ -464,7 +549,7 @@ ACE_SSL_Asynch_Stream::do_SSL_shutdown (void)
default:
this->print_error (status,
- ACE_TEXT ("Shutdown error"));
+ ACE_LIB_TEXT ("Shutdown error"));
retval = -1;
break;
}
@@ -505,8 +590,8 @@ ACE_SSL_Asynch_Stream::do_SSL_handshake (void)
default:
ACE_ERROR_RETURN
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("- invalid stream type")),
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("- invalid stream type")),
-1);
}
@@ -528,7 +613,7 @@ ACE_SSL_Asynch_Stream::do_SSL_handshake (void)
case SSL_ERROR_SYSCALL:
default:
this->print_error (status,
- ACE_TEXT ("Handshake error"));
+ ACE_LIB_TEXT ("Handshake error"));
return -1;
}
@@ -587,7 +672,7 @@ ACE_SSL_Asynch_Stream::do_SSL_read (void)
this->notify_read (0, EFAULT);
this->print_error (status,
- ACE_TEXT ("SSL_read error"));
+ ACE_LIB_TEXT ("SSL_read error"));
return -1;
}
@@ -637,7 +722,7 @@ ACE_SSL_Asynch_Stream::do_SSL_write (void)
this->notify_write(0, EFAULT);
this->print_error (status,
- ACE_TEXT ("SSL_write error"));
+ ACE_LIB_TEXT ("SSL_write error"));
return -1;
}
@@ -698,15 +783,15 @@ ACE_SSL_Asynch_Stream::notify_read (int bytes_transferred,
if (ext_read_result_ == 0) //nothing to notify
return 1;
- this->ext_read_result_->set_bytes_transferred (bytes_transferred);
- this->ext_read_result_->set_error (error);
+ ext_read_result_->set_bytes_transferred (bytes_transferred);
+ ext_read_result_->set_error (error);
- int retval =
- this->ext_read_result_->post_completion (proactor_->implementation ());
+ int retval = ext_read_result_->post_completion
+ (proactor_->implementation());
if (retval == 0)
{
- this->ext_read_result_ = 0;
+ ext_read_result_ = 0;
return 0; // success
}
@@ -820,8 +905,8 @@ ACE_SSL_Asynch_Stream::ssl_bio_read (char * buf,
{
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("error in ACE_Message_Block::size() ")
+ ACE_LIB_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("error in ACE_Message_Block::size() ")
));
errval = EINVAL;
@@ -843,8 +928,8 @@ ACE_SSL_Asynch_Stream::ssl_bio_read (char * buf,
{
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("%N:%l (%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("attempt read failed")
+ ACE_LIB_TEXT ("%N:%l (%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("attempt read failed")
));
errval = EINVAL; // may be leave EINPROGRESS ??
@@ -884,8 +969,8 @@ ACE_SSL_Asynch_Stream::ssl_bio_write (const char * buf,
{
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("error in ACE_Message_Block::size() ")
+ ACE_LIB_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("error in ACE_Message_Block::size() ")
));
errval = EINVAL;
@@ -901,8 +986,8 @@ ACE_SSL_Asynch_Stream::ssl_bio_write (const char * buf,
{
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("error in ACE_Message_Block::copy() ")
+ ACE_LIB_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("error in ACE_Message_Block::copy() ")
));
errval = EINVAL;
@@ -920,8 +1005,8 @@ ACE_SSL_Asynch_Stream::ssl_bio_write (const char * buf,
{
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("attempt write failed")
+ ACE_LIB_TEXT ("%N:%l ((%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("attempt write failed")
));
errval = EINVAL; // may be leave EINPROGRESS ??
@@ -971,8 +1056,8 @@ ACE_SSL_Asynch_Stream::handle_write_stream (
ACE_ERROR
((LM_ERROR,
- ACE_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream %p\n"),
- ACE_TEXT ("attempt write failed")
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Asynch_Stream %p\n"),
+ ACE_LIB_TEXT ("attempt write failed")
));
this->bio_out_errno_ = EINVAL;
@@ -1035,7 +1120,5 @@ ACE_SSL_Asynch_Stream::pending_BIO_count (void)
return ret;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* OPENSSL_VERSION_NUMBER > 0x0090581fL && (ACE_WIN32 ||
ACE_HAS_AIO_CALLS) */
diff --git a/ace/SSL/SSL_Asynch_Stream.h b/ace/SSL/SSL_Asynch_Stream.h
index 671cca46c24..e8d2b8f8c34 100644
--- a/ace/SSL/SSL_Asynch_Stream.h
+++ b/ace/SSL/SSL_Asynch_Stream.h
@@ -29,135 +29,41 @@
#include "ace/Synch_Traits.h"
#include "ace/Thread_Mutex.h"
-/*
- * This facility doesn't follow the normal ACE asynch I/O support classes'
- * interface/implementation arrangement. It's not needed because rather than
- * branching off to platform-specific APIs, all platforms use the OpenSSL
- * API. Thus, you can think of this class as the implementation class (for
- * OpenSSL) and there's no separate interface class.
- * Also, since both read and write operations are defined in one I/O
- * factory, there's no single Result class defined as there is for
- * ACE_Asynch_Read_Stream, et al. There are separate result classes defined
- * for read and write operations.
- */
-
-#if defined (ACE_WIN32)
-# include "ace/WIN32_Asynch_IO.h"
-typedef ACE_WIN32_Asynch_Result A_RESULT;
-typedef ACE_WIN32_Asynch_Read_Stream_Result ARS_RESULT;
-typedef ACE_WIN32_Asynch_Write_Stream_Result AWS_RESULT;
-
-# define ERR_CANCELED ERROR_OPERATION_ABORTED
-
-#else
-# include "ace/POSIX_Asynch_IO.h"
-typedef ACE_POSIX_Asynch_Result A_RESULT;
-typedef ACE_POSIX_Asynch_Read_Stream_Result ARS_RESULT;
-typedef ACE_POSIX_Asynch_Write_Stream_Result AWS_RESULT;
-
-# define ERR_CANCELED ECANCELED
-
-#endif /* ACE_WIN32 */
-
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ACE_SSL_Asynch_Stream; // Forward decl for use in result class def.
-
-/**
- * @class ACE_SSL_Asynch_Read_Stream_Result
- *
- * Result class that communicates result of read operations initiated on
- * an ACE_SSL_Asynch_Stream object.
- */
-class ACE_SSL_Asynch_Read_Stream_Result : public ARS_RESULT
-{
- /// Factory class will have special permissions.
- friend class ACE_SSL_Asynch_Stream;
-
-protected:
- ACE_SSL_Asynch_Read_Stream_Result (ACE_Handler &handler,
- ACE_HANDLE handle,
- ACE_Message_Block &message_block,
- size_t bytes_to_read,
- const void* act,
- ACE_HANDLE event,
- int priority,
- int signal_number);
-};
-
-/**
- * @class ACE_SSL_Asynch_Write_Stream_Result
- *
- * Result class that communicates result of write operations initiated on
- * an ACE_SSL_Asynch_Stream object.
- */
-class ACE_SSL_Asynch_Write_Stream_Result : public AWS_RESULT
-{
- /// Factory class will have special permissions.
- friend class ACE_SSL_Asynch_Stream;
-
-protected:
- ACE_SSL_Asynch_Write_Stream_Result (ACE_Handler &handler,
- ACE_HANDLE handle,
- ACE_Message_Block &message_block,
- size_t bytes_to_read,
- const void* act,
- ACE_HANDLE event,
- int priority,
- int signal_number);
-};
-
-
-/**
- * @class ACE_SSL_Asynch_Result
- *
- * Result class that is used internally for socket close notifications.
- */
-class ACE_SSL_Asynch_Result : public A_RESULT
+extern "C"
{
-public:
- ACE_SSL_Asynch_Result (ACE_Handler &handler);
+ BIO_METHOD * BIO_s_ACE_Asynch (void);
+ BIO * BIO_new_ACE_Asynch (void *ssl_asynch_stream);
+}
- void complete (size_t bytes_transferred,
- int success,
- const void * completion_key,
- u_long error);
-};
+/// Forward declarations
+class ACE_SSL_Asynch_Stream;
+class ACE_SSL_Asynch_Result;
+class ACE_SSL_Asynch_Read_Stream_Result;
+class ACE_SSL_Asynch_Write_Stream_Result;
-// Only provide forward declarations to prevent possible abuse of the
-// friend declarations in ACE_SSL_Asynch_Stream.
-struct ACE_SSL_Asynch_Stream_Accessor;
/**
* @class ACE_SSL_Asynch_Stream
*
- * @brief This class is a factory for initiating asynchronous reads
- * and writes on an SSL stream.
- *
- * Once open() is called, multiple asynchronous read and write operations
- * can be started using this class. The handler object (derived from
- * ACE_Handler) specified in open() will receive completion events for the
- * operations initiated via this class.
+ * @brief This class is a factory for starting off asynchronous reads
+ * on a stream. This class forwards all methods to its
+ * implementation class.
+ * @par
+ * Once open() is called, multiple asynchronous read()s can
+ * started using this class. An ACE_SSL_Asynch_Stream::Result
+ * will be passed back to the @param handler when the asynchronous
+ * reads completes through the ACE_Handler::handle_read_stream
+ * callback.
*/
class ACE_SSL_Export ACE_SSL_Asynch_Stream
: public ACE_Asynch_Operation,
- public ACE_Handler
+ public ACE_Service_Handler
{
-public:
+ friend int ACE_Asynch_BIO_read (BIO * pBIO, char * buf, int len);
+ friend int ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, int len);
- // Use a class/struct to work around scoping
- // problems for extern "C" free functions with some compilers. For
- // example, some can't handle
- //
- // friend ::some_extern_c_free_function (...)
- //
- // Note that we could use a straight C++ (i.e. not extern "C") free
- // function, but using a class or struct allows us to hide the
- // interface from the user, which prevents abuse of this friend
- // relationship.
- friend struct ACE_SSL_Asynch_Stream_Accessor;
+public:
enum Stream_Type
{
@@ -165,15 +71,13 @@ public:
ST_SERVER = 0x0002
};
- /// Constructor.
+ /// The constructor.
/**
- * @arg context Pointer to an ACE_SSL_Context instance containing
- * the OpenSSL information to be associated with this
- * ACE_SSL_Asynch_Stream. The needed SSL data will be
- * copied before return. Therefore, this object can be
- * reused, modified, or deleted upon return. If a 0 pointer
- * is passed, the ACE_SSL_Context::instance() method will
- * be called to get access to a singleton.
+ * @param context Pointer to @c ACE_SSL_Context instance containing
+ * the OpenSSL @c SSL data structure to be associated
+ * with this @c ACE_SSL_SOCK_Stream. The @c SSL data
+ * structure will be copied to make it at least
+ * logically independent of the supplied @a context.
*/
ACE_SSL_Asynch_Stream (Stream_Type s_type = ST_SERVER,
ACE_SSL_Context * context = 0);
@@ -181,92 +85,28 @@ public:
/// Destructor
virtual ~ACE_SSL_Asynch_Stream (void);
- int cancel (void);
+ int cancel(void);
int close (void);
- /**
- * Initializes the factory with information which will be used with
- * each asynchronous call.
- *
- * @arg handler The ACE_Handler that will be called to handle completions
- * for operations initiated using this factory.
- * @arg handle The handle that future read/write operations will use.
- *
- * @retval 0 for success.
- * @retval -1 for failure; consult @c errno for further information.
- */
int open (ACE_Handler &handler,
ACE_HANDLE handle = ACE_INVALID_HANDLE,
const void *completion_key = 0,
ACE_Proactor *proactor = 0);
- /**
- * Initiates an asynchronous read. If the operation is successfully
- * initiated, the handle_read_stream() method will be called on the
- * ACE_Handler object passed to open() when the operation completes.
- * Data is read into the specified ACE_Message_Block beginning at its
- * write pointer; the block's write pointer is updated to reflect any
- * added data when the operation completes.
- *
- * @arg message_block The specified ACE_Message_Block will receive any
- * data that is read. Data will be read into the
- * block beginning at the block's write pointer.
- * @arg num_bytes_to_read The maximum number of bytes to read. The actual
- * amount read may be less.
- * @arg act ACT which is passed to the completion handler in
- * the result object.
- * @arg priority Specifies the operation priority. This has an
- * affect on POSIX only. Works like @i nice in Unix.
- * Negative values are not allowed. 0 means priority
- * of the operation same as the process priority.
- * 1 means priority of the operation is one less than
- * process, and so forth. This parameter has no
- * affect on Win32.
- * @arg signal_number The POSIX4 real-time signal number to be used
- * for the operation. signal_number ranges from
- * ACE_SIGRTMIN to ACE_SIGRTMAX. This argument is
- * unused on non-POSIX4 systems.
- *
- * @retval 0 for success.
- * @retval -1 for failure; consult @c errno for further information.
- */
+ /// NOTE: This method has been specifically put in place so that
+ /// compilers like the borland doesnt get confused between the above
+ /// open () call with the one in the ACE_Service_Handler, from which
+ /// this class is derived from..
+ void open (ACE_HANDLE new_handle,
+ ACE_Message_Block &message_block);
+
int read (ACE_Message_Block &message_block,
size_t num_bytes_to_read,
const void *act = 0,
int priority = 0,
int signal_number = ACE_SIGRTMIN);
- /**
- * Initiates an asynchronous write. If the operation is successfully
- * initiated, the handle_write_stream() method will be called on the
- * ACE_Handler object passed to open() when the operation completes.
- * Data is taken from the specified ACE_Message_Block beginning at its
- * read pointer; the block's read pointer is updated to reflect any
- * data successfully sent when the operation completes.
- *
- * @arg message_block The specified ACE_Message_Block is the source of
- * data that is written. Data will be taken from the
- * block beginning at the block's read pointer.
- * @arg bytes_to_write The maximum number of bytes to write. The actual
- * amount written may be less.
- * @arg act ACT which is passed to the completion handler in
- * the result object.
- * @arg priority Specifies the operation priority. This has an
- * affect on POSIX only. Works like @i nice in Unix.
- * Negative values are not allowed. 0 means priority
- * of the operation same as the process priority.
- * 1 means priority of the operation is one less than
- * process, and so forth. This parameter has no
- * affect on Win32.
- * @arg signal_number The POSIX4 real-time signal number to be used
- * for the operation. signal_number ranges from
- * ACE_SIGRTMIN to ACE_SIGRTMAX. This argument is
- * unused on non-POSIX4 systems.
- *
- * @retval 0 for success.
- * @retval -1 for failure; consult @c errno for further information.
- */
int write (ACE_Message_Block &message_block,
size_t bytes_to_write,
const void *act = 0,
@@ -274,11 +114,8 @@ public:
int signal_number = ACE_SIGRTMIN);
protected:
- /// Virtual from ACE_Asynch_Operation. Since this class is essentially an
- /// implementation class, simply return 0.
- virtual ACE_Asynch_Operation_Impl *implementation (void) const { return 0; }
- /// virtual from ACE_Handler
+ /// virtual from ACE_Service_Handler
/// This method is called when BIO write request is completed. It
/// processes the IO completion and calls do_SSL_state_machine().
@@ -331,12 +168,6 @@ protected:
int ssl_bio_write (const char * buf, size_t len, int & errval);
//@}
-private:
-
- // Preventing copying through construction or assignment.
- ACE_SSL_Asynch_Stream (ACE_SSL_Asynch_Stream const &);
- ACE_SSL_Asynch_Stream & operator= (ACE_SSL_Asynch_Stream const &);
-
protected:
/// Stream Type ST_CLIENT/ST_SERVER
@@ -415,7 +246,6 @@ protected:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* OPENSSL_VERSION_NUMBER > 0x0090581fL && (ACE_WIN32 ||
ACE_HAS_AIO_CALLS) */
diff --git a/ace/SSL/SSL_Context.cpp b/ace/SSL/SSL_Context.cpp
index 54ce70a6d2c..4fe5260aded 100644
--- a/ace/SSL/SSL_Context.cpp
+++ b/ace/SSL/SSL_Context.cpp
@@ -1,3 +1,7 @@
+// -*- C++ -*-
+
+#include "ace/OS_NS_string.h"
+#include "ace/ACE.h"
#include "SSL_Context.h"
#include "sslconf.h"
@@ -11,14 +15,7 @@
#include "ace/Log_Msg.h"
#include "ace/Singleton.h"
#include "ace/Synch_Traits.h"
-#include "ace/ACE.h"
#include "ace/OS_NS_errno.h"
-#include "ace/OS_NS_string.h"
-
-#ifdef ACE_HAS_THREADS
-# include "ace/Thread_Mutex.h"
-# include "ace/OS_NS_Thread.h"
-#endif /* ACE_HAS_THREADS */
#include <openssl/x509.h>
#include <openssl/err.h>
@@ -28,91 +25,12 @@ ACE_RCSID (ACE_SSL,
SSL_Context,
"$Id$")
-
-namespace
-{
- /// Reference count of the number of times the ACE_SSL_Context was
- /// initialized.
- int ssl_library_init_count = 0;
-
- // @@ This should also be done with a singleton, otherwise it is not
- // thread safe and/or portable to some weird platforms...
-
#ifdef ACE_HAS_THREADS
- /// Array of mutexes used internally by OpenSSL when the SSL
- /// application is multithreaded.
- ACE_SSL_Context::lock_type * ssl_locks = 0;
-
- // @@ This should also be managed by a singleton.
-#endif
-}
-
-#ifdef ACE_HAS_THREADS
-
-# if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-// MSVC++ 6's preprocessor can't handle macro expansions required by
-// the versioned namespace support. *sigh*
-
-# define ACE_SSL_LOCKING_CALLBACK_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_SSL_locking_callback)
-# define ACE_SSL_THREAD_ID_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_SSL_thread_id)
-
-# else
-
-# define ACE_SSL_LOCKING_CALLBACK_NAME ACE_SSL_locking_callback
-# define ACE_SSL_THREAD_ID_NAME ACE_SSL_thread_id
-
-# endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
-
-
-extern "C"
-{
- void
- ACE_SSL_LOCKING_CALLBACK_NAME (int mode,
- int type,
- const char * /* file */,
- int /* line */)
- {
- // #ifdef undef
- // fprintf(stderr,"thread=%4d mode=%s lock=%s %s:%d\n",
- // CRYPTO_thread_id(),
- // (mode&CRYPTO_LOCK)?"l":"u",
- // (type&CRYPTO_READ)?"r":"w",file,line);
- // #endif
- // /*
- // if (CRYPTO_LOCK_SSL_CERT == type)
- // fprintf(stderr,"(t,m,f,l) %ld %d %s %d\n",
- // CRYPTO_thread_id(),
- // mode,file,line);
- // */
- if (mode & CRYPTO_LOCK)
- (void) ssl_locks[type].acquire ();
- else
- (void) ssl_locks[type].release ();
- }
-
- // -------------------------------
-
- // Return the current thread ID. OpenSSL uses this on platforms
- // that need it.
- unsigned long
- ACE_SSL_THREAD_ID_NAME (void)
- {
- return (unsigned long) ACE_VERSIONED_NAMESPACE_NAME::ACE_OS::thr_self ();
- }
-}
+ACE_mutex_t * ACE_SSL_Context::lock_ = 0;
#endif /* ACE_HAS_THREADS */
-// ****************************************************************
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#ifdef ACE_HAS_THREADS
-ACE_SSL_Context::lock_type * ACE_SSL_Context::locks_ = 0;
-#endif /* ACE_HAS_THREADS */
+int ACE_SSL_Context::library_init_count_ = 0;
ACE_SSL_Context::ACE_SSL_Context (void)
: context_ (0),
@@ -147,22 +65,34 @@ ACE_SSL_Context::ssl_library_init (void)
ace_ssl_mon,
*ACE_Static_Object_Lock::instance ()));
- if (ssl_library_init_count == 0)
+ if (ACE_SSL_Context::library_init_count_ == 0)
{
// Initialize the locking callbacks before initializing anything
// else.
#ifdef ACE_HAS_THREADS
- int const num_locks = ::CRYPTO_num_locks ();
+ int num_locks = ::CRYPTO_num_locks ();
+
+ ACE_NEW (ACE_SSL_Context::lock_,
+ ACE_mutex_t[num_locks]);
- this->locks_ = new lock_type[num_locks];
- ssl_locks = this->locks_;
+ for (int i = 0; i < num_locks; ++i)
+ {
+ // rwlock_init(&(ACE_SSL_Context::lock_[i]), USYNC_THREAD,
+ // 0);
+ if (ACE_OS::mutex_init (&(ACE_SSL_Context::lock_[i]),
+ USYNC_THREAD) != 0)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("(%P|%t) ACE_SSL_Context::ssl_library_init ")
+ ACE_LIB_TEXT ("- %p\n"),
+ ACE_LIB_TEXT ("mutex_init")));
+ }
# if !defined (WIN32)
// This call isn't necessary on some platforms. See the CRYPTO
// library's threads(3) man page for details.
- ::CRYPTO_set_id_callback (ACE_SSL_THREAD_ID_NAME);
-# endif /* !WIN32 */
- ::CRYPTO_set_locking_callback (ACE_SSL_LOCKING_CALLBACK_NAME);
+ ::CRYPTO_set_id_callback (ACE_SSL_thread_id);
+# endif /* WIN32 */
+ ::CRYPTO_set_locking_callback (ACE_SSL_locking_callback);
#endif /* ACE_HAS_THREADS */
::SSLeay_add_ssl_algorithms ();
@@ -198,7 +128,7 @@ ACE_SSL_Context::ssl_library_init (void)
}
- ++ssl_library_init_count;
+ ++ACE_SSL_Context::library_init_count_;
}
void
@@ -208,8 +138,8 @@ ACE_SSL_Context::ssl_library_fini (void)
ace_ssl_mon,
*ACE_Static_Object_Lock::instance ()));
- --ssl_library_init_count;
- if (ssl_library_init_count == 0)
+ --ACE_SSL_Context::library_init_count_;
+ if (ACE_SSL_Context::library_init_count_ == 0)
{
::ERR_free_strings ();
::EVP_cleanup ();
@@ -217,12 +147,13 @@ ACE_SSL_Context::ssl_library_fini (void)
// Clean up the locking callbacks after everything else has been
// cleaned up.
#ifdef ACE_HAS_THREADS
- ::CRYPTO_set_locking_callback (0);
- ssl_locks = 0;
+ int num_locks = ::CRYPTO_num_locks ();
- delete [] this->locks_;
- this->locks_ = 0;
+ ::CRYPTO_set_locking_callback (0);
+ for (int i = 0; i < num_locks; ++i)
+ ACE_OS::mutex_destroy (&(ACE_SSL_Context::lock_[i]));
+ delete [] ACE_SSL_Context::lock_;
#endif /* ACE_HAS_THREADS */
}
}
@@ -346,7 +277,7 @@ ACE_SSL_Context::load_trusted_ca (const char* ca_file, const char* ca_dir)
|| mode_ == SSLv2_server)
{
STACK_OF (X509_NAME) * cert_names;
- cert_names = ::SSL_CTX_get_client_CA_list (this->context_);
+ cert_names = ::SSL_CTX_get_client_CA_list(this->context_);
if (cert_names == 0)
{
@@ -397,10 +328,7 @@ ACE_SSL_Context::private_key (const char *file_name,
if (::SSL_CTX_use_PrivateKey_file (this->context_,
this->private_key_.file_name (),
this->private_key_.type ()) <= 0)
- {
- this->private_key_ = ACE_SSL_Data_File ();
- return -1;
- }
+ return -1;
else
return this->verify_private_key ();
}
@@ -427,10 +355,7 @@ ACE_SSL_Context::certificate (const char *file_name,
if (::SSL_CTX_use_certificate_file (this->context_,
this->certificate_.file_name (),
this->certificate_.type ()) <= 0)
- {
- this->certificate_ = ACE_SSL_Data_File ();
- return -1;
- }
+ return -1;
else
return 0;
}
@@ -511,7 +436,7 @@ ACE_SSL_Context::report_error (unsigned long error_code)
(void) ::ERR_error_string (error_code, error_string);
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("ACE_SSL (%P|%t) error code: %u - %C\n"),
+ ACE_LIB_TEXT ("ACE_SSL (%P|%t) error code: %u - %C\n"),
error_code,
error_string));
}
@@ -531,39 +456,30 @@ ACE_SSL_Context::dh_params (const char *file_name,
if (this->dh_params_.type () != -1)
return 0;
- // For now we only support PEM encodings
- if (type != SSL_FILETYPE_PEM)
- return -1;
-
this->dh_params_ = ACE_SSL_Data_File (file_name, type);
this->check_context ();
{
+ // For now we only support PEM encodings
+ if (this->dh_params_.type () != SSL_FILETYPE_PEM)
+ return -1;
+
// Swiped from Rescorla's examples and the OpenSSL s_server.c app
- DH * ret=0;
- BIO * bio = 0;
+ DH *ret=0;
+ BIO *bio = 0;
if ((bio = ::BIO_new_file (this->dh_params_.file_name (), "r")) == NULL)
- {
- this->dh_params_ = ACE_SSL_Data_File ();
- return -1;
- }
+ return -1;
ret = PEM_read_bio_DHparams (bio, NULL, NULL, NULL);
BIO_free (bio);
if (ret == 0)
- {
- this->dh_params_ = ACE_SSL_Data_File ();
- return -1;
- }
-
- if (::SSL_CTX_set_tmp_dh (this->context_, ret) < 0)
- {
- this->dh_params_ = ACE_SSL_Data_File ();
- return -1;
- }
+ return -1;
+
+ if(::SSL_CTX_set_tmp_dh (this->context_, ret) < 0)
+ return -1;
DH_free (ret);
}
@@ -572,6 +488,45 @@ ACE_SSL_Context::dh_params (const char *file_name,
// ****************************************************************
+#ifdef ACE_HAS_THREADS
+
+void
+ACE_SSL_locking_callback (int mode,
+ int type,
+ const char * /* file */,
+ int /* line */)
+{
+ // #ifdef undef
+ // fprintf(stderr,"thread=%4d mode=%s lock=%s %s:%d\n",
+ // CRYPTO_thread_id(),
+ // (mode&CRYPTO_LOCK)?"l":"u",
+ // (type&CRYPTO_READ)?"r":"w",file,line);
+ // #endif
+ // /*
+ // if (CRYPTO_LOCK_SSL_CERT == type)
+ // fprintf(stderr,"(t,m,f,l) %ld %d %s %d\n",
+ // CRYPTO_thread_id(),
+ // mode,file,line);
+ // */
+ if (mode & CRYPTO_LOCK)
+ ACE_OS::mutex_lock (&(ACE_SSL_Context::lock_[type]));
+ else
+ ACE_OS::mutex_unlock (&(ACE_SSL_Context::lock_[type]));
+}
+
+
+
+unsigned long
+ACE_SSL_thread_id (void)
+{
+ return (unsigned long) ACE_OS::thr_self ();
+}
+#endif /* ACE_HAS_THREADS */
+
+// ****************************************************************
+
+
+
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Singleton<ACE_SSL_Context, ACE_SYNCH_MUTEX>;
@@ -586,5 +541,3 @@ template ACE_Singleton<ACE_SSL_Context, ACE_SYNCH_MUTEX> *
ACE_Singleton<ACE_SSL_Context, ACE_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_Context.h b/ace/SSL/SSL_Context.h
index 748ca4cde72..37a8de30496 100644
--- a/ace/SSL/SSL_Context.h
+++ b/ace/SSL/SSL_Context.h
@@ -7,7 +7,6 @@
* $Id$
*
* @author Carlos O'Ryan <coryan@ece.uci.edu>
- * @author Ossama Othman <ossama@dre.vanderbilt.edu>
*/
//=============================================================================
@@ -26,13 +25,28 @@
#include "ace/SString.h"
#ifdef ACE_HAS_THREADS
-# include "ace/Synch_Traits.h"
+# include "ace/OS_NS_Thread.h"
#endif /* ACE_HAS_THREADS */
#include <openssl/ssl.h>
+#ifdef ACE_HAS_THREADS
+extern "C"
+{
+
+ /// Mutex locking/unlocking callback for OpenSSL multithread
+ /// support.
+ void ACE_SSL_locking_callback (int mode,
+ int type,
+ const char * file,
+ int line);
+
+ /// Return the current thread ID. OpenSSL uses this on platforms
+ /// that need it.
+ unsigned long ACE_SSL_thread_id (void);
+}
+#endif /* ACE_HAS_THREADS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_SSL_Export ACE_SSL_Data_File
{
@@ -74,11 +88,9 @@ private:
*/
class ACE_SSL_Export ACE_SSL_Context
{
-public:
+ friend void ACE_SSL_locking_callback (int, int, const char *, int);
-#ifdef ACE_HAS_THREADS
- typedef ACE_SYNCH_MUTEX lock_type;
-#endif /* ACE_HAS_THREADS */
+public:
enum {
INVALID_METHOD = -1,
@@ -245,18 +257,18 @@ public:
//@{
/// Seed the underlying random number generator. This value should
/// have at least 128 bits of entropy.
- static int random_seed (const char * seed);
+ int random_seed (const char * seed);
/// Set the Entropy Gathering Daemon (EGD) UNIX domain socket file to
/// read random seed values from.
- static int egd_file (const char * socket_file);
+ int egd_file (const char * socket_file);
/**
* Set the file that contains the random seed value state, and the
* amount of bytes to read. "-1" bytes causes the entire file to be
* read.
*/
- static int seed_file (const char * seed_file, long bytes = -1);
+ int seed_file (const char * seed_file, long bytes = -1);
//@}
/// Print SSL error corresponding to the given error code.
@@ -295,13 +307,18 @@ private:
void ssl_library_init ();
void ssl_library_fini ();
- // = Prevent assignment and copy initialization.
+ // = Prevent assignment and initialization.
//@{
- ACE_SSL_Context (const ACE_SSL_Context &);
- ACE_SSL_Context & operator= (const ACE_SSL_Context &);
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_SSL_Context &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_SSL_Context (const ACE_SSL_Context &))
//@}
private:
+ // @@ Carlos, I protected this variable with an ACE_GUARD, just like
+ // what we do for the orb_init_count_ variable in
+ // tao/ORB.cpp. The code isn't pretty but it should suffice
+ // until the SSL context is stored in a Singleton.
+ // -Ossama
/// The SSL_CTX structure
SSL_CTX *context_;
@@ -320,15 +337,22 @@ private:
/// count of successful CA load attempts
int have_ca_;
+ /// Reference count of the number of times the ACE_SSL_Context was
+ /// initialized.
+ static int library_init_count_;
+
+ // @@ This should also be done with a singleton, otherwise it is not
+ // thread safe and/or portable to some weird platforms...
+
#ifdef ACE_HAS_THREADS
/// Array of mutexes used internally by OpenSSL when the SSL
/// application is multithreaded.
- static lock_type * locks_;
-#endif /* ACE_HAS_THREADS */
+ static ACE_mutex_t * lock_;
-};
+ // @@ This should also be managed by a singleton.
+#endif
-ACE_END_VERSIONED_NAMESPACE_DECL
+};
#if defined(__ACE_INLINE__)
#include "SSL_Context.inl"
diff --git a/ace/SSL/SSL_Context.inl b/ace/SSL/SSL_Context.inl
index 5fd50ec6d43..9008591e1c9 100644
--- a/ace/SSL/SSL_Context.inl
+++ b/ace/SSL/SSL_Context.inl
@@ -2,7 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_SSL_Data_File::ACE_SSL_Data_File (void)
@@ -105,5 +104,3 @@ ACE_SSL_Context::have_trusted_ca (void) const
{
return this->have_ca_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK.cpp b/ace/SSL/SSL_SOCK.cpp
index c6f1af15388..0f38ddb4206 100644
--- a/ace/SSL/SSL_SOCK.cpp
+++ b/ace/SSL/SSL_SOCK.cpp
@@ -1,5 +1,8 @@
+// -*- C++ -*-
+//
// $Id$
+
#include "SSL_SOCK.h"
#if !defined (__ACE_INLINE__)
@@ -14,8 +17,6 @@ ACE_RCSID (ACE_SSL,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_SSL_SOCK::ACE_SSL_SOCK (void)
{
ACE_TRACE ("ACE_SSL_SOCK::ACE_SSL_SOCK");
@@ -68,5 +69,3 @@ ACE_SSL_SOCK::disable (int value) const
return -1;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK.h b/ace/SSL/SSL_SOCK.h
index 0a86a1f5c9f..c5d65b35a72 100644
--- a/ace/SSL/SSL_SOCK.h
+++ b/ace/SSL/SSL_SOCK.h
@@ -34,8 +34,6 @@
# define ACE_SSL_SOCK_STREAM ACE_SSL_SOCK_Stream, ACE_INET_Addr
#endif /* ACE_HAS_TEMPLATE_TYPEDEFS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SSL_SOCK
*
@@ -52,6 +50,9 @@ class ACE_SSL_Export ACE_SSL_SOCK : public ACE_SOCK
{
public:
+ /// Default destructor.
+ ~ACE_SSL_SOCK (void);
+
/**
* Override ACE_SOCK base class implementations with these SSL
* specific ones.
@@ -78,18 +79,8 @@ protected:
/// from being defined.
ACE_SSL_SOCK (void);
- /// Destructor
- /**
- * Not a virtual destructor. Protected destructor to prevent
- * operator delete() from being called through a base class
- * ACE_SSL_SOCK pointer/reference.
- */
- ~ACE_SSL_SOCK (void);
-
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "SSL_SOCK.i"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SSL/SSL_SOCK.i b/ace/SSL/SSL_SOCK.i
index 1a39d5214dc..bd2b967b97a 100644
--- a/ace/SSL/SSL_SOCK.i
+++ b/ace/SSL/SSL_SOCK.i
@@ -1,11 +1,8 @@
// -*- C++ -*-
-//
// $Id$
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
ACE_SSL_SOCK::set_handle (ACE_HANDLE fd)
{
@@ -28,9 +25,9 @@ ACE_SSL_SOCK::control (int cmd, void *arg) const
ACE_INLINE int
ACE_SSL_SOCK::set_option (int level,
- int option,
- void *optval,
- int optlen) const
+ int option,
+ void *optval,
+ int optlen) const
{
// switch (option)
// {
@@ -40,9 +37,9 @@ ACE_SSL_SOCK::set_option (int level,
// return ::BIO_set_read_buffer_size (this->io_bio_, *((int *) optval));
// default:
return ACE_OS::setsockopt (this->get_handle (),
- level,
- option, (char *) optval,
- optlen);
+ level,
+ option, (char *) optval,
+ optlen);
// }
}
@@ -50,9 +47,9 @@ ACE_SSL_SOCK::set_option (int level,
ACE_INLINE int
ACE_SSL_SOCK::get_option (int level,
- int option,
- void *optval,
- int *optlen) const
+ int option,
+ void *optval,
+ int *optlen) const
{
// switch (option)
// {
@@ -62,10 +59,8 @@ ACE_SSL_SOCK::get_option (int level,
// return ::BIO_get_read_buffer_size (this->io_bio_, *((int *) optval));
// default:
return ACE_OS::getsockopt (this->get_handle (),
- level,
- option, (char *) optval,
- optlen);
+ level,
+ option, (char *) optval,
+ optlen);
// }
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK_Acceptor.cpp b/ace/SSL/SSL_SOCK_Acceptor.cpp
index 61c91e999e4..6dedbf05bca 100644
--- a/ace/SSL/SSL_SOCK_Acceptor.cpp
+++ b/ace/SSL/SSL_SOCK_Acceptor.cpp
@@ -12,6 +12,8 @@
#include "ace/Time_Value.h"
#include "ace/Countdown_Time.h"
+ACE_ALLOC_HOOK_DEFINE(ACE_SSL_SOCK_Acceptor)
+
#if !defined (__ACE_INLINE__)
#include "SSL_SOCK_Acceptor.i"
#endif /* __ACE_INLINE__ */
@@ -20,10 +22,6 @@ ACE_RCSID (ACE_SSL,
SSL_SOCK_Acceptor,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_ALLOC_HOOK_DEFINE(ACE_SSL_SOCK_Acceptor)
-
ACE_SSL_SOCK_Acceptor::~ACE_SSL_SOCK_Acceptor (void)
{
ACE_TRACE ("ACE_SSL_SOCK_Acceptor::~ACE_SSL_SOCK_Acceptor");
@@ -244,6 +242,5 @@ ACE_SSL_SOCK_Acceptor::accept (ACE_SSL_SOCK_Stream &new_stream,
}
return 0;
-}
-ACE_END_VERSIONED_NAMESPACE_DECL
+}
diff --git a/ace/SSL/SSL_SOCK_Acceptor.h b/ace/SSL/SSL_SOCK_Acceptor.h
index 0428365a753..698ebcbefd9 100644
--- a/ace/SSL/SSL_SOCK_Acceptor.h
+++ b/ace/SSL/SSL_SOCK_Acceptor.h
@@ -29,8 +29,6 @@
#include "ace/SOCK_Acceptor.h"
#include "ace/OS_QoS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SSL_SOCK_Acceptor
*
@@ -70,10 +68,10 @@ public:
* upon return.
*/
ACE_SSL_SOCK_Acceptor (const ACE_Addr &local_sap,
- int reuse_addr = 0,
- int protocol_family = PF_UNSPEC,
- int backlog = ACE_DEFAULT_BACKLOG,
- int protocol = 0);
+ int reuse_addr = 0,
+ int protocol_family = PF_UNSPEC,
+ int backlog = ACE_DEFAULT_BACKLOG,
+ int protocol = 0);
/**
* Initiate a passive-mode QoS-enabled acceptor socket.
@@ -86,13 +84,13 @@ public:
* upon return.
*/
ACE_SSL_SOCK_Acceptor (const ACE_Addr &local_sap,
- ACE_Protocol_Info *protocolinfo,
- ACE_SOCK_GROUP g,
- u_long flags,
- int reuse_addr,
- int protocol_family = PF_UNSPEC,
- int backlog = ACE_DEFAULT_BACKLOG,
- int protocol = 0);
+ ACE_Protocol_Info *protocolinfo,
+ ACE_SOCK_GROUP g,
+ u_long flags,
+ int reuse_addr,
+ int protocol_family = PF_UNSPEC,
+ int backlog = ACE_DEFAULT_BACKLOG,
+ int protocol = 0);
/**
* Initiate a passive mode SSL/BSD-style acceptor socket.
@@ -158,7 +156,7 @@ public:
* @return 0 if success; -1 for failure (errno contains error code).
*/
int accept (ACE_SSL_SOCK_Stream &new_stream,
- ACE_Accept_QoS_Params qos_params,
+ ACE_Accept_QoS_Params qos_params,
ACE_Addr *remote_addr = 0,
ACE_Time_Value *timeout = 0,
int restart = 1,
@@ -187,8 +185,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "SSL_SOCK_Acceptor.i"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SSL/SSL_SOCK_Acceptor.i b/ace/SSL/SSL_SOCK_Acceptor.i
index 7fd8cb04095..01cc06fd8bb 100644
--- a/ace/SSL/SSL_SOCK_Acceptor.i
+++ b/ace/SSL/SSL_SOCK_Acceptor.i
@@ -2,7 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE
ACE_SSL_SOCK_Acceptor::ACE_SSL_SOCK_Acceptor (void)
@@ -81,5 +80,3 @@ ACE_SSL_SOCK_Acceptor::close (void)
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK_Connector.cpp b/ace/SSL/SSL_SOCK_Connector.cpp
index 41e00ff6f4a..5b6f2e09e0c 100644
--- a/ace/SSL/SSL_SOCK_Connector.cpp
+++ b/ace/SSL/SSL_SOCK_Connector.cpp
@@ -20,10 +20,9 @@ ACE_RCSID (ACE_SSL,
SSL_SOCK_Connector,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SSL_SOCK_Connector)
+
ACE_SSL_SOCK_Connector::~ACE_SSL_SOCK_Connector (void)
{
ACE_TRACE ("ACE_SSL_SOCK_Connector::~ACE_SSL_SOCK_Connector");
@@ -407,5 +406,3 @@ ACE_SSL_SOCK_Connector::ACE_SSL_SOCK_Connector (
reuse_addr,
perms);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK_Connector.h b/ace/SSL/SSL_SOCK_Connector.h
index 702dbbf82ec..9ece41271a2 100644
--- a/ace/SSL/SSL_SOCK_Connector.h
+++ b/ace/SSL/SSL_SOCK_Connector.h
@@ -30,8 +30,6 @@
#include "ace/SOCK_Connector.h"
#include "ace/OS_QoS.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SSL_SOCK_Connector
*
@@ -260,13 +258,13 @@ public:
int connect (ACE_SSL_SOCK_Stream &new_stream,
const ACE_Addr &remote_sap,
ACE_QoS_Params qos_params,
- const ACE_Time_Value *timeout = 0,
- const ACE_Addr &local_sap = ACE_Addr::sap_any,
+ const ACE_Time_Value *timeout = 0,
+ const ACE_Addr &local_sap = ACE_Addr::sap_any,
ACE_Protocol_Info *protocolinfo = 0,
ACE_SOCK_GROUP g = 0,
u_long flags = 0,
- int reuse_addr = 0,
- int perms = 0);
+ int reuse_addr = 0,
+ int perms = 0);
/**
* Try to complete a non-blocking connection.
@@ -307,8 +305,6 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "SSL_SOCK_Connector.i"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SSL/SSL_SOCK_Connector.i b/ace/SSL/SSL_SOCK_Connector.i
index 67b5ef01540..f216828c622 100644
--- a/ace/SSL/SSL_SOCK_Connector.i
+++ b/ace/SSL/SSL_SOCK_Connector.i
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// SSL_SOCK_Connector.i
ACE_INLINE
ACE_SSL_SOCK_Connector::ACE_SSL_SOCK_Connector (void)
@@ -24,5 +23,3 @@ ACE_SSL_SOCK_Connector::dump (void) const
ACE_TRACE ("ACE_SSL_SOCK_Connector::dump");
this->connector_.dump ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK_Stream.cpp b/ace/SSL/SSL_SOCK_Stream.cpp
index d0ed9f3709e..fa50a8a5a62 100644
--- a/ace/SSL/SSL_SOCK_Stream.cpp
+++ b/ace/SSL/SSL_SOCK_Stream.cpp
@@ -5,7 +5,6 @@
#include "ace/Countdown_Time.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_sys_select.h"
-#include "ace/OS_Memory.h"
#include <openssl/err.h>
@@ -19,8 +18,6 @@ ACE_RCSID (ACE_SSL,
SSL_SOCK_Stream,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SSL_SOCK_Stream)
ACE_SSL_SOCK_Stream::ACE_SSL_SOCK_Stream (ACE_SSL_Context *context)
@@ -45,7 +42,7 @@ ACE_SSL_SOCK_Stream::ACE_SSL_SOCK_Stream (ACE_SSL_Context *context)
ACE_ERROR ((LM_ERROR,
"(%P|%t) ACE_SSL_SOCK_Stream "
"- cannot allocate new SSL structure %p\n",
- ACE_TEXT ("")));
+ ACE_LIB_TEXT ("")));
}
}
@@ -158,11 +155,12 @@ ACE_SSL_SOCK_Stream::recvv (iovec *io_vec,
break;
}
- int inlen;
+ u_long inlen;
+
if (ACE_OS::ioctl (this->get_handle (),
FIONREAD,
- &inlen) == -1)
+ (u_long *) &inlen) == -1)
return -1;
else if (inlen > 0)
{
@@ -588,5 +586,3 @@ ACE_SSL_SOCK_Stream::get_remote_addr (ACE_Addr &addr) const
return -1;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SSL/SSL_SOCK_Stream.h b/ace/SSL/SSL_SOCK_Stream.h
index a58d91e7c4b..abace05d58f 100644
--- a/ace/SSL/SSL_SOCK_Stream.h
+++ b/ace/SSL/SSL_SOCK_Stream.h
@@ -34,7 +34,6 @@
#include "ace/SOCK_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_SSL_SOCK_Stream
@@ -310,8 +309,6 @@ protected:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "SSL_SOCK_Stream.i"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SSL/SSL_SOCK_Stream.i b/ace/SSL/SSL_SOCK_Stream.i
index 352aca04b3e..b80cd3e2884 100644
--- a/ace/SSL/SSL_SOCK_Stream.i
+++ b/ace/SSL/SSL_SOCK_Stream.i
@@ -4,8 +4,6 @@
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void
ACE_SSL_SOCK_Stream::set_handle (ACE_HANDLE fd)
{
@@ -319,5 +317,3 @@ ACE_SSL_SOCK_Stream::ssl (void) const
{
return this->ssl_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SString.cpp b/ace/SString.cpp
index 1a014af0711..0d3ba9efef0 100644
--- a/ace/SString.cpp
+++ b/ace/SString.cpp
@@ -1,7 +1,6 @@
// $Id$
-#include "ace/Malloc_T.h"
-#include "ace/OS_Memory.h"
+#include "ace/Malloc.h"
#if !defined (ACE_HAS_WINCE)
//# include "ace/Service_Config.h"
#endif /* !ACE_HAS_WINCE */
@@ -25,8 +24,6 @@ ACE_RCSID (ace,
// ************************************************************
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
ACE_OSTREAM_TYPE &
operator<< (ACE_OSTREAM_TYPE &os, const ACE_CString &cs)
@@ -41,12 +38,7 @@ operator<< (ACE_OSTREAM_TYPE &os, const ACE_WString &ws)
{
// @@ Need to figure out how to print the "wide" string
// on platforms that don't support "wide" strings.
-#if defined (ACE_HAS_WCHAR)
- os << ACE_Wide_To_Ascii (ws.fast_rep ()).char_rep ();
-#else
- ACE_UNUSED_ARG (ws);
- os << "(*non-printable string*)";
-#endif
+ os << ACE_TEXT_TO_CHAR_IN (ws.fast_rep ());
return os;
}
@@ -568,5 +560,3 @@ template ACE_String_Base<ACE_WSTRING_TYPE> operator + (const ACE_WSTRING_TYPE *,
template char ACE_String_Base<char>::NULL_String_;
template ACE_WSTRING_TYPE ACE_String_Base<ACE_WSTRING_TYPE>::NULL_String_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SString.h b/ace/SString.h
index 1d3f389b70f..f2f79014cc4 100644
--- a/ace/SString.h
+++ b/ace/SString.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -28,14 +28,10 @@
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
#include "ace/iosfwd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Export ACE_OSTREAM_TYPE &operator << (ACE_OSTREAM_TYPE &, const ACE_CString &);
ACE_Export ACE_OSTREAM_TYPE &operator << (ACE_OSTREAM_TYPE &, const ACE_WString &);
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT
template class ACE_Export ACE_String_Base<char>;
template class ACE_Export ACE_String_Base<ACE_WSTRING_TYPE>;
@@ -269,7 +265,7 @@ public:
* \a buffer will be parsed. Notice that ACE_Tokenizer will modify
* \a buffer if you use <code> delimiter_replace </code> or <code>
* preserve_designators </code> to do character substitution.
- * @note You should NOT pass a constant string or string literal
+ * NOTE: You should NOT pass a constant string or string literal
* to this constructor, since ACE_Tokenizer will try to modify
* the string.
* \sa preserve_designators
@@ -483,8 +479,6 @@ private:
char* p_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SString.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SString.inl b/ace/SString.inl
index 395623910a0..a985c5456af 100644
--- a/ace/SString.inl
+++ b/ace/SString.inl
@@ -9,10 +9,6 @@
# include "ace/ACE.h"
#endif /* !ACE_ACE_H */
-#include "ace/OS_NS_stdlib.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_NS_WString::ACE_NS_WString (ACE_Allocator *alloc)
: ACE_WString (alloc)
@@ -294,5 +290,3 @@ ACE_Auto_String_Free::release (void)
this->p_ = 0;
return p;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SStringfwd.h b/ace/SStringfwd.h
index 315553751ce..20e4b3011d2 100644
--- a/ace/SStringfwd.h
+++ b/ace/SStringfwd.h
@@ -19,17 +19,16 @@
#include /**/ "ace/pre.h"
-#include "ace/Basic_Types.h" /* ACE_WCHAR_T definition */
+#include "ace/Basic_Types.h" /* wchar_t definition */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class CHAR> class ACE_String_Base; // Forward declaration.
-typedef ACE_WCHAR_T ACE_WSTRING_TYPE;
+typedef wchar_t ACE_WSTRING_TYPE;
typedef ACE_String_Base<char> ACE_CString;
typedef ACE_String_Base<ACE_WSTRING_TYPE> ACE_WString;
@@ -42,8 +41,6 @@ typedef ACE_WString ACE_TString;
typedef ACE_CString ACE_TString;
#endif /* ACE_USES_WCHAR */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SSTRINGFWD_H */
diff --git a/ace/SUN_Proactor.cpp b/ace/SUN_Proactor.cpp
index c522f18d64b..2f6e69fcc3d 100644
--- a/ace/SUN_Proactor.cpp
+++ b/ace/SUN_Proactor.cpp
@@ -14,8 +14,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_SUN_Proactor::ACE_SUN_Proactor (size_t max_aio_operations)
: ACE_POSIX_AIOCB_Proactor (max_aio_operations,
ACE_POSIX_Proactor::PROACTOR_SUN),
@@ -317,8 +315,6 @@ ACE_POSIX_Proactor::Proactor_Type
ACE_SUN_Proactor::get_impl_type (void)
{
return PROACTOR_SUN;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+}
#endif /* ACE_HAS_AIO_CALLS && sun */
diff --git a/ace/SUN_Proactor.h b/ace/SUN_Proactor.h
index 9d104355578..fce65b40541 100644
--- a/ace/SUN_Proactor.h
+++ b/ace/SUN_Proactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/POSIX_Proactor.h"
#include /**/ <sys/asynch.h> // Sun native aio calls
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SUN_Proactor
*
@@ -49,16 +47,16 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* it has the following structure:
* typedef struct aiocb
* {
- * int aio_fildes; File descriptor
- * void *aio_buf; buffer location
+ * int aio_fildes; File descriptor
+ * void *aio_buf; buffer location
* size_t aio_nbytes; length of transfer
* off_t aio_offset; file offset
- * int aio_reqprio; request priority offset
+ * int aio_reqprio; request priority offset
* sigevent aio_sigevent; signal number and offset
- * int aio_lio_opcode; listio operation
- * aio_result_t aio_resultp; results
- * int aio_state; state flag for List I/O
- * int aio__pad[1]; extension padding
+ * int aio_lio_opcode; listio operation
+ * aio_result_t aio_resultp; results
+ * int aio_state; state flag for List I/O
+ * int aio__pad[1]; extension padding
* };
*/
class ACE_Export ACE_SUN_Proactor : public ACE_POSIX_AIOCB_Proactor
@@ -120,7 +118,5 @@ protected:
ACE_SYNCH_CONDITION condition_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_AIO_CALLS && sun */
#endif /* ACE_SUN_PROACTOR_H*/
diff --git a/ace/SV_Message.cpp b/ace/SV_Message.cpp
index 15368235910..f8ace600ab3 100644
--- a/ace/SV_Message.cpp
+++ b/ace/SV_Message.cpp
@@ -9,8 +9,6 @@
ACE_RCSID(ace, SV_Message, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SV_Message)
void
@@ -21,4 +19,3 @@ ACE_SV_Message::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Message.h b/ace/SV_Message.h
index 04a9e20c12b..2151329bd5c 100644
--- a/ace/SV_Message.h
+++ b/ace/SV_Message.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SV_Message
*
@@ -55,9 +53,6 @@ protected:
long type_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-
#if defined (__ACE_INLINE__)
#include "ace/SV_Message.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SV_Message.inl b/ace/SV_Message.inl
index 3f698bd5071..51c035370b8 100644
--- a/ace/SV_Message.inl
+++ b/ace/SV_Message.inl
@@ -1,12 +1,11 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// SV_Message.i
+
#include "ace/Global_Macros.h"
#include "ace/config-all.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_SV_Message::ACE_SV_Message (long t)
: type_ (t)
@@ -33,5 +32,3 @@ ACE_SV_Message::type (long t)
ACE_TRACE ("ACE_SV_Message::type");
this->type_ = t;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Message_Queue.cpp b/ace/SV_Message_Queue.cpp
index 1be06f0f8cc..3e57373e18d 100644
--- a/ace/SV_Message_Queue.cpp
+++ b/ace/SV_Message_Queue.cpp
@@ -9,8 +9,6 @@
ACE_RCSID(ace, SV_Message_Queue, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SV_Message_Queue)
void
@@ -32,13 +30,11 @@ ACE_SV_Message_Queue::~ACE_SV_Message_Queue (void)
}
ACE_SV_Message_Queue::ACE_SV_Message_Queue (key_t external_id,
- int create,
- int perms)
+ int create,
+ int perms)
{
ACE_TRACE ("ACE_SV_Message_Queue::ACE_SV_Message_Queue");
if (this->open (external_id, create, perms) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"),
- ACE_LIB_TEXT ("ACE_SV_Message_Queue::ACE_SV_Message_Queue")));
+ ACE_LIB_TEXT ("ACE_SV_Message_Queue::ACE_SV_Message_Queue")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Message_Queue.h b/ace/SV_Message_Queue.h
index 42fd8f08693..ac36423a463 100644
--- a/ace/SV_Message_Queue.h
+++ b/ace/SV_Message_Queue.h
@@ -26,8 +26,6 @@
#include "ace/os_include/sys/os_ipc.h"
#include "ace/Default_Constants.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SV_Message_Queue
*
@@ -94,8 +92,6 @@ protected:
int internal_id_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SV_Message_Queue.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SV_Message_Queue.inl b/ace/SV_Message_Queue.inl
index b84f6379901..63585329b87 100644
--- a/ace/SV_Message_Queue.inl
+++ b/ace/SV_Message_Queue.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Global_Macros.h"
#include "ace/OS_NS_sys_msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Open a message queue using the <external_id>.
ACE_INLINE int
@@ -31,7 +28,7 @@ ACE_SV_Message_Queue::control (int option, void *arg)
{
ACE_TRACE ("ACE_SV_Message_Queue::control");
return ACE_OS::msgctl (this->internal_id_, option,
- (struct msqid_ds *) arg);
+ (struct msqid_ds *) arg);
}
ACE_INLINE int
@@ -59,23 +56,22 @@ ACE_SV_Message_Queue::set_id (int id)
ACE_INLINE ssize_t
ACE_SV_Message_Queue::recv (ACE_SV_Message &mb,
- int length,
- long type,
- int mflags)
+ int length,
+ long type,
+ int mflags)
{
ACE_TRACE ("ACE_SV_Message_Queue::recv");
return ACE_OS::msgrcv (this->internal_id_, (void *) &mb,
- length, type, mflags);
+ length, type, mflags);
}
ACE_INLINE int
ACE_SV_Message_Queue::send (const ACE_SV_Message &mb,
- int length,
- int mflags)
+ int length,
+ int mflags)
{
ACE_TRACE ("ACE_SV_Message_Queue::send");
return ACE_OS::msgsnd (this->internal_id_, (void *) &mb,
- length, mflags);
+ length, mflags);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Semaphore_Complex.cpp b/ace/SV_Semaphore_Complex.cpp
index ce3c0b07858..cb81d8838f3 100644
--- a/ace/SV_Semaphore_Complex.cpp
+++ b/ace/SV_Semaphore_Complex.cpp
@@ -11,8 +11,6 @@
ACE_RCSID(ace, SV_Semaphore_Complex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SV_Semaphore_Complex)
void
@@ -29,46 +27,46 @@ const int ACE_SV_Semaphore_Complex::BIGCOUNT_ = 10000;
// Define the ACE_SV_Semaphore operation arrays for the semop() calls.
sembuf ACE_SV_Semaphore_Complex::op_lock_[2] =
{
- {0, 0, 0}, // Wait for [0] (lock) to equal 0
- {0, 1, SEM_UNDO}, // then increment [0] to 1 - this locks it.
+ {0, 0, 0}, // Wait for [0] (lock) to equal 0
+ {0, 1, SEM_UNDO}, // then increment [0] to 1 - this locks it.
// UNDO to release the lock if processes exit
- // before explicitly unlocking.
+ // before explicitly unlocking.
};
sembuf ACE_SV_Semaphore_Complex::op_endcreate_[2] =
{
- {1, -1, SEM_UNDO}, // Decrement [1] (proc counter) with undo on
+ {1, -1, SEM_UNDO}, // Decrement [1] (proc counter) with undo on
// exit, UNDO to adjust proc counter if
- // process exits before explicitly calling close()
- {0, -1, SEM_UNDO}, // the decrement [0] (lock) back to 0
+ // process exits before explicitly calling close()
+ {0, -1, SEM_UNDO}, // the decrement [0] (lock) back to 0
};
sembuf ACE_SV_Semaphore_Complex::op_open_[1] =
{
- {1, -1, SEM_UNDO}, // Decrement [1] (proc counter) with undo on
+ {1, -1, SEM_UNDO}, // Decrement [1] (proc counter) with undo on
// exit.
};
sembuf ACE_SV_Semaphore_Complex::op_close_[3] =
{
- {0, 0, 0}, // Wait for [0] (lock) to equal 0
- {0, 1, SEM_UNDO}, // then increment [0] to 1 - this lock it
- {1, 1, SEM_UNDO}, // then increment [1] (proc counter)
+ {0, 0, 0}, // Wait for [0] (lock) to equal 0
+ {0, 1, SEM_UNDO}, // then increment [0] to 1 - this lock it
+ {1, 1, SEM_UNDO}, // then increment [1] (proc counter)
};
sembuf ACE_SV_Semaphore_Complex::op_unlock_[1] =
{
- {0, -1, SEM_UNDO}, // Decrement [0] (lock) back to 0
+ {0, -1, SEM_UNDO}, // Decrement [0] (lock) back to 0
};
// Open or create an array of SV_Semaphores. We return 0 if all is OK, else -1.
int
ACE_SV_Semaphore_Complex::open (key_t k,
- short create,
- int initial_value,
- u_short nsems,
- mode_t perms)
+ int create,
+ int initial_value,
+ u_short nsems,
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::open");
if (k == IPC_PRIVATE)
@@ -85,35 +83,35 @@ ACE_SV_Semaphore_Complex::open (key_t k,
int result;
do
- {
- this->internal_id_ = ACE_OS::semget
+ {
+ this->internal_id_ = ACE_OS::semget
(this->key_,
(u_short) 2 + nsems,
perms | ACE_SV_Semaphore_Complex::ACE_CREATE);
- if (this->internal_id_ == -1)
- return -1; // permission problem or tables full
-
- // When the <ACE_SV_Semaphore_Complex> is created, we know
- // that the value of all 3 members is 0. Get a lock on the
- // <ACE_SV_Semaphore_Complex> by waiting for [0] to equal 0,
- // then increment it.
-
- // There is a race condition here. There is the possibility
- // that between the <semget> above and the <semop> below,
- // another process can call out <close> function which can
- // remove the <ACE_SV_Semaphore> if that process is the last
- // one using it. Therefor we handle the error condition of
- // an invalid <ACE_SV_Semaphore> ID specifically below, and
- // if it does happen, we just go back and create it again.
- result = ACE_OS::semop (this->internal_id_,
- &ACE_SV_Semaphore_Complex::op_lock_[0],
- 2);
- }
+ if (this->internal_id_ == -1)
+ return -1; // permission problem or tables full
+
+ // When the <ACE_SV_Semaphore_Complex> is created, we know
+ // that the value of all 3 members is 0. Get a lock on the
+ // <ACE_SV_Semaphore_Complex> by waiting for [0] to equal 0,
+ // then increment it.
+
+ // There is a race condition here. There is the possibility
+ // that between the <semget> above and the <semop> below,
+ // another process can call out <close> function which can
+ // remove the <ACE_SV_Semaphore> if that process is the last
+ // one using it. Therefor we handle the error condition of
+ // an invalid <ACE_SV_Semaphore> ID specifically below, and
+ // if it does happen, we just go back and create it again.
+ result = ACE_OS::semop (this->internal_id_,
+ &ACE_SV_Semaphore_Complex::op_lock_[0],
+ 2);
+ }
while (result == -1 && (errno == EINVAL || errno == EIDRM));
if (result == -1)
- return -1;
+ return -1;
// Get the value of the process counter. If it equals 0, then no
// one has initialized the ACE_SV_Semaphore yet.
@@ -121,53 +119,53 @@ ACE_SV_Semaphore_Complex::open (key_t k,
int semval = ACE_SV_Semaphore_Simple::control (GETVAL, 0, 1);
if (semval == -1)
- return this->init ();
+ return this->init ();
else if (semval == 0)
- {
- // We should initialize by doing a SETALL, but that would
- // clear the adjust value that we set when we locked the
- // ACE_SV_Semaphore above. Instead we do system calls to
- // initialize [1], as well as all the nsems SV_Semaphores.
-
- if (ACE_SV_Semaphore_Simple::control (SETVAL,
- ACE_SV_Semaphore_Complex::BIGCOUNT_,
- 1) == -1)
- return -1;
- else
- for (u_short i = 0; i < nsems; i++)
- if (this->control (SETVAL, initial_value, i) == -1)
- return -1;
- }
+ {
+ // We should initialize by doing a SETALL, but that would
+ // clear the adjust value that we set when we locked the
+ // ACE_SV_Semaphore above. Instead we do system calls to
+ // initialize [1], as well as all the nsems SV_Semaphores.
+
+ if (ACE_SV_Semaphore_Simple::control (SETVAL,
+ ACE_SV_Semaphore_Complex::BIGCOUNT_,
+ 1) == -1)
+ return -1;
+ else
+ for (u_short i = 0; i < nsems; i++)
+ if (this->control (SETVAL, initial_value, i) == -1)
+ return -1;
+ }
// Decrement the process counter and then release the lock.
return ACE_OS::semop (this->internal_id_,
- &ACE_SV_Semaphore_Complex::op_endcreate_[0],
- 2);
+ &ACE_SV_Semaphore_Complex::op_endcreate_[0],
+ 2);
}
else
{
this->internal_id_ = ACE_OS::semget (this->key_, 2 + nsems, 0);
if (this->internal_id_ == -1)
- return -1; // doesn't exist or tables full
+ return -1; // doesn't exist or tables full
// Decrement the process counter. We don't need a lock to do this.
if (ACE_OS::semop (this->internal_id_,
- &ACE_SV_Semaphore_Complex::op_open_[0], 1) < 0)
- return this->init ();
+ &ACE_SV_Semaphore_Complex::op_open_[0], 1) < 0)
+ return this->init ();
return 0;
}
}
int
ACE_SV_Semaphore_Complex::open (const char *name,
- short flags,
- int initial_value,
- u_short nsems,
- mode_t perms)
+ int flags,
+ int initial_value,
+ u_short nsems,
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::open");
return this->open (ACE_SV_Semaphore_Simple::name_2_key (name),
- flags, initial_value, nsems, perms);
+ flags, initial_value, nsems, perms);
}
// Close a ACE_SV_Semaphore. Unlike the remove above, this function
@@ -189,8 +187,8 @@ ACE_SV_Semaphore_Complex::close (void)
// then increments [1] - the process number.
if (ACE_OS::semop (this->internal_id_,
- &ACE_SV_Semaphore_Complex::op_close_[0],
- 3) == -1)
+ &ACE_SV_Semaphore_Complex::op_close_[0],
+ 3) == -1)
return -1;
// Now that we have a lock, read the value of the process counter to
@@ -207,17 +205,17 @@ ACE_SV_Semaphore_Complex::close (void)
else
{
int result = ACE_OS::semop (this->internal_id_,
- &ACE_SV_Semaphore_Complex::op_unlock_[0], 1);
+ &ACE_SV_Semaphore_Complex::op_unlock_[0], 1);
this->init ();
return result;
}
}
ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex (key_t k,
- short flags,
- int initial_value,
- u_short nsems,
- mode_t perms)
+ int flags,
+ int initial_value,
+ u_short nsems,
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex");
if (this->open (k, flags, initial_value, nsems, perms) == -1)
@@ -225,10 +223,10 @@ ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex (key_t k,
}
ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex (const char *name,
- short flags,
- int initial_value,
- u_short nsems,
- mode_t perms)
+ int flags,
+ int initial_value,
+ u_short nsems,
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex");
@@ -255,5 +253,3 @@ ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex (void)
ACE_TRACE ("ACE_SV_Semaphore_Complex::ACE_SV_Semaphore_Complex");
this->init ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Semaphore_Complex.h b/ace/SV_Semaphore_Complex.h
index de48fc09359..6278fb694c9 100644
--- a/ace/SV_Semaphore_Complex.h
+++ b/ace/SV_Semaphore_Complex.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SV_Semaphore_Complex
*
@@ -63,32 +61,32 @@ public:
// = Initialization and termination methods.
ACE_SV_Semaphore_Complex (void);
ACE_SV_Semaphore_Complex (key_t key,
- short create = ACE_SV_Semaphore_Complex::ACE_CREATE,
+ int create = ACE_SV_Semaphore_Complex::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
ACE_SV_Semaphore_Complex (const char *name,
- short create = ACE_SV_Semaphore_Complex::ACE_CREATE,
+ int create = ACE_SV_Semaphore_Complex::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
~ACE_SV_Semaphore_Complex (void);
/// Open or create an array of SV_Semaphores. We return 0 if all is
/// OK, else -1.
int open (const char *name,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
/// Open or create an array of SV_Semaphores. We return 0 if all is
/// OK, else -1.
int open (key_t key,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
/**
* Close an ACE_SV_Semaphore. Unlike the <remove> method, this
@@ -102,28 +100,28 @@ public:
// = Semaphore acquire and release methods.
/// Acquire the semaphore.
- int acquire (u_short n = 0, short flags = 0) const;
+ int acquire (u_short n = 0, int flags = 0) const;
/// Acquire a semaphore for reading.
- int acquire_read (u_short n = 0, short flags = 0) const;
+ int acquire_read (u_short n = 0, int flags = 0) const;
/// Acquire a semaphore for writing
- int acquire_write (u_short n = 0, short flags = 0) const;
+ int acquire_write (u_short n = 0, int flags = 0) const;
/// Try to acquire the semaphore.
- int tryacquire (u_short n = 0, short flags = 0) const;
+ int tryacquire (u_short n = 0, int flags = 0) const;
/// Try to acquire the semaphore for reading.
- int tryacquire_read (u_short n = 0, short flags = 0) const;
+ int tryacquire_read (u_short n = 0, int flags = 0) const;
/// Try to acquire the semaphore for writing.
- int tryacquire_write (u_short n = 0, short flags = 0) const;
+ int tryacquire_write (u_short n = 0, int flags = 0) const;
/// Release the semaphore.
- int release (u_short n = 0, short flags = 0) const;
+ int release (u_short n = 0, int flags = 0) const;
// = Semaphore operation methods.
- int op (short val, u_short n = 0, short flags = 0) const;
+ int op (int val, u_short n = 0, int flags = 0) const;
int op (sembuf op_vec[], u_short n) const;
// = Semaphore control methods.
@@ -131,8 +129,8 @@ public:
int control (int cmd, int value = 0, u_short n = 0) const;
// = Upgrade access control...
- using ACE_SV_Semaphore_Simple::get_id;
- using ACE_SV_Semaphore_Simple::remove;
+ ACE_USING ACE_SV_Semaphore_Simple::get_id;
+ ACE_USING ACE_SV_Semaphore_Simple::remove;
/// Dump the state of an object.
void dump (void) const;
@@ -149,8 +147,6 @@ private:
static sembuf op_unlock_[1];
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SV_Semaphore_Complex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SV_Semaphore_Complex.inl b/ace/SV_Semaphore_Complex.inl
index 8b80748ebf5..00c3450c1bd 100644
--- a/ace/SV_Semaphore_Complex.inl
+++ b/ace/SV_Semaphore_Complex.inl
@@ -1,60 +1,57 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
-ACE_SV_Semaphore_Complex::acquire (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::acquire (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::acquire");
return ACE_SV_Semaphore_Simple::acquire ((u_short) n + 2, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::acquire_read (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::acquire_read (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::acquire_read");
return this->acquire (n, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::acquire_write (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::acquire_write (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::acquire_write");
return this->acquire (n, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::tryacquire (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::tryacquire (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::tryacquire");
return ACE_SV_Semaphore_Simple::tryacquire ((u_short) n + 2, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::tryacquire_read (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::tryacquire_read (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::tryacquire_read");
return this->tryacquire (n, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::tryacquire_write (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::tryacquire_write (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::tryacquire_write");
return this->tryacquire (n, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::release (u_short n, short flags) const
+ACE_SV_Semaphore_Complex::release (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::release");
return ACE_SV_Semaphore_Simple::release ((u_short) n + 2, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Complex::op (short val, u_short n, short flags) const
+ACE_SV_Semaphore_Complex::op (int val, u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Complex::op");
return ACE_SV_Semaphore_Simple::op (val, (u_short) n + 2, flags);
@@ -80,5 +77,3 @@ ACE_SV_Semaphore_Complex::control (int cmd, int value, u_short n) const
ACE_TRACE ("ACE_SV_Semaphore_Complex::control");
return ACE_SV_Semaphore_Simple::control (cmd, value, (u_short) n + 2);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Semaphore_Simple.cpp b/ace/SV_Semaphore_Simple.cpp
index 42fac9be0c7..5fb1260144c 100644
--- a/ace/SV_Semaphore_Simple.cpp
+++ b/ace/SV_Semaphore_Simple.cpp
@@ -11,10 +11,9 @@ ACE_RCSID (ace,
SV_Semaphore_Simple,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_SV_Semaphore_Simple)
+
void
ACE_SV_Semaphore_Simple::dump (void) const
{
@@ -56,7 +55,7 @@ ACE_SV_Semaphore_Simple::init (key_t k, int i)
// specific amount (positive or negative; amount can`t be zero).
int
-ACE_SV_Semaphore_Simple::op (short val, u_short n, short flags) const
+ACE_SV_Semaphore_Simple::op (int val, u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::op");
sembuf op_op;
@@ -77,10 +76,10 @@ ACE_SV_Semaphore_Simple::op (short val, u_short n, short flags) const
int
ACE_SV_Semaphore_Simple::open (key_t k,
- short flags,
+ int flags,
int initial_value,
u_short n,
- mode_t perms)
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::open");
union semun ivalue;
@@ -106,10 +105,10 @@ ACE_SV_Semaphore_Simple::open (key_t k,
}
ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple (key_t k,
- short flags,
+ int flags,
int initial_value,
u_short n,
- mode_t perms)
+ int perms)
: key_ (k)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple");
@@ -154,10 +153,10 @@ ACE_SV_Semaphore_Simple::name_2_key (const char *name)
int
ACE_SV_Semaphore_Simple::open (const char *name,
- short flags,
+ int flags,
int initial_value,
u_short n,
- mode_t perms)
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::open");
@@ -172,10 +171,10 @@ ACE_SV_Semaphore_Simple::open (const char *name,
}
ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple (const char *name,
- short flags,
+ int flags,
int initial_value,
u_short n,
- mode_t perms)
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple");
if (this->open (name,
@@ -188,15 +187,14 @@ ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple (const char *name,
ACE_LIB_TEXT ("ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple")));
}
-#if defined (ACE_HAS_WCHAR)
ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple (const wchar_t *name,
- short flags,
+ int flags,
int initial_value,
u_short nsems,
- mode_t perms)
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple(wchar_t)");
- if (this->open (ACE_Wide_To_Ascii (name).char_rep (),
+ if (this->open (ACE_TEXT_TO_CHAR_IN (name),
flags,
initial_value,
nsems,
@@ -205,7 +203,6 @@ ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple (const wchar_t *name,
ACE_LIB_TEXT ("%p\n"),
ACE_LIB_TEXT ("ACE_SV_Semaphore_Simple::ACE_SV_Semaphore_Simple")));
}
-#endif /* ACE_HAS_WCHAR */
ACE_SV_Semaphore_Simple::~ACE_SV_Semaphore_Simple (void)
{
@@ -233,5 +230,3 @@ ACE_SV_Semaphore_Simple::remove (void) const
((ACE_SV_Semaphore_Simple *) this)->init ();
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Semaphore_Simple.h b/ace/SV_Semaphore_Simple.h
index af999654f0f..02d0da8ed12 100644
--- a/ace/SV_Semaphore_Simple.h
+++ b/ace/SV_Semaphore_Simple.h
@@ -38,8 +38,6 @@
# endif /* ACE_DEFAULT_SEM_KEY */
#endif /* ACE_WIN32 */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SV_Semaphore_Simple
*
@@ -60,46 +58,43 @@ public:
// = Initialization and termination methods.
ACE_SV_Semaphore_Simple (void);
ACE_SV_Semaphore_Simple (key_t key,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
ACE_SV_Semaphore_Simple (const char *name,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
-#if defined (ACE_HAS_WCHAR)
+ int perms = ACE_DEFAULT_FILE_PERMS);
+
ACE_SV_Semaphore_Simple (const wchar_t *name,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
-#endif /* ACE_HAS_WCHAR */
+ int perms = ACE_DEFAULT_FILE_PERMS);
~ACE_SV_Semaphore_Simple (void);
int open (const char *name,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
-#if defined (ACE_HAS_WCHAR)
int open (const wchar_t *name,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
-#endif /* ACE_HAS_WCHAR */
+ int perms = ACE_DEFAULT_FILE_PERMS);
/// Open or create one or more SV_Semaphores. We return 0 if all is
/// OK, else -1.
int open (key_t key,
- short flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
+ int flags = ACE_SV_Semaphore_Simple::ACE_CREATE,
int initial_value = 1,
u_short nsems = 1,
- mode_t perms = ACE_DEFAULT_FILE_PERMS);
+ int perms = ACE_DEFAULT_FILE_PERMS);
/// Close a ACE_SV_Semaphore, marking it as invalid for subsequent
/// operations...
@@ -120,31 +115,31 @@ public:
* decrement it by 1 and return. Dijkstra's P operation, Tannenbaums
* DOWN operation.
*/
- int acquire (u_short n = 0, short flags = 0) const;
+ int acquire (u_short n = 0, int flags = 0) const;
/// Acquire a semaphore for reading.
- int acquire_read (u_short n = 0, short flags = 0) const;
+ int acquire_read (u_short n = 0, int flags = 0) const;
/// Acquire a semaphore for writing
- int acquire_write (u_short n = 0, short flags = 0) const;
+ int acquire_write (u_short n = 0, int flags = 0) const;
/// Non-blocking version of <acquire>.
- int tryacquire (u_short n = 0, short flags = 0) const;
+ int tryacquire (u_short n = 0, int flags = 0) const;
/// Try to acquire the semaphore for reading.
- int tryacquire_read (u_short n = 0, short flags = 0) const;
+ int tryacquire_read (u_short n = 0, int flags = 0) const;
/// Try to acquire the semaphore for writing.
- int tryacquire_write (u_short n = 0, short flags = 0) const;
+ int tryacquire_write (u_short n = 0, int flags = 0) const;
/// Increment ACE_SV_Semaphore by one. Dijkstra's V operation,
/// Tannenbaums UP operation.
- int release (u_short n = 0, short flags = 0) const;
+ int release (u_short n = 0, int flags = 0) const;
// = Semaphore operation methods.
/// General ACE_SV_Semaphore operation. Increment or decrement by a
/// specific amount (positive or negative; amount can`t be zero).
- int op (short val, u_short semnum = 0, short flags = SEM_UNDO) const;
+ int op (int val, u_short semnum = 0, int flags = SEM_UNDO) const;
/// General ACE_SV_Semaphore operation on an array of SV_Semaphores.
int op (sembuf op_vec[], u_short nsems) const;
@@ -186,8 +181,6 @@ protected:
key_t name_2_key (const char *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SV_Semaphore_Simple.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SV_Semaphore_Simple.inl b/ace/SV_Semaphore_Simple.inl
index 5dde75ffff6..46122d4e140 100644
--- a/ace/SV_Semaphore_Simple.inl
+++ b/ace/SV_Semaphore_Simple.inl
@@ -1,35 +1,32 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// SV_Semaphore_Simple.i
+
#include "ace/Global_Macros.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_HAS_WCHAR)
// Semaphores don't offer wide-char names, so convert the name and forward
// to the narrow-char open().
ACE_INLINE int
ACE_SV_Semaphore_Simple::open (const wchar_t *name,
- short flags,
+ int flags,
int initial_value,
u_short nsems,
- mode_t perms)
+ int perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::open (wchar_t)");
- return this->open (ACE_Wide_To_Ascii (name).char_rep (),
+ return this->open (ACE_TEXT_TO_CHAR_IN (name),
flags,
initial_value,
nsems,
perms);
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_SV_Semaphore_Simple::control (int cmd,
- semun arg,
- u_short n) const
+ semun arg,
+ u_short n) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::control");
return this->internal_id_ == -1 ?
@@ -61,21 +58,21 @@ ACE_SV_Semaphore_Simple::op (sembuf op_vec[], u_short n) const
// DOWN operation.
ACE_INLINE int
-ACE_SV_Semaphore_Simple::acquire (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::acquire (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::acquire");
return this->op (-1, n, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Simple::acquire_read (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::acquire_read (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::acquire_read");
return this->acquire (n, flags);
}
ACE_INLINE int
-ACE_SV_Semaphore_Simple::acquire_write (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::acquire_write (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::acquire_write");
return this->acquire (n, flags);
@@ -84,7 +81,7 @@ ACE_SV_Semaphore_Simple::acquire_write (u_short n, short flags) const
// Non-blocking version of acquire().
ACE_INLINE int
-ACE_SV_Semaphore_Simple::tryacquire (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::tryacquire (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::tryacquire");
return this->op (-1, n, flags | IPC_NOWAIT);
@@ -93,7 +90,7 @@ ACE_SV_Semaphore_Simple::tryacquire (u_short n, short flags) const
// Non-blocking version of acquire().
ACE_INLINE int
-ACE_SV_Semaphore_Simple::tryacquire_read (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::tryacquire_read (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::tryacquire_read");
return this->tryacquire (n, flags);
@@ -102,7 +99,7 @@ ACE_SV_Semaphore_Simple::tryacquire_read (u_short n, short flags) const
// Non-blocking version of acquire().
ACE_INLINE int
-ACE_SV_Semaphore_Simple::tryacquire_write (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::tryacquire_write (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::tryacquire_write");
return this->tryacquire (n, flags);
@@ -112,7 +109,7 @@ ACE_SV_Semaphore_Simple::tryacquire_write (u_short n, short flags) const
// Tannenbaums UP operation.
ACE_INLINE int
-ACE_SV_Semaphore_Simple::release (u_short n, short flags) const
+ACE_SV_Semaphore_Simple::release (u_short n, int flags) const
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::release");
return this->op (1, n, flags);
@@ -125,4 +122,3 @@ ACE_SV_Semaphore_Simple::get_id (void) const
return this->internal_id_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Shared_Memory.cpp b/ace/SV_Shared_Memory.cpp
index ab56249cbe6..5a9d33e934f 100644
--- a/ace/SV_Shared_Memory.cpp
+++ b/ace/SV_Shared_Memory.cpp
@@ -1,3 +1,4 @@
+// SV_Shared_Memory.cpp
// $Id$
#include "ace/SV_Shared_Memory.h"
@@ -9,8 +10,6 @@
ACE_RCSID(ace, SV_Shared_Memory, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_SV_Shared_Memory)
void
@@ -26,11 +25,11 @@ ACE_SV_Shared_Memory::dump (void) const
int
ACE_SV_Shared_Memory::open_and_attach (key_t external_id,
- size_t sz,
- int create,
- int perms,
- void *virtual_addr,
- int flags)
+ size_t sz,
+ int create,
+ int perms,
+ void *virtual_addr,
+ int flags)
{
ACE_TRACE ("ACE_SV_Shared_Memory::open_and_attach");
if (this->open (external_id, sz, create, perms) == -1)
@@ -44,17 +43,17 @@ ACE_SV_Shared_Memory::open_and_attach (key_t external_id,
// Constructor interface to this->open_and_attach () member function.
ACE_SV_Shared_Memory::ACE_SV_Shared_Memory (key_t external_id,
- size_t sz,
- int create,
- int perms,
- void *virtual_addr,
- int flags)
+ size_t sz,
+ int create,
+ int perms,
+ void *virtual_addr,
+ int flags)
{
ACE_TRACE ("ACE_SV_Shared_Memory::ACE_SV_Shared_Memory");
if (this->open_and_attach (external_id, sz, create,
- perms, virtual_addr, flags) == -1)
+ perms, virtual_addr, flags) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"),
- ACE_LIB_TEXT ("ACE_SV_Shared_Memory::ACE_SV_Shared_Memory")));
+ ACE_LIB_TEXT ("ACE_SV_Shared_Memory::ACE_SV_Shared_Memory")));
}
// The "do nothing" constructor.
@@ -75,14 +74,12 @@ ACE_SV_Shared_Memory::ACE_SV_Shared_Memory (void)
// (maw@fsg.com).
ACE_SV_Shared_Memory::ACE_SV_Shared_Memory (ACE_HANDLE int_id,
- int flags)
+ int flags)
: internal_id_ (int_id),
size_ (0)
{
ACE_TRACE ("ACE_SV_Shared_Memory::ACE_SV_Shared_Memory");
if (this->attach (0, flags) == -1)
ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("%p\n"),
- ACE_LIB_TEXT ("ACE_SV_Shared_Memory::ACE_SV_Shared_Memory")));
+ ACE_LIB_TEXT ("ACE_SV_Shared_Memory::ACE_SV_Shared_Memory")));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/SV_Shared_Memory.h b/ace/SV_Shared_Memory.h
index 4f4da514c45..0cbb8febe7e 100644
--- a/ace/SV_Shared_Memory.h
+++ b/ace/SV_Shared_Memory.h
@@ -15,7 +15,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -25,14 +30,12 @@
#include "ace/os_include/sys/os_ipc.h"
#include "ace/Default_Constants.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_SV_Shared_Memory
*
* @brief This is a wrapper for System V shared memory.
*/
-class ACE_Export ACE_SV_Shared_Memory
+class ACE_Memory_Export ACE_SV_Shared_Memory
{
public:
enum
@@ -111,8 +114,6 @@ protected:
size_t round_up (size_t len);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/SV_Shared_Memory.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/SV_Shared_Memory.inl b/ace/SV_Shared_Memory.inl
index 3aaa41414e0..f01f5b2c969 100644
--- a/ace/SV_Shared_Memory.inl
+++ b/ace/SV_Shared_Memory.inl
@@ -1,13 +1,12 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// SV_Shared_Memory.i
+
#include "ace/OS_NS_sys_shm.h"
#include "ace/Global_Macros.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE size_t
ACE_SV_Shared_Memory::round_up (size_t len)
{
@@ -18,15 +17,15 @@ ACE_SV_Shared_Memory::round_up (size_t len)
// Creates a shared memory segment of SIZE bytes. Does *not* attach
// this memory segment...
-ACE_INLINE int
+ACE_INLINE int
ACE_SV_Shared_Memory::open (key_t external_id, size_t sz, int create, int perms)
{
ACE_TRACE ("ACE_SV_Shared_Memory::open");
#if defined (ACE_WIN32)
- ACE_UNUSED_ARG(perms);
- ACE_UNUSED_ARG(create);
- ACE_UNUSED_ARG(sz);
- ACE_UNUSED_ARG(external_id);
+ ACE_UNUSED_ARG(perms);
+ ACE_UNUSED_ARG(create);
+ ACE_UNUSED_ARG(sz);
+ ACE_UNUSED_ARG(external_id);
ACE_NOTSUP_RETURN (-1);
#else
this->segment_ptr_ = 0;
@@ -38,15 +37,15 @@ ACE_SV_Shared_Memory::open (key_t external_id, size_t sz, int create, int perms)
#endif /* ACE_WIN32 */
}
-// Attachs to the shared memory segment.
+// Attachs to the shared memory segment.
ACE_INLINE int
ACE_SV_Shared_Memory::attach (void *virtual_addr, int flags)
{
ACE_TRACE ("ACE_SV_Shared_Memory::attach");
#if defined (ACE_WIN32)
- ACE_UNUSED_ARG(flags);
- ACE_UNUSED_ARG(virtual_addr);
+ ACE_UNUSED_ARG(flags);
+ ACE_UNUSED_ARG(virtual_addr);
ACE_NOTSUP_RETURN (-1);
#else
this->segment_ptr_ = ACE_OS::shmat (this->internal_id_, virtual_addr, flags);
@@ -54,23 +53,23 @@ ACE_SV_Shared_Memory::attach (void *virtual_addr, int flags)
#endif /* ACE_WIN32 */
}
-// Interface to the underlying shared memory control function.
+// Interface to the underlying shared memory control function.
ACE_INLINE int
ACE_SV_Shared_Memory::control (int cmd, void *buf)
{
ACE_TRACE ("ACE_SV_Shared_Memory::control");
#if defined (ACE_WIN32)
- ACE_UNUSED_ARG(cmd);
- ACE_UNUSED_ARG(buf);
-
- ACE_NOTSUP_RETURN (-1);
+ ACE_UNUSED_ARG(cmd);
+ ACE_UNUSED_ARG(buf);
+
+ ACE_NOTSUP_RETURN (-1);
#else
return ACE_OS::shmctl (this->internal_id_, cmd, (struct shmid_ds *) buf);
#endif /* ACE_WIN32 */
}
-// The overall size of the segment.
+// The overall size of the segment.
ACE_INLINE size_t
ACE_SV_Shared_Memory::get_segment_size (void) const
@@ -79,7 +78,7 @@ ACE_SV_Shared_Memory::get_segment_size (void) const
return this->size_;
}
-// Removes the shared memory segment.
+// Removes the shared memory segment.
ACE_INLINE int
ACE_SV_Shared_Memory::remove (void)
@@ -115,5 +114,3 @@ ACE_SV_Shared_Memory::get_id (void) const
ACE_TRACE ("ACE_SV_Shared_Memory::get_id");
return this->internal_id_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Sample_History.cpp b/ace/Sample_History.cpp
index ffa138571d0..fac82d844e1 100644
--- a/ace/Sample_History.cpp
+++ b/ace/Sample_History.cpp
@@ -12,9 +12,6 @@
ACE_RCSID(ace, Sample_History, "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Sample_History::ACE_Sample_History (size_t max_samples)
: max_samples_ (max_samples)
, sample_count_ (0)
@@ -61,5 +58,3 @@ ACE_Sample_History::collect_basic_stats (ACE_Basic_Stats &stats) const
stats.sample (this->samples_[i]);
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Sample_History.h b/ace/Sample_History.h
index 0ab521dac66..83febc46f39 100644
--- a/ace/Sample_History.h
+++ b/ace/Sample_History.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Basic_Stats;
/// Save multiple samples in an array
@@ -81,8 +78,6 @@ private:
ACE_UINT64 *samples_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Sample_History.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Sample_History.inl b/ace/Sample_History.inl
index 42eca62e69b..e3882a28bc3 100644
--- a/ace/Sample_History.inl
+++ b/ace/Sample_History.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Sample_History::sample (ACE_UINT64 value)
{
@@ -22,5 +18,3 @@ ACE_Sample_History::get_sample (size_t i) const
return this->samples_[i];
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Sbrk_Memory_Pool.cpp b/ace/Sbrk_Memory_Pool.cpp
index eda87a42c63..ae9157a09c9 100644
--- a/ace/Sbrk_Memory_Pool.cpp
+++ b/ace/Sbrk_Memory_Pool.cpp
@@ -7,9 +7,6 @@
ACE_RCSID(ace, Sbrk_Memory_Pool, "$Id$")
#if !defined (ACE_LACKS_SBRK)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Sbrk_Memory_Pool)
// Ask system for more local memory via sbrk(2).
@@ -110,6 +107,7 @@ ACE_Sbrk_Memory_Pool::base_addr (void) const
return 0;
}
+
// Round up the request to a multiple of the page size.
size_t
@@ -118,7 +116,4 @@ ACE_Sbrk_Memory_Pool::round_up (size_t nbytes)
ACE_TRACE ("ACE_Sbrk_Memory_Pool::round_up");
return ACE::round_to_pagesize (nbytes);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_LACKS_SBRK */
diff --git a/ace/Sbrk_Memory_Pool.h b/ace/Sbrk_Memory_Pool.h
index 092099e9e34..55856be303b 100644
--- a/ace/Sbrk_Memory_Pool.h
+++ b/ace/Sbrk_Memory_Pool.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,9 +32,6 @@
#include "ace/ACE.h"
#include "ace/os_include/sys/os_mman.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Sbrk_Memory_Pool_Options
*
@@ -38,7 +40,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* This should be a nested class, but that breaks too many
* compilers.
*/
-class ACE_Export ACE_Sbrk_Memory_Pool_Options
+class ACE_Memory_Export ACE_Sbrk_Memory_Pool_Options
{
};
@@ -47,7 +49,7 @@ class ACE_Export ACE_Sbrk_Memory_Pool_Options
*
* @brief Make a memory pool that is based on <sbrk(2)>.
*/
-class ACE_Export ACE_Sbrk_Memory_Pool
+class ACE_Memory_Export ACE_Sbrk_Memory_Pool
{
public:
typedef ACE_Sbrk_Memory_Pool_Options OPTIONS;
@@ -109,9 +111,6 @@ protected:
/// appropriate chunksize.
virtual size_t round_up (size_t nbytes);
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_LACKS_SBRK */
#include /**/ "ace/post.h"
diff --git a/ace/Sched_Params.cpp b/ace/Sched_Params.cpp
index e6395c148a3..a86c0b55d0f 100644
--- a/ace/Sched_Params.cpp
+++ b/ace/Sched_Params.cpp
@@ -29,8 +29,6 @@
ACE_RCSID(ace, Sched_Params, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
int
ACE_Sched_Params::priority_min (const Policy policy,
const int scope)
@@ -129,7 +127,7 @@ ACE_Sched_Params::priority_min (const Policy policy,
ACE_UNUSED_ARG (policy);
ACE_UNUSED_ARG (scope);
return THREAD_PRIORITY_IDLE;
-#elif defined (ACE_VXWORKS)
+#elif defined (VXWORKS)
ACE_UNUSED_ARG (policy);
ACE_UNUSED_ARG (scope);
return 255;
@@ -334,5 +332,3 @@ ACE_Sched_Params::previous_priority (const Policy policy,
ACE_NOTSUP_RETURN (-1);
#endif /* ACE_HAS_THREADS */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Sched_Params.h b/ace/Sched_Params.h
index 76603c8a21a..c68e701f9b4 100644
--- a/ace/Sched_Params.h
+++ b/ace/Sched_Params.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#include "ace/Time_Value.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Sched_Params
*
@@ -51,7 +49,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* usual using <ACE_OS::thr_prio> or via the ACE_Thread
* interface. See the parameter descriptions in the private:
* section below.
- * @note This class does not do any checking of parameters. It
+ * NOTE: this class does not do any checking of parameters. It
* is just a container class. If it is constructed with values
* that are not supported on a platform, the call to
* <ACE_OS::sched_params> will fail by returning -1 with EINVAL
@@ -222,8 +220,6 @@ private:
int done_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Sched_Params.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Sched_Params.inl b/ace/Sched_Params.inl
index 2917acc691d..041f9cb1648 100644
--- a/ace/Sched_Params.inl
+++ b/ace/Sched_Params.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
// ============================================================================
@@ -18,8 +17,6 @@
//
// ============================================================================
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Sched_Params::ACE_Sched_Params (
const Policy policy,
@@ -137,5 +134,3 @@ ACE_Sched_Priority_Iterator::next (void)
this->scope ());
this->done_ = old_priority == priority_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Select_Reactor.cpp b/ace/Select_Reactor.cpp
index 7f1e9505855..3c7f5850f03 100644
--- a/ace/Select_Reactor.cpp
+++ b/ace/Select_Reactor.cpp
@@ -4,7 +4,6 @@
ACE_RCSID(ace, Select_Reactor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
@@ -29,5 +28,3 @@ template class ACE_Lock_Adapter< ACE_Reactor_Token_T<ACE_Noop_Token> >;
# pragma instantiate ACE_Lock_Adapter< ACE_Reactor_Token_T<ACE_Noop_Token> >
# endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Select_Reactor.h b/ace/Select_Reactor.h
index 8e7b1697ce3..a52203869cb 100644
--- a/ace/Select_Reactor.h
+++ b/ace/Select_Reactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
//@@ TAO_REACTOR_SPL_COMMENT_HOOK_START
typedef ACE_Reactor_Token_T<ACE_SELECT_TOKEN> ACE_Select_Reactor_Token;
@@ -33,8 +31,8 @@ typedef ACE_Select_Reactor_T<ACE_Select_Reactor_Token> ACE_Select_Reactor;
/**
* @class ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> >
*
- * @brief Template specialization of ACE_Guard for the
- * ACE_Null_Mutex.
+ * @brief Template specialization of <ACE_Guard> for the
+ * <ACE_Null_Mutex>.
*
* This specialization is useful since it helps to speedup
* performance of the "Null_Mutex" considerably.
@@ -56,14 +54,11 @@ public:
void dump (void) const {}
private:
- // Disallow copying and assignment.
- ACE_Guard (const ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> > &);
- void operator= (const ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> > &);
-
+ // = Prevent assignment and initialization.
+ ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> > &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_Guard (const ACE_Guard< ACE_Reactor_Token_T<ACE_Noop_Token> > &))
};
#endif /* ACE_MT_SAFE && ACE_MT_SAFE == 0 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SELECT_REACTOR_H */
diff --git a/ace/Select_Reactor_Base.cpp b/ace/Select_Reactor_Base.cpp
index ad08f23c9d6..ab156aa1c20 100644
--- a/ace/Select_Reactor_Base.cpp
+++ b/ace/Select_Reactor_Base.cpp
@@ -19,8 +19,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32)
#define ACE_SELECT_REACTOR_HANDLE(H) (this->event_handlers_[(H)].handle_)
#define ACE_SELECT_REACTOR_EVENT_HANDLER(THIS,H) ((THIS)->event_handlers_[(H)].event_handler_)
@@ -446,7 +444,8 @@ ACE_Select_Reactor_Handler_Repository::unbind (ACE_HANDLE handle,
// Call remove_reference() if the removal is complete and reference
// counting is needed.
- if (complete_removal && requires_reference_counting)
+ if (complete_removal &&
+ requires_reference_counting)
{
event_handler->remove_reference ();
}
@@ -524,7 +523,7 @@ ACE_Select_Reactor_Handler_Repository::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("max_handlep1_ = %d, max_size_ = %d\n"),
+ ACE_LIB_TEXT ("(%t) max_handlep1_ = %d, max_size_ = %d\n"),
this->max_handlep1_, this->max_size_));
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("[")));
@@ -533,10 +532,10 @@ ACE_Select_Reactor_Handler_Repository::dump (void) const
for (ACE_Select_Reactor_Handler_Repository_Iterator iter (this);
iter.next (event_handler) != 0;
iter.advance ())
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" (event_handler = %x, event_handler->handle_ = %d)\n"),
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" (event_handler = %x, event_handler->handle_ = %d)"),
event_handler, event_handler->get_handle ()));
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" ]\n")));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT (" ]")));
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}
@@ -587,7 +586,7 @@ ACE_Select_Reactor_Notify::purge_pending_notifications (ACE_Event_Handler *eh,
if (this->notify_queue_.is_empty ())
return 0;
- ACE_Notification_Buffer *temp = 0;
+ ACE_Notification_Buffer *temp;
ACE_Unbounded_Queue <ACE_Notification_Buffer *> local_queue;
size_t queue_size = this->notify_queue_.size ();
@@ -707,7 +706,7 @@ ACE_Select_Reactor_Notify::open (ACE_Reactor_Impl *r,
#endif /* F_SETFD */
#if defined (ACE_HAS_REACTOR_NOTIFICATION_QUEUE)
- ACE_Notification_Buffer *temp = 0;
+ ACE_Notification_Buffer *temp;
ACE_NEW_RETURN (temp,
ACE_Notification_Buffer[ACE_REACTOR_NOTIFICATION_ARRAY_SIZE],
@@ -750,7 +749,7 @@ ACE_Select_Reactor_Notify::close (void)
#if defined (ACE_HAS_REACTOR_NOTIFICATION_QUEUE)
// Free up the dynamically allocated resources.
- ACE_Notification_Buffer **b = 0;
+ ACE_Notification_Buffer **b;
for (ACE_Unbounded_Queue_Iterator<ACE_Notification_Buffer *> alloc_iter (this->alloc_queue_);
alloc_iter.next (b) != 0;
@@ -803,7 +802,7 @@ ACE_Select_Reactor_Notify::notify (ACE_Event_Handler *event_handler,
if (free_queue_.dequeue_head (temp) == -1)
{
// Grow the queue of available buffers.
- ACE_Notification_Buffer *temp1 = 0;
+ ACE_Notification_Buffer *temp1;
ACE_NEW_RETURN (temp1,
ACE_Notification_Buffer[ACE_REACTOR_NOTIFICATION_ARRAY_SIZE],
@@ -923,7 +922,7 @@ ACE_Select_Reactor_Notify::dispatch_notify (ACE_Notification_Buffer &buffer)
// holding the lock while delivering callbacks...
ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, mon, this->notify_queue_lock_, -1);
- ACE_Notification_Buffer *temp = 0;
+ ACE_Notification_Buffer *temp;
if (notify_queue_.is_empty ())
return 0;
@@ -940,7 +939,7 @@ ACE_Select_Reactor_Notify::dispatch_notify (ACE_Notification_Buffer &buffer)
-1);
bool write_next_buffer = false;
- ACE_Notification_Buffer ** next = 0;
+ ACE_Notification_Buffer ** next;
if(!this->notify_queue_.is_empty())
{
@@ -1269,5 +1268,3 @@ template class ACE_Node <ACE_Notification_Buffer *>;
#pragma instantiate ACE_Node <ACE_Notification_Buffer *>
#endif /* ACE_HAS_REACTOR_NOTIFICATION_QUEUE */
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Select_Reactor_Base.h b/ace/Select_Reactor_Base.h
index fdcd4eee991..fb340cb4beb 100644
--- a/ace/Select_Reactor_Base.h
+++ b/ace/Select_Reactor_Base.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,22 +27,19 @@
#include "ace/Reactor_Impl.h"
#if defined (ACE_HAS_REACTOR_NOTIFICATION_QUEUE)
-# include "ace/Unbounded_Queue.h"
+#include "ace/Unbounded_Queue.h"
#endif /* ACE_HAS_REACTOR_NOTIFICATION_QUEUE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Add useful typedefs to simplify the following code.
typedef void (ACE_Handle_Set::*ACE_FDS_PTMF) (ACE_HANDLE);
typedef int (ACE_Event_Handler::*ACE_EH_PTMF) (ACE_HANDLE);
// Forward declaration.
class ACE_Select_Reactor_Impl;
-class ACE_Sig_Handler;
/*
* Hook to specialize the Select_Reactor_Base implementation
- * with the concrete reactor, e.g., select or tp reactor
+ * with the concrete reactor, e.g., select or tp reactor
* specified at build/compilation time.
*/
//@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
@@ -71,8 +68,8 @@ public:
*
* @brief An ACE_Event_Handler and its associated ACE_HANDLE.
*
- * One ACE_Event_Handler is registered for one or more
- * ACE_HANDLE. At various points, this information must be
+ * One <ACE_Event_Handler> is registered for one or more
+ * <ACE_HANDLE>. At various points, this information must be
* stored explicitly. This class provides a lightweight
* mechanism to do so.
*/
@@ -98,7 +95,7 @@ public:
/// Handle.
ACE_HANDLE handle_;
- /// ACE_Event_Handler associated with the ACE_HANDLE.
+ /// <ACE_Event_Handler> associated with the <ACE_HANDLE>.
ACE_Event_Handler *event_handler_;
};
@@ -164,8 +161,8 @@ public:
/// because of a thread trying to unblock the <Reactor_Impl>
virtual int dispatch_notify (ACE_Notification_Buffer &buffer);
- /// Read one of the notify call on the @a handle into the
- /// @a buffer. This could be because of a thread trying to unblock
+ /// Read one of the notify call on the <handle> into the
+ /// <buffer>. This could be because of a thread trying to unblock
/// the <Reactor_Impl>
virtual int read_notify_pipe (ACE_HANDLE handle,
ACE_Notification_Buffer &buffer);
@@ -173,7 +170,7 @@ public:
/// Verify whether the buffer has dispatchable info or not.
virtual int is_dispatchable (ACE_Notification_Buffer &buffer);
- /// Called back by the ACE_Select_Reactor when a thread wants to
+ /// Called back by the <ACE_Select_Reactor> when a thread wants to
/// unblock us.
virtual int handle_input (ACE_HANDLE handle);
@@ -199,14 +196,14 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. If @a eh == 0, all notifications for all
+ * <ACE_Event_Handler> object. If <eh> == 0, all notifications for all
* handlers are removed (but not any notifications posted just to wake up
* the reactor itself). Returns the number of notifications purged.
* Returns -1 on error.
*/
virtual int purge_pending_notifications (
- ACE_Event_Handler *sh,
- ACE_Reactor_Mask mask = ACE_Event_Handler::ALL_EVENTS_MASK);
+ ACE_Event_Handler *,
+ ACE_Reactor_Mask = ACE_Event_Handler::ALL_EVENTS_MASK);
/// Dump the state of an object.
virtual void dump (void) const;
@@ -216,16 +213,16 @@ public:
protected:
/**
- * Keep a back pointer to the ACE_Select_Reactor. If this value
- * if NULL then the ACE_Select_Reactor has been initialized with
+ * Keep a back pointer to the <ACE_Select_Reactor>. If this value
+ * if NULL then the <ACE_Select_Reactor> has been initialized with
* <disable_notify_pipe>.
*/
ACE_Select_Reactor_Impl *select_reactor_;
/**
- * Contains the ACE_HANDLE the ACE_Select_Reactor is listening
- * on, as well as the ACE_HANDLE that threads wanting the
- * attention of the ACE_Select_Reactor will write to.
+ * Contains the <ACE_HANDLE> the <ACE_Select_Reactor> is listening
+ * on, as well as the <ACE_HANDLE> that threads wanting the
+ * attention of the <ACE_Select_Reactor> will write to.
*/
ACE_Pipe notification_pipe_;
@@ -263,13 +260,13 @@ protected:
/**
* @class ACE_Select_Reactor_Handler_Repository
*
- * @brief Used to map ACE_HANDLEs onto the appropriate
- * ACE_Event_Handler *.
+ * @brief Used to map <ACE_HANDLE>s onto the appropriate
+ * <ACE_Event_Handler> *.
*
* This class is necessary to shield differences between UNIX
- * and Win32. In UNIX, ACE_HANDLE is an int, whereas in Win32
+ * and Win32. In UNIX, <ACE_HANDLE> is an int, whereas in Win32
* it's a void *. This class hides all these details from the
- * bulk of the ACE_Select_Reactor code. All of these methods
+ * bulk of the <ACE_Select_Reactor> code. All of these methods
* are called with the main <Select_Reactor> token lock held.
*/
class ACE_Export ACE_Select_Reactor_Handler_Repository
@@ -301,19 +298,19 @@ public:
// = Search structure operations.
/**
- * Return the <ACE_Event_Handler *> associated with ACE_HANDLE.
+ * Return the <ACE_Event_Handler *> associated with <ACE_HANDLE>.
* If <index_p> is non-0, then return the index location of the
* <handle>, if found.
*/
ACE_Event_Handler *find (ACE_HANDLE handle, size_t *index_p = 0);
- /// Bind the ACE_Event_Handler * to the ACE_HANDLE with the
- /// appropriate ACE_Reactor_Mask settings.
+ /// Bind the <ACE_Event_Handler *> to the <ACE_HANDLE> with the
+ /// appropriate <ACE_Reactor_Mask> settings.
int bind (ACE_HANDLE,
ACE_Event_Handler *,
ACE_Reactor_Mask);
- /// Remove the binding of ACE_HANDLE in accordance with the @a mask.
+ /// Remove the binding of <ACE_HANDLE> in accordance with the <mask>.
int unbind (ACE_HANDLE,
ACE_Reactor_Mask mask);
@@ -379,7 +376,7 @@ private:
/**
* @class ACE_Select_Reactor_Handler_Repository_Iterator
*
- * @brief Iterate through the ACE_Select_Reactor_Handler_Repository.
+ * @brief Iterate through the <ACE_Select_Reactor_Handler_Repository>.
*/
class ACE_Export ACE_Select_Reactor_Handler_Repository_Iterator
{
@@ -441,7 +438,7 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. Returns the number of notifications
+ * <ACE_Event_Handler> object. Returns the number of notifications
* purged. Returns -1 on error.
*/
virtual int purge_pending_notifications (ACE_Event_Handler * = 0,
@@ -454,7 +451,7 @@ public:
virtual int resumable_handler (void);
/*
- * Hook to add concrete methods required to specialize the
+ * Hook to add concrete methods required to specialize the
* implementation with concrete methods required for the concrete
* reactor implementation, for example, select, tp reactors.
*/
@@ -464,14 +461,14 @@ protected:
/// Allow manipulation of the <wait_set_> mask and <ready_set_> mask.
virtual int bit_ops (ACE_HANDLE handle,
ACE_Reactor_Mask mask,
- ACE_Select_Reactor_Handle_Set &handle_set,
+ ACE_Select_Reactor_Handle_Set &wait_Set,
int ops);
/// Enqueue ourselves into the list of waiting threads at the
/// appropriate point specified by <requeue_position_>.
virtual void renew (void) = 0;
- /// Check to see if the <Event_Handler> associated with @a handle is
+ /// Check to see if the <Event_Handler> associated with <handle> is
/// suspended. Returns 0 if not, 1 if so.
virtual int is_suspended_i (ACE_HANDLE handle) = 0;
@@ -483,6 +480,7 @@ protected:
/// Table that maps <ACE_HANDLEs> to <ACE_Event_Handler *>'s.
ACE_Select_Reactor_Handler_Repository handler_rep_;
+
/// Tracks handles that are ready for dispatch from <select>
ACE_Select_Reactor_Handle_Set dispatch_set_;
@@ -499,27 +497,24 @@ protected:
/// Defined as a pointer to allow overriding by derived classes...
ACE_Timer_Queue *timer_queue_;
- /// Handle signals without requiring global/static variables.
- ACE_Sig_Handler *signal_handler_;
-
- /// Callback object that unblocks the ACE_Select_Reactor if it's
- /// sleeping.
- ACE_Reactor_Notify *notify_handler_;
-
/// Keeps track of whether we should delete the timer queue (if we
/// didn't create it, then we don't delete it).
- bool delete_timer_queue_;
+ int delete_timer_queue_;
+
+ /// Handle signals without requiring global/static variables.
+ ACE_Sig_Handler *signal_handler_;
/// Keeps track of whether we should delete the signal handler (if we
/// didn't create it, then we don't delete it).
- bool delete_signal_handler_;
+ int delete_signal_handler_;
+
+ /// Callback object that unblocks the <ACE_Select_Reactor> if it's
+ /// sleeping.
+ ACE_Reactor_Notify *notify_handler_;
/// Keeps track of whether we need to delete the notify handler (if
/// we didn't create it, then we don't delete it).
- bool delete_notify_handler_;
-
- /// True if we've been initialized yet...
- bool initialized_;
+ int delete_notify_handler_;
/// Restart the <handle_events> event-loop method automatically when
/// <select> is interrupted via <EINTR>.
@@ -534,6 +529,9 @@ protected:
*/
int requeue_position_;
+ /// True if we've been initialized yet...
+ int initialized_;
+
/// The original thread that created this Select_Reactor.
ACE_thread_t owner_;
@@ -560,7 +558,6 @@ protected:
private:
-
/// Determine whether we should renew Select_Reactor's token after handling
/// the notification message.
int supress_renew_;
@@ -570,8 +567,6 @@ private:
ACE_Select_Reactor_Impl &operator = (const ACE_Select_Reactor_Impl &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Select_Reactor_Base.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Select_Reactor_Base.inl b/ace/Select_Reactor_Base.inl
index 83c561b8e8d..90b2dc7e54c 100644
--- a/ace/Select_Reactor_Base.inl
+++ b/ace/Select_Reactor_Base.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Reactor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Event_Tuple::~ACE_Event_Tuple (void)
{
@@ -58,14 +55,11 @@ ACE_INLINE
ACE_Select_Reactor_Impl::ACE_Select_Reactor_Impl (bool ms)
: handler_rep_ (*this)
, timer_queue_ (0)
- , signal_handler_ (0)
- , notify_handler_ (0)
- , delete_timer_queue_ (false)
- , delete_signal_handler_ (false)
- , delete_notify_handler_ (false)
- , initialized_ (false)
- , restart_ (0)
+ , delete_timer_queue_ (0)
+ , delete_signal_handler_ (0)
+ , delete_notify_handler_ (0)
, requeue_position_ (-1) // Requeue at end of waiters by default.
+ , initialized_ (0)
, state_changed_ (0)
, mask_signals_ (ms)
, supress_renew_ (0)
@@ -83,5 +77,3 @@ ACE_Select_Reactor_Impl::supress_notify_renew (int sr)
{
this->supress_renew_ = sr;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Select_Reactor_T.cpp b/ace/Select_Reactor_T.cpp
index 994477eb215..d864f6728bb 100644
--- a/ace/Select_Reactor_T.cpp
+++ b/ace/Select_Reactor_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_SELECT_REACTOR_T_CPP
-#define ACE_SELECT_REACTOR_T_CPP
+#ifndef ACE_SELECT_REACTOR_T_C
+#define ACE_SELECT_REACTOR_T_C
#include "ace/Select_Reactor_T.h"
@@ -27,7 +27,10 @@
*/
//@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
-#if !defined (__ACE_INLINE__)
+// @@ The latest version of SunCC can't grok the code if we put inline
+// function here. Therefore, we temporarily disable the code here.
+// We shall turn this back on once we know the problem gets fixed.
+#if 1 // !defined (__ACE_INLINE__)
#include "ace/Select_Reactor_T.inl"
#endif /* __ACE_INLINE__ */
@@ -35,8 +38,6 @@ ACE_RCSID (ace,
Select_Reactor_T,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Select_Reactor_T)
#if defined (ACE_WIN32)
@@ -381,7 +382,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::open
ACE_MT (ACE_GUARD_RETURN (ACE_SELECT_REACTOR_TOKEN, ace_mon, this->token_, -1));
// Can't initialize ourselves more than once.
- if (this->initialized_)
+ if (this->initialized_ > 0)
return -1;
this->owner_ = ACE_Thread::self ();
@@ -1198,7 +1199,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::dispatch_io_set
// clear the bit from that dispatch mask,
// so when we need to restart the iteration (rebuilding the iterator...)
- // we will not dispatch the already dispatched handlers
+ // we will not dispatch the already dipatched handlers
this->clear_dispatch_mask (handle, mask);
if (this->state_changed_)
@@ -1351,15 +1352,6 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::dispatch
io_handlers_dispatched) == -1)
// State has changed, so exit loop.
break;
-
- // if state changed, we need to re-eval active_handle_count,
- // so we will not end with an endless loop
- if (this->state_changed_)
- {
- active_handle_count = this->dispatch_set_.rd_mask_.num_set ()
- + this->dispatch_set_.wr_mask_.num_set ()
- + this->dispatch_set_.ex_mask_.num_set ();
- }
}
while (active_handle_count > 0);
@@ -1489,7 +1481,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::check_handles (void)
select_width = 0;
# else
select_width = int (h) + 1;
-# endif /* ACE_WIN32 */
+# endif /* ACE_WIN64 */
if (ACE_OS::select (select_width,
rd_mask, 0, 0,
@@ -1560,25 +1552,10 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::dump (void) const
++handle_iter_ex_ready)
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("except_handle_ready = %d\n"), h));
- for (ACE_Handle_Set_Iterator handle_iter_su_ready (this->suspend_set_.wr_mask_);
- (h = handle_iter_su_ready ()) != ACE_INVALID_HANDLE;
- ++handle_iter_su_ready)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("write_handle_suspend = %d\n"), h));
-
- for (ACE_Handle_Set_Iterator handle_iter_su_ready (this->suspend_set_.rd_mask_);
- (h = handle_iter_su_ready ()) != ACE_INVALID_HANDLE;
- ++handle_iter_su_ready)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("read_handle_suspend = %d\n"), h));
-
- for (ACE_Handle_Set_Iterator handle_iter_su_ready (this->suspend_set_.ex_mask_);
- (h = handle_iter_su_ready ()) != ACE_INVALID_HANDLE;
- ++handle_iter_su_ready)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("except_handle_suspend = %d\n"), h));
-
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("restart_ = %d\n"), this->restart_));
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("requeue_position_ = %d\n"), this->requeue_position_));
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("initialized_ = %d\n"), this->initialized_));
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("owner_ = %d\n"), this->owner_));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nrequeue_position_ = %d\n"), this->requeue_position_));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\ninitialized_ = %d\n"), this->initialized_));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\nowner_ = %d\n"), this->owner_));
#if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
this->notify_handler_->dump ();
@@ -1588,7 +1565,4 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_SELECT_REACTOR_T_CPP */
+#endif /* ACE_SELECT_REACTOR_T_C */
diff --git a/ace/Select_Reactor_T.h b/ace/Select_Reactor_T.h
index bb9cdceed61..ecaf22957ed 100644
--- a/ace/Select_Reactor_T.h
+++ b/ace/Select_Reactor_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,11 +23,9 @@
#include "ace/Lock_Adapter_T.h"
#include "ace/Token.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
- * Hook for specializing the reactor with the concrete
- * type, for example, select, or thread pool.
+ * Hook for specializing the reactor with the concrete
+ * type, for example, select, or thread pool.
*/
//@@ REACTOR_SPL_INCLUDE_FORWARD_DECL_ADD_HOOK
@@ -130,7 +128,7 @@ public:
/// Set a user-specified timer queue.
virtual int timer_queue (ACE_Timer_Queue *tq);
- /// Return the current ACE_Timer_Queue.
+ /// Return the current <ACE_Timer_Queue>.
virtual ACE_Timer_Queue *timer_queue (void) const;
/// Close down the select_reactor and release all of its resources.
@@ -149,20 +147,20 @@ public:
virtual int work_pending (const ACE_Time_Value &max_wait_time = ACE_Time_Value::zero);
/**
- * This event loop driver that blocks for @a max_wait_time before
+ * This event loop driver that blocks for <max_wait_time> before
* returning. It will return earlier if timer events, I/O events,
- * or signal events occur. Note that @a max_wait_time can be 0, in
+ * or signal events occur. Note that <max_wait_time> can be 0, in
* which case this method blocks indefinitely until events occur.
*
- * @a max_wait_time is decremented to reflect how much time this call
+ * <max_wait_time> is decremented to reflect how much time this call
* took. For instance, if a time value of 3 seconds is passed to
* handle_events and an event occurs after 2 seconds,
- * @a max_wait_time will equal 1 second. This can be used if an
+ * <max_wait_time> will equal 1 second. This can be used if an
* application wishes to handle events for some fixed amount of
* time.
*
- * Returns the total number of I/O and Timer ACE_Event_Handler's
- * that were dispatched, 0 if the @a max_wait_time elapsed without
+ * Returns the total number of I/O and Timer <ACE_Event_Handler>s
+ * that were dispatched, 0 if the <max_wait_time> elapsed without
* dispatching any handlers, or -1 if something goes wrong.
*
* Current <alertable_handle_events> is identical to
@@ -173,7 +171,7 @@ public:
/**
* This method is just like the one above, except the
- * @a max_wait_time value is a reference and can therefore never be
+ * <max_wait_time> value is a reference and can therefore never be
* NULL.
*
* Current <alertable_handle_events> is identical to
@@ -198,7 +196,7 @@ public:
*/
virtual void deactivate (int do_stop);
- // = Register and remove ACE_Event_Handlers.
+ // = Register and remove <ACE_Event_Handler>s.
/**
* Register a <eh> with a particular <mask>. Note that the
* <Select_Reactor> will call <ACE_Event_Handler::get_handle> to
@@ -208,9 +206,9 @@ public:
ACE_Reactor_Mask mask);
/**
- * Register a @a eh with a particular @a mask. Note that since the
- * @a handle is given the Select_Reactor will *not* call
- * ACE_Event_Handler::get_handle() to extract the underlying I/O
+ * Register a <eh> with a particular <mask>. Note that since the
+ * <handle> is given the Select_Reactor will *not* call
+ * <ACE_Event_Handler::get_handle> to extract the underlying I/O
* handle.
*/
virtual int register_handler (ACE_HANDLE handle,
@@ -238,7 +236,7 @@ public:
ACE_Event_Handler *event_handler,
ACE_Reactor_Mask mask);
- /// Register @a eh with all the @a handles in the <Handle_Set>.
+ /// Register <eh> with all the <handles> in the <Handle_Set>.
virtual int register_handler (const ACE_Handle_Set &handles,
ACE_Event_Handler *eh,
ACE_Reactor_Mask mask);
@@ -350,10 +348,9 @@ public:
* @see reset_timer_interval()
*
* @param event_handler Event handler to schedule on reactor
- * @param arg Argument passed to the handle_timeout() method of event_handler
- * @param delay Time interval after which the timer will expire
- * @param interval Time interval after which the timer will be automatically
- * rescheduled
+ * @param arg Argument passed to the handle_timeout() method of event_handler
+ * @param delay Time interval after which the timer will expire
+ * @param interval Time interval after which the timer will be automatically rescheduled
* @return -1 on failure, a timer_id value on success
*/
virtual long schedule_timer (ACE_Event_Handler * event_handler,
@@ -381,7 +378,7 @@ public:
int dont_call_handle_close = 1);
/**
- * Cancel the single ACE_Event_Handler that matches the <timer_id>
+ * Cancel the single <ACE_Event_Handler> that matches the <timer_id>
* value (which was returned from the <schedule> method). If arg is
* non-NULL then it will be set to point to the ``magic cookie''
* argument passed in when the <Event_Handler> was registered. This
@@ -615,9 +612,9 @@ protected:
// = Dispatching methods.
/**
- * Template Method that dispatches ACE_Event_Handlers for time
+ * Template Method that dispatches <ACE_Event_Handler>s for time
* events, I/O events, and signal events. Returns the total number
- * of ACE_Event_Handlers that were dispatched or -1 if something
+ * of <ACE_Event_Handler>s that were dispatched or -1 if something
* goes wrong.
*/
virtual int dispatch (int nfound,
@@ -700,9 +697,10 @@ private:
ACE_UNIMPLEMENTED_FUNC (ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN> &operator= (const ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN> &) )
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
+// @@ The latest version of SunCC can't grok the code if we put inline
+// function here. Therefore, we temporarily disable the code here.
+// We shall turn this back on once we know the problem gets fixed.
+#if 0 // defined (__ACE_INLINE__)
#include "ace/Select_Reactor_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Select_Reactor_T.inl b/ace/Select_Reactor_T.inl
index 0ad9033f9a0..136d445810a 100644
--- a/ace/Select_Reactor_T.inl
+++ b/ace/Select_Reactor_T.inl
@@ -1,22 +1,16 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Reactor.h"
-#include "ace/Signal.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::resume_handler (ACE_Event_Handler *h)
{
ACE_TRACE ("ACE_Select_Reactor_T::resume_handler");
return this->resume_handler (h->get_handle ());
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::resume_handler (const ACE_Handle_Set &handles)
{
ACE_TRACE ("ACE_Select_Reactor_T::resume_handler");
@@ -32,16 +26,14 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::resume_handler (const ACE_Handle
return 0;
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::suspend_handler (ACE_Event_Handler *h)
{
ACE_TRACE ("ACE_Select_Reactor_T::suspend_handler");
return this->suspend_handler (h->get_handle ());
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::suspend_handler (const ACE_Handle_Set &handles)
{
ACE_TRACE ("ACE_Select_Reactor_T::suspend_handler");
@@ -57,8 +49,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::suspend_handler (const ACE_Handl
return 0;
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::register_handler (int signum,
ACE_Event_Handler *new_sh,
ACE_Sig_Action *new_disp,
@@ -73,38 +64,40 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::register_handler (int signum,
#if defined (ACE_WIN32)
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
-ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::register_handler (ACE_Event_Handler *,
- ACE_HANDLE )
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
+ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::register_handler (ACE_Event_Handler *event_handler,
+ ACE_HANDLE event_handle)
{
// Don't have an implementation for this yet...
+ ACE_UNUSED_ARG (event_handler);
+ ACE_UNUSED_ARG (event_handle);
ACE_NOTSUP_RETURN (-1);
}
#endif /* ACE_WIN32 */
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
-ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::register_handler (ACE_HANDLE ,
- ACE_HANDLE ,
- ACE_Event_Handler *,
- ACE_Reactor_Mask )
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
+ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::register_handler (ACE_HANDLE event_handle,
+ ACE_HANDLE io_handle,
+ ACE_Event_Handler *event_handler,
+ ACE_Reactor_Mask mask)
{
// Don't have an implementation for this yet...
+ ACE_UNUSED_ARG (event_handle);
+ ACE_UNUSED_ARG (io_handle);
+ ACE_UNUSED_ARG (event_handler);
+ ACE_UNUSED_ARG (mask);
ACE_NOTSUP_RETURN (-1);
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::handler (int signum, ACE_Event_Handler **handler)
{
ACE_TRACE ("ACE_Select_Reactor_T::handler");
return this->handler_i (signum, handler);
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::remove_handler (int signum,
ACE_Sig_Action *new_disp,
ACE_Sig_Action *old_disp,
@@ -114,8 +107,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::remove_handler (int signum,
return this->signal_handler_->remove_handler (signum, new_disp, old_disp, sigkey);
}
-template <class ACE_SELECT_REACTOR_TOKEN>
-ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::uses_event_associations (void)
{
// Since the Select_Reactor does not do any event associations, this
@@ -128,7 +120,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::uses_event_associations (void)
// Performs operations on the "ready" bits.
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::ready_ops (ACE_Event_Handler *handler,
ACE_Reactor_Mask mask,
int ops)
@@ -139,7 +131,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::ready_ops (ACE_Event_Handler *ha
// Performs operations on the "dispatch" masks.
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::mask_ops (ACE_Event_Handler *handler,
ACE_Reactor_Mask mask,
int ops)
@@ -148,7 +140,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::mask_ops (ACE_Event_Handler *han
return this->mask_ops (handler->get_handle (), mask, ops);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::schedule_wakeup (ACE_Event_Handler *eh,
ACE_Reactor_Mask mask)
{
@@ -156,7 +148,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::schedule_wakeup (ACE_Event_Handl
return this->mask_ops (eh->get_handle (), mask, ACE_Reactor::ADD_MASK);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::cancel_wakeup (ACE_Event_Handler *eh,
ACE_Reactor_Mask mask)
{
@@ -164,7 +156,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::cancel_wakeup (ACE_Event_Handler
return this->mask_ops (eh->get_handle (), mask, ACE_Reactor::CLR_MASK);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::schedule_wakeup (ACE_HANDLE handle,
ACE_Reactor_Mask mask)
{
@@ -172,7 +164,7 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::schedule_wakeup (ACE_HANDLE hand
return this->mask_ops (handle, mask, ACE_Reactor::ADD_MASK);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::cancel_wakeup (ACE_HANDLE handle,
ACE_Reactor_Mask mask)
{
@@ -180,14 +172,14 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::cancel_wakeup (ACE_HANDLE handle
return this->mask_ops (handle, mask, ACE_Reactor::CLR_MASK);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE ACE_Lock &
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ ACE_Lock &
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::lock (void)
{
ACE_TRACE ("ACE_Select_Reactor_T::lock");
return this->lock_adapter_;
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE void
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ void
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::wakeup_all_threads (void)
{
// Send a notification, but don't block if there's no one to receive
@@ -195,25 +187,25 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::wakeup_all_threads (void)
this->notify (0, ACE_Event_Handler::NULL_MASK, (ACE_Time_Value *) &ACE_Time_Value::zero);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::alertable_handle_events (ACE_Time_Value *max_wait_time)
{
return this->handle_events (max_wait_time);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::alertable_handle_events (ACE_Time_Value &max_wait_time)
{
return this->handle_events (max_wait_time);
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE int
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ int
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::deactivated (void)
{
return this->deactivated_;
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE void
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ void
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::deactivate (int do_stop)
{
{
@@ -226,10 +218,8 @@ ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::deactivate (int do_stop)
this->wakeup_all_threads ();
}
-template <class ACE_SELECT_REACTOR_TOKEN> ACE_INLINE size_t
+template <class ACE_SELECT_REACTOR_TOKEN> /* ACE_INLINE */ size_t
ACE_Select_Reactor_T<ACE_SELECT_REACTOR_TOKEN>::size (void) const
{
return this->handler_rep_.size ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Semaphore.cpp b/ace/Semaphore.cpp
index 3a48bd38168..374e4cad282 100644
--- a/ace/Semaphore.cpp
+++ b/ace/Semaphore.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (ace,
Semaphore,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Semaphore)
void
@@ -58,5 +56,3 @@ ACE_Semaphore::~ACE_Semaphore (void)
this->remove ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Semaphore.h b/ace/Semaphore.h
index afee6043bbd..01c116ef991 100644
--- a/ace/Semaphore.h
+++ b/ace/Semaphore.h
@@ -24,8 +24,6 @@
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -66,7 +64,7 @@ public:
* value of <tv> is updated upon return to show the actual
* (absolute) acquisition time.
*
- * @note Solaris threads do not support timed semaphores.
+ * NOTE: Solaris threads do not support timed semaphores.
* Therefore, if you're running on Solaris you might want to
* consider using the ACE POSIX pthreads implementation instead,
* which can be enabled by compiling ACE with
@@ -83,7 +81,7 @@ public:
* The value of <*tv> is updated upon return to show the actual
* (absolute) acquisition time.
*
- * @note Solaris threads do not support timed semaphores.
+ * NOTE: Solaris threads do not support timed semaphores.
* Therefore, if you're running on Solaris you might want to
* consider using the ACE POSIX pthreads implementation instead,
* which can be enabled by compiling ACE with
@@ -172,8 +170,6 @@ private:
ACE_Semaphore (const ACE_Semaphore &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Semaphore.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Semaphore.inl b/ace/Semaphore.inl
index 8bfe49ce39c..a519c4e7920 100644
--- a/ace/Semaphore.inl
+++ b/ace/Semaphore.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_sema_t &
ACE_Semaphore::lock (void) const
{
@@ -115,5 +112,3 @@ ACE_Semaphore::tryacquire_write_upgrade (void)
{
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Config.cpp b/ace/Service_Config.cpp
index f69f3569cf9..4055edd6a78 100644
--- a/ace/Service_Config.cpp
+++ b/ace/Service_Config.cpp
@@ -34,8 +34,6 @@ ACE_RCSID (ace,
Service_Config,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_Service_Config)
void
@@ -46,6 +44,13 @@ ACE_Service_Config::dump (void) const
#endif /* ACE_HAS_DUMP */
}
+// All the factory functions that allocate default statically linked
+// services should be placed below.
+
+// Allocate a Service Manager.
+
+ACE_FACTORY_DEFINE (ACE, ACE_Service_Manager)
+
// ----------------------------------------
// Set the signal handler to point to the handle_signal() function.
@@ -159,7 +164,7 @@ int
ACE_Service_Config::parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_TRACE ("ACE_Service_Config::parse_args");
- ACE_Get_Opt getopt (argc,
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc,
argv,
ACE_LIB_TEXT ("bdf:k:nyp:s:S:"),
1); // Start at argv[1].
@@ -345,15 +350,6 @@ ACE_Service_Config::initialize (const ACE_Service_Type *sr,
ACE_LIB_TEXT ("opening dynamic service %s\n"),
sr->name ()));
- ACE_Service_Type *srp = 0;
- if (ACE_Service_Repository::instance ()->find
- (sr->name (),
- (const ACE_Service_Type **) &srp) >= 0)
- ACE_ERROR_RETURN ((LM_DEBUG,
- ACE_LIB_TEXT ("%s already installed, please remove first before reinstalling\n"),
- sr->name ()),
- 0);
-
if (sr->type ()->init (args.argc (),
args.argv ()) == -1)
{
@@ -739,14 +735,12 @@ ACE_Service_Config::open_i (const ACE_TCHAR program_name[],
// There's no point in dealing with this on NT since it doesn't
// really support signals very well...
#if !defined (ACE_LACKS_UNIX_SIGNALS)
- // Only attempt to register a signal handler for positive
- // signal numbers.
- if (ACE_Service_Config::signum_ > 0)
- if (ACE_Reactor::instance ()->register_handler
- (ACE_Service_Config::signum_,
- ACE_Service_Config::signal_handler_) == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("can't register signal handler\n")));
+ // @@ This really ought to be a Singleton.
+ if (ACE_Reactor::instance ()->register_handler
+ (ACE_Service_Config::signum_,
+ ACE_Service_Config::signal_handler_) == -1)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("can't register signal handler\n")));
#endif /* ACE_LACKS_UNIX_SIGNALS */
// See if we need to load the static services.
@@ -920,12 +914,3 @@ ACE_Service_Config::start_daemon (void)
ACE_TRACE ("ACE_Service_Config::start_daemon");
return ACE::daemonize ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-// All the factory functions that allocate default statically linked
-// services should be placed below.
-
-// Allocate a Service Manager.
-
-ACE_FACTORY_DEFINE (ACE, ACE_Service_Manager)
diff --git a/ace/Service_Config.h b/ace/Service_Config.h
index 40955ac8a9b..9397025be47 100644
--- a/ace/Service_Config.h
+++ b/ace/Service_Config.h
@@ -27,8 +27,6 @@
#include "ace/SString.h"
#include "ace/OS_NS_signal.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_Service_Object;
class ACE_Service_Type;
@@ -51,6 +49,16 @@ class ACE_DLL;
ACE_LIB_TEXT ("() \"") \
ACE_LIB_TEXT (parameters) \
ACE_LIB_TEXT ("\"")
+#define ACE_DYNAMIC_SERVICE_DIRECTIVE_A(ident, libpathname, objectclass, parameters) \
+ "dynamic " \
+ ident \
+ " Service_Object * " \
+ libpathname \
+ ":" \
+ objectclass \
+ "() \"" \
+ parameters \
+ "\""
#define ACE_REMOVE_SERVICE_DIRECTIVE(ident) \
ACE_LIB_TEXT ("remove ") \
ACE_LIB_TEXT (ident)
@@ -66,7 +74,7 @@ class ACE_Svc_Conf_Param;
ACE_LIB_TEXT (objectclass) \
ACE_LIB_TEXT ("\"") \
ACE_LIB_TEXT (" params=\"") \
- ACE_LIB_TEXT (parameters) \
+ ACE_LIB_TEXT (parameters)
ACE_LIB_TEXT ("\"/></dynamic></ACE_Svc_Conf>")
#define ACE_REMOVE_SERVICE_DIRECTIVE(ident) \
ACE_LIB_TEXT ("<ACE_Svc_Conf><remove id=\"") \
@@ -75,15 +83,11 @@ class ACE_Svc_Conf_Param;
class ACE_XML_Svc_Conf;
#endif /* ACE_USES_CLASSIC_SVC_CONF == 1 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
extern "C"
{
typedef ACE_Service_Object *(*ACE_SERVICE_ALLOCATOR) (ACE_Service_Object_Exterminator *);
}
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Static_Svc_Descriptor
*
@@ -162,11 +166,7 @@ public:
// = Initialization and termination methods.
- /**
- * Initialize the Service Repository. Note that initialising @a
- * signum to a negative number will prevent a signal handler being
- * registered when the repository is opened.
- */
+ /// Initialize the Service Repository.
ACE_Service_Config (int ignore_static_svcs = 1,
size_t size = ACE_Service_Config::MAX_SERVICES,
int signum = SIGHUP);
@@ -206,7 +206,7 @@ public:
* number of errors encountered loading the services in the
* specified svc.conf configuration file. If @a ignore_debug_flag is
* non-0 then the application is responsible for setting the
- * @c ACE_Log_Msg::priority_mask appropriately.
+ * <ACE_Log_Msg::priority_mask> appropriately.
*/
static int open (const ACE_TCHAR program_name[],
const ACE_TCHAR *logger_key = ACE_DEFAULT_LOGGER_KEY,
@@ -327,7 +327,7 @@ public:
* Suspend @a svc_name. Note that this will not unlink the service
* from the daemon if it was dynamically linked, it will mark it as
* being suspended in the Service Repository and call the <suspend>
- * member function on the appropriate ACE_Service_Object. A
+ * member function on the appropriate <ACE_Service_Object>. A
* service can be resumed later on by calling the <RESUME> member
* function...
*/
@@ -391,7 +391,7 @@ public:
/**
* Handle the command-line options intended for the
- * ACE_Service_Config. Note that @c argv[0] is assumed to be the
+ * <ACE_Service_Config>. Note that <argv[0]> is assumed to be the
* program name.
* The arguments that are valid in a call to this method are
* - '-b' Option to indicate that we should be a daemon
@@ -479,7 +479,7 @@ private:
static ACE_Sig_Adapter *signal_handler_;
/**
- * Keep track of whether the ACE_Service_Config is already
+ * Keep track of whether the <ACE_Service_Config> is already
* initialized. If so, we can't allow <yyparse> to be called since
* it's not reentrant. This variable is incremented by the
* <ACE_Service_Config::open> method and decremented by the
@@ -488,8 +488,6 @@ private:
static int is_initialized_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Service_Config.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Service_Config.inl b/ace/Service_Config.inl
index 44df3f6742d..23a6f81d12f 100644
--- a/ace/Service_Config.inl
+++ b/ace/Service_Config.inl
@@ -4,8 +4,6 @@
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// This is the primary entry point into the ACE_Service_Config (the
// constructor just handles simple initializations).
@@ -74,33 +72,31 @@ ACE_Service_Config::signal_handler (ACE_Sig_Adapter *signal_handler)
ACE_INLINE int
ACE_Service_Config::initialize (const ACE_Service_Type *sp, char parameters[])
{
- return ACE_Service_Config::initialize (sp, ACE_TEXT_CHAR_TO_TCHAR (parameters));
+ return ACE_Service_Config::initialize (sp, ACE_TEXT_TO_TCHAR_IN (parameters));
}
ACE_INLINE int
ACE_Service_Config::initialize (const char svc_name[], char parameters[])
{
- return ACE_Service_Config::initialize (ACE_TEXT_CHAR_TO_TCHAR (svc_name),
- ACE_TEXT_CHAR_TO_TCHAR (parameters));
+ return ACE_Service_Config::initialize (ACE_TEXT_TO_TCHAR_IN (svc_name),
+ ACE_TEXT_TO_TCHAR_IN (parameters));
}
ACE_INLINE int
ACE_Service_Config::resume (const char svc_name[])
{
- return ACE_Service_Config::resume (ACE_TEXT_CHAR_TO_TCHAR (svc_name));
+ return ACE_Service_Config::resume (ACE_TEXT_TO_TCHAR_IN (svc_name));
}
ACE_INLINE int
ACE_Service_Config::suspend (const char svc_name[])
{
- return ACE_Service_Config::suspend (ACE_TEXT_CHAR_TO_TCHAR (svc_name));
+ return ACE_Service_Config::suspend (ACE_TEXT_TO_TCHAR_IN (svc_name));
}
ACE_INLINE int
ACE_Service_Config::remove (const char svc_name[])
{
- return ACE_Service_Config::remove (ACE_TEXT_CHAR_TO_TCHAR (svc_name));
+ return ACE_Service_Config::remove (ACE_TEXT_TO_TCHAR_IN (svc_name));
}
#endif /* ACE_HAS_WINCE && !ACE_USES_WCHAR */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Manager.cpp b/ace/Service_Manager.cpp
index 446302ce87a..2cee64c36c8 100644
--- a/ace/Service_Manager.cpp
+++ b/ace/Service_Manager.cpp
@@ -1,7 +1,9 @@
-// $Id$
-
#include "ace/Service_Manager.h"
+#if !defined (__ACE_INLINE__)
+#include "ace/Service_Manager.inl"
+#endif /* __ACE_INLINE__ */
+
#include "ace/Get_Opt.h"
#include "ace/Log_Msg.h"
#include "ace/Service_Repository.h"
@@ -16,7 +18,6 @@ ACE_RCSID (ace,
Service_Manager,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE (ACE_Service_Manager)
@@ -39,11 +40,6 @@ ACE_Service_Manager::ACE_Service_Manager (void)
ACE_TRACE ("ACE_Service_Manager::ACE_Service_Manager");
}
-ACE_Service_Manager::~ACE_Service_Manager (void)
-{
- ACE_TRACE ("ACE_Service_Manager::~ACE_Service_Manager");
-}
-
int
ACE_Service_Manager::suspend (void)
{
@@ -96,7 +92,7 @@ ACE_Service_Manager::init (int argc, ACE_TCHAR *argv[])
{
ACE_TRACE ("ACE_Service_Manager::init");
ACE_INET_Addr local_addr (ACE_Service_Manager::DEFAULT_PORT_);
- ACE_Get_Opt getopt (argc, argv, ACE_LIB_TEXT ("dp:s:"), 0); // Start at argv[0]
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_LIB_TEXT ("dp:s:"), 0); // Start at argv[0]
for (int c; (c = getopt ()) != -1; )
switch (c)
@@ -233,8 +229,8 @@ ACE_Service_Manager::reconfigure_services (void)
// the rug" out from underneath the existing services in a
// problematic way.
ACE_Service_Config::reconfig_occurred ((sig_atomic_t) 1);
- return static_cast<int> (this->client_stream_.send_n ("done\n",
- sizeof ("done\n")));
+ return this->client_stream_.send_n ("done\n",
+ sizeof ("done\n"));
}
// isolate the request-processing code
@@ -301,7 +297,7 @@ ACE_Service_Manager::handle_input (ACE_HANDLE)
ACE_DEBUG ((LM_DEBUG,
ACE_LIB_TEXT ("accepted from host %s at port %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR (sa.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN (sa.get_host_name ()),
sa.get_port_number ()));
}
@@ -380,5 +376,3 @@ ACE_Service_Manager::handle_input (ACE_HANDLE)
ACE_LIB_TEXT ("close")));
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Manager.h b/ace/Service_Manager.h
index c49449bb820..6c7d745e65e 100644
--- a/ace/Service_Manager.h
+++ b/ace/Service_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,13 +24,11 @@
#include "ace/INET_Addr.h"
#include "ace/Service_Object.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Service_Manager
*
* @brief Provide a standard ACE service for managing all the services
- * configured in an ACE_Service_Repository.
+ * configured in an <ACE_Service_Repository>.
*
* This implementation is simple and just handles each client
* request one at a time. There are currently 3 types of requests:
@@ -114,7 +112,9 @@ protected:
static u_short DEFAULT_PORT_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+#include "ace/Service_Manager.inl"
+#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* _SERVICE_MANAGER_H */
diff --git a/ace/Service_Manager.inl b/ace/Service_Manager.inl
new file mode 100644
index 00000000000..f329d08adfb
--- /dev/null
+++ b/ace/Service_Manager.inl
@@ -0,0 +1,8 @@
+/* -*- C++ -*- */
+// $Id$
+
+ACE_INLINE
+ACE_Service_Manager::~ACE_Service_Manager (void)
+{
+ ACE_TRACE ("ACE_Service_Manager::~ACE_Service_Manager");
+}
diff --git a/ace/Service_Object.cpp b/ace/Service_Object.cpp
index 00de5f6e056..42786291f87 100644
--- a/ace/Service_Object.cpp
+++ b/ace/Service_Object.cpp
@@ -12,10 +12,8 @@
#include "ace/config-all.h"
ACE_RCSID (ace,
- Service_Object,
- "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ Service_Object,
+ "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Service_Object)
ACE_ALLOC_HOOK_DEFINE(ACE_Service_Type)
@@ -126,5 +124,3 @@ ACE_Service_Type::name (const ACE_TCHAR *n)
delete [] const_cast <ACE_TCHAR *> (this->name_);
this->name_ = ACE::strnew (n);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Object.h b/ace/Service_Object.h
index 6101372c5f1..d96e5c59255 100644
--- a/ace/Service_Object.h
+++ b/ace/Service_Object.h
@@ -24,8 +24,6 @@
#include "ace/Event_Handler.h"
#include "ace/DLL.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#define ACE_Component ACE_Service_Object
/**
* @class ACE_Service_Object
@@ -34,9 +32,9 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* implementations.
*
* Classes that inherit from <ACE_Service_Objects> are capable
- * of being registered with the ACE_Reactor (due to the
- * ACE_Event_Handler, as well as being dynamically linked by
- * the ACE_Service_Config (due to the <ACE_Shared_Object>).
+ * of being registered with the <ACE_Reactor> (due to the
+ * <ACE_Event_Handler>, as well as being dynamically linked by
+ * the <ACE_Service_Config> (due to the <ACE_Shared_Object>).
*/
class ACE_Export ACE_Service_Object : public ACE_Event_Handler, public ACE_Shared_Object
{
@@ -142,7 +140,7 @@ private:
* @class ACE_Service_Object_Ptr
*
* @brief This is a smart pointer that holds onto the associated
- * ACE_Service_Object * until the current scope is left, at
+ * <ACE_Service_Object> * until the current scope is left, at
* which point the object's <fini> hook is called and the
* service_object_ gets deleted.
*
@@ -169,8 +167,6 @@ private:
ACE_Service_Object *service_object_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Service_Object.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Service_Object.inl b/ace/Service_Object.inl
index 23eb323085f..5e1b7ae475e 100644
--- a/ace/Service_Object.inl
+++ b/ace/Service_Object.inl
@@ -1,7 +1,7 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Service_Object.i
ACE_INLINE ACE_Service_Object_Ptr::ACE_Service_Object_Ptr (ACE_Service_Object *so)
: service_object_ (so)
@@ -62,6 +62,3 @@ ACE_Service_Type::fini_called (void) const
ACE_TRACE ("ACE_Service_Type::fini_called");
return this->fini_already_called_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
diff --git a/ace/Service_Repository.cpp b/ace/Service_Repository.cpp
index 81feb3b233e..c872df591ff 100644
--- a/ace/Service_Repository.cpp
+++ b/ace/Service_Repository.cpp
@@ -17,8 +17,6 @@ ACE_RCSID (ace,
Service_Repository,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Service_Repository)
// Process-wide Service Repository.
@@ -444,5 +442,3 @@ ACE_Service_Repository_Iterator::advance (void)
return this->next_ < this->svc_rep_.current_size_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Repository.h b/ace/Service_Repository.h
index 1bda4000913..5479f59238e 100644
--- a/ace/Service_Repository.h
+++ b/ace/Service_Repository.h
@@ -24,7 +24,6 @@
#include "ace/Default_Constants.h"
#include "ace/Recursive_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Service_Type;
@@ -76,10 +75,10 @@ public:
/// dynamically allocated services.
int fini (void);
- /// Get pointer to a process-wide ACE_Service_Repository.
+ /// Get pointer to a process-wide <ACE_Service_Repository>.
static ACE_Service_Repository *instance (int size = ACE_Service_Repository::DEFAULT_SIZE);
- /// Set pointer to a process-wide ACE_Service_Repository and return
+ /// Set pointer to a process-wide <ACE_Service_Repository> and return
/// existing pointer.
static ACE_Service_Repository *instance (ACE_Service_Repository *);
@@ -146,7 +145,7 @@ private:
/// Maximum number of services.
int total_size_;
- /// Pointer to a process-wide ACE_Service_Repository.
+ /// Pointer to a process-wide <ACE_Service_Repository>.
static ACE_Service_Repository *svc_rep_;
/// Must delete the <svc_rep_> if non-0.
@@ -161,7 +160,7 @@ private:
/**
* @class ACE_Service_Repository_Iterator
*
- * @brief Iterate through the ACE_Service_Repository.
+ * @brief Iterate through the <ACE_Service_Repository>.
*
* Make sure not to delete entries as the iteration is going on
* since this class is not designed as a robust iterator.
@@ -207,8 +206,6 @@ private:
int ignore_suspended_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Service_Repository.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Service_Repository.inl b/ace/Service_Repository.inl
index 2ecf2de05fa..f6e13326eab 100644
--- a/ace/Service_Repository.inl
+++ b/ace/Service_Repository.inl
@@ -1,7 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
+// Service_Repository.i
+
// Returns a count of the number of currently valid entries (counting
// both resumed and suspended entries).
@@ -10,8 +11,6 @@
#include "ace/Thread_Mutex.h"
#endif /* ACE_MT_SAFE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Service_Repository::current_size (void) const
{
@@ -35,5 +34,3 @@ ACE_INLINE
ACE_Service_Repository_Iterator::~ACE_Service_Repository_Iterator (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Templates.cpp b/ace/Service_Templates.cpp
index 11569316299..d5f3f1b328b 100644
--- a/ace/Service_Templates.cpp
+++ b/ace/Service_Templates.cpp
@@ -1,19 +1,9 @@
// $Id$
-#include "ace/config-lite.h"
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
- defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-# include "ace/Service_Templates.h"
-# include "ace/SString.h"
-
-#endif
+#include "ace/Service_Templates.h"
+#include "ace/SString.h"
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template class ACE_Node<ACE_Static_Svc_Descriptor *>;
template class ACE_Unbounded_Set<ACE_Static_Svc_Descriptor *>;
template class ACE_Unbounded_Set_Iterator<ACE_Static_Svc_Descriptor *>;
@@ -52,13 +42,7 @@ template class ACE_Thru_Task<ACE_SYNCH>;
template class ACE_Task<ACE_NULL_SYNCH>;
template class ACE_Thru_Task<ACE_NULL_SYNCH>;
#endif /* ACE_HAS_THREADS */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#pragma instantiate ACE_Node<ACE_Static_Svc_Descriptor *>
#pragma instantiate ACE_Unbounded_Set<ACE_Static_Svc_Descriptor *>
#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Static_Svc_Descriptor *>
@@ -96,8 +80,4 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#pragma instantiate ACE_Task<ACE_NULL_SYNCH>
#pragma instantiate ACE_Thru_Task<ACE_NULL_SYNCH>
#endif /* ACE_HAS_THREADS */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
diff --git a/ace/Service_Types.cpp b/ace/Service_Types.cpp
index 78972ed64d8..f62a9c0ce98 100644
--- a/ace/Service_Types.cpp
+++ b/ace/Service_Types.cpp
@@ -16,7 +16,6 @@ ACE_RCSID (ace,
Service_Types,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef ACE_Stream<ACE_SYNCH> MT_Stream;
typedef ACE_Module<ACE_SYNCH> MT_Module;
@@ -507,5 +506,3 @@ template class ACE_Thru_Task<ACE_SYNCH>;
#endif *//* ACE_HAS_THREADS */
//#else
//#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Service_Types.h b/ace/Service_Types.h
index e2f6500e8ae..a87169c7dbb 100644
--- a/ace/Service_Types.h
+++ b/ace/Service_Types.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Service_Type_Impl
*
@@ -191,8 +189,6 @@ private:
ACE_Module_Type *head_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Service_Types.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Service_Types.inl b/ace/Service_Types.inl
index 9ebfd705ced..7412140a4d2 100644
--- a/ace/Service_Types.inl
+++ b/ace/Service_Types.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/ACE.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE void *
ACE_Service_Type_Impl::object (void) const
{
@@ -28,5 +25,3 @@ ACE_Service_Type_Impl::name (const ACE_TCHAR *n)
ACE::strdelete (const_cast<ACE_TCHAR*> (this->name_));
this->name_ = ACE::strnew (n);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Memory.cpp b/ace/Shared_Memory.cpp
index 90a9a7ed93e..5e4447075ee 100644
--- a/ace/Shared_Memory.cpp
+++ b/ace/Shared_Memory.cpp
@@ -4,10 +4,6 @@
ACE_RCSID(ace, Shared_Memory, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Shared_Memory::~ACE_Shared_Memory (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Memory.h b/ace/Shared_Memory.h
index 2ebc8b79d36..7d07b598610 100644
--- a/ace/Shared_Memory.h
+++ b/ace/Shared_Memory.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#include "ace/os_include/os_stddef.h"
@@ -24,8 +29,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Shared_Memory
*
@@ -37,7 +40,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* memory. For a much more sophisticated version, please check
* out the <ACE_Malloc> class.
*/
-class ACE_Export ACE_Shared_Memory
+class ACE_Memory_Export ACE_Shared_Memory
{
public:
virtual ~ACE_Shared_Memory (void);
@@ -51,8 +54,6 @@ public:
virtual ACE_HANDLE get_id (void) const = 0;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SHARED_MEMORY_H */
diff --git a/ace/Shared_Memory_MM.cpp b/ace/Shared_Memory_MM.cpp
index 945cb345b20..9ad0bb021f3 100644
--- a/ace/Shared_Memory_MM.cpp
+++ b/ace/Shared_Memory_MM.cpp
@@ -11,7 +11,6 @@ ACE_RCSID (ace,
Shared_Memory_MM,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Shared_Memory_MM)
@@ -89,7 +88,7 @@ void *
ACE_Shared_Memory_MM::malloc (size_t)
{
ACE_TRACE ("ACE_Shared_Memory_MM::malloc");
- void *addr = 0;
+ void *addr;
return this->shared_memory_ (addr) == -1 ? 0 : addr;
}
@@ -107,5 +106,3 @@ ACE_Shared_Memory_MM::free (void *p)
ACE_TRACE ("ACE_Shared_Memory_MM::free");
return p != 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Memory_MM.h b/ace/Shared_Memory_MM.h
index 5a8bd83eed1..bbdf2ef43a7 100644
--- a/ace/Shared_Memory_MM.h
+++ b/ace/Shared_Memory_MM.h
@@ -6,7 +6,7 @@
*
* $Id$
*
- * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
+ * @author Doug Schmidt
*/
//=============================================================================
@@ -23,18 +23,16 @@
#include "ace/Mem_Map.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Shared_Memory_MM
*
* @brief Shared memory wrapper based on MMAP.
*
- * This class provides a very simple-minded shared memory manager. We
- * strongly recommend that you do NOT use this class. Instead, please
- * use @c ACE_Malloc, which has much more powerful capabilities.
+ * This class provides a very simple-minded shared memory
+ * manager. For more a powerful memory allocator please see
+ * <ACE_Malloc>.
*/
-class ACE_Export ACE_Shared_Memory_MM : public ACE_Shared_Memory
+class ACE_Memory_Export ACE_Shared_Memory_MM : public ACE_Shared_Memory
{
public:
// = Initialization and termination methods.
@@ -110,8 +108,6 @@ private:
ACE_Mem_Map shared_memory_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Shared_Memory_MM.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Shared_Memory_MM.inl b/ace/Shared_Memory_MM.inl
index 96d865b667b..ff52dacd44b 100644
--- a/ace/Shared_Memory_MM.inl
+++ b/ace/Shared_Memory_MM.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Shared_Memory_MM.i
// Return the name of file that is mapped (if any).
@@ -38,5 +37,3 @@ ACE_Shared_Memory_MM::open (const ACE_TCHAR *file_name,
return shared_memory_.map (file_name, len, flags, mode,
prot, share, addr, pos);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Memory_Pool.cpp b/ace/Shared_Memory_Pool.cpp
index c61334485b7..014616407da 100644
--- a/ace/Shared_Memory_Pool.cpp
+++ b/ace/Shared_Memory_Pool.cpp
@@ -8,9 +8,6 @@
ACE_RCSID(ace, Shared_Memory_Pool, "$Id$")
#if !defined (ACE_LACKS_SYSV_SHMEM)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Shared_Memory_Pool)
ACE_Shared_Memory_Pool_Options::ACE_Shared_Memory_Pool_Options (const char *base_addr,
@@ -151,7 +148,7 @@ ACE_Shared_Memory_Pool::handle_signal (int , siginfo_t *siginfo, ucontext_t *)
ACE_TRACE ("ACE_Shared_Memory_Pool::handle_signal");
// ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("signal %S occurred\n"), signum));
- // While FreeBSD 5.X has a siginfo_t struct with a si_addr field,
+ // While FreeBSD 5.X has a siginfo_t struct with a si_addr field,
// it does not define SEGV_MAPERR.
#if defined (ACE_HAS_SIGINFO_T) && !defined (ACE_LACKS_SI_ADDR) && \
(defined (SEGV_MAPERR) || defined (SEGV_MEMERR))
@@ -251,7 +248,7 @@ ACE_Shared_Memory_Pool::ACE_Shared_Memory_Pool (const ACE_TCHAR *backing_store_n
// key.
int segment_key;
- int result = ::sscanf (ACE_TEXT_ALWAYS_CHAR (backing_store_name),
+ int result = ::sscanf (ACE_TEXT_TO_CHAR_IN (backing_store_name),
"%d",
&segment_key);
@@ -259,7 +256,7 @@ ACE_Shared_Memory_Pool::ACE_Shared_Memory_Pool (const ACE_TCHAR *backing_store_n
// The conversion to a number failed so hash with crc32
// ACE::crc32 is also used in <SV_Semaphore_Simple>.
this->base_shm_key_ =
- (key_t) ACE::crc32 (ACE_TEXT_ALWAYS_CHAR (backing_store_name));
+ (key_t) ACE::crc32 (ACE_TEXT_TO_CHAR_IN (backing_store_name));
else
this->base_shm_key_ = segment_key;
@@ -453,7 +450,4 @@ ACE_Shared_Memory_Pool::round_up (size_t nbytes)
return ACE::round_to_pagesize (nbytes);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_LACKS_SYSV_SHMEM */
diff --git a/ace/Shared_Memory_Pool.h b/ace/Shared_Memory_Pool.h
index 996cde2b490..1fb46a5cc9c 100644
--- a/ace/Shared_Memory_Pool.h
+++ b/ace/Shared_Memory_Pool.h
@@ -16,20 +16,24 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_MEMORY_BUILD_DLL
+# include "ace/ACE_Memory_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Memory_Export ACE_Export
+#endif /* ACE_MEMORY_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if !defined (ACE_LACKS_SYSV_SHMEM)
-
#include "ace/ACE.h"
#include "ace/Event_Handler.h"
#include "ace/Signal.h"
-#include "ace/os_include/sys/os_mman.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if !defined (ACE_LACKS_SYSV_SHMEM)
+
+#include "ace/os_include/sys/os_mman.h"
/**
* @class ACE_Shared_Memory_Pool_Options
@@ -39,7 +43,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* This should be a nested class, but that breaks too many
* compilers.
*/
-class ACE_Export ACE_Shared_Memory_Pool_Options
+class ACE_Memory_Export ACE_Shared_Memory_Pool_Options
{
public:
/// Initialization method.
@@ -78,7 +82,7 @@ public:
* provides more powerful features, such as persistent backing store
* and greatly scalability.
*/
-class ACE_Export ACE_Shared_Memory_Pool : public ACE_Event_Handler
+class ACE_Memory_Export ACE_Shared_Memory_Pool : public ACE_Event_Handler
{
public:
typedef ACE_Shared_Memory_Pool_Options OPTIONS;
@@ -199,9 +203,6 @@ protected:
/// properly.
virtual int handle_signal (int signum, siginfo_t *, ucontext_t *);
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* !ACE_LACKS_SYSV_SHMEM */
#include /**/ "ace/post.h"
diff --git a/ace/Shared_Memory_SV.cpp b/ace/Shared_Memory_SV.cpp
index 8378b75d7dc..59d6ad2fedc 100644
--- a/ace/Shared_Memory_SV.cpp
+++ b/ace/Shared_Memory_SV.cpp
@@ -12,8 +12,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Shared_Memory_SV)
void
@@ -25,11 +23,11 @@ ACE_Shared_Memory_SV::dump (void) const
}
ACE_Shared_Memory_SV::ACE_Shared_Memory_SV (key_t id,
- int length,
- int create,
- int perms,
- void *addr,
- int flags)
+ int length,
+ int create,
+ int perms,
+ void *addr,
+ int flags)
: shared_memory_ (id, length, create, perms, addr, flags)
{
ACE_TRACE ("ACE_Shared_Memory_SV::ACE_Shared_Memory_SV");
@@ -84,5 +82,3 @@ ACE_Shared_Memory_SV::free (void *p)
ACE_TRACE ("ACE_Shared_Memory_SV::free");
return p != 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Memory_SV.h b/ace/Shared_Memory_SV.h
index 565d69c14cb..c4c59d5d4e6 100644
--- a/ace/Shared_Memory_SV.h
+++ b/ace/Shared_Memory_SV.h
@@ -6,7 +6,7 @@
*
* $Id$
*
- * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
+ * @author Doug Schmidt
*/
//=============================================================================
@@ -23,18 +23,16 @@
#include "ace/SV_Shared_Memory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Shared_Memory_SV
*
* @brief Shared memory wrapper based on System V shared memory.
*
- * This class provides a very simple-minded shared memory manager. We
- * strongly recommend that you do NOT use this class. Instead, please
- * use @c ACE_Malloc, which has much more powerful capabilities.
+ * This class provides a very simple-minded shared memory
+ * manager. For more a powerful memory allocator please see
+ * <ACE_Malloc>.
*/
-class ACE_Export ACE_Shared_Memory_SV : public ACE_Shared_Memory
+class ACE_Memory_Export ACE_Shared_Memory_SV : public ACE_Shared_Memory
{
public:
enum
@@ -91,8 +89,6 @@ private:
ACE_SV_Shared_Memory shared_memory_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Shared_Memory_SV.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Shared_Memory_SV.inl b/ace/Shared_Memory_SV.inl
index f40fc55c28d..1830df3f630 100644
--- a/ace/Shared_Memory_SV.inl
+++ b/ace/Shared_Memory_SV.inl
@@ -1,22 +1,21 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/Global_Macros.h"
+// Shared_Memory_SV.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/Global_Macros.h"
ACE_INLINE int
ACE_Shared_Memory_SV::open (key_t id,
- int length,
- int create,
- int perms,
- void *addr,
- int flags)
+ int length,
+ int create,
+ int perms,
+ void *addr,
+ int flags)
{
ACE_TRACE ("ACE_Shared_Memory_SV::open");
return shared_memory_.open_and_attach (id, length, create,
- perms, addr, flags);
+ perms, addr, flags);
}
// The "do-nothing" constructor.
@@ -26,5 +25,3 @@ ACE_Shared_Memory_SV::ACE_Shared_Memory_SV (void)
{
ACE_TRACE ("ACE_Shared_Memory_SV::ACE_Shared_Memory_SV");
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Object.cpp b/ace/Shared_Object.cpp
index 2be49edf997..86164c16759 100644
--- a/ace/Shared_Object.cpp
+++ b/ace/Shared_Object.cpp
@@ -16,8 +16,6 @@ ACE_RCSID (ace,
Shared_Object,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Initializes object when dynamic linking occurs.
int
@@ -51,5 +49,3 @@ ACE_Shared_Object::~ACE_Shared_Object (void)
{
ACE_TRACE ("ACE_Shared_Object::~ACE_Shared_Object");
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Shared_Object.h b/ace/Shared_Object.h
index ee987b23122..006dbb99eaf 100644
--- a/ace/Shared_Object.h
+++ b/ace/Shared_Object.h
@@ -23,8 +23,6 @@
#include "ace/os_include/sys/os_types.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Shared_Object
*
@@ -48,8 +46,6 @@ public:
virtual ~ACE_Shared_Object (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Shared_Object.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Shared_Object.inl b/ace/Shared_Object.inl
index cd76cb6a267..36a42157cb2 100644
--- a/ace/Shared_Object.inl
+++ b/ace/Shared_Object.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Shared_Object::ACE_Shared_Object (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Signal.cpp b/ace/Signal.cpp
index 1f24ebd7c26..624787c6ee4 100644
--- a/ace/Signal.cpp
+++ b/ace/Signal.cpp
@@ -45,8 +45,6 @@ ace_sig_handlers_dispatch (int signum, siginfo_t *info, ucontext_t *context)
#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
#endif /* ACE_HAS_SIG_C_FUNC */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Array of Event_Handlers that will handle the signals.
ACE_Event_Handler *ACE_Sig_Handler::signal_handlers_[ACE_NSIG];
@@ -880,5 +878,3 @@ template class ACE_Fixed_Set_Iterator_Base<ACE_Event_Handler *, ACE_MAX_SIGNAL_H
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Signal.h b/ace/Signal.h
index 45bddf2c22f..576f80f2a70 100644
--- a/ace/Signal.h
+++ b/ace/Signal.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -32,8 +32,6 @@
// Type of the extended signal handler.
typedef void (*ACE_Sig_Handler_Ex) (int, siginfo_t *siginfo, ucontext_t *ucontext);
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Sig_Set
*
@@ -266,11 +264,11 @@ private:
* objects to handle signals in a way that avoids the use of
* global/static variables and functions.
*
- * Using this class a program can register an ACE_Event_Handler
- * with the ACE_Sig_Handler in order to handle a designated
+ * Using this class a program can register an <ACE_Event_Handler>
+ * with the <ACE_Sig_Handler> in order to handle a designated
* <signum>. When a signal occurs that corresponds to this
* <signum>, the <handle_signal> method of the registered
- * ACE_Event_Handler is invoked automatically.
+ * <ACE_Event_Handler> is invoked automatically.
*/
class ACE_Export ACE_Sig_Handler
{
@@ -281,8 +279,8 @@ public:
// = Registration and removal methods.
/**
- * Add a new ACE_Event_Handler and a new sigaction associated with
- * <signum>. Passes back the existing ACE_Event_Handler and its
+ * Add a new <ACE_Event_Handler> and a new sigaction associated with
+ * <signum>. Passes back the existing <ACE_Event_Handler> and its
* sigaction if pointers are non-zero. Returns -1 on failure and >=
* 0 on success.
*/
@@ -293,7 +291,7 @@ public:
ACE_Sig_Action *old_disp = 0);
/**
- * Remove the ACE_Event_Handler currently associated with
+ * Remove the <ACE_Event_Handler> currently associated with
* <signum>. <sigkey> is ignored in this implementation since there
* is only one instance of a signal handler. Install the new
* disposition (if given) and return the previous disposition (if
@@ -314,10 +312,10 @@ public:
// = Set/get the handler associated with a particular signal.
- /// Return the ACE_Sig_Handler associated with <signum>.
+ /// Return the <ACE_Sig_Handler> associated with <signum>.
virtual ACE_Event_Handler *handler (int signum);
- /// Set a new ACE_Event_Handler that is associated with <signum>.
+ /// Set a new <ACE_Event_Handler> that is associated with <signum>.
/// Return the existing handler.
virtual ACE_Event_Handler *handler (int signum,
ACE_Event_Handler *);
@@ -340,7 +338,7 @@ protected:
// = These methods and data members are shared by derived classes.
/**
- * Set a new ACE_Event_Handler that is associated with <signum>.
+ * Set a new <ACE_Event_Handler> that is associated with <signum>.
* Return the existing handler. Does not acquire any locks so that
* it can be called from a signal handler, such as <dispatch>.
*/
@@ -351,8 +349,8 @@ protected:
* This implementation method is called by <register_handler> and
* <dispatch>. It doesn't do any locking so that it can be called
* within a signal handler, such as <dispatch>. It adds a new
- * ACE_Event_Handler and a new sigaction associated with <signum>.
- * Passes back the existing ACE_Event_Handler and its sigaction if
+ * <ACE_Event_Handler> and a new sigaction associated with <signum>.
+ * Passes back the existing <ACE_Event_Handler> and its sigaction if
* pointers are non-zero. Returns -1 on failure and >= 0 on
* success.
*/
@@ -378,7 +376,7 @@ private:
* @class ACE_Sig_Adapter
*
* @brief Provide an adapter that transforms various types of signal
- * handlers into the scheme used by the ACE_Reactor.
+ * handlers into the scheme used by the <ACE_Reactor>.
*/
class ACE_Export ACE_Sig_Adapter : public ACE_Event_Handler
{
@@ -389,7 +387,7 @@ public:
~ACE_Sig_Adapter (void);
/// Returns this signal key that's used to remove this from the
- /// ACE_Reactor's internal table.
+ /// <ACE_Reactor>'s internal table.
int sigkey (void);
/// Called by the <Reactor> to dispatch the signal handler.
@@ -454,7 +452,7 @@ public:
ACE_Sig_Action *old_disp = 0);
/**
- * Remove an ACE_Event_Handler currently associated with <signum>.
+ * Remove an <ACE_Event_Handler> currently associated with <signum>.
* We remove the handler if (1) its <sigkey> matches the <sigkey>
* passed as a parameter or (2) if we've been told to remove all the
* handlers, i.e., <sigkey> == -1. If a new disposition is given it
@@ -469,12 +467,12 @@ public:
// = Set/get the handler associated with a particular signal.
- /// Return the head of the list of ACE_Sig_Handlers associated with
+ /// Return the head of the list of <ACE_Sig_Handler>s associated with
/// SIGNUM.
virtual ACE_Event_Handler *handler (int signum);
/**
- * Set a new ACE_Event_Handler that is associated with SIGNUM at
+ * Set a new <ACE_Event_Handler> that is associated with SIGNUM at
* the head of the list of signals. Return the existing handler
* that was at the head.
*/
@@ -508,7 +506,16 @@ private:
};
#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
-ACE_END_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_SIG_C_FUNC)
+extern "C" void
+ace_sig_handler_dispatch (int signum, siginfo_t *info, ucontext_t *context);
+
+#if !defined (ACE_HAS_BROKEN_HPUX_TEMPLATES)
+extern "C" void
+ace_sig_handlers_dispatch (int signum, siginfo_t *info, ucontext_t *context);
+#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
+
+#endif /* ACE_HAS_SIG_C_FUNC */
#if defined (__ACE_INLINE__)
#include "ace/Signal.inl"
diff --git a/ace/Signal.inl b/ace/Signal.inl
index ef871441aca..e7a12852d95 100644
--- a/ace/Signal.inl
+++ b/ace/Signal.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/OS_NS_signal.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Sig_Set::ACE_Sig_Set (sigset_t *ss)
// : sigset_ ()
@@ -304,5 +301,3 @@ ACE_Sig_Handler::in_range (int signum)
ACE_TRACE ("ACE_Sig_Handler::in_range");
return signum > 0 && signum < ACE_NSIG;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Singleton.cpp b/ace/Singleton.cpp
index fa3c00993b0..45965f85814 100644
--- a/ace/Singleton.cpp
+++ b/ace/Singleton.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_SINGLETON_CPP
-#define ACE_SINGLETON_CPP
+#ifndef ACE_SINGLETON_C
+#define ACE_SINGLETON_C
#include "ace/Singleton.h"
@@ -22,9 +22,6 @@ ACE_RCSID (ace,
Singleton,
"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE, class ACE_LOCK> void
ACE_Singleton<TYPE, ACE_LOCK>::dump (void)
{
@@ -526,9 +523,7 @@ ACE_DLL_Singleton_Adapter_T<TYPE>::dll_name (void)
{
// @todo make this a constant somewhere (or it there already is one
// then use it.
- return ACE_TEXT("ACE");
+ return ACE_LIB_TEXT("ACE");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_SINGLETON_CPP */
+#endif /* ACE_SINGLETON_C */
diff --git a/ace/Singleton.h b/ace/Singleton.h
index 7c6baca3edb..57b0a8a9d75 100644
--- a/ace/Singleton.h
+++ b/ace/Singleton.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -29,8 +29,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Singleton
*
@@ -64,7 +62,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* typedef ACE_Singleton<foo, ACE_Null_Mutex> FOO;
* @endverbatim
*
- * @note The best types to use for ACE_LOCK are
+ * NOTE: the best types to use for ACE_LOCK are
* ACE_Recursive_Thread_Mutex and ACE_Null_Mutex.
* ACE_Recursive_Thread_Mutex should be used in multi-threaded
* programs in which it is possible for more than one thread to
@@ -310,8 +308,6 @@ public:
const ACE_TCHAR *dll_name (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Singleton.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Singleton.inl b/ace/Singleton.inl
index 4351a59a5f6..12dfe1bdda3 100644
--- a/ace/Singleton.inl
+++ b/ace/Singleton.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default constructors.
//
// Note: don't explicitly initialize "instance_", because TYPE may not
@@ -38,5 +35,3 @@ template <class TYPE, class ACE_LOCK>
ACE_DLL_Singleton_T<TYPE, ACE_LOCK>::~ACE_DLL_Singleton_T (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Sock_Connect.cpp b/ace/Sock_Connect.cpp
index c566ce17ae2..ed8e2082d25 100644
--- a/ace/Sock_Connect.cpp
+++ b/ace/Sock_Connect.cpp
@@ -29,14 +29,14 @@
# include /**/ <ifaddrs.h>
# endif /* ACE_HAS_GETIFADDRS */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x600)
+#if defined (VXWORKS)
#include /**/ <inetLib.h>
#include /**/ <netinet/in_var.h>
extern "C" {
extern struct in_ifaddr* in_ifaddr;
}
#include "ace/OS_NS_stdio.h"
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
#if defined (ACE_HAS_WINCE)
#include /**/ <Iphlpapi.h>
@@ -51,13 +51,13 @@ extern "C" {
# include "ace/Object_Manager.h"
# endif /* ACE_HAS_THREADS */
-namespace
+namespace ACE
{
// private:
// Used internally so not exported.
/// Does this box have ipv6 turned on?
- int ace_ipv6_enabled = -1;
+ int ipv6_enabled_ = -1;
}
#endif /* ACE_HAS_IPV6 */
@@ -67,7 +67,10 @@ namespace
// and not the one for <sys/socket.h> which is also needed. Although we
// don't need the template defined here, it makes the compiler pull in
// <sys/socket.h> and the build runs clean.
-#if defined (AIX) && defined (__IBMCPP__) && (__IBMCPP__ >= 500) && (__IBMCPP__ < 700)
+#if defined (AIX) && defined (__IBMCPP__) && (__IBMCPP__ >= 500)
+# if (__IBMCPP__ >= 700)
+# error Recheck this hack to see if version 7 fixed it!
+# endif
static ACE_Auto_Array_Ptr<sockaddr> force_compiler_to_include_socket_h;
#endif /* AIX && __IBMCPP__ >= 500 */
@@ -272,8 +275,6 @@ get_windows_version()
#endif //(ACE_WIN32) && !(ACE_HAS_WINSOCK2) || (ACE_HAS_WINSOCK2) && (ACE_HAS_WINSOCK2 == 0)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Bind socket to an unused port.
int
@@ -391,7 +392,7 @@ ACE::get_bcast_addr (ACE_UINT32 &bcast_addr,
// Get host ip address if necessary.
if (host_name)
{
- hostent *hp = ACE_OS::gethostbyname (ACE_TEXT_ALWAYS_CHAR (host_name));
+ hostent *hp = ACE_OS::gethostbyname (ACE_TEXT_TO_CHAR_IN (host_name));
if (hp == 0)
return -1;
@@ -625,10 +626,10 @@ ACE::get_ip_interfaces (size_t &count,
// Now go through the list and transfer the good ones to the list of
// because they're down or don't have an IP address.
- for (count = 0, i = 0; i < n_interfaces; ++i)
+ for (count = 0, i = 0; i < n_interfaces; i++)
{
LPINTERFACE_INFO lpii;
- struct sockaddr_in *addrp = 0;
+ struct sockaddr_in *addrp;
lpii = &info[i];
if (!(lpii->iiFlags & IFF_UP))
@@ -976,7 +977,7 @@ ACE::get_ip_interfaces (size_t &count,
// Count the number of interfaces
while (dev_names.next () != 0)
- ++n_interfaces;
+ n_interfaces ++;
// case 1. no interfaces present, empty string? OS version change?
if (n_interfaces == 0)
@@ -1076,7 +1077,7 @@ ACE::get_ip_interfaces (size_t &count,
addrs[count].set ((u_short) 0,
addr->sin_addr.s_addr,
0);
- ++count;
+ count++;
}
}
# if defined (ACE_HAS_IPV6)
@@ -1091,7 +1092,7 @@ ACE::get_ip_interfaces (size_t &count,
{
addrs[count].set(reinterpret_cast<struct sockaddr_in *> (addr),
sizeof(sockaddr_in6));
- ++count;
+ count++;
}
}
# endif /* ACE_HAS_IPV6 */
@@ -1101,7 +1102,7 @@ ACE::get_ip_interfaces (size_t &count,
return 0;
-#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) || (defined (ACE_VXWORKS) && (ACE_VXWORKS >= 0x600))
+#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX)
// COMMON (SVR4 and BSD) UNIX CODE
size_t num_ifs, num_ifs_found;
@@ -1211,17 +1212,17 @@ ACE::get_ip_interfaces (size_t &count,
if (inAddr.sin_addr.s_addr != 0)
{
addrs[count].set(&inAddr, sizeof(struct sockaddr_in));
- ++count;
+ count++;
}
#endif /* ! _UNICOS */
}
#if !defined(CHORUS_4) && !defined(AIX) && !defined (__QNX__) && !defined (__FreeBSD__) && !defined(__NetBSD__)
- ++pcur;
+ pcur++;
#else
if (pcur->ifr_addr.sa_len <= sizeof (struct sockaddr))
{
- ++pcur;
+ pcur++;
}
else
{
@@ -1269,7 +1270,7 @@ ACE::get_ip_interfaces (size_t &count,
!IN6_IS_ADDR_UNSPECIFIED (&reinterpret_cast<sockaddr_in6 *> (res0->ai_addr)->sin6_addr))
{
addrs[count].set(reinterpret_cast<sockaddr_in *> (res0->ai_addr), res0->ai_addrlen);
- ++count;
+ count++;
}
freeaddrinfo (res0);
@@ -1279,7 +1280,7 @@ ACE::get_ip_interfaces (size_t &count,
# endif /* ACE_HAS_IPV6 */
return 0;
-#elif defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x600)
+#elif defined (VXWORKS)
count = 0;
// Loop through each address structure
for (struct in_ifaddr* ia = in_ifaddr; ia != 0; ia = ia->ia_next)
@@ -1329,7 +1330,7 @@ ACE::get_ip_interfaces (size_t &count,
#else
ACE_UNUSED_ARG (count);
ACE_UNUSED_ARG (addrs);
- ACE_NOTSUP_RETURN (-1); // no implementation
+ ACE_NOTSUP_RETURN (-1);; // no implementation
#endif /* ACE_WIN32 */
}
@@ -1370,7 +1371,7 @@ ACE::count_interfaces (ACE_HANDLE handle, size_t &how_many)
how_many = num_ifs;
return 0;
-#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) || (defined (ACE_VXWORKS) && (ACE_VXWORKS >= 0x600))
+#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX)
// Note: DEC CXX doesn't define "unix". BSD compatible OS: HP UX,
// AIX, SunOS 4.x perform some ioctls to retrieve ifconf list of
// ifreq structs no SIOCGIFNUM on SunOS 4.x, so use guess and scan
@@ -1466,7 +1467,7 @@ ACE::count_interfaces (ACE_HANDLE handle, size_t &how_many)
#else
ACE_UNUSED_ARG (handle);
ACE_UNUSED_ARG (how_many);
- ACE_NOTSUP_RETURN (-1); // no implementation
+ ACE_NOTSUP_RETURN (-1);; // no implmentation
#endif /* sparc && SIOCGIFNUM */
}
@@ -1479,7 +1480,7 @@ ACE::get_handle (void)
ACE_HANDLE handle = ACE_INVALID_HANDLE;
#if defined (sparc) && ! defined (CHORUS)
handle = ACE_OS::open ("/dev/udp", O_RDONLY);
-#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX) || (defined (ACE_VXWORKS) && (ACE_VXWORKS >= 0x600))
+#elif defined (__unix) || defined (__unix__) || defined (__Lynx__) || defined (_AIX)
// Note: DEC CXX doesn't define "unix" BSD compatible OS: HP UX,
// AIX, SunOS 4.x
@@ -1493,30 +1494,30 @@ int
ACE::ipv6_enabled (void)
{
#if defined (ACE_HAS_IPV6)
- if (ace_ipv6_enabled == -1)
+ if (ACE::ipv6_enabled_ == -1)
{
// Perform Double-Checked Locking Optimization.
ACE_MT (ACE_GUARD_RETURN (ACE_Recursive_Thread_Mutex, ace_mon,
*ACE_Static_Object_Lock::instance (), 0));
- if (ace_ipv6_enabled == -1)
+ if (ACE::ipv6_enabled_ == -1)
{
// Determine if the kernel has IPv6 support by attempting to
// create a PF_INET6 socket and see if it fails.
ACE_HANDLE s = ACE_OS::socket (PF_INET6, SOCK_DGRAM, 0);
if (s == ACE_INVALID_HANDLE)
{
- ace_ipv6_enabled = 0;
+ ACE::ipv6_enabled_ = 0;
}
else
{
- ace_ipv6_enabled = 1;
+ ACE::ipv6_enabled_ = 1;
ACE_OS::closesocket (s);
}
}
}
- return ace_ipv6_enabled;
+ return ACE::ipv6_enabled_;
#else /* ACE_HAS_IPV6 */
return 0;
#endif /* !ACE_HAS_IPV6 */
@@ -1532,5 +1533,3 @@ template class ACE_Auto_Basic_Array_Ptr<struct ifreq>;
#pragma instantiate ACE_Auto_Basic_Array_Ptr<struct ifreq>
# endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* (__unix || __Lynx_ || AIX ) */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Sock_Connect.h b/ace/Sock_Connect.h
index 90e9ecf1c07..532892d64fa 100644
--- a/ace/Sock_Connect.h
+++ b/ace/Sock_Connect.h
@@ -25,8 +25,6 @@
#include "ace/Basic_Types.h"
#include "ace/os_include/netinet/os_in.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward Declarations
class ACE_INET_Addr;
@@ -84,8 +82,6 @@ namespace ACE
extern ACE_Export int ipv6_enabled (void);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SOCK_CONNECT_H */
diff --git a/ace/Static_Object_Lock.h b/ace/Static_Object_Lock.h
index 5a765a24fbd..93006c34001 100644
--- a/ace/Static_Object_Lock.h
+++ b/ace/Static_Object_Lock.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#if defined (ACE_HAS_THREADS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Recursive_Thread_Mutex;
/**
@@ -49,15 +47,11 @@ public:
static void cleanup_lock (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
// hack to get around errors while compiling using split-cpp
#if defined (ACE_HAS_THREADS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_IS_SPLITTING)
typedef ACE_Cleanup_Adapter<ACE_Recursive_Thread_Mutex> ACE_Static_Object_Lock_Type;
@@ -70,8 +64,6 @@ static ACE_Static_Object_Lock_Type *ACE_Static_Object_Lock_lock = 0;
# endif /* ACE_IS_SPLITTING */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
#include /**/ "ace/post.h"
diff --git a/ace/Stats.cpp b/ace/Stats.cpp
index 058830a8cc6..bd371c95169 100644
--- a/ace/Stats.cpp
+++ b/ace/Stats.cpp
@@ -12,8 +12,6 @@
ACE_RCSID(ace, Stats, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_UINT32
ACE_Stats_Value::fractional_field (void) const
{
@@ -521,7 +519,7 @@ ACE_Throughput_Stats::accumulate (const ACE_Throughput_Stats &rhs)
}
void
-ACE_Throughput_Stats::dump_results (const ACE_TCHAR* msg,
+ACE_Throughput_Stats::dump_results (const char* msg,
ACE_UINT32 sf)
{
if (this->samples_count () == 0u)
@@ -584,7 +582,56 @@ ACE_Throughput_Stats::dump_results (const ACE_TCHAR* msg,
}
void
-ACE_Throughput_Stats::dump_throughput (const ACE_TCHAR *msg,
+ACE_Throughput_Stats::dump_results (const wchar_t* msg,
+ ACE_UINT32 sf)
+{
+ if (this->samples_count () == 0u)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_LIB_TEXT ("%s : no data collected\n"), msg));
+ return;
+ }
+
+ this->ACE_Basic_Stats::dump_results (msg, sf);
+
+ ACE_Throughput_Stats::dump_throughput (msg, sf,
+ this->throughput_last_,
+ this->samples_count ());
+}
+
+void
+ACE_Throughput_Stats::dump_throughput (const char *msg,
+ ACE_UINT32 sf,
+ ACE_UINT64 elapsed_time,
+ ACE_UINT32 samples_count)
+{
+#ifndef ACE_NLOGGING
+ double seconds =
+# if defined ACE_LACKS_LONGLONG_T
+ elapsed_time / sf;
+#elif defined (ACE_LACKS_UNSIGNEDLONGLONG_T)
+ static_cast<double> (ACE_UINT64_DBLCAST_ADAPTER (
+ ACE_U_LongLong(elapsed_time / sf)));
+# else /* ! ACE_LACKS_LONGLONG_T */
+ static_cast<double> (ACE_UINT64_DBLCAST_ADAPTER (elapsed_time / sf));
+# endif /* ! ACE_LACKS_LONGLONG_T */
+ seconds /= ACE_HR_SCALE_CONVERSION;
+
+ const double t_avg = samples_count / seconds;
+
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_LIB_TEXT ("%s throughput: %.2f (events/second)\n"),
+ msg, t_avg));
+#else
+ ACE_UNUSED_ARG (msg);
+ ACE_UNUSED_ARG (sf);
+ ACE_UNUSED_ARG (elapsed_time);
+ ACE_UNUSED_ARG (samples_count);
+#endif /* ACE_NLOGGING */
+}
+
+void
+ACE_Throughput_Stats::dump_throughput (const wchar_t *msg,
ACE_UINT32 sf,
ACE_UINT64 elapsed_time,
ACE_UINT32 samples_count)
@@ -614,4 +661,10 @@ ACE_Throughput_Stats::dump_throughput (const ACE_TCHAR *msg,
#endif /* ACE_NLOGGING */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
+// ****************************************************************
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/ace/Stats.h b/ace/Stats.h
index a95328b74d1..ab11b399303 100644
--- a/ace/Stats.h
+++ b/ace/Stats.h
@@ -26,8 +26,6 @@
#include "ace/Log_Msg.h"
#include "ace/Basic_Stats.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Stats_Value
*
@@ -81,10 +79,6 @@ public:
void dump (void) const;
private:
-
- ACE_Stats_Value (void) {}
-
-private:
/// The integer portion of the value.
ACE_UINT32 whole_;
@@ -98,6 +92,7 @@ private:
*/
u_int precision_;
+ ACE_UNIMPLEMENTED_FUNC (ACE_Stats_Value (void))
};
/**
@@ -193,7 +188,7 @@ public:
/// Print summary statistics to stdout.
void dump (void) const;
-protected:
+private:
/// Internal indication of whether there has been overflow. Contains
/// the errno corresponding to the cause of overflow.
u_int overflow_;
@@ -243,10 +238,19 @@ public:
void accumulate (const ACE_Throughput_Stats &throughput);
/// Print down the stats
- void dump_results (const ACE_TCHAR* msg, ACE_UINT32 scale_factor);
+ void dump_results (const char* msg, ACE_UINT32 scale_factor);
+
+ /// Print down the stats
+ void dump_results (const wchar_t* msg, ACE_UINT32 scale_factor);
+
+ /// Dump the average throughput stats.
+ static void dump_throughput (const char *msg,
+ ACE_UINT32 scale_factor,
+ ACE_UINT64 elapsed_time,
+ ACE_UINT32 samples_count);
/// Dump the average throughput stats.
- static void dump_throughput (const ACE_TCHAR *msg,
+ static void dump_throughput (const wchar_t *msg,
ACE_UINT32 scale_factor,
ACE_UINT64 elapsed_time,
ACE_UINT32 samples_count);
@@ -267,7 +271,6 @@ private:
#endif /* 0 */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
# include "ace/Stats.inl"
diff --git a/ace/Stats.inl b/ace/Stats.inl
index 5fecfde1de8..bafa86161e8 100644
--- a/ace/Stats.inl
+++ b/ace/Stats.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Stats_Value::ACE_Stats_Value (const u_int precision)
: whole_ (0),
@@ -100,5 +97,3 @@ ACE_Stats::dump (void) const
print_summary (3u);
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Strategies_T.cpp b/ace/Strategies_T.cpp
index 9704224fdf5..2bf2eaeb93f 100644
--- a/ace/Strategies_T.cpp
+++ b/ace/Strategies_T.cpp
@@ -1,5 +1,3 @@
-// $Id$
-
#ifndef ACE_STRATEGIES_T_CPP
#define ACE_STRATEGIES_T_CPP
@@ -22,7 +20,11 @@
#include "ace/Strategies_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_RCSID (ace,
+ Strategies_T,
+ "$Id$")
+
template<class SVC_HANDLER>
ACE_Recycling_Strategy<SVC_HANDLER>::~ACE_Recycling_Strategy (void)
@@ -1485,6 +1487,4 @@ ACE_ALLOC_HOOK_DEFINE(ACE_Process_Strategy)
ACE_ALLOC_HOOK_DEFINE(ACE_Accept_Strategy)
ACE_ALLOC_HOOK_DEFINE(ACE_Thread_Strategy)
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_STRATEGIES_T_CPP */
diff --git a/ace/Strategies_T.h b/ace/Strategies_T.h
index 8171bf8b07f..9dfcfc1f134 100644
--- a/ace/Strategies_T.h
+++ b/ace/Strategies_T.h
@@ -32,7 +32,6 @@
// Needed for broken linkers that can't grok long symbols.
#define ACE_Refcounted_Hash_Recyclable ARHR
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Service_Repository;
@@ -1057,8 +1056,6 @@ protected:
int delete_recycling_strategy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Strategies_T.inl"
#endif /* __ACE_INLINE__ */
@@ -1073,4 +1070,5 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
+
#endif /* ACE_STRATEGIES_T_H */
diff --git a/ace/Strategies_T.inl b/ace/Strategies_T.inl
index a6a6d1dfd1a..6f0c59304b1 100644
--- a/ace/Strategies_T.inl
+++ b/ace/Strategies_T.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class SVC_HANDLER> ACE_INLINE
ACE_Singleton_Strategy<SVC_HANDLER>::ACE_Singleton_Strategy (SVC_HANDLER *sh,
ACE_Thread_Manager *tm)
@@ -226,5 +224,3 @@ ACE_Refcounted_Hash_Recyclable<T>::operator!= (const ACE_Refcounted_Hash_Recycla
{
return !this->operator== (rhs);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Stream.cpp b/ace/Stream.cpp
index b44b04ddacc..e76db19c6ce 100644
--- a/ace/Stream.cpp
+++ b/ace/Stream.cpp
@@ -1,8 +1,8 @@
// Stream.cpp
// $Id$
-#ifndef ACE_STREAM_CPP
-#define ACE_STREAM_CPP
+#ifndef ACE_STREAM_C
+#define ACE_STREAM_C
//#include "ace/Module.h"
#include "ace/Stream.h"
@@ -18,7 +18,7 @@
#include "ace/Stream.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Stream, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Stream)
@@ -614,6 +614,4 @@ ACE_Stream_Iterator<ACE_SYNCH_USE>::ACE_Stream_Iterator (const ACE_Stream<ACE_SY
ACE_TRACE ("ACE_Stream_Iterator<ACE_SYNCH_USE>::ACE_Stream_Iterator");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_STREAM_CPP */
+#endif /* ACE_STREAM_C */
diff --git a/ace/Stream.h b/ace/Stream.h
index 1ab1cacf3ea..fed079368e4 100644
--- a/ace/Stream.h
+++ b/ace/Stream.h
@@ -25,8 +25,6 @@
#include "ace/Message_Block.h"
#include "ace/Module.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls.
template<ACE_SYNCH_DECL> class ACE_Stream_Iterator;
class ACE_Time_Value;
@@ -222,8 +220,6 @@ private:
ACE_Module<ACE_SYNCH_USE> *next_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Stream.inl b/ace/Stream.inl
index 24ff6840431..42a4989eff0 100644
--- a/ace/Stream.inl
+++ b/ace/Stream.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// Stream.i
template <ACE_SYNCH_DECL> ACE_INLINE ACE_Module<ACE_SYNCH_USE> *
ACE_Stream<ACE_SYNCH_USE>::head (void)
@@ -48,4 +47,3 @@ ACE_Stream_Iterator<ACE_SYNCH_USE>::advance (void)
return this->next_ != 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Stream_Modules.cpp b/ace/Stream_Modules.cpp
index 69163951323..3e4b4a6f1b7 100644
--- a/ace/Stream_Modules.cpp
+++ b/ace/Stream_Modules.cpp
@@ -1,7 +1,8 @@
+// Stream_Modules.cpp
// $Id$
-#ifndef ACE_STREAM_MODULES_CPP
-#define ACE_STREAM_MODULES_CPP
+#ifndef ACE_STREAM_MODULES_C
+#define ACE_STREAM_MODULES_C
#include "ace/Stream_Modules.h"
#include "ace/OS_NS_string.h"
@@ -10,8 +11,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Stream_Modules, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Stream_Head)
@@ -375,6 +375,4 @@ ACE_Thru_Task<ACE_SYNCH_USE>::fini (void)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_STREAM_MODULES_CPP */
+#endif /* ACE_STREAM_MODULES_C */
diff --git a/ace/Stream_Modules.h b/ace/Stream_Modules.h
index 10d396c95f5..c108ff55603 100644
--- a/ace/Stream_Modules.h
+++ b/ace/Stream_Modules.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
#define ACE_STREAM_MODULES
#include /**/ "ace/pre.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Stream_Head
*
@@ -152,8 +150,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Stream_Modules.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/String_Base.cpp b/ace/String_Base.cpp
index 5aefdddbc75..d5f065938d7 100644
--- a/ace/String_Base.cpp
+++ b/ace/String_Base.cpp
@@ -1,5 +1,3 @@
-// $Id$
-
#ifndef ACE_STRING_BASE_CPP
#define ACE_STRING_BASE_CPP
@@ -13,7 +11,11 @@
#include "ace/String_Base.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_RCSID (ace,
+ String_Base,
+ "$Id$")
+
ACE_ALLOC_HOOK_DEFINE(ACE_String_Base)
@@ -292,16 +294,6 @@ ACE_String_Base<CHAR>::clear (int release)
// Assignment operator (does copy memory).
template <class CHAR> ACE_String_Base<CHAR> &
-ACE_String_Base<CHAR>::operator= (const CHAR *s)
-{
- ACE_TRACE ("ACE_String_Base<CHAR>::operator=");
- if (s != 0)
- this->set (s, 1);
- return *this;
-}
-
-// Assignment operator (does copy memory).
-template <class CHAR> ACE_String_Base<CHAR> &
ACE_String_Base<CHAR>::operator= (const ACE_String_Base<CHAR> &s)
{
ACE_TRACE ("ACE_String_Base<CHAR>::operator=");
@@ -361,10 +353,10 @@ template <class CHAR> int
ACE_String_Base<CHAR>::compare (const ACE_String_Base<CHAR> &s) const
{
ACE_TRACE ("ACE_String_Base<CHAR>::compare");
-
+
if (this->rep_ == s.rep_)
return 0;
-
+
// Pick smaller of the two lengths and perform the comparison.
size_t smaller_length = ace_min (this->len_, s.len_);
@@ -485,7 +477,7 @@ ACE_String_Base<CHAR>::operator+= (const CHAR* s)
size_t slen = 0;
if (s != 0)
slen = ACE_OS::strlen (s);
- return this->append (s, slen);
+ return this->append(s, slen);
}
template <class CHAR> ACE_String_Base<CHAR> &
@@ -503,6 +495,5 @@ ACE_String_Base<CHAR>::operator+= (const CHAR c)
return this->append(&c, slen);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_STRING_BASE_CPP */
diff --git a/ace/String_Base.h b/ace/String_Base.h
index b8297c68a4a..da9ab247d98 100644
--- a/ace/String_Base.h
+++ b/ace/String_Base.h
@@ -24,8 +24,6 @@
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Allocator;
/**
@@ -38,7 +36,7 @@ class ACE_Allocator;
* ACE_Allocator with a persistable memory pool. This class is
* optimized for efficiency, so it doesn't provide any internal
* locking.
- * @note If an instance of this class is constructed from or
+ * NOTE: if an instance of this class is constructed from or
* assigned an empty string (with first element of '\0'), then it
* is not allocated new space. Instead, its internal
* representation is set equal to a global empty string.
@@ -158,14 +156,6 @@ public:
/**
* Assignment operator (does copy memory).
*
- * @param s Input null-terminated CHAR string to assign to this object.
- * @return Return a copy of the this string.
- */
- ACE_String_Base < CHAR > &operator = (const CHAR * s);
-
- /**
- * Assignment operator (does copy memory).
- *
* @param s Input ACE_String_Base string to assign to this object.
* @return Return a copy of the this string.
*/
@@ -323,9 +313,6 @@ public:
*/
size_t length (void) const;
- /// Return @c true if the length of the string is zero.
- bool empty (void) const;
-
/**
* Get a copy of the underlying representation.
*
@@ -527,8 +514,6 @@ template < class CHAR >
ACE_String_Base < CHAR > operator + (const CHAR c,
const ACE_String_Base < CHAR > &t);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/String_Base.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/String_Base.inl b/ace/String_Base.inl
index 7234f916aab..2a27f4b158c 100644
--- a/ace/String_Base.inl
+++ b/ace/String_Base.inl
@@ -8,7 +8,6 @@
#include "ace/OS_NS_string.h"
#include "ace/OS_Memory.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class CHAR> ACE_INLINE void
ACE_String_Base<CHAR>::dump (void) const
@@ -34,12 +33,6 @@ ACE_String_Base<CHAR>::length (void) const
return this->len_;
}
-template <class CHAR> ACE_INLINE bool
-ACE_String_Base<CHAR>::empty (void) const
-{
- return this->len_ == 0;
-}
-
template <class CHAR> ACE_INLINE ACE_String_Base<CHAR>
ACE_String_Base<CHAR>::substr (size_t offset,
ssize_t length) const
@@ -120,4 +113,3 @@ ACE_String_Base<CHAR>::strstr (const ACE_String_Base<CHAR> &s) const
return this->find (s.rep_);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/String_Base_Const.cpp b/ace/String_Base_Const.cpp
index 5f193d6c77e..bf66b2cf873 100644
--- a/ace/String_Base_Const.cpp
+++ b/ace/String_Base_Const.cpp
@@ -2,8 +2,4 @@
#include "ace/String_Base_Const.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ssize_t const ACE_String_Base_Const::npos = -1;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
+ssize_t ACE_String_Base_Const::npos = -1;
diff --git a/ace/String_Base_Const.h b/ace/String_Base_Const.h
index 5a3f935308e..50a9c086c2b 100644
--- a/ace/String_Base_Const.h
+++ b/ace/String_Base_Const.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,8 +23,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_String_Base_Const
*
@@ -34,10 +32,8 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_String_Base_Const
{
public:
- static ssize_t const npos;
+ static ssize_t npos;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_STRING_BASE_CONST_H */
diff --git a/ace/String_Conversion_T.cpp b/ace/String_Conversion_T.cpp
new file mode 100644
index 00000000000..046b9627cdf
--- /dev/null
+++ b/ace/String_Conversion_T.cpp
@@ -0,0 +1,17 @@
+/* -*- C++ -*- */
+// $Id$
+
+#ifndef STRING_CONVERTER_T_CPP
+#define STRING_CONVERTER_T_CPP
+
+#include "config-lite.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#if !defined (__ACE_INLINE__)
+#include "ace/String_Conversion_T.inl"
+#endif /* __ACE_INLINE__ */
+
+#endif /* STRING_CONVERTER_T_CPP */
diff --git a/ace/String_Conversion_T.h b/ace/String_Conversion_T.h
new file mode 100644
index 00000000000..41b13626ec2
--- /dev/null
+++ b/ace/String_Conversion_T.h
@@ -0,0 +1,343 @@
+/* -*- C++ -*- */
+// $Id$
+
+#ifndef STRING_CONVERTER_T_H
+#define STRING_CONVERTER_T_H
+#include /**/ "ace/pre.h"
+#include /**/ "ace/ace_wchar.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+namespace ACE
+{
+
+namespace String_Conversion
+{
+// The duplicate/copy(_new) suite of methods are used to provide seamless
+// conversions between wchar_t and char.
+// * The alloc/free suite of methods are used to advertise
+// how the String_Conversion services manage memory.
+// Alloc allocates len + 1 and sets first byte to zero.
+// * The duplicate method allocates the output string.
+// * The copy method is the worker that expects two existing buffers
+// of at least <len+1> size. It will always NULL terminate the dest string.
+
+static const size_t calc_len = static_cast<size_t>(-1);
+
+template < typename T >
+class Allocator_cpp
+{
+public:
+ T* alloc( size_t len ) const;
+
+ void free( T* str ) const;
+};
+
+template < typename T >
+class Allocator_malloc
+{
+public:
+ T* alloc( size_t len ) const;
+
+ void free( T* str ) const;
+};
+
+template < typename DestT, typename SrcT, typename Allocator > ACE_INLINE
+DestT*
+duplicate( const SrcT* src, size_t* dest_len = 0 );
+
+template < typename DestT, typename SrcT > ACE_INLINE
+size_t
+copy( DestT* dest, const SrcT* src, size_t dest_len = calc_len );
+
+// Length Note:
+// The len parameters are content-length. The need to
+// allocate more (len + 1 for null character) is an
+// implementation detail.
+
+// Constructor Note:
+// The classes have overriden constructors. This
+// obviates the need for the user to explicitely
+// redeclare the type of the input. The classes
+// will do the right/optimal thing depending
+// on the type.
+
+/**
+ * @class Convert_Out
+ *
+ * @brief A lightweight classed used for
+ * output symmantics.
+ *
+ * This class will always allocate a new copy
+ * of the source string.
+ */
+template < typename DestT, typename Allocator = Allocator_cpp<DestT> >
+class Convert_Out
+{
+public:
+ template < typename SrcT >
+ explicit Convert_Out( const SrcT* src, size_t len = calc_len )
+ : len_( len )
+ , dest_( duplicate<DestT, SrcT, Allocator>( src, &len_ ) )
+ {
+ }
+
+ // Make certain we provide a counter to the allocation
+ static void free( DestT* ptr )
+ {
+ Allocator().free( ptr );
+ }
+
+ DestT* c_str() const;
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ DestT* char_rep() const
+ {
+ return c_str();
+ }
+#endif
+
+ size_t length() const;
+
+private:
+ size_t len_;
+ DestT* dest_;
+
+ /// Not implemented.
+ Convert_Out();
+ Convert_Out( Convert_Out& );
+ Convert_Out& operator= ( Convert_Out& );
+};
+
+
+/**
+ * @class Convert_In
+ *
+ * @brief A lightweight classed used for
+ * input symmantics.
+ *
+ * This class will either pass the src string
+ * along or make a temporary copy.
+ * The c_str() is const and should not be modified.
+ *
+ * TODO: Remove <typename SrcT> from class template.
+ * It appears that some compilers do not support
+ * template method specialization within a template
+ * class.
+ */
+template < typename DestT, typename SrcT >
+class Convert_In
+{
+public:
+ //template < typename SrcT >
+ explicit Convert_In( const SrcT* src )
+ : str_(0)
+ , ownstr_( duplicate<DestT, SrcT, Allocator_cpp<DestT> >( src, 0 ) )
+ {
+ }
+
+ // This is an optimized specialization
+ // where src and dest are the same type
+ //template <>
+ explicit Convert_In( const DestT* src )
+ : str_(src)
+ , ownstr_(0)
+ {
+ }
+
+ ~Convert_In();
+
+ const DestT* c_str() const;
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ const DestT* char_rep() const
+ {
+ return c_str();
+ }
+#endif
+
+private:
+ const DestT* str_;
+ DestT* ownstr_;
+
+ /// Not implemented.
+ Convert_In();
+ Convert_In( Convert_In& );
+ Convert_In& operator= ( Convert_In& );
+};
+
+
+/**
+ * @class Convert_InOut
+ *
+ * @brief A lightweight classed used for
+ * input/output symmantics.
+ *
+ * This class will either pass the src string
+ * along or make a temporary copy.
+ * The if a temp string is created, it is copied
+ * back to the src on destruction.
+ *
+ * NOTE: Make certain src points to a NULL teminated string.
+ *
+ * NOTE: The size passed in at construction is buffer size,
+ * including space for the NULL char.
+ *
+ * NOTE: encode_factor is used when we believe that the number
+ * of characters required differs between the two representations.
+ * To avoid data loss, we default to an oversized buffer of size*3.
+ */
+template < typename DestT, typename SrcT >
+class Convert_InOut
+{
+public:
+ //template < typename SrcT >
+ explicit Convert_InOut( SrcT* src, size_t size, size_t encode_factor = 3 )
+ : len_( size == calc_len ? calc_len : (size - 1) * encode_factor )
+ , encode_factor_( size == calc_len ? 1 : encode_factor )
+ , str_(0)
+ , orig_(src)
+ , ownstr_( duplicate<DestT, SrcT, Allocator_cpp<DestT> >(src, &len_))
+ {
+ }
+
+ //template < typename SrcT >
+ explicit Convert_InOut( SrcT* src )
+ : len_(calc_len)
+ , encode_factor_(1)
+ , str_(0)
+ , orig_(src)
+ , ownstr_( duplicate<DestT, SrcT, Allocator_cpp<DestT> >(src, &len_))
+ {
+ }
+
+ // This is an optimized specialization
+ // where src and dest are the same type
+ //template <>
+ explicit Convert_InOut( DestT* src, size_t size = calc_len )
+ : len_( size == calc_len ? calc_len : size - 1 )
+ , encode_factor_(1)
+ , str_(src)
+ , orig_(0)
+ , ownstr_(0)
+ {
+ }
+
+ ~Convert_InOut();
+
+ DestT* c_str();
+
+ size_t size() const
+ {
+ return len_+1;
+ }
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ DestT* char_rep()
+ {
+ return c_str();
+ }
+#endif
+
+private:
+ /// Internal pointer to the converted string.
+ size_t len_;
+ size_t encode_factor_;
+ DestT* str_;
+ SrcT* orig_;
+ DestT* ownstr_;
+
+ /// Not implemented.
+ Convert_InOut();
+ Convert_InOut( Convert_InOut& );
+ Convert_InOut& operator= ( Convert_InOut& );
+};
+
+} // String_Conversion
+
+} // ACE
+
+// Conversion Macros
+# define ACE_TEXT_TO_CHAR_OUT(STRING) ACE::String_Conversion::Convert_Out< char >( STRING ).c_str()
+# define ACE_TEXT_TO_WCHAR_OUT(STRING) ACE::String_Conversion::Convert_Out< wchar_t >( STRING ).c_str()
+# define ACE_TEXT_TO_TCHAR_OUT(STRING) ACE::String_Conversion::Convert_Out< ACE_TCHAR >( STRING ).c_str()
+
+# define ACE_TEXT_TO_MALLOC_CHAR_OUT(STRING) ACE::String_Conversion::Convert_Out< char, ACE::String_Conversion::Allocator_malloc<char> >( STRING ).c_str()
+# define ACE_TEXT_TO_MALLOC_WCHAR_OUT(STRING) ACE::String_Conversion::Convert_Out< wchar_t, ACE::String_Conversion::Allocator_malloc<wchar_t> >( STRING ).c_str()
+# define ACE_TEXT_TO_MALLOC_TCHAR_OUT(STRING) ACE::String_Conversion::Convert_Out< ACE_TCHAR, ACE::String_Conversion::Allocator_malloc<ACE_TCHAR> >( STRING ).c_str()
+
+# define ACE_TEXT_TO_CHAR_IN(STRING) ACE::String_Conversion::Convert_In< char, wchar_t >( STRING ).c_str()
+# define ACE_TEXT_TO_WCHAR_IN(STRING) ACE::String_Conversion::Convert_In< wchar_t, char >( STRING ).c_str()
+# define ACE_TEXT_TO_TCHAR_IN(STRING) ACE::String_Conversion::Convert_In< ACE_TCHAR, ACE_ANTI_TCHAR >( STRING ).c_str()
+
+# define ACE_TEXT_TO_CHAR_INOUT(STRING) ACE::String_Conversion::Convert_InOut< char, wchar_t >( STRING ).c_str()
+# define ACE_TEXT_TO_WCHAR_INOUT(STRING) ACE::String_Conversion::Convert_InOut< wchar_t, char >( STRING ).c_str()
+# define ACE_TEXT_TO_TCHAR_INOUT(STRING) ACE::String_Conversion::Convert_InOut< ACE_TCHAR, ACE_ANTI_TCHAR >( STRING ).c_str()
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+
+// Global Namespace Types
+typedef ACE::String_Conversion::Convert_In< char, wchar_t > ACE_Wide_To_Ascii;
+typedef ACE::String_Conversion::Convert_In< wchar_t, char > ACE_Ascii_To_Wide;
+typedef ACE::String_Conversion::Convert_In< ACE_TCHAR, ACE_ANTI_TCHAR > ACE_AntiChar_To_TChar;
+typedef ACE::String_Conversion::Convert_In< ACE_ANTI_TCHAR, ACE_TCHAR > ACE_TChar_To_AntiChar;
+
+#if defined (ACE_LEGACY_MODE)
+
+typedef ACE_Ascii_To_Wide ACE_OS_CString;
+typedef ACE_Wide_To_Ascii ACE_OS_WString;
+
+# define ASYS_ONLY_MULTIBYTE_STRING ACE_TEXT_TO_CHAR_IN
+# define ASYS_MULTIBYTE_STRING ACE_TEXT_TO_TCHAR_IN
+# define ASYS_WIDE_STRING ACE_TEXT_TO_TCHAR_IN
+# define ACE_WIDE_STRING ACE_TEXT_TO_TCHAR_IN
+
+# if defined (ACE_USES_WCHAR)
+# define ASYS_ONLY_WIDE_STRING(STRING) STRING
+# else /* ACE_USES_WCHAR */
+# define ASYS_ONLY_WIDE_STRING(STRING) \
+ ACE_Ascii_To_Wide (STRING).char_rep ()
+# endif /* ACE_USES_WCHAR */
+
+#endif /* ACE_LEGACY_MODE */
+
+// Legacy Macros
+// These macros have been deprecated in favor of those stated above
+// or expicitely declaring the converter instance.
+// These macros will no longer work where the destination requires
+// a non-const string.
+#define ACE_TEXT_ALWAYS_CHAR(STRING) ACE_TEXT_TO_CHAR_IN( STRING )
+#define ACE_TEXT_ALWAYS_WCHAR(STRING) ACE_TEXT_TO_WCHAR_IN( STRING )
+#define ACE_TEXT_CHAR_TO_TCHAR(STRING) ACE_TEXT_TO_TCHAR_IN( STRING )
+#define ACE_TEXT_WCHAR_TO_TCHAR(STRING) ACE_TEXT_TO_TCHAR_IN( STRING )
+#define ACE_TEXT_ANTI_TO_TCHAR(STRING) ACE_TEXT_TO_TCHAR_IN (STRING)
+
+// These macros have been deprecated and should be replaced by their
+// ACE_TEXT_* equivalents. These macros are just hacks and may not
+// completely provide the old functionality.
+#if defined (ACE_LEGACY_MODE)
+// These are defined to get older stuff to compile
+// FUZZ: disable check_for_tchar
+# define ASYS_TCHAR ACE_TCHAR
+# define ASYS_TEXT ACE_LIB_TEXT
+# define ACE_TEXT_STRING ACE_TString
+#endif /* ACE_LEGACY_MODE */
+
+#endif /* !ACE_LACKS_DEPRECATED_MACROS */
+
+#if defined (__ACE_INLINE__)
+#include "ace/String_Conversion_T.inl"
+#endif /* __ACE_INLINE__ */
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "ace/String_Conversion_T.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("String_Conversion_T.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+#include /**/ "ace/post.h"
+#endif /* STRING_CONVERTER_T_H */
diff --git a/ace/String_Conversion_T.inl b/ace/String_Conversion_T.inl
new file mode 100644
index 00000000000..6523ea03653
--- /dev/null
+++ b/ace/String_Conversion_T.inl
@@ -0,0 +1,160 @@
+/* -*- C++ -*- */
+// $Id$
+\
+#ifndef STRING_CONVERSION_T_I
+#define STRING_CONVERSION_T_I
+
+#include "ace/String_Conversion_T.h"
+#include "ace/OS_NS_stdlib_base.h"
+#include "ace/OS_NS_string_base.h"
+
+namespace ACE
+{
+
+namespace String_Conversion
+{
+
+template < typename T > ACE_INLINE
+T*
+Allocator_cpp< T >::alloc( size_t len ) const
+{
+ T* result = new T [len+1];
+ result[ 0 ] = 0;
+ return result;
+}
+
+template < typename T > ACE_INLINE
+void
+Allocator_cpp< T >::free( T* str ) const
+{
+ delete[] str;
+}
+
+template < typename T > ACE_INLINE
+T*
+Allocator_malloc< T >::alloc( size_t len ) const
+{
+ T* result = static_cast<T*>(::malloc((len+1)*sizeof(T)));
+ result[ 0 ] = 0;
+ return result;
+}
+
+template < typename T > ACE_INLINE
+void
+Allocator_malloc< T >::free( T* str ) const
+{
+ ::free (str);
+}
+
+template < typename DestT, typename SrcT, typename Allocator > ACE_INLINE
+DestT*
+duplicate( const SrcT* src, size_t* dest_len )
+{
+ DestT* dest = 0;
+
+ if ( src == 0 )
+ {
+ return dest;
+ }
+
+ size_t required_len = ACE_OS::string_copy( static_cast<DestT*>(0), src, 0 );
+ size_t alloc_len = required_len;
+ size_t copy_len = required_len;
+
+ if ( dest_len != 0 )
+ {
+ // If we are calculating len
+ if ( *dest_len == calc_len )
+ *dest_len = required_len;
+
+ // alloc_len is the greater
+ else if ( *dest_len > required_len )
+ alloc_len = *dest_len;
+
+ // copy_len is the lesser
+ else if ( *dest_len < required_len )
+ copy_len = *dest_len;
+ }
+
+ dest = Allocator().alloc( alloc_len );
+
+ copy( dest, src, copy_len );
+
+ return dest;
+}
+
+
+template < typename DestT, typename SrcT > ACE_INLINE
+size_t
+copy( DestT* dest, const SrcT* src, size_t dest_len )
+{
+ if ( dest == 0 )
+ {
+ return -1;
+ }
+ if (src == 0 || dest_len == 0)
+ {
+ dest[0] = 0;
+ return 0;
+ }
+ if ( dest_len == calc_len )
+ {
+ dest_len = ACE_OS::string_copy( static_cast<DestT*>(0), src, 0 );
+ }
+ int result = ACE_OS::string_copy( dest, src, dest_len + 1 );
+ dest[ dest_len ] = 0;
+ return result;
+}
+
+template < typename DestT, typename Allocator > ACE_INLINE
+DestT*
+Convert_Out< DestT, Allocator >::c_str() const
+{
+ return dest_;
+}
+
+
+template < typename DestT, typename Allocator > ACE_INLINE
+size_t
+Convert_Out< DestT, Allocator >::length() const
+{
+ return len_;
+}
+
+template < typename DestT, typename SrcT > ACE_INLINE
+Convert_In< DestT, SrcT >::~Convert_In()
+{
+ Allocator_cpp<DestT>().free( ownstr_ );
+}
+
+
+template < typename DestT, typename SrcT > ACE_INLINE
+const DestT*
+Convert_In< DestT, SrcT >::c_str( void ) const
+{
+ return ( str_ != 0 ? str_ : ownstr_ );
+}
+
+template < typename DestT, typename SrcT > ACE_INLINE
+Convert_InOut< DestT, SrcT >::~Convert_InOut( void )
+{
+ if (ownstr_ != 0)
+ {
+ copy(orig_, ownstr_, (len_/encode_factor_));
+ Allocator_cpp<DestT>().free( ownstr_ );
+ }
+}
+
+
+template < typename DestT, typename SrcT > ACE_INLINE
+DestT*
+Convert_InOut< DestT, SrcT >::c_str( void )
+{
+ return ( str_ != 0 ? str_ : ownstr_ );
+}
+
+} // String_Conversion
+
+} // Ace
+
+#endif /* STRING_CONVERSION_T_I */
diff --git a/ace/Svc_Conf.h b/ace/Svc_Conf.h
index 4c14981caa3..32385a37df7 100644
--- a/ace/Svc_Conf.h
+++ b/ace/Svc_Conf.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -30,8 +30,6 @@
#if (ACE_USES_CLASSIC_SVC_CONF == 1)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
struct ace_yy_buffer_state;
@@ -155,6 +153,20 @@ typedef union
// Forward declaration
struct ace_yy_buffer_state;
+/// Create and push a new lexer buffer on to the buffer stack for use
+/// when scanning the given file.
+void ace_yy_push_buffer (FILE *file,
+ ace_yy_buffer_state *&buffer);
+
+/// Create and push a new lexer buffer on to the buffer stack for use
+/// when scanning the given directive.
+void ace_yy_push_buffer (const ACE_TCHAR *directive,
+ ace_yy_buffer_state *&buffer);
+
+/// Pop the current lexer buffer off of the buffer stack and
+/// deallocate it.
+void ace_yy_pop_buffer (ace_yy_buffer_state *buf);
+
/// Performs the parsing
#ifdef ACE_YYPARSE_PARAM
int ace_yyparse (void *);
@@ -188,8 +200,6 @@ ace_create_service_type (const ACE_TCHAR *,
ACE_Service_Object_Exterminator = 0);
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SVC_CONF_H */
diff --git a/ace/Svc_Conf.l b/ace/Svc_Conf.l
new file mode 100644
index 00000000000..8943882cdf7
--- /dev/null
+++ b/ace/Svc_Conf.l
@@ -0,0 +1,134 @@
+%{
+// $Id$
+// Sample lexical analysis for regular expression subset. Must be
+// compiled with FLEX and an ANSI C++ compiler.
+
+// Lexical tokens values defined by YACC.
+#include "ace/Svc_Conf.h"
+#include "ace/Svc_Conf_Tokens.h"
+#include "ace/Svc_Conf_Lexer_Guard.h"
+
+ACE_RCSID (ace,
+ Svc_Conf_l,
+ "$Id$")
+
+#define token(x) x
+%}
+
+%s PARAMETERS
+%s NORMAL
+
+letter [a-zA-Z_]
+letter_or_digit [a-zA-Z_0-9]
+digit [0-9]
+ident {letter}{letter_or_digit}*
+pathname ([A-Za-z\%]:)?[a-zA-Z_0-9/\%\.\\~-]+
+symbol [ -~]
+string (\"{symbol}*\"|\'{symbol}*\')
+white_space [ \t]
+newline \n
+carrage_retn \r
+other .
+
+%%
+
+^#{other}*$ ; /* EMPTY */
+dynamic { return token (ACE_DYNAMIC); }
+static { return token (ACE_STATIC); }
+suspend { return token (ACE_SUSPEND); }
+resume { return token (ACE_RESUME); }
+remove { return token (ACE_REMOVE); }
+stream { return token (ACE_USTREAM); }
+Module { return token (ACE_MODULE_T); }
+Service_Object { return token (ACE_SVC_OBJ_T); }
+STREAM { return token (ACE_STREAM_T); }
+active { return token (ACE_ACTIVE); }
+inactive { return token (ACE_INACTIVE); }
+":" { return token (':'); }
+"*" { return token ('*'); }
+"(" { return token ('('); }
+")" { return token (')'); }
+"{" { return token ('{'); }
+"}" { return token ('}'); }
+{string} {
+ /* Remove trailing double quote character */
+ ACE_TCHAR *s = ACE_OS::strrchr (yytext, yytext[0]);
+
+ ACE_ASSERT (s != 0);
+ /* Eliminate the opening and closing double or
+ single quotes. */
+ *s = '\0';
+ yyleng -= 1;
+ yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (yytext + 1, yyleng);
+ return token (ACE_STRING); }
+{ident} {
+ yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (yytext, yyleng);
+ return token (ACE_IDENT);
+ }
+{pathname} {
+ yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (yytext, yyleng);
+ return token (ACE_PATHNAME);
+ }
+{white_space}+ ; /* EMPTY */
+{carrage_retn} ; /* EMPTY */
+{newline} { ACE_SVC_CONF_PARAM->yylineno++; }
+{other} {
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("unknown character = (%d"),
+ *yytext));
+ if (ACE_OS::ace_isprint (*yytext))
+ ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("|%c"), *yytext));
+ ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT (")\n")));
+ }
+<<EOF>> { yyterminate (); }
+%%
+int
+yywrap (void)
+{
+ ACE_OS::fflush (yyin);
+ yytext[0] = '#';
+ yyleng = 0;
+
+ return 1;
+}
+
+void
+yy_push_buffer (FILE *file, yy_buffer_state *&buffer)
+{
+ // External synchronization is required.
+
+ if (buffer == 0)
+ buffer = yy_create_buffer (file, YY_BUF_SIZE);
+
+ yy_switch_to_buffer (buffer);
+}
+
+void
+yy_push_buffer (const ACE_TCHAR *directive, yy_buffer_state *&buffer)
+{
+ // External synchronization is required.
+
+ // yyparse() may invoke yylex() multiple times when parsing
+ // a single directive. Prevent a new buffer from created during
+ // each call to yylex().
+ if (YY_CURRENT_BUFFER != 0
+ && directive == YY_CURRENT_BUFFER->yy_ch_buf)
+ return;
+
+ if (buffer == 0)
+ {
+ // yy_scan_string() already switches the buffer so there is
+ // no need to explicitly make the switch.
+ buffer = yy_scan_string (directive);
+ }
+ else
+ yy_switch_to_buffer (buffer);
+}
+
+void
+yy_pop_buffer (yy_buffer_state *buffer)
+{
+ // External synchronization is required.
+
+ yy_switch_to_buffer (buffer);
+}
diff --git a/ace/Svc_Conf.y b/ace/Svc_Conf.y
index cb159d68b2f..005f8ad972a 100644
--- a/ace/Svc_Conf.y
+++ b/ace/Svc_Conf.y
@@ -16,7 +16,6 @@ ACE_RCSID (ace,
Svc_Conf_y,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Prototypes.
static ACE_Module_Type *ace_get_module (ACE_Static_Node *str_rec,
@@ -429,7 +428,4 @@ main (int argc, char *argv[])
return ::yyparse (&param);
}
#endif /* DEBUGGING */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_USES_CLASSIC_SVC_CONF == 1 */
diff --git a/ace/Svc_Conf_Lexer.cpp b/ace/Svc_Conf_Lexer.cpp
deleted file mode 100644
index cf50a4a5789..00000000000
--- a/ace/Svc_Conf_Lexer.cpp
+++ /dev/null
@@ -1,656 +0,0 @@
-// $Id$
-#include "ace/Svc_Conf_Lexer.h"
-
-#if (ACE_USES_CLASSIC_SVC_CONF == 1)
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/Encoding_Converter.h"
-#include "ace/Encoding_Converter_Factory.h"
-#endif /* ACE_USES_WCHAR */
-
-#include "ace/Svc_Conf_Tokens.h"
-#include "ace/Recursive_Thread_Mutex.h"
-#include "ace/Static_Object_Lock.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_ctype.h"
-#include "ace/Guard_T.h"
-#include "ace/Synch_Traits.h"
-#include "ace/os_include/os_ctype.h"
-
-#if !defined (__GNUG__)
-# include "ace/Auto_Ptr.h"
-#endif
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#define ACE_YY_BUF_SIZE 4096
-#define ACE_MAX_BYTES_PER_CHAR 4
-#define ACE_YY_CONVERSION_SPACE ACE_YY_BUF_SIZE * ACE_MAX_BYTES_PER_CHAR
-
-#if defined (__GNUG__)
-# define ACE_TEMPORARY_STRING(X,SIZE) \
- __extension__ char X[SIZE]
-#else
-# define ACE_TEMPORARY_STRING(X,SIZE) \
- char* X = 0; \
- char X ## buf[ACE_YY_BUF_SIZE]; \
- ACE_Auto_Ptr<char> X ## bufp (0); \
- if (SIZE > ACE_YY_BUF_SIZE) { \
- X ## bufp.reset (new char[SIZE]); \
- X = X ## bufp.get (); \
- } \
- else { \
- X = X ## buf; \
- }
-#endif /* __GNUG__ */
-
-// These are states not covered by the tokens in Svc_Conf_Tokens.h
-#define ACE_NO_STATE -1
-#define ACE_COMMENT 0
-
-struct ace_yy_buffer_state
-{
- ace_yy_buffer_state (void)
- : input_ (),
- index_ (0),
- size_ (0),
- start_ (0),
- need_more_ (true),
- eof_ (false),
- state_ (ACE_NO_STATE),
- string_start_ (0)
-#if defined (ACE_USES_WCHAR)
- , converter_ (0)
-#endif /* ACE_USES_WCHAR */
- {
- }
-
- ~ace_yy_buffer_state (void)
- {
-#if defined (ACE_USES_WCHAR)
- delete converter_;
-#endif /* ACE_USES_WCHAR */
- }
-
- // Input related
- char input_[ACE_YY_CONVERSION_SPACE];
- size_t index_;
- size_t size_;
- size_t start_;
- bool need_more_;
- bool eof_;
-
- // Parsing related
- int state_;
- char string_start_;
-
-#if defined (ACE_USES_WCHAR)
- // Code set conversion related
- ACE_Encoding_Converter* converter_;
-#endif /* ACE_USES_WCHAR */
-};
-
-// ******************************************************************
-// Global functions
-// ******************************************************************
-
-int
-ace_yylex (ACE_YYSTYPE *ace_yylval, void *ACE_YYLEX_PARAM)
-{
- ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX,
- ace_mon,
- *ACE_Static_Object_Lock::instance (),
- -1));
-
- return ACE_Svc_Conf_Lexer::yylex (ace_yylval, ACE_SVC_CONF_PARAM);
-
-}
-
-void
-ace_yy_delete_buffer (ace_yy_buffer_state *buffer)
-{
- delete buffer;
-}
-
-// ******************************************************************
-// Inline methods
-// ******************************************************************
-
-inline size_t
-normalize (size_t length)
-{
- return (length >= ACE_MAX_BYTES_PER_CHAR ?
- (length / ACE_MAX_BYTES_PER_CHAR) * ACE_MAX_BYTES_PER_CHAR :
- length);
-}
-
-// ******************************************************************
-// Static class methods
-// ******************************************************************
-
-int
-ACE_Svc_Conf_Lexer::yylex (ACE_YYSTYPE* ace_yylval,
- ACE_Svc_Conf_Param* param)
-{
-#if defined (ACE_USES_WCHAR)
- bool look_for_bom = false;
- ACE_Encoding_Converter_Factory::Encoding_Hint hint =
- ACE_Encoding_Converter_Factory::ACE_NONE;
-#endif /* ACE_USES_WCHAR */
- if (param->buffer == 0)
- {
-#if defined (ACE_USES_WCHAR)
- look_for_bom = true;
-#endif /* ACE_USES_WCHAR */
- ACE_NEW_RETURN (param->buffer,
- ace_yy_buffer_state,
- -1);
- }
-
- int token = ACE_NO_STATE;
- do {
- if (param->buffer->need_more_)
- {
- size_t skip_bytes = 0;
- param->buffer->need_more_ = false;
- size_t amount =
- input (param,
- param->buffer->input_ + param->buffer->size_,
- normalize (ACE_YY_BUF_SIZE -
- param->buffer->size_));
- if (amount == 0)
- {
- param->buffer->eof_ = true;
- skip_bytes = param->buffer->size_;
- }
- else
- {
-#if defined (ACE_USES_WCHAR)
- if (look_for_bom)
- {
- size_t read_more = 0;
-
- look_for_bom = false;
- hint = locate_bom (param->buffer->input_, amount, read_more);
-
- if (read_more != 0)
- {
- input (param,
- param->buffer->input_ + amount,
- read_more);
- ACE_OS::memmove (param->buffer->input_,
- param->buffer->input_ + read_more,
- amount);
- }
- }
-#endif /* ACE_USES_WCHAR */
- skip_bytes = param->buffer->size_;
- param->buffer->size_ += amount;
- }
-
-#if defined (ACE_USES_WCHAR)
- if (!convert_to_utf8 (param, skip_bytes, hint))
- {
- ace_yyerror (++param->yyerrno,
- param->yylineno,
- "Unable to convert input stream to UTF-8");
- return ACE_NO_STATE;
- }
-#endif /* ACE_USES_WCHAR */
- }
-
- token = scan (ace_yylval, param);
- } while (token == ACE_NO_STATE && param->buffer->need_more_);
-
- return token;
-}
-
-size_t
-ACE_Svc_Conf_Lexer::input (ACE_Svc_Conf_Param* param,
- char* buf, size_t max_size)
-{
- size_t result = 0;
-
- switch (param->type)
- {
- case ACE_Svc_Conf_Param::SVC_CONF_FILE:
- errno = 0;
- while ((result = ACE_OS::fread (buf, 1,
- max_size, param->source.file)) == 0 &&
- ferror (param->source.file))
- {
- if (errno == EINTR)
- {
- errno = 0;
-#if !defined (ACE_LACKS_CLEARERR)
- ACE_OS::clearerr (param->source.file);
-#endif /* !ACE_LACKS_CLEARERR */
- }
- else
- {
- ACE_OS::fprintf (stderr, "ERROR: input in scanner failed\n");
- ACE_OS::exit (2);
- }
- }
- break;
- case ACE_Svc_Conf_Param::SVC_CONF_DIRECTIVE:
- result = ACE_OS::strlen (param->source.directive +
- param->buffer->start_) * sizeof (ACE_TCHAR);
- if (result != 0)
- {
- // Make sure that the amount we are going to copy
- // fits in the buffer
- if (result > max_size)
- {
- result = max_size;
- }
- ACE_OS::memcpy (buf,
- param->source.directive + param->buffer->start_,
- result);
- param->buffer->start_ += (result / sizeof (ACE_TCHAR));
- }
- break;
- default:
- ace_yyerror (++param->yyerrno,
- param->yylineno,
- "Invalid Service Configurator type in "
- "ACE_Svc_Conf_Lexer::input");
- }
-
- return result;
-}
-
-int
-ACE_Svc_Conf_Lexer::scan (ACE_YYSTYPE* ace_yylval,
- ACE_Svc_Conf_Param* param)
-
-{
- ace_yy_buffer_state* buffer = param->buffer;
-
- // If we are not currently in any state, skip over whitespace
- if (buffer->state_ == ACE_NO_STATE)
- {
- while (buffer->index_ < buffer->size_ &&
- isspace (buffer->input_[buffer->index_]))
- {
- // Make sure that we count all of the new lines
- if (buffer->input_[buffer->index_] == '\n')
- {
- ++param->yylineno;
- }
- ++buffer->index_;
- }
- }
-
- size_t current;
- size_t last = buffer->size_ + (buffer->eof_ ? 1 : 0);
- for (current = buffer->index_; current < last; current++)
- {
- static const char* separators = " \t\r\n:*(){}";
- char c = (buffer->eof_ && current == buffer->size_ ?
- '\n' : buffer->input_[current]);
- switch (buffer->state_)
- {
- case ACE_COMMENT:
- if (c == '\n')
- {
- buffer->state_ = ACE_NO_STATE;
- buffer->index_ = current + 1;
- ++param->yylineno;
- }
- break;
- case ACE_STRING:
- if (!(c >= ' ' && c <= '~'))
- {
- // The character at currrent is definitely not part of
- // the string so we need to move current back one.
- --current;
-
- // Get the starting point of our string (skipping the quote)
- char* source = buffer->input_ + buffer->index_ + 1;
-
- // Now, we need to move back in the string until we find the
- // same character that started the string
- bool string_end_found = false;
- for(ssize_t i = (current - 1) - buffer->index_; i >= 0; i--)
- {
- if (source[i] == buffer->string_start_)
- {
- current = buffer->index_ + i + 1;
- string_end_found = true;
- break;
- }
- }
-
- if (!string_end_found)
- {
- ace_yyerror (++param->yyerrno,
- param->yylineno,
- "Unable to find the end of the string");
- return ACE_NO_STATE;
- }
-
- size_t amount = (current - buffer->index_) - 1;
-#if defined (ACE_USES_WCHAR)
- ACE_TCHAR target[ACE_YY_CONVERSION_SPACE] = ACE_TEXT ("");
- size_t length = 0;
- if (!convert_from_utf8 (buffer->converter_,
- source,
- amount,
- target,
- ACE_YY_CONVERSION_SPACE,
- length))
- {
- ace_yyerror (++param->yyerrno,
- param->yylineno,
- "Unable to convert string from UTF-8");
- return ACE_NO_STATE;
- }
- amount = length;
-#else
- char* target = source;
-#endif /* ACE_USES_WCHAR */
- ace_yylval->ident_ = param->obstack.copy (target, amount);
- buffer->state_ = ACE_NO_STATE;
- buffer->index_ = current + 1;
- return ACE_STRING;
- }
- break;
- case ACE_NO_STATE:
- if (c == '"' || c == '\'')
- {
- buffer->string_start_ = c;
- buffer->state_ = ACE_STRING;
- }
- else if (c == '#')
- {
- buffer->state_ = ACE_COMMENT;
- }
- else if (ACE_OS::strchr (separators, c) != 0)
- {
- if (c == '\n')
- {
- ++param->yylineno;
- }
-
- if (current == buffer->index_ + 1)
- {
- int lower = ACE_OS::ace_tolower (
- buffer->input_[current - 1]);
- if (c == ':' &&
- (buffer->input_[current - 1] == '%' ||
- (lower >= 'a' && lower <= 'z')))
- {
- // This is considered a path, so we need to
- // skip over the ':' and go around the loop
- // again
- break;
- }
- }
-
- if (current == buffer->index_)
- {
- buffer->index_ = current + 1;
- if (isspace (c))
- {
- // This is an empty line.
- // Let's look for something else.
- break;
- }
- else
- {
- return c;
- }
- }
-
- // String from buffer->index_ to current (inclusive)
- size_t size = (current - buffer->index_) + 1;
- ACE_TEMPORARY_STRING (str, size);
- ACE_OS::strncpy (str, buffer->input_ + buffer->index_,
- size - 1);
- str[size - 1] = '\0';
-
-
- if (ACE_OS::strcmp (str, "dynamic") == 0)
- {
- buffer->index_ = current;
- return ACE_DYNAMIC;
- }
- else if (ACE_OS::strcmp (str, "static") == 0)
- {
- buffer->index_ = current;
- return ACE_STATIC;
- }
- else if (ACE_OS::strcmp (str, "suspend") == 0)
- {
- buffer->index_ = current;
- return ACE_SUSPEND;
- }
- else if (ACE_OS::strcmp (str, "resume") == 0)
- {
- buffer->index_ = current;
- return ACE_RESUME;
- }
- else if (ACE_OS::strcmp (str, "remove") == 0)
- {
- buffer->index_ = current;
- return ACE_REMOVE;
- }
- else if (ACE_OS::strcmp (str, "stream") == 0)
- {
- buffer->index_ = current;
- return ACE_USTREAM;
- }
- else if (ACE_OS::strcmp (str, "Module") == 0)
- {
- buffer->index_ = current;
- return ACE_MODULE_T;
- }
- else if (ACE_OS::strcmp (str, "Service_Object") == 0)
- {
- buffer->index_ = current;
- return ACE_SVC_OBJ_T;
- }
- else if (ACE_OS::strcmp (str, "STREAM") == 0)
- {
- buffer->index_ = current;
- return ACE_STREAM_T;
- }
- else if (ACE_OS::strcmp (str, "active") == 0)
- {
- buffer->index_ = current;
- return ACE_ACTIVE;
- }
- else if (ACE_OS::strcmp (str, "inactive") == 0)
- {
- buffer->index_ = current;
- return ACE_INACTIVE;
- }
- else
- {
- // Get the string and save it in ace_yylval
- int token = ACE_IDENT;
- size_t amount = size - 1;
-#if defined (ACE_USES_WCHAR)
- ACE_TCHAR target[ACE_YY_CONVERSION_SPACE] = ACE_TEXT ("");
- size_t length = 0;
- if (!convert_from_utf8 (buffer->converter_,
- str,
- amount,
- target,
- ACE_YY_CONVERSION_SPACE,
- length))
- {
- ace_yyerror (++param->yyerrno,
- param->yylineno,
- "Unable to convert "
- "identifier from UTF-8");
- return ACE_NO_STATE;
- }
- amount = length;
-#else
- char* target = str;
-#endif /* ACE_USES_WCHAR */
- ace_yylval->ident_ = param->obstack.copy (target, amount);
-
- // Determine the difference between pathname and ident
- if (ACE_OS::ace_isdigit (ace_yylval->ident_[0]))
- {
- token = ACE_PATHNAME;
- }
- else
- {
- static const ACE_TCHAR* path_parts =
- ACE_TEXT ("/\\:%.~-");
- for (const ACE_TCHAR* p = path_parts; *p != '\0'; p++)
- {
- if (ACE_OS::strchr (ace_yylval->ident_, *p) != 0)
- {
- token = ACE_PATHNAME;
- break;
- }
- }
- }
-
- buffer->state_ = ACE_NO_STATE;
- buffer->index_ = current;
- return token;
- }
- }
- break;
- default:
- ace_yyerror (++param->yyerrno,
- param->yylineno,
- "Unexpected state in ACE_Svc_Conf_Lexer::scan");
- return ACE_NO_STATE;
- }
- }
-
- // We need more from the input source so, we will move the remainder of
- // the buffer to the front and signal that we need more
- if (!buffer->eof_)
- {
- buffer->need_more_ = true;
- if (buffer->state_ == ACE_COMMENT)
- {
- buffer->index_ = 0;
- buffer->size_ = 0;
- }
- else
- {
- buffer->size_ = current - buffer->index_;
- if (buffer->size_ != 0 && buffer->index_ != 0)
- ACE_OS::memmove (buffer->input_,
- buffer->input_ + buffer->index_, buffer->size_);
- buffer->index_ = 0;
- buffer->state_ = ACE_NO_STATE;
- }
- }
- return ACE_NO_STATE;
-}
-
-#if defined (ACE_USES_WCHAR)
-
-bool
-ACE_Svc_Conf_Lexer::convert_to_utf8 (
- ACE_Svc_Conf_Param* param,
- size_t skip_bytes,
- ACE_Encoding_Converter_Factory::Encoding_Hint hint)
-{
- bool status = false;
- if (param->buffer->converter_ == 0)
- {
- param->buffer->converter_ =
- ACE_Encoding_Converter_Factory::create (
- reinterpret_cast<ACE_Byte*> (param->buffer->input_ + skip_bytes),
- param->buffer->size_ - skip_bytes,
- hint);
- }
-
- if (param->buffer->converter_ != 0)
- {
- char target[ACE_YY_CONVERSION_SPACE] = "";
- if (param->buffer->converter_->to_utf8 (
- param->buffer->input_ + skip_bytes,
- param->buffer->size_ - skip_bytes,
- reinterpret_cast<ACE_Byte*> (target),
- ACE_YY_CONVERSION_SPACE) == ACE_Encoding_Converter::CONVERSION_OK)
- {
- ACE_OS::strcpy (param->buffer->input_ + skip_bytes, target);
- param->buffer->size_ = ACE_OS::strlen (target) + skip_bytes;
- status = true;
- }
- }
-
- return status;
-}
-
-bool
-ACE_Svc_Conf_Lexer::convert_from_utf8 (ACE_Encoding_Converter* converter,
- const char* source,
- size_t source_size,
- ACE_TCHAR* target,
- size_t target_size,
- size_t& length)
-{
- if (converter != 0)
- {
- if (converter->from_utf8 (
- reinterpret_cast <const ACE_Byte*> (source),
- source_size,
- target,
- target_size) != ACE_Encoding_Converter::CONVERSION_OK)
- {
- return false;
- }
- }
- else
- {
- ACE_OS::strncpy (target, ACE_TEXT_CHAR_TO_TCHAR (source), source_size);
- target[source_size] = 0;
- }
-
- length = ACE_OS::strlen (target);
- return true;
-}
-
-ACE_Encoding_Converter_Factory::Encoding_Hint
-ACE_Svc_Conf_Lexer::locate_bom (char* source,
- size_t source_size,
- size_t& bytes_used)
-{
- struct bom {
- size_t length_;
- const char* data_;
- ACE_Encoding_Converter_Factory::Encoding_Hint hint_;
- };
- static const bom boms[] = {
- { 4, "\x00\x00\xfe\xff", ACE_Encoding_Converter_Factory::ACE_UTF_32BE },
- { 4, "\xff\xfe\x00\x00", ACE_Encoding_Converter_Factory::ACE_UTF_32LE },
- { 2, "\xfe\xff", ACE_Encoding_Converter_Factory::ACE_UTF_16BE },
- { 2, "\xff\xfe", ACE_Encoding_Converter_Factory::ACE_UTF_16LE },
- { 3, "\xef\xbb\xbf", ACE_Encoding_Converter_Factory::ACE_UTF_8 },
- };
-
- for (size_t i = 0; i < sizeof (boms) / sizeof (bom); i++)
- {
- if (source_size >= boms[i].length_)
- {
- if (ACE_OS::memcmp (source,
- boms[i].data_, boms[i].length_) == 0)
- {
- bytes_used = boms[i].length_;
- return boms[i].hint_;
- }
- }
- }
-
- // No BOM was found
- bytes_used = 0;
- return ACE_Encoding_Converter_Factory::ACE_NONE;
-}
-
-#endif /* ACE_USES_WCHAR */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_CLASSIC_SVC_CONF = 1 */
diff --git a/ace/Svc_Conf_Lexer.h b/ace/Svc_Conf_Lexer.h
deleted file mode 100644
index 387e7b7611f..00000000000
--- a/ace/Svc_Conf_Lexer.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// -*- C++ -*-
-
-//=========================================================================
-/**
- * @file Svc_Conf_Lexer.h
- *
- * $Id$
- *
- * This class is a hand-coded replacement for the lexer generated from
- * Svc_Conf.l that correctly supports Unicode.
- *
- * @author Chad Elliott <elliott_c@ociweb.com>
- */
-//=========================================================================
-
-#ifndef SVC_CONF_LEXER_H
-#define SVC_CONF_LEXER_H
-
-#include /**/ "ace/pre.h"
-#include "ace/Svc_Conf.h"
-
-#if (ACE_USES_CLASSIC_SVC_CONF == 1)
-#include "ace/Encoding_Converter_Factory.h"
-
-class ACE_Encoding_Converter;
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/** This class lexes the classic ACE Service Configurator language.
- * The entry point is similar to what flex would generate. However, it
- * is a static method in this class (which is really just name space).
- */
-class ACE_Svc_Conf_Lexer
-{
-public:
- /// This is similar to the C function, ace_yylex, which a bison
- /// generated parser expects. It returns information in the ace_yylval
- /// parameter and uses input stored in the param parameter.
- static int yylex (ACE_YYSTYPE* ace_yylval,
- ACE_Svc_Conf_Param* param);
-
-private:
- static size_t input(ACE_Svc_Conf_Param* param, char* buf, size_t max_size);
-
- static int scan (ACE_YYSTYPE* ace_yylval, ACE_Svc_Conf_Param* param);
-
-#if defined (ACE_USES_WCHAR)
- static bool convert_to_utf8 (
- ACE_Svc_Conf_Param* param,
- size_t skip_bytes,
- ACE_Encoding_Converter_Factory::Encoding_Hint hint);
- static bool convert_from_utf8 (ACE_Encoding_Converter* converter,
- const char* source,
- size_t source_size,
- ACE_TCHAR* target,
- size_t target_size,
- size_t& length);
- static ACE_Encoding_Converter_Factory::Encoding_Hint
- locate_bom (char* source,
- size_t source_size,
- size_t& bytes_used);
-#endif /* ACE_USES_WCHAR */
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_CLASSIC_SVC_CONF = 1 */
-
-#include /**/ "ace/post.h"
-
-#endif /* SVC_CONF_LEXER_H */
diff --git a/ace/Svc_Conf_Lexer_Guard.cpp b/ace/Svc_Conf_Lexer_Guard.cpp
new file mode 100644
index 00000000000..c5d79aa1f32
--- /dev/null
+++ b/ace/Svc_Conf_Lexer_Guard.cpp
@@ -0,0 +1,39 @@
+// -*- C++ -*-
+
+#include "ace/Svc_Conf_Lexer_Guard.h"
+
+#if (ACE_USES_CLASSIC_SVC_CONF == 1)
+
+#include "ace/Svc_Conf.h"
+
+ACE_RCSID (ace,
+ Svc_Conf_Lexer_Guard,
+ "$Id$")
+
+ACE_Svc_Conf_Lexer_Guard::ACE_Svc_Conf_Lexer_Guard (ACE_Svc_Conf_Param *param)
+ : buffer_ (0)
+{
+ // External synchronization is required.
+
+ // Note that allocation/deallocation is done once during the
+ // processing of a service configurator directive. Memory
+ // managements is done at a higher level, not in this class. This
+ // is necessary to prevent an allocation/deallocation from occurring
+ // when parsing/scanning each token.
+
+ if (param->type == ACE_Svc_Conf_Param::SVC_CONF_FILE)
+ ::ace_yy_push_buffer (param->source.file, param->buffer);
+ else
+ ::ace_yy_push_buffer (param->source.directive,
+ param->buffer);
+
+ this->buffer_ = param->buffer;
+}
+
+ACE_Svc_Conf_Lexer_Guard::~ACE_Svc_Conf_Lexer_Guard (void)
+{
+ // External synchronization is required.
+
+ ::ace_yy_pop_buffer (this->buffer_);
+}
+#endif /* ACE_USES_CLASSIC_SVC_CONF == 1 */
diff --git a/ace/Svc_Conf_Lexer_Guard.h b/ace/Svc_Conf_Lexer_Guard.h
new file mode 100644
index 00000000000..46f0c9a450d
--- /dev/null
+++ b/ace/Svc_Conf_Lexer_Guard.h
@@ -0,0 +1,79 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Svc_Conf_Lexer_Guard.h
+ *
+ * $Id$
+ *
+ * @author Ossama Othman <ossama@uci.edu>
+ */
+//=============================================================================
+
+#ifndef ACE_SVC_CONF_LEXER_GUARD_H
+#define ACE_SVC_CONF_LEXER_GUARD_H
+
+#include /**/ "ace/pre.h"
+
+#include "ace/config-all.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+/// Forward declarations
+class ACE_Svc_Conf_Param;
+
+struct ace_yy_buffer_state;
+
+/**
+ * @class ACE_Svc_Conf_Lexer_Guard
+ *
+ * @brief "Guard" that ensures lexer buffer switching is
+ * exception-safe.
+ *
+ * Buffers are switched, if necessary, each time a token is
+ * parsed/scanned. The buffer switching must be synchronized
+ * externally. This class performs no synchronization.
+ *
+ * @note Note that allocation/deallocation is done once during the
+ * processing of a service configurator directive. Memory
+ * managements is done at a higher level, not in this class.
+ * This is necessary to prevent an allocation/deallocation from
+ * occurring when parsing/scanning each token.
+ */
+class ACE_Svc_Conf_Lexer_Guard
+{
+public:
+
+ /// Constructor
+ /**
+ * Switches buffers, if necessary, when token scanning first
+ * begins. Allocation of the buffer will also occur if one has not
+ * already been allocated. This operation effectively pushes a
+ * buffer on to a stack.
+ */
+ ACE_Svc_Conf_Lexer_Guard (ACE_Svc_Conf_Param *param);
+
+ /// Destructor
+ /**
+ * Switches buffers, if necessary when token scanning completes. No
+ * buffer deallocation occurs here. Buffers are deallocated when
+ * parsing of the entire directive is done, not when scanning of a
+ * single token is done. This operation effective pops a buffer off
+ * of a stack.
+ */
+ ~ACE_Svc_Conf_Lexer_Guard (void);
+
+private:
+
+ /// Lexer buffer that corresponds to the current Service
+ /// Configurator file/direct scan.
+ ace_yy_buffer_state *buffer_;
+
+};
+
+
+#include /**/ "ace/post.h"
+
+#endif /* ACE_SVC_CONF_LEXER_GUARD_H */
diff --git a/ace/Svc_Conf_l.cpp b/ace/Svc_Conf_l.cpp
new file mode 100644
index 00000000000..7d820243d36
--- /dev/null
+++ b/ace/Svc_Conf_l.cpp
@@ -0,0 +1,1850 @@
+#define ACE_YY_NO_UNPUT
+
+#include "ace/Object_Manager.h"
+#include "ace/Guard_T.h"
+#include "ace/Recursive_Thread_Mutex.h"
+#include "ace/Synch_Traits.h"
+#include "ace/OS_NS_ctype.h"
+#include "ace/OS_NS_string.h"
+/* A lexical scanner generated by flex */
+
+/* Scanner skeleton version:
+ * $Header$
+ */
+
+#define FLEX_SCANNER
+#define ACE_YY_FLEX_MAJOR_VERSION 2
+#define ACE_YY_FLEX_MINOR_VERSION 5
+
+#include "ace/OS_NS_stdio.h"
+#include "ace/OS_NS_unistd.h"
+
+
+/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
+#ifdef c_plusplus
+#ifndef __cplusplus
+#define __cplusplus
+#endif
+#endif
+
+
+#ifdef __cplusplus
+
+#include "ace/OS_NS_stdlib.h"
+
+/* Use prototypes in function declarations. */
+#define ACE_YY_USE_PROTOS
+
+/* The "const" storage-class-modifier is valid. */
+#define ACE_YY_USE_CONST
+
+#else /* ! __cplusplus */
+
+#if __STDC__
+
+#define ACE_YY_USE_PROTOS
+#define ACE_YY_USE_CONST
+
+#endif /* __STDC__ */
+#endif /* ! __cplusplus */
+
+#ifdef __TURBOC__
+ #pragma warn -rch
+ #pragma warn -use
+#include /**/ <io.h>
+#include "ace/OS_NS_stdlib.h"
+#define ACE_YY_USE_CONST
+#define ACE_YY_USE_PROTOS
+#endif
+
+#ifdef ACE_YY_USE_CONST
+#define ace_yyconst const
+#else
+#define ace_yyconst
+#endif
+
+
+#ifdef ACE_YY_USE_PROTOS
+#define ACE_YY_PROTO(proto) proto
+#else
+#define ACE_YY_PROTO(proto) ()
+#endif
+
+/* Returned upon end-of-file. */
+#define ACE_YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed ACE_TCHAR to an unsigned
+ * integer for use as an array index. If the signed ACE_TCHAR is negative,
+ * we want to instead treat it as an 8-bit unsigned char, hence the
+ * double cast.
+ */
+#define ACE_YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+
+/* Enter a start condition. This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN ace_yy_start = 1 + 2 *
+
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state. The ACE_YYSTATE alias is for lex
+ * compatibility.
+ */
+#define ACE_YY_START ((ace_yy_start - 1) / 2)
+#define ACE_YYSTATE ACE_YY_START
+
+/* Action number for EOF rule of a given start state. */
+#define ACE_YY_STATE_EOF(state) (ACE_YY_END_OF_BUFFER + state + 1)
+
+/* Special action meaning "start processing a new file". */
+#define ACE_YY_NEW_FILE ace_yyrestart( ace_yyin )
+
+#define ACE_YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#define ACE_YY_BUF_SIZE 16384
+
+typedef struct ace_yy_buffer_state *ACE_YY_BUFFER_STATE;
+
+extern int ace_yyleng;
+extern FILE *ace_yyin, *ace_yyout;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+/* The funky do-while in the following #define is used to turn the definition
+ * int a single C statement (which needs a semi-colon terminator). This
+ * avoids problems with code like:
+ *
+ * if ( condition_holds )
+ * ace_yyless( 5 );
+ * else
+ * do_something_else();
+ *
+ * Prior to using the do-while the compiler would get upset at the
+ * "else" because it interpreted the "if" statement as being all
+ * done when it reached the ';' after the ace_yyless() call.
+ */
+
+/* Return all but the first 'n' matched characters back to the input stream. */
+
+#define ace_yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up ace_yytext. */ \
+ *ace_yy_cp = ace_yy_hold_char; \
+ ACE_YY_RESTORE_ACE_YY_MORE_OFFSET \
+ ace_yy_c_buf_p = ace_yy_cp = ace_yy_bp + n - ACE_YY_MORE_ADJ; \
+ ACE_YY_DO_BEFORE_ACTION; /* set up ace_yytext again */ \
+ } \
+ while ( 0 )
+
+#if (ACE_USES_CLASSIC_SVC_CONF == 1)
+
+/* The following is because we cannot portably get our hands on size_t
+ * (without autoconf's help, which isn't available because we want
+ * flex-generated scanners to compile on their own).
+ */
+typedef unsigned int ace_yy_size_t;
+
+
+struct ace_yy_buffer_state
+ {
+ FILE *ace_yy_input_file;
+
+ ACE_TCHAR *ace_yy_ch_buf; /* input buffer */
+ ACE_TCHAR *ace_yy_buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ ace_yy_size_t ace_yy_buf_size;
+
+ /* Number of characters read into ace_yy_ch_buf, not including EOB
+ * characters.
+ */
+ int ace_yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int ace_yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int ace_yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int ace_yy_at_bol;
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int ace_yy_fill_buffer;
+
+ int ace_yy_buffer_status;
+#define ACE_YY_BUFFER_NEW 0
+#define ACE_YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as ACE_YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via ace_yyrestart()), so that the user can continue scanning by
+ * just pointing ace_yyin at a new input file.
+ */
+#define ACE_YY_BUFFER_EOF_PENDING 2
+ };
+
+static ACE_YY_BUFFER_STATE ace_yy_current_buffer = 0;
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ */
+#define ACE_YY_CURRENT_BUFFER ace_yy_current_buffer
+
+
+/* ace_yy_hold_char holds the character lost when ace_yytext is formed. */
+static ACE_TCHAR ace_yy_hold_char;
+
+static int ace_yy_n_chars; /* number of characters read into ace_yy_ch_buf */
+
+
+int ace_yyleng;
+
+/* Points to current character in buffer. */
+static ACE_TCHAR *ace_yy_c_buf_p = (ACE_TCHAR *) 0;
+static int ace_yy_init = 1; /* whether we need to initialize */
+static int ace_yy_start = 0; /* start state number */
+
+/* Flag which is used to allow ace_yywrap()'s to do buffer switches
+ * instead of setting up a fresh ace_yyin. A bit of a hack ...
+ */
+static int ace_yy_did_buffer_switch_on_eof;
+
+void ace_yyrestart ACE_YY_PROTO(( FILE *input_file ));
+
+void ace_yy_switch_to_buffer ACE_YY_PROTO(( ACE_YY_BUFFER_STATE new_buffer ));
+void ace_yy_load_buffer_state ACE_YY_PROTO(( void ));
+ACE_YY_BUFFER_STATE ace_yy_create_buffer ACE_YY_PROTO(( FILE *file, int size ));
+void ace_yy_delete_buffer ACE_YY_PROTO(( ACE_YY_BUFFER_STATE b ));
+void ace_yy_init_buffer ACE_YY_PROTO(( ACE_YY_BUFFER_STATE b, FILE *file ));
+void ace_yy_flush_buffer ACE_YY_PROTO(( ACE_YY_BUFFER_STATE b ));
+#define ACE_YY_FLUSH_BUFFER ace_yy_flush_buffer( ace_yy_current_buffer )
+
+ACE_YY_BUFFER_STATE ace_yy_scan_buffer ACE_YY_PROTO(( ACE_TCHAR *base, ace_yy_size_t size ));
+ACE_YY_BUFFER_STATE ace_yy_scan_string ACE_YY_PROTO(( ace_yyconst ACE_TCHAR *ace_yy_str ));
+ACE_YY_BUFFER_STATE ace_yy_scan_bytes ACE_YY_PROTO(( ace_yyconst ACE_TCHAR *bytes, int len ));
+
+static void *ace_yy_flex_alloc ACE_YY_PROTO(( ace_yy_size_t ));
+static void *ace_yy_flex_realloc ACE_YY_PROTO(( void *, ace_yy_size_t ));
+static void ace_yy_flex_free ACE_YY_PROTO(( void * ));
+
+#define ace_yy_new_buffer ace_yy_create_buffer
+
+#define ace_yy_set_interactive(is_interactive) \
+ { \
+ if ( ! ace_yy_current_buffer ) \
+ ace_yy_current_buffer = ace_yy_create_buffer( ace_yyin, ACE_YY_BUF_SIZE ); \
+ ace_yy_current_buffer->ace_yy_is_interactive = is_interactive; \
+ }
+
+#define ace_yy_set_bol(at_bol) \
+ { \
+ if ( ! ace_yy_current_buffer ) \
+ ace_yy_current_buffer = ace_yy_create_buffer( ace_yyin, ACE_YY_BUF_SIZE ); \
+ ace_yy_current_buffer->ace_yy_at_bol = at_bol; \
+ }
+
+#define ACE_YY_AT_BOL() (ace_yy_current_buffer->ace_yy_at_bol)
+
+typedef ACE_TCHAR ACE_YY_CHAR;
+FILE *ace_yyin = (FILE *) 0, *ace_yyout = (FILE *) 0;
+typedef int ace_yy_state_type;
+extern ACE_TCHAR *ace_yytext;
+#define ace_yytext_ptr ace_yytext
+
+static ace_yy_state_type ace_yy_get_previous_state ACE_YY_PROTO(( void ));
+static ace_yy_state_type ace_yy_try_NUL_trans ACE_YY_PROTO(( ace_yy_state_type current_state ));
+static int ace_yy_get_next_buffer ACE_YY_PROTO(( void ));
+static void ace_yy_fatal_error ACE_YY_PROTO(( ace_yyconst char msg[] ));
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up ace_yytext.
+ */
+#define ACE_YY_DO_BEFORE_ACTION \
+ ace_yytext_ptr = ace_yy_bp; \
+ ace_yyleng = (int) (ace_yy_cp - ace_yy_bp); \
+ ace_yy_hold_char = *ace_yy_cp; \
+ *ace_yy_cp = '\0'; \
+ ace_yy_c_buf_p = ace_yy_cp;
+
+#define ACE_YY_NUM_RULES 26
+#define ACE_YY_END_OF_BUFFER 27
+static ace_yyconst short int ace_yy_accept[108] =
+ { 0,
+ 0, 0, 0, 0, 0, 0, 27, 25, 22, 24,
+ 23, 25, 21, 25, 15, 16, 14, 21, 13, 20,
+ 20, 20, 20, 20, 20, 20, 20, 20, 17, 18,
+ 25, 22, 0, 19, 21, 0, 0, 19, 20, 20,
+ 20, 20, 20, 20, 20, 20, 20, 20, 0, 1,
+ 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
+ 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
+ 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
+ 20, 20, 20, 8, 10, 20, 11, 20, 20, 6,
+ 5, 3, 7, 20, 20, 2, 20, 4, 20, 12,
+
+ 20, 20, 20, 20, 20, 9, 0
+ } ;
+
+static ace_yyconst int ace_yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 5, 6, 7, 8, 6, 9, 6, 10, 11,
+ 12, 13, 6, 6, 14, 14, 14, 15, 15, 15,
+ 15, 15, 15, 15, 15, 15, 15, 16, 6, 6,
+ 6, 6, 6, 6, 17, 18, 18, 18, 19, 18,
+ 18, 18, 18, 18, 18, 18, 20, 18, 21, 18,
+ 18, 22, 23, 24, 18, 18, 18, 18, 18, 18,
+ 6, 14, 6, 6, 25, 6, 26, 27, 28, 29,
+
+ 30, 18, 18, 18, 31, 32, 18, 33, 34, 35,
+ 36, 37, 18, 38, 39, 40, 41, 42, 18, 18,
+ 43, 18, 44, 6, 45, 14, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1
+ } ;
+
+static ace_yyconst int ace_yy_meta[46] =
+ { 0,
+ 1, 1, 1, 1, 2, 2, 2, 2, 3, 2,
+ 2, 2, 2, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 3, 3, 3, 2, 2
+ } ;
+
+static ace_yyconst short int ace_yy_base[113] =
+ { 0,
+ 0, 127, 0, 118, 0, 117, 124, 438, 44, 438,
+ 438, 115, 100, 93, 438, 438, 438, 86, 438, 38,
+ 39, 42, 48, 51, 54, 60, 64, 68, 438, 438,
+ 98, 81, 86, 82, 72, 71, 71, 61, 76, 82,
+ 90, 91, 101, 104, 105, 114, 118, 124, 58, 438,
+ 133, 136, 145, 148, 151, 157, 166, 167, 175, 179,
+ 183, 189, 197, 203, 207, 216, 215, 219, 228, 227,
+ 231, 237, 250, 254, 262, 263, 272, 273, 282, 283,
+ 286, 292, 301, 302, 311, 314, 315, 323, 324, 332,
+ 333, 336, 344, 345, 348, 354, 362, 363, 366, 372,
+
+ 375, 381, 384, 387, 390, 396, 438, 429, 56, 431,
+ 47, 434
+ } ;
+
+static ace_yyconst short int ace_yy_def[113] =
+ { 0,
+ 107, 1, 1, 1, 1, 1, 107, 107, 107, 107,
+ 107, 108, 109, 110, 107, 107, 107, 109, 107, 111,
+ 111, 111, 111, 111, 111, 111, 111, 111, 107, 107,
+ 112, 107, 108, 108, 109, 109, 110, 110, 111, 111,
+ 111, 111, 111, 111, 111, 111, 111, 111, 112, 107,
+ 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
+ 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
+ 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
+ 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
+ 111, 111, 111, 111, 111, 111, 111, 111, 111, 111,
+
+ 111, 111, 111, 111, 111, 111, 0, 107, 107, 107,
+ 107, 107
+ } ;
+
+static ace_yyconst short int ace_yy_nxt[484] =
+ { 0,
+ 8, 9, 10, 11, 9, 8, 12, 8, 13, 14,
+ 15, 16, 17, 18, 18, 19, 20, 20, 20, 21,
+ 20, 20, 22, 20, 23, 24, 20, 20, 25, 20,
+ 26, 20, 20, 20, 20, 20, 20, 27, 28, 20,
+ 20, 20, 20, 29, 30, 32, 35, 35, 32, 39,
+ 35, 35, 35, 36, 36, 35, 35, 36, 35, 35,
+ 50, 35, 35, 107, 35, 41, 36, 35, 35, 36,
+ 38, 42, 35, 35, 40, 36, 35, 35, 43, 36,
+ 38, 35, 32, 36, 35, 32, 107, 107, 34, 35,
+ 35, 107, 34, 46, 45, 35, 44, 107, 35, 35,
+
+ 50, 107, 38, 35, 35, 107, 107, 47, 48, 35,
+ 51, 52, 35, 35, 35, 36, 107, 35, 35, 107,
+ 107, 34, 35, 107, 31, 31, 35, 35, 53, 107,
+ 56, 35, 35, 107, 31, 107, 107, 35, 55, 107,
+ 54, 35, 107, 59, 35, 107, 35, 57, 107, 35,
+ 107, 107, 58, 35, 63, 60, 35, 107, 35, 35,
+ 107, 35, 61, 107, 35, 35, 107, 107, 107, 107,
+ 35, 107, 107, 62, 35, 35, 66, 107, 65, 35,
+ 35, 107, 107, 35, 67, 107, 64, 35, 35, 107,
+ 107, 35, 35, 107, 107, 107, 35, 35, 107, 107,
+
+ 107, 68, 35, 107, 107, 35, 107, 69, 71, 107,
+ 35, 35, 107, 74, 70, 35, 35, 107, 107, 72,
+ 35, 73, 107, 35, 35, 107, 107, 35, 35, 35,
+ 107, 107, 35, 75, 107, 35, 35, 107, 107, 35,
+ 35, 35, 107, 107, 35, 35, 107, 107, 76, 77,
+ 35, 107, 107, 107, 78, 107, 82, 81, 35, 107,
+ 79, 80, 35, 35, 107, 107, 83, 35, 107, 107,
+ 35, 35, 107, 85, 107, 35, 35, 107, 107, 84,
+ 35, 35, 107, 107, 107, 35, 35, 107, 107, 86,
+ 35, 35, 87, 107, 35, 35, 35, 107, 107, 35,
+
+ 35, 107, 88, 89, 107, 35, 107, 107, 107, 35,
+ 35, 90, 91, 92, 35, 35, 107, 107, 107, 35,
+ 107, 107, 35, 35, 35, 93, 107, 35, 35, 107,
+ 107, 35, 35, 107, 107, 94, 35, 35, 107, 107,
+ 35, 35, 107, 95, 35, 35, 35, 107, 107, 35,
+ 96, 107, 35, 35, 107, 107, 35, 35, 35, 107,
+ 107, 35, 35, 107, 107, 97, 107, 35, 107, 107,
+ 35, 35, 99, 98, 35, 35, 35, 107, 107, 35,
+ 35, 107, 107, 35, 107, 35, 101, 107, 35, 35,
+ 107, 100, 35, 107, 35, 35, 107, 35, 35, 107,
+
+ 35, 102, 107, 35, 35, 107, 107, 107, 107, 35,
+ 107, 107, 103, 104, 105, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 106,
+ 33, 33, 37, 37, 49, 49, 49, 7, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107
+ } ;
+
+static ace_yyconst short int ace_yy_chk[484] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 9, 20, 21, 9, 111,
+ 22, 20, 21, 20, 21, 22, 23, 22, 109, 24,
+ 49, 23, 25, 23, 24, 22, 24, 25, 26, 25,
+ 38, 22, 27, 26, 21, 26, 28, 27, 24, 27,
+ 37, 28, 32, 28, 39, 32, 36, 35, 34, 39,
+ 40, 39, 33, 27, 26, 40, 25, 40, 41, 42,
+
+ 31, 18, 14, 41, 42, 41, 42, 28, 28, 43,
+ 40, 41, 44, 45, 43, 13, 43, 44, 45, 44,
+ 45, 12, 46, 7, 6, 4, 47, 46, 42, 46,
+ 45, 47, 48, 47, 2, 0, 0, 48, 44, 48,
+ 43, 51, 0, 47, 52, 0, 51, 46, 51, 52,
+ 0, 52, 46, 53, 52, 47, 54, 0, 53, 55,
+ 53, 54, 48, 54, 55, 56, 55, 0, 0, 0,
+ 56, 0, 56, 51, 57, 58, 55, 0, 54, 57,
+ 58, 57, 58, 59, 56, 0, 53, 60, 59, 0,
+ 59, 61, 60, 0, 60, 0, 61, 62, 61, 0,
+
+ 0, 57, 62, 0, 62, 63, 0, 58, 60, 0,
+ 63, 64, 63, 63, 59, 65, 64, 0, 64, 61,
+ 65, 62, 65, 67, 66, 0, 0, 68, 67, 66,
+ 67, 66, 68, 64, 68, 70, 69, 0, 0, 71,
+ 70, 69, 70, 69, 71, 72, 71, 0, 65, 66,
+ 72, 0, 72, 0, 67, 0, 71, 70, 73, 0,
+ 68, 69, 74, 73, 0, 73, 72, 74, 0, 74,
+ 75, 76, 0, 74, 0, 75, 76, 75, 76, 73,
+ 77, 78, 0, 0, 0, 77, 78, 77, 78, 75,
+ 79, 80, 76, 0, 81, 79, 80, 79, 80, 81,
+
+ 82, 81, 77, 78, 0, 82, 0, 82, 0, 83,
+ 84, 79, 80, 81, 83, 84, 83, 84, 0, 85,
+ 0, 0, 86, 87, 85, 82, 85, 86, 87, 86,
+ 87, 88, 89, 0, 0, 83, 88, 89, 88, 89,
+ 90, 91, 0, 86, 92, 90, 91, 90, 91, 92,
+ 88, 92, 93, 94, 0, 0, 95, 93, 94, 93,
+ 94, 95, 96, 95, 0, 89, 0, 96, 0, 96,
+ 97, 98, 95, 94, 99, 97, 98, 97, 98, 99,
+ 100, 99, 0, 101, 0, 100, 99, 100, 101, 102,
+ 101, 97, 103, 0, 102, 104, 102, 103, 105, 103,
+
+ 104, 101, 104, 105, 106, 105, 0, 0, 0, 106,
+ 0, 106, 102, 103, 104, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 105,
+ 108, 108, 110, 110, 112, 112, 112, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
+ 107, 107, 107
+ } ;
+
+static ace_yy_state_type ace_yy_last_accepting_state;
+static ACE_TCHAR *ace_yy_last_accepting_cpos;
+
+/* The intent behind this definition is that it'll catch
+ * any uses of REJECT which flex missed.
+ */
+#define REJECT reject_used_but_not_detected
+#define ace_yymore() ace_yymore_used_but_not_detected
+#define ACE_YY_MORE_ADJ 0
+#define ACE_YY_RESTORE_ACE_YY_MORE_OFFSET
+ACE_TCHAR *ace_yytext;
+#define INITIAL 0
+// $Id$
+// Sample lexical analysis for regular expression subset. Must be
+// compiled with FLEX and an ANSI C++ compiler.
+
+// Lexical tokens values defined by YACC.
+#include "ace/Svc_Conf.h"
+#include "ace/Svc_Conf_Tokens.h"
+#include "ace/Svc_Conf_Lexer_Guard.h"
+
+ACE_RCSID (ace,
+ Svc_Conf_l,
+ "$Id$")
+
+#define token(x) x
+#define PARAMETERS 1
+
+#define NORMAL 2
+
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef ACE_YY_SKIP_ACE_YYWRAP
+#ifdef __cplusplus
+extern "C" int ace_yywrap ACE_YY_PROTO(( void ));
+#else
+extern int ace_yywrap ACE_YY_PROTO(( void ));
+#endif
+#endif
+
+#ifndef ACE_YY_NO_UNPUT
+static void ace_yyunput ACE_YY_PROTO(( int c, ACE_TCHAR *buf_ptr ));
+#endif
+
+#ifndef ace_yytext_ptr
+static void ace_yy_flex_strncpy ACE_YY_PROTO(( ACE_TCHAR *, ace_yyconst ACE_TCHAR *, int ));
+#endif
+
+#ifdef ACE_YY_NEED_STRLEN
+static int ace_yy_flex_strlen ACE_YY_PROTO(( ace_yyconst ACE_TCHAR * ));
+#endif
+
+#ifndef ACE_YY_NO_INPUT
+#ifdef __cplusplus
+static int ace_yyinput ACE_YY_PROTO(( void ));
+#else
+static int input ACE_YY_PROTO(( void ));
+#endif
+#endif
+
+#if ACE_YY_STACK_USED
+static int ace_yy_start_stack_ptr = 0;
+static int ace_yy_start_stack_depth = 0;
+static int *ace_yy_start_stack = 0;
+#ifndef ACE_YY_NO_PUSH_STATE
+static void ace_yy_push_state ACE_YY_PROTO(( int new_state ));
+#endif
+#ifndef ACE_YY_NO_POP_STATE
+static void ace_yy_pop_state ACE_YY_PROTO(( void ));
+#endif
+#ifndef ACE_YY_NO_TOP_STATE
+static int ace_yy_top_state ACE_YY_PROTO(( void ));
+#endif
+
+#else
+#define ACE_YY_NO_PUSH_STATE 1
+#define ACE_YY_NO_POP_STATE 1
+#define ACE_YY_NO_TOP_STATE 1
+#endif
+
+#ifdef ACE_YY_MALLOC_DECL
+ACE_YY_MALLOC_DECL
+#else
+#if __STDC__
+#ifndef __cplusplus
+#include "ace/OS_NS_stdlib.h"
+#endif
+#else
+/* Just try to get by without declaring the routines. This will fail
+ * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
+ * or sizeof(void*) != sizeof(int).
+ */
+#endif
+#endif
+
+/* Amount of stuff to slurp up with each read. */
+#ifndef ACE_YY_READ_BUF_SIZE
+#define ACE_YY_READ_BUF_SIZE 8192
+#endif
+
+/* Copy whatever the last rule matched to the standard output. */
+
+#ifndef ACE_SVC_CONF_ECHO
+/* This used to be an fputs(), but since the string might contain NUL's,
+ * we now use fwrite().
+ */
+#define ACE_SVC_CONF_ECHO (void) fwrite( ace_yytext, ace_yyleng, 1, ace_yyout )
+#endif
+
+/* Gets input and stuffs it into "buf". number of characters read, or ACE_YY_NULL,
+ * is returned in "result".
+ */
+#ifndef ACE_YY_INPUT
+#define ACE_YY_INPUT(buf,result,max_size) \
+ if ( ace_yy_current_buffer->ace_yy_is_interactive ) \
+ { \
+ int c = '*', n; \
+ for ( n = 0; n < max_size && \
+ (c = getc( ace_yyin )) != EOF && c != '\n'; ++n ) \
+ buf[n] = (ACE_TCHAR) c; \
+ if ( c == '\n' ) \
+ buf[n++] = (ACE_TCHAR) c; \
+ if ( c == EOF && ferror( ace_yyin ) ) \
+ ACE_YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ result = n; \
+ } \
+ else \
+ { \
+ errno = 0; \
+ while ( ((result = fread( buf, sizeof (ACE_TCHAR), max_size, ace_yyin )) == 0) \
+ && ferror( ace_yyin ) ) \
+ { \
+ if (errno != EINTR) \
+ { \
+ ACE_YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ break; \
+ } \
+ errno = 0; \
+ clearerr(ace_yyin); \
+ } \
+ }
+#endif
+
+/* No semi-colon after return; correct usage is to write "ace_yyterminate();" -
+ * we don't want an extra ';' after the "return" because that will cause
+ * some compilers to complain about unreachable statements.
+ */
+#ifndef ace_yyterminate
+#define ace_yyterminate() return ACE_YY_NULL
+#endif
+
+/* Number of entries by which start-condition stack grows. */
+#ifndef ACE_YY_START_STACK_INCR
+#define ACE_YY_START_STACK_INCR 25
+#endif
+
+/* Report a fatal error. */
+#ifndef ACE_YY_FATAL_ERROR
+#define ACE_YY_FATAL_ERROR(msg) ace_yy_fatal_error( msg )
+#endif
+
+/* Default declaration of generated scanner - a define so the user can
+ * easily add parameters.
+ */
+#ifndef ACE_YY_DECL
+#define ACE_YY_DECL int ace_yylex ACE_YY_PROTO(( void ))
+#endif
+
+/* Code executed at the beginning of each rule, after ace_yytext and ace_yyleng
+ * have been set up.
+ */
+#ifndef ACE_YY_USER_ACTION
+#define ACE_YY_USER_ACTION
+#endif
+
+/* Code executed at the end of each rule. */
+#ifndef ACE_YY_BREAK
+#define ACE_YY_BREAK break;
+#endif
+
+#define ACE_YY_RULE_SETUP \
+ if ( ace_yyleng > 0 ) \
+ ace_yy_current_buffer->ace_yy_at_bol = \
+ (ace_yytext[ace_yyleng - 1] == '\n'); \
+ ACE_YY_USER_ACTION
+
+ACE_YY_DECL
+ {
+ register ace_yy_state_type ace_yy_current_state;
+ register ACE_TCHAR *ace_yy_cp = 0, *ace_yy_bp = 0;
+ register int ace_yy_act;
+
+ ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX,
+ ace_mon,
+ *ACE_Static_Object_Lock::instance (),
+ -1));
+
+ ACE_Svc_Conf_Lexer_Guard ace_lexer_guard (ACE_SVC_CONF_PARAM);
+
+ if ( ace_yy_init )
+ {
+ ace_yy_init = 0;
+
+#ifdef ACE_YY_USER_INIT
+ ACE_YY_USER_INIT;
+#endif
+
+ if ( ! ace_yy_start )
+ ace_yy_start = 1; /* first start state */
+
+ if ( ! ace_yyin )
+ ace_yyin = stdin;
+
+ if ( ! ace_yyout )
+ ace_yyout = stdout;
+
+ if ( ! ace_yy_current_buffer )
+ ace_yy_current_buffer =
+ ace_yy_create_buffer( ace_yyin, ACE_YY_BUF_SIZE );
+
+ ace_yy_load_buffer_state();
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ ace_yy_cp = ace_yy_c_buf_p;
+
+ /* Support of ace_yytext. */
+ *ace_yy_cp = ace_yy_hold_char;
+
+ /* ace_yy_bp points to the position in ace_yy_ch_buf of the start of
+ * the current run.
+ */
+ ace_yy_bp = ace_yy_cp;
+
+ ace_yy_current_state = ace_yy_start;
+ ace_yy_current_state += ACE_YY_AT_BOL();
+ace_yy_match:
+ do
+ {
+ register ACE_YY_CHAR ace_yy_c = ace_yy_ec[ACE_YY_SC_TO_UI(*ace_yy_cp)];
+ if ( ace_yy_accept[ace_yy_current_state] )
+ {
+ ace_yy_last_accepting_state = ace_yy_current_state;
+ ace_yy_last_accepting_cpos = ace_yy_cp;
+ }
+ while ( ace_yy_chk[ace_yy_base[ace_yy_current_state] + ace_yy_c] != ace_yy_current_state )
+ {
+ ace_yy_current_state = (int) ace_yy_def[ace_yy_current_state];
+ if ( ace_yy_current_state >= 108 )
+ ace_yy_c = ace_yy_meta[(unsigned int) ace_yy_c];
+ }
+ ace_yy_current_state = ace_yy_nxt[ace_yy_base[ace_yy_current_state] + (unsigned int) ace_yy_c];
+ ++ace_yy_cp;
+ }
+ while ( ace_yy_base[ace_yy_current_state] != 438 );
+
+ace_yy_find_action:
+ ace_yy_act = ace_yy_accept[ace_yy_current_state];
+ if ( ace_yy_act == 0 )
+ { /* have to back up */
+ ace_yy_cp = ace_yy_last_accepting_cpos;
+ ace_yy_current_state = ace_yy_last_accepting_state;
+ ace_yy_act = ace_yy_accept[ace_yy_current_state];
+ }
+
+ ACE_YY_DO_BEFORE_ACTION;
+
+
+do_action: /* This label is used only to access EOF actions. */
+
+
+ switch ( ace_yy_act )
+ { /* beginning of action switch */
+ case 0: /* must back up */
+ /* undo the effects of ACE_YY_DO_BEFORE_ACTION */
+ *ace_yy_cp = ace_yy_hold_char;
+ ace_yy_cp = ace_yy_last_accepting_cpos;
+ ace_yy_current_state = ace_yy_last_accepting_state;
+ goto ace_yy_find_action;
+
+case 1:
+*ace_yy_cp = ace_yy_hold_char; /* undo effects of setting up ace_yytext */
+ace_yy_c_buf_p = ace_yy_cp -= 1;
+ACE_YY_DO_BEFORE_ACTION; /* set up ace_yytext again */
+ACE_YY_RULE_SETUP
+; /* EMPTY */
+ ACE_YY_BREAK
+case 2:
+ACE_YY_RULE_SETUP
+{ return token (ACE_DYNAMIC); }
+ //ACE_YY_BREAK
+case 3:
+ACE_YY_RULE_SETUP
+{ return token (ACE_STATIC); }
+ //ACE_YY_BREAK
+case 4:
+ACE_YY_RULE_SETUP
+{ return token (ACE_SUSPEND); }
+ //ACE_YY_BREAK
+case 5:
+ACE_YY_RULE_SETUP
+{ return token (ACE_RESUME); }
+ //ACE_YY_BREAK
+case 6:
+ACE_YY_RULE_SETUP
+{ return token (ACE_REMOVE); }
+ //ACE_YY_BREAK
+case 7:
+ACE_YY_RULE_SETUP
+{ return token (ACE_USTREAM); }
+ //ACE_YY_BREAK
+case 8:
+ACE_YY_RULE_SETUP
+{ return token (ACE_MODULE_T); }
+ //ACE_YY_BREAK
+case 9:
+ACE_YY_RULE_SETUP
+{ return token (ACE_SVC_OBJ_T); }
+ //ACE_YY_BREAK
+case 10:
+ACE_YY_RULE_SETUP
+{ return token (ACE_STREAM_T); }
+ //ACE_YY_BREAK
+case 11:
+ACE_YY_RULE_SETUP
+{ return token (ACE_ACTIVE); }
+ //ACE_YY_BREAK
+case 12:
+ACE_YY_RULE_SETUP
+{ return token (ACE_INACTIVE); }
+ //ACE_YY_BREAK
+case 13:
+ACE_YY_RULE_SETUP
+{ return token (':'); }
+ //ACE_YY_BREAK
+case 14:
+ACE_YY_RULE_SETUP
+{ return token ('*'); }
+ //ACE_YY_BREAK
+case 15:
+ACE_YY_RULE_SETUP
+{ return token ('('); }
+ //ACE_YY_BREAK
+case 16:
+ACE_YY_RULE_SETUP
+{ return token (')'); }
+ //ACE_YY_BREAK
+case 17:
+ACE_YY_RULE_SETUP
+{ return token ('{'); }
+ //ACE_YY_BREAK
+case 18:
+ACE_YY_RULE_SETUP
+{ return token ('}'); }
+ //ACE_YY_BREAK
+case 19:
+ACE_YY_RULE_SETUP
+{
+ /* Remove trailing quote character (' or ") */
+ ACE_TCHAR *s = ACE_OS::strrchr (ace_yytext, ace_yytext[0]);
+
+ ACE_ASSERT (s != 0);
+ /* Eliminate the opening and closing double or
+ single quotes. */
+ *s = '\0';
+ ace_yyleng -= 1;
+ ace_yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (ace_yytext + 1, ace_yyleng);
+ return token (ACE_STRING); }
+ //ACE_YY_BREAK
+case 20:
+ACE_YY_RULE_SETUP
+{
+ ace_yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (ace_yytext, ace_yyleng);
+ return token (ACE_IDENT);
+ }
+ //ACE_YY_BREAK
+case 21:
+ACE_YY_RULE_SETUP
+{
+ ace_yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (ace_yytext, ace_yyleng);
+ return token (ACE_PATHNAME);
+ }
+ //ACE_YY_BREAK
+case 22:
+ACE_YY_RULE_SETUP
+; /* EMPTY */
+ ACE_YY_BREAK
+case 23:
+ACE_YY_RULE_SETUP
+; /* EMPTY */
+ ACE_YY_BREAK
+case 24:
+ACE_YY_RULE_SETUP
+{ ACE_SVC_CONF_PARAM->yylineno++; }
+ ACE_YY_BREAK
+case 25:
+ACE_YY_RULE_SETUP
+{
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("unknown character = (%d"),
+ *ace_yytext));
+ if (ACE_OS::ace_isprint (*ace_yytext))
+ ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT ("|%c"), *ace_yytext));
+ ACE_ERROR ((LM_ERROR, ACE_LIB_TEXT (")\n")));
+ }
+ ACE_YY_BREAK
+case ACE_YY_STATE_EOF(INITIAL):
+case ACE_YY_STATE_EOF(PARAMETERS):
+case ACE_YY_STATE_EOF(NORMAL):
+{ ace_yyterminate (); }
+ ACE_YY_BREAK
+case 26:
+ACE_YY_RULE_SETUP
+ACE_SVC_CONF_ECHO;
+ ACE_YY_BREAK
+
+ case ACE_YY_END_OF_BUFFER:
+ {
+ /* Amount of text matched not including the EOB char. */
+ int ace_yy_amount_of_matched_text = (int) (ace_yy_cp - ace_yytext_ptr) - 1;
+
+ /* Undo the effects of ACE_YY_DO_BEFORE_ACTION. */
+ *ace_yy_cp = ace_yy_hold_char;
+ ACE_YY_RESTORE_ACE_YY_MORE_OFFSET
+
+ if ( ace_yy_current_buffer->ace_yy_buffer_status == ACE_YY_BUFFER_NEW )
+ {
+ /* We're scanning a new file or input source. It's
+ * possible that this happened because the user
+ * just pointed ace_yyin at a new source and called
+ * ace_yylex(). If so, then we have to assure
+ * consistency between ace_yy_current_buffer and our
+ * globals. Here is the right place to do so, because
+ * this is the first action (other than possibly a
+ * back-up) that will match for the new input source.
+ */
+ ace_yy_n_chars = ace_yy_current_buffer->ace_yy_n_chars;
+ ace_yy_current_buffer->ace_yy_input_file = ace_yyin;
+ ace_yy_current_buffer->ace_yy_buffer_status = ACE_YY_BUFFER_NORMAL;
+ }
+
+ /* Note that here we test for ace_yy_c_buf_p "<=" to the position
+ * of the first EOB in the buffer, since ace_yy_c_buf_p will
+ * already have been incremented past the NUL character
+ * (since all states make transitions on EOB to the
+ * end-of-buffer state). Contrast this with the test
+ * in input().
+ */
+ if ( ace_yy_c_buf_p <= &ace_yy_current_buffer->ace_yy_ch_buf[ace_yy_n_chars] )
+ { /* This was really a NUL. */
+ ace_yy_state_type ace_yy_next_state;
+
+ ace_yy_c_buf_p = ace_yytext_ptr + ace_yy_amount_of_matched_text;
+
+ ace_yy_current_state = ace_yy_get_previous_state();
+
+ /* Okay, we're now positioned to make the NUL
+ * transition. We couldn't have
+ * ace_yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ ace_yy_next_state = ace_yy_try_NUL_trans( ace_yy_current_state );
+
+ ace_yy_bp = ace_yytext_ptr + ACE_YY_MORE_ADJ;
+
+ if ( ace_yy_next_state )
+ {
+ /* Consume the NUL. */
+ ace_yy_cp = ++ace_yy_c_buf_p;
+ ace_yy_current_state = ace_yy_next_state;
+ goto ace_yy_match;
+ }
+
+ else
+ {
+ ace_yy_cp = ace_yy_c_buf_p;
+ goto ace_yy_find_action;
+ }
+ }
+
+ else switch ( ace_yy_get_next_buffer() )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ ace_yy_did_buffer_switch_on_eof = 0;
+
+ if ( ace_yywrap() )
+ {
+ /* Note: because we've taken care in
+ * ace_yy_get_next_buffer() to have set up
+ * ace_yytext, we can now set up
+ * ace_yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * ACE_YY_NULL, it'll still work - another
+ * ACE_YY_NULL will get returned.
+ */
+ ace_yy_c_buf_p = ace_yytext_ptr + ACE_YY_MORE_ADJ;
+
+ ace_yy_act = ACE_YY_STATE_EOF(ACE_YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! ace_yy_did_buffer_switch_on_eof )
+ ACE_YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ ace_yy_c_buf_p =
+ ace_yytext_ptr + ace_yy_amount_of_matched_text;
+
+ ace_yy_current_state = ace_yy_get_previous_state();
+
+ ace_yy_cp = ace_yy_c_buf_p;
+ ace_yy_bp = ace_yytext_ptr + ACE_YY_MORE_ADJ;
+ goto ace_yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ ace_yy_c_buf_p =
+ &ace_yy_current_buffer->ace_yy_ch_buf[ace_yy_n_chars];
+
+ ace_yy_current_state = ace_yy_get_previous_state();
+
+ ace_yy_cp = ace_yy_c_buf_p;
+ ace_yy_bp = ace_yytext_ptr + ACE_YY_MORE_ADJ;
+ goto ace_yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ ACE_YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+ } /* end of ace_yylex */
+
+
+/* ace_yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ * EOB_ACT_LAST_MATCH -
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ * EOB_ACT_END_OF_FILE - end of file
+ */
+
+static int ace_yy_get_next_buffer()
+ {
+ register ACE_TCHAR *dest = ace_yy_current_buffer->ace_yy_ch_buf;
+ register ACE_TCHAR *source = ace_yytext_ptr;
+ register int number_to_move, i;
+ int ret_val;
+
+ if ( ace_yy_c_buf_p > &ace_yy_current_buffer->ace_yy_ch_buf[ace_yy_n_chars + 1] )
+ ACE_YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( ace_yy_current_buffer->ace_yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( ace_yy_c_buf_p - ace_yytext_ptr - ACE_YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) (ace_yy_c_buf_p - ace_yytext_ptr) - 1;
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( ace_yy_current_buffer->ace_yy_buffer_status == ACE_YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ ace_yy_current_buffer->ace_yy_n_chars = ace_yy_n_chars = 0;
+
+ else
+ {
+ int num_to_read =
+ ace_yy_current_buffer->ace_yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+#ifdef ACE_YY_USES_REJECT
+ ACE_YY_FATAL_ERROR(
+"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
+#else
+
+ /* just a shorter name for the current buffer */
+ ACE_YY_BUFFER_STATE b = ace_yy_current_buffer;
+
+ int ace_yy_c_buf_p_offset =
+ (int) (ace_yy_c_buf_p - b->ace_yy_ch_buf);
+
+ if ( b->ace_yy_is_our_buffer )
+ {
+ int new_size = b->ace_yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->ace_yy_buf_size += b->ace_yy_buf_size / 8;
+ else
+ b->ace_yy_buf_size *= 2;
+
+ b->ace_yy_ch_buf = (ACE_TCHAR *)
+ /* Include room in for 2 EOB chars. */
+ ace_yy_flex_realloc( (void *) b->ace_yy_ch_buf,
+ (b->ace_yy_buf_size + 2) * sizeof (ACE_TCHAR) );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->ace_yy_ch_buf = 0;
+
+ if ( ! b->ace_yy_ch_buf )
+ ACE_YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ ace_yy_c_buf_p = &b->ace_yy_ch_buf[ace_yy_c_buf_p_offset];
+
+ num_to_read = ace_yy_current_buffer->ace_yy_buf_size -
+ number_to_move - 1;
+#endif
+ }
+
+ if ( num_to_read * sizeof (ACE_TCHAR) > ACE_YY_READ_BUF_SIZE )
+ num_to_read = ACE_YY_READ_BUF_SIZE / sizeof (ACE_TCHAR);
+
+ /* Read in more data. */
+ ACE_YY_INPUT( (&ace_yy_current_buffer->ace_yy_ch_buf[number_to_move]),
+ ace_yy_n_chars, num_to_read );
+
+ ace_yy_current_buffer->ace_yy_n_chars = ace_yy_n_chars;
+ }
+
+ if ( ace_yy_n_chars == 0 )
+ {
+ if ( number_to_move == ACE_YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ ace_yyrestart( ace_yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ ace_yy_current_buffer->ace_yy_buffer_status =
+ ACE_YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ ace_yy_n_chars += number_to_move;
+ ace_yy_current_buffer->ace_yy_ch_buf[ace_yy_n_chars] = ACE_YY_END_OF_BUFFER_CHAR;
+ ace_yy_current_buffer->ace_yy_ch_buf[ace_yy_n_chars + 1] = ACE_YY_END_OF_BUFFER_CHAR;
+
+ ace_yytext_ptr = &ace_yy_current_buffer->ace_yy_ch_buf[0];
+
+ return ret_val;
+ }
+
+
+/* ace_yy_get_previous_state - get the state just before the EOB ACE_TCHAR was reached */
+
+static ace_yy_state_type ace_yy_get_previous_state()
+ {
+ register ace_yy_state_type ace_yy_current_state;
+ register ACE_TCHAR *ace_yy_cp;
+
+ ace_yy_current_state = ace_yy_start;
+ ace_yy_current_state += ACE_YY_AT_BOL();
+
+ for ( ace_yy_cp = ace_yytext_ptr + ACE_YY_MORE_ADJ; ace_yy_cp < ace_yy_c_buf_p; ++ace_yy_cp )
+ {
+ register ACE_YY_CHAR ace_yy_c = (*ace_yy_cp ? ace_yy_ec[ACE_YY_SC_TO_UI(*ace_yy_cp)] : 1);
+ if ( ace_yy_accept[ace_yy_current_state] )
+ {
+ ace_yy_last_accepting_state = ace_yy_current_state;
+ ace_yy_last_accepting_cpos = ace_yy_cp;
+ }
+ while ( ace_yy_chk[ace_yy_base[ace_yy_current_state] + ace_yy_c] != ace_yy_current_state )
+ {
+ ace_yy_current_state = (int) ace_yy_def[ace_yy_current_state];
+ if ( ace_yy_current_state >= 108 )
+ ace_yy_c = ace_yy_meta[(unsigned int) ace_yy_c];
+ }
+ ace_yy_current_state = ace_yy_nxt[ace_yy_base[ace_yy_current_state] + (unsigned int) ace_yy_c];
+ }
+
+ return ace_yy_current_state;
+ }
+
+
+/* ace_yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = ace_yy_try_NUL_trans( current_state );
+ */
+
+#ifdef ACE_YY_USE_PROTOS
+static ace_yy_state_type ace_yy_try_NUL_trans( ace_yy_state_type ace_yy_current_state )
+#else
+static ace_yy_state_type ace_yy_try_NUL_trans( ace_yy_current_state )
+ace_yy_state_type ace_yy_current_state;
+#endif
+ {
+ register int ace_yy_is_jam;
+ register ACE_TCHAR *ace_yy_cp = ace_yy_c_buf_p;
+
+ register ACE_YY_CHAR ace_yy_c = 1;
+ if ( ace_yy_accept[ace_yy_current_state] )
+ {
+ ace_yy_last_accepting_state = ace_yy_current_state;
+ ace_yy_last_accepting_cpos = ace_yy_cp;
+ }
+ while ( ace_yy_chk[ace_yy_base[ace_yy_current_state] + ace_yy_c] != ace_yy_current_state )
+ {
+ ace_yy_current_state = (int) ace_yy_def[ace_yy_current_state];
+ if ( ace_yy_current_state >= 108 )
+ ace_yy_c = ace_yy_meta[(unsigned int) ace_yy_c];
+ }
+ ace_yy_current_state = ace_yy_nxt[ace_yy_base[ace_yy_current_state] + (unsigned int) ace_yy_c];
+ ace_yy_is_jam = (ace_yy_current_state == 107);
+
+ return ace_yy_is_jam ? 0 : ace_yy_current_state;
+ }
+
+
+#ifndef ACE_YY_NO_UNPUT
+#ifdef ACE_YY_USE_PROTOS
+static void ace_yyunput( int c, register ACE_TCHAR *ace_yy_bp )
+#else
+static void ace_yyunput( c, ace_yy_bp )
+int c;
+register ACE_TCHAR *ace_yy_bp;
+#endif
+ {
+ register ACE_TCHAR *ace_yy_cp = ace_yy_c_buf_p;
+
+ /* undo effects of setting up ace_yytext */
+ *ace_yy_cp = ace_yy_hold_char;
+
+ if ( ace_yy_cp < ace_yy_current_buffer->ace_yy_ch_buf + 2 )
+ { /* need to shift things up to make room */
+ /* +2 for EOB chars. */
+ register int number_to_move = ace_yy_n_chars + 2;
+ register ACE_TCHAR *dest = &ace_yy_current_buffer->ace_yy_ch_buf[
+ ace_yy_current_buffer->ace_yy_buf_size + 2];
+ register ACE_TCHAR *source =
+ &ace_yy_current_buffer->ace_yy_ch_buf[number_to_move];
+
+ while ( source > ace_yy_current_buffer->ace_yy_ch_buf )
+ *--dest = *--source;
+
+ ace_yy_cp += (int) (dest - source);
+ ace_yy_bp += (int) (dest - source);
+ ace_yy_current_buffer->ace_yy_n_chars =
+ ace_yy_n_chars = ace_yy_current_buffer->ace_yy_buf_size;
+
+ if ( ace_yy_cp < ace_yy_current_buffer->ace_yy_ch_buf + 2 )
+ ACE_YY_FATAL_ERROR( "flex scanner push-back overflow" );
+ }
+
+ *--ace_yy_cp = (ACE_TCHAR) c;
+
+
+ ace_yytext_ptr = ace_yy_bp;
+ ace_yy_hold_char = *ace_yy_cp;
+ ace_yy_c_buf_p = ace_yy_cp;
+ }
+#endif /* ifndef ACE_YY_NO_UNPUT */
+
+
+#ifdef __cplusplus
+static int ace_yyinput()
+#else
+static int input()
+#endif
+ {
+ int c;
+
+ *ace_yy_c_buf_p = ace_yy_hold_char;
+
+ if ( *ace_yy_c_buf_p == ACE_YY_END_OF_BUFFER_CHAR )
+ {
+ /* ace_yy_c_buf_p now points to the character we want to return.
+ * If this occurs *before* the EOB characters, then it's a
+ * valid NUL; if not, then we've hit the end of the buffer.
+ */
+ if ( ace_yy_c_buf_p < &ace_yy_current_buffer->ace_yy_ch_buf[ace_yy_n_chars] )
+ /* This was really a NUL. */
+ *ace_yy_c_buf_p = '\0';
+
+ else
+ { /* need more input */
+ int offset = ace_yy_c_buf_p - ace_yytext_ptr;
+ ++ace_yy_c_buf_p;
+
+ switch ( ace_yy_get_next_buffer() )
+ {
+ case EOB_ACT_LAST_MATCH:
+ /* This happens because ace_yy_g_n_b()
+ * sees that we've accumulated a
+ * token and flags that we need to
+ * try matching the token before
+ * proceeding. But for input(),
+ * there's no matching to consider.
+ * So convert the EOB_ACT_LAST_MATCH
+ * to EOB_ACT_END_OF_FILE.
+ */
+
+ /* Reset buffer status. */
+ ace_yyrestart( ace_yyin );
+
+ /* fall through */
+
+ case EOB_ACT_END_OF_FILE:
+ {
+ if ( ace_yywrap() )
+ return EOF;
+
+ if ( ! ace_yy_did_buffer_switch_on_eof )
+ ACE_YY_NEW_FILE;
+#ifdef __cplusplus
+ return ace_yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ ace_yy_c_buf_p = ace_yytext_ptr + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) ace_yy_c_buf_p; /* cast for 8-bit char's */
+ *ace_yy_c_buf_p = '\0'; /* preserve ace_yytext */
+ ace_yy_hold_char = *++ace_yy_c_buf_p;
+
+ ace_yy_current_buffer->ace_yy_at_bol = (c == '\n');
+
+ return c;
+ }
+
+
+#ifdef ACE_YY_USE_PROTOS
+void ace_yyrestart( FILE *input_file )
+#else
+void ace_yyrestart( input_file )
+FILE *input_file;
+#endif
+ {
+ if ( ! ace_yy_current_buffer )
+ ace_yy_current_buffer = ace_yy_create_buffer( ace_yyin, ACE_YY_BUF_SIZE );
+
+ ace_yy_init_buffer( ace_yy_current_buffer, input_file );
+ ace_yy_load_buffer_state();
+ }
+
+
+#ifdef ACE_YY_USE_PROTOS
+void ace_yy_switch_to_buffer( ACE_YY_BUFFER_STATE new_buffer )
+#else
+void ace_yy_switch_to_buffer( new_buffer )
+ACE_YY_BUFFER_STATE new_buffer;
+#endif
+ {
+ if ( ace_yy_current_buffer == new_buffer )
+ return;
+
+ if ( ace_yy_current_buffer )
+ {
+ /* Flush out information for old buffer. */
+ *ace_yy_c_buf_p = ace_yy_hold_char;
+ ace_yy_current_buffer->ace_yy_buf_pos = ace_yy_c_buf_p;
+ ace_yy_current_buffer->ace_yy_n_chars = ace_yy_n_chars;
+ }
+
+ ace_yy_current_buffer = new_buffer;
+ ace_yy_load_buffer_state();
+
+ /* We don't actually know whether we did this switch during
+ * EOF (ace_yywrap()) processing, but the only time this flag
+ * is looked at is after ace_yywrap() is called, so it's safe
+ * to go ahead and always set it.
+ */
+ ace_yy_did_buffer_switch_on_eof = 1;
+ }
+
+
+#ifdef ACE_YY_USE_PROTOS
+void ace_yy_load_buffer_state( void )
+#else
+void ace_yy_load_buffer_state()
+#endif
+ {
+ ace_yy_n_chars = ace_yy_current_buffer->ace_yy_n_chars;
+ ace_yytext_ptr = ace_yy_c_buf_p = ace_yy_current_buffer->ace_yy_buf_pos;
+ ace_yyin = ace_yy_current_buffer->ace_yy_input_file;
+ ace_yy_hold_char = *ace_yy_c_buf_p;
+ }
+
+
+#ifdef ACE_YY_USE_PROTOS
+ACE_YY_BUFFER_STATE ace_yy_create_buffer( FILE *file, int size )
+#else
+ACE_YY_BUFFER_STATE ace_yy_create_buffer( file, size )
+FILE *file;
+int size;
+#endif
+ {
+ ACE_YY_BUFFER_STATE b;
+
+ b = (ACE_YY_BUFFER_STATE) ace_yy_flex_alloc( sizeof( struct ace_yy_buffer_state ) );
+ if ( ! b )
+ ACE_YY_FATAL_ERROR( "out of dynamic memory in ace_yy_create_buffer()" );
+
+ b->ace_yy_buf_size = size;
+
+ /* ace_yy_ch_buf has to be 2 characters longer than the size given because
+ * we need to put in 2 end-of-buffer characters.
+ */
+ b->ace_yy_ch_buf = (ACE_TCHAR *) ace_yy_flex_alloc( (b->ace_yy_buf_size + 2) * sizeof (ACE_TCHAR) );
+ if ( ! b->ace_yy_ch_buf )
+ ACE_YY_FATAL_ERROR( "out of dynamic memory in ace_yy_create_buffer()" );
+
+ b->ace_yy_is_our_buffer = 1;
+
+ ace_yy_init_buffer( b, file );
+
+ return b;
+ }
+
+
+#ifdef ACE_YY_USE_PROTOS
+void ace_yy_delete_buffer( ACE_YY_BUFFER_STATE b )
+#else
+void ace_yy_delete_buffer( b )
+ACE_YY_BUFFER_STATE b;
+#endif
+ {
+ if ( ! b )
+ return;
+
+ if ( b == ace_yy_current_buffer )
+ ace_yy_current_buffer = (ACE_YY_BUFFER_STATE) 0;
+
+ if ( b->ace_yy_is_our_buffer )
+ ace_yy_flex_free( (void *) b->ace_yy_ch_buf );
+
+ ace_yy_flex_free( (void *) b );
+ }
+
+
+
+#ifdef ACE_YY_USE_PROTOS
+void ace_yy_init_buffer( ACE_YY_BUFFER_STATE b, FILE *file )
+#else
+void ace_yy_init_buffer( b, file )
+ACE_YY_BUFFER_STATE b;
+FILE *file;
+#endif
+
+
+ {
+ ace_yy_flush_buffer( b );
+
+ b->ace_yy_input_file = file;
+ b->ace_yy_fill_buffer = 1;
+
+#if ACE_YY_ALWAYS_INTERACTIVE
+ b->ace_yy_is_interactive = 1;
+#else
+#if ACE_YY_NEVER_INTERACTIVE
+ b->ace_yy_is_interactive = 0;
+#else
+ b->ace_yy_is_interactive = file ? (ACE_OS::isatty( fileno (file) ) > 0) : 0;
+#endif
+#endif
+ }
+
+
+#ifdef ACE_YY_USE_PROTOS
+void ace_yy_flush_buffer( ACE_YY_BUFFER_STATE b )
+#else
+void ace_yy_flush_buffer( b )
+ACE_YY_BUFFER_STATE b;
+#endif
+
+ {
+ if ( ! b )
+ return;
+
+ b->ace_yy_n_chars = 0;
+
+ /* We always need two end-of-buffer characters. The first causes
+ * a transition to the end-of-buffer state. The second causes
+ * a jam in that state.
+ */
+ b->ace_yy_ch_buf[0] = ACE_YY_END_OF_BUFFER_CHAR;
+ b->ace_yy_ch_buf[1] = ACE_YY_END_OF_BUFFER_CHAR;
+
+ b->ace_yy_buf_pos = &b->ace_yy_ch_buf[0];
+
+ b->ace_yy_at_bol = 1;
+ b->ace_yy_buffer_status = ACE_YY_BUFFER_NEW;
+
+ if ( b == ace_yy_current_buffer )
+ ace_yy_load_buffer_state();
+ }
+
+
+#ifndef ACE_YY_NO_SCAN_BUFFER
+#ifdef ACE_YY_USE_PROTOS
+ACE_YY_BUFFER_STATE ace_yy_scan_buffer( ACE_TCHAR *base, ace_yy_size_t size )
+#else
+ACE_YY_BUFFER_STATE ace_yy_scan_buffer( base, size )
+ACE_TCHAR *base;
+ace_yy_size_t size;
+#endif
+ {
+ ACE_YY_BUFFER_STATE b;
+
+ if ( size < 2 ||
+ base[size-2] != ACE_YY_END_OF_BUFFER_CHAR ||
+ base[size-1] != ACE_YY_END_OF_BUFFER_CHAR )
+ /* They forgot to leave room for the EOB's. */
+ return 0;
+
+ b = (ACE_YY_BUFFER_STATE) ace_yy_flex_alloc( sizeof( struct ace_yy_buffer_state ) );
+ if ( ! b )
+ ACE_YY_FATAL_ERROR( "out of dynamic memory in ace_yy_scan_buffer()" );
+
+ b->ace_yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->ace_yy_buf_pos = b->ace_yy_ch_buf = base;
+ b->ace_yy_is_our_buffer = 0;
+ b->ace_yy_input_file = 0;
+ b->ace_yy_n_chars = b->ace_yy_buf_size;
+ b->ace_yy_is_interactive = 0;
+ b->ace_yy_at_bol = 1;
+ b->ace_yy_fill_buffer = 0;
+ b->ace_yy_buffer_status = ACE_YY_BUFFER_NEW;
+
+ ace_yy_switch_to_buffer( b );
+
+ return b;
+ }
+#endif
+
+
+#ifndef ACE_YY_NO_SCAN_STRING
+#ifdef ACE_YY_USE_PROTOS
+ACE_YY_BUFFER_STATE ace_yy_scan_string( ace_yyconst ACE_TCHAR *ace_yy_str )
+#else
+ACE_YY_BUFFER_STATE ace_yy_scan_string( ace_yy_str )
+ace_yyconst ACE_TCHAR *ace_yy_str;
+#endif
+ {
+ int len;
+ for ( len = 0; ace_yy_str[len]; ++len )
+ ;
+
+ return ace_yy_scan_bytes( ace_yy_str, len );
+ }
+#endif
+
+
+#ifndef ACE_YY_NO_SCAN_BYTES
+#ifdef ACE_YY_USE_PROTOS
+ACE_YY_BUFFER_STATE ace_yy_scan_bytes( ace_yyconst ACE_TCHAR *bytes, int len )
+#else
+ACE_YY_BUFFER_STATE ace_yy_scan_bytes( bytes, len )
+ace_yyconst ACE_TCHAR *bytes;
+int len;
+#endif
+ {
+ ACE_YY_BUFFER_STATE b;
+ ACE_TCHAR *buf;
+ ace_yy_size_t n;
+ int i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = len + 2;
+ buf = (ACE_TCHAR *) ace_yy_flex_alloc( n * sizeof (ACE_TCHAR));
+ if ( ! buf )
+ ACE_YY_FATAL_ERROR( "out of dynamic memory in ace_yy_scan_bytes()" );
+
+ for ( i = 0; i < len; ++i )
+ buf[i] = bytes[i];
+
+ buf[len] = buf[len+1] = ACE_YY_END_OF_BUFFER_CHAR;
+
+ b = ace_yy_scan_buffer( buf, n );
+ if ( ! b )
+ ACE_YY_FATAL_ERROR( "bad buffer in ace_yy_scan_bytes()" );
+
+ /* It's okay to grow etc. this buffer, and we should throw it
+ * away when we're done.
+ */
+ b->ace_yy_is_our_buffer = 1;
+
+ return b;
+ }
+#endif
+
+
+#ifndef ACE_YY_NO_PUSH_STATE
+#ifdef ACE_YY_USE_PROTOS
+static void ace_yy_push_state( int new_state )
+#else
+static void ace_yy_push_state( new_state )
+int new_state;
+#endif
+ {
+ if ( ace_yy_start_stack_ptr >= ace_yy_start_stack_depth )
+ {
+ ace_yy_size_t new_size;
+
+ ace_yy_start_stack_depth += ACE_YY_START_STACK_INCR;
+ new_size = ace_yy_start_stack_depth * sizeof( int );
+
+ if ( ! ace_yy_start_stack )
+ ace_yy_start_stack = (int *) ace_yy_flex_alloc( new_size );
+
+ else
+ ace_yy_start_stack = (int *) ace_yy_flex_realloc(
+ (void *) ace_yy_start_stack, new_size );
+
+ if ( ! ace_yy_start_stack )
+ ACE_YY_FATAL_ERROR(
+ "out of memory expanding start-condition stack" );
+ }
+
+ ace_yy_start_stack[ace_yy_start_stack_ptr++] = ACE_YY_START;
+
+ BEGIN(new_state);
+ }
+#endif
+
+
+#ifndef ACE_YY_NO_POP_STATE
+static void ace_yy_pop_state()
+ {
+ if ( --ace_yy_start_stack_ptr < 0 )
+ ACE_YY_FATAL_ERROR( "start-condition stack underflow" );
+
+ BEGIN(ace_yy_start_stack[ace_yy_start_stack_ptr]);
+ }
+#endif
+
+
+#ifndef ACE_YY_NO_TOP_STATE
+static int ace_yy_top_state()
+ {
+ return ace_yy_start_stack[ace_yy_start_stack_ptr - 1];
+ }
+#endif
+
+#ifndef ACE_YY_EXIT_FAILURE
+#define ACE_YY_EXIT_FAILURE 2
+#endif
+
+#ifdef ACE_YY_USE_PROTOS
+static void ace_yy_fatal_error( ace_yyconst char msg[] )
+#else
+static void ace_yy_fatal_error( msg )
+char msg[];
+#endif
+ {
+ (void) ACE_OS::fprintf( stderr, "%s\n", msg );
+ ACE_OS::exit( ACE_YY_EXIT_FAILURE );
+ }
+
+
+
+/* Redefine ace_yyless() so it works in section 3 code. */
+
+#undef ace_yyless
+#define ace_yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up ace_yytext. */ \
+ ace_yytext[ace_yyleng] = ace_yy_hold_char; \
+ ace_yy_c_buf_p = ace_yytext + n; \
+ ace_yy_hold_char = *ace_yy_c_buf_p; \
+ *ace_yy_c_buf_p = '\0'; \
+ ace_yyleng = n; \
+ } \
+ while ( 0 )
+
+
+/* Internal utility routines. */
+
+#ifndef ace_yytext_ptr
+#ifdef ACE_YY_USE_PROTOS
+static void ace_yy_flex_strncpy( ACE_TCHAR *s1, ace_yyconst ACE_TCHAR *s2, int n )
+#else
+static void ace_yy_flex_strncpy( s1, s2, n )
+ACE_TCHAR *s1;
+ace_yyconst ACE_TCHAR *s2;
+int n;
+#endif
+ {
+ register int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+ }
+#endif
+
+#ifdef ACE_YY_NEED_STRLEN
+#ifdef ACE_YY_USE_PROTOS
+static int ace_yy_flex_strlen( ace_yyconst ACE_TCHAR *s )
+#else
+static int ace_yy_flex_strlen( s )
+ace_yyconst ACE_TCHAR *s;
+#endif
+ {
+ register int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+ return n;
+ }
+#endif
+
+
+#ifdef ACE_YY_USE_PROTOS
+static void *ace_yy_flex_alloc( ace_yy_size_t size )
+#else
+static void *ace_yy_flex_alloc( size )
+ace_yy_size_t size;
+#endif
+ {
+ return (void *) malloc( size );
+ }
+
+#ifdef ACE_YY_USE_PROTOS
+static void *ace_yy_flex_realloc( void *ptr, ace_yy_size_t size )
+#else
+static void *ace_yy_flex_realloc( ptr, size )
+void *ptr;
+ace_yy_size_t size;
+#endif
+ {
+ /* The cast to (ACE_TCHAR *) in the following accommodates both
+ * implementations that use char* generic pointers, and those
+ * that use void* generic pointers. It works with the latter
+ * because both ANSI C and C++ allow castless assignment from
+ * any pointer type to void*, and deal with argument conversions
+ * as though doing an assignment.
+ */
+ return (void *) realloc( (char *) ptr, size );
+ }
+
+#ifdef ACE_YY_USE_PROTOS
+static void ace_yy_flex_free( void *ptr )
+#else
+static void ace_yy_flex_free( ptr )
+void *ptr;
+#endif
+ {
+ free( ACE_MALLOC_T (ptr) );
+ }
+
+#if ACE_YY_MAIN
+int main()
+ {
+ ace_yylex();
+ return 0;
+ }
+#endif
+
+int
+ace_yywrap (void)
+{
+ ACE_OS::fflush (ace_yyin);
+ ace_yytext[0] = '#';
+ ace_yyleng = 0;
+
+ return 1;
+}
+
+void
+ace_yy_push_buffer (FILE *file, ace_yy_buffer_state *&buffer)
+{
+ // External synchronization is required.
+
+ if (buffer == 0)
+ buffer = ace_yy_create_buffer (file, ACE_YY_BUF_SIZE);
+
+ ace_yy_switch_to_buffer (buffer);
+}
+
+void
+ace_yy_push_buffer (const ACE_TCHAR *directive, ace_yy_buffer_state *&buffer)
+{
+ // External synchronization is required.
+
+ // ace_yyparse() may invoke ace_yylex() multiple times when parsing
+ // a single directive. Prevent a new buffer from created during
+ // each call to ace_yylex().
+ if (ACE_YY_CURRENT_BUFFER != 0
+ && directive == ACE_YY_CURRENT_BUFFER->ace_yy_ch_buf)
+ return;
+
+ if (buffer == 0)
+ {
+ // ace_yy_scan_string() already switches the buffer so there is
+ // no need to explicitly make the switch.
+ buffer = ace_yy_scan_string (directive);
+ }
+ else
+ ace_yy_switch_to_buffer (buffer);
+}
+
+void
+ace_yy_pop_buffer (ace_yy_buffer_state *buffer)
+{
+ // External synchronization is required.
+
+ ace_yy_switch_to_buffer (buffer);
+}
+#endif /* ACE_USES_CLASSIC_SVC_CONF = 1 */
diff --git a/ace/Svc_Conf_y.cpp b/ace/Svc_Conf_y.cpp
index d18774268d8..13e67fba952 100644
--- a/ace/Svc_Conf_y.cpp
+++ b/ace/Svc_Conf_y.cpp
@@ -37,8 +37,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Prototypes.
static ACE_Module_Type *ace_get_module (ACE_Static_Node *str_rec,
ACE_Static_Node *svc_type,
@@ -300,9 +298,7 @@ static const short ace_yycheck[] =
# define ACE_YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# else
# if defined (__STDC__) || defined (__cplusplus)
-ACE_END_VERSIONED_NAMESPACE_DECL
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
# define ACE_YYSIZE_T size_t
# endif
# define ACE_YYSTACK_ALLOC malloc
@@ -385,9 +381,7 @@ union ace_yyalloc
#endif
#if ! defined (ACE_YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
-ACE_END_VERSIONED_NAMESPACE_DECL
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
# define ACE_YYSIZE_T size_t
# endif
#endif
@@ -467,9 +461,7 @@ while (0)
#if ACE_YYDEBUG
# ifndef ACE_YYFPRINTF
-ACE_END_VERSIONED_NAMESPACE_DECL
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
# define ACE_YYFPRINTF ACE_OS::fprintf
# endif
@@ -1520,7 +1512,7 @@ ace_get_module (ACE_Static_Node *str_rec,
// Main driver program.
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Svc_Conf_Param param (stdin);
@@ -1531,7 +1523,4 @@ main (int argc, ACE_TCHAR *argv[])
return ::ace_yyparse (&param);
}
#endif /* DEBUGGING */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_USES_CLASSIC_SVC_CONF == 1 */
diff --git a/ace/Svc_Handler.cpp b/ace/Svc_Handler.cpp
index a1cb000c58a..2fb990a9064 100644
--- a/ace/Svc_Handler.cpp
+++ b/ace/Svc_Handler.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_SVC_HANDLER_CPP
-#define ACE_SVC_HANDLER_CPP
+#ifndef ACE_SVC_HANDLER_C
+#define ACE_SVC_HANDLER_C
#include "ace/Svc_Handler.h"
@@ -15,11 +15,11 @@
#include "ace/Dynamic.h"
+ACE_RCSID(ace, Svc_Handler, "$Id$")
+
#define PR_ST_1 ACE_PEER_STREAM_1
#define PR_ST_2 ACE_PEER_STREAM_2
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <PR_ST_1, ACE_SYNCH_DECL> void *
ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::operator new (size_t,
void *p)
@@ -91,18 +91,6 @@ ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::operator new (size_t n,
return ::new(ACE_nothrow) char[n];
}
}
-
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
-template <PR_ST_1, ACE_SYNCH_DECL> void
-ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::operator delete (void *p,
- const ACE_nothrow_t&) throw()
-{
- ACE_TRACE
- ("ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::operator delete(nothrow)");
- ::delete [] static_cast <char *> (p);
-}
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
-
#endif /* ACE_HAS_NEW_NOTHROW */
template <PR_ST_1, ACE_SYNCH_DECL> void
@@ -127,7 +115,8 @@ ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::operator delete (void *obj)
// You cannot delete a 'void*' (X3J16/95-0087 5.3.5.3), but we know
// the pointer was created using new char[] (see operator new code),
// so we use a cast:
- ::delete [] static_cast <char *> (obj);
+ char *tmp = (char *) obj;
+ ::delete [] tmp;
}
// Default constructor.
@@ -520,8 +509,6 @@ ACE_Buffered_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::handle_timeout (const ACE_Time
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#undef PR_ST_1
#undef PR_ST_2
-#endif /* ACE_SVC_HANDLER_CPP */
+#endif /* ACE_SVC_HANDLER_C */
diff --git a/ace/Svc_Handler.h b/ace/Svc_Handler.h
index 76027b9e409..2fd4f15320e 100644
--- a/ace/Svc_Handler.h
+++ b/ace/Svc_Handler.h
@@ -16,6 +16,9 @@
#include /**/ "ace/pre.h"
+// Forward decls.
+class ACE_Connection_Recycling_Strategy;
+
#include "ace/Synch_Options.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -26,11 +29,6 @@
#include "ace/Recyclable.h"
#include "ace/Reactor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Forward decls.
-class ACE_Connection_Recycling_Strategy;
-
/**
* @class ACE_Svc_Handler
*
@@ -157,9 +155,6 @@ public:
/// itself up correctly whether or not it's allocated statically or
/// dynamically.
void *operator new (size_t n, const ACE_nothrow_t&) throw();
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
- void operator delete (void *p, const ACE_nothrow_t&) throw ();
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif
/// This operator permits "placement new" on a per-object basis.
@@ -236,7 +231,7 @@ protected:
/// Keeps track of whether we are in the process of closing (required
/// to avoid circular calls to <handle_close>).
- int closing_;
+ char closing_;
/// Pointer to the connection recycler.
ACE_Connection_Recycling_Strategy *recycler_;
@@ -253,7 +248,7 @@ protected:
* its connected peer and supports buffering.
*
* The buffering feature makes it possible to queue up
- * <ACE_Message_Blocks> in an ACE_Message_Queue until (1) the
+ * <ACE_Message_Blocks> in an <ACE_Message_Queue> until (1) the
* queue is "full" or (2) a period of time elapses, at which
* point the queue is "flushed" via <sendv_n> to the peer.
*/
@@ -265,7 +260,7 @@ public:
/**
* Constructor initializes the <thr_mgr> and <mq> by passing them
* down to the <ACE_Task> base class. The <reactor> is passed to
- * the ACE_Event_Handler. The <max_buffer_size> and
+ * the <ACE_Event_Handler>. The <max_buffer_size> and
* <relative_timeout> are used to determine at what point to flush
* the <mq>. By default, there's no buffering at all. The
* <relative_timeout> value is interpreted to be in a unit that's
@@ -281,8 +276,8 @@ public:
virtual ~ACE_Buffered_Svc_Handler (void);
/**
- * Insert the ACE_Message_Block chain rooted at <message_block>
- * into the ACE_Message_Queue with the designated <timeout>. The
+ * Insert the <ACE_Message_Block> chain rooted at <message_block>
+ * into the <ACE_Message_Queue> with the designated <timeout>. The
* <flush> method will be called if this <put> causes the number of
* bytes to exceed the maximum buffer size or if the timeout period
* has elapsed.
@@ -290,8 +285,8 @@ public:
virtual int put (ACE_Message_Block *message_block,
ACE_Time_Value *timeout = 0);
- /// Flush the ACE_Message_Queue, which writes all the queued
- /// ACE_Message_Blocks to the <PEER_STREAM>.
+ /// Flush the <ACE_Message_Queue>, which writes all the queued
+ /// <ACE_Message_Block>s to the <PEER_STREAM>.
virtual int flush (void);
/// This method is not currently implemented -- this is where the
@@ -303,8 +298,8 @@ public:
void dump (void) const;
protected:
- /// Implement the flush operation on the ACE_Message_Queue, which
- /// writes all the queued ACE_Message_Blocks to the <PEER_STREAM>.
+ /// Implement the flush operation on the <ACE_Message_Queue>, which
+ /// writes all the queued <ACE_Message_Block>s to the <PEER_STREAM>.
/// Assumes that the caller holds the lock.
virtual int flush_i (void);
@@ -325,8 +320,6 @@ protected:
ACE_Time_Value *timeoutp_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Svc_Handler.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Swap.cpp b/ace/Swap.cpp
index eb14789c3de..4f62e72ade6 100644
--- a/ace/Swap.cpp
+++ b/ace/Swap.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file Swap.cpp
*
@@ -6,8 +7,8 @@
* @author Carlos O'Ryan <coryan@uci.edu>
*/
-#ifndef ACE_SWAP_CPP
-#define ACE_SWAP_CPP
+#ifndef ACE_SWAP_C
+#define ACE_SWAP_C
#include "ace/Swap.h"
@@ -19,4 +20,6 @@
#include "ace/Swap.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_SWAP_CPP */
+ACE_RCSID(ace, Swap, "$Id$")
+
+#endif /* ACE_SWAP_C */
diff --git a/ace/Swap.h b/ace/Swap.h
index a5688095eae..0d2ebcf0c05 100644
--- a/ace/Swap.h
+++ b/ace/Swap.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
/**
* @file Swap.h
*
@@ -18,16 +17,11 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Swap
*
* @brief Defines a function to swap two variables.
*
- * @deprecated This template is deprecated, you can use std::swap without
- * problems on all platforms.
- *
*/
template<class T> class ACE_Swap
{
@@ -36,8 +30,6 @@ public:
static void swap (T &lhs, T &rhs);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Swap.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Swap.inl b/ace/Swap.inl
index 195f1559f69..b1139ca3ffb 100644
--- a/ace/Swap.inl
+++ b/ace/Swap.inl
@@ -1,5 +1,3 @@
-// -*- C++ -*-
-
/**
* @file Swap.inl
*
@@ -8,8 +6,6 @@
* @author Carlos O'Ryan <coryan@uci.edu>
*/
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class T> ACE_INLINE void
ACE_Swap<T>::swap (T &lhs, T& rhs)
{
@@ -17,5 +13,3 @@ ACE_Swap<T>::swap (T &lhs, T& rhs)
lhs = rhs;
rhs = tmp;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Synch.cpp b/ace/Synch.cpp
index d6972b74a5d..6a81cb386f7 100644
--- a/ace/Synch.cpp
+++ b/ace/Synch.cpp
@@ -1,5 +1,5 @@
-#ifndef ACE_SYNCH_CPP
-#define ACE_SYNCH_CPP
+#ifndef ACE_SYNCH_C
+#define ACE_SYNCH_C
#include "ace/Thread.h"
#include "ace/ACE.h"
@@ -33,8 +33,6 @@ ACE_RCSID (ace,
#include "ace/Thread_Mutex.cpp"
#include "ace/Thread_Semaphore.cpp"
-// ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-// ACE_ALLOC_HOOK_DEFINE(ACE_Null_Mutex)
-// ACE_END_VERSIONED_NAMESPACE_DECL
+ //ACE_ALLOC_HOOK_DEFINE(ACE_Null_Mutex)
-#endif /* ACE_SYNCH_CPP */
+#endif /* ACE_SYNCH_C */
diff --git a/ace/Synch_Options.cpp b/ace/Synch_Options.cpp
index 4f95720486c..d8f4e9bba9a 100644
--- a/ace/Synch_Options.cpp
+++ b/ace/Synch_Options.cpp
@@ -1,5 +1,9 @@
#include "ace/Synch_Options.h"
+#if !defined (__ACE_INLINE__)
+#include "ace/Synch_Options.inl"
+#endif /* __ACE_INLINE__ */
+
#include "ace/Global_Macros.h"
#include "ace/config-all.h"
@@ -7,7 +11,6 @@ ACE_RCSID (ace,
Synch_Options,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE (ACE_Synch_Options)
@@ -106,5 +109,3 @@ ACE_Synch_Options::arg (const void *a)
ACE_TRACE ("ACE_Synch_Options::arg");
this->arg_ = a;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Synch_Options.h b/ace/Synch_Options.h
index 288e4acb329..f9c97033759 100644
--- a/ace/Synch_Options.h
+++ b/ace/Synch_Options.h
@@ -23,7 +23,6 @@
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Synch_Options
@@ -82,6 +81,9 @@ public:
const ACE_Time_Value &timeout = ACE_Time_Value::zero,
const void *arg = 0);
+ /// Default dtor.
+ ~ACE_Synch_Options (void);
+
/// Initialize the Synch_Options based on parameters.
void set (unsigned long options = 0,
const ACE_Time_Value &timeout = ACE_Time_Value::zero,
@@ -147,7 +149,9 @@ private:
const void *arg_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+#include "ace/Synch_Options.inl"
+#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
diff --git a/ace/Synch_Options.inl b/ace/Synch_Options.inl
new file mode 100644
index 00000000000..3cba94e0fef
--- /dev/null
+++ b/ace/Synch_Options.inl
@@ -0,0 +1,7 @@
+/* -*- C++ -*- */
+// $Id$
+
+ACE_INLINE
+ACE_Synch_Options::~ACE_Synch_Options (void)
+{
+}
diff --git a/ace/Synch_T.cpp b/ace/Synch_T.cpp
index 22ee08d4e0b..b41640ba1d2 100644
--- a/ace/Synch_T.cpp
+++ b/ace/Synch_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_SYNCH_T_CPP
-#define ACE_SYNCH_T_CPP
+#ifndef ACE_SYNCH_T_C
+#define ACE_SYNCH_T_C
#include "ace/Thread.h"
@@ -13,10 +13,12 @@
#include "ace/Synch_T.h"
#include "ace/Log_Msg.h"
+ACE_RCSID(ace, Synch_T, "$Id$")
+
#include "ace/Lock_Adapter_T.cpp"
#include "ace/Reverse_Lock_T.cpp"
#include "ace/Guard_T.cpp"
#include "ace/TSS_T.cpp"
#include "ace/Condition_T.cpp"
-#endif /* ACE_SYNCH_T_CPP */
+#endif /* ACE_SYNCH_T_C */
diff --git a/ace/Synch_T.h b/ace/Synch_T.h
index c853a3f3325..9b9eba49734 100644
--- a/ace/Synch_T.h
+++ b/ace/Synch_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
diff --git a/ace/Synch_Traits.h b/ace/Synch_Traits.h
index 03e8b25362d..a9b9481433b 100644
--- a/ace/Synch_Traits.h
+++ b/ace/Synch_Traits.h
@@ -23,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl
class ACE_Null_Mutex;
class ACE_Null_Condition;
@@ -146,7 +144,5 @@ public:
#define ACE_SYNCH ACE_NULL_SYNCH
#endif /* ACE_HAS_THREADS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SYNCH_TRAITS_H */
diff --git a/ace/System_Time.cpp b/ace/System_Time.cpp
index a650283856f..dcb1480aa51 100644
--- a/ace/System_Time.cpp
+++ b/ace/System_Time.cpp
@@ -1,3 +1,4 @@
+// System_Time.cpp
// $Id$
#include "ace/System_Time.h"
@@ -7,8 +8,6 @@
ACE_RCSID(ace, System_Time, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_System_Time::ACE_System_Time (const ACE_TCHAR *poolname)
: delta_time_ (0)
{
@@ -67,7 +66,7 @@ int
ACE_System_Time::get_local_system_time (ACE_Time_Value &time_out)
{
ACE_TRACE ("ACE_System_Time::get_local_system_time");
- time_out.set (ACE_OS::time (0), 0);
+ time_out.sec (ACE_OS::time (0));
return 0;
}
@@ -142,5 +141,3 @@ template class ACE_Allocator_Adapter<ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Null_M
#pragma instantiate ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex>
#pragma instantiate ACE_Allocator_Adapter<ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> >
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/System_Time.h b/ace/System_Time.h
index 6128f61ec3d..1688ae45755 100644
--- a/ace/System_Time.h
+++ b/ace/System_Time.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -21,12 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "ace/MMAP_Memory_Pool.h"
+#include "ace/Memory_Pool.h"
#include "ace/Malloc_T.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_System_Time
*
@@ -71,7 +70,7 @@ public:
int sync_local_system_time (ACE_System_Time::Sync_Mode mode);
private:
- typedef ACE_Malloc<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC;
+ typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC;
typedef ACE_Allocator_Adapter<MALLOC> ALLOCATOR;
/// Our allocator (used for obtaining system time from shared memory).
@@ -84,7 +83,5 @@ private:
long *delta_time_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_SYSTEM_TIME_H */
diff --git a/ace/TLI.cpp b/ace/TLI.cpp
index c53ed5a7e4e..3efa611ef74 100644
--- a/ace/TLI.cpp
+++ b/ace/TLI.cpp
@@ -19,8 +19,6 @@ ACE_RCSID(ace, TLI, "$Id$")
#include "ace/TLI.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_TLI)
void
@@ -268,6 +266,4 @@ ACE_TLI::get_option (int level, int option, void *optval, int &optlen)
#endif /* ACE_HAS_SVR4_TLI */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TLI */
diff --git a/ace/TLI.h b/ace/TLI.h
index 20fcec2841a..6960af430cf 100644
--- a/ace/TLI.h
+++ b/ace/TLI.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -44,8 +44,6 @@
#define ACE_XTI_ATM_DEVICE "/dev/xtisvc0"
#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_TLI
*
@@ -105,8 +103,6 @@ private:
#endif /* ACE_HAS_SVR4_TLI */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/TLI.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/TLI.inl b/ace/TLI.inl
index 2485cdc5557..8f32186deaf 100644
--- a/ace/TLI.inl
+++ b/ace/TLI.inl
@@ -1,14 +1,12 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/TLI.h"
-
+// TLI.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/TLI.h"
ACE_INLINE
-int
+int
ACE_TLI::look (void) const
{
ACE_TRACE ("ACE_TLI::look");
@@ -16,7 +14,7 @@ ACE_TLI::look (void) const
}
ACE_INLINE
-int
+int
ACE_TLI::rcvdis (struct t_discon *discon) const
{
ACE_TRACE ("ACE_TLI::rcvdis");
@@ -24,7 +22,7 @@ ACE_TLI::rcvdis (struct t_discon *discon) const
}
ACE_INLINE
-int
+int
ACE_TLI::snddis (struct t_call *call) const
{
ACE_TRACE ("ACE_TLI::snddis");
@@ -32,7 +30,7 @@ ACE_TLI::snddis (struct t_call *call) const
}
ACE_INLINE
-int
+int
ACE_TLI::rcvrel (void) const
{
ACE_TRACE ("ACE_TLI::rcvrel");
@@ -40,11 +38,9 @@ ACE_TLI::rcvrel (void) const
}
ACE_INLINE
-int
+int
ACE_TLI::sndrel (void) const
{
ACE_TRACE ("ACE_TLI::sndrel");
return ACE_OS::t_sndrel (this->get_handle ());
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TLI_Acceptor.cpp b/ace/TLI_Acceptor.cpp
index 427cca27f69..180bcc95717 100644
--- a/ace/TLI_Acceptor.cpp
+++ b/ace/TLI_Acceptor.cpp
@@ -10,8 +10,6 @@ ACE_RCSID(ace, TLI_Acceptor, "$Id$")
#if defined (ACE_HAS_TLI)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Put the actual definitions of the ACE_TLI_Request and
// ACE_TLI_Request_Queue classes here to hide them from clients...
@@ -554,6 +552,4 @@ ACE_TLI_Acceptor::accept (ACE_TLI_Stream &new_tli_sap,
return new_tli_sap.get_handle () == ACE_INVALID_HANDLE ? -1 : 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TLI */
diff --git a/ace/TLI_Acceptor.h b/ace/TLI_Acceptor.h
index e7855b83c8f..9d74cd69569 100644
--- a/ace/TLI_Acceptor.h
+++ b/ace/TLI_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,8 +26,6 @@
#if defined (ACE_HAS_TLI)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward reference...
class ACE_TLI_Request_Queue;
class ACE_Time_Value;
@@ -116,8 +114,6 @@ private:
struct t_discon *disp_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TLI */
#include /**/ "ace/post.h"
#endif /* ACE_TLI_ACCEPTOR_H */
diff --git a/ace/TLI_Connector.cpp b/ace/TLI_Connector.cpp
index 9a11d2c880b..d48d854f8e1 100644
--- a/ace/TLI_Connector.cpp
+++ b/ace/TLI_Connector.cpp
@@ -1,3 +1,4 @@
+// TLI_Connector.cpp
// $Id$
#include "ace/TLI_Connector.h"
@@ -15,8 +16,6 @@ ACE_RCSID(ace, TLI_Connector, "$Id$")
#include "ace/OS_NS_string.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_TLI_Connector)
void
@@ -251,6 +250,4 @@ ACE_TLI_Connector::complete (ACE_TLI_Stream &new_stream,
#endif /* ACE_WIN32 */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TLI */
diff --git a/ace/TLI_Connector.h b/ace/TLI_Connector.h
index d8e8f381bfb..f625458f204 100644
--- a/ace/TLI_Connector.h
+++ b/ace/TLI_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -24,8 +24,6 @@
#if defined (ACE_HAS_TLI)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_TLI_Connector
*
@@ -119,8 +117,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/TLI_Connector.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/TLI_Connector.inl b/ace/TLI_Connector.inl
index f2a29f122c3..6539e19a6cd 100644
--- a/ace/TLI_Connector.inl
+++ b/ace/TLI_Connector.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// TLI_Connector.i
ACE_INLINE
ACE_TLI_Connector::ACE_TLI_Connector (ACE_TLI_Stream &new_stream,
@@ -46,4 +45,3 @@ ACE_TLI_Connector::reset_new_handle (ACE_HANDLE handle)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TLI_Stream.cpp b/ace/TLI_Stream.cpp
index 7b7e41fa42d..cf42719db85 100644
--- a/ace/TLI_Stream.cpp
+++ b/ace/TLI_Stream.cpp
@@ -15,8 +15,6 @@ ACE_RCSID(ace, TLI_Stream, "$Id$")
#include "ace/TLI_Stream.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_TLI_Stream)
void
@@ -224,6 +222,4 @@ ACE_TLI_Stream::recv_n (void *buf,
bytes_transferred);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TLI */
diff --git a/ace/TLI_Stream.h b/ace/TLI_Stream.h
index fc1c93107f4..468ab87f9ac 100644
--- a/ace/TLI_Stream.h
+++ b/ace/TLI_Stream.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,8 +27,6 @@
#if defined (ACE_HAS_TLI)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Time_Value;
/**
@@ -130,8 +128,6 @@ private:
void set_rwflag (int);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/TLI_Stream.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/TLI_Stream.inl b/ace/TLI_Stream.inl
index a0d03db13c6..89583e7fb8b 100644
--- a/ace/TLI_Stream.inl
+++ b/ace/TLI_Stream.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/TLI_Stream.h"
+// TLI_Stream.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/TLI_Stream.h"
ACE_INLINE
void
@@ -21,5 +20,3 @@ ACE_TLI_Stream::get_rwflag (void)
ACE_TRACE ("ACE_TLI_Stream::get_rwflag");
return this->rwflag_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TP_Reactor.cpp b/ace/TP_Reactor.cpp
index 2b1a8463ce9..c4eb9c1726d 100644
--- a/ace/TP_Reactor.cpp
+++ b/ace/TP_Reactor.cpp
@@ -15,14 +15,12 @@ ACE_RCSID (ace,
TP_Reactor,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_TP_Reactor)
int
-ACE_TP_Token_Guard::acquire_read_token (ACE_Time_Value *max_wait_time)
+ACE_TP_Token_Guard::grab_token (ACE_Time_Value *max_wait_time)
{
- ACE_TRACE ("ACE_TP_Token_Guard::acquire_read_token");
+ ACE_TRACE ("ACE_TP_Token_Guard::grab_token");
// The order of these events is very subtle, modify with care.
@@ -91,7 +89,7 @@ ACE_TP_Token_Guard::acquire_token (ACE_Time_Value *max_wait_time)
return -1;
}
- // We got the token and so let us mark ourselves as owner
+ // We got the token and so let us mark ourseleves as owner
this->owner_ = 1;
return result;
@@ -108,13 +106,13 @@ ACE_TP_Reactor::ACE_TP_Reactor (ACE_Sig_Handler *sh,
this->supress_notify_renew (1);
}
-ACE_TP_Reactor::ACE_TP_Reactor (size_t max_number_of_handles,
- int restart,
+ACE_TP_Reactor::ACE_TP_Reactor (size_t size,
+ int rs,
ACE_Sig_Handler *sh,
ACE_Timer_Queue *tq,
int mask_signals,
int s_queue)
- : ACE_Select_Reactor (max_number_of_handles, restart, sh, tq, 0, 0, mask_signals, s_queue)
+ : ACE_Select_Reactor (size, rs, sh, tq, 0, 0, mask_signals, s_queue)
{
ACE_TRACE ("ACE_TP_Reactor::ACE_TP_Reactor");
this->supress_notify_renew (1);
@@ -157,7 +155,7 @@ ACE_TP_Reactor::handle_events (ACE_Time_Value *max_wait_time)
// this thread.
ACE_TP_Token_Guard guard (this->token_);
- int const result = guard.acquire_read_token (max_wait_time);
+ int result = guard.grab_token (max_wait_time);
// If the guard is NOT the owner just return the retval
if (!guard.is_owner ())
@@ -454,7 +452,7 @@ ACE_TP_Reactor::handle_notify_events (int & /*event_count*/,
}
}
- // If we did some work, then we just return 1 which will allow us
+ // If we did ssome work, then we just return 1 which will allow us
// to get out of here. If we return 0, then we will be asked to do
// some work ie. dispacth socket events
return result;
@@ -478,17 +476,25 @@ ACE_TP_Reactor::handle_socket_events (int &event_count,
}
// Suspend the handler so that other threads don't start dispatching
- // it, if we can't suspend then return directly
+ // it.
//
// NOTE: This check was performed in older versions of the
// TP_Reactor. Looks like it is a waste..
if (dispatch_info.event_handler_ != this->notify_handler_)
- if (this->suspend_i (dispatch_info.handle_) == -1)
- return 0;
+ this->suspend_i (dispatch_info.handle_);
+
+ int resume_flag =
+ dispatch_info.event_handler_->resume_handler ();
+
+ int reference_counting_required =
+ dispatch_info.event_handler_->reference_counting_policy ().value () ==
+ ACE_Event_Handler::Reference_Counting_Policy::ENABLED;
// Call add_reference() if needed.
- if (dispatch_info.reference_counting_required_)
- dispatch_info.event_handler_->add_reference ();
+ if (reference_counting_required)
+ {
+ dispatch_info.event_handler_->add_reference ();
+ }
// Release the lock. Others threads can start waiting.
guard.release_token ();
@@ -503,6 +509,17 @@ ACE_TP_Reactor::handle_socket_events (int &event_count,
if (this->dispatch_socket_event (dispatch_info) == 0)
++result;
+ // Resume handler if required.
+ if (dispatch_info.event_handler_ != this->notify_handler_ &&
+ resume_flag == ACE_Event_Handler::ACE_REACTOR_RESUMES_HANDLER)
+ this->resume_handler (dispatch_info.handle_);
+
+ // Call remove_reference() if needed.
+ if (reference_counting_required)
+ {
+ dispatch_info.event_handler_->remove_reference ();
+ }
+
return result;
}
@@ -526,9 +543,18 @@ ACE_TP_Reactor::get_event_for_dispatching (ACE_Time_Value *max_wait_time)
// yet have a size_ > 0. This is an attempt to remedy the affect,
// without knowing why it happens.
+ //# if !(defined (__SUNPRO_CC) && (__SUNPRO_CC > 0x500))
+ // SunCC seems to be having problems with this piece of code
+ // here. I am not sure why though. This works fine with other
+ // compilers. As we dont seem to understand when this piece of
+ // code is needed and as it creates problems for SunCC we will
+ // not compile this. Most of the tests in TAO seem to be happy
+ // without this in SunCC.
this->ready_set_.rd_mask_.sync (this->ready_set_.rd_mask_.max_set ());
this->ready_set_.wr_mask_.sync (this->ready_set_.wr_mask_.max_set ());
this->ready_set_.ex_mask_.sync (this->ready_set_.ex_mask_.max_set ());
+ //# endif /* ! __SUNPRO_CC */
+
}
return this->wait_for_multiple_events (this->ready_set_,
@@ -538,6 +564,9 @@ ACE_TP_Reactor::get_event_for_dispatching (ACE_Time_Value *max_wait_time)
int
ACE_TP_Reactor::get_socket_event_info (ACE_EH_Dispatch_Info &event)
{
+ // Nothing to dispatch yet
+ event.reset ();
+
// Check for dispatch in write, except, read. Only catch one, but if
// one is caught, be sure to clear the handle from each mask in case
// there is more than one mask set for it. This would cause problems
@@ -611,14 +640,18 @@ ACE_TP_Reactor::get_socket_event_info (ACE_EH_Dispatch_Info &event)
return found_io;
}
+
+
// Dispatches a single event handler
int
ACE_TP_Reactor::dispatch_socket_event (ACE_EH_Dispatch_Info &dispatch_info)
{
ACE_TRACE ("ACE_TP_Reactor::dispatch_socket_event");
- ACE_Event_Handler * const event_handler = dispatch_info.event_handler_;
- ACE_EH_PTMF const callback = dispatch_info.callback_;
+ ACE_HANDLE handle = dispatch_info.handle_;
+ ACE_Event_Handler *event_handler = dispatch_info.event_handler_;
+ ACE_Reactor_Mask mask = dispatch_info.mask_;
+ ACE_EH_PTMF callback = dispatch_info.callback_;
// Check for removed handlers.
if (event_handler == 0)
@@ -631,55 +664,19 @@ ACE_TP_Reactor::dispatch_socket_event (ACE_EH_Dispatch_Info &dispatch_info)
// handling other things.
int status = 1;
while (status > 0)
- status = (event_handler->*callback) (dispatch_info.handle_);
-
- // Post process socket event
- return this->post_process_socket_event (dispatch_info, status);
-}
-
-int
-ACE_TP_Reactor::post_process_socket_event (ACE_EH_Dispatch_Info &dispatch_info,
- int status)
-{
- int result = 0;
+ status = (event_handler->*callback) (handle);
- // First check if we really have to post process something, if not, then
- // we don't acquire the token which saves us a lot of time.
- if (status < 0 ||
- (dispatch_info.event_handler_ != this->notify_handler_ &&
- dispatch_info.resume_flag_ ==
- ACE_Event_Handler::ACE_REACTOR_RESUMES_HANDLER))
+ // If negative, remove from Reactor
+ if (status < 0)
{
- // Get the reactor token and with this token acquired remove first the
- // handler and resume it at the same time. This must be atomic, see also
- // bugzilla 2395. When this is not atomic it can be that we resume the
- // handle after it is reused by the OS.
- ACE_TP_Token_Guard guard (this->token_);
-
- result = guard.acquire_token ();
-
- // If the guard is NOT the owner just return the retval
- if (!guard.is_owner ())
- return result;
+ int retval =
+ this->remove_handler (handle, mask);
- if (status < 0)
- {
- result =
- this->remove_handler_i (dispatch_info.handle_, dispatch_info.mask_);
- }
-
- // Resume handler if required.
- if (dispatch_info.event_handler_ != this->notify_handler_ &&
- dispatch_info.resume_flag_ ==
- ACE_Event_Handler::ACE_REACTOR_RESUMES_HANDLER)
- this->resume_i (dispatch_info.handle_);
+ return retval;
}
- // Call remove_reference() if needed.
- if (dispatch_info.reference_counting_required_)
- dispatch_info.event_handler_->remove_reference ();
-
- return result;
+ // assert (status >= 0);
+ return 0;
}
int
@@ -714,7 +711,7 @@ ACE_TP_Reactor::get_notify_handle (void)
{
// Call the notify handler to get a handle on which we would have a
// notify waiting
- ACE_HANDLE const read_handle =
+ ACE_HANDLE read_handle =
this->notify_handler_->notify_handle ();
// Check whether the rd_mask has been set on that handle. If so
@@ -724,9 +721,18 @@ ACE_TP_Reactor::get_notify_handle (void)
{
return read_handle;
}
+ /*if (read_handle != ACE_INVALID_HANDLE)
+ {
+ ACE_Handle_Set_Iterator handle_iter (this->ready_set_.rd_mask_);
+ ACE_HANDLE handle = ACE_INVALID_HANDLE;
+
+ while ((handle = handle_iter ()) == read_handle)
+ {
+ return read_handle;
+ }
+ ACE_UNUSED_ARG (handle);
+ }*/
// None found..
return ACE_INVALID_HANDLE;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TP_Reactor.h b/ace/TP_Reactor.h
index 5c39225c1e7..75a05e93fab 100644
--- a/ace/TP_Reactor.h
+++ b/ace/TP_Reactor.h
@@ -6,20 +6,21 @@
*
* $Id$
*
- * The ACE_TP_Reactor (aka, Thread Pool Reactor) uses the
+ * The <ACE_TP_Reactor> (aka, Thread Pool Reactor) uses the
* Leader/Followers pattern to demultiplex events among a pool of
* threads. When using a thread pool reactor, an application
* pre-spawns a _fixed_ number of threads. When these threads
- * invoke the ACE_TP_Reactor's <handle_events> method, one thread
+ * invoke the <ACE_TP_Reactor>'s <handle_events> method, one thread
* will become the leader and wait for an event. The other
* follower threads will queue up waiting for their turn to become
* the leader. When an event occurs, the leader will pick a
* follower to become the leader and go on to handle the event.
- * The consequence of using ACE_TP_Reactor is the amortization of
+ * The consequence of using <ACE_TP_Reactor> is the amortization of
* the costs used to creating threads. The context switching cost
* will also reduce. More over, the total resources used by
* threads are bounded because there are a fixed number of threads.
*
+ *
* @author Irfan Pyarali <irfan@cs.wustl.edu>
* @author Nanbor Wang <nanbor@cs.wustl.edu>
*/
@@ -38,17 +39,16 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_EH_Dispatch_Info
*
* @brief This structure contains information of the activated event
* handler.
*/
-class ACE_EH_Dispatch_Info
+class ACE_Export ACE_EH_Dispatch_Info
{
public:
+
ACE_EH_Dispatch_Info (void);
void set (ACE_HANDLE handle,
@@ -56,21 +56,20 @@ public:
ACE_Reactor_Mask mask,
ACE_EH_PTMF callback);
- bool dispatch (void) const;
+ void reset (void);
+
+ int dispatch (void) const;
ACE_HANDLE handle_;
ACE_Event_Handler *event_handler_;
ACE_Reactor_Mask mask_;
ACE_EH_PTMF callback_;
- int resume_flag_;
- bool reference_counting_required_;
-private:
- bool dispatch_;
+ int dispatch_;
- // Disallow copying and assignment.
- ACE_EH_Dispatch_Info (const ACE_EH_Dispatch_Info &);
- ACE_EH_Dispatch_Info &operator= (const ACE_EH_Dispatch_Info &);
+private:
+ ACE_UNIMPLEMENTED_FUNC (ACE_EH_Dispatch_Info (const ACE_EH_Dispatch_Info &))
+ ACE_UNIMPLEMENTED_FUNC (ACE_EH_Dispatch_Info &operator= (const ACE_EH_Dispatch_Info &))
};
@@ -85,7 +84,7 @@ private:
* and manages the ownership
*/
-class ACE_TP_Token_Guard
+class ACE_Export ACE_TP_Token_Guard
{
public:
@@ -105,27 +104,19 @@ public:
/// A helper method that grabs the token for us, after which the
/// thread that owns that can do some actual work.
- int acquire_read_token (ACE_Time_Value *max_wait_time = 0);
+ /// @todo Should probably be called acquire_read_token ()
+ int grab_token (ACE_Time_Value *max_wait_time = 0);
/**
* A helper method that grabs the token for us, after which the
* thread that owns that can do some actual work. This differs from
- * acquire_read_token() as it uses acquire () to get the token instead of
+ * grab_token () as it uses acquire () to get the token instead of
* acquire_read ()
*/
int acquire_token (ACE_Time_Value *max_wait_time = 0);
private:
- // Disallow default construction.
- ACE_TP_Token_Guard (void);
-
- // Disallow copying and assignment.
- ACE_TP_Token_Guard (const ACE_TP_Token_Guard &);
- ACE_TP_Token_Guard &operator= (const ACE_TP_Token_Guard &);
-
-private:
-
/// The Select Reactor token.
ACE_Select_Reactor_Token &token_;
@@ -135,6 +126,9 @@ private:
/// vice-versa.
int owner_;
+private:
+
+ ACE_UNIMPLEMENTED_FUNC (ACE_TP_Token_Guard (void))
};
/**
@@ -156,9 +150,7 @@ private:
* that just got activated, releasing the internal lock (so that some
* other thread can start waiting in the event loop) and then
* dispatching the event handler outside the context of the Reactor
- * lock. After the event handler has been dispatched the event handler is
- * resumed again. Don't call remove_handler() from the handle_x methods,
- * instead return -1.
+ * lock.
*
* This Reactor is best suited for situations when the callbacks to
* event handlers can take arbitrarily long and/or a number of threads
@@ -176,24 +168,24 @@ public:
// = Initialization and termination methods.
- /// Initialize ACE_TP_Reactor with the default size.
+ /// Initialize <ACE_TP_Reactor> with the default size.
ACE_TP_Reactor (ACE_Sig_Handler * = 0,
ACE_Timer_Queue * = 0,
int mask_signals = 1,
int s_queue = ACE_Select_Reactor_Token::FIFO);
/**
- * Initialize the ACE_TP_Reactor to manage
- * @a max_number_of_handles. If @a restart is non-0 then the
- * ACE_Reactor's <handle_events> method will be restarted
+ * Initialize the <ACE_TP_Reactor> to manage
+ * <max_number_of_handles>. If <restart> is non-0 then the
+ * <ACE_Reactor>'s <handle_events> method will be restarted
* automatically when <EINTR> occurs. If <signal_handler> or
* <timer_queue> are non-0 they are used as the signal handler and
* timer queue, respectively.
*/
ACE_TP_Reactor (size_t max_number_of_handles,
int restart = 0,
- ACE_Sig_Handler *sh = 0,
- ACE_Timer_Queue *tq = 0,
+ ACE_Sig_Handler * = 0,
+ ACE_Timer_Queue * = 0,
int mask_signals = 1,
int s_queue = ACE_Select_Reactor_Token::FIFO);
@@ -212,7 +204,7 @@ public:
* application wishes to handle events for some fixed amount of
* time.
*
- * Returns the total number of ACE_Event_Handlers that were
+ * Returns the total number of <ACE_Event_Handler>s that were
* dispatched, 0 if the <max_wait_time> elapsed without dispatching
* any handlers, or -1 if something goes wrong.
*/
@@ -220,8 +212,7 @@ public:
virtual int handle_events (ACE_Time_Value &max_wait_time);
- /*
- * @todo The following methods are not supported. Support for
+ /* @todo The following methods are not supported. Support for
* signals is not available in the TP_Reactor. These methods will be
* supported once signal handling is supported.
*/
@@ -277,7 +268,7 @@ public:
/// Does the reactor allow the application to resume the handle on
/// its own ie. can it pass on the control of handle resumption to
/// the application. The TP reactor has can allow applications to
- /// resume handles. So return a positive value.
+ /// resume handles. So return a +ve value.
virtual int resumable_handler (void);
/// Called from handle events
@@ -290,7 +281,7 @@ public:
virtual int owner (ACE_thread_t n_id, ACE_thread_t *o_id = 0);
/// Return the current owner of the thread.
- virtual int owner (ACE_thread_t *t_id);
+ virtual int owner (ACE_thread_t *);
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -306,14 +297,14 @@ protected:
int dispatch_i (ACE_Time_Value *max_wait_time,
ACE_TP_Token_Guard &guard);
- /// Get the event that needs dispatching. It could be either a
+ /// Get the event that needs dispatching.It could be either a
/// signal, timer, notification handlers or return possibly 1 I/O
/// handler for dispatching. In the most common use case, this would
/// return 1 I/O handler for dispatching
int get_event_for_dispatching (ACE_Time_Value *max_wait_time);
/// Method to handle signals
- /// @note It is just busted at this point in time.
+ /// NOTE: It is just busted at this point in time.
int handle_signals (int &event_count,
ACE_TP_Token_Guard &g);
@@ -348,19 +339,15 @@ private:
/// associated with <handle> that a particular event has occurred.
int dispatch_socket_event (ACE_EH_Dispatch_Info &dispatch_info);
- /// Clear the @a handle from the read_set
+ /// Clear the <handle> from the read_set
void clear_handle_read_set (ACE_HANDLE handle);
- int post_process_socket_event (ACE_EH_Dispatch_Info &dispatch_info,int status);
-
private:
/// Deny access since member-wise won't work...
ACE_TP_Reactor (const ACE_TP_Reactor &);
ACE_TP_Reactor &operator = (const ACE_TP_Reactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/TP_Reactor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/TP_Reactor.inl b/ace/TP_Reactor.inl
index b4fa3c258d1..08c17a7e65e 100644
--- a/ace/TP_Reactor.inl
+++ b/ace/TP_Reactor.inl
@@ -1,23 +1,26 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/************************************************************************/
// Methods for ACE_EH_Dispatch_Info
/************************************************************************/
+ACE_INLINE void
+ACE_EH_Dispatch_Info::reset (void)
+{
+ this->dispatch_ = 0;
+
+ this->handle_ = ACE_INVALID_HANDLE;
+ this->event_handler_ = 0;
+ this->mask_ = ACE_Event_Handler::NULL_MASK;
+ this->callback_ = 0;
+}
+
+
ACE_INLINE
-ACE_EH_Dispatch_Info::ACE_EH_Dispatch_Info (void) :
- handle_ (ACE_INVALID_HANDLE),
- event_handler_ (0),
- mask_ (ACE_Event_Handler::NULL_MASK),
- callback_ (0),
- resume_flag_ (ACE_Event_Handler::ACE_REACTOR_RESUMES_HANDLER),
- reference_counting_required_ (false),
- dispatch_ (false)
+ACE_EH_Dispatch_Info::ACE_EH_Dispatch_Info (void)
{
+ this->reset ();
}
ACE_INLINE void
@@ -26,19 +29,15 @@ ACE_EH_Dispatch_Info::set (ACE_HANDLE handle,
ACE_Reactor_Mask mask,
ACE_EH_PTMF callback)
{
- this->dispatch_ = true;
+ this->dispatch_ = 1;
this->handle_ = handle;
this->event_handler_ = event_handler;
this->mask_ = mask;
this->callback_ = callback;
- this->resume_flag_ = event_handler->resume_handler ();
- this->reference_counting_required_ =
- (event_handler_->reference_counting_policy ().value () ==
- ACE_Event_Handler::Reference_Counting_Policy::ENABLED);
}
-ACE_INLINE bool
+ACE_INLINE int
ACE_EH_Dispatch_Info::dispatch (void) const
{
return this->dispatch_;
@@ -110,5 +109,3 @@ ACE_TP_Reactor::clear_dispatch_mask (ACE_HANDLE ,
this->ready_set_.wr_mask_.reset ();
this->ready_set_.ex_mask_.reset ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TSS_Adapter.cpp b/ace/TSS_Adapter.cpp
index ddca0236d4f..cbddcd752a6 100644
--- a/ace/TSS_Adapter.cpp
+++ b/ace/TSS_Adapter.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file TSS_Adapter.cpp
*
@@ -10,9 +11,11 @@
#include "ace/TSS_Adapter.h"
-ACE_RCSID(ace, TSS_Adapter, "$Id$")
+#if !defined (__ACE_INLINE__)
+#include "ace/TSS_Adapter.inl"
+#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, TSS_Adapter, "$Id$")
ACE_TSS_Adapter::ACE_TSS_Adapter (void *object, ACE_THR_DEST f)
: ts_obj_ (object),
@@ -28,18 +31,17 @@ ACE_TSS_Adapter::cleanup (void)
(*this->func_)(this->ts_obj_); // call cleanup routine for ts_obj_
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
extern "C" void
ACE_TSS_C_cleanup (void *object)
{
// ACE_TRACE ("ACE_TSS_C_cleanup");
if (object != 0)
{
- ACE_TSS_Adapter * const tss_adapter = (ACE_TSS_Adapter *) object;
+ ACE_TSS_Adapter *tss_adapter = (ACE_TSS_Adapter *) object;
// Perform cleanup on the real TS object.
tss_adapter->cleanup ();
// Delete the adapter object.
delete tss_adapter;
}
}
+
diff --git a/ace/TSS_Adapter.h b/ace/TSS_Adapter.h
index d4f20979b46..8fd09f2dd26 100644
--- a/ace/TSS_Adapter.h
+++ b/ace/TSS_Adapter.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_TSS_Adapter
*
@@ -43,19 +41,24 @@ public:
/// Initialize the adapter.
ACE_TSS_Adapter (void *object, ACE_THR_DEST f);
+ /// Default dtor.
+ ~ACE_TSS_Adapter (void);
+
/// Perform the cleanup operation.
void cleanup (void);
//private:
/// The real TS object.
- void * const ts_obj_;
+ void *ts_obj_;
/// The real cleanup routine for ts_obj;
ACE_THR_DEST func_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#if defined (__ACE_INLINE__)
+#include "ace/TSS_Adapter.inl"
+#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* ACE_TSS_ADAPTER_H */
diff --git a/ace/TSS_Adapter.inl b/ace/TSS_Adapter.inl
new file mode 100644
index 00000000000..59651ec36f8
--- /dev/null
+++ b/ace/TSS_Adapter.inl
@@ -0,0 +1,7 @@
+/* -*- C++ -*- */
+// $Id$
+
+ACE_INLINE
+ACE_TSS_Adapter::~ACE_TSS_Adapter (void)
+{
+}
diff --git a/ace/TSS_T.cpp b/ace/TSS_T.cpp
index d6dc2599e8d..b2fe5a89ea2 100644
--- a/ace/TSS_T.cpp
+++ b/ace/TSS_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_TSS_T_CPP
-#define ACE_TSS_T_CPP
+#ifndef ACE_TSS_T_C
+#define ACE_TSS_T_C
#include "ace/TSS_T.h"
@@ -9,6 +9,8 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+ACE_RCSID(ace, TSS_T, "$Id$")
+
#if !defined (__ACE_INLINE__)
#include "ace/TSS_T.inl"
#endif /* __ACE_INLINE__ */
@@ -22,8 +24,6 @@
# include "ace/TSS_Adapter.h"
#endif /* ACE_HAS_THR_C_DEST */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_TSS)
template <class TYPE>
@@ -81,7 +81,7 @@ ACE_TSS<TYPE>::dump (void) const
#if defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION))
#if defined (ACE_HAS_THR_C_DEST)
-extern "C" void ACE_TSS_C_cleanup (void *); // defined in Synch.cpp
+extern "C" void ACE_TSS_C_cleanup(void *); // defined in Synch.cpp
#endif /* ACE_HAS_THR_C_DEST */
template <class TYPE> void
@@ -94,7 +94,7 @@ ACE_TSS<TYPE>::cleanup (void *ptr)
template <class TYPE> int
ACE_TSS<TYPE>::ts_init (void) const
{
- // Ensure that we are serialized!
+ // Insure that we are serialized!
ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->keylock_, 0);
// Use the Double-Check pattern to make sure we only create the key
@@ -195,20 +195,18 @@ ACE_TSS<TYPE>::ts_get (void) const
ACE_TSS_Adapter *tss_adapter = 0;
// Get the adapter from thread-specific storage
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- if (ACE_Thread::getspecific (this->key_, &temp) == -1)
+ if (ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter) == -1)
return 0; // This should not happen!
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
// Check to see if this is the first time in for this thread.
if (tss_adapter == 0)
#else
// Get the ts_obj from thread-specific storage. Note that no locks
// are required here...
- void *temp = ts_obj; // Need this temp to keep G++ from complaining.
- if (ACE_Thread::getspecific (this->key_, &temp) == -1)
+ if (ACE_Thread::getspecific (this->key_,
+ (void **) &ts_obj) == -1)
return 0; // This should not happen!
- ts_obj = static_cast <TYPE *> (temp);
// Check to see if this is the first time in for this thread.
if (ts_obj == 0)
@@ -251,7 +249,7 @@ ACE_TSS<TYPE>::ts_get (void) const
#if defined (ACE_HAS_THR_C_DEST)
// Return the underlying ts object.
- return static_cast <TYPE *> (tss_adapter->ts_obj_);
+ return (TYPE *) tss_adapter->ts_obj_;
#else
return ts_obj;
#endif /* ACE_HAS_THR_C_DEST */
@@ -276,25 +274,16 @@ ACE_TSS<TYPE>::ts_object (void) const
ACE_TSS_Adapter *tss_adapter = 0;
// Get the tss adapter from thread-specific storage
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- if (ACE_Thread::getspecific (this->key_, &temp) == -1)
- {
- return 0; // This should not happen!
- }
- else
- {
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- {
- if (tss_adapter != 0)
- // Extract the real TS object.
- ts_obj = static_cast <TYPE *> (tss_adapter->ts_obj_);
- }
- }
+ if (ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter) == -1)
+ return 0; // This should not happen!
+ else if (tss_adapter != 0)
+ // Extract the real TS object.
+ ts_obj = (TYPE *) tss_adapter->ts_obj_;
#else
- void *temp = ts_obj; // Need this temp to keep G++ from complaining.
- if (ACE_Thread::getspecific (this->key_, &temp) == -1)
+ if (ACE_Thread::getspecific (this->key_,
+ (void **) &ts_obj) == -1)
return 0; // This should not happen!
- ts_obj = static_cast <TYPE *> (temp);
#endif /* ACE_HAS_THR_C_DEST */
return ts_obj;
@@ -321,14 +310,13 @@ ACE_TSS<TYPE>::ts_object (TYPE *new_ts_obj)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- if (ACE_Thread::getspecific (this->key_, &temp) == -1)
+ if (ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter) == -1)
return 0; // This should not happen!
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
if (tss_adapter != 0)
{
- ts_obj = static_cast <TYPE *> (tss_adapter->ts_obj_);
+ ts_obj = (TYPE *) tss_adapter->ts_obj_;
delete tss_adapter; // don't need this anymore
}
@@ -344,11 +332,9 @@ ACE_TSS<TYPE>::ts_object (TYPE *new_ts_obj)
return ts_obj; // This should not happen!
}
#else
- void *temp = ts_obj; // Need this temp to keep G++ from complaining.
if (ACE_Thread::getspecific (this->key_,
- &temp) == -1)
+ (void **) &ts_obj) == -1)
return 0; // This should not happen!
- ts_obj = static_cast <TYPE *> (temp);
if (ACE_Thread::setspecific (this->key_,
(void *) new_ts_obj) == -1)
return ts_obj; // This should not happen!
@@ -403,14 +389,12 @@ ACE_TSS_Guard<ACE_LOCK>::release (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *)tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->release ();
@@ -425,14 +409,12 @@ ACE_TSS_Guard<ACE_LOCK>::remove (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->remove ();
@@ -447,14 +429,12 @@ ACE_TSS_Guard<ACE_LOCK>::~ACE_TSS_Guard (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
// Make sure that this pointer is NULL when we shut down...
@@ -506,14 +486,12 @@ ACE_TSS_Guard<ACE_LOCK>::acquire (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->acquire ();
@@ -528,14 +506,12 @@ ACE_TSS_Guard<ACE_LOCK>::tryacquire (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->tryacquire ();
@@ -575,14 +551,12 @@ ACE_TSS_Write_Guard<ACE_LOCK>::acquire (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Write_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Write_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->acquire_write ();
@@ -597,14 +571,12 @@ ACE_TSS_Write_Guard<ACE_LOCK>::tryacquire (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Write_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, temp);
- guard = static_cast <ACE_Write_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->tryacquire_write ();
@@ -667,14 +639,12 @@ ACE_TSS_Read_Guard<ACE_LOCK>::acquire (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Read_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Read_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->acquire_read ();
@@ -689,14 +659,12 @@ ACE_TSS_Read_Guard<ACE_LOCK>::tryacquire (void)
#if defined (ACE_HAS_THR_C_DEST)
ACE_TSS_Adapter *tss_adapter = 0;
- void *temp = tss_adapter; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- tss_adapter = static_cast <ACE_TSS_Adapter *> (temp);
- guard = static_cast <ACE_Read_Guard<ACE_LOCK> *> (tss_adapter->ts_obj_);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &tss_adapter);
+ guard = (ACE_Guard<ACE_LOCK> *) tss_adapter->ts_obj_;
#else
- void *temp = guard; // Need this temp to keep G++ from complaining.
- ACE_Thread::getspecific (this->key_, &temp);
- guard = static_cast <ACE_Read_Guard<ACE_LOCK> *> (temp);
+ ACE_Thread::getspecific (this->key_,
+ (void **) &guard);
#endif /* ACE_HAS_THR_C_DEST */
return guard->tryacquire_read ();
@@ -729,6 +697,4 @@ ACE_TSS_Read_Guard<ACE_LOCK>::dump (void) const
#endif /* defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION)) */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TSS_T_CPP */
+#endif /* ACE_TSS_T_C */
diff --git a/ace/TSS_T.h b/ace/TSS_T.h
index 6c8c7b99847..537a89cc15a 100644
--- a/ace/TSS_T.h
+++ b/ace/TSS_T.h
@@ -37,8 +37,6 @@
#include "ace/Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_TSS
*
@@ -51,7 +49,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* shield applications from the details of accessing
* thread-specific storage.
*
- * @note For maximal portability, <TYPE> cannot be a built-in type,
+ * NOTE: For maximal portability, <TYPE> cannot be a built-in type,
* but instead should be a user-defined class (some compilers will
* allow a built-in type, others won't). See template class
* ACE_TSS_Type_Adapter, below, for adapting built-in types to work
@@ -173,8 +171,6 @@ private:
TYPE value_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/TSS_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/TSS_T.inl b/ace/TSS_T.inl
index d4378089137..a0bdccba905 100644
--- a/ace/TSS_T.inl
+++ b/ace/TSS_T.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if !(defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION)))
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE> ACE_INLINE
ACE_TSS<TYPE>::ACE_TSS (TYPE *type)
: type_ (type)
@@ -37,6 +34,4 @@ ACE_TSS<TYPE>::ts_get (void) const
return this->type_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ! (defined (ACE_HAS_THREADS) && (defined (ACE_HAS_THREAD_SPECIFIC_STORAGE) || defined (ACE_HAS_TSS_EMULATION))) */
diff --git a/ace/TTY_IO.cpp b/ace/TTY_IO.cpp
index 9119e0caca0..128a07d6ac2 100644
--- a/ace/TTY_IO.cpp
+++ b/ace/TTY_IO.cpp
@@ -1,33 +1,26 @@
// $Id$
-#include "ace/TTY_IO.h"
-#include "ace/OS_NS_errno.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_strings.h"
-
+#include "ace/config-lite.h"
#if defined (ACE_HAS_TERMIOS)
# include "ace/os_include/os_termios.h"
#elif defined (ACE_HAS_TERMIO)
# include <termio.h>
#endif
+#include "ace/TTY_IO.h"
+#include "ace/OS_NS_errno.h"
+#include "ace/OS_NS_string.h"
+#include "ace/OS_NS_strings.h"
-ACE_RCSID (ace,
- TTY_IO,
- "$Id$")
-
-#if defined (ACE_HAS_TERMIOS) || defined (ACE_HAS_TERMIO) || defined (ACE_WIN32)
-namespace
-{
- const char ACE_TTY_IO_ODD[] = "odd";
- const char ACE_TTY_IO_EVEN[] = "even";
+static const char* const ACE_TTY_IO_ODD = "odd";
+static const char* const ACE_TTY_IO_EVEN = "even";
#if defined (ACE_WIN32)
- const char ACE_TTY_IO_MARK[] = "mark";
- const char ACE_TTY_IO_SPACE[] = "space";
+static const char* const ACE_TTY_IO_MARK = "mark";
+static const char* const ACE_TTY_IO_SPACE = "space";
#endif /* ACE_WIN32 */
-}
-#endif
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ TTY_IO,
+ "$Id$")
ACE_TTY_IO::Serial_Params::Serial_Params (void)
{
@@ -327,8 +320,7 @@ int ACE_TTY_IO::control (Control_Mode cmd, Serial_Params *arg) const
devpar.c_cc[VMIN] = static_cast<unsigned char>(arg->readmincharacters);
}
-#if defined (TIOCMGET) && !defined (__Lynx__)
- // This sets serial port under LynxOS to non-functional state
+#if defined (TIOCMGET)
int status;
this->ACE_IO_SAP::control (TIOCMGET, &status);
@@ -463,9 +455,9 @@ int ACE_TTY_IO::control (Control_Mode cmd, Serial_Params *arg) const
// Always set limits unless set to negative to use default.
if (arg->xonlim >= 0)
- dcb.XonLim = static_cast<WORD>(arg->xonlim);
+ dcb.XonLim = arg->xonlim;
if (arg->xofflim >= 0)
- dcb.XoffLim = static_cast<WORD>(arg->xofflim);
+ dcb.XoffLim = arg->xofflim;
dcb.fAbortOnError = FALSE;
dcb.fErrorChar = FALSE;
@@ -534,5 +526,3 @@ ACE_TTY_IO::operator ACE_DEV_IO &()
return static_cast<ACE_DEV_IO &>(*this);
}
#endif /* ACE_NEEDS_DEV_IO_CONVERSION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TTY_IO.h b/ace/TTY_IO.h
index 708da7fe31c..60f6dc6ba1e 100644
--- a/ace/TTY_IO.h
+++ b/ace/TTY_IO.h
@@ -19,8 +19,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_TTY_IO
*
@@ -91,8 +89,8 @@ public:
bool rcvenb;
/** Controls whether DSR is disabled or enabled (Win32). */
bool dsrenb;
- /** Controls whether DTR is disabled or enabled. */
- bool dtrdisable;
+ /** Controls whether DTR is disabled or enabled (Win32). */
+ int dtrdisable;
/** Data bits. Valid values 5, 6, 7 and 8 data bits.
Additionally Win32 supports 4 data bits. */
unsigned char databits;
@@ -109,6 +107,4 @@ public:
#endif /* ACE_NEEDS_DEV_IO_CONVERSION */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_TTY_IO_H */
diff --git a/ace/Task.cpp b/ace/Task.cpp
index f92df9a2005..293bbb187f0 100644
--- a/ace/Task.cpp
+++ b/ace/Task.cpp
@@ -13,8 +13,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Task_Base::ACE_Task_Base (ACE_Thread_Manager *thr_man)
: thr_count_ (0),
thr_mgr_ (thr_man),
@@ -274,5 +272,3 @@ ACE_Task_Base::svc_run (void *args)
#endif
return status;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Task.h b/ace/Task.h
index 040a15dcbba..9460673d06e 100644
--- a/ace/Task.h
+++ b/ace/Task.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,8 +22,6 @@
#include "ace/Thread_Manager.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Task_Flags
*
@@ -34,8 +32,9 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* code defined here, so we don't have to worry about multiple
* definitions.
*/
-namespace ACE_Task_Flags
+class ACE_Export ACE_Task_Flags
{
+public:
enum
{
/// Identifies a Task as being the "reader" in a Module.
@@ -51,7 +50,7 @@ namespace ACE_Task_Flags
/// Flush both queues
ACE_FLUSHRW = 030
};
-}
+};
/**
* @class ACE_Task_Base
@@ -278,8 +277,6 @@ private:
ACE_Task_Base (const ACE_Task_Base &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Task.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Task.inl b/ace/Task.inl
index 5ef5974130f..c903afffbc2 100644
--- a/ace/Task.inl
+++ b/ace/Task.inl
@@ -2,7 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE ACE_Thread_Manager *
ACE_Task_Base::thr_mgr (void) const
@@ -23,7 +22,7 @@ ACE_INLINE size_t
ACE_Task_Base::thr_count (void) const
{
ACE_TRACE ("ACE_Task_Base::thr_count");
- ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, const_cast <ACE_Thread_Mutex&>(this->lock_), 0));
+ ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, 0));
return this->thr_count_;
}
@@ -58,7 +57,7 @@ ACE_INLINE int
ACE_Task_Base::grp_id (void) const
{
ACE_TRACE ("ACE_Task_Base::grp_id");
- ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, const_cast <ACE_Thread_Mutex&>(this->lock_), -1));
+ ACE_MT (ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, (ACE_Thread_Mutex &) this->lock_, -1));
return this->grp_id_;
}
@@ -77,4 +76,3 @@ ACE_Task_Base::grp_id (int identifier)
this->thr_mgr ()->set_grp (this, identifier);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Task_Ex_T.cpp b/ace/Task_Ex_T.cpp
index 0c5871657dd..a265355c22e 100644
--- a/ace/Task_Ex_T.cpp
+++ b/ace/Task_Ex_T.cpp
@@ -1,7 +1,8 @@
+// Task_Ex_T.cpp
// $Id$
-#ifndef ACE_TASK_EX_T_CPP
-#define ACE_TASK_EX_T_CPP
+#ifndef ACE_TASK_EX_T_C
+#define ACE_TASK_EX_T_C
#include "ace/Task_Ex_T.h"
@@ -16,8 +17,7 @@
#include "ace/Task_Ex_T.inl"
#endif /* __ACE_INLINE__ */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Task_Ex_T, "$Id$")
template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> void
ACE_Task_Ex<ACE_SYNCH_USE, ACE_MESSAGE_TYPE>::dump (void) const
@@ -109,6 +109,4 @@ ACE_Task_Ex<ACE_SYNCH_USE, ACE_MESSAGE_TYPE>::module (void) const
return this->mod_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TASK_EX_T_CPP */
+#endif /* ACE_TASK_EX_T_C */
diff --git a/ace/Task_Ex_T.h b/ace/Task_Ex_T.h
index d958bd2d5e6..9777a90ff03 100644
--- a/ace/Task_Ex_T.h
+++ b/ace/Task_Ex_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "ace/Synch_Traits.h"
#include "ace/Task.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls...
template <ACE_SYNCH_DECL> class ACE_Module;
@@ -152,13 +150,7 @@ public: // Should be protected:
* Note that if this conflicts with the C++ iostream <flush>
* function, just rewrite the iostream function as ::<flush>.
*/
-
-#if defined (ACE_LYNXOS_MAJOR) && (ACE_LYNXOS_MAJOR < 4)
- // Make LynxOS 3.x buggy compiler happy
- int flush (u_long flag = ACE_FLUSHALL);
-#else
int flush (u_long flag = ACE_Task_Flags::ACE_FLUSHALL);
-#endif
// = Special routines corresponding to certain message types.
@@ -190,8 +182,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (ACE_Task_Ex (const ACE_Task_Ex<ACE_SYNCH_USE, ACE_MESSAGE_TYPE> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Task_Ex_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Task_Ex_T.inl b/ace/Task_Ex_T.inl
index b49f4bf53f1..fb68b7f874e 100644
--- a/ace/Task_Ex_T.inl
+++ b/ace/Task_Ex_T.inl
@@ -1,14 +1,13 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/os_include/os_assert.h"
+// Task_Ex_T.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/os_include/os_assert.h"
template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> ACE_INLINE void
-ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd,
- size_t wm_size)
+ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd,
+ size_t wm_size)
{
ACE_TRACE ("ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::water_marks");
if (cmd == ACE_IO_Cntl_Msg::SET_LWM)
@@ -17,14 +16,14 @@ ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::water_marks (ACE_IO_Cntl_Msg::ACE_I
this->msg_queue_->high_water_mark (wm_size);
}
-template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> ACE_INLINE int
+template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> ACE_INLINE int
ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::getq (ACE_MESSAGE_TYPE *&mb, ACE_Time_Value *tv)
{
ACE_TRACE ("ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::getq");
return this->msg_queue_->dequeue_head (mb, tv);
}
-template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> ACE_INLINE int
+template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> ACE_INLINE int
ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::can_put (ACE_MESSAGE_TYPE *)
{
ACE_TRACE ("ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::can_put");
@@ -101,12 +100,10 @@ ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::next (ACE_Task<ACE_SYNCH_USE> *q)
// Transfer msg to the next ACE_Task_Ex.
template <ACE_SYNCH_DECL, class ACE_MESSAGE_TYPE> ACE_INLINE int
-ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::put_next (
- ACE_MESSAGE_TYPE * /* msg */,
- ACE_Time_Value * /* tv */)
+ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::put_next (ACE_MESSAGE_TYPE *msg, ACE_Time_Value *tv)
{
ACE_TRACE ("ACE_Task_Ex<ACE_SYNCH_USE,ACE_MESSAGE_TYPE>::put_next");
+ ACE_UNUSED_ARG (msg);
+ ACE_UNUSED_ARG (tv);
return -1; // this->next_ == 0 ? -1 : this->next_->put (msg, tv);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Task_T.cpp b/ace/Task_T.cpp
index f0c97e74193..e35297792cb 100644
--- a/ace/Task_T.cpp
+++ b/ace/Task_T.cpp
@@ -1,7 +1,8 @@
+// Task.cpp
// $Id$
-#ifndef ACE_TASK_T_CPP
-#define ACE_TASK_T_CPP
+#ifndef ACE_TASK_T_C
+#define ACE_TASK_T_C
#include "ace/Task_T.h"
@@ -16,7 +17,7 @@
#include "ace/Task_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Task_T, "$Id$")
template <ACE_SYNCH_DECL> void
ACE_Task<ACE_SYNCH_USE>::dump (void) const
@@ -103,6 +104,4 @@ ACE_Task<ACE_SYNCH_USE>::module (void) const
return this->mod_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TASK_T_CPP */
+#endif /* ACE_TASK_T_C */
diff --git a/ace/Task_T.h b/ace/Task_T.h
index 68e54562612..52c0f6b2218 100644
--- a/ace/Task_T.h
+++ b/ace/Task_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,15 +23,9 @@
#include "ace/Synch_Traits.h"
#include "ace/Task.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decls...
template <ACE_SYNCH_DECL> class ACE_Module;
-#if defined (ACE_LYNXOS_MAJOR) && (ACE_LYNXOS_MAJOR < 4)
- using namespace ACE_Task_Flags;
-#endif
-
/**
* @class ACE_Task
*
@@ -136,13 +130,7 @@ public: // Should be protected:
* Note that if this conflicts with the C++ iostream <flush>
* function, just rewrite the iostream function as ::<flush>.
*/
-
-#if defined (ACE_LYNXOS_MAJOR) && (ACE_LYNXOS_MAJOR < 4)
- // Make LynxOS 3.x buggy compiler happy
- int flush (u_long flag = ACE_FLUSHALL);
-#else
int flush (u_long flag = ACE_Task_Flags::ACE_FLUSHALL);
-#endif
// = Special routines corresponding to certain message types.
@@ -179,8 +167,6 @@ template class ACE_Export ACE_Task<ACE_MT_SYNCH>;
template class ACE_Export ACE_Task<ACE_NULL_SYNCH>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_EXPORT */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Task_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Task_T.inl b/ace/Task_T.inl
index 77d7c0d789e..e4694062fc4 100644
--- a/ace/Task_T.inl
+++ b/ace/Task_T.inl
@@ -1,14 +1,13 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/os_include/os_assert.h"
+// Task_T.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/os_include/os_assert.h"
template <ACE_SYNCH_DECL> ACE_INLINE void
-ACE_Task<ACE_SYNCH_USE>::water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd,
- size_t wm_size)
+ACE_Task<ACE_SYNCH_USE>::water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd,
+ size_t wm_size)
{
ACE_TRACE ("ACE_Task<ACE_SYNCH_USE>::water_marks");
if (cmd == ACE_IO_Cntl_Msg::SET_LWM)
@@ -17,14 +16,14 @@ ACE_Task<ACE_SYNCH_USE>::water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds cmd,
this->msg_queue_->high_water_mark (wm_size);
}
-template <ACE_SYNCH_DECL> ACE_INLINE int
+template <ACE_SYNCH_DECL> ACE_INLINE int
ACE_Task<ACE_SYNCH_USE>::getq (ACE_Message_Block *&mb, ACE_Time_Value *tv)
{
ACE_TRACE ("ACE_Task<ACE_SYNCH_USE>::getq");
return this->msg_queue_->dequeue_head (mb, tv);
}
-template <ACE_SYNCH_DECL> ACE_INLINE int
+template <ACE_SYNCH_DECL> ACE_INLINE int
ACE_Task<ACE_SYNCH_USE>::can_put (ACE_Message_Block *)
{
ACE_TRACE ("ACE_Task<ACE_SYNCH_USE>::can_put");
@@ -104,5 +103,3 @@ ACE_Task<ACE_SYNCH_USE>::put_next (ACE_Message_Block *msg, ACE_Time_Value *tv)
ACE_TRACE ("ACE_Task<ACE_SYNCH_USE>::put_next");
return this->next_ == 0 ? -1 : this->next_->put (msg, tv);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Template_Instantiations.cpp b/ace/Template_Instantiations.cpp
index 3df1a0062ec..9542848b4f5 100644
--- a/ace/Template_Instantiations.cpp
+++ b/ace/Template_Instantiations.cpp
@@ -35,8 +35,6 @@
#error ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_FILE may not be used with ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION or ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA
#endif /* defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// D E P T H = 0
// Templates with nesting depth 0 (no dependencies on
// other templates), ordered by number of template arguments
@@ -352,8 +350,6 @@ template class ACE_Timer_Queue_T<ACE_Event_Handler*, ACE_Timer_Hash_Upcall<ACE_E
template class ACE_Timer_Queue_Iterator_T<ACE_Event_Handler*, ACE_Timer_Hash_Upcall<ACE_Event_Handler*, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>, ACE_Null_Mutex>, ACE_Null_Mutex>;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#elif defined (__HP_aCC)
// Make aC++ stop complaining about an empty translation unit
static int shut_up_aCC = 0;
diff --git a/ace/Test_and_Set.cpp b/ace/Test_and_Set.cpp
index ea420bbe508..5a9cbdb0bfe 100644
--- a/ace/Test_and_Set.cpp
+++ b/ace/Test_and_Set.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_TEST_AND_SET_CPP
-#define ACE_TEST_AND_SET_CPP
+#ifndef ACE_TEST_AND_SET_C
+#define ACE_TEST_AND_SET_C
#include "ace/Test_and_Set.h"
#include "ace/Guard_T.h"
@@ -10,7 +10,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Test_and_Set, "$Id$")
template <class ACE_LOCK, class TYPE>
ACE_Test_and_Set<ACE_LOCK, TYPE>::ACE_Test_and_Set (TYPE initial_value)
@@ -46,6 +46,4 @@ ACE_Test_and_Set<ACE_LOCK, TYPE>::handle_signal (int, siginfo_t *, ucontext_t *)
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TEST_AND_SET_CPP */
+#endif /* ACE_TEST_AND_SET_C */
diff --git a/ace/Test_and_Set.h b/ace/Test_and_Set.h
index d72c3d474b0..37e810f1b4e 100644
--- a/ace/Test_and_Set.h
+++ b/ace/Test_and_Set.h
@@ -1,10 +1,11 @@
-// -*- C++ -*-
//=============================================================================
/**
* @file Test_and_Set.h
*
* $Id$
+ *
+ * @author Priyanka Gontla <pgontla@ece.uci.edu>
*/
//=============================================================================
@@ -19,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Test_and_Set
*
@@ -29,7 +28,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
*
* This class keeps track of the status of <is_set_>, which can
* be set based on various events (such as receipt of a
- * signal). This class is derived from ACE_Event_Handler so
+ * signal). This class is derived from <ACE_Event_Handler> so
* that it can be "signaled" by a Reactor when a signal occurs.
* We assume that <TYPE> is a data type that can be assigned the
* value 0 or 1.
@@ -61,8 +60,6 @@ private:
ACE_LOCK lock_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Test_and_Set.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Thread.cpp b/ace/Thread.cpp
index a920e131be9..80ce71f3d7e 100644
--- a/ace/Thread.cpp
+++ b/ace/Thread.cpp
@@ -1,18 +1,17 @@
+// Thread.cpp
// $Id$
#include "ace/Thread.h"
-ACE_RCSID(ace,
- Thread,
- "$Id$")
-
#if !defined (__ACE_INLINE__)
#include "ace/Thread.inl"
#endif /* !defined (__ACE_INLINE__) */
-#if defined (ACE_HAS_THREADS)
+ACE_RCSID(ace,
+ Thread,
+ "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_THREADS)
size_t
ACE_Thread::spawn_n (size_t n,
@@ -90,6 +89,4 @@ ACE_Thread::spawn_n (ACE_thread_t thread_ids[],
return i;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/Thread.h b/ace/Thread.h
index ba1b9d64a57..05a81548d97 100644
--- a/ace/Thread.h
+++ b/ace/Thread.h
@@ -24,8 +24,6 @@
#include "ace/OS_NS_Thread.h"
#include "ace/Thread_Adapter.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
struct cancel_state
{
/// e.g., PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE,
@@ -267,8 +265,6 @@ private:
ACE_Thread (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Thread.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Thread.inl b/ace/Thread.inl
index ba635c6b2f0..0091d8eec3a 100644
--- a/ace/Thread.inl
+++ b/ace/Thread.inl
@@ -1,10 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/OS_NS_string.h"
+// Thread.inl
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/OS_NS_string.h"
// Allocates a <keyp> that is used to identify data that is specific
// to each thread in the process. The key is global to all threads in
@@ -280,5 +279,3 @@ ACE_Thread::setprio (ACE_hthread_t ht_id, int priority, int policy)
ACE_TRACE ("ACE_Thread::setprio");
return ACE_OS::thr_setprio (ht_id, priority, policy);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Adapter.cpp b/ace/Thread_Adapter.cpp
index d969e3e9d0d..8b1abafa302 100644
--- a/ace/Thread_Adapter.cpp
+++ b/ace/Thread_Adapter.cpp
@@ -14,8 +14,6 @@ ACE_RCSID (ace,
# include "ace/Thread_Adapter.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Thread_Adapter::ACE_Thread_Adapter (ACE_THR_FUNC user_func,
void *arg,
ACE_THR_C_FUNC entry_point,
@@ -247,5 +245,3 @@ ACE_Thread_Adapter::invoke_i (void)
return status;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Adapter.h b/ace/Thread_Adapter.h
index 046d21b238f..78dfa4b96e4 100644
--- a/ace/Thread_Adapter.h
+++ b/ace/Thread_Adapter.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -22,8 +21,6 @@
#include "ace/Base_Thread_Adapter.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_Thread_Manager;
class ACE_Thread_Descriptor;
@@ -49,7 +46,7 @@ public:
/// Constructor.
ACE_Thread_Adapter (ACE_THR_FUNC user_func,
void *arg,
- ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME,
+ ACE_THR_C_FUNC entry_point = (ACE_THR_C_FUNC) ace_thread_adapter,
ACE_Thread_Manager *thr_mgr = 0,
ACE_Thread_Descriptor *td = 0
# if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
@@ -68,26 +65,23 @@ public:
/// Accessor for the optional <Thread_Manager>.
ACE_Thread_Manager *thr_mgr (void);
-protected:
-
+private:
/// Ensure that this object must be allocated on the heap.
~ACE_Thread_Adapter (void);
-private:
-
/// Called by invoke, mainly here to separate the SEH stuff because
/// SEH on Win32 doesn't compile with local vars with destructors.
virtual ACE_THR_FUNC_RETURN invoke_i (void);
private:
-
/// Optional thread manager.
ACE_Thread_Manager *thr_mgr_;
+ /// Friend declaration to avoid compiler warning: only defines a private
+ /// destructor and has no friends.
+ friend class ACE_Thread_Adapter_Has_Private_Destructor;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/Thread_Adapter.inl b/ace/Thread_Adapter.inl
index 4f1fa0fce49..433023aad93 100644
--- a/ace/Thread_Adapter.inl
+++ b/ace/Thread_Adapter.inl
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_Thread_Manager *
ACE_Thread_Adapter::thr_mgr (void)
{
return this->thr_mgr_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Control.cpp b/ace/Thread_Control.cpp
index 5198fad391d..5415e74b687 100644
--- a/ace/Thread_Control.cpp
+++ b/ace/Thread_Control.cpp
@@ -18,8 +18,6 @@ ACE_RCSID(ace, Thread_Control, "$Id$")
# include "ace/Thread_Control.inl"
#endif /* ACE_HAS_INLINED_OS_CALLS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Thread_Control::dump (void) const
{
@@ -92,5 +90,3 @@ ACE_Thread_Control::exit (ACE_THR_FUNC_RETURN exit_status, int do_thr_exit)
return 0;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Control.h b/ace/Thread_Control.h
index 6989d77daad..fa2bc559c8d 100644
--- a/ace/Thread_Control.h
+++ b/ace/Thread_Control.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -21,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Thread_Manager;
/**
@@ -88,8 +85,6 @@ private:
ACE_THR_FUNC_RETURN status_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE
diff --git a/ace/Thread_Control.inl b/ace/Thread_Control.inl
index 7b96cb369f8..0c2ab504112 100644
--- a/ace/Thread_Control.inl
+++ b/ace/Thread_Control.inl
@@ -1,9 +1,6 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Set the exit status.
ACE_INLINE ACE_THR_FUNC_RETURN
@@ -43,4 +40,3 @@ ACE_Thread_Control::thr_mgr (ACE_Thread_Manager *tm)
return o_tm;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Exit.cpp b/ace/Thread_Exit.cpp
index 4a9a7d0c8c3..160c1e0429c 100644
--- a/ace/Thread_Exit.cpp
+++ b/ace/Thread_Exit.cpp
@@ -7,8 +7,6 @@
ACE_RCSID(ace, Thread_Exit, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
u_int ACE_Thread_Exit::is_constructed_ = 0;
void
@@ -131,5 +129,3 @@ ACE_Thread_Exit_Maybe::instance (void) const
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* ACE_HAS_THREADS && (ACE_HAS_THREAD_SPECIFIC_STORAGE || ACE_HAS_TSS_EMULATION) */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Exit.h b/ace/Thread_Exit.h
index fc828c5aa03..e183512e5a5 100644
--- a/ace/Thread_Exit.h
+++ b/ace/Thread_Exit.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
//=============================================================================
/**
@@ -23,8 +22,6 @@
#include "ace/Thread_Control.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Thread_Exit
*
@@ -105,7 +102,5 @@ private:
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_THREAD_EXIT_H */
diff --git a/ace/Thread_Hook.cpp b/ace/Thread_Hook.cpp
index e69eb0a482c..e866a3626e5 100644
--- a/ace/Thread_Hook.cpp
+++ b/ace/Thread_Hook.cpp
@@ -5,8 +5,6 @@
ACE_RCSID(ace, Thread_Hook, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_Thread_Hook::~ACE_Thread_Hook ()
{
}
@@ -29,5 +27,3 @@ ACE_Thread_Hook::thread_hook (void)
{
return ACE_OS_Object_Manager::thread_hook ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Hook.h b/ace/Thread_Hook.h
index a6748d25061..c8aa941d669 100644
--- a/ace/Thread_Hook.h
+++ b/ace/Thread_Hook.h
@@ -23,8 +23,6 @@
#include "ace/ACE_export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Thread_Hook
*
@@ -59,7 +57,5 @@ public:
static ACE_Thread_Hook *thread_hook (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_THREAD_HOOK_H */
diff --git a/ace/Thread_Manager.cpp b/ace/Thread_Manager.cpp
index c0b86bef841..ffd9950c38a 100644
--- a/ace/Thread_Manager.cpp
+++ b/ace/Thread_Manager.cpp
@@ -18,8 +18,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if !defined(ACE_USE_ONE_SHOT_AT_THREAD_EXIT)
ACE_At_Thread_Exit::~ACE_At_Thread_Exit (void)
@@ -588,7 +586,7 @@ ACE_Thread_Manager::spawn_i (ACE_THR_FUNC func,
ACE_NEW_RETURN (thread_args,
ACE_Thread_Adapter (func,
args,
- (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME,
+ (ACE_THR_C_FUNC) ace_thread_adapter,
this,
new_thr_desc.get (),
ACE_OS_Object_Manager::seh_except_selector(),
@@ -598,7 +596,7 @@ ACE_Thread_Manager::spawn_i (ACE_THR_FUNC func,
ACE_NEW_RETURN (thread_args,
ACE_Thread_Adapter (func,
args,
- (ACE_THR_C_FUNC) ACE_THREAD_ADAPTER_NAME,
+ (ACE_THR_C_FUNC) ace_thread_adapter,
this,
new_thr_desc.get ()),
-1);
@@ -2375,5 +2373,3 @@ template class ACE_Locked_Free_List<ACE_Thread_Descriptor, ACE_DEFAULT_THREAD_MA
# pragma instantiate ACE_Free_List<ACE_Thread_Descriptor>
# pragma instantiate ACE_Locked_Free_List<ACE_Thread_Descriptor, ACE_DEFAULT_THREAD_MANAGER_LOCK>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h
index 1e08642c58b..0b55ce84978 100644
--- a/ace/Thread_Manager.h
+++ b/ace/Thread_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -74,8 +74,6 @@
# define ACE_DEFAULT_THREAD_MANAGER_LOCK ACE_SYNCH_MUTEX
#endif /* ACE_DEFAULT_THREAD_MANAGER_LOCK */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_Task_Base;
class ACE_Thread_Manager;
@@ -1137,8 +1135,6 @@ private:
typedef ACE_Singleton<ACE_Thread_Manager, ACE_SYNCH_MUTEX> ACE_THREAD_MANAGER_SINGLETON;
#endif /* defined (ACE_THREAD_MANAGER_LACKS_STATICS) */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Thread_Manager.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Thread_Manager.inl b/ace/Thread_Manager.inl
index 471c98e1b62..cac2d176761 100644
--- a/ace/Thread_Manager.inl
+++ b/ace/Thread_Manager.inl
@@ -2,7 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
#if !defined(ACE_USE_ONE_SHOT_AT_THREAD_EXIT)
ACE_INLINE
@@ -316,5 +315,3 @@ ACE_Thread_Manager::count_threads (void) const
{
return this->thr_list_.size ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Mutex.cpp b/ace/Thread_Mutex.cpp
index 061cce2684e..8a0af97ce10 100644
--- a/ace/Thread_Mutex.cpp
+++ b/ace/Thread_Mutex.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file Thread_Mutex.cpp
*
@@ -22,8 +23,6 @@
ACE_RCSID(ace, Thread_Mutex, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Thread_Mutex_Guard)
#if defined (ACE_USES_OBSOLETE_GUARD_CLASSES)
@@ -87,6 +86,4 @@ template class ACE_Malloc_Lock_Adapter_T<ACE_Thread_Mutex>;
#pragma instantiate ACE_Malloc_Lock_Adapter_T<ACE_Thread_Mutex>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/Thread_Mutex.h b/ace/Thread_Mutex.h
index 5b1877fb82c..2c7f32bf7f5 100644
--- a/ace/Thread_Mutex.h
+++ b/ace/Thread_Mutex.h
@@ -30,23 +30,21 @@
#include "ace/ACE_export.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class ACE_Thread_Mutex
- *
- * @brief ACE_Thread_Mutex wrapper (only valid for threads in the same
- * process).
- *
- * This implementation is optimized for locking threads that are
- * in the same process. It maps to <CRITICAL_SECTION>s on NT
- * and <ACE_mutex_t> with <type> set to <USYNC_THREAD> on UNIX.
- * ACE_Thread_Mutex is recursive on some platforms (like
- * Win32). However, on most platforms (like Solaris) it is not
- * recursive. To be totally safe and portable, developers
- * should use ACE_Recursive_Thread_Mutex when they need a
- * recursive mutex.
- */
+ /**
+ * @class ACE_Thread_Mutex
+ *
+ * @brief ACE_Thread_Mutex wrapper (only valid for threads in the same
+ * process).
+ *
+ * This implementation is optimized for locking threads that are
+ * in the same process. It maps to <CRITICAL_SECTION>s on NT
+ * and <ACE_mutex_t> with <type> set to <USYNC_THREAD> on UNIX.
+ * ACE_Thread_Mutex is recursive on some platforms (like
+ * Win32). However, on most platforms (like Solaris) it is not
+ * recursive. To be totally safe and portable, developers
+ * should use <ACE_Recursive_Thread_Mutex> when they need a
+ * recursive mutex.
+ */
class ACE_Export ACE_Thread_Mutex
{
friend class ACE_Condition_Thread_Mutex;
@@ -69,10 +67,10 @@ public:
int acquire (void);
/**
- * Block the thread until we acquire the mutex or until @a tv times
+ * Block the thread until we acquire the mutex or until <tv> times
* out, in which case -1 is returned with <errno> == <ETIME>. Note
- * that @a tv is assumed to be in "absolute" rather than "relative"
- * time. The value of @a tv is updated upon return to show the
+ * that <tv> is assumed to be in "absolute" rather than "relative"
+ * time. The value of <tv> is updated upon return to show the
* actual (absolute) acquisition time.
*/
int acquire (ACE_Time_Value &tv);
@@ -227,8 +225,6 @@ private:
};
#endif /* ACE_USES_OBSOLETE_GUARD_CLASSES */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Thread_Mutex.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Thread_Mutex.inl b/ace/Thread_Mutex.inl
index 7658522b38f..f1031aafa48 100644
--- a/ace/Thread_Mutex.inl
+++ b/ace/Thread_Mutex.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_thread_mutex_t &
ACE_Thread_Mutex::lock (void) const
{
@@ -168,5 +165,3 @@ ACE_Thread_Mutex_Guard::remove (void)
return this->release ();
}
#endif /* ACE_USES_OBSOLETE_GUARD_CLASSES */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Thread_Semaphore.cpp b/ace/Thread_Semaphore.cpp
index 741c7c5ec99..8c56a7e1c31 100644
--- a/ace/Thread_Semaphore.cpp
+++ b/ace/Thread_Semaphore.cpp
@@ -1,3 +1,4 @@
+/* -*- C++ -*- */
/**
* @file Thread_Semaphore.cpp
*
@@ -21,8 +22,6 @@
ACE_RCSID(ace, Thread_Semaphore, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Thread_Semaphore::dump (void) const
{
@@ -57,6 +56,4 @@ ACE_Malloc_Lock_Adapter_T<ACE_Thread_Semaphore>::operator () (const ACE_TCHAR *n
return p;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/Thread_Semaphore.h b/ace/Thread_Semaphore.h
index 096dce3e93c..c99a60d3575 100644
--- a/ace/Thread_Semaphore.h
+++ b/ace/Thread_Semaphore.h
@@ -16,7 +16,12 @@
#define ACE_THREAD_SEMAPHORE_H
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_THREADS_BUILD_DLL
+# include "ace/ACE_Threads_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Threads_Export ACE_Export
+#endif /* ACE_THREADS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,15 +34,13 @@
#include "ace/Semaphore.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Thread_Semaphore
*
* @brief Wrapper for Dijkstra style general semaphores that work
* only within one process.
*/
-class ACE_Export ACE_Thread_Semaphore : public ACE_Semaphore
+class ACE_Threads_Export ACE_Thread_Semaphore : public ACE_Semaphore
{
public:
/// Initialize the semaphore, with an initial value of @a count,
@@ -71,14 +74,12 @@ template <class T> class ACE_Malloc_Lock_Adapter_T;
* the standard form used by other lock strategy classes.
*/
template<>
-class ACE_Export ACE_Malloc_Lock_Adapter_T<ACE_Thread_Semaphore>
+class ACE_Threads_Export ACE_Malloc_Lock_Adapter_T<ACE_Thread_Semaphore>
{
public:
ACE_Thread_Semaphore * operator () (const ACE_TCHAR *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Thread_Semaphore.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Thread_Semaphore.inl b/ace/Thread_Semaphore.inl
index e9535ff088e..8d2a9adf785 100644
--- a/ace/Thread_Semaphore.inl
+++ b/ace/Thread_Semaphore.inl
@@ -1,12 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
ACE_Thread_Semaphore::~ACE_Thread_Semaphore (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Time_Request_Reply.cpp b/ace/Time_Request_Reply.cpp
index e7524ce6ce7..bf1586d7260 100644
--- a/ace/Time_Request_Reply.cpp
+++ b/ace/Time_Request_Reply.cpp
@@ -7,8 +7,6 @@
ACE_RCSID(ace, Time_Request_Reply, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Default "do nothing" constructor.
ACE_Time_Request::ACE_Time_Request (void)
@@ -192,5 +190,3 @@ ACE_Time_Request::dump (void) const
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("+++++++\n")));
#endif /* ACE_HAS_DUMP */
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Time_Request_Reply.h b/ace/Time_Request_Reply.h
index 8c062cbd9a5..551da8dfb82 100644
--- a/ace/Time_Request_Reply.h
+++ b/ace/Time_Request_Reply.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file Time_Request_Reply.h
@@ -24,8 +23,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Time_Request
*
@@ -133,7 +130,6 @@ private:
ACE_UINT32 time_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* ACE_TIME_REQUEST_REPLY_H */
diff --git a/ace/Time_Value.cpp b/ace/Time_Value.cpp
index 8ce096055c8..2f8a9e67bff 100644
--- a/ace/Time_Value.cpp
+++ b/ace/Time_Value.cpp
@@ -9,19 +9,6 @@ ACE_RCSID (ace,
#include "ace/Time_Value.inl"
#endif /* __ACE_INLINE__ */
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
-// some platforms pollute the namespace by defining max() and min() macros
-#ifdef max
-#undef max
-#endif
-#ifdef min
-#undef min
-#endif
-#include <limits>
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Static constant representing `zero-time'.
// Note: this object requires static construction.
@@ -33,14 +20,7 @@ const ACE_Time_Value ACE_Time_Value::zero;
// Its primary use is in time computations such as those used by the
// dynamic subpriority strategies in the ACE_Dynamic_Message_Queue class.
// Note: this object requires static construction.
-// Note: on platforms without std::numeric_limits<>, we assume time_t is
-// a long, the historical type used for time.
-const ACE_Time_Value ACE_Time_Value::max_time (
-#if !defined(ACE_LACKS_NUMERIC_LIMITS) && !defined (ACE_WIN64)
- std::numeric_limits<time_t>::max (),
-#else
- LONG_MAX,
-#endif
+const ACE_Time_Value ACE_Time_Value::max_time (LONG_MAX,
ACE_ONE_SECOND_IN_USECS - 1);
ACE_ALLOC_HOOK_DEFINE (ACE_Time_Value)
@@ -120,7 +100,7 @@ void ACE_Time_Value::set (const FILETIME &file_time)
// Convert 100ns units to seconds;
this->tv_.tv_sec = (long) (LL_100ns / ((double) (10000 * 1000)));
// Convert remainder to microseconds;
- this->tv_.tv_usec = (suseconds_t)((LL_100ns % ((ACE_UINT32)(10000 * 1000))) / 10);
+ this->tv_.tv_usec = (long)((LL_100ns % ((ACE_UINT32)(10000 * 1000))) / 10);
#else
// Don't use a struct initializer, gcc don't like it.
ULARGE_INTEGER _100ns;
@@ -132,7 +112,7 @@ void ACE_Time_Value::set (const FILETIME &file_time)
// Convert 100ns units to seconds;
this->tv_.tv_sec = (long) (_100ns.QuadPart / (10000 * 1000));
// Convert remainder to microseconds;
- this->tv_.tv_usec = (suseconds_t) ((_100ns.QuadPart % (10000 * 1000)) / 10);
+ this->tv_.tv_usec = (long) ((_100ns.QuadPart % (10000 * 1000)) / 10);
#endif // ACE_LACKS_LONGLONG_T
this->normalize ();
}
@@ -235,25 +215,20 @@ ACE_Time_Value::operator *= (double d)
+ static_cast<double> (this->usec ()) / ACE_ONE_SECOND_IN_USECS) * d;
// shall we saturate the result?
-#if !defined(ACE_LACKS_NUMERIC_LIMITS) && !defined (ACE_WIN64)
- static const double max_int = std::numeric_limits<time_t>::max () + 0.999999;
- static const double min_int = std::numeric_limits<time_t>::min () - 0.999999;
-#else
- static const double max_int = LONG_MAX + 0.999999;
- static const double min_int = LONG_MIN - 0.999999;
-#endif
+ static const double max_int = ACE_INT32_MAX + 0.999999;
+ static const double min_int = ACE_INT32_MIN - 0.999999;
if (time_total > max_int)
time_total = max_int;
if (time_total < min_int)
time_total = min_int;
- const time_t time_sec = static_cast<time_t> (time_total);
+ const long time_sec = static_cast<long> (time_total);
time_total -= time_sec;
time_total *= ACE_ONE_SECOND_IN_USECS;
- suseconds_t time_usec = static_cast<suseconds_t> (time_total);
+ long time_usec = static_cast<long> (time_total);
// round up the result to save the last usec
if (time_usec > 0 && (time_total - time_usec) >= 0.5)
@@ -262,8 +237,7 @@ ACE_Time_Value::operator *= (double d)
--time_usec;
this->set (time_sec, time_usec);
+ this->normalize (); // protect against future changes in normalization
return *this;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Time_Value.h b/ace/Time_Value.h
index 5216a56c676..86ed911bfa0 100644
--- a/ace/Time_Value.h
+++ b/ace/Time_Value.h
@@ -21,7 +21,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-# include "ace/os_include/os_time.h"
+#if !defined (ACE_HAS_WINCE) && !defined (ACE_PSOS_DIAB_MIPS)
+# include "ace/os_include/sys/os_time.h"
+#endif /* ACE_HAS_WINCE ACE_PSOS_DIAB_MIPS */
// Define some helpful constants.
// Not type-safe, and signed. For backward compatibility.
@@ -29,16 +31,32 @@
#define ACE_ONE_SECOND_IN_USECS 1000000L
#define ACE_ONE_SECOND_IN_NSECS 1000000000L
-// needed for ACE_UINT64
-#include "ace/Basic_Types.h"
-
// This forward declaration is needed by the set() and FILETIME() functions
#if defined (ACE_LACKS_LONGLONG_T)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_U_LongLong;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_LACKS_LONGLONG_T */
+# if !defined (ACE_HAS_POSIX_TIME) && !defined (ACE_PSOS)
+// Definition per POSIX.
+typedef struct timespec
+{
+ /// Seconds
+ time_t tv_sec;
+ /// Nanoseconds
+ long tv_nsec;
+} timespec_t;
+# elif defined (ACE_HAS_BROKEN_POSIX_TIME)
+// OSF/1 defines struct timespec in <sys/timers.h> - Tom Marrs
+# include /**/ <sys/timers.h>
+# endif /* !ACE_HAS_POSIX_TIME */
+
+# if defined(ACE_LACKS_TIMESPEC_T)
+typedef struct timespec timespec_t;
+# endif /* ACE_LACKS_TIMESPEC_T */
+
+// needed for ACE_UINT64
+#include "ace/Basic_Types.h"
+
// -------------------------------------------------------------------
/**
@@ -60,9 +78,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
// - Steve Huston, 23-Aug-2004
extern "C++" {
#endif
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Time_Value
{
public:
@@ -86,23 +101,23 @@ public:
ACE_Time_Value (void);
/// Constructor.
- explicit ACE_Time_Value (time_t sec, suseconds_t usec = 0);
+ ACE_Time_Value (long sec, long usec = 0);
// = Methods for converting to/from various time formats.
/// Construct the ACE_Time_Value from a timeval.
- explicit ACE_Time_Value (const struct timeval &t);
+ ACE_Time_Value (const struct timeval &t);
/// Construct the ACE_Time_Value object from a timespec_t.
- explicit ACE_Time_Value (const timespec_t &t);
+ ACE_Time_Value (const timespec_t &t);
# if defined (ACE_WIN32)
/// Construct the ACE_Time_Value object from a Win32 FILETIME
- explicit ACE_Time_Value (const FILETIME &ft);
+ ACE_Time_Value (const FILETIME &ft);
# endif /* ACE_WIN32 */
- /// Initializes the ACE_Time_Value from seconds and useconds.
- void set (time_t sec, suseconds_t usec);
+ /// Initializes the ACE_Time_Value from two longs.
+ void set (long sec, long usec);
/// Initializes the ACE_Time_Value from a double, which is assumed to be
/// in second format, with any remainder treated as microseconds.
@@ -176,10 +191,10 @@ public:
* @note The semantics of this method differs from the msec()
* method.
*/
- time_t sec (void) const;
+ long sec (void) const;
/// Set seconds.
- void sec (time_t sec);
+ void sec (long sec);
/// Get microseconds.
/**
@@ -188,10 +203,10 @@ public:
* @note The semantics of this method differs from the msec()
* method.
*/
- suseconds_t usec (void) const;
+ long usec (void) const;
/// Set microseconds.
- void usec (suseconds_t usec);
+ void usec (long usec);
#if !defined (ACE_LACKS_LONGLONG_T)
/**
@@ -207,23 +222,14 @@ public:
/// Add @a tv to this.
ACE_Time_Value &operator += (const ACE_Time_Value &tv);
- /// Add @a tv to this.
- ACE_Time_Value &operator += (time_t tv);
-
/// Assign @ tv to this
ACE_Time_Value &operator = (const ACE_Time_Value &tv);
- /// Assign @ tv to this
- ACE_Time_Value &operator = (time_t tv);
-
/// Subtract @a tv to this.
ACE_Time_Value &operator -= (const ACE_Time_Value &tv);
- /// Substract @a tv to this.
- ACE_Time_Value &operator -= (time_t tv);
+ /** \brief Multiply the time value by the @a d factor.
- /**
- \brief Multiply the time value by the @a d factor.
\note The result of the operator is valid for results from range
< (ACE_INT32_MIN, -999999), (ACE_INT32_MAX, 999999) >. Result
outside this range are saturated to a limit.
@@ -260,11 +266,11 @@ public:
/// Adds two ACE_Time_Value objects together, returns the sum.
friend ACE_Export ACE_Time_Value operator + (const ACE_Time_Value &tv1,
- const ACE_Time_Value &tv2);
+ const ACE_Time_Value &tv2);
/// Subtracts two ACE_Time_Value objects, returns the difference.
friend ACE_Export ACE_Time_Value operator - (const ACE_Time_Value &tv1,
- const ACE_Time_Value &tv2);
+ const ACE_Time_Value &tv2);
/// True if @a tv1 < @a tv2.
friend ACE_Export bool operator < (const ACE_Time_Value &tv1,
@@ -293,10 +299,10 @@ public:
//@{
/// Multiplies the time value by @a d
friend ACE_Export ACE_Time_Value operator * (double d,
- const ACE_Time_Value &tv);
+ const ACE_Time_Value &tv);
friend ACE_Export ACE_Time_Value operator * (const ACE_Time_Value &tv,
- double d);
+ double d);
//@}
/// Dump is a no-op.
@@ -325,8 +331,6 @@ private:
timeval tv_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Time_Value.inl"
#endif /* __ACE_INLINE__ */
@@ -336,13 +340,11 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#endif
#if defined (__MINGW32__)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// The MingW linker has problems with the exported statics
// zero and max_time with these two statics the linker will be able to
// resolve the static exported symbols.
static const ACE_Time_Value& __zero_time = ACE_Time_Value::zero;
static const ACE_Time_Value& __max_time = ACE_Time_Value::max_time;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* __MINGW32__ */
#include /**/ "ace/post.h"
diff --git a/ace/Time_Value.inl b/ace/Time_Value.inl
index 75c34a2e2cc..298485d319c 100644
--- a/ace/Time_Value.inl
+++ b/ace/Time_Value.inl
@@ -2,8 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_WIN32) && defined (_WIN32_WCE)
// Something is a bit brain-damaged here and I'm not sure what... this code
// compiled before the OS reorg for ACE 5.4. Since then it hasn't - eVC
@@ -49,29 +47,11 @@ ACE_Time_Value::operator const timeval * () const
}
ACE_INLINE void
-ACE_Time_Value::set (time_t sec, suseconds_t usec)
+ACE_Time_Value::set (long sec, long usec)
{
// ACE_OS_TRACE ("ACE_Time_Value::set");
-#if defined (ACE_WIN64) \
- || (defined (ACE_WIN32) && !defined (_USE_32BIT_TIME_T))
- // Win64 uses 'long' (32 bit) timeval and 64-bit time_t, so we have
- // to get these back in range.
- if (sec > LONG_MAX)
- this->tv_.tv_sec = LONG_MAX;
- else if (sec < LONG_MIN)
- this->tv_.tv_sec = LONG_MIN;
- else
- this->tv_.tv_sec = static_cast<long> (sec);
-#else
this->tv_.tv_sec = sec;
-#endif
this->tv_.tv_usec = usec;
-#if __GNUC__
- if (__builtin_constant_p(sec) &&
- __builtin_constant_p(usec) &&
- (sec >= 0 && usec >= 0 && usec < ACE_ONE_SECOND_IN_USECS))
- return;
-#endif
this->normalize ();
}
@@ -81,7 +61,7 @@ ACE_Time_Value::set (double d)
// ACE_OS_TRACE ("ACE_Time_Value::set");
long l = (long) d;
this->tv_.tv_sec = l;
- this->tv_.tv_usec = (suseconds_t) ((d - (double) l) * ACE_ONE_SECOND_IN_USECS + .5);
+ this->tv_.tv_usec = (long) ((d - (double) l) * ACE_ONE_SECOND_IN_USECS + .5);
this->normalize ();
}
@@ -93,9 +73,17 @@ ACE_INLINE void
ACE_Time_Value::set (const timespec_t &tv)
{
// ACE_OS_TRACE ("ACE_Time_Value::set");
+#if ! defined(ACE_HAS_BROKEN_TIMESPEC_MEMBERS)
+ this->tv_.tv_sec = static_cast<long> (tv.tv_sec);
+ // Convert nanoseconds into microseconds.
+ this->tv_.tv_usec = tv.tv_nsec / 1000;
+#else
+ this->tv_.tv_sec = tv.ts_sec;
+ // Convert nanoseconds into microseconds.
+ this->tv_.tv_usec = tv.ts_nsec / 1000;
+#endif /* ACE_HAS_BROKEN_TIMESPEC_MEMBERS */
- this->set (tv.tv_sec,
- tv.tv_nsec / 1000); // Convert nanoseconds into microseconds.
+ this->normalize ();
}
ACE_INLINE
@@ -107,7 +95,7 @@ ACE_Time_Value::ACE_Time_Value (void)
}
ACE_INLINE
-ACE_Time_Value::ACE_Time_Value (time_t sec, suseconds_t usec)
+ACE_Time_Value::ACE_Time_Value (long sec, long usec)
{
// ACE_OS_TRACE ("ACE_Time_Value::ACE_Time_Value");
this->set (sec, usec);
@@ -115,7 +103,7 @@ ACE_Time_Value::ACE_Time_Value (time_t sec, suseconds_t usec)
// Returns number of seconds.
-ACE_INLINE time_t
+ACE_INLINE long
ACE_Time_Value::sec (void) const
{
// ACE_OS_TRACE ("ACE_Time_Value::sec");
@@ -125,22 +113,10 @@ ACE_Time_Value::sec (void) const
// Sets the number of seconds.
ACE_INLINE void
-ACE_Time_Value::sec (time_t sec)
+ACE_Time_Value::sec (long sec)
{
// ACE_OS_TRACE ("ACE_Time_Value::sec");
-#if defined (ACE_WIN64) \
- || (defined (ACE_WIN32) && !defined (_USE_32BIT_TIME_T))
- // Win64 uses 'long' (32 bit) timeval and 64-bit time_t, so we have
- // to get these back in range.
- if (sec > LONG_MAX)
- this->tv_.tv_sec = LONG_MAX;
- else if (sec < LONG_MIN)
- this->tv_.tv_sec = LONG_MIN;
- else
- this->tv_.tv_sec = static_cast<long> (sec);
-#else
this->tv_.tv_sec = sec;
-#endif
}
// Converts from Time_Value format into milli-seconds format.
@@ -177,7 +153,7 @@ ACE_Time_Value::msec (long milliseconds)
// Returns number of micro-seconds.
-ACE_INLINE suseconds_t
+ACE_INLINE long
ACE_Time_Value::usec (void) const
{
// ACE_OS_TRACE ("ACE_Time_Value::usec");
@@ -187,7 +163,7 @@ ACE_Time_Value::usec (void) const
// Sets the number of micro-seconds.
ACE_INLINE void
-ACE_Time_Value::usec (suseconds_t usec)
+ACE_Time_Value::usec (long usec)
{
// ACE_OS_TRACE ("ACE_Time_Value::usec");
this->tv_.tv_usec = usec;
@@ -255,9 +231,15 @@ ACE_Time_Value::operator timespec_t () const
{
// ACE_OS_TRACE ("ACE_Time_Value::operator timespec_t");
timespec_t tv;
+#if ! defined(ACE_HAS_BROKEN_TIMESPEC_MEMBERS)
tv.tv_sec = this->sec ();
// Convert microseconds into nanoseconds.
tv.tv_nsec = this->tv_.tv_usec * 1000;
+#else
+ tv.ts_sec = this->sec ();
+ // Convert microseconds into nanoseconds.
+ tv.ts_nsec = this->tv_.tv_usec * 1000;
+#endif /* ACE_HAS_BROKEN_TIMESPEC_MEMBERS */
return tv;
}
@@ -325,28 +307,12 @@ ACE_Time_Value::operator+= (const ACE_Time_Value &tv)
}
ACE_INLINE ACE_Time_Value &
-ACE_Time_Value::operator+= (time_t tv)
-{
- // ACE_OS_TRACE ("ACE_Time_Value::operator+=");
- this->sec (this->sec () + tv);
- return *this;
-}
-
-ACE_INLINE ACE_Time_Value &
ACE_Time_Value::operator= (const ACE_Time_Value &tv)
{
// ACE_OS_TRACE ("ACE_Time_Value::operator=");
this->sec (tv.sec ());
this->usec (tv.usec ());
- return *this;
-}
-
-ACE_INLINE ACE_Time_Value &
-ACE_Time_Value::operator= (time_t tv)
-{
- // ACE_OS_TRACE ("ACE_Time_Value::operator=");
- this->sec (tv);
- this->usec (0);
+ // this->normalize ();
return *this;
}
@@ -362,14 +328,6 @@ ACE_Time_Value::operator-= (const ACE_Time_Value &tv)
return *this;
}
-ACE_INLINE ACE_Time_Value &
-ACE_Time_Value::operator-= (time_t tv)
-{
- // ACE_OS_TRACE ("ACE_Time_Value::operator-=");
- this->sec (this->sec () - tv);
- return *this;
-}
-
// Adds two ACE_Time_Value objects together, returns the sum.
ACE_INLINE ACE_Time_Value
@@ -399,5 +357,3 @@ operator - (const ACE_Time_Value &tv1,
#if defined (ACE_WIN32) && defined (_WIN32_WCE)
}
#endif
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Timeprobe.cpp b/ace/Timeprobe.cpp
index 7f5db1fbb94..9fa83321885 100644
--- a/ace/Timeprobe.cpp
+++ b/ace/Timeprobe.cpp
@@ -14,8 +14,6 @@ ACE_RCSID(ace, Timeprobe, "$Id$")
#include "ace/Timeprobe.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Timeprobe_Ex<ACE_TIMEPROBE_MUTEX,ACE_TIMEPROBE_ALLOCATOR>;
template class ACE_Function_Timeprobe<ACE_Timeprobe_Ex<ACE_TIMEPROBE_MUTEX,ACE_TIMEPROBE_ALLOCATOR> >;
@@ -46,7 +44,5 @@ template class ACE_Singleton<ACE_TIMEPROBE_WITH_LOCKING, ACE_SYNCH_MUTEX>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
# endif /* ACE_TSS_TIMEPROBES */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_COMPILE_TIMEPROBES */
diff --git a/ace/Timeprobe.h b/ace/Timeprobe.h
index a78619f6e76..6eca046a631 100644
--- a/ace/Timeprobe.h
+++ b/ace/Timeprobe.h
@@ -58,8 +58,6 @@
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_Thread.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Event_Descriptions
*
@@ -113,8 +111,6 @@ public:
ACE_thread_t thread_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Timeprobe.inl"
#endif /* __ACE_INLINE__ */
@@ -124,8 +120,6 @@ ACE_END_VERSIONED_NAMESPACE_DECL
#include "ace/Singleton.h"
#include "ace/Timeprobe_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// If ACE_MT_TIMEPROBES is defined, use a Thread_Mutex to lock the
// internal state of ACE_Timerprobe. This allows multiple threads to
// use the same ACE_Timerprobe.
@@ -154,14 +148,12 @@ typedef ACE_Timeprobe_Ex<ACE_TIMEPROBE_MUTEX, ACE_TIMEPROBE_ALLOCATOR>
# endif /* ACE_TSS_TIMEPROBES */
ACE_SINGLETON_DECLARE (ACE_TIMEPROBE_SINGLETON_TYPE, \
- ACE_TIMEPROBE_WITH_LOCKING, \
- ACE_TIMEPROBE_SINGLETON_LOCK_TYPE)
+ ACE_TIMEPROBE_WITH_LOCKING, \
+ ACE_TIMEPROBE_SINGLETON_LOCK_TYPE)
typedef ACE_TIMEPROBE_SINGLETON_TYPE<ACE_TIMEPROBE_WITH_LOCKING, ACE_TIMEPROBE_SINGLETON_LOCK_TYPE>
ACE_TIMEPROBE_SINGLETON;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_COMPILE_TIMEPROBES */
// If ACE_ENABLE_TIMEPROBES is defined, the macros below will
diff --git a/ace/Timeprobe.inl b/ace/Timeprobe.inl
index d25eb4b0cfa..2815dd56e0c 100644
--- a/ace/Timeprobe.inl
+++ b/ace/Timeprobe.inl
@@ -1,14 +1,9 @@
// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE bool
ACE_Event_Descriptions::operator== (const ACE_Event_Descriptions &rhs) const
{
return this->minimum_id_ == rhs.minimum_id_ &&
this->descriptions_ == rhs.descriptions_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Timeprobe_T.cpp b/ace/Timeprobe_T.cpp
index c9d971602ff..bde2c1736dc 100644
--- a/ace/Timeprobe_T.cpp
+++ b/ace/Timeprobe_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_TIMEPROBE_T_CPP
-#define ACE_TIMEPROBE_T_CPP
+#ifndef ACE_TIMEPROBE_T_C
+#define ACE_TIMEPROBE_T_C
#include "ace/config-all.h"
@@ -9,14 +9,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+ACE_RCSID(ace, Timeprobe_T, "$Id$")
+
#if defined (ACE_COMPILE_TIMEPROBES)
#include "ace/Timeprobe.h"
#include "ace/High_Res_Timer.h"
#include "ace/OS_NS_string.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class ACE_LOCK, class ALLOCATOR>
ACE_Timeprobe_Ex<ACE_LOCK, ALLOCATOR>::ACE_Timeprobe_Ex (u_long size)
: timeprobes_ (0),
@@ -394,7 +394,5 @@ ACE_Function_Timeprobe<Timeprobe>::~ACE_Function_Timeprobe (void)
this->timeprobe_.timeprobe (this->event_ + 1);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_COMPILE_TIMEPROBES */
-#endif /* ACE_TIMEPROBE_T_CPP */
+#endif /* ACE_TIMEPROBE_T_C */
diff --git a/ace/Timeprobe_T.h b/ace/Timeprobe_T.h
index 32b5bae1448..e4d0acc7c33 100644
--- a/ace/Timeprobe_T.h
+++ b/ace/Timeprobe_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -25,8 +25,6 @@
#include "ace/Unbounded_Set.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Timeprobe_Ex
*
@@ -207,8 +205,6 @@ protected:
u_long event_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Timeprobe_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
diff --git a/ace/Timer_Hash.cpp b/ace/Timer_Hash.cpp
index 876476f702c..cfd39ae18e7 100644
--- a/ace/Timer_Hash.cpp
+++ b/ace/Timer_Hash.cpp
@@ -1,5 +1,10 @@
// $Id$
+// Timer_Hash.cpp
+
+#if !defined (ACE_TIMER_HASH_C)
+#define ACE_TIMER_HASH_C
+
#include "ace/Timer_Hash.h"
#include "ace/Synch_Traits.h"
#include "ace/Recursive_Thread_Mutex.h"
@@ -10,8 +15,6 @@
ACE_RCSID(ace, Timer_Hash, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Free_List<ACE_Timer_Node_T<ACE_Event_Handler *> >;
template class ACE_Locked_Free_List<ACE_Timer_Node_T<ACE_Event_Handler *>,
@@ -118,4 +121,5 @@ template class ACE_Timer_Hash_Iterator_T<ACE_Event_Handler *,
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* ACE_TIMER_HASH_C */
diff --git a/ace/Timer_Hash.h b/ace/Timer_Hash.h
index 2d959be39c5..a457ba41207 100644
--- a/ace/Timer_Hash.h
+++ b/ace/Timer_Hash.h
@@ -24,8 +24,6 @@
#include "ace/Timer_Heap_T.h"
#include "ace/Timer_List_T.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// The following typedef are here for ease of use
typedef ACE_Timer_Hash_Upcall <ACE_Event_Handler *,
@@ -69,7 +67,5 @@ typedef ACE_Timer_Hash_Iterator_T<ACE_Event_Handler *,
ACE_Hash_Timer_Heap>
ACE_Timer_Hash_Heap_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TIMER_HASH_H */
diff --git a/ace/Timer_Hash_T.cpp b/ace/Timer_Hash_T.cpp
index c0f147cd09e..92dc421dd6a 100644
--- a/ace/Timer_Hash_T.cpp
+++ b/ace/Timer_Hash_T.cpp
@@ -711,7 +711,7 @@ ACE_Timer_Hash_T<TYPE, FUNCTOR, ACE_LOCK, BUCKET>::expire (const ACE_Time_Value
int number_of_timers_expired = 0;
- ACE_Timer_Node_T<TYPE> *expired = 0;
+ ACE_Timer_Node_T<TYPE> *expired;
// Go through the table and expire anything that can be expired
diff --git a/ace/Timer_Hash_T.h b/ace/Timer_Hash_T.h
index c7eee094c63..2b6e7944438 100644
--- a/ace/Timer_Hash_T.h
+++ b/ace/Timer_Hash_T.h
@@ -22,8 +22,6 @@
#include "ace/Free_List.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration.
template <class TYPE, class FUNCTOR, class ACE_LOCK, class BUCKET>
class ACE_Timer_Hash_T;
@@ -245,7 +243,7 @@ public:
*/
virtual int expire (const ACE_Time_Value &current_time);
- /// Returns a pointer to this ACE_Timer_Queue's iterator.
+ /// Returns a pointer to this <ACE_Timer_Queue>'s iterator.
virtual ACE_Timer_Queue_Iterator_T<TYPE, FUNCTOR, ACE_LOCK> &iter (void);
/// Removes the earliest node from the queue and returns it
@@ -314,8 +312,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Timer_Hash_T<TYPE, FUNCTOR, ACE_LOCK, BUCKET> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) && !defined(ACE_HAS_BROKEN_HPUX_TEMPLATES)
#include "ace/Timer_Hash_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE && !ACE_HAS_BROKEN_HPUX_TEMPLATES */
diff --git a/ace/Timer_Heap.cpp b/ace/Timer_Heap.cpp
index 1e8f3e5a4cf..de160f575eb 100644
--- a/ace/Timer_Heap.cpp
+++ b/ace/Timer_Heap.cpp
@@ -1,19 +1,17 @@
// $Id$
+#if !defined (ACE_TIMER_HEAP_C)
+#define ACE_TIMER_HEAP_C
+
#include "ace/Timer_Heap.h"
#include "ace/Synch_Traits.h"
#include "ace/Recursive_Thread_Mutex.h"
+ACE_RCSID(ace, Timer_Heap, "$Id$")
+
#if defined (ACE_HAS_BROKEN_HPUX_TEMPLATES)
#include "ace/Timer_Hash.h"
#include "ace/Timer_Heap_T.cpp"
-
-ACE_RCSID(ace,
- Timer_Heap,
- "$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class
ACE_Timer_Heap_T<
@@ -33,13 +31,8 @@ template class
ACE_Null_Mutex>,
ACE_Null_Mutex>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Timer_Heap_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>;
template class ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>;
@@ -48,5 +41,4 @@ template class ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_
#pragma instantiate ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
+#endif /* ACE_TIMER_HEAP_C */
diff --git a/ace/Timer_Heap.h b/ace/Timer_Heap.h
index a0c9301ebc8..e40ca3f0f39 100644
--- a/ace/Timer_Heap.h
+++ b/ace/Timer_Heap.h
@@ -20,9 +20,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// The following typedefs are here for ease of use and backward
+// The following typedef are here for ease of use and backward
// compatibility.
typedef ACE_Timer_Heap_T<ACE_Event_Handler *,
@@ -35,7 +33,5 @@ typedef ACE_Timer_Heap_Iterator_T<ACE_Event_Handler *,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_Heap_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TIMER_HEAP_H */
diff --git a/ace/Timer_Heap_T.cpp b/ace/Timer_Heap_T.cpp
index 644a13b90db..8f777920706 100644
--- a/ace/Timer_Heap_T.cpp
+++ b/ace/Timer_Heap_T.cpp
@@ -1,37 +1,18 @@
// $Id$
-#ifndef ACE_TIMER_HEAP_T_CPP
-#define ACE_TIMER_HEAP_T_CPP
+#ifndef ACE_TIMER_HEAP_T_C
+#define ACE_TIMER_HEAP_T_C
#include "ace/Timer_Heap_T.h"
#include "ace/Log_Msg.h"
#include "ace/Guard_T.h"
-#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_string.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-/*
-** The ACE_Timer_Heap::max_size_ and array loops, checks, etc. are all size_t.
-** The timer IDs are long, and since they are indices into the heap, we need
-** to be sure that the timer heap size can fit in a long. Hence, when size
-** is (re)set, limit it to the maximum long value. We use the C++ standard
-** limits if available.
-*/
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
-// some platforms pollute the namespace by defining max() and min() macros
-#ifdef max
-#undef max
-#endif
-#ifdef min
-#undef min
-#endif
-#include <limits>
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Timer_Heap_T, "$Id$")
// Define some simple macros to clarify the code.
#define ACE_HEAP_PARENT(X) (X == 0 ? 0 : (((X) - 1) / 2))
@@ -108,21 +89,6 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::ACE_Timer_Heap_T (size_t size,
{
ACE_TRACE ("ACE_Timer_Heap_T::ACE_Timer_Heap_T");
- // Possibly reduce size to fit in a long.
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
- if (size > static_cast<size_t> (std::numeric_limits<long>::max ()))
- {
- size = static_cast<size_t> (std::numeric_limits<long>::max ());
- this->max_size_ = size;
- }
-#else
- if (size > LONG_MAX)
- {
- size = LONG_MAX;
- this->max_size_ = size;
- }
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
// Create the heap array.
ACE_NEW (this->heap_,
ACE_Timer_Node_T<TYPE> *[size]);
@@ -180,15 +146,6 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::ACE_Timer_Heap_T (FUNCTOR *upcall_fun
{
ACE_TRACE ("ACE_Timer_Heap_T::ACE_Timer_Heap_T");
- // Possibly reduce size to fit in a long.
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
- if (this->max_size_ > static_cast<size_t> (std::numeric_limits<long>::max ()))
- this->max_size_ = static_cast<size_t> (std::numeric_limits<long>::max ());
-#else
- if (this->max_size_ > LONG_MAX)
- this->max_size_ = LONG_MAX;
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
// Create the heap array.
#if defined (__IBMCPP__) && (__IBMCPP__ >= 400) && defined (_WINDOWS)
ACE_NEW (this->heap_,
@@ -280,7 +237,7 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::pop_freelist (void)
this->timer_ids_min_free_ = this->max_size_;
}
- return static_cast<long> (this->timer_ids_curr_);
+ return this->timer_ids_curr_;
}
template <class TYPE, class FUNCTOR, class ACE_LOCK> void
@@ -517,27 +474,9 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::insert (ACE_Timer_Node_T<TYPE> *new_n
template <class TYPE, class FUNCTOR, class ACE_LOCK> void
ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::grow_heap (void)
{
- // All the containers will double in size from max_size_.
+ // All the containers will double in size from max_size_
size_t new_size = this->max_size_ * 2;
-#if 0
- // Yikes - there's no way to flag a failure of going out of range of
- // a 'long' - this is a problem that should be addressed at some point.
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
- if (new_size > std::numeric_limits<long>::max ())
- new_size = std::numeric_limits<long>::max ();
-#else
- if (new_size > LONG_MAX)
- new_size = LONG_MAX;
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
- if (new_size <= this->max_size_) // We are already at the limit
- {
- errno = ENOMEM;
- return -1;
- }
-#endif /* 0 */
-
// First grow the heap itself.
ACE_Timer_Node_T<TYPE> **new_heap = 0;
@@ -615,9 +554,6 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::grow_heap (void)
}
this->max_size_ = new_size;
- // Force rescan of list from beginning for a free slot (I think...)
- // This fixed Bugzilla #2447.
- this->timer_ids_min_free_ = this->max_size_;
}
// Reschedule a periodic timer. This function must be called with the
@@ -829,11 +765,6 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::cancel (const TYPE &type,
number_of_cancellations++;
this->free_node (temp);
-
- // We reset to zero so that we don't miss checking any nodes
- // if a reheapify occurs when a node is removed. There
- // may be a better fix than this, however.
- i = 0;
}
else
i++;
@@ -883,6 +814,4 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::get_first (void)
return this->cur_size_ == 0 ? 0 : this->heap_[0];
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TIMER_HEAP_T_CPP */
+#endif /* ACE_TIMER_HEAP_T_C */
diff --git a/ace/Timer_Heap_T.h b/ace/Timer_Heap_T.h
index 068aa0bfb67..bf2147019cc 100644
--- a/ace/Timer_Heap_T.h
+++ b/ace/Timer_Heap_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,8 +23,6 @@
#include "ace/Free_List.h"
#include "ace/Unbounded_Set.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration
template <class TYPE, class FUNCTOR, class ACE_LOCK>
class ACE_Timer_Heap_T;
@@ -162,7 +160,7 @@ public:
const void **act = 0,
int dont_call_handle_close = 1);
- /// Returns a pointer to this ACE_Timer_Queue's iterator.
+ /// Returns a pointer to this <ACE_Timer_Queue>'s iterator.
virtual ACE_Timer_Queue_Iterator_T<TYPE, FUNCTOR, ACE_LOCK> &iter (void);
/**
@@ -324,8 +322,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) && !defined(ACE_HAS_BROKEN_HPUX_TEMPLATES)
#include "ace/Timer_Heap_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE && !ACE_HAS_BROKEN_HPUX_TEMPLATES */
diff --git a/ace/Timer_List.cpp b/ace/Timer_List.cpp
index 4d82a2065a2..777091e5af1 100644
--- a/ace/Timer_List.cpp
+++ b/ace/Timer_List.cpp
@@ -1,5 +1,8 @@
// $Id$
+#if !defined (ACE_TIMER_LIST_C)
+#define ACE_TIMER_LIST_C
+
#include "ace/Timer_List.h"
#include "ace/Synch_Traits.h"
#include "ace/Recursive_Thread_Mutex.h"
@@ -11,9 +14,6 @@ ACE_RCSID(ace, Timer_List, "$Id$")
#include "ace/Timer_List_T.cpp"
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template class
ACE_Timer_List_T<
ACE_Event_Handler*,
@@ -31,14 +31,9 @@ ACE_Timer_List_Iterator_T<
ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>,
ACE_Null_Mutex>,
ACE_Null_Mutex>;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Timer_List_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>;
template class ACE_Timer_List_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>;
@@ -47,4 +42,5 @@ template class ACE_Timer_List_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_
#pragma instantiate ACE_Timer_List_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* ACE_TIMER_LIST_C */
diff --git a/ace/Timer_List.h b/ace/Timer_List.h
index 0bc689465ea..571364742a8 100644
--- a/ace/Timer_List.h
+++ b/ace/Timer_List.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,9 +21,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// The following typedefs are here for ease of use and backward
+// The following typedef are here for ease of use and backward
// compatibility.
typedef ACE_Timer_List_T<ACE_Event_Handler *,
@@ -36,7 +34,5 @@ typedef ACE_Timer_List_Iterator_T<ACE_Event_Handler *,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_List_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TIMER_LIST_H */
diff --git a/ace/Timer_List_T.cpp b/ace/Timer_List_T.cpp
index 60a116bb835..164e1aecb07 100644
--- a/ace/Timer_List_T.cpp
+++ b/ace/Timer_List_T.cpp
@@ -162,7 +162,7 @@ ACE_Timer_List_T<TYPE, FUNCTOR, ACE_LOCK>::dump (void) const
ACE_Timer_Node_T<TYPE>* n = this->get_first_i();
if (n != 0) {
for (; n != this->head_; n = n->get_next()) {
- ++count;
+ count++;
}
}
diff --git a/ace/Timer_Queue.cpp b/ace/Timer_Queue.cpp
index 240a8caf66a..eadbf31c883 100644
--- a/ace/Timer_Queue.cpp
+++ b/ace/Timer_Queue.cpp
@@ -1,5 +1,8 @@
// $Id$
+#if !defined (ACE_TIMER_QUEUE_C)
+#define ACE_TIMER_QUEUE_C
+
#include "ace/Containers.h"
#include "ace/Timer_Queue.h"
#include "ace/Synch_Traits.h"
@@ -12,9 +15,6 @@ ACE_RCSID(ace, Timer_Queue, "$Id$")
#include "ace/Timer_Queue_T.cpp"
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template class
ACE_Timer_Queue_T<
ACE_Event_Handler*,
@@ -32,14 +32,9 @@ template class
ACE_Event_Handler_Handle_Timeout_Upcall<ACE_Null_Mutex>,
ACE_Null_Mutex>,
ACE_Null_Mutex>;
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
#endif /* ACE_HAS_BROKEN_HPUX_TEMPLATES */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Unbounded_Set<ACE_Timer_Node_T<ACE_Event_Handler *> *>;
template class ACE_Node<ACE_Timer_Node_T<ACE_Event_Handler *> *>;
@@ -63,4 +58,4 @@ template class ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_TIMER_QUEUE_C */
diff --git a/ace/Timer_Queue.h b/ace/Timer_Queue.h
index 36182f15f95..e697ee9213a 100644
--- a/ace/Timer_Queue.h
+++ b/ace/Timer_Queue.h
@@ -30,8 +30,6 @@
# include "ace/Null_Mutex.h"
#endif /* ACE_HAS_THREADS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// The following typedef are here for ease of use and backward
// compatibility.
typedef ACE_Timer_Node_Dispatch_Info_T<ACE_Event_Handler *>
@@ -45,8 +43,6 @@ typedef ACE_Timer_Queue_Iterator_T<ACE_Event_Handler *,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_Queue_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TIMER_QUEUE_H */
diff --git a/ace/Timer_Queue_Adapters.cpp b/ace/Timer_Queue_Adapters.cpp
index 00f21d10ff3..13489a858a2 100644
--- a/ace/Timer_Queue_Adapters.cpp
+++ b/ace/Timer_Queue_Adapters.cpp
@@ -1,14 +1,14 @@
// $Id$
-#ifndef ACE_TIMER_QUEUE_ADAPTERS_CPP
-#define ACE_TIMER_QUEUE_ADAPTERS_CPP
-
#include "ace/Timer_Queue_Adapters.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#ifndef ACE_TIMER_QUEUE_ADAPTERS_CPP
+#define ACE_TIMER_QUEUE_ADAPTERS_CPP
+
# if !defined (__ACE_INLINE__)
# include "ace/Timer_Queue_Adapters.inl"
# endif /* __ACE_INLINE__ */
@@ -16,8 +16,6 @@
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_time.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TQ> TQ &
ACE_Async_Timer_Queue_Adapter<TQ>::timer_queue (void)
{
@@ -258,19 +256,11 @@ ACE_Thread_Timer_Queue_Adapter<TQ>::svc (void)
{
// Compute the remaining time, being careful not to sleep
// for "negative" amounts of time.
- const ACE_Time_Value tv_curr = this->timer_queue_->gettimeofday ();
- const ACE_Time_Value tv_earl = this->timer_queue_->earliest_time ();
-
- if (tv_earl > tv_curr)
- {
- // The earliest time on the Timer_Queue is in future, so
- // use ACE_OS::gettimeofday() to convert the tv to the
- // absolute time.
- const ACE_Time_Value tv = ACE_OS::gettimeofday () + (tv_earl - tv_curr);
- // ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("waiting until %u.%3.3u secs\n"),
- // tv.sec(), tv.msec()));
- this->condition_.wait (&tv);
- }
+ ACE_Time_Value tv = this->timer_queue_->earliest_time ();
+
+ // ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("waiting until %u.%3.3u secs\n"),
+ // tv.sec(), tv.msec()));
+ this->condition_.wait (&tv);
}
// Expire timers anyway, at worst this is a no-op.
@@ -300,9 +290,6 @@ ACE_Thread_Timer_Queue_Adapter<TQ>::activate (long flags,
// Macros to avoid "warning: unused parameter" type warning.
ACE_UNUSED_ARG (thread_handles);
- // Make sure to set this flag in case we were deactivated earlier.
- this->active_ = 1;
-
// Make sure that we only allow a single thread to be spawned for
// our adapter. Otherwise, too many weird things can happen.
return ACE_Task_Base::activate (flags, 1, 0, priority, grp_id, task, 0,
@@ -353,6 +340,4 @@ ACE_Thread_Timer_Queue_Adapter<TQ>::dispatch_commands (void)
# endif /* ACE_HAS_DEFERRED_TIMER_COMMANDS */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_TIMER_QUEUE_ADAPTERS_CPP */
diff --git a/ace/Timer_Queue_Adapters.h b/ace/Timer_Queue_Adapters.h
index d2ff5946c3a..ed8d0cd8ecc 100644
--- a/ace/Timer_Queue_Adapters.h
+++ b/ace/Timer_Queue_Adapters.h
@@ -26,13 +26,9 @@
#if defined (ACE_HAS_DEFERRED_TIMER_COMMANDS)
# include "ace/Unbounded_Queue.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Command_Base;
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_DEFERRED_TIMER_COMMANDS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Async_Timer_Queue_Adapter
*
@@ -50,7 +46,7 @@ public:
/// Constructor
/**
* Register the SIGALRM handler. If @a mask == 0 then block all
- * signals when @c SIGALRM is run. Otherwise, just block the signals
+ * signals when <SIGALRM> is run. Otherwise, just block the signals
* indicated in @a mask.
*/
ACE_Async_Timer_Queue_Adapter (ACE_Sig_Set *mask = 0);
@@ -71,7 +67,7 @@ public:
/// passed in.
int cancel (long timer_id, const void **act = 0);
- /// Dispatch all timers whose values are <= cur_time. Returns the
+ /// Dispatch all timers whose values are <= <cur_time>. Returns the
/// number of timers canceled.
int expire (void);
@@ -234,8 +230,6 @@ private:
ACE_thread_t thr_id_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
# include "ace/Timer_Queue_Adapters.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Timer_Queue_Adapters.inl b/ace/Timer_Queue_Adapters.inl
index e66168bbe98..547c693dd13 100644
--- a/ace/Timer_Queue_Adapters.inl
+++ b/ace/Timer_Queue_Adapters.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<class TQ> ACE_INLINE TQ *
ACE_Thread_Timer_Queue_Adapter<TQ>::timer_queue (void) const
{
@@ -25,5 +22,3 @@ ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void) const
{
return this->thr_id_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Timer_Queue_T.cpp b/ace/Timer_Queue_T.cpp
index 749a4e09be8..4c125cfabcd 100644
--- a/ace/Timer_Queue_T.cpp
+++ b/ace/Timer_Queue_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_TIMER_QUEUE_T_CPP
-#define ACE_TIMER_QUEUE_T_CPP
+#ifndef ACE_TIMER_QUEUE_T_C
+#define ACE_TIMER_QUEUE_T_C
#include "ace/config-all.h"
@@ -20,7 +20,10 @@
#include "ace/Timer_Queue_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID (ace,
+ Timer_Queue_T,
+ "$Id$")
+
// This fudge factor can be overriden for timers that need it, such as on
// Solaris, by defining the ACE_TIMER_SKEW symbol in the appropriate config
@@ -271,7 +274,7 @@ ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK>::expire (const ACE_Time_Value &cur_ti
this->postinvoke (info, cur_time, upcall_act);
- ++number_of_timers_expired;
+ number_of_timers_expired++;
}
@@ -472,6 +475,4 @@ ACE_Event_Handler_Handle_Timeout_Upcall<ACE_LOCK>::deletion (TIMER_QUEUE &timer_
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TIMER_QUEUE_T_CPP */
+#endif /* ACE_TIMER_QUEUE_T_C */
diff --git a/ace/Timer_Queue_T.h b/ace/Timer_Queue_T.h
index 604079a41da..50ed8ce99a8 100644
--- a/ace/Timer_Queue_T.h
+++ b/ace/Timer_Queue_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -25,8 +25,6 @@
#include "ace/Event_Handler.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Timer_Node_Dispatch_Info_T
*
@@ -164,7 +162,7 @@ private:
* @class ACE_Timer_Queue_Iterator_T
*
* @brief Generic interface for iterating over a subclass of
- * ACE_Timer_Queue.
+ * <ACE_Timer_Queue>.
*
* This is a generic iterator that can be used to visit every
* node of a timer queue. Be aware that it isn't guaranteed
@@ -380,7 +378,7 @@ public:
/// Accessor to the upcall functor
FUNCTOR &upcall_functor (void);
- /// Returns a pointer to this ACE_Timer_Queue's iterator.
+ /// Returns a pointer to this <ACE_Timer_Queue>'s iterator.
virtual ITERATOR &iter (void) = 0;
/// Removes the earliest node from the queue and returns it
@@ -431,8 +429,8 @@ protected:
virtual int dispatch_info_i (const ACE_Time_Value &current_time,
ACE_Timer_Node_Dispatch_Info_T<TYPE> &info);
- /// Synchronization variable for ACE_Timer_Queue.
- /// @note The right name would be lock_, but HP/C++ will choke on that!
+ /// Synchronization variable for <ACE_Timer_Queue>.
+ /// NOTE: the right name would be lock_, but HP/C++ will choke on that!
ACE_LOCK mutex_;
/// Class that implements a free list
@@ -544,8 +542,6 @@ private:
ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Event_Handler_Handle_Timeout_Upcall<ACE_LOCK> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Timer_Queue_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Timer_Queue_T.inl b/ace/Timer_Queue_T.inl
index 7275119e2e1..294433e8285 100644
--- a/ace/Timer_Queue_T.inl
+++ b/ace/Timer_Queue_T.inl
@@ -2,7 +2,6 @@
//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
template <class TYPE> ACE_INLINE void
ACE_Timer_Node_T<TYPE>::set (const TYPE &type,
@@ -218,5 +217,3 @@ ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK>::upcall_functor (void)
{
return *this->upcall_functor_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Timer_Queuefwd.h b/ace/Timer_Queuefwd.h
index 6e03204bdde..0f8ad0330c2 100644
--- a/ace/Timer_Queuefwd.h
+++ b/ace/Timer_Queuefwd.h
@@ -19,8 +19,6 @@
#include "ace/Synch_Traits.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class TYPE, class FUNCTOR, class ACE_LOCK> class ACE_Timer_Queue_T;
template <class ACE_LOCK> class ACE_Event_Handler_Handle_Timeout_Upcall;
@@ -31,8 +29,6 @@ typedef ACE_Timer_Queue_T<ACE_Event_Handler *,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_Queue;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TIMER_QUEUE_FWD_H */
diff --git a/ace/Timer_Wheel.cpp b/ace/Timer_Wheel.cpp
index 3861edb2c54..0675711f329 100644
--- a/ace/Timer_Wheel.cpp
+++ b/ace/Timer_Wheel.cpp
@@ -1,5 +1,8 @@
// $Id$
+#if !defined (ACE_TIMER_WHEEL_C)
+#define ACE_TIMER_WHEEL_C
+
#include "ace/Timer_Wheel.h"
#include "ace/Synch_Traits.h"
#include "ace/Recursive_Thread_Mutex.h"
@@ -10,8 +13,6 @@
ACE_RCSID(ace, Timer_Wheel, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Timer_Wheel_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>;
template class ACE_Timer_Wheel_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>;
@@ -20,4 +21,5 @@ template class ACE_Timer_Wheel_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler
#pragma instantiate ACE_Timer_Wheel_Iterator_T<ACE_Event_Handler *, ACE_Event_Handler_Handle_Timeout_Upcall<ACE_SYNCH_RECURSIVE_MUTEX>, ACE_SYNCH_RECURSIVE_MUTEX>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* ACE_TIMER_WHEEL_C */
diff --git a/ace/Timer_Wheel.h b/ace/Timer_Wheel.h
index 307e56b5542..cdd967bd9bd 100644
--- a/ace/Timer_Wheel.h
+++ b/ace/Timer_Wheel.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,9 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// The following typedefs are here for ease of use and backward
+// The following typedef are here for ease of use and backward
// compatibility.
typedef ACE_Timer_Wheel_T<ACE_Event_Handler *,
@@ -36,7 +35,5 @@ typedef ACE_Timer_Wheel_Iterator_T<ACE_Event_Handler *,
ACE_SYNCH_RECURSIVE_MUTEX>
ACE_Timer_Wheel_Iterator;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TIMER_WHEEL_H */
diff --git a/ace/Timer_Wheel_T.cpp b/ace/Timer_Wheel_T.cpp
index 149de55c520..f32b29b8853 100644
--- a/ace/Timer_Wheel_T.cpp
+++ b/ace/Timer_Wheel_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_TIMER_WHEEL_T_CPP
-#define ACE_TIMER_WHEEL_T_CPP
+#ifndef ACE_TIMER_WHEEL_T_C
+#define ACE_TIMER_WHEEL_T_C
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -12,7 +12,8 @@
#include "ace/Timer_Wheel_T.h"
#include "ace/Log_Msg.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Timer_Wheel_T, "$Id$")
+
// Design/implementation notes for ACE_Timer_Wheel_T.
//
@@ -940,6 +941,7 @@ ACE_Timer_Wheel_Iterator_T<TYPE, FUNCTOR, ACE_LOCK>::goto_next (u_int start_spok
this->current_node_ = 0;
}
+
/**
* @return True when we there aren't any more items (when current_node_ == 0)
*/
@@ -949,6 +951,7 @@ ACE_Timer_Wheel_Iterator_T<TYPE, FUNCTOR, ACE_LOCK>::isdone (void) const
return this->current_node_ == 0;
}
+
/**
* @return The node at the current spokeition in the sequence or 0 if the wheel
* is empty
@@ -959,6 +962,5 @@ ACE_Timer_Wheel_Iterator_T<TYPE, FUNCTOR, ACE_LOCK>::item (void)
return this->current_node_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_TIMER_WHEEL_T_CPP */
+#endif /* ACE_TIMER_WHEEL_T_C */
diff --git a/ace/Timer_Wheel_T.h b/ace/Timer_Wheel_T.h
index 5c62a39dde0..10bb65badd8 100644
--- a/ace/Timer_Wheel_T.h
+++ b/ace/Timer_Wheel_T.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -20,8 +20,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration
template <class TYPE, class FUNCTOR, class ACE_LOCK>
class ACE_Timer_Wheel_T;
@@ -206,14 +204,13 @@ private:
/// The total number of timers currently scheduled.
u_int timer_count_;
- // = Don't allow these operations for now, don't split into multiple lines
- // breaks sun compilers
- ACE_UNIMPLEMENTED_FUNC (ACE_Timer_Wheel_T (const ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK> &))
- ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK> &))
+ // = Don't allow these operations for now.
+ ACE_UNIMPLEMENTED_FUNC (
+ ACE_Timer_Wheel_T (const ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK> &))
+ ACE_UNIMPLEMENTED_FUNC (
+ void operator= (const ACE_Timer_Wheel_T<TYPE, FUNCTOR, ACE_LOCK> &))
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#if !defined (ACE_HAS_BROKEN_HPUX_TEMPLATES)
#include "ace/Timer_Wheel_T.cpp"
diff --git a/ace/TkReactor.cpp b/ace/TkReactor.cpp
index 7f6ae69e320..5fb8b56db71 100644
--- a/ace/TkReactor.cpp
+++ b/ace/TkReactor.cpp
@@ -5,14 +5,12 @@
ACE_RCSID(ace, TkReactor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_TkReactor)
// Must be called with lock held
ACE_TkReactor::ACE_TkReactor (size_t size,
- int restart,
- ACE_Sig_Handler *h)
+ int restart,
+ ACE_Sig_Handler *h)
: ACE_Select_Reactor (size, restart, h),
ids_ (0),
timeout_ (0)
@@ -51,7 +49,7 @@ ACE_TkReactor::~ACE_TkReactor (void)
int
ACE_TkReactor::wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &handle_set,
- ACE_Time_Value *max_wait_time)
+ ACE_Time_Value *max_wait_time)
{
ACE_TRACE ("ACE_TkReactor::wait_for_multiple_events");
int nfound;
@@ -65,8 +63,8 @@ ACE_TkReactor::wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &handle_s
handle_set.wr_mask_ = this->wait_set_.wr_mask_;
handle_set.ex_mask_ = this->wait_set_.ex_mask_;
nfound = TkWaitForMultipleEvents (width,
- handle_set,
- max_wait_time);
+ handle_set,
+ max_wait_time);
} while (nfound == -1 && this->handle_error () > 0);
@@ -103,7 +101,7 @@ ACE_TkReactor::TimerCallbackProc (ClientData cd)
*/
void
ACE_TkReactor::InputCallbackProc (ClientData cd,
- int /* mask */)
+ int /* mask */)
{
ACE_TkReactor_Input_Callback *callback = (ACE_TkReactor_Input_Callback *) cd;
ACE_TkReactor *self = callback->reactor_;
@@ -125,9 +123,9 @@ ACE_TkReactor::InputCallbackProc (ClientData cd,
wait_set.ex_mask_.set_bit (handle);
int result = ACE_OS::select (handle + 1,
- wait_set.rd_mask_,
- wait_set.wr_mask_,
- wait_set.ex_mask_, &zero);
+ wait_set.rd_mask_,
+ wait_set.wr_mask_,
+ wait_set.ex_mask_, &zero);
ACE_Select_Reactor_Handle_Set dispatch_set;
@@ -135,11 +133,11 @@ ACE_TkReactor::InputCallbackProc (ClientData cd,
if (result > 0)
{
if (wait_set.rd_mask_.is_set (handle))
- dispatch_set.rd_mask_.set_bit (handle);
+ dispatch_set.rd_mask_.set_bit (handle);
if (wait_set.wr_mask_.is_set (handle))
- dispatch_set.wr_mask_.set_bit (handle);
+ dispatch_set.wr_mask_.set_bit (handle);
if (wait_set.ex_mask_.is_set (handle))
- dispatch_set.ex_mask_.set_bit (handle);
+ dispatch_set.ex_mask_.set_bit (handle);
self->dispatch (1, dispatch_set);
}
@@ -147,17 +145,17 @@ ACE_TkReactor::InputCallbackProc (ClientData cd,
int
ACE_TkReactor::TkWaitForMultipleEvents (int width,
- ACE_Select_Reactor_Handle_Set &wait_set,
- ACE_Time_Value *)
+ ACE_Select_Reactor_Handle_Set &wait_set,
+ ACE_Time_Value *)
{
// Check to make sure our handle's are all usable.
ACE_Select_Reactor_Handle_Set temp_set = wait_set;
if (ACE_OS::select (width,
- temp_set.rd_mask_,
- temp_set.wr_mask_,
- temp_set.ex_mask_,
- (ACE_Time_Value *) &ACE_Time_Value::zero) == -1)
+ temp_set.rd_mask_,
+ temp_set.wr_mask_,
+ temp_set.ex_mask_,
+ (ACE_Time_Value *) &ACE_Time_Value::zero) == -1)
return -1; // Bad file arguments...
// Instead of waiting using <select>, just use the Tk mechanism to
@@ -172,16 +170,16 @@ ACE_TkReactor::TkWaitForMultipleEvents (int width,
// Now actually read the result needed by the <Select_Reactor> using
// <select>.
return ACE_OS::select (width,
- wait_set.rd_mask_,
- wait_set.wr_mask_,
- wait_set.ex_mask_,
- (ACE_Time_Value *) &ACE_Time_Value::zero);
+ wait_set.rd_mask_,
+ wait_set.wr_mask_,
+ wait_set.ex_mask_,
+ (ACE_Time_Value *) &ACE_Time_Value::zero);
}
int
ACE_TkReactor::register_handler_i (ACE_HANDLE handle,
- ACE_Event_Handler *handler,
- ACE_Reactor_Mask mask)
+ ACE_Event_Handler *handler,
+ ACE_Reactor_Mask mask)
{
ACE_TRACE ("ACE_TkReactor::register_handler_i");
@@ -269,8 +267,8 @@ ACE_TkReactor::register_handler_i (ACE_HANDLE handle,
int
ACE_TkReactor::register_handler_i (const ACE_Handle_Set &handles,
- ACE_Event_Handler *handler,
- ACE_Reactor_Mask mask)
+ ACE_Event_Handler *handler,
+ ACE_Reactor_Mask mask)
{
return ACE_Select_Reactor::register_handler_i (handles,
handler,
@@ -279,7 +277,7 @@ ACE_TkReactor::register_handler_i (const ACE_Handle_Set &handles,
int
ACE_TkReactor::remove_handler_i (ACE_HANDLE handle,
- ACE_Reactor_Mask mask)
+ ACE_Reactor_Mask mask)
{
ACE_TRACE ("ACE_TkReactor::remove_handler_i");
@@ -334,10 +332,10 @@ ACE_TkReactor::remove_TkFileHandler (ACE_HANDLE handle)
int
ACE_TkReactor::remove_handler_i (const ACE_Handle_Set &handles,
- ACE_Reactor_Mask mask)
+ ACE_Reactor_Mask mask)
{
return ACE_Select_Reactor::remove_handler_i (handles,
- mask);
+ mask);
}
// The following functions ensure that there is an Tk timeout for the
@@ -382,9 +380,9 @@ ACE_TkReactor::reset_timer_interval
long
ACE_TkReactor::schedule_timer (ACE_Event_Handler *event_handler,
- const void *arg,
+ const void *arg,
const ACE_Time_Value &delay,
- const ACE_Time_Value &interval)
+ const ACE_Time_Value &interval)
{
ACE_TRACE ("ACE_TkReactor::schedule_timer");
ACE_MT (ACE_GUARD_RETURN (ACE_Select_Reactor_Token, ace_mon, this->token_, -1));
@@ -404,12 +402,12 @@ ACE_TkReactor::schedule_timer (ACE_Event_Handler *event_handler,
int
ACE_TkReactor::cancel_timer (ACE_Event_Handler *handler,
- int dont_call_handle_close)
+ int dont_call_handle_close)
{
ACE_TRACE ("ACE_TkReactor::cancel_timer");
if (ACE_Select_Reactor::cancel_timer (handler,
- dont_call_handle_close) == -1)
+ dont_call_handle_close) == -1)
return -1;
else
{
@@ -420,14 +418,14 @@ ACE_TkReactor::cancel_timer (ACE_Event_Handler *handler,
int
ACE_TkReactor::cancel_timer (long timer_id,
- const void **arg,
- int dont_call_handle_close)
+ const void **arg,
+ int dont_call_handle_close)
{
ACE_TRACE ("ACE_TkReactor::cancel_timer");
if (ACE_Select_Reactor::cancel_timer (timer_id,
- arg,
- dont_call_handle_close) == -1)
+ arg,
+ dont_call_handle_close) == -1)
return -1;
else
{
@@ -436,4 +434,3 @@ ACE_TkReactor::cancel_timer (long timer_id,
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/TkReactor.h b/ace/TkReactor.h
index 0ae370c0687..024d341b937 100644
--- a/ace/TkReactor.h
+++ b/ace/TkReactor.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file TkReactor.h
@@ -25,8 +24,6 @@
#include "ace/Select_Reactor.h"
#include /**/ <tk.h>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_TkReactorID
*
@@ -130,7 +127,5 @@ private:
ACE_TkReactor &operator = (const ACE_TkReactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TK_REACTOR_H */
diff --git a/ace/Token.cpp b/ace/Token.cpp
index e373a078027..d67e51e5bcb 100644
--- a/ace/Token.cpp
+++ b/ace/Token.cpp
@@ -1,6 +1,13 @@
// $Id$
+#include "ace/Thread.h"
#include "ace/Token.h"
+#include "ace/Log_Msg.h"
+
+#if defined (DEBUGGING)
+// FUZZ: disable check_for_streams_include
+#include "ace/streams.h"
+#endif /* DEBUGGING */
ACE_RCSID(ace, Token, "$Id$")
@@ -10,18 +17,9 @@ ACE_RCSID(ace, Token, "$Id$")
#if defined (ACE_HAS_THREADS)
-#include "ace/Thread.h"
-#include "ace/Log_Msg.h"
-
-#if defined (DEBUGGING)
-// FUZZ: disable check_for_streams_include
-#include "ace/streams.h"
-#endif /* DEBUGGING */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_Token)
+
void
ACE_Token::dump (void) const
{
@@ -211,7 +209,7 @@ ACE_Token::shared_acquire (void (*sleep_hook_func)(void *),
// Check if it is us.
if (ACE_OS::thr_equal (thr_id, this->owner_))
{
- ++this->nesting_level_;
+ this->nesting_level_++;
return 0;
}
@@ -237,7 +235,7 @@ ACE_Token::shared_acquire (void (*sleep_hook_func)(void *),
thr_id,
this->attributes_);
queue->insert_entry (my_entry, this->queueing_strategy_);
- ++this->waiters_;
+ this->waiters_++;
// Execute appropriate <sleep_hook> callback. (@@ should these
// methods return a success/failure status, and if so, what should
@@ -246,13 +244,13 @@ ACE_Token::shared_acquire (void (*sleep_hook_func)(void *),
if (sleep_hook_func)
{
(*sleep_hook_func) (arg);
- ++ret;
+ ret++;
}
else
{
// Execute virtual method.
this->sleep_hook ();
- ++ret;
+ ret++;
}
int timed_out = 0;
@@ -292,7 +290,7 @@ ACE_Token::shared_acquire (void (*sleep_hook_func)(void *),
while (!ACE_OS::thr_equal (thr_id, this->owner_));
// Do this always and irrespective of the result of wait().
- --this->waiters_;
+ this->waiters_--;
queue->remove_entry (&my_entry);
#if defined (DEBUGGING)
@@ -392,7 +390,7 @@ ACE_Token::renew (int requeue_position,
// otherwise use the queueing strategy, which might also
// happen to be 0.
requeue_position == 0 ? 0 : this->queueing_strategy_);
- ++this->waiters_;
+ this->waiters_++;
// Remember nesting level...
int save_nesting_level_ = this->nesting_level_;
@@ -440,7 +438,7 @@ ACE_Token::renew (int requeue_position,
while (!ACE_OS::thr_equal (my_entry.thread_id_, this->owner_));
// Do this always and irrespective of the result of wait().
- --this->waiters_;
+ this->waiters_--;
this_threads_queue->remove_entry (&my_entry);
#if defined (DEBUGGING)
@@ -546,6 +544,8 @@ ACE_Token::wakeup_next_waiter (void)
this->owner_ = queue->head_->thread_id_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/ace/Token.h b/ace/Token.h
index f351bcab979..0295133e542 100644
--- a/ace/Token.h
+++ b/ace/Token.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -34,15 +34,14 @@
# define ACE_TOKEN_USES_SEMAPHORE
#endif /* (ACE_WIN32 && !ACE_HAS_WINCE) || VXWORKS || ACE_PSOS */
+class ACE_Time_Value;
+
#if defined (ACE_TOKEN_USES_SEMAPHORE)
# include "ace/Semaphore.h"
#endif /* ACE_TOKEN_USES_SEMAPHORE */
#include "ace/Condition_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-class ACE_Time_Value;
/**
* @class ACE_Token
@@ -317,12 +316,7 @@ private:
int queueing_strategy_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#else
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Token
{
public:
@@ -333,13 +327,8 @@ public:
int remove (void) { ACE_NOTSUP_RETURN (-1); }
int release (void) { ACE_NOTSUP_RETURN (-1); }
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Export ACE_Noop_Token : public ACE_Null_Mutex
{
public:
@@ -365,8 +354,6 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Token.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Token.inl b/ace/Token.inl
index d375789fbd1..5cea9866cea 100644
--- a/ace/Token.inl
+++ b/ace/Token.inl
@@ -1,16 +1,14 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/config-macros.h"
+#include "ace/Guard_T.h"
+
+// Token.i
#if defined (ACE_HAS_THREADS)
-#include "ace/Guard_T.h"
#include "ace/Time_Value.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_Token::queueing_strategy (void)
{
@@ -31,25 +29,25 @@ ACE_Token::remove (void)
ACE_NOTSUP_RETURN (-1);
}
-ACE_INLINE int
+ACE_INLINE int
ACE_Token::tryacquire (void)
{
ACE_TRACE ("ACE_Token::tryacquire");
- return this->shared_acquire
+ return this->shared_acquire
(0, 0, (ACE_Time_Value *) &ACE_Time_Value::zero, ACE_Token::WRITE_TOKEN);
}
-ACE_INLINE int
+ACE_INLINE int
ACE_Token::waiters (void)
{
ACE_TRACE ("ACE_Token::waiters");
ACE_GUARD_RETURN (ACE_Thread_Mutex, ace_mon, this->lock_, -1);
- int const ret = this->waiters_;
+ int ret = this->waiters_;
return ret;
}
-ACE_INLINE ACE_thread_t
+ACE_INLINE ACE_thread_t
ACE_Token::current_owner (void)
{
ACE_TRACE ("ACE_Token::current_owner");
@@ -120,9 +118,9 @@ ACE_Token::ACE_Token_Queue_Entry::wait (ACE_Time_Value *timeout, ACE_Thread_Mute
{
#if defined (ACE_TOKEN_USES_SEMAPHORE)
lock.release ();
- int const retv = (timeout == 0 ?
- this->cv_.acquire () :
- this->cv_.acquire (*timeout));
+ int retv = (timeout == 0 ?
+ this->cv_.acquire () :
+ this->cv_.acquire (*timeout));
lock.acquire ();
return retv;
#else
@@ -134,7 +132,7 @@ ACE_Token::ACE_Token_Queue_Entry::wait (ACE_Time_Value *timeout, ACE_Thread_Mute
ACE_INLINE int
ACE_Token::ACE_Token_Queue_Entry::signal (void)
{
- return
+ return
#if defined (ACE_TOKEN_USES_SEMAPHORE)
this->cv_.release ();
#else
@@ -142,13 +140,8 @@ ACE_Token::ACE_Token_Queue_Entry::signal (void)
#endif /* ACE_TOKEN_USES_SEMAPHORE */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
-
-/*****************************************************************************/
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+/******************************************************************************/
ACE_INLINE int
ACE_Noop_Token::queueing_strategy (void)
@@ -171,6 +164,3 @@ ACE_INLINE void
ACE_Noop_Token::dump (void) const
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
diff --git a/ace/Token_Collection.cpp b/ace/Token_Collection.cpp
index 19136876e47..5287cd6208a 100644
--- a/ace/Token_Collection.cpp
+++ b/ace/Token_Collection.cpp
@@ -1,20 +1,19 @@
#include "ace/Token_Collection.h"
-#if defined (ACE_HAS_TOKENS_LIBRARY)
-
#if !defined (__ACE_INLINE__)
#include "ace/Token_Collection.inl"
#endif /* __ACE_INLINE__ */
+#if defined (ACE_HAS_TOKENS_LIBRARY)
+
ACE_RCSID (ace,
Token_Collection,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Token_Collection::ACE_Token_Collection (int debug,
- const ACE_TCHAR *name)
+ const ACE_TCHAR *name)
: debug_ (debug)
{
ACE_TRACE ("ACE_Token_Collection::ACE_Token_Collection");
@@ -75,8 +74,8 @@ ACE_Token_Collection::is_member (const ACE_Token_Proxy &token)
int
ACE_Token_Collection::acquire (int notify,
- void (*sleep_hook)(void *),
- ACE_Synch_Options &options)
+ void (*sleep_hook)(void *),
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Token_Collection::acquire");
@@ -87,18 +86,18 @@ ACE_Token_Collection::acquire (int notify,
iterator.advance ())
{
if (debug_)
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
ACE_LIB_TEXT ("collection acquiring %s\n"),
- temp->int_id_->name ()));
+ temp->int_id_->name ()));
if (temp->int_id_->acquire (notify,
sleep_hook,
options) == -1)
- {
+ {
// Save/restore errno.
ACE_Errno_Guard error (errno);
- this->release ();
- ACE_RETURN (-1);
- }
+ this->release ();
+ ACE_RETURN (-1);
+ }
}
return 0;
@@ -106,9 +105,9 @@ ACE_Token_Collection::acquire (int notify,
int
ACE_Token_Collection::acquire (const ACE_TCHAR *token_name,
- int notify,
- void (*sleep_hook)(void *),
- ACE_Synch_Options &options)
+ int notify,
+ void (*sleep_hook)(void *),
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Token_Collection::acquire");
TOKEN_NAME name (token_name);
@@ -125,7 +124,7 @@ ACE_Token_Collection::acquire (const ACE_TCHAR *token_name,
int
ACE_Token_Collection::tryacquire (const ACE_TCHAR *token_name,
- void (*sleep_hook)(void *))
+ void (*sleep_hook)(void *))
{
ACE_TRACE ("ACE_Token_Collection::tryacquire");
TOKEN_NAME name (token_name);
@@ -152,11 +151,11 @@ ACE_Token_Collection::tryacquire (void (*sleep_hook)(void *))
iterator.advance ())
{
if (debug_)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("collection acquiring %s\n"),
- temp->int_id_->name ()));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("collection acquiring %s\n"),
+ temp->int_id_->name ()));
// We will fail if _any_ token is not free.
if (temp->int_id_->tryacquire (sleep_hook) == -1)
- return -1;
+ return -1;
}
return 0;
@@ -164,7 +163,7 @@ ACE_Token_Collection::tryacquire (void (*sleep_hook)(void *))
int
ACE_Token_Collection::renew (int requeue_position,
- ACE_Synch_Options &options)
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Token_Collection::renew");
@@ -175,10 +174,10 @@ ACE_Token_Collection::renew (int requeue_position,
iterator.advance ())
{
if (debug_)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("collection renewing %s\n"),
- temp->int_id_->name ()));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("collection renewing %s\n"),
+ temp->int_id_->name ()));
if (temp->int_id_->renew (requeue_position, options) == -1)
- return -1;
+ return -1;
}
return 0;
@@ -186,8 +185,8 @@ ACE_Token_Collection::renew (int requeue_position,
int
ACE_Token_Collection::renew (const ACE_TCHAR *token_name,
- int requeue_position,
- ACE_Synch_Options &options)
+ int requeue_position,
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Token_Collection::renew");
TOKEN_NAME name (token_name);
@@ -199,8 +198,8 @@ ACE_Token_Collection::renew (const ACE_TCHAR *token_name,
// Did we find it?
if (result == -1)
ACE_ERROR_RETURN ((LM_DEBUG, ACE_LIB_TEXT ("%p %s\n"),
- ACE_LIB_TEXT ("not in collection "),
- token_name), -1);
+ ACE_LIB_TEXT ("not in collection "),
+ token_name), -1);
// perform the operation
return temp->renew (requeue_position, options);
}
@@ -217,8 +216,8 @@ ACE_Token_Collection::release (ACE_Synch_Options &)
iterator.advance ())
{
if (debug_)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("collection releasing %s\n"),
- temp->int_id_->name ()));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("collection releasing %s\n"),
+ temp->int_id_->name ()));
temp->int_id_->release ();
}
@@ -227,7 +226,7 @@ ACE_Token_Collection::release (ACE_Synch_Options &)
int
ACE_Token_Collection::release (const ACE_TCHAR *token_name,
- ACE_Synch_Options &options)
+ ACE_Synch_Options &options)
{
ACE_TRACE ("ACE_Token_Collection::release");
TOKEN_NAME name (token_name);
@@ -303,6 +302,4 @@ template class ACE_Map_Entry<ACE_Token_Name, ACE_Token_Proxy *>;
#pragma instantiate ACE_Map_Entry<ACE_Token_Name, ACE_Token_Proxy *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Token_Collection.h b/ace/Token_Collection.h
index 0d57cc0ca58..1f42c8406cf 100644
--- a/ace/Token_Collection.h
+++ b/ace/Token_Collection.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -35,8 +35,6 @@
#include "ace/Local_Tokens.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Token_Collection
*
@@ -231,13 +229,11 @@ protected:
virtual ACE_Tokens *create_token (const ACE_TCHAR *name);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_HAS_TOKENS_LIBRARY */
#if defined (__ACE_INLINE__)
#include "ace/Token_Collection.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_HAS_TOKENS_LIBRARY */
-
#include /**/ "ace/post.h"
#endif /* ACE_TOKEN_COLLECTION_H */
diff --git a/ace/Token_Collection.inl b/ace/Token_Collection.inl
index db86701a325..fcab4df9b09 100644
--- a/ace/Token_Collection.inl
+++ b/ace/Token_Collection.inl
@@ -1,17 +1,12 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE const ACE_TCHAR *
ACE_Token_Collection::name (void) const
{
return name_;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Token_Invariants.cpp b/ace/Token_Invariants.cpp
index 58ca73b9006..e59d28bd6ba 100644
--- a/ace/Token_Invariants.cpp
+++ b/ace/Token_Invariants.cpp
@@ -1,14 +1,13 @@
#include "ace/Token_Invariants.h"
+#include "ace/Object_Manager.h"
#if defined (ACE_HAS_TOKENS_LIBRARY)
-#include "ace/Object_Manager.h"
ACE_RCSID (ace,
Token_Invariants,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Token_Invariant_Manager *ACE_Token_Invariant_Manager::instance_ = 0;
@@ -374,6 +373,4 @@ template class ACE_Map_Entry<ACE_Token_Name, ACE_RWLock_Invariants *>;
#pragma instantiate ACE_Map_Entry<ACE_Token_Name, ACE_RWLock_Invariants *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Token_Invariants.h b/ace/Token_Invariants.h
index 6816d209ab3..c5b4fb42ffc 100644
--- a/ace/Token_Invariants.h
+++ b/ace/Token_Invariants.h
@@ -32,7 +32,6 @@
#include "ace/Local_Tokens.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Mutex_Invariants
@@ -237,8 +236,6 @@ protected:
static ACE_Token_Invariant_Manager *instance_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
#include /**/ "ace/post.h"
diff --git a/ace/Token_Manager.cpp b/ace/Token_Manager.cpp
index 3933a468c8d..24d79871448 100644
--- a/ace/Token_Manager.cpp
+++ b/ace/Token_Manager.cpp
@@ -1,19 +1,16 @@
#include "ace/Token_Manager.h"
-
-#if defined (ACE_HAS_TOKENS_LIBRARY)
-
#include "ace/Object_Manager.h"
#if !defined (__ACE_INLINE__)
#include "ace/Token_Manager.inl"
#endif /* __ACE_INLINE__ */
+#if defined (ACE_HAS_TOKENS_LIBRARY)
+
ACE_RCSID (ace,
Token_Manager,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// singleton token manager
ACE_Token_Manager *ACE_Token_Manager::token_manager_ = 0;
@@ -282,6 +279,4 @@ template class ACE_Map_Entry <ACE_Token_Name, ACE_Tokens *>;
#pragma instantiate ACE_Map_Entry <ACE_Token_Name, ACE_Tokens *>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Token_Manager.h b/ace/Token_Manager.h
index 63c78712203..c19b625116e 100644
--- a/ace/Token_Manager.h
+++ b/ace/Token_Manager.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -27,8 +27,6 @@
#include "ace/Null_Mutex.h"
#include "ace/Map_Manager.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Local_Mutex;
class ACE_Mutex_Token;
@@ -138,13 +136,11 @@ private:
COLLECTION collection_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_HAS_TOKENS_LIBRARY */
#if defined (__ACE_INLINE__)
#include "ace/Token_Manager.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_HAS_TOKENS_LIBRARY */
-
#include /**/ "ace/post.h"
#endif /* ACE_TOKEN_MANAGER_H */
diff --git a/ace/Token_Manager.inl b/ace/Token_Manager.inl
index b38c4b9e346..2ef2d7e1f53 100644
--- a/ace/Token_Manager.inl
+++ b/ace/Token_Manager.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_TOKEN_CONST::MUTEX &
ACE_Token_Manager::mutex (void)
{
@@ -20,6 +17,4 @@ ACE_Token_Manager::debug (int d)
debug_ = d;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Token_Request_Reply.cpp b/ace/Token_Request_Reply.cpp
index 802cbc5f697..01ee4fb305d 100644
--- a/ace/Token_Request_Reply.cpp
+++ b/ace/Token_Request_Reply.cpp
@@ -2,15 +2,13 @@
#include "ace/Token_Request_Reply.h"
-#if defined (ACE_HAS_TOKENS_LIBRARY)
-
#if !defined (__ACE_INLINE__)
#include "ace/Token_Request_Reply.inl"
#endif /* __ACE_INLINE__ */
-ACE_RCSID(ace, Token_Request_Reply, "$Id$")
+#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Token_Request_Reply, "$Id$")
// Default "do nothing" constructor.
@@ -23,11 +21,11 @@ ACE_Token_Request::ACE_Token_Request (void)
// Create a ACE_Token_Request message.
ACE_Token_Request::ACE_Token_Request (int token_type,
- int proxy_type,
- ACE_UINT32 operation_type,
- const ACE_TCHAR token_name[],
- const ACE_TCHAR client_id[],
- const ACE_Synch_Options &options)
+ int proxy_type,
+ ACE_UINT32 operation_type,
+ const ACE_TCHAR token_name[],
+ const ACE_TCHAR client_id[],
+ const ACE_Synch_Options &options)
{
this->token_type (token_type);
this->proxy_type (proxy_type);
@@ -59,11 +57,11 @@ ACE_Token_Request::decode (void)
this->token_name_ = this->transfer_.data_;
options_.set (transfer_.use_timeout_ == 1 ? ACE_Synch_Options::USE_TIMEOUT : 0,
- ACE_Time_Value (transfer_.sec_, transfer_.usec_),
- (void *) transfer_.arg_);
+ ACE_Time_Value (transfer_.sec_, transfer_.usec_),
+ (void *) transfer_.arg_);
// Decode the variable-sized portion.
- size_t token_len = ACE_OS::strlen (this->token_name_);
+ int token_len = ACE_OS::strlen (this->token_name_);
// Check to make sure this->tokenName_ isn't too long!
if (token_len >= ACE_MAXTOKENNAMELEN)
@@ -81,8 +79,8 @@ ACE_Token_Request::decode (void)
// client_id_ plus '\0'
size_t data_size = ACE_TOKEN_REQUEST_HEADER_SIZE
+ ACE_OS::strlen (this->token_name_) + 1
- + ACE_OS::strlen (this->client_id_) + 1
- + 1;
+ + ACE_OS::strlen (this->client_id_) + 1
+ + 1;
// Make sure the message was correctly received and framed.
return this->length () == data_size ? 0 : -1;
@@ -96,7 +94,7 @@ ACE_Token_Request::dump (void) const
#if defined (ACE_HAS_DUMP)
ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("*******\nlength = %d\ntoken name = %s\nclient id = %s\n"),
- this->length (), this->token_name (), this->client_id ()));
+ this->length (), this->token_name (), this->client_id ()));
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("type = ")));
if (this->token_type () == ACE_Tokens::MUTEX)
@@ -104,9 +102,9 @@ ACE_Token_Request::dump (void) const
else // == ACE_Tokens::RWLOCK
{
if (this->proxy_type () == ACE_RW_Token::READER)
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("RLOCK\n")));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("RLOCK\n")));
else // == WRITER
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("WLOCK\n")));
+ ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("WLOCK\n")));
}
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("operation = ")));
@@ -131,7 +129,7 @@ ACE_Token_Request::dump (void) const
else
{
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("waiting for %d secs and %d usecs\n"),
- this->options ().timeout ().sec (), this->options ().timeout ().usec ()));
+ this->options ().timeout ().sec (), this->options ().timeout ().usec ()));
}
ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
@@ -176,11 +174,9 @@ ACE_Token_Reply::dump (void) const
{
#if defined (ACE_HAS_DUMP)
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("*******\nlength = %d\nerrnum = %d"),
- this->length (), this->errnum ()));
+ this->length (), this->errnum ()));
ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("arg = %d"), this->arg ()));
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Token_Request_Reply.h b/ace/Token_Request_Reply.h
index 15dea490bc7..86f516a0203 100644
--- a/ace/Token_Request_Reply.h
+++ b/ace/Token_Request_Reply.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -28,8 +28,6 @@
#if defined (ACE_HAS_TOKENS_LIBRARY)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/// Specifies the size of the fixed length portion of
/// the Transfer structure in ACE_Token_Request
#define ACE_TOKEN_REQUEST_HEADER_SIZE 40
@@ -64,12 +62,12 @@ public:
ACE_Token_Request (void);
/**
- * @param token_type MUTEX, RWLOCK
- * @param proxy_type MUTEX, RLOCK, WLOCK (acquires mean different things)
- * @param operation method
- * @param token_name
- * @param client_id
- * @param options We check USE_TIMEOUT and use the arg.
+ * token_type - MUTEX, RWLOCK
+ * proxy_type - MUTEX, RLOCK, WLOCK (acquires mean different things)
+ * operation - method
+ * token_name
+ * client_id
+ * options - we check USE_TIMEOUT and use the arg.
*/
ACE_Token_Request (int token_type,
int proxy_type,
@@ -258,13 +256,11 @@ private:
} transfer_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
+#endif /* ACE_HAS_TOKENS_LIBRARY */
#if defined (__ACE_INLINE__)
#include "ace/Token_Request_Reply.inl"
#endif /* __ACE_INLINE__ */
-#endif /* ACE_HAS_TOKENS_LIBRARY */
-
#include /**/ "ace/post.h"
#endif /* ACE_TOKEN_REQUEST_REPLY_H */
diff --git a/ace/Token_Request_Reply.inl b/ace/Token_Request_Reply.inl
index 34cfdd87f28..e1c8ace3ad5 100644
--- a/ace/Token_Request_Reply.inl
+++ b/ace/Token_Request_Reply.inl
@@ -1,13 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#if defined (ACE_HAS_TOKENS_LIBRARY)
-#include "ace/Truncate.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Set/get the length of the encoded/decoded message.
ACE_INLINE ACE_UINT32
@@ -16,7 +11,7 @@ ACE_Token_Request::length (void) const
return ntohl (this->transfer_.length_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Request::length (ACE_UINT32 l)
{
this->transfer_.length_ = htonl (l);
@@ -29,7 +24,7 @@ ACE_Token_Request::token_type (void) const
return (int) ntohl (this->transfer_.token_type_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Request::token_type (int t)
{
this->transfer_.token_type_ = htonl ((ACE_UINT32) t);
@@ -55,33 +50,33 @@ ACE_Token_Request::operation_type (void) const
return ntohl (this->transfer_.operation_type_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Request::operation_type (ACE_UINT32 t)
{
this->transfer_.operation_type_ = htonl (t);
}
// = Set/get the requeue position
-ACE_INLINE ACE_UINT32
+ACE_INLINE ACE_UINT32
ACE_Token_Request::requeue_position (void) const
{
return ntohl (this->transfer_.requeue_position_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Request::requeue_position (ACE_UINT32 rq)
{
this->transfer_.requeue_position_ = htonl (rq);
}
// = Set/get the requeue position
-ACE_INLINE ACE_UINT32
+ACE_INLINE ACE_UINT32
ACE_Token_Request::notify (void) const
{
return ntohl (this->transfer_.notify_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Request::notify (ACE_UINT32 rq)
{
this->transfer_.notify_ = htonl (rq);
@@ -94,7 +89,7 @@ ACE_Token_Request::options (void) const
return (ACE_Synch_Options &) options_;
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Request::options (const ACE_Synch_Options &opt)
{
// fight the friggin const from hell
@@ -104,10 +99,7 @@ ACE_Token_Request::options (const ACE_Synch_Options &opt)
if (transfer_.use_timeout_ == 1)
{
transfer_.usec_ = options->timeout ().usec ();
- if (options->timeout ().sec () > ACE_UINT32_MAX)
- transfer_.sec_ = ACE_UINT32_MAX;
- else
- transfer_.sec_ = static_cast<ACE_UINT32> (options->timeout ().sec ());
+ transfer_.sec_ = options->timeout ().sec ();
}
else
{
@@ -123,8 +115,8 @@ ACE_Token_Request::token_name (void) const
return token_name_;
}
-ACE_INLINE void
-ACE_Token_Request::token_name (const ACE_TCHAR *token_name,
+ACE_INLINE void
+ACE_Token_Request::token_name (const ACE_TCHAR *token_name,
const ACE_TCHAR *client_id)
{
size_t token_name_length = ACE_OS::strlen (token_name) + 1; // Add 1 for '\0'.
@@ -135,20 +127,20 @@ ACE_Token_Request::token_name (const ACE_TCHAR *token_name,
client_id_ = &this->token_name_[token_name_length + 1]; // Add 1 for ':';
client_id_[-1] = ACE_LIB_TEXT (':'); // Insert the ':' before this->clientId_.
- (void) ACE_OS::memcpy (this->token_name_,
- token_name,
+ (void) ACE_OS::memcpy (this->token_name_,
+ token_name,
token_name_length * sizeof (ACE_TCHAR));
- (void) ACE_OS::memcpy (this->client_id_,
- client_id,
+ (void) ACE_OS::memcpy (this->client_id_,
+ client_id,
client_id_length * sizeof (ACE_TCHAR));
// Fixed length header size
size_t len = ACE_TOKEN_REQUEST_HEADER_SIZE;
- // ... then add in the amount of the variable-sized portion.
+ // ... then add in the amount of the variable-sized portion.
len += token_name_length + client_id_length + 1;
- this->length (ACE_Utils::Truncate (len));
+ this->length (len);
}
// = Set/get the id of the client.
@@ -163,44 +155,42 @@ ACE_Token_Request::client_id (void) const
// ************************************************************
// = Set/get the length of the encoded/decoded message.
-ACE_INLINE ACE_UINT32
+ACE_INLINE ACE_UINT32
ACE_Token_Reply::length (void) const
{
return ntohl (this->transfer_.length_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Reply::length (ACE_UINT32 l)
{
this->transfer_.length_ = htonl (l);
}
// = Set/get the errno of a failed reply.
-ACE_INLINE ACE_UINT32
+ACE_INLINE ACE_UINT32
ACE_Token_Reply::errnum (void) const
{
return ntohl (this->transfer_.errno_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Reply::errnum (ACE_UINT32 e)
{
this->transfer_.errno_ = htonl (e);
}
// = Set/get the length of the encoded/decoded message.
-ACE_INLINE ACE_UINT32
+ACE_INLINE ACE_UINT32
ACE_Token_Reply::arg (void) const
{
return ntohl (this->transfer_.arg_);
}
-ACE_INLINE void
+ACE_INLINE void
ACE_Token_Reply::arg (ACE_UINT32 arg)
{
this->transfer_.arg_ = htonl (arg);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_TOKENS_LIBRARY */
diff --git a/ace/Trace.cpp b/ace/Trace.cpp
index 63faa316d4e..5869f8bef45 100644
--- a/ace/Trace.cpp
+++ b/ace/Trace.cpp
@@ -16,8 +16,6 @@ ACE_RCSID (ace,
#include "ace/Log_Msg.h"
#include "ace/Object_Manager_Base.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// = Static initialization.
// Keeps track of how far to indent per trace call.
@@ -133,5 +131,3 @@ ACE_Trace::~ACE_Trace (void)
}
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Trace.h b/ace/Trace.h
index c473ee14014..67979f0287f 100644
--- a/ace/Trace.h
+++ b/ace/Trace.h
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Trace
*
@@ -89,8 +87,6 @@ private:
};
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_TRACE_H */
diff --git a/ace/Truncate.h b/ace/Truncate.h
deleted file mode 100644
index de347d1dc06..00000000000
--- a/ace/Truncate.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// -*- C++ -*-
-//=============================================================================
-/**
- * @file Truncate.h
- *
- * $Id$
- *
- * @author Steve Huston <shuston@riverace.com>
- */
-//=============================================================================
-#ifndef ACE_TRUNCATE_H
-#define ACE_TRUNCATE_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Global_Macros.h"
-
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
-// some platforms pollute the namespace by defining max() and min() macros
-# ifdef max
-# undef max
-# endif
-# ifdef min
-# undef min
-# endif
-# include <limits>
-#else
-# include "ace/os_include/os_limits.h"
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-namespace ACE_Utils
-{
-/**
- * @class Truncate
- *
- * @brief Helper function to truncate an integral value to an int.
- *
- * Very useful since ACE methods return int very often and the value's
- * source is often a different-size integral type, such as size_t.
- * This function hides the truncation logic and resolves compiler
- * diagnostics.
- *
- * @internal Internal use only.
- */
-template<typename X>
-inline int Truncate (const X& val)
-{
-#if !defined (ACE_LACKS_NUMERIC_LIMITS)
- if (val > static_cast<X> (std::numeric_limits<int>::max ()))
- return std::numeric_limits<int>::max ();
-#else
- if (val > static_cast<X> (INT_MAX))
- return INT_MAX;
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
- return static_cast<int> (val);
-}
-
-// Specialize one for size_t to alleviate the explicit instantiation pain.
-template<>
-inline int Truncate<size_t> (const size_t& val)
-{
-#if !defined (ACE_LACKS_NUMERIC_LIMITS)
- if (val > static_cast<size_t> (std::numeric_limits<int>::max ()))
- return std::numeric_limits<int>::max ();
-#else
- if (val > static_cast<size_t> (INT_MAX))
- return INT_MAX;
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
- return static_cast<int> (val);
-}
-
-} // namespace ACE_Utils
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#include /**/ "ace/post.h"
-#endif /* ACE_TRUNCATE_H*/
diff --git a/ace/Typed_SV_Message.cpp b/ace/Typed_SV_Message.cpp
index 79f931b77df..3062952d2b4 100644
--- a/ace/Typed_SV_Message.cpp
+++ b/ace/Typed_SV_Message.cpp
@@ -1,8 +1,8 @@
+// Typed_SV_Message.cpp
// $Id$
-#ifndef ACE_TYPED_SV_MESSAGE_CPP
-#define ACE_TYPED_SV_MESSAGE_CPP
-
+#ifndef ACE_TYPED_SV_MESSAGE_C
+#define ACE_TYPED_SV_MESSAGE_C
#include "ace/Typed_SV_Message.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -13,7 +13,7 @@
#include "ace/Typed_SV_Message.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Typed_SV_Message, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Typed_SV_Message)
@@ -25,6 +25,4 @@ ACE_Typed_SV_Message<T>::dump (void) const
#endif /* ACE_HAS_DUMP */
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TYPED_SV_MESSAGE_CPP */
+#endif /* ACE_TYPED_SV_MESSAGE_C */
diff --git a/ace/Typed_SV_Message.h b/ace/Typed_SV_Message.h
index e88ddd6bf00..178cdfb8340 100644
--- a/ace/Typed_SV_Message.h
+++ b/ace/Typed_SV_Message.h
@@ -22,8 +22,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Typed_SV_Message
*
@@ -88,8 +86,6 @@ private:
T data_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Typed_SV_Message.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Typed_SV_Message.inl b/ace/Typed_SV_Message.inl
index 00ff07109ac..a2dde0af39e 100644
--- a/ace/Typed_SV_Message.inl
+++ b/ace/Typed_SV_Message.inl
@@ -1,16 +1,13 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/config-all.h"
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE
-ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (long t,
- int l,
- int m)
+ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (long t,
+ int l,
+ int m)
: type_ (t)
{
ACE_TRACE ("ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message");
@@ -19,10 +16,10 @@ ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (long t,
}
template <class T> ACE_INLINE
-ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (const T &d,
- long t,
- int l,
- int m)
+ACE_Typed_SV_Message<T>::ACE_Typed_SV_Message (const T &d,
+ long t,
+ int l,
+ int m)
: type_ (t),
data_ (d)
{
@@ -93,4 +90,3 @@ ACE_Typed_SV_Message<T>::data (const T &d)
this->data_ = d;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Typed_SV_Message_Queue.cpp b/ace/Typed_SV_Message_Queue.cpp
index 7fc2b0fd38d..c1d6bb6de39 100644
--- a/ace/Typed_SV_Message_Queue.cpp
+++ b/ace/Typed_SV_Message_Queue.cpp
@@ -1,7 +1,8 @@
+// Typed_SV_Message_Queue.cpp
// $Id$
-#ifndef ACE_TYPED_SV_MESSAGE_QUEUE_CPP
-#define ACE_TYPED_SV_MESSAGE_QUEUE_CPP
+#ifndef ACE_TYPED_SV_MESSAGE_QUEUE_C
+#define ACE_TYPED_SV_MESSAGE_QUEUE_C
#include "ace/Typed_SV_Message.h"
@@ -16,7 +17,7 @@
#include "ace/Typed_SV_Message_Queue.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Typed_SV_Message_Queue, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Typed_SV_Message_Queue)
@@ -51,6 +52,4 @@ ACE_Typed_SV_Message_Queue<T>::~ACE_Typed_SV_Message_Queue (void)
ACE_TRACE ("ACE_Typed_SV_Message_Queue<T>::~ACE_Typed_SV_Message_Queue");
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_TYPED_SV_MESSAGE_QUEUE_CPP */
+#endif /* ACE_TYPED_SV_MESSAGE_QUEUE_C */
diff --git a/ace/Typed_SV_Message_Queue.h b/ace/Typed_SV_Message_Queue.h
index f7c2c066654..6c486197450 100644
--- a/ace/Typed_SV_Message_Queue.h
+++ b/ace/Typed_SV_Message_Queue.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,8 +22,6 @@
#include "ace/Typed_SV_Message.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_Typed_SV_Message_Queue
*
@@ -74,8 +72,6 @@ private:
ACE_SV_Message_Queue message_queue_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Typed_SV_Message_Queue.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Typed_SV_Message_Queue.inl b/ace/Typed_SV_Message_Queue.inl
index 21ae9536501..aad60fd2055 100644
--- a/ace/Typed_SV_Message_Queue.inl
+++ b/ace/Typed_SV_Message_Queue.inl
@@ -1,15 +1,14 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-#include "ace/SV_Message_Queue.h"
+// Typed_SV_Message_Queue.i
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#include "ace/SV_Message_Queue.h"
template <class T> ACE_INLINE int
ACE_Typed_SV_Message_Queue<T>::open (key_t external_id,
- int create,
- int perms)
+ int create,
+ int perms)
{
ACE_TRACE ("ACE_Typed_SV_Message_Queue<T>::open");
return this->message_queue_.open (external_id, create, perms);
@@ -26,7 +25,7 @@ ACE_Typed_SV_Message_Queue<T>::close (void)
template <class T> ACE_INLINE int
ACE_Typed_SV_Message_Queue<T>::recv (ACE_Typed_SV_Message<T> &mb,
- int mflags)
+ int mflags)
{
ACE_TRACE ("ACE_Typed_SV_Message_Queue<T>::recv");
@@ -43,7 +42,7 @@ ACE_Typed_SV_Message_Queue<T>::recv (ACE_Typed_SV_Message<T> &mb,
template <class T> ACE_INLINE int
ACE_Typed_SV_Message_Queue<T>::send (const ACE_Typed_SV_Message<T> &mb,
- int mflags)
+ int mflags)
{
ACE_TRACE ("ACE_Typed_SV_Message_Queue<T>::send");
return
@@ -64,7 +63,7 @@ ACE_Typed_SV_Message_Queue<T>::remove (void)
template <class T> ACE_INLINE int
ACE_Typed_SV_Message_Queue<T>::control (int option,
- void *arg)
+ void *arg)
{
ACE_TRACE ("ACE_Typed_SV_Message_Queue<T>::control");
@@ -76,5 +75,3 @@ ACE_Typed_SV_Message_Queue<T>::get_id (void) const
{
return this->message_queue_.get_id ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/UNIX_Addr.cpp b/ace/UNIX_Addr.cpp
index 8dd3c52a36c..043c8872217 100644
--- a/ace/UNIX_Addr.cpp
+++ b/ace/UNIX_Addr.cpp
@@ -10,8 +10,6 @@ ACE_RCSID(ace, UNIX_Addr, "$Id$")
#include "ace/UNIX_Addr.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_UNIX_Addr)
// Set a pointer to the address.
@@ -22,8 +20,8 @@ ACE_UNIX_Addr::set_addr (void *addr, int len)
this->ACE_Addr::base_set (AF_UNIX, len);
ACE_OS::memcpy ((void *) &this->unix_addr_,
- (void *) addr,
- len);
+ (void *) addr,
+ len);
}
// Return a pointer to the underlying address.
@@ -50,7 +48,7 @@ int
ACE_UNIX_Addr::addr_to_string (ACE_TCHAR s[], size_t len) const
{
ACE_OS::strsncpy (s,
- ACE_TEXT_CHAR_TO_TCHAR (this->unix_addr_.sun_path),
+ ACE_TEXT_TO_TCHAR_IN (this->unix_addr_.sun_path),
len);
return 0;
}
@@ -109,7 +107,7 @@ int
ACE_UNIX_Addr::set (const sockaddr_un *un, int len)
{
(void) ACE_OS::memset ((void *) &this->unix_addr_, 0,
- sizeof this->unix_addr_);
+ sizeof this->unix_addr_);
this->unix_addr_.sun_family = AF_UNIX;
ACE_OS::strcpy (this->unix_addr_.sun_path, un->sun_path);
this->base_set (AF_UNIX, len);
@@ -125,17 +123,17 @@ int
ACE_UNIX_Addr::set (const char rendezvous_point[])
{
(void) ACE_OS::memset ((void *) &this->unix_addr_,
- 0,
- sizeof this->unix_addr_);
+ 0,
+ sizeof this->unix_addr_);
this->unix_addr_.sun_family = AF_UNIX;
- (void) ACE_OS::strsncpy (this->unix_addr_.sun_path,
+ (void) ACE_OS::strsncpy (this->unix_addr_.sun_path,
rendezvous_point,
sizeof this->unix_addr_.sun_path);
this->ACE_Addr::base_set (AF_UNIX,
- sizeof this->unix_addr_ -
- sizeof (this->unix_addr_.sun_path) +
- ACE_OS::strlen (this->unix_addr_.sun_path));
+ sizeof this->unix_addr_ -
+ sizeof (this->unix_addr_.sun_path) +
+ ACE_OS::strlen (this->unix_addr_.sun_path));
return 0;
}
@@ -146,6 +144,4 @@ ACE_UNIX_Addr::ACE_UNIX_Addr (const char rendezvous_point[])
this->set (rendezvous_point);
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/UNIX_Addr.h b/ace/UNIX_Addr.h
index fcd6ed9bf46..c1218888d13 100644
--- a/ace/UNIX_Addr.h
+++ b/ace/UNIX_Addr.h
@@ -16,7 +16,12 @@
#include /**/ "ace/pre.h"
-#include "ace/ACE_export.h"
+#ifdef ACE_SOCKETS_BUILD_DLL
+# include "ace/ACE_Sockets_export.h"
+#else
+# include "ace/ACE_export.h"
+# define ACE_Sockets_Export ACE_Export
+#endif /* ACE_SOCKETS_BUILD_DLL */
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -29,14 +34,12 @@
#include "ace/ACE.h"
#include "ace/os_include/sys/os_un.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_UNIX_Addr
*
* @brief Defines the ``UNIX domain address family'' address format.
*/
-class ACE_Export ACE_UNIX_Addr : public ACE_Addr
+class ACE_Sockets_Export ACE_UNIX_Addr : public ACE_Addr
{
public:
// = Initialization methods.
@@ -73,13 +76,11 @@ public:
/// Transform the string into the current addressing format.
virtual int string_to_addr (const char addr[]);
-#if defined (ACE_HAS_WCHAR)
/// Creates an ACE_UNIX_Addr from a string.
ACE_UNIX_Addr (const wchar_t rendezvous_point[]);
/// Creates an ACE_UNIX_Addr from a string.
int set (const wchar_t rendezvous_point[]);
-#endif /* ACE_HAS_WCHAR */
/// Compare two addresses for equality.
bool operator == (const ACE_UNIX_Addr &SAP) const;
@@ -104,14 +105,10 @@ private:
sockaddr_un unix_addr_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/UNIX_Addr.inl"
#endif /* __ACE_INLINE__ */
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
-
#include /**/ "ace/post.h"
-
#endif /* ACE_UNIX_ADDR_H */
diff --git a/ace/UNIX_Addr.inl b/ace/UNIX_Addr.inl
index 34fa002ef34..4a5da40940c 100644
--- a/ace/UNIX_Addr.inl
+++ b/ace/UNIX_Addr.inl
@@ -8,23 +8,19 @@
#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-#if defined (ACE_HAS_WCHAR)
/// Creates an ACE_UNIX_Addr from a string.
ACE_INLINE
ACE_UNIX_Addr::ACE_UNIX_Addr (const wchar_t rendezvous_point[])
{
- this->set (ACE_TEXT_ALWAYS_CHAR (rendezvous_point));
+ this->set (rendezvous_point);
}
/// Creates an ACE_UNIX_Addr from a string.
ACE_INLINE int
ACE_UNIX_Addr::set (const wchar_t rendezvous_point[])
{
- return this->set (ACE_TEXT_ALWAYS_CHAR (rendezvous_point));
+ return this->set (ACE_TEXT_TO_CHAR_IN (rendezvous_point));
}
-#endif /* ACE_HAS_WCHAR */
// Compare two addresses for equality.
@@ -32,8 +28,8 @@ ACE_INLINE bool
ACE_UNIX_Addr::operator == (const ACE_UNIX_Addr &sap) const
{
return ACE_OS::strncmp (this->unix_addr_.sun_path,
- sap.unix_addr_.sun_path,
- sizeof this->unix_addr_.sun_path) == 0;
+ sap.unix_addr_.sun_path,
+ sizeof this->unix_addr_.sun_path) == 0;
}
// Compare two addresses for inequality.
@@ -41,7 +37,7 @@ ACE_UNIX_Addr::operator == (const ACE_UNIX_Addr &sap) const
ACE_INLINE bool
ACE_UNIX_Addr::operator != (const ACE_UNIX_Addr &sap) const
{
- return !((*this) == sap); // This is lazy, of course... ;-)
+ return !((*this) == sap); // This is lazy, of course... ;-)
}
// Return the path name used for the rendezvous point.
@@ -52,6 +48,4 @@ ACE_UNIX_Addr::get_path_name (void) const
return this->unix_addr_.sun_path;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_LACKS_UNIX_DOMAIN_SOCKETS */
diff --git a/ace/UPIPE_Acceptor.cpp b/ace/UPIPE_Acceptor.cpp
index 4b106b4a4be..c7fa930f284 100644
--- a/ace/UPIPE_Acceptor.cpp
+++ b/ace/UPIPE_Acceptor.cpp
@@ -1,3 +1,4 @@
+// UPIPE_Acceptor.cpp
// $Id$
#include "ace/UPIPE_Acceptor.h"
@@ -12,8 +13,6 @@ ACE_RCSID(ace, UPIPE_Acceptor, "$Id$")
#include "ace/UPIPE_Acceptor.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_UPIPE_Acceptor)
void
@@ -41,7 +40,7 @@ ACE_UPIPE_Acceptor::~ACE_UPIPE_Acceptor (void)
int
ACE_UPIPE_Acceptor::open (const ACE_UPIPE_Addr &local_addr,
- int reuse_addr)
+ int reuse_addr)
{
ACE_TRACE ("ACE_UPIPE_Acceptor::open");
return this->ACE_SPIPE_Acceptor::open (local_addr, reuse_addr);
@@ -57,7 +56,7 @@ ACE_UPIPE_Acceptor::close (void)
// General purpose routine for accepting new connections.
ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor (const ACE_UPIPE_Addr &local_addr,
- int reuse_addr)
+ int reuse_addr)
: mb_ (sizeof (ACE_UPIPE_Stream *))
{
ACE_TRACE ("ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor");
@@ -70,9 +69,9 @@ ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor (const ACE_UPIPE_Addr &local_addr,
int
ACE_UPIPE_Acceptor::accept (ACE_UPIPE_Stream &new_stream,
- ACE_UPIPE_Addr *remote_addr,
- ACE_Time_Value *timeout,
- int restart,
+ ACE_UPIPE_Addr *remote_addr,
+ ACE_Time_Value *timeout,
+ int restart,
int reset_new_handle)
{
ACE_TRACE ("ACE_UPIPE_Acceptor::accept");
@@ -81,7 +80,7 @@ ACE_UPIPE_Acceptor::accept (ACE_UPIPE_Stream &new_stream,
ACE_SPIPE_Stream new_io;
if (this->ACE_SPIPE_Acceptor::accept (new_io, remote_addr,
- timeout, restart) == -1)
+ timeout, restart) == -1)
return -1;
else
{
@@ -101,20 +100,20 @@ ACE_UPIPE_Acceptor::accept (ACE_UPIPE_Stream &new_stream,
// ACE_UPIPE_Stream to our ACE_UPIPE_Stream.
if (ACE_OS::read (new_stream.get_handle (),
- (char *) &remote_stream,
- sizeof remote_stream) == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("ACE_UPIPE_Acceptor: %p\n"),
- ACE_LIB_TEXT ("read stream address failed")));
+ (char *) &remote_stream,
+ sizeof remote_stream) == -1)
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("ACE_UPIPE_Acceptor: %p\n"),
+ ACE_LIB_TEXT ("read stream address failed")));
else if (new_stream.stream_.link (remote_stream->stream_) == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("ACE_UPIPE_Acceptor: %p\n"),
- ACE_LIB_TEXT ("link streams failed")));
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("ACE_UPIPE_Acceptor: %p\n"),
+ ACE_LIB_TEXT ("link streams failed")));
// Send a message over the new streampipe to confirm acceptance.
else if (new_stream.send (&mb_, 0) == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("ACE_UPIPE_Acceptor: %p\n"),
- ACE_LIB_TEXT ("linked stream.put failed")));
+ ACE_ERROR ((LM_ERROR,
+ ACE_LIB_TEXT ("ACE_UPIPE_Acceptor: %p\n"),
+ ACE_LIB_TEXT ("linked stream.put failed")));
// Close down the new_stream at this point in order to conserve
// handles. Note that we don't need the SPIPE connection
@@ -124,6 +123,4 @@ ACE_UPIPE_Acceptor::accept (ACE_UPIPE_Stream &new_stream,
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/UPIPE_Acceptor.h b/ace/UPIPE_Acceptor.h
index b7b94179cb6..0f51b3253bb 100644
--- a/ace/UPIPE_Acceptor.h
+++ b/ace/UPIPE_Acceptor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,12 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if defined (ACE_HAS_THREADS)
-
#include "ace/SPIPE_Acceptor.h"
#include "ace/Thread_Manager.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_THREADS)
/**
* @class ACE_UPIPE_Acceptor
@@ -86,14 +84,10 @@ private:
ACE_Message_Block mb_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/UPIPE_Acceptor.inl"
#endif /* __ACE_INLINE__ */
#endif /* ACE_HAS_THREADS */
-
#include /**/ "ace/post.h"
-
#endif /* ACE_UPIPE_ACCEPTOR_H */
diff --git a/ace/UPIPE_Acceptor.inl b/ace/UPIPE_Acceptor.inl
index 731d6be4a6c..0e28e250ab0 100644
--- a/ace/UPIPE_Acceptor.inl
+++ b/ace/UPIPE_Acceptor.inl
@@ -1,14 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE int
ACE_UPIPE_Acceptor::remove (void)
{
ACE_TRACE ("ACE_UPIPE_Acceptor::remove");
return this->ACE_SPIPE_Acceptor::remove ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/UPIPE_Addr.h b/ace/UPIPE_Addr.h
index 75f948c6bf5..2b4d3040527 100644
--- a/ace/UPIPE_Addr.h
+++ b/ace/UPIPE_Addr.h
@@ -1,4 +1,5 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
+
//=============================================================================
/**
@@ -13,7 +14,6 @@
#ifndef ACE_UPIPE_ADDR_H
#define ACE_UPIPE_ADDR_H
-
#include /**/ "ace/pre.h"
#include "ace/SPIPE_Addr.h"
@@ -22,12 +22,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
typedef ACE_SPIPE_Addr ACE_UPIPE_Addr;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* ACE_UPIPE_ADDR_H */
diff --git a/ace/UPIPE_Connector.cpp b/ace/UPIPE_Connector.cpp
index ba0b4592d2f..455d982e993 100644
--- a/ace/UPIPE_Connector.cpp
+++ b/ace/UPIPE_Connector.cpp
@@ -1,3 +1,4 @@
+// UPIPE_Connector.cpp
// $Id$
#include "ace/UPIPE_Connector.h"
@@ -6,16 +7,12 @@ ACE_RCSID(ace, UPIPE_Connector, "$Id$")
#if defined (ACE_HAS_THREADS)
-#include "ace/Handle_Ops.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/OS_NS_stropts.h"
#if !defined (__ACE_INLINE__)
#include "ace/UPIPE_Connector.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_UPIPE_Connector)
void
@@ -92,10 +89,7 @@ ACE_UPIPE_Connector::connect (ACE_UPIPE_Stream &new_stream,
// connection anymore since we're linked via the Message_Queue
// now.
new_stream.ACE_SPIPE::close ();
- return static_cast<int> (result);
+ return result;
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_THREADS */
diff --git a/ace/UPIPE_Connector.h b/ace/UPIPE_Connector.h
index c2778f82a11..b98ab643c92 100644
--- a/ace/UPIPE_Connector.h
+++ b/ace/UPIPE_Connector.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,9 +21,9 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if defined (ACE_HAS_THREADS)
+#include "ace/SPIPE_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_THREADS)
/**
* @class ACE_UPIPE_Connector
@@ -102,14 +102,10 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/UPIPE_Connector.inl"
#endif /* __ACE_INLINE__ */
#endif /* ACE_HAS_THREADS */
-
#include /**/ "ace/post.h"
-
#endif /* ACE_UPIPE_CONNECTOR_H */
diff --git a/ace/UPIPE_Connector.inl b/ace/UPIPE_Connector.inl
index b45134f1067..980d8a28164 100644
--- a/ace/UPIPE_Connector.inl
+++ b/ace/UPIPE_Connector.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Creates a Local ACE_UPIPE.
ACE_INLINE
ACE_UPIPE_Connector::ACE_UPIPE_Connector (ACE_UPIPE_Stream &new_stream,
@@ -16,7 +13,7 @@ ACE_UPIPE_Connector::ACE_UPIPE_Connector (ACE_UPIPE_Stream &new_stream,
{
ACE_TRACE ("ACE_UPIPE_Connector::ACE_UPIPE_Connector");
if (this->connect (new_stream, addr, timeout, local_sap,
- reuse_addr, flags, perms) == -1
+ reuse_addr, flags, perms) == -1
&& timeout != 0 && !(errno == EWOULDBLOCK || errno == ETIME))
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("address %s, %p\n"),
@@ -25,10 +22,9 @@ ACE_UPIPE_Connector::ACE_UPIPE_Connector (ACE_UPIPE_Stream &new_stream,
}
ACE_INLINE int
-ACE_UPIPE_Connector::reset_new_handle (ACE_HANDLE /* handle */)
+ACE_UPIPE_Connector::reset_new_handle (ACE_HANDLE handle)
{
+ ACE_UNUSED_ARG (handle);
// Nothing to do here since the handle is not a socket
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/UPIPE_Stream.cpp b/ace/UPIPE_Stream.cpp
index 53b170d23cd..4df8d5fc547 100644
--- a/ace/UPIPE_Stream.cpp
+++ b/ace/UPIPE_Stream.cpp
@@ -1,18 +1,17 @@
+// UPIPE_Stream.cpp
// $Id$
#include "ace/UPIPE_Stream.h"
+#include "ace/OS_NS_string.h"
ACE_RCSID(ace, UPIPE_Stream, "$Id$")
#if defined (ACE_HAS_THREADS)
-#include "ace/OS_NS_string.h"
-
#if !defined (__ACE_INLINE__)
#include "ace/UPIPE_Stream.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_UPIPE_Stream)
@@ -226,6 +225,5 @@ ACE_UPIPE_Stream::recv_n (char *buf,
return bytes_read;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
#endif /* ACE_HAS_THREADS */
diff --git a/ace/UPIPE_Stream.h b/ace/UPIPE_Stream.h
index 98e31cf3349..f9002d2c255 100644
--- a/ace/UPIPE_Stream.h
+++ b/ace/UPIPE_Stream.h
@@ -22,13 +22,14 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-#if defined (ACE_HAS_THREADS)
-
#include "ace/SPIPE.h"
#include "ace/Message_Queue.h"
#include "ace/UPIPE_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#if defined (ACE_HAS_THREADS)
+
+// Use a typedef to make life easier later on.
+typedef ACE_Stream<ACE_SYNCH> MT_Stream;
/**
* @class ACE_UPIPE_Stream
@@ -41,8 +42,6 @@ public:
friend class ACE_UPIPE_Acceptor;
friend class ACE_UPIPE_Connector;
- typedef ACE_Stream<ACE_SYNCH> MT_Stream;
-
// = Initialization and Termination.
ACE_UPIPE_Stream (void);
@@ -128,14 +127,10 @@ private:
#endif /* ACE_MT_SAFE */
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/UPIPE_Stream.inl"
#endif /* __ACE_INLINE__ */
#endif /* ACE_HAS_THREADS */
-
#include /**/ "ace/post.h"
-
#endif /*ACE_UPIPE_STREAM_H */
diff --git a/ace/UPIPE_Stream.inl b/ace/UPIPE_Stream.inl
index 3a33d287b0b..9bd3912d1ba 100644
--- a/ace/UPIPE_Stream.inl
+++ b/ace/UPIPE_Stream.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE ACE_HANDLE
ACE_UPIPE_Stream::get_handle (void) const
{
@@ -11,4 +8,3 @@ ACE_UPIPE_Stream::get_handle (void) const
return this->ACE_SPIPE::get_handle ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/UTF16_Encoding_Converter.cpp b/ace/UTF16_Encoding_Converter.cpp
deleted file mode 100644
index d57ab9e5154..00000000000
--- a/ace/UTF16_Encoding_Converter.cpp
+++ /dev/null
@@ -1,364 +0,0 @@
-// $Id$
-
-// ======================================================================
-//
-// The actual conversion methods are covered by the copyright information
-// below. It is not the actual code provided by Unicode, Inc. but is an
-// ACE-ified and only slightly modified version.
-// Chad Elliott 4/28/2005
-//
-// Copyright 2001-2004 Unicode, Inc.
-//
-// Limitations on Rights to Redistribute This Code
-//
-// Unicode, Inc. hereby grants the right to freely use the information
-// supplied in this file in the creation of products supporting the
-// Unicode Standard, and to make copies of this file in any form
-// for internal or external distribution as long as this notice
-// remains attached.
-//
-// ======================================================================
-
-#include "ace/UTF16_Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_Memory.h"
-#include "ace/Min_Max.h"
-
-#if !defined (__ACE_INLINE__)
-#include "ace/UTF16_Encoding_Converter.inl"
-#endif /* __ACE_INLINE__ */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-static const ACE_UINT32 halfShift = 10;
-static const ACE_UINT32 halfBase = 0x00010000;
-static const ACE_UINT32 halfMask = 0x000003FF;
-
-static const ACE_UINT32 UNI_SUR_HIGH_START = 0x0000D800;
-static const ACE_UINT32 UNI_SUR_HIGH_END = 0x0000DBFF;
-static const ACE_UINT32 UNI_SUR_LOW_START = 0x0000DC00;
-static const ACE_UINT32 UNI_SUR_LOW_END = 0x0000DFFF;
-static const ACE_UINT32 UNI_REPLACEMENT_CHAR = 0x0000FFFD;
-static const ACE_UINT32 UNI_MAX_BMP = 0x0000FFFF;
-static const ACE_UINT32 UNI_MAX_UTF16 = 0x0010FFFF;
-
-// Once the bits are split out into bytes of UTF-8, this is a mask OR-ed
-// into the first byte, depending on how many bytes follow. There are
-// as many entries in this table as there are UTF-8 sequence types.
-// (I.e., one byte sequence, two byte... etc.). Remember that sequencs
-// for *legal* UTF-8 will be 4 or fewer bytes total.
-static const ACE_Byte firstByteMark[7] = { 0x00, 0x00, 0xC0,
- 0xE0, 0xF0, 0xF8, 0xFC };
-
-// Index into the table below with the first byte of a UTF-8 sequence to
-// get the number of trailing bytes that are supposed to follow it.
-// Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
-// left as-is for anyone who may want to do such conversion, which was
-// allowed in earlier algorithms.
-static const ACE_Byte trailingBytesForUTF8[256] = {
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
-};
-
-// Magic values subtracted from a buffer value during UTF8 conversion.
-// This table contains as many values as there might be trailing bytes
-// in a UTF-8 sequence.
-static const ACE_UINT32 offsetsFromUTF8[6] = { 0x00000000, 0x00003080,
- 0x000E2080, 0x03C82080,
- 0xFA082080, 0x82082080 };
-
-
-ACE_UTF16_Encoding_Converter::ACE_UTF16_Encoding_Converter (bool swap)
- : swap_ (swap)
-{
-}
-
-ACE_UTF16_Encoding_Converter::~ACE_UTF16_Encoding_Converter (void)
-{
-}
-
-ACE_UTF16_Encoding_Converter::Result
-ACE_UTF16_Encoding_Converter::to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool strict)
-{
- static const ACE_UINT32 byteMask = 0xBF;
- static const ACE_UINT32 byteMark = 0x80;
- Result result = CONVERSION_OK;
-
- ACE_Byte* targetEnd = target + target_size;
- const ACE_UINT16* sourceStart = static_cast<const ACE_UINT16*> (source);
- const ACE_UINT16* sourceEnd = sourceStart +
- (source_size / sizeof (ACE_UINT16));
-
- while (sourceStart < sourceEnd)
- {
- ACE_UINT16 nw = *sourceStart++;
- ACE_UINT32 ch = (this->swap_ ? ACE_SWAP_WORD (nw) : nw);
-
- // If we have a surrogate pair, convert to ACE_UINT32 first.
- if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END)
- {
- // If the 16 bits following the high surrogate are in the
- // sourceStart buffer...
- if (sourceStart < sourceEnd)
- {
- ACE_UINT32 ch2 = (this->swap_ ? ACE_SWAP_WORD (*sourceStart) :
- *sourceStart);
- // If it's a low surrogate, convert to ACE_UINT32.
- if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END)
- {
- ch = ((ch - UNI_SUR_HIGH_START) << halfShift)
- + (ch2 - UNI_SUR_LOW_START) + halfBase;
- ++sourceStart;
- }
- else if (strict)
- {
- // it's an unpaired high surrogate
- result = SOURCE_ILLEGAL;
- break;
- }
- }
- else
- {
- // We don't have the 16 bits following the high surrogate.
- result = SOURCE_EXHAUSTED;
- break;
- }
- }
- else if (strict)
- {
- // UTF-16 surrogate values are illegal in UTF-32
- if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END)
- {
- result = SOURCE_ILLEGAL;
- break;
- }
- }
-
- // Figure out how many bytes the result will require
- unsigned short bytesToWrite = 0;
- if (ch < 0x80)
- bytesToWrite = 1;
- else if (ch < 0x800)
- bytesToWrite = 2;
- else if (ch < 0x10000)
- bytesToWrite = 3;
- else if (ch < 0x110000)
- bytesToWrite = 4;
- else
- {
- bytesToWrite = 3;
- ch = UNI_REPLACEMENT_CHAR;
- }
-
- target += bytesToWrite;
- if (target > targetEnd)
- {
- result = TARGET_EXHAUSTED;
- break;
- }
-
- // NOTE: Everything falls through for efficiency purposes.
- switch (bytesToWrite)
- {
- case 4:
- *--target = (ACE_Byte)((ch | byteMark) & byteMask);
- ch >>= 6;
- case 3:
- *--target = (ACE_Byte)((ch | byteMark) & byteMask);
- ch >>= 6;
- case 2:
- *--target = (ACE_Byte)((ch | byteMark) & byteMask);
- ch >>= 6;
- case 1:
- *--target = (ACE_Byte)(ch | firstByteMark[bytesToWrite]);
- }
- target += bytesToWrite;
- }
-
- return result;
-}
-
-ACE_UTF16_Encoding_Converter::Result
-ACE_UTF16_Encoding_Converter::from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict)
-{
- Result result = CONVERSION_OK;
- const ACE_Byte* sourceEnd = source + source_size;
- ACE_UINT16* targetStart = static_cast<ACE_UINT16*> (target);
- ACE_UINT16* targetEnd = targetStart + target_size;
-
- while (source < sourceEnd)
- {
- ACE_UINT32 ch = 0;
- unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
- if (source + extraBytesToRead >= sourceEnd)
- {
- result = SOURCE_EXHAUSTED;
- break;
- }
-
- // Do this check whether lenient or strict
- if (!this->is_legal_utf8 (source, extraBytesToRead + 1))
- {
- result = SOURCE_ILLEGAL;
- break;
- }
-
- // The cases all fall through. See "Note A" below.
- switch (extraBytesToRead)
- {
- case 5: // remember, illegal UTF-8
- ch += *source++;
- ch <<= 6;
- case 4: // remember, illegal UTF-8
- ch += *source++;
- ch <<= 6;
- case 3:
- ch += *source++;
- ch <<= 6;
- case 2:
- ch += *source++;
- ch <<= 6;
- case 1:
- ch += *source++;
- ch <<= 6;
- case 0:
- ch += *source++;
- }
- ch -= offsetsFromUTF8[extraBytesToRead];
-
- if (targetStart >= targetEnd)
- {
- result = TARGET_EXHAUSTED;
- break;
- }
-
- if (ch <= UNI_MAX_BMP) // Target is a character <= 0xFFFF
- {
- // UTF-16 surrogate values are illegal in UTF-32
- if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END)
- {
- if (strict)
- {
- result = SOURCE_ILLEGAL;
- break;
- }
- else
- {
- *targetStart++ = UNI_REPLACEMENT_CHAR;
- }
- }
- else
- {
- *targetStart++ = (ACE_UINT16)ch;
- }
- }
- else if (ch > UNI_MAX_UTF16)
- {
- if (strict)
- {
- result = SOURCE_ILLEGAL;
- break;
- }
- else
- {
- *targetStart++ = UNI_REPLACEMENT_CHAR;
- }
- }
- else
- {
- // targetStart is a character in range 0xFFFF - 0x10FFFF.
- if (targetStart + 1 >= targetEnd)
- {
- result = TARGET_EXHAUSTED;
- break;
- }
- ch -= halfBase;
- *targetStart++ = (ACE_UINT16)((ch >> halfShift) + UNI_SUR_HIGH_START);
- *targetStart++ = (ACE_UINT16)((ch & halfMask) + UNI_SUR_LOW_START);
- }
- }
-
- return result;
-}
-
-ACE_UTF16_Encoding_Converter*
-ACE_UTF16_Encoding_Converter::encoded (const ACE_Byte* source,
- size_t source_size)
-{
- static const size_t begin = 16;
- static const size_t converted = begin * 4;
-
- ACE_Byte target[converted];
- ACE_UTF16_Encoding_Converter* converter;
- ACE_NEW_RETURN (converter,
- ACE_UTF16_Encoding_Converter (false),
- 0);
- if (converter->to_utf8 (source,
- ACE_MIN (begin, source_size),
- target,
- converted) == CONVERSION_OK)
- {
- return converter;
- }
- else
- {
- delete converter;
- }
-
- return 0;
-}
-
-ACE_UINT32
-ACE_UTF16_Encoding_Converter::get_UNI_SUR_HIGH_START (void)
-{
- return UNI_SUR_HIGH_START;
-}
-
-ACE_UINT32
-ACE_UTF16_Encoding_Converter::get_UNI_SUR_LOW_END (void)
-{
- return UNI_SUR_LOW_END;
-}
-
-ACE_UINT32
-ACE_UTF16_Encoding_Converter::get_UNI_REPLACEMENT_CHAR (void)
-{
- return UNI_REPLACEMENT_CHAR;
-}
-
-const ACE_Byte*
-ACE_UTF16_Encoding_Converter::get_first_byte_mark (void)
-{
- return firstByteMark;
-}
-
-const ACE_Byte*
-ACE_UTF16_Encoding_Converter::get_trailing_bytes_for_utf8 (void)
-{
- return trailingBytesForUTF8;
-}
-
-const ACE_UINT32*
-ACE_UTF16_Encoding_Converter::get_offsets_from_utf8 (void)
-{
- return offsetsFromUTF8;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
diff --git a/ace/UTF16_Encoding_Converter.h b/ace/UTF16_Encoding_Converter.h
deleted file mode 100644
index 82d8255b286..00000000000
--- a/ace/UTF16_Encoding_Converter.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// -*- C++ -*-
-
-//=========================================================================
-/**
- * @file UTF16_Encoding_Converter.h
- *
- * $Id$
- *
- * This class contains declarations for methods that convert between
- * UTF-16 (both BE and LE) and UTF-8
- *
- * @author Chad Elliott <elliott_c@ociweb.com>
- */
-//=========================================================================
-
-#ifndef ACE_UTF16_ENCODING_CONVERTER_H
-#define ACE_UTF16_ENCODING_CONVERTER_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/** Convert from UTF-16 to UTF-8 and from UTF-8 to UTF-16.
- * This class implements the ACE_Encoding_Converter interface.
- */
-class ACE_UTF16_Encoding_Converter: public ACE_Encoding_Converter
-{
-public:
- /// The swap parameter determines whether we need to swap byte order on
- /// the stream as each word is pulled off when converting to UTF-8.
- ACE_UTF16_Encoding_Converter (bool swap = false);
-
- /// This is a do nothing destructor.
- virtual ~ACE_UTF16_Encoding_Converter (void);
-
- /// Convert the source from UTF-16 to UTF-8 and store it in the
- /// provided target buffer.
- virtual Result to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool strict = true);
-
- /// Convert the UTF-8 source into a UTF-16 encoding and store it
- /// in the provided target buffer.
- virtual Result from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict = true);
-
- /// This factory helper method determines if the source stream is UTF-16
- /// encoded. If it is, allocate an ACE_UTF16_Encoding_Converter and
- /// return it. The caller then owns the allocated object.
- static ACE_UTF16_Encoding_Converter* encoded (const ACE_Byte* source,
- size_t source_size);
-
-protected:
- /// Determines if the source buffer is legal UTF-8
- bool is_legal_utf8 (const ACE_Byte* source,
- size_t length) const;
-
- static ACE_UINT32 get_UNI_SUR_HIGH_START (void);
- static ACE_UINT32 get_UNI_SUR_LOW_END (void);
- static ACE_UINT32 get_UNI_REPLACEMENT_CHAR (void);
- static const ACE_Byte* get_first_byte_mark (void);
- static const ACE_Byte* get_trailing_bytes_for_utf8 (void);
- static const ACE_UINT32* get_offsets_from_utf8 (void);
-
- bool swap_;
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#if defined (__ACE_INLINE__)
-#include "ace/UTF16_Encoding_Converter.inl"
-#endif /* __ACE_INLINE__ */
-
-#endif /* ACE_USES_WCHAR */
-
-#include /**/ "ace/post.h"
-
-#endif /* ACE_UTF16_ENCODING_CONVERTER_H */
diff --git a/ace/UTF16_Encoding_Converter.inl b/ace/UTF16_Encoding_Converter.inl
deleted file mode 100644
index 1c716092092..00000000000
--- a/ace/UTF16_Encoding_Converter.inl
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-// ======================================================================
-//
-// The actual conversion methods are covered by the copyright information
-// below.
-// Chad Elliott 4/28/2005
-//
-// Copyright 2001-2004 Unicode, Inc.
-//
-// Limitations on Rights to Redistribute This Code
-//
-// Unicode, Inc. hereby grants the right to freely use the information
-// supplied in this file in the creation of products supporting the
-// Unicode Standard, and to make copies of this file in any form
-// for internal or external distribution as long as this notice
-// remains attached.
-//
-// ======================================================================
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_INLINE bool
-ACE_UTF16_Encoding_Converter::is_legal_utf8 (const ACE_Byte* source,
- size_t length) const
-{
- ACE_Byte a;
- const ACE_Byte* srcptr = source + length;
-
- switch (length)
- {
- default:
- return false;
-
- // Everything else falls through when "true"...
- case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false;
- case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false;
- case 2: if ((a = (*--srcptr)) > 0xBF) return false;
-
- switch (*source)
- {
- // no fall-through in this inner switch
- case 0xE0:
- if (a < 0xA0)
- return false;
- break;
- case 0xED:
- if (a > 0x9F)
- return false;
- break;
- case 0xF0:
- if (a < 0x90)
- return false;
- break;
- case 0xF4:
- if (a > 0x8F)
- return false;
- break;
- default:
- if (a < 0x80)
- return false;
- }
-
- case 1:
- if (*source >= 0x80 && *source < 0xC2)
- return false;
- }
-
- if (*source > 0xF4)
- return false;
-
- return true;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/UTF32_Encoding_Converter.cpp b/ace/UTF32_Encoding_Converter.cpp
deleted file mode 100644
index 2280232e58a..00000000000
--- a/ace/UTF32_Encoding_Converter.cpp
+++ /dev/null
@@ -1,254 +0,0 @@
-// $Id$
-
-// ======================================================================
-//
-// The actual conversion methods are covered by the copyright information
-// below. It is not the actual code provided by Unicode, Inc. but is an
-// ACE-ified and only slightly modified version.
-//
-// Chad Elliott 4/28/2005
-//
-// Copyright 2001-2004 Unicode, Inc.
-//
-// Limitations on Rights to Redistribute This Code
-//
-// Unicode, Inc. hereby grants the right to freely use the information
-// supplied in this file in the creation of products supporting the
-// Unicode Standard, and to make copies of this file in any form
-// for internal or external distribution as long as this notice
-// remains attached.
-//
-// ======================================================================
-
-#include "ace/UTF32_Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_Memory.h"
-#include "ace/Min_Max.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-static const ACE_UINT32 UNI_MAX_LEGAL_UTF32 = 0x0010FFFF;
-
-ACE_UTF32_Encoding_Converter::ACE_UTF32_Encoding_Converter (bool swap)
- : ACE_UTF16_Encoding_Converter (swap)
-{
-}
-
-ACE_UTF32_Encoding_Converter::~ACE_UTF32_Encoding_Converter (void)
-{
-}
-
-ACE_UTF32_Encoding_Converter::Result
-ACE_UTF32_Encoding_Converter::to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool strict)
-{
- static const ACE_UINT32 byteMask = 0xBF;
- static const ACE_UINT32 byteMark = 0x80;
- static const ACE_UINT32 UNI_SUR_HIGH_START = get_UNI_SUR_HIGH_START ();
- static const ACE_UINT32 UNI_SUR_LOW_END = get_UNI_SUR_LOW_END ();
- static const ACE_Byte* firstByteMark = get_first_byte_mark ();
-
- Result result = CONVERSION_OK;
- ACE_Byte* targetEnd = target + target_size;
- const ACE_UINT32* sourceStart = static_cast<const ACE_UINT32*> (source);
- const ACE_UINT32* sourceEnd = sourceStart + (source_size / sizeof (ACE_UINT32));
-
- while (sourceStart < sourceEnd)
- {
- ACE_UINT32 nw = *sourceStart++;
- ACE_UINT32 ch = (this->swap_ ? ACE_SWAP_LONG (nw) : nw);
- unsigned short bytesToWrite = 0;
-
- if (strict)
- {
- // UTF-16 surrogate values are illegal in UTF-32
- if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END)
- {
- result = SOURCE_ILLEGAL;
- break;
- }
- }
-
- // Figure out how many bytes the result will require. Turn any
- // illegally large ACE_UINT32 things (> Plane 17) into replacement
- // chars.
- if (ch < 0x80)
- {
- bytesToWrite = 1;
- }
- else if (ch < 0x800)
- {
- bytesToWrite = 2;
- }
- else if (ch < 0x10000)
- {
- bytesToWrite = 3;
- }
- else if (ch <= UNI_MAX_LEGAL_UTF32)
- {
- bytesToWrite = 4;
- }
- else
- {
- result = SOURCE_ILLEGAL;
- break;
- }
-
- target += bytesToWrite;
- if (target > targetEnd)
- {
- result = TARGET_EXHAUSTED;
- break;
- }
-
- // NOTE: everything falls through.
- switch (bytesToWrite)
- {
- case 4:
- *--target = (ACE_Byte)((ch | byteMark) & byteMask);
- ch >>= 6;
- case 3:
- *--target = (ACE_Byte)((ch | byteMark) & byteMask);
- ch >>= 6;
- case 2:
- *--target = (ACE_Byte)((ch | byteMark) & byteMask);
- ch >>= 6;
- case 1:
- *--target = (ACE_Byte) (ch | firstByteMark[bytesToWrite]);
- }
- target += bytesToWrite;
- }
-
- return result;
-}
-
-ACE_UTF32_Encoding_Converter::Result
-ACE_UTF32_Encoding_Converter::from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict)
-{
- static const ACE_UINT32 UNI_SUR_HIGH_START = get_UNI_SUR_HIGH_START ();
- static const ACE_UINT32 UNI_SUR_LOW_END = get_UNI_SUR_LOW_END ();
- static const ACE_UINT32 UNI_REPLACEMENT_CHAR = get_UNI_REPLACEMENT_CHAR ();
- static const ACE_Byte* trailingBytesForUTF8 = get_trailing_bytes_for_utf8 ();
- static const ACE_UINT32* offsetsFromUTF8 = get_offsets_from_utf8 ();
-
- Result result = CONVERSION_OK;
- const ACE_Byte* sourceEnd = source + source_size;
- ACE_UINT32* targetStart = static_cast<ACE_UINT32*> (target);
- ACE_UINT32* targetEnd = targetStart + target_size;
-
- while (source < sourceEnd)
- {
- ACE_UINT32 ch = 0;
- unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
- if (source + extraBytesToRead >= sourceEnd)
- {
- result = SOURCE_EXHAUSTED;
- break;
- }
-
- // Do this check whether lenient or strict
- if (!this->is_legal_utf8 (source, extraBytesToRead + 1))
- {
- result = SOURCE_ILLEGAL;
- break;
- }
-
- // The cases all fall through. See "Note A" below.
- switch (extraBytesToRead)
- {
- case 5:
- ch += *source++;
- ch <<= 6;
- case 4:
- ch += *source++;
- ch <<= 6;
- case 3:
- ch += *source++;
- ch <<= 6;
- case 2:
- ch += *source++;
- ch <<= 6;
- case 1:
- ch += *source++;
- ch <<= 6;
- case 0:
- ch += *source++;
- }
- ch -= offsetsFromUTF8[extraBytesToRead];
-
- if (targetStart >= targetEnd)
- {
- result = TARGET_EXHAUSTED;
- break;
- }
-
- if (ch <= UNI_MAX_LEGAL_UTF32)
- {
- // UTF-16 surrogate values are illegal in UTF-32, and anything
- // over Plane 17 (> 0x10FFFF) is illegal.
- if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END)
- {
- if (strict)
- {
- result = SOURCE_ILLEGAL;
- break;
- }
- else
- {
- *targetStart++ = UNI_REPLACEMENT_CHAR;
- }
- }
- else
- {
- *targetStart++ = ch;
- }
- }
- else
- {
- result = SOURCE_ILLEGAL;
- break;
- }
- }
-
- return result;
-}
-
-ACE_UTF32_Encoding_Converter*
-ACE_UTF32_Encoding_Converter::encoded (const ACE_Byte* source,
- size_t source_size)
-{
- static const size_t begin = 16;
- static const size_t converted = begin * 4;
-
- ACE_Byte target[converted];
- ACE_UTF32_Encoding_Converter* converter = 0;
- ACE_NEW_RETURN (converter,
- ACE_UTF32_Encoding_Converter (false),
- 0);
-
- if (converter->to_utf8 (source,
- ACE_MIN (begin, source_size),
- target,
- converted) == CONVERSION_OK)
- {
- return converter;
- }
- else
- {
- delete converter;
- }
-
- return 0;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
diff --git a/ace/UTF32_Encoding_Converter.h b/ace/UTF32_Encoding_Converter.h
deleted file mode 100644
index 3777d2eff0a..00000000000
--- a/ace/UTF32_Encoding_Converter.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// -*- C++ -*-
-
-//=========================================================================
-/**
- * @file UTF32_Encoding_Converter.h
- *
- * $Id$
- *
- * This class contains declarations for methods that convert between
- * UTF-32 (both BE and LE) and UTF-8
- *
- * @author Chad Elliott <elliott_c@ociweb.com>
- */
-//=========================================================================
-
-#ifndef ACE_UTF32_ENCODING_CONVERTER_H
-#define ACE_UTF32_ENCODING_CONVERTER_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/UTF16_Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/** Convert from UTF-32 to UTF-8 and from UTF-8 to UTF-32.
- * This class implements the ACE_Encoding_Converter interface.
- */
-class ACE_UTF32_Encoding_Converter: public ACE_UTF16_Encoding_Converter
-{
-public:
- /// This class has some similarities to the UTF16 converter, so
- /// we just construct our base class and pass the swap parameter.
- ACE_UTF32_Encoding_Converter (bool swap = false);
-
- /// This is a do nothing destructor.
- virtual ~ACE_UTF32_Encoding_Converter (void);
-
- /// Convert the source from UTF-32 to UTF-8 and store it in the
- /// provided target buffer.
- virtual Result to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool strict = true);
-
- /// Convert the UTF-8 source into a UTF-32 encoding and store it
- /// in the provided target buffer.
- virtual Result from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict = true);
-
- /// This factory helper method determines if the source stream is UTF-32
- /// encoded. If it is, allocate an ACE_UTF32_Encoding_Converter and
- /// return it. The caller then owns the allocated object.
- static ACE_UTF32_Encoding_Converter* encoded (const ACE_Byte* source,
- size_t source_size);
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
-
-#include /**/ "ace/post.h"
-
-#endif /* ACE_UTF32_ENCODING_CONVERTER_H */
diff --git a/ace/UTF8_Encoding_Converter.cpp b/ace/UTF8_Encoding_Converter.cpp
deleted file mode 100644
index 0a6ee6e54f5..00000000000
--- a/ace/UTF8_Encoding_Converter.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-// $Id$
-
-#include "ace/UTF8_Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-#include "ace/UTF16_Encoding_Converter.h"
-#include "ace/UTF32_Encoding_Converter.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_Memory.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-ACE_UTF8_Encoding_Converter::ACE_UTF8_Encoding_Converter (void)
- : native_ (0)
-{
- // Choose a converter for the ASCII or UTF-8 string to a wide character
- // string which we will use in from_utf8. We have to make an
- // assumption here about the encoding based on the size of ACE_TCHAR.
- switch (sizeof (ACE_TCHAR))
- {
- case 4:
- ACE_NEW(this->native_, ACE_UTF32_Encoding_Converter);
- break;
- case 2:
- ACE_NEW(this->native_, ACE_UTF16_Encoding_Converter);
- break;
- }
-}
-
-ACE_UTF8_Encoding_Converter::~ACE_UTF8_Encoding_Converter (void)
-{
- delete native_;
-}
-
-ACE_UTF8_Encoding_Converter::Result
-ACE_UTF8_Encoding_Converter::to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool /*strict*/)
-{
- if (target_size >= source_size)
- {
- ACE_OS::memcpy (target, source, source_size);
- return CONVERSION_OK;
- }
-
- return TARGET_EXHAUSTED;
-}
-
-ACE_UTF8_Encoding_Converter::Result
-ACE_UTF8_Encoding_Converter::from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict)
-{
- if (this->native_ != 0)
- {
- return this->native_->from_utf8(source, source_size,
- target, target_size, strict);
- }
-
- ACE_TCHAR* targetStart = static_cast<ACE_TCHAR*> (target);
- ACE_OS::strncpy (targetStart,
- ACE_TEXT_CHAR_TO_TCHAR (
- reinterpret_cast<const char*> (source)),
- source_size);
- targetStart[source_size] = 0;
- return CONVERSION_OK;
-}
-
-ACE_UTF8_Encoding_Converter*
-ACE_UTF8_Encoding_Converter::encoded (const ACE_Byte* source,
- size_t source_size)
-{
- for(size_t i = 0; i < source_size; i++)
- {
- if (source[i] < 0x01 || source[i] > 0x7f)
- return 0;
- }
-
- // All characters are "valid" ASCII
- ACE_UTF8_Encoding_Converter* converter = 0;
- ACE_NEW_RETURN (converter,
- ACE_UTF8_Encoding_Converter,
- 0);
- return converter;
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
diff --git a/ace/UTF8_Encoding_Converter.h b/ace/UTF8_Encoding_Converter.h
deleted file mode 100644
index 4ef6fb7fad3..00000000000
--- a/ace/UTF8_Encoding_Converter.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// -*- C++ -*-
-
-//=========================================================================
-/**
- * @file UTF8_Encoding_Converter.h
- *
- * $Id$
- *
- * This class contains declarations for methods that convert between
- * UTF-8 and the native ACE_TCHAR representation.
- *
- * @author Chad Elliott <elliott_c@ociweb.com>
- */
-//=========================================================================
-
-#ifndef ACE_UTF8_ENCODING_CONVERTER_H
-#define ACE_UTF8_ENCODING_CONVERTER_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/Encoding_Converter.h"
-
-#if defined (ACE_USES_WCHAR)
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/** Convert from UTF-16 or UTF-32 to UTF-8.
- * This class implements the ACE_Encoding_Converter interface.
- */
-class ACE_UTF8_Encoding_Converter: public ACE_Encoding_Converter
-{
-public:
- /// Allocate the converter to be used by the from_utf8() method based
- /// on the size of the native wide character.
- ACE_UTF8_Encoding_Converter (void);
-
- /// De-allocate the native converter.
- virtual ~ACE_UTF8_Encoding_Converter (void);
-
- /// Since the source *must be* UTF-8, there is no conversion required.
- /// This method just copies the source to the target given that there
- /// is enough space.
- virtual Result to_utf8 (const void* source,
- size_t source_size,
- ACE_Byte* target,
- size_t target_size,
- bool strict = true);
-
- /// Utilize the native converter to convert the UTF-8 source into an
- /// alternate encoding and store it in the provided target buffer.
- virtual Result from_utf8 (const ACE_Byte* source,
- size_t source_size,
- void* target,
- size_t target_size,
- bool strict = true);
-
-
- /// This factory helper method determines if the source stream is UTF-8
- /// encoded. If it is, allocate an ACE_UTF8_Encoding_Converter and
- /// return it. The caller then owns the allocated object.
- static ACE_UTF8_Encoding_Converter* encoded (const ACE_Byte* source,
- size_t source_size);
-
-private:
- ACE_Encoding_Converter* native_;
-};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-#endif /* ACE_USES_WCHAR */
-
-#include /**/ "ace/post.h"
-
-#endif /* ACE_UTF8_ENCODING_CONVERTER_H */
diff --git a/ace/UUID.cpp b/ace/UUID.cpp
index 7054faf5093..0873cc7d903 100644
--- a/ace/UUID.cpp
+++ b/ace/UUID.cpp
@@ -20,8 +20,6 @@ ACE_RCSID (ace,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_Utils
{
@@ -371,8 +369,8 @@ namespace ACE_Utils
u_char cseqHAV;
{
ACE_GUARD (ACE_SYNCH_MUTEX, mon, *lock_);
- uuid.clockSeqLow (static_cast<u_char> (uuid_state_.clockSequence & 0xFF));
- cseqHAV = static_cast<u_char> ((uuid_state_.clockSequence & 0x3f00) >> 8);
+ uuid.clockSeqLow (uuid_state_.clockSequence & 0xFF);
+ cseqHAV = (uuid_state_.clockSequence & 0x3f00) >> 8;
uuid_state_.timestamp = timestamp;
}
@@ -411,19 +409,27 @@ namespace ACE_Utils
void
UUID_Generator::get_timestamp (UUID_time& timestamp)
{
- ACE_GUARD (ACE_SYNCH_MUTEX, mon, *lock_);
-
this->get_systemtime(timestamp);
- // Account for the clock being set back. Increment the clock /
- // sequence.
+ /// Account for the clock being set back. Increment the clock
+ /// sequence.
if (timestamp <= timeLast_)
- uuid_state_.clockSequence = static_cast<u_char> ((uuid_state_.clockSequence + 1) & ACE_UUID_CLOCK_SEQ_MASK);
+ {
+ {
+ ACE_GUARD (ACE_SYNCH_MUTEX, mon, *lock_);
+ uuid_state_.clockSequence = (uuid_state_.clockSequence + 1) & ACE_UUID_CLOCK_SEQ_MASK;
+ }
+ }
- // If the system time ticked since the last UUID was
- // generated. Set / the clock sequence back.
+ /// If the system time ticked since the last UUID was generated. Set
+ /// the clock sequence back.
else if (timestamp > timeLast_)
- uuid_state_.clockSequence = 0;
+ {
+ {
+ ACE_GUARD (ACE_SYNCH_MUTEX, mon, *lock_);
+ uuid_state_.clockSequence = 0;
+ }
+ }
timeLast_ = timestamp;
}
@@ -481,5 +487,3 @@ template class ACE_Singleton <ACE_Utils::UUID_Generator, ACE_SYNCH_MUTEX>;
template ACE_Singleton<ACE_Utils::UUID_Generator, ACE_SYNCH_MUTEX> *
ACE_Singleton<ACE_Utils::UUID_Generator, ACE_SYNCH_MUTEX>::singleton_;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/UUID.h b/ace/UUID.h
index 9a1a9cce956..9882c24cef5 100644
--- a/ace/UUID.h
+++ b/ace/UUID.h
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-
+/* -*- C++ -*- */
//=============================================================================
/**
* @file UUID.h
@@ -25,8 +24,6 @@
#include "ace/Singleton.h"
#include "ace/Synch_Traits.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE_Utils
{
/// Class to hold a MAC address
@@ -218,12 +215,10 @@ namespace ACE_Utils
int destroy_lock_;
};
- typedef ACE_Singleton<UUID_Generator, ACE_SYNCH_MUTEX> UUID_GENERATOR;
+ typedef ACE_Singleton <UUID_Generator, ACE_SYNCH_MUTEX> UUID_GENERATOR;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/UUID.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/UUID.inl b/ace/UUID.inl
index 7eb8dd323de..0bd9fc053c6 100644
--- a/ace/UUID.inl
+++ b/ace/UUID.inl
@@ -1,8 +1,5 @@
-// -*- C++ -*-
-//
//$Id$
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// -*- C++ -*-
namespace ACE_Utils
{
@@ -197,5 +194,3 @@ namespace ACE_Utils
// return false;
// }
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Unbounded_Queue.cpp b/ace/Unbounded_Queue.cpp
index cde3e6679b6..332fddb4428 100644
--- a/ace/Unbounded_Queue.cpp
+++ b/ace/Unbounded_Queue.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_UNBOUNDED_QUEUE_CPP
-#define ACE_UNBOUNDED_QUEUE_CPP
+#ifndef ACE_UNBOUNDED_QUEUE_C
+#define ACE_UNBOUNDED_QUEUE_C
#include "ace/Unbounded_Queue.h"
@@ -17,7 +17,7 @@
#include "ace/Log_Msg.h"
#include "ace/os_include/os_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Unbounded_Queue, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Unbounded_Queue)
@@ -134,7 +134,7 @@ ACE_Unbounded_Queue<T>::delete_nodes (void)
this->allocator_->free,
ACE_Node,
<T>);
- --this->cur_size_;
+ this->cur_size_--;
// @@ Doesnt make sense to have this check since
// this will always be true.
// ACE_ASSERT (this->cur_size_ >= 0);
@@ -174,7 +174,7 @@ ACE_Unbounded_Queue<T>::enqueue_head (const T &new_item)
// just a pointer to the dummy node.
this->head_->next_ = temp;
- ++this->cur_size_;
+ this->cur_size_++;
return 0;
}
@@ -201,7 +201,7 @@ ACE_Unbounded_Queue<T>::enqueue_tail (const T &new_item)
// Point the head to the new dummy node.
this->head_ = temp;
- ++this->cur_size_;
+ this->cur_size_++;
return 0;
}
@@ -429,6 +429,4 @@ ACE_Unbounded_Queue_Iterator<T>::next (T *&item)
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_UNBOUNDED_QUEUE_CPP */
+#endif /* ACE_UNBOUNDED_QUEUE_C */
diff --git a/ace/Unbounded_Queue.h b/ace/Unbounded_Queue.h
index 39314168da8..fca8b344d30 100644
--- a/ace/Unbounded_Queue.h
+++ b/ace/Unbounded_Queue.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,8 +23,6 @@
// For size_t under Chorus
#include "ace/os_include/os_stddef.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Allocator;
template <class T>
@@ -280,8 +278,6 @@ protected:
ACE_Allocator *allocator_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Unbounded_Queue.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Unbounded_Queue.inl b/ace/Unbounded_Queue.inl
index 35bb7fb9cdf..ea552e7d3d8 100644
--- a/ace/Unbounded_Queue.inl
+++ b/ace/Unbounded_Queue.inl
@@ -1,9 +1,5 @@
-// -*- C++ -*-
-//
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE size_t
ACE_Unbounded_Queue<T>::size (void) const
{
@@ -23,5 +19,3 @@ ACE_Unbounded_Queue<T>::is_full (void) const
// ACE_TRACE ("ACE_Unbounded_Queue<T>::is_full");
return 0; // We should implement a "node of last resort for this..."
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Unbounded_Set.cpp b/ace/Unbounded_Set.cpp
index c3a444ccd8a..54ffa30a0f2 100644
--- a/ace/Unbounded_Set.cpp
+++ b/ace/Unbounded_Set.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_UNBOUNDED_SET_CPP
-#define ACE_UNBOUNDED_SET_CPP
+#ifndef ACE_UNBOUNDED_SET_C
+#define ACE_UNBOUNDED_SET_C
#include "ace/Unbounded_Set.h"
#include "ace/Malloc_Base.h"
@@ -15,7 +15,7 @@
#include "ace/Unbounded_Set.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Unbounded_Set, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Unbounded_Set)
@@ -46,7 +46,7 @@ ACE_Unbounded_Set<T>::insert_tail (const T &item)
// Point the head to the new dummy node.
this->head_ = temp;
- ++this->cur_size_;
+ this->cur_size_++;
return 0;
}
@@ -107,7 +107,7 @@ ACE_Unbounded_Set<T>::delete_nodes (void)
this->allocator_->free,
ACE_Node,
<T>);
- --this->cur_size_;
+ this->cur_size_--;
}
// Reset the list to be a circular list with just a dummy node.
@@ -227,7 +227,7 @@ ACE_Unbounded_Set<T>::remove (const T &item)
ACE_Node<T> *temp = curr->next_;
// Skip over the node that we're deleting.
curr->next_ = temp->next_;
- --this->cur_size_;
+ this->cur_size_--;
ACE_DES_FREE_TEMPLATE (temp,
this->allocator_->free,
ACE_Node,
@@ -440,13 +440,11 @@ ACE_Unbounded_Set_Const_Iterator<T>::operator* (void)
//ACE_TRACE ("ACE_Unbounded_Set_Const_Iterator<T>::operator*");
T *retv = 0;
- int const result = this->next (retv);
+ int result = this->next (retv);
ACE_ASSERT (result != 0);
ACE_UNUSED_ARG (result);
return *retv;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_UNBOUNDED_SET_CPP */
+#endif /* ACE_UNBOUNDED_SET_C */
diff --git a/ace/Unbounded_Set.h b/ace/Unbounded_Set.h
index 8cddab86f12..d4f2a957cdd 100644
--- a/ace/Unbounded_Set.h
+++ b/ace/Unbounded_Set.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
class ACE_Allocator;
/**
@@ -98,8 +96,8 @@ public:
// = Iteration methods.
- /// Pass back the @a next_item that hasn't been seen in the Set.
- /// @return Returns 0 when all items have been seen, else 1.
+ /// Pass back the <next_item> that hasn't been seen in the Set.
+ /// Returns 0 when all items have been seen, else 1.
int next (T *&next_item);
/// Move forward by one element in the set. Returns 0 when all the
@@ -301,8 +299,6 @@ private:
ACE_Allocator *allocator_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Unbounded_Set.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Unbounded_Set.inl b/ace/Unbounded_Set.inl
index 363fe6e4a6d..9aad60c4a08 100644
--- a/ace/Unbounded_Set.inl
+++ b/ace/Unbounded_Set.inl
@@ -1,11 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T> ACE_INLINE int
ACE_Unbounded_Set<T>::is_empty (void) const
{
@@ -19,5 +16,3 @@ ACE_Unbounded_Set<T>::is_full (void) const
ACE_TRACE ("ACE_Unbounded_Set<T>::is_full");
return 0; // We should implement a "node of last resort for this..."
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Value_Ptr.h b/ace/Value_Ptr.h
index 70570f9c34b..4c05f288409 100644
--- a/ace/Value_Ptr.h
+++ b/ace/Value_Ptr.h
@@ -16,12 +16,8 @@
#ifndef ACE_VALUE_PTR_H
#define ACE_VALUE_PTR_H
-#include "ace/config-lite.h"
-
#include <algorithm>
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
/**
@@ -162,6 +158,4 @@ namespace ACE
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_VALUE_PTR_H */
diff --git a/ace/Vector_T.cpp b/ace/Vector_T.cpp
index adf9727c6ff..2dcbd96f67c 100644
--- a/ace/Vector_T.cpp
+++ b/ace/Vector_T.cpp
@@ -1,7 +1,7 @@
// $Id$
-#ifndef ACE_VECTOR_T_CPP
-#define ACE_VECTOR_T_CPP
+#ifndef ACE_VECTOR_T_C
+#define ACE_VECTOR_T_C
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -13,13 +13,13 @@
#include "ace/Vector_T.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(ace, Vector_T, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Vector)
template <class T, size_t DEFAULT_SIZE>
void ACE_Vector<T, DEFAULT_SIZE>::resize (const size_t new_size,
- const T& t)
+ const T& t)
{
ACE_Array<T>::size (new_size);
if (new_size > length_)
@@ -101,9 +101,9 @@ int compare(const ACE_Vector<T>& v1,
// cout<<", V2["<<i<<"]="<<v2[i];
// cout<<": NOT EQUAL == "<<(v1[i]!=v2[i])<<endl;
if (v1[i] != v2[i])
- {
- return false;
- }
+ {
+ return false;
+ }
}
// cout<<"compare() ====================>"<<endl;
return true;
@@ -111,9 +111,9 @@ int compare(const ACE_Vector<T>& v1,
template<class T>
int partial_compare(const ACE_Vector<T>& v1,
- const ACE_Vector<T>& v2,
- const size_t from_ndx,
- const size_t to_ndx)
+ const ACE_Vector<T>& v2,
+ const size_t from_ndx,
+ const size_t to_ndx)
{
size_t last1 = v1.size () - 1;
size_t last2 = v2.size () - 1;
@@ -132,9 +132,9 @@ int partial_compare(const ACE_Vector<T>& v1,
// cout<<", V2["<<i<<"]="<<v2[i];
// cout<<": NOT EQUAL == "<<(v1[i]!=v2[i])<<endl;
if (v1[i] != v2[i])
- {
- return false;
- }
+ {
+ return false;
+ }
}
// cout<<"partial_compare() ====================>"<<endl;
return true;
@@ -160,6 +160,4 @@ ACE_Vector_Iterator<T, DEFAULT_SIZE>::next (T *&item)
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_VECTOR_T_CPP */
+#endif /* ACE_VECTOR_T_C */
diff --git a/ace/Vector_T.h b/ace/Vector_T.h
index b82ea62b90e..c6e5b60b074 100644
--- a/ace/Vector_T.h
+++ b/ace/Vector_T.h
@@ -22,12 +22,10 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/*
* Default size for an ACE_Vector.
*/
-static const size_t ACE_VECTOR_DEFAULT_SIZE = 32;
+const size_t ACE_VECTOR_DEFAULT_SIZE = 32;
// Forward declaration.
template <class T, size_t DEFAULT_SIZE> class ACE_Vector_Iterator;
@@ -85,7 +83,7 @@ public:
* default ACE allocator is used
*/
ACE_Vector (const size_t init_size = DEFAULT_SIZE,
- ACE_Allocator* alloc = 0);
+ ACE_Allocator* alloc = 0);
/**
* Destructor.
@@ -130,7 +128,7 @@ public:
* initialization clause for this parameter).
*/
void resize (const size_t new_size,
- const T& t);
+ const T& t);
/**
* Appends a new element to the vector ("push back"). If the
@@ -224,9 +222,9 @@ protected:
*/
template<class T>
int compare (const ACE_Vector<T>& v1,
- const ACE_Vector<T>& v2,
- const size_t from_ndx,
- const size_t to_ndx);
+ const ACE_Vector<T>& v2,
+ const size_t from_ndx,
+ const size_t to_ndx);
/**
* Does a partial comparison of two vectors in the range of
@@ -246,9 +244,9 @@ int compare (const ACE_Vector<T>& v1,
template<class T>
int partial_compare (const ACE_Vector<T>& v1,
- const ACE_Vector<T>& v2,
- const size_t from_ndx,
- const size_t to_ndx);
+ const ACE_Vector<T>& v2,
+ const size_t from_ndx,
+ const size_t to_ndx);
#endif /* 0 */
// ****************************************************************
@@ -295,8 +293,6 @@ private:
ACE_Vector<T, DEFAULT_SIZE> &vector_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/Vector_T.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/Vector_T.inl b/ace/Vector_T.inl
index aef981b447d..a936c2bfe4d 100644
--- a/ace/Vector_T.inl
+++ b/ace/Vector_T.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template <class T, size_t DEFAULT_SIZE> ACE_INLINE
ACE_Vector<T, DEFAULT_SIZE>::ACE_Vector (const size_t init_size,
- ACE_Allocator* alloc)
+ ACE_Allocator* alloc)
: ACE_Array<T> (init_size == 0 ? DEFAULT_SIZE : init_size, alloc)
{
length_ = 0;
@@ -91,5 +88,3 @@ ACE_Vector_Iterator<T, DEFAULT_SIZE>::done (void) const
return this->current_ >= vector_.size ();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/Version.h b/ace/Version.h
index 6860a98084e..0c8ed950821 100644
--- a/ace/Version.h
+++ b/ace/Version.h
@@ -1,10 +1,7 @@
-// -*- C++ -*-
// $Id$
-
-// This is file was automatically generated by $ACE_ROOT/bin/make_release.
+// This is an automatically generated file.
#define ACE_MAJOR_VERSION 5
-#define ACE_MINOR_VERSION 5
-#define ACE_BETA_VERSION 0
-#define ACE_VERSION "5.5"
-
+#define ACE_MINOR_VERSION 4
+#define ACE_BETA_VERSION 7
+#define ACE_VERSION "5.4.7"
diff --git a/ace/Versioned_Namespace.h b/ace/Versioned_Namespace.h
deleted file mode 100644
index ee07260220e..00000000000
--- a/ace/Versioned_Namespace.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file Versioned_Namespace.h
- *
- * $Id$
- *
- * Versioned namespace support.
- *
- * Useful for preventing conflicts when using a third party library.
- *
- * @author Ossama Othman <ossama@dre.vanderbilt.edu>
- */
-//=============================================================================
-
-#ifndef ACE_VERSIONED_NAMESPACE_H
-#define ACE_VERSIONED_NAMESPACE_H
-
-#ifndef ACE_CONFIG_MACROS_H
-# error This header is only meant to be included by or after "ace/config-lite.h".
-#endif /* !ACE_CONFIG_LITE_H */
-
-
-#if defined (ACE_HAS_VERSIONED_NAMESPACE) && ACE_HAS_VERSIONED_NAMESPACE == 1 \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
-
-# ifndef ACE_VERSIONED_NAMESPACE_NAME
-//# include "ace/Version.h"
-
-// Preprocessor symbols will not be expanded if they are
-// concatenated. Force the preprocessor to expand them during the
-// argument prescan by calling a macro that itself calls another that
-// performs the actual concatenation.
-# define ACE_MAKE_VERSIONED_NAMESPACE_NAME_IMPL(MAJOR,MINOR,BETA) ACE_ ## MAJOR ## _ ## MINOR ## _ ## BETA
-# define ACE_MAKE_VERSIONED_NAMESPACE_NAME(MAJOR,MINOR,BETA) ACE_MAKE_VERSIONED_NAMESPACE_NAME_IMPL(MAJOR,MINOR,BETA)
-# define ACE_VERSIONED_NAMESPACE_NAME ACE_MAKE_VERSIONED_NAMESPACE_NAME(ACE_MAJOR_VERSION,ACE_MINOR_VERSION,ACE_BETA_VERSION)
-# endif /* !ACE_VERSIONED_NAMESPACE_NAME */
-
-# define ACE_BEGIN_VERSIONED_NAMESPACE_DECL namespace ACE_VERSIONED_NAMESPACE_NAME {
-# define ACE_END_VERSIONED_NAMESPACE_DECL } \
- using namespace ACE_VERSIONED_NAMESPACE_NAME;
-
-#else
-
-# define ACE_VERSIONED_NAMESPACE_NAME
-
-# define ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-# define ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_HAS_VERSIONED_NAMESPACE */
-
-#endif /* !ACE_VERSIONED_NAMESPACE_H */
diff --git a/ace/WFMO_Reactor.cpp b/ace/WFMO_Reactor.cpp
index 7ccd0c254f2..2b3e3b86df5 100644
--- a/ace/WFMO_Reactor.cpp
+++ b/ace/WFMO_Reactor.cpp
@@ -18,8 +18,6 @@ ACE_RCSID(ace, WFMO_Reactor, "$Id$")
#include "ace/Auto_Ptr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_WFMO_Reactor_Handler_Repository::ACE_WFMO_Reactor_Handler_Repository (ACE_WFMO_Reactor &wfmo_reactor)
: wfmo_reactor_ (wfmo_reactor)
{
@@ -2393,7 +2391,7 @@ ACE_WFMO_Reactor_Notify::handle_signal (int signum,
else
{
ACE_Notification_Buffer *buffer =
- reinterpret_cast <ACE_Notification_Buffer *> (mb->base ());
+ (ACE_Notification_Buffer *) mb->base ();
// If eh == 0 then we've got major problems! Otherwise, we
// need to dispatch the appropriate handle_* method on the
@@ -2557,7 +2555,7 @@ ACE_WFMO_Reactor_Notify::purge_pending_notifications (ACE_Event_Handler *eh,
for (index = 0; index < queue_size; ++index)
{
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
if (-1 == this->message_queue_.dequeue_head (mb))
return -1; // This shouldn't happen...
@@ -2606,7 +2604,7 @@ ACE_WFMO_Reactor_Notify::purge_pending_notifications (ACE_Event_Handler *eh,
queue_size = local_queue.message_count ();
for (index = 0; index < queue_size; ++index)
{
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
if (-1 == local_queue.dequeue_head (mb))
{
ACE_ASSERT (0);
@@ -2678,22 +2676,28 @@ ACE_WFMO_Reactor::resumable_handler (void)
// No-op WinSOCK2 methods to help WFMO_Reactor compile
#if !defined (ACE_HAS_WINSOCK2) || (ACE_HAS_WINSOCK2 == 0)
int
-WSAEventSelect (SOCKET /* s */,
- WSAEVENT /* hEventObject */,
- long /* lNetworkEvents */)
+WSAEventSelect (SOCKET s,
+ WSAEVENT hEventObject,
+ long lNetworkEvents)
{
+ ACE_UNUSED_ARG (s);
+ ACE_UNUSED_ARG (hEventObject);
+ ACE_UNUSED_ARG (lNetworkEvents);
+
return -1;
}
int
-WSAEnumNetworkEvents (SOCKET /* s */,
- WSAEVENT /* hEventObject */,
- LPWSANETWORKEVENTS /* lpNetworkEvents */)
+WSAEnumNetworkEvents (SOCKET s,
+ WSAEVENT hEventObject,
+ LPWSANETWORKEVENTS lpNetworkEvents)
{
+ ACE_UNUSED_ARG (s);
+ ACE_UNUSED_ARG (hEventObject);
+ ACE_UNUSED_ARG (lpNetworkEvents);
+
return -1;
}
#endif /* !defined ACE_HAS_WINSOCK2 */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
diff --git a/ace/WFMO_Reactor.h b/ace/WFMO_Reactor.h
index 8e3cdb4cc28..7be1525ea8a 100644
--- a/ace/WFMO_Reactor.h
+++ b/ace/WFMO_Reactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -73,10 +73,6 @@ int WSAEnumNetworkEvents (SOCKET s,
#endif /* !defined ACE_HAS_WINSOCK2 */
-class ACE_WFMO_Reactor_Test; // Must be out of versioned namespace.
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward decl.
class ACE_WFMO_Reactor;
class ACE_Handle_Set;
@@ -97,8 +93,8 @@ public:
/**
* @class ACE_WFMO_Reactor_Handler_Repository
*
- * @brief Used to map ACE_HANDLEs onto the appropriate
- * ACE_Event_Handler * and other information.
+ * @brief Used to map <ACE_HANDLE>s onto the appropriate
+ * <ACE_Event_Handler> * and other information.
*/
class ACE_Export ACE_WFMO_Reactor_Handler_Repository
{
@@ -308,7 +304,7 @@ public:
// = Search structure operations.
- /// Bind the <ACE_Event_Handler *> to the ACE_HANDLE. This is for
+ /// Bind the <ACE_Event_Handler *> to the <ACE_HANDLE>. This is for
/// the simple event entry.
int bind (ACE_HANDLE, ACE_Event_Handler *);
@@ -321,7 +317,7 @@ public:
ACE_HANDLE event_handle,
int delete_event);
- /// Remove the binding of ACE_HANDLE in accordance with the <mask>.
+ /// Remove the binding of <ACE_HANDLE> in accordance with the <mask>.
int unbind (ACE_HANDLE,
ACE_Reactor_Mask mask);
@@ -342,12 +338,12 @@ public:
/// Maximum ACE_HANDLE value, plus 1.
DWORD max_handlep1 (void) const;
- /// Pointer to the beginning of the current array of ACE_HANDLE
+ /// Pointer to the beginning of the current array of <ACE_HANDLE>
/// *'s.
ACE_HANDLE *handles (void) const;
/// Pointer to the beginning of the current array of
- /// ACE_Event_Handler *'s.
+ /// <ACE_Event_Handler> *'s.
Current_Info *current_info (void) const;
/// Check if changes to the handle set are required.
@@ -397,15 +393,15 @@ public:
/// current_suspended_info_ from to_be_added_info_
int make_changes_in_to_be_added_infos (void);
- /// Removes the ACE_Event_Handler at <slot> from the table.
+ /// Removes the <ACE_Event_Handler> at <slot> from the table.
int remove_handler_i (size_t slot,
ACE_Reactor_Mask mask);
- /// Removes the ACE_Event_Handler at <slot> from the table.
+ /// Removes the <ACE_Event_Handler> at <slot> from the table.
int remove_suspended_handler_i (size_t slot,
ACE_Reactor_Mask mask);
- /// Removes the ACE_Event_Handler at <slot> from the table.
+ /// Removes the <ACE_Event_Handler> at <slot> from the table.
int remove_to_be_added_handler_i (size_t slot,
ACE_Reactor_Mask to_be_removed_masks);
@@ -481,7 +477,7 @@ protected:
* @class ACE_WFMO_Reactor_Notify
*
* @brief Unblock the <ACE_WFMO_Reactor> from its event loop, passing
- * it an optional ACE_Event_Handler to dispatch.
+ * it an optional <ACE_Event_Handler> to dispatch.
*
* This implementation is necessary for cases where the
* <ACE_WFMO_Reactor> is run in a multi-threaded program. In
@@ -489,7 +485,7 @@ protected:
* <WaitForMultipleObjects> when updates occur other than in the
* main <ACE_WFMO_Reactor> thread. To do this, we signal an
* auto-reset event the <ACE_WFMO_Reactor> is listening on. If
- * an ACE_Event_Handler and <ACE_Reactor_Mask> is passed to
+ * an <ACE_Event_Handler> and <ACE_Reactor_Mask> is passed to
* <notify>, the appropriate <handle_*> method is dispatched.
*/
class ACE_Export ACE_WFMO_Reactor_Notify : public ACE_Reactor_Notify
@@ -509,7 +505,7 @@ public:
/**
* Special trick to unblock <WaitForMultipleObjects> when updates
* occur. All we do is enqueue <event_handler> and <mask> onto the
- * ACE_Message_Queue and wakeup the <WFMO_Reactor> by signaling
+ * <ACE_Message_Queue> and wakeup the <WFMO_Reactor> by signaling
* its <ACE_Event> handle. The <ACE_Time_Value> indicates how long
* to blocking trying to notify the <WFMO_Reactor>. If <timeout> ==
* 0, the caller will block until action is possible, else will wait
@@ -568,7 +564,7 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. If <eh> == 0, all notifications for all
+ * <ACE_Event_Handler> object. If <eh> == 0, all notifications for all
* handlers are removed (but not any notifications posted just to wake up
* the reactor itself). Returns the number of notifications purged.
* Returns -1 on error.
@@ -736,7 +732,7 @@ public:
*
* <WaitForMultipleObjects> is used as the demultiplexing call
*
- * Returns the total number of I/O and timer ACE_Event_Handlers
+ * Returns the total number of I/O and timer <ACE_Event_Handler>s
* that were dispatched, 0 if the <max_wait_time> elapsed without
* dispatching any handlers, or -1 if an error occurs.
*
@@ -779,7 +775,7 @@ public:
// = Register and remove Handlers.
/**
- * Register an ACE_Event_Handler <event_handler>. Since no Event
+ * Register an <ACE_Event_Handler> <event_handler>. Since no Event
* Mask is passed through this interface, it is assumed that the
* <handle> being passed in is an event handle and when the event
* becomes signaled, <WFMO_Reactor> will call handle_signal on
@@ -791,7 +787,7 @@ public:
ACE_HANDLE event_handle = ACE_INVALID_HANDLE);
/**
- * Register an ACE_Event_Handler <event_handle>. <mask> specifies
+ * Register an <ACE_Event_Handler> <event_handle>. <mask> specifies
* the network events that the <event_handler> is interested in. If
* <io_handle> == <ACE_INVALID_HANDLE> the <ACE_WFMO_Reactor> will
* call the <get_handle> method of <event_handler> to extract the
@@ -1063,7 +1059,7 @@ public:
/**
* Purge any notifications pending in this reactor for the specified
- * ACE_Event_Handler object. Returns the number of notifications
+ * <ACE_Event_Handler> object. Returns the number of notifications
* purged. Returns -1 on error.
*/
virtual int purge_pending_notifications (ACE_Event_Handler * = 0,
@@ -1346,8 +1342,6 @@ private:
ACE_WFMO_Reactor &operator = (const ACE_WFMO_Reactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/WFMO_Reactor.inl"
#endif /* __ACE_INLINE__ */
diff --git a/ace/WFMO_Reactor.inl b/ace/WFMO_Reactor.inl
index adf8ca96634..e8893728b3a 100644
--- a/ace/WFMO_Reactor.inl
+++ b/ace/WFMO_Reactor.inl
@@ -1,5 +1,4 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
#include "ace/Handle_Set.h"
@@ -7,15 +6,16 @@
#include "ace/Thread.h"
#include "ace/OS_NS_errno.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/************************************************************/
ACE_INLINE int
-ACE_Wakeup_All_Threads_Handler::handle_signal (int /* signum */,
- siginfo_t * /* siginfo */,
+ACE_Wakeup_All_Threads_Handler::handle_signal (int signum,
+ siginfo_t *siginfo,
ucontext_t *)
{
+ ACE_UNUSED_ARG (signum);
+ ACE_UNUSED_ARG (siginfo);
+
// This will get called when <WFMO_Reactor->wakeup_all_threads_> event
// is signaled. There is nothing to be done here.
// ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) waking up to get updated handle set info\n")));
@@ -1168,5 +1168,3 @@ ACE_WFMO_Reactor_Handler_Repository::~ACE_WFMO_Reactor_Handler_Repository (void)
}
#endif /* ACE_WIN32 */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/WIN32_Asynch_IO.cpp b/ace/WIN32_Asynch_IO.cpp
index d638761d121..39e72b6f575 100644
--- a/ace/WIN32_Asynch_IO.cpp
+++ b/ace/WIN32_Asynch_IO.cpp
@@ -17,8 +17,6 @@ ACE_RCSID (ace,
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_socket.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
size_t
ACE_WIN32_Asynch_Result::bytes_transferred (void) const
{
@@ -168,7 +166,7 @@ ACE_WIN32_Asynch_Operation::cancel (void)
{
#if (defined (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0)) \
&& ( (defined (_MSC_VER)) \
- || (defined (__BORLANDC__)) \
+ || (defined (__BORLANDC__) && (__BORLANDC__ >= 0x530)) \
|| (defined (__MINGW32)))
// All I/O operations that are canceled will complete with the error
// ERROR_OPERATION_ABORTED. All completion notifications for the I/O
@@ -595,9 +593,7 @@ ACE_WIN32_Asynch_Read_Stream::shared_read (ACE_WIN32_Asynch_Read_Stream_Result *
ACE_OS::set_errno_to_last_error ();
switch (errno)
{
- case ERROR_IO_PENDING:
- /* FALLTHRU */
- case ERROR_MORE_DATA:
+ case ERROR_IO_PENDING:
// The IO will complete proactively: the OVERLAPPED will still
// get queued.
return 0;
@@ -2578,7 +2574,9 @@ ACE_WIN32_Asynch_Connect::connect_i (ACE_WIN32_Asynch_Connect_Result *result,
result->set_error (errno);
}
return 1 ; // connect finished
- }
+ }
+
+ ACE_NOTREACHED (return 0);
}
@@ -3338,15 +3336,15 @@ ACE_WIN32_Asynch_Read_Dgram::recv (ACE_Message_Block *message_block,
-1);
// do the scatter/gather recv
- ssize_t initiate_result = ACE_OS::recvfrom (result->handle (),
- iov,
- iovcnt,
- number_of_bytes_recvd,
- result->flags_,
- result->saddr (),
- &(result->addr_len_),
- result,
- 0);
+ int initiate_result = ACE_OS::recvfrom (result->handle (),
+ iov,
+ iovcnt,
+ number_of_bytes_recvd,
+ result->flags_,
+ result->saddr (),
+ &(result->addr_len_),
+ result,
+ 0);
if (initiate_result == SOCKET_ERROR)
{
// If initiate failed, check for a bad error.
@@ -3665,15 +3663,15 @@ ACE_WIN32_Asynch_Write_Dgram::send (ACE_Message_Block *message_block,
// do the scatter/gather send
- ssize_t initiate_result = ACE_OS::sendto (result->handle (),
- iov,
- iovcnt,
- number_of_bytes_sent,
- result->flags_,
- (sockaddr *) addr.get_addr (),
- addr.get_size(),
- result,
- 0);
+ int initiate_result = ACE_OS::sendto (result->handle (),
+ iov,
+ iovcnt,
+ number_of_bytes_sent,
+ result->flags_,
+ (sockaddr *) addr.get_addr (),
+ addr.get_size(),
+ result,
+ 0);
if (initiate_result == SOCKET_ERROR)
@@ -3772,6 +3770,4 @@ template class ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_WIN32_Asynch_Connect_Res
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 || ACE_HAS_WINCE */
diff --git a/ace/WIN32_Asynch_IO.h b/ace/WIN32_Asynch_IO.h
index 298563c7d88..f8683a7c24d 100644
--- a/ace/WIN32_Asynch_IO.h
+++ b/ace/WIN32_Asynch_IO.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -41,8 +41,6 @@
#include "ace/Map_Manager.h"
#include "ace/Null_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declaration
class ACE_WIN32_Proactor;
@@ -691,7 +689,7 @@ public:
/**
* Same as above but with scatter support, through chaining of
* composite message blocks using the continuation field.
- * @note Each data block payload must be at least the size of a
+ * NOTE: Each data block payload must be at least the size of a
* system memory page and must be aligned on a system memory page
* size boundary
*/
@@ -898,7 +896,7 @@ public:
/**
* Same as above but with gather support, through chaining of
* composite message blocks using the continuation field.
- * @note Each data block payload must be at least the size of a
+ * NOTE: Each data block payload must be at least the size of a
* system memory page and must be aligned on a system memory page
* size boundary
*/
@@ -1929,8 +1927,6 @@ protected:
ACE_WIN32_Asynch_Write_Dgram (void);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
#include /**/ "ace/post.h"
#endif /* ACE_WIN32_ASYNCH_IO_H */
diff --git a/ace/WIN32_Proactor.cpp b/ace/WIN32_Proactor.cpp
index c96fa8b3040..56bd9ceb779 100644
--- a/ace/WIN32_Proactor.cpp
+++ b/ace/WIN32_Proactor.cpp
@@ -12,8 +12,6 @@
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_unistd.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_WIN32_Wakeup_Completion
*
@@ -21,7 +19,7 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
* ACE_Proactor interface to wake up all the threads blocking
* for completions.
*/
-class ACE_WIN32_Wakeup_Completion : public ACE_WIN32_Asynch_Result
+class ACE_Export ACE_WIN32_Wakeup_Completion : public ACE_WIN32_Asynch_Result
{
public:
@@ -87,11 +85,11 @@ ACE_WIN32_Proactor::close (void)
{
ACE_OVERLAPPED *overlapped = 0;
u_long bytes_transferred = 0;
-#if defined (_MSC_VER) && (_MSC_VER < 1300)
- ULONG completion_key = 0;
-#else
+#if defined (ACE_WIN64)
ULONG_PTR completion_key = 0;
-#endif
+#else
+ ULONG completion_key = 0;
+#endif /* ACE_WIN64 */
// Get the next asynchronous operation that completes
BOOL res = ::GetQueuedCompletionStatus
@@ -122,11 +120,11 @@ int
ACE_WIN32_Proactor::register_handle (ACE_HANDLE handle,
const void *completion_key)
{
-#if defined (_MSC_VER) && (_MSC_VER < 1300)
- ULONG comp_key (reinterpret_cast<ULONG> (completion_key));
-#else
+#if defined (ACE_WIN64)
ULONG_PTR comp_key (reinterpret_cast<ULONG_PTR> (completion_key));
-#endif
+#else
+ ULONG comp_key (reinterpret_cast<ULONG> (completion_key));
+#endif /* ACE_WIN64 */
// No locking is needed here as no state changes.
ACE_HANDLE cp = ::CreateIoCompletionPort (handle,
@@ -570,11 +568,11 @@ ACE_WIN32_Proactor::handle_events (unsigned long milli_seconds)
{
ACE_OVERLAPPED *overlapped = 0;
u_long bytes_transferred = 0;
-#if defined (_MSC_VER) && (_MSC_VER < 1300)
- ULONG completion_key = 0;
+#if defined (ACE_WIN64)
+ ULONG_PTR completion_key = 0;
#else
- ULONG_PTR completion_key = 0;
-#endif
+ ULONG completion_key = 0;
+#endif /* ACE_WIN64 */
// Get the next asynchronous operation that completes
BOOL result = ::GetQueuedCompletionStatus (this->completion_port_,
@@ -687,12 +685,11 @@ ACE_WIN32_Proactor::post_completion (ACE_WIN32_Asynch_Result *result)
bytes_transferred = static_cast<DWORD> (result->bytes_transferred ());
completion_key = result->completion_key();
}
-
-#if defined (_MSC_VER) && (_MSC_VER < 1300)
- ULONG comp_key (reinterpret_cast<ULONG> (completion_key));
-#else
+#if defined (ACE_WIN64)
ULONG_PTR comp_key (reinterpret_cast<ULONG_PTR> (completion_key));
-#endif
+#else
+ ULONG comp_key (reinterpret_cast<ULONG> (completion_key));
+#endif /* ACE_WIN64 */
// Post a completion
if (::PostQueuedCompletionStatus (this->completion_port_, // completion port
@@ -713,7 +710,7 @@ ACE_WIN32_Proactor::post_completion (ACE_WIN32_Asynch_Result *result)
}
// If Proactor event is valid, signal it
- if (handle != ACE_INVALID_HANDLE
+ if (handle != ACE_INVALID_HANDLE
&& handle != 0)
ACE_OS::event_signal (&handle);
@@ -815,6 +812,4 @@ ACE_WIN32_Wakeup_Completion::complete (size_t /* bytes_transferred */,
handler->handle_wakeup ();
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
diff --git a/ace/WIN32_Proactor.h b/ace/WIN32_Proactor.h
index fc4fd7312de..27d78888459 100644
--- a/ace/WIN32_Proactor.h
+++ b/ace/WIN32_Proactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -34,8 +34,6 @@
#include "ace/Asynch_Pseudo_Task.h"
#include "ace/Auto_Event.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_WIN32_Asynch_Result;
class ACE_WIN32_Proactor_Timer_Handler;
@@ -67,7 +65,7 @@ public:
/// This method adds the @a handle to the I/O completion port. This
/// function is a no-op function for Unix systems.
virtual int register_handle (ACE_HANDLE handle,
- const void *completion_key);
+ const void *completion_key);
/**
* Dispatch a single set of events. If @a wait_time elapses before
@@ -237,7 +235,7 @@ protected:
/// Called when object is removed from the ACE_Reactor.
virtual int handle_close (ACE_HANDLE handle,
- ACE_Reactor_Mask close_mask);
+ ACE_Reactor_Mask close_mask);
/**
* Dispatch a single set of events. If @a milli_seconds elapses
@@ -249,9 +247,9 @@ protected:
/// Protect against structured exceptions caused by user code when
/// dispatching handles.
void application_specific_code (ACE_WIN32_Asynch_Result *asynch_result,
- size_t bytes_transferred,
- const void *completion_key,
- u_long error);
+ size_t bytes_transferred,
+ const void *completion_key,
+ u_long error);
/**
* Post @a how_many completions to the completion port so that all
@@ -293,7 +291,7 @@ protected:
* called, the <handler>'s handle_timeout method will be
* called.
*/
-class ACE_WIN32_Asynch_Timer : public ACE_WIN32_Asynch_Result
+class ACE_Export ACE_WIN32_Asynch_Timer : public ACE_WIN32_Asynch_Result
{
/// The factory method for this class is with the POSIX_Proactor
/// class.
@@ -318,8 +316,6 @@ protected:
ACE_Time_Value time_;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_WIN32 */
#include /**/ "ace/post.h"
#endif /* ACE_PROACTOR_H */
diff --git a/ace/XML_Svc_Conf.cpp b/ace/XML_Svc_Conf.cpp
index b81c9162076..76300b641d7 100644
--- a/ace/XML_Svc_Conf.cpp
+++ b/ace/XML_Svc_Conf.cpp
@@ -3,13 +3,7 @@
#include "ace/XML_Svc_Conf.h"
#if (ACE_USES_CLASSIC_SVC_CONF == 0)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_XML_Svc_Conf::~ACE_XML_Svc_Conf (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
diff --git a/ace/XML_Svc_Conf.h b/ace/XML_Svc_Conf.h
index a91594b6075..c05e63babfd 100644
--- a/ace/XML_Svc_Conf.h
+++ b/ace/XML_Svc_Conf.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -23,9 +23,6 @@
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if (ACE_USES_CLASSIC_SVC_CONF==0)
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_XML_Svc_Conf
*
@@ -55,9 +52,6 @@ public:
virtual int parse_string (const ACE_TCHAR str[]) = 0;
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_USES_CLASSIC_SVC_CONF == 0 */
#include /**/ "ace/post.h"
diff --git a/ace/XTI_ATM_Mcast.cpp b/ace/XTI_ATM_Mcast.cpp
index 3ab9dcdad3a..a4524e248f9 100644
--- a/ace/XTI_ATM_Mcast.cpp
+++ b/ace/XTI_ATM_Mcast.cpp
@@ -1,3 +1,4 @@
+// XTI_ATM_Mcast.cpp
// $Id$
#include "ace/XTI_ATM_Mcast.h"
@@ -10,8 +11,6 @@ ACE_RCSID(ace, XTI_ATM_Mcast, "$Id$")
#include "ace/XTI_ATM_Mcast.inl"
#endif /* __ACE_INLINE__ */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE(ACE_XTI_ATM_Mcast)
void
@@ -31,8 +30,8 @@ ACE_XTI_ATM_Mcast::ACE_XTI_ATM_Mcast (void)
int
ACE_XTI_ATM_Mcast::add_leaf (ACE_TLI_Stream &current_stream,
- const ACE_Addr &remote_sap,
- ACE_INT32 leaf_id,
+ const ACE_Addr &remote_sap,
+ ACE_INT32 leaf_id,
ACE_Time_Value *timeout)
{
ACE_TRACE ("ACE_XTI_ATM_Mcast::add_leaf");
@@ -66,6 +65,4 @@ ACE_XTI_ATM_Mcast::add_leaf (ACE_TLI_Stream &current_stream,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#endif /* ACE_HAS_XTI_ATM */
diff --git a/ace/XTI_ATM_Mcast.h b/ace/XTI_ATM_Mcast.h
index 357af246784..ea2ba46739f 100644
--- a/ace/XTI_ATM_Mcast.h
+++ b/ace/XTI_ATM_Mcast.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "ace/TLI_Connector.h"
#include "ace/ATM_Addr.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_XTI_ATM_Mcast
*
@@ -124,14 +122,10 @@ public:
ACE_ALLOC_HOOK_DECLARE;
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "ace/XTI_ATM_Mcast.inl"
#endif /* __ACE_INLINE__ */
#endif /* ACE_HAS_XTI_ATM */
-
#include /**/ "ace/post.h"
-
#endif /* ACE_XTI_ATM_MCAST_H */
diff --git a/ace/XTI_ATM_Mcast.inl b/ace/XTI_ATM_Mcast.inl
index b062f8423b2..895f37f30ff 100644
--- a/ace/XTI_ATM_Mcast.inl
+++ b/ace/XTI_ATM_Mcast.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// XTI_ATM_Mcast.i
ACE_INLINE
ACE_XTI_ATM_Mcast::ACE_XTI_ATM_Mcast (ACE_TLI_Stream &new_stream,
@@ -61,5 +60,3 @@ ACE_XTI_ATM_Mcast::connect (ACE_TLI_Stream &new_stream,
udata,
opt);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/XtReactor.cpp b/ace/XtReactor.cpp
index d1ed38af310..6fb2c898ba3 100644
--- a/ace/XtReactor.cpp
+++ b/ace/XtReactor.cpp
@@ -7,15 +7,13 @@
ACE_RCSID(ace, XtReactor, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_ALLOC_HOOK_DEFINE (ACE_XtReactor)
// Must be called with lock held
ACE_XtReactor::ACE_XtReactor (XtAppContext context,
- size_t size,
- int restart,
- ACE_Sig_Handler *h)
+ size_t size,
+ int restart,
+ ACE_Sig_Handler *h)
: ACE_Select_Reactor (size, restart, h),
context_ (context),
ids_ (0),
@@ -55,7 +53,7 @@ ACE_XtReactor::~ACE_XtReactor (void)
int
ACE_XtReactor::wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &handle_set,
- ACE_Time_Value *max_wait_time)
+ ACE_Time_Value *max_wait_time)
{
ACE_TRACE ("ACE_XtReactor::wait_for_multiple_events");
int nfound;
@@ -69,8 +67,8 @@ ACE_XtReactor::wait_for_multiple_events (ACE_Select_Reactor_Handle_Set &handle_s
handle_set.wr_mask_ = this->wait_set_.wr_mask_;
handle_set.ex_mask_ = this->wait_set_.ex_mask_;
nfound = XtWaitForMultipleEvents (width,
- handle_set,
- max_wait_time);
+ handle_set,
+ max_wait_time);
} while (nfound == -1 && this->handle_error () > 0);
@@ -103,8 +101,8 @@ ACE_XtReactor::TimerCallbackProc (XtPointer closure, XtIntervalId * /* id */)
void
ACE_XtReactor::InputCallbackProc (XtPointer closure,
- int *source,
- XtInputId *)
+ int *source,
+ XtInputId *)
{
ACE_XtReactor *self = (ACE_XtReactor *) closure;
ACE_HANDLE handle = (ACE_HANDLE) *source;
@@ -125,9 +123,9 @@ ACE_XtReactor::InputCallbackProc (XtPointer closure,
wait_set.ex_mask_.set_bit (handle);
int result = ACE_OS::select (*source + 1,
- wait_set.rd_mask_,
- wait_set.wr_mask_,
- wait_set.ex_mask_, &zero);
+ wait_set.rd_mask_,
+ wait_set.wr_mask_,
+ wait_set.ex_mask_, &zero);
ACE_Select_Reactor_Handle_Set dispatch_set;
@@ -135,11 +133,11 @@ ACE_XtReactor::InputCallbackProc (XtPointer closure,
if (result > 0)
{
if (wait_set.rd_mask_.is_set (handle))
- dispatch_set.rd_mask_.set_bit (handle);
+ dispatch_set.rd_mask_.set_bit (handle);
if (wait_set.wr_mask_.is_set (handle))
- dispatch_set.wr_mask_.set_bit (handle);
+ dispatch_set.wr_mask_.set_bit (handle);
if (wait_set.ex_mask_.is_set (handle))
- dispatch_set.ex_mask_.set_bit (handle);
+ dispatch_set.ex_mask_.set_bit (handle);
self->dispatch (1, dispatch_set);
}
@@ -147,8 +145,8 @@ ACE_XtReactor::InputCallbackProc (XtPointer closure,
int
ACE_XtReactor::XtWaitForMultipleEvents (int width,
- ACE_Select_Reactor_Handle_Set &wait_set,
- ACE_Time_Value *)
+ ACE_Select_Reactor_Handle_Set &wait_set,
+ ACE_Time_Value *)
{
// Make sure we have a valid context
ACE_ASSERT (this->context_ != 0);
@@ -157,10 +155,10 @@ ACE_XtReactor::XtWaitForMultipleEvents (int width,
ACE_Select_Reactor_Handle_Set temp_set = wait_set;
if (ACE_OS::select (width,
- temp_set.rd_mask_,
- temp_set.wr_mask_,
- temp_set.ex_mask_,
- (ACE_Time_Value *) &ACE_Time_Value::zero) == -1)
+ temp_set.rd_mask_,
+ temp_set.wr_mask_,
+ temp_set.ex_mask_,
+ (ACE_Time_Value *) &ACE_Time_Value::zero) == -1)
return -1; // Bad file arguments...
// Instead of waiting using <select>, just use the Xt mechanism to
@@ -175,10 +173,10 @@ ACE_XtReactor::XtWaitForMultipleEvents (int width,
// Now actually read the result needed by the <Select_Reactor> using
// <select>.
return ACE_OS::select (width,
- wait_set.rd_mask_,
- wait_set.wr_mask_,
- wait_set.ex_mask_,
- (ACE_Time_Value *) &ACE_Time_Value::zero);
+ wait_set.rd_mask_,
+ wait_set.wr_mask_,
+ wait_set.ex_mask_,
+ (ACE_Time_Value *) &ACE_Time_Value::zero);
}
XtAppContext
@@ -195,8 +193,8 @@ ACE_XtReactor::context (XtAppContext context)
int
ACE_XtReactor::register_handler_i (ACE_HANDLE handle,
- ACE_Event_Handler *handler,
- ACE_Reactor_Mask mask)
+ ACE_Event_Handler *handler,
+ ACE_Reactor_Mask mask)
{
ACE_TRACE ("ACE_XtReactor::register_handler_i");
@@ -265,10 +263,10 @@ ACE_XtReactor::register_handler_i (ACE_HANDLE handle,
XtID->next_ = this->ids_;
XtID->handle_ = handle;
XtID->id_ = ::XtAppAddInput (this->context_,
- (int) handle,
- (XtPointer) condition,
- InputCallbackProc,
- (XtPointer) this);
+ (int) handle,
+ (XtPointer) condition,
+ InputCallbackProc,
+ (XtPointer) this);
this->ids_ = XtID;
}
return 0;
@@ -276,8 +274,8 @@ ACE_XtReactor::register_handler_i (ACE_HANDLE handle,
int
ACE_XtReactor::register_handler_i (const ACE_Handle_Set &handles,
- ACE_Event_Handler *handler,
- ACE_Reactor_Mask mask)
+ ACE_Event_Handler *handler,
+ ACE_Reactor_Mask mask)
{
return ACE_Select_Reactor::register_handler_i (handles,
handler,
@@ -286,7 +284,7 @@ ACE_XtReactor::register_handler_i (const ACE_Handle_Set &handles,
int
ACE_XtReactor::remove_handler_i (ACE_HANDLE handle,
- ACE_Reactor_Mask mask)
+ ACE_Reactor_Mask mask)
{
ACE_TRACE ("ACE_XtReactor::remove_handler_i");
@@ -341,10 +339,10 @@ ACE_XtReactor::remove_XtInput (ACE_HANDLE handle)
int
ACE_XtReactor::remove_handler_i (const ACE_Handle_Set &handles,
- ACE_Reactor_Mask mask)
+ ACE_Reactor_Mask mask)
{
return ACE_Select_Reactor::remove_handler_i (handles,
- mask);
+ mask);
}
// The following functions ensure that there is an Xt timeout for the
@@ -395,7 +393,7 @@ long
ACE_XtReactor::schedule_timer (ACE_Event_Handler *event_handler,
const void *arg,
const ACE_Time_Value &delay,
- const ACE_Time_Value &interval)
+ const ACE_Time_Value &interval)
{
ACE_TRACE ("ACE_XtReactor::schedule_timer");
ACE_MT (ACE_GUARD_RETURN (ACE_Select_Reactor_Token, ace_mon, this->token_, -1));
@@ -415,12 +413,12 @@ ACE_XtReactor::schedule_timer (ACE_Event_Handler *event_handler,
int
ACE_XtReactor::cancel_timer (ACE_Event_Handler *handler,
- int dont_call_handle_close)
+ int dont_call_handle_close)
{
ACE_TRACE ("ACE_XtReactor::cancel_timer");
if (ACE_Select_Reactor::cancel_timer (handler,
- dont_call_handle_close) == -1)
+ dont_call_handle_close) == -1)
return -1;
else
{
@@ -431,14 +429,14 @@ ACE_XtReactor::cancel_timer (ACE_Event_Handler *handler,
int
ACE_XtReactor::cancel_timer (long timer_id,
- const void **arg,
- int dont_call_handle_close)
+ const void **arg,
+ int dont_call_handle_close)
{
ACE_TRACE ("ACE_XtReactor::cancel_timer");
if (ACE_Select_Reactor::cancel_timer (timer_id,
- arg,
- dont_call_handle_close) == -1)
+ arg,
+ dont_call_handle_close) == -1)
return -1;
else
{
@@ -447,4 +445,3 @@ ACE_XtReactor::cancel_timer (long timer_id,
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/ace/XtReactor.h b/ace/XtReactor.h
index fdd0ccae273..e51fc87722e 100644
--- a/ace/XtReactor.h
+++ b/ace/XtReactor.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -6,7 +6,7 @@
*
* $Id$
*
- * @author Eric C. Newton <ecn@clark.net>
+ * @author Eric C. Newton's <ecn@clark.net>
* @author Kirill Rybaltchenko <Kirill.Rybaltchenko@cern.ch>
* @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
*/
@@ -29,8 +29,6 @@
#include /**/ <X11/Intrinsic.h>
//#undef String
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
/**
* @class ACE_XtReactorID
*
@@ -133,8 +131,5 @@ private:
ACE_XtReactor &operator = (const ACE_XtReactor &);
};
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
-
#endif /* ACE_XTREACTOR_H */
diff --git a/ace/ace.mpc b/ace/ace.mpc
index 25ac81b80cd..0f5930d7149 100644
--- a/ace/ace.mpc
+++ b/ace/ace.mpc
@@ -1,7 +1,7 @@
// -*- MPC -*- now wouldn't this be cool...
// $Id$
-project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache, versioned_namespace, pkgconfig {
+project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache, pkgconfig {
avoids = ace_for_tao
libout = $(ACE_ROOT)/lib
sharedname = ACE
@@ -24,9 +24,7 @@ project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache
Active_Map_Manager.cpp
Addr.cpp
Arg_Shifter.cpp
- ARGV.cpp
Argv_Type_Converter.cpp
- Assert.cpp
Asynch_IO.cpp
Asynch_IO_Impl.cpp
Asynch_Pseudo_Task.cpp
@@ -58,8 +56,8 @@ project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache
Connection_Recycling_Strategy.cpp
Container_Instantiations.cpp
Containers.cpp
- Copy_Disabled.cpp
Countdown_Time.cpp
+ Copy_Disabled.cpp
Date_Time.cpp
DEV.cpp
DEV_Addr.cpp
@@ -90,6 +88,7 @@ project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache
gethrtime.cpp
Handle_Ops.cpp
Handle_Set.cpp
+ Hash_Map_Manager.cpp
Hashable.cpp
High_Res_Timer.cpp
ICMP_Socket.cpp
@@ -388,7 +387,6 @@ project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache
Exception_Macros.h
Global_Macros.h
Guard_T.h
- Hash_Map_Manager.h
Handle_Gobbler.h
If_Then_Else.h
IO_Cntl_Msg.h
@@ -425,17 +423,14 @@ project(ACE) : acedefaults, core, other, codecs, token, svcconf, uuid, filecache
Synch_Traits.h
TSS_T.h
Timer_Queuefwd.h
- Truncate.h
UPIPE_Addr.h
Value_Ptr.h
Version.h
- Versioned_Namespace.h
ace_wchar.h
config-WinCE.h
config-all.h
config-borland-common.h
config-lite.h
- config-macros.h
config-minimal.h
config-win32-borland.h
config-win32-common.h
diff --git a/ace/ace.mwc b/ace/ace.mwc
index 60eecba03e4..dadb95c37fd 100644
--- a/ace/ace.mwc
+++ b/ace/ace.mwc
@@ -1,10 +1,13 @@
// -*- MPC -*-
-//
// $Id$
workspace {
ace.mpc
ace_for_tao.mpc
+ ace_memory_for_tao.mpc
+ ace_reactor_for_tao.mpc
+ ace_sockets_for_tao.mpc
+ ace_threads_for_tao.mpc
ace_flreactor.mpc
ace_qtreactor.mpc
ace_tkreactor.mpc
diff --git a/ace/ace_for_tao.mpc b/ace/ace_for_tao.mpc
index 08a8ec144aa..580aab1a4d9 100644
--- a/ace/ace_for_tao.mpc
+++ b/ace/ace_for_tao.mpc
@@ -2,7 +2,7 @@
//
// $Id$
-project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfig {
+project(ACE_FOR_TAO) : acedefaults, core, svcconf, pkgconfig {
requires = ace_for_tao
libout = $(ACE_ROOT)/lib
sharedname = ACE_FOR_TAO
@@ -13,16 +13,11 @@ project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfi
Active_Map_Manager.cpp
Addr.cpp
Arg_Shifter.cpp
- ARGV.cpp
Argv_Type_Converter.cpp
- Assert.cpp
Atomic_Op.cpp
Auto_Event.cpp
- Barrier.cpp // Required by orbsvcs/tests/Notify/lib
Base_Thread_Adapter.cpp
- Basic_Stats.cpp // Required by ace/Stats
Basic_Types.cpp
- Capabilities.cpp // Required by TAO/orbsvcs/examples/ImR/Advanced
CDR_Base.cpp
CDR_Stream.cpp
CDR_Size.cpp
@@ -34,14 +29,10 @@ project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfi
Condition_Thread_Mutex.cpp
Countdown_Time.cpp
Copy_Disabled.cpp
- Dirent.cpp // Required by TAO_IDL
- Dirent_Selector.cpp
Dump.cpp
Dynamic.cpp
Event.cpp
Event_Handler.cpp
- FILE.cpp
- FILE_Addr.cpp
Flag_Manip.cpp
Framework_Component.cpp
Functor.cpp
@@ -50,7 +41,6 @@ project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfi
Handle_Ops.cpp
Handle_Set.cpp
Hashable.cpp
- High_Res_Timer.cpp // Required by orbsvcs/tests/Notify/lib
INET_Addr.cpp
Init_ACE.cpp
IO_SAP.cpp
@@ -119,7 +109,6 @@ project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfi
OS_TLI.cpp
Parse_Node.cpp
Pipe.cpp
- Process.cpp
Reactor.cpp
Reactor_Impl.cpp
Reactor_Notification_Strategy.cpp
@@ -138,16 +127,9 @@ project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfi
Sock_Connect.cpp
SOCK_Connector.cpp
SOCK_Dgram.cpp
- SOCK_Dgram_Mcast.cpp
SOCK_IO.cpp
SOCK_Stream.cpp
- SPIPE.cpp
- SPIPE_Acceptor.cpp
- SPIPE_Connector.cpp
- SPIPE_Addr.cpp
- SPIPE_Stream.cpp
SString.cpp
- Stats.cpp // Required by orbsvcs/tests/Notify
String_Base_Const.cpp
Synch_Options.cpp
Task.cpp
@@ -176,13 +158,10 @@ project(ACE_FOR_TAO) : acedefaults, core, svcconf, versioned_namespace, pkgconfi
}
// ACE_Token implementation uses semaphores on Windows and VxWorks.
- conditional(vc6,vc71,vc8,nmake,bmake) {
- ACE_crc32.cpp // Required by SV_Semaphore_Simple
+ conditional(vc6,vc71,vc8,bmake) {
Semaphore.cpp
Process_Mutex.cpp
WFMO_Reactor.cpp
- SV_Semaphore_Simple.cpp
- SV_Semaphore_Complex.cpp
}
}
diff --git a/ace/ace_memory_for_tao.mpc b/ace/ace_memory_for_tao.mpc
new file mode 100644
index 00000000000..9d85e39e1e1
--- /dev/null
+++ b/ace/ace_memory_for_tao.mpc
@@ -0,0 +1,75 @@
+// -*- MPC -*-
+//
+// $Id$
+
+project(ACE_Memory_FOR_TAO) : acedefaults, core, pkgconfig, ace_for_tao, acethreadslib_for_tao {
+
+ requires = ace_for_tao
+ libout = $(ACE_ROOT)/lib
+ sharedname = ACE_Memory_FOR_TAO
+ dynamicflags = ACE_MEMORY_BUILD_DLL
+
+ Source_Files(ACE_COMPONENTS) {
+ Based_Pointer_Repository.cpp
+ MEM_Acceptor.cpp
+ MEM_Addr.cpp
+ MEM_Connector.cpp
+ MEM_IO.cpp // Requires ACE_Process_{Mutex,Semaphore}
+ MEM_SAP.cpp
+ MEM_Stream.cpp
+ MMAP_Memory_Pool.cpp
+ Mem_Map.cpp
+ PI_Malloc.cpp
+ Pagefile_Memory_Pool.cpp
+ SV_Shared_Memory.cpp
+ Sbrk_Memory_Pool.cpp
+ Shared_Memory.cpp
+ Shared_Memory_MM.cpp
+ Shared_Memory_Pool.cpp
+ Shared_Memory_SV.cpp
+ }
+
+ Inline_Files {
+ Based_Pointer_Repository.inl
+ MEM_Acceptor.inl
+ MEM_Addr.inl
+ MEM_Connector.inl
+ MEM_IO.inl
+ MEM_SAP.inl
+ MEM_Stream.inl
+ MMAP_Memory_Pool.inl
+ Mem_Map.inl
+ PI_Malloc.inl
+ Pagefile_Memory_Pool.inl
+ SV_Shared_Memory.inl
+ Sbrk_Memory_Pool.inl
+ Shared_Memory.inl
+ Shared_Memory_MM.inl
+ Shared_Memory_Pool.inl
+ Shared_Memory_SV.inl
+ }
+
+ Header_Files {
+ Based_Pointer_Repository.h
+ MEM_Acceptor.h
+ MEM_Addr.h
+ MEM_Connector.h
+ MEM_IO.h
+ MEM_SAP.h
+ MEM_Stream.h
+ MMAP_Memory_Pool.h
+ Mem_Map.h
+ PI_Malloc.h
+ Pagefile_Memory_Pool.h
+ SV_Shared_Memory.h
+ Sbrk_Memory_Pool.h
+ Shared_Memory.h
+ Shared_Memory_MM.h
+ Shared_Memory_Pool.h
+ Shared_Memory_SV.h
+ }
+
+ Pkgconfig_Files {
+ ACE_Memory_FOR_TAO.pc.in
+ }
+}
diff --git a/ace/ace_reactor_for_tao.mpc b/ace/ace_reactor_for_tao.mpc
new file mode 100644
index 00000000000..a4dfcad0260
--- /dev/null
+++ b/ace/ace_reactor_for_tao.mpc
@@ -0,0 +1,30 @@
+// -*- MPC -*-
+//
+// $Id$
+
+project(ACE_Reactor_FOR_TAO) : acedefaults, core, pkgconfig, ace_for_tao {
+
+ requires = ace_for_tao
+ libout = $(ACE_ROOT)/lib
+ sharedname = ACE_Reactor_FOR_TAO
+ dynamicflags = ACE_REACTOR_BUILD_DLL
+
+ Source_Files(ACE_COMPONENTS) {
+ Msg_WFMO_Reactor.cpp
+ Priority_Reactor.cpp
+ }
+
+ Inline_Files {
+ Msg_WFMO_Reactor.inl
+ Priority_Reactor.inl
+ }
+
+ Header_Files {
+ Msg_WFMO_Reactor.h
+ Priority_Reactor.h
+ }
+
+ Pkgconfig_Files {
+ ACE_Reactor_FOR_TAO.pc.in
+ }
+}
diff --git a/ace/ace_sockets_for_tao.mpc b/ace/ace_sockets_for_tao.mpc
new file mode 100644
index 00000000000..991138c0361
--- /dev/null
+++ b/ace/ace_sockets_for_tao.mpc
@@ -0,0 +1,63 @@
+// -*- MPC -*-
+//
+// $Id$
+
+project(ACE_Sockets_FOR_TAO) : acedefaults, core, pkgconfig, ace_for_tao {
+
+ requires = ace_for_tao
+ libout = $(ACE_ROOT)/lib
+ sharedname = ACE_Sockets_FOR_TAO
+ dynamicflags = ACE_SOCKETS_BUILD_DLL
+
+ Source_Files(ACE_COMPONENTS) {
+ LSOCK.cpp
+ LSOCK_Acceptor.cpp
+ LSOCK_CODgram.cpp
+ LSOCK_Connector.cpp
+ LSOCK_Dgram.cpp
+ LSOCK_Stream.cpp
+ Multihomed_INET_Addr.cpp
+ SOCK_CODgram.cpp
+ SOCK_Dgram_Bcast.cpp
+ SOCK_Dgram_Mcast.cpp
+ SOCK_SEQPACK_Acceptor.cpp
+ SOCK_SEQPACK_Association.cpp
+ SOCK_SEQPACK_Connector.cpp
+ }
+
+ Inline_Files {
+ LSOCK.inl
+ LSOCK_Acceptor.inl
+ LSOCK_CODgram.inl
+ LSOCK_Connector.inl
+ LSOCK_Dgram.inl
+ LSOCK_Stream.inl
+ Multihomed_INET_Addr.inl
+ SOCK_CODgram.inl
+ SOCK_Dgram_Bcast.inl
+ SOCK_Dgram_Mcast.inl
+ SOCK_SEQPACK_Acceptor.inl
+ SOCK_SEQPACK_Association.inl
+ SOCK_SEQPACK_Connector.inl
+ }
+
+ Header_Files {
+ LSOCK.h
+ LSOCK_Acceptor.h
+ LSOCK_CODgram.h
+ LSOCK_Connector.h
+ LSOCK_Dgram.h
+ LSOCK_Stream.h
+ Multihomed_INET_Addr.h
+ SOCK_CODgram.h
+ SOCK_Dgram_Bcast.h
+ SOCK_Dgram_Mcast.h
+ SOCK_SEQPACK_Acceptor.h
+ SOCK_SEQPACK_Association.h
+ SOCK_SEQPACK_Connector.h
+ }
+
+ Pkgconfig_Files {
+ ACE_Sockets_FOR_TAO.pc.in
+ }
+}
diff --git a/ace/ace_threads_for_tao.mpc b/ace/ace_threads_for_tao.mpc
new file mode 100644
index 00000000000..5ebb279bcbf
--- /dev/null
+++ b/ace/ace_threads_for_tao.mpc
@@ -0,0 +1,69 @@
+// -*- MPC -*-
+//
+// $Id$
+
+project(ACE_Threads_FOR_TAO) : acedefaults, core, pkgconfig, ace_for_tao {
+
+ requires = ace_for_tao
+ libout = $(ACE_ROOT)/lib
+ sharedname = ACE_Threads_FOR_TAO
+ dynamicflags = ACE_THREADS_BUILD_DLL
+
+ Source_Files(ACE_COMPONENTS) {
+ Activation_Queue.cpp
+ Barrier.cpp
+ File_Lock.cpp
+ Method_Request.cpp
+ Process.cpp
+ Process_Manager.cpp
+ Process_Semaphore.cpp
+ RW_Process_Mutex.cpp
+ Thread_Semaphore.cpp
+
+ // ACE_Token implementation uses semaphores on Windows and VxWorks.
+ conditional(!vc6,!vc71,!vc8,!bmake) {
+ Semaphore.cpp
+ Process_Mutex.cpp
+ }
+ }
+
+ Inline_Files {
+ Activation_Queue.inl
+ Barrier.inl
+ File_Lock.inl
+ Method_Request.inl
+ Process.inl
+ Process_Manager.inl
+ Process_Semaphore.inl
+ RW_Process_Mutex.inl
+ Thread_Semaphore.inl
+
+ // ACE_Token implementation uses semaphores on Windows and VxWorks.
+ conditional(!vc6,!vc71,!vc8,!bmake) {
+ Semaphore.inl
+ Process_Mutex.inl
+ }
+ }
+
+ Header_Files {
+ Activation_Queue.h
+ Barrier.h
+ File_Lock.h
+ Method_Request.h
+ Process.h
+ Process_Manager.h
+ Process_Semaphore.h
+ RW_Process_Mutex.h
+ Thread_Semaphore.h
+
+ // ACE_Token implementation uses semaphores on Windows and VxWorks.
+ conditional(!vc6,!vc71,!vc8,!bmake) {
+ Semaphore.h
+ Process_Mutex.h
+ }
+ }
+
+ Pkgconfig_Files {
+ ACE_Threads_FOR_TAO.pc.in
+ }
+}
diff --git a/ace/ace_wchar.h b/ace/ace_wchar.h
index ef0026fb7d0..32cfaafc838 100644
--- a/ace/ace_wchar.h
+++ b/ace/ace_wchar.h
@@ -17,83 +17,49 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-// These macros have been deprecated and should be replaced by their
-// ACE_TEXT_* equivalents. These macros are just hacks and may not
-// completely provide the old functionality.
-#if defined (ACE_LEGACY_MODE)
-// Convert the old unicode indicators
-# if defined (ACE_HAS_MOSTLY_UNICODE_APIS)
-# define ACE_USES_WCHAR
-# endif /* ACE_HAS_MOSTLY_UNICODE_APIS */
-# if defined (ACE_HAS_UNICODE)
-# define ACE_HAS_WCHAR
-# endif /* ACE_HAS_UNICODE */
-
-// These are defined to get older stuff to compile
-// FUZZ: disable check_for_tchar
-# define ASYS_TCHAR ACE_TCHAR
-# define ASYS_TEXT ACE_TEXT
-# define ASYS_ONLY_MULTIBYTE_STRING ACE_TEXT_ALWAYS_CHAR
-# define ASYS_MULTIBYTE_STRING ACE_TEXT_CHAR_TO_TCHAR
-# define ASYS_WIDE_STRING ACE_TEXT_CHAR_TO_TCHAR
-# define ACE_WIDE_STRING ACE_TEXT_CHAR_TO_TCHAR
-
-# if defined (ACE_USES_WCHAR)
-# define ASYS_ONLY_WIDE_STRING(STRING) STRING
-# else /* ACE_USES_WCHAR */
-# define ASYS_ONLY_WIDE_STRING(STRING) \
- ACE_Ascii_To_Wide (STRING).wchar_rep ()
-# endif /* ACE_USES_WCHAR */
-
-# define ACE_TEXT_STRING ACE_TString
-
-#endif /* ACE_LEGACY_MODE */
-
-#if defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
-# if !defined (ACE_HAS_WCHAR)
-# define ACE_HAS_WCHAR
-# endif
-# include /**/ <wchar.h>
-#endif /* ACE_HAS_XPG4_MULTIBYPTE_CHAR */
-
-#if defined (ACE_HAS_WCHAR)
-# if defined (ACE_VXWORKS)
+#if !defined(ACE_SIZEOF_WCHAR) || !defined (ACE_WCHAR_MAX)
+#error Must define ACE_SIZEOF_WCHAR, ACE_WCHAR_MAX, \
+and (maybe undefine) ACE_LACKS_BUILTIN_WCHAR_T in the config-<platform>.h. \
+Typedef wchar_t, wint_t, and/or wctype_t in the config-<platform>.h \
+or within the conditional #includes below if the platform does \
+not supply them.
+#endif
+
+// Add includes and/or typedefs to get wchar_t, wint_t, and wctype_t.
+# if defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
+# include /**/ <wchar.h>
+# endif /* ACE_HAS_XPG4_MULTIBYPTE_CHAR */
+
+# if defined (VXWORKS)
# include /**/ <types/vxTypes.h> /* For wchar_t */
-# include /**/ <stdlib.h> /* For mbstowcs, etc. */
-# include /**/ <string.h> /* For strlen */
-# if !defined (__RTP__)
-# define wint_t unsigned int /* VxWorks has wchar_t but not wint_t */
-# else
-# include /**/ <wchar.h>
-# include /**/ <wctype.h>
-# endif
+# include <stddef.h> /* For wint_t */
+ typedef wchar_t wctype_t;
+# elif defined (__Lynx__)
+# include /**/ <stdlib.h> /* For wchar_t */
+ typedef unsigned int wint_t;
+ typedef wchar_t wctype_t;
# elif defined (ACE_OPENVMS)
# include /**/ <wchar.h>
# include /**/ <wctype.h>
+
# elif defined (ACE_HAS_STANDARD_CPP_LIBRARY) && \
(ACE_HAS_STANDARD_CPP_LIBRARY != 0)
# include /**/ <cwchar>
# include /**/ <cwctype>
+
# elif defined (ACE_HAS_WINCE)
# include /**/ <wtypes.h>
+
# elif !defined (__BORLANDC__)
# include /**/ <wchar.h>
+
# endif /* ACE_HAS_STANDARD_CPP_LIBRARY */
-#endif /* ACE_HAS_WCHAR */
#if defined (ACE_USES_STD_NAMESPACE_FOR_STDC_LIB) && \
(ACE_USES_STD_NAMESPACE_FOR_STDC_LIB != 0)
using std::size_t;
#endif /* ACE_USES_STD_NAMESPACE_FOR_STDC_LIB */
-// This makes the somewhat dubious assumption that if a platform lacks
-// a native wchar_t type, then it will typedef it as unsigned short.
-#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_NATIVE_WCHAR_T)
-# if !defined (ACE_WSTRING_HAS_USHORT_SUPPORT)
-# define ACE_WSTRING_HAS_USHORT_SUPPORT
-# endif /* ACE_WSTRING_HAS_USHORT_SUPPORT */
-#endif /* ACE_HAS_WCHAR && !ACE_LACKS_NATIVE_WCHAR_T */
-
// Set the default behaviour for ACE_TEXT_WIDE to use the L-prefix
#if !defined (ACE_USES_L_PREFIX)
# define ACE_USES_L_PREFIX 1
@@ -110,26 +76,6 @@ using std::size_t;
# define ACE_TEXT_WIDE(STRING) ACE_TEXT_WIDE_I (STRING)
# endif /* ACE_TEXT_WIDE */
-#if defined (ACE_USES_WCHAR)
-typedef wchar_t ACE_TCHAR;
-typedef char ACE_ANTI_TCHAR;
-# define ACE_LIB_TEXT(STRING) ACE_TEXT_WIDE (STRING)
-# define ACE_TEXT_ALWAYS_CHAR(STRING) ACE_Wide_To_Ascii (STRING).char_rep ()
-# define ACE_TEXT_ALWAYS_WCHAR(STRING) STRING
-# define ACE_TEXT_CHAR_TO_TCHAR(STRING) ACE_Ascii_To_Wide (STRING).wchar_rep ()
-# define ACE_TEXT_WCHAR_TO_TCHAR(STRING) STRING
-# define ACE_TEXT_ANTI_TO_TCHAR(STRING) ACE_Ascii_To_Wide (STRING).wchar_rep ()
-#else /* ACE_USES_WCHAR */
-typedef char ACE_TCHAR;
-typedef wchar_t ACE_ANTI_TCHAR;
-# define ACE_LIB_TEXT(STRING) STRING
-# define ACE_TEXT_ALWAYS_CHAR(STRING) STRING
-# define ACE_TEXT_ALWAYS_WCHAR(STRING) ACE_Ascii_To_Wide (STRING).wchar_rep ()
-# define ACE_TEXT_CHAR_TO_TCHAR(STRING) STRING
-# define ACE_TEXT_WCHAR_TO_TCHAR(STRING) ACE_Wide_To_Ascii (STRING).char_rep ()
-# define ACE_TEXT_ANTI_TO_TCHAR(STRING) ACE_Wide_To_Ascii (STRING).char_rep ()
-#endif /* ACE_USES_WCHAR */
-
#if defined (ACE_LEGACY_MODE)
# define ACE_TEXT TEXT
#else /* ACE_LEGACY_MODE */
@@ -161,188 +107,34 @@ typedef wchar_t ACE_ANTI_TCHAR;
#endif /* ACE_HAS_XPG4_MULTIBYTE_CHAR */
-#if defined ACE_HAS_WCHAR
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-/**
- * @class ACE_Wide_To_Ascii
- *
- * @brief A lightweight wchar* to char* string conversion class.
- *
- * The purpose of this class is to perform conversion from
- * wchar* to char* strings. It is not intended for general
- * purpose use.
- */
-class ACE_Wide_To_Ascii
-{
-public:
- /// Ctor must take a wchar string.
- ACE_Wide_To_Ascii (const wchar_t *s);
-
- /// Dtor will free up the memory.
- ~ACE_Wide_To_Ascii (void);
-
- /// Return the internal char* representation.
- char *char_rep (void);
-
- /// Converts an wchar_t string to ascii and returns a new string.
- static char *convert (const wchar_t *wstr);
-
-private:
- /// Internal pointer to the converted string.
- char *s_;
-
- /// Disallow these operation.
- ACE_Wide_To_Ascii (void);
- ACE_Wide_To_Ascii (ACE_Wide_To_Ascii &);
- ACE_Wide_To_Ascii& operator= (ACE_Wide_To_Ascii &);
-};
-
-/**
- * @class ACE_Ascii_To_Wide
- *
- * @brief A lightweight char* to wchar* string conversion class.
- *
- * The purpose of this class is to perform conversion from
- * char* to wchar* strings. It is not intended for general
- * purpose use.
- */
-class ACE_Ascii_To_Wide
-{
-public:
- /// Ctor must take a wchar string.
- ACE_Ascii_To_Wide (const char *s);
-
- /// Dtor will free up the memory.
- ~ACE_Ascii_To_Wide (void);
-
- /// Return the internal wchar* representation.
- wchar_t *wchar_rep (void);
-
- /// Converts an char string to unicode/wide and returns a new string.
- static wchar_t *convert (const char *str);
-
-private:
- /// Internal pointer to the converted string.
- wchar_t *s_;
-
- /// Disallow these operation.
- ACE_Ascii_To_Wide (void);
- ACE_Ascii_To_Wide (ACE_Ascii_To_Wide &);
- ACE_Ascii_To_Wide operator= (ACE_Ascii_To_Wide &);
-};
-
-#if defined (ACE_LEGACY_MODE)
-typedef ACE_Ascii_To_Wide ACE_OS_CString;
-typedef ACE_Wide_To_Ascii ACE_OS_WString;
-#endif /* ACE_LEGACY_MODE */
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_HAS_WCHAR */
-
-#if defined (ACE_WIN32)
+// ACE_TCHAR Macros
#if defined (ACE_USES_WCHAR)
-#define ACE_TEXT_SERVICE_TABLE_ENTRY SERVICE_TABLE_ENTRYW
-#define ACE_TEXT_STARTUPINFO STARTUPINFOW
-#define ACE_TEXT_WIN32_FIND_DATA WIN32_FIND_DATAW
-
-#define ACE_TEXT_CreateEvent ::CreateEventW
-#define ACE_TEXT_CreateFile ::CreateFileW
-#define ACE_TEXT_CreateFileMapping ::CreateFileMappingW
-#define ACE_TEXT_CreateMutex ::CreateMutexW
-#define ACE_TEXT_CreateProcess ::CreateProcessW
-#define ACE_TEXT_CreateSemaphore ::CreateSemaphoreW
-#define ACE_TEXT_CreateService ::CreateServiceW
-#define ACE_TEXT_ExpandEnvironmentStrings ::ExpandEnvironmentStringsW
-#define ACE_TEXT_FindFirstChangeNotification ::FindFirstChangeNotificationW
-#define ACE_TEXT_FindFirstFile ::FindFirstFileW
-#define ACE_TEXT_FindNextFile ::FindNextFileW
-#define ACE_TEXT_FormatMessage ::FormatMessageW
-#define ACE_TEXT_FreeEnvironmentStrings ::FreeEnvironmentStringsW
-#define ACE_TEXT_GetComputerName ::GetComputerNameW
-#define ACE_TEXT_GetEnvironmentStrings ::GetEnvironmentStringsW
-#define ACE_TEXT_GetFileAttributes ::GetFileAttributesW
-#define ACE_TEXT_GetModuleFileName ::GetModuleFileNameW
-#define ACE_TEXT_GetTempPath ::GetTempPathW
-#define ACE_TEXT_GetUserName ::GetUserNameW
-#define ACE_TEXT_LoadLibrary ::LoadLibraryW
-#define ACE_TEXT_MoveFileEx ::MoveFileExW
-#define ACE_TEXT_WaitNamedPipe ::WaitNamedPipeW
-#define ACE_TEXT_OpenFileMapping ::OpenFileMappingW
-#define ACE_TEXT_OpenSCManager ::OpenSCManagerW
-#define ACE_TEXT_OpenService ::OpenServiceW
-#define ACE_TEXT_OutputDebugString ::OutputDebugStringW
-#define ACE_TEXT_RegisterEventSource ::RegisterEventSourceW
-#define ACE_TEXT_RegisterServiceCtrlHandler ::RegisterServiceCtrlHandlerW
-#define ACE_TEXT_RegConnectRegistry ::RegConnectRegistryW
-#define ACE_TEXT_RegCreateKeyEx ::RegCreateKeyExW
-#define ACE_TEXT_RegDeleteKey ::RegDeleteKeyW
-#define ACE_TEXT_RegDeleteValue ::RegDeleteValueW
-#define ACE_TEXT_RegEnumKeyEx ::RegEnumKeyExW
-#define ACE_TEXT_RegEnumValue ::RegEnumValueW
-#define ACE_TEXT_RegCreateKey ::RegCreateKeyW
-#define ACE_TEXT_RegOpenKey ::RegOpenKeyW
-#define ACE_TEXT_RegOpenKeyEx ::RegOpenKeyExW
-#define ACE_TEXT_RegQueryValueEx ::RegQueryValueExW
-#define ACE_TEXT_RegSetValueEx ::RegSetValueExW
-#define ACE_TEXT_ReportEvent ::ReportEventW
-#define ACE_TEXT_SearchPath ::SearchPathW
-#define ACE_TEXT_StartService ::StartServiceW
-#define ACE_TEXT_StartServiceCtrlDispatcher ::StartServiceCtrlDispatcherW
-
+ typedef wchar_t ACE_TCHAR;
+ typedef char ACE_ANTI_TCHAR;
+ # define ACE_LIB_TEXT(STRING) ACE_TEXT_WIDE( STRING )
#else /* ACE_USES_WCHAR */
-#define ACE_TEXT_SERVICE_TABLE_ENTRY SERVICE_TABLE_ENTRYA
-#define ACE_TEXT_STARTUPINFO STARTUPINFOA
-#define ACE_TEXT_WIN32_FIND_DATA WIN32_FIND_DATAA
-
-#define ACE_TEXT_CreateEvent ::CreateEventA
-#define ACE_TEXT_CreateFile ::CreateFileA
-#define ACE_TEXT_CreateFileMapping ::CreateFileMappingA
-#define ACE_TEXT_CreateMutex ::CreateMutexA
-#define ACE_TEXT_CreateProcess ::CreateProcessA
-#define ACE_TEXT_CreateSemaphore ::CreateSemaphoreA
-#define ACE_TEXT_CreateService ::CreateServiceA
-#define ACE_TEXT_ExpandEnvironmentStrings ::ExpandEnvironmentStringsA
-#define ACE_TEXT_FindFirstChangeNotification ::FindFirstChangeNotificationA
-#define ACE_TEXT_FindFirstFile ::FindFirstFileA
-#define ACE_TEXT_FindNextFile ::FindNextFileA
-#define ACE_TEXT_FormatMessage ::FormatMessageA
-#define ACE_TEXT_FreeEnvironmentStrings ::FreeEnvironmentStringsA
-#define ACE_TEXT_GetComputerName ::GetComputerNameA
-#define ACE_TEXT_GetEnvironmentStrings ::GetEnvironmentStringsA
-#define ACE_TEXT_GetFileAttributes ::GetFileAttributesA
-#define ACE_TEXT_GetModuleFileName ::GetModuleFileNameA
-#define ACE_TEXT_GetTempPath ::GetTempPathA
-#define ACE_TEXT_GetUserName ::GetUserNameA
-#define ACE_TEXT_LoadLibrary ::LoadLibraryA
-#define ACE_TEXT_MoveFileEx ::MoveFileExA
-#define ACE_TEXT_WaitNamedPipe ::WaitNamedPipeA
-#define ACE_TEXT_OpenFileMapping ::OpenFileMappingA
-#define ACE_TEXT_OpenSCManager ::OpenSCManagerA
-#define ACE_TEXT_OpenService ::OpenServiceA
-#define ACE_TEXT_OutputDebugString ::OutputDebugStringA
-#define ACE_TEXT_RegisterEventSource ::RegisterEventSourceA
-#define ACE_TEXT_RegisterServiceCtrlHandler ::RegisterServiceCtrlHandlerA
-#define ACE_TEXT_RegConnectRegistry ::RegConnectRegistryA
-#define ACE_TEXT_RegCreateKeyEx ::RegCreateKeyExA
-#define ACE_TEXT_RegDeleteKey ::RegDeleteKeyA
-#define ACE_TEXT_RegDeleteValue ::RegDeleteValueA
-#define ACE_TEXT_RegEnumKeyEx ::RegEnumKeyExA
-#define ACE_TEXT_RegEnumValue ::RegEnumValueA
-#define ACE_TEXT_RegCreateKey ::RegCreateKeyA
-#define ACE_TEXT_RegOpenKey ::RegOpenKeyA
-#define ACE_TEXT_RegOpenKeyEx ::RegOpenKeyExA
-#define ACE_TEXT_RegQueryValueEx ::RegQueryValueExA
-#define ACE_TEXT_RegSetValueEx ::RegSetValueExA
-#define ACE_TEXT_ReportEvent ::ReportEventA
-#define ACE_TEXT_SearchPath ::SearchPathA
-#define ACE_TEXT_StartService ::StartServiceA
-#define ACE_TEXT_StartServiceCtrlDispatcher ::StartServiceCtrlDispatcherA
+ typedef char ACE_TCHAR;
+ typedef wchar_t ACE_ANTI_TCHAR;
+ # define ACE_LIB_TEXT(STRING) STRING
#endif /* ACE_USES_WCHAR */
-#endif /* ACE_WIN32 */
-#include "ace/ace_wchar.inl"
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ // Via compiler, sys headers, config-platform.h,
+ // or this header we have a wchar_t
+ #define ACE_HAS_WCHAR
+ #undef ACE_LACKS_WCHAR_T
+ // The wchar type is simpley wchar_t
+ #define ACE_WCHAR_T wchar_t
+ #define ACE_WINT_T wint_t
+ #define ACE_WCHAR_T_TYPE wchar_t
+ #define ACE_LACKS_NATIVR_WCHAR_T ACE_LACKS_BUILTIN_WCHAR_T
+ namespace ACE_OS { typedef wchar_t WChar; }
+#endif /* ACE_LACKS_DEPRECATED_MACROS */
+
+// This package should only be included in the implementation files
+// that use it.
+#if defined (ACE_WIN32)
+#include "ace/ace_wchar_win32_defs.h"
+#endif
#endif /* ACE_WCHAR_H */
diff --git a/ace/ace_wchar.inl b/ace/ace_wchar.inl
deleted file mode 100644
index 617975df46a..00000000000
--- a/ace/ace_wchar.inl
+++ /dev/null
@@ -1,127 +0,0 @@
-// -*- C++ -*-
-//
-// $Id$
-
-// These are always inlined
-// FUZZ: disable check_for_inline
-
-#if defined (ACE_HAS_WCHAR)
-
-#if !defined (ACE_WIN32)
-# include /**/ <string.h> // Need to see strlen()
-#endif /* ACE_WIN32 */
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-inline
-ACE_Wide_To_Ascii::~ACE_Wide_To_Ascii (void)
-{
- delete [] this->s_;
-}
-
-inline char *
-ACE_Wide_To_Ascii::char_rep (void)
-{
- return this->s_;
-}
-
-inline char *
-ACE_Wide_To_Ascii::convert (const wchar_t *wstr)
-{
- // Short circuit null pointer case
- if (wstr == 0)
- return 0;
-
-# if defined (ACE_WIN32)
- UINT cp = GetACP ();
- int len = ::WideCharToMultiByte (cp,
- 0,
- wstr,
- -1,
- 0,
- 0,
- 0,
- 0);
-# elif defined (ACE_LACKS_WCSLEN)
- const wchar_t *wtemp = wstr;
- while (wtemp != 0)
- ++wtemp;
-
- int len = wtemp - wstr + 1;
-# else /* ACE_WIN32 */
- size_t len = ::wcslen (wstr) + 1;
-# endif /* ACE_WIN32 */
-
- char *str = new char[len];
-
-# if defined (ACE_WIN32)
- ::WideCharToMultiByte (cp, 0, wstr, -1, str, len, 0, 0);
-# elif defined (VXWORKS)
- ::wcstombs (str, wstr, len);
-# else /* ACE_WIN32 */
- for (size_t i = 0; i < len; i++)
- {
- wchar_t *t = const_cast <wchar_t *> (wstr);
- str[i] = static_cast<char> (*(t + i));
- }
-# endif /* ACE_WIN32 */
- return str;
-}
-
-inline
-ACE_Wide_To_Ascii::ACE_Wide_To_Ascii (const wchar_t *s)
- : s_ (ACE_Wide_To_Ascii::convert (s))
-{
-}
-
-inline
-ACE_Ascii_To_Wide::~ACE_Ascii_To_Wide (void)
-{
- delete [] this->s_;
-}
-
-inline wchar_t *
-ACE_Ascii_To_Wide::wchar_rep (void)
-{
- return this->s_;
-}
-
-inline wchar_t *
-ACE_Ascii_To_Wide::convert (const char *str)
-{
- // Short circuit null pointer case
- if (str == 0)
- return 0;
-
-# if defined (ACE_WIN32)
- UINT cp = GetACP ();
- int len = ::MultiByteToWideChar (cp, 0, str, -1, 0, 0);
-# else /* ACE_WIN32 */
- size_t len = strlen (str) + 1;
-# endif /* ACE_WIN32 */
-
- wchar_t *wstr = new wchar_t[len];
-
-# if defined (ACE_WIN32)
- ::MultiByteToWideChar (cp, 0, str, -1, wstr, len);
-# elif defined (VXWORKS)
- ::mbstowcs (wstr, str, len);
-# else /* ACE_WIN32 */
- for (size_t i = 0; i < len; i++)
- {
- char *t = const_cast<char *> (str);
- wstr[i] = static_cast<wchar_t> (*((unsigned char*)(t + i)));
- }
-# endif /* ACE_WIN32 */
- return wstr;
-}
-
-inline
-ACE_Ascii_To_Wide::ACE_Ascii_To_Wide (const char *s)
- : s_ (ACE_Ascii_To_Wide::convert (s))
-{
-}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-#endif /* ACE_HAS_WCHAR */
diff --git a/ace/ace_wchar_win32_defs.h b/ace/ace_wchar_win32_defs.h
new file mode 100644
index 00000000000..eec4ab2dd2c
--- /dev/null
+++ b/ace/ace_wchar_win32_defs.h
@@ -0,0 +1,100 @@
+/* -*- C++ -*- */
+// $Id$
+
+// Windows Macros
+#if defined (ACE_USES_WCHAR)
+#define ACE_TEXT_SERVICE_TABLE_ENTRY SERVICE_TABLE_ENTRYW
+#define ACE_TEXT_STARTUPINFO STARTUPINFOW
+#define ACE_TEXT_WIN32_FIND_DATA WIN32_FIND_DATAW
+
+#define ACE_TEXT_CreateEvent ::CreateEventW
+#define ACE_TEXT_CreateFile ::CreateFileW
+#define ACE_TEXT_CreateFileMapping ::CreateFileMappingW
+#define ACE_TEXT_CreateMutex ::CreateMutexW
+#define ACE_TEXT_CreateProcess ::CreateProcessW
+#define ACE_TEXT_CreateSemaphore ::CreateSemaphoreW
+#define ACE_TEXT_CreateService ::CreateServiceW
+#define ACE_TEXT_ExpandEnvironmentStrings ::ExpandEnvironmentStringsW
+#define ACE_TEXT_FindFirstChangeNotification ::FindFirstChangeNotificationW
+#define ACE_TEXT_FindFirstFile ::FindFirstFileW
+#define ACE_TEXT_FindNextFile ::FindNextFileW
+#define ACE_TEXT_FormatMessage ::FormatMessageW
+#define ACE_TEXT_FreeEnvironmentStrings ::FreeEnvironmentStringsW
+#define ACE_TEXT_GetComputerName ::GetComputerNameW
+#define ACE_TEXT_GetEnvironmentStrings ::GetEnvironmentStringsW
+#define ACE_TEXT_GetFileAttributes ::GetFileAttributesW
+#define ACE_TEXT_GetModuleFileName ::GetModuleFileNameW
+#define ACE_TEXT_GetTempPath ::GetTempPathW
+#define ACE_TEXT_GetUserName ::GetUserNameW
+#define ACE_TEXT_LoadLibrary ::LoadLibraryW
+#define ACE_TEXT_MoveFileEx ::MoveFileExW
+#define ACE_TEXT_WaitNamedPipe ::WaitNamedPipeW
+#define ACE_TEXT_OpenFileMapping ::OpenFileMappingW
+#define ACE_TEXT_OpenSCManager ::OpenSCManagerW
+#define ACE_TEXT_OpenService ::OpenServiceW
+#define ACE_TEXT_RegisterEventSource ::RegisterEventSourceW
+#define ACE_TEXT_RegisterServiceCtrlHandler ::RegisterServiceCtrlHandlerW
+#define ACE_TEXT_RegConnectRegistry ::RegConnectRegistryW
+#define ACE_TEXT_RegCreateKeyEx ::RegCreateKeyExW
+#define ACE_TEXT_RegDeleteKey ::RegDeleteKeyW
+#define ACE_TEXT_RegDeleteValue ::RegDeleteValueW
+#define ACE_TEXT_RegEnumKeyEx ::RegEnumKeyExW
+#define ACE_TEXT_RegEnumValue ::RegEnumValueW
+#define ACE_TEXT_RegCreateKey ::RegCreateKeyW
+#define ACE_TEXT_RegOpenKey ::RegOpenKeyW
+#define ACE_TEXT_RegOpenKeyEx ::RegOpenKeyExW
+#define ACE_TEXT_RegQueryValueEx ::RegQueryValueExW
+#define ACE_TEXT_RegSetValueEx ::RegSetValueExW
+#define ACE_TEXT_ReportEvent ::ReportEventW
+#define ACE_TEXT_SearchPath ::SearchPathW
+#define ACE_TEXT_StartService ::StartServiceW
+#define ACE_TEXT_StartServiceCtrlDispatcher ::StartServiceCtrlDispatcherW
+
+#else /* ACE_USES_WCHAR */
+#define ACE_TEXT_SERVICE_TABLE_ENTRY SERVICE_TABLE_ENTRYA
+#define ACE_TEXT_STARTUPINFO STARTUPINFOA
+#define ACE_TEXT_WIN32_FIND_DATA WIN32_FIND_DATAA
+
+#define ACE_TEXT_CreateEvent ::CreateEventA
+#define ACE_TEXT_CreateFile ::CreateFileA
+#define ACE_TEXT_CreateFileMapping ::CreateFileMappingA
+#define ACE_TEXT_CreateMutex ::CreateMutexA
+#define ACE_TEXT_CreateProcess ::CreateProcessA
+#define ACE_TEXT_CreateSemaphore ::CreateSemaphoreA
+#define ACE_TEXT_CreateService ::CreateServiceA
+#define ACE_TEXT_ExpandEnvironmentStrings ::ExpandEnvironmentStringsA
+#define ACE_TEXT_FindFirstChangeNotification ::FindFirstChangeNotificationA
+#define ACE_TEXT_FindFirstFile ::FindFirstFileA
+#define ACE_TEXT_FindNextFile ::FindNextFileA
+#define ACE_TEXT_FormatMessage ::FormatMessageA
+#define ACE_TEXT_FreeEnvironmentStrings ::FreeEnvironmentStringsA
+#define ACE_TEXT_GetComputerName ::GetComputerNameA
+#define ACE_TEXT_GetEnvironmentStrings ::GetEnvironmentStringsA
+#define ACE_TEXT_GetFileAttributes ::GetFileAttributesA
+#define ACE_TEXT_GetModuleFileName ::GetModuleFileNameA
+#define ACE_TEXT_GetTempPath ::GetTempPathA
+#define ACE_TEXT_GetUserName ::GetUserNameA
+#define ACE_TEXT_LoadLibrary ::LoadLibraryA
+#define ACE_TEXT_MoveFileEx ::MoveFileExA
+#define ACE_TEXT_WaitNamedPipe ::WaitNamedPipeA
+#define ACE_TEXT_OpenFileMapping ::OpenFileMappingA
+#define ACE_TEXT_OpenSCManager ::OpenSCManagerA
+#define ACE_TEXT_OpenService ::OpenServiceA
+#define ACE_TEXT_RegisterEventSource ::RegisterEventSourceA
+#define ACE_TEXT_RegisterServiceCtrlHandler ::RegisterServiceCtrlHandlerA
+#define ACE_TEXT_RegConnectRegistry ::RegConnectRegistryA
+#define ACE_TEXT_RegCreateKeyEx ::RegCreateKeyExA
+#define ACE_TEXT_RegDeleteKey ::RegDeleteKeyA
+#define ACE_TEXT_RegDeleteValue ::RegDeleteValueA
+#define ACE_TEXT_RegEnumKeyEx ::RegEnumKeyExA
+#define ACE_TEXT_RegEnumValue ::RegEnumValueA
+#define ACE_TEXT_RegCreateKey ::RegCreateKeyA
+#define ACE_TEXT_RegOpenKey ::RegOpenKeyA
+#define ACE_TEXT_RegOpenKeyEx ::RegOpenKeyExA
+#define ACE_TEXT_RegQueryValueEx ::RegQueryValueExA
+#define ACE_TEXT_RegSetValueEx ::RegSetValueExA
+#define ACE_TEXT_ReportEvent ::ReportEventA
+#define ACE_TEXT_SearchPath ::SearchPathA
+#define ACE_TEXT_StartService ::StartServiceA
+#define ACE_TEXT_StartServiceCtrlDispatcher ::StartServiceCtrlDispatcherA
+#endif /* ACE_USES_WCHAR */
diff --git a/ace/config-WinCE.h b/ace/config-WinCE.h
index 2b06b24ee43..e7611412a77 100644
--- a/ace/config-WinCE.h
+++ b/ace/config-WinCE.h
@@ -69,13 +69,22 @@
#define ACE_USES_WINCE_SEMA_SIMULATION
+#define ACE_LACKS_IOSTREAM_TOTALLY
+#define ACE_LACKS_ACE_IOSTREAM
+#define ACE_LACKS_AUTO_PTR
+
+#if defined (ACE_HAS_STRICT)
+# undef ACE_HAS_STRICT
+#endif // ACE_HAS_STRICT
+#define ACE_HAS_STRICT 1
+
#define ACE_HAS_NONSTATIC_OBJECT_MANAGER 1
// FILE stuff isn't always defined in CE
-#if (_MSC_VER < 1400) && !defined (_FILE_DEFINED)
+#ifndef _FILE_DEFINED
typedef void FILE;
# define _FILE_DEFINED
-#endif /* _MSC_VER < 1400 && !_FILE_DEFINED */
+#endif // _FILE_DEFINED
// This was defined in previous versions of CE, but not 2.11
#define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
@@ -164,9 +173,6 @@
#define ACE_LACKS_SOCKET_BUFSIZ
#define ACE_LACKS_ISATTY
#define ACE_LACKS_STRERROR
-#define ACE_LACKS_SYSTEM
-#define ACE_LACKS_SIGACTION
-#define ACE_LACKS_PIPE
#define ACE_LACKS_CUSERID
#define ACE_LACKS_CHDIR
@@ -176,8 +182,6 @@
#define ACE_LACKS_READLINK
#define ACE_LACKS_SWAB
#define ACE_LACKS_TEMPNAM
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETPROTOBYNAME
#if defined (_WIN32_WCE_EMULATION)
// @@ For some reason, qsort isn't defined correctly (_stdcall vs _cdecl)
@@ -185,19 +189,36 @@
# define ACE_LACKS_QSORT
#endif // _WIN32_WCE_EMULATION
-#if !defined (BUFSIZ)
+// @@ Followings are used to keep existing programs happy.
+
+#define ostream FILE
+# if !defined (BUFSIZ)
# define BUFSIZ 1024
-#endif
+#endif // BUFSIZ
typedef void (__cdecl * __sighandler_t)(int); // keep Signal compilation happy
typedef long off_t;
#define ACE_LACKS_MALLOC_H // We do have malloc.h, but don't use it.
+//#if (UNDER_CE < 300) // from prior ACE porting effort; left for future reference
+//#define ACE_LACKS_STRPBRK
+//#define ACE_LACKS_STRSPN
+//#define ACE_LACKS_STRTOD
+//#define ACE_LACKS_STRTOL
+//#define ACE_LACKS_STRTOUL
+//#endif // UNDER_CE < 300
+
#define ACE_HAS_WINCE_BROKEN_ERRNO
#define ACE_HAS_STRDUP_EMULATION
+// CE doesn't have <sys/types.h> instead <types.h>
+#define ACE_HAS_FLAT_TYPES_H
+
+// @@ This needs to be defined and initialized as a static. (Singleton?)
+#define ACE_DEFAULT_LOG_STREAM 0
+
// WinCE can't do fixed addresses for memory-mapped files.
#if defined (ACE_DEFAULT_BASE_ADDR)
# undef ACE_DEFAULT_BASE_ADDR
@@ -206,8 +227,9 @@ typedef long off_t;
#define ACE_HAS_TSS_EMULATION
-// This is still true up thru VC8...
+// Not sure if this is true for all versions. dhinton
#define ACE_LACKS_ERRNO_H
+#define ACE_LACKS_TIME_H
#define ACE_LACKS_SIGNAL_H
#define ACE_LACKS_SYS_STAT_H
diff --git a/ace/config-aix-4.x.h b/ace/config-aix-4.x.h
index ad23c397ec6..8d700706e7b 100644
--- a/ace/config-aix-4.x.h
+++ b/ace/config-aix-4.x.h
@@ -54,24 +54,12 @@
# if defined (__IBMCPP__) && (__IBMCPP__ >= 400)
# define ACE_EXPLICIT_TEMPLATE_DESTRUCTOR_TAKES_ARGS
# define ACE_HAS_TYPENAME_KEYWORD
- // When using -qtempinc, we don't need to see template implementation
- // source (though we do need a pragma to find the correct source file).
- // However, without -qtempinc (either -qnotempinc or -qtemplateregistry)
- // we do need to see the source.
-# if defined (__TEMPINC__)
-# if !defined ACE_TEMPLATES_REQUIRE_PRAGMA
-# define ACE_TEMPLATES_REQUIRE_PRAGMA
-# endif
-# else
-# if !defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-# define ACE_TEMPLATES_REQUIRE_SOURCE
-# endif
-# endif /* __TEMPINC__ */
-
# undef WIFEXITED
# undef WEXITSTATUS
-
# if (__IBMCPP__ >= 500) /* Visual Age C++ 5 */
+# if !defined (ACE_HAS_USING_KEYWORD)
+# define ACE_HAS_USING_KEYWORD 1
+# endif /* ACE_HAS_USING_KEYWORD */
# define ACE_HAS_STANDARD_CPP_LIBRARY 1
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
# endif /* __IBMCPP__ >= 500 */
@@ -98,9 +86,7 @@
# endif /* !ACE_MT_SAFE */
#else /* ! __xlC__ && ! __GNUG__ */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler in ace/config-aix-4.x.h
-# endif /* __cplusplus */
+# error unsupported compiler in ace/config-aix-4.x.h
#endif /* ! __xlC__ && ! __GNUG__ */
@@ -182,7 +168,6 @@
#define ACE_HAS_H_ERRNO
#define ACE_LACKS_STDINT_H
-#define ACE_LACKS_SYS_SYSCTL_H
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
#define ACE_HAS_NONCONST_SELECT_TIMEVAL
@@ -229,7 +214,7 @@
#endif /* ACE_AIX_VERS >= 403 */
#define ACE_HAS_SIGWAIT
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
#define ACE_HAS_STRBUF_T
// Compiler supports stropts.h
diff --git a/ace/config-all.h b/ace/config-all.h
index 9c0f3bf6efc..dba2349c254 100644
--- a/ace/config-all.h
+++ b/ace/config-all.h
@@ -23,6 +23,23 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+// ============================================================================
+// UNICODE macros (to be added later)
+// ============================================================================
+
+// Get the unicode (i.e. ACE_TCHAR) defines
+# include "ace/ace_wchar.h"
+
+# if defined (VXWORKS)
+# if defined (ghs)
+ // GreenHills 1.8.8 needs the stdarg.h #include before the #include of
+ // vxWorks.h.
+ // Also, be sure that these #includes come _after_ the key_t typedef, and
+ // before the #include of time.h.
+# include "ace/os_include/os_stdarg.h"
+# endif /* ghs */
+# endif /* VXWORKS */
+
// This is used to indicate that a platform doesn't support a
// particular feature.
#if defined ACE_HAS_VERBOSE_NOTSUP
@@ -72,6 +89,9 @@
# include "ace/Trace.h"
#endif /* ACE_OS_NTRACE */
+// Include the string conversion services here for backward compatibility
+#include "ace/String_Conversion_T.h"
+
// These includes are here to avoid circular dependencies.
// Keep this at the bottom of the file. It contains the main macros.
#include "ace/OS_main.h"
diff --git a/ace/config-borland-common.h b/ace/config-borland-common.h
index b692f07aecd..f53afcff76e 100644
--- a/ace/config-borland-common.h
+++ b/ace/config-borland-common.h
@@ -56,15 +56,18 @@
# define ACE_HAS_TEMPLATE_TYPEDEFS 1
# define ACE_HAS_TYPENAME_KEYWORD 1
# define ACE_HAS_USER_MODE_MASKS 1
+# define ACE_HAS_USING_KEYWORD 1
# define ACE_LACKS_ACE_IOSTREAM 1
+# define ACE_LACKS_INLINE_ASSEMBLY 1
# define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
# define ACE_LACKS_NATIVE_STRPTIME 1
# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE 1
# define ACE_LACKS_PRAGMA_ONCE 1
-# define ACE_HAS_NEW_NOTHROW
-# define ACE_TEMPLATES_REQUIRE_SOURCE 1
+# define ACE_NEW_THROWS_EXCEPTIONS 1
# define ACE_SIZEOF_LONG_DOUBLE 10
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%Lu")
+# define ACE_TEMPLATES_REQUIRE_SOURCE 1
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%Lu"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
# define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%Ld")
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
# define ACE_USES_STD_NAMESPACE_FOR_STDC_LIB 0
diff --git a/ace/config-chorus.h b/ace/config-chorus.h
index 5fa091bfff2..2081c84d0a2 100644
--- a/ace/config-chorus.h
+++ b/ace/config-chorus.h
@@ -38,9 +38,7 @@
# define ACE_LACKS_ACE_IOSTREAM /* MVME lacks signed and unsigned char */
# define ACE_LACKS_FLOATING_POINT
#else /* ! __GNUG__ && ! ghs */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler for ACE on Chorus
-# endif /* __cplusplus */
+# error unsupported compiler for ACE on Chorus
#endif /* ! __GNUG__ && ! ghs */
// OS-specific configuration
@@ -90,7 +88,6 @@
#define ACE_HAS_STRDUP_EMULATION
#define ACE_HAS_STRERROR
#define ACE_HAS_TSS_EMULATION
-#define ACE_LACKS_ALARM
#define ACE_LACKS_CONDATTR_PSHARED
#define ACE_LACKS_FORK
#define ACE_LACKS_GETHOSTENT
@@ -99,14 +96,6 @@
#define ACE_LACKS_SETPGID
#define ACE_LACKS_SETREGID
#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
#define ACE_LACKS_MADVISE
#define ACE_LACKS_MALLOC_H
#define ACE_LACKS_MEMORY_H
@@ -123,18 +112,12 @@
#define ACE_LACKS_SIGSET
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_SYS_MSG_H
-#define ACE_LACKS_SYSTEM
#define ACE_LACKS_SYSV_SHMEM
#define ACE_LACKS_UNIX_SIGNALS
#define ACE_LACKS_UTSNAME_T
-#define ACE_LACKS_UNAME
#define ACE_LACKS_WRITEV
#define ACE_LACKS_WAIT
#define ACE_PAGE_SIZE 4096
-#define ACE_LACKS_KILL
-#define ACE_LACKS_SIGACTION
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETPROTOBYNAME
// Chorus has syslog, but doesn't have setlogmask()
#define ACE_LACKS_SETLOGMASK
diff --git a/ace/config-cray.h b/ace/config-cray.h
index 4ebb1ad830a..e4c18486f09 100644
--- a/ace/config-cray.h
+++ b/ace/config-cray.h
@@ -46,6 +46,8 @@
#define ACE_HAS_TEMPLATE_SPECIALIZATION
+#define ACE_HAS_USING_KEYWORD
+
#define ACE_HAS_SSIZE_T
#define ACE_HAS_SYSV_IPC
@@ -85,7 +87,7 @@
#define ACE_HAS_POSIX_NONBLOCK
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
#define ACE_HAS_DIRENT
@@ -93,7 +95,7 @@
#define ACE_HAS_IP_MULTICAST
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
#define ACE_HAS_NONCONST_SELECT_TIMEVAL
diff --git a/ace/config-cxx-common.h b/ace/config-cxx-common.h
index f4549840c55..d118b6bb3f6 100644
--- a/ace/config-cxx-common.h
+++ b/ace/config-cxx-common.h
@@ -37,6 +37,7 @@
# define ACE_HAS_TEMPLATE_SPECIALIZATION
# define ACE_HAS_TEMPLATE_TYPEDEFS
# define ACE_HAS_TYPENAME_KEYWORD
+# define ACE_HAS_USING_KEYWORD
# define ACE_ENDLESS_LOOP \
unsigned int ace_endless_loop____ = 0; if (ace_endless_loop____) break;
diff --git a/ace/config-cygwin32.h b/ace/config-cygwin32.h
index 32537d1375c..db16c7e3d6c 100644
--- a/ace/config-cygwin32.h
+++ b/ace/config-cygwin32.h
@@ -33,6 +33,8 @@
#define ACE_IMPORT_SINGLETON_DECLARATION(T) extern template class T
#define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) extern template class SINGLETON_TYPE <CLASS, LOCK>;
+#define ACE_LACKS_SYSTIME_H
+
#define ACE_HAS_SELECT_H
#define ACE_LACKS_PRAGMA_ONCE
@@ -54,9 +56,7 @@
#if defined (__GNUG__)
# include "ace/config-g++-common.h"
#else
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler in ace/config-cygwin32.h
-# endif /* __cplusplus */
+# error unsupported compiler in ace/config-cygwin32.h
#endif /* __GNUG__ */
#define ACE_HAS_VOIDPTR_SOCKOPT 1
@@ -100,7 +100,7 @@
#define ACE_HAS_BIG_FD_SET
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
#define ACE_DEFAULT_MAX_SOCKET_BUFSIZ 65535
@@ -122,7 +122,6 @@
#define ACE_HAS_DIRENT
#define ACE_HAS_STRPTIME
-#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
#define ACE_LACKS_MKFIFO
#define ACE_LACKS_SIGINFO_H
@@ -137,10 +136,9 @@
#define ACE_LACKS_ITOW 1
#define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS 1
+#define ACE_LACKS_READDIR_R
#define ACE_LACKS_RLIMIT
#define ACE_LACKS_RWLOCK_T 1
-#define ACE_LACKS_SUSECONDS_T
-#define ACE_LACKS_SYS_SYSCTL_H
#define ACE_LACKS_FGETWS 1
#define ACE_LACKS_FPUTWS 1
@@ -157,8 +155,6 @@
#define ACE_HAS_POSIX_SEM
-#define ACE_HAS_P_READ_WRITE
-
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
// Cygwin DLL suffix is .dll
diff --git a/ace/config-dgux-4.11-epc.h b/ace/config-dgux-4.11-epc.h
index 4ac2079a768..a12225b5dc6 100644
--- a/ace/config-dgux-4.11-epc.h
+++ b/ace/config-dgux-4.11-epc.h
@@ -38,7 +38,7 @@
#define ACE_HAS_REENTRANT_FUNCTIONS
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
// Compiler/platform correctly calls init()/fini() for shared libraries.
#define ACE_HAS_AUTOMATIC_INIT_FINI
@@ -167,6 +167,7 @@
#define _DGUX_SOURCE
// #define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
#define ACE_HAS_UCONTEXT_T
+#define ACE_LACKS_SYSTIME_H
#define ACE_HAS_NONCONST_GETBY
#define ACE_LACKS_MADVISE
diff --git a/ace/config-dgux-4.x-ghs.h b/ace/config-dgux-4.x-ghs.h
index 67b028c3bf4..ae662587d6b 100644
--- a/ace/config-dgux-4.x-ghs.h
+++ b/ace/config-dgux-4.x-ghs.h
@@ -41,7 +41,7 @@
//#define ACE_HAS_REENTRANT_FUNCTIONS
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
// Compiler/platform correctly calls init()/fini() for shared libraries.
#define ACE_HAS_AUTOMATIC_INIT_FINI
@@ -187,6 +187,7 @@
#define ACE_TEMPLATES_REQUIRE_SOURCE
#define ACE_HAS_UCONTEXT_T
+#define ACE_LACKS_SYSTIME_H
#define ACE_HAS_NONCONST_GETBY
#define ACE_LACKS_MADVISE
diff --git a/ace/config-doxygen.h b/ace/config-doxygen.h
index d779436acd3..d60eb0d5955 100644
--- a/ace/config-doxygen.h
+++ b/ace/config-doxygen.h
@@ -16,10 +16,7 @@
#define ACE_CONFIG_DOXYGEN_H
/// Make sure that we always turn inlining on.
-#define __ACE_INLINE__
-
-/// Make the wchar_t interfaces available.
-#define ACE_HAS_WCHAR
+#defind __ACE_INLINE__
/// Make all the emulation versions of string operations visible
// #define ACE_LACKS_WCSTOK
@@ -100,6 +97,9 @@
/// Generate strptime documentation
#define ACE_HAS_STRPTIME
+/// Doxygen is capable of parsing using
+#define ACE_HAS_USING_KEYWORD
+
/// Generate icmp documentation
#define ACE_HAS_ICMP_SUPPORT 1
diff --git a/ace/config-freebsd.h b/ace/config-freebsd.h
index 6ed6e250bcc..fd1afe17751 100644
--- a/ace/config-freebsd.h
+++ b/ace/config-freebsd.h
@@ -103,15 +103,15 @@ extern "C" { char * cuserid (char *s); }
// Platform defines struct timespec but not timespec_t
#define ACE_LACKS_TIMESPEC_T
+#define ACE_LACKS_SYSTIME_H
+
#if (__FreeBSD_version < 501000)
#define ACE_LACKS_STDINT_H
#endif
-#define ACE_HAS_SYSCTL
#define ACE_LACKS_STRRECVFD
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
-#define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
+#define ACE_HAS_SIN_LEN
// Platform supports System V IPC (most versions of UNIX, but not Win32)
#define ACE_HAS_SYSV_IPC
@@ -256,7 +256,6 @@ typedef union sigval sigval_t;
#define ACE_LACKS_STROPTS_H
-// Needed when ACE_HAS_WCHAR is defined.
#define ACE_LACKS_WCSNICMP
#define ACE_LACKS_WCSICMP
#define ACE_LACKS_WCSDUP
diff --git a/ace/config-g++-common.h b/ace/config-g++-common.h
index 0886e0442a0..0428cf5f65f 100644
--- a/ace/config-g++-common.h
+++ b/ace/config-g++-common.h
@@ -16,6 +16,7 @@
#define ACE_HAS_TYPENAME_KEYWORD
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define ACE_HAS_TEMPLATE_SPECIALIZATION
+#define ACE_HAS_USING_KEYWORD
#define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
#define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
#define ACE_TEMPLATES_REQUIRE_SOURCE
diff --git a/ace/config-hpux-10.x-hpc++.h b/ace/config-hpux-10.x-hpc++.h
index 2003350903b..32c62e416a6 100644
--- a/ace/config-hpux-10.x-hpc++.h
+++ b/ace/config-hpux-10.x-hpc++.h
@@ -98,6 +98,10 @@
// Compiler supports the 'typename' qualifier.
# define ACE_HAS_TYPENAME_KEYWORD
+// This is legit for A.01.12 and probably at least as far back as A.01.07.
+// Before that, not sure. But you shouldn't be there anyway ;-)
+# define ACE_HAS_USING_KEYWORD
+
// Platform lacks streambuf "linebuffered ()".
# define ACE_LACKS_LINEBUFFERED_STREAMBUF
diff --git a/ace/config-hpux-10.x.h b/ace/config-hpux-10.x.h
index 7c6e7f00de9..b67a98b60ae 100644
--- a/ace/config-hpux-10.x.h
+++ b/ace/config-hpux-10.x.h
@@ -145,10 +145,6 @@ extern int h_errno; /* This isn't declared in a header file on HP-UX */
#define ACE_DLL_SUFFIX ".sl"
#define ACE_LD_SEARCH_PATH "SHLIB_PATH"
-// lacks setegid and seteuid
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETEUID
-
//////////////////////////////////////////////////////////////////////////
//
// STREAMS information
diff --git a/ace/config-hpux-11.00.h b/ace/config-hpux-11.00.h
index 38c5fe91bb0..ddc86e1ae7c 100644
--- a/ace/config-hpux-11.00.h
+++ b/ace/config-hpux-11.00.h
@@ -114,16 +114,18 @@
// used as formal arguments to a template class.
# define ACE_HAS_TEMPLATE_TYPEDEFS
+// This is legit for A.03.05 - not sure A.03.04, but it should be.
+# define ACE_HAS_USING_KEYWORD
+
# define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
// Platform lacks streambuf "linebuffered ()".
# define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
// Lack of (and broken) support for placement operator delete is a known
-// bug by HP, up until aC++ A.03.55.02.
-# if (__HP_aCC < 35502)
-# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE
-# endif /* __HP_aCC < 35502 */
+// bug by HP, at least as of aC++ A.03.10. It may be fixed later, and if so
+// this would change to be a #if against an appropriate value of __HP_aCC
+# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE
// Compiler's 'new' throws exceptions on failure, regardless of whether or
// not exception handling is enabled in the compiler options. Fortunately,
@@ -147,8 +149,6 @@
// Platform has XPG4 wide character support
# define ACE_HAS_XPG4_MULTIBYTE_CHAR
-# define ACE_HAS_WCHAR
-# define ACE_SIZEOF_WCHAR _WCHAR_T
# endif /* __cplusplus < 199707L */
@@ -274,10 +274,6 @@
// Platform supports IP multicast
#define ACE_HAS_IP_MULTICAST
-// At least for 11iv2, lacks perfect filtering.
-#if (HPUX_VERS >= 1123) && !defined (ACE_LACKS_PERFECT_MULTICAST_FILTERING)
-# define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
-#endif
/* Platform defines MAP_FAILED as a long constant. */
#define ACE_HAS_LONG_MAP_FAILED 1
@@ -400,13 +396,6 @@
// dlopen() takes a char* instead of const char*
#define ACE_HAS_CHARPTR_DL
-// lacks setegid and seteuid
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETEUID
-
-#define ACE_LACKS_SUSECONDS_T
-#define ACE_LACKS_SYS_SYSCTL_H
-
// Shared library name/path components
#define ACE_DLL_SUFFIX ".sl"
#if defined (__LP64__)
@@ -499,7 +488,7 @@
#define ACE_HAS_POSIX_SEM
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
#include /**/ "ace/post.h"
#endif /* ACE_CONFIG_H */
diff --git a/ace/config-icc-common.h b/ace/config-icc-common.h
index 6a37c13690e..c52b7192188 100644
--- a/ace/config-icc-common.h
+++ b/ace/config-icc-common.h
@@ -12,24 +12,11 @@
# define ACE_HAS_TYPENAME_KEYWORD
# define ACE_HAS_STANDARD_CPP_LIBRARY 1
# define ACE_HAS_TEMPLATE_SPECIALIZATION
+# define ACE_HAS_USING_KEYWORD
# define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
# define ACE_HAS_STRING_CLASS
-#if defined (ACE_HAS_CUSTOM_EXPORT_MACROS) && ACE_HAS_CUSTOM_EXPORT_MACROS == 0
-# undef ACE_HAS_CUSTOM_EXPORT_MACROS
-#else
-# ifndef ACE_HAS_CUSTOM_EXPORT_MACROS
-# define ACE_HAS_CUSTOM_EXPORT_MACROS
-# endif /* !ACE_HAS_CUSTOM_EXPORT_MACROS */
-# define ACE_Proper_Export_Flag __attribute__ ((visibility("default")))
-# define ACE_Proper_Import_Flag
-# define ACE_EXPORT_SINGLETON_DECLARATION(T) template class ACE_Proper_Export_Flag T
-# define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) template class ACE_Proper_Export_Flag SINGLETON_TYPE <CLASS, LOCK>;
-# define ACE_IMPORT_SINGLETON_DECLARATION(T) __extension__ extern template class T
-# define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) __extension__ extern template class SINGLETON_TYPE<CLASS, LOCK>;
-#endif /* ACE_HAS_CUSTOM_EXPORT_MACROS == 0 */
-
// __EXCEPTIONS is defined with -fexceptions, the egcs default. It
// is not defined with -fno-exceptions, the ACE default for g++.
// ACE_HAS_EXCEPTIONS is defined in
@@ -63,5 +50,9 @@
#define ACE_TEMPLATES_REQUIRE_SOURCE
+# if defined (ACE_HAS_EXCEPTIONS)
+# define ACE_NEW_THROWS_EXCEPTIONS
+# endif /* ACE_HAS_EXCEPTIONS */
+
#include /**/ "ace/post.h"
#endif /* ACE_LINUX_ICC_COMMON_H */
diff --git a/ace/config-integritySCA.h b/ace/config-integritySCA.h
index 4e68818b99b..3ea3325057a 100644
--- a/ace/config-integritySCA.h
+++ b/ace/config-integritySCA.h
@@ -18,14 +18,6 @@
#define ACE_LACKS_SETREUID
#define ACE_LACKS_SETREGID
#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-
#ifndef ACE_HAS_EXCEPTIONS
#define ACE_HAS_EXCEPTIONS
#endif
@@ -35,6 +27,7 @@
#define ACE_TEMPLATES_REQUIRE_SOURCE 1
#define ACE_HAS_TEMPLATE_TYPEDEFS
#define TAO_USE_SEQUENCE_TEMPLATES
+#define ACE_HAS_USING_KEYWORD
#define ACE_NEEDS_FUNC_DEFINITIONS
#define _REENTRANT
#define ACE_MT_SAFE 1
@@ -116,12 +109,9 @@
#define ACE_LACKS_PID_STUFF
#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
#define ACE_LACKS_IPC_H
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_PIPE
#define ACE_LACKS_SYS_PARAM_H
#define ACE_LACKS_SYS_MSG_H
#define ACE_LACKS_UTSNAME_T
-#define ACE_LACKS_UNAME
#define ACE_LACKS_UMASK
#define ACE_LACKS_ISATTY
#define ACE_LACKS_GETOPT
@@ -140,8 +130,6 @@
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_WRITEV
#define ACE_LACKS_READV
-#define ACE_LACKS_SYSCONF
-#define ACE_LACKS_GETOPT
/* below refers to fcntl style locking */
#define ACE_LACKS_FILELOCKS
diff --git a/ace/config-irix5.3-g++.h b/ace/config-irix5.3-g++.h
index c9f3cc99773..a3034d95583 100644
--- a/ace/config-irix5.3-g++.h
+++ b/ace/config-irix5.3-g++.h
@@ -16,6 +16,7 @@
#define ACE_SIZEOF_LONG_DOUBLE 8
+#define ACE_LACKS_SYSTIME_H
// Platform supports getpagesize() call.
#define ACE_HAS_GETPAGESIZE
#define IRIX5
diff --git a/ace/config-irix5.3-sgic++.h b/ace/config-irix5.3-sgic++.h
index b1a4e4cb13c..8be382ce9f4 100644
--- a/ace/config-irix5.3-sgic++.h
+++ b/ace/config-irix5.3-sgic++.h
@@ -17,12 +17,14 @@
#define ACE_SIZEOF_LONG_DOUBLE 8
#define ACE_LACKS_STDINT_H
+#define ACE_LACKS_SYSTIME_H
// Optimize ACE_Handle_Set for select().
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
// Platform supports getpagesize() call.
#define ACE_HAS_GETPAGESIZE
+#define ACE_LACKS_SYSTIME_H
#define ACE_HAS_SIGWAIT
// Platform supports System V IPC (most versions of UNIX, but not Win32)
diff --git a/ace/config-irix6.x-common.h b/ace/config-irix6.x-common.h
index 904054c97d0..c42bc6f83f2 100644
--- a/ace/config-irix6.x-common.h
+++ b/ace/config-irix6.x-common.h
@@ -158,6 +158,7 @@
// Platform supports POSIX timers via timestruc_t.
#define ACE_HAS_POSIX_TIME
+#define ACE_LACKS_SYSTIME_H
//**************************************************************
@@ -183,7 +184,7 @@
#define ACE_PI_CONTROL_BLOCK_ALIGN_LONGS 2
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
// IRIX 6.5 supports AIO
#define ACE_HAS_AIO_CALLS
diff --git a/ace/config-irix6.x-sgic++.h b/ace/config-irix6.x-sgic++.h
index 16e7d5e04fe..0af266cd458 100644
--- a/ace/config-irix6.x-sgic++.h
+++ b/ace/config-irix6.x-sgic++.h
@@ -17,6 +17,7 @@
#if _COMPILER_VERSION >= 720
#define ACE_HAS_TEMPLATE_SPECIALIZATION
#define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
+#define ACE_HAS_USING_KEYWORD
# ifdef _STANDARD_C_PLUS_PLUS
# define ACE_HAS_TYPENAME_KEYWORD
# endif /* _STANDARD_C_PLUS_PLUS */
diff --git a/ace/config-kcc-common.h b/ace/config-kcc-common.h
index 8b290109a96..13eeea19663 100644
--- a/ace/config-kcc-common.h
+++ b/ace/config-kcc-common.h
@@ -50,6 +50,8 @@
// Compiler doesn't support static data member templates.
//#define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES
+#define ACE_HAS_USING_KEYWORD
+
// Define this if you want to use the standard C++ library
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#define ACE_HAS_STRING_CLASS
diff --git a/ace/config-linux-common.h b/ace/config-linux-common.h
index 0352d866371..224cd7cd533 100644
--- a/ace/config-linux-common.h
+++ b/ace/config-linux-common.h
@@ -110,17 +110,18 @@
// macros to make prototypes visible.
# define ACE_LACKS_GETPGID_PROTOTYPE
-// @note the following defines are necessary with glibc 2.0 (0.961212-5)
+// NOTE: the following defines are necessary with glibc 2.0 (0.961212-5)
// on Alpha. I assume that they're necessary on Intel as well,
// but that may depend on the version of glibc that is used.
//# define ACE_HAS_DLFCN_H_BROKEN_EXTERN_C
# define ACE_HAS_VOIDPTR_SOCKOPT
+# define ACE_LACKS_SYSTIME_H
// Don't define _POSIX_SOURCE in ACE to make strtok() prototype
// visible. ACE shouldn't depend on feature test macros to make
// prototypes visible.
# define ACE_LACKS_STRTOK_R_PROTOTYPE
-// @note end of glibc 2.0 (0.961212-5)-specific configuration.
+// NOTE: end of glibc 2.0 (0.961212-5)-specific configuration.
// These macros determined by reading <stdio.h> on RH 7.1 and glibc's
// <features.h>.
@@ -173,14 +174,11 @@
#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
# define ACE_HAS_ISASTREAM_PROTO
# define ACE_HAS_PTHREAD_SIGMASK_PROTO
-# define ACE_HAS_CPU_SET_T
#endif /* __GLIBC__ > 2 || __GLIBC__ === 2 && __GLIBC_MINOR__ >= 3) */
// Then the compiler specific parts
-#if defined (__INTEL_COMPILER)
-# include "ace/config-icc-common.h"
-#elif defined (__GNUG__)
+#if defined (__GNUG__)
// config-g++-common.h undef's ACE_HAS_STRING_CLASS with -frepo, so
// this must appear before its #include.
# define ACE_HAS_STRING_CLASS
@@ -199,6 +197,8 @@
#elif defined (__DECCXX)
# define ACE_CONFIG_INCLUDE_CXX_COMMON
# include "ace/config-cxx-common.h"
+#elif defined (__INTEL_COMPILER)
+# include "ace/config-icc-common.h"
#elif defined (__BORLANDC__)
# undef ACE_HAS_LLSEEK
# undef ACE_HAS_LSEEK64
@@ -215,30 +215,17 @@
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
# define ACE_LACKS_SWAB
# undef ACE_HAS_CLOCK_GETTIME
-#elif defined (__GNUC__)
-/**
- * GNU C compiler.
- *
- * We need to recognize the GNU C compiler since TAO has at least one
- * C source header and file
- * (TAO/orbsvcs/orbsvcs/SSLIOP/params_dup.{h,c}) that may indirectly
- * include this
- */
#else /* ! __GNUG__ && ! __KCC && !__DECCXX && !__INTEL_COMPILER && !__BORLANDC__ && !__PGI */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler in ace/config-linux-common.h
-# endif /* __cplusplus */
+# error unsupported compiler in ace/config-linux-common.h
#endif /* ! __GNUG__ && ! __KCC */
-// Completely common part :-)
+// Completely common part :-)
// Platform/compiler has the sigwait(2) prototype
# define ACE_HAS_SIGWAIT
# define ACE_HAS_SIGSUSPEND
-# define ACE_HAS_UALARM
-
#if __GLIBC__ >= 2
#ifndef ACE_HAS_POSIX_REALTIME_SIGNALS
#define ACE_HAS_POSIX_REALTIME_SIGNALS
@@ -287,6 +274,12 @@
#define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
+// ACE WChar support
+#define ACE_SIZEOF_WCHAR 4
+#define ACE_WCHAR_MAX 0x7FFFFFFF
+#define ACE_LACKS_BUILTIN_WCHAR_T
+
+
// Optimize ACE_Handle_Set for select().
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
@@ -384,9 +377,12 @@
#if defined (__ia64) || defined(__alpha) || defined (__x86_64__)
// On 64 bit platforms, the "long" type is 64-bits. Override the
// default 32-bit platform-specific format specifiers appropriately.
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
-# define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%ld")
-# define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%lu"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
+# define ACE_SSIZE_T_FORMAT_SPECIFIER_A "%ld"
+# define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SSIZE_T_FORMAT_SPECIFIER_A)
+# define ACE_SIZE_T_FORMAT_SPECIFIER_A "%lu"
+# define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
#endif /* __ia64 */
#define ACE_SIZEOF_WCHAR 4
@@ -412,3 +408,4 @@
#include /**/ "ace/post.h"
#endif /* ACE_LINUX_COMMON_H */
+
diff --git a/ace/config-lite.h b/ace/config-lite.h
index 117933cbe61..abe7440b607 100644
--- a/ace/config-lite.h
+++ b/ace/config-lite.h
@@ -21,17 +21,356 @@
#include /**/ "ace/pre.h"
-#include "ace/config-macros.h"
+#include "ace/config.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-// Empty ACE_OS namespace to help identify compiler errors more
-// easily. -- @@ Do we really need this?
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-namespace ACE_OS {}
-ACE_END_VERSIONED_NAMESPACE_DECL
+// ACE_HAS_TLI is used to decide whether to try any XTI/TLI functionality
+// so if it isn't set, set it. Capabilities and differences between
+// XTI and TLI favor XTI, but when deciding to do anything, as opposed to
+// ACE_NOTSUP_RETURN for example, ACE_HAS_TLI is the deciding factor.
+#if !defined (ACE_HAS_TLI)
+# if defined (ACE_HAS_XTI)
+# define ACE_HAS_TLI
+# endif /* ACE_HAS_XTI */
+#endif /* ACE_HAS_TLI */
+
+#define ACE_BITS_PER_ULONG (8 * sizeof (u_long))
+
+#if !defined (ACE_OSTREAM_TYPE)
+# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
+# define ACE_OSTREAM_TYPE FILE
+# else /* ! ACE_LACKS_IOSTREAM_TOTALLY */
+# define ACE_OSTREAM_TYPE ostream
+# endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
+#endif /* ! ACE_OSTREAM_TYPE */
+
+#if !defined (ACE_DEFAULT_LOG_STREAM)
+# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
+# define ACE_DEFAULT_LOG_STREAM 0
+# else /* ! ACE_LACKS_IOSTREAM_TOTALLY */
+# define ACE_DEFAULT_LOG_STREAM (&cerr)
+# endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
+#endif /* ! ACE_DEFAULT_LOG_STREAM */
+
+// These two are only for backward compatibility. You should avoid
+// using them if not necessary.
+# define ACE_SYNCH_1 ACE_SYNCH_DECL
+# define ACE_SYNCH_2 ACE_SYNCH_USE
+
+// For Win32 compatibility...
+# if !defined (ACE_WSOCK_VERSION)
+# define ACE_WSOCK_VERSION 0, 0
+# endif /* ACE_WSOCK_VERSION */
+
+# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
+# define ACE_MT(X) X
+# if !defined (_REENTRANT)
+# define _REENTRANT
+# endif /* _REENTRANT */
+# else
+# define ACE_MT(X)
+# endif /* ACE_MT_SAFE */
+
+# if defined (ACE_HAS_PURIFY)
+# define ACE_INITIALIZE_MEMORY_BEFORE_USE
+# endif /* ACE_HAS_PURIFY */
+
+# if defined (ACE_HAS_VALGRIND)
+# define ACE_INITIALIZE_MEMORY_BEFORE_USE
+# endif /* ACE_HAS_VALGRIND */
+
+# if defined (ACE_HAS_USING_KEYWORD)
+# define ACE_USING using
+# else
+# define ACE_USING
+# endif /* ACE_HAS_USING_KEYWORD */
+
+# if defined (ACE_HAS_TYPENAME_KEYWORD)
+# define ACE_TYPENAME typename
+# else
+# define ACE_TYPENAME
+# endif /* ACE_HAS_TYPENAME_KEYWORD */
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+/**
+ * @deprecated The @c ACE_TEMPLATE_SPECIALIZATION and
+ * @c ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION macros are
+ * deprecated. Use standard C++ template specialization
+ * syntax instead.
+ */
+# define ACE_TEMPLATE_SPECIALIZATION template<>
+# define ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
+#endif /* !ACE_LACKS_DEPRECATED_MACROS */
+
+// =========================================================================
+// Perfect Multicast filting refers to RFC 3376, where a socket is only
+// delivered dgrams for groups joined even if it didn't bind the group
+// address. We turn this option off by default, although most OS's
+// except for Windows and Solaris probably lack perfect filtering.
+// =========================================================================
+
+# if !defined (ACE_LACKS_PERFECT_MULTICAST_FILTERING)
+# define ACE_LACKS_PERFECT_MULTICAST_FILTERING 0
+# endif /* ACE_LACKS_PERFECT_MULTICAST_FILTERING */
+
+// =========================================================================
+// Enable/Disable Features By Default
+// =========================================================================
+
+# if !defined (ACE_HAS_POSITION_INDEPENDENT_POINTERS)
+# define ACE_HAS_POSITION_INDEPENDENT_POINTERS 1
+# endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS */
+
+# if !defined (ACE_HAS_PROCESS_SPAWN)
+# if !defined (ACE_LACKS_FORK) || defined (ACE_WIN32) || defined (ACE_WINCE) || defined (ACE_OPENVMS) || defined (CHORUS)
+# define ACE_HAS_PROCESS_SPAWN 1
+# endif
+# endif /* ACE_HAS_PROCESS_SPAWN */
+
+# if !defined (ACE_HAS_DYNAMIC_LINKING)
+# if defined (ACE_HAS_SVR4_DYNAMIC_LINKING) || defined (ACE_WIN32) || defined (ACE_VXWORKS) || defined (__hpux)
+# define ACE_HAS_DYNAMIC_LINKING 1
+# endif
+# endif /* ACE_HAS_DYNAMIC_LINKING */
+
+# if defined (ACE_USES_FIFO_SEM)
+# if defined (ACE_HAS_POSIX_SEM) || defined (ACE_LACKS_MKFIFO) || defined (ACE_LACKS_FCNTL)
+# undef ACE_USES_FIFO_SEM
+# endif
+# endif /* ACE_USES_FIFO_SEM */
+
+// =========================================================================
+// RCSID Macros
+// =========================================================================
+
+// By default, DO NOT include RCS Id strings in object code.
+#if ! defined (ACE_USE_RCSID)
+# define ACE_USE_RCSID 0
+#endif /* #if ! defined (ACE_USE_RCSID) */
+
+#if (defined (ACE_USE_RCSID) && (ACE_USE_RCSID != 0))
+# if ! defined (ACE_RCSID)
+
+ // This hack has the following purposes:
+ // 1. To define the RCS id string variable as a static char*, so
+ // that there won't be any duplicate extern symbols at link
+ // time.
+ // 2. To have a RCS id string variable with a unique name for each
+ // file.
+ // 3. To avoid warnings of the type "variable declared and never
+ // used".
+
+# define ACE_RCSID(path, file, id) \
+ static inline const char* get_rcsid_ ## path ## _ ## file (const char*) \
+ { \
+ return id ; \
+ } \
+ static const char* rcsid_ ## path ## _ ## file = \
+ get_rcsid_ ## path ## _ ## file ( rcsid_ ## path ## _ ## file ) ;
+
+# endif /* #if ! defined (ACE_RCSID) */
+#else
+
+ // RCS id strings are not wanted.
+# if defined (ACE_RCSID)
+# undef ACE_RCSID
+# endif /* #if defined (ACE_RCSID) */
+# define ACE_RCSID(path, file, id) /* noop */
+#endif /* #if (defined (ACE_USE_RCSID) && (ACE_USE_RCSID != 0)) */
+
+// =========================================================================
+// INLINE macros
+//
+// These macros handle all the inlining of code via the .i or .inl files
+// =========================================================================
+
+#if defined (ACE_LACKS_INLINE_FUNCTIONS) && !defined (ACE_NO_INLINE)
+# define ACE_NO_INLINE
+#endif /* defined (ACE_LACKS_INLINE_FUNCTIONS) && !defined (ACE_NO_INLINE) */
+
+// ACE inlining has been explicitly disabled. Implement
+// internally within ACE by undefining __ACE_INLINE__.
+#if defined (ACE_NO_INLINE)
+# undef __ACE_INLINE__
+#endif /* ! ACE_NO_INLINE */
+
+#if defined (__ACE_INLINE__)
+# define ACE_INLINE inline
+# if !defined (ACE_HAS_INLINED_OSCALLS)
+# define ACE_HAS_INLINED_OSCALLS
+# endif /* !ACE_HAS_INLINED_OSCALLS */
+#else
+# define ACE_INLINE
+#endif /* __ACE_INLINE__ */
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ // =========================================================================
+ // EXPLICIT macro
+ // =========================================================================
+
+ /**
+ * @deprecated explicit is deprecated. ACE requires C++
+ * "explicit" keyword support.
+ */
+ # define ACE_EXPLICIT explicit
+#endif /* ACE_LACKS_DEPRECATED_MACROS */
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ // =========================================================================
+ // MUTABLE macro
+ // =========================================================================
+
+ /**
+ * @deprecated ACE_MUTABLE is deprecated. ACE requires C++ "mutable"
+ * keyword support.
+ */
+ # define ACE_MUTABLE mutable
+ # define ACE_CONST_WHEN_MUTABLE const
+#endif /* ACE_LACKS_DEPRECATED_MACROS */
+
+// ============================================================================
+// EXPORT macros
+//
+// Since Win32 DLL's do not export all symbols by default, they must be
+// explicitly exported (which is done by *_Export macros).
+// ============================================================================
+
+// Win32 should have already defined the macros in config-win32-common.h
+#if !defined (ACE_HAS_CUSTOM_EXPORT_MACROS)
+# define ACE_Proper_Export_Flag
+# define ACE_Proper_Import_Flag
+# define ACE_EXPORT_SINGLETON_DECLARATION(T)
+# define ACE_IMPORT_SINGLETON_DECLARATION(T)
+# define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+#else
+// An export macro should at the very least have been defined.
+
+# ifndef ACE_Proper_Import_Flag
+# define ACE_Proper_Import_Flag
+# endif /* !ACE_Proper_Import_Flag */
+
+# ifndef ACE_EXPORT_SINGLETON_DECLARATION
+# define ACE_EXPORT_SINGLETON_DECLARATION(T)
+# endif /* !ACE_EXPORT_SINGLETON_DECLARATION */
+
+# ifndef ACE_IMPORT_SINGLETON_DECLARATION
+# define ACE_IMPORT_SINGLETON_DECLARATION(T)
+# endif /* !ACE_IMPORT_SINGLETON_DECLARATION */
+
+# ifndef ACE_EXPORT_SINGLETON_DECLARE
+# define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* !ACE_EXPORT_SINGLETON_DECLARE */
+
+# ifndef ACE_IMPORT_SINGLETON_DECLARE
+# define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
+# endif /* !ACE_IMPORT_SINGLETON_DECLARE */
+
+#endif /* !ACE_HAS_CUSTOM_EXPORT_MACROS */
+
+// This is a whim of mine -- that instead of annotating a class with
+// ACE_Export in its declaration, we make the declaration near the TOP
+// of the file with ACE_DECLARE_EXPORT.
+// TS = type specifier (e.g., class, struct, int, etc.)
+// ID = identifier
+// So, how do you use it? Most of the time, just use ...
+// ACE_DECLARE_EXPORT(class, someobject);
+// If there are global functions to be exported, then use ...
+// ACE_DECLARE_EXPORT(void, globalfunction) (int, ...);
+// Someday, when template libraries are supported, we made need ...
+// ACE_DECLARE_EXPORT(template class, sometemplate) <class TYPE, class LOCK>;
+# define ACE_DECLARE_EXPORT(TS,ID) TS ACE_Export ID
+
+// ============================================================================
+// Cast macros
+//
+// These macros are used to choose between the old cast style and the new
+// *_cast<> operators
+// ============================================================================
+
+# define ACE_sap_any_cast(TYPE) reinterpret_cast<TYPE> (const_cast<ACE_Addr &> (ACE_Addr::sap_any))
+
+#if !defined (ACE_LACKS_DEPRECATED_MACROS)
+ /**
+ * @deprecated ACE_{static,reinterpret,dynamic,const}_cast@<@> is
+ * deprecated. Directly use standard C++ casts instead.
+ */
+ # define ACE_static_cast(TYPE, EXPR) static_cast<TYPE> (EXPR)
+ # define ACE_static_cast_1_ptr(TYPE, T1, EXPR) static_cast<TYPE<T1> *> (EXPR)
+ # define ACE_static_cast_2_ptr(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> *> (EXPR)
+ # define ACE_static_cast_3_ptr(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> *> (EXPR)
+ # define ACE_static_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
+ # define ACE_static_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
+ # define ACE_static_cast_1_ref(TYPE, T1, EXPR) static_cast<TYPE<T1> &> (EXPR)
+ # define ACE_static_cast_2_ref(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> &> (EXPR)
+ # define ACE_static_cast_3_ref(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> &> (EXPR)
+ # define ACE_static_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
+ # define ACE_static_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
+
+ # define ACE_const_cast(TYPE, EXPR) const_cast<TYPE> (EXPR)
+ # define ACE_const_cast_1_ptr(TYPE, T1, EXPR) const_cast<TYPE<T1> *> (EXPR)
+ # define ACE_const_cast_2_ptr(TYPE, T1, T2, EXPR) const_cast<TYPE<T1, T2> *> (EXPR)
+ # define ACE_const_cast_3_ptr(TYPE, T1, T2, T3, EXPR) const_cast<TYPE<T1, T2, T3> *> (EXPR)
+ # define ACE_const_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) const_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
+ # define ACE_const_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) const_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
+ # define ACE_const_cast_1_ref(TYPE, T1, EXPR) const_cast<TYPE<T1> &> (EXPR)
+ # define ACE_const_cast_2_ref(TYPE, T1, T2, EXPR) const_cast<TYPE<T1, T2> &> (EXPR)
+ # define ACE_const_cast_3_ref(TYPE, T1, T2, T3, EXPR) const_cast<TYPE<T1, T2, T3> &> (EXPR)
+ # define ACE_const_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) const_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
+ # define ACE_const_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) const_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
+
+ # define ACE_reinterpret_cast(TYPE, EXPR) reinterpret_cast<TYPE> (EXPR)
+ # define ACE_reinterpret_cast_1_ptr(TYPE, T1, EXPR) reinterpret_cast<TYPE<T1> *> (EXPR)
+ # define ACE_reinterpret_cast_2_ptr(TYPE, T1, T2, EXPR) reinterpret_cast<TYPE<T1, T2> *> (EXPR)
+ # define ACE_reinterpret_cast_3_ptr(TYPE, T1, T2, T3, EXPR) reinterpret_cast<TYPE<T1, T2, T3> *> (EXPR)
+ # define ACE_reinterpret_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
+ # define ACE_reinterpret_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
+ # define ACE_reinterpret_cast_1_ref(TYPE, T1, EXPR) reinterpret_cast<TYPE<T1> &> (EXPR)
+ # define ACE_reinterpret_cast_2_ref(TYPE, T1, T2, EXPR) reinterpret_cast<TYPE<T1, T2> &> (EXPR)
+ # define ACE_reinterpret_cast_3_ref(TYPE, T1, T2, T3, EXPR) reinterpret_cast<TYPE<T1, T2, T3> &> (EXPR)
+ # define ACE_reinterpret_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
+ # define ACE_reinterpret_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
+
+ # if defined (ACE_LACKS_RTTI)
+ # define ACE_dynamic_cast(TYPE, EXPR) static_cast<TYPE> (EXPR)
+ # define ACE_dynamic_cast_1_ptr(TYPE, T1, EXPR) static_cast<TYPE<T1> *> (EXPR)
+ # define ACE_dynamic_cast_2_ptr(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> *> (EXPR)
+ # define ACE_dynamic_cast_3_ptr(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> *> (EXPR)
+ # define ACE_dynamic_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
+ # define ACE_dynamic_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
+ # define ACE_dynamic_cast_1_ref(TYPE, T1, EXPR) static_cast<TYPE<T1> &> (EXPR)
+ # define ACE_dynamic_cast_2_ref(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> &> (EXPR)
+ # define ACE_dynamic_cast_3_ref(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> &> (EXPR)
+ # define ACE_dynamic_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
+ # define ACE_dynamic_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
+ # else /* ! ACE_LACKS_RTTI */
+ # define ACE_dynamic_cast(TYPE, EXPR) dynamic_cast<TYPE> (EXPR)
+ # define ACE_dynamic_cast_1_ptr(TYPE, T1, EXPR) dynamic_cast<TYPE<T1> *> (EXPR)
+ # define ACE_dynamic_cast_2_ptr(TYPE, T1, T2, EXPR) dynamic_cast<TYPE<T1, T2> *> (EXPR)
+ # define ACE_dynamic_cast_3_ptr(TYPE, T1, T2, T3, EXPR) dynamic_cast<TYPE<T1, T2, T3> *> (EXPR)
+ # define ACE_dynamic_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
+ # define ACE_dynamic_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
+ # define ACE_dynamic_cast_1_ref(TYPE, T1, EXPR) dynamic_cast<TYPE<T1> &> (EXPR)
+ # define ACE_dynamic_cast_2_ref(TYPE, T1, T2, EXPR) dynamic_cast<TYPE<T1, T2> &> (EXPR)
+ # define ACE_dynamic_cast_3_ref(TYPE, T1, T2, T3, EXPR) dynamic_cast<TYPE<T1, T2, T3> &> (EXPR)
+ # define ACE_dynamic_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
+ # define ACE_dynamic_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
+ # endif /* ! ACE_LACKS_RTTI */
+#endif /* ACE_LACKS_DEPRECATED_MACROS */
+
+# if !defined (ACE_CAST_CONST)
+ // Sun CC 4.2, for example, requires const in reinterpret casts of
+ // data members in const member functions. But, other compilers
+ // complain about the useless const. This keeps everyone happy.
+# if defined (__SUNPRO_CC)
+# define ACE_CAST_CONST const
+# else /* ! __SUNPRO_CC */
+# define ACE_CAST_CONST
+# endif /* ! __SUNPRO_CC */
+# endif /* ! ACE_CAST_CONST */
// ============================================================================
// UNICODE macros (to be added later)
@@ -41,16 +380,118 @@ ACE_END_VERSIONED_NAMESPACE_DECL
# include "ace/ace_wchar.h"
// ============================================================================
-// at_exit declarations
+// Compiler Silencing macros
+//
+// Some compilers complain about parameters that are not used. This macro
+// should keep them quiet.
+// ============================================================================
+
+#if defined (ghs) || defined (__GNUC__) || defined (__hpux) || defined (__sgi) || defined (__DECCXX) || defined (__KCC) || defined (__rational__) || defined (__USLC__) || defined (ACE_RM544) || defined (__DCC__) || defined (__PGI) || defined (__TANDEM)
+// Some compilers complain about "statement with no effect" with (a).
+// This eliminates the warnings, and no code is generated for the null
+// conditional statement. NOTE: that may only be true if -O is enabled,
+// such as with GreenHills (ghs) 1.8.8.
+# define ACE_UNUSED_ARG(a) do {/* null */} while (&a == 0)
+#elif defined (__DMC__)
+ #define ACE_UNUSED_ID(identifier)
+ template <class T>
+ inline void ACE_UNUSED_ARG(const T& ACE_UNUSED_ID(t)) { }
+#else /* ghs || __GNUC__ || ..... */
+# define ACE_UNUSED_ARG(a) (a)
+#endif /* ghs || __GNUC__ || ..... */
+
+#if defined (__sgi) || defined (ghs) || defined (__DECCXX) || defined(__BORLANDC__) || defined (__KCC) || defined (ACE_RM544) || defined (__USLC__) || defined (__DCC__) || defined (__PGI) || defined (__TANDEM)
+# define ACE_NOTREACHED(a)
+#else /* __sgi || ghs || ..... */
+# define ACE_NOTREACHED(a) a
+#endif /* __sgi || ghs || ..... */
+
+// ============================================================================
+// ACE_ALLOC_HOOK* macros
+//
+// Macros to declare and define class-specific allocation operators.
+// ============================================================================
+
+# if defined (ACE_HAS_ALLOC_HOOKS)
+# define ACE_ALLOC_HOOK_DECLARE \
+ void *operator new (size_t bytes); \
+ void operator delete (void *ptr);
+
+ // Note that these are just place holders for now. Some day they
+ // may be be replaced by <ACE_Malloc>.
+# define ACE_ALLOC_HOOK_DEFINE(CLASS) \
+ void *CLASS::operator new (size_t bytes) { return ::new char[bytes]; } \
+ void CLASS::operator delete (void *ptr) { delete [] ((char *) ptr); }
+# else
+# define ACE_ALLOC_HOOK_DECLARE struct __Ace {} /* Just need a dummy... */
+# define ACE_ALLOC_HOOK_DEFINE(CLASS)
+# endif /* ACE_HAS_ALLOC_HOOKS */
+
+// ============================================================================
+/**
+ * ACE_OSCALL* macros
+ *
+ * @deprecated ACE_OSCALL_RETURN and ACE_OSCALL should not be used.
+ * Please restart system calls in your application code.
+ * See the @c sigaction(2) man page for documentation
+ * regarding enabling restartable system calls across
+ * signals via the @c SA_RESTART flag.
+ *
+ * The following two macros used ensure that system calls are properly
+ * restarted (if necessary) when interrupts occur. However, that
+ * capability was never enabled by any of our supported platforms.
+ * In fact, some parts of ACE would not function properly when that
+ * ability was enabled. Furthermore, they assumed that ability to
+ * restart system calls was determined statically. That assumption
+ * does not hold for modern platforms, where that ability is
+ * determined dynamically at run-time.
+ */
// ============================================================================
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+#define ACE_OSCALL_RETURN(X,TYPE,FAILVALUE) \
+ do \
+ return (TYPE) (X); \
+ while (0)
+#define ACE_OSCALL(X,TYPE,FAILVALUE,RESULT) \
+ do \
+ RESULT = (TYPE) (X); \
+ while (0)
+
+#if defined (ACE_WIN32)
+# if defined (__BORLANDC__) && (__BORLANDC__ <= 0x550)
+# define ACE_WIN32CALL_RETURN(X,TYPE,FAILVALUE) \
+ do { \
+ TYPE ace_result_; \
+ TYPE ace_local_result_ = (TYPE) X; \
+ ace_result_ = ace_local_result_; \
+ if (ace_result_ == FAILVALUE) \
+ ACE_OS::set_errno_to_last_error (); \
+ return ace_result_; \
+ } while (0)
+# else
+# define ACE_WIN32CALL_RETURN(X,TYPE,FAILVALUE) \
+ do { \
+ TYPE ace_result_ = (TYPE) X; \
+ if (ace_result_ == FAILVALUE) \
+ ACE_OS::set_errno_to_last_error (); \
+ return ace_result_; \
+ } while (0)
+# endif /* defined (__BORLANDC__) && (__BORLANDC__ <= 0x550) */
+# define ACE_WIN32CALL(X,TYPE,FAILVALUE,RESULT) \
+ do { \
+ RESULT = (TYPE) X; \
+ if (RESULT == FAILVALUE) \
+ ACE_OS::set_errno_to_last_error (); \
+ } while (0)
+#endif /* ACE_WIN32 */
+
+// ============================================================================
+// at_exit declarations
+// ============================================================================
// Marker for cleanup, used by ACE_Exit_Info.
extern int ace_exit_hook_marker;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// For use by <ACE_OS::exit>.
extern "C"
{
@@ -71,8 +512,6 @@ typedef void (*ACE_CLEANUP_FUNC)(void *object, void *param) /* throw () */;
// log_msg declarations
// ============================================================================
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
# if defined (ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS)
typedef int (*ACE_SEH_EXCEPT_HANDLER)(void *);
// Prototype of win32 structured exception handler functions.
@@ -97,7 +536,149 @@ typedef void (*ACE_SYNC_LOG_MSG_HOOK) (const ACE_TCHAR *prog_name);
typedef ACE_OS_Thread_Descriptor *(*ACE_THR_DESC_LOG_MSG_HOOK) (void);
-ACE_END_VERSIONED_NAMESPACE_DECL
+// ============================================================================
+// Fundamental types
+// ============================================================================
+
+#if defined (ACE_WIN32)
+
+typedef HANDLE ACE_HANDLE;
+typedef SOCKET ACE_SOCKET;
+# define ACE_INVALID_HANDLE INVALID_HANDLE_VALUE
+
+#else /* ! ACE_WIN32 */
+
+typedef int ACE_HANDLE;
+typedef ACE_HANDLE ACE_SOCKET;
+# define ACE_INVALID_HANDLE -1
+
+#endif /* ACE_WIN32 */
+
+// Define the type that's returned from the platform's native thread
+// functions. ACE_THR_FUNC_RETURN is the type defined as the thread
+// function's return type, except when the thread function doesn't return
+// anything (pSoS). The ACE_THR_FUNC_NO_RETURN_VAL macro is used to
+// indicate that the actual thread function doesn't return anything. The
+// rest of ACE uses a real type so there's no a ton of conditional code
+// everywhere to deal with the possibility of no return type.
+# if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
+# include /**/ <taskLib.h>
+typedef int ACE_THR_FUNC_RETURN;
+# elif defined (ACE_PSOS)
+typedef int ACE_THR_FUNC_RETURN;
+// pSOS task functions don't really return anything... this just makes it
+// easier to deal with declaring variables internally in ACE.
+# elif defined (ACE_WIN32)
+typedef DWORD ACE_THR_FUNC_RETURN;
+# else
+typedef void* ACE_THR_FUNC_RETURN;
+# endif /* VXWORKS */
+typedef ACE_THR_FUNC_RETURN (*ACE_THR_FUNC)(void *);
+
+extern "C" {
+typedef void (*ACE_THR_C_DEST)(void *);
+}
+typedef void (*ACE_THR_DEST)(void *);
+
+// Now some platforms have special requirements...
+# if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
+typedef FUNCPTR ACE_THR_FUNC_INTERNAL; // where typedef int (*FUNCPTR) (...)
+# elif defined (ACE_PSOS)
+typedef void (*ACE_THR_FUNC_INTERNAL)(void *);
+# else
+typedef ACE_THR_FUNC ACE_THR_FUNC_INTERNAL;
+# endif /* VXWORKS */
+
+extern "C"
+{
+# if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
+typedef FUNCPTR ACE_THR_C_FUNC; // where typedef int (*FUNCPTR) (...)
+# elif defined (ACE_PSOS)
+// needed to handle task entry point type inconsistencies in pSOS+
+typedef void (*PSOS_TASK_ENTRY_POINT)();
+typedef void (*ACE_THR_C_FUNC)(void *);
+# else
+typedef ACE_THR_FUNC_RETURN (*ACE_THR_C_FUNC)(void *);
+# endif /* VXWORKS */
+}
+
+// ============================================================================
+// Macros for controlling the lifetimes of dlls loaded by ACE_DLL--including
+// all dlls loaded via the ACE Service Config framework.
+//
+// Please don't change these values or add new ones wantonly, since we use
+// the ACE_BIT_ENABLED, etc..., macros to test them.
+// ============================================================================
+
+// Per-process policy that unloads dlls eagerly.
+#define ACE_DLL_UNLOAD_POLICY_PER_PROCESS 0
+// Apply policy on a per-dll basis. If the dll doesn't use one of the macros
+// below, the current per-process policy will be used.
+#define ACE_DLL_UNLOAD_POLICY_PER_DLL 1
+// Don't unload dll when refcount reaches zero, i.e., wait for either an
+// explicit unload request or program exit.
+#define ACE_DLL_UNLOAD_POLICY_LAZY 2
+// Default policy allows dlls to control their own destinies, but will
+// unload those that don't make a choice eagerly.
+#define ACE_DLL_UNLOAD_POLICY_DEFAULT ACE_DLL_UNLOAD_POLICY_PER_DLL
+
+// Add this macro you one of your cpp file in your dll. X should
+// be either ACE_DLL_UNLOAD_POLICY_DEFAULT or ACE_DLL_UNLOAD_POLICY_LAZY.
+#define ACE_DLL_UNLOAD_POLICY(CLS,X) \
+extern "C" u_long CLS##_Export _get_dll_unload_policy (void) \
+ { return X;}
+
+// ============================================================================
+// ACE_USES_CLASSIC_SVC_CONF macro
+// ============================================================================
+
+// For now, default is to use the classic svc.conf format.
+#if !defined (ACE_USES_CLASSIC_SVC_CONF)
+# if defined (ACE_HAS_CLASSIC_SVC_CONF) && defined (ACE_HAS_XML_SVC_CONF)
+# error You can only use either CLASSIC or XML svc.conf, not both.
+# endif
+// Change the ACE_HAS_XML_SVC_CONF to ACE_HAS_CLASSIC_SVC_CONF when
+// we switch ACE to use XML svc.conf as default format.
+# if defined (ACE_HAS_XML_SVC_CONF)
+# define ACE_USES_CLASSIC_SVC_CONF 0
+# else
+# define ACE_USES_CLASSIC_SVC_CONF 1
+# endif /* ACE_HAS_XML_SVC_CONF */
+#endif /* ACE_USES_CLASSIC_SVC_CONF */
+
+// ============================================================================
+// Default svc.conf file extension.
+// ============================================================================
+#if defined (ACE_USES_CLASSIC_SVC_CONF) && (ACE_USES_CLASSIC_SVC_CONF == 1)
+# define ACE_DEFAULT_SVC_CONF_EXT ".conf"
+#else
+# define ACE_DEFAULT_SVC_CONF_EXT ".conf.xml"
+#endif /* ACE_USES_CLASSIC_SVC_CONF && ACE_USES_CLASSIC_SVC_CONF == 1 */
+
+// ============================================================================
+// Miscellaneous macros
+// ============================================================================
+
+#if defined (ACE_USES_EXPLICIT_STD_NAMESPACE)
+# define ACE_STD_NAMESPACE std
+#else
+# define ACE_STD_NAMESPACE
+#endif
+
+// empty ACE_OS namespace to help identify compiler errors more easily.
+namespace ACE_OS {}
+#if !defined (ACE_OS_String)
+# define ACE_OS_String ACE_OS
+#endif /* ACE_OS_String */
+#if !defined (ACE_OS_Memory)
+# define ACE_OS_Memory ACE_OS
+#endif /* ACE_OS_Memory */
+#if !defined (ACE_OS_Dirent)
+# define ACE_OS_Dirent ACE_OS
+#endif /* ACE_OS_Dirent */
+#if !defined (ACE_OS_TLI)
+# define ACE_OS_TLI ACE_OS
+#endif /* ACE_OS_TLI */
#include /**/ "ace/post.h"
diff --git a/ace/config-lynxos.h b/ace/config-lynxos.h
index bcb1635aac0..b2d723daa10 100644
--- a/ace/config-lynxos.h
+++ b/ace/config-lynxos.h
@@ -3,6 +3,13 @@
// The following configuration file is designed to work for LynxOS,
// version 3.0.0 and later, using the GNU g++ compiler.
+// Note on why ACE_HAS_POSIX_SEM is not #defined:
+// ACE_HAS_POSIX_SEM would cause native LynxOS mutexes and condition
+// variables to be used. But, they don't appear to be intended to be
+// used between processes. Without ACE_HAS_POSIX_SEM, ACE uses
+// semaphores for all synchronization. Those can be used between
+// processes
+
#ifndef ACE_CONFIG_H
#define ACE_CONFIG_H
#include /**/ "ace/pre.h"
@@ -21,6 +28,11 @@
# define ACE_NEEDS_IPC_1C_H
#endif /* ACE_LYNXOS_MAJOR */
+// Describe the native wchar_t
+#define ACE_SIZEOF_WCHAR 4
+#define ACE_WCHAR_MAX 0x7fffffff
+#define ACE_LACKS_BUILTIN_WCHAR_T
+
#if defined (__x86__)
# define ACE_HAS_PENTIUM
#elif defined (__powerpc__)
@@ -36,8 +48,6 @@
#define ACE_HAS_ALLOCA
#define ACE_HAS_ALLOCA_H
#define ACE_HAS_AUTOMATIC_INIT_FINI
-#define ACE_HAS_CHARPTR_SHMAT
-#define ACE_HAS_CHARPTR_SHMDT
#define ACE_HAS_CLOCK_GETTIME
#define ACE_HAS_CLOCK_SETTIME
#define ACE_HAS_CPLUSPLUS_HEADERS
@@ -48,6 +58,7 @@
#define ACE_HAS_GPERF
#define ACE_HAS_ICMP_SUPPORT 1
#define ACE_HAS_IP_MULTICAST
+#define ACE_HAS_LYNXOS_BROKEN_MMAP
#define ACE_HAS_LYNXOS_SIGNALS
#define ACE_HAS_MEMCHR
#define ACE_HAS_MSG
@@ -59,8 +70,8 @@
#define ACE_HAS_NONCONST_SETRLIMIT
#define ACE_HAS_NONCONST_WRITEV
#define ACE_HAS_POSIX_NONBLOCK
-#define ACE_HAS_POSIX_REALTIME_SIGNALS
#define ACE_HAS_POSIX_TIME
+#define ACE_HAS_PREDEFINED_THREAD_CANCELLED_MACRO
#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS
#define ACE_HAS_SCANDIR
#define ACE_HAS_SEMUN
@@ -79,6 +90,7 @@
#define ACE_HAS_TIMEZONE_GETTIMEOFDAY
#define ACE_HAS_TYPENAME_KEYWORD
#define ACE_LACKS_CONST_TIMESPEC_PTR
+#define ACE_LACKS_DLFCN_H
#define ACE_LACKS_GETOPT_PROTOTYPE
#define ACE_LACKS_GETPGID
#define ACE_LACKS_INET_ATON_PROTOTYPE
@@ -90,22 +102,53 @@
#define ACE_LACKS_REGEX_H
#define ACE_LACKS_RWLOCK_T
#define ACE_LACKS_SCANDIR_PROTOTYPE
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETEUID
+#define ACE_LACKS_SETPGID
#define ACE_LACKS_SIGINFO_H
+#define ACE_LACKS_SI_ADDR
#define ACE_LACKS_STRCASECMP_PROTOTYPE
#define ACE_LACKS_STRNCASECMP_PROTOTYPE
#define ACE_LACKS_SWAB_PROTOTYPE
#define ACE_LACKS_SYS_SELECT_H
+#define ACE_LACKS_TCP_NODELAY
#define ACE_LACKS_TIMESPEC_T
#define ACE_LACKS_UCONTEXT_H
#define ACE_LACKS_WCHAR_H
-#define ACE_LACKS_SUSECONDS_T
-#define ACE_LACKS_USECONDS_T
+#define ACE_LACKS_WCSLEN
+#define ACE_LACKS_WCSNCPY
+#define ACE_LACKS_WCSTOUL
+#define ACE_LACKS_WCSTOL
+#define ACE_LACKS_WCSTOD
+#define ACE_LACKS_ITOW
+#define ACE_LACKS_WCSTOK
+#define ACE_LACKS_WCSSTR
+#define ACE_LACKS_WCSSPN
+#define ACE_LACKS_WCSRCHR
+#define ACE_LACKS_WCSPBRK
+#define ACE_LACKS_WCSNCMP
+#define ACE_LACKS_WCSNCAT
+#define ACE_LACKS_WCSCSPN
+#define ACE_LACKS_WCSCPY
+#define ACE_LACKS_WCSCMP
+#define ACE_LACKS_WCSCHR
+#define ACE_LACKS_WCSCAT
+#define ACE_LACKS_TOWLOWER
+#define ACE_LACKS_TOWUPPER
+#define ACE_LACKS_FGETWC
+#define ACE_LACKS_UNGETWC
+#define ACE_LACKS_FGETWS
+#define ACE_LACKS_FPUTWS
+#define ACE_LACKS_WCSICMP
+#define ACE_LACKS_WCSNICMP
#define ACE_MALLOC_ALIGN 8
-#define ACE_PAGE_SIZE 4096
#define ACE_SCANDIR_CMP_USES_VOIDPTR
+// Don't use MAP_FIXED, at least for now.
+#define ACE_MAP_FIXED 0
+// LynxOS, through 3.0.0, does not support MAP_PRIVATE, so map it to
+// MAP_SHARED.
+#define ACE_MAP_PRIVATE ACE_MAP_SHARED
+#define ACE_PAGE_SIZE 4096
+
// Compile using multi-thread libraries.
#if !defined (ACE_MT_SAFE)
# define ACE_MT_SAFE 1
@@ -132,6 +175,8 @@
# define ACE_LACKS_SETDETACH
# define ACE_LACKS_THREAD_PROCESS_SCOPING
# define ACE_LACKS_THREAD_STACK_ADDR
+ // This gets around Lynx broken macro calls resulting in "::0"
+# define _POSIX_THREADS_CALLS
#endif /* ACE_MT_SAFE */
#define ACE_HAS_AIO_CALLS
@@ -145,6 +190,11 @@
#define ACE_HAS_BROKEN_PREALLOCATED_OBJECTS_AFTER_FORK 1
+// Looks like the modern compilers have support for namespaces. Or
+// rather we dont support any compiler without this support. Need to
+// get this macro off of ACE.
+#define ACE_HAS_USING_KEYWORD
+
#if __GNUC__ == 2 && __GNUC_MINOR__ == 9
// config-g++-common.h defines these incorrectly for LynxOS 3.x
// with G++ version 2.9-gnupro-98r2
@@ -153,10 +203,6 @@
# undef ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES
#endif /* __GNUC__ == 2 && __GNUC_MINOR__ == 9 */
-#if __GNUC__ < 3
-# define ACE_LACKS_NUMERIC_LIMITS
-#endif /* __GNUC__ < 3 */
-
// By default, don't include RCS Id strings in object code.
#if !defined (ACE_USE_RCSID)
# define ACE_USE_RCSID 0
@@ -166,40 +212,16 @@
#define __NO_INCLUDE_WARN__
#if ACE_LYNXOS_MAJOR > 3 /* LynxOS 4.x */
-# define ACE_HAS_POSIX_SEM
// "changes signedness" error (OS.i and many other files)
# define ACE_HAS_SOCKLEN_T
// LSOCK.cpp uses a macro from param.h, not included
# define ALIGNBYTES (sizeof(int) - 1)
# define ALIGN(p) (((unsigned)p + ALIGNBYTES) & ~ALIGNBYTES)
#else /* LynxOS 3.x */
- // Note on why ACE_HAS_POSIX_SEM is not #defined:
- // ACE_HAS_POSIX_SEM would cause native LynxOS mutexes and condition
- // variables to be used. But, they don't appear to be intended to be
- // used between processes. Without ACE_HAS_POSIX_SEM, ACE uses
- // semaphores for all synchronization. Those can be used between
- // processes
- //# define ACE_HAS_POSIX_SEM
-
- // Don't use MAP_FIXED, at least for now.
-# define ACE_MAP_FIXED 0
- // LynxOS, through 3.0.0, does not support MAP_PRIVATE,
- // so map it to MAP_SHARED.
-# define ACE_MAP_PRIVATE ACE_MAP_SHARED
-
- // This gets around Lynx broken macro calls resulting in "::0"
-# define _POSIX_THREADS_CALLS
-
-# define ACE_HAS_LYNXOS_BROKEN_MMAP
# define ACE_HAS_POLL
# define ACE_LACKS_AUTO_PTR
-# define ACE_LACKS_DLFCN_H
-# define ACE_LACKS_SETPGID
# define ACE_LACKS_SETREGID
# define ACE_LACKS_SETREUID
-# define ACE_LACKS_SETUID
-# define ACE_LACKS_SI_ADDR
-# define ACE_LACKS_TCP_NODELAY
#endif /* ACE_LYNXOS_MAJOR > 3 */
#include /**/ "ace/post.h"
diff --git a/ace/config-macosx-panther.h b/ace/config-macosx-panther.h
index 8807bdf17fa..e308cc09f05 100644
--- a/ace/config-macosx-panther.h
+++ b/ace/config-macosx-panther.h
@@ -16,8 +16,8 @@
#undef ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-#define ACE_LACKS_SUSECONDS_T
-#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
+#define ACE_SIZE_T_FORMAT_SPECIFIER_A "%lu"
+#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
#if defined (ACE_HAS_PENTIUM)
# undef ACE_HAS_PENTIUM
@@ -81,8 +81,7 @@
#define ACE_LACKS_STRRECVFD
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
-#define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
+#define ACE_HAS_SIN_LEN
// Platform supports System V IPC (most versions of UNIX, but not Win32)
#define ACE_HAS_SYSV_IPC
@@ -150,9 +149,11 @@
#endif /* ! ACE_MT_SAFE */
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_LACKS_THREAD_PROCESS_SCOPING
#define ACE_HAS_THREAD_SPECIFIC_STORAGE
#define ACE_HAS_DIRENT
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_POLL_H
#define ACE_LACKS_SEARCH_H
@@ -161,7 +162,7 @@
//#define ACE_HAS_RECURSIVE_MUTEXES
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
#define ACE_HAS_SEMUN
#define ACE_HAS_SIGINFO_T
diff --git a/ace/config-macosx-tiger.h b/ace/config-macosx-tiger.h
index 4f29cf72b1f..9484e261304 100644
--- a/ace/config-macosx-tiger.h
+++ b/ace/config-macosx-tiger.h
@@ -14,21 +14,14 @@
# include "ace/config-g++-common.h"
#endif /* __GNUG__ */
-// #undef ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
-#define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
+#undef ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
#undef ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
+#define ACE_SIZE_T_FORMAT_SPECIFIER_A "%lu"
+#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
-#if !defined (ACE_SIZEOF_LONG_DOUBLE)
-# if (__GNUC__ == 3 && __GNUC_MINOR__ == 3)
- // Size of long double in GCC 3.3 is 8.
-# define ACE_SIZEOF_LONG_DOUBLE 8
-# else // Else, the compiler is GCC4
- // For GCC4, the size is 16.
-# define ACE_SIZEOF_LONG_DOUBLE 16
-# endif // GCC 3.3
-#endif // ACE_SIZEOF_LONG_DOUBLE
+// Proper size of long double on both G4/G5 is 16
+#define ACE_SIZEOF_LONG_DOUBLE 16
#if defined (ACE_HAS_PENTIUM)
# undef ACE_HAS_PENTIUM
@@ -47,19 +40,7 @@
#define ACE_HAS_MEMCHR
#define ACE_LACKS_STROPTS_H
-
-// Wcharness....
-//#define ACE_LACKS_WCHAR_H
-#define ACE_HAS_WCHAR
-#define ACE_SIZEOF_WCHAR 4
-
-
-#define ACE_HAS_3_PARAM_WCSTOK
-#define ACE_LACKS_ITOW
-#define ACE_LACKS_WCSICMP
-#define ACE_LACKS_WCSNICMP
-#define ACE_LACKS_WCSDUP
-// #define ACE_LACKS_WCSLEN
+#define ACE_LACKS_WCHAR_H
// Mac lacks the following pthread features
#define ACE_LACKS_MUTEXATTR_PSHARED
@@ -108,7 +89,7 @@
#define ACE_LACKS_STRRECVFD
-#define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
+#define ACE_HAS_SIN_LEN
// Platform supports System V IPC (most versions of UNIX, but not Win32)
#define ACE_HAS_SYSV_IPC
@@ -179,9 +160,11 @@
#endif /* ! ACE_MT_SAFE */
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_LACKS_THREAD_PROCESS_SCOPING
#define ACE_HAS_THREAD_SPECIFIC_STORAGE
#define ACE_HAS_DIRENT
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_POLL_H
#define ACE_LACKS_SEARCH_H
@@ -190,7 +173,7 @@
//#define ACE_HAS_RECURSIVE_MUTEXES
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
#define ACE_HAS_SEMUN
#define ACE_HAS_SIGINFO_T
diff --git a/ace/config-macosx.h b/ace/config-macosx.h
index 7238c440bfd..ec570d4001d 100644
--- a/ace/config-macosx.h
+++ b/ace/config-macosx.h
@@ -16,7 +16,8 @@
#undef ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
-#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
+#define ACE_SIZE_T_FORMAT_SPECIFIER_A "%lu"
+#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
#if defined (ACE_HAS_PENTIUM)
# undef ACE_HAS_PENTIUM
@@ -63,8 +64,6 @@
#define ACE_HAS_NONCONST_SELECT_TIMEVAL
-#define ACE_HAS_SYSCTL
-
//?
#define ACE_LACKS_SIGSET
@@ -84,7 +83,7 @@
#define ACE_LACKS_STRRECVFD
-#define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
+#define ACE_HAS_SIN_LEN
// Platform supports System V IPC (most versions of UNIX, but not Win32)
//#define ACE_HAS_SYSV_IPC
@@ -152,9 +151,11 @@
#endif /* ! ACE_MT_SAFE */
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_LACKS_THREAD_PROCESS_SCOPING
#define ACE_HAS_THREAD_SPECIFIC_STORAGE
#define ACE_HAS_DIRENT
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_POLL_H
#define ACE_LACKS_SEARCH_H
@@ -162,7 +163,7 @@
//#define ACE_HAS_RECURSIVE_MUTEXES
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
#define ACE_HAS_SEMUN
#define ACE_HAS_SIGINFO_T
diff --git a/ace/config-macros.h b/ace/config-macros.h
deleted file mode 100644
index 9a8c22aa90a..00000000000
--- a/ace/config-macros.h
+++ /dev/null
@@ -1,648 +0,0 @@
-// -*- C++ -*-
-
-//==========================================================================
-/**
- * @file config-macros.h
- *
- * $Id$
- *
- * @author (Originally in OS.h)Doug Schmidt <schmidt@cs.wustl.edu>
- * @author Jesper S. M|ller<stophph@diku.dk>
- * @author and a cast of thousands...
- *
- * This file contains the contents of the old config-lite.h header
- * without C++ code (except for C++ code in macros). Specifically,
- * only macros or C language constructs are found in this header.
- * Allows configuration values and macros to be used by some C
- * language sources.
- */
-//==========================================================================
-
-#ifndef ACE_CONFIG_MACROS_H
-#define ACE_CONFIG_MACROS_H
-
-#include "ace/config.h"
-
-#include "ace/Version.h"
-#include "ace/Versioned_Namespace.h"
-
-// ACE_HAS_TLI is used to decide whether to try any XTI/TLI functionality
-// so if it isn't set, set it. Capabilities and differences between
-// XTI and TLI favor XTI, but when deciding to do anything, as opposed to
-// ACE_NOTSUP_RETURN for example, ACE_HAS_TLI is the deciding factor.
-#if !defined (ACE_HAS_TLI)
-# if defined (ACE_HAS_XTI)
-# define ACE_HAS_TLI
-# endif /* ACE_HAS_XTI */
-#endif /* ACE_HAS_TLI */
-
-#define ACE_BITS_PER_ULONG (8 * sizeof (u_long))
-
-#if !defined (ACE_OSTREAM_TYPE)
-# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
-# define ACE_OSTREAM_TYPE FILE
-# else /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-# define ACE_OSTREAM_TYPE ostream
-# endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-#endif /* ! ACE_OSTREAM_TYPE */
-
-#if !defined (ACE_DEFAULT_LOG_STREAM)
-# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
-# define ACE_DEFAULT_LOG_STREAM 0
-# else /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-# define ACE_DEFAULT_LOG_STREAM (&cerr)
-# endif /* ! ACE_LACKS_IOSTREAM_TOTALLY */
-#endif /* ! ACE_DEFAULT_LOG_STREAM */
-
-// These two are only for backward compatibility. You should avoid
-// using them if not necessary.
-#if !defined (ACE_LACKS_DEPRECATED_MACROS)
-/**
- * @deprecated The ACE_SYNCH_1 macro is deprecated
- */
-# define ACE_SYNCH_1 ACE_SYNCH_DECL
-/**
- * @deprecated The ACE_SYNCH_2 macro is deprecated
- */
-# define ACE_SYNCH_2 ACE_SYNCH_USE
-#endif
-
-// For Win32 compatibility...
-# if !defined (ACE_WSOCK_VERSION)
-# define ACE_WSOCK_VERSION 0, 0
-# endif /* ACE_WSOCK_VERSION */
-
-# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
-# define ACE_MT(X) X
-# if !defined (_REENTRANT)
-# define _REENTRANT
-# endif /* _REENTRANT */
-# else
-# define ACE_MT(X)
-# endif /* ACE_MT_SAFE */
-
-# if defined (ACE_HAS_PURIFY)
-# define ACE_INITIALIZE_MEMORY_BEFORE_USE
-# endif /* ACE_HAS_PURIFY */
-
-# if defined (ACE_HAS_VALGRIND)
-# define ACE_INITIALIZE_MEMORY_BEFORE_USE
-# endif /* ACE_HAS_VALGRIND */
-
-#if !defined (ACE_LACKS_DEPRECATED_MACROS)
-/**
- * @deprecated The @c ACE_HAS_USING macros are deprecated
- */
-# define ACE_USING using
-#endif /* !ACE_LACKS_DEPRECATED_MACROS */
-
-# if defined (ACE_HAS_TYPENAME_KEYWORD)
-# define ACE_TYPENAME typename
-# else
-# define ACE_TYPENAME
-# endif /* ACE_HAS_TYPENAME_KEYWORD */
-
-#if !defined (ACE_LACKS_DEPRECATED_MACROS)
-/**
- * @deprecated The @c ACE_TEMPLATE_SPECIALIZATION and
- * @c ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION macros are
- * deprecated. Use standard C++ template specialization
- * syntax instead.
- */
-# define ACE_TEMPLATE_SPECIALIZATION template<>
-# define ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
-#endif /* !ACE_LACKS_DEPRECATED_MACROS */
-
-// =========================================================================
-// Perfect Multicast filting refers to RFC 3376, where a socket is only
-// delivered dgrams for groups joined even if it didn't bind the group
-// address. We turn this option off by default, although most OS's
-// except for Windows and Solaris probably lack perfect filtering.
-// =========================================================================
-
-# if !defined (ACE_LACKS_PERFECT_MULTICAST_FILTERING)
-# define ACE_LACKS_PERFECT_MULTICAST_FILTERING 0
-# endif /* ACE_LACKS_PERFECT_MULTICAST_FILTERING */
-
-// =========================================================================
-// Enable/Disable Features By Default
-// =========================================================================
-
-# if !defined (ACE_HAS_POSITION_INDEPENDENT_POINTERS)
-# define ACE_HAS_POSITION_INDEPENDENT_POINTERS 1
-# endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS */
-
-# if !defined (ACE_HAS_PROCESS_SPAWN)
-# if !defined (ACE_LACKS_FORK) || defined (ACE_WIN32) || defined (ACE_WINCE) || defined (ACE_OPENVMS) || defined (CHORUS)
-# define ACE_HAS_PROCESS_SPAWN 1
-# endif
-# endif /* ACE_HAS_PROCESS_SPAWN */
-
-# if !defined (ACE_HAS_DYNAMIC_LINKING)
-# if defined (ACE_HAS_SVR4_DYNAMIC_LINKING) || defined (ACE_WIN32) || defined (ACE_VXWORKS) || defined (__hpux)
-# define ACE_HAS_DYNAMIC_LINKING 1
-# endif
-# endif /* ACE_HAS_DYNAMIC_LINKING */
-
-# if defined (ACE_USES_FIFO_SEM)
-# if defined (ACE_HAS_POSIX_SEM) || defined (ACE_LACKS_MKFIFO) || defined (ACE_LACKS_FCNTL)
-# undef ACE_USES_FIFO_SEM
-# endif
-# endif /* ACE_USES_FIFO_SEM */
-
-// =========================================================================
-// RCSID Macros
-// =========================================================================
-
-// By default, DO NOT include RCS Id strings in object code.
-#if ! defined (ACE_USE_RCSID)
-# define ACE_USE_RCSID 0
-#endif /* #if ! defined (ACE_USE_RCSID) */
-
-#if (defined (ACE_USE_RCSID) && (ACE_USE_RCSID != 0))
-# if ! defined (ACE_RCSID)
-
- // This hack has the following purposes:
- // 1. To define the RCS id string variable as a static char*, so
- // that there won't be any duplicate extern symbols at link
- // time.
- // 2. To have a RCS id string variable with a unique name for each
- // file.
- // 3. To avoid warnings of the type "variable declared and never
- // used".
-
-# define ACE_RCSID(path, file, id) \
- static inline const char* get_rcsid_ ## path ## _ ## file (const char*) \
- { \
- return id ; \
- } \
- static const char* rcsid_ ## path ## _ ## file = \
- get_rcsid_ ## path ## _ ## file ( rcsid_ ## path ## _ ## file ) ;
-
-# endif /* #if ! defined (ACE_RCSID) */
-#else
-
- // RCS id strings are not wanted.
-# if defined (ACE_RCSID)
-# undef ACE_RCSID
-# endif /* #if defined (ACE_RCSID) */
-# define ACE_RCSID(path, file, id) /* noop */
-#endif /* #if (defined (ACE_USE_RCSID) && (ACE_USE_RCSID != 0)) */
-
-// =========================================================================
-// INLINE macros
-//
-// These macros handle all the inlining of code via the .i or .inl files
-// =========================================================================
-
-#if defined (ACE_LACKS_INLINE_FUNCTIONS) && !defined (ACE_NO_INLINE)
-# define ACE_NO_INLINE
-#endif /* defined (ACE_LACKS_INLINE_FUNCTIONS) && !defined (ACE_NO_INLINE) */
-
-// ACE inlining has been explicitly disabled. Implement
-// internally within ACE by undefining __ACE_INLINE__.
-#if defined (ACE_NO_INLINE)
-# undef __ACE_INLINE__
-#endif /* ! ACE_NO_INLINE */
-
-#if defined (__ACE_INLINE__)
-# define ACE_INLINE inline
-# if !defined (ACE_HAS_INLINED_OSCALLS)
-# define ACE_HAS_INLINED_OSCALLS
-# endif /* !ACE_HAS_INLINED_OSCALLS */
-#else
-# define ACE_INLINE
-#endif /* __ACE_INLINE__ */
-
-#if !defined (ACE_LACKS_DEPRECATED_MACROS)
- // =========================================================================
- // EXPLICIT macro
- // =========================================================================
-
- /**
- * @deprecated explicit is deprecated. ACE requires C++
- * "explicit" keyword support.
- */
- # define ACE_EXPLICIT explicit
-#endif /* ACE_LACKS_DEPRECATED_MACROS */
-
-#if !defined (ACE_LACKS_DEPRECATED_MACROS)
- // =========================================================================
- // MUTABLE macro
- // =========================================================================
-
- /**
- * @deprecated ACE_MUTABLE is deprecated. ACE requires C++ "mutable"
- * keyword support.
- */
- # define ACE_MUTABLE mutable
- # define ACE_CONST_WHEN_MUTABLE const
-#endif /* ACE_LACKS_DEPRECATED_MACROS */
-
-// ============================================================================
-// EXPORT macros
-//
-// Since Win32 DLL's do not export all symbols by default, they must be
-// explicitly exported (which is done by *_Export macros).
-// ============================================================================
-
-// Win32 should have already defined the macros in config-win32-common.h
-#if !defined (ACE_HAS_CUSTOM_EXPORT_MACROS)
-# define ACE_Proper_Export_Flag
-# define ACE_Proper_Import_Flag
-# define ACE_EXPORT_SINGLETON_DECLARATION(T)
-# define ACE_IMPORT_SINGLETON_DECLARATION(T)
-# define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-#else
-// An export macro should at the very least have been defined.
-
-# ifndef ACE_Proper_Import_Flag
-# define ACE_Proper_Import_Flag
-# endif /* !ACE_Proper_Import_Flag */
-
-# ifndef ACE_EXPORT_SINGLETON_DECLARATION
-# define ACE_EXPORT_SINGLETON_DECLARATION(T)
-# endif /* !ACE_EXPORT_SINGLETON_DECLARATION */
-
-# ifndef ACE_IMPORT_SINGLETON_DECLARATION
-# define ACE_IMPORT_SINGLETON_DECLARATION(T)
-# endif /* !ACE_IMPORT_SINGLETON_DECLARATION */
-
-# ifndef ACE_EXPORT_SINGLETON_DECLARE
-# define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* !ACE_EXPORT_SINGLETON_DECLARE */
-
-# ifndef ACE_IMPORT_SINGLETON_DECLARE
-# define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK)
-# endif /* !ACE_IMPORT_SINGLETON_DECLARE */
-
-#endif /* !ACE_HAS_CUSTOM_EXPORT_MACROS */
-
-// This is a whim of mine -- that instead of annotating a class with
-// ACE_Export in its declaration, we make the declaration near the TOP
-// of the file with ACE_DECLARE_EXPORT.
-// TS = type specifier (e.g., class, struct, int, etc.)
-// ID = identifier
-// So, how do you use it? Most of the time, just use ...
-// ACE_DECLARE_EXPORT(class, someobject);
-// If there are global functions to be exported, then use ...
-// ACE_DECLARE_EXPORT(void, globalfunction) (int, ...);
-// Someday, when template libraries are supported, we made need ...
-// ACE_DECLARE_EXPORT(template class, sometemplate) <class TYPE, class LOCK>;
-# define ACE_DECLARE_EXPORT(TS,ID) TS ACE_Export ID
-
-// ============================================================================
-// Cast macros
-//
-// These macros are used to choose between the old cast style and the new
-// *_cast<> operators
-// ============================================================================
-
-# define ACE_sap_any_cast(TYPE) reinterpret_cast<TYPE> (const_cast<ACE_Addr &> (ACE_Addr::sap_any))
-
-#if !defined (ACE_LACKS_DEPRECATED_MACROS)
- /**
- * @deprecated ACE_{static,reinterpret,dynamic,const}_cast@<@> is
- * deprecated. Directly use standard C++ casts instead.
- */
- # define ACE_static_cast(TYPE, EXPR) static_cast<TYPE> (EXPR)
- # define ACE_static_cast_1_ptr(TYPE, T1, EXPR) static_cast<TYPE<T1> *> (EXPR)
- # define ACE_static_cast_2_ptr(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> *> (EXPR)
- # define ACE_static_cast_3_ptr(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> *> (EXPR)
- # define ACE_static_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
- # define ACE_static_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
- # define ACE_static_cast_1_ref(TYPE, T1, EXPR) static_cast<TYPE<T1> &> (EXPR)
- # define ACE_static_cast_2_ref(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> &> (EXPR)
- # define ACE_static_cast_3_ref(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> &> (EXPR)
- # define ACE_static_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
- # define ACE_static_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
-
- # define ACE_const_cast(TYPE, EXPR) const_cast<TYPE> (EXPR)
- # define ACE_const_cast_1_ptr(TYPE, T1, EXPR) const_cast<TYPE<T1> *> (EXPR)
- # define ACE_const_cast_2_ptr(TYPE, T1, T2, EXPR) const_cast<TYPE<T1, T2> *> (EXPR)
- # define ACE_const_cast_3_ptr(TYPE, T1, T2, T3, EXPR) const_cast<TYPE<T1, T2, T3> *> (EXPR)
- # define ACE_const_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) const_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
- # define ACE_const_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) const_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
- # define ACE_const_cast_1_ref(TYPE, T1, EXPR) const_cast<TYPE<T1> &> (EXPR)
- # define ACE_const_cast_2_ref(TYPE, T1, T2, EXPR) const_cast<TYPE<T1, T2> &> (EXPR)
- # define ACE_const_cast_3_ref(TYPE, T1, T2, T3, EXPR) const_cast<TYPE<T1, T2, T3> &> (EXPR)
- # define ACE_const_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) const_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
- # define ACE_const_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) const_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
-
- # define ACE_reinterpret_cast(TYPE, EXPR) reinterpret_cast<TYPE> (EXPR)
- # define ACE_reinterpret_cast_1_ptr(TYPE, T1, EXPR) reinterpret_cast<TYPE<T1> *> (EXPR)
- # define ACE_reinterpret_cast_2_ptr(TYPE, T1, T2, EXPR) reinterpret_cast<TYPE<T1, T2> *> (EXPR)
- # define ACE_reinterpret_cast_3_ptr(TYPE, T1, T2, T3, EXPR) reinterpret_cast<TYPE<T1, T2, T3> *> (EXPR)
- # define ACE_reinterpret_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
- # define ACE_reinterpret_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
- # define ACE_reinterpret_cast_1_ref(TYPE, T1, EXPR) reinterpret_cast<TYPE<T1> &> (EXPR)
- # define ACE_reinterpret_cast_2_ref(TYPE, T1, T2, EXPR) reinterpret_cast<TYPE<T1, T2> &> (EXPR)
- # define ACE_reinterpret_cast_3_ref(TYPE, T1, T2, T3, EXPR) reinterpret_cast<TYPE<T1, T2, T3> &> (EXPR)
- # define ACE_reinterpret_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
- # define ACE_reinterpret_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) reinterpret_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
-
- # if defined (ACE_LACKS_RTTI)
- # define ACE_dynamic_cast(TYPE, EXPR) static_cast<TYPE> (EXPR)
- # define ACE_dynamic_cast_1_ptr(TYPE, T1, EXPR) static_cast<TYPE<T1> *> (EXPR)
- # define ACE_dynamic_cast_2_ptr(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> *> (EXPR)
- # define ACE_dynamic_cast_3_ptr(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> *> (EXPR)
- # define ACE_dynamic_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
- # define ACE_dynamic_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
- # define ACE_dynamic_cast_1_ref(TYPE, T1, EXPR) static_cast<TYPE<T1> &> (EXPR)
- # define ACE_dynamic_cast_2_ref(TYPE, T1, T2, EXPR) static_cast<TYPE<T1, T2> &> (EXPR)
- # define ACE_dynamic_cast_3_ref(TYPE, T1, T2, T3, EXPR) static_cast<TYPE<T1, T2, T3> &> (EXPR)
- # define ACE_dynamic_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) static_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
- # define ACE_dynamic_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) static_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
- # else /* ! ACE_LACKS_RTTI */
- # define ACE_dynamic_cast(TYPE, EXPR) dynamic_cast<TYPE> (EXPR)
- # define ACE_dynamic_cast_1_ptr(TYPE, T1, EXPR) dynamic_cast<TYPE<T1> *> (EXPR)
- # define ACE_dynamic_cast_2_ptr(TYPE, T1, T2, EXPR) dynamic_cast<TYPE<T1, T2> *> (EXPR)
- # define ACE_dynamic_cast_3_ptr(TYPE, T1, T2, T3, EXPR) dynamic_cast<TYPE<T1, T2, T3> *> (EXPR)
- # define ACE_dynamic_cast_4_ptr(TYPE, T1, T2, T3, T4, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4> *> (EXPR)
- # define ACE_dynamic_cast_5_ptr(TYPE, T1, T2, T3, T4, T5, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4, T5> *> (EXPR)
- # define ACE_dynamic_cast_1_ref(TYPE, T1, EXPR) dynamic_cast<TYPE<T1> &> (EXPR)
- # define ACE_dynamic_cast_2_ref(TYPE, T1, T2, EXPR) dynamic_cast<TYPE<T1, T2> &> (EXPR)
- # define ACE_dynamic_cast_3_ref(TYPE, T1, T2, T3, EXPR) dynamic_cast<TYPE<T1, T2, T3> &> (EXPR)
- # define ACE_dynamic_cast_4_ref(TYPE, T1, T2, T3, T4, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4> &> (EXPR)
- # define ACE_dynamic_cast_5_ref(TYPE, T1, T2, T3, T4, T5, EXPR) dynamic_cast<TYPE<T1, T2, T3, T4, T5> &> (EXPR)
- # endif /* ! ACE_LACKS_RTTI */
-#endif /* ACE_LACKS_DEPRECATED_MACROS */
-
-# if !defined (ACE_CAST_CONST)
- // Sun CC 4.2, for example, requires const in reinterpret casts of
- // data members in const member functions. But, other compilers
- // complain about the useless const. This keeps everyone happy.
-# if defined (__SUNPRO_CC)
-# define ACE_CAST_CONST const
-# else /* ! __SUNPRO_CC */
-# define ACE_CAST_CONST
-# endif /* ! __SUNPRO_CC */
-# endif /* ! ACE_CAST_CONST */
-
-// ============================================================================
-// Compiler Silencing macros
-//
-// Some compilers complain about parameters that are not used. This macro
-// should keep them quiet.
-// ============================================================================
-
-#if defined (ghs) || defined (__GNUC__) || defined (__hpux) || defined (__sgi) || defined (__DECCXX) || defined (__KCC) || defined (__rational__) || defined (__USLC__) || defined (ACE_RM544) || defined (__DCC__) || defined (__PGI) || defined (__TANDEM)
-// Some compilers complain about "statement with no effect" with (a).
-// This eliminates the warnings, and no code is generated for the null
-// conditional statement. @note that may only be true if -O is enabled,
-// such as with GreenHills (ghs) 1.8.8.
-# define ACE_UNUSED_ARG(a) do {/* null */} while (&a == 0)
-#elif defined (__DMC__)
- #define ACE_UNUSED_ID(identifier)
- template <class T>
- inline void ACE_UNUSED_ARG(const T& ACE_UNUSED_ID(t)) { }
-#else /* ghs || __GNUC__ || ..... */
-# define ACE_UNUSED_ARG(a) (a)
-#endif /* ghs || __GNUC__ || ..... */
-
-#if defined (__sgi) || defined (ghs) || defined (__DECCXX) || defined(__BORLANDC__) || defined (__KCC) || defined (ACE_RM544) || defined (__USLC__) || defined (__DCC__) || defined (__PGI) || defined (__TANDEM) || (defined (__HP_aCC) && (__HP_aCC >= 33200))
-# define ACE_NOTREACHED(a)
-#else /* __sgi || ghs || ..... */
-# define ACE_NOTREACHED(a) a
-#endif /* __sgi || ghs || ..... */
-
-// ============================================================================
-// ACE_ALLOC_HOOK* macros
-//
-// Macros to declare and define class-specific allocation operators.
-// ============================================================================
-
-# if defined (ACE_HAS_ALLOC_HOOKS)
-# define ACE_ALLOC_HOOK_DECLARE \
- void *operator new (size_t bytes); \
- void operator delete (void *ptr);
-
- // Note that these are just place holders for now. Some day they
- // may be be replaced by <ACE_Malloc>.
-# define ACE_ALLOC_HOOK_DEFINE(CLASS) \
- void *CLASS::operator new (size_t bytes) { return ::new char[bytes]; } \
- void CLASS::operator delete (void *ptr) { delete [] ((char *) ptr); }
-# else
-# define ACE_ALLOC_HOOK_DECLARE struct __Ace {} /* Just need a dummy... */
-# define ACE_ALLOC_HOOK_DEFINE(CLASS)
-# endif /* ACE_HAS_ALLOC_HOOKS */
-
-// ============================================================================
-/**
- * ACE_OSCALL* macros
- *
- * @deprecated ACE_OSCALL_RETURN and ACE_OSCALL should not be used.
- * Please restart system calls in your application code.
- * See the @c sigaction(2) man page for documentation
- * regarding enabling restartable system calls across
- * signals via the @c SA_RESTART flag.
- *
- * The following two macros used ensure that system calls are properly
- * restarted (if necessary) when interrupts occur. However, that
- * capability was never enabled by any of our supported platforms.
- * In fact, some parts of ACE would not function properly when that
- * ability was enabled. Furthermore, they assumed that ability to
- * restart system calls was determined statically. That assumption
- * does not hold for modern platforms, where that ability is
- * determined dynamically at run-time.
- */
-// ============================================================================
-
-#define ACE_OSCALL_RETURN(X,TYPE,FAILVALUE) \
- do \
- return (TYPE) (X); \
- while (0)
-#define ACE_OSCALL(X,TYPE,FAILVALUE,RESULT) \
- do \
- RESULT = (TYPE) (X); \
- while (0)
-
-#if defined (ACE_WIN32)
-# if defined (__BORLANDC__) && (__BORLANDC__ <= 0x550)
-# define ACE_WIN32CALL_RETURN(X,TYPE,FAILVALUE) \
- do { \
- TYPE ace_result_; \
- TYPE ace_local_result_ = (TYPE) X; \
- ace_result_ = ace_local_result_; \
- if (ace_result_ == FAILVALUE) \
- ACE_OS::set_errno_to_last_error (); \
- return ace_result_; \
- } while (0)
-# else
-# define ACE_WIN32CALL_RETURN(X,TYPE,FAILVALUE) \
- do { \
- TYPE ace_result_ = (TYPE) X; \
- if (ace_result_ == FAILVALUE) \
- ACE_OS::set_errno_to_last_error (); \
- return ace_result_; \
- } while (0)
-# endif /* defined (__BORLANDC__) && (__BORLANDC__ <= 0x550) */
-# define ACE_WIN32CALL(X,TYPE,FAILVALUE,RESULT) \
- do { \
- RESULT = (TYPE) X; \
- if (RESULT == FAILVALUE) \
- ACE_OS::set_errno_to_last_error (); \
- } while (0)
-#endif /* ACE_WIN32 */
-
-// ============================================================================
-// Fundamental types
-// ============================================================================
-
-#if defined (ACE_WIN32)
-
-typedef HANDLE ACE_HANDLE;
-typedef SOCKET ACE_SOCKET;
-# define ACE_INVALID_HANDLE INVALID_HANDLE_VALUE
-
-#else /* ! ACE_WIN32 */
-
-typedef int ACE_HANDLE;
-typedef ACE_HANDLE ACE_SOCKET;
-# define ACE_INVALID_HANDLE -1
-
-#endif /* ACE_WIN32 */
-
-// Define the type that's returned from the platform's native thread
-// functions. ACE_THR_FUNC_RETURN is the type defined as the thread
-// function's return type, except when the thread function doesn't return
-// anything (pSoS). The ACE_THR_FUNC_NO_RETURN_VAL macro is used to
-// indicate that the actual thread function doesn't return anything. The
-// rest of ACE uses a real type so there's no a ton of conditional code
-// everywhere to deal with the possibility of no return type.
-# if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
-# include /**/ <taskLib.h>
-typedef int ACE_THR_FUNC_RETURN;
-# elif defined (ACE_PSOS)
-typedef int ACE_THR_FUNC_RETURN;
-// pSOS task functions don't really return anything... this just makes it
-// easier to deal with declaring variables internally in ACE.
-# elif defined (ACE_WIN32)
-typedef DWORD ACE_THR_FUNC_RETURN;
-# else
-typedef void* ACE_THR_FUNC_RETURN;
-# endif /* ACE_VXWORKS */
-typedef ACE_THR_FUNC_RETURN (*ACE_THR_FUNC)(void *);
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-typedef void (*ACE_THR_C_DEST)(void *);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-typedef void (*ACE_THR_DEST)(void *);
-
-// Now some platforms have special requirements...
-# if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
-typedef FUNCPTR ACE_THR_FUNC_INTERNAL; // where typedef int (*FUNCPTR) (...)
-# elif defined (ACE_PSOS)
-typedef void (*ACE_THR_FUNC_INTERNAL)(void *);
-# else
-typedef ACE_THR_FUNC ACE_THR_FUNC_INTERNAL;
-# endif /* ACE_VXWORKS */
-
-# ifdef __cplusplus
-extern "C"
-{
-# endif /* __cplusplus */
-# if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
-typedef FUNCPTR ACE_THR_C_FUNC; // where typedef int (*FUNCPTR) (...)
-# elif defined (ACE_PSOS)
-// needed to handle task entry point type inconsistencies in pSOS+
-typedef void (*PSOS_TASK_ENTRY_POINT)();
-typedef void (*ACE_THR_C_FUNC)(void *);
-# else
-typedef ACE_THR_FUNC_RETURN (*ACE_THR_C_FUNC)(void *);
-# endif /* ACE_VXWORKS */
-# ifdef __cplusplus
-}
-# endif /* __cplusplus */
-
-// ============================================================================
-// Macros for controlling the lifetimes of dlls loaded by ACE_DLL--including
-// all dlls loaded via the ACE Service Config framework.
-//
-// Please don't change these values or add new ones wantonly, since we use
-// the ACE_BIT_ENABLED, etc..., macros to test them.
-// ============================================================================
-
-// Per-process policy that unloads dlls eagerly.
-#define ACE_DLL_UNLOAD_POLICY_PER_PROCESS 0
-// Apply policy on a per-dll basis. If the dll doesn't use one of the macros
-// below, the current per-process policy will be used.
-#define ACE_DLL_UNLOAD_POLICY_PER_DLL 1
-// Don't unload dll when refcount reaches zero, i.e., wait for either an
-// explicit unload request or program exit.
-#define ACE_DLL_UNLOAD_POLICY_LAZY 2
-// Default policy allows dlls to control their own destinies, but will
-// unload those that don't make a choice eagerly.
-#define ACE_DLL_UNLOAD_POLICY_DEFAULT ACE_DLL_UNLOAD_POLICY_PER_DLL
-
-// Add this macro you one of your cpp file in your dll. X should
-// be either ACE_DLL_UNLOAD_POLICY_DEFAULT or ACE_DLL_UNLOAD_POLICY_LAZY.
-#define ACE_DLL_UNLOAD_POLICY(CLS,X) \
-extern "C" u_long CLS##_Export _get_dll_unload_policy (void) \
- { return X;}
-
-// ============================================================================
-// ACE_USES_CLASSIC_SVC_CONF macro
-// ============================================================================
-
-// For now, default is to use the classic svc.conf format.
-#if !defined (ACE_USES_CLASSIC_SVC_CONF)
-# if defined (ACE_HAS_CLASSIC_SVC_CONF) && defined (ACE_HAS_XML_SVC_CONF)
-# error You can only use either CLASSIC or XML svc.conf, not both.
-# endif
-// Change the ACE_HAS_XML_SVC_CONF to ACE_HAS_CLASSIC_SVC_CONF when
-// we switch ACE to use XML svc.conf as default format.
-# if defined (ACE_HAS_XML_SVC_CONF)
-# define ACE_USES_CLASSIC_SVC_CONF 0
-# else
-# define ACE_USES_CLASSIC_SVC_CONF 1
-# endif /* ACE_HAS_XML_SVC_CONF */
-#endif /* ACE_USES_CLASSIC_SVC_CONF */
-
-// ============================================================================
-// Default svc.conf file extension.
-// ============================================================================
-#if defined (ACE_USES_CLASSIC_SVC_CONF) && (ACE_USES_CLASSIC_SVC_CONF == 1)
-# define ACE_DEFAULT_SVC_CONF_EXT ".conf"
-#else
-# define ACE_DEFAULT_SVC_CONF_EXT ".conf.xml"
-#endif /* ACE_USES_CLASSIC_SVC_CONF && ACE_USES_CLASSIC_SVC_CONF == 1 */
-
-// ============================================================================
-// Miscellaneous macros
-// ============================================================================
-
-#if defined (ACE_USES_EXPLICIT_STD_NAMESPACE)
-# define ACE_STD_NAMESPACE std
-#else
-# define ACE_STD_NAMESPACE
-#endif
-
-#if !defined (ACE_OS_String)
-# define ACE_OS_String ACE_OS
-#endif /* ACE_OS_String */
-#if !defined (ACE_OS_Memory)
-# define ACE_OS_Memory ACE_OS
-#endif /* ACE_OS_Memory */
-#if !defined (ACE_OS_Dirent)
-# define ACE_OS_Dirent ACE_OS
-#endif /* ACE_OS_Dirent */
-#if !defined (ACE_OS_TLI)
-# define ACE_OS_TLI ACE_OS
-#endif /* ACE_OS_TLI */
-
-// -------------------------------------------------------------------
-// Preprocessor symbols will not be expanded if they are
-// concatenated. Force the preprocessor to expand them during the
-// argument prescan by calling a macro that itself calls another that
-// performs the actual concatenation.
-#define ACE_PREPROC_CONCATENATE_IMPL(A,B) A ## B
-#define ACE_PREPROC_CONCATENATE(A,B) ACE_PREPROC_CONCATENATE_IMPL(A,B)
-// -------------------------------------------------------------------
-
-#endif /* ACE_CONFIG_MACROS_H */
diff --git a/ace/config-mit-pthread.h b/ace/config-mit-pthread.h
index afaf665c383..111d711c394 100644
--- a/ace/config-mit-pthread.h
+++ b/ace/config-mit-pthread.h
@@ -18,6 +18,7 @@
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
#define ACE_LACKS_PTHREAD_CANCEL
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_HAS_SIGWAIT
#define ACE_LACKS_THREAD_PROCESS_SCOPING
//#define ACE_LACKS_THREAD_STACK_ADDR
diff --git a/ace/config-mvs.h b/ace/config-mvs.h
index 7f490764501..f3982f72e7b 100644
--- a/ace/config-mvs.h
+++ b/ace/config-mvs.h
@@ -61,7 +61,7 @@
#define ACE_HAS_SIGWAIT
#define ACE_HAS_SIG_ATOMIC_T
#define ACE_HAS_SIG_C_FUNC
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
#define ACE_HAS_SIZET_SOCKET_LEN
#define ACE_HAS_SSIZE_T
#define ACE_HAS_STRERROR
@@ -93,6 +93,7 @@
#define ACE_LACKS_SETSCHED
#define ACE_LACKS_SIGINFO_H
#define ACE_LACKS_STRRECVFD
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_NETINET_TCP_H
#define ACE_LACKS_THREAD_PROCESS_SCOPING
#define ACE_LACKS_THREAD_STACK_ADDR
diff --git a/ace/config-netbsd.h b/ace/config-netbsd.h
index 1c7f52f3cf7..821ab46c4c1 100644
--- a/ace/config-netbsd.h
+++ b/ace/config-netbsd.h
@@ -51,8 +51,7 @@
#define ACE_HAS_SIGWAIT 1
#define ACE_HAS_SIG_ATOMIC_T 1
#define ACE_HAS_SIG_C_FUNC 1
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN 1
-#define ACE_HAS_SOCKADDR_IN6_SIN6_LEN 1
+#define ACE_HAS_SIN_LEN 1
#define ACE_HAS_SNPRINTF 1
#define ACE_HAS_SOCKADDR_MSG_NAME 1
#define ACE_HAS_SOCKLEN_T 1
@@ -71,7 +70,6 @@
#define ACE_HAS_SYS_SIGLIST 1
#define ACE_HAS_SYS_SOCKIO_H 1
#define ACE_HAS_SYS_SYSCALL_H 1
-#define ACE_HAS_SYSCTL
#define ACE_HAS_TEMPLATE_SPECIALIZATION 1
#define ACE_HAS_TEMPLATE_TYPEDEFS 1
#define ACE_HAS_TERMIOS 1
@@ -82,9 +80,9 @@
#define ACE_HAS_TYPENAME_KEYWORD 1
#define ACE_HAS_UALARM 1
#define ACE_HAS_UCONTEXT_T 1
+#define ACE_HAS_USING_KEYWORD 1
#define ACE_HAS_VOIDPTR_MMAP 1
#define ACE_HAS_VOIDPTR_SOCKOPT 1
-#define ACE_HAS_WCHAR 1
#define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR 1
#define ACE_HAS_XPG4_MULTIBYTE_CHAR 1
#define ACE_IOCTL_TYPE_ARG2 u_long
@@ -135,8 +133,10 @@
typedef unsigned long ACE_UINT64;
typedef signed long ACE_INT64;
-#define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%ld")
-#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT ("%lu")
+#define ACE_SSIZE_T_FORMAT_SPECIFIER_A "%ld"
+#define ACE_SSIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SSIZE_T_FORMAT_SPECIFIER_A)
+#define ACE_SIZE_T_FORMAT_SPECIFIER_A "%lu"
+#define ACE_SIZE_T_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_A)
#elif defined(__i386__)
#define ACE_HAS_PENTIUM 1
diff --git a/ace/config-openbsd.h b/ace/config-openbsd.h
index ff5de9d77dd..37c066f3382 100644
--- a/ace/config-openbsd.h
+++ b/ace/config-openbsd.h
@@ -97,14 +97,15 @@
// Platform defines struct timespec but not timespec_t
#define ACE_LACKS_TIMESPEC_T
+#define ACE_LACKS_SYSTIME_H
+
#define ACE_LACKS_STDINT_H
#define ACE_LACKS_STROPTS_H
#define ACE_LACKS_WCHAR_H
#define ACE_LACKS_STRRECVFD
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
-#define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
+#define ACE_HAS_SIN_LEN
// Platform supports System V IPC (most versions of UNIX, but not Win32)
#define ACE_HAS_SYSV_IPC
@@ -176,8 +177,6 @@
// Platform provides <sys/filio.h> header.
#define ACE_HAS_SYS_FILIO_H
-#define ACE_HAS_SYSCTL
-
// Platform/compiler supports timezone * as second parameter to gettimeofday().
#define ACE_HAS_TIMEZONE_GETTIMEOFDAY
@@ -223,7 +222,7 @@
#endif /* ! ACE_HAD_THREADS */
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
// OpenBSD actually has the clearerr call, but it causes a
// bogus compiler syntax error.
diff --git a/ace/config-openvms.h b/ace/config-openvms.h
index 2b62888e805..759f338f113 100644
--- a/ace/config-openvms.h
+++ b/ace/config-openvms.h
@@ -266,6 +266,10 @@
functions.*/
#define ACE_HAS_UALARM 1
/*Platform supports ualarm()*/
+#define ACE_HAS_USING_KEYWORD 1
+ /*Compiler supports the new
+ using keyword for C++
+ namespaces.*/
#define ACE_HAS_VOIDPTR_MMAP 1
/*Platform requires void * for
mmap().*/
diff --git a/ace/config-osf1-4.0.h b/ace/config-osf1-4.0.h
index a931bb47ec9..af0b4545ff9 100644
--- a/ace/config-osf1-4.0.h
+++ b/ace/config-osf1-4.0.h
@@ -1,7 +1,7 @@
/* -*- C++ -*- */
// $Id$
-// @note If you are using Digital UNIX V4.0f or later, you must
+// NOTE: if you are using Digital UNIX V4.0f or later, you must
// use config-tru64.h instead of directly using this config file.
// The following configuration file is designed to work for the
@@ -64,13 +64,12 @@
# define ACE_HAS_STDCPP_STL_INCLUDES
# define ACE_HAS_TEMPLATE_SPECIALIZATION
# define ACE_HAS_TYPENAME_KEYWORD
+# define ACE_HAS_USING_KEYWORD
#elif defined (__KCC)
# define ACE_HAS_STRING_CLASS
# include "ace/config-kcc-common.h"
#else
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler on Digital Unix
-# endif /* __cplusplus */
+# error unsupported compiler on Digital Unix
#endif /* ! __GNUG__ && ! __DECCXX && ! __rational__ && !_KCC */
#if (DIGITAL_UNIX >= 0x400) && (DIGITAL_UNIX < 0x500)
@@ -139,7 +138,6 @@
#define ACE_HAS_LONG_MAP_FAILED
#define ACE_HAS_MSG
#define ACE_HAS_NONCONST_SELECT_TIMEVAL
-#define ACE_HAS_NONCONST_SENDMSG
#define ACE_HAS_OSF1_GETTIMEOFDAY
#define ACE_HAS_OSF_TIMOD_H
#define ACE_HAS_POLL
diff --git a/ace/config-pharlap.h b/ace/config-pharlap.h
index fa274e22383..928e3395f9c 100644
--- a/ace/config-pharlap.h
+++ b/ace/config-pharlap.h
@@ -54,7 +54,6 @@
// Let the config-win32.h file do its thing
#undef ACE_CONFIG_H
#include "ace/config-win32.h"
-#undef ACE_HAS_WCHAR
#include /**/ <embkern.h>
#if defined (ACE_HAS_PHARLAP_RT)
diff --git a/ace/config-psos-diab-mips.h b/ace/config-psos-diab-mips.h
index 8e827eabea3..9427fa7962b 100644
--- a/ace/config-psos-diab-mips.h
+++ b/ace/config-psos-diab-mips.h
@@ -34,24 +34,8 @@
#define ACE_USE_RCSID 0
#endif /* #if !defined (ACE_USE_RCSID) */
-#define ACE_LACKS_ENV
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETPGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-
#define ACE_LACKS_ASSERT_MACRO
-#define ACE_LACKS_KILL
-#define ACE_LACKS_SIGACTION
-#define ACE_LACKS_GETOPT
-#define ACE_LACKS_SYSCONF
#define ACE_LACKS_WAIT
#define ACE_LACKS_WAITPID
#define ACE_LACKS_SIGSET
@@ -60,13 +44,8 @@
#define ACE_LACKS_FILELOCKS
#define ACE_LACKS_TRUNCATE
#define ACE_LACKS_PRAGMA_ONCE
-#define ACE_LACKS_SYSTEM
#define ACE_NLOGGING
#define ACE_NDEBUG
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETHOSTBYADDR
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETHOSTBYNAME
#define ACE_PSOS_LACKS_PREPC
@@ -87,8 +66,6 @@
# define ACE_LACKS_TELLDIR
# define ACE_LACKS_SEEKDIR
# define ACE_LACKS_REWINDDIR
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_PIPE
# define ACE_THREADS_DONT_INHERIT_LOG_MSG
@@ -236,6 +213,8 @@
#define ACE_LACKS_UNIX_SIGNALS
+// #define ACE_LACKS_SYSTIME_H
+
// @todo: (dhinton) Not sure about this, but the following was in ace/OS_String.h
// #if !defined (ACE_PSOS_DIAB_MIPS)
// # include /**/ <stdlib.h>
diff --git a/ace/config-psos-diab-ppc.h b/ace/config-psos-diab-ppc.h
index 213a0193dc4..a73d96aecdf 100644
--- a/ace/config-psos-diab-ppc.h
+++ b/ace/config-psos-diab-ppc.h
@@ -41,31 +41,6 @@
# define ACE_HAS_EXCEPTIONS
#endif /* __GNUG__ */
-#define ACE_LACKS_ENV
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETREGID
-#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_PIPE
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETPGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-#define ACE_LACKS_SYSTEM
-#define ACE_LACKS_KILL
-#define ACE_LACKS_SIGACTION
-#define ACE_LACKS_GETHOSTBYADDR
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETHOSTBYNAME
-
-#define ACE_LACKS_GETOPT
-#define ACE_LACKS_SYSCONF
#define ACE_LACKS_WAIT
#define ACE_LACKS_WAITPID
#define ACE_PSOS_LACKS_PREPC
@@ -251,6 +226,7 @@
#define ACE_THREADS_LACK_SHARED_SOCKETS
// #define ACE_MALLOC_ALIGN 8
+// #define ACE_LACKS_SYSTIME_H
#define ACE_PAGE_SIZE 4096
diff --git a/ace/config-psos-diab.h b/ace/config-psos-diab.h
index 6e7ba0e87ad..f7a4b804164 100644
--- a/ace/config-psos-diab.h
+++ b/ace/config-psos-diab.h
@@ -15,17 +15,12 @@
# undef __ACE_INLINE__
#endif /* __ACE_INLINE__ */
-#define ACE_LACKS_ENV
-#define ACE_LACKS_ALARM
#define ACE_LACKS_ISATTY
#define ACE_LACKS_UMASK
#define ACE_LACKS_WAIT
#define ACE_LACKS_WAITPID
#define ACE_LACKS_DIFFTIME
#define ACE_LACKS_DUP2
-#define ACE_LACKS_SYSTEM
-#define ACE_LACKS_KILL
-#define ACE_LACKS_SIGACTION
#define ACE_LACKS_FCNTL
@@ -41,27 +36,7 @@
# include "ace/config-g++-common.h"
#endif /* __GNUG__ */
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETREGID
-#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_PIPE
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETPGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-#define ACE_LACKS_GETHOSTBYADDR
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETHOSTBYNAME
-
#define ACE_PSOS_LACKS_PREPC
-#define ACE_LACKS_SYSCONF
#define ACE_PSOS_HAS_TIME
@@ -184,7 +159,6 @@
#define ACE_LACKS_LONGLONG_T
-#define ACE_LACKS_GETOPT
#define ACE_LACKS_LSTAT
#define ACE_LACKS_MADVISE
@@ -231,6 +205,8 @@
#define ACE_LACKS_UNIX_SIGNALS
+// #define ACE_LACKS_SYSTIME_H
+
#define ACE_PAGE_SIZE 4096
#define ACE_PSOS_CANT_USE_SYS_TYPES
diff --git a/ace/config-psos-tm.h b/ace/config-psos-tm.h
index ae9d9649a98..02c510f016d 100644
--- a/ace/config-psos-tm.h
+++ b/ace/config-psos-tm.h
@@ -19,13 +19,9 @@
# include "ace/config-g++-common.h"
#endif /* __GNUG__ */
-#define ACE_LACKS_ENV
#define ACE_LACKS_WAIT
#define ACE_LACKS_WAITPID
#define ACE_HAS_STRDUP_EMULATION
-#define ACE_LACKS_SYSTEM
-#define ACE_LACKS_KILL
-#define ACE_LACKS_SIGACTION
#define ACE_HAS_IP_MULTICAST
@@ -47,29 +43,14 @@
#define ACE_LACKS_HRTIME_T
#define ACE_LACKS_UMASK
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETREGID
-#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_PIPE
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETPGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETHOSTBYNAME
+// #define ACE_LACKS_EVENT_T
#define ACE_HAS_VERBOSE_NOTSUP
#define ACE_LACKS_MEMORY_H
-#define ACE_LACKS_GETHOSTBYADDR
-#define ACE_LACKS_GETPROTOBYNUMBER
+// #define ACE_LACKS_MALLOC_H
+
#define ACE_LACKS_MMAP
#define ACE_LACKS_UNIX_DOMAIN_SOCKETS
@@ -192,8 +173,8 @@
#define ACE_LACKS_UCONTEXT_H
#define ACE_LACKS_UNIX_SIGNALS
-#define ACE_LACKS_SYSCONF
-#define ACE_LACKS_GETOPT
+
+// #define ACE_LACKS_SYSTIME_H
#define ACE_PAGE_SIZE 4096
diff --git a/ace/config-psosim-g++.h b/ace/config-psosim-g++.h
index 3642dc93460..703edc1c950 100644
--- a/ace/config-psosim-g++.h
+++ b/ace/config-psosim-g++.h
@@ -53,21 +53,17 @@
#endif /* __GNUG__ */
#define ACE_HAS_IP_MULTICAST
-#define ACE_LACKS_ENV
#define ACE_LACKS_WAIT
#define ACE_LACKS_WAITPID
#define ACE_HAS_CPLUSPLUS_HEADERS
-#define ACE_LACKS_SYSTEM
-#define ACE_LACKS_KILL
-#define ACE_LACKS_GETHOSTBYADDR
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETHOSTBYNAME
+
+// #define ACE_LACKS_U_LONG_LONG
#define ACE_LACKS_HRTIME_T
+// #define ACE_LACKS_EVENT_T
+
#define ACE_HAS_VERBOSE_NOTSUP
-#define ACE_LACKS_SIGACTION
#define ACE_LACKS_MEMORY_H
@@ -86,20 +82,6 @@
#define ACE_LACKS_FORK
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETREGID
-#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_PIPE
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETPGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
// rename the main entry point
#define ACE_MAIN extern "C" void root
@@ -235,7 +217,8 @@
#define ACE_LACKS_UNIX_SIGNALS
#define ACE_LACKS_UTSNAME_T
-#define ACE_LACKS_UNAME
+
+// #define ACE_LACKS_SYSTIME_H
#define ACE_PAGE_SIZE 4096
diff --git a/ace/config-qnx-neutrino.h b/ace/config-qnx-neutrino.h
index 32549c1aa87..d041a02cf20 100644
--- a/ace/config-qnx-neutrino.h
+++ b/ace/config-qnx-neutrino.h
@@ -75,6 +75,7 @@
#define ACE_HAS_POSIX_TIME
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_HAS_P_READ_WRITE
#define ACE_HAS_REENTRANT_FUNCTIONS
#define ACE_HAS_SELECT_H
@@ -83,7 +84,7 @@
#define ACE_HAS_SIGWAIT
#define ACE_HAS_SIG_ATOMIC_T
#define ACE_HAS_SIG_MACROS
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
#define ACE_HAS_SIZET_SOCKET_LEN
#define ACE_HAS_SSIZE_T
#define ACE_HAS_STRERROR
@@ -119,6 +120,7 @@
#define ACE_LACKS_STREAM_MODULES
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_SYSCALL
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_SYS_MSG_H
#define ACE_LACKS_SYSV_SHMEM
#define ACE_LACKS_TCP_NODELAY
diff --git a/ace/config-qnx-rtp-62x.h b/ace/config-qnx-rtp-62x.h
index a54bc100225..49f31b6cda1 100644
--- a/ace/config-qnx-rtp-62x.h
+++ b/ace/config-qnx-rtp-62x.h
@@ -14,7 +14,6 @@
// ACE_HAS Section
/////////////////////////////////////////////////////////////////
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
-#define ACE_HAS_3_PARAM_WCSTOK
#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
// Although ACE does have alloca() on this compiler/platform combination, it is
// disabled by default since it can be dangerous. Uncomment the following line
@@ -42,6 +41,7 @@
#define ACE_HAS_POSIX_TIME
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_HAS_P_READ_WRITE
#define ACE_HAS_REENTRANT_FUNCTIONS
#define ACE_HAS_SELECT_H
@@ -51,7 +51,7 @@
#define ACE_HAS_SIGWAIT
#define ACE_HAS_SIG_ATOMIC_T
#define ACE_HAS_SIG_MACROS
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
#define ACE_HAS_SNPRINTF
#define ACE_HAS_SOCKLEN_T
#define ACE_HAS_SSIZE_T
@@ -92,6 +92,7 @@
#define ACE_LACKS_STROPTS_H
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_SYSCALL
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_SYS_MSG_H
#define ACE_LACKS_SYSV_SHMEM
#define ACE_LACKS_SYS_SHM_H
diff --git a/ace/config-qnx-rtp-pre62x.h b/ace/config-qnx-rtp-pre62x.h
index 46734ef8670..0d3a64cd7f8 100644
--- a/ace/config-qnx-rtp-pre62x.h
+++ b/ace/config-qnx-rtp-pre62x.h
@@ -42,6 +42,7 @@
#define ACE_HAS_POSIX_TIME
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREAD_SIGMASK
#define ACE_HAS_P_READ_WRITE
#define ACE_HAS_REENTRANT_FUNCTIONS
#define ACE_HAS_SELECT_H
@@ -50,7 +51,7 @@
#define ACE_HAS_SIGWAIT
#define ACE_HAS_SIG_ATOMIC_T
#define ACE_HAS_SIG_MACROS
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
// #define ACE_HAS_SIZET_SOCKET_LEN
#define ACE_HAS_SOCKLEN_T
#define ACE_HAS_SSIZE_T
@@ -95,6 +96,7 @@
#define ACE_LACKS_STREAM_MODULES
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_SYSCALL
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_SYS_MSG_H
#define ACE_LACKS_SYSV_SHMEM
//#define ACE_LACKS_TCP_NODELAY // Based on the QNX RTP documentation, this option seems to
diff --git a/ace/config-rtems.h b/ace/config-rtems.h
index cb93a725dec..7917c0c6dfd 100644
--- a/ace/config-rtems.h
+++ b/ace/config-rtems.h
@@ -38,9 +38,7 @@
# define ACE_CONFIG_INCLUDE_CXX_COMMON
# include "ace/config-cxx-common.h"
#else /* ! __GNUG__ && ! __KCC && !__DECCXX */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler in ace/config-rtems.h
-# endif /* __cplusplus */
+# error unsupported compiler in ace/config-linux-common.h
#endif /* ! __GNUG__ && ! __KCC */
// Completely common part :-)
@@ -135,8 +133,6 @@ ACE_HAS_SEND_TIMEDWAIT
ACE_HAS_SENDTO_TIMEDWAIT
ACE_HAS_IP_MULTICAST
ACE_HAS_NONCONST_SELECT_TIMEVAL
-ACE_HAS_WCHAR_TYPEDEFS_CHAR
-ACE_HAS_WCHAR_TYPEDEFS_USHORT
ACE_HAS_SIGNAL_SAFE_OS_CALLS
ACE_HAS_SIZET_SOCKET_LEN
ACE_HAS_SOCKADDR_MSG_NAME
diff --git a/ace/config-sco-5.0.0-mit-pthread.h b/ace/config-sco-5.0.0-mit-pthread.h
index 55cbe40d5a0..c938cf165cb 100644
--- a/ace/config-sco-5.0.0-mit-pthread.h
+++ b/ace/config-sco-5.0.0-mit-pthread.h
@@ -52,7 +52,7 @@
#define ACE_HAS_AUTOMATIC_INIT_FINI
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
// Platform supports recvmsg and sendmsg.
#define ACE_HAS_MSG
@@ -118,6 +118,7 @@
#define ACE_HAS_SIGINFO_T
#define ACE_HAS_UCONTEXT_T
+#define ACE_LACKS_SYSTIME_H
#define ACE_HAS_INLINED_OSCALLS
#define ACE_HAS_STRBUF_T
diff --git a/ace/config-sco-5.0.0.h b/ace/config-sco-5.0.0.h
index c155651a29a..34687bfb369 100644
--- a/ace/config-sco-5.0.0.h
+++ b/ace/config-sco-5.0.0.h
@@ -36,7 +36,7 @@
#define ACE_HAS_AUTOMATIC_INIT_FINI
// Platform has POSIX terminal interface.
-#define ACE_HAS_TERMIOS
+#define ACE_HAS_TERMIOS
// Compiler/platform contains the <sys/syscall.h> file.
//#define ACE_HAS_SYS_SYSCALL_H
@@ -88,6 +88,7 @@
#define ACE_HAS_SIGINFO_T
#define ACE_HAS_UCONTEXT_T
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_STRCASECMP
// #define ACE_HAS_POSIX_TIME
diff --git a/ace/config-sunos4-g++.h b/ace/config-sunos4-g++.h
index 76eb7d0e0e5..29e62b6dc69 100644
--- a/ace/config-sunos4-g++.h
+++ b/ace/config-sunos4-g++.h
@@ -22,6 +22,7 @@
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_GETPGID
#define ACE_LACKS_SETPGID
#define ACE_LACKS_SETREGID
diff --git a/ace/config-sunos4-sun4.1.4.h b/ace/config-sunos4-sun4.1.4.h
index ea612d66b70..2783cd42875 100644
--- a/ace/config-sunos4-sun4.1.4.h
+++ b/ace/config-sunos4-sun4.1.4.h
@@ -16,6 +16,7 @@
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
#define ACE_HAS_CHARPTR_SPRINTF
+#define ACE_LACKS_SYSTIME_H
#define ACE_HAS_UNION_WAIT
// Platform supports System V IPC (most versions of UNIX, but not Win32)
diff --git a/ace/config-sunos4-sun4.x.h b/ace/config-sunos4-sun4.x.h
index 034b6011315..f3ed77a046d 100644
--- a/ace/config-sunos4-sun4.x.h
+++ b/ace/config-sunos4-sun4.x.h
@@ -8,12 +8,14 @@
#define ACE_CONFIG_H
#include /**/ "ace/pre.h"
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_GETPGID
#define ACE_LACKS_SETPGID
#define ACE_LACKS_SETREGID
#define ACE_LACKS_SETREUID
#define ACE_HAS_CHARPTR_SPRINTF
+// #define ACE_HAS_UNION_WAIT
// Maximum compensation (10 ms) for early return from timed ::select ().
#if !defined (ACE_TIMER_SKEW)
diff --git a/ace/config-sunos5.5.h b/ace/config-sunos5.5.h
index 1d387d61318..7dbd005d6cf 100644
--- a/ace/config-sunos5.5.h
+++ b/ace/config-sunos5.5.h
@@ -38,7 +38,8 @@
// If -compat=4 is turned on, the old 4.2 settings for iostreams are used,
// but the newer, explicit instantiation is used (above)
# if (__SUNPRO_CC_COMPAT >= 5)
-# define ACE_HAS_TEMPLATE_TYPEDEFS
+# define ACE_HAS_USING_KEYWORD
+# define ACE_HAS_TEMPLATE_TYPEDEFS
# define ACE_HAS_STANDARD_CPP_LIBRARY 1
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
# define ACE_HAS_THR_C_DEST
@@ -82,29 +83,6 @@
/* If you want to disable threading with Sun CC, remove -mt
from your CFLAGS, e.g., using make threads=0. */
-
-// Take advantage of Sun Studio 8 (Sun C++ 5.5) or better symbol
-// visibility to generate improved shared library binaries.
-# if (__SUNPRO_CC > 0x540)
-
-# if defined (ACE_HAS_CUSTOM_EXPORT_MACROS) && ACE_HAS_CUSTOM_EXPORT_MACROS == 0
-# undef ACE_HAS_CUSTOM_EXPORT_MACROS
-# else
-# ifndef ACE_HAS_CUSTOM_EXPORT_MACROS
-# define ACE_HAS_CUSTOM_EXPORT_MACROS
-# endif /* !ACE_HAS_CUSTOM_EXPORT_MACROS */
-# define ACE_Proper_Export_Flag __symbolic
-# define ACE_Proper_Import_Flag __global
-
-# define ACE_EXPORT_SINGLETON_DECLARATION(T) template class ACE_Proper_Export_Flag T
-# define ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) template class ACE_Proper_Export_Flag SINGLETON_TYPE <CLASS, LOCK>;
-
-// # define ACE_IMPORT_SINGLETON_DECLARATION(T) extern template class T
-// # define ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE, CLASS, LOCK) extern template class SINGLETON_TYPE<CLASS, LOCK>;
-
-# endif /* ACE_HAS_CUSTOM_EXPORT_MACROS == 0 */
-# endif /* __SUNPRO_CC > 0x540 (> Sun C++ 5.4) */
-
#elif defined (__GNUG__)
// config-g++-common.h undef's ACE_HAS_STRING_CLASS with -frepo, so
// this must appear before its #include.
@@ -152,20 +130,18 @@
# include "ace/config-kcc-common.h"
#else /* ! __SUNPRO_CC && ! __GNUG__ && ! ghs */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler in ace/config-sunos5.5.h
-# endif /* __cplusplus */
+# error unsupported compiler in ace/config-sunos5.5.h
#endif /* ! __SUNPRO_CC && ! __GNUG__ && ! ghs */
#if !defined (__ACE_INLINE__)
-// @note If you have link problems with undefined inline template
+// NOTE: if you have link problems with undefined inline template
// functions with Sun C++, be sure that the #define of __ACE_INLINE__
// below is not commented out.
# define __ACE_INLINE__
#endif /* ! __ACE_INLINE__ */
// Platform supports the POSIX regular expression library.
-// @note Please comment out the ACE_HAS_REGEX #define if you
+// NOTE: please comment out the ACE_HAS_REGEX #define if you
// have link problems with g++ or egcs on SunOS 5.5.
#define ACE_HAS_REGEX
@@ -282,11 +258,6 @@
// SunOS 5.5.x does not support mkstemp
#define ACE_LACKS_MKSTEMP
-#define ACE_LACKS_SYS_SYSCTL_H
-
-#if !(defined(_XOPEN_SOURCE) && (_XOPEN_VERSION - 0 >= 4))
-# define ACE_HAS_CHARPTR_SHMDT
-#endif
// Platform has posix getpwnam_r
#if (defined (_POSIX_C_SOURCE) && _POSIX_C_SOURCE - 0 >= 199506L) || \
diff --git a/ace/config-sunos5.6.h b/ace/config-sunos5.6.h
index c0904971830..8a846c577ef 100644
--- a/ace/config-sunos5.6.h
+++ b/ace/config-sunos5.6.h
@@ -54,6 +54,9 @@
#ifndef ACE_HAS_TYPENAME_KEYWORD
#define ACE_HAS_TYPENAME_KEYWORD 1
#endif /* ACE_HAS_TYPENAME_KEYWORD */
+#ifndef ACE_HAS_USING_KEYWORD
+#define ACE_HAS_USING_KEYWORD 1
+#endif /* ACE_HAS_USING_KEYWORD */
#ifndef ACE_HAS_THR_C_DEST
#define ACE_HAS_THR_C_DEST 1
#endif /* ACE_HAS_THR_C_DEST */
diff --git a/ace/config-tandem-nsk-mips-v2.h b/ace/config-tandem-nsk-mips-v2.h
index cba5b7b8148..814a85ac625 100644
--- a/ace/config-tandem-nsk-mips-v2.h
+++ b/ace/config-tandem-nsk-mips-v2.h
@@ -28,7 +28,7 @@
// Use all available T1248 thread aware wrapper functions for providing
// non-blocking I/O.
-// [@note this causes a significant performance degradation]
+// [Note: this causes a significant performance degradation]
//#define ACE_TANDEM_T1248_PTHREADS_ALL_IO_WRAPPERS
@@ -241,7 +241,8 @@ typedef enum CMA_T_SCHED_POLICY {
#define ACE_HRTIME_T_IS_BASIC_TYPE
// printf format specifiers for 64 bit integers
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%Ld")
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%Ld"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
# define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%Ld")
//=========================================================================
@@ -315,6 +316,9 @@ extern int cma_sigwait (sigset_t *);
// Platform lacks malloc.h
#define ACE_LACKS_MALLOC_H
+// <time.h> doesn't automatically #include /**/ <sys/time.h>
+#define ACE_LACKS_SYSTIME_H
+
// Platform lacks the siginfo.h include file
#define ACE_LACKS_SIGINFO_H
@@ -399,6 +403,9 @@ extern int cma_sigwait (sigset_t *);
// Following will not be needed if use standard c library (G06.20 and later)
#define ACE_LACKS_SIGNED_CHAR
+// Compiler supports the new using keyword for C++ namespaces.
+#define ACE_HAS_USING_KEYWORD
+
//=========================================================================
// Build options
//=========================================================================
diff --git a/ace/config-tandem-nsk-mips-v3.h b/ace/config-tandem-nsk-mips-v3.h
index c98533aff5d..b4a4805b988 100644
--- a/ace/config-tandem-nsk-mips-v3.h
+++ b/ace/config-tandem-nsk-mips-v3.h
@@ -330,6 +330,9 @@ extern int cma_sigwait (sigset_t *);
// Platform lacks malloc.h
#define ACE_LACKS_MALLOC_H
+// <time.h> doesn't automatically #include /**/ <sys/time.h>
+#define ACE_LACKS_SYSTIME_H
+
// Platform lacks the siginfo.h include file
#define ACE_LACKS_SIGINFO_H
@@ -418,6 +421,9 @@ extern int cma_sigwait (sigset_t *);
// Following will not be needed if use standard c library (G06.20 and later)
#define ACE_LACKS_SIGNED_CHAR
+// Compiler supports the new using keyword for C++ namespaces.
+#define ACE_HAS_USING_KEYWORD
+
// Compiler supports the typename keyword for templates
#define ACE_HAS_TYPENAME_KEYWORD
diff --git a/ace/config-tandem.h b/ace/config-tandem.h
index 7b2867a0fda..c74cf133d1e 100644
--- a/ace/config-tandem.h
+++ b/ace/config-tandem.h
@@ -184,6 +184,8 @@
#define ACE_LACKS_MADVISE
//Compiler/platform lacks strcasecmp() (e.g., DG/UX, UNIXWARE, VXWORKS)
#define ACE_LACKS_STRCASECMP
+//<time.h> doesn't automatically #include /**/ <sys/time.h>
+#define ACE_LACKS_SYSTIME_H
// Defines the page size of the system.
#define ACE_PAGE_SIZE 4096
diff --git a/ace/config-tru64.h b/ace/config-tru64.h
index af49824b680..df7e073deee 100644
--- a/ace/config-tru64.h
+++ b/ace/config-tru64.h
@@ -27,6 +27,9 @@
Interface wide-character
classification.*/
# endif /* DIGITAL_UNIX >= 0x500 */
+# if DIGITAL_UNIX >= 0x40D
+# define ACE_LACKS_SYSTIME_H
+# endif /* DIGITAL_UNIX >= 0x40D */
# if DIGITAL_UNIX >= 0x40E
# define ACE_LACKS_STDINT_H
# endif /* DIGITAL_UNIX >= 0x40E */
diff --git a/ace/config-unixware-2.1.2-g++.h b/ace/config-unixware-2.1.2-g++.h
index 32536ce3003..f4b3960d65e 100644
--- a/ace/config-unixware-2.1.2-g++.h
+++ b/ace/config-unixware-2.1.2-g++.h
@@ -25,6 +25,7 @@
// Optimize ACE_Handle_Set for select().
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
+#define ACE_LACKS_SYSTIME_H
// ualarm is only in BSD compatibility lib, but no header is provided
// #define ACE_HAS_UALARM
#define ACE_HAS_SIZET_SOCKET_LEN
diff --git a/ace/config-unixware-7.1.0.h b/ace/config-unixware-7.1.0.h
index 667b93db8b0..ea92a0a0393 100644
--- a/ace/config-unixware-7.1.0.h
+++ b/ace/config-unixware-7.1.0.h
@@ -171,6 +171,9 @@
PTHREAD_PROCESS_SHARED values */
#define ACE_HAS_PTHREAD_PROCESS_ENUM 1
+/* Platform has pthread_sigmask() defined. */
+#define ACE_HAS_PTHREAD_SIGMASK 1
+
/* Platform will recurse infinitely on thread exits from TSS cleanup routines
(e.g., AIX) */
#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS 1
@@ -206,7 +209,7 @@
#define ACE_HAS_SIG_ATOMIC_T 1
/* Platform supports new BSD inet_addr len field. */
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN 1
+#define ACE_HAS_SIN_LEN 1
/* OS/compiler uses size_t * rather than int * for socket lengths */
#define ACE_HAS_SIZET_SOCKET_LEN 1
@@ -339,6 +342,9 @@
/* Platform needs to #include <sched.h> to get thread scheduling defs. */
#define ACE_NEEDS_SCHED_H 1
+/* <time.h> doesn't automatically #include <sys/time.h> */
+#define ACE_LACKS_SYSTIME_H 1
+
/*********************************************************************/
/* Compiler's template mechanim must see source code (i.e., .cpp files). This
is used for GNU G++. */
diff --git a/ace/config-unixware-7.1.0.udk.h b/ace/config-unixware-7.1.0.udk.h
index f449152026d..9481dc88a2c 100644
--- a/ace/config-unixware-7.1.0.udk.h
+++ b/ace/config-unixware-7.1.0.udk.h
@@ -223,6 +223,9 @@
PTHREAD_PROCESS_SHARED values */
#define ACE_HAS_PTHREAD_PROCESS_ENUM
+/* Platform has pthread_sigmask() defined. */
+#define ACE_HAS_PTHREAD_SIGMASK
+
/* Platform will recurse infinitely on thread exits from TSS cleanup routines
(e.g., AIX) */
#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS
@@ -258,7 +261,7 @@
#define ACE_HAS_SIG_ATOMIC_T
/* Platform supports new BSD inet_addr len field. */
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
/* OS/compiler uses size_t * rather than int * for socket lengths */
#define ACE_HAS_SIZET_SOCKET_LEN
@@ -363,6 +366,9 @@
/* Compiler supports the C++ typename keyword */
#define ACE_HAS_TYPENAME_KEYWORD 1
+/* Compiler supports the new using keyword for C++ namespaces. */
+#define ACE_HAS_USING_KEYWORD 1
+
/* Prints out console message in ACE_NOTSUP. Useful for tracking down origin
of ACE_NOTSUP. */
/* #undef ACE_HAS_VERBOSE_NOTSUP */
@@ -411,6 +417,9 @@
/* Platform needs to #include <sched.h> to get thread scheduling defs. */
#define ACE_NEEDS_SCHED_H 1
+/* <time.h> doesn't automatically #include <sys/time.h> */
+#define ACE_LACKS_SYSTIME_H 1
+
/* Turns off the LM_DEBUG and LM_ERROR logging macros... */
/* #undef ACE_NLOGGING */
diff --git a/ace/config-vxworks5.x.h b/ace/config-vxworks5.x.h
index ae13a39d880..1d78f5df97c 100644
--- a/ace/config-vxworks5.x.h
+++ b/ace/config-vxworks5.x.h
@@ -36,6 +36,11 @@
# define ACE_LACKS_LINEBUFFERED_STREAMBUF
+// ACE WChar support
+#define ACE_SIZEOF_WCHAR 4
+#define ACE_WCHAR_MAX 0xFFFFFFFF
+#undef ACE_LACKS_BUILTIN_WCHAR_T
+
// An explicit check for Tornado 2.1, which had very limited release.
// See include/makeinclude/platform_vxworks5.x_g++.GNU for details
// on version conventions used by ACE for VxWorks.
@@ -90,12 +95,12 @@
# define ACE_HAS_STANDARD_CPP_LIBRARY 1
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 0
+# define ACE_HAS_USING_KEYWORD
+
# define ACE_TEMPLATES_REQUIRE_SOURCE
#else /* ! __GNUG__ && ! ghs && !__DCC__ */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler on VxWorks
-# endif /* __cplusplus */
+# error unsupported compiler on VxWorks
#endif /* ! __GNUG__ && ! ghs */
// OS-specific configuration
@@ -140,13 +145,13 @@
#define ACE_LACKS_ACCESS
#define ACE_LACKS_EXEC
#define ACE_LACKS_FCNTL
+#define ACE_LACKS_FGETWC
+#define ACE_LACKS_FGETWS
#define ACE_LACKS_FILELOCKS
#define ACE_LACKS_FORK
+#define ACE_LACKS_FPUTWS
#define ACE_LACKS_FSYNC
#define ACE_LACKS_GETHOSTENT
-#define ACE_LACKS_GETOPT
-#define ACE_LACKS_GETPID
-#define ACE_LACKS_GETPPID
#define ACE_LACKS_GETSERVBYNAME
#define ACE_LACKS_KEY_T
#define ACE_LACKS_LSTAT
@@ -159,11 +164,6 @@
#define ACE_LACKS_MMAP
#define ACE_LACKS_MPROTECT
#define ACE_LACKS_MSYNC
-#define ACE_LACKS_NUMERIC_LIMITS
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_GETHOSTBYADDR
-#define ACE_LACKS_GETHOSTBYNAME
#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
#define ACE_LACKS_SYS_PARAM_H
#define ACE_LACKS_PWD_FUNCTIONS
@@ -182,8 +182,7 @@
#define ACE_LACKS_STRCASECMP
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_SYSCALL
-#define ACE_LACKS_SYSCONF
-#define ACE_LACKS_SYS_SYSCTL_H
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_SYSV_SHMEM
#define ACE_LACKS_TELLDIR
#define ACE_LACKS_TEMPNAM
@@ -192,14 +191,11 @@
#define ACE_LACKS_UCONTEXT_H
#define ACE_LACKS_UMASK
#define ACE_LACKS_UTSNAME_T
-#define ACE_LACKS_UNAME
#define ACE_LACKS_NATIVE_STRPTIME
#define ACE_LACKS_WAIT
#define ACE_LACKS_WAITPID
+#define ACE_LACKS_WCTYPE_H
#define ACE_LACKS_DUP2
-#define ACE_LACKS_DUP
-#define ACE_LACKS_SUSECONDS_T
-#define ACE_LACKS_USECONDS_T
#define ACE_PAGE_SIZE 4096
#define ACE_THR_PRI_FIFO_DEF 101
#define ACE_THR_PRI_OTHER_DEF ACE_THR_PRI_FIFO_DEF
@@ -209,21 +205,6 @@
# define ACE_VXWORKS_SPARE spare4
#endif /* ! ACE_VXWORKS_SPARE */
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETREGID
-#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_SETGID
-#define ACE_LACKS_GETPGID
-
-#define ACE_LACKS_PIPE
#define ACE_LACKS_STDINT_H
#define ACE_LACKS_INTTYPES_H
#define ACE_LACKS_UNISTD_H
@@ -243,7 +224,6 @@
#define ACE_LACKS_STRINGS_H
#define ACE_LACKS_TERMIOS_H
#define ACE_LACKS_POLL_H
-#define ACE_LACKS_WCTYPE_H
// Not sure if these should always be defined.
#define ACE_LACKS_SYS_UN_H
@@ -272,11 +252,7 @@
#define ACE_LACKS_WCSTOL
#define ACE_LACKS_WCSTOUL
#define ACE_LACKS_WCSDUP
-
#define ACE_LACKS_SYMLINKS
-#define ACE_LACKS_FGETWC
-#define ACE_LACKS_FGETWS
-#define ACE_LACKS_FPUTWS
// It is possible to enable pthread support with VxWorks, when the user decides
// to use this, we need some more defines
diff --git a/ace/config-vxworks6.2.h b/ace/config-vxworks6.2.h
deleted file mode 100644
index 10490e6dc20..00000000000
--- a/ace/config-vxworks6.2.h
+++ /dev/null
@@ -1,307 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-// The following configuration file is designed to work for VxWorks
-// 6.2 platforms using one of these compilers:
-// 1) The GNU g++ compiler that is shipped with VxWorks 6.2
-
-#ifndef ACE_CONFIG_H
-#define ACE_CONFIG_H
-#include /**/ "ace/pre.h"
-
-#if ! defined (VXWORKS)
-# define VXWORKS
-#endif /* ! VXWORKS */
-
-#if ! defined (ACE_VXWORKS)
-# define ACE_VXWORKS 0x620
-#endif /* ! ACE_VXWORKS */
-
-#if ! defined (__ACE_INLINE__)
-# define __ACE_INLINE__
-#endif /* ! __ACE_INLINE__ */
-
-// Compiler-specific configuration.
-#if defined (__GNUG__)
-# include "ace/config-g++-common.h"
-
-# define ACE_LACKS_IOSTREAM_FX
-# define ACE_LACKS_LINEBUFFERED_STREAMBUF
-
-# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
- // GNU 3.3+ toolchain supports long long types but fails to define this so STL
- // skips some definitions
-# if !defined (_GLIBCPP_USE_LONG_LONG)
-# define _GLIBCPP_USE_LONG_LONG
-# endif
-# endif /* (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) */
-
-#elif defined (ghs)
- // Processor type, if necessary. Green Hills defines "ppc".
-# if defined (ppc)
-# define ACE_HAS_POWERPC_TIMER
-# define ACE_LACKS_CLEARERR
-# endif /* ppc */
-
-# define ACE_CONFIG_INCLUDE_GHS_COMMON
-# include "ace/config-ghs-common.h"
-
-# define ACE_LACKS_UNISTD_H
-# define ACE_LACKS_IOSTREAM_TOTALLY
-
-// Short-circuit the include of <arpa/inet.h>
-// Green Hills has a problem with multiply defined functions
-// with different parameters.
-# define __INCineth
-
-#elif defined (__DCPLUSPLUS__) || defined (__DCC__)
- // Diab 4.2a or later.
-# if !defined (ACE_LACKS_PRAGMA_ONCE)
- // We define it with a -D with make depend.
-# define ACE_LACKS_PRAGMA_ONCE
-# endif /* ! ACE_LACKS_PRAGMA_ONCE */
-
-# define ACE_HAS_STANDARD_CPP_LIBRARY 1
-# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
-# define ACE_TEMPLATES_REQUIRE_SOURCE
-
-#else /* ! __GNUG__ && ! ghs && !__DCC__ */
-# ifdef __cplusplus /* Let it slide for C compilers. */
-# error unsupported compiler on VxWorks
-# endif /* __cplusplus */
-#endif /* ! __GNUG__ && ! ghs */
-
-// OS-specific configuration
-#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
-#define ACE_HAS_NONCONST_GETBY
-#define ACE_HAS_NONCONST_SWAB
-#define ACE_HAS_NONCONST_READV
-#define ACE_LACKS_UNIX_SYSLOG
-#define ACE_DEFAULT_MAX_SOCKET_BUFSIZ 32768
-#define ACE_DEFAULT_THREAD_KEYS 16
-#define ACE_HAS_BROKEN_ACCEPT_ADDR
-#define ACE_HAS_NONCONST_SENDMSG
-#define ACE_HAS_NONCONST_WRITEV
-#define ACE_HAS_CHARPTR_DL
-#define ACE_HAS_CLOCK_GETTIME
-#define ACE_HAS_CLOCK_SETTIME
-#define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
-#define ACE_HAS_CPLUSPLUS_HEADERS
-#define ACE_HAS_DIRENT
-#define ACE_HAS_DLL 0
-#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
-#define ACE_HAS_MSG
-#define ACE_HAS_NONCONST_READV
-#define ACE_HAS_NONCONST_SELECT_TIMEVAL
-#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
-#define ACE_HAS_POSIX_NONBLOCK
-#define ACE_HAS_POSIX_TIME
-#define ACE_HAS_REENTRANT_FUNCTIONS
-#define ACE_HAS_SIGINFO_T
-#define ACE_HAS_SIGWAIT
-#define ACE_HAS_SIG_ATOMIC_T
-#define ACE_HAS_SNPRINTF
-#define ACE_HAS_STRERROR
-#define ACE_HAS_THREADS
-#define ACE_HAS_STRPTIME
-#define ACE_HAS_SYSCTL
-#define ACE_LACKS_EXEC
-#define ACE_LACKS_FILELOCKS
-#define ACE_LACKS_FORK
-#define ACE_LACKS_GETHOSTENT
-#define ACE_LACKS_GETSERVBYNAME
-#define ACE_LACKS_GETPROTOBYNAME
-#define ACE_LACKS_GETPROTOBYNUMBER
-#define ACE_LACKS_KEY_T
-#define ACE_LACKS_LSTAT
-#define ACE_LACKS_MADVISE
-#define ACE_LACKS_MALLOC_H
-#define ACE_LACKS_MEMORY_H
-#define ACE_LACKS_MKFIFO
-#define ACE_LACKS_MKSTEMP
-#define ACE_LACKS_MKTEMP
-#define ACE_LACKS_MSYNC
-#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
-#define ACE_LACKS_SYS_PARAM_H
-#define ACE_LACKS_PWD_FUNCTIONS
-#define ACE_LACKS_READDIR_R
-#define ACE_LACKS_READLINK
-#define ACE_LACKS_REALPATH
-#define ACE_LACKS_PIPE
-#define ACE_LACKS_RLIMIT
-#define ACE_LACKS_RWLOCK_T
-#define ACE_LACKS_SBRK
-#define ACE_LACKS_SEEKDIR
-#define ACE_LACKS_SEMBUF_T
-#define ACE_LACKS_SIGINFO_H
-#define ACE_LACKS_SI_ADDR
-#define ACE_LACKS_SOCKETPAIR
-#define ACE_LACKS_STRRECVFD
-#define ACE_LACKS_SYSV_SHMEM
-#define ACE_LACKS_TELLDIR
-#define ACE_LACKS_TEMPNAM
-#define ACE_LACKS_TIMESPEC_T
-#define ACE_LACKS_TRUNCATE
-#define ACE_LACKS_UCONTEXT_H
-#define ACE_LACKS_UMASK
-#define ACE_LACKS_NATIVE_STRPTIME
-#define ACE_PAGE_SIZE 4096
-#define ACE_THR_PRI_FIFO_DEF 101
-#define ACE_THR_PRI_OTHER_DEF ACE_THR_PRI_FIFO_DEF
-#define ACE_HAS_SIGTIMEDWAIT
-#define ACE_HAS_SIGSUSPEND
-#if !defined (ACE_VXWORKS_SPARE)
-# define ACE_VXWORKS_SPARE spare4
-#endif /* ! ACE_VXWORKS_SPARE */
-
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETPGID
-#define ACE_LACKS_SETREGID
-#define ACE_LACKS_SETREUID
-#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETPGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETGID
-#define ACE_LACKS_SETGID
-
-#define ACE_LACKS_SYS_UIO_H
-#define ACE_LACKS_SYS_IPC_H
-#define ACE_LACKS_SYS_SEM_H
-#define ACE_LACKS_STROPTS_H
-#define ACE_LACKS_SYS_MSG_H
-#define ACE_LACKS_PWD_H
-#define ACE_LACKS_SYS_SHM_H
-#define ACE_LACKS_TERMIOS_H
-#define ACE_LACKS_POLL_H
-
-// Some string things
-#define ACE_LACKS_STRCASECMP
-#define ACE_LACKS_ITOW
-#define ACE_LACKS_WCSDUP
-#define ACE_LACKS_WCSICMP
-#define ACE_LACKS_WCSNICMP
-
-#define ACE_HAS_CHARPTR_SOCKOPT
-#define ACE_LACKS_SYMLINKS
-
-#if defined __RTP__
- // We are building for RTP mode
- #define ACE_HAS_SVR4_DYNAMIC_LINKING
- #define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
- #define ACE_LACKS_REGEX_H
- #define ACE_LACKS_PUTENV
- #define ACE_HAS_3_PARAM_WCSTOK
- #define ACE_HAS_WCHAR
-#else
- // We are building for kernel mode
- #define ACE_LACKS_SUSECONDS_T
- #define ACE_LACKS_INTTYPES_H
- #define ACE_LACKS_STDINT_H
- #define ACE_LACKS_UNAME
- #define ACE_LACKS_UTSNAME_T
- #define ACE_LACKS_RAND_REENTRANT_FUNCTIONS
- #define ACE_LACKS_DLFCN_H
- #define ACE_LACKS_WAIT
- #define ACE_LACKS_WAITPID
- #define ACE_LACKS_SYS_TIME_H
- #define ACE_LACKS_SYS_SELECT_H
- #define ACE_LACKS_STRINGS_H
- #define ACE_MKDIR_LACKS_MODE
- #define ACE_HAS_SIZET_PTR_ASCTIME_R_AND_CTIME_R
- #define ACE_LACKS_SEARCH_H
- #define ACE_LACKS_SYSCONF
- #define ACE_LACKS_GETPID
- #define ACE_LACKS_GETPPID
- #define ACE_LACKS_WCHAR_H
- #define ACE_LACKS_WCTYPE_H
- #define ACE_LACKS_WCSCAT
- #define ACE_LACKS_WCSCHR
- #define ACE_LACKS_WCSCMP
- #define ACE_LACKS_WCSCPY
- #define ACE_LACKS_WCSCSPN
- #define ACE_LACKS_WCSLEN
- #define ACE_LACKS_WCSNCAT
- #define ACE_LACKS_WCSNCMP
- #define ACE_LACKS_WCSNCPY
- #define ACE_LACKS_WCSPBRK
- #define ACE_LACKS_WCSRCHR
- #define ACE_LACKS_WCSSPN
- #define ACE_LACKS_WCSSTR
- #define ACE_LACKS_WCSTOK
- #define ACE_LACKS_TOWLOWER
- #define ACE_LACKS_TOWUPPER
- #define ACE_LACKS_WCSTOD
- #define ACE_LACKS_WCSTOL
- #define ACE_LACKS_WCSTOUL
- #define ACE_LACKS_FGETWC
- #define ACE_LACKS_FGETWS
- #define ACE_LACKS_FPUTWS
- #if !defined (ACE_MAIN)
- # define ACE_MAIN ace_main
- #endif /* ! ACE_MAIN */
-#endif
-
-// It is possible to enable pthread support with VxWorks, when the user decides
-// to use this, we need some more defines
-#if defined ACE_HAS_PTHREADS
-# define ACE_HAS_PTHREADS_STD
-# define ACE_HAS_THREAD_SPECIFIC_STORAGE
-# define ACE_HAS_POSIX_SEM
-# define ACE_LACKS_MUTEXATTR_PSHARED
-# define ACE_LACKS_CONDATTR_PSHARED
-// Include this file, the sys/stat.h file shipped with VxWorks has old types
-// and without this include we get a lot of compile errors. A TSR has been filed
-// so that hopefully in the future we can zap this include
-#include "types/vxTypesOld.h"
-#else
-# define ACE_LACKS_PTHREAD_H
-# if !defined __RTP__
-// Only when building for kernel mode we can use TSS emulation, in rtp mode
-// we can't use the WIND_TCB struct anymore
-# define ACE_HAS_TSS_EMULATION
-# endif
-// VxWorks has no recursive mutexes. This was set in the past but it doesn't
-// work with the pthread support, so only set it for the time being when pthread
-// is disabled
-# define ACE_HAS_RECURSIVE_MUTEXES
-# define ACE_LACKS_COND_T
-# define ACE_HAS_MUTEX_TIMEOUTS
-#endif
-
-#if !defined (ACE_MT_SAFE)
-# define ACE_MT_SAFE 1
-#endif
-
-// Needed include to get all VxWorks CPU types
-#include "types/vxCpu.h"
-#if (CPU == PENTIUM || CPU == PENTIUM2 || CPU == PENTIUM3 || CPU == PENTIUM4)
-// If running an Intel Pentium the
-// ACE_OS::gethrtime () can use the RDTSC instruction.
-# define ACE_HAS_PENTIUM
-#endif
-
-// VxWorks defines the CPU define MAP, undef it to prevent problems with
-// application code
-#if defined (MAP)
-#undef MAP
-#endif /* MAP */
-
-#if !defined (ACE_NEEDS_HUGE_THREAD_STACKSIZE)
-# define ACE_NEEDS_HUGE_THREAD_STACKSIZE 65536
-#endif /* ACE_NEEDS_HUGE_THREAD_STACKSIZE */
-
-#if !defined (ACE_NTRACE)
-# define ACE_NTRACE 1
-#endif /* ACE_NTRACE */
-
-// By default, don't include RCS Id strings in object code.
-#if !defined (ACE_USE_RCSID)
-#define ACE_USE_RCSID 0
-#endif /* !ACE_USE_RCSID */
-
-#include /**/ "ace/post.h"
-#endif /* ACE_CONFIG_H */
diff --git a/ace/config-win32-borland.h b/ace/config-win32-borland.h
index 91b81ece8a1..6f87f84ffc2 100644
--- a/ace/config-win32-borland.h
+++ b/ace/config-win32-borland.h
@@ -67,20 +67,11 @@
#define ACE_LACKS_NET_IF_H
#define ACE_LACKS_SYS_IPC_H
#define ACE_LACKS_SYS_SEM_H
+#define ACE_LACKS_STDINT_H
+#define ACE_LACKS_DIRENT_H
#define ACE_LACKS_SYS_IOCTL_H
#define ACE_LACKS_STROPTS_H
-#undef ACE_LACKS_STRUCT_DIR
-#undef ACE_LACKS_CLOSEDIR
-#undef ACE_LACKS_OPENDIR
-#undef ACE_LACKS_READDIR
-#undef ACE_LACKS_REWINDDIR
-
-#define ACE_HAS_WOPENDIR
-#define ACE_HAS_WCLOSEDIR
-#define ACE_HAS_WREADDIR
-#define ACE_HAS_WREWINDDIR
-
#define ACE_LACKS_STRRECVFD
#define ACE_USES_EXPLICIT_STD_NAMESPACE
@@ -95,19 +86,8 @@
# endif /* !_MT && !ACE_HAS_WINCE */
#endif /* ACE_MT_SAFE && ACE_MT_SAFE != 0 */
-#if (__BORLANDC__ < 0x580)
+#if (__BORLANDC__ < 0x570)
# define ACE_LACKS_INTPTR_T
-# define ACE_HAS_NONCONST_SWAB
-# define ACE_HAS_NONCONST_FDOPEN
-#endif
-
-#define ACE_HAS_NONCONST_TEMPNAM
-
-// The Borland compiler can't handle assembly in inline methods or
-// templates (E2211). When we build for pentium optimized and we are inlining
-// then we disable inline assembly
-#if defined (ACE_HAS_PENTIUM) && defined(__ACE_INLINE__)
-# define ACE_LACKS_INLINE_ASSEMBLY
#endif
#if (__BORLANDC__ >= 0x600)
@@ -124,6 +104,7 @@
# define ACE_STRCASECMP_EQUIVALENT ::stricmp
# define ACE_STRNCASECMP_EQUIVALENT ::strnicmp
# define ACE_HAS_ITOA 1
+# define ACE_HAS_NONCONST_SWAB
#endif
#include /**/ "ace/post.h"
diff --git a/ace/config-win32-common.h b/ace/config-win32-common.h
index 9b53c7143fd..7b171b5d98d 100644
--- a/ace/config-win32-common.h
+++ b/ace/config-win32-common.h
@@ -232,23 +232,12 @@
#define ACE_LACKS_SETREGID
#define ACE_LACKS_SETREUID
#define ACE_LACKS_SETSID
-#define ACE_LACKS_SETEGID
-#define ACE_LACKS_SETUID
-#define ACE_LACKS_SETEUID
-#define ACE_LACKS_GETGID
-#define ACE_LACKS_GETEGID
-#define ACE_LACKS_GETUID
-#define ACE_LACKS_GETEUID
-#define ACE_LACKS_SETGID
/* LACKS miscellaneous */
-#define ACE_LACKS_ALARM
#define ACE_LACKS_ARPA_INET_H
#define ACE_LACKS_DUP2
#define ACE_LACKS_FORK
#define ACE_LACKS_GETHOSTENT
-#define ACE_LACKS_GETOPT
-#define ACE_LACKS_KILL
#define ACE_LACKS_INET_ATON
#define ACE_LACKS_MADVISE
#define ACE_LACKS_MKFIFO
@@ -258,22 +247,16 @@
#define ACE_LACKS_READLINK
#define ACE_LACKS_RLIMIT
#define ACE_LACKS_SBRK
-#define ACE_LACKS_SCHED_H
#define ACE_LACKS_SEMBUF_T
#define ACE_LACKS_SIGACTION
#define ACE_LACKS_SIGSET
#define ACE_LACKS_SOCKETPAIR
-#define ACE_LACKS_SUSECONDS_T
-#define ACE_LACKS_USECONDS_T
#define ACE_LACKS_SYS_PARAM_H
-#define ACE_LACKS_SYS_SYSCTL_H
-#define ACE_LACKS_SYSCONF
#define ACE_LACKS_SYSV_SHMEM
#define ACE_LACKS_UNISTD_H
#define ACE_LACKS_UNIX_SIGNALS
#define ACE_LACKS_UNIX_SYSLOG
#define ACE_LACKS_UTSNAME_T
-#define ACE_LACKS_UNAME
#define ACE_LACKS_WAIT
#define ACE_HAS_SNPRINTF
@@ -295,6 +278,13 @@
#define ACE_UINT64_TYPE unsigned long long
#endif
+// ACE WChar support
+#define ACE_SIZEOF_WCHAR 2
+#define ACE_WCHAR_MAX 0xFFFF
+#if !defined(_NATIVE_WCHAR_T_DEFINED)
+# define ACE_LACKS_BUILTIN_WCHAR_T
+#endif
+
// Optimize ACE_Handle_Set for select().
#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
@@ -302,12 +292,6 @@
// is controlled in compiler configs since it's a compiler switch.
// Additionally, if the user selected use of wide chars (by setting either
// ACE_USES_WCHAR or UNICODE) make sure both are enabled.
-#define ACE_HAS_WCHAR
-#if defined (ACE_USES_WCHAR)
-# ifndef UNICODE
-# define UNICODE
-# endif
-#endif /* ACE_USES_WCHAR */
#if defined (UNICODE) && !defined (ACE_USES_WCHAR)
# define ACE_USES_WCHAR
#endif /* UNICODE && !ACE_USES_WCHAR */
diff --git a/ace/config-win32-dmc.h b/ace/config-win32-dmc.h
index 6012e44620e..3b330431fed 100644
--- a/ace/config-win32-dmc.h
+++ b/ace/config-win32-dmc.h
@@ -23,7 +23,6 @@
# undef ACE_LACKS_STRUCT_DIR
#endif
-// Changed ACE_TEXT to ACE_LIB_TEXT in the following line
# define ACE_CC_NAME ACE_LIB_TEXT ("Digital Mars")
# define ACE_CC_MAJOR_VERSION (1)
# define ACE_CC_MINOR_VERSION (8)
@@ -60,13 +59,14 @@
# define ACE_HAS_TYPENAME_KEYWORD 1
//# define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
# define ACE_HAS_USER_MODE_MASKS 1
+# define ACE_HAS_USING_KEYWORD 1
//# define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
# define ACE_LACKS_NATIVE_STRPTIME 1
+//# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE 1
//# define ACE_LACKS_PRAGMA_ONCE 1
//# define ACE_NEW_THROWS_EXCEPTIONS 1
# define ACE_SIZEOF_LONG_DOUBLE 10
# define ACE_TEMPLATES_REQUIRE_SOURCE 1
-// Changed ACE_TEXT to ACE_LIB_TEXT in the following two lines
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
# define ACE_HAS_STRBUF_T
#define ACE_HAS_3_PARAM_WCSTOK
@@ -94,7 +94,6 @@
#define ACE_LACKS_UNISTD_H
#define ACE_LACKS_TERMIOS_H
#define ACE_LACKS_ACE_IOSTREAM
-#define ACE_HAS_NONCONST_TEMPNAM
// Typedefs which we expect DMC to do, but they don't do that
typedef long o_uid_t;
diff --git a/ace/config-win32-ghs.h b/ace/config-win32-ghs.h
index 2d332f58e16..8d43e1ab9fd 100644
--- a/ace/config-win32-ghs.h
+++ b/ace/config-win32-ghs.h
@@ -25,11 +25,9 @@
//Green Hills Native x86 does not support structural exceptions
# undef ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS
-# undef ACE_HAS_WCHAR
# define ACE_CONFIG_INCLUDE_GHS_COMMON
# include "ace/config-ghs-common.h"
-// Changed ACE_TEXT to ACE_LIB_TEXT in the following line
# define ACE_CC_NAME ACE_LIB_TEXT ("Green Hills C++")
# define ACE_CC_MAJOR_VERSION (1)
# define ACE_CC_MINOR_VERSION (8)
@@ -68,16 +66,18 @@
# define ACE_HAS_TYPENAME_KEYWORD 1
//# define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION
# define ACE_HAS_USER_MODE_MASKS 1
+# define ACE_HAS_USING_KEYWORD 1
# define ACE_LACKS_ACE_IOSTREAM 1
//# define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
# define ACE_LACKS_NATIVE_STRPTIME 1
+//# define ACE_LACKS_PLACEMENT_OPERATOR_DELETE 1
//# define ACE_LACKS_PRAGMA_ONCE 1
# define ACE_LACKS_STRRECVFD 1
//# define ACE_NEW_THROWS_EXCEPTIONS 1
# define ACE_SIZEOF_LONG_DOUBLE 10
# define ACE_TEMPLATES_REQUIRE_SOURCE 1
-// Changed ACE_TEXT to ACE_LIB_TEXT in the following two lines
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
# define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64d")
# define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
// Set the following to zero to placate SString.h ACE_WString CTOR
diff --git a/ace/config-win32-interix.h b/ace/config-win32-interix.h
index 53ace409799..9d9f25ee7a3 100644
--- a/ace/config-win32-interix.h
+++ b/ace/config-win32-interix.h
@@ -60,9 +60,10 @@
#define ACE_HAS_SVR4_DYNAMIC_LINKING
#define ACE_HAS_POSIX_TIME // Supports POSIX timers via struct timespec.
#define ACE_LACKS_TIMESPEC_T // Defines struct timespec but not timespec_t.
+#define ACE_LACKS_SYSTIME_H
#define ACE_LACKS_STRRECVFD
#define ACE_LACKS_SETSCHED
-#define ACE_HAS_SOCKADDR_IN_SIN_LEN
+#define ACE_HAS_SIN_LEN
#define ACE_HAS_RTLD_LAZY_V
#define ACE_HAS_POSIX_NONBLOCK
#define ACE_HAS_GETRUSAGE
diff --git a/ace/config-win32-mingw.h b/ace/config-win32-mingw.h
index 104b40c6c04..d8675574213 100644
--- a/ace/config-win32-mingw.h
+++ b/ace/config-win32-mingw.h
@@ -81,7 +81,6 @@
#define ACE_LACKS_SYS_SEM_H
#define ACE_LACKS_STROPTS_H
#define ACE_LACKS_SYS_IOCTL_H
-#define ACE_HAS_NONCONST_WCSDUP
// We trust the user: He must have used -mpentiumpro or -mpentium
// if that is what he wants.
@@ -99,7 +98,8 @@
#endif
#define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64d")
-#define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+#define ACE_UINT64_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
#define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) (STATUS))
diff --git a/ace/config-win32-msvc-6.h b/ace/config-win32-msvc-6.h
index 63c40e60d54..842e7c91b5d 100644
--- a/ace/config-win32-msvc-6.h
+++ b/ace/config-win32-msvc-6.h
@@ -44,6 +44,7 @@
// Keywords
# define ACE_HAS_TYPENAME_KEYWORD
+# define ACE_HAS_USING_KEYWORD
// No support for member templates.
#define ACE_LACKS_MEMBER_TEMPLATES
@@ -177,7 +178,8 @@
# pragma warning(default: 4201) /* winnt.h uses nameless structs */
# define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64d")
-# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+# define ACE_UINT64_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
#include /**/ "ace/post.h"
#endif /* ACE_CONFIG_WIN32_MSVC_6_H */
diff --git a/ace/config-win32-msvc-7.h b/ace/config-win32-msvc-7.h
index 22e99f200c8..e1c57096a6a 100644
--- a/ace/config-win32-msvc-7.h
+++ b/ace/config-win32-msvc-7.h
@@ -38,6 +38,7 @@
#endif
#define ACE_HAS_TYPENAME_KEYWORD
+#define ACE_HAS_USING_KEYWORD
#define ACE_HAS_ITOA
@@ -69,7 +70,8 @@
#define ACE_HAS_TEMPLATE_SPECIALIZATION
#define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64d")
-#define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+#define ACE_UINT64_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
// Platform provides ACE_TLI function prototypes.
// For Win32, this is not really true, but saves a lot of hassle!
diff --git a/ace/config-win32-msvc-8.h b/ace/config-win32-msvc-8.h
index 6f91aa0416d..bdad809bff9 100644
--- a/ace/config-win32-msvc-8.h
+++ b/ace/config-win32-msvc-8.h
@@ -32,7 +32,13 @@
#define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
#endif
+// Win64 SDK compiler claims std::auto_ptr<>::reset not available.
+#if defined (_WIN64) || defined (WIN64)
+#define ACE_AUTO_PTR_LACKS_RESET
+#endif
+
#define ACE_HAS_TYPENAME_KEYWORD
+#define ACE_HAS_USING_KEYWORD
#define ACE_HAS_ITOA
@@ -44,13 +50,15 @@
#define ACE_STRNCASECMP_EQUIVALENT ::_strnicmp
#define ACE_WCSDUP_EQUIVALENT ::_wcsdup
-#define ACE_HAS_EXCEPTIONS
-#define ACE_HAS_NEW_NOTHROW
-
+//#if defined (_WIN32_WCE) && (_WIN32_WCE < 0x500)
+//# define ACE_LACKS_RTTI
+//#else
+# define ACE_HAS_EXCEPTIONS
// Windows Mobile 5 doesn't do sig_atomic_t, but maybe future versions will.
# if !defined (_WIN32_WCE) || (_WIN32_WCE > 0x501)
# define ACE_HAS_SIG_ATOMIC_T
# endif /* !Win CE 5.0 or less */
+//#endif /* _WIN32_WCE && _WIN32_WCE < 500 */
#define ACE_HAS_STRERROR
#define ACE_HAS_STRPTIME
@@ -65,7 +73,8 @@
#define ACE_HAS_TEMPLATE_SPECIALIZATION
#define ACE_INT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64d")
-#define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+#define ACE_UINT64_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
// Platform provides ACE_TLI function prototypes.
// For Win32, this is not really true, but saves a lot of hassle!
diff --git a/ace/config-win32-msvc.h b/ace/config-win32-msvc.h
index a28d2805d17..dd280d0cfaf 100644
--- a/ace/config-win32-msvc.h
+++ b/ace/config-win32-msvc.h
@@ -55,7 +55,7 @@
#endif /* _CPPRTTI */
#if ! defined(_NATIVE_WCHAR_T_DEFINED)
- #define ACE_LACKS_NATIVE_WCHAR_T
+ #define ACE_LACKS_BUILTIN_WCHAR_T
#endif
// Win Mobile still does thread exits differently than PC Windows.
diff --git a/ace/config-win32-visualage.h b/ace/config-win32-visualage.h
index 681381fc945..cf20e3e2496 100644
--- a/ace/config-win32-visualage.h
+++ b/ace/config-win32-visualage.h
@@ -66,6 +66,7 @@
#define ACE_HAS_TEMPLATE_SPECIALIZATION 1
#define ACE_HAS_TEMPLATE_TYPEDEFS 1
#define ACE_HAS_TYPENAME_KEYWORD 1
+#define ACE_HAS_USING_KEYWORD 1
#define ACE_LACKS_ACE_IOSTREAM 1
#define ACE_LACKS_LINEBUFFERED_STREAMBUF 1
#define ACE_LACKS_NATIVE_STRPTIME 1
@@ -75,7 +76,8 @@
#define ACE_SIZEOF_LONG_DOUBLE 10
#define ACE_TEMPLATES_REQUIRE_SOURCE 1
#define ACE_EXPLICIT_TEMPLATE_DESTRUCTOR_TAKES_ARGS 1
-#define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT ("%I64u")
+#define ACE_UINT64_FORMAT_SPECIFIER_A "%I64u"
+# define ACE_UINT64_FORMAT_SPECIFIER ACE_LIB_TEXT (ACE_UINT64_FORMAT_SPECIFIER_A)
#define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
#define ACE_LACKS_NET_IF_H
diff --git a/ace/gethrtime.cpp b/ace/gethrtime.cpp
index 74dbb62b689..b242ef2db27 100644
--- a/ace/gethrtime.cpp
+++ b/ace/gethrtime.cpp
@@ -10,15 +10,12 @@
ACE_RCSID(ace, gethrtime, "$Id$")
#if defined (ghs) && (defined (i386) || defined(__i386__))
-
-#include "ace/OS_NS_time.h"
-
extern "C"
ACE_hrtime_t
-ACE_GETHRTIME_NAME (void)
+ACE_gethrtime (void)
{
#if defined (ACE_HAS_PENTIUM)
- // ACE_TRACE ("ACE_GETHRTIME_NAME");
+ // ACE_TRACE ("ACE_gethrtime");
#if defined (ACE_LACKS_LONGLONG_T)
double now;
diff --git a/ace/iosfwd.h b/ace/iosfwd.h
index 4da758caa8f..75550a57c16 100644
--- a/ace/iosfwd.h
+++ b/ace/iosfwd.h
@@ -42,10 +42,10 @@
#if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && \
(ACE_HAS_STANDARD_CPP_LIBRARY != 0)
-# if !defined (ACE_USES_OLD_IOSTREAMS)
+# if !defined (ACE_USES_OLD_IOSTREAMS)
# include /**/ <iosfwd>
# else
- // @note If these forward declarations don't work (e.g. aren't
+ // NOTE: If these forward declarations don't work (e.g. aren't
// portable), we may have to include "ace/streams.h" as a last
// resort. Doing so would defeat the purpose of this header,
// unfortunately.
diff --git a/ace/os_include/os_dirent.h b/ace/os_include/os_dirent.h
index fc2bcb18575..9564634348e 100644
--- a/ace/os_include/os_dirent.h
+++ b/ace/os_include/os_dirent.h
@@ -27,7 +27,7 @@
#include "ace/os_include/sys/os_types.h"
#include "ace/os_include/os_limits.h"
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+#if defined (VXWORKS)
# include "ace/os_include/os_unistd.h" // VxWorks needs this to compile
#endif /* VXWORKS */
@@ -70,8 +70,6 @@ struct dirent {
ACE_TCHAR *d_name;
};
-#define ACE_DIRENT dirent
-
struct ACE_DIR {
/// The name of the directory we are looking into
ACE_TCHAR *directory_name_;
@@ -80,7 +78,7 @@ struct ACE_DIR {
HANDLE current_handle_;
/// The struct for the results
- ACE_DIRENT *dirent_;
+ dirent *dirent_;
/// The struct for intermediate results.
ACE_TEXT_WIN32_FIND_DATA fdata_;
@@ -99,16 +97,9 @@ struct ACE_DIR
/// The directory entry
struct dirent dirent;
};
-
-#define ACE_DIRENT dirent
-
-#elif defined (ACE_WIN32) && (__BORLANDC__) && defined (ACE_USES_WCHAR)
-#define ACE_DIRENT wdirent
-typedef wDIR ACE_DIR;
#else
-#define ACE_DIRENT dirent
typedef DIR ACE_DIR;
-#endif /* ACE_LACKS_STRUCT_DIR */
+# endif /* ACE_LACKS_STRUCT_DIR */
#if defined rewinddir
# undef rewinddir
@@ -120,7 +111,7 @@ int scandir (const char *,
int (*) (const struct dirent *),
int (*) (const void *, const void *));
#endif /* ACE_LACKS_SCANDIR_PROTOTYPE */
-
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/ace/os_include/os_dlfcn.h b/ace/os_include/os_dlfcn.h
index bda2ca52acc..91864eae5e0 100644
--- a/ace/os_include/os_dlfcn.h
+++ b/ace/os_include/os_dlfcn.h
@@ -42,7 +42,7 @@
# endif /* (g++ || HP aC++) vs. HP C++ */
#endif /* __hpux */
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# include /**/ <loadLib.h> /* for module load */
# include /**/ <unldLib.h> /* for module unload */
# include /**/ <symLib.h> /* for findSymbol */
diff --git a/ace/os_include/os_errno.h b/ace/os_include/os_errno.h
index b55cc024d31..e633a7a4fb9 100644
--- a/ace/os_include/os_errno.h
+++ b/ace/os_include/os_errno.h
@@ -29,9 +29,9 @@
#endif /* !ACE_LACKS_ERRNO_H */
// Needed for VxWorks to pickup errnoSet()
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
#include /**/ <errnoLib.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
diff --git a/ace/os_include/os_fcntl.h b/ace/os_include/os_fcntl.h
index 275d131bb8f..0d456c06043 100644
--- a/ace/os_include/os_fcntl.h
+++ b/ace/os_include/os_fcntl.h
@@ -31,10 +31,10 @@
# include /**/ <fcntl.h>
#endif /* !ACE_LACKS_FCNTL_H */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+#if defined (VXWORKS)
// for creat(), open()
# include /**/ <ioLib.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
diff --git a/ace/os_include/os_limits.h b/ace/os_include/os_limits.h
index 17dba75622a..27be31af2b4 100644
--- a/ace/os_include/os_limits.h
+++ b/ace/os_include/os_limits.h
@@ -35,10 +35,11 @@
# include /**/ <sys/param.h>
#endif /* ACE_LACKS_SYS_PARAM_H */
-// On VxWorks 5.5.1 _POSIX_TIMER_MAX is defined in time.h
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+// On VxWorks _POSIX_TIMER_MAX is defined in time.h, report this to WindRiver
+// support.
+#if defined (VXWORKS)
# include /**/ <time.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
@@ -102,12 +103,6 @@ extern "C"
# define ACE_IOV_MAX IOV_MAX
#endif /* ACE_IOV_MAX */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
-# if defined (PIPE_BUF) && (PIPE_BUF == -1)
-# undef PIPE_BUF
-# endif
-#endif /* ACE_VXWORKS == 0x620 */
-
#if !defined (PIPE_BUF)
# define PIPE_BUF 5120
#endif /* PIPE_BUF */
diff --git a/ace/os_include/os_netdb.h b/ace/os_include/os_netdb.h
index b02ff121d63..fb220a0b518 100644
--- a/ace/os_include/os_netdb.h
+++ b/ace/os_include/os_netdb.h
@@ -39,9 +39,9 @@
# endif /* ACE_HAS_STL_QUEUE_CONFLICT */
#endif /* !ACE_LACKS_NETDB_H */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+#if defined (VXWORKS)
# include /**/ <hostLib.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
@@ -49,7 +49,9 @@ extern "C"
{
#endif /* __cplusplus */
-#if defined (ACE_PSOS)
+// VxWorks does define these, at least on a Sun cross compile, so this
+// may need to be added back for windows.
+#if defined (ACE_PSOS) //|| defined (VXWORKS)
struct hostent {
char *h_name; /* official name of host */
char **h_aliases; /* alias list */
diff --git a/ace/os_include/os_sched.h b/ace/os_include/os_sched.h
index 4a536703218..ad5f0b2c4d6 100644
--- a/ace/os_include/os_sched.h
+++ b/ace/os_include/os_sched.h
@@ -36,14 +36,6 @@ extern "C"
{
#endif /* __cplusplus */
-#if !defined (__cpu_set_t_defined) || !defined (ACE_HAS_CPU_SET_T)
-# define ACE_CPU_SETSIZE 1024
- typedef struct
- {
- ACE_UINT32 bit_array_[ACE_CPU_SETSIZE / (8 * sizeof (ACE_UINT32))];
- } cpu_set_t;
-#endif /* !ACE_HAS_CPU_SET_T || !__cpu_set_t_defined */
-
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/ace/os_include/os_semaphore.h b/ace/os_include/os_semaphore.h
index a703c55d368..a1905169249 100644
--- a/ace/os_include/os_semaphore.h
+++ b/ace/os_include/os_semaphore.h
@@ -58,14 +58,6 @@ extern "C"
/// remember if we need to delete <sema_> or not.
int new_sema_;
# endif /* ACE_LACKS_NAMED_POSIX_SEM */
-
-# if !defined (ACE_HAS_POSIX_SEM_TIMEOUT)
- /// Serialize access to internal state.
- ACE_mutex_t lock_;
-
- /// Block until there are no waiters.
- ACE_cond_t count_nonzero_;
-# endif /* !ACE_HAS_POSIX_SEM_TIMEOUT */
} ACE_sema_t;
#endif /* ACE_HAS_POSIX_SEM */
diff --git a/ace/os_include/os_signal.h b/ace/os_include/os_signal.h
index a38dcbfe754..058fa57fcb5 100644
--- a/ace/os_include/os_signal.h
+++ b/ace/os_include/os_signal.h
@@ -48,9 +48,9 @@
# endif /* ACE_LACKS_SIGINFO_H */
#endif /* ACE_HAS_SIGINFO_T */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620) && !defined (__RTP__)
+#if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
# include /**/ <sigLib.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// should this be extern "C" {}?
#if defined (CHORUS)
diff --git a/ace/os_include/os_stddef.h b/ace/os_include/os_stddef.h
index 008a3f7ba1e..db1190d33f8 100644
--- a/ace/os_include/os_stddef.h
+++ b/ace/os_include/os_stddef.h
@@ -81,12 +81,6 @@ extern "C"
value equal to its value when used as the lone character in an integer
character constant.
*/
-#if defined (ACE_LACKS_WCHAR_T)
-# if !defined (ACE_WCHAR_T_TYPE)
-# define ACE_WCHAR_T_TYPE long;
-# endif /* !ACE_WCHAR_T_TYPE */
- typedef ACE_WCHAR_T_TYPE wchar_t;
-#endif /* ACE_LACKS_WCHAR_T */
// Unsigned integer type of the result of the sizeof operator.
#if defined (ACE_LACKS_SIZE_T)
diff --git a/ace/os_include/os_stdio.h b/ace/os_include/os_stdio.h
index 1a977f784d9..95ff455e14c 100644
--- a/ace/os_include/os_stdio.h
+++ b/ace/os_include/os_stdio.h
@@ -32,15 +32,12 @@
# include /**/ <stdio.h>
#endif /* !ACE_LACKS_STDIO_H */
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
// for remove(), rename()
# include /**/ <ioLib.h>
// for remCurIdGet()
# include /**/ <remLib.h>
-# if defined (__RTP__) && (ACE_VXWORKS == 0x620)
-# define L_cuserid _PARM_L_cuserid
-# endif
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Undefine "functions" that may be implemented as macros.
#ifdef fgetc
diff --git a/ace/os_include/os_stdlib.h b/ace/os_include/os_stdlib.h
index 91324a4f890..5bcb77f430c 100644
--- a/ace/os_include/os_stdlib.h
+++ b/ace/os_include/os_stdlib.h
@@ -35,7 +35,7 @@
# include /**/ <stdlib.h>
#endif /* !ACE_LACKS_STDLIB_H */
-#if defined (ACE_VXWORKS) && !defined (__RTP__)
+#if defined (VXWORKS)
# include /**/ <envLib.h>
#endif /* VXWORKS */
diff --git a/ace/os_include/os_string.h b/ace/os_include/os_string.h
index 8fc7d30bb40..2af1d2901f8 100644
--- a/ace/os_include/os_string.h
+++ b/ace/os_include/os_string.h
@@ -59,7 +59,7 @@ extern "C"
char *strtok_r (char *s, const char *delim, char **save_ptr);
#endif /* ACE_LACKS_STRTOK_R_PROTOTYPE */
-#if defined (__BORLANDC__) && (__BORLANDC__ < 0x560)
+#if defined (__BORLANDC__)
# define _stricmp stricmp
# define _strnicmp strnicmp
#endif /* __BORLANDC__ */
diff --git a/ace/os_include/os_stropts.h b/ace/os_include/os_stropts.h
index b63cf5d964a..e28b672f560 100644
--- a/ace/os_include/os_stropts.h
+++ b/ace/os_include/os_stropts.h
@@ -72,10 +72,10 @@
# endif /* AIX */
#endif /* ACE_HAS_STREAMS */
-#if defined (ACE_VXWORKS)
+#if defined (VXWORKS)
// for ioctl()
# include /**/ <ioLib.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
diff --git a/ace/os_include/os_time.h b/ace/os_include/os_time.h
index a6a4fabe69e..78300ba24be 100644
--- a/ace/os_include/os_time.h
+++ b/ace/os_include/os_time.h
@@ -53,24 +53,6 @@ using std::timezone;
using std::difftime;
# endif /* ACE_USES_STD_NAMESPACE_FOR_STDC_LIB */
-# if !defined (ACE_HAS_POSIX_TIME) && !defined (ACE_PSOS)
-// Definition per POSIX.
-typedef struct timespec
-{
- /// Seconds
- time_t tv_sec;
- /// Nanoseconds
- long tv_nsec;
-} timespec_t;
-# elif defined (ACE_HAS_BROKEN_POSIX_TIME)
-// OSF/1 defines struct timespec in <sys/timers.h> - Tom Marrs
-# include /**/ <sys/timers.h>
-# endif /* !ACE_HAS_POSIX_TIME */
-
-# if defined(ACE_LACKS_TIMESPEC_T)
-typedef struct timespec timespec_t;
-# endif /* ACE_LACKS_TIMESPEC_T */
-
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
diff --git a/ace/os_include/os_unistd.h b/ace/os_include/os_unistd.h
index a60a3b18595..8a9324cd741 100644
--- a/ace/os_include/os_unistd.h
+++ b/ace/os_include/os_unistd.h
@@ -44,15 +44,13 @@
# include /**/ <unistd.h>
#endif /* !ACE_LACKS_UNISTD_H */
-#if defined (ACE_VXWORKS)
-# if !defined (__RTP__)
- // for unlink(), close(), read(), write(), lseek(), chdir(), getcwd(),
- // getwd(), and isatty()
- # include /**/ <ioLib.h>
-# endif
+#if defined (VXWORKS)
+// for unlink(), close(), read(), write(), lseek(), chdir(), getcwd(),
+// getwd(), and isatty()
+# include /**/ <ioLib.h>
// for gethostname()
# include /**/ <hostLib.h>
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
@@ -136,11 +134,11 @@ extern "C"
#endif /* _LARGEFILE64_SOURCE */
#if defined (__BORLANDC__)
+# define _chdir chdir
+# undef _access
+# define _access access
# if (__BORLANDC__ <= 0x540)
# define _getcwd getcwd
-# define _chdir chdir
-# undef _access
-# define _access access
# endif
# define _isatty isatty
#endif /* __BORLANDC__ */
@@ -171,11 +169,11 @@ extern "C"
#if defined (ACE_LACKS_SWAB_PROTOTYPE)
void swab(const void *, void *, ssize_t);
#endif /* ACE_LACKS_SWAB_PROTOTYPE */
-
+
#if defined (ACE_LACKS_GETOPT_PROTOTYPE)
int getopt(int, char * const [], const char *);
#endif /* ACE_LACKS_GETOPT_PROTOTYPE */
-
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/ace/os_include/sys/os_mman.h b/ace/os_include/sys/os_mman.h
index fea2f3e5a5e..6ccb58d548f 100644
--- a/ace/os_include/sys/os_mman.h
+++ b/ace/os_include/sys/os_mman.h
@@ -110,10 +110,6 @@ PAGE_NOCACHE */
# define MS_SYNC 0x0
# endif /* !MS_SYNC */
-#if defined (ACE_LACKS_MADVISE_PROTOTYPE)
- int madvise(caddr_t, size_t, int);
-#endif
-
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/ace/os_include/sys/os_select.h b/ace/os_include/sys/os_select.h
index b2a09b3f34d..f8da718e6a9 100644
--- a/ace/os_include/sys/os_select.h
+++ b/ace/os_include/sys/os_select.h
@@ -32,7 +32,7 @@
# include /**/ <sys/select.h>
#endif /* !ACE_LACKS_SYS_SELECT_H */
-#if defined (ACE_VXWORKS) && defined (ACE_LACKS_SYS_SELECT_H)
+#if defined (VXWORKS)
# include /**/ <selectLib.h>
#endif /* VXWORKS */
diff --git a/ace/os_include/sys/os_socket.h b/ace/os_include/sys/os_socket.h
index 422ed15dec7..c2000721289 100644
--- a/ace/os_include/sys/os_socket.h
+++ b/ace/os_include/sys/os_socket.h
@@ -36,7 +36,7 @@
# endif /* ACE_HAS_AIX_BROKEN_SOCKET_HEADER */
#endif /* !ACE_LACKS_SYS_SOCKET_H */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
+#if defined (VXWORKS)
# include /**/ <sockLib.h>
#endif /* VXWORKS */
diff --git a/ace/os_include/sys/os_stat.h b/ace/os_include/sys/os_stat.h
index 605148b3b52..536d1ce8ff0 100644
--- a/ace/os_include/sys/os_stat.h
+++ b/ace/os_include/sys/os_stat.h
@@ -130,10 +130,8 @@ extern "C"
# if (__BORLANDC__ <= 0x540)
# define _stat stat
# endif
-# if (__BORLANDC__ < 0x560)
-# define _umask umask
-# define _fstat fstat
-# endif
+# define _umask umask
+# define _fstat fstat
#endif /* __BORLANDC__ */
#if defined (ACE_PSOS_SNARFS_HEADER_INFO)
diff --git a/ace/os_include/sys/os_sysctl.h b/ace/os_include/sys/os_sysctl.h
deleted file mode 100644
index 680c2562cbf..00000000000
--- a/ace/os_include/sys/os_sysctl.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file os_sysctl.h
- *
- * declarations for sysctl
- *
- * $Id$
- *
- * @author Johnny Willemsen <jwillemsen@remedy.nl>
- */
-//=============================================================================
-
-#ifndef ACE_OS_INCLUDE_SYS_OS_SYSCTL_H
-#define ACE_OS_INCLUDE_SYS_OS_SYSCTL_H
-
-#include /**/ "ace/pre.h"
-
-#include "ace/config-lite.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#if !defined (ACE_LACKS_SYS_SYSCTL_H)
-# include /**/ <sys/sysctl.h>
-#endif /* !ACE_LACKS_SYS_SYSCTL_H */
-
-// Place all additions (especially function declarations) within extern "C" {}
-#ifdef __cplusplus
-extern "C"
-{
-#endif /* __cplusplus */
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#include /**/ "ace/post.h"
-#endif /* ACE_OS_INCLUDE_SYS_OS_SYSCTL_H */
diff --git a/ace/os_include/sys/os_time.h b/ace/os_include/sys/os_time.h
index 7f65f5cb568..4fb260bcd7e 100644
--- a/ace/os_include/sys/os_time.h
+++ b/ace/os_include/sys/os_time.h
@@ -2,7 +2,7 @@
//=============================================================================
/**
- * @file os_time.h
+ * @file os_time.h
*
* time types
*
@@ -30,10 +30,6 @@
# include /**/ <sys/time.h>
#endif /* !ACE_LACKS_SYS_TIME_H */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
-# include /**/ <time.h> // VxWorks 6.2 defined timeval in time.h
-#endif
-
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
diff --git a/ace/os_include/sys/os_timeb.h b/ace/os_include/sys/os_timeb.h
index 2495097d344..c3b3559269b 100644
--- a/ace/os_include/sys/os_timeb.h
+++ b/ace/os_include/sys/os_timeb.h
@@ -36,7 +36,7 @@ extern "C"
{
#endif /* __cplusplus */
-#if defined (__BORLANDC__) && (__BORLANDC__ <= 0x560)
+#if defined (__BORLANDC__)
# define _ftime ftime
# define _timeb timeb
#endif /* __BORLANDC__ */
diff --git a/ace/os_include/sys/os_types.h b/ace/os_include/sys/os_types.h
index 70405fd78e3..da7cb514c75 100644
--- a/ace/os_include/sys/os_types.h
+++ b/ace/os_include/sys/os_types.h
@@ -133,14 +133,6 @@ typedef double ACE_timer_t;
typedef int ACE_exitcode;
#endif /* ACE_WIN32 */
-#if defined (ACE_LACKS_SUSECONDS_T)
- typedef long suseconds_t;
-#endif
-
-#if defined (ACE_LACKS_USECONDS_T)
- typedef unsigned long useconds_t;
-#endif
-
#if defined (ACE_WIN32) && !defined(__MINGW32__)
typedef long pid_t;
#elif defined (ACE_PSOS) && (!defined (ACE_PSOSIM) && defined (ACE_PSOS_CANT_USE_SYS_TYPES))
diff --git a/ace/os_include/sys/os_un.h b/ace/os_include/sys/os_un.h
index a9bf2457dc1..1b2e5aca9ef 100644
--- a/ace/os_include/sys/os_un.h
+++ b/ace/os_include/sys/os_un.h
@@ -36,12 +36,12 @@ extern "C"
{
#endif /* __cplusplus */
-#if defined (ACE_VXWORKS) && (ACE_VXWORKS <= 0x600)
+#if defined (VXWORKS)
struct sockaddr_un {
short sun_family; // AF_UNIX.
char sun_path[108]; // path name.
};
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
#ifdef __cplusplus
diff --git a/ace/post.h b/ace/post.h
index e39a3f9fa24..748605d7012 100644
--- a/ace/post.h
+++ b/ace/post.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -9,9 +9,11 @@
* @author Christopher Kohlhoff <chris@kohlhoff.com>
*
* This file restores the original alignment rules.
+ *
*/
//=============================================================================
+
// No header guard
#if defined (_MSC_VER)
# pragma pack (pop)
diff --git a/ace/pre.h b/ace/pre.h
index 8a7d7774c64..5645562c8e9 100644
--- a/ace/pre.h
+++ b/ace/pre.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -10,9 +10,11 @@
*
* This file saves the original alignment rules and changes the alignment
* boundary to ACE's default.
+ *
*/
//=============================================================================
+
// No header guard
#if defined (_MSC_VER)
# pragma warning (disable:4103)
diff --git a/ace/svcconf.mpb b/ace/svcconf.mpb
index f2da60eeaca..ff8a4a1f017 100644
--- a/ace/svcconf.mpb
+++ b/ace/svcconf.mpb
@@ -16,13 +16,9 @@ feature(ace_svcconf) {
Service_Types.cpp
Service_Templates.cpp
Shared_Object.cpp
- Svc_Conf_Lexer.cpp
+ Svc_Conf_l.cpp
Svc_Conf_y.cpp
- Encoding_Converter.cpp
- Encoding_Converter_Factory.cpp
- UTF8_Encoding_Converter.cpp
- UTF16_Encoding_Converter.cpp
- UTF32_Encoding_Converter.cpp
+ Svc_Conf_Lexer_Guard.cpp
XML_Svc_Conf.cpp
}
@@ -54,5 +50,55 @@ feature(ace_svcconf) {
" @echo 'ERROR: You must use bison 1.35 or higher to process this file'"
" @/bin/false"
"endif"
+
+ "Svc_Conf_l.cpp: Svc_Conf.l"
+ "ifeq ($(notdir $(LEX)), flex)"
+ " echo '#define YY_NO_UNPUT' > $@"
+ " echo >> $@"
+ " echo '#include \"ace/Object_Manager.h\"' >> $@"
+ " echo '#include \"ace/Guard_T.h\"' >> $@"
+ " echo '#include \"ace/Recursive_Thread_Mutex.h\"' >> $@"
+ " echo '#include \"ace/Synch_Traits.h\"' >> $@"
+ " echo '#include \"ace/OS_NS_ctype.h\"' >> $@"
+ " echo '#include \"ace/OS_NS_string.h\"' >> $@"
+ " $(LEX) -L -t -I Svc_Conf.l >> $@"
+ " echo '#endif /* ACE_USES_CLASSIC_SVC_CONF = 1 */' >> $@"
+ " sed -e 's/yy/ace_yy/g' \\"
+ " -e 's/YY/ACE_YY/g' \\"
+ " -e 's@#define unput.*@#if (ACE_USES_CLASSIC_SVC_CONF == 1)@' \\"
+ " -e 's/typedef unsigned char/typedef char/g' \\"
+ " -e 's/ / /g' \\"
+ " -e 's/^char /ACE_TCHAR /g' \\"
+ " -e 's/ char / ACE_TCHAR /g' \\"
+ " -e 's/(char/(ACE_TCHAR/g' \\"
+ " -e 's/ NULL/ 0/g' \\"
+ " -e 's/->ace_yyerrno/->yyerrno/g' \\"
+ " -e 's/->ace_yylineno/->yylineno/g' \\"
+ " -e 's/free( ptr );/free( ACE_MALLOC_T (ptr) );/g' \\"
+ " -e 's/exit(/ACE_OS::exit(/g' \\"
+ " -e 's/isatty( fileno(file)/ACE_OS::isatty( fileno (file)/g' \\"
+ " -e 's/int isatty/int nop_isatty/g' \\"
+ " -e 's/realloc( (ACE_TCHAR \\*) ptr/realloc( (char *) ptr/g' \\"
+ " -e 's/unsigned ACE_TCHAR/unsigned char/g' \\"
+ " -e 's/ACE_TCHAR msg\\[\\]/char msg[]/g' \\"
+ " -e 's/fprintf/ACE_OS::fprintf/g' \\"
+ " -e 's/if[ ]*([ ]*num_to_read/if ( num_to_read * sizeof (ACE_TCHAR)/g' \\"
+ " -e 's/b->ace_yy_buf_size + 2/(&) * sizeof (ACE_TCHAR)/g' \\"
+ " -e 's@= ACE_YY_READ_BUF_SIZE@& / sizeof (ACE_TCHAR)@g' \\"
+ " -e 's/ace_yy_flex_alloc( n /&* sizeof (ACE_TCHAR)/g' \\"
+ " -e 's@#include <stdio\.h>@#include \"ace/OS_NS_stdio.h\"@' \\"
+ " -e 's@#include <unistd\.h>@#include \"ace/OS_NS_unistd.h\"@' \\"
+ " -e 's@#include <stdlib\.h>@#include \"ace/OS_NS_stdlib.h\"@' \\"
+ " -e 's@#include <@#include /**/ <@' \\"
+ " -e 's@ECHO@ACE_SVC_CONF_ECHO@' < $@ > /tmp/$@"
+ " cp /tmp/$@ $@"
+ " patch < ../etc/Svc_Conf_l.cpp.diff"
+ " $(RM) -f /tmp/$@ Svc_Conf_l.cpp.orig"
+ "else"
+ " @echo 'ERROR: You must use flex 2.5.4 or higher to process this file'"
+ " @/bin/false"
+ "endif"
+
}
+
}
diff --git a/apps/FaCE/FaCE.cpp b/apps/FaCE/FaCE.cpp
index 7d7c50ffcd3..49f413065b1 100644
--- a/apps/FaCE/FaCE.cpp
+++ b/apps/FaCE/FaCE.cpp
@@ -18,7 +18,7 @@
#include <sipapi.h>
-ACE_TCHAR* g_ParameterFileName = ACE_LIB_TEXT("Parameters.txt");
+ACE_TCHAR* g_ParameterFileName = ACE_TEXT("Parameters.txt");
/**
* This simple and small class manages user-input command line
@@ -90,7 +90,7 @@ void ParameterList::addParameter(char* newParameter)
delete w_output;
#else
- this->addParameter(ACE_TEXT_CHAR_TO_TCHAR(newParameter));
+ this->addParameter(ACE_TEXT_TO_TCHAR_IN(newParameter));
#endif // NO_ACE
}
@@ -112,12 +112,12 @@ void ParameterList::addParameter(ACE_TCHAR* newParameter)
void ParameterList::saveParameter(FILE* outputFile)
{
if ( (outputFile == 0) && (this->param_ != 0) ) {
- outputFile = _wfopen(g_ParameterFileName, ACE_LIB_TEXT("w+"));
+ outputFile = _wfopen(g_ParameterFileName, ACE_TEXT("w+"));
}
if (outputFile != 0) {
if (this->param_ != 0) {
- fwprintf(outputFile, ACE_LIB_TEXT("%s\n"), this->param_);
+ fwprintf(outputFile, ACE_TEXT("%s\n"), this->param_);
this->next_->saveParameter(outputFile);
}
else {
@@ -173,7 +173,7 @@ void InitSetup()
void LoadParameterHistory()
{
- FILE* parameterFile = _wfopen(g_ParameterFileName, ACE_LIB_TEXT("r"));
+ FILE* parameterFile = _wfopen(g_ParameterFileName, ACE_TEXT("r"));
if (parameterFile != NULL) {
while (feof(parameterFile) == 0) {
@@ -328,12 +328,12 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case ID_SETTING_RUN:
{
#ifdef NO_ACE
- cout << ACE_LIB_TEXT("START with command line: ") << g_CommandLine << endl;
+ cout << ACE_TEXT("START with command line: ") << g_CommandLine << endl;
CE_ARGV ce_argv(g_CommandLine);
main_i(ce_argv.argc(), ce_argv.argv());
- cout << ACE_LIB_TEXT("END") << endl << endl;
+ cout << ACE_TEXT("END") << endl << endl;
#else
- cout << ACE_LIB_TEXT("START with command line: ") << g_CommandLine << endl;
+ cout << ACE_TEXT("START with command line: ") << g_CommandLine << endl;
ACE_CE_ARGV ce_argv(g_CommandLine);
ACE::init();
ACE_MAIN_OBJECT_MANAGER
@@ -341,7 +341,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
ACE_LOG_MSG->set_flags(ACE_Log_Msg::MSG_CALLBACK); // set call back flag
ace_main_i(ce_argv.argc(), ce_argv.argv());
ACE::fini();
- cout << ACE_LIB_TEXT("END") << endl << endl;
+ cout << ACE_TEXT("END") << endl << endl;
#endif // NO_ACE
}
break;
@@ -388,7 +388,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
GetClientRect(hWnd, &textRect);
nCmdHt = CommandBar_Height(mbi.hwndMB);
- hWndEdit = CreateWindow(ACE_LIB_TEXT("EDIT"),
+ hWndEdit = CreateWindow(ACE_TEXT("EDIT"),
NULL,
WS_CHILD | WS_VISIBLE | ES_READONLY | ES_MULTILINE | WS_VSCROLL | WS_HSCROLL,
0,
@@ -457,7 +457,7 @@ LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
SHINITDLGINFO shidi;
- ACE_TCHAR* copyrightNote = ACE_LIB_TEXT(
+ ACE_TCHAR* copyrightNote = ACE_TEXT(
"ACE® and TAO® are copyrighted by Dr. Douglas C. Schmidt and Center for Distributed Object \
Computing at Washington University,© 1993-2002, all rights reserved. \
FaCE is copyrighted by Object Computing, Inc.,© 2002,\n all rights reserved.\n\
@@ -552,7 +552,7 @@ LRESULT CALLBACK SaveFileName(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa
GetDlgItemText(hDlg, IDC_SAVEFILE, tempBuffer, MAX_LOADSTRING - 1);
EndDialog(hDlg, wmId);
- tempFile = _wfopen(tempBuffer, ACE_LIB_TEXT("r"));
+ tempFile = _wfopen(tempBuffer, ACE_TEXT("r"));
if (tempFile != NULL) // if file exists
{
diff --git a/apps/FaCE/FaCE.h b/apps/FaCE/FaCE.h
index 8a4b80425d9..ef1842323c0 100644
--- a/apps/FaCE/FaCE.h
+++ b/apps/FaCE/FaCE.h
@@ -30,7 +30,7 @@
#include "CE_Screen_Output.h"
#define ACE_TCHAR wchar_t
-#define ACE_LIB_TEXT(STRING) L##STRING
+#define ACE_TEXT(STRING) L##STRING
#define ACE_CE_Screen_Output CE_Screen_Output
int main_i(int, wchar_t**);
diff --git a/apps/Gateway/Gateway/Config_Files.cpp b/apps/Gateway/Gateway/Config_Files.cpp
index a02856b5be6..bc236ca7708 100644
--- a/apps/Gateway/Gateway/Config_Files.cpp
+++ b/apps/Gateway/Gateway/Config_Files.cpp
@@ -138,7 +138,7 @@ Connection_Config_File_Parser::read_entry (Connection_Config_Info &entry,
#if defined (DEBUGGING)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
FP_RETURN_TYPE result;
int line_number = 0;
diff --git a/apps/Gateway/Gateway/Connection_Handler.cpp b/apps/Gateway/Gateway/Connection_Handler.cpp
index 870764229c1..1e603dc73b7 100644
--- a/apps/Gateway/Gateway/Connection_Handler.cpp
+++ b/apps/Gateway/Gateway/Connection_Handler.cpp
@@ -86,7 +86,7 @@ Connection_Handler::connection_role (void) const
// Sets the timeout delay.
void
-Connection_Handler::timeout (long to)
+Connection_Handler::timeout (int to)
{
if (to > this->max_timeout_)
to = this->max_timeout_;
@@ -98,10 +98,10 @@ Connection_Handler::timeout (long to)
// backoff. Returns the original timeout (i.e., before the
// re-calculation).
-long
+int
Connection_Handler::timeout (void)
{
- long old_timeout = this->timeout_;
+ int old_timeout = this->timeout_;
this->timeout_ *= 2;
if (this->timeout_ > this->max_timeout_)
@@ -113,14 +113,14 @@ Connection_Handler::timeout (void)
// Sets the max timeout delay.
void
-Connection_Handler::max_timeout (long mto)
+Connection_Handler::max_timeout (int mto)
{
this->max_timeout_ = mto;
}
// Gets the max timeout delay.
-long
+int
Connection_Handler::max_timeout (void) const
{
return this->max_timeout_;
@@ -151,7 +151,7 @@ Connection_Handler::handle_close (ACE_HANDLE, ACE_Reactor_Mask)
ACE_DEBUG ((LM_DEBUG,
"(%t) shutting down %s Connection_Handler %d on handle %d\n",
this->connection_role () == 'C' ? "Consumer" : "Supplier",
- this->connection_id (),
+ this->connection_id (),
this->get_handle ()));
// Restart the connection, if possible.
diff --git a/apps/Gateway/Gateway/Connection_Handler.h b/apps/Gateway/Gateway/Connection_Handler.h
index a8a72830135..3003a81874e 100644
--- a/apps/Gateway/Gateway/Connection_Handler.h
+++ b/apps/Gateway/Gateway/Connection_Handler.h
@@ -79,12 +79,12 @@ public:
CONNECTION_ID connection_id (void) const;
// = Set/get the current retry timeout delay.
- void timeout (long);
- long timeout (void);
+ void timeout (int);
+ int timeout (void);
// = Set/get the maximum retry timeout delay.
- void max_timeout (long);
- long max_timeout (void) const;
+ void max_timeout (int);
+ int max_timeout (void) const;
// = Set/get proxy role (i.e., 'S' for Supplier and 'C' for Consumer
// (necessary for error checking).
@@ -124,10 +124,10 @@ protected:
State state_;
// The current state of the proxy.
- long timeout_;
+ int timeout_;
// Amount of time to wait between reconnection attempts.
- long max_timeout_;
+ int max_timeout_;
// Maximum amount of time to wait between reconnection attempts.
char connection_role_;
diff --git a/apps/Gateway/Gateway/Event_Channel.cpp b/apps/Gateway/Gateway/Event_Channel.cpp
index 98828c49013..13a4251e6a2 100644
--- a/apps/Gateway/Gateway/Event_Channel.cpp
+++ b/apps/Gateway/Gateway/Event_Channel.cpp
@@ -250,8 +250,8 @@ Event_Channel::initiate_connection_connection (Connection_Handler *connection_ha
int
Event_Channel::complete_connection_connection (Connection_Handler *connection_handler)
{
- int option = connection_handler->connection_role () == 'S'
- ? SO_RCVBUF
+ int option = connection_handler->connection_role () == 'S'
+ ? SO_RCVBUF
: SO_SNDBUF;
int socket_queue_size =
Options::instance ()->socket_queue_size ();
@@ -305,11 +305,10 @@ Event_Channel::reinitiate_connection_connection (Connection_Handler *connection_
connection_handler->connection_id ()));
// Reschedule ourselves to try and connect again.
- ACE_Time_Value const timeout (connection_handler->timeout ());
if (ACE_Reactor::instance ()->schedule_timer
(connection_handler,
0,
- timeout) == -1)
+ connection_handler->timeout ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"(%t) %p\n",
"schedule_timer"),
@@ -368,10 +367,9 @@ Event_Channel::initiate_acceptors (void)
{
if (Options::instance ()->enabled (Options::CONSUMER_ACCEPTOR))
{
- ACE_INET_Addr
- consumer_addr (Options::instance ()->consumer_acceptor_port ());
+
if (this->consumer_acceptor_.open
- (consumer_addr,
+ (Options::instance ()->consumer_acceptor_port (),
ACE_Reactor::instance (),
Options::instance ()->blocking_semantics ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -385,10 +383,8 @@ Event_Channel::initiate_acceptors (void)
}
if (Options::instance ()->enabled (Options::SUPPLIER_ACCEPTOR))
{
- ACE_INET_Addr
- supplier_addr (Options::instance ()->supplier_acceptor_port ());
- if (this->supplier_acceptor_.open
- (supplier_addr,
+ if(this->supplier_acceptor_.open
+ (Options::instance ()->supplier_acceptor_port (),
ACE_Reactor::instance (),
Options::instance ()->blocking_semantics ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/apps/Gateway/Gateway/Gateway.cpp b/apps/Gateway/Gateway/Gateway.cpp
index f0732846d2f..bbe748a0cd4 100644
--- a/apps/Gateway/Gateway/Gateway.cpp
+++ b/apps/Gateway/Gateway/Gateway.cpp
@@ -110,10 +110,9 @@ Gateway::init (int argc, ACE_TCHAR *argv[])
if (Options::instance ()->performance_window () > 0)
{
- ACE_Time_Value const performance_time (Options::instance ()->performance_window ());
if (ACE_Reactor::instance ()->schedule_timer
(&this->event_channel_, 0,
- performance_time) == -1)
+ Options::instance ()->performance_window ()) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%t) %p\n"),
ACE_TEXT ("schedule_timer")));
diff --git a/apps/Gateway/Gateway/Options.cpp b/apps/Gateway/Gateway/Options.cpp
index cc80ce06c7d..99d00e120bf 100644
--- a/apps/Gateway/Gateway/Options.cpp
+++ b/apps/Gateway/Gateway/Options.cpp
@@ -89,7 +89,7 @@ Options::locking_strategy (ACE_Lock_Adapter<ACE_SYNCH_MUTEX> *ls)
this->locking_strategy_ = ls;
}
-long
+int
Options::performance_window (void) const
{
return this->performance_window_;
@@ -173,7 +173,7 @@ int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
// Assign defaults.
- ACE_Get_Opt get_opt (argc,
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc,
argv,
ACE_TEXT("a:bC:c:dm:P:p:q:r:t:vw:"),
0);
diff --git a/apps/Gateway/Gateway/Options.h b/apps/Gateway/Gateway/Options.h
index 56f7c95e7e7..b5971b35c88 100644
--- a/apps/Gateway/Gateway/Options.h
+++ b/apps/Gateway/Gateway/Options.h
@@ -75,7 +75,7 @@ public:
// Set the locking strategy used for serializing access to the
// reference count in <ACE_Message_Block>.
- long performance_window (void) const;
+ int performance_window (void) const;
// Number of seconds after connection establishment to report
// throughput.
@@ -143,7 +143,7 @@ private:
// no locking strategy and we're using a REACTIVE concurrency
// strategy.
- long performance_window_;
+ int performance_window_;
// Number of seconds after connection establishment to report
// throughput.
diff --git a/apps/Gateway/Peer/Options.cpp b/apps/Gateway/Peer/Options.cpp
index 0b33552e629..659fc38b5c9 100644
--- a/apps/Gateway/Peer/Options.cpp
+++ b/apps/Gateway/Peer/Options.cpp
@@ -108,7 +108,7 @@ Options::enabled (int option) const
void
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("a:c:C:h:m:t:v"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("a:c:C:h:m:t:v"), 0);
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/apps/JAWS/ChangeLog b/apps/JAWS/ChangeLog
index 11d67ef52cd..c0a72a198bb 100644
--- a/apps/JAWS/ChangeLog
+++ b/apps/JAWS/ChangeLog
@@ -1,37 +1,15 @@
-Mon Feb 6 01:00:55 UTC 2006 William Otte <wotte@dre.vanderbilt.edu>
-
- * server/HTTP_Server.h
-
- Surrounded a proactor forward declaration with versioned
- namespace macros.
-
-Thu Jan 5 00:42:28 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-whitespace.
-
-Wed Jan 4 22:57:37 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Added "Local Variables" section defining "add-log-time-format"
- to a really ugly lambda expression that formats changelog
- timestamps in UTC and works with both GNU Emacs and XEmacs.
-
Fri Apr 22 21:42:30 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * server/HTTP_Helpers.cpp (HTTP_mktime):
+ * server/HTTP_Helpers.cpp (HTTP_mktime):
- Made rfc1123_date, rfc850_date and asctime_date strings into
- string literals. Allows g++ format specifier argument checking
- to work, and addresses a related g++ 4.0 warning.
+ Made rfc1123_date, rfc850_date and asctime_date strings into
+ string literals. Allows g++ format specifier argument checking
+ to work, and addresses a related g++ 4.0 warning.
- * server/IO.h (~JAWS_IO_Handler):
- * server/IO.cpp (~JAWS_IO_Handler):
+ * server/IO.h (~JAWS_IO_Handler):
+ * server/IO.cpp (~JAWS_IO_Handler):
- Added virtual destructor to silence g++ 4.0 warnings.
+ Added virtual destructor to silence g++ 4.0 warnings.
Thu Aug 26 08:13:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
@@ -42,73 +20,73 @@ Thu Aug 26 08:13:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Tue Feb 25 18:58:26 2003 Carlos O'Ryan <coryan@atdesk.com>
- * clients/WebSTONE/src/cgi-send:
- Removed pre-compiled binary for MIPS (R3000 of all things!)
+ * clients/WebSTONE/src/cgi-send:
+ Removed pre-compiled binary for MIPS (R3000 of all things!)
Wed Dec 26 09:35:35 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
- * clients/Blobby/Options.cpp
- server/HTTP_Server.cpp
- stress_testing/benchd.cpp
- JAWS2/JAWS/Server.cpp: Replaced all uses of getopt.optarg
- with getopt.opt_arg().
+ * clients/Blobby/Options.cpp
+ server/HTTP_Server.cpp
+ stress_testing/benchd.cpp
+ JAWS2/JAWS/Server.cpp: Replaced all uses of getopt.optarg
+ with getopt.opt_arg().
Thu Dec 6 09:00:31 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
- * clients/Caching/http_client.cpp (main): Make sure to remove the
- trailing '\n' so the example works properly. Thanks to Andrey
- Shkinev <andreyshkinev@rogers.com> for reporting this.
+ * clients/Caching/http_client.cpp (main): Make sure to remove the
+ trailing '\n' so the example works properly. Thanks to Andrey
+ Shkinev <andreyshkinev@rogers.com> for reporting this.
Wed Nov 14 16:21:46 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
- * clients/Blobby/Blob.{h,cpp},
- * clients/Blobby/Blob_Handler.{h,cpp},
- * clients/Blobby/blobby.{h,cpp},
- * clients/Blobby/Options.{h,cpp}:
- Fixed the code to be Unicode-compliant. Thanks to Johnny
- Willemsen for contributing this.
+ * clients/Blobby/Blob.{h,cpp},
+ * clients/Blobby/Blob_Handler.{h,cpp},
+ * clients/Blobby/blobby.{h,cpp},
+ * clients/Blobby/Options.{h,cpp}:
+ Fixed the code to be Unicode-compliant. Thanks to Johnny
+ Willemsen for contributing this.
Fri Aug 24 18:39:39 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
- * server/HTTP_Response.cpp (normal_response),
- * server/HTTP_Helpers.cpp (HTTP_decode_base64): Use delete [] buf
- rather than delete buf. Thanks to Don Hinton for reporting
- this.
+ * server/HTTP_Response.cpp (normal_response),
+ * server/HTTP_Helpers.cpp (HTTP_decode_base64): Use delete [] buf
+ rather than delete buf. Thanks to Don Hinton for reporting
+ this.
Thu Aug 16 09:57:15 2001 Balachandran Natarajan <bala@cs.wustl.edu>
- * */Makefile: Updated dependencies.
+ * */Makefile: Updated dependencies.
Mon Aug 13 14:04:44 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
- * Applied the following fixes courtesy of Blair Zajac
- <blair@gps.caltech.edu>:
+ * Applied the following fixes courtesy of Blair Zajac
+ <blair@gps.caltech.edu>:
- 1) Allow a static libHTTPU.a to be built when
+ 1) Allow a static libHTTPU.a to be built when
"make static_libs_only=1" is used.
2) When I try to build both JAWS and JAWS2 with the same
ACE_ROOT, the libJAWS.* that is built and installed first
- prevents the other JAWS from properly compiling. This
- resolves this problem by renaming the JAWS2 library to
- libJAWS2.*.
+ prevents the other JAWS from properly compiling. This
+ resolves this problem by renaming the JAWS2 library to
+ libJAWS2.*.
3) The JAWS2 subdirectory is now descended into by
- apps/Makefile.
+ apps/Makefile.
4) The Makefile in JAWS2 now descends into HTTPU and JAWS to
build those libraries.
Tue Jun 12 20:35:26 2001 Krishnakumar B <kitty@cs.wustl.edu>
- * clients/Blobby/Blob_Handler.cpp:
+ * clients/Blobby/Blob_Handler.cpp:
- Fixed a size_t printf to make gcc happy on IA-64 Linux.
+ Fixed a size_t printf to make gcc happy on IA-64 Linux.
Sun Feb 18 09:33:33 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
- * server/IO.cpp (handle): Added a const to the handle() method
- to make compilers happy. Thanks to Kitty for reporting this.
+ * server/IO.cpp (handle): Added a const to the handle() method
+ to make compilers happy. Thanks to Kitty for reporting this.
Mon Jun 12 14:22:35 PDT 2000 James Hu <jxh@entera.com>
@@ -214,18 +192,18 @@ Wed Mar 22 12:36:00 2000 James Hu <jxh@cs.wustl.edu>
Tue Sep 21 11:47:00 1999 Ossama Othman <othman@cs.wustl.edu>
- * server/HTTP_Server.cpp (init):
+ * server/HTTP_Server.cpp (init):
- Changed cast style to make gcc 2.95.1 happy. Thanks to Jeffrey
- Franks <Jeffrey_Franks@i-o.com> for reporting the problems.
+ Changed cast style to make gcc 2.95.1 happy. Thanks to Jeffrey
+ Franks <Jeffrey_Franks@i-o.com> for reporting the problems.
Tue Aug 31 05:10:32 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
- * server/HTTP_Handler.cpp (destroy_http_handler): Switched
- the order in which handler and io were deleted since the current
- order seems to destroy handler first, which is problematic since
- io is contained within handler! Thanks to Yosi Sarusi
- <yosi@appstream.com> for reporting this.
+ * server/HTTP_Handler.cpp (destroy_http_handler): Switched
+ the order in which handler and io were deleted since the current
+ order seems to destroy handler first, which is problematic since
+ io is contained within handler! Thanks to Yosi Sarusi
+ <yosi@appstream.com> for reporting this.
Wed Aug 18 16:00:46 1999 David L. Levine <levine@cs.wustl.edu>
@@ -972,9 +950,3 @@ Tue May 20 22:49:24 1997 James C Hu <jxh@polka.cs.wustl.edu>
* test_JAWS_File.cpp: A test program written to see if the new
virtual filesystem works the way I expect it to.
-
-Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
-End:
diff --git a/apps/JAWS/clients/Blobby/Blob_Handler.cpp b/apps/JAWS/clients/Blobby/Blob_Handler.cpp
index c2e74f38548..0c62f0fe78c 100644
--- a/apps/JAWS/clients/Blobby/Blob_Handler.cpp
+++ b/apps/JAWS/clients/Blobby/Blob_Handler.cpp
@@ -279,7 +279,7 @@ ACE_Blob_Writer::send_request (void)
// Create the header, store the actual length in mesglen.
// NOTE! %lu is really what's wanted. ACE_SIZE_T_FORMAT_SPECIFIER is
- // defined in terms of ACE_LIB_TEXT which is NOT what we want here.
+ // defined in terms of ACE_TEXT which is NOT what we want here.
mesglen = ACE_OS::sprintf (mesg, "%s /%s %s %lu\n\n",
request_prefix_, filename_, request_suffix_,
(unsigned long)length_);
diff --git a/apps/JAWS/clients/Blobby/Options.cpp b/apps/JAWS/clients/Blobby/Options.cpp
index 08f7de4ad8b..5934bd59591 100644
--- a/apps/JAWS/clients/Blobby/Options.cpp
+++ b/apps/JAWS/clients/Blobby/Options.cpp
@@ -23,7 +23,7 @@ Options::instance (void)
void
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("rwh:p:f:l:o:d"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("rwh:p:f:l:o:d"));
int c;
diff --git a/apps/JAWS/clients/Caching/caching.mpc b/apps/JAWS/clients/Caching/caching.mpc
index fce9d81df4f..214d284fa85 100644
--- a/apps/JAWS/clients/Caching/caching.mpc
+++ b/apps/JAWS/clients/Caching/caching.mpc
@@ -2,7 +2,6 @@
// $Id$
project(http_client) : aceexe {
- avoids += ace_for_tao
requires += ace_filecache
Source_Files {
diff --git a/apps/JAWS/clients/Caching/http_client.cpp b/apps/JAWS/clients/Caching/http_client.cpp
index f0bb20b6d56..b565dcb05be 100644
--- a/apps/JAWS/clients/Caching/http_client.cpp
+++ b/apps/JAWS/clients/Caching/http_client.cpp
@@ -58,7 +58,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
while (isspace (*s));
// Shell command.
- if (ACE_OS::system (ACE_TEXT_CHAR_TO_TCHAR (s)) == -1)
+ if (ACE_OS::system (ACE_TEXT_TO_TCHAR_IN (s)) == -1)
ACE_ERROR ((LM_ERROR, ACE_TEXT (" ! Error executing: %C\n"), s));
}
else if (ACE_OS::strncmp (s, "http://", 7) == 0)
diff --git a/apps/JAWS/clients/Caching/http_handler.cpp b/apps/JAWS/clients/Caching/http_handler.cpp
index b205451ec9a..366e3546aa1 100644
--- a/apps/JAWS/clients/Caching/http_handler.cpp
+++ b/apps/JAWS/clients/Caching/http_handler.cpp
@@ -137,7 +137,7 @@ HTTP_Handler::svc (void)
&& (::sscanf (contentlength, "\nContent-%*[lL]ength: %d ",
&this->response_size_) == 1))
{
- ACE_Filecache_Handle afh (ACE_TEXT_CHAR_TO_TCHAR (this->filename_),
+ ACE_Filecache_Handle afh (ACE_TEXT_TO_TCHAR_IN (this->filename_),
this->response_size_);
this->peer ().recv_n (afh.address (), this->response_size_);
@@ -189,7 +189,7 @@ HTTP_Connector::connect (const char * url)
HTTP_Handler *hhptr = &hh;
// First check the cache.
- if (ACE_Filecache::instance ()->find (ACE_TEXT_CHAR_TO_TCHAR (hh.filename ())) == 0)
+ if (ACE_Filecache::instance ()->find (ACE_TEXT_TO_TCHAR_IN (hh.filename ())) == 0)
{
ACE_DEBUG ((LM_DEBUG, " ``%s'' is already cached.\n",
hh.filename ()));
diff --git a/apps/JAWS/clients/Caching/test_URL.cpp b/apps/JAWS/clients/Caching/test_URL.cpp
index 7e81a359f45..13467f8eb4a 100644
--- a/apps/JAWS/clients/Caching/test_URL.cpp
+++ b/apps/JAWS/clients/Caching/test_URL.cpp
@@ -4,7 +4,7 @@
ACE_RCSID(Caching, test_URL, "$Id$")
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
diff --git a/apps/JAWS/server/HTTP_Handler.cpp b/apps/JAWS/server/HTTP_Handler.cpp
index 277cfb11f3a..c90e7a11fa0 100644
--- a/apps/JAWS/server/HTTP_Handler.cpp
+++ b/apps/JAWS/server/HTTP_Handler.cpp
@@ -261,29 +261,6 @@ Synch_HTTP_Handler_Factory::destroy_http_handler (HTTP_Handler &handler,
delete &handler;
}
-//-------------SYNCH IO no Cache
-
-HTTP_Handler *
-No_Cache_Synch_HTTP_Handler_Factory::create_http_handler (void)
-{
- JAWS_Synch_IO_No_Cache *io;
- ACE_NEW_RETURN (io, JAWS_Synch_IO_No_Cache, 0);
- HTTP_Handler *handler;
- ACE_NEW_RETURN (handler, HTTP_Handler (*io, *this), 0);
-
- return handler;
-}
-
-void
-No_Cache_Synch_HTTP_Handler_Factory::destroy_http_handler (HTTP_Handler &handler,
- JAWS_IO &io)
-{
- delete &io;
- delete &handler;
-}
-
-//----------------
-
// This only works on Win32
#if defined (ACE_WIN32)
void
diff --git a/apps/JAWS/server/HTTP_Handler.h b/apps/JAWS/server/HTTP_Handler.h
index f7eb9b9a693..0a61ae88782 100644
--- a/apps/JAWS/server/HTTP_Handler.h
+++ b/apps/JAWS/server/HTTP_Handler.h
@@ -47,13 +47,11 @@ class HTTP_Handler : protected JAWS_IO_Handler
{
// Friend I/O classes. Can call protected methods.
friend class JAWS_Synch_IO;
- friend class JAWS_Synch_IO_No_Cache;
friend class JAWS_Asynch_IO;
// Factories
friend class Asynch_HTTP_Handler_Factory;
friend class Synch_HTTP_Handler_Factory;
- friend class No_Cache_Synch_HTTP_Handler_Factory;
public:
virtual void open (ACE_HANDLE handle,
@@ -165,29 +163,6 @@ public:
// the protocol
};
-//--------------Added a factory for SYNCH IO without caching
-
-class No_Cache_Synch_HTTP_Handler_Factory : public HTTP_Handler_Factory
- // = TITLE
- //
- // This class is used to create new HTTP handlers that will use
- // Synch IO without caching
- //
- // = DESCRIPTION
-{
-public:
- HTTP_Handler *create_http_handler (void);
- // This creates a new HTTP_Handler
-
- void destroy_http_handler (HTTP_Handler &handler,
- JAWS_IO &io);
- // The HTTP handler will call this method from HTTP_Handler::done to
- // tell the factory to reap up the handler as it is now done with
- // the protocol
-};
-
-//--------------
-
#if defined (ACE_WIN32)
class Asynch_HTTP_Handler_Factory : public HTTP_Handler_Factory, public ACE_Service_Handler
// = TITLE
diff --git a/apps/JAWS/server/HTTP_Request.h b/apps/JAWS/server/HTTP_Request.h
index 3581d802540..3a3bed182fe 100644
--- a/apps/JAWS/server/HTTP_Request.h
+++ b/apps/JAWS/server/HTTP_Request.h
@@ -18,6 +18,8 @@
#ifndef HTTP_REQUEST_H
#define HTTP_REQUEST_H
+class ACE_Message_Block;
+
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -26,10 +28,6 @@
#include "Parse_Headers.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
class HTTP_Request
// = TITLE
// This parses the client request of an HTTP transaction.
diff --git a/apps/JAWS/server/HTTP_Server.cpp b/apps/JAWS/server/HTTP_Server.cpp
index 9dad1f355b5..36a521004ae 100644
--- a/apps/JAWS/server/HTTP_Server.cpp
+++ b/apps/JAWS/server/HTTP_Server.cpp
@@ -10,7 +10,6 @@
#include "ace/LOCK_SOCK_Acceptor.h"
#include "ace/Proactor.h"
#include "ace/Signal.h"
-#include "ace/Auto_Ptr.h"
#include "IO.h"
#include "HTTP_Server.h"
@@ -47,9 +46,8 @@ HTTP_Server::parse_args (int argc, ACE_TCHAR *argv[])
this->threads_ = 0;
this->backlog_ = 0;
this->throttle_ = 0;
- this->caching_ = true;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:n:t:i:b:c:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:n:t:i:b:"));
while ((c = get_opt ()) != -1)
switch (c)
@@ -99,12 +97,6 @@ HTTP_Server::parse_args (int argc, ACE_TCHAR *argv[])
case 'b':
this->backlog_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
- case 'c':
- if (ACE_OS::strcmp (get_opt.opt_arg (), ACE_TEXT ("NO_CACHE")) == 0)
- this->caching_ = false;
- else
- this->caching_ = true;
- break;
default:
break;
}
@@ -138,22 +130,6 @@ HTTP_Server::init (int argc, ACE_TCHAR *argv[])
// Parse arguments which sets the initial state.
this->parse_args (argc, argv);
- //If the IO strategy is synchronous (SYNCH case), then choose a handler
- //factory based on the desired caching scheme
- HTTP_Handler_Factory *f = 0;
-
- if (this->strategy_ != (JAWS::JAWS_POOL | JAWS::JAWS_ASYNCH))
- if (this->caching_)
- ACE_NEW_RETURN (f, Synch_HTTP_Handler_Factory (), -1);
- else
- ACE_NEW_RETURN (f, No_Cache_Synch_HTTP_Handler_Factory (), -1);
-
- //NOTE: At this point f better not be a NULL pointer,
- //so please do not change the ACE_NEW_RETURN macros unless
- //you know what you are doing
- ACE_Auto_Ptr<HTTP_Handler_Factory> factory (f);
-
-
// Choose what concurrency strategy to run.
switch (this->strategy_)
{
@@ -161,11 +137,11 @@ HTTP_Server::init (int argc, ACE_TCHAR *argv[])
return this->asynch_thread_pool ();
case (JAWS::JAWS_PER_REQUEST | JAWS::JAWS_SYNCH) :
- return this->thread_per_request (*factory.get ());
+ return this->thread_per_request ();
case (JAWS::JAWS_POOL | JAWS::JAWS_SYNCH) :
default:
- return this->synch_thread_pool (*factory.get ());
+ return this->synch_thread_pool ();
}
ACE_NOTREACHED (return 0);
@@ -180,7 +156,7 @@ HTTP_Server::fini (void)
int
-HTTP_Server::synch_thread_pool (HTTP_Handler_Factory &factory)
+HTTP_Server::synch_thread_pool (void)
{
// Main thread opens the acceptor
if (this->acceptor_.open (ACE_INET_Addr (this->port_), 1,
@@ -189,7 +165,7 @@ HTTP_Server::synch_thread_pool (HTTP_Handler_Factory &factory)
ACE_TEXT ("HTTP_Acceptor::open")), -1);
// Create a pool of threads to handle incoming connections.
- Synch_Thread_Pool_Task t (this->acceptor_, this->tm_, this->threads_, factory);
+ Synch_Thread_Pool_Task t (this->acceptor_, this->tm_, this->threads_);
this->tm_.wait ();
return 0;
@@ -197,11 +173,9 @@ HTTP_Server::synch_thread_pool (HTTP_Handler_Factory &factory)
Synch_Thread_Pool_Task::Synch_Thread_Pool_Task (HTTP_Acceptor &acceptor,
ACE_Thread_Manager &tm,
- int threads,
- HTTP_Handler_Factory &factory)
+ int threads)
: ACE_Task<ACE_NULL_SYNCH> (&tm),
- acceptor_ (acceptor),
- factory_ (factory)
+ acceptor_ (acceptor)
{
if (this->activate (THR_DETACHED | THR_NEW_LWP, threads) == -1)
ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"),
@@ -212,7 +186,7 @@ int
Synch_Thread_Pool_Task::svc (void)
{
// Creates a factory of HTTP_Handlers binding to synchronous I/O strategy
- //Synch_HTTP_Handler_Factory factory;
+ Synch_HTTP_Handler_Factory factory;
for (;;)
{
@@ -229,7 +203,7 @@ Synch_Thread_Pool_Task::svc (void)
-1);
// Create an HTTP Handler to handle this request
- HTTP_Handler *handler = this->factory_.create_http_handler ();
+ HTTP_Handler *handler = factory.create_http_handler ();
handler->open (stream.get_handle (), *mb);
// Handler is destroyed when the I/O puts the Handler into the
// done state.
@@ -243,7 +217,7 @@ Synch_Thread_Pool_Task::svc (void)
}
int
-HTTP_Server::thread_per_request (HTTP_Handler_Factory &factory)
+HTTP_Server::thread_per_request (void)
{
int grp_id = -1;
@@ -270,8 +244,7 @@ HTTP_Server::thread_per_request (HTTP_Handler_Factory &factory)
// Pass grp_id as a constructor param instead of into open.
ACE_NEW_RETURN (t, Thread_Per_Request_Task (stream.get_handle (),
this->tm_,
- grp_id,
- factory),
+ grp_id),
-1);
@@ -294,13 +267,11 @@ HTTP_Server::thread_per_request (HTTP_Handler_Factory &factory)
}
Thread_Per_Request_Task::Thread_Per_Request_Task (ACE_HANDLE handle,
- ACE_Thread_Manager &tm,
- int &grp_id,
- HTTP_Handler_Factory &factory)
+ ACE_Thread_Manager &tm,
+ int &grp_id)
: ACE_Task<ACE_NULL_SYNCH> (&tm),
handle_ (handle),
- grp_id_ (grp_id),
- factory_ (factory)
+ grp_id_ (grp_id)
{
}
@@ -332,8 +303,8 @@ Thread_Per_Request_Task::svc (void)
ACE_Message_Block *mb;
ACE_NEW_RETURN (mb, ACE_Message_Block (HTTP_Handler::MAX_REQUEST_SIZE + 1),
-1);
- //Synch_HTTP_Handler_Factory factory;
- HTTP_Handler *handler = this->factory_.create_http_handler ();
+ Synch_HTTP_Handler_Factory factory;
+ HTTP_Handler *handler = factory.create_http_handler ();
handler->open (this->handle_, *mb);
mb->release ();
return 0;
diff --git a/apps/JAWS/server/HTTP_Server.h b/apps/JAWS/server/HTTP_Server.h
index 9e8534c4cbd..8d39e193642 100644
--- a/apps/JAWS/server/HTTP_Server.h
+++ b/apps/JAWS/server/HTTP_Server.h
@@ -35,10 +35,8 @@
#include "ace/Null_Mutex.h"
#include "ace/Global_Macros.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward declaration.
class ACE_Proactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (ACE_HAS_THREAD_SAFE_ACCEPT)
typedef ACE_LOCK_SOCK_Acceptor<ACE_SYNCH_NULL_MUTEX> HTTP_SOCK_Acceptor;
@@ -63,13 +61,13 @@ public:
// Exit hooks
protected:
- virtual int thread_per_request (HTTP_Handler_Factory &factory);
+ virtual int thread_per_request (void);
// Thread Per Request implementation
virtual int asynch_thread_pool (void);
// Asynch Thread Pool implementation
- virtual int synch_thread_pool (HTTP_Handler_Factory &factory);
+ virtual int synch_thread_pool (void);
// Synch Thread Pool implementation
private:
@@ -80,7 +78,6 @@ private:
int strategy_;
int backlog_;
int throttle_;
- bool caching_;
ACE_Thread_Manager tm_;
HTTP_Acceptor acceptor_;
};
@@ -91,18 +88,15 @@ class Synch_Thread_Pool_Task : public ACE_Task<ACE_NULL_SYNCH>
//
// = DESCRIPTION
// Describe this and the others below.
- // NOTE: this class was modified to make caching disabling possible
{
public:
Synch_Thread_Pool_Task (HTTP_Acceptor &acceptor,
ACE_Thread_Manager &tm,
- int threads,
- HTTP_Handler_Factory &factory);
+ int threads);
virtual int svc (void);
private:
HTTP_Acceptor &acceptor_;
- HTTP_Handler_Factory &factory_;
};
class Thread_Per_Request_Task : public ACE_Task<ACE_NULL_SYNCH>
@@ -112,13 +106,11 @@ class Thread_Per_Request_Task : public ACE_Task<ACE_NULL_SYNCH>
// = DESCRIPTION
// Spawns a new thread for every new incoming connection. The
// handle below is the socket stream of the incoming connection.
- // NOTE: this class was modified to make caching disabling possible
{
public:
Thread_Per_Request_Task (ACE_HANDLE handle,
ACE_Thread_Manager &tm,
- int &grp_id,
- HTTP_Handler_Factory &factory);
+ int &grp_id);
virtual int open (void *args = 0);
virtual int close (u_long);
virtual int svc (void);
@@ -126,7 +118,6 @@ public:
private:
ACE_HANDLE handle_;
int &grp_id_;
- HTTP_Handler_Factory &factory_;
};
// This only works on Win32
diff --git a/apps/JAWS/server/IO.cpp b/apps/JAWS/server/IO.cpp
index 297082ce3d8..34d8ddd0acd 100644
--- a/apps/JAWS/server/IO.cpp
+++ b/apps/JAWS/server/IO.cpp
@@ -10,10 +10,6 @@
#include "IO.h"
#include "HTTP_Helpers.h"
-#include "ace/OS_NS_fcntl.h"
-#include "ace/OS_NS_unistd.h"
-#include "ace/OS_NS_sys_stat.h"
-#include "ace/Auto_Ptr.h"
ACE_RCSID (server,
IO,
@@ -422,155 +418,6 @@ JAWS_Asynch_IO::handle_write_stream (const ACE_Asynch_Write_Stream::Result &resu
#endif /* ACE_WIN32 */
-//-------------------Adding SYNCH IO no Caching
-
-JAWS_Synch_IO_No_Cache::JAWS_Synch_IO_No_Cache (void)
- : handle_ (ACE_INVALID_HANDLE)
-{
-}
-
-JAWS_Synch_IO_No_Cache::~JAWS_Synch_IO_No_Cache (void)
-{
- ACE_OS::closesocket (this->handle_);
-}
-
-ACE_HANDLE
-JAWS_Synch_IO_No_Cache::handle (void) const
-{
- return this->handle_;
-}
-
-void
-JAWS_Synch_IO_No_Cache::handle (ACE_HANDLE handle)
-{
- this->handle_ = handle;
-}
-
-void
-JAWS_Synch_IO_No_Cache::read (ACE_Message_Block &mb,
- int size)
-{
- ACE_SOCK_Stream stream;
- stream.set_handle (this->handle_);
- int result = stream.recv (mb.wr_ptr (), size);
-
- if (result <= 0)
- this->handler_->read_error ();
- else
- {
- mb.wr_ptr (result);
- this->handler_->read_complete (mb);
- }
-}
-
-void
-JAWS_Synch_IO_No_Cache::receive_file (const char *filename,
- void *initial_data,
- int initial_data_length,
- int entire_length)
-{
- //ugly hack to send HTTP_Status_Code::STATUS_FORBIDDEN
- this->handler_->receive_file_error (5);
-
- //To get rid of warnings on some platforms
- //NOTE: this function is necessary because the base class
- //version of the function is pure virtual
- ACE_UNUSED_ARG (filename);
- ACE_UNUSED_ARG (initial_data);
- ACE_UNUSED_ARG (initial_data_length);
- ACE_UNUSED_ARG (entire_length);
-}
-
-void
-JAWS_Synch_IO_No_Cache::transmit_file (const char *filename,
- const char *header,
- int header_size,
- const char *trailer,
- int trailer_size)
-{
- int result = 0;
-
- // Can we access the file?
- if (ACE_OS::access (filename, R_OK) == -1)
- {
- //ugly hack to send in HTTP_Status_Code::STATUS_NOT_FOUND
- result = ACE_Filecache_Handle::ACE_ACCESS_FAILED;
- this->handler_->transmit_file_error (result);
- return;
- }
-
- ACE_stat stat;
-
- // Can we stat the file?
- if (ACE_OS::stat (filename, &stat) == -1)
- {
- //ugly hack to send HTTP_Status_Code::STATUS_FORBIDDEN
- result = ACE_Filecache_Handle::ACE_STAT_FAILED;
- this->handler_->transmit_file_error (result);
- return;
- }
-
- ssize_t size = stat.st_size;
-
- // Can we open the file?
- ACE_HANDLE handle = ACE_OS::open (filename, O_RDONLY);
- if (handle == ACE_INVALID_HANDLE)
- {
- //ugly hack to send HTTP_Status_Code::STATUS_FORBIDDEN
- result = ACE_Filecache_Handle::ACE_OPEN_FAILED;
- this->handler_->transmit_file_error (result);
- return;
- }
-
- char* f = new char[size];
- auto_ptr<char> file (f);
-
- ACE_OS::read_n (handle, f, size);
-
- ACE_SOCK_Stream stream;
- stream.set_handle (this->handle_);
-
- if ((stream.send_n (header, header_size) == header_size)
- && (stream.send_n (f, size) == size)
- && (stream.send_n (trailer, trailer_size) == trailer_size))
- this->handler_->transmit_file_complete ();
- else
- {
- //ugly hack to default to HTTP_Status_Code::STATUS_INTERNAL_SERVER_ERROR
- result = -1;
- this->handler_->transmit_file_error (result);
- return;
- }
-}
-
-void
-JAWS_Synch_IO_No_Cache::send_confirmation_message (const char *buffer,
- int length)
-{
- this->send_message (buffer, length);
- this->handler_->confirmation_message_complete ();
-}
-
-void
-JAWS_Synch_IO_No_Cache::send_error_message (const char *buffer,
- int length)
-{
- this->send_message (buffer, length);
- this->handler_->error_message_complete ();
-}
-
-void
-JAWS_Synch_IO_No_Cache::send_message (const char *buffer,
- int length)
-{
- ACE_SOCK_Stream stream;
- stream.set_handle (this->handle_);
- stream.send_n (buffer, length);
-}
-
-//-------------------
-
-
// #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
// template class ACE_Singleton<JAWS_VFS, ACE_SYNCH_MUTEX>;
// #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
diff --git a/apps/JAWS/server/IO.h b/apps/JAWS/server/IO.h
index fd5ae0d64b2..95777d11a66 100644
--- a/apps/JAWS/server/IO.h
+++ b/apps/JAWS/server/IO.h
@@ -18,6 +18,9 @@
#ifndef JAWS_IO_H
#define JAWS_IO_H
+class ACE_Message_Block;
+class JAWS_IO_Handler;
+
#include "ace/ACE.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -26,13 +29,6 @@
#include "ace/Asynch_IO.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-class JAWS_IO_Handler;
-
-
class JAWS_IO
// = TITLE
//
@@ -235,62 +231,5 @@ protected:
};
#endif /* ACE_WIN32 */
-
-
-//-------------------Adding SYNCH IO no Caching
-
-class JAWS_Synch_IO_No_Cache : public JAWS_IO
- // = TITLE
- //
- // This class defines the interface for a Synchronous I/O class,
- // however in this class we do not use any caching.
- //
- // = DESCRIPTION
- //
- // Wondering how this is useful?
- // The ACE_Filecache ACE_NOMAP option is broken and even if it were not, there
- // are other use cases in which we want to avoid caching altogether. For example,
- // we use JAWS in conjunction with the CIAO Repository Manager, however the two
- // do not have any explicit knowledge of each other. Therefore if the RM tried
- // to remove a package and its files from disk, its operation would [partially]
- // fail if JAWS still holds some of the files in its cache.
- //
-{
-public:
- JAWS_Synch_IO_No_Cache (void);
-
- ~JAWS_Synch_IO_No_Cache (void);
-
- virtual void handle (ACE_HANDLE h);
- virtual ACE_HANDLE handle (void) const;
-
- void read (ACE_Message_Block& mb, int size);
-
- void transmit_file (const char *filename,
- const char *header,
- int header_size,
- const char *trailer,
- int trailer_size);
-
- void receive_file (const char *filename,
- void *initial_data,
- int initial_data_length,
- int entire_length);
-
- void send_confirmation_message (const char *buffer,
- int length);
-
- void send_error_message (const char *buffer,
- int length);
-
-protected:
- virtual void send_message (const char *buffer,
- int length);
-
- ACE_HANDLE handle_;
-};
-
-//-------------------
-
#endif /* JAWS_IO_H */
diff --git a/apps/JAWS/server/README b/apps/JAWS/server/README
index 27f0a0e3a8d..4fab66d703d 100644
--- a/apps/JAWS/server/README
+++ b/apps/JAWS/server/README
@@ -21,8 +21,6 @@ CONTENTS
4. Acknowledgements
-5. New additions
-
------------
1. Compiling
------------
@@ -201,28 +199,3 @@ James Hu <jxh@cs.wustl.edu>
Tim Harrison For his comments, advice, and
help in designing the IO
mechanism used by JAWS.
-
------------------------
-5. Additions
------------------------
-
-The need arose to have JAWS not perform any file caching. We added this
-functionality and provided a new cmd line option -c with params NO_CACHE/CACHE.
-
-This capability is to be used with the RepositoryManager in CIAO.
-
-In its current design the RepositoryManager (RM) need a collocated HTTP server.
-When RM istalls packages, it unpacks them so that the separate files are accessible to
-ZIP unaware entities like JAWS. JAWS is used to serve the libraries in the package to the
-various deamons that might be interested in them, e.g. the NodeApplicationManager.
-
-The problem with using file caching reveals itself during the deletePackage operation of
-the RM. When the RM attempts to delete a file which was previously accessed via JAWS a
-is currently in the file cache the call fails and the file remains on the filesystem
-indefinitely. If the file is cached with a ACE_NOMAP option is is not stored in a file
-map and it is deleted upon server termination. The OS handles that. Althoguh this might
-or might not be OK (depending on how it scales) there is an additional problem because
-JAWS and the ACE_Filecache_Handle class used do not provide enough functionality to deal
-with the ACE_NOMAP case. I believe that ACE_NOMAP option was probably never used.
-
-To overcome the above problems we added the no caching functionality in JAWS.
diff --git a/apps/JAWS/server/main.cpp b/apps/JAWS/server/main.cpp
index 4f319f02727..dc9d8291549 100644
--- a/apps/JAWS/server/main.cpp
+++ b/apps/JAWS/server/main.cpp
@@ -33,7 +33,7 @@ handler (int)
// JAWS as an ACE Service, as well.
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Service_Config daemon;
diff --git a/apps/JAWS/server/server.mpc b/apps/JAWS/server/server.mpc
index a79e488cf83..1785965f478 100644
--- a/apps/JAWS/server/server.mpc
+++ b/apps/JAWS/server/server.mpc
@@ -2,11 +2,10 @@
// $Id$
project(JAWS) : acelib {
- sharedname = JAWS
+ sharedname = JAWS
dynamicflags = ACE_BUILD_SVC_DLL
requires += ace_filecache
- avoids += uses_wchar
- avoids += ace_for_tao
+ avoids += uses_wchar
Source_Files {
HTTP_Server.cpp
@@ -28,9 +27,9 @@ project(JAWS_server) : aceexe {
libs += JAWS
requires += ace_filecache
avoids += uses_wchar
- avoids += ace_for_tao
Source_Files {
main.cpp
}
}
+
diff --git a/apps/JAWS/server/svc.conf b/apps/JAWS/server/svc.conf
index fdba6ab9c76..5f34c06aaa1 100644
--- a/apps/JAWS/server/svc.conf
+++ b/apps/JAWS/server/svc.conf
@@ -14,7 +14,6 @@
# = SYNCH
# = ASYNCH
# -b backlog value for listen ()
-# -c caching: NO_CACHE or CACHE
#
#
# Thread Pool, 20 unbound threads
@@ -22,10 +21,6 @@
static HTTP_Server "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP"
#
#
-# Start a baseline server without caching
-#static HTTP_Server "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP -c NO_CACHE"
-#
-#
# Thread Pool, 40 threads
#static HTTP_Server "HTTP_Server -p 5432 -n 40 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP -f THR_BOUND"
#
diff --git a/apps/JAWS/stress_testing/benchd.cpp b/apps/JAWS/stress_testing/benchd.cpp
index ff17f669430..c5a06a6c8b2 100644
--- a/apps/JAWS/stress_testing/benchd.cpp
+++ b/apps/JAWS/stress_testing/benchd.cpp
@@ -174,7 +174,7 @@ Handle_Events::serve (char *buf)
static void
parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, "i:u:q");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "i:u:q");
int c;
@@ -205,7 +205,7 @@ handler (int)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Sig_Action sa ((ACE_SignalHandler) handler, SIGINT);
ACE_OS::signal (SIGCLD, SIG_IGN);
@@ -231,7 +231,7 @@ main (int argc, char *argv[])
}
#else
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_ERROR ((LM_ERROR, "error: %s must be run on a platform that support IP multicast\n",
argv[0]));
diff --git a/apps/JAWS/stress_testing/http_tester.cpp b/apps/JAWS/stress_testing/http_tester.cpp
index eb086262317..2a7366fde33 100644
--- a/apps/JAWS/stress_testing/http_tester.cpp
+++ b/apps/JAWS/stress_testing/http_tester.cpp
@@ -124,7 +124,7 @@ int driver(char *id, int total_num, float requests_sec, char *url1, float p1, ch
}
-main(int argc, char **argv)
+ACE_TMAIN(int argc, ACE_TCHAR **argv)
{
// This will set the global scale factor if the ACE_SCALE_FACTOR
// environment variable is set.
diff --git a/apps/JAWS2/JAWS/Cache_Object.h b/apps/JAWS2/JAWS/Cache_Object.h
index 9988379742f..06f442c549f 100644
--- a/apps/JAWS2/JAWS/Cache_Object.h
+++ b/apps/JAWS2/JAWS/Cache_Object.h
@@ -13,9 +13,7 @@
#include "ace/RW_Thread_Mutex.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
// Cache bucket -- use Hash_Bucket to hold cacheable objects.
diff --git a/apps/JAWS2/JAWS/Headers.cpp b/apps/JAWS2/JAWS/Headers.cpp
index a7e77f56a3a..53c4f97523a 100644
--- a/apps/JAWS2/JAWS/Headers.cpp
+++ b/apps/JAWS2/JAWS/Headers.cpp
@@ -1,7 +1,6 @@
/* $Id$ */
#include "JAWS/Headers.h"
-#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_string.h"
diff --git a/apps/JAWS2/JAWS/IO.cpp b/apps/JAWS2/JAWS/IO.cpp
index dba86cbf8f2..ee8a1eb1343 100644
--- a/apps/JAWS2/JAWS/IO.cpp
+++ b/apps/JAWS2/JAWS/IO.cpp
@@ -3,11 +3,9 @@
#include "ace/Message_Block.h"
#include "ace/SOCK_Stream.h"
#include "ace/Filecache.h"
-#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_uio.h"
#include "ace/OS_NS_sys_socket.h"
-#include "ace/Min_Max.h"
#include "JAWS/JAWS.h"
#include "JAWS/Data_Block.h"
@@ -17,8 +15,6 @@
#include "JAWS/IO_Acceptor.h"
#include "JAWS/Filecache.h"
-#include "ace/Asynch_IO.h" //for ACE_Asynch_Write_Stream
-
// #include "HTTP_Helpers.h"
ACE_RCSID(JAWS, IO, "$Id$")
@@ -556,7 +552,7 @@ void
JAWS_Asynch_IO::send_message (JAWS_IO_Handler *ioh,
const char *buffer,
unsigned int length,
- long act)
+ int act)
{
ioh->idle ();
diff --git a/apps/JAWS2/JAWS/IO.h b/apps/JAWS2/JAWS/IO.h
index 840ff327380..c0b167e3cda 100644
--- a/apps/JAWS2/JAWS/IO.h
+++ b/apps/JAWS2/JAWS/IO.h
@@ -18,6 +18,10 @@
#ifndef JAWS_IO_H
#define JAWS_IO_H
+class ACE_Message_Block;
+class JAWS_IO_Handler;
+class JAWS_IO_Acceptor;
+
#include "ace/ACE.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -31,15 +35,6 @@
#include "JAWS/Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
-
-class JAWS_IO_Handler;
-class JAWS_IO_Acceptor;
-
-
-
class JAWS_Export JAWS_IO
// = TITLE
//
@@ -238,7 +233,7 @@ protected:
virtual void send_message (JAWS_IO_Handler *ioh,
const char *buffer,
unsigned int length,
- long act);
+ int act);
};
typedef ACE_Singleton<JAWS_Asynch_IO, ACE_SYNCH_MUTEX>
diff --git a/apps/JAWS2/JAWS/IO_Acceptor.h b/apps/JAWS2/JAWS/IO_Acceptor.h
index e18bcd55c30..78e861ec12e 100644
--- a/apps/JAWS2/JAWS/IO_Acceptor.h
+++ b/apps/JAWS2/JAWS/IO_Acceptor.h
@@ -21,10 +21,8 @@
#include "JAWS/IO_Handler.h"
// Forward declaration.
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Proactor;
class ACE_Reactor;
-ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (JAWS_HAS_THREAD_SAFE_ACCEPT)
typedef ACE_LOCK_SOCK_Acceptor<ACE_SYNCH_NULL_MUTEX> JAWS_IO_SOCK_Acceptor;
diff --git a/apps/JAWS2/JAWS/IO_Handler.h b/apps/JAWS2/JAWS/IO_Handler.h
index 7420a8825c8..ab81bfd42e1 100644
--- a/apps/JAWS2/JAWS/IO_Handler.h
+++ b/apps/JAWS2/JAWS/IO_Handler.h
@@ -40,9 +40,7 @@ class JAWS_Data_Block;
class JAWS_Pipeline_Handler;
class JAWS_Waiter;
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
class JAWS_Export JAWS_Abstract_IO_Handler
// = TITLE
diff --git a/apps/JAWS2/JAWS/Parse_Headers.cpp b/apps/JAWS2/JAWS/Parse_Headers.cpp
index fdf240dbcd7..4f3ff515cb4 100644
--- a/apps/JAWS2/JAWS/Parse_Headers.cpp
+++ b/apps/JAWS2/JAWS/Parse_Headers.cpp
@@ -2,7 +2,6 @@
#include "JAWS/Parse_Headers.h"
#include "ace/OS_NS_string.h"
-#include "ace/Log_Msg.h"
#define ACCESSOR(T,C,x) \
T C :: x (void) const { return this-> x##_; }\
diff --git a/apps/JAWS2/JAWS/Server.cpp b/apps/JAWS2/JAWS/Server.cpp
index 4fbec0cd0f7..c179bc60021 100644
--- a/apps/JAWS2/JAWS/Server.cpp
+++ b/apps/JAWS2/JAWS/Server.cpp
@@ -1,7 +1,5 @@
// $Id$
-#include "ace/config-lite.h"
-#include "ace/OS_NS_string.h"
#include "ace/Get_Opt.h"
#if (ACE_NTRACE != 1)
@@ -142,7 +140,7 @@ JAWS_Server::parse_args (int argc, char *argv[])
int c;
int t = 0;
- ACE_Get_Opt getopt (argc, argv, "t" "p:c:d:n:m:f:r:");
+ ACE_Get_Arg_Opt<char> getopt (argc, argv, "t" "p:c:d:n:m:f:r:");
while ((c = getopt ()) != -1)
switch (c)
{
diff --git a/apps/JAWS2/JAWS/jaws2.mpc b/apps/JAWS2/JAWS/jaws2.mpc
index a7d5754b11a..1079809a40c 100644
--- a/apps/JAWS2/JAWS/jaws2.mpc
+++ b/apps/JAWS2/JAWS/jaws2.mpc
@@ -4,7 +4,7 @@
project(JAWS2) : acelib {
sharedname = JAWS2
dynamicflags = JAWS_BUILD_DLL
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
includes += ..
Source_Files {
Assoc_Array.cpp
diff --git a/apps/JAWS2/main.cpp b/apps/JAWS2/main.cpp
index d1bd6f46dcb..1d3198f8ba8 100644
--- a/apps/JAWS2/main.cpp
+++ b/apps/JAWS2/main.cpp
@@ -26,7 +26,7 @@ static JAWS_HTTP_10_Parse_Task HTTP_Parse;
static JAWS_HTTP_10_Write_Task HTTP_Write;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_OS::signal (SIGCHLD, SIG_IGN);
diff --git a/apps/JAWS3/bench/mkfiles.cpp b/apps/JAWS3/bench/mkfiles.cpp
index 42bc2c969fa..c83b3c2582e 100644
--- a/apps/JAWS3/bench/mkfiles.cpp
+++ b/apps/JAWS3/bench/mkfiles.cpp
@@ -8,9 +8,9 @@
static float gammln (float xx);
static float poidev (float xm);
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt options (argc, argv, "m:s:x:n:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> options (argc, argv, "m:s:x:n:");
// m -- median file size in kB
// x -- maximum file size in kB
// n -- number of files
diff --git a/apps/JAWS3/bench/rqfiles.cpp b/apps/JAWS3/bench/rqfiles.cpp
index e8eae9adc31..6c90f26a8f5 100644
--- a/apps/JAWS3/bench/rqfiles.cpp
+++ b/apps/JAWS3/bench/rqfiles.cpp
@@ -161,7 +161,7 @@ typedef ACE_Select_Reactor_T<ACE_Select_Reactor_Noop_Token>
ACE_Select_NULL_LOCK_Reactor;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Select_NULL_LOCK_Reactor *select_reactor;
select_reactor = new ACE_Select_NULL_LOCK_Reactor;
@@ -173,7 +173,7 @@ main (int argc, char *argv[])
ACE_Reactor::instance ()->register_handler (SIGINT, signal_handler);
ACE_OS::signal (SIGPIPE, SIG_IGN);
- ACE_Get_Opt options (argc, argv, "f:r:n:w:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> options (argc, argv, "f:r:n:w:");
// f -- file list
// r -- request rate in requests per second
diff --git a/apps/JAWS3/http/HTTP_Service_Handler.cpp b/apps/JAWS3/http/HTTP_Service_Handler.cpp
index 56e2d2c7e92..bad847b48ca 100644
--- a/apps/JAWS3/http/HTTP_Service_Handler.cpp
+++ b/apps/JAWS3/http/HTTP_Service_Handler.cpp
@@ -37,7 +37,7 @@ JAWS_HTTP_Service_Handler::close (unsigned long)
int
JAWS_HTTP_Acceptor::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt opt (argc, argv, "p:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> opt (argc, argv, "p:");
unsigned short p = 0;
diff --git a/apps/JAWS3/jaws3/Config_File.cpp b/apps/JAWS3/jaws3/Config_File.cpp
index dcad55003f0..5793aa60dc5 100644
--- a/apps/JAWS3/jaws3/Config_File.cpp
+++ b/apps/JAWS3/jaws3/Config_File.cpp
@@ -263,7 +263,7 @@ void
JAWS_Config_File_Impl::dump (void)
{
JAWS_SYMBOL_TABLE_ITERATOR iter (*this->symbols_);
- JAWS_SYMBOL_TABLE_ENTRY *entry = 0;
+ JAWS_SYMBOL_TABLE_ENTRY *entry;
while (iter.next (entry))
{
diff --git a/apps/JAWS3/jaws3/Reactive_IO.cpp b/apps/JAWS3/jaws3/Reactive_IO.cpp
index ead383efa24..6917832124e 100644
--- a/apps/JAWS3/jaws3/Reactive_IO.cpp
+++ b/apps/JAWS3/jaws3/Reactive_IO.cpp
@@ -1,7 +1,7 @@
// $Id$
#include "ace/ACE.h"
-#include "ace/OS_NS_unistd.h"
+#include "ace/OS.h"
#include "ace/Reactor.h"
#ifndef JAWS_BUILD_DLL
diff --git a/apps/JAWS3/jaws3/Templates.cpp b/apps/JAWS3/jaws3/Templates.cpp
index 4260678418c..4d51c3fab9c 100644
--- a/apps/JAWS3/jaws3/Templates.cpp
+++ b/apps/JAWS3/jaws3/Templates.cpp
@@ -72,7 +72,7 @@ template class ACE_Singleton<JAWS_TPR_Concurrency, ACE_SYNCH_MUTEX>;
template class ACE_Singleton<JAWS_THYBRID_Concurrency, ACE_SYNCH_MUTEX>;
template class ACE_Singleton<JAWS_Concurrency, ACE_SYNCH_MUTEX>;
template class ACE_Singleton<JAWS_Options, ACE_SYNCH_MUTEX>;
-template class ACE_Reactor_Token_T<ACE_Noop_Token>;
+template class ACE_Select_Reactor_Token_T<ACE_Noop_Token>;
template class ACE_Select_Reactor_T<ACE_Select_Reactor_Noop_Token>;
template class ACE_Lock_Adapter<ACE_Select_Reactor_Noop_Token>;
template class ACE_EHHTU_RW;
diff --git a/apps/JAWS3/jaws3/jaws3.mpc b/apps/JAWS3/jaws3/jaws3.mpc
index eaa9ecd0196..39670f1c384 100644
--- a/apps/JAWS3/jaws3/jaws3.mpc
+++ b/apps/JAWS3/jaws3/jaws3.mpc
@@ -5,7 +5,6 @@ project(JAWS3) : acelib {
sharedname = JAWS3
dynamicflags = JAWS_BUILD_DLL
avoids += uses_wchar
- avoids += ace_for_tao
includes += ..
Source_Files {
Asynch_IO.cpp
@@ -71,7 +70,6 @@ project(JAWS3) : acelib {
project(JAWS3_server) : aceexe {
avoids += uses_wchar
- avoids += ace_for_tao
includes += ..
exename = main
after += JAWS3
diff --git a/apps/JAWS3/jaws3/main.cpp b/apps/JAWS3/jaws3/main.cpp
index 4b5705abc2f..9ffa504a291 100644
--- a/apps/JAWS3/jaws3/main.cpp
+++ b/apps/JAWS3/jaws3/main.cpp
@@ -9,7 +9,7 @@
#include "jaws3/Signal_Task.h"
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_REACTOR_INSTANCE_INIT;
diff --git a/apps/JAWS3/small/SS_Service_Handler.cpp b/apps/JAWS3/small/SS_Service_Handler.cpp
index 627996a7b07..80acf90c725 100644
--- a/apps/JAWS3/small/SS_Service_Handler.cpp
+++ b/apps/JAWS3/small/SS_Service_Handler.cpp
@@ -37,7 +37,7 @@ TeraSS_Service_Handler::close (unsigned long)
int
TeraSS_Acceptor::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt opt (argc, argv, "p:");
+ ACE_Get_Arg_Opt<ACE_TCHAR> opt (argc, argv, "p:");
unsigned short p = 0;
diff --git a/apps/drwho/ChangeLog b/apps/drwho/ChangeLog
index 2d2b707b4e0..9f36a64b805 100644
--- a/apps/drwho/ChangeLog
+++ b/apps/drwho/ChangeLog
@@ -1,68 +1,39 @@
-Thu Jan 5 00:43:30 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-whitespace.
-
-Wed Jan 4 22:57:37 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Added "Local Variables" section defining "add-log-time-format"
- to a really ugly lambda expression that formats changelog
- timestamps in UTC and works with both GNU Emacs and XEmacs.
-
-Mon Nov 28 07:24:01 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * drwho.mpc:
-
- Added missing "avoid += ace_for_tao" for "server" project.
-
-Sat Nov 26 06:58:23 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
-
- * drwho.mpc:
-
- Added "avoids += ace_for_tao" since this project requires
- features of ACE not found in the ace_for_tao subset. Addresses
- build errors.
-
Sat Apr 30 08:16:42 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * Select_Manager.cpp:
+ * Select_Manager.cpp:
- Fixed syntax error due to missing ACE_RCSID macro definition.
+ Fixed syntax error due to missing ACE_RCSID macro definition.
Fri Apr 29 23:54:07 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
- * Comm_Manager.h:
- * Select_Manager.h:
+ * Comm_Manager.h:
+ * Select_Manager.h:
- Added virtual destructor to silence g++ 4.0 warnings.
+ Added virtual destructor to silence g++ 4.0 warnings.
- * Comm_Manager.cpp:
- * Select_Manager.cpp:
+ * Comm_Manager.cpp:
+ * Select_Manager.cpp:
- New files containing virtual destructor definition.
+ New files containing virtual destructor definition.
- * Makefile.am:
- * drwho.mpc:
+ * Makefile.am:
+ * drwho.mpc:
- Added new Comm_Manager.cpp and Select_Manager.cpp files to the
- source file list.
+ Added new Comm_Manager.cpp and Select_Manager.cpp files to the
+ source file list.
Sat Feb 17 08:33:06 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
- * File_Manager.cpp: Fixed several unreachable statements.
+ * File_Manager.cpp: Fixed several unreachable statements.
Thu Feb 15 06:00:12 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
- * server.cpp: Renamed tstamp to time_stamp to avoid conflicts with
- the pre-processor on the Forte 5.2 compiler. Thanks to Mike
- Curtis for reporting this.
+ * server.cpp: Renamed tstamp to time_stamp to avoid conflicts with
+ the pre-processor on the Forte 5.2 compiler. Thanks to Mike
+ Curtis for reporting this.
- * File_Manager.cpp: Fixed "unreachable code" errors reported by
- Compaq C++.
+ * File_Manager.cpp: Fixed "unreachable code" errors reported by
+ Compaq C++.
Thu Nov 16 17:58:10 2000 Carlos O'Ryan <coryan@uci.edu>
@@ -391,9 +362,3 @@ Wed Sep 4 10:14:51 1991 Douglas C. Schmidt (schmidt at net4.ics.uci.edu)
* Add timeout stuff in case hosts are down!
* Talk to support about making a standard daemon.
* Fix the problem with returning the number of friends.
-
-Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
-End:
diff --git a/apps/drwho/Options.cpp b/apps/drwho/Options.cpp
index 076623c0e03..3a074ffc857 100644
--- a/apps/drwho/Options.cpp
+++ b/apps/drwho/Options.cpp
@@ -79,7 +79,7 @@ Options::set_options (int argc, char *argv[])
int add_default_hosts = 1;
Options::program_name = argv[0];
- ACE_Get_Opt getopt (argc, argv, "?aA:bdF:f:hH:Llp:rRsSt:w:");
+ ACE_Get_Arg_Opt<char> getopt (argc, argv, "?aA:bdF:f:hH:Llp:rRsSt:w:");
while ((c = getopt ()) != -1)
{
diff --git a/apps/drwho/client.cpp b/apps/drwho/client.cpp
index 5b8f4fcf8ab..c2443720b4f 100644
--- a/apps/drwho/client.cpp
+++ b/apps/drwho/client.cpp
@@ -42,7 +42,7 @@ make_client (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
Options::set_options (argc, argv);
diff --git a/apps/drwho/drwho.mpc b/apps/drwho/drwho.mpc
index ca623976a94..75362c9be14 100644
--- a/apps/drwho/drwho.mpc
+++ b/apps/drwho/drwho.mpc
@@ -3,7 +3,7 @@
project(*-client) : aceexe {
requires += rwho
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
Source_Files {
Comm_Manager.cpp
Select_Manager.cpp
@@ -49,7 +49,7 @@ project(*-client) : aceexe {
project(*-server) : aceexe {
requires += rwho
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
Source_Files {
Comm_Manager.cpp
Select_Manager.cpp
diff --git a/apps/drwho/server.cpp b/apps/drwho/server.cpp
index aa4bea1349b..09bbe570f00 100644
--- a/apps/drwho/server.cpp
+++ b/apps/drwho/server.cpp
@@ -86,7 +86,7 @@ do_drwho (SMR_Server &smr_server)
// debugging!
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_OS::signal (SIGTERM, (ACE_SignalHandler)exit_server);
ACE_OS::signal (SIGINT, (ACE_SignalHandler)exit_server);
diff --git a/apps/gperf/ChangeLog b/apps/gperf/ChangeLog
index 600cde48a9d..fd084d500d3 100644
--- a/apps/gperf/ChangeLog
+++ b/apps/gperf/ChangeLog
@@ -1,28 +1,3 @@
-Tue Mar 14 21:08:12 UTC 2006 jiang,shanshan <shanshan.jiang@vanderbilt.edu>
-
- * apps/gperf/src/Gen_Perf.cpp
- * apps/gperf/src/Key_List.cpp
- * apps/gperf/src/List_Node.cpp
- * apps/gperf/src/Options.cpp
- Updated these files to solve the warnings when setting up "VC level 4 warnings"
- on Windows. These warnings include "unreachable code", "assignment within
- conditional expression", "conversion from some type to another type, possible
- loss of data", "local variable may be used without having been initialized" and
- so on.
- Thanks to Lukas Gruetzmacher <gruetzmacher at ais-dresden dot de> for
- motivating the fix to these "VC level 4 warnings".
-
-Wed Jan 4 22:55:24 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-
- * ChangeLog:
-
- Untabify.
- Delete-trailing-whitespace.
-
- Added "Local Variables" section defining "add-log-time-format"
- to a really ugly lambda expression that formats changelog
- timestamps in UTC and works with both GNU Emacs and XEmacs.
-
Mon Oct 3 13:52:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
* src/Key_List.cpp:
@@ -2098,9 +2073,3 @@ Thu Jan 5 22:46:34 1989 Doug Schmidt (schmidt at siam.ics.uci.edu)
* Added a check in Key_List::Output for the special case where
the keys used are 1,$. It is possible to generate more
efficient C code in this case.
-
-Local Variables:
-mode: change-log
-add-log-time-format: (lambda () (progn (setq tz (getenv "TZ")) (set-time-zone-rule "UTC") (setq time (format-time-string "%a %b %e %H:%M:%S %Z %Y" (current-time))) (set-time-zone-rule tz) time))
-indent-tabs-mode: nil
-End:
diff --git a/apps/gperf/Makefile.am b/apps/gperf/Makefile.am
index 36574c83758..9f74ede4861 100644
--- a/apps/gperf/Makefile.am
+++ b/apps/gperf/Makefile.am
@@ -6,23 +6,9 @@
## this file will be lost the next time it is generated.
##
## MPC Command:
-## ./bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/./MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/./MPC/templates -type automake -noreldefs ACE.mwc
-
+## /acebuilds/ACE_wrappers-repository/bin/mwc.pl -include /acebuilds/MPC/config -include /acebuilds/MPC/templates -feature_file /acebuilds/ACE_wrappers-repository/local.features -noreldefs -type automake -exclude build,Kokyu
SUBDIRS = \
- . \
src \
tests
-## Makefile.gperf_docs.am
-
-man_MANS = gperf.1
-
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/apps/gperf/gperf.mpc b/apps/gperf/gperf.mpc
deleted file mode 100644
index 446f0f4c0a3..00000000000
--- a/apps/gperf/gperf.mpc
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project (gperf_docs) : man {
-
- Man_Files {
- gperf.1
- }
-}
diff --git a/apps/gperf/src/Gen_Perf.cpp b/apps/gperf/src/Gen_Perf.cpp
index 88c362e0218..da925e89b63 100644
--- a/apps/gperf/src/Gen_Perf.cpp
+++ b/apps/gperf/src/Gen_Perf.cpp
@@ -102,7 +102,7 @@ Gen_Perf::sort_set (char *union_set, int len)
curr--)
union_set[curr] = union_set[curr - 1];
- union_set[curr] = static_cast<char> (tmp);
+ union_set[curr] = tmp;
}
}
diff --git a/apps/gperf/src/Key_List.cpp b/apps/gperf/src/Key_List.cpp
index e954c075e8a..61b91f403c7 100644
--- a/apps/gperf/src/Key_List.cpp
+++ b/apps/gperf/src/Key_List.cpp
@@ -137,7 +137,7 @@ Key_List::special_input (char delimiter)
delete [] buf;
buf = temp;
}
- buf[i] = static_cast<char> (c);
+ buf[i] = c;
}
return 0;
@@ -256,7 +256,7 @@ Key_List::read_keys (void)
delimiter))),
-1);
for (temp = this->head;
- (0 != (buffer = input.read ('\n')))
+ (buffer = input.read ('\n'))
&& ACE_OS::strcmp (buffer, "%%");
temp = temp->next)
{
diff --git a/apps/gperf/src/List_Node.cpp b/apps/gperf/src/List_Node.cpp
index e3ef88ed7e0..38c12201403 100644
--- a/apps/gperf/src/List_Node.cpp
+++ b/apps/gperf/src/List_Node.cpp
@@ -42,7 +42,7 @@ List_Node::sort (char *base, int len)
{
char curr, tmp;
- for (curr = static_cast<char> (i + 1), tmp = base[curr];
+ for (curr = i + 1, tmp = base[curr];
curr > 0 && tmp < base[curr-1];
curr--)
base[curr] = base[curr - 1];
@@ -81,7 +81,7 @@ List_Node::List_Node (char *k, int len)
if (option[STRCASECMP])
for (char *p = k; *p; p++)
if (isupper (*p))
- *p = static_cast<char> (tolower (*p));
+ *p = tolower (*p);
if (option[ALLCHARS]) // Use all the character position in the KEY.
for (; *k; k++, ptr++)
diff --git a/apps/gperf/src/Options.cpp b/apps/gperf/src/Options.cpp
index 4251d7c7c39..7e2bd2cce77 100644
--- a/apps/gperf/src/Options.cpp
+++ b/apps/gperf/src/Options.cpp
@@ -129,7 +129,7 @@ Options::key_sort (char *base, int len)
// Oh no, a duplicate!!!
return 0;
- base[curr] = static_cast<char> (tmp);
+ base[curr] = tmp;
}
return 1;
@@ -261,7 +261,7 @@ Options::parse_args (int argc, char *argv[])
if (ACE_LOG_MSG->open (argv[0]) == -1)
return -1;
- ACE_Get_Opt getopt (argc, argv, "abBcCdDe:Ef:F:gGhH:i:IJj:k:K:lL:mMnN:oOprs:S:tTvVZ:");
+ ACE_Get_Arg_Opt<char> getopt (argc, argv, "abBcCdDe:Ef:F:gGhH:i:IJj:k:K:lL:mMnN:oOprs:S:tTvVZ:");
int option_char;
argc_ = argc;
@@ -523,7 +523,7 @@ Options::parse_args (int argc, char *argv[])
usage),
-1);
else
- *l_key_pos = static_cast<char> (value);
+ *l_key_pos = value;;
*l_key_pos = EOS;
diff --git a/apps/gperf/src/gperf.cpp b/apps/gperf/src/gperf.cpp
index de4ca87430d..c6a838e2874 100644
--- a/apps/gperf/src/gperf.cpp
+++ b/apps/gperf/src/gperf.cpp
@@ -38,7 +38,7 @@ ACE_RCSID(src, gperf, "$Id$")
#include "ace/OS_main.h"
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
struct tm *tm;
time_t clock;
@@ -75,7 +75,7 @@ main (int argc, char *argv[])
}
#else /* ! ACE_HAS_GPERF */
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
diff --git a/apps/gperf/tests/tests.mpc b/apps/gperf/tests/tests.mpc
index f5ea29989fe..de8c7b9e0a8 100644
--- a/apps/gperf/tests/tests.mpc
+++ b/apps/gperf/tests/tests.mpc
@@ -2,6 +2,7 @@
// $Id$
project(cinset): gperf_test {
+ avoids += uses_wchar
exename = cout
verbatim(gnuace, bottom) {
@@ -26,6 +27,7 @@ project(cinset): gperf_test {
}
project(adainset): gperf_test {
+ avoids += uses_wchar
exename = aout
verbatim(gnuace, bottom) {
@@ -50,6 +52,7 @@ project(adainset): gperf_test {
}
project(cppinset): gperf_test {
+ avoids += uses_wchar
exename = cppout
verbatim(gnuace, bottom) {
@@ -74,6 +77,7 @@ project(cppinset): gperf_test {
}
project(preinset): gperf_test {
+ avoids += uses_wchar
exename = preout
verbatim(gnuace, bottom) {
@@ -98,6 +102,7 @@ project(preinset): gperf_test {
}
project(m3inset): gperf_test {
+ avoids += uses_wchar
exename = m3out
verbatim(gnuace, bottom) {
@@ -122,6 +127,7 @@ project(m3inset): gperf_test {
}
project(pinset): gperf_test {
+ avoids += uses_wchar
exename = pout
verbatim(gnuace, bottom) {
@@ -146,6 +152,7 @@ project(pinset): gperf_test {
}
project(iinset): gperf_test {
+ avoids += uses_wchar
exename = iout
verbatim(gnuace, bottom) {
@@ -170,6 +177,7 @@ project(iinset): gperf_test {
}
project(iinset2): gperf_test {
+ avoids += uses_wchar
exename = iout2
after += iinset
@@ -196,6 +204,7 @@ project(iinset2): gperf_test {
}
project(tinset): gperf_test {
+ avoids += uses_wchar
exename = tout
verbatim(gnuace, bottom) {
@@ -220,6 +229,7 @@ project(tinset): gperf_test {
}
project(taoinset): gperf_test {
+ avoids += uses_wchar
exename = taoout
verbatim(gnuace, bottom) {
diff --git a/apps/mkcsregdb/mkcsregdb.cpp b/apps/mkcsregdb/mkcsregdb.cpp
index 388e9212dec..07b6eed28e6 100644
--- a/apps/mkcsregdb/mkcsregdb.cpp
+++ b/apps/mkcsregdb/mkcsregdb.cpp
@@ -243,7 +243,7 @@ csdb_generator::init_output (const char *srcfile)
fprintf (outf_," * mkcsregdb. The source is in $ACE_ROOT/apps/mkcsregdb. It will generate a new\n");
fprintf (outf_," * copy of this file, with the registry_db_ array properly initialized.\n */\n");
fprintf (outf_,"\n#include \"ace/Codeset_Registry.h\"\n\n%s\n%s\n{\n",
- "ACE_Codeset_Registry::registry_entry const",
+ "ACE_Codeset_Registry::registry_entry",
"ACE_Codeset_Registry::registry_db_[] =");
return 0;
}
@@ -286,7 +286,7 @@ csdb_generator::fini_output (const char *tgt)
sprintf (target,"%s/ace/%s",ace_src_,tgt);
if (count_ == 0)
write_dummy_entry();
- fprintf (outf_,"\n};\n\nsize_t const ACE_Codeset_Registry::num_registry_entries_ = %d;\n\n",count_);
+ fprintf (outf_,"\n};\n\nsize_t ACE_Codeset_Registry::num_registry_entries_ = %d;\n\n",count_);
fclose (outf_);
ACE_stat buf;
if (ACE_OS::stat (target,&buf) == 0)
@@ -312,7 +312,7 @@ csdb_generator::fini_output (const char *tgt)
}
int
-main (int argc, char ** argv)
+ACE_TMAIN (int argc, ACE_TCHAR ** argv)
{
ACE_CString srcname;
if (argc > 1)
diff --git a/apps/soreduce/Library.cpp b/apps/soreduce/Library.cpp
index 6b5b2944ce2..b1b0c5b3e59 100644
--- a/apps/soreduce/Library.cpp
+++ b/apps/soreduce/Library.cpp
@@ -238,13 +238,13 @@ Library::load_modules ()
ACE_CString subdir = path_ + "/.shobj";
struct dirent **dent;
- num_modules_ = ACE_OS::scandir(ACE_TEXT_CHAR_TO_TCHAR (subdir.c_str()),
+ num_modules_ = ACE_OS::scandir(ACE_TEXT_TO_TCHAR_IN (subdir.c_str()),
&dent,selector,comparator);
if (num_modules_ > 0) {
modules_ = new Obj_Module * [num_modules_];
for (int i = 0; i < num_modules_; i++) {
- ACE_CString ent_name (ACE_TEXT_ALWAYS_CHAR (dent[i]->d_name));
+ ACE_CString ent_name (ACE_TEXT_TO_CHAR_IN (dent[i]->d_name));
modules_[i] = new Obj_Module(ent_name);
modules_[i]->add_source (ACE_CString(subdir + "/" + ent_name).c_str());
ACE_OS::free(dent[i]);
@@ -302,7 +302,7 @@ Library::write_export_list (int show_ref_counts)
if (show_ref_counts) {
ACE_DEBUG ((LM_DEBUG, "Making directory %s\n",rcpath.c_str()));
- if (ACE_OS::mkdir(ACE_TEXT_CHAR_TO_TCHAR (rcpath.c_str())) == -1 &&
+ if (ACE_OS::mkdir(ACE_TEXT_TO_TCHAR_IN (rcpath.c_str())) == -1 &&
errno != EEXIST)
ACE_ERROR ((LM_ERROR, "%p\n", "mkdir"));
}
diff --git a/apps/soreduce/Obj_Module.h b/apps/soreduce/Obj_Module.h
index 1836b75e7ec..1f74031a719 100644
--- a/apps/soreduce/Obj_Module.h
+++ b/apps/soreduce/Obj_Module.h
@@ -22,9 +22,7 @@
#include "Sig_List.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Obj_Module {
public:
diff --git a/apps/soreduce/soreduce.cpp b/apps/soreduce/soreduce.cpp
index 4ac9e99aa16..b155ef24cef 100644
--- a/apps/soreduce/soreduce.cpp
+++ b/apps/soreduce/soreduce.cpp
@@ -32,7 +32,7 @@
ACE_RCSID (src, soreduce, "$Id$")
int
-main (int argc, char ** argv)
+ACE_TMAIN (int argc, ACE_TCHAR ** argv)
{
SO_Group group;
diff --git a/apps/soreduce/soreduce.mpc b/apps/soreduce/soreduce.mpc
index 2fe7cc27101..18f2e917796 100644
--- a/apps/soreduce/soreduce.mpc
+++ b/apps/soreduce/soreduce.mpc
@@ -1,7 +1,7 @@
// $Id$
project(soreduce) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = soreduce
Source_Files {
Signature.cpp
diff --git a/bin/ChangeLogEditor/CVSFileLocator.pm b/bin/ChangeLogEditor/CVSFileLocator.pm
deleted file mode 100644
index d5cc9ff5cbe..00000000000
--- a/bin/ChangeLogEditor/CVSFileLocator.pm
+++ /dev/null
@@ -1,117 +0,0 @@
-package CVSFileLocator;
-
-# ************************************************************
-# Description : Use CVS to determine the list of modified files.
-# Author : Chad Elliott
-# Create Date : 11/29/2005
-# ************************************************************
-
-# ************************************************************
-# Pragmas
-# ************************************************************
-
-use strict;
-use FileHandle;
-
-use FileLocator;
-
-use vars qw(@ISA);
-@ISA = qw(FileLocator);
-
-# ************************************************************
-# Subroutine Section
-# ************************************************************
-
-sub locate {
- my($self) = shift;
- my(@dirs) = @_;
- my($fh) = new FileHandle();
- my(@modified) = ();
- my(@removed) = ();
- my(@conflicts) = ();
- my(@unknown) = ();
- my($cvsroot) = $self->obtainCVSROOT();
- my($nul) = ($^O eq 'MSWin32' ? 'nul' : '/dev/null');
-
- if (open($fh, 'cvs -q ' . (defined $cvsroot ? "-d $cvsroot " : '') .
- "-n update @dirs 2> $nul |")) {
- while(<$fh>) {
- my($line) = $_;
- if ($line =~ /^[AM]\s+(.*)/) {
- push(@modified, $1);
- }
- elsif ($line =~ /^[R]\s+(.*)/) {
- push(@removed, $1);
- }
- elsif ($line =~ /^[C]\s+(.*)/) {
- push(@conflicts, $1);
- }
- elsif ($line =~ /^[\?]\s+(.*)/) {
- push(@unknown, $1);
- }
- }
- close($fh);
- }
- return \@modified, \@removed, \@conflicts, \@unknown;
-}
-
-
-sub obtainCVSROOT {
- my($self) = shift;
- my($fh) = new FileHandle();
- my($croot) = undef;
-
- if (open($fh, 'CVS/Root')) {
- while(<$fh>) {
- my($line) = $_;
- $line =~ s/\s+$//;
- if ($line =~ /^:pserver/ || $line =~ /^:ext/) {
- if (defined $ENV{CVSROOT} && $line eq $ENV{CVSROOT}) {
- last;
- }
- else {
- my($check) = $line;
- $check =~ s/:\w+\@/:\@/;
- $check =~ s/\.\w+\.\w+:/:/;
- my($clen) = length($check);
- foreach my $key (keys %ENV) {
- my($echeck) = $ENV{$key};
- $echeck =~ s/:\w+\@/:\@/;
- $echeck =~ s/\.\w+\.\w+:/:/;
- if ($check eq $echeck) {
- $croot = $ENV{$key};
- last;
- }
- else {
- my($len) = length($echeck);
- if ($len > 0 &&
- substr($check, $clen - $len, $len) eq $echeck) {
- $croot = $ENV{$key};
- last;
- }
- }
- }
- if (defined $croot) {
- last;
- }
- }
- if (!defined $croot) {
- $croot = $line;
- }
- }
- else {
- $croot = $line;
- last;
- }
- }
- close($fh);
- }
- else {
- $croot = $ENV{CVSROOT};
- }
-
- return $croot;
-}
-
-
-1;
diff --git a/bin/ChangeLogEditor/ChangeLogEdit.pm b/bin/ChangeLogEditor/ChangeLogEdit.pm
index b7831ae2e5b..16587eb03dc 100644
--- a/bin/ChangeLogEditor/ChangeLogEdit.pm
+++ b/bin/ChangeLogEditor/ChangeLogEdit.pm
@@ -95,8 +95,8 @@ sub edit {
}
}
else {
- $error = "Either there are no modified/removed files files or " .
- "there is a revision\ncontrol system problem.";
+ $error = "Unable to generate a list of modified files\n" .
+ 'Could this be a cvs problem?';
}
}
else {
diff --git a/bin/ChangeLogEditor/ChangeLogEntry.pm b/bin/ChangeLogEditor/ChangeLogEntry.pm
index 2028dec1874..12675cf5d1a 100644
--- a/bin/ChangeLogEditor/ChangeLogEntry.pm
+++ b/bin/ChangeLogEditor/ChangeLogEntry.pm
@@ -13,7 +13,7 @@ package ChangeLogEntry;
use strict;
use File::Basename;
-use FileLocatorFactory;
+use FileLocator;
# ************************************************************
# Subroutine Section
@@ -83,12 +83,12 @@ sub sortFileList {
sub create {
my($self) = shift;
my(@dirs) = @_;
- my($fl) = FileLocatorFactory::create();
+ my($fl) = new FileLocator();
my($modif,
$remov,
$confl,
$unknown) = $fl->locate(@dirs);
- my($entry) = scalar(gmtime());
+ my($entry) = scalar(localtime());
if (defined $$confl[0]) {
$entry = "ERROR: The following files have conflicts:\n";
@@ -99,9 +99,8 @@ sub create {
else {
my($prefix) = ' * ';
- ## Correct the timezone (if there is any)
- my($tz) = 'UTC';
- $entry =~ s/(:\d\d\s+)(.*)(\d\d\d\d)$/$1$tz $3/;
+ ## Remove the timezone
+ $entry =~ s/(:\d\d\s+)(.*)(\d\d\d\d)$/$1$3/;
## Add the name and email address
$entry .= " $self->{'name'} <$self->{'email'}>\n\n";
diff --git a/bin/ChangeLogEditor/FileLocator.pm b/bin/ChangeLogEditor/FileLocator.pm
index 7b768863a22..2d4e8c0b8fc 100644
--- a/bin/ChangeLogEditor/FileLocator.pm
+++ b/bin/ChangeLogEditor/FileLocator.pm
@@ -1,7 +1,7 @@
package FileLocator;
# ************************************************************
-# Description : Base class for file locators.
+# Description : Use CVS to determine the list of modified files.
# Author : Chad Elliott
# Create Date : 6/18/2002
# ************************************************************
@@ -28,12 +28,93 @@ sub new {
sub locate {
my($self) = shift;
my(@dirs) = @_;
+ my($fh) = new FileHandle();
my(@modified) = ();
my(@removed) = ();
my(@conflicts) = ();
my(@unknown) = ();
+ my($cvsroot) = $self->obtainCVSROOT();
+ my($nul) = ($^O eq 'MSWin32' ? 'nul' : '/dev/null');
+
+ if (open($fh, 'cvs -q ' . (defined $cvsroot ? "-d $cvsroot " : '') .
+ "-n update @dirs 2> $nul |")) {
+ while(<$fh>) {
+ my($line) = $_;
+ if ($line =~ /^[AM]\s+(.*)/) {
+ push(@modified, $1);
+ }
+ elsif ($line =~ /^[R]\s+(.*)/) {
+ push(@removed, $1);
+ }
+ elsif ($line =~ /^[C]\s+(.*)/) {
+ push(@conflicts, $1);
+ }
+ elsif ($line =~ /^[\?]\s+(.*)/) {
+ push(@unknown, $1);
+ }
+ }
+ close($fh);
+ }
return \@modified, \@removed, \@conflicts, \@unknown;
}
+sub obtainCVSROOT {
+ my($self) = shift;
+ my($fh) = new FileHandle();
+ my($croot) = undef;
+
+ if (open($fh, 'CVS/Root')) {
+ while(<$fh>) {
+ my($line) = $_;
+ $line =~ s/\s+$//;
+ if ($line =~ /^:pserver/ || $line =~ /^:ext/) {
+ if (defined $ENV{CVSROOT} && $line eq $ENV{CVSROOT}) {
+ last;
+ }
+ else {
+ my($check) = $line;
+ $check =~ s/:\w+\@/:\@/;
+ $check =~ s/\.\w+\.\w+:/:/;
+ my($clen) = length($check);
+ foreach my $key (keys %ENV) {
+ my($echeck) = $ENV{$key};
+ $echeck =~ s/:\w+\@/:\@/;
+ $echeck =~ s/\.\w+\.\w+:/:/;
+ if ($check eq $echeck) {
+ $croot = $ENV{$key};
+ last;
+ }
+ else {
+ my($len) = length($echeck);
+ if ($len > 0 &&
+ substr($check, $clen - $len, $len) eq $echeck) {
+ $croot = $ENV{$key};
+ last;
+ }
+ }
+ }
+ if (defined $croot) {
+ last;
+ }
+ }
+ if (!defined $croot) {
+ $croot = $line;
+ }
+ }
+ else {
+ $croot = $line;
+ last;
+ }
+ }
+ close($fh);
+ }
+ else {
+ $croot = $ENV{CVSROOT};
+ }
+
+ return $croot;
+}
+
+
1;
diff --git a/bin/ChangeLogEditor/FileLocatorFactory.pm b/bin/ChangeLogEditor/FileLocatorFactory.pm
deleted file mode 100644
index bbd4652cdc3..00000000000
--- a/bin/ChangeLogEditor/FileLocatorFactory.pm
+++ /dev/null
@@ -1,33 +0,0 @@
-package FileLocatorFactory;
-
-# ************************************************************
-# Description : Create FileLocator objects.
-# Author : Chad Elliott
-# Create Date : 11/29/2005
-# ************************************************************
-
-# ************************************************************
-# Pragmas
-# ************************************************************
-
-use strict;
-
-use CVSFileLocator;
-use SVNFileLocator;
-
-# ************************************************************
-# Subroutine Section
-# ************************************************************
-
-sub create {
- switch: {
- -d 'CVS' && do { return new CVSFileLocator(); };
- -d '.svn' && do { return new SVNFileLocator(); };
- print STDERR "WARNING: Unsupported revision control protocol\n";
- }
-
- return new FileLocator();
-}
-
-
-1;
diff --git a/bin/ChangeLogEditor/SVNFileLocator.pm b/bin/ChangeLogEditor/SVNFileLocator.pm
deleted file mode 100644
index 246b9dc9c7f..00000000000
--- a/bin/ChangeLogEditor/SVNFileLocator.pm
+++ /dev/null
@@ -1,53 +0,0 @@
-package SVNFileLocator;
-
-# ************************************************************
-# Description : Use SVN to determine the list of modified files.
-# Author : Chad Elliott
-# Create Date : 11/29/2005
-# ************************************************************
-
-# ************************************************************
-# Pragmas
-# ************************************************************
-
-use strict;
-use FileHandle;
-
-use FileLocator;
-
-use vars qw(@ISA);
-@ISA = qw(FileLocator);
-
-# ************************************************************
-# Subroutine Section
-# ************************************************************
-
-sub locate {
- my($self) = shift;
- my(@dirs) = @_;
- my($fh) = new FileHandle();
- my(@modified) = ();
- my(@removed) = ();
- my(@conflicts) = ();
- my(@unknown) = ();
- my($nul) = ($^O eq 'MSWin32' ? 'nul' : '/dev/null');
-
- if (open($fh, "svn diff @dirs 2> $nul |")) {
- while(<$fh>) {
- my($line) = $_;
- if ($line =~ /^Index:\s+(.*)/) {
- if (-r $1) {
- push(@modified, $1);
- }
- else {
- push(@removed, $1);
- }
- }
- }
- close($fh);
- }
- return \@modified, \@removed, \@conflicts, \@unknown;
-}
-
-
-1;
diff --git a/bin/DependencyGenerator/GNUObjectGenerator.pm b/bin/DependencyGenerator/GNUObjectGenerator.pm
index a7c5bdbf5ef..a1058f05da8 100644
--- a/bin/DependencyGenerator/GNUObjectGenerator.pm
+++ b/bin/DependencyGenerator/GNUObjectGenerator.pm
@@ -22,16 +22,16 @@ use vars qw(@ISA);
sub process {
my($noext) = $_[1];
- my(@objects) = ();
+ my($objects) = [];
$noext =~ s/\.[^\.]+$//o;
foreach my $dirs (qw(VDIR VSHDIR)) {
foreach my $ext (qw(SOEXT OBJEXT)) {
- push(@objects, '$('.$dirs.')'.$noext.'.$('.$ext.')');
+ push @{$objects}, '$('.$dirs.')'.$noext.'.$('.$ext.')';
}
}
- return \@objects;
+ return $objects;
}
diff --git a/bin/DependencyGenerator/MakeObjectGenerator.pm b/bin/DependencyGenerator/MakeObjectGenerator.pm
index 67e5cf174b8..5bc4c3d8edd 100644
--- a/bin/DependencyGenerator/MakeObjectGenerator.pm
+++ b/bin/DependencyGenerator/MakeObjectGenerator.pm
@@ -22,7 +22,7 @@ use vars qw(@ISA);
sub process {
my($noext) = $_[1];
- my(@objects) = ();
+ my($objects) = [];
my(@exts) = ('o');
my(@dirs) = (defined $ENV{VDIR} ? $ENV{VDIR} : '');
$noext =~ s/\.[^\.]+$//o;
@@ -36,11 +36,11 @@ sub process {
foreach my $dirs (@dirs) {
foreach my $ext (@exts) {
- push(@objects, "$dirs$noext.$ext");
+ push(@$objects, "$dirs$noext.$ext");
}
}
- return \@objects;
+ return $objects;
}
diff --git a/bin/FOCUS/ChangeLog b/bin/FOCUS/ChangeLog
index b5323e5e749..30ac9d1bef6 100644
--- a/bin/FOCUS/ChangeLog
+++ b/bin/FOCUS/ChangeLog
@@ -1,18 +1,3 @@
-Fri Nov 18 17:05:49 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-
- * specializations/Reactor_Family/Select_Reactor_ST.spl:
- * specializations/Reactor_Family/Select_Reactor_MT.spl:
-
- Reverted the include file in ace/Select_Reactor_T.inl as g++ 4.0
- seems to balk when this is not there. This does not seem to
- happen with g++ 3.2 or later versions
-
-Thu Oct 27 09:47:32 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
-
- * specializations/iiop.spl:
-
- Updated specializations file based on changes made to ACE+TAO
-
Thu Sep 29 15:57:36 2005 Arvind S. Krishna <arvindk@dre.vanderbilt.edu>
* FOCUS.pl:
diff --git a/bin/FOCUS/specializations/Protocol_Family/IIOP/iiop.spl b/bin/FOCUS/specializations/Protocol_Family/IIOP/iiop.spl
index d0da22a42f9..c209dc90f6c 100644
--- a/bin/FOCUS/specializations/Protocol_Family/IIOP/iiop.spl
+++ b/bin/FOCUS/specializations/Protocol_Family/IIOP/iiop.spl
@@ -316,8 +316,7 @@ TAO_Connection_Handler::TAO_Connection_Handler (
// Put ourselves in the connection wait state as soon as we get
// created
- this->state_changed (TAO_LF_Event::LFS_CONNECTION_WAIT,
- this->orb_core_->leader_follower ());
+ this->state_changed (TAO_LF_Event::LFS_CONNECTION_WAIT);
}
</data>
</add>
@@ -431,6 +430,7 @@ TAO_Connection_Handler::TAO_Connection_Handler (
<substitute match-line="yes">
<search>: TAO_Acceptor \(IOP::TAG_INTERNET_IOP\),</search>
<replace>: tag_ (IOP::TAG_INTERNET_IOP),
+ lite_flag_ (0)
</replace>
</substitute>
@@ -708,6 +708,7 @@ TAO_Connection_Handler::TAO_Connection_Handler (
<search>: TAO_Connector \(IOP::TAG_INTERNET_IOP\)</search>
<replace>: active_connect_strategy_ (0)
, tag_ (IOP::TAG_INTERNET_IOP)
+ , lite_flag_ (0)
, orb_core_ (0)
</replace>
</substitute>
diff --git a/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_MT.spl b/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_MT.spl
index 6d4ecf6609b..c7541cc6915 100644
--- a/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_MT.spl
+++ b/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_MT.spl
@@ -156,13 +156,11 @@ virtual int register_handler (ACE_HANDLE handle,
</file>
-<!--
<file name="Select_Reactor_T.inl">
<remove>#include "ace/Reactor.h"</remove>
</file>
--->
<file name="Reactor.h">
diff --git a/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_ST.spl b/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_ST.spl
index 145136455a2..13e72307183 100644
--- a/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_ST.spl
+++ b/bin/FOCUS/specializations/Reactor_Family/Select_Reactor_ST.spl
@@ -131,13 +131,11 @@ virtual int register_handler (ACE_HANDLE handle,
</file>
-<!--
<file name="Select_Reactor_T.inl">
<remove>#include "ace/Reactor.h"</remove>
</file>
--->
<!-- Transformations to Reactor_Token_T.h -->
<file name="Reactor_Token_T.h">
diff --git a/bin/MakeProjectCreator/README b/bin/MakeProjectCreator/README
index 0b5da7554f3..092e3ceb358 100644
--- a/bin/MakeProjectCreator/README
+++ b/bin/MakeProjectCreator/README
@@ -29,10 +29,6 @@ NOTE: Within the GNUACE project type, setting sharedname to empty and
setting staticname to the static library name will result in a project
that will generate only static libraries.
-The default generation mode for the GNUACE project type is named targets.
-The environment variable MPC_GNUACE_DIRECTORY_DEPS can be set to get the
-directory based build that was used up until April of 2006.
-
For more information about MPC, see the README and USAGE files in the
MPC directory.
diff --git a/bin/MakeProjectCreator/config/ace_fl.mpb b/bin/MakeProjectCreator/config/ace_fl.mpb
index 315e3f9499e..057d699ab66 100644
--- a/bin/MakeProjectCreator/config/ace_fl.mpb
+++ b/bin/MakeProjectCreator/config/ace_fl.mpb
@@ -15,15 +15,4 @@ project : ace_x11, ace_gl {
specific(vc8,vc71,vc7,vc6) {
libs += fltkdll
}
-
- specific(automake) {
- // ACE_FLTK_* macros contain X11 settings
- compile_flags -= $(ACE_X11_CPPFLAGS)
- linkflags -= $(ACE_X11_LDFLAGS)
- pure_libs -= $(ACE_X11_LIBS)
-
- compile_flags += $(ACE_FLTK_CPPFLAGS)
- linkflags += $(ACE_FLTK_LDFLAGS)
- pure_libs += $(ACE_FLTK_LIBS)
- }
}
diff --git a/bin/MakeProjectCreator/config/ace_qt.mpb b/bin/MakeProjectCreator/config/ace_qt.mpb
index 5b66aa7f68f..6c199111514 100644
--- a/bin/MakeProjectCreator/config/ace_qt.mpb
+++ b/bin/MakeProjectCreator/config/ace_qt.mpb
@@ -9,20 +9,4 @@ project: qt {
LIBS += $(PLATFORM_QT_LIBS)
LDFLAGS += $(PLATFORM_QT_LDFLAGS)
}
-
- specific(automake) {
- includes -= $(QTDIR)/include
- libpaths -= $(QTDIR)/lib
- macros -= QT_THREAD_SUPPORT
- lit_libs -= qt-mt$(QT_VERSION)
-
- compile_flags += $(ACE_QT_CPPFLAGS)
- linkflags += $(ACE_QT_LDFLAGS)
- pure_libs += $(ACE_QT_LIBS)
- }
-
- specific(vc6, vc7, vc71, vc8, nmake) {
- lit_libs -= qt-mt$(QT_VERSION)
- pure_libs += $(PLATFORM_QT_LIBS)
- }
}
diff --git a/bin/MakeProjectCreator/config/ace_tk.mpb b/bin/MakeProjectCreator/config/ace_tk.mpb
index 10493bbf4ea..39c9327073c 100644
--- a/bin/MakeProjectCreator/config/ace_tk.mpb
+++ b/bin/MakeProjectCreator/config/ace_tk.mpb
@@ -10,10 +10,4 @@ project {
LIBS += $(PLATFORM_TCL_LIBS) $(PLATFORM_TK_LIBS)
LDFLAGS += $(PLATFORM_TCL_LDFLAGS) $(PLATFORM_TK_LDFLAGS)
}
-
- specific(automake) {
- compile_flags += $(ACE_TK_CPPFLAGS) $(ACE_TCL_CPPFLAGS)
- linkflags += $(ACE_TK_LDFLAGS) $(ACE_TCL_LDFLAGS)
- pure_libs += $(ACE_TK_LIBS) $(ACE_TCL_LIBS)
- }
}
diff --git a/bin/MakeProjectCreator/config/ace_x11.mpb b/bin/MakeProjectCreator/config/ace_x11.mpb
index 0b2f478acc2..700f331fc79 100644
--- a/bin/MakeProjectCreator/config/ace_x11.mpb
+++ b/bin/MakeProjectCreator/config/ace_x11.mpb
@@ -13,10 +13,4 @@ project {
LIBS += $(PLATFORM_X11_LIBS)
LDFLAGS += $(PLATFORM_X11_LDFLAGS)
}
-
- specific(automake) {
- compile_flags += $(ACE_X11_CPPFLAGS)
- linkflags += $(ACE_X11_LDFLAGS)
- pure_libs += $(ACE_X11_LIBS)
- }
}
diff --git a/bin/MakeProjectCreator/config/ace_xt.mpb b/bin/MakeProjectCreator/config/ace_xt.mpb
index 78152e14cc1..6202ca1c473 100644
--- a/bin/MakeProjectCreator/config/ace_xt.mpb
+++ b/bin/MakeProjectCreator/config/ace_xt.mpb
@@ -11,10 +11,4 @@ project: ace_x11 {
LIBS += $(PLATFORM_XT_LIBS) $(PLATFORM_X11_LIBS)
LDFLAGS += $(PLATFORM_XT_LDFLAGS) $(PLATFORM_X11_LDFLAGS)
}
-
- specific(automake) {
- compile_flags += $(ACE_XT_CPPFLAGS)
- linkflags += $(ACE_XT_LDFLAGS)
- pure_libs += $(ACE_XT_LIBS)
- }
}
diff --git a/bin/MakeProjectCreator/config/acedefaults.mpb b/bin/MakeProjectCreator/config/acedefaults.mpb
index e6f5fc5f01f..c0342e19177 100644
--- a/bin/MakeProjectCreator/config/acedefaults.mpb
+++ b/bin/MakeProjectCreator/config/acedefaults.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project: zlib, zzip, ipv6 {
+project: zzip, ipv6 {
staticflags += ACE_AS_STATIC_LIBS
includes += $(ACE_ROOT)
libpaths += $(ACE_ROOT)/lib
@@ -17,9 +17,4 @@ project: zlib, zzip, ipv6 {
am_version = @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
includes += $(ACE_BUILDDIR)
}
-
- specific(vc8) {
- // Enable structured exception handling
- ExceptionHandling = 2
- }
}
diff --git a/bin/MakeProjectCreator/config/aceexe.mpb b/bin/MakeProjectCreator/config/aceexe.mpb
index cfd59d40b8d..0e75bbcf3a1 100644
--- a/bin/MakeProjectCreator/config/aceexe.mpb
+++ b/bin/MakeProjectCreator/config/aceexe.mpb
@@ -1,6 +1,6 @@
// -*- MPC -*-
// $Id$
-project: acedefaults, acenosubsets, ace_for_tao, versioned_namespace {
+project: acedefaults, acenosubsets, ace_for_tao {
}
diff --git a/bin/MakeProjectCreator/config/acelib.mpb b/bin/MakeProjectCreator/config/acelib.mpb
index c1be0ca8fc3..aba02c877ca 100644
--- a/bin/MakeProjectCreator/config/acelib.mpb
+++ b/bin/MakeProjectCreator/config/acelib.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project: acedefaults, acenosubsets, ace_for_tao, versioned_namespace, pkgconfig {
+project: acedefaults, acenosubsets, ace_for_tao, pkgconfig {
libout = $(ACE_ROOT)/lib
specific(automake) {
diff --git a/bin/MakeProjectCreator/config/acememorylib_for_tao.mpb b/bin/MakeProjectCreator/config/acememorylib_for_tao.mpb
new file mode 100644
index 00000000000..150837a66c2
--- /dev/null
+++ b/bin/MakeProjectCreator/config/acememorylib_for_tao.mpb
@@ -0,0 +1,10 @@
+// -*- MPC -*-
+//
+// $Id$
+
+feature(ace_for_tao) {
+
+ after += ACE_Memory_FOR_TAO
+ libs += ACE_Memory_FOR_TAO
+
+}
diff --git a/bin/MakeProjectCreator/config/acereactorlib_for_tao.mpb b/bin/MakeProjectCreator/config/acereactorlib_for_tao.mpb
new file mode 100644
index 00000000000..6196abac31a
--- /dev/null
+++ b/bin/MakeProjectCreator/config/acereactorlib_for_tao.mpb
@@ -0,0 +1,10 @@
+// -*- MPC -*-
+//
+// $Id$
+
+feature(ace_for_tao) {
+
+ after += ACE_Reactor_FOR_TAO
+ libs += ACE_Reactor_FOR_TAO
+
+}
diff --git a/bin/MakeProjectCreator/config/acesocketslib_for_tao.mpb b/bin/MakeProjectCreator/config/acesocketslib_for_tao.mpb
new file mode 100644
index 00000000000..6e499cc334b
--- /dev/null
+++ b/bin/MakeProjectCreator/config/acesocketslib_for_tao.mpb
@@ -0,0 +1,10 @@
+// -*- MPC -*-
+//
+// $Id$
+
+feature(ace_for_tao) {
+
+ after += ACE_Sockets_FOR_TAO
+ libs += ACE_Sockets_FOR_TAO
+
+}
diff --git a/bin/MakeProjectCreator/config/acethreadslib_for_tao.mpb b/bin/MakeProjectCreator/config/acethreadslib_for_tao.mpb
new file mode 100644
index 00000000000..9a9516fe510
--- /dev/null
+++ b/bin/MakeProjectCreator/config/acethreadslib_for_tao.mpb
@@ -0,0 +1,10 @@
+// -*- MPC -*-
+//
+// $Id$
+
+feature(ace_for_tao) {
+
+ after += ACE_Threads_FOR_TAO
+ libs += ACE_Threads_FOR_TAO
+
+}
diff --git a/bin/MakeProjectCreator/config/acexml.mpb b/bin/MakeProjectCreator/config/acexml.mpb
index 7097de92b92..caf428e3353 100644
--- a/bin/MakeProjectCreator/config/acexml.mpb
+++ b/bin/MakeProjectCreator/config/acexml.mpb
@@ -2,7 +2,6 @@
// $Id$
project {
- avoids += ace_for_tao
after += ACEXML_Parser ACEXML
libs += ACEXML_Parser ACEXML
includes += $(ACE_ROOT)/ACEXML/common
diff --git a/bin/MakeProjectCreator/config/automake.features b/bin/MakeProjectCreator/config/automake.features
index 4798bf6a418..fb2cd1d6d07 100644
--- a/bin/MakeProjectCreator/config/automake.features
+++ b/bin/MakeProjectCreator/config/automake.features
@@ -10,8 +10,6 @@ qos=0
gl=1
x11=1
-athena=1
-motif=1
fl=1
ace_flreactor=1
diff --git a/bin/MakeProjectCreator/config/avstreams.mpb b/bin/MakeProjectCreator/config/avstreams.mpb
index b48daeacc30..6c340ccded6 100644
--- a/bin/MakeProjectCreator/config/avstreams.mpb
+++ b/bin/MakeProjectCreator/config/avstreams.mpb
@@ -1,8 +1,7 @@
// -*- MPC -*-
// $Id$
-project: property_serv, naming, qos {
- avoids += ace_for_tao
+project: property, naming, qos {
after += AV
libs += TAO_AV
tagchecks += AV
diff --git a/bin/MakeProjectCreator/config/boost_unit_test.mpb b/bin/MakeProjectCreator/config/boost_unit_test.mpb
new file mode 100644
index 00000000000..7838b8a1ead
--- /dev/null
+++ b/bin/MakeProjectCreator/config/boost_unit_test.mpb
@@ -0,0 +1,11 @@
+// -*- MPC -*-
+// $Id$
+
+project {
+ requires += boost
+ verbatim(gnuace,local) {
+ CPPFLAGS += $(PLATFORM_BOOST_CPPFLAGS)
+ LDFLAGS += $(PLATFORM_BOOST_LDFLAGS)
+ LDLIBS += $(PLATFORM_BOOST_UTF_LIBS)
+ }
+}
diff --git a/bin/MakeProjectCreator/config/ciao_component_dnc.mpb b/bin/MakeProjectCreator/config/ciao_component_dnc.mpb
index 9cabf46cf83..f1e5eb3ff64 100644
--- a/bin/MakeProjectCreator/config/ciao_component_dnc.mpb
+++ b/bin/MakeProjectCreator/config/ciao_component_dnc.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : portableserver, ciao_server_dnc, ciao_events_dnc {
+project : ciao_server_dnc, portableserver, ciao_deployment_svnt {
after += CIAO_DnC_Container
libs += CIAO_DnC_Container
}
diff --git a/bin/MakeProjectCreator/config/ciao_config_handlers.mpb b/bin/MakeProjectCreator/config/ciao_config_handlers.mpb
index 5fbdecaf47b..c9b61487df9 100644
--- a/bin/MakeProjectCreator/config/ciao_config_handlers.mpb
+++ b/bin/MakeProjectCreator/config/ciao_config_handlers.mpb
@@ -2,12 +2,6 @@
// $Id$
project : ciao_xml_utils, dynamicany, typecodefactory {
- verbatim(gnuace, macros) {
- override no_hidden_visibility = 1
- }
- after += XSC_DynAny_Handler XSC_Config_Handlers XSC_XML_Handlers RT_CCM_Config_Handlers CIAO_Events_Handlers
- libs += XSC_DynAny_Handler XSC_Config_Handlers XSC_XML_Handlers RT_CCM_Config_Handlers CIAO_Events_Handlers
-}
-
-
-
+ after += XSC_Config_Handlers
+ libs += XSC_DynAny_Handler XSC_Config_Handlers XSC_XML_Handlers RT_CCM_Config_Handlers
+} \ No newline at end of file
diff --git a/bin/MakeProjectCreator/config/ciao_container_dnc.mpb b/bin/MakeProjectCreator/config/ciao_container_dnc.mpb
deleted file mode 100644
index 7875cd5d088..00000000000
--- a/bin/MakeProjectCreator/config/ciao_container_dnc.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : portableserver, ciao_client_dnc {
- after += CIAO_DnC_Container
- libs += CIAO_DnC_Container
-}
diff --git a/bin/MakeProjectCreator/config/ciao_deployment_stub.mpb b/bin/MakeProjectCreator/config/ciao_deployment_stub.mpb
index 9b2102955d8..ae995bc1548 100644
--- a/bin/MakeProjectCreator/config/ciao_deployment_stub.mpb
+++ b/bin/MakeProjectCreator/config/ciao_deployment_stub.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : ciao_client_dnc, ciao_events_base_dnc {
+project : ciao_client_dnc {
after += Deployment_stub
libs += CIAO_Deployment_stub
includes += $(CIAO_ROOT)/DAnCE
diff --git a/bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb b/bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb
index 0ea0c5e2275..3b41eff3ea4 100644
--- a/bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb
+++ b/bin/MakeProjectCreator/config/ciao_deployment_svnt.mpb
@@ -1,9 +1,9 @@
// -*- MPC -*-
// $Id$
-project : ciao_deployment_stub, portableserver, ciao_events_dnc {
+project : ciao_deployment_stub, portableserver {
after += Deployment_svnt
- libs += CIAO_Deployment_svnt
- includes += $(CIAO_ROOT)/DAnCE/ciao
+ libs += CIAO_Deployment_svnt
+ includes += $(CIAO_ROOT)/DAnCE/ciao
idlflags += -I$(CIAO_ROOT)/DAnCE -Sc
}
diff --git a/bin/MakeProjectCreator/config/ciao_domainapplicationmanager_dnc.mpb b/bin/MakeProjectCreator/config/ciao_domainapplicationmanager_dnc.mpb
deleted file mode 100644
index 31731a84d5d..00000000000
--- a/bin/MakeProjectCreator/config/ciao_domainapplicationmanager_dnc.mpb
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : ciao_deployment_svnt {
- includes += $(CIAO_ROOT)/DomainApplicationManager
- libs += DomainApplicationManager
- after += DomainApplicationManager
-}
diff --git a/bin/MakeProjectCreator/config/ciao_events_base_dnc.mpb b/bin/MakeProjectCreator/config/ciao_events_base_dnc.mpb
deleted file mode 100644
index de2c8d5a7b9..00000000000
--- a/bin/MakeProjectCreator/config/ciao_events_base_dnc.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, ciao_container_dnc, ciao_client_dnc {
- libs += CIAO_DnC_Events_Base
- after += CIAO_DnC_Events_Base
-}
diff --git a/bin/MakeProjectCreator/config/ciao_events_dnc.mpb b/bin/MakeProjectCreator/config/ciao_events_dnc.mpb
index d7abd936f0c..cb10421b617 100644
--- a/bin/MakeProjectCreator/config/ciao_events_dnc.mpb
+++ b/bin/MakeProjectCreator/config/ciao_events_dnc.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : security, ifr_client, valuetype, pi, codecfactory, ciao_container_dnc, ciao_client_dnc, ciao_rtevent_dnc {
+project : security, ifr_client, valuetype, pi, codecfactory, ciao_container_dnc, ciao_client_dnc {
includes += $(CIAO_ROOT)/ciaosvcs/Events
idlflags += -I$(CIAO_ROOT)/ciaosvcs/Events -Sc
libs += CIAO_DnC_Events
diff --git a/bin/MakeProjectCreator/config/ciao_rtevent_dnc.mpb b/bin/MakeProjectCreator/config/ciao_rtevent_dnc.mpb
deleted file mode 100644
index baf9252d0c2..00000000000
--- a/bin/MakeProjectCreator/config/ciao_rtevent_dnc.mpb
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : rtevent_serv, ciao_events_base_dnc {
- includes += $(CIAO_ROOT)/ciaosvcs/Events
- idlflags += -I$(CIAO_ROOT)/ciaosvcs/Events -Sc
- libs += CIAO_RTEvent
- after += CIAO_RTEvent
-}
diff --git a/bin/MakeProjectCreator/config/ciao_servant_dnc.mpb b/bin/MakeProjectCreator/config/ciao_servant_dnc.mpb
index 6bc5c8d52a0..85e55f2567b 100644
--- a/bin/MakeProjectCreator/config/ciao_servant_dnc.mpb
+++ b/bin/MakeProjectCreator/config/ciao_servant_dnc.mpb
@@ -1,7 +1,27 @@
// -*- MPC -*-
// $Id$
-project : ciao_component_dnc, ciao_deployment_svnt, ciao_events_dnc, ciaocidldefaults, utils, naming {
+project : ciao_component_dnc, ciao_deployment_svnt, utils, naming {
after += CIAO_DnC_Server
libs += CIAO_DnC_Server
+
+ // Set the cidl compiler and flags as template values
+ specific {
+ cidlc = $(CIAO_ROOT)/bin/cidlc
+ cidlc_dep = $(CIAO_ROOT)/bin/cidlc
+ cidlc_flags = -I $(CIAO_ROOT) -I$(CIAO_ROOT)/DAnCE -I$(CIAO_ROOT)/ciao -I$(TAO_ROOT) -I$(TAO_ROOT)/tao -I$(TAO_ROOT)/orbsvcs --
+ }
+
+ Define_Custom(CIDL) {
+ automatic = 0
+ dependent = $(CIDLC_DEP)
+ command = $(CIDLC)
+ commandflags = $(CIDLC_FLAGS)
+ inputext = .cidl
+ source_outputext = _svnt.cpp
+ header_outputext = _svnt.h
+ generic_outputext = E.idl
+ keyword cidlflags = commandflags
+ }
+
}
diff --git a/bin/MakeProjectCreator/config/ciao_server_dnc.mpb b/bin/MakeProjectCreator/config/ciao_server_dnc.mpb
index 380c9d22c90..37cc21b79e5 100644
--- a/bin/MakeProjectCreator/config/ciao_server_dnc.mpb
+++ b/bin/MakeProjectCreator/config/ciao_server_dnc.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : ciao_client_dnc, ciao_deployment_svnt, utils, naming, ciao_events_dnc {
+project : ciao_client_dnc, ciao_deployment_svnt, utils, naming {
after += CIAO_DnC_Server
libs += CIAO_DnC_Server
}
diff --git a/bin/MakeProjectCreator/config/ciao_xml_utils.mpb b/bin/MakeProjectCreator/config/ciao_xml_utils.mpb
index 1167281994f..d597fd6e9e6 100644
--- a/bin/MakeProjectCreator/config/ciao_xml_utils.mpb
+++ b/bin/MakeProjectCreator/config/ciao_xml_utils.mpb
@@ -1,8 +1,9 @@
// -*- MPC -*-
// $Id$
-project : xerces, exceptions {
+project : xerces {
includes += $(CIAO_ROOT)/tools
after += CIAO_XML_Utils
+ requires += exceptions
libs += CIAO_XML_Utils
-}
+} \ No newline at end of file
diff --git a/bin/MakeProjectCreator/config/ciaocidldefaults.mpb b/bin/MakeProjectCreator/config/ciaocidldefaults.mpb
deleted file mode 100644
index 59521cbb44b..00000000000
--- a/bin/MakeProjectCreator/config/ciaocidldefaults.mpb
+++ /dev/null
@@ -1,24 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project {
- // Set the cidl compiler and flags as template values
- specific {
- cidlc = $(CIAO_ROOT)/bin/cidlc
- cidlc_dep = $(CIAO_ROOT)/bin/cidlc
- cidlc_flags = -I $(CIAO_ROOT) -I$(CIAO_ROOT)/DAnCE -I$(CIAO_ROOT)/ciao -I$(TAO_ROOT) -I$(TAO_ROOT)/tao -I$(TAO_ROOT)/orbsvcs --
- }
-
- Define_Custom(CIDL) {
- automatic = 0
- dependent = $(CIDLC_DEP)
- command = $(CIDLC)
- commandflags = $(CIDLC_FLAGS)
- inputext = .cidl
- source_outputext = _svnt.cpp
- header_outputext = _svnt.h
- generic_outputext = E.idl
- keyword cidlflags = commandflags
- }
-
-}
diff --git a/bin/MakeProjectCreator/config/cidlc.mpb b/bin/MakeProjectCreator/config/cidlc.mpb
index 38fa6d65e0d..4596ff385e7 100644
--- a/bin/MakeProjectCreator/config/cidlc.mpb
+++ b/bin/MakeProjectCreator/config/cidlc.mpb
@@ -1,15 +1,21 @@
// $Id$
-project: boost_filesystem, boost_regex, exceptions {
- requires += cidl
+project: boost_base {
+ requires += cidl exceptions
includes += $(CIAO_ROOT) $(CIAO_ROOT)/CCF $(ACE_ROOT)/contrib/utility
libpaths += $(CIAO_ROOT)/CCF/CCF $(ACE_ROOT)/lib
- specific(nmake, vc71, vc8) {
+ specific(vc71, vc8) {
compile_flags += /wd4290 /wd4800 /wd4250 /wd4355
}
verbatim(gnuace, top) {
include $(CIAO_ROOT)/CCF/Config.rules
}
+
+ verbatim(gnuace, local) {
+ LIBS += $(BOOST_LD_FLAGS) \
+ -lboost_regex \
+ -lboost_filesystem
+ }
}
diff --git a/bin/MakeProjectCreator/config/concurrency.mpb b/bin/MakeProjectCreator/config/concurrency.mpb
index 7f93021e1a1..fbde851c1ba 100644
--- a/bin/MakeProjectCreator/config/concurrency.mpb
+++ b/bin/MakeProjectCreator/config/concurrency.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib {
+project : portableserver {
after += CosConcurrency
libs += TAO_CosConcurrency
tagchecks += Concurrency
diff --git a/bin/MakeProjectCreator/config/concurrency_serv.mpb b/bin/MakeProjectCreator/config/concurrency_serv.mpb
deleted file mode 100644
index 0d1a4092e57..00000000000
--- a/bin/MakeProjectCreator/config/concurrency_serv.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, concurrency_skel {
- after += CosConcurrency_Serv
- libs += TAO_CosConcurrency_Serv
-}
diff --git a/bin/MakeProjectCreator/config/concurrency_skel.mpb b/bin/MakeProjectCreator/config/concurrency_skel.mpb
deleted file mode 100644
index 0806aa30cbb..00000000000
--- a/bin/MakeProjectCreator/config/concurrency_skel.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, concurrency, portableserver {
- after += CosConcurrency_Skel
- libs += TAO_CosConcurrency_Skel
-}
diff --git a/bin/MakeProjectCreator/config/csd_framework.mpb b/bin/MakeProjectCreator/config/csd_framework.mpb
deleted file mode 100644
index 27dd3f56694..00000000000
--- a/bin/MakeProjectCreator/config/csd_framework.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : taolib, portableserver, pi, codecfactory {
- after += CSD_Framework
- libs += TAO_CSD_Framework
-}
diff --git a/bin/MakeProjectCreator/config/csd_pt_test_exe.mpb b/bin/MakeProjectCreator/config/csd_pt_test_exe.mpb
deleted file mode 100644
index 5641add5436..00000000000
--- a/bin/MakeProjectCreator/config/csd_pt_test_exe.mpb
+++ /dev/null
@@ -1,4 +0,0 @@
-// -*- MPC -*-
-//$Id$
-project : csd_pt_testinf_lib, csd_pt_testservant_lib, taoexe, pi {
-}
diff --git a/bin/MakeProjectCreator/config/csd_pt_testinf_lib.mpb b/bin/MakeProjectCreator/config/csd_pt_testinf_lib.mpb
deleted file mode 100644
index 0c9a8dffa27..00000000000
--- a/bin/MakeProjectCreator/config/csd_pt_testinf_lib.mpb
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : csd_threadpool, taolib_with_idl {
- after += csd_pt_testinf
- includes += $(TAO_ROOT)/performance-tests/CSD_Strategy
- libs += CSD_PT_TestInf
- idlflags += -I$(TAO_ROOT)/performance-tests/CSD_Strategy
-}
diff --git a/bin/MakeProjectCreator/config/csd_pt_testservant_lib.mpb b/bin/MakeProjectCreator/config/csd_pt_testservant_lib.mpb
deleted file mode 100644
index 1eba36eae83..00000000000
--- a/bin/MakeProjectCreator/config/csd_pt_testservant_lib.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : csd_pt_testinf_lib {
- after += csd_pt_testservant
- libs += CSD_PT_TestServant
-}
diff --git a/bin/MakeProjectCreator/config/csd_threadpool.mpb b/bin/MakeProjectCreator/config/csd_threadpool.mpb
deleted file mode 100644
index 1c36cc71893..00000000000
--- a/bin/MakeProjectCreator/config/csd_threadpool.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : csd_framework {
- after += CSD_ThreadPool
- libs += TAO_CSD_ThreadPool
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_foo_a_lib.mpb b/bin/MakeProjectCreator/config/csd_tp_foo_a_lib.mpb
deleted file mode 100644
index e9d3edd980e..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_foo_a_lib.mpb
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : csd_tp_test_lib {
- after += csd_tp_foo_a_lib
- includes += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Foo_A
- libs += CSD_TP_Foo_A
- libpaths += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Foo_A
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_foo_b_lib.mpb b/bin/MakeProjectCreator/config/csd_tp_foo_b_lib.mpb
deleted file mode 100644
index 298cd700ece..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_foo_b_lib.mpb
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : csd_tp_test_lib {
- after += csd_tp_foo_b_lib
- includes += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Foo_B
- libs += CSD_TP_Foo_B
- libpaths += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Foo_B
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_foo_c_lib.mpb b/bin/MakeProjectCreator/config/csd_tp_foo_c_lib.mpb
deleted file mode 100644
index 4c51d30d318..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_foo_c_lib.mpb
+++ /dev/null
@@ -1,9 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : csd_tp_test_lib {
- after += csd_tp_foo_c_lib
- includes += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Foo_C
- libs += CSD_TP_Foo_C
- libpaths += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Foo_C
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_test_exe_a.mpb b/bin/MakeProjectCreator/config/csd_tp_test_exe_a.mpb
deleted file mode 100644
index 7e1cfa624a8..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_test_exe_a.mpb
+++ /dev/null
@@ -1,4 +0,0 @@
-// -*- MPC -*-
-//$Id$
-project : csd_tp_foo_a_lib, taoexe {
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_test_exe_b.mpb b/bin/MakeProjectCreator/config/csd_tp_test_exe_b.mpb
deleted file mode 100644
index c7209d22fc2..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_test_exe_b.mpb
+++ /dev/null
@@ -1,4 +0,0 @@
-// -*- MPC -*-
-//$Id$
-project : csd_tp_foo_b_lib, taoexe {
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_test_exe_c.mpb b/bin/MakeProjectCreator/config/csd_tp_test_exe_c.mpb
deleted file mode 100644
index efe525aff98..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_test_exe_c.mpb
+++ /dev/null
@@ -1,4 +0,0 @@
-// -*- MPC -*-
-//$Id$
-project : csd_tp_foo_c_lib, taoexe {
-}
diff --git a/bin/MakeProjectCreator/config/csd_tp_test_lib.mpb b/bin/MakeProjectCreator/config/csd_tp_test_lib.mpb
deleted file mode 100644
index f5227147178..00000000000
--- a/bin/MakeProjectCreator/config/csd_tp_test_lib.mpb
+++ /dev/null
@@ -1,10 +0,0 @@
-// -*- MPC -*-
-//$Id$
-
-project : taolib_with_idl, csd_threadpool, pi {
- after += CSD_TP_Test_Lib
- includes += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Common
- libs += CSD_TP_Test
- libpaths += $(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Common
- idlflags += -I$(TAO_ROOT)/tests/CSD_Strategy_Tests/TP_Common
-}
diff --git a/bin/MakeProjectCreator/config/dance_extension_stub.mpb b/bin/MakeProjectCreator/config/dance_extension_stub.mpb
deleted file mode 100644
index 4f5353b87bb..00000000000
--- a/bin/MakeProjectCreator/config/dance_extension_stub.mpb
+++ /dev/null
@@ -1,6 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : ciao_deployment_stub {
- includes += $(CIAO_ROOT)/DAnCE/Interfaces
-}
diff --git a/bin/MakeProjectCreator/config/dseventlogadmin.mpb b/bin/MakeProjectCreator/config/dseventlogadmin.mpb
index 72855e6ced4..031be774f43 100644
--- a/bin/MakeProjectCreator/config/dseventlogadmin.mpb
+++ b/bin/MakeProjectCreator/config/dseventlogadmin.mpb
@@ -2,7 +2,6 @@
// $Id$
project : orbsvcslib, dslogadmin, event {
- after += DsEventLogAdmin
- libs += TAO_DsEventLogAdmin
- tagchecks += EventLog
+ after += DsEventLogAdmin
+ libs += TAO_DsEventLogAdmin
}
diff --git a/bin/MakeProjectCreator/config/dslogadmin.mpb b/bin/MakeProjectCreator/config/dslogadmin.mpb
index 0207a0450ff..94516c7133f 100644
--- a/bin/MakeProjectCreator/config/dslogadmin.mpb
+++ b/bin/MakeProjectCreator/config/dslogadmin.mpb
@@ -2,7 +2,6 @@
// $Id$
project : orbsvcslib {
- after += DsLogAdmin
- libs += TAO_DsLogAdmin
- tagchecks += Log
+ after += DsLogAdmin
+ libs += TAO_DsLogAdmin
}
diff --git a/bin/MakeProjectCreator/config/etcl.mpb b/bin/MakeProjectCreator/config/etcl.mpb
index 95e84d4ee9a..4b68ef4e524 100644
--- a/bin/MakeProjectCreator/config/etcl.mpb
+++ b/bin/MakeProjectCreator/config/etcl.mpb
@@ -2,7 +2,6 @@
// $Id$
project : taolib {
- after += ETCL
- libs += TAO_ETCL
- tagchecks += Notify
+ after += ETCL
+ libs += TAO_ETCL
}
diff --git a/bin/MakeProjectCreator/config/event.mpb b/bin/MakeProjectCreator/config/event.mpb
index 36f868262fe..10968e61645 100644
--- a/bin/MakeProjectCreator/config/event.mpb
+++ b/bin/MakeProjectCreator/config/event.mpb
@@ -4,5 +4,4 @@
project : orbsvcslib, ec_use_typed_events, minimum_corba {
after += CosEvent
libs += TAO_CosEvent
- tagchecks += CosEvent
}
diff --git a/bin/MakeProjectCreator/config/event_serv.mpb b/bin/MakeProjectCreator/config/event_serv.mpb
index 1c536f434b5..597dd33abb9 100644
--- a/bin/MakeProjectCreator/config/event_serv.mpb
+++ b/bin/MakeProjectCreator/config/event_serv.mpb
@@ -1,7 +1,8 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib, event_skel, ec_use_typed_events_serv, messaging_optional, naming, svc_utils, minimum_corba {
+project : orbsvcslib, event_skel, ec_use_typed_events_serv, messaging, naming, svc_utils, minimum_corba {
after += CosEvent_Serv
libs += TAO_CosEvent_Serv
+ tagchecks += CosEvent
}
diff --git a/bin/MakeProjectCreator/config/ftclientorb.mpb b/bin/MakeProjectCreator/config/ftclientorb.mpb
index 126330da041..f3f70ab90dd 100644
--- a/bin/MakeProjectCreator/config/ftclientorb.mpb
+++ b/bin/MakeProjectCreator/config/ftclientorb.mpb
@@ -2,7 +2,6 @@
// $Id$
project : ftorbutils, pi, interceptors {
- avoids += ace_for_tao // Requires ace/UUID
after += FT_ClientORB
libs += TAO_FT_ClientORB
requires += ace_uuid
diff --git a/bin/MakeProjectCreator/config/ftrteventchannel.mpb b/bin/MakeProjectCreator/config/ftrteventchannel.mpb
index ca9cfdc46f7..36b2fb92a02 100644
--- a/bin/MakeProjectCreator/config/ftrteventchannel.mpb
+++ b/bin/MakeProjectCreator/config/ftrteventchannel.mpb
@@ -5,5 +5,4 @@ project : ftrtevent, utils, corba_messaging, pi_server {
after += FTRT_EventChannel
libs += TAO_FTRT_EventChannel
includes += $(TAO_ROOT)/orbsvcs/FtRtEvent/EventChannel
- tagchecks += FTRT_EventChannel
}
diff --git a/bin/MakeProjectCreator/config/global.features b/bin/MakeProjectCreator/config/global.features
index 0de66665428..8dec860188a 100644
--- a/bin/MakeProjectCreator/config/global.features
+++ b/bin/MakeProjectCreator/config/global.features
@@ -40,9 +40,7 @@ boost = 0
wince = 0
uses_wchar = 0
ziparchive = 0
-negotiate_codesets = 0
-versioned_namespace = 0
-vcl = 0
+negotiate_codesets = 0
// Features for various GUI libraries
diff --git a/bin/MakeProjectCreator/config/global.mpb b/bin/MakeProjectCreator/config/global.mpb
new file mode 100644
index 00000000000..cd6b5992ac2
--- /dev/null
+++ b/bin/MakeProjectCreator/config/global.mpb
@@ -0,0 +1,7 @@
+// -*- MPC -*-
+// $Id$
+
+project {
+ libout = .
+ libpaths = .
+}
diff --git a/bin/MakeProjectCreator/config/htbp.mpb b/bin/MakeProjectCreator/config/htbp.mpb
index 60c9236de26..3b81e61a600 100644
--- a/bin/MakeProjectCreator/config/htbp.mpb
+++ b/bin/MakeProjectCreator/config/htbp.mpb
@@ -2,7 +2,6 @@
// $Id$
project : acelib {
- avoids += ace_for_tao // Requires ACE_Configuration_Heap
after += HTBP
libs += ACE_HTBP
includes += $(ACE_ROOT)/protocols
diff --git a/bin/MakeProjectCreator/config/htiop.mpb b/bin/MakeProjectCreator/config/htiop.mpb
index cbeec43da74..dee18841dde 100644
--- a/bin/MakeProjectCreator/config/htiop.mpb
+++ b/bin/MakeProjectCreator/config/htiop.mpb
@@ -2,7 +2,6 @@
// $Id$
project : htbp {
- after += HTIOP
- libs += TAO_HTIOP
- tagchecks += HTIOP
+ after += HTIOP
+ libs += TAO_HTIOP
}
diff --git a/bin/MakeProjectCreator/config/ifrservice.mpb b/bin/MakeProjectCreator/config/ifrservice.mpb
index a580d2d0660..c8494b989b0 100644
--- a/bin/MakeProjectCreator/config/ifrservice.mpb
+++ b/bin/MakeProjectCreator/config/ifrservice.mpb
@@ -2,7 +2,6 @@
// $Id$
project : iortable, svc_utils, typecodefactory, pi_server, minimum_corba {
- avoids += ace_for_tao // Requires ace/Configuration
after += IFRService
libs += TAO_IFRService
tagchecks += IFRService
diff --git a/bin/MakeProjectCreator/config/kokyu_dsrt_schedulers.mpb b/bin/MakeProjectCreator/config/kokyu_dsrt_schedulers.mpb
index 7974628140c..68d73e46d75 100644
--- a/bin/MakeProjectCreator/config/kokyu_dsrt_schedulers.mpb
+++ b/bin/MakeProjectCreator/config/kokyu_dsrt_schedulers.mpb
@@ -5,8 +5,4 @@ project: codecfactory, rtcorba, kokyu, rtscheduling {
after += Kokyu_DSRT_Schedulers
libs += Kokyu_DSRT_Schedulers
includes += $(TAO_ROOT)/examples/Kokyu_dsrt_schedulers
-
- specific(automake) {
- includes += $(TAO_BUILDDIR)/examples/Kokyu_dsrt_schedulers
- }
}
diff --git a/bin/MakeProjectCreator/config/messaging.mpb b/bin/MakeProjectCreator/config/messaging.mpb
index 2de4ac8046c..886265898a4 100644
--- a/bin/MakeProjectCreator/config/messaging.mpb
+++ b/bin/MakeProjectCreator/config/messaging.mpb
@@ -1,6 +1,7 @@
// -*- MPC -*-
// $Id$
-project : valuetype, portableserver, pi, corba_messaging, messaging_optional {
+project : valuetype, portableserver, pi, corba_messaging {
after += Messaging
+ libs += TAO_Messaging
}
diff --git a/bin/MakeProjectCreator/config/messaging_optional.mpb b/bin/MakeProjectCreator/config/messaging_optional.mpb
deleted file mode 100644
index ee8637a4d1b..00000000000
--- a/bin/MakeProjectCreator/config/messaging_optional.mpb
+++ /dev/null
@@ -1,8 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-feature(corba_messaging) : valuetype, portableserver, pi {
- libs += TAO_Messaging
- after += Messaging
-}
-
diff --git a/bin/MakeProjectCreator/config/naming.mpb b/bin/MakeProjectCreator/config/naming.mpb
index a1f4d3b6014..807f3a0c35f 100644
--- a/bin/MakeProjectCreator/config/naming.mpb
+++ b/bin/MakeProjectCreator/config/naming.mpb
@@ -4,5 +4,4 @@
project : orbsvcslib {
after += CosNaming
libs += TAO_CosNaming
- tagchecks += Naming
}
diff --git a/bin/MakeProjectCreator/config/naming_serv.mpb b/bin/MakeProjectCreator/config/naming_serv.mpb
index 7b1e8caf783..7d94f96732f 100644
--- a/bin/MakeProjectCreator/config/naming_serv.mpb
+++ b/bin/MakeProjectCreator/config/naming_serv.mpb
@@ -1,8 +1,8 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib, naming_skel, iortable, messaging_optional, svc_utils {
- avoids += ace_for_tao // Requires MMAP_Memory_Pool
+project : orbsvcslib, naming_skel, iortable, messaging, svc_utils {
after += CosNaming_Serv
libs += TAO_CosNaming_Serv
+ tagchecks += Naming
}
diff --git a/bin/MakeProjectCreator/config/no_wchar.mpb b/bin/MakeProjectCreator/config/no_wchar.mpb
new file mode 100644
index 00000000000..07dbe0a1edc
--- /dev/null
+++ b/bin/MakeProjectCreator/config/no_wchar.mpb
@@ -0,0 +1,3 @@
+project {
+ avoids += uses_wchar
+}
diff --git a/bin/MakeProjectCreator/config/notification.mpb b/bin/MakeProjectCreator/config/notification.mpb
index 4893c915927..402df15a2e4 100644
--- a/bin/MakeProjectCreator/config/notification.mpb
+++ b/bin/MakeProjectCreator/config/notification.mpb
@@ -4,5 +4,4 @@
project : orbsvcslib, event {
after += CosNotification
libs += TAO_CosNotification
- tagchecks += Notify
}
diff --git a/bin/MakeProjectCreator/config/notification_serv.mpb b/bin/MakeProjectCreator/config/notification_serv.mpb
index 08198cb5825..a4c1bb6c002 100644
--- a/bin/MakeProjectCreator/config/notification_serv.mpb
+++ b/bin/MakeProjectCreator/config/notification_serv.mpb
@@ -4,4 +4,5 @@
project : orbsvcslib, svc_utils, notification_skel, etcl, dynamicany {
after += CosNotification_Serv
libs += TAO_CosNotification_Serv
+ tagchecks += Notify
}
diff --git a/bin/MakeProjectCreator/config/notifytest.mpb b/bin/MakeProjectCreator/config/notifytest.mpb
index be766db59e0..103e053d505 100644
--- a/bin/MakeProjectCreator/config/notifytest.mpb
+++ b/bin/MakeProjectCreator/config/notifytest.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project: orbsvcsexe, notification, notification_skel, notification_serv, naming, svc_utils, event_serv, ifr_client, dynamicinterface, messaging, pi, codecfactory, valuetype {
+project: orbsvcsexe, notification, notification_skel, notification_serv, naming, svc_utils {
after += NotifyTests_Lib
libs += TAO_NotifyTests
includes += $(TAO_ROOT)/orbsvcs/tests/Notify/lib
diff --git a/bin/MakeProjectCreator/config/property.mpb b/bin/MakeProjectCreator/config/property.mpb
index a2e1c197764..e8cd2200480 100644
--- a/bin/MakeProjectCreator/config/property.mpb
+++ b/bin/MakeProjectCreator/config/property.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib {
+project : portableserver {
after += CosProperty
libs += TAO_CosProperty
tagchecks += Property
diff --git a/bin/MakeProjectCreator/config/property_serv.mpb b/bin/MakeProjectCreator/config/property_serv.mpb
deleted file mode 100644
index 95588edd33a..00000000000
--- a/bin/MakeProjectCreator/config/property_serv.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, property_skel {
- after += CosProperty_Serv
- libs += TAO_CosProperty_Serv
-}
diff --git a/bin/MakeProjectCreator/config/property_skel.mpb b/bin/MakeProjectCreator/config/property_skel.mpb
deleted file mode 100644
index 6904c4f9cbc..00000000000
--- a/bin/MakeProjectCreator/config/property_skel.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, property, portableserver {
- after += CosProperty_Skel
- libs += TAO_CosProperty_Skel
-}
diff --git a/bin/MakeProjectCreator/config/rmcast.mpb b/bin/MakeProjectCreator/config/rmcast.mpb
index ac9427c3d2a..9459bcc79ce 100644
--- a/bin/MakeProjectCreator/config/rmcast.mpb
+++ b/bin/MakeProjectCreator/config/rmcast.mpb
@@ -2,7 +2,6 @@
// $Id$
project : acelib, threads {
- avoids += ace_for_tao
after += RMCast
libs += ACE_RMCast
includes += $(ACE_ROOT)/protocols
diff --git a/bin/MakeProjectCreator/config/rtcorbacommon.mpb b/bin/MakeProjectCreator/config/rtcorbacommon.mpb
index 12251e5c162..91125e0fdc8 100644
--- a/bin/MakeProjectCreator/config/rtcorbacommon.mpb
+++ b/bin/MakeProjectCreator/config/rtcorbacommon.mpb
@@ -4,10 +4,5 @@
project : portableserver, minimum_corba {
after += RTCORBA_Common
libs += RTCORBA_Common
-
- specific (automake) {
- includes += $(srcdir)/../Common
- }
-
includes += ../Common
}
diff --git a/bin/MakeProjectCreator/config/rtevent_serv.mpb b/bin/MakeProjectCreator/config/rtevent_serv.mpb
index 60a356c41cc..9cbd6c5e452 100644
--- a/bin/MakeProjectCreator/config/rtevent_serv.mpb
+++ b/bin/MakeProjectCreator/config/rtevent_serv.mpb
@@ -2,7 +2,7 @@
// $Id$
project : orbsvcslib, rtevent_skel {
- avoids += ace_for_tao // Requires ACE_crc32
after += RTEvent_Serv
libs += TAO_RTEvent_Serv
+ tagchecks += RTEvent
}
diff --git a/bin/MakeProjectCreator/config/rteventlogadmin.mpb b/bin/MakeProjectCreator/config/rteventlogadmin.mpb
index 4150b18e7e7..38908e7f305 100644
--- a/bin/MakeProjectCreator/config/rteventlogadmin.mpb
+++ b/bin/MakeProjectCreator/config/rteventlogadmin.mpb
@@ -1,8 +1,7 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib, dslogadmin, rtevent {
- after += RTEventLogAdmin
- libs += TAO_RTEventLogAdmin
- tagchecks += RTEventLog
+project : dslogadmin_serv, rtevent, rtsched {
+ after += RTEventLogAdmin
+ libs += TAO_RTEventLogAdmin
}
diff --git a/bin/MakeProjectCreator/config/rteventlogadmin_serv.mpb b/bin/MakeProjectCreator/config/rteventlogadmin_serv.mpb
deleted file mode 100644
index dbc14cf067f..00000000000
--- a/bin/MakeProjectCreator/config/rteventlogadmin_serv.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, rteventlogadmin_skel, dslogadmin_serv, rtevent_serv, rtsched {
- after += RTEventLogAdmin_Serv
- libs += TAO_RTEventLogAdmin_Serv
-}
diff --git a/bin/MakeProjectCreator/config/rteventlogadmin_skel.mpb b/bin/MakeProjectCreator/config/rteventlogadmin_skel.mpb
deleted file mode 100644
index 920e65f4ab6..00000000000
--- a/bin/MakeProjectCreator/config/rteventlogadmin_skel.mpb
+++ /dev/null
@@ -1,7 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project : orbsvcslib, rteventlogadmin, dslogadmin_skel, rtevent_skel, portableserver {
- after += RTEventLogAdmin_Skel
- libs += TAO_RTEventLogAdmin_Skel
-}
diff --git a/bin/MakeProjectCreator/config/rtkokyuevent.mpb b/bin/MakeProjectCreator/config/rtkokyuevent.mpb
index a57c8b8017c..f752031bde0 100644
--- a/bin/MakeProjectCreator/config/rtkokyuevent.mpb
+++ b/bin/MakeProjectCreator/config/rtkokyuevent.mpb
@@ -2,7 +2,6 @@
// $Id$
project : rtevent, rtsched, kokyu {
- after += RTKokyuEvent
- libs += TAO_RTKokyuEvent
- tagchecks += RTKokyuEvent
+ after += RTKokyuEvent
+ libs += TAO_RTKokyuEvent
}
diff --git a/bin/MakeProjectCreator/config/rtnotify.mpb b/bin/MakeProjectCreator/config/rtnotify.mpb
index 1a04eb83922..847b9deaad5 100644
--- a/bin/MakeProjectCreator/config/rtnotify.mpb
+++ b/bin/MakeProjectCreator/config/rtnotify.mpb
@@ -2,7 +2,6 @@
// $Id$
project : notification_serv, rtcorba {
- after += RT_Notification
- libs += TAO_RT_Notification
- tagchecks += RT_Notify
+ after += RT_Notification
+ libs += TAO_RT_Notification
}
diff --git a/bin/MakeProjectCreator/config/security.mpb b/bin/MakeProjectCreator/config/security.mpb
index 8a192c2d077..41af3660e61 100644
--- a/bin/MakeProjectCreator/config/security.mpb
+++ b/bin/MakeProjectCreator/config/security.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project : interceptors, portableserver, valuetype, corba_messaging, orbsvcslib, pi {
+project : interceptors, portableserver, valuetype, corba_messaging, orbsvcslib {
after += Security
libs += TAO_Security
tagchecks += Security
diff --git a/bin/MakeProjectCreator/config/ssl.mpb b/bin/MakeProjectCreator/config/ssl.mpb
index f0dfa798e7b..2b3ba326a8f 100644
--- a/bin/MakeProjectCreator/config/ssl.mpb
+++ b/bin/MakeProjectCreator/config/ssl.mpb
@@ -5,7 +5,6 @@
// by creating a new xyzssl.mpb similar to openssl.mpb.
// You would then derive the following project from this base.
project : acelib, ace_openssl {
- avoids += ace_for_tao // Requires ACE asynch streams
after += SSL
libs += ACE_SSL
requires += ssl
diff --git a/bin/MakeProjectCreator/config/ssliop.mpb b/bin/MakeProjectCreator/config/ssliop.mpb
index 3ccf7b3e877..e73be56e997 100644
--- a/bin/MakeProjectCreator/config/ssliop.mpb
+++ b/bin/MakeProjectCreator/config/ssliop.mpb
@@ -1,7 +1,7 @@
// -*- MPC -*-
// $Id$
-project: interceptors, security, portableserver, ssl, pi_server {
+project: interceptors, security, portableserver, ssl {
after += SSLIOP
libs += TAO_SSLIOP
tagchecks += SSLIOP
diff --git a/bin/MakeProjectCreator/config/strategies.mpb b/bin/MakeProjectCreator/config/strategies.mpb
index c087499d5fd..d5e01739d73 100644
--- a/bin/MakeProjectCreator/config/strategies.mpb
+++ b/bin/MakeProjectCreator/config/strategies.mpb
@@ -1,7 +1,6 @@
// -*- MPC -*-
// $Id$
project : taolib, anytypecode {
- avoids += ace_for_tao // Requires Unix domain sockets and MEM stuff
after += Strategies
libs += TAO_Strategies
}
diff --git a/bin/MakeProjectCreator/config/tao_versioning_idl_defaults.mpb b/bin/MakeProjectCreator/config/tao_versioning_idl_defaults.mpb
deleted file mode 100644
index 0d0352fa5fa..00000000000
--- a/bin/MakeProjectCreator/config/tao_versioning_idl_defaults.mpb
+++ /dev/null
@@ -1,14 +0,0 @@
-// -*- MPC -*-
-//
-// $Id$
-
-// This base project is only meant to be used by the core TAO
-// libraries and the orbsvcs libraries.
-
-project : taoidldefaults {
-
- after += TAO_IDL_EXE
- idlflags += -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL \
- -Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL
-
-}
diff --git a/bin/MakeProjectCreator/config/taodefaults.mpb b/bin/MakeProjectCreator/config/taodefaults.mpb
index 6ad0a79c75d..18b0da61641 100644
--- a/bin/MakeProjectCreator/config/taodefaults.mpb
+++ b/bin/MakeProjectCreator/config/taodefaults.mpb
@@ -11,9 +11,3 @@ project {
includes += $(TAO_BUILDDIR)
}
}
-
-// If the corba_messaging feature is disabled, then we need
-// to add the TAO_HAS_CORBA_MESSAGING=0 macro onto the command line.
-feature(!corba_messaging) {
- macros += TAO_HAS_CORBA_MESSAGING=0
-} \ No newline at end of file
diff --git a/bin/MakeProjectCreator/config/tmcast.mpb b/bin/MakeProjectCreator/config/tmcast.mpb
index 4283f27902f..124a243dd1f 100644
--- a/bin/MakeProjectCreator/config/tmcast.mpb
+++ b/bin/MakeProjectCreator/config/tmcast.mpb
@@ -2,7 +2,6 @@
// $Id$
project: acelib, exceptions, threads {
- avoids += ace_for_tao
after += TMCast
libs += ACE_TMCast
includes += $(ACE_ROOT)/protocols
diff --git a/bin/MakeProjectCreator/config/trading.mpb b/bin/MakeProjectCreator/config/trading.mpb
index 63db829c0cd..d5cb48b46e4 100644
--- a/bin/MakeProjectCreator/config/trading.mpb
+++ b/bin/MakeProjectCreator/config/trading.mpb
@@ -4,5 +4,4 @@
project : orbsvcslib {
after += CosTrading
libs += TAO_CosTrading
- tagchecks += Trader
}
diff --git a/bin/MakeProjectCreator/config/trading_serv.mpb b/bin/MakeProjectCreator/config/trading_serv.mpb
index 2b2f3988b3d..1cb8109e4b8 100644
--- a/bin/MakeProjectCreator/config/trading_serv.mpb
+++ b/bin/MakeProjectCreator/config/trading_serv.mpb
@@ -1,7 +1,8 @@
// -*- MPC -*-
// $Id$
-project : orbsvcslib, trading_skel, dynamicany, svc_utils, iortable {
+project : orbsvcslib, trading_skel, dynamicany, svc_utils {
after += CosTrading_Serv
libs += TAO_CosTrading_Serv
+ tagchecks += Trader
}
diff --git a/bin/MakeProjectCreator/config/vc8nmake.mpb b/bin/MakeProjectCreator/config/vc8nmake.mpb
deleted file mode 100644
index 562d73f7317..00000000000
--- a/bin/MakeProjectCreator/config/vc8nmake.mpb
+++ /dev/null
@@ -1,10 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project {
- specific(nmake) {
- compile_flags -= /EHs
- compile_flags += /EHa
- }
-}
-
diff --git a/bin/MakeProjectCreator/config/vcl.mpb b/bin/MakeProjectCreator/config/vcl.mpb
deleted file mode 100644
index 4c523e673f0..00000000000
--- a/bin/MakeProjectCreator/config/vcl.mpb
+++ /dev/null
@@ -1,16 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project {
- requires += vcl
- macros += ACE_HAS_VCL=1
- specific(bmake, borland, bds) {
- use_vcl = 1
- lit_libs += rtl vcl
- compile_flags += -tW -tWV
- linkflags += -aa
- }
- verbatim(borland,macros) {
- VCL=1
- }
-}
diff --git a/bin/MakeProjectCreator/config/versioned_namespace.mpb b/bin/MakeProjectCreator/config/versioned_namespace.mpb
deleted file mode 100644
index 502c8139ceb..00000000000
--- a/bin/MakeProjectCreator/config/versioned_namespace.mpb
+++ /dev/null
@@ -1,13 +0,0 @@
-// -*- MPC -*-
-//
-// $Id$
-
-feature(versioned_namespace) {
-
- macros += ACE_HAS_VERSIONED_NAMESPACE=1
-
- // Users, define the ACE_VERSIONED_NAMESPACE_NAME preprocessor
- // symbol in your ace/config.h to override the default versioned
- // namespace name of the form ACE_5_4_7.
-
-}
diff --git a/bin/MakeProjectCreator/config/winregistry.mpb b/bin/MakeProjectCreator/config/winregistry.mpb
index 4ccdb55836f..53a75c703e6 100644
--- a/bin/MakeProjectCreator/config/winregistry.mpb
+++ b/bin/MakeProjectCreator/config/winregistry.mpb
@@ -2,6 +2,5 @@
// $Id$
feature(winregistry) {
- avoids += ace_for_tao
requires += winregistry
}
diff --git a/bin/MakeProjectCreator/modules/BorlandProjectCreator.pm b/bin/MakeProjectCreator/modules/BorlandProjectCreator.pm
index 167c91ac295..2c45a070d29 100644
--- a/bin/MakeProjectCreator/modules/BorlandProjectCreator.pm
+++ b/bin/MakeProjectCreator/modules/BorlandProjectCreator.pm
@@ -13,11 +13,10 @@ package BorlandProjectCreator;
use strict;
use ProjectCreator;
-use WinProjectBase;
use File::Basename;
use vars qw(@ISA);
-@ISA = qw(WinProjectBase ProjectCreator);
+@ISA = qw(ProjectCreator);
# ************************************************************
# Subroutine Section
diff --git a/bin/MakeProjectCreator/modules/BorlandWorkspaceCreator.pm b/bin/MakeProjectCreator/modules/BorlandWorkspaceCreator.pm
index 5b4eab604d1..95dbd88478e 100644
--- a/bin/MakeProjectCreator/modules/BorlandWorkspaceCreator.pm
+++ b/bin/MakeProjectCreator/modules/BorlandWorkspaceCreator.pm
@@ -116,7 +116,7 @@ sub write_comps {
my($projects) = $self->get_projects();
my($pjs) = $self->get_project_info();
my(%targnum) = ();
- my(@list) = $self->number_target_deps($projects, $pjs, \%targnum, 0);
+ my(@list) = $self->number_target_deps($projects, $pjs, \%targnum);
my($crlf) = $self->crlf();
my(@ltargets) = @targets;
diff --git a/bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm b/bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm
index 4445ef417ec..d716f565e40 100644
--- a/bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm
+++ b/bin/MakeProjectCreator/modules/GNUACEProjectCreator.pm
@@ -52,6 +52,7 @@ sub fill_value {
my($self) = shift;
my($name) = shift;
my($value) = undef;
+ my($names) = $self->{'source_files'};
if ($name eq 'mpc_files') {
my(@mpc_files) = $self->list_mpc_files($self->get_inheritance_tree());
@@ -59,10 +60,15 @@ sub fill_value {
}
elsif ($name eq 'vpath') {
my(%vpath) = ();
- foreach my $item ($self->get_component_list('source_files')) {
- my($dname) = $self->relative($self->mpc_dirname($item));
- if ($dname ne '.') {
- $vpath{$dname} = 1;
+ foreach my $name (keys %$names) {
+ my($comps) = $$names{$name};
+ foreach my $key (keys %$comps) {
+ foreach my $item (@{$$comps{$key}}) {
+ my($dname) = $self->relative($self->mpc_dirname($item));
+ if ($dname ne '.') {
+ $vpath{$dname} = 1;
+ }
+ }
}
}
my($str) = join(':', keys %vpath);
diff --git a/bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm b/bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm
index 59e7988b9e8..22dfd779021 100644
--- a/bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm
+++ b/bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm
@@ -76,10 +76,8 @@ sub write_comps {
my($crlf) = $self->crlf();
my(%targnum) = ();
my($pjs) = $self->get_project_info();
- my($named) = !defined $ENV{MPC_GNUACE_DIRECTORY_DEPS};
my(@list) = $self->number_target_deps($self->get_projects(),
- $pjs, \%targnum,
- $named ? 0 : 1);
+ $pjs, \%targnum);
## Print out some preliminary information
print $fh $crlf,
@@ -89,7 +87,7 @@ sub write_comps {
"include \$(ACE_ROOT)/include/makeinclude/macros.GNU$crlf",
$crlf;
- if ($named) {
+ if (defined $ENV{MPC_GNUACE_NAMED_TARGETS}) {
$self->write_named_targets($fh, $crlf, \%targnum, \@list);
}
else {
@@ -238,8 +236,7 @@ sub write_named_targets {
## Print out each target separately
foreach my $project (@$list) {
my($dname) = $self->mpc_dirname($project);
- print $fh $crlf, '.PHONY: ', $$trans{$project},
- $crlf, $$trans{$project}, ':';
+ print $fh $crlf, $$trans{$project}, ':';
if (defined $$targnum{$project}) {
foreach my $number (@{$$targnum{$project}}) {
print $fh " $$trans{$$list[$number]}";
diff --git a/bin/MakeProjectCreator/templates/bor.mpd b/bin/MakeProjectCreator/templates/bor.mpd
index 1e3cef6caa8..31d33b1fdfc 100644
--- a/bin/MakeProjectCreator/templates/bor.mpd
+++ b/bin/MakeProjectCreator/templates/bor.mpd
@@ -22,9 +22,6 @@ OBJFILES = \
<%if(libpaths)%>
LFLAGS = \
-<%if(linkflags)%>
- <%linkflags%> \
-<%endif%>
<%if(StackReserveSize)%>
/S:<%StackReserveSize%> \
<%endif%>
@@ -57,14 +54,6 @@ RESDIR = <%rcdir%>
<%if(resource_files)%>
RESOURCE =<%foreach(resource_files)%> $(OBJDIR)\<%basenoextension(resource_file)%>.res<%endfor%>
-
-<%if(includes)%>
-RC_FLAGS = \
-<%foreach(includes)%>
- -i"<%include%>"<%fornotlast(" \\")%>
-<%endfor%>
-<%endif%>
-
<%endif%>
!ifdef STATIC
@@ -91,9 +80,6 @@ CFLAGS = \
# -D<%pch_define%> \
<%endfor%>
<%endif%>
-<%if(compile_flags)%>
- <%compile_flags%> \
-<%endif%>
<%foreach(macros)%>
-D<%macro%> \
<%endfor%>
diff --git a/bin/MakeProjectCreator/templates/gnu.mpd b/bin/MakeProjectCreator/templates/gnu.mpd
index d0619672ee8..76e809f17ee 100644
--- a/bin/MakeProjectCreator/templates/gnu.mpd
+++ b/bin/MakeProjectCreator/templates/gnu.mpd
@@ -19,9 +19,8 @@ BIN_UNCHECKED = <%if(targetoutdir)%><%targetoutdir%><%endif%><%exename%>
<%if(staticname)%>
## LIB may be set to empty later on in this file
-LIB_UNCHECKED = <%if(targetoutdir)%><%targetoutdir%><%endif%>lib<%libname_prefix%><%staticname%>.a
+LIB_UNCHECKED = <%if(targetoutdir)%><%targetoutdir%><%endif%>lib<%staticname%>.a
LIB = $(LIB_UNCHECKED)
-LIB_NAME = <%if(targetoutdir)%><%targetoutdir%><%endif%>lib<%libname_prefix%><%staticname%>
<%if(!sharedname)%>
static_libs_only = 1
<%endif%>
@@ -29,7 +28,7 @@ static_libs_only = 1
<%if(sharedname)%>
## SHLIB may be set to empty later on in this file
-SHLIB_UNCHECKED = <%if(targetoutdir)%><%targetoutdir%><%endif%>lib<%libname_prefix%><%sharedname%>.$(SOEXT)
+SHLIB_UNCHECKED = <%if(targetoutdir)%><%targetoutdir%><%endif%>lib<%sharedname%>.$(SOEXT)
SHLIB = $(SHLIB_UNCHECKED)
<%endif%>
<%if(tao || ciao)%>
@@ -69,10 +68,10 @@ FILES = \
XERCESLIB ?= <%xerceslib%>
<%endif%>
<%if(exename)%>
-LDLIBS =<%foreach(libs)%> -l<%libname_prefix%><%lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
+LDLIBS =<%foreach(libs lit_libs)%> -l<%lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
<%else%>
<%if(sharedname)%>
-ACE_SHLIBS =<%foreach(libs)%> -l<%libname_prefix%><%lib%><%endfor%><%foreach(lit_libs)%> -l<%lit_lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
+ACE_SHLIBS =<%foreach(libs lit_libs)%> -l<%lib%><%endfor%><%foreach(pure_libs)%> <%pure_lib%><%endfor%>
<%endif%>
<%endif%>
<%if(tao_idl)%>
@@ -95,12 +94,6 @@ CIDLC_FLAGS = <%cidlc_flags%>
<%endif%>
<%if(exename)%>
-PRJ_TYPE = rtp
-<%else%>
-PRJ_TYPE = library
-<%endif%>
-
-<%if(exename)%>
<%if(install)%>
INSBIN ?= <%install%>
<%endif%>
@@ -160,13 +153,6 @@ RESOURCES += \
<%foreach(resource_files)%>
<%resource_file%><%fornotlast(" \\")%>
<%endfor%>
-<%if(includes)%>
-
-RCFLAGS = \
-<%foreach(includes)%>
- --include-dir=<%include%><%fornotlast(" \\")%>
-<%endfor%>
-<%endif%>
endif
<%endif%>
@@ -194,7 +180,7 @@ else
ifeq ($(findstring k, $(MAKEFLAGS)),k)
LIBCHECK = 1
else
- LIBCHECK ?= $(filter-out $(foreach lib,<%foreach(libs)%><%libname_prefix%><%lib%><%fornotlast(" ")%><%endfor%>,$(findstring $(lib),$(foreach libpath,<%libpaths%> /usr/lib $(INSLIB),$(wildcard $(libpath)/lib$(lib).* $(libpath)/$(lib).lib)))),<%foreach(libs)%><%libname_prefix%><%lib%><%fornotlast(" ")%><%endfor%>)
+ LIBCHECK ?= $(filter-out $(foreach lib,<%libs%>,$(findstring $(lib),$(foreach libpath,<%libpaths%> /usr/lib $(INSLIB),$(wildcard $(libpath)/lib$(lib).* $(libpath)/$(lib).lib)))),<%libs%>)
ifeq ($(LIBCHECK),)
LIBCHECK = 1
endif
@@ -379,33 +365,32 @@ include $(TGT_DIR)/h/make/rules.$(PRJ_TYPE)
endif
<%foreach(source_files)%>
-<%if(flag_overrides(source_file, buildflags))%>
+<%if(dirname(source_file) && !contains(source_file, \.\./))%>
+<%if(starts_with(source_file, \$) || !ends_with(source_file, \.cpp))%>
+<%if(ends_with(source_file, \.c))%>
$(VDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>
@$(MKDIR) $(VDIR)<%dirname(source_file)%>
- <%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%flag_overrides(source_file, buildflags)%> $(ACE_USE_PCH_OPT) $(CC_OUTPUT_FLAG) $@ $<
+ $(COMPILE.c) $(ACE_USE_PCH_OPT) $(CC_OUTPUT_FLAG) $@ $<
${MVCMD}
ifneq ($(VSHDIR), $(VDIR))
$(VSHDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>
@$(MKDIR) $(VSHDIR)<%dirname(source_file)%>
- <%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%flag_overrides(source_file, buildflags)%> $(ACE_USE_PCH_OPT) $(PIC) $(CC_OUTPUT_FLAG) $@ $<
+ $(COMPILE.c) $(ACE_USE_PCH_OPT) $(PIC) $(CC_OUTPUT_FLAG) $@ $<
endif
-
<%else%>
-<%if(dirname(source_file) && !contains(source_file, \.\./))%>
-<%if(starts_with(source_file, \$) || !ends_with(source_file, \.cpp))%>
$(VDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>
@$(MKDIR) $(VDIR)<%dirname(source_file)%>
- <%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%>$(ACE_USE_PCH_OPT) $(CC_OUTPUT_FLAG) $@ $<
+ $(COMPILE.cc) $(ACE_USE_PCH_OPT) $(CC_OUTPUT_FLAG) $@ $<
${MVCMD}
ifneq ($(VSHDIR), $(VDIR))
$(VSHDIR)<%noextension(source_file)%>.$(OBJEXT): <%source_file%>
@$(MKDIR) $(VSHDIR)<%dirname(source_file)%>
- <%if(ends_with(source_file, \.c))%>$(COMPILE.c)<%else%>$(COMPILE.cc)<%endif%> <%if(flag_overrides(source_file, buildflags))%><%flag_overrides(source_file, buildflags)%> <%endif%>$(ACE_USE_PCH_OPT) $(PIC) $(CC_OUTPUT_FLAG) $@ $<
+ $(COMPILE.cc) $(ACE_USE_PCH_OPT) $(PIC) $(CC_OUTPUT_FLAG) $@ $<
endif
-
<%endif%>
+
<%endif%>
<%endif%>
<%endfor%>
@@ -581,9 +566,9 @@ endif
<%endif%>
<%if(idl_files)%>
+<%if(source_files)%>
ADDITIONAL_IDL_TARGETS +=<%foreach(idl_files)%> <%if(flag_overrides(idl_file, gendir))%><%flag_overrides(idl_file, gendir)%>/<%basenoextension(idl_file)%>$(IDL_CLIENT_HDR_EXT)<%else%><%noextension(idl_file)%>$(IDL_CLIENT_HDR_EXT)<%endif%><%endfor%>
idl_stubs: $(ADDITIONAL_IDL_TARGETS)
-<%if(source_files)%>
# This assignment forces make to run the idl_stubs
# target before building any of the source files.
@@ -608,9 +593,7 @@ endif
ifneq ($(VXWORKSLINK),true)
<%if(libs && libpaths)%>
ifeq ($(static_libs_only), 1)
- ifeq ($(use_dep_libs), 1)
- DEPLIBS = $(foreach lib,<%foreach(libs)%> <%libname_prefix%><%lib%><%endfor%> <%lit_libs%>, $(foreach libpath, <%libpaths%>, $(wildcard $(libpath)/lib$(lib).a)))
- endif
+ DEPLIBS = $(foreach lib, <%libs%> <%lit_libs%>, $(foreach libpath, <%libpaths%>, $(wildcard $(libpath)/lib$(lib).a)))
endif
<%endif%>
diff --git a/bin/PerlACE/Process_Win32.pm b/bin/PerlACE/Process_Win32.pm
index 224afc65bfd..e7bb3fe63df 100644
--- a/bin/PerlACE/Process_Win32.pm
+++ b/bin/PerlACE/Process_Win32.pm
@@ -112,9 +112,7 @@ sub Executable
$executable = PerlACE::Process::Normalize_Executable_Name ($executable);
}
else {
- if ($executable !~ m/.EXE$/i) {
- $executable = $executable.".EXE";
- }
+ $executable = $executable.".EXE";
$executable =~ s/\//\\/g; # / <- # color coding issue in devenv
}
@@ -278,7 +276,7 @@ sub Spawn ()
if ($status != $STILL_ACTIVE) {
print STDERR "ERROR: Spawn failed for <", $self->CommandLine (), ">\n";
- return -1;
+ exit $status;
}
$self->{RUNNING} = 1;
diff --git a/bin/PerlACE/Run_Test.pm b/bin/PerlACE/Run_Test.pm
index 21e22e1f287..d326ec01db6 100644
--- a/bin/PerlACE/Run_Test.pm
+++ b/bin/PerlACE/Run_Test.pm
@@ -21,7 +21,7 @@ if (!defined $svcconf_ext) {
}
# Default timeout. NSCORBA needs more time for process start up.
-$wait_interval_for_process_creation = ($^O eq "nonstop_kernel") ? 10 : (($^O eq "lynxos") ? 12 : ($PerlACE::VxWorks_Test ? 60 : 5));
+$wait_interval_for_process_creation = ($^O eq "nonstop_kernel") ? 10 : ($PerlACE::VxWorks_Test ? 60 : 5);
# Turn on autoflush
$| = 1;
@@ -51,11 +51,6 @@ sub VX_HostFile($)
return $ENV{"HOST_ROOT"}."/".$file;
}
-# Returns a random port within the range of 10002 - 32767
-sub random_port {
- return (int(rand($$)) % 22766) + 10002;
-}
-
# Returns a unique id, uid for unix, last digit of IP for NT
sub uniqueid
{
@@ -155,7 +150,14 @@ sub add_path {
my $name = shift;
my $value = shift;
if (defined $ENV{$name}) {
- $ENV{$name} .= ($^O eq 'MSWin32' ? ';' : ':') . $value
+ # $Config{'path_sep'} gives '/' or '\' we want ':' or ';'
+ #$ENV{$name} .= $Config{'path_sep'} . $value
+ if ($^O eq "MSWin32") {
+ $ENV{$name} .= ';' . $value
+ }
+ else {
+ $ENV{$name} .= ';' . $value
+ }
}
else {
$ENV{$name} = $value;
diff --git a/bin/auto_run_tests.pl b/bin/auto_run_tests.pl
index 3a9f72f8d2c..57431af787b 100755
--- a/bin/auto_run_tests.pl
+++ b/bin/auto_run_tests.pl
@@ -105,17 +105,17 @@ foreach my $test_lst (@file_list) {
}
chdir ($ACE_ROOT."/$directory")
- || print STDERR "ERROR: Cannot chdir to $ACE_ROOT/$directory" || next;
+ || die "Error: Cannot chdir to $ACE_ROOT/$directory";
if ($program =~ /(.*?) (.*)/) {
if (! -e $1) {
- print STDERR "ERROR: $directory.$1 does not exist\n";
+ print STDERR "Error: $directory.$1 does not exist\n";
next;
}
}
else {
if (! -e $program) {
- print STDERR "ERROR: $directory.$program does not exist\n";
+ print STDERR "Error: $directory.$program does not exist\n";
next;
}
}
diff --git a/bin/ciao_tests.lst b/bin/ciao_tests.lst
index 56dab5ab5ac..11e3b9314bf 100644
--- a/bin/ciao_tests.lst
+++ b/bin/ciao_tests.lst
@@ -7,8 +7,7 @@
#
# Example: TAO\examples\foo\run_test.pl: !MINIMUM !ST
#
-TAO/CIAO/examples/Hello/descriptors/run_test.pl: !STATIC !MINIMUM !NOXERCES !ACE_FOR_TAO
-TAO/CIAO/examples/Hello/descriptors/run_test_without_ns.pl: !STATIC !MINIMUM !NOXERCES
-TAO/CIAO/DAnCE/tests/NodeApplicationTest/run_test_simple.pl: !STATIC !MINIMUM
-TAO/CIAO/DAnCE/tests/NodeApplicationTest/run_test.pl: !STATIC !MINIMUM
-TAO/CIAO/DAnCE/tests/NodeApplicationTest/run_test_ex.pl: !STATIC !MINIMUM
+TAO/CIAO/examples/Hello/descriptors/run_test.pl: Exceptions !STATIC !MINIMUM
+TAO/CIAO/DAnCE/tests/NodeApplicationTest/run_test_simple.pl: Exceptions !STATIC !MINIMUM
+TAO/CIAO/DAnCE/tests/NodeApplicationTest/run_test.pl: Exceptions !STATIC !MINIMUM
+TAO/CIAO/DAnCE/tests/NodeApplicationTest/run_test_ex.pl: Exceptions !STATIC !MINIMUM
diff --git a/bin/cle.pl b/bin/cle.pl
index 03f8785f7cd..f72bf44674e 100755
--- a/bin/cle.pl
+++ b/bin/cle.pl
@@ -11,7 +11,6 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
use strict;
use Cwd;
use File::Basename;
-use Sys::Hostname;
if ( $^O eq 'VMS' ) {
require VMS::Filespec;
@@ -111,9 +110,10 @@ sub getExecutePath {
sub getDefaultDomain {
my($domain) = undef;
- my($host) = hostname();
+ my($host) = `hostname`;
if (defined $host) {
+ chop($host);
## First try the hostname
if ($host =~ /[^\.]+\.(.*)/) {
$domain = $1;
@@ -270,8 +270,7 @@ my($status, $error, $unknown) = $editor->edit($file, @dirs);
if (defined $unknown) {
my(@uarray) = @$unknown;
if ($#uarray >= 0) {
- print "WARNING: The following files are unknown to the ",
- "revsion control system:\n";
+ print "WARNING: The following files are unknown to CVS:\n";
foreach my $unk (@uarray) {
print "$unk\n";
}
diff --git a/bin/depgen.pl b/bin/depgen.pl
index 5cb652475e6..fc16d03fe7e 100755
--- a/bin/depgen.pl
+++ b/bin/depgen.pl
@@ -108,8 +108,7 @@ sub usageAndExit {
"Usage: $base [-D<MACRO>[=VALUE]] [-I<include dir>] [-A] " .
"[-R <VARNAME>]\n" .
" " . (" " x length($base)) .
- " [-e <file>] [-f <output file>] [-i] [-t <type>] [-n]\n" .
- " " . (" " x length($base)) . " <files...>\n" .
+ " [-e <file>] [-f <output file>] [-t <type>] [-n] <files...>\n" .
"\n" .
"-D This option sets a macro to an optional value.\n" .
"-I The -I option adds an include directory.\n" .
@@ -120,7 +119,6 @@ sub usageAndExit {
"itself.\n" .
"-f Specifies the output file. This file will be edited if it " .
"already\n exists.\n" .
- "-i Do not print an error if no source files are provided.\n" .
"-n Do not include inline files (ending in .i or .inl) in the " .
"dependencies.\n" .
"-t Use specified type (";
@@ -171,7 +169,7 @@ my(@ipaths) = ();
my(%replace) = ();
my(%exclude) = ();
my($output) = '-';
-my($needsrc) = 1;
+
if (defined $ENV{ACE_ROOT} && !defined $ENV{TAO_ROOT}) {
$ENV{TAO_ROOT} = "$ENV{ACE_ROOT}/TAO";
@@ -223,9 +221,6 @@ for(my $i = 0; $i <= $#ARGV; ++$i) {
usageAndExit($base, 'Invalid use of -f');
}
}
- elsif ($arg eq '-i') {
- $needsrc = undef;
- }
elsif ($arg eq '-n') {
$noinline = 1;
}
@@ -252,9 +247,7 @@ for(my $i = 0; $i <= $#ARGV; ++$i) {
}
if (!defined $files[0]) {
- if ($needsrc) {
- usageAndExit($base, 'No files specified');
- }
+ usageAndExit($base, 'No files specified');
}
my($editor) = new DependencyEditor();
diff --git a/bin/fuzz.pl b/bin/fuzz.pl
index 4a759544538..b05f09d9fd6 100755
--- a/bin/fuzz.pl
+++ b/bin/fuzz.pl
@@ -708,7 +708,7 @@ sub check_for_push_and_pop ()
close (FILE);
if ($disable == 0 && $push_count != $pop_count) {
- print_error ("$file: #pragma warning(push)/(pop) mismatch");
+ print_error ("$file:$.: #pragma warning(push)/(pop) mismatch");
}
}
else {
@@ -717,43 +717,6 @@ sub check_for_push_and_pop ()
}
}
-# This test verifies that the same number of
-# "ACE_VERSIONED_NAMESPACE_BEGIN_DECL" and
-# "ACE_END_VERSIONED_NAMESPACE_DECL" macros are used in a given
-# source file.
-sub check_for_versioned_namespace_begin_end ()
-{
- print "Running versioned namespace begin/end test\n";
- foreach $file (@files_cpp, @files_inl, @files_h) {
- my $begin_count = 0;
- my $end_count = 0;
- if (open (FILE, $file)) {
- print "Looking at file $file\n" if $opt_d;
- while (<FILE>) {
- if (/^\s*\w+_BEGIN_VERSIONED_NAMESPACE_DECL/) {
- ++$begin_count;
- }
- if (/^\s*\w+_END_VERSIONED_NAMESPACE_DECL/) {
- ++$end_count;
- }
- if ($begin_count > $end_count and /^\s*#\s*include\s*/) {
- print_error ("$file:$.: #include directive within Versioned namespace block");
- }
- }
-
- close (FILE);
-
- if ($begin_count != $end_count) {
- print_error ("$file: Versioned namespace begin($begin_count)/end($end_count) mismatch");
- }
- }
- else {
- print STDERR "Error: Could not open $file\n";
- }
- }
-}
-
-
# Check doxygen @file comments
sub check_for_mismatched_filename ()
{
@@ -1274,44 +1237,24 @@ sub check_for_non_bool_operators ()
sub check_for_long_file_names ()
{
my $max_filename = 50;
- my $max_mpc_projectname = $max_filename - 12; ## GNUmakefile.[project_name]
+ my $max_mpc_filename = $max_filename - 20;
print "Running file names check\n";
foreach $file (@files_cpp, @files_inl, @files_h, @files_html,
@files_dsp, @files_dsw, @files_gnu, @files_idl,
@files_pl, @files_changelog, @files_makefile,
- @files_bor, @files_mpc) {
+ @files_bor ) {
if ( length( basename($file) ) >= $max_filename )
{
- print_error ("File name $file meets or exceeds $max_filename chars.");
+ print_error ("File name $file exceeds $max_filename chars.");
}
}
- foreach $file (grep(/\.mpc$/, @files_mpc)) {
- if (open(FH, $file)) {
- my($blen) = length(basename($file)) - 4; ## .mpc
- while(<FH>) {
- if (/project\s*(:.*)\s*{/) {
- if ($blen >= $max_mpc_projectname) {
- print_warning ("File name $file meets or exceeds $max_mpc_projectname chars.");
- }
- }
- elsif (/project\s*\(([^\)]+)\)/) {
- my($name) = $1;
- if ($name =~ /\*/) {
- my($length) = length($name) + (($name =~ tr/*//) * $blen);
- if ($length >= $max_mpc_projectname) {
- print_warning ("Project name ($name) from $file will meet or exceed $max_mpc_projectname chars when expanded by MPC.");
- }
- }
- else {
- if (length($name) >= $max_mpc_projectname) {
- print_warning ("Project name ($name) from $file meets or exceeds $max_mpc_projectname chars.");
- }
- }
- }
+ foreach $file (@files_mpc) {
+ if ( length( basename($file) ) >= $max_mpc_filename )
+ {
+ print_warning ("File name $file exceeds $max_mpc_filename chars.");
}
- close(FH);
- }
+
}
}
@@ -1368,7 +1311,6 @@ if (!getopts ('cdhl:t:mv') || $opt_h) {
check_for_tchar
check_for_pre_and_post
check_for_push_and_pop
- check_for_versioned_namespace_begin_end
check_for_mismatched_filename
check_for_bad_run_test
check_for_absolute_ace_wrappers
@@ -1427,7 +1369,6 @@ check_for_preprocessor_comments () if ($opt_l >= 7);
check_for_tchar () if ($opt_l >= 4);
check_for_pre_and_post () if ($opt_l >= 4);
check_for_push_and_pop () if ($opt_l >= 4);
-check_for_versioned_namespace_begin_end () if ($opt_l >= 4);
check_for_mismatched_filename () if ($opt_l >= 2);
check_for_bad_run_test () if ($opt_l >= 6);
check_for_absolute_ace_wrappers () if ($opt_l >= 3);
@@ -1440,7 +1381,6 @@ check_for_include () if ($opt_l >= 5);
check_for_non_bool_operators () if ($opt_l > 2);
check_for_long_file_names () if ($opt_l > 1 );
-
print "\nFuzz.pl - $errors error(s), $warnings warning(s)\n";
exit (1) if $errors > 0;
diff --git a/bin/generate_compile_stats.sh b/bin/generate_compile_stats.sh
index 7f3fdf353b7..ce665365f80 100755
--- a/bin/generate_compile_stats.sh
+++ b/bin/generate_compile_stats.sh
@@ -126,7 +126,7 @@ strip_date ()
###############################################################################
#
-# parse
+# parse
#
# Parse the commandline and validate the inputs
#
@@ -169,7 +169,7 @@ parse ()
METRIC="Compilation"
fi
echo "metric = ($METRIC)"
-
+
# set the date from command line
if [ $# -gt 4 ]; then
DATE=$5
@@ -221,7 +221,7 @@ gen_chart ()
set xtics rotate
set xlabel 'Date (YYYY/MM/DD)' 0,-3
set ylabel "${YLABEL}"
- set terminal png small size 800,600 color
+ set terminal png small color
set yrange [$low:$high]
set output ".metrics/images/${object}_${TYPE}.png"
set title "${object//___//}"
@@ -343,7 +343,7 @@ composite_list ()
DIR=""
break
fi
-
+
if [ $INDEX -eq 3 ]; then
DIR="${i%?}" # strip off last "'"
DIR="${DIR#*$ACE_ROOT/}" # strip off $ACE_ROOT
@@ -448,7 +448,7 @@ library_list ()
continue
fi
- # not a "make" line, so process it here. We are interested in the
+ # not a "make" line, so process it here. We are interested in the
# 3rd, and last, token, i.e., lib*.a
let INDEX="$INDEX+1"
if [ $INDEX -eq 3 ]; then
@@ -544,7 +544,7 @@ footprint ()
if [ "$TYPE" = "LIB" ]; then
fpath=${FILE%/*}
# now, do the same for all the objects in the file (if any)
- size $FILE |
+ size $FILE |
grep -v text |
awk '{print $4 " : " $6}' | process_included $fpath $lpath $FILE
fi
@@ -572,7 +572,7 @@ process_included ()
LIBRARY="${LIBRARY#*$ACE_ROOT/}" # strip off $ACE_ROOT
LIBRARY="${LIBRARY//\//___}" # replace "/" with "___"
echo -n "$LIBRARY : " >> .metrics/size_composites.txt
-
+
while read size colon file; do
FILE=$fpath/$file
OUTFILE="${FILE#*$ACE_ROOT/}" # strip off $ACE_ROOT
@@ -582,7 +582,7 @@ process_included ()
# add the object
echo -n "$OUTFILE " >> .metrics/size_composites.txt
-
+
done
# add newline
echo "" >> .metrics/size_composites.txt
@@ -707,7 +707,7 @@ create_images ()
create_index_page ()
{
local TYPE="$1"
- local TITLE="$TYPE metrics for ACE+TAO+CIAO"
+ local TITLE="$TYPE metrics for ACE+TAO"
echo "<html>"
echo "<head><title>$TITLE</title></head>"
@@ -721,32 +721,24 @@ create_index_page ()
echo "<br><center><h1>$TITLE</h1></center><br><hr>"
echo '<p>One of the goals of the PCES-TENA project is to decrease compile times.
In order to track our progress, metrics are gathered nightly on all
- objects in the ACE+TAO+CIAO distribution and displayed here.'
+ objects in the ACE+TAO distribution and displayed here.'
echo '<ul>'
echo "<li><a href=\"ace_${TYPE}.html\">ACE</a>"
echo "<li><a href=\"tao_${TYPE}.html\">TAO</a>"
- echo "<li><a href=\"ciao_${TYPE}.html\">CIAO</a>"
echo '</ul>'
echo '<hr>'
- echo '<P>All the experiments run on the system described below. '
- echo 'The machine is running Linux ('
-
- cat /etc/SuSE-release
-
- echo '), and we use GCC '
-
- /usr/bin/gcc -dumpversion > .metrics/gccversion.txt 2>&1
- cat .metrics/gccversion.txt
+ echo '<P>All the experiments run on a dual Pentium 4 @2.4Ghz, with
+ 512Mb of RAM. The machine is running Linux (Redhat 8.1),
+ and we use gcc-3.2 to compile ACE+TAO.
+ </P>'
- echo ' to compile ACE+TAO+CIAO. </P>'
-
- echo '<TABLE border="2"><TBODY><TR><TD>ACE+TAO+CIAO Configuration</TD><TD>config.h</TD></TR>'
+ echo '<TABLE border="2"><TBODY><TR><TD>ACE+TAO Configuration</TD><TD>config.h</TD></TR>'
echo '<TR><TD colspan="2"><PRE>'
cat $ACE_ROOT/ace/config.h
- echo '</PRE></TD></TR><TR><TD>ACE+TAO+CIAO Configuration</TD><TD>platform_macros.GNU</TD></TR>'
+ echo '</PRE></TD></TR><TR><TD>ACE+TAO Configuration</TD><TD>platform_macros.GNU</TD></TR>'
echo '<TR><TD colspan="2"><PRE>'
cat $ACE_ROOT/include/makeinclude/platform_macros.GNU
@@ -788,12 +780,11 @@ create_index_page ()
###############################################################################
create_page ()
{
- # always strip off "TAO___" / "CIAO___"
+ # always strip off "TAO___"
local BASE=$1
local TYPE=$2
local EXT=""
local BASE_NAME=${BASE#TAO___}
- local BASE_NAME=${BASE#CIAO___}
local TITLE="${TYPE} metrics for ${BASE_NAME//___//}"
if [ "$TYPE" = "Compilation" ]; then
@@ -818,11 +809,11 @@ create_page ()
if [ -e ".metrics/images/${BASE}_${TYPE}.png" ]; then
echo '<DIV align="center"><P>'
echo "<IMG alt=\"$BASE\" border=0 src=\"images/${BASE}_${TYPE}.png\""
- echo 'width="800" height="600"></P></DIV>'
+ echo 'width="640" height="480"></P></DIV>'
fi
echo "<br><hr><br>"
- echo "<center><h2>Detail (${DATE})</h2></center>"
+ echo "<center><h2>Detail</h2></center>"
echo '<TABLE border="2"><TBODY><TR><TD rowspan=2><b>Object</b></TD>'
echo '<TD colspan="3"; align=center><b>Last Compile</b></TD></TR>'
@@ -835,8 +826,6 @@ create_page ()
if [ -e ".metrics/${i}_${TYPE}.html" ]; then
# strip off "TAO___" if it exists
NAME=${i#TAO___}
- # strip off "CIAO___" if it exists
- NAME=${i#CIAO___}
echo "<a href=\"${i}_${TYPE}.html\">${NAME//___//}</a>"
elif [ -e ".metrics/images/${i}_${TYPE}.png" ]; then
# since you'll only have images if it's a composite, strip off the
@@ -870,13 +859,6 @@ create_page ()
let VAL_INT="$VAL_TMP/10"
let VAL_TENTH="$VAL_TMP-($VAL_INT*10)"
echo "<TD align=right>${VAL_SIGN}${VAL_INT}.${VAL_TENTH}</TD></TR>"
- else
- echo '<TR><TD>'
- echo "${i}"
- echo '</TD><TD>'
- echo '?'
- echo "</TD><TD align=right>?</TD>"
- echo "<TD align=right>?</TD></TR>"
fi
done # for
echo '</TBODY></TABLE>'
@@ -922,7 +904,6 @@ create_html ()
local ALL_BASE=""
local ACE_OBJS=""
local TAO_OBJS=""
- local CIAO_OBJS=""
while read base colon files; do
# create individual page for app/lib
@@ -930,9 +911,7 @@ create_html ()
sort_list ${files} | create_page ${base} ${TYPE} \
> .metrics/${base}_${TYPE}.html
cp .metrics/${base}_${TYPE}.html $DEST/${base}_${TYPE}.html
- if [ "${base}" != "${base#TAO___CIAO}" ]; then
- CIAO_OBJS="${CIAO_OBJS} ${base}"
- elif [ "${base}" != "${base#TAO}" ]; then
+ if [ "${base}" != "${base#TAO}" ]; then
TAO_OBJS="${TAO_OBJS} ${base}"
else
ACE_OBJS="${ACE_OBJS} ${base}"
@@ -953,10 +932,6 @@ create_html ()
name="tao_${TYPE}.html"
sort_list ${TAO_OBJS} | create_page "TAO" ${TYPE} > .metrics/${name}
cp .metrics/${name} ${DEST}/${name}
-
- name="ciao_${TYPE}.html"
- sort_list ${CIAO_OBJS} | create_page "CIAO" ${TYPE} > .metrics/${name}
- cp .metrics/${name} ${DEST}/${name}
fi
}
@@ -1010,15 +985,15 @@ elif [ "$METRIC" = "Footprint" ]; then
# Run size on the executables and append results to *.size file.
cat .metrics/composites.txt | footprint
- # Run size on the libraries and append results to *.size for the
+ # Run size on the libraries and append results to *.size for the
# library and each contained object.
- # It also creates .metrics/size_composites.txt based on size output for
+ # It also creates .metrics/size_composites.txt based on size output for
# libraries with entries like this:
# ace___libACE.a : ace___ACE.o ace___Addr.o
cat .metrics/libraries.txt | footprint LIB
# Add executables to .metrics/size_composites.txt based on output
- # from the map files (created with LDFLAGS=-Xlinker -M -Xlinker
+ # from the map files (created with LDFLAGS=-Xlinker -M -Xlinker
# -Map -Xlinker $(@).map). Find the map files of we want based on
# entries in .metrics/composites.txt.
cat .metrics/composites.txt | create_size_composites
diff --git a/bin/generate_export_file.pl b/bin/generate_export_file.pl
index 7349f816e4c..a2d42cb2c39 100755
--- a/bin/generate_export_file.pl
+++ b/bin/generate_export_file.pl
@@ -15,13 +15,13 @@ use Getopt::Std;
$flags = join (" ", @ARGV);
-if (!getopts ('df:hsn') || $opt_h) {
+if (!getopts ('df:hs') || $opt_h) {
print STDERR
- "generate_export_file.pl [-d] [-f dependency] [-n] library_name\n",
+ "generate_export_file.pl [-d] [-f dependency] [-s] library_name\n",
"\n",
" -d Turn on debug mode\n",
" -f Adds a dependency to another *_HAS_DLL macro\n",
- " -n Do not add in ACE_AS_STATIC_LIBS check\n",
+ " -s Add in ACE_AS_STATIC_LIBS check\n",
"\n",
"generate_export_file creates the *_export files that are used\n",
"in exporting of symbols for DLLs (and not exporting them when\n",
@@ -39,8 +39,8 @@ if (defined $opt_d) {
print STDERR "Dependency to $opt_f\n";
}
- if (defined $opt_n) {
- print STDERR "ACE_AS_STATIC_LIBS turned off\n";
+ if (defined $opt_s) {
+ print STDERR "ACE_AS_STATIC_LIBS turned on\n";
}
}
@@ -72,7 +72,7 @@ $prologue = '
##############################################################################
# Static Stuff
-if (!defined $opt_n)
+if (defined $opt_s)
{
$static_stuff = "
#if defined (ACE_AS_STATIC_LIBS) && !defined (-UC-_HAS_DLL)
diff --git a/bin/generate_footprint_chart.sh b/bin/generate_footprint_chart.sh
index 49b783dde0a..4aac776be70 100755
--- a/bin/generate_footprint_chart.sh
+++ b/bin/generate_footprint_chart.sh
@@ -8,7 +8,7 @@ gnuplot <<_EOF_ >/dev/null 2>&1
set timefmt '%Y/%m/%d-%H:%M'
set xlabel 'Date (MM/DD)'
set ylabel 'Size (KBytes)'
- set terminal png small size 800,600 color
+ set terminal png small color
set output "$2"
plot '$1' using 1:(\$2/1024.0) title '$3' w l
exit
diff --git a/bin/generate_performance_chart.sh b/bin/generate_performance_chart.sh
index ebff5f13c96..4bdab1d4432 100755
--- a/bin/generate_performance_chart.sh
+++ b/bin/generate_performance_chart.sh
@@ -8,7 +8,7 @@ gnuplot <<_EOF_ >/dev/null 2>&1
set timefmt '%Y/%m/%d-%H:%M'
set xlabel 'Date (YYYYMMDD)'
set ylabel 'Throughput (Requests/Second)'
- set terminal png small size 800,600 color
+ set terminal png small color
set yrange [4000:25000]
set output "$2"
plot '$1' using 1:2 title '$3' w l
diff --git a/bin/generate_rel_manpages b/bin/generate_rel_manpages
index f95ec731ef4..06cc14b943e 100755
--- a/bin/generate_rel_manpages
+++ b/bin/generate_rel_manpages
@@ -13,9 +13,9 @@ require Cwd;
##########
my $hostname;
chomp ($hostname = $ENV{'HOSTNAME'} || `uname -n`);
-unless ("$hostname" eq 'naboo') {
+unless ("$hostname" eq 'tao') {
#### For efficiency sake . . .
- die "$0: must run on host naboo.dre.vanderbilt.edu\n";
+ die "$0: must run on host tao.dre.vanderbilt.edu\n";
}
my $perl_path = '/usr/bin/perl';
@@ -30,7 +30,7 @@ my $dot_path = '/usr/bin';
my $doxy_path = '/usr/bin';
-my $doxy_version = '1.4.6-4';
+my $doxy_version = '1.4.1';
&can_run($doxy_path.'/doxygen --version | grep '.$doxy_version.' >/dev/null') ||
die "$0: doxygen path or version incorrect, please fix the script\n";
diff --git a/bin/generate_topinfo_charts.sh b/bin/generate_topinfo_charts.sh
index 09e2f0a1f51..5785ceeb049 100755
--- a/bin/generate_topinfo_charts.sh
+++ b/bin/generate_topinfo_charts.sh
@@ -8,7 +8,7 @@ gnuplot <<_EOF_ >/dev/null 2>&1
set timefmt '%Y/%m/%d-%H:%M'
set xlabel 'Date (MM/DD)'
set ylabel 'Size (KBytes) $4'
- set terminal png small size 800,600 color
+ set terminal png small color
set output "$2"
plot '$1' using 1:2 title '$3' w l
exit
diff --git a/bin/make_release b/bin/make_release
index d7d52fda0bf..183af2ed167 100755
--- a/bin/make_release
+++ b/bin/make_release
@@ -578,9 +578,8 @@ sub update_version_files () {
die "$0: unable to open ciao/Version.h\n";
print CIAO_VERSION_H
- "// -*- C++ -*-\n" .
- "// \$Id\$\n\n" .
- "// This is file was automatically generated by \$ACE_ROOT/bin/make_release.\n\n" .
+ "// \$Id\$\n" .
+ "// This is an automatically generated file.\n\n" .
"\#define CIAO_MAJOR_VERSION ${major_version}\n" .
"\#define CIAO_MINOR_VERSION ${minor_version}\n" .
"\#define CIAO_BETA_VERSION ${beta_version}\n" .
@@ -606,9 +605,8 @@ sub update_version_files () {
die "$0: unable to open tao/Version.h\n";
print TAO_VERSION_H
- "// -*- C++ -*-\n" .
- "// \$Id\$\n\n" .
- "// This is file was automatically generated by \$ACE_ROOT/bin/make_release.\n\n" .
+ "// \$Id\$\n" .
+ "// This is an automatically generated file.\n\n" .
"\#define TAO_MAJOR_VERSION ${major_version}\n" .
"\#define TAO_MINOR_VERSION ${minor_version}\n" .
"\#define TAO_BETA_VERSION ${beta_version}\n" .
@@ -630,14 +628,12 @@ sub update_version_files () {
die "$0: unable to open ace/Version.h\n";
print ACE_VERSION_H
- "// -*- C++ -*-\n" .
- "// \$Id\$\n\n" .
- "// This is file was automatically generated by \$ACE_ROOT/bin/make_release.\n\n" .
+ "// \$Id\$\n" .
+ "// This is an automatically generated file.\n\n" .
"\#define ACE_MAJOR_VERSION ${major_version}\n" .
"\#define ACE_MINOR_VERSION ${minor_version}\n" .
"\#define ACE_BETA_VERSION ${beta_version}\n" .
- "\#define ACE_VERSION \"${version}\"\n\n";
-## "\#include \"ace/Versioned_Namespace.h\"\n";
+ "\#define ACE_VERSION \"${version}\"\n";
close ACE_VERSION_H;
}
@@ -775,6 +771,10 @@ sub diff () {
########
sub generate_makefiles () {
+ # At this point, the only mwc/mpc files are in ace and tests. When more
+ # are available, this needs to be updated, maybe by cycling through
+ # all non-TAO directories looking for mwc (or mpc?) files.
+ #
# The current ACE_ROOT setting is where this script started from, not
# the staging area we want to generate files in. So, we need to
# specifically set the -relative option on mwc to replace ACE_ROOT
@@ -784,38 +784,22 @@ sub generate_makefiles () {
my $here = Cwd::getcwd();
print "My current wok in generate makefiles $here \n";
- my $exclude_option = '-exclude TAO/TAO_*.mwc,TAO/CIAO/CIAO_*.mwc';
+ my $exclude_option = '-exclude TAO/TAOACE.mwc,TAO/CIAO/CIAOTAO.mwc';
my $tmp_mpc_option =
'-recurse -hierarchy -relative ACE_ROOT=';
my $mpc_option = $tmp_mpc_option.$here.'/ACE_wrappers';
my $tmp_static_option =
- '-static -name_modifier *_Static -apply_project -exclude TAO/CIAO,TAO/TAO_*.mwc ';
+ '-static -name_modifier *_Static -apply_project -exclude TAO/CIAO,TAO/TAOACE.mwc ';
my $static_option = $tmp_static_option.$mpc_option;
- # Visual Studio 2005 (aka VC8) uses the same file suffixes as VC7.1, so
- # append _vc8 to the names.
- my $vc8_option = '-name_modifier *_vc8';
-
- # Additionally, VC8 can do Windows CE builds and these can be
- # configured in. However, the CE builds have uses_wchar turned on,
- # so we don't mix them with the Win32 VC8 files. The complete list of
- # available platforms known at this point is in
- # $MPC_ROOT/template/vc8_platforms.mpt - since the default is Win32
- # and we're generating only CE builds, replace it instead of adding to it.
- my $tmp_ce = '-value_template platforms=\'"Pocket PC 2003 (ARMV4)"\' ';
- $tmp_ce = $tmp_ce.'-value_template platforms+=\'"Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"\'';
- my $ce_option = '-name_modifier *_WinCE -features "uses_wchar=1,wince=1" '.$tmp_ce;
-
&ex ("cd ACE_wrappers; \
bin/mwc.pl $exclude_option $mpc_option; \
find ./ -name 'GNUmake*' | /usr/bin/xargs chmod 0644");
&ex ("cd ACE_wrappers; \
- bin/mwc.pl -type vc8 $mpc_option $exclude_option $vc8_option; \
- bin/mwc.pl -type vc8 $mpc_option $exclude_option $ce_option; \
bin/mwc.pl -type vc71 $mpc_option $exclude_option; \
bin/mwc.pl -type vc6 $mpc_option $exclude_option; \
bin/mwc.pl -type borland $mpc_option $exclude_option; \
diff --git a/bin/mpc.pl b/bin/mpc.pl
index 1fa9409d274..56dd7152891 100755
--- a/bin/mpc.pl
+++ b/bin/mpc.pl
@@ -13,17 +13,16 @@ eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
# ******************************************************************
use strict;
+use Cwd;
use Config;
-use FindBin;
-use File::Spec;
use File::Basename;
-my($basePath) = $FindBin::Bin;
-if ($^O eq 'VMS') {
- $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
- $basePath = VMS::Filespec::unixify($basePath);
+if ( $^O eq 'VMS' ) {
+ require VMS::Filespec;
+ import VMS::Filespec qw(unixpath);
}
-$basePath .= '/MakeProjectCreator';
+
+my($basePath) = getExecutePath($0) . '/MakeProjectCreator';
unshift(@INC, $basePath . '/modules');
my($mpcroot) = $ENV{MPC_ROOT};
@@ -66,6 +65,58 @@ sub getBasePath {
return $mpcpath;
}
+
+sub which {
+ my($prog) = shift;
+ my($exec) = $prog;
+
+ if (defined $ENV{'PATH'}) {
+ my($part) = '';
+ my($envSep) = $Config{'path_sep'};
+ foreach $part (split(/$envSep/, $ENV{'PATH'})) {
+ $part .= "/$prog";
+ if ( -x $part ) {
+ $exec = $part;
+ last;
+ }
+ }
+ }
+
+ return $exec;
+}
+
+
+sub getExecutePath {
+ my($prog) = shift;
+ my($loc) = '';
+
+ if ($prog ne basename($prog)) {
+ my($dir) = ($^O eq 'VMS' ? unixpath(dirname($prog)) : dirname($prog));
+ if ($prog =~ /^[\/\\]/ ||
+ $prog =~ /^[A-Za-z]:[\/\\]?/) {
+ $loc = $dir;
+ }
+ else {
+ $loc = ($^O eq 'VMS' ? unixpath(getcwd()) : getcwd()) . '/' . $dir;
+ }
+ }
+ else {
+ $loc = dirname(which($prog));
+ if ($^O eq 'VMS') {
+ $loc = unixpath($loc);
+ }
+ }
+
+ $loc =~ s/\/\.$//;
+
+ if ($loc eq '.') {
+ $loc = ($^O eq 'VMS' ? unixpath(getcwd()) : getcwd());
+ }
+
+ return $loc;
+}
+
+
# ************************************************************
# Main Section
# ************************************************************
@@ -77,11 +128,9 @@ my($driver) = new MPC();
my($creators) = $driver->getCreatorList();
unshift(@$creators, @creators);
-## Add the mpc path to the include paths, but preserve
-## the original @ARGV as it is included in the output of
-## most of the workspace creators.
-my(@args) = ('-include', "$mpcpath/config",
- '-include', "$mpcpath/templates", @ARGV);
+## Add the mpc path to the include paths
+unshift(@ARGV, '-include', "$mpcpath/config",
+ '-include', "$mpcpath/templates");
## Execute the driver
-exit($driver->execute($basePath, basename($0), \@args));
+exit($driver->execute($basePath, basename($0), \@ARGV));
diff --git a/bin/msvc_cidlc.pl b/bin/msvc_cidlc.pl
index 3d7283b3385..fd171aba381 100755
--- a/bin/msvc_cidlc.pl
+++ b/bin/msvc_cidlc.pl
@@ -97,7 +97,6 @@ sub Build_All ()
return if $Status != 0 && !$Ignore_errors;
}
}
- print STDERR "ERROR: No configurations have been build\n" if ($count == 0);
}
diff --git a/bin/msvc_static_compile.pl b/bin/msvc_static_compile.pl
index 1580302d28e..38531cb0563 100755
--- a/bin/msvc_static_compile.pl
+++ b/bin/msvc_static_compile.pl
@@ -115,24 +115,6 @@ sub Find_Sln (@)
return @array;
}
-sub Rename_Files ($$)
-{
- my ($target) = shift;
- my ($newext) = shift;
- my (@array) = ();
-
- sub wanted_file {
- my ($text) = shift;
- my ($next) = shift;
- if ($File::Find::name =~ /^(.*)$text$/i) {
- my ($newname) = $1 . $next;
- rename ($File::Find::name, $newname);
- }
- }
-
- find (sub { wanted_file ($target, $newext) }, $ACE_ROOT);
-}
-
# Only builds the core libraries.
sub Build_Core ()
{
@@ -156,9 +138,9 @@ sub Build_Core ()
foreach $test ($config_list->valid_entries ()) {
if ($mod_name) {
- @plist = split (/\//, $test);
+ @plist = split(/\//, $test);
$fname = pop @plist;
- $fname_mod = $name_mod;
+ $fname_mod = $name_mod;
$fname_mod =~ s/\*/$fname/;
push @plist,($fname_mod);
push (@core_list, join('/', @plist) . $proj_ext);
@@ -368,36 +350,7 @@ if ($#directories < 0) {
print "msvc_static_compile: Begin\n";
print STDERR "Beginning Core Build\n" if ($print_status == 1);
-if (!$use_custom_dir || $build_core_only) {
- if ($vc7) {
- ## devenv is too smart for it's own good. When a .vcproj is specified,
- ## as is done when building the CORE, it will find the solution to which
- ## the .vcproj belongs and begin to build additional portions of the
- ## solution. This is not what we want as dependencies are not set up
- ## between library projects.
- my($sln) = '.sln';
- my($core_sln) = $sln . '.build_core';
-
- Rename_Files ($sln, $core_sln);
-
- foreach my $sig ('INT', 'TERM') {
- $SIG{$sig} = sub { print STDERR "Renaming solution files, please be patient...\n";
- Rename_Files ($core_sln, $sln);
- exit(1); };
- }
-
- Build_Core ();
-
- Rename_Files ($core_sln, $sln);
-
- foreach my $sig ('INT', 'TERM') {
- $SIG{$sig} = 'DEFAULT';
- }
- }
- else {
- Build_Core ();
- }
-}
+Build_Core if (!$use_custom_dir || $build_core_only);
print STDERR "Beginning Full Build\n" if ($print_status == 1);
if ( $vc7 ) {
Build_All_VC7 if !$build_core_only;
diff --git a/bin/msvc_static_order.lst b/bin/msvc_static_order.lst
index 54a4a2244cb..5d16dba9bf3 100644
--- a/bin/msvc_static_order.lst
+++ b/bin/msvc_static_order.lst
@@ -36,16 +36,13 @@ TAO/tao/TypeCodeFactory
TAO/orbsvcs/orbsvcs/Svc_Utils
TAO/orbsvcs/orbsvcs/CosNaming_IDL
TAO/orbsvcs/orbsvcs/CosNaming
-TAO/orbsvcs/orbsvcs/CosNaming_Skel
TAO/orbsvcs/orbsvcs/CosNaming_Serv
-TAO/orbsvcs/orbsvcs/CosProperty_IDL
+TAO/orbsvcs/orbsvcs/CosNaming_Skel
TAO/orbsvcs/orbsvcs/CosProperty
-TAO/orbsvcs/orbsvcs/CosProperty_Skel
-TAO/orbsvcs/orbsvcs/CosProperty_Serv
TAO/orbsvcs/orbsvcs/CosTrading_IDL
TAO/orbsvcs/orbsvcs/CosTrading
-TAO/orbsvcs/orbsvcs/CosTrading_Skel
TAO/orbsvcs/orbsvcs/CosTrading_Serv
+TAO/orbsvcs/orbsvcs/CosTrading_Skel
TAO/orbsvcs/orbsvcs/HTIOP
TAO/orbsvcs/orbsvcs/AV
TAO/orbsvcs/orbsvcs/ETCL
@@ -55,15 +52,11 @@ TAO/orbsvcs/orbsvcs/RTEvent_Skel
TAO/orbsvcs/orbsvcs/RTEvent_Serv
TAO/orbsvcs/orbsvcs/RTSched
TAO/orbsvcs/orbsvcs/RTSchedEvent
-TAO/orbsvcs/orbsvcs/CosEvent_IDL
TAO/orbsvcs/orbsvcs/CosEvent
-TAO/orbsvcs/orbsvcs/CosEvent_Skel
TAO/orbsvcs/orbsvcs/CosEvent_Serv
+TAO/orbsvcs/orbsvcs/CosEvent_Skel
TAO/orbsvcs/orbsvcs/RTKokyuEvent
-TAO/orbsvcs/orbsvcs/CosConcurrency_IDL
TAO/orbsvcs/orbsvcs/CosConcurrency
-TAO/orbsvcs/orbsvcs/CosConcurrency_Skel
-TAO/orbsvcs/orbsvcs/CosConcurrency_Serv
TAO/orbsvcs/orbsvcs/CosLifeCycle
TAO/orbsvcs/orbsvcs/CosTime
TAO/orbsvcs/orbsvcs/CosNotification_IDL
@@ -93,10 +86,6 @@ TAO/orbsvcs/orbsvcs/CosLoadBalancing
TAO/orbsvcs/orbsvcs/IFRService
TAO/orbsvcs/orbsvcs/RTCORBAEvent
TAO/orbsvcs/orbsvcs/RT_Notification
-TAO/orbsvcs/orbsvcs/RTEventLogAdmin_IDL
-TAO/orbsvcs/orbsvcs/RTEventLogAdmin
-TAO/orbsvcs/orbsvcs/RTEventLogAdmin_Skel
-TAO/orbsvcs/orbsvcs/RTEventLogAdmin_Serv
TAO/orbsvcs/orbsvcs/Security
TAO/orbsvcs/Naming_Service/Naming_Service
TAO/orbsvcs/ImplRepo_Service/ImR_Activator_IDL
@@ -108,13 +97,11 @@ TAO/orbsvcs/ImplRepo_Service/ImR_Locator_Service
TAO/orbsvcs/ImplRepo_Service/tao_imr
TAO/orbsvcs/FT_ReplicationManager/FT_ReplicationManager_Lib
TAO/orbsvcs/orbsvcs/FTRT_ClientORB
-TAO/orbsvcs/tests/Concurrency/CC_client
TAO/orbsvcs/tests/Event/lib/Event_Test_Lib
TAO/orbsvcs/tests/Event/Mcast/Common/ECMcastTests_lib
TAO/orbsvcs/tests/Trading/Trading_Test_Lib
TAO/orbsvcs/examples/CosEC/RtEC_Based/lib/CosEC_RtEC_Based_lib
TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Perf
-TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib
TAO/tests/Smart_Proxies/Collocation/SP_Collocation_TestStubsLib
TAO/tests/Collocation/Collocation_Test_Stub
TAO/examples/POA/Generic_Servant/POA_Generic_Servant_Lib
@@ -123,7 +110,6 @@ TAO/docs/tutorials/Quoter/idl/Quoter_Idl_Lib
TAO/performance-tests/RTCorba/Multiple_Endpoints/Common/RTCORBA_Common
tests/Test_Output
tests/DLL_Test_Parent
-TAO/tests/CSD_Strategy_Tests/TP_Common/CSD_TP_Test_Lib
performance-tests/Synch-Benchmarks/Synch_Lib/Synch_Lib
examples/Service_Configurator/Misc/Service_Configurator_Misc_Timer
examples/Timer_Queue/Timer_Queue_Library
diff --git a/bin/mwc.pl b/bin/mwc.pl
index 13dd157f7ef..688d278b513 100755
--- a/bin/mwc.pl
+++ b/bin/mwc.pl
@@ -13,17 +13,16 @@ eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
# ******************************************************************
use strict;
+use Cwd;
use Config;
-use FindBin;
-use File::Spec;
use File::Basename;
-my($basePath) = $FindBin::Bin;
-if ($^O eq 'VMS') {
- $basePath = File::Spec->rel2abs(dirname($0)) if ($basePath eq '');
- $basePath = VMS::Filespec::unixify($basePath);
+if ( $^O eq 'VMS' ) {
+ require VMS::Filespec;
+ import VMS::Filespec qw(unixpath);
}
-$basePath .= '/MakeProjectCreator';
+
+my($basePath) = getExecutePath($0) . '/MakeProjectCreator';
unshift(@INC, $basePath . '/modules');
my($mpcroot) = $ENV{MPC_ROOT};
@@ -66,6 +65,58 @@ sub getBasePath {
return $mpcpath;
}
+
+sub which {
+ my($prog) = shift;
+ my($exec) = $prog;
+
+ if (defined $ENV{'PATH'}) {
+ my($part) = '';
+ my($envSep) = $Config{'path_sep'};
+ foreach $part (split(/$envSep/, $ENV{'PATH'})) {
+ $part .= "/$prog";
+ if ( -x $part ) {
+ $exec = $part;
+ last;
+ }
+ }
+ }
+
+ return $exec;
+}
+
+
+sub getExecutePath {
+ my($prog) = shift;
+ my($loc) = '';
+
+ if ($prog ne basename($prog)) {
+ my($dir) = ($^O eq 'VMS' ? unixpath(dirname($prog)) : dirname($prog));
+ if ($prog =~ /^[\/\\]/ ||
+ $prog =~ /^[A-Za-z]:[\/\\]?/) {
+ $loc = $dir;
+ }
+ else {
+ $loc = ($^O eq 'VMS' ? unixpath(getcwd()) : getcwd()) . '/' . $dir;
+ }
+ }
+ else {
+ $loc = dirname(which($prog));
+ if ($^O eq 'VMS') {
+ $loc = unixpath($loc);
+ }
+ }
+
+ $loc =~ s/\/\.$//;
+
+ if ($loc eq '.') {
+ $loc = ($^O eq 'VMS' ? unixpath(getcwd()) : getcwd());
+ }
+
+ return $loc;
+}
+
+
# ************************************************************
# Main Section
# ************************************************************
@@ -77,11 +128,9 @@ my($driver) = new MWC();
my($creators) = $driver->getCreatorList();
unshift(@$creators, @creators);
-## Add the mpc path to the include paths, but preserve
-## the original @ARGV as it is included in the output of
-## most of the workspace creators.
-my(@args) = ('-include', "$mpcpath/config",
- '-include', "$mpcpath/templates", @ARGV);
+## Add the mpc path to the include paths
+unshift(@ARGV, '-include', "$mpcpath/config",
+ '-include', "$mpcpath/templates");
## Execute the driver
-exit($driver->execute($basePath, basename($0), \@args));
+exit($driver->execute($basePath, basename($0), \@ARGV));
diff --git a/bin/performance_stats.sh b/bin/performance_stats.sh
index 85143de5d71..6625ce7277e 100755
--- a/bin/performance_stats.sh
+++ b/bin/performance_stats.sh
@@ -42,9 +42,9 @@ sleep 10
)
if grep -q 'Total throughput: ' Default.log; then
(
- echo -n $DATE " ";
+ echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' Default.log
- ) >> Default.txt
+ ) >> Default.txt
fi
/bin/sync
@@ -57,9 +57,9 @@ sleep 2
./default_configuration.pl -t $i > $DEST/source/Sequence_Default_${i}.log 2>&1
if grep -q 'Total throughput: ' $DEST/source/Sequence_Default_${i}.log; then
(
- echo -n $DATE " ";
+ echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' $DEST/source/Sequence_Default_${i}.log
- ) >> $DEST/source/Sequence_Default_${i}.txt
+ ) >> $DEST/source/Sequence_Default_${i}.txt
fi
)
done
@@ -75,9 +75,9 @@ for i in $COMMON_TESTS; do
)
if grep -q 'Total throughput: ' ${i}.log; then
(
- echo -n $DATE " ";
+ echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' $DEST/source/${i}.log
- ) >> ${i}.txt
+ ) >> ${i}.txt
fi
done
@@ -89,12 +89,12 @@ for i in $SEQUENCE_TESTS; do
for j in $SEQ_TEST_TYPE; do
(
./run_test.pl -t $j > $DEST/source/Sequence_${i}_${j}.log 2>&1
-
+
if grep -q 'Total throughput: ' $DEST/source/Sequence_${i}_${j}.log; then
(
- echo -n $DATE " ";
+ echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' $DEST/source/Sequence_${i}_${j}.log
- ) >> $DEST/source/Sequence_${i}_${j}.txt
+ ) >> $DEST/source/Sequence_${i}_${j}.txt
fi
)
done
@@ -131,10 +131,9 @@ gnuplot <<_EOF_ >/dev/null 2>&1
set xlabel 'Date (YYYYMMDD)'
set ylabel 'Throughput (Requests/Second)'
set yrange [0:]
- set terminal png small size 800,600 color
+ set terminal png small color
set output "/dev/null"
- plot 'AMI.txt' using 1:2 title 'AMI' w l
- replot 'DII.txt' using 1:2 title 'DII' w l
+ plot 'DII.txt' using 1:2 title 'DII' w l
replot 'DSI.txt' using 1:2 title 'DSI' w l
replot 'Deferred.txt' using 1:2 title 'Deferred' w l
replot 'Single_Threaded.txt' using 1:2 title 'Single_Threaded' w l
@@ -154,10 +153,9 @@ gnuplot <<_EOF_ >/dev/null 2>&1
set xlabel 'Date (YYYYMMDD)'
set ylabel 'Throughput (Requests/Second)'
set yrange [0:35000]
- set terminal png small size 800,600 color
+ set terminal png small color
set output "/dev/null"
- plot 'AMI.txt' using 1:2 title 'AMI' w l
- replot 'DII.txt' using 1:2 title 'DII' w l
+ plot 'DII.txt' using 1:2 title 'DII' w l
replot 'DSI.txt' using 1:2 title 'DSI' w l
replot 'Deferred.txt' using 1:2 title 'Deferred' w l
replot 'Single_Threaded.txt' using 1:2 title 'Single_Threaded' w l
@@ -188,12 +186,9 @@ fi
cd $DEST/data
/bin/uname -a > uname.txt
/usr/bin/gcc -v > gcc.txt 2>&1
-/usr/bin/gcc -dumpversion > gccversion.txt 2>&1
/lib/libc.so.6 | sed -e 's/</\&lt;/g' -e 's/>/\&gt;/g' > libc.txt
cat /proc/cpuinfo > cpuinfo.txt
cat /proc/meminfo > meminfo.txt
-cat /etc/SuSE-release > linuxversion.txt
cat $ACE_ROOT/ace/config.h > config.h.txt
cat $ACE_ROOT/include/makeinclude/platform_macros.GNU > platform_macros.GNU.txt
-cp $ACE_ROOT/html/Stats/* $DEST
diff --git a/bin/perltest2cpp.pl b/bin/perltest2cpp.pl
new file mode 100755
index 00000000000..1533f945618
--- /dev/null
+++ b/bin/perltest2cpp.pl
@@ -0,0 +1,2251 @@
+eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
+ & eval 'exec perl -S $0 $argv:q'
+ if 0;
+
+# ******************************************************************
+# Author: Chad Elliott (elliott_c@ociweb.com)
+# Date: 4/4/2001
+# $Id$
+# Description: Generate run_test.cpp from run_test.pl for VxWorks
+# ******************************************************************
+
+# ******************************************************************
+# Pragma Section
+# ******************************************************************
+
+use strict;
+use FileHandle;
+use File::Basename;
+
+# ******************************************************************
+# Data Section
+# ******************************************************************
+
+my($firstExecutable) = 1;
+my($needMain) = 0;
+my($indent) = 0;
+my($pindent) = 0;
+my($taodebug) = undef;
+my(@cppheader) = ();
+my(@cppsubs) = ();
+my(@cppbody) = ();
+my(@subs) = ();
+my($timefactor) = 2;
+my($insub) = 0;
+my($indsc) = 0;
+my(%argsList) = ();
+my($shortString) = 256;
+my($unknownArgCount) = 20;
+my($defaultTimeout) = 60;
+my($status) = 0;
+my($lineCount) = 0;
+my($needReadLine) = 1;
+my($needReadFile) = 1;
+my(%timeoutVars) = ();
+
+my($UNDEFINED_VARIABLE) = 1;
+my($UNKNOWN_VARIABLE_TYPE) = 2;
+my($UNSUPPORTED_CONSTRUCT) = 3;
+
+# ******************************************************************
+# Subroutine Section
+# ******************************************************************
+
+sub generateError {
+ my($error) = shift;
+ my($extra) = shift;
+ if ($error == $UNDEFINED_VARIABLE) {
+ print STDERR "Error: Undefined variable ($extra) at line $lineCount\n";
+ $status++;
+ }
+ elsif ($error == $UNKNOWN_VARIABLE_TYPE) {
+ print STDERR "Error: Unknown variable type " .
+ "for ($extra) at line $lineCount\n";
+ $status++;
+ }
+ elsif ($error == $UNSUPPORTED_CONSTRUCT) {
+ print STDERR "Error: Unsupported construct ($extra) at line $lineCount\n";
+ $status++;
+ }
+}
+
+
+sub getIndent {
+ if ($pindent != $indent) {
+ my($str) = " " x ($pindent * 2);
+ $pindent = $indent;
+ return $str;
+ }
+ return " " x ($indent * 2);
+}
+
+
+sub concatenate {
+ my($value) = shift;
+ my($length) = length($value);
+ my($indouble) = 0;
+ my($insingle) = 0;
+
+ for(my $i = 0; $i < $length; $i++) {
+ my($ch) = substr($value, $i, 1);
+ if (!$insingle && $ch eq '"') {
+ $indouble ^= 1;
+ }
+ elsif (!$indouble && $ch eq '\'') {
+ $insingle ^= 1;
+ }
+ elsif ($ch eq '.' && !$indouble && !$insingle) {
+ my($rc) = undef;
+ my($lc) = $i;
+ for($i++; $i < $length; $i++) {
+ my($a) = substr($value, $i, 1);
+ if ($a !~ /\s/) {
+ if ($a eq '\'' || $a eq '"') {
+ $rc = $i + 1;
+ }
+ elsif ($a eq '$') {
+ $rc = $i;
+ }
+ last;
+ }
+ }
+ for($lc--; $lc >= 0; $lc--) {
+ my($a) = substr($value, $lc, 1);
+ if ($a !~ /\s/) {
+ if ($a ne '\'' && $a ne '"') {
+ $lc++;
+ }
+ last;
+ }
+ }
+ if (defined $rc) {
+ my($rold) = substr($value, $rc - 1, 1);
+ my($lold) = substr($value, $lc, 1);
+
+ substr($value, $lc, $rc - $lc) = "";
+ $length = length($value);
+ my($front) = substr($value, 0, $lc);
+ my($back) = substr($value, $lc);
+ if ($lold eq '"') {
+ if ($rold eq '"') {
+ $indouble ^= 1;
+ }
+ else {
+ if ($back !~ /\"/) {
+ $indouble = 1;
+ }
+ }
+ }
+ elsif ($lold =~ /\s/ && $rold eq '"' && $front =~ /\"/) {
+ $indouble ^= 1;
+ }
+ elsif ($lold eq '\'') {
+ if ($rold eq '\'') {
+ $insingle ^= 1;
+ }
+ else {
+ if ($back !~ /\'/) {
+ $insingle = 1;
+ }
+ }
+ }
+ elsif ($lold =~ /\s/ && $rold eq '\'' && $front =~ /\'/) {
+ $insingle ^= 1;
+ }
+
+ if ($back =~ /^([\$\@][^\s;]+)/) {
+ my($target) = $1;
+ if ($indouble) {
+ $back =~ s/[\$\@][^\s;]+/$target\"/;
+ }
+ elsif ($insingle) {
+ $back =~ s/[\$\@][^\s;]+/$target\'/;
+ }
+ $value = $front . $back;
+ $length++;
+ }
+
+ $i = $lc - 1;
+#########################################################
+# Fix for $debug = $debug . " -d";
+#########################################################
+ if (!$indouble && !$insingle &&
+ substr($value, 0, $i) !~ /$rold/) {
+ for(my $j = $i; $j >= 0; $j--) {
+ my($ich) = substr($value, $j, 1);
+ if ($ich eq '$') {
+ substr($value, $j, 1) = "$rold\$";
+ $i++;
+ if ($rold eq '"') {
+ $indouble ^= 1;
+ }
+ else {
+ $insingle ^= 1;
+ }
+ last;
+ }
+ }
+ }
+#########################################################
+ }
+ }
+ }
+
+ if ($indouble || $insingle) {
+ print "DEBUG1: $value\n" .
+ " indouble = $indouble insingle = $insingle\n\n";
+ }
+
+ return $value;
+}
+
+
+sub typeToCPPType {
+ my($str) = shift;
+ if ($str eq "%d") {
+ return "int";
+ }
+ if ($str eq "%f") {
+ return "float";
+ }
+ if ($str eq "%s") {
+ return "char";
+ }
+ return "void";
+}
+
+my(@mainList) = ();
+sub getMainList {
+ if (!defined $mainList[0]) {
+ my($fh) = new FileHandle();
+ if (open($fh, "GNUmakefile")) {
+ my($line) = "";
+ while(<$fh>) {
+ $line .= $_;
+ if ($line =~ /\\\s*$/) {
+ $line =~ s/\\\s*$//;
+ }
+ else {
+ if ($line =~ /BIN(_UNCHECKED|2)?\s*[\+]?=/ &&
+ $line !~ /\$\(/ && $line !~ /run_test/) {
+ if ($line =~ /\s*=\s*(.*)/) {
+ my($bins) = $1;
+ if ($bins =~ /patsubst/) {
+ ## TBD: Fix for pattern substitution
+ }
+ else {
+ foreach my $main (split(/\s+/, $bins)) {
+ $main =~ s/\-/_/g;
+ push(@mainList, $main . "_main");
+ }
+ }
+ }
+ }
+ $line = "";
+ }
+ }
+ close($fh);
+ }
+ }
+ return @mainList;
+}
+
+
+my(%declared) = ("!" => "%s");
+my(%decscope) = ("!" => -1);
+sub addParameterToCurrentSub {
+ my($var) = shift;
+ my($type) = shift;
+ if (!defined $type) {
+ $type = "char*";
+ }
+
+ for(my $i = $#cppsubs; $i >= 0; $i--) {
+ if ($cppsubs[$i] =~ /\/\*params\*\//) {
+ if ($cppsubs[$i] =~ /\(\/\*params/) {
+ $cppsubs[$i] =~ s/\/\*params/$type $var \/\*params/;
+ }
+ else {
+ $cppsubs[$i] =~ s/\/\*params/, $type $var \/\*params/;
+ }
+ $declared{$var} = "%s";
+ $decscope{$var} = $indent;
+ last;
+ }
+ }
+}
+
+
+sub getTop {
+ my($os) = "OSNAME";
+ my($top) = "// \$Id\$\n\n" .
+ "#include <ace/OS.h>\n" .
+ "#include <ace/Get_Opt.h>\n" .
+ "#include <tao/debug.h>\n" .
+ "#include <tests/TestUtils/TestCombinedThreads.h>\n\n" .
+ "static const char* $os = \"VxWorks\";\n\n";
+
+ $declared{$os} = "%s";
+ $decscope{$os} = -1;
+
+ foreach my $main (getMainList()) {
+ $top .= "TEST_MAIN_FUNC_DECLARE($main);\n";
+ }
+ $top .= "\n" .
+ "static int\nunlocated_main(int, char**)\n" .
+ "{\n" .
+ " ACE_OS::printf(\"Translation of this module did \"\n" .
+ " \"not work. Please check the code.\\n\");\n" .
+ " return 0;\n" .
+ "}\n\n\n" .
+
+ "TEST_MAIN_TYPE_FUNC\n" .
+ "translateStringToMainFunction(const char* string)\n" .
+ "{\n" .
+ " ACE_UNUSED_ARG(string);\n";
+ foreach my $main (getMainList()) {
+ my($stripped) = $main;
+ $stripped =~ s/_main//;
+ $top .= " if (ACE_OS_String::strcmp(string, \"$stripped\") == 0) {\n" .
+ " return $main;\n" .
+ " }\n";
+ }
+ $top .= " return unlocated_main;\n" .
+ "}\n\n";
+
+ return $top;
+}
+
+
+sub incrementIndent {
+ $pindent = $indent;
+ $indent++;
+}
+
+
+sub decrementIndent {
+ $indent--;
+ foreach my $key (keys %decscope) {
+ if ($decscope{$key} > $indent) {
+ delete $declared{$key};
+ delete $decscope{$key};
+ }
+ }
+ $pindent = $indent;
+}
+
+sub getMainBeginning {
+ return "\n\nint main(int argc, char* argv[])\n" .
+ "{\n" .
+ " // Silence the compiler\n" .
+ " ACE_UNUSED_ARG(argc);\n" .
+ " ACE_UNUSED_ARG(argv);\n" .
+ " ACE_UNUSED_ARG(OSNAME);\n" .
+ " translateStringToMainFunction(\"\");\n\n";
+}
+
+
+sub getMainEnding {
+ my($ending) = " return 0;\n}\n\n";
+ decrementIndent();
+ return $ending;
+}
+
+
+my($currentBuild) = "";
+sub buildLine {
+ my($line) = shift;
+ my($length) = length($line);
+ my($previous) = "";
+ my($insideDouble) = 0;
+ my($insideSingle) = 0;
+ my($copy) = "";
+
+ $currentBuild .= $line;
+ for(my $i = 0; $i < $length; $i++) {
+ my($ch) = substr($line, $i, 1);
+ if ($previous ne '\\') {
+ if (!$insideSingle && $ch eq '"') {
+ $insideDouble ^= 1;
+ }
+ elsif (!$insideDouble && $ch eq '\'') {
+ $insideSingle ^= 1;
+ }
+ }
+
+ if (($ch eq ';' || $ch eq '{' || $ch eq '}') &&
+ (!$insideDouble && !$insideSingle)) {
+ $copy = $currentBuild;
+ $currentBuild = "";
+ last;
+ }
+ $previous = $ch;
+ }
+
+ return $copy;
+}
+
+
+sub stringToArray {
+ my($str) = shift;
+ my(@array) = ();
+ my($length) = length($str);
+ my($previous) = 0;
+ for(my $i = 0; $i < $length; $i++) {
+ my($ch) = substr($str, $i, 1);
+ if ($ch =~ /\s/) {
+ push(@array, substr($str, $previous, $i - $previous));
+ $previous = $i;
+ while(substr($str, $i, 1) =~ /\s/) {
+ $i++;
+ }
+ push(@array, substr($str, $previous, $i - $previous));
+ $previous = $i;
+ }
+ }
+ push(@array, substr($str, $previous));
+ return @array;
+}
+
+
+sub lineNeedsToSplit {
+ my($line) = shift;
+ if ($line =~ /ACE_OS/) {
+ if ($line =~ /(ACE_OS.*\((\w+),\s*)(.*)(\);)/ &&
+ $line !~ /argv\[[^\]]+\]/) {
+ return $1, $2, $3, $4;
+ }
+ }
+ elsif ($line =~ /(.*\s+(\w+)\[.*\]\s+=\s+)(.*)(;)$/) {
+ return $1, $2, $3, $4;
+ }
+ return undef;
+}
+
+
+my($genstr) = 0;
+sub splitProcessArguments {
+ my($av) = shift;
+ my($line) = shift;
+ my($assign) = shift;
+ my($argcount) = 0;
+ my(@array) = stringToArray($av);
+ my($stillString) = 0;
+ my($needACE) = 1;
+ my($needClosing) = 0;
+ my($stored) = "";
+
+ for(my $a = 0; $a <= $#array; $a++) {
+ $array[$a] =~ s/^[\"\']//;
+ $array[$a] =~ s/[\"\']$//;
+ if ($array[$a] =~ /\"\s*$/ || $array[$a] eq "") {
+ }
+ else {
+ my($needQuotes) = 1;
+ $argcount++;
+ if ($array[$a] =~ /\$/) {
+ $needQuotes = 0;
+ if ($array[$a] !~ /^\$/) {
+ ## Part string, part variable
+ my($foo) = $array[$a];
+ $foo =~ /([^\$]+)(\$\w+)/;
+ my($p1) = $1;
+ my($source) = $2;
+ $p1 =~ s/^\"//;
+ $stillString = 1;
+ splice(@array, $a + 1, 1, $source);
+ $array[$a] = $p1;
+ }
+ else {
+ $stillString = 0;
+ $needACE = 1;
+ }
+ }
+ else {
+ $stillString = 1;
+ }
+ $array[$a] =~ s/[\$\"\']//g;
+ if ($needACE) {
+ if ($needClosing) {
+ if ($stored ne "") {
+ $$line .= $stored;
+ $stored = "";
+ }
+ $$line .= "\");\n" . (" " x (2 * $indent));
+ }
+ setNeedMain();
+ $stored = "ACE_OS_String::strcat($assign, ";
+ if ($needQuotes) {
+ $stored .= "\"";
+ }
+ $needACE = 0;
+ $needClosing = 0;
+ }
+ if ($stored ne "") {
+ if (defined $declared{$array[$a]} &&
+ $declared{$array[$a]} ne "%s") {
+ my($newstr) = "char genstr$genstr" . "[64] = \"\";\n" .
+ getIndent() .
+ "ACE_OS::sprintf(genstr$genstr, \"%d\", " .
+ "$array[$a]);\n";
+ $stored = "$newstr$stored";
+ $array[$a] = "genstr$genstr";
+ $genstr++;
+ }
+ $$line .= $stored;
+ $stored = "";
+ }
+ if ($stillString) {
+ $$line .= "$array[$a]";
+ $needClosing = 1;
+ }
+ else {
+ $$line .= "$array[$a]);\n" . (" " x (2 * $indent));
+ if ($a != $#array) {
+ setNeedMain();
+ $stored = "ACE_OS_String::strcat($assign, \"";
+ $stillString = 1;
+ $needACE = 0;
+ $needClosing = 1;
+ }
+ else {
+ $needClosing = 0;
+ }
+ }
+ }
+ }
+ if ($needClosing) {
+ if ($stored ne "") {
+ $$line .= $stored;
+ $stored = "";
+ }
+ $$line .= "\");\n";
+ }
+ return $argcount;
+}
+
+
+my($gencount) = 0;
+sub splitArguments {
+ my($av) = shift;
+ my($line) = shift;
+ my($sep) = shift;
+ my($argcount) = 0;
+ my(@array) = ();
+ if (defined $sep) {
+ @array = split($sep, $av);
+ for(my $i = 0; $i <= $#array; $i++) {
+ $array[$i] =~ s/^\s+//;
+ $array[$i] =~ s/\s+$//;
+ if ($array[$i] eq "") {
+ splice(@array, $i, 1);
+ }
+ }
+ }
+ else {
+ @array = split(/\s+/, $av);
+ }
+ for(my $a = 0; $a <= $#array; $a++) {
+ if ($array[$a] =~ /-ORBDebugLevel/i) {
+ $a++;
+ $array[$a] =~ s/[\$\"\']//g;
+ if (defined $declared{$array[$a]} &&
+ $declared{$array[$a]} eq "%d") {
+ $taodebug = $array[$a];
+ }
+ elsif ($array[$a] =~ /^[-+]?\d+$/) {
+ $taodebug = $array[$a];
+ }
+ else {
+ $taodebug = "ACE_OS::atoi(\"$array[$a]\")";
+ }
+ }
+ elsif ($array[$a] eq '"') {
+ }
+ else {
+ my($needQuotes) = 1;
+ $argcount++;
+ if ($array[$a] =~ /\$/) {
+ $needQuotes = 0;
+ if ($array[$a] !~ /^\$/) {
+ ## Part string, part variable
+ my($foo) = $array[$a];
+ $foo =~ /([^\$]+)\$(\w+)/;
+ my($p1) = $1;
+ my($source) = $2;
+ $p1 =~ s/^\"//;
+ my($old) = $$line;
+ my($str) = "gen_partial$gencount";
+ $$line = "char $str" . "[BUFSIZ] = \"$p1\";\n" .
+ (" " x (2 * $indent));
+ if (defined $declared{$source} && $declared{$source} eq "%s") {
+ setNeedMain();
+ $$line .= "ACE_OS_String::strcat($str";
+ }
+ elsif (defined $declared{$source} && $declared{$source} eq "%d") {
+ setNeedMain();
+ $$line .= "char gen_partial" . ($gencount + 1) .
+ "[$shortString] = \"\";\n" .
+ (" " x (2 * $indent)) .
+ "ACE_OS::sprintf(gen_partial" . ($gencount + 1) .
+ ", \"%d\", $source);\n" . (" " x (2 * $indent)) .
+ "ACE_OS_String::strcat($str";
+ $gencount++;
+ $source = "gen_partial$gencount";
+ }
+ else {
+ $$line .= "// *** Unknown source type for: ";
+ generateError($UNKNOWN_VARIABLE_TYPE, $source);
+ }
+ $$line .= ", $source);\n" . (" " x (2 * $indent)) . $old;
+ $array[$a] = $str;
+ $gencount++;
+ }
+ }
+ $array[$a] =~ s/[\$\"\']//g;
+ if ($needQuotes) {
+ $array[$a] = "\"$array[$a]\"";
+ }
+ $$line .= "$array[$a], ";
+ }
+ }
+ return $argcount;
+}
+
+sub handleAssignment {
+ my($line) = shift;
+ my($concat) = (/\$(\w+)\s*\.=\s*(.*);/);
+
+ if ($line =~ /\$(\w+)\s*[\.]?=\s*(.*);/) {
+ ## Regular assignment
+ my($var) = $1;
+ my($val) = $2;
+
+ if ($val =~ /time/) {
+ if (!defined $declared{$var}) {
+ $declared{$var} = "%d";
+ $decscope{$var} = $indent;
+ $line = "time_t ";
+ }
+ else {
+ $line = "";
+ }
+ $line .= "$var = time(NULL);";
+ }
+ elsif ($val =~ /^new\s+([\w:]+)\s*\((.*)\)/) {
+ my($params) = $2;
+ if ($1 eq "PerlACE::Process") {
+ if (!defined $declared{$var}) {
+ $declared{$var} = 0;
+ }
+ else {
+ $declared{$var}++;
+ }
+ if ($params =~ /.*\s*(,\s*.*)?/) {
+ my($mv) = undef;
+ my($av) = "";
+ if ($params =~ /(.*)\s*,\s*([\"\$].*)/) {
+ $mv = $1;
+ $av = $2;
+ }
+ elsif ($params =~ /(.*)/) {
+ $mv = $1;
+ }
+#if ($av eq "") {
+# print "DEBUG4: '$mv' '$av'\n";
+#}
+ my($argcount) = 1;
+ my($argvar) = $var;
+ if ($declared{$argvar} != 0) {
+ $argvar .= $declared{$argvar};
+ }
+ $line = "char* $argvar" . "Args[] = { ";
+ if ($mv =~ /\$(\w+)/) {
+ $mv = $1;
+ }
+ $line .= "$mv, ";
+ my($arguments) = "";
+ splitArguments($av, \$arguments);
+ ## Determine if the result of splitArguments
+ ## should be added to $argcount
+ $argsList{$var} = $argcount;
+
+ ## Is there a splitable variable in the argument list?
+ my($resplit) = 1;
+ if ($arguments =~ /^\w+,\s*$/ || $arguments =~ /,\s*\w+\s*,/) {
+ my(@arr) = split(/\n/, $arguments);
+ foreach my $test (split(",", $arr[$#arr])) {
+ $test =~ s/^\s+//;
+ $test =~ s/\s+$//;
+ if (defined $declared{$test} && $declared{$test} eq "%s" &&
+ $test !~ /ior/ && $test !~ /conf/ && $test !~ /gen_/) {
+ $resplit = 0;
+ last;
+ }
+ }
+ if (!$resplit) {
+ $line =~ s/\[\]/\[$unknownArgCount\]/;
+ $line .= "0 };\n";
+ for(my $l = 0; $l < $#arr; $l++) {
+ if ($l == 0) {
+ $line .= (" " x (2 * $indent));
+ }
+ $line .= "$arr[$l]\n";
+ }
+ $arguments = $arr[$#arr];
+ $arguments =~ s/^(\w)/\$$1/;
+ $arguments =~ s/,\s*(\w)/, \$$1/g;
+ $line .= (" " x (2 * $indent)) .
+ handleArguments($line, $var, $arguments, ",");
+ }
+ }
+ if ($resplit) {
+ splitArguments($av, \$line);
+ $line .= "0 };\n";
+ }
+
+ $line .= (" " x (2 * $indent)) .
+ ($declared{$var} > 0 ? "$var = TAO_TestCombinedThreads" :
+ "TAO_TestCombinedThreads $var") .
+ "(" .
+ ($mv =~ /\"(.*)\"/ ? $mv = "$1" ."_main" :
+ "translateStringToMainFunction($mv)") .
+ ", $argvar" . "Args);";
+ }
+ if (!$insub && $line =~ /ACE_OS/) {
+ setNeedMain();
+ }
+ }
+ }
+ elsif ($val =~ /->/) {
+ if (!defined $declared{$var}) {
+ $declared{$var} = "%d";
+ $decscope{$var} = ($firstExecutable ? -1 : $indent);
+ $line = ($firstExecutable && !$insub ? "static " : "") .
+ typeToCPPType($declared{$var}) . " ";
+ }
+ else {
+ $line = "";
+ }
+ $line .= "$var = ";
+ if ($val =~ /Spawn/) {
+ my($wait) = "";
+ if ($val =~ /\((.*)\)/) {
+ my($tout) = $1;
+ if ($tout =~ /^\d+$/ && $tout > $defaultTimeout) {
+ $defaultTimeout = $tout;
+ }
+ $wait = "($tout * $timefactor)";
+ }
+ my($spvar, $spval) = handleSpawn($val);
+ $line = "$spvar$spval\n" . (" " x (2 * $indent)) .
+ $line . "$spvar.wait($wait);";
+ }
+ elsif ($val =~ /[\$]?([\w\[\]\$]+)->WaitKill/) {
+ my($var) = $1;
+ my($ovar) = $var;
+ my($op) = ".";
+ my($tfix) = $var;
+ $var =~ s/\$//g;
+ $tfix =~ s/\[.*//;
+ if ($var =~ /\[/) {
+ $ovar =~ s/[\[\]\$]//g;
+ $op = "->";
+ }
+# elsif ($declared{$tfix} != 0) {
+# $var .= $declared{$tfix};
+# }
+ handleWaitKill($val, $ovar);
+ $line .= "$var$op" . "wait($ovar" . "Timeout);";
+ }
+ elsif ($val =~ /WaitKill/) {
+ handleWaitKill($val);
+ $line .= "0;";
+ }
+ }
+ elsif ($val =~ /[\"\']([^\"\']+)?[\"\']/ || $val =~ /(\w+)\[([^\]]+)\]/) {
+ my($value) = "";
+ my($needQuotes) = 1;
+ if ($val =~ /[\"\'](.*)[\"\']/) {
+# Quoted double quotes don't work with this regexp 8/21/2001
+# $val =~ /[\"\']([^\"\']+)[\"\']/) {
+ $value = $1;
+ }
+ elsif ($val =~ /(\w+)\[([^\]]+)\]/) {
+ $value = $1 . "[$2]";
+ $needQuotes = 0;
+ }
+
+ my($pre) = "";
+ my($post) = "";
+ my($edit) = $val;
+ $edit =~ s/\\\"//g;
+ $edit =~ s/\\\'//g;
+ my($fch) = substr($edit, 0, 1);
+
+ if (($fch eq '"' || $fch eq '\'') && $edit =~ /$fch$/) {
+ }
+ elsif ($edit =~ /(\w+)\s+[\"\'][^\"\']+[\"\']/) {
+ $pre = "$1 ";
+ }
+ if (!defined $declared{$var}) {
+ $declared{$var} = "%s";
+ $decscope{$var} = ($firstExecutable ? -1 : $indent);
+ $line = ($firstExecutable && !$insub ? "static " : "") .
+ typeToCPPType($declared{$var}) . " ";
+ if ($pre ne "") {
+ $post = "[BUFSIZ]";
+ }
+ else {
+ $post = "[$shortString]";
+ }
+ $line .= "$var$post = ";
+ if ($needQuotes) {
+ $line .= "$pre\"$value\";";
+ }
+ else {
+ if (defined $declared{$value} && $declared{$value} ne "%s") {
+ $line .= "\"\"; ACE_OS::sprintf($var, \"$declared{$value}\", $value);";
+ }
+ else {
+ $line .= "\"\"; ACE_OS_String::strcpy($var, $value);";
+ }
+ }
+ }
+ else {
+ if (defined $declared{$var} && $declared{$var} eq "%d") {
+ $line = "$var = ACE_OS::atoi($pre";
+ }
+ elsif (defined $declared{$var} && $declared{$var} eq "%f") {
+ $line = "$var = ACE_OS::atof($pre";
+ }
+ else {
+ setNeedMain();
+ $line = "ACE_OS_String::str" . ($concat ? "cat" : "cpy") .
+ "($var, $pre";
+ }
+ if ($needQuotes) {
+ $line .= "\"$value\");";
+ }
+ else {
+ $line .= "$value);";
+ }
+ }
+
+ if ($line =~ /[^\\]\$/) {
+ my($left, $var, $right, $end) = lineNeedsToSplit($line);
+ if (defined $left) {
+ my($newStr) = "";
+
+ setNeedMain();
+ splitProcessArguments($right, \$newStr, $var);
+ $line = ($left =~ /strcat/ ? "" :
+ $left . "\"\"$end\n" . (" " x (2 * $indent))) .
+ $newStr;
+ }
+ else {
+ $line =~ s/\$//g;
+ }
+ }
+ }
+ elsif ($val =~ /^[+\-\d]+$/) {
+ if (!defined $declared{$var}) {
+ $declared{$var} = "%d";
+ $decscope{$var} = ($firstExecutable ? -1 : $indent);
+ $line = ($firstExecutable && !$insub ? "static " : "") .
+ typeToCPPType($declared{$var}) . " ";
+ }
+ else {
+ $line = "";
+ }
+ $line .= "$var = $val;";
+ }
+ elsif ($val =~ /^[+\-\d\.]+$/) {
+ if (!defined $declared{$var}) {
+ $declared{$var} = "%f";
+ $decscope{$var} = ($firstExecutable ? -1 : $indent);
+ $line = ($firstExecutable && !$insub ? "static " : "") .
+ typeToCPPType($declared{$var}) . " ";
+ }
+ else {
+ $line = "";
+ }
+ $line .= "$var = $val;";
+ }
+ elsif ($val =~ /TAO_TestCombinedThreads.*[+\-\d]+/) {
+ if (!defined $declared{$var}) {
+ $declared{$var} = "%d";
+ $decscope{$var} = ($firstExecutable ? -1 : $indent);
+ $line = ($firstExecutable && !$insub ? "static " : "") .
+ typeToCPPType($declared{$var}) . " ";
+ }
+ else {
+ $line = "";
+ }
+ $line .= "$var = $val;";
+ }
+ elsif ($val =~ /shift/) {
+ $line = "// Parameters converted from: $var = $val;";
+ if ($insub) {
+ addParameterToCurrentSub($var);
+ }
+ }
+ elsif ($val =~ /[+\-\d\s\w]+/) { ## Come up with a better regexp
+ ## for var to var assignment
+ ## Strip of \* from FILE handles
+ $val =~ s/\\\*//g;
+
+ $val =~ s/\$//g;
+ my($type) = "%d";
+ my($vtype) = $declared{$val};
+
+ if (!defined $vtype) {
+ $vtype = $type;
+ }
+
+ if (!defined $declared{$var}) {
+ $declared{$var} = $vtype;
+ $decscope{$var} = ($firstExecutable ? -1 : $indent);
+ $line = ($firstExecutable && !$insub ? "static " : "") .
+ typeToCPPType($declared{$var}) . " ";
+ }
+ else {
+ $line = "";
+ }
+
+ if (defined $vtype && $type ne $vtype) {
+ if ($type eq "%d") {
+ $line .= "$var = ";
+ if ($vtype eq "%s") {
+ $line .= "ACE_OS::atoi(";
+ }
+ elsif ($vtype eq "%f") {
+ $line .= "int(";
+ }
+ else {
+ $line .= "(";
+ }
+ }
+ elsif ($type eq "%s") {
+ $line .= "ACE_OS::sprintf($var, \"$vtype\", ";
+ }
+ elsif ($type eq "%f") {
+ $line .= "$var = ";
+ if ($vtype eq "%s") {
+ $line .= "ACE_OS::atof(";
+ }
+ elsif ($vtype eq "%d") {
+ $line .= "float(";
+ }
+ else {
+ $line .= "(";
+ }
+ }
+ else {
+ $line .= "$var = (";
+ }
+ }
+ else {
+ $line .= "$var = ";
+ }
+ $line .= $val;
+ if (defined $vtype && $type ne $vtype) {
+ $line .= ")";
+ }
+ $line .= ";";
+ }
+ else {
+ if (!$declared{$var}) {
+ $declared{$var} = "%x";
+ $decscope{$var} = $indent;
+ $line = "// Assignment: ";
+ }
+ else {
+ $line = "";
+ }
+ $line .= "$var = $val;";
+ }
+ }
+ elsif ($line =~ /\@(\w+)\s*=\s*(.*);/) {
+ my($var) = $1;
+ my($val) = $2;
+ my($arrtype) = "char*";
+ my($count) = 0;
+
+ $val =~ s/^\(//;
+ $val =~ s/\)$//;
+
+ ## This is horrible code - CAE
+ ## By convention only, the processes are called SV and CL.
+ if ($var =~ /^[A-Z]+$/) {
+ $arrtype = "TAO_TestCombinedThreads*";
+ }
+
+ if (!$declared{$var}) {
+ $declared{$var} = "%s";
+ $decscope{$var} = $indent;
+
+ $line = "$arrtype $var\[\] = { ";
+ foreach my $v (split(/,/, $val)) {
+ $v =~ s/^\s+//;
+ $v =~ s/\s+$//;
+ my($embedded) = handleEmbeddedVar($v);
+ if ($v ne $embedded) {
+ $v = "gen_partial$gencount";
+ $line = ($count != 0 ? getIndent() : "") .
+ "static char $v" . "[BUFSIZ] = \"\";\n" .
+ (" " x (2 * $indent)) .
+ "ACE_OS::sprintf($v, $embedded);\n" . $line;
+ if ($count != 0) {
+ $v = ", $v";
+ }
+ $gencount++;
+ }
+ else {
+ if ($count != 0) {
+ $line .= getIndent();
+ $v = ", $v";
+ }
+ }
+ ##
+ $line .= $v;
+ $count++;
+ }
+ if ($count == 0) {
+ $line = "$arrtype $var" . "[256] = { 0 };";
+ $declared{$var} = "%x";
+ }
+ else {
+ $line .= " };\n" .
+ (" " x (2 * $indent)) .
+ "int $var" . "_length = $count;\n" .
+ (" " x (2 * $indent)) .
+ "ACE_UNUSED_ARG($var" . "_length);";
+ $declared{$var . "_length"} = "%d";
+ $decscope{$var . "_length"} = $indent;
+ }
+ }
+ else {
+ $line = "";
+ foreach my $v (split(/,/, $val)) {
+ $v =~ s/^\s+//;
+ $v =~ s/\s+$//;
+ my($embedded) = handleEmbeddedVar($v);
+ if ($v ne $embedded) {
+ $v = "gen_partial$gencount";
+ $line = ($count != 0 ? getIndent() : "") .
+ "static char $v" . "[BUFSIZ] = \"\";\n" .
+ (" " x (2 * $indent)) .
+ "ACE_OS::sprintf($v, $embedded);\n" . $line;
+ $gencount++;
+ }
+ if ($count != 0) {
+ $line .= getIndent();
+ }
+ ##
+ $line .= $var . "[$count] = $v;\n";
+ $count++;
+ }
+ }
+ }
+ elsif ($line =~ /\$(\w+)\s*(\[[^\]]+\])\s*([\.]?=)\s*(.*);/) {
+ my($name) = $1;
+ my($index) = $2;
+ my($op) = $3;
+ my($value) = $4;
+ my($fake) = handleAssignment("\$$name $op $value;");
+
+ $index =~ s/\$//g;
+ if ($fake =~ /TAO_TestCombinedThreads/) {
+ $line = $fake;
+ $line =~ s/\w+\s+=/$name$index = new/;
+ ## Need to reset this because of the above call to handleAssignemnt
+ $declared{$name} = "%x";
+ }
+ elsif ($fake =~ /$name[\s,=]+(.*)[\);]+/) {
+ $value = $1;
+ $value =~ s/\)$//;
+ $line = "$name$index $op $value;";
+ }
+ else {
+ $line = "// Unconverted Assignment: $line";
+ generateError($UNSUPPORTED_CONSTRUCT, "assignment");
+ }
+ }
+ else {
+ $line = "// Unsupported Assignment: $line";
+ generateError($UNSUPPORTED_CONSTRUCT, "assignment");
+ }
+ return $line;
+}
+
+
+sub setNeedMain {
+ if ($firstExecutable && !$insub) {
+ $needMain = 1;
+ $firstExecutable = 0;
+ incrementIndent();
+ ## Fix up so the first line in main() is properly indented
+ $pindent = $indent;
+ }
+}
+
+
+my($foreachcount) = 0;
+sub handleForeach {
+ my($line) = shift;
+ setNeedMain();
+
+ incrementIndent();
+
+ my($newline) = "{ // Unsupported foreach";
+ if ($line =~ /foreach\s+\$(\w+)\s*\((.*)\)/) {
+
+ my($var) = $1;
+ my($var_count) = $var . "_count";
+ my($arg) = $2;
+
+ $newline = "for(int $var_count = ";
+ if ($arg =~ /\@ARGV/) {
+ $newline .= "1; $var_count < argc; $var_count++) {\n" .
+ (" " x (2 * $indent)) .
+ "char* $var = argv[$var_count];";
+ $declared{$var} = "%s";
+ $decscope{$var} = $indent;
+ }
+ else {
+ $arg =~ s/\@//;
+ if ($arg !~ /^\w+$/) {
+ my($arrtype) = "char*";
+ my($avar) = "gen_foreach$foreachcount";
+ $foreachcount++;
+ if (!$declared{$avar}) {
+ $declared{$avar} = "%s";
+ $decscope{$avar} = $indent;
+ }
+ my($dcount) = $arg;
+ $dcount =~ s/[^,]//g;
+ $newline = "$arrtype $avar\[\] = { $arg };\n" .
+ (" " x (2 * ($indent - 1))) . "int $avar" .
+ "_length = " . (length($dcount) + 1) . ";\n" .
+ (" " x (2 * ($indent - 1))) . $newline;
+ $arg = $avar;
+ }
+ $newline .= "0; $var_count < $arg" . "_length; $var_count++) {\n" .
+ (" " x (2 * $indent)) .
+ "char* $var = $arg" . "[$var_count];";
+ $declared{$var} = "%s";
+ $decscope{$var} = $indent;
+ }
+ }
+ else {
+ generateError($UNSUPPORTED_CONSTRUCT, "foreach");
+ }
+
+ return $newline;
+}
+
+
+sub handleFor {
+ my($line) = shift;
+ setNeedMain();
+
+ my($newline) = "{ // Unsupported for";
+ if ($line =~ /for\s*\(\$(\w+)/) {
+ $newline = $line;
+ if (!defined $declared{$1}) {
+ $declared{$1} = "%d";
+ $decscope{$1} = $indent;
+ $newline = typeToCPPType($declared{$1}) .
+ " $1;\n" . (" " x (2 * $indent)) . $newline;
+ }
+ $newline =~ s/\$//g;
+ }
+ else {
+ generateError($UNSUPPORTED_CONSTRUCT, "for");
+ }
+
+ if ($newline =~ /argc/ && $newline =~ /=\s*0\s*;/) {
+ $newline =~ s/=\s*0\s*;/= 1;/;
+ }
+
+ incrementIndent();
+
+ return $newline;
+}
+
+
+sub convertFILEtoInt {
+ my($name) = shift;
+ $name =~ s/STDIN/fileno(stdin)/g;
+ $name =~ s/STDOUT/fileno(stdout)/g;
+ $name =~ s/STDERR/fileno(stderr)/g;
+ return $name;
+}
+
+my($genopen) = 0;
+sub handleOpen {
+ my($line) = shift;
+ my($fromIf) = shift;
+ my($above) = undef;
+ $fromIf = (defined $fromIf ? $fromIf : 0);
+
+ if ($line =~ /(.*(!)?)open\s*\((.*),\s*(.*)\)(.*)/) {
+ my($before) = $1;
+ my($fh) = $3;
+ my($file) = $4;
+ my($after) = $5;
+ my($newline) = "";
+
+ $fh = convertFILEtoInt($fh);
+ ## Dup'ing
+ if ($file =~ /\"\>\&(.*)\"/) {
+ my($other) = convertFILEtoInt($1);
+ if ($fh =~ /fileno/) {
+ $newline = "ACE_OS::dup2($fh, $other)";
+ }
+ else {
+ if (!defined $declared{$fh}) {
+ $declared{$fh} = "%d";
+ $decscope{$fh} = $indent - ($fromIf ? 1 : 0);
+ $newline = "int ";
+ }
+ $newline .= "$fh = ACE_OS::dup($other)";
+ }
+ }
+ ## Regular open (write)
+ elsif ($file =~ /\">(.*)\"/) {
+ my($other) = $1;
+ $other =~ s/\$//g;
+ my($name) = "genopen$genopen";
+ if ($fh =~ /fileno/) {
+ $genopen++;
+ $newline = "ACE_OS::dup2($fh, $name)";
+ }
+ else {
+ $name = $fh;
+ $newline = $name;
+ }
+ $above = (defined $declared{$name} ? "" : "int ") .
+ "$name = " .
+ "ACE_OS::open($other, O_WRONLY|O_CREAT, " .
+ "S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);\n";
+ if (!defined $declared{$name}) {
+ $declared{$name} = "%d";
+ $decscope{$name} = $indent - ($fromIf ? 1 : 0);
+ }
+ }
+ ## Regular open (read)
+ elsif ($file =~ /(.*)/) {
+ my($other) = $1;
+ $other =~ s/\$//g;
+ $other =~ s/[\"\']//g;
+ $other =~ s/\<//g;
+ my($name) = $fh;
+ $newline = $name;
+ $above = (defined $declared{$name} ? "" : "int ") .
+ "$name = " .
+ "ACE_OS::open($other, O_RDONLY);\n";
+ if (!defined $declared{$name}) {
+ $declared{$name} = "%d";
+ $decscope{$name} = $indent - ($fromIf ? 1 : 0);
+ }
+ }
+ $line = (!$fromIf && defined $above ? $above : "") .
+ "$before$newline$after";
+ }
+ else {
+ generateError($UNSUPPORTED_CONSTRUCT, "open");
+ }
+ return $line, $above;
+}
+
+sub handleIf {
+ my($line) = shift;
+ setNeedMain();
+
+ my($newline) = $line;
+ $newline =~ s/if\s*\(.*/if \(/;
+
+ my($conditions) = undef;
+ if ($line =~ /if\s*\((.+)\)\s*{/) {
+ $conditions = $1;
+ }
+
+ if ($line =~ /elsif/) {
+ $newline =~ s/elsif/else if/;
+ }
+ if ($line !~ /}.*{/) {
+ incrementIndent();
+ }
+
+ foreach my $inside (split(/(\&\&|\|\|)/, $conditions)) {
+ if ($inside eq '&&' || $inside eq '||') {
+ $newline .= " $inside ";
+ }
+# elsif ($inside =~ /\$\^O\s+[nltgeq]+\s+[\"\']MSWin32[\"\']/) {
+# $newline .= "0";
+# }
+ elsif ($inside =~ /open\s*\(.*\)/) {
+ my($above) = undef;
+ ($inside, $above) = handleOpen($inside, 1);
+ if (defined $above) {
+ $newline = $above . getIndent() . $newline;
+ }
+ $newline .= " $inside ";
+ }
+ elsif ($inside =~ /(.*)\s+([nltgeq]+)\s+(.*)/) {
+ my($left) = $1;
+ my($op) = $2;
+ my($right) = $3;
+ my($var) = undef;
+ my($constant) = undef;
+
+ if ($left =~ /\$(\w+)/) {
+ $var = $1;
+ }
+ elsif ($right =~ /\$(\w+)/) {
+ $var = $1;
+ }
+ if ($left =~ /\$?(\w+\[[^\]]+\])/) {
+ $var = $1;
+ $var =~ s/\$//g;
+ }
+ elsif ($right =~ /\$?(\w+\[[^\]]+\])/) {
+ $var = $1;
+ $var =~ s/\$//g;
+ }
+
+ if ($left =~ /\"[^\"]*\"/) {
+ $constant = $left;
+ }
+ elsif ($right =~ /\"[^\"]*\"/) {
+ $constant = $right;
+ }
+ if ($left =~ /\'([^\']*)\'/) {
+ $constant = "\"$1\"";
+ }
+ elsif ($right =~ /\'([^\']*)\'/) {
+ $constant = "\"$1\"";
+ }
+ if (defined $var && defined $constant) {
+ my($check) = undef;
+ if ($op eq 'eq') {
+ $check = "== 0";
+ }
+ elsif ($op eq 'ne') {
+ $check = "!= 0";
+ }
+ elsif ($op eq 'lt') {
+ $check = "< 0";
+ }
+ elsif ($op eq 'le') {
+ $check = "<= 0";
+ }
+ elsif ($op eq 'gt') {
+ $check = "> 0";
+ }
+ elsif ($op eq 'ge') {
+ $check = ">= 0";
+ }
+
+ $inside =~ s/.*\s+$op\s+.*/\($var != 0 && ACE_OS_String::strcmp\($var, $constant\) $check\)/;
+ $newline .= "$inside";
+ }
+ }
+ elsif ($inside =~ /([^!<=]+)\s*([!<>=]+)\s*([^!<>=]+)/) {
+ my($left) = $1;
+ my($op) = $2;
+ my($right) = $3;
+ my($var) = undef;
+ my($constant) = undef;
+
+ $left =~ s/\s+$//;
+ $right =~ s/^\s+//;
+
+ if ($left =~ /\$(\w+)/) {
+ $var = $left;
+ $var =~ s/\$//g;
+ }
+ elsif ($left =~ /\'([^\']+)\'/) {
+ $var = "\"$1\"";
+ }
+ else {
+ $var = $left;
+ }
+
+ if ($right =~ /\$(\w+)/) {
+ $constant = $1;
+ }
+ elsif ($right =~ /\'([^\']+)\'/) {
+ $constant = "\"$1\"";
+ }
+ else {
+ $constant = $right;
+ }
+
+ if ($var =~ /Spawn/) {
+ my($wait) = "";
+ if ($var =~ /\((.*)\)/) {
+ my($tout) = $1;
+ if ($tout =~ /^\d+$/ && $tout > $defaultTimeout) {
+ $defaultTimeout = $tout;
+ }
+ $wait = "($tout * $timefactor)";
+ }
+ my($spvar, $spval) = handleSpawn($var);
+ $newline = "$spvar$spval\n" . (" " x (2 * ($indent - 1))) .
+ $newline;
+ $var = "$spvar.wait($wait)";
+ }
+ elsif ($var =~ /[\$]?([\w\[\]\$]+)->WaitKill/) {
+ my($wvar) = $1;
+ my($ovar) = $wvar;
+ my($iop) = ".";
+ my($tfix) = $wvar;
+ $wvar =~ s/\$//g;
+ $tfix =~ s/\[.*//;
+ if ($wvar =~ /\[/) {
+ $ovar =~ s/[\[\]\$]//g;
+ $iop = "->";
+ }
+# if (defined $declared{$wvar} && $declared{$wvar} != 0) {
+# $wvar .= $declared{$wvar};
+# }
+ handleWaitKill($var, $ovar);
+ $var = "$wvar$iop" . "wait($ovar" . "Timeout)";
+ }
+
+ $newline .= "$var $op $constant";
+ }
+ elsif ($inside =~ /testGetopts/) {
+ $newline .= $inside;
+ }
+ elsif ($inside =~ /(.*)defined\s+\$([^\)]+)/) {
+ my($op) = $1;
+ my($var) = $2;
+ $newline .= ($op ne "" ? "$op(" : "") .
+ $var . "[0] != '\\0'" . ($op ne "" ? ")" : "");
+ }
+ elsif ($inside =~ /(!)?(.*)/) {
+ my($op) = $1;
+ my($right) = $2;
+ $right =~ s/\$//g;
+ $inside = (defined $op ? $op : "") . $right;
+ $newline .= "$inside";
+ }
+ else {
+ $newline .= "/*$inside*/0";
+ }
+ }
+ $newline .= ") {";
+
+ return $newline;
+}
+
+
+my($argindexcount) = 0;
+my($azlengthcount) = 0;
+my($genargcount) = 0;
+sub handleArguments {
+ my($line) = shift;
+ my($var) = shift;
+ my($args) = shift;
+ my($sep) = shift;
+ my($newline) = "// Arguments: $line";
+ my($ok) = 0;
+
+ if (defined $var && defined $args) {
+ $ok = 1;
+ }
+ elsif ($line =~ /\$(\w+)->Arguments\s*\((.*)\)/) {
+ $ok = 1;
+ $var = $1;
+ $args = $2;
+ }
+
+ if ($ok) {
+ my($argline) = "";
+ my($argcount) = splitArguments($args, \$argline, $sep);
+ $argline .= "0";
+ my(@lines) = split(/\n/, $argline);
+ $newline = "int argindex$argindexcount = " .
+ (defined $argsList{$var} ? "$argsList{$var}" :
+ "1 /*undefined*/") . ";\n";
+ for(my $i = 0; $i <= $#lines; $i++) {
+ if ($i == $#lines) {
+ my($current) = 0;
+ my($varargs) = $var . "Args";
+ foreach my $newarg (split(/,/, $lines[$i])) {
+ $newarg =~ s/^\s+//;
+ $newarg =~ s/\s+$//;
+ if (defined $declared{$newarg} && $declared{$newarg} eq "%s" &&
+ $newarg !~ /ior/ && $newarg !~ /conf/ && $newarg !~ /gen_/) {
+ $current = $unknownArgCount;
+ $newline .= (" " x (2 * $indent)) . $varargs .
+ "[argindex$argindexcount" . "++] = $newarg;\n" .
+ (" " x (2 * $indent)) . "int azlength$azlengthcount = ACE_OS::strlen($newarg);\n" .
+ (" " x (2 * $indent)) . "for(int az = 0; az < azlength$azlengthcount; az++) {\n" .
+ (" " x (2 * $indent)) . " if (isspace($newarg" . "[az])) {\n" .
+ (" " x (2 * $indent)) . " $newarg" . "[az] = '\\0';\n" .
+ (" " x (2 * $indent)) . " for(;ACE_OS_String::ace_isspace($newarg" . "[az]); az++);\n" .
+ (" " x (2 * $indent)) . " $varargs" . "[argindex$argindexcount" . "++] = $newarg + az + 1;\n" .
+ (" " x (2 * $indent)) . " }\n" .
+ (" " x (2 * $indent)) . "}\n";
+ $azlengthcount++;
+ }
+ elsif (defined $declared{$newarg} && $declared{$newarg} eq "%d") {
+ $newline .= (" " x (2 * $indent)) .
+ "char gen_args$genargcount" . "[$shortString] = \"\";\n" .
+ (" " x (2 * $indent)) .
+ "ACE_OS::sprintf(gen_args$genargcount, \"%d\", $newarg);\n" .
+ (" " x (2 * $indent)) .
+ $varargs . "[argindex$argindexcount" .
+ "++] = gen_args$genargcount;\n";
+ $genargcount++;
+ $current++;
+ }
+ else {
+ $newline .= (" " x (2 * $indent)) .
+ $varargs . "[argindex$argindexcount" .
+ "++] = $newarg;\n";
+ $current++;
+ }
+ }
+ $argindexcount++;
+ my($foundInBody) = 0;
+ for(my $i = $#cppbody; $i >= 0; $i--) {
+ if ($cppbody[$i] =~ /char\* $varargs\[(.*)\]/) {
+ my($index) = $1;
+ my($max) = $argsList{$var} + $current;
+ if (!defined $index || defined $index &&
+ ($index eq "" || ($index =~ /^\d+$/ && $index < $max))) {
+ $cppbody[$i] =~ s/$varargs\[.*\]/$varargs\[$max\]/;
+ $foundInBody = 1;
+ last;
+ }
+ }
+ }
+ for(my $i = $#cppheader; $i >= 0; $i--) {
+ if ($cppheader[$i] =~ /char\* $varargs\[(.*)\]/) {
+ my($index) = $1;
+ my($max) = $argsList{$var} + $current;
+ if (!defined $index || defined $index &&
+ ($index eq "" || ($index =~ /^\d+$/ && $index < $max))) {
+ $cppheader[$i] =~ s/$varargs\[.*\]/$varargs\[$max\]/;
+ last;
+ }
+ }
+ }
+ }
+ else {
+ $newline .= "$lines[$i]\n";
+ }
+ }
+ }
+ return $newline;
+}
+
+
+sub handleWhile {
+ my($line) = shift;
+ generateError($UNSUPPORTED_CONSTRUCT, "while");
+ return "while(0) {";
+}
+
+
+sub handleKeyword {
+ my($key) = shift;
+ my($line) = shift;
+ setNeedMain();
+ $line =~ s/\$(\w+)/$1/;
+ if ($line =~ /$key\s*[^(]/) {
+ if ($line =~ /[\(\)]+/) {
+ $line =~ s/$key\s*/ACE_OS::$key/;
+ }
+ else {
+ $line =~ s/$key\s*/ACE_OS::$key\(/;
+ $line =~ s/;/\);/;
+ }
+ }
+ else {
+ $line = "ACE_OS::$line";
+ }
+ return $line;
+}
+
+
+sub handlePrint {
+ my($line) = shift;
+ setNeedMain();
+
+ my($stream) = undef;
+ my($value) = undef;
+ if ($line =~ /print\s+(\w+)\s+(.+);/) {
+ $stream = lc($1);
+ $value = $2;
+ }
+ elsif ($line =~ /print\s+(.+);/) {
+ $value = $1;
+ }
+
+ $value = handleEmbeddedVar($value);
+
+ if (defined $stream) {
+ $line = "ACE_OS::fprintf($stream, $value);";
+ }
+ else {
+ $line = "ACE_OS::printf($value);";
+ }
+
+ return $line;
+}
+
+
+sub handleSpawn {
+ my($line) = shift;
+ setNeedMain();
+ my(@parts) = ();
+ if ($line =~ /([\w\[\$\]]+)->Spawn[\w]*\s*\(([^\)]*)\)/) {
+ if (defined $taodebug) {
+ my($part) = (" " x (2 * $indent)) . "TAO_debug_level = $taodebug;\n";
+ if ($insub) {
+ push(@cppsubs, $part);
+ }
+ else {
+ push(@cppbody, $part);
+ }
+ $taodebug = undef;
+ }
+ my($var) = $1;
+ my($timeout) = $2;
+ $var =~ s/\$//g;
+
+# if (defined $declared{$var} && $declared{$var} != 0) {
+# $var .= $declared{$var};
+# }
+ if ($timeout =~ /^\d+$/ && $timeout > $defaultTimeout) {
+ $defaultTimeout = $timeout;
+ }
+ my($time) = ($timeout ne "" ? "($timeout * $timefactor)" : "");
+ if ($time eq "") {
+ my($varfix) = $var;
+ $varfix =~ s/[\[\]]+//g;
+ $time = "$varfix" . "Timeout";
+ }
+ my($typeCheck) = $var;
+ $typeCheck =~ s/\[.*//;
+ @parts = ($var, ($declared{$typeCheck} eq "%x" ?
+ "->" : ".") . "run($time);");
+ }
+ return @parts;
+}
+
+
+sub handleWaitKill {
+ my($line) = shift;
+ my($var) = shift;
+ setNeedMain();
+
+ if (!defined $var) {
+ if ($line =~ /(\w+)->.*Kill\s*\(([\w\$]*)\)/) {
+ $var = $1;
+ }
+ }
+ if ($line =~ /->.*Kill\s*\(([\w\$]*)\)/) {
+ my($time) = $var . "Timeout";
+ my($tout) = $1;
+ if ($tout =~ /^\d+$/ && $tout > $defaultTimeout) {
+ $defaultTimeout = $tout;
+ }
+ if (!defined $declared{$time}) {
+ $timeoutVars{$time} = $tout;
+ $declared{$time} = "%d";
+ $decscope{$time} = -1;
+ }
+ }
+}
+
+
+sub handleSubroutine {
+ my($line) = shift;
+ incrementIndent();
+
+ if ($line =~ /sub\s+(\w+)\s*(\(.*\))?\{/) {
+ $insub = 1;
+ $indsc = $indent - 1;
+ $line = "void $1(/*params*/) {";
+ push(@subs, $1);
+ }
+ else {
+ $line = "// Subroutine call??? $line";
+ }
+ return $line;
+}
+
+
+my($firstSplit) = 1;
+sub handleSplit {
+ my($line) = shift;
+ if ($firstSplit) {
+ $firstSplit = 0;
+ push(@cppheader, "void split(char** arr, int& length, const char* delim, char* str)\n" .
+ "{\n" .
+ " int slength = strlen(str);\n" .
+ " int delimLength = strlen(delim);\n" .
+ " int previous = 0;\n" .
+ " int index = 0;\n" .
+ " for(int i = 0; i <= slength; i++) {\n" .
+ " if (str[i] == '\\0' || strncmp(str + i, delim, delimLength) == 0) {\n" .
+ " arr[index++] = str + previous;\n" .
+ " str[i] = '\\0';\n" .
+ " i += delimLength;\n" .
+ " previous = i;\n" .
+ " }\n" .
+ " }\n" .
+ " length = index;\n" .
+ "}\n" .
+ "\n" .
+ "void split(char** arr, int& length, char delim, char* str)\n" .
+ "{\n" .
+ " char delimStr[2] = \"\\0\";\n" .
+ " delimStr[0] = delim;\n" .
+ " split(arr, length, delimStr, str);\n" .
+ "}\n\n");
+ }
+
+ if ($line =~ /\@(\w+)\s*=\s*split\s*\((.*)\)/) {
+ my($var) = $1;
+ my($params) = $2;
+ $params =~ s/\$//g;
+ $params =~ s/^\/([^\/]+)\//\'$1\'/;
+ $line = "split($var, $var" . "_length, $params);";
+ }
+ else {
+ $line = "// Unhandled split: $line";
+ }
+ return $line;
+}
+
+
+sub handleLocal {
+ my($line) = shift;
+ if ($line =~ /local\s*\((.*)\)/) {
+ my($list) = $1;
+ foreach my $var (split(/,/, $list)) {
+ $var =~ s/^\s+//;
+ $var =~ s/\s+//;
+ $var = handleAssignment($var . " = \"\";");
+ if ($var !~ /^static/) {
+ $var = "static $var";
+ }
+ push(@cppheader, "$var\n");
+ }
+ }
+}
+
+my($firstGetopts) = 1;
+sub handleGetopts {
+ my($line) = shift;
+ my(%vars) = ();
+
+ $line =~ s/\'/\"/g;
+ if ($line =~ /getopts\s*\(([^\)]+)\)/) {
+ my($param) = $1;
+ my($length) = length($param);
+ my($current) = "";
+ for(my $i = 0; $i < $length; $i++) {
+ my($ch) = substr($param, $i, 1);
+ if ($ch ne '"') {
+ if ($ch eq ':') {
+ $vars{$current} = 1;
+ }
+ else {
+ $current = $ch;
+ $vars{$current} = 0;
+ }
+ }
+ }
+ }
+
+ if ($firstGetopts) {
+ push(@cppsubs, "int testGetopts(int argc, char* argv[], const char* str)\n" .
+ "{\n" .
+ " ACE_Get_Opt get_opts(argc, argv, str);\n" .
+ " int status = 1;\n" .
+ " for(int c = 0; c != -1; c = get_opts()) {\n" .
+ " switch(c) {\n" .
+ " case 0:\n" .
+ " break;\n");
+ foreach my $key (keys %vars) {
+ push(@cppsubs, " case '$key':\n");
+ if ($vars{$key} == 0) {
+ push(@cppsubs, " ACE_OS_String::strcpy(opt_$key, \"1\");");
+ }
+ else {
+ push(@cppsubs, " ACE_OS_String::strcpy(opt_$key, get_opts.optarg);\n");
+ }
+ push(@cppsubs, " break;\n");
+ }
+ push(@cppsubs, " default:\n" .
+ " status = 0;\n" .
+ " break;\n" .
+ " }\n" .
+ " }\n" .
+ " return status;\n" .
+ "}\n\n");
+ }
+
+ $line =~ s/getopts\s*\(/testGetopts\(argc, argv, /g;
+ $firstGetopts = 0;
+ return $line;
+}
+
+
+sub handleEmbeddedVar {
+ my($value) = shift;
+
+ while ($value =~ /\$(\w+)\[([\$]?\w+)\]/) {
+ my($param) = $1;
+ my($index) = $2;
+ $index =~ s/\$//;
+ $value =~ s/([^\\])\$\w+\[[\$]?\w+\]/$1$declared{$param}/;
+ $value .= ", $param" . "[$index]";
+ }
+ while ($value =~ /\.\s*([\$\"\']+)/) {
+ my($param) = $1;
+ $param =~ s/\$//;
+ $value =~ s/\.\s*[\$\"\']+/ \"%s\"/;
+ $value .= ", $param";
+ $value =~ s/\"\s*\.\s*\"//;
+ $value =~ s/\"\s+\"//;
+ }
+ while ($value =~ /[^\\]\$(\w+)/) {
+ my($param) = $1;
+
+ ## Perl Script Error
+ if (!defined $declared{$param}) {
+ generateError($UNDEFINED_VARIABLE, $param);
+ $value =~ s/([^\\])\$\w+/$1%x/;
+ }
+ else {
+ $value =~ s/([^\\])\$\w+/$1$declared{$param}/;
+ }
+ $value .= ", $param";
+ }
+# my($length) = length($value);
+# my($prev) = "";
+# for(my $i = 0; $i < $length; $i++) {
+# my($ch) = substr($value, $i, 1);
+# if ($prev ne '\\' && $ch eq '$') {
+# ## TBD?
+# }
+# $prev = $ch;
+# }
+ return $value;
+}
+
+
+my($subcallcount) = 0;
+sub handleSubCall {
+ my($line) = shift;
+ my($newline) = "// Sub Call:";
+ if ($line =~ /(\"[^\"]+\")/) {
+ my($orig) = $1;
+ my($str) = handleEmbeddedVar($orig);
+ if ($orig ne $str) {
+ $newline = "char gen_subcall$subcallcount" . "[$shortString] = \"\";\n" .
+ (" " x (2 * $indent)) .
+ "ACE_OS::sprintf(gen_subcall$subcallcount, $str);\n";
+ $line =~ s/\"[^\"]+\"/gen_subcall$subcallcount/;
+ $line = $newline . (" " x (2 * $indent)) . $line;
+ $subcallcount++;
+ }
+ }
+ else {
+ $line =~ s/\$//g;
+ }
+ return $line;
+}
+
+sub convertAngleToRead {
+ my($line) = shift;
+ my($length) = length($line);
+ my($indouble) = 0;
+ my($insingle) = 0;
+ my($inangle) = 0;
+
+ for(my $i = 0; $i < $length; $i++) {
+ my($ch) = substr($line, $i, 1);
+ if (!$insingle && $ch eq '"') {
+ $indouble ^= 1;
+ }
+ elsif (!$indouble && $ch eq '\'') {
+ $insingle ^= 1;
+ }
+ elsif ($ch eq '<' && !$indouble && !$insingle) {
+ $inangle = $i;
+ }
+ elsif ($ch eq '>' && $inangle && !$indouble && !$insingle) {
+ my($func) = "read_line";
+ if ($line =~ /while/) {
+ if ($needReadLine) {
+ push(@cppsubs, "static char* read_line (int fd)\n" .
+ "{\n" .
+ " static const size_t blen = 2048;\n" .
+ " static char buffer[blen];\n" .
+ "\n" .
+ " buffer[0] = '\\0';\n" .
+ " off_t current = lseek(fd, 0, SEEK_CUR);\n" .
+ " ssize_t amount = read (fd, buffer, blen);\n" .
+ " if (amount > 0)\n" .
+ " {\n" .
+ " for(ssize_t i = 0; i < amount; i++)\n" .
+ " {\n" .
+ " if (buffer[i] == '\\n')\n" .
+ " {\n" .
+ " buffer[i + 1] = '\\0';\n" .
+ " lseek (fd, current + i + 1, SEEK_SET);\n" .
+ " break;\n" .
+ " }\n" .
+ " }\n" .
+ " }\n" .
+ "\n" .
+ " return buffer;\n" .
+ "}\n" .
+ "\n" .
+ "\n");
+ $needReadLine = 0;
+ }
+ }
+ else {
+ $func = "read_file";
+ if ($needReadFile) {
+ push(@cppsubs, "static char* read_file (int fd)\n" .
+ "{\n" .
+ " static const size_t blen = 5120;\n" .
+ " static char buffer[blen];\n" .
+ "\n" .
+ " buffer[0] = '\\0';\n" .
+ " ssize_t amount = read (fd, buffer, blen);\n" .
+ " if (amount > 0)\n" .
+ " buffer[amount] = '\\0';\n" .
+ "\n" .
+ " return buffer;\n" .
+ "}\n");
+ $needReadFile = 0;
+ }
+ }
+ substr($line, $i, 1) = ")";
+ substr($line, $inangle, 1) = "$func(";
+ $inangle = 0;
+ $length = length($line);
+ $i += length($func);
+ }
+ }
+
+ return $line;
+}
+
+
+sub usageAndExit {
+ my($str) = shift;
+ if (defined $str) {
+ print "$str\n";
+ }
+ print "Usage: " . basename($0) . " [-t <time factor>] <input> <output>\n\n" .
+ " -t <time factor> The multiple to be applied to " .
+ "each timeout value.\n" .
+ " <input> Input perl script.\n" .
+ " <output> Output c++ file.\n";
+ exit(0);
+}
+
+# ******************************************************************
+# Main Section
+# ******************************************************************
+
+my($ifile) = "run_test.pl";
+my($ofile) = "-";
+
+while(1) {
+ if ($ARGV[0] eq "-h") {
+ usageAndExit();
+ }
+ elsif ($ARGV[0] eq "-t") {
+ shift(@ARGV);
+ $timefactor = $ARGV[0];
+ if (!defined $timefactor || $timefactor !~ /^\d+$/) {
+ usageAndExit("Invalid timeout factor");
+ }
+ }
+ elsif ($ARGV[0] =~ /^\-/) {
+ usageAndExit("Unknown option: $ARGV[0]");
+ }
+ else {
+ last;
+ }
+ shift(@ARGV);
+}
+
+if (defined $ARGV[0]) {
+ $ifile = $ARGV[0];
+}
+if (defined $ARGV[1]) {
+ $ofile = $ARGV[1];
+}
+
+my($fh) = new FileHandle();
+if (open($fh, $ifile)) {
+ my($oh) = new FileHandle();
+ if (open($oh, ">$ofile")) {
+ my($line) = "";
+ my($inspect) = "";
+ my($hostValue) = "localhost";
+
+ push(@cppheader, getTop());
+ while(<$fh>) {
+ my($injected) = undef;
+ my($output) = undef;
+ $line = $_;
+ $lineCount++;
+
+ ## For now, comment out anything using $ENV{} or
+ ## PerlACE::check_n_cleanup_files
+ if ($line =~ /\$ENV/ ||
+ $line =~ /PerlACE::check_n_cleanup_files/) {
+ $line = "## $line";
+ }
+
+ ## Convert die's
+ if ($line =~ /(.*)\s+(or|and)\s+die\s*(.*);/) {
+ my($left) = $1;
+ my($op) = $2;
+ my($right) = $3;
+ $line = "if (" . ($op eq "or" ? "!" : "") . "$left) {\n";
+ $right =~ s/\((.*)\)/$1/;
+ my($space) = getIndent();
+ $injected = "$space ACE_OS::fprintf(stderr, $right);\n" .
+ "$space exit(1);\n" .
+ "$space}\n";
+ }
+
+ ## Convert $^O to $OSNAME
+ $line =~ s/\$\^O/\$OSNAME/g;
+
+ $line =~ s/^\s+//g;
+ $line =~ s/[^\$\\]#.*//g;
+ $line =~ s/^#.*//;
+ $line =~ s/\s+$//g;
+
+ ## PerlACE transform
+ $line =~ s/PerlACE::LocalFile\s*\((.*)\)/FULL_PATH $1/g;
+ $line =~ s/PerlACE::waitforfile_timed/TAO_TestCombinedThreads::waitForFileTimed/g;
+ $line =~ s/TAO_TestCombinedThreads::waitForFileTimed\s*\(([^,]+),([^\)]+)\)/TAO_TestCombinedThreads::waitForFileTimed \($1, \($2 * $timefactor\)\)/;
+ $line =~ s/PerlACE::uniqueid\s*/TAO_TestCombinedThreads::getRandomPortBase/g;
+
+ ## time transform
+ $line =~ s/time/time_variable/g;
+
+ ## main arguments transform
+ $line =~ s/\$#ARGV/\(argc - 1\)/g;
+ $line =~ s/\$ARGV\[([^\]]+)\]/argv\[$1\]/g;
+ if ($line =~ /argv\[(\d+)\]/) {
+ my($val) = $1 + 1;
+ $line =~ s/argv\[\d+\]/argv\[$val\]/;
+ }
+
+ ## TARGETHOSTNAME transform
+ if ($line =~ /\$TARGETHOSTNAME\s*=\s*\"(.*)\"/) {
+ $hostValue = $1;
+ $line = "";
+ }
+ $line =~ s/\$TARGETHOSTNAME/$hostValue/g;
+
+ $inspect = concatenate(buildLine($line));
+
+ if ($inspect =~ /getopts/) {
+ $inspect = handleGetopts($inspect);
+ }
+
+ if ($inspect eq "") {
+ $output = "";
+ }
+ elsif ($inspect =~ /^eval\s+/) {
+ }
+ elsif ($inspect =~ /^use\s+/) {
+ }
+ elsif ($inspect =~ /^require\s+/) {
+ }
+ elsif ($inspect =~ /split\s*\(/) {
+ $output = handleSplit($inspect);
+ }
+ elsif ($inspect =~ /^(my\s+)?[\$\%\@]\w+(\s*\[[\$\w]+\])?\s*(\.)?=/) {
+ $output = handleAssignment($inspect);
+ }
+ elsif ($inspect =~ /^foreach\s+/) {
+ $output = handleForeach($inspect);
+ }
+ elsif ($inspect =~ /^for\s+/) {
+ $output = handleFor($inspect);
+ }
+ elsif ($inspect =~ /^while\s+/) {
+ $output = handleWhile($inspect);
+ }
+ elsif ($inspect =~ /^if\s*\(/ || $inspect =~ /[}]?\s*elsif\s*\(/) {
+ $output = handleIf($inspect);
+ }
+ elsif ($inspect =~ /else/) {
+ $output = $inspect;
+ if ($inspect =~ /}/) {
+ decrementIndent();
+ }
+ if ($inspect =~ /{/) {
+ incrementIndent();
+ }
+ }
+ elsif ($inspect =~ /}/) {
+ $output = $inspect;
+ decrementIndent();
+ }
+ elsif ($inspect =~ /\$(\w+)\+\+/) {
+ $output = $inspect;
+ $output =~ s/\$//g;
+ }
+ elsif ($inspect =~ /^exit/) {
+ if ($inspect =~ /exit(\s*\(\s*\))?;/) {
+ $inspect = "exit(0);";
+ }
+ $output = handleKeyword("exit", $inspect);
+ }
+ elsif ($inspect =~ /^unlink/) {
+ $output = handleKeyword("unlink", $inspect);
+ }
+ elsif ($inspect =~ /^sleep/) {
+ $output = handleKeyword("sleep", $inspect);
+ }
+ elsif ($inspect =~ /^close/) {
+ $output = handleKeyword("close", $inspect);
+ }
+ elsif ($inspect =~ /^print[\s\(]/) {
+ $output = handlePrint($inspect);
+ }
+ elsif ($inspect =~ /\->Spawn/) {
+ my(@parts) = handleSpawn($inspect);
+ $output = "$parts[0]$parts[1]";
+ }
+ elsif ($inspect =~ /->WaitKill/) {
+ handleWaitKill($inspect);
+ }
+ elsif ($inspect =~ /->Kill/) {
+ handleWaitKill($inspect);
+ }
+ elsif ($inspect =~ /->Arguments/) {
+ $output = handleArguments($inspect);
+ }
+ elsif ($inspect =~ /local\s*\(/) {
+ handleLocal($inspect);
+ }
+ elsif ($inspect =~ /sub\s+\w+\s*/) {
+ $output = handleSubroutine($inspect);
+ }
+ elsif ($inspect =~ /open\s*\(/) {
+ my(@parts) = handleOpen($inspect);
+ $output = $parts[0];
+ }
+ else {
+ if ($inspect ne "") {
+ my($needError) = 1;
+ $output = "// Needs to be implemented: $inspect";
+ foreach my $sub (@subs) {
+ if ($inspect =~ /$sub/) {
+ $output = handleSubCall($inspect);
+ $needError = 0;
+ last;
+ }
+ }
+ if ($needError) {
+ generateError($UNSUPPORTED_CONSTRUCT, $inspect);
+ }
+ }
+ }
+
+ if (defined $output) {
+ ## Post-processing
+ $output = convertFILEtoInt($output);
+ $output = convertAngleToRead($output);
+
+ if ($needMain) {
+ push(@cppbody, getMainBeginning());
+ if (defined $injected) {
+ push(@cppbody, $injected);
+ decrementIndent();
+ }
+ $needMain = 0;
+ }
+ if ($output =~ /}\s*elsif/) {
+ decrementIndent();
+ }
+ my($part) = ($output ne "" ? getIndent() : "") . "$output\n";
+ if ($insub) {
+ push(@cppsubs, $part);
+ if (defined $injected) {
+ push(@cppsubs, $injected);
+ decrementIndent();
+ }
+ }
+ else {
+ if (!$firstExecutable) {
+ push(@cppbody, $part);
+ if (defined $injected) {
+ push(@cppbody, $injected);
+ decrementIndent();
+ }
+ }
+ else {
+ push(@cppheader, $part);
+ if (defined $injected) {
+ push(@cppheader, $injected);
+ decrementIndent();
+ }
+ }
+ }
+ if ($insub == 1 && $indent == $indsc) {
+ $insub = 0;
+ }
+ if ($output =~ /}\s*elsif/) {
+ $indent++;
+ }
+ }
+ }
+ push(@cppbody, getMainEnding());
+
+ ## Put in the definition of the timeout's now that
+ ## the defaultTimeout is as large as it's going to get.
+ foreach my $timeout (sort keys %timeoutVars) {
+ my($val) = ($timeoutVars{$timeout} eq "" ? $defaultTimeout :
+ $timeoutVars{$timeout});
+ unshift(@cppbody, "static int $timeout = ($val * $timefactor);\n");
+ }
+
+ foreach my $line (@cppheader, @cppsubs, @cppbody) {
+ print $oh $line;
+ }
+ }
+ else {
+ print STDERR "Unable to open $ofile for output\n";
+ $status++;
+ }
+ close($fh);
+}
+else {
+ print STDERR "Unable to open $ifile for input\n";
+ $status++;
+}
+
+## Remove the file if there was an error
+if ($status) {
+ unlink($ofile);
+}
+
+exit($status);
diff --git a/bin/sandbox.cpp b/bin/sandbox.cpp
index fce69dedcb6..6b38aee0a6f 100644
--- a/bin/sandbox.cpp
+++ b/bin/sandbox.cpp
@@ -18,7 +18,7 @@ const char *child_name = 0;
static int parse_args(int& argc, char* argv[]);
int
-main(int argc, char* argv[])
+ACE_TMAIN(int argc, ACE_TCHAR* argv[])
{
if (parse_args(argc, argv) != 0)
return 1;
diff --git a/bin/tao_orb_tests.lst b/bin/tao_orb_tests.lst
index e91c380c7b0..9c6d77417f2 100644
--- a/bin/tao_orb_tests.lst
+++ b/bin/tao_orb_tests.lst
@@ -13,21 +13,18 @@ TAO/tests/Param_Test/run_test.pl: !MINIMUM
TAO/tests/Param_Test/run_test_dii.pl: !MINIMUM
TAO/tests/AMI/run_test.pl: !MINIMUM
TAO/tests/AMI_Timeouts/run_test.pl: !MINIMUM !ST
-TAO/tests/AMH_Exceptions/run_test.pl: !MINIMUM !DISABLE_ToFix_LynxOS_x86
-TAO/tests/AMH_Oneway/run_test.pl: !MINIMUM !DISABLE_ToFix_LynxOS_x86
+TAO/tests/AMH_Exceptions/run_test.pl: !MINIMUM
TAO/tests/Collocation/run_test.pl:
TAO/tests/Collocation_Tests/run_test.pl: !ST
TAO/tests/Collocation_Opportunities/run_test.pl: !ST
TAO/tests/Collocation_Oneway_Tests/run_test.pl: !ST !NO_MESSAGING
TAO/tests/Collocation_Exception_Test/run_test.pl: !ST
-TAO/tests/CollocationLockup/run_test.pl: !ST !DISABLE_ToFix_LynxOS_x86
TAO/tests/OctetSeq/run_test.pl:
TAO/tests/OctetSeq/run_test1.pl: !STATIC
TAO/tests/OctetSeq/run_test2.pl: !STATIC
-TAO/tests/BiDirectional/run_test.pl: !MINIMUM !GIOP10 !DISABLE_BIDIR !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
+TAO/tests/BiDirectional/run_test.pl: !MINIMUM !GIOP10 !DISABLE_BIDIR
TAO/tests/BiDirectional/run_test_ipv6.pl: IPV6 !MINIMUM !GIOP10 !DISABLE_BIDIR
-TAO/tests/BiDirectional_NestedUpcall/run_test.pl: !MINIMUM !STATIC !GIOP10 !DISABLE_BIDIR !DISABLE_ToFix_LynxOS_PPC
-TAO/tests/BiDirectional_DelayedUpcall/run_test.pl: !MINIMUM !STATIC !GIOP10 !DISABLE_BIDIR !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/BiDirectional_NestedUpcall/run_test.pl: !VxWorks !MINIMUM !STATIC !GIOP10 !DISABLE_BIDIR
TAO/tests/Leader_Followers/run_test.pl: !ST
TAO/tests/Leader_Followers/run_test_mt.pl: !ST
TAO/tests/Multiple_Inheritance/run_test.pl:
@@ -35,42 +32,30 @@ TAO/tests/Bug_1269_Regression/run_test.pl: !Win32 !MINIMUM
TAO/tests/Bug_1495_Regression/run_test.pl: !MINIMUM !ST !DISABLE_INTERCEPTORS
TAO/tests/Bug_1568_Regression/run_test.pl: !NO_MESSAGING
TAO/tests/Bug_1670_Regression/run_test.pl: !NO_MESSAGING
-TAO/tests/Bug_1270_Regression/run_test.pl: !Win32 !MINIMUM !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/Bug_1270_Regression/run_test.pl: !Win32 !MINIMUM
TAO/tests/Bug_1020_Basic_Regression/run_test.pl: !Win32 !MINIMUM !ST
TAO/tests/Bug_1020_Regression/run_test.pl: !MINIMUM !ST !Win32
TAO/tests/Bug_1361_Regression/run_test.pl: !MINIMUM !ST !Win32 !IRIX
-TAO/tests/Bug_1482_Regression/run_test.pl: !VxWorks !MINIMUM !ST !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/Bug_1482_Regression/run_test.pl: !VxWorks !MINIMUM !ST
TAO/tests/Bug_1551_Regression/run_test.pl: !VxWorks !MINIMUM !ST !IRIX
-TAO/tests/Bug_2084_Regression/run_test.pl: !ST
-TAO/tests/Bug_2134_Regression/run_test.pl: !MINIMUM
TAO/tests/Bug_2174_Regression/run_test.pl: !MINIMUM
TAO/tests/Bug_2183_Regression/run_test.pl:
-TAO/tests/Bug_2186_Regression/run_test.pl: !MINIMUM
-TAO/tests/Bug_2201_Regression/run_test.pl:
TAO/tests/Bug_2234_Regression/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/tests/Bug_2289_Regression/run_test.pl:
-TAO/tests/Bug_2319_Regression/run_test.pl: !MINIMUM !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
-TAO/tests/Bug_2328_Regression/run_test.pl:
-TAO/tests/Bug_2345_Regression/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
-TAO/tests/Bug_2349_Regression/run_test.pl: !DISABLE_ToFix_LynxOS_x86
-TAO/tests/Bug_2417_Regression/run_test.pl: !MINIMUM !ST
-TAO/tests/Bug_2429_Regression/run_test.pl: !MINIMUM
-TAO/tests/Bug_2494_Regression/run_test.pl: !ST
TAO/tests/RTCORBA/Banded_Connections/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Client_Propagated/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Client_Protocol/run_test.pl: !MINIMUM !IPV6
TAO/tests/RTCORBA/Collocation/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Destroy_Thread_Pool/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Explicit_Binding/run_test.pl: !VxWorks !MINIMUM !IPV6
-TAO/tests/RTCORBA/Linear_Priority/run_test.pl: !MINIMUM !ST !DISABLE_ToFix_LynxOS_PPC
-TAO/tests/RTCORBA/MT_Client_Protocol_Priority/run_test.pl: !MINIMUM !ST !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/RTCORBA/Linear_Priority/run_test.pl: !MINIMUM !ST
+TAO/tests/RTCORBA/MT_Client_Protocol_Priority/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/ORB_init/run_test.pl: !MINIMUM
TAO/tests/RTCORBA/Persistent_IOR/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Policies/run_test.pl: !MINIMUM !ST
-TAO/tests/RTCORBA/Policy_Combinations/run_test.pl: !MINIMUM !ST !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
+TAO/tests/RTCORBA/Policy_Combinations/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Priority_Inversion_With_Bands/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Private_Connection/run_test.pl: !MINIMUM
-TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl: !VxWorks !MINIMUM !ST !IPV6 !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/run_test.pl: !VxWorks !MINIMUM !ST !IPV6
TAO/tests/RTCORBA/RTMutex/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Server_Declared/run_test.pl: !MINIMUM !ST
TAO/tests/RTCORBA/Server_Protocol/run_test.pl: !VxWorks !MINIMUM !IPV6
@@ -81,17 +66,17 @@ TAO/tests/RTScheduling/DT_Spawn/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/RTScheduling/Current/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !ST
TAO/tests/RTScheduling/Scheduling_Interceptor/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC
TAO/tests/OBV/Any/run_test.pl:
-TAO/tests/OBV/Collocated/Forward/run_test.pl: !ST !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
+TAO/tests/OBV/Collocated/Forward/run_test.pl: !ST
TAO/tests/OBV/Factory/run_test.pl:
TAO/tests/OBV/Forward/run_test.pl:
TAO/tests/OBV/TC_Alignment/run_test.pl:
TAO/tests/OBV/ValueBox/run_test.pl:
TAO/tests/Hello/run_test.pl:
TAO/tests/IPV6/run_test.pl: IPV6
-TAO/tests/AlternateIIOP/run_test.pl: !DISABLE_ToFix_LynxOS_x86
+TAO/tests/AlternateIIOP/run_test.pl:
TAO/tests/Cache_Growth_Test/run_test.pl:
TAO/tests/Muxing/run_test.pl: !ST
-TAO/tests/Muxed_GIOP_Versions/run_test.pl: !VxWorks !ST !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/Muxed_GIOP_Versions/run_test.pl: !VxWorks !ST
TAO/tests/MT_Client/run_test.pl: !ST
TAO/tests/MT_BiDir/run_test.pl: !ST !MINIMUM !GIOP10 !DISABLE_BIDIR
TAO/tests/File_IO/run_test.pl: !ST !MINIMUM
@@ -99,11 +84,11 @@ TAO/tests/MT_Server/run_test.pl: !ST
TAO/tests/No_Server_MT_Connect_Test/run_test.pl: !ST !MINIMUM
TAO/tests/Connect_Strategy_Test/run_test.pl:
# DISABLED TAO/tests/Client_Leaks/run_test.pl: !VxWorks !ST !Tru64
-TAO/tests/Server_Leaks/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
+TAO/tests/Server_Leaks/run_test.pl:
TAO/tests/Smart_Proxies/Policy/run_test.pl: !VxWorks
TAO/tests/Smart_Proxies/run_test.pl:
TAO/tests/Smart_Proxies/dtor/run_test.pl:
-TAO/tests/Stack_Recursion/run_test.pl: !ST !DISABLE_ToFix_LynxOS_PPC
+TAO/tests/Stack_Recursion/run_test.pl: !ST
TAO/tests/Faults/run_test.pl: !VxWorks !MINIMUM !ST
TAO/tests/CallbackTest/run_test.pl: !MINIMUM
TAO/tests/CallbackTest/run_test_ipv6.pl: IPV6 !MINIMUM
@@ -175,14 +160,12 @@ TAO/tests/Multiple/run_test.pl: !VxWorks !SUNCC5_1
TAO/tests/Exposed_Policies/run_test.pl: !MINIMUM !ST
TAO/tests/Portable_Interceptors/Bug_1559/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/Collocated/Dynamic/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !ST
-TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !ST
-TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !ST
TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !ST
TAO/tests/Portable_Interceptors/Dynamic/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/IORInterceptor/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !GIOP10
TAO/tests/Portable_Interceptors/ForwardRequest/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/Service_Context_Manipulation/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !HAS_EXTENDED_FT_INTERCEPTORS
+TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/PICurrent/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/AMI/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/ORB_Shutdown/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
@@ -190,10 +173,6 @@ TAO/tests/Portable_Interceptors/PolicyFactory/run_test.pl: !MINIMUM !DISABLE_INT
TAO/tests/Portable_Interceptors/Bug_2088/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/Recursive_ORBInitializer/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Portable_Interceptors/Register_Initial_References/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/tests/Portable_Interceptors/Slot/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/tests/Portable_Interceptors/AdvSlot/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/tests/Portable_Interceptors/AdvSlotDblCpy/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/tests/Portable_Interceptors/AdvSlotExt/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/ORT/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/tests/Object_Loader/run_test.pl: !VxWorks !STATIC
TAO/tests/Two_Objects/run_test.pl: !ST
@@ -207,31 +186,3 @@ TAO/tests/GIOP_Fragments/PMB_With_Fragments/run_test.pl:
TAO/tests/CodeSets/simple/run_test.pl: !VxWorks !GIOP10 !STATIC
TAO/tests/Hang_Shutdown/run_test.pl: !ST
TAO/tests/Any/Recursive/run_test.pl:
-TAO/tests/CSD_Strategy_Tests/TP_Test_1/run_test.pl: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl remote: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl collocated: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl remote_orbthreads: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl remote_servants: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl remote_csdthreads: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl remote_big: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_2/run_test.pl big: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl remote: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl collocated: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl remote_orbthreads: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl remote_servants: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl remote_csdthreads: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl remote_big: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_3/run_test.pl big: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl remote: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl collocated: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl remote_orbthreads: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl remote_servants: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl remote_csdthreads: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl remote_big: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_4/run_test.pl big: !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_Dynamic/run_test.pl: !STATIC !ST !VxWorks
-TAO/tests/CSD_Strategy_Tests/TP_Test_Static/run_test.pl: !ST !VxWorks
-TAO/tests/Permanent_Forward/run_test.pl:
diff --git a/bin/tao_other_tests.lst b/bin/tao_other_tests.lst
index 77f2b48b244..632b74d01a8 100644
--- a/bin/tao_other_tests.lst
+++ b/bin/tao_other_tests.lst
@@ -1,3 +1,4 @@
+
# $Id$
#
# This is the list of run_test.pl's that need to be run by
@@ -9,23 +10,23 @@
#
# NOTE: This file contains examples and other service level test for
# TAO's. Please do not include regular tests here.
-TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !MINIMUM !ST !Win32
+TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test.pl: !MINIMUM !ST !Win32
#TAO/performance-tests/Cubit/TAO/IDL_Cubit/run_test_lite.pl: !MINIMUM !ST !STATIC !Win32
TAO/performance-tests/Cubit/TAO/MT_Cubit/run_test.pl: !ST !OpenBSD !Win32
TAO/performance-tests/Latency/Single_Threaded/run_test.pl -n 1000: !Win32
-TAO/performance-tests/Latency/Thread_Pool/run_test.pl -n 1000: !ST !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Latency/Thread_Per_Connection/run_test.pl -n 1000: !ST !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Latency/AMI/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !MINIMUM !ST !Win32
-TAO/performance-tests/Latency/DSI/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !MINIMUM !Win32
-TAO/performance-tests/Latency/DII/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !MINIMUM !Win32
-TAO/performance-tests/Latency/Deferred/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !MINIMUM !Win32
-TAO/performance-tests/Sequence_Latency/Single_Threaded/run_test.pl: !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Sequence_Latency/Thread_Pool/run_test.pl: !ST !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/run_test.pl: !ST !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Sequence_Latency/AMI/run_test.pl: !MINIMUM !ST !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Sequence_Latency/DSI/run_test.pl: !MINIMUM !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Sequence_Latency/DII/run_test.pl: !MINIMUM !Win32 !DISABLE_ToFix_LynxOS_PPC
-TAO/performance-tests/Sequence_Latency/Deferred/run_test.pl: !MINIMUM !Win32 !DISABLE_ToFix_LynxOS_PPC
+TAO/performance-tests/Latency/Thread_Pool/run_test.pl -n 1000: !ST !Win32
+TAO/performance-tests/Latency/Thread_Per_Connection/run_test.pl -n 1000: !ST !Win32
+TAO/performance-tests/Latency/AMI/run_test.pl: !MINIMUM !ST !Win32
+TAO/performance-tests/Latency/DSI/run_test.pl: !MINIMUM !Win32
+TAO/performance-tests/Latency/DII/run_test.pl: !MINIMUM !Win32
+TAO/performance-tests/Latency/Deferred/run_test.pl: !MINIMUM !Win32
+TAO/performance-tests/Sequence_Latency/Single_Threaded/run_test.pl: !Win32
+TAO/performance-tests/Sequence_Latency/Thread_Pool/run_test.pl: !ST !Win32
+TAO/performance-tests/Sequence_Latency/Thread_Per_Connection/run_test.pl: !ST !Win32
+TAO/performance-tests/Sequence_Latency/AMI/run_test.pl: !MINIMUM !ST !Win32
+TAO/performance-tests/Sequence_Latency/DSI/run_test.pl: !MINIMUM !Win32
+TAO/performance-tests/Sequence_Latency/DII/run_test.pl: !MINIMUM !Win32
+TAO/performance-tests/Sequence_Latency/Deferred/run_test.pl: !MINIMUM !Win32
TAO/performance-tests/Throughput/run_test.pl: !Win32
TAO/performance-tests/POA/Object_Creation_And_Registration/run_test.pl: !Win32
TAO/performance-tests/RTCorba/Oneways/Reliable/run_test.pl: !MINIMUM !Win32
@@ -47,48 +48,42 @@ TAO/examples/Simple/bank/run_test.pl: !NO_MESSAGING
TAO/examples/Simple/grid/run_test.pl: !NO_MESSAGING
TAO/examples/Simple/time-date/run_test.pl: !ST !STATIC !NO_MESSAGING !Win32
TAO/examples/Simple/time/run_test.pl: !NO_MESSAGING !Win32
-TAO/examples/Quoter/run_test.pl: !DISABLE_ToFix_LynxOS_PPC !MINIMUM !Win32
+TAO/examples/Quoter/run_test.pl: !MINIMUM !Win32
TAO/examples/Load_Balancing/run_test.pl: !MINIMUM !SUNCC5_1
TAO/examples/PluggableUDP/tests/Basic/run_test.pl: !STATIC !ST !NO_DIOP
TAO/examples/PluggableUDP/tests/SimplePerformance/run_test.pl: !NO_DIOP
-TAO/examples/AMH/Sink_Server/run_test.pl: !MINIMUM !Win32 !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/AVStreams/Pluggable/run_test.pl -p TCP,UDP,RTP_UDP: !MINIMUM !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/AVStreams/Pluggable/run_test.pl -p SCTP_SEQ: !MINIMUM SCTP !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/AVStreams/Full_Profile/run_test.pl: !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/AVStreams/Multicast/run_test.pl: !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
+TAO/examples/AMH/Sink_Server/run_test.pl: !MINIMUM !Win32
+TAO/orbsvcs/tests/AVStreams/Pluggable/run_test.pl -p TCP,UDP,RTP_UDP: !MINIMUM
+TAO/orbsvcs/tests/AVStreams/Pluggable/run_test.pl -p SCTP_SEQ: !MINIMUM SCTP
+TAO/orbsvcs/tests/AVStreams/Full_Profile/run_test.pl: !MINIMUM
+TAO/orbsvcs/tests/AVStreams/Multicast/run_test.pl: !MINIMUM
#TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/run_test.pl: !MINIMUM
#TAO/orbsvcs/tests/AVStreams/Latency/run_test.pl: !MINIMUM
-TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/run_test.pl -p TCP,UDP,RTP_UDP: !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/run_test.pl -p SCTP_SEQ: !MINIMUM SCTP !ACE_FOR_TAO
-TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/run_test.pl -p TCP,UDP,RTP_UDP: !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/run_test.pl -p SCTP_SEQ: !MINIMUM SCTP !ACE_FOR_TAO
-TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/run_test.pl: !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl: !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/AVStreams/Component_Switching/run_test.pl: !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Bug_1334_Regression/run_test.pl: !ACE_FOR_TAO
+TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/run_test.pl -p TCP,UDP,RTP_UDP: !MINIMUM
+TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage/run_test.pl -p SCTP_SEQ: !MINIMUM SCTP
+TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/run_test.pl -p TCP,UDP,RTP_UDP: !MINIMUM
+TAO/orbsvcs/tests/AVStreams/Simple_Two_Stage_With_QoS/run_test.pl -p SCTP_SEQ: !MINIMUM SCTP
+TAO/orbsvcs/tests/AVStreams/Simple_Three_Stage/run_test.pl: !MINIMUM
+TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/run_test.pl: !MINIMUM
+TAO/orbsvcs/tests/AVStreams/Component_Switching/run_test.pl: !MINIMUM
+TAO/orbsvcs/tests/Bug_1334_Regression/run_test.pl
TAO/orbsvcs/tests/Bug_1393_Regression/run_test.pl: !MINIMUM !NO_IFR
-TAO/orbsvcs/tests/Bug_1395_Regression/run_test.pl: !LynxOS !MINIMUM !NO_MESSAGING
+TAO/orbsvcs/tests/Bug_1395_Regression/run_test.pl: !MINIMUM !NO_MESSAGING
TAO/orbsvcs/tests/Bug_1436_Regression/run_test.pl: !MINIMUM !NO_IFR
TAO/orbsvcs/tests/Bug_1437_Regression/run_test.pl: !MINIMUM !NO_MESSAGING
TAO/orbsvcs/tests/Bug_1630_Regression/run_test.pl: !NO_IFR !MINIMUM
-TAO/orbsvcs/tests/Bug_2074_Regression/run_test.pl: !MINIMUM !ST !NO_MESSAGING
TAO/orbsvcs/tests/Bug_2247_Regression/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
TAO/orbsvcs/tests/Bug_2248_Regression/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Bug_2285_Regression/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Bug_2285_Regression/run_test2.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Bug_2287_Regression/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Bug_2316_Regression/run_test.pl: !MINIMUM !STATIC !SUNCC5_1
-TAO/orbsvcs/tests/Bug_2377_Regression/run_test.pl: !MINIMUM !STATIC
TAO/orbsvcs/tests/CosEvent/Basic/run_test.pl: !ST !MINIMUM
-TAO/orbsvcs/tests/Simple_Naming/run_test.pl: !ST !SUNCC5_1 !NO_MESSAGING !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86 !DISABLE_ToFix_LynxOS_PPC
-TAO/orbsvcs/tests/Simple_Naming/run_test_ffp.pl: !ST !SUNCC5_1 !MINIMUM !NO_MESSAGING !ACE_FOR_TAO
-TAO/orbsvcs/tests/Redundant_Naming/run_test.pl: !ST !SUNCC5_1 !MINIMUM !ACE_FOR_TAO
+TAO/orbsvcs/tests/Simple_Naming/run_test.pl: !ST !SUNCC5_1 !NO_MESSAGING
+TAO/orbsvcs/tests/Simple_Naming/run_test_ffp.pl: !ST !SUNCC5_1 !MINIMUM !NO_MESSAGING
+TAO/orbsvcs/tests/Redundant_Naming/run_test.pl: !ST !SUNCC5_1 !MINIMUM
TAO/orbsvcs/tests/Trading/run_test.pl: !MINIMUM !SUNCC5_1
TAO/orbsvcs/tests/Event/Basic/run_test.pl: !ST !MINIMUM
TAO/orbsvcs/tests/Event/Performance/run_test.pl: !ST !MINIMUM
-TAO/orbsvcs/tests/EC_Custom_Marshal/run_test.pl: !ST !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/EC_Throughput/run_test.pl: !ST !MINIMUM !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl:!ST !MINIMUM
+TAO/orbsvcs/tests/EC_Custom_Marshal/run_test.pl: !ST !MINIMUM
+TAO/orbsvcs/tests/EC_Throughput/run_test.pl: !ST !MINIMUM
+TAO/orbsvcs/tests/EC_MT_Mcast/run_test.pl:!ST !MINIMUM !STATIC
TAO/orbsvcs/tests/FaultTolerance/GroupRef_Manipulation/run_test.pl:!MINIMUM !DISABLE_INTERCEPTORS
TAO/orbsvcs/tests/FaultTolerance/IOGR/run_test.pl:!MINIMUM !DISABLE_INTERCEPTORS
TAO/orbsvcs/tests/FaultTolerance/IOGRManipulation/run_test.pl:!MINIMUM !DISABLE_INTERCEPTORS
@@ -96,7 +91,6 @@ TAO/orbsvcs/tests/Bug_2137_Regression/run_test.pl: !MINIMUM !DISABLE_INTERCEPTOR
TAO/orbsvcs/tests/InterfaceRepo/Application_Test/run_test.pl: !MINIMUM !NO_IFR !STATIC
TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/run_test.pl: !MINIMUM !NO_IFR
TAO/orbsvcs/tests/InterfaceRepo/IFR_Test/run_test.pl: !MINIMUM !NO_IFR
-TAO/orbsvcs/tests/InterfaceRepo/IFR_Inheritance_Test/run_test.pl: !MINIMUM !NO_IFR
TAO/orbsvcs/tests/InterfaceRepo/Latency_Test/run_test.pl: !MINIMUM !NO_IFR
TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/run_test.pl: !MINIMUM !NO_IFR
TAO/orbsvcs/tests/ImplRepo/run_test.pl both_ir: !MINIMUM
@@ -104,54 +98,53 @@ TAO/orbsvcs/tests/ImplRepo/run_test.pl nestea_ir: !MINIMUM
TAO/orbsvcs/tests/ImplRepo/run_test.pl airplane_ir: !MINIMUM
TAO/orbsvcs/tests/ImplRepo/run_test.pl persistent_ir: !MINIMUM
TAO/orbsvcs/tests/ImplRepo/run_test.pl nt_service_ir: !MINIMUM Win32
-TAO/orbsvcs/tests/ImplRepo/run_test.pl shutdown: !MINIMUM !DISABLE_ToFix_LynxOS_x86 !DISABLE_ToFix_LynxOS_PPC
+TAO/orbsvcs/tests/ImplRepo/run_test.pl shutdown: !MINIMUM
TAO/orbsvcs/tests/ImplRepo/run_test.pl perclient: !MINIMUM
TAO/orbsvcs/tests/ImplRepo/NameService/run_test.pl: !MINIMUM
-TAO/orbsvcs/tests/ImplRepo/locked/run_test.pl: !MINIMUM !DISABLE_ToFix_LynxOS_x86 !DISABLE_ToFix_LynxOS_PPC
+TAO/orbsvcs/tests/ImplRepo/locked/run_test.pl: !MINIMUM
TAO/orbsvcs/tests/ImplRepo/scale/run_test.pl -servers 5 -objects 5: !MINIMUM
TAO/orbsvcs/examples/ImR/Combined_Service/run_test.pl: !MINIMUM !STATIC !ST
-TAO/orbsvcs/examples/CosEC/TypedSimple/run_test.pl: !MINIMUM !NO_IFR
-TAO/orbsvcs/tests/Log/Basic_Log_Test/run_test.pl: !NO_MESSAGING !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Basic/run_test.pl notify.reactive.conf: !ST !NO_MESSAGING !STATIC !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl notify.reactive.conf: IPV6 !ST !NO_MESSAGING !STATIC !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Basic/run_test.pl notify.mt.conf: !ST !NOTIFY !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl notify.mt.conf: IPV6 !ST !NOTIFY !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Basic/run_test.pl notify.rt.conf: !ST !STATIC !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl notify.rt.conf: IPV6 !ST !STATIC !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Blocking/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/Notify/Discarding/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/Notify/MT_Dispatching/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Ordering/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/Notify/performance-tests/Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM !IRIX !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
-TAO/orbsvcs/tests/Notify/Structured_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO !DISABLE_ToFix_LynxOS_x86
-TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM !ACE_FOR_TAO
+TAO/orbsvcs/examples/CosEC/TypedSimple/run_test.pl: !MINIMUM
+TAO/orbsvcs/tests/Log/Basic_Log_Test/run_test.pl: !NO_MESSAGING
+TAO/orbsvcs/tests/Notify/Basic/run_test.pl notify.reactive.conf: !ST !NO_MESSAGING !STATIC !MINIMUM
+TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl notify.reactive.conf: IPV6 !ST !NO_MESSAGING !STATIC !MINIMUM
+TAO/orbsvcs/tests/Notify/Basic/run_test.pl notify.mt.conf: !ST !NOTIFY !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl notify.mt.conf: IPV6 !ST !NOTIFY !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Basic/run_test.pl notify.rt.conf: !ST !STATIC !MINIMUM
+TAO/orbsvcs/tests/Notify/Basic/run_test_ipv6.pl notify.rt.conf: IPV6 !ST !STATIC !MINIMUM
+TAO/orbsvcs/tests/Notify/Blocking/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Discarding/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/MT_Dispatching/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Ordering/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/performance-tests/Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM !IRIX
+TAO/orbsvcs/tests/Notify/performance-tests/RedGreen/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Sequence_Multi_ETCL_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Sequence_Multi_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Structured_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM
+TAO/orbsvcs/tests/Notify/Structured_Multi_Filter/run_test.pl: !ST !NO_MESSAGING !MINIMUM
TAO/orbsvcs/tests/Notify/Reconnecting/run_test.pl: !ST !NO_MESSAGING !MINIMUM !STATIC
TAO/orbsvcs/tests/Notify/XML_Persistence/run_test.pl: !ST !NO_MESSAGING !MINIMUM !STATIC
-TAO/orbsvcs/tests/EC_Mcast/run_test.pl: !NO_MCAST !NO_MESSAGING !DISABLE_ToFix_LynxOS_PPC
+TAO/orbsvcs/tests/EC_Mcast/run_test.pl: !NO_MCAST !NO_MESSAGING
# FAILS 'TAO/orbsvcs/tests/EC_Multiple/run_test.pl
# NO REDIRECTION TAO/examples/Simple/echo/run_test.pl < Echo.idl
-TAO/orbsvcs/tests/Property/run_test.pl: !NO_MESSAGING !ACE_FOR_TAO
+TAO/orbsvcs/tests/Property/run_test.pl: !NO_MESSAGING
#HANGS TAO/orbsvcs/tests/ImplRepo/run_test.pl airplane
#HANGS'TAO/orbsvcs/tests/ImplRepo/run_test.pl airplane_ir
-TAO/orbsvcs/tests/Security/Big_Request/run_test.pl: SSL !STATIC !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Security/Callback/run_test.pl: SSL !STATIC !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test.pl: !ST SSL !STATIC !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Security/MT_IIOP_SSL/run_test.pl: !ST SSL !STATIC !DISABLE_INTERCEPTORS
-#Bug 1647. run_test_harsh.pl takes 5 minutes; but there aren't many SSL builds
-TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test_harsh.pl: !ST SSL !STATIC !DISABLE_INTERCEPTORS
-TAO/orbsvcs/tests/Security/Crash_Test/run_test.pl: SSL !STATIC !DISABLE_INTERCEPTORS
+TAO/orbsvcs/tests/Security/Big_Request/run_test.pl: SSL !STATIC
+TAO/orbsvcs/tests/Security/Callback/run_test.pl: SSL !STATIC
+TAO/orbsvcs/tests/Security/MT_SSLIOP/run_test.pl: !ST SSL !STATIC
+TAO/orbsvcs/tests/Security/MT_IIOP_SSL/run_test.pl: !ST SSL !STATIC
+TAO/orbsvcs/tests/Security/Secure_Invocation/run_test.pl: SSL !STATIC
+TAO/orbsvcs/tests/Security/Crash_Test/run_test.pl: SSL !STATIC
TAO/orbsvcs/tests/Miop/McastHello/run_test.pl: !MINIMUM !STATIC !SUNCC5_1 !NO_MCAST
# The following 2 tests use dynamic loading to change the default reactor on Windows
TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Application_Controlled/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC
TAO/orbsvcs/tests/LoadBalancing/GenericFactory/Infrastructure_Controlled/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC
-TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !NO_LOADAVG !DISABLE_ToFix_LynxOS_x86
-TAO/examples/RTCORBA/Activity/run_test.pl: !MINIMUM !ST !ACE_FOR_TAO
-TAO/examples/RTScheduling/Fixed_Priority_Scheduler/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC !ST !ACE_FOR_TAO
-TAO/examples/RTScheduling/MIF_Scheduler/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC !ST !ACE_FOR_TAO
-TAO/examples/ior_corbaloc/run_test.pl: !NO_MESSAGING !ACE_FOR_TAO
-TAO/utils/nslist/run_test.pl: !ST !SUNCC5_1 !NO_MESSAGING !ACE_FOR_TAO
-TAO/orbsvcs/tests/BiDir_CORBALOC/run_test.pl: !NO_MESSAGING !ACE_FOR_TAO
+TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !NO_LOADAVG
+TAO/examples/RTCORBA/Activity/run_test.pl: !MINIMUM !ST
+TAO/examples/RTScheduling/Fixed_Priority_Scheduler/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC !ST
+TAO/examples/RTScheduling/MIF_Scheduler/run_test.pl: !MINIMUM !DISABLE_INTERCEPTORS !STATIC !ST
+TAO/examples/ior_corbaloc/run_test.pl: !NO_MESSAGING
+TAO/utils/nslist/run_test.pl: !ST !SUNCC5_1 !NO_MESSAGING
+TAO/orbsvcs/tests/BiDir_CORBALOC/run_test.pl: !NO_MESSAGING
TAO/orbsvcs/tests/IOR_MCast/run_test_ipv6.pl: IPV6 !MINIMUM
diff --git a/configure.ac b/configure.ac
index 376d524eef4..8fef664dc15 100644
--- a/configure.ac
+++ b/configure.ac
@@ -208,18 +208,6 @@ dnl Determine which subsets to build
dnl This is done using the autoconf "--enable-foobar" mechanism.
ACE_CHECK_SUBSETS
-dnl Some of the third party libraries (X11, openssl, etc.) depend on
-dnl other libraries. Check for those before the processing --enable
-dnl options.
-
-dnl Check if the socket library is available
-AC_SEARCH_LIBS([socket],[socket],,,[-lnsl])
-
-dnl Check for gethostbyname in -lnsl since some platforms (e.g. Solaris)
-dnl put it there.
-AC_SEARCH_LIBS([gethostbyname],[nsl],,)
-
-
dnl Add --{enable,disable,with,without}-feature options.
ACE_CONFIGURATION_OPTIONS
ACE_COMPILATION_OPTIONS
@@ -247,6 +235,9 @@ dnl Platform specific libraries needed for ACE's autoconf tests
dnl that currently do not have tests themselves.
dnl Platform specific flags
case "$host" in
+ *freebsd*)
+ LIBS="$LIBS -lcompat"
+ ;;
*osf3.2*)
LIBS="$LIBS -lmach -lsys5 -lcxx -lc"
;;
@@ -321,10 +312,19 @@ AC_SEARCH_LIBS([dlopen],[dl svld],[ace_has_svr4_dynamic_linking=yes],
AC_CHECK_LIB([dld],[shl_get],,)
])
+dnl Check if the socket library is available
+AC_SEARCH_LIBS([socket],[socket],,,[-lnsl])
+
+dnl Check for gethostbyname in -lnsl since some platforms (e.g. Solaris)
+dnl put it there.
+AC_SEARCH_LIBS([gethostbyname],[nsl],,)
+
dnl Check for getservbyname in -lxnet since some platforms (e.g. Solaris)
dnl may put it there.
AC_SEARCH_LIBS([getservbyname],[socket xnet],,[AC_DEFINE([ACE_LACKS_GETSERVBYNAME])],[-lnsl])
+ACE_CHECK_LACKS_FUNCS(inet_aton)
+
dnl Check for compile() regex function in -lgen. Solaris, for example,
dnl may put it there.
AC_SEARCH_LIBS([compile],[gen],,)
@@ -600,8 +600,6 @@ ACE_CHECK_LACKS_HEADERS(fcntl.h)
ACE_CHECK_HAS_HEADERS(pthread_np.h)
-ACE_CHECK_LACKS_HEADERS(sched.h)
-
ACE_CHECK_LACKS_HEADERS(search.h)
ACE_CHECK_HAS_HEADERS(select.h)
@@ -650,22 +648,10 @@ ACE_CHECK_LACKS_HEADERS(sys/socket.h)
ACE_CHECK_LACKS_HEADERS(sys/stat.h)
-dnl Test for <sys/types.h> out of alphabetical order, since it must
-dnl be (conditionally) #included in other feature tests.
-ACE_CHECK_LACKS_HEADERS(sys/types.h)
-
-ACE_CHECK_LACKS_HEADERS(sys/sysctl.h, [], [],
-[
-#ifndef ACE_LACKS_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifndef ACE_LACKS_SYS_PARAM_H
-# include <sys/param.h>
-#endif
-])
-
ACE_CHECK_LACKS_HEADERS(sys/time.h)
+ACE_CHECK_LACKS_HEADERS(sys/types.h)
+
ACE_CHECK_LACKS_HEADERS(sys/uio.h)
ACE_CHECK_LACKS_HEADERS(sys/un.h)
@@ -921,6 +907,16 @@ AS_IF([test "$ace_has_xti" = yes || test "$ace_has_tli" = yes],
],[])
+AC_CHECK_HEADER([sys/time.h],
+ [
+ dnl This is a weak test.
+ AC_EGREP_HEADER([sys/time.h],[time.h],
+ ,
+ [
+ AC_DEFINE([ACE_LACKS_SYSTIME_H])
+ ])
+ ],)
+
dnl See the notes about ACE_LACKS_MMAP in the functions section of this
dnl configure script.
dnl -Ossama
@@ -1073,6 +1069,17 @@ ACE_CACHE_CHECK([for old malloc() prototype],
]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS
+dnl Check for getopt() prototype
+AC_CHECK_DECL([getopt],
+ [],
+ [AC_DEFINE([ACE_LACKS_GETOPT_PROTOTYPE], 1,
+ [Define to 1 if platform lacks the declaration
+ of getopt().])],
+ [#include <stdlib.h>
+ #ifndef ACE_LACKS_UNISTD_H
+ # include <unistd.h>
+ #endif])
+
dnl Check for *_timedwait() prototypes
dnl TODO: We only check for one of the *_timedwait() prototypes.
dnl Is this enough?
@@ -1084,6 +1091,22 @@ AC_CHECK_DECL([recv_timedwait],
[#include <pthread.h>
#include <fcntl.h>])
+dnl Check for ualarm prototype
+AC_CHECK_DECL([ualarm],
+ [],
+ [AC_DEFINE([ACE_LACKS_UALARM_PROTOTYPE], 1,
+ [Define to 1 if platform lacks the declaration
+ of ualarm().])],
+ [#include <unistd.h>])
+
+dnl Check for getrusage prototype in sys/resource.h
+AC_CHECK_DECL([getrusage],
+ [AC_DEFINE([ACE_HAS_GETRUSAGE_PROTOTYPE], 1,
+ [Define to 1 if platform has the declaration
+ of getrusage().])],
+ [],
+ [#include <sys/resource.h>])
+
dnl Check for {get,set}rlimit prototypes
AC_CHECK_DECL([getrlimit],[],[],[#include <sys/resource.h>])
AC_CHECK_DECL([setrlimit],[],[],[#include <sys/resource.h>])
@@ -1127,16 +1150,6 @@ dnl AC_CHECK_TYPE([off64_t],[long long])
dnl Specific typedef checks
dnl TODO: Check whether these typedefs can be defined somewhere else.
-AC_CHECK_TYPE([cpu_set_t],
- [AC_DEFINE([ACE_HAS_CPU_SET_T], 1,
- [Define to 1 if the system has the type `cpu_set_t'.])],
- [],
- [
-#if !defined(ACE_LACKS_SCHED_H)
-#include <sched.h>
-#endif
- ])
-
AC_CHECK_TYPE([idtype_t],
[AC_DEFINE([ACE_HAS_IDTYPE_T], 1,
[Define to 1 if the system has the type `idtype_t'.])],
@@ -1169,19 +1182,6 @@ AC_CHECK_TYPE([ssize_t],
[],
[#include <sys/types.h>])
-AC_CHECK_TYPE([suseconds_t],
- [],
- [AC_DEFINE([ACE_LACKS_SUSECONDS_T], 1,
- [Define to 1 if the system lacks the type 'suseconds_t'.])],
- [#include <sys/types.h>])
-
-AC_CHECK_TYPE([useconds_t],
- [],
- [AC_DEFINE([ACE_LACKS_USECONDS_T], 1,
- [Define to 1 if the system lacks the type 'useconds_t'.])],
- [#include <sys/types.h>])
-
-
dnl Some platforms define ucontext_t in <sys/ucontext.h>, but ACE
dnl doesn't explicitly include that header. However, it is very
dnl likely that <signal.h> does, either directly or indirectly.
@@ -1393,10 +1393,11 @@ ACE_CACHE_CHECK([for POSIX timer structure],
[ace_cv_lib_posix_timer_struct],
[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#if !defined(ACE_LACKS_SYS_TIME_H)
+#include <time.h>
+
+#if defined(ACE_LACKS_SYSTIME_H)
# include <sys/time.h>
#endif
-#include <time.h>
]],[[
timespec sr;
]])],[
@@ -1407,6 +1408,10 @@ ACE_CACHE_CHECK([for POSIX timer structure],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[
#include <time.h>
+
+#if defined(ACE_LACKS_SYSTIME_H)
+# include <sys/time.h>
+#endif
]],
[[
timestruc_t sr;
@@ -1464,6 +1469,10 @@ ACE_CACHE_CHECK([for timespec_t],
[ace_cv_lib_posix_timespec_t],[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <time.h>
+
+#if defined(ACE_LACKS_SYSTIME_H)
+# include <sys/time.h>
+#endif
]],[[
timespec_t tt;
]])],[
@@ -1503,6 +1512,10 @@ ACE_CACHE_CHECK([for broken struct timespec members],
[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <time.h>
+
+#if defined(ACE_LACKS_SYSTIME_H)
+# include <sys/time.h>
+#endif
]],[[
timespec sr;
sr.ts_sec = 0;
@@ -1559,30 +1572,22 @@ if test "$ace_cv_struct_siginfo_t" = yes; then
fi dnl test "$ace_cv_struct_siginfo_t" = yes
dnl Check for sin_len member in struct sockaddr_in
-AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
- [AC_DEFINE([ACE_HAS_SOCKADDR_IN_SIN_LEN], 1,
- [Define to 1 if `sin_len' is a member of `sockaddr_in'.])],
- [],
- [
-#ifndef ACE_LACKS_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#include <sys/socket.h>
-#include <netinet/in.h>
- ])
-
-dnl Check for sin6_len member in struct sockaddr_in6
-AC_CHECK_MEMBER([struct sockaddr_in6.sin6_len],
- [AC_DEFINE([ACE_HAS_SOCKADDR_IN6_SIN6_LEN], 1,
- [Define to 1 if `sin6_len' is a member of `sockaddr_in6'.])],
- [],
- [
+ACE_CACHE_CHECK([for sin_len member in struct sockaddr_in],
+ [ace_cv_lib_has_sin_len],[
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifndef ACE_LACKS_SYS_TYPES_H
# include <sys/types.h>
#endif
-#include <sys/socket.h>
#include <netinet/in.h>
- ])
+ ]],[[
+ sockaddr_in ace_sin;
+ ace_sin.sin_len = sizeof(ace_sin);
+ ]])],[
+ ace_cv_lib_has_sin_len=yes
+ ],[
+ ace_cv_lib_has_sin_len=no
+ ])
+],[AC_DEFINE([ACE_HAS_SIN_LEN])],)
dnl Check for sys_siglist
dnl TODO: Check whether this variable can be defined somewhere else.
@@ -1942,17 +1947,6 @@ AC_CHECK_TYPE([uint64_t],
#include <inttypes.h>
#endif])
-AC_CACHE_CHECK([for std::numeric_limits<>],
-[ace_func_numeric_limits],
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <limits>],
- [return std::numeric_limits<int>::max();])],
- [ace_cv_func_numeric_limits=yes],
- [ace_cv_func_numeric_limits=no])])
-if test $ace_cv_func_numeric_limits = no; then
- AC_DEFINE([ACE_LACKS_NUMERIC_LIMITS], 1,
- [Define to 1 if platfom lacks std::numeric_limits<>.])
-fi
-
dnl Other checks
@@ -3311,13 +3305,6 @@ AC_CACHE_SAVE
dnl SECTION 10: checks for library functions
-ACE_FUNC_STRCASECMP
-ACE_FUNC_STRNCASECMP
-ACE_FUNC_STRDUP
-ACE_FUNC_WCSCASECMP
-ACE_FUNC_WCSNCASECMP
-ACE_FUNC_WCSDUP
-
if test "$ace_user_enable_alloca" = yes; then
AC_FUNC_ALLOCA
if test "$ac_cv_header_alloca_h" = yes; then
@@ -3436,32 +3423,13 @@ esac
ACE_CHECK_LACKS_FUNCS(access)
-ACE_CHECK_LACKS_FUNCS(alarm)
-
ACE_CHECK_LACKS_FUNCS(bsearch)
-ACE_CHECK_LACKS_FUNCS(chdir)
-
ACE_CHECK_HAS_FUNCS(clock_gettime clock_settime nanosleep)
ACE_CHECK_LACKS_FUNCS(difftime)
-ACE_CHECK_LACKS_FUNCS(dup)
-
-ACE_CHECK_LACKS_FUNCS(dup2)
-
-dnl ACE uses execv, execvp and execve, so we don't bother to check
-dnl for the others (e.g. execl, execlp, execle)
-AC_CHECK_FUNC(execv)
-AC_CHECK_FUNC(execvp)
-AC_CHECK_FUNC(execve)
-if test "$ac_cv_func_execv" != yes &&
- test "$ac_cv_func_execvp" != yes &&
- test "$ac_cv_func_execve" != yes; then
- AC_DEFINE([ACE_LACKS_EXEC])
-fi
-
-ACE_CHECK_LACKS_FUNCS(fgetwc fcntl fork fsync)
+ACE_CHECK_LACKS_FUNCS(fgetwc fcntl fsync)
ACE_CHECK_LACKS_FUNCS(gethostent)
@@ -3471,201 +3439,16 @@ ACE_CHECK_LACKS_FUNCS(getipnodebyname)
ACE_CHECK_HAS_FUNCS(getifaddrs)
-ACE_CHECK_LACKS_FUNCS(getegid geteuid getgid)
-
-ACE_CHECK_LACKS_FUNCS(getopt)
-if test $ac_cv_func_getopt = yes; then
- AC_CHECK_DECL([getopt],
- [],
- [AC_DEFINE([ACE_LACKS_GETOPT_PROTOTYPE], 1,
- [Define to 1 if platform lacks the declaration
- of getopt().])],
- [#include <stdlib.h>
- #ifndef ACE_LACKS_UNISTD_H
- # include <unistd.h>
- #endif])
-fi
-
-AC_CHECK_FUNC([getpagesize],
- [AC_DEFINE([ACE_HAS_GETPAGESIZE])],
- [AC_DEFINE([ACE_PAGE_SIZE], [4096])])
-
-ACE_CHECK_LACKS_FUNCS(getpid)
-
-ACE_CHECK_LACKS_FUNCS([getpgid])
-if test "$ac_cv_func_getpgid" = yes; then
- dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
- dnl needed to make the getpgid() prototype visible.
- ACE_CACHE_CHECK([for getpgid prototype],
- [ace_cv_lib_has_getpgid_prototype],
- [
- ace_save_CPPFLAGS="$CPPFLAGS"
- ace_no_xopen="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
- CPPFLAGS="$CPPFLAGS $ace_no_xopen"
- AC_EGREP_HEADER([[^_]+getpgid], [unistd.h],
- [
- ace_cv_lib_has_getpgid_prototype=yes
- ],
- [
- ace_cv_lib_has_getpgid_prototype=no
- ])
- dnl Reset the compiler flags
- CPPFLAGS="$ace_save_CPPFLAGS"
- ],, [AC_DEFINE([ACE_LACKS_GETPGID_PROTOTYPE])])
- AH_TEMPLATE([ACE_LACKS_GETPGID_PROTOTYPE],
- [Define to 1 if platform lacks getpgid() declaration in <unistd.h>.])
-fi
-
-ACE_CHECK_LACKS_FUNCS(getppid)
-
-ACE_CHECK_HAS_FUNCS(getrusage)
-if test $ac_cv_func_getrusage = yes; then
- AC_CHECK_DECL([getrusage],
- [AC_DEFINE([ACE_HAS_GETRUSAGE_PROTOTYPE], 1,
- [Define to 1 if platform has the declaration
- of getrusage().])],
- [],
- [#include <sys/resource.h>])
-fi
-
-ACE_CHECK_LACKS_FUNCS(getuid)
-
-ACE_CHECK_LACKS_FUNCS(inet_aton)
-
-ACE_CHECK_LACKS_FUNCS(isatty)
-
ACE_CHECK_HAS_FUNCS(itoa)
-dnl Check for 64 bit llseek() or lseek64()
-case "$host" in
- *UnixWare7*)
- dnl Skip the check
- ;;
- *)
- ACE_CHECK_LSEEK64
- ;;
-esac
-
-ACE_CHECK_LACKS_FUNCS(kill)
-
-ACE_CHECK_LACKS_FUNCS(lstat)
-
-ACE_CHECK_LACKS_FUNCS(madvise)
-if test $ac_cv_func_madvise = yes; then
- AC_CHECK_DECL([madvise],
- [],
- [AC_DEFINE([ACE_LACKS_MADVISE_PROTOTYPE], 1,
- [Define to 1 if platform lacks the declaration
- of madvise().])],
- [
-#if !defined(ACE_LACKS_SYS_TYPES_H)
-# include <sys/types.h>
-#endif
-#include <sys/mman.h>
- ])
-fi
-
-ACE_CHECK_HAS_FUNCS(memchr)
-
-ACE_CHECK_LACKS_FUNCS(mkfifo mkstemp mktemp)
-
-ACE_CHECK_LACKS_FUNCS(msync mprotect)
-
-ACE_CHECK_LACKS_FUNCS(pipe)
-
ACE_CHECK_LACKS_FUNCS(qsort)
-ACE_CHECK_LACKS_FUNCS(setegid seteuid setgid)
-
-ACE_CHECK_LACKS_FUNCS([setpgid])
-if test "$ac_cv_func_setpgid" = yes; then
- dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
- dnl needed to make the setpgid() prototype visible.
- ACE_CACHE_CHECK([for setpgid prototype],
- [ace_cv_lib_has_setpgid_prototype],
- [
- ace_save_CPPFLAGS="$CPPFLAGS"
- ace_no_xopen="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
- CPPFLAGS="$CPPFLAGS $ace_no_xopen"
- AC_EGREP_HEADER([[^_]+setpgid], [unistd.h],
- [
- ace_cv_lib_has_setpgid_prototype=yes
- ],
- [
- ace_cv_lib_has_setpgid_prototype=no
- ])
- dnl Reset the compiler flags
- CPPFLAGS="$ace_save_CPPFLAGS"
- ],, [AC_DEFINE([ACE_LACKS_SETPGID_PROTOTYPE])])
- AH_TEMPLATE([ACE_LACKS_SETPGID_PROTOTYPE],
- [Define to 1 if platform lacks setpgid() declaration in <unistd.h>.])
-fi
-
-ACE_CHECK_LACKS_FUNCS([setregid])
-if test "$ac_cv_func_setregid" = yes; then
- dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
- dnl needed to make the setregid() prototype visible.
- ACE_CACHE_CHECK([for setregid prototype],
- [ace_cv_lib_has_setregid_prototype],
- [
- ace_save_CPPFLAGS="$CPPFLAGS"
- ace_no_xopen="-U_BSD_SOURCE -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
- CPPFLAGS="$CPPFLAGS $ace_no_xopen"
- AC_EGREP_HEADER([[^_]+setregid], [unistd.h],
- [
- ace_cv_lib_has_setregid_prototype=yes
- ],
- [
- ace_cv_lib_has_setregid_prototype=no
- ])
- dnl Reset the compiler flags
- CPPFLAGS="$ace_save_CPPFLAGS"
- ],, [AC_DEFINE([ACE_LACKS_SETREGID_PROTOTYPE])])
- AH_TEMPLATE([ACE_LACKS_SETREGID_PROTOTYPE],
- [Define to 1 if platform lacks setregid() declaration in <unistd.h>.])
-fi
-
-ACE_CHECK_LACKS_FUNCS([setreuid])
-if test "$ac_cv_func_setreuid" = yes; then
- dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
- dnl needed to make the setreuid() prototype visible.
- ACE_CACHE_CHECK([for setreuid prototype],
- [ace_cv_lib_has_setreuid_prototype],
- [
- ace_save_CPPFLAGS="$CPPFLAGS"
- ace_no_xopen="-U_BSD_SOURCE -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
- CPPFLAGS="$CPPFLAGS $ace_no_xopen"
- AC_EGREP_HEADER([[^_]+setreuid], [unistd.h],
- [
- ace_cv_lib_has_setreuid_prototype=yes
- ],
- [
- ace_cv_lib_has_setreuid_prototype=no
- ])
- dnl Reset the compiler flags
- CPPFLAGS="$ace_save_CPPFLAGS"
- ],, [AC_DEFINE([ACE_LACKS_SETREUID_PROTOTYPE])])
- AH_TEMPLATE([ACE_LACKS_SETREUID_PROTOTYPE],
- [Define to 1 if platform lacks setreuid() declaration in <unistd.h>.])
-fi
-
-ACE_CHECK_LACKS_FUNCS(setsid setuid)
-
-ACE_CHECK_LACKS_FUNCS(sigaction)
-
ACE_CHECK_HAS_FUNCS(strnlen)
-ACE_CHECK_LACKS_FUNCS(strchr)
-
-# believe it or not, both ACE_LACKS_STRERROR and ACE_HAS_STRERROR
-# feature test macros are currently used.
-ACE_CHECK_HAS_FUNCS(strerror)
ACE_CHECK_LACKS_FUNCS(strerror)
ACE_CHECK_LACKS_FUNCS(strpbrk)
-ACE_CHECK_LACKS_FUNCS(strrchr)
-
ACE_CHECK_LACKS_FUNCS(strspn)
ACE_CHECK_LACKS_FUNCS(strtod)
@@ -3675,9 +3458,9 @@ ACE_CHECK_LACKS_FUNCS(strtol)
ACE_CHECK_LACKS_FUNCS(strtoul)
# swab() comes in a number of forms:
-# swab (const void*, void*, size_t) is POSIX, XPG4, SUS, SUSv2 standard.
-# swab (const char*, char*, size_t) is SVID third edition.
-# swab (char*, char*, size_t) is on some odd platforms like Windows.
+# swab (const void*, void*, ssize_t) is POSIX, XPG4, SUS, SUSv2 standard.
+# swab (const char*, char*, ssize_t) is SVID third edition.
+# swab (char*, char*, ssize_t) is on some odd platforms like Windows.
# So, if swab() is available, figure out which of the three variants it is.
# The second and third have ACE config settings.
ACE_CHECK_LACKS_FUNCS([swab],
@@ -3723,18 +3506,16 @@ swab (src, dst, 2);
],
)
-ACE_CHECK_LACKS_FUNCS(sysconf)
-
-ACE_CHECK_HAS_FUNCS(sysctl)
-
-AC_CHECK_FUNC([sysinfo],
- [
- if test "$ac_cv_header_sys_systeminfo_h" = yes; then
- AC_DEFINE([ACE_HAS_SYSINFO])
- fi
- ],)
-
-ACE_CHECK_LACKS_FUNCS(system)
+dnl ACE uses execv, execvp and execve, so we don't bother to check
+dnl for the others (e.g. execl, execlp, execle)
+AC_CHECK_FUNC(execv)
+AC_CHECK_FUNC(execvp)
+AC_CHECK_FUNC(execve)
+if test "$ac_cv_func_execv" != yes &&
+ test "$ac_cv_func_execvp" != yes &&
+ test "$ac_cv_func_execve" != yes; then
+ AC_DEFINE([ACE_LACKS_EXEC])
+fi
AC_CHECK_FUNC([getmsg],
[
@@ -3784,6 +3565,16 @@ main ()
AC_CHECK_FUNC([gethostbyaddr],,)
+dnl Check for 64 bit llseek() or lseek64()
+case "$host" in
+ *UnixWare7*)
+ dnl Skip the check
+ ;;
+ *)
+ ACE_CHECK_LSEEK64
+ ;;
+esac
+
AC_CHECK_FUNC([bind],
[
ACE_CACHE_CHECK([if bind() will select the port if it is zero],
@@ -3912,11 +3703,17 @@ AC_CHECK_FUNC([pread],
ACE_CHECK_LACKS_FUNCS(readv writev)
-ACE_CHECK_HAS_FUNCS(set_t_errno)
+AC_CHECK_FUNC([set_t_errno], [AC_DEFINE([ACE_HAS_SET_T_ERRNO])],)
ACE_CHECK_HAS_FUNCS(sigsuspend sigtimedwait)
-ACE_CHECK_LACKS_FUNCS(socketpair)
+ACE_CHECK_LACKS_FUNCS(socketpair strcasecmp)
+
+AC_CHECK_FUNC([strdup],
+ ,
+ [AC_DEFINE([ACE_HAS_STRDUP_EMULATION])])
+
+ACE_CHECK_LACKS_FUNCS(strrchr)
AC_CHECK_FUNC([strptime],
[
@@ -3944,6 +3741,8 @@ AC_CHECK_FUNC([strptime],
AC_DEFINE([ACE_LACKS_NATIVE_STRPTIME])
])
+ACE_CHECK_HAS_FUNCS(memchr)
+
if test "$ac_cv_type_wchar_t" = yes; then
AC_CHECK_FUNC([wcslen],
[AC_DEFINE([ACE_HAS_XPG4_MULTIBYTE_CHAR])],)
@@ -3951,6 +3750,8 @@ fi
ACE_CHECK_LACKS_FUNCS(syscall)
+ACE_CHECK_HAS_FUNCS(ualarm)
+
AC_CHECK_FUNC([alarm],,)
AC_CHECK_FUNC([signal],,)
@@ -3959,6 +3760,8 @@ if test "$ac_cv_func_alarm" != yes &&
AC_DEFINE([ACE_LACKS_UNIX_SIGNALS])
fi
+ACE_CHECK_LACKS_FUNCS(fork)
+
AC_CHECK_FUNC([getrlimit])
AC_CHECK_FUNC([setrlimit])
if test "$ac_cv_func_getrlimit" != yes ||
@@ -3966,7 +3769,102 @@ if test "$ac_cv_func_getrlimit" != yes ||
AC_DEFINE([ACE_LACKS_RLIMIT])
fi
-ACE_CHECK_LACKS_FUNCS(readlink rename recvmsg sendmsg)
+AC_CHECK_FUNC([sysinfo],
+ [
+ if test "$ac_cv_header_sys_systeminfo_h" = yes; then
+ AC_DEFINE([ACE_HAS_SYSINFO])
+ fi
+ ],)
+
+ACE_CHECK_HAS_FUNCS(strerror)
+
+ACE_CHECK_LACKS_FUNCS(lstat readlink rename recvmsg sendmsg)
+
+ACE_CHECK_HAS_FUNCS(getrusage)
+
+ACE_CHECK_LACKS_FUNCS([getpgid])
+if test "$ac_cv_func_getpgid" = yes; then
+ dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
+ dnl needed to make the getpgid() prototype visible.
+ ACE_CACHE_CHECK([for getpgid prototype],
+ [ace_cv_lib_has_getpgid_prototype],
+ [
+ ace_save_CPPFLAGS="$CPPFLAGS"
+ ace_no_xopen="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
+ CPPFLAGS="$CPPFLAGS $ace_no_xopen"
+ AC_EGREP_HEADER([[^_]+getpgid], [unistd.h],
+ [
+ ace_cv_lib_has_getpgid_prototype=yes
+ ],
+ [
+ ace_cv_lib_has_getpgid_prototype=no
+ ])
+ dnl Reset the compiler flags
+ CPPFLAGS="$ace_save_CPPFLAGS"
+ ],, [AC_DEFINE([ACE_LACKS_GETPGID_PROTOTYPE])])
+ AH_TEMPLATE([ACE_LACKS_GETPGID_PROTOTYPE],
+ [Define to 1 if platform lacks getpgid() declaration in <unistd.h>.])
+fi
+
+ACE_CHECK_LACKS_FUNCS(getppid)
+
+ACE_CHECK_LACKS_FUNCS([setregid])
+if test "$ac_cv_func_setregid" = yes; then
+ dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
+ dnl needed to make the setregid() prototype visible.
+ ACE_CACHE_CHECK([for setregid prototype],
+ [ace_cv_lib_has_setregid_prototype],
+ [
+ ace_save_CPPFLAGS="$CPPFLAGS"
+ ace_no_xopen="-U_BSD_SOURCE -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
+ CPPFLAGS="$CPPFLAGS $ace_no_xopen"
+ AC_EGREP_HEADER([[^_]+setregid], [unistd.h],
+ [
+ ace_cv_lib_has_setregid_prototype=yes
+ ],
+ [
+ ace_cv_lib_has_setregid_prototype=no
+ ])
+ dnl Reset the compiler flags
+ CPPFLAGS="$ace_save_CPPFLAGS"
+ ],, [AC_DEFINE([ACE_LACKS_SETREGID_PROTOTYPE])])
+ AH_TEMPLATE([ACE_LACKS_SETREGID_PROTOTYPE],
+ [Define to 1 if platform lacks setregid() declaration in <unistd.h>.])
+fi
+
+ACE_CHECK_LACKS_FUNCS([setreuid])
+if test "$ac_cv_func_setreuid" = yes; then
+ dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
+ dnl needed to make the setreuid() prototype visible.
+ ACE_CACHE_CHECK([for setreuid prototype],
+ [ace_cv_lib_has_setreuid_prototype],
+ [
+ ace_save_CPPFLAGS="$CPPFLAGS"
+ ace_no_xopen="-U_BSD_SOURCE -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
+ CPPFLAGS="$CPPFLAGS $ace_no_xopen"
+ AC_EGREP_HEADER([[^_]+setreuid], [unistd.h],
+ [
+ ace_cv_lib_has_setreuid_prototype=yes
+ ],
+ [
+ ace_cv_lib_has_setreuid_prototype=no
+ ])
+ dnl Reset the compiler flags
+ CPPFLAGS="$ace_save_CPPFLAGS"
+ ],, [AC_DEFINE([ACE_LACKS_SETREUID_PROTOTYPE])])
+ AH_TEMPLATE([ACE_LACKS_SETREUID_PROTOTYPE],
+ [Define to 1 if platform lacks setreuid() declaration in <unistd.h>.])
+fi
+
+AC_CHECK_FUNC([getpagesize],
+ [AC_DEFINE([ACE_HAS_GETPAGESIZE])],
+ [AC_DEFINE([ACE_PAGE_SIZE], [4096])])
+
+ACE_CHECK_LACKS_FUNCS(msync mprotect mkfifo)
+
+ACE_CHECK_LACKS_FUNCS(mkstemp mktemp)
+
+ACE_CHECK_LACKS_FUNCS(madvise)
if test "$ac_cv_header_sys_priocntl_h" = yes; then
AC_CHECK_FUNC([priocntl],
@@ -3998,25 +3896,11 @@ fi dnl test "$ac_cv_header_sys_priocntl_h" = yes
dnl FIXME: How do we check for a working sbrk()? Do we need to?
ACE_CHECK_LACKS_FUNCS(sbrk)
-ACE_CHECK_HAS_FUNCS(ualarm)
-if test $ac_cv_func_ualarm = yes; then
- AC_CHECK_DECL([ualarm],
- [],
- [AC_DEFINE([ACE_LACKS_UALARM_PROTOTYPE], 1,
- [Define to 1 if platform lacks the declaration
- of ualarm().])],
- [#include <unistd.h>])
-fi
-
-ACE_CHECK_LACKS_FUNCS(umask)
-
-ACE_CHECK_LACKS_FUNCS(uname)
-
-ACE_CHECK_LACKS_FUNCS(unlink)
-
ACE_CHECK_HAS_FUNCS(vfwprintf vswprintf)
-ACE_CHECK_LACKS_FUNCS(fgetws fputws itow towlower towupper wcscat wcschr wcscmp wcscpy wcscspn wcslen wcsncat wcsncmp wcsncpy wcsnicmp wcspbrk wcsrchr wcsspn wcsstr wcstod wcstok wcstol wcstoul)
+ACE_CHECK_LACKS_FUNCS(fgetws fputws itow towlower towupper wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcsicmp wcslen wcsncat wcsncmp wcsncpy wcsnicmp wcspbrk wcsrchr wcsspn wcsstr wcstod wcstok wcstol wcstoul)
+
+ACE_CHECK_LACKS_FUNCS(umask)
if test "$ac_cv_func_wcstok" = yes; then
dnl The wcstok() function varies with standards. Check which one we have.
@@ -4032,8 +3916,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM(
wchar_t *p = wcstok (str, delim, &ptr);
]])],
[
- AC_DEFINE([ACE_HAS_3_PARAM_WCSTOK], 1,
- [Define to 1 if platform has 3 parameter wcstok()])
+ AC_DEFINE([ACE_HAS_3_PARAM_WCSTOK])
AC_MSG_RESULT([3])
],
[
@@ -4167,15 +4050,8 @@ WE_HAVE_SHARED_POSIX_SEMAPHORES
[
AC_DEFINE([ACE_HAS_POSIX_SEM])
- AC_CHECK_FUNC([sem_open])
- AC_CHECK_FUNC([sem_close])
- AC_CHECK_FUNC([sem_unlink])
- if test "$ac_cv_func_sem_open" = no ||
- test "$ac_cv_func_sem_close" = no ||
- test "$ac_cv_func_sem_unlink" = no; then
-
- AC_DEFINE([ACE_LACKS_NAMED_POSIX_SEM])
- else
+ AC_CHECK_FUNC([sem_open],
+ [
dnl Check if it works! For example, in glibc 2.x sem_open exists
dnl but it appears to be a stub. However, it isn't listed as a
dnl stub in <gnu/stubs.h> so the configure script thinks it is
@@ -4223,7 +4099,10 @@ main ()
ace_cv_sem_open_works=yes
])
],, [AC_DEFINE([ACE_LACKS_NAMED_POSIX_SEM])])
- fi
+ ],
+ [
+ AC_DEFINE([ACE_LACKS_NAMED_POSIX_SEM])
+ ])
],)
fi dnl check for POSIX Semaphore functions
@@ -4430,104 +4309,6 @@ dnl Check for Unix98 pthreads extensions
ACE_CHECK_HAS_FUNCS(pthread_continue pthread_continue_np pthread_resume_np pthread_suspend pthread_suspend_np)
ACE_CHECK_HAS_FUNCS(pthread_getconcurrency pthread_setconcurrency)
- ACE_CHECK_HAS_FUNCS(pthread_attr_setcreatesuspend_np)
-
- ACE_CHECK_HAS_FUNCS(pthread_getaffinity_np pthread_setaffinity_np)
-
-dnl Linux's sched_{set,get}affinity interface has changed three times:
-dnl
-dnl In glibc 2.3.2, it was:
-dnl
-dnl int sched_setaffinity(pid_t __pid,
-dnl unsigned int __len, unsigned long * __mask);
-dnl
-dnl In glibc 2.3.3, it was changed to:
-dnl
-dnl int sched_setaffinity(pid_t __pid, const cpu_set_t* __mask);
-dnl
-dnl And in glibc ?.?.?, it was changed again to:
-dnl
-dnl int sched_setaffinity(pid_t __pid, size_t __cpusetsize,
-dnl const cpu_set_t* __cpuset);
-dnl
-dnl The following feature tests attempt to determine which (if any)
-dnl version is supported by the system. A further complication is
-dnl that the C library may support one version, the kernel may not,
-dnl and vice versa.
-dnl
-dnl As of this writing, ACE's ACE_OS::sched_setaffinity() wrapper
-dnl facade implementation only supports the latter two varients. So
-dnl if the system doesn't define cpu_set_t, we simply avoid checking
-dnl for sched_setaffinity(). No attempt is made to verify C library /
-dnl kernel consistency.
-dnl
-dnl The "right" thing to do is to implement something similar to the
-dnl PLPA (Portable Linux Processor Affinity) Library, converting the
-dnl arguments and invoking the syscall directly (instead of calling
-dnl the C library wrapper).
-dnl
-
-if test "$ac_cv_type_cpu_set_t" = yes; then
-
- ACE_CHECK_HAS_FUNCS(sched_getaffinity)
-if test "$ac_cv_func_sched_getaffinity" = yes; then
-dnl The sched_getaffinity() function varies between linux versions
-dnl Check which one we have.
-AC_MSG_CHECKING([for 2- or 3-param sched_getaffinity])
-AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [[
-#if !defined(ACE_LACKS_SYS_TYPES_H)
-#include <sys/types.h>
-#endif
-#if !defined(ACE_LACKS_SCHED_H)
-#include <sched.h>
-#endif
- ]],
- [[
- pid_t pid;
- cpu_set_t cpuset;
- sched_getaffinity(pid, sizeof(cpuset), &cpuset);
- ]])],
- [
- AC_MSG_RESULT([3])
- ],
- [
- AC_MSG_RESULT([2])
- AC_DEFINE([ACE_HAS_2_PARAM_SCHED_GETAFFINITY], 1,
- [Define to 1 if platform has 2 parameter sched_getaffinity()])
- ])
-fi dnl test "$ac_cv_func_sched_getaffinity" = yes
-
- ACE_CHECK_HAS_FUNCS(sched_setaffinity)
-if test "$ac_cv_func_sched_setaffinity" = yes; then
-dnl The sched_setaffinity() function varies between linux versions
-dnl Check which one we have.
-AC_MSG_CHECKING([for 2- or 3-param sched_setaffinity])
-AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [[
-#if !defined(ACE_LACKS_SYS_TYPES_H)
-#include <sys/types.h>
-#endif
-#if !defined(ACE_LACKS_SCHED_H)
-#include <sched.h>
-#endif
- ]],
- [[
- pid_t pid;
- cpu_set_t cpuset;
- sched_setaffinity(pid, sizeof(cpuset), &cpuset);
- ]])],
- [
- AC_MSG_RESULT([3])
- ],
- [
- AC_MSG_RESULT([2])
- AC_DEFINE([ACE_HAS_2_PARAM_SCHED_SETAFFINITY], 1,
- [Define to 1 if platform has 2 parameter sched_setaffinity()])
- ])
-fi dnl test "$ac_cv_func_sched_setaffinity" = yes
-
-fi dnl test "$ac_cv_type_cpu_set_t" = yes
AC_CHECK_FUNC([pthread_rwlock_init],,)
AC_CHECK_FUNC([pthread_rwlock_destroy],,)
@@ -6004,76 +5785,35 @@ AC_CACHE_CHECK([if msgrcv() takes a void* second argument],
])
]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS
-
-if test "$ac_cv_func_shmat" = yes; then
- dnl TODO: This doesn't work.
- dnl The linux compiler issues a warning regarding the invalid void*
- dnl conversion.
- dnl
- dnl FIXED by adding "-Werror" to compiler flags when using GNU C++
- dnl -Ossama
- ACE_CONVERT_WARNINGS_TO_ERRORS(
- [
- dnl Check if shmat() takes a void* second argument
- AC_CACHE_CHECK([if shmat() takes a void* second argument],
- [ace_cv_lib_posix_shmat_voidp_2],[
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- #ifndef ACE_LACKS_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- # include <sys/ipc.h>
- # include <sys/shm.h>
- ]], [[
- int shmid = 0;
- void* shmaddr = 0;
- int shmflg = 0;
- shmat(shmid, shmaddr, shmflg);
- ]])],[
- ace_cv_lib_posix_shmat_voidp_2=yes
- ],[
- ace_cv_lib_posix_shmat_voidp_2=no
- ])
- ])
- ]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS
- if test "$ace_cv_lib_posix_shmat_voidp_2" = no; then
- AC_DEFINE([ACE_HAS_CHARPTR_SHMAT], 1,
- [Define to 1 if arg 2 of 'shmat' is char *'])
- fi
-fi
-
-if test "$ac_cv_func_shmdt" = yes; then
- dnl TODO: This doesn't work.
- dnl The linux compiler issues a warning regarding the invalid void*
- dnl conversion.
- dnl
- dnl FIXED by adding "-Werror" to compiler flags when using GNU C++
- dnl -Ossama
- ACE_CONVERT_WARNINGS_TO_ERRORS(
- [
- dnl Check if shmdt() takes a void* second argument
- AC_CACHE_CHECK([if shmdt() takes a void* argument],
- [ace_cv_lib_posix_shmdt_voidp],[
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- #ifndef ACE_LACKS_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- # include <sys/ipc.h>
- # include <sys/shm.h>
- ]], [[
- void* shmaddr = 0;
- shmdt(shmaddr);
- ]])],[
- ace_cv_lib_posix_shmdt_voidp=yes
- ],[
- ace_cv_lib_posix_shmdt_voidp=no
- ])
+dnl TODO: This doesn't work.
+dnl The linux compiler issues a warning regarding the invalid void*
+dnl conversion.
+dnl
+dnl FIXED by adding "-Werror" to compiler flags when using GNU C++
+dnl -Ossama
+ACE_CONVERT_WARNINGS_TO_ERRORS(
+[
+dnl Check if shmat() takes a void* second argument
+AC_CACHE_CHECK([if shmat() takes a void* second argument],
+ [ace_cv_lib_posix_shmat_voidp_2],[
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#ifndef ACE_LACKS_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+# include <sys/ipc.h>
+# include <sys/shm.h>
+ ]], [[
+ int shmid = 0;
+ void* shmaddr = 0;
+ int shmflg = 0;
+ shmat(shmid, shmaddr, shmflg);
+ ]])],[
+ ace_cv_lib_posix_shmat_voidp_2=yes
+ ],[
+ ace_cv_lib_posix_shmat_voidp_2=no
])
- ]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS
- if test "$ace_cv_lib_posix_shmdt_voidp" = no; then
- AC_DEFINE([ACE_HAS_CHARPTR_SHMDT], 1,
- [Define to 1 if arg 1 of 'shmdt' is char *'])
- fi
-fi
+ ])
+]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS
dnl TODO: This doesn't work.
dnl The linux compiler issues a warning regarding the invalid void*
@@ -6203,6 +5943,10 @@ if test "$ace_cv_lib_voidptr_gettimeofday" = yes ||
AC_EGREP_CPP([gettimeofday],
[
#include <time.h>
+
+#ifdef ACE_LACKS_SYSTIME_H
+# include <sys/time.h>
+#endif
],
[
dnl We have a gettimeofday prototype
@@ -6241,6 +5985,10 @@ if test "$ac_cv_func_ctime_r" = yes; then
#endif
#include <time.h>
+
+#if defined(ACE_LACKS_SYSTIME_H)
+# include <sys/time.h>
+#endif
]], [[
const time_t *t = 0;
char *buf;
@@ -6421,6 +6169,10 @@ ACE_CACHE_CHECK([for ctime() macro],
[
#include <time.h>
+#if defined(ACE_LACKS_SYSTIME_H)
+# include <sys/time.h>
+#endif
+
#if defined (ctime)
ACE_CTIME_MACRO
#endif
@@ -6446,6 +6198,10 @@ ACE_CACHE_CHECK([for reentrant function macros],
#include <time.h>
+#if defined(ACE_LACKS_SYSTIME_H)
+# include <sys/time.h>
+#endif
+
#if !defined (ACE_LACKS_PWD_H)
# include <pwd.h>
#endif
@@ -7071,8 +6827,7 @@ dnl test "$ac_cv_func_pthread_getspecific" = yes &&
test "$ac_cv_func_pthread_kill" = yes; then
ace_has_pthreads=yes
AC_MSG_RESULT([POSIX Threads Draft 4])
- AC_DEFINE([ACE_HAS_PTHREADS_DRAFT4], 1,
- [Platform supports POSIX Threads .4a Draft 4])
+ AC_DEFINE([ACE_HAS_PTHREADS_DRAFT4])
dnl Check if we have Pthreads Draft 6
elif test "$ac_cv_func_pthread_mutexattr_init" = yes &&
test "$ac_cv_func_pthread_mutexattr_destroy" = yes &&
@@ -7084,8 +6839,7 @@ elif test "$ac_cv_func_pthread_mutexattr_init" = yes &&
test "$ac_cv_func_pthread_setintrtype" = yes; then
ace_has_pthreads=yes
AC_MSG_RESULT([POSIX Threads Draft 6])
- AC_DEFINE([ACE_HAS_PTHREADS_DRAFT6], 1,
- [Platform supports POSIX Threads .4a Draft 6])
+ AC_DEFINE([ACE_HAS_PTHREADS_DRAFT6])
dnl Check if we have Pthreads Draft 7
elif test "$ac_cv_func_pthread_mutexattr_init" = yes &&
test "$ac_cv_func_pthread_mutexattr_destroy" = yes &&
@@ -7098,8 +6852,7 @@ elif test "$ac_cv_func_pthread_mutexattr_init" = yes &&
test "$ace_has_sched_yield" != yes; then
ace_has_pthreads=yes
AC_MSG_RESULT([POSIX Threads Draft 7])
- AC_DEFINE([ACE_HAS_PTHREADS_DRAFT7], 1,
- [Platform supports POSIX Threads .1c Draft 7])
+ AC_DEFINE([ACE_HAS_PTHREADS_DRAFT7])
dnl Check if we have Pthreads Draft Standard
elif test "$ac_cv_func_pthread_mutexattr_init" = yes &&
test "$ac_cv_func_pthread_mutexattr_destroy" = yes &&
@@ -7112,8 +6865,7 @@ elif test "$ac_cv_func_pthread_mutexattr_init" = yes &&
test "$ace_has_sched_yield" = yes; then
ace_has_pthreads=yes
AC_MSG_RESULT([POSIX Threads Draft Standard])
- AC_DEFINE([ACE_HAS_PTHREADS_STD], 1,
- [Platform supports POSIX.1c-1995 threads])
+ AC_DEFINE([ACE_HAS_PTHREADS_STD])
else
ace_has_pthreads=no
AC_MSG_RESULT([none])
@@ -7860,6 +7612,98 @@ AC_CONFIG_FILES([
apps/soreduce/Makefile
bin/Makefile
bin/PerlACE/Makefile
+ examples/Makefile
+ examples/APG/Makefile
+ examples/APG/Active_Objects/Makefile
+ examples/APG/Config/Makefile
+ examples/APG/Containers/Makefile
+ examples/APG/Logging/Makefile
+ examples/APG/Misc_IPC/Makefile
+ examples/APG/Naming/Makefile
+ examples/APG/Proactor/Makefile
+ examples/APG/Processes/Makefile
+ examples/APG/Reactor/Makefile
+ examples/APG/Shared_Memory/Makefile
+ examples/APG/Signals/Makefile
+ examples/APG/Sockets/Makefile
+ examples/APG/Streams/Makefile
+ examples/APG/Svc_Config/Makefile
+ examples/APG/ThreadManagement/Makefile
+ examples/APG/ThreadPools/Makefile
+ examples/APG/ThreadSafety/Makefile
+ examples/APG/Threads/Makefile
+ examples/APG/Timers/Makefile
+ examples/ASX/Makefile
+ examples/ASX/CCM_App/Makefile
+ examples/ASX/Message_Queue/Makefile
+ examples/Bounded_Packet_Relay/Makefile
+ examples/C++NPv1/Makefile
+ examples/C++NPv2/Makefile
+ examples/Connection/Makefile
+ examples/Connection/blocking/Makefile
+ examples/Connection/misc/Makefile
+ examples/Connection/non_blocking/Makefile
+ examples/DLL/Makefile
+ examples/Export/Makefile
+ examples/IOStream/Makefile
+ examples/IOStream/client/Makefile
+ examples/IOStream/server/Makefile
+ examples/IPC_SAP/Makefile
+ examples/IPC_SAP/ATM_SAP/Makefile
+ examples/IPC_SAP/DEV_SAP/Makefile
+ examples/IPC_SAP/DEV_SAP/reader/Makefile
+ examples/IPC_SAP/DEV_SAP/writer/Makefile
+ examples/IPC_SAP/FIFO_SAP/Makefile
+ examples/IPC_SAP/FILE_SAP/Makefile
+ examples/IPC_SAP/SOCK_SAP/Makefile
+ examples/IPC_SAP/SPIPE_SAP/Makefile
+ examples/IPC_SAP/SSL_SAP/Makefile
+ examples/IPC_SAP/TLI_SAP/Makefile
+ examples/IPC_SAP/UPIPE_SAP/Makefile
+ examples/Log_Msg/Makefile
+ examples/Logger/Makefile
+ examples/Logger/Acceptor-server/Makefile
+ examples/Logger/client/Makefile
+ examples/Logger/simple-server/Makefile
+ examples/Mem_Map/Makefile
+ examples/Mem_Map/IO-tests/Makefile
+ examples/Mem_Map/file-reverse/Makefile
+ examples/Misc/Makefile
+ examples/NT_Service/Makefile
+ examples/Naming/Makefile
+ examples/OS/Makefile
+ examples/OS/Process/Makefile
+ examples/QOS/Makefile
+ examples/QOS/Change_Receiver_FlowSpec/Makefile
+ examples/QOS/Change_Sender_TSpec/Makefile
+ examples/QOS/Diffserv/Makefile
+ examples/QOS/Simple/Makefile
+ examples/Reactor/Makefile
+ examples/Reactor/Dgram/Makefile
+ examples/Reactor/FIFO/Makefile
+ examples/Reactor/Misc/Makefile
+ examples/Reactor/Multicast/Makefile
+ examples/Reactor/Ntalker/Makefile
+ examples/Reactor/Proactor/Makefile
+ examples/Reactor/WFMO_Reactor/Makefile
+ examples/Registry/Makefile
+ examples/Service_Configurator/Makefile
+ examples/Service_Configurator/IPC-tests/Makefile
+ examples/Service_Configurator/IPC-tests/client/Makefile
+ examples/Service_Configurator/IPC-tests/server/Makefile
+ examples/Service_Configurator/Misc/Makefile
+ examples/Shared_Malloc/Makefile
+ examples/Shared_Memory/Makefile
+ examples/Smart_Pointers/Makefile
+ examples/Synch/Makefile
+ examples/System_V_IPC/Makefile
+ examples/System_V_IPC/SV_Message_Queues/Makefile
+ examples/System_V_IPC/SV_Semaphores/Makefile
+ examples/TMCast/Makefile
+ examples/TMCast/Member/Makefile
+ examples/Threads/Makefile
+ examples/Timer_Queue/Makefile
+ examples/Web_Crawler/Makefile
netsvcs/Makefile
netsvcs/lib/Makefile
netsvcs/clients/Makefile
@@ -7868,6 +7712,18 @@ AC_CONFIG_FILES([
netsvcs/clients/Naming/Client/Makefile
netsvcs/clients/Naming/Dump_Restore/Makefile
netsvcs/servers/Makefile
+ performance-tests/Makefile
+ performance-tests/Misc/Makefile
+ performance-tests/SCTP/Makefile
+ performance-tests/Server_Concurrency/Makefile
+ performance-tests/Server_Concurrency/Leader_Follower/Makefile
+ performance-tests/Server_Concurrency/Queue_Based_Workers/Makefile
+ performance-tests/Synch-Benchmarks/Makefile
+ performance-tests/Synch-Benchmarks/Synch_Lib/Makefile
+ performance-tests/Synch-Benchmarks/Base_Test/Makefile
+ performance-tests/Synch-Benchmarks/Perf_Test/Makefile
+ performance-tests/TCP/Makefile
+ performance-tests/UDP/Makefile
protocols/Makefile
protocols/ace/Makefile
protocols/ace/HTBP/Makefile
@@ -7876,134 +7732,18 @@ AC_CONFIG_FILES([
protocols/examples/Makefile
protocols/examples/RMCast/Makefile
protocols/examples/RMCast/Send_Msg/Makefile
+ tests/Makefile
+ tests/HTBP/Makefile
+ tests/HTBP/Reactor_Tests/Makefile
+ tests/HTBP/Send_Large_Msg/Makefile
+ tests/HTBP/Send_Recv_Tests/Makefile
+ tests/HTBP/ping/Makefile
+ tests/SSL/Makefile
websvcs/Makefile
websvcs/lib/Makefile
websvcs/tests/Makefile
])
-dnl Configure examples if configured...
-if test $ace_build_examples = yes; then
- AC_CONFIG_FILES([
- examples/Makefile
- examples/APG/Makefile
- examples/APG/Active_Objects/Makefile
- examples/APG/Config/Makefile
- examples/APG/Containers/Makefile
- examples/APG/Logging/Makefile
- examples/APG/Misc_IPC/Makefile
- examples/APG/Naming/Makefile
- examples/APG/Proactor/Makefile
- examples/APG/Processes/Makefile
- examples/APG/Reactor/Makefile
- examples/APG/Shared_Memory/Makefile
- examples/APG/Signals/Makefile
- examples/APG/Sockets/Makefile
- examples/APG/Streams/Makefile
- examples/APG/Svc_Config/Makefile
- examples/APG/ThreadManagement/Makefile
- examples/APG/ThreadPools/Makefile
- examples/APG/ThreadSafety/Makefile
- examples/APG/Threads/Makefile
- examples/APG/Timers/Makefile
- examples/ASX/Makefile
- examples/ASX/CCM_App/Makefile
- examples/ASX/Message_Queue/Makefile
- examples/Bounded_Packet_Relay/Makefile
- examples/C++NPv1/Makefile
- examples/C++NPv2/Makefile
- examples/Connection/Makefile
- examples/Connection/blocking/Makefile
- examples/Connection/misc/Makefile
- examples/Connection/non_blocking/Makefile
- examples/DLL/Makefile
- examples/Export/Makefile
- examples/IOStream/Makefile
- examples/IOStream/client/Makefile
- examples/IOStream/server/Makefile
- examples/IPC_SAP/Makefile
- examples/IPC_SAP/ATM_SAP/Makefile
- examples/IPC_SAP/DEV_SAP/Makefile
- examples/IPC_SAP/DEV_SAP/reader/Makefile
- examples/IPC_SAP/DEV_SAP/writer/Makefile
- examples/IPC_SAP/FIFO_SAP/Makefile
- examples/IPC_SAP/FILE_SAP/Makefile
- examples/IPC_SAP/SOCK_SAP/Makefile
- examples/IPC_SAP/SPIPE_SAP/Makefile
- examples/IPC_SAP/SSL_SAP/Makefile
- examples/IPC_SAP/TLI_SAP/Makefile
- examples/IPC_SAP/UPIPE_SAP/Makefile
- examples/Log_Msg/Makefile
- examples/Logger/Makefile
- examples/Logger/Acceptor-server/Makefile
- examples/Logger/client/Makefile
- examples/Logger/simple-server/Makefile
- examples/Mem_Map/Makefile
- examples/Mem_Map/IO-tests/Makefile
- examples/Mem_Map/file-reverse/Makefile
- examples/Misc/Makefile
- examples/NT_Service/Makefile
- examples/Naming/Makefile
- examples/OS/Makefile
- examples/OS/Process/Makefile
- examples/QOS/Makefile
- examples/QOS/Change_Receiver_FlowSpec/Makefile
- examples/QOS/Change_Sender_TSpec/Makefile
- examples/QOS/Diffserv/Makefile
- examples/QOS/Simple/Makefile
- examples/Reactor/Makefile
- examples/Reactor/Dgram/Makefile
- examples/Reactor/FIFO/Makefile
- examples/Reactor/Misc/Makefile
- examples/Reactor/Multicast/Makefile
- examples/Reactor/Ntalker/Makefile
- examples/Reactor/Proactor/Makefile
- examples/Reactor/WFMO_Reactor/Makefile
- examples/Registry/Makefile
- examples/Service_Configurator/Makefile
- examples/Service_Configurator/IPC-tests/Makefile
- examples/Service_Configurator/IPC-tests/client/Makefile
- examples/Service_Configurator/IPC-tests/server/Makefile
- examples/Service_Configurator/Misc/Makefile
- examples/Shared_Malloc/Makefile
- examples/Shared_Memory/Makefile
- examples/Smart_Pointers/Makefile
- examples/Synch/Makefile
- examples/System_V_IPC/Makefile
- examples/System_V_IPC/SV_Message_Queues/Makefile
- examples/System_V_IPC/SV_Semaphores/Makefile
- examples/TMCast/Makefile
- examples/TMCast/Member/Makefile
- examples/Threads/Makefile
- examples/Timer_Queue/Makefile
- examples/Web_Crawler/Makefile
- ])
-fi
-
-dnl Configure examples if configured...
-if test $ace_build_tests = yes; then
- AC_CONFIG_FILES([
- performance-tests/Makefile
- performance-tests/Misc/Makefile
- performance-tests/SCTP/Makefile
- performance-tests/Server_Concurrency/Makefile
- performance-tests/Server_Concurrency/Leader_Follower/Makefile
- performance-tests/Server_Concurrency/Queue_Based_Workers/Makefile
- performance-tests/Synch-Benchmarks/Makefile
- performance-tests/Synch-Benchmarks/Synch_Lib/Makefile
- performance-tests/Synch-Benchmarks/Base_Test/Makefile
- performance-tests/Synch-Benchmarks/Perf_Test/Makefile
- performance-tests/TCP/Makefile
- performance-tests/UDP/Makefile
- tests/Makefile
- tests/HTBP/Makefile
- tests/HTBP/Reactor_Tests/Makefile
- tests/HTBP/Send_Large_Msg/Makefile
- tests/HTBP/Send_Recv_Tests/Makefile
- tests/HTBP/ping/Makefile
- tests/SSL/Makefile
- ])
-fi
-
dnl Configure subdirectories if they are present.
if test -d $srcdir/ACEXML; then
AC_CONFIG_FILES([
diff --git a/contrib/utility/Example/CommandLine/Foo/foo.cpp b/contrib/utility/Example/CommandLine/Foo/foo.cpp
index a389f8d822a..9c6c36daea5 100644
--- a/contrib/utility/Example/CommandLine/Foo/foo.cpp
+++ b/contrib/utility/Example/CommandLine/Foo/foo.cpp
@@ -48,7 +48,7 @@ int
help (int argc, char* argv[]);
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
// Step 1: determine command
diff --git a/docs/ACE-bug-process.html b/docs/ACE-bug-process.html
index ec3699165ec..7cec4bfa66c 100644
--- a/docs/ACE-bug-process.html
+++ b/docs/ACE-bug-process.html
@@ -1,50 +1,44 @@
<!-- $Id$ -->
<HTML>
- <TITLE>ACE, TAO, and CIAO Bug Fixing Policies</TITLE>
+ <TITLE>ACE+TAO Bug Fixing Policies</TITLE>
<BODY text = "#000000" link="#000fff" vlink="#ff0f0f" bgcolor="#ffffff">
<HR>
-<H3>ACE, TAO, and CIAO Bug Fixing Policies</H3>
+<H3>ACE+TAO Bug Fixing Policies</H3>
-As <A HREF="http://www.dre.vanderbilt.edu/ACE/">ACE</A>, <A
-HREF="http://www.dre.vanderbilt.edu/TAO/">TAO</A>, and <A
-HREF="http://www.dre.vanderbilt.edu/CIAO/">CIAO</A> have grown in
-popularity the volume of mail on the <A
-HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">mailing
-lists</A> and USENET newsgroup <A
+As <A HREF="http://www.dre.vanderbilt.edu/ACE">ACE</A>,and <A
+HREF="http://www.dre.vanderbilt.edu/TAO">TAO</A> have grown in
+popularity the volume of mail on the
+<A HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">ACE+TAO users
+mailing list</A> and USENET newsgroup <A
HREF="news:comp.soft-sys.ace">comp.soft-sys.ace</A> has grown
considerably. While this increase is healthy, and a natural
-consequence of the larger number of ACE, TAO, and CIAO users, it is
-straining the resources of the researchers in the <A
-HREF="http://www.cs.wustl.edu/~schmidt/ACE-members-i.html">DOC
+consequence of the larger number of ACE and TAO users, it is straining
+the resources of the DOC <A
+HREF="http://www.cs.wustl.edu/~schmidt/ACE-members.html">research
group</A> at <A
HREF="http://www.cs.wustl.edu/~schmidt/doc-center.html">Washington
University</A>, <A HREF="http://zen.uci.edu">UC Irvine</A> and <A
-HREF="http://www.dre.vanderbilt.edu">ISIS</A> to respond to all the
-traffic immediately. Prompt bug fixes from the DOC group also
-discourage the creation of a larger community of <A
-HREF="http://www.cs.wustl.edu/~schmidt/ACE-members.html">users</A> and
-<A
-HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.htlm">commercial
-support companies</A> who have deep knowledge of how ACE, TAO, and
-CIAO work and can help provide bug fixes and new features. <P>
-
-To ensure the continued growth and maturation of ACE, TAO, and CIAO,
-and to allow the user and vendor communities to evolve, please make it
-a point to abide by the following policies:
+HREF="http://www.dre.vanderbilt.edu"> ISIS</A> to
+respond to all the traffic immediately. Moreover, our prompt bug
+fixes may actually be discouraging the creation of a larger community
+of users who have deep knowledge of how ACE and TAO work and can help
+provide bug fixes and new features. <P>
+
+For us to continue supporting ACE and TAO effectively and to allow the
+ACE and TAO user community to evolve, please make it a point to abide
+by the following policies:
<UL>
-<LI> All bug reports to the <A
+<LI> All bug reports to the ACE+TAO <A
HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">mailing
lists</A> should be submitted using the appropriate bug report form in
<A HREF="../PROBLEM-REPORT-FORM">$ACE_ROOT/PROBLEM-REPORT-FORM</A>
-(for ACE), <A
+(for ACE) or <A
HREF="../TAO/PROBLEM-REPORT-FORM">$TAO_ROOT/PROBLEM-REPORT-FORM</A>
-(for TAO), <A
-HREF="../TAO/CIAO/PROBLEM-REPORT-FORM">$CIAO_ROOT/PROBLEM-REPORT-FORM</A>
-(for CIAO). Please use these forms since bug reports that are not
+(for TAO). Please use these forms since bug reports that are not
submitted in this form are likely to fall through the cracks. Here is
our policy for addressing these bug reports: <P>
@@ -56,40 +50,43 @@ our work we will respond to it in a very timely manner. Please
contact <A HREF="mailto:schmidt@cs.wustl.edu">me</A> if you'd like to
become a sponsor. <P>
-<LI> If it's a bug report along with a fix we will try to apply this
-in a timely manner. In general, people who submit good bug reports
-with fixes tend to get much better help from the core DOC group team,
-irrespective of whether they are sponsors or not since they are
-helping our overall effort move ahead. <P>
+<LI> If it's a bug report along with a fix we will also apply this
+in a timely manner. In general, people who submit good bug
+ reports with fixes tend to get much better help from the core DOC
+ group team, irrespective of whether they are sponsors or not since
+ they are helping our overall effort move ahead. <P>
-<LI> If it's a bug report that prevents ACE, TAO, or CIAO from working
-on a major platform used by ourselves or our sponsors we'll try to fix
-it as time permits. <P>
+<LI> If it's a bug report that will prevent ACE or TAO from working on
+a major platform used by our sponsors we'll try to fix it as time
+permits. <P>
</OL>
<LI> You should also consider entering your bug report into our <A
-HREF="http://deuce.doc.wustl.edu/bugzilla/index.cgi">bug tracking
-database</A> so that it's archived for future processing. As usual,
-we try to address these bugs as time permits, but may not get to them
-for a while unless it affects our work or the work of our
-sponsors. <P>
+HREF="http://deuce.doc.wustl.edu/bugzilla/index.cgi">bug tracking database</A>
+so that it's archived for future processing. We try to address these
+bugs as time permits, but may not get to them for a while unless it
+affects our work or the work of our sponsors. If you'd like an
+immediate response, please contact <A
+HREF="mailto:schmidt@cs.wustl.edu">me</A> about becoming a sponsor or
+contact one of the companies that provides <A
+HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.html">
+commercial support</A> for ACE+TAO. <P>
We encourage bug reports for those without support to be posted
initially to the <A
HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">ACE users</A>
-(<A HREF="mailto:ace-users@cs.wustl.edu">ace-users@cs.wustl.edu</A>),
-<A HREF="http://www.cs.wustl.edu/~schmidt/TAO-mail.html">TAO users</A>
-(<A HREF="mailto:tao-users@cs.wustl.edu">tao-users@cs.wustl.edu</A>),
-and <A HREF="http://www.cs.wustl.edu/~schmidt/CIAO-mail.html">CIAO
+(<A HREF="mailto:ace-users@cs.wustl.edu">ace-users@cs.wustl.edu</A>)
+or <A HREF="http://www.cs.wustl.edu/~schmidt/TAO-mail.html">TAO
users</A> (<A
-HREF="mailto:ciao-users@cs.wustl.edu">ciao-users@cs.wustl.edu</A>)
-mailing lists, where the open-source user community may already have
-developed, or have an interest in developing, a solution. <P>
+HREF="mailto:tao-users@cs.wustl.edu">tao-users@cs.wustl.edu</A>)
+mailing lists, where the ACE+TAO user community may already have
+developed, or have an interest in developing, a solution. While the
+core ACE+TAO development team participates in this mailing list, we
+can not guarantee responses to all postings. <P>
-<LI> While the core DOC group development team participates in this
-mailing list, we cannot response to all postings. Therefore, if you
-post something and don't get a reply, please do the following:<P>
+<LI> If you post something and don't get a reply, please do
+ the following:<P>
<UL>
<LI>
@@ -98,73 +95,41 @@ post something and don't get a reply, please do the following:<P>
HREF="http://groups.google.com/groups?q=comp.soft-sys.ace&ie=UTF-8&oe=UTF-8&hl=en">comp.soft-sys.ace</A> newsgroup to see if your posting is visible. <P>
<LI> If it's not visible, please make sure you're
- <A HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">subscribed
-to the mailing
+ <A HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">subscribed to the mailing
list(s)</A> you sent the report to since we have a "members only" posting
requirement to minimize spam. <P>
<LI> If it is visible and you haven't received a reply this probably means
that either no one knows the answer or no one has time to answer it.
As always, if you need more predictable help please contact one of
- <A
-HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.html">commercial
-support</a> companies for ACE+TAO.<P>
+ <A HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.html">commercial support</a> companies for ACE+TAO.<P>
</UL>
<LI> If you find a problem with a version of TAO that was released by
<A HREF="http://www.theaceorb.com/">OCI</A> then please report it
to <A
- HREF="mailto:taosupport@ociweb.com">taosupport@ociweb.com</A>
- since their version of TAO is different from the DOC group's
+ HREF="mailto:taosupport@ociweb.com">taosupport@ociweb.com</A> since
+ their version of TAO is somewhat different from the DOC group's
version of TAO and thus they provide their own support. <P>
-<LI> If it's a general question about how to use ACE, TAO, or CIAO
-feature we'll try to respond as time permits, though we will also rely
-on the experience of the open-source user community to field these
-types of questions, as well. You should first check out the <A
-HREf="http://www.theaceorb.com/faq/">online FAQ</A> to see if your
-question has already been answered. If you require consulting support
-for ACE, TAO, or CIAO, please contact one of the companies that
-provides <A
-HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.html">commercial
-support</A>.<P>
+<LI> If it's a general question about how to use ACE or TAO feature
+we'll try to respond as time permits, though we will also rely on the
+experience of the ACE and TAO user community to field these types of
+questions, as well. If you have a question about TAO, you should
+first check out the TAO <A HREf="http://www.theaceorb.com/faq/">online
+FAQ</A> to see if your question has already been answered. If you
+require consulting support for ACE and/or TAO, please contact one of
+the companies that provides <A
+HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.html">commercial support</A> for ACE+TAO.<P>
</UL>
-Naturally, we encourage other ACE, TAO, and CIAO users to continue to
-help provide fixes and advice in response to postings on the mailing
-lists and newsgroup. If you have a patch that fixes a problem you've
-found with our software here's the process for submitting it:
-
-<OL>
-<LI> Use the latest contents of our CVS repository, i.e., what's available from <P>
-
- <A HREF="http://cvs.doc.wustl.edu/">http://cvs.doc.wustl.edu/</A> <P>
-
-<LI> Create a ``unified diff'' and put this into Bugzilla at <P>
-
- <A HREF="http://deuce.doc.wustl.edu/bugzilla/index.cgi">http://deuce.doc.wustl.edu/bugzilla/index.cgi</A> <P>
-
- and send an email to the appropriate <A
-HREF="http://www.cs.wustl.edu/~schmidt/ACE-mail.html">mailing
-list(s)</A> and/or <A HREF="news:comp.soft-sys.ace">newsgroup</A>
-newsgroup summarizing what the problem was and you've done to fix the
-problem, i.e., use the <A HREF="../ChangeLog"</A>ChangeLog</A>
-format. <P>
-
-<LI> Ideally, you could also create (or augment) a test program that
- validates your patch and integrate it into the <A
-HREF="../tests">ACE_ROOT/tests</A> directory. <P> </OL>
-
-Please be sensitive to the fact that the core <A
-HREF="http://www.dre.vanderbilt.edu/">DOC group</A> team is
-<EM>very</EM> busy, so we often don't have time to address problems
-reported by non-sponsors. If you'd like an immediate response, please
-contact <A HREF="mailto:schmidt@cs.wustl.edu">me</A> about becoming a
-sponsor or contact one of the companies that provides <A
-HREF="http://www.cs.wustl.edu/~schmidt/commercial-support.html">
-commercial support</A> for ACE, TAO, and CIAO. <P>
+Naturally, we encourage other ACE+TAO users to continue to help
+provide fixes and advice in response to postings on the ACE and TAO
+mailing list. But please be sensitive to the fact that the core team
+is <EM>very</EM> busy so we simply don't have time to address problems
+reported by non-sponsors. <P>
<HR><P>
Back to the <A
diff --git a/docs/ACE-guidelines.html b/docs/ACE-guidelines.html
index 4dcb5145dc9..ec975667c53 100644
--- a/docs/ACE-guidelines.html
+++ b/docs/ACE-guidelines.html
@@ -3,7 +3,7 @@
<html>
<head>
<title>ACE Software Development Guidelines</title>
- <link rev=made href="mailto:ace-users@cs.wustl.edu">
+ <link rev=made href="mailto:levine@cs.wustl.edu">
</head>
<body text = "#000000"
@@ -35,12 +35,7 @@ bgcolor="#ffffff">
<li>Do not end text lines with spaces. Emacs users can add this to
their <strong>.emacs</strong>:
- <pre>(setq-default nuke-trailing-whitespace-p t)</pre>
-
- <strong>Note for Microsoft Visual Studio .NET Users:</strong>
- <p>There is a macro project <code>(ace_guidelines.vsmacros)</code>
- located in <code>$ACE_ROOT/docs</code> that replaces tabs with spaces
- and removes trailing spaces each time you save a file.</p>
+ <pre>(setq-default nuke-trailing-whitespace-p t)</pre><p>
<li>Try to limit the length of source code lines to less than 80
characters. Users with 14 inch monitors appreciate it when
@@ -178,13 +173,6 @@ bgcolor="#ffffff">
manual</a>.
For an example header file using Doxygen-style comments,
please refer to <a href="../ace/ACE.h">ACE.h</a>.<p>
-
- <LI>All binary options for ACE and TAO should be specified in
- terms of the integral values 0 and 1, rather than "true" and
- "false" or "yes" and "no". All TAO options should be
- documented in the <A HREF="../TAO/docs/Options.html">online
- TAO options document</A>. <P>.
-
</ul>
<li><strong>Preprocessor</strong><p>
@@ -248,8 +236,6 @@ not defined. The correct way to write that guard is:
#if defined (__FreeBSD__) && __FreeBSD__ &lt; 3
</pre>
-If using g++, problems like this can be flagged as a warning by using the "<code>-Wundef</code>" command line option.
-
<li>Try to centralize <code>#ifdef</code>s with <code>typedef</code>s
and <code>#define</code>s. For example, use this:
<pre>
@@ -919,133 +905,13 @@ Foo::bar ()
<li><strong>Compilation</strong><p>
<ul>
<li>Whenever you add a new test or example to ACE or TAO, make
- sure that you modify the MPC file in the parent directory.
- This will make sure that your code gets compiled on a
- regular basis.<p>
+ sure that you modify the Makefile or project file in the
+ parent directory. This will make sure that your code gets
+ compiled on a regular basis. In some cases, this also applies
+ to MSVC project files.<p>
</ul><p>
</ul>
-<hr>
-<h3><a href="http://www.cs.wustl.edu/~schmidt/ACE-overview.html">ACE</a>
- Shared Libary Guidelines</h3>
- <ul>
- <li>
- <p>
- Create a separate export macro for each dynamic library. A
- header file containing the export macro and additional
- support macros should be generated by using the <a
- href="../bin/generate_export_file.pl">ACE_wrappers/bin/generate_export_file.pl</a> Perl script.
- </p>
- </li>
- <li>
- <p>
- Make sure that your classes, structures and free functions
- are annotated with this export macro. The only exceptions
- are pure template classes, structures and free functions.
- </p>
- <p>
- Only classes (and structures, free functions, etc) that are
- part of the library public interface must be exported
- (e.g. declared with an export macro). Those that are only
- meant to be used internally need not be exported,
- particularly for g++ <code>&gt;=</code>4.0 since doing so
- defeats some neat optimizations. Here's a common case in
- where an export macro is generally used unnecessarily:
- </p>
- <blockquote>
- <pre>
-class FooExport Foo
-{
-public:
- virtual void kung_fu () = 0;
-};
-
-class FooExport Bar : public Foo
-{
-public:
- virtual void kung_fu () { ... }
-};
-
-class FooExport FooFactory
-{
-public:
- Foo * make_foo ()
- {
- // Assume that this implementation is hidden from
- // the application and is consequently out of line.
- return new Bar();
- }
-};
- </pre>
- </blockquote>
- <p>
- Here the application is only meant to invoke operations
- through a pointer or reference to the abstract base class
- "<code>Foo</code>" created by the "<code>FooFactory</code>",
- not the "<code>Bar</code>" subclass. In this case,
- exporting "<code>Bar</code>" is unnecessary. If your
- concrete class is meant to be used outside of the shared
- library (e.g. as a template parameter, within a
- <code>dynamic_cast&lt;&gt;</code>, etc) you must then export
- it. Otherwise, avoid doing so if you can.
- </p>
- </li>
- <li>
- <p>
- Make sure that you specify that you are creating a dynamic
- library in your <a href="../MPC/README">MPC</a> file by adding
- a <code>sharedname</code> tag.
- </p>
- </li>
- <li>
- <p>
- Make sure that you add the <code>FOO_BUILD_DLL</code>
- preprocessor symbol to the <code>dynamicflags</code> of the
- MPC project that is used to build a library. Note that the
- export files are setup such that when this macro is defined,
- the symbols are exported, otherwise they are imported. The
- default behaviour is to set up for import so that clients of
- your library don't need to worry about arcane build flags
- like <code>FOO_BUILD_DLL</code> in their build setup. This
- ties back to the first item.
- </p>
- </li>
- <li>
- <p>
- When you specify the order of libraries to link to, make
- sure that the dependent libraries come after the libraries
- which depend on them, i.e., your link line should always
- contain <code>-lDependsOnFoo -lFoo</code>. Note that this
- is not a requirement on GNU/Linux but linkers on other
- platforms are not as forgiving.
- </p>
- </li>
- <li>
- <p>
- Use the <code>ACE_SINGLETON_DECLARE</code> macro to declare
- a class as a singleton. Declare exported (i.e. default
- visibility) singleton templates prior to typedefs that
- reference them. This prevents g++ 4.0 from silently making
- their visibility hidden (see <a
- href="http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2260">Bug 2260</a> for details).
- </p>
- </li>
- <li>
- <p>
- Avoid inlining virtual functions in classes that must be
- exported since doing so can cause RTTI related problems
- (e.g. <code>dynamic_cast&lt;&gt; failures</code>) when using
- g++ &gt;= 4.0 due to our use of that compiler's "visibility
- attribute" support that is tied in to the export macros.
- This includes virtual destructors automatically created by
- the compiler when you don't declare one. Make sure you
- define a no-op out-of-line virtual destructor if your base
- class has a virtual destructor since you may otherwise run
- into the mentioned RTTI problems.
- </p>
- </li>
- </ul>
-
<hr>
<h3><a href="http://www.cs.wustl.edu/~schmidt/ACE-overview.html">ACE</a>
@@ -1303,7 +1169,7 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
<hr><p>
<font size=-1>
<!-- hhmts start -->
-Last modified: Wed Nov 23 11:00:44 CST 2005
+Last modified: Tue Sep 20 14:06:27 CDT 2005
<!-- hhmts end -->
</font><p>
diff --git a/docs/ACE-lessons.html b/docs/ACE-lessons.html
index 4448644ae68..b9cca0bd7cf 100644
--- a/docs/ACE-lessons.html
+++ b/docs/ACE-lessons.html
@@ -191,7 +191,7 @@ prerequisites -- </EM></B><P>
labor" who can be replaced easily. I suspect that over time,
companies who respect and reward their high quality software
developers will increasingly outperform those who don't. <P>
-</UL>
+</OL>
<P><HR><P>
<H3>Concluding Remarks</H3>
diff --git a/docs/CE-status.txt b/docs/CE-status.txt
index 3b618df0980..f3f77f1c32c 100644
--- a/docs/CE-status.txt
+++ b/docs/CE-status.txt
@@ -1,12 +1,12 @@
/**
@page wince ACE on Windows CE status
-Last updated Tuesday 15-November-2005 by Steve Huston <shuston@riverace.com>
+Last updated Tuesday 04-March-2003 by Steve Huston <shuston@riverace.com>
@subsection ce_status Status
-As of ACE 5.5, Riverace supports ACE on Windows CE building with Microsoft
-Visual Studio 2005 and targeting the Pocket PC 2003 SDK and Windows Mobile 5.
+As of ACE 5.3, Riverace supports ACE on Windows CE 3 with the
+PocketPC 2002 SDK and on Windows CE 4 with the Standard SDK.
OCI supports TAO 1.3 on at least Windows CE 3 with the PocketPC 2002 SDK.
Contact the individual support provider for complete information regarding
these platforms as well as the supported hardware targets.
@@ -23,16 +23,6 @@ Developers working with sources checked out from CVS must generate the
project and workspace files locally using MPC. The autobuild system's
generate_makefile and generate_workspace commands can be used for this.
-@subsection ce_vc8 Visual Studio 2005 Projects
-
-The ACE release process generates the needed Visual Studio 2005 solution and
-project files with "_WinCE" appended to the name (e.g. ACE_WinCE.vcproj) to
-distinguish them from both Win32-targeted VC8 projects (ACE_vc8.vcproj) and
-Visual Studio 2003 projects (ACE.vcproj). The files are generated with
-the "Pocket PC 2003 SDK (ARMV4)" and "Windows Mobile 5.0 Pocket PC SDK
-(ARMV4I)" platforms defined. To add additional platforms, the files must be
-regenerated using MPC.
-
@subsection ce_wchar Unicode/WChar
ACE on WindowsCE automatically has ACE_HAS_WCHAR and ACE_USES_WCHAR turned
@@ -48,4 +38,4 @@ copy the test files to a PocketPC device, run the test, and copy the log
files back to the build machine for analysis and reporting to the
scoreboard.
-*/
+*/ \ No newline at end of file
diff --git a/docs/Symbol_Versioning.html b/docs/Symbol_Versioning.html
deleted file mode 100644
index 6d4dcdddd51..00000000000
--- a/docs/Symbol_Versioning.html
+++ /dev/null
@@ -1,230 +0,0 @@
-<!-- $Id$ -->
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
- <head>
- <title>Symbol Versioning in ACE</title>
- </head>
-
- <body>
- <h1>Symbol Versioning in ACE</h1>
-
- <p>
- To provide a means for ACE-based application developers to avoid
- symbol conflicts when multiple versions of ACE are linked to an
- application ACE supports <em>versioned namespaces</em>. When
- enabled (disabled by default), ACE's versioned namespace support
- causes all ACE symbols (classes, free functions, etc) to be
- placed within a C++ namespace of the form "<code>namespace
- ACE_5_5_1</code>". For example, the <code>ACE_Reactor</code>
- would end up being placed in the versioned namespace like so:
- </p>
-
- <blockquote>
- <code>
-<pre>
- namespace ACE_5_5_1
- {
- class ACE_Reactor
- {
- ...
- };
- }
- using namespace ACE_5_5_1;
-</pre>
- </code>
- </blockquote>
-
- <p>
- Notice that a <code>using</code> clause exposes the ACE types
- embedded in the versioned namespace back to the global
- namespace. This maximizes source code compatibility. ACE
- itself does this through the use of two macros:
- </p>
- <ul>
- <li>
- <code>ACE_BEGIN_VERSIONED_NAMESPACE_DECL</code><br>
- <ul>
- <li>
- Expands to "<code>namespace ACE_VERSIONED_NAMESPACE NAME
- {</code>", where
- <code>ACE_VERSIONED_NAMESPACE_NAME</code> by defaults to
- namespace name of the form
- <code>ACE_<em>major</em>_<em>minor</em>_<em>beta</em></code>.
- Users may override the default by defining the
- <code>ACE_VERSIONED_NAMESPACE_NAME</code> preprocessor
- symbol in their <code><strong>ace/config.h</strong></code>
- header file.
- </li>
- </ul>
- </li>
- <li>
- <code>ACE_END_VERSIONED_NAMESPACE_DECL</code>
- <ul>
- <li>
- Expands to "<code>} using namespace
- ACE_VERSIONED_NAMESPACE_NAME;</code>", where
- <code>ACE_VERSIONED_NAMESPACE_NAME</code> is described
- above.
- </li>
- </ul>
- </li>
- </ul>
- <h2>Things ACE-based Application Developers Should Know</h2>
- <p>
- Every effort has been made to make the versioned namespace
- support in ACE as transparent as possible, including transparent
- versioned symbol support in the ACE_Service_Configurator when
- the ACE_Service_Configurator macros, such as <em>e.g.</em>,
- <code>ACE_FACTORY_DECLARE</code>, are used appropriately. No
- changes to service configurator directives are necessary. For
- example, the <code>ACE_Service_Configurator</code> will
- transparently mangle the factory function name in a service
- configurator directive on-the-fly, meaning it will only load a
- "versioned" factory function name. This allows multiple service
- object factory functions, for example, to coexist in the same
- process space.
- </p>
- <p>
- There is, however, at least one caveat with respect to source
- code compatibility: any forward declarations of ACE symbols must
- also be placed within the versioned namespace. For example, if
- you have a forward declaration for <code>ACE_Reactor</code> in
- your application code, you will need to place it within the
- configured ACE versioned namespace as follows:
- </p>
- <blockquote>
- <code>
-<pre>
- ACE_BEGIN_VERSIONED_NAMESPACE_DECL
- class ACE_Reactor;
- ACE_END_VERSIONED_NAMESPACE_DECL
-</pre>
- </code>
- </blockquote>
- <p>
- This must only be done once, as these macros hide the versioned
- namespace name details from the application. Alternatively, you
- could place the forward declaration in a namespace that is an
- alias of the ACE versioned namespace, <em>e.g.</em>:
- </p>
- <blockquote>
- <code>
-<pre>
- namespace Foo = ACE_VERSIONED_NAMESPACE_NAME;</code>
- namespace Foo {
- class ACE_Reactor;
- }
- using namespace Foo;
-</pre>
- </code>
- </blockquote>
- <p>
- Versioned namespace support in ACE may be enabled by adding
- <code>versioned_namespace=1</code> to your MPC
- <code><strong>default.features</strong></code> file.
- </p>
-
- <h2>Things ACE Developers Should Know</h2>
- <p>
- ACE developers should place all ACE symbols that are potentially
- exposed to the user, including forward declarations in a
- versioned namespace using the
- <code>ACE_BEGIN_VERSIONED_NAMESSPACE_DECL</code> and
- <code>ACE_END_VERSIONED_NAMESPACE_DECL</code> macros. Free
- functions that are declared to have a C calling convention
- (<em>i.e.</em>, <code>extern "C"</code>) should have their names
- mangled using the <code>ACE_PREPROC_CONCATENATE</code>
- preprocessor. For example:
- </p>
- <blockquote>
- <code>
-<pre>
- void ACE_func (void) { ... }
- ...
- ACE_func(); // Call ACE_func()
-</pre>
- </code>
- </blockquote>
- <p>
- becomes:
- </p>
- <blockquote>
- <code>
-<pre>
- #if (defined (ACE_HAS_VERSIONED_NAMESPACE) \
- && ACE_HAS_VERSIONED_NAMESPACE == 1) \
- && !(defined (_MSC_VER) && _MSC_VER <= 1200)
- // MSVC++ 6's preprocessor can't handle macro expansions
- // required by the versioned namespace support. *sigh*
-
- # define ACE_FOO_FUNC_NAME ACE_PREPROC_CONCATENATE(ACE_VERSIONED_NAMESPACE_NAME, _ACE_foo_func)
-
- #else
-
- # define ACE_FOO_FUNC_NAME ACE_foo_func
-
- #endif /* ACE_HAS_VERSIONED_NAMESPACE == 1 */
-
- ...
- void ACE_FOO_FUNC_NAME (void) { ... }
-
- ACE_FOO_FUNC_NAME(); // Call mangled ACE_foo_func().
-</pre>
- </code>
- </blockquote>
- <p>
- The <code>ACE_PREPROC_CONCATENATE</code> is used rather than a
- straight <code>##</code> preprocessor concatenation since in the
- latter case preprocessor symbols like
- <code>ACE_VERSIONED_NAMESPACE_NAME</code> will not be expanded
- if they are concatenated. <code>ACE_PREPROCE_CONCATENATE</code>
- forces the preprocessor to expand them during the argument
- prescan by calling a macro that itself calls another that
- performs the actual concatenation.
- </p>
- <h3>General Guidelines</h3>
- <ul>
- <li>
- Versioned namespace macro/support must be added to all new files
- added to ACE.
- </li>
- <li>
- Do not place include directives between
- <code>ACE_BEGIN_VERSIONED_NAMESPACE_DECL</code> and
- <code>ACE_END_VERSIONED_NAMESPACE_DECL</code> macros. Doing
- so will cause nested namespace to be created, which is not
- the desired affect.
- </li>
- <li>Be aware of preprocessor conditional blocks when placing the
- versioned namespace macros. For example, if you open
- versioned namespace within a given preprocessor condition
- block, you'll most likely want to close it in the same
- block.
- </li>
- <li>
- If necessary, reopen and close the versioned namespace
- multiple times in the same file by using the macros multiple
- times to address the concerns described in the above two
- items.
- </li>
- <li>
- The <code>$ACE_ROOT/bin/fuzz.pl</code> script has a sanity
- checking test for versioned namespaces that may be of use when
- debugging nested namespace issues, and for detecting
- <code>BEGIN</code>/<code>END</code> mismatches.
- </li>
- </ul>
- <p>
- Versioned namespace support in ACE may be enabled by adding
- <code>versioned_namespace=1</code> to your MPC
- <code><strong>default.features</strong></code> file.
- </p>
- <hr>
- <address><a href="mailto:ossama@dre.vanderbilt.edu">Ossama Othman</a></address>
-<!-- Created: Fri Mar 17 08:35:50 PST 2006 -->
-<!-- hhmts start -->
-Last modified: Fri Mar 17 20:47:41 PST 2006
-<!-- hhmts end -->
- </body>
-</html>
diff --git a/docs/ace_guidelines.vsmacros b/docs/ace_guidelines.vsmacros
deleted file mode 100644
index 2218c1a14ba..00000000000
--- a/docs/ace_guidelines.vsmacros
+++ /dev/null
Binary files differ
diff --git a/docs/index.html b/docs/index.html
index 18de311d5c7..b80733cb6be 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -20,11 +20,12 @@ ask. <P>
<ul>
<li><a href="http://www.cs.wustl.edu/~schmidt/ACE-overview.html">Overview of ACE</a> -
- a high-level view.
+ The top level view.
<li><A
HREF="http://www.cs.wustl.edu/~schmidt/ACE-documentation.html">ACE online documentation</a>.
<li><A
- HREF="http://www.flyingdonkey.com/ace/">Translations for much of the ACE documentation</a>.
+ HREF="http://www.flyingdonkey.com/ace/">Chinese translation for
+ much ACE documentation</a>.
<LI><A HREF="http://www.cs.wustl.edu/~schmidt/ACE/">Books on ACE</A>.
</ul>
@@ -59,8 +60,8 @@ ask. <P>
<h3>Bug Reports</h3>
<ul>
- <li><a href="ACE-bug-process.html">Bug Fixing Policies</a> - Our policies for
- handling bug reports about ACE, TAO, and CIAO.
+ <li><a href="ACE-bug-process.html">ACE+TAO Bug Fixing Policies</a> - Our policies for
+ handling bug reports.
<li><a href="usage-bugzilla.html">Bug Tracking System</a> - Short description of our
Bugzilla bug tracking system.
</ul>
@@ -72,14 +73,13 @@ ask. <P>
<ul>
<li><a href="ACE-development-process.html">Development and Release Process</a> - The process we use
- to develop and release the ACE, TAO, and CIAO software.
+ to develop and release the ACE library.
<li><a href="CVS.html">Overview of CVS</a> - How to use the source
control system we use for ACE, TAO, CIAO, etc.
- <li><a href="ACE-guidelines.html">Style Guide</a> - How to write
- compliant ACE, TOA, and CIAO code.
+ <li><a href="ACE-guidelines.html">Style Guide</a> - How to write compliant ACE code.
<li><a href="ACE-porting.html">Porting</a> - What to do to port to a new platform.
<li><a href="exceptions.html">Exception Macros</a> - How to use the ACE TRY
- macros properly (note that these macros are now deprecated).
+ macros properly.
</ul>
@@ -91,8 +91,6 @@ ask. <P>
<li><a href="ACE-lessons.html">Lessons</a> - Lessons we have learned while
building ACE.
<li><a href="ACE-SSL.html">ACE+SSL</a> - What is ACE+SSL and how to get it.
- <li><a href="Symbol_Versioning.html">Symbol versioning</a> - How to do symbol versioning
- with ACE+TAO.
<li><a href="CE-status.txt">CE-status.txt</a> - The status of ACE on Windows CE.
<li><a href="../ACEXML/docs/readme.txt">ACEXML</a> - A SAX2-based XML parser ACE uses and provides.
</ul>
diff --git a/etc/Svc_Conf_l.cpp.diff b/etc/Svc_Conf_l.cpp.diff
new file mode 100644
index 00000000000..4b6f1ece873
--- /dev/null
+++ b/etc/Svc_Conf_l.cpp.diff
@@ -0,0 +1,154 @@
+--- Svc_Conf_l.cpp.old Tue Mar 1 10:03:28 2005
++++ Svc_Conf_l.cpp Tue Mar 1 10:18:29 2005
+@@ -625,9 +625,21 @@
+ ACE_YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ result = n; \
+ } \
+- else if ( ((result = fread( buf, 1, max_size, ace_yyin )) == 0) \
++ else \
++ { \
++ errno = 0; \
++ while ( ((result = fread( buf, sizeof (ACE_TCHAR), max_size, ace_yyin )) == 0) \
+ && ferror( ace_yyin ) ) \
+- ACE_YY_FATAL_ERROR( "input in flex scanner failed" );
++ { \
++ if (errno != EINTR) \
++ { \
++ ACE_YY_FATAL_ERROR( "input in flex scanner failed" ); \
++ break; \
++ } \
++ errno = 0; \
++ clearerr(ace_yyin); \
++ } \
++ }
+ #endif
+
+ /* No semi-colon after return; correct usage is to write "ace_yyterminate();" -
+@@ -679,8 +691,12 @@
+ register ACE_TCHAR *ace_yy_cp = 0, *ace_yy_bp = 0;
+ register int ace_yy_act;
+
++ ACE_MT (ACE_GUARD_RETURN (ACE_SYNCH_RECURSIVE_MUTEX,
++ ace_mon,
++ *ACE_Static_Object_Lock::instance (),
++ -1));
+
+-
++ ACE_Svc_Conf_Lexer_Guard ace_lexer_guard (ACE_SVC_CONF_PARAM);
+
+ if ( ace_yy_init )
+ {
+@@ -774,71 +790,71 @@
+ case 2:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_DYNAMIC); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 3:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_STATIC); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 4:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_SUSPEND); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 5:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_RESUME); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 6:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_REMOVE); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 7:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_USTREAM); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 8:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_MODULE_T); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 9:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_SVC_OBJ_T); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 10:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_STREAM_T); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 11:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_ACTIVE); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 12:
+ ACE_YY_RULE_SETUP
+ { return token (ACE_INACTIVE); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 13:
+ ACE_YY_RULE_SETUP
+ { return token (':'); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 14:
+ ACE_YY_RULE_SETUP
+ { return token ('*'); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 15:
+ ACE_YY_RULE_SETUP
+ { return token ('('); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 16:
+ ACE_YY_RULE_SETUP
+ { return token (')'); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 17:
+ ACE_YY_RULE_SETUP
+ { return token ('{'); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 18:
+ ACE_YY_RULE_SETUP
+ { return token ('}'); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 19:
+ ACE_YY_RULE_SETUP
+ {
+@@ -852,21 +868,21 @@
+ ace_yyleng -= 1;
+ ace_yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (ace_yytext + 1, ace_yyleng);
+ return token (ACE_STRING); }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 20:
+ ACE_YY_RULE_SETUP
+ {
+ ace_yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (ace_yytext, ace_yyleng);
+ return token (ACE_IDENT);
+ }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 21:
+ ACE_YY_RULE_SETUP
+ {
+ ace_yylval->ident_ = ACE_SVC_CONF_PARAM->obstack.copy (ace_yytext, ace_yyleng);
+ return token (ACE_PATHNAME);
+ }
+- ACE_YY_BREAK
++ //ACE_YY_BREAK
+ case 22:
+ ACE_YY_RULE_SETUP
+ ; /* EMPTY */
diff --git a/etc/ace.doxygen b/etc/ace.doxygen
index f16d2ce8aab..fd88b2e507a 100644
--- a/etc/ace.doxygen
+++ b/etc/ace.doxygen
@@ -86,7 +86,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -158,7 +158,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -169,4 +168,4 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/ace_man.doxygen b/etc/ace_man.doxygen
index 8841d1aa765..286a1e2d9f1 100644
--- a/etc/ace_man.doxygen
+++ b/etc/ace_man.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -146,7 +146,6 @@ COLLABORATION_GRAPH = NO
INCLUDE_GRAPH = NO
INCLUDED_BY_GRAPH = NO
GRAPHICAL_HIERARCHY = NO
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
diff --git a/etc/ace_qos.doxygen b/etc/ace_qos.doxygen
index 6f3439d18c4..b1e2189c720 100644
--- a/etc/ace_qos.doxygen
+++ b/etc/ace_qos.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -146,7 +146,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -157,5 +156,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/ace_rmcast.doxygen b/etc/ace_rmcast.doxygen
index a0906aaea5b..eb05f0645c1 100644
--- a/etc/ace_rmcast.doxygen
+++ b/etc/ace_rmcast.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -146,7 +146,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -157,5 +156,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/ace_ssl.doxygen b/etc/ace_ssl.doxygen
index 2d0ba3d84e1..1914c8d6883 100644
--- a/etc/ace_ssl.doxygen
+++ b/etc/ace_ssl.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -146,7 +146,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -157,5 +156,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/acexml.doxygen b/etc/acexml.doxygen
index 84e0424d468..4cdfe131ce6 100644
--- a/etc/acexml.doxygen
+++ b/etc/acexml.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -146,7 +146,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -157,5 +156,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/ciao.doxygen b/etc/ciao.doxygen
index c48519e6603..57fc2ca49ff 100644
--- a/etc/ciao.doxygen
+++ b/etc/ciao.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO . ACEXML
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER \
+ TAO_NAMESPACE \
CIAO_NAMESPACE
#---------------------------------------------------------------------------
@@ -165,7 +158,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -176,5 +168,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/ciao_DAnCE.doxygen b/etc/ciao_DAnCE.doxygen
index 6b981867db9..f42796fbf8c 100644
--- a/etc/ciao_DAnCE.doxygen
+++ b/etc/ciao_DAnCE.doxygen
@@ -75,7 +75,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -119,34 +119,27 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO . ACEXML TAO/tao/IORTable
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER \
+ TAO_NAMESPACE \
CIAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
#---------------------------------------------------------------------------
-TAGFILES = html/ace/ACE.tag=../../../ace \
- html/tao/TAO.tag=../.. \
- html/ace/ssl/ACE_SSL.tag=../../../ace/ssl \
- html/tao/portableserver/TAO_PortableServer.tag=../../portableserver \
- html/tao/iortable/TAO_IORTable.tag=../../iortable \
- html/tao/rtcorba/TAO_RTCORBA.tag=../../rtcorba \
- html/tao/security/TAO_Security.tag=../../security \
- html/acexml/ACEXML.tag=../../../acexml \
- html/tao/rtportableserver/TAO_RTPortableServer.tag=../../rtportableserver \
- html/tao/cosnaming/TAO_CosNaming.tag=../../cosnaming \
- html/tao/ifr/TAO_IFR.tag=../../ifr
+TAGFILES = html/ace/ACE.tag=../../../../ace \
+ html/tao/TAO.tag=../../.. \
+ html/ace/ssl/ACE_SSL.tag=../../../../ace/ssl \
+ html/tao/portableserver/TAO_PortableServer.tag=../../../portableserver \
+ html/tao/iortable/TAO_IORTable.tag=../../../iortable \
+ html/tao/rtcorba/TAO_RTCORBA.tag=../../../rtcorba \
+ html/tao/security/TAO_Security.tag=../../../security \
+ html/acexml/ACEXML.tag=../../../../acexml \
+ html/tao/rtportableserver/TAO_RTPortableServer.tag=../../../rtportableserver \
+ html/tao/cosnaming/TAO_CosNaming.tag=../../../cosnaming \
+ html/tao/ifr/TAO_IFR.tag=../../../ifr
GENERATE_TAGFILE = html/tao/ciao/DAnCE.tag
ALLEXTERNALS = NO
PERL_PATH = /usr/bin/perl
@@ -164,7 +157,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -175,4 +167,4 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/ciao_config_handlers.doxygen b/etc/ciao_config_handlers.doxygen
index 89edd752249..f6a690b87b1 100644
--- a/etc/ciao_config_handlers.doxygen
+++ b/etc/ciao_config_handlers.doxygen
@@ -75,7 +75,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -119,17 +119,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO . ACEXML TAO/tao/IORTable TAO/CIAO/tools/Config_Handlers
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER \
+ TAO_NAMESPACE \
CIAO_NAMESPACE
#---------------------------------------------------------------------------
@@ -164,7 +157,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -175,5 +167,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao.doxygen b/etc/tao.doxygen
index 457356e0a71..a1b094b5be6 100644
--- a/etc/tao.doxygen
+++ b/etc/tao.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -123,14 +123,7 @@ EXPAND_AS_DEFINED = ACE_RCSID \
ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -154,7 +147,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -165,5 +157,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_anytypecode.doxygen b/etc/tao_anytypecode.doxygen
index dd0c9a3c974..d91a789b2f5 100644
--- a/etc/tao_anytypecode.doxygen
+++ b/etc/tao_anytypecode.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_av.doxygen b/etc/tao_av.doxygen
index c3bf46b6afe..55bd43a7090 100644
--- a/etc/tao_av.doxygen
+++ b/etc/tao_av.doxygen
@@ -79,7 +79,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -123,17 +123,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -159,7 +151,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -170,5 +161,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_cosevent.doxygen b/etc/tao_cosevent.doxygen
index d8eeeebdac1..b5221c38d5a 100644
--- a/etc/tao_cosevent.doxygen
+++ b/etc/tao_cosevent.doxygen
@@ -79,7 +79,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -123,17 +123,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -160,7 +152,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -171,5 +162,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_cosnaming.doxygen b/etc/tao_cosnaming.doxygen
index 24941b5cec4..e37dc985d3a 100644
--- a/etc/tao_cosnaming.doxygen
+++ b/etc/tao_cosnaming.doxygen
@@ -77,7 +77,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -121,17 +121,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -156,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -167,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_cosnotification.doxygen b/etc/tao_cosnotification.doxygen
index 3bb1ad7c09d..825abb9e60c 100644
--- a/etc/tao_cosnotification.doxygen
+++ b/etc/tao_cosnotification.doxygen
@@ -53,11 +53,8 @@ INPUT = \
TAO/orbsvcs/orbsvcs/CosNotifyFilter.idl \
TAO/orbsvcs/orbsvcs/CosNotifyComm.idl \
TAO/orbsvcs/orbsvcs/CosNotifyChannelAdmin.idl \
- TAO/orbsvcs/orbsvcs/Notify \
- TAO/orbsvcs/orbsvcs/Notify/Any \
- TAO/orbsvcs/orbsvcs/Notify/Sequence \
- TAO/orbsvcs/orbsvcs/Notify/Structured
-FILE_PATTERNS = *.cpp *.h *.i *.inl *.idl
+ TAO/orbsvcs/orbsvcs/Notify
+FILE_PATTERNS = *.cpp *.h CEC_*.i CEC_*.inl CEC_*.pidl *.idl
RECURSIVE =
EXCLUDE =
EXCLUDE_PATTERNS =
@@ -84,7 +81,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -128,17 +125,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -166,7 +155,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -177,5 +165,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_costime.doxygen b/etc/tao_costime.doxygen
index 745aca15640..392c1bcb6d4 100644
--- a/etc/tao_costime.doxygen
+++ b/etc/tao_costime.doxygen
@@ -77,7 +77,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -121,17 +121,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -157,7 +149,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -168,5 +159,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_costrader.doxygen b/etc/tao_costrader.doxygen
index 548efc9cd75..6a7af78162e 100644
--- a/etc/tao_costrader.doxygen
+++ b/etc/tao_costrader.doxygen
@@ -80,7 +80,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -124,17 +124,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -160,7 +152,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -171,5 +162,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_dynamicany.doxygen b/etc/tao_dynamicany.doxygen
index d41e719ee46..1242141103b 100644
--- a/etc/tao_dynamicany.doxygen
+++ b/etc/tao_dynamicany.doxygen
@@ -1,4 +1,3 @@
-
# Doxyfile 1.1.5
#
# $Id$
@@ -77,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -121,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +147,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +157,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_dynamicinterface.doxygen b/etc/tao_dynamicinterface.doxygen
index 9b58fff353a..6249d6c5913 100644
--- a/etc/tao_dynamicinterface.doxygen
+++ b/etc/tao_dynamicinterface.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -154,7 +147,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -165,5 +157,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_esf.doxygen b/etc/tao_esf.doxygen
index 0d2c93f6d4e..767f6bcb293 100644
--- a/etc/tao_esf.doxygen
+++ b/etc/tao_esf.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -156,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -167,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_ifr.doxygen b/etc/tao_ifr.doxygen
index 90b9c3a15db..8e7f91df830 100644
--- a/etc/tao_ifr.doxygen
+++ b/etc/tao_ifr.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -158,7 +151,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -169,5 +161,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_implrepo.doxygen b/etc/tao_implrepo.doxygen
index 0d3257b0583..abef8c6f381 100644
--- a/etc/tao_implrepo.doxygen
+++ b/etc/tao_implrepo.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -157,7 +149,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -168,5 +159,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_iormanip.doxygen b/etc/tao_iormanip.doxygen
index b1c3f27b035..ceb37a681ea 100644
--- a/etc/tao_iormanip.doxygen
+++ b/etc/tao_iormanip.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_iortable.doxygen b/etc/tao_iortable.doxygen
index 2b0083dddc8..3ae785b6abc 100644
--- a/etc/tao_iortable.doxygen
+++ b/etc/tao_iortable.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_pi.doxygen b/etc/tao_pi.doxygen
index 8d73a63172d..680c07aa7a6 100644
--- a/etc/tao_pi.doxygen
+++ b/etc/tao_pi.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_pi_server.doxygen b/etc/tao_pi_server.doxygen
index 150e54a021d..d16b7edd6fc 100644
--- a/etc/tao_pi_server.doxygen
+++ b/etc/tao_pi_server.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_portablegroup.doxygen b/etc/tao_portablegroup.doxygen
index 6fa89afafe4..e43483a91d0 100644
--- a/etc/tao_portablegroup.doxygen
+++ b/etc/tao_portablegroup.doxygen
@@ -79,7 +79,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -123,17 +123,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -159,7 +151,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -170,5 +161,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_portableserver.doxygen b/etc/tao_portableserver.doxygen
index 329860ed9a2..6077b14b5f9 100644
--- a/etc/tao_portableserver.doxygen
+++ b/etc/tao_portableserver.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_pss.doxygen b/etc/tao_pss.doxygen
index 511c3feaeb5..26e69b5387f 100644
--- a/etc/tao_pss.doxygen
+++ b/etc/tao_pss.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -156,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -167,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_rtcorba.doxygen b/etc/tao_rtcorba.doxygen
index d33ebb30d10..e28699ebea5 100644
--- a/etc/tao_rtcorba.doxygen
+++ b/etc/tao_rtcorba.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_rtevent.doxygen b/etc/tao_rtevent.doxygen
index 87a0535ea76..c7bb0bc3b8b 100644
--- a/etc/tao_rtevent.doxygen
+++ b/etc/tao_rtevent.doxygen
@@ -85,7 +85,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -129,17 +129,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO/orbsvcs TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -166,7 +158,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -177,5 +168,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_rtportableserver.doxygen b/etc/tao_rtportableserver.doxygen
index 1d2218e55a3..c92a6f6b57b 100644
--- a/etc/tao_rtportableserver.doxygen
+++ b/etc/tao_rtportableserver.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,10 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ TAO_NAMESPACE
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -155,7 +148,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -166,5 +158,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_security.doxygen b/etc/tao_security.doxygen
index 025be9c8b58..fa14a015d52 100644
--- a/etc/tao_security.doxygen
+++ b/etc/tao_security.doxygen
@@ -81,7 +81,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -125,17 +125,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -161,7 +153,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -172,5 +163,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_smartproxies.doxygen b/etc/tao_smartproxies.doxygen
index ddf874a22d1..3c56862a1bc 100644
--- a/etc/tao_smartproxies.doxygen
+++ b/etc/tao_smartproxies.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -154,7 +146,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -165,5 +156,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_ssliop.doxygen b/etc/tao_ssliop.doxygen
index 284c6d47f15..1563a5e34d7 100644
--- a/etc/tao_ssliop.doxygen
+++ b/etc/tao_ssliop.doxygen
@@ -81,7 +81,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -125,17 +125,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -162,7 +154,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -173,5 +164,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/etc/tao_strategies.doxygen b/etc/tao_strategies.doxygen
index 7916be772d0..92386ba148a 100644
--- a/etc/tao_strategies.doxygen
+++ b/etc/tao_strategies.doxygen
@@ -76,7 +76,7 @@ HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = YES
+GENERATE_HTMLHELP = NO
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
@@ -120,17 +120,9 @@ SEARCH_INCLUDES = YES
INCLUDE_PATH = TAO .
PREDEFINED =
EXPAND_AS_DEFINED = ACE_RCSID \
- ACE_UNIMPLEMENTED_FUNC \
+ ACE_UNIMPLEMENTED_FUNC \
ACE_CACHE_MAP_MANAGER \
- ACE_THROW_SPEC \
- ACE_ENV_ARG_DECL_NOT_USED \
- ACE_ENV_SINGLE_ARG_DECL_NOT_USED \
- ACE_ENV_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS \
- ACE_ENV_ARG_DECL \
- ACE_ENV_SINGLE_ARG_DECL \
- ACE_ENV_SINGLE_ARG_PARAMETER \
- ACE_ENV_ARG_PARAMETER
+ ACE_THROW_SPEC
#---------------------------------------------------------------------------
# Configuration::addtions related to external references
@@ -154,7 +146,6 @@ COLLABORATION_GRAPH = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GRAPHICAL_HIERARCHY = YES
-DOT_MULTI_TARGETS = YES
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
DOT_PATH =
@@ -165,5 +156,5 @@ MAX_DOT_GRAPH_HEIGHT = 1024
# Configuration::addtions related to the search engine
#---------------------------------------------------------------------------
-SEARCHENGINE = YES
+SEARCHENGINE = NO
diff --git a/examples/APG/Active_Objects/active_objects.mpc b/examples/APG/Active_Objects/active_objects.mpc
index 44fe88bfd30..262ae418a65 100644
--- a/examples/APG/Active_Objects/active_objects.mpc
+++ b/examples/APG/Active_Objects/active_objects.mpc
@@ -2,7 +2,6 @@
// $Id$
project(AO) : aceexe {
- avoids += ace_for_tao
exename = AO
Source_Files {
AO.cpp
@@ -10,7 +9,6 @@ project(AO) : aceexe {
}
project(AO2) : aceexe {
- avoids += ace_for_tao
exename = AO2
Source_Files {
AO2.cpp
diff --git a/examples/APG/Config/ARGV_Example.cpp b/examples/APG/Config/ARGV_Example.cpp
index 92fb25cd30d..2e87b3caeba 100644
--- a/examples/APG/Config/ARGV_Example.cpp
+++ b/examples/APG/Config/ARGV_Example.cpp
@@ -19,7 +19,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
static const ACE_TCHAR cmdline[] =
ACE_TEXT ("-f /home/managed.cfg -h $HOSTNAME");
ACE_ARGV cmdline_args (cmdline);
- ACE_Get_Opt cmd_opts (cmdline_args.argc (),
+ ACE_Get_Arg_Opt<ACE_TCHAR> cmd_opts (cmdline_args.argc (),
cmdline_args.argv (),
options,
0); // Don't skip any args
diff --git a/examples/APG/Config/Get_Opt.cpp b/examples/APG/Config/Get_Opt.cpp
index 604dc38326e..aff6ad035ee 100644
--- a/examples/APG/Config/Get_Opt.cpp
+++ b/examples/APG/Config/Get_Opt.cpp
@@ -1,7 +1,7 @@
/**
* $Id$
*
- * ACE_Get_Opt examples not in a larger program. Sample code from The ACE
+ * ACE_Get_Arg_Opt examples not in a larger program. Sample code from The ACE
* Programmer's Guide, Copyright 2003 Addison-Wesley. All Rights Reserved.
*/
@@ -16,7 +16,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
// Example for a long option without a corresponding short option.
// Just put some context here so the following compiles and runs.
static const ACE_TCHAR options[] = ACE_TEXT (":f:");
- ACE_Get_Opt cmd_opts (argc, argv, options);
+ ACE_Get_Arg_Opt<ACE_TCHAR> cmd_opts (argc, argv, options);
// Listing 1 code/ch04
cmd_opts.long_option (ACE_TEXT ("cool_option"));
diff --git a/examples/APG/Config/Get_Opt_Long.cpp b/examples/APG/Config/Get_Opt_Long.cpp
index 66baed05cdb..8b212b7a32a 100644
--- a/examples/APG/Config/Get_Opt_Long.cpp
+++ b/examples/APG/Config/Get_Opt_Long.cpp
@@ -1,7 +1,7 @@
/**
* $Id$
*
- * ACE_Get_Opt long_only examples. Sample code from The ACE
+ * ACE_Get_Arg_Opt long_only examples. Sample code from The ACE
* Programmer's Guide, Copyright 2003 Addison-Wesley. All Rights Reserved.
*/
@@ -14,10 +14,10 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
static const ACE_TCHAR options[] = ACE_TEXT (":f:");
- ACE_Get_Opt cmd_opts
- (argc, argv, options, 1, 0, ACE_Get_Opt::PERMUTE_ARGS, 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> cmd_opts
+ (argc, argv, options, 1, 0, ACE_Get_Arg_Opt<ACE_TCHAR>::PERMUTE_ARGS, 1);
if (cmd_opts.long_option
- (ACE_TEXT ("config"), 'f', ACE_Get_Opt::ARG_REQUIRED) == -1)
+ (ACE_TEXT ("config"), 'f', ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED) == -1)
return -1;
int option;
diff --git a/examples/APG/Config/HA_Status.cpp b/examples/APG/Config/HA_Status.cpp
index 1bad687be80..6fac607d8e6 100644
--- a/examples/APG/Config/HA_Status.cpp
+++ b/examples/APG/Config/HA_Status.cpp
@@ -27,14 +27,14 @@ int
HA_Status::init (int argc, ACE_TCHAR *argv[])
{
- // Do ACE_Get_Opt and get conf file name, read out the sections
+ // Do ACE_Get_Arg_Opt and get conf file name, read out the sections
// and print the names.
// Listing 1 code/ch04
static const ACE_TCHAR options[] = ACE_TEXT (":f:");
- ACE_Get_Opt cmd_opts (argc, argv, options);
+ ACE_Get_Arg_Opt<ACE_TCHAR> cmd_opts (argc, argv, options);
if (cmd_opts.long_option
- (ACE_TEXT ("config"), 'f', ACE_Get_Opt::ARG_REQUIRED) == -1)
+ (ACE_TEXT ("config"), 'f', ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED) == -1)
return -1;
int option;
ACE_TCHAR config_file[MAXPATHLEN];
diff --git a/examples/APG/Config/config.mpc b/examples/APG/Config/config.mpc
index 5b705d144bc..bd2aa0fcb99 100644
--- a/examples/APG/Config/config.mpc
+++ b/examples/APG/Config/config.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*HA Status) : aceexe {
- avoids += ace_for_tao
exename = HA_Status
Source_Files {
HA_Status.cpp
diff --git a/examples/APG/Containers/Hash_Map_Hash.h b/examples/APG/Containers/Hash_Map_Hash.h
index a125f9ee7e6..3d3a76178f0 100644
--- a/examples/APG/Containers/Hash_Map_Hash.h
+++ b/examples/APG/Containers/Hash_Map_Hash.h
@@ -21,8 +21,6 @@ private:
int val_;
};
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Specialize the hash functor.
template<>
class ACE_Hash<KeyType>
@@ -49,9 +47,6 @@ public:
return (val1 == val2);
}
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Listing 1
#endif /* __HASH_MAP_HASH_H_ */
diff --git a/examples/APG/Containers/Map_Manager.cpp b/examples/APG/Containers/Map_Manager.cpp
index 8761b5b7507..4dce09fd2a0 100644
--- a/examples/APG/Containers/Map_Manager.cpp
+++ b/examples/APG/Containers/Map_Manager.cpp
@@ -1,6 +1,5 @@
// $Id$
-#include "ace/Log_Msg.h"
#include "ace/Map_Manager.h"
#include "ace/Synch.h"
#include "DataElement.h"
diff --git a/examples/APG/Containers/Map_Manager_Specialization.cpp b/examples/APG/Containers/Map_Manager_Specialization.cpp
index 016cf1e0630..82a536c33a4 100644
--- a/examples/APG/Containers/Map_Manager_Specialization.cpp
+++ b/examples/APG/Containers/Map_Manager_Specialization.cpp
@@ -1,6 +1,5 @@
// $Id$
-#include "ace/Log_Msg.h"
#include "ace/Map_Manager.h"
#include "ace/Synch.h" // Needed for the lock.
#include "DataElement.h"
diff --git a/examples/APG/Containers/Queues.cpp b/examples/APG/Containers/Queues.cpp
index 238c9e9ce01..857dc554f8d 100644
--- a/examples/APG/Containers/Queues.cpp
+++ b/examples/APG/Containers/Queues.cpp
@@ -71,7 +71,7 @@ int QueueExample::runStackUnboundedQueue (void)
!iter.done ();
iter.advance ())
{
- DataElement *elem = 0;
+ DataElement *elem;
iter.next (elem);
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%d:"), elem->getData ()));
}
@@ -97,7 +97,7 @@ int QueueExample::runHeapUnboundedQueue (void)
!iter.done ();
iter.advance ())
{
- DataElement **elem = 0;
+ DataElement **elem;
iter.next(elem);
ACE_DEBUG
((LM_DEBUG, ACE_TEXT ("%d:"), (*elem)->getData ()));
diff --git a/examples/APG/Containers/RB_Tree_Functors.cpp b/examples/APG/Containers/RB_Tree_Functors.cpp
index 4c105e22897..06753d5fc68 100644
--- a/examples/APG/Containers/RB_Tree_Functors.cpp
+++ b/examples/APG/Containers/RB_Tree_Functors.cpp
@@ -55,7 +55,7 @@ int Tree_Example::run ()
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Using find: \n")));
for (int j = 0; j < 100; j++)
{
- DataElement* d = 0;
+ DataElement* d;
int result = tree_.find (j, d);
if (result != 0)
{
diff --git a/examples/APG/Containers/RB_Tree_Functors.h b/examples/APG/Containers/RB_Tree_Functors.h
index 010fb5fda62..75fb33a69d8 100644
--- a/examples/APG/Containers/RB_Tree_Functors.h
+++ b/examples/APG/Containers/RB_Tree_Functors.h
@@ -20,8 +20,6 @@ private:
int val_;
};
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
template<>
class ACE_Less_Than<KeyType>
{
@@ -29,9 +27,6 @@ public:
int operator() (const KeyType k1, const KeyType k2)
{ return k1 < k2; }
};
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
// Listing 1
#endif /* __RB_TREE_FUNCTORS_H_ */
diff --git a/examples/APG/Containers/Stacks.cpp b/examples/APG/Containers/Stacks.cpp
index 764045992d5..17b98e93bf6 100644
--- a/examples/APG/Containers/Stacks.cpp
+++ b/examples/APG/Containers/Stacks.cpp
@@ -128,7 +128,7 @@ int StackExample::runUnboundedStack (void)
ACE_Unbounded_Stack_Iterator<DataElement*> iter (ustack);
for (iter.first (); !iter.done (); iter.advance ())
{
- DataElement** elem = 0;
+ DataElement** elem;
iter.next (elem);
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%d:"),
(*elem)->getData ()));
diff --git a/examples/APG/Containers/containers.mpc b/examples/APG/Containers/containers.mpc
index d08ef9133aa..2bdb1e527d7 100644
--- a/examples/APG/Containers/containers.mpc
+++ b/examples/APG/Containers/containers.mpc
@@ -2,7 +2,6 @@
// $Id$
project(DLList) : aceexe {
- avoids += ace_for_tao
exename = DLList
Source_Files {
DLList.cpp
diff --git a/examples/APG/Logging/Callback-2.h b/examples/APG/Logging/Callback-2.h
index 906b2e43286..3a3d27f6296 100644
--- a/examples/APG/Logging/Callback-2.h
+++ b/examples/APG/Logging/Callback-2.h
@@ -1,8 +1,5 @@
// $Id$
-#ifndef APG_CALLBACK2_H
-#define APG_CALLBACK2_H
-
#include "ace/OS_NS_time.h"
#include "ace/streams.h"
#include "ace/Log_Msg_Callback.h"
@@ -22,23 +19,22 @@ public:
const ACE_TCHAR *prio_name =
ACE_Log_Record::priority_name (prio);
cerr << "\tType: "
- << ACE_TEXT_ALWAYS_CHAR (prio_name)
+ << ACE_TEXT_TO_CHAR_IN (prio_name)
<< endl;
cerr << "\tLength: " << log_record.length () << endl;
const time_t epoch = log_record.time_stamp ().sec ();
cerr << "\tTime_Stamp: "
- << ACE_TEXT_ALWAYS_CHAR (ACE_OS::ctime (&epoch))
+ << ACE_TEXT_TO_CHAR_IN (ACE_OS::ctime (&epoch))
<< flush;
cerr << "\tPid: " << log_record.pid () << endl;
ACE_CString data (">> ");
- data += ACE_TEXT_ALWAYS_CHAR (log_record.msg_data ());
+ data += ACE_TEXT_TO_CHAR_IN (log_record.msg_data ());
cerr << "\tMsgData: " << data.c_str () << endl;
}
};
-#endif /* APG_CALLBACK2_H */
diff --git a/examples/APG/Logging/Callback-3.h b/examples/APG/Logging/Callback-3.h
index 22824fad382..da852cb847c 100644
--- a/examples/APG/Logging/Callback-3.h
+++ b/examples/APG/Logging/Callback-3.h
@@ -1,8 +1,5 @@
// $Id$
-#ifndef APG_CALLBACK3_H
-#define APG_CALLBACK3_H
-
#include "ace/streams.h"
#include "ace/Log_Msg.h"
#include "ace/Log_Msg_Callback.h"
@@ -42,13 +39,8 @@ public:
{
if (!this->logger_)
{
-# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
- log_record.print
- (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, stderr);
-# else
log_record.print
(ACE_TEXT (""), ACE_Log_Msg::VERBOSE, cerr);
-# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
return;
}
@@ -65,5 +57,3 @@ public:
private:
ACE_SOCK_Stream *logger_;
};
-
-#endif /* APG_CALLBACK3_H */
diff --git a/examples/APG/Logging/Callback.h b/examples/APG/Logging/Callback.h
index 86dff9ea826..264c99bd9c1 100644
--- a/examples/APG/Logging/Callback.h
+++ b/examples/APG/Logging/Callback.h
@@ -1,8 +1,5 @@
// $Id$
-#ifndef APG_CALLBACK_H
-#define APG_CALLBACK_H
-
#include "ace/streams.h"
#include "ace/Log_Msg.h"
#include "ace/Log_Msg_Callback.h"
@@ -12,14 +9,7 @@ class Callback : public ACE_Log_Msg_Callback
{
public:
void log (ACE_Log_Record &log_record) {
-# if defined (ACE_LACKS_IOSTREAM_TOTALLY)
- log_record.print (ACE_TEXT (""), 0, stderr);
- log_record.print (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, stderr);
-# else
log_record.print (ACE_TEXT (""), 0, cerr);
log_record.print (ACE_TEXT (""), ACE_Log_Msg::VERBOSE, cerr);
-# endif /* ACE_LACKS_IOSTREAM_TOTALLY */
}
};
-
-#endif /* APG_CALLBACK_H */
diff --git a/examples/APG/Misc_IPC/misc_ipc.mpc b/examples/APG/Misc_IPC/misc_ipc.mpc
index 47e1c34758b..d720f15999b 100644
--- a/examples/APG/Misc_IPC/misc_ipc.mpc
+++ b/examples/APG/Misc_IPC/misc_ipc.mpc
@@ -2,7 +2,6 @@
// $Id$
project(UDP Broadcast) : aceexe {
- avoids += ace_for_tao
exename = UDP_Broadcast
Source_Files {
UDP_Broadcast.cpp
@@ -17,7 +16,6 @@ project(UDP Multicast) : aceexe {
}
project(UDP Unicast) : aceexe {
- avoids += ace_for_tao
exename = UDP_Unicast
Source_Files {
UDP_Unicast.cpp
diff --git a/examples/APG/Naming/naming.mpc b/examples/APG/Naming/naming.mpc
index fda823954fc..5c32cb1d641 100644
--- a/examples/APG/Naming/naming.mpc
+++ b/examples/APG/Naming/naming.mpc
@@ -2,7 +2,6 @@
// $Id$
project(Netlocal) : aceexe {
- avoids += ace_for_tao
exename = Netlocal
Source_Files {
Netlocal.cpp
@@ -11,7 +10,6 @@ project(Netlocal) : aceexe {
}
project(Netlocal Reader) : aceexe {
- avoids += ace_for_tao
exename = Netlocal_reader
Source_Files {
Netlocal_reader.cpp
@@ -21,7 +19,6 @@ project(Netlocal Reader) : aceexe {
}
project(Nodelocal) : aceexe {
- avoids += ace_for_tao
exename = Nodelocal
Source_Files {
Nodelocal.cpp
@@ -30,7 +27,6 @@ project(Nodelocal) : aceexe {
}
project(Nodelocal Shared) : aceexe {
- avoids += ace_for_tao
exename = Nodelocal_shared
Source_Files {
Nodelocal_shared.cpp
@@ -39,7 +35,6 @@ project(Nodelocal Shared) : aceexe {
}
project(Nodelocal Shared Reader) : aceexe {
- avoids += ace_for_tao
exename = Nodelocal_shared_reader
Source_Files {
Nodelocal_shared_reader.cpp
diff --git a/examples/APG/Proactor/proactor.mpc b/examples/APG/Proactor/proactor.mpc
index 85ef950ae66..2d3237b176a 100644
--- a/examples/APG/Proactor/proactor.mpc
+++ b/examples/APG/Proactor/proactor.mpc
@@ -2,7 +2,6 @@
// $Id$
project(HA Proactive Status) : aceexe {
- avoids += ace_for_tao
exename = HA_Proactive_Status
Source_Files {
HA_Proactive_Status.cpp
diff --git a/examples/APG/Processes/Process_Mutex.cpp b/examples/APG/Processes/Process_Mutex.cpp
index 2afb89803b9..a10078ad2ac 100644
--- a/examples/APG/Processes/Process_Mutex.cpp
+++ b/examples/APG/Processes/Process_Mutex.cpp
@@ -55,7 +55,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
else // Run as the parent.
{
ACE_Process_Options options;
- options.command_line (ACE_TEXT ("%s a"), argv[0]);
+ options.command_line ("%s a", argv[0]);
ACE_Process processa, processb;
pid_t pida = processa.spawn (options);
diff --git a/examples/APG/Processes/Spawn.cpp b/examples/APG/Processes/Spawn.cpp
index 0776a44a8ec..6d727ea77db 100644
--- a/examples/APG/Processes/Spawn.cpp
+++ b/examples/APG/Processes/Spawn.cpp
@@ -75,7 +75,7 @@ private:
{
ACE_TRACE ("Manager::prepare");
- options.command_line (ACE_TEXT ("%s 1"), this->programName_);
+ options.command_line ("%s 1", this->programName_);
if (this->setStdHandles (options) == -1 ||
this->setEnvVariable (options) == -1)
return -1;
diff --git a/examples/APG/Processes/processes.mpc b/examples/APG/Processes/processes.mpc
index a7cb01040bb..91c0e28c935 100644
--- a/examples/APG/Processes/processes.mpc
+++ b/examples/APG/Processes/processes.mpc
@@ -2,7 +2,6 @@
// $Id$
project(Process Manager Death) : aceexe {
- avoids += ace_for_tao
exename = Process_Manager_Death
Source_Files {
Process_Manager_Death.cpp
@@ -10,7 +9,6 @@ project(Process Manager Death) : aceexe {
}
project(Process Manager Spawn) : aceexe {
- avoids += ace_for_tao
exename = Process_Manager_Spawn
Source_Files {
Process_Manager_Spawn.cpp
@@ -18,7 +16,6 @@ project(Process Manager Spawn) : aceexe {
}
project(Process Mutex) : aceexe {
- avoids += ace_for_tao
exename = Process_Mutex
Source_Files {
Process_Mutex.cpp
@@ -26,7 +23,6 @@ project(Process Mutex) : aceexe {
}
project(Spawn) : aceexe {
- avoids += ace_for_tao
exename = Spawn
Source_Files {
Spawn.cpp
diff --git a/examples/APG/Shared_Memory/Hash_Map.cpp b/examples/APG/Shared_Memory/Hash_Map.cpp
index 9b91f6a6d4b..3ca3fff4362 100644
--- a/examples/APG/Shared_Memory/Hash_Map.cpp
+++ b/examples/APG/Shared_Memory/Hash_Map.cpp
@@ -19,22 +19,22 @@ typedef ACE_Allocator_Adapter<ACE_Malloc_T <ACE_MMAP_MEMORY_POOL,
ACE_Process_Mutex,
ACE_Control_Block>
> ALLOCATOR;
-typedef ACE_Hash_Map_With_Allocator<int, Record> HASH_MAP;
+typedef ACE_Hash_Map_With_Allocator<int, Record> MAP;
ACE_Process_Mutex coordMutex("Coord-Mutex");
// Listing 1
// Listing 2 code/ch17
-HASH_MAP* smap (ALLOCATOR *shmem_allocator)
+MAP* smap (ALLOCATOR *shmem_allocator)
{
void *db = 0;
if (shmem_allocator->find (MAP_NAME, db) == 0)
- return (HASH_MAP *) db;
- size_t hash_table_size = sizeof (HASH_MAP);
+ return (MAP *) db;
+ size_t hash_table_size = sizeof (MAP);
void *hash_map = shmem_allocator->malloc (hash_table_size);
if (hash_map == 0)
return 0;
- new (hash_map) HASH_MAP (hash_table_size, shmem_allocator);
+ new (hash_map) MAP (hash_table_size, shmem_allocator);
if (shmem_allocator->bind (MAP_NAME, hash_map) == -1)
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"),
@@ -42,11 +42,11 @@ HASH_MAP* smap (ALLOCATOR *shmem_allocator)
shmem_allocator->remove ();
return 0;
}
- return (HASH_MAP*)hash_map;
+ return (MAP*)hash_map;
}
// Listing 2
// Listing 6 code/ch17
-int processRecords (HASH_MAP *map, ALLOCATOR *shmem_allocator)
+int processRecords (MAP *map, ALLOCATOR *shmem_allocator)
{
ACE_TRACE ("processRecords");
@@ -58,7 +58,7 @@ int processRecords (HASH_MAP *map, ALLOCATOR *shmem_allocator)
int *todelete = new int[mapLength];
int i = 0;
- for (HASH_MAP::iterator iter = map->begin ();
+ for (MAP::iterator iter = map->begin ();
iter != map->end ();
iter++)
{
@@ -105,7 +105,7 @@ int processRecords (HASH_MAP *map, ALLOCATOR *shmem_allocator)
}
// Listing 6
// Listing 4 code/ch17
-int addRecords(HASH_MAP *map, ALLOCATOR *shmem_allocator)
+int addRecords(MAP *map, ALLOCATOR *shmem_allocator)
{
ACE_TRACE ("addRecords");
@@ -151,7 +151,7 @@ int handle_child (void)
&options),
-1);
- HASH_MAP *map = smap (shmem_allocator);
+ MAP *map = smap (shmem_allocator);
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) Map has %d entries\n"),
@@ -182,7 +182,7 @@ int handle_parent (ACE_TCHAR *cmdLine)
ALLOCATOR (BACKING_STORE, BACKING_STORE, &options),
-1);
- HASH_MAP *map = smap (shmem_allocator);
+ MAP *map = smap (shmem_allocator);
ACE_Process processa, processb;
ACE_Process_Options poptions;
diff --git a/examples/APG/Shared_Memory/shared_memory.mpc b/examples/APG/Shared_Memory/shared_memory.mpc
index 2cf2400ef8e..3e6c3729b17 100644
--- a/examples/APG/Shared_Memory/shared_memory.mpc
+++ b/examples/APG/Shared_Memory/shared_memory.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*Hash Map) : aceexe {
- avoids += ace_for_tao
exename = Hash_Map
Source_Files {
Hash_Map.cpp
@@ -10,7 +9,6 @@ project(*Hash Map) : aceexe {
}
project(Malloc) : aceexe {
- avoids += ace_for_tao
exename = Malloc
Source_Files {
Malloc.cpp
@@ -18,7 +16,6 @@ project(Malloc) : aceexe {
}
project(Mem Map) : aceexe {
- avoids += ace_for_tao
exename = Mem_Map
Source_Files {
Mem_Map.cpp
@@ -26,7 +23,6 @@ project(Mem Map) : aceexe {
}
project(PI Malloc) : aceexe {
- avoids += ace_for_tao
exename = PI_Malloc
Source_Files {
PI_Malloc.cpp
@@ -34,7 +30,6 @@ project(PI Malloc) : aceexe {
}
project(Pool Growth) : aceexe {
- avoids += ace_for_tao
exename = Pool_Growth
Source_Files {
Pool_Growth.cpp
diff --git a/examples/APG/Streams/BasicTask.h b/examples/APG/Streams/BasicTask.h
index edebc397998..86ac180925f 100644
--- a/examples/APG/Streams/BasicTask.h
+++ b/examples/APG/Streams/BasicTask.h
@@ -54,13 +54,14 @@ public:
// Listing 1021 code/ch18
if (message->msg_type () == ACE_Message_Block::MB_HANGUP)
{
- if (this->putq (message) == -1)
+ if (this->putq (message->duplicate ()) == -1)
{
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("Task::svc() putq")));
- message->release ();
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("Task::svc() putq")),
+ -1);
}
+ message->release ();
break;
}
// Listing 1021
@@ -83,14 +84,14 @@ public:
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("BasicTask::svc() - ")
ACE_TEXT ("Continue to next stage\n" )));
- if (this->next_step (message) < 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("put_next failed")));
- message->release ();
- break;
- }
+
+ if (this->next_step (message->duplicate ()) < 0)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("put_next failed")),
+ -1);
+
+ message->release ();
// Listing 1023
}
@@ -106,15 +107,15 @@ public:
{
ACE_Message_Block *hangup = new ACE_Message_Block ();
hangup->msg_type (ACE_Message_Block::MB_HANGUP);
- if (this->putq (hangup) == -1)
+ if (this->putq (hangup->duplicate ()) == -1)
{
- hangup->release ();
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"),
ACE_TEXT ("Task::close() putq")),
-1);
}
+ hangup->release ();
rval = this->wait ();
}
@@ -126,7 +127,7 @@ public:
protected:
virtual int next_step (ACE_Message_Block *message_block)
{
- return this->put_next (message_block);
+ return this->put_next (message_block->duplicate ());
}
// Listing 105
diff --git a/examples/APG/Streams/EndTask.h b/examples/APG/Streams/EndTask.h
index a42eca655d9..62b4093f975 100644
--- a/examples/APG/Streams/EndTask.h
+++ b/examples/APG/Streams/EndTask.h
@@ -5,7 +5,8 @@
#define END_TASK_H
// Listing 1 code/ch18
-class EndTask : public BasicTask {
+class EndTask : public BasicTask
+{
protected:
virtual int process (Message *)
{
@@ -13,12 +14,11 @@ protected:
return 0;
}
- virtual int next_step (ACE_Message_Block *mb)
+ virtual int next_step (ACE_Message_Block *)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("EndTask::next_step() - ")
ACE_TEXT ("end of the line.\n")));
- mb->release ();
return 0;
}
};
diff --git a/examples/APG/Streams/streams.mpc b/examples/APG/Streams/streams.mpc
index df74b446031..3b180f448a3 100644
--- a/examples/APG/Streams/streams.mpc
+++ b/examples/APG/Streams/streams.mpc
@@ -2,7 +2,6 @@
// $Id$
project(Answerer) : aceexe {
- avoids += ace_for_tao
exename = Answerer
requires += threads
Source_Files {
diff --git a/examples/APG/Svc_Config/HA_Status_Dynamic.cpp b/examples/APG/Svc_Config/HA_Status_Dynamic.cpp
index b2c15661a66..edc3c03b630 100644
--- a/examples/APG/Svc_Config/HA_Status_Dynamic.cpp
+++ b/examples/APG/Svc_Config/HA_Status_Dynamic.cpp
@@ -17,9 +17,9 @@ int
HA_Status::init (int argc, ACE_TCHAR *argv[])
{
static const ACE_TCHAR options[] = ACE_TEXT (":f:");
- ACE_Get_Opt cmd_opts (argc, argv, options, 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> cmd_opts (argc, argv, options, 0);
if (cmd_opts.long_option
- (ACE_TEXT ("config"), 'f', ACE_Get_Opt::ARG_REQUIRED) == -1)
+ (ACE_TEXT ("config"), 'f', ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED) == -1)
return -1;
int option;
ACE_TCHAR config_file[MAXPATHLEN];
diff --git a/examples/APG/Svc_Config/HA_Status_Static.cpp b/examples/APG/Svc_Config/HA_Status_Static.cpp
index b97c74a11d9..c9dbfbeb961 100644
--- a/examples/APG/Svc_Config/HA_Status_Static.cpp
+++ b/examples/APG/Svc_Config/HA_Status_Static.cpp
@@ -17,9 +17,9 @@ int
HA_Status::init (int argc, ACE_TCHAR *argv[])
{
static const ACE_TCHAR options[] = ACE_TEXT (":f:");
- ACE_Get_Opt cmd_opts (argc, argv, options, 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> cmd_opts (argc, argv, options, 0);
if (cmd_opts.long_option
- (ACE_TEXT ("config"), 'f', ACE_Get_Opt::ARG_REQUIRED) == -1)
+ (ACE_TEXT ("config"), 'f', ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED) == -1)
return -1;
int option;
ACE_TCHAR config_file[MAXPATHLEN];
diff --git a/examples/APG/Svc_Config/svc_config.mpc b/examples/APG/Svc_Config/svc_config.mpc
index ddc33b97c53..933842648e5 100644
--- a/examples/APG/Svc_Config/svc_config.mpc
+++ b/examples/APG/Svc_Config/svc_config.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*HA Status) : acelib {
- avoids += ace_for_tao
sharedname = HA_Status
dynamicflags = HASTATUS_BUILD_DLL
Source_Files {
@@ -11,7 +10,6 @@ project(*HA Status) : acelib {
}
project(HA Configurable Server Dynamic) : aceexe {
- avoids += ace_for_tao
exename = HA_Configurable_Server_Dynamic
Source_Files {
HA_Configurable_Server_Dynamic.cpp
@@ -19,7 +17,6 @@ project(HA Configurable Server Dynamic) : aceexe {
}
project(HA Configurable Server Static) : aceexe {
- avoids += ace_for_tao
exename = HA_Configurable_Server_Static
Source_Files {
HA_Configurable_Server_Static.cpp
diff --git a/examples/APG/ThreadManagement/Coop_Cancel.cpp b/examples/APG/ThreadManagement/Coop_Cancel.cpp
index 4a7714cf14b..c013975ba1e 100644
--- a/examples/APG/ThreadManagement/Coop_Cancel.cpp
+++ b/examples/APG/ThreadManagement/Coop_Cancel.cpp
@@ -24,7 +24,7 @@ public:
if (mgr->testcancel (mgr->thr_self ()))
return 0;
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
ACE_Time_Value tv (0, 1000);
tv += ACE_OS::time (0);
int result = this->getq (mb, &tv);
diff --git a/examples/APG/ThreadManagement/Priorities.cpp b/examples/APG/ThreadManagement/Priorities.cpp
index 3a80a613714..06021432291 100644
--- a/examples/APG/ThreadManagement/Priorities.cpp
+++ b/examples/APG/ThreadManagement/Priorities.cpp
@@ -21,7 +21,7 @@ public:
name_));
ACE_OS::sleep (2);
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
while (this->getq (mb) != -1)
{
if (mb->msg_type () == ACE_Message_Block::MB_BREAK)
diff --git a/examples/APG/ThreadManagement/Signals.cpp b/examples/APG/ThreadManagement/Signals.cpp
index 64c06eb5d30..19b7e72e495 100644
--- a/examples/APG/ThreadManagement/Signals.cpp
+++ b/examples/APG/ThreadManagement/Signals.cpp
@@ -33,7 +33,7 @@ public:
while (1)
{
- ACE_Message_Block* mb = 0;
+ ACE_Message_Block* mb;
ACE_Time_Value tv (0, 1000);
tv += ACE_OS::time (0);
int result = this->getq (mb, &tv);
diff --git a/examples/APG/ThreadManagement/Signals2.cpp b/examples/APG/ThreadManagement/Signals2.cpp
index 539849262a8..114695592bc 100644
--- a/examples/APG/ThreadManagement/Signals2.cpp
+++ b/examples/APG/ThreadManagement/Signals2.cpp
@@ -33,7 +33,7 @@ public:
while (1)
{
- ACE_Message_Block* mb = 0;
+ ACE_Message_Block* mb;
ACE_Time_Value tv (0, 1000);
tv += ACE_OS::time (0);
diff --git a/examples/APG/ThreadPools/Request_Handler.h b/examples/APG/ThreadPools/Request_Handler.h
index 9965fb7a30e..c534fd57670 100644
--- a/examples/APG/ThreadPools/Request_Handler.h
+++ b/examples/APG/ThreadPools/Request_Handler.h
@@ -10,10 +10,7 @@
#include "ace/Svc_Handler.h"
#include "ace/SOCK_Stream.h"
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Thread_Manager;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Request_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_MT_SYNCH>
{
diff --git a/examples/APG/ThreadPools/threadpools.mpc b/examples/APG/ThreadPools/threadpools.mpc
index 1bb9a860920..1855f7b40a2 100644
--- a/examples/APG/ThreadPools/threadpools.mpc
+++ b/examples/APG/ThreadPools/threadpools.mpc
@@ -2,7 +2,6 @@
// $Id$
project(Futures) : aceexe {
- avoids += ace_for_tao
exename = Futures
Source_Files {
Futures.cpp
diff --git a/examples/APG/ThreadSafety/Tokens_Deadlock.cpp b/examples/APG/ThreadSafety/Tokens_Deadlock.cpp
index f6c6d22491f..8e1e254684a 100644
--- a/examples/APG/ThreadSafety/Tokens_Deadlock.cpp
+++ b/examples/APG/ThreadSafety/Tokens_Deadlock.cpp
@@ -12,12 +12,12 @@ class ThreadOne : public ACE_Task_Base
public:
virtual int svc (void)
{
- ACE_Local_Mutex mutex1 (ACE_TEXT ("resource1"),
+ ACE_Local_Mutex mutex1 ("resource1",
0, // Deadlock detection enabled.
1);// Debugging enabled.
mutex1.acquire ();
ACE_OS::sleep (2);
- ACE_Local_Mutex mutex2 (ACE_TEXT ("resource2"), 0, 1);
+ ACE_Local_Mutex mutex2 ("resource2", 0, 1);
mutex2.acquire ();
return 0;
}
@@ -28,12 +28,12 @@ class ThreadTwo : public ACE_Task_Base
public:
virtual int svc (void)
{
- ACE_Local_Mutex mutex2 (ACE_TEXT ("resource2"),
+ ACE_Local_Mutex mutex2 ("resource2",
0, // Deadlock detection enabled.
1);// Debugging enabled.
mutex2.acquire ();
ACE_OS::sleep (2);
- ACE_Local_Mutex mutex1 (ACE_TEXT ("resource1"),
+ ACE_Local_Mutex mutex1 ("resource1",
0, // Deadlock detection enabled.
1);// Debugging enabled.
mutex1.acquire ();
diff --git a/examples/APG/ThreadSafety/threadsafety.mpc b/examples/APG/ThreadSafety/threadsafety.mpc
index 3598d274917..84c7d614ad6 100644
--- a/examples/APG/ThreadSafety/threadsafety.mpc
+++ b/examples/APG/ThreadSafety/threadsafety.mpc
@@ -23,7 +23,6 @@ project(Mutex) : aceexe {
}
project(RW Lock) : aceexe {
- avoids += ace_for_tao
exename = RW_Lock
Source_Files {
RW_Lock.cpp
@@ -31,7 +30,6 @@ project(RW Lock) : aceexe {
}
project(Semaphore) : aceexe {
- avoids += ace_for_tao
exename = Semaphore
Source_Files {
Semaphore.cpp
diff --git a/examples/APG/Timers/Timers.cpp b/examples/APG/Timers/Timers.cpp
index 761f03a650c..4a95e0d4315 100644
--- a/examples/APG/Timers/Timers.cpp
+++ b/examples/APG/Timers/Timers.cpp
@@ -33,15 +33,14 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
CB cb[10];
long args[10];
- for (long i = 0; i < 10 ; i++)
+ for (int i = 0; i < 10 ; i++)
{
- ACE_Time_Value const timeout (i);
long timerID =
Timer::instance ()->schedule
(&cb[i],
&args[i],
timer_queue->gettimeofday () + (ACE_Time_Value)5,
- timeout);
+ i);
// Set the timerID state variable of the handler.
cb[i].setID (timerID);
diff --git a/examples/APG/Timers/Upcall.cpp b/examples/APG/Timers/Upcall.cpp
index fa466196c07..1d4b0dbb844 100644
--- a/examples/APG/Timers/Upcall.cpp
+++ b/examples/APG/Timers/Upcall.cpp
@@ -8,7 +8,7 @@
// Listing 2 code/ch20
// The signature of this method changed at ACE 5.4. The 'recurring_timer'
// parameter was added.
-int
+int
UpcallHandler::timeout (PTimerQueue &,
PCB *handler,
const void *arg,
@@ -160,8 +160,8 @@ int ACE_TMAIN (int, ACE_TCHAR *[])
tv += 20L;
// Schedule two different timers to go off.
- PTimer::instance ()->schedule (&cb1, &arg1, tv, ACE_Time_Value (1));
- PTimer::instance ()->schedule (&cb2, &arg2, tv, ACE_Time_Value (2));
+ PTimer::instance ()->schedule (&cb1, &arg1, tv, 1);
+ PTimer::instance ()->schedule (&cb2, &arg2, tv, 2);
// Run the timer event loop forever.
PTimer::instance ()->wait_for_event ();
diff --git a/examples/ASX/Event_Server/Event_Server/Event.mpc b/examples/ASX/Event_Server/Event_Server/Event.mpc
index f99e912ce04..7c31c7f1a5a 100644
--- a/examples/ASX/Event_Server/Event_Server/Event.mpc
+++ b/examples/ASX/Event_Server/Event_Server/Event.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*Server) : aceexe {
- avoids += ace_for_tao
exename = Event_Server
Source_Files {
Consumer_Router.cpp
diff --git a/examples/ASX/Event_Server/Event_Server/Options.cpp b/examples/ASX/Event_Server/Event_Server/Options.cpp
index 6ef846f2f31..ac98f1f45db 100644
--- a/examples/ASX/Event_Server/Event_Server/Options.cpp
+++ b/examples/ASX/Event_Server/Event_Server/Options.cpp
@@ -108,7 +108,7 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_LOG_MSG->open (argv[0]);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("c:bdH:i:L:l:M:ns:t:T:v"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("c:bdH:i:L:l:M:ns:t:T:v"));
int c;
while ((c = get_opt ()) != EOF)
@@ -172,7 +172,7 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
"\t[-s supplier port]\n"
"\t[-t number of threads]\n"
"\t[-v] (verbose) \n",
- ACE_TEXT_ALWAYS_CHAR (argv[0]));
+ ACE_TEXT_TO_CHAR_IN (argv[0]));
::exit (1);
/* NOTREACHED */
break;
@@ -181,17 +181,17 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
// This is a major hack to get the size_t format spec to be a narrow
// char, same as the other strings for printf() here. It only works
// because this is the end of the source file. It makes the
- // ACE_SIZE_T_FORMAT_SPECIFIER not use ACE_LIB_TEXT, effectively.
-#undef ACE_LIB_TEXT
-#define ACE_LIB_TEXT(A) A
+ // ACE_SIZE_T_FORMAT_SPECIFIER not use ACE_TEXT, effectively.
+#undef ACE_TEXT
+#define ACE_TEXT(A) A
if (this->verbose ())
ACE_OS::printf ("%8d = initial concurrency hint\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = total iterations\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = thread count\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = low water mark\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = high water mark\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = message_size\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = initial queue length\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = total iterations\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = thread count\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = low water mark\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = high water mark\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = message_size\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = initial queue length\n"
"%8d = THR_BOUND\n"
"%8d = THR_NEW_LWP\n",
ACE_Thread::getconcurrency (),
diff --git a/examples/ASX/Event_Server/Event_Server/Options.h b/examples/ASX/Event_Server/Event_Server/Options.h
index 96e2cad3627..7be5ec0a3cc 100644
--- a/examples/ASX/Event_Server/Event_Server/Options.h
+++ b/examples/ASX/Event_Server/Event_Server/Options.h
@@ -116,6 +116,8 @@ private:
static Options *instance_;
// Static Singleton.
+ friend class ACE_Shutup_GPlusPlus;
+ // Turn off g++ warning...
};
#include "Options.i"
diff --git a/examples/ASX/Event_Server/Event_Server/event_server.cpp b/examples/ASX/Event_Server/Event_Server/event_server.cpp
index 12b2339c8f9..bb1a89445df 100644
--- a/examples/ASX/Event_Server/Event_Server/event_server.cpp
+++ b/examples/ASX/Event_Server/Event_Server/event_server.cpp
@@ -3,6 +3,7 @@
// Main driver program for the event server example.
#include "ace/OS_main.h"
+#include "ace/Stream.h"
#include "ace/Service_Config.h"
#include "ace/OS_NS_unistd.h"
#include "Options.h"
@@ -10,7 +11,6 @@
#include "Event_Analyzer.h"
#include "Supplier_Router.h"
#include "ace/Signal.h"
-#include "ace/Stream.h"
ACE_RCSID (Event_Server,
event_server,
@@ -20,12 +20,10 @@ ACE_RCSID (Event_Server,
typedef ACE_Stream<ACE_SYNCH> MT_Stream;
typedef ACE_Module<ACE_SYNCH> MT_Module;
-
class Event_Server : public ACE_Sig_Adapter
{
// = TITLE
// Run the logic for the <Event_Server>.
-
//
// = DESCRIPTION
// In addition to packaging the <Event_Server> components, this
diff --git a/examples/ASX/Event_Server/Transceiver/transceiver.cpp b/examples/ASX/Event_Server/Transceiver/transceiver.cpp
index a1b618bbffb..d0f9accec78 100644
--- a/examples/ASX/Event_Server/Transceiver/transceiver.cpp
+++ b/examples/ASX/Event_Server/Transceiver/transceiver.cpp
@@ -24,7 +24,7 @@ ACE_RCSID (Transceiver,
int
Event_Transceiver::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("Ch:p:S"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("Ch:p:S"));
this->port_number_ = ACE_DEFAULT_SERVER_PORT;
this->host_name_ = ACE_DEFAULT_SERVER_HOST;
diff --git a/examples/ASX/Message_Queue/buffer_stream.cpp b/examples/ASX/Message_Queue/buffer_stream.cpp
index b1f918cfef5..cef4a62ae51 100644
--- a/examples/ASX/Message_Queue/buffer_stream.cpp
+++ b/examples/ASX/Message_Queue/buffer_stream.cpp
@@ -242,7 +242,7 @@ Filter::put (ACE_Message_Block *mb,
// Prepend the line count in front of the buffer.
ACE_OS::sprintf (mb->rd_ptr (),
- ACE_SIZE_T_FORMAT_SPECIFIER
+ ACE_SIZE_T_FORMAT_SPECIFIER_A
": %s",
this->count_++,
buf);
@@ -302,7 +302,7 @@ ACE_TMAIN (int, ACE_TCHAR *argv[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("threads not supported on this platform\n")));
diff --git a/examples/ASX/UPIPE_Event_Server/Options.cpp b/examples/ASX/UPIPE_Event_Server/Options.cpp
index ca2cbbca887..2cec2691abd 100644
--- a/examples/ASX/UPIPE_Event_Server/Options.cpp
+++ b/examples/ASX/UPIPE_Event_Server/Options.cpp
@@ -98,7 +98,7 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_LOG_MSG->open (argv[0]);
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("C:c:bdH:i:L:l:M:nS:s:t:T:v"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("C:c:bdH:i:L:l:M:nS:s:t:T:v"));
int c;
while ((c = getopt ()) != -1)
@@ -170,27 +170,20 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
"\t[-s supplier port]\n"
"\t[-t number of threads]\n"
"\t[-v] (verbose) \n",
- ACE_TEXT_ALWAYS_CHAR (argv[0]));
+ ACE_TEXT_TO_CHAR_IN (argv[0]));
::exit (1);
/* NOTREACHED */
break;
}
- // HACK! This needs to be done to avoid the mismatch from ACE_LIB_TEXT
- // in ACE_SIZE_T_FORMAT_SPECIFIER to narrow-char on wide-char builds.
- // It only works because it's at the end of the file.
-# if defined (ACE_LIB_TEXT)
-# undef ACE_LIB_TEXT
-# endif
-# define ACE_LIB_TEXT(X) X
if (this->verbose ())
ACE_OS::printf ("%8d = initial concurrency hint\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = total iterations\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = thread count\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = low water mark\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = high water mark\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = message_size\n"
- ACE_SIZE_T_FORMAT_SPECIFIER " = initial queue length\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = total iterations\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = thread count\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = low water mark\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = high water mark\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = message_size\n"
+ ACE_SIZE_T_FORMAT_SPECIFIER_A " = initial queue length\n"
"%8d = THR_BOUND\n"
"%8d = THR_NEW_LWP\n",
ACE_OS::thr_getconcurrency (),
diff --git a/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp b/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp
index 757eecedc33..19cfc8a8a57 100644
--- a/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp
+++ b/examples/ASX/UPIPE_Event_Server/Peer_Router.cpp
@@ -26,7 +26,7 @@ ACE_RCSID(UPIPE_Event_Server, Peer_Router, "$Id$")
template <class PH, class PK> int
Acceptor_Factory<PH, PK>::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("df:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("df:"), 0);
ACE_UPIPE_Addr addr;
for (int c; (c = get_opt ()) != -1; )
diff --git a/examples/ASX/UPIPE_Event_Server/UPIPE_Event.mpc b/examples/ASX/UPIPE_Event_Server/UPIPE_Event.mpc
index a4c93dc1fdb..b272b2465bf 100644
--- a/examples/ASX/UPIPE_Event_Server/UPIPE_Event.mpc
+++ b/examples/ASX/UPIPE_Event_Server/UPIPE_Event.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*Server) : aceexe {
- avoids += ace_for_tao
exename = UPIPE_Event_Server
Source_Files {
Consumer_Router.cpp
diff --git a/examples/C++NPv1/C++NPv1.mpc b/examples/C++NPv1/C++NPv1.mpc
index 2cc6967e831..f7d3f626ff4 100644
--- a/examples/C++NPv1/C++NPv1.mpc
+++ b/examples/C++NPv1/C++NPv1.mpc
@@ -2,7 +2,7 @@
// $Id$
project(*Iterative_Logging_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = iterative_logging_server
Source_Files {
Iterative_Logging_Server.cpp
@@ -20,7 +20,7 @@ project(*Logging_Client) : aceexe {
}
project(*PPC_Logging_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = ppc_logging_server
Source_Files {
Process_Per_Connection_Logging_Server.cpp
@@ -30,7 +30,7 @@ project(*PPC_Logging_Server) : aceexe {
}
project(*Reactive_Logging_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = reactive_logging_server
Source_Files {
Reactive_Logging_Server.cpp
@@ -40,7 +40,7 @@ project(*Reactive_Logging_Server) : aceexe {
}
project(*Reactive_Logging_Server_Ex) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = reactive_logging_server_ex
Source_Files {
Reactive_Logging_Server_Ex.cpp
@@ -50,7 +50,7 @@ project(*Reactive_Logging_Server_Ex) : aceexe {
}
project(*RTTPC_Logging_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = RTTPC_logging_server
Source_Files {
RT_Thread_Per_Connection_Logging_Server.cpp
@@ -60,7 +60,7 @@ project(*RTTPC_Logging_Server) : aceexe {
}
project(*TPC_Logging_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = tpc_logging_server
Source_Files {
Thread_Per_Connection_Logging_Server.cpp
diff --git a/examples/C++NPv1/Iterative_Logging_Server.cpp b/examples/C++NPv1/Iterative_Logging_Server.cpp
index f4c28f08da7..ca8a7478064 100644
--- a/examples/C++NPv1/Iterative_Logging_Server.cpp
+++ b/examples/C++NPv1/Iterative_Logging_Server.cpp
@@ -5,13 +5,15 @@
*/
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include "Iterative_Logging_Server.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Iterative_Logging_Server server;
- if (server.run (argc, argv) == -1)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
return 0;
}
diff --git a/examples/C++NPv1/Iterative_Logging_Server.h b/examples/C++NPv1/Iterative_Logging_Server.h
index f811f98c7ce..c58edc16ecb 100644
--- a/examples/C++NPv1/Iterative_Logging_Server.h
+++ b/examples/C++NPv1/Iterative_Logging_Server.h
@@ -14,9 +14,7 @@
#include "Logging_Handler.h"
#include "Logging_Server.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_SOCK_Stream;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Iterative_Logging_Server : public Logging_Server
{
diff --git a/examples/C++NPv1/Logging_Client.cpp b/examples/C++NPv1/Logging_Client.cpp
index 56434d35699..764b0682f5b 100644
--- a/examples/C++NPv1/Logging_Client.cpp
+++ b/examples/C++NPv1/Logging_Client.cpp
@@ -12,6 +12,7 @@
#include "ace/Log_Msg.h"
#include "ace/Log_Record.h"
#include "ace/OS_NS_unistd.h"
+#include "ace/Argv_Type_Converter.h"
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
@@ -39,7 +40,7 @@ int operator<< (ACE_OutputCDR &cdr, const ACE_Log_Record &log_record)
cdr << ACE_CDR::Long (log_record.time_stamp ().sec ());
cdr << ACE_CDR::Long (log_record.time_stamp ().usec ());
cdr << ACE_CDR::ULong (msglen);
- cdr.write_char_array (nonconst_record.msg_data (), msglen);
+ cdr.write_char_array (ACE_TEXT_TO_CHAR_IN(nonconst_record.msg_data ()), msglen);
return cdr.good_bit ();
}
@@ -91,11 +92,15 @@ public:
};
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *targv[])
{
+ ACE_Argv_Type_Converter convert (argc, targv);
+ argc = convert.get_argc();
+ char** argv = convert.get_ASCII_argv();
+
u_short logger_port = argc > 1 ? atoi (argv[1]) : 0;
const char *logger_host =
- argc > 2 ? argv[2] : ACE_DEFAULT_SERVER_HOST;
+ argc > 2 ? argv[2] : ACE_DEFAULT_SERVER_HOST_A;
int result;
ACE_INET_Addr server_addr;
@@ -150,7 +155,7 @@ int main (int argc, char *argv[])
ACE_Time_Value now (ACE_OS::gettimeofday ());
ACE_Log_Record log_record (LM_INFO, now, ACE_OS::getpid ());
- log_record.msg_data (user_input.c_str ());
+ log_record.msg_data (ACE_TEXT_TO_TCHAR_IN(user_input.c_str ()));
if (logging_client.send (log_record) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n", "logging_client.send()"), 1);
diff --git a/examples/C++NPv1/Logging_Handler.cpp b/examples/C++NPv1/Logging_Handler.cpp
index dc1d56b3190..e29faf77812 100644
--- a/examples/C++NPv1/Logging_Handler.cpp
+++ b/examples/C++NPv1/Logging_Handler.cpp
@@ -27,13 +27,13 @@ int operator>> (ACE_InputCDR &cdr, ACE_Log_Record &log_record)
// Extract each field from input CDR stream into <log_record>.
if ((cdr >> type) && (cdr >> pid) && (cdr >> sec) && (cdr >> usec)
&& (cdr >> buffer_len)) {
- ACE_TCHAR log_msg[ACE_Log_Record::MAXLOGMSGLEN+1];
+ char log_msg[ACE_Log_Record::MAXLOGMSGLEN+1];
log_record.type (type);
log_record.pid (pid);
log_record.time_stamp (ACE_Time_Value (sec, usec));
cdr.read_char_array (log_msg, buffer_len);
log_msg[buffer_len] = '\0';
- log_record.msg_data (log_msg);
+ log_record.msg_data (ACE_TEXT_TO_TCHAR_IN(log_msg));
}
return cdr.good_bit ();
}
@@ -113,7 +113,7 @@ int Logging_Handler::write_log_record (ACE_Message_Block *mblk)
cdr >> length;
ACE_Log_Record log_record;
cdr >> log_record; // Finally extract the <ACE_log_record>.
- log_record.print (mblk->rd_ptr (), 1, cerr);
+ log_record.print (ACE_TEXT_TO_TCHAR_IN(mblk->rd_ptr ()), 1, cerr);
}
return mblk->total_length ();
}
diff --git a/examples/C++NPv1/Logging_Handler.h b/examples/C++NPv1/Logging_Handler.h
index 6e0004212b3..80de5ebac51 100644
--- a/examples/C++NPv1/Logging_Handler.h
+++ b/examples/C++NPv1/Logging_Handler.h
@@ -10,9 +10,7 @@
#include "ace/FILE_IO.h"
#include "ace/SOCK_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Logging_Handler
{
diff --git a/examples/C++NPv1/Logging_Server.cpp b/examples/C++NPv1/Logging_Server.cpp
index c685412c769..161adfa3ecc 100644
--- a/examples/C++NPv1/Logging_Server.cpp
+++ b/examples/C++NPv1/Logging_Server.cpp
@@ -52,16 +52,16 @@ int Logging_Server::open (u_short logger_port)
int Logging_Server::make_log_file (ACE_FILE_IO &logging_file,
ACE_SOCK_Stream *logging_peer)
{
- char filename[MAXHOSTNAMELEN + sizeof (".log")];
+ ACE_TCHAR filename[MAXHOSTNAMELEN + sizeof (ACE_TEXT(".log"))];
if (logging_peer != 0) { // Use client's hostname as log file name.
ACE_INET_Addr logging_peer_addr;
logging_peer->get_remote_addr (logging_peer_addr);
logging_peer_addr.get_host_name (filename, MAXHOSTNAMELEN);
- ACE_OS::strcat (filename, ".log");
+ ACE_OS::strcat (filename, ACE_TEXT(".log"));
}
else
- ACE_OS::strcpy (filename, "logging_server.log");
+ ACE_OS::strcpy (filename, ACE_TEXT("logging_server.log"));
ACE_FILE_Connector connector;
return connector.connect (logging_file,
diff --git a/examples/C++NPv1/Logging_Server.h b/examples/C++NPv1/Logging_Server.h
index 2c8624a11cb..1fd03bac775 100644
--- a/examples/C++NPv1/Logging_Server.h
+++ b/examples/C++NPv1/Logging_Server.h
@@ -10,9 +10,7 @@
#include "ace/FILE_IO.h"
#include "ace/SOCK_Acceptor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_SOCK_Stream;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Logging_Server
{
diff --git a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
index 54d936962aa..f992ea824bc 100644
--- a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
@@ -9,6 +9,7 @@
#include "ace/Signal.h"
#include "ace/OS_NS_string.h"
#include "ace/os_include/os_fcntl.h"
+#include "ace/Argv_Type_Converter.h"
#include "Process_Per_Connection_Logging_Server.h"
#include "Logging_Handler.h"
@@ -164,15 +165,17 @@ Process_Per_Connection_Logging_Server::run_worker (int, char *argv[])
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
// Register to receive the <SIGTERM> signal.
ACE_Sig_Action sa ((ACE_SignalHandler)sigterm_handler,
SIGTERM);
Process_Per_Connection_Logging_Server server;
- if (server.run (argc, argv) == -1 && errno != EINTR)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1 && errno != EINTR)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
// Barrier synchronization.
diff --git a/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp
index 465c8ae8f96..2984d558eb5 100644
--- a/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp
@@ -10,6 +10,7 @@
#include "ace/Sched_Params.h"
#include "ace/Signal.h"
#include "ace/Thread_Manager.h"
+#include "ace/Argv_Type_Converter.h"
#include "RT_Thread_Per_Connection_Logging_Server.h"
#include "Logging_Handler.h"
@@ -114,15 +115,16 @@ Thread_Per_Connection_Logging_Server::handle_data (ACE_SOCK_Stream *client)
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Register to receive the <SIGTERM> signal.
ACE_Sig_Action sa ((ACE_SignalHandler) sigterm_handler,
SIGTERM);
RT_Thread_Per_Connection_Logging_Server server;
- if (server.run (argc, argv) == -1)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
// Cooperative thread cancellation and barrier synchronization.
diff --git a/examples/C++NPv1/Reactive_Logging_Server.cpp b/examples/C++NPv1/Reactive_Logging_Server.cpp
index 39d2c6b51be..2c493aecf8b 100644
--- a/examples/C++NPv1/Reactive_Logging_Server.cpp
+++ b/examples/C++NPv1/Reactive_Logging_Server.cpp
@@ -5,13 +5,15 @@
*/
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include "Reactive_Logging_Server.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Reactive_Logging_Server server;
- if (server.run (argc, argv) == -1)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
return 0;
}
diff --git a/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp b/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp
index 8999d7a9651..e735fb24183 100644
--- a/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp
+++ b/examples/C++NPv1/Reactive_Logging_Server_Ex.cpp
@@ -6,14 +6,16 @@
#include "ace/Functor.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include "Reactive_Logging_Server_Ex.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Reactive_Logging_Server_Ex server;
- if (server.run (argc, argv) == -1)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
return 0;
}
diff --git a/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp
index e2c37bb0ef2..d1c0a0b3021 100644
--- a/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp
@@ -9,6 +9,7 @@
#include "ace/Log_Msg.h"
#include "ace/Signal.h"
#include "ace/Thread_Manager.h"
+#include "ace/Argv_Type_Converter.h"
#include "Thread_Per_Connection_Logging_Server.h"
#include "Logging_Handler.h"
@@ -75,15 +76,16 @@ Thread_Per_Connection_Logging_Server::handle_data (ACE_SOCK_Stream *client)
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Register to receive the <SIGTERM> signal.
ACE_Sig_Action sa ((ACE_SignalHandler) sigterm_handler,
SIGTERM);
Thread_Per_Connection_Logging_Server server;
- if (server.run (argc, argv) == -1)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
// Cooperative thread cancellation and barrier synchronization.
diff --git a/examples/C++NPv2/AC_Client_Logging_Daemon.cpp b/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
index 759dcb44861..4a0cde2e8ee 100644
--- a/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
+++ b/examples/C++NPv2/AC_Client_Logging_Daemon.cpp
@@ -207,7 +207,7 @@ int AC_Output_Handler::svc () {
}
if (message_index >= ACE_IOV_MAX ||
(ACE_OS::gettimeofday () - time_of_last_send
- >= ACE_Time_Value(FLUSH_TIMEOUT))) {
+ >= FLUSH_TIMEOUT)) {
if (send (chunk, message_index) == -1) break;
time_of_last_send = ACE_OS::gettimeofday ();
}
@@ -388,13 +388,13 @@ int AC_Client_Logging_Daemon::init
ACE_TCHAR sld_host[MAXHOSTNAMELEN];
ACE_OS::strcpy (sld_host, ACE_LOCALHOST);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
get_opt.long_option (ACE_TEXT ("client_port"), 'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_port"), 'r',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_name"), 's',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
for (int c; (c = get_opt ()) != -1;)
switch (c) {
diff --git a/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp b/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
index 56983e8f89a..841feaaa54f 100644
--- a/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
+++ b/examples/C++NPv2/AIO_Client_Logging_Daemon.cpp
@@ -287,13 +287,13 @@ int AIO_Client_Logging_Daemon::init
ACE_TCHAR sld_host[MAXHOSTNAMELEN];
ACE_OS::strcpy (sld_host, ACE_LOCALHOST);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
get_opt.long_option (ACE_TEXT ("client_port"), 'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_port"), 'r',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_name"), 's',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
for (int c; (c = get_opt ()) != -1;)
switch (c) {
diff --git a/examples/C++NPv2/C++NPv2.mpc b/examples/C++NPv2/C++NPv2.mpc
index 675db6f9929..ca1b40b4034 100644
--- a/examples/C++NPv2/C++NPv2.mpc
+++ b/examples/C++NPv2/C++NPv2.mpc
@@ -29,7 +29,7 @@ project(*AIO_CLD) : acelib, ssl {
}
project(*CLD) : acelib {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
sharedname = CLD
dynamicflags = CLD_BUILD_DLL
Source_Files {
@@ -50,7 +50,6 @@ project(*Configurable_Log_Server) : aceexe {
}
project(*Display_Logfile) : aceexe {
- avoids += ace_for_tao
exename = display_logfile
Source_Files {
display_logfile.cpp
@@ -58,7 +57,7 @@ project(*Display_Logfile) : aceexe {
}
project(*Reactor_Log_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = reactor_logging_server
Source_Files {
Logging_Acceptor.cpp
@@ -70,7 +69,7 @@ project(*Reactor_Log_Server) : aceexe {
}
project(*Select_Reactor_Log_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = select_reactor_logging_server
specific(gnuace) {
after += *Reactor_Log_Server
@@ -85,7 +84,7 @@ project(*Select_Reactor_Log_Server) : aceexe {
}
project(*SLD) : acelib {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
sharedname = SLD
dynamicflags = SLD_BUILD_DLL
specific(gnuace) {
@@ -100,7 +99,7 @@ project(*SLD) : acelib {
}
project(*SLDex) : acelib {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
sharedname = SLDex
dynamicflags = SLDEX_BUILD_DLL
specific(gnuace) {
@@ -125,7 +124,7 @@ project(*SR_Configurable_Log_Server) : aceexe {
}
project(*TP_Reactor_Log_Server) : aceexe {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = tp_reactor_logging_server
specific(gnuace) {
after += *Reactor_Log_Server
@@ -153,7 +152,7 @@ project(*TPCLS) : acelib, ssl {
}
project(*TPLS) : acelib {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
sharedname = TPLS
dynamicflags = TPLS_BUILD_DLL
specific(gnuace) {
@@ -168,7 +167,7 @@ project(*TPLS) : acelib {
}
project(*WFMO_Reactor_Log_Server) : aceexe, wfmo {
- avoids += uses_wchar ace_for_tao
+ avoids += uses_wchar
exename = wfmo_reactor_logging_server
specific(gnuace) {
after += *Reactor_Log_Server
diff --git a/examples/C++NPv2/Client_Logging_Daemon.cpp b/examples/C++NPv2/Client_Logging_Daemon.cpp
index 5fc0d554cbd..b4802b0acb7 100644
--- a/examples/C++NPv2/Client_Logging_Daemon.cpp
+++ b/examples/C++NPv2/Client_Logging_Daemon.cpp
@@ -177,7 +177,7 @@ ACE_THR_FUNC_RETURN CLD_Handler::forward () {
}
if (message_index >= ACE_IOV_MAX ||
(ACE_OS::gettimeofday () - time_of_last_send
- >= ACE_Time_Value(FLUSH_TIMEOUT))) {
+ >= FLUSH_TIMEOUT)) {
if (send (chunk, message_index) == -1) break;
time_of_last_send = ACE_OS::gettimeofday ();
}
@@ -336,13 +336,13 @@ int Client_Logging_Daemon::init (int argc, ACE_TCHAR *argv[]) {
ACE_TCHAR sld_host[MAXHOSTNAMELEN];
ACE_OS::strcpy (sld_host, ACE_LOCALHOST);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
get_opt.long_option (ACE_TEXT ("client_port"), 'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_port"), 'r',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_name"), 's',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
for (int c; (c = get_opt ()) != -1;)
switch (c) {
diff --git a/examples/C++NPv2/Logging_Event_Handler.cpp b/examples/C++NPv2/Logging_Event_Handler.cpp
index d805e776390..3bac6208b27 100644
--- a/examples/C++NPv2/Logging_Event_Handler.cpp
+++ b/examples/C++NPv2/Logging_Event_Handler.cpp
@@ -12,8 +12,8 @@
int Logging_Event_Handler::open () {
- static const char LOGFILE_SUFFIX[] = ".log";
- char filename[MAXHOSTNAMELEN + sizeof (LOGFILE_SUFFIX)];
+ static const ACE_TCHAR LOGFILE_SUFFIX[] = ACE_TEXT(".log");
+ ACE_TCHAR filename[MAXHOSTNAMELEN + sizeof (LOGFILE_SUFFIX)];
ACE_INET_Addr logging_peer_addr;
logging_handler_.peer ().get_remote_addr (logging_peer_addr);
diff --git a/examples/C++NPv2/Logging_Handler.h b/examples/C++NPv2/Logging_Handler.h
index 41945c3a182..e92a89a8147 100644
--- a/examples/C++NPv2/Logging_Handler.h
+++ b/examples/C++NPv2/Logging_Handler.h
@@ -10,9 +10,7 @@
#include "ace/FILE_IO.h"
#include "ace/SOCK_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Message_Block;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Logging_Handler
{
diff --git a/examples/C++NPv2/Makefile.am b/examples/C++NPv2/Makefile.am
index 2a3b2ebbb46..f4dee7f146a 100644
--- a/examples/C++NPv2/Makefile.am
+++ b/examples/C++NPv2/Makefile.am
@@ -138,7 +138,7 @@ display_logfile_SOURCES = \
Logging_Event_Handler.h \
Logging_Event_Handler_Ex.h \
Logging_Handler.h \
- Reactor_Logging_Server_T.h \
+ Reactor_Logging_Server.h \
Reactor_Logging_Server_Adapter.h \
SLDEX_export.h \
SLD_export.h \
@@ -170,7 +170,7 @@ reactor_logging_server_SOURCES = \
Logging_Event_Handler.h \
Logging_Event_Handler_Ex.h \
Logging_Handler.h \
- Reactor_Logging_Server_T.h
+ Reactor_Logging_Server.h
reactor_logging_server_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
@@ -251,7 +251,7 @@ sr_configurable_logging_server_SOURCES = \
Logging_Event_Handler.h \
Logging_Event_Handler_Ex.h \
Logging_Handler.h \
- Reactor_Logging_Server_T.h \
+ Reactor_Logging_Server.h \
Reactor_Logging_Server_Adapter.h \
SLDEX_export.h \
SLD_export.h \
diff --git a/examples/C++NPv2/README b/examples/C++NPv2/README
index a2d8759dd80..58a1f31a728 100644
--- a/examples/C++NPv2/README
+++ b/examples/C++NPv2/README
@@ -31,7 +31,7 @@ Chapter 3 Logging_Acceptor.cpp
Logging_Handler.cpp
Logging_Handler.h
Reactor_Logging_Server.cpp
- Reactor_Logging_Server_T.h
+ Reactor_Logging_Server.h
Reactor_Logging_Server_T.cpp
Chapter 4 Select_Reactor_Logging_Server.cpp
diff --git a/examples/C++NPv2/Reactor_Logging_Server.cpp b/examples/C++NPv2/Reactor_Logging_Server.cpp
index 81a19b28da0..4b8d1b7690a 100644
--- a/examples/C++NPv2/Reactor_Logging_Server.cpp
+++ b/examples/C++NPv2/Reactor_Logging_Server.cpp
@@ -4,14 +4,14 @@
** Copyright 2002 Addison Wesley. All Rights Reserved.
*/
-#include "Reactor_Logging_Server_T.h"
+#include "Reactor_Logging_Server.h"
#include "Logging_Acceptor_Ex.h"
#include "ace/Log_Msg.h"
typedef Reactor_Logging_Server<Logging_Acceptor_Ex>
Server_Logging_Daemon;
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Reactor reactor;
Server_Logging_Daemon *server;
diff --git a/examples/C++NPv2/Reactor_Logging_Server.h b/examples/C++NPv2/Reactor_Logging_Server.h
new file mode 100644
index 00000000000..6b50860892b
--- /dev/null
+++ b/examples/C++NPv2/Reactor_Logging_Server.h
@@ -0,0 +1,29 @@
+/*
+** $Id$
+**
+** Copyright 2002 Addison Wesley. All Rights Reserved.
+*/
+
+#ifndef _REACTOR_LOGGING_SERVER_H
+#define _REACTOR_LOGGING_SERVER_H
+
+#include "ace/ACE.h"
+#include "ace/Reactor.h"
+
+template <class ACCEPTOR>
+class Reactor_Logging_Server : public ACCEPTOR
+{
+public:
+ Reactor_Logging_Server (int argc, char *argv[],
+ ACE_Reactor *reactor);
+};
+
+#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
+#include "Reactor_Logging_Server_T.cpp"
+#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
+
+#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
+#pragma implementation ("Reactor_Logging_Server_T.cpp")
+#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
+
+#endif /* _REACTOR_LOGGING_SERVER_H */
diff --git a/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp b/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp
index 128ad5cabd3..9c6f89db458 100644
--- a/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp
+++ b/examples/C++NPv2/Reactor_Logging_Server_Adapter.cpp
@@ -23,7 +23,7 @@ Reactor_Logging_Server_Adapter<ACCEPTOR>::init (int argc,
ACE_Auto_Array_Ptr<char *> char_argv (array);
for (i = 0; i < argc; ++i)
- char_argv[i] = ACE::strnew (ACE_TEXT_ALWAYS_CHAR (argv[i]));
+ char_argv[i] = ACE::strnew (ACE_TEXT_TO_CHAR_IN (argv[i]));
ACE_NEW_NORETURN (server_, Reactor_Logging_Server<ACCEPTOR>
(i, char_argv.get (),
ACE_Reactor::instance ()));
diff --git a/examples/C++NPv2/Reactor_Logging_Server_Adapter.h b/examples/C++NPv2/Reactor_Logging_Server_Adapter.h
index aeda81205ab..181d35a8b7d 100644
--- a/examples/C++NPv2/Reactor_Logging_Server_Adapter.h
+++ b/examples/C++NPv2/Reactor_Logging_Server_Adapter.h
@@ -8,7 +8,7 @@
#define _REACTOR_LOGGING_SERVER_ADAPTER_H
#include "ace/Service_Object.h"
-#include "Reactor_Logging_Server_T.h"
+#include "Reactor_Logging_Server.h"
template <class ACCEPTOR>
class Reactor_Logging_Server_Adapter : public ACE_Service_Object {
diff --git a/examples/C++NPv2/Reactor_Logging_Server_T.h b/examples/C++NPv2/Reactor_Logging_Server_T.h
deleted file mode 100644
index ee16f8a061e..00000000000
--- a/examples/C++NPv2/Reactor_Logging_Server_T.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-** $Id$
-**
-** Copyright 2002 Addison Wesley. All Rights Reserved.
-*/
-
-#ifndef _REACTOR_LOGGING_SERVER_T_H
-#define _REACTOR_LOGGING_SERVER_T_H
-
-#include "ace/ACE.h"
-#include "ace/Reactor.h"
-
-template <class ACCEPTOR>
-class Reactor_Logging_Server : public ACCEPTOR
-{
-public:
- Reactor_Logging_Server (int argc, char *argv[],
- ACE_Reactor *reactor);
-};
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "Reactor_Logging_Server_T.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("Reactor_Logging_Server_T.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-#endif /* _REACTOR_LOGGING_SERVER_T_H */
diff --git a/examples/C++NPv2/Select_Reactor_Logging_Server.cpp b/examples/C++NPv2/Select_Reactor_Logging_Server.cpp
index db7e3bc1a20..e6f200b00e5 100644
--- a/examples/C++NPv2/Select_Reactor_Logging_Server.cpp
+++ b/examples/C++NPv2/Select_Reactor_Logging_Server.cpp
@@ -19,7 +19,7 @@
# include <string>
#endif
-#include "Reactor_Logging_Server_T.h"
+#include "Reactor_Logging_Server.h"
#include "Logging_Acceptor_Ex.h"
typedef Reactor_Logging_Server<Logging_Acceptor_Ex>
@@ -87,7 +87,7 @@ static ACE_THR_FUNC_RETURN controller (void *arg) {
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Select_Reactor select_reactor;
ACE_Reactor reactor (&select_reactor);
diff --git a/examples/C++NPv2/Service_Reporter.cpp b/examples/C++NPv2/Service_Reporter.cpp
index ad9cd05d26c..022ae96944f 100644
--- a/examples/C++NPv2/Service_Reporter.cpp
+++ b/examples/C++NPv2/Service_Reporter.cpp
@@ -20,10 +20,10 @@ int Service_Reporter::init (int argc, ACE_TCHAR *argv[]) {
ACE_INET_Addr local_addr (Service_Reporter::DEFAULT_PORT);
// Start at argv[0].
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"), 0);
get_opt.long_option (ACE_TEXT ("port"),
'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
for (int c; (c = get_opt ()) != -1; )
switch (c) {
diff --git a/examples/C++NPv2/TP_Logging_Server.h b/examples/C++NPv2/TP_Logging_Server.h
index 9c4869cdcee..4e669e6558d 100644
--- a/examples/C++NPv2/TP_Logging_Server.h
+++ b/examples/C++NPv2/TP_Logging_Server.h
@@ -13,7 +13,7 @@
#include "ace/Task.h"
#include "Logging_Acceptor.h"
#include "Logging_Event_Handler.h"
-#include "Reactor_Logging_Server_T.h"
+#include "Reactor_Logging_Server.h"
#include "TPLS_export.h"
class TP_Logging_Task : public ACE_Task<ACE_SYNCH> {
@@ -107,7 +107,7 @@ public:
ACE_Auto_Array_Ptr<char *> char_argv (array);
for (i = 0; i < argc; ++i)
- char_argv[i] = ACE::strnew (ACE_TEXT_ALWAYS_CHAR (argv[i]));
+ char_argv[i] = ACE::strnew (ACE_TEXT_TO_CHAR_IN (argv[i]));
ACE_NEW_NORETURN
(logging_dispatcher_,
TP_Logging_Server::LOGGING_DISPATCHER
diff --git a/examples/C++NPv2/TP_Reactor_Logging_Server.cpp b/examples/C++NPv2/TP_Reactor_Logging_Server.cpp
index 0caf145a114..2480061556e 100644
--- a/examples/C++NPv2/TP_Reactor_Logging_Server.cpp
+++ b/examples/C++NPv2/TP_Reactor_Logging_Server.cpp
@@ -20,7 +20,7 @@
# include <string>
#endif
-#include "Reactor_Logging_Server_T.h"
+#include "Reactor_Logging_Server.h"
#include "Logging_Acceptor_Ex.h"
typedef Reactor_Logging_Server<Logging_Acceptor_Ex>
@@ -93,7 +93,7 @@ static ACE_THR_FUNC_RETURN controller (void *arg) {
}
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
const size_t N_THREADS = 4;
ACE_TP_Reactor tp_reactor;
diff --git a/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp b/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp
index 2174cd20412..ea908b57e74 100644
--- a/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp
+++ b/examples/C++NPv2/WFMO_Reactor_Logging_Server.cpp
@@ -13,7 +13,7 @@
#include "ace/Thread_Manager.h"
#include "ace/OS_NS_string.h"
-#include "Reactor_Logging_Server_T.h"
+#include "Reactor_Logging_Server.h"
#include "Logging_Acceptor_Ex.h"
#include "Logging_Event_Handler_Ex.h"
@@ -119,7 +119,7 @@ typedef Reactor_Logging_Server<Logging_Acceptor_WFMO>
Server_Logging_Daemon;
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
const size_t N_THREADS = 4;
ACE_WFMO_Reactor wfmo_reactor;
@@ -138,7 +138,7 @@ int main (int argc, char *argv[])
}
#else /* !ACE_WIN32 */
-int main (int, char *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
return 0;
}
diff --git a/examples/C++NPv2/display_logfile.cpp b/examples/C++NPv2/display_logfile.cpp
index 40d4ddbc45f..08fec02f40d 100644
--- a/examples/C++NPv2/display_logfile.cpp
+++ b/examples/C++NPv2/display_logfile.cpp
@@ -24,13 +24,12 @@ class Logrec_Module : public ACE_Module<ACE_SYNCH>
{
public:
Logrec_Module (const ACE_TCHAR *name)
- {
- this->open (name,
- &task_, // Initialize writer-side task.
- 0, // Ignore reader-side task.
- 0,
- ACE_Module<ACE_SYNCH>::M_DELETE_READER);
- }
+ : ACE_Module<ACE_SYNCH>
+ (name,
+ &task_, // Initialize writer-side task.
+ 0, // Ignore reader-side task.
+ 0,
+ ACE_Module<ACE_SYNCH>::M_DELETE_READER) {}
private:
TASK task_;
};
@@ -195,14 +194,13 @@ class Logrec_Reader_Module : public ACE_Module<ACE_SYNCH>
{
public:
Logrec_Reader_Module (const ACE_TString &filename)
- : task_ (filename)
- {
- this->open (ACE_TEXT ("Logrec Reader"),
- &task_, // Initialize writer-side.
- 0, // Ignore reader-side.
- 0,
- ACE_Module<ACE_SYNCH>::M_DELETE_READER);
- }
+ : ACE_Module<ACE_SYNCH>
+ (ACE_TEXT ("Logrec Reader"),
+ &task_, // Initialize writer-side.
+ 0, // Ignore reader-side.
+ 0,
+ ACE_Module<ACE_SYNCH>::M_DELETE_READER),
+ task_ (filename) {}
private:
Logrec_Reader task_;
};
@@ -277,7 +275,7 @@ public:
char timestamp[26]; // Max size of ctime_r() string.
time_t time_secs (secs);
ACE_OS::ctime_r (&time_secs, timestamp_t, sizeof timestamp_t);
- ACE_OS::strcpy (timestamp, ACE_TEXT_ALWAYS_CHAR (timestamp_t));
+ ACE_OS::strcpy (timestamp, ACE_TEXT_TO_CHAR_IN (timestamp_t));
mblk->size (26); // Max size of ctime_r() string.
mblk->reset ();
timestamp[19] = '\0'; // NUL-terminate after the time.
diff --git a/examples/Connection/blocking/Connection_Blocking.mpc b/examples/Connection/blocking/Connection_Blocking.mpc
index 758e2bfbf95..01cf9ceaf10 100644
--- a/examples/Connection/blocking/Connection_Blocking.mpc
+++ b/examples/Connection/blocking/Connection_Blocking.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*acceptor) : aceexe {
- avoids += ace_for_tao
exename = acceptor
Source_Files {
SPIPE-acceptor.cpp
@@ -11,7 +10,6 @@ project(*acceptor) : aceexe {
}
project(*connector) : aceexe {
- avoids += ace_for_tao
exename = connector
Source_Files {
SPIPE-connector.cpp
diff --git a/examples/Connection/blocking/SPIPE-acceptor.cpp b/examples/Connection/blocking/SPIPE-acceptor.cpp
index 5f8810a076f..47489d48c12 100644
--- a/examples/Connection/blocking/SPIPE-acceptor.cpp
+++ b/examples/Connection/blocking/SPIPE-acceptor.cpp
@@ -123,7 +123,7 @@ IPC_Server::parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_LOG_MSG->open (argv[0]);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("ut:r:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("ut:r:"));
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/examples/Connection/blocking/SPIPE-connector.cpp b/examples/Connection/blocking/SPIPE-connector.cpp
index be88aa7f668..f3c0cf61266 100644
--- a/examples/Connection/blocking/SPIPE-connector.cpp
+++ b/examples/Connection/blocking/SPIPE-connector.cpp
@@ -187,7 +187,7 @@ IPC_Client::parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_LOG_MSG->open (argv[0]);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("ui:r:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("ui:r:"));
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/examples/Connection/blocking/test_spipe_acceptor.cpp b/examples/Connection/blocking/test_spipe_acceptor.cpp
index 549690ebf43..83003eb1c85 100644
--- a/examples/Connection/blocking/test_spipe_acceptor.cpp
+++ b/examples/Connection/blocking/test_spipe_acceptor.cpp
@@ -25,7 +25,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_DEBUG ((LM_INFO,
ACE_TEXT ("Asynchronous IO is unsupported.\n")));
diff --git a/examples/Connection/misc/Connection_Misc.mpc b/examples/Connection/misc/Connection_Misc.mpc
index a960e604338..8e10826ad51 100644
--- a/examples/Connection/misc/Connection_Misc.mpc
+++ b/examples/Connection/misc/Connection_Misc.mpc
@@ -9,9 +9,8 @@ project (*Handler) : aceexe {
}
project (*test_upipe) : aceexe {
- avoids += ace_for_tao
exename = test_upipe
Source_Files {
test_upipe.cpp
}
-}
+} \ No newline at end of file
diff --git a/examples/Connection/misc/test_upipe.cpp b/examples/Connection/misc/test_upipe.cpp
index e986ba069cb..6db23223d6b 100644
--- a/examples/Connection/misc/test_upipe.cpp
+++ b/examples/Connection/misc/test_upipe.cpp
@@ -139,7 +139,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"your platform does not support threads\n"),
diff --git a/examples/Connection/misc/test_upipe.h b/examples/Connection/misc/test_upipe.h
index 89349760e9c..9c3b50bc1c3 100644
--- a/examples/Connection/misc/test_upipe.h
+++ b/examples/Connection/misc/test_upipe.h
@@ -34,7 +34,7 @@ public:
ssize_t n;
while ((n = this->peer ().recv (buf, sizeof buf)) > 0)
- ::write (1, buf, n);
+ ::write (1, buf, n);
return 0;
}
@@ -66,7 +66,7 @@ public:
ssize_t n;
while ((n = ACE_OS::read (ACE_STDIN, buf, sizeof buf)) > 0)
- this->peer ().send (buf, n);
+ this->peer ().send (buf, n);
this->peer ().close ();
return 0;
diff --git a/examples/Connection/non_blocking/Connection_Non_Blocking.mpc b/examples/Connection/non_blocking/Connection_Non_Blocking.mpc
index de9ecaea5e0..1b56fdc76f8 100644
--- a/examples/Connection/non_blocking/Connection_Non_Blocking.mpc
+++ b/examples/Connection/non_blocking/Connection_Non_Blocking.mpc
@@ -18,7 +18,6 @@ project (*SockServer) : aceexe {
}
project (*LSockClient) : aceexe {
- avoids += ace_for_tao
exename = lsock_client
Source_Files {
CPP-connector.cpp
@@ -27,7 +26,6 @@ project (*LSockClient) : aceexe {
}
project (*LSockServer) : aceexe {
- avoids += ace_for_tao
exename = lsock_server
Source_Files {
CPP-acceptor.cpp
@@ -65,4 +63,4 @@ project (*TLIServer) : aceexe {
CPP-acceptor.cpp
test_tli_acceptor.cpp
}
-}
+} \ No newline at end of file
diff --git a/examples/Connection/non_blocking/test_tli_acceptor.cpp b/examples/Connection/non_blocking/test_tli_acceptor.cpp
index 5654f62ad74..ccff6bc8134 100644
--- a/examples/Connection/non_blocking/test_tli_acceptor.cpp
+++ b/examples/Connection/non_blocking/test_tli_acceptor.cpp
@@ -16,7 +16,7 @@ typedef Svc_Handler<ACE_TLI_STREAM> SVC_HANDLER;
typedef IPC_Server<SVC_HANDLER, ACE_TLI_ACCEPTOR> IPC_SERVER;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Perform Service_Config initializations
ACE_Service_Config daemon (argv[0]);
diff --git a/examples/Connection/non_blocking/test_tli_connector.cpp b/examples/Connection/non_blocking/test_tli_connector.cpp
index afb2636d7d5..9b46c130cbb 100644
--- a/examples/Connection/non_blocking/test_tli_connector.cpp
+++ b/examples/Connection/non_blocking/test_tli_connector.cpp
@@ -14,7 +14,7 @@ typedef Peer_Handler<ACE_TLI_STREAM> PEER_HANDLER;
typedef IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR> IPC_CLIENT;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
// Perform Service_Config initializations
ACE_Service_Config daemon (argv[0]);
diff --git a/examples/DLL/Newsweek.cpp b/examples/DLL/Newsweek.cpp
index 5a48690b350..5bb26def20e 100644
--- a/examples/DLL/Newsweek.cpp
+++ b/examples/DLL/Newsweek.cpp
@@ -27,18 +27,11 @@ Newsweek::operator new (size_t bytes, const ACE_nothrow_t&)
{
return ::new (ACE_nothrow) char[bytes];
}
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
-void
-Newsweek::operator delete (void *p, const ACE_nothrow_t&) throw ()
-{
- delete [] static_cast <char *> (p);
-}
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif
void
Newsweek::operator delete (void *ptr)
{
- delete [] static_cast <char *> (ptr);
+ delete [] ((char *) ptr);
}
// Returns the Newsweek class pointer.
@@ -49,7 +42,7 @@ extern "C" ACE_Svc_Export Magazine *create_magazine (void);
Magazine *
create_magazine (void)
{
- Magazine *mag = 0;
+ Magazine *mag;
ACE_NEW_RETURN (mag, Newsweek, 0);
return mag;
}
diff --git a/examples/DLL/Newsweek.h b/examples/DLL/Newsweek.h
index 79355e74cbd..9f53b8c190a 100644
--- a/examples/DLL/Newsweek.h
+++ b/examples/DLL/Newsweek.h
@@ -49,9 +49,6 @@ public:
#if defined (ACE_HAS_NEW_NOTHROW)
// Overloaded new operator, nothrow_t variant.
void *operator new (size_t bytes, const ACE_nothrow_t&);
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
- void operator delete (void *p, const ACE_nothrow_t&) throw ();
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif
void operator delete (void *ptr);
};
diff --git a/examples/DLL/Today.cpp b/examples/DLL/Today.cpp
index b80bfff2b0a..036a7c82ccc 100644
--- a/examples/DLL/Today.cpp
+++ b/examples/DLL/Today.cpp
@@ -28,18 +28,11 @@ Today::operator new (size_t bytes, const ACE_nothrow_t&)
{
return ::new (ACE_nothrow) char[bytes];
}
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
-void
-Today::operator delete (void *p, const ACE_nothrow_t&) throw ()
-{
- delete [] static_cast <char *> (p);
-}
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif
void
Today::operator delete (void *ptr)
{
- delete [] static_cast <char *> (ptr);
+ delete [] ((char *) ptr);
}
// Returns the pointer to the Today class.
@@ -49,7 +42,7 @@ extern "C" ACE_Svc_Export Magazine *create_magazine (void);
Magazine *create_magazine (void)
{
- Magazine *mag = 0;
+ Magazine *mag;
ACE_NEW_RETURN (mag, Today, 0);
return mag;
}
diff --git a/examples/DLL/Today.h b/examples/DLL/Today.h
index 00c2d4b9c04..19cce2317b5 100644
--- a/examples/DLL/Today.h
+++ b/examples/DLL/Today.h
@@ -50,9 +50,6 @@ public:
#if defined (ACE_HAS_NEW_NOTHROW)
// Overloaded new operator, nothrow_t variant.
void *operator new (size_t bytes, const ACE_nothrow_t&);
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
- void operator delete (void *p, const ACE_nothrow_t&) throw ();
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif
void operator delete (void *ptr);
};
diff --git a/examples/IPC_SAP/DEV_SAP/reader/dev_sap_reader.mpc b/examples/IPC_SAP/DEV_SAP/reader/dev_sap_reader.mpc
index a6535c82e82..a213dbd8942 100644
--- a/examples/IPC_SAP/DEV_SAP/reader/dev_sap_reader.mpc
+++ b/examples/IPC_SAP/DEV_SAP/reader/dev_sap_reader.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = reader
Source_Files {
reader.cpp
diff --git a/examples/IPC_SAP/DEV_SAP/reader/reader.cpp b/examples/IPC_SAP/DEV_SAP/reader/reader.cpp
index b0ecbc77c4d..a6f81429dc4 100644
--- a/examples/IPC_SAP/DEV_SAP/reader/reader.cpp
+++ b/examples/IPC_SAP/DEV_SAP/reader/reader.cpp
@@ -2,6 +2,7 @@
#include "ace/DEV_Addr.h"
#include "ace/DEV_Connector.h"
+#include "ace/DEV_IO.h"
#include "ace/TTY_IO.h"
ACE_RCSID(reader, reader, "$Id$")
@@ -26,22 +27,13 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_TTY_IO::Serial_Params myparams;
myparams.baudrate = 9600;
- myparams.xonlim = 0;
- myparams.xofflim = 0;
- myparams.readmincharacters = 0;
- myparams.readtimeoutmsec = 10000;
- myparams.parityenb = true;
+ myparams.parityenb = 1;
myparams.paritymode = "EVEN";
- myparams.ctsenb = false;
- myparams.rtsenb = false;
- myparams.xinenb = false;
- myparams.xoutenb = false;
- myparams.modem = false;
- myparams.rcvenb = true;
- myparams.dsrenb = false;
- myparams.dtrdisable = false;
myparams.databits = 8;
myparams.stopbits = 1;
+ myparams.readtimeoutmsec = 10000;
+ myparams.ctsenb = 0;
+ myparams.rcvenb = 1;
if (read_dev.control (ACE_TTY_IO::SETPARAMS,
&myparams) == -1)
diff --git a/examples/IPC_SAP/DEV_SAP/writer/dev_sap_writer.mpc b/examples/IPC_SAP/DEV_SAP/writer/dev_sap_writer.mpc
index 75486584b6d..dc5d3c39ad7 100644
--- a/examples/IPC_SAP/DEV_SAP/writer/dev_sap_writer.mpc
+++ b/examples/IPC_SAP/DEV_SAP/writer/dev_sap_writer.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = writer
Source_Files {
writer.cpp
diff --git a/examples/IPC_SAP/DEV_SAP/writer/writer.cpp b/examples/IPC_SAP/DEV_SAP/writer/writer.cpp
index 0071d709954..b22b40dfe05 100644
--- a/examples/IPC_SAP/DEV_SAP/writer/writer.cpp
+++ b/examples/IPC_SAP/DEV_SAP/writer/writer.cpp
@@ -25,22 +25,13 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_TTY_IO::Serial_Params myparams;
myparams.baudrate = 9600;
- myparams.xonlim = 0;
- myparams.xofflim = 0;
- myparams.readmincharacters = 0;
- myparams.readtimeoutmsec = 10000;
- myparams.parityenb = true;
+ myparams.parityenb = 1;
myparams.paritymode = "EVEN";
- myparams.ctsenb = false;
- myparams.rtsenb = false;
- myparams.xinenb = false;
- myparams.xoutenb = false;
- myparams.modem = false;
- myparams.rcvenb = true;
- myparams.dsrenb = false;
- myparams.dtrdisable = false;
myparams.databits = 8;
myparams.stopbits = 1;
+ myparams.readtimeoutmsec = 200;
+ myparams.ctsenb = 0;
+ myparams.rcvenb = 1;
if (write_dev.control (ACE_TTY_IO::SETPARAMS,
&myparams) == -1)
diff --git a/examples/IPC_SAP/FIFO_SAP/fifo_sap.mpc b/examples/IPC_SAP/FIFO_SAP/fifo_sap.mpc
index 1e6d04447e5..7d836016858 100644
--- a/examples/IPC_SAP/FIFO_SAP/fifo_sap.mpc
+++ b/examples/IPC_SAP/FIFO_SAP/fifo_sap.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*client) : aceexe {
- avoids += ace_for_tao
exename = FIFO-client
Source_Files {
FIFO-client.cpp
@@ -10,7 +9,6 @@ project(*client) : aceexe {
}
project(*server) : aceexe {
- avoids += ace_for_tao
exename = FIFO-server
Source_Files {
FIFO-server.cpp
@@ -32,7 +30,6 @@ project(*Msg_Server) : aceexe {
}
project(*test) : aceexe {
- avoids += ace_for_tao
exename = FIFO-test
Source_Files {
FIFO-test.cpp
diff --git a/examples/IPC_SAP/FILE_SAP/file_sap_client.mpc b/examples/IPC_SAP/FILE_SAP/file_sap_client.mpc
index 24f9a2b3a61..634c32de441 100644
--- a/examples/IPC_SAP/FILE_SAP/file_sap_client.mpc
+++ b/examples/IPC_SAP/FILE_SAP/file_sap_client.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = client
Source_Files {
client.cpp
diff --git a/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp
index e4cf8997857..082dfb1f6dc 100644
--- a/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp
@@ -49,7 +49,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
// Determine IP address of the server.
- if ((hp = ACE_OS::gethostbyname (ACE_TEXT_ALWAYS_CHAR(host))) == 0)
+ if ((hp = ACE_OS::gethostbyname (ACE_TEXT_TO_CHAR_IN(host))) == 0)
ACE_OS::perror (ACE_TEXT("gethostbyname")), ACE_OS::exit (1);
// Set up the address information to contact the server.
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
index f681defd2f9..4d43a474c56 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp
@@ -115,7 +115,7 @@ Options::read (void *buf, size_t len, size_t &iteration)
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("2h:i:m:p:q:st:T:"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("2h:i:m:p:q:st:T:"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
index aa42b496efa..3399229e37d 100644
--- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
+++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp
@@ -163,7 +163,7 @@ Options::Options (void)
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("p:r:v"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("p:r:v"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
diff --git a/examples/IPC_SAP/SOCK_SAP/sock_sap.mpc b/examples/IPC_SAP/SOCK_SAP/sock_sap.mpc
index 814280a515c..6ea1307c4fb 100644
--- a/examples/IPC_SAP/SOCK_SAP/sock_sap.mpc
+++ b/examples/IPC_SAP/SOCK_SAP/sock_sap.mpc
@@ -23,7 +23,6 @@ project(*CPP_inclient) : aceexe {
}
project(*CPP_inserver) : aceexe {
- avoids += ace_for_tao
exename = CPP-inserver
Source_Files {
CPP-inserver.cpp
@@ -31,7 +30,6 @@ project(*CPP_inserver) : aceexe {
}
project(*CPP_memclient) : aceexe {
- avoids += ace_for_tao
exename = CPP-memclient
Source_Files {
CPP-memclient.cpp
@@ -39,7 +37,6 @@ project(*CPP_memclient) : aceexe {
}
project(*CPP_memserver) : aceexe {
- avoids += ace_for_tao
exename = CPP-memserver
Source_Files {
CPP-memserver.cpp
@@ -47,7 +44,6 @@ project(*CPP_memserver) : aceexe {
}
project(*FD_unclient) : aceexe {
- avoids += ace_for_tao
exename = FD-unclient
Source_Files {
FD-unclient.cpp
@@ -55,7 +51,6 @@ project(*FD_unclient) : aceexe {
}
project(*CPP_unclient) : aceexe {
- avoids += ace_for_tao
exename = CPP-unclient
Source_Files {
CPP-unclient.cpp
@@ -63,7 +58,6 @@ project(*CPP_unclient) : aceexe {
}
project(*CPP_unserver) : aceexe {
- avoids += ace_for_tao
exename = CPP-unserver
Source_Files {
CPP-unserver.cpp
diff --git a/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp b/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp
index d647b910274..0008c4a1b58 100644
--- a/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp
+++ b/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp
@@ -105,7 +105,7 @@ Options::read (void *buf, size_t len, size_t &iteration)
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("2h:i:m:p:q:sT:"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("2h:i:m:p:q:sT:"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
@@ -127,7 +127,7 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
break;
case 'q':
ACE_OS::strncpy (this->quit_string_,
- ACE_TEXT_ALWAYS_CHAR (getopt.opt_arg ()),
+ ACE_TEXT_TO_CHAR_IN (getopt.opt_arg ()),
QUIT_STRING_SIZE);
break;
case 's':
diff --git a/examples/IPC_SAP/SSL_SAP/SSL-client.cpp b/examples/IPC_SAP/SSL_SAP/SSL-client.cpp
index 6539de3b500..6a6166ee1b8 100644
--- a/examples/IPC_SAP/SSL_SAP/SSL-client.cpp
+++ b/examples/IPC_SAP/SSL_SAP/SSL-client.cpp
@@ -110,7 +110,7 @@ Options::read (void *buf, size_t len, size_t &iteration)
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("2h:i:m:p:q:st:T:"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("2h:i:m:p:q:st:T:"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
@@ -132,7 +132,7 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
break;
case 'q':
ACE_OS::strncpy (this->quit_string_,
- ACE_TEXT_ALWAYS_CHAR (getopt.opt_arg ()),
+ ACE_TEXT_TO_CHAR_IN (getopt.opt_arg ()),
QUIT_STRING_SIZE);
break;
case 's':
diff --git a/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp b/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp
index b749c45f7f1..b09bf3ad326 100644
--- a/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp
+++ b/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp
@@ -173,7 +173,7 @@ Options::Options (void)
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("p:r:v"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("p:r:v"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
diff --git a/examples/IPC_SAP/SSL_SAP/SSL-server-poll.cpp b/examples/IPC_SAP/SSL_SAP/SSL-server-poll.cpp
index 83333ccc357..00ab3fe7e83 100644
--- a/examples/IPC_SAP/SSL_SAP/SSL-server-poll.cpp
+++ b/examples/IPC_SAP/SSL_SAP/SSL-server-poll.cpp
@@ -5,7 +5,6 @@
// single-threaded concurrent server. This server program can be
// driven by the oneway test mode of SSL-client.cpp.
-#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_unistd.h"
#include "ace/Time_Value.h"
#include "ace/SSL/SSL_SOCK_Acceptor.h"
@@ -170,7 +169,7 @@ handle_connections (ACE_SSL_SOCK_Acceptor &peer_acceptor,
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
u_short port = ACE_DEFAULT_SERVER_PORT + 1;
@@ -204,7 +203,7 @@ main (int, char *[])
}
#else
#include "ace/OS_NS_stdio.h"
-int main (int, char *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_OS::fprintf (stderr, "This feature is not supported\n");
return 0;
diff --git a/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp b/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp
index 22535160cf0..6be3ce47b9e 100644
--- a/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp
+++ b/examples/IPC_SAP/SSL_SAP/SSL-server-simple.cpp
@@ -355,7 +355,7 @@ run_event_loop (u_short port)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
u_short port = ACE_DEFAULT_SERVER_PORT;
diff --git a/examples/IPC_SAP/SSL_SAP/SSL-server.cpp b/examples/IPC_SAP/SSL_SAP/SSL-server.cpp
index 8563067af03..c1f173cd72f 100644
--- a/examples/IPC_SAP/SSL_SAP/SSL-server.cpp
+++ b/examples/IPC_SAP/SSL_SAP/SSL-server.cpp
@@ -414,7 +414,7 @@ run_event_loop (u_short port)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_SSL_Context *context = ACE_SSL_Context::instance ();
diff --git a/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp b/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp
index 6990763a8b0..35dda19f05e 100644
--- a/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp
+++ b/examples/IPC_SAP/TLI_SAP/CPP-ATM-client.cpp
@@ -11,7 +11,7 @@ ACE_RCSID(TLI_SAP, CPP_ATM_client, "$Id$")
/* ACE_XTI/ATM Client */
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (argc < 2)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp b/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp
index d4d3dec813c..5f45d465b49 100644
--- a/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp
+++ b/examples/IPC_SAP/TLI_SAP/CPP-ATM-server.cpp
@@ -10,7 +10,7 @@ ACE_RCSID(TLI_SAP, CPP_ATM_server, "$Id$")
// ACE_TLI Server
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Time_Value timeout (ACE_DEFAULT_TIMEOUT);
diff --git a/examples/IPC_SAP/TLI_SAP/CPP-client.cpp b/examples/IPC_SAP/TLI_SAP/CPP-client.cpp
index b027315ef26..b955faa75f0 100644
--- a/examples/IPC_SAP/TLI_SAP/CPP-client.cpp
+++ b/examples/IPC_SAP/TLI_SAP/CPP-client.cpp
@@ -13,7 +13,7 @@ ACE_RCSID(TLI_SAP, CPP_client, "$Id$")
/* ACE_TLI Client */
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
const char *host = argc > 1 ? argv[1] : ACE_DEFAULT_SERVER_HOST;
u_short r_port = argc > 2 ? ACE_OS::atoi (argv[2]) : ACE_DEFAULT_SERVER_PORT;
diff --git a/examples/IPC_SAP/TLI_SAP/CPP-server.cpp b/examples/IPC_SAP/TLI_SAP/CPP-server.cpp
index 4ed8c0bf643..a85070ccb9e 100644
--- a/examples/IPC_SAP/TLI_SAP/CPP-server.cpp
+++ b/examples/IPC_SAP/TLI_SAP/CPP-server.cpp
@@ -11,7 +11,7 @@ ACE_RCSID(TLI_SAP, CPP_server, "$Id$")
// ACE_TLI Server
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
u_short port = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_SERVER_PORT;
ACE_Time_Value timeout (argc > 2 ? ACE_OS::atoi (argv[2]) : ACE_DEFAULT_TIMEOUT);
diff --git a/examples/IPC_SAP/TLI_SAP/db-client.cpp b/examples/IPC_SAP/TLI_SAP/db-client.cpp
index 51858b5f0cc..9051db43c21 100644
--- a/examples/IPC_SAP/TLI_SAP/db-client.cpp
+++ b/examples/IPC_SAP/TLI_SAP/db-client.cpp
@@ -12,7 +12,7 @@ ACE_RCSID(TLI_SAP, db_client, "$Id$")
const int MAXLINE = 255;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (argc < 2)
ACE_ERROR_RETURN ((LM_ERROR,
diff --git a/examples/IPC_SAP/TLI_SAP/db-server.cpp b/examples/IPC_SAP/TLI_SAP/db-server.cpp
index 145c4a13ad0..3b547e154a3 100644
--- a/examples/IPC_SAP/TLI_SAP/db-server.cpp
+++ b/examples/IPC_SAP/TLI_SAP/db-server.cpp
@@ -86,7 +86,7 @@ lookup_name (ACE_HANDLE handle)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
u_short port = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_SERVER_PORT;
ACE_INET_Addr l_addr (port);
diff --git a/examples/IPC_SAP/TLI_SAP/ftp-client.cpp b/examples/IPC_SAP/TLI_SAP/ftp-client.cpp
index f12da575039..c544641fd5b 100644
--- a/examples/IPC_SAP/TLI_SAP/ftp-client.cpp
+++ b/examples/IPC_SAP/TLI_SAP/ftp-client.cpp
@@ -12,7 +12,7 @@ ACE_RCSID(TLI_SAP, ftp_client, "$Id$")
#if defined (ACE_HAS_TLI)
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (argc < 2)
ACE_OS::fprintf (stderr, "Usage: %s filename [server-host port-number]\n", argv[0]), ACE_OS::exit (1);
diff --git a/examples/IPC_SAP/TLI_SAP/ftp-server.cpp b/examples/IPC_SAP/TLI_SAP/ftp-server.cpp
index 23596a84dd4..601a90987ff 100644
--- a/examples/IPC_SAP/TLI_SAP/ftp-server.cpp
+++ b/examples/IPC_SAP/TLI_SAP/ftp-server.cpp
@@ -42,7 +42,7 @@ read_file (void *fd)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
u_short port = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_SERVER_PORT;
ACE_TLI_Acceptor server;
diff --git a/examples/IPC_SAP/UPIPE_SAP/UPIPE_SAP.mpc b/examples/IPC_SAP/UPIPE_SAP/UPIPE_SAP.mpc
index d34d8671735..cb90595e2ae 100644
--- a/examples/IPC_SAP/UPIPE_SAP/UPIPE_SAP.mpc
+++ b/examples/IPC_SAP/UPIPE_SAP/UPIPE_SAP.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*ex1) : aceexe {
- avoids += ace_for_tao
exename = ex1
Source_Files {
ex1.cpp
@@ -10,7 +9,6 @@ project(*ex1) : aceexe {
}
project(*ex2) : aceexe {
- avoids += ace_for_tao
exename = ex2
Source_Files {
ex2.cpp
@@ -18,7 +16,6 @@ project(*ex2) : aceexe {
}
project(*ex3) : aceexe {
- avoids += ace_for_tao
exename = ex3
Source_Files {
ex3.cpp
diff --git a/examples/Logger/Acceptor-server/server_loggerd.cpp b/examples/Logger/Acceptor-server/server_loggerd.cpp
index 159bcdf93ce..425f040ccf5 100644
--- a/examples/Logger/Acceptor-server/server_loggerd.cpp
+++ b/examples/Logger/Acceptor-server/server_loggerd.cpp
@@ -42,7 +42,7 @@ Options::parse_args (int argc, ACE_TCHAR *argv[])
{
this->port_ = ACE_DEFAULT_SERVER_PORT;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -138,9 +138,9 @@ Logging_Handler::handle_input (ACE_HANDLE)
{
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) ")));
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- lp.print (ACE_TEXT_CHAR_TO_TCHAR (this->peer_name_), 1, cerr);
+ lp.print (ACE_TEXT_TO_TCHAR_IN (this->peer_name_), 1, cerr);
#else
- lp.print (ACE_TEXT_CHAR_TO_TCHAR (this->peer_name_), 1, stderr);
+ lp.print (ACE_TEXT_TO_TCHAR_IN (this->peer_name_), 1, stderr);
#endif
}
else
diff --git a/examples/Logger/simple-server/Logging_Handler.cpp b/examples/Logger/simple-server/Logging_Handler.cpp
index 111a26248fc..2ca0b8558a7 100644
--- a/examples/Logger/simple-server/Logging_Handler.cpp
+++ b/examples/Logger/simple-server/Logging_Handler.cpp
@@ -87,7 +87,7 @@ Logging_Handler::handle_input (ACE_HANDLE)
if (lp.length () == n)
{
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) ")));
- lp.print (ACE_TEXT_CHAR_TO_TCHAR (this->host_name_), 1);
+ lp.print (ACE_TEXT_TO_TCHAR_IN (this->host_name_), 1);
}
else
ACE_ERROR ((LM_ERROR,
diff --git a/examples/Logger/simple-server/server_loggerd.cpp b/examples/Logger/simple-server/server_loggerd.cpp
index 49981dc92ff..eb87b2bef7b 100644
--- a/examples/Logger/simple-server/server_loggerd.cpp
+++ b/examples/Logger/simple-server/server_loggerd.cpp
@@ -41,7 +41,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_INET_Addr addr (PORT);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Map_Manager/Map_Manager.mpc b/examples/Map_Manager/Map_Manager.mpc
deleted file mode 100644
index 3a433cab0d4..00000000000
--- a/examples/Map_Manager/Map_Manager.mpc
+++ /dev/null
@@ -1,6 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project: aceexe {
- exename = Map_Manager
-}
diff --git a/examples/Mem_Map/IO-tests/Mem_Map_IO_Tests.mpc b/examples/Mem_Map/IO-tests/Mem_Map_IO_Tests.mpc
index 6e2bcc9f3aa..ca6b8ee6622 100644
--- a/examples/Mem_Map/IO-tests/Mem_Map_IO_Tests.mpc
+++ b/examples/Mem_Map/IO-tests/Mem_Map_IO_Tests.mpc
@@ -2,5 +2,4 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
-}
+} \ No newline at end of file
diff --git a/examples/Mem_Map/IO-tests/test_io.cpp b/examples/Mem_Map/IO-tests/test_io.cpp
index b60401cc813..11cdceee15f 100644
--- a/examples/Mem_Map/IO-tests/test_io.cpp
+++ b/examples/Mem_Map/IO-tests/test_io.cpp
@@ -40,7 +40,7 @@ print_usage_and_die (void)
{
ACE_OS::fprintf (stderr, "usage: %s"
" [-i input_file] [-o output_file] [-n iteration_count] [-r]\n",
- ACE_TEXT_ALWAYS_CHAR (program_name));
+ ACE_TEXT_TO_CHAR_IN (program_name));
ACE_OS::exit (1);
}
@@ -59,7 +59,7 @@ cleanup (int = 0)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:n:o:r"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:n:o:r"));
for (int c; ((c = get_opt ()) != -1); )
switch (c)
@@ -162,7 +162,7 @@ run_tests (int iterations, FILE *input_fp, FILE *output_fp)
}
int
-main (int argc, ACE_TCHAR *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
program_name = ACE::basename (argv[0],
ACE_DIRECTORY_SEPARATOR_CHAR);
diff --git a/examples/Mem_Map/file-reverse/Mem_Map_File_Reverse.mpc b/examples/Mem_Map/file-reverse/Mem_Map_File_Reverse.mpc
index 368866edb73..d648c60da40 100644
--- a/examples/Mem_Map/file-reverse/Mem_Map_File_Reverse.mpc
+++ b/examples/Mem_Map/file-reverse/Mem_Map_File_Reverse.mpc
@@ -2,6 +2,5 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = file-reverse
-}
+} \ No newline at end of file
diff --git a/examples/Misc/Misc.mpc b/examples/Misc/Misc.mpc
index b0ed858efbd..86d377dc224 100644
--- a/examples/Misc/Misc.mpc
+++ b/examples/Misc/Misc.mpc
@@ -16,7 +16,6 @@ project(*test_get_opt) : aceexe {
}
project(*test_profile_timer) : aceexe {
- avoids += ace_for_tao
exename = test_profile_timer
Source_Files {
test_profile_timer.cpp
diff --git a/examples/Misc/test_get_opt.cpp b/examples/Misc/test_get_opt.cpp
index 3fd0a16ac80..dcb12e5eeff 100644
--- a/examples/Misc/test_get_opt.cpp
+++ b/examples/Misc/test_get_opt.cpp
@@ -1,6 +1,6 @@
// $Id$
-// Test the ACE_Get_Opt class.
+// Test the ACE_Get_Arg_Opt class.
#include "ace/OS_main.h"
#include "ace/Get_Opt.h"
@@ -11,7 +11,7 @@ ACE_RCSID(Misc, test_get_opt, "$Id$")
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("ab:cd:ef:gh:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("ab:cd:ef:gh:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/NT_Service/NT_Service.mpc b/examples/NT_Service/NT_Service.mpc
index 4fdbe054dfe..2adfe6f6feb 100644
--- a/examples/NT_Service/NT_Service.mpc
+++ b/examples/NT_Service/NT_Service.mpc
@@ -2,6 +2,5 @@
// $Id$
project : aceexe, winregistry {
- avoids += wince
exename = main
}
diff --git a/examples/NT_Service/main.cpp b/examples/NT_Service/main.cpp
index e450fe2395e..2c0093a7f6b 100644
--- a/examples/NT_Service/main.cpp
+++ b/examples/NT_Service/main.cpp
@@ -95,7 +95,7 @@ Process::print_usage_and_die (void)
void
Process::parse_args (int argc, ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:rskt:d"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:rskt:d"));
int c;
while ((c = get_opt ()) != -1)
diff --git a/examples/Naming/Naming.mpc b/examples/Naming/Naming.mpc
index f8365ffe07d..4d97e9282e8 100644
--- a/examples/Naming/Naming.mpc
+++ b/examples/Naming/Naming.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*multiple_contexts) : aceexe {
- avoids += ace_for_tao
exename = multiple_contexts
Source_Files {
test_multiple_contexts.cpp
@@ -10,7 +9,6 @@ project(*multiple_contexts) : aceexe {
}
project(*non_existent) : aceexe {
- avoids += ace_for_tao
exename = non_existent
Source_Files {
test_non_existent.cpp
@@ -18,7 +16,6 @@ project(*non_existent) : aceexe {
}
project(*writers) : aceexe {
- avoids += ace_for_tao
exename = writers
Source_Files {
test_writers.cpp
@@ -26,7 +23,6 @@ project(*writers) : aceexe {
}
project(*open) : aceexe {
- avoids += ace_for_tao
exename = open
Source_Files {
test_open.cpp
diff --git a/examples/OS/Process/OS_Process.mpc b/examples/OS/Process/OS_Process.mpc
index 082f7133301..6e40f8dfcd9 100644
--- a/examples/OS/Process/OS_Process.mpc
+++ b/examples/OS/Process/OS_Process.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*imore) : aceexe {
- avoids += ace_for_tao
exename = imore
Source_Files {
imore.cpp
diff --git a/examples/OS/Process/imore.cpp b/examples/OS/Process/imore.cpp
index 181254e0cb4..d9b645a3925 100644
--- a/examples/OS/Process/imore.cpp
+++ b/examples/OS/Process/imore.cpp
@@ -37,7 +37,7 @@
ACE_RCSID(Process, imore, "$Id$")
#if defined (ACE_WIN32)
-static const ACE_TCHAR *executable = ACE_TEXT("MORE.COM");
+static const char * executable = "MORE.COM";
static const ACE_TCHAR *rendezvous_dir = ACE_TEXT("c:/temp");
static const ACE_TCHAR *rendezvous_pfx = ACE_TEXT("imore");
#else
@@ -60,7 +60,7 @@ usage (void)
static int
parse_args (int argc, ACE_TCHAR **argv)
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("un"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("un"));
int c;
while ((c = get_opt ()) != -1)
diff --git a/examples/OS/Process/process.cpp b/examples/OS/Process/process.cpp
index de0f2db0d57..e5a30ce1c4a 100644
--- a/examples/OS/Process/process.cpp
+++ b/examples/OS/Process/process.cpp
@@ -58,7 +58,7 @@ static int run_wait = 0;
static int
parse_args (int argc, ACE_TCHAR **argv)
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("dlx:p:e:gastuw"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("dlx:p:e:gastuw"));
int c;
while ((c = get_opt ()) != -1)
diff --git a/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.cpp b/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.cpp
index 0ef3b353248..b36a4a79341 100644
--- a/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.cpp
+++ b/examples/QOS/Change_Receiver_FlowSpec/QoS_Util.cpp
@@ -36,7 +36,7 @@ QoS_Util::~QoS_Util (void)
int
QoS_Util::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, ACE_TEXT("m:n:p:P:c"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (this->argc_, this->argv_, ACE_TEXT("m:n:p:P:c"));
int c = 0;
while ((c = get_opts ()) != -1)
diff --git a/examples/QOS/Change_Sender_TSpec/QoS_Util.cpp b/examples/QOS/Change_Sender_TSpec/QoS_Util.cpp
index 0ef3b353248..b36a4a79341 100644
--- a/examples/QOS/Change_Sender_TSpec/QoS_Util.cpp
+++ b/examples/QOS/Change_Sender_TSpec/QoS_Util.cpp
@@ -36,7 +36,7 @@ QoS_Util::~QoS_Util (void)
int
QoS_Util::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, ACE_TEXT("m:n:p:P:c"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (this->argc_, this->argv_, ACE_TEXT("m:n:p:P:c"));
int c = 0;
while ((c = get_opts ()) != -1)
diff --git a/examples/QOS/Diffserv/QOS_Diffserv.mpc b/examples/QOS/Diffserv/QOS_Diffserv.mpc
index 3e66fbee34a..0b4258f9de1 100644
--- a/examples/QOS/Diffserv/QOS_Diffserv.mpc
+++ b/examples/QOS/Diffserv/QOS_Diffserv.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*client) : aceexe, qos {
- avoids += ace_for_tao
exename = client
requires += qos
Source_Files {
diff --git a/examples/QOS/Simple/QoS_Util.cpp b/examples/QOS/Simple/QoS_Util.cpp
index 0ef3b353248..b36a4a79341 100644
--- a/examples/QOS/Simple/QoS_Util.cpp
+++ b/examples/QOS/Simple/QoS_Util.cpp
@@ -36,7 +36,7 @@ QoS_Util::~QoS_Util (void)
int
QoS_Util::parse_args (void)
{
- ACE_Get_Opt get_opts (this->argc_, this->argv_, ACE_TEXT("m:n:p:P:c"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opts (this->argc_, this->argv_, ACE_TEXT("m:n:p:P:c"));
int c = 0;
while ((c = get_opts ()) != -1)
diff --git a/examples/Reactor/Dgram/Reactor_Dgram.mpc b/examples/Reactor/Dgram/Reactor_Dgram.mpc
index 1040aedc184..419261076cd 100644
--- a/examples/Reactor/Dgram/Reactor_Dgram.mpc
+++ b/examples/Reactor/Dgram/Reactor_Dgram.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*CO) : aceexe {
- avoids += ace_for_tao
exename = codgram
Source_Files {
CODgram.cpp
diff --git a/examples/Reactor/FIFO/Reactor_FIFO.mpc b/examples/Reactor/FIFO/Reactor_FIFO.mpc
index 072ec5412b8..6beaee6489b 100644
--- a/examples/Reactor/FIFO/Reactor_FIFO.mpc
+++ b/examples/Reactor/FIFO/Reactor_FIFO.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*client) : aceexe {
- avoids += ace_for_tao
exename = client
Source_Files {
client.cpp
@@ -10,7 +9,6 @@ project(*client) : aceexe {
}
project(*server) : aceexe {
- avoids += ace_for_tao
exename = server
Source_Files {
server.cpp
diff --git a/examples/Reactor/Misc/notification.cpp b/examples/Reactor/Misc/notification.cpp
index a04663b28ad..69705eee06a 100644
--- a/examples/Reactor/Misc/notification.cpp
+++ b/examples/Reactor/Misc/notification.cpp
@@ -29,8 +29,8 @@ class Thread_Handler : public ACE_Event_Handler
// thread exits it notifies the ACE_Reactor in the main thread
// using the ACE_Reactor's notification mechanism.
public:
- Thread_Handler (long delay,
- long interval,
+ Thread_Handler (int delay,
+ int interval,
size_t n_threads,
size_t max_iterations);
// Constructor.
@@ -109,9 +109,8 @@ Thread_Handler::~Thread_Handler (void)
ACE_Reactor::instance ()->cancel_timer (this);
}
-Thread_Handler::Thread_Handler (
- long delay,
- long interval,
+Thread_Handler::Thread_Handler (int delay,
+ int interval,
size_t n_threads,
size_t max_iterations)
: iterations_ (max_iterations)
@@ -291,7 +290,8 @@ Thread_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
}
int
-Thread_Handler::handle_timeout (const ACE_Time_Value &time, const void *)
+Thread_Handler::handle_timeout (const ACE_Time_Value &time,
+ const void *)
{
ACE_DEBUG ((LM_DEBUG,
"(%t) received timeout at (%u, %u), iterations = %d\n",
@@ -377,7 +377,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads must be supported to run this application\n"), -1);
diff --git a/examples/Reactor/Misc/pingpong.cpp b/examples/Reactor/Misc/pingpong.cpp
index 4689df8f730..bedfe046738 100644
--- a/examples/Reactor/Misc/pingpong.cpp
+++ b/examples/Reactor/Misc/pingpong.cpp
@@ -59,7 +59,7 @@ ACE_RCSID(Misc, pingpong, "$Id$")
class Ping_Pong : public ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>
{
public:
- Ping_Pong (char b[], ACE_HANDLE f);
+ Ping_Pong (const char* b, ACE_HANDLE f);
virtual ACE_HANDLE get_handle (void) const;
virtual int handle_input (ACE_HANDLE);
virtual int handle_output (ACE_HANDLE);
@@ -81,7 +81,7 @@ private:
// Open handle.
};
-Ping_Pong::Ping_Pong (char b[], ACE_HANDLE f)
+Ping_Pong::Ping_Pong (const char* b, ACE_HANDLE f)
: buflen_ (ACE_OS::strlen (b) + 1 + (2 * sizeof (int))),
pid_ (ACE_OS::getpid ()),
handle_ (f)
@@ -197,14 +197,14 @@ Ping_Pong::handle_timeout (const ACE_Time_Value &,
static ACE_TCHAR *string_name;
// Wait for 10 seconds and then shut down.
-static const ACE_Time_Value SHUTDOWN_TIME (10);
+static const int SHUTDOWN_TIME = 10;
static void
run_svc (ACE_HANDLE handle)
{
Ping_Pong *callback = 0;
ACE_NEW (callback,
- Ping_Pong (ACE_TEXT_ALWAYS_CHAR (string_name),
+ Ping_Pong (ACE_TEXT_TO_CHAR_IN (string_name),
handle));
ACE_Reactor reactor;
diff --git a/examples/Reactor/Misc/test_demuxing.cpp b/examples/Reactor/Misc/test_demuxing.cpp
index 6badd849757..621e5f72f1c 100644
--- a/examples/Reactor/Misc/test_demuxing.cpp
+++ b/examples/Reactor/Misc/test_demuxing.cpp
@@ -151,7 +151,7 @@ Sig_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
ACE_Reactor::end_event_loop ();
break;
default:
- ACE_ERROR_RETURN ((LM_ERROR, "invalid signal"), -1);
+ ACE_ASSERT (!"invalid signal");
break;
/* NOTREACHED */
}
diff --git a/examples/Reactor/Misc/test_reactors.cpp b/examples/Reactor/Misc/test_reactors.cpp
index 7af2c2709f8..4c129e486bf 100644
--- a/examples/Reactor/Misc/test_reactors.cpp
+++ b/examples/Reactor/Misc/test_reactors.cpp
@@ -195,7 +195,7 @@ template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>;
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
return 0;
diff --git a/examples/Reactor/Misc/test_signals_1.cpp b/examples/Reactor/Misc/test_signals_1.cpp
index b0410f572c1..8b4ae6f0d96 100644
--- a/examples/Reactor/Misc/test_signals_1.cpp
+++ b/examples/Reactor/Misc/test_signals_1.cpp
@@ -64,7 +64,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_Time_Value period (ACE_DEFAULT_TIMEOUT);
if (argc > 1)
- period.set (ACE_OS::atoi (argv[1]), 0);
+ period.set (ACE_OS::atoi (argv[1]));
// Set up the periodic interval timer.
if (ACE_Reactor::instance ()->schedule_timer
diff --git a/examples/Reactor/Misc/test_signals_2.cpp b/examples/Reactor/Misc/test_signals_2.cpp
index 466ab58482f..00886ed6549 100644
--- a/examples/Reactor/Misc/test_signals_2.cpp
+++ b/examples/Reactor/Misc/test_signals_2.cpp
@@ -282,7 +282,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"The HP C++ compiler is too lame to support this feature\n"),
diff --git a/examples/Reactor/Misc/test_time_value.cpp b/examples/Reactor/Misc/test_time_value.cpp
index a1c1c874b78..6557a0716de 100644
--- a/examples/Reactor/Misc/test_time_value.cpp
+++ b/examples/Reactor/Misc/test_time_value.cpp
@@ -23,7 +23,7 @@ operator<< (ostream &stream, const ACE_Time_Value &tv)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_Time_Value tv1;
ACE_Time_Value tv2 (2);
diff --git a/examples/Reactor/Multicast/Log_Wrapper.cpp b/examples/Reactor/Multicast/Log_Wrapper.cpp
index 055b57b9975..b3f84071a32 100644
--- a/examples/Reactor/Multicast/Log_Wrapper.cpp
+++ b/examples/Reactor/Multicast/Log_Wrapper.cpp
@@ -33,7 +33,7 @@ Log_Wrapper::open (const int port, const char *mcast_addr)
#if defined (ACE_LACKS_UTSNAME_T)
if ((host_info = ACE_OS::gethostbyname
- (ACE_TEXT_ALWAYS_CHAR(host_data.nodename))) == NULL)
+ (ACE_TEXT_TO_CHAR_IN(host_data.nodename))) == NULL)
#else
if ((host_info = ACE_OS::gethostbyname (host_data.nodename)) == NULL)
#endif
diff --git a/examples/Reactor/Multicast/client.cpp b/examples/Reactor/Multicast/client.cpp
index 25b18c2ae6c..3356540c880 100644
--- a/examples/Reactor/Multicast/client.cpp
+++ b/examples/Reactor/Multicast/client.cpp
@@ -32,7 +32,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
ACE_LOG_MSG->open (argv[0]);
// Start at argv[1]
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("m:ui:"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("m:ui:"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
diff --git a/examples/Reactor/Multicast/server.cpp b/examples/Reactor/Multicast/server.cpp
index 65e39b97d1a..c3cef116638 100644
--- a/examples/Reactor/Multicast/server.cpp
+++ b/examples/Reactor/Multicast/server.cpp
@@ -238,7 +238,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
}
#else
int
-main (int, char *argv[])
+ACE_TMAIN (int, ACE_TCHAR *argv[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"error: %s must be run on a platform that support IP multicast\n",
diff --git a/examples/Reactor/Ntalker/ntalker.cpp b/examples/Reactor/Ntalker/ntalker.cpp
index 80873ead1a9..88454d8ebd4 100644
--- a/examples/Reactor/Ntalker/ntalker.cpp
+++ b/examples/Reactor/Ntalker/ntalker.cpp
@@ -180,7 +180,7 @@ Handler::Handler (u_short udp_port,
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("i:u"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:u"));
int c;
diff --git a/examples/Reactor/Proactor/Aio_Platform_Test_C.cpp b/examples/Reactor/Proactor/Aio_Platform_Test_C.cpp
index be720fdef40..f68d91e7b6e 100644
--- a/examples/Reactor/Proactor/Aio_Platform_Test_C.cpp
+++ b/examples/Reactor/Proactor/Aio_Platform_Test_C.cpp
@@ -127,7 +127,7 @@ have_asynchio (void)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
if (have_asynchio () == 0)
printf ("Test successful\n");
diff --git a/examples/Reactor/Proactor/Proactor.mpc b/examples/Reactor/Proactor/Proactor.mpc
index c2c52207ca1..038babf2a74 100644
--- a/examples/Reactor/Proactor/Proactor.mpc
+++ b/examples/Reactor/Proactor/Proactor.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*cancel) : aceexe {
- avoids += ace_for_tao
exename = test_cancel
Source_Files {
test_cancel.cpp
@@ -10,7 +9,6 @@ project(*cancel) : aceexe {
}
project(*end_event_loops) : aceexe {
- avoids += ace_for_tao
exename = test_end_event_loop
Source_Files {
test_end_event_loop.cpp
@@ -18,7 +16,6 @@ project(*end_event_loops) : aceexe {
}
project(*multiple_loops) : aceexe {
- avoids += ace_for_tao
exename = test_multiple_loops
Source_Files {
test_multiple_loops.cpp
@@ -26,7 +23,6 @@ project(*multiple_loops) : aceexe {
}
project(*post_completions) : aceexe {
- avoids += ace_for_tao
exename = test_post_completions
Source_Files {
post_completions.cpp
@@ -34,7 +30,6 @@ project(*post_completions) : aceexe {
}
project(*proactor) : aceexe {
- avoids += ace_for_tao
exename = test_proactor
Source_Files {
test_proactor.cpp
@@ -42,7 +37,6 @@ project(*proactor) : aceexe {
}
project(*timeout) : aceexe {
- avoids += ace_for_tao
exename = test_timeout
Source_Files {
test_timeout.cpp
@@ -50,7 +44,6 @@ project(*timeout) : aceexe {
}
project(*udp_proactor) : aceexe {
- avoids += ace_for_tao
exename = test_udp_proactor
Source_Files {
test_udp_proactor.cpp
diff --git a/examples/Reactor/Proactor/post_completions.cpp b/examples/Reactor/Proactor/post_completions.cpp
index 0f22540b9cf..9a19ebafd2a 100644
--- a/examples/Reactor/Proactor/post_completions.cpp
+++ b/examples/Reactor/Proactor/post_completions.cpp
@@ -305,7 +305,7 @@ template class ACE_Atomic_Op_Ex <ACE_Thread_Mutex, size_t>;
#else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS && !ACE_POSIX_AIOCB_PROACTOR*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_DEBUG ((LM_DEBUG,
"This example cannot work with AIOCB_Proactor.\n"));
diff --git a/examples/Reactor/Proactor/simple_test_proactor.cpp b/examples/Reactor/Proactor/simple_test_proactor.cpp
index 1f4557d7df5..56cdecfe0cc 100644
--- a/examples/Reactor/Proactor/simple_test_proactor.cpp
+++ b/examples/Reactor/Proactor/simple_test_proactor.cpp
@@ -224,7 +224,7 @@ Simple_Tester::handle_write_file (const ACE_Asynch_Write_File::Result &result)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("f:d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("f:d:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/Proactor/test_aiocb.cpp b/examples/Reactor/Proactor/test_aiocb.cpp
index c9c0d280f1b..cb3a5139832 100644
--- a/examples/Reactor/Proactor/test_aiocb.cpp
+++ b/examples/Reactor/Proactor/test_aiocb.cpp
@@ -216,7 +216,7 @@ Test_Aio::do_aio (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
Test_Aio test_aio;
diff --git a/examples/Reactor/Proactor/test_aiocb_ace.cpp b/examples/Reactor/Proactor/test_aiocb_ace.cpp
index 17705de1f03..2ae450968ea 100644
--- a/examples/Reactor/Proactor/test_aiocb_ace.cpp
+++ b/examples/Reactor/Proactor/test_aiocb_ace.cpp
@@ -231,7 +231,7 @@ Test_Aio::do_aio (void)
}
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
ACE_UNUSED_ARG (argc);
diff --git a/examples/Reactor/Proactor/test_aiosig.cpp b/examples/Reactor/Proactor/test_aiosig.cpp
index 1746a10a49c..683753280e6 100644
--- a/examples/Reactor/Proactor/test_aiosig.cpp
+++ b/examples/Reactor/Proactor/test_aiosig.cpp
@@ -282,7 +282,7 @@ null_handler (int /* signal_number */,
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
if (test_aio_calls () == 0)
printf ("RT SIG test successful:\n"
diff --git a/examples/Reactor/Proactor/test_aiosig_ace.cpp b/examples/Reactor/Proactor/test_aiosig_ace.cpp
index 34c1b9b5ab2..acde4d6f90e 100644
--- a/examples/Reactor/Proactor/test_aiosig_ace.cpp
+++ b/examples/Reactor/Proactor/test_aiosig_ace.cpp
@@ -346,7 +346,7 @@ null_handler (int signal_number,
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
if (test_aio_calls () == 0)
printf ("RT SIG test successful:\n"
diff --git a/examples/Reactor/Proactor/test_cancel.cpp b/examples/Reactor/Proactor/test_cancel.cpp
index 99b3b139bdb..21749d71f17 100644
--- a/examples/Reactor/Proactor/test_cancel.cpp
+++ b/examples/Reactor/Proactor/test_cancel.cpp
@@ -184,7 +184,7 @@ Receiver::handle_read_stream (const ACE_Asynch_Read_Stream::Result &result)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("p:s:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("p:s:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/Proactor/test_end_event_loop.cpp b/examples/Reactor/Proactor/test_end_event_loop.cpp
index 700ece27072..945a7f5cff3 100644
--- a/examples/Reactor/Proactor/test_end_event_loop.cpp
+++ b/examples/Reactor/Proactor/test_end_event_loop.cpp
@@ -163,7 +163,7 @@ template class ACE_Task <ACE_NULL_SYNCH>;
#else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS && !ACE_POSIX_AIOCB_PROACTOR*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_DEBUG ((LM_DEBUG,
"This example cannot work with AIOCB_Proactor.\n"));
diff --git a/examples/Reactor/Proactor/test_multiple_loops.cpp b/examples/Reactor/Proactor/test_multiple_loops.cpp
index ac4228ab641..40a51ecd58f 100644
--- a/examples/Reactor/Proactor/test_multiple_loops.cpp
+++ b/examples/Reactor/Proactor/test_multiple_loops.cpp
@@ -133,7 +133,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
return 0;
}
diff --git a/examples/Reactor/Proactor/test_proactor.cpp b/examples/Reactor/Proactor/test_proactor.cpp
index 9acae3255cb..99ac5b9d604 100644
--- a/examples/Reactor/Proactor/test_proactor.cpp
+++ b/examples/Reactor/Proactor/test_proactor.cpp
@@ -604,7 +604,7 @@ Sender::handle_write_stream (const ACE_Asynch_Write_Stream::Result &result)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("h:p:f:d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("h:p:f:d:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/Proactor/test_proactor2.cpp b/examples/Reactor/Proactor/test_proactor2.cpp
index c83ea0c0849..7ee9e005a1b 100644
--- a/examples/Reactor/Proactor/test_proactor2.cpp
+++ b/examples/Reactor/Proactor/test_proactor2.cpp
@@ -637,7 +637,7 @@ Sender::handle_read_stream (const ACE_Asynch_Read_Stream::Result &result)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:p:d:h:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:p:d:h:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/Proactor/test_proactor3.cpp b/examples/Reactor/Proactor/test_proactor3.cpp
index 0386fad19b4..83c8060118e 100644
--- a/examples/Reactor/Proactor/test_proactor3.cpp
+++ b/examples/Reactor/Proactor/test_proactor3.cpp
@@ -669,7 +669,7 @@ set_proactor_type (const char *ptype)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("t:o:n:p:d:h:s:u"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("t:o:n:p:d:h:s:u"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/Proactor/test_timeout.cpp b/examples/Reactor/Proactor/test_timeout.cpp
index 553a0610389..28d40cad510 100644
--- a/examples/Reactor/Proactor/test_timeout.cpp
+++ b/examples/Reactor/Proactor/test_timeout.cpp
@@ -127,7 +127,7 @@ template class ACE_Atomic_Op_Ex<ACE_SYNCH_MUTEX, int>;
#else /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS && !ACE_POSIX_AIOCB_PROACTOR*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_DEBUG ((LM_DEBUG,
"This example is multithreaded version of test_timeout_st.cpp\n"
diff --git a/examples/Reactor/Proactor/test_udp_proactor.cpp b/examples/Reactor/Proactor/test_udp_proactor.cpp
index bffb9acbaf7..b605d0b8e82 100644
--- a/examples/Reactor/Proactor/test_udp_proactor.cpp
+++ b/examples/Reactor/Proactor/test_udp_proactor.cpp
@@ -368,7 +368,7 @@ Sender::handle_write_dgram (const ACE_Asynch_Write_Dgram::Result &result)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("h:p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("h:p:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/TP_Reactor/AcceptHandler.cpp b/examples/Reactor/TP_Reactor/AcceptHandler.cpp
deleted file mode 100644
index 7ae34d2b2b4..00000000000
--- a/examples/Reactor/TP_Reactor/AcceptHandler.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * $Id$
- *
- * ACE reactor demonstration
- *
- * Date: 26-Jan-2006
- */
-
-#include <ace/Auto_Ptr.h>
-#include <ace/INET_Addr.h>
-
-#include "common.h"
-#include "AcceptHandler.h"
-#include "ReadHandler.h"
-
-AcceptHandler:: AcceptHandler(ACE_Reactor *reactor) :
- ACE_Event_Handler(),
- mReactor(reactor == 0 ? ACE_Reactor::instance() : reactor),
- mAcceptor() {
- ACE_TRACE("AcceptHandler:: AcceptHandler(ACE_Reactor *)");
-}
-
-AcceptHandler::~AcceptHandler() {
- ACE_TRACE("AcceptHandler::~AcceptHandler()");
-}
-
-int AcceptHandler::open(void) {
- ACE_TRACE("AcceptHandler::open(void)");
-
- // create the local address used for the service (PORT is from common.h)
- ACE_INET_Addr addr(PORT);
-
- // open a port using the acceptor; reuse the address later
- if (mAcceptor.open(addr, 1) == -1)
- ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT("%N:%l: Failed to open ")
- ACE_TEXT ("listening socket. (errno = %i: %m)\n"), errno), -1);
-
- // register the handler with the reactor
- if (mReactor->register_handler(this,
- ACE_Event_Handler::ACCEPT_MASK) == -1) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to register accept ")
- ACE_TEXT ("handler. (errno = %i: %m)\n"), errno));
-
- // don't leave the acceptor open
- if (mAcceptor.close() == -1)
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to close the socket ")
- ACE_TEXT ("after previous error. (errno = %i: %m)\n"),
- errno));
- return -1;
- }
-
- return 0;
-}
-
-ACE_HANDLE AcceptHandler::get_handle(void) const {
- ACE_TRACE("AcceptHandler::get_handle(void)");
- return mAcceptor.get_handle();
-}
-
-int AcceptHandler::handle_input(ACE_HANDLE) {
- ACE_TRACE("AcceptHandler::handle_input(ACE_HANDLE)");
-
- ACE_INET_Addr clientAddr;
-
- // create a new ReadHandler
- ReadHandler *reader = 0;
- ACE_NEW_NORETURN (reader, ReadHandler());
- if (reader == 0)
- ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT("%N:%l: Failed to allocate ")
- ACE_TEXT ("reader. (errno = %i: %m)\n"), errno), -1);
-
- // put reader in an auto pointer so we can use ACE_ERROR_RETURN safely
- auto_ptr<ReadHandler> pReader(reader);
-
- // accept the connection using the reader's stream
- if (mAcceptor.accept(reader->getStream(), &clientAddr) == -1)
- ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT("%N:%l: Failed to accept ")
- ACE_TEXT ("client connection. (errno = %i: %m)\n"), errno), -1);
-
- // register the reader with the reactor
- if (mReactor->register_handler(reader,
- ACE_Event_Handler::READ_MASK) == -1)
- ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT("%N:%l: Failed to register ")
- ACE_TEXT ("read handler. (errno = %i: %m)\n"), errno), -1);
-
- // from now on the read handler takes care of itself
- pReader.release();
-
- return 0; // keep going
-}
-
-int AcceptHandler::handle_close(ACE_HANDLE, ACE_Reactor_Mask) {
- ACE_TRACE("AcceptHandler::handle_close(ACE_HANDLE, ACE_Reactor_Mask)");
-
- // close the listening socket
- if (mAcceptor.close() == -1)
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to close the ")
- ACE_TEXT ("socket. (errno = %i: %m)\n"), errno));
-
- // no need to distinguish between error during close and normal close
- // since ACE does not evaluate the return value of handle_close()
-
- delete this;
- return 0;
-}
-
diff --git a/examples/Reactor/TP_Reactor/AcceptHandler.h b/examples/Reactor/TP_Reactor/AcceptHandler.h
deleted file mode 100644
index 036f7a36f5a..00000000000
--- a/examples/Reactor/TP_Reactor/AcceptHandler.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#ifndef __ACCEPTHANDLER_H__
-#define __ACCEPTHANDLER_H__
-
-#include <ace/Event_Handler.h>
-#include <ace/Reactor.h>
-#include <ace/SOCK_Acceptor.h>
-
-/**
- * This accept handler is based on the provided solution from the ACE course.
- */
-class AcceptHandler : public ACE_Event_Handler {
-
- private:
-
- /**
- * The reactor to which the accept handler belongs.
- */
- ACE_Reactor *mReactor;
-
- /**
- * The socket used for incoming conections.
- */
- ACE_SOCK_Acceptor mAcceptor;
-
- public:
-
- /**
- * @param reactor The reactor which will use this accept handler.
- */
- AcceptHandler(ACE_Reactor *reactor = 0);
-
- /**
- * The destructor exists for tracing purposes.
- */
- virtual ~AcceptHandler();
-
- /**
- * Open the listening socket and register the handler with the reactor.
- *
- * @return 0 on success, -1 on failure
- */
- int open(void);
-
- /**
- * @name Overridden methods from the ACE_Event_Handler
- */
- // @{
-
- /**
- * Provides the handle of mAcceptor.
- */
- virtual ACE_HANDLE get_handle(void) const;
-
- /**
- * Create a read handler for the new connection and register that
- * handler with the reactor.
- */
- virtual int handle_input(ACE_HANDLE = ACE_INVALID_HANDLE);
-
- /**
- * Close the listening socket.
- */
- virtual int handle_close(ACE_HANDLE, ACE_Reactor_Mask);
- // @}
-};
-
-#endif /* __ACCEPTHANDLER_H__ */
-
diff --git a/examples/Reactor/TP_Reactor/README b/examples/Reactor/TP_Reactor/README
deleted file mode 100644
index 32fbc15aca9..00000000000
--- a/examples/Reactor/TP_Reactor/README
+++ /dev/null
@@ -1,86 +0,0 @@
-ACE reactor demonstration
-=========================
-
-Martin Kolleck
-Tino Riethmuller
-
-
-
-1. Introduction
-
-This program demonstrates what we think is a bug in the ACE library. The
-affected component is the ACE_TP_Reactor. According to the documentation, the
-reactor ensures that only one of the handle_*() methods of an event handler is
-called at a time. Tino found this to be not true and I wrote this example
-program showing the behavior. I do not exclude the possibility that we are
-using the ACE library in an unintended/wrong way. So comments on the code as
-well as any other remarks are welcome.
-
-
-
-2. The program
-
-The program consists of a client and a server. The general implementation is
-taken from the example solution to exercise 4c of the ACE course. The client
-will send a request to the server. This request is interpreted to be the size
-of the following data. The server allocates the memory required to hold the
-client's data and then sends a confirmation to the client, that it may
-proceed. The the client sends the large data chunk and the server again
-confirms it.
-
-The client runs in a loop which can be configured to run indefinitely or a
-previously set amount of times. The configuration i done from the command
-line. To invoke the client type:
-
- $ ./client size [count]
-
-<size> sets the size (in MiB) of the buffer sent to the server. Depending on
-the systems, values between 60 and 100 have been used for testing. <count>
-determines how often the buffer is sent. If left out, the clients send the
-buffer until interrupted.
-
-The server is started without arguments. Both programs will print a dot for
-each successful connection. I found this an easy and unintrusive way of showing
-progress whithout flooding the console too fast. This also makes it easier to
-see when an error has occurred.
-
-
-
-3. Building the program
-
-This example was created on a Linux box. You will need the environment
-variable ACE_ROOT set up to the location where ACE is installed. It might be
-possible, that the path where the ACE libraries are found, needs to be adjusted
-in the Makefile.
-
-To compile simply type 'make' on the command prompt.
-
- $ make
-
-This will create two executable files. One for the server and one for the
-client. (named respectively)
-
-
-
-4. Running the program
-
-The error seems to be of statistical nature. Occurring only under certain
-conditions (which I am not sure of, what they are). I successfully produced
-the error on the four machines given below (architecture, ACE and compiler
-version). I tested the program with localhost connections, as well as over
-a real network connection and could always reproduce the error.
-
-To detect the error I introduced a member variable to the read event handler.
-This counter is initialized to zero in the constructor. When handle_input() of
-the event handler is called, the counter is increased and decreased, when
-handle_input() returns. Before increasing the counter, It is compared to zero
-(which it should alway be, if only one invocation to handle_input() is made
-at a time) and an error message is printed if it is not zero.
-
-To test for the error, I ran one instance of the server program and TWO
-instances of the client program. The sizes of the buffers were between 60 and
-100 MiB and no count was given (running until stopped) The three Linux boxes
-showed the error within one minute of starting both clients. For the Windows
-box I decreased the buffer size to 15 and 20 MiB (Windows does not seem to have
-very performant localhost connectivity) and it took about half an
-hour until the error occurred the first time.
diff --git a/examples/Reactor/TP_Reactor/ReadHandler.cpp b/examples/Reactor/TP_Reactor/ReadHandler.cpp
deleted file mode 100644
index 06c6c953046..00000000000
--- a/examples/Reactor/TP_Reactor/ReadHandler.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#include <ace/streams.h>
-#include <ace/Time_Value.h>
-
-#include "common.h"
-#include "ReadHandler.h"
-
-/**
- * This macro is used to increase the invocation counter by one when entering
- * handle_input(). It also checks wether the counter is greater than zero
- * indicating, that handle_input() has been called before.
- */
-#define INVOCATION_ENTER() do { if (mInvocationCounter > 0) \
- ACE_ERROR((LM_ERROR, ACE_TEXT("Multiple invocations detected.\n"))); \
- mInvocationCounter++; } while (0)
-
-/**
- * THis macro is the counter part to INVOCATION_ENTER(). It decreases the
- * invocation counter and then returns the given value. This macro is
- * here for convenience to decrease the invocation counter also when returning
- * due to errors.
- */
-#define INVOCATION_RETURN(retval) do { mInvocationCounter--; \
- return retval; } while(0)
-
-ReadHandler::ReadHandler() : ACE_Event_Handler(), mStream(), mDataSize(0),
- mData(0), mCallCounter(0), mInvocationCounter(0) {
- ACE_TRACE(ACE_TEXT("ReadHandler::ReadHandler()"));
-}
-
-ReadHandler::~ReadHandler() {
- ACE_TRACE(ACE_TEXT("ReadHandler::~ReadHandler()"));
-
- if (mStream.close() == -1)
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to close socket. ")
- ACE_TEXT ("(errno = %i: %m)\n"), errno));
-
- delete[] mData;
-}
-
-ACE_SOCK_Stream &ReadHandler::getStream(void) {
- ACE_TRACE(ACE_TEXT("ReadHandler::getStream(void)"));
- return mStream;
-}
-
-ACE_HANDLE ReadHandler::get_handle(void) const {
- ACE_TRACE(ACE_TEXT("ReadHandler::get_handle(void)"));
- return mStream.get_handle();
-}
-
-int ReadHandler::handle_input(ACE_HANDLE) {
- ACE_TRACE(ACE_TEXT("ReadHandler::handle_input(ACE_HANDLE)"));
-
- INVOCATION_ENTER();
-
- // the response sent to the client
- char response = 0;
-
- if (mCallCounter == 0) {
-
- /*
- * This is the first request from the client.
- */
-
- // increase the call counter so the next client request goes to else-if
- mCallCounter++;
-
- // get the desired size from the client
- // Note: only use the sizeof and pointer to int on compatible
- // platforms (i.e. little-endian/big-endian, data type size)
- if (mStream.recv_n(&mDataSize, sizeof(mDataSize),
- &connTimeout) != sizeof(mDataSize)) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to receive ")
- ACE_TEXT ("request. (errno = %i: %m)\n"), errno));
- INVOCATION_RETURN(-1);
- }
-
- // The verbose debug output is replaced with some unintrusive dots.
- // This increases visibility of the desired effect.
- // ACE_DEBUG((LM_DEBUG, ACE_TEXT("%@: Data size: %i\n"), this, mDataSize));
- ACE_DEBUG((LM_DEBUG, ACE_TEXT(".")));
-
- // check mDataSize for plausability then allocate memory
- if (mDataSize > 0) {
- mData = new (std::nothrow) char[mDataSize];
- if (mData == 0)
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("%N:%l: Failed to allocate ")
- ACE_TEXT ("data buffer.\n")));
- else
- response = 'K';
- }
-
- // send the response to the client (which is still 0, if the
- // allocation did not succeed)
- if (mStream.send_n(&response, sizeof(response), &connTimeout) != 1) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to send ")
- ACE_TEXT ("response. (errno = %i: %m)\n"), errno));
- INVOCATION_RETURN(-1);
- }
-
- if (response == 'K')
- INVOCATION_RETURN(0); // get another request from the same client
- else
- INVOCATION_RETURN(-1); // the client will not send data if response != 'K'
-
- } else if (mCallCounter == 1) {
-
- /*
- * This is the second request from the client.
- */
-
- // increase the call counter, this read handler should not be called
- // again
- mCallCounter++;
-
- // receive the data from the client
- if (mStream.recv_n(mData, mDataSize, &connTimeout) != mDataSize) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to receive data.")
- ACE_TEXT ("(errno = %i: %m)\n"), errno));
- INVOCATION_RETURN(-1);
- }
-
- response = 'K';
-
- if (mStream.send_n(&response, 1, &connTimeout) != 1) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to send ")
- ACE_TEXT ("confirmation. (errno = %i: %m)\n"), errno));
- INVOCATION_RETURN(-1);
- }
-
- INVOCATION_RETURN(-1); // ask for removal, since client does not send any more data
- }
-
- // this is to find strange actions with the call counter
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: We should not get here.")));
- INVOCATION_RETURN(-1);
-}
-
-int ReadHandler::handle_close(ACE_HANDLE, ACE_Reactor_Mask) {
- ACE_TRACE("ReadHandler::handle_close(ACE_HANDLE, ACE_Reactor_Mask)");
-
- delete this;
- return 0;
-}
-
diff --git a/examples/Reactor/TP_Reactor/ReadHandler.h b/examples/Reactor/TP_Reactor/ReadHandler.h
deleted file mode 100644
index 41d58b6008a..00000000000
--- a/examples/Reactor/TP_Reactor/ReadHandler.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#ifndef __READHANDLER_H__
-#define __READHANDLER_H__
-
-#include <ace/Event_Handler.h>
-#include <ace/SOCK_Stream.h>
-
-/**
- * This read handler is created by the accept handler and handles all the data
- * exchange between client and server. The client makes two requests to the
- * server. The first asks the server to create a buffer which will hold the
- * data sent in the second call.
- */
-class ReadHandler : public ACE_Event_Handler {
-
- private:
-
- /**
- * The stream socket used for data exchange.
- */
- ACE_SOCK_Stream mStream;
-
- /**
- * The size of the data array.
- */
- int mDataSize;
-
- /**
- * The array containing the client's data.
- */
- char *mData;
-
- /**
- * The call counter to distinguish between first and second call.
- */
- int mCallCounter;
-
- /**
- * Count the numer of invocations of handle_*(). According to the
- * docs, there should be only one invocation at any given time.
- */
- int mInvocationCounter;
-
- public:
-
- /**
- * Initialization.
- */
- ReadHandler(void);
-
- /**
- * Clean up data.
- */
- virtual ~ReadHandler();
-
- /**
- * Provide access to the internal stream socket.
- */
- ACE_SOCK_Stream &getStream(void);
-
- /**
- * @name Overridden methods from the ACE_Event_Handler
- */
- // @{
-
- /**
- * Provides the handle of mStream;
- */
- virtual ACE_HANDLE get_handle(void) const;
-
- /**
- * Handles the data excahnge between client and server. On the first
- * invocation, mData is allocated to the requested size and on the
- * second invocation, that buffer is filled with the client's data.
- */
- virtual int handle_input(ACE_HANDLE = ACE_INVALID_HANDLE);
-
- /**
- * Deletes this instance of the read handler.
- */
- virtual int handle_close(ACE_HANDLE, ACE_Reactor_Mask);
- // @}
-};
-
-#endif /* __READHANDLER_H__ */
-
diff --git a/examples/Reactor/TP_Reactor/TP_Reactor.mpc b/examples/Reactor/TP_Reactor/TP_Reactor.mpc
deleted file mode 100644
index 03d8de2e7aa..00000000000
--- a/examples/Reactor/TP_Reactor/TP_Reactor.mpc
+++ /dev/null
@@ -1,18 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project (*client) : aceexe {
- exename = client
- Source_Files {
- client.cpp
- }
-}
-
-project (*server) : aceexe {
- exename = server
- Source_Files {
- server.cpp
- AcceptHandler.cpp
- ReadHandler.cpp
- }
-}
diff --git a/examples/Reactor/TP_Reactor/client.cpp b/examples/Reactor/TP_Reactor/client.cpp
deleted file mode 100644
index 509f2e9c457..00000000000
--- a/examples/Reactor/TP_Reactor/client.cpp
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#include <ace/Auto_Ptr.h>
-#include <ace/INET_Addr.h>
-#include <ace/Log_Msg.h>
-#include <ace/OS.h>
-#include <ace/SOCK_Acceptor.h>
-#include <ace/SOCK_Connector.h>
-#include <ace/SOCK_Stream.h>
-#include <ace/streams.h>
-
-#include "common.h"
-
-/**
- * Print usage information for the client.
- *
- * @param arg The progams name (argv[0]).
- */
-int printUsage(ACE_TCHAR *arg) {
- cerr << "Usage: " << arg << " size [count]" << endl;
- cerr << "\tSends <size> MiB to the server and optionally repeats that "
- << "<count> times." << endl;
- cerr << "\tAll arguments must be positive numbers. If no <count> is "
- << "given, the\n\tclient runs until interrupted." << endl;
- return -1;
-}
-
-int ACE_TMAIN(int argc, ACE_TCHAR **argv) {
-
- // size and count for transmissions
- int size = 0, count = -1;
-
- // the server's answer is a single byte
- char answer;
-
- // parse the <size> argument
- if ((argc < 2) || (((size = ACE_OS::strtol(argv[1], 0, 10)) < 1) ||
- (errno == EINVAL)))
- return printUsage(argv[0]);
-
- // take size as the number of MiB and create appropriate buffer
- size *= BASE;
- char *someData = new (std::nothrow) char[size];
-
- if (someData == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%N:%l: Failed to allocate ")
- ACE_TEXT ("data buffer.\n")), -1);
-
- // put someData in an auto_ptr so it gets deleted automatically
- auto_ptr<char> pSomeData(someData);
-
- // parse the <count> argument if available
- if ((argc == 3) && (((count = ACE_OS::strtol(argv[2], 0, 10)) < 1) ||
- (errno == EINVAL)))
- return printUsage(argv[0]);
-
- // the server listens on localhost on default port (from common.h)
- ACE_INET_Addr serverAddr(PORT, "localhost");
-
- ACE_SOCK_Stream stream;
- ACE_SOCK_Connector connector;
-
- // -1 is running indefinitely
- while ((count == -1) || (count-- != 0)) {
-
- // some output, that we know something is happening
- //ACE_DEBUG((LM_DEBUG, ACE_TEXT("%N:%l: Passes left: %i\n"), count));
- ACE_DEBUG((LM_DEBUG, ACE_TEXT(".")));
-
- // connect to the server and get the stream
- if (connector.connect(stream, serverAddr) == -1) {
- ACE_ERROR((LM_ERROR,
- ACE_TEXT("%N:%l: Failed to connect to ")
- ACE_TEXT ("server. (errno = %i: %m)\n"), errno));
- break;
- }
-
- try {
-
- // send the request to the server (number of MiB in the next call)
- // Note: only use the sizeof and pointer to int on compatible
- // platforms (i.e. little-endian/big-endian, data type size)
- if (stream.send_n(&size, sizeof(size), &connTimeout) != sizeof(size)) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to send ")
- ACE_TEXT ("request. (errno = %i: %m)\n"), errno));
- throw(1);
- }
-
- // receive the answer
- if (stream.recv_n(&answer, sizeof(answer), &connTimeout) != 1) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N: %l: Failed to receive ")
- ACE_TEXT ("1st response. (errno = %i: %m)\n"), errno));
- throw(1);
- }
-
- // server answer, 'K" indicates a positive answer
- if (answer == 'K') {
-
- // send a huge message to the server
- if (stream.send_n(someData, size, &connTimeout) != size) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to send ")
- ACE_TEXT ("someData. (errno = %i: %m)\n"), errno));
- throw(1);
- }
-
- // get an answer
- if (stream.recv_n(&answer, sizeof(answer), &connTimeout) != 1) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N: %l: Failed to receive ")
- ACE_TEXT ("2nd response. (errno = %i: %m)\n"), errno));
- throw(1);
- }
-
- // check the answer
- if (answer != 'K') {
- cout << "The server was unable to process the data."
- << endl;
- }
- }
- } catch (...) {
- // ok we know an error occurred, we need to close the socket.
- // The we'll try again.
- }
-
- // close the current stream
- if (stream.close() == -1) {
- ACE_ERROR((LM_ERROR, ACE_TEXT("%N:%l: Failed to close ")
- ACE_TEXT ("socket. (errno = %i: %m)\n"), errno));
- break;
- }
- } // while
-
- cout << "Bye. Bye" << endl;
- return 0;
-}
-
diff --git a/examples/Reactor/TP_Reactor/common.h b/examples/Reactor/TP_Reactor/common.h
deleted file mode 100644
index c9661027923..00000000000
--- a/examples/Reactor/TP_Reactor/common.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#ifndef __COMMON_H__
-#define __COMMON_H__
-
-#include <ace/Time_Value.h>
-
-/**
- * The port number used by client and server.
- */
-static const int PORT = 4711;
-
-/**
- * The base size. 0x100000 = 1 MiB
- */
-static const int BASE = 0x100000;
-
-/**
- * The timeout value for connections. (30 seconds)
- */
-static const ACE_Time_Value connTimeout(30);
-
-#endif /* __COMMON_H__ */
-
diff --git a/examples/Reactor/TP_Reactor/run_test.pl b/examples/Reactor/TP_Reactor/run_test.pl
deleted file mode 100644
index ac07295a735..00000000000
--- a/examples/Reactor/TP_Reactor/run_test.pl
+++ /dev/null
@@ -1,41 +0,0 @@
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-# $Id$
-# -*- perl -*-
-
-use lib '../../../bin';
-use PerlACE::Run_Test;
-
-$status = 0;
-
-$SV = new PerlACE::Process ("server", "");
-$CL1 = new PerlACE::Process ("client", "80 100");
-$CL2 = new PerlACE::Process ("client", "80 100");
-$SV->Spawn ();
-
-sleep (1);
-
-$client1 = $CL1->Spawn ();
-
-if ($client1 != 0) {
- print STDERR "ERROR: client 1 returned $client1\n";
- $status = 1;
-}
-
-$client2 = $CL2->Spawn ();
-
-if ($client2 != 0) {
- print STDERR "ERROR: client 2 returned $client2\n";
- $status = 1;
-}
-
-$server = $SV->WaitKill (1000);
-
-if ($server != 0) {
- print STDERR "ERROR: server returned $server\n";
- $status = 1;
-}
-
-exit $status;
diff --git a/examples/Reactor/TP_Reactor/server.cpp b/examples/Reactor/TP_Reactor/server.cpp
deleted file mode 100644
index 0c147818424..00000000000
--- a/examples/Reactor/TP_Reactor/server.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#include <ace/Event_Handler.h>
-#include <ace/Log_Msg.h>
-#include <ace/OS.h>
-#include <ace/Reactor.h>
-#include <ace/Signal.h>
-#include <ace/streams.h>
-#include <ace/Thread_Manager.h>
-#include <ace/TP_Reactor.h>
-
-#include "AcceptHandler.h"
-
-/**
- * This is the function run by all threads in the thread pool.
- *
- * @param arg is expected to be of type (ACE_Reactor *)
- */
-ACE_THR_FUNC_RETURN threadFunc(void *arg) {
- ACE_TRACE("threadFunc(void *)");
-
- ACE_Reactor *reactor = (ACE_Reactor *) arg;
- reactor->run_reactor_event_loop();
-
- return 0;
-}
-
-/**
- * The main function sets up the TP reactor. The code is basically taken from
- * the solution to exercise 4c of the ACE course.
- */
-int ACE_TMAIN(int, ACE_TCHAR **) {
-
- // create a reactor from a TP reactor
- ACE_TP_Reactor tpReactor;
- ACE_Reactor reactor(&tpReactor);
-
- // create a new accept handler using that reactor
- AcceptHandler *acceptHandler = 0;
- ACE_NEW_NORETURN (acceptHandler, AcceptHandler(&reactor));
- if (acceptHandler == 0)
- ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT("%N:%l: Failed to allocate ")
- ACE_TEXT ("accept handler. (errno = %i: %m)\n"), errno), -1);
-
- // open the accept handler
- if (acceptHandler->open() == -1) {
- delete acceptHandler;
- ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT("%N:%l: Failed to open accept ")
- ACE_TEXT ("handler. Exiting.\n")), -1);
- }
-
- // spawn some threads which run the reactor event loop(s)
- ACE_Thread_Manager::instance()->spawn_n(9, threadFunc, &reactor);
-
- // let the thread manager wait for all threads
- ACE_Thread_Manager::instance()->wait();
-
- ACE_DEBUG((LM_DEBUG, ACE_TEXT("Bye. Bye.\n")));
- return 0;
-}
-
diff --git a/examples/Reactor/WFMO_Reactor/Handle_Close.cpp b/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
index 9eb6d7c727a..a5fb49207eb 100644
--- a/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
+++ b/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
@@ -261,7 +261,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
int result = 0;
// Parse args
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("swmc"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("swmc"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
{
diff --git a/examples/Reactor/WFMO_Reactor/Multithreading.cpp b/examples/Reactor/WFMO_Reactor/Multithreading.cpp
index 0778f375251..ce054ec04af 100644
--- a/examples/Reactor/WFMO_Reactor/Multithreading.cpp
+++ b/examples/Reactor/WFMO_Reactor/Multithreading.cpp
@@ -58,7 +58,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR **argv)
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("t:h:s:i:e:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("t:h:s:i:e:"));
int c;
while ((c = get_opt ()) != -1)
@@ -229,7 +229,7 @@ ACE_TMAIN (int argc, ACE_TCHAR **argv)
// Setup a timer for the task
if (ACE_Reactor::instance ()->schedule_timer (&task,
(void *)((size_t)i),
- ACE_Time_Value::zero) == -1)
+ 0) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "schedule_timer"), -1);
for (int i = 0; i < number_of_handles_to_signal; i++)
diff --git a/examples/Reactor/WFMO_Reactor/Talker.cpp b/examples/Reactor/WFMO_Reactor/Talker.cpp
index 32438088614..d9a20157dad 100644
--- a/examples/Reactor/WFMO_Reactor/Talker.cpp
+++ b/examples/Reactor/WFMO_Reactor/Talker.cpp
@@ -271,7 +271,7 @@ Peer_Handler::Peer_Handler (int argc, ACE_TCHAR *argv[])
// then notifies us.
this->msg_queue ()->notification_strategy (&this->strategy_);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("h:p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("h:p:"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc b/examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc
index eec632ee696..43d1e7ff0ff 100644
--- a/examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc
+++ b/examples/Reactor/WFMO_Reactor/WFMO_Reactor.mpc
@@ -9,7 +9,6 @@ project(*Abandoned): aceexe, wfmo {
}
project(*APC): aceexe, wfmo {
- avoids += wince
exename = apc
Source_Files {
APC.cpp
@@ -73,7 +72,6 @@ project(*Registration): aceexe, wfmo {
}
project(*Registry_Changes): aceexe, wfmo {
- avoids += ace_for_tao wince
exename = registry_changes
Source_Files {
Registry_Changes.cpp
@@ -95,7 +93,6 @@ project(*Suspended_Removals): aceexe, wfmo {
}
project(*Talker): aceexe, wfmo {
- avoids += ace_for_tao wince
exename = talker
Source_Files {
Talker.cpp
@@ -110,7 +107,6 @@ project(*Timeouts): aceexe, wfmo {
}
project(*Window_Messages): aceexe, wfmo {
- avoids += ace_for_tao wince
exename = window_messages
Source_Files {
Window_Messages.cpp
diff --git a/examples/Reactor/WFMO_Reactor/Window_Messages.cpp b/examples/Reactor/WFMO_Reactor/Window_Messages.cpp
index f5a1994168c..9ae5d7fdf78 100644
--- a/examples/Reactor/WFMO_Reactor/Window_Messages.cpp
+++ b/examples/Reactor/WFMO_Reactor/Window_Messages.cpp
@@ -26,7 +26,6 @@
#include "ace/Msg_WFMO_Reactor.h"
#include "ace/Reactor.h"
#include "ace/Auto_Ptr.h"
-#include "ace/Auto_Event.h"
ACE_RCSID(WFMO_Reactor, Window_Messages, "$Id$")
diff --git a/examples/Service_Configurator/IPC-tests/client/Svc_Cfg_IPC_Client.mpc b/examples/Service_Configurator/IPC-tests/client/Svc_Cfg_IPC_Client.mpc
index 6876c4aac4d..11fa3ae9fe7 100644
--- a/examples/Service_Configurator/IPC-tests/client/Svc_Cfg_IPC_Client.mpc
+++ b/examples/Service_Configurator/IPC-tests/client/Svc_Cfg_IPC_Client.mpc
@@ -2,21 +2,18 @@
// $Id$
project(*loc dgram) : aceexe {
- avoids += ace_for_tao
exename = local_dgram_test
Source_Files {
local_dgram_client_test.cpp
}
}
project(*loc fifo) : aceexe {
- avoids += ace_for_tao
exename = local_fifo_test
Source_Files {
local_fifo_client_test.cpp
}
}
project(*loc pipe) : aceexe {
- avoids += ace_for_tao
exename = local_pipe_test
Source_Files {
local_pipe_client_test.cpp
@@ -29,14 +26,12 @@ project(*loc spipe) : aceexe {
}
}
project(*loc stream) : aceexe {
- avoids += ace_for_tao
exename = local_stream_test
Source_Files {
local_stream_client_test.cpp
}
}
project(*rem dgram) : aceexe {
- avoids += ace_for_tao
exename = remote_dgram_test
Source_Files {
remote_dgram_client_test.cpp
@@ -49,7 +44,6 @@ project(*rem svc dir) : aceexe {
}
}
project(*rem stream) : aceexe {
- avoids += ace_for_tao
exename = remote_stream_test
Source_Files {
remote_stream_client_test.cpp
@@ -62,7 +56,6 @@ project(*rem thr_stream) : aceexe {
}
}
project(*bcast) : aceexe {
- avoids += ace_for_tao
exename = remote_broadcast_test
Source_Files {
broadcast_client_test.cpp
diff --git a/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp
index 4cbb964cd74..22f287b7a2b 100644
--- a/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp
@@ -31,7 +31,7 @@ print_usage_and_die (void)
void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp
index 3f8ed3db866..ab157f18775 100644
--- a/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp
@@ -39,7 +39,7 @@ print_usage_and_die (void)
void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("c:f:r:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("c:f:r:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp
index 9fb26b4088e..76c9cbeaa62 100644
--- a/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp
@@ -39,7 +39,7 @@ parse_arguments (int argc, ACE_TCHAR *argv[])
int tracing = 1;
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("df:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("df:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -78,7 +78,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
"in local_fifo_client_test\n",
rendezvous_fifo),
-1);
- void *cp = 0;
+ void *cp;
ACE_Mem_Map mmap (file_name);
if (mmap (cp) == -1)
diff --git a/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp
index 7193440b440..42065f10b1d 100644
--- a/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp
@@ -38,7 +38,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
{
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("f:r:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("f:r:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
index 77406f9bada..518c7aebf33 100644
--- a/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
@@ -36,7 +36,7 @@ static void
parse_arguments (int argc, char *argv[])
{
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, "dr:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "dr:");
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp
index 390b14e19b8..15977728f43 100644
--- a/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp
@@ -35,7 +35,7 @@ void
parse_args (int argc, ACE_TCHAR *argv[])
{
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("f:r:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("f:r:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp
index e5bec64d8c6..26ece126384 100644
--- a/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp
@@ -37,7 +37,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
{
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("f:h:p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("f:h:p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -63,7 +63,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
parse_args (argc, argv);
ACE_SOCK_Dgram sd (ACE_Addr::sap_any);
- void *cp = 0;
+ void *cp;
ACE_INET_Addr sa (port_number, host_name);
ACE_Mem_Map mmap (file_name);
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp
index cee8ca1469f..6e12812a4fe 100644
--- a/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp
@@ -33,7 +33,7 @@ print_usage_and_die (void)
void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("p:h:r"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("p:h:r"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
index d7d4ef7346c..61192f2f469 100644
--- a/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
@@ -40,7 +40,7 @@ void
parse_args (int argc, ACE_TCHAR *argv[])
{
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("f:h:p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("f:h:p:"));
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -65,7 +65,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
parse_args (argc, argv);
ACE_INET_Addr sa (port_number, host_name);
- void *cp = 0;
+ void *cp;
char buf[BUFSIZ];
int n;
ACE_SOCK_CODgram dc;
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
index 5b7784d4e44..4f42beb5674 100644
--- a/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
+++ b/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
@@ -39,7 +39,7 @@ void
parse_args (int argc, char *argv[])
{
program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, "f:h:p:");
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "f:h:p:");
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_Broadcast.i b/examples/Service_Configurator/IPC-tests/server/Handle_Broadcast.i
index ce7f42617e7..8fb87258041 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_Broadcast.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_Broadcast.i
@@ -50,7 +50,7 @@ ACE_INLINE int
Handle_Broadcast::init (int argc, ACE_TCHAR *argv[])
{
ACE_INET_Addr sba (Handle_Broadcast::DEFAULT_PORT);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("p:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_L_CODgram.i b/examples/Service_Configurator/IPC-tests/server/Handle_L_CODgram.i
index a77d75e1fa8..159cf410cb3 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_L_CODgram.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_L_CODgram.i
@@ -31,7 +31,7 @@ Handle_L_CODgram::info (ACE_TCHAR **strp, size_t length) const
if (ACE_LSOCK_CODgram::get_local_addr (sa) == -1)
return -1;
- ACE_OS::strcpy (buf, ACE_TEXT_CHAR_TO_TCHAR (sa.get_path_name ()));
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_TCHAR_IN (sa.get_path_name ()));
ACE_OS::strcat (buf, ACE_TEXT (" # tests local connected datagram\n"));
if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0)
@@ -45,7 +45,7 @@ ACE_INLINE int
Handle_L_CODgram::init (int argc, ACE_TCHAR *argv[])
{
ACE_UNIX_Addr sucd;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("r:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("r:"), 0);
const ACE_TCHAR *r = Handle_L_CODgram::DEFAULT_RENDEZVOUS;
for (int c; (c = get_opt ()) != -1; )
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_L_Dgram.i b/examples/Service_Configurator/IPC-tests/server/Handle_L_Dgram.i
index 3b2ab29331f..5e225fafd9e 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_L_Dgram.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_L_Dgram.i
@@ -31,7 +31,7 @@ Handle_L_Dgram::info (ACE_TCHAR **strp, size_t length) const
if (this->ACE_LSOCK_Dgram::get_local_addr (sa) == -1)
return -1;
- ACE_OS::strcpy (buf, ACE_TEXT_CHAR_TO_TCHAR (sa.get_path_name ()));
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_TCHAR_IN (sa.get_path_name ()));
ACE_OS::strcat (buf, ACE_TEXT (" # tests local datagram\n"));
if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0)
@@ -45,7 +45,7 @@ ACE_INLINE int
Handle_L_Dgram::init (int argc, ACE_TCHAR *argv[])
{
ACE_UNIX_Addr sudg;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("r:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("r:"), 0);
const ACE_TCHAR *r = Handle_L_Dgram::DEFAULT_RENDEZVOUS;
for (int c; (c = get_opt ()) != -1; )
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_L_FIFO.i b/examples/Service_Configurator/IPC-tests/server/Handle_L_FIFO.i
index f6cd0cda734..8e8a3e1f960 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_L_FIFO.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_L_FIFO.i
@@ -43,7 +43,7 @@ ACE_INLINE int
Handle_L_FIFO::init (int argc, ACE_TCHAR *argv[])
{
const ACE_TCHAR *rendezvous_fifo = Handle_L_FIFO::DEFAULT_RENDEZVOUS;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("r:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("r:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_L_Pipe.i b/examples/Service_Configurator/IPC-tests/server/Handle_L_Pipe.i
index ce978aa85ea..72325011053 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_L_Pipe.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_L_Pipe.i
@@ -36,7 +36,7 @@ Handle_L_Pipe::info (ACE_TCHAR **strp, size_t length) const
if (ACE_LSOCK_Acceptor::get_local_addr (sa) == -1)
return -1;
- ACE_OS::strcpy (buf, ACE_TEXT_CHAR_TO_TCHAR (sa.get_path_name ()));
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_TCHAR_IN (sa.get_path_name ()));
ACE_OS::strcat (buf, ACE_TEXT (" # tests local pipe\n"));
if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0)
@@ -51,7 +51,7 @@ Handle_L_Pipe::init (int argc, ACE_TCHAR *argv[])
{
ACE_UNIX_Addr sup;
const ACE_TCHAR *r = Handle_L_Pipe::DEFAULT_RENDEZVOUS;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("r:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("r:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_L_SPIPE.i b/examples/Service_Configurator/IPC-tests/server/Handle_L_SPIPE.i
index 1dcb739b0ab..6f59b5d18a2 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_L_SPIPE.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_L_SPIPE.i
@@ -51,7 +51,7 @@ Handle_L_SPIPE::init (int argc, char *argv[])
{
ACE_SPIPE_Addr susp;
const char *rendezvous = Handle_L_SPIPE::DEFAULT_RENDEZVOUS;
- ACE_Get_Opt get_opt (argc, argv, "r:", 0);
+ ACE_Get_Arg_Opt<char> get_opt (argc, argv, "r:", 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_L_Stream.i b/examples/Service_Configurator/IPC-tests/server/Handle_L_Stream.i
index 80b21852293..8da839253be 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_L_Stream.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_L_Stream.i
@@ -40,7 +40,7 @@ Handle_L_Stream::info (ACE_TCHAR **strp, size_t length) const
if (this->get_local_addr (sa) == -1)
return -1;
- ACE_OS::strcpy (buf, ACE_TEXT_CHAR_TO_TCHAR (sa.get_path_name ()));
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_TCHAR_IN (sa.get_path_name ()));
ACE_OS::strcat (buf, ACE_TEXT (" # tests local ACE_Stream\n"));
if (*strp == 0 && (*strp = ACE_OS::strdup (buf)) == 0)
@@ -55,7 +55,7 @@ Handle_L_Stream::init (int argc, ACE_TCHAR *argv[])
{
ACE_UNIX_Addr sus;
const ACE_TCHAR *r = Handle_L_Stream::DEFAULT_RENDEZVOUS;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("r:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("r:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -130,7 +130,7 @@ Handle_L_Stream::handle_input (ACE_HANDLE)
if (new_local_stream.send (4,
Handle_L_Stream::login_name,
ACE_OS::strlen (Handle_L_Stream::login_name),
- ACE_TEXT_ALWAYS_CHAR (cs),
+ ACE_TEXT_TO_CHAR_IN (cs),
ACE_OS::strlen (cs)) == -1)
return -1;
else if (ACE_OS::close (handle) == -1)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_R_Dgram.i b/examples/Service_Configurator/IPC-tests/server/Handle_R_Dgram.i
index 88212a988f0..df58c0173b8 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_R_Dgram.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_R_Dgram.i
@@ -45,7 +45,7 @@ ACE_INLINE int
Handle_R_Dgram::init (int argc, ACE_TCHAR *argv[])
{
ACE_INET_Addr sidg (Handle_R_Dgram::DEFAULT_PORT);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i b/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i
index f126cd13aee..33045a3e44c 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.i
@@ -52,7 +52,7 @@ ACE_INLINE int
Handle_R_Stream::init (int argc, ACE_TCHAR *argv[])
{
ACE_INET_Addr sis (Handle_R_Stream::DEFAULT_PORT);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("p:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp b/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
index af38408067d..f2f32b273ce 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
@@ -61,7 +61,7 @@ Handle_Thr_Acceptor<SVH, PR_AC_2>::init (int argc, ACE_TCHAR *argv[])
ACE_INET_Addr local_addr (ACE_DEFAULT_THR_PORT);
int n_threads = ACE_DEFAULT_THREADS;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("p:t:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("p:t:"), 0);
for (int c; (c = get_opt ()) != -1; )
switch (c)
@@ -154,7 +154,7 @@ CLI_Stream<PR_ST_2>::svc (void)
ACE_OS::cuserid (login_name);
ACE_OS::sprintf (buf, "user %s %s",
login_name,
- ACE_TEXT_ALWAYS_CHAR (ACE_OS::ctime ((const time_t *) &t)));
+ ACE_TEXT_TO_CHAR_IN (ACE_OS::ctime ((const time_t *) &t)));
if (this->peer ().send_n (buf, ACE_OS::strlen (buf) + 1) == -1)
return -1;
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i b/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i
index 346a22e773c..d23d1a26caa 100644
--- a/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i
+++ b/examples/Service_Configurator/IPC-tests/server/Handle_Timeout.i
@@ -30,7 +30,7 @@ Handle_Timeout::init (int argc, ACE_TCHAR *argv[])
{
ACE_Time_Value delta (10);
ACE_Time_Value interval (1);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("a:d:i:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("a:d:i:"), 0);
int arg = 0;
for (int c; (c = get_opt ()) != -1; )
diff --git a/examples/Service_Configurator/IPC-tests/server/Svc_Cfg_IPC_Server.mpc b/examples/Service_Configurator/IPC-tests/server/Svc_Cfg_IPC_Server.mpc
index c44b40c6e32..f8dfd26377b 100644
--- a/examples/Service_Configurator/IPC-tests/server/Svc_Cfg_IPC_Server.mpc
+++ b/examples/Service_Configurator/IPC-tests/server/Svc_Cfg_IPC_Server.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*Lib) : acelib {
- avoids += ace_for_tao
sharedname = IPC_Tests_Server
dynamicflags += ACE_BUILD_SVC_DLL
Source_Files {
@@ -20,7 +19,6 @@ project(*Lib) : acelib {
}
project(*test) : aceexe {
- avoids += ace_for_tao
exename = server_test
after += Svc_Cfg_IPC_Server_Lib
libs += IPC_Tests_Server
diff --git a/examples/Shared_Malloc/Malloc.h b/examples/Shared_Malloc/Malloc.h
index c88cead8bfb..6b315cd3797 100644
--- a/examples/Shared_Malloc/Malloc.h
+++ b/examples/Shared_Malloc/Malloc.h
@@ -10,9 +10,7 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Allocator;
-ACE_END_VERSIONED_NAMESPACE_DECL
class Malloc
// = TITLE
diff --git a/examples/Shared_Malloc/Options.cpp b/examples/Shared_Malloc/Options.cpp
index 6716fa66c31..bd08e7a57ba 100644
--- a/examples/Shared_Malloc/Options.cpp
+++ b/examples/Shared_Malloc/Options.cpp
@@ -133,9 +133,9 @@ Options::Options (void)
void
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("dehlL:mn:pst:T"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("dehlL:mn:pst:T"));
- ACE_OS::strcpy (this->program_name_, ACE_TEXT_ALWAYS_CHAR (argv[0]));
+ ACE_OS::strcpy (this->program_name_, ACE_TEXT_TO_CHAR_IN (argv[0]));
ACE_LOG_MSG->open (argv[0]);
// Put in a special-case check for child process.
diff --git a/examples/Shared_Malloc/Shared_Malloc.mpc b/examples/Shared_Malloc/Shared_Malloc.mpc
index 42753246815..f4102049f59 100644
--- a/examples/Shared_Malloc/Shared_Malloc.mpc
+++ b/examples/Shared_Malloc/Shared_Malloc.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = malloc
Source_Files {
Malloc.cpp
@@ -11,7 +10,6 @@ project : aceexe {
}
}
project(*multiple) : aceexe {
- avoids += ace_for_tao
exename = multiple
Source_Files {
Malloc.cpp
@@ -20,14 +18,12 @@ project(*multiple) : aceexe {
}
}
project(*persistence) : aceexe {
- avoids += ace_for_tao
exename = persistence
Source_Files {
test_persistence.cpp
}
}
project(*posind) : aceexe {
- avoids += ace_for_tao
exename = posind
Source_Files {
Malloc.cpp
diff --git a/examples/Shared_Malloc/test_malloc.cpp b/examples/Shared_Malloc/test_malloc.cpp
index b6143aa989c..ead20c17b63 100644
--- a/examples/Shared_Malloc/test_malloc.cpp
+++ b/examples/Shared_Malloc/test_malloc.cpp
@@ -110,7 +110,7 @@ spawn (void)
#endif /* ACE_HAS_THREADS */
}
#if !defined (ACE_WIN32)
- else if (ACE_OS::fork (ACE_TEXT_CHAR_TO_TCHAR (Options::instance ()->program_name ())) == 0)
+ else if (ACE_OS::fork (ACE_TEXT_TO_TCHAR_IN (Options::instance ()->program_name ())) == 0)
{
if (Options::instance ()->exec_slave ())
{
diff --git a/examples/Shared_Malloc/test_persistence.cpp b/examples/Shared_Malloc/test_persistence.cpp
index a981cfd6a4f..682ed8a5943 100644
--- a/examples/Shared_Malloc/test_persistence.cpp
+++ b/examples/Shared_Malloc/test_persistence.cpp
@@ -69,18 +69,9 @@ public:
{
return shmem_allocator->malloc (sizeof (Employee));
}
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
- void operator delete (void *p, const ACE_nothrow_t&) throw ()
- {
- shmem_allocator->free (p);
- }
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif
- void operator delete (void *pointer)
- {
- shmem_allocator->free (pointer);
- }
+ void operator delete (void *pointer) { shmem_allocator->free (pointer); }
private:
char *name_;
@@ -208,7 +199,7 @@ GUI_Handler::insert_employee (const char *name,
int
GUI_Handler::find_employee (const char *name)
{
- void *temp = 0;
+ void *temp;
if (shmem_allocator->find (name,
temp) == 0)
@@ -272,7 +263,7 @@ GUI_Handler::list_employees (void)
int
GUI_Handler::delete_employee (const char *name)
{
- void *temp = 0;
+ void *temp;
if (shmem_allocator->unbind (name,
temp) == 0)
diff --git a/examples/Shared_Malloc/test_position_independent_malloc.cpp b/examples/Shared_Malloc/test_position_independent_malloc.cpp
index cb5c0acd4c8..c41e9d143bb 100644
--- a/examples/Shared_Malloc/test_position_independent_malloc.cpp
+++ b/examples/Shared_Malloc/test_position_independent_malloc.cpp
@@ -119,7 +119,7 @@ initialize (TEST_MALLOC *allocator)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("a:T"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("a:T"));
for (int c;
(c = get_opt ()) != -1;
diff --git a/examples/Shared_Memory/Shared_Memory.mpc b/examples/Shared_Memory/Shared_Memory.mpc
index f0ee256597b..5c566e1d690 100644
--- a/examples/Shared_Memory/Shared_Memory.mpc
+++ b/examples/Shared_Memory/Shared_Memory.mpc
@@ -2,14 +2,12 @@
// $Id$
project(*MM) : aceexe {
- avoids += ace_for_tao
exename = testmm
Source_Files {
test_MM.cpp
}
}
project(*SV) : aceexe {
- avoids += ace_for_tao
exename = testsv
Source_Files {
test_SV.cpp
diff --git a/examples/Synch/Synch.mpc b/examples/Synch/Synch.mpc
index 024e8459803..5e8c6c115af 100644
--- a/examples/Synch/Synch.mpc
+++ b/examples/Synch/Synch.mpc
@@ -2,6 +2,5 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = proc_sema
}
diff --git a/examples/Synch/proc_sema.cpp b/examples/Synch/proc_sema.cpp
index d9da687ca6a..0c405fa52f7 100644
--- a/examples/Synch/proc_sema.cpp
+++ b/examples/Synch/proc_sema.cpp
@@ -46,7 +46,7 @@ int consumer (ACE_SYNCH_PROCESS_SEMAPHORE &sema,
int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("csn:xi:d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("csn:xi:d:"));
int is_consumer = 1; // By default, make us a consumer.
int delete_sema = 0;
diff --git a/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp b/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
index 547e4175121..5f26eb583b4 100644
--- a/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/MQ_Client.cpp
@@ -16,7 +16,7 @@ ACE_RCSID(SV_Message_Queues, MQ_Client, "$Id$")
#if defined (ACE_HAS_SYSV_IPC) && !defined(ACE_LACKS_SYSV_SHMEM)
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
long pid = long (ACE_OS::getpid ());
ACE_SV_Message_Queue msgque (SRV_KEY);
diff --git a/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp b/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
index 57c7502cabd..a685f2e67f7 100644
--- a/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/MQ_Server.cpp
@@ -27,7 +27,7 @@ handler (int)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
long pid = long (ACE_OS::getpid ());
Message_Block recv_msg (SRV_ID);
diff --git a/examples/System_V_IPC/SV_Message_Queues/SV_Message_Queues.mpc b/examples/System_V_IPC/SV_Message_Queues/SV_Message_Queues.mpc
index 62cb7a0a819..0795ff7443e 100644
--- a/examples/System_V_IPC/SV_Message_Queues/SV_Message_Queues.mpc
+++ b/examples/System_V_IPC/SV_Message_Queues/SV_Message_Queues.mpc
@@ -2,28 +2,24 @@
// $Id$
project(*MQ Client) : aceexe {
- avoids += ace_for_tao
exename = mqclient
Source_Files {
MQ_Client.cpp
}
}
project(*MQ Server) : aceexe {
- avoids += ace_for_tao
exename = mqserver
Source_Files {
MQ_Server.cpp
}
}
project(*TMQ Client) : aceexe {
- avoids += ace_for_tao
exename = tmqclient
Source_Files {
TMQ_Client.cpp
}
}
project(*TMQ Server) : aceexe {
- avoids += ace_for_tao
exename = tmqserver
Source_Files {
TMQ_Server.cpp
diff --git a/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp b/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
index bb4377e02c6..0b54eb3e0f1 100644
--- a/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
+++ b/examples/System_V_IPC/SV_Message_Queues/TMQ_Server.cpp
@@ -29,7 +29,7 @@ handler (int)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
char *username = ACE_OS::cuserid (static_cast<char *> (0));
Message_Data msg_data ((int) ACE_OS::getpid (), username, "I received your message.");
diff --git a/examples/System_V_IPC/SV_Semaphores/SV_Semaphores.mpc b/examples/System_V_IPC/SV_Semaphores/SV_Semaphores.mpc
index 647e4a4cf5a..fd2e931886f 100644
--- a/examples/System_V_IPC/SV_Semaphores/SV_Semaphores.mpc
+++ b/examples/System_V_IPC/SV_Semaphores/SV_Semaphores.mpc
@@ -2,14 +2,12 @@
// $Id$
project(*1) : aceexe {
- avoids += ace_for_tao
exename = sem1
Source_Files {
Semaphores_1.cpp
}
}
project(*2) : aceexe {
- avoids += ace_for_tao
exename = sem2
Source_Files {
Semaphores_2.cpp
diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
index 99a5284dfd6..e8910459cb3 100644
--- a/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
+++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_1.cpp
@@ -67,7 +67,7 @@ child (char *shm)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
char *shm = (char *) alloc.malloc (27);
diff --git a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
index 2150e9c0a13..d109d170029 100644
--- a/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
+++ b/examples/System_V_IPC/SV_Semaphores/Semaphores_2.cpp
@@ -83,7 +83,7 @@ child (char *shm)
}
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
char *shm = (char *) my_alloc.malloc (27);
diff --git a/examples/TMCast/Member/member.cpp b/examples/TMCast/Member/member.cpp
index f89c68564ea..fbbbe6b9f13 100644
--- a/examples/TMCast/Member/member.cpp
+++ b/examples/TMCast/Member/member.cpp
@@ -32,7 +32,7 @@ ACE_TMAIN (int argc, ACE_TCHAR* argv[])
ACE_INET_Addr address (argv[3]);
- ACE_TMCast::Group group (address, ACE_TEXT_ALWAYS_CHAR (argv[2]));
+ ACE_TMCast::Group group (address, ACE_TEXT_TO_CHAR_IN (argv[2]));
if (receiver)
{
diff --git a/examples/Threads/Threads.mpc b/examples/Threads/Threads.mpc
index 2c57feda243..2ce2c2497f2 100644
--- a/examples/Threads/Threads.mpc
+++ b/examples/Threads/Threads.mpc
@@ -26,14 +26,12 @@ project(*cancel) : aceexe {
}
}
project(*future1) : aceexe {
- avoids += ace_for_tao
exename = future1
Source_Files {
future1.cpp
}
}
project(*future2) : aceexe {
- avoids += ace_for_tao
exename = future2
Source_Files {
future2.cpp
@@ -46,14 +44,12 @@ project(*manual_event) : aceexe {
}
}
project(*process_mutex) : aceexe {
- avoids += ace_for_tao
exename = process_mutex
Source_Files {
process_mutex.cpp
}
}
project(*process_semaphore) : aceexe {
- avoids += ace_for_tao
exename = process_semaphore
Source_Files {
process_semaphore.cpp
diff --git a/examples/Threads/barrier2.cpp b/examples/Threads/barrier2.cpp
index 694f20e45f8..7d37abaf79b 100644
--- a/examples/Threads/barrier2.cpp
+++ b/examples/Threads/barrier2.cpp
@@ -118,7 +118,7 @@ template <class BARRIER> int
Worker_Task<BARRIER>::service (ACE_Message_Block *mb,
int iter)
{
- size_t length = mb->length ();
+ int length = mb->length ();
if (length > 0)
{
@@ -162,7 +162,7 @@ Worker_Task<BARRIER>::svc (void)
break;
}
- size_t length = mb->length ();
+ int length = mb->length ();
this->service (mb,iter);
if (length == 0)
@@ -223,7 +223,7 @@ Worker_Task<BARRIER>::input (ACE_Message_Block *mb)
char str[] = "kalle";
ACE_OS::strcpy (mb->rd_ptr (), str);
- size_t n = ACE_OS::strlen (str);
+ int n = ACE_OS::strlen (str);
if (l == 1000)
n = 1;
diff --git a/examples/Threads/process_manager.cpp b/examples/Threads/process_manager.cpp
index b8c2455b469..7a03afca362 100644
--- a/examples/Threads/process_manager.cpp
+++ b/examples/Threads/process_manager.cpp
@@ -129,7 +129,7 @@ static int exit_code = 0;
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("i:e:cu"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:e:cu"));
int c;
diff --git a/examples/Threads/reader_writer.cpp b/examples/Threads/reader_writer.cpp
index 88b7ca10a27..3bcbbd9071a 100644
--- a/examples/Threads/reader_writer.cpp
+++ b/examples/Threads/reader_writer.cpp
@@ -53,7 +53,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("r:w:n:l:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("r:w:n:l:"));
int c;
diff --git a/examples/Threads/recursive_mutex.cpp b/examples/Threads/recursive_mutex.cpp
index 3c915682d90..20cec4a7e82 100644
--- a/examples/Threads/recursive_mutex.cpp
+++ b/examples/Threads/recursive_mutex.cpp
@@ -33,7 +33,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:t:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:t:"));
int c;
diff --git a/examples/Threads/task_one.cpp b/examples/Threads/task_one.cpp
index ea4fd71dcf8..c2c23306152 100644
--- a/examples/Threads/task_one.cpp
+++ b/examples/Threads/task_one.cpp
@@ -94,7 +94,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
return 0;
diff --git a/examples/Web_Crawler/Command_Processor.cpp b/examples/Web_Crawler/Command_Processor.cpp
index c23310be017..5eb86be49f2 100644
--- a/examples/Web_Crawler/Command_Processor.cpp
+++ b/examples/Web_Crawler/Command_Processor.cpp
@@ -23,7 +23,7 @@ URL_Command::execute (void)
{
ACE_CString check_string
- (ACE_TEXT_ALWAYS_CHAR (this->url_->url_addr ().get_path_name ()));
+ (ACE_TEXT_TO_CHAR_IN (this->url_->url_addr ().get_path_name ()));
if (check_string.find ("news:") >= 0)
return 0;
diff --git a/examples/Web_Crawler/HTTP_URL.cpp b/examples/Web_Crawler/HTTP_URL.cpp
index 44ceea324d4..351a3a7ac7d 100644
--- a/examples/Web_Crawler/HTTP_URL.cpp
+++ b/examples/Web_Crawler/HTTP_URL.cpp
@@ -43,7 +43,7 @@ HTTP_URL::send_request (void)
ACE_OS::sprintf (cmd_ptr.get (),
"GET /%s HTTP/1.1\r\n",
- ACE_TEXT_ALWAYS_CHAR (this->url_addr ().get_path_name ()));
+ ACE_TEXT_TO_CHAR_IN (this->url_addr ().get_path_name ()));
// Send the GET command to the connected server.
if (this->stream ().send_n (cmd_ptr.get (),
diff --git a/examples/Web_Crawler/Options.cpp b/examples/Web_Crawler/Options.cpp
index 389cbfa0733..b010a3a24ea 100644
--- a/examples/Web_Crawler/Options.cpp
+++ b/examples/Web_Crawler/Options.cpp
@@ -11,7 +11,7 @@ ACE_RCSID(Web_Crawler, Options, "$Id$")
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("df:h:i:l:rt:u:vo:p:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("df:h:i:l:rt:u:vo:p:"));
ACE_LOG_MSG->open (argv[0]);
diff --git a/examples/Web_Crawler/URL_Addr.cpp b/examples/Web_Crawler/URL_Addr.cpp
index 5a630e387fb..b65c5c7ba4a 100644
--- a/examples/Web_Crawler/URL_Addr.cpp
+++ b/examples/Web_Crawler/URL_Addr.cpp
@@ -39,7 +39,7 @@ ACE_URL_Addr::addr_to_string (ACE_TCHAR *s,
else
{
ACE_OS::sprintf (s, ACE_TEXT ("%s:%d/%s"),
- ACE_TEXT_CHAR_TO_TCHAR (ipaddr_format == 0
+ ACE_TEXT_TO_TCHAR_IN (ipaddr_format == 0
? this->get_host_name ()
: this->get_host_addr ()),
this->get_port_number (),
@@ -73,7 +73,7 @@ ACE_URL_Addr::addr_to_string (int ipaddr_format) const
}
ACE_OS::sprintf (this->addr_string_,
ACE_TEXT ("%s:%d/%s"),
- ACE_TEXT_CHAR_TO_TCHAR (ipaddr_format == 0
+ ACE_TEXT_TO_TCHAR_IN (ipaddr_format == 0
? this->get_host_name ()
: this->get_host_addr ()),
this->get_port_number (),
diff --git a/examples/Web_Crawler/URL_Status.h b/examples/Web_Crawler/URL_Status.h
index 672c5e4f240..c6b56042b24 100644
--- a/examples/Web_Crawler/URL_Status.h
+++ b/examples/Web_Crawler/URL_Status.h
@@ -39,9 +39,9 @@ public:
STATUS_BAD_REQUEST = 400,
STATUS_UNAUTHORIZED = 401,
STATUS_FORBIDDEN = 403,
- STATUS_ITEM_NOT_FOUND = 404,
+ STATUS_NOT_FOUND = 404,
STATUS_INTERNAL_SERVER_ERROR = 500,
- STATUS_OP_NOT_IMPLEMENTED = 501,
+ STATUS_NOT_IMPLEMENTED = 501,
STATUS_BAD_GATEWAY = 502,
STATUS_SERVICE_UNAVAILABLE = 503,
STATUS_INSUFFICIENT_DATA = 399
diff --git a/examples/Web_Crawler/URL_Visitor.cpp b/examples/Web_Crawler/URL_Visitor.cpp
index 6f2b5dbeeb4..58667666258 100644
--- a/examples/Web_Crawler/URL_Visitor.cpp
+++ b/examples/Web_Crawler/URL_Visitor.cpp
@@ -119,7 +119,7 @@ HTML_Body_Validation_Strategy::execute (void)
char temp[BUFSIZ + 1];
ACE_CString prev_location (temp);
- prev_location.set (ACE_TEXT_ALWAYS_CHAR (this->url_.url_addr ().get_path_name ()),
+ prev_location.set (ACE_TEXT_TO_CHAR_IN (this->url_.url_addr ().get_path_name ()),
ACE_OS::strlen (this->url_.url_addr ().get_path_name ()),
1);
int index = prev_location.rfind ('/', prev_location.length ());
@@ -164,7 +164,7 @@ HTML_Body_Validation_Strategy::execute (void)
ACE_URL_Addr,
0);
Auto_Destroyer<ACE_URL_Addr> url_addr_ptr (url_addr);
- if (url_addr_ptr->string_to_addr (ACE_TEXT_CHAR_TO_TCHAR (url.c_str ())) == 0)
+ if (url_addr_ptr->string_to_addr (ACE_TEXT_TO_TCHAR_IN (url.c_str ())) == 0)
{
HTTP_URL *http_url;
ACE_NEW_RETURN (http_url,
diff --git a/examples/Web_Crawler/Web_Crawler.mpc b/examples/Web_Crawler/Web_Crawler.mpc
index 7750d7cbd5d..a7df4bfef17 100644
--- a/examples/Web_Crawler/Web_Crawler.mpc
+++ b/examples/Web_Crawler/Web_Crawler.mpc
@@ -2,6 +2,5 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = main
}
diff --git a/examples/Web_Crawler/main.cpp b/examples/Web_Crawler/main.cpp
index 1735f811b78..ba5d37d71a8 100644
--- a/examples/Web_Crawler/main.cpp
+++ b/examples/Web_Crawler/main.cpp
@@ -27,16 +27,15 @@ ACE_RCSID(Web_Crawler, main, "$Id$")
void sig_handler (int)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("aborting!\n")));
+ "aborting!\n"));
ACE_OS::abort ();
}
int
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
-#if !defined (ACE_HAS_WINCE)
ACE_Sig_Action sa ((ACE_SignalHandler) sig_handler, SIGFPE);
-#endif
+
Web_Crawler crawler;
if (crawler.open (argc, argv) == -1)
diff --git a/html/Stats/configuration.shtml b/html/Stats/configuration.shtml
index daaaa988774..1ba6da71250 100644
--- a/html/Stats/configuration.shtml
+++ b/html/Stats/configuration.shtml
@@ -11,11 +11,9 @@
<!--#include file="navigation.html"-->
- <P>All the experiments run the system described below.
- The machine is running Linux
- (<!--#include file="data/linuxversion.txt"-->),
- and we use GCC (<!--#include file="data/gccversion.txt"-->),
- to compile ACE+TAO, with static libraries
+ <P>All the experiments run on a dual Xeaon @2.40GHz, with
+ 1Gb of RAM. The machine is running Linux (SuSE 8.2),
+ and we use gcc-3.3 to compile ACE+TAO, with static libraries
and optimizations enabled.
</P>
diff --git a/html/Stats/detailed_footprint.shtml b/html/Stats/detailed_footprint.shtml
index 723c4a438ac..c1640148e6c 100644
--- a/html/Stats/detailed_footprint.shtml
+++ b/html/Stats/detailed_footprint.shtml
@@ -1,7 +1,7 @@
<HTML>
<head>
<meta http-equiv="refresh" content="0; URL=http://www.dre.vanderbilt.edu/~isisbuilds/auto_compile_logs/FP_Metrics/metrics/">
-<title>Footprint Metrics for ACE+TAO+CIAO Page</title>
+<title>Footprint Metrics for ACE+TAO Page</title>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="pagestyle.css">
</head>
<body>
diff --git a/html/Stats/footprint.shtml b/html/Stats/footprint.shtml
index 5498c7a1254..b7f8bd44c5e 100644
--- a/html/Stats/footprint.shtml
+++ b/html/Stats/footprint.shtml
@@ -32,7 +32,6 @@
<UL>
<LI><a href="http://www.dre.vanderbilt.edu/~isisbuilds/auto_compile_logs/FP_Metrics/metrics/ace_Footprint.html">ACE</a>
<LI><a href="http://www.dre.vanderbilt.edu/~isisbuilds/auto_compile_logs/FP_Metrics/metrics/tao_Footprint.html">TAO</a>
- <LI><a href="http://www.dre.vanderbilt.edu/~isisbuilds/auto_compile_logs/FP_Metrics/metrics/ciao_Footprint.html">CIAO</a>
</UL>
</LI> </UL>
diff --git a/html/Stats/performance.shtml b/html/Stats/performance.shtml
index 9de7384f4ef..90a900a3047 100644
--- a/html/Stats/performance.shtml
+++ b/html/Stats/performance.shtml
@@ -20,7 +20,7 @@
<P><HR>
<BODY>
-
+
<P>
Results for the performance experiments in
<CODE>$ACE_ROOT/TAO/performance-tests/Latency</CODE>.
@@ -30,7 +30,7 @@
<P>
<IMG alt="All Invocation Modes and Configurations" border=0
src="images/CORBA.png"
- width="800" height="600">
+ width="640" height="480">
</P>
</DIV>
<HR>
diff --git a/html/Stats/simple_footprint.shtml b/html/Stats/simple_footprint.shtml
index fbf7831d619..fbdb5fda785 100644
--- a/html/Stats/simple_footprint.shtml
+++ b/html/Stats/simple_footprint.shtml
@@ -9,7 +9,7 @@
<BODY>
<!--#include file="navigation.html"-->
-
+
<DIV align="center">
<P>
<TABLE BORDER="2">
@@ -233,35 +233,20 @@
</TD>
</TR>
<TR>
- <TD>libTAO_PI</TD>
- <TD><A HREF="images/libTAO_PI.a_size.png">
- <IMG ALT="libTAO_PI.a_size" SRC="images/thumbnails/libTAO_PI.a_size.png">
+ <TD>libTAO_SmartProxies</TD>
+ <TD><A HREF="images/libTAO_SmartProxies.a_size.png">
+ <IMG ALT="libTAO_SmartProxies.a_size" SRC="images/thumbnails/libTAO_SmartProxies.a_size.png">
</A>
</TD>
<TD>
<PRE>
-<!--#include file="data/LAST_libTAO_PI.a_size.txt" -->
+<!--#include file="data/LAST_libTAO_SmartProxies.a_size.txt" -->
</PRE>
</TD>
<TD>
- <A HREF="data/libTAO_PI.a_size.txt">[Download]</A>
+ <A HREF="data/libTAO_SmartProxies.a_size.txt">[Download]</A>
</TD>
</TR>
- <TR>
- <TD>libTAO_PI_Server</TD>
- <TD><A HREF="images/libTAO_PI_Server.a_size.png">
- <IMG ALT="libTAO_PI_Server.a_size" SRC="images/thumbnails/libTAO_PI_Server.a_size.png">
- </A>
- </TD>
- <TD>
- <PRE>
-<!--#include file="data/LAST_libTAO_PI_Server.a_size.txt" -->
- </PRE>
- </TD>
- <TD>
- <A HREF="data/libTAO_PI_Server.a_size.txt">[Download]</A>
- </TD>
- </TR>
<TR>
<TD>libTAO_RTCORBA</TD>
<TD><A HREF="images/libTAO_RTCORBA.a_size.png">
diff --git a/html/index.html b/html/index.html
index 4160b9807f2..935d3a50e49 100644
--- a/html/index.html
+++ b/html/index.html
@@ -1,207 +1,209 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<!-- $Id$ -->
-
-<head>
- <title>ACE+TAO+CIAO Documentation</title>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
- <center>
- <h1>ACE+TAO+CIAO Documentation</h1>
- </center>
-
- <p>Documentation is separated by components:</p>
-
- <ul>
- <li>
- <p><a href="ace/index.html">The ACE library</a></p>
- </li>
-
- <li>
- <p><a href="acexml/index.html">The ACEXML library</a></p>
- </li>
-
- <li>
- <p><a href="ace/ssl/index.html">ACE SSL Adapters</a></p>
- </li>
-
- <li>
- <p><a href="ace/rmcast/index.html">ACE Reliable Multicast
- components</a></p>
- </li>
-
- <li>
- <p><a href="ace/QoS/index.html">ACE Components for
- QoS-enabled networking APIs.</a></p>
- </li>
-
- <li>
- <p><a href="tao/index.html">The TAO library and
- components</a></p>
- </li>
-
- <li>
- <p><a href=
- "tao/portableserver/index.html">TAO_PortableServer:</a> TAO's
- Portable Object Adapter</p>
- </li>
-
- <li>
- <p><a href="tao/dynamicany/index.html">TAO_DynamicAny:</a>
- TAO's implementation of Dynamic Anys.</p>
- </li>
-
- <li>
- <p><a href=
- "tao/dynamicinterface/index.html">TAO_DynamicInterface:</a>
- TAO's implementation of DII/DSI.</p>
- </li>
-
- <li>
- <p><a href=
- "tao/smartproxies/index.html">TAO_SmartProxies:</a> TAO's
- smart proxies support library.</p>
- </li>
-
- <li>
- <p><a href=
- "tao/iormanipulation/index.html">TAO_IORManipulation:</a> TAO
- extension to manipulate IORs.</p>
- </li>
-
- <li>
- <p><a href="tao/iortable/index.html">TAO_IORTable:</a> TAO's
- ad-hoc adapter for simple Object Keys.</p>
- </li>
-
- <li>
- <p><a href="tao/strategies/index.html">TAO_Strategies:</a>
- Additional configuration options and protocols for TAO.</p>
- </li>
-
- <li>
- <p><a href=
- "tao/rtportableserver/index.html">TAO_RTPortableServer:</a>
- The Portable Object Adapter with RT-CORBA support</p>
- </li>
-
- <li>
- <p><a href="tao/rtcorba/index.html">TAO_RTCORBA:</a>
- Additional components to support RT-CORBA</p>
- </li>
-
- <li>
- <p><a href="tao/pi/index.html">TAO_PI:</a> TAO Client
- Portable Interceptor support</p>
- </li>
-
- <li>
- <p><a href="tao/pi_server/index.html">TAO_PI_Server:</a> TAO
- Server Portable Interceptor support</p>
- </li>
-
- <li>
- <p><a href="tao/anytypecode/index.html">TAO_AnyTypeCode:</a>
- TAO AnyTypeCode support</p>
- </li>
- </ul>
- <hr />
-
- <ul>
- <li>
- <p><a href="tao/implrepo_service/index.html">Implementation
- Repository:</a> TAO's object activation daemon.</p>
- </li>
-
- <li>
- <p><a href="tao/esf/index.html">TAO_ESF:</a> TAO's Event
- Service Framework, a collection of template classes used to
- implement TAO Event Services.</p>
- </li>
-
- <li>
- <p><a href="tao/rtevent/index.html">TAO_RTEvent:</a> TAO's RT
- Event Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/cosevent/index.html">TAO_CosEvent:</a> TAO's
- COS Event Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/cosnaming/index.html">TAO_CosNaming:</a>
- TAO's COS Naming Service implementation.</p>
- </li>
-
- <li>
- <p><a href=
- "tao/cosnotification/index.html">TAO_CosNotification:</a>
- TAO's COS Notification Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/costime/index.html">TAO_CosTime:</a> TAO's
- COS Time Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/costrader/index.html">TAO_CosTrader:</a>
- TAO's COS Trader Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/av/index.html">TAO_AV:</a> TAO's Audio/Video
- Streaming Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/security/index.html">TAO_Security:</a> TAO's
- CORBA Security Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/ssliop/index.html">TAO_SSLIOP:</a> TAO's
- SSLIOP protocol implementation.</p>
- </li>
-
- <li>
- <p><a href=
- "tao/portablegroup/index.html">TAO_PortableGroup:</a> TAO's
- PortableGroup implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/pss/index.html">TAO_PSS:</a> TAO's Persistent
- State Service implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/ifr/index.html">TAO_IFR:</a> TAO's Interface
- Repository Service implementation.</p>
- </li>
- </ul><!--The following is CIAO replated-->
- <hr />
-
- <ul>
- <li>
- <p><a href="tao/ciao/ciao/index.html">CIAO:</a> CIAO's core
- implementation.</p>
- </li>
-
- <li>
- <p><a href="tao/ciao/dance/index.html">DAnCE:</a> CIAO's
- Deployment and Configuration Engine.</p>
- </li>
-
- <li>
- <p><a href="tao/ciao/tools/config_handlers/index.html">Config Handlers:</a> CIAO's
- Config Handlers.</p>
- </li>
- </ul>
-</body>
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+ <!-- $Id$ -->
+ <head>
+ <title>ACE+TAO+CIAO Documentation</title>
+ <LINK href="doxygen.css" rel="stylesheet" type="text/css">
+ </head>
+ <body>
+ <CENTER>
+ <h1>ACE+TAO+CIAO Documentation</h1>
+ </CENTER>
+ <P>Documentation is separated by components:
+ </P>
+ <UL>
+ <LI>
+ <P><A HREF="ace/index.html"> The ACE library </A>
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="acexml/index.html"> The ACEXML library </A>
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="ace/ssl/index.html">ACE SSL Adapters </A>
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="ace/rmcast/index.html">ACE Reliable Multicast components </A>
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="ace/QoS/index.html">ACE Components for QoS-enabled networking APIs. </A>
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/index.html"> The TAO library and components </A>
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/portableserver/index.html">TAO_PortableServer: </A>TAO's Portable
+ Object Adapter
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/dynamicany/index.html">TAO_DynamicAny: </A>TAO's implementation of
+ Dynamic Anys.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/dynamicinterface/index.html">TAO_DynamicInterface: </A>TAO's
+ implementation of DII/DSI.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/smartproxies/index.html">TAO_SmartProxies: </A>TAO's smart proxies
+ support library.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/iormanipulation/index.html">TAO_IORManipulation: </A>TAO extension
+ to manipulate IORs.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/iortable/index.html">TAO_IORTable: </A>TAO's ad-hoc adapter for
+ simple Object Keys.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/strategies/index.html">TAO_Strategies: </A>Additional configuration
+ options and protocols for TAO.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/rtportableserver/index.html">TAO_RTPortableServer: </A>The Portable
+ Object Adapter with RT-CORBA support
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/rtcorba/index.html">TAO_RTCORBA: </A>Additional components to
+ support RT-CORBA
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/pi/index.html">TAO_PI: </A>TAO Client Portable Interceptor support
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/pi_server/index.html">TAO_PI_Server: </A>TAO Server Portable Interceptor support
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/anytypecode/index.html">TAO_AnyTypeCode: </A>TAO AnyTypeCode support
+ </P>
+ </LI>
+ </UL>
+ <hr>
+ <UL>
+ <LI>
+ <P><A HREF="tao/implrepo_service/index.html"> Implementation Repository: </A>TAO's
+ object activation daemon.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/esf/index.html">TAO_ESF: </A>TAO's Event Service Framework, a
+ collection of template classes used to implement TAO Event Services.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/rtevent/index.html">TAO_RTEvent: </A>TAO's RT Event Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/cosevent/index.html">TAO_CosEvent: </A>TAO's COS Event Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/cosnaming/index.html">TAO_CosNaming: </A>TAO's COS Naming Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/cosnotification/index.html">TAO_CosNotification: </A>TAO's COS
+ Notification Service implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/costime/index.html">TAO_CosTime: </A>TAO's COS Time Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/costrader/index.html">TAO_CosTrader: </A>TAO's COS Trader Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/av/index.html">TAO_AV: </A>TAO's Audio/Video Streaming Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/security/index.html">TAO_Security: </A>TAO's CORBA Security Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ssliop/index.html">TAO_SSLIOP: </A>TAO's SSLIOP protocol
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/portablegroup/index.html">TAO_PortableGroup: </A>TAO's
+ PortableGroup implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/pss/index.html">TAO_PSS: </A>TAO's Persistent State Service
+ implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ifr/index.html">TAO_IFR: </A>TAO's Interface Repository Service
+ implementation.
+ </P>
+ </LI>
+ </UL>
+ <!--The following is CIAO replated-->
+ <hr>
+ <UL>
+ <LI>
+ <P><A HREF="tao/ciao/ciao/index.html"> CIAO: </A>CIAO's core implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ciao/tools/assembly_deployer/index.html">Assembly_Deployer: </A>CIAO's
+ assembly deployer/manager implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ciao/tools/serveractivator/index.html">ServerActivator: </A>CIAO's
+ ServerActivator implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ciao/tools/daemon/index.html">Daemon: </A>CIAO's per-host daemon
+ prcess implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ciao/tools/componentserver/index.html">ComponentServer: </A>CIAO's
+ component server implementation.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ciao/tools/xml_helpers/index.html">XML_HELPERS: </A>XML helper
+ classes to aid the parsing and manupilation of XML files.
+ </P>
+ </LI>
+ <LI>
+ <P><A HREF="tao/ciao/dance/index.html">DAnCE: </A>CIAO's Deployment and
+ Configuration Engine.
+ </P>
+ </LI>
+ </UL>
+ </body>
</html>
diff --git a/include/makeinclude/build_dll.bor b/include/makeinclude/build_dll.bor
index 7bfded1e82d..fd51d933706 100644
--- a/include/makeinclude/build_dll.bor
+++ b/include/makeinclude/build_dll.bor
@@ -113,6 +113,6 @@ USE_FULL_PATH = 1
.rc.res:
@$(MAKE_OBJDIR)
- $(RC) $(RC_FLAGS) -fo$@ $<
+ $(RC) -fo$@ $<
.autodepend
diff --git a/include/makeinclude/build_exe.bor b/include/makeinclude/build_exe.bor
index 3387e6e5cf5..aeb65a595c6 100644
--- a/include/makeinclude/build_exe.bor
+++ b/include/makeinclude/build_exe.bor
@@ -43,7 +43,7 @@ $(TARGET): $(OBJFILES) $(RESOURCE)
@$(MAKE_BINDIR)
$(LD) @&&!
$(COMMON_LFLAGS) $(EXE_LFLAGS) $(LFLAGS) +
- $(EXE_STARTUP_OBJ) $(PACKAGES) $(LIBFILES) $(OBJFILES), +
+ $(EXE_STARTUP_OBJ) $(LIBFILES) $(OBJFILES), +
$(TARGET),, +
$(COMMON_LIBS),, +
$(RESOURCE)
@@ -109,6 +109,6 @@ USE_FULL_PATH = 1
.rc.res:
@$(MAKE_OBJDIR)
- $(RC) $(RC_FLAGS) -fo$@ $<
+ $(RC) -fo$@ $<
.autodepend
diff --git a/include/makeinclude/compiler.bor b/include/makeinclude/compiler.bor
index 87c4cf21f47..ad8c71d6c2f 100644
--- a/include/makeinclude/compiler.bor
+++ b/include/makeinclude/compiler.bor
@@ -9,7 +9,6 @@
# DEBUG - if defined means building with debug information
# UNICODE - if defined means building unicode
# CBX - if defined means building with the new CBuilderX preview compiler
-# CPU_FLAG - if defined the flag for CPU optimization
#
# Outputs:
# ~~~~~~~~
@@ -34,9 +33,6 @@
#
# Get the BCBVER and VCLVER, if it is not set, we default to BCB6.
-!if $(BCBVER) == 8
-VCLVER =
-!else
!if $(BCBVER) == 6
VCLVER =
!else
@@ -46,8 +42,8 @@ VCLVER = 50
!if $(BCBVER) == 4
VCLVER = 40
!else
-!error BCBVER must be explicitly set as environment variable or is set to a not supported value.
-!endif
+BCBVER = 6
+VCLVER =
!endif
!endif
!endif
@@ -79,15 +75,6 @@ RC = brcc32
#
# Common flags
#
-!ifndef $(BCB)
-BCB = $(MAKEDIR)\..
-!endif
-
-!ifdef CPU_FLAG
-CPU_CFLAG = $(CPU_FLAG)
-!else
-CPU_CFLAG =
-!endif
!ifdef DEBUG
!ifdef CBX
@@ -95,7 +82,7 @@ DEBUG_CFLAGS = -v -y -Od -vi- -k -D_DEBUG -DACE_NO_INLINE=1
DEBUG_LFLAGS = -v
!else
DEBUG_CFLAGS = -v -y -Od -r- -vi- -k -D_DEBUG -DACE_NO_INLINE=1
-DEBUG_LFLAGS = -v -L$(BCB)\lib\debug
+DEBUG_LFLAGS = -v
!endif
!else
!if $(BCBVER) == 6 || $(BCBVER) == 5
@@ -103,7 +90,7 @@ DEBUG_CFLAGS = -OS -Ov -Og -DNDEBUG
!else
DEBUG_CFLAGS = -O2 -DNDEBUG
!endif
-DEBUG_LFLAGS = -L$(BCB)\lib\release
+DEBUG_LFLAGS =
!endif
!ifdef STATIC
@@ -133,11 +120,7 @@ DEFINES_CFLAGS =
QUIET_CFLAGS =
MISC_CFLAGS =
!else
-!ifdef VCL
-DEFINES_CFLAGS = -DWIN32
-!else
DEFINES_CFLAGS = -DWIN32;_NO_VCL
-!endif
QUIET_CFLAGS = -q
MISC_CFLAGS =
!endif
@@ -146,15 +129,9 @@ DECORATOR_CFLAGS = -DACE_LD_DECORATOR_STR=ACE_LIB_TEXT(\"$(LIB_DECORATOR)\")
COMMON_CFLAGS = $(QUIET_CFLAGS) $(DEBUG_CFLAGS) $(THREAD_CFLAGS) \
$(STATIC_CFLAGS) $(WARNINGS_CFLAGS) $(DEFINES_CFLAGS) \
$(MISC_CFLAGS) $(CODEGUARD_CFLAGS) $(UNICODE_CFLAGS) \
- $(DECORATOR_CFLAGS) $(PCH_CFLAGS) $(CPU_CFLAG)
+ $(DECORATOR_CFLAGS) $(PCH_CFLAGS)
-COMMON_LFLAGS = $(DEBUG_LFLAGS) $(STATIC_LFLAGS) -x -w-dup -Gn -L$(BCB)\lib -L$(BCB)\lib\psdk
-
-!ifdef VCL
-PACKAGES = rtl.bpi vcl.bpi vclx.bpi vcljpg.bpi bcbsmp.bpi qrpt.bpi dbrtl.bpi \
- vcldb.bpi bdertl.bpi ibsmp.bpi vcldbx.bpi teeui.bpi teedb.bpi tee.bpi \
- nmfast.bpi dclocx.bpi
-!endif
+COMMON_LFLAGS = $(DEBUG_LFLAGS) $(STATIC_LFLAGS) -x -w-dup -Gn
#
# DLL specific flags
@@ -175,18 +152,10 @@ DLL_STARTUP_OBJ = c0d32.$(OBJ_EXT)
EXE_CFLAGS =
EXE_LFLAGS = -Tpe
!ifdef UNICODE
-!ifdef VCL
-EXE_STARTUP_OBJ = c0w32w.$(OBJ_EXT)
-!else
EXE_STARTUP_OBJ = c0x32w.$(OBJ_EXT)
-!endif
-!else
-!ifdef VCL
-EXE_STARTUP_OBJ = c0w32.$(OBJ_EXT)
!else
EXE_STARTUP_OBJ = c0x32.$(OBJ_EXT)
!endif
-!endif
#
# Static lib specific flags
diff --git a/include/makeinclude/platform_aix_ibm.GNU b/include/makeinclude/platform_aix_ibm.GNU
index c2493199884..0980618f6ac 100644
--- a/include/makeinclude/platform_aix_ibm.GNU
+++ b/include/makeinclude/platform_aix_ibm.GNU
@@ -3,8 +3,8 @@
# This file is for use with AIX 4.3 and up, using either of the IBM
# compilers (IBM C/C++ 3.6.6 or Visual Age C++ 5 or 6 batch compiler).
# If you wish to use the CSet++ compiler, please use platform_aix4_cset++.GNU.
-# Note that as of ACE 5.4, the only supported compilers from IBM are
-# Visual Age C++ 6 and up.
+# Note that as of ACE 6.0, the only supported compiler from IBM will
+# be Visual Age C++ 5 (batch mode only) and up.
debug ?= 1
distrib ?= 0
@@ -30,7 +30,7 @@ endif
# from the vacpp compiler newsgroup.
# It relies on the preprocessor defining __xlC__ to the proper version
# number of the compiler.
-XLCVERSION := $(shell echo "__xlC__" > ./testxlCvers.cpp;xlC -E ./testxlCvers.cpp | tail -n 1;$(RM) testxlCvers.cpp)
+XLCVERSION := $(shell echo "__xlC__" > ./testxlCvers.cpp;xlC -E ./testxlCvers.cpp | tail -1;$(RM) testxlCvers.cpp)
#XLCVERSION := $(shell xlC -E ./testAIXCompilerVersion.cpp | tail -1')
#ACE_AIX_CLEAN := $(shell $(RM) ./testAIXCompilerVersion.cpp)
@@ -102,40 +102,24 @@ ifeq ($(XLCVERSION),0x0306)
# template instances in rules.lib.GNU.
ibmcxx_build = 1
rtti = 0
-else # Visual Age 5 and up
+else # Visual Age 5 and 6
+ SHR_FILTER=$(ACE_ROOT)/bin/aix_shr
ifeq ($(XLCVERSION),0x0500)
- SHR_FILTER=$(ACE_ROOT)/bin/aix_shr
TEMPINCDIR = tempinc
- CCFLAGS += -qflag=w:w -qonce -qtempinc=$(TEMPINCDIR)
+ CCFLAGS += -qflag=w:w -qonce -qtempinc=$(TEMPINCDIR) -DACE_TEMPLATES_REQUIRE_PRAGMA
else
ifeq ($(XLCVERSION),0x0600)
- # This is just for the workaround for aio, above. Without it, the
- # compiler warns that __C99_RESTRICT is reserved. When that workaround
- # is gone, this ifeq can be removed also. -qflag=w:w is what we want
- # in the end.
- CCFLAGS += -qtemplateregistry=templateregistry.$(MAKEFILE)
+ TEMPINCDIR = tempinc
+ # This is just for the workaround for aio, above. Without it, the compiler
+ # warns that __C99_RESTRICT is reserved. When that workaround is gone, this
+ # ifeq can be removed also. -qflag=w:w is what we want in the end.
ifeq (502,$(AIX_VERS))
- CCFLAGS += -qflag=e:e
+ CCFLAGS += -qflag=e:e -qtempinc=$(TEMPINCDIR) -DACE_TEMPLATES_REQUIRE_SOURCE
else
- CCFLAGS += -qflag=w:w
+ CCFLAGS += -qflag=w:w -qtempinc=$(TEMPINCDIR) -DACE_TEMPLATES_REQUIRE_SOURCE
endif
else
- ifeq ($(XLCVERSION),0x0700)
- CCFLAGS += -qflag=w:w
- ifeq ($(templates),manual)
- CCFLAGS += -qnotempinc -qnotemplateregistry
- else
- CCFLAGS += -qtemplateregistry=templateregistry.$(MAKEFILE)
- endif
- # According to documentation, default is -qeh, which is equivalent
- # to -qeh=v5. Apparently 6.0 fixed some problems with nested
- # try-catch blocks.
- ifeq ($(exceptions),1)
- CCFLAGS += -qeh=v6
- endif
- else
- CXX = echo "Unrecognized compiler version $(XLCVERSION)\n"
- endif
+ CXX = echo "Unrecognized compiler version $(XLCVERSION)\n"
endif
endif
DLD = $(CXX) -qmkshrobj
@@ -145,14 +129,14 @@ else # Visual Age 5 and up
CCFLAGS += -q64 -qwarn64
ARFLAGS := -X64 $(ARFLAGS)
- # This option results in a crash of TAO when building 64bit with
- # Visual Age 6. No idea why but don't use it when using Visual Age 6.
+ # This option results in a crash of TAO when building 64bit with Visual Age 6. No idea
+ # why but don't use it when using Visual Age 6.
ifneq ($(XLCVERSION),0x0600)
- # CCFLAGS += -qstaticinline
+ CCFLAGS += -qstaticinline
endif
else
# Using 32bit the staticinline option works.
- #CCFLAGS += -qstaticinline
+ CCFLAGS += -qstaticinline
endif
CCFLAGS += -qfuncsect
endif
diff --git a/include/makeinclude/platform_hpux_aCC.GNU b/include/makeinclude/platform_hpux_aCC.GNU
index 3309743947f..eebdde865bd 100644
--- a/include/makeinclude/platform_hpux_aCC.GNU
+++ b/include/makeinclude/platform_hpux_aCC.GNU
@@ -26,10 +26,10 @@ versioned_so ?= 0
# First, extract the OS version number.
HPVERS_WORDS := $(subst ., ,$(shell uname -r))
HPMODEL := $(shell uname -m)
-HPUX_VERS := $(join $(word 2,$(HPVERS_WORDS)),$(word 3,$(HPVERS_WORDS)))
+HPUX_VERS := $(join $(word 2,$(HPVERS_WORDS)),$(word 3,$(HPVERS_WORDS)))
#
-CC = /bin/cc
-CXX = aCC
+CC = /bin/cc
+CXX = aCC
# Determine compiler version
CXXVERS_WORDS := $(subst ., , $(shell $(CXX) -V 2>&1))
@@ -57,10 +57,6 @@ ifeq (1,$(stdcpplib))
# Warning 930 is spurious when new(std::nothrow) is used. Reported to HP
# as support call 3201224717. (Steve Huston, 23-Nov-2002)
CCFLAGS += +W930
- # aCC 3.31 has poor member template support.
- ifeq (31,$(CXXMINORVERS))
- CCFLAGS += -DACE_LACKS_MEMBER_TEMPLATES
- endif
endif
# Compile errors using -AA and +noeh together - HP problem report
# JAGad12608, fix slated for Dec 2001 Release -- Steve Huston, April 10, 2001.
@@ -142,35 +138,35 @@ endif
ifeq ($(word 2,$(HPVERS_WORDS)), 10)
CCFLAGS += +W495,667,829,908
endif
-DCCFLAGS += -g
-DLD = $(CXX) $(CCFLAGS)
-LD = $(CXX)
-OCCFLAGS = -O
-PIC = +Z
+DCCFLAGS += -g
+DLD = $(CXX) $(CCFLAGS)
+LD = $(CXX)
+OCCFLAGS = -O
+PIC = +Z
PRELIB = $(COMPILE.cc) $^
AR = /usr/ccs/bin/ar
-ARFLAGS = ruv
-RANLIB = echo
-LDFLAGS = -Wl,+s -z
-SOFLAGS += -b
+ARFLAGS = ruv
+RANLIB = echo
+LDFLAGS = -Wl,+s -z
+SOFLAGS += -b
ifeq ($(distrib),1)
ifeq ($(word 2,$(HPVERS_WORDS)), 10)
-SOFLAGS += -Wl,-x -Wl,+h/usr/lib/$(@F)
+SOFLAGS += -Wl,-x -Wl,+h/usr/lib/$(@F)
else
ifeq ($(buildbits),32)
-SOFLAGS += -Wl,-x -Wl,+h$(@F) -Wl,+b/usr/lib
+SOFLAGS += -Wl,-x -Wl,+h$(@F) -Wl,+b/usr/lib
endif
ifeq ($(buildbits),64)
-SOFLAGS += -Wl,-x -Wl,+h$(@F) -Wl,+b/usr/lib/pa20_64
+SOFLAGS += -Wl,-x -Wl,+h$(@F) -Wl,+b/usr/lib/pa20_64
endif
endif
endif
-SOEXT = sl
+SOEXT = sl
ifeq ($(buildbits),32)
ifeq ($(itanium),1)
@@ -190,7 +186,7 @@ ifeq ($(buildbits),64)
CCFLAGS += +DA2.0 +DS2.0
endif
endif
-LDFLAGS += -Wl,+vnocompatwarnings
+LDFLAGS += -Wl,+vnocompatwarnings
else
ifneq ($(itanium),1)
# HP aCC on Itanium doesn't support this option, defaults to 32bit then.
@@ -214,14 +210,14 @@ ifeq ($(word 2,$(HPVERS_WORDS)), 11)
LIBS += -L./ -lpthread
endif
endif
- LIBS += -lxti -lrt -ldld
+ LIBS += -lxti -lrt -ldld
else
# 10.x:
- LIBS += -lxti -ldld
+ LIBS += -lxti -ldld
ifeq ($(threads),1)
- LIBS += -lcma
+ LIBS += -lcma
endif
endif
diff --git a/include/makeinclude/platform_linux.GNU b/include/makeinclude/platform_linux.GNU
index 1de4ed8047c..e9386a019ab 100644
--- a/include/makeinclude/platform_linux.GNU
+++ b/include/makeinclude/platform_linux.GNU
@@ -100,10 +100,6 @@ endif
# look for the rt library in the usual places
LIBS += $(shell test "`ls -L /usr/lib/librt.so* /lib/librt.so*`" && echo -lrt)
-ifeq ($(optimize),1)
- SOFLAGS += -Wl,-O3
-endif
-
PLATFORM_QT_CPPFLAGS ?= -I$(QTDIR)/include
PLATFORM_QT_LIBS ?= -lqt-mt
PLATFORM_QT_LDFLAGS ?= -L$(QTDIR)/lib
diff --git a/include/makeinclude/platform_linux_icc.GNU b/include/makeinclude/platform_linux_icc.GNU
index 0516a9deeaf..337b898abe9 100644
--- a/include/makeinclude/platform_linux_icc.GNU
+++ b/include/makeinclude/platform_linux_icc.GNU
@@ -1,12 +1,14 @@
# $Id$
-# This file should allow ACE to be built on Linux, using the Intel compiler.
+# According to Roger Tragin <r.tragin@computer.org>, this file
+# should allow ACE to be built on Linux, using the Intel compiler.
+#
+# This is just a copy of platform_linux.GNU, with a few things changed.
exceptions ?= 1
debug ?= 1
-optimize ?= 1
+optimize ?= 0
threads ?= 1
-no_hidden_visibility ?= 1
PLATFORM_XT_CPPFLAGS=
PLATFORM_XT_LIBS=-lXt
@@ -67,9 +69,6 @@ endif
ifeq (9.0,$(findstring 9.0,$(CXX_VERSION)))
CFLAGS += -wd1684
endif
-ifeq (9.1,$(findstring 9.1,$(CXX_VERSION)))
- CFLAGS += -wd1684
-endif
ifeq ($(inline),0)
CPPFLAGS += -fno-inline
@@ -98,20 +97,14 @@ PLATFORM_QT_LIBS ?= -lqt-mt
PLATFORM_QT_LDFLAGS ?= -L$(QTDIR)/lib
OCFLAGS += -O3
+ifneq ($(SYSARCH),ia64)
+ OCFLAGS += -axK
+endif
# Disable floating point optimizer solves problem with
-# min/max float values in the TAO_IDL compiler tests
-# If these options are not passed we can get overflows
-# when testing min/max
+# min/max float values in the TAO_IDL compiler
ifeq ($(SYSARCH),ia64)
CPPFLAGS += -mp
-else
- CPPFLAGS += -fp-model double
-endif
-
-ifeq ($(optimize),0)
- # Disable all optimizing in code
- CPPFLAGS += -O0
endif
PIC = -fPIC
@@ -126,16 +119,9 @@ PRELIB = @true
ifeq ($(shared_libs), 1)
ifneq ($static_libs_only), 1)
LDFLAGS += -Wl,-E
-
- ifneq ($(no_hidden_visibility),1)
- CCFLAGS += -fvisibility=hidden
- else
- CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0
- endif # no_hidden_visibility
endif
endif
-
# Added line below to support "Executable Shared Object" files (as
# needed by the service configurator).
# Marius Kjeldahl <mariusk@sn.no, marius@funcom.com>
diff --git a/include/makeinclude/platform_lynxos.GNU b/include/makeinclude/platform_lynxos.GNU
index 5b54bcdc6b8..375ee16063e 100644
--- a/include/makeinclude/platform_lynxos.GNU
+++ b/include/makeinclude/platform_lynxos.GNU
@@ -67,12 +67,10 @@ endif # ! LynxOS
LYNXOS_MAJOR = $(shell echo $(VERSION) | awk -F. '{print $$1;}')
LYNXOS_MINOR = $(shell echo $(VERSION) | awk -F. '{print $$2;}')
-# LynxOS 3.x does not support shared libraries or native exceptions
+# LynxOS 3.x does not support shared libraries
ifeq ($(LYNXOS_MAJOR),3)
shared_libs_only =
static_libs_only = 1
- exceptions = 0
- debug ?= 0
endif
ifeq ($(shared_libs_only),1)
@@ -95,33 +93,25 @@ PLATFORM_XT_LIBS=-lXm -lXt
PLATFORM_XT_LDFLAGS=
PLATFORM_X11_CPPFLAGS=
-PLATFORM_X11_LIBS=-lXpm -lXmu -lXext -lX11 -lSM -lICE
+PLATFORM_X11_LIBS=-lXpm -lXext -lX11 -lSM -lICE
PLATFORM_X11_LDFLAGS=
-PLATFORM_TCL_CPPFLAGS=
-PLATFORM_TCL_LIBS=
-PLATFORM_TCL_LDFLAGS=
+ifeq ($(LYNXOS_MAJOR),4)
+ PLATFORM_TCL_CPPFLAGS=-I/usr/include/tcl8.4
+ PLATFORM_TCL_LIBS=-ltcl8.4
+ PLATFORM_TCL_LDFLAGS=
-PLATFORM_TK_CPPFLAGS=
-PLATFORM_TK_LIBS=
-PLATFORM_TK_LDFLAGS=
-
-PLATFORM_SSL_CPPFLAGS=-I/usr/ssl/include
-PLATFORM_SSL_LIBS=
-PLATFORM_SSL_LDFLAGS=-L/usr/ssl/lib
+ PLATFORM_TK_CPPFLAGS=-I$(shell . /usr/lib/tk8.4/tkConfig.sh && echo -n $$TK_INC_DIR $$TK_DEFS)
+ PLATFORM_TK_LIBS=$(shell . /usr/lib/tk8.4/tkConfig.sh && echo -n $$TK_LIB_FLAG)
+ PLATFORM_TK_LDFLAGS=
+endif
ifeq ($(threads),1)
- CFLAGS += -mthreads
- SOFLAGS += -mthreads
+ CFLAGS += -mthreads
endif
ifeq ($(shared_libs),1)
- CFLAGS += -mshared -DACE_HAS_SVR4_DYNAMIC_LINKING
- CFLAGS += -DACE_HAS_BROKEN_THREAD_KEYFREE
- SOFLAGS += -mshared -DACE_HAS_SVR4_DYNAMIC_LINKING
- LIBS += -ldl
-else
- LIBS += -lnetinet -lnsl
+ CFLAGS += -mshared
endif
CC = gcc
@@ -132,6 +122,7 @@ DCFLAGS += -g
PIC = -fPIC
DLD = $(CXX)
LD = $(CXX)
+LIBS += -lnetinet -lnsl
OCFLAGS += -O2
AR = ar
ARFLAGS = ruv
diff --git a/include/makeinclude/platform_macosx_tiger.GNU b/include/makeinclude/platform_macosx_tiger.GNU
deleted file mode 100644
index 91afd7421df..00000000000
--- a/include/makeinclude/platform_macosx_tiger.GNU
+++ /dev/null
@@ -1,60 +0,0 @@
-# $Id$
-# platform_macosx.GNU
-# support for Mac OS X 10.4 (Tiger)
-# By default, this uses the default compiler selected using gcc_select.
-
-cidl = 1
-boost = 1
-zzip = 1
-zlib = 1
-ifndef exceptions
- exceptions = 1
-endif
-ifeq (,$(threads))
- threads = 1
-endif
-ifeq (,$(debug))
- debug = 1
-endif
-ifeq (,$(optimize))
- optimize = 0
-endif
-ifeq (,$(ssl))
- ssl = 1
-endif
-ifeq (,$(versioned_so))
- versioned_so = 0
-endif
-ifeq (,$(no_hidden_visibility))
-# Disable symbol visibility support by default.
-#
-# Apple's g++ 4 compiler doesn't appear to correctly support
-# visibility attributes, at least as well as the vanilla g++.
- no_hidden_visibility = 1
-endif
-with_ld = macosx
-
-pipes ?= 1
-
-CC = gcc
-CXX = g++
-CFLAGS += -Wall -Wpointer-arith -Wno-long-double
-
-DCFLAGS += -g
-DLD = $(CXX)
-LD = $(CXX)
-#LIBS += -lstdc++.6 -lSystem -lSystemStubs
-
-OCFLAGS += -O2 -mcpu=G3 -mtune=G4
-RANLIB = ranlib
-SOEXT = dylib
-SOFLAGS += -dynamiclib
-SOBUILD = -o $(VSHDIR)$*.dylib $<
-
-# Test for template instantiation, add to SOFLAGS if versioned_so set,
-# add -E to LDFLAGS if using GNU ld
-#
-include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
-
-LDFLAGS += -flat_namespace
-CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
diff --git a/include/makeinclude/platform_macosx_tiger_gcc4.GNU b/include/makeinclude/platform_macosx_tiger_gcc4.GNU
new file mode 100644
index 00000000000..231342ff49c
--- /dev/null
+++ b/include/makeinclude/platform_macosx_tiger_gcc4.GNU
@@ -0,0 +1,49 @@
+# $Id$
+# platform_macosx.GNU
+# support for Mac OS X 10.4 (Tiger)
+
+ifndef exceptions
+ exceptions = 1
+endif
+ifeq (,$(threads))
+ threads = 1
+endif
+ifeq (,$(debug))
+ debug = 1
+endif
+ifeq (,$(optimize))
+ optimize = 0
+endif
+ifeq (,$(ssl))
+ ssl = 1
+endif
+ifeq (,$(versioned_so))
+ versioned_so = 0
+endif
+with_ld = macosx
+
+pipes ?= 1
+
+CC = gcc
+CXX = g++
+CFLAGS += -Wall -Wpointer-arith -Wno-long-double
+
+DCFLAGS += -g
+DLD = g++
+DLD = $(CXX)
+LD = $(CXX)
+#LIBS += -lstdc++.6 -lSystem -lSystemStubs
+
+OCFLAGS += -O2 -mcpu=G3 -mtune=G4
+RANLIB = ranlib
+SOEXT = dylib
+SOFLAGS += -dynamiclib
+SOBUILD = -o $(VSHDIR)$*.dylib $<
+
+# Test for template instantiation, add to SOFLAGS if versioned_so set,
+# add -E to LDFLAGS if using GNU ld
+#
+include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
+
+LDFLAGS += -flat_namespace
+CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
diff --git a/include/makeinclude/platform_osf1_4.x_g++.GNU b/include/makeinclude/platform_osf1_4.x_g++.GNU
index 0a3b841d4cd..d4af6cba618 100644
--- a/include/makeinclude/platform_osf1_4.x_g++.GNU
+++ b/include/makeinclude/platform_osf1_4.x_g++.GNU
@@ -1,7 +1,7 @@
# $Id$
# This platform macros file is intended to work with Digital UNIX 4.x
-# (OSF/1 4.x) and GCC in version 2.9.6 or newer
+# (OSF/1 4.x) and GCC in version 2.7.2.1 (or newer).
debug ?= 1
exceptions ?= 1
rtti ?= 1
@@ -31,4 +31,4 @@ PRELIB = @true
#
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
-CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
+CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG) -fno-strict-prototypes
diff --git a/include/makeinclude/platform_sunos5_g++.GNU b/include/makeinclude/platform_sunos5_g++.GNU
index 9ad51e4d59c..06291eeba06 100644
--- a/include/makeinclude/platform_sunos5_g++.GNU
+++ b/include/makeinclude/platform_sunos5_g++.GNU
@@ -4,6 +4,11 @@
# SunOS 5.x (Solaris 2.x) with g++
+# NOTE: with g++ 2.8.0, you'll need to disable optimization in order to
+# instantiate ACE_Map_Manager (ace/Map_Manager.cpp). The easiest
+# way to do that is to set "optimize = 0", either below or on
+# your make command line.
+
# NOTE: On Solaris86, you'll need to use GNU as instead of /usr/ccs/bin/as,
# if you want -gstabs+ and -pipe support.
@@ -45,7 +50,7 @@ SOFLAGS += -G $(CPPFLAGS)
SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<
PRELIB = @true
-# Test for template instantiation, add to SOFLAGS if SONAME set,
+# Test for template instantiation, add to SOFLAGS if SONAME set,
# add -E to LDFLAGS if using GNU ld
#
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
diff --git a/include/makeinclude/platform_sunos5_sunc++.GNU b/include/makeinclude/platform_sunos5_sunc++.GNU
index 8035d4a86ac..c7b291061cc 100644
--- a/include/makeinclude/platform_sunos5_sunc++.GNU
+++ b/include/makeinclude/platform_sunos5_sunc++.GNU
@@ -48,7 +48,6 @@ threads ?= 1
versioned_so ?= 1
tk_reactor ?= 0
ace_with_x11 ?= 0
-no_hidden_visibility ?= 1
PLATFORM_TK_CPPFLAGS=
PLATFORM_TK_LIBS=-ltk -ltcl
@@ -66,13 +65,7 @@ endif # threads
CC = cc
CXX = CC
-CC_VERSION := $(shell $(CXX) -V 2>&1)
-
-### CC 5.4 provides insufficient preprocessor output (at 111715-17 2005/10/13)
-### We need to use cc instead - see bugzilla #2478.
-ifeq (C++ 5.4,$(findstring C++ 5.4,$(CC_VERSION)))
- ACE_CC_PREPROCESSOR = cc
-endif
+CC_VERSION = $(shell $(CXX) -V 2>&1)
ifeq (C++ 5.6,$(findstring C++ 5.6,$(CC_VERSION)))
PLATFORM_STLPORT_CPPFLAGS = -library=stlport4
@@ -235,24 +228,6 @@ ifeq (0,$(exceptions))
endif
endif # ! exceptions
-ifeq ($(shared_libs), 1)
- ifneq ($(static_libs_only), 1)
-
- # Sun Studio 8 or better has version greater than 5.3.
- SUN_STUDIO_8_OR_BETTER := $(shell a=`echo $(CC_VERSION) | sed -e 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*$$/\1\2/g'`; if test "$$a" -gt 53; then echo 1; else echo 0; fi)
-
- # Take advantage of Sun Studio 8 (v5.5) symbol scopes to
- # generate improved shared library binaries.
- ifeq ($(SUN_STUDIO_8_OR_BETTER),1)
- ifneq ($(no_hidden_visibility),1)
- CCFLAGS += -xldscope=hidden
- else
- CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0
- endif # no_hidden_visibility
- endif # Sun Studio 8 (C++ 5.5) or better.
- endif # static_libs_only
-endif # shared_libs
-
LD = $(CXX)
ifeq ($(distrib),0)
LDFLAGS += -R $(ACE_ROOT)/lib -R./
diff --git a/include/makeinclude/platform_vxworks5.5.x.GNU b/include/makeinclude/platform_vxworks5.5.x.GNU
index 5c7014194a2..7d3dbf5bd9e 100644
--- a/include/makeinclude/platform_vxworks5.5.x.GNU
+++ b/include/makeinclude/platform_vxworks5.5.x.GNU
@@ -85,7 +85,6 @@ ifeq ("$(TOOL)","gnu")
endif
PRJ_TYPE = vxApp
-TARGET_DIR = $(WIND_BASE)/target/h
TGT_DIR = $(WIND_BASE)/target
ifeq ($(CPU),)
@@ -95,10 +94,6 @@ else
override CPU := $(CPU)
endif
-ifeq ($(findstring PPC, $(CPU)), PPC)
- CCFLAGS += -mlongcall
-endif
-
ifeq ($(shared_libs),1)
SHARED_LIBS = 1
endif
@@ -144,10 +139,11 @@ ifneq ($(VX_LIB_BUILD),1)
endif
endif
-include $(TARGET_DIR)/make/defs.default
-include $(TARGET_DIR)/make/defs.$(WIND_HOST_TYPE)
-include $(TARGET_DIR)/make/defs.$(PRJ_TYPE)
-include $(TARGET_DIR)/tool/$(TOOL_FAMILY)/make.$(CPU)$(TOOL)
+include $(TGT_DIR)/h/make/defs.default
+##include $(TGT_DIR)/h/make/defs.link
+include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
+include $(TGT_DIR)/h/make/defs.$(PRJ_TYPE)
+include $(TGT_DIR)/h/tool/$(TOOL_FAMILY)/make.$(CPU)$(TOOL)
## make sure we don't use that stupid, crippled vxrm.bat script.
override RM=rm -f
diff --git a/include/makeinclude/platform_vxworks6.2.GNU b/include/makeinclude/platform_vxworks6.2.GNU
deleted file mode 100644
index f3e8a9bafab..00000000000
--- a/include/makeinclude/platform_vxworks6.2.GNU
+++ /dev/null
@@ -1,351 +0,0 @@
-# $Id$
-# VxWorks 6.2
-
-#### Notes:
-#### 1) This file requires that the WIND_BASE and WIND_HOST_TYPE environment
-#### variables be set. If the target CPU is not SIMNT, then your CPU
-#### environment variable must be set.
-#### 2) If you have problems with munch output not being compilable
-#### because it contains identifiers with ".", e.g., ".cpp", in them:
-#### add a global variable or function to that .cpp file. See
-#### ace/IOStream_T.cpp for an explanation and example.
-#### 3) The TOOL environment variable may be set to "diab" (default is "gnu").
-#### 4) If perl is not on your path, you'll also need to set your PERL_PATH
-#### environment variable to the full path to perl.
-
-VXWORKS = 1
-CROSS-COMPILE = 1
-
-ifneq (,$(HOST_ROOT))
- TAO_IDL ?= $(HOST_ROOT)/bin/tao_idl$(EXEEXT)
- TAO_IDL_DEP ?= $(TAO_IDL)
- TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/gperf
-endif
-
-ifeq ("$(OS)", "Windows_NT")
-ifneq ($(MAKE_MODE), unix)
-vxworks_ntbuild = 1
-MKDIR_NTSTYLE = 1
-endif
-endif
-
-debug ?= 1
-optimize ?= 1
-rtti ?= 1
-threads ?= 1
-exceptions ?= 1
-rtp ?= 1
-pthread ?= 1
-
-ifeq ($(static_libs),1)
- shared_libs = 0
-else
- static_libs = 0
-endif
-versioned_so ?= 0
-
-# VxWorks doesn't have rwho
-rwho = 0
-
-ifeq (,$(WIND_BASE))
- default:
- @ERROR: you must set your WIND_BASE environment variable
-endif # WIND_BASE
-
-ifeq (,$(WIND_HOST_TYPE))
- default:
- @ERROR: you must set your WIND_HOST_TYPE environment variable
-endif # WIND_HOST_TYPE
-
-ifeq ($(DIAB_HOST_TYPE),)
-ifeq ("$(OS)", "Windows_NT")
- DIAB_HOST_TYPE = WIN32
-else
- DIAB_HOST_TYPE = UNIX
-endif
-endif
-
-HOST_DIR = $(WIND_BASE)/host/$(WIND_HOST_TYPE)
-
-ifeq (,$(PERL_PATH))
- PERL_PATH = perl
-endif # ! PERL_PATH
-
-ifeq ($(VXWORKS_VERSION_FLAG),)
- VXWORKS_VERSION_FLAG = -DACE_VXWORKS=0x620
-endif # VXWORKS_VERSION_FLAG
-
-ifeq ($(TOOL),)
- override TOOL = gnu
-else
- override TOOL := $(TOOL)
-endif
-override TOOL_FAMILY := $(TOOL)
-
-ifeq ("$(TOOL)","gnu")
- templates ?= automatic
-endif
-
-ifeq ($(rtp),0)
- PRJ_TYPE = vxApp
-endif
-
-ifeq ($(rtp),1)
- TARGET_DIR = $(WIND_BASE)/target/usr
-else
- TARGET_DIR = $(WIND_BASE)/target/h
-endif
-TGT_DIR = $(WIND_BASE)/target
-
-ifeq ($(CPU),)
- # default CPU
- CPU = SIMNT
-else
- override CPU := $(CPU)
-endif
-
-ifeq ($(shared_libs),1)
- SHARED_LIBS = 1
-endif
-ifeq ($(shared_libs_only),1)
- SHARED_LIBS = 1
-endif
-
-ifeq ($(rtp),0)
- ifeq ($(SHARED_LIBS),1)
- ACELIB = -L./
- #### There's no difference between non-shared and shared object code.
- VSHDIR = $(VDIR)
- endif # shared_libs
-endif
-
-BIN_UNCHECKED ?=
-SHLIB_UNCHECKED ?=
-
-ifneq ("$(BIN_UNCHECKED)","")
-VX_APP_BUILD := 1
-else
- ifeq ($(SHARED_LIBS),1)
- ifneq ("$(SHLIB_UNCHECKED)","")
- VX_SO_BUILD := 1
- endif
- endif
- ifneq ($(VX_SO_BUILD),1)
- VX_LIB_BUILD := 1
- endif
-endif
-
-ifneq ($(VX_LIB_BUILD),1)
- ifeq ($(rtp),0)
- VXWORKSLINK = true
- endif
- ifeq ($(VX_APP_BUILD),1)
- ## set variables for VxWorks linktarget identification
- ifeq ($(rtp),0)
- EXEEXT = .out
- PRJ_FILE = $(basename $(notdir $(BIN_UNCHECKED))).vxworks
- else
- PRJ_FILE = $(basename $(notdir $(BIN_UNCHECKED))).vxe
- EXEEXT = .vxe
- VXE_DIR := $(OUTPUT_DIRECTORY)
- EXE = $(BIN_UNCHECKED)
- GENERATED_DIRTY += $(PRJ_DIR)/$(PRJ_FILE)
- endif
- PRJ_DIR = .
- CLEANUP_OBJS := ctdt.c $(PRJ_DIR)/$(PRJ_FILE) $(CLEANUP_OBJS)
- else
- ## set variables for VxWorks .SO linktarget identification
- PRJ_FILE = $(basename $(notdir $(SHLIB_UNCHECKED))).vxworks
- PRJ_DIR = .
- CLEANUP_OBJS := ctdt.c $(PRJ_DIR)/$(PRJ_FILE) *.out $(CLEANUP_OBJS)
- endif
-endif
-
-ifeq ($(rtp),1)
- include $(WIND_USR)/make/defs.default
- include $(WIND_USR)/make/defs.$(WIND_HOST_TYPE)
- include $(WIND_USR)/tool/$(TOOL_FAMILY)/make.$(CPU)$(TOOL)
- CPPFLAGS += -mrtp
- LDFLAGS := $(filter-out -X, $(LDFLAGS))
- LD := $(CPLUS)
- DLD := $(CPLUS)
- LDFLAGS += -L$(WIND_USR)/lib/$(VX_CPU_FAMILY)/$(CPU)/common
- LDLIBS += -ldl
-else
- include $(TGT_DIR)/h/make/defs.default
- include $(TGT_DIR)/h/make/defs.$(WIND_HOST_TYPE)
- include $(TGT_DIR)/h/make/defs.$(PRJ_TYPE)
- include $(TGT_DIR)/h/tool/$(TOOL_FAMILY)/make.$(CPU)$(TOOL)
-endif
-
-## make sure we don't use that stupid, crippled vxrm.bat script.
-override RM=rm -f
-
-ifeq ("$(VXWORKSLINK)","true")
- # prevent possible clash with static LIB rules
- # in VxWorks make includes and rules.lib.GNU
- override ARCHIVE =
- override LARGE_PROJECT =
- PRJ_OBJS = $(addprefix $(VDIR), $(OBJS)) $(VSHOBJS)
- ifeq ($(SHARED_LIBS),1)
- ##LD_PARTIAL += -L$(ACE_ROOT)/lib -L./ $(LDLIBPATH) $(LD_LINK_PATH)
- PRJ_OBJS_FOR_LD_PARTIAL=$(addprefix $(VDIR), $(OBJS)) $(VSHOBJS)
- ifeq ($(VX_SO_BUILD),1)
- ## Shared lib builds for VxWorks will also build 'import' libraries
- LIB_INSTALL += $(VLIB:%=$(INSLIB)/%)
- CLEANUP_INSTALL += $(CLEANUP_VLIB:%=$(INSLIB)/%)
- REALCLEAN_FILES += $(CLEANUP_LIB:%=%) $(CLEANUP_LIB:%=%_debug) $(CLEANUP_LIB:%=%_profile) $(CLEANUP_LIB:%=%_optimize)
- endif
- else
- LD_PARTIAL += -L$(ACE_ROOT)/ace -L./ $(LDLIBPATH) $(LD_LINK_PATH)
- PRJ_OBJS_FOR_LD_PARTIAL=$(addprefix $(VDIR), $(OBJS)) $(VSHOBJS) $(VLDLIBS) $(ACE_SHLIBS) $(LIBS)
- endif
- PRJ_OBJS_FOR_LD=$(addprefix $(VDIR), $(OBJS)) $(VSHOBJS)
- PRJ_OBJS_FOR_NM=$(addprefix $(VDIR), $(OBJS)) $(VSHOBJS)
- PRJ_OBJS_FOR_AR=$(addprefix $(VDIR), $(OBJS)) $(VSHOBJS)
- POST_BUILD_RULE = $(POSTLINK)
- COMPILE_TRADITIONAL = $(CC) $(OPTION_OBJECT_ONLY) $(OPTION_DOLLAR_SYMBOLS)\
- $(filter-out -ansi, $(CFLAGS))
-
- ## make sure default target stays the ACE/TAO default target
- ##
-default: all
-
-endif
-
-CPPFLAGS += $(VXWORKS_VERSION_FLAG)
-
-ifeq ($(debug),1)
- DCFLAGS += -g
- DCCFLAGS += -g
- CPPFLAGS +=
-endif
-
-ifeq ($(pthread),1)
- CPPFLAGS += -DACE_HAS_PTHREADS
-endif
-
-ifeq ("$(TOOL)","gnu")
-# Test for template instantiation, add to SOFLAGS if SONAME set,
-# add -E to LDFLAGS if using GNU ld
-include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
-
-ifeq ("$(templates)","automatic")
-ifdef repo
-ifeq ("$(VXWORKSLINK)","true")
- ifeq ($(VX_APP_BUILD),1)
- ifneq ($(SHARED_LIBS),1)
- LD_PARTIAL += -frepo
- endif
- endif
-else
- ifeq ($(rtp),0)
- ace_lib_prelink := 1
- LINK.cc = override
- LINK.cc.override = $(LD_PARTIAL) -frepo -L$(ACE_ROOT)/ace -L$(INSLIB) -L./ $(LDLIBPATH) $(LD_LINK_PATH)
- LDFLAGS = $(ACE_SHLIBS)
- endif
-endif
-else
- C++FLAGS += -fmerge-templates
-endif
-endif
-
-# TEMPLATES_FLAG is set by platform_g++_common.GNU
-ifneq ($(TEMPLATES_FLAG),) # If specified, add it to the CCFLAGS
- CPPFLAGS += $(TEMPLATES_FLAG)
-endif
-endif # TOOL == gnu
-
-ifeq ("$(TOOL)","diab")
-ifeq ($(exceptions),1)
- C++FLAGS += -Xexceptions
-else
- C++FLAGS += -Xexceptions-off
-endif
-else
-ifeq ("$(TOOL)","gnu")
-ifeq ($(exceptions),1)
- C++FLAGS += -fexceptions
-else
- C++FLAGS += -fno-exceptions
-endif
-endif
-endif
-
-ifeq (0,$(rtti))
-C++FLAGS += -DACE_LACKS_RTTI
-ifeq ("$(TOOL)","gnu")
- C++FLAGS += -fno-rtti
-else
- C++FLAGS += -Xrtti-off
-endif
-endif # rtti
-
-ifneq ($(findstring $(VX_CPU_FAMILY),ppc arm),)
-ifeq ("$(TOOL)","diab")
- C++FLAGS += -Xchar-signed
-else
-ifeq ("$(TOOL)","gnu")
- C++FLAGS += -fsigned-char
-endif
-endif
-endif
-
-ifeq ($(CPU),SIMNT)
-override MUNCH_FLAGS := -asm $(TOOLENV)
-endif
-
-ifneq ($(optimize),1)
- CC_OPTIM_NORMAL =
-endif
-
-CCFLAGS += $(C++FLAGS)
-
-ifeq (0,$(rtp))
-PIC =
-else
- ifeq ("$(TOOL)","diab")
- PIC = -Xpic
- else
- ifeq ("$(TOOL)","gnu")
- PIC = -fpic
- endif
-endif
-endif
-
-ifeq ("$(VXWORKSLINK)","true")
-
- ifdef repo
- ifeq ($(SHARED_LIBS),1)
- BACKUP_RPO_RULE = for %f in ($(basename $(addprefix $(VDIR), $(OBJS)) $(VSHOBJS))) do if exist %f.rpo mv %f.rpo %f.rpobak $(ACE_NUL_STDERR)
- POST_BUILD_RULE = for %f in ($(basename $(addprefix $(VDIR), $(OBJS)) $(VSHOBJS))) do if exist %f.rpobak mv %f.rpobak %f.rpo $(ACE_NUL_STDERR)
- endif
- endif
-
-.PHONY: $(PRJ_DIR)/$(PRJ_FILE)
- ## special target to satisfy VxWorks dependencies for images
-$(PRJ_DIR)/$(PRJ_FILE):
- ifdef repo
- ifeq ($(SHARED_LIBS),1)
- #### execute prelink step to make compiler instantiate all needed
- #### templates; discard image and repo files (*.rpo) after linkstep
- #### this step holds for both .SO as well as 'app' images so use both VSHOBJS and OBJS
- -$(LD_PARTIAL) -frepo -L$(ACE_ROOT)/ace -L./ $(LDLIBPATH) $(LD_LINK_PATH)$(LINK_OUTPUT_FLAG) ace-templ_inst $? $(ACE_SHLIBS) $(addprefix $(VDIR), $(OBJS)) $(VSHOBJS)
- -$(RM) ace-templ_inst
- #### We need to backup the .RPO files or otherwise the link step of the final image will
- #### start instantiating templates again even if we do not specify '-frepo'!
- -$(BACKUP_RPO_RULE)
- ifeq ($(VX_SO_BUILD),1)
- #### build library of objects in .SO to use as a sort of import library for VxWorks
- echo $(filter %.o, $(VSHOBJS)) | xargs $(AR) $(ARFLAGS) $(VLIB) $(AREXTRA)
- -chmod a+r $(VLIB)
- ifneq (,$(RANLIB))
- -$(RANLIB) $(VLIB)
- endif # RANLIB
- endif # VX_SO_BUILD
- endif
- endif
- @echo 1>$@
-
-endif
diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU
index d23c82b5571..d28c043615f 100644
--- a/include/makeinclude/rules.local.GNU
+++ b/include/makeinclude/rules.local.GNU
@@ -339,15 +339,15 @@ endif # shared_libs
CLEANUP_OBJS += $(addsuffix .o, $(addprefix $(VDIR),$(CLEANUP_BIN)))
-ifdef OBJS
- CLEANUP_OBJS += $(addprefix $(VDIR), $(OBJS))
-endif # OBJS
+ifdef SRC
+ CLEANUP_OBJS += $(addsuffix .$(OBJEXT),$(addprefix $(VDIR),$(basename $(SRC))))
+endif # SRC
ifneq ($(CLEANUP_BIN),)
CLEANUP_OBJS += $(addsuffix .$(OBJEXT),$(addprefix $(VDIR),$(basename $(CLEANUP_BIN))))
endif # CLEANUP_BIN
-ifdef VSHOBJS
- CLEANUP_OBJS += $(VSHOBJS)
-endif # VSHOBJS
+ifdef LSRC
+ CLEANUP_OBJS += $(addsuffix .$(OBJEXT),$(addprefix $(VSHDIR),$(basename $(LSRC))))
+endif # LSRC
clean.local: makefile_name.local
ifdef DO_CLEANUP
@@ -356,7 +356,7 @@ ifdef DO_CLEANUP
GNUmakefile.old core-r $(CLEANUP_DIRS) \
cxx_repository ptrepository ti_files \
gcctemp.c gcctemp so_locations *.ics \
- templateregistry templateregistry.* ir.out core.* *.core $(CLEANUP_OBJS)
+ templateregistry ir.out core.* $(CLEANUP_OBJS)
endif # DO_CLEANUP
realclean.local: clean.local deinstall.local clean_idl_stubs.local
@@ -412,14 +412,6 @@ endif
DEPGEN ?= $(ACE_ROOT)/bin/depgen.pl
-# Use findstring just in case the script was preceded by /usr/bin/perl
-ifeq ($(findstring depgen.pl, $(notdir $(DEPGEN))), depgen.pl)
- DEPEND_CMD_ARGS += -i
- ifeq ($(inline), 0)
- DEPEND_CMD_ARGS += -n
- endif
-endif
-
depend.local: $(MAKEFILE) idl_stubs.local
@$(RM) $(DEPENDENCY_FILE).old
@cp $(DEPENDENCY_FILE) $(DEPENDENCY_FILE).old
diff --git a/include/makeinclude/wrapper_macros.GNU b/include/makeinclude/wrapper_macros.GNU
index 631514f5796..3d446c0703d 100644
--- a/include/makeinclude/wrapper_macros.GNU
+++ b/include/makeinclude/wrapper_macros.GNU
@@ -50,9 +50,6 @@
# static_link Link only static libs to executables, e.g., uses "-static"
# flag with the GNU ld linker.
# threads Build with thread support.
-# ace_for_tao Build "ace_for_tao" subset. Primarily useful for
-# reducing the size of the ACE shared library when
-# using TAO.
# xt Build with Xt (X11 Toolkit) support.
# fl Build with FlTk (Fast Light Toolkit) support.
# tk Build with Tk (Tcl/Tk) support.
@@ -287,14 +284,16 @@ ifeq ($(threads),0)
endif # threads
####
-#### Defaults are exceptions on (1), fast off (0), rtti on (1), and
+#### Defaults are exceptions off (0), fast off (0), rtti on (1), and
#### versioned_so on (1).
####
-exceptions ?= 1
+exceptions ?= 0
+
fast ?= 0
+
rtti ?= 1
+
versioned_so ?= 1
-use_dep_libs ?= 1
SOVERSION ?=
SONAME ?=
@@ -339,10 +338,7 @@ INSMAN ?= $(ACE_ROOT)/man
ifeq (,$(findstring -L$(ACE_ROOT)/ace,$(LDFLAGS)))
LDFLAGS += -L$(ACE_ROOT)/ace -L./
endif
-
-ifeq (default,$(origin LEX))
-LEX = flex
-endif
+LEX ?= flex
EXEEXT ?=
@@ -374,9 +370,7 @@ ACELIB ?= -lACE
# NOTE: VLDLIBS is defined below, in case it is overridden for static-
# or shared-only builds.
-ifeq (default,$(origin YACC))
-YACC = bison
-endif
+YACC ?= bison
#----------------------------------------------------------------------------
# Platform-dependent macros that require platform_macros.GNU.
@@ -444,17 +438,6 @@ ifeq ($(threads),0)
override threads =
endif # threads
-# ace_for_tao subsetting is disabled by default.
-ace_for_tao ?=
-ifeq ($(ace_for_tao),0)
- override ace_for_tao =
-endif # ace_for_tao
-
-ifneq ($(ace_for_tao),)
- ACE_MAKE_OPTIONS += ace_for_tao
-endif # ace_for_tao
-
-
ifeq ($(xt),0)
override xt =
endif # xt
@@ -564,14 +547,15 @@ ifeq ($(ssl),0)
override ssl =
else
ifneq ($(SSL_ROOT),)
- # Don't do a thing..
- else
- CPPFLAGS += $(PLATFORM_SSL_CPPFLAGS)
- LDFLAGS += $(PLATFORM_SSL_LDFLAGS)
- LIBS += $(PLATFORM_SSL_LIBS)
- ACE_MAKE_OPTIONS += ssl
+ # Don't do a thing..
+ else
+ CPPFLAGS += $(PLATFORM_SSL_CPPFLAGS)
+ LDFLAGS += $(PLATFORM_SSL_LDFLAGS)
+ LIBS += $(PLATFORM_SSL_LIBS)
+ ACE_MAKE_OPTIONS += ssl
endif
endif
+
ec_typed_events ?= 1
ifeq ($(exceptions),0)
@@ -799,7 +783,6 @@ ace_svcconf ?= 1
ace_uuid ?= 1
ace_filecache ?= 1
acexml ?= 1
-xerces ?= 1
#----------------------------------------------------------------------------
# Conditional macro definitions
@@ -816,7 +799,7 @@ COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
COMPILE.cc = $(CXX) $(CCFLAGS) $(CPPFLAGS) $(PTDIRS) -c
RC ?=
-COMPILE.rc = $(RC) $(RCFLAGS)
+COMPILE.rc = $(RC)
COMPILE-NO_DASH_G.cc = `echo $(COMPILE.cc) | sed 's/-g //'`
# 960905 Marius Kjeldahl <marius@funcom.com>
# Added the line below to be used for compiling executable shared objects
diff --git a/m4/ace.m4 b/m4/ace.m4
index adcf51836df..e68f1970ab5 100644
--- a/m4/ace.m4
+++ b/m4/ace.m4
@@ -24,8 +24,6 @@ dnl Macros that add ACE configuration options to a `configure' script.
dnl ACE_CONFIGURATION_OPTIONS
AC_DEFUN([ACE_CONFIGURATION_OPTIONS],
[
- AM_CONDITIONAL([BUILD_ACE_FOR_TAO], false)
-
AC_ARG_ENABLE([ace-codecs],
AS_HELP_STRING(--enable-ace-codecs,build ACE with codecs support [[[yes]]]),
[
@@ -460,15 +458,21 @@ AC_DEFUN([ACE_CONFIGURATION_OPTIONS],
ACE_ENABLE_TK_REACTOR
ACE_ENABLE_XT_REACTOR
- AC_ARG_ENABLE([gperf],
- AS_HELP_STRING(--enable-gperf,compile the gperf program [[[yes]]]),
+ AC_ARG_WITH([gperf],
+ AS_HELP_STRING(--with-gperf,compile the gperf program [[[yes]]]),
[
- case "${enableval}" in
+ case "${withval}" in
yes)
- ace_user_enable_gperf=yes
+ ace_user_with_gperf=yes
+ AC_DEFINE([ACE_HAS_GPERF])
+ AS_IF([test -n "$GPERF"],
+ [
+ AC_MSG_WARN([gperf program already exists])
+ AC_MSG_WARN([existing gperf may be overwritten during installation])
+ ],[])
;;
no)
- ace_user_enable_gperf=no
+ ace_user_with_gperf=no
;;
*)
AC_MSG_ERROR([bad value ${withval} for --with-gperf])
@@ -476,17 +480,15 @@ AC_DEFUN([ACE_CONFIGURATION_OPTIONS],
esac
],
[
- ace_user_enable_gperf=yes
- ])
- if test "$ace_user_enable_gperf" = yes; then
+ ace_user_with_gperf=yes
AC_DEFINE([ACE_HAS_GPERF])
AS_IF([test -n "$GPERF"],
[
AC_MSG_WARN([gperf program already exists])
AC_MSG_WARN([existing gperf may be overwritten during installation])
],[])
- fi
- AM_CONDITIONAL([COMPILE_GPERF], [test X$ace_user_enable_gperf = Xyes])
+ ])
+ AM_CONDITIONAL([COMPILE_GPERF], [test X$ace_user_with_gperf = Xyes])
ACE_ENABLE_QOS
ACE_ENABLE_SSL
@@ -549,51 +551,7 @@ AC_DEFUN([ACE_CONFIGURATION_OPTIONS],
ace_user_enable_reentrant_funcs=yes
])
- AC_ARG_ENABLE([ace-examples],
- AS_HELP_STRING(--enable-ace-examples,build ACE examples [[[yes]]]),
- [
- case "${enableval}" in
- yes)
- ace_build_examples=yes
- ;;
- no)
- ace_build_examples=no
- ;;
- *)
- AC_MSG_ERROR([bad value ${enableval} for --enable-ace-examples])
- ;;
- esac
- ],
- [
- ace_build_examples=yes
- ])
- AM_CONDITIONAL([BUILD_EXAMPLES], [test X$ace_build_examples = Xyes])
- AC_ARG_ENABLE([ace-tests],
- AS_HELP_STRING(--enable-ace-tests,build ACE tests [[[yes]]]),
- [
- case "${enableval}" in
- yes)
- ace_build_tests=yes
- ;;
- no)
- ace_build_tests=no
- ;;
- *)
- AC_MSG_ERROR([bad value ${enableval} for --enable-ace-tests])
- ;;
- esac
- ],
- [
- ace_build_tests=yes
- ])
- AM_CONDITIONAL([BUILD_TESTS], [test X$ace_build_tests = Xyes])
-
- ACE_ENABLE_CDR_SWAP_ON_READ
- ACE_ENABLE_CDR_SWAP_ON_WRITE
- ACE_ENABLE_CDR_ALIGNMENT
- ACE_ENABLE_STRDUP_EMULATION
- ACE_ENABLE_WCSDUP_EMULATION
])
@@ -901,131 +859,6 @@ dnl fi
])
-# ACE_ENABLE_CDR_SWAP_ON_READ
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_ENABLE_CDR_SWAP_ON_READ],
-[AC_ARG_ENABLE([ace-cdr-swap-on-read],
- AS_HELP_STRING([--enable-ace-cdr-swap-on-read],
- [configure CDR to support swap on read [[yes]]]),
- [case "${enableval}" in
- yes)
- ace_user_cdr_swap_on_read=yes
- ;;
- no)
- ace_user_cdr_swap_on_read=no
- ;;
- *)
- AC_MSG_ERROR(bad value ${enableval} for --enable-ace-cdr-swap-on-read)
- ;;
- esac],[
- ace_user_cdr_swap_on_read=yes
- ])
-if test X$ace_user_cdr_swap_on_read = Xno; then
- AC_DEFINE(ACE_DISABLE_SWAP_ON_READ, 1,
- [Define to 1 to disable swapping swapping CDR on read])
-fi
-])
-
-# ACE_ENABLE_CDR_SWAP_ON_WRITE
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_ENABLE_CDR_SWAP_ON_WRITE],
-[AC_ARG_ENABLE([ace-cdr-swap-on-write],
- AS_HELP_STRING([--enable-ace-cdr-swap-on-write],
- [configure CDR to support swap on write [[no]]]),
- [case "${enableval}" in
- yes)
- ace_user_cdr_swap_on_write=yes
- ;;
- no)
- ace_user_cdr_swap_on_write=no
- ;;
- *)
- AC_MSG_ERROR(bad value ${enableval} for --enable-ace-cdr-swap-on-write)
- ;;
- esac],[
- ace_user_cdr_swap_on_write=no
- ])
-if test X$ace_user_cdr_swap_on_write = Xyes; then
- AC_DEFINE(ACE_ENABLE_SWAP_ON_WRITE, 1,
- [Define to 1 to enable swapping swapping CDR on write])
-fi
-])
-
-# ACE_ENABLE_CDR_ALIGNMENT
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_ENABLE_CDR_ALIGNMENT],
-[AC_ARG_ENABLE([ace-cdr-alignment],
- AS_HELP_STRING([--enable-ace-cdr-alignment],
- [configure CDR to require aligned access [[yes]]]),
- [case "${enableval}" in
- yes)
- ace_user_cdr_alignment=yes
- ;;
- no)
- ace_user_cdr_alignment=no
- ;;
- *)
- AC_MSG_ERROR(bad value ${enableval} for --enable-ace-cdr-alignment)
- ;;
- esac],[
- ace_user_cdr_alignment=yes
- ])
-if test X$ace_user_cdr_alignment = Xno; then
- AC_DEFINE(ACE_LACKS_CDR_ALIGNMENT, 1,
- [Define to 1 to support unaligned CDR])
-fi
-])
-
-# ACE_ENABLE_STRDUP_EMULATION
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_ENABLE_STRDUP_EMULATION],
-[AC_ARG_ENABLE([ace-strdup-emulation],
- AS_HELP_STRING([--enable-ace-strdup-emulation],
- [use ACE's strdup emulation [[no]]]),
- [case "${enableval}" in
- yes)
- ace_user_strdup_emulation=yes
- ;;
- no)
- ace_user_strdup_emulation=no
- ;;
- *)
- AC_MSG_ERROR(bad value ${enableval} for --enable-ace-strdup-emulation)
- ;;
- esac],[
- ace_user_strdup_emulation=no
- ])
-if test X$ace_user_strdup_emulation = Xyes; then
- AC_DEFINE(ACE_HAS_STRDUP_EMULATION, 1,
- [Define to 1 use ACE's strdup() emulation])
-fi
-])
-
-# ACE_ENABLE_WCSDUP_EMULATION
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_ENABLE_WCSDUP_EMULATION],
-[AC_ARG_ENABLE([ace-wcsdup-emulation],
- AS_HELP_STRING([--enable-ace-wcsdup-emulation],
- [use ACE's wcsdup emulation [[no]]]),
- [case "${enableval}" in
- yes)
- ace_user_wcsdup_emulation=yes
- ;;
- no)
- ace_user_wcsdup_emulation=no
- ;;
- *)
- AC_MSG_ERROR(bad value ${enableval} for --enable-ace-wcsdup-emulation)
- ;;
- esac],[
- ace_user_wcsdup_emulation=no
- ])
-if test X$ace_user_wcsdup_emulation = Xyes; then
- AC_DEFINE(ACE_HAS_WCSDUP_EMULATION, 1,
- [Define to 1 use ACE's wcsdup() emulation])
-fi
-])
-
AC_DEFUN([ACE_ENABLE_QOS],
[AC_ARG_ENABLE([qos],
AS_HELP_STRING([--enable-qos],
@@ -1096,6 +929,7 @@ AM_CONDITIONAL([BUILD_ACEXML], [test X$ace_user_enable_acexml = Xyes])
# Find OpenGL Libraries, flags, etc.
AC_DEFUN([ACE_PATH_GL],
[
+AM_CONDITIONAL([BUILD_GL], [false])
])
@@ -1104,28 +938,6 @@ AC_DEFUN([ACE_PATH_GL],
# Find FL/TK Libraries, flags, etc.
AC_DEFUN([ACE_PATH_FL],
[AC_REQUIRE([ACE_PATH_GL])
- AC_ARG_WITH([fltkconfig],
- AS_HELP_STRING([--with-fltkconfig=DIR],
- [path to fltk-config [[automatic]]]),
- [ ac_fltkconfig_dir="${withval}" ])
- if test X"${ac_fltkconfig_dir}" = X; then
- AC_PATH_PROG([FLTKCONFIG], [fltk-config], [])
- else
- AC_MSG_CHECKING([whether fltk-config exists in ${ac_fltkconfig_dir}])
- if test -f "${ac_fltkconfig_dir}/fltk-config"; then
- FLTKCONFIG="${ac_fltkconfig_dir}/fltk-config"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
- fi
- if test X"${FLTKCONFIG}" != X; then
- ACE_FLTK_CPPFLAGS=`$FLTKCONFIG --use-gl --cxxflags 2>/dev/null`
- ACE_FLTK_LIBS=`$FLTKCONFIG --use-gl --ldflags 2>/dev/null`
-
- AC_SUBST(ACE_FLTK_CPPFLAGS)
- AC_SUBST(ACE_FLTK_LIBS)
- fi
])
@@ -1134,126 +946,14 @@ AC_DEFUN([ACE_PATH_FL],
# Find Qt Libraries, flags, etc.
AC_DEFUN([ACE_PATH_QT],
[
- ac_qt_found=no
- PKG_CHECK_MODULES([Qt], [qt-mt],
- [ac_qt_found=yes],
- [AC_MSG_RESULT([not found])])
- if test X"${ac_qt_found}" = Xyes; then
- ACE_QT_CPPFLAGS="${Qt_CFLAGS}"
- ACE_QT_LIBS="${Qt_LIBS}"
- AC_SUBST(ACE_QT_CPPFLAGS)
- AC_SUBST(ACE_QT_LIBS)
-
- AS_IF([test -n "$QTDIR"],
- [],
- [QTDIR=`$PKG_CONFIG --variable=prefix qt-mt 2>/dev/null`])
- AC_SUBST(QTDIR)
- fi
-])
-
-
-# ACE_PATH_TCL
-#---------------------------------------------------------------------------
-# Find Tcl Libraries, flags, etc.
-AC_DEFUN([ACE_PATH_TCL],
-[AC_ARG_WITH([tclconfig],
- AS_HELP_STRING([--with-tclconfig=DIR],
- [path to tclConfig.sh [[automatic]]]),
- [ ac_tclconfig_dir="${withval}" ])
- if test X"${ac_tclconfig_dir}" = X; then
- AC_PATH_PROG([TCLCONFIG], [tclConfig.sh], [],
- [${PATH}:/usr/local/lib:/usr/pkg/lib:/usr/lib/tcl8.4:/usr/lib/tcl8.3:/usr/lib])
- else
- AC_MSG_CHECKING([whether tclConfig.sh exists in ${ac_tclconfig_dir}])
- if test -f "${ac_tclconfig_dir}/tclConfig.sh"; then
- TCLCONFIG="${ac_tclconfig_dir}/tclConfig.sh"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
- fi
- if test X"${TCLCONFIG}" != X; then
- . ${TCLCONFIG}
-
- ACE_TCL_CPPFLAGS="${TCL_INCLUDE_SPEC}"
- eval "ACE_TCL_LIBS=\"${TCL_LIB_SPEC}\""
-
- AC_SUBST(ACE_TCL_CPPFLAGS)
- AC_SUBST(ACE_TCL_LIBS)
- fi
])
# ACE_PATH_TK
#---------------------------------------------------------------------------
# Find Tk Libraries, flags, etc.
-AC_DEFUN([ACE_PATH_TK],
-[AC_REQUIRE([ACE_PATH_TCL])
- AC_ARG_WITH([tkconfig],
- AS_HELP_STRING([--with-tkconfig=DIR],
- [path to tkConfig.sh [[automatic]]]),
- [ ac_tkconfig_dir="${withval}" ])
- if test X"${ac_tkconfig_dir}" = X; then
- AC_PATH_PROG([TKCONFIG], [tkConfig.sh], [],
- [${PATH}:/usr/local/lib:/usr/pkg/lib:/usr/lib/tk8.4:/usr/lib/tk8.3:/usr/lib])
- else
- AC_MSG_CHECKING([whether tkConfig.sh exists in ${ac_tkconfig_dir}])
- if test -f "${ac_tkconfig_dir}/tkConfig.sh"; then
- TKCONFIG="${ac_tkconfig_dir}/tkConfig.sh"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
- fi
- if test X"${TKCONFIG}" != X; then
- . ${TKCONFIG}
-
- ACE_TK_CPPFLAGS="${TK_INCLUDE_SPEC} ${TK_XINCLUDES}"
- ACE_TK_LIBS="${TK_LIB_SPEC} ${TK_XLIBSW}"
-
- AC_SUBST(ACE_TK_CPPFLAGS)
- AC_SUBST(ACE_TK_LIBS)
- fi
-])
-
-
-# ACE_PATH_XT
-#---------------------------------------------------------------------------
-# Find Xt libraries, flags, etc.
-AC_DEFUN([ACE_PATH_XT],
-[AC_REQUIRE([ACE_PATH_X11])
-
-if test "$no_x" != yes; then
- ACE_XT_CPPFLAGS=""
- ACE_XT_LDFLAGS=""
- ACE_XT_LIBS="-lXt"
-
- AC_SUBST(ACE_XT_CPPFLAGS)
- AC_SUBST(ACE_XT_LDFLAGS)
- AC_SUBST(ACE_XT_LIBS)
-fi
-AM_CONDITIONAL([BUILD_ATHENA], true)
-AM_CONDITIONAL([BUILD_MOTIF], false)
-])
-
-
-# ACE_PATH_X11
-#---------------------------------------------------------------------------
-# Find X11 libraries, flags, etc.
-AC_DEFUN([ACE_PATH_X11],
-[AC_REQUIRE([AC_PATH_XTRA])
-
-if test "$no_x" != yes; then
- ACE_X11_CPPFLAGS="${X_CFLAGS}"
- ACE_X11_LDFLAGS="${X_LIBS}"
- ACE_X11_LIBS="${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS}"
-
- AC_SUBST(ACE_X11_CPPFLAGS)
- AC_SUBST(ACE_X11_LDFLAGS)
- AC_SUBST(ACE_X11_LIBS)
-fi
-
-AM_CONDITIONAL([BUILD_X11], [test X$no_x != Xyes])
+AC_DEFUN([ACE_PATH_TK],
+[
])
@@ -1261,17 +961,16 @@ AM_CONDITIONAL([BUILD_X11], [test X$no_x != Xyes])
#---------------------------------------------------------------------------
AC_DEFUN([ACE_ENABLE_FL_REACTOR],
[AC_REQUIRE([ACE_PATH_FL])
-AC_REQUIRE([ACE_PATH_X11])
AC_ARG_ENABLE([fl-reactor],
AS_HELP_STRING([--enable-fl-reactor],
[build support for the FlReactor [[no]]]),
[case "${enableval}" in
yes)
- AS_IF([test X"${FLTKCONFIG}" != X],
- [ace_user_enable_fl_reactor=yes],
- [AC_MSG_ERROR([ACE_FlReactor cannot be enabled: fltk-config not found.])])
+ AC_MSG_ERROR([--enable-fl-reactor currently unimplemented])
+ ace_user_enable_fl_reactor=yes
;;
no)
+ AC_MSG_ERROR([--enable-fl-reactor currently unimplemented])
ace_user_enable_fl_reactor=no
;;
*)
@@ -1281,12 +980,11 @@ AC_ARG_ENABLE([fl-reactor],
[
ace_user_enable_fl_reactor=no
])
-AM_CONDITIONAL([BUILD_GL], [test X$ace_user_enable_fl_reactor = Xyes])
-AM_CONDITIONAL([BUILD_FL], [test X$ace_user_enable_fl_reactor = Xyes])
+AM_CONDITIONAL([BUILD_FL], [test X$ace_enable_fl_reactor = Xyes])
AM_CONDITIONAL([BUILD_ACE_FLREACTOR],
- [test X$ace_user_enable_fl_reactor = Xyes])
+ [test X$ace_enable_fl_reactor = Xyes])
AM_CONDITIONAL([BUILD_TAO_FLRESOURCE],
- [test X$ace_user_enable_fl_reactor = Xyes])
+ [test X$ace_enable_fl_reactor = Xyes])
])
@@ -1299,11 +997,11 @@ AC_ARG_ENABLE([qt-reactor],
[build support for the QtReactor [[no]]]),
[case "${enableval}" in
yes)
- AS_IF([test X"${ac_qt_found}" = Xyes],
- [ace_user_enable_qt_reactor=yes],
- [AC_MSG_ERROR([ACE_QtReactor cannot be enabled: Qt not found.])])
+ AC_MSG_ERROR([--enable-qt-reactor currently unimplemented])
+ ace_user_enable_qt_reactor=yes
;;
no)
+ AC_MSG_ERROR([--enable-qt-reactor currently unimplemented])
ace_user_enable_qt_reactor=no
;;
*)
@@ -1313,11 +1011,11 @@ AC_ARG_ENABLE([qt-reactor],
[
ace_user_enable_qt_reactor=no
])
-AM_CONDITIONAL([BUILD_QT], [test X$ace_user_enable_qt_reactor = Xyes])
+AM_CONDITIONAL([BUILD_QT], [test X$ace_enable_qt_reactor = Xyes])
AM_CONDITIONAL([BUILD_ACE_QTREACTOR],
- [test X$ace_user_enable_qt_reactor = Xyes])
+ [test X$ace_enable_qt_reactor = Xyes])
AM_CONDITIONAL([BUILD_TAO_QTRESOURCE],
- [test X$ace_user_enable_qt_reactor = Xyes])
+ [test X$ace_enable_qt_reactor = Xyes])
])
@@ -1330,13 +1028,11 @@ AC_ARG_ENABLE([tk-reactor],
[build support for the TkReactor [[no]]]),
[case "${enableval}" in
yes)
- AS_IF([test X"${TCLCONFIG}" != X],
- [AS_IF([test X"${TKCONFIG}" != X],
- [ace_user_enable_tk_reactor=yes],
- [AC_MSG_ERROR([ACE_TkReactor cannot be enabled: tkConfig not found.])])],
- [AC_MSG_ERROR([ACE_TkReactor cannot be enabled: tclConfig not found.])])
+ AC_MSG_ERROR([--enable-tk-reactor currently unimplemented])
+ ace_user_enable_tk_reactor=yes
;;
no)
+ AC_MSG_ERROR([--enable-tk-reactor currently unimplemented])
ace_user_enable_tk_reactor=no
;;
*)
@@ -1346,35 +1042,38 @@ AC_ARG_ENABLE([tk-reactor],
[
ace_user_enable_tk_reactor=no
])
-AM_CONDITIONAL([BUILD_TK], [test X$ace_user_enable_tk_reactor = Xyes])
+AM_CONDITIONAL([BUILD_TK], [test X$ace_enable_tk_reactor = Xyes])
AM_CONDITIONAL([BUILD_ACE_TKREACTOR],
- [test X$ace_user_enable_tk_reactor = Xyes])
+ [test X$ace_enable_tk_reactor = Xyes])
AM_CONDITIONAL([BUILD_TAO_TKRESOURCE],
- [test X$ace_user_enable_tk_reactor = Xyes])
+ [test X$ace_enable_tk_reactor = Xyes])
])
# ACE_ENABLE_XT_REACTOR
#---------------------------------------------------------------------------
AC_DEFUN([ACE_ENABLE_XT_REACTOR],
-[AC_REQUIRE([ACE_PATH_XT])
-AC_ARG_ENABLE([xt-reactor],
+[AC_ARG_ENABLE([xt-reactor],
AS_HELP_STRING([--enable-xt-reactor],
[build support for the XtReactor [[no]]]),
[case "${enableval}" in
yes)
+ AC_PATH_XTRA
dnl Here, if X isn't found or the user sets "--without-x" on the command
dnl line, then "no_x" is set to "yes."
AS_IF([test "$no_x" != yes],
- [
+ [
+ ACE_XLIBS="-lX11 -lXt"
ace_user_enable_xt_reactor=yes
],[
+ ACE_XLIBS=""
ace_user_enable_xt_reactor=no
AC_MSG_WARN([X was not found or it was disabled.])
AC_MSG_WARN([ACE_XtReactor will not be enabled.])
])
;;
no)
+ ACE_XLIBS=""
ace_user_enable_xt_reactor=no
;;
*)
@@ -1382,11 +1081,13 @@ dnl line, then "no_x" is set to "yes."
;;
esac],
[
+ ACE_XLIBS=""
ace_user_enable_xt_reactor=no
])
-AM_CONDITIONAL([BUILD_XT], [test X$ace_user_enable_xt_reactor = Xyes])
+AM_CONDITIONAL([BUILD_X11], [test X$ace_enable_xt_reactor = Xyes])
+AM_CONDITIONAL([BUILD_XT], [test X$ace_enable_xt_reactor = Xyes])
AM_CONDITIONAL([BUILD_ACE_XTREACTOR],
- [test X$ace_user_enable_xt_reactor = Xyes])
+ [test X$ace_enable_xt_reactor = Xyes])
AM_CONDITIONAL([BUILD_TAO_XTRESOURCE],
- [test X$ace_user_enable_xt_reactor = Xyes])
+ [test X$ace_enable_xt_reactor = Xyes])
])
diff --git a/m4/ace_func.m4 b/m4/ace_func.m4
deleted file mode 100644
index 52ff1a0b2c1..00000000000
--- a/m4/ace_func.m4
+++ /dev/null
@@ -1,148 +0,0 @@
-# ACE_FUNC_STRCASECMP
-# + Defines ACE_LACKS_STRCASECMP to 1 if platform lacks strcasecmp()
-# + Defines ACE_STRCASECMP_EQUIVALENT to identifier name if platform
-# has a equivalent function that differs in name only.
-# + Defines ACE_LACKS_STRCASECMP_PROTOTYPE to 1 if platform lacks
-# declaration for strcasecmp().
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_FUNC_STRCASECMP],
-[ACE_CHECK_LACKS_FUNCS(strcasecmp)
-if test "$ac_cv_func_strcasecmp" = yes; then
- AC_CHECK_DECL([strcasecmp],
- [],
- [AC_DEFINE([ACE_LACKS_STRCASECMP_PROTOTYPE], 1,
- [Define to 1 if platform lacks a declaration for strcasecmp()])],
- [
-#if !defined(ACE_LACKS_STRINGS_H)
-#include <strings.h>
-#endif
-#if !defined(ACE_LACKS_STRING_H)
-#include <string.h>
-#endif
- ])
-else
- AC_CHECK_FUNC(stricmp)
- if test "$ac_cv_func_stricmp" = yes; then
- AC_DEFINE(ACE_STRCASECMP_EQUIVALENT, [::stricmp],
- [Define to function that is equivalent to strcasecmp()])
- else
- AC_CHECK_FUNC(_stricmp)
- if test "$ac_cv_func__stricmp" = yes; then
- AC_DEFINE(ACE_STRCASECMP_EQUIVALENT, [::_stricmp])
- fi
- fi
-fi
-])
-
-# ACE_FUNC_STRNCASECMP
-# + Defines ACE_LACKS_STRCASECMP to 1 if platform lacks strcasecmp()
-# + Defines ACE_STRCASECMP_EQUIVALENT to identifier name if platform
-# has a equivalent function that differs in name only.
-# + Defines ACE_LACKS_STRNCASECMP_PROTOTYPE to 1 if platform lacks
-# declaration for strncasecmp().
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_FUNC_STRNCASECMP],
-[ACE_CHECK_LACKS_FUNCS(strncasecmp)
-if test "$ac_cv_func_strncasecmp" = yes; then
- AC_CHECK_DECL([strncasecmp],
- [],
- [AC_DEFINE([ACE_LACKS_STRNCASECMP_PROTOTYPE], 1,
- [Define to 1 if platform lacks a declaration for strncasecmp()])],
- [
-#if !defined(ACE_LACKS_STRINGS_H)
-#include <strings.h>
-#endif
-#if !defined(ACE_LACKS_STRING_H)
-#include <string.h>
-#endif
- ])
-else
- AC_CHECK_FUNC(strnicmp)
- if test "$ac_cv_func_strnicmp" = yes; then
- AC_DEFINE(ACE_STRNCASECMP_EQUIVALENT, [::strnicmp],
- [Define to function that is equivalent to strncasecmp()])
- else
- AC_CHECK_FUNC(_strnicmp)
- if test "$ac_cv_func__strnicmp" = yes; then
- AC_DEFINE(ACE_STRNCASECMP_EQUIVALENT, [::_strnicmp])
- fi
- fi
-fi
-])
-
-# ACE_FUNC_STRDUP
-# + Defines ACE_LACKS_STRDUP to 1 if platform lacks strdup()
-# + Defines ACE_STRDUP_EQUIVALENT to identifier name if platform
-# has a equivalent function that differs in name only.
-# + Defines ACE_HAS_NONCONST_STRDUP if argument is char*. (TODO)
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_FUNC_STRDUP],
-[ACE_CHECK_LACKS_FUNCS(strdup)
-if test "$ac_cv_func_strdup" = no; then
- AC_CHECK_FUNC(_strdup)
- if test "$ac_cv_func__strdup" = yes; then
- AC_DEFINE(ACE_STRDUP_EQUIVALENT, [::_strdup],
- [Define to function that is equivalent to strdup()])
- fi
-fi
-])
-
-
-# ACE_FUNC_WCSCASECMP
-# + Defines ACE_LACKS_WCSCASECMP to 1 if platform lacks strcasecmp()
-# + Defines ACE_WCSCASECMP_EQUIVALENT to identifier name if platform
-# has a equivalent function that differs in name only.
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_FUNC_WCSCASECMP],
-[ACE_CHECK_LACKS_FUNCS(wcscasecmp)
-if test "$ac_cv_func_wcscasecmp" = no; then
- AC_CHECK_FUNC(wcsicmp)
- if test "$ac_cv_func_wcsicmp" = yes; then
- AC_DEFINE(ACE_WCSCASECMP_EQUIVALENT, [::wcsicmp],
- [Define to function that is equivalent to wcscasecmp()])
- else
- AC_CHECK_FUNC(_wcsicmp)
- if test "$ac_cv_func__wcsicmp" = yes; then
- AC_DEFINE(ACE_WCSCASECMP_EQUIVALENT, [::_wcsicmp])
- fi
- fi
-fi
-])
-
-# ACE_FUNC_WCSNCASECMP
-# + Defines ACE_LACKS_WCSNCASECMP to 1 if platform lacks strcasecmp()
-# + Defines ACE_WCSNCASECMP_EQUIVALENT to identifier name if platform
-# has a equivalent function that differs in name only.
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_FUNC_WCSNCASECMP],
-[ACE_CHECK_LACKS_FUNCS(wcsncasecmp)
-if test "$ac_cv_func_wcsncasecmp" = no; then
- AC_CHECK_FUNC(wcsnicmp)
- if test "$ac_cv_func_wcsnicmp" = yes; then
- AC_DEFINE(ACE_WCSNCASECMP_EQUIVALENT, [::wcsnicmp],
- [Define to function that is equivalent to wcsncasecmp()])
- else
- AC_CHECK_FUNC(_wcsnicmp)
- if test "$ac_cv_func__wcsnicmp" = yes; then
- AC_DEFINE(ACE_WCSNCASECMP_EQUIVALENT, [::_wcsnicmp])
- fi
- fi
-fi
-])
-
-# ACE_FUNC_WCSDUP
-# + Defines ACE_LACKS_WCSDUP to 1 if platform lacks wcsdup()
-# + Defines ACE_WCSDUP_EQUIVALENT to identifier name if platform
-# has a equivalent function that differs in name only.
-# + Defines ACE_HAS_NONCONST_WCSDUP if argument is char*. (TODO)
-#---------------------------------------------------------------------------
-AC_DEFUN([ACE_FUNC_WCSDUP],
-[ACE_CHECK_LACKS_FUNCS(wcsdup)
-if test "$ac_cv_func_wcsdup" = no; then
- AC_CHECK_FUNC(_wcsdup)
- if test "$ac_cv_func__wcsdup" = yes; then
- AC_DEFINE(ACE_WCSDUP_EQUIVALENT, [::_wcsdup],
- [Define to function that is equivalent to wcsdup()])
- fi
-fi
-])
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
index f23fbb68d35..b608971969f 100644
--- a/m4/acinclude.m4
+++ b/m4/acinclude.m4
@@ -600,3 +600,171 @@ dnl mismatched parentheses.
dnl checks for structures
dnl checks for system services
+
+
+dnl *********************** SPECIAL SECTION *******************************
+dnl
+dnl This section contains my own *re*implementation of the functionality
+dnl provided by some tests/macros found in GNU Autoconf since the ones found
+dnl in Autoconf don't appear to work as expected.
+dnl
+dnl dnl -Ossama Othman <ossama@debian.org>
+dnl dnl
+dnl dnl The copyright for the following macros is listed below.
+dnl dnl Note that all macros listed prior to this section are copyrighted
+dnl dnl by Ossama Othman, not the Free Software Foundation. Nevertheless,
+dnl dnl all software found in this file is free software. Please read the
+dnl dnl distribution terms found at the top of this file and the ones below.
+
+dnl dnl Parameterized macros.
+dnl dnl Requires GNU m4.
+dnl dnl This file is part of Autoconf.
+dnl dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc.
+dnl dnl
+dnl dnl This program is free software; you can redistribute it and/or modify
+dnl dnl it under the terms of the GNU General Public License as published by
+dnl dnl the Free Software Foundation; either version 2, or (at your option)
+dnl dnl any later version.
+dnl dnl
+dnl dnl This program is distributed in the hope that it will be useful,
+dnl dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+dnl dnl GNU General Public License for more details.
+dnl dnl
+dnl dnl You should have received a copy of the GNU General Public License
+dnl dnl along with this program; if not, write to the Free Software
+dnl dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+dnl dnl 02111-1307, USA.
+dnl dnl
+dnl dnl As a special exception, the Free Software Foundation gives unlimited
+dnl dnl permission to copy, distribute and modify the configure scripts that
+dnl dnl are the output of Autoconf. You need not follow the terms of the GNU
+dnl dnl General Public License when using or distributing such scripts, even
+dnl dnl though portions of the text of Autoconf appear in them. The GNU
+dnl dnl General Public License (GPL) does govern all other use of the material
+dnl dnl that constitutes the Autoconf program.
+dnl dnl
+dnl dnl Certain portions of the Autoconf source text are designed to be copied
+dnl dnl (in certain cases, depending on the input) into the output of
+dnl dnl Autoconf. We call these the "data" portions. The rest of the Autoconf
+dnl dnl source text consists of comments plus executable code that decides which
+dnl dnl of the data portions to output in any given case. We call these
+dnl dnl comments and executable code the "non-data" portions. Autoconf never
+dnl dnl copies any of the non-data portions into its output.
+dnl dnl
+dnl dnl This special exception to the GPL applies to versions of Autoconf
+dnl dnl released by the Free Software Foundation. When you make and
+dnl dnl distribute a modified version of Autoconf, you may extend this special
+dnl dnl exception to the GPL to apply to your modified version as well, *unless*
+dnl dnl your modified version has the potential to copy into its output some
+dnl dnl of the text that was the non-data portion of the version that you started
+dnl dnl with. (In other words, unless your change moves or copies text from
+dnl dnl the non-data portions to the data portions.) If your modification has
+dnl dnl such potential, you must delete any notice of this special exception
+dnl dnl to the GPL from your modified version.
+dnl dnl
+dnl dnl Written by David MacKenzie, with help from
+dnl dnl Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
+dnl dnl Roland McGrath, Noah Friedman, david d zuhn, and many others.
+
+
+dnl dnl Usage: ACE_SEARCH_LIBS(FUNCTION, SEARCH-LIBS [, ACTION-IF-FOUND
+dnl dnl [, ACTION-IF-NOT-FOUND [, OTHER-LIBRARIES]]])
+dnl dnl Search for a library defining FUNCTION, if it's not already available.
+dnl AC_DEFUN([ACE_SEARCH_LIBS],
+dnl [
+dnl AC_CACHE_CHECK([for library containing $1], [ac_cv_search_$1],
+dnl [
+dnl ac_func_search_save_LIBS="$LIBS"
+
+dnl ac_cv_search_$1="no"
+
+dnl ACE_TRY_LINK_FUNC([$1], [ac_cv_search_$1="none required"])
+
+dnl test "$ac_cv_search_$1" = "no" && for i in $2; do
+dnl LIBS="-l$i $5 $ac_func_search_save_LIBS"
+dnl ACE_TRY_LINK_FUNC([$1],
+dnl [
+dnl ac_cv_search_$1="-l$i"
+dnl break
+dnl ])
+dnl done
+
+dnl LIBS="$ac_func_search_save_LIBS"
+dnl ])
+
+dnl if test "$ac_cv_search_$1" != "no"; then
+dnl test "$ac_cv_search_$1" = "none required" || LIBS="$ac_cv_search_$1 $LIBS"
+dnl $3
+dnl else :
+dnl $4
+dnl fi
+dnl ])
+
+dnl dnl Usage: ACE_TRY_LINK_FUNC(FUNCTION,[, ACTION-IF-FOUND
+dnl dnl [, ACTION-IF-NOT-FOUND])
+dnl dnl Search for a library defining FUNCTION, if it's not already available.
+dnl AC_DEFUN([ACE_TRY_LINK_FUNC],
+dnl [
+dnl AC_LINK_IFELSE([AC_LANG_PROGRAM([[dnl Don't include <ctype.h> because on OSF/1 3.0 it includes <sys/types.h>
+dnl dnl which includes <sys/select.h> which contains a prototype for
+dnl dnl select. Similarly for bzero.
+dnl /* System header to define __stub macros and hopefully few prototypes,
+dnl which can conflict with char $1(); below. */
+dnl #include <assert.h>
+dnl /* Override any gcc2 internal prototype to avoid an error. */
+dnl ifelse(AC_LANG, C++, #ifdef __cplusplus
+dnl extern "C"
+dnl #endif
+dnl )dnl
+dnl /* We use char because int might match the return type of a gcc2
+dnl builtin and then its argument prototype would still apply. */
+dnl char $1();
+dnl ]], [[
+dnl /* The GNU C library defines this for functions which it implements
+dnl to always fail with ENOSYS. Some functions are actually named
+dnl something starting with __ and the normal name is an alias. */
+dnl #if defined (__stub_$1) || defined (__stub___$1)
+dnl choke me
+dnl #else
+dnl $1();
+dnl #endif
+dnl ]])],[$2],[$3])
+dnl ])
+
+dnl AC_DEFUN([ACE_SYS_RESTARTABLE_SYSCALLS],
+dnl [AC_REQUIRE([AC_HEADER_SYS_WAIT])
+dnl AC_CHECK_HEADERS([unistd.h])
+dnl AC_CACHE_CHECK([for restartable system calls, ac_cv_sys_restartable_syscalls],
+dnl [AC_RUN_IFELSE([AC_LANG_SOURCE([[/* Exit 0 (true) if wait returns something other than -1,
+dnl i.e. the pid of the child, which means that wait was restarted
+dnl after getting the signal. */
+dnl #include <sys/types.h>
+dnl #include <signal.h>
+dnl #if HAVE_UNISTD_H
+dnl # include <unistd.h>
+dnl #endif
+dnl #if HAVE_SYS_WAIT_H
+dnl # include <sys/wait.h>
+dnl #endif
+
+dnl /* Some platforms explicitly require an extern "C" signal handler
+dnl when using C++. */
+dnl #ifdef __cplusplus
+dnl extern "C"
+dnl #endif
+dnl void ucatch (int) { }
+
+dnl main () {
+dnl int i = fork (), status;
+dnl if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
+dnl signal (SIGINT, ucatch);
+dnl status = wait(&i);
+dnl if (status == -1) wait(&i);
+dnl exit (status == -1);
+dnl }
+dnl ]])],[ac_cv_sys_restartable_syscalls=yes],[ac_cv_sys_restartable_syscalls=no],[])])
+dnl if test $ac_cv_sys_restartable_syscalls = yes; then
+dnl AC_DEFINE([HAVE_RESTARTABLE_SYSCALLS])
+dnl fi
+dnl ])
diff --git a/m4/compiler.m4 b/m4/compiler.m4
index 57ed77b1e87..763b6713525 100644
--- a/m4/compiler.m4
+++ b/m4/compiler.m4
@@ -177,6 +177,16 @@ dnl @todo Clean up / consolidate these conditionals
esac
;;
*freebsd*)
+ case "$CXX" in
+ *)
+ if test "$GXX" = yes; then
+ CXXFLAGS="$CXXFLAGS"
+ ACE_CXXFLAGS="$ACE_CXXFLAGS -w -fno-strict-prototypes"
+ DCXXFLAGS=""
+ OCXXFLAGS=""
+ fi
+ ;;
+ esac
;;
*hpux*)
# In case anything here or in the config depends on OS
@@ -357,113 +367,42 @@ dnl @todo Clean up / consolidate these conditionals
;;
esac
- dnl Warning flags
- if test "$GCC" = yes; then
- ACE_CFLAGS="$ACE_CFLAGS -W -Wall -Wpointer-arith"
- fi
+ dnl Additional flags
if test "$GXX" = yes; then
ACE_CXXFLAGS="$ACE_CXXFLAGS -W -Wall -Wpointer-arith"
- fi
- dnl Symbol Visibility flags
- dnl Take advantage of visibility attributes when using g++ 4.0 or
- dnl better.
- if test "$GXX" = yes; then
- dnl As of this writing, there are symbol visibility issues on some
- dnl platforms. The --disable-symbol-visibility option is intended
- dnl to allow users to explicitly disable symbol visibility support
- dnl in the cases where it does not work (or does not work properly),
- dnl but the feature test selects it anyway.
-
- AC_ARG_ENABLE([symbol-visibility],
- AS_HELP_STRING([--enable-symbol-visibility],
- [build with gcc symbol visibility attributes [[[no]]]]),
- [
- case "${enableval}" in
- yes)
- ace_user_symbol_visibility=yes
- ;;
- no)
- ace_user_symbol_visibility=no
- ;;
+ dnl Take advantage of visibility attributes when using g++ 4.0 or
+ dnl better.
+ if test "$ACE_GXX_MAJOR_VERSION" -ge 4; then
+ case "$host_os" in
+ darwin*)
+ ;;
+
*)
- AC_MSG_ERROR([bad value ${enableval} for --enable-symbol-visibility])
+ AC_MSG_NOTICE([enabling GNU G++ visibility attribute support])
+ ACE_GXX_VISIBILITY_FLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
+ ACE_CXXFLAGS="$ACE_CXXFLAGS $ACE_GXX_VISIBILITY_FLAGS"
+ AC_DEFINE([ACE_HAS_CUSTOM_EXPORT_MACROS])
+ AC_DEFINE([ACE_Proper_Export_Flag],
+ [__attribute__ ((visibility("default")))])
;;
- esac
- ],
- [
- ace_user_enable_symbol_visibility=no
- ])
-
- if test "$ace_user_enable_symbol_visibility" = yes; then
- ACE_CHECK_CXXFLAGS([fvisibility=hidden],
- [
- ACE_CXXFLAGS="$ACE_CXXFLAGS -fvisibility=hidden"
- AC_DEFINE([ACE_HAS_CUSTOM_EXPORT_MACROS])
- AC_DEFINE([ACE_Proper_Export_Flag],
- [__attribute__ ((visibility("default")))])
- ])
- ACE_CHECK_CXXFLAGS([fvisibility-inlines-hidden],
- [
- ACE_CXXFLAGS="$ACE_CXXFLAGS -fvisibility-inlines-hidden"
- ])
+ esac
+ else
+ case `$CXX --version` in
+ 2.9*)
+ if test "$ace_user_enable_exceptions" != yes; then
+ ACE_CXXFLAGS="$ACE_CXXFLAGS -fcheck-new"
+ fi
+ ;;
+ esac
fi
- fi
-
- dnl Additional flags
- if test "$GXX" = yes; then
- case `$CXX --version` in
- 2.9*)
- if test "$ace_user_enable_exceptions" != yes; then
- ACE_CXXFLAGS="$ACE_CXXFLAGS -fcheck-new"
- fi
- ;;
- esac
dnl if test "$ace_user_enable_repo" = no; then
dnl ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-implicit-templates"
dnl fi
fi
-])
-
-AC_DEFUN([ACE_CHECK_CFLAGS],
-[
-AS_VAR_PUSHDEF([VAR],'ace_cv_cflag_$1')
-AC_MSG_CHECKING([whether $CC supports -$1])
-AC_LANG_SAVE
-AC_LANG([C])
-ace_save_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -$1"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[return 0])],[VAR=yes],[VAR=no])
-CFLAGS=$ace_save_CFLAGS
-AC_LANG_RESTORE
-if test $VAR = yes; then
- AC_MSG_RESULT([yes])
- $2
-else
- AC_MSG_RESULT([no])
- $3
-fi
-AS_VAR_POPDEF([VAR])
-])
-AC_DEFUN([ACE_CHECK_CXXFLAGS],
-[
-AS_VAR_PUSHDEF([VAR],'ace_cv_cxxflag_$1')
-AC_MSG_CHECKING([whether $CXX supports -$1])
-AC_LANG_SAVE
-AC_LANG([C++])
-ace_save_CXXFLAGS=$CXXFLAGS
-CXXFLAGS="$CXXFLAGS -$1"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[return 0])],[VAR=yes],[VAR=no])
-CXXFLAGS=$ace_save_CXXFLAGS
-AC_LANG_RESTORE
-if test $VAR = yes; then
- AC_MSG_RESULT([yes])
- $2
-else
- AC_MSG_RESULT([no])
- $3
-fi
-AS_VAR_POPDEF([VAR])
+ if test "$GCC" = yes; then
+ ACE_CFLAGS="$ACE_CFLAGS -W -Wall -Wpointer-arith"
+ fi
])
diff --git a/m4/config_h.m4 b/m4/config_h.m4
index c6ba34238e6..2f396d0c9aa 100644
--- a/m4/config_h.m4
+++ b/m4/config_h.m4
@@ -528,6 +528,17 @@ AH_TEMPLATE([ACE_HAS_POWERPC_TIMER],
AH_TEMPLATE([ACE_HAS_PRUSAGE_T],[Platform supports the prusage_t struct])
+AH_TEMPLATE([ACE_HAS_PTHREADS_DRAFT4],
+[Platform supports POSIX Threads .4a Draft 4])
+
+AH_TEMPLATE([ACE_HAS_PTHREADS_DRAFT6],
+[Platform supports POSIX Threads .4a Draft 6])
+
+AH_TEMPLATE([ACE_HAS_PTHREADS_DRAFT7],a
+[Platform supports POSIX Threads .1c Draft 7])
+
+AH_TEMPLATE([ACE_HAS_PTHREADS_STD],[Platform supports POSIX.1c-1995 threads])
+
AH_TEMPLATE([ACE_HAS_PTHREADS_UNIX98_EXT],
[Platform has the UNIX98 extensions to Pthreads (rwlocks)])
@@ -602,6 +613,9 @@ AH_TEMPLATE([ACE_HAS_REGEX],
AH_TEMPLATE([ACE_HAS_SEMUN],
[Compiler/platform defines a union semun for SysV shared memory ])
+AH_TEMPLATE([ACE_HAS_SET_T_ERRNO],
+[Platform has a function to set t_errno (e.g., Tandem).])
+
AH_TEMPLATE([ACE_HAS_SHM_OPEN],[Platform has shm_open()])
AH_TEMPLATE([ACE_HAS_SIGISMEMBER_BUG],
@@ -618,6 +632,8 @@ AH_TEMPLATE([ACE_HAS_SIGNAL_OBJECT_AND_WAIT],
AH_TEMPLATE([ACE_HAS_SIG_C_FUNC],
[Compiler requires extern "C" functions for signals.])
+AH_TEMPLATE([ACE_HAS_SIN_LEN],[Platform supports new BSD inet_addr len field.])
+
AH_TEMPLATE([ACE_HAS_SIZET_SOCKET_LEN],
[OS/compiler uses size_t * rather than int * for socket lengths])
@@ -638,6 +654,9 @@ AH_TEMPLATE([ACE_HAS_STANDARD_CPP_LIBRARY],
AH_TEMPLATE([ACE_HAS_STRBUF_T],[Compiler/platform supports struct strbuf])
+AH_TEMPLATE([ACE_HAS_STRDUP_EMULATION],
+[Platform/compiler lacks strdup() (e.g., VxWorks, Chorus, WinCE)])
+
AH_TEMPLATE([ACE_HAS_STRPTIME],[Compile ACE_OS::strptime() wrapper into ACE.])
AH_TEMPLATE([ACE_HAS_STREAMS],[Platform supports STREAMS])
@@ -997,6 +1016,9 @@ AH_TEMPLATE([ACE_LACKS_UNIX_SIGNALS],
AH_TEMPLATE([ACE_LACKS_UTSNAME_T],
[Platform lacks struct utsname (e.g., Win32 and VxWorks)])
+AH_TEMPLATE([ACE_HAS_3_PARAM_WCSTOK],
+[Platform's wcstok() takes 3 arguments])
+
AH_TEMPLATE([ACE_LACKS_WILDCARD_BIND],
[The bind() call will not select the port if it's 0.])
@@ -1026,6 +1048,9 @@ AH_TEMPLATE([ACE_NEEDS_REGEXPR_H],
AH_TEMPLATE([ACE_NEEDS_SCHED_H],
[Platform needs to #include <sched.h> to get thread scheduling defs.])
+AH_TEMPLATE([ACE_LACKS_SYSTIME_H],
+[<time.h> doesn't automatically #include <sys/time.h>])
+
AH_TEMPLATE([ACE_NEW_THROWS_EXCEPTIONS],
[Compiler's 'new' throws exception on failure (ANSI C++ behavior).])
diff --git a/m4/pkg.m4 b/m4/pkg.m4
deleted file mode 100644
index cbb46dbf832..00000000000
--- a/m4/pkg.m4
+++ /dev/null
@@ -1,156 +0,0 @@
-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
-#
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
-# ----------------------------------
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=m4_default([$1], [0.9.0])
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- PKG_CONFIG=""
- fi
-
-fi[]dnl
-])# PKG_PROG_PKG_CONFIG
-
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-#
-# Check to see whether a particular set of modules exists. Similar
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
-#
-#
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
-# this or PKG_CHECK_MODULES is called, or make sure to call
-# PKG_CHECK_EXISTS manually
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
- m4_ifval([$2], [$2], [:])
-m4_ifvaln([$3], [else
- $3])dnl
-fi])
-
-
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-# ---------------------------------------------
-m4_define([_PKG_CONFIG],
-[if test -n "$PKG_CONFIG"; then
- if test -n "$$1"; then
- pkg_cv_[]$1="$$1"
- else
- PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
- [pkg_failed=yes])
- fi
-else
- pkg_failed=untried
-fi[]dnl
-])# _PKG_CONFIG
-
-# _PKG_SHORT_ERRORS_SUPPORTED
-# -----------------------------
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi[]dnl
-])# _PKG_SHORT_ERRORS_SUPPORTED
-
-
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-# [ACTION-IF-NOT-FOUND])
-#
-#
-# Note that if there is a possibility the first call to
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-#
-#
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_MODULES],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $1])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
- _PKG_SHORT_ERRORS_SUPPORTED
- if test $_pkg_short_errors_supported = yes; then
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
- else
- $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
- ifelse([$4], , [AC_MSG_ERROR(dnl
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT
-])],
- [$4])
-elif test $pkg_failed = untried; then
- ifelse([$4], , [AC_MSG_FAILURE(dnl
-[The pkg-config script could not be found or is too old. Make sure it
-is in your PATH or set the PKG_CONFIG environment variable to the full
-path to pkg-config.
-
-_PKG_TEXT
-
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
- [$4])
-else
- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
- AC_MSG_RESULT([yes])
- ifelse([$3], , :, [$3])
-fi[]dnl
-])# PKG_CHECK_MODULES
diff --git a/m4/tls.m4 b/m4/tls.m4
index f1c47e33051..1c16f4c22ac 100644
--- a/m4/tls.m4
+++ b/m4/tls.m4
@@ -69,9 +69,7 @@ AC_DEFUN([ACE_CHECK_TLS],
dnl library.
ace_save_LIBS="$LIBS"
ace_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $ace_TLS_CPPFLAGS"
ace_save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $ace_TLS_LDFLAGS"
dnl ---------------------------------------------------------
@@ -114,9 +112,9 @@ SSL_shutdown (ssl);
ace_kerberos_dir=""
for ace_kerberos in /usr /usr/local; do
ace_kerberos_dir="${ace_kerberos}/kerberos/include"
- ace_kerberos_CPPFLAGS="-I${ace_kerberos_dir}"
+ ace_TLS_CPPFLAGS="-I${ace_kerberos_dir}"
- CPPFLAGS="$ace_save_CPPFLAGS $ace_TLS_CPPFLAGS $ace_kerberos_CPPFLAGS"
+ CPPFLAGS="$ace_TLS_CPPFLAGS $ace_save_CPPFLAGS"
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([
@@ -158,7 +156,7 @@ SSL_shutdown (ssl);
AC_SUBST([ACE_KERBEROS_INCLUDES],[.])
],
[
- ace_TLS_CPPFLAGS="$ace_TLS_CPPFLAGS -I${ac_cv_kerberos_dir}"
+ AC_SUBST([ACE_TLS_CPPFLAGS],[-I${ac_cv_kerberos_dir}])
AC_SUBST([ACE_KERBEROS_INCLUDES],[$ac_cv_kerberos_dir])
])
diff --git a/netsvcs/clients/Logger/Logger.mpc b/netsvcs/clients/Logger/Logger.mpc
index e4dbe0a0046..7bc656320f1 100644
--- a/netsvcs/clients/Logger/Logger.mpc
+++ b/netsvcs/clients/Logger/Logger.mpc
@@ -2,8 +2,7 @@
// $Id$
project(direct logging) : aceexe {
- avoids += ace_for_tao
- exename = direct_logging
+ exename = direct_logging
libs += netsvcs
after += netsvcs
Source_Files {
@@ -12,8 +11,7 @@ project(direct logging) : aceexe {
}
project(indirect logging) : aceexe {
- avoids += ace_for_tao
- exename = indirect_logging
+ exename = indirect_logging
libs += netsvcs
after += netsvcs
Source_Files {
diff --git a/netsvcs/clients/Naming/Client/Client.mpc b/netsvcs/clients/Naming/Client/Client.mpc
index 54d828b8774..29eb2271c7a 100644
--- a/netsvcs/clients/Naming/Client/Client.mpc
+++ b/netsvcs/clients/Naming/Client/Client.mpc
@@ -2,7 +2,6 @@
// $Id$
project(Netsvsc_Client_Test_Lib): acelib {
- avoids += ace_for_tao
sharedname = Client_Test
dynamicflags += ACE_CLIENT_TEST_BUILD_DLL
Source_Files {
@@ -11,10 +10,9 @@ project(Netsvsc_Client_Test_Lib): acelib {
}
project(Netsvcs_Client_Test) : aceexe {
- avoids += ace_for_tao
exename = main
- libs += Client_Test
- after += Client_Test Netsvsc_Client_Test_Lib
+ libs += Client_Test
+ after += Client_Test Netsvsc_Client_Test_Lib
Source_Files {
main.cpp
}
diff --git a/netsvcs/clients/Naming/Client/Client_Test.cpp b/netsvcs/clients/Naming/Client/Client_Test.cpp
index 6e24fdc00bc..a57a7cea5eb 100644
--- a/netsvcs/clients/Naming/Client/Client_Test.cpp
+++ b/netsvcs/clients/Naming/Client/Client_Test.cpp
@@ -371,8 +371,8 @@ Client_Test::list_options (void)
this->name_options_->nameserver_port ()));
break;
default:
- ACE_ERROR ((LM_ERROR, "ERROR: shouldn't occur!\n"));
- break;
+ assert (!"shouldn't occur!\n");
+ /* NOTREACHED */
}
ACE_DEBUG ((LM_DEBUG,
" *** Namespace directory is %s ***\n",
@@ -407,7 +407,7 @@ Client_Test::set_host (const char *hostname, int port)
this->name_options_->context (ACE_Naming_Context::NET_LOCAL);
// Set Name Options
- this->name_options_->nameserver_host (ACE_TEXT_CHAR_TO_TCHAR (hostname));
+ this->name_options_->nameserver_host (ACE_TEXT_TO_TCHAR_IN (hostname));
this->name_options_->nameserver_port (port);
return NAMING_CONTEXT ()->open (ACE_Naming_Context::NET_LOCAL);
diff --git a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
index bfda59cd09f..c3aba7ee354 100644
--- a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
+++ b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.cpp
@@ -98,7 +98,7 @@ Dump_Restore::handle_input (ACE_HANDLE)
case 'h' :
if (::scanf ("%s %hu", buf1, &port) <= 0)
break;
- set_host (ACE_TEXT_CHAR_TO_TCHAR (buf1), port);
+ set_host (ACE_TEXT_TO_TCHAR_IN (buf1), port);
break;
case 'F':
case 'f':
diff --git a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.mpc b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.mpc
index c88bb05e2e2..54b1a657c19 100644
--- a/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.mpc
+++ b/netsvcs/clients/Naming/Dump_Restore/Dump_Restore.mpc
@@ -2,7 +2,6 @@
// $Id$
project(Netsvcs_Dump_Restore_Lib): acelib {
- avoids += ace_for_tao
sharedname = Dump_Restore
dynamicflags += ACE_BUILD_SVC_DLL
Source_Files {
@@ -11,8 +10,7 @@ project(Netsvcs_Dump_Restore_Lib): acelib {
}
project(Netsvcs_Dump_Restore) : aceexe {
- avoids += ace_for_tao
- exename = main
+ exename = main
libs += Dump_Restore
after += Netsvcs_Dump_Restore_Lib
Source_Files {
diff --git a/netsvcs/clients/Naming/Dump_Restore/createfile.cpp b/netsvcs/clients/Naming/Dump_Restore/createfile.cpp
index 25bf2fb803c..0e9f08889fc 100644
--- a/netsvcs/clients/Naming/Dump_Restore/createfile.cpp
+++ b/netsvcs/clients/Naming/Dump_Restore/createfile.cpp
@@ -7,7 +7,7 @@
ACE_RCSID(Dump_Restore, createfile, "$Id$")
int
-main (int argc, char **argv)
+ACE_TMAIN (int argc, ACE_TCHAR **argv)
{
FILE *infile, *outfile;
char buf[BUFSIZ];
diff --git a/netsvcs/clients/Tokens/collection/collection.cpp b/netsvcs/clients/Tokens/collection/collection.cpp
index 8df0ae625fc..5853c5afd91 100644
--- a/netsvcs/clients/Tokens/collection/collection.cpp
+++ b/netsvcs/clients/Tokens/collection/collection.cpp
@@ -92,7 +92,7 @@ parse_args (int argc, char *argv[])
{
ACE_LOG_MSG->open (argv[0], ACE_Log_Msg::STDERR); // | ACE_Log_Msg::VERBOSE);
- ACE_Get_Opt get_opt (argc, argv, "un:dp:h:", 1);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "un:dp:h:", 1);
for (int c; (c = get_opt ()) != -1; )
{
@@ -129,7 +129,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
if (parse_args (argc, argv) == -1)
return -1;
@@ -202,7 +202,7 @@ main (int argc, char* argv[])
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"), -1);
diff --git a/netsvcs/clients/Tokens/collection/rw_locks.cpp b/netsvcs/clients/Tokens/collection/rw_locks.cpp
index 2670f99214f..81923e630c4 100644
--- a/netsvcs/clients/Tokens/collection/rw_locks.cpp
+++ b/netsvcs/clients/Tokens/collection/rw_locks.cpp
@@ -74,7 +74,7 @@ parse_args (int argc, char *argv[])
{
ACE_LOG_MSG->open (argv[0], ACE_Log_Msg::STDERR); // | ACE_Log_Msg::VERBOSE);
- ACE_Get_Opt get_opt (argc, argv, "t:iun:drR:sp:h:", 1);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "t:iun:drR:sp:h:", 1);
for (int c; (c = get_opt ()) != -1; )
{
@@ -127,7 +127,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
if (parse_args (argc, argv) == -1)
return -1;
@@ -165,7 +165,7 @@ main (int argc, char* argv[])
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"), -1);
diff --git a/netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp b/netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp
index e1a9d60ccd6..0ca8c13df54 100644
--- a/netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp
+++ b/netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp
@@ -170,7 +170,7 @@ parse_args (int argc, char *argv[])
{
ACE_LOG_MSG->open (argv[0]);
- ACE_Get_Opt get_opt (argc, argv, "iuh:rp:n:", 1);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "iuh:rp:n:", 1);
for (int c; (c = get_opt ()) != -1; )
{
@@ -317,7 +317,7 @@ rwlock_test (void)
}
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
if (parse_args (argc, argv) == -1)
return -1;
@@ -332,7 +332,7 @@ main (int argc, char* argv[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"), -1);
diff --git a/netsvcs/clients/Tokens/invariant/invariant.cpp b/netsvcs/clients/Tokens/invariant/invariant.cpp
index cda1f54f6f7..cc9e643a0e2 100644
--- a/netsvcs/clients/Tokens/invariant/invariant.cpp
+++ b/netsvcs/clients/Tokens/invariant/invariant.cpp
@@ -157,7 +157,7 @@ run_final_test (void)
}
int
-main (int /* argc */, char* /* argv */ [])
+ACE_TMAIN (int /* argc */, ACE_TCHAR* /* argv */ [])
{
ACE_Thread_Manager mgr;
@@ -188,7 +188,7 @@ main (int /* argc */, char* /* argv */ [])
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"), -1);
diff --git a/netsvcs/clients/Tokens/manual/manual.cpp b/netsvcs/clients/Tokens/manual/manual.cpp
index 04f46d0b3da..251bd7c9687 100644
--- a/netsvcs/clients/Tokens/manual/manual.cpp
+++ b/netsvcs/clients/Tokens/manual/manual.cpp
@@ -103,7 +103,7 @@ STDIN_Token::parse_args (int argc, char *argv[])
{
ACE_LOG_MSG->open (argv[0], ACE_Log_Msg::STDERR);
- ACE_Get_Opt get_opt (argc, argv, "h:p:diu", 1);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "h:p:diu", 1);
for (int c; (c = get_opt ()) != -1; )
{
@@ -349,7 +349,7 @@ STDIN_Token::create_proxy (const char *token, char type)
}
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
STDIN_Token st;
return st.open (argc, argv);
@@ -371,7 +371,7 @@ template class ACE_Map_Reverse_Iterator<STDIN_Token::TID, ACE_Token_Collection *
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads or ACE_HAS_TOKENS_LIBRARY not supported on this platform\n"), -1);
diff --git a/netsvcs/clients/Tokens/mutex/test_mutex.cpp b/netsvcs/clients/Tokens/mutex/test_mutex.cpp
index 73a33cb6c6e..5697b1aa426 100644
--- a/netsvcs/clients/Tokens/mutex/test_mutex.cpp
+++ b/netsvcs/clients/Tokens/mutex/test_mutex.cpp
@@ -69,7 +69,7 @@ parse_args (int argc, char *argv[])
{
ACE_LOG_MSG->open (argv[0]);
- ACE_Get_Opt get_opt (argc, argv, "t:uh:p:n:", 1);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "t:uh:p:n:", 1);
for (int c; (c = get_opt ()) != -1; )
{
@@ -107,7 +107,7 @@ parse_args (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Thread_Manager thread_mgr;
@@ -135,7 +135,7 @@ main (int argc, char *argv[])
return 0;
}
#else
-int main (int, char *[])
+int ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR, "you must have threads to run this test program\n"), -1);
}
diff --git a/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp b/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
index 5d0d95af876..a4d0ddb5ecd 100644
--- a/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
+++ b/netsvcs/clients/Tokens/rw_lock/rw_locks.cpp
@@ -142,7 +142,7 @@ parse_args (int argc, char *argv[])
{
ACE_LOG_MSG->open (argv[0], ACE_Log_Msg::STDERR); // | ACE_Log_Msg::VERBOSE);
- ACE_Get_Opt get_opt (argc, argv, "t:iun:dr:sp:h:R", 1);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "t:iun:dr:sp:h:R", 1);
for (int c; (c = get_opt ()) != -1; )
{
@@ -204,7 +204,7 @@ parse_args (int argc, char *argv[])
#endif
int
-main (int argc, char* argv[])
+ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
if (parse_args (argc, argv) == -1)
return -1;
@@ -244,7 +244,7 @@ main (int argc, char* argv[])
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR_RETURN ((LM_ERROR,
"threads not supported on this platform\n"), -1);
diff --git a/netsvcs/lib/Client_Logging_Handler.cpp b/netsvcs/lib/Client_Logging_Handler.cpp
index 671071a7328..21128fa0dab 100644
--- a/netsvcs/lib/Client_Logging_Handler.cpp
+++ b/netsvcs/lib/Client_Logging_Handler.cpp
@@ -228,9 +228,9 @@ ACE_Client_Logging_Handler::handle_input (ACE_HANDLE handle)
int remainder = length - retrieved;
- ssize_t secondtry = ACE_OS::recv (handle,
- ((char *) &log_record) + retrieved,
- remainder);
+ int secondtry = ACE_OS::recv (handle,
+ ((char *) &log_record) + retrieved,
+ remainder);
if (secondtry != remainder)
{
ACE_ERROR ((LM_ERROR,
@@ -500,7 +500,7 @@ ACE_Client_Logging_Acceptor::init (int argc, ACE_TCHAR *argv[])
int
ACE_Client_Logging_Acceptor::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("h:k:p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("h:k:p:"), 0);
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/netsvcs/lib/Name_Handler.cpp b/netsvcs/lib/Name_Handler.cpp
index 628a604511f..8dc5e4ef65b 100644
--- a/netsvcs/lib/Name_Handler.cpp
+++ b/netsvcs/lib/Name_Handler.cpp
@@ -52,7 +52,7 @@ ACE_Name_Acceptor::parse_args (int argc, ACE_TCHAR *argv[])
ACE_LOG_MSG->open (ACE_TEXT ("Name Service"));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"), 0);
for (int c; (c = get_opt ()) != -1; )
{
@@ -382,9 +382,9 @@ ACE_Name_Handler::shared_bind (int rebind)
{
ACE_TRACE (ACE_TEXT ("ACE_Name_Handler::shared_bind"));
ACE_NS_WString a_name (this->name_request_.name (),
- this->name_request_.name_len () / sizeof (ACE_WCHAR_T));
+ this->name_request_.name_len () / sizeof (wchar_t));
ACE_NS_WString a_value (this->name_request_.value (),
- this->name_request_.value_len () / sizeof (ACE_WCHAR_T));
+ this->name_request_.value_len () / sizeof (wchar_t));
int result;
if (rebind == 0)
{
@@ -422,7 +422,7 @@ ACE_Name_Handler::resolve (void)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("request for RESOLVE \n")));
#endif /* 0 */
ACE_NS_WString a_name (this->name_request_.name (),
- this->name_request_.name_len () / sizeof (ACE_WCHAR_T));
+ this->name_request_.name_len () / sizeof (wchar_t));
// The following will deliver our reply back to client we
// pre-suppose success (indicated by type RESOLVE).
@@ -431,12 +431,12 @@ ACE_Name_Handler::resolve (void)
char *atype;
if (NAMING_CONTEXT::instance ()->resolve (a_name, avalue, atype) == 0)
{
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> avalue_urep (avalue.rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> avalue_urep (avalue.rep ());
ACE_Name_Request nrq (ACE_Name_Request::RESOLVE,
0,
0,
avalue_urep.get (),
- avalue.length () * sizeof (ACE_WCHAR_T),
+ avalue.length () * sizeof (wchar_t),
atype, ACE_OS::strlen (atype));
delete[] atype;
return this->send_request (nrq);
@@ -455,7 +455,7 @@ ACE_Name_Handler::unbind (void)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("request for UNBIND \n")));
#endif /* 0 */
ACE_NS_WString a_name (this->name_request_.name (),
- this->name_request_.name_len () / sizeof (ACE_WCHAR_T));
+ this->name_request_.name_len () / sizeof (wchar_t));
if (NAMING_CONTEXT::instance ()->unbind (a_name) == 0)
return this->send_reply (0);
@@ -467,10 +467,10 @@ ACE_Name_Request
ACE_Name_Handler::name_request (ACE_NS_WString *one_name)
{
ACE_TRACE (ACE_TEXT ("ACE_Name_Handler::name_request"));
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> one_name_urep (one_name->rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> one_name_urep (one_name->rep ());
return ACE_Name_Request (ACE_Name_Request::LIST_NAMES,
one_name_urep.get (),
- one_name->length () * sizeof (ACE_WCHAR_T),
+ one_name->length () * sizeof (wchar_t),
0, 0,
0, 0);
}
@@ -479,11 +479,11 @@ ACE_Name_Request
ACE_Name_Handler::value_request (ACE_NS_WString *one_value)
{
ACE_TRACE (ACE_TEXT ("ACE_Name_Handler::value_request"));
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T> one_value_urep (one_value->rep ());
+ ACE_Auto_Basic_Array_Ptr<wchar_t> one_value_urep (one_value->rep ());
return ACE_Name_Request (ACE_Name_Request::LIST_VALUES,
0, 0,
one_value_urep.get (),
- one_value->length () * sizeof (ACE_WCHAR_T),
+ one_value->length () * sizeof (wchar_t),
0, 0);
}
@@ -505,7 +505,7 @@ ACE_Name_Handler::lists (void)
ACE_PWSTRING_SET set;
ACE_NS_WString pattern (this->name_request_.name (),
- this->name_request_.name_len () / sizeof (ACE_WCHAR_T));
+ this->name_request_.name_len () / sizeof (wchar_t));
// Get the index into the list table
int index = ACE_LIST_MAP (this->name_request_.msg_type (),
@@ -555,7 +555,7 @@ ACE_Name_Handler::lists_entries (void)
ACE_TRACE (ACE_TEXT ("ACE_Name_Handler::lists_entries"));
ACE_BINDING_SET set;
ACE_NS_WString pattern (this->name_request_.name (),
- this->name_request_.name_len () / sizeof (ACE_WCHAR_T));
+ this->name_request_.name_len () / sizeof (wchar_t));
int result = -1;
@@ -604,15 +604,15 @@ ACE_Name_Handler::lists_entries (void)
set_iterator.next (one_entry) !=0;
set_iterator.advance())
{
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T>
+ ACE_Auto_Basic_Array_Ptr<wchar_t>
name_urep (one_entry->name_.rep ());
- ACE_Auto_Basic_Array_Ptr<ACE_WCHAR_T>
+ ACE_Auto_Basic_Array_Ptr<wchar_t>
value_urep (one_entry->value_.rep ());
ACE_Name_Request mynrq (this->name_request_.msg_type (),
name_urep.get (),
- one_entry->name_.length () * sizeof (ACE_WCHAR_T),
+ one_entry->name_.length () * sizeof (wchar_t),
value_urep.get (),
- one_entry->value_.length () * sizeof (ACE_WCHAR_T),
+ one_entry->value_.length () * sizeof (wchar_t),
one_entry->type_,
ACE_OS::strlen (one_entry->type_));
diff --git a/netsvcs/lib/Server_Logging_Handler_T.cpp b/netsvcs/lib/Server_Logging_Handler_T.cpp
index aca7492c985..e65769994cf 100644
--- a/netsvcs/lib/Server_Logging_Handler_T.cpp
+++ b/netsvcs/lib/Server_Logging_Handler_T.cpp
@@ -163,10 +163,10 @@ ACE_Server_Logging_Handler_T<ACE_PEER_STREAM_2, COUNTER, ACE_SYNCH_USE, LMR>::op
#if !defined (ACE_HAS_BROKEN_HPUX_TEMPLATES) && !defined (__GNUG__)
this->receiver_.m_ =
- ACE_TString (ACE_TEXT_CHAR_TO_TCHAR (client_addr.get_host_name ()));
+ ACE_TString (ACE_TEXT_TO_TCHAR_IN (client_addr.get_host_name ()));
#else
this->host_name_ =
- ACE_TString (ACE_TEXT_CHAR_TO_TCHAR (client_addr.get_host_name ()));
+ ACE_TString (ACE_TEXT_TO_TCHAR_IN (client_addr.get_host_name ()));
#endif /* ! ACE_HAS_BROKEN_HPUX_TEMPLATES && ! __GNUG__ */
ACE_DEBUG ((LM_DEBUG,
@@ -249,7 +249,7 @@ ACE_Server_Logging_Acceptor_T<SLH, LMR, SST>::parse_args (int argc, ACE_TCHAR *a
ACE_LOG_MSG->open (ACE_TEXT ("Logging Service"));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"), 0);
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/netsvcs/lib/TS_Clerk_Handler.cpp b/netsvcs/lib/TS_Clerk_Handler.cpp
index 53ce0be1cb2..2f1569c531b 100644
--- a/netsvcs/lib/TS_Clerk_Handler.cpp
+++ b/netsvcs/lib/TS_Clerk_Handler.cpp
@@ -42,7 +42,7 @@ ACE_TS_Clerk_Handler::state (void)
// Sets the timeout delay.
void
-ACE_TS_Clerk_Handler::timeout (long to)
+ACE_TS_Clerk_Handler::timeout (int to)
{
ACE_TRACE (ACE_TEXT ("ACE_TS_Clerk_Handler::timeout"));
if (to > this->max_timeout_)
@@ -54,11 +54,11 @@ ACE_TS_Clerk_Handler::timeout (long to)
// Recalculate the current retry timeout delay using exponential
// backoff. Returns the original timeout (i.e., before the
// recalculation).
-long
+int
ACE_TS_Clerk_Handler::timeout (void)
{
ACE_TRACE (ACE_TEXT ("ACE_TS_Clerk_Handler::timeout"));
- long old_timeout = this->timeout_;
+ int old_timeout = this->timeout_;
this->timeout_ *= 2;
if (this->timeout_ > this->max_timeout_)
@@ -77,14 +77,14 @@ ACE_TS_Clerk_Handler::handle_signal (int, siginfo_t *, ucontext_t *)
// Set the max timeout delay.
void
-ACE_TS_Clerk_Handler::max_timeout (long mto)
+ACE_TS_Clerk_Handler::max_timeout (int mto)
{
ACE_TRACE (ACE_TEXT ("ACE_TS_Clerk_Handler::max_timeout"));
this->max_timeout_ = mto;
}
// Gets the max timeout delay.
-long
+int
ACE_TS_Clerk_Handler::max_timeout (void)
{
ACE_TRACE (ACE_TEXT ("ACE_TS_Clerk_Handler::max_timeout"));
@@ -165,9 +165,8 @@ ACE_TS_Clerk_Handler::reinitiate_connection (void)
ACE_TEXT ("(%t) Scheduling reinitiation of connection\n")));
// Reschedule ourselves to try and connect again.
- ACE_Time_Value const timeout (this->timeout ());
if (ACE_Reactor::instance ()->schedule_timer (this, 0,
- timeout) == -1)
+ this->timeout ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%t) %p\n"),
ACE_TEXT ("schedule_timer")), -1);
}
@@ -530,10 +529,9 @@ ACE_TS_Clerk_Processor::initiate_connection (ACE_TS_Clerk_Handler *handler,
// Reschedule ourselves to try and connect again.
if (synch_options[ACE_Synch_Options::USE_REACTOR])
{
- ACE_Time_Value const handler_timeout (handler->timeout ());
if (ACE_Reactor::instance ()->schedule_timer (handler,
0,
- handler_timeout) == -1)
+ handler->timeout ()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%t) %p\n"),
ACE_TEXT ("schedule_timer")), -1);
}
@@ -568,7 +566,7 @@ ACE_TS_Clerk_Processor::parse_args (int argc, ACE_TCHAR *argv[])
ACE_INET_Addr server_addr;
ACE_TS_Clerk_Handler *handler;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("h:t:p:b"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("h:t:p:b"), 0);
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/netsvcs/lib/TS_Clerk_Handler.h b/netsvcs/lib/TS_Clerk_Handler.h
index b322e82eef8..cfa92bcfc97 100644
--- a/netsvcs/lib/TS_Clerk_Handler.h
+++ b/netsvcs/lib/TS_Clerk_Handler.h
@@ -86,12 +86,12 @@ public:
void state (State);
// = Set/get the current retry timeout delay.
- long timeout (void);
- void timeout (long);
+ int timeout (void);
+ void timeout (int);
// = Set/get the maximum retry timeout delay.
- long max_timeout (void);
- void max_timeout (long);
+ int max_timeout (void);
+ void max_timeout (int);
/// Activate this instance of the <ACE_TS_Clerk_Handler>
/// (called by the <ACE_TS_Clerk_Processor>).
@@ -145,10 +145,10 @@ private:
State state_;
/// Amount of time to wait between reconnection attempts
- long timeout_;
+ int timeout_;
/// Maximum amount of time to wait between reconnection attempts
- long max_timeout_;
+ int max_timeout_;
/// Remote Addr used for connecting to the server
ACE_INET_Addr remote_addr_;
@@ -241,7 +241,7 @@ private:
long timer_id_;
/// Time period for updating system time
- long timeout_;
+ int timeout_;
/// Pool name for backing store
ACE_TCHAR poolname_[MAXNAMLEN + 1];
diff --git a/netsvcs/lib/TS_Server_Handler.cpp b/netsvcs/lib/TS_Server_Handler.cpp
index d0a87fd4c84..192ed50efc2 100644
--- a/netsvcs/lib/TS_Server_Handler.cpp
+++ b/netsvcs/lib/TS_Server_Handler.cpp
@@ -46,7 +46,7 @@ ACE_TS_Server_Acceptor::parse_args (int argc, ACE_TCHAR *argv[])
ACE_LOG_MSG->open (ACE_TEXT ("Time Service"));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:"), 0);
for (int c; (c = get_opt ()) != -1; )
{
diff --git a/netsvcs/lib/Token_Handler.cpp b/netsvcs/lib/Token_Handler.cpp
index ede624eaf8b..043c0772fec 100644
--- a/netsvcs/lib/Token_Handler.cpp
+++ b/netsvcs/lib/Token_Handler.cpp
@@ -34,15 +34,15 @@ template class ACE_Strategy_Acceptor<ACE_Token_Handler, ACE_SOCK_ACCEPTOR>;
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
int
-ACE_Token_Acceptor::parse_args (int argc, ACE_TCHAR *argv[])
+ACE_Token_Acceptor::parse_args (int argc, char *argv[])
{
ACE_TRACE ("ACE_Token_Acceptor::parse_args");
u_short svc_port = ACE_DEFAULT_SERVER_PORT;
- ACE_LOG_MSG->open (ACE_TEXT ("Token Service"));
+ ACE_LOG_MSG->open ("Token Service");
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:"), 0);
+ ACE_Get_Arg_Opt get_opt (argc, argv, "p:", 0);
for (int c; (c = get_opt ()) != -1; )
{
@@ -53,8 +53,8 @@ ACE_Token_Acceptor::parse_args (int argc, ACE_TCHAR *argv[])
break;
default:
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%n:\n[-p server-port]\n"), 1),
- -1);
+ "%n:\n[-p server-port]\n%a", 1),
+ -1);
}
}
@@ -63,7 +63,7 @@ ACE_Token_Acceptor::parse_args (int argc, ACE_TCHAR *argv[])
}
int
-ACE_Token_Acceptor::init (int argc, ACE_TCHAR *argv[])
+ACE_Token_Acceptor::init (int argc, char *argv[])
{
ACE_TRACE ("ACE_Token_Acceptor::init");
@@ -76,10 +76,9 @@ ACE_Token_Acceptor::init (int argc, ACE_TCHAR *argv[])
if (this->open (this->service_addr_, ACE_Reactor::instance (),
0, 0, 0,
&this->scheduling_strategy_,
- ACE_TEXT ("Token Server"),
- ACE_TEXT ("ACE token service")) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%n: %p on port %d\n"),
- ACE_TEXT ("acceptor::open failed"),
+ "Token Server", "ACE token service") == -1)
+ ACE_ERROR_RETURN ((LM_ERROR, "%n: %p on port %d\n",
+ "acceptor::open failed",
this->service_addr_.get_port_number ()), -1);
// Ignore SIGPIPE so that each <SVC_HANDLER> can handle this on its
@@ -90,13 +89,12 @@ ACE_Token_Acceptor::init (int argc, ACE_TCHAR *argv[])
ACE_INET_Addr server_addr;
if (this->acceptor ().get_local_addr (server_addr) == -1)
- ACE_ERROR_RETURN
- ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("get_remote_addr")), -1);
+ ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "get_remote_addr"), -1);
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("starting up Token Server at port %d on handle %d\n"),
- server_addr.get_port_number (),
- this->acceptor ().get_handle ()));
+ "starting up Token Server at port %d on handle %d\n",
+ server_addr.get_port_number (),
+ this->acceptor ().get_handle ()));
return 0;
}
@@ -134,8 +132,8 @@ ACE_Token_Handler::send_reply (ACE_UINT32 err)
if (n != (ssize_t) len)
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p, expected len = %d, actual len = %d\n"),
- ACE_TEXT ("send failed"), len, n), -1);
+ "%p, expected len = %d, actual len = %d\n",
+ "send failed", len, n), -1);
else
return 0;
}
@@ -171,8 +169,7 @@ ACE_Token_Handler::acquire (ACE_Token_Proxy *proxy)
(this, (void *) proxy, request_options_.timeout ());
if (timeout_id_ == -1)
{
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"),
- ACE_TEXT ("schedule_timer")));
+ ACE_ERROR ((LM_ERROR, "%p\n", "schedule_timer"));
return this->send_reply (errno);
}
}
@@ -258,8 +255,7 @@ ACE_Token_Handler::renew (ACE_Token_Proxy *proxy)
(this, 0, request_options_.timeout ());
if (timeout_id_ == -1)
{
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"),
- ACE_TEXT ("schedule_timer")));
+ ACE_ERROR ((LM_ERROR, "%p\n", "schedule_timer"));
return this->send_reply (ACE_LOG_MSG->errnum ());
}
}
@@ -280,9 +276,7 @@ ACE_Token_Handler::remove (ACE_Token_Proxy * /* proxy */)
ACE_DEBUG ((LM_DEBUG, "in remove for client id = %s\n",
proxy->client_id ()));
#endif /* 0 */
- ACE_ERROR
- ((LM_ERROR,
- ACE_TEXT ("sorry: ACE_Token_Handler::remove() is not implemented")));
+ ACE_ERROR ((LM_ERROR, "sorry: ACE_Token_Handler::remove() is not implemented"));
return this->send_reply (ENOTSUP);
}
@@ -335,14 +329,14 @@ ACE_Token_Handler::get_proxy (void)
// Put the new_proxy in this client_id's collection.
if (collection_.insert (*proxy) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("insert failed\n")), 0);
+ ACE_ERROR_RETURN ((LM_ERROR, "insert failed\n"), 0);
// Delete our copy (one was created in the collection).
delete proxy;
proxy = collection_.is_member (token_request_.token_name ());
if (proxy == 0)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("is_member failed\n")), 0);
+ ACE_ERROR_RETURN ((LM_ERROR, "is_member failed\n"), 0);
// Set the client_id (it was set to 1 since we're
// single-threaded.
@@ -412,7 +406,7 @@ ACE_Token_Handler::dispatch (void)
case ACE_Token_Request::REMOVE:
return this->remove (proxy);
default:
- ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("invalid type = %d\n"),
+ ACE_ERROR_RETURN ((LM_ERROR, "invalid type = %d\n",
this->token_request_.operation_type ()), -1);
/* NOTREACHED */
}
@@ -438,8 +432,8 @@ ACE_Token_Handler::recv_request (void)
case -1:
/* FALLTHROUGH */
default:
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p got %d bytes, expected %d bytes\n"),
- ACE_TEXT ("recv failed"), n, sizeof (ACE_UINT32)));
+ ACE_ERROR ((LM_ERROR, "%p got %d bytes, expected %d bytes\n",
+ "recv failed", n, sizeof (ACE_UINT32)));
/* FALLTHROUGH */
case 0:
// We've shutdown unexpectedly, let's abandon the connection.
@@ -454,7 +448,7 @@ ACE_Token_Handler::recv_request (void)
// Do a sanity check on the length of the message.
if (length > (ssize_t) sizeof this->token_request_)
{
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("length %d too long\n"), length));
+ ACE_ERROR ((LM_ERROR, "length %d too long\n", length));
return this->abandon (1);
}
@@ -467,16 +461,15 @@ ACE_Token_Handler::recv_request (void)
// Subtract off the size of the part we skipped over...
if (n != (length - (ssize_t) sizeof (ACE_UINT32)))
{
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p expected %d, got %d\n"),
- ACE_TEXT ("invalid length"), length, n));
+ ACE_ERROR ((LM_ERROR, "%p expected %d, got %d\n",
+ "invalid length", length, n));
return this->abandon (1);
}
// Decode the request into host byte order.
if (this->token_request_.decode () == -1)
{
- ACE_ERROR
- ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("decode failed")));
+ ACE_ERROR ((LM_ERROR, "%p\n", "decode failed"));
return this->abandon (1);
}
@@ -552,7 +545,7 @@ ACE_Token_Handler::abandon (int send_error)
// ************************************************************
// ************************************************************
-ACE_TS_Mutex::ACE_TS_Mutex (const ACE_TCHAR *name,
+ACE_TS_Mutex::ACE_TS_Mutex (const char *name,
ACE_Token_Handler *th)
: ACE_Local_Mutex (name, 0, 1), // The 1 is debug.
th_ (th)
@@ -596,7 +589,7 @@ ACE_TS_Mutex::clone (void) const
// ************************************************************
-ACE_TS_RLock::ACE_TS_RLock (const ACE_TCHAR *name,
+ACE_TS_RLock::ACE_TS_RLock (const char *name,
ACE_Token_Handler *th)
: ACE_Local_RLock (name, 0, 1), // The 1 is debug.
th_ (th)
@@ -641,7 +634,7 @@ ACE_TS_RLock::clone (void) const
// ************************************************************
-ACE_TS_WLock::ACE_TS_WLock (const ACE_TCHAR *name,
+ACE_TS_WLock::ACE_TS_WLock (const char *name,
ACE_Token_Handler *th)
: ACE_Local_WLock (name, 0, 1), // The 1 is debug.
th_ (th)
diff --git a/netsvcs/lib/Token_Handler.h b/netsvcs/lib/Token_Handler.h
index 519965be182..1cbb6b3d2ef 100644
--- a/netsvcs/lib/Token_Handler.h
+++ b/netsvcs/lib/Token_Handler.h
@@ -162,7 +162,7 @@ class ACE_TS_Mutex : public ACE_Local_Mutex
public:
/// Creation.
- ACE_TS_Mutex (const ACE_TCHAR *name,
+ ACE_TS_Mutex (const char *name,
ACE_Token_Handler *th);
protected:
@@ -197,7 +197,7 @@ class ACE_TS_RLock : public ACE_Local_RLock
{
public:
/// Creation.
- ACE_TS_RLock (const ACE_TCHAR *name,
+ ACE_TS_RLock (const char *name,
ACE_Token_Handler *th);
protected:
@@ -232,7 +232,7 @@ class ACE_TS_WLock : public ACE_Local_WLock
{
public:
/// Creation.
- ACE_TS_WLock (const ACE_TCHAR *name,
+ ACE_TS_WLock (const char *name,
ACE_Token_Handler *th);
protected:
@@ -268,10 +268,10 @@ class ACE_Token_Acceptor : public ACE_Strategy_Acceptor<ACE_Token_Handler, ACE_S
{
public:
/// Dynamic linking hook.
- virtual int init (int argc, ACE_TCHAR *argv[]);
+ virtual int init (int argc, char *argv[]);
/// Parse svc.conf arguments.
- int parse_args (int argc, ACE_TCHAR *argv[]);
+ int parse_args (int argc, char *argv[]);
private:
/// The scheduling strategy is designed for Reactive services.
diff --git a/netsvcs/lib/lib.mpc b/netsvcs/lib/lib.mpc
index d1e2f34a9fa..ff262f00ff2 100644
--- a/netsvcs/lib/lib.mpc
+++ b/netsvcs/lib/lib.mpc
@@ -2,7 +2,6 @@
// $Id$
project(netsvcs): acelib {
- avoids += ace_for_tao
sharedname = netsvcs
dynamicflags += ACE_NETSVCS_BUILD_DLL
Source_Files {
diff --git a/netsvcs/servers/main.cpp b/netsvcs/servers/main.cpp
index 6707845c5d3..b134b8db7c7 100644
--- a/netsvcs/servers/main.cpp
+++ b/netsvcs/servers/main.cpp
@@ -41,7 +41,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_TCHAR *l_argv[3];
ACE_TCHAR name_port[] =
- ACE_TEXT ("-p ") ACE_TEXT (ACE_DEFAULT_NAME_SERVER_PORT_STR);
+ ACE_TEXT ("-p ") ACE_DEFAULT_NAME_SERVER_PORT_STR;
l_argv[0] = name_port;
l_argv[1] = 0;
@@ -54,7 +54,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
1);
ACE_TCHAR time_port[] =
- ACE_TEXT ("-p ") ACE_TEXT (ACE_DEFAULT_TIME_SERVER_PORT_STR);
+ ACE_TEXT ("-p ") ACE_DEFAULT_TIME_SERVER_PORT_STR;
l_argv[0] = time_port;
l_argv[1] = 0;
ACE_Service_Object_Ptr sp_2 = ACE_SVC_INVOKE (ACE_TS_Server_Acceptor);
@@ -79,7 +79,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
#if defined (ACE_HAS_TOKENS_LIBRARY)
ACE_TCHAR token_port[] =
- ACE_TEXT ("-p ") ACE_TEXT (ACE_DEFAULT_TOKEN_SERVER_PORT_STR);
+ ACE_TEXT ("-p ") ACE_DEFAULT_TOKEN_SERVER_PORT_STR;
l_argv[0] = token_port;
l_argv[1] = 0;
ACE_Service_Object_Ptr sp_4 = ACE_SVC_INVOKE (ACE_Token_Acceptor);
@@ -92,7 +92,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
#endif /* ACE_HAS_TOKENS_LIBRARY */
ACE_TCHAR thr_logging_port[] =
- ACE_TEXT ("-p ") ACE_TEXT (ACE_DEFAULT_THR_LOGGING_SERVER_PORT_STR);
+ ACE_TEXT ("-p ") ACE_DEFAULT_THR_LOGGING_SERVER_PORT_STR;
l_argv[0] = thr_logging_port;
l_argv[1] = 0;
ACE_Service_Object_Ptr sp_5 =
@@ -105,7 +105,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
1);
ACE_TCHAR logging_port[] =
- ACE_TEXT ("-p ") ACE_TEXT (ACE_DEFAULT_LOGGING_SERVER_PORT_STR);
+ ACE_TEXT ("-p ") ACE_DEFAULT_LOGGING_SERVER_PORT_STR;
l_argv[0] = logging_port;
l_argv[1] = 0;
ACE_Service_Object_Ptr sp_6 =
diff --git a/netsvcs/servers/servers.mpc b/netsvcs/servers/servers.mpc
index 7cbbee9e5b2..7ceba68ce63 100644
--- a/netsvcs/servers/servers.mpc
+++ b/netsvcs/servers/servers.mpc
@@ -2,10 +2,9 @@
// $Id$
project(Netsvcs_server) : aceexe {
- avoids += ace_for_tao
- exename = main
- libs += netsvcs
- after += netsvcs
+ exename = main
+ libs += netsvcs
+ after += netsvcs
includes += $(ACE_ROOT)/netsvcs/lib
Source_Files {
main.cpp
diff --git a/netsvcs/servers/svc.conf b/netsvcs/servers/svc.conf
index 94462ea04b0..d3fb7c95f58 100644
--- a/netsvcs/servers/svc.conf
+++ b/netsvcs/servers/svc.conf
@@ -10,7 +10,7 @@
dynamic Logger Service_Object * ACE:_make_ACE_Logging_Strategy() "-w -s foobar -f STDERR|OSTREAM|VERBOSE"
dynamic Time_Service Service_Object * netsvcs:_make_ACE_TS_Server_Acceptor() "-p 20222"
-dynamic Name_Server Service_Object * netsvcs:_make_ACE_Name_Acceptor() "-p 20006"
+dynamic Name_Server Service_Object * netsvcs:_make_ACE_Name_Acceptor() "-p 20012"
# This service is disabled by default -- only enable it ACE is compiled with ACE_HAS_TOKENS_LIBRARY.
# dynamic Token_Service Service_Object * netsvcs:_make_ACE_Token_Acceptor() "-p 20202"
dynamic Server_Logging_Service Service_Object * netsvcs:_make_ACE_Server_Logging_Acceptor() active "-p 20009"
diff --git a/netsvcs/servers/svc.conf.xml b/netsvcs/servers/svc.conf.xml
index 3519594ce5c..6657e500089 100644
--- a/netsvcs/servers/svc.conf.xml
+++ b/netsvcs/servers/svc.conf.xml
@@ -16,7 +16,7 @@
<initializer path="netsvcs" init="_make_ACE_TS_Server_Acceptor" params="-p 20222"/>
</dynamic>
<dynamic id="Name_Server" type="Service_Object">
- <initializer path="netsvcs" init="_make_ACE_Name_Acceptor" params="-p 20006"/>
+ <initializer path="netsvcs" init="_make_ACE_Name_Acceptor" params="-p 20012"/>
</dynamic>
<!-- This service is disabled by default -- only enable it ACE is compiled with ACE_HAS_TOKENS_LIBRARY. -->
<!-- dynamic Token_Service Service_Object * netsvcs:_make_ACE_Token_Acceptor() "-p 20202" -->
diff --git a/performance-tests/Misc/Misc.mpc b/performance-tests/Misc/Misc.mpc
index 3bffd12d021..5c2aa3ec7d5 100644
--- a/performance-tests/Misc/Misc.mpc
+++ b/performance-tests/Misc/Misc.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*basic_perf) : aceexe {
- avoids += ace_for_tao
exename = basic_perf
Source_Files {
basic_func.cpp
@@ -11,7 +10,6 @@ project(*basic_perf) : aceexe {
}
project(*childbirth_time) : aceexe {
- avoids += ace_for_tao
exename = childbirth_time
Source_Files {
childbirth_time.cpp
@@ -19,7 +17,6 @@ project(*childbirth_time) : aceexe {
}
project(*context_switch_time) : aceexe {
- avoids += ace_for_tao
exename = context_switch_time
Source_Files {
context_switch_time.cpp
@@ -27,7 +24,6 @@ project(*context_switch_time) : aceexe {
}
project(*test_mutex) : aceexe {
- avoids += ace_for_tao
exename = test_mutex
Source_Files {
test_mutex.cpp
@@ -35,7 +31,6 @@ project(*test_mutex) : aceexe {
}
project(*test_naming) : aceexe {
- avoids += ace_for_tao
exename = test_naming
Source_Files {
test_naming.cpp
@@ -43,7 +38,6 @@ project(*test_naming) : aceexe {
}
project(*test_singleton) : aceexe {
- avoids += ace_for_tao
exename = test_singleton
Source_Files {
test_singleton.cpp
diff --git a/performance-tests/Misc/basic_perf.cpp b/performance-tests/Misc/basic_perf.cpp
index d084e84e1b2..0aa04d3b007 100644
--- a/performance-tests/Misc/basic_perf.cpp
+++ b/performance-tests/Misc/basic_perf.cpp
@@ -498,7 +498,7 @@ static
unsigned int
get_options (int argc, ACE_TCHAR *argv [])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("i:?"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("i:?"));
int opt;
while ((opt = get_opt ()) != EOF)
diff --git a/performance-tests/Misc/childbirth_time.cpp b/performance-tests/Misc/childbirth_time.cpp
index 739d676a5fb..8707bce198e 100644
--- a/performance-tests/Misc/childbirth_time.cpp
+++ b/performance-tests/Misc/childbirth_time.cpp
@@ -75,9 +75,9 @@ ACE_RCSID(Misc, childbirth_time, "$Id$")
#define MAX_NO_ITERATION 10000
#if defined (ACE_WIN32)
-#define SUBPROGRAM ACE_TEXT ("date.exe")
+#define SUBPROGRAM "date.exe"
#else
-#define SUBPROGRAM ACE_TEXT ("date")
+#define SUBPROGRAM "date"
#endif
size_t MULTIPLY_FACTOR = 10;
@@ -336,7 +336,7 @@ prof_mutex_base (size_t iteration)
int
ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("n:l:pftahmxe"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("n:l:pftahmxe"));
int c;
size_t iteration = 10;
Profiler profiler = 0;
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp
index 084d85eaca6..a14f918bc93 100644
--- a/performance-tests/Misc/context_switch_time.cpp
+++ b/performance-tests/Misc/context_switch_time.cpp
@@ -1085,7 +1085,7 @@ static
u_int
get_options (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("c:n?"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("c:n?"));
int opt;
while ((opt = get_opt ()) != EOF) {
switch (opt) {
@@ -1307,7 +1307,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv [])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
return 0;
diff --git a/performance-tests/Misc/preempt.cpp b/performance-tests/Misc/preempt.cpp
index 56a961031e8..2c68e817385 100644
--- a/performance-tests/Misc/preempt.cpp
+++ b/performance-tests/Misc/preempt.cpp
@@ -293,7 +293,7 @@ Low_Priority_Task::svc (void)
static int
get_options (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("fh:l:n:p:y?"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("fh:l:n:p:y?"));
int opt;
while ((opt = get_opt ()) != EOF) {
switch (opt) {
diff --git a/performance-tests/Misc/test_guard.cpp b/performance-tests/Misc/test_guard.cpp
index 507f22bfff7..7d2707d3e58 100644
--- a/performance-tests/Misc/test_guard.cpp
+++ b/performance-tests/Misc/test_guard.cpp
@@ -50,10 +50,10 @@ char *test_name[TEST_END] = { "ACE_Guard", "ACE_Thread_Mutex_Guard" };
guard_func test_function=guard;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_Profile_Timer timer;
- ACE_Get_Opt getopt (argc, argv, "gtn:");
+ ACE_Get_Arg_Opt getopt (argc, argv, "gtn:");
int iterations = DEFAULT_ITERATIONS;
int c, i;
@@ -105,7 +105,7 @@ main (int argc, char *argv[])
}
#else
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n"));
return 0;
diff --git a/performance-tests/RPC/client.cpp b/performance-tests/RPC/client.cpp
index b0f4a476600..ef85b9fa559 100644
--- a/performance-tests/RPC/client.cpp
+++ b/performance-tests/RPC/client.cpp
@@ -7,13 +7,13 @@
#include "ping.h"
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
const char* host = 0;
int nsamples = 10000;
int c;
- ACE_Get_Opt getopt (argc, argv, "h:i:");
+ ACE_Get_Arg_Opt getopt (argc, argv, "h:i:");
while ((c = getopt ()) != -1)
{
diff --git a/performance-tests/SCTP/Options_Manager.cpp b/performance-tests/SCTP/Options_Manager.cpp
index 6d28a393fdf..dcf3f740072 100644
--- a/performance-tests/SCTP/Options_Manager.cpp
+++ b/performance-tests/SCTP/Options_Manager.cpp
@@ -67,45 +67,45 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c
__program_name[Options_Manager::string_len - 1] = '\0';
}
- // Declare options with ACE_Get_Opt
+ // Declare options with ACE_Get_Arg_Opt
int c;
- ACE_Get_Opt * get_opt = 0;
+ ACE_Get_Arg_Opt<ACE_TCHAR> * get_opt = 0;
if (!ACE_OS::strcmp(ACE_TEXT ("client-opts"), opts_set)){
- get_opt = new ACE_Get_Opt(argc, argv, ACE_TEXT("c:nt:m:M:x:b:C:i:p:H:s:h"));
+ get_opt = new ACE_Get_Arg_Opt<ACE_TCHAR>(argc, argv, ACE_TEXT("c:nt:m:M:x:b:C:i:p:H:s:h"));
get_opt->long_option (ACE_TEXT ("test_iterations"), 'c',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("test_enable_nagle"), 'n');
get_opt->long_option (ACE_TEXT ("test_transport_protocol"), 't',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("histogram_min_bin"), 'm',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("histogram_max_bin"), 'M',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("histogram_num_outliers"), 'x',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("histogram_bin_count"), 'b',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("client_port"), 'C',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("client_accept_addr"), 'i',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("server_port"), 'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("server_host"), 'H',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("payload_size_power_of_2"), 's',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("help"), 'h');
} else if (!ACE_OS::strcmp (ACE_TEXT ("server-opts"), opts_set)){
- get_opt = new ACE_Get_Opt(argc, argv, ACE_TEXT("nt:p:a:u"));
+ get_opt = new ACE_Get_Arg_Opt<ACE_TCHAR>(argc, argv, ACE_TEXT("nt:p:a:u"));
get_opt->long_option (ACE_TEXT ("test_enable_nagle"), 'n');
get_opt->long_option (ACE_TEXT ("test_transport_protocol"), 't',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("server_port"), 'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("server_accept_addr"), 'a',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt->long_option (ACE_TEXT ("help"), 'h');
} else {
_error = 1;
@@ -114,7 +114,7 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c
return;
}
- // Parse options with ACE_Get_Opt
+ // Parse options with ACE_Get_Arg_Opt
while ((c = (*get_opt)()) != -1)
{
switch ((char) c)
@@ -173,7 +173,7 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c
// Obtain the 32-bit, host-byte-order representation of
// the primary address.
struct in_addr foo;
- int aton_retval = ACE_OS::inet_aton(ACE_TEXT_ALWAYS_CHAR (str),
+ int aton_retval = ACE_OS::inet_aton(ACE_TEXT_TO_CHAR_IN (str),
&foo);
// If this representation was not obtained, terminate with
@@ -231,7 +231,7 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c
// Obtain the 32-bit, host-byte-order representation of
// a secondary address.
aton_retval =
- ACE_OS::inet_aton(ACE_TEXT_ALWAYS_CHAR (next_secondary_addr),
+ ACE_OS::inet_aton(ACE_TEXT_TO_CHAR_IN (next_secondary_addr),
&foo);
// If the representation was obtained without error,
@@ -290,7 +290,7 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c
// Obtain the 32-bit, host-byte-order representation of
// the primary address.
struct in_addr foo;
- int aton_retval = ACE_OS::inet_aton (ACE_TEXT_ALWAYS_CHAR (str),
+ int aton_retval = ACE_OS::inet_aton (ACE_TEXT_TO_CHAR_IN (str),
&foo);
// If this representation was not obtained, terminate with
@@ -348,7 +348,7 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c
// Obtain the 32-bit, host-byte-order representation of
// a secondary address.
aton_retval =
- ACE_OS::inet_aton (ACE_TEXT_ALWAYS_CHAR (next_secondary_addr),
+ ACE_OS::inet_aton (ACE_TEXT_TO_CHAR_IN (next_secondary_addr),
&foo);
// If the representation was obtained without error,
diff --git a/performance-tests/SCTP/SCTP.mpc b/performance-tests/SCTP/SCTP.mpc
index cba52013c32..91e7b815f4d 100644
--- a/performance-tests/SCTP/SCTP.mpc
+++ b/performance-tests/SCTP/SCTP.mpc
@@ -2,7 +2,6 @@
// $Id$
project(*SOCK_STREAM_clt) : aceexe {
- avoids += ace_for_tao
exename = SOCK_STREAM_clt
source_files {
SOCK_STREAM_clt.cpp
@@ -27,7 +26,6 @@ project(*SOCK_STREAM_srv) : aceexe {
}
project(*SOCK_SEQPACK_clt) : aceexe {
- avoids += ace_for_tao
exename = SOCK_SEQPACK_clt
source_files {
SOCK_SEQPACK_clt.cpp
@@ -44,7 +42,6 @@ project(*SOCK_SEQPACK_clt) : aceexe {
}
project(*SOCK_SEQPACK_srv) : aceexe {
- avoids += ace_for_tao
exename = SOCK_SEQPACK_srv
source_files {
SOCK_SEQPACK_srv.cpp
@@ -53,7 +50,6 @@ project(*SOCK_SEQPACK_srv) : aceexe {
}
project(*SOCK_SEQPACK_Association_Test) : aceexe {
- avoids += ace_for_tao
exename = SOCK_SEQPACK_Association_Test
source_files {
SOCK_SEQPACK_Association_Test.cpp
diff --git a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp
index 7f98883bfad..9dd12ef4a72 100644
--- a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp
+++ b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp
@@ -61,7 +61,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){
// check that valid options were specified
if (optsMgr._error) {
- ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message));
+ ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_TO_CHAR_IN (optsMgr._error_message));
return 1;
}
diff --git a/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp b/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp
index 84db9afc541..7677c317ed6 100644
--- a/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp
+++ b/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp
@@ -231,7 +231,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){
// check that valid options were specified
if (optsMgr._error) {
- ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message));
+ ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_TO_CHAR_IN (optsMgr._error_message));
return 1;
}
diff --git a/performance-tests/SCTP/SOCK_STREAM_clt.cpp b/performance-tests/SCTP/SOCK_STREAM_clt.cpp
index 365890265b1..f98836bedfb 100644
--- a/performance-tests/SCTP/SOCK_STREAM_clt.cpp
+++ b/performance-tests/SCTP/SOCK_STREAM_clt.cpp
@@ -65,7 +65,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){
// check that valid options were specified
if (optsMgr._error) {
- ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message));
+ ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_TO_CHAR_IN (optsMgr._error_message));
return 1;
}
diff --git a/performance-tests/SCTP/SOCK_STREAM_srv.cpp b/performance-tests/SCTP/SOCK_STREAM_srv.cpp
index c2d3cceb1fc..c3bb001f2db 100644
--- a/performance-tests/SCTP/SOCK_STREAM_srv.cpp
+++ b/performance-tests/SCTP/SOCK_STREAM_srv.cpp
@@ -244,7 +244,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){
// check that valid options were specified
if (optsMgr._error) {
- ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message));
+ ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_TO_CHAR_IN (optsMgr._error_message));
return 1;
}
diff --git a/performance-tests/Server_Concurrency/Leader_Follower/RT_CORBA_Leader_Follower.cpp b/performance-tests/Server_Concurrency/Leader_Follower/RT_CORBA_Leader_Follower.cpp
index 59b6844836a..b081ff9b4d3 100644
--- a/performance-tests/Server_Concurrency/Leader_Follower/RT_CORBA_Leader_Follower.cpp
+++ b/performance-tests/Server_Concurrency/Leader_Follower/RT_CORBA_Leader_Follower.cpp
@@ -246,7 +246,7 @@ Leader_Follower_Task::svc (void)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("m:t:d:s:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("m:t:d:s:"));
int c;
while ((c = get_opt ()) != -1)
diff --git a/performance-tests/Server_Concurrency/Leader_Follower/Svr_Conc_Leader_Follower.mpc b/performance-tests/Server_Concurrency/Leader_Follower/Svr_Conc_Leader_Follower.mpc
index 90e800b468a..d4a5ce02924 100644
--- a/performance-tests/Server_Concurrency/Leader_Follower/Svr_Conc_Leader_Follower.mpc
+++ b/performance-tests/Server_Concurrency/Leader_Follower/Svr_Conc_Leader_Follower.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = leader_follower
source_files {
leader_follower.cpp
@@ -10,7 +9,6 @@ project : aceexe {
}
project(*RT_CORBA) : aceexe {
- avoids += ace_for_tao
exename = RT_CORBA_Leader_Follower
source_files {
RT_CORBA_Leader_Follower.cpp
diff --git a/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp b/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp
index 5703ff2a1af..5ba6738013d 100644
--- a/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp
+++ b/performance-tests/Server_Concurrency/Leader_Follower/leader_follower.cpp
@@ -192,7 +192,7 @@ Leader_Follower_Task::svc (void)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("m:s:w:b:t:d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("m:s:w:b:t:d:"));
int c;
while ((c = get_opt ()) != -1)
diff --git a/performance-tests/Server_Concurrency/Queue_Based_Workers/RT_CORBA_Workers.cpp b/performance-tests/Server_Concurrency/Queue_Based_Workers/RT_CORBA_Workers.cpp
index eb9671dba41..239fc1f622e 100644
--- a/performance-tests/Server_Concurrency/Queue_Based_Workers/RT_CORBA_Workers.cpp
+++ b/performance-tests/Server_Concurrency/Queue_Based_Workers/RT_CORBA_Workers.cpp
@@ -396,7 +396,7 @@ Output_Task::put (ACE_Message_Block *mb, ACE_Time_Value *)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("m:s:t:d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("m:s:t:d:"));
int c;
while ((c = get_opt ()) != -1)
@@ -589,7 +589,7 @@ template class ACE_Lock_Adapter<ACE_SYNCH_MUTEX>;
#else /*ACE_HAS_THREADS*/
int
-main (int, char *[])
+ACE_TMAIN (int, ACE_TCHAR *[])
{
ACE_DEBUG ((LM_DEBUG,
"(%P|%t) Not supported in single threaded builds \n"));
diff --git a/performance-tests/Server_Concurrency/Queue_Based_Workers/Svr_Conc_Queue_Based_Workers.mpc b/performance-tests/Server_Concurrency/Queue_Based_Workers/Svr_Conc_Queue_Based_Workers.mpc
index 12566016d17..d916bb820ac 100644
--- a/performance-tests/Server_Concurrency/Queue_Based_Workers/Svr_Conc_Queue_Based_Workers.mpc
+++ b/performance-tests/Server_Concurrency/Queue_Based_Workers/Svr_Conc_Queue_Based_Workers.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = workers
source_files {
workers.cpp
@@ -10,7 +9,6 @@ project : aceexe {
}
project(*RTCorba) : aceexe {
- avoids += ace_for_tao
exename = RT_CORBA_Workers
source_files {
RT_CORBA_Workers.cpp
diff --git a/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp b/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp
index dd403c05d19..83a75a2fd52 100644
--- a/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp
+++ b/performance-tests/Server_Concurrency/Queue_Based_Workers/workers.cpp
@@ -235,7 +235,7 @@ IO_Task::svc (void)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("m:s:w:b:t:d:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("m:s:w:b:t:d:"));
int c;
while ((c = get_opt ()) != -1)
diff --git a/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.cpp b/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.cpp
index ed2703e7401..256ad60b902 100644
--- a/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.cpp
+++ b/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.cpp
@@ -40,7 +40,7 @@ Baseline_Test_Base::init (int argc, ACE_TCHAR *argv[])
int
Baseline_Test_Base::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("i:ylrw"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("i:ylrw"), 0);
int c;
while ((c = getopt ()) != -1)
@@ -102,7 +102,7 @@ Baseline_Test_Options::Baseline_Test_Options (void)
int
Baseline_Test_Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("tv"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("tv"), 0);
int c;
while ((c = getopt ()) != -1)
diff --git a/performance-tests/Synch-Benchmarks/Base_Test/Synch_Benchmarks_Base_Test.mpc b/performance-tests/Synch-Benchmarks/Base_Test/Synch_Benchmarks_Base_Test.mpc
index 5e056bcf881..3f34fc753a9 100644
--- a/performance-tests/Synch-Benchmarks/Base_Test/Synch_Benchmarks_Base_Test.mpc
+++ b/performance-tests/Synch-Benchmarks/Base_Test/Synch_Benchmarks_Base_Test.mpc
@@ -2,9 +2,8 @@
// $Id$
project : acelib {
- avoids += ace_for_tao
after += Synch_Lib
libs += Synch_Lib
libpaths += ../Synch_Lib
includes += ..
-}
+} \ No newline at end of file
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp
index 11c45f3f155..f62eed366c7 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Performance_Test_Options.cpp
@@ -74,7 +74,7 @@ Performance_Test_Options::Performance_Test_Options (void)
void
Performance_Test_Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("a:A:bBc:C:dDe:F:g:H:i:L:l:M:m:n:Np:P:s:S:t:T:uvX:Z:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("a:A:bBc:C:dDe:F:g:H:i:L:l:M:m:n:Np:P:s:S:t:T:uvX:Z:"), 0);
int c;
while ((c = get_opt ()) != -1)
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/Synch_Benchmarks_Perf_Test.mpc b/performance-tests/Synch-Benchmarks/Perf_Test/Synch_Benchmarks_Perf_Test.mpc
index 1c6fd932a6b..3f34fc753a9 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/Synch_Benchmarks_Perf_Test.mpc
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/Synch_Benchmarks_Perf_Test.mpc
@@ -2,7 +2,6 @@
// $Id$
project : acelib {
- avoids += ace_for_tao
after += Synch_Lib
libs += Synch_Lib
libpaths += ../Synch_Lib
diff --git a/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp b/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp
index e1824f3d4ac..429bd97a031 100644
--- a/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp
+++ b/performance-tests/Synch-Benchmarks/Perf_Test/guard_test.cpp
@@ -37,7 +37,7 @@ ACE_Thread_Mutex Guard_Test::mutex_;
int
Guard_Test::init (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("gt"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("gt"));
int c;
while ((c = getopt()) != -1)
diff --git a/performance-tests/TCP/TCP.mpc b/performance-tests/TCP/TCP.mpc
index 09cb362e007..e2244fe35a3 100644
--- a/performance-tests/TCP/TCP.mpc
+++ b/performance-tests/TCP/TCP.mpc
@@ -2,6 +2,5 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = tcp_test
}
diff --git a/performance-tests/TCP/tcp_test.cpp b/performance-tests/TCP/tcp_test.cpp
index 182914e14b7..a08f475e62f 100644
--- a/performance-tests/TCP/tcp_test.cpp
+++ b/performance-tests/TCP/tcp_test.cpp
@@ -528,7 +528,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("hxwvb:I:p:sci:m:at:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("hxwvb:I:p:sci:m:at:"));
while ((c = getopt ()) != -1)
{
@@ -655,7 +655,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (remote_addr.set (dstport,
(ACE_UINT32) ACE_OS::inet_addr
- (ACE_TEXT_ALWAYS_CHAR(argv[getopt.opt_ind ()]))) == -1)
+ (ACE_TEXT_TO_CHAR_IN(argv[getopt.opt_ind ()]))) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"invalid IP address: %s\n",
argv[getopt.opt_ind ()]),
diff --git a/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp b/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp
index 975048a4a7e..27d66a906b6 100644
--- a/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp
+++ b/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp
@@ -216,7 +216,7 @@ char *title = 0;
int new_line = 0;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_SOCK_Stream connection_stream;
int c;
diff --git a/performance-tests/TTCP/C/new-ttcp.cpp b/performance-tests/TTCP/C/new-ttcp.cpp
index a897f5b39a3..997d44063fa 100644
--- a/performance-tests/TTCP/C/new-ttcp.cpp
+++ b/performance-tests/TTCP/C/new-ttcp.cpp
@@ -215,7 +215,7 @@ char *title = 0;
int new_line = 0;
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
ACE_SOCK_Stream connection_stream;
unsigned long addr_tmp;
diff --git a/performance-tests/UDP/UDP.mpc b/performance-tests/UDP/UDP.mpc
index 19928979e7b..355aba0d9db 100644
--- a/performance-tests/UDP/UDP.mpc
+++ b/performance-tests/UDP/UDP.mpc
@@ -2,7 +2,6 @@
// $Id$
project : aceexe {
- avoids += ace_for_tao
exename = udp_test
verbatim(gnuace, local) {
LDLIBS += $(MATHLIB)
diff --git a/performance-tests/UDP/udp_test.cpp b/performance-tests/UDP/udp_test.cpp
index 449c998f3ae..1d3b773061a 100644
--- a/performance-tests/UDP/udp_test.cpp
+++ b/performance-tests/UDP/udp_test.cpp
@@ -609,7 +609,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
cmd = argv;
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT("x:w:f:vs:I:p:rtn:b:a"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("x:w:f:vs:I:p:rtn:b:a"));
while ((c = getopt ()) != -1)
{
@@ -725,7 +725,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
if (remote_addr.set (dstport,
(ACE_UINT32) ACE_OS::inet_addr
- (ACE_TEXT_ALWAYS_CHAR(argv[getopt.opt_ind ()]))) == -1)
+ (ACE_TEXT_TO_CHAR_IN(argv[getopt.opt_ind ()]))) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"invalid IP address: %s\n",
argv[getopt.opt_ind ()]),
diff --git a/protocols/ace/HTBP/HTBP.mpc b/protocols/ace/HTBP/HTBP.mpc
index ada3fc8530d..873b59ecaae 100644
--- a/protocols/ace/HTBP/HTBP.mpc
+++ b/protocols/ace/HTBP/HTBP.mpc
@@ -2,7 +2,6 @@
// $Id$
project(HTBP) : acelib, core {
- avoids += ace_for_tao
sharedname = ACE_HTBP
dynamicflags = HTBP_BUILD_DLL
diff --git a/protocols/ace/HTBP/HTBP_Addr.cpp b/protocols/ace/HTBP/HTBP_Addr.cpp
index aff894e80dc..b44e2f0711a 100644
--- a/protocols/ace/HTBP/HTBP_Addr.cpp
+++ b/protocols/ace/HTBP/HTBP_Addr.cpp
@@ -7,10 +7,8 @@ ACE_RCSID (HTBP,
ACE_HTBP_Addr,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
-// Constructor
-ACE::HTBP::Addr::Addr ()
+ // Constructor
+ ACE::HTBP::Addr::Addr ()
{
}
@@ -76,7 +74,7 @@ ACE::HTBP::Addr::addr_to_string (ACE_TCHAR buffer[],
if (size < htid_.length())
return -1;
ACE_OS::strncpy (buffer,
- ACE_TEXT_CHAR_TO_TCHAR(htid_.c_str()),
+ ACE_TEXT_TO_TCHAR_IN(htid_.c_str()),
size);
return 0;
}
@@ -89,5 +87,3 @@ ACE::HTBP::Addr::string_to_addr (const char address[])
// this->htid_ = address;
// return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Addr.h b/protocols/ace/HTBP/HTBP_Addr.h
index 14241b3c3b6..3cbbaa397f7 100644
--- a/protocols/ace/HTBP/HTBP_Addr.h
+++ b/protocols/ace/HTBP/HTBP_Addr.h
@@ -24,8 +24,6 @@
#include "ace/Synch.h"
#include "ace/SString.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -85,7 +83,5 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_HTBP_ADDR_H */
diff --git a/protocols/ace/HTBP/HTBP_Channel.cpp b/protocols/ace/HTBP/HTBP_Channel.cpp
index 064312377ba..10bbd507206 100644
--- a/protocols/ace/HTBP/HTBP_Channel.cpp
+++ b/protocols/ace/HTBP/HTBP_Channel.cpp
@@ -22,8 +22,6 @@
#include "ace/Reactor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Initialization and termination methods.
/// Constructor.
ACE::HTBP::Channel::Channel (ACE::HTBP::Session *s)
@@ -533,5 +531,3 @@ ACE::HTBP::Channel::get_filter ()
int inside = (this->session_ != 0);
return factory->get_filter (inside);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Channel.h b/protocols/ace/HTBP/HTBP_Channel.h
index b33d446e40b..3109ed656eb 100644
--- a/protocols/ace/HTBP/HTBP_Channel.h
+++ b/protocols/ace/HTBP/HTBP_Channel.h
@@ -26,7 +26,6 @@
#include "HTBP_Filter.h"
#include "HTBP_Notifier.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
@@ -270,8 +269,6 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "HTBP_Channel.inl"
#endif
diff --git a/protocols/ace/HTBP/HTBP_Channel.inl b/protocols/ace/HTBP/HTBP_Channel.inl
index 7df1ba8f16e..70fc4834842 100644
--- a/protocols/ace/HTBP/HTBP_Channel.inl
+++ b/protocols/ace/HTBP/HTBP_Channel.inl
@@ -1,8 +1,8 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ACE::HTBP::Channel.i
+
ACE_INLINE
ACE::HTBP::Session *
@@ -120,5 +120,3 @@ ACE::HTBP::Channel::set_handle (ACE_HANDLE h)
return;
this->ace_stream_.set_handle (h);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Environment.cpp b/protocols/ace/HTBP/HTBP_Environment.cpp
index bd14abcce3d..60d3b017f17 100644
--- a/protocols/ace/HTBP/HTBP_Environment.cpp
+++ b/protocols/ace/HTBP/HTBP_Environment.cpp
@@ -6,8 +6,6 @@ ACE_RCSID (HTBP,
ACE_HTBP_Environment,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE::HTBP::Environment::Environment (ACE_Configuration *config,
int using_registry,
const ACE_TCHAR *persistent_file)
@@ -197,5 +195,3 @@ ACE::HTBP::Environment::export_config (const ACE_TCHAR *filename)
{
return this->imp_exp_->export_config (filename);
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Environment.h b/protocols/ace/HTBP/HTBP_Environment.h
index 894a376457a..2f4cc90a5ac 100644
--- a/protocols/ace/HTBP/HTBP_Environment.h
+++ b/protocols/ace/HTBP/HTBP_Environment.h
@@ -15,7 +15,6 @@
#include "ace/Configuration_Import_Export.h"
#include "ace/Singleton.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
namespace ACE
{
@@ -104,7 +103,5 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_HTBP_ENVIRONMENT_H */
diff --git a/protocols/ace/HTBP/HTBP_Filter.cpp b/protocols/ace/HTBP/HTBP_Filter.cpp
index 2ac714b8904..2571199ef2d 100644
--- a/protocols/ace/HTBP/HTBP_Filter.cpp
+++ b/protocols/ace/HTBP/HTBP_Filter.cpp
@@ -1,3 +1,4 @@
+// ACE_HTBP_Filter.cpp
// $Id$
#include "ace/Log_Msg.h"
@@ -9,9 +10,7 @@
#include "HTBP_Filter.inl"
#endif
-ACE_RCSID(HTBP,ACE_HTBP_Filter,"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(HTBP,ACE_HTBP_Filter,"$ID: $")
ACE::HTBP::Filter::Filter (void)
:http_code_ (0)
@@ -53,5 +52,3 @@ ACE::HTBP::Filter::header_complete (ACE::HTBP::Channel *ch)
}
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Filter.h b/protocols/ace/HTBP/HTBP_Filter.h
index ebc9ebb895f..9548f377d1b 100644
--- a/protocols/ace/HTBP/HTBP_Filter.h
+++ b/protocols/ace/HTBP/HTBP_Filter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
#include "HTBP_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -94,8 +92,6 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "HTBP_Filter.inl"
#endif
diff --git a/protocols/ace/HTBP/HTBP_Filter.inl b/protocols/ace/HTBP/HTBP_Filter.inl
index c648393daa4..224b7e02699 100644
--- a/protocols/ace/HTBP/HTBP_Filter.inl
+++ b/protocols/ace/HTBP/HTBP_Filter.inl
@@ -1,8 +1,7 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ACE_HTBP_Filter.i
ACE_INLINE
ssize_t
@@ -59,5 +58,3 @@ ACE::HTBP::Filter::http_code (void)
{
return this->http_code_;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Filter_Factory.cpp b/protocols/ace/HTBP/HTBP_Filter_Factory.cpp
index 07b16ea9669..8c42584d143 100644
--- a/protocols/ace/HTBP/HTBP_Filter_Factory.cpp
+++ b/protocols/ace/HTBP/HTBP_Filter_Factory.cpp
@@ -11,8 +11,6 @@
ACE_RCSID (ACE_HTBP_Filter_Factory, HTBP, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE::HTBP::Filter_Factory::Filter_Factory ()
{
}
@@ -41,8 +39,6 @@ ACE::HTBP::Filter_Factory::init (int /* argc */,
return 0;
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DEFINE (ACE_HTBP_Filter_Factory,
ACE_TEXT ("Filter_Factory"),
ACE_SVC_OBJ_T,
@@ -59,4 +55,3 @@ template class ACE_Dynamic_Service<ACE::HTBP::Filter_Factory>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Dynamic_Service<ACE::HTBP::Filter_Factory>
#endif
-
diff --git a/protocols/ace/HTBP/HTBP_Filter_Factory.h b/protocols/ace/HTBP/HTBP_Filter_Factory.h
index 0681055b679..84f32000664 100644
--- a/protocols/ace/HTBP/HTBP_Filter_Factory.h
+++ b/protocols/ace/HTBP/HTBP_Filter_Factory.h
@@ -24,8 +24,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -59,8 +57,6 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
ACE_STATIC_SVC_DECLARE_EXPORT (HTBP, ACE_HTBP_Filter_Factory)
ACE_FACTORY_DECLARE (HTBP, ACE_HTBP_Filter_Factory)
diff --git a/protocols/ace/HTBP/HTBP_ID_Requestor.cpp b/protocols/ace/HTBP/HTBP_ID_Requestor.cpp
index d46b16d0e3b..1138c7bfe34 100644
--- a/protocols/ace/HTBP/HTBP_ID_Requestor.cpp
+++ b/protocols/ace/HTBP/HTBP_ID_Requestor.cpp
@@ -13,8 +13,6 @@ ACE_RCSID(HTBP,
ACE_HTBP_ID_Requestor,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_TString ACE::HTBP::ID_Requestor::htid_;
ACE_SYNCH_MUTEX ACE::HTBP::ID_Requestor::htid_lock_;
@@ -65,7 +63,7 @@ ACE::HTBP::ID_Requestor::connect_to_server (ACE_SOCK_Stream *cli_stream)
host_ = url_.substr(host_start,port_sep - host_start);
}
- ACE_INET_Addr remote_addr (static_cast<u_short> (port_), host_.c_str());
+ ACE_INET_Addr remote_addr (port_, host_.c_str());
ACE_SOCK_Connector con;
if (con.connect (*cli_stream,
remote_addr) == -1)
@@ -83,7 +81,7 @@ ACE::HTBP::ID_Requestor::send_request (ACE_SOCK_Stream *cli_stream)
char *buffer;
ACE_NEW_RETURN (buffer, char[this->url_.length()+16],-1);
ACE_OS::sprintf (buffer,"GET %s HTTP/1.0\n\n",
- ACE_TEXT_ALWAYS_CHAR(url_.c_str()));
+ ACE_TEXT_TO_CHAR_IN(url_.c_str()));
int result = cli_stream->send_n (buffer,ACE_OS::strlen(buffer));
delete [] buffer;
if (result == -1)
@@ -114,7 +112,7 @@ ACE::HTBP::ID_Requestor::get_HTID ()
ACE_Utils::UUID_Generator gen;
ACE_Utils::UUID *uuid = gen.generateUUID ();
const ACE_CString *uuidstr = uuid->to_string();
- ACE::HTBP::ID_Requestor::htid_ = ACE_TEXT_CHAR_TO_TCHAR (uuidstr->c_str());
+ ACE::HTBP::ID_Requestor::htid_ = ACE_TEXT_TO_TCHAR_IN (uuidstr->c_str());
delete uuid;
return ACE::HTBP::ID_Requestor::htid_.rep();
}
@@ -130,10 +128,8 @@ ACE::HTBP::ID_Requestor::get_HTID ()
start = 0;
else
start++;
- ACE::HTBP::ID_Requestor::htid_ = ACE_TEXT_CHAR_TO_TCHAR(answer.substr (start).c_str());
+ ACE::HTBP::ID_Requestor::htid_ = ACE_TEXT_TO_TCHAR_IN(answer.substr (start).c_str());
htid = ACE::HTBP::ID_Requestor::htid_.rep();
}
return htid;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_ID_Requestor.h b/protocols/ace/HTBP/HTBP_ID_Requestor.h
index b885f07cae5..e6cdd87fb1d 100644
--- a/protocols/ace/HTBP/HTBP_ID_Requestor.h
+++ b/protocols/ace/HTBP/HTBP_ID_Requestor.h
@@ -13,8 +13,6 @@
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations
class ACE_SOCK_Stream;
@@ -56,8 +54,5 @@ namespace ACE
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* HTID_REQUESTOR_H */
diff --git a/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp b/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp
index acb019ce2bb..4a75ac6ffc6 100644
--- a/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp
+++ b/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.cpp
@@ -12,9 +12,7 @@
#include "HTBP_Inside_Squid_Filter.inl"
#endif
-ACE_RCSID(HTBP,ACE_HTBP_Inside_Squid_Filter,"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(HTBP,ACE_HTBP_Inside_Squid_Filter,"$ID:$")
ssize_t
ACE::HTBP::Inside_Squid_Filter::send_data_trailer (ACE::HTBP::Channel *ch)
@@ -232,5 +230,3 @@ ACE::HTBP::Inside_Squid_Filter::recv_ack (ACE::HTBP::Channel *ch)
errno = ch->consume_error () ? EINVAL : EWOULDBLOCK;
return 0;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.h b/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.h
index e60a682d81f..142607aa49f 100644
--- a/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.h
+++ b/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -21,8 +21,6 @@
#include "HTBP_Export.h"
#include "HTBP_Filter.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -81,8 +79,6 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "HTBP_Inside_Squid_Filter.inl"
#endif
diff --git a/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.inl b/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.inl
index e8b08950ce6..d9c4618537e 100644
--- a/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.inl
+++ b/protocols/ace/HTBP/HTBP_Inside_Squid_Filter.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ACE_HTBP_Inside_Squid_Filter.i
ACE_INLINE
ACE::HTBP::Inside_Squid_Filter::~Inside_Squid_Filter (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Notifier.cpp b/protocols/ace/HTBP/HTBP_Notifier.cpp
index 70a6df54023..631ea2728b0 100644
--- a/protocols/ace/HTBP/HTBP_Notifier.cpp
+++ b/protocols/ace/HTBP/HTBP_Notifier.cpp
@@ -14,8 +14,6 @@
#include "HTBP_Session.h"
#include "ace/Reactor.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE::HTBP::Notifier::Notifier (ACE::HTBP::Channel *s)
: channel_(s)
{
@@ -82,5 +80,3 @@ ACE::HTBP::Notifier::get_handle(void) const
{
return this->channel_->ace_stream().get_handle();
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Notifier.h b/protocols/ace/HTBP/HTBP_Notifier.h
index 0c9dcffa2ed..f0ef01b1f25 100644
--- a/protocols/ace/HTBP/HTBP_Notifier.h
+++ b/protocols/ace/HTBP/HTBP_Notifier.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -22,8 +22,6 @@
#include "HTBP_Export.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -48,7 +46,5 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_HTBP_NOTIFIER_H */
diff --git a/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.cpp b/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.cpp
index 05e79083794..3c035b8dcde 100644
--- a/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.cpp
+++ b/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.cpp
@@ -14,8 +14,6 @@ ACE_RCSID(HTBP,
ACE_HTBP_Outside_Squid_Filter,
"$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ssize_t
ACE::HTBP::Outside_Squid_Filter::recv_data_header (ACE::HTBP::Channel *ch)
{
@@ -192,5 +190,3 @@ ACE::HTBP::Outside_Squid_Filter::recv_ack (ACE::HTBP::Channel *)
{
return 1;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.h b/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.h
index 92008c3a8b6..5f0c820fccd 100644
--- a/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.h
+++ b/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.h
@@ -21,8 +21,6 @@
#include "HTBP_Export.h"
#include "HTBP_Filter.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -76,8 +74,6 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "HTBP_Outside_Squid_Filter.inl"
#endif
diff --git a/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.inl b/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.inl
index e0659ae5e13..351c6e53856 100644
--- a/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.inl
+++ b/protocols/ace/HTBP/HTBP_Outside_Squid_Filter.inl
@@ -1,12 +1,9 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+// ACE_HTBP_Outside_Squid_Filter.i
ACE_INLINE
ACE::HTBP::Outside_Squid_Filter::~Outside_Squid_Filter (void)
{
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Session.cpp b/protocols/ace/HTBP/HTBP_Session.cpp
index 3ebd7da937e..ffeaeac68ec 100644
--- a/protocols/ace/HTBP/HTBP_Session.cpp
+++ b/protocols/ace/HTBP/HTBP_Session.cpp
@@ -13,9 +13,7 @@
#include "HTBP_Session.inl"
#endif
-ACE_RCSID(HTBP,HTBP_Session,"$Id$")
-
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+ACE_RCSID(HTBP,ACE_HTBP_Session," $")
ACE::HTBP::Session::Session_Map ACE::HTBP::Session::session_map_;
ACE_UINT32 ACE::HTBP::Session::last_session_id_ = 0;
@@ -46,7 +44,7 @@ ACE::HTBP::Session::remove_session (ACE::HTBP::Session *s)
int
ACE::HTBP::Session::find_session (const ACE::HTBP::Session_Id_t &sid, ACE::HTBP::Session *&out)
{
- ACE::HTBP::Session::Map_Entry *e = 0;
+ ACE::HTBP::Session::Map_Entry *e;
if (session_map_.find (sid,e) == -1)
{
out = 0;
@@ -70,7 +68,7 @@ ACE::HTBP::Session::Session (void)
{
ACE::HTBP::ID_Requestor req;
ACE_TCHAR * htid = req.get_HTID();
- session_id_.local_ = ACE_TEXT_ALWAYS_CHAR(htid);
+ session_id_.local_ = ACE_TEXT_TO_CHAR_IN(htid);
delete[] htid;
session_id_.id_ = ACE::HTBP::Session::next_session_id();
ACE_NEW (inbound_, ACE::HTBP::Channel (this));
@@ -301,5 +299,3 @@ template class ACE_Equal_To<ACE::HTBP::Session_Id_t>;
#pragma instantiate ACE_Equal_To<ACE::HTBP::Session_Id_t>
#endif
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Session.h b/protocols/ace/HTBP/HTBP_Session.h
index 5b46c6e86b3..9c162849215 100644
--- a/protocols/ace/HTBP/HTBP_Session.h
+++ b/protocols/ace/HTBP/HTBP_Session.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -29,8 +29,6 @@
#include "HTBP_Stream.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
// Forward declarations.
class ACE_HTBP_Filter;
class ACE_Event_Handler;
@@ -187,9 +185,6 @@ namespace ACE
};
}
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#if defined (__ACE_INLINE__)
#include "HTBP_Session.inl"
#endif
diff --git a/protocols/ace/HTBP/HTBP_Session.inl b/protocols/ace/HTBP/HTBP_Session.inl
index 06c510650c9..fb5c337826c 100644
--- a/protocols/ace/HTBP/HTBP_Session.inl
+++ b/protocols/ace/HTBP/HTBP_Session.inl
@@ -1,9 +1,6 @@
-// -*- C++ -*-
-//
+/* -*- C++ -*- */
// $Id$
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
ACE_INLINE
void
ACE::HTBP::Session::reconnect ()
@@ -110,5 +107,3 @@ ACE::HTBP::Session_Id_t::operator ==(const ACE::HTBP::Session_Id_t &other) const
(this->local_ == other.local_) &&
(this->peer_ == other.peer_));
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Stream.cpp b/protocols/ace/HTBP/HTBP_Stream.cpp
index c0913569af0..f351993369a 100644
--- a/protocols/ace/HTBP/HTBP_Stream.cpp
+++ b/protocols/ace/HTBP/HTBP_Stream.cpp
@@ -16,7 +16,6 @@
#include "ace/Message_Block.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Initialization and termination methods.
/// Constructor.
@@ -323,6 +322,5 @@ ACE::HTBP::Stream::get_handle (void) const
void
ACE::HTBP::Stream::set_handle (ACE_HANDLE )
{
+ // no-op
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL
diff --git a/protocols/ace/HTBP/HTBP_Stream.h b/protocols/ace/HTBP/HTBP_Stream.h
index 0527ab06632..e950939469e 100644
--- a/protocols/ace/HTBP/HTBP_Stream.h
+++ b/protocols/ace/HTBP/HTBP_Stream.h
@@ -1,4 +1,4 @@
-// -*- C++ -*-
+/* -*- C++ -*- */
//=============================================================================
/**
@@ -26,8 +26,6 @@
#include "HTBP_Filter.h"
#include "HTBP_Notifier.h"
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
namespace ACE
{
namespace HTBP
@@ -285,7 +283,5 @@ namespace ACE
}
}
-ACE_END_VERSIONED_NAMESPACE_DECL
-
#include /**/ "ace/post.h"
#endif /* ACE_HTBP_STREAM_H */
diff --git a/protocols/ace/RMCast/Acknowledge.cpp b/protocols/ace/RMCast/Acknowledge.cpp
index b647a255dad..e4416eedec3 100644
--- a/protocols/ace/RMCast/Acknowledge.cpp
+++ b/protocols/ace/RMCast/Acknowledge.cpp
@@ -4,7 +4,6 @@
#include "ace/Time_Value.h" // ACE_Time_Value
#include "ace/OS_NS_unistd.h"
-#include "ace/OS_NS_stdlib.h" // abort
#include "ace/OS_NS_sys_time.h" // gettimeofday
#include "Acknowledge.h"
@@ -152,7 +151,7 @@ namespace ACE_RMCast
if (cond_.wait (&time) == -1)
{
if (errno != ETIME)
- ACE_OS::abort ();
+ abort ();
else
break;
}
diff --git a/protocols/ace/RMCast/Link.cpp b/protocols/ace/RMCast/Link.cpp
index e3379ac1893..3a9fdaea2b3 100644
--- a/protocols/ace/RMCast/Link.cpp
+++ b/protocols/ace/RMCast/Link.cpp
@@ -3,8 +3,6 @@
// cvs-id : $Id$
#include "ace/Time_Value.h" // ACE_Time_Value
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_sys_socket.h"
#include "Link.h"
@@ -55,8 +53,8 @@ namespace ACE_RMCast
reinterpret_cast<sockaddr*> (addr_.get_addr ()),
addr_.get_addr_size ()) == -1)
{
- ACE_OS::perror ("connect: ");
- ACE_OS::abort ();
+ perror ("connect: ");
+ abort ();
}
@@ -163,7 +161,7 @@ namespace ACE_RMCast
(*i).ext_id_, (*i).int_id_->size ()));
}
- ACE_OS::abort ();
+ abort ();
}
ssock_.send (os.buffer (), os.length (), addr_);
@@ -218,7 +216,7 @@ namespace ACE_RMCast
if (r == -1)
{
if (errno != ETIME)
- ACE_OS::abort ();
+ abort ();
}
else
{
@@ -309,7 +307,7 @@ namespace ACE_RMCast
else
{
//cerr << 0 << "unknown profile id " << hdr.id () << endl;
- ACE_OS::abort ();
+ abort ();
}
}
@@ -327,6 +325,6 @@ namespace ACE_RMCast
void Link::
recv (Message_ptr)
{
- ACE_OS::abort ();
+ abort ();
}
}
diff --git a/protocols/ace/RMCast/Makefile.am b/protocols/ace/RMCast/Makefile.am
index 1a121915c62..cfc1c88914b 100644
--- a/protocols/ace/RMCast/Makefile.am
+++ b/protocols/ace/RMCast/Makefile.am
@@ -35,8 +35,7 @@ libACE_RMCast_la_SOURCES = \
Retransmit.cpp \
Simulator.cpp \
Socket.cpp \
- Stack.cpp \
- Template_Instantiations.cpp
+ Stack.cpp
libACE_RMCast_la_LDFLAGS = \
-version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
diff --git a/protocols/ace/RMCast/Protocol.h b/protocols/ace/RMCast/Protocol.h
index c0e2797b732..314f69676cb 100644
--- a/protocols/ace/RMCast/Protocol.h
+++ b/protocols/ace/RMCast/Protocol.h
@@ -17,7 +17,6 @@
#include "ace/Null_Mutex.h"
#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_stdlib.h"
#include "Bits.h"
@@ -240,7 +239,7 @@ namespace ACE_RMCast
class Message;
typedef
- ACE_Refcounted_Auto_Ptr<Message, Mutex>
+ ACE_Refcounted_Auto_Ptr<Message, ACE_Null_Mutex>
Message_ptr;
class Message
@@ -309,7 +308,7 @@ namespace ACE_RMCast
Profile const*
find (u16 id) const
{
- Profiles::ENTRY* e = 0;
+ Profiles::ENTRY* e;
if (profiles_.find (id, e) == -1) return 0;
@@ -634,7 +633,7 @@ namespace ACE_RMCast
size (size_t s)
{
if (s > capacity_)
- ACE_OS::abort ();
+ abort ();
size_ = s;
diff --git a/protocols/ace/RMCast/RMCast.mpc b/protocols/ace/RMCast/RMCast.mpc
index f77bd4d942c..bc743edc147 100644
--- a/protocols/ace/RMCast/RMCast.mpc
+++ b/protocols/ace/RMCast/RMCast.mpc
@@ -2,7 +2,6 @@
// $Id$
project(RMCast) : acelib, core, threads {
- avoids = ace_for_tao
sharedname = ACE_RMCast
dynamicflags = ACE_RMCAST_BUILD_DLL
diff --git a/protocols/ace/RMCast/Reassemble.cpp b/protocols/ace/RMCast/Reassemble.cpp
index 9fa3e0d0167..6d94a3d3cbf 100644
--- a/protocols/ace/RMCast/Reassemble.cpp
+++ b/protocols/ace/RMCast/Reassemble.cpp
@@ -3,7 +3,6 @@
// cvs-id : $Id$
#include "Reassemble.h"
-#include "ace/OS_NS_stdlib.h"
/*
#include <iostream>
@@ -56,7 +55,7 @@ namespace ACE_RMCast
//
if (part->num () == 1)
- ACE_OS::abort ();
+ abort ();
Data const* data = static_cast<Data const*> (m->find (Data::id));
@@ -79,7 +78,7 @@ namespace ACE_RMCast
// Reassembly is complete.
//
if (part->total_size () != new_data->size ())
- ACE_OS::abort ();
+ abort ();
Message_ptr new_msg (new Message ());
@@ -102,7 +101,7 @@ namespace ACE_RMCast
// and forward it up.
//
if (map_.find (from, e) != -1)
- ACE_OS::abort ();
+ abort ();
in_->recv (m);
}
diff --git a/protocols/ace/RMCast/Retransmit.cpp b/protocols/ace/RMCast/Retransmit.cpp
index b968908f82b..a2f8dd96adc 100644
--- a/protocols/ace/RMCast/Retransmit.cpp
+++ b/protocols/ace/RMCast/Retransmit.cpp
@@ -3,7 +3,6 @@
// cvs-id : $Id$
#include "ace/Time_Value.h" // ACE_Time_Value
-#include "ace/OS_NS_stdlib.h" // abort
#include "ace/OS_NS_sys_time.h" // gettimeofday
#include "Retransmit.h"
@@ -145,7 +144,7 @@ namespace ACE_RMCast
if (cond_.wait (&time) == -1)
{
if (errno != ETIME)
- ACE_OS::abort ();
+ abort ();
else
break;
}
diff --git a/protocols/ace/RMCast/Simulator.cpp b/protocols/ace/RMCast/Simulator.cpp
index ca6d81d47e4..8b024d1d299 100644
--- a/protocols/ace/RMCast/Simulator.cpp
+++ b/protocols/ace/RMCast/Simulator.cpp
@@ -21,7 +21,7 @@ namespace ACE_RMCast
out_->send (m);
return;
- /*int r (rand ());
+ int r (rand ());
if ((r % 3) == 0) return;
@@ -35,6 +35,6 @@ namespace ACE_RMCast
else
{
hold_ = m;
- }*/
+ }
}
}
diff --git a/protocols/ace/RMCast/Socket.cpp b/protocols/ace/RMCast/Socket.cpp
index 8f433f7c6ed..448d4692e81 100644
--- a/protocols/ace/RMCast/Socket.cpp
+++ b/protocols/ace/RMCast/Socket.cpp
@@ -3,8 +3,6 @@
// cvs-id : $Id$
#include "ace/OS_Memory.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_sys_time.h" // gettimeofday
@@ -185,7 +183,7 @@ namespace ACE_RMCast
Message_ptr m;
if (queue_.dequeue_head (m) == -1)
- ACE_OS::abort ();
+ abort ();
if (queue_.is_empty ())
@@ -198,8 +196,8 @@ namespace ACE_RMCast
if (signal_pipe_.recv (&c, 1) != 1)
{
- ACE_OS::perror ("read: ");
- ACE_OS::abort ();
+ perror ("read: ");
+ abort ();
}
}
}
@@ -254,10 +252,10 @@ namespace ACE_RMCast
Message_ptr m;
if (queue_.dequeue_head (m) == -1)
- ACE_OS::abort ();
+ abort ();
if (queue_.enqueue_head (m) == -1)
- ACE_OS::abort ();
+ abort ();
if (m->find (NoData::id) != 0)
{
@@ -317,7 +315,7 @@ namespace ACE_RMCast
if (signal_pipe_.send (&c, 1) != 1)
{
// perror ("write: ");
- ACE_OS::abort ();
+ abort ();
}
}
diff --git a/protocols/ace/RMCast/Template_Instantiations.cpp b/protocols/ace/RMCast/Template_Instantiations.cpp
deleted file mode 100644
index 262a8e5b36a..00000000000
--- a/protocols/ace/RMCast/Template_Instantiations.cpp
+++ /dev/null
@@ -1,128 +0,0 @@
-// $Id$
-
-// Note: this file is here only until support for explicit template
-// instantiations is removed from ACE, after ACE 5.5 is released.
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
- defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-# include "ace/Array_Base.h"
-# include "ace/Condition_T.h"
-# include "ace/Functor_T.h"
-# include "ace/Hash_Map_Manager.h"
-# include "ace/INET_Addr.h"
-# include "ace/Refcounted_Auto_Ptr.h"
-# include "ace/Thread_Mutex.h"
-# include "ace/Unbounded_Queue.h"
-# include "ace/Vector_T.h"
-
-# include "Acknowledge.h"
-# include "Protocol.h"
-# include "Retransmit.h"
-
-#endif
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class ACE_Array_Base<unsigned char>;
-template class ACE_Array_Base<ACE_RMCast::u64>;
-template class ACE_Array_Base<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >;
-template class ACE_Array_Base<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >;
-template class ACE_Condition<ACE_Thread_Mutex>;
-template class ACE_Equal_To<ACE_INET_Addr>;
-template class ACE_Hash_Map_Const_Iterator_Base_Ex<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>, ACE_Hash<unsigned short>, ACE_Equal_To<unsigned short>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Const_Iterator_Base_Ex<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Const_Iterator_Base_Ex<ACE_INET_Addr, ACE_RMCast::u64, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Iterator_Base_Ex<ACE_INET_Addr, ACE_RMCast::Acknowledge::Queue, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Iterator_Base_Ex<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Iterator_Base_Ex<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Entry<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr>;
-template class ACE_Hash_Map_Entry<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr>;
-template class ACE_Hash_Map_Entry<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex> >;
-template class ACE_Hash_Map_Entry<ACE_INET_Addr, ACE_RMCast::u64>;
-template class ACE_Hash_Map_Entry<ACE_INET_Addr, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Data, ACE_Thread_Mutex> >;
-template class ACE_Hash_Map_Entry<ACE_INET_Addr, ACE_RMCast::Acknowledge::Queue>;
-template class ACE_Hash_Map_Manager<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<ACE_INET_Addr, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Data, ACE_Thread_Mutex>, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<ACE_INET_Addr, ACE_RMCast::Acknowledge::Queue, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<ACE_INET_Addr, ACE_RMCast::u64, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>, ACE_Hash<unsigned short>, ACE_Equal_To<unsigned short>, ACE_Null_Mutex>;
-template class ACE_Node<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >;
-template class ACE_Node<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >;
-template class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Data, ACE_Thread_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_RMCast::NAK, ACE_Thread_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_RMCast::NRTM, ACE_Thread_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>;
-template class ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >;
-template class ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >;
-template class ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >;
-template class ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >;
-template class ACE_Vector<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >;
-template class ACE_Vector<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >;
-template class ACE_Vector<unsigned char>;
-template class ACE_Vector<ACE_RMCast::u64>;
-template class ACE_Vector_Iterator<unsigned char>;
-template class ACE_Vector_Iterator<ACE_RMCast::u64>;
-template class ACE_Vector_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >;
-template class ACE_Vector_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >;
-
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-# pragma instantiate class ACE_Array_Base<unsigned char>
-# pragma instantiate class ACE_Array_Base<ACE_RMCast::u64>
-# pragma instantiate class ACE_Array_Base<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >
-# pragma instantiate class ACE_Array_Base<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Condition<ACE_Thread_Mutex>
-# pragma instantiate class ACE_Equal_To<ACE_INET_Addr>
-# pragma instantiate class ACE_Hash_Map_Const_Iterator_Base_Ex<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Const_Iterator_Base_Ex<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>, ACE_Hash<unsigned short>, ACE_Equal_To<unsigned short>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Const_Iterator_Base_Ex<ACE_INET_Addr, ACE_RMCast::u64, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Iterator_Base_Ex<ACE_INET_Addr, ACE_RMCast::Acknowledge::Queue, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Iterator_Base_Ex<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Iterator_Base_Ex<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Entry<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr>
-# pragma instantiate class ACE_Hash_Map_Entry<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr>
-# pragma instantiate class ACE_Hash_Map_Entry<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Hash_Map_Entry<ACE_INET_Addr, ACE_RMCast::u64>
-# pragma instantiate class ACE_Hash_Map_Entry<ACE_INET_Addr, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Data, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Hash_Map_Entry<ACE_INET_Addr, ACE_RMCast::Acknowledge::Queue>
-# pragma instantiate class ACE_Hash_Map_Manager<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager_Ex<ACE_INET_Addr, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Data, ACE_Thread_Mutex>, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager_Ex<ACE_INET_Addr, ACE_RMCast::Acknowledge::Queue, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager_Ex<ACE_INET_Addr, ACE_RMCast::u64, ACE_RMCast::AddressHasher, ACE_Equal_To<ACE_INET_Addr>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager_Ex<ACE_RMCast::u64, ACE_RMCast::Acknowledge::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager_Ex<ACE_RMCast::u64, ACE_RMCast::Retransmit::Descr, ACE_Hash<ACE_RMCast::u64>, ACE_Equal_To<ACE_RMCast::u64>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Hash_Map_Manager_Ex<unsigned short, ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>, ACE_Hash<unsigned short>, ACE_Equal_To<unsigned short>, ACE_Null_Mutex>
-# pragma instantiate class ACE_Node<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >
-# pragma instantiate class ACE_Node<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Data, ACE_Thread_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_RMCast::NAK, ACE_Thread_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_RMCast::NRTM, ACE_Thread_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_RMCast::Profile, ACE_Thread_Mutex>
-# pragma instantiate class ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >
-# pragma instantiate class ACE_Unbounded_Queue<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >
-# pragma instantiate class ACE_Unbounded_Queue_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Vector<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >
-# pragma instantiate class ACE_Vector<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >
-# pragma instantiate class ACE_Vector<unsigned char>
-# pragma instantiate class ACE_Vector<ACE_RMCast::u64>
-# pragma instantiate class ACE_Vector_Iterator<unsigned char>
-# pragma instantiate class ACE_Vector_Iterator<ACE_RMCast::u64>
-# pragma instantiate class ACE_Vector_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Null_Mutex> >
-# pragma instantiate class ACE_Vector_Iterator<ACE_Refcounted_Auto_Ptr<ACE_RMCast::Message, ACE_Thread_Mutex> >
-
-#elif defined (__HP_aCC)
-// Make aC++ stop complaining about an empty translation unit
-static int shut_up_aCC = 0;
-#endif
diff --git a/protocols/ace/TMCast/FaultDetector.hpp b/protocols/ace/TMCast/FaultDetector.hpp
index 49ffcdd174c..c3de622806d 100644
--- a/protocols/ace/TMCast/FaultDetector.hpp
+++ b/protocols/ace/TMCast/FaultDetector.hpp
@@ -10,7 +10,7 @@ namespace ACE_TMCast
{
public:
FaultDetector ()
- : alone_ (true), silence_period_ (-1)
+ : silence_period_ (-1)
{
}
@@ -21,16 +21,13 @@ namespace ACE_TMCast
void
insync ()
{
- if (alone_)
- alone_ = false;
-
silence_period_ = 0;
}
void
outsync ()
{
- if (!alone_ && ++silence_period_ >= Protocol::FATAL_SILENCE_FRAME)
+ if (++silence_period_ >= Protocol::FATAL_SILENCE_FRAME)
{
// cerr << "Silence period has been passed." << endl;
// cerr << "Decalring the node failed." << endl;
@@ -39,7 +36,6 @@ namespace ACE_TMCast
}
private:
- bool alone_; // true if we haven't heard from any members yet.
short silence_period_;
};
}
diff --git a/protocols/ace/TMCast/Group.cpp b/protocols/ace/TMCast/Group.cpp
index 29187838a85..464533bec2f 100644
--- a/protocols/ace/TMCast/Group.cpp
+++ b/protocols/ace/TMCast/Group.cpp
@@ -8,7 +8,6 @@
// OS primitives
#include <ace/OS.h>
-#include <ace/OS_NS_stdlib.h>
#include <ace/Synch.h>
#include <ace/Time_Value.h>
#include <ace/SOCK_Dgram_Mcast.h>
@@ -84,7 +83,7 @@ namespace ACE_TMCast
this,
THR_JOINABLE,
&unused,
- &thread_) != 0) ACE_OS::abort ();
+ &thread_) != 0) ::abort ();
}
virtual ~Scheduler ()
@@ -95,7 +94,7 @@ namespace ACE_TMCast
in_control_.push (MessagePtr (new Terminate));
}
- if (ACE_OS::thr_join (thread_, 0) != 0) ACE_OS::abort ();
+ if (ACE_OS::thr_join (thread_, 0) != 0) ::abort ();
// cerr << "Scheduler is down." << endl;
}
@@ -202,7 +201,7 @@ namespace ACE_TMCast
{
// cerr << "unknown message type from link listener: "
// << typeid (*m).name () << endl;
- ACE_OS::abort ();
+ abort ();
}
}
@@ -397,7 +396,7 @@ namespace ACE_TMCast
// << "unexpected message " << typeid (*m).name ()
// << " " << typeid (Aborted).name () << endl;
- ACE_OS::abort ();
+ abort ();
}
}
@@ -440,7 +439,7 @@ namespace ACE_TMCast
// cerr << "recv: group-scheduler messaging protocol violation. "
// << "unexpected message " << typeid (*m).name () << endl;
- ACE_OS::abort ();
+ abort ();
}
}
diff --git a/protocols/ace/TMCast/LinkListener.hpp b/protocols/ace/TMCast/LinkListener.hpp
index 983f7828f3e..1dea811cd39 100644
--- a/protocols/ace/TMCast/LinkListener.hpp
+++ b/protocols/ace/TMCast/LinkListener.hpp
@@ -4,7 +4,6 @@
// OS primitives
#include <ace/OS_NS_string.h>
-#include <ace/OS_NS_stdlib.h>
#include <ace/Synch.h>
#include <ace/SOCK_Dgram_Mcast.h>
#include <ace/Refcounted_Auto_Ptr.h>
@@ -81,7 +80,7 @@ namespace ACE_TMCast
this,
THR_JOINABLE,
&unused,
- &thread_) != 0) ACE_OS::abort ();
+ &thread_) != 0) ::abort ();
}
~LinkListener ()
@@ -92,7 +91,7 @@ namespace ACE_TMCast
control_.push (MessagePtr (new Terminate));
}
- if (ACE_OS::thr_join (thread_, 0) != 0) ACE_OS::abort ();
+ if (ACE_OS::thr_join (thread_, 0) != 0) ::abort ();
// cerr << "Link listener is down." << endl;
}
diff --git a/protocols/ace/TMCast/MTQueue.hpp b/protocols/ace/TMCast/MTQueue.hpp
index 2eb128823fe..47fafa943c1 100644
--- a/protocols/ace/TMCast/MTQueue.hpp
+++ b/protocols/ace/TMCast/MTQueue.hpp
@@ -127,7 +127,7 @@ namespace ACE_TMCast
!i.done ();
i.advance ())
{
- ConditionalType** c = 0;
+ ConditionalType** c;
i.next (c);
diff --git a/protocols/ace/TMCast/Makefile.am b/protocols/ace/TMCast/Makefile.am
index 3338e4a8f64..3a1f1e54ea9 100644
--- a/protocols/ace/TMCast/Makefile.am
+++ b/protocols/ace/TMCast/Makefile.am
@@ -25,8 +25,7 @@ libACE_TMCast_la_CPPFLAGS = \
libACE_TMCast_la_SOURCES = \
Group.cpp \
MTQueue.cpp \
- Protocol.cpp \
- Template_Instantiations.cpp
+ Protocol.cpp
libACE_TMCast_la_LDFLAGS = \
-version-number @ACE_MAJOR@:@ACE_MINOR@:@ACE_BETA@
diff --git a/protocols/ace/TMCast/TMCast.mpc b/protocols/ace/TMCast/TMCast.mpc
index 1ff937a0a1a..963396adc6d 100644
--- a/protocols/ace/TMCast/TMCast.mpc
+++ b/protocols/ace/TMCast/TMCast.mpc
@@ -2,7 +2,6 @@
// $Id$
project : acelib, core, exceptions, threads {
- avoids = ace_for_tao
sharedname = ACE_TMCast
dynamicflags += TMCAST_BUILD_DLL
diff --git a/protocols/ace/TMCast/Template_Instantiations.cpp b/protocols/ace/TMCast/Template_Instantiations.cpp
deleted file mode 100644
index 62e9b24a8bc..00000000000
--- a/protocols/ace/TMCast/Template_Instantiations.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-// $Id$
-
-// Note: this file is here only until support for explicit template
-// instantiations is removed from ACE, after ACE 5.5 is released.
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
- defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-# include "ace/Null_Mutex.h"
-# include "ace/Refcounted_Auto_Ptr.h"
-
-# include "TransactionController.hpp"
-
-#endif
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class ACE_Refcounted_Auto_Ptr<ACE_TMCast::Message, ACE_Null_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_TMCast::Recv, ACE_Null_Mutex>;
-template class ACE_Refcounted_Auto_Ptr<ACE_TMCast::Send, ACE_Null_Mutex>;
-
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_TMCast::Message, ACE_Null_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_TMCast::Recv, ACE_Null_Mutex>
-# pragma instantiate class ACE_Refcounted_Auto_Ptr<ACE_TMCast::Send, ACE_Null_Mutex>
-
-#elif defined (__HP_aCC)
-// Make aC++ stop complaining about an empty translation unit
-static int shut_up_aCC = 0;
-#endif
diff --git a/protocols/ace/TMCast/TransactionController.hpp b/protocols/ace/TMCast/TransactionController.hpp
index 6b0d4281655..cbeb0f5a7c9 100644
--- a/protocols/ace/TMCast/TransactionController.hpp
+++ b/protocols/ace/TMCast/TransactionController.hpp
@@ -3,7 +3,6 @@
// cvs-id : $Id$
#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_stdlib.h"
#include "ace/Synch.h"
#include "ace/Refcounted_Auto_Ptr.h"
@@ -353,7 +352,7 @@ namespace ACE_TMCast
// cerr << "Expecting Send but received " << typeid (*m).name ()
// << endl;
- ACE_OS::abort ();
+ ::abort ();
}
current_.id++;
diff --git a/protocols/examples/RMCast/Send_Msg/Send_Msg.mpc b/protocols/examples/RMCast/Send_Msg/Send_Msg.mpc
index 981df7ec8a7..12bd8174c4b 100644
--- a/protocols/examples/RMCast/Send_Msg/Send_Msg.mpc
+++ b/protocols/examples/RMCast/Send_Msg/Send_Msg.mpc
@@ -2,14 +2,12 @@
// $Id$
project(*Sender) : aceexe, exceptions, rmcast {
- avoids = ace_for_tao
exename = sender
Source_Files {
Sender.cpp
}
}
project(*Receiver) : aceexe, exceptions, rmcast {
- avoids = ace_for_tao
exename = receiver
Source_Files {
Receiver.cpp
diff --git a/protocols/tests/RMCast/RMCast.mpc b/protocols/tests/RMCast/RMCast.mpc
index ebf0d96af3c..12bd8174c4b 100644
--- a/protocols/tests/RMCast/RMCast.mpc
+++ b/protocols/tests/RMCast/RMCast.mpc
@@ -2,14 +2,12 @@
// $Id$
project(*Sender) : aceexe, exceptions, rmcast {
- avoids = ace_for_tao
exename = sender
Source_Files {
Sender.cpp
}
}
project(*Receiver) : aceexe, exceptions, rmcast {
- avoids = ace_for_tao
exename = receiver
Source_Files {
Receiver.cpp
diff --git a/tests/ACE_Init_Test.cpp b/tests/ACE_Init_Test.cpp
index 64d77320e07..ee783ca7704 100644
--- a/tests/ACE_Init_Test.cpp
+++ b/tests/ACE_Init_Test.cpp
@@ -79,7 +79,7 @@ CACE_Init_TestApp theApp;
BOOL CACE_Init_TestApp::InitInstance()
{
- // This is needed because there's no overridden main(int, char *[])
+ // This is needed because there's no overridden ACE_TMAIN(int, ACE_TCHAR *[])
// which would normally handle the initialization. Also see the
// corresponding ACE::fini, below.
ACE::init();
diff --git a/tests/ARGV_Test.cpp b/tests/ARGV_Test.cpp
index bb06c6b8d31..a2eb057d5d4 100644
--- a/tests/ARGV_Test.cpp
+++ b/tests/ARGV_Test.cpp
@@ -70,7 +70,7 @@ test_argv_type_converter (void)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT (" (%d) %s\n"),
i,
- ACE_TEXT_CHAR_TO_TCHAR (argv[i])));
+ ACE_TEXT_TO_TCHAR_IN (argv[i])));
}
for (size_t i = 0; save_argv[i]; ++i)
diff --git a/tests/Auto_Event_Test.cpp b/tests/Auto_Event_Test.cpp
index a31b8a9f6a1..b507e70f259 100644
--- a/tests/Auto_Event_Test.cpp
+++ b/tests/Auto_Event_Test.cpp
@@ -114,7 +114,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("w:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("w:n:"));
int c;
diff --git a/tests/Barrier_Test.cpp b/tests/Barrier_Test.cpp
index 2af15dfb66d..ce2fa29cb5b 100644
--- a/tests/Barrier_Test.cpp
+++ b/tests/Barrier_Test.cpp
@@ -45,7 +45,7 @@ struct Tester_Args
// for all other threads to complete this iteration.
static void *
-wait_tester (Tester_Args *args)
+tester (Tester_Args *args)
{
for (int iterations = 1;
iterations <= args->n_iterations_;
@@ -55,30 +55,12 @@ wait_tester (Tester_Args *args)
iterations));
// Block until all other threads have waited, then continue.
- if (args->tester_barrier_.wait () != 0)
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%t) %p\n"),
- ACE_TEXT ("wait failed")));
+ args->tester_barrier_.wait ();
}
return 0;
}
-// Wait on the barrier, expecting it to be shut down before completing
-// the wait.
-
-static void *
-shut_tester (Tester_Args *args)
-{
- if (args->tester_barrier_.wait () == 0)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) wait succeeded, should have shut down\n")));
- else if (errno != ESHUTDOWN)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) wait failed, expecting ESHUTDOWN, %p\n"),
- ACE_TEXT ("got")));
- return 0;
-}
-
#endif /* ACE_HAS_THREADS */
int
@@ -103,7 +85,7 @@ run_main (int, ACE_TCHAR *[])
if (ACE_Thread_Manager::instance ()->spawn_n
(n_threads,
- (ACE_THR_FUNC) wait_tester,
+ (ACE_THR_FUNC) tester,
(void *) &args,
THR_NEW_LWP | THR_JOINABLE) == -1)
@@ -113,21 +95,6 @@ run_main (int, ACE_TCHAR *[])
ACE_Thread_Manager::instance ()->wait ();
}
- // Now test ACE_Barrier shutdown. Set up a barrier for n_threads, and start
- // n_threads - 1 threads to wait, then shut the barrier down.
- ACE_Barrier shut_barrier (n_threads);
- Tester_Args shut_args (shut_barrier, 1);
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Starting shutdown test threads\n")));
- if (ACE_Thread_Manager::instance ()->spawn_n
- (n_threads - 1,
- (ACE_THR_FUNC) shut_tester,
- (void *) &shut_args,
- THR_NEW_LWP | THR_JOINABLE) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("spawn_n")), 1);
-
- shut_barrier.shutdown ();
- ACE_Thread_Manager::instance ()->wait ();
-
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("test done\n")));
#else
ACE_ERROR ((LM_INFO,
diff --git a/tests/Based_Pointer_Test.cpp b/tests/Based_Pointer_Test.cpp
index 143511170ac..a141a864e54 100644
--- a/tests/Based_Pointer_Test.cpp
+++ b/tests/Based_Pointer_Test.cpp
@@ -409,17 +409,6 @@ run_main (int, ACE_TCHAR *[])
ACE_END_TEST;
return retval == 0 ? 0 : 1;
}
-
-# if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block>;
-
-# elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-# pragma instantiate class ACE_Malloc_T<ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex, ACE_PI_Control_Block>
-
-# endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
#else /* ! ACE_HAS_POSITION_INDEPENDENT_POINTERS */
// Nothing to test !
int
diff --git a/tests/Basic_Types_Test.cpp b/tests/Basic_Types_Test.cpp
index 90fbf04a991..4c2198b3485 100644
--- a/tests/Basic_Types_Test.cpp
+++ b/tests/Basic_Types_Test.cpp
@@ -74,10 +74,8 @@ run_main (int, ACE_TCHAR *[])
errors += check (ACE_TEXT ("ACE_SIZEOF_CHAR: %u%s"),
sizeof (char), ACE_SIZEOF_CHAR);
-#if defined (ACE_HAS_WCHAR)
errors += check (ACE_TEXT ("ACE_SIZEOF_WCHAR: %u%s"),
sizeof (wchar_t), ACE_SIZEOF_WCHAR);
-#endif /* ACE_HAS_WCHAR */
errors += check (ACE_TEXT ("ACE_SIZEOF_SHORT: %u%s"),
sizeof (short), ACE_SIZEOF_SHORT);
errors += check (ACE_TEXT ("ACE_SIZEOF_INT: %u%s"),
@@ -133,17 +131,17 @@ run_main (int, ACE_TCHAR *[])
errors += check (ACE_TEXT ("sizeof (ACE_UINT64) is %u%s"),
sizeof (ACE_UINT64), 8);
- // ACE assumes sizeof (ptrdiff_t) == sizeof (void*)
- if (sizeof (ptrdiff_t) == sizeof (void *))
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("sizeof (ptrdiff_t) == sizeof (void*)\n")));
+ // ACE assumes sizeof (ptr_arith_t) == sizeof (void*)
+ if (sizeof (ptr_arith_t) == sizeof (void *))
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("sizeof (ptr_arith_t) == sizeof (void*)\n")));
else
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("sizeof (ptrdiff_t) != sizeof (void*)\n")));
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("sizeof (ptr_arith_t) != sizeof (void*)\n")));
- // ACE assumes sizeof (ptrdiff_t) >= sizeof (a_function_pointer)
- if (sizeof (ptrdiff_t) >= sizeof (a_function_pointer))
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("sizeof (ptrdiff_t) >= sizeof (a_function_pointer)\n")));
+ // ACE assumes sizeof (ptr_arith_t) >= sizeof (a_function_pointer)
+ if (sizeof (ptr_arith_t) >= sizeof (a_function_pointer))
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("sizeof (ptr_arith_t) >= sizeof (a_function_pointer)\n")));
else
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("sizeof (ptrdiff_t) < sizeof (a_function_pointer)\n")));
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("sizeof (ptr_arith_t) < sizeof (a_function_pointer)\n")));
#if defined (ACE_LITTLE_ENDIAN)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("little endian\n")));
diff --git a/tests/Bound_Ptr_Test.cpp b/tests/Bound_Ptr_Test.cpp
index 476b1b39156..95d6bb77cd9 100644
--- a/tests/Bound_Ptr_Test.cpp
+++ b/tests/Bound_Ptr_Test.cpp
@@ -179,7 +179,7 @@ Printer::print (void)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(this->message_)));
+ ACE_TEXT_TO_TCHAR_IN(this->message_)));
}
#if defined (ACE_HAS_THREADS)
diff --git a/tests/Buffer_Stream_Test.cpp b/tests/Buffer_Stream_Test.cpp
index dde6d876f4c..282b0f928fc 100644
--- a/tests/Buffer_Stream_Test.cpp
+++ b/tests/Buffer_Stream_Test.cpp
@@ -113,7 +113,7 @@ Common_Task::close (u_long exit_status)
int
Supplier::svc (void)
{
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
// Send one message for each letter of the alphabet, then send an empty
// message to mark the end.
@@ -161,7 +161,7 @@ Consumer::svc (void)
ACE_Message_Block *mb = 0;
int result;
const char *c = ACE_ALPHABET;
- char *output = 0;
+ char *output;
// Keep looping, reading a message out of the queue, until we
// timeout or get a message with a length == 0, which signals us to
@@ -169,14 +169,14 @@ Consumer::svc (void)
for (;;)
{
- this->timeout_.set (ACE_OS::time (0) + 4, 0); // Wait for upto 4 seconds
+ this->timeout_.sec (ACE_OS::time (0) + 4); // Wait for upto 4 seconds
result = this->getq (mb, &this->timeout_);
if (result == -1)
break;
- size_t const length = mb->length ();
+ size_t length = mb->length ();
if (length > 0)
{
@@ -208,8 +208,8 @@ run_main (int, ACE_TCHAR *[])
#if defined (ACE_HAS_THREADS)
// Control hierachically-related active objects.
MT_Stream stream;
- MT_Module *cm = 0;
- MT_Module *sm = 0;
+ MT_Module *cm;
+ MT_Module *sm;
// Allocate the Consumer and Supplier modules.
ACE_NEW_RETURN (cm, MT_Module (ACE_TEXT ("Consumer"), new Consumer), -1);
diff --git a/tests/Bug_2497_Regression_Test.cpp b/tests/Bug_2497_Regression_Test.cpp
deleted file mode 100644
index 2cd1a92e66c..00000000000
--- a/tests/Bug_2497_Regression_Test.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
- * @file Bug_2497_Regression_Test.cpp
- *
- * $Id$
- *
- * Reproduces the problems reported in bug 2497
- * http://deuce.doc.wustl.edu/bugzilla/show_bug.cgi?id=2497
- *
- * @author sergant128@mail.ru
- */
-
-#include "test_config.h"
-#include "ace/Module.h"
-#include "ace/Task.h"
-#include "ace/Stream.h"
-
-ACE_RCSID (tests,
- Bug_2497_Regression_Test,
- "$Id$")
-
-class Test_Task : public ACE_Task<ACE_SYNCH>
-{
-public:
- Test_Task( void ) :
- _destructorCalled(0)
- {
- }
-
- virtual ~Test_Task( void )
- {
- ++_destructorCalled;
- if (_destructorCalled > 1)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Test_Task::~Test_Task() should be called once!!!\n")));
- }
-
-private:
- int _destructorCalled;
-};
-
-
-class Test_Module : public ACE_Module<ACE_SYNCH>
-{
-public:
- Test_Module( void )
- {
- this->open( ACE_TEXT("Test module"),
- &_writerTask,
- &_readerTask,
- NULL,
- M_DELETE_NONE );
- }
-
-private:
- Test_Task _writerTask, _readerTask;
-};
-
-
-int
-run_main (int, ACE_TCHAR *[])
-{
- ACE_START_TEST (ACE_TEXT ("Bug_2497_Regression_Test"));
-
- ACE_Stream<ACE_SYNCH> stream;
-
- if (stream.push(new Test_Module()) == -1)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Error: push failed\n")));
- }
-
- ACE_END_TEST;
-
- return 0;
-}
diff --git a/tests/CDR_Array_Test.cpp b/tests/CDR_Array_Test.cpp
index 89c81dc92f2..8e754f950ad 100644
--- a/tests/CDR_Array_Test.cpp
+++ b/tests/CDR_Array_Test.cpp
@@ -897,7 +897,7 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE::minor_version(),
ACE::beta_version()));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("d:f:q:w:h:c:t:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("d:f:q:w:h:c:t:n:"));
int dtotal = 0;
int ftotal = 0;
int qtotal = 0;
diff --git a/tests/CDR_File_Test.cpp b/tests/CDR_File_Test.cpp
index a628a673112..79bf3c0509a 100644
--- a/tests/CDR_File_Test.cpp
+++ b/tests/CDR_File_Test.cpp
@@ -196,7 +196,7 @@ run_test (int write_file,
output_cdr << cdr_test;
// Output the data to cout.
-#if defined (ACE_HAS_WINCE) && defined (ACE_LACKS_IOSTREAM_TOTALLY)
+#if defined (ACE_HAS_WINCE)
// Since CE does not have ostream, ace_file_stream and output_file() cannot
// be used. Just use 'hard-coded' file name here.
(*ACE_CE_OSTREAM::instance()).open(ACE_TEXT("\\Log\\CDR_File_Test.txt"));
@@ -295,7 +295,7 @@ run_test (int write_file,
// <CDR_Test> object.
input_cdr >> temp;
-#if defined (ACE_HAS_WINCE) && defined (ACE_LACKS_IOSTREAM_TOTALLY)
+#ifdef ACE_HAS_WINCE
(*ACE_CE_OSTREAM::instance()) << temp;
#else
*ace_file_stream::instance ()->output_file () << temp;
@@ -330,7 +330,7 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE::minor_version (),
ACE::beta_version ()));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("f:rw"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("f:rw"));
int opt;
int reading = 1;
int writing = 1;
diff --git a/tests/CDR_Test.cpp b/tests/CDR_Test.cpp
index fbbc7414e78..699a28e4608 100644
--- a/tests/CDR_Test.cpp
+++ b/tests/CDR_Test.cpp
@@ -228,7 +228,7 @@ short_stream (void)
ACE_TEXT ("string transfer error")),
1);
- if (ACE_OS::wscmp (wstr1, wstr))
+ if (ACE_OS::strcmp (wstr1, wstr))
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"),
ACE_TEXT ("wide string transfer error")),
@@ -430,7 +430,7 @@ CDR_Test_Types::test_get (ACE_InputCDR &cdr) const
1);
// zero length
ACE_Auto_Basic_Array_Ptr<ACE_CDR::WChar> auto_xwstr (wstr1);
- if (ACE_OS::wslen(auto_xwstr.get () ))
+ if (ACE_OS::strlen(auto_xwstr.get () ))
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("wstring[%d] differs\n"),
i),
@@ -450,7 +450,7 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE::minor_version(),
ACE::beta_version()));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("dn:l:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("dn:l:"));
int opt;
int debug = 0;
diff --git a/tests/CE_fostream.cpp b/tests/CE_fostream.cpp
index 45641fb6e77..7ebb9b168d7 100644
--- a/tests/CE_fostream.cpp
+++ b/tests/CE_fostream.cpp
@@ -2,8 +2,8 @@
#include "CE_fostream.h"
-// This is CE only, prior to availability of iostreams (VC 8).
-#if defined (ACE_HAS_WINCE) && defined (ACE_LACKS_IOSTREAM_TOTALLY)
+// This is CE only.
+#if defined (ACE_HAS_WINCE)
ACE_CE_fostream* ACE_CE_fostream::instance_ = 0;
@@ -146,4 +146,4 @@ ACE_CE_fostream& ACE_CE_fostream::operator << (const void* v)
return *this;
}
-#endif /* ACE_HAS_WINCE && ACE_LACKS_IOSTREAMS_TOTALLY */
+#endif /* ACE_HAS_WINCE */
diff --git a/tests/CE_fostream.h b/tests/CE_fostream.h
index 9d84d7fc2be..b488aaba3b1 100644
--- a/tests/CE_fostream.h
+++ b/tests/CE_fostream.h
@@ -21,7 +21,7 @@
#include "ace/config-all.h"
-#if defined (ACE_HAS_WINCE) && defined (ACE_LACKS_IOSTREAM_TOTALLY)
+#ifdef ACE_HAS_WINCE
#include "ace/Null_Mutex.h"
#include "ace/Singleton.h"
@@ -101,5 +101,5 @@ private:
typedef ACE_Singleton<ACE_CE_fostream, ACE_Null_Mutex> ACE_CE_OSTREAM;
-#endif /* ACE_HAS_WINCE && ACE_LACKS_IOSTREAM_TOTALLY */
-#endif /* ACE_CE_fostream_h */
+#endif // ACE_HAS_WINCE
+#endif // ACE_CE_fostream_h
diff --git a/tests/Cache_Map_Manager_Test.cpp b/tests/Cache_Map_Manager_Test.cpp
index 7d2f26a2a2a..f2681e793c7 100644
--- a/tests/Cache_Map_Manager_Test.cpp
+++ b/tests/Cache_Map_Manager_Test.cpp
@@ -475,7 +475,7 @@ test_caching_strategy_type (void)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("c:i:r:f:p:d"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("c:i:r:f:p:d"));
int cc;
while ((cc = get_opt ()) != -1)
diff --git a/tests/Cached_Accept_Conn_Test.cpp b/tests/Cached_Accept_Conn_Test.cpp
index 8ef061b4b56..43c44aaec7a 100644
--- a/tests/Cached_Accept_Conn_Test.cpp
+++ b/tests/Cached_Accept_Conn_Test.cpp
@@ -556,7 +556,7 @@ test_caching_strategy_type (void)
int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("l:i:p:c:a:d"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("l:i:p:c:a:d"));
int cc;
diff --git a/tests/Cached_Conn_Test.cpp b/tests/Cached_Conn_Test.cpp
index 7036f49279c..72d053cf0ae 100644
--- a/tests/Cached_Conn_Test.cpp
+++ b/tests/Cached_Conn_Test.cpp
@@ -520,7 +520,7 @@ test_caching_strategy_type (void)
int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("l:i:p:c:a:d"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("l:i:p:c:a:d"));
int cc;
diff --git a/tests/Config_Test.cpp b/tests/Config_Test.cpp
index 4cf08965fcb..110091b67af 100644
--- a/tests/Config_Test.cpp
+++ b/tests/Config_Test.cpp
@@ -979,7 +979,7 @@ iniCompare (ACE_Configuration_Heap& fromFile, ACE_Configuration_Heap& original)
// we're not equal if we cannot get rhs int
rc = false;
- ACE_OS::sprintf (int_value, ACE_LIB_TEXT ("%08x"), intValue);
+ ACE_OS::sprintf (int_value, ACE_TEXT ("%08x"), intValue);
originalString = int_value;
}
else if (originalType == ACE_Configuration::BINARY)
@@ -1001,10 +1001,10 @@ iniCompare (ACE_Configuration_Heap& fromFile, ACE_Configuration_Heap& original)
while (binary_length)
{
if (ptr != binary_data)
- originalString += ACE_LIB_TEXT (",");
+ originalString += ACE_TEXT (",");
ACE_OS::sprintf (bin_value,
- ACE_LIB_TEXT ("%02x"),
+ ACE_TEXT ("%02x"),
*ptr);
originalString += bin_value;
--binary_length;
diff --git a/tests/Conn_Test.cpp b/tests/Conn_Test.cpp
index 48627c82229..604812055d2 100644
--- a/tests/Conn_Test.cpp
+++ b/tests/Conn_Test.cpp
@@ -818,7 +818,7 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_START_TEST (ACE_TEXT ("Conn_Test"));
int status = 0;
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("c:i:s:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("c:i:s:"));
for (int c; (c = getopt ()) != -1; )
switch (c)
{
diff --git a/tests/DLL_Test_Impl.cpp b/tests/DLL_Test_Impl.cpp
index 4e1af9eb76c..87ed155dcc9 100644
--- a/tests/DLL_Test_Impl.cpp
+++ b/tests/DLL_Test_Impl.cpp
@@ -70,16 +70,6 @@ Hello_Impl::operator new (size_t bytes, const ACE_nothrow_t &nt)
ACE_DEBUG ((LM_INFO, "Hello_Impl::new\n"));
return ::new (nt) char[bytes];
}
-
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
-void
-Hello_Impl::operator delete (void *ptr, const ACE_nothrow_t&) throw ()
-{
- ACE_DEBUG ((LM_INFO, "Hello_Impl::delete\n"));
- ::delete [] static_cast<char *> (ptr);
-}
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
-
#endif /* ACE_HAS_NEW_NOTHROW */
void
@@ -143,5 +133,5 @@ dynamic_cast_test (Parent *target)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("dynamic_cast_test: parent %@; child %@\n"),
target, c));
return target == c ? 0 : -1;
-}
+}
#endif /* !ACE_LACKS_RTTI */
diff --git a/tests/DLL_Test_Impl.h b/tests/DLL_Test_Impl.h
index 9ef3fb887a8..bf16bdd5c48 100644
--- a/tests/DLL_Test_Impl.h
+++ b/tests/DLL_Test_Impl.h
@@ -56,9 +56,6 @@ public:
#if defined (ACE_HAS_NEW_NOTHROW)
/// Overloaded new operator, nothrow_t variant.
void *operator new (size_t bytes, const ACE_nothrow_t &nt);
-#if !defined (ACE_LACKS_PLACEMENT_OPERATOR_DELETE)
- void operator delete (void *p, const ACE_nothrow_t&) throw ();
-#endif /* ACE_LACKS_PLACEMENT_OPERATOR_DELETE */
#endif /* ACE_HAS_NEW_NOTHROW */
void operator delete (void *ptr);
diff --git a/tests/DLList_Test.cpp b/tests/DLList_Test.cpp
index 21260c33d55..3b8ac8f53fc 100644
--- a/tests/DLList_Test.cpp
+++ b/tests/DLList_Test.cpp
@@ -19,7 +19,7 @@
#include "test_config.h"
#include "ace/Containers.h"
#include "ace/SString.h"
-#include "ace/Malloc_T.h"
+#include "ace/Malloc.h"
typedef ACE_TCHAR *ACE_STRING;
typedef ACE_DLList<ACE_STRING> STRLIST;
diff --git a/tests/Dev_Poll_Reactor_Test.cpp b/tests/Dev_Poll_Reactor_Test.cpp
index 2b48767b875..be103246c93 100644
--- a/tests/Dev_Poll_Reactor_Test.cpp
+++ b/tests/Dev_Poll_Reactor_Test.cpp
@@ -203,13 +203,14 @@ Server::Server (void)
int
Server::handle_input (ACE_HANDLE /* handle */)
{
- char buffer[BUFSIZ+1] = { 0 }; // Insure a trailing nul
+ char buffer[BUFSIZ] = { 0 };
+
ssize_t bytes_read = 0;
char * const begin = buffer;
char * const end = buffer + BUFSIZ;
- for (char * buf = begin; buf < end; buf += bytes_read)
+ for (char * buf = begin; buf != end; buf += bytes_read)
{
// Keep reading until it is no longer possible to do so.
//
@@ -217,7 +218,7 @@ Server::handle_input (ACE_HANDLE /* handle */)
// mechanism may have a "state change" interface (as opposed to
// "state monitoring"), in which case a "speculative" read is
// done.
- bytes_read = this->peer ().recv (buf, end - buf);
+ bytes_read = this->peer ().recv (buf, BUFSIZ - bytes_read);
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("****** bytes_read = %d\n"),
diff --git a/tests/Dirent_Test.cpp b/tests/Dirent_Test.cpp
index 19c6e554b41..8b42ebd0ca0 100644
--- a/tests/Dirent_Test.cpp
+++ b/tests/Dirent_Test.cpp
@@ -10,7 +10,7 @@
//
// = DESCRIPTION
// This is a test of the opendir and readdir emulation provided by the
-// class ACE_Dirent. It is used to ensure that the emulation code
+// class ACE_OS_Dirent. It is used to ensure that the emulation code
// works properly on platforms that don't support this capability
// natively. As the emulation code is not compiled in other
// platforms, this test also ensures that there is no impact to
@@ -37,7 +37,7 @@ ACE_RCSID (tests,
"$Id Dirent_Test.cpp,v 4.10 2003/05/18 19:17:34 dhinton Exp$")
-#if defined (ACE_VXWORKS) || defined(CHORUS)
+#if defined (VXWORKS) || defined(CHORUS)
#define TEST_DIR "log"
#define DIR_DOT "."
#define DIR_DOT_DOT ".."
@@ -61,13 +61,13 @@ static const int RECURSION_INDENT = 3;
static int entrycount = 0;
static int
-selector (const ACE_DIRENT *d)
+selector (const dirent *d)
{
return ACE_OS::strcmp (d->d_name, TEST_ENTRY) == 0;
}
static int
-comparator (const ACE_DIRENT **d1, const ACE_DIRENT **d2)
+comparator (const dirent **d1, const dirent **d2)
{
return ACE_OS::strcmp ((*d1)->d_name, (*d2)->d_name);
}
@@ -121,7 +121,7 @@ dirent_test (void)
{
ACE_Dirent dir (ACE_TEXT (TEST_DIR));
- for (ACE_DIRENT *directory;
+ for (dirent *directory;
(directory = dir.read ()) != 0;
entrycount++)
ACE_DEBUG ((LM_DEBUG,
@@ -192,17 +192,17 @@ dirent_count (const ACE_TCHAR *dir_path,
int entry_count = 0;
- for (ACE_DIRENT *directory; (directory = dir.read ()) != 0;)
+ for (dirent *directory; (directory = dir.read ()) != 0;)
{
// Skip the ".." and "." files.
if (ACE_OS::strcmp (directory->d_name, DIR_DOT) == 0
|| ACE_OS::strcmp (directory->d_name, DIR_DOT_DOT) == 0)
continue;
- ++entry_count;
+ entry_count++;
-#if !defined (ACE_LACKS_STRUCT_DIR) && !defined (__BORLANDC__)
+#if !defined (ACE_LACKS_STRUCT_DIR)
ACE_OS::strncpy (tname,
- ACE_TEXT_CHAR_TO_TCHAR (directory->d_name),
+ ACE_TEXT_TO_TCHAR_IN (directory->d_name),
maxnamlen);
#else
ACE_OS::strncpy (tname, directory->d_name, maxnamlen);
@@ -220,7 +220,7 @@ dirent_count (const ACE_TCHAR *dir_path,
switch (stat_buf.st_mode & S_IFMT)
{
case S_IFREG: // Either a regular file or an executable.
- ++file_count;
+ file_count++;
break;
case S_IFLNK: // Either a file or directory link, so let's find out.
@@ -232,9 +232,9 @@ dirent_count (const ACE_TCHAR *dir_path,
if ((stat_buf.st_mode & S_IFMT) == S_IFDIR)
// Don't recurse through symbolic directory links!
- ++dir_count;
+ dir_count++;
else
- ++file_count;
+ file_count++;
break;
case S_IFDIR:
@@ -255,7 +255,7 @@ dirent_count (const ACE_TCHAR *dir_path,
tname,
local_file_count,
local_dir_count));
- ++dir_count;
+ dir_count++;
#if !defined (ACE_LACKS_CHDIR)
# if defined (ACE_VXWORKS)
diff --git a/tests/Enum_Interfaces_Test.cpp b/tests/Enum_Interfaces_Test.cpp
index b9bd438c6c0..0ef53a9942c 100644
--- a/tests/Enum_Interfaces_Test.cpp
+++ b/tests/Enum_Interfaces_Test.cpp
@@ -63,7 +63,7 @@ run_main (int, ACE_TCHAR *[])
for (size_t i = 0; i < how_many; i++)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\t%s\n"),
- ACE_TEXT_CHAR_TO_TCHAR (the_addr_array[i].get_host_addr ())));
+ ACE_TEXT_TO_TCHAR_IN (the_addr_array[i].get_host_addr ())));
delete [] the_addr_array;
}
diff --git a/tests/Env_Value_Test.cpp b/tests/Env_Value_Test.cpp
index ca9674127a0..96bc2a522a2 100644
--- a/tests/Env_Value_Test.cpp
+++ b/tests/Env_Value_Test.cpp
@@ -110,7 +110,7 @@ run_main (int argc, ACE_TCHAR * [], ACE_TCHAR *envp[])
const ACE_TCHAR *defstr = ACE_TEXT ("Sarah Cleeland is Two!");
ACE_Env_Value<const ACE_TCHAR *> sval (ACE_TEXT ("This_Shouldnt_Be_Set_Hopefully"),
defstr);
- ACE_ASSERT (ACE_OS::strcmp (sval, defstr) == 0);
+ ACE_ASSERT (ACE_OS::strcmp (static_cast<const ACE_TCHAR *>(sval), defstr) == 0);
ACE_END_TEST;
}
return 0;
diff --git a/tests/Future_Set_Test.cpp b/tests/Future_Set_Test.cpp
index 888a945ab4c..28ef6c0fe51 100644
--- a/tests/Future_Set_Test.cpp
+++ b/tests/Future_Set_Test.cpp
@@ -453,26 +453,22 @@ run_main (int, ACE_TCHAR *[])
ACE_NEW_RETURN (andres,
Prime_Scheduler (ACE_TEXT ("andres")),
-1);
- int result = andres->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (andres->open () != -1);
ACE_NEW_RETURN (peter,
Prime_Scheduler (ACE_TEXT ("peter")),
-1);
- result = peter->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (peter->open () != -1);
ACE_NEW_RETURN (helmut,
Prime_Scheduler (ACE_TEXT ("helmut")),
-1);
- result = helmut->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (helmut->open () != -1);
// Matias passes all asynchronous method calls on to Andres...
ACE_NEW_RETURN (matias,
Prime_Scheduler (ACE_TEXT ("matias"),
andres),
-1);
- result = matias->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (matias->open () != -1);
ACE_Future<u_long> fresulta;
ACE_Future<u_long> fresultb;
diff --git a/tests/Future_Test.cpp b/tests/Future_Test.cpp
index 2a3c8b664bb..92e90561a02 100644
--- a/tests/Future_Test.cpp
+++ b/tests/Future_Test.cpp
@@ -424,26 +424,22 @@ run_main (int, ACE_TCHAR *[])
ACE_NEW_RETURN (andres,
Prime_Scheduler (ACE_TEXT ("andres")),
-1);
- int result = andres->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (andres->open () != -1);
ACE_NEW_RETURN (peter,
Prime_Scheduler (ACE_TEXT ("peter")),
-1);
- result = peter->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (peter->open () != -1);
ACE_NEW_RETURN (helmut,
Prime_Scheduler (ACE_TEXT ("helmut")),
-1);
- result = helmut->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (helmut->open () != -1);
// Matias passes all asynchronous method calls on to Andres...
ACE_NEW_RETURN (matias,
Prime_Scheduler (ACE_TEXT ("matias"),
andres),
-1);
- result = matias->open ();
- ACE_ASSERT (result != -1);
+ ACE_ASSERT (matias->open () != -1);
for (int i = 0; i < n_loops; i++)
{
diff --git a/tests/Get_Opt_Test.cpp b/tests/Get_Opt_Test.cpp
index b34c9e64f2f..cba53d53e40 100644
--- a/tests/Get_Opt_Test.cpp
+++ b/tests/Get_Opt_Test.cpp
@@ -7,7 +7,7 @@
//
// = DESCRIPTION
// This program tests both the short and long option support in
-// <ACE_Get_Opt>, and demonstrates how to use it.
+// <ACE_Get_Arg_Opt<ACE_TCHAR> >, and demonstrates how to use it.
//
// = AUTHOR
// Don Hinton <dhinton@dresystems.com>
@@ -25,7 +25,7 @@ ACE_RCSID(tests, Get_Opt_Test, "$Id$")
/*
* This is the heart of the test. It sets up the optstring, instantiates
- * ACE_Get_Opt, add long options, processes them in a loop, and prints out
+ * ACE_Get_Arg_Opt<ACE_TCHAR> , add long options, processes them in a loop, and prints out
* the results to the log.
*
* It returns 0 for success and 1 for error so we can keep track of the
@@ -65,7 +65,7 @@ parse_args (int test_number,
ACE_ARGV args (test.c_str ());
- ACE_Get_Opt get_opt (args.argc (),
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (args.argc (),
args.argv (),
optstring.c_str (),
skip_argv,
@@ -75,31 +75,31 @@ parse_args (int test_number,
// Now add the default long args.
if (get_opt.long_option (ACE_TEXT ("flag"),
'f',
- ACE_Get_Opt::NO_ARG) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::NO_ARG) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add long option 'f' \n")), 1);
if (get_opt.long_option (ACE_TEXT ("requires_arg"),
'r',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add long option 'r' \n")), 1);
if (get_opt.long_option (ACE_TEXT ("optional_arg"),
'o',
- ACE_Get_Opt::ARG_OPTIONAL) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_OPTIONAL) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add long option 'o' \n")), 1);
if (get_opt.long_option (ACE_TEXT ("long_option"),
'l',
- ACE_Get_Opt::ARG_OPTIONAL) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_OPTIONAL) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add long option 'l' \n")), 1);
if (get_opt.long_option (ACE_TEXT ("long_only"),
-11,
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add long option ")
ACE_TEXT ("\"long_only\" \n")), 1);
@@ -115,7 +115,7 @@ parse_args (int test_number,
// (afterall, there are only so many alpha numeric characters available).
if (get_opt.long_option (ACE_TEXT ("non_alpha-num_short"),
-10,
- ACE_Get_Opt::ARG_OPTIONAL) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_OPTIONAL) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add long option ")
ACE_TEXT ("\"non_alpha_short\" \n")), 1);
@@ -337,9 +337,9 @@ run_main (int, ACE_TCHAR *argv[])
int test_number = 0;
// Run the tests for each type of ordering.
- retval = run_test (test_number, ACE_Get_Opt::PERMUTE_ARGS);
- retval += run_test (test_number, ACE_Get_Opt::REQUIRE_ORDER);
- retval += run_test (test_number, ACE_Get_Opt::RETURN_IN_ORDER);
+ retval = run_test (test_number, ACE_Get_Arg_Opt<ACE_TCHAR> ::PERMUTE_ARGS);
+ retval += run_test (test_number, ACE_Get_Arg_Opt<ACE_TCHAR> ::REQUIRE_ORDER);
+ retval += run_test (test_number, ACE_Get_Arg_Opt<ACE_TCHAR> ::RETURN_IN_ORDER);
ACE_END_TEST;
return retval;
diff --git a/tests/HTBP/Reactor_Tests/client.cpp b/tests/HTBP/Reactor_Tests/client.cpp
index 2813d9116f3..a3cafc76e49 100644
--- a/tests/HTBP/Reactor_Tests/client.cpp
+++ b/tests/HTBP/Reactor_Tests/client.cpp
@@ -29,7 +29,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
#endif /* 0 */
ACE::HTBP::ID_Requestor req (&env);
- ACE::HTBP::Addr local = ACE_TEXT_ALWAYS_CHAR(req.get_HTID());
+ ACE::HTBP::Addr local = ACE_TEXT_TO_CHAR_IN(req.get_HTID());
unsigned remote_port = 8088;
const ACE_TCHAR * remote_host = argv[1];
@@ -48,7 +48,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
ACE_INET_Addr proxy(proxy_port,proxy_host.c_str());
- ACE::HTBP::Addr remote (remote_port,ACE_TEXT_ALWAYS_CHAR(remote_host));
+ ACE::HTBP::Addr remote (remote_port,ACE_TEXT_TO_CHAR_IN(remote_host));
ACE::HTBP::Session session(remote,local,ACE::HTBP::Session::next_session_id(),&proxy);
ACE::HTBP::Stream stream (&session);
diff --git a/tests/HTBP/Reactor_Tests/test_config.h b/tests/HTBP/Reactor_Tests/test_config.h
index 8a707c4c5c3..a675e9a6f3c 100644
--- a/tests/HTBP/Reactor_Tests/test_config.h
+++ b/tests/HTBP/Reactor_Tests/test_config.h
@@ -43,7 +43,7 @@
#undef ACE_NDEBUG
#undef ACE_TEXT
-#define ACE_TEXT ACE_LIB_TEXT
+#define ACE_TEXT ACE_TEXT
#if defined (ACE_HAS_WINCE)
// Note that Pocket PC 2002 will NOT create a directory if it does not start with a leading '\'.
@@ -251,7 +251,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
# endif /* ! VXWORKS */
# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- this->output_file_->open (ACE_TEXT_ALWAYS_CHAR (temp),
+ this->output_file_->open (ACE_TEXT_TO_CHAR_IN (temp),
ios::out | (append ? ios::app : ios::trunc));
if (this->output_file_->bad ())
return -1;
diff --git a/tests/HTBP/Send_Large_Msg/client.cpp b/tests/HTBP/Send_Large_Msg/client.cpp
index 62cd9140da8..4f1fafd8618 100644
--- a/tests/HTBP/Send_Large_Msg/client.cpp
+++ b/tests/HTBP/Send_Large_Msg/client.cpp
@@ -32,7 +32,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE::HTBP::ID_Requestor req (&env);
- ACE::HTBP::Addr local(ACE_TEXT_ALWAYS_CHAR(req.get_HTID()));
+ ACE::HTBP::Addr local(ACE_TEXT_TO_CHAR_IN(req.get_HTID()));
unsigned remote_port = 8088;
const ACE_TCHAR * remote_host = argv[1];
@@ -51,7 +51,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
}
ACE_INET_Addr proxy(proxy_port,proxy_host.c_str());
- ACE::HTBP::Addr remote (remote_port,ACE_TEXT_ALWAYS_CHAR(remote_host));
+ ACE::HTBP::Addr remote (remote_port,ACE_TEXT_TO_CHAR_IN(remote_host));
ACE::HTBP::Session session(remote,
local,
diff --git a/tests/HTBP/Send_Recv_Tests/SendRecv_Test.cpp b/tests/HTBP/Send_Recv_Tests/SendRecv_Test.cpp
index d462a11c3d3..d670dfab39e 100644
--- a/tests/HTBP/Send_Recv_Tests/SendRecv_Test.cpp
+++ b/tests/HTBP/Send_Recv_Tests/SendRecv_Test.cpp
@@ -69,7 +69,7 @@ client (void *arg)
#endif /* 0 */
ACE::HTBP::ID_Requestor req (&ht_env);
- ACE::HTBP::Addr local(ACE_TEXT_ALWAYS_CHAR(req.get_HTID()));
+ ACE::HTBP::Addr local(ACE_TEXT_TO_CHAR_IN(req.get_HTID()));
char hostname [128];
@@ -94,7 +94,7 @@ client (void *arg)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) connected to %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(remote.get_host_name ())));
+ ACE_TEXT_TO_TCHAR_IN(remote.get_host_name ())));
//******************* TEST 1 ******************************
//
@@ -230,7 +230,7 @@ server (void *arg)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) client %s connected from %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR(cli_addr.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN(cli_addr.get_host_name ()),
cli_addr.get_port_number ()));
//******************* TEST 1 ******************************
diff --git a/tests/HTBP/ping/client.cpp b/tests/HTBP/ping/client.cpp
index e7753faab6d..e50fbd9a207 100644
--- a/tests/HTBP/ping/client.cpp
+++ b/tests/HTBP/ping/client.cpp
@@ -30,7 +30,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
ACE::HTBP::ID_Requestor req (&env);
- ACE::HTBP::Addr local(ACE_TEXT_ALWAYS_CHAR(req.get_HTID()));
+ ACE::HTBP::Addr local(ACE_TEXT_TO_CHAR_IN(req.get_HTID()));
unsigned remote_port = 8088;
const ACE_TCHAR * remote_host = argv[1];
@@ -49,7 +49,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
}
ACE_INET_Addr proxy(proxy_port,proxy_host.c_str());
- ACE::HTBP::Addr remote (remote_port,ACE_TEXT_ALWAYS_CHAR(remote_host));
+ ACE::HTBP::Addr remote (remote_port,ACE_TEXT_TO_CHAR_IN(remote_host));
ACE::HTBP::Session session(remote,
local,
diff --git a/tests/Hash_Map_Bucket_Iterator_Test.cpp b/tests/Hash_Map_Bucket_Iterator_Test.cpp
index c3bcc9b1157..27004d20c95 100644
--- a/tests/Hash_Map_Bucket_Iterator_Test.cpp
+++ b/tests/Hash_Map_Bucket_Iterator_Test.cpp
@@ -32,7 +32,7 @@ static ACE_UINT32 table_size = ACE_MAX_ITERATIONS;
int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("t:i:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("t:i:"));
int cc;
diff --git a/tests/Hash_Map_Manager_Test.cpp b/tests/Hash_Map_Manager_Test.cpp
index d5cbac6a890..26a41c0cd98 100644
--- a/tests/Hash_Map_Manager_Test.cpp
+++ b/tests/Hash_Map_Manager_Test.cpp
@@ -161,7 +161,7 @@ run_test (void)
// Let's test the iterator while we are at it.
{
- HASH_STRING_ENTRY *entry = 0;
+ HASH_STRING_ENTRY *entry;
size_t i = 0;
for (HASH_STRING_ITER hash_iter (hash);
@@ -179,7 +179,7 @@ run_test (void)
// And now test the const iterator
{
- HASH_STRING_ENTRY *entry = 0;
+ HASH_STRING_ENTRY *entry;
size_t i = 0;
for (HASH_STRING_CONST_ITER hash_iter (hash);
@@ -213,7 +213,7 @@ run_test (void)
// Let's test the iterator backwards.
{
- HASH_STRING_ENTRY *entry = 0;
+ HASH_STRING_ENTRY *entry;
size_t i = 0;
for (HASH_STRING_REVERSE_ITER hash_iter (hash);
diff --git a/tests/High_Res_Timer_Test.cpp b/tests/High_Res_Timer_Test.cpp
index 5398157d8d3..c0ab6b4352e 100644
--- a/tests/High_Res_Timer_Test.cpp
+++ b/tests/High_Res_Timer_Test.cpp
@@ -114,7 +114,7 @@ run_main (int argc, ACE_TCHAR *argv[])
u_int iterations = 1;
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("i:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("i:"));
for (int c; (c = getopt ()) != -1; )
switch (c)
{
diff --git a/tests/INET_Addr_Test_IPV6.cpp b/tests/INET_Addr_Test_IPV6.cpp
index 134119ae7b9..b8694c208b8 100644
--- a/tests/INET_Addr_Test_IPV6.cpp
+++ b/tests/INET_Addr_Test_IPV6.cpp
@@ -139,7 +139,7 @@ int run_main (int argc, ACE_TCHAR *argv[])
#if defined (__linux__)
// test a link local address to make sure the set_interface method works
ACE_INET_Addr link_local_addr (80, LINK_LOCAL_ADDR);
- if (0 != ACE_OS::strcmp (ACE_TEXT_CHAR_TO_TCHAR(link_local_addr.get_host_addr ()),
+ if (0 != ACE_OS::strcmp (ACE_TEXT_TO_TCHAR_IN(link_local_addr.get_host_addr ()),
LINK_LOCAL_ADDR))
{
ACE_ERROR ((LM_ERROR,
diff --git a/tests/IOStream_Test.cpp b/tests/IOStream_Test.cpp
index 7f02a590fcf..0c2b5f0101a 100644
--- a/tests/IOStream_Test.cpp
+++ b/tests/IOStream_Test.cpp
@@ -189,7 +189,7 @@ client (void *arg = 0)
// Send a string to the server which it can interpret as a qchar[]
const char *str = "\"This is a test string.\"";
ACE_DEBUG ((LM_DEBUG, ACE_TEXT (" (%P|%t) Client Sending: (%s)\n"),
- ACE_TEXT_CHAR_TO_TCHAR (str)));
+ ACE_TEXT_TO_TCHAR_IN (str)));
server << str << endl;
// Allow the server to get the string and echo it to the user. (The
@@ -324,7 +324,7 @@ server (void *arg = 0)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT (" (%P|%t) Server Received: (\"%s\")\n"),
- ACE_TEXT_CHAR_TO_TCHAR ((char *) qbuf)));
+ ACE_TEXT_TO_TCHAR_IN ((char *) qbuf)));
// Give the client time to announce the next test to the user.
ACE_OS::sleep (2);
@@ -365,7 +365,7 @@ server (void *arg = 0)
break;
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("%s "),
- ACE_TEXT_CHAR_TO_TCHAR (buf)));
+ ACE_TEXT_TO_TCHAR_IN (buf)));
}
ACE_DEBUG ((LM_DEBUG,
diff --git a/tests/Lazy_Map_Manager_Test.cpp b/tests/Lazy_Map_Manager_Test.cpp
index 0d6627d0d72..d1b43d7d47f 100644
--- a/tests/Lazy_Map_Manager_Test.cpp
+++ b/tests/Lazy_Map_Manager_Test.cpp
@@ -25,20 +25,20 @@
ACE_RCSID(tests, Map_Manager_Test, "$Id$")
// Simple map manager.
-typedef ACE_Map_Manager<int, int, ACE_Null_Mutex> LAZY_MAP;
+typedef ACE_Map_Manager<int, int, ACE_Null_Mutex> MAP;
// Displaying the contents of a map manager.
void
-display_map (LAZY_MAP &map)
+display_map (MAP &map)
{
{
// Simple iteration printing the entries.
- for (LAZY_MAP::iterator iter = map.begin ();
+ for (MAP::iterator iter = map.begin ();
iter != map.end ();
++iter)
{
- LAZY_MAP::ENTRY &entry = *iter;
+ MAP::ENTRY &entry = *iter;
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("%d "),
entry.int_id_));
@@ -49,11 +49,11 @@ display_map (LAZY_MAP &map)
{
// Simple reverse iteration printing the entries.
- for (LAZY_MAP::reverse_iterator iter = map.rbegin ();
+ for (MAP::reverse_iterator iter = map.rbegin ();
iter != map.rend ();
++iter)
{
- LAZY_MAP::ENTRY &entry = *iter;
+ MAP::ENTRY &entry = *iter;
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("%d "),
entry.int_id_));
@@ -73,7 +73,7 @@ void
map_test (void)
{
// Map of size 3.
- LAZY_MAP map (3);
+ MAP map (3);
int i = 0;
// Insert a few entries.
@@ -111,11 +111,11 @@ map_test (void)
// Remove middle one.
{
// Deletion while iterating.
- for (LAZY_MAP::iterator iter = map.begin ();
+ for (MAP::iterator iter = map.begin ();
iter != map.end ();
++iter)
{
- LAZY_MAP::ENTRY &entry = *iter;
+ MAP::ENTRY &entry = *iter;
if (entry.int_id_ == 1)
map.unbind (1);
}
@@ -126,11 +126,11 @@ map_test (void)
// Remove the entry on one end.
{
// Deletion while iterating.
- for (LAZY_MAP::iterator iter = map.begin ();
+ for (MAP::iterator iter = map.begin ();
iter != map.end ();
++iter)
{
- LAZY_MAP::ENTRY &entry = *iter;
+ MAP::ENTRY &entry = *iter;
if (entry.int_id_ == 0)
map.unbind (0);
}
@@ -141,11 +141,11 @@ map_test (void)
// Remove the entry on the other end.
{
// Deletion while iterating.
- for (LAZY_MAP::iterator iter = map.begin ();
+ for (MAP::iterator iter = map.begin ();
iter != map.end ();
++iter)
{
- LAZY_MAP::ENTRY &entry = *iter;
+ MAP::ENTRY &entry = *iter;
if (entry.int_id_ == 2)
map.unbind (2);
}
diff --git a/tests/Log_Msg_Test.cpp b/tests/Log_Msg_Test.cpp
index 8df03ca42d3..1a8a6276c87 100644
--- a/tests/Log_Msg_Test.cpp
+++ b/tests/Log_Msg_Test.cpp
@@ -373,7 +373,7 @@ test_ostream (void)
#if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
// Create a persistent store.
const ACE_TCHAR *filename = ACE_TEXT ("output");
- ofstream myostream (ACE_TEXT_ALWAYS_CHAR (filename), ios::out | ios::trunc);
+ ofstream myostream (ACE_TEXT_TO_CHAR_IN (filename), ios::out | ios::trunc);
// Check for errors.
if (myostream.bad ())
diff --git a/tests/Logging_Strategy_Test.cpp b/tests/Logging_Strategy_Test.cpp
index 2a53c83606f..132c335e826 100644
--- a/tests/Logging_Strategy_Test.cpp
+++ b/tests/Logging_Strategy_Test.cpp
@@ -338,7 +338,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Specifications:\n")));
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("s:i:m:f:N:ow"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("s:i:m:f:N:ow"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/tests/MEM_Stream_Test.cpp b/tests/MEM_Stream_Test.cpp
index 6d652c9b7d7..a6f0123f59b 100644
--- a/tests/MEM_Stream_Test.cpp
+++ b/tests/MEM_Stream_Test.cpp
@@ -308,8 +308,8 @@ test_reactive (const ACE_TCHAR *prog,
ACE_TEXT ("Reactor::run_event_loop timeout\n")));
status = 1;
}
- else
- ACE_DEBUG ((LM_DEBUG, "Reactor::run_event_loop finished\n"));
+
+ ACE_DEBUG ((LM_DEBUG, "Reactor::run_event_loop finished\n"));
#if defined (_TEST_USES_THREADS)
if (ACE_Thread_Manager::instance ()->wait () == -1)
@@ -403,11 +403,11 @@ test_concurrent (const ACE_TCHAR *prog,
ACE_DEBUG ((LM_DEBUG, "Reactor::run_event_loop finished\n"));
#if defined (_TEST_USES_THREADS)
- if (ACE_Thread_Manager::instance ()->wait () == -1)
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("wait ()")));
+ // We need to call this method if we use the
+ // ACE_Thread_Strategy<Echo_Handler>.
+ ACE_Thread_Manager::instance ()->wait ();
#else
- if (ACE_Process_Manager::instance ()->wait () == -1)
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("wait ()")));
+ ACE_Process_Manager::instance ()->wait ();
#endif /* _TEST_USES_THREADS */
if (acceptor.close () == -1)
@@ -469,7 +469,7 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_OS::sprintf(lognm, ACE_TEXT ("MEM_Stream_Test-%d"), mypid);
ACE_START_TEST (lognm);
- ACE_Get_Opt opts (argc, argv, ACE_TEXT ("p:rm"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> opts (argc, argv, ACE_TEXT ("p:rm"));
int opt, iport, status;
ACE_MEM_IO::Signal_Strategy model = ACE_MEM_IO::Reactive;
diff --git a/tests/MT_Reactor_Upcall_Test.cpp b/tests/MT_Reactor_Upcall_Test.cpp
index 49c203b5f2c..532fe5de17e 100644
--- a/tests/MT_Reactor_Upcall_Test.cpp
+++ b/tests/MT_Reactor_Upcall_Test.cpp
@@ -266,7 +266,7 @@ test_reactor_upcall (ACE_Reactor &reactor)
int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("t:m:s:l:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("t:m:s:l:"));
int c;
diff --git a/tests/MT_Reference_Counted_Event_Handler_Test.cpp b/tests/MT_Reference_Counted_Event_Handler_Test.cpp
index 2c101e19d8f..ecb17a58fb5 100644
--- a/tests/MT_Reference_Counted_Event_Handler_Test.cpp
+++ b/tests/MT_Reference_Counted_Event_Handler_Test.cpp
@@ -1240,7 +1240,7 @@ test<REACTOR_IMPL>::test (int ignore_nested_upcalls,
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("a:b:c:d:f:g:k:l:m:n:o:uz:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("a:b:c:d:f:g:k:l:m:n:o:uz:"));
int cc;
while ((cc = get_opt ()) != -1)
diff --git a/tests/MT_Reference_Counted_Notify_Test.cpp b/tests/MT_Reference_Counted_Notify_Test.cpp
index ef0a0a52b31..af073a99859 100644
--- a/tests/MT_Reference_Counted_Notify_Test.cpp
+++ b/tests/MT_Reference_Counted_Notify_Test.cpp
@@ -319,7 +319,7 @@ test<REACTOR_IMPLEMENTATION>::test (int extra_iterations_needed)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("a:b:c:d:e:f:g:z:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("a:b:c:d:e:f:g:z:"));
int cc;
while ((cc = get_opt ()) != -1)
diff --git a/tests/MT_SOCK_Test.cpp b/tests/MT_SOCK_Test.cpp
index eb407f5f596..0cb9bab0827 100644
--- a/tests/MT_SOCK_Test.cpp
+++ b/tests/MT_SOCK_Test.cpp
@@ -63,7 +63,8 @@ client (void *arg)
ACE_Time_Value *timeout = &tv;
#endif /* ACE_HAS_BROKEN_NON_BLOCKING_CONNECTS */
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) client: Connecting...\n")));
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) client: Connecting...\n")));
// Initiate timed connection with server.
// Attempt a timed connect to the server.
@@ -73,24 +74,24 @@ client (void *arg)
{
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("client: Connection timed out.")));
+ ACE_TEXT ("client: Connection timed out.")));
return 0;
}
if (cli_stream.get_local_addr (client_addr) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("client: get_local_addr")),
+ ACE_TEXT ("client: get_local_addr")),
0);
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) client: Connected at %d\n"),
+ ACE_TEXT ("(%P|%t) client: Connected at %d\n"),
client_addr.get_port_number ()));
if (cli_stream.disable (ACE_NONBLOCK) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("client: disable")));
+ ACE_TEXT ("client: disable")));
// Send data to server (correctly handles "incomplete writes").
@@ -99,43 +100,26 @@ client (void *arg)
for (const char *c = ACE_ALPHABET; *c != '\0'; c++)
if (cli_stream.send_n (c, 1) == -1)
{
- // This is, I believe, more of an issue with WinXP-64 _server_
- // side, but we can trap it here since we know we're connecting
- // to localhost. It appears, though I haven't found documentation
- // stating, that WinXP-64 will appear to accept connections at the
- // TCP level past the listen backlog but if data arrives before the
- // actual application-level accept() occurs, the connection is reset.
- // So, if we get a reset on the first send, don't flag the error -
- // just note it and act like the connection was refused.
- if (c == ACE_ALPHABET && errno == ECONNRESET) // First byte sent
- {
- ACE_DEBUG
- ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) client: Connection refused (delayed)\n")));
- cli_stream.close ();
- return 0;
- }
-
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) (errno %d) %p\n"), errno,
- ACE_TEXT ("client: send_n")));
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("(%P|%t) (%d) %p\n"), errno,
+ ACE_TEXT ("client: send_n")));
ACE_ERROR ((LM_ERROR, "client: Closing stream.\n"));
cli_stream.close();
return 0;
}
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) client: Closing writer...\n")));
+ ACE_TEXT ("(%P|%t) client: Closing writer...\n")));
// Explicitly close the writer-side of the connection.
if (cli_stream.close_writer () == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("client: close_writer")));
+ ACE_TEXT ("client: close_writer")));
char buf[1];
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) client: Waiting for server handshake...\n")));
+ ACE_TEXT ("(%P|%t) client: Waiting for server handshake...\n")));
// Wait for handshake with server.
if (cli_stream.recv_n (buf, 1) != 1)
@@ -143,15 +127,14 @@ client (void *arg)
ACE_TEXT ("(%P|%t) %p\n"),
ACE_TEXT ("client: recv_n")));
- ACE_DEBUG
- ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) client: Handshake received. Closing stream.\n")));
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) client: Handshake received. Closing stream.\n")));
// Close the connection completely.
if (cli_stream.close () == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("client: close")));
+ ACE_TEXT ("client: close")));
return 0;
}
@@ -164,7 +147,7 @@ server (void *arg)
if (peer_acceptor->enable (ACE_NONBLOCK) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: enable acceptor")));
+ ACE_TEXT ("server: enable acceptor")));
// Keep these objects out here to prevent excessive constructor
// calls...
@@ -190,7 +173,7 @@ server (void *arg)
handle_set.reset ();
handle_set.set_bit (peer_acceptor->get_handle ());
- ACE_DEBUG((LM_DEBUG, "(%P|%t) server: Waiting for connection...\n"));
+ ACE_DEBUG((LM_DEBUG, "(%P|%t) server: Waiting for connection...\n"));
int select_width;
# if defined (ACE_WIN64)
@@ -200,28 +183,26 @@ server (void *arg)
# else
select_width = int (peer_acceptor->get_handle ()) + 1;
# endif /* ACE_WIN64 */
- int result = ACE_OS::select (select_width, handle_set, 0, 0, &tv);
+ int result = ACE_OS::select (select_width, handle_set, 0, 0, &tv);
ACE_ASSERT (tv == def_timeout);
if (result == -1)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: select acceptor")),
+ ACE_TEXT ("server: select acceptor")),
0);
else if (result == 0)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: Test finished.\n")));
- // The meaning of the backlog parameter for listen() varies by
- // platform. For some reason lost to history, the specified value
- // is typically backlog * 1.5, backlog * 1.5 + 1, or event taken
- // literally as on Windows. We'll accept any number less than
- // backlog * 2 as valid.
- if (num_clients_connected >= BACKLOG * 2)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) server: Incorrect # client ")
- ACE_TEXT ("connections. Expected:%d-%d Actual:%d\n"),
- BACKLOG, BACKLOG * 2, num_clients_connected));
+ ACE_TEXT ("(%P|%t) server: Test finished.\n")));
+ // The meaning of the backlog parameter for listen() varies by platform. For
+ // some reason lost to history, the specified value is typically
+ // backlog * 1.5, backlog * 1.5 + 1, or event taken literally as on Windows.
+ // We'll accept any number less than backlog * 2 as valid.
+ if (num_clients_connected >= BACKLOG * 2)
+ ACE_ERROR((LM_ERROR,
+ "(%P|%t) server: Incorrect # client connections. Expected:%d-%d Actual:%d\n",
+ BACKLOG, BACKLOG * 2, num_clients_connected));
return 0;
}
@@ -233,25 +214,25 @@ server (void *arg)
{
const char *t = ACE_ALPHABET;
- ++num_clients_connected;
+ ++num_clients_connected;
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: Client %C connected from %d\n"),
- cli_addr.get_host_name (),
+ ACE_TEXT ("(%P|%t) server: Client %s connected from %d\n"),
+ ACE_TEXT_TO_TCHAR_IN(cli_addr.get_host_name ()),
cli_addr.get_port_number ()));
// Enable non-blocking I/O.
if (new_stream.enable (ACE_NONBLOCK) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: enable non blocking i/o")),
+ ACE_TEXT ("server: enable non blocking i/o")),
0);
handle_set.reset ();
handle_set.set_bit (new_stream.get_handle ());
// Read data from client (terminate on error).
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: Waiting for data...\n")));
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) server: Waiting for data...\n")));
for (ssize_t r_bytes; ;)
{
@@ -271,7 +252,7 @@ server (void *arg)
ACE_TEXT ("select")),
0);
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server: Receiving data...\n"));
+ ACE_DEBUG((LM_DEBUG, "(%P|%t) server: Receiving data...\n"));
while ((r_bytes = new_stream.recv (buf, 1)) > 0)
{
@@ -279,42 +260,39 @@ server (void *arg)
t++;
}
- ACE_DEBUG((LM_DEBUG, "(%P|%t) server: Received data.\n"));
+ ACE_DEBUG((LM_DEBUG, "(%P|%t) server: Received data.\n"));
if (r_bytes == 0)
{
// Handshake back with client.
- ACE_DEBUG
- ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: Connection closed by client.\n")));
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("(%P|%t) server: Connection closed by client.\n")));
- ACE_DEBUG
- ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: Sending handshake.\n")));
+ ACE_DEBUG ((LM_DEBUG, "(%P|%t) server: Sending handshake.\n"));
if (new_stream.send_n ("", 1) != 1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: send_n")));
+ ACE_TEXT ("server: send_n")));
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) server: Closing stream.\n"));
+ ACE_DEBUG((LM_DEBUG, "(%P|%t) server: Closing stream.\n"));
// Close endpoint.
if (new_stream.close () == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: close")));
+ ACE_TEXT ("server: close")));
break;
}
else if (r_bytes == -1)
{
if (errno == EWOULDBLOCK || errno == EAGAIN)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: (EWOULDBLOCK) Waiting for more data...\n")));
+ ACE_TEXT ("(%P|%t) server: (EWOULDBLOCK) Waiting for more data...\n")));
else
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: recv_n")),
+ ACE_TEXT ("server: recv_n")),
0);
}
}
@@ -323,11 +301,11 @@ server (void *arg)
{
if (errno == EWOULDBLOCK)
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) server: No more connections pending.\n")));
+ ACE_TEXT ("(%P|%t) server: No more connections pending.\n")));
else
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("server: accept")));
+ ACE_TEXT ("server: accept")));
}
}
ACE_NOTREACHED (return 0);
@@ -349,7 +327,7 @@ spawn (int num_clients)
|| peer_acceptor.get_local_addr (server_addr) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n"),
- ACE_TEXT ("spawn: open")));
+ ACE_TEXT ("spawn: open")));
else
{
ACE_DEBUG ((LM_DEBUG,
@@ -363,8 +341,8 @@ spawn (int num_clients)
{
case -1:
ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P|%t) %p\n"), "spawn: fork failed"));
- i = num_clients;
+ "(%P|%t) %p\n", "spawn: fork failed"));
+ i = num_clients;
// Break out of 'for' loop.
break;
case 0:
@@ -383,11 +361,11 @@ spawn (int num_clients)
// Reap the child pids.
for (pid_t pid; (pid = ACE_OS::wait ()) != -1; )
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%P|%t) spawn: reaping pid %d\n"), pid));
+ "(%P|%t) spawn: reaping pid %d\n", pid));
#elif defined (ACE_HAS_THREADS)
- ACE_DEBUG((LM_DEBUG, "Spawning server...\n"));
+ ACE_DEBUG((LM_DEBUG, "Spawning server...\n"));
if (ACE_Thread_Manager::instance ()->spawn
(ACE_THR_FUNC (server),
@@ -395,34 +373,33 @@ spawn (int num_clients)
THR_BOUND | THR_DETACHED) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n%a"),
- ACE_TEXT ("spawn: failed"),
+ ACE_TEXT ("spawn: failed"),
1));
- ACE_DEBUG((LM_DEBUG, "Spawning %d clients...\n", num_clients));
+ ACE_DEBUG((LM_DEBUG, "Spawning %d clients...\n", num_clients));
if (ACE_Thread_Manager::instance ()->spawn_n
- (num_clients,
+ (num_clients,
ACE_THR_FUNC (client),
(void *) &server_addr,
THR_BOUND | THR_DETACHED) == -1)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) %p\n%a"),
- ACE_TEXT ("spawn: failed 2"),
+ ACE_TEXT ("spawn: failed 2"),
1));
- ACE_DEBUG((LM_DEBUG, "Waiting for threads to finish...\n"));
+ ACE_DEBUG((LM_DEBUG, "Waiting for threads to finish...\n"));
// Wait for the threads to exit.
ACE_Thread_Manager::instance ()->wait ();
#else
ACE_ERROR ((LM_INFO,
ACE_TEXT ("(%P|%t) ")
- ACE_TEXT ("spawn: only one thread may be run")
+ ACE_TEXT ("spawn: only one thread may be run")
ACE_TEXT (" in a process on this platform\n")));
#endif /* !ACE_LACKS_FORK */
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Threads complete. Closing Acceptor.\n")));
+ ACE_DEBUG((LM_DEBUG, "Threads complete. Closing Acceptor.\n"));
peer_acceptor.close ();
}
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9bc4dccb510..5b938b17723 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,7 +6,7 @@
## this file will be lost the next time it is generated.
##
## MPC Command:
-## ./bin/mwc.pl -type automake -noreldefs ACE.mwc
+## ./bin/mwc.pl -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/./MPC/config -include /home/jtc/ACE/ACE-autoconf/ACE_wrappers/./MPC/templates -type automake -noreldefs ACE.mwc
ACE_BUILDDIR = $(top_builddir)
ACE_ROOT = $(top_srcdir)
@@ -20,9 +20,6 @@ SUBDIRS = \
## Makefile.Test_Output.am
noinst_SCRIPTS = run_test.pl run_test.lst
-dist_check_SCRIPTS = run_test.pl run_test.lst
-TESTS = $(noinst_PROGRAMS)
-TESTS_ENVIRONMENT = $(srcdir)/run_test.pl -t
noinst_LTLIBRARIES = libTest_Output.la
@@ -189,18 +186,31 @@ Barrier_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-## Makefile.Based_Pointer_Test_Lib.am
+## Makefile.Based_Pointer_Test.am
+noinst_PROGRAMS += Based_Pointer_Test
-if !BUILD_ACE_FOR_TAO
+Based_Pointer_Test_CPPFLAGS = \
+ -I$(ACE_ROOT) \
+ -I$(ACE_BUILDDIR)
-noinst_LTLIBRARIES += libBased_Pointer_Test_Lib.la
+Based_Pointer_Test_SOURCES = \
+ $(ACE_ROOT)/tests/Main.cpp \
+ Based_Pointer_Test.cpp
+
+Based_Pointer_Test_LDADD = \
+ libTest_Output.la \
+ $(ACE_BUILDDIR)/ace/libACE.la
+
+## Makefile.Based_Pointer_Test_Lib.am
-libBased_Pointer_Test_Lib_la_CPPFLAGS = \
+noinst_LTLIBRARIES += libBased_Pointer_Test.la
+
+libBased_Pointer_Test_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-DACE_SVC_BUILD_DLL
-libBased_Pointer_Test_Lib_la_SOURCES = \
+libBased_Pointer_Test_la_SOURCES = \
Based_Pointer_Test_Lib.cpp
noinst_HEADERS += \
@@ -249,27 +259,6 @@ noinst_HEADERS += \
Upgradable_RW_Test.h \
test_config.h
-endif !BUILD_ACE_FOR_TAO
-
-## Makefile.Based_Pointer_Test.am
-
-if !BUILD_ACE_FOR_TAO
-noinst_PROGRAMS += Based_Pointer_Test
-
-Based_Pointer_Test_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR)
-
-Based_Pointer_Test_SOURCES = \
- $(ACE_ROOT)/tests/Main.cpp \
- Based_Pointer_Test.cpp
-
-Based_Pointer_Test_LDADD = \
- libTest_Output.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Basic_Types_Test.am
noinst_PROGRAMS += Basic_Types_Test
@@ -286,8 +275,6 @@ Basic_Types_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Bound_Ptr_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Bound_Ptr_Test
Bound_Ptr_Test_CPPFLAGS = \
@@ -303,8 +290,6 @@ Bound_Ptr_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Buffer_Stream_Test.am
noinst_PROGRAMS += Buffer_Stream_Test
@@ -336,8 +321,6 @@ Bug_1576_Regression_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.CDR_Array_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += CDR_Array_Test
CDR_Array_Test_CPPFLAGS = \
@@ -352,11 +335,7 @@ CDR_Array_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.CDR_File_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += CDR_File_Test
CDR_File_Test_CPPFLAGS = \
@@ -373,8 +352,6 @@ CDR_File_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.CDR_Test.am
noinst_PROGRAMS += CDR_Test
@@ -407,8 +384,6 @@ Cache_Map_Manager_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Cached_Accept_Conn_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Cached_Accept_Conn_Test
Cached_Accept_Conn_Test_CPPFLAGS = \
@@ -424,11 +399,7 @@ Cached_Accept_Conn_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Cached_Allocator_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Cached_Allocator_Test
Cached_Allocator_Test_CPPFLAGS = \
@@ -443,11 +414,7 @@ Cached_Allocator_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Cached_Conn_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Cached_Conn_Test
Cached_Conn_Test_CPPFLAGS = \
@@ -463,11 +430,7 @@ Cached_Conn_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Capabilities_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Capabilities_Test
Capabilities_Test_CPPFLAGS = \
@@ -482,12 +445,9 @@ Capabilities_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Codecs_Test.am
if BUILD_ACE_CODECS
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Codecs_Test
Codecs_Test_CPPFLAGS = \
@@ -502,7 +462,6 @@ Codecs_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_ACE_CODECS
## Makefile.Collection_Test.am
@@ -522,8 +481,6 @@ Collection_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Config_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Config_Test
Config_Test_CPPFLAGS = \
@@ -539,11 +496,7 @@ Config_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Conn_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Conn_Test
Conn_Test_CPPFLAGS = \
@@ -559,62 +512,58 @@ Conn_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
-## Makefile.DLL_Test_Parent_Lib.am
-
-noinst_LTLIBRARIES += libDLL_Test_Parent.la
+## Makefile.DLL_Test.am
+noinst_PROGRAMS += DLL_Test
-libDLL_Test_Parent_la_CPPFLAGS = \
+DLL_Test_CPPFLAGS = \
-I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -DDLL_TEST_PARENT_BUILD_DLL
+ -I$(ACE_BUILDDIR)
-libDLL_Test_Parent_la_SOURCES = \
- DLL_Test_Parent.cpp
+DLL_Test_SOURCES = \
+ $(ACE_ROOT)/tests/Main.cpp \
+ DLL_Test.cpp \
+ DLL_Test.h
-noinst_HEADERS += \
- DLL_Test_Parent.h \
- DLL_Test_Parent_Export.h \
- test_config.h
+DLL_Test_LDADD = \
+ libDLL_Test.la \
+ libDLL_Test_Parent.la \
+ libTest_Output.la \
+ $(ACE_BUILDDIR)/ace/libACE.la
## Makefile.DLL_Test_Lib.am
-noinst_LTLIBRARIES += libDLL_Test_Lib.la
+noinst_LTLIBRARIES += libDLL_Test.la
-libDLL_Test_Lib_la_CPPFLAGS = \
+libDLL_Test_la_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
-DACE_SVC_BUILD_DLL
-libDLL_Test_Lib_la_SOURCES = \
+libDLL_Test_la_SOURCES = \
DLL_Test_Impl.cpp
noinst_HEADERS += \
DLL_Test_Impl.h \
test_config.h
-## Makefile.DLL_Test.am
-noinst_PROGRAMS += DLL_Test
+## Makefile.DLL_Test_Parent_Lib.am
-DLL_Test_CPPFLAGS = \
+noinst_LTLIBRARIES += libDLL_Test_Parent.la
+
+libDLL_Test_Parent_la_CPPFLAGS = \
-I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR)
+ -I$(ACE_BUILDDIR) \
+ -DDLL_TEST_PARENT_BUILD_DLL
-DLL_Test_SOURCES = \
- $(ACE_ROOT)/tests/Main.cpp \
- DLL_Test.cpp \
- DLL_Test.h
+libDLL_Test_Parent_la_SOURCES = \
+ DLL_Test_Parent.cpp
-DLL_Test_LDADD = \
- libDLL_Test_Lib.la \
- libDLL_Test_Parent.la \
- libTest_Output.la \
- $(ACE_BUILDDIR)/ace/libACE.la
+noinst_HEADERS += \
+ DLL_Test_Parent.h \
+ DLL_Test_Parent_Export.h \
+ test_config.h
## Makefile.DLList_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += DLList_Test
DLList_Test_CPPFLAGS = \
@@ -629,11 +578,7 @@ DLList_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Date_Time_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Date_Time_Test
Date_Time_Test_CPPFLAGS = \
@@ -648,8 +593,6 @@ Date_Time_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Dev_Poll_Reactor_Test.am
noinst_PROGRAMS += Dev_Poll_Reactor_Test
@@ -726,8 +669,6 @@ Env_Value_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.FIFO_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += FIFO_Test
FIFO_Test_CPPFLAGS = \
@@ -742,8 +683,6 @@ FIFO_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.FlReactor_Test.am
if BUILD_ACE_FLREACTOR
@@ -755,21 +694,16 @@ noinst_PROGRAMS += FlReactor_Test
FlReactor_Test_CPPFLAGS = \
-I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- $(ACE_FLTK_CPPFLAGS)
+ -I$(ACE_BUILDDIR)
FlReactor_Test_SOURCES = \
$(ACE_ROOT)/tests/Main.cpp \
FlReactor_Test.cpp
-FlReactor_Test_LDFLAGS = \
- $(ACE_FLTK_LDFLAGS)
-
FlReactor_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE_FlReactor.la \
libTest_Output.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_FLTK_LIBS)
+ $(ACE_BUILDDIR)/ace/libACE.la
endif BUILD_X11
endif BUILD_GL
@@ -809,8 +743,6 @@ Framework_Component_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Future_Set_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Future_Set_Test
Future_Set_Test_CPPFLAGS = \
@@ -825,11 +757,7 @@ Future_Set_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Future_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Future_Test
Future_Test_CPPFLAGS = \
@@ -844,8 +772,6 @@ Future_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Get_Opt_Test.am
noinst_PROGRAMS += Get_Opt_Test
@@ -862,8 +788,6 @@ Get_Opt_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Handle_Set_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Handle_Set_Test
Handle_Set_Test_CPPFLAGS = \
@@ -878,8 +802,6 @@ Handle_Set_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Hash_Map_Bucket_Iterator_Test.am
noinst_PROGRAMS += Hash_Map_Bucket_Iterator_Test
@@ -911,8 +833,6 @@ Hash_Map_Manager_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.High_Res_Timer_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += High_Res_Timer_Test
High_Res_Timer_Test_CPPFLAGS = \
@@ -927,8 +847,6 @@ High_Res_Timer_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.INET_Addr_Test.am
noinst_PROGRAMS += INET_Addr_Test
@@ -990,8 +908,6 @@ Lazy_Map_Manager_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Log_Msg_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Log_Msg_Test
Log_Msg_Test_CPPFLAGS = \
@@ -1006,8 +922,6 @@ Log_Msg_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Logging_Strategy_Test.am
noinst_PROGRAMS += Logging_Strategy_Test
@@ -1024,8 +938,6 @@ Logging_Strategy_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.MEM_Stream_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += MEM_Stream_Test
MEM_Stream_Test_CPPFLAGS = \
@@ -1041,11 +953,7 @@ MEM_Stream_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.MM_Shared_Memory_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += MM_Shared_Memory_Test
MM_Shared_Memory_Test_CPPFLAGS = \
@@ -1060,8 +968,6 @@ MM_Shared_Memory_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.MT_Reactor_Timer_Test.am
noinst_PROGRAMS += MT_Reactor_Timer_Test
@@ -1139,8 +1045,6 @@ MT_SOCK_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Malloc_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Malloc_Test
Malloc_Test_CPPFLAGS = \
@@ -1156,8 +1060,6 @@ Malloc_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Manual_Event_Test.am
noinst_PROGRAMS += Manual_Event_Test
@@ -1174,8 +1076,6 @@ Manual_Event_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Map_Manager_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Map_Manager_Test
Map_Manager_Test_CPPFLAGS = \
@@ -1190,11 +1090,7 @@ Map_Manager_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Map_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Map_Test
Map_Test_CPPFLAGS = \
@@ -1210,8 +1106,6 @@ Map_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Max_Default_Port_Test.am
noinst_PROGRAMS += Max_Default_Port_Test
@@ -1244,8 +1138,6 @@ Max_Default_Port_Test_IPV6_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Mem_Map_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Mem_Map_Test
Mem_Map_Test_CPPFLAGS = \
@@ -1260,11 +1152,7 @@ Mem_Map_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Memcpy_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Memcpy_Test
Memcpy_Test_CPPFLAGS = \
@@ -1279,11 +1167,7 @@ Memcpy_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Message_Block_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Message_Block_Test
Message_Block_Test_CPPFLAGS = \
@@ -1298,8 +1182,6 @@ Message_Block_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Message_Queue_Notifications_Test.am
noinst_PROGRAMS += Message_Queue_Notifications_Test
@@ -1316,8 +1198,6 @@ Message_Queue_Notifications_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Message_Queue_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Message_Queue_Test
Message_Queue_Test_CPPFLAGS = \
@@ -1332,11 +1212,7 @@ Message_Queue_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Message_Queue_Test_Ex.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Message_Queue_Test_Ex
Message_Queue_Test_Ex_CPPFLAGS = \
@@ -1352,8 +1228,6 @@ Message_Queue_Test_Ex_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Multicast_Test.am
noinst_PROGRAMS += Multicast_Test
@@ -1385,8 +1259,6 @@ Multicast_Test_IPV6_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Multihomed_INET_Addr_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Multihomed_INET_Addr_Test
Multihomed_INET_Addr_Test_CPPFLAGS = \
@@ -1401,11 +1273,7 @@ Multihomed_INET_Addr_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Multihomed_INET_Addr_Test_IPV6.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Multihomed_INET_Addr_Test_IPV6
Multihomed_INET_Addr_Test_IPV6_CPPFLAGS = \
@@ -1420,12 +1288,9 @@ Multihomed_INET_Addr_Test_IPV6_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Naming_Test.am
if BUILD_ACE_OTHER
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Naming_Test
Naming_Test_CPPFLAGS = \
@@ -1440,7 +1305,6 @@ Naming_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_ACE_OTHER
## Makefile.Network_Adapters_Test.am
@@ -1491,8 +1355,6 @@ NonBlocking_Conn_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Notify_Performance_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Notify_Performance_Test
Notify_Performance_Test_CPPFLAGS = \
@@ -1507,8 +1369,6 @@ Notify_Performance_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.OS_Test.am
noinst_PROGRAMS += OS_Test
@@ -1600,8 +1460,6 @@ Priority_Buffer_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Priority_Reactor_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Priority_Reactor_Test
Priority_Reactor_Test_CPPFLAGS = \
@@ -1617,8 +1475,6 @@ Priority_Reactor_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Priority_Task_Test.am
noinst_PROGRAMS += Priority_Task_Test
@@ -1635,8 +1491,6 @@ Priority_Task_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Proactor_Scatter_Gather_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Proactor_Scatter_Gather_Test
Proactor_Scatter_Gather_Test_CPPFLAGS = \
@@ -1651,11 +1505,7 @@ Proactor_Scatter_Gather_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Proactor_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Proactor_Test
Proactor_Test_CPPFLAGS = \
@@ -1671,11 +1521,7 @@ Proactor_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Proactor_Test_IPV6.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Proactor_Test_IPV6
Proactor_Test_IPV6_CPPFLAGS = \
@@ -1690,11 +1536,7 @@ Proactor_Test_IPV6_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Proactor_Timer_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Proactor_Timer_Test
Proactor_Timer_Test_CPPFLAGS = \
@@ -1709,11 +1551,7 @@ Proactor_Timer_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Process_Manager_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Process_Manager_Test
Process_Manager_Test_CPPFLAGS = \
@@ -1728,8 +1566,6 @@ Process_Manager_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Process_Manual_Event_Test.am
noinst_PROGRAMS += Process_Manual_Event_Test
@@ -1746,8 +1582,6 @@ Process_Manual_Event_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Process_Mutex_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Process_Mutex_Test
Process_Mutex_Test_CPPFLAGS = \
@@ -1762,11 +1596,7 @@ Process_Mutex_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Process_Semaphore_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Process_Semaphore_Test
Process_Semaphore_Test_CPPFLAGS = \
@@ -1781,11 +1611,7 @@ Process_Semaphore_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Process_Strategy_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Process_Strategy_Test
Process_Strategy_Test_CPPFLAGS = \
@@ -1801,8 +1627,6 @@ Process_Strategy_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.QtReactor_Test.am
if BUILD_ACE_QTREACTOR
@@ -1822,7 +1646,8 @@ noinst_PROGRAMS += QtReactor_Test
QtReactor_Test_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
- $(ACE_QT_CPPFLAGS)
+ -I$(QTDIR)/include \
+ -DQT_THREAD_SUPPORT
QtReactor_Test_SOURCES = \
$(ACE_ROOT)/tests/Main.cpp \
@@ -1830,14 +1655,11 @@ QtReactor_Test_SOURCES = \
QtReactor_Test_moc.cpp \
QtReactor_Test.h
-QtReactor_Test_LDFLAGS = \
- $(ACE_QT_LDFLAGS)
-
QtReactor_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE_QtReactor.la \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_QT_LIBS)
+ -lqt-mt
endif BUILD_QT
endif BUILD_ACE_QTREACTOR
@@ -1904,8 +1726,6 @@ Reactor_Notification_Queue_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Reactor_Notify_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Reactor_Notify_Test
Reactor_Notify_Test_CPPFLAGS = \
@@ -1920,11 +1740,7 @@ Reactor_Notify_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Reactor_Performance_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Reactor_Performance_Test
Reactor_Performance_Test_CPPFLAGS = \
@@ -1940,8 +1756,6 @@ Reactor_Performance_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Reactor_Registration_Test.am
noinst_PROGRAMS += Reactor_Registration_Test
@@ -1958,8 +1772,6 @@ Reactor_Registration_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Reactor_Timer_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Reactor_Timer_Test
Reactor_Timer_Test_CPPFLAGS = \
@@ -1974,8 +1786,6 @@ Reactor_Timer_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Reactors_Test.am
noinst_PROGRAMS += Reactors_Test
@@ -2052,8 +1862,6 @@ Recursive_Mutex_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Refcounted_Auto_Ptr_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Refcounted_Auto_Ptr_Test
Refcounted_Auto_Ptr_Test_CPPFLAGS = \
@@ -2069,8 +1877,6 @@ Refcounted_Auto_Ptr_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Reference_Counted_Event_Handler_Test.am
noinst_PROGRAMS += Reference_Counted_Event_Handler_Test
@@ -2117,8 +1923,6 @@ SOCK_Connector_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.SOCK_Dgram_Bcast_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += SOCK_Dgram_Bcast_Test
SOCK_Dgram_Bcast_Test_CPPFLAGS = \
@@ -2133,8 +1937,6 @@ SOCK_Dgram_Bcast_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.SOCK_Dgram_Test.am
noinst_PROGRAMS += SOCK_Dgram_Test
@@ -2151,8 +1953,6 @@ SOCK_Dgram_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.SOCK_SEQPACK_SCTP_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += SOCK_SEQPACK_SCTP_Test
SOCK_SEQPACK_SCTP_Test_CPPFLAGS = \
@@ -2167,8 +1967,6 @@ SOCK_SEQPACK_SCTP_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.SOCK_Send_Recv_Test.am
noinst_PROGRAMS += SOCK_Send_Recv_Test
@@ -2230,8 +2028,6 @@ SOCK_Test_IPv6_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.SPIPE_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += SPIPE_Test
SPIPE_Test_CPPFLAGS = \
@@ -2246,8 +2042,6 @@ SPIPE_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.SString_Test.am
noinst_PROGRAMS += SString_Test
@@ -2264,8 +2058,6 @@ SString_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.SV_Shared_Memory_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += SV_Shared_Memory_Test
SV_Shared_Memory_Test_CPPFLAGS = \
@@ -2280,11 +2072,7 @@ SV_Shared_Memory_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Semaphore_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Semaphore_Test
Semaphore_Test_CPPFLAGS = \
@@ -2299,8 +2087,6 @@ Semaphore_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Service_Config_DLL.am
noinst_LTLIBRARIES += libService_Config_DLL.la
@@ -2378,8 +2164,6 @@ Simple_Message_Block_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Svc_Handler_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Svc_Handler_Test
Svc_Handler_Test_CPPFLAGS = \
@@ -2394,11 +2178,7 @@ Svc_Handler_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.TP_Reactor_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += TP_Reactor_Test
TP_Reactor_Test_CPPFLAGS = \
@@ -2414,8 +2194,6 @@ TP_Reactor_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.TSS_Static_Test.am
noinst_PROGRAMS += TSS_Static_Test
@@ -2638,8 +2416,6 @@ Timer_Queue_Reference_Counting_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Timer_Queue_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Timer_Queue_Test
Timer_Queue_Test_CPPFLAGS = \
@@ -2654,8 +2430,6 @@ Timer_Queue_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.TkReactor_Test.am
if BUILD_ACE_TKREACTOR
@@ -2665,23 +2439,16 @@ noinst_PROGRAMS += TkReactor_Test
TkReactor_Test_CPPFLAGS = \
-I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- $(ACE_TK_CPPFLAGS) \
- $(ACE_TCL_CPPFLAGS)
+ -I$(ACE_BUILDDIR)
TkReactor_Test_SOURCES = \
$(ACE_ROOT)/tests/Main.cpp \
TkReactor_Test.cpp
-TkReactor_Test_LDFLAGS = \
- $(ACE_TK_LDFLAGS) $(ACE_TCL_LDFLAGS)
-
TkReactor_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE_TkReactor.la \
libTest_Output.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- $(ACE_TK_LIBS) \
- $(ACE_TCL_LIBS)
+ $(ACE_BUILDDIR)/ace/libACE.la
endif BUILD_TK
endif BUILD_ACE_TKREACTOR
@@ -2721,8 +2488,6 @@ Tokens_Test_LDADD = \
endif BUILD_ACE_TOKEN
## Makefile.UPIPE_SAP_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += UPIPE_SAP_Test
UPIPE_SAP_Test_CPPFLAGS = \
@@ -2737,12 +2502,9 @@ UPIPE_SAP_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.UUIDTest.am
if BUILD_ACE_UUID
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += UUIDTest
UUIDTest_CPPFLAGS = \
@@ -2757,7 +2519,6 @@ UUIDTest_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
endif BUILD_ACE_UUID
## Makefile.Unbounded_Set_Test.am
@@ -2776,8 +2537,6 @@ Unbounded_Set_Test_LDADD = \
$(ACE_BUILDDIR)/ace/libACE.la
## Makefile.Upgradable_RW_Test.am
-
-if !BUILD_ACE_FOR_TAO
noinst_PROGRAMS += Upgradable_RW_Test
Upgradable_RW_Test_CPPFLAGS = \
@@ -2793,8 +2552,6 @@ Upgradable_RW_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-endif !BUILD_ACE_FOR_TAO
-
## Makefile.Vector_Test.am
noinst_PROGRAMS += Vector_Test
@@ -2825,76 +2582,6 @@ WFMO_Reactor_Test_LDADD = \
libTest_Output.la \
$(ACE_BUILDDIR)/ace/libACE.la
-## Makefile.XtAthenaReactor_Test.am
-
-if BUILD_ACE_XTREACTOR
-if BUILD_ATHENA
-if BUILD_X11
-if BUILD_XT
-
-noinst_PROGRAMS += XtAthenaReactor_Test
-
-XtAthenaReactor_Test_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- $(ACE_X11_CPPFLAGS) \
- $(ACE_XT_CPPFLAGS)
-
-XtAthenaReactor_Test_SOURCES = \
- $(ACE_ROOT)/tests/Main.cpp \
- XtAthenaReactor_Test.cpp
-
-XtAthenaReactor_Test_LDFLAGS = \
- $(ACE_X11_LDFLAGS) $(ACE_XT_LDFLAGS)
-
-XtAthenaReactor_Test_LDADD = \
- $(ACE_BUILDDIR)/ace/libACE_XtReactor.la \
- libTest_Output.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- -lXaw \
- $(ACE_XT_LIBS) \
- $(ACE_X11_LIBS)
-
-endif BUILD_XT
-endif BUILD_X11
-endif BUILD_ATHENA
-endif BUILD_ACE_XTREACTOR
-
-## Makefile.XtMotifReactor_Test.am
-
-if BUILD_ACE_XTREACTOR
-if BUILD_MOTIF
-if BUILD_X11
-if BUILD_XT
-
-noinst_PROGRAMS += XtMotifReactor_Test
-
-XtMotifReactor_Test_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- $(ACE_X11_CPPFLAGS) \
- $(ACE_XT_CPPFLAGS)
-
-XtMotifReactor_Test_SOURCES = \
- $(ACE_ROOT)/tests/Main.cpp \
- XtMotifReactor_Test.cpp
-
-XtMotifReactor_Test_LDFLAGS = \
- $(ACE_X11_LDFLAGS) $(ACE_XT_LDFLAGS)
-
-XtMotifReactor_Test_LDADD = \
- $(ACE_BUILDDIR)/ace/libACE_XtReactor.la \
- libTest_Output.la \
- $(ACE_BUILDDIR)/ace/libACE.la \
- -lXm \
- $(ACE_XT_LIBS) \
- $(ACE_X11_LIBS)
-
-endif BUILD_XT
-endif BUILD_X11
-endif BUILD_MOTIF
-endif BUILD_ACE_XTREACTOR
-
## Clean up template repositories, etc.
clean-local:
-rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
diff --git a/tests/Manual_Event_Test.cpp b/tests/Manual_Event_Test.cpp
index 1b28d846a71..4b70d2ef44e 100644
--- a/tests/Manual_Event_Test.cpp
+++ b/tests/Manual_Event_Test.cpp
@@ -74,7 +74,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("w:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("w:n:"));
int c;
diff --git a/tests/Map_Test.cpp b/tests/Map_Test.cpp
index 8fb46dd983a..9a8a634662f 100644
--- a/tests/Map_Test.cpp
+++ b/tests/Map_Test.cpp
@@ -28,7 +28,7 @@ ACE_RCSID(tests, Map_Test, "$Id$")
typedef size_t VALUE;
// Generic map type.
-typedef ACE_Map<KEY, VALUE> TEST_MAP;
+typedef ACE_Map<KEY, VALUE> MAP;
// Manager Manager adapter.
typedef ACE_Map_Manager_Adapter<KEY, VALUE, Key_Generator> MAP_MANAGER_ADAPTER;
@@ -40,7 +40,7 @@ typedef ACE_Hash_Map_Manager_Ex_Adapter<KEY, VALUE, Hash_Key, ACE_Equal_To<KEY>,
typedef ACE_Active_Map_Manager_Adapter<KEY, VALUE, Key_Adapter> ACTIVE_MAP_MANAGER_ADAPTER;
static void
-functionality_test (TEST_MAP &map,
+functionality_test (MAP &map,
size_t iterations)
{
size_t counter;
@@ -78,13 +78,13 @@ functionality_test (TEST_MAP &map,
// Forward iteration...
{
counter = 0;
- TEST_MAP::iterator end = map.end ();
+ MAP::iterator end = map.end ();
- for (TEST_MAP::iterator iter = map.begin ();
+ for (MAP::iterator iter = map.begin ();
iter != end;
++iter, ++counter)
{
- TEST_MAP::value_type entry = *iter;
+ MAP::value_type entry = *iter;
// Recover original key.
KEY original_key;
@@ -116,14 +116,14 @@ functionality_test (TEST_MAP &map,
// Reverse iteration...
{
counter = iterations;
- TEST_MAP::reverse_iterator end = map.rend ();
+ MAP::reverse_iterator end = map.rend ();
- for (TEST_MAP::reverse_iterator iter = map.rbegin ();
+ for (MAP::reverse_iterator iter = map.rbegin ();
iter != end;
++iter)
{
--counter;
- TEST_MAP::value_type entry = *iter;
+ MAP::value_type entry = *iter;
// Recover original key.
KEY original_key;
@@ -175,7 +175,7 @@ functionality_test (TEST_MAP &map,
}
static void
-insert_test (TEST_MAP &map,
+insert_test (MAP &map,
size_t iterations,
KEY *keys)
{
@@ -190,7 +190,7 @@ insert_test (TEST_MAP &map,
}
static void
-find_test (TEST_MAP &map,
+find_test (MAP &map,
size_t iterations,
KEY *keys)
{
@@ -204,7 +204,7 @@ find_test (TEST_MAP &map,
}
static void
-unbind_test (TEST_MAP &map,
+unbind_test (MAP &map,
size_t iterations,
KEY *keys)
{
@@ -219,8 +219,8 @@ unbind_test (TEST_MAP &map,
}
static void
-performance_test (void (*ptf) (TEST_MAP &, size_t, KEY *),
- TEST_MAP &map,
+performance_test (void (*ptf) (MAP &, size_t, KEY *),
+ MAP &map,
size_t iterations,
KEY *keys,
size_t table_size,
diff --git a/tests/Message_Block_Test.cpp b/tests/Message_Block_Test.cpp
index 31006024b2e..57ac4740792 100644
--- a/tests/Message_Block_Test.cpp
+++ b/tests/Message_Block_Test.cpp
@@ -101,11 +101,9 @@ Worker_Task::svc (void)
for (int count = 0; ; count++)
{
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
- int dequeue_results = this->msg_queue ()->dequeue_head (mb);
-
- ACE_ASSERT (dequeue_results != -1);
+ ACE_ASSERT (this->msg_queue ()->dequeue_head (mb) != -1);
size_t length = mb->length ();
@@ -115,16 +113,13 @@ Worker_Task::svc (void)
// contents (i.e., the Data_Block portion), it just makes a copy
// of the header and reference counts the data.
if (this->next () != 0)
- {
- int duplicate_result = this->put_next (mb->duplicate ());
- ACE_ASSERT (duplicate_result != -1);
- }
+ ACE_ASSERT (this->put_next (mb->duplicate ()) != -1);
// If there's no next() Task to send to, then we'll consume the
// message here.
else if (length > 0)
{
- int current_count = ACE_OS::atoi (ACE_TEXT_CHAR_TO_TCHAR (mb->rd_ptr ()));
+ int current_count = ACE_OS::atoi (ACE_TEXT_TO_TCHAR_IN (mb->rd_ptr ()));
int i;
ACE_ASSERT (count == current_count);
@@ -148,13 +143,10 @@ Worker_Task::svc (void)
// threads.
dup->msg_priority (ACE_DEFAULT_MESSAGE_BLOCK_PRIORITY + 1);
- int enqueue_prio_result =
- this->msg_queue ()->enqueue_prio
+ ACE_ASSERT (this->msg_queue ()->enqueue_prio
(dup,
// Don't block indefinitely if we flow control...
- (ACE_Time_Value *) &ACE_Time_Value::zero);
-
- ACE_ASSERT (enqueue_prio_result != -1);
+ (ACE_Time_Value *) &ACE_Time_Value::zero) != -1);
}
ACE_DEBUG ((LM_DEBUG,
@@ -164,9 +156,8 @@ Worker_Task::svc (void)
// Dequeue the same <current_count> duplicates.
for (i = current_count; i > 0; i--)
{
- int deqresult = this->msg_queue ()->dequeue_head (dup);
- ACE_ASSERT (deqresult != -1);
- ACE_ASSERT (count == ACE_OS::atoi (ACE_TEXT_CHAR_TO_TCHAR (dup->rd_ptr ())));
+ ACE_ASSERT (this->msg_queue ()->dequeue_head (dup) != -1);
+ ACE_ASSERT (count == ACE_OS::atoi (ACE_TEXT_TO_TCHAR_IN (dup->rd_ptr ())));
ACE_ASSERT (ACE_OS::strcmp (mb->rd_ptr (), dup->rd_ptr ()) == 0);
ACE_ASSERT (dup->msg_priority () == ACE_DEFAULT_MESSAGE_BLOCK_PRIORITY + 1);
dup->release ();
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp
index fc2b16b0d43..62863c99d1e 100644
--- a/tests/Message_Queue_Test.cpp
+++ b/tests/Message_Queue_Test.cpp
@@ -183,98 +183,6 @@ iterator_test (void)
#if defined (ACE_HAS_THREADS)
static int
-chained_block_test (void)
-{
-
- QUEUE q;
- const char * s = "123456789"; // Will be length 10 when copied to block
- const size_t slen = 10;
- const size_t num_blks = 10;
- ACE_Message_Block b[num_blks];
- size_t i;
- int status = 0;
-
- for (i = 0; i < num_blks; ++i)
- {
- b[i].init (slen);
- b[i].copy (s);
- }
-
- // Test enqueueing single and chained blocks and be sure they end up with
- // the proper enqueued block count and sizes. Then be sure they are dequeued
- // in the proper order.
- b[0].next (&b[1]);
- b[1].next (&b[2]);
- // b[3] and b[4] are unchained.
- b[5].next (&b[6]);
- b[6].next (&b[7]);
- b[7].next (&b[8]);
- // b[9] is unchained
- q.enqueue_tail (&b[3]);
- q.enqueue_tail (&b[4]);
- int num = q.enqueue_head (&b[0]);
- if (num != 5)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Chained enqueue expected 5; has %d\n"),
- num));
- status = -1;
- }
- num = q.enqueue_tail (&b[5]);
- if (num != 9)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Chained enqueue expected 9; has %d\n"),
- num));
- status = -1;
- }
- num = q.enqueue_tail (&b[9]);
- if (num != 10)
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("Chained enqueue expected 10; has %d\n"),
- num));
- status = -1;
- }
- size_t msgs, bytes;
- msgs = q.message_count ();
- bytes = q.message_bytes ();
- if (msgs != 10 || bytes != 100)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Chained enqueue totals: %d msgs, %d bytes; ")
- ACE_TEXT ("should be 10 msgs, 100 bytes\n"),
- (int)msgs, (int)bytes));
- status = -1;
- }
-
- // Now see if we can dequeue them, checking the order.
- ACE_Time_Value nowait (ACE_OS::gettimeofday ());
- ACE_Message_Block *bp;
- int qstat;
- for (i = 0; i < num_blks; ++i)
- {
- qstat = q.dequeue_head (bp, &nowait);
- if (qstat == -1)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Checking chained blocks, pass %d: %p\n"),
- (int)i, ACE_TEXT ("dequeue_head")));
- status = -1;
- }
- else if (bp != &b[i])
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Checking chained blocks, pass %d: ")
- ACE_TEXT ("block out of order\n"),
- (int)i));
- status = -1;
- }
- }
-
- if (status == 0)
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Chained block test OK\n")));
- return status;
-}
-
-static int
single_thread_performance_test (int queue_type = 0)
{
const char test_message[] =
@@ -654,9 +562,6 @@ run_main (int argc, ACE_TCHAR *argv[])
status = timeout_test ();
if (status == 0)
- status = chained_block_test ();
-
- if (status == 0)
status = single_thread_performance_test ();
# if defined (VXWORKS) || (defined (ACE_WIN32) && (ACE_HAS_WINNT4 != 0))
diff --git a/tests/Multicast_Test.cpp b/tests/Multicast_Test.cpp
index 3d1fe8ea3a8..f1dd8660e71 100644
--- a/tests/Multicast_Test.cpp
+++ b/tests/Multicast_Test.cpp
@@ -156,64 +156,64 @@ MCT_Config::open (int argc, ACE_TCHAR *argv[])
int retval = 0;
int help = 0;
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT (":?"), 1, 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT (":?"), 1, 1);
if (getopt.long_option (ACE_TEXT ("GroupStart"),
'g',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add GroupStart option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("Groups"),
'n',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Groups option.\n")), 1);
if (getopt.long_option (ACE_TEXT ("Debug"),
'd',
- ACE_Get_Opt::NO_ARG) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::NO_ARG) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Debug option.\n")), 1);
if (getopt.long_option (ACE_TEXT ("Role"),
'r',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Role option.\n")), 1);
if (getopt.long_option (ACE_TEXT ("SDM_options"),
'm',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Multicast_Options option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("Iterations"),
'i',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add iterations option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("TTL"),
't',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add TTL option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("Wait"),
'w',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add wait option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("help"),
'h',
- ACE_Get_Opt::NO_ARG) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::NO_ARG) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add help option.\n")),
1);
diff --git a/tests/Multicast_Test_IPV6.cpp b/tests/Multicast_Test_IPV6.cpp
index a39e553ecd0..baa7548569e 100644
--- a/tests/Multicast_Test_IPV6.cpp
+++ b/tests/Multicast_Test_IPV6.cpp
@@ -160,64 +160,64 @@ MCT_Config::open (int argc, ACE_TCHAR *argv[])
int retval = 0;
int help = 0;
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT (":?"), 1, 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT (":?"), 1, 1);
if (getopt.long_option (ACE_TEXT ("GroupStart"),
'g',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add GroupStart option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("Groups"),
'n',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Groups option.\n")), 1);
if (getopt.long_option (ACE_TEXT ("Debug"),
'd',
- ACE_Get_Opt::NO_ARG) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::NO_ARG) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Debug option.\n")), 1);
if (getopt.long_option (ACE_TEXT ("Role"),
'r',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Role option.\n")), 1);
if (getopt.long_option (ACE_TEXT ("SDM_options"),
'm',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add Multicast_Options option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("Iterations"),
'i',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add iterations option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("TTL"),
't',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add TTL option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("Wait"),
'w',
- ACE_Get_Opt::ARG_REQUIRED) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::ARG_REQUIRED) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add wait option.\n")),
1);
if (getopt.long_option (ACE_TEXT ("help"),
'h',
- ACE_Get_Opt::NO_ARG) != 0)
+ ACE_Get_Arg_Opt<ACE_TCHAR> ::NO_ARG) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT (" Unable to add help option.\n")),
1);
diff --git a/tests/Multihomed_INET_Addr_Test_IPV6.cpp b/tests/Multihomed_INET_Addr_Test_IPV6.cpp
index 1607dd81fb2..7427a757e0d 100644
--- a/tests/Multihomed_INET_Addr_Test_IPV6.cpp
+++ b/tests/Multihomed_INET_Addr_Test_IPV6.cpp
@@ -96,7 +96,7 @@ int run_main (int argc, ACE_TCHAR *argv[])
}
// Check the primary address
- if (0 != ACE_OS::strcmp (ACE_TEXT_CHAR_TO_TCHAR(addr.get_host_addr()), primary_ipv6))
+ if (0 != ACE_OS::strcmp (ACE_TEXT_TO_TCHAR_IN(addr.get_host_addr()), primary_ipv6))
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("%s failed get_host_addr() check\n")
diff --git a/tests/Naming_Test.cpp b/tests/Naming_Test.cpp
index c436cd9cbbf..8c40a7c16c7 100644
--- a/tests/Naming_Test.cpp
+++ b/tests/Naming_Test.cpp
@@ -65,8 +65,7 @@ test_bind (ACE_Naming_Context &ns_context)
ACE_NS_WString w_value (value);
ACE_OS::sprintf (type, "%s%d", "type", array [i]);
- int bind_result = ns_context.bind (w_name, w_value, type);
- ACE_ASSERT (bind_result != -1);
+ ACE_ASSERT (ns_context.bind (w_name, w_value, type) != -1);
}
}
@@ -80,10 +79,7 @@ test_find_failure (ACE_Naming_Context &ns_context)
// Do the finds.
for (size_t i = 0; i < ACE_NS_MAX_ENTRIES; i++)
- {
- int resolve = ns_context.resolve (w_name, w_value, l_type);
- ACE_ASSERT (resolve == -1);
- }
+ ACE_ASSERT (ns_context.resolve (w_name, w_value, l_type) == -1);
}
static void
@@ -102,8 +98,7 @@ test_rebind (ACE_Naming_Context &ns_context)
ACE_NS_WString w_value (value);
ACE_OS::sprintf (type, "%s%d", "type", -array[i]);
- int rebind = ns_context.rebind (w_name, w_value, type);
- ACE_ASSERT (rebind != -1);
+ ACE_ASSERT (ns_context.rebind (w_name, w_value, type) != -1);
}
}
@@ -118,8 +113,7 @@ test_unbind (ACE_Naming_Context &ns_context)
{
ACE_OS::sprintf (name, "%s%d", "name", array[i]);
ACE_NS_WString w_name (name);
- int unbind = ns_context.unbind (w_name);
- ACE_ASSERT (unbind != -1);
+ ACE_ASSERT (ns_context.unbind (w_name) != -1);
}
}
@@ -153,8 +147,7 @@ test_find (ACE_Naming_Context &ns_context, int sign, int result)
char *type_out = 0;
ACE_NS_WString val (temp_val);
- int resolve_result = ns_context.resolve (w_name, w_value, type_out);
- ACE_ASSERT (resolve_result == result);
+ ACE_ASSERT (ns_context.resolve (w_name, w_value, type_out) == result);
char *l_value = w_value.char_rep ();
diff --git a/tests/Network_Adapters_Test.cpp b/tests/Network_Adapters_Test.cpp
index 882ac59118c..c8714a13b3e 100644
--- a/tests/Network_Adapters_Test.cpp
+++ b/tests/Network_Adapters_Test.cpp
@@ -939,7 +939,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
return 0;
}
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("b:p:t:w:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("b:p:t:w:"));
int c, counter = 0;
ACE_INET_Addr b_temp_addr;
ACE_TCHAR *token = 0;
diff --git a/tests/NonBlocking_Conn_Test.cpp b/tests/NonBlocking_Conn_Test.cpp
index 42ed8adc1e1..39d0d99ae46 100644
--- a/tests/NonBlocking_Conn_Test.cpp
+++ b/tests/NonBlocking_Conn_Test.cpp
@@ -168,7 +168,7 @@ test (ACE_Reactor_Impl *impl)
else
ACE_DEBUG ((LM_INFO,
ACE_TEXT ("%p\n"),
- ACE_TEXT_CHAR_TO_TCHAR (hosts[i])));
+ ACE_TEXT_TO_TCHAR_IN (hosts[i])));
}
ACE_Reactor reactor (impl,
@@ -237,7 +237,7 @@ test (ACE_Reactor_Impl *impl)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("a:b:c:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("a:b:c:"));
int cc;
while ((cc = get_opt ()) != -1)
diff --git a/tests/Notify_Performance_Test.cpp b/tests/Notify_Performance_Test.cpp
index 9c4bfe4ae39..101738b8b51 100644
--- a/tests/Notify_Performance_Test.cpp
+++ b/tests/Notify_Performance_Test.cpp
@@ -166,7 +166,7 @@ run_main (int argc, ACE_TCHAR *argv[])
{
ACE_START_TEST (ACE_TEXT ("Notify_Performance_Test"));
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("pswdc:l:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("pswdc:l:"));
for (int c; (c = getopt ()) != -1; )
switch (c)
diff --git a/tests/OS_Test.cpp b/tests/OS_Test.cpp
index fa7b058e4e4..bd661d52f0a 100644
--- a/tests/OS_Test.cpp
+++ b/tests/OS_Test.cpp
@@ -13,7 +13,6 @@
//
// ============================================================================
-#include "test_config.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_strings.h"
#include "ace/OS_NS_stdlib.h"
@@ -23,6 +22,7 @@
#include "ace/OS_NS_sys_stat.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_errno.h"
+#include "test_config.h"
ACE_RCSID(tests, OS_Test, "$Id$")
@@ -284,7 +284,6 @@ string_emulation_test (void)
"-4566733") == 0);
}
-#if defined (ACE_HAS_WCHAR)
{
// ========================================================================
// Test itoa (wchar_t version)
@@ -519,7 +518,6 @@ string_emulation_test (void)
}
-#endif /* ACE_HAS_WCHAR */
return 0;
}
@@ -661,7 +659,6 @@ string_strsncpy_test (void)
}
-#if defined (ACE_HAS_WCHAR)
{
// Test strsncpy (wchar_t version)
ACE_DEBUG ((LM_DEBUG,
@@ -728,7 +725,6 @@ string_strsncpy_test (void)
// size should be 9 (+ '\0' char)
ACE_ASSERT(ACE_OS::strlen(strsncpy2) == 9);
}
-#endif /* ACE_HAS_WCHAR */
return 0;
}
@@ -738,7 +734,6 @@ string_strsncpy_test (void)
int
string_convert_test (void)
{
-#if defined (ACE_HAS_WCHAR)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Testing narrow/wide string conversion\n")));
@@ -749,28 +744,28 @@ string_convert_test (void)
const wchar_t *test2_w = ACE_TEXT_WIDE ("\xe9\xe8\xe0\xf9\xea");
wchar_t str_w[10];
char str_n[10];
- ACE_OS::strcpy (str_w, ACE_Ascii_To_Wide (test1_n).wchar_rep ());
+ ACE_OS::strcpy (str_w, ACE_TEXT_TO_WCHAR_IN (test1_n));
if (0 != ACE_OS::strcmp (test1_w, str_w))
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("Simple narrow->wide failed: ")
ACE_TEXT ("Expected \"%W\"; Got \"%W\"\n"), test1_w, str_w));
result = 1;
}
- ACE_OS::strcpy (str_n, ACE_Wide_To_Ascii (test1_w).char_rep ());
+ ACE_OS::strcpy (str_n, ACE_TEXT_TO_CHAR_IN (test1_w));
if (0 != ACE_OS::strcmp (test1_n, str_n))
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("Simple wide->narrow failed: ")
ACE_TEXT ("Expected \"%C\"; Got \"%C\"\n"), test1_n, str_n));
result = 1;
}
- ACE_OS::strcpy (str_w, ACE_Ascii_To_Wide (test2_n).wchar_rep ());
+ ACE_OS::strcpy (str_w, ACE_TEXT_TO_WCHAR_IN (test2_n));
if (0 != ACE_OS::strcmp (test2_w, str_w))
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("Complex narrow->wide failed: ")
ACE_TEXT ("Expected \"%W\"; Got \"%W\"\n"), test2_w, str_w));
result = 1;
}
- ACE_OS::strcpy (str_n, ACE_Wide_To_Ascii (test2_w).char_rep ());
+ ACE_OS::strcpy (str_n, ACE_TEXT_TO_CHAR_IN (test2_w));
if (0 != ACE_OS::strcmp (test2_n, str_n))
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("Complex wide->narrow failed: ")
@@ -778,9 +773,6 @@ string_convert_test (void)
result = 1;
}
return result;
-#else
- return 0;
-#endif /* ACE_HAS_WCHAR */
}
// Test the methods for getting cpu info
diff --git a/tests/Object_Manager_Test.cpp b/tests/Object_Manager_Test.cpp
index 79cd94c8ccd..d89cc47e558 100644
--- a/tests/Object_Manager_Test.cpp
+++ b/tests/Object_Manager_Test.cpp
@@ -18,7 +18,6 @@
#include "test_config.h"
#include "ace/Object_Manager.h"
-#include "ace/OS_Memory.h"
#include "ace/ACE.h"
ACE_RCSID(tests, Object_Manager_Test, "$Id$")
diff --git a/tests/Pipe_Test.cpp b/tests/Pipe_Test.cpp
index a00ca243da0..47dda893c3a 100644
--- a/tests/Pipe_Test.cpp
+++ b/tests/Pipe_Test.cpp
@@ -27,13 +27,8 @@
ACE_RCSID(tests, Pipe_Test, "$Id$")
-// Indicates whether we should close the pipe or not.
static int close_pipe = 1;
-
-// Indicates whether we're running as the child or the parent.
static int child_process = 0;
-
-// Number of iterations to run the test.
static int iterations = ACE_MAX_ITERATIONS;
// Explain usage and exit.
@@ -47,11 +42,10 @@ print_usage_and_die (void)
}
// Parse the command-line arguments and set options.
-
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("dci:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("dci:"));
int c;
@@ -73,19 +67,14 @@ parse_args (int argc, ACE_TCHAR *argv[])
}
}
-// Consolidate the ACE_Pipe initializations.
-
static void
open (ACE_Pipe &pipe,
const char *name)
{
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("opening %C\n"), name));
- int result = pipe.open ();
-
- ACE_ASSERT (result != -1);
- result = pipe.read_handle () != ACE_INVALID_HANDLE
- && pipe.write_handle () != ACE_INVALID_HANDLE;
- ACE_ASSERT (result == 1);
+ ACE_ASSERT (pipe.open () != -1);
+ ACE_ASSERT (pipe.read_handle () != ACE_INVALID_HANDLE
+ && pipe.write_handle () != ACE_INVALID_HANDLE);
if (close_pipe)
pipe.close ();
diff --git a/tests/Priority_Reactor_Test.cpp b/tests/Priority_Reactor_Test.cpp
index 0f1253c211d..6429de556da 100644
--- a/tests/Priority_Reactor_Test.cpp
+++ b/tests/Priority_Reactor_Test.cpp
@@ -238,7 +238,7 @@ run_main (int argc, ACE_TCHAR *argv[])
{
ACE_START_TEST (ACE_TEXT ("Priority_Reactor_Test"));
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("dc:l:m:t:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("dc:l:m:t:"));
for (int c; (c = getopt ()) != -1; )
switch (c)
diff --git a/tests/Proactor_Scatter_Gather_Test.cpp b/tests/Proactor_Scatter_Gather_Test.cpp
index 03271b59f8e..d5fce3e9bf5 100644
--- a/tests/Proactor_Scatter_Gather_Test.cpp
+++ b/tests/Proactor_Scatter_Gather_Test.cpp
@@ -1323,7 +1323,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
if (argc == 1) // no arguments , so one button test
return 0;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("f:csh:p:u"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("f:csh:p:u"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/tests/Proactor_Test.cpp b/tests/Proactor_Test.cpp
index 879e60b6d2c..44bc283d160 100644
--- a/tests/Proactor_Test.cpp
+++ b/tests/Proactor_Test.cpp
@@ -1104,8 +1104,8 @@ Connector::start (const ACE_INET_Addr& addr, int num)
if (this->open (1, 0, 1) != 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("(%t) %p\n"),
- ACE_LIB_TEXT ("Connector::open failed")));
+ ACE_TEXT ("(%t) %p\n"),
+ ACE_TEXT ("Connector::open failed")));
return rc;
}
@@ -1362,7 +1362,7 @@ Client::initiate_read_stream (void)
static const size_t complete_message_length =
ACE_OS::strlen (complete_message);
-#if (defined (ACE_WIN32) && !defined (ACE_HAS_WINCE) && (ACE_HAS_WINNT4) && (ACE_HAS_WINNT4 != 0))
+#if (defined (ACE_WIN32) && !defined (ACE_HAS_WINCE))
ACE_Message_Block *mb1 = 0,
*mb2 = 0,
*mb3 = 0,
@@ -1799,7 +1799,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
if (argc == 1) // no arguments , so one button test
return 0;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("x:t:o:n:p:d:h:c:v:ub"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("x:t:o:n:p:d:h:c:v:ub"));
int c;
while ((c = get_opt ()) != EOF)
@@ -1923,18 +1923,18 @@ run_main (int argc, ACE_TCHAR *argv[])
template class ACE_Asynch_Acceptor<Server>;
template class ACE_Asynch_Connector<Client>;
template class ACE_Atomic_Op<ACE_Thread_Mutex, int>;
-template class ACE_Atomic_Op<ACE_Thread_Mutex, size_t>;
+template class ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>;
template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>;
-template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, size_t>;
+template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, unsigned long>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Asynch_Acceptor<Server>
#pragma instantiate ACE_Asynch_Connector<Client>
#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int>
-#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, size_t
+#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>
#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>
-#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, size_t>
+#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, unsigned long>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/tests/Proactor_Test_IPV6.cpp b/tests/Proactor_Test_IPV6.cpp
index fcfa22d7fb0..e24403b6e9b 100644
--- a/tests/Proactor_Test_IPV6.cpp
+++ b/tests/Proactor_Test_IPV6.cpp
@@ -1104,8 +1104,8 @@ Connector::start (const ACE_INET_Addr& addr, int num)
if (this->open (1, 0, 1) != 0)
{
ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("(%t) %p\n"),
- ACE_LIB_TEXT ("Connector::open failed")));
+ ACE_TEXT ("(%t) %p\n"),
+ ACE_TEXT ("Connector::open failed")));
return rc;
}
@@ -1843,7 +1843,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
if (argc == 1) // no arguments , so one button test
return 0;
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("x:t:o:n:p:d:h:c:v:ub"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("x:t:o:n:p:d:h:c:v:ub"));
int c;
while ((c = get_opt ()) != EOF)
@@ -1970,18 +1970,18 @@ run_main (int argc, ACE_TCHAR *argv[])
template class ACE_Asynch_Acceptor<Server>;
template class ACE_Asynch_Connector<Client>;
template class ACE_Atomic_Op<ACE_Thread_Mutex, int>;
-template class ACE_Atomic_Op<ACE_Thread_Mutex, size_t>;
+template class ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>;
template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>;
-template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, size_t>;
+template class ACE_Atomic_Op_Ex<ACE_Thread_Mutex, unsigned long>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Asynch_Acceptor<Server>
#pragma instantiate ACE_Asynch_Connector<Client>
#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, int>
-#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, size_t>
+#pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, unsigned long>
#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, int>
-#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, size_t>
+#pragma instantiate ACE_Atomic_Op_Ex<ACE_Thread_Mutex, unsigned long>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/tests/Proactor_Timer_Test.cpp b/tests/Proactor_Timer_Test.cpp
index da61f142143..9b2e282fcab 100644
--- a/tests/Proactor_Timer_Test.cpp
+++ b/tests/Proactor_Timer_Test.cpp
@@ -112,7 +112,7 @@ test_registering_all_handlers (void)
{
ACE_Trace t (ACE_TEXT ("test_registering_all_handler"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt[ACE_MAX_TIMERS];
long t_id[ACE_MAX_TIMERS];
size_t which[ACE_MAX_TIMERS];
@@ -138,7 +138,7 @@ test_registering_one_handler (void)
{
ACE_Trace t (ACE_TEXT ("test_registering_one_handler"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt[ACE_MAX_TIMERS];
long t_id[ACE_MAX_TIMERS];
size_t which[ACE_MAX_TIMERS];
@@ -166,7 +166,7 @@ test_canceling_odd_timers (void)
{
ACE_Trace t (ACE_TEXT ("test_canceling_odd_timers"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt[ACE_MAX_TIMERS];
long t_id[ACE_MAX_TIMERS];
size_t which[ACE_MAX_TIMERS];
diff --git a/tests/Process_Manager_Test.cpp b/tests/Process_Manager_Test.cpp
index 27150e6f848..81880b08584 100644
--- a/tests/Process_Manager_Test.cpp
+++ b/tests/Process_Manager_Test.cpp
@@ -105,7 +105,7 @@ const ACE_TCHAR *cmdline_format = ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE
int
run_main (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt args (argc, argv, ACE_TEXT ("d"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> args (argc, argv, ACE_TEXT ("d"));
for (int arg = args (); arg != EOF; arg = args ())
switch (arg)
diff --git a/tests/Process_Manual_Event_Test.cpp b/tests/Process_Manual_Event_Test.cpp
index b697743273b..b03c1457364 100644
--- a/tests/Process_Manual_Event_Test.cpp
+++ b/tests/Process_Manual_Event_Test.cpp
@@ -53,7 +53,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:c"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:c"));
int c;
@@ -92,7 +92,7 @@ acquire_release (void)
event_ping.signal ();
if (event_pong.wait ())
- ACE_ERROR ((LM_ERROR,
+ ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("(%P) %p\n"),
ACE_TEXT ("Failed acquiring pong")));
else
@@ -109,14 +109,12 @@ acquire_release (void)
wait.sec (wait.sec () + 3); // timeout in 3 secs
if (event_pong.wait (&wait))
- {
- if (errno != ETIME)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%P) %p, but expected ETIME\n"),
- ACE_TEXT ("event_pong.wait()")));
- }
+ if (errno != ETIME)
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("(%P) %p, but expected ETIME\n"),
+ ACE_TEXT ("event_pong.wait()")));
else
- ACE_ERROR ((LM_ERROR,
+ ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("(%P) Acquired pong without release()\n")));
event_ping.signal (); // release waiting parent before timeout
@@ -126,7 +124,7 @@ acquire_release (void)
for (i = 0; i < iterations; ++i)
{
if (event_ping.wait ())
- ACE_ERROR ((LM_ERROR,
+ ACE_DEBUG ((LM_ERROR,
ACE_TEXT ("(%P) %p\n"),
ACE_TEXT ("Failed acquiring ping")));
else
@@ -151,8 +149,8 @@ acquire_release (void)
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P) %p but should be ETIME\n"),
ACE_TEXT ("Acquire pong")));
-
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) Acquire pong timed out\n")));
+ else
+ ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P) Acquire pong timed out\n")));
}
}
}
@@ -187,18 +185,13 @@ run_main (int argc, ACE_TCHAR *argv[])
else
{
ACE_START_TEST (ACE_TEXT ("Process_Manual_Event_Test"));
-#if defined (ACE_WIN32)
- const ACE_TCHAR *cmdline_format = ACE_TEXT("\"%s\" -c -i %d");
-#elif !defined (ACE_USES_WCHAR)
-const ACE_TCHAR *cmdline_format = ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE_TEXT("%s -c -i %d");
-#else
-const ACE_TCHAR *cmdline_format = ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE_TEXT("%ls -c -i %d");
-#endif
-
ACE_Process_Options options;
- options.command_line (cmdline_format,
- argv[0],
+ options.command_line (ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR
+ ACE_TEXT ("Process_Manual_Event_Test")
+ ACE_PLATFORM_EXE_SUFFIX
+ ACE_TEXT (" -c -i %d"),
iterations);
+
// Spawn a child process that will contend for the
// lock.
ACE_Process child;
@@ -215,8 +208,7 @@ const ACE_TCHAR *cmdline_format = ACE_TEXT (".") ACE_DIRECTORY_SEPARATOR_STR ACE
ACE_exitcode child_status;
// Wait for the child processes we created to exit.
- int wait_result = child.wait (&child_status);
- ACE_ASSERT (wait_result != -1);
+ ACE_ASSERT (child.wait (&child_status) != -1);
if (child_status == 0)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Child %d finished ok\n"),
diff --git a/tests/Process_Mutex_Test.cpp b/tests/Process_Mutex_Test.cpp
index a7d75c4f75d..be450c39eb0 100644
--- a/tests/Process_Mutex_Test.cpp
+++ b/tests/Process_Mutex_Test.cpp
@@ -51,7 +51,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT("dcn:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT("dcn:"));
int c;
@@ -89,8 +89,7 @@ acquire_release (void)
ACE_OS::strncat (mutex_check, ACE_TEXT ("_checker"), MAXPATHLEN);
// Grab the lock
- int mutex_acq = mutex.acquire ();
- ACE_ASSERT (mutex_acq == 0);
+ ACE_ASSERT (mutex.acquire () == 0);
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P) Mutex acquired %s\n"),
@@ -121,8 +120,7 @@ acquire_release (void)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P) Releasing the mutex %s\n"),
mutex_name));
- int mutex_release = mutex.release ();
- ACE_ASSERT (mutex_release == 0);
+ ACE_ASSERT (mutex.release () == 0);
}
}
@@ -191,8 +189,7 @@ run_main (int argc, ACE_TCHAR *argv[])
{
ACE_exitcode child_status;
// Wait for the child processes we created to exit.
- int wait_result = children[i].wait (&child_status);
- ACE_ASSERT (wait_result != -1);
+ ACE_ASSERT (children[i].wait (&child_status) != -1);
if (child_status == 0)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Child %d finished ok\n"),
diff --git a/tests/Process_Semaphore_Test.cpp b/tests/Process_Semaphore_Test.cpp
index af08108ad75..d1086485656 100644
--- a/tests/Process_Semaphore_Test.cpp
+++ b/tests/Process_Semaphore_Test.cpp
@@ -55,7 +55,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:c"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:c"));
int c;
@@ -80,11 +80,11 @@ acquire_release (void)
#if defined (ACE_WIN32) || \
defined (ACE_USES_FIFO_SEM) || \
(defined (ACE_HAS_POSIX_SEM) && !defined (ACE_LACKS_NAMED_POSIX_SEM))
- ACE_Semaphore sema_ping (0, USYNC_PROCESS, ACE_TEXT_CHAR_TO_TCHAR (sema_ping_name));
- ACE_Semaphore sema_pong (0, USYNC_PROCESS, ACE_TEXT_CHAR_TO_TCHAR (sema_pong_name));
+ ACE_Semaphore sema_ping (0, USYNC_PROCESS, ACE_TEXT_TO_TCHAR_IN (sema_ping_name));
+ ACE_Semaphore sema_pong (0, USYNC_PROCESS, ACE_TEXT_TO_TCHAR_IN (sema_pong_name));
#else
- ACE_Process_Semaphore sema_ping (0, ACE_TEXT_CHAR_TO_TCHAR (sema_ping_name));
- ACE_Process_Semaphore sema_pong (0, ACE_TEXT_CHAR_TO_TCHAR (sema_pong_name));
+ ACE_Process_Semaphore sema_ping (0, ACE_TEXT_TO_TCHAR_IN (sema_ping_name));
+ ACE_Process_Semaphore sema_pong (0, ACE_TEXT_TO_TCHAR_IN (sema_pong_name));
#endif
// Make sure the constructor succeeded
diff --git a/tests/Process_Strategy_Test.cpp b/tests/Process_Strategy_Test.cpp
index c95bac4ac3b..3f61e0981e2 100644
--- a/tests/Process_Strategy_Test.cpp
+++ b/tests/Process_Strategy_Test.cpp
@@ -199,7 +199,7 @@ Options::~Options (void)
int
Options::parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:c:f:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:c:f:"));
// - 26 is for the "process_strategy_test_temp" that is appended
if (ACE::get_temp_dir (this->filename_, MAXPATHLEN - 26) == -1)
@@ -446,7 +446,7 @@ Counting_Service::handle_input (ACE_HANDLE)
bytes,
this->peer ().get_handle (),
bytes,
- ACE_TEXT_CHAR_TO_TCHAR (buf)));
+ ACE_TEXT_TO_TCHAR_IN (buf)));
// Read and return the current value in the file.
if (ACE_OS::strncmp (buf,
"read",
@@ -586,7 +586,7 @@ client (void *arg)
command = "read";
command_len = ACE_OS::strlen (command);
- ssize_t bytes_read = 0;
+ int bytes_read = 0;
if (connector.connect (stream, server_addr) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
@@ -611,7 +611,7 @@ client (void *arg)
// the call to ACE_OS::strrchr ().
buf [bytes_read] = '\0';
- size_t count = ACE_OS::atoi (ACE_OS::strrchr (ACE_TEXT_CHAR_TO_TCHAR (buf),
+ size_t count = ACE_OS::atoi (ACE_OS::strrchr (ACE_TEXT_TO_TCHAR_IN (buf),
ACE_TEXT (' ')));
ACE_DEBUG ((LM_DEBUG,
diff --git a/tests/Process_Strategy_Test.h b/tests/Process_Strategy_Test.h
index 9278e37404a..de6586d5688 100644
--- a/tests/Process_Strategy_Test.h
+++ b/tests/Process_Strategy_Test.h
@@ -30,6 +30,9 @@
#include "ace/Svc_Handler.h"
#include "ace/Strategies_T.h"
+// Forward decl.
+class ACE_Thread_Manager;
+
class Counting_Service : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH>
// = TITLE
// Reads and increments the count in a shared file.
diff --git a/tests/RMCast/.cvsignore b/tests/RMCast/.cvsignore
new file mode 100644
index 00000000000..b9a09c88cd2
--- /dev/null
+++ b/tests/RMCast/.cvsignore
@@ -0,0 +1,12 @@
+RMCast_Fragment_Test
+RMCast_Fragment_Test
+RMCast_Membership_Test
+RMCast_Membership_Test
+RMCast_Reassembly_Test
+RMCast_Reassembly_Test
+RMCast_Reordering_Test
+RMCast_Reordering_Test
+RMCast_Retransmission_Test
+RMCast_Retransmission_Test
+RMCast_UDP_Best_Effort_Test
+RMCast_UDP_Best_Effort_Test
diff --git a/tests/Reactor_Dispatch_Order_Test.cpp b/tests/Reactor_Dispatch_Order_Test.cpp
index d6263f091d3..e40ed4ba685 100644
--- a/tests/Reactor_Dispatch_Order_Test.cpp
+++ b/tests/Reactor_Dispatch_Order_Test.cpp
@@ -65,25 +65,16 @@ Handler::Handler (ACE_Reactor &reactor)
dispatch_order_ (1)
{
// Create the pipe.
- bool ok = true;
- if (0 != this->pipe_.open ())
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("pipe")));
- ok = false;
- }
- else
- {
- // Register for all events.
- if (0 != this->reactor ()->register_handler
- (this->pipe_.read_handle (),
- this,
- ACE_Event_Handler::ALL_EVENTS_MASK))
- {
- ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("register")));
- ok = false;
- }
- }
- ACE_ASSERT (ok);
+ int result
+ = this->pipe_.open ();
+ ACE_ASSERT (result == 0);
+
+ // Register for all events.
+ result =
+ this->reactor ()->register_handler (this->pipe_.read_handle (),
+ this,
+ ACE_Event_Handler::ALL_EVENTS_MASK);
+ ACE_ASSERT (result == 0);
}
Handler::~Handler (void)
@@ -95,13 +86,10 @@ int
Handler::handle_timeout (const ACE_Time_Value &,
const void *)
{
- int me = this->dispatch_order_++;
- if (me != 1)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("handle_timeout should be #1; it's %d\n"),
- me));
- else
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Handler::handle_timeout\n")));
+ ACE_ASSERT (this->dispatch_order_++ == 1);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "Handler::handle_timeout\n"));
return 0;
}
@@ -109,13 +97,10 @@ Handler::handle_timeout (const ACE_Time_Value &,
int
Handler::handle_output (ACE_HANDLE)
{
- int me = this->dispatch_order_++;
- if (me != 2)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("handle_output should be #2; it's %d\n"),
- me));
- else
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Handler::handle_output\n")));
+ ACE_ASSERT (this->dispatch_order_++ == 2);
+
+ ACE_DEBUG ((LM_DEBUG,
+ "Handler::handle_output\n"));
#if defined (__OpenBSD__) || defined (ACE_VXWORKS) || defined (__Lynx__)
// All that we need written has been written, so don't
@@ -131,19 +116,20 @@ Handler::handle_output (ACE_HANDLE)
int
Handler::handle_input (ACE_HANDLE fd)
{
- int me = this->dispatch_order_++;
- if (me != 3)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("handle_timeout should be #3; it's %d\n"),
- me));
+ ACE_ASSERT (this->dispatch_order_++ == 3);
char buffer[BUFSIZ];
- ssize_t result = ACE::recv (fd, buffer, sizeof buffer);
+ ssize_t result =
+ ACE::recv (fd,
+ buffer,
+ sizeof buffer);
ACE_ASSERT (result == ssize_t (ACE_OS::strlen (message)));
buffer[result] = '\0';
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Handler::handle_input: %C\n"), buffer));
+ ACE_DEBUG ((LM_DEBUG,
+ "Handler::handle_input: %s\n",
+ ACE_TEXT_TO_TCHAR_IN (buffer)));
ACE_ASSERT (ACE_OS::strcmp (buffer,
message) == 0);
@@ -159,7 +145,7 @@ test_reactor_dispatch_order (ACE_Reactor &reactor)
Handler handler (reactor);
// This should trigger a call to <handle_input>.
- ssize_t result =
+ int result =
ACE::send_n (handler.pipe_.write_handle (),
message,
ACE_OS::strlen (message));
@@ -188,7 +174,7 @@ run_main (int, ACE_TCHAR *[])
ACE_Select_Reactor select_reactor_impl;
ACE_Reactor select_reactor (&select_reactor_impl);
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing ACE_Select_Reactor\n")));
+
test_reactor_dispatch_order (select_reactor);
// WinCE can't do the necessary Winsock 2 things for WFMO_Reactor.
@@ -196,7 +182,7 @@ run_main (int, ACE_TCHAR *[])
ACE_WFMO_Reactor wfmo_reactor_impl;
ACE_Reactor wfmo_reactor (&wfmo_reactor_impl);
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Testing ACE_WFMO_Reactor\n")));
+
test_reactor_dispatch_order (wfmo_reactor);
#endif /* ACE_WIN32 && !ACE_HAS_WINCE */
diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp
index 20bc15f21e0..866952f45b6 100644
--- a/tests/Reactor_Performance_Test.cpp
+++ b/tests/Reactor_Performance_Test.cpp
@@ -186,13 +186,13 @@ client (void *arg)
int i;
// Automagic memory cleanup.
- Write_Handler **temp_writers = 0;
+ Write_Handler **temp_writers;
ACE_NEW_RETURN (temp_writers,
Write_Handler *[opt_nconnections],
0);
ACE_Auto_Basic_Array_Ptr <Write_Handler *> writers (temp_writers);
- ACE_TCHAR *temp_failed = 0;
+ ACE_TCHAR *temp_failed;
ACE_NEW_RETURN (temp_failed,
ACE_TCHAR[opt_nconnections],
0);
@@ -315,7 +315,7 @@ run_main (int argc, ACE_TCHAR *argv[])
{
ACE_START_TEST (ACE_TEXT ("Reactor_Performance_Test"));
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("dswc:l:"), 1);
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("dswc:l:"), 1);
for (int c; (c = getopt ()) != -1; )
switch (c)
{
diff --git a/tests/Reactor_Timer_Test.cpp b/tests/Reactor_Timer_Test.cpp
index 2225fd2fd31..e62871e37bf 100644
--- a/tests/Reactor_Timer_Test.cpp
+++ b/tests/Reactor_Timer_Test.cpp
@@ -104,9 +104,7 @@ Time_Handler::handle_timeout (const ACE_Time_Value &tv,
{
int result = ACE_Reactor::instance ()->reset_timer_interval (this->timer_id (),
ACE_Time_Value (count + 1));
- if (result == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Error resetting timer interval\n")));
+ ACE_ASSERT (result != -1);
}
count += (1 + odd);
return 0;
@@ -129,7 +127,7 @@ test_registering_all_handlers (void)
{
ACE_Trace t (ACE_TEXT ("test_registering_all_handler"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt[ACE_MAX_TIMERS];
long t_id[ACE_MAX_TIMERS];
@@ -152,7 +150,7 @@ test_registering_one_handler (void)
{
ACE_Trace t (ACE_TEXT ("test_registering_one_handler"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt[ACE_MAX_TIMERS];
long t_id[ACE_MAX_TIMERS];
@@ -177,7 +175,7 @@ test_canceling_odd_timers (void)
{
ACE_Trace t (ACE_TEXT ("test_canceling_odd_timers"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt[ACE_MAX_TIMERS];
long t_id[ACE_MAX_TIMERS];
@@ -200,9 +198,7 @@ test_canceling_odd_timers (void)
{
int result =
ACE_Reactor::instance ()->cancel_timer (rt[j].timer_id ());
- if (result == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Error cancelling timer\n")));
+ ACE_ASSERT (result != -1);
}
while (!done)
@@ -214,7 +210,7 @@ test_resetting_timer_intervals (void)
{
ACE_Trace t (ACE_TEXT ("test_resetting_timer_intervals"),
__LINE__,
- ACE_TEXT_CHAR_TO_TCHAR (__FILE__));
+ ACE_TEXT_TO_TCHAR_IN (__FILE__));
Time_Handler rt;
long t_id;
diff --git a/tests/Reader_Writer_Test.cpp b/tests/Reader_Writer_Test.cpp
index 80fc770fd98..7e1dcfdebb4 100644
--- a/tests/Reader_Writer_Test.cpp
+++ b/tests/Reader_Writer_Test.cpp
@@ -76,7 +76,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("r:w:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("r:w:n:"));
int c;
diff --git a/tests/Refcounted_Auto_Ptr_Test.cpp b/tests/Refcounted_Auto_Ptr_Test.cpp
index 379d6a6901b..89841f0b6d5 100644
--- a/tests/Refcounted_Auto_Ptr_Test.cpp
+++ b/tests/Refcounted_Auto_Ptr_Test.cpp
@@ -37,7 +37,7 @@ Printer::Printer (const char *message)
: message_ (message)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Creating Printer object\n")));
+ ACE_TEXT ("(%t) Creating Printer object\n")));
++Printer::instance_count_;
}
@@ -45,15 +45,15 @@ Printer::~Printer (void)
{
--Printer::instance_count_;
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Deleting Printer object\n")));
+ ACE_TEXT ("(%t) Deleting Printer object\n")));
}
void
Printer::print (void)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(this->message_)));
+ ACE_TEXT ("(%t) %s\n"),
+ ACE_TEXT_TO_TCHAR_IN(this->message_)));
}
#if defined (ACE_HAS_THREADS)
@@ -129,18 +129,18 @@ Method_Request_print::Method_Request_print (Scheduler *new_scheduler,
printer_ (printer)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Method_Request_print created\n")));
+ ACE_TEXT ("(%t) Method_Request_print created\n")));
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Printer reference count: %d\n"),
+ ACE_TEXT ("(%t) Printer reference count: %d\n"),
printer_.count ()));
}
Method_Request_print::~Method_Request_print (void)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Method_Request_print will be deleted.\n")));
+ ACE_TEXT ("(%t) Method_Request_print will be deleted.\n")));
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Printer reference count: %d\n"),
+ ACE_TEXT ("(%t) Printer reference count: %d\n"),
printer_.count ()));
}
@@ -199,7 +199,7 @@ Scheduler::Scheduler (Scheduler *new_scheduler)
: activation_queue_ (msg_queue ()), scheduler_ (new_scheduler)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Scheduler created\n")));
+ ACE_TEXT ("(%t) Scheduler created\n")));
}
// Destructor
@@ -207,7 +207,7 @@ Scheduler::Scheduler (Scheduler *new_scheduler)
Scheduler::~Scheduler (void)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Scheduler will be destroyed\n")));
+ ACE_TEXT ("(%t) Scheduler will be destroyed\n")));
}
// open
@@ -216,7 +216,7 @@ int
Scheduler::open (void *)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Scheduler open\n")));
+ ACE_TEXT ("(%t) Scheduler open\n")));
// Become an Active Object.
int num_threads = 3;
return this->activate (THR_BOUND | THR_JOINABLE, num_threads);
@@ -227,7 +227,7 @@ Scheduler::open (void *)
int
Scheduler::close (u_long)
{
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("(%t) rundown\n")));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) rundown\n")));
return 0;
}
@@ -244,13 +244,13 @@ Scheduler::svc (void)
if (0 == mo_p)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) activation queue shut down\n")));
+ ACE_TEXT ("(%t) activation queue shut down\n")));
break;
}
auto_ptr<ACE_Method_Request> mo (mo_p);
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) calling method request\n")));
+ ACE_TEXT ("(%t) calling method request\n")));
// Call it.
if(mo->call () == -1)
break;
@@ -312,7 +312,7 @@ template class ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex>;
int
run_main (int, ACE_TCHAR *[])
{
- ACE_START_TEST (ACE_LIB_TEXT ("Refcounted_Auto_Ptr_Test"));
+ ACE_START_TEST (ACE_TEXT ("Refcounted_Auto_Ptr_Test"));
// =========================================================================
@@ -320,7 +320,7 @@ run_main (int, ACE_TCHAR *[])
// thread of control, hence we use the ACE_Null_Mutex
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) performing synchronous test...\n")));
+ ACE_TEXT ("(%t) performing synchronous test...\n")));
Printer *printer1;
ACE_NEW_RETURN (printer1,
@@ -336,7 +336,7 @@ run_main (int, ACE_TCHAR *[])
ACE_Refcounted_Auto_Ptr<Printer, ACE_Null_Mutex> r6 = r1;
}
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Printer instance count is %d, expecting 0\n"),
+ ACE_TEXT ("(%t) Printer instance count is %d, expecting 0\n"),
Printer::instance_count_));
ACE_ASSERT (Printer::instance_count_ == 0);
@@ -347,7 +347,7 @@ run_main (int, ACE_TCHAR *[])
// threads of control.
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) performing asynchronous test...\n")));
+ ACE_TEXT ("(%t) performing asynchronous test...\n")));
Scheduler *scheduler_ptr;
@@ -379,7 +379,7 @@ run_main (int, ACE_TCHAR *[])
scheduler->wait ();
ACE_DEBUG ((LM_DEBUG,
- ACE_LIB_TEXT ("(%t) Printer instance count is %d, expecting 0\n"),
+ ACE_TEXT ("(%t) Printer instance count is %d, expecting 0\n"),
Printer::instance_count_));
ACE_ASSERT (Printer::instance_count_ == 0);
diff --git a/tests/Reference_Counted_Event_Handler_Test.cpp b/tests/Reference_Counted_Event_Handler_Test.cpp
index 790f1c4df64..381a9c8176c 100644
--- a/tests/Reference_Counted_Event_Handler_Test.cpp
+++ b/tests/Reference_Counted_Event_Handler_Test.cpp
@@ -238,12 +238,11 @@ reference_counted_event_handler_test_1 (ACE_Reactor *reactor)
if (test_timers)
{
- ACE_Time_Value const one_second (1);
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- one_second,
- one_second);
+ 1,
+ 1);
ACE_ASSERT (timer_id != -1);
result =
@@ -255,15 +254,14 @@ reference_counted_event_handler_test_1 (ACE_Reactor *reactor)
timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- one_second,
- one_second);
+ 1,
+ 1);
ACE_ASSERT (timer_id != -1);
- ACE_Time_Value const two_second (2);
timer_id =
reactor->schedule_timer (handler,
two_second_timeout,
- two_second);
+ 2);
ACE_ASSERT (result != -1);
events += 3;
@@ -281,7 +279,6 @@ reference_counted_event_handler_test_2 (ACE_Reactor *reactor)
{
int events = 0;
int result = 0;
- ACE_Time_Value const one_second (1);
if (test_find)
{
@@ -361,8 +358,8 @@ reference_counted_event_handler_test_2 (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- one_second,
- one_second);
+ 1,
+ 1);
ACE_ASSERT (timer_id != -1);
result =
@@ -382,15 +379,14 @@ reference_counted_event_handler_test_2 (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- one_second,
- one_second);
+ 1,
+ 1);
ACE_ASSERT (timer_id != -1);
- ACE_Time_Value const two_second (2);
timer_id =
reactor->schedule_timer (handler,
two_second_timeout,
- two_second);
+ 2);
ACE_ASSERT (result != -1);
events += 3;
@@ -564,7 +560,6 @@ simple_event_handler (ACE_Reactor *reactor)
{
int events = 0;
int result = 0;
- ACE_Time_Value const one_second (1);
if (test_find)
{
@@ -646,8 +641,8 @@ simple_event_handler (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- one_second,
- one_second);
+ 1,
+ 1);
ACE_ASSERT (timer_id != -1);
result =
@@ -666,15 +661,14 @@ simple_event_handler (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- one_second,
- one_second);
+ 1,
+ 1);
ACE_ASSERT (timer_id != -1);
- ACE_Time_Value const two_second (2);
timer_id =
reactor->schedule_timer (handler,
two_second_timeout,
- two_second);
+ 2);
ACE_ASSERT (result != -1);
events += 3;
@@ -890,7 +884,7 @@ test<REACTOR_IMPLEMENTATION>::test (void)
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("a:b:c:f:g:h:i:k:l:m:z:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("a:b:c:f:g:h:i:k:l:m:z:"));
int cc;
while ((cc = get_opt ()) != -1)
diff --git a/tests/SOCK_Connector_Test.cpp b/tests/SOCK_Connector_Test.cpp
index 0eee2d171d3..229bac706fd 100644
--- a/tests/SOCK_Connector_Test.cpp
+++ b/tests/SOCK_Connector_Test.cpp
@@ -93,7 +93,7 @@ find_another_host (ACE_TCHAR other_host[])
ACE_OS::strcpy (other_host, ACE_LOCALHOST);
else
// Use me if can't find another
- ACE_OS::strcpy (other_host, ACE_TEXT_CHAR_TO_TCHAR (h->h_name));
+ ACE_OS::strcpy (other_host, ACE_TEXT_TO_TCHAR_IN (h->h_name));
// @@ We really need to add wrappers for these hostent methods.
@@ -114,7 +114,7 @@ find_another_host (ACE_TCHAR other_host[])
while ((h = gethostent ()) != 0)
{
if (ACE_OS::strcmp (h->h_name,
- ACE_TEXT_ALWAYS_CHAR (ACE_DEFAULT_SERVER_HOST)) == 0)
+ ACE_TEXT_TO_CHAR_IN (ACE_DEFAULT_SERVER_HOST)) == 0)
continue;
// AIX just _has_ to be different
if (ACE_OS::strcmp (h->h_name, "loopback") == 0)
@@ -122,11 +122,11 @@ find_another_host (ACE_TCHAR other_host[])
// If not me.
if (ACE_OS::strcmp
- (h->h_name, ACE_TEXT_ALWAYS_CHAR (other_host)) != 0
+ (h->h_name, ACE_TEXT_TO_CHAR_IN (other_host)) != 0
&& ACE_OS::strcmp (h->h_name, un.nodename) != 0)
{
ACE_OS::strcpy (candidate[candidate_count].host_name,
- ACE_TEXT_CHAR_TO_TCHAR (h->h_name));
+ ACE_TEXT_TO_TCHAR_IN (h->h_name));
if (++candidate_count >= MAX_CANDIDATES)
break;
}
diff --git a/tests/SOCK_Dgram_Bcast_Test.cpp b/tests/SOCK_Dgram_Bcast_Test.cpp
index fc8149bce3c..7300801c6f2 100644
--- a/tests/SOCK_Dgram_Bcast_Test.cpp
+++ b/tests/SOCK_Dgram_Bcast_Test.cpp
@@ -216,7 +216,7 @@ int run_main (int argc, ACE_TCHAR *argv[])
int opt = 0;
int auto_test_recv = 0;
int result = 0;
- ACE_Get_Opt opts (argc, argv, ACE_TEXT ("p:t:n:sra"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> opts (argc, argv, ACE_TEXT ("p:t:n:sra"));
while ((opt = opts ()) != -1)
switch (opt)
{
diff --git a/tests/SOCK_Send_Recv_Test.cpp b/tests/SOCK_Send_Recv_Test.cpp
index f971c98e65b..3366be73b58 100644
--- a/tests/SOCK_Send_Recv_Test.cpp
+++ b/tests/SOCK_Send_Recv_Test.cpp
@@ -81,7 +81,7 @@ client (void *arg)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) connected to %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(server_addr.get_host_name ())));
+ ACE_TEXT_TO_TCHAR_IN(server_addr.get_host_name ())));
//******************* TEST 1 ******************************
//
@@ -208,7 +208,7 @@ server (void *arg)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) client %s connected from %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR(cli_addr.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN(cli_addr.get_host_name ()),
cli_addr.get_port_number ()));
//******************* TEST 1 ******************************
diff --git a/tests/SOCK_Send_Recv_Test_IPV6.cpp b/tests/SOCK_Send_Recv_Test_IPV6.cpp
index b630ffb00ec..5626671fb27 100644
--- a/tests/SOCK_Send_Recv_Test_IPV6.cpp
+++ b/tests/SOCK_Send_Recv_Test_IPV6.cpp
@@ -76,7 +76,7 @@ client (void *arg)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) connected to %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(server_addr.get_host_name ())));
+ ACE_TEXT_TO_TCHAR_IN(server_addr.get_host_name ())));
//******************* TEST 1 ******************************
//
@@ -203,7 +203,7 @@ server (void *arg)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%P|%t) client %s connected from %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR(cli_addr.get_host_name ()),
+ ACE_TEXT_TO_TCHAR_IN(cli_addr.get_host_name ()),
cli_addr.get_port_number ()));
//******************* TEST 1 ******************************
diff --git a/tests/SOCK_Test.cpp b/tests/SOCK_Test.cpp
index 6472711a857..2cd92351063 100644
--- a/tests/SOCK_Test.cpp
+++ b/tests/SOCK_Test.cpp
@@ -63,7 +63,7 @@ client (void *arg)
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("connection failed")), 0);
else
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) connected to %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(server_addr.get_host_name ())));
+ ACE_TEXT_TO_TCHAR_IN(server_addr.get_host_name ())));
}
if (cli_stream.disable (ACE_NONBLOCK) == -1)
@@ -141,7 +141,7 @@ server (void *arg)
while ((result = peer_acceptor->accept (new_stream, &cli_addr)) != -1)
{
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) client %s connected from %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR(cli_addr.get_host_name ()), cli_addr.get_port_number ()));
+ ACE_TEXT_TO_TCHAR_IN(cli_addr.get_host_name ()), cli_addr.get_port_number ()));
// Enable non-blocking I/O.
if (new_stream.enable (ACE_NONBLOCK) == -1)
diff --git a/tests/SOCK_Test_IPv6.cpp b/tests/SOCK_Test_IPv6.cpp
index 08950687fcf..31082bb9e97 100644
--- a/tests/SOCK_Test_IPv6.cpp
+++ b/tests/SOCK_Test_IPv6.cpp
@@ -64,7 +64,7 @@ client (void *arg)
ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), ACE_TEXT ("connection failed")), 0);
else
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) connected to %s\n"),
- ACE_TEXT_CHAR_TO_TCHAR(server_addr.get_host_name ())));
+ ACE_TEXT_TO_TCHAR_IN(server_addr.get_host_name ())));
}
if (cli_stream.disable (ACE_NONBLOCK) == -1)
@@ -142,7 +142,7 @@ server (void *arg)
while ((result = peer_acceptor->accept (new_stream, &cli_addr)) != -1)
{
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) client %s connected from %d\n"),
- ACE_TEXT_CHAR_TO_TCHAR(cli_addr.get_host_name ()), cli_addr.get_port_number ()));
+ ACE_TEXT_TO_TCHAR_IN(cli_addr.get_host_name ()), cli_addr.get_port_number ()));
// Enable non-blocking I/O.
if (new_stream.enable (ACE_NONBLOCK) == -1)
diff --git a/tests/SSL/Makefile.am b/tests/SSL/Makefile.am
index 86283019e5e..4a67fb3cbe3 100644
--- a/tests/SSL/Makefile.am
+++ b/tests/SSL/Makefile.am
@@ -20,7 +20,8 @@ noinst_PROGRAMS += Thread_Pool_Reactor_SSL_Test
Thread_Pool_Reactor_SSL_Test_CPPFLAGS = \
-I$(ACE_ROOT) \
-I$(ACE_BUILDDIR) \
- @ACE_TLS_CPPFLAGS@ \
+ -I$(SSL_ROOT)/include \
+ -I/usr/kerberos/include \
-DACE_HAS_SSL=1
Thread_Pool_Reactor_SSL_Test_SOURCES = \
@@ -29,22 +30,7 @@ Thread_Pool_Reactor_SSL_Test_SOURCES = \
Thread_Pool_Reactor_SSL_Test.h
Thread_Pool_Reactor_SSL_Test_LDADD = \
- $(top_builddir)/ace/SSL/libACE_SSL.la $(top_builddir)/tests/libTest_Output.la $(top_builddir)/ace/libACE.la @ACE_TLS_LDFLAGS@ @ACE_TLS_LIBS@
-
-noinst_PROGRAMS += SSL_Asynch_Stream_Test
-
-SSL_Asynch_Stream_Test_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- @ACE_TLS_CPPFLAGS@ \
- -DACE_HAS_SSL=1
-
-SSL_Asynch_Stream_Test_SOURCES = \
- $(ACE_ROOT)/tests/Main.cpp \
- SSL_Asynch_Stream_Test.cpp
-
-SSL_Asynch_Stream_Test_LDADD = \
- $(top_builddir)/ace/SSL/libACE_SSL.la $(top_builddir)/tests/libTest_Output.la $(top_builddir)/ace/libACE.la @ACE_TLS_LDFLAGS@ @ACE_TLS_LIBS@
+ $(top_builddir)/ace/SSL/libACE_SSL.la $(top_builddir)/tests/libTest_Output.la $(top_builddir)/ace/libACE.la -lssl -lcrypto
endif BUILD_SSL
diff --git a/tests/SSL/SSL_Asynch_Stream_Test.cpp b/tests/SSL/SSL_Asynch_Stream_Test.cpp
deleted file mode 100644
index 386dcc7917c..00000000000
--- a/tests/SSL/SSL_Asynch_Stream_Test.cpp
+++ /dev/null
@@ -1,478 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// tests/SSL
-//
-// = FILENAME
-// SSL_Asynch_Stream_Test.cpp
-//
-// = DESCRIPTION
-// This program is a functionality test of ACE_SSL_Asynch_Stream.
-// It demonstrates one proper use case of ACE_SSL_Asynch_Stream in the
-// Proactor framework and validates its basic functionality.
-//
-// Usage: SSL_Asynch_Stream_Test [-r <hostname:port#>]
-// [-t <num threads>] [-d <delay>]
-// [-i <client conn attempt#>] [-n <client request# per conn>]
-//
-// Default value:
-// <hostname:port#>: ACE_DEFAULT_SERVER_HOST:ACE_DEFAULT_PORT
-// <num threads>: ACE_MAX_THREADS
-// <client conn attempt#>: ACE_MAX_ITERATIONS
-// <client req# per conn>: 20
-// <delay>: 0 usec
-//
-// = AUTHOR
-// Steve Huston <shuston@riverace.com>
-//
-// ============================================================================
-
-#include "tests/test_config.h"
-#include "ace/Default_Constants.h"
-#include "ace/OS_NS_string.h"
-#include "ace/Event_Handler.h"
-#include "ace/Get_Opt.h"
-#include "ace/Proactor.h"
-#include "ace/Reactor.h"
-#include "ace/Thread_Manager.h"
-#include "ace/INET_Addr.h"
-#include "ace/SSL/SSL_Asynch_Stream.h"
-#include "ace/SSL/SSL_SOCK_Connector.h"
-#include "ace/SSL/SSL_SOCK_Acceptor.h"
-#include "ace/SSL/SSL_SOCK_Stream.h"
-
-ACE_RCSID(tests, SSL_Asynch_Stream_Test, "$Id$")
-
-#if defined (ACE_HAS_THREADS)
-
-class Client_Handler : public ACE_Handler
-{
-public:
- Client_Handler ()
- : msgs_sent_ (0),
- stream_ (ACE_SSL_Asynch_Stream::ST_CLIENT),
- block_ (1024) {}
- ~Client_Handler ();
-
- int open (ACE_HANDLE);
-
-private:
- virtual void handle_write_stream (const ACE_SSL_Asynch_Write_Stream_Result &result);
-
-private:
- size_t msgs_sent_;
- ACE_SSL_Asynch_Stream stream_;
- ACE_Message_Block block_;
-};
-
-class Server_Handler : public ACE_Handler
-{
-public:
- Server_Handler ()
- : msgs_rcvd_ (0),
- stream_ (ACE_SSL_Asynch_Stream::ST_SERVER),
- block_ (1024) {}
- ~Server_Handler ();
-
- int open (ACE_HANDLE);
-
-private:
- virtual void handle_read_stream (const ACE_SSL_Asynch_Read_Stream_Result &result);
-
-private:
- size_t msgs_rcvd_;
- ACE_SSL_Asynch_Stream stream_;
- ACE_Message_Block block_;
-};
-
-class Server_Acceptor : public ACE_Event_Handler
-{
-public:
- int open (const ACE_INET_Addr &listen_addr);
-
- // Called when a new connection is ready to accept.
- virtual int handle_input (ACE_HANDLE fd = ACE_INVALID_HANDLE);
-
- virtual int handle_close (ACE_HANDLE handle,
- ACE_Reactor_Mask close_mask);
-
-private:
- ACE_SSL_SOCK_Acceptor acceptor_;
-};
-
-// Accepting end point. This is actually "localhost:10010", but some
-// platform couldn't resolve the name so we use the IP address
-// directly here.
-static const ACE_TCHAR *rendezvous = \
- ACE_DEFAULT_SERVER_HOST ACE_TEXT (":") ACE_DEFAULT_SERVER_PORT_STR;
-
-// Total number of proactor threads.
-static size_t num_threads = ACE_MAX_THREADS;
-
-#if defined (CHORUS) // Add platforms that can't handle too many
- // connection simultaneously here.
-#define ACE_LOAD_FACTOR /2
-#else
-#define ACE_LOAD_FACTOR
-#endif
-
-// Number of client connections to attempt.
-static size_t cli_conn_no = ACE_MAX_ITERATIONS ACE_LOAD_FACTOR;
-
-// Number of requests each client connection sends.
-static size_t cli_req_no = ACE_MAX_THREADS ACE_LOAD_FACTOR;
-
-// Delay before a thread sending the next request (in msec.)
-static int req_delay = 0;
-
-// This is the string sent from client to server.
-static const char *test_string = "SSL_Asynch_Stream_Test!";
-
-static void
-parse_args (int argc, ACE_TCHAR *argv[])
-{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("r:t:d:i:n:"));
-
- int c;
-
- while ((c = getopt ()) != -1)
- {
- switch (c)
- {
- case 'r': // hostname:port
- rendezvous = getopt.opt_arg ();
- break;
- case 't':
- num_threads = ACE_OS::atoi (getopt.opt_arg ());
- break;
- case 'd':
- req_delay = ACE_OS::atoi (getopt.opt_arg ());
- break;
- case 'i':
- cli_conn_no = ACE_OS::atoi (getopt.opt_arg ());
- break;
- case 'n':
- cli_req_no = ACE_OS::atoi (getopt.opt_arg ());
- break;
- default:
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Usage: %s [-r <hostname:port#>]")
- ACE_TEXT ("\t[-t <nr threads>] [-d <delay>]")
- ACE_TEXT ("\t[-i <client conn attempt#>]")
- ACE_TEXT ("\t[-n <client request# per conn>]\n"),
- argv[0]));
- break;
- }
- }
-}
-
-Client_Handler::~Client_Handler ()
-{
- if (this->stream_.handle () != ACE_INVALID_HANDLE)
- {
- if (this->msgs_sent_ != cli_req_no)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) Client handle %d sent %d messages; ")
- ACE_TEXT ("expected %d\n"),
- this->stream_.handle (),
- this->msgs_sent_,
- cli_req_no));
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%t) Client handle %d sent %d messages; ")
- ACE_TEXT ("closing connection\n"),
- this->stream_.handle (),
- cli_req_no));
- }
- this->stream_.close ();
-}
-
-int
-Client_Handler::open (ACE_HANDLE handle)
-{
- if (this->stream_.open (*this, handle) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) Client_Handler: %p\n"),
- ACE_TEXT ("open")),
- -1);
- this->block_.copy (test_string);
- if (this->stream_.write (this->block_, this->block_.length ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) Client_Handler: %p\n"),
- ACE_TEXT ("initiate write")),
- -1);
- return 0;
-}
-
-void
-Client_Handler::handle_write_stream
- (const ACE_SSL_Asynch_Write_Stream_Result &result)
-{
- if (!result.success ())
- {
- errno = result.error ();
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) Client handle %d: %p\n"),
- this->stream_.handle (),
- ACE_TEXT ("write")));
- delete this;
- return;
- }
- ACE_Message_Block &b = result.message_block ();
- bool send_again = true;
- if (b.length () == 0)
- {
- // All block's data sent; rewind the read pointer and send it again
- // until we've sent the configured number of times.
- ++this->msgs_sent_;
- if (this->msgs_sent_ == cli_req_no)
- send_again = false; // All done
- else
- b.rd_ptr (b.base ());
- }
-
- if (send_again)
- {
- if (this->stream_.write (this->block_, this->block_.length ()) == -1)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) Client_Handler: %p\n"),
- ACE_TEXT ("initiate write")));
- delete this;
- }
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%t) Client handle %d done sending\n"),
- this->stream_.handle ()));
- delete this;
- }
- return;
-}
-
-Server_Handler::~Server_Handler ()
-{
- if (this->stream_.handle () != ACE_INVALID_HANDLE)
- {
- if (this->msgs_rcvd_ != cli_req_no)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) Server handle %d received %d messages; ")
- ACE_TEXT ("expected %d\n"),
- this->stream_.handle (),
- this->msgs_rcvd_,
- cli_req_no));
- else
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%t) Server handle %d received %d messages; ")
- ACE_TEXT ("closing connection\n"),
- this->stream_.handle (),
- cli_req_no));
- }
- this->stream_.close ();
-}
-
-int
-Server_Handler::open (ACE_HANDLE handle)
-{
- if (this->stream_.open (*this, handle) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) Server_Handler: %p\n"),
- ACE_TEXT ("open")),
- -1);
- if (this->stream_.read (this->block_, this->block_.space () - 1) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) Server_Handler: %p\n"),
- ACE_TEXT ("read")),
- -1);
- return 0;
-}
-
-void
-Server_Handler::handle_read_stream
- (const ACE_SSL_Asynch_Read_Stream_Result &result)
-{
- if (!result.success ())
- {
- errno = result.error ();
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) Server handle %d: %p\n"),
- this->stream_.handle (),
- ACE_TEXT ("read")));
- delete this;
- return;
- }
- if (result.bytes_transferred () == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%t) Server handle %d closed by peer\n"),
- this->stream_.handle ()));
- delete this;
- return;
- }
-
- // Scan through the received data for the expected string. There may be
- // multiples and/or partials. Count up how many arrive before the connection
- // is closed.
- // The read operation left one byte space at the end so we can insert a
- // nul terminator to ease scanning.
- ACE_Message_Block &b = result.message_block ();
- *(b.wr_ptr ()) = '\0';
- size_t test_string_len = ACE_OS::strlen (test_string);
- while (b.length () >= test_string_len)
- {
- if (0 != ACE_OS::strncmp (b.rd_ptr (), test_string, test_string_len))
- ACE_ERROR_BREAK ((LM_ERROR,
- ACE_TEXT ("(%t) Read string: %C; expected: %C\n"),
- b.rd_ptr (),
- test_string));
- b.rd_ptr (test_string_len);
- }
- b.crunch ();
- if (this->stream_.read (b, b.space () - 1) == -1)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) Server_Handler: %p\n"),
- ACE_TEXT ("read")));
- delete this;
- }
- return;
-}
-
-
-int
-Server_Acceptor::open (const ACE_INET_Addr &listen_addr)
-{
- if (this->acceptor_.open (listen_addr) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("listen")),
- -1);
- return 0;
-}
-
-int
-Server_Acceptor::handle_input (ACE_HANDLE)
-{
- ACE_SSL_SOCK_Stream new_stream;
- if (this->acceptor_.accept (new_stream) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) %p\n"),
- ACE_TEXT ("accept")),
- -1);
- Server_Handler *new_handler = 0;
- ACE_NEW_RETURN (new_handler, Server_Handler, -1);
- if (new_handler->open (new_stream.get_handle ()) != 0)
- delete new_handler;
-
- return 0;
-}
-
-int
-Server_Acceptor::handle_close (ACE_HANDLE, ACE_Reactor_Mask)
-{
- this->acceptor_.close ();
- return 0;
-}
-
-
-static ACE_THR_FUNC_RETURN
-proactor_loop (void *)
-{
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Start handling events.\n")));
-
- int result =
- ACE_Proactor::instance ()->proactor_run_event_loop ();
- if (result == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) %p\n"),
- ACE_TEXT ("Error handling events")),
- 0);
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Done handling events.\n")));
-
- return 0;
-}
-
-static ACE_THR_FUNC_RETURN
-start_clients (void *arg)
-{
- // Client thread function.
- ACE_INET_Addr addr (rendezvous);
- ACE_SSL_SOCK_Stream stream;
- ACE_SSL_SOCK_Connector connect;
- ACE_Time_Value delay (0, req_delay);
- size_t len = * reinterpret_cast<ACE_TCHAR *> (arg);
-
- for (size_t i = 0 ; i < cli_conn_no; i++)
- {
- if (connect.connect (stream, addr) < 0)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("(%t) %p\n"),
- ACE_TEXT ("connect")));
- continue;
- }
-
- Client_Handler *new_handler = 0;
- ACE_NEW_RETURN (new_handler, Client_Handler, -1);
- if (new_handler->open (stream.get_handle ()) != 0)
- delete new_handler;
- stream.set_handle (ACE_INVALID_HANDLE);
- }
-
- return 0;
-}
-
-int
-run_main (int argc, ACE_TCHAR *argv[])
-{
- ACE_START_TEST (ACE_TEXT ("SSL_Asynch_Stream_Test"));
-
- ACE_SSL_Context *context = ACE_SSL_Context::instance ();
- // Note - the next two strings are naked on purpose... the arguments to
- // the ACE_SSL_Context methods are const char *, not ACE_TCHAR *.
- context->certificate ("dummy.pem", SSL_FILETYPE_PEM);
- context->private_key ("key.pem", SSL_FILETYPE_PEM);
-
- parse_args (argc, argv);
-
- Server_Acceptor acceptor;
- ACE_INET_Addr accept_addr (rendezvous);
-
- if (acceptor.open (accept_addr) == -1)
- return 1;
-
- ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%t) Listening at %s\n"), rendezvous));
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("(%t) Spawning %d proactor threads\n"),
- num_threads));
- ACE_Thread_Manager::instance ()->spawn_n (num_threads, proactor_loop);
- ACE_Thread_Manager::instance ()->spawn (start_clients);
-
- ACE_Time_Value loop_limit (20);
- ACE_Reactor::instance ()->run_reactor_event_loop (loop_limit);
- ACE_Thread_Manager::instance ()->wait ();
-
- // Check for num connections up/down.
-
- ACE_END_TEST;
- return 0;
-}
-
-#else
-int
-ACE_TMAIN (int, ACE_TCHAR *[])
-{
- ACE_START_TEST (ACE_TEXT ("SSL_Asynch_Stream_Test"));
-
- ACE_ERROR ((LM_INFO,
- ACE_TEXT ("This test requires threads which are not supported ")
- ACE_TEXT ("on this platform\n"));
-
- ACE_END_TEST;
- return 0;
-}
-#endif /* ACE_HAS_THREADS */
diff --git a/tests/SSL/Thread_Pool_Reactor_SSL_Test.cpp b/tests/SSL/Thread_Pool_Reactor_SSL_Test.cpp
index 6a9a8ebf740..38cf478564c 100644
--- a/tests/SSL/Thread_Pool_Reactor_SSL_Test.cpp
+++ b/tests/SSL/Thread_Pool_Reactor_SSL_Test.cpp
@@ -88,7 +88,7 @@ static int req_delay = 50;
static void
parse_arg (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("r:s:c:d:i:n:"));
+ ACE_Get_Arg_Opt getopt (argc, argv, ACE_TEXT ("r:s:c:d:i:n:"));
int c;
diff --git a/tests/SSL/tests.mpc b/tests/SSL/tests.mpc
index c49e4d746a5..f27c4041968 100644
--- a/tests/SSL/tests.mpc
+++ b/tests/SSL/tests.mpc
@@ -1,13 +1,6 @@
// -*- MPC -*-
// $Id$
-project(SSL Asynch_Stream Test) : acetest, ssl {
- exename = SSL_Asynch_Stream_Test
- Source_Files {
- SSL_Asynch_Stream_Test.cpp
- }
-}
-
project(Thread Pool Reactor SSL Test) : acetest, ssl {
exename = Thread_Pool_Reactor_SSL_Test
Source_Files {
diff --git a/tests/SString_Test.cpp b/tests/SString_Test.cpp
index 7486e2d2b5b..265d690fbf7 100644
--- a/tests/SString_Test.cpp
+++ b/tests/SString_Test.cpp
@@ -26,7 +26,6 @@
ACE_RCSID(tests, SString_Test, "$Id$")
static int testConcatenation() {
-#ifdef ACE_HAS_WCHAR
ACE_WString s1;
s1 += L'H';
if (s1 != ACE_WString(L"H")) {
@@ -62,7 +61,6 @@ static int testConcatenation() {
ACE_ERROR((LM_ERROR, "Concat wchar_t 2\n"));
return 1;
}
-#endif /* ACE_HAS_WCHAR */
return 0;
}
@@ -132,7 +130,7 @@ run_main (int, ACE_TCHAR *[])
{
/* Set #2 */
- ACE_CString s0 = "hello";
+ ACE_CString s0 ("hello", 0, 0);
ACE_CString s1 ("hello", 0, 0);
ACE_CString s2 ("world", 0, 0);
ACE_CString s3 ("ll", 0, 0);
@@ -211,7 +209,7 @@ run_main (int, ACE_TCHAR *[])
ACE_NS_WString s5 = s1 + " " + s2;
ACE_NS_WString s6 = ("hella"); // Same length as s1, off by one char.
- ACE_WCHAR_T single_character = 'z';
+ wchar_t single_character = 'z';
ACE_NS_WString single_character_string (single_character);
ACE_NS_WString empty_string;
diff --git a/tests/Semaphore_Test.cpp b/tests/Semaphore_Test.cpp
index e2b82042559..0f68bb0f2a4 100644
--- a/tests/Semaphore_Test.cpp
+++ b/tests/Semaphore_Test.cpp
@@ -119,7 +119,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("s:w:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("s:w:n:"));
int c;
diff --git a/tests/Service_Config_Test.UTF-16.conf b/tests/Service_Config_Test.UTF-16.conf
index fee216c95f9..e5d36fd215f 100644
--- a/tests/Service_Config_Test.UTF-16.conf
+++ b/tests/Service_Config_Test.UTF-16.conf
Binary files differ
diff --git a/tests/Service_Config_Test.WCHAR_T.conf b/tests/Service_Config_Test.WCHAR_T.conf
index 81f6e1fe4d6..a36db0600c9 100644
--- a/tests/Service_Config_Test.WCHAR_T.conf
+++ b/tests/Service_Config_Test.WCHAR_T.conf
Binary files differ
diff --git a/tests/Signal_Test.cpp b/tests/Signal_Test.cpp
index acf7bf5ea05..37df30dbb19 100644
--- a/tests/Signal_Test.cpp
+++ b/tests/Signal_Test.cpp
@@ -368,7 +368,7 @@ run_test (ACE_THR_FUNC worker,
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:chp:t:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:chp:t:"));
int c;
diff --git a/tests/Sigset_Ops_Test.cpp b/tests/Sigset_Ops_Test.cpp
index 076e64ce2d3..c1414ee8472 100644
--- a/tests/Sigset_Ops_Test.cpp
+++ b/tests/Sigset_Ops_Test.cpp
@@ -32,7 +32,7 @@ siglistset (sigset_t x, int *sigset, int can_miss = 0)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Signal (s) in the set = %08x:\n"), x)) ;
- for (int i = 1; i < ACE_NSIG; i++)
+ for (int i = 1; i < ACE_NSIG; i++)
{
result = ACE_OS::sigismember (&x, i);
@@ -42,18 +42,18 @@ siglistset (sigset_t x, int *sigset, int can_miss = 0)
empty = 0 ;
}
else if (can_miss)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Be careful... Signal %d is not valid\n"),
- i));
- result = 1;
- }
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ ACE_TEXT ("Be careful... Signal %d is not valid\n"),
+ i));
+ result = 1;
+ }
ACE_ASSERT ((sigset [i] ? result > 0 : result <= 0)) ;
}
- if (empty)
+ if (empty)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Empty!!\n\n"))) ;
- else
+ else
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\n\n"))) ;
}
@@ -82,7 +82,7 @@ run_main (int, ACE_TCHAR *[])
ACE_OS::sigfillset (&x) ;
// fill the comparison set
- for (i = 0 ; i < ACE_NSIG ; i++)
+ for (i = 0 ; i < ACE_NSIG ; i++)
sigset [i] = 1 ;
// There's no guarantee that the valid signals are sequential without
@@ -97,7 +97,7 @@ run_main (int, ACE_TCHAR *[])
ACE_OS::sigemptyset (&x) ;
// empty the comparison set
- for (i = 0 ; i < ACE_NSIG ; i++)
+ for (i = 0 ; i < ACE_NSIG ; i++)
sigset [i] = 0 ;
siglistset (x, sigset) ;
@@ -123,12 +123,12 @@ run_main (int, ACE_TCHAR *[])
siglistset (x, sigset) ;
// Now testing out of bound signal
- if (ACE_OS::sigismember (&x, ACE_NSIG) >= 0)
+ if (ACE_OS::sigismember (&x, ACE_NSIG) >= 0)
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("Platform doesn't check for valid signal number.\n")));
status = 1;
}
- else if (ACE_OS::last_error () != EINVAL)
+ else if (ACE_OS::last_error () != EINVAL)
{
ACE_ERROR ((LM_ERROR, ACE_TEXT ("%p.\n"), ACE_TEXT ("Expected status EINVAL; got")));
status = 1;
diff --git a/tests/Svc_Handler_Test.cpp b/tests/Svc_Handler_Test.cpp
index 8b2eb68d0b7..4c9e36e70dc 100644
--- a/tests/Svc_Handler_Test.cpp
+++ b/tests/Svc_Handler_Test.cpp
@@ -40,23 +40,23 @@ run_test (SVC_HANDLER &svc_handler,
{
ACE_Message_Block *mb;
ACE_NEW (mb,
- ACE_Message_Block (sizeof (ACE_LIB_TEXT("hello "))));
+ ACE_Message_Block (sizeof (ACE_TEXT("hello "))));
ACE_Message_Block *cb1;
ACE_NEW (cb1,
- ACE_Message_Block (sizeof (ACE_LIB_TEXT("there\n"))));
+ ACE_Message_Block (sizeof (ACE_TEXT("there\n"))));
ACE_Message_Block *cb2;
ACE_NEW (cb2,
- ACE_Message_Block (sizeof (ACE_LIB_TEXT("there\n"))));
+ ACE_Message_Block (sizeof (ACE_TEXT("there\n"))));
mb->copy ("hello ",
- ACE_OS::strlen (ACE_LIB_TEXT("hello ")));
+ ACE_OS::strlen (ACE_TEXT("hello ")));
cb1->copy ("there ",
- ACE_OS::strlen (ACE_LIB_TEXT("there ")));
+ ACE_OS::strlen (ACE_TEXT("there ")));
mb->cont (cb1);
cb2->copy ("doug\n",
- ACE_OS::strlen (ACE_LIB_TEXT("doug\n")));
+ ACE_OS::strlen (ACE_TEXT("doug\n")));
cb1->cont (cb2);
// Note that this is a buffered call!
@@ -132,15 +132,15 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_FILE_Info info;
file_io.get_info (info);
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT("file size = %d\n"), info.size_));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT("file size = %d\n"), info.size_));
for (ssize_t n_bytes; (n_bytes = file_io.recv (buf, ACE_MAXLOGMSGLEN)) > 0; )
{
buf[n_bytes] = '\0';
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT("%s"), ACE_TEXT_CHAR_TO_TCHAR(buf)));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT("%s"), ACE_TEXT_TO_TCHAR_IN(buf)));
}
- ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT("\n")));
+ ACE_DEBUG ((LM_DEBUG, ACE_TEXT("\n")));
file_io.close ();
diff --git a/tests/TP_Reactor_Test.cpp b/tests/TP_Reactor_Test.cpp
index 5fcf8e6c1e1..2039f6de3e8 100644
--- a/tests/TP_Reactor_Test.cpp
+++ b/tests/TP_Reactor_Test.cpp
@@ -1072,7 +1072,7 @@ parse_args (int argc, ACE_TCHAR *argv[])
return 0;
}
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("i:n:p:d:h:s:v:ub"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("i:n:p:d:h:s:v:ub"));
int c;
while ((c = get_opt ()) != EOF)
diff --git a/tests/Test_Output.cpp b/tests/Test_Output.cpp
index bc24acf9eca..73feac26709 100644
--- a/tests/Test_Output.cpp
+++ b/tests/Test_Output.cpp
@@ -101,7 +101,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
test_dir = 0;
else
{
- ACE_OS::strcpy (tempenv, ACE_TEXT_CHAR_TO_TCHAR (test_dir_n));
+ ACE_OS::strcpy (tempenv, ACE_TEXT_TO_TCHAR_IN (test_dir_n));
test_dir = tempenv;
}
# endif /* ACE_WIN32 || !ACE_USES_WCHAR */
@@ -145,7 +145,7 @@ ACE_Test_Output::set_output (const ACE_TCHAR *filename, int append)
# endif /* ! VXWORKS */
# if !defined (ACE_LACKS_IOSTREAM_TOTALLY)
- this->output_file_->open (ACE_TEXT_ALWAYS_CHAR (temp),
+ this->output_file_->open (ACE_TEXT_TO_CHAR_IN (temp),
ios::out | (append ? ios::app : ios::trunc));
if (this->output_file_->bad ())
return -1;
diff --git a/tests/Thread_Manager_Test.cpp b/tests/Thread_Manager_Test.cpp
index 10732e68c3b..2fb5c9ced47 100644
--- a/tests/Thread_Manager_Test.cpp
+++ b/tests/Thread_Manager_Test.cpp
@@ -89,11 +89,11 @@ handler (int /* signum */)
static void *
worker (int iterations)
{
-#if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS)
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("(%P|%t) %s: stack size is %u\n"),
ACE_OS::thr_self (),
ACE_OS::thr_min_stack ()));
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
#if !defined (ACE_LACKS_UNIX_SIGNALS)
// Cache this thread's ID.
@@ -283,7 +283,7 @@ run_main (int, ACE_TCHAR *[])
ACE_Thread_Manager *thr_mgr = ACE_Thread_Manager::instance ();
-#if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
// Assign thread (VxWorks task) names to test that feature.
ACE_thread_t *thread_name;
ACE_NEW_RETURN (thread_name,
@@ -313,23 +313,23 @@ run_main (int, ACE_TCHAR *[])
stack_size[i] = 40000;
}
-#endif /* ACE_VXWORKS && !ACE_HAS_PTHREADS */
+#endif /* VXWORKS && !ACE_HAS_PTHREADS */
int grp_id = thr_mgr->spawn_n
(
-#if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
thread_name,
-#endif /* ACE_VXWORKS && !ACE_HAS_PTHREADS */
+#endif /* VXWORKS && !ACE_HAS_PTHREADS */
n_threads,
(ACE_THR_FUNC) worker,
reinterpret_cast <void *> (n_iterations),
THR_BOUND
-#if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
, ACE_DEFAULT_THREAD_PRIORITY
, -1
, 0
, stack_size
-#endif /* ACE_VXWORKS */
+#endif /* VXWORKS */
);
ACE_ASSERT (grp_id != -1);
@@ -414,7 +414,7 @@ run_main (int, ACE_TCHAR *[])
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("(%t) main thread finished\n")));
-#if defined (ACE_VXWORKS) && !defined (ACE_HAS_PTHREADS)
+#if defined (VXWORKS) && !defined (ACE_HAS_PTHREADS)
for (i = 0; i < n_threads - 1; ++i)
{
delete [] thread_name[i];
@@ -423,7 +423,7 @@ run_main (int, ACE_TCHAR *[])
}
delete [] thread_name;
delete [] stack_size;
-#endif /* ACE_VXWORKS && !ACE_HAS_PTHREADS */
+#endif /* VXWORKS && !ACE_HAS_PTHREADS */
delete thread_start;
thread_start = 0;
diff --git a/tests/Thread_Pool_Reactor_Resume_Test.cpp b/tests/Thread_Pool_Reactor_Resume_Test.cpp
index c4640241475..c90984ba302 100644
--- a/tests/Thread_Pool_Reactor_Resume_Test.cpp
+++ b/tests/Thread_Pool_Reactor_Resume_Test.cpp
@@ -84,7 +84,7 @@ static int req_delay = 50;
static void
parse_arg (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("r:s:c:d:i:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("r:s:c:d:i:n:"));
int c;
diff --git a/tests/Thread_Pool_Reactor_Test.cpp b/tests/Thread_Pool_Reactor_Test.cpp
index 97469108eb7..309dd126cc3 100644
--- a/tests/Thread_Pool_Reactor_Test.cpp
+++ b/tests/Thread_Pool_Reactor_Test.cpp
@@ -87,7 +87,7 @@ static int req_delay = 50;
static void
parse_arg (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt getopt (argc, argv, ACE_TEXT ("r:s:c:d:i:n:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT ("r:s:c:d:i:n:"));
int c;
diff --git a/tests/Thread_Pool_Test.cpp b/tests/Thread_Pool_Test.cpp
index f6a649aa8ab..a201efaf3ee 100644
--- a/tests/Thread_Pool_Test.cpp
+++ b/tests/Thread_Pool_Test.cpp
@@ -123,7 +123,7 @@ Thread_Pool::svc (void)
for (int count = 1; ; count++)
{
- ACE_Message_Block *mb = 0;
+ ACE_Message_Block *mb;
int result = this->getq (mb);
diff --git a/tests/Time_Value_Test.cpp b/tests/Time_Value_Test.cpp
index 13fd8fe3bda..4f7f7c5fc44 100644
--- a/tests/Time_Value_Test.cpp
+++ b/tests/Time_Value_Test.cpp
@@ -49,17 +49,6 @@ ACE_RCSID(tests, Time_Value_Test, "$Id$")
#include "ace/ACE.h"
#include "ace/Time_Value.h"
-#if !defined(ACE_LACKS_NUMERIC_LIMITS)
-// some platforms pollute the namespace by defining max() and min() macros
-#ifdef max
-#undef max
-#endif
-#ifdef min
-#undef min
-#endif
-#include <limits>
-#endif /* ACE_LACKS_NUMERIC_LIMITS */
-
#if defined (sun) && !defined (ACE_LACKS_LONGLONG_T)
static
u_long
@@ -248,32 +237,24 @@ run_main (int, ACE_TCHAR *[])
tv1 *= -10.0;
ACE_ASSERT (tv1.sec () == tv2.sec () && tv1.usec () == tv2.usec ());
-#if !defined(ACE_LACKS_NUMERIC_LIMITS) && !defined (ACE_WIN64)
- const time_t max_time_t = std::numeric_limits<time_t>::max ();
- const time_t min_time_t = std::numeric_limits<time_t>::min ();
-#else
- const time_t max_time_t = LONG_MAX;
- const time_t min_time_t = LONG_MIN;
-#endif
-
// test results near limits
- tv1.set ((max_time_t >> 1), 499999);
- tv2.set ((-(max_time_t >> 1) << 1), -999998);
+ tv1.set ((ACE_INT32_MAX >> 1), 499999);
+ tv2.set ((-(ACE_INT32_MAX >> 1) << 1), -999998);
tv1 *= -2.0;
ACE_ASSERT (tv1.sec () == tv2.sec () && tv1.usec () == tv2.usec ());
- tv1.set (max_time_t >> 1, 499999);
- tv2.set (((max_time_t >> 1) << 1), 999998);
+ tv1.set (ACE_INT32_MAX >> 1, 499999);
+ tv2.set (((ACE_INT32_MAX >> 1) << 1), 999998);
tv1 *= 2.0;
ACE_ASSERT (tv1.sec () == tv2.sec () && tv1.usec () == tv2.usec ());
// test saturated result
- tv1.set (max_time_t - 1, 499999);
- tv2.set (max_time_t, 999999);
- tv1 *= max_time_t;
+ tv1.set (ACE_INT32_MAX - 1, 499999);
+ tv2.set (ACE_INT32_MAX, 999999);
+ tv1 *= ACE_INT32_MAX;
ACE_ASSERT (tv1.sec () == tv2.sec () && tv1.usec () == tv2.usec ());
- tv1.set (max_time_t - 1, 499999);
- tv2.set (min_time_t, -999999);
- tv1 *= min_time_t;
+ tv1.set (ACE_INT32_MAX - 1, 499999);
+ tv2.set (ACE_INT32_MIN, -999999);
+ tv1 *= ACE_INT32_MIN;
ACE_ASSERT (tv1.sec () == tv2.sec () && tv1.usec () == tv2.usec ());
#if defined (sun) && !defined (ACE_LACKS_LONGLONG_T)
diff --git a/tests/Timer_Queue_Reference_Counting_Test.cpp b/tests/Timer_Queue_Reference_Counting_Test.cpp
index 7750a22d3e5..3a802e24fb6 100644
--- a/tests/Timer_Queue_Reference_Counting_Test.cpp
+++ b/tests/Timer_Queue_Reference_Counting_Test.cpp
@@ -550,7 +550,7 @@ static int test_simple = 1;
static int
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("a:b:c:d:l:m:n:o:z:"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("a:b:c:d:l:m:n:o:z:"));
int cc;
while ((cc = get_opt ()) != -1)
diff --git a/tests/Timer_Queue_Test.cpp b/tests/Timer_Queue_Test.cpp
index 1f04dbd7cf5..9a1845bb8b9 100644
--- a/tests/Timer_Queue_Test.cpp
+++ b/tests/Timer_Queue_Test.cpp
@@ -34,7 +34,6 @@
#include "ace/Recursive_Thread_Mutex.h"
#include "ace/Null_Mutex.h"
#include "ace/OS_NS_unistd.h"
-#include "ace/Containers_T.h"
ACE_RCSID(tests, Timer_Queue_Test, "$Id$")
@@ -476,65 +475,6 @@ test_performance (ACE_Timer_Queue *tq,
delete [] times;
}
-// This test function was contributed with Bugzilla #2447 to test validity
-// of ACE_Timer_Heap timer IDs around the boundary of having to enlarge
-// the heap.
-static void
-test_unique_timer_heap_ids (void)
-{
- Example_Handler eh;
- ACE_Timer_Heap timer_heap (44);
- ACE_Time_Value anytime(1);
- ACE_Bounded_Set<long> timer_ids (max_iterations);
- long timer_id = -1;
- bool all_unique = true;
-
- for (int i = 0; i < 100; ++i)
- {
- timer_id = timer_heap.schedule (&eh, 0, anytime);
- if (timer_id == -1)
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Schedule timer %d %p\n"),
- i,
- ACE_TEXT ("test_unique_timer_heap_ids")));
- continue;
- }
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Schedule timer %d. Timer id = %d\n"),
- i,
- timer_id));
- if (1 == timer_ids.insert (timer_id))
- {
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("Pass %d, id %d is not unique\n"),
- i,
- timer_id));
- all_unique = false;
- }
-
- if (i == 0 || i == 1 || i == 47 || i == 48)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Free Timer %d. Timer Id = %d\n"),
- i,
- timer_id));
- timer_heap.cancel (timer_id);
- if (timer_id == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("%p\n"),
- ACE_TEXT ("Failed to cancel timer")));
-
- timer_ids.remove (timer_id);
- }
- }
-
- if (all_unique)
- ACE_DEBUG ((LM_INFO, ACE_TEXT ("All timer ids were unique.\n")));
-
- return;
-}
-
class Timer_Queue_Stack
{
// = TITLE
@@ -660,20 +600,9 @@ run_main (int argc, ACE_TCHAR *argv[])
tq_ptr = tq_ptr->next_;
delete temp;
}
- delete [] timer_ids;
- ACE_DEBUG
- ((LM_DEBUG,
- ACE_TEXT ("**** starting unique IDs test for ACE_Timer_Heap\n")));
- test_unique_timer_heap_ids ();
+ delete [] timer_ids;
ACE_END_TEST;
return 0;
}
-
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Bounded_Set<long>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Bounded_Set<long>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/tests/Unload_libACE.cpp b/tests/Unload_libACE.cpp
deleted file mode 100644
index a9c52e30c4c..00000000000
--- a/tests/Unload_libACE.cpp
+++ /dev/null
@@ -1,259 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// tests
-//
-// = FILENAME
-// Unload_libACE.cpp
-//
-// = DESCRIPTION
-// This is a simple test of library unloading that uses
-// an application which has _not_ been linked with libACE
-// but uses dlopen() to dynamically load libACE
-// and then uses dlclose() to unload it.
-//
-// = AUTHORS
-// David Smith <dts@prismtech.com> and Don Sharp <Donald.Sharp@prismtech.com>
-//
-// ============================================================================
-
-#include <stdio.h>
-
-#undef UNLOAD_LIBACE_TEST
-
-#if defined (__GNUC__)
-#if !defined (ACE_VXWORKS) && !defined (__MINGW32__) && !defined (__CYGWIN32__)
-#define UNLOAD_LIBACE_TEST 1
-#endif /* !ACE_VXWORKS && !__MINGW32__ && !CYGWIN32 */
-#endif /* __GNUC__ */
-
-#if defined (__hpux) || defined (__SUNPRO_CC)
-#define UNLOAD_LIBACE_TEST 1
-#endif /* (__hpux) || (__SUNPRO_CC) */
-
-#if defined (ACE_AS_STATIC_LIBS)
-#undef UNLOAD_LIBACE_TEST
-#endif /* ACE_AS_STATIC_LIBS */
-
-#ifdef UNLOAD_LIBACE_TEST
-
-#include <errno.h>
-#include <dlfcn.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-
-#define TIME_STAMP_FIELD_WIDTH 32
-
-static char *
-time_stamp ( char date_and_time[], int date_and_timelen, int format )
-{
- static char const *const month_name[] =
- {
- "Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec"
- };
-
- static char const *const day_of_week_name[] =
- {
- "Sun",
- "Mon",
- "Tue",
- "Wed",
- "Thu",
- "Fri",
- "Sat"
- };
-
- char *ts = NULL;
-
- if ( date_and_timelen >= TIME_STAMP_FIELD_WIDTH )
- {
- time_t timeval;
- struct tm *now;
-
- time ( &timeval );
- now = localtime ( &timeval ); /* Get current local time. */
-
- if ( format == 'Y' )
- {
- sprintf ( date_and_time,
- "%3s %3s %2d %04d %02d:%02d:%02d.%06d",
- day_of_week_name[now->tm_wday],
- month_name[now->tm_mon],
- ( int ) now->tm_mday,
- ( int ) now->tm_year + 1900,
- ( int ) now->tm_hour,
- ( int ) now->tm_min, ( int ) now->tm_sec, ( int ) 0 );
- }
- else /* 'T' */
- {
- sprintf ( date_and_time,
- "%3s %2d %02d:%02d:%02d.%03d %04d",
- month_name[now->tm_mon],
- ( int ) now->tm_mday,
- ( int ) now->tm_hour,
- ( int ) now->tm_min,
- ( int ) now->tm_sec, ( int ) 0,
- ( int ) now->tm_year + 1900 );
- }
-
- ts = date_and_time;
- }
- return ts;
-}
-
-int
-main ( int, char ** )
-{
- char const *const program = "UnloadLibACE";
-
- int status = 0;
- void *handle = NULL;
- char *ace_root = NULL;
- char tbuf[BUFSIZ];
- char ybuf[BUFSIZ];
- FILE *logfp = NULL;
-
- if (( logfp = fopen ( "log/UnloadLibACE.log", "w" )) != NULL )
- {
- setvbuf ( logfp, NULL, _IONBF, 0 );
- // reassign stdout/stderr to log file
- int fdno = fileno ( logfp );
-
- dup2 ( fdno, fileno ( stdout ));
- dup2 ( fdno, fileno ( stderr ));
- setvbuf ( stdout, NULL, _IONBF, 0 );
- setvbuf ( stderr, NULL, _IONBF, 0 );
- fflush ( stdout );
- fflush ( stderr );
-
- printf ( "%s@LM_DEBUG@ Starting %s test at %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ),
- program, time_stamp ( ybuf, BUFSIZ, 'Y' ));
-
- if (( ace_root = getenv ( "ACE_ROOT" )) != NULL )
- {
- char buf[BUFSIZ];
-
- strcpy ( buf, ace_root );
-#if defined (__hpux)
- strcat ( buf, "/lib/libACE.sl" );
-#else
- strcat ( buf, "/lib/libACE.so" );
-#endif /* (__hpux) */
-
- handle = dlopen ( buf, RTLD_LAZY );
- if ( handle == NULL )
- {
- // is it because of "No such file or directory" ?
- if ( errno != ENOENT )
- {
- fprintf ( stderr,
- "%s@LM_ERROR@ dlopen() returned NULL\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ));
- fprintf ( stderr,
- "%s@LM_ERROR@ dlerror() says: %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ), dlerror ());
- status = 1;
- }
- else
- {
- printf ( "%s@LM_DEBUG@ dlopen() did not find %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ), buf);
- status = 0;
- }
- }
- else if ( dlclose ( handle ) != 0 )
- {
- fprintf ( stderr,
- "%s@LM_ERROR@ dlclose() failed : %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ), strerror ( errno ));
- status = 1;
- }
- }
- else
- {
- fprintf ( stderr,
- "%s@LM_ERROR@ ACE_ROOT environment variable not set\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ));
- status = 1;
- }
-
- fflush ( stdout );
- fflush ( stderr );
- fflush ( logfp );
-
- fclose ( logfp );
- }
- else
- {
- // Couldn't go into the log file !!!
- printf ( "%s@LM_DEBUG@ Starting %s test at %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ),
- program, time_stamp ( ybuf, BUFSIZ, 'Y' ));
-
- fprintf ( stderr,
- "%s@LM_ERROR@ Could not open log/UnloadLibACE.log : %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ), strerror ( errno ));
- status = 1;
- }
-
- printf ( "%s@LM_DEBUG@ Ending %s test at %s\n",
- time_stamp ( tbuf, BUFSIZ, 'T' ),
- program, time_stamp ( ybuf, BUFSIZ, 'Y' ));
-
- fflush ( stderr );
- fflush ( stdout );
- fclose ( stdout );
- fclose ( stderr );
-
- exit ( status );
- return 0;
-}
-#else
-# if defined (WIN32) && defined (ACE_USES_WCHAR)
-// Borrow include list from ace_wchar.h
-# if defined (ACE_HAS_WINCE)
-# include /**/ <wtypes.h>
-# elif !defined (__BORLANDC__)
-# include /**/ <wchar.h>
-# endif /* ACE_HAS_WINCE || __BORLANDC__ */
-
-int
-wmain ( int, wchar_t ** )
-#else
-int
-main ( int, char ** )
-#endif /* (WIN32) && (ACE_USES_WCHAR) */
-{
- char const *const program = "UnloadLibACE";
-
- FILE *logfp = NULL;
-
- if (( logfp = fopen ( "log/UnloadLibACE.log", "w" )) != NULL )
- {
- fprintf ( logfp, "@LM_DEBUG@ Starting %s test\n", program);
- fprintf ( logfp, "@LM_DEBUG@ %s test not implemented for this platform\n",
- program);
- fprintf ( logfp, "@LM_DEBUG@ Ending %s test\n", program);
-
- fflush ( logfp );
- fclose ( logfp );
- }
- return 0;
-}
-#endif /* UNLOAD_LIBACE_TEST */
diff --git a/tests/Upgradable_RW_Test.cpp b/tests/Upgradable_RW_Test.cpp
index 541454eaa2b..bc7618a59cc 100644
--- a/tests/Upgradable_RW_Test.cpp
+++ b/tests/Upgradable_RW_Test.cpp
@@ -117,7 +117,7 @@ print_usage_and_die (void)
static void
parse_args (int argc, ACE_TCHAR *argv[])
{
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("e:fr:w:n:u"));
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("e:fr:w:n:u"));
int c;
diff --git a/tests/WChar_Conversion.cpp b/tests/WChar_Conversion.cpp
new file mode 100644
index 00000000000..962dc63db86
--- /dev/null
+++ b/tests/WChar_Conversion.cpp
@@ -0,0 +1,291 @@
+// $Id$
+
+// Checks to make sure that wide-char conversion work
+
+#include "test_config.h"
+#include "ace/config-all.h"
+#include "ace/Log_Msg.h"
+#include "ace/OS_NS_string.h"
+
+ACE_RCSID(tests, WChar_Conversion, "$Id$")
+
+// Typical pattern for C-style system call
+template < typename CHAR_TYPE >
+CHAR_TYPE* system_call( CHAR_TYPE* bucket, size_t bucket_size )
+{
+ size_t i = 0;
+ for( ; i < bucket_size/2; ++i )
+ {
+ bucket[ i ] = 'a' + (i % 6);
+ }
+ bucket[ i ] = 0;
+ return ( bucket[ 0 ] == 0 ? 0 : bucket );
+}
+
+// The following would be a typical emulation pattern where the system
+// call takes an out param. Dta may be lost if the two representations
+// require a different number of characters
+template < typename ANTI_TYPE, typename CHAR_TYPE >
+CHAR_TYPE* system_call_emulation( CHAR_TYPE* bucket, size_t bucket_size )
+{
+ bucket[ 0 ] = 0;
+ ACE::String_Conversion::Convert_InOut< ANTI_TYPE, CHAR_TYPE > convert( bucket, bucket_size );
+ const ANTI_TYPE* result = system_call( convert.c_str(), convert.size() );
+ return ( result ? bucket : 0 );
+}
+
+int
+run_main (int, ACE_TCHAR *[])
+{
+ ACE_START_TEST (ACE_TEXT ("WChar_Conversion"));
+
+// Const Input
+
+ // Pass through where constructed with destination type
+ {
+ const char* source = "Source";
+ const char* result = 0;
+ {
+ ACE::String_Conversion::Convert_In< char, wchar_t > convert( source );
+ result = convert.c_str();
+ }
+ ACE_ASSERT( result == source );
+ }
+
+ // Pass through where constructed with destination type
+ {
+ const wchar_t* source = L"Source";
+ const wchar_t* result = 0;
+ {
+ ACE::String_Conversion::Convert_In< wchar_t, char > convert( source );
+ result = convert.c_str();
+ }
+ ACE_ASSERT( result == source );
+ }
+
+ // Narrow to wide to narrow
+ {
+ const char* source = "Source";
+ const wchar_t* result1 = 0;
+ const char* result2 = 0;
+
+ ACE::String_Conversion::Convert_In< wchar_t, char > convert1( source );
+ result1 = convert1.c_str();
+
+ ACE::String_Conversion::Convert_In< char, wchar_t > convert2( result1 );
+ result2 = convert2.c_str();
+
+ ACE_ASSERT( ACE_OS::strcmp( result2, source ) == 0 );
+ }
+
+ // Wide to narrow to wide
+ {
+ const wchar_t* source = L"Source";
+ const char* result1 = 0;
+ const wchar_t* result2 = 0;
+
+ ACE::String_Conversion::Convert_In< char, wchar_t > convert1( source );
+ result1 = convert1.c_str();
+
+ ACE::String_Conversion::Convert_In< wchar_t, char > convert2( result1 );
+ result2 = convert2.c_str();
+
+ ACE_ASSERT( ACE_OS::strcmp( result2, source ) == 0 );
+ }
+
+// In/Out
+
+ // Pass through where constructed with destination type
+ {
+ char source[ 255 ] = "Source";
+ char* result = 0;
+ {
+ ACE::String_Conversion::Convert_InOut< char, wchar_t > convert( source, 255 );
+ result = convert.c_str();
+ }
+ ACE_ASSERT( result == source );
+ }
+
+ // Pass through where constructed with destination type
+ {
+ wchar_t source[ 255 ] = L"Source";
+ wchar_t* result = 0;
+ {
+ ACE::String_Conversion::Convert_InOut< wchar_t, char > convert( source, 255 );
+ result = convert.c_str();
+ }
+ ACE_ASSERT( result == source );
+ }
+
+ // Narrow to wide
+ {
+ char source[ 255 ] = "Source";
+ {
+ ACE::String_Conversion::Convert_InOut< wchar_t, char > convert( source, 255 );
+ wchar_t* result = convert.c_str();
+ result[0] = L'T';
+ }
+ ACE_ASSERT( ACE_OS::strcmp( "Tource", source ) == 0 );
+ }
+
+ // Wide to narrow
+ {
+ wchar_t source[ 255 ] = L"Source";
+ {
+ ACE::String_Conversion::Convert_InOut< char, wchar_t > convert( source, 255 );
+ char* result = convert.c_str();
+ result[0] = 'T';
+ }
+ ACE_ASSERT( ACE_OS::strcmp( L"Tource", source ) == 0 );
+ }
+
+// Output
+
+ // char to char
+ {
+ char source[ 255 ] = "Source";
+ ACE::String_Conversion::Convert_Out< char > convert( source );
+ char* result = convert.c_str();
+ ACE_ASSERT( ACE_OS::strcmp( result, source ) == 0 );
+ convert.free( result );
+ }
+
+ // char to wchar_t
+ {
+ char source[ 255 ] = "Source";
+ ACE::String_Conversion::Convert_Out< wchar_t > convert( source );
+ wchar_t* result = convert.c_str();
+ ACE_ASSERT( ACE_OS::strcmp( result, ACE_TEXT_TO_WCHAR_IN( source ) ) == 0 );
+ convert.free( result );
+ }
+
+ // wchar_t to char
+ {
+ wchar_t source[ 255 ] = L"Source";
+ ACE::String_Conversion::Convert_Out< char > convert( source );
+ char* result = convert.c_str();
+ ACE_ASSERT( ACE_OS::strcmp( result, ACE_TEXT_TO_CHAR_IN( source ) ) == 0 );
+ convert.free( result );
+ }
+
+ // wchar_t to wchar_t
+ {
+ wchar_t source[ 255 ] = L"Source";
+ ACE::String_Conversion::Convert_Out< wchar_t > convert( source );
+ wchar_t* result = convert.c_str();
+ ACE_ASSERT( ACE_OS::strcmp( result, source ) == 0 );
+ convert.free( result );
+ }
+
+// In place
+
+ // char to char
+ {
+ const char source[ 255 ] = "Source";
+ char dest[ 255 ] = "";
+ ACE::String_Conversion::copy( dest, source, sizeof(source)/sizeof(source[0])-1 );
+ ACE_ASSERT( ACE_OS::strcmp( "Source", dest ) == 0 );
+ }
+
+ // char to wchar_t
+ {
+ const char source[ 255 ] = "Source";
+ wchar_t dest[ 255 ] = L"";
+ ACE::String_Conversion::copy( dest, source, sizeof(source)/sizeof(source[0])-1 );
+ ACE_ASSERT( ACE_OS::strcmp( L"Source", dest ) == 0 );
+ }
+
+ // wchar_t to char
+ {
+ const wchar_t source[ 255 ] = L"Source";
+ char dest[ 255 ] = "";
+ ACE::String_Conversion::copy( dest, source, sizeof(source)/sizeof(source[0])-1 );
+ ACE_ASSERT( ACE_OS::strcmp( "Source", dest ) == 0 );
+ }
+
+ // wchar_t to wchar_t
+ {
+ const wchar_t source[ 255 ] = L"Source";
+ wchar_t dest[ 255 ] = L"";
+ ACE::String_Conversion::copy( dest, source, sizeof(source)/sizeof(source[0])-1 );
+ ACE_ASSERT( ACE_OS::strcmp( L"Source", dest ) == 0 );
+ }
+
+// Boundary
+
+ // NULL strings
+ {
+ const wchar_t* nullW = 0;
+ ACE_ASSERT( ACE_TEXT_TO_CHAR_IN( nullW ) == 0 );
+ ACE_ASSERT( ACE_TEXT_TO_WCHAR_IN( nullW ) == 0 );
+ const char* nullN = 0;
+ ACE_ASSERT( ACE_TEXT_TO_WCHAR_IN( nullN ) == 0 );
+ ACE_ASSERT( ACE_TEXT_TO_CHAR_IN( nullN ) == 0 );
+ }
+
+ // Empty strings
+ {
+ const wchar_t* nullW = L"";
+ ACE_ASSERT( ACE_OS::strcmp( ACE_TEXT_TO_CHAR_IN( nullW ), "" ) == 0 );
+ ACE_ASSERT( ACE_OS::strcmp( ACE_TEXT_TO_WCHAR_IN( nullW ), L"" ) == 0 );
+ const char* nullN = "";
+ ACE_ASSERT( ACE_OS::strcmp( ACE_TEXT_TO_WCHAR_IN( nullN ), L"" ) == 0 );
+ ACE_ASSERT( ACE_OS::strcmp( ACE_TEXT_TO_CHAR_IN( nullN ), "" ) == 0 );
+ }
+
+// Other In/Out
+
+ // Limited Narrow to wide
+ {
+ char source[ 255 ] = "Source";
+ {
+ ACE::String_Conversion::Convert_InOut< wchar_t, char > convert( source, 3 );
+ wchar_t* result = convert.c_str();
+ result[0] = L'T';
+ }
+ ACE_ASSERT( ACE_OS::strcmp( "To", source ) == 0 );
+ }
+
+ // Limited Wide to narrow
+ {
+ wchar_t source[ 255 ] = L"Source";
+ {
+ ACE::String_Conversion::Convert_InOut< char, wchar_t > convert( source, 3 );
+ char* result = convert.c_str();
+ result[0] = 'T';
+ }
+ ACE_ASSERT( ACE_OS::strcmp( L"To", source ) == 0 );
+ }
+
+ // Narrow to wide
+ {
+ char source[ 255 ] = "Source";
+ {
+ ACE::String_Conversion::Convert_InOut< wchar_t, char > convert( source ); // calc len
+ wchar_t* result = convert.c_str();
+ result[0] = L'T';
+ }
+ ACE_ASSERT( ACE_OS::strcmp( "Tource", source ) == 0 );
+ }
+
+ // Wide to narrow
+ {
+ wchar_t source[ 255 ] = L"Source";
+ {
+ ACE::String_Conversion::Convert_InOut< char, wchar_t > convert( source ); // calc len
+ char* result = convert.c_str();
+ result[0] = 'T';
+ }
+ ACE_ASSERT( ACE_OS::strcmp( L"Tource", source ) == 0 );
+ }
+
+// Emulation pattern
+ {
+ wchar_t source[ 16 ] = { 6, 3, 7, 3, 2 }; // garbage
+ wchar_t* result = system_call_emulation< char >( source, 16 );
+ ACE_ASSERT( result == source && source[ 0 ] != 6 && source[ 15 ] == 0 );
+ }
+
+ ACE_END_TEST;
+ return 0;
+}
diff --git a/tests/makeicc.pl b/tests/makeicc.pl
new file mode 100755
index 00000000000..c9e9a42ec86
--- /dev/null
+++ b/tests/makeicc.pl
@@ -0,0 +1,42 @@
+# $Id$
+
+@ls = `ls -1 *.cpp`;
+$allicc = "icc.bat";
+
+foreach $tmp (@ls)
+{
+ ($a1, $a2) = split("cpp",$tmp);
+ $tmp2 = "$a1\icc";
+
+open(T,"> $a1\icc");
+ print T "// \$Id\$\n";
+ print T "\n";
+ print T "include \"vacpp_setup.icc\"\n";
+ print T "option\n";
+ print T " link(libSearchPath, platformLibSearchPath),\n";
+ print T " incl(searchPath, \"..\"),\n";
+ print T " link(linkWithMultiThreadLib,yes),\n";
+ print T " link(debug)\n";
+ print T " {\n";
+ chop($a1);
+ print T " target type (exe) \"$a1\"\n";
+ print T " {\n";
+ print T " source type (cpp) \"$a1\.cpp\"\n";
+ print T ' if ($__IBMCPP__ >= 500) {' . "\n";
+ print T " option macros(global) {\n";
+ print T " source type (hpp) \"test_config.h\"\n";
+ print T " }\n";
+ print T " source type (cpp) \"test_config.h\"\n";
+ print T " source type (cpp) \"../ace/Singleton.cpp\"\n";
+ print T " }\n";
+ print T " source type (lib) platformLinkLibs\n";
+ print T " }\n";
+ print T " }\n";
+close T;
+
+open(ALLICC,">> $allicc");
+ print ALLICC "vacbld -SEV=E $a1\.icc\n";
+close ALLICC;
+ print "$a1\n";
+}
+
diff --git a/tests/run_test.lst b/tests/run_test.lst
index 6637d0ca75d..39dee224e43 100644
--- a/tests/run_test.lst
+++ b/tests/run_test.lst
@@ -21,147 +21,145 @@ Arg_Shifter_Test
Array_Map_Test
Atomic_Op_Test
Auto_Event_Test
-Auto_IncDec_Test: !DISABLE_ToFix_LynxOS_PPC
-Barrier_Test: !DISABLE_ToFix_LynxOS_PPC
-Based_Pointer_Test: !DISABLE_ToFix_LynxOS_PPC !STATIC !VxWorks !ACE_FOR_TAO
+Auto_IncDec_Test
+Barrier_Test
+Based_Pointer_Test: !STATIC !VxWorks
Basic_Types_Test
-Bound_Ptr_Test: !DISABLE_ToFix_LynxOS_PPC !ACE_FOR_TAO
-Buffer_Stream_Test: !DISABLE_ToFix_LynxOS_PPC
+Bound_Ptr_Test
+Buffer_Stream_Test
Bug_1576_Regression_Test
-Bug_2497_Regression_Test
-CDR_Array_Test: !ACE_FOR_TAO
-CDR_File_Test: !ACE_FOR_TAO
+CDR_Array_Test
+CDR_File_Test
CDR_Test
Cache_Map_Manager_Test
-Cached_Accept_Conn_Test: !VxWorks !ACE_FOR_TAO
-Cached_Allocator_Test: !ACE_FOR_TAO
-Cached_Conn_Test: !VxWorks !ACE_FOR_TAO
-Capabilities_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !ACE_FOR_TAO
-Codecs_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !ACE_FOR_TAO
+Cached_Accept_Conn_Test: !VxWorks
+Cached_Allocator_Test
+Cached_Conn_Test: !VxWorks
+Capabilities_Test
+Codecs_Test
Collection_Test
-Config_Test: !LynxOS !VxWorks !ACE_FOR_TAO
-Conn_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !chorus !ACE_FOR_TAO
+Config_Test: !LynxOS !VxWorks
+Conn_Test: !chorus
DLL_Test: !Unicos !STATIC !KCC_Linux
-DLList_Test: !ACE_FOR_TAO
-Date_Time_Test: !ACE_FOR_TAO
+DLList_Test
+Date_Time_Test
Dev_Poll_Reactor_Test: !nsk
Dirent_Test
Dynamic_Priority_Test
Enum_Interfaces_Test: !LynxOS
Env_Value_Test: !chorus !WinCE
-FIFO_Test: !ACE_FOR_TAO
-Framework_Component_Test: !STATIC !nsk
-Future_Set_Test: !DISABLE_ToFix_LynxOS_PPC !nsk !ACE_FOR_TAO
-Future_Test: !DISABLE_ToFix_LynxOS_PPC !nsk !ACE_FOR_TAO
+FIFO_Test
+Framework_Component_Test: !STATIC !LynxOS !nsk
+Future_Set_Test: !nsk
+Future_Test: !nsk
Get_Opt_Test
-Handle_Set_Test: !ACE_FOR_TAO
+Handle_Set_Test
Hash_Map_Bucket_Iterator_Test
Hash_Map_Manager_Test
-High_Res_Timer_Test: !ACE_FOR_TAO
+High_Res_Timer_Test
INET_Addr_Test
IOStream_Test
Lazy_Map_Manager_Test
-Log_Msg_Test: !LynxOS !ACE_FOR_TAO
-Logging_Strategy_Test: !DISABLE_ToFix_LynxOS_PPC !STATIC !ST
-Manual_Event_Test: !DISABLE_ToFix_LynxOS_PPC
-MEM_Stream_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !VxWorks !nsk !ACE_FOR_TAO
-MM_Shared_Memory_Test: !chorus !Unicos !VxWorks !nsk !ACE_FOR_TAO
-MT_Reactor_Timer_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
-MT_Reactor_Upcall_Test: !DISABLE_ToFix_LynxOS_PPC !nsk
-MT_Reference_Counted_Event_Handler_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
-MT_Reference_Counted_Notify_Test: !DISABLE_ToFix_LynxOS_PPC
-MT_SOCK_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !chorus
-Malloc_Test: !VxWorks !LynxOS !ACE_FOR_TAO
-Map_Manager_Test: !ACE_FOR_TAO
-Map_Test: !ACE_FOR_TAO
-Max_Default_Port_Test: !DISABLE_ToFix_LynxOS_PPC !ST
-Mem_Map_Test: !chorus !Unicos !VxWorks !nsk !ACE_FOR_TAO
-Memcpy_Test: !ACE_FOR_TAO
-Message_Block_Test: !DISABLE_ToFix_LynxOS_PPC !chorus !ACE_FOR_TAO
-Message_Queue_Notifications_Test: !DISABLE_ToFix_LynxOS_PPC
-Message_Queue_Test: !chorus !ACE_FOR_TAO
-Message_Queue_Test_Ex: !chorus !ACE_FOR_TAO
-Multicast_Test: !ST !NO_MCAST !nsk !LynxOS
-Multihomed_INET_Addr_Test: !ACE_FOR_TAO
-Naming_Test: !chorus !LynxOS !Unicos !VxWorks !nsk !ACE_FOR_TAO
-Network_Adapters_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86
+Log_Msg_Test: !LynxOS
+Logging_Strategy_Test: !STATIC !ST
+Manual_Event_Test
+MEM_Stream_Test: !VxWorks !LynxOS !nsk
+MM_Shared_Memory_Test: !chorus !Unicos !VxWorks !nsk
+MT_Reactor_Timer_Test
+MT_Reactor_Upcall_Test: !nsk
+MT_Reference_Counted_Event_Handler_Test
+MT_Reference_Counted_Notify_Test
+MT_SOCK_Test: !chorus !LynxOS
+Malloc_Test: !VxWorks !LynxOS
+Map_Manager_Test
+Map_Test
+Max_Default_Port_Test: !ST
+Mem_Map_Test: !chorus !Unicos !VxWorks !nsk
+Memcpy_Test
+Message_Block_Test: !chorus
+Message_Queue_Notifications_Test
+Message_Queue_Test: !chorus
+Message_Queue_Test_Ex: !chorus
+Multicast_Test: !ST !NO_MCAST !nsk
+Multihomed_INET_Addr_Test
+Naming_Test: !chorus !LynxOS !Unicos !VxWorks !nsk
+Network_Adapters_Test
New_Fail_Test: ALL !DISABLED
NonBlocking_Conn_Test
-Notify_Performance_Test: !nsk !ACE_FOR_TAO
+Notify_Performance_Test: !nsk
OS_Test
Object_Manager_Test
Obstack_Test
OrdMultiSet_Test
Pipe_Test: !chorus !VxWorks
Priority_Buffer_Test
-Priority_Reactor_Test: !DISABLE_ToFix_LynxOS_PPC !chorus !ACE_FOR_TAO
-Priority_Task_Test: !DISABLE_ToFix_LynxOS_PPC !Unicos
-Proactor_Scatter_Gather_Test: !chorus !VxWorks !nsk !ACE_FOR_TAO
-Proactor_Test: !chorus !VxWorks !LynxOS !nsk !ACE_FOR_TAO !BAD_AIO
-Proactor_Timer_Test: !chorus !VxWorks !nsk !ACE_FOR_TAO
-Process_Manager_Test: !chorus !VxWorks !ACE_FOR_TAO
-Process_Manual_Event_Test: !HPUX !chorus !VxWorks !ACE_FOR_TAO
-Process_Mutex_Test: !chorus !VxWorks !ACE_FOR_TAO
-Process_Semaphore_Test: !chorus !VxWorks !ACE_FOR_TAO
+Priority_Reactor_Test: !chorus
+Priority_Task_Test: !Unicos
+Proactor_Scatter_Gather_Test: !chorus !VxWorks !LynxOS !nsk
+Proactor_Test: !chorus !VxWorks !LynxOS !nsk
+Proactor_Timer_Test: !chorus !VxWorks !LynxOS !nsk
+Process_Manager_Test: !chorus !VxWorks
+Process_Manual_Event_Test: !HPUX !chorus !VxWorks !LynxOS
+Process_Mutex_Test: !chorus !VxWorks !LynxOS
+Process_Semaphore_Test: !chorus !VxWorks !LynxOS
RB_Tree_Test
Reactor_Dispatch_Order_Test
-Reactor_Exceptions_Test: !DISABLE_ToFix_LynxOS_PPC
-Reactor_Notify_Test: !DISABLE_ToFix_LynxOS_PPC !ST !ACE_FOR_TAO
+Reactor_Exceptions_Test
+Reactor_Notify_Test: !ST
Reactor_Notification_Queue_Test
-Reactor_Performance_Test: !DISABLE_ToFix_LynxOS_PPC !chorus !ACE_FOR_TAO
+Reactor_Performance_Test: !chorus
Reactor_Registration_Test
-Reactor_Timer_Test: !ACE_FOR_TAO
-Reactors_Test: !DISABLE_ToFix_LynxOS_PPC
-Reader_Writer_Test: !DISABLE_ToFix_LynxOS_PPC
-Recursive_Condition_Test: !DISABLE_ToFix_LynxOS_PPC !ST
-Recursive_Mutex_Test: !DISABLE_ToFix_LynxOS_PPC !ST
-Refcounted_Auto_Ptr_Test: !DISABLE_ToFix_LynxOS_PPC !ACE_FOR_TAO
+Reactor_Timer_Test
+Reactors_Test
+Reader_Writer_Test
+Recursive_Condition_Test: !ST
+Recursive_Mutex_Test: !ST
+Refcounted_Auto_Ptr_Test
Reference_Counted_Event_Handler_Test
Reverse_Lock_Test
SOCK_Connector_Test
-SOCK_Send_Recv_Test
+SOCK_Send_Recv_Test: !LynxOS
SOCK_Test: !chorus
-SPIPE_Test: !VxWorks !nsk !ACE_FOR_TAO
-SString_Test: !ACE_FOR_TAO
-SV_Shared_Memory_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !MSVC !Unicos !VxWorks !RH_7.1 !nsk !ACE_FOR_TAO
-Semaphore_Test: !ACE_FOR_TAO
-Service_Config_Test: !DISABLE_ToFix_LynxOS_PPC !STATIC
+SPIPE_Test: !VxWorks !nsk
+SString_Test
+SV_Shared_Memory_Test: !MSVC !Unicos !VxWorks !RH_7.1 !nsk
+Semaphore_Test
+Service_Config_Test: !STATIC !LynxOS
Sigset_Ops_Test
Simple_Message_Block_Test: !chorus
-Svc_Handler_Test: !ACE_FOR_TAO
-TP_Reactor_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !ACE_FOR_TAO
-TSS_Test: !DISABLE_ToFix_LynxOS_PPC
+Svc_Handler_Test
+TP_Reactor_Test: !LynxOS
+TSS_Test
TSS_Static_Test
-Task_Test: !DISABLE_ToFix_LynxOS_PPC
-Task_Ex_Test: !DISABLE_ToFix_LynxOS_PPC
-Thread_Manager_Test: !DISABLE_ToFix_LynxOS_PPC !Unicos
-Thread_Mutex_Test: !DISABLE_ToFix_LynxOS_PPC !chorus
-Thread_Pool_Reactor_Resume_Test: !DISABLE_ToFix_LynxOS_PPC !ST
-Thread_Pool_Reactor_Test: !DISABLE_ToFix_LynxOS_PPC
-Thread_Pool_Test: !DISABLE_ToFix_LynxOS_PPC
+Task_Test
+Task_Ex_Test
+Thread_Manager_Test: !Unicos
+Thread_Mutex_Test: !chorus
+Thread_Pool_Reactor_Resume_Test: !ST
+Thread_Pool_Reactor_Test
+Thread_Pool_Test
Time_Service_Test: !STATIC !DISABLED !missing_netsvcs TOKEN !chorus !Unicos
Time_Value_Test
Timeprobe_Test
-Timer_Cancellation_Test: !DISABLE_ToFix_LynxOS_PPC
+Timer_Cancellation_Test
Timer_Queue_Reference_Counting_Test
-Timer_Queue_Test: !ACE_FOR_TAO
-Token_Strategy_Test: !DISABLE_ToFix_LynxOS_PPC !ST !nsk
+Timer_Queue_Test
+Token_Strategy_Test: !ST !nsk
Tokens_Test: MSVC !DISABLED TOKEN !chorus !Unicos
-UPIPE_SAP_Test: !VxWorks !nsk !ACE_FOR_TAO
+UPIPE_SAP_Test: !VxWorks !nsk
Unbounded_Set_Test
-Upgradable_RW_Test: !chorus !ACE_FOR_TAO
+Upgradable_RW_Test: !chorus
Vector_Test
WFMO_Reactor_Test: !nsk
INET_Addr_Test_IPV6: !nsk
Max_Default_Port_Test_IPV6: !nsk
-Multicast_Test_IPV6: !NO_MCAST !nsk !ACE_FOR_TAO
+Multicast_Test_IPV6: !NO_MCAST !nsk
Multihomed_INET_Addr_Test_IPV6: !nsk
-Proactor_Test_IPV6: !nsk !ACE_FOR_TAO !BAD_AIO
+Proactor_Test_IPV6: !nsk
SOCK_Send_Recv_Test_IPV6
SOCK_Dgram_Test
-SOCK_Dgram_Bcast_Test: !DISABLE_ToFix_LynxOS_PPC !DISABLE_ToFix_LynxOS_x86 !ACE_FOR_TAO
-SOCK_SEQPACK_SCTP_Test: !MSVC !nsk !ACE_FOR_TAO
+SOCK_Dgram_Bcast_Test
+SOCK_SEQPACK_SCTP_Test: !MSVC !nsk
SOCK_Test_IPv6: !nsk
-Process_Strategy_Test: !chorus !VxWorks !LynxOS !ACE_FOR_TAO
-Recursive_Condition_Bug_Test: !DISABLE_ToFix_LynxOS_PPC !ST
-UnloadLibACE: !STATIC
+Process_Strategy_Test: !chorus !VxWorks
+Recursive_Condition_Bug_Test: !ST
diff --git a/tests/test_config.h b/tests/test_config.h
index 21ff4cdf67c..a4ce5eb0b2c 100644
--- a/tests/test_config.h
+++ b/tests/test_config.h
@@ -19,9 +19,6 @@
#ifndef ACE_TEST_CONFIG_H
#define ACE_TEST_CONFIG_H
-// This first #undef protects against command-line definitions.
-#undef ACE_NDEBUG
-
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
@@ -33,6 +30,8 @@
#undef ACE_NLOGGING
#endif /* ACE_NLOGGING */
+// This first #undef protects against command-line definitions.
+#undef ACE_NDEBUG
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Log_Msg.h"
diff --git a/tests/tests.mpc b/tests/tests.mpc
index e5eee2e2290..8b4c35d7576 100644
--- a/tests/tests.mpc
+++ b/tests/tests.mpc
@@ -17,12 +17,6 @@ project(Test_Output) : acelib, script {
run_test.pl
run_test.lst
}
-
- verbatim(automake,local) {
-dist_check_SCRIPTS = run_test.pl run_test.lst
-TESTS = $(noinst_PROGRAMS)
-TESTS_ENVIRONMENT = $(srcdir)/run_test.pl -t
- }
}
project(Framework Component DLL) : acelib {
@@ -71,7 +65,6 @@ project(DLL Test Lib) : acelib, dll_test_parent_lib {
}
project(Based Pointer Test Lib) : acelib {
- avoids += ace_for_tao
sharedname = Based_Pointer_Test_Lib
dynamicflags = ACE_SVC_BUILD_DLL
@@ -175,7 +168,6 @@ project(Basic Types Test) : acetest {
}
project(Bound Ptr Test) : acetest {
- avoids += ace_for_tao
exename = Bound_Ptr_Test
Source_Files {
Bound_Ptr_Test.cpp
@@ -196,13 +188,6 @@ project(Bug_1576_Regression_Test) : acetest {
}
}
-project(Bug_2497_Regression_Test) : acetest {
- exename = Bug_2497_Regression_Test
- Source_Files {
- Bug_2497_Regression_Test.cpp
- }
-}
-
project(Cache Map Manager Test) : acetest {
exename = Cache_Map_Manager_Test
Source_Files {
@@ -211,7 +196,6 @@ project(Cache Map Manager Test) : acetest {
}
project(Memcpy_Test) : acetest {
- avoids += ace_for_tao
exename = Memcpy_Test
Source_Files {
Memcpy_Test.cpp
@@ -219,7 +203,6 @@ project(Memcpy_Test) : acetest {
}
project(Cached Accept Conn Test) : acetest {
- avoids += ace_for_tao
exename = Cached_Accept_Conn_Test
Source_Files {
Cached_Accept_Conn_Test.cpp
@@ -227,7 +210,6 @@ project(Cached Accept Conn Test) : acetest {
}
project(Cached Allocator Test) : acetest {
- avoids += ace_for_tao
exename = Cached_Allocator_Test
Source_Files {
Cached_Allocator_Test.cpp
@@ -235,7 +217,6 @@ project(Cached Allocator Test) : acetest {
}
project(Cached Conn Test) : acetest {
- avoids += ace_for_tao
exename = Cached_Conn_Test
Source_Files {
Cached_Conn_Test.cpp
@@ -243,7 +224,6 @@ project(Cached Conn Test) : acetest {
}
project(Capabilities Test) : acetest {
- avoids += ace_for_tao
exename = Capabilities_Test
Source_Files {
Capabilities_Test.cpp
@@ -251,7 +231,6 @@ project(Capabilities Test) : acetest {
}
project(CDR File Test) : acetest {
- avoids += ace_for_tao
exename = CDR_File_Test
Source_Files {
CDR_File_Test.cpp
@@ -274,7 +253,6 @@ project(Collection Test) : acetest {
}
project(Config Test) : acetest {
- avoids += ace_for_tao
exename = Config_Test
Source_Files {
Config_Test.cpp
@@ -286,7 +264,6 @@ project(Config Test) : acetest {
}
project(Conn Test) : acetest {
- avoids += ace_for_tao
exename = Conn_Test
Source_Files {
Conn_Test.cpp
@@ -294,7 +271,6 @@ project(Conn Test) : acetest {
}
project(Date Time Test) : acetest {
- avoids += ace_for_tao
exename = Date_Time_Test
Source_Files {
Date_Time_Test.cpp
@@ -309,7 +285,6 @@ project(Dev Poll Reactor Test) : acetest {
}
project(Dirent Test) : acetest {
-
exename = Dirent_Test
Source_Files {
Dirent_Test.cpp
@@ -317,7 +292,6 @@ project(Dirent Test) : acetest {
}
project(DLList Test) : acetest {
- avoids += ace_for_tao
exename = DLList_Test
Source_Files {
DLList_Test.cpp
@@ -348,7 +322,6 @@ project(Env Value Test) : acetest {
}
project(Future Test) : acetest {
- avoids += ace_for_tao
exename = Future_Test
Source_Files {
Future_Test.cpp
@@ -356,7 +329,6 @@ project(Future Test) : acetest {
}
project(Future Set Test) : acetest {
- avoids += ace_for_tao
exename = Future_Set_Test
Source_Files {
Future_Set_Test.cpp
@@ -371,7 +343,6 @@ project(Get Opt Test) : acetest {
}
project(Handle Set Test) : acetest {
- avoids += ace_for_tao
exename = Handle_Set_Test
Source_Files {
Handle_Set_Test.cpp
@@ -379,7 +350,6 @@ project(Handle Set Test) : acetest {
}
project(High Res Timer Test) : acetest {
- avoids += ace_for_tao
exename = High_Res_Timer_Test
Source_Files {
High_Res_Timer_Test.cpp
@@ -422,7 +392,6 @@ project(Lazy Map Manager Test) : acetest {
}
project(Log Msg Test) : acetest {
- avoids += ace_for_tao
exename = Log_Msg_Test
Source_Files {
Log_Msg_Test.cpp
@@ -437,7 +406,6 @@ project(Logging Strategy Test) : acetest {
}
project(Malloc Test) : acetest {
- avoids += ace_for_tao
exename = Malloc_Test
Source_Files {
Malloc_Test.cpp
@@ -452,7 +420,6 @@ project(Manual_Event Test) : acetest {
}
project(Map Test) : acetest {
- avoids += ace_for_tao
exename = Map_Test
Source_Files {
Map_Test.cpp
@@ -460,7 +427,6 @@ project(Map Test) : acetest {
}
project(Map Manager Test) : acetest {
- avoids += ace_for_tao
exename = Map_Manager_Test
Source_Files {
Map_Manager_Test.cpp
@@ -475,7 +441,6 @@ project(Max Default Port Test) : acetest {
}
project(MEM Stream Test) : acetest {
- avoids += ace_for_tao
exename = MEM_Stream_Test
Source_Files {
MEM_Stream_Test.cpp
@@ -483,7 +448,6 @@ project(MEM Stream Test) : acetest {
}
project(Mem Map Test) : acetest {
- avoids += ace_for_tao
exename = Mem_Map_Test
Source_Files {
Mem_Map_Test.cpp
@@ -491,7 +455,6 @@ project(Mem Map Test) : acetest {
}
project(MM Shared Memory Test) : acetest {
- avoids += ace_for_tao
exename = MM_Shared_Memory_Test
Source_Files {
MM_Shared_Memory_Test.cpp
@@ -520,7 +483,6 @@ project(MT SOCK Test) : acetest {
}
project(Message Block Test) : acetest {
- avoids += ace_for_tao
exename = Message_Block_Test
Source_Files {
Message_Block_Test.cpp
@@ -528,7 +490,6 @@ project(Message Block Test) : acetest {
}
project(Message Queue Test) : acetest {
- avoids += ace_for_tao
exename = Message_Queue_Test
Source_Files {
Message_Queue_Test.cpp
@@ -536,7 +497,6 @@ project(Message Queue Test) : acetest {
}
project(Message Queue Test Ex) : acetest {
- avoids += ace_for_tao
exename = Message_Queue_Test_Ex
Source_Files {
Message_Queue_Test_Ex.cpp
@@ -558,7 +518,6 @@ project(Multicast Test) : acetest {
}
project(Multihomed INET Addr Test) : acetest {
- avoids += ace_for_tao
exename = Multihomed_INET_Addr_Test
Source_Files {
Multihomed_INET_Addr_Test.cpp
@@ -580,7 +539,6 @@ project(New Fail Test) : acetest {
}
project(Notify Performance Test) : acetest {
- avoids += ace_for_tao
exename = Notify_Performance_Test
Source_Files {
Notify_Performance_Test.cpp
@@ -616,7 +574,6 @@ project(OS Test) : acetest {
}
project(Proactor Scatter Gather Test) : acetest {
- avoids += ace_for_tao
exename = Proactor_Scatter_Gather_Test
Source_Files {
Proactor_Scatter_Gather_Test.cpp
@@ -624,7 +581,6 @@ project(Proactor Scatter Gather Test) : acetest {
}
project(Proactor Test) : acetest {
- avoids += ace_for_tao
exename = Proactor_Test
Source_Files {
Proactor_Test.cpp
@@ -632,7 +588,6 @@ project(Proactor Test) : acetest {
}
project(Proactor Timer Test) : acetest {
- avoids += ace_for_tao
exename = Proactor_Timer_Test
Source_Files {
Proactor_Timer_Test.cpp
@@ -647,7 +602,6 @@ project(Process Manual Event Test) : acetest {
}
project(Process Mutex Test) : acetest {
- avoids += ace_for_tao
exename = Process_Mutex_Test
Source_Files {
Process_Mutex_Test.cpp
@@ -655,7 +609,6 @@ project(Process Mutex Test) : acetest {
}
project(Process Semaphore Test) : acetest {
- avoids += ace_for_tao
exename = Process_Semaphore_Test
Source_Files {
Process_Semaphore_Test.cpp
@@ -663,7 +616,6 @@ project(Process Semaphore Test) : acetest {
}
project(Process Strategy Test) : acetest {
- avoids += ace_for_tao // Requires ace/File_Lock
exename = Process_Strategy_Test
Source_Files {
Process_Strategy_Test.cpp
@@ -692,7 +644,6 @@ project(Priority Task Test) : acetest {
}
project(Priority Reactor Test) : acetest {
- avoids += ace_for_tao
exename = Priority_Reactor_Test
Source_Files {
Priority_Reactor_Test.cpp
@@ -700,7 +651,6 @@ project(Priority Reactor Test) : acetest {
}
project(Process Manager Test) : acetest {
- avoids += ace_for_tao
exename = Process_Manager_Test
Source_Files {
Process_Manager_Test.cpp
@@ -736,7 +686,6 @@ project(Reactor Exceptions Test) : acetest {
}
project(Reactor Notify Test) : acetest {
- avoids += ace_for_tao
exename = Reactor_Notify_Test
Source_Files {
Reactor_Notify_Test.cpp
@@ -758,7 +707,6 @@ project(Reactor Dispatch Order Test) : acetest {
}
project(Reactor Performance Test) : acetest {
- avoids += ace_for_tao
exename = Reactor_Performance_Test
Source_Files {
Reactor_Performance_Test.cpp
@@ -766,7 +714,6 @@ project(Reactor Performance Test) : acetest {
}
project(Reactor Timer Test) : acetest {
- avoids += ace_for_tao
exename = Reactor_Timer_Test
Source_Files {
Reactor_Timer_Test.cpp
@@ -802,7 +749,6 @@ project(Recursive Mutex Test) : acetest {
}
project(Refcounted Auto Ptr Test) : acetest {
- avoids += ace_for_tao
exename = Refcounted_Auto_Ptr_Test
Source_Files {
Refcounted_Auto_Ptr_Test.cpp
@@ -817,7 +763,6 @@ project(Reverse Lock Test) : acetest {
}
project(Semaphore Test) : acetest {
- avoids += ace_for_tao
exename = Semaphore_Test
Source_Files {
Semaphore_Test.cpp
@@ -874,7 +819,6 @@ project(SOCK Send Recv Test) : acetest {
}
project(SPIPE Test) : acetest {
- avoids += ace_for_tao
exename = SPIPE_Test
Source_Files {
SPIPE_Test.cpp
@@ -889,7 +833,6 @@ project(SString Test) : acetest {
}
project(SV Shared Memory Test) : acetest {
- avoids += ace_for_tao
exename = SV_Shared_Memory_Test
Source_Files {
SV_Shared_Memory_Test.cpp
@@ -897,7 +840,6 @@ project(SV Shared Memory Test) : acetest {
}
project(Svc Handler Test) : acetest {
- avoids += ace_for_tao
exename = Svc_Handler_Test
Source_Files {
Svc_Handler_Test.cpp
@@ -961,7 +903,6 @@ project(Time Value Test) : acetest {
}
project(Timer Queue Test) : acetest {
- avoids += ace_for_tao
exename = Timer_Queue_Test
Source_Files {
Timer_Queue_Test.cpp
@@ -976,7 +917,6 @@ project(Token Strategy Test) : acetest {
}
project(TP Reactor Test) : acetest {
- avoids += ace_for_tao
exename = TP_Reactor_Test
Source_Files {
TP_Reactor_Test.cpp
@@ -1005,7 +945,6 @@ project(Vector Test) : acetest {
}
project(UPIPE SAP Test) : acetest {
- avoids += ace_for_tao
exename = UPIPE_SAP_Test
Source_Files {
UPIPE_SAP_Test.cpp
@@ -1013,7 +952,6 @@ project(UPIPE SAP Test) : acetest {
}
project(Upgradable RW Test) : acetest {
- avoids += ace_for_tao
exename = Upgradable_RW_Test
Source_Files {
Upgradable_RW_Test.cpp
@@ -1021,7 +959,6 @@ project(Upgradable RW Test) : acetest {
}
project(Naming Test) : acetest {
- avoids += ace_for_tao
exename = Naming_Test
requires += ace_other
@@ -1080,7 +1017,6 @@ project(TkReactor Test) : acetest,ace_tkreactor {
}
project(Codecs Test) : acetest {
- avoids += ace_for_tao
exename = Codecs_Test
requires += ace_codecs
@@ -1099,7 +1035,6 @@ project(Tokens Test) : acetest {
}
project(CDR Array Test) : acetest {
- avoids += ace_for_tao
exename = CDR_Array_Test
Source_Files {
CDR_Array_Test.cpp
@@ -1123,7 +1058,6 @@ project(Framework Component Test) : acetest {
}
project(FIFO Test) : acetest {
- avoids += ace_for_tao
exename = FIFO_Test
Source_Files {
FIFO_Test.cpp
@@ -1205,7 +1139,6 @@ project(Reactor Registration Test) : acetest {
}
project(UUIDTest) : acetest {
- avoids += ace_for_tao
exename = UUIDTest
requires += ace_uuid
Source_Files {
@@ -1242,15 +1175,13 @@ project(Multicast Test IPV6) : acetest {
}
project(Multihomed INET Addr Test IPV6) : acetest {
- avoids += ace_for_tao
- exename = Multihomed_INET_Addr_Test_IPV6
+ exename = Multihomed_INET_Addr_Test_IPV6
Source_Files {
Multihomed_INET_Addr_Test_IPV6.cpp
}
}
project(Proactor Test IPV6) : acetest {
- avoids += ace_for_tao
exename = Proactor_Test_IPV6
Source_Files {
Proactor_Test_IPV6.cpp
@@ -1272,7 +1203,6 @@ project(SOCK Test IPv6) : acetest {
}
project(SOCK_Dgram_Bcast_Test) : acetest {
- avoids += ace_for_tao
exename = SOCK_Dgram_Bcast_Test
Source_Files {
SOCK_Dgram_Bcast_Test.cpp
@@ -1280,7 +1210,6 @@ project(SOCK_Dgram_Bcast_Test) : acetest {
}
project(SOCK_SEQPACK_SCTP_Test) : acetest {
- avoids += ace_for_tao
exename = SOCK_SEQPACK_SCTP_Test
Source_Files {
SOCK_SEQPACK_SCTP_Test.cpp
@@ -1299,7 +1228,6 @@ project(QtReactor Test) : acetest, ace_qtreactor {
}
project(Based Pointer Test) : acetest {
- avoids += ace_for_tao
after += Based_Pointer_Test_Lib
exename = Based_Pointer_Test
Source_Files {
@@ -1307,12 +1235,9 @@ project(Based Pointer Test) : acetest {
}
}
-project(Library Unload) {
- exename = UnloadLibACE
- staticflags += ACE_AS_STATIC_LIBS
+project(WChar_Conversion) : acetest {
+ exename = WChar_Conversion
Source_Files {
- Unload_libACE.cpp
- }
- Resource_Files {
+ WChar_Conversion.cpp
}
}